@ai-matrx/coding-sessions 0.1.156 → 0.1.158
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -55,7 +55,7 @@ Error generating stack: `+e.message+`
|
|
|
55
55
|
.allow-interactivity-${e} {pointer-events: all;}
|
|
56
56
|
`},jm=0,Mm=[];function Nm(e){var t=_.useRef([]),n=_.useRef([0,0]),r=_.useRef(),i=_.useState(jm++)[0],a=_.useState(tm)[0],o=_.useRef(e);_.useEffect(function(){o.current=e},[e]),_.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=jp([e.lockRef.current],(e.shards||[]).map(Om),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=_.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=Em(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=ym(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=ym(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return Tm(h,t,e,h===`h`?s:c,!0)},[]),c=_.useCallback(function(e){var n=e;if(Mm.length&&Mm[Mm.length-1]===a){var r=`deltaY`in n?Dm(n):Em(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&km(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var c=(o.current.shards||[]).map(Om).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=_.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:Pm(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=_.useCallback(function(e){n.current=Em(e),r.current=void 0},[]),d=_.useCallback(function(t){l(t.type,Dm(t),t.target,s(t,e.lockRef.current))},[]),f=_.useCallback(function(t){l(t.type,Em(t),t.target,s(t,e.lockRef.current))},[]);_.useEffect(function(){return Mm.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,mm),document.addEventListener(`touchmove`,c,mm),document.addEventListener(`touchstart`,u,mm),function(){Mm=Mm.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,mm),document.removeEventListener(`touchmove`,c,mm),document.removeEventListener(`touchstart`,u,mm)}},[]);var p=e.removeScrollBar,m=e.inert;return _.createElement(_.Fragment,null,m?_.createElement(a,{styles:Am(i)}):null,p?_.createElement(dm,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Pm(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Fm=Gp(Kp,Nm),Im=_.forwardRef(function(e,t){return _.createElement(Jp,kp({},e,{ref:t,sideCar:Fm}))});Im.classNames=Jp.classNames;var Lm=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Rm=new WeakMap,zm=new WeakMap,Bm={},Vm=0,Hm=function(e){return e&&(e.host||Hm(e.parentNode))},Um=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Hm(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},Wm=function(e,t,n,r){var i=Um(t,Array.isArray(e)?e:[e]);Bm[n]||(Bm[n]=new WeakMap);var a=Bm[n],o=[],s=new Set,c=new Set(i),l=function(e){e&&!s.has(e)&&(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(Rm.get(e)||0)+1,l=(a.get(e)||0)+1;Rm.set(e,c),a.set(e,l),o.push(e),c===1&&i&&zm.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),Vm++,function(){o.forEach(function(e){var t=Rm.get(e)-1,i=a.get(e)-1;Rm.set(e,t),a.set(e,i),t||(zm.has(e)||e.removeAttribute(r),zm.delete(e)),i||e.removeAttribute(n)}),Vm--,Vm||(Rm=new WeakMap,Rm=new WeakMap,zm=new WeakMap,Bm={})}},Gm=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||Lm(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),Wm(r,i,n,`aria-hidden`)):function(){return null}},Km=Object.defineProperty,qm=(e,t)=>Km(e,`name`,{value:t,configurable:!0}),Jm=`Dialog`,[Ym,Xm]=Vi(Jm),[Zm,Qm]=Ym(Jm),$m=qm(e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=_.useRef(null),c=_.useRef(null),[l,u]=kc({prop:r,defaultProp:i??!1,onChange:a,caller:Jm}),[d,f]=_.useState(0),[p,m]=_.useState(0);return(0,j.jsx)(Zm,{scope:t,triggerRef:s,contentRef:c,contentId:Aa(),titleId:Aa(),descriptionId:Aa(),titlePresent:d>0,descriptionPresent:p>0,setTitleCount:f,setDescriptionCount:m,open:l,onOpenChange:u,onOpenToggle:_.useCallback(()=>u(e=>!e),[u]),modal:o,children:n})},`Dialog`),eh=`DialogTrigger`,th=_.forwardRef(qm(function(e,t){let{__scopeDialog:n,...r}=e,i=Qm(eh,n),a=H(t,i.triggerRef);return(0,j.jsx)(W.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":xh(i.open),...r,ref:a,onClick:V(e.onClick,i.onOpenToggle)})},`DialogTrigger`)),nh=`DialogPortal`,[rh,ih]=Ym(nh,{forceMount:void 0}),ah=qm(e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=Qm(nh,t);return(0,j.jsx)(rh,{scope:t,forceMount:n,children:_.Children.map(r,e=>(0,j.jsx)(hc,{present:n||a.open,children:(0,j.jsx)(dc,{asChild:!0,container:i,children:e})}))})},`DialogPortal`),oh=`DialogOverlay`,sh=_.forwardRef(qm(function(e,t){let n=ih(oh,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=Qm(oh,e.__scopeDialog);return a.modal?(0,j.jsx)(hc,{present:r||a.open,children:(0,j.jsx)(lh,{...i,ref:t})}):null},`DialogOverlay`)),ch=Gi(`DialogOverlay.RemoveScroll`),lh=_.forwardRef(qm(function(e,t){let{__scopeDialog:n,...r}=e,i=Qm(oh,n),a=H(t,ya());return(0,j.jsx)(Im,{as:ch,allowPinchZoom:!0,shards:[i.contentRef],children:(0,j.jsx)(W.div,{"data-state":xh(i.open),...r,ref:a,style:{pointerEvents:`auto`,...r.style}})})},`DialogOverlayImpl`)),uh=`DialogContent`,dh=_.forwardRef(qm(function(e,t){let n=ih(uh,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=Qm(uh,e.__scopeDialog);return(0,j.jsx)(hc,{present:r||a.open,children:a.modal?(0,j.jsx)(fh,{...i,ref:t}):(0,j.jsx)(ph,{...i,ref:t})})},`DialogContent`)),fh=_.forwardRef(qm(function(e,t){let n=Qm(uh,e.__scopeDialog),r=_.useRef(null),i=H(t,n.contentRef,r);return _.useEffect(()=>{let e=r.current;if(e)return Gm(e)},[]),(0,j.jsx)(mh,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:V(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:V(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:V(e.onFocusOutside,e=>e.preventDefault())})},`DialogContentModal`)),ph=_.forwardRef(qm(function(e,t){let n=Qm(uh,e.__scopeDialog),r=_.useRef(!1),i=_.useRef(!1);return(0,j.jsx)(mh,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})},`DialogContentNonModal`)),mh=_.forwardRef(qm(function(e,t){let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=Qm(uh,n);return Dp(),(0,j.jsx)(j.Fragment,{children:(0,j.jsx)(up,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,j.jsx)(va,{role:`dialog`,id:s.contentId,"aria-describedby":s.descriptionPresent?s.descriptionId:void 0,"aria-labelledby":s.titlePresent?s.titleId:void 0,"data-state":xh(s.open),...o,ref:t,deferPointerDownOutside:!0,onDismiss:()=>s.onOpenChange(!1)})})})},`DialogContentImpl`)),hh=`DialogTitle`,gh=_.forwardRef(qm(function(e,t){let{__scopeDialog:n,...r}=e,i=Qm(hh,n),{setTitleCount:a}=i;return Ta(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,j.jsx)(W.h2,{id:i.titleId,...r,ref:t})},`DialogTitle`)),_h=`DialogDescription`,vh=_.forwardRef(qm(function(e,t){let{__scopeDialog:n,...r}=e,i=Qm(_h,n),{setDescriptionCount:a}=i;return Ta(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,j.jsx)(W.p,{id:i.descriptionId,...r,ref:t})},`DialogDescription`)),yh=`DialogClose`,bh=_.forwardRef(qm(function(e,t){let{__scopeDialog:n,...r}=e,i=Qm(yh,n);return(0,j.jsx)(W.button,{type:`button`,...r,ref:t,onClick:V(e.onClick,()=>i.onOpenChange(!1))})},`DialogClose`));function xh(e){return e?`open`:`closed`}qm(xh,`getState`);function Sh(e){if(!e||typeof document>`u`)return;let t=document.head||document.getElementsByTagName(`head`)[0],n=document.createElement(`style`);n.type=`text/css`,t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}var Ch=_.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:`bottom`,shouldAnimate:{current:!0},shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),wh=()=>{let e=_.useContext(Ch);if(!e)throw Error(`useDrawerContext must be used within a Drawer.Root`);return e};Sh(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(
|
|
57
57
|
[data-state=closed]
|
|
58
|
-
){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}`);function Th(){let e=navigator.userAgent;return typeof window<`u`&&(/Firefox/.test(e)&&/Mobile/.test(e)||/FxiOS/.test(e))}function Eh(){return jh(/^Mac/)}function Dh(){return jh(/^iPhone/)}function Oh(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function kh(){return jh(/^iPad/)||Eh()&&navigator.maxTouchPoints>1}function Ah(){return Dh()||kh()}function jh(e){return typeof window<`u`&&window.navigator!=null?e.test(window.navigator.platform):void 0}var Mh=24,Nh=typeof window<`u`?_.useLayoutEffect:_.useEffect;function Ph(...e){return(...t)=>{for(let n of e)typeof n==`function`&&n(...t)}}var Fh=typeof document<`u`&&window.visualViewport;function Ih(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function Lh(e){for(Ih(e)&&(e=e.parentElement);e&&!Ih(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}var Rh=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]),zh=0,Bh;function Vh(e={}){let{isDisabled:t}=e;Nh(()=>{if(!t)return zh++,zh===1&&Ah()&&(Bh=Hh()),()=>{zh--,zh===0&&Bh?.()}},[t])}function Hh(){let e,t=0,n=n=>{e=Lh(n.target),(e!==document.documentElement||e!==document.body)&&(t=n.changedTouches[0].pageY)},r=n=>{if(!e||e===document.documentElement||e===document.body){n.preventDefault();return}let r=n.changedTouches[0].pageY,i=e.scrollTop,a=e.scrollHeight-e.clientHeight;a!==0&&((i<=0&&r>t||i>=a&&r<t)&&n.preventDefault(),t=r)},i=e=>{let t=e.target;Kh(t)&&t!==document.activeElement&&(e.preventDefault(),t.style.transform=`translateY(-2000px)`,t.focus(),requestAnimationFrame(()=>{t.style.transform=``}))},a=e=>{let t=e.target;Kh(t)&&(t.style.transform=`translateY(-2000px)`,requestAnimationFrame(()=>{t.style.transform=``,Fh&&(Fh.height<window.innerHeight?requestAnimationFrame(()=>{Gh(t)}):Fh.addEventListener(`resize`,()=>Gh(t),{once:!0}))}))},o=()=>{window.scrollTo(0,0)},s=window.pageXOffset,c=window.pageYOffset,l=Ph(Uh(document.documentElement,`paddingRight`,`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let u=Ph(Wh(document,`touchstart`,n,{passive:!1,capture:!0}),Wh(document,`touchmove`,r,{passive:!1,capture:!0}),Wh(document,`touchend`,i,{passive:!1,capture:!0}),Wh(document,`focus`,a,!0),Wh(window,`scroll`,o));return()=>{l(),u(),window.scrollTo(s,c)}}function Uh(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Wh(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Gh(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let t=Lh(e);if(t!==document.documentElement&&t!==document.body&&t!==e){let n=t.getBoundingClientRect().top,r=e.getBoundingClientRect().top;e.getBoundingClientRect().bottom>t.getBoundingClientRect().bottom+Mh&&(t.scrollTop+=r-n)}e=t.parentElement}}function Kh(e){return e instanceof HTMLInputElement&&!Rh.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function qh(e,t){typeof e==`function`?e(t):e!=null&&(e.current=t)}function Jh(...e){return t=>e.forEach(e=>qh(e,t))}function Yh(...e){return _.useCallback(Jh(...e),e)}var Xh=new WeakMap;function Zh(e,t,n=!1){if(!e||!(e instanceof HTMLElement))return;let r={};Object.entries(t).forEach(([t,n])=>{if(t.startsWith(`--`)){e.style.setProperty(t,n);return}r[t]=e.style[t],e.style[t]=n}),!n&&Xh.set(e,r)}function Qh(e,t){if(!e||!(e instanceof HTMLElement))return;let n=Xh.get(e);n&&(e.style[t]=n[t])}var $h=e=>{switch(e){case`top`:case`bottom`:return!0;case`left`:case`right`:return!1;default:return e}};function eg(e,t){if(!e)return null;let n=window.getComputedStyle(e),r=n.transform||n.webkitTransform||n.mozTransform,i=r.match(/^matrix3d\((.+)\)$/);return i?parseFloat(i[1].split(`, `)[$h(t)?13:12]):(i=r.match(/^matrix\((.+)\)$/),i?parseFloat(i[1].split(`, `)[$h(t)?5:4]):null)}function tg(e){return 8*(Math.log(e+1)-2)}function ng(e,t){if(!e)return()=>{};let n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}var rg={DURATION:.5,EASE:[.32,.72,0,1]},ig=.4,ag=.25,og=100,sg=8,cg=16,lg=26,ug=`vaul-dragging`;function dg(e){let t=_.useRef(e);return _.useEffect(()=>{t.current=e}),_.useMemo(()=>(...e)=>t.current==null?void 0:t.current.call(t,...e),[])}function fg({defaultProp:e,onChange:t}){let n=_.useState(e),[r]=n,i=_.useRef(r),a=dg(t);return _.useEffect(()=>{i.current!==r&&(a(r),i.current=r)},[r,i,a]),n}function pg({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,i]=fg({defaultProp:t,onChange:n}),a=e!==void 0,o=a?e:r,s=dg(n);return[o,_.useCallback(t=>{if(a){let n=typeof t==`function`?t(e):t;n!==e&&s(n)}else i(t)},[a,e,i,s])]}function mg({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:i,fadeFromIndex:a,onSnapPointChange:o,direction:s=`bottom`,container:c,snapToSequentialPoint:l}){let[u,d]=pg({prop:e,defaultProp:n?.[0],onChange:t}),[f,p]=_.useState(typeof window<`u`?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);_.useEffect(()=>{function e(){p({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]);let m=_.useMemo(()=>u===n?.[n.length-1]||null,[n,u]),h=_.useMemo(()=>n?.findIndex(e=>e===u)??null,[n,u]),g=n&&n.length>0&&(a||a===0)&&!Number.isNaN(a)&&n[a]===u||!n,v=_.useMemo(()=>{let e=c?{width:c.getBoundingClientRect().width,height:c.getBoundingClientRect().height}:typeof window<`u`?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};return n?.map(t=>{let n=typeof t==`string`,r=0;if(n&&(r=parseInt(t,10)),$h(s)){let i=n?r:f?t*e.height:0;return f?s===`bottom`?e.height-i:-e.height+i:i}let i=n?r:f?t*e.width:0;return f?s===`right`?e.width-i:-e.width+i:i})??[]},[n,f,c]),y=_.useMemo(()=>h===null?null:v?.[h],[v,h]),b=_.useCallback(e=>{let t=v?.findIndex(t=>t===e)??null;o(t),Zh(r.current,{transition:`transform ${rg.DURATION}s cubic-bezier(${rg.EASE.join(`,`)})`,transform:$h(s)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`}),v&&t!==v.length-1&&a!==void 0&&t!==a&&t<a?Zh(i.current,{transition:`opacity ${rg.DURATION}s cubic-bezier(${rg.EASE.join(`,`)})`,opacity:`0`}):Zh(i.current,{transition:`opacity ${rg.DURATION}s cubic-bezier(${rg.EASE.join(`,`)})`,opacity:`1`}),d(n?.[Math.max(t,0)])},[r.current,n,v,a,i,d]);_.useEffect(()=>{if(u||e){let t=n?.findIndex(t=>t===e||t===u)??-1;v&&t!==-1&&typeof v[t]==`number`&&b(v[t])}},[u,e,n,v,b]);function x({draggedDistance:e,closeDrawer:t,velocity:r,dismissible:o}){if(a===void 0)return;let c=s===`bottom`||s===`right`?(y??0)-e:(y??0)+e,u=h===a-1,d=h===0,f=e>0;if(u&&Zh(i.current,{transition:`opacity ${rg.DURATION}s cubic-bezier(${rg.EASE.join(`,`)})`}),!l&&r>2&&!f){o?t():b(v[0]);return}if(!l&&r>2&&f&&v&&n){b(v[n.length-1]);return}let p=v?.reduce((e,t)=>typeof e!=`number`||typeof t!=`number`?e:Math.abs(t-c)<Math.abs(e-c)?t:e),g=$h(s)?window.innerHeight:window.innerWidth;if(r>ig&&Math.abs(e)<g*.4){let e=f?1:-1;if(e>0&&m&&n){b(v[n.length-1]);return}if(d&&e<0&&o&&t(),h===null)return;b(v[h+e]);return}b(p)}function S({draggedDistance:e}){if(y===null)return;let t=s===`bottom`||s===`right`?y-e:y+e;(s===`bottom`||s===`right`)&&t<v[v.length-1]||(s===`top`||s===`left`)&&t>v[v.length-1]||Zh(r.current,{transform:$h(s)?`translate3d(0, ${t}px, 0)`:`translate3d(${t}px, 0, 0)`})}function C(e,t){if(!n||typeof h!=`number`||!v||a===void 0)return null;let r=h===a-1;if(h>=a&&t)return 0;if(r&&!t)return 1;if(!g&&!r)return null;let i=r?h+1:h-1,o=r?v[i]-v[i-1]:v[i+1]-v[i],s=e/Math.abs(o);return r?1-s:s}return{isLastSnapPoint:m,activeSnapPoint:u,shouldFade:g,getPercentageDragged:C,setActiveSnapPoint:d,activeSnapPointIndex:h,onRelease:x,onDrag:S,snapPointsOffset:v}}function hg(){let{direction:e,isOpen:t,shouldScaleBackground:n,setBackgroundColorOnScale:r,noBodyStyles:i}=wh(),a=_.useRef(null),o=(0,_.useMemo)(()=>document.body.style.backgroundColor,[]);function s(){return(window.innerWidth-lg)/window.innerWidth}_.useEffect(()=>{if(t&&n){a.current&&clearTimeout(a.current);let t=document.querySelector(`[data-vaul-drawer-wrapper]`)||document.querySelector(`[vaul-drawer-wrapper]`);if(!t)return;r&&!i&&ng(document.body,{background:`black`}),ng(t,{transformOrigin:$h(e)?`top`:`left`,transitionProperty:`transform, border-radius`,transitionDuration:`${rg.DURATION}s`,transitionTimingFunction:`cubic-bezier(${rg.EASE.join(`,`)})`});let n=ng(t,{borderRadius:`${sg}px`,overflow:`hidden`,...$h(e)?{transform:`scale(${s()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${s()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{n(),a.current=window.setTimeout(()=>{o?document.body.style.background=o:document.body.style.removeProperty(`background`)},rg.DURATION*1e3)}}},[t,n,o])}var gg=null;function _g({isOpen:e,modal:t,nested:n,hasBeenOpened:r,preventScrollRestoration:i,noBodyStyles:a}){let[o,s]=_.useState(()=>typeof window<`u`?window.location.href:``),c=_.useRef(0),l=_.useCallback(()=>{if(Oh()&&gg===null&&e&&!a){gg={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:`unset`};let{scrollX:e,innerHeight:t}=window;document.body.style.setProperty(`position`,`fixed`,`important`),Object.assign(document.body.style,{top:`${-c.current}px`,left:`${-e}px`,right:`0px`,height:`auto`}),window.setTimeout(()=>window.requestAnimationFrame(()=>{let e=t-window.innerHeight;e&&c.current>=t&&(document.body.style.top=`${-(c.current+e)}px`)}),300)}},[e]),u=_.useCallback(()=>{if(Oh()&&gg!==null&&!a){let e=-parseInt(document.body.style.top,10),t=-parseInt(document.body.style.left,10);Object.assign(document.body.style,gg),window.requestAnimationFrame(()=>{if(i&&o!==window.location.href){s(window.location.href);return}window.scrollTo(t,e)}),gg=null}},[o]);return _.useEffect(()=>{function e(){c.current=window.scrollY}return e(),window.addEventListener(`scroll`,e),()=>{window.removeEventListener(`scroll`,e)}},[]),_.useEffect(()=>{if(t)return()=>{typeof document<`u`&&(document.querySelector(`[data-vaul-drawer]`)||u())}},[t,u]),_.useEffect(()=>{!n&&r&&(e?(!window.matchMedia(`(display-mode: standalone)`).matches&&l(),t||window.setTimeout(()=>{u()},500)):u())},[e,r,o,t,n,l,u]),{restorePositionSetting:u}}function vg({open:e,onOpenChange:t,children:n,onDrag:r,onRelease:i,snapPoints:a,shouldScaleBackground:o=!1,setBackgroundColorOnScale:s=!0,closeThreshold:c=ag,scrollLockTimeout:l=og,dismissible:u=!0,handleOnly:d=!1,fadeFromIndex:f=a&&a.length-1,activeSnapPoint:p,setActiveSnapPoint:m,fixed:h,modal:g=!0,onClose:v,nested:y,noBodyStyles:b=!1,direction:x=`bottom`,defaultOpen:S=!1,disablePreventScroll:C=!0,snapToSequentialPoint:w=!1,preventScrollRestoration:T=!1,repositionInputs:E=!0,onAnimationEnd:D,container:O,autoFocus:k=!1}){let[A=!1,j]=pg({defaultProp:S,prop:e,onChange:e=>{t?.(e),!e&&!y&&be(),setTimeout(()=>{D?.(e)},rg.DURATION*1e3),e&&!g&&typeof window<`u`&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents=`auto`}),e||(document.body.style.pointerEvents=`auto`)}}),[M,N]=_.useState(!1),[P,F]=_.useState(!1),[I,L]=_.useState(!1),ee=_.useRef(null),te=_.useRef(null),ne=_.useRef(null),re=_.useRef(null),ie=_.useRef(null),ae=_.useRef(!1),oe=_.useRef(null),se=_.useRef(0),ce=_.useRef(!1),le=_.useRef(!S),ue=_.useRef(0),R=_.useRef(null),de=_.useRef(R.current?.getBoundingClientRect().height||0),z=_.useRef(R.current?.getBoundingClientRect().width||0),B=_.useRef(0),{activeSnapPoint:fe,activeSnapPointIndex:pe,setActiveSnapPoint:me,onRelease:he,snapPointsOffset:ge,onDrag:_e,shouldFade:ve,getPercentageDragged:ye}=mg({snapPoints:a,activeSnapPointProp:p,setActiveSnapPointProp:m,drawerRef:R,fadeFromIndex:f,overlayRef:ee,onSnapPointChange:_.useCallback(e=>{a&&e===ge.length-1&&(te.current=new Date)},[]),direction:x,container:O,snapToSequentialPoint:w});Vh({isDisabled:!A||P||!g||I||!M||!E||!C});let{restorePositionSetting:be}=_g({isOpen:A,modal:g,nested:y??!1,hasBeenOpened:M,preventScrollRestoration:T,noBodyStyles:b});function xe(){return(window.innerWidth-lg)/window.innerWidth}function Se(e){(u||a)&&(!R.current||R.current.contains(e.target))&&(de.current=R.current?.getBoundingClientRect().height||0,z.current=R.current?.getBoundingClientRect().width||0,F(!0),ne.current=new Date,Ah()&&window.addEventListener(`touchend`,()=>ae.current=!1,{once:!0}),e.target.setPointerCapture(e.pointerId),se.current=$h(x)?e.pageY:e.pageX)}function Ce(e,t){let n=e,r=window.getSelection()?.toString(),i=R.current?eg(R.current,x):null,a=new Date;if(n.tagName===`SELECT`||n.hasAttribute(`data-vaul-no-drag`)||n.closest(`[data-vaul-no-drag]`))return!1;if(x===`right`||x===`left`)return!0;if(te.current&&a.getTime()-te.current.getTime()<500)return!1;if(i!==null&&(x===`bottom`?i>0:i<0))return!0;if(r&&r.length>0)return!1;if(ie.current&&a.getTime()-ie.current.getTime()<l&&i===0||t)return ie.current=a,!1;for(;n;){if(n.scrollHeight>n.clientHeight){if(n.scrollTop!==0)return ie.current=new Date,!1;if(n.getAttribute(`role`)===`dialog`)return!0}n=n.parentNode}return!0}function we(e){if(R.current&&P){let t=x===`bottom`||x===`right`?1:-1,n=(se.current-($h(x)?e.pageY:e.pageX))*t,i=n>0,s=a&&!u&&!i;if(s&&pe===0)return;let c=Math.abs(n),l=document.querySelector(`[data-vaul-drawer-wrapper]`),d=c/(x===`bottom`||x===`top`?de.current:z.current),p=ye(c,i);if(p!==null&&(d=p),s&&d>=1||!ae.current&&!Ce(e.target,i))return;if(R.current.classList.add(ug),ae.current=!0,Zh(R.current,{transition:`none`}),Zh(ee.current,{transition:`none`}),a&&_e({draggedDistance:n}),i&&!a){let e=tg(n),r=Math.min(e*-1,0)*t;Zh(R.current,{transform:$h(x)?`translate3d(0, ${r}px, 0)`:`translate3d(${r}px, 0, 0)`});return}let m=1-d;if((ve||f&&pe===f-1)&&(r?.(e,d),Zh(ee.current,{opacity:`${m}`,transition:`none`},!0)),l&&ee.current&&o){let e=Math.min(xe()+d*(1-xe()),1),t=8-d*8,n=Math.max(0,14-d*14);Zh(l,{borderRadius:`${t}px`,transform:$h(x)?`scale(${e}) translate3d(0, ${n}px, 0)`:`scale(${e}) translate3d(${n}px, 0, 0)`,transition:`none`},!0)}if(!a){let e=c*t;Zh(R.current,{transform:$h(x)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})}}}_.useEffect(()=>{window.requestAnimationFrame(()=>{le.current=!0})},[]),_.useEffect(()=>{var e;function t(){if(!R.current||!E)return;let e=document.activeElement;if(Kh(e)||ce.current){let e=window.visualViewport?.height||0,t=window.innerHeight,n=t-e,r=R.current.getBoundingClientRect().height||0,i=r>t*.8;B.current||=r;let o=R.current.getBoundingClientRect().top;if(Math.abs(ue.current-n)>60&&(ce.current=!ce.current),a&&a.length>0&&ge&&pe){let e=ge[pe]||0;n+=e}if(ue.current=n,r>e||ce.current){let t=R.current.getBoundingClientRect().height,r=t;t>e&&(r=e-(i?o:lg)),h?R.current.style.height=`${t-Math.max(n,0)}px`:R.current.style.height=`${Math.max(r,e-o)}px`}else Th()||(R.current.style.height=`${B.current}px`);a&&a.length>0&&!ce.current?R.current.style.bottom=`0px`:R.current.style.bottom=`${Math.max(n,0)}px`}}return(e=window.visualViewport)==null||e.addEventListener(`resize`,t),()=>window.visualViewport?.removeEventListener(`resize`,t)},[pe,a,ge]);function Te(e){De(),v?.(),e||j(!1),setTimeout(()=>{a&&me(a[0])},rg.DURATION*1e3)}function Ee(){if(!R.current)return;let e=document.querySelector(`[data-vaul-drawer-wrapper]`),t=eg(R.current,x);Zh(R.current,{transform:`translate3d(0, 0, 0)`,transition:`transform ${rg.DURATION}s cubic-bezier(${rg.EASE.join(`,`)})`}),Zh(ee.current,{transition:`opacity ${rg.DURATION}s cubic-bezier(${rg.EASE.join(`,`)})`,opacity:`1`}),o&&t&&t>0&&A&&Zh(e,{borderRadius:`${sg}px`,overflow:`hidden`,...$h(x)?{transform:`scale(${xe()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:`top`}:{transform:`scale(${xe()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:`left`},transitionProperty:`transform, border-radius`,transitionDuration:`${rg.DURATION}s`,transitionTimingFunction:`cubic-bezier(${rg.EASE.join(`,`)})`},!0)}function De(){P&&R.current&&(R.current.classList.remove(ug),ae.current=!1,F(!1),re.current=new Date)}function Oe(e){if(!P||!R.current)return;R.current.classList.remove(ug),ae.current=!1,F(!1),re.current=new Date;let t=eg(R.current,x);if(!e||!Ce(e.target,!1)||!t||Number.isNaN(t)||ne.current===null)return;let n=re.current.getTime()-ne.current.getTime(),r=se.current-($h(x)?e.pageY:e.pageX),o=Math.abs(r)/n;if(o>.05&&(L(!0),setTimeout(()=>{L(!1)},200)),a){he({draggedDistance:r*(x===`bottom`||x===`right`?1:-1),closeDrawer:Te,velocity:o,dismissible:u}),i?.(e,!0);return}if(x===`bottom`||x===`right`?r>0:r<0){Ee(),i?.(e,!0);return}if(o>ig){Te(),i?.(e,!1);return}let s=Math.min(R.current.getBoundingClientRect().height??0,window.innerHeight),l=Math.min(R.current.getBoundingClientRect().width??0,window.innerWidth);if(Math.abs(t)>=(x===`left`||x===`right`?l:s)*c){Te(),i?.(e,!1);return}i?.(e,!0),Ee()}_.useEffect(()=>(A&&(Zh(document.documentElement,{scrollBehavior:`auto`}),te.current=new Date),()=>{Qh(document.documentElement,`scrollBehavior`)}),[A]);function ke(e){let t=e?(window.innerWidth-cg)/window.innerWidth:1,n=e?-16:0;oe.current&&window.clearTimeout(oe.current),Zh(R.current,{transition:`transform ${rg.DURATION}s cubic-bezier(${rg.EASE.join(`,`)})`,transform:$h(x)?`scale(${t}) translate3d(0, ${n}px, 0)`:`scale(${t}) translate3d(${n}px, 0, 0)`}),!e&&R.current&&(oe.current=setTimeout(()=>{let e=eg(R.current,x);Zh(R.current,{transition:`none`,transform:$h(x)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})},500))}function Ae(e,t){if(t<0)return;let n=(window.innerWidth-cg)/window.innerWidth,r=n+t*(1-n),i=-16+t*cg;Zh(R.current,{transform:$h(x)?`scale(${r}) translate3d(0, ${i}px, 0)`:`scale(${r}) translate3d(${i}px, 0, 0)`,transition:`none`})}function je(e,t){let n=$h(x)?window.innerHeight:window.innerWidth,r=t?(n-cg)/n:1,i=t?-16:0;t&&Zh(R.current,{transition:`transform ${rg.DURATION}s cubic-bezier(${rg.EASE.join(`,`)})`,transform:$h(x)?`scale(${r}) translate3d(0, ${i}px, 0)`:`scale(${r}) translate3d(${i}px, 0, 0)`})}return _.useEffect(()=>{g||window.requestAnimationFrame(()=>{document.body.style.pointerEvents=`auto`})},[g]),_.createElement($m,{defaultOpen:S,onOpenChange:e=>{(u||e)&&(e?N(!0):Te(!0),j(e))},open:A},_.createElement(Ch.Provider,{value:{activeSnapPoint:fe,snapPoints:a,setActiveSnapPoint:me,drawerRef:R,overlayRef:ee,onOpenChange:t,onPress:Se,onRelease:Oe,onDrag:we,dismissible:u,shouldAnimate:le,handleOnly:d,isOpen:A,isDragging:P,shouldFade:ve,closeDrawer:Te,onNestedDrag:Ae,onNestedOpenChange:ke,onNestedRelease:je,keyboardIsOpen:ce,modal:g,snapPointsOffset:ge,activeSnapPointIndex:pe,direction:x,shouldScaleBackground:o,setBackgroundColorOnScale:s,noBodyStyles:b,container:O,autoFocus:k}},n))}var yg=_.forwardRef(function({...e},t){let{overlayRef:n,snapPoints:r,onRelease:i,shouldFade:a,isOpen:o,modal:s,shouldAnimate:c}=wh(),l=Yh(t,n),u=r&&r.length>0;if(!s)return null;let d=_.useCallback(e=>i(e),[i]);return _.createElement(sh,{onMouseUp:d,ref:l,"data-vaul-overlay":``,"data-vaul-snap-points":o&&u?`true`:`false`,"data-vaul-snap-points-overlay":o&&a?`true`:`false`,"data-vaul-animate":c?.current?`true`:`false`,...e})});yg.displayName=`Drawer.Overlay`;var bg=_.forwardRef(function({onPointerDownOutside:e,style:t,onOpenAutoFocus:n,...r},i){let{drawerRef:a,onPress:o,onRelease:s,onDrag:c,keyboardIsOpen:l,snapPointsOffset:u,activeSnapPointIndex:d,modal:f,isOpen:p,direction:m,snapPoints:h,container:g,handleOnly:v,shouldAnimate:y,autoFocus:b}=wh(),[x,S]=_.useState(!1),C=Yh(i,a),w=_.useRef(null),T=_.useRef(null),E=_.useRef(!1),D=h&&h.length>0;hg();let O=(e,t,n=0)=>{if(E.current)return!0;let r=Math.abs(e.y),i=Math.abs(e.x),a=i>r,o=[`bottom`,`right`].includes(t)?1:-1;if(t===`left`||t===`right`){if(!(e.x*o<0)&&i>=0&&i<=n)return a}else if(!(e.y*o<0)&&r>=0&&r<=n)return!a;return E.current=!0,!0};_.useEffect(()=>{D&&window.requestAnimationFrame(()=>{S(!0)})},[]);function k(e){w.current=null,E.current=!1,s(e)}return _.createElement(dh,{"data-vaul-drawer-direction":m,"data-vaul-drawer":``,"data-vaul-delayed-snap-points":x?`true`:`false`,"data-vaul-snap-points":p&&D?`true`:`false`,"data-vaul-custom-container":g?`true`:`false`,"data-vaul-animate":y?.current?`true`:`false`,...r,ref:C,style:u&&u.length>0?{"--snap-point-height":`${u[d??0]}px`,...t}:t,onPointerDown:e=>{v||(r.onPointerDown==null||r.onPointerDown.call(r,e),w.current={x:e.pageX,y:e.pageY},o(e))},onOpenAutoFocus:e=>{n?.(e),b||e.preventDefault()},onPointerDownOutside:t=>{if(e?.(t),!f||t.defaultPrevented){t.preventDefault();return}l.current&&=!1},onFocusOutside:e=>{if(!f){e.preventDefault();return}},onPointerMove:e=>{if(T.current=e,v||(r.onPointerMove==null||r.onPointerMove.call(r,e),!w.current))return;let t=e.pageY-w.current.y,n=e.pageX-w.current.x,i=e.pointerType===`touch`?10:2;O({x:n,y:t},m,i)?c(e):(Math.abs(n)>i||Math.abs(t)>i)&&(w.current=null)},onPointerUp:e=>{r.onPointerUp==null||r.onPointerUp.call(r,e),w.current=null,E.current=!1,s(e)},onPointerOut:e=>{r.onPointerOut==null||r.onPointerOut.call(r,e),k(T.current)},onContextMenu:e=>{r.onContextMenu==null||r.onContextMenu.call(r,e),T.current&&k(T.current)}})});bg.displayName=`Drawer.Content`;var xg=250,Sg=120,Cg=_.forwardRef(function({preventCycle:e=!1,children:t,...n},r){let{closeDrawer:i,isDragging:a,snapPoints:o,activeSnapPoint:s,setActiveSnapPoint:c,dismissible:l,handleOnly:u,isOpen:d,onPress:f,onDrag:p}=wh(),m=_.useRef(null),h=_.useRef(!1);function g(){if(h.current){b();return}window.setTimeout(()=>{v()},Sg)}function v(){if(a||e||h.current){b();return}if(b(),!o||o.length===0){l||i();return}if(s===o[o.length-1]&&l){i();return}let t=o.findIndex(e=>e===s);if(t===-1)return;let n=o[t+1];c(n)}function y(){m.current=window.setTimeout(()=>{h.current=!0},xg)}function b(){m.current&&window.clearTimeout(m.current),h.current=!1}return _.createElement(`div`,{onClick:g,onPointerCancel:b,onPointerDown:e=>{u&&f(e),y()},onPointerMove:e=>{u&&p(e)},ref:r,"data-vaul-drawer-visible":d?`true`:`false`,"data-vaul-handle":``,"aria-hidden":`true`,...n},_.createElement(`span`,{"data-vaul-handle-hitarea":``,"aria-hidden":`true`},t))});Cg.displayName=`Drawer.Handle`;function wg({onDrag:e,onOpenChange:t,open:n,...r}){let{onNestedDrag:i,onNestedOpenChange:a,onNestedRelease:o}=wh();if(!i)throw Error(`Drawer.NestedRoot must be placed in another drawer`);return _.createElement(vg,{nested:!0,open:n,onClose:()=>{a(!1)},onDrag:(t,n)=>{i(t,n),e?.(t,n)},onOpenChange:e=>{e&&a(e),t?.(e)},onRelease:o,...r})}function Tg(e){let t=wh(),{container:n=t.container,...r}=e;return _.createElement(ah,{container:n,...r})}var Eg={Root:vg,NestedRoot:wg,Content:bg,Overlay:yg,Trigger:th,Portal:Tg,Handle:Cg,Close:bh,Title:gh,Description:vh},Dg=Symbol.for(`react.portal`);function Og(e,t){if(e==null||typeof e==`boolean`)return!1;if(Array.isArray(e))return e.some(e=>Og(e,t));if(_.isValidElement(e)){if(e.type===t)return!0;let n=e.props;return n.children!=null&&Og(n.children,t)}if(typeof e==`string`||typeof e==`number`)return!1;if(typeof e==`object`&&e.$$typeof===Dg)return Og(e.children,t);if(typeof e==`object`&&Symbol.iterator in e)return Array.from(e).some(e=>Og(e,t));if(globalThis.process?.env?.NODE_ENV!==`production`){let t=typeof e==`object`?` with keys {${Object.keys(e).join(`, `)}}`:``;console.error(`[treeContainsComponent] A non-renderable value${t} is being passed as a React child. React will throw 'Objects are not valid as a React child' at the real render site. Stringify it (e.g. JSON.stringify) before rendering.`,e)}return!1}var kg=`data-matrx-floating-layer`,Ag=Symbol.for(`ai-matrx.design-system.modal-layer-registry`),jg=globalThis,Mg=jg[Ag]??={count:0,listeners:new Set};function Ng(){for(let e of Mg.listeners)e()}var Pg=[`wheel`,`touchmove`];function Fg(e){Vg(e.target)&&e.stopPropagation()}function Ig(e){if(typeof document<`u`&&document.body)for(let t of Pg)e?document.body.addEventListener(t,Fg,{passive:!0}):document.body.removeEventListener(t,Fg)}function Lg(){Mg.count+=1,Mg.count===1&&Ig(!0),Ng();let e=!1;return()=>{e||(e=!0,Mg.count=Math.max(0,Mg.count-1),Mg.count===0&&Ig(!1),Ng())}}function Rg(){return Mg.count>0}function zg(e){_.useLayoutEffect(()=>e?Lg():void 0,[e])}var Bg=`[data-radix-popper-content-wrapper]`;function Vg(e){return e instanceof Element?e.closest(`[data-matrx-floating-layer]`)?!0:e.closest(Bg)!==null&&e.ownerDocument.querySelector(`[data-matrx-floating-layer]`)!==null:!1}function Hg(e){return t=>{e?.(t),Vg(t.target)&&t.preventDefault()}}var Ug=e=>e.preventDefault(),Wg=_.forwardRef(({children:e},t)=>{let[n]=_.useState(()=>typeof document>`u`?null:document.activeElement);return(0,j.jsx)(up,{asChild:!0,trapped:!1,loop:!1,onMountAutoFocus:Ug,onUnmountAutoFocus:e=>{e.preventDefault();let t=document.activeElement;(!t||t===document.body||!t.isConnected)&&Rg()&&n instanceof HTMLElement&&n.isConnected&&n.focus({preventScroll:!0})},children:(0,j.jsx)(Ki,{ref:t,[kg]:``,style:{pointerEvents:`auto`},children:e})})});Wg.displayName=`FloatingLayer`;var Gg=Symbol.for(`ai-matrx.design-system.dialog-modal-context`),Kg=globalThis,qg=Kg[Gg]??=_.createContext(!0);function Jg({children:e,modal:t}){return(0,j.jsx)(qg.Provider,{value:t,children:e})}function Yg(){return _.useContext(qg)}var Xg=_.createContext(`bottom`),Zg=()=>_.useContext(Xg),Qg=({children:e,shouldScaleBackground:t=!0,onOpenChange:n,...r})=>{let i=r.direction??`bottom`,a=e=>{e&&typeof document<`u`&&document.activeElement instanceof HTMLElement&&document.activeElement.blur(),n?.(e)};return(0,j.jsx)(Jg,{modal:!0,children:(0,j.jsx)(Xg.Provider,{value:i,children:(0,j.jsx)(Eg.Root,{modal:!0,shouldScaleBackground:t,...r,onOpenChange:a,direction:i,children:e})})})};Qg.displayName=`Drawer`;var $g=Eg.Trigger,e_=Eg.Portal;Eg.Close;var t_=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(Eg.Overlay,{ref:n,"data-slot":`drawer-overlay`,className:Z(`fixed inset-0 z-[10000] bg-[var(--matrx-overlay-scrim)]`,e),...t}));t_.displayName=Eg.Overlay.displayName;var n_=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(Eg.Description,{ref:n,"data-slot":`drawer-description`,className:Z(`text-sm text-muted-foreground`,e),...t}));n_.displayName=Eg.Description.displayName;var r_=_.forwardRef(({onInteractOutside:e,...t},n)=>(zg(!0),(0,j.jsx)(Eg.Content,{"data-matrx-entrance":`none`,...t,ref:n,"aria-modal":`true`,onInteractOutside:Hg(e)})));r_.displayName=`DrawerContentPrimitive`;var i_={bottom:`inset-x-0 bottom-0 mt-24 flex-col rounded-t-[10px] border-t pb-safe`,top:`inset-x-0 top-0 mb-24 flex-col rounded-b-[10px] border-b pt-safe`,left:`inset-y-0 left-0 mr-24 flex-row rounded-r-[10px] border-r`,right:`inset-y-0 right-0 ml-24 flex-row rounded-l-[10px] border-l`},a_={bottom:{adaptive:`h-auto max-h-[90dvh]`,full:`h-[92dvh]`},top:{adaptive:`h-auto max-h-[90dvh]`,full:`h-[92dvh]`},left:{adaptive:`w-auto max-w-[92vw]`,full:`h-dvh w-[92vw] max-w-sm`},right:{adaptive:`w-auto max-w-[92vw]`,full:`h-dvh w-[92vw] max-w-sm`}},o_=_.forwardRef(({className:e,children:t,size:n=`adaptive`,showHandle:r,...i},a)=>{let o=Zg(),s=Og(t,n_)||Og(t,Eg.Description),c=r??(o===`bottom`||o===`top`);return(0,j.jsxs)(e_,{children:[(0,j.jsx)(t_,{}),(0,j.jsxs)(r_,{ref:a,"data-slot":`drawer-content`,"data-direction":o,className:Z(`fixed z-[10000] flex min-w-0 border bg-background`,i_[o],a_[o][n],e),...s?{}:{"aria-describedby":void 0},...i,children:[c?(0,j.jsx)(`div`,{"aria-hidden":!0,"data-slot":`drawer-handle`,className:Z(`flex min-h-11 w-full shrink-0 cursor-grab items-center justify-center active:cursor-grabbing`,o===`top`&&`order-last`),children:(0,j.jsx)(`div`,{className:`h-1 w-[100px] rounded-full bg-muted`})}):null,t]})]})});o_.displayName=`DrawerContent`;var s_=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(Eg.Title,{ref:n,"data-slot":`drawer-title`,className:Z(`text-lg font-semibold leading-none tracking-tight`,e),...t}));s_.displayName=Eg.Title.displayName;var c_=Symbol.for(`@ai-matrx/design-system/error-actions`),l_=globalThis,u_=l_[c_]??(l_[c_]=_.createContext(null));function d_(){return _.useContext(u_)}function f_(e){let t=d_();return t?(0,j.jsx)(j.Fragment,{children:t(e)}):null}var p_=_.forwardRef(function({as:e=`p`,message:t,title:n,error:r,operation:i,records:a,unsavedInput:o,origin:s,children:c,...l},u){let d=e,f={...t===void 0?{}:{message:t},...n===void 0?{}:{title:n},...r===void 0?{}:{error:r},...i===void 0?{}:{operation:i},...a===void 0?{}:{records:a},...o===void 0?{}:{unsavedInput:o},...s===void 0?{}:{origin:s}};return(0,j.jsxs)(d,{ref:u,role:`alert`,"data-error-box":``,...l,children:[c??t,(0,j.jsx)(f_,{...f})]})}),m_=ip(`matrx-glyph-trim inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-0 disabled:opacity-50 active:scale-[0.98] [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0`,{variants:{variant:{default:`bg-primary text-primary-foreground shadow-sm hover:bg-primary/90`,primary:`bg-primary text-primary-foreground shadow-sm hover:bg-primary/90`,destructive:`bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90`,success:`bg-success text-success-foreground shadow-sm hover:bg-success/90`,outline:`border border-border bg-card shadow-sm hover:bg-accent hover:text-accent-foreground`,secondary:`bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80`,ghost:`hover:bg-accent hover:text-accent-foreground`,link:`text-primary underline-offset-4 hover:underline`,subtle:`border border-transparent bg-muted/50 text-foreground hover:border-border hover:bg-muted`},size:{xs:`h-6 rounded-md px-1 text-xs`,sm:`h-8 rounded-md px-3 text-xs`,default:`h-9 px-4 py-2`,md:`h-9 px-4 py-2`,lg:`h-10 rounded-md px-6`,xl:`h-12 px-8 py-3 text-base`,"2xl":`h-14 px-10 py-3 text-base`,"3xl":`h-16 px-12 py-3 text-base`,icon:`h-9 w-9`,"icon-sm":`h-7 w-7`,roundIcon:`h-8 w-8 rounded-full p-0`}},defaultVariants:{variant:`default`,size:`default`}}),h_=new Set([`xs`,`sm`,`default`,`md`,`lg`,`icon`,`icon-sm`,`roundIcon`]),g_=new Set([`icon`,`icon-sm`,`roundIcon`]);function __(e){e.preventDefault(),e.stopPropagation()}var v_=_.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,onClick:i,...a},o)=>{let s=r?Ki:`button`,c=n??`default`,l=r&&!!a.disabled,u=a[`aria-disabled`],d=l||u===!0||u===`true`;return(0,j.jsx)(s,{className:Z(m_({variant:t,size:n,className:e})),"data-matrx-button":``,"data-tap-floor":h_.has(c)?``:void 0,"data-tap-floor-square":g_.has(c)?``:void 0,ref:o,...a,"aria-disabled":l?!0:u,tabIndex:l?-1:a.tabIndex,onClick:d?__:i})});v_.displayName=`Button`;var y_=`(max-width: 767px)`;function b_(){return typeof window<`u`&&typeof window.matchMedia==`function`}function x_(e){if(!b_())return()=>{};let t=window.matchMedia(y_);return t.addEventListener(`change`,e),()=>t.removeEventListener(`change`,e)}function S_(){return b_()?window.matchMedia(y_).matches:typeof window<`u`&&window.innerWidth<768}function C_(){return!1}function w_(){return _.useSyncExternalStore(x_,S_,C_)}var T_=Object.defineProperty,E_=(e,t)=>T_(e,`name`,{value:t,configurable:!0}),D_=!1;function O_(){let[e,t]=_.useState(D_);return _.useEffect(()=>{D_||(D_=!0,t(!0))},[]),e}E_(O_,`useIsHydrated`);var k_=_.useSyncExternalStore;function A_(){return()=>{}}E_(A_,`subscribe`);function j_(){return k_(A_,()=>!0,()=>!1)}E_(j_,`useIsHydratedModern`);var M_=typeof k_==`function`?j_:O_,N_=Object.defineProperty,P_=(e,t)=>N_(e,`name`,{value:t,configurable:!0}),F_=`rovingFocusGroup.onEntryFocus`,I_={bubbles:!1,cancelable:!0},L_=`RovingFocusGroup`,[R_,z_,B_]=Pf(L_),[V_,H_]=Vi(L_,[B_]),[U_,W_]=V_(L_),G_=_.forwardRef(P_(function(e,t){return(0,j.jsx)(R_.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,j.jsx)(R_.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,j.jsx)(K_,{...e,ref:t})})})},`RovingFocusGroup`)),K_=_.forwardRef(P_(function(e,t){let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...d}=e,f=_.useRef(null),p=H(t,f),m=qf(a),[h,g]=kc({prop:o,defaultProp:s??null,onChange:c,caller:L_}),[v,y]=_.useState(!1),b=ua(l),x=z_(n),S=_.useRef(!1),[C,w]=_.useState(0);return _.useEffect(()=>{let e=f.current;if(e)return e.addEventListener(F_,b),()=>e.removeEventListener(F_,b)},[b]),(0,j.jsx)(U_,{scope:n,orientation:r,dir:m,loop:i,currentTabStopId:h,onItemFocus:_.useCallback(e=>g(e),[g]),onItemShiftTab:_.useCallback(()=>y(!0),[]),onFocusableItemAdd:_.useCallback(()=>w(e=>e+1),[]),onFocusableItemRemove:_.useCallback(()=>w(e=>e-1),[]),children:(0,j.jsx)(W.div,{tabIndex:v||C===0?-1:0,"data-orientation":r,...d,ref:p,style:{outline:`none`,...e.style},onMouseDown:V(e.onMouseDown,()=>{S.current=!0}),onFocus:V(e.onFocus,e=>{let t=!S.current;if(e.target===e.currentTarget&&t&&!v){let t=new CustomEvent(F_,I_);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=x().filter(e=>e.focusable);Q_([e.find(e=>e.active),e.find(e=>e.id===h),...e].filter(Boolean).map(e=>e.ref.current),u)}}S.current=!1}),onBlur:V(e.onBlur,()=>y(!1))})})},`RovingFocusGroupImpl`)),q_=`RovingFocusGroupItem`,J_=_.forwardRef(P_(function(e,t){let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:o,...s}=e,c=Aa(),l=a||c,u=W_(q_,n),d=u.currentTabStopId===l,f=z_(n),{onFocusableItemAdd:p,onFocusableItemRemove:m,currentTabStopId:h}=u,g=M_();return Ta(()=>{if(g&&r)return p(),()=>m()},[g,r,p,m]),_.useEffect(()=>{if(!g&&r)return p(),()=>m()},[g,r,p,m]),(0,j.jsx)(R_.ItemSlot,{scope:n,id:l,focusable:r,active:i,children:(0,j.jsx)(W.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:V(e.onMouseDown,e=>{r?u.onItemFocus(l):e.preventDefault()}),onFocus:V(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:V(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){u.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=Z_(e,u.orientation,u.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=f().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=u.loop?$_(n,r+1):n.slice(r+1)}setTimeout(()=>Q_(n))}}),children:typeof o==`function`?o({isCurrentTabStop:d,hasTabStop:h!=null}):o})})},`RovingFocusGroupItem`)),Y_={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function X_(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}P_(X_,`getDirectionAwareKey`);function Z_(e,t,n){let r=X_(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return Y_[r]}P_(Z_,`getFocusIntent`);function Q_(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}P_(Q_,`focusFirst`);function $_(e,t){return e.map((n,r)=>e[(t+r)%e.length])}P_($_,`wrapArray`);var ev=G_,tv=J_,nv=Object.defineProperty,rv=(e,t)=>nv(e,`name`,{value:t,configurable:!0}),iv=[`Enter`,` `],av=[`ArrowDown`,`PageUp`,`Home`],ov=[`ArrowUp`,`PageDown`,`End`],sv=[...av,...ov],cv={ltr:[...iv,`ArrowRight`],rtl:[...iv,`ArrowLeft`]},lv={ltr:[`ArrowLeft`],rtl:[`ArrowRight`]},uv=`Menu`,[dv,fv,pv]=Pf(uv),[mv,hv]=Vi(uv,[pv,Js,H_]),gv=Js(),_v=H_(),[vv,yv]=mv(uv),[bv,xv]=mv(uv),Sv=rv(e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,s=gv(t),[c,l]=_.useState(null),u=_.useRef(!1),d=ua(a),f=qf(i);return _.useEffect(()=>{let e=rv(()=>{u.current=!0,document.addEventListener(`pointerdown`,t,{capture:!0,once:!0}),document.addEventListener(`pointermove`,t,{capture:!0,once:!0})},`handleKeyDown`),t=rv(()=>u.current=!1,`handlePointer`);return document.addEventListener(`keydown`,e,{capture:!0}),()=>{document.removeEventListener(`keydown`,e,{capture:!0}),document.removeEventListener(`pointerdown`,t,{capture:!0}),document.removeEventListener(`pointermove`,t,{capture:!0})}},[]),_.useEffect(()=>{if(!n)return;let e=rv(()=>d(!1),`handleBlur`);return window.addEventListener(`blur`,e),()=>window.removeEventListener(`blur`,e)},[n,d]),(0,j.jsx)(sc,{...s,children:(0,j.jsx)(vv,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:l,children:(0,j.jsx)(bv,{scope:t,onClose:_.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:f,modal:o,children:r})})})},`Menu`),Cv=_.forwardRef(rv(function(e,t){let{__scopeMenu:n,...r}=e,i=gv(n);return(0,j.jsx)(cc,{...i,...r,ref:t})},`MenuAnchor`)),wv=`MenuPortal`,[Tv,Ev]=mv(wv,{forceMount:void 0}),Dv=rv(e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=yv(wv,t);return(0,j.jsx)(Tv,{scope:t,forceMount:n,children:(0,j.jsx)(hc,{present:n||a.open,children:(0,j.jsx)(dc,{asChild:!0,container:i,children:r})})})},`MenuPortal`),Ov=`MenuContent`,[kv,Av]=mv(Ov),jv=_.forwardRef(rv(function(e,t){let n=Ev(Ov,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=yv(Ov,e.__scopeMenu),o=xv(Ov,e.__scopeMenu);return(0,j.jsx)(dv.Provider,{scope:e.__scopeMenu,children:(0,j.jsx)(hc,{present:r||a.open,children:(0,j.jsx)(dv.Slot,{scope:e.__scopeMenu,children:o.modal?(0,j.jsx)(Mv,{...i,ref:t}):(0,j.jsx)(Nv,{...i,ref:t})})})})},`MenuContent`)),Mv=_.forwardRef(rv(function(e,t){let n=yv(Ov,e.__scopeMenu),r=_.useRef(null),i=H(t,r);return _.useEffect(()=>{let e=r.current;if(e)return Gm(e)},[]),(0,j.jsx)(Fv,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:V(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})},`MenuRootContentModal`)),Nv=_.forwardRef(rv(function(e,t){let n=yv(Ov,e.__scopeMenu);return(0,j.jsx)(Fv,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})},`MenuRootContentNonModal`)),Pv=Gi(`MenuContent.ScrollLock`),Fv=_.forwardRef(rv(function(e,t){let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEntryFocus:c,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,disableOutsideScroll:m,...h}=e,g=yv(Ov,n),v=xv(Ov,n),y=gv(n),b=_v(n),x=fv(n),[S,C]=_.useState(null),w=_.useRef(null),T=H(t,w,g.onContentChange),E=_.useRef(0),D=_.useRef(``),O=_.useRef(0),k=_.useRef(null),A=_.useRef(`right`),M=_.useRef(0),N=m?Im:_.Fragment,P=m?{as:Pv,allowPinchZoom:!0}:void 0,F=rv(e=>{let t=D.current+e,n=x().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,a=fy(n.map(e=>e.textValue),t,i),o=n.find(e=>e.textValue===a)?.ref.current;rv((function e(t){D.current=t,window.clearTimeout(E.current),t!==``&&(E.current=window.setTimeout(()=>e(``),1e3))}),`updateSearch`)(t),o&&setTimeout(()=>o.focus())},`handleTypeaheadSearch`);_.useEffect(()=>()=>window.clearTimeout(E.current),[]),Dp();let I=_.useCallback(e=>A.current===k.current?.side&&my(e,k.current?.area),[]);return(0,j.jsx)(kv,{scope:n,searchRef:D,onItemEnter:_.useCallback(e=>{I(e)&&e.preventDefault()},[I]),onItemLeave:_.useCallback(e=>{I(e)||(w.current?.focus(),C(null))},[I]),onTriggerLeave:_.useCallback(e=>{I(e)&&e.preventDefault()},[I]),pointerGraceTimerRef:O,onPointerGraceIntentChange:_.useCallback(e=>{k.current=e},[]),children:(0,j.jsx)(N,{...P,children:(0,j.jsx)(up,{asChild:!0,trapped:i,onMountAutoFocus:V(a,e=>{e.preventDefault(),w.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:(0,j.jsx)(va,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,children:(0,j.jsx)(ev,{asChild:!0,...b,dir:v.dir,orientation:`vertical`,loop:r,currentTabStopId:S,onCurrentTabStopIdChange:C,onEntryFocus:V(c,e=>{v.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,j.jsx)(lc,{role:`menu`,"aria-orientation":`vertical`,"data-state":sy(g.open),"data-radix-menu-content":``,dir:v.dir,...y,...h,ref:T,style:{outline:`none`,...h.style},onKeyDown:V(h.onKeyDown,e=>{let t=e.target.closest(`[data-radix-menu-content]`)===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=e.key.length===1;t&&(e.key===`Tab`&&e.preventDefault(),!n&&r&&F(e.key));let i=w.current;if(e.target!==i||!sv.includes(e.key))return;e.preventDefault();let a=x().filter(e=>!e.disabled).map(e=>e.ref.current);ov.includes(e.key)&&a.reverse(),uy(a)}),onBlur:V(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(E.current),D.current=``)}),onPointerMove:V(e.onPointerMove,hy(e=>{let t=e.target,n=M.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>M.current?`right`:`left`;A.current=t,M.current=e.clientX}}))})})})})})})},`MenuContentImpl`)),Iv=_.forwardRef(rv(function(e,t){let{__scopeMenu:n,...r}=e;return(0,j.jsx)(W.div,{role:`group`,...r,ref:t})},`MenuGroup`)),Lv=_.forwardRef(rv(function(e,t){let{__scopeMenu:n,...r}=e;return(0,j.jsx)(W.div,{...r,ref:t})},`MenuLabel`)),Rv=`MenuItem`,zv=`menu.itemSelect`,Bv=_.forwardRef(rv(function(e,t){let{disabled:n=!1,onSelect:r,...i}=e,a=_.useRef(null),o=xv(Rv,e.__scopeMenu),s=Av(Rv,e.__scopeMenu),c=H(t,a),l=_.useRef(!1),u=rv(()=>{let e=a.current;if(!n&&e){let t=new CustomEvent(zv,{bubbles:!0,cancelable:!0});e.addEventListener(zv,e=>r?.(e),{once:!0}),sa(e,t),t.defaultPrevented?l.current=!1:o.onClose()}},`handleSelect`);return(0,j.jsx)(Vv,{...i,ref:c,disabled:n,onClick:V(e.onClick,u),onPointerDown:t=>{e.onPointerDown?.(t),l.current=!0},onPointerUp:V(e.onPointerUp,e=>{l.current||e.currentTarget?.click()}),onKeyDown:V(e.onKeyDown,e=>{n||e.target!==e.currentTarget||(s.searchRef.current===``||e.key!==` `)&&iv.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})},`MenuItem`)),Vv=_.forwardRef(rv(function(e,t){let{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,o=Av(Rv,n),s=_v(n),c=_.useRef(null),l=H(t,c),[u,d]=_.useState(!1),[f,p]=_.useState(``);return _.useEffect(()=>{let e=c.current;e&&p((e.textContent??``).trim())},[a.children]),(0,j.jsx)(dv.ItemSlot,{scope:n,disabled:r,textValue:i??f,children:(0,j.jsx)(tv,{asChild:!0,...s,focusable:!r,children:(0,j.jsx)(W.div,{role:`menuitem`,"data-highlighted":u?``:void 0,"aria-disabled":r||void 0,"data-disabled":r?``:void 0,...a,ref:l,onPointerMove:V(e.onPointerMove,hy(e=>{r?o.onItemLeave(e):(o.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:V(e.onPointerLeave,hy(e=>o.onItemLeave(e))),onFocus:V(e.onFocus,()=>d(!0)),onBlur:V(e.onBlur,()=>d(!1))})})})},`MenuItemImpl`)),Hv=_.forwardRef(rv(function(e,t){let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,j.jsx)(Yv,{scope:e.__scopeMenu,checked:n,children:(0,j.jsx)(Bv,{role:`menuitemcheckbox`,"aria-checked":cy(n)?`mixed`:n,...i,ref:t,"data-state":ly(n),onSelect:V(i.onSelect,()=>r?.(cy(n)?!0:!n),{checkForDefaultPrevented:!1})})})},`MenuCheckboxItem`)),[Uv,Wv]=mv(`MenuRadioGroup`,{value:void 0,onValueChange:rv(()=>{},`onValueChange`)}),Gv=_.forwardRef(rv(function(e,t){let{value:n,onValueChange:r,...i}=e,a=ua(r);return(0,j.jsx)(Uv,{scope:e.__scopeMenu,value:n,onValueChange:a,children:(0,j.jsx)(Iv,{...i,ref:t})})},`MenuRadioGroup`)),Kv=`MenuRadioItem`,qv=_.forwardRef(rv(function(e,t){let{value:n,...r}=e,i=Wv(Kv,e.__scopeMenu),a=n===i.value;return(0,j.jsx)(Yv,{scope:e.__scopeMenu,checked:a,children:(0,j.jsx)(Bv,{role:`menuitemradio`,"aria-checked":a,...r,ref:t,"data-state":ly(a),onSelect:V(r.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})},`MenuRadioItem`)),Jv=`MenuItemIndicator`,[Yv,Xv]=mv(Jv,{checked:!1}),Zv=_.forwardRef(rv(function(e,t){let{__scopeMenu:n,forceMount:r,...i}=e,a=Xv(Jv,n);return(0,j.jsx)(hc,{present:r||cy(a.checked)||a.checked===!0,children:(0,j.jsx)(W.span,{...i,ref:t,"data-state":ly(a.checked)})})},`MenuItemIndicator`)),Qv=_.forwardRef(rv(function(e,t){let{__scopeMenu:n,...r}=e;return(0,j.jsx)(W.div,{role:`separator`,"aria-orientation":`horizontal`,...r,ref:t})},`MenuSeparator`)),$v=`MenuSub`,[ey,ty]=mv($v),ny=rv(e=>{let{__scopeMenu:t,children:n,open:r=!1,onOpenChange:i}=e,a=yv($v,t),o=gv(t),[s,c]=_.useState(null),[l,u]=_.useState(null),d=ua(i);return _.useEffect(()=>(a.open===!1&&d(!1),()=>d(!1)),[a.open,d]),(0,j.jsx)(sc,{...o,children:(0,j.jsx)(vv,{scope:t,open:r,onOpenChange:d,content:l,onContentChange:u,children:(0,j.jsx)(ey,{scope:t,contentId:Aa(),triggerId:Aa(),trigger:s,onTriggerChange:c,children:n})})})},`MenuSub`),ry=`MenuSubTrigger`,iy=_.forwardRef(rv(function(e,t){let n=yv(ry,e.__scopeMenu),r=xv(ry,e.__scopeMenu),i=ty(ry,e.__scopeMenu),a=Av(ry,e.__scopeMenu),o=_.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:c}=a,l={__scopeMenu:e.__scopeMenu},u=_.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);_.useEffect(()=>u,[u]),_.useEffect(()=>{let e=s.current;return()=>{window.clearTimeout(e),c(null)}},[s,c]);let d=H(t,i.onTriggerChange);return(0,j.jsx)(Cv,{asChild:!0,...l,children:(0,j.jsx)(Vv,{id:i.triggerId,"aria-haspopup":`menu`,"aria-expanded":n.open,"aria-controls":n.open?i.contentId:void 0,"data-state":sy(n.open),...e,ref:d,onClick:t=>{e.onClick?.(t),!(e.disabled||t.defaultPrevented)&&(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:V(e.onPointerMove,hy(t=>{a.onItemEnter(t),!t.defaultPrevented&&!e.disabled&&!n.open&&!o.current&&(a.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{n.onOpenChange(!0),u()},100))})),onPointerLeave:V(e.onPointerLeave,hy(e=>{u();let t=n.content?.getBoundingClientRect();if(t){let r=n.content?.dataset.side,i=r===`right`,o=i?-5:5,c=t[i?`left`:`right`],l=t[i?`right`:`left`];a.onPointerGraceIntentChange({area:[{x:e.clientX+o,y:e.clientY},{x:c,y:t.top},{x:l,y:t.top},{x:l,y:t.bottom},{x:c,y:t.bottom}],side:r}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:V(e.onKeyDown,t=>{e.disabled||t.target!==t.currentTarget||(a.searchRef.current===``||t.key!==` `)&&cv[r.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})},`MenuSubTrigger`)),ay=`MenuSubContent`,oy=_.forwardRef(rv(function(e,t){let n=Ev(Ov,e.__scopeMenu),{forceMount:r=n.forceMount,align:i=`start`,...a}=e,o=yv(Ov,e.__scopeMenu),s=xv(Ov,e.__scopeMenu),c=ty(ay,e.__scopeMenu),l=_.useRef(null),u=H(t,l);return(0,j.jsx)(dv.Provider,{scope:e.__scopeMenu,children:(0,j.jsx)(hc,{present:r||o.open,children:(0,j.jsx)(dv.Slot,{scope:e.__scopeMenu,children:(0,j.jsx)(Fv,{id:c.contentId,"aria-labelledby":c.triggerId,...a,ref:u,align:i,side:s.dir===`rtl`?`left`:`right`,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{s.isUsingKeyboardRef.current&&l.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:V(e.onFocusOutside,e=>{e.target!==c.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:V(e.onEscapeKeyDown,e=>{s.onClose(),e.preventDefault()}),onKeyDown:V(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=lv[s.dir].includes(e.key);t&&n&&(o.onOpenChange(!1),c.trigger?.focus(),e.preventDefault())})})})})})},`MenuSubContent`));function sy(e){return e?`open`:`closed`}rv(sy,`getOpenState`);function cy(e){return e===`indeterminate`}rv(cy,`isIndeterminate`);function ly(e){return cy(e)?`indeterminate`:e?`checked`:`unchecked`}rv(ly,`getCheckedState`);function uy(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}rv(uy,`focusFirst`);function dy(e,t){return e.map((n,r)=>e[(t+r)%e.length])}rv(dy,`wrapArray`);function fy(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=dy(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}rv(fy,`getNextMatch`);function py(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}rv(py,`isPointInPolygon`);function my(e,t){return t?py({x:e.clientX,y:e.clientY},t):!1}rv(my,`isPointerInGraceArea`);function hy(e){return t=>t.pointerType===`mouse`?e(t):void 0}rv(hy,`whenMouse`);var gy=Sv,_y=Cv,vy=Dv,yy=jv,by=Lv,xy=Bv,Sy=Hv,Cy=Gv,wy=qv,Ty=Zv,Ey=Qv,Dy=ny,Oy=iy,ky=oy,Ay=Object.defineProperty,jy=(e,t)=>Ay(e,`name`,{value:t,configurable:!0}),My=`ContextMenu`,[Ny,Py]=Vi(My,[hv]),Fy=hv(),[Iy,Ly]=Ny(My),Ry=jy(e=>{let{__scopeContextMenu:t,children:n,onOpenChange:r,open:i,dir:a,modal:o=!0}=e,s=_.useRef(!1),[c,l]=kc({prop:i,defaultProp:!1,onChange:r,caller:My}),u=Fy(t);return(0,j.jsx)(Iy,{scope:t,open:c,onOpenChange:l,modal:o,hasInteractedRef:s,children:(0,j.jsx)(gy,{...u,dir:a,open:c,onOpenChange:l,modal:o,children:n})})},`ContextMenu`),zy=`ContextMenuTrigger`,By=_.forwardRef(jy(function(e,t){let{__scopeContextMenu:n,disabled:r=!1,...i}=e,a=Ly(zy,n),o=Fy(n),[s,c]=_.useState({x:0,y:0}),l=_.useMemo(()=>({current:{getBoundingClientRect:jy(()=>DOMRect.fromRect({width:0,height:0,...s}),`getBoundingClientRect`)}}),[s]),u=_.useRef(0),d=_.useCallback(()=>window.clearTimeout(u.current),[]),f=jy(e=>{a.hasInteractedRef.current=!0,c({x:e.clientX,y:e.clientY}),a.onOpenChange(!0)},`handleOpen`);return _.useEffect(()=>d,[d]),_.useEffect(()=>void(r&&d()),[r,d]),(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(_y,{...o,virtualRef:l}),(0,j.jsx)(W.span,{"data-state":a.open?`open`:`closed`,"data-disabled":r?``:void 0,...i,ref:t,style:{WebkitTouchCallout:`none`,...e.style},onContextMenu:r?e.onContextMenu:V(e.onContextMenu,e=>{d(),f(e),e.preventDefault()}),onPointerDown:r?e.onPointerDown:V(e.onPointerDown,eb(e=>{d(),a.open&&a.onOpenChange(!1),u.current=window.setTimeout(()=>f(e),700)})),onPointerMove:r?e.onPointerMove:V(e.onPointerMove,eb(d)),onPointerCancel:r?e.onPointerCancel:V(e.onPointerCancel,eb(d)),onPointerUp:r?e.onPointerUp:V(e.onPointerUp,eb(d))})]})},`ContextMenuTrigger`)),Vy=jy(e=>{let{__scopeContextMenu:t,...n}=e,r=Fy(t);return(0,j.jsx)(vy,{...r,...n})},`ContextMenuPortal`),Hy=`ContextMenuContent`,Uy=_.forwardRef(jy(function(e,t){let{__scopeContextMenu:n,...r}=e,i=Ly(Hy,n),a=Fy(n),o=_.useRef(!1);return(0,j.jsx)(yy,{...a,...r,ref:t,side:`right`,sideOffset:2,align:`start`,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),!t.defaultPrevented&&o.current&&t.preventDefault(),o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),!t.defaultPrevented&&!i.modal&&(o.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-context-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-context-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-context-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-context-menu-trigger-height":`var(--radix-popper-anchor-height)`}})},`ContextMenuContent`)),Wy=_.forwardRef(jy(function(e,t){let{__scopeContextMenu:n,...r}=e,i=Fy(n);return(0,j.jsx)(by,{...i,...r,ref:t})},`ContextMenuLabel`)),Gy=_.forwardRef(jy(function(e,t){let{__scopeContextMenu:n,...r}=e,i=Fy(n);return(0,j.jsx)(xy,{...i,...r,ref:t})},`ContextMenuItem`)),Ky=_.forwardRef(jy(function(e,t){let{__scopeContextMenu:n,...r}=e,i=Fy(n);return(0,j.jsx)(Sy,{...i,...r,ref:t})},`ContextMenuCheckboxItem`)),qy=_.forwardRef(jy(function(e,t){let{__scopeContextMenu:n,...r}=e,i=Fy(n);return(0,j.jsx)(wy,{...i,...r,ref:t})},`ContextMenuRadioItem`)),Jy=_.forwardRef(jy(function(e,t){let{__scopeContextMenu:n,...r}=e,i=Fy(n);return(0,j.jsx)(Ty,{...i,...r,ref:t})},`ContextMenuItemIndicator`)),Yy=_.forwardRef(jy(function(e,t){let{__scopeContextMenu:n,...r}=e,i=Fy(n);return(0,j.jsx)(Ey,{...i,...r,ref:t})},`ContextMenuSeparator`)),Xy=`ContextMenuSub`,Zy=jy(e=>{let{__scopeContextMenu:t,children:n,onOpenChange:r,open:i,defaultOpen:a}=e,o=Fy(t),[s,c]=kc({prop:i,defaultProp:a??!1,onChange:r,caller:Xy});return(0,j.jsx)(Dy,{...o,open:s,onOpenChange:c,children:n})},`ContextMenuSub`),Qy=_.forwardRef(jy(function(e,t){let{__scopeContextMenu:n,...r}=e,i=Fy(n);return(0,j.jsx)(Oy,{...i,...r,ref:t})},`ContextMenuSubTrigger`)),$y=_.forwardRef(jy(function(e,t){let{__scopeContextMenu:n,...r}=e,i=Fy(n);return(0,j.jsx)(ky,{...i,...r,ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-context-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-context-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-context-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-context-menu-trigger-height":`var(--radix-popper-anchor-height)`}})},`ContextMenuSubContent`));function eb(e){return t=>t.pointerType===`mouse`?void 0:e(t)}jy(eb,`whenTouchOrPen`);var tb=Ry,nb=By,rb=Vy,ib=Uy,ab=Wy,ob=Gy,sb=Ky,cb=qy,lb=Jy,ub=Yy,db=Zy,fb=Qy,pb=$y,mb=2;function hb(){let[e,t]=(0,_.useState)({top:!1,bottom:!1}),n=(0,_.useRef)(null),r=(0,_.useRef)(null),i=(0,_.useCallback)(()=>{let e=n.current;if(!e)return;let r=e.scrollHeight-e.clientHeight>mb,i={top:r&&e.scrollTop>mb,bottom:r&&e.scrollTop+e.clientHeight<e.scrollHeight-mb};t(e=>e.top===i.top&&e.bottom===i.bottom?e:i)},[]),a=(0,_.useCallback)(e=>{if(r.current?.(),r.current=null,n.current=e,!e)return;e.addEventListener(`scroll`,i,{passive:!0});let t=typeof ResizeObserver>`u`?null:new ResizeObserver(i);t?.observe(e);let a=new MutationObserver(i);a.observe(e,{childList:!0,subtree:!0}),r.current=()=>{e.removeEventListener(`scroll`,i),t?.disconnect(),a.disconnect()},requestAnimationFrame(i)},[i]);return(0,_.useEffect)(()=>()=>r.current?.(),[]),{ref:a,state:e,fadeProps:{"data-fade-top":e.top?``:void 0,"data-fade-bottom":e.bottom?``:void 0,className:`matrx-scroll-fade`}}}var gb=.6,_b=48;function vb(...e){return t=>{for(let n of e)typeof n==`function`?n(t):n&&(n.current=t)}}function yb({side:e,scroller:t}){let n=_.useRef(null),r=e===`top`?-1:1,i=_.useCallback(()=>{n.current!==null&&cancelAnimationFrame(n.current),n.current=null},[]),a=_.useCallback(()=>{i();let e=performance.now(),a=o=>{let s=t.current;if(!s)return i();s.scrollTop+=r*gb*(o-e),e=o,n.current=requestAnimationFrame(a)};n.current=requestAnimationFrame(a)},[r,t,i]);return _.useEffect(()=>i,[i]),(0,j.jsx)(`div`,{"aria-hidden":!0,"data-menu-scroll-edge":e,className:`matrx-menu-scroll-edge`,children:(0,j.jsx)(`div`,{className:`matrx-menu-scroll-fade`,children:(0,j.jsx)(`div`,{"data-menu-scroll-button":``,className:`matrx-menu-scroll-button`,onPointerEnter:e=>{e.pointerType!==`touch`&&a()},onPointerLeave:i,onPointerDown:e=>{e.preventDefault();let n=t.current;n&&(n.scrollTop+=r*Math.max(n.clientHeight-_b,_b))},children:e===`top`?(0,j.jsx)(tp,{}):(0,j.jsx)(ep,{})})})})}function bb(...e){let t=hb(),n=_.useRef(null);return{ref:_.useCallback(vb(n,t.ref,...e),[t.ref,...e]),wrap:e=>(0,j.jsxs)(j.Fragment,{children:[t.state.top?(0,j.jsx)(yb,{side:`top`,scroller:n}):null,e,t.state.bottom?(0,j.jsx)(yb,{side:`bottom`,scroller:n}):null]}),surfaceClassName:`matrx-menu-surface`}}function xb(e,t){let n=_.useRef(null);return{ref:_.useCallback(t=>{n.current=t,typeof e==`function`?e(t):e&&(e.current=t)},[e]),onFocusOutside:e=>{if(t?.(e),e.defaultPrevented)return;let r=e.target,i=n.current?.id;r instanceof Element&&i&&r.getAttribute(`role`)===`menu`&&Array.from(r.querySelectorAll(`[aria-controls]`)).some(e=>e.getAttribute(`aria-controls`)===i)&&e.preventDefault()}}}var Sb=_.createContext(null);function Cb(e,t){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:{top:e?.top??t,right:e?.right??t,bottom:e?.bottom??t,left:e?.left??t}}function wb(e,t,n){if(!e)return t;let r=e.getAttribute(`data-side`);if(r!==`left`&&r!==`right`)return t;let i=e.ownerDocument.defaultView,a=i?.getComputedStyle(e).direction===`rtl`?`left`:`right`;if(r===a)return t;let o=Cb(t,0),s=e.getBoundingClientRect();if(a===`right`){let r=n??e.ownerDocument.documentElement.clientWidth??i?.innerWidth??0;if(!r)return t;o.right=Math.max(o.right,r-s.left)}else o.left=Math.max(o.left,s.right);return o}function Tb(e,t){let n=_.useContext(Sb),r=_.useRef(null);return{ref:_.useCallback(t=>{r.current=t,typeof e==`function`?e(t):e&&(e.current=t)},[e]),padding:wb(n?.current??null,t),wrap:e=>(0,j.jsx)(Sb.Provider,{value:r,children:e})}}var Eb=tb,Db=nb,Ob=db,kb=`z-[10001] min-w-[8rem] max-h-[var(--radix-context-menu-content-available-height)] overflow-y-auto overflow-x-hidden overscroll-contain rounded-md border bg-popover p-1 text-popover-foreground`,Ab=`relative flex select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:opacity-50`,jb=`relative flex select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:opacity-50`,Mb=_.forwardRef(({className:e,inset:t,children:n,...r},i)=>(0,j.jsxs)(fb,{ref:i,"data-slot":`context-menu-sub-trigger`,className:Z(`flex select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground`,t&&`pl-8`,e),...r,children:[n,(0,j.jsx)($f,{className:`ml-auto h-4 w-4`})]}));Mb.displayName=fb.displayName;var Nb=_.forwardRef(({className:e,container:t,onFocusOutside:n,collisionPadding:r,children:i,...a},o)=>{let s=ed(t),c=Tb(o,r),l=xb(c.ref,n),u=bb(l.ref);return(0,j.jsx)(rb,{container:s,children:(0,j.jsx)(pb,{ref:u.ref,onFocusOutside:l.onFocusOutside,...c.padding===void 0?{}:{collisionPadding:c.padding},"data-slot":`context-menu-sub-content`,className:Z(kb,u.surfaceClassName,`shadow-lg`,Ju,e),...a,children:c.wrap(u.wrap(i))})})});Nb.displayName=pb.displayName;var Pb=_.forwardRef(({className:e,container:t,children:n,...r},i)=>{let a=ed(t),o=bb(i);return(0,j.jsx)(rb,{container:a,children:(0,j.jsx)(ib,{ref:o.ref,"data-slot":`context-menu-content`,className:Z(kb,o.surfaceClassName,`shadow-md`,Ju,e),...r,children:o.wrap(n)})})});Pb.displayName=ib.displayName;var Fb=_.forwardRef(({className:e,inset:t,...n},r)=>(0,j.jsx)(ob,{ref:r,"data-slot":`context-menu-item`,className:Z(Ab,`gap-2 [&>svg]:size-4 [&>svg]:shrink-0`,t&&`pl-8`,e),...n}));Fb.displayName=ob.displayName;var Ib=_.forwardRef(({className:e,children:t,...n},r)=>(0,j.jsxs)(sb,{ref:r,"data-slot":`context-menu-checkbox-item`,className:Z(jb,e),...n,children:[(0,j.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,j.jsx)(lb,{children:(0,j.jsx)(Zf,{className:`h-4 w-4`})})}),t]}));Ib.displayName=sb.displayName;var Lb=_.forwardRef(({className:e,children:t,...n},r)=>(0,j.jsxs)(cb,{ref:r,"data-slot":`context-menu-radio-item`,className:Z(jb,e),...n,children:[(0,j.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,j.jsx)(lb,{children:(0,j.jsx)(Qf,{className:`h-4 w-4 fill-current`})})}),t]}));Lb.displayName=cb.displayName;var Rb=_.forwardRef(({className:e,inset:t,...n},r)=>(0,j.jsx)(ab,{ref:r,"data-slot":`context-menu-label`,className:Z(`px-2 py-1.5 text-sm font-semibold text-foreground`,t&&`pl-8`,e),...n}));Rb.displayName=ab.displayName;var zb=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(ub,{ref:n,"data-slot":`context-menu-separator`,className:Z(`-mx-1 my-1 h-px bg-border`,e),...t}));zb.displayName=ub.displayName;var Bb=Object.defineProperty,Vb=(e,t)=>Bb(e,`name`,{value:t,configurable:!0});function Hb(e,[t,n]){return Math.min(n,Math.max(t,e))}Vb(Hb,`clamp`);var Ub=Object.defineProperty,Wb=(e,t)=>Ub(e,`name`,{value:t,configurable:!0});function Gb(e){let t=_.useRef({value:e,previous:e});return _.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}Wb(Gb,`usePrevious`);var Kb=Object.defineProperty,qb=(e,t)=>Kb(e,`name`,{value:t,configurable:!0}),Jb=[` `,`Enter`,`ArrowUp`,`ArrowDown`],Yb=[` `,`Enter`],Xb=`Select`,[Zb,Qb,$b]=Pf(Xb),[ex,tx]=Vi(Xb,[$b,Js]),nx=Js(),[rx,ix]=ex(Xb),[ax,ox]=ex(Xb);function sx(e){let{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:a,value:o,defaultValue:s,onValueChange:c,dir:l,name:u,autoComplete:d,disabled:f,required:p,form:m,internal_do_not_use_render:h}=e,g=nx(t),[v,y]=_.useState(null),[b,x]=_.useState(null),[S,C]=_.useState(!1),w=qf(l),[T,E]=kc({prop:r,defaultProp:i??!1,onChange:a,caller:Xb}),[D,O]=kc({prop:o,defaultProp:s,onChange:c,caller:Xb}),k=_.useRef(null),A=_.useRef(D);_.useEffect(()=>{let e=m?v?.ownerDocument.getElementById(m):v?.form;if(e instanceof HTMLFormElement){let t=qb(()=>O(A.current),`reset`);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[m,v,O]);let M=!v||!!m||!!v.closest(`form`),[N,P]=_.useState(new Set),F=Aa(),I=Array.from(N).map(e=>e.props.value).join(`;`),L=_.useCallback(e=>{P(t=>new Set(t).add(e))},[]),ee=_.useCallback(e=>{P(t=>{let n=new Set(t);return n.delete(e),n})},[]),te={required:p,trigger:v,onTriggerChange:y,valueNode:b,onValueNodeChange:x,valueNodeHasChildren:S,onValueNodeHasChildrenChange:C,contentId:F,value:D,onValueChange:O,open:T,onOpenChange:E,dir:w,triggerPointerDownPosRef:k,disabled:f,name:u,autoComplete:d,form:m,nativeOptions:N,nativeSelectKey:I,isFormControl:M};return(0,j.jsx)(sc,{...g,children:(0,j.jsx)(rx,{scope:t,...te,children:(0,j.jsx)(Zb.Provider,{scope:t,children:(0,j.jsx)(ax,{scope:t,onNativeOptionAdd:L,onNativeOptionRemove:ee,children:Zx(h)?h(te):n})})})})}qb(sx,`SelectProvider`);var cx=qb(e=>{let{__scopeSelect:t,children:n,...r}=e;return(0,j.jsx)(sx,{__scopeSelect:t,...r,internal_do_not_use_render:({isFormControl:e})=>(0,j.jsxs)(j.Fragment,{children:[n,e?(0,j.jsx)(Xx,{__scopeSelect:t}):null]})})},`Select`),lx=`SelectTrigger`,ux=_.forwardRef(qb(function(e,t){let{__scopeSelect:n,disabled:r=!1,...i}=e,a=nx(n),o=ix(lx,n),s=o.disabled||r,c=H(t,o.onTriggerChange),l=Qb(n),u=_.useRef(`touch`),[d,f,p]=$x(e=>{let t=l().filter(e=>!e.disabled),n=eS(t,e,t.find(e=>e.value===o.value));n!==void 0&&o.onValueChange(n.value)}),m=qb(e=>{s||(o.onOpenChange(!0),p()),e&&(o.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})},`handleOpen`);return(0,j.jsx)(cc,{asChild:!0,...a,children:(0,j.jsx)(W.button,{type:`button`,role:`combobox`,"aria-controls":o.open?o.contentId:void 0,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":`none`,dir:o.dir,"data-state":o.open?`open`:`closed`,disabled:s,"data-disabled":s?``:void 0,"data-placeholder":Qx(o.value)?``:void 0,...i,ref:c,onClick:V(i.onClick,e=>{e.currentTarget.focus(),u.current!==`mouse`&&m(e)}),onPointerDown:V(i.onPointerDown,e=>{u.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&e.pointerType===`mouse`&&(m(e),e.preventDefault())}),onKeyDown:V(i.onKeyDown,e=>{let t=d.current!==``;!(e.ctrlKey||e.altKey||e.metaKey)&&e.key.length===1&&f(e.key),!(t&&e.key===` `)&&Jb.includes(e.key)&&(m(),e.preventDefault())})})})},`SelectTrigger`)),dx=`SelectValue`,fx=_.forwardRef(qb(function(e,t){let{__scopeSelect:n,className:r,style:i,children:a,placeholder:o=``,...s}=e,c=ix(dx,n),{onValueNodeHasChildrenChange:l}=c,u=a!==void 0,d=H(t,c.onValueNodeChange);Ta(()=>{l(u)},[l,u]);let f=Qx(c.value);return(0,j.jsx)(W.span,{...s,asChild:!f&&s.asChild,ref:d,style:{pointerEvents:`none`},children:(0,j.jsx)(_.Fragment,{children:f?o:a},f?`placeholder`:`value`)})},`SelectValue`)),px=_.forwardRef(qb(function(e,t){let{__scopeSelect:n,children:r,...i}=e;return(0,j.jsx)(W.span,{"aria-hidden":!0,...i,ref:t,children:r||`▼`})},`SelectIcon`)),[mx,hx]=ex(`SelectPortal`,{forceMount:void 0}),gx=qb(e=>{let{__scopeSelect:t,forceMount:n,...r}=e;return(0,j.jsx)(mx,{scope:e.__scopeSelect,forceMount:n,children:(0,j.jsx)(dc,{asChild:!0,...r})})},`SelectPortal`),_x=`SelectContent`,vx=_.forwardRef(qb(function(e,t){let n=hx(_x,e.__scopeSelect),{forceMount:r=n.forceMount,...i}=e,a=ix(_x,e.__scopeSelect),[o,s]=_.useState();return Ta(()=>{s(new DocumentFragment)},[]),(0,j.jsx)(hc,{present:r||a.open,children:({present:e})=>e?(0,j.jsx)(wx,{...i,ref:t}):(0,j.jsx)(yx,{...i,fragment:o})})},`SelectContent`)),yx=_.forwardRef(qb(function(e,t){let{__scopeSelect:n,children:r,fragment:i}=e;return i?ia.createPortal((0,j.jsx)(xx,{scope:n,children:(0,j.jsx)(Zb.Slot,{scope:n,children:(0,j.jsx)(`div`,{ref:t,children:r})})}),i):null},`SelectContentFragment`)),bx=10,[xx,Sx]=ex(_x),Cx=Gi(`SelectContent.RemoveScroll`),wx=_.forwardRef(qb(function(e,t){let{__scopeSelect:n}=e,{position:r=`item-aligned`,onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:o,side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:g,...v}=e,y=ix(_x,n),[b,x]=_.useState(null),[S,C]=_.useState(null),w=H(t,x),[T,E]=_.useState(null),[D,O]=_.useState(null),k=Qb(n),[A,M]=_.useState(!1),N=_.useRef(!1);_.useEffect(()=>{if(b)return Gm(b)},[b]),Dp();let P=_.useCallback(e=>{let[t,...n]=k().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(n?.scrollIntoView({block:`nearest`}),n===t&&S&&(S.scrollTop=0),n===r&&S&&(S.scrollTop=S.scrollHeight),n?.focus(),document.activeElement!==i))return},[k,S]),F=_.useCallback(()=>P([T,b]),[P,T,b]);_.useEffect(()=>{A&&F()},[A,F]);let{onOpenChange:I,triggerPointerDownPosRef:L}=y;_.useEffect(()=>{if(b){let e={x:0,y:0},t=qb(t=>{e={x:Math.abs(Math.round(t.pageX)-(L.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(L.current?.y??0))}},`handlePointerMove`),n=qb(n=>{e.x<=10&&e.y<=10?n.preventDefault():n.composedPath().includes(b)||I(!1),document.removeEventListener(`pointermove`,t),L.current=null},`handlePointerUp`);return L.current!==null&&(document.addEventListener(`pointermove`,t),document.addEventListener(`pointerup`,n,{capture:!0,once:!0})),()=>{document.removeEventListener(`pointermove`,t),document.removeEventListener(`pointerup`,n,{capture:!0})}}},[b,I,L]),_.useEffect(()=>{let e=qb(()=>I(!1),`close`);return window.addEventListener(`blur`,e),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`blur`,e),window.removeEventListener(`resize`,e)}},[I]);let[ee,te]=$x(e=>{let t=k().filter(e=>!e.disabled),n=eS(t,e,t.find(e=>e.ref.current===document.activeElement));n&&setTimeout(()=>n.ref.current?.focus())}),ne=_.useCallback((e,t,n)=>{let r=!N.current&&!n;(y.value!==void 0&&y.value===t||r)&&(E(e),r&&(N.current=!0))},[y.value]),re=_.useCallback(()=>b?.focus(),[b]),ie=_.useCallback((e,t,n)=>{let r=!N.current&&!n;(y.value!==void 0&&y.value===t||r)&&O(e)},[y.value]),ae=r===`popper`?Ex:Tx,oe=ae===Ex?{side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:g}:{};return(0,j.jsx)(xx,{scope:n,content:b,viewport:S,onViewportChange:C,itemRefCallback:ne,selectedItem:T,onItemLeave:re,itemTextRefCallback:ie,focusSelectedItem:F,selectedItemText:D,position:r,isPositioned:A,searchRef:ee,children:(0,j.jsx)(Im,{as:Cx,allowPinchZoom:!0,children:(0,j.jsx)(up,{asChild:!0,trapped:y.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:V(i,e=>{y.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,j.jsx)(va,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:(0,j.jsx)(ae,{role:`listbox`,id:y.contentId,"data-state":y.open?`open`:`closed`,dir:y.dir,onContextMenu:e=>e.preventDefault(),...v,...oe,onPlaced:()=>M(!0),ref:w,style:{display:`flex`,flexDirection:`column`,outline:`none`,...v.style},onKeyDown:V(v.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if(e.key===`Tab`&&e.preventDefault(),!t&&e.key.length===1&&te(e.key),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key)){let t=k().filter(e=>!e.disabled).map(e=>e.ref.current);if([`ArrowUp`,`End`].includes(e.key)&&(t=t.slice().reverse()),[`ArrowUp`,`ArrowDown`].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>P(t)),e.preventDefault()}})})})})})})},`SelectContentImpl`)),Tx=_.forwardRef(qb(function(e,t){let{__scopeSelect:n,onPlaced:r,...i}=e,a=ix(_x,n),o=Sx(_x,n),[s,c]=_.useState(null),[l,u]=_.useState(null),d=H(t,u),f=Qb(n),p=_.useRef(!1),m=_.useRef(!0),{viewport:h,selectedItem:g,selectedItemText:v,focusSelectedItem:y}=o,b=_.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&l&&h&&g&&v){let e=a.trigger.getBoundingClientRect(),t=l.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),i=v.getBoundingClientRect();if(a.dir!==`rtl`){let r=i.left-t.left,a=n.left-r,o=e.left-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-bx,d=Hb(a,[bx,Math.max(bx,u-l)]);s.style.minWidth=c+`px`,s.style.left=d+`px`}else{let r=t.right-i.right,a=window.innerWidth-n.right-r,o=window.innerWidth-e.right-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-bx,d=Hb(a,[bx,Math.max(bx,u-l)]);s.style.minWidth=c+`px`,s.style.right=d+`px`}let o=f(),c=window.innerHeight-bx*2,u=h.scrollHeight,d=window.getComputedStyle(l),m=parseInt(d.borderTopWidth,10),_=parseInt(d.paddingTop,10),y=parseInt(d.borderBottomWidth,10),b=parseInt(d.paddingBottom,10),x=m+_+u+b+y,S=Math.min(g.offsetHeight*5,x),C=window.getComputedStyle(h),w=parseInt(C.paddingTop,10),T=parseInt(C.paddingBottom,10),E=e.top+e.height/2-bx,D=c-E,O=g.offsetHeight/2,k=g.offsetTop+O,A=m+_+k,j=x-A;if(A<=E){let e=o.length>0&&g===o[o.length-1].ref.current;s.style.bottom=`0px`;let t=l.clientHeight-h.offsetTop-h.offsetHeight,n=A+Math.max(D,O+(e?T:0)+t+y);s.style.height=n+`px`}else{let e=o.length>0&&g===o[0].ref.current;s.style.top=`0px`;let t=Math.max(E,m+h.offsetTop+(e?w:0)+O)+j;s.style.height=t+`px`,h.scrollTop=A-E+h.offsetTop}s.style.margin=`${bx}px 0`,s.style.minHeight=S+`px`,s.style.maxHeight=c+`px`,r?.(),requestAnimationFrame(()=>p.current=!0)}},[f,a.trigger,a.valueNode,s,l,h,g,v,a.dir,r]);Ta(()=>b(),[b]);let[x,S]=_.useState();Ta(()=>{l&&S(window.getComputedStyle(l).zIndex)},[l]);let C=_.useCallback(e=>{e&&m.current===!0&&(b(),y?.(),m.current=!1)},[b,y]);return(0,j.jsx)(Dx,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:p,onScrollButtonChange:C,children:(0,j.jsx)(`div`,{ref:c,style:{display:`flex`,flexDirection:`column`,position:`fixed`,zIndex:x},children:(0,j.jsx)(W.div,{...i,ref:d,style:{boxSizing:`border-box`,maxHeight:`100%`,...i.style}})})})},`SelectItemAlignedPosition`)),Ex=_.forwardRef(qb(function(e,t){let{__scopeSelect:n,align:r=`start`,collisionPadding:i=bx,...a}=e,o=nx(n);return(0,j.jsx)(lc,{...o,...a,ref:t,align:r,collisionPadding:i,style:{boxSizing:`border-box`,...a.style,"--radix-select-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-select-content-available-width":`var(--radix-popper-available-width)`,"--radix-select-content-available-height":`var(--radix-popper-available-height)`,"--radix-select-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-select-trigger-height":`var(--radix-popper-anchor-height)`}})},`SelectPopperPosition`)),[Dx,Ox]=ex(_x,{}),kx=`SelectViewport`,Ax=_.forwardRef(qb(function(e,t){let{__scopeSelect:n,nonce:r,...i}=e,a=Sx(kx,n),o=Ox(kx,n),s=H(t,a.onViewportChange),c=_.useRef(0);return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}`},nonce:r}),(0,j.jsx)(Zb.Slot,{scope:n,children:(0,j.jsx)(W.div,{"data-radix-select-viewport":``,role:`presentation`,...i,ref:s,style:{position:`relative`,flex:1,overflow:`hidden auto`,...i.style},onScroll:V(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=o;if(r?.current&&n){let e=Math.abs(c.current-t.scrollTop);if(e>0){let r=window.innerHeight-bx*2,i=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),o=Math.max(i,a);if(o<r){let i=o+e,a=Math.min(r,i),s=i-a;n.style.height=a+`px`,n.style.bottom===`0px`&&(t.scrollTop=s>0?s:0,n.style.justifyContent=`flex-end`)}}}c.current=t.scrollTop})})})]})},`SelectViewport`)),[jx,Mx]=ex(`SelectGroup`),Nx=`SelectLabel`,Px=_.forwardRef(qb(function(e,t){let{__scopeSelect:n,...r}=e,i=Mx(Nx,n);return(0,j.jsx)(W.div,{id:i.id,...r,ref:t})},`SelectLabel`)),Fx=`SelectItem`,[Ix,Lx]=ex(Fx),Rx=_.forwardRef(qb(function(e,t){let{__scopeSelect:n,value:r,disabled:i=!1,textValue:a,...o}=e,s=ix(Fx,n),c=Sx(Fx,n),l=s.value===r,[u,d]=_.useState(a??``),[f,p]=_.useState(!1),m=H(t,ua(e=>c.itemRefCallback?.(e,r,i))),h=Aa(),g=_.useRef(`touch`),v=qb(()=>{i||(s.onValueChange(r),s.onOpenChange(!1))},`handleSelect`);return(0,j.jsx)(Ix,{scope:n,value:r,disabled:i,textId:h,isSelected:l,onItemTextChange:_.useCallback(e=>{d(t=>t||(e?.textContent??``).trim())},[]),children:(0,j.jsx)(Zb.ItemSlot,{scope:n,value:r,disabled:i,textValue:u,children:(0,j.jsx)(W.div,{role:`option`,"aria-labelledby":h,"data-highlighted":f?``:void 0,"aria-selected":l&&f,"data-state":l?`checked`:`unchecked`,"aria-disabled":i||void 0,"data-disabled":i?``:void 0,tabIndex:i?void 0:-1,...o,ref:m,onFocus:V(o.onFocus,()=>p(!0)),onBlur:V(o.onBlur,()=>p(!1)),onClick:V(o.onClick,()=>{g.current!==`mouse`&&v()}),onPointerUp:V(o.onPointerUp,()=>{g.current===`mouse`&&v()}),onPointerDown:V(o.onPointerDown,e=>{g.current=e.pointerType}),onPointerMove:V(o.onPointerMove,e=>{g.current=e.pointerType,i?c.onItemLeave?.():g.current===`mouse`&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:V(o.onPointerLeave,e=>{e.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:V(o.onKeyDown,e=>{i||e.target!==e.currentTarget||(c.searchRef?.current===``||e.key!==` `)&&(Yb.includes(e.key)&&v(),e.key===` `&&e.preventDefault())})})})})},`SelectItem`)),zx=`SelectItemText`,Bx=_.forwardRef(qb(function(e,t){let{__scopeSelect:n,className:r,style:i,...a}=e,o=ix(zx,n),s=Sx(zx,n),c=Lx(zx,n),l=ox(zx,n),[u,d]=_.useState(null),f=ua(e=>s.itemTextRefCallback?.(e,c.value,c.disabled)),p=H(t,d,c.onItemTextChange,f),m=u?.textContent,h=_.useMemo(()=>(0,j.jsx)(`option`,{value:c.value,disabled:c.disabled,children:m},c.value),[c.disabled,c.value,m]),{onNativeOptionAdd:g,onNativeOptionRemove:v}=l;return Ta(()=>(g(h),()=>v(h)),[g,v,h]),(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(W.span,{id:c.textId,...a,ref:p}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren&&!Qx(o.value)?ia.createPortal(a.children,o.valueNode):null]})},`SelectItemText`)),Vx=`SelectItemIndicator`,Hx=_.forwardRef(qb(function(e,t){let{__scopeSelect:n,...r}=e;return Lx(Vx,n).isSelected?(0,j.jsx)(W.span,{"aria-hidden":!0,...r,ref:t}):null},`SelectItemIndicator`)),Ux=`SelectScrollUpButton`,Wx=_.forwardRef(qb(function(e,t){let n=Sx(Ux,e.__scopeSelect),r=Ox(Ux,e.__scopeSelect),[i,a]=_.useState(!1),o=H(t,r.onScrollButtonChange);return Ta(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollTop>0;a(e)};qb(e,`handleScroll`);let t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,j.jsx)(qx,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop-=t.offsetHeight)}}):null},`SelectScrollUpButton`)),Gx=`SelectScrollDownButton`,Kx=_.forwardRef(qb(function(e,t){let n=Sx(Gx,e.__scopeSelect),r=Ox(Gx,e.__scopeSelect),[i,a]=_.useState(!1),o=H(t,r.onScrollButtonChange);return Ta(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;a(n)};qb(e,`handleScroll`);let t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,j.jsx)(qx,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop+=t.offsetHeight)}}):null},`SelectScrollDownButton`)),qx=_.forwardRef(qb(function(e,t){let{__scopeSelect:n,onAutoScroll:r,...i}=e,a=Sx(`SelectScrollButton`,n),o=_.useRef(null),s=Qb(n),c=_.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return _.useEffect(()=>()=>c(),[c]),Ta(()=>{s().find(e=>e.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:`nearest`})},[s]),(0,j.jsx)(W.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:V(i.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(r,50))}),onPointerMove:V(i.onPointerMove,()=>{a.onItemLeave?.(),o.current===null&&(o.current=window.setInterval(r,50))}),onPointerLeave:V(i.onPointerLeave,()=>{c()})})},`SelectScrollButtonImpl`)),Jx=_.forwardRef(qb(function(e,t){let{__scopeSelect:n,...r}=e;return(0,j.jsx)(W.div,{"aria-hidden":!0,...r,ref:t})},`SelectSeparator`)),Yx=`SelectBubbleInput`,Xx=_.forwardRef(qb(function({__scopeSelect:e,...t},n){let r=ix(Yx,e),{value:i,onValueChange:a,required:o,disabled:s,name:c,autoComplete:l,form:u}=r,{nativeOptions:d,nativeSelectKey:f}=r,p=_.useRef(null),m=H(n,p),h=i??``,g=Gb(h),v=Array.from(d).some(e=>(e.props.value??``)===``);return _.useEffect(()=>{let e=p.current;if(!e)return;let t=window.HTMLSelectElement.prototype,n=Object.getOwnPropertyDescriptor(t,`value`).set;if(g!==h&&n){let t=new Event(`change`,{bubbles:!0});n.call(e,h),e.dispatchEvent(t)}},[g,h]),(0,j.jsxs)(W.select,{"aria-hidden":!0,required:o,tabIndex:-1,name:c,autoComplete:l,disabled:s,form:u,onChange:e=>a(e.target.value),...t,style:{...Ic,...t.style},ref:m,defaultValue:h,children:[Qx(i)&&!v?(0,j.jsx)(`option`,{value:``}):null,Array.from(d)]},f)},`SelectBubbleInput`));function Zx(e){return typeof e==`function`}qb(Zx,`isFunction`);function Qx(e){return e===``||e===void 0}qb(Qx,`shouldShowPlaceholder`);function $x(e){let t=ua(e),n=_.useRef(``),r=_.useRef(0),i=_.useCallback(e=>{let i=n.current+e;t(i),qb((function e(t){n.current=t,window.clearTimeout(r.current),t!==``&&(r.current=window.setTimeout(()=>e(``),1e3))}),`updateSearch`)(i)},[t]),a=_.useCallback(()=>{n.current=``,window.clearTimeout(r.current)},[]);return _.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}qb($x,`useTypeaheadSearch`);function eS(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=tS(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}qb(eS,`findNextItem`);function tS(e,t){return e.map((n,r)=>e[(t+r)%e.length])}qb(tS,`wrapArray`);var nS=`border border-border bg-card`,rS=cx,iS=fx,aS=ip(`matrx-glyph-trim flex w-full items-center justify-between gap-2 whitespace-nowrap rounded-md ${nS} text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground transition-colors hover:bg-accent hover:border-accent-foreground/20 focus:outline-none focus:ring-1 focus:ring-primary/30 focus:border-primary/40 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:min-w-0 [&>span]:line-clamp-1`,{variants:{size:{sm:`h-7 px-2 py-1 text-xs`,default:`h-9 px-3 py-1`,lg:`h-10 px-3 py-2`}},defaultVariants:{size:`default`}});function oS({className:e,size:t=`default`}){return(0,j.jsx)(ep,{"aria-hidden":`true`,"data-select-chevron":``,className:Z(t===`sm`?`h-3.5 w-3.5`:`h-4 w-4`,`shrink-0 opacity-50`,e)})}var sS=_.forwardRef(({className:e,children:t,hideArrow:n=!1,size:r,...i},a)=>(0,j.jsxs)(ux,{ref:a,className:Z(aS({size:r,className:e})),...i,children:[t,!n&&(0,j.jsx)(px,{asChild:!0,children:(0,j.jsx)(oS,{size:r===`sm`?`sm`:`default`})})]}));sS.displayName=ux.displayName;var cS=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(Wx,{ref:n,className:Z(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,j.jsx)(tp,{})}));cS.displayName=Wx.displayName;var lS=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(Kx,{ref:n,className:Z(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,j.jsx)(ep,{})}));lS.displayName=Kx.displayName;var uS=_.forwardRef(({className:e,children:t,position:n=`popper`,container:r,animated:i=!0,...a},o)=>{let s=ed(r);return(0,j.jsx)(gx,{container:s,children:(0,j.jsxs)(vx,{ref:o,className:Z(`relative z-[10001] max-h-96 min-w-[8rem] max-w-[calc(100vw-2rem)] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md`,i&&`matrx-motion-popper`,n===`popper`&&`matrx-popper-offset`,e),position:n,...a,children:[(0,j.jsx)(cS,{}),(0,j.jsx)(Ax,{className:Z(`max-w-full overflow-y-auto p-0.5`,n===`popper`&&`w-full min-w-[var(--radix-select-trigger-width)] max-h-[var(--radix-select-content-available-height)]`),children:t}),(0,j.jsx)(lS,{})]})})});uS.displayName=vx.displayName;var dS=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(Px,{ref:n,className:Z(`px-2 py-1.5 text-sm font-semibold`,e),...t}));dS.displayName=Px.displayName;var fS=_.forwardRef(({className:e,children:t,description:n,...r},i)=>(0,j.jsxs)(Rx,{ref:i,className:Z(`relative flex w-full min-w-0 select-none rounded-sm py-1 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:opacity-50`,n?`flex-col items-start gap-0.5 py-1.5`:`items-center`,e),...r,children:[(0,j.jsx)(`span`,{className:`absolute right-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,j.jsx)(Hx,{children:(0,j.jsx)(Zf,{className:`h-4 w-4`})})}),(0,j.jsx)(`span`,{className:`min-w-0 whitespace-normal break-words [overflow-wrap:anywhere]`,children:(0,j.jsx)(Bx,{children:t})}),n?(0,j.jsx)(`span`,{className:`block min-w-0 break-words text-xs leading-snug text-muted-foreground [overflow-wrap:anywhere]`,children:n}):null]}));fS.displayName=Rx.displayName;var pS=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(Jx,{ref:n,className:Z(`-mx-1 my-1 h-px bg-muted`,e),...t}));pS.displayName=Jx.displayName;var mS=Object.defineProperty,hS=(e,t)=>mS(e,`name`,{value:t,configurable:!0}),gS=`Popover`,[_S,vS]=Vi(gS,[Js]),yS=Js(),[bS,xS]=_S(gS),SS=hS(e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!1}=e,s=yS(t),c=_.useRef(null),[l,u]=_.useState(!1),[d,f]=kc({prop:r,defaultProp:i??!1,onChange:a,caller:gS});return(0,j.jsx)(sc,{...s,children:(0,j.jsx)(bS,{scope:t,contentId:Aa(),triggerRef:c,open:d,onOpenChange:f,onOpenToggle:_.useCallback(()=>f(e=>!e),[f]),hasCustomAnchor:l,onCustomAnchorAdd:_.useCallback(()=>u(!0),[]),onCustomAnchorRemove:_.useCallback(()=>u(!1),[]),modal:o,children:n})})},`Popover`),CS=`PopoverTrigger`,wS=_.forwardRef(hS(function(e,t){let{__scopePopover:n,...r}=e,i=xS(CS,n),a=yS(n),o=H(t,i.triggerRef),s=(0,j.jsx)(W.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":FS(i.open),...r,ref:o,onClick:V(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?s:(0,j.jsx)(cc,{asChild:!0,...a,children:s})},`PopoverTrigger`)),TS=`PopoverPortal`,[ES,DS]=_S(TS,{forceMount:void 0}),OS=hS(e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=xS(TS,t);return(0,j.jsx)(ES,{scope:t,forceMount:n,children:(0,j.jsx)(hc,{present:n||a.open,children:(0,j.jsx)(dc,{asChild:!0,container:i,children:r})})})},`PopoverPortal`),kS=`PopoverContent`,AS=_.forwardRef(hS(function(e,t){let n=DS(kS,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=xS(kS,e.__scopePopover);return(0,j.jsx)(hc,{present:r||a.open,children:a.modal?(0,j.jsx)(MS,{...i,ref:t}):(0,j.jsx)(NS,{...i,ref:t})})},`PopoverContent`)),jS=Gi(`PopoverContent.RemoveScroll`),MS=_.forwardRef(hS(function(e,t){let n=xS(kS,e.__scopePopover),r=_.useRef(null),i=H(t,r),a=_.useRef(!1);return _.useEffect(()=>{let e=r.current;if(e)return Gm(e)},[]),(0,j.jsx)(Im,{as:jS,allowPinchZoom:!0,children:(0,j.jsx)(PS,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:V(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:V(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;a.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:V(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})},`PopoverContentModal`)),NS=_.forwardRef(hS(function(e,t){let n=xS(kS,e.__scopePopover),r=_.useRef(!1),i=_.useRef(!1);return(0,j.jsx)(PS,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})},`PopoverContentNonModal`)),PS=_.forwardRef(hS(function(e,t){let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,f=xS(kS,n),p=yS(n);return Dp(),(0,j.jsx)(up,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,j.jsx)(va,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>f.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,j.jsx)(lc,{"data-state":FS(f.open),role:`dialog`,id:f.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-popover-content-available-width":`var(--radix-popper-available-width)`,"--radix-popover-content-available-height":`var(--radix-popper-available-height)`,"--radix-popover-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-popover-trigger-height":`var(--radix-popper-anchor-height)`}})})})},`PopoverContentImpl`));function FS(e){return e?`open`:`closed`}hS(FS,`getState`);var IS=SS,LS=wS,RS=OS,zS=AS,BS=IS,VS=LS,HS=_.forwardRef(({className:e,align:t=`center`,sideOffset:n=4,container:r,animated:i=!0,sizing:a=`fixed`,surface:o=`default`,collisionPadding:s=16,...c},l)=>{let u=ed(r);return(0,j.jsx)(RS,{container:u,children:(0,j.jsx)(zS,{ref:l,align:t,sideOffset:n,collisionPadding:s,"data-surface":o===`solid`?`solid`:void 0,className:Z(`z-[10000] max-h-[var(--radix-popover-content-available-height)] overflow-y-auto overscroll-contain rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none`,a===`content`?`w-auto min-w-[min(max(var(--radix-popover-trigger-width),20rem),calc(100vw-2rem))] max-w-[min(28rem,calc(100vw-2rem))]`:`w-72 max-w-[calc(100vw-2rem)]`,o===`solid`&&`bg-[hsl(var(--popover)/1)] [backdrop-filter:none] [-webkit-backdrop-filter:none]`,i&&`matrx-motion-popper`,e),...c})})});HS.displayName=zS.displayName;var US=`matrx:layer-front`;function WS(e){typeof document<`u`&&document.dispatchEvent(new CustomEvent(US,{detail:{element:e}}))}var GS=_.createContext(!1),KS=({children:e,...t})=>{let n=w_(),r=t.modal??n;return(0,j.jsx)(GS.Provider,{value:t.modal===void 0,children:(0,j.jsx)(Jg,{modal:r,children:(0,j.jsx)($m,{...t,modal:r,children:e})})})};KS.displayName=`Dialog`;var qS=({container:e,...t})=>{let n=ed(e);return(0,j.jsx)(ah,{container:n??null,...t})};qS.displayName=`DialogPortal`;var JS=Symbol.for(`ai-matrx.design-system.dialog-container-context`),YS=globalThis,XS=YS[JS]??=_.createContext(null),ZS=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(sh,{ref:n,"data-slot":`dialog-overlay`,className:Z(`fixed inset-0 z-[10000] bg-[var(--matrx-overlay-scrim-soft)]`,qu,e),...t}));ZS.displayName=sh.displayName;var QS=_.forwardRef(({onInteractOutside:e,...t},n)=>{let r=Yg();return zg(r),(0,j.jsx)(dh,{...t,ref:n,"aria-modal":r||void 0,onInteractOutside:Hg(e)})});QS.displayName=`DialogContentPrimitive`;var $S=`matrx-dialog-card fixed inset-0 z-[10000] m-auto grid h-fit min-w-0 w-full max-w-lg gap-4 max-h-[85dvh] overflow-y-auto overscroll-contain [--dialog-pad:1.5rem] overflow-x-clip border bg-background p-6 shadow-lg [overflow-wrap:anywhere] [&>*]:min-w-0 [&>*]:max-w-full sm:rounded-lg`,eC=`matrx-mobile-sheet matrx-dialog-card fixed inset-x-0 bottom-0 left-0 right-0 top-auto z-[10000] flex min-w-0 flex-col w-full max-w-full max-h-[90dvh] gap-4 [--dialog-pad:1rem] overflow-x-clip border-t bg-background p-4 pb-safe shadow-lg [overflow-wrap:anywhere] [&>*]:min-w-0 [&>*]:max-w-full rounded-t-2xl rounded-b-none overflow-y-auto overscroll-contain`,tC=`inset-x-0 bottom-0 left-0 right-0 top-auto translate-none w-full max-w-full max-h-[90dvh] rounded-b-none rounded-t-2xl overflow-y-auto`,nC=_.createContext(null),rC=80;function iC(e){return e instanceof Element&&!!e.closest(`button, a, input, textarea, select, [role='button'], [contenteditable='true']`)}var aC=_.forwardRef(({className:e,children:t,mobileSheet:n=!0,animated:r=!0,showCloseButton:i=!0,container:a,dismissOnOutsideClick:o=!1,onInteractOutside:s,onEscapeKeyDown:c,onPointerDownCapture:l,onFocusCapture:u,style:d,...f},p)=>{let m=w_(),h=Yg(),g=ed(a),v=n&&m,y=!h&&!v,b=_.useContext(GS),[x,S]=_.useState(null),C=y&&b,[w,T]=_.useState(!1);_.useEffect(()=>{if(!C||!x)return;let e=e=>{let t=e.detail?.element??null;(!t||t!==x&&!x.contains(t))&&T(!0)};return document.addEventListener(US,e),WS(x),()=>document.removeEventListener(US,e)},[C,x]);let E=()=>{C&&x&&(T(!1),WS(x))},[D,O]=_.useState({x:0,y:0}),k=_.useRef(null),A=_.useMemo(()=>{if(!y)return null;let e=(e,t)=>Math.max(-t,Math.min(t,e));return{onPointerDown:e=>{e.button!==0||iC(e.target)||(k.current={x:e.clientX,y:e.clientY,baseX:D.x,baseY:D.y},e.currentTarget.setPointerCapture?.(e.pointerId))},onPointerMove:t=>{let n=k.current;n&&O({x:e(n.baseX+t.clientX-n.x,window.innerWidth/2-rC/2),y:e(n.baseY+t.clientY-n.y,window.innerHeight/2-rC/2)})},onPointerUp:e=>{k.current&&(k.current=null,e.currentTarget.releasePointerCapture?.(e.pointerId))},onPointerCancel:()=>{k.current=null},onDoubleClick:()=>O({x:0,y:0})}},[y,D.x,D.y]),M=_.useCallback(e=>{S(e),typeof p==`function`?p(e):p&&(p.current=e)},[p]),N=Og(t,cC)||Og(t,gh),P=Og(t,lC)||Og(t,vh);return(0,j.jsxs)(qS,{container:a,children:[h?(0,j.jsx)(ZS,{}):null,(0,j.jsxs)(QS,{ref:M,"data-slot":`dialog-content`,className:Z(v?eC:$S,r&&(v?`matrx-motion-bottom-sheet`:`matrx-motion-dialog`),e,v&&tC,!h&&!b&&`z-[900]`,C&&w&&`z-[999]`,y&&`shadow-2xl ring-1 ring-border/60`),style:y&&(D.x!==0||D.y!==0)?{...d,translate:`${D.x}px ${D.y}px`}:d,onPointerDownCapture:e=>{l?.(e),w&&E()},onFocusCapture:e=>{u?.(e),w&&E()},onInteractOutside:e=>{s?.(e),y&&!o&&e.preventDefault()},onEscapeKeyDown:e=>{c?.(e);let t=e.target instanceof Node&&e.target!==document.body?e.target:document.activeElement;y&&x&&!(t&&x.contains(t))&&e.preventDefault()},...P?{}:{"aria-describedby":void 0},...f,children:[N?null:(0,j.jsx)(Lc,{children:(0,j.jsx)(gh,{children:`Dialog`})}),(0,j.jsx)(XS.Provider,{value:x,children:(0,j.jsx)(nC.Provider,{value:A,children:(0,j.jsx)($u,{container:x??g??null,children:t})})}),i?(0,j.jsxs)(bh,{"data-slot":`dialog-close`,"aria-label":`Close`,className:`absolute right-2 top-4 flex h-11 w-11 items-center justify-center rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 data-[state=open]:bg-accent data-[state=open]:text-muted-foreground sm:right-4 lg:h-10 lg:w-10`,children:[(0,j.jsx)(Yf,{className:`h-4 w-4`}),(0,j.jsx)(`span`,{className:`sr-only`,children:`Close`})]}):null]})]})});aC.displayName=dh.displayName;var oC=({className:e,...t})=>{let n=_.useContext(nC);return(0,j.jsx)(`div`,{"data-slot":`dialog-header`,...n?{...n,"data-window-handle":``,title:`Drag to move · double-click to recenter`}:{},className:Z(`flex flex-col space-y-1.5 pr-12 text-center sm:text-left`,n&&`cursor-grab select-none active:cursor-grabbing`,e),...t})};oC.displayName=`DialogHeader`;var sC=({className:e,...t})=>(0,j.jsx)(`div`,{"data-slot":`dialog-footer`,className:Z(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end sm:gap-0 sm:space-x-2`,`sticky bottom-0 z-10 bg-background pt-3`,`mx-[calc(var(--dialog-pad,0px)*-1)] px-[var(--dialog-pad,0px)] pb-[var(--dialog-pad,0px)]`,e),...t});sC.displayName=`DialogFooter`;var cC=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(gh,{ref:n,"data-slot":`dialog-title`,className:Z(`text-lg font-semibold leading-none tracking-tight`,e),...t}));cC.displayName=gh.displayName;var lC=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(vh,{ref:n,"data-slot":`dialog-description`,className:Z(`text-sm text-muted-foreground`,e),...t}));lC.displayName=vh.displayName;var uC=Object.defineProperty,dC=(e,t)=>uC(e,`name`,{value:t,configurable:!0}),fC=`DropdownMenu`,[pC,mC]=Vi(fC,[hv]),hC=hv(),[gC,_C]=pC(fC),vC=dC(e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,c=hC(t),l=_.useRef(null),[u,d]=kc({prop:i,defaultProp:a??!1,onChange:o,caller:fC});return(0,j.jsx)(gC,{scope:t,triggerId:Aa(),triggerRef:l,contentId:Aa(),open:u,onOpenChange:d,onOpenToggle:_.useCallback(()=>d(e=>!e),[d]),modal:s,children:(0,j.jsx)(gy,{...c,open:u,onOpenChange:d,dir:r,modal:s,children:n})})},`DropdownMenu`),yC=`DropdownMenuTrigger`,bC=_.forwardRef(dC(function(e,t){let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=_C(yC,n),o=hC(n),s=H(t,a.triggerRef);return(0,j.jsx)(_y,{asChild:!0,...o,children:(0,j.jsx)(W.button,{type:`button`,id:a.triggerId,"aria-haspopup":`menu`,"aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?`open`:`closed`,"data-disabled":r?``:void 0,disabled:r,...i,ref:s,onPointerDown:V(e.onPointerDown,e=>{!r&&e.button===0&&e.ctrlKey===!1&&(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:V(e.onKeyDown,e=>{r||([`Enter`,` `].includes(e.key)&&a.onOpenToggle(),e.key===`ArrowDown`&&a.onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(e.key)&&e.preventDefault())})})})},`DropdownMenuTrigger`)),xC=dC(e=>{let{__scopeDropdownMenu:t,...n}=e,r=hC(t);return(0,j.jsx)(vy,{...r,...n})},`DropdownMenuPortal`),SC=`DropdownMenuContent`,CC=_.forwardRef(dC(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=_C(SC,n),a=hC(n),o=_.useRef(!1);return(0,j.jsx)(yy,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:V(e.onCloseAutoFocus,e=>{o.current||i.triggerRef.current?.focus(),o.current=!1,e.preventDefault()}),onInteractOutside:V(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;(!i.modal||r)&&(o.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})},`DropdownMenuContent`)),wC=_.forwardRef(dC(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=hC(n);return(0,j.jsx)(by,{...i,...r,ref:t})},`DropdownMenuLabel`)),TC=_.forwardRef(dC(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=hC(n);return(0,j.jsx)(xy,{...i,...r,ref:t})},`DropdownMenuItem`)),EC=_.forwardRef(dC(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=hC(n);return(0,j.jsx)(Sy,{...i,...r,ref:t})},`DropdownMenuCheckboxItem`)),DC=_.forwardRef(dC(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=hC(n);return(0,j.jsx)(Cy,{...i,...r,ref:t})},`DropdownMenuRadioGroup`)),OC=_.forwardRef(dC(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=hC(n);return(0,j.jsx)(wy,{...i,...r,ref:t})},`DropdownMenuRadioItem`)),kC=_.forwardRef(dC(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=hC(n);return(0,j.jsx)(Ty,{...i,...r,ref:t})},`DropdownMenuItemIndicator`)),AC=_.forwardRef(dC(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=hC(n);return(0,j.jsx)(Ey,{...i,...r,ref:t})},`DropdownMenuSeparator`)),jC=dC(e=>{let{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:i,defaultOpen:a}=e,o=hC(t),[s,c]=kc({prop:r,defaultProp:a??!1,onChange:i,caller:`DropdownMenuSub`});return(0,j.jsx)(Dy,{...o,open:s,onOpenChange:c,children:n})},`DropdownMenuSub`),MC=_.forwardRef(dC(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=hC(n);return(0,j.jsx)(Oy,{...i,...r,ref:t})},`DropdownMenuSubTrigger`)),NC=_.forwardRef(dC(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=hC(n);return(0,j.jsx)(ky,{...i,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})},`DropdownMenuSubContent`)),PC=vC,FC=bC,IC=xC,LC=CC,RC=wC,zC=TC,BC=EC,VC=DC,HC=OC,UC=kC,WC=AC,GC=jC,KC=MC,qC=NC,JC=PC,YC=FC,XC=GC,ZC=VC,QC=`z-[10001] min-w-[8rem] max-h-[var(--radix-dropdown-menu-content-available-height)] overflow-y-auto overflow-x-hidden overscroll-contain rounded-md border bg-popover p-1 text-popover-foreground`,$C=`relative flex select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:opacity-50`,ew=`relative flex select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:opacity-50`,tw=_.forwardRef(({className:e,inset:t,children:n,...r},i)=>(0,j.jsxs)(KC,{ref:i,"data-slot":`dropdown-menu-sub-trigger`,className:Z(`flex select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent`,t&&`pl-8`,e),...r,children:[n,(0,j.jsx)($f,{className:`ml-auto h-4 w-4`})]}));tw.displayName=KC.displayName;var nw=_.forwardRef(({className:e,container:t,surface:n=`default`,sideOffset:r=2,alignOffset:i=-4,collisionPadding:a=8,onFocusOutside:o,children:s,...c},l)=>{let u=ed(t),d=Tb(l,a),f=xb(d.ref,o),p=bb(f.ref);return(0,j.jsx)(IC,{container:u,children:(0,j.jsx)(qC,{ref:p.ref,onFocusOutside:f.onFocusOutside,"data-slot":`dropdown-menu-sub-content`,"data-surface":n===`solid`?`solid`:void 0,sideOffset:r,alignOffset:i,...d.padding===void 0?{}:{collisionPadding:d.padding},className:Z(QC,p.surfaceClassName,`shadow-lg`,n===`solid`&&`bg-[hsl(var(--popover)/1)] [backdrop-filter:none] [-webkit-backdrop-filter:none]`,Ju,e),...c,children:d.wrap(p.wrap(s))})})});nw.displayName=qC.displayName;var rw=_.forwardRef(({className:e,sideOffset:t=4,container:n,surface:r=`default`,children:i,...a},o)=>{let s=ed(n),c=bb(o);return(0,j.jsx)(IC,{container:s,children:(0,j.jsx)(LC,{ref:c.ref,"data-slot":`dropdown-menu-content`,"data-surface":r===`solid`?`solid`:void 0,sideOffset:t,className:Z(QC,c.surfaceClassName,`shadow-md`,r===`solid`&&`bg-[hsl(var(--popover)/1)] [backdrop-filter:none] [-webkit-backdrop-filter:none]`,Ju,e),...a,children:c.wrap(i)})})});rw.displayName=LC.displayName;var iw=_.forwardRef(({className:e,inset:t,...n},r)=>(0,j.jsx)(zC,{ref:r,"data-slot":`dropdown-menu-item`,className:Z($C,t&&`pl-8`,e),...n}));iw.displayName=zC.displayName;var aw=_.forwardRef(({className:e,children:t,...n},r)=>(0,j.jsxs)(BC,{ref:r,"data-slot":`dropdown-menu-checkbox-item`,className:Z(ew,e),...n,children:[(0,j.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,j.jsx)(UC,{children:(0,j.jsx)(Zf,{className:`h-4 w-4`})})}),t]}));aw.displayName=BC.displayName;var ow=_.forwardRef(({className:e,children:t,...n},r)=>(0,j.jsxs)(HC,{ref:r,"data-slot":`dropdown-menu-radio-item`,className:Z(ew,e),...n,children:[(0,j.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,j.jsx)(UC,{children:(0,j.jsx)(Qf,{className:`h-4 w-4 fill-current`})})}),t]}));ow.displayName=HC.displayName;var sw=_.forwardRef(({className:e,inset:t,...n},r)=>(0,j.jsx)(RC,{ref:r,"data-slot":`dropdown-menu-label`,className:Z(`px-2 py-1.5 text-sm font-semibold`,t&&`pl-8`,e),...n}));sw.displayName=RC.displayName;var cw=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(WC,{ref:n,"data-slot":`dropdown-menu-separator`,className:Z(`-mx-1 my-1 h-px bg-muted`,e),...t}));cw.displayName=WC.displayName;var lw=(e=`default`)=>{let t=`flex h-10 w-full ${nS} text-foreground shadow-input rounded-md px-3 py-2 text-sm file:border-0 file:bg-transparent
|
|
58
|
+
){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}`);function Th(){let e=navigator.userAgent;return typeof window<`u`&&(/Firefox/.test(e)&&/Mobile/.test(e)||/FxiOS/.test(e))}function Eh(){return jh(/^Mac/)}function Dh(){return jh(/^iPhone/)}function Oh(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function kh(){return jh(/^iPad/)||Eh()&&navigator.maxTouchPoints>1}function Ah(){return Dh()||kh()}function jh(e){return typeof window<`u`&&window.navigator!=null?e.test(window.navigator.platform):void 0}var Mh=24,Nh=typeof window<`u`?_.useLayoutEffect:_.useEffect;function Ph(...e){return(...t)=>{for(let n of e)typeof n==`function`&&n(...t)}}var Fh=typeof document<`u`&&window.visualViewport;function Ih(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function Lh(e){for(Ih(e)&&(e=e.parentElement);e&&!Ih(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}var Rh=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]),zh=0,Bh;function Vh(e={}){let{isDisabled:t}=e;Nh(()=>{if(!t)return zh++,zh===1&&Ah()&&(Bh=Hh()),()=>{zh--,zh===0&&Bh?.()}},[t])}function Hh(){let e,t=0,n=n=>{e=Lh(n.target),(e!==document.documentElement||e!==document.body)&&(t=n.changedTouches[0].pageY)},r=n=>{if(!e||e===document.documentElement||e===document.body){n.preventDefault();return}let r=n.changedTouches[0].pageY,i=e.scrollTop,a=e.scrollHeight-e.clientHeight;a!==0&&((i<=0&&r>t||i>=a&&r<t)&&n.preventDefault(),t=r)},i=e=>{let t=e.target;Kh(t)&&t!==document.activeElement&&(e.preventDefault(),t.style.transform=`translateY(-2000px)`,t.focus(),requestAnimationFrame(()=>{t.style.transform=``}))},a=e=>{let t=e.target;Kh(t)&&(t.style.transform=`translateY(-2000px)`,requestAnimationFrame(()=>{t.style.transform=``,Fh&&(Fh.height<window.innerHeight?requestAnimationFrame(()=>{Gh(t)}):Fh.addEventListener(`resize`,()=>Gh(t),{once:!0}))}))},o=()=>{window.scrollTo(0,0)},s=window.pageXOffset,c=window.pageYOffset,l=Ph(Uh(document.documentElement,`paddingRight`,`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let u=Ph(Wh(document,`touchstart`,n,{passive:!1,capture:!0}),Wh(document,`touchmove`,r,{passive:!1,capture:!0}),Wh(document,`touchend`,i,{passive:!1,capture:!0}),Wh(document,`focus`,a,!0),Wh(window,`scroll`,o));return()=>{l(),u(),window.scrollTo(s,c)}}function Uh(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Wh(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Gh(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let t=Lh(e);if(t!==document.documentElement&&t!==document.body&&t!==e){let n=t.getBoundingClientRect().top,r=e.getBoundingClientRect().top;e.getBoundingClientRect().bottom>t.getBoundingClientRect().bottom+Mh&&(t.scrollTop+=r-n)}e=t.parentElement}}function Kh(e){return e instanceof HTMLInputElement&&!Rh.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function qh(e,t){typeof e==`function`?e(t):e!=null&&(e.current=t)}function Jh(...e){return t=>e.forEach(e=>qh(e,t))}function Yh(...e){return _.useCallback(Jh(...e),e)}var Xh=new WeakMap;function Zh(e,t,n=!1){if(!e||!(e instanceof HTMLElement))return;let r={};Object.entries(t).forEach(([t,n])=>{if(t.startsWith(`--`)){e.style.setProperty(t,n);return}r[t]=e.style[t],e.style[t]=n}),!n&&Xh.set(e,r)}function Qh(e,t){if(!e||!(e instanceof HTMLElement))return;let n=Xh.get(e);n&&(e.style[t]=n[t])}var $h=e=>{switch(e){case`top`:case`bottom`:return!0;case`left`:case`right`:return!1;default:return e}};function eg(e,t){if(!e)return null;let n=window.getComputedStyle(e),r=n.transform||n.webkitTransform||n.mozTransform,i=r.match(/^matrix3d\((.+)\)$/);return i?parseFloat(i[1].split(`, `)[$h(t)?13:12]):(i=r.match(/^matrix\((.+)\)$/),i?parseFloat(i[1].split(`, `)[$h(t)?5:4]):null)}function tg(e){return 8*(Math.log(e+1)-2)}function ng(e,t){if(!e)return()=>{};let n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}var rg={DURATION:.5,EASE:[.32,.72,0,1]},ig=.4,ag=.25,og=100,sg=8,cg=16,lg=26,ug=`vaul-dragging`;function dg(e){let t=_.useRef(e);return _.useEffect(()=>{t.current=e}),_.useMemo(()=>(...e)=>t.current==null?void 0:t.current.call(t,...e),[])}function fg({defaultProp:e,onChange:t}){let n=_.useState(e),[r]=n,i=_.useRef(r),a=dg(t);return _.useEffect(()=>{i.current!==r&&(a(r),i.current=r)},[r,i,a]),n}function pg({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,i]=fg({defaultProp:t,onChange:n}),a=e!==void 0,o=a?e:r,s=dg(n);return[o,_.useCallback(t=>{if(a){let n=typeof t==`function`?t(e):t;n!==e&&s(n)}else i(t)},[a,e,i,s])]}function mg({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:i,fadeFromIndex:a,onSnapPointChange:o,direction:s=`bottom`,container:c,snapToSequentialPoint:l}){let[u,d]=pg({prop:e,defaultProp:n?.[0],onChange:t}),[f,p]=_.useState(typeof window<`u`?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);_.useEffect(()=>{function e(){p({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]);let m=_.useMemo(()=>u===n?.[n.length-1]||null,[n,u]),h=_.useMemo(()=>n?.findIndex(e=>e===u)??null,[n,u]),g=n&&n.length>0&&(a||a===0)&&!Number.isNaN(a)&&n[a]===u||!n,v=_.useMemo(()=>{let e=c?{width:c.getBoundingClientRect().width,height:c.getBoundingClientRect().height}:typeof window<`u`?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};return n?.map(t=>{let n=typeof t==`string`,r=0;if(n&&(r=parseInt(t,10)),$h(s)){let i=n?r:f?t*e.height:0;return f?s===`bottom`?e.height-i:-e.height+i:i}let i=n?r:f?t*e.width:0;return f?s===`right`?e.width-i:-e.width+i:i})??[]},[n,f,c]),y=_.useMemo(()=>h===null?null:v?.[h],[v,h]),b=_.useCallback(e=>{let t=v?.findIndex(t=>t===e)??null;o(t),Zh(r.current,{transition:`transform ${rg.DURATION}s cubic-bezier(${rg.EASE.join(`,`)})`,transform:$h(s)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`}),v&&t!==v.length-1&&a!==void 0&&t!==a&&t<a?Zh(i.current,{transition:`opacity ${rg.DURATION}s cubic-bezier(${rg.EASE.join(`,`)})`,opacity:`0`}):Zh(i.current,{transition:`opacity ${rg.DURATION}s cubic-bezier(${rg.EASE.join(`,`)})`,opacity:`1`}),d(n?.[Math.max(t,0)])},[r.current,n,v,a,i,d]);_.useEffect(()=>{if(u||e){let t=n?.findIndex(t=>t===e||t===u)??-1;v&&t!==-1&&typeof v[t]==`number`&&b(v[t])}},[u,e,n,v,b]);function x({draggedDistance:e,closeDrawer:t,velocity:r,dismissible:o}){if(a===void 0)return;let c=s===`bottom`||s===`right`?(y??0)-e:(y??0)+e,u=h===a-1,d=h===0,f=e>0;if(u&&Zh(i.current,{transition:`opacity ${rg.DURATION}s cubic-bezier(${rg.EASE.join(`,`)})`}),!l&&r>2&&!f){o?t():b(v[0]);return}if(!l&&r>2&&f&&v&&n){b(v[n.length-1]);return}let p=v?.reduce((e,t)=>typeof e!=`number`||typeof t!=`number`?e:Math.abs(t-c)<Math.abs(e-c)?t:e),g=$h(s)?window.innerHeight:window.innerWidth;if(r>ig&&Math.abs(e)<g*.4){let e=f?1:-1;if(e>0&&m&&n){b(v[n.length-1]);return}if(d&&e<0&&o&&t(),h===null)return;b(v[h+e]);return}b(p)}function S({draggedDistance:e}){if(y===null)return;let t=s===`bottom`||s===`right`?y-e:y+e;(s===`bottom`||s===`right`)&&t<v[v.length-1]||(s===`top`||s===`left`)&&t>v[v.length-1]||Zh(r.current,{transform:$h(s)?`translate3d(0, ${t}px, 0)`:`translate3d(${t}px, 0, 0)`})}function C(e,t){if(!n||typeof h!=`number`||!v||a===void 0)return null;let r=h===a-1;if(h>=a&&t)return 0;if(r&&!t)return 1;if(!g&&!r)return null;let i=r?h+1:h-1,o=r?v[i]-v[i-1]:v[i+1]-v[i],s=e/Math.abs(o);return r?1-s:s}return{isLastSnapPoint:m,activeSnapPoint:u,shouldFade:g,getPercentageDragged:C,setActiveSnapPoint:d,activeSnapPointIndex:h,onRelease:x,onDrag:S,snapPointsOffset:v}}function hg(){let{direction:e,isOpen:t,shouldScaleBackground:n,setBackgroundColorOnScale:r,noBodyStyles:i}=wh(),a=_.useRef(null),o=(0,_.useMemo)(()=>document.body.style.backgroundColor,[]);function s(){return(window.innerWidth-lg)/window.innerWidth}_.useEffect(()=>{if(t&&n){a.current&&clearTimeout(a.current);let t=document.querySelector(`[data-vaul-drawer-wrapper]`)||document.querySelector(`[vaul-drawer-wrapper]`);if(!t)return;r&&!i&&ng(document.body,{background:`black`}),ng(t,{transformOrigin:$h(e)?`top`:`left`,transitionProperty:`transform, border-radius`,transitionDuration:`${rg.DURATION}s`,transitionTimingFunction:`cubic-bezier(${rg.EASE.join(`,`)})`});let n=ng(t,{borderRadius:`${sg}px`,overflow:`hidden`,...$h(e)?{transform:`scale(${s()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${s()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{n(),a.current=window.setTimeout(()=>{o?document.body.style.background=o:document.body.style.removeProperty(`background`)},rg.DURATION*1e3)}}},[t,n,o])}var gg=null;function _g({isOpen:e,modal:t,nested:n,hasBeenOpened:r,preventScrollRestoration:i,noBodyStyles:a}){let[o,s]=_.useState(()=>typeof window<`u`?window.location.href:``),c=_.useRef(0),l=_.useCallback(()=>{if(Oh()&&gg===null&&e&&!a){gg={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:`unset`};let{scrollX:e,innerHeight:t}=window;document.body.style.setProperty(`position`,`fixed`,`important`),Object.assign(document.body.style,{top:`${-c.current}px`,left:`${-e}px`,right:`0px`,height:`auto`}),window.setTimeout(()=>window.requestAnimationFrame(()=>{let e=t-window.innerHeight;e&&c.current>=t&&(document.body.style.top=`${-(c.current+e)}px`)}),300)}},[e]),u=_.useCallback(()=>{if(Oh()&&gg!==null&&!a){let e=-parseInt(document.body.style.top,10),t=-parseInt(document.body.style.left,10);Object.assign(document.body.style,gg),window.requestAnimationFrame(()=>{if(i&&o!==window.location.href){s(window.location.href);return}window.scrollTo(t,e)}),gg=null}},[o]);return _.useEffect(()=>{function e(){c.current=window.scrollY}return e(),window.addEventListener(`scroll`,e),()=>{window.removeEventListener(`scroll`,e)}},[]),_.useEffect(()=>{if(t)return()=>{typeof document<`u`&&(document.querySelector(`[data-vaul-drawer]`)||u())}},[t,u]),_.useEffect(()=>{!n&&r&&(e?(!window.matchMedia(`(display-mode: standalone)`).matches&&l(),t||window.setTimeout(()=>{u()},500)):u())},[e,r,o,t,n,l,u]),{restorePositionSetting:u}}function vg({open:e,onOpenChange:t,children:n,onDrag:r,onRelease:i,snapPoints:a,shouldScaleBackground:o=!1,setBackgroundColorOnScale:s=!0,closeThreshold:c=ag,scrollLockTimeout:l=og,dismissible:u=!0,handleOnly:d=!1,fadeFromIndex:f=a&&a.length-1,activeSnapPoint:p,setActiveSnapPoint:m,fixed:h,modal:g=!0,onClose:v,nested:y,noBodyStyles:b=!1,direction:x=`bottom`,defaultOpen:S=!1,disablePreventScroll:C=!0,snapToSequentialPoint:w=!1,preventScrollRestoration:T=!1,repositionInputs:E=!0,onAnimationEnd:D,container:O,autoFocus:k=!1}){let[A=!1,j]=pg({defaultProp:S,prop:e,onChange:e=>{t?.(e),!e&&!y&&be(),setTimeout(()=>{D?.(e)},rg.DURATION*1e3),e&&!g&&typeof window<`u`&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents=`auto`}),e||(document.body.style.pointerEvents=`auto`)}}),[M,N]=_.useState(!1),[P,F]=_.useState(!1),[I,L]=_.useState(!1),ee=_.useRef(null),te=_.useRef(null),ne=_.useRef(null),re=_.useRef(null),ie=_.useRef(null),ae=_.useRef(!1),oe=_.useRef(null),se=_.useRef(0),ce=_.useRef(!1),le=_.useRef(!S),ue=_.useRef(0),R=_.useRef(null),de=_.useRef(R.current?.getBoundingClientRect().height||0),z=_.useRef(R.current?.getBoundingClientRect().width||0),B=_.useRef(0),{activeSnapPoint:fe,activeSnapPointIndex:pe,setActiveSnapPoint:me,onRelease:he,snapPointsOffset:ge,onDrag:_e,shouldFade:ve,getPercentageDragged:ye}=mg({snapPoints:a,activeSnapPointProp:p,setActiveSnapPointProp:m,drawerRef:R,fadeFromIndex:f,overlayRef:ee,onSnapPointChange:_.useCallback(e=>{a&&e===ge.length-1&&(te.current=new Date)},[]),direction:x,container:O,snapToSequentialPoint:w});Vh({isDisabled:!A||P||!g||I||!M||!E||!C});let{restorePositionSetting:be}=_g({isOpen:A,modal:g,nested:y??!1,hasBeenOpened:M,preventScrollRestoration:T,noBodyStyles:b});function xe(){return(window.innerWidth-lg)/window.innerWidth}function Se(e){(u||a)&&(!R.current||R.current.contains(e.target))&&(de.current=R.current?.getBoundingClientRect().height||0,z.current=R.current?.getBoundingClientRect().width||0,F(!0),ne.current=new Date,Ah()&&window.addEventListener(`touchend`,()=>ae.current=!1,{once:!0}),e.target.setPointerCapture(e.pointerId),se.current=$h(x)?e.pageY:e.pageX)}function Ce(e,t){let n=e,r=window.getSelection()?.toString(),i=R.current?eg(R.current,x):null,a=new Date;if(n.tagName===`SELECT`||n.hasAttribute(`data-vaul-no-drag`)||n.closest(`[data-vaul-no-drag]`))return!1;if(x===`right`||x===`left`)return!0;if(te.current&&a.getTime()-te.current.getTime()<500)return!1;if(i!==null&&(x===`bottom`?i>0:i<0))return!0;if(r&&r.length>0)return!1;if(ie.current&&a.getTime()-ie.current.getTime()<l&&i===0||t)return ie.current=a,!1;for(;n;){if(n.scrollHeight>n.clientHeight){if(n.scrollTop!==0)return ie.current=new Date,!1;if(n.getAttribute(`role`)===`dialog`)return!0}n=n.parentNode}return!0}function we(e){if(R.current&&P){let t=x===`bottom`||x===`right`?1:-1,n=(se.current-($h(x)?e.pageY:e.pageX))*t,i=n>0,s=a&&!u&&!i;if(s&&pe===0)return;let c=Math.abs(n),l=document.querySelector(`[data-vaul-drawer-wrapper]`),d=c/(x===`bottom`||x===`top`?de.current:z.current),p=ye(c,i);if(p!==null&&(d=p),s&&d>=1||!ae.current&&!Ce(e.target,i))return;if(R.current.classList.add(ug),ae.current=!0,Zh(R.current,{transition:`none`}),Zh(ee.current,{transition:`none`}),a&&_e({draggedDistance:n}),i&&!a){let e=tg(n),r=Math.min(e*-1,0)*t;Zh(R.current,{transform:$h(x)?`translate3d(0, ${r}px, 0)`:`translate3d(${r}px, 0, 0)`});return}let m=1-d;if((ve||f&&pe===f-1)&&(r?.(e,d),Zh(ee.current,{opacity:`${m}`,transition:`none`},!0)),l&&ee.current&&o){let e=Math.min(xe()+d*(1-xe()),1),t=8-d*8,n=Math.max(0,14-d*14);Zh(l,{borderRadius:`${t}px`,transform:$h(x)?`scale(${e}) translate3d(0, ${n}px, 0)`:`scale(${e}) translate3d(${n}px, 0, 0)`,transition:`none`},!0)}if(!a){let e=c*t;Zh(R.current,{transform:$h(x)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})}}}_.useEffect(()=>{window.requestAnimationFrame(()=>{le.current=!0})},[]),_.useEffect(()=>{var e;function t(){if(!R.current||!E)return;let e=document.activeElement;if(Kh(e)||ce.current){let e=window.visualViewport?.height||0,t=window.innerHeight,n=t-e,r=R.current.getBoundingClientRect().height||0,i=r>t*.8;B.current||=r;let o=R.current.getBoundingClientRect().top;if(Math.abs(ue.current-n)>60&&(ce.current=!ce.current),a&&a.length>0&&ge&&pe){let e=ge[pe]||0;n+=e}if(ue.current=n,r>e||ce.current){let t=R.current.getBoundingClientRect().height,r=t;t>e&&(r=e-(i?o:lg)),h?R.current.style.height=`${t-Math.max(n,0)}px`:R.current.style.height=`${Math.max(r,e-o)}px`}else Th()||(R.current.style.height=`${B.current}px`);a&&a.length>0&&!ce.current?R.current.style.bottom=`0px`:R.current.style.bottom=`${Math.max(n,0)}px`}}return(e=window.visualViewport)==null||e.addEventListener(`resize`,t),()=>window.visualViewport?.removeEventListener(`resize`,t)},[pe,a,ge]);function Te(e){De(),v?.(),e||j(!1),setTimeout(()=>{a&&me(a[0])},rg.DURATION*1e3)}function Ee(){if(!R.current)return;let e=document.querySelector(`[data-vaul-drawer-wrapper]`),t=eg(R.current,x);Zh(R.current,{transform:`translate3d(0, 0, 0)`,transition:`transform ${rg.DURATION}s cubic-bezier(${rg.EASE.join(`,`)})`}),Zh(ee.current,{transition:`opacity ${rg.DURATION}s cubic-bezier(${rg.EASE.join(`,`)})`,opacity:`1`}),o&&t&&t>0&&A&&Zh(e,{borderRadius:`${sg}px`,overflow:`hidden`,...$h(x)?{transform:`scale(${xe()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:`top`}:{transform:`scale(${xe()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:`left`},transitionProperty:`transform, border-radius`,transitionDuration:`${rg.DURATION}s`,transitionTimingFunction:`cubic-bezier(${rg.EASE.join(`,`)})`},!0)}function De(){P&&R.current&&(R.current.classList.remove(ug),ae.current=!1,F(!1),re.current=new Date)}function Oe(e){if(!P||!R.current)return;R.current.classList.remove(ug),ae.current=!1,F(!1),re.current=new Date;let t=eg(R.current,x);if(!e||!Ce(e.target,!1)||!t||Number.isNaN(t)||ne.current===null)return;let n=re.current.getTime()-ne.current.getTime(),r=se.current-($h(x)?e.pageY:e.pageX),o=Math.abs(r)/n;if(o>.05&&(L(!0),setTimeout(()=>{L(!1)},200)),a){he({draggedDistance:r*(x===`bottom`||x===`right`?1:-1),closeDrawer:Te,velocity:o,dismissible:u}),i?.(e,!0);return}if(x===`bottom`||x===`right`?r>0:r<0){Ee(),i?.(e,!0);return}if(o>ig){Te(),i?.(e,!1);return}let s=Math.min(R.current.getBoundingClientRect().height??0,window.innerHeight),l=Math.min(R.current.getBoundingClientRect().width??0,window.innerWidth);if(Math.abs(t)>=(x===`left`||x===`right`?l:s)*c){Te(),i?.(e,!1);return}i?.(e,!0),Ee()}_.useEffect(()=>(A&&(Zh(document.documentElement,{scrollBehavior:`auto`}),te.current=new Date),()=>{Qh(document.documentElement,`scrollBehavior`)}),[A]);function ke(e){let t=e?(window.innerWidth-cg)/window.innerWidth:1,n=e?-16:0;oe.current&&window.clearTimeout(oe.current),Zh(R.current,{transition:`transform ${rg.DURATION}s cubic-bezier(${rg.EASE.join(`,`)})`,transform:$h(x)?`scale(${t}) translate3d(0, ${n}px, 0)`:`scale(${t}) translate3d(${n}px, 0, 0)`}),!e&&R.current&&(oe.current=setTimeout(()=>{let e=eg(R.current,x);Zh(R.current,{transition:`none`,transform:$h(x)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})},500))}function Ae(e,t){if(t<0)return;let n=(window.innerWidth-cg)/window.innerWidth,r=n+t*(1-n),i=-16+t*cg;Zh(R.current,{transform:$h(x)?`scale(${r}) translate3d(0, ${i}px, 0)`:`scale(${r}) translate3d(${i}px, 0, 0)`,transition:`none`})}function je(e,t){let n=$h(x)?window.innerHeight:window.innerWidth,r=t?(n-cg)/n:1,i=t?-16:0;t&&Zh(R.current,{transition:`transform ${rg.DURATION}s cubic-bezier(${rg.EASE.join(`,`)})`,transform:$h(x)?`scale(${r}) translate3d(0, ${i}px, 0)`:`scale(${r}) translate3d(${i}px, 0, 0)`})}return _.useEffect(()=>{g||window.requestAnimationFrame(()=>{document.body.style.pointerEvents=`auto`})},[g]),_.createElement($m,{defaultOpen:S,onOpenChange:e=>{(u||e)&&(e?N(!0):Te(!0),j(e))},open:A},_.createElement(Ch.Provider,{value:{activeSnapPoint:fe,snapPoints:a,setActiveSnapPoint:me,drawerRef:R,overlayRef:ee,onOpenChange:t,onPress:Se,onRelease:Oe,onDrag:we,dismissible:u,shouldAnimate:le,handleOnly:d,isOpen:A,isDragging:P,shouldFade:ve,closeDrawer:Te,onNestedDrag:Ae,onNestedOpenChange:ke,onNestedRelease:je,keyboardIsOpen:ce,modal:g,snapPointsOffset:ge,activeSnapPointIndex:pe,direction:x,shouldScaleBackground:o,setBackgroundColorOnScale:s,noBodyStyles:b,container:O,autoFocus:k}},n))}var yg=_.forwardRef(function({...e},t){let{overlayRef:n,snapPoints:r,onRelease:i,shouldFade:a,isOpen:o,modal:s,shouldAnimate:c}=wh(),l=Yh(t,n),u=r&&r.length>0;if(!s)return null;let d=_.useCallback(e=>i(e),[i]);return _.createElement(sh,{onMouseUp:d,ref:l,"data-vaul-overlay":``,"data-vaul-snap-points":o&&u?`true`:`false`,"data-vaul-snap-points-overlay":o&&a?`true`:`false`,"data-vaul-animate":c?.current?`true`:`false`,...e})});yg.displayName=`Drawer.Overlay`;var bg=_.forwardRef(function({onPointerDownOutside:e,style:t,onOpenAutoFocus:n,...r},i){let{drawerRef:a,onPress:o,onRelease:s,onDrag:c,keyboardIsOpen:l,snapPointsOffset:u,activeSnapPointIndex:d,modal:f,isOpen:p,direction:m,snapPoints:h,container:g,handleOnly:v,shouldAnimate:y,autoFocus:b}=wh(),[x,S]=_.useState(!1),C=Yh(i,a),w=_.useRef(null),T=_.useRef(null),E=_.useRef(!1),D=h&&h.length>0;hg();let O=(e,t,n=0)=>{if(E.current)return!0;let r=Math.abs(e.y),i=Math.abs(e.x),a=i>r,o=[`bottom`,`right`].includes(t)?1:-1;if(t===`left`||t===`right`){if(!(e.x*o<0)&&i>=0&&i<=n)return a}else if(!(e.y*o<0)&&r>=0&&r<=n)return!a;return E.current=!0,!0};_.useEffect(()=>{D&&window.requestAnimationFrame(()=>{S(!0)})},[]);function k(e){w.current=null,E.current=!1,s(e)}return _.createElement(dh,{"data-vaul-drawer-direction":m,"data-vaul-drawer":``,"data-vaul-delayed-snap-points":x?`true`:`false`,"data-vaul-snap-points":p&&D?`true`:`false`,"data-vaul-custom-container":g?`true`:`false`,"data-vaul-animate":y?.current?`true`:`false`,...r,ref:C,style:u&&u.length>0?{"--snap-point-height":`${u[d??0]}px`,...t}:t,onPointerDown:e=>{v||(r.onPointerDown==null||r.onPointerDown.call(r,e),w.current={x:e.pageX,y:e.pageY},o(e))},onOpenAutoFocus:e=>{n?.(e),b||e.preventDefault()},onPointerDownOutside:t=>{if(e?.(t),!f||t.defaultPrevented){t.preventDefault();return}l.current&&=!1},onFocusOutside:e=>{if(!f){e.preventDefault();return}},onPointerMove:e=>{if(T.current=e,v||(r.onPointerMove==null||r.onPointerMove.call(r,e),!w.current))return;let t=e.pageY-w.current.y,n=e.pageX-w.current.x,i=e.pointerType===`touch`?10:2;O({x:n,y:t},m,i)?c(e):(Math.abs(n)>i||Math.abs(t)>i)&&(w.current=null)},onPointerUp:e=>{r.onPointerUp==null||r.onPointerUp.call(r,e),w.current=null,E.current=!1,s(e)},onPointerOut:e=>{r.onPointerOut==null||r.onPointerOut.call(r,e),k(T.current)},onContextMenu:e=>{r.onContextMenu==null||r.onContextMenu.call(r,e),T.current&&k(T.current)}})});bg.displayName=`Drawer.Content`;var xg=250,Sg=120,Cg=_.forwardRef(function({preventCycle:e=!1,children:t,...n},r){let{closeDrawer:i,isDragging:a,snapPoints:o,activeSnapPoint:s,setActiveSnapPoint:c,dismissible:l,handleOnly:u,isOpen:d,onPress:f,onDrag:p}=wh(),m=_.useRef(null),h=_.useRef(!1);function g(){if(h.current){b();return}window.setTimeout(()=>{v()},Sg)}function v(){if(a||e||h.current){b();return}if(b(),!o||o.length===0){l||i();return}if(s===o[o.length-1]&&l){i();return}let t=o.findIndex(e=>e===s);if(t===-1)return;let n=o[t+1];c(n)}function y(){m.current=window.setTimeout(()=>{h.current=!0},xg)}function b(){m.current&&window.clearTimeout(m.current),h.current=!1}return _.createElement(`div`,{onClick:g,onPointerCancel:b,onPointerDown:e=>{u&&f(e),y()},onPointerMove:e=>{u&&p(e)},ref:r,"data-vaul-drawer-visible":d?`true`:`false`,"data-vaul-handle":``,"aria-hidden":`true`,...n},_.createElement(`span`,{"data-vaul-handle-hitarea":``,"aria-hidden":`true`},t))});Cg.displayName=`Drawer.Handle`;function wg({onDrag:e,onOpenChange:t,open:n,...r}){let{onNestedDrag:i,onNestedOpenChange:a,onNestedRelease:o}=wh();if(!i)throw Error(`Drawer.NestedRoot must be placed in another drawer`);return _.createElement(vg,{nested:!0,open:n,onClose:()=>{a(!1)},onDrag:(t,n)=>{i(t,n),e?.(t,n)},onOpenChange:e=>{e&&a(e),t?.(e)},onRelease:o,...r})}function Tg(e){let t=wh(),{container:n=t.container,...r}=e;return _.createElement(ah,{container:n,...r})}var Eg={Root:vg,NestedRoot:wg,Content:bg,Overlay:yg,Trigger:th,Portal:Tg,Handle:Cg,Close:bh,Title:gh,Description:vh},Dg=Symbol.for(`react.portal`);function Og(e,t){if(e==null||typeof e==`boolean`)return!1;if(Array.isArray(e))return e.some(e=>Og(e,t));if(_.isValidElement(e)){if(e.type===t)return!0;let n=e.props;return n.children!=null&&Og(n.children,t)}if(typeof e==`string`||typeof e==`number`)return!1;if(typeof e==`object`&&e.$$typeof===Dg)return Og(e.children,t);if(typeof e==`object`&&Symbol.iterator in e)return Array.from(e).some(e=>Og(e,t));if(globalThis.process?.env?.NODE_ENV!==`production`){let t=typeof e==`object`?` with keys {${Object.keys(e).join(`, `)}}`:``;console.error(`[treeContainsComponent] A non-renderable value${t} is being passed as a React child. React will throw 'Objects are not valid as a React child' at the real render site. Stringify it (e.g. JSON.stringify) before rendering.`,e)}return!1}var kg=`data-matrx-floating-layer`,Ag=Symbol.for(`ai-matrx.design-system.modal-layer-registry`),jg=globalThis,Mg=jg[Ag]??={count:0,listeners:new Set};function Ng(){for(let e of Mg.listeners)e()}var Pg=[`wheel`,`touchmove`];function Fg(e){Vg(e.target)&&e.stopPropagation()}function Ig(e){if(typeof document<`u`&&document.body)for(let t of Pg)e?document.body.addEventListener(t,Fg,{passive:!0}):document.body.removeEventListener(t,Fg)}function Lg(){Mg.count+=1,Mg.count===1&&Ig(!0),Ng();let e=!1;return()=>{e||(e=!0,Mg.count=Math.max(0,Mg.count-1),Mg.count===0&&Ig(!1),Ng())}}function Rg(){return Mg.count>0}function zg(e){_.useLayoutEffect(()=>e?Lg():void 0,[e])}var Bg=`[data-radix-popper-content-wrapper]`;function Vg(e){return e instanceof Element?e.closest(`[data-matrx-floating-layer]`)?!0:e.closest(Bg)!==null&&e.ownerDocument.querySelector(`[data-matrx-floating-layer]`)!==null:!1}function Hg(e){return t=>{e?.(t),Vg(t.target)&&t.preventDefault()}}var Ug=e=>e.preventDefault(),Wg=_.forwardRef(({children:e},t)=>{let[n]=_.useState(()=>typeof document>`u`?null:document.activeElement);return(0,j.jsx)(up,{asChild:!0,trapped:!1,loop:!1,onMountAutoFocus:Ug,onUnmountAutoFocus:e=>{e.preventDefault();let t=document.activeElement;(!t||t===document.body||!t.isConnected)&&Rg()&&n instanceof HTMLElement&&n.isConnected&&n.focus({preventScroll:!0})},children:(0,j.jsx)(Ki,{ref:t,[kg]:``,style:{pointerEvents:`auto`},children:e})})});Wg.displayName=`FloatingLayer`;var Gg=Symbol.for(`ai-matrx.design-system.dialog-modal-context`),Kg=globalThis,qg=Kg[Gg]??=_.createContext(!0);function Jg({children:e,modal:t}){return(0,j.jsx)(qg.Provider,{value:t,children:e})}function Yg(){return _.useContext(qg)}var Xg=_.createContext(`bottom`),Zg=()=>_.useContext(Xg),Qg=({children:e,shouldScaleBackground:t=!0,onOpenChange:n,...r})=>{let i=r.direction??`bottom`,a=e=>{e&&typeof document<`u`&&document.activeElement instanceof HTMLElement&&document.activeElement.blur(),n?.(e)};return(0,j.jsx)(Jg,{modal:!0,children:(0,j.jsx)(Xg.Provider,{value:i,children:(0,j.jsx)(Eg.Root,{modal:!0,shouldScaleBackground:t,...r,onOpenChange:a,direction:i,children:e})})})};Qg.displayName=`Drawer`;var $g=Eg.Trigger,e_=Eg.Portal;Eg.Close;var t_=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(Eg.Overlay,{ref:n,"data-slot":`drawer-overlay`,className:Z(`fixed inset-0 z-[10000] bg-[var(--matrx-overlay-scrim)]`,e),...t}));t_.displayName=Eg.Overlay.displayName;var n_=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(Eg.Description,{ref:n,"data-slot":`drawer-description`,className:Z(`text-sm text-muted-foreground`,e),...t}));n_.displayName=Eg.Description.displayName;var r_=_.forwardRef(({onInteractOutside:e,...t},n)=>(zg(!0),(0,j.jsx)(Eg.Content,{"data-matrx-entrance":`none`,...t,ref:n,"aria-modal":`true`,onInteractOutside:Hg(e)})));r_.displayName=`DrawerContentPrimitive`;var i_={bottom:`inset-x-0 bottom-0 mt-24 flex-col rounded-t-[10px] border-t pb-safe`,top:`inset-x-0 top-0 mb-24 flex-col rounded-b-[10px] border-b pt-safe`,left:`inset-y-0 left-0 mr-24 flex-row rounded-r-[10px] border-r`,right:`inset-y-0 right-0 ml-24 flex-row rounded-l-[10px] border-l`},a_={bottom:{adaptive:`h-auto max-h-[90dvh]`,full:`h-[92dvh]`},top:{adaptive:`h-auto max-h-[90dvh]`,full:`h-[92dvh]`},left:{adaptive:`w-auto max-w-[92vw]`,full:`h-dvh w-[92vw] max-w-sm`},right:{adaptive:`w-auto max-w-[92vw]`,full:`h-dvh w-[92vw] max-w-sm`}},o_=_.forwardRef(({className:e,children:t,size:n=`adaptive`,showHandle:r,...i},a)=>{let o=Zg(),s=Og(t,n_)||Og(t,Eg.Description),c=r??(o===`bottom`||o===`top`);return(0,j.jsxs)(e_,{children:[(0,j.jsx)(t_,{}),(0,j.jsxs)(r_,{ref:a,"data-slot":`drawer-content`,"data-direction":o,className:Z(`fixed z-[10000] flex min-w-0 border bg-background`,i_[o],a_[o][n],e),...s?{}:{"aria-describedby":void 0},...i,children:[c?(0,j.jsx)(`div`,{"aria-hidden":!0,"data-slot":`drawer-handle`,className:Z(`flex min-h-11 w-full shrink-0 cursor-grab items-center justify-center active:cursor-grabbing`,o===`top`&&`order-last`),children:(0,j.jsx)(`div`,{className:`h-1 w-[100px] rounded-full bg-muted`})}):null,t]})]})});o_.displayName=`DrawerContent`;var s_=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(Eg.Title,{ref:n,"data-slot":`drawer-title`,className:Z(`text-lg font-semibold leading-none tracking-tight`,e),...t}));s_.displayName=Eg.Title.displayName;var c_=Symbol.for(`@ai-matrx/design-system/error-actions`),l_=globalThis,u_=l_[c_]??(l_[c_]=_.createContext(null));function d_(){return _.useContext(u_)}function f_(e){let t=d_();return t?(0,j.jsx)(j.Fragment,{children:t(e)}):null}var p_=_.forwardRef(function({as:e=`p`,message:t,title:n,error:r,operation:i,records:a,unsavedInput:o,origin:s,children:c,...l},u){let d=e,f={...t===void 0?{}:{message:t},...n===void 0?{}:{title:n},...r===void 0?{}:{error:r},...i===void 0?{}:{operation:i},...a===void 0?{}:{records:a},...o===void 0?{}:{unsavedInput:o},...s===void 0?{}:{origin:s}};return(0,j.jsxs)(d,{ref:u,role:`alert`,"data-error-box":``,...l,children:[c??t,(0,j.jsx)(f_,{...f})]})}),m_=ip(`matrx-glyph-trim inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-0 disabled:opacity-50 active:scale-[0.98] [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0`,{variants:{variant:{default:`bg-primary text-primary-foreground shadow-sm hover:bg-primary/90`,primary:`bg-primary text-primary-foreground shadow-sm hover:bg-primary/90`,destructive:`bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90`,success:`bg-success text-success-foreground shadow-sm hover:bg-success/90`,outline:`border border-border bg-card shadow-sm hover:bg-accent hover:text-accent-foreground`,secondary:`bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80`,ghost:`hover:bg-accent hover:text-accent-foreground`,link:`text-primary underline-offset-4 hover:underline`,subtle:`border border-transparent bg-muted/50 text-foreground hover:border-border hover:bg-muted`},size:{xs:`h-6 rounded-md px-1 text-xs`,sm:`h-8 rounded-md px-3 text-xs`,default:`h-9 px-4 py-2`,md:`h-9 px-4 py-2`,lg:`h-10 rounded-md px-6`,xl:`h-12 px-8 py-3 text-base`,"2xl":`h-14 px-10 py-3 text-base`,"3xl":`h-16 px-12 py-3 text-base`,icon:`h-9 w-9`,"icon-sm":`h-7 w-7`,roundIcon:`h-8 w-8 rounded-full p-0`}},defaultVariants:{variant:`default`,size:`default`}}),h_=new Set([`xs`,`sm`,`default`,`md`,`lg`,`icon`,`icon-sm`,`roundIcon`]),g_=new Set([`icon`,`icon-sm`,`roundIcon`]);function __(e){e.preventDefault(),e.stopPropagation()}var v_=_.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,onClick:i,...a},o)=>{let s=r?Ki:`button`,c=n??`default`,l=r&&!!a.disabled,u=a[`aria-disabled`],d=l||u===!0||u===`true`;return(0,j.jsx)(s,{className:Z(m_({variant:t,size:n,className:e})),"data-matrx-button":``,"data-tap-floor":h_.has(c)?``:void 0,"data-tap-floor-square":g_.has(c)?``:void 0,ref:o,...a,"aria-disabled":l?!0:u,tabIndex:l?-1:a.tabIndex,onClick:d?__:i})});v_.displayName=`Button`;var y_=`(max-width: 767px)`;function b_(){return typeof window<`u`&&typeof window.matchMedia==`function`}function x_(e){if(!b_())return()=>{};let t=window.matchMedia(y_);return t.addEventListener(`change`,e),()=>t.removeEventListener(`change`,e)}function S_(){return b_()?window.matchMedia(y_).matches:typeof window<`u`&&window.innerWidth<768}var C_=Symbol.for(`@ai-matrx/kit/media-query#viewport-hint`),w_=globalThis[C_]??=_.createContext(!1);function T_(){let e=_.useContext(w_);return _.useSyncExternalStore(x_,S_,()=>e)}var E_=Object.defineProperty,D_=(e,t)=>E_(e,`name`,{value:t,configurable:!0}),O_=!1;function k_(){let[e,t]=_.useState(O_);return _.useEffect(()=>{O_||(O_=!0,t(!0))},[]),e}D_(k_,`useIsHydrated`);var A_=_.useSyncExternalStore;function j_(){return()=>{}}D_(j_,`subscribe`);function M_(){return A_(j_,()=>!0,()=>!1)}D_(M_,`useIsHydratedModern`);var N_=typeof A_==`function`?M_:k_,P_=Object.defineProperty,F_=(e,t)=>P_(e,`name`,{value:t,configurable:!0}),I_=`rovingFocusGroup.onEntryFocus`,L_={bubbles:!1,cancelable:!0},R_=`RovingFocusGroup`,[z_,B_,V_]=Pf(R_),[H_,U_]=Vi(R_,[V_]),[W_,G_]=H_(R_),K_=_.forwardRef(F_(function(e,t){return(0,j.jsx)(z_.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,j.jsx)(z_.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,j.jsx)(q_,{...e,ref:t})})})},`RovingFocusGroup`)),q_=_.forwardRef(F_(function(e,t){let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...d}=e,f=_.useRef(null),p=H(t,f),m=qf(a),[h,g]=kc({prop:o,defaultProp:s??null,onChange:c,caller:R_}),[v,y]=_.useState(!1),b=ua(l),x=B_(n),S=_.useRef(!1),[C,w]=_.useState(0);return _.useEffect(()=>{let e=f.current;if(e)return e.addEventListener(I_,b),()=>e.removeEventListener(I_,b)},[b]),(0,j.jsx)(W_,{scope:n,orientation:r,dir:m,loop:i,currentTabStopId:h,onItemFocus:_.useCallback(e=>g(e),[g]),onItemShiftTab:_.useCallback(()=>y(!0),[]),onFocusableItemAdd:_.useCallback(()=>w(e=>e+1),[]),onFocusableItemRemove:_.useCallback(()=>w(e=>e-1),[]),children:(0,j.jsx)(W.div,{tabIndex:v||C===0?-1:0,"data-orientation":r,...d,ref:p,style:{outline:`none`,...e.style},onMouseDown:V(e.onMouseDown,()=>{S.current=!0}),onFocus:V(e.onFocus,e=>{let t=!S.current;if(e.target===e.currentTarget&&t&&!v){let t=new CustomEvent(I_,L_);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=x().filter(e=>e.focusable);$_([e.find(e=>e.active),e.find(e=>e.id===h),...e].filter(Boolean).map(e=>e.ref.current),u)}}S.current=!1}),onBlur:V(e.onBlur,()=>y(!1))})})},`RovingFocusGroupImpl`)),J_=`RovingFocusGroupItem`,Y_=_.forwardRef(F_(function(e,t){let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:o,...s}=e,c=Aa(),l=a||c,u=G_(J_,n),d=u.currentTabStopId===l,f=B_(n),{onFocusableItemAdd:p,onFocusableItemRemove:m,currentTabStopId:h}=u,g=N_();return Ta(()=>{if(g&&r)return p(),()=>m()},[g,r,p,m]),_.useEffect(()=>{if(!g&&r)return p(),()=>m()},[g,r,p,m]),(0,j.jsx)(z_.ItemSlot,{scope:n,id:l,focusable:r,active:i,children:(0,j.jsx)(W.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:V(e.onMouseDown,e=>{r?u.onItemFocus(l):e.preventDefault()}),onFocus:V(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:V(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){u.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=Q_(e,u.orientation,u.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=f().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=u.loop?ev(n,r+1):n.slice(r+1)}setTimeout(()=>$_(n))}}),children:typeof o==`function`?o({isCurrentTabStop:d,hasTabStop:h!=null}):o})})},`RovingFocusGroupItem`)),X_={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function Z_(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}F_(Z_,`getDirectionAwareKey`);function Q_(e,t,n){let r=Z_(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return X_[r]}F_(Q_,`getFocusIntent`);function $_(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}F_($_,`focusFirst`);function ev(e,t){return e.map((n,r)=>e[(t+r)%e.length])}F_(ev,`wrapArray`);var tv=K_,nv=Y_,rv=Object.defineProperty,iv=(e,t)=>rv(e,`name`,{value:t,configurable:!0}),av=[`Enter`,` `],ov=[`ArrowDown`,`PageUp`,`Home`],sv=[`ArrowUp`,`PageDown`,`End`],cv=[...ov,...sv],lv={ltr:[...av,`ArrowRight`],rtl:[...av,`ArrowLeft`]},uv={ltr:[`ArrowLeft`],rtl:[`ArrowRight`]},dv=`Menu`,[fv,pv,mv]=Pf(dv),[hv,gv]=Vi(dv,[mv,Js,U_]),_v=Js(),vv=U_(),[yv,bv]=hv(dv),[xv,Sv]=hv(dv),Cv=iv(e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,s=_v(t),[c,l]=_.useState(null),u=_.useRef(!1),d=ua(a),f=qf(i);return _.useEffect(()=>{let e=iv(()=>{u.current=!0,document.addEventListener(`pointerdown`,t,{capture:!0,once:!0}),document.addEventListener(`pointermove`,t,{capture:!0,once:!0})},`handleKeyDown`),t=iv(()=>u.current=!1,`handlePointer`);return document.addEventListener(`keydown`,e,{capture:!0}),()=>{document.removeEventListener(`keydown`,e,{capture:!0}),document.removeEventListener(`pointerdown`,t,{capture:!0}),document.removeEventListener(`pointermove`,t,{capture:!0})}},[]),_.useEffect(()=>{if(!n)return;let e=iv(()=>d(!1),`handleBlur`);return window.addEventListener(`blur`,e),()=>window.removeEventListener(`blur`,e)},[n,d]),(0,j.jsx)(sc,{...s,children:(0,j.jsx)(yv,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:l,children:(0,j.jsx)(xv,{scope:t,onClose:_.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:f,modal:o,children:r})})})},`Menu`),wv=_.forwardRef(iv(function(e,t){let{__scopeMenu:n,...r}=e,i=_v(n);return(0,j.jsx)(cc,{...i,...r,ref:t})},`MenuAnchor`)),Tv=`MenuPortal`,[Ev,Dv]=hv(Tv,{forceMount:void 0}),Ov=iv(e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=bv(Tv,t);return(0,j.jsx)(Ev,{scope:t,forceMount:n,children:(0,j.jsx)(hc,{present:n||a.open,children:(0,j.jsx)(dc,{asChild:!0,container:i,children:r})})})},`MenuPortal`),kv=`MenuContent`,[Av,jv]=hv(kv),Mv=_.forwardRef(iv(function(e,t){let n=Dv(kv,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=bv(kv,e.__scopeMenu),o=Sv(kv,e.__scopeMenu);return(0,j.jsx)(fv.Provider,{scope:e.__scopeMenu,children:(0,j.jsx)(hc,{present:r||a.open,children:(0,j.jsx)(fv.Slot,{scope:e.__scopeMenu,children:o.modal?(0,j.jsx)(Nv,{...i,ref:t}):(0,j.jsx)(Pv,{...i,ref:t})})})})},`MenuContent`)),Nv=_.forwardRef(iv(function(e,t){let n=bv(kv,e.__scopeMenu),r=_.useRef(null),i=H(t,r);return _.useEffect(()=>{let e=r.current;if(e)return Gm(e)},[]),(0,j.jsx)(Iv,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:V(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})},`MenuRootContentModal`)),Pv=_.forwardRef(iv(function(e,t){let n=bv(kv,e.__scopeMenu);return(0,j.jsx)(Iv,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})},`MenuRootContentNonModal`)),Fv=Gi(`MenuContent.ScrollLock`),Iv=_.forwardRef(iv(function(e,t){let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEntryFocus:c,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,disableOutsideScroll:m,...h}=e,g=bv(kv,n),v=Sv(kv,n),y=_v(n),b=vv(n),x=pv(n),[S,C]=_.useState(null),w=_.useRef(null),T=H(t,w,g.onContentChange),E=_.useRef(0),D=_.useRef(``),O=_.useRef(0),k=_.useRef(null),A=_.useRef(`right`),M=_.useRef(0),N=m?Im:_.Fragment,P=m?{as:Fv,allowPinchZoom:!0}:void 0,F=iv(e=>{let t=D.current+e,n=x().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,a=py(n.map(e=>e.textValue),t,i),o=n.find(e=>e.textValue===a)?.ref.current;iv((function e(t){D.current=t,window.clearTimeout(E.current),t!==``&&(E.current=window.setTimeout(()=>e(``),1e3))}),`updateSearch`)(t),o&&setTimeout(()=>o.focus())},`handleTypeaheadSearch`);_.useEffect(()=>()=>window.clearTimeout(E.current),[]),Dp();let I=_.useCallback(e=>A.current===k.current?.side&&hy(e,k.current?.area),[]);return(0,j.jsx)(Av,{scope:n,searchRef:D,onItemEnter:_.useCallback(e=>{I(e)&&e.preventDefault()},[I]),onItemLeave:_.useCallback(e=>{I(e)||(w.current?.focus(),C(null))},[I]),onTriggerLeave:_.useCallback(e=>{I(e)&&e.preventDefault()},[I]),pointerGraceTimerRef:O,onPointerGraceIntentChange:_.useCallback(e=>{k.current=e},[]),children:(0,j.jsx)(N,{...P,children:(0,j.jsx)(up,{asChild:!0,trapped:i,onMountAutoFocus:V(a,e=>{e.preventDefault(),w.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:(0,j.jsx)(va,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,children:(0,j.jsx)(tv,{asChild:!0,...b,dir:v.dir,orientation:`vertical`,loop:r,currentTabStopId:S,onCurrentTabStopIdChange:C,onEntryFocus:V(c,e=>{v.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,j.jsx)(lc,{role:`menu`,"aria-orientation":`vertical`,"data-state":cy(g.open),"data-radix-menu-content":``,dir:v.dir,...y,...h,ref:T,style:{outline:`none`,...h.style},onKeyDown:V(h.onKeyDown,e=>{let t=e.target.closest(`[data-radix-menu-content]`)===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=e.key.length===1;t&&(e.key===`Tab`&&e.preventDefault(),!n&&r&&F(e.key));let i=w.current;if(e.target!==i||!cv.includes(e.key))return;e.preventDefault();let a=x().filter(e=>!e.disabled).map(e=>e.ref.current);sv.includes(e.key)&&a.reverse(),dy(a)}),onBlur:V(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(E.current),D.current=``)}),onPointerMove:V(e.onPointerMove,gy(e=>{let t=e.target,n=M.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>M.current?`right`:`left`;A.current=t,M.current=e.clientX}}))})})})})})})},`MenuContentImpl`)),Lv=_.forwardRef(iv(function(e,t){let{__scopeMenu:n,...r}=e;return(0,j.jsx)(W.div,{role:`group`,...r,ref:t})},`MenuGroup`)),Rv=_.forwardRef(iv(function(e,t){let{__scopeMenu:n,...r}=e;return(0,j.jsx)(W.div,{...r,ref:t})},`MenuLabel`)),zv=`MenuItem`,Bv=`menu.itemSelect`,Vv=_.forwardRef(iv(function(e,t){let{disabled:n=!1,onSelect:r,...i}=e,a=_.useRef(null),o=Sv(zv,e.__scopeMenu),s=jv(zv,e.__scopeMenu),c=H(t,a),l=_.useRef(!1),u=iv(()=>{let e=a.current;if(!n&&e){let t=new CustomEvent(Bv,{bubbles:!0,cancelable:!0});e.addEventListener(Bv,e=>r?.(e),{once:!0}),sa(e,t),t.defaultPrevented?l.current=!1:o.onClose()}},`handleSelect`);return(0,j.jsx)(Hv,{...i,ref:c,disabled:n,onClick:V(e.onClick,u),onPointerDown:t=>{e.onPointerDown?.(t),l.current=!0},onPointerUp:V(e.onPointerUp,e=>{l.current||e.currentTarget?.click()}),onKeyDown:V(e.onKeyDown,e=>{n||e.target!==e.currentTarget||(s.searchRef.current===``||e.key!==` `)&&av.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})},`MenuItem`)),Hv=_.forwardRef(iv(function(e,t){let{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,o=jv(zv,n),s=vv(n),c=_.useRef(null),l=H(t,c),[u,d]=_.useState(!1),[f,p]=_.useState(``);return _.useEffect(()=>{let e=c.current;e&&p((e.textContent??``).trim())},[a.children]),(0,j.jsx)(fv.ItemSlot,{scope:n,disabled:r,textValue:i??f,children:(0,j.jsx)(nv,{asChild:!0,...s,focusable:!r,children:(0,j.jsx)(W.div,{role:`menuitem`,"data-highlighted":u?``:void 0,"aria-disabled":r||void 0,"data-disabled":r?``:void 0,...a,ref:l,onPointerMove:V(e.onPointerMove,gy(e=>{r?o.onItemLeave(e):(o.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:V(e.onPointerLeave,gy(e=>o.onItemLeave(e))),onFocus:V(e.onFocus,()=>d(!0)),onBlur:V(e.onBlur,()=>d(!1))})})})},`MenuItemImpl`)),Uv=_.forwardRef(iv(function(e,t){let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,j.jsx)(Xv,{scope:e.__scopeMenu,checked:n,children:(0,j.jsx)(Vv,{role:`menuitemcheckbox`,"aria-checked":ly(n)?`mixed`:n,...i,ref:t,"data-state":uy(n),onSelect:V(i.onSelect,()=>r?.(ly(n)?!0:!n),{checkForDefaultPrevented:!1})})})},`MenuCheckboxItem`)),[Wv,Gv]=hv(`MenuRadioGroup`,{value:void 0,onValueChange:iv(()=>{},`onValueChange`)}),Kv=_.forwardRef(iv(function(e,t){let{value:n,onValueChange:r,...i}=e,a=ua(r);return(0,j.jsx)(Wv,{scope:e.__scopeMenu,value:n,onValueChange:a,children:(0,j.jsx)(Lv,{...i,ref:t})})},`MenuRadioGroup`)),qv=`MenuRadioItem`,Jv=_.forwardRef(iv(function(e,t){let{value:n,...r}=e,i=Gv(qv,e.__scopeMenu),a=n===i.value;return(0,j.jsx)(Xv,{scope:e.__scopeMenu,checked:a,children:(0,j.jsx)(Vv,{role:`menuitemradio`,"aria-checked":a,...r,ref:t,"data-state":uy(a),onSelect:V(r.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})},`MenuRadioItem`)),Yv=`MenuItemIndicator`,[Xv,Zv]=hv(Yv,{checked:!1}),Qv=_.forwardRef(iv(function(e,t){let{__scopeMenu:n,forceMount:r,...i}=e,a=Zv(Yv,n);return(0,j.jsx)(hc,{present:r||ly(a.checked)||a.checked===!0,children:(0,j.jsx)(W.span,{...i,ref:t,"data-state":uy(a.checked)})})},`MenuItemIndicator`)),$v=_.forwardRef(iv(function(e,t){let{__scopeMenu:n,...r}=e;return(0,j.jsx)(W.div,{role:`separator`,"aria-orientation":`horizontal`,...r,ref:t})},`MenuSeparator`)),ey=`MenuSub`,[ty,ny]=hv(ey),ry=iv(e=>{let{__scopeMenu:t,children:n,open:r=!1,onOpenChange:i}=e,a=bv(ey,t),o=_v(t),[s,c]=_.useState(null),[l,u]=_.useState(null),d=ua(i);return _.useEffect(()=>(a.open===!1&&d(!1),()=>d(!1)),[a.open,d]),(0,j.jsx)(sc,{...o,children:(0,j.jsx)(yv,{scope:t,open:r,onOpenChange:d,content:l,onContentChange:u,children:(0,j.jsx)(ty,{scope:t,contentId:Aa(),triggerId:Aa(),trigger:s,onTriggerChange:c,children:n})})})},`MenuSub`),iy=`MenuSubTrigger`,ay=_.forwardRef(iv(function(e,t){let n=bv(iy,e.__scopeMenu),r=Sv(iy,e.__scopeMenu),i=ny(iy,e.__scopeMenu),a=jv(iy,e.__scopeMenu),o=_.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:c}=a,l={__scopeMenu:e.__scopeMenu},u=_.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);_.useEffect(()=>u,[u]),_.useEffect(()=>{let e=s.current;return()=>{window.clearTimeout(e),c(null)}},[s,c]);let d=H(t,i.onTriggerChange);return(0,j.jsx)(wv,{asChild:!0,...l,children:(0,j.jsx)(Hv,{id:i.triggerId,"aria-haspopup":`menu`,"aria-expanded":n.open,"aria-controls":n.open?i.contentId:void 0,"data-state":cy(n.open),...e,ref:d,onClick:t=>{e.onClick?.(t),!(e.disabled||t.defaultPrevented)&&(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:V(e.onPointerMove,gy(t=>{a.onItemEnter(t),!t.defaultPrevented&&!e.disabled&&!n.open&&!o.current&&(a.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{n.onOpenChange(!0),u()},100))})),onPointerLeave:V(e.onPointerLeave,gy(e=>{u();let t=n.content?.getBoundingClientRect();if(t){let r=n.content?.dataset.side,i=r===`right`,o=i?-5:5,c=t[i?`left`:`right`],l=t[i?`right`:`left`];a.onPointerGraceIntentChange({area:[{x:e.clientX+o,y:e.clientY},{x:c,y:t.top},{x:l,y:t.top},{x:l,y:t.bottom},{x:c,y:t.bottom}],side:r}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:V(e.onKeyDown,t=>{e.disabled||t.target!==t.currentTarget||(a.searchRef.current===``||t.key!==` `)&&lv[r.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})},`MenuSubTrigger`)),oy=`MenuSubContent`,sy=_.forwardRef(iv(function(e,t){let n=Dv(kv,e.__scopeMenu),{forceMount:r=n.forceMount,align:i=`start`,...a}=e,o=bv(kv,e.__scopeMenu),s=Sv(kv,e.__scopeMenu),c=ny(oy,e.__scopeMenu),l=_.useRef(null),u=H(t,l);return(0,j.jsx)(fv.Provider,{scope:e.__scopeMenu,children:(0,j.jsx)(hc,{present:r||o.open,children:(0,j.jsx)(fv.Slot,{scope:e.__scopeMenu,children:(0,j.jsx)(Iv,{id:c.contentId,"aria-labelledby":c.triggerId,...a,ref:u,align:i,side:s.dir===`rtl`?`left`:`right`,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{s.isUsingKeyboardRef.current&&l.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:V(e.onFocusOutside,e=>{e.target!==c.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:V(e.onEscapeKeyDown,e=>{s.onClose(),e.preventDefault()}),onKeyDown:V(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=uv[s.dir].includes(e.key);t&&n&&(o.onOpenChange(!1),c.trigger?.focus(),e.preventDefault())})})})})})},`MenuSubContent`));function cy(e){return e?`open`:`closed`}iv(cy,`getOpenState`);function ly(e){return e===`indeterminate`}iv(ly,`isIndeterminate`);function uy(e){return ly(e)?`indeterminate`:e?`checked`:`unchecked`}iv(uy,`getCheckedState`);function dy(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}iv(dy,`focusFirst`);function fy(e,t){return e.map((n,r)=>e[(t+r)%e.length])}iv(fy,`wrapArray`);function py(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=fy(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}iv(py,`getNextMatch`);function my(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}iv(my,`isPointInPolygon`);function hy(e,t){return t?my({x:e.clientX,y:e.clientY},t):!1}iv(hy,`isPointerInGraceArea`);function gy(e){return t=>t.pointerType===`mouse`?e(t):void 0}iv(gy,`whenMouse`);var _y=Cv,vy=wv,yy=Ov,by=Mv,xy=Rv,Sy=Vv,Cy=Uv,wy=Kv,Ty=Jv,Ey=Qv,Dy=$v,Oy=ry,ky=ay,Ay=sy,jy=Object.defineProperty,My=(e,t)=>jy(e,`name`,{value:t,configurable:!0}),Ny=`ContextMenu`,[Py,Fy]=Vi(Ny,[gv]),Iy=gv(),[Ly,Ry]=Py(Ny),zy=My(e=>{let{__scopeContextMenu:t,children:n,onOpenChange:r,open:i,dir:a,modal:o=!0}=e,s=_.useRef(!1),[c,l]=kc({prop:i,defaultProp:!1,onChange:r,caller:Ny}),u=Iy(t);return(0,j.jsx)(Ly,{scope:t,open:c,onOpenChange:l,modal:o,hasInteractedRef:s,children:(0,j.jsx)(_y,{...u,dir:a,open:c,onOpenChange:l,modal:o,children:n})})},`ContextMenu`),By=`ContextMenuTrigger`,Vy=_.forwardRef(My(function(e,t){let{__scopeContextMenu:n,disabled:r=!1,...i}=e,a=Ry(By,n),o=Iy(n),[s,c]=_.useState({x:0,y:0}),l=_.useMemo(()=>({current:{getBoundingClientRect:My(()=>DOMRect.fromRect({width:0,height:0,...s}),`getBoundingClientRect`)}}),[s]),u=_.useRef(0),d=_.useCallback(()=>window.clearTimeout(u.current),[]),f=My(e=>{a.hasInteractedRef.current=!0,c({x:e.clientX,y:e.clientY}),a.onOpenChange(!0)},`handleOpen`);return _.useEffect(()=>d,[d]),_.useEffect(()=>void(r&&d()),[r,d]),(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(vy,{...o,virtualRef:l}),(0,j.jsx)(W.span,{"data-state":a.open?`open`:`closed`,"data-disabled":r?``:void 0,...i,ref:t,style:{WebkitTouchCallout:`none`,...e.style},onContextMenu:r?e.onContextMenu:V(e.onContextMenu,e=>{d(),f(e),e.preventDefault()}),onPointerDown:r?e.onPointerDown:V(e.onPointerDown,tb(e=>{d(),a.open&&a.onOpenChange(!1),u.current=window.setTimeout(()=>f(e),700)})),onPointerMove:r?e.onPointerMove:V(e.onPointerMove,tb(d)),onPointerCancel:r?e.onPointerCancel:V(e.onPointerCancel,tb(d)),onPointerUp:r?e.onPointerUp:V(e.onPointerUp,tb(d))})]})},`ContextMenuTrigger`)),Hy=My(e=>{let{__scopeContextMenu:t,...n}=e,r=Iy(t);return(0,j.jsx)(yy,{...r,...n})},`ContextMenuPortal`),Uy=`ContextMenuContent`,Wy=_.forwardRef(My(function(e,t){let{__scopeContextMenu:n,...r}=e,i=Ry(Uy,n),a=Iy(n),o=_.useRef(!1);return(0,j.jsx)(by,{...a,...r,ref:t,side:`right`,sideOffset:2,align:`start`,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),!t.defaultPrevented&&o.current&&t.preventDefault(),o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),!t.defaultPrevented&&!i.modal&&(o.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-context-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-context-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-context-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-context-menu-trigger-height":`var(--radix-popper-anchor-height)`}})},`ContextMenuContent`)),Gy=_.forwardRef(My(function(e,t){let{__scopeContextMenu:n,...r}=e,i=Iy(n);return(0,j.jsx)(xy,{...i,...r,ref:t})},`ContextMenuLabel`)),Ky=_.forwardRef(My(function(e,t){let{__scopeContextMenu:n,...r}=e,i=Iy(n);return(0,j.jsx)(Sy,{...i,...r,ref:t})},`ContextMenuItem`)),qy=_.forwardRef(My(function(e,t){let{__scopeContextMenu:n,...r}=e,i=Iy(n);return(0,j.jsx)(Cy,{...i,...r,ref:t})},`ContextMenuCheckboxItem`)),Jy=_.forwardRef(My(function(e,t){let{__scopeContextMenu:n,...r}=e,i=Iy(n);return(0,j.jsx)(Ty,{...i,...r,ref:t})},`ContextMenuRadioItem`)),Yy=_.forwardRef(My(function(e,t){let{__scopeContextMenu:n,...r}=e,i=Iy(n);return(0,j.jsx)(Ey,{...i,...r,ref:t})},`ContextMenuItemIndicator`)),Xy=_.forwardRef(My(function(e,t){let{__scopeContextMenu:n,...r}=e,i=Iy(n);return(0,j.jsx)(Dy,{...i,...r,ref:t})},`ContextMenuSeparator`)),Zy=`ContextMenuSub`,Qy=My(e=>{let{__scopeContextMenu:t,children:n,onOpenChange:r,open:i,defaultOpen:a}=e,o=Iy(t),[s,c]=kc({prop:i,defaultProp:a??!1,onChange:r,caller:Zy});return(0,j.jsx)(Oy,{...o,open:s,onOpenChange:c,children:n})},`ContextMenuSub`),$y=_.forwardRef(My(function(e,t){let{__scopeContextMenu:n,...r}=e,i=Iy(n);return(0,j.jsx)(ky,{...i,...r,ref:t})},`ContextMenuSubTrigger`)),eb=_.forwardRef(My(function(e,t){let{__scopeContextMenu:n,...r}=e,i=Iy(n);return(0,j.jsx)(Ay,{...i,...r,ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-context-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-context-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-context-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-context-menu-trigger-height":`var(--radix-popper-anchor-height)`}})},`ContextMenuSubContent`));function tb(e){return t=>t.pointerType===`mouse`?void 0:e(t)}My(tb,`whenTouchOrPen`);var nb=zy,rb=Vy,ib=Hy,ab=Wy,ob=Gy,sb=Ky,cb=qy,lb=Jy,ub=Yy,db=Xy,fb=Qy,pb=$y,mb=eb,hb=2;function gb(){let[e,t]=(0,_.useState)({top:!1,bottom:!1}),n=(0,_.useRef)(null),r=(0,_.useRef)(null),i=(0,_.useCallback)(()=>{let e=n.current;if(!e)return;let r=e.scrollHeight-e.clientHeight>hb,i={top:r&&e.scrollTop>hb,bottom:r&&e.scrollTop+e.clientHeight<e.scrollHeight-hb};t(e=>e.top===i.top&&e.bottom===i.bottom?e:i)},[]),a=(0,_.useCallback)(e=>{if(r.current?.(),r.current=null,n.current=e,!e)return;e.addEventListener(`scroll`,i,{passive:!0});let t=typeof ResizeObserver>`u`?null:new ResizeObserver(i);t?.observe(e);let a=new MutationObserver(i);a.observe(e,{childList:!0,subtree:!0}),r.current=()=>{e.removeEventListener(`scroll`,i),t?.disconnect(),a.disconnect()},requestAnimationFrame(i)},[i]);return(0,_.useEffect)(()=>()=>r.current?.(),[]),{ref:a,state:e,fadeProps:{"data-fade-top":e.top?``:void 0,"data-fade-bottom":e.bottom?``:void 0,className:`matrx-scroll-fade`}}}var _b=.6,vb=48;function yb(...e){return t=>{for(let n of e)typeof n==`function`?n(t):n&&(n.current=t)}}function bb({side:e,scroller:t}){let n=_.useRef(null),r=e===`top`?-1:1,i=_.useCallback(()=>{n.current!==null&&cancelAnimationFrame(n.current),n.current=null},[]),a=_.useCallback(()=>{i();let e=performance.now(),a=o=>{let s=t.current;if(!s)return i();s.scrollTop+=r*_b*(o-e),e=o,n.current=requestAnimationFrame(a)};n.current=requestAnimationFrame(a)},[r,t,i]);return _.useEffect(()=>i,[i]),(0,j.jsx)(`div`,{"aria-hidden":!0,"data-menu-scroll-edge":e,className:`matrx-menu-scroll-edge`,children:(0,j.jsx)(`div`,{className:`matrx-menu-scroll-fade`,children:(0,j.jsx)(`div`,{"data-menu-scroll-button":``,className:`matrx-menu-scroll-button`,onPointerEnter:e=>{e.pointerType!==`touch`&&a()},onPointerLeave:i,onPointerDown:e=>{e.preventDefault();let n=t.current;n&&(n.scrollTop+=r*Math.max(n.clientHeight-vb,vb))},children:e===`top`?(0,j.jsx)(tp,{}):(0,j.jsx)(ep,{})})})})}function xb(...e){let t=gb(),n=_.useRef(null);return{ref:_.useCallback(yb(n,t.ref,...e),[t.ref,...e]),wrap:e=>(0,j.jsxs)(j.Fragment,{children:[t.state.top?(0,j.jsx)(bb,{side:`top`,scroller:n}):null,e,t.state.bottom?(0,j.jsx)(bb,{side:`bottom`,scroller:n}):null]}),surfaceClassName:`matrx-menu-surface`}}function Sb(e,t){let n=_.useRef(null);return{ref:_.useCallback(t=>{n.current=t,typeof e==`function`?e(t):e&&(e.current=t)},[e]),onFocusOutside:e=>{if(t?.(e),e.defaultPrevented)return;let r=e.target,i=n.current?.id;r instanceof Element&&i&&r.getAttribute(`role`)===`menu`&&Array.from(r.querySelectorAll(`[aria-controls]`)).some(e=>e.getAttribute(`aria-controls`)===i)&&e.preventDefault()}}}var Cb=_.createContext(null);function wb(e,t){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:{top:e?.top??t,right:e?.right??t,bottom:e?.bottom??t,left:e?.left??t}}function Tb(e,t,n){if(!e)return t;let r=e.getAttribute(`data-side`);if(r!==`left`&&r!==`right`)return t;let i=e.ownerDocument.defaultView,a=i?.getComputedStyle(e).direction===`rtl`?`left`:`right`;if(r===a)return t;let o=wb(t,0),s=e.getBoundingClientRect();if(a===`right`){let r=n??e.ownerDocument.documentElement.clientWidth??i?.innerWidth??0;if(!r)return t;o.right=Math.max(o.right,r-s.left)}else o.left=Math.max(o.left,s.right);return o}function Eb(e,t){let n=_.useContext(Cb),r=_.useRef(null);return{ref:_.useCallback(t=>{r.current=t,typeof e==`function`?e(t):e&&(e.current=t)},[e]),padding:Tb(n?.current??null,t),wrap:e=>(0,j.jsx)(Cb.Provider,{value:r,children:e})}}var Db=nb,Ob=rb,kb=fb,Ab=`z-[10001] min-w-[8rem] max-h-[var(--radix-context-menu-content-available-height)] overflow-y-auto overflow-x-hidden overscroll-contain rounded-md border bg-popover p-1 text-popover-foreground`,jb=`relative flex select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:opacity-50`,Mb=`relative flex select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:opacity-50`,Nb=_.forwardRef(({className:e,inset:t,children:n,...r},i)=>(0,j.jsxs)(pb,{ref:i,"data-slot":`context-menu-sub-trigger`,className:Z(`flex select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground`,t&&`pl-8`,e),...r,children:[n,(0,j.jsx)($f,{className:`ml-auto h-4 w-4`})]}));Nb.displayName=pb.displayName;var Pb=_.forwardRef(({className:e,container:t,onFocusOutside:n,collisionPadding:r,children:i,...a},o)=>{let s=ed(t),c=Eb(o,r),l=Sb(c.ref,n),u=xb(l.ref);return(0,j.jsx)(ib,{container:s,children:(0,j.jsx)(mb,{ref:u.ref,onFocusOutside:l.onFocusOutside,...c.padding===void 0?{}:{collisionPadding:c.padding},"data-slot":`context-menu-sub-content`,className:Z(Ab,u.surfaceClassName,`shadow-lg`,Ju,e),...a,children:c.wrap(u.wrap(i))})})});Pb.displayName=mb.displayName;var Fb=_.forwardRef(({className:e,container:t,children:n,...r},i)=>{let a=ed(t),o=xb(i);return(0,j.jsx)(ib,{container:a,children:(0,j.jsx)(ab,{ref:o.ref,"data-slot":`context-menu-content`,className:Z(Ab,o.surfaceClassName,`shadow-md`,Ju,e),...r,children:o.wrap(n)})})});Fb.displayName=ab.displayName;var Ib=_.forwardRef(({className:e,inset:t,...n},r)=>(0,j.jsx)(sb,{ref:r,"data-slot":`context-menu-item`,className:Z(jb,`gap-2 [&>svg]:size-4 [&>svg]:shrink-0`,t&&`pl-8`,e),...n}));Ib.displayName=sb.displayName;var Lb=_.forwardRef(({className:e,children:t,...n},r)=>(0,j.jsxs)(cb,{ref:r,"data-slot":`context-menu-checkbox-item`,className:Z(Mb,e),...n,children:[(0,j.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,j.jsx)(ub,{children:(0,j.jsx)(Zf,{className:`h-4 w-4`})})}),t]}));Lb.displayName=cb.displayName;var Rb=_.forwardRef(({className:e,children:t,...n},r)=>(0,j.jsxs)(lb,{ref:r,"data-slot":`context-menu-radio-item`,className:Z(Mb,e),...n,children:[(0,j.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,j.jsx)(ub,{children:(0,j.jsx)(Qf,{className:`h-4 w-4 fill-current`})})}),t]}));Rb.displayName=lb.displayName;var zb=_.forwardRef(({className:e,inset:t,...n},r)=>(0,j.jsx)(ob,{ref:r,"data-slot":`context-menu-label`,className:Z(`px-2 py-1.5 text-sm font-semibold text-foreground`,t&&`pl-8`,e),...n}));zb.displayName=ob.displayName;var Bb=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(db,{ref:n,"data-slot":`context-menu-separator`,className:Z(`-mx-1 my-1 h-px bg-border`,e),...t}));Bb.displayName=db.displayName;var Vb=Object.defineProperty,Hb=(e,t)=>Vb(e,`name`,{value:t,configurable:!0});function Ub(e,[t,n]){return Math.min(n,Math.max(t,e))}Hb(Ub,`clamp`);var Wb=Object.defineProperty,Gb=(e,t)=>Wb(e,`name`,{value:t,configurable:!0});function Kb(e){let t=_.useRef({value:e,previous:e});return _.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}Gb(Kb,`usePrevious`);var qb=Object.defineProperty,Jb=(e,t)=>qb(e,`name`,{value:t,configurable:!0}),Yb=[` `,`Enter`,`ArrowUp`,`ArrowDown`],Xb=[` `,`Enter`],Zb=`Select`,[Qb,$b,ex]=Pf(Zb),[tx,nx]=Vi(Zb,[ex,Js]),rx=Js(),[ix,ax]=tx(Zb),[ox,sx]=tx(Zb);function cx(e){let{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:a,value:o,defaultValue:s,onValueChange:c,dir:l,name:u,autoComplete:d,disabled:f,required:p,form:m,internal_do_not_use_render:h}=e,g=rx(t),[v,y]=_.useState(null),[b,x]=_.useState(null),[S,C]=_.useState(!1),w=qf(l),[T,E]=kc({prop:r,defaultProp:i??!1,onChange:a,caller:Zb}),[D,O]=kc({prop:o,defaultProp:s,onChange:c,caller:Zb}),k=_.useRef(null),A=_.useRef(D);_.useEffect(()=>{let e=m?v?.ownerDocument.getElementById(m):v?.form;if(e instanceof HTMLFormElement){let t=Jb(()=>O(A.current),`reset`);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[m,v,O]);let M=!v||!!m||!!v.closest(`form`),[N,P]=_.useState(new Set),F=Aa(),I=Array.from(N).map(e=>e.props.value).join(`;`),L=_.useCallback(e=>{P(t=>new Set(t).add(e))},[]),ee=_.useCallback(e=>{P(t=>{let n=new Set(t);return n.delete(e),n})},[]),te={required:p,trigger:v,onTriggerChange:y,valueNode:b,onValueNodeChange:x,valueNodeHasChildren:S,onValueNodeHasChildrenChange:C,contentId:F,value:D,onValueChange:O,open:T,onOpenChange:E,dir:w,triggerPointerDownPosRef:k,disabled:f,name:u,autoComplete:d,form:m,nativeOptions:N,nativeSelectKey:I,isFormControl:M};return(0,j.jsx)(sc,{...g,children:(0,j.jsx)(ix,{scope:t,...te,children:(0,j.jsx)(Qb.Provider,{scope:t,children:(0,j.jsx)(ox,{scope:t,onNativeOptionAdd:L,onNativeOptionRemove:ee,children:Qx(h)?h(te):n})})})})}Jb(cx,`SelectProvider`);var lx=Jb(e=>{let{__scopeSelect:t,children:n,...r}=e;return(0,j.jsx)(cx,{__scopeSelect:t,...r,internal_do_not_use_render:({isFormControl:e})=>(0,j.jsxs)(j.Fragment,{children:[n,e?(0,j.jsx)(Zx,{__scopeSelect:t}):null]})})},`Select`),ux=`SelectTrigger`,dx=_.forwardRef(Jb(function(e,t){let{__scopeSelect:n,disabled:r=!1,...i}=e,a=rx(n),o=ax(ux,n),s=o.disabled||r,c=H(t,o.onTriggerChange),l=$b(n),u=_.useRef(`touch`),[d,f,p]=eS(e=>{let t=l().filter(e=>!e.disabled),n=tS(t,e,t.find(e=>e.value===o.value));n!==void 0&&o.onValueChange(n.value)}),m=Jb(e=>{s||(o.onOpenChange(!0),p()),e&&(o.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})},`handleOpen`);return(0,j.jsx)(cc,{asChild:!0,...a,children:(0,j.jsx)(W.button,{type:`button`,role:`combobox`,"aria-controls":o.open?o.contentId:void 0,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":`none`,dir:o.dir,"data-state":o.open?`open`:`closed`,disabled:s,"data-disabled":s?``:void 0,"data-placeholder":$x(o.value)?``:void 0,...i,ref:c,onClick:V(i.onClick,e=>{e.currentTarget.focus(),u.current!==`mouse`&&m(e)}),onPointerDown:V(i.onPointerDown,e=>{u.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&e.pointerType===`mouse`&&(m(e),e.preventDefault())}),onKeyDown:V(i.onKeyDown,e=>{let t=d.current!==``;!(e.ctrlKey||e.altKey||e.metaKey)&&e.key.length===1&&f(e.key),!(t&&e.key===` `)&&Yb.includes(e.key)&&(m(),e.preventDefault())})})})},`SelectTrigger`)),fx=`SelectValue`,px=_.forwardRef(Jb(function(e,t){let{__scopeSelect:n,className:r,style:i,children:a,placeholder:o=``,...s}=e,c=ax(fx,n),{onValueNodeHasChildrenChange:l}=c,u=a!==void 0,d=H(t,c.onValueNodeChange);Ta(()=>{l(u)},[l,u]);let f=$x(c.value);return(0,j.jsx)(W.span,{...s,asChild:!f&&s.asChild,ref:d,style:{pointerEvents:`none`},children:(0,j.jsx)(_.Fragment,{children:f?o:a},f?`placeholder`:`value`)})},`SelectValue`)),mx=_.forwardRef(Jb(function(e,t){let{__scopeSelect:n,children:r,...i}=e;return(0,j.jsx)(W.span,{"aria-hidden":!0,...i,ref:t,children:r||`▼`})},`SelectIcon`)),[hx,gx]=tx(`SelectPortal`,{forceMount:void 0}),_x=Jb(e=>{let{__scopeSelect:t,forceMount:n,...r}=e;return(0,j.jsx)(hx,{scope:e.__scopeSelect,forceMount:n,children:(0,j.jsx)(dc,{asChild:!0,...r})})},`SelectPortal`),vx=`SelectContent`,yx=_.forwardRef(Jb(function(e,t){let n=gx(vx,e.__scopeSelect),{forceMount:r=n.forceMount,...i}=e,a=ax(vx,e.__scopeSelect),[o,s]=_.useState();return Ta(()=>{s(new DocumentFragment)},[]),(0,j.jsx)(hc,{present:r||a.open,children:({present:e})=>e?(0,j.jsx)(Tx,{...i,ref:t}):(0,j.jsx)(bx,{...i,fragment:o})})},`SelectContent`)),bx=_.forwardRef(Jb(function(e,t){let{__scopeSelect:n,children:r,fragment:i}=e;return i?ia.createPortal((0,j.jsx)(Sx,{scope:n,children:(0,j.jsx)(Qb.Slot,{scope:n,children:(0,j.jsx)(`div`,{ref:t,children:r})})}),i):null},`SelectContentFragment`)),xx=10,[Sx,Cx]=tx(vx),wx=Gi(`SelectContent.RemoveScroll`),Tx=_.forwardRef(Jb(function(e,t){let{__scopeSelect:n}=e,{position:r=`item-aligned`,onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:o,side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:g,...v}=e,y=ax(vx,n),[b,x]=_.useState(null),[S,C]=_.useState(null),w=H(t,x),[T,E]=_.useState(null),[D,O]=_.useState(null),k=$b(n),[A,M]=_.useState(!1),N=_.useRef(!1);_.useEffect(()=>{if(b)return Gm(b)},[b]),Dp();let P=_.useCallback(e=>{let[t,...n]=k().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(n?.scrollIntoView({block:`nearest`}),n===t&&S&&(S.scrollTop=0),n===r&&S&&(S.scrollTop=S.scrollHeight),n?.focus(),document.activeElement!==i))return},[k,S]),F=_.useCallback(()=>P([T,b]),[P,T,b]);_.useEffect(()=>{A&&F()},[A,F]);let{onOpenChange:I,triggerPointerDownPosRef:L}=y;_.useEffect(()=>{if(b){let e={x:0,y:0},t=Jb(t=>{e={x:Math.abs(Math.round(t.pageX)-(L.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(L.current?.y??0))}},`handlePointerMove`),n=Jb(n=>{e.x<=10&&e.y<=10?n.preventDefault():n.composedPath().includes(b)||I(!1),document.removeEventListener(`pointermove`,t),L.current=null},`handlePointerUp`);return L.current!==null&&(document.addEventListener(`pointermove`,t),document.addEventListener(`pointerup`,n,{capture:!0,once:!0})),()=>{document.removeEventListener(`pointermove`,t),document.removeEventListener(`pointerup`,n,{capture:!0})}}},[b,I,L]),_.useEffect(()=>{let e=Jb(()=>I(!1),`close`);return window.addEventListener(`blur`,e),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`blur`,e),window.removeEventListener(`resize`,e)}},[I]);let[ee,te]=eS(e=>{let t=k().filter(e=>!e.disabled),n=tS(t,e,t.find(e=>e.ref.current===document.activeElement));n&&setTimeout(()=>n.ref.current?.focus())}),ne=_.useCallback((e,t,n)=>{let r=!N.current&&!n;(y.value!==void 0&&y.value===t||r)&&(E(e),r&&(N.current=!0))},[y.value]),re=_.useCallback(()=>b?.focus(),[b]),ie=_.useCallback((e,t,n)=>{let r=!N.current&&!n;(y.value!==void 0&&y.value===t||r)&&O(e)},[y.value]),ae=r===`popper`?Dx:Ex,oe=ae===Dx?{side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:g}:{};return(0,j.jsx)(Sx,{scope:n,content:b,viewport:S,onViewportChange:C,itemRefCallback:ne,selectedItem:T,onItemLeave:re,itemTextRefCallback:ie,focusSelectedItem:F,selectedItemText:D,position:r,isPositioned:A,searchRef:ee,children:(0,j.jsx)(Im,{as:wx,allowPinchZoom:!0,children:(0,j.jsx)(up,{asChild:!0,trapped:y.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:V(i,e=>{y.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,j.jsx)(va,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:(0,j.jsx)(ae,{role:`listbox`,id:y.contentId,"data-state":y.open?`open`:`closed`,dir:y.dir,onContextMenu:e=>e.preventDefault(),...v,...oe,onPlaced:()=>M(!0),ref:w,style:{display:`flex`,flexDirection:`column`,outline:`none`,...v.style},onKeyDown:V(v.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if(e.key===`Tab`&&e.preventDefault(),!t&&e.key.length===1&&te(e.key),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key)){let t=k().filter(e=>!e.disabled).map(e=>e.ref.current);if([`ArrowUp`,`End`].includes(e.key)&&(t=t.slice().reverse()),[`ArrowUp`,`ArrowDown`].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>P(t)),e.preventDefault()}})})})})})})},`SelectContentImpl`)),Ex=_.forwardRef(Jb(function(e,t){let{__scopeSelect:n,onPlaced:r,...i}=e,a=ax(vx,n),o=Cx(vx,n),[s,c]=_.useState(null),[l,u]=_.useState(null),d=H(t,u),f=$b(n),p=_.useRef(!1),m=_.useRef(!0),{viewport:h,selectedItem:g,selectedItemText:v,focusSelectedItem:y}=o,b=_.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&l&&h&&g&&v){let e=a.trigger.getBoundingClientRect(),t=l.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),i=v.getBoundingClientRect();if(a.dir!==`rtl`){let r=i.left-t.left,a=n.left-r,o=e.left-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-xx,d=Ub(a,[xx,Math.max(xx,u-l)]);s.style.minWidth=c+`px`,s.style.left=d+`px`}else{let r=t.right-i.right,a=window.innerWidth-n.right-r,o=window.innerWidth-e.right-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-xx,d=Ub(a,[xx,Math.max(xx,u-l)]);s.style.minWidth=c+`px`,s.style.right=d+`px`}let o=f(),c=window.innerHeight-xx*2,u=h.scrollHeight,d=window.getComputedStyle(l),m=parseInt(d.borderTopWidth,10),_=parseInt(d.paddingTop,10),y=parseInt(d.borderBottomWidth,10),b=parseInt(d.paddingBottom,10),x=m+_+u+b+y,S=Math.min(g.offsetHeight*5,x),C=window.getComputedStyle(h),w=parseInt(C.paddingTop,10),T=parseInt(C.paddingBottom,10),E=e.top+e.height/2-xx,D=c-E,O=g.offsetHeight/2,k=g.offsetTop+O,A=m+_+k,j=x-A;if(A<=E){let e=o.length>0&&g===o[o.length-1].ref.current;s.style.bottom=`0px`;let t=l.clientHeight-h.offsetTop-h.offsetHeight,n=A+Math.max(D,O+(e?T:0)+t+y);s.style.height=n+`px`}else{let e=o.length>0&&g===o[0].ref.current;s.style.top=`0px`;let t=Math.max(E,m+h.offsetTop+(e?w:0)+O)+j;s.style.height=t+`px`,h.scrollTop=A-E+h.offsetTop}s.style.margin=`${xx}px 0`,s.style.minHeight=S+`px`,s.style.maxHeight=c+`px`,r?.(),requestAnimationFrame(()=>p.current=!0)}},[f,a.trigger,a.valueNode,s,l,h,g,v,a.dir,r]);Ta(()=>b(),[b]);let[x,S]=_.useState();Ta(()=>{l&&S(window.getComputedStyle(l).zIndex)},[l]);let C=_.useCallback(e=>{e&&m.current===!0&&(b(),y?.(),m.current=!1)},[b,y]);return(0,j.jsx)(Ox,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:p,onScrollButtonChange:C,children:(0,j.jsx)(`div`,{ref:c,style:{display:`flex`,flexDirection:`column`,position:`fixed`,zIndex:x},children:(0,j.jsx)(W.div,{...i,ref:d,style:{boxSizing:`border-box`,maxHeight:`100%`,...i.style}})})})},`SelectItemAlignedPosition`)),Dx=_.forwardRef(Jb(function(e,t){let{__scopeSelect:n,align:r=`start`,collisionPadding:i=xx,...a}=e,o=rx(n);return(0,j.jsx)(lc,{...o,...a,ref:t,align:r,collisionPadding:i,style:{boxSizing:`border-box`,...a.style,"--radix-select-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-select-content-available-width":`var(--radix-popper-available-width)`,"--radix-select-content-available-height":`var(--radix-popper-available-height)`,"--radix-select-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-select-trigger-height":`var(--radix-popper-anchor-height)`}})},`SelectPopperPosition`)),[Ox,kx]=tx(vx,{}),Ax=`SelectViewport`,jx=_.forwardRef(Jb(function(e,t){let{__scopeSelect:n,nonce:r,...i}=e,a=Cx(Ax,n),o=kx(Ax,n),s=H(t,a.onViewportChange),c=_.useRef(0);return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}`},nonce:r}),(0,j.jsx)(Qb.Slot,{scope:n,children:(0,j.jsx)(W.div,{"data-radix-select-viewport":``,role:`presentation`,...i,ref:s,style:{position:`relative`,flex:1,overflow:`hidden auto`,...i.style},onScroll:V(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=o;if(r?.current&&n){let e=Math.abs(c.current-t.scrollTop);if(e>0){let r=window.innerHeight-xx*2,i=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),o=Math.max(i,a);if(o<r){let i=o+e,a=Math.min(r,i),s=i-a;n.style.height=a+`px`,n.style.bottom===`0px`&&(t.scrollTop=s>0?s:0,n.style.justifyContent=`flex-end`)}}}c.current=t.scrollTop})})})]})},`SelectViewport`)),[Mx,Nx]=tx(`SelectGroup`),Px=`SelectLabel`,Fx=_.forwardRef(Jb(function(e,t){let{__scopeSelect:n,...r}=e,i=Nx(Px,n);return(0,j.jsx)(W.div,{id:i.id,...r,ref:t})},`SelectLabel`)),Ix=`SelectItem`,[Lx,Rx]=tx(Ix),zx=_.forwardRef(Jb(function(e,t){let{__scopeSelect:n,value:r,disabled:i=!1,textValue:a,...o}=e,s=ax(Ix,n),c=Cx(Ix,n),l=s.value===r,[u,d]=_.useState(a??``),[f,p]=_.useState(!1),m=H(t,ua(e=>c.itemRefCallback?.(e,r,i))),h=Aa(),g=_.useRef(`touch`),v=Jb(()=>{i||(s.onValueChange(r),s.onOpenChange(!1))},`handleSelect`);return(0,j.jsx)(Lx,{scope:n,value:r,disabled:i,textId:h,isSelected:l,onItemTextChange:_.useCallback(e=>{d(t=>t||(e?.textContent??``).trim())},[]),children:(0,j.jsx)(Qb.ItemSlot,{scope:n,value:r,disabled:i,textValue:u,children:(0,j.jsx)(W.div,{role:`option`,"aria-labelledby":h,"data-highlighted":f?``:void 0,"aria-selected":l&&f,"data-state":l?`checked`:`unchecked`,"aria-disabled":i||void 0,"data-disabled":i?``:void 0,tabIndex:i?void 0:-1,...o,ref:m,onFocus:V(o.onFocus,()=>p(!0)),onBlur:V(o.onBlur,()=>p(!1)),onClick:V(o.onClick,()=>{g.current!==`mouse`&&v()}),onPointerUp:V(o.onPointerUp,()=>{g.current===`mouse`&&v()}),onPointerDown:V(o.onPointerDown,e=>{g.current=e.pointerType}),onPointerMove:V(o.onPointerMove,e=>{g.current=e.pointerType,i?c.onItemLeave?.():g.current===`mouse`&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:V(o.onPointerLeave,e=>{e.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:V(o.onKeyDown,e=>{i||e.target!==e.currentTarget||(c.searchRef?.current===``||e.key!==` `)&&(Xb.includes(e.key)&&v(),e.key===` `&&e.preventDefault())})})})})},`SelectItem`)),Bx=`SelectItemText`,Vx=_.forwardRef(Jb(function(e,t){let{__scopeSelect:n,className:r,style:i,...a}=e,o=ax(Bx,n),s=Cx(Bx,n),c=Rx(Bx,n),l=sx(Bx,n),[u,d]=_.useState(null),f=ua(e=>s.itemTextRefCallback?.(e,c.value,c.disabled)),p=H(t,d,c.onItemTextChange,f),m=u?.textContent,h=_.useMemo(()=>(0,j.jsx)(`option`,{value:c.value,disabled:c.disabled,children:m},c.value),[c.disabled,c.value,m]),{onNativeOptionAdd:g,onNativeOptionRemove:v}=l;return Ta(()=>(g(h),()=>v(h)),[g,v,h]),(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(W.span,{id:c.textId,...a,ref:p}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren&&!$x(o.value)?ia.createPortal(a.children,o.valueNode):null]})},`SelectItemText`)),Hx=`SelectItemIndicator`,Ux=_.forwardRef(Jb(function(e,t){let{__scopeSelect:n,...r}=e;return Rx(Hx,n).isSelected?(0,j.jsx)(W.span,{"aria-hidden":!0,...r,ref:t}):null},`SelectItemIndicator`)),Wx=`SelectScrollUpButton`,Gx=_.forwardRef(Jb(function(e,t){let n=Cx(Wx,e.__scopeSelect),r=kx(Wx,e.__scopeSelect),[i,a]=_.useState(!1),o=H(t,r.onScrollButtonChange);return Ta(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollTop>0;a(e)};Jb(e,`handleScroll`);let t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,j.jsx)(Jx,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop-=t.offsetHeight)}}):null},`SelectScrollUpButton`)),Kx=`SelectScrollDownButton`,qx=_.forwardRef(Jb(function(e,t){let n=Cx(Kx,e.__scopeSelect),r=kx(Kx,e.__scopeSelect),[i,a]=_.useState(!1),o=H(t,r.onScrollButtonChange);return Ta(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;a(n)};Jb(e,`handleScroll`);let t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,j.jsx)(Jx,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop+=t.offsetHeight)}}):null},`SelectScrollDownButton`)),Jx=_.forwardRef(Jb(function(e,t){let{__scopeSelect:n,onAutoScroll:r,...i}=e,a=Cx(`SelectScrollButton`,n),o=_.useRef(null),s=$b(n),c=_.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return _.useEffect(()=>()=>c(),[c]),Ta(()=>{s().find(e=>e.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:`nearest`})},[s]),(0,j.jsx)(W.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:V(i.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(r,50))}),onPointerMove:V(i.onPointerMove,()=>{a.onItemLeave?.(),o.current===null&&(o.current=window.setInterval(r,50))}),onPointerLeave:V(i.onPointerLeave,()=>{c()})})},`SelectScrollButtonImpl`)),Yx=_.forwardRef(Jb(function(e,t){let{__scopeSelect:n,...r}=e;return(0,j.jsx)(W.div,{"aria-hidden":!0,...r,ref:t})},`SelectSeparator`)),Xx=`SelectBubbleInput`,Zx=_.forwardRef(Jb(function({__scopeSelect:e,...t},n){let r=ax(Xx,e),{value:i,onValueChange:a,required:o,disabled:s,name:c,autoComplete:l,form:u}=r,{nativeOptions:d,nativeSelectKey:f}=r,p=_.useRef(null),m=H(n,p),h=i??``,g=Kb(h),v=Array.from(d).some(e=>(e.props.value??``)===``);return _.useEffect(()=>{let e=p.current;if(!e)return;let t=window.HTMLSelectElement.prototype,n=Object.getOwnPropertyDescriptor(t,`value`).set;if(g!==h&&n){let t=new Event(`change`,{bubbles:!0});n.call(e,h),e.dispatchEvent(t)}},[g,h]),(0,j.jsxs)(W.select,{"aria-hidden":!0,required:o,tabIndex:-1,name:c,autoComplete:l,disabled:s,form:u,onChange:e=>a(e.target.value),...t,style:{...Ic,...t.style},ref:m,defaultValue:h,children:[$x(i)&&!v?(0,j.jsx)(`option`,{value:``}):null,Array.from(d)]},f)},`SelectBubbleInput`));function Qx(e){return typeof e==`function`}Jb(Qx,`isFunction`);function $x(e){return e===``||e===void 0}Jb($x,`shouldShowPlaceholder`);function eS(e){let t=ua(e),n=_.useRef(``),r=_.useRef(0),i=_.useCallback(e=>{let i=n.current+e;t(i),Jb((function e(t){n.current=t,window.clearTimeout(r.current),t!==``&&(r.current=window.setTimeout(()=>e(``),1e3))}),`updateSearch`)(i)},[t]),a=_.useCallback(()=>{n.current=``,window.clearTimeout(r.current)},[]);return _.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}Jb(eS,`useTypeaheadSearch`);function tS(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=nS(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}Jb(tS,`findNextItem`);function nS(e,t){return e.map((n,r)=>e[(t+r)%e.length])}Jb(nS,`wrapArray`);var rS=`border border-border bg-card`,iS=lx,aS=px,oS=ip(`matrx-glyph-trim flex w-full items-center justify-between gap-2 whitespace-nowrap rounded-md ${rS} text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground transition-colors hover:bg-accent hover:border-accent-foreground/20 focus:outline-none focus:ring-1 focus:ring-primary/30 focus:border-primary/40 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:min-w-0 [&>span]:line-clamp-1`,{variants:{size:{sm:`h-7 px-2 py-1 text-xs`,default:`h-9 px-3 py-1`,lg:`h-10 px-3 py-2`}},defaultVariants:{size:`default`}});function sS({className:e,size:t=`default`}){return(0,j.jsx)(ep,{"aria-hidden":`true`,"data-select-chevron":``,className:Z(t===`sm`?`h-3.5 w-3.5`:`h-4 w-4`,`shrink-0 opacity-50`,e)})}var cS=_.forwardRef(({className:e,children:t,hideArrow:n=!1,size:r,...i},a)=>(0,j.jsxs)(dx,{ref:a,className:Z(oS({size:r,className:e})),...i,children:[t,!n&&(0,j.jsx)(mx,{asChild:!0,children:(0,j.jsx)(sS,{size:r===`sm`?`sm`:`default`})})]}));cS.displayName=dx.displayName;var lS=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(Gx,{ref:n,className:Z(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,j.jsx)(tp,{})}));lS.displayName=Gx.displayName;var uS=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(qx,{ref:n,className:Z(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,j.jsx)(ep,{})}));uS.displayName=qx.displayName;var dS=_.forwardRef(({className:e,children:t,position:n=`popper`,container:r,animated:i=!0,...a},o)=>{let s=ed(r);return(0,j.jsx)(_x,{container:s,children:(0,j.jsxs)(yx,{ref:o,className:Z(`relative z-[10001] max-h-96 min-w-[8rem] max-w-[calc(100vw-2rem)] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md`,i&&`matrx-motion-popper`,n===`popper`&&`matrx-popper-offset`,e),position:n,...a,children:[(0,j.jsx)(lS,{}),(0,j.jsx)(jx,{className:Z(`max-w-full overflow-y-auto p-0.5`,n===`popper`&&`w-full min-w-[var(--radix-select-trigger-width)] max-h-[var(--radix-select-content-available-height)]`),children:t}),(0,j.jsx)(uS,{})]})})});dS.displayName=yx.displayName;var fS=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(Fx,{ref:n,className:Z(`px-2 py-1.5 text-sm font-semibold`,e),...t}));fS.displayName=Fx.displayName;var pS=_.forwardRef(({className:e,children:t,description:n,...r},i)=>(0,j.jsxs)(zx,{ref:i,className:Z(`relative flex w-full min-w-0 select-none rounded-sm py-1 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:opacity-50`,n?`flex-col items-start gap-0.5 py-1.5`:`items-center`,e),...r,children:[(0,j.jsx)(`span`,{className:`absolute right-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,j.jsx)(Ux,{children:(0,j.jsx)(Zf,{className:`h-4 w-4`})})}),(0,j.jsx)(`span`,{className:`min-w-0 whitespace-normal break-words [overflow-wrap:anywhere]`,children:(0,j.jsx)(Vx,{children:t})}),n?(0,j.jsx)(`span`,{className:`block min-w-0 break-words text-xs leading-snug text-muted-foreground [overflow-wrap:anywhere]`,children:n}):null]}));pS.displayName=zx.displayName;var mS=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(Yx,{ref:n,className:Z(`-mx-1 my-1 h-px bg-muted`,e),...t}));mS.displayName=Yx.displayName;var hS=Object.defineProperty,gS=(e,t)=>hS(e,`name`,{value:t,configurable:!0}),_S=`Popover`,[vS,yS]=Vi(_S,[Js]),bS=Js(),[xS,SS]=vS(_S),CS=gS(e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!1}=e,s=bS(t),c=_.useRef(null),[l,u]=_.useState(!1),[d,f]=kc({prop:r,defaultProp:i??!1,onChange:a,caller:_S});return(0,j.jsx)(sc,{...s,children:(0,j.jsx)(xS,{scope:t,contentId:Aa(),triggerRef:c,open:d,onOpenChange:f,onOpenToggle:_.useCallback(()=>f(e=>!e),[f]),hasCustomAnchor:l,onCustomAnchorAdd:_.useCallback(()=>u(!0),[]),onCustomAnchorRemove:_.useCallback(()=>u(!1),[]),modal:o,children:n})})},`Popover`),wS=`PopoverTrigger`,TS=_.forwardRef(gS(function(e,t){let{__scopePopover:n,...r}=e,i=SS(wS,n),a=bS(n),o=H(t,i.triggerRef),s=(0,j.jsx)(W.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":IS(i.open),...r,ref:o,onClick:V(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?s:(0,j.jsx)(cc,{asChild:!0,...a,children:s})},`PopoverTrigger`)),ES=`PopoverPortal`,[DS,OS]=vS(ES,{forceMount:void 0}),kS=gS(e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=SS(ES,t);return(0,j.jsx)(DS,{scope:t,forceMount:n,children:(0,j.jsx)(hc,{present:n||a.open,children:(0,j.jsx)(dc,{asChild:!0,container:i,children:r})})})},`PopoverPortal`),AS=`PopoverContent`,jS=_.forwardRef(gS(function(e,t){let n=OS(AS,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=SS(AS,e.__scopePopover);return(0,j.jsx)(hc,{present:r||a.open,children:a.modal?(0,j.jsx)(NS,{...i,ref:t}):(0,j.jsx)(PS,{...i,ref:t})})},`PopoverContent`)),MS=Gi(`PopoverContent.RemoveScroll`),NS=_.forwardRef(gS(function(e,t){let n=SS(AS,e.__scopePopover),r=_.useRef(null),i=H(t,r),a=_.useRef(!1);return _.useEffect(()=>{let e=r.current;if(e)return Gm(e)},[]),(0,j.jsx)(Im,{as:MS,allowPinchZoom:!0,children:(0,j.jsx)(FS,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:V(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:V(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;a.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:V(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})},`PopoverContentModal`)),PS=_.forwardRef(gS(function(e,t){let n=SS(AS,e.__scopePopover),r=_.useRef(!1),i=_.useRef(!1);return(0,j.jsx)(FS,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})},`PopoverContentNonModal`)),FS=_.forwardRef(gS(function(e,t){let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,f=SS(AS,n),p=bS(n);return Dp(),(0,j.jsx)(up,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,j.jsx)(va,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>f.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,j.jsx)(lc,{"data-state":IS(f.open),role:`dialog`,id:f.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-popover-content-available-width":`var(--radix-popper-available-width)`,"--radix-popover-content-available-height":`var(--radix-popper-available-height)`,"--radix-popover-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-popover-trigger-height":`var(--radix-popper-anchor-height)`}})})})},`PopoverContentImpl`));function IS(e){return e?`open`:`closed`}gS(IS,`getState`);var LS=CS,RS=TS,zS=kS,BS=jS,VS=LS,HS=RS,US=_.forwardRef(({className:e,align:t=`center`,sideOffset:n=4,container:r,animated:i=!0,sizing:a=`fixed`,surface:o=`default`,collisionPadding:s=16,...c},l)=>{let u=ed(r);return(0,j.jsx)(zS,{container:u,children:(0,j.jsx)(BS,{ref:l,align:t,sideOffset:n,collisionPadding:s,"data-surface":o===`solid`?`solid`:void 0,className:Z(`z-[10000] max-h-[var(--radix-popover-content-available-height)] overflow-y-auto overscroll-contain rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none`,a===`content`?`w-auto min-w-[min(max(var(--radix-popover-trigger-width),20rem),calc(100vw-2rem))] max-w-[min(28rem,calc(100vw-2rem))]`:`w-72 max-w-[calc(100vw-2rem)]`,o===`solid`&&`bg-[hsl(var(--popover)/1)] [backdrop-filter:none] [-webkit-backdrop-filter:none]`,i&&`matrx-motion-popper`,e),...c})})});US.displayName=BS.displayName;var WS=`matrx:layer-front`;function GS(e){typeof document<`u`&&document.dispatchEvent(new CustomEvent(WS,{detail:{element:e}}))}var KS=_.createContext(!1),qS=({children:e,...t})=>{let n=T_(),r=t.modal??n;return(0,j.jsx)(KS.Provider,{value:t.modal===void 0,children:(0,j.jsx)(Jg,{modal:r,children:(0,j.jsx)($m,{...t,modal:r,children:e})})})};qS.displayName=`Dialog`;var JS=({container:e,...t})=>{let n=ed(e);return(0,j.jsx)(ah,{container:n??null,...t})};JS.displayName=`DialogPortal`;var YS=Symbol.for(`ai-matrx.design-system.dialog-container-context`),XS=globalThis,ZS=XS[YS]??=_.createContext(null),QS=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(sh,{ref:n,"data-slot":`dialog-overlay`,className:Z(`fixed inset-0 z-[10000] bg-[var(--matrx-overlay-scrim-soft)]`,qu,e),...t}));QS.displayName=sh.displayName;var $S=_.forwardRef(({onInteractOutside:e,...t},n)=>{let r=Yg();return zg(r),(0,j.jsx)(dh,{...t,ref:n,"aria-modal":r||void 0,onInteractOutside:Hg(e)})});$S.displayName=`DialogContentPrimitive`;var eC=`matrx-dialog-card fixed inset-0 z-[10000] m-auto grid h-fit min-w-0 w-full max-w-lg gap-4 max-h-[85dvh] overflow-y-auto overscroll-contain [--dialog-pad:1.5rem] overflow-x-clip border bg-background p-6 shadow-lg [overflow-wrap:anywhere] [&>*]:min-w-0 [&>*]:max-w-full sm:rounded-lg`,tC=`matrx-mobile-sheet matrx-dialog-card fixed inset-x-0 bottom-0 left-0 right-0 top-auto z-[10000] flex min-w-0 flex-col w-full max-w-full max-h-[90dvh] gap-4 [--dialog-pad:1rem] overflow-x-clip border-t bg-background p-4 pb-safe shadow-lg [overflow-wrap:anywhere] [&>*]:min-w-0 [&>*]:max-w-full rounded-t-2xl rounded-b-none overflow-y-auto overscroll-contain`,nC=`inset-x-0 bottom-0 left-0 right-0 top-auto translate-none w-full max-w-full max-h-[90dvh] rounded-b-none rounded-t-2xl overflow-y-auto`,rC=_.createContext(null),iC=80;function aC(e){return e instanceof Element&&!!e.closest(`button, a, input, textarea, select, [role='button'], [contenteditable='true']`)}var oC=_.forwardRef(({className:e,children:t,mobileSheet:n=!0,animated:r=!0,showCloseButton:i=!0,container:a,dismissOnOutsideClick:o=!1,onInteractOutside:s,onEscapeKeyDown:c,onPointerDownCapture:l,onFocusCapture:u,style:d,...f},p)=>{let m=T_(),h=Yg(),g=ed(a),v=n&&m,y=!h&&!v,b=_.useContext(KS),[x,S]=_.useState(null),C=y&&b,[w,T]=_.useState(!1);_.useEffect(()=>{if(!C||!x)return;let e=e=>{let t=e.detail?.element??null;(!t||t!==x&&!x.contains(t))&&T(!0)};return document.addEventListener(WS,e),GS(x),()=>document.removeEventListener(WS,e)},[C,x]);let E=()=>{C&&x&&(T(!1),GS(x))},[D,O]=_.useState({x:0,y:0}),k=_.useRef(null),A=_.useMemo(()=>{if(!y)return null;let e=(e,t)=>Math.max(-t,Math.min(t,e));return{onPointerDown:e=>{e.button!==0||aC(e.target)||(k.current={x:e.clientX,y:e.clientY,baseX:D.x,baseY:D.y},e.currentTarget.setPointerCapture?.(e.pointerId))},onPointerMove:t=>{let n=k.current;n&&O({x:e(n.baseX+t.clientX-n.x,window.innerWidth/2-iC/2),y:e(n.baseY+t.clientY-n.y,window.innerHeight/2-iC/2)})},onPointerUp:e=>{k.current&&(k.current=null,e.currentTarget.releasePointerCapture?.(e.pointerId))},onPointerCancel:()=>{k.current=null},onDoubleClick:()=>O({x:0,y:0})}},[y,D.x,D.y]),M=_.useCallback(e=>{S(e),typeof p==`function`?p(e):p&&(p.current=e)},[p]),N=Og(t,lC)||Og(t,gh),P=Og(t,uC)||Og(t,vh);return(0,j.jsxs)(JS,{container:a,children:[h?(0,j.jsx)(QS,{}):null,(0,j.jsxs)($S,{ref:M,"data-slot":`dialog-content`,className:Z(v?tC:eC,r&&(v?`matrx-motion-bottom-sheet`:`matrx-motion-dialog`),e,v&&nC,!h&&!b&&`z-[900]`,C&&w&&`z-[999]`,y&&`shadow-2xl ring-1 ring-border/60`),style:y&&(D.x!==0||D.y!==0)?{...d,translate:`${D.x}px ${D.y}px`}:d,onPointerDownCapture:e=>{l?.(e),w&&E()},onFocusCapture:e=>{u?.(e),w&&E()},onInteractOutside:e=>{s?.(e),y&&!o&&e.preventDefault()},onEscapeKeyDown:e=>{c?.(e);let t=e.target instanceof Node&&e.target!==document.body?e.target:document.activeElement;y&&x&&!(t&&x.contains(t))&&e.preventDefault()},...P?{}:{"aria-describedby":void 0},...f,children:[N?null:(0,j.jsx)(Lc,{children:(0,j.jsx)(gh,{children:`Dialog`})}),(0,j.jsx)(ZS.Provider,{value:x,children:(0,j.jsx)(rC.Provider,{value:A,children:(0,j.jsx)($u,{container:x??g??null,children:t})})}),i?(0,j.jsxs)(bh,{"data-slot":`dialog-close`,"aria-label":`Close`,className:`absolute right-2 top-4 flex h-11 w-11 items-center justify-center rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 data-[state=open]:bg-accent data-[state=open]:text-muted-foreground sm:right-4 lg:h-10 lg:w-10`,children:[(0,j.jsx)(Yf,{className:`h-4 w-4`}),(0,j.jsx)(`span`,{className:`sr-only`,children:`Close`})]}):null]})]})});oC.displayName=dh.displayName;var sC=({className:e,...t})=>{let n=_.useContext(rC);return(0,j.jsx)(`div`,{"data-slot":`dialog-header`,...n?{...n,"data-window-handle":``,title:`Drag to move · double-click to recenter`}:{},className:Z(`flex flex-col space-y-1.5 pr-12 text-center sm:text-left`,n&&`cursor-grab select-none active:cursor-grabbing`,e),...t})};sC.displayName=`DialogHeader`;var cC=({className:e,...t})=>(0,j.jsx)(`div`,{"data-slot":`dialog-footer`,className:Z(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end sm:gap-0 sm:space-x-2`,`sticky bottom-0 z-10 bg-background pt-3`,`mx-[calc(var(--dialog-pad,0px)*-1)] px-[var(--dialog-pad,0px)] pb-[var(--dialog-pad,0px)]`,e),...t});cC.displayName=`DialogFooter`;var lC=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(gh,{ref:n,"data-slot":`dialog-title`,className:Z(`text-lg font-semibold leading-none tracking-tight`,e),...t}));lC.displayName=gh.displayName;var uC=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(vh,{ref:n,"data-slot":`dialog-description`,className:Z(`text-sm text-muted-foreground`,e),...t}));uC.displayName=vh.displayName;var dC=Object.defineProperty,fC=(e,t)=>dC(e,`name`,{value:t,configurable:!0}),pC=`DropdownMenu`,[mC,hC]=Vi(pC,[gv]),gC=gv(),[_C,vC]=mC(pC),yC=fC(e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,c=gC(t),l=_.useRef(null),[u,d]=kc({prop:i,defaultProp:a??!1,onChange:o,caller:pC});return(0,j.jsx)(_C,{scope:t,triggerId:Aa(),triggerRef:l,contentId:Aa(),open:u,onOpenChange:d,onOpenToggle:_.useCallback(()=>d(e=>!e),[d]),modal:s,children:(0,j.jsx)(_y,{...c,open:u,onOpenChange:d,dir:r,modal:s,children:n})})},`DropdownMenu`),bC=`DropdownMenuTrigger`,xC=_.forwardRef(fC(function(e,t){let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=vC(bC,n),o=gC(n),s=H(t,a.triggerRef);return(0,j.jsx)(vy,{asChild:!0,...o,children:(0,j.jsx)(W.button,{type:`button`,id:a.triggerId,"aria-haspopup":`menu`,"aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?`open`:`closed`,"data-disabled":r?``:void 0,disabled:r,...i,ref:s,onPointerDown:V(e.onPointerDown,e=>{!r&&e.button===0&&e.ctrlKey===!1&&(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:V(e.onKeyDown,e=>{r||([`Enter`,` `].includes(e.key)&&a.onOpenToggle(),e.key===`ArrowDown`&&a.onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(e.key)&&e.preventDefault())})})})},`DropdownMenuTrigger`)),SC=fC(e=>{let{__scopeDropdownMenu:t,...n}=e,r=gC(t);return(0,j.jsx)(yy,{...r,...n})},`DropdownMenuPortal`),CC=`DropdownMenuContent`,wC=_.forwardRef(fC(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=vC(CC,n),a=gC(n),o=_.useRef(!1);return(0,j.jsx)(by,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:V(e.onCloseAutoFocus,e=>{o.current||i.triggerRef.current?.focus(),o.current=!1,e.preventDefault()}),onInteractOutside:V(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;(!i.modal||r)&&(o.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})},`DropdownMenuContent`)),TC=_.forwardRef(fC(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=gC(n);return(0,j.jsx)(xy,{...i,...r,ref:t})},`DropdownMenuLabel`)),EC=_.forwardRef(fC(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=gC(n);return(0,j.jsx)(Sy,{...i,...r,ref:t})},`DropdownMenuItem`)),DC=_.forwardRef(fC(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=gC(n);return(0,j.jsx)(Cy,{...i,...r,ref:t})},`DropdownMenuCheckboxItem`)),OC=_.forwardRef(fC(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=gC(n);return(0,j.jsx)(wy,{...i,...r,ref:t})},`DropdownMenuRadioGroup`)),kC=_.forwardRef(fC(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=gC(n);return(0,j.jsx)(Ty,{...i,...r,ref:t})},`DropdownMenuRadioItem`)),AC=_.forwardRef(fC(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=gC(n);return(0,j.jsx)(Ey,{...i,...r,ref:t})},`DropdownMenuItemIndicator`)),jC=_.forwardRef(fC(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=gC(n);return(0,j.jsx)(Dy,{...i,...r,ref:t})},`DropdownMenuSeparator`)),MC=fC(e=>{let{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:i,defaultOpen:a}=e,o=gC(t),[s,c]=kc({prop:r,defaultProp:a??!1,onChange:i,caller:`DropdownMenuSub`});return(0,j.jsx)(Oy,{...o,open:s,onOpenChange:c,children:n})},`DropdownMenuSub`),NC=_.forwardRef(fC(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=gC(n);return(0,j.jsx)(ky,{...i,...r,ref:t})},`DropdownMenuSubTrigger`)),PC=_.forwardRef(fC(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=gC(n);return(0,j.jsx)(Ay,{...i,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})},`DropdownMenuSubContent`)),FC=yC,IC=xC,LC=SC,RC=wC,zC=TC,BC=EC,VC=DC,HC=OC,UC=kC,WC=AC,GC=jC,KC=MC,qC=NC,JC=PC,YC=FC,XC=IC,ZC=KC,QC=HC,$C=`z-[10001] min-w-[8rem] max-h-[var(--radix-dropdown-menu-content-available-height)] overflow-y-auto overflow-x-hidden overscroll-contain rounded-md border bg-popover p-1 text-popover-foreground`,ew=`relative flex select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:opacity-50`,tw=`relative flex select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:opacity-50`,nw=_.forwardRef(({className:e,inset:t,children:n,...r},i)=>(0,j.jsxs)(qC,{ref:i,"data-slot":`dropdown-menu-sub-trigger`,className:Z(`flex select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent`,t&&`pl-8`,e),...r,children:[n,(0,j.jsx)($f,{className:`ml-auto h-4 w-4`})]}));nw.displayName=qC.displayName;var rw=_.forwardRef(({className:e,container:t,surface:n=`default`,sideOffset:r=2,alignOffset:i=-4,collisionPadding:a=8,onFocusOutside:o,children:s,...c},l)=>{let u=ed(t),d=Eb(l,a),f=Sb(d.ref,o),p=xb(f.ref);return(0,j.jsx)(LC,{container:u,children:(0,j.jsx)(JC,{ref:p.ref,onFocusOutside:f.onFocusOutside,"data-slot":`dropdown-menu-sub-content`,"data-surface":n===`solid`?`solid`:void 0,sideOffset:r,alignOffset:i,...d.padding===void 0?{}:{collisionPadding:d.padding},className:Z($C,p.surfaceClassName,`shadow-lg`,n===`solid`&&`bg-[hsl(var(--popover)/1)] [backdrop-filter:none] [-webkit-backdrop-filter:none]`,Ju,e),...c,children:d.wrap(p.wrap(s))})})});rw.displayName=JC.displayName;var iw=_.forwardRef(({className:e,sideOffset:t=4,container:n,surface:r=`default`,children:i,...a},o)=>{let s=ed(n),c=xb(o);return(0,j.jsx)(LC,{container:s,children:(0,j.jsx)(RC,{ref:c.ref,"data-slot":`dropdown-menu-content`,"data-surface":r===`solid`?`solid`:void 0,sideOffset:t,className:Z($C,c.surfaceClassName,`shadow-md`,r===`solid`&&`bg-[hsl(var(--popover)/1)] [backdrop-filter:none] [-webkit-backdrop-filter:none]`,Ju,e),...a,children:c.wrap(i)})})});iw.displayName=RC.displayName;var aw=_.forwardRef(({className:e,inset:t,...n},r)=>(0,j.jsx)(BC,{ref:r,"data-slot":`dropdown-menu-item`,className:Z(ew,t&&`pl-8`,e),...n}));aw.displayName=BC.displayName;var ow=_.forwardRef(({className:e,children:t,...n},r)=>(0,j.jsxs)(VC,{ref:r,"data-slot":`dropdown-menu-checkbox-item`,className:Z(tw,e),...n,children:[(0,j.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,j.jsx)(WC,{children:(0,j.jsx)(Zf,{className:`h-4 w-4`})})}),t]}));ow.displayName=VC.displayName;var sw=_.forwardRef(({className:e,children:t,...n},r)=>(0,j.jsxs)(UC,{ref:r,"data-slot":`dropdown-menu-radio-item`,className:Z(tw,e),...n,children:[(0,j.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,j.jsx)(WC,{children:(0,j.jsx)(Qf,{className:`h-4 w-4 fill-current`})})}),t]}));sw.displayName=UC.displayName;var cw=_.forwardRef(({className:e,inset:t,...n},r)=>(0,j.jsx)(zC,{ref:r,"data-slot":`dropdown-menu-label`,className:Z(`px-2 py-1.5 text-sm font-semibold`,t&&`pl-8`,e),...n}));cw.displayName=zC.displayName;var lw=_.forwardRef(({className:e,...t},n)=>(0,j.jsx)(GC,{ref:n,"data-slot":`dropdown-menu-separator`,className:Z(`-mx-1 my-1 h-px bg-muted`,e),...t}));lw.displayName=GC.displayName;var uw=(e=`default`)=>{let t=`flex h-10 w-full ${rS} text-foreground shadow-input rounded-md px-3 py-2 text-sm file:border-0 file:bg-transparent
|
|
59
59
|
file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground
|
|
60
60
|
focus-visible:outline-none focus-visible:ring-[2px] focus-visible:ring-ring
|
|
61
61
|
disabled:cursor-not-allowed disabled:opacity-50
|
|
@@ -63,9 +63,9 @@ Error generating stack: `+e.message+`
|
|
|
63
63
|
transition duration-400
|
|
64
64
|
[&:-webkit-autofill]:bg-card [&:-webkit-autofill]:shadow-[0_0_0_1000px_hsl(var(--card))_inset] [&:-webkit-autofill]:[caret-color:currentColor]
|
|
65
65
|
dark:[&:-webkit-autofill]:shadow-[0_0_0_1000px_hsl(var(--card))_inset] dark:[&:-webkit-autofill]:[-webkit-text-fill-color:hsl(var(--foreground))]
|
|
66
|
-
[&:-webkit-autofill:hover]:shadow-[0_0_0_1000px_hsl(var(--card))_inset] [&:-webkit-autofill:focus]:shadow-[0_0_0_1000px_hsl(var(--card))_inset]`;switch(e){case`destructive`:return`${t} bg-destructive text-destructive-foreground`;case`outline`:return`${t} border-2`;case`secondary`:return`${t} bg-secondary text-secondary-foreground`;case`ghost`:return`${t} bg-transparent shadow-none`;case`link`:return`${t} bg-transparent underline-offset-4 hover:underline`;case`primary`:return`${t} bg-primary text-primary-foreground`;default:return t}},uw=_.forwardRef(({className:e,type:t,variant:n=`default`,...r},i)=>(0,j.jsx)(`input`,{type:t,className:Z(lw(n),e),ref:i,...r}));uw.displayName=`Input`;var dw=_.forwardRef(({onEnter:e,...t},n)=>{let r=t=>{t.key===`Enter`&&e&&(t.preventDefault(),e())};return(0,j.jsx)(uw,{...t,ref:n,onKeyDown:e=>{r(e),t.onKeyDown&&t.onKeyDown(e)}})});dw.displayName=`EnterInput`;var fw=_.forwardRef(({className:e,type:t,variant:n=`default`,...r},i)=>(0,j.jsx)(`input`,{type:t,className:Z(`flex h-9 w-full rounded-md ${nS} px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50`,e),ref:i,...r}));fw.displayName=`BasicInput`;var pw=_.forwardRef(({prefix:e,className:t,wrapperClassName:n,...r},i)=>(0,j.jsxs)(`div`,{className:Z(`relative`,n),children:[e&&(0,j.jsx)(`div`,{className:`absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground`,children:e}),(0,j.jsx)(uw,{ref:i,className:Z(e&&`pl-10`,t),...r})]}));pw.displayName=`InputWithPrefix`;var mw=/(?:^|\s)(h-full|h-dvh|flex-1|grow)(?:\s|$)/,hw=/(?:^|\s)(w-full|w-screen)(?:\s|$)/;function gw(e){if(!e)return;let t=[];return mw.test(e)&&t.push(`h-full min-h-0`),hw.test(e)&&t.push(`w-full`),t.length?t.join(` `):void 0}var _w=`flex h-auto w-full rounded-md ${nS} px-3 py-2 text-sm text-foreground shadow-textarea transition duration-400 placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-[2px] focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50`,vw=`flex w-full rounded-md ${nS} px-3 py-2 text-sm text-foreground shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50`;function yw(e,t,n=!1,r,i){_.useEffect(()=>{if(!n||!e.current)return;let t=e.current;t.style.height=`auto`;let a=t.scrollHeight;r&&(a=Math.max(a,r)),i&&a>=i?(t.style.height=`${i}px`,t.style.overflowY=`auto`):(t.style.height=`${a}px`,t.style.overflowY=`hidden`)},[t,n,r,i,e])}function bw(e){let t=_.useRef(null);return{ref:t,callback:_.useCallback(n=>{t.current=n,typeof e==`function`?e(n):e&&(e.current=n)},[e])}}function xw(e,t){if(e!==void 0||t!==void 0)return{minHeight:e?`${e}px`:void 0,maxHeight:t?`${t}px`:void 0}}var Sw=_.forwardRef(({className:e,autoGrow:t,minHeight:n,maxHeight:r,wrapperClassName:i,...a},o)=>{let{ref:s,callback:c}=bw(o),l=gw(e),u=!!(i||l);yw(s,a.value,t,n,r);let d=(0,j.jsx)(`textarea`,{ref:c,"data-slot":`textarea`,className:Z(_w,t&&`resize-none`,l,e),style:xw(n,r),...a});return u?(0,j.jsx)(`div`,{className:Z(l,i),children:d}):d});Sw.displayName=`Textarea`;var Cw=_.forwardRef(({className:e,autoGrow:t,minHeight:n,maxHeight:r,...i},a)=>{let{ref:o,callback:s}=bw(a);return yw(o,i.value,t,n,r),(0,j.jsx)(`textarea`,{ref:s,"data-slot":`textarea`,className:Z(vw,`h-auto min-h-[60px]`,t&&`resize-none`,e),style:xw(n,r),...i})});Cw.displayName=`BasicTextarea`;var ww=_.forwardRef(({prefix:e,className:t,wrapperClassName:n,autoGrow:r,minHeight:i,maxHeight:a,...o},s)=>{let{ref:c,callback:l}=bw(s);return yw(c,o.value,r,i,a),(0,j.jsxs)(`div`,{className:Z(`relative`,gw(t),n),children:[e?(0,j.jsx)(`div`,{className:`pointer-events-none absolute left-3 top-3 z-10 text-muted-foreground`,children:e}):null,(0,j.jsx)(`textarea`,{ref:l,"data-slot":`textarea`,className:Z(vw,`resize-y`,e&&`pl-10`,r&&`resize-none`,t),style:xw(i,a),...o})]})});ww.displayName=`TextareaWithPrefix`;var Tw={"input-streaming":`Preparing`,"input-available":`Running`,"approval-requested":`Needs your approval`,"output-available":`Done`,"output-error":`Failed`,"output-denied":`Declined`};function Ew(e){if(e===void 0)return``;if(typeof e==`string`)return e;try{return JSON.stringify(e,null,2)}catch{return String(e)}}function Dw(e){let{part:t,defaultExpanded:n,body:r}=e,[i,a]=(0,_.useState)(n),{toolLabel:o}=bi(),s=t.progress[t.progress.length-1],c=Ew(t.input),l=Ew(t.output),u=Tw[t.state],d=s!==void 0&&s.message!==``&&s.message.trim().toLowerCase()!==u.toLowerCase()?s.message:null,f=c!==``||l!==``||t.errorText!==null||t.progress.length>0;return(0,j.jsxs)(`div`,{className:`mx-chat-tool`,"data-state":t.state,"data-tool":t.toolName,...e.rendererTag===void 0?{}:{"data-mx-chat-tool-renderer":e.rendererTag},children:[(0,j.jsxs)(`button`,{type:`button`,className:`mx-chat-tool__header mx-chat-focusable`,"aria-expanded":i,onClick:()=>a(e=>!e),children:[(0,j.jsx)(`span`,{"data-open":i,className:`mx-chat-chevron-wrap`,children:(0,j.jsx)(Ti,{})}),(0,j.jsx)(`span`,{className:`mx-chat-tool__name`,children:o(t.toolName)}),d===null?null:(0,j.jsx)(`span`,{className:`mx-chat-tool__beat`,children:d}),(0,j.jsx)(`span`,{className:`mx-chat-tool__state`,children:u})]}),i?r===void 0?(0,j.jsxs)(`div`,{className:`mx-chat-tool__body`,children:[c===``?null:(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`span`,{className:`mx-chat-tool__label`,children:`What it was asked`}),(0,j.jsx)(`pre`,{className:`mx-chat-tool__payload`,children:c})]}),t.progress.length>0?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`span`,{className:`mx-chat-tool__label`,children:`Progress`}),(0,j.jsx)(`ul`,{className:`mx-chat-tool__progress`,children:t.progress.map((e,t)=>(0,j.jsxs)(`li`,{children:[(0,j.jsx)(`span`,{"data-tool-beat":e.toolName,children:e.toolName}),e.message===``?null:` — ${e.message}`,e.percent===null?null:` (${Math.round(e.percent)}%)`]},`${e.toolName}-${t}`))})]}):null,t.errorText===null?null:(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`span`,{className:`mx-chat-tool__label`,children:`What went wrong`}),(0,j.jsx)(`p`,{className:`mx-chat-failure__sentence`,children:t.errorText})]}),l===``?null:(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`span`,{className:`mx-chat-tool__label`,children:`What it returned`}),(0,j.jsx)(`pre`,{className:`mx-chat-tool__payload`,children:l})]}),f?null:(0,j.jsx)(`span`,{className:`mx-chat-standin`,children:t.state===`input-streaming`?`This tool has not said what it is doing yet.`:`This tool ran without reporting any details.`})]}):r:null]})}function Ow(e){return(0,j.jsx)(j.Fragment,{children:e.renderContent({kind:`markdown`,text:e.part.text,streaming:e.streaming,role:e.role,messageId:e.messageId})})}function kw(e){let{part:t,defaultOpen:n}=e,[r,i]=(0,_.useState)(n),a=t.state===`streaming`;return(0,j.jsxs)(`div`,{className:`mx-chat-reasoning`,"data-streaming":a,children:[(0,j.jsxs)(`button`,{type:`button`,className:`mx-chat-quiet-button mx-chat-focusable`,"aria-expanded":r,onClick:()=>i(e=>!e),children:[(0,j.jsx)(`span`,{"data-open":r,className:`mx-chat-chevron-wrap`,children:(0,j.jsx)(Ti,{})}),a?`Thinking…`:`Thought process`]}),r?(0,j.jsx)(`div`,{className:`mx-chat-reasoning__body`,"data-mx-chat-reasoning":`body`,children:t.text}):null]})}function Aw(e){let{part:t}=e;return(0,j.jsxs)(`div`,{className:`mx-chat-notice`,"data-level":t.level,role:`note`,children:[(0,j.jsx)(`span`,{children:t.userMessage}),t.remedy===null?null:(0,j.jsx)(`span`,{className:`mx-chat-notice__remedy`,children:t.remedy})]})}function jw(e){let{part:t,retryText:n,onRetry:r}=e;return(0,j.jsxs)(p_,{as:`div`,className:`mx-chat-failure`,"data-code":t.code??`unknown`,message:t.userMessage,error:t,operation:`Answer the last message`,unsavedInput:n===``?void 0:{message:n},origin:`chat/ChatFailurePart`,children:[(0,j.jsx)(`p`,{className:`mx-chat-failure__sentence`,children:t.userMessage}),t.remedy===null?null:(0,j.jsx)(`p`,{className:`mx-chat-failure__remedy`,children:t.remedy}),n===``?null:(0,j.jsx)(v_,{type:`button`,size:`sm`,variant:`outline`,className:`mx-chat-focusable`,onClick:()=>r(n),children:`Try again`})]})}function Mw(e){return(0,j.jsx)(Dw,{part:e.part,defaultExpanded:e.defaultExpanded})}function Nw(e){let{part:t}=e;return(0,j.jsx)(`div`,{"data-mx-chat-block":t.kind,"data-status":t.status,children:e.renderContent({kind:t.kind,text:t.content??``,data:t.data,streaming:t.status===`streaming`,role:e.role,messageId:e.messageId})})}function Pw(e){let t=e.part.name??e.part.fileId;return(0,j.jsx)(`span`,{className:`mx-chat-standin`,"data-mx-chat-standin":`file`,children:`Attached file: ${t}. Previews appear once the attachments capability is turned on for this chat.`})}function Fw(e){let{part:t}=e,n=t.title??t.url??t.sourceId;return(0,j.jsx)(`span`,{className:`mx-chat-standin`,"data-mx-chat-standin":`source`,children:`Source: ${n}`})}function Iw(e){return(0,j.jsx)(`span`,{className:`mx-chat-standin`,"data-mx-chat-standin":`ask-user`,children:e.part.answered?`You already answered: ${e.part.prompt}`:`The assistant is waiting for your answer: ${e.part.prompt}. This chat cannot collect it yet — answer in a chat with the approvals capability turned on, or stop this run.`})}var Lw=(0,_.memo)(function(e){let t=vi(e.messageId),n=yi(),{renderContent:r}=bi(),i=xi(),{thread:a,retry:o}=gi();if(t===void 0)return null;let s=t.status===`streaming`||t.status===`pending`,c=t.role;if(c===`user`)return(0,j.jsxs)(`article`,{className:`mx-chat-turn`,"data-role":`user`,...e.continued?{"data-continued":`true`}:{},"data-message-id":t.id,"aria-label":`Your message`,children:[(0,j.jsx)(`div`,{className:`mx-chat-turn__bubble`,children:r({kind:`markdown`,text:C(t),streaming:!1,role:c,messageId:t.id})}),Bw(t,i.renderTurnMeta),n.messageActions?(0,j.jsx)(jf,{message:t}):null]});let l=wi(a.getSnapshot().messages,t.id);return(0,j.jsxs)(`article`,{className:`mx-chat-turn`,"data-role":c,...e.continued?{"data-continued":`true`}:{},"data-status":t.status,"data-message-id":t.id,"aria-label":`Assistant message`,"aria-busy":s||void 0,children:[(0,j.jsxs)(`div`,{className:`mx-chat-turn__body`,children:[t.parts.map((e,a)=>{let c=i.renderPart?.(e,{message:t,index:a,streaming:s});return c===void 0?(0,j.jsx)(`div`,{children:Vw(e,{message:t,streaming:s,renderContent:r,expandTools:n.expandToolCardsByDefault,showReasoning:n.showReasoningByDefault,retryText:l,onRetry:e=>o.request(e)})},zw(e,a)):(0,j.jsx)(`div`,{children:c},zw(e,a))}),s&&t.parts.length===0?(0,j.jsx)(`span`,{className:`mx-chat-caret`,"data-mx-chat":`waiting`,"aria-hidden":`true`}):null,Rw(t)?(0,j.jsx)(`p`,{className:`mx-chat-turn__stopped`,role:`note`,children:`Stopped`}):null]}),Bw(t,i.renderTurnMeta),n.messageActions?(0,j.jsx)(jf,{message:t}):null]})});function Rw(e){return e.status===`cancelled`&&!e.parts.some(e=>e.type===`error`&&e.errorType===`cancelled`)}function zw(e,t){return e.type===`tool`?`tool:${e.toolCallId}`:e.type===`render-block`?`block:${e.blockId}`:`${e.type}:${t}`}function Bw(e,t){let n=t?.(e);return n===void 0?e.metadata.modelRef===null?null:(0,j.jsx)(`div`,{className:`mx-chat-turn__meta`,children:e.metadata.modelRef}):n}function Vw(e,t){switch(e.type){case`text`:return(0,j.jsx)(Ow,{part:e,renderContent:t.renderContent,streaming:t.streaming,role:t.message.role,messageId:t.message.id});case`reasoning`:return(0,j.jsx)(kw,{part:e,defaultOpen:t.showReasoning});case`tool`:return(0,j.jsx)(Mw,{part:e,defaultExpanded:t.expandTools});case`notice`:return(0,j.jsx)(Aw,{part:e});case`error`:return(0,j.jsx)(jw,{part:e,retryText:t.retryText,onRetry:t.onRetry});case`render-block`:return(0,j.jsx)(Nw,{part:e,renderContent:t.renderContent,messageId:t.message.id,role:t.message.role});case`file`:return(0,j.jsx)(Pw,{part:e});case`source`:return(0,j.jsx)(Fw,{part:e});case`ask-user`:return(0,j.jsx)(Iw,{part:e});default:return e}}var Hw=80,Uw=40;function Ww(e){let t=e.virtualizeAbove??Hw,n=e.pageSize??Uw,r=e.label??`Conversation`,i=_i(),a=yi(),o=xi(),s=i.messages,[c,l]=(0,_.useState)(t),u=(0,_.useMemo)(()=>s.length<=c?s:s.slice(s.length-c),[s,c]),d=s.length-u.length,f=Tf(a.autoScroll),{onContentChange:p}=f,m=i.snapshot.revision;(0,_.useEffect)(()=>{p()},[m,p]);let h=Yw(s,i.conversationId);return(0,j.jsxs)(`div`,{className:Gw(`mx-chat__viewport`,e.className),children:[i.ephemeral&&i.ephemeralReason!==null?(0,j.jsx)(`p`,{className:`mx-chat__ephemeral`,role:`note`,children:i.ephemeralReason}):null,(0,j.jsxs)(`div`,{className:`mx-chat__scroll`,ref:f.ref,role:`log`,"aria-live":`polite`,"aria-relevant":`additions`,"aria-label":r,"data-pinned":f.pinned,tabIndex:0,children:[o.transcriptHeader??null,s.length===0?Kw(o.empty):(0,j.jsxs)(`ol`,{className:`mx-chat__messages`,children:[d>0?(0,j.jsx)(`li`,{className:`mx-chat__earlier`,children:(0,j.jsx)(`button`,{type:`button`,className:`mx-chat-quiet-button mx-chat-focusable`,onClick:()=>l(e=>e+n),children:`Show earlier messages (${d} hidden)`})}):null,u.map((e,t)=>{let n=t>0&&u[t-1]?.role===e.role;return(0,j.jsx)(`li`,{...n?{"data-continued":`true`}:{},children:(0,j.jsx)(Lw,{messageId:e.id,continued:n})},e.id)})]}),o.transcriptFooter??null]}),(0,j.jsx)(`p`,{className:`mx-chat__sr-only`,role:`status`,"aria-live":`polite`,children:h}),f.hasUnseenBelow?(0,j.jsx)(`div`,{className:`mx-chat__jump`,children:(0,j.jsx)(Sf,{icon:(0,j.jsx)(Ei,{}),ariaLabel:`Jump to the latest message`,tooltip:!1,onClick:f.jumpToLatest})}):null]})}function Gw(e,t){return t===void 0||t===``?e:`${e} ${t}`}function Kw(e){return typeof e==`function`?e():e===void 0?(0,j.jsx)(qw,{}):e}function qw(e){return(0,j.jsxs)(`div`,{className:`mx-chat-empty`,children:[(0,j.jsx)(`span`,{className:`mx-chat-empty__title`,children:e.title??`Start the conversation`}),(0,j.jsx)(`span`,{children:e.body??`Ask a question, describe what you need, or paste something in.`})]})}var Jw=/[.!?。!?]["')\]]?\s/g;function Yw(e,t){let[n,r]=(0,_.useState)(``),i=(0,_.useRef)(0),a=e[e.length-1],o=a!==void 0&&a.role===`assistant`,s=o?Ef(C(a)):``,c=o&&a.status!==`streaming`&&a.status!==`pending`,l=a?.id??``,u=(0,_.useRef)(l);u.current!==l&&(u.current=l,i.current=0);let d=(0,_.useRef)(t);if(d.current!==t){let e=d.current!==null;d.current=t,e&&(u.current=l,i.current=s.length,n!==``&&r(``))}return(0,_.useEffect)(()=>{if(!o)return;Jw.lastIndex=0;let e=0,t=Jw.exec(s);for(;t!==null;)e=t.index+t[0].length,t=Jw.exec(s);let n=c?s.length:e;if(n<=i.current)return;let a=s.slice(i.current,n).trim();i.current=n,a!==``&&r(a)},[s,c,o]),n}function Xw(e){return(0,j.jsx)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.6`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,focusable:`false`,children:e})}function Zw(){return Xw((0,j.jsx)(`path`,{d:`M8 13V3.5M3.75 7.75 8 3.5l4.25 4.25`}))}function Qw(){return Xw((0,j.jsx)(`rect`,{x:`4.25`,y:`4.25`,width:`7.5`,height:`7.5`,rx:`1.5`,fill:`currentColor`,stroke:`none`}))}function $w(){return Xw((0,j.jsx)(`path`,{d:`M10.6 5.1 5.9 9.8a1.7 1.7 0 0 0 2.4 2.4l4.7-4.7a3.2 3.2 0 0 0-4.5-4.5L3.6 7.9a4.7 4.7 0 0 0 6.7 6.7`}))}function eT(){return Xw((0,j.jsx)(`path`,{d:`M4.5 4.5l7 7M11.5 4.5l-7 7`}))}function tT(e){return(0,j.jsx)(`ul`,{className:`mx-chat-attachments`,"aria-label":`Attachments on this message`,children:e.attachments.map(t=>(0,j.jsxs)(`li`,{className:`mx-chat-attachment`,"data-status":t.status,children:[(0,j.jsx)(`span`,{className:`mx-chat-attachment__name`,title:t.name,children:t.name}),(0,j.jsx)(`span`,{className:`mx-chat-attachment__meta`,children:t.status===`uploading`?t.progress===null?`Uploading…`:`Uploading ${Math.round(t.progress*100)}%`:t.status===`failed`?`Not attached`:ri(t.sizeBytes)}),t.status===`uploading`?(0,j.jsx)(`span`,{className:`mx-chat-attachment__bar`,role:`progressbar`,"aria-label":`Uploading ${t.name}`,...t.progress===null?{}:{"aria-valuenow":Math.round(t.progress*100),"aria-valuemin":0,"aria-valuemax":100},"data-indeterminate":t.progress===null||void 0,children:(0,j.jsx)(`span`,{className:`mx-chat-attachment__fill`,style:t.progress===null?void 0:{width:`${Math.round(t.progress*100)}%`}})}):null,t.failure===null?null:(0,j.jsx)(`span`,{className:`mx-chat-attachment__failure`,children:t.failure}),t.status===`failed`&&t.retryable?(0,j.jsx)(`button`,{type:`button`,className:`mx-chat-attachment__retry mx-chat-focusable`,onClick:()=>e.onRetry(t.key),children:`Try again`}):null,(0,j.jsx)(`button`,{type:`button`,className:`mx-chat-attachment__remove mx-chat-focusable`,"aria-label":`Remove ${t.name}`,title:`Remove ${t.name}`,onClick:()=>e.onRemove(t.key),children:(0,j.jsx)(eT,{})})]},t.key))})}function nT(e){let t=xi(),{quickset:n}=bi(),{thread:r}=gi(),i=r.getSnapshot(),a=n===null||e.busy||e.drafting?[]:n.chips({conversationId:i.conversationId,busy:e.busy,empty:i.messages.length===0}),o=t.composerControls;return o===void 0&&a.length===0?null:(0,j.jsxs)(`div`,{className:`mx-chat-run-controls`,children:[o,a.length===0?null:(0,j.jsx)(`div`,{className:`mx-chat-quickset`,role:`group`,"aria-label":`Things you could ask`,children:a.map(t=>(0,j.jsx)(`button`,{type:`button`,className:`mx-chat-quickset__chip mx-chat-focusable`,"data-quickset":t.id,onClick:()=>e.onFill(t.text),children:t.label},t.id))})]})}var rT=(0,_.createContext)(null);function iT(){let e=(0,_.useContext)(rT),t=bi();return(0,_.useMemo)(()=>e??{files:t.files,voice:t.voice},[e,t.files,t.voice])}function aT(e,t){if(e.isComposing)return`pass`;if(e.key===`Escape`)return e.isBusy?`stop`:`pass`;if(e.key!==`Enter`)return`pass`;let n=e.metaKey||e.ctrlKey;return(t===`enter`?!e.shiftKey&&!n:n)?`send`:`newline`}function oT(e,t,n){if(!Number.isFinite(t)||t<=0)return e;let r=Number.isFinite(n)&&n>0?n:0;return Math.max(1,Math.round((e-r)/t))*t+r}function sT(e){let t=(0,_.useRef)(null),n=(0,_.useCallback)(()=>{let n=t.current;if(n===null)return;let r=n.offsetHeight,i=n.scrollTop,a=getComputedStyle(n),o=Number.parseFloat(a.lineHeight),s=Number.parseFloat(a.paddingTop||`0`)+Number.parseFloat(a.paddingBottom||`0`)+Number.parseFloat(a.borderTopWidth||`0`)+Number.parseFloat(a.borderBottomWidth||`0`);n.style.transitionProperty=`none`,n.style.height=`0px`;let c=n.scrollHeight;n.style.height=`${r}px`,n.offsetHeight,n.style.transitionProperty=``,n.scrollTop=i;let l=oT(c,o,s),u=Math.max(e.minHeightPx,Math.min(l,e.maxHeightPx));u!==r&&(n.style.height=`${u}px`)},[e.maxHeightPx,e.minHeightPx]);(0,_.useLayoutEffect)(()=>{n()},[n,e.value]);let r=(0,_.useCallback)(n=>{t.current=n;let r=e.inputRef;typeof r==`function`?r(n):r!=null&&(r.current=n)},[e.inputRef]),i={maxHeight:e.maxHeightPx};return(0,j.jsx)(`textarea`,{ref:r,className:`mx-chat-composer__field`,value:e.value,rows:1,style:i,placeholder:e.placeholder,"aria-label":e.label,...e.describedBy===void 0?{}:{"aria-describedby":e.describedBy},disabled:e.disabled,autoFocus:e.autoFocus===!0,onChange:t=>e.onValueChange(t.target.value),onKeyDown:e.onKeyDown,...e.onPaste===void 0?{}:{onPaste:e.onPaste}})}function cT(e){let{files:t,maxBytes:n,notifier:r}=e,[i,a]=(0,_.useState)([]),o=(0,_.useRef)(new Map),s=(0,_.useRef)(new Map),c=(0,_.useRef)(!0);(0,_.useEffect)(()=>(c.current=!0,()=>{c.current=!1;for(let e of o.current.values())e.controller.abort();o.current.clear()}),[]);let l=(0,_.useCallback)((e,t)=>{c.current&&a(n=>n.map(n=>n.key===e?{...n,...t}:n))},[]),u=(0,_.useCallback)((e,n)=>{let r=new AbortController;o.current.set(e,{file:n,controller:r}),s.current.set(e,n),l(e,{status:`uploading`,progress:null,failure:null}),t.upload(n,{signal:r.signal,onProgress:t=>{r.signal.aborted||l(e,{progress:Math.max(0,Math.min(1,t))})}}).then(t=>{o.current.delete(e),!r.signal.aborted&&l(e,{status:`ready`,progress:1,fileId:t.fileId,previewUrl:t.previewUrl??null,mediaType:t.mediaType,failure:null})}).catch(t=>{o.current.delete(e),!r.signal.aborted&&l(e,{status:`failed`,progress:null,failure:t instanceof Error&&t.message!==``?t.message:`This file could not be uploaded.`,retryable:!0})})},[t,l]),d=(0,_.useCallback)(e=>{if(e.length===0)return;let t=[],i=[];for(let a of e){let e=x(`att`);if(a.size>n){let i=di(a.name,n);t.push({key:e,name:a.name,sizeBytes:a.size,mediaType:a.type===``?null:a.type,status:`failed`,progress:null,fileId:null,previewUrl:null,failure:i,retryable:!1}),r.notify({level:`warning`,message:i,remedy:`Attach a smaller file, or ask an administrator to raise the limit for this workspace.`});continue}t.push({key:e,name:a.name,sizeBytes:a.size,mediaType:a.type===``?null:a.type,status:`uploading`,progress:null,fileId:null,previewUrl:null,failure:null,retryable:!0}),i.push({key:e,file:a})}a(e=>[...e,...t]);for(let e of i)u(e.key,e.file)},[n,r,u]),f=(0,_.useCallback)(e=>{let t=o.current.get(e);t!==void 0&&(t.controller.abort(),o.current.delete(e)),s.current.delete(e),a(t=>t.filter(t=>t.key!==e))},[]),p=(0,_.useCallback)(e=>{let t=s.current.get(e);t!==void 0&&u(e,t)},[u]),m=(0,_.useCallback)(()=>{for(let e of o.current.values())e.controller.abort();o.current.clear(),s.current.clear(),a([])},[]);return{attachments:i,readyFileIds:i.filter(e=>e.status===`ready`&&e.fileId!==null).map(e=>e.fileId),uploading:i.some(e=>e.status===`uploading`),add:d,remove:f,retry:p,clear:m}}var lT=24,uT=208;function dT(e){let t=e.dataTransfer?.types;return t!==void 0&&Array.from(t).includes(`Files`)}function fT(e){let t=Ci(),n=yi(),{notifier:r}=bi(),i=xi(),{files:a,voice:o}=iT(),{thread:s}=gi(),c=(0,_.useRef)(null),l=(0,_.useId)(),[u,d]=(0,_.useState)(!1),[f,p]=(0,_.useState)(!1),[m,h]=(0,_.useState)(!1),g=(0,_.useRef)(0),v=(0,_.useRef)(async()=>void 0),y=cT({files:a,maxBytes:n.attachmentMaxBytes,notifier:r}),b=(0,_.useRef)(null);(0,_.useEffect)(()=>{let n=e.draftSeed;n!=null&&n!==``&&b.current!==n&&(b.current=n,t.text.trim()===``&&t.setText(n))},[e.draftSeed]);let x=(0,_.useCallback)(e=>{if(e.length!==0){if(!a.available){a.upload(e[0],{signal:new AbortController().signal,onProgress:()=>void 0}).catch(()=>void 0),h(!0);return}y.add(e)}},[y,a]),S=(0,_.useCallback)(e=>{let t=e.clipboardData?.files;t!==void 0&&t.length!==0&&(e.preventDefault(),x(Array.from(t)))},[x]),w=(0,_.useCallback)(e=>{dT(e)&&(e.preventDefault(),g.current=0,p(!1),x(Array.from(e.dataTransfer.files)))},[x]),T=(0,_.useCallback)(e=>{let r=e.nativeEvent.isComposing;if(!r&&e.key===`ArrowUp`&&t.text===``&&!e.shiftKey&&!e.metaKey&&!e.ctrlKey){let n=s.getSnapshot().messages;for(let r=n.length-1;r>=0;--r){let i=n[r];if(i===void 0||i.role!==`user`)continue;let a=C(i);if(a===``)break;e.preventDefault(),t.setText(a);return}return}let i=aT({key:e.key,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,isComposing:r,isBusy:t.isBusy},n.sendKey);if(i===`send`){e.preventDefault(),v.current();return}i===`stop`&&(e.preventDefault(),t.stop())},[t,n.sendKey,s]),E=e.held??null,D=E===null?u?`Finish recording to send your message.`:y.uploading?`Your files are still uploading.`:null:E.reason,O=t.canSend&&D===null,k=(0,_.useCallback)(async()=>{if(!O)return;let e=t.text.trim(),n=y.readyFileIds;n.length===0?await t.send():(t.setText(``),(await s.send({text:e,fileIds:n})).accepted?y.clear():t.setText(e)),c.current?.focus()},[y,O,t,s]);v.current=k;let A=(0,_.useCallback)(e=>{e.preventDefault(),k()},[k]),M=t.isBusy?`Stop the answer`:D===null?`Send message`:D,N=t.isBusy&&n.sendWhileBusy&&t.text.trim()!==``,P=D===null?`Queue message — it sends when this answer finishes`:D,F={value:t.text,onValueChange:t.setText,busy:t.isBusy,onBusyChange:d,className:`mx-chat-composer__icon-button mx-chat-focusable`};return(0,j.jsxs)(`form`,{className:`mx-chat-composer${e.className===void 0?``:` ${e.className}`}`,"data-dragging":f||void 0,"data-busy":t.isBusy||void 0,onSubmit:A,onDragEnter:e=>{dT(e)&&(g.current+=1,p(!0))},onDragOver:e=>{dT(e)&&e.preventDefault()},onDragLeave:e=>{dT(e)&&(g.current=Math.max(0,g.current-1),g.current===0&&p(!1))},onDrop:w,children:[i.composerAbove,(0,j.jsx)(nT,{onFill:t.setText,busy:t.isBusy,drafting:t.text.trim()!==``}),(0,j.jsxs)(`div`,{className:`mx-chat-composer__shell`,children:[y.attachments.length>0?(0,j.jsx)(tT,{attachments:y.attachments,onRemove:y.remove,onRetry:y.retry}):null,(0,j.jsx)(sT,{value:t.text,onValueChange:t.setText,onKeyDown:T,onPaste:S,placeholder:e.placeholder??`Send a message`,minHeightPx:lT,maxHeightPx:uT,disabled:E!==null,label:`Message`,describedBy:l,inputRef:c,...e.autoFocus===void 0?{}:{autoFocus:e.autoFocus}}),(0,j.jsxs)(`div`,{className:`mx-chat-composer__row`,children:[(0,j.jsxs)(`div`,{className:`mx-chat-composer__left`,children:[a.available?(0,j.jsxs)(`label`,{className:`mx-chat-composer__icon-button mx-chat-focusable`,children:[(0,j.jsx)($w,{}),(0,j.jsx)(`span`,{className:`mx-chat__sr-only`,children:`Attach files`}),(0,j.jsx)(`input`,{type:`file`,multiple:!0,"aria-label":`Attach files`,...a.accept===void 0?{}:{accept:a.accept},onChange:e=>{let t=e.target.files;t!==null&&x(Array.from(t)),e.target.value=``}})]}):null,o===null?null:o.renderButton(F),i.composerPickers,i.composerToolbar]}),(0,j.jsxs)(`div`,{className:`mx-chat-composer__right`,children:[i.composerRunControls,N?(0,j.jsx)(`button`,{type:`submit`,className:`mx-chat-composer__send mx-chat-focusable`,"data-mode":`queue`,"aria-label":P,title:P,disabled:!O,children:(0,j.jsx)(Zw,{})}):null,t.isBusy?(0,j.jsx)(`button`,{type:`button`,className:`mx-chat-composer__send mx-chat-focusable`,"data-mode":`stop`,"aria-label":M,title:M,onClick:()=>void t.stop(),children:(0,j.jsx)(Qw,{})}):(0,j.jsx)(`button`,{type:`submit`,className:`mx-chat-composer__send mx-chat-focusable`,"data-mode":`send`,"aria-label":M,title:M,disabled:!O,children:(0,j.jsx)(Zw,{})})]})]})]}),(0,j.jsxs)(`div`,{className:`mx-chat-composer__notice`,id:l,role:`status`,"aria-live":`polite`,children:[E===null?m?(0,j.jsx)(`span`,{className:`mx-chat-standin`,children:`${ci} ${li}`}):D!==null&&t.text.trim()!==``?(0,j.jsx)(`span`,{className:`mx-chat-standin`,children:D}):t.restoredFromFailure?(0,j.jsx)(`span`,{className:`mx-chat-standin`,children:`Your message is back in the box. Send it again when you are ready.`}):null:(0,j.jsx)(`span`,{className:`mx-chat-standin`,children:E.reason}),o?.renderRecovery?.(F)??null]}),i.composerBelow,f?(0,j.jsx)(`div`,{className:`mx-chat-composer__drop`,"aria-live":`polite`,children:a.available?`Drop files to attach them to your message`:ci}):null]})}function pT(e){let t=T(e.features),n=new Set,r=new Map,i=0,a=new Map,o=c(e.getSnapshot());a=s(o.messages);function s(e){let t=new Map;for(let n of e)t.set(n.id,n);return t}function c(e){let t=e.ephemeral===!0;return{conversationId:e.conversationId,messages:e.messages,status:e.status,requestId:e.requestId??null,phase:e.phase??null,ephemeral:t,ephemeralReason:t?e.ephemeralReason??`This conversation is not being saved by the application hosting it.`:null,revision:i,error:e.error??null}}let l=e.subscribe(()=>{i+=1,o=c(e.getSnapshot());let t=s(o.messages);for(let[e,n]of r)if(a.get(e)!==t.get(e))for(let e of n)e();a=t;for(let e of n)e()});return{getSnapshot:()=>o,subscribe(e){return n.add(e),()=>{n.delete(e)}},subscribeToMessage(e,t){let n=r.get(e)??new Set;return n.add(t),r.set(e,n),()=>{n.delete(t),n.size===0&&r.delete(e)}},getMessageSnapshot:e=>o.messages.find(t=>t.id===e),features:t,async send(t){return await e.onSubmit(t),{accepted:!0,refusal:null}},async cancel(){await e.onCancel?.()},setMessages(t){if(!e.onSetMessages)throw Error(`This chat thread's state is owned by the host application, which did not provide onSetMessages. Replace the transcript through the host's own store, or provide onSetMessages.`);e.onSetMessages(t)},async loadConversation(t){if(!e.onLoadConversation)throw Error(`This chat thread's state is owned by the host application, which did not provide onLoadConversation. Open the conversation through the host's own routing, or provide onLoadConversation.`);await e.onLoadConversation(t)},canStartNewConversation:e.onStartNewConversation!==void 0,settleToolCall(t){return e.onSettleToolCall?e.onSettleToolCall(t):{messages:o.messages,messageId:null,applied:!1,refusal:`This chat thread's state is owned by the host application, which did not provide onSettleToolCall. Mark the tool call done in the host's own store when it answers, or provide onSettleToolCall.`}},async startNewConversation(){if(!e.onStartNewConversation)throw Error(`This chat thread's state is owned by the host application, which did not provide onStartNewConversation. Start a new conversation through the host's own store, or provide onStartNewConversation.`);await e.onStartNewConversation()},dispose(){l?.(),l=null,n.clear(),r.clear()}}}var mT={claude:`Claude Code`,codex:`Codex`};function hT(e,t,n){return t?`${e}:${t}`:`session:${n??``}`}var gT=[`completed`,`stopped`,`failed`];function _T(e){return gT.includes(e)}function vT(e){if(!e)return null;let t=Date.parse(e);return Number.isNaN(t)?e:new Date(t).toLocaleString(void 0,{month:`short`,day:`numeric`,hour:`numeric`,minute:`2-digit`})}var yT=[/model is not supported when using codex/i,/\bmodel[\s:'"`][^.\n]{0,80}\b(?:not supported|does not exist|not available|not found)\b/i,/\bmodel_not_found\b/i,/issue with the selected model/i,/may not exist or you may not have access to it/i],bT=`Model not available on this account`;function xT(e){let t=(e??``).trim();return t!==``&&yT.some(e=>e.test(t))}function ST(e){return xT(e)?bT:e}var CT={Bash:`Run command`,Shell:`Run command`,BashOutput:`Read command output`,KillShell:`Stop command`,Read:`Read file`,Write:`Write file`,Edit:`Edit file`,MultiEdit:`Edit file`,NotebookEdit:`Edit notebook`,Glob:`Find files`,Grep:`Search code`,LS:`List folder`,WebFetch:`Fetch page`,WebSearch:`Web search`,"Web search":`Web search`,Task:`Sub-agent`,Agent:`Sub-agent`,TodoWrite:`Update plan`,Plan:`Update plan`,"Edit files":`Edit files`,ExitPlanMode:`Finish planning`,Skill:`Use skill`,ToolSearch:`Load tools`};function wT(e){let t=e.replace(/[._-]+/g,` `).replace(/([a-z\d])([A-Z])/g,`$1 $2`).replace(/\s+/g,` `).trim().toLowerCase();return t?t.charAt(0).toUpperCase()+t.slice(1):``}function TT(e){let t=/^mcp__(.+?)__(.+)$/.exec(e);return t?.[1]&&t[2]?{server:t[1],tool:t[2]}:null}function ET(e){let t=CT[e];if(t)return t;let n=TT(e);if(n)return`${wT(n.tool)||`Tool`} · ${wT(n.server)}`;let r=/^([\w-]+)\.([\w-]+)$/.exec(e);return r?.[1]&&r[2]?`${wT(r[2])} · ${wT(r[1])}`:wT(e)||`Working…`}function DT(e){let t=e.match(/^\/(?:Users|home)\/[^/]+/)?.[0];return t?`~${e.slice(t.length)}`:e}function OT(e,t=90){let n=e.replace(/\s+/g,` `).trim();return n.length>t?`${n.slice(0,t-1)}…`:n}function kT(e,t){if(typeof t!=`object`||!t)return typeof t==`string`&&t?OT(t):null;let n=t,r=(...e)=>{for(let t of e){let e=n[t];if(typeof e==`string`&&e.trim())return e}return null};switch(e){case`Bash`:case`Shell`:{let e=r(`command`,`description`);return e?OT(e):null}case`Read`:case`Write`:case`Edit`:case`MultiEdit`:case`NotebookEdit`:{let e=r(`file_path`,`notebook_path`,`path`);return e?OT(DT(e)):null}case`Glob`:case`Grep`:return r(`pattern`)?OT(r(`pattern`)):null;case`WebFetch`:return r(`url`)?OT(r(`url`)):null;case`WebSearch`:case`Web search`:return r(`query`)?OT(r(`query`)):null;case`Task`:case`Agent`:return r(`description`,`prompt`)?OT(r(`description`,`prompt`)):null;case`Edit files`:{let e=n.changes,t=Array.isArray(e)?e.map(e=>typeof e==`object`&&e?e.path:null).filter(e=>typeof e==`string`):typeof e==`object`&&e?Object.keys(e):[];return t.length?OT(t.map(DT).join(`, `)):null}default:{let e=r(`url`,`query`,`command`,`path`,`file_path`,`name`,`description`);return e?OT(e):null}}}function AT(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function jT(e){return typeof e==`string`?e:null}function MT(e){let t=AT(e)?jT(e.type):jT(e);return t===`add`||t===`create`?`created`:t===`delete`?`deleted`:t===`move`||t===`rename`?`moved`:`edited`}function NT(e){let t=new Map,n=(e,n,r)=>{let i=t.get(e);i?(i.edits.push(r),n===`deleted`&&(i.kind=`deleted`)):t.set(e,{path:e,kind:n,edits:[r]})};for(let t of e)for(let e of t.parts){if(e.type!==`tool`)continue;let t=e.input;if(!AT(t))continue;let r=e.state===`output-error`||!!e.errorText,i={toolCallId:e.toolCallId,failed:r};switch(e.toolName){case`Write`:{let e=jT(t.file_path);e&&n(e,`created`,{...i,removed:null,added:jT(t.content),diff:null});break}case`Edit`:{let e=jT(t.file_path);e&&n(e,`edited`,{...i,removed:jT(t.old_string),added:jT(t.new_string),diff:null});break}case`MultiEdit`:{let e=jT(t.file_path),r=Array.isArray(t.edits)?t.edits:[];if(e)for(let t of r.filter(AT))n(e,`edited`,{...i,removed:jT(t.old_string),added:jT(t.new_string),diff:null});break}case`NotebookEdit`:{let e=jT(t.notebook_path);e&&n(e,`edited`,{...i,removed:null,added:jT(t.new_source),diff:null});break}case`Edit files`:{let e=t.changes;if(Array.isArray(e))for(let t of e.filter(AT)){let e=jT(t.path);e&&n(e,MT(t.kind),{...i,removed:null,added:null,diff:null})}else if(AT(e))for(let[t,r]of Object.entries(e)){let e=AT(r)?jT(r.unified_diff):null;n(t,MT(r),{...i,removed:null,added:null,diff:e})}break}}}return[...t.values()]}function PT(e){let t=0,n=0,r=e=>e?e.split(`
|
|
66
|
+
[&:-webkit-autofill:hover]:shadow-[0_0_0_1000px_hsl(var(--card))_inset] [&:-webkit-autofill:focus]:shadow-[0_0_0_1000px_hsl(var(--card))_inset]`;switch(e){case`destructive`:return`${t} bg-destructive text-destructive-foreground`;case`outline`:return`${t} border-2`;case`secondary`:return`${t} bg-secondary text-secondary-foreground`;case`ghost`:return`${t} bg-transparent shadow-none`;case`link`:return`${t} bg-transparent underline-offset-4 hover:underline`;case`primary`:return`${t} bg-primary text-primary-foreground`;default:return t}},dw=_.forwardRef(({className:e,type:t,variant:n=`default`,...r},i)=>(0,j.jsx)(`input`,{type:t,className:Z(uw(n),e),ref:i,...r}));dw.displayName=`Input`;var fw=_.forwardRef(({onEnter:e,...t},n)=>{let r=t=>{t.key===`Enter`&&e&&(t.preventDefault(),e())};return(0,j.jsx)(dw,{...t,ref:n,onKeyDown:e=>{r(e),t.onKeyDown&&t.onKeyDown(e)}})});fw.displayName=`EnterInput`;var pw=_.forwardRef(({className:e,type:t,variant:n=`default`,...r},i)=>(0,j.jsx)(`input`,{type:t,className:Z(`flex h-9 w-full rounded-md ${rS} px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50`,e),ref:i,...r}));pw.displayName=`BasicInput`;var mw=_.forwardRef(({prefix:e,className:t,wrapperClassName:n,...r},i)=>(0,j.jsxs)(`div`,{className:Z(`relative`,n),children:[e&&(0,j.jsx)(`div`,{className:`absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground`,children:e}),(0,j.jsx)(dw,{ref:i,className:Z(e&&`pl-10`,t),...r})]}));mw.displayName=`InputWithPrefix`;var hw=/(?:^|\s)(h-full|h-dvh|flex-1|grow)(?:\s|$)/,gw=/(?:^|\s)(w-full|w-screen)(?:\s|$)/;function _w(e){if(!e)return;let t=[];return hw.test(e)&&t.push(`h-full min-h-0`),gw.test(e)&&t.push(`w-full`),t.length?t.join(` `):void 0}var vw=`flex h-auto w-full rounded-md ${rS} px-3 py-2 text-sm text-foreground shadow-textarea transition duration-400 placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-[2px] focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50`,yw=`flex w-full rounded-md ${rS} px-3 py-2 text-sm text-foreground shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50`;function bw(e,t,n=!1,r,i){_.useEffect(()=>{if(!n||!e.current)return;let t=e.current;t.style.height=`auto`;let a=t.scrollHeight;r&&(a=Math.max(a,r)),i&&a>=i?(t.style.height=`${i}px`,t.style.overflowY=`auto`):(t.style.height=`${a}px`,t.style.overflowY=`hidden`)},[t,n,r,i,e])}function xw(e){let t=_.useRef(null);return{ref:t,callback:_.useCallback(n=>{t.current=n,typeof e==`function`?e(n):e&&(e.current=n)},[e])}}function Sw(e,t){if(e!==void 0||t!==void 0)return{minHeight:e?`${e}px`:void 0,maxHeight:t?`${t}px`:void 0}}var Cw=_.forwardRef(({className:e,autoGrow:t,minHeight:n,maxHeight:r,wrapperClassName:i,...a},o)=>{let{ref:s,callback:c}=xw(o),l=_w(e),u=!!(i||l);bw(s,a.value,t,n,r);let d=(0,j.jsx)(`textarea`,{ref:c,"data-slot":`textarea`,className:Z(vw,t&&`resize-none`,l,e),style:Sw(n,r),...a});return u?(0,j.jsx)(`div`,{className:Z(l,i),children:d}):d});Cw.displayName=`Textarea`;var ww=_.forwardRef(({className:e,autoGrow:t,minHeight:n,maxHeight:r,...i},a)=>{let{ref:o,callback:s}=xw(a);return bw(o,i.value,t,n,r),(0,j.jsx)(`textarea`,{ref:s,"data-slot":`textarea`,className:Z(yw,`h-auto min-h-[60px]`,t&&`resize-none`,e),style:Sw(n,r),...i})});ww.displayName=`BasicTextarea`;var Tw=_.forwardRef(({prefix:e,className:t,wrapperClassName:n,autoGrow:r,minHeight:i,maxHeight:a,...o},s)=>{let{ref:c,callback:l}=xw(s);return bw(c,o.value,r,i,a),(0,j.jsxs)(`div`,{className:Z(`relative`,_w(t),n),children:[e?(0,j.jsx)(`div`,{className:`pointer-events-none absolute left-3 top-3 z-10 text-muted-foreground`,children:e}):null,(0,j.jsx)(`textarea`,{ref:l,"data-slot":`textarea`,className:Z(yw,`resize-y`,e&&`pl-10`,r&&`resize-none`,t),style:Sw(i,a),...o})]})});Tw.displayName=`TextareaWithPrefix`;var Ew={"input-streaming":`Preparing`,"input-available":`Running`,"approval-requested":`Needs your approval`,"output-available":`Done`,"output-error":`Failed`,"output-denied":`Declined`};function Dw(e){if(e===void 0)return``;if(typeof e==`string`)return e;try{return JSON.stringify(e,null,2)}catch{return String(e)}}function Ow(e){let{part:t,defaultExpanded:n,body:r}=e,[i,a]=(0,_.useState)(n),{toolLabel:o}=bi(),s=t.progress[t.progress.length-1],c=Dw(t.input),l=Dw(t.output),u=Ew[t.state],d=s!==void 0&&s.message!==``&&s.message.trim().toLowerCase()!==u.toLowerCase()?s.message:null,f=c!==``||l!==``||t.errorText!==null||t.progress.length>0;return(0,j.jsxs)(`div`,{className:`mx-chat-tool`,"data-state":t.state,"data-tool":t.toolName,...e.rendererTag===void 0?{}:{"data-mx-chat-tool-renderer":e.rendererTag},children:[(0,j.jsxs)(`button`,{type:`button`,className:`mx-chat-tool__header mx-chat-focusable`,"aria-expanded":i,onClick:()=>a(e=>!e),children:[(0,j.jsx)(`span`,{"data-open":i,className:`mx-chat-chevron-wrap`,children:(0,j.jsx)(Ti,{})}),(0,j.jsx)(`span`,{className:`mx-chat-tool__name`,children:o(t.toolName)}),d===null?null:(0,j.jsx)(`span`,{className:`mx-chat-tool__beat`,children:d}),(0,j.jsx)(`span`,{className:`mx-chat-tool__state`,children:u})]}),i?r===void 0?(0,j.jsxs)(`div`,{className:`mx-chat-tool__body`,children:[c===``?null:(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`span`,{className:`mx-chat-tool__label`,children:`What it was asked`}),(0,j.jsx)(`pre`,{className:`mx-chat-tool__payload`,children:c})]}),t.progress.length>0?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`span`,{className:`mx-chat-tool__label`,children:`Progress`}),(0,j.jsx)(`ul`,{className:`mx-chat-tool__progress`,children:t.progress.map((e,t)=>(0,j.jsxs)(`li`,{children:[(0,j.jsx)(`span`,{"data-tool-beat":e.toolName,children:e.toolName}),e.message===``?null:` — ${e.message}`,e.percent===null?null:` (${Math.round(e.percent)}%)`]},`${e.toolName}-${t}`))})]}):null,t.errorText===null?null:(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`span`,{className:`mx-chat-tool__label`,children:`What went wrong`}),(0,j.jsx)(`p`,{className:`mx-chat-failure__sentence`,children:t.errorText})]}),l===``?null:(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`span`,{className:`mx-chat-tool__label`,children:`What it returned`}),(0,j.jsx)(`pre`,{className:`mx-chat-tool__payload`,children:l})]}),f?null:(0,j.jsx)(`span`,{className:`mx-chat-standin`,children:t.state===`input-streaming`?`This tool has not said what it is doing yet.`:`This tool ran without reporting any details.`})]}):r:null]})}function kw(e){return(0,j.jsx)(j.Fragment,{children:e.renderContent({kind:`markdown`,text:e.part.text,streaming:e.streaming,role:e.role,messageId:e.messageId})})}function Aw(e){let{part:t,defaultOpen:n}=e,[r,i]=(0,_.useState)(n),a=t.state===`streaming`;return(0,j.jsxs)(`div`,{className:`mx-chat-reasoning`,"data-streaming":a,children:[(0,j.jsxs)(`button`,{type:`button`,className:`mx-chat-quiet-button mx-chat-focusable`,"aria-expanded":r,onClick:()=>i(e=>!e),children:[(0,j.jsx)(`span`,{"data-open":r,className:`mx-chat-chevron-wrap`,children:(0,j.jsx)(Ti,{})}),a?`Thinking…`:`Thought process`]}),r?(0,j.jsx)(`div`,{className:`mx-chat-reasoning__body`,"data-mx-chat-reasoning":`body`,children:t.text}):null]})}function jw(e){let{part:t}=e;return(0,j.jsxs)(`div`,{className:`mx-chat-notice`,"data-level":t.level,role:`note`,children:[(0,j.jsx)(`span`,{children:t.userMessage}),t.remedy===null?null:(0,j.jsx)(`span`,{className:`mx-chat-notice__remedy`,children:t.remedy})]})}function Mw(e){let{part:t,retryText:n,onRetry:r}=e;return(0,j.jsxs)(p_,{as:`div`,className:`mx-chat-failure`,"data-code":t.code??`unknown`,message:t.userMessage,error:t,operation:`Answer the last message`,unsavedInput:n===``?void 0:{message:n},origin:`chat/ChatFailurePart`,children:[(0,j.jsx)(`p`,{className:`mx-chat-failure__sentence`,children:t.userMessage}),t.remedy===null?null:(0,j.jsx)(`p`,{className:`mx-chat-failure__remedy`,children:t.remedy}),n===``?null:(0,j.jsx)(v_,{type:`button`,size:`sm`,variant:`outline`,className:`mx-chat-focusable`,onClick:()=>r(n),children:`Try again`})]})}function Nw(e){return(0,j.jsx)(Ow,{part:e.part,defaultExpanded:e.defaultExpanded})}function Pw(e){let{part:t}=e;return(0,j.jsx)(`div`,{"data-mx-chat-block":t.kind,"data-status":t.status,children:e.renderContent({kind:t.kind,text:t.content??``,data:t.data,streaming:t.status===`streaming`,role:e.role,messageId:e.messageId})})}function Fw(e){let t=e.part.name??e.part.fileId;return(0,j.jsx)(`span`,{className:`mx-chat-standin`,"data-mx-chat-standin":`file`,children:`Attached file: ${t}. Previews appear once the attachments capability is turned on for this chat.`})}function Iw(e){let{part:t}=e,n=t.title??t.url??t.sourceId;return(0,j.jsx)(`span`,{className:`mx-chat-standin`,"data-mx-chat-standin":`source`,children:`Source: ${n}`})}function Lw(e){return(0,j.jsx)(`span`,{className:`mx-chat-standin`,"data-mx-chat-standin":`ask-user`,children:e.part.answered?`You already answered: ${e.part.prompt}`:`The assistant is waiting for your answer: ${e.part.prompt}. This chat cannot collect it yet — answer in a chat with the approvals capability turned on, or stop this run.`})}var Rw=(0,_.memo)(function(e){let t=vi(e.messageId),n=yi(),{renderContent:r}=bi(),i=xi(),{thread:a,retry:o}=gi();if(t===void 0)return null;let s=t.status===`streaming`||t.status===`pending`,c=t.role;if(c===`user`)return(0,j.jsxs)(`article`,{className:`mx-chat-turn`,"data-role":`user`,...e.continued?{"data-continued":`true`}:{},"data-message-id":t.id,"aria-label":`Your message`,children:[(0,j.jsx)(`div`,{className:`mx-chat-turn__bubble`,children:r({kind:`markdown`,text:C(t),streaming:!1,role:c,messageId:t.id})}),Vw(t,i.renderTurnMeta),n.messageActions?(0,j.jsx)(jf,{message:t}):null]});let l=wi(a.getSnapshot().messages,t.id);return(0,j.jsxs)(`article`,{className:`mx-chat-turn`,"data-role":c,...e.continued?{"data-continued":`true`}:{},"data-status":t.status,"data-message-id":t.id,"aria-label":`Assistant message`,"aria-busy":s||void 0,children:[(0,j.jsxs)(`div`,{className:`mx-chat-turn__body`,children:[t.parts.map((e,a)=>{let c=i.renderPart?.(e,{message:t,index:a,streaming:s});return c===void 0?(0,j.jsx)(`div`,{children:Hw(e,{message:t,streaming:s,renderContent:r,expandTools:n.expandToolCardsByDefault,showReasoning:n.showReasoningByDefault,retryText:l,onRetry:e=>o.request(e)})},Bw(e,a)):(0,j.jsx)(`div`,{children:c},Bw(e,a))}),s&&t.parts.length===0?(0,j.jsx)(`span`,{className:`mx-chat-caret`,"data-mx-chat":`waiting`,"aria-hidden":`true`}):null,zw(t)?(0,j.jsx)(`p`,{className:`mx-chat-turn__stopped`,role:`note`,children:`Stopped`}):null]}),Vw(t,i.renderTurnMeta),n.messageActions?(0,j.jsx)(jf,{message:t}):null]})});function zw(e){return e.status===`cancelled`&&!e.parts.some(e=>e.type===`error`&&e.errorType===`cancelled`)}function Bw(e,t){return e.type===`tool`?`tool:${e.toolCallId}`:e.type===`render-block`?`block:${e.blockId}`:`${e.type}:${t}`}function Vw(e,t){let n=t?.(e);return n===void 0?e.metadata.modelRef===null?null:(0,j.jsx)(`div`,{className:`mx-chat-turn__meta`,children:e.metadata.modelRef}):n}function Hw(e,t){switch(e.type){case`text`:return(0,j.jsx)(kw,{part:e,renderContent:t.renderContent,streaming:t.streaming,role:t.message.role,messageId:t.message.id});case`reasoning`:return(0,j.jsx)(Aw,{part:e,defaultOpen:t.showReasoning});case`tool`:return(0,j.jsx)(Nw,{part:e,defaultExpanded:t.expandTools});case`notice`:return(0,j.jsx)(jw,{part:e});case`error`:return(0,j.jsx)(Mw,{part:e,retryText:t.retryText,onRetry:t.onRetry});case`render-block`:return(0,j.jsx)(Pw,{part:e,renderContent:t.renderContent,messageId:t.message.id,role:t.message.role});case`file`:return(0,j.jsx)(Fw,{part:e});case`source`:return(0,j.jsx)(Iw,{part:e});case`ask-user`:return(0,j.jsx)(Lw,{part:e});default:return e}}var Uw=80,Ww=40;function Gw(e){let t=e.virtualizeAbove??Uw,n=e.pageSize??Ww,r=e.label??`Conversation`,i=_i(),a=yi(),o=xi(),s=i.messages,[c,l]=(0,_.useState)(t),u=(0,_.useMemo)(()=>s.length<=c?s:s.slice(s.length-c),[s,c]),d=s.length-u.length,f=Tf(a.autoScroll),{onContentChange:p}=f,m=i.snapshot.revision;(0,_.useEffect)(()=>{p()},[m,p]);let h=Xw(s,i.conversationId);return(0,j.jsxs)(`div`,{className:Kw(`mx-chat__viewport`,e.className),children:[i.ephemeral&&i.ephemeralReason!==null?(0,j.jsx)(`p`,{className:`mx-chat__ephemeral`,role:`note`,children:i.ephemeralReason}):null,(0,j.jsxs)(`div`,{className:`mx-chat__scroll`,ref:f.ref,role:`log`,"aria-live":`polite`,"aria-relevant":`additions`,"aria-label":r,"data-pinned":f.pinned,tabIndex:0,children:[o.transcriptHeader??null,s.length===0?qw(o.empty):(0,j.jsxs)(`ol`,{className:`mx-chat__messages`,children:[d>0?(0,j.jsx)(`li`,{className:`mx-chat__earlier`,children:(0,j.jsx)(`button`,{type:`button`,className:`mx-chat-quiet-button mx-chat-focusable`,onClick:()=>l(e=>e+n),children:`Show earlier messages (${d} hidden)`})}):null,u.map((e,t)=>{let n=t>0&&u[t-1]?.role===e.role;return(0,j.jsx)(`li`,{...n?{"data-continued":`true`}:{},children:(0,j.jsx)(Rw,{messageId:e.id,continued:n})},e.id)})]}),o.transcriptFooter??null]}),(0,j.jsx)(`p`,{className:`mx-chat__sr-only`,role:`status`,"aria-live":`polite`,children:h}),f.hasUnseenBelow?(0,j.jsx)(`div`,{className:`mx-chat__jump`,children:(0,j.jsx)(Sf,{icon:(0,j.jsx)(Ei,{}),ariaLabel:`Jump to the latest message`,tooltip:!1,onClick:f.jumpToLatest})}):null]})}function Kw(e,t){return t===void 0||t===``?e:`${e} ${t}`}function qw(e){return typeof e==`function`?e():e===void 0?(0,j.jsx)(Jw,{}):e}function Jw(e){return(0,j.jsxs)(`div`,{className:`mx-chat-empty`,children:[(0,j.jsx)(`span`,{className:`mx-chat-empty__title`,children:e.title??`Start the conversation`}),(0,j.jsx)(`span`,{children:e.body??`Ask a question, describe what you need, or paste something in.`})]})}var Yw=/[.!?。!?]["')\]]?\s/g;function Xw(e,t){let[n,r]=(0,_.useState)(``),i=(0,_.useRef)(0),a=e[e.length-1],o=a!==void 0&&a.role===`assistant`,s=o?Ef(C(a)):``,c=o&&a.status!==`streaming`&&a.status!==`pending`,l=a?.id??``,u=(0,_.useRef)(l);u.current!==l&&(u.current=l,i.current=0);let d=(0,_.useRef)(t);if(d.current!==t){let e=d.current!==null;d.current=t,e&&(u.current=l,i.current=s.length,n!==``&&r(``))}return(0,_.useEffect)(()=>{if(!o)return;Yw.lastIndex=0;let e=0,t=Yw.exec(s);for(;t!==null;)e=t.index+t[0].length,t=Yw.exec(s);let n=c?s.length:e;if(n<=i.current)return;let a=s.slice(i.current,n).trim();i.current=n,a!==``&&r(a)},[s,c,o]),n}function Zw(e){return(0,j.jsx)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.6`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,focusable:`false`,children:e})}function Qw(){return Zw((0,j.jsx)(`path`,{d:`M8 13V3.5M3.75 7.75 8 3.5l4.25 4.25`}))}function $w(){return Zw((0,j.jsx)(`rect`,{x:`4.25`,y:`4.25`,width:`7.5`,height:`7.5`,rx:`1.5`,fill:`currentColor`,stroke:`none`}))}function eT(){return Zw((0,j.jsx)(`path`,{d:`M10.6 5.1 5.9 9.8a1.7 1.7 0 0 0 2.4 2.4l4.7-4.7a3.2 3.2 0 0 0-4.5-4.5L3.6 7.9a4.7 4.7 0 0 0 6.7 6.7`}))}function tT(){return Zw((0,j.jsx)(`path`,{d:`M4.5 4.5l7 7M11.5 4.5l-7 7`}))}function nT(e){return(0,j.jsx)(`ul`,{className:`mx-chat-attachments`,"aria-label":`Attachments on this message`,children:e.attachments.map(t=>(0,j.jsxs)(`li`,{className:`mx-chat-attachment`,"data-status":t.status,children:[(0,j.jsx)(`span`,{className:`mx-chat-attachment__name`,title:t.name,children:t.name}),(0,j.jsx)(`span`,{className:`mx-chat-attachment__meta`,children:t.status===`uploading`?t.progress===null?`Uploading…`:`Uploading ${Math.round(t.progress*100)}%`:t.status===`failed`?`Not attached`:ri(t.sizeBytes)}),t.status===`uploading`?(0,j.jsx)(`span`,{className:`mx-chat-attachment__bar`,role:`progressbar`,"aria-label":`Uploading ${t.name}`,...t.progress===null?{}:{"aria-valuenow":Math.round(t.progress*100),"aria-valuemin":0,"aria-valuemax":100},"data-indeterminate":t.progress===null||void 0,children:(0,j.jsx)(`span`,{className:`mx-chat-attachment__fill`,style:t.progress===null?void 0:{width:`${Math.round(t.progress*100)}%`}})}):null,t.failure===null?null:(0,j.jsx)(`span`,{className:`mx-chat-attachment__failure`,children:t.failure}),t.status===`failed`&&t.retryable?(0,j.jsx)(`button`,{type:`button`,className:`mx-chat-attachment__retry mx-chat-focusable`,onClick:()=>e.onRetry(t.key),children:`Try again`}):null,(0,j.jsx)(`button`,{type:`button`,className:`mx-chat-attachment__remove mx-chat-focusable`,"aria-label":`Remove ${t.name}`,title:`Remove ${t.name}`,onClick:()=>e.onRemove(t.key),children:(0,j.jsx)(tT,{})})]},t.key))})}function rT(e){let t=xi(),{quickset:n}=bi(),{thread:r}=gi(),i=r.getSnapshot(),a=n===null||e.busy||e.drafting?[]:n.chips({conversationId:i.conversationId,busy:e.busy,empty:i.messages.length===0}),o=t.composerControls;return o===void 0&&a.length===0?null:(0,j.jsxs)(`div`,{className:`mx-chat-run-controls`,children:[o,a.length===0?null:(0,j.jsx)(`div`,{className:`mx-chat-quickset`,role:`group`,"aria-label":`Things you could ask`,children:a.map(t=>(0,j.jsx)(`button`,{type:`button`,className:`mx-chat-quickset__chip mx-chat-focusable`,"data-quickset":t.id,onClick:()=>e.onFill(t.text),children:t.label},t.id))})]})}var iT=(0,_.createContext)(null);function aT(){let e=(0,_.useContext)(iT),t=bi();return(0,_.useMemo)(()=>e??{files:t.files,voice:t.voice},[e,t.files,t.voice])}function oT(e,t){if(e.isComposing)return`pass`;if(e.key===`Escape`)return e.isBusy?`stop`:`pass`;if(e.key!==`Enter`)return`pass`;let n=e.metaKey||e.ctrlKey;return(t===`enter`?!e.shiftKey&&!n:n)?`send`:`newline`}function sT(e,t,n){if(!Number.isFinite(t)||t<=0)return e;let r=Number.isFinite(n)&&n>0?n:0;return Math.max(1,Math.round((e-r)/t))*t+r}function cT(e){let t=(0,_.useRef)(null),n=(0,_.useCallback)(()=>{let n=t.current;if(n===null)return;let r=n.offsetHeight,i=n.scrollTop,a=getComputedStyle(n),o=Number.parseFloat(a.lineHeight),s=Number.parseFloat(a.paddingTop||`0`)+Number.parseFloat(a.paddingBottom||`0`)+Number.parseFloat(a.borderTopWidth||`0`)+Number.parseFloat(a.borderBottomWidth||`0`);n.style.transitionProperty=`none`,n.style.height=`0px`;let c=n.scrollHeight;n.style.height=`${r}px`,n.offsetHeight,n.style.transitionProperty=``,n.scrollTop=i;let l=sT(c,o,s),u=Math.max(e.minHeightPx,Math.min(l,e.maxHeightPx));u!==r&&(n.style.height=`${u}px`)},[e.maxHeightPx,e.minHeightPx]);(0,_.useLayoutEffect)(()=>{n()},[n,e.value]);let r=(0,_.useCallback)(n=>{t.current=n;let r=e.inputRef;typeof r==`function`?r(n):r!=null&&(r.current=n)},[e.inputRef]),i={maxHeight:e.maxHeightPx};return(0,j.jsx)(`textarea`,{ref:r,className:`mx-chat-composer__field`,value:e.value,rows:1,style:i,placeholder:e.placeholder,"aria-label":e.label,...e.describedBy===void 0?{}:{"aria-describedby":e.describedBy},disabled:e.disabled,autoFocus:e.autoFocus===!0,onChange:t=>e.onValueChange(t.target.value),onKeyDown:e.onKeyDown,...e.onPaste===void 0?{}:{onPaste:e.onPaste}})}function lT(e){let{files:t,maxBytes:n,notifier:r}=e,[i,a]=(0,_.useState)([]),o=(0,_.useRef)(new Map),s=(0,_.useRef)(new Map),c=(0,_.useRef)(!0);(0,_.useEffect)(()=>(c.current=!0,()=>{c.current=!1;for(let e of o.current.values())e.controller.abort();o.current.clear()}),[]);let l=(0,_.useCallback)((e,t)=>{c.current&&a(n=>n.map(n=>n.key===e?{...n,...t}:n))},[]),u=(0,_.useCallback)((e,n)=>{let r=new AbortController;o.current.set(e,{file:n,controller:r}),s.current.set(e,n),l(e,{status:`uploading`,progress:null,failure:null}),t.upload(n,{signal:r.signal,onProgress:t=>{r.signal.aborted||l(e,{progress:Math.max(0,Math.min(1,t))})}}).then(t=>{o.current.delete(e),!r.signal.aborted&&l(e,{status:`ready`,progress:1,fileId:t.fileId,previewUrl:t.previewUrl??null,mediaType:t.mediaType,failure:null})}).catch(t=>{o.current.delete(e),!r.signal.aborted&&l(e,{status:`failed`,progress:null,failure:t instanceof Error&&t.message!==``?t.message:`This file could not be uploaded.`,retryable:!0})})},[t,l]),d=(0,_.useCallback)(e=>{if(e.length===0)return;let t=[],i=[];for(let a of e){let e=x(`att`);if(a.size>n){let i=di(a.name,n);t.push({key:e,name:a.name,sizeBytes:a.size,mediaType:a.type===``?null:a.type,status:`failed`,progress:null,fileId:null,previewUrl:null,failure:i,retryable:!1}),r.notify({level:`warning`,message:i,remedy:`Attach a smaller file, or ask an administrator to raise the limit for this workspace.`});continue}t.push({key:e,name:a.name,sizeBytes:a.size,mediaType:a.type===``?null:a.type,status:`uploading`,progress:null,fileId:null,previewUrl:null,failure:null,retryable:!0}),i.push({key:e,file:a})}a(e=>[...e,...t]);for(let e of i)u(e.key,e.file)},[n,r,u]),f=(0,_.useCallback)(e=>{let t=o.current.get(e);t!==void 0&&(t.controller.abort(),o.current.delete(e)),s.current.delete(e),a(t=>t.filter(t=>t.key!==e))},[]),p=(0,_.useCallback)(e=>{let t=s.current.get(e);t!==void 0&&u(e,t)},[u]),m=(0,_.useCallback)(()=>{for(let e of o.current.values())e.controller.abort();o.current.clear(),s.current.clear(),a([])},[]);return{attachments:i,readyFileIds:i.filter(e=>e.status===`ready`&&e.fileId!==null).map(e=>e.fileId),uploading:i.some(e=>e.status===`uploading`),add:d,remove:f,retry:p,clear:m}}var uT=24,dT=208;function fT(e){let t=e.dataTransfer?.types;return t!==void 0&&Array.from(t).includes(`Files`)}function pT(e){let t=Ci(),n=yi(),{notifier:r}=bi(),i=xi(),{files:a,voice:o}=aT(),{thread:s}=gi(),c=(0,_.useRef)(null),l=(0,_.useId)(),[u,d]=(0,_.useState)(!1),[f,p]=(0,_.useState)(!1),[m,h]=(0,_.useState)(!1),g=(0,_.useRef)(0),v=(0,_.useRef)(async()=>void 0),y=lT({files:a,maxBytes:n.attachmentMaxBytes,notifier:r}),b=(0,_.useRef)(null);(0,_.useEffect)(()=>{let n=e.draftSeed;n!=null&&n!==``&&b.current!==n&&(b.current=n,t.text.trim()===``&&t.setText(n))},[e.draftSeed]);let x=(0,_.useCallback)(e=>{if(e.length!==0){if(!a.available){a.upload(e[0],{signal:new AbortController().signal,onProgress:()=>void 0}).catch(()=>void 0),h(!0);return}y.add(e)}},[y,a]),S=(0,_.useCallback)(e=>{let t=e.clipboardData?.files;t!==void 0&&t.length!==0&&(e.preventDefault(),x(Array.from(t)))},[x]),w=(0,_.useCallback)(e=>{fT(e)&&(e.preventDefault(),g.current=0,p(!1),x(Array.from(e.dataTransfer.files)))},[x]),T=(0,_.useCallback)(e=>{let r=e.nativeEvent.isComposing;if(!r&&e.key===`ArrowUp`&&t.text===``&&!e.shiftKey&&!e.metaKey&&!e.ctrlKey){let n=s.getSnapshot().messages;for(let r=n.length-1;r>=0;--r){let i=n[r];if(i===void 0||i.role!==`user`)continue;let a=C(i);if(a===``)break;e.preventDefault(),t.setText(a);return}return}let i=oT({key:e.key,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,isComposing:r,isBusy:t.isBusy},n.sendKey);if(i===`send`){e.preventDefault(),v.current();return}i===`stop`&&(e.preventDefault(),t.stop())},[t,n.sendKey,s]),E=e.held??null,D=E===null?u?`Finish recording to send your message.`:y.uploading?`Your files are still uploading.`:null:E.reason,O=t.canSend&&D===null,k=(0,_.useCallback)(async()=>{if(!O)return;let e=t.text.trim(),n=y.readyFileIds;n.length===0?await t.send():(t.setText(``),(await s.send({text:e,fileIds:n})).accepted?y.clear():t.setText(e)),c.current?.focus()},[y,O,t,s]);v.current=k;let A=(0,_.useCallback)(e=>{e.preventDefault(),k()},[k]),M=t.isBusy?`Stop the answer`:D===null?`Send message`:D,N=t.isBusy&&n.sendWhileBusy&&t.text.trim()!==``,P=D===null?`Queue message — it sends when this answer finishes`:D,F={value:t.text,onValueChange:t.setText,busy:t.isBusy,onBusyChange:d,className:`mx-chat-composer__icon-button mx-chat-focusable`};return(0,j.jsxs)(`form`,{className:`mx-chat-composer${e.className===void 0?``:` ${e.className}`}`,"data-dragging":f||void 0,"data-busy":t.isBusy||void 0,onSubmit:A,onDragEnter:e=>{fT(e)&&(g.current+=1,p(!0))},onDragOver:e=>{fT(e)&&e.preventDefault()},onDragLeave:e=>{fT(e)&&(g.current=Math.max(0,g.current-1),g.current===0&&p(!1))},onDrop:w,children:[i.composerAbove,(0,j.jsx)(rT,{onFill:t.setText,busy:t.isBusy,drafting:t.text.trim()!==``}),(0,j.jsxs)(`div`,{className:`mx-chat-composer__shell`,children:[y.attachments.length>0?(0,j.jsx)(nT,{attachments:y.attachments,onRemove:y.remove,onRetry:y.retry}):null,(0,j.jsx)(cT,{value:t.text,onValueChange:t.setText,onKeyDown:T,onPaste:S,placeholder:e.placeholder??`Send a message`,minHeightPx:uT,maxHeightPx:dT,disabled:E!==null,label:`Message`,describedBy:l,inputRef:c,...e.autoFocus===void 0?{}:{autoFocus:e.autoFocus}}),(0,j.jsxs)(`div`,{className:`mx-chat-composer__row`,children:[(0,j.jsxs)(`div`,{className:`mx-chat-composer__left`,children:[a.available?(0,j.jsxs)(`label`,{className:`mx-chat-composer__icon-button mx-chat-focusable`,children:[(0,j.jsx)(eT,{}),(0,j.jsx)(`span`,{className:`mx-chat__sr-only`,children:`Attach files`}),(0,j.jsx)(`input`,{type:`file`,multiple:!0,"aria-label":`Attach files`,...a.accept===void 0?{}:{accept:a.accept},onChange:e=>{let t=e.target.files;t!==null&&x(Array.from(t)),e.target.value=``}})]}):null,o===null?null:o.renderButton(F),i.composerPickers,i.composerToolbar]}),(0,j.jsxs)(`div`,{className:`mx-chat-composer__right`,children:[i.composerRunControls,N?(0,j.jsx)(`button`,{type:`submit`,className:`mx-chat-composer__send mx-chat-focusable`,"data-mode":`queue`,"aria-label":P,title:P,disabled:!O,children:(0,j.jsx)(Qw,{})}):null,t.isBusy?(0,j.jsx)(`button`,{type:`button`,className:`mx-chat-composer__send mx-chat-focusable`,"data-mode":`stop`,"aria-label":M,title:M,onClick:()=>void t.stop(),children:(0,j.jsx)($w,{})}):(0,j.jsx)(`button`,{type:`submit`,className:`mx-chat-composer__send mx-chat-focusable`,"data-mode":`send`,"aria-label":M,title:M,disabled:!O,children:(0,j.jsx)(Qw,{})})]})]})]}),(0,j.jsxs)(`div`,{className:`mx-chat-composer__notice`,id:l,role:`status`,"aria-live":`polite`,children:[E===null?m?(0,j.jsx)(`span`,{className:`mx-chat-standin`,children:`${ci} ${li}`}):D!==null&&t.text.trim()!==``?(0,j.jsx)(`span`,{className:`mx-chat-standin`,children:D}):t.restoredFromFailure?(0,j.jsx)(`span`,{className:`mx-chat-standin`,children:`Your message is back in the box. Send it again when you are ready.`}):null:(0,j.jsx)(`span`,{className:`mx-chat-standin`,children:E.reason}),o?.renderRecovery?.(F)??null]}),i.composerBelow,f?(0,j.jsx)(`div`,{className:`mx-chat-composer__drop`,"aria-live":`polite`,children:a.available?`Drop files to attach them to your message`:ci}):null]})}function mT(e){let t=T(e.features),n=new Set,r=new Map,i=0,a=new Map,o=c(e.getSnapshot());a=s(o.messages);function s(e){let t=new Map;for(let n of e)t.set(n.id,n);return t}function c(e){let t=e.ephemeral===!0;return{conversationId:e.conversationId,messages:e.messages,status:e.status,requestId:e.requestId??null,phase:e.phase??null,ephemeral:t,ephemeralReason:t?e.ephemeralReason??`This conversation is not being saved by the application hosting it.`:null,revision:i,error:e.error??null}}let l=e.subscribe(()=>{i+=1,o=c(e.getSnapshot());let t=s(o.messages);for(let[e,n]of r)if(a.get(e)!==t.get(e))for(let e of n)e();a=t;for(let e of n)e()});return{getSnapshot:()=>o,subscribe(e){return n.add(e),()=>{n.delete(e)}},subscribeToMessage(e,t){let n=r.get(e)??new Set;return n.add(t),r.set(e,n),()=>{n.delete(t),n.size===0&&r.delete(e)}},getMessageSnapshot:e=>o.messages.find(t=>t.id===e),features:t,async send(t){return await e.onSubmit(t),{accepted:!0,refusal:null}},async cancel(){await e.onCancel?.()},setMessages(t){if(!e.onSetMessages)throw Error(`This chat thread's state is owned by the host application, which did not provide onSetMessages. Replace the transcript through the host's own store, or provide onSetMessages.`);e.onSetMessages(t)},async loadConversation(t){if(!e.onLoadConversation)throw Error(`This chat thread's state is owned by the host application, which did not provide onLoadConversation. Open the conversation through the host's own routing, or provide onLoadConversation.`);await e.onLoadConversation(t)},canStartNewConversation:e.onStartNewConversation!==void 0,settleToolCall(t){return e.onSettleToolCall?e.onSettleToolCall(t):{messages:o.messages,messageId:null,applied:!1,refusal:`This chat thread's state is owned by the host application, which did not provide onSettleToolCall. Mark the tool call done in the host's own store when it answers, or provide onSettleToolCall.`}},async startNewConversation(){if(!e.onStartNewConversation)throw Error(`This chat thread's state is owned by the host application, which did not provide onStartNewConversation. Start a new conversation through the host's own store, or provide onStartNewConversation.`);await e.onStartNewConversation()},dispose(){l?.(),l=null,n.clear(),r.clear()}}}var hT={claude:`Claude Code`,codex:`Codex`};function gT(e,t,n){return t?`${e}:${t}`:`session:${n??``}`}var _T=[`completed`,`stopped`,`failed`];function vT(e){return _T.includes(e)}function yT(e){if(!e)return null;let t=Date.parse(e);return Number.isNaN(t)?e:new Date(t).toLocaleString(void 0,{month:`short`,day:`numeric`,hour:`numeric`,minute:`2-digit`})}var bT=[/model is not supported when using codex/i,/\bmodel[\s:'"`][^.\n]{0,80}\b(?:not supported|does not exist|not available|not found)\b/i,/\bmodel_not_found\b/i,/issue with the selected model/i,/may not exist or you may not have access to it/i],xT=`Model not available on this account`;function ST(e){let t=(e??``).trim();return t!==``&&bT.some(e=>e.test(t))}function CT(e){return ST(e)?xT:e}var wT={Bash:`Run command`,Shell:`Run command`,BashOutput:`Read command output`,KillShell:`Stop command`,Read:`Read file`,Write:`Write file`,Edit:`Edit file`,MultiEdit:`Edit file`,NotebookEdit:`Edit notebook`,Glob:`Find files`,Grep:`Search code`,LS:`List folder`,WebFetch:`Fetch page`,WebSearch:`Web search`,"Web search":`Web search`,Task:`Sub-agent`,Agent:`Sub-agent`,TodoWrite:`Update plan`,Plan:`Update plan`,"Edit files":`Edit files`,ExitPlanMode:`Finish planning`,Skill:`Use skill`,ToolSearch:`Load tools`};function TT(e){let t=e.replace(/[._-]+/g,` `).replace(/([a-z\d])([A-Z])/g,`$1 $2`).replace(/\s+/g,` `).trim().toLowerCase();return t?t.charAt(0).toUpperCase()+t.slice(1):``}function ET(e){let t=/^mcp__(.+?)__(.+)$/.exec(e);return t?.[1]&&t[2]?{server:t[1],tool:t[2]}:null}function DT(e){let t=wT[e];if(t)return t;let n=ET(e);if(n)return`${TT(n.tool)||`Tool`} · ${TT(n.server)}`;let r=/^([\w-]+)\.([\w-]+)$/.exec(e);return r?.[1]&&r[2]?`${TT(r[2])} · ${TT(r[1])}`:TT(e)||`Working…`}function OT(e){let t=e.match(/^\/(?:Users|home)\/[^/]+/)?.[0];return t?`~${e.slice(t.length)}`:e}function kT(e,t=90){let n=e.replace(/\s+/g,` `).trim();return n.length>t?`${n.slice(0,t-1)}…`:n}function AT(e,t){if(typeof t!=`object`||!t)return typeof t==`string`&&t?kT(t):null;let n=t,r=(...e)=>{for(let t of e){let e=n[t];if(typeof e==`string`&&e.trim())return e}return null};switch(e){case`Bash`:case`Shell`:{let e=r(`command`,`description`);return e?kT(e):null}case`Read`:case`Write`:case`Edit`:case`MultiEdit`:case`NotebookEdit`:{let e=r(`file_path`,`notebook_path`,`path`);return e?kT(OT(e)):null}case`Glob`:case`Grep`:return r(`pattern`)?kT(r(`pattern`)):null;case`WebFetch`:return r(`url`)?kT(r(`url`)):null;case`WebSearch`:case`Web search`:return r(`query`)?kT(r(`query`)):null;case`Task`:case`Agent`:return r(`description`,`prompt`)?kT(r(`description`,`prompt`)):null;case`Edit files`:{let e=n.changes,t=Array.isArray(e)?e.map(e=>typeof e==`object`&&e?e.path:null).filter(e=>typeof e==`string`):typeof e==`object`&&e?Object.keys(e):[];return t.length?kT(t.map(OT).join(`, `)):null}default:{let e=r(`url`,`query`,`command`,`path`,`file_path`,`name`,`description`);return e?kT(e):null}}}function jT(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function MT(e){return typeof e==`string`?e:null}function NT(e){let t=jT(e)?MT(e.type):MT(e);return t===`add`||t===`create`?`created`:t===`delete`?`deleted`:t===`move`||t===`rename`?`moved`:`edited`}function PT(e){let t=new Map,n=(e,n,r)=>{let i=t.get(e);i?(i.edits.push(r),n===`deleted`&&(i.kind=`deleted`)):t.set(e,{path:e,kind:n,edits:[r]})};for(let t of e)for(let e of t.parts){if(e.type!==`tool`)continue;let t=e.input;if(!jT(t))continue;let r=e.state===`output-error`||!!e.errorText,i={toolCallId:e.toolCallId,failed:r};switch(e.toolName){case`Write`:{let e=MT(t.file_path);e&&n(e,`created`,{...i,removed:null,added:MT(t.content),diff:null});break}case`Edit`:{let e=MT(t.file_path);e&&n(e,`edited`,{...i,removed:MT(t.old_string),added:MT(t.new_string),diff:null});break}case`MultiEdit`:{let e=MT(t.file_path),r=Array.isArray(t.edits)?t.edits:[];if(e)for(let t of r.filter(jT))n(e,`edited`,{...i,removed:MT(t.old_string),added:MT(t.new_string),diff:null});break}case`NotebookEdit`:{let e=MT(t.notebook_path);e&&n(e,`edited`,{...i,removed:null,added:MT(t.new_source),diff:null});break}case`Edit files`:{let e=t.changes;if(Array.isArray(e))for(let t of e.filter(jT)){let e=MT(t.path);e&&n(e,NT(t.kind),{...i,removed:null,added:null,diff:null})}else if(jT(e))for(let[t,r]of Object.entries(e)){let e=jT(r)?MT(r.unified_diff):null;n(t,NT(r),{...i,removed:null,added:null,diff:e})}break}}}return[...t.values()]}function FT(e){let t=0,n=0,r=e=>e?e.split(`
|
|
67
67
|
`).length:0;for(let i of e.edits)if(!i.failed){if(i.diff)for(let e of i.diff.split(`
|
|
68
|
-
`))e.startsWith(`+`)&&!e.startsWith(`+++`)?t+=1:e.startsWith(`-`)&&!e.startsWith(`---`)&&(n+=1);else t+=r(i.added),n+=r(i.removed)}return{added:t,removed:n}}function FT(e,t){let n=hT(e.provider,e.providerSessionId,e.id),r=t[n]??t[hT(e.provider,null,e.id)]??{};return{key:n,kind:`session`,provider:e.provider,providerSessionId:e.providerSessionId,title:r.title||e.title,originalTitle:e.title,cwd:e.cwd,updatedAt:e.updatedAt,pinned:r.pinned===!0,hidden:r.hidden===!0,session:e,discovered:null}}function IT(e,t){let n=hT(e.provider,e.providerSessionId),r=t[n]??{};return{key:n,kind:`discovered`,provider:e.provider,providerSessionId:e.providerSessionId,title:r.title||e.title,originalTitle:e.title,cwd:e.cwd,updatedAt:e.updatedAt,pinned:r.pinned===!0,hidden:r.hidden===!0,session:null,discovered:e}}var LT=864e5;function RT(e){let t=new Date(e);return t.setHours(0,0,0,0),t.getTime()}function zT(e,t){let n=Date.parse(e);if(Number.isNaN(n))return`Older`;let r=RT(t);if(n>=r)return`Today`;if(n>=r-LT)return`Yesterday`;if(n>=r-7*LT)return`Previous 7 days`;if(n>=r-30*LT)return`Previous 30 days`;let i=new Date(n),a=new Date(t).getFullYear();return i.getFullYear()===a?i.toLocaleDateString(void 0,{month:`long`}):String(i.getFullYear())}function BT(e){if(!e)return`Unknown folder`;let t=e.split(`/`).filter(Boolean);return t[t.length-1]??e}function VT(e,t,n){let r=new Map;for(let i of e){let e=t===`date`?zT(i.updatedAt,n):i.cwd??``,a=r.get(e);a||(a={label:t===`date`?e:BT(i.cwd),entries:[]},r.set(e,a)),a.entries.push(i)}if(t===`folder`){let e=new Map;for(let t of r.values())e.set(t.label,(e.get(t.label)??0)+1);for(let[t,n]of r)(e.get(n.label)??0)>1&&t&&(n.label=t.split(`/`).filter(Boolean).slice(-2).join(`/`))}return[...r.values()]}function HT(e,t){let n=t.trim().toLowerCase();return!n||e.title.toLowerCase().includes(n)||e.originalTitle.toLowerCase().includes(n)||(e.cwd??``).toLowerCase().includes(n)}function UT(e,t){return t.updatedAt.localeCompare(e.updatedAt)}function WT(e){if(!e.providerSessionId)return null;let t=e.provider===`claude`?`claude --resume ${e.providerSessionId}`:`codex resume ${e.providerSessionId}`;return e.cwd?`cd ${/^[A-Za-z0-9_./~-]+$/.test(e.cwd)?e.cwd:`'${e.cwd.replace(/'/g,`'\\''`)}'`} && ${t}`:t}var GT=(0,_.createContext)(null);function KT(){let e=(0,_.useContext)(GT);if(!e)throw Error(`[@ai-matrx/coding-sessions] Render this inside <CodingSessionsProvider transport={…}> (or <CodingSessionsApp>).`);return e}function qT(){let e=KT();return(0,_.useSyncExternalStore)(e.subscribe,e.getState,e.getState)}function JT(e){let t=KT().transcript(e),[,n]=(0,_.useState)(0);return(0,_.useEffect)(()=>t.thread.subscribe(()=>n(e=>e+1)),[t]),t}function YT(){let[e,t]=(0,_.useState)(()=>Date.now());return(0,_.useEffect)(()=>{let e=setInterval(()=>t(Date.now()),6e4);return()=>clearInterval(e)},[]),e}function XT(e,t){return e?ti(e,{style:`long`,now:t,fallback:``}):``}function ZT(e){if(!e)return``;let t=e.match(/^\/(?:Users|home)\/[^/]+/)?.[0],n=t?`~${e.slice(t.length)}`:e;return n.length<=48?n:`…/${n.split(`/`).slice(-3).join(`/`)}`}function QT({size:e=16,children:t,...n}){return(0,j.jsx)(`svg`,{width:e,height:e,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:1.8,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,focusable:`false`,...n,children:t})}var $T=e=>(0,j.jsx)(QT,{...e,children:(0,j.jsx)(`path`,{d:`M12 5v14M5 12h14`})}),eE=e=>(0,j.jsx)(QT,{...e,children:(0,j.jsx)(`rect`,{x:`6`,y:`6`,width:`12`,height:`12`,rx:`2`,fill:`currentColor`,stroke:`none`})}),tE=e=>(0,j.jsx)(QT,{...e,children:(0,j.jsx)(`path`,{d:`M3 7.5A2.5 2.5 0 0 1 5.5 5H9l2 2.5h7.5A2.5 2.5 0 0 1 21 10v7.5a2.5 2.5 0 0 1-2.5 2.5h-13A2.5 2.5 0 0 1 3 17.5z`})}),nE=e=>(0,j.jsx)(QT,{...e,children:(0,j.jsx)(`path`,{d:`m5 12.5 4.5 4.5L19 7.5`})}),rE=e=>(0,j.jsxs)(QT,{...e,children:[(0,j.jsx)(`circle`,{cx:`12`,cy:`12`,r:`9`}),(0,j.jsx)(`path`,{d:`M12 7.5v5.5M12 16.5h.01`})]}),iE=e=>(0,j.jsx)(QT,{...e,children:(0,j.jsx)(`path`,{d:`M20 11a8 8 0 0 0-14.3-4.9L4 8M4 4v4h4M4 13a8 8 0 0 0 14.3 4.9L20 16M20 20v-4h-4`})}),aE=e=>(0,j.jsxs)(QT,{...e,children:[(0,j.jsx)(`path`,{d:`M5 12h12M13 7l5 5-5 5`}),(0,j.jsx)(`path`,{d:`M5 5v14`})]}),oE=e=>(0,j.jsxs)(QT,{...e,children:[(0,j.jsx)(`circle`,{cx:`12`,cy:`12`,r:`4`}),(0,j.jsx)(`path`,{d:`M12 2.5v2M12 19.5v2M4.2 4.2l1.4 1.4M18.4 18.4l1.4 1.4M2.5 12h2M19.5 12h2M4.2 19.8l1.4-1.4M18.4 5.6l1.4-1.4`})]}),sE=e=>(0,j.jsx)(QT,{...e,children:(0,j.jsx)(`path`,{d:`M20 14.5A8 8 0 0 1 9.5 4a8 8 0 1 0 10.5 10.5z`})}),cE=e=>(0,j.jsxs)(QT,{...e,children:[(0,j.jsx)(`rect`,{x:`3`,y:`4.5`,width:`18`,height:`12`,rx:`2`}),(0,j.jsx)(`path`,{d:`M8.5 20h7M12 16.5V20`})]}),lE=e=>(0,j.jsx)(QT,{...e,children:(0,j.jsx)(`path`,{d:`M20 12.5a7.5 7.5 0 0 1-10.9 6.7L4 20.5l1.3-4.6A7.5 7.5 0 1 1 20 12.5z`})}),uE=({size:e=16,className:t})=>(0,j.jsxs)(`svg`,{width:e,height:e,viewBox:`0 0 24 24`,"aria-hidden":`true`,className:`cs-spin ${t??``}`,children:[(0,j.jsx)(`circle`,{cx:`12`,cy:`12`,r:`9`,fill:`none`,stroke:`currentColor`,strokeOpacity:`0.2`,strokeWidth:`2.5`}),(0,j.jsx)(`path`,{d:`M21 12a9 9 0 0 0-9-9`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.5`,strokeLinecap:`round`})]}),dE=`m4.7144 15.9555 4.7174-2.6471.079-.2307-.079-.1275h-.2307l-.7893-.0486-2.6956-.0729-2.3375-.0971-2.2646-.1214-.5707-.1215-.5343-.7042.0546-.3522.4797-.3218.686.0608 1.5179.1032 2.2767.1578 1.6514.0972 2.4468.255h.3886l.0546-.1579-.1336-.0971-.1032-.0972L6.973 9.8356l-2.55-1.6879-1.3356-.9714-.7225-.4918-.3643-.4614-.1578-1.0078.6557-.7225.8803.0607.2246.0607.8925.686 1.9064 1.4754 2.4893 1.8336.3643.3035.1457-.1032.0182-.0728-.164-.2733-1.3539-2.4467-1.445-2.4893-.6435-1.032-.17-.6194c-.0607-.255-.1032-.4674-.1032-.7285L6.287.1335 6.6997 0l.9957.1336.419.3642.6192 1.4147 1.0018 2.2282 1.5543 3.0296.4553.8985.2429.8318.091.255h.1579v-.1457l.1275-1.706.2368-2.0947.2307-2.6957.0789-.7589.3764-.9107.7468-.4918.5828.2793.4797.686-.0668.4433-.2853 1.8517-.5586 2.9021-.3643 1.9429h.2125l.2429-.2429.9835-1.3053 1.6514-2.0643.7286-.8196.85-.9046.5464-.4311h1.0321l.759 1.1293-.34 1.1657-1.0625 1.3478-.8804 1.1414-1.2628 1.7-.7893 1.36.0729.1093.1882-.0183 2.8535-.607 1.5421-.2794 1.8396-.3157.8318.3886.091.3946-.3278.8075-1.967.4857-2.3072.4614-3.4364.8136-.0425.0304.0486.0607 1.5482.1457.6618.0364h1.621l3.0175.2247.7892.522.4736.6376-.079.4857-1.2142.6193-1.6393-.3886-3.825-.9107-1.3113-.3279h-.1822v.1093l1.0929 1.0686 2.0035 1.8092 2.5075 2.3314.1275.5768-.3218.4554-.34-.0486-2.2039-1.6575-.85-.7468-1.9246-1.621h-.1275v.17l.4432.6496 2.3436 3.5214.1214 1.0807-.17.3521-.6071.2125-.6679-.1214-1.3721-1.9246L14.38 17.959l-1.1414-1.9428-.1397.079-.674 7.2552-.3156.3703-.7286.2793-.6071-.4614-.3218-.7468.3218-1.4753.3886-1.9246.3157-1.53.2853-1.9004.17-.6314-.0121-.0425-.1397.0182-1.4328 1.9672-2.1796 2.9446-1.7243 1.8456-.4128.164-.7164-.3704.0667-.6618.4008-.5889 2.386-3.0357 1.4389-1.882.929-1.0868-.0062-.1579h-.0546l-6.3385 4.1164-1.1293.1457-.4857-.4554.0608-.7467.2307-.2429 1.9064-1.3114Z`,fE=`M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z`;function pE({provider:e,size:t=16}){return(0,j.jsx)(`svg`,{className:`cs-provider-mark cs-provider-mark--${e}`,width:t,height:t,viewBox:`0 0 24 24`,fill:`currentColor`,"aria-hidden":`true`,"data-provider-mark":e,children:(0,j.jsx)(`path`,{d:e===`claude`?dE:fE})})}var mE=e=>(0,j.jsxs)(QT,{...e,children:[(0,j.jsx)(`circle`,{cx:`11`,cy:`11`,r:`6.5`}),(0,j.jsx)(`path`,{d:`m20 20-4.2-4.2`})]}),hE=e=>(0,j.jsxs)(QT,{...e,children:[(0,j.jsx)(`circle`,{cx:`5.5`,cy:`12`,r:`1.2`,fill:`currentColor`,stroke:`none`}),(0,j.jsx)(`circle`,{cx:`12`,cy:`12`,r:`1.2`,fill:`currentColor`,stroke:`none`}),(0,j.jsx)(`circle`,{cx:`18.5`,cy:`12`,r:`1.2`,fill:`currentColor`,stroke:`none`})]}),gE=e=>(0,j.jsxs)(QT,{...e,children:[(0,j.jsx)(`path`,{d:`M9 4h6l-1 5 3 3v2H7v-2l3-3z`}),(0,j.jsx)(`path`,{d:`M12 14v6`})]}),_E=e=>(0,j.jsxs)(QT,{...e,children:[(0,j.jsx)(`path`,{d:`M3 3l18 18`}),(0,j.jsx)(`path`,{d:`M10.6 5.1A9.8 9.8 0 0 1 12 5c5 0 8.5 4.5 9.5 7a13 13 0 0 1-2.6 3.9M6.4 6.4C4.3 7.8 2.9 9.9 2.5 12c1 2.5 4.5 7 9.5 7 1.8 0 3.4-.6 4.8-1.4`}),(0,j.jsx)(`path`,{d:`M9.9 9.9a3 3 0 0 0 4.2 4.2`})]}),vE=e=>(0,j.jsxs)(QT,{...e,children:[(0,j.jsx)(`rect`,{x:`8.5`,y:`8.5`,width:`11`,height:`11`,rx:`2`}),(0,j.jsx)(`path`,{d:`M15.5 8.5V6.5a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h2`})]}),yE=e=>(0,j.jsxs)(QT,{...e,children:[(0,j.jsx)(`path`,{d:`M4 20h4L19 9a2.8 2.8 0 0 0-4-4L4 16z`}),(0,j.jsx)(`path`,{d:`m13.5 6.5 4 4`})]}),bE=e=>(0,j.jsxs)(QT,{...e,children:[(0,j.jsx)(`rect`,{x:`3.5`,y:`4.5`,width:`17`,height:`15`,rx:`2.5`}),(0,j.jsx)(`path`,{d:`M9.5 4.5v15`})]}),xE=e=>(0,j.jsx)(QT,{...e,children:(0,j.jsx)(`path`,{d:`m6.5 9.5 5.5 5.5 5.5-5.5`})}),SE=e=>(0,j.jsxs)(QT,{...e,children:[(0,j.jsx)(`path`,{d:`M14 3.5H7.5a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2h9a2 2 0 0 0 2-2V8z`}),(0,j.jsx)(`path`,{d:`M14 3.5V8h4.5`})]}),CE=e=>(0,j.jsx)(QT,{...e,children:(0,j.jsx)(`path`,{d:`M6.5 6.5l11 11M17.5 6.5l-11 11`})}),wE=e=>(0,j.jsxs)(QT,{...e,children:[(0,j.jsx)(`rect`,{x:`3`,y:`6.5`,width:`18`,height:`11`,rx:`2`}),(0,j.jsx)(`path`,{d:`M7 10.5h.01M11 10.5h.01M15 10.5h.01M8 14h8`})]}),TE=e=>(0,j.jsxs)(QT,{...e,children:[(0,j.jsx)(`path`,{d:`M6 16.5V11a6 6 0 1 1 12 0v5.5l1.5 1.5h-15z`}),(0,j.jsx)(`path`,{d:`M10 20.5a2 2 0 0 0 4 0`})]}),EE=(0,_.createContext)(()=>void 0);function DE(){return(0,_.useContext)(EE)}var OE=[{target:`finder`,label:`Finder`},{target:`vscode`,label:`VS Code`},{target:`cursor`,label:`Cursor`},{target:`terminal`,label:`Terminal`}];async function kE(e,t,n){try{await navigator.clipboard.writeText(e),t(`${n} copied.`)}catch{t(`This browser didn't allow copying. Select the text and copy it with your keyboard instead: ${e}`)}}async function AE(e,t,n){try{let r=await e.readRawTranscript(t.provider,t.providerSessionId);if(!r.available){n(r.reason);return}let i=URL.createObjectURL(new Blob([r.content],{type:`application/x-ndjson`})),a=document.createElement(`a`);a.href=i,a.download=r.fileName,a.click(),setTimeout(()=>URL.revokeObjectURL(i),1e4),n(`Downloaded ${r.fileName} (${ri(r.bytes)}).`)}catch(e){n(`Full Download failed: ${e instanceof Error?e.message:String(e)}`)}}function jE(e){let t=KT(),n=DE(),{entry:r}=e,i=e.variant===`dropdown`?{Item:iw,Separator:cw,Sub:XC,SubTrigger:tw,SubContent:nw}:{Item:Fb,Separator:zb,Sub:Ob,SubTrigger:Mb,SubContent:Nb},a=(e,i)=>{t.setPreference(r.key,e).then(()=>n(i),e=>n(`That didn't save: ${e instanceof Error?e.message:String(e)}`))},o=WT(r);return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(i.Item,{onSelect:e.onRename,children:[(0,j.jsx)(yE,{size:14}),`Rename`]}),(0,j.jsxs)(i.Item,{onSelect:()=>a({pinned:!r.pinned},r.pinned?`Unpinned.`:`Pinned to the top.`),children:[(0,j.jsx)(gE,{size:14}),r.pinned?`Unpin`:`Pin to top`]}),(0,j.jsxs)(i.Item,{onSelect:()=>a({hidden:!r.hidden},r.hidden?`Back in the list.`:`Hidden from the list. Search still finds it.`),children:[(0,j.jsx)(_E,{size:14}),r.hidden?`Show in the list`:`Hide from the list`]}),r.providerSessionId||r.cwd?(0,j.jsx)(i.Separator,{}):null,r.providerSessionId?(0,j.jsxs)(i.Item,{onSelect:()=>void kE(r.providerSessionId,n,`Chat ID`),children:[(0,j.jsx)(vE,{size:14}),`Copy chat ID`]}):null,o?(0,j.jsxs)(i.Item,{onSelect:()=>void kE(o,n,`Resume command`),children:[(0,j.jsx)(vE,{size:14}),`Copy resume command`]}):null,r.providerSessionId?(0,j.jsxs)(i.Item,{onSelect:()=>void AE(t,r,n),children:[(0,j.jsx)(vE,{size:14}),`Full Download`]}):null,r.cwd?(0,j.jsxs)(i.Item,{onSelect:()=>void kE(r.cwd,n,`Folder path`),children:[(0,j.jsx)(vE,{size:14}),`Copy folder path`]}):null,r.cwd?(0,j.jsxs)(i.Sub,{children:[(0,j.jsxs)(i.SubTrigger,{className:`gap-2`,children:[(0,j.jsx)(tE,{size:14}),`Open folder in`]}),(0,j.jsx)(i.SubContent,{children:OE.map(({target:e,label:a})=>(0,j.jsx)(i.Item,{onSelect:()=>t.openFolder(r.cwd,e).catch(e=>n(e instanceof Error?e.message:String(e))),children:a},e))})]}):null]})}var ME=400;function NE(e,t){if(t){let n=t.replace(/\/+$/,``);for(let t of[n,`/private${n}`,n.replace(/^\/private(?=\/)/,``)])if(e.startsWith(`${t}/`))return e.slice(t.length+1)}return ZT(e)}function PE({edit:e}){let t=[];if(e.diff)for(let n of e.diff.split(`
|
|
68
|
+
`))e.startsWith(`+`)&&!e.startsWith(`+++`)?t+=1:e.startsWith(`-`)&&!e.startsWith(`---`)&&(n+=1);else t+=r(i.added),n+=r(i.removed)}return{added:t,removed:n}}function IT(e,t){let n=gT(e.provider,e.providerSessionId,e.id),r=t[n]??t[gT(e.provider,null,e.id)]??{};return{key:n,kind:`session`,provider:e.provider,providerSessionId:e.providerSessionId,title:r.title||e.title,originalTitle:e.title,cwd:e.cwd,updatedAt:e.updatedAt,pinned:r.pinned===!0,hidden:r.hidden===!0,session:e,discovered:null}}function LT(e,t){let n=gT(e.provider,e.providerSessionId),r=t[n]??{};return{key:n,kind:`discovered`,provider:e.provider,providerSessionId:e.providerSessionId,title:r.title||e.title,originalTitle:e.title,cwd:e.cwd,updatedAt:e.updatedAt,pinned:r.pinned===!0,hidden:r.hidden===!0,session:null,discovered:e}}var RT=864e5;function zT(e){let t=new Date(e);return t.setHours(0,0,0,0),t.getTime()}function BT(e,t){let n=Date.parse(e);if(Number.isNaN(n))return`Older`;let r=zT(t);if(n>=r)return`Today`;if(n>=r-RT)return`Yesterday`;if(n>=r-7*RT)return`Previous 7 days`;if(n>=r-30*RT)return`Previous 30 days`;let i=new Date(n),a=new Date(t).getFullYear();return i.getFullYear()===a?i.toLocaleDateString(void 0,{month:`long`}):String(i.getFullYear())}function VT(e){if(!e)return`Unknown folder`;let t=e.split(`/`).filter(Boolean);return t[t.length-1]??e}function HT(e,t,n){let r=new Map;for(let i of e){let e=t===`date`?BT(i.updatedAt,n):i.cwd??``,a=r.get(e);a||(a={label:t===`date`?e:VT(i.cwd),entries:[]},r.set(e,a)),a.entries.push(i)}if(t===`folder`){let e=new Map;for(let t of r.values())e.set(t.label,(e.get(t.label)??0)+1);for(let[t,n]of r)(e.get(n.label)??0)>1&&t&&(n.label=t.split(`/`).filter(Boolean).slice(-2).join(`/`))}return[...r.values()]}function UT(e,t){let n=t.trim().toLowerCase();return!n||e.title.toLowerCase().includes(n)||e.originalTitle.toLowerCase().includes(n)||(e.cwd??``).toLowerCase().includes(n)}function WT(e,t){return t.updatedAt.localeCompare(e.updatedAt)}function GT(e){if(!e.providerSessionId)return null;let t=e.provider===`claude`?`claude --resume ${e.providerSessionId}`:`codex resume ${e.providerSessionId}`;return e.cwd?`cd ${/^[A-Za-z0-9_./~-]+$/.test(e.cwd)?e.cwd:`'${e.cwd.replace(/'/g,`'\\''`)}'`} && ${t}`:t}var KT=(0,_.createContext)(null);function qT(){let e=(0,_.useContext)(KT);if(!e)throw Error(`[@ai-matrx/coding-sessions] Render this inside <CodingSessionsProvider transport={…}> (or <CodingSessionsApp>).`);return e}function JT(){let e=qT();return(0,_.useSyncExternalStore)(e.subscribe,e.getState,e.getState)}function YT(e){let t=qT().transcript(e),[,n]=(0,_.useState)(0);return(0,_.useEffect)(()=>t.thread.subscribe(()=>n(e=>e+1)),[t]),t}function XT(){let[e,t]=(0,_.useState)(()=>Date.now());return(0,_.useEffect)(()=>{let e=setInterval(()=>t(Date.now()),6e4);return()=>clearInterval(e)},[]),e}function ZT(e,t){return e?ti(e,{style:`long`,now:t,fallback:``}):``}function QT(e){if(!e)return``;let t=e.match(/^\/(?:Users|home)\/[^/]+/)?.[0],n=t?`~${e.slice(t.length)}`:e;return n.length<=48?n:`…/${n.split(`/`).slice(-3).join(`/`)}`}function $T({size:e=16,children:t,...n}){return(0,j.jsx)(`svg`,{width:e,height:e,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:1.8,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,focusable:`false`,...n,children:t})}var eE=e=>(0,j.jsx)($T,{...e,children:(0,j.jsx)(`path`,{d:`M12 5v14M5 12h14`})}),tE=e=>(0,j.jsx)($T,{...e,children:(0,j.jsx)(`rect`,{x:`6`,y:`6`,width:`12`,height:`12`,rx:`2`,fill:`currentColor`,stroke:`none`})}),nE=e=>(0,j.jsx)($T,{...e,children:(0,j.jsx)(`path`,{d:`M3 7.5A2.5 2.5 0 0 1 5.5 5H9l2 2.5h7.5A2.5 2.5 0 0 1 21 10v7.5a2.5 2.5 0 0 1-2.5 2.5h-13A2.5 2.5 0 0 1 3 17.5z`})}),rE=e=>(0,j.jsx)($T,{...e,children:(0,j.jsx)(`path`,{d:`m5 12.5 4.5 4.5L19 7.5`})}),iE=e=>(0,j.jsxs)($T,{...e,children:[(0,j.jsx)(`circle`,{cx:`12`,cy:`12`,r:`9`}),(0,j.jsx)(`path`,{d:`M12 7.5v5.5M12 16.5h.01`})]}),aE=e=>(0,j.jsx)($T,{...e,children:(0,j.jsx)(`path`,{d:`M20 11a8 8 0 0 0-14.3-4.9L4 8M4 4v4h4M4 13a8 8 0 0 0 14.3 4.9L20 16M20 20v-4h-4`})}),oE=e=>(0,j.jsxs)($T,{...e,children:[(0,j.jsx)(`path`,{d:`M5 12h12M13 7l5 5-5 5`}),(0,j.jsx)(`path`,{d:`M5 5v14`})]}),sE=e=>(0,j.jsxs)($T,{...e,children:[(0,j.jsx)(`circle`,{cx:`12`,cy:`12`,r:`4`}),(0,j.jsx)(`path`,{d:`M12 2.5v2M12 19.5v2M4.2 4.2l1.4 1.4M18.4 18.4l1.4 1.4M2.5 12h2M19.5 12h2M4.2 19.8l1.4-1.4M18.4 5.6l1.4-1.4`})]}),cE=e=>(0,j.jsx)($T,{...e,children:(0,j.jsx)(`path`,{d:`M20 14.5A8 8 0 0 1 9.5 4a8 8 0 1 0 10.5 10.5z`})}),lE=e=>(0,j.jsxs)($T,{...e,children:[(0,j.jsx)(`rect`,{x:`3`,y:`4.5`,width:`18`,height:`12`,rx:`2`}),(0,j.jsx)(`path`,{d:`M8.5 20h7M12 16.5V20`})]}),uE=e=>(0,j.jsx)($T,{...e,children:(0,j.jsx)(`path`,{d:`M20 12.5a7.5 7.5 0 0 1-10.9 6.7L4 20.5l1.3-4.6A7.5 7.5 0 1 1 20 12.5z`})}),dE=({size:e=16,className:t})=>(0,j.jsxs)(`svg`,{width:e,height:e,viewBox:`0 0 24 24`,"aria-hidden":`true`,className:`cs-spin ${t??``}`,children:[(0,j.jsx)(`circle`,{cx:`12`,cy:`12`,r:`9`,fill:`none`,stroke:`currentColor`,strokeOpacity:`0.2`,strokeWidth:`2.5`}),(0,j.jsx)(`path`,{d:`M21 12a9 9 0 0 0-9-9`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.5`,strokeLinecap:`round`})]}),fE=`m4.7144 15.9555 4.7174-2.6471.079-.2307-.079-.1275h-.2307l-.7893-.0486-2.6956-.0729-2.3375-.0971-2.2646-.1214-.5707-.1215-.5343-.7042.0546-.3522.4797-.3218.686.0608 1.5179.1032 2.2767.1578 1.6514.0972 2.4468.255h.3886l.0546-.1579-.1336-.0971-.1032-.0972L6.973 9.8356l-2.55-1.6879-1.3356-.9714-.7225-.4918-.3643-.4614-.1578-1.0078.6557-.7225.8803.0607.2246.0607.8925.686 1.9064 1.4754 2.4893 1.8336.3643.3035.1457-.1032.0182-.0728-.164-.2733-1.3539-2.4467-1.445-2.4893-.6435-1.032-.17-.6194c-.0607-.255-.1032-.4674-.1032-.7285L6.287.1335 6.6997 0l.9957.1336.419.3642.6192 1.4147 1.0018 2.2282 1.5543 3.0296.4553.8985.2429.8318.091.255h.1579v-.1457l.1275-1.706.2368-2.0947.2307-2.6957.0789-.7589.3764-.9107.7468-.4918.5828.2793.4797.686-.0668.4433-.2853 1.8517-.5586 2.9021-.3643 1.9429h.2125l.2429-.2429.9835-1.3053 1.6514-2.0643.7286-.8196.85-.9046.5464-.4311h1.0321l.759 1.1293-.34 1.1657-1.0625 1.3478-.8804 1.1414-1.2628 1.7-.7893 1.36.0729.1093.1882-.0183 2.8535-.607 1.5421-.2794 1.8396-.3157.8318.3886.091.3946-.3278.8075-1.967.4857-2.3072.4614-3.4364.8136-.0425.0304.0486.0607 1.5482.1457.6618.0364h1.621l3.0175.2247.7892.522.4736.6376-.079.4857-1.2142.6193-1.6393-.3886-3.825-.9107-1.3113-.3279h-.1822v.1093l1.0929 1.0686 2.0035 1.8092 2.5075 2.3314.1275.5768-.3218.4554-.34-.0486-2.2039-1.6575-.85-.7468-1.9246-1.621h-.1275v.17l.4432.6496 2.3436 3.5214.1214 1.0807-.17.3521-.6071.2125-.6679-.1214-1.3721-1.9246L14.38 17.959l-1.1414-1.9428-.1397.079-.674 7.2552-.3156.3703-.7286.2793-.6071-.4614-.3218-.7468.3218-1.4753.3886-1.9246.3157-1.53.2853-1.9004.17-.6314-.0121-.0425-.1397.0182-1.4328 1.9672-2.1796 2.9446-1.7243 1.8456-.4128.164-.7164-.3704.0667-.6618.4008-.5889 2.386-3.0357 1.4389-1.882.929-1.0868-.0062-.1579h-.0546l-6.3385 4.1164-1.1293.1457-.4857-.4554.0608-.7467.2307-.2429 1.9064-1.3114Z`,pE=`M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z`;function mE({provider:e,size:t=16}){return(0,j.jsx)(`svg`,{className:`cs-provider-mark cs-provider-mark--${e}`,width:t,height:t,viewBox:`0 0 24 24`,fill:`currentColor`,"aria-hidden":`true`,"data-provider-mark":e,children:(0,j.jsx)(`path`,{d:e===`claude`?fE:pE})})}var hE=e=>(0,j.jsxs)($T,{...e,children:[(0,j.jsx)(`circle`,{cx:`11`,cy:`11`,r:`6.5`}),(0,j.jsx)(`path`,{d:`m20 20-4.2-4.2`})]}),gE=e=>(0,j.jsxs)($T,{...e,children:[(0,j.jsx)(`circle`,{cx:`5.5`,cy:`12`,r:`1.2`,fill:`currentColor`,stroke:`none`}),(0,j.jsx)(`circle`,{cx:`12`,cy:`12`,r:`1.2`,fill:`currentColor`,stroke:`none`}),(0,j.jsx)(`circle`,{cx:`18.5`,cy:`12`,r:`1.2`,fill:`currentColor`,stroke:`none`})]}),_E=e=>(0,j.jsxs)($T,{...e,children:[(0,j.jsx)(`path`,{d:`M9 4h6l-1 5 3 3v2H7v-2l3-3z`}),(0,j.jsx)(`path`,{d:`M12 14v6`})]}),vE=e=>(0,j.jsxs)($T,{...e,children:[(0,j.jsx)(`path`,{d:`M3 3l18 18`}),(0,j.jsx)(`path`,{d:`M10.6 5.1A9.8 9.8 0 0 1 12 5c5 0 8.5 4.5 9.5 7a13 13 0 0 1-2.6 3.9M6.4 6.4C4.3 7.8 2.9 9.9 2.5 12c1 2.5 4.5 7 9.5 7 1.8 0 3.4-.6 4.8-1.4`}),(0,j.jsx)(`path`,{d:`M9.9 9.9a3 3 0 0 0 4.2 4.2`})]}),yE=e=>(0,j.jsxs)($T,{...e,children:[(0,j.jsx)(`rect`,{x:`8.5`,y:`8.5`,width:`11`,height:`11`,rx:`2`}),(0,j.jsx)(`path`,{d:`M15.5 8.5V6.5a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h2`})]}),bE=e=>(0,j.jsxs)($T,{...e,children:[(0,j.jsx)(`path`,{d:`M4 20h4L19 9a2.8 2.8 0 0 0-4-4L4 16z`}),(0,j.jsx)(`path`,{d:`m13.5 6.5 4 4`})]}),xE=e=>(0,j.jsxs)($T,{...e,children:[(0,j.jsx)(`rect`,{x:`3.5`,y:`4.5`,width:`17`,height:`15`,rx:`2.5`}),(0,j.jsx)(`path`,{d:`M9.5 4.5v15`})]}),SE=e=>(0,j.jsx)($T,{...e,children:(0,j.jsx)(`path`,{d:`m6.5 9.5 5.5 5.5 5.5-5.5`})}),CE=e=>(0,j.jsxs)($T,{...e,children:[(0,j.jsx)(`path`,{d:`M14 3.5H7.5a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2h9a2 2 0 0 0 2-2V8z`}),(0,j.jsx)(`path`,{d:`M14 3.5V8h4.5`})]}),wE=e=>(0,j.jsx)($T,{...e,children:(0,j.jsx)(`path`,{d:`M6.5 6.5l11 11M17.5 6.5l-11 11`})}),TE=e=>(0,j.jsxs)($T,{...e,children:[(0,j.jsx)(`rect`,{x:`3`,y:`6.5`,width:`18`,height:`11`,rx:`2`}),(0,j.jsx)(`path`,{d:`M7 10.5h.01M11 10.5h.01M15 10.5h.01M8 14h8`})]}),EE=e=>(0,j.jsxs)($T,{...e,children:[(0,j.jsx)(`path`,{d:`M6 16.5V11a6 6 0 1 1 12 0v5.5l1.5 1.5h-15z`}),(0,j.jsx)(`path`,{d:`M10 20.5a2 2 0 0 0 4 0`})]}),DE=(0,_.createContext)(()=>void 0);function OE(){return(0,_.useContext)(DE)}var kE=[{target:`finder`,label:`Finder`},{target:`vscode`,label:`VS Code`},{target:`cursor`,label:`Cursor`},{target:`terminal`,label:`Terminal`}];async function AE(e,t,n){try{await navigator.clipboard.writeText(e),t(`${n} copied.`)}catch{t(`This browser didn't allow copying. Select the text and copy it with your keyboard instead: ${e}`)}}async function jE(e,t,n){try{let r=await e.readRawTranscript(t.provider,t.providerSessionId);if(!r.available){n(r.reason);return}let i=URL.createObjectURL(new Blob([r.content],{type:`application/x-ndjson`})),a=document.createElement(`a`);a.href=i,a.download=r.fileName,a.click(),setTimeout(()=>URL.revokeObjectURL(i),1e4),n(`Downloaded ${r.fileName} (${ri(r.bytes)}).`)}catch(e){n(`Full Download failed: ${e instanceof Error?e.message:String(e)}`)}}function ME(e){let t=qT(),n=OE(),{entry:r}=e,i=e.variant===`dropdown`?{Item:aw,Separator:lw,Sub:ZC,SubTrigger:nw,SubContent:rw}:{Item:Ib,Separator:Bb,Sub:kb,SubTrigger:Nb,SubContent:Pb},a=(e,i)=>{t.setPreference(r.key,e).then(()=>n(i),e=>n(`That didn't save: ${e instanceof Error?e.message:String(e)}`))},o=GT(r);return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(i.Item,{onSelect:e.onRename,children:[(0,j.jsx)(bE,{size:14}),`Rename`]}),(0,j.jsxs)(i.Item,{onSelect:()=>a({pinned:!r.pinned},r.pinned?`Unpinned.`:`Pinned to the top.`),children:[(0,j.jsx)(_E,{size:14}),r.pinned?`Unpin`:`Pin to top`]}),(0,j.jsxs)(i.Item,{onSelect:()=>a({hidden:!r.hidden},r.hidden?`Back in the list.`:`Hidden from the list. Search still finds it.`),children:[(0,j.jsx)(vE,{size:14}),r.hidden?`Show in the list`:`Hide from the list`]}),r.providerSessionId||r.cwd?(0,j.jsx)(i.Separator,{}):null,r.providerSessionId?(0,j.jsxs)(i.Item,{onSelect:()=>void AE(r.providerSessionId,n,`Chat ID`),children:[(0,j.jsx)(yE,{size:14}),`Copy chat ID`]}):null,o?(0,j.jsxs)(i.Item,{onSelect:()=>void AE(o,n,`Resume command`),children:[(0,j.jsx)(yE,{size:14}),`Copy resume command`]}):null,r.providerSessionId?(0,j.jsxs)(i.Item,{onSelect:()=>void jE(t,r,n),children:[(0,j.jsx)(yE,{size:14}),`Full Download`]}):null,r.cwd?(0,j.jsxs)(i.Item,{onSelect:()=>void AE(r.cwd,n,`Folder path`),children:[(0,j.jsx)(yE,{size:14}),`Copy folder path`]}):null,r.cwd?(0,j.jsxs)(i.Sub,{children:[(0,j.jsxs)(i.SubTrigger,{className:`gap-2`,children:[(0,j.jsx)(nE,{size:14}),`Open folder in`]}),(0,j.jsx)(i.SubContent,{children:kE.map(({target:e,label:a})=>(0,j.jsx)(i.Item,{onSelect:()=>t.openFolder(r.cwd,e).catch(e=>n(e instanceof Error?e.message:String(e))),children:a},e))})]}):null]})}var NE=400;function PE(e,t){if(t){let n=t.replace(/\/+$/,``);for(let t of[n,`/private${n}`,n.replace(/^\/private(?=\/)/,``)])if(e.startsWith(`${t}/`))return e.slice(t.length+1)}return QT(e)}function FE({edit:e}){let t=[];if(e.diff)for(let n of e.diff.split(`
|
|
69
69
|
`))n.startsWith(`@@`)?t.push({kind:`hunk`,text:n}):n.startsWith(`+`)?t.push({kind:`add`,text:n}):n.startsWith(`-`)?t.push({kind:`del`,text:n}):n!==``&&t.push({kind:`ctx`,text:n});else{if(e.removed)for(let n of e.removed.split(`
|
|
70
70
|
`))t.push({kind:`del`,text:`-${n}`});if(e.added)for(let n of e.added.split(`
|
|
71
|
-
`))t.push({kind:`add`,text:`+${n}`})}if(t.length===0)return(0,j.jsx)(`p`,{className:`text-[12px] text-muted-foreground`,children:e.failed?`This change failed.`:`The agent didn't record the text of this change.`});let n=t.slice(0,ME);return(0,j.jsxs)(j.Fragment,{children:[e.failed?(0,j.jsx)(`p`,{className:`mb-1 text-[11.5px] text-destructive`,children:`This change failed and was not applied.`}):null,(0,j.jsx)(`pre`,{className:Z(`cs-diff`,e.failed&&`opacity-60`),children:n.map((e,t)=>(0,j.jsx)(`span`,{className:Z(`cs-diff__line`,e.kind!==`ctx`&&`cs-diff__line--${e.kind}`),children:e.text||` `},t))}),t.length>ME?(0,j.jsxs)(`p`,{className:`mt-1 text-[11.5px] text-muted-foreground`,children:[`Showing the first `,ME,` of `,t.length,` lines.`]}):null]})}function FE({file:e,cwd:t}){let[n,r]=(0,_.useState)(!1),i=DE(),a=PT(e),o=NE(e.path,t),s={created:`New`,edited:`Edited`,deleted:`Deleted`,moved:`Moved`}[e.kind];return(0,j.jsxs)(`li`,{className:`border-b border-border`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2 px-4 py-2`,children:[(0,j.jsxs)(`button`,{type:`button`,onClick:()=>r(e=>!e),"aria-expanded":n,className:`flex min-w-0 flex-1 items-center gap-2 text-left`,children:[(0,j.jsx)(xE,{size:13,className:Z(`shrink-0 transition-transform`,!n&&`-rotate-90`)}),(0,j.jsx)(SE,{size:14,className:`shrink-0 text-muted-foreground`}),(0,j.jsx)(`span`,{className:`min-w-0 truncate text-[12.5px] font-medium`,title:e.path,children:o})]}),(0,j.jsx)(`span`,{className:`shrink-0 text-[11px] text-muted-foreground`,children:s}),(0,j.jsxs)(`span`,{className:`shrink-0 font-mono text-[11px]`,children:[a.added?(0,j.jsxs)(`span`,{className:`cs-count-add`,children:[`+`,a.added]}):null,` `,a.removed?(0,j.jsxs)(`span`,{className:`cs-count-del`,children:[`−`,a.removed]}):null]}),(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button`,onClick:()=>void kE(e.path,i,`File path`),"aria-label":`Copy the path of ${o}`,title:`Copy path`,children:(0,j.jsx)(SE,{size:12})})]}),n?(0,j.jsx)(`div`,{className:`space-y-3 px-4 pb-3`,children:e.edits.map((e,t)=>(0,j.jsx)(PE,{edit:e},`${e.toolCallId}-${t}`))}):null]})}function IE(e){return(0,_.useMemo)(()=>NT(e),[e])}function LE(e){return(0,j.jsxs)(`aside`,{className:`cs-changes`,"aria-label":`Files changed in this chat`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between border-b border-border px-4 py-3`,children:[(0,j.jsxs)(`div`,{children:[(0,j.jsx)(`h2`,{className:`text-[13.5px] font-semibold`,children:`Files changed`}),(0,j.jsxs)(`p`,{className:`text-[11.5px] text-muted-foreground`,children:[e.files.length===0?`Nothing yet`:`${e.files.length} ${e.files.length===1?`file`:`files`}, from this chat's own record`,e.truncated?` · only the part of the chat shown here`:``]})]}),(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button`,onClick:e.onClose,"aria-label":`Close files changed`,children:(0,j.jsx)(CE,{size:14})})]}),e.files.length===0?(0,j.jsx)(`p`,{className:`px-4 py-6 text-center text-[12.5px] leading-5 text-muted-foreground`,children:`The agent hasn't written any files in this chat yet.`}):(0,j.jsx)(`ul`,{className:`min-h-0 flex-1 overflow-y-auto`,children:e.files.map(t=>(0,j.jsx)(FE,{file:t,cwd:e.cwd},t.path))})]})}function RE(e){let t=e?.defaultModel;return t?t.source===`settings`?`${t.id}, from your settings`:`${t.id}, the built-in default`:`${e?.label??`the agent`}'s own default`}function zE(e,t){let n=e.model??t?.defaultModel?.id??`Default model`,r=e.effort??t?.defaultEffort??null;return r?`${n} · ${r}`:n}function BE(e){let[t,n]=(0,_.useState)(!1),[r,i]=(0,_.useState)(``),a=e.status?.models??[],o=e.status?.efforts??[],s=e.value.model===null||a.some(t=>t.id===e.value.model),c=t=>e.onChange({...e.value,...t});return(0,j.jsxs)(BS,{open:t,onOpenChange:n,children:[(0,j.jsx)(VS,{asChild:!0,children:(0,j.jsxs)(`button`,{type:`button`,disabled:e.disabled,className:Z(e.appearance===`field`?`cs-model-field`:`cs-chip-button`),"aria-label":`Model and effort: ${zE(e.value,e.status)}. Change`,title:`Model and effort`,children:[(0,j.jsx)(`span`,{className:`truncate`,children:zE(e.value,e.status)}),(0,j.jsx)(xE,{size:12,className:`shrink-0`})]})}),(0,j.jsxs)(HS,{align:`start`,className:`w-[300px] p-0`,children:[(0,j.jsxs)(`div`,{className:`max-h-[320px] overflow-y-auto p-1`,role:`listbox`,"aria-label":`Model`,children:[(0,j.jsx)(`p`,{className:`px-2 pb-1 pt-1.5 text-[11px] font-medium uppercase tracking-[0.05em] text-muted-foreground`,children:`Model`}),(0,j.jsxs)(`button`,{type:`button`,role:`option`,"aria-selected":e.value.model===null,className:`cs-option`,onClick:()=>c({model:null}),children:[(0,j.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,j.jsx)(`span`,{className:`block text-[13px]`,children:`Default`}),(0,j.jsx)(`span`,{className:`block truncate text-[11.5px] text-muted-foreground`,children:RE(e.status)})]}),e.value.model===null?(0,j.jsx)(nE,{size:14}):null]}),a.map(t=>(0,j.jsxs)(`button`,{type:`button`,role:`option`,"aria-selected":e.value.model===t.id,className:`cs-option`,onClick:()=>c({model:t.id}),children:[(0,j.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-[13px]`,children:t.label}),e.value.model===t.id?(0,j.jsx)(nE,{size:14}):null]},t.id)),s?null:(0,j.jsxs)(`div`,{className:`cs-option`,"aria-selected":`true`,role:`option`,children:[(0,j.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-[13px]`,children:e.value.model}),(0,j.jsx)(nE,{size:14})]}),(0,j.jsx)(`div`,{className:`flex gap-1 px-1 pb-1 pt-1.5`,children:(0,j.jsx)(`input`,{value:r,onChange:e=>i(e.target.value),onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),e.stopPropagation(),r.trim()&&(c({model:r.trim()}),i(``)))},placeholder:`Another model name…`,"aria-label":`Another model name`,spellCheck:!1,className:`cs-option-input`})})]}),o.length>0?(0,j.jsxs)(`div`,{className:`border-t border-border p-2`,children:[(0,j.jsx)(`p`,{className:`px-1 pb-1.5 text-[11px] font-medium uppercase tracking-[0.05em] text-muted-foreground`,children:`Thinking effort`}),(0,j.jsx)(`div`,{className:`flex flex-wrap gap-1`,role:`radiogroup`,"aria-label":`Thinking effort`,children:[null,...o].map(t=>(0,j.jsx)(`button`,{type:`button`,role:`radio`,"aria-checked":e.value.effort===t,className:Z(`cs-seg`,e.value.effort===t&&`cs-seg--on`),onClick:()=>c({effort:t}),title:t===null?`Default${e.status?.defaultEffort?` (${e.status.defaultEffort}, from your settings)`:``}`:void 0,children:t===null?`Default`:t},t??`default`))})]}):null]})]})}var VE=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function HE(e){return typeof e==`string`&&VE.test(e)}var UE=[`subject`,`character`,`style`,`mask`,`edit_target`,`composition_control`],WE=[`first_frame`,`last_frame`,`asset`,`style`];[...UE,...WE];var GE={subject:{label:`Subject`,ask:`Subject reference`,explanation:`Keeps this exact product or object recognisable: shape, materials, labels.`},character:{label:`Character`,ask:`Character reference`,explanation:`Keeps this person or character looking the same.`},style:{label:`Style`,ask:`Style reference`,explanation:`Borrows only the look (colours, lighting, medium), never the content.`},mask:{label:`Mask`,ask:`Mask`,explanation:`Marks the only area of the edited image that is allowed to change.`},edit_target:{label:`Edit this`,ask:`Image to edit`,explanation:`The image being edited; everything not asked for stays the same.`},composition_control:{label:`Composition`,ask:`Composition reference`,explanation:`Follows its layout, pose and geometry, not its appearance.`},first_frame:{label:`First frame`,ask:`First frame`,explanation:`The video starts on exactly this image.`},last_frame:{label:`Last frame`,ask:`Last frame`,explanation:`The video ends on exactly this image (needs a first frame).`},asset:{label:`Asset`,ask:`Asset reference`,explanation:`Keeps this product, object or character recognisable throughout the clip.`},extend:{label:`Extend`,ask:`Video to extend`,explanation:`The new clip continues this video from its last frame.`},restyle:{label:`Restyle`,ask:`Reference video`,explanation:`Re-renders this video: same motion and timing, a new look.`},lip_sync:{label:`Lip sync`,ask:`Lip-sync audio`,explanation:`The speech the on-screen face mouths, word for word.`}};function KE(e){return typeof e==`string`&&e in GE}var qE=[`image`,`video`,`audio`,`document`,`youtube`];function JE(e){return typeof e.control?.key==`string`&&e.control.key.length>0}function YE(e){let t=[],n=[];for(let r of e)(JE(r)?n:t).push(r);return{content:t,settings:n}}function XE(e){let{content:t,settings:n}=YE(e);if(n.length===0)return e;let r=[...t,...n];return r.every((t,n)=>t===e[n])?e:r}function ZE(e){let t=e.customComponent?.type,n=e.customComponent?.imageRole;return(t===`image`||t===`video`||t===`audio`)&&KE(n)?n:null}function QE(e,t=de){let n=(e.label??``).trim();if(n!==``)return n;let r=ZE(e);return r?GE[r].ask:t(e.name)||e.name}function $E(e){if(e.helpText)return e.helpText;let t=ZE(e);return t?GE[t].explanation:void 0}function eD(e,t=de){return XE([...e??[]]).map(e=>{let n=e.customComponent?.type??`textarea`,r=e.customComponent?.options??void 0;return{name:e.name,label:QE(e,t),hint:$E(e),group:JE(e)?`settings`:`content`,required:!!e.required,component:n,options:r&&r.length>0?r:void 0,mediaKind:qE.includes(n)?n:null,role:ZE(e),controlKey:JE(e)?e.control?.key??null:null,variable:e}})}function tD(e){return e}function nD(e){return`mandate:${e}`}function rD(e){return e.startsWith(`mandate:`)}var iD=[{value:`updated-desc`,label:`Recent`},{value:`created-desc`,label:`Created`},{value:`name-asc`,label:`A → Z`},{value:`name-desc`,label:`Z → A`},{value:`category-asc`,label:`Category`}],aD=[`active`,`both`,`archived`],oD=[{value:`active`,label:`Hide archived`,chip:`Archive`},{value:`both`,label:`Show all`,chip:`All + archived`},{value:`archived`,label:`Archived only`,chip:`Archived only`}];function sD(e){let t=aD.indexOf(e);return t<0?aD[0]:aD[(t+1)%aD.length]}function cD(e){return e===`active`||e===`archived`||e===`both`}var lD={tab:`mine`,sortBy:`updated-desc`,searchTerm:``,includedCats:[],includedTags:[],favFilter:`all`,archFilter:`active`,accessFilter:`any`,favoritesFirst:!0,listPage:1,sharedPage:1,serverMatchedIds:[],isServerSearching:!1,deepSearch:!1},uD=class extends Error{name=`AgentCatalogConfigError`;code;remedy;constructor(e){super(`${e.message} — ${e.remedy}`),this.code=e.code,this.remedy=e.remedy}},dD={publicTab:`Public`,systemBadge:`system`,archivedBadge:`Archived`,searchPlaceholder:`Search agents...`,currentAgentHeading:`Current agent`,emptyDefault:`No agents found`,emptyShared:`No shared agents found`,emptySystem:`No system agents found`,emptySignedOut:`Sign in to see your agents`,loading:`Loading...`,triggerFallback:`Agents`,triggerResolving:`Naming the agent…`,triggerUnnameable:`An agent this list cannot name`,hoverHint:`Hover an agent to preview its details, or click to select.`};function fD(e){return e.ok===!1}function pD(){let e=!1;return t=>{e||(e=!0,console.error("[associations] no errorSink port bound — using the package default. Bind the `errorSink` port on createAssociationsStore({ errorSink }) to route these into your diagnostics surface; until then they only reach the console.")),console.error(`[associations] ${t.code}: ${t.message}`,t.context??{})}}var mD={access_delta_probe:{token:`access_delta_probe`,schema:`iam`,table:`access_delta_probe`,label:`Access Delta Probe`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},access_delta_run:{token:`access_delta_run`,schema:`iam`,table:`access_delta_run`,label:`Access Delta Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},access_request:{token:`access_request`,schema:`iam`,table:`access_requests`,label:`Access Request`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`System`,referencePickable:!1,titleColumn:null,contentRole:`utility`,referenceCategory:null},account_addon:{token:`account_addon`,schema:`billing`,table:`account_addon`,label:`Account Addon`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},acquisition_block:{token:`acquisition_block`,schema:`platform`,table:`acquisition_block`,label:`Acquisition Block`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},activity:{token:`activity`,schema:`platform`,table:`activity_log`,label:`Activity Log Entry`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},admin_audit_log:{token:`admin_audit_log`,schema:`admin`,table:`admin_audit_log`,label:`Admin audit log`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},admin_email_log:{token:`admin_email_log`,schema:`admin`,table:`admin_email_logs`,label:`Admin email log`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},admin_markdown_sample:{token:`admin_markdown_sample`,schema:`admin`,table:`admin_markdown_samples`,label:`Admin markdown sample`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},admin_user:{token:`admin_user`,schema:`admin`,table:`admins`,label:`Platform admin`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},admission_config:{token:`admission_config`,schema:`content_ir`,table:`admission_config`,label:`Admission Config`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},agent:{token:`agent`,schema:`agent`,table:`definition`,label:`Agent`,baseTier:1,isComponent:!1,isModule:!0,isListed:!0,scopeable:!0,category:`Agents`,referencePickable:!0,titleColumn:`name`,contentRole:`utility`,referenceCategory:null},agent_card:{token:`agent_card`,schema:`agent`,table:`card`,label:`Agent Card`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},agent_definition_version:{token:`agent_definition_version`,schema:`agent`,table:`definition_version`,label:`Agent Definition Version`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Agents`,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},agent_drift_alert:{token:`agent_drift_alert`,schema:`agent`,table:`drift_alert`,label:`Agent Drift Alert`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Agents`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},agent_exemplar:{token:`agent_exemplar`,schema:`agent`,table:`exemplar`,label:`Agent Test Case`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},agent_mandate_note:{token:`agent_mandate_note`,schema:`agent`,table:`mandate_note`,label:`Mandate Note`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},agent_prompt_remediation:{token:`agent_prompt_remediation`,schema:`agent`,table:`prompt_remediation`,label:`Agent Prompt Remediation`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},agent_run:{token:`agent_run`,schema:`chat`,table:`agent_run`,label:`Agent Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},agent_run_stage:{token:`agent_run_stage`,schema:`chat`,table:`agent_run_stage`,label:`Agent Run Stage`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},agent_schedule:{token:`agent_schedule`,schema:`scheduler`,table:`agent_schedule`,label:`Agent Schedule`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},agent_schedule_claim:{token:`agent_schedule_claim`,schema:`scheduler`,table:`agent_schedule_claim`,label:`Agent Schedule Claim`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},agent_shortcut:{token:`agent_shortcut`,schema:`agent`,table:`shortcut`,label:`Agent Shortcut`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Agents`,referencePickable:!0,titleColumn:`label`,contentRole:`utility`,referenceCategory:null},agent_surface_binding:{token:`agent_surface_binding`,schema:`platform`,table:`associations`,label:`Agent Surface Binding`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Agents`,referencePickable:!0,titleColumn:`label`,contentRole:null,referenceCategory:null},agent_template:{token:`agent_template`,schema:`agent`,table:`template`,label:`Agent Template`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Agents`,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},agent_term_list:{token:`agent_term_list`,schema:`agent`,table:`term_list`,label:`Term List`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Agents`,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},agent_usage:{token:`agent_usage`,schema:`agent`,table:`usage`,label:`Agent Usage`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Agents`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ai_api:{token:`ai_api`,schema:`ai`,table:`api`,label:`AI API`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},ai_calls:{token:`ai_calls`,schema:`runtime`,table:`_ai_calls`,label:`AI model calls`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ai_endpoint:{token:`ai_endpoint`,schema:`ai`,table:`endpoint`,label:`AI Endpoint`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`display_name`,contentRole:null,referenceCategory:null},ai_model:{token:`ai_model`,schema:`ai`,table:`model_definition`,label:`AI Model`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},ai_model_alias:{token:`ai_model_alias`,schema:`ai`,table:`model_alias`,label:`AI Model Alias`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ai_offering:{token:`ai_offering`,schema:`ai`,table:`offering`,label:`AI Offering`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ai_provider:{token:`ai_provider`,schema:`ai`,table:`provider`,label:`AI Provider`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},ai_setting:{token:`ai_setting`,schema:`ai`,table:`setting`,label:`AI Setting`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`key`,contentRole:null,referenceCategory:null},ai_setting_profile:{token:`ai_setting_profile`,schema:`ai`,table:`setting_profile`,label:`Settings Profile`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`AI catalog`,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},ai_translation_cell:{token:`ai_translation_cell`,schema:`ai`,table:`translation_cell`,label:`Translation Cell`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`AI catalog`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ai_usage_executions:{token:`ai_usage_executions`,schema:`runtime`,table:`_ai_usage_calls`,label:`AI usage by execution`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ai_usage_hourly:{token:`ai_usage_hourly`,schema:`runtime`,table:`_ai_usage_hourly`,label:`AI usage by hour`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ai_usage_hourly_watermark:{token:`ai_usage_hourly_watermark`,schema:`runtime`,table:`_ai_usage_hourly_watermark`,label:`AI usage counted through`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},analysis_result:{token:`analysis_result`,schema:`files`,table:`analysis_result`,label:`Analysis Result`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},anon_form:{token:`anon_form`,schema:`custom`,table:`anon_form`,label:`Public form`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},anon_function_birth_grandfather:{token:`anon_function_birth_grandfather`,schema:`platform`,table:`anon_function_birth_grandfather`,label:`Anon Function Birth Grandfather`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},anon_hit:{token:`anon_hit`,schema:`custom`,table:`anon_hit`,label:`Anonymous rate window`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},anon_inbound:{token:`anon_inbound`,schema:`custom`,table:`anon_inbound`,label:`Inbound address`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},anon_replay:{token:`anon_replay`,schema:`custom`,table:`anon_replay`,label:`Offline capture ledger`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},anon_submission:{token:`anon_submission`,schema:`custom`,table:`anon_submission`,label:`Quarantined submission`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},anon_token:{token:`anon_token`,schema:`custom`,table:`anon_token`,label:`Embed token`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},api_field_warning:{token:`api_field_warning`,schema:`ops`,table:`api_field_warnings`,label:`API field warning`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},api_request_log:{token:`api_request_log`,schema:`ops`,table:`api_request_log`,label:`API request log`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},app:{token:`app`,schema:`app`,table:`definition`,label:`App`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Apps`,referencePickable:!0,titleColumn:`name`,contentRole:`utility`,referenceCategory:null},app_config:{token:`app_config`,schema:`public`,table:`app_config`,label:`App config`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},app_config_history:{token:`app_config_history`,schema:`public`,table:`app_config_history`,label:`App Config History`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},app_definition_version:{token:`app_definition_version`,schema:`app`,table:`definition_version`,label:`App Definition Version`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Apps`,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},app_error:{token:`app_error`,schema:`app`,table:`error`,label:`App Error`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Apps`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},app_execution:{token:`app_execution`,schema:`app`,table:`execution`,label:`App Execution`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Apps`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},app_instance:{token:`app_instance`,schema:`public`,table:`app_instances`,label:`App Instance`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},app_log:{token:`app_log`,schema:`ops`,table:`app_log`,label:`App Log`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},app_log_muted_pattern:{token:`app_log_muted_pattern`,schema:`ops`,table:`app_log_muted_pattern`,label:`Muted log pattern`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},app_log_norm_exception:{token:`app_log_norm_exception`,schema:`ops`,table:`app_log_norm_exception`,label:`Log normalisation exception`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},app_rate_limit:{token:`app_rate_limit`,schema:`app`,table:`rate_limit`,label:`App Rate Limit`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Apps`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},app_setting:{token:`app_setting`,schema:`public`,table:`app_settings`,label:`App Setting`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},app_sync_status:{token:`app_sync_status`,schema:`public`,table:`app_sync_status`,label:`App Sync Status`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},approach:{token:`approach`,schema:`platform`,table:`approach`,label:`Approach`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},artifact:{token:`artifact`,schema:`chat`,table:`artifact`,label:`Artifact`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},assessment:{token:`assessment`,schema:`education`,table:`assessment`,label:`Assessment`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},assessment_item:{token:`assessment_item`,schema:`education`,table:`assessment_item`,label:`Assessment Item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},assessment_result:{token:`assessment_result`,schema:`education`,table:`assessment_result`,label:`Assessment Result`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},assignment_session:{token:`assignment_session`,schema:`assignment`,table:`session`,label:`Assignment session`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},assist:{token:`assist`,schema:`platform`,table:`assists`,label:`Assist`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:`platform`,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},assist_producer_policy:{token:`assist_producer_policy`,schema:`platform`,table:`assist_producer_policy`,label:`Assist producer policy`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},assist_producer_policy_history:{token:`assist_producer_policy_history`,schema:`platform`,table:`assist_producer_policy_history`,label:`Assist Producer Policy History`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},association_type:{token:`association_type`,schema:`platform`,table:`association_types`,label:`Association type`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},assurance_level:{token:`assurance_level`,schema:`platform`,table:`assurance_level`,label:`Assurance level`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},attempt:{token:`attempt`,schema:`assignment`,table:`attempt`,label:`Attempt`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},audit_broken_functions:{token:`audit_broken_functions`,schema:`audit`,table:`broken_functions`,label:`Broken functions`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},audit_canonical_findings:{token:`audit_canonical_findings`,schema:`audit`,table:`canonical_findings`,label:`Canonical findings`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},audit_exemption:{token:`audit_exemption`,schema:`meta`,table:`audit_exemption`,label:`Audit exemption`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},audit_function_deps:{token:`audit_function_deps`,schema:`audit`,table:`function_deps`,label:`Function dependencies`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},audit_function_runtime_probe:{token:`audit_function_runtime_probe`,schema:`audit`,table:`function_runtime_probe`,label:`Function runtime probe`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},audit_m2m_candidates:{token:`audit_m2m_candidates`,schema:`audit`,table:`m2m_candidates`,label:`M2M candidates`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},audit_refresh_log:{token:`audit_refresh_log`,schema:`audit`,table:`refresh_log`,label:`Audit refresh log`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},audit_stale_registry:{token:`audit_stale_registry`,schema:`audit`,table:`stale_registry`,label:`Stale registry`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},audit_unregistered_candidates:{token:`audit_unregistered_candidates`,schema:`audit`,table:`unregistered_candidates`,label:`Unregistered candidates`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},base_entity_template:{token:`base_entity_template`,schema:`platform`,table:`_base_entity`,label:`Base entity template`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},batch_cost_event:{token:`batch_cost_event`,schema:`batch`,table:`cost_event`,label:`Batch Cost Event`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},batch_provider_batch:{token:`batch_provider_batch`,schema:`batch`,table:`provider_batch`,label:`Provider Batch`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},batch_work_item:{token:`batch_work_item`,schema:`batch`,table:`work_item`,label:`Batch Work Item`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_capability:{token:`billing_capability`,schema:`billing`,table:`capability`,label:`Billing capability`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_capability_limit:{token:`billing_capability_limit`,schema:`billing`,table:`capability_limit`,label:`Billing capability limit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_connect_account:{token:`billing_connect_account`,schema:`billing`,table:`connect_account`,label:`Billing connect account`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_coupon:{token:`billing_coupon`,schema:`billing`,table:`coupon`,label:`Coupon`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_coupon_redemption:{token:`billing_coupon_redemption`,schema:`billing`,table:`coupon_redemption`,label:`Coupon redemption`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_customer:{token:`billing_customer`,schema:`billing`,table:`customer`,label:`Billing customer`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_free_period_grant:{token:`billing_free_period_grant`,schema:`billing`,table:`free_period_grant`,label:`Free period grant`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_plan:{token:`billing_plan`,schema:`billing`,table:`plan`,label:`Billing plan`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_plan_limit:{token:`billing_plan_limit`,schema:`billing`,table:`plan_limit`,label:`Billing plan limit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_price:{token:`billing_price`,schema:`billing`,table:`price`,label:`Billing price`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_product:{token:`billing_product`,schema:`billing`,table:`product`,label:`Billing product`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_spend_approval:{token:`billing_spend_approval`,schema:`billing`,table:`spend_approval`,label:`Spend Approval`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_spend_guardrail:{token:`billing_spend_guardrail`,schema:`billing`,table:`spend_guardrail`,label:`Spend Guardrail`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_stripe_event:{token:`billing_stripe_event`,schema:`billing`,table:`stripe_event`,label:`Stripe webhook event`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_subscription:{token:`billing_subscription`,schema:`billing`,table:`subscription`,label:`Billing subscription`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_usage_ledger:{token:`billing_usage_ledger`,schema:`billing`,table:`usage_ledger`,label:`Usage ledger`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_usage_reset:{token:`billing_usage_reset`,schema:`billing`,table:`usage_reset`,label:`Usage reset`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_user_plan:{token:`billing_user_plan`,schema:`billing`,table:`user_plan`,label:`User plan`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},board:{token:`board`,schema:`projects`,table:`boards`,label:`Board`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_account_binding:{token:`browser_account_binding`,schema:`browser`,table:`account_binding`,label:`Browser Account Binding`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_action_event:{token:`browser_action_event`,schema:`browser`,table:`action_event`,label:`Browser Action Event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_authenticator_window:{token:`browser_authenticator_window`,schema:`browser`,table:`authenticator_window`,label:`Browser Authenticator Window`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_capture:{token:`browser_capture`,schema:`browser`,table:`capture`,label:`Browser Capture`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_control_request:{token:`browser_control_request`,schema:`browser`,table:`control_request`,label:`Browser Control Request`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_handoff:{token:`browser_handoff`,schema:`browser`,table:`handoff`,label:`Browser Handoff`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_login_attempt:{token:`browser_login_attempt`,schema:`browser`,table:`login_attempt`,label:`Browser Login Attempt`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_login_recipe:{token:`browser_login_recipe`,schema:`browser`,table:`login_recipe`,label:`Browser Login Recipe`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_profile:{token:`browser_profile`,schema:`browser`,table:`profile`,label:`Cloud Browser Profile`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_profile_checkpoint:{token:`browser_profile_checkpoint`,schema:`browser`,table:`profile_checkpoint`,label:`Browser Profile Checkpoint`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_run:{token:`browser_run`,schema:`browser`,table:`run`,label:`Cloud Browser Run`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_site_observation:{token:`browser_site_observation`,schema:`browser`,table:`site_observation`,label:`Browser Site Observation`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_site_policy:{token:`browser_site_policy`,schema:`browser`,table:`site_policy`,label:`Browser Site Policy`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_stream_ticket:{token:`browser_stream_ticket`,schema:`browser`,table:`stream_ticket`,label:`Browser Stream Ticket`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},build_lock:{token:`build_lock`,schema:`campaign_watch`,table:`build_lock`,label:`Build Lock`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},calendar_event:{token:`calendar_event`,schema:`communication`,table:`calendar_event`,label:`Calendar event`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},campaign_watch_ramp_gate_run:{token:`campaign_watch_ramp_gate_run`,schema:`campaign_watch`,table:`ramp_gate_run`,label:`Ramp gate run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},campaign_watch_switch_outbox:{token:`campaign_watch_switch_outbox`,schema:`campaign_watch`,table:`switch_outbox`,label:`Switch outbox`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},campaign_watch_switch_window:{token:`campaign_watch_switch_window`,schema:`campaign_watch`,table:`switch_window`,label:`Switch window`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},canvas_comment:{token:`canvas_comment`,schema:`canvas`,table:`canvas_comments`,label:`Canvas Comment`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`display_name`,contentRole:null,referenceCategory:null},canvas_comment_like:{token:`canvas_comment_like`,schema:`canvas`,table:`canvas_comment_likes`,label:`Canvas Comment Like`,baseTier:3,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},canvas_item:{token:`canvas_item`,schema:`canvas`,table:`canvas_items`,label:`Canvas Item`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},canvas_item_state:{token:`canvas_item_state`,schema:`canvas`,table:`canvas_item_state`,label:`Canvas Item State`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},canvas_like:{token:`canvas_like`,schema:`canvas`,table:`canvas_likes`,label:`Canvas Like`,baseTier:3,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},canvas_score:{token:`canvas_score`,schema:`canvas`,table:`canvas_scores`,label:`Canvas Score`,baseTier:3,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`display_name`,contentRole:null,referenceCategory:null},canvas_view:{token:`canvas_view`,schema:`canvas`,table:`canvas_views`,label:`Canvas View`,baseTier:3,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},capture_window:{token:`capture_window`,schema:`history`,table:`capture_window`,label:`Capture Window`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},carrying_rule:{token:`carrying_rule`,schema:`custom`,table:`carrying_rule`,label:`Carrying Rule`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},catalog_entries_history:{token:`catalog_entries_history`,schema:`public`,table:`catalog_entries_history`,label:`Catalog Entries History`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},catalog_entry:{token:`catalog_entry`,schema:`public`,table:`catalog_entries`,label:`Catalog entry`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},category:{token:`category`,schema:`platform`,table:`categories`,label:`Category`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},change_type_default:{token:`change_type_default`,schema:`platform`,table:`change_type_default`,label:`Change type default`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},chat_user_usage_summary:{token:`chat_user_usage_summary`,schema:`chat`,table:`user_usage_summary`,label:`Chat usage summary`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},citations:{token:`citations`,schema:`legal`,table:`citations`,label:`Citations`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},class_purchase:{token:`class_purchase`,schema:`billing`,table:`class_purchase`,label:`Class Purchase`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},classifier_revision_ledger:{token:`classifier_revision_ledger`,schema:`seo`,table:`classifier_revision_ledger`,label:`Classifier Revision Ledger`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},client_callable_door:{token:`client_callable_door`,schema:`platform`,table:`client_callable_door`,label:`Client Callable Door`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},client_callable_door_retirement:{token:`client_callable_door_retirement`,schema:`platform`,table:`client_callable_door_retirement`,label:`Client Callable Door Retirement`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},client_excluded_column_unregistered:{token:`client_excluded_column_unregistered`,schema:`platform`,table:`client_excluded_column_unregistered`,label:`Client Excluded Column Unregistered`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cmp_entry:{token:`cmp_entry`,schema:`agent`,table:`cmp_comparison_entries`,label:`Comparison Entry`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cmp_feedback:{token:`cmp_feedback`,schema:`agent`,table:`cmp_response_feedback`,label:`Comparison Response Feedback`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},code_file:{token:`code_file`,schema:`code`,table:`code_files`,label:`Code File`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:`source`,referenceCategory:null},code_folder:{token:`code_folder`,schema:`code`,table:`code_file_folders`,label:`Code Folder`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:`container`,referenceCategory:null},code_repository:{token:`code_repository`,schema:`code`,table:`code_repositories`,label:`Code Repository`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:`container`,referenceCategory:null},coding_session:{token:`coding_session`,schema:`chat`,table:`coding_session`,label:`Coding Session`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},coding_session_entry:{token:`coding_session_entry`,schema:`chat`,table:`coding_session_entry`,label:`Coding Session Entry`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},comment:{token:`comment`,schema:`platform`,table:`comments`,label:`Comment`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_asset_allocation:{token:`commerce_asset_allocation`,schema:`commerce`,table:`asset_allocation`,label:`Asset Allocation`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_asset_grading:{token:`commerce_asset_grading`,schema:`commerce`,table:`asset_grading`,label:`Asset Grading`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_asset_identifier:{token:`commerce_asset_identifier`,schema:`commerce`,table:`asset_identifier`,label:`Asset Identifier`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_asset_lot_event:{token:`commerce_asset_lot_event`,schema:`commerce`,table:`asset_lot_event`,label:`Asset Lot Event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_asset_mandate_result:{token:`commerce_asset_mandate_result`,schema:`commerce`,table:`asset_mandate_result`,label:`Asset Mandate Result`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_asset_price_factor:{token:`commerce_asset_price_factor`,schema:`commerce`,table:`asset_price_factor`,label:`Asset Price Factor`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_asset_reshoot_request:{token:`commerce_asset_reshoot_request`,schema:`commerce`,table:`asset_reshoot_request`,label:`Asset Reshoot Request`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_asset_review:{token:`commerce_asset_review`,schema:`commerce`,table:`asset_review`,label:`Asset Review`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_asset_unknown:{token:`commerce_asset_unknown`,schema:`commerce`,table:`asset_unknown`,label:`Asset Unknown`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_certified_printer:{token:`commerce_certified_printer`,schema:`commerce`,table:`certified_printer`,label:`Certified Printer`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_cloud_sync_connection:{token:`commerce_cloud_sync_connection`,schema:`commerce`,table:`cloud_sync_connection`,label:`Cloud Sync Connection`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_business_policy:{token:`commerce_ebay_business_policy`,schema:`commerce`,table:`ebay_business_policy`,label:`eBay Business Policy`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_category:{token:`commerce_ebay_category`,schema:`commerce`,table:`ebay_category`,label:`eBay Category`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_category_aspect:{token:`commerce_ebay_category_aspect`,schema:`commerce`,table:`ebay_category_aspect`,label:`eBay Category Aspect`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_category_tree:{token:`commerce_ebay_category_tree`,schema:`commerce`,table:`ebay_category_tree`,label:`eBay Category Tree`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_custom_policy:{token:`commerce_ebay_custom_policy`,schema:`commerce`,table:`ebay_custom_policy`,label:`eBay Custom Policy`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_inventory_item:{token:`commerce_ebay_inventory_item`,schema:`commerce`,table:`ebay_inventory_item`,label:`eBay Inventory Item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_inventory_item_group:{token:`commerce_ebay_inventory_item_group`,schema:`commerce`,table:`ebay_inventory_item_group`,label:`eBay Inventory Item Group`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_inventory_item_group_member:{token:`commerce_ebay_inventory_item_group_member`,schema:`commerce`,table:`ebay_inventory_item_group_member`,label:`eBay Inventory Item Group Member`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_inventory_location:{token:`commerce_ebay_inventory_location`,schema:`commerce`,table:`ebay_inventory_location`,label:`eBay Inventory Location`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_listing:{token:`commerce_ebay_listing`,schema:`commerce`,table:`ebay_listing`,label:`eBay Listing`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_marketplace_policy:{token:`commerce_ebay_marketplace_policy`,schema:`commerce`,table:`ebay_marketplace_policy`,label:`eBay Marketplace Policy`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_media_asset:{token:`commerce_ebay_media_asset`,schema:`commerce`,table:`ebay_media_asset`,label:`eBay Media Asset`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_notification_destination:{token:`commerce_ebay_notification_destination`,schema:`commerce`,table:`ebay_notification_destination`,label:`eBay Notification Destination`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_notification_event:{token:`commerce_ebay_notification_event`,schema:`commerce`,table:`ebay_notification_event`,label:`eBay Notification Event`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_notification_subscription:{token:`commerce_ebay_notification_subscription`,schema:`commerce`,table:`ebay_notification_subscription`,label:`eBay Notification Subscription`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_notification_topic:{token:`commerce_ebay_notification_topic`,schema:`commerce`,table:`ebay_notification_topic`,label:`eBay Notification Topic`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_offer:{token:`commerce_ebay_offer`,schema:`commerce`,table:`ebay_offer`,label:`eBay Offer`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_order:{token:`commerce_ebay_order`,schema:`commerce`,table:`ebay_order`,label:`eBay Order`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_order_line_item:{token:`commerce_ebay_order_line_item`,schema:`commerce`,table:`ebay_order_line_item`,label:`eBay Order Line Item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_shipping_fulfillment:{token:`commerce_ebay_shipping_fulfillment`,schema:`commerce`,table:`ebay_shipping_fulfillment`,label:`eBay Shipping Fulfillment`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_store_category:{token:`commerce_ebay_store_category`,schema:`commerce`,table:`ebay_store_category`,label:`eBay Store Category`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_human_correction:{token:`commerce_human_correction`,schema:`commerce`,table:`human_correction`,label:`Human Correction`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_intake_artifact:{token:`commerce_intake_artifact`,schema:`commerce`,table:`intake_artifact`,label:`Intake Artifact`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_intake_asset:{token:`commerce_intake_asset`,schema:`commerce`,table:`intake_asset`,label:`Intake Asset`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_intake_batch:{token:`commerce_intake_batch`,schema:`commerce`,table:`intake_batch`,label:`Intake Batch`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_label_batch:{token:`commerce_label_batch`,schema:`commerce`,table:`label_batch`,label:`Label Batch`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_label_code:{token:`commerce_label_code`,schema:`commerce`,table:`label_code`,label:`Label Code`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_marketplace_account:{token:`commerce_marketplace_account`,schema:`commerce`,table:`marketplace_account`,label:`Marketplace Account`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_marketplace_account_deletion_audit:{token:`commerce_marketplace_account_deletion_audit`,schema:`commerce`,table:`marketplace_account_deletion_audit`,label:`Marketplace Account Deletion Audit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_marketplace_api_call:{token:`commerce_marketplace_api_call`,schema:`commerce`,table:`marketplace_api_call`,label:`Marketplace API Call`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_marketplace_rate_budget:{token:`commerce_marketplace_rate_budget`,schema:`commerce`,table:`marketplace_rate_budget`,label:`Marketplace Rate Budget`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_marketplace_site:{token:`commerce_marketplace_site`,schema:`commerce`,table:`marketplace_site`,label:`Marketplace Site`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_marketplace_sync_run:{token:`commerce_marketplace_sync_run`,schema:`commerce`,table:`marketplace_sync_run`,label:`Marketplace Sync Run`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_prediction_outcome:{token:`commerce_prediction_outcome`,schema:`commerce`,table:`prediction_outcome`,label:`Prediction Outcome`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_print_order:{token:`commerce_print_order`,schema:`commerce`,table:`print_order`,label:`Print Order`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_product:{token:`commerce_product`,schema:`commerce`,table:`product`,label:`Product`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_product_channel_ref:{token:`commerce_product_channel_ref`,schema:`commerce`,table:`product_channel_ref`,label:`Product Channel Reference`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_product_media:{token:`commerce_product_media`,schema:`commerce`,table:`product_media`,label:`Product Media`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_product_variant:{token:`commerce_product_variant`,schema:`commerce`,table:`product_variant`,label:`Product Variant`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_recall_audit:{token:`commerce_recall_audit`,schema:`commerce`,table:`recall_audit`,label:`Recall Audit`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},communication_calendar_selected_snapshot_state:{token:`communication_calendar_selected_snapshot_state`,schema:`communication`,table:`calendar_selected_snapshot_state`,label:`Calendar snapshot state`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},communication_channel_readiness:{token:`communication_channel_readiness`,schema:`communication`,table:`channel_readiness`,label:`Channel readiness`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},comparison_set:{token:`comparison_set`,schema:`agent`,table:`cmp_comparison_sets`,label:`Comparison Set`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},contact_medium:{token:`contact_medium`,schema:`crm`,table:`contact_medium`,label:`Contact Medium`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`display_value`,contentRole:`utility`,referenceCategory:null},contact_submission:{token:`contact_submission`,schema:`communication`,table:`contact_submissions`,label:`Contact Submission`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},content_certification:{token:`content_certification`,schema:`education`,table:`content_certification`,label:`Content certification`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},content_ir_kind:{token:`content_ir_kind`,schema:`content_ir`,table:`kind_definition`,label:`Content-IR Kind`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`label`,contentRole:null,referenceCategory:null},content_ir_kind_component:{token:`content_ir_kind_component`,schema:`content_ir`,table:`kind_component`,label:`Kind Component`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},content_ir_kind_component_incident:{token:`content_ir_kind_component_incident`,schema:`content_ir`,table:`kind_component_incident`,label:`Kind Component Incident`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},content_ir_kind_conformance:{token:`content_ir_kind_conformance`,schema:`content_ir`,table:`kind_conformance`,label:`Shape Conformance`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},content_ir_kind_edge:{token:`content_ir_kind_edge`,schema:`content_ir`,table:`kind_edge`,label:`Content-IR Kind Edge`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},content_ir_kind_example:{token:`content_ir_kind_example`,schema:`content_ir`,table:`kind_example`,label:`Kind Example`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`label`,contentRole:null,referenceCategory:null},content_ir_kind_instance:{token:`content_ir_kind_instance`,schema:`content_ir`,table:`kind_instance`,label:`Saved Result`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},content_ir_kind_surface:{token:`content_ir_kind_surface`,schema:`content_ir`,table:`kind_surface`,label:`Kind Surface`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},content_lane:{token:`content_lane`,schema:`iam`,table:`content_lane`,label:`Content Lane`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},context_access_log:{token:`context_access_log`,schema:`context`,table:`context_access_log`,label:`Context access log`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},context_item:{token:`context_item`,schema:`context`,table:`context_items`,label:`Context Item`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`display_name`,contentRole:null,referenceCategory:null},context_item_suggestion:{token:`context_item_suggestion`,schema:`rag`,table:`context_item_suggestions`,label:`Context Item Suggestion`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},context_item_value:{token:`context_item_value`,schema:`context`,table:`context_item_values`,label:`Record Value`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},context_value_refs:{token:`context_value_refs`,schema:`context`,table:`context_value_refs`,label:`Context Value Refs`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},conversation:{token:`conversation`,schema:`chat`,table:`conversation`,label:`Conversation`,baseTier:1,isComponent:!1,isModule:!0,isListed:!1,scopeable:!0,category:`Outputs`,referencePickable:!0,titleColumn:`title`,contentRole:`destination`,referenceCategory:null},conversation_value:{token:`conversation_value`,schema:`chat`,table:`conversation_value`,label:`Conversation Value`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:null,referencePickable:!1,titleColumn:`key`,contentRole:null,referenceCategory:null},courts:{token:`courts`,schema:`legal`,table:`courts`,label:`Courts`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},credential_attachment:{token:`credential_attachment`,schema:`users`,table:`credential_attachments`,label:`Credential attachment`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},credential_item:{token:`credential_item`,schema:`users`,table:`credential_items`,label:`Credential item`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`display_name`,contentRole:null,referenceCategory:null},credential_mutation_receipt:{token:`credential_mutation_receipt`,schema:`users`,table:`credential_mutation_receipts`,label:`Credential Mutation Receipt`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},crm_address:{token:`crm_address`,schema:`crm`,table:`address`,label:`Address`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`label`,contentRole:null,referenceCategory:null},crm_affiliation:{token:`crm_affiliation`,schema:`crm`,table:`affiliation`,label:`Affiliation`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},crm_blocklist_entry:{token:`crm_blocklist_entry`,schema:`crm`,table:`blocklist_entry`,label:`Blocklist Entry`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},crm_contact_candidate:{token:`crm_contact_candidate`,schema:`crm`,table:`contact_candidate`,label:`Contact Candidate`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},crm_deal:{token:`crm_deal`,schema:`crm`,table:`deal`,label:`Deal`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:`source`,referenceCategory:null},crm_deal_stage_event:{token:`crm_deal_stage_event`,schema:`crm`,table:`deal_stage_event`,label:`Deal Stage Event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},crm_enrichment_call:{token:`crm_enrichment_call`,schema:`crm`,table:`enrichment_call`,label:`Enrichment Call`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},crm_interaction:{token:`crm_interaction`,schema:`crm`,table:`interaction`,label:`Interaction`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`subject`,contentRole:null,referenceCategory:null},crm_merge_candidate:{token:`crm_merge_candidate`,schema:`crm`,table:`merge_candidate`,label:`Merge Candidate`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},crm_outreach_list:{token:`crm_outreach_list`,schema:`crm`,table:`outreach_list`,label:`Outreach List`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:`container`,referenceCategory:null},crm_outreach_list_member:{token:`crm_outreach_list_member`,schema:`crm`,table:`outreach_list_member`,label:`Outreach List Member`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},crm_party_merge:{token:`crm_party_merge`,schema:`crm`,table:`party_merge`,label:`Party Merge`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},crm_party_research:{token:`crm_party_research`,schema:`crm`,table:`party_research`,label:`Private contact research`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`CRM`,referencePickable:!1,titleColumn:`label`,contentRole:`utility`,referenceCategory:null},crm_registry_ingest_run:{token:`crm_registry_ingest_run`,schema:`crm`,table:`registry_ingest_run`,label:`Registry Ingest Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},crm_registry_source:{token:`crm_registry_source`,schema:`crm`,table:`registry_source`,label:`Registry Source`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},crm_sending_claim:{token:`crm_sending_claim`,schema:`crm`,table:`sending_claim`,label:`Sending claim`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},crm_sending_event:{token:`crm_sending_event`,schema:`crm`,table:`sending_event`,label:`Sending Event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`subject`,contentRole:null,referenceCategory:null},crm_sending_identity:{token:`crm_sending_identity`,schema:`crm`,table:`sending_identity`,label:`Sending Identity`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},crm_sending_identity_check:{token:`crm_sending_identity_check`,schema:`crm`,table:`sending_identity_check`,label:`Sending Check`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`check_kind`,contentRole:null,referenceCategory:null},crm_sending_policy:{token:`crm_sending_policy`,schema:`crm`,table:`sending_policy`,label:`Sending Policy`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},custom_agent_table_trust:{token:`custom_agent_table_trust`,schema:`custom`,table:`agent_table_trust`,label:`Agent table trust`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},custom_agg_digest_checked:{token:`custom_agg_digest_checked`,schema:`custom`,table:`agg_digest_checked`,label:`Aggregate digest checked`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},custom_entity_definition:{token:`custom_entity_definition`,schema:`platform`,table:`custom_entity_definition`,label:`Custom Object`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},custom_field_definition:{token:`custom_field_definition`,schema:`platform`,table:`custom_field_definition`,label:`Custom Field`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},custom_field_target:{token:`custom_field_target`,schema:`platform`,table:`custom_field_target`,label:`Custom Field Target`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},custom_io_outbox_consumer:{token:`custom_io_outbox_consumer`,schema:`custom`,table:`io_outbox_consumer`,label:`Outbox consumer`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},custom_io_outbox_consumption:{token:`custom_io_outbox_consumption`,schema:`custom`,table:`io_outbox_consumption`,label:`Outbox consumption`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},custom_record:{token:`custom_record`,schema:`platform`,table:`custom_record`,label:`Custom Record`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},custom_share_tails_mine_repair:{token:`custom_share_tails_mine_repair`,schema:`custom`,table:`_share_tails_mine_repair`,label:`Share tails repair`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},custom_template:{token:`custom_template`,schema:`custom`,table:`template`,label:`Template`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},custom_template_install:{token:`custom_template_install`,schema:`custom`,table:`template_install`,label:`Template install`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cx_agent_memory:{token:`cx_agent_memory`,schema:`chat`,table:`agent_memory`,label:`Agent Memory`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!0,titleColumn:`key`,contentRole:null,referenceCategory:null},cx_agent_plan:{token:`cx_agent_plan`,schema:`chat`,table:`agent_plan`,label:`Agent Plan`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},cx_agent_task:{token:`cx_agent_task`,schema:`chat`,table:`agent_task`,label:`Agent Task`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},cx_code_edit:{token:`cx_code_edit`,schema:`chat`,table:`code_edit`,label:`Code Edit`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cx_code_message_file:{token:`cx_code_message_file`,schema:`chat`,table:`code_message_file`,label:`Code Message File`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cx_media:{token:`cx_media`,schema:`chat`,table:`media`,label:`Media`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cx_observational_memory:{token:`cx_observational_memory`,schema:`chat`,table:`observational_memory`,label:`Observational Memory`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cx_observational_memory_event:{token:`cx_observational_memory_event`,schema:`chat`,table:`observational_memory_event`,label:`Observational Memory Event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cx_pending_injection:{token:`cx_pending_injection`,schema:`chat`,table:`pending_injection`,label:`Pending Injection`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cx_request:{token:`cx_request`,schema:`chat`,table:`request`,label:`Conversation Request`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cx_request_snapshot:{token:`cx_request_snapshot`,schema:`chat`,table:`request_snapshot`,label:`Request Snapshot`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cx_tool_trace:{token:`cx_tool_trace`,schema:`chat`,table:`tool_trace`,label:`Tool Trace`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cx_user_request:{token:`cx_user_request`,schema:`chat`,table:`user_request`,label:`User Request`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cx_user_todo:{token:`cx_user_todo`,schema:`chat`,table:`user_todo`,label:`User Todo`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},data_rights_event:{token:`data_rights_event`,schema:`education`,table:`data_rights_event`,label:`Data rights event`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},data_store:{token:`data_store`,schema:`rag`,table:`data_stores`,label:`Data Store`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:`source`,referenceCategory:null},data_store_members:{token:`data_store_members`,schema:`rag`,table:`data_store_members`,label:`Data Store Members`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ddl_guard_log:{token:`ddl_guard_log`,schema:`platform`,table:`ddl_guard_log`,label:`DDL guard log`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},deck_suggestion:{token:`deck_suggestion`,schema:`education`,table:`deck_suggestion`,label:`Deck Suggestion`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},definer_class_exemption:{token:`definer_class_exemption`,schema:`iam`,table:`definer_class_exemption`,label:`Definer Class Exemption`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},definer_client_grant_grandfather:{token:`definer_client_grant_grandfather`,schema:`platform`,table:`definer_client_grant_grandfather`,label:`Definer Client Grant Grandfather`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},definer_grant_baseline:{token:`definer_grant_baseline`,schema:`hr`,table:`definer_grant_baseline`,label:`Definer Grant Baseline`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},deprecated_relation:{token:`deprecated_relation`,schema:`platform`,table:`deprecated_relations`,label:`Deprecated relation`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},derive_run:{token:`derive_run`,schema:`docproc`,table:`derive_runs`,label:`Derive Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},dev_login_audit:{token:`dev_login_audit`,schema:`admin`,table:`dev_login_audit`,label:`Dev login audit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},dict_entry:{token:`dict_entry`,schema:`dictionary`,table:`dict_entries`,label:`Dictionary entry`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},dict_provider_publication:{token:`dict_provider_publication`,schema:`dictionary`,table:`dict_provider_publication`,label:`Dict Provider Publication`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},dict_setting:{token:`dict_setting`,schema:`dictionary`,table:`dict_settings`,label:`Dict Setting`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},dm_conversation:{token:`dm_conversation`,schema:`communication`,table:`dm_conversations`,label:`Direct Conversation`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},dm_message:{token:`dm_message`,schema:`communication`,table:`dm_messages`,label:`Direct Message`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},dm_participant:{token:`dm_participant`,schema:`communication`,table:`dm_conversation_participants`,label:`DM Conversation Participant`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},doc_render:{token:`doc_render`,schema:`custom`,table:`doc_render`,label:`Rendered Document`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},doc_signature:{token:`doc_signature`,schema:`custom`,table:`doc_signature`,label:`Document Signature`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},dockets:{token:`dockets`,schema:`legal`,table:`dockets`,label:`Dockets`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},document:{token:`document`,schema:`content`,table:`document`,label:`Markdown document`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:`Documents`,referencePickable:!1,titleColumn:`title`,contentRole:`hybrid`,referenceCategory:null},document_version:{token:`document_version`,schema:`content`,table:`document_version`,label:`Document Version`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Documents`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},domain_classification:{token:`domain_classification`,schema:`platform`,table:`domain_classification`,label:`Domain Classification`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},edge_payload_kind:{token:`edge_payload_kind`,schema:`platform`,table:`edge_payload_kind`,label:`Edge payload kind`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},egress_device:{token:`egress_device`,schema:`platform`,table:`egress_device`,label:`Home connection computer`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},egress_pairing:{token:`egress_pairing`,schema:`platform`,table:`egress_pairing`,label:`Home connection pairing`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},egress_ticket:{token:`egress_ticket`,schema:`platform`,table:`egress_ticket`,label:`Home connection ticket`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},emails:{token:`emails`,schema:`communication`,table:`emails`,label:`Emails`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},embedding_cache:{token:`embedding_cache`,schema:`rag`,table:`embedding_cache`,label:`Embedding Cache`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},embeddings_google_gemini_2_1536:{token:`embeddings_google_gemini_2_1536`,schema:`rag`,table:`embeddings_google_gemini_2_1536`,label:`Embeddings Google Gemini 2 1536`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},embeddings_oai_3_small_1536:{token:`embeddings_oai_3_small_1536`,schema:`rag`,table:`embeddings_oai_3_small_1536`,label:`Embeddings Oai 3 Small 1536`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},embeddings_voyage_4_large_1024:{token:`embeddings_voyage_4_large_1024`,schema:`rag`,table:`embeddings_voyage_4_large_1024`,label:`Embeddings Voyage 4 Large 1024`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},embeddings_voyage_code_3_1024:{token:`embeddings_voyage_code_3_1024`,schema:`rag`,table:`embeddings_voyage_code_3_1024`,label:`Embeddings Voyage Code 3 1024`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},endpoint_family_sweep_state:{token:`endpoint_family_sweep_state`,schema:`web`,table:`endpoint_family_sweep_state`,label:`Endpoint Family Sweep State`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},engine_owner_task:{token:`engine_owner_task`,schema:`seo`,table:`engine_owner_task`,label:`Engine Owner Task`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},entity_grant:{token:`entity_grant`,schema:`platform`,table:`entity_grants`,label:`Entity grant`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},entity_protected_value:{token:`entity_protected_value`,schema:`custom`,table:`entity_protected_value`,label:`Protected field value`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},entity_protected_value_version:{token:`entity_protected_value_version`,schema:`custom`,table:`entity_protected_value_version`,label:`Protected field value version`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},entity_relationship:{token:`entity_relationship`,schema:`platform`,table:`entity_relationships`,label:`Entity relationship`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},entity_type:{token:`entity_type`,schema:`platform`,table:`entity_types`,label:`Entity type`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},esign_campaign:{token:`esign_campaign`,schema:`esign`,table:`campaign`,label:`Signature campaign`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},esign_campaign_member:{token:`esign_campaign_member`,schema:`esign`,table:`campaign_member`,label:`Campaign member`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},esign_consent_disclosure:{token:`esign_consent_disclosure`,schema:`esign`,table:`consent_disclosure`,label:`E-sign consent disclosure`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},esign_envelope:{token:`esign_envelope`,schema:`esign`,table:`envelope`,label:`Signature envelope`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},esign_envelope_certificate:{token:`esign_envelope_certificate`,schema:`esign`,table:`envelope_certificate`,label:`Completion certificate`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},esign_envelope_document:{token:`esign_envelope_document`,schema:`esign`,table:`envelope_document`,label:`Envelope document`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},esign_envelope_event:{token:`esign_envelope_event`,schema:`esign`,table:`envelope_event`,label:`Envelope event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},esign_envelope_external_ref:{token:`esign_envelope_external_ref`,schema:`esign`,table:`envelope_external_ref`,label:`Envelope external reference`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},esign_envelope_signer:{token:`esign_envelope_signer`,schema:`esign`,table:`envelope_signer`,label:`Envelope signer`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},esign_provider:{token:`esign_provider`,schema:`esign`,table:`provider`,label:`E-sign provider`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},esign_provider_binding:{token:`esign_provider_binding`,schema:`esign`,table:`provider_binding`,label:`E-sign provider binding`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},esign_signing_key:{token:`esign_signing_key`,schema:`esign`,table:`signing_key`,label:`E-sign certificate signing key`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},execution_event_cursor:{token:`execution_event_cursor`,schema:`runtime`,table:`execution_event_cursor`,label:`Execution event cursor`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},extension_auth_code:{token:`extension_auth_code`,schema:`extend`,table:`extension_auth_codes`,label:`Extension auth code`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},external_link:{token:`external_link`,schema:`custom`,table:`external_link`,label:`External Link`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},external_source:{token:`external_source`,schema:`custom`,table:`external_source`,label:`External Source`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},extract_sweep_state:{token:`extract_sweep_state`,schema:`workflow`,table:`extract_sweep_state`,label:`Extract sweep state`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},fc_card:{token:`fc_card`,schema:`education`,table:`fc_card`,label:`Flashcard`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`front`,contentRole:null,referenceCategory:null},fc_detail:{token:`fc_detail`,schema:`education`,table:`fc_detail`,label:`Flashcard Detail`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},fc_set:{token:`fc_set`,schema:`education`,table:`fc_set`,label:`Flashcard Deck`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},feature_doc:{token:`feature_doc`,schema:`admin`,table:`feature_docs`,label:`Feature Doc`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`documentation`,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},feature_knob:{token:`feature_knob`,schema:`platform`,table:`feature_knob`,label:`Feature Knob`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},feedback_comments:{token:`feedback_comments`,schema:`users`,table:`feedback_comments`,label:`Feedback Comments`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},feedback_user_messages:{token:`feedback_user_messages`,schema:`users`,table:`feedback_user_messages`,label:`Feedback User Messages`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},file:{token:`file`,schema:`files`,table:`files`,label:`File`,baseTier:1,isComponent:!1,isModule:!0,isListed:!1,scopeable:!0,category:`Sources`,referencePickable:!0,titleColumn:`file_name`,contentRole:`source`,referenceCategory:null},file_analysis:{token:`file_analysis`,schema:`files`,table:`analysis`,label:`File Analysis`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},file_entities:{token:`file_entities`,schema:`files`,table:`entities`,label:`Extracted Term`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`label`,contentRole:null,referenceCategory:null},file_overrides:{token:`file_overrides`,schema:`files`,table:`overrides`,label:`File Override`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},file_page_annotations:{token:`file_page_annotations`,schema:`files`,table:`page_annotations`,label:`Page Annotation`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`label`,contentRole:null,referenceCategory:null},file_pages:{token:`file_pages`,schema:`files`,table:`pages`,label:`File Page`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},file_rag_job:{token:`file_rag_job`,schema:`files`,table:`file_rag_jobs`,label:`File RAG job`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},file_version:{token:`file_version`,schema:`files`,table:`file_versions`,label:`File Version`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Sources`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},files_account_tier:{token:`files_account_tier`,schema:`files`,table:`account_tiers`,label:`File account tier`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},files_machine_written_prefix:{token:`files_machine_written_prefix`,schema:`files`,table:`machine_written_prefixes`,label:`Machine-Written Prefix`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},files_sync_mapping:{token:`files_sync_mapping`,schema:`files`,table:`sync_mappings`,label:`Sync Mapping`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},files_user_account:{token:`files_user_account`,schema:`files`,table:`user_account`,label:`File account`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},flexible_data:{token:`flexible_data`,schema:`platform`,table:`flexible_data`,label:`Flexible Data`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`label`,contentRole:null,referenceCategory:null},folder:{token:`folder`,schema:`files`,table:`folders`,label:`Folder`,baseTier:1,isComponent:!1,isModule:!0,isListed:!1,scopeable:!0,category:`Sources`,referencePickable:!0,titleColumn:`folder_name`,contentRole:`source`,referenceCategory:null},function_contract:{token:`function_contract`,schema:`hr`,table:`function_contract`,label:`Function Contract`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},game_badge:{token:`game_badge`,schema:`education`,table:`game_badge`,label:`Game Badge`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},game_result:{token:`game_result`,schema:`education`,table:`game_result`,label:`Game Result`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`display_name`,contentRole:null,referenceCategory:null},game_room:{token:`game_room`,schema:`education`,table:`game_room`,label:`Game Room`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},global_execution:{token:`global_execution`,schema:`runtime`,table:`global_execution`,label:`Runtime Execution`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},global_execution_checkpoint:{token:`global_execution_checkpoint`,schema:`runtime`,table:`global_execution_checkpoint`,label:`Runtime Checkpoint`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},global_execution_control:{token:`global_execution_control`,schema:`runtime`,table:`global_execution_control`,label:`Global execution control`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},global_execution_event:{token:`global_execution_event`,schema:`runtime`,table:`global_execution_event`,label:`Runtime Event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},global_meter_entry:{token:`global_meter_entry`,schema:`runtime`,table:`global_meter_entry`,label:`Runtime Meter Entry`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`label`,contentRole:null,referenceCategory:null},global_origin:{token:`global_origin`,schema:`runtime`,table:`global_origin`,label:`Runtime Origin`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},global_request:{token:`global_request`,schema:`runtime`,table:`global_request`,label:`Runtime Request`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},google_document:{token:`google_document`,schema:`workbench`,table:`google_document`,label:`Google document`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},growth_loop_event:{token:`growth_loop_event`,schema:`growth`,table:`loop_event`,label:`Growth Loop Event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},growth_loop_run:{token:`growth_loop_run`,schema:`growth`,table:`loop_run`,label:`Growth Loop Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:`label`,contentRole:null,referenceCategory:null},growth_loop_stage_run:{token:`growth_loop_stage_run`,schema:`growth`,table:`loop_stage_run`,label:`Growth Loop Stage Run`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},guardian_link:{token:`guardian_link`,schema:`education`,table:`guardian_link`,label:`Guardian link`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},guest_conversion_audit:{token:`guest_conversion_audit`,schema:`users`,table:`guest_conversion_audit`,label:`Guest conversion audit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},guest_execution_log:{token:`guest_execution_log`,schema:`users`,table:`guest_execution_log`,label:`Guest Execution Log`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},guest_executions:{token:`guest_executions`,schema:`users`,table:`guest_executions`,label:`Guest Executions`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},guided_checklist_run:{token:`guided_checklist_run`,schema:`platform`,table:`guided_checklist_run`,label:`Guided Checklist Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},heatmap_save:{token:`heatmap_save`,schema:`workbench`,table:`heatmap_saves`,label:`Heatmap Save`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},hindsight_enrollment:{token:`hindsight_enrollment`,schema:`hindsight`,table:`enrollment`,label:`Hindsight Enrollment`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`display_name`,contentRole:null,referenceCategory:null},hindsight_finding:{token:`hindsight_finding`,schema:`hindsight`,table:`finding`,label:`Hindsight Finding`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hindsight_regression_case:{token:`hindsight_regression_case`,schema:`hindsight`,table:`regression_case`,label:`Regression Case`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hindsight_replay:{token:`hindsight_replay`,schema:`hindsight`,table:`replay`,label:`Hindsight Replay`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hindsight_replay_step:{token:`hindsight_replay_step`,schema:`hindsight`,table:`replay_step`,label:`Wire Replay Step`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hindsight_review:{token:`hindsight_review`,schema:`hindsight`,table:`review`,label:`Hindsight Review`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_access_audit:{token:`hr_access_audit`,schema:`hr`,table:`access_audit`,label:`Access audit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_access_role:{token:`hr_access_role`,schema:`hr`,table:`access_role`,label:`HR access role`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`label`,contentRole:null,referenceCategory:null},hr_accommodation_request:{token:`hr_accommodation_request`,schema:`hr`,table:`accommodation_request`,label:`Accommodation request`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_ai_evidence:{token:`hr_ai_evidence`,schema:`hr`,table:`ai_evidence`,label:`AI evidence`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_alert_routing_rule:{token:`hr_alert_routing_rule`,schema:`hr`,table:`alert_routing_rule`,label:`Alert routing rule`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_application:{token:`hr_application`,schema:`hr`,table:`application`,label:`Application`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_approval_authority:{token:`hr_approval_authority`,schema:`hr`,table:`approval_authority`,label:`Approval authority`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_approval_delegation:{token:`hr_approval_delegation`,schema:`hr`,table:`approval_delegation`,label:`Approval delegation`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_asset:{token:`hr_asset`,schema:`hr`,table:`asset`,label:`Asset`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_asset_assignment:{token:`hr_asset_assignment`,schema:`hr`,table:`asset_assignment`,label:`Asset assignment`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_attendance_exception:{token:`hr_attendance_exception`,schema:`hr`,table:`attendance_exception`,label:`Attendance exception`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_auto_close_rule:{token:`hr_auto_close_rule`,schema:`hr`,table:`auto_close_rule`,label:`Auto-close rule`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_availability:{token:`hr_availability`,schema:`hr`,table:`availability`,label:`Availability`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_background_check:{token:`hr_background_check`,schema:`hr`,table:`background_check`,label:`Background check`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_benefits_event:{token:`hr_benefits_event`,schema:`hr`,table:`benefits_event`,label:`Benefits event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_calculation_snapshot:{token:`hr_calculation_snapshot`,schema:`hr`,table:`calculation_snapshot`,label:`Calculation snapshot`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_candidate:{token:`hr_candidate`,schema:`hr`,table:`candidate`,label:`Candidate`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`preferred_name`,contentRole:null,referenceCategory:null},hr_candidate_conversion:{token:`hr_candidate_conversion`,schema:`hr`,table:`candidate_conversion`,label:`Candidate conversion`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_candidate_message:{token:`hr_candidate_message`,schema:`hr`,table:`candidate_message`,label:`Candidate message`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_careers_portal:{token:`hr_careers_portal`,schema:`hr`,table:`careers_portal`,label:`Careers portal`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`display_name`,contentRole:null,referenceCategory:null},hr_checklist_item:{token:`hr_checklist_item`,schema:`hr`,table:`checklist_item`,label:`Checklist item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_checklist_run:{token:`hr_checklist_run`,schema:`hr`,table:`checklist_run`,label:`Checklist run`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_checklist_template:{token:`hr_checklist_template`,schema:`hr`,table:`checklist_template`,label:`Checklist template`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_checklist_template_item:{token:`hr_checklist_template_item`,schema:`hr`,table:`checklist_template_item`,label:`Checklist template item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_compensation:{token:`hr_compensation`,schema:`hr`,table:`compensation`,label:`Compensation record`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_corrective_action:{token:`hr_corrective_action`,schema:`hr`,table:`corrective_action`,label:`Corrective action`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_course:{token:`hr_course`,schema:`hr`,table:`course`,label:`Course`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},hr_course_version:{token:`hr_course_version`,schema:`hr`,table:`course_version`,label:`Course version`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_credential:{token:`hr_credential`,schema:`hr`,table:`credential`,label:`Credential`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_crew:{token:`hr_crew`,schema:`hr`,table:`crew`,label:`Crew`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_deduction_code:{token:`hr_deduction_code`,schema:`hr`,table:`deduction_code`,label:`Deduction code`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_department:{token:`hr_department`,schema:`hr`,table:`department`,label:`Department`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_derived_grant:{token:`hr_derived_grant`,schema:`hr`,table:`derived_grant`,label:`Derived grant`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_disposition_event:{token:`hr_disposition_event`,schema:`hr`,table:`disposition_event`,label:`Disposition event`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_earning_code:{token:`hr_earning_code`,schema:`hr`,table:`earning_code`,label:`Earning code`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_eeo_response:{token:`hr_eeo_response`,schema:`hr`,table:`eeo_response`,label:`EEO self-identification response`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_emergency_contact:{token:`hr_emergency_contact`,schema:`hr`,table:`emergency_contact`,label:`Emergency contact`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_employee:{token:`hr_employee`,schema:`hr`,table:`employee`,label:`Employee`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`display_name`,contentRole:`container`,referenceCategory:null},hr_employee_private:{token:`hr_employee_private`,schema:`hr`,table:`employee_private`,label:`Employee private record`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_employer_profile:{token:`hr_employer_profile`,schema:`hr`,table:`employer_profile`,label:`Employer profile`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`legal_name`,contentRole:null,referenceCategory:null},hr_employment:{token:`hr_employment`,schema:`hr`,table:`employment`,label:`Employment spell`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_employment_pin:{token:`hr_employment_pin`,schema:`hr`,table:`employment_pin`,label:`Employment PIN`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_engagement:{token:`hr_engagement`,schema:`hr`,table:`engagement`,label:`Engagement`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_establishment:{token:`hr_establishment`,schema:`hr`,table:`establishment`,label:`Establishment`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_external_identity:{token:`hr_external_identity`,schema:`hr`,table:`external_identity`,label:`External identity`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_field_policy:{token:`hr_field_policy`,schema:`hr`,table:`field_policy`,label:`Self-service field policy`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_holiday:{token:`hr_holiday`,schema:`hr`,table:`holiday`,label:`Holiday`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_holiday_calendar:{token:`hr_holiday_calendar`,schema:`hr`,table:`holiday_calendar`,label:`Holiday calendar`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_i9:{token:`hr_i9`,schema:`hr`,table:`i9`,label:`Form I-9`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_i9_document:{token:`hr_i9_document`,schema:`hr`,table:`i9_document`,label:`I-9 document`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_incident:{token:`hr_incident`,schema:`hr`,table:`incident`,label:`Incident`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_incident_party:{token:`hr_incident_party`,schema:`hr`,table:`incident_party`,label:`Incident party`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_interview:{token:`hr_interview`,schema:`hr`,table:`interview`,label:`Interview`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_interview_kit:{token:`hr_interview_kit`,schema:`hr`,table:`interview_kit`,label:`Interview kit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_job_title:{token:`hr_job_title`,schema:`hr`,table:`job_title`,label:`Job title`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},hr_jurisdiction:{token:`hr_jurisdiction`,schema:`hr`,table:`jurisdiction`,label:`Jurisdiction`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_jurisdiction_rule:{token:`hr_jurisdiction_rule`,schema:`hr`,table:`jurisdiction_rule`,label:`Jurisdiction rule`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_jurisdiction_rule_class:{token:`hr_jurisdiction_rule_class`,schema:`hr`,table:`jurisdiction_rule_class`,label:`Jurisdiction rule class`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`label`,contentRole:null,referenceCategory:null},hr_jurisdiction_rule_org_decision:{token:`hr_jurisdiction_rule_org_decision`,schema:`hr`,table:`jurisdiction_rule_org_decision`,label:`Jurisdiction rule org decision`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_jurisdiction_rule_test:{token:`hr_jurisdiction_rule_test`,schema:`hr`,table:`jurisdiction_rule_test`,label:`Jurisdiction rule fixture`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},hr_kiosk_device:{token:`hr_kiosk_device`,schema:`hr`,table:`kiosk_device`,label:`Kiosk device`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_kiosk_session:{token:`hr_kiosk_session`,schema:`hr`,table:`kiosk_session`,label:`Kiosk session`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_labor_target:{token:`hr_labor_target`,schema:`hr`,table:`labor_target`,label:`Labor target`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_leave_case:{token:`hr_leave_case`,schema:`hr`,table:`leave_case`,label:`Leave case`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_leave_enrollment:{token:`hr_leave_enrollment`,schema:`hr`,table:`leave_enrollment`,label:`Leave enrollment`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_leave_ledger:{token:`hr_leave_ledger`,schema:`hr`,table:`leave_ledger`,label:`Leave ledger entry`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_leave_policy:{token:`hr_leave_policy`,schema:`hr`,table:`leave_policy`,label:`Leave policy`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_leave_request:{token:`hr_leave_request`,schema:`hr`,table:`leave_request`,label:`Leave request`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_legal_hold:{token:`hr_legal_hold`,schema:`hr`,table:`legal_hold`,label:`Legal hold`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`matter_name`,contentRole:null,referenceCategory:null},hr_legal_hold_item:{token:`hr_legal_hold_item`,schema:`hr`,table:`legal_hold_item`,label:`Legal hold item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_location:{token:`hr_location`,schema:`hr`,table:`location`,label:`Location`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_new_hire_report:{token:`hr_new_hire_report`,schema:`hr`,table:`new_hire_report`,label:`New hire report`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_offer:{token:`hr_offer`,schema:`hr`,table:`offer`,label:`Offer`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_opening:{token:`hr_opening`,schema:`hr`,table:`opening`,label:`Opening`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_overtime_alert:{token:`hr_overtime_alert`,schema:`hr`,table:`overtime_alert`,label:`Overtime alert`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_overtime_alert_rule:{token:`hr_overtime_alert_rule`,schema:`hr`,table:`overtime_alert_rule`,label:`Overtime alert rule`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_overtime_preapproval:{token:`hr_overtime_preapproval`,schema:`hr`,table:`overtime_preapproval`,label:`Overtime pre-approval`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_pay_group:{token:`hr_pay_group`,schema:`hr`,table:`pay_group`,label:`Pay group`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_pay_period:{token:`hr_pay_period`,schema:`hr`,table:`pay_period`,label:`Pay period`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_pay_period_employment:{token:`hr_pay_period_employment`,schema:`hr`,table:`pay_period_employment`,label:`Pay period timesheet`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_payroll_export:{token:`hr_payroll_export`,schema:`hr`,table:`payroll_export`,label:`Payroll export`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_payroll_export_line:{token:`hr_payroll_export_line`,schema:`hr`,table:`payroll_export_line`,label:`Payroll export line`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_position_assignment:{token:`hr_position_assignment`,schema:`hr`,table:`position_assignment`,label:`Position assignment`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_posting:{token:`hr_posting`,schema:`hr`,table:`posting`,label:`Job posting`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},hr_posting_publication:{token:`hr_posting_publication`,schema:`hr`,table:`posting_publication`,label:`Posting publication`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_provider_binding:{token:`hr_provider_binding`,schema:`hr`,table:`provider_binding`,label:`Provider binding`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_provider_event:{token:`hr_provider_event`,schema:`hr`,table:`provider_event`,label:`Provider seam event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_provisioning_result:{token:`hr_provisioning_result`,schema:`hr`,table:`provisioning_result`,label:`Provisioning result`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_punch:{token:`hr_punch`,schema:`hr`,table:`punch`,label:`Punch`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_recalculation_batch:{token:`hr_recalculation_batch`,schema:`hr`,table:`recalculation_batch`,label:`Recalculation batch`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_record_class:{token:`hr_record_class`,schema:`hr`,table:`record_class`,label:`Record class`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`label`,contentRole:null,referenceCategory:null},hr_records_request:{token:`hr_records_request`,schema:`hr`,table:`records_request`,label:`Records request`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_reference_check:{token:`hr_reference_check`,schema:`hr`,table:`reference_check`,label:`Reference check`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_reporting_line:{token:`hr_reporting_line`,schema:`hr`,table:`reporting_line`,label:`Reporting line`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_requisition:{token:`hr_requisition`,schema:`hr`,table:`requisition`,label:`Requisition`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`requisition_number`,contentRole:null,referenceCategory:null},hr_restricted_note:{token:`hr_restricted_note`,schema:`hr`,table:`restricted_note`,label:`Restricted note`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_retention_rule:{token:`hr_retention_rule`,schema:`hr`,table:`retention_rule`,label:`Retention rule`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_role_assignment:{token:`hr_role_assignment`,schema:`hr`,table:`role_assignment`,label:`HR role assignment`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_schedule:{token:`hr_schedule`,schema:`hr`,table:`schedule`,label:`Schedule`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_schedule_change:{token:`hr_schedule_change`,schema:`hr`,table:`schedule_change`,label:`Schedule change`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_schedule_guidance:{token:`hr_schedule_guidance`,schema:`hr`,table:`schedule_guidance`,label:`Schedule guidance`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},hr_schedule_template:{token:`hr_schedule_template`,schema:`hr`,table:`schedule_template`,label:`Schedule template`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_schedule_template_shift:{token:`hr_schedule_template_shift`,schema:`hr`,table:`schedule_template_shift`,label:`Schedule template shift`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_scorecard:{token:`hr_scorecard`,schema:`hr`,table:`scorecard`,label:`Scorecard`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_separation:{token:`hr_separation`,schema:`hr`,table:`separation`,label:`Separation`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_shift:{token:`hr_shift`,schema:`hr`,table:`shift`,label:`Shift`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_shift_claim:{token:`hr_shift_claim`,schema:`hr`,table:`shift_claim`,label:`Shift claim`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_staffing_requirement:{token:`hr_staffing_requirement`,schema:`hr`,table:`staffing_requirement`,label:`Staffing requirement`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_survey:{token:`hr_survey`,schema:`hr`,table:`survey`,label:`Survey`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_survey_invitation:{token:`hr_survey_invitation`,schema:`hr`,table:`survey_invitation`,label:`Survey invitation`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_survey_question:{token:`hr_survey_question`,schema:`hr`,table:`survey_question`,label:`Survey question`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_survey_response:{token:`hr_survey_response`,schema:`hr`,table:`survey_response`,label:`Survey response`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_tax_registration:{token:`hr_tax_registration`,schema:`hr`,table:`tax_registration`,label:`Tax registration`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_tax_withholding:{token:`hr_tax_withholding`,schema:`hr`,table:`tax_withholding`,label:`Tax withholding certificate`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_time_adjustment:{token:`hr_time_adjustment`,schema:`hr`,table:`time_adjustment`,label:`Time adjustment`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_training_assignment:{token:`hr_training_assignment`,schema:`hr`,table:`training_assignment`,label:`Training assignment`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_training_attempt:{token:`hr_training_attempt`,schema:`hr`,table:`training_attempt`,label:`Training attempt`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_transcript_entry:{token:`hr_transcript_entry`,schema:`hr`,table:`transcript_entry`,label:`Transcript entry`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_verification_letter_request:{token:`hr_verification_letter_request`,schema:`hr`,table:`verification_letter_request`,label:`Verification letter request`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_work_interval:{token:`hr_work_interval`,schema:`hr`,table:`work_interval`,label:`Work interval`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_workflow_binding:{token:`hr_workflow_binding`,schema:`hr`,table:`workflow_binding`,label:`HR Workflow Binding`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_workflow_decision:{token:`hr_workflow_decision`,schema:`hr`,table:`workflow_decision`,label:`HR Workflow Decision`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_workflow_definition:{token:`hr_workflow_definition`,schema:`hr`,table:`workflow_definition`,label:`HR Workflow Definition`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_workflow_event:{token:`hr_workflow_event`,schema:`hr`,table:`workflow_event`,label:`HR Workflow Event`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_workflow_failure:{token:`hr_workflow_failure`,schema:`hr`,table:`workflow_failure`,label:`HR Workflow Failure`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_workflow_flow_type:{token:`hr_workflow_flow_type`,schema:`hr`,table:`workflow_flow_type`,label:`HR Workflow Flow Type`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_workflow_instance:{token:`hr_workflow_instance`,schema:`hr`,table:`workflow_instance`,label:`HR Workflow Instance`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_workflow_step:{token:`hr_workflow_step`,schema:`hr`,table:`workflow_step`,label:`HR Workflow Step`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_workflow_step_definition:{token:`hr_workflow_step_definition`,schema:`hr`,table:`workflow_step_definition`,label:`HR Workflow Step Definition`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_workweek:{token:`hr_workweek`,schema:`hr`,table:`workweek`,label:`Workweek`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},html_extraction:{token:`html_extraction`,schema:`api`,table:`html_extractions`,label:`HTML extraction`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},iam_access_audit:{token:`iam_access_audit`,schema:`iam`,table:`access_audit`,label:`Access audit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},iam_api_key:{token:`iam_api_key`,schema:`iam`,table:`api_keys`,label:`API Key`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},iam_emergency_door_request:{token:`iam_emergency_door_request`,schema:`iam`,table:`emergency_door_request`,label:`Emergency access request`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},iam_org_availability_key:{token:`iam_org_availability_key`,schema:`iam`,table:`_org_availability_key`,label:`Organization availability key`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},iam_read_lane_v2_rollout:{token:`iam_read_lane_v2_rollout`,schema:`iam`,table:`read_lane_v2_rollout`,label:`Read lane v2 rollout`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},idempotency:{token:`idempotency`,schema:`files`,table:`idempotency`,label:`Idempotency`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},industry:{token:`industry`,schema:`iam`,table:`industries`,label:`Industry`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},industry_curator:{token:`industry_curator`,schema:`iam`,table:`industry_curators`,label:`Industry Curator`,baseTier:2,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},infra_status:{token:`infra_status`,schema:`public`,table:`infra_status`,label:`Infra status`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ingest_runs:{token:`ingest_runs`,schema:`legal`,table:`ingest_runs`,label:`Ingest Runs`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},integration_connection:{token:`integration_connection`,schema:`users`,table:`integration_connections`,label:`Integration connection`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},integration_connection_resource:{token:`integration_connection_resource`,schema:`users`,table:`integration_connection_resources`,label:`Integration connection resource`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},interview_decision_interview:{token:`interview_decision_interview`,schema:`interview`,table:`decision_interview`,label:`Decision Interview`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},interview_decision_question:{token:`interview_decision_question`,schema:`interview`,table:`decision_question`,label:`Decision Question`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},interview_document_revision:{token:`interview_document_revision`,schema:`interview`,table:`document_revision`,label:`Interview Document Revision`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},interview_hole:{token:`interview_hole`,schema:`interview`,table:`hole`,label:`Interview Adversary Hole`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},interview_question:{token:`interview_question`,schema:`interview`,table:`question`,label:`Interview Open Question`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},interview_session:{token:`interview_session`,schema:`interview`,table:`session`,label:`Vision Interview Session`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},interview_turn:{token:`interview_turn`,schema:`interview`,table:`turn`,label:`Interview Turn`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},invitation:{token:`invitation`,schema:`iam`,table:`invitations`,label:`Invitation`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},invitation_code:{token:`invitation_code`,schema:`users`,table:`invitation_codes`,label:`Invitation Code`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},invitation_request:{token:`invitation_request`,schema:`users`,table:`invitation_requests`,label:`Invitation Request`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},io_comment:{token:`io_comment`,schema:`custom`,table:`io_comment`,label:`Record comment`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},io_contract:{token:`io_contract`,schema:`content_ir`,table:`io_contract`,label:`Io Contract`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},io_import:{token:`io_import`,schema:`custom`,table:`io_import`,label:`Import run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},io_outbox:{token:`io_outbox`,schema:`custom`,table:`io_outbox`,label:`Record change outbox`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},item:{token:`item`,schema:`assignment`,table:`item`,label:`Item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},item_mastery:{token:`item_mastery`,schema:`education`,table:`item_mastery`,label:`Item Mastery`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},judge_verdict:{token:`judge_verdict`,schema:`platform`,table:`judge_verdict`,label:`Judge Verdict`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},jurisdiction_policy:{token:`jurisdiction_policy`,schema:`crm`,table:`jurisdiction_policy`,label:`Jurisdiction policy`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},keyword_classification_queue:{token:`keyword_classification_queue`,schema:`seo`,table:`keyword_classification_queue`,label:`Keyword Classification Queue`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},kg_alert:{token:`kg_alert`,schema:`rag`,table:`kg_alerts`,label:`KG Alert`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},kg_chunk_entities:{token:`kg_chunk_entities`,schema:`rag`,table:`kg_chunk_entities`,label:`Kg Chunk Entities`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},kg_chunks:{token:`kg_chunks`,schema:`rag`,table:`kg_chunks`,label:`Kg Chunks`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},kg_clusters:{token:`kg_clusters`,schema:`rag`,table:`kg_clusters`,label:`Kg Clusters`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},kg_edges:{token:`kg_edges`,schema:`rag`,table:`kg_edges`,label:`Kg Edges`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},kg_entities:{token:`kg_entities`,schema:`rag`,table:`kg_entities`,label:`Kg Entities`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},kg_entity_aliases:{token:`kg_entity_aliases`,schema:`rag`,table:`kg_entity_aliases`,label:`Kg Entity Aliases`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},kg_suggestion_ack:{token:`kg_suggestion_ack`,schema:`rag`,table:`kg_suggestion_ack`,label:`KG Suggestion Ack`,baseTier:3,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},kg_sweep_queue:{token:`kg_sweep_queue`,schema:`rag`,table:`kg_sweep_queue`,label:`KG Sweep Queue`,baseTier:3,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},kg_sweep_run:{token:`kg_sweep_run`,schema:`rag`,table:`kg_sweep_run`,label:`KG Sweep Run`,baseTier:3,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},kg_sweep_state:{token:`kg_sweep_state`,schema:`rag`,table:`kg_sweep_state`,label:`KG Sweep State`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},kg_value_match:{token:`kg_value_match`,schema:`rag`,table:`kg_value_matches`,label:`KG Value Match`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},knob_override:{token:`knob_override`,schema:`platform`,table:`knob_override`,label:`Knob Override`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},knob_override_audit:{token:`knob_override_audit`,schema:`platform`,table:`knob_override_audit`,label:`Knob override audit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},knob_rung_lock:{token:`knob_rung_lock`,schema:`platform`,table:`knob_rung_lock`,label:`Knob Rung Lock`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},knob_scope_kind:{token:`knob_scope_kind`,schema:`platform`,table:`knob_scope_kind`,label:`Knob scope kind`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},knob_write_door:{token:`knob_write_door`,schema:`platform`,table:`knob_write_door`,label:`Knob write door`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},league_membership:{token:`league_membership`,schema:`education`,table:`league_membership`,label:`League Membership`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`display_name`,contentRole:null,referenceCategory:null},learn_doc:{token:`learn_doc`,schema:`education`,table:`learn_doc`,label:`Study Guide`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},library_doc:{token:`library_doc`,schema:`rag`,table:`library_docs`,label:`Library Document`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},lifecycle_archive:{token:`lifecycle_archive`,schema:`platform`,table:`lifecycle_archive`,label:`Lifecycle archive`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},lifecycle_archive_row:{token:`lifecycle_archive_row`,schema:`platform`,table:`lifecycle_archive_row`,label:`Lifecycle archive row`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},lifecycle_audit:{token:`lifecycle_audit`,schema:`platform`,table:`lifecycle_audit`,label:`Lifecycle audit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},lifecycle_entity_plan:{token:`lifecycle_entity_plan`,schema:`platform`,table:`lifecycle_entity_plan`,label:`Lifecycle entity plan`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},lifecycle_map_build:{token:`lifecycle_map_build`,schema:`platform`,table:`lifecycle_map_build`,label:`Lifecycle map build`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},lifecycle_reference_map:{token:`lifecycle_reference_map`,schema:`platform`,table:`lifecycle_reference_map`,label:`Lifecycle reference map`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},lifecycle_run:{token:`lifecycle_run`,schema:`platform`,table:`lifecycle_run`,label:`Lifecycle run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},lifecycle_tier_ledger:{token:`lifecycle_tier_ledger`,schema:`platform`,table:`lifecycle_tier_ledger`,label:`Lifecycle tier ledger`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},location:{token:`location`,schema:`seo`,table:`location`,label:`Location`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mandate:{token:`mandate`,schema:`mandate`,table:`definition`,label:`Mandate`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`label`,contentRole:null,referenceCategory:null},mandate_advance_batch_row:{token:`mandate_advance_batch_row`,schema:`mandate`,table:`advance_batch_row`,label:`Pin advance batch row`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mandate_binding:{token:`mandate_binding`,schema:`mandate`,table:`binding`,label:`Mandate Binding (new)`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mandate_candidate:{token:`mandate_candidate`,schema:`mandate`,table:`candidate`,label:`Mandate Candidate`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mandate_candidate_run:{token:`mandate_candidate_run`,schema:`mandate`,table:`candidate_run`,label:`Mandate Candidate Run`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mandate_candidate_run_payload:{token:`mandate_candidate_run_payload`,schema:`mandate`,table:`candidate_run_payload`,label:`Mandate Candidate Run Payload`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mandate_goal_clauses:{token:`mandate_goal_clauses`,schema:`mandate`,table:`goal_clauses`,label:`Mandate Goal Clauses`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mandate_observation:{token:`mandate_observation`,schema:`mandate`,table:`observation`,label:`Mandate Observation`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mandate_reference:{token:`mandate_reference`,schema:`mandate`,table:`reference`,label:`Mandate Reference`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mandate_scan:{token:`mandate_scan`,schema:`mandate`,table:`scan`,label:`Mandate Scan`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mandate_treatment:{token:`mandate_treatment`,schema:`mandate`,table:`treatment`,label:`Mandate Treatment (new)`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},marketing_initiative:{token:`marketing_initiative`,schema:`marketing`,table:`initiative`,label:`Initiative`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:`container`,referenceCategory:null},masterwork_corpus_item:{token:`masterwork_corpus_item`,schema:`platform`,table:`masterwork_corpus_item`,label:`Masterwork Corpus Piece`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},masterwork_run:{token:`masterwork_run`,schema:`platform`,table:`masterwork_run`,label:`Masterwork Run`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Masterwork`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},masterwork_run_kind:{token:`masterwork_run_kind`,schema:`platform`,table:`masterwork_run_kind`,label:`Masterwork Run Kind`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},masterwork_source:{token:`masterwork_source`,schema:`platform`,table:`masterwork_source`,label:`Masterwork Source`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},math_course_structure:{token:`math_course_structure`,schema:`education`,table:`math_course_structure`,label:`Math Course Structure`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},math_problem:{token:`math_problem`,schema:`education`,table:`math_problems`,label:`Math problem`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},matrx_action_ledger:{token:`matrx_action_ledger`,schema:`platform`,table:`matrx_action_ledger`,label:`Action ledger`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mcp_config:{token:`mcp_config`,schema:`tool`,table:`mcp_config`,label:`MCP config`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mcp_server:{token:`mcp_server`,schema:`tool`,table:`mcp_server`,label:`MCP server`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mcp_user_conn:{token:`mcp_user_conn`,schema:`tool`,table:`mcp_user_conn`,label:`MCP user connection`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},media_capture_handoff:{token:`media_capture_handoff`,schema:`media`,table:`capture_handoff`,label:`Capture Handoff`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},media_catalog_setting:{token:`media_catalog_setting`,schema:`media`,table:`catalog_setting`,label:`Media Catalog Setting`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},media_library_item:{token:`media_library_item`,schema:`media`,table:`library_item`,label:`Library Item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},media_selection_item:{token:`media_selection_item`,schema:`media`,table:`selection_item`,label:`Selection Item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},media_selection_job:{token:`media_selection_job`,schema:`media`,table:`selection_job`,label:`Selection Job`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},media_source_library:{token:`media_source_library`,schema:`media`,table:`source_library`,label:`Source Library`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},meet_call_invite:{token:`meet_call_invite`,schema:`communication`,table:`meet_call_invites`,label:`Call Invite`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},meet_chat_message:{token:`meet_chat_message`,schema:`communication`,table:`meet_chat_messages`,label:`Meeting Chat Message`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},meet_invitee:{token:`meet_invitee`,schema:`communication`,table:`meet_invitees`,label:`Meeting Invitee`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},meet_meeting:{token:`meet_meeting`,schema:`communication`,table:`meet_meetings`,label:`Meeting`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},meet_note:{token:`meet_note`,schema:`communication`,table:`meet_notes`,label:`Meeting Note`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},meet_occurrence_override:{token:`meet_occurrence_override`,schema:`communication`,table:`meet_occurrence_overrides`,label:`Meeting Occurrence Override`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},meet_participant:{token:`meet_participant`,schema:`communication`,table:`meet_participants`,label:`Meeting Participant`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},meet_recording:{token:`meet_recording`,schema:`communication`,table:`meet_recordings`,label:`Meeting Recording`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},meet_transcript_segment:{token:`meet_transcript_segment`,schema:`communication`,table:`meet_transcript_segments`,label:`Meeting Transcript Segment`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},membership:{token:`membership`,schema:`iam`,table:`memberships`,label:`Membership`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},membership_grant:{token:`membership_grant`,schema:`iam`,table:`membership_grant`,label:`Membership Grant`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},merge_field_provenance:{token:`merge_field_provenance`,schema:`custom`,table:`merge_field_provenance`,label:`Merge Field Provenance`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},message:{token:`message`,schema:`chat`,table:`message`,label:`Message`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},message_template:{token:`message_template`,schema:`agent`,table:`message_template`,label:`Message Template`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`label`,contentRole:`utility`,referenceCategory:null},message_template_detail:{token:`message_template_detail`,schema:`agent`,table:`message_template_detail`,label:`Message Template Detail`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Documents`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},meta_excluded_schema:{token:`meta_excluded_schema`,schema:`meta`,table:`excluded_schema`,label:`Excluded schema`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},meta_table_stats_history:{token:`meta_table_stats_history`,schema:`meta`,table:`table_stats_history`,label:`Table stats history`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},metadata_reserved_keys:{token:`metadata_reserved_keys`,schema:`platform`,table:`metadata_reserved_keys`,label:`Metadata Reserved Keys`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},migration_log:{token:`migration_log`,schema:`history`,table:`migration_log`,label:`Migration Log`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mtx_media_heal_queue:{token:`mtx_media_heal_queue`,schema:`platform`,table:`mtx_media_heal_queue`,label:`Mtx Media Heal Queue`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mtx_public_url_guard:{token:`mtx_public_url_guard`,schema:`platform`,table:`mtx_public_url_guard`,label:`Public URL guard`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ner_shadow:{token:`ner_shadow`,schema:`rag`,table:`ner_canonicalizer_shadow`,label:`NER Shadow`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},note:{token:`note`,schema:`workbench`,table:`notes`,label:`Note`,baseTier:1,isComponent:!1,isModule:!0,isListed:!1,scopeable:!0,category:`Sources & Outputs`,referencePickable:!0,titleColumn:`label`,contentRole:`hybrid`,referenceCategory:null},note_folder:{token:`note_folder`,schema:`workbench`,table:`note_folders`,label:`Note Folder`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},notification:{token:`notification`,schema:`communication`,table:`notification`,label:`Notification`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},notification_channel_preference:{token:`notification_channel_preference`,schema:`communication`,table:`notification_channel_preference`,label:`Notification Channel Preference`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},notification_event_override:{token:`notification_event_override`,schema:`communication`,table:`notification_event_override`,label:`Notification Event Override`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},notification_event_type:{token:`notification_event_type`,schema:`communication`,table:`notification_event_type`,label:`Notification Event Type`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},notification_preference:{token:`notification_preference`,schema:`communication`,table:`notification_preference`,label:`Notification Preference`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},notification_submission:{token:`notification_submission`,schema:`communication`,table:`notification_submission`,label:`Self notification submission`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},notify_outsider_door_baseline:{token:`notify_outsider_door_baseline`,schema:`hr`,table:`notify_outsider_door_baseline`,label:`Notify Outsider Door Baseline`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},oauth_handoff_claim:{token:`oauth_handoff_claim`,schema:`platform`,table:`_oauth_handoff_claim`,label:`Oauth Handoff Claim`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},opinion_clusters:{token:`opinion_clusters`,schema:`legal`,table:`opinion_clusters`,label:`Opinion Clusters`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},opinions:{token:`opinions`,schema:`legal`,table:`opinions`,label:`Opinions`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ops_check_item:{token:`ops_check_item`,schema:`ops`,table:`check_item`,label:`Check Item`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ops_check_run:{token:`ops_check_run`,schema:`ops`,table:`check_run`,label:`Check Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ops_db_host_sample:{token:`ops_db_host_sample`,schema:`ops`,table:`db_host_sample`,label:`Database host sample`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ops_issue_class:{token:`ops_issue_class`,schema:`ops`,table:`ops_issue_class`,label:`Ops Issue Class`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ops_issue_event:{token:`ops_issue_event`,schema:`ops`,table:`ops_issue_event`,label:`Ops Issue Event`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ops_proof_check:{token:`ops_proof_check`,schema:`ops`,table:`proof_check`,label:`Proof Check`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ops_proof_run:{token:`ops_proof_run`,schema:`ops`,table:`proof_run`,label:`Proof Run`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ops_proof_scenario:{token:`ops_proof_scenario`,schema:`ops`,table:`proof_scenario`,label:`Proof Scenario`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},org_admin_audit:{token:`org_admin_audit`,schema:`iam`,table:`org_admin_audit`,label:`Org admin audit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},org_change_policy:{token:`org_change_policy`,schema:`platform`,table:`org_change_policy`,label:`Org Change Policy`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},org_context_ledger:{token:`org_context_ledger`,schema:`platform`,table:`org_context_ledger`,label:`Org Context Ledger`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},org_industries:{token:`org_industries`,schema:`iam`,table:`org_industries`,label:`Org Industries`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},org_member_control:{token:`org_member_control`,schema:`iam`,table:`org_member_controls`,label:`Org member control`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},org_module_config:{token:`org_module_config`,schema:`platform`,table:`org_module_config`,label:`Organization module configuration`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},org_plan:{token:`org_plan`,schema:`billing`,table:`org_plan`,label:`Org Plan`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},organization:{token:`organization`,schema:`iam`,table:`organizations`,label:`Organization`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:`container`,referenceCategory:null},organization_preferences:{token:`organization_preferences`,schema:`iam`,table:`organization_preferences`,label:`Organization Preferences`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},organization_visibility_version:{token:`organization_visibility_version`,schema:`custom`,table:`organization_visibility_version`,label:`Organization Visibility Version`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},output_feedback:{token:`output_feedback`,schema:`platform`,table:`output_feedback`,label:`Output Feedback`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},outreach_acceptance:{token:`outreach_acceptance`,schema:`crm`,table:`outreach_acceptance`,label:`Outreach Acceptance`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},page_extraction_job:{token:`page_extraction_job`,schema:`docproc`,table:`page_extraction_jobs`,label:`Extraction Dataset`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},page_extraction_page_run:{token:`page_extraction_page_run`,schema:`docproc`,table:`page_extraction_page_runs`,label:`Page Extraction Page Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},page_extraction_results:{token:`page_extraction_results`,schema:`docproc`,table:`page_extraction_results`,label:`Page Extraction Results`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},page_extraction_runs:{token:`page_extraction_runs`,schema:`docproc`,table:`page_extraction_runs`,label:`Page Extraction Runs`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},page_intent_queue:{token:`page_intent_queue`,schema:`seo`,table:`page_intent_queue`,label:`Page Intent Queue`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},page_mapping_queue:{token:`page_mapping_queue`,schema:`seo`,table:`page_mapping_queue`,label:`Page Mapping Queue`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},part_config:{token:`part_config`,schema:`partman`,table:`part_config`,label:`Part Config`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},part_config_sub:{token:`part_config_sub`,schema:`partman`,table:`part_config_sub`,label:`Part Config Sub`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},party:{token:`party`,schema:`crm`,table:`party`,label:`Contact`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`display_name`,contentRole:`source`,referenceCategory:null},party_contact_point:{token:`party_contact_point`,schema:`crm`,table:`party_contact_point`,label:`Contact Point`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`label`,contentRole:null,referenceCategory:null},passkey_credential:{token:`passkey_credential`,schema:`users`,table:`passkey_credentials`,label:`Passkey credential`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},pc_article:{token:`pc_article`,schema:`podcast`,table:`pc_articles`,label:`Podcast Article`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},pc_episode:{token:`pc_episode`,schema:`podcast`,table:`pc_episodes`,label:`Podcast Episode`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},pc_show:{token:`pc_show`,schema:`podcast`,table:`pc_shows`,label:`Podcast Show`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},pc_studio_run:{token:`pc_studio_run`,schema:`podcast`,table:`pc_studio_runs`,label:`Podcast Studio Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},pc_studio_run_asset:{token:`pc_studio_run_asset`,schema:`podcast`,table:`pc_studio_run_assets`,label:`Podcast Studio Run Asset`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},pdf_consolidation_log:{token:`pdf_consolidation_log`,schema:`pdf`,table:`pdf_consolidation_log`,label:`Pdf Consolidation Log`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},pdf_redaction_audit:{token:`pdf_redaction_audit`,schema:`pdf`,table:`pdf_redaction_audits`,label:`PDF Redaction Audit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},pdf_redaction_key_escrow:{token:`pdf_redaction_key_escrow`,schema:`pdf`,table:`pdf_redaction_key_escrow`,label:`Pdf Redaction Key Escrow`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},permission_grant:{token:`permission_grant`,schema:`iam`,table:`permissions`,label:`Permission grant`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},plan_cms_fill_item:{token:`plan_cms_fill_item`,schema:`plan`,table:`cms_fill_item`,label:`CMS Fill Item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},plan_cms_fill_job:{token:`plan_cms_fill_job`,schema:`plan`,table:`cms_fill_job`,label:`CMS Fill Job`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},plan_entity:{token:`plan_entity`,schema:`plan`,table:`entity`,label:`Plan Entity`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:`label`,contentRole:null,referenceCategory:null},plan_node:{token:`plan_node`,schema:`plan`,table:`node`,label:`Plan Node`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:`label`,contentRole:null,referenceCategory:null},plan_node_artifact:{token:`plan_node_artifact`,schema:`plan`,table:`node_artifact`,label:`Plan Node Artifact`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},plan_node_step:{token:`plan_node_step`,schema:`plan`,table:`node_step`,label:`Plan Node Step`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},plan_profile:{token:`plan_profile`,schema:`plan`,table:`profile`,label:`Plan Vertical Profile`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`vertical`,contentRole:null,referenceCategory:null},platform_action_request:{token:`platform_action_request`,schema:`platform`,table:`action_request`,label:`Action Request`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_actor_session:{token:`platform_actor_session`,schema:`platform`,table:`actor_session`,label:`Actor session`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_actor_token:{token:`platform_actor_token`,schema:`platform`,table:`actor_token`,label:`Actor token`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_actor_token_event:{token:`platform_actor_token_event`,schema:`platform`,table:`actor_token_event`,label:`Actor token event`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_class_approval_by_arman:{token:`platform_class_approval_by_arman`,schema:`platform`,table:`class_approval_by_arman`,label:`Class approval by Arman`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_continued_access:{token:`platform_continued_access`,schema:`platform`,table:`continued_access`,label:`Continued Access`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_cutover_census_run:{token:`platform_cutover_census_run`,schema:`platform`,table:`cutover_census_run`,label:`Cutover census run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_cutover_evaluation_replaced:{token:`platform_cutover_evaluation_replaced`,schema:`platform`,table:`cutover_evaluation_replaced`,label:`Cutover evaluation replaced`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_cutover_evaluation_write:{token:`platform_cutover_evaluation_write`,schema:`platform`,table:`cutover_evaluation_write`,label:`Cutover evaluation write`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_cutover_seam:{token:`platform_cutover_seam`,schema:`platform`,table:`cutover_seam`,label:`Cutover seam`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_cutover_seam_measure:{token:`platform_cutover_seam_measure`,schema:`platform`,table:`cutover_seam_measure`,label:`Cutover seam measure`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_cutover_seam_press:{token:`platform_cutover_seam_press`,schema:`platform`,table:`cutover_seam_press`,label:`Cutover seam press`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_dated_change:{token:`platform_dated_change`,schema:`platform`,table:`dated_change`,label:`Dated Change`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_doors_only_pending_cutover:{token:`platform_doors_only_pending_cutover`,schema:`platform`,table:`doors_only_pending_cutover`,label:`Doors-only pending cutover`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_google_calendar_event_create_intent:{token:`platform_google_calendar_event_create_intent`,schema:`platform`,table:`_google_calendar_event_create_intent`,label:`Google calendar event create intent`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_google_task_create_intent:{token:`platform_google_task_create_intent`,schema:`platform`,table:`_google_task_create_intent`,label:`Google task create intent`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_kernel_fingerprint_record:{token:`platform_kernel_fingerprint_record`,schema:`platform`,table:`kernel_fingerprint_record`,label:`Kernel fingerprint record`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_outcome_event:{token:`platform_outcome_event`,schema:`platform`,table:`outcome_event`,label:`Outcome Event`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_outsider_consumer:{token:`platform_outsider_consumer`,schema:`platform`,table:`outsider_consumer`,label:`Outsider consumer`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_provision_base_contract_pending:{token:`platform_provision_base_contract_pending`,schema:`platform`,table:`provision_base_contract_pending`,label:`Provision base contract pending`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_reachability:{token:`platform_reachability`,schema:`platform`,table:`reachability`,label:`Reachability`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_reachability_rebuild_pending:{token:`platform_reachability_rebuild_pending`,schema:`platform`,table:`reachability_rebuild_pending`,label:`Reachability rebuild pending`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_realtime_topic_prefix:{token:`platform_realtime_topic_prefix`,schema:`platform`,table:`realtime_topic_prefix`,label:`Realtime topic prefix`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_reference_category:{token:`platform_reference_category`,schema:`platform`,table:`reference_categories`,label:`Reference category`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_reference_declaration:{token:`platform_reference_declaration`,schema:`platform`,table:`reference_declaration`,label:`Reference declaration`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_repo:{token:`platform_repo`,schema:`platform`,table:`repo`,label:`Repository`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_saved_view:{token:`platform_saved_view`,schema:`platform`,table:`saved_view`,label:`Saved view`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_schema:{token:`platform_schema`,schema:`platform`,table:`schemas`,label:`Schema`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_secure_delivery:{token:`platform_secure_delivery`,schema:`platform`,table:`secure_delivery`,label:`Secure Delivery`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_share_link:{token:`platform_share_link`,schema:`platform`,table:`share_links`,label:`Share link`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_strict_class_probe:{token:`platform_strict_class_probe`,schema:`platform`,table:`strict_class_probe`,label:`Strict class probe`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},podcast_race:{token:`podcast_race`,schema:`podcast`,table:`pc_race`,label:`Podcast Race Episode`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},position:{token:`position`,schema:`agent`,table:`position`,label:`Position`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},processed_document:{token:`processed_document`,schema:`docproc`,table:`processed_documents`,label:`Source`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:`source`,referenceCategory:null},processed_document_page:{token:`processed_document_page`,schema:`docproc`,table:`processed_document_pages`,label:`Processed document page`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},product_capture_file:{token:`product_capture_file`,schema:`workbench`,table:`product_capture_file`,label:`Product Capture File`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},product_capture_item:{token:`product_capture_item`,schema:`workbench`,table:`product_capture_item`,label:`Product Capture Item`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},product_capture_payload:{token:`product_capture_payload`,schema:`workbench`,table:`product_capture_payload`,label:`Product Capture Payload`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},product_capture_product:{token:`product_capture_product`,schema:`workbench`,table:`product_capture_product`,label:`Product Capture Product`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},product_capture_question:{token:`product_capture_question`,schema:`workbench`,table:`product_capture_question`,label:`Product Capture Question`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},project:{token:`project`,schema:`projects`,table:`projects`,label:`Project`,baseTier:1,isComponent:!1,isModule:!0,isListed:!1,scopeable:!0,category:`Workspaces`,referencePickable:!0,titleColumn:`name`,contentRole:`container`,referenceCategory:null},provider_account:{token:`provider_account`,schema:`provider`,table:`account`,label:`Provider operating account`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},provider_account_credential:{token:`provider_account_credential`,schema:`provider`,table:`account_credential`,label:`Provider account credential association`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},provision:{token:`provision`,schema:`mandate`,table:`provision`,label:`Mandate Provision (new)`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},provision_generate_target:{token:`provision_generate_target`,schema:`platform`,table:`provision_generate_target`,label:`Provision Generate Target`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},provision_grant:{token:`provision_grant`,schema:`platform`,table:`provision_grant`,label:`Provision Grant`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},provision_marker:{token:`provision_marker`,schema:`platform`,table:`provision_marker`,label:`Provision Marker`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},provision_rule_message:{token:`provision_rule_message`,schema:`platform`,table:`provision_rule_message`,label:`Provision Rule Message`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},provision_schema:{token:`provision_schema`,schema:`platform`,table:`provision_schema`,label:`Provision Schema`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},provision_shape_debt:{token:`provision_shape_debt`,schema:`platform`,table:`provision_shape_debt`,label:`Provision Shape Debt`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},provision_spec:{token:`provision_spec`,schema:`platform`,table:`provision_spec`,label:`Provision Spec`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},provision_spec_grandfather:{token:`provision_spec_grandfather`,schema:`platform`,table:`provision_spec_grandfather`,label:`Provision Spec Grandfather`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},provision_vocabulary:{token:`provision_vocabulary`,schema:`platform`,table:`provision_vocabulary`,label:`Provision Vocabulary`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},purpose:{token:`purpose`,schema:`platform`,table:`purpose`,label:`Purpose`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},quiz_session:{token:`quiz_session`,schema:`education`,table:`quiz_sessions`,label:`Quiz Session`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:`destination`,referenceCategory:null},rag_ingest_run:{token:`rag_ingest_run`,schema:`rag`,table:`ingest_run`,label:`Ingest Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},rag_library_audit_log:{token:`rag_library_audit_log`,schema:`rag`,table:`library_audit_log`,label:`Library audit log`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},rate_limit_buckets:{token:`rate_limit_buckets`,schema:`files`,table:`rate_limit_buckets`,label:`Rate Limit Buckets`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},reachability_pending:{token:`reachability_pending`,schema:`platform`,table:`reachability_pending`,label:`Reachability pending`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},recompute_queue:{token:`recompute_queue`,schema:`hr`,table:`_recompute_queue`,label:`Recompute Queue`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},record:{token:`record`,schema:`custom`,table:`record`,label:`Record`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},record_alias:{token:`record_alias`,schema:`custom`,table:`record_alias`,label:`Record Alias`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},redaction_mapping:{token:`redaction_mapping`,schema:`pdf`,table:`redaction_mapping`,label:`Redaction Mapping`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},research_analysis:{token:`research_analysis`,schema:`research`,table:`rs_analysis`,label:`Research Analysis`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},research_content:{token:`research_content`,schema:`research`,table:`rs_content`,label:`Research Content`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},research_context_bundle:{token:`research_context_bundle`,schema:`research`,table:`rs_context_bundle`,label:`Research Context Bundle`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:`research`,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},research_document:{token:`research_document`,schema:`research`,table:`rs_document`,label:`Research Document`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},research_intent:{token:`research_intent`,schema:`research`,table:`research_intent`,label:`Research Intent`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},research_keyword:{token:`research_keyword`,schema:`research`,table:`rs_keyword`,label:`Research Keyword`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},research_media:{token:`research_media`,schema:`research`,table:`rs_media`,label:`Research Media`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},research_source:{token:`research_source`,schema:`research`,table:`rs_source`,label:`Research Source`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},research_synthesis:{token:`research_synthesis`,schema:`research`,table:`rs_synthesis`,label:`Research Synthesis`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},research_tag:{token:`research_tag`,schema:`research`,table:`rs_tag`,label:`Research Tag`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},research_template:{token:`research_template`,schema:`research`,table:`rs_template`,label:`Research Template`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},research_topic:{token:`research_topic`,schema:`research`,table:`rs_topic`,label:`Research Topic`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},retention_policy:{token:`retention_policy`,schema:`platform`,table:`retention_policy`,label:`Retention policy`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},retrieval_audit:{token:`retrieval_audit`,schema:`rag`,table:`retrieval_audit`,label:`Retrieval audit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},review_queue:{token:`review_queue`,schema:`agent`,table:`review_queue`,label:`Review Queue`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},route_manifest_entry:{token:`route_manifest_entry`,schema:`platform`,table:`route_manifest`,label:`Route Manifest Entry`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},row_version:{token:`row_version`,schema:`history`,table:`row_versions`,label:`Row version`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},rulebook:{token:`rulebook`,schema:`platform`,table:`rulebook`,label:`Rulebook`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:`Knowledge`,referencePickable:!0,titleColumn:`name`,contentRole:`source`,referenceCategory:null},runtime_operation_stream:{token:`runtime_operation_stream`,schema:`runtime`,table:`operation_stream`,label:`Operation stream`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},runtime_operation_stream_batch:{token:`runtime_operation_stream_batch`,schema:`runtime`,table:`operation_stream_batch`,label:`Operation stream batch`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},sandbox_instance:{token:`sandbox_instance`,schema:`public`,table:`sandbox_instances`,label:`Sandbox Instance`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},sch_agent_task:{token:`sch_agent_task`,schema:`scheduler`,table:`sch_agent_task`,label:`Agent Task Config`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},sch_run:{token:`sch_run`,schema:`scheduler`,table:`sch_run`,label:`Task Run`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},sch_task:{token:`sch_task`,schema:`scheduler`,table:`sch_task`,label:`Scheduled Task`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},sch_trigger:{token:`sch_trigger`,schema:`scheduler`,table:`sch_trigger`,label:`Task Trigger`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},schema_client_exposure:{token:`schema_client_exposure`,schema:`platform`,table:`schema_client_exposure`,label:`Schema Client Exposure`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},schema_migration_ledger:{token:`schema_migration_ledger`,schema:`public`,table:`_schema_migrations`,label:`Migration ledger`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},schema_migration_legacy:{token:`schema_migration_legacy`,schema:`public`,table:`schema_migrations`,label:`Legacy migration ledger`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},schema_migration_slot_grandfather:{token:`schema_migration_slot_grandfather`,schema:`public`,table:`_schema_migration_slot_grandfather`,label:`Schema Migration Slot Grandfather`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},schema_templates:{token:`schema_templates`,schema:`workbench`,table:`schema_templates`,label:`Schema Templates`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},scope:{token:`scope`,schema:`context`,table:`scopes`,label:`Scope`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:`container`,referenceCategory:null},scope_association_suggestion:{token:`scope_association_suggestion`,schema:`rag`,table:`scope_association_suggestions`,label:`Scope Association Suggestion`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},scope_dataset_instance:{token:`scope_dataset_instance`,schema:`context`,table:`scope_dataset_instances`,label:`Scope dataset instance`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},scope_door_registry:{token:`scope_door_registry`,schema:`context`,table:`scope_door_registry`,label:`Scope Door Registry`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},scope_item_value_suggestion:{token:`scope_item_value_suggestion`,schema:`rag`,table:`scope_item_value_suggestions`,label:`Scope Item Value Suggestion`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},scope_suggestion:{token:`scope_suggestion`,schema:`rag`,table:`scope_suggestions`,label:`Scope Suggestion`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},scope_type:{token:`scope_type`,schema:`context`,table:`scope_types`,label:`Scope Type`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`slug`,contentRole:`container`,referenceCategory:null},scrape_domain:{token:`scrape_domain`,schema:`scraper`,table:`scrape_domain`,label:`Scrape Domain`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},scrape_domain_settings:{token:`scrape_domain_settings`,schema:`scraper`,table:`scrape_domain_settings`,label:`Scrape Domain Settings`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},scrape_failure_log:{token:`scrape_failure_log`,schema:`scraper`,table:`scrape_failure_log`,label:`Scrape Failure Log`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},scrape_parsed_page:{token:`scrape_parsed_page`,schema:`scraper`,table:`scrape_parsed_page`,label:`Parsed page`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},scrape_path_override:{token:`scrape_path_override`,schema:`scraper`,table:`scrape_path_override`,label:`Scrape Path Override`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},scrape_path_pattern:{token:`scrape_path_pattern`,schema:`scraper`,table:`scrape_path_pattern`,label:`Scrape Path Pattern`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},scrape_retry_queue:{token:`scrape_retry_queue`,schema:`scraper`,table:`scrape_retry_queue`,label:`Scrape Retry Queue`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},search_item:{token:`search_item`,schema:`platform`,table:`search_item`,label:`Search item`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_ai_capability:{token:`seo_ai_capability`,schema:`seo`,table:`ai_capability`,label:`SEO AI capability`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_ai_visibility_citation:{token:`seo_ai_visibility_citation`,schema:`seo`,table:`ai_visibility_citation`,label:`AI Visibility Citation`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_ai_visibility_claim:{token:`seo_ai_visibility_claim`,schema:`seo`,table:`ai_visibility_claim`,label:`AI Visibility Claim`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_ai_visibility_panel:{token:`seo_ai_visibility_panel`,schema:`seo`,table:`ai_visibility_panel`,label:`AI Visibility Panel`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_ai_visibility_response:{token:`seo_ai_visibility_response`,schema:`seo`,table:`ai_visibility_response`,label:`AI Visibility Response`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_ai_visibility_signal:{token:`seo_ai_visibility_signal`,schema:`seo`,table:`ai_visibility_signal`,label:`AI Visibility Signal`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_backlink:{token:`seo_backlink`,schema:`seo`,table:`backlink`,label:`SEO Backlink`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_backlink_change_event:{token:`seo_backlink_change_event`,schema:`seo`,table:`backlink_change_event`,label:`Backlink Change Event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_backlink_dimension_snapshot:{token:`seo_backlink_dimension_snapshot`,schema:`seo`,table:`backlink_dimension_snapshot`,label:`Backlink Dimension Snapshot`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_backlink_observation:{token:`seo_backlink_observation`,schema:`seo`,table:`backlink_observation`,label:`Backlink Observation`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_backlink_snapshot:{token:`seo_backlink_snapshot`,schema:`seo`,table:`backlink_snapshot`,label:`Backlink Snapshot`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_change_assessment:{token:`seo_change_assessment`,schema:`seo`,table:`change_assessment`,label:`SEO Change Assessment`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_change_event:{token:`seo_change_event`,schema:`seo`,table:`change_event`,label:`SEO Change Event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_change_item:{token:`seo_change_item`,schema:`seo`,table:`change_item`,label:`SEO Change Item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_change_metric:{token:`seo_change_metric`,schema:`seo`,table:`change_metric`,label:`SEO Change Metric`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_change_set:{token:`seo_change_set`,schema:`seo`,table:`change_set`,label:`SEO Change`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:`title`,contentRole:`source`,referenceCategory:null},seo_change_theory:{token:`seo_change_theory`,schema:`seo`,table:`change_theory`,label:`SEO Change Theory`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_collection_run:{token:`seo_collection_run`,schema:`seo`,table:`collection_run`,label:`SEO Collection Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_competitor:{token:`seo_competitor`,schema:`seo`,table:`competitor`,label:`SEO Competitor`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_competitor_observation:{token:`seo_competitor_observation`,schema:`seo`,table:`competitor_observation`,label:`Competitor Observation`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_competitor_opportunity:{token:`seo_competitor_opportunity`,schema:`seo`,table:`competitor_opportunity`,label:`Competitor Opportunity`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_coverage_mention:{token:`seo_coverage_mention`,schema:`seo`,table:`coverage_mention`,label:`Coverage Mention`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_coverage_tracker:{token:`seo_coverage_tracker`,schema:`seo`,table:`coverage_tracker`,label:`Coverage Tracker`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_dimension_value_matcher:{token:`seo_dimension_value_matcher`,schema:`seo`,table:`dimension_value_matcher`,label:`Dimension Value Matcher`,baseTier:1,isComponent:!0,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_engine_schedule:{token:`seo_engine_schedule`,schema:`seo`,table:`engine_schedule`,label:`SEO Engine Schedule`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_geo_place:{token:`seo_geo_place`,schema:`seo`,table:`geo_place`,label:`Geo Place`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_gsc_dig_rule:{token:`seo_gsc_dig_rule`,schema:`seo`,table:`gsc_dig_rule`,label:`GSC Dig Rule`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_keyword:{token:`seo_keyword`,schema:`seo`,table:`keyword`,label:`SEO Keyword`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:`phrase`,contentRole:null,referenceCategory:null},seo_keyword_class_rule:{token:`seo_keyword_class_rule`,schema:`seo`,table:`keyword_class_rule`,label:`Keyword Class Rule`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_keyword_edge:{token:`seo_keyword_edge`,schema:`seo`,table:`keyword_edge`,label:`Keyword Edge`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_keyword_facet:{token:`seo_keyword_facet`,schema:`seo`,table:`keyword_facet`,label:`Keyword Facet`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_keyword_market:{token:`seo_keyword_market`,schema:`seo`,table:`keyword_market`,label:`Keyword Market Data`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_keyword_market_observation:{token:`seo_keyword_market_observation`,schema:`seo`,table:`keyword_market_observation`,label:`Keyword Market Observation`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_keyword_place:{token:`seo_keyword_place`,schema:`seo`,table:`keyword_place`,label:`Keyword Place`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_keyword_saved_view:{token:`seo_keyword_saved_view`,schema:`seo`,table:`keyword_saved_view`,label:`Keyword Saved View`,baseTier:1,isComponent:!0,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_keyword_topic:{token:`seo_keyword_topic`,schema:`seo`,table:`keyword_topic`,label:`Keyword Topic Assignment`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_landscape_brief:{token:`seo_landscape_brief`,schema:`seo`,table:`landscape_brief`,label:`Competitive Landscape Brief`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_link_gap_domain:{token:`seo_link_gap_domain`,schema:`seo`,table:`link_gap_domain`,label:`Link Gap Domain`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_link_gap_match:{token:`seo_link_gap_match`,schema:`seo`,table:`link_gap_match`,label:`Link Gap Match`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_map_facet:{token:`seo_map_facet`,schema:`seo`,table:`map_facet`,label:`Topical map facet`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_map_facet_value:{token:`seo_map_facet_value`,schema:`seo`,table:`map_facet_value`,label:`Topical map facet value`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_map_topic:{token:`seo_map_topic`,schema:`seo`,table:`map_topic`,label:`Topical map topic`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_page_measurement_health:{token:`seo_page_measurement_health`,schema:`seo`,table:`page_measurement_health`,label:`Page Measurement Health`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_page_performance:{token:`seo_page_performance`,schema:`seo`,table:`page_performance`,label:`Page Performance`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_pr_moment:{token:`seo_pr_moment`,schema:`seo`,table:`pr_moment`,label:`PR Moment`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_provider_call:{token:`seo_provider_call`,schema:`seo`,table:`provider_call`,label:`SEO Provider Call`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_provider_task:{token:`seo_provider_task`,schema:`seo`,table:`provider_task`,label:`SEO Provider Task`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_rank_observation:{token:`seo_rank_observation`,schema:`seo`,table:`rank_observation`,label:`Rank Observation`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_rank_target:{token:`seo_rank_target`,schema:`seo`,table:`rank_target`,label:`SEO Rank Target`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_raw_payload:{token:`seo_raw_payload`,schema:`seo`,table:`raw_payload`,label:`SEO Raw Payload`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_referring_domain_profile:{token:`seo_referring_domain_profile`,schema:`seo`,table:`referring_domain_profile`,label:`Referring Domain Profile`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_reputation_case:{token:`seo_reputation_case`,schema:`seo`,table:`reputation_case`,label:`Reputation Case`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_search_performance_daily:{token:`seo_search_performance_daily`,schema:`seo`,table:`search_performance_daily`,label:`Search Performance Daily`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_serp_mention:{token:`seo_serp_mention`,schema:`seo`,table:`serp_mention`,label:`SERP Prospect Mention`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_serp_opportunity:{token:`seo_serp_opportunity`,schema:`seo`,table:`serp_opportunity`,label:`SERP Prospect Opportunity`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_serp_result:{token:`seo_serp_result`,schema:`seo`,table:`serp_result`,label:`SERP Result`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_serp_snapshot:{token:`seo_serp_snapshot`,schema:`seo`,table:`serp_snapshot`,label:`SERP Snapshot`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_site_geo_area:{token:`seo_site_geo_area`,schema:`seo`,table:`site_geo_area`,label:`Site Geo Area`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_site_keyword_offering:{token:`seo_site_keyword_offering`,schema:`seo`,table:`site_keyword_offering`,label:`Site Keyword Offering`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_site_keyword_value:{token:`seo_site_keyword_value`,schema:`seo`,table:`site_keyword_value`,label:`Site Keyword Value`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_site_offering_value:{token:`seo_site_offering_value`,schema:`seo`,table:`site_offering_value`,label:`Site Offering Value`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_site_topic_value:{token:`seo_site_topic_value`,schema:`seo`,table:`site_topic_value`,label:`Site Topic Value`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_site_value_combo:{token:`seo_site_value_combo`,schema:`seo`,table:`site_value_combo`,label:`Site Value Combination`,baseTier:1,isComponent:!0,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_site_value_worth:{token:`seo_site_value_worth`,schema:`seo`,table:`site_value_worth`,label:`Site Value Worth`,baseTier:1,isComponent:!0,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_site_vocabulary:{token:`seo_site_vocabulary`,schema:`seo`,table:`site_vocabulary`,label:`Site Vocabulary`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_source_request:{token:`seo_source_request`,schema:`seo`,table:`source_request`,label:`SEO Source Request`,baseTier:2,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_starter_pack:{token:`seo_starter_pack`,schema:`seo`,table:`starter_pack`,label:`SEO Industry Starter Pack`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_starter_pack_item:{token:`seo_starter_pack_item`,schema:`seo`,table:`starter_pack_item`,label:`SEO Starter Pack Item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_story_angle:{token:`seo_story_angle`,schema:`seo`,table:`story_angle`,label:`SEO Story Angle`,baseTier:2,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_topic:{token:`seo_topic`,schema:`seo`,table:`topic`,label:`SEO Topic`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`seo`,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},seo_topical_map:{token:`seo_topical_map`,schema:`seo`,table:`topical_map`,label:`Topical map`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_tracker_story:{token:`seo_tracker_story`,schema:`seo`,table:`tracker_story`,label:`Monitor Story`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_web_analytics_daily:{token:`seo_web_analytics_daily`,schema:`seo`,table:`web_analytics_daily`,label:`Web Analytics Daily`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},shareable_resource_registry:{token:`shareable_resource_registry`,schema:`platform`,table:`shareable_resource_registry`,label:`Shareable resource registry`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},shared_canvas_item:{token:`shared_canvas_item`,schema:`canvas`,table:`shared_canvas_items`,label:`Shared Canvas Item`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},short_link:{token:`short_link`,schema:`platform`,table:`short_links`,label:`Short Link`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},sign_in_fk_legacy:{token:`sign_in_fk_legacy`,schema:`platform`,table:`sign_in_fk_legacy`,label:`Sign-in reference baseline`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},skill:{token:`skill`,schema:`skill`,table:`definition`,label:`Skill`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Skills`,referencePickable:!0,titleColumn:`label`,contentRole:`utility`,referenceCategory:null},skill_detail:{token:`skill_detail`,schema:`skill`,table:`skill_detail`,label:`Skill Detail`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Skills`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},skill_render_definition:{token:`skill_render_definition`,schema:`skill`,table:`render_definition`,label:`Skill Render Definition`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Skills`,referencePickable:!0,titleColumn:`label`,contentRole:null,referenceCategory:null},sms_consent:{token:`sms_consent`,schema:`communication`,table:`sms_consent`,label:`SMS Consent`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},sms_conversation:{token:`sms_conversation`,schema:`communication`,table:`sms_conversations`,label:`SMS Conversation`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},sms_message:{token:`sms_message`,schema:`communication`,table:`sms_messages`,label:`SMS Message`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},sms_message_media:{token:`sms_message_media`,schema:`communication`,table:`sms_media`,label:`SMS Media`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`file_name`,contentRole:null,referenceCategory:null},sms_notification:{token:`sms_notification`,schema:`communication`,table:`sms_notifications`,label:`SMS Notification`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},sms_notification_preference:{token:`sms_notification_preference`,schema:`communication`,table:`sms_notification_preferences`,label:`SMS Notification Preference`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},sms_phone_number:{token:`sms_phone_number`,schema:`communication`,table:`sms_phone_numbers`,label:`SMS Phone Number`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},sms_rate_limits:{token:`sms_rate_limits`,schema:`communication`,table:`sms_rate_limits`,label:`Sms Rate Limits`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},sms_webhook_logs:{token:`sms_webhook_logs`,schema:`communication`,table:`sms_webhook_logs`,label:`Sms Webhook Logs`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},soft_delete_cascade_job:{token:`soft_delete_cascade_job`,schema:`platform`,table:`soft_delete_cascade_job`,label:`Soft-delete cascade job`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},soft_delete_edge:{token:`soft_delete_edge`,schema:`platform`,table:`soft_delete_edge`,label:`Soft Delete Edge`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},source_authority:{token:`source_authority`,schema:`platform`,table:`source_authority`,label:`Source authority`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},stage_ref_kind:{token:`stage_ref_kind`,schema:`growth`,table:`stage_ref_kind`,label:`Stage reference kind`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},stamped_write_table:{token:`stamped_write_table`,schema:`platform`,table:`stamped_write_table`,label:`Stamped Write Table`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},structure:{token:`structure`,schema:`files`,table:`structure`,label:`Structure`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},studio_cleaned_segments:{token:`studio_cleaned_segments`,schema:`transcripts`,table:`studio_cleaned_segments`,label:`Studio Cleaned Segments`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},studio_concept_items:{token:`studio_concept_items`,schema:`transcripts`,table:`studio_concept_items`,label:`Studio Concept Items`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},studio_documents:{token:`studio_documents`,schema:`transcripts`,table:`studio_documents`,label:`Studio Document`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},studio_module_segments:{token:`studio_module_segments`,schema:`transcripts`,table:`studio_module_segments`,label:`Studio Module Segments`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},studio_raw_segments:{token:`studio_raw_segments`,schema:`transcripts`,table:`studio_raw_segments`,label:`Studio Raw Segments`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},studio_recording_chunks:{token:`studio_recording_chunks`,schema:`transcripts`,table:`studio_recording_chunks`,label:`Studio Recording Chunk`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},studio_recording_segments:{token:`studio_recording_segments`,schema:`transcripts`,table:`studio_recording_segments`,label:`Studio Recording Segment`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},studio_run:{token:`studio_run`,schema:`transcripts`,table:`studio_runs`,label:`Studio Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},studio_session:{token:`studio_session`,schema:`transcripts`,table:`studio_sessions`,label:`Transcript Studio session`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:`source`,referenceCategory:null},studio_session_settings:{token:`studio_session_settings`,schema:`transcripts`,table:`studio_session_settings`,label:`Studio Session Settings`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},study_attempt:{token:`study_attempt`,schema:`education`,table:`study_attempt`,label:`Study Attempt`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},study_goal:{token:`study_goal`,schema:`education`,table:`study_goal`,label:`Study Goal`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},study_media:{token:`study_media`,schema:`education`,table:`study_media`,label:`Study Media`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},study_plan:{token:`study_plan`,schema:`education`,table:`study_plan`,label:`Study Plan`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},study_plan_block:{token:`study_plan_block`,schema:`education`,table:`study_plan_block`,label:`Study Plan Block`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`label`,contentRole:null,referenceCategory:null},study_plan_day:{token:`study_plan_day`,schema:`education`,table:`study_plan_day`,label:`Study Plan Day`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},study_reminder_context:{token:`study_reminder_context`,schema:`education`,table:`study_reminder_context`,label:`Study Reminder Context`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},study_reminder_delivery:{token:`study_reminder_delivery`,schema:`education`,table:`study_reminder_delivery`,label:`Study Reminder Delivery`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},study_session:{token:`study_session`,schema:`education`,table:`study_session`,label:`Study Session`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},study_source_chunk:{token:`study_source_chunk`,schema:`education`,table:`study_source_chunk`,label:`Study Source Chunk`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},study_streak:{token:`study_streak`,schema:`education`,table:`study_streak`,label:`Study streak`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},study_structured_section:{token:`study_structured_section`,schema:`education`,table:`study_structured_section`,label:`Study Structured Section`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},superseded_policy:{token:`superseded_policy`,schema:`iam`,table:`superseded_policy`,label:`Superseded Policy`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},surface:{token:`surface`,schema:`ui`,table:`ui_surface`,label:`UI Surface`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},system_announcement:{token:`system_announcement`,schema:`users`,table:`system_announcements`,label:`System announcement`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},system_context_item:{token:`system_context_item`,schema:`context`,table:`system_context_item`,label:`System Context Item`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},system_error:{token:`system_error`,schema:`ops`,table:`system_error`,label:`System Error`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},system_orgs:{token:`system_orgs`,schema:`iam`,table:`system_orgs`,label:`System Orgs`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},system_write_failure:{token:`system_write_failure`,schema:`ops`,table:`system_write_failure`,label:`System Write Failure`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},t13_backfill_ledger:{token:`t13_backfill_ledger`,schema:`ops`,table:`t13_backfill_ledger`,label:`T-13 backfill ledger`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},t13_default_ledger:{token:`t13_default_ledger`,schema:`ops`,table:`t13_default_ledger`,label:`T-13 default ledger`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},t13_row_column_events:{token:`t13_row_column_events`,schema:`ops`,table:`t13_row_column_events`,label:`T-13 row column events`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},tag:{token:`tag`,schema:`platform`,table:`tag`,label:`Tag`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},task:{token:`task`,schema:`projects`,table:`tasks`,label:`Task`,baseTier:1,isComponent:!1,isModule:!0,isListed:!1,scopeable:!0,category:`Workspaces`,referencePickable:!0,titleColumn:`title`,contentRole:`container`,referenceCategory:null},task_user_state:{token:`task_user_state`,schema:`projects`,table:`task_user_state`,label:`Task user state`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},taxonomy_node:{token:`taxonomy_node`,schema:`platform`,table:`taxonomy_node`,label:`Taxonomy node`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},team:{token:`team`,schema:`iam`,table:`team`,label:`Team`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!1,category:`Organizations`,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},template_context_items:{token:`template_context_items`,schema:`context`,table:`template_context_items`,label:`Template Context Items`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},template_scope_types:{token:`template_scope_types`,schema:`context`,table:`template_scope_types`,label:`Template Scope Types`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},templates:{token:`templates`,schema:`context`,table:`templates`,label:`Templates`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},test_handset_inbox:{token:`test_handset_inbox`,schema:`communication`,table:`test_handset_inbox`,label:`Test Handset Inbox`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},test_handset_verification:{token:`test_handset_verification`,schema:`communication`,table:`test_handset_verification`,label:`Test Handset Verification`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},thread:{token:`thread`,schema:`projects`,table:`threads`,label:`Thread`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},tool:{token:`tool`,schema:`tool`,table:`definition`,label:`Tool`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Tools`,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},tool_binding:{token:`tool_binding`,schema:`tool`,table:`binding`,label:`Tool binding`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},tool_bundle:{token:`tool_bundle`,schema:`tool`,table:`bundle`,label:`Tool Bundle`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Tools`,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},tool_call:{token:`tool_call`,schema:`chat`,table:`tool_call`,label:`Tool Call`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},tool_definition_version:{token:`tool_definition_version`,schema:`tool`,table:`definition_version`,label:`Tool Definition Version`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Tools`,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},tool_executor:{token:`tool_executor`,schema:`tool`,table:`executor`,label:`Tool executor`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},tool_surface_defaults:{token:`tool_surface_defaults`,schema:`tool`,table:`surface_defaults`,label:`Tool surface defaults`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},tool_test_sample:{token:`tool_test_sample`,schema:`tool`,table:`test_sample`,label:`Tool Test Sample`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Tools`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},tool_ui:{token:`tool_ui`,schema:`tool`,table:`ui`,label:`Tool UI`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Tools`,referencePickable:!1,titleColumn:`display_name`,contentRole:null,referenceCategory:null},tool_ui_incident:{token:`tool_ui_incident`,schema:`tool`,table:`ui_incident`,label:`Tool UI Incident`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Tools`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},tool_ui_version:{token:`tool_ui_version`,schema:`tool`,table:`ui_version`,label:`Tool UI Version`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Tools`,referencePickable:!1,titleColumn:`display_name`,contentRole:null,referenceCategory:null},topic_placement_queue:{token:`topic_placement_queue`,schema:`seo`,table:`topic_placement_queue`,label:`Topic Placement Queue`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},transcript:{token:`transcript`,schema:`transcripts`,table:`transcripts`,label:`Transcript`,baseTier:1,isComponent:!1,isModule:!0,isListed:!1,scopeable:!0,category:`Sources`,referencePickable:!0,titleColumn:`title`,contentRole:`source`,referenceCategory:null},trigger_event:{token:`trigger_event`,schema:`workflow`,table:`trigger_event`,label:`Trigger Event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},udt_dataset_template:{token:`udt_dataset_template`,schema:`workbench`,table:`udt_dataset_templates`,label:`Dataset template`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},udt_dataset_template_fields:{token:`udt_dataset_template_fields`,schema:`workbench`,table:`udt_dataset_template_fields`,label:`Udt Dataset Template Fields`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},udt_document:{token:`udt_document`,schema:`workbench`,table:`udt_documents`,label:`Cloud document`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`document_name`,contentRole:`hybrid`,referenceCategory:null},udt_document_snapshot:{token:`udt_document_snapshot`,schema:`workbench`,table:`udt_document_snapshots`,label:`Document snapshot`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},udt_workbook_snapshot:{token:`udt_workbook_snapshot`,schema:`workbench`,table:`udt_workbook_snapshots`,label:`Workbook snapshot`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ui_client:{token:`ui_client`,schema:`ui`,table:`ui_client`,label:`UI client`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ui_surface_agent_pref:{token:`ui_surface_agent_pref`,schema:`ui`,table:`ui_surface_agent_pref`,label:`UI Surface Agent Pref`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ui_surface_agent_role:{token:`ui_surface_agent_role`,schema:`ui`,table:`ui_surface_agent_role`,label:`UI surface agent role`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ui_surface_client_tool:{token:`ui_surface_client_tool`,schema:`ui`,table:`ui_surface_client_tool`,label:`UI surface client tool`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ui_surface_config:{token:`ui_surface_config`,schema:`ui`,table:`ui_surface_config`,label:`UI Surface Config`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ui_surface_item_type:{token:`ui_surface_item_type`,schema:`ui`,table:`ui_surface_item_type`,label:`UI surface item type`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ui_surface_value:{token:`ui_surface_value`,schema:`ui`,table:`ui_surface_value`,label:`UI surface value`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ui_surface_write_target:{token:`ui_surface_write_target`,schema:`ui`,table:`ui_surface_write_target`,label:`UI surface write target`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},univer_payload:{token:`univer_payload`,schema:`content`,table:`univer_payload`,label:`Univer Payload`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Documents`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},unsubscribe_token:{token:`unsubscribe_token`,schema:`crm`,table:`unsubscribe_token`,label:`Unsubscribe Token`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},uploads_inflight:{token:`uploads_inflight`,schema:`files`,table:`uploads_inflight`,label:`Uploads Inflight`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user:{token:`user`,schema:`iam`,table:`users`,label:`User`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_achievement:{token:`user_achievement`,schema:`users`,table:`user_achievements`,label:`User Achievement`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_active_context:{token:`user_active_context`,schema:`context`,table:`user_active_context`,label:`Active context`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_analysis_preference:{token:`user_analysis_preference`,schema:`users`,table:`user_analysis_preferences`,label:`User Analysis Preference`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_email_preference:{token:`user_email_preference`,schema:`users`,table:`user_email_preferences`,label:`User Email Preference`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_entity_state:{token:`user_entity_state`,schema:`platform`,table:`user_entity_state`,label:`User entity state`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_feedback:{token:`user_feedback`,schema:`users`,table:`user_feedback`,label:`User Feedback`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_follows:{token:`user_follows`,schema:`users`,table:`user_follows`,label:`User Follows`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_form_profile:{token:`user_form_profile`,schema:`users`,table:`user_form_profile`,label:`User Form Profile`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_markdown_sample:{token:`user_markdown_sample`,schema:`users`,table:`user_markdown_samples`,label:`User Markdown Sample`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},user_memory:{token:`user_memory`,schema:`users`,table:`user_memory`,label:`User Memory`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_preference:{token:`user_preference`,schema:`users`,table:`user_preferences`,label:`User Preference`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_profile:{token:`user_profile`,schema:`users`,table:`profiles`,label:`User Profile`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`display_name`,contentRole:null,referenceCategory:null},user_secret:{token:`user_secret`,schema:`users`,table:`user_secrets`,label:`User secret`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_secret_audit:{token:`user_secret_audit`,schema:`users`,table:`user_secret_audit`,label:`Secret audit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_secret_grant:{token:`user_secret_grant`,schema:`users`,table:`user_secret_grants`,label:`Secret grant`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_stat:{token:`user_stat`,schema:`users`,table:`user_stats`,label:`User Stats`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_storage_usage:{token:`user_storage_usage`,schema:`files`,table:`user_storage_usage`,label:`Storage usage`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_surface_state:{token:`user_surface_state`,schema:`users`,table:`user_surface_state`,label:`User Surface State`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},vault_fill_approvals:{token:`vault_fill_approvals`,schema:`users`,table:`_vault_fill_approvals`,label:`Vault fill approvals`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},vault_fill_devices:{token:`vault_fill_devices`,schema:`users`,table:`_vault_fill_devices`,label:`Vault fill devices`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},vault_fill_nonces:{token:`vault_fill_nonces`,schema:`users`,table:`_vault_fill_nonces`,label:`Vault fill nonces`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},visibility_cache:{token:`visibility_cache`,schema:`custom`,table:`visibility_cache`,label:`Visibility Cache`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},visibility_epoch:{token:`visibility_epoch`,schema:`custom`,table:`visibility_epoch`,label:`Visibility Epoch`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},voice:{token:`voice`,schema:`ai`,table:`voices`,label:`Voice`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},war_room:{token:`war_room`,schema:`projects`,table:`war_rooms`,label:`War Room`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},wbx_demo:{token:`wbx_demo`,schema:`extend`,table:`wbx_demo`,label:`Extension demo record`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},wbx_guidance:{token:`wbx_guidance`,schema:`extend`,table:`wbx_guidance`,label:`Extension Guidance`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},wbx_highlight:{token:`wbx_highlight`,schema:`extend`,table:`wbx_highlight`,label:`Extension Highlight`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},wbx_pattern:{token:`wbx_pattern`,schema:`extend`,table:`wbx_pattern`,label:`Extension Scrape Pattern`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},wbx_recipe:{token:`wbx_recipe`,schema:`extend`,table:`wbx_recipe`,label:`Extension recipe`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},wbx_screenshot:{token:`wbx_screenshot`,schema:`extend`,table:`wbx_screenshot`,label:`Extension Screenshot`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},wbx_seo_audit:{token:`wbx_seo_audit`,schema:`extend`,table:`wbx_seo_audit`,label:`Extension SEO Audit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},wc_claim:{token:`wc_claim`,schema:`legal`,table:`wc_claim`,label:`WC Claim`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},wc_impairment_definition:{token:`wc_impairment_definition`,schema:`legal`,table:`wc_impairment_definition`,label:`WC Impairment Definition`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},wc_injury:{token:`wc_injury`,schema:`legal`,table:`wc_injury`,label:`WC Injury`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},wc_report:{token:`wc_report`,schema:`legal`,table:`wc_report`,label:`WC Report`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_analysis_item:{token:`web_analysis_item`,schema:`web`,table:`analysis_item`,label:`Analysis Item`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`label`,contentRole:null,referenceCategory:null},web_brand:{token:`web_brand`,schema:`web`,table:`brand`,label:`Brand`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},web_brand_asset:{token:`web_brand_asset`,schema:`web`,table:`brand_asset`,label:`Brand Asset`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},web_brand_offering:{token:`web_brand_offering`,schema:`web`,table:`brand_offering`,label:`Brand Offering`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_business_fact:{token:`web_business_fact`,schema:`web`,table:`business_fact`,label:`Business Fact`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`label`,contentRole:null,referenceCategory:null},web_business_location:{token:`web_business_location`,schema:`web`,table:`business_location`,label:`Business Location`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_channel_analytics_daily:{token:`web_channel_analytics_daily`,schema:`web`,table:`channel_analytics_daily`,label:`Channel analytics (daily)`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_crawl_event:{token:`web_crawl_event`,schema:`web`,table:`crawl_event`,label:`Web Crawl Event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_crawl_preset:{token:`web_crawl_preset`,schema:`web`,table:`crawl_preset`,label:`Web Crawl Preset`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},web_crawl_schedule:{token:`web_crawl_schedule`,schema:`web`,table:`crawl_schedule`,label:`Web Crawl Schedule`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},web_crawl_session:{token:`web_crawl_session`,schema:`web`,table:`crawl_session`,label:`Crawl Session`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_crawl_url:{token:`web_crawl_url`,schema:`web`,table:`crawl_url`,label:`Web Crawl URL`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_discovered_item:{token:`web_discovered_item`,schema:`web`,table:`discovered_item`,label:`Discovered Item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_finding:{token:`web_finding`,schema:`web`,table:`finding`,label:`Finding`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_gsc_page_stat:{token:`web_gsc_page_stat`,schema:`web`,table:`gsc_page_stat`,label:`GSC Page Stat`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_link_edge:{token:`web_link_edge`,schema:`web`,table:`link_edge`,label:`Link Edge`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_listing_publisher:{token:`web_listing_publisher`,schema:`web`,table:`listing_publisher`,label:`Listing Publisher`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_location_listing:{token:`web_location_listing`,schema:`web`,table:`location_listing`,label:`Location Listing`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_news_item:{token:`web_news_item`,schema:`web`,table:`news_item`,label:`News Item`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_offering_template:{token:`web_offering_template`,schema:`web`,table:`offering_template`,label:`Offering Template`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_page:{token:`web_page`,schema:`web`,table:`page`,label:`Site page`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`url`,contentRole:`source`,referenceCategory:null},web_page_content:{token:`web_page_content`,schema:`web`,table:`page_content`,label:`Page Draft Content`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_page_evidence:{token:`web_page_evidence`,schema:`web`,table:`page_evidence`,label:`Web Page Evidence`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_page_sitemap:{token:`web_page_sitemap`,schema:`web`,table:`page_sitemap`,label:`Page Sitemap Membership`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_property:{token:`web_property`,schema:`web`,table:`property`,label:`Brand Property`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`display_name`,contentRole:null,referenceCategory:null},web_provider:{token:`web_provider`,schema:`web`,table:`provider`,label:`Provider`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`label`,contentRole:null,referenceCategory:null},web_result:{token:`web_result`,schema:`web`,table:`analysis_result`,label:`Analysis Result`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_screenshot:{token:`web_screenshot`,schema:`web`,table:`screenshot`,label:`Screenshot`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_site:{token:`web_site`,schema:`web`,table:`site`,label:`Site`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},web_site_endpoint_rule:{token:`web_site_endpoint_rule`,schema:`web`,table:`site_endpoint_rule`,label:`Site Endpoint Rule`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`path_prefix`,contentRole:null,referenceCategory:null},web_site_item_config:{token:`web_site_item_config`,schema:`web`,table:`site_item_config`,label:`Site Item Config`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_site_offering:{token:`web_site_offering`,schema:`web`,table:`site_offering`,label:`Site Offering`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_sitemap:{token:`web_sitemap`,schema:`web`,table:`sitemap`,label:`Sitemap`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`url`,contentRole:null,referenceCategory:null},web_snapshot:{token:`web_snapshot`,schema:`web`,table:`snapshot`,label:`Snapshot`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_tag_manager_snapshot:{token:`web_tag_manager_snapshot`,schema:`web`,table:`tag_manager_snapshot`,label:`Tag Manager snapshot`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_voice_fingerprint:{token:`web_voice_fingerprint`,schema:`web`,table:`voice_fingerprint`,label:`Voice Fingerprint`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_youtube_video:{token:`web_youtube_video`,schema:`web`,table:`youtube_video`,label:`YouTube video`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},webhook_deliveries:{token:`webhook_deliveries`,schema:`files`,table:`webhook_deliveries`,label:`Webhook Deliveries`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},webhook_dispatch_state:{token:`webhook_dispatch_state`,schema:`files`,table:`webhook_dispatch_state`,label:`Webhook Dispatch State`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},webhooks:{token:`webhooks`,schema:`files`,table:`webhooks`,label:`Webhooks`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},wf_node_data_slot:{token:`wf_node_data_slot`,schema:`workflow`,table:`node_data_slot`,label:`Workflow Node Data Slot`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},work_claim:{token:`work_claim`,schema:`platform`,table:`_work_claim`,label:`Work Claim`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},work_item:{token:`work_item`,schema:`runtime`,table:`work_item`,label:`Runtime Work Item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workbook:{token:`workbook`,schema:`workbench`,table:`udt_workbooks`,label:`Workbook`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`workbook_name`,contentRole:`hybrid`,referenceCategory:null},worker_heartbeat:{token:`worker_heartbeat`,schema:`workflow`,table:`worker_heartbeat`,label:`Worker Heartbeat`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow:{token:`workflow`,schema:`workflow`,table:`definition`,label:`Workflow`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:`utility`,referenceCategory:null},workflow_card:{token:`workflow_card`,schema:`workflow`,table:`card`,label:`Workflow Card`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_checkpoint:{token:`workflow_checkpoint`,schema:`workflow`,table:`checkpoint`,label:`Workflow Checkpoint`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_comparison:{token:`workflow_comparison`,schema:`workflow`,table:`comparison`,label:`Workflow Comparison`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_definition_version:{token:`workflow_definition_version`,schema:`workflow`,table:`definition_version`,label:`Workflow Definition Version`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},workflow_idempotency:{token:`workflow_idempotency`,schema:`workflow`,table:`idempotency`,label:`Workflow Idempotency`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_job:{token:`workflow_job`,schema:`workflow`,table:`job`,label:`Workflow Job`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_node_events:{token:`workflow_node_events`,schema:`workflow`,table:`node_events`,label:`Workflow Node Events`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_node_outcome:{token:`workflow_node_outcome`,schema:`workflow`,table:`node_outcome`,label:`Workflow Node Outcome`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_plan:{token:`workflow_plan`,schema:`workflow`,table:`plan`,label:`Workflow Plan`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},workflow_plan_event:{token:`workflow_plan_event`,schema:`workflow`,table:`plan_event`,label:`Workflow Plan Event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_plan_sample:{token:`workflow_plan_sample`,schema:`workflow`,table:`plan_sample`,label:`Workflow Plan Sample`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_recovery_audit:{token:`workflow_recovery_audit`,schema:`workflow`,table:`recovery_audit`,label:`Workflow Recovery Audit`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_run:{token:`workflow_run`,schema:`workflow`,table:`run`,label:`Workflow Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_run_cost:{token:`workflow_run_cost`,schema:`workflow`,table:`_run_cost`,label:`Workflow run cost`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_run_facts:{token:`workflow_run_facts`,schema:`workflow`,table:`_run_facts`,label:`Workflow run facts`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_run_log:{token:`workflow_run_log`,schema:`workflow`,table:`run_log`,label:`Workflow Run Log`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_runtime_surface:{token:`workflow_runtime_surface`,schema:`workflow`,table:`runtime_surface`,label:`Run Surface`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_template:{token:`workflow_template`,schema:`workflow`,table:`template`,label:`Workflow Template`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},workflow_trigger:{token:`workflow_trigger`,schema:`workflow`,table:`trigger`,label:`Workflow Trigger`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},workflow_trigger_fire:{token:`workflow_trigger_fire`,schema:`workflow`,table:`trigger_fire`,label:`Workflow Trigger Fire`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_work_item:{token:`workflow_work_item`,schema:`workflow`,table:`work_item`,label:`Work Item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},working_document:{token:`working_document`,schema:`workbench`,table:`working_documents`,label:`Working Document`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!0,titleColumn:`title`,contentRole:`destination`,referenceCategory:null},write_guard_key:{token:`write_guard_key`,schema:`hr`,table:`_write_guard_key`,label:`Write Guard Key`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},youtube_quota_day:{token:`youtube_quota_day`,schema:`research`,table:`youtube_quota_day`,label:`Youtube Quota Day`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},youtube_search:{token:`youtube_search`,schema:`research`,table:`youtube_search`,label:`YouTube Search`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},youtube_video:{token:`youtube_video`,schema:`research`,table:`youtube_video`,label:`YouTube Video`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`title`,contentRole:`source`,referenceCategory:null}},hD=new Set(`access_delta_probe.access_delta_run.access_request.account_addon.acquisition_block.activity.admin_audit_log.admin_email_log.admin_markdown_sample.admin_user.admission_config.agent.agent_card.agent_definition_version.agent_drift_alert.agent_exemplar.agent_mandate_note.agent_prompt_remediation.agent_run.agent_run_stage.agent_schedule.agent_schedule_claim.agent_shortcut.agent_surface_binding.agent_template.agent_term_list.agent_usage.ai_api.ai_calls.ai_endpoint.ai_model.ai_model_alias.ai_offering.ai_provider.ai_setting.ai_setting_profile.ai_translation_cell.ai_usage_executions.ai_usage_hourly.ai_usage_hourly_watermark.analysis_result.anon_form.anon_function_birth_grandfather.anon_hit.anon_inbound.anon_replay.anon_submission.anon_token.api_field_warning.api_request_log.app.app_config.app_config_history.app_definition_version.app_error.app_execution.app_instance.app_log.app_log_muted_pattern.app_log_norm_exception.app_rate_limit.app_setting.app_sync_status.approach.artifact.assessment.assessment_item.assessment_result.assignment_session.assist.assist_producer_policy.assist_producer_policy_history.association_type.assurance_level.attempt.audit_broken_functions.audit_canonical_findings.audit_exemption.audit_function_deps.audit_function_runtime_probe.audit_m2m_candidates.audit_refresh_log.audit_stale_registry.audit_unregistered_candidates.base_entity_template.batch_cost_event.batch_provider_batch.batch_work_item.billing_capability.billing_capability_limit.billing_connect_account.billing_coupon.billing_coupon_redemption.billing_customer.billing_free_period_grant.billing_plan.billing_plan_limit.billing_price.billing_product.billing_spend_approval.billing_spend_guardrail.billing_stripe_event.billing_subscription.billing_usage_ledger.billing_usage_reset.billing_user_plan.board.browser_account_binding.browser_action_event.browser_authenticator_window.browser_capture.browser_control_request.browser_handoff.browser_login_attempt.browser_login_recipe.browser_profile.browser_profile_checkpoint.browser_run.browser_site_observation.browser_site_policy.browser_stream_ticket.build_lock.calendar_event.campaign_watch_ramp_gate_run.campaign_watch_switch_outbox.campaign_watch_switch_window.canvas_comment.canvas_comment_like.canvas_item.canvas_item_state.canvas_like.canvas_score.canvas_view.capture_window.carrying_rule.catalog_entries_history.catalog_entry.category.change_type_default.chat_user_usage_summary.citations.class_purchase.classifier_revision_ledger.client_callable_door.client_callable_door_retirement.client_excluded_column_unregistered.cmp_entry.cmp_feedback.code_file.code_folder.code_repository.coding_session.coding_session_entry.comment.commerce_asset_allocation.commerce_asset_grading.commerce_asset_identifier.commerce_asset_lot_event.commerce_asset_mandate_result.commerce_asset_price_factor.commerce_asset_reshoot_request.commerce_asset_review.commerce_asset_unknown.commerce_certified_printer.commerce_cloud_sync_connection.commerce_ebay_business_policy.commerce_ebay_category.commerce_ebay_category_aspect.commerce_ebay_category_tree.commerce_ebay_custom_policy.commerce_ebay_inventory_item.commerce_ebay_inventory_item_group.commerce_ebay_inventory_item_group_member.commerce_ebay_inventory_location.commerce_ebay_listing.commerce_ebay_marketplace_policy.commerce_ebay_media_asset.commerce_ebay_notification_destination.commerce_ebay_notification_event.commerce_ebay_notification_subscription.commerce_ebay_notification_topic.commerce_ebay_offer.commerce_ebay_order.commerce_ebay_order_line_item.commerce_ebay_shipping_fulfillment.commerce_ebay_store_category.commerce_human_correction.commerce_intake_artifact.commerce_intake_asset.commerce_intake_batch.commerce_label_batch.commerce_label_code.commerce_marketplace_account.commerce_marketplace_account_deletion_audit.commerce_marketplace_api_call.commerce_marketplace_rate_budget.commerce_marketplace_site.commerce_marketplace_sync_run.commerce_prediction_outcome.commerce_print_order.commerce_product.commerce_product_channel_ref.commerce_product_media.commerce_product_variant.commerce_recall_audit.communication_calendar_selected_snapshot_state.communication_channel_readiness.comparison_set.contact_medium.contact_submission.content_certification.content_ir_kind.content_ir_kind_component.content_ir_kind_component_incident.content_ir_kind_conformance.content_ir_kind_edge.content_ir_kind_example.content_ir_kind_instance.content_ir_kind_surface.content_lane.context_access_log.context_item.context_item_suggestion.context_item_value.context_value_refs.conversation.conversation_value.courts.credential_attachment.credential_item.credential_mutation_receipt.crm_address.crm_affiliation.crm_blocklist_entry.crm_contact_candidate.crm_deal.crm_deal_stage_event.crm_enrichment_call.crm_interaction.crm_merge_candidate.crm_outreach_list.crm_outreach_list_member.crm_party_merge.crm_party_research.crm_registry_ingest_run.crm_registry_source.crm_sending_claim.crm_sending_event.crm_sending_identity.crm_sending_identity_check.crm_sending_policy.custom_agent_table_trust.custom_agg_digest_checked.custom_entity_definition.custom_field_definition.custom_field_target.custom_io_outbox_consumer.custom_io_outbox_consumption.custom_record.custom_share_tails_mine_repair.custom_template.custom_template_install.cx_agent_memory.cx_agent_plan.cx_agent_task.cx_code_edit.cx_code_message_file.cx_media.cx_observational_memory.cx_observational_memory_event.cx_pending_injection.cx_request.cx_request_snapshot.cx_tool_trace.cx_user_request.cx_user_todo.data_rights_event.data_store.data_store_members.ddl_guard_log.deck_suggestion.definer_class_exemption.definer_client_grant_grandfather.definer_grant_baseline.deprecated_relation.derive_run.dev_login_audit.dict_entry.dict_provider_publication.dict_setting.dm_conversation.dm_message.dm_participant.doc_render.doc_signature.dockets.document.document_version.domain_classification.edge_payload_kind.egress_device.egress_pairing.egress_ticket.emails.embedding_cache.embeddings_google_gemini_2_1536.embeddings_oai_3_small_1536.embeddings_voyage_4_large_1024.embeddings_voyage_code_3_1024.endpoint_family_sweep_state.engine_owner_task.entity_grant.entity_protected_value.entity_protected_value_version.entity_relationship.entity_type.esign_campaign.esign_campaign_member.esign_consent_disclosure.esign_envelope.esign_envelope_certificate.esign_envelope_document.esign_envelope_event.esign_envelope_external_ref.esign_envelope_signer.esign_provider.esign_provider_binding.esign_signing_key.execution_event_cursor.extension_auth_code.external_link.external_source.extract_sweep_state.fc_card.fc_detail.fc_set.feature_doc.feature_knob.feedback_comments.feedback_user_messages.file.file_analysis.file_entities.file_overrides.file_page_annotations.file_pages.file_rag_job.file_version.files_account_tier.files_machine_written_prefix.files_sync_mapping.files_user_account.flexible_data.folder.function_contract.game_badge.game_result.game_room.global_execution.global_execution_checkpoint.global_execution_control.global_execution_event.global_meter_entry.global_origin.global_request.google_document.growth_loop_event.growth_loop_run.growth_loop_stage_run.guardian_link.guest_conversion_audit.guest_execution_log.guest_executions.guided_checklist_run.heatmap_save.hindsight_enrollment.hindsight_finding.hindsight_regression_case.hindsight_replay.hindsight_replay_step.hindsight_review.hr_access_audit.hr_access_role.hr_accommodation_request.hr_ai_evidence.hr_alert_routing_rule.hr_application.hr_approval_authority.hr_approval_delegation.hr_asset.hr_asset_assignment.hr_attendance_exception.hr_auto_close_rule.hr_availability.hr_background_check.hr_benefits_event.hr_calculation_snapshot.hr_candidate.hr_candidate_conversion.hr_candidate_message.hr_careers_portal.hr_checklist_item.hr_checklist_run.hr_checklist_template.hr_checklist_template_item.hr_compensation.hr_corrective_action.hr_course.hr_course_version.hr_credential.hr_crew.hr_deduction_code.hr_department.hr_derived_grant.hr_disposition_event.hr_earning_code.hr_eeo_response.hr_emergency_contact.hr_employee.hr_employee_private.hr_employer_profile.hr_employment.hr_employment_pin.hr_engagement.hr_establishment.hr_external_identity.hr_field_policy.hr_holiday.hr_holiday_calendar.hr_i9.hr_i9_document.hr_incident.hr_incident_party.hr_interview.hr_interview_kit.hr_job_title.hr_jurisdiction.hr_jurisdiction_rule.hr_jurisdiction_rule_class.hr_jurisdiction_rule_org_decision.hr_jurisdiction_rule_test.hr_kiosk_device.hr_kiosk_session.hr_labor_target.hr_leave_case.hr_leave_enrollment.hr_leave_ledger.hr_leave_policy.hr_leave_request.hr_legal_hold.hr_legal_hold_item.hr_location.hr_new_hire_report.hr_offer.hr_opening.hr_overtime_alert.hr_overtime_alert_rule.hr_overtime_preapproval.hr_pay_group.hr_pay_period.hr_pay_period_employment.hr_payroll_export.hr_payroll_export_line.hr_position_assignment.hr_posting.hr_posting_publication.hr_provider_binding.hr_provider_event.hr_provisioning_result.hr_punch.hr_recalculation_batch.hr_record_class.hr_records_request.hr_reference_check.hr_reporting_line.hr_requisition.hr_restricted_note.hr_retention_rule.hr_role_assignment.hr_schedule.hr_schedule_change.hr_schedule_guidance.hr_schedule_template.hr_schedule_template_shift.hr_scorecard.hr_separation.hr_shift.hr_shift_claim.hr_staffing_requirement.hr_survey.hr_survey_invitation.hr_survey_question.hr_survey_response.hr_tax_registration.hr_tax_withholding.hr_time_adjustment.hr_training_assignment.hr_training_attempt.hr_transcript_entry.hr_verification_letter_request.hr_work_interval.hr_workflow_binding.hr_workflow_decision.hr_workflow_definition.hr_workflow_event.hr_workflow_failure.hr_workflow_flow_type.hr_workflow_instance.hr_workflow_step.hr_workflow_step_definition.hr_workweek.html_extraction.iam_access_audit.iam_api_key.iam_emergency_door_request.iam_org_availability_key.iam_read_lane_v2_rollout.idempotency.industry.industry_curator.infra_status.ingest_runs.integration_connection.integration_connection_resource.interview_decision_interview.interview_decision_question.interview_document_revision.interview_hole.interview_question.interview_session.interview_turn.invitation.invitation_code.invitation_request.io_comment.io_contract.io_import.io_outbox.item.item_mastery.judge_verdict.jurisdiction_policy.keyword_classification_queue.kg_alert.kg_chunk_entities.kg_chunks.kg_clusters.kg_edges.kg_entities.kg_entity_aliases.kg_suggestion_ack.kg_sweep_queue.kg_sweep_run.kg_sweep_state.kg_value_match.knob_override.knob_override_audit.knob_rung_lock.knob_scope_kind.knob_write_door.league_membership.learn_doc.library_doc.lifecycle_archive.lifecycle_archive_row.lifecycle_audit.lifecycle_entity_plan.lifecycle_map_build.lifecycle_reference_map.lifecycle_run.lifecycle_tier_ledger.location.mandate.mandate_advance_batch_row.mandate_binding.mandate_candidate.mandate_candidate_run.mandate_candidate_run_payload.mandate_goal_clauses.mandate_observation.mandate_reference.mandate_scan.mandate_treatment.marketing_initiative.masterwork_corpus_item.masterwork_run.masterwork_run_kind.masterwork_source.math_course_structure.math_problem.matrx_action_ledger.mcp_config.mcp_server.mcp_user_conn.media_capture_handoff.media_catalog_setting.media_library_item.media_selection_item.media_selection_job.media_source_library.meet_call_invite.meet_chat_message.meet_invitee.meet_meeting.meet_note.meet_occurrence_override.meet_participant.meet_recording.meet_transcript_segment.membership.membership_grant.merge_field_provenance.message.message_template.message_template_detail.meta_excluded_schema.meta_table_stats_history.metadata_reserved_keys.migration_log.mtx_media_heal_queue.mtx_public_url_guard.ner_shadow.note.note_folder.notification.notification_channel_preference.notification_event_override.notification_event_type.notification_preference.notification_submission.notify_outsider_door_baseline.oauth_handoff_claim.opinion_clusters.opinions.ops_check_item.ops_check_run.ops_db_host_sample.ops_issue_class.ops_issue_event.ops_proof_check.ops_proof_run.ops_proof_scenario.org_admin_audit.org_change_policy.org_context_ledger.org_industries.org_member_control.org_module_config.org_plan.organization.organization_preferences.organization_visibility_version.output_feedback.outreach_acceptance.page_extraction_job.page_extraction_page_run.page_extraction_results.page_extraction_runs.page_intent_queue.page_mapping_queue.part_config.part_config_sub.party.party_contact_point.passkey_credential.pc_article.pc_episode.pc_show.pc_studio_run.pc_studio_run_asset.pdf_consolidation_log.pdf_redaction_audit.pdf_redaction_key_escrow.permission_grant.plan_cms_fill_item.plan_cms_fill_job.plan_entity.plan_node.plan_node_artifact.plan_node_step.plan_profile.platform_action_request.platform_actor_session.platform_actor_token.platform_actor_token_event.platform_class_approval_by_arman.platform_continued_access.platform_cutover_census_run.platform_cutover_evaluation_replaced.platform_cutover_evaluation_write.platform_cutover_seam.platform_cutover_seam_measure.platform_cutover_seam_press.platform_dated_change.platform_doors_only_pending_cutover.platform_google_calendar_event_create_intent.platform_google_task_create_intent.platform_kernel_fingerprint_record.platform_outcome_event.platform_outsider_consumer.platform_provision_base_contract_pending.platform_reachability.platform_reachability_rebuild_pending.platform_realtime_topic_prefix.platform_reference_category.platform_reference_declaration.platform_repo.platform_saved_view.platform_schema.platform_secure_delivery.platform_share_link.platform_strict_class_probe.podcast_race.position.processed_document.processed_document_page.product_capture_file.product_capture_item.product_capture_payload.product_capture_product.product_capture_question.project.provider_account.provider_account_credential.provision.provision_generate_target.provision_grant.provision_marker.provision_rule_message.provision_schema.provision_shape_debt.provision_spec.provision_spec_grandfather.provision_vocabulary.purpose.quiz_session.rag_ingest_run.rag_library_audit_log.rate_limit_buckets.reachability_pending.recompute_queue.record.record_alias.redaction_mapping.research_analysis.research_content.research_context_bundle.research_document.research_intent.research_keyword.research_media.research_source.research_synthesis.research_tag.research_template.research_topic.retention_policy.retrieval_audit.review_queue.route_manifest_entry.row_version.rulebook.runtime_operation_stream.runtime_operation_stream_batch.sandbox_instance.sch_agent_task.sch_run.sch_task.sch_trigger.schema_client_exposure.schema_migration_ledger.schema_migration_legacy.schema_migration_slot_grandfather.schema_templates.scope.scope_association_suggestion.scope_dataset_instance.scope_door_registry.scope_item_value_suggestion.scope_suggestion.scope_type.scrape_domain.scrape_domain_settings.scrape_failure_log.scrape_parsed_page.scrape_path_override.scrape_path_pattern.scrape_retry_queue.search_item.seo_ai_capability.seo_ai_visibility_citation.seo_ai_visibility_claim.seo_ai_visibility_panel.seo_ai_visibility_response.seo_ai_visibility_signal.seo_backlink.seo_backlink_change_event.seo_backlink_dimension_snapshot.seo_backlink_observation.seo_backlink_snapshot.seo_change_assessment.seo_change_event.seo_change_item.seo_change_metric.seo_change_set.seo_change_theory.seo_collection_run.seo_competitor.seo_competitor_observation.seo_competitor_opportunity.seo_coverage_mention.seo_coverage_tracker.seo_dimension_value_matcher.seo_engine_schedule.seo_geo_place.seo_gsc_dig_rule.seo_keyword.seo_keyword_class_rule.seo_keyword_edge.seo_keyword_facet.seo_keyword_market.seo_keyword_market_observation.seo_keyword_place.seo_keyword_saved_view.seo_keyword_topic.seo_landscape_brief.seo_link_gap_domain.seo_link_gap_match.seo_map_facet.seo_map_facet_value.seo_map_topic.seo_page_measurement_health.seo_page_performance.seo_pr_moment.seo_provider_call.seo_provider_task.seo_rank_observation.seo_rank_target.seo_raw_payload.seo_referring_domain_profile.seo_reputation_case.seo_search_performance_daily.seo_serp_mention.seo_serp_opportunity.seo_serp_result.seo_serp_snapshot.seo_site_geo_area.seo_site_keyword_offering.seo_site_keyword_value.seo_site_offering_value.seo_site_topic_value.seo_site_value_combo.seo_site_value_worth.seo_site_vocabulary.seo_source_request.seo_starter_pack.seo_starter_pack_item.seo_story_angle.seo_topic.seo_topical_map.seo_tracker_story.seo_web_analytics_daily.shareable_resource_registry.shared_canvas_item.short_link.sign_in_fk_legacy.skill.skill_detail.skill_render_definition.sms_consent.sms_conversation.sms_message.sms_message_media.sms_notification.sms_notification_preference.sms_phone_number.sms_rate_limits.sms_webhook_logs.soft_delete_cascade_job.soft_delete_edge.source_authority.stage_ref_kind.stamped_write_table.structure.studio_cleaned_segments.studio_concept_items.studio_documents.studio_module_segments.studio_raw_segments.studio_recording_chunks.studio_recording_segments.studio_run.studio_session.studio_session_settings.study_attempt.study_goal.study_media.study_plan.study_plan_block.study_plan_day.study_reminder_context.study_reminder_delivery.study_session.study_source_chunk.study_streak.study_structured_section.superseded_policy.surface.system_announcement.system_context_item.system_error.system_orgs.system_write_failure.t13_backfill_ledger.t13_default_ledger.t13_row_column_events.tag.task.task_user_state.taxonomy_node.team.template_context_items.template_scope_types.templates.test_handset_inbox.test_handset_verification.thread.tool.tool_binding.tool_bundle.tool_call.tool_definition_version.tool_executor.tool_surface_defaults.tool_test_sample.tool_ui.tool_ui_incident.tool_ui_version.topic_placement_queue.transcript.trigger_event.udt_dataset_template.udt_dataset_template_fields.udt_document.udt_document_snapshot.udt_workbook_snapshot.ui_client.ui_surface_agent_pref.ui_surface_agent_role.ui_surface_client_tool.ui_surface_config.ui_surface_item_type.ui_surface_value.ui_surface_write_target.univer_payload.unsubscribe_token.uploads_inflight.user.user_achievement.user_active_context.user_analysis_preference.user_email_preference.user_entity_state.user_feedback.user_follows.user_form_profile.user_markdown_sample.user_memory.user_preference.user_profile.user_secret.user_secret_audit.user_secret_grant.user_stat.user_storage_usage.user_surface_state.vault_fill_approvals.vault_fill_devices.vault_fill_nonces.visibility_cache.visibility_epoch.voice.war_room.wbx_demo.wbx_guidance.wbx_highlight.wbx_pattern.wbx_recipe.wbx_screenshot.wbx_seo_audit.wc_claim.wc_impairment_definition.wc_injury.wc_report.web_analysis_item.web_brand.web_brand_asset.web_brand_offering.web_business_fact.web_business_location.web_channel_analytics_daily.web_crawl_event.web_crawl_preset.web_crawl_schedule.web_crawl_session.web_crawl_url.web_discovered_item.web_finding.web_gsc_page_stat.web_link_edge.web_listing_publisher.web_location_listing.web_news_item.web_offering_template.web_page.web_page_content.web_page_evidence.web_page_sitemap.web_property.web_provider.web_result.web_screenshot.web_site.web_site_endpoint_rule.web_site_item_config.web_site_offering.web_sitemap.web_snapshot.web_tag_manager_snapshot.web_voice_fingerprint.web_youtube_video.webhook_deliveries.webhook_dispatch_state.webhooks.wf_node_data_slot.work_claim.work_item.workbook.worker_heartbeat.workflow.workflow_card.workflow_checkpoint.workflow_comparison.workflow_definition_version.workflow_idempotency.workflow_job.workflow_node_events.workflow_node_outcome.workflow_plan.workflow_plan_event.workflow_plan_sample.workflow_recovery_audit.workflow_run.workflow_run_cost.workflow_run_facts.workflow_run_log.workflow_runtime_surface.workflow_template.workflow_trigger.workflow_trigger_fire.workflow_work_item.working_document.write_guard_key.youtube_quota_day.youtube_search.youtube_video`.split(`.`));function gD(e){return typeof e==`string`&&hD.has(e)}function _D(e){return typeof e==`string`?JSON.stringify(e):e==null?String(e):JSON.stringify(e)}var vD={cx_message:`message`,cx_conversation:`conversation`,user_file:`file`,agent_app:`app`,chat_block:`message`};function yD(...e){for(let t of e)if(t)return t;return null}function bD(e){function t(t,n,r){let i=`association ${t} ${r} (got ${_D(n)})`;return e({code:`invalid_argument`,message:`[associations] invalid argument — ${i}`,context:{field:t}}),{code:`invalid_argument`,message:i}}return{checkUuid(e,n){return HE(n)?null:t(e,n,`must be a UUID`)},checkUuidArray(e,n){for(let r=0;r<n.length;r++)if(!HE(n[r]))return t(`${e}[${r}]`,n[r],`must be a UUID`);return null},checkToken(e,n){return typeof n!=`string`||n.length===0?t(e,n,`must be a non-empty entity-type token`):gD(n)?null:t(e,n,`is not a registered entity type (platform.entity_types) — add it to the registry + upgrade @ai-matrx/associations, never guess a token`)},normalizeEntityToken(t){let n=vD[t];return n?(e({code:`legacy_token_alias`,message:`[associations] phantom entity token ${JSON.stringify(t)} mapped to canonical ${JSON.stringify(n)} — fix the callsite to emit the canonical token (FOUND_DEFECTS D27)`,context:{value:t,canonical:n}}),n):t}}}function xD(e,t,n,r){let i={code:e,message:t};return n!==void 0&&(i.detail=n),r!==void 0&&(i.hint=r),{ok:!1,error:i}}function SD(e){return{ok:!0,data:e}}function CD(e){if(typeof navigator<`u`&&navigator.onLine===!1||e instanceof TypeError)return!0;if(e&&typeof e==`object`){let t=e;if(t.code||t.status)return!1;let n=`${typeof t.name==`string`?t.name:``} ${typeof t.message==`string`?t.message:``}`.toLowerCase();return n.includes(`failed to fetch`)||n.includes(`networkerror`)||n.includes(`network request failed`)||n.includes(`load failed`)||n.includes(`upstream connect error or disconnect/reset before headers`)}return!1}function wD(e){if(!e||typeof e!=`object`)return!1;let t=e;return typeof t.code==`string`&&typeof t.message==`string`}function TD(e){if(e&&typeof e==`object`){let t=e;return{pgCode:typeof t.code==`string`&&t.code?t.code:null,pgMessage:typeof t.message==`string`&&t.message?t.message:null,pgHint:typeof t.hint==`string`&&t.hint?t.hint:void 0}}return{pgCode:null,pgMessage:null,pgHint:void 0}}function ED(e){function t(t){let{pgCode:n,pgMessage:r,pgHint:i}=TD(t);if(n===`PGRST202`){let a=`demanded schema violation: the database this client is pointed at cannot answer a demanded @ai-matrx/associations RPC (PostgREST PGRST202 — function not found). This package DEMANDS the platform `+`schema (README § The demanded schema). ${r??``}`.trim();e({code:`demanded_schema_violation`,message:a,context:{pgCode:n,detail:t}});let o={code:`demanded_schema_violation`,message:a,detail:t};return i!==void 0&&(o.hint=i),o}if(CD(t)?e({code:`transport_failure`,message:`network unreachable (browser offline?)`,context:{transient:!0,detail:t}}):wD(t)||e({code:`internal`,message:r??`Unexpected error talking to the data source`,context:{detail:t}}),n===`PGRST116`)return{code:`not_found`,message:`Not found`};if(n===`42501`)return{code:`forbidden_org`,message:`Permission denied`};if(n===`PGRST301`||n===`PGRST303`)return{code:`unauthorized`,message:`Your session expired`};if(n===`57014`){let e={code:`internal`,message:`The database took too long to respond`,detail:t};return i!==void 0&&(e.hint=i),e}let a={message:r??`Unexpected error talking to the data source`,code:`internal`,detail:t};return i!==void 0&&(a.hint=i),a}function n(e){let n=t(e);return[n.code,n.message,n.detail,n.hint]}return{ok:SD,err:xD,mapPgError:t,mapPgErrorPair:n}}var DD={dataset:{label:`Table`},structured_list:{label:`Pick list`}};function OD(e){return Object.prototype.hasOwnProperty.call(DD,e)}function kD(e){return OD(e)?DD[e].label:null}var AD=`created_by`,jD=`organization_id`,MD=new Set([`utility`,`source`,`destination`,`hybrid`,`container`]);function ND(e){return e!==null&&MD.has(e)}var PD={cld_file:`file`};function FD(e){return PD[e]??e}var ID=(()=>{let e={};for(let t of Object.keys(mD)){let n=mD[t],r=`${n.schema}.${n.table}`;r in e||(e[r]=t)}return e})(),LD=(()=>{let e={};for(let t of Object.keys(mD)){let n=mD[t].table;e[n]=n in e?null:t}return e})();function RD(e,t){let n={...t??{}},r=new Set;function i(t){return r.has(t)||(r.add(t),e({code:`retired_entity_token`,message:`[entityRegistry] "${t}" is not in the live entity vocabulary (retired or renamed in platform.entity_types). The host still references it; rename the reference to the live token, or drop it. Serving a stand-in so the page can render.`,context:{token:t}})),{token:t,schema:``,table:``,label:`${t} (retired)`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!1,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null}}function a(e){let t=kD(e);return t===null?null:{token:e,schema:``,table:``,label:t,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!1,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null}}function o(t){let r=mD[t]??a(t)??i(t),o=n[t],s=o?.labelPlural??`${r.label}s`,c=r.titleColumn,l=ND(r.contentRole)?r.contentRole:`destination`;r.contentRole!==null&&!ND(r.contentRole)&&e({code:`invalid_content_role`,message:`[entityRegistry] "${t}" has invalid content_role "${r.contentRole}" in platform.entity_types; using destination as a loud recovery.`,context:{token:t,contentRole:r.contentRole}});let u=o?.ownerColumn===void 0?AD:o.ownerColumn??``,d=o?.orgColumn===void 0?jD:o.orgColumn??``;return{token:t,label:r.label,labelPlural:s,schema:r.schema,table:r.table,titleColumn:c,ownerColumn:u,orgColumn:d,Icon:o?.Icon??null,hrefFor:o?.hrefFor??null,scopeable:r.scopeable,category:r.category,contentRole:l,listCandidates:o?.listCandidates??null,canListCandidates:c!==null||o?.listCandidates!==void 0}}return{registerEntityOverlay(e){for(let t of Object.keys(e)){let r=e[t];r&&(n[t]={...n[t],...r})}},getEntityInfo:o,tryGetEntityInfo(e){let t=FD(e);return gD(t)?o(t):OD(e)?o(e):null},tryGetEntityInfoByTable(e,t){let n=ID[`${e}.${t}`];return n?o(n):null},tryGetEntityInfoByUniqueTableName(e){let t=LD[e];return t?o(t):null},curatedTokens(){return Object.keys(mD).filter(e=>{let t=mD[e],r=n[e];return ND(t.contentRole)&&(t.titleColumn!=null||r?.listCandidates!==void 0)})},listableTokens(){return Object.keys(mD).filter(t=>{let r=mD[t];if(!r.referencePickable)return!1;let i=n[t],a=r.titleColumn!=null||i?.listCandidates!==void 0;return a||e({code:`unlistable_pickable_token`,message:`[entityRegistry] "${t}" is reference_pickable in platform.entity_types but has NO title_column and no host candidate source — set its title_column in the registry or register a listCandidates override.`,context:{token:t}}),a})}}}var zD={"artifact>processed_document":`source`,"calendar_event>conversation":`conversation_attached_resource`,"calendar_event>party":`attendee`,"code_file>code_repository":`in_repository`,"content_ir_kind_instance>content_ir_kind_instance":`part_of`,"conversation>party":`produced_by`,"fc_set>processed_document":`source`,"file>hr_application":`evidence`,"file>hr_employee":`personnel_document`,"file>hr_employment":`evidence`,"file>hr_incident":`evidence`,"file>hr_leave_case":`evidence`,"google_document>crm_deal":`attached_to`,"google_document>party":`attached_to`,"google_document>project":`attached_to`,"google_document>task":`attached_to`,"hr_candidate>party":`candidate_party`,"hr_course>hr_job_title":`role_curriculum`,"hr_credential>hr_job_title":`required_credential`,"hr_employee>record":`scope_member`,"hr_employee>scope":`scope_member`,"integration_connection_resource>conversation":`conversation_attached_resource`,"media_source_library>youtube_video":`catalogued_source`,"message>content_ir_kind_instance":`produced_by`,"note>calendar_event":`about`,"note>hr_candidate":`hr_note`,"note>hr_employee":`hr_note`,"organization>seo_keyword":`keyword_library`,"pc_episode>processed_document":`source`,"processed_document>code_repository":`in_repository`,"processed_document>media_source_library":`catalogued_source`,"processed_document>record":`about`,"processed_document>research_topic":`research_source`,"processed_document>scope":`about`,"processed_document>tag":`about`,"processed_document>web_site":`crawled_page`,"quiz_session>processed_document":`source`,"research_source>youtube_video":`Canonical YouTube video`,"web_youtube_video>seo_map_topic":`covers`,"youtube_video>transcript":`video_transcript`};function BD(e,t){return zD[`${e}>${t}`]}function VD(e){return{id:e.id,direction:e.direction===`incoming`?`incoming`:`outgoing`,otherType:e.other_type,otherId:e.other_id,role:e.role??null,label:e.label??null,position:e.position??null,metadata:e.metadata??{},orgId:e.organization_id??null,createdAt:e.created_at}}function HD(e){return{id:e.id,targetId:e.target_id,sourceType:e.source_type,sourceId:e.source_id,role:e.role??null,label:e.label??null,position:e.position??null,metadata:e.metadata??{},orgId:e.organization_id??null,createdAt:e.created_at}}function UD(e){return{id:e.id,sourceId:e.source_id,targetType:e.target_type,targetId:e.target_id,role:e.role??null,label:e.label??null,position:e.position??null,metadata:e.metadata??{},orgId:e.organization_id??null,createdAt:e.created_at}}function WD(e){let{dataSource:t,identity:n,guards:r}=e,{ok:i,err:a,mapPgError:o,mapPgErrorPair:s}=e.rpc,{checkToken:c,checkUuid:l,checkUuidArray:u,normalizeEntityToken:d}=r;return{async listForEntity(e,r){try{n.requireUserId();let o=d(e),u=yD(c(`type`,o),l(`id`,r));if(u)return{ok:!1,error:u};let{data:f,error:p}=await t.rpc(`assoc_for_entity`,{p_type:o,p_id:r});return p?a(...s(p)):i({edges:(Array.isArray(f)?f:[]).map(VD)})}catch(e){return{ok:!1,error:o(e)}}},async listConversationFiles(e){try{n.requireUserId();let r=l(`conversationId`,e);if(r)return{ok:!1,error:r};let{data:o,error:c}=await t.rpc(`conversation_files`,{p_conversation_id:e});return c?a(...s(c)):i({files:(Array.isArray(o)?o:[]).map(e=>({fileId:e.file_id,label:e.label??null,metadata:e.metadata??{},createdAt:e.created_at}))})}catch(e){return{ok:!1,error:o(e)}}},async listForTargets(e,r){try{n.requireUserId();let o=d(e),l=Array.from(new Set(r));if(l.length===0)return i({edges:[]});let f=yD(c(`targetType`,o),u(`targetIds`,l));if(f)return{ok:!1,error:f};let{data:p,error:m}=await t.rpc(`assoc_for_targets`,{p_target_type:o,p_target_ids:l});return m?a(...s(m)):i({edges:(Array.isArray(p)?p:[]).map(HD)})}catch(e){return{ok:!1,error:o(e)}}},async listForTargetsVisible(e,r){try{n.requireUserId();let o=d(e),l=Array.from(new Set(r));if(l.length===0)return i({edges:[]});let f=yD(c(`targetType`,o),u(`targetIds`,l));if(f)return{ok:!1,error:f};let{data:p,error:m}=await t.rpc(`assoc_members_visible`,{p_target_type:o,p_target_ids:l});return m?a(...s(m)):i({edges:(Array.isArray(p)?p:[]).map(HD)})}catch(e){return{ok:!1,error:o(e)}}},async listForSources(e,r,l){try{n.requireUserId();let o=d(e),f=l==null?void 0:d(l),p=Array.from(new Set(r));if(p.length===0)return i({edges:[]});let m=yD(c(`sourceType`,o),u(`sourceIds`,p),f?c(`targetType`,f):null);if(m)return{ok:!1,error:m};let{data:h,error:g}=await t.rpc(`assoc_for_sources`,{p_source_type:o,p_source_ids:p,...f?{p_target_type:f}:{}});return g?a(...s(g)):i({edges:(Array.isArray(h)?h:[]).map(UD)})}catch(e){return{ok:!1,error:o(e)}}},async add(e){try{n.requireUserId();let r=d(e.sourceType),o=d(e.targetType),u=yD(c(`sourceType`,r),l(`sourceId`,e.sourceId),c(`targetType`,o),l(`targetId`,e.targetId),e.orgId==null?null:l(`orgId`,e.orgId));if(u)return{ok:!1,error:u};if(r===`file`&&o===`conversation`){if(e.role!=null||e.position!=null||e.payloadKind!=null||e.payload!=null)return a(`invalid_argument`,`File conversation attachments support only the canonical role-less edge`);let{data:n,error:r}=await t.rpc(`conversation_file_add`,{p_conversation_id:e.targetId,p_file_id:e.sourceId,p_label:e.label,p_metadata:e.metadata??{},p_replace_metadata:e.replaceMetadata??!1});return r?a(...s(r)):!n||typeof n!=`string`?a(`internal`,`conversation_file_add returned no association id`):i({id:n})}if(e.replaceMetadata!=null)return a(`invalid_argument`,`replaceMetadata is supported only for file conversation attachments`);let{data:f,error:p}=await t.rpc(`assoc_add`,{p_source_type:r,p_source_id:e.sourceId,p_target_type:o,p_target_id:e.targetId,p_org_id:e.orgId,p_label:BD(r,o)??e.label,p_metadata:e.metadata??{},p_role:e.role,p_position:e.position,p_payload_kind:e.payloadKind,p_payload:e.payload??void 0});return p?a(...s(p)):!f||typeof f!=`string`?a(`internal`,`assoc_add returned no association id`):i({id:f})}catch(e){return{ok:!1,error:o(e)}}},async remove(e){try{n.requireUserId();let r=d(e.sourceType),o=d(e.targetType),u=yD(c(`sourceType`,r),l(`sourceId`,e.sourceId),c(`targetType`,o),l(`targetId`,e.targetId));if(u)return{ok:!1,error:u};if(r===`file`&&o===`conversation`){if(e.role!=null)return a(`invalid_argument`,`File conversation attachments support only the canonical role-less edge`);let{error:n}=await t.rpc(`conversation_file_remove`,{p_conversation_id:e.targetId,p_file_id:e.sourceId});return n?a(...s(n)):i(null)}let{error:f}=await t.rpc(`assoc_remove`,{p_source_type:r,p_source_id:e.sourceId,p_target_type:o,p_target_id:e.targetId,p_role:e.role});return f?a(...s(f)):i(null)}catch(e){return{ok:!1,error:o(e)}}},async setTargets(e){try{n.requireUserId();let r=d(e.sourceType),o=d(e.targetType),f=Array.from(new Set(e.targetIds)),p=yD(c(`sourceType`,r),l(`sourceId`,e.sourceId),c(`targetType`,o),u(`targetIds`,f),e.orgId==null?null:l(`orgId`,e.orgId));if(p)return{ok:!1,error:p};let{error:m}=await t.rpc(`assoc_set_targets`,{p_source_type:r,p_source_id:e.sourceId,p_target_type:o,p_target_ids:f,p_org_id:e.orgId,p_role:e.role});return m?a(...s(m)):i(null)}catch(e){return{ok:!1,error:o(e)}}},async addAgentResource(e){try{n.requireUserId();let r=d(e.sourceType),o=yD(l(`agentId`,e.agentId),c(`sourceType`,r),l(`sourceId`,e.sourceId));if(o)return{ok:!1,error:o};let{data:u,error:f}=await t.rpc(`agent_resource_add`,{p_agent_id:e.agentId,p_source_type:r,p_source_id:e.sourceId,p_label:e.label,p_metadata:e.metadata??{}});return f?a(...s(f)):!u||typeof u!=`string`?a(`internal`,`agent_resource_add returned no association id`):i({id:u})}catch(e){return{ok:!1,error:o(e)}}},async removeAgentResource(e){try{n.requireUserId();let r=d(e.sourceType),o=yD(l(`agentId`,e.agentId),c(`sourceType`,r),l(`sourceId`,e.sourceId));if(o)return{ok:!1,error:o};let{error:u}=await t.rpc(`agent_resource_remove`,{p_agent_id:e.agentId,p_source_type:r,p_source_id:e.sourceId});return u?a(...s(u)):i(null)}catch(e){return{ok:!1,error:o(e)}}},async removeForEntity(e,r){try{n.requireUserId();let o=d(e),u=yD(c(`type`,o),l(`id`,r));if(u)return{ok:!1,error:u};let{error:f}=await t.rpc(`assoc_remove_for_entity`,{p_type:o,p_id:r});return f?a(...s(f)):i(null)}catch(e){return{ok:!1,error:o(e)}}}}}function GD(e){return{id:e.id,orgId:e.organization_id??null,dimension:e.dimension,name:e.name,slug:e.slug??null,parentId:e.parent_id??null,isSystem:!!e.is_system,color:e.color??null,icon:e.icon??null,position:e.position??null,metadata:e.metadata&&typeof e.metadata==`object`&&!Array.isArray(e.metadata)?e.metadata:null}}function KD(e){let{dataSource:t,identity:n}=e,{ok:r,err:i,mapPgError:a,mapPgErrorPair:o}=e.rpc;return{async list(e){try{n.requireUserId();let{data:a,error:s}=await t.rpc(`cat_list`,{p_dimension:e});return s?i(...o(s)):r({categories:(Array.isArray(a)?a:[]).map(GD)})}catch(e){return{ok:!1,error:a(e)}}},async create(e){try{n.requireUserId();let{data:a,error:s}=await t.rpc(`cat_create`,{p_dimension:e.dimension,p_name:e.name,p_org_id:e.orgId,p_parent_id:e.parentId??void 0,p_color:e.color??void 0,p_icon:e.icon??void 0,p_slug:e.slug??void 0});return s?i(...o(s)):!a||typeof a!=`string`?i(`internal`,`cat_create returned no category id`):r({id:a})}catch(e){return{ok:!1,error:a(e)}}},async update(e){try{n.requireUserId();let{data:a,error:s}=await t.rpc(`cat_update`,{p_category_id:e.id,p_name:e.name,p_slug:e.slug??void 0,p_color:e.color??void 0,p_icon:e.icon??void 0,p_position:e.position??void 0});return s?i(...o(s)):!a||typeof a!=`string`?i(`internal`,`cat_update returned no category id`):r({id:a})}catch(e){return{ok:!1,error:a(e)}}},async reparent(e){try{n.requireUserId();let{data:a,error:s}=await t.rpc(`cat_reparent`,{p_category_id:e.id,p_parent_id:e.parentId??void 0});return s?i(...o(s)):!a||typeof a!=`string`?i(`internal`,`cat_reparent returned no category id`):r({id:a})}catch(e){return{ok:!1,error:a(e)}}},async delete(e){try{n.requireUserId();let{data:a,error:s}=await t.rpc(`cat_delete`,{p_category_id:e});return s?i(...o(s)):!a||typeof a!=`string`?i(`internal`,`cat_delete returned no category id`):r({id:a})}catch(e){return{ok:!1,error:a(e)}}}}}function qD(e){return{entityType:e.entity_type,entityId:e.entity_id,isFavorite:e.is_favorite,isPinned:e.is_pinned,isHidden:e.is_hidden,lastViewedAt:e.last_viewed_at??null}}function JD(e){let{dataSource:t,identity:n}=e,{ok:r,err:i,mapPgError:a,mapPgErrorPair:o}=e.rpc,s={async setState(e){try{n.requireUserId();let{error:a}=await t.rpc(`ues_set`,{p_entity_type:e.entityType,p_entity_id:e.entityId,p_is_favorite:e.isFavorite,p_is_pinned:e.isPinned,p_is_hidden:e.isHidden});return a?i(...o(a)):r(null)}catch(e){return{ok:!1,error:a(e)}}},async setFavorite(e,t,n){return s.setState({entityType:e,entityId:t,isFavorite:n})},async setPinned(e,t,n){return s.setState({entityType:e,entityId:t,isPinned:n})},async setHidden(e,t,n){return s.setState({entityType:e,entityId:t,isHidden:n})},async list(e){try{n.requireUserId();let{data:a,error:s}=await t.rpc(`ues_list`,{p_kind:e});return s?i(...o(s)):r({items:(Array.isArray(a)?a:[]).map(qD)})}catch(e){return{ok:!1,error:a(e)}}},async getBulk(e,s){try{n.requireUserId();let a=Array.from(new Set(s)),{data:c,error:l}=await t.rpc(`ues_get_bulk`,{p_entity_type:e,p_entity_ids:a});return l?i(...o(l)):r({items:(Array.isArray(c)?c:[]).map(t=>({entityType:e,entityId:t.entity_id,isFavorite:t.is_favorite,isPinned:t.is_pinned,isHidden:t.is_hidden,lastViewedAt:t.last_viewed_at??null}))})}catch(e){return{ok:!1,error:a(e)}}},async touch(e,s){try{n.requireUserId();let{error:a}=await t.rpc(`ues_touch`,{p_entity_type:e,p_entity_id:s});return a?i(...o(a)):r(null)}catch(e){return{ok:!1,error:a(e)}}}};return s}function YD(e){let{dataSource:t,registry:n,errorSink:r}=e,i=async e=>{let{data:n,error:r}=await t.rpc(`reference_search_candidates`,e);return r?{data:null,error:r}:{data:Array.isArray(n)?n:[],error:null}};async function a(e){let{token:t,search:a,limit:o=100}=e,s=n.getEntityInfo(t);if(s.listCandidates)try{return await s.listCandidates({...a===void 0?{}:{search:a},limit:o})}catch(e){let n=e instanceof Error?e.message:`Failed to load candidates`;return r({code:`candidate_override_failed`,message:`[listAssociationCandidates] override failed for "${t}": ${n}`,context:{token:t,detail:e}}),{ok:!1,error:n}}if(!s.canListCandidates||!s.titleColumn){let e=`Entity "${t}" has no title column — set one in platform.entity_types (or register a listCandidates override) before listing candidates`;return r({code:`unlistable_token`,message:`[listAssociationCandidates] ${e}`,context:{token:t}}),{ok:!1,error:e}}let c=a?.trim()||void 0,{data:l,error:u}=await i({p_token:t,...c===void 0?{}:{p_search:c},p_limit:o});return u?(r({code:`candidate_rpc_failed`,message:`[listAssociationCandidates] candidate RPC failed for "${t}": ${u.message}`,context:{token:t,detail:u}}),{ok:!1,error:u.message}):{ok:!0,data:l.map(e=>({id:e.id,title:e.title?.trim()||`Untitled`}))}}async function o(e){let{tokens:t,search:r,perTokenLimit:i=5,concurrency:o=6}=e,s=t??n.listableTokens();if(s.length===0)return{results:[],failures:[]};let c=[],l=[],u=0;async function d(){for(;u<s.length;){let e=s[u];if(u+=1,!e)continue;let t=await a({token:e,search:r,limit:i});if(t.ok)for(let n of t.data)c.push({...n,token:e});else l.push({token:e,error:t.error})}}await Promise.all(Array.from({length:Math.min(o,s.length)},d));let f=new Map(s.map((e,t)=>[e,t]));return c.sort((e,t)=>{let n=f.get(e.token)??0,r=f.get(t.token)??0;return n===r?e.title.localeCompare(t.title):n-r}),l.sort((e,t)=>(f.get(e.token)??0)-(f.get(t.token)??0)),{results:c,failures:l}}return{callReferenceSearchCandidates:i,listAssociationCandidates:a,searchCandidatesAcrossTokens:o}}var XD=200;function ZD(e,t){return`${e}:${t}`}function QD(e,t){let{registry:n,errorSink:r}=e,i=new Map;return{get(e,t){return i.get(ZD(e,t))??null},prime(e,t,n){let r=n.trim();r&&i.set(ZD(e,t),r)},fallback(e){return`Untitled ${n.tryGetEntityInfo(e)?.label??de(e)}`},async fetch(e,a){let o=new Map;if(a.length===0)return o;let s=n.tryGetEntityInfo(e),c=[];for(let t of a){let n=i.get(ZD(e,t));n===void 0?c.push(t):o.set(t,n)}if(c.length===0||!s?.titleColumn)return o;for(let n=0;n<c.length;n+=XD){let a=c.slice(n,n+XD),{data:s,error:l}=await t.callReferenceSearchCandidates({p_token:e,p_ids:a,p_limit:a.length});if(l){r({code:`title_rpc_failed`,message:`[fetchEntityTitles] candidate RPC failed for "${e}": ${l.message}`,context:{token:e,chunkStart:n,chunkSize:a.length,detail:l}});continue}for(let t of s){let n=t.title?.trim();n&&(i.set(ZD(e,t.id),n),o.set(t.id,n))}}return o}}}function $D(e,t){let{dataSource:n,registry:r,errorSink:i}=e;function a(e,t){if(!r.getEntityInfo(e).titleColumn){let n=`Entity "${e}" has no title_column in platform.entity_types — add one in the registry before ${t}`;return i({code:`missing_title_column`,message:`[entityRows] ${n}`,context:{token:e}}),{ok:!1,error:n}}return{ok:!0}}return{async createEntityRow(e,o){let s=a(e,`creating rows`);if(!s.ok)return s;let c=o.title.trim();if(!c)return{ok:!1,error:`Name is required`};let l=Object.keys(o.extraColumns??{});if(l.length>0){let t=`A new ${r.getEntityInfo(e).label} cannot be created here with ${l.join(`, `)}: the shared create door writes the name, the owner and the organization and nothing else. Create it with this feature's own create service, then attach it.`;return i({code:`entity_row_extra_columns_unsupported`,message:`[createEntityRow] extraColumns are not writable through entity_row_create for "${e}": ${l.join(`, `)}`,context:{token:e,extras:l}}),{ok:!1,error:t}}if(!o.orgId){let t=`Name the organization this ${r.getEntityInfo(e).label} belongs to.`;return i({code:`entity_row_missing_organization`,message:`[createEntityRow] no organization supplied for "${e}"; entity_row_create requires one`,context:{token:e}}),{ok:!1,error:t}}try{let{data:r,error:a}=await n.rpc(`entity_row_create`,{p_token:e,p_title:c,p_organization_id:o.orgId});if(a)return i({code:`entity_row_insert_failed`,message:`[createEntityRow] entity_row_create failed for "${e}": ${a.message}`,context:{token:e,detail:a}}),{ok:!1,error:a.message};let s=r;if(!s||typeof s.id!=`string`||!s.id)return i({code:`entity_row_insert_failed`,message:`[createEntityRow] entity_row_create returned no id for "${e}"`,context:{token:e,detail:r}}),{ok:!1,error:`The create door returned no record.`};let l=s.id,u=typeof s.title==`string`&&s.title?s.title:c;return t.prime(e,l,u),{ok:!0,data:{id:l,title:u}}}catch(t){let n=t instanceof Error?t.message:`Failed to create`;return i({code:`entity_row_insert_failed`,message:`[createEntityRow] exception for "${e}": ${n}`,context:{token:e,detail:t}}),{ok:!1,error:n}}},async renameEntityRow(e,r,o){let s=a(e,`renaming rows`);if(!s.ok)return s;let c=o.trim();if(!c)return{ok:!1,error:`Name is required`};try{let{error:a}=await n.rpc(`entity_row_rename`,{p_token:e,p_id:r,p_title:c});return a?(i({code:`entity_row_update_failed`,message:`[renameEntityRow] entity_row_rename failed for "${e}": ${a.message}`,context:{token:e,id:r,detail:a}}),{ok:!1,error:a.message}):(t.prime(e,r,c),{ok:!0})}catch(t){let n=t instanceof Error?t.message:`Failed to rename`;return i({code:`entity_row_update_failed`,message:`[renameEntityRow] exception for "${e}": ${n}`,context:{token:e,id:r,detail:t}}),{ok:!1,error:n}}}}}function eO(e,t){let n=e[0]??{code:`internal`,message:`unknown failure`};return{code:e.every(e=>e.code===n.code)?n.code:`internal`,message:`${e.length}/${t} association edge(s) failed: ${n.message}`,detail:e}}function tO(e){return[e.code,e.message,e.detail]}function nO(e){async function t(t){if(t.length===0)return SD({ids:[]});let n=await Promise.all(t.map(t=>e.add({sourceType:t.source.type,sourceId:t.source.id,targetType:t.target.type,targetId:t.target.id,...t.orgId===void 0?{}:{orgId:t.orgId},...t.label===void 0?{}:{label:t.label},...t.metadata===void 0?{}:{metadata:t.metadata},...t.role===void 0?{}:{role:t.role},...t.position===void 0?{}:{position:t.position}}))),r=[],i=[];for(let e of n)fD(e)?i.push(e.error):r.push(e.data.id);return i.length>0?xD(...tO(eO(i,t.length))):SD({ids:r})}return{linkEdges:t,async linkOneToMany({source:e,targets:n,attrs:r}){return t(n.map(t=>({source:e,target:t,...r})))},async linkManyToOne({sources:e,target:n,attrs:r}){return t(e.map(e=>({source:e,target:n,...r})))},async replaceTargets(t){return e.setTargets({sourceType:t.source.type,sourceId:t.source.id,targetType:t.targetType,targetIds:t.targetIds,...t.orgId===void 0?{}:{orgId:t.orgId},...t.role===void 0?{}:{role:t.role}})},async linkCreated(e){return t(e.targets.map(t=>({source:e.created,target:t,...e.attrs})))},async unlinkEdges(t){if(t.length===0)return SD(null);let n=await Promise.all(t.map(t=>e.remove({sourceType:t.source.type,sourceId:t.source.id,targetType:t.target.type,targetId:t.target.id,...t.role===void 0?{}:{role:t.role}}))),r=[];for(let e of n)fD(e)&&r.push(e.error);return r.length>0?xD(...tO(eO(r,t.length))):SD(null)}}}function rO(e){return{id:e.id,orgId:e.organization_id??null,entityType:e.entity_type,entityId:e.entity_id,parentId:e.parent_id??null,body:e.body,createdAt:e.created_at,updatedAt:e.updated_at,createdBy:e.created_by??null,author:{email:e.author_email??null,displayName:e.author_display_name??null,avatarUrl:e.author_avatar_url??null},authorAgent:e.author_agent_id?{id:e.author_agent_id,name:e.author_agent_name??null}:null,anchor:e.anchor&&typeof e.anchor==`object`?e.anchor:null}}function iO(e){let{dataSource:t,identity:n,guards:r}=e,{ok:i,err:a,mapPgError:o,mapPgErrorPair:s}=e.rpc;return{async listForEntity(e,c){try{n.requireUserId();let o=r.normalizeEntityToken(e),l=yD(r.checkToken(`entityType`,o),r.checkUuid(`entityId`,c));if(l)return{ok:!1,error:l};let{data:u,error:d}=await t.rpc(`cmt_list`,{p_entity_type:o,p_entity_id:c});return d?a(...s(d)):i({comments:(Array.isArray(u)?u:[]).map(rO)})}catch(e){return{ok:!1,error:o(e)}}},async add(e){try{n.requireUserId();let o=r.normalizeEntityToken(e.entityType),c=yD(r.checkToken(`entityType`,o),r.checkUuid(`entityId`,e.entityId),e.parentId==null?null:r.checkUuid(`parentId`,e.parentId));if(c)return{ok:!1,error:c};if(!e.body||e.body.trim().length===0)return a(`invalid_argument`,`comment body must be non-empty`);let{data:l,error:u}=await t.rpc(`cmt_add`,{p_entity_type:o,p_entity_id:e.entityId,p_body:e.body,p_parent_id:e.parentId??void 0,p_org_id:e.orgId??void 0,...e.anchor?{p_anchor:e.anchor}:{}});return u?a(...s(u)):!l||typeof l!=`string`?a(`internal`,`cmt_add returned no comment id`):i({id:l})}catch(e){return{ok:!1,error:o(e)}}},async edit(e,c){try{n.requireUserId();let o=r.checkUuid(`commentId`,e);if(o)return{ok:!1,error:o};if(!c||c.trim().length===0)return a(`invalid_argument`,`comment body must be non-empty`);let{error:l}=await t.rpc(`cmt_edit`,{p_id:e,p_body:c});return l?a(...s(l)):i(null)}catch(e){return{ok:!1,error:o(e)}}},async remove(e){try{n.requireUserId();let o=r.checkUuid(`commentId`,e);if(o)return{ok:!1,error:o};let{error:c}=await t.rpc(`cmt_delete`,{p_id:e});return c?a(...s(c)):i(null)}catch(e){return{ok:!1,error:o(e)}}}}}function aO(e,t){return`${e}:${t}`}var oO=Object.freeze({status:`idle`,edges:Object.freeze([]),fetchedAt:null,error:null}),sO=Object.freeze({status:`idle`,categories:Object.freeze([]),fetchedAt:null,error:null}),cO=Object.freeze({status:`idle`,comments:Object.freeze([]),fetchedAt:null,error:null});function lO(e){if(!e||typeof e.dataSource?.rpc!=`function`)throw Error(`@ai-matrx/associations: the REQUIRED dataSource port is missing (need an object with rpc(fn, args) — a supabase-js client satisfies it structurally). The package IS data operations; there is no degraded mode without one.`);if(typeof e.identity?.requireUserId!=`function`)throw Error(`@ai-matrx/associations: the REQUIRED identity port is missing (need requireUserId(): string that THROWS when unauthenticated). Identity never comes from a store import.`);let t=typeof e.errorSink==`function`?e.errorSink:pD(),n=RD(t,e.entityOverlay),r={dataSource:e.dataSource,identity:e.identity,errorSink:t,guards:bD(t),rpc:ED(t),registry:n},i=WD(r),a=KD(r),o=JD(r),s=YD(r),c=QD(r,s),l=$D(r,c),u=nO(i),d=iO(r),f=new Map,p=new Map,m=new Map,h=new Map,g=new Map,_=new Map,v=new Map,y=new Map,b=new Map;function x(e){let t=p.get(e);if(t)for(let e of[...t])e()}function S(e){let t=g.get(e);if(t)for(let e of[...t])e()}function C(e,t){f.set(e,t),x(e)}function w(e,t){h.set(e,t),S(e)}function T(e){let t=y.get(e);if(t)for(let e of[...t])e()}function E(e,t){v.set(e,t),T(e)}async function D(e,t,n={}){let r=n.force??!1;if(!e||!t)return;let a=aO(e,t),o=f.get(a);if(!r&&o?.status===`ready`)return;let s=m.get(a);if(!r&&o?.status===`loading`&&s)return s;let c=f.get(a);C(a,{status:`loading`,edges:c?.edges??[],fetchedAt:c?.fetchedAt??null,error:c?.error??null});let l=(async()=>{try{let n=await i.listForEntity(e,t);if(fD(n)){let e=f.get(a);C(a,{status:`error`,edges:e?.edges??[],fetchedAt:e?.fetchedAt??null,error:n.error.message})}else C(a,{status:`ready`,edges:n.data.edges,fetchedAt:Date.now(),error:null})}finally{m.delete(a)}})();return m.set(a,l),l}async function O(e,t,n,r){await Promise.all([D(e,t,{force:!0}),D(n,r,{force:!0})])}async function k(e,t={}){let n=t.force??!1;if(!e)return;let r=h.get(e);if(!n&&r?.status===`ready`)return;let i=_.get(e);if(!n&&r?.status===`loading`&&i)return i;let o=h.get(e);w(e,{status:`loading`,categories:o?.categories??[],fetchedAt:o?.fetchedAt??null,error:null});let s=(async()=>{try{let t=await a.list(e);if(fD(t)){let n=h.get(e);w(e,{status:`error`,categories:n?.categories??[],fetchedAt:n?.fetchedAt??null,error:t.error.message})}else w(e,{status:`ready`,categories:t.data.categories,fetchedAt:Date.now(),error:null})}finally{_.delete(e)}})();return _.set(e,s),s}async function A(e,t,n={}){let r=n.force??!1;if(!e||!t)return;let i=aO(e,t),a=v.get(i);if(!r&&a?.status===`ready`)return;let o=b.get(i);if(!r&&a?.status===`loading`&&o)return o;let s=v.get(i);E(i,{status:`loading`,comments:s?.comments??[],fetchedAt:s?.fetchedAt??null,error:s?.error??null});let c=(async()=>{try{let n=await d.listForEntity(e,t);if(fD(n)){let e=v.get(i);E(i,{status:`error`,comments:e?.comments??[],fetchedAt:e?.fetchedAt??null,error:n.error.message})}else E(i,{status:`ready`,comments:n.data.comments,fetchedAt:Date.now(),error:null})}finally{b.delete(i)}})();return b.set(i,c),c}return{getEdges(e,t){return!e||!t?oO:f.get(aO(e,t))??oO},load:D,subscribe(e,t){let n=p.get(e);return n||(n=new Set,p.set(e,n)),n.add(t),()=>{n.delete(t),n.size===0&&p.delete(e)}},async add(e){let t=await i.add(e);return fD(t)?{ok:!1,error:t.error.message}:(await O(e.sourceType,e.sourceId,e.targetType,e.targetId),{ok:!0,id:t.data.id})},async remove(e){let t=await i.remove(e);return fD(t)?{ok:!1,error:t.error.message}:(await O(e.sourceType,e.sourceId,e.targetType,e.targetId),{ok:!0})},async setTargets(e){let t=await i.setTargets(e);return fD(t)?{ok:!1,error:t.error.message}:(await D(e.sourceType,e.sourceId,{force:!0}),{ok:!0})},invalidate(e,t){let n=aO(e,t);f.delete(n)&&x(n)},invalidateAll(){let e=[...f.keys()];f.clear();for(let t of e)x(t);let t=[...h.keys()];h.clear();for(let e of t)S(e);let n=[...v.keys()];v.clear();for(let e of n)T(e)},getCategories(e){return e?h.get(e)??sO:sO},loadCategories:k,subscribeCategories(e,t){let n=g.get(e);return n||(n=new Set,g.set(e,n)),n.add(t),()=>{n.delete(t),n.size===0&&g.delete(e)}},async createCategory(e){let t=await a.create(e);if(fD(t))return{ok:!1,error:t.error.message};let n={id:t.data.id,orgId:e.orgId,dimension:e.dimension,name:e.name,slug:e.slug??null,parentId:e.parentId??null,isSystem:!1,color:e.color??null,icon:e.icon??null,metadata:null,position:null},r=h.get(e.dimension),i=r?.categories??[];return i.some(e=>e.id===n.id)||w(e.dimension,{status:`ready`,categories:[...i,n],fetchedAt:r?.fetchedAt??Date.now(),error:null}),await k(e.dimension,{force:!0}),{ok:!0,id:t.data.id}},async updateCategory(e){let t=await a.update(e);return fD(t)?{ok:!1,error:t.error.message}:(await k(e.dimension,{force:!0}),{ok:!0,id:t.data.id})},async reparentCategory(e){let t=await a.reparent(e);return fD(t)?{ok:!1,error:t.error.message}:(await k(e.dimension,{force:!0}),{ok:!0,id:t.data.id})},async deleteCategory(e){let t=await a.delete(e.id);return fD(t)?{ok:!1,error:t.error.message}:(await k(e.dimension,{force:!0}),{ok:!0,id:t.data.id})},getComments(e,t){return!e||!t?cO:v.get(aO(e,t))??cO},loadComments:A,subscribeComments(e,t){let n=y.get(e);return n||(n=new Set,y.set(e,n)),n.add(t),()=>{n.delete(t),n.size===0&&y.delete(e)}},async addComment(e){let t=await d.add(e);return fD(t)?{ok:!1,error:t.error.message}:(await A(e.entityType,e.entityId,{force:!0}),{ok:!0,id:t.data.id})},async editComment(e){let t=await d.edit(e.id,e.body);return fD(t)?{ok:!1,error:t.error.message}:(await A(e.entityType,e.entityId,{force:!0}),{ok:!0,id:e.id})},async deleteComment(e){let t=await d.remove(e.id);return fD(t)?{ok:!1,error:t.error.message}:(await A(e.entityType,e.entityId,{force:!0}),{ok:!0,id:e.id})},invalidateComments(e,t){let n=aO(e,t);v.delete(n)&&T(n)},titles:c,favorites:o,candidates:s,entityRows:l,helpers:u,registry:n,services:{associations:i,categories:a,comments:d},registerEntityOverlay:n.registerEntityOverlay,errorSink:t,dataSource:e.dataSource,identity:e.identity}}var uO=1e3,dO=5e5,fO=class extends Error{label;collected;expected;constructor(e,t,n,r){super(`readAllRows(${e}): ${r} — collected ${t}`+(n===null?``:` of ${n}`)+`. Refusing to return a partial list: a truncated read used for an existence/diff decision produces a confidently WRONG answer.`),this.label=e,this.collected=t,this.expected=n,this.name=`IncompleteReadError`}};async function pO(e,t){let n=t.pageSize??uO,r=t.maxRows??dO,i=[],a=null;for(let o=0;;o+=n){let s=await e({from:o,to:o+n-1});if(s.error)throw Error(`readAllRows(${t.label}): query failed — ${s.error.message}`);let c=s.data??[];if(i.push(...c),typeof s.count==`number`&&(a=s.count),a===null){if(c.length<n)return i;throw new fO(t.label,i.length,null,`the query returned no count — pass { count: "exact" } to select() so completeness can be verified`)}if(i.length>=a)break;if(c.length===0)throw new fO(t.label,i.length,a,`a page came back empty before the declared total was reached`);if(i.length>r)throw new fO(t.label,i.length,a,`exceeded the ${r}-row safety limit`)}if(i.length!==a)throw new fO(t.label,i.length,a,`final row count does not match the total the server reported`);return i}function mO(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function hO(e){return typeof e==`string`?e:null}function gO(e){return e===!0}function _O(e){return typeof e==`boolean`?e:null}function vO(e){return Array.isArray(e)?e.filter(e=>typeof e==`string`):[]}function yO(e){return e===`builtin`?`builtin`:`user`}function bO(e){if(!mO(e))return null;let t=e.depth_budget,n=e.member_count;return{mode:hO(e.mode)??`supervisor`,tagline:hO(e.tagline),depthBudget:typeof t==`number`&&Number.isFinite(t)&&t>0?t:null,memberCount:typeof n==`number`&&Number.isFinite(n)&&n>=0?n:0,memberTitles:vO(e.member_titles)}}function xO(e){if(!mO(e))return null;let t=hO(e.id);return t?{id:tD(t),name:hO(e.name),description:hO(e.description),category:hO(e.category),tags:vO(e.tags),agentType:yO(e.agent_type),modelId:hO(e.model_id),isActive:gO(e.is_active),isArchived:gO(e.is_archived),isFavorite:!1,createdBy:hO(e.created_by),organizationId:hO(e.organization_id),taskId:hO(e.task_id),sourceAgentId:hO(e.source_agent_id),createdAt:hO(e.created_at),updatedAt:hO(e.updated_at),isOwner:_O(e.is_owner),accessLevel:hO(e.access_level),sharedByEmail:hO(e.shared_by_email),orchestra:bO(e.orchestra),...`offering_id`in e?{offeringId:hO(e.offering_id)}:{},...`organization_name`in e?{organizationName:hO(e.organization_name)}:{}}:null}var SO=1e3,CO=class extends Error{name=`AgentCatalogReadError`;source;constructor(e,t){super(`${e}: ${t}`),this.source=e}};function wO(e){return e.code?`${e.message} (${e.code})`:e.message}async function TO(e){let t=await pO(({from:t,to:n})=>Promise.resolve(e.rpc(`agx_get_list_full`,{},{count:`exact`}).order(`id`,{ascending:!0}).range(t,n)).then(e=>({data:Array.isArray(e.data)?e.data:null,error:e.error,count:e.count??null})),{label:`agx_get_list_full`,pageSize:SO}),n=[],r=0;for(let e of t){let t=xO(e);t?n.push(t):r+=1}if(r>0)throw new CO(`agx_get_list_full`,`${r} row(s) came back without an id and were refused. A row that cannot be identified cannot be selected, so the catalogue is not trustworthy — check the RPC's return shape.`);return n}async function EO(e,t){let n=t.query.trim();if(!n)return{ids:[],rows:[]};let{data:r,error:i}=await e.rpc(`agx_search`,{p_query:n,p_deep:t.deep??!1,p_limit:t.limit??50,p_offset:0});if(i)throw new CO(`agx_search`,wO(i));let a=[];if(Array.isArray(r))for(let e of r){let t=xO(e);t&&a.push(t)}return{ids:a.map(e=>e.id),rows:a}}async function DO(e,t){try{let n=(await EO(e,{query:t,limit:5})).rows.find(e=>e.id===t);if(n)return n}catch{}let{data:n,error:r}=await e.rpc(`agx_resolve_agent_address`,{p_ids:[t]});if(r)throw new CO(`agx_resolve_agent_address`,wO(r));if(!Array.isArray(n))return null;for(let e of n){if(typeof e!=`object`||!e)continue;let n=e;if(n.agent_id!==t)continue;let r=n.agent_name;return xO({id:t,name:typeof r==`string`?r:null,agent_type:n.agent_type,is_active:!0})}return null}var OO=`agent`;async function kO(e,t,n){if(t.length===0)return t;let r=null;try{let i=await e.getBulk(OO,t.map(e=>e.id));i.ok?r=new Set(i.data.items.filter(e=>e.isFavorite).map(e=>e.entityId)):n(i.error.message)}catch(e){n(e instanceof Error?e.message:String(e))}return t.map(e=>{let t=r?.has(e.id)??!1;return e.isFavorite===t?e:{...e,isFavorite:t}})}async function AO(e,t,n){let r=await e.setFavorite(OO,t,n);if(!r.ok)throw new CO(`user_entity_state (ues_set)`,r.error.code?`${r.error.message} (${r.error.code})`:r.error.message)}var jO=`ai-matrx.agents.catalog.default-row:`,MO=class extends Error{name=`MandateDefaultRowError`;mandateKey;remedy;constructor(e){super(`${e.message} — ${e.remedy}`),this.mandateKey=e.mandateKey,this.remedy=e.remedy}};function NO(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function PO(e,t){if(!NO(t))throw new MO({mandateKey:e,message:`mandate "${e}": the resolution endpoint did not return an object`,remedy:`check that the transport points at the AI Matrx server and that GET /mandates/{key}/resolution is reachable`});let n=t.agent_id,r=t.definition_agent_id,i=t.provenance,a=t.holder_type;return{mandateKey:typeof t.mandate_key==`string`?t.mandate_key:e,holderType:typeof a==`string`?a:`agent`,agentId:typeof n==`string`?n:null,isVersion:t.is_version===!0,definitionAgentId:typeof r==`string`?r:null,provenance:typeof i==`string`?i:`system`}}async function FO(e,t){let n=`/mandates/${encodeURIComponent(t)}/resolution`,r=await e.fetch(n,{method:`GET`,headers:{Accept:`application/json`}});if(!r.ok)throw new MO({mandateKey:t,message:`mandate "${t}": the server refused to resolve it (HTTP ${r.status})`,remedy:r.status===404?`the mandate does not exist — check the key this picker was given`:`check the caller's session and organization context, then retry`});return PO(t,await r.json())}function IO(){let e=new Map;return{getItem:t=>e.get(t)??null,setItem:(t,n)=>{e.set(t,n)},removeItem:t=>{e.delete(t)}}}function LO(){try{let e=globalThis.localStorage;if(e){let t=`${jO}__probe__`;return e.setItem(t,`1`),e.removeItem(t),e}}catch{}return IO()}function RO(e,t){try{if(!t)return null;let n=JSON.parse(t);if(!NO(n))return null;let r=n.holderId,i=n.holderName;if(typeof r!=`string`||typeof i!=`string`)return null;let a=n.holderDescription,o=n.provenance,s=n.at;return{mandateKey:e,holderId:r,holderName:i,holderDescription:typeof a==`string`?a:null,provenance:typeof o==`string`?o:`system`,at:typeof s==`number`?s:0}}catch{return null}}async function zO(e,t){let n;try{n=await e.getItem(jO+t)}catch{return null}return RO(t,n)}async function BO(e,t){try{await e.setItem(jO+t.mandateKey,JSON.stringify(t))}catch{}}function VO(e){return{id:nD(e.mandateKey),name:e.holderName,description:e.holderDescription,category:null,tags:[],agentType:`builtin`,modelId:null,isActive:!0,isArchived:!1,isFavorite:!1,createdBy:null,organizationId:null,taskId:null,sourceAgentId:e.holderId,createdAt:null,updatedAt:null,isOwner:null,accessLevel:null,sharedByEmail:null,orchestra:null,mandateKey:e.mandateKey}}function HO(e,t){return e?e.holderId===t.holderId?e.holderName===t.holderName?null:`The default agent for "${t.mandateKey}" was renamed: "${e.holderName}" is now "${t.holderName}".`:`The default agent for "${t.mandateKey}" changed: this screen was showing "${e.holderName}", and the platform now resolves it to "${t.holderName}". The list below is correct; anything that cached the old name is not.`:null}async function UO(e){let{mandateKey:t,transport:n,client:r,storage:i,lookupRow:a}=e,o=await zO(i,t),s=await FO(n,t);if(s.holderType!==`agent`)throw new MO({mandateKey:t,message:`mandate "${t}": the ${s.provenance} rung names a ${s.holderType} Holder, and an agent picker can only offer an agent`,remedy:`rebind the ${s.provenance} rung to an agent, or drop defaultMandateKey from this picker`});let c=s.definitionAgentId??s.agentId;if(!c)throw new MO({mandateKey:t,message:`mandate "${t}": the server resolved it without naming an agent`,remedy:`bind the ${s.provenance} rung to an agent`});let l=await a(c);if(l||=await DO(r,c)??void 0,!l||!l.name)throw new MO({mandateKey:t,message:`mandate "${t}": its Holder resolved, but nothing this caller can read could name that agent`,remedy:`grant this user access to the Holder, or make it a platform agent — the picker will not print a placeholder name in its place`});let u={mandateKey:t,holderId:c,holderName:l.name,holderDescription:l.description,provenance:s.provenance,at:Date.now()},d=HO(o,u);return await BO(i,u),{resolved:u,row:VO(u),drift:d}}var WO=Symbol.for(`ai-matrx.agents.catalog`);function GO(){let e=globalThis,t=e[WO];return t||(t={catalogs:new Map,listInFlight:new Map,listFetchedAt:new Map,defaultRows:new Map},e[WO]=t),t}var KO=`00000000-0000-0000-0000-000000000000`,qO=`agx_this_function_does_not_exist_probe`,JO={agx_get_list_full:{},agx_search:{p_query:`__probe__`,p_deep:!1,p_limit:1,p_offset:0},agx_resolve_agent_address:{p_ids:[KO]},ues_get_bulk:{p_entity_type:`agent`,p_entity_ids:[KO]}};function YO(e){if(!e||typeof e!=`object`)return!1;let t=e.code;return t===`PGRST202`||t===`42883`}async function XO(e,t={}){let{selfTest:n=!1,throwOnViolation:r=!0}=t,i=Object.keys(JO);n&&i.push(qO);let a=[],o=[],s=[],c=null;for(let t of i){let n=JO[t]??{};try{let{data:r,error:i}=await e.rpc(t,n);t===`agx_get_list_full`&&i==null&&(c=ZO(r)),i==null?s.push(t):YO(i)?a.push(t):s.push(t)}catch(e){o.push({fn:t,error:e})}}if(n){let e=a.includes(qO),t=a.indexOf(qO);t>=0&&a.splice(t,1);let n=s.indexOf(qO);if(n>=0&&s.splice(n,1),!e)throw Error(`assertAgentCatalogSchema self-test FAILED: the fabricated function "${qO}" did not come back as missing. This probe cannot currently fail, so its green result proves nothing — the client is swallowing or faking errors.`)}if(o.length>0)throw Error(`assertAgentCatalogSchema could not complete: ${o.length} probe call(s) failed to reach the database (${o.map(e=>e.fn).join(`, `)}). This is NOT a schema verdict — fix connectivity and re-run.`);let l=a.length===0,u={ok:l,missing:a,unreachable:o,answered:s,orchestraColumn:c};if(!l&&r)throw Error(`DEMANDED SCHEMA VIOLATION: the database this client points at cannot answer ${a.length} demanded function(s): ${a.join(`, `)}. @ai-matrx/agents/catalog cannot render a correct picker against it — point the client at Matrx Main, or apply the agx_* migrations.`);return u}function ZO(e){return!Array.isArray(e)||e.length===0?null:e.some(e=>typeof e==`object`&&!!e&&Object.prototype.hasOwnProperty.call(e,`orchestra`))}var QO=9e5,$O=144e5;function ek(){let e=!1;return t=>{e||(e=!0,console.error("[@ai-matrx/agents/catalog] no errorSink is bound, so failures are only reaching the console. Pass `errorSink` to createAgentCatalog to route them into your diagnostics surface.")),console.error(`[@ai-matrx/agents/catalog] ${t.code}: ${t.message}`,{...t.context??{}})}}function tk(e){return e instanceof Error?e.message:String(e)}function nk(e){if(!e||typeof e!=`object`)throw new uD({code:`missing_config`,message:`createAgentCatalog was called without a config object`,remedy:`pass { client, identity }`});if(!e.client||typeof e.client.rpc!=`function`)throw new uD({code:`missing_client`,message:`createAgentCatalog needs a Supabase client — it IS the catalogue read`,remedy:"pass `client` (a supabase-js client, or anything with rpc() and schema().from())"});if(!e.identity||typeof e.identity.requireUserId!=`function`)throw new uD({code:`missing_identity`,message:`createAgentCatalog needs to know who is asking`,remedy:"pass `identity: { requireUserId() }` — never a silent anonymous read"});let t=e.defaults?.archiveFilter;if(t!==void 0&&!cD(t))throw new uD({code:`invalid_archive_default`,message:`defaults.archiveFilter was ${JSON.stringify(t)}, which is not one of the three states of the platform archive filter`,remedy:`pass "active" (hide archived), "both" (show all) or "archived" (archived only)`});let n={...lD,...t?{archFilter:t}:{}},r=e.catalogId??`default`,i=e.client,a=e.identity,o=e.errorSink??ek(),s=e.notifier,c=e.storage??LO(),l=e.transport,u=e.favorites??lO({dataSource:i,identity:a,errorSink:o}).favorites;function d(e){o({code:`favorite_read_failed`,message:`your starred agents could not be read (${e}); every star is shown unset until the next catalogue load`,context:{catalogId:r}})}let f={...dD,...e.labels??{}},p=GO();p.catalogs.has(r)&&o({code:`catalog_replaced`,message:`a second agent catalog was created under id "${r}" and has REPLACED the first. Two catalogs with one id share a freshness stamp and an in-flight promise; give each one its own \`catalogId\`.`});let m={rows:[],byId:{},status:`idle`,error:null,consumers:{},defaultRows:{}},h=new Set;function g(e){m=e;for(let e of h)e()}function _(e){if(e.length===0)return;let t={...m.byId};for(let n of e)t[n.id]=n;g({...m,byId:t,rows:Object.values(t)})}function v(e){let t={};for(let n of e)t[n.id]=n;g({...m,byId:t,rows:Object.values(t)})}let y=!1;function b(){if(typeof a.getUserId==`function`)return a.getUserId();try{return a.requireUserId()}catch(e){return y||(y=!0,o({code:`identity_unavailable`,message:`identity.requireUserId() threw, so the picker is treating this session as signed out and opening on the public catalogue. Favoriting is unavailable until a session exists.`,context:{detail:tk(e)}})),null}}function x(){let e=p.listFetchedAt.get(r);return e!==void 0&&Date.now()-e<QO}function S(){let e=p.listFetchedAt.get(r);return e===void 0||Date.now()-e>$O}async function C(){if(b()===null){m.rows.length>0&&v([]),g({...m,status:`succeeded`,error:null});return}g({...m,status:`loading`,error:null});try{v(await kO(u,await TO(i),d)),g({...m,status:`succeeded`,error:null}),p.listFetchedAt.set(r,Date.now())}catch(e){let t=tk(e);throw g({...m,status:`failed`,error:t}),o({code:`list_read_failed`,message:`the agent catalogue could not be read: ${t}`,context:{catalogId:r}}),e}}async function w(e){if(!(e?.force??!1)&&x())return;let t=p.listInFlight.get(r);if(t)return t;let n=C().finally(()=>{p.listInFlight.get(r)===n&&p.listInFlight.delete(r)});return p.listInFlight.set(r,n),n}function T(e){return m.consumers[e]??n}function E(e,t){g({...m,consumers:{...m.consumers,[e]:t}})}function D(e,t){m.consumers[e]||E(e,{...n,...t??{}})}function O(e){if(!m.consumers[e])return;let t={...m.consumers};delete t[e],g({...m,consumers:t})}function k(e,t){E(e,{...m.consumers[e]??{...n},...t,listPage:1,sharedPage:1})}function A(e,t,n){let r=m.consumers[e];r&&E(e,t===`list`?{...r,listPage:n}:{...r,sharedPage:n})}function j(e,t){let r=m.consumers[e]??{...n},i={...r};t.matchedIds!==void 0&&(i.serverMatchedIds=t.matchedIds),t.isSearching!==void 0&&(i.isServerSearching=t.isSearching),(i.serverMatchedIds!==r.serverMatchedIds||i.isServerSearching!==r.isServerSearching)&&E(e,i)}function M(e){m.consumers[e]&&E(e,{...n})}async function N(e,t=!1){let n=await EO(i,{query:e,deep:t});return _(await kO(u,n.rows,d)),n.ids}async function P(e,t){let n=m.byId[e];if(!n){o({code:`favorite_unknown_agent`,message:`cannot favorite ${e}: it is not in this catalogue`});return}_([{...n,isFavorite:t}]);try{await AO(u,e,t)}catch(r){throw _([n]),o({code:`favorite_write_failed`,message:`the favorite could not be saved: ${tk(r)}`,context:{agentId:e,isFavorite:t}}),s?.({level:`error`,title:`Favorite not saved`,message:`The star was put back because the change could not be saved. Check your connection and try again.`}),r}}function F(e,t){g({...m,defaultRows:{...m.defaultRows,[e]:t}})}let I=new Set;function L(e){if(!e||I.has(e))return;let t=m.defaultRows[e];if(!t||t.error){if(!l)throw new uD({code:`missing_transport`,message:`a picker asked for the default row of mandate "${e}", but this catalog has no transport`,remedy:"pass `transport` (createMatrxTransport from @ai-matrx/agents/matrx) to createAgentCatalog — clients never walk the mandate ladder themselves, they ask the server"});I.add(e),F(e,{mandateKey:e,row:null,resolved:null,loading:!0,drift:null,error:null}),(async()=>{try{let t=await UO({mandateKey:e,transport:l,client:i,storage:c,errorSink:o,lookupRow:async e=>{let t=m.byId[e];if(t)return t;let n=p.listInFlight.get(r);if(n)return await n.catch(()=>void 0),m.byId[e]}});GO().defaultRows.set(`${r}::${e}`,t.resolved),F(e,{mandateKey:e,row:t.row,resolved:t.resolved,loading:!1,drift:t.drift,error:null}),t.drift&&(o({code:`default_row_drift`,message:t.drift,context:{mandateKey:e,holderId:t.resolved.holderId}}),s?.({level:`warning`,title:`The default agent changed`,message:t.drift}))}catch(t){let n=t instanceof MO?t.message:tk(t);F(e,{mandateKey:e,row:null,resolved:null,loading:!1,drift:null,error:n}),o({code:`default_row_unresolved`,message:n,context:{mandateKey:e}})}finally{I.delete(e)}})()}}function ee(e){return m.defaultRows[e]}function te(e){let t=m.defaultRows[e];t&&t.drift&&F(e,{...t,drift:null})}function ne(e){if(!e||I.has(e))return;let{[e]:t,...n}=m.defaultRows;g({...m,defaultRows:n}),L(e)}let re={catalogId:r,labels:f,errorSink:o,notifier:s,canResolveMandates:l!==void 0,consumerDefaults:n,getState:()=>m,subscribe:e=>(h.add(e),()=>{h.delete(e)}),getAgent:e=>m.byId[e],getUserIdOrNull:b,ensureLoaded:w,isFresh:x,isStale:S,getConsumer:T,registerConsumer:D,unregisterConsumer:O,setConsumerFilter:k,setConsumerPage:A,setConsumerServerSearch:j,resetConsumerFilters:M,searchServer:N,setFavorite:P,ensureDefaultRow:L,getDefaultRow:ee,dismissDefaultRowDrift:te,retryDefaultRow:ne,assertSchema:e=>XO(i,e)};return p.catalogs.set(r,re),re}var rk={supervisor:`supervisor`,sequential:`in order`,parallel:`together`,dag:`custom flow`};function ik(e){return rk[e]??e}function ak(e){let t=e.memberCount;return`Orchestra · ${ik(e.mode)} · ${t} ${t===1?`member`:`members`}`}function ok(e){let t=e.depthBudget;return typeof t!=`number`||t<=0?null:`Team members can call helpers up to ${t} ${t===1?`level`:`levels`} deep`}function sk(e,t=3){let n=e.memberTitles;if(n.length===0)return null;let r=n.slice(0,t),i=n.length-r.length;return`Delegates to: ${r.join(`, `)}${i>0?` +${i} more`:``}`}function ck(e,t){switch(e){case`system`:return t.emptySystem;case`shared`:return t.emptyShared;default:return t.emptyDefault}}function lk(e){return e.userId?e.agentsLoaded?e.ownedCount===0:!1:!0}function uk(e){return oD.find(t=>t.value===e)?.chip??`Archive`}function dk(e){return oD.find(t=>t.value===e)?.label??`Hide archived`}function fk(e){return`Archive filter: ${dk(e).toLowerCase()}. Click for ${dk(sD(e)).toLowerCase()}`}function pk(e){let{count:t,archFilter:n,archivedHiddenCount:r}=e;if(n===`archived`)return`${t} archived shown`;let i=`${t} agent${t===1?``:`s`}`;return n===`both`?`${i} · archived shown`:r>0?`${i} · ${r} archived hidden`:i}function mk(e,t){let n=t.trim().toLowerCase();if(!n)return 0;let r=0,i=(e.name??``).toLowerCase(),a=(e.description??``).toLowerCase();i===n?r+=1e4:i.startsWith(n)?r+=5e3:hk(i,n)?r+=3e3:i.includes(n)&&(r+=2e3),a===n?r+=1e3:a.includes(n)&&(r+=500),e.category?.toLowerCase().includes(n)&&(r+=300),e.tags?.some(e=>e.toLowerCase().includes(n))&&(r+=300),e.modelId?.toLowerCase().includes(n)&&(r+=100),e.agentType?.toLowerCase().includes(n)&&(r+=100),e.outputFormat?.toLowerCase().includes(n)&&(r+=100);let o=e.id.toLowerCase();if(o===n?r+=1e5:o.includes(n)&&(r+=5e3),e.sharedByEmail?.toLowerCase().includes(n)&&(r+=200),r===0&&n.includes(` `)){let t=n.split(/\s+/).filter(Boolean),o=0,s=0;for(let n of t){let t=i.includes(n);(t||a.includes(n)||(e.category?.toLowerCase().includes(n)??!1)||(e.tags?.some(e=>e.toLowerCase().includes(n))??!1))&&(o+=1,s+=t?400:100)}o===t.length&&(r+=s)}return r}function hk(e,t){let n=t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);return RegExp(`\\b${n}\\b`).test(e)}function gk(e,t){return mk(e,t)>0}function _k(e){let t,n,r=!1;return i=>((!r||t!==i)&&(n=e(i),t=i,r=!0),n)}function vk(e){let t,n,r,i=!1;return(a,o)=>((!i||t!==a||n!==o)&&(r=e(a,o),t=a,n=o,i=!0),r)}function yk(e,t){let n=e.id??``,r=t.id??``;return n<r?-1:+(n>r)}function bk(e,t,n){let r=xk(e,t,n);return!Number.isFinite(r)||r===0?yk(e,t):r}function xk(e,t,n){switch(n){case`name-asc`:return(e.name??``).localeCompare(t.name??``);case`name-desc`:return(t.name??``).localeCompare(e.name??``);case`created-desc`:return+new Date(t.createdAt??0)-new Date(e.createdAt??0);case`category-asc`:return(e.category??``).localeCompare(t.category??``);default:return+new Date(t.updatedAt??0)-new Date(e.updatedAt??0)}}var Sk=_k(e=>{let t=new Set;for(let n of e)n.agentType===`user`&&n.category&&t.add(n.category);return Array.from(t).sort()}),Ck=_k(e=>{let t=new Set;for(let n of e)n.agentType===`builtin`&&n.category&&t.add(n.category);return Array.from(t).sort()}),wk=_k(e=>{let t=new Set;for(let n of e)n.agentType===`user`&&n.tags?.forEach(e=>t.add(e));return Array.from(t).sort()}),Tk=_k(e=>{let t=new Set;for(let n of e)n.agentType===`builtin`&&n.tags?.forEach(e=>t.add(e));return Array.from(t).sort()}),Ek=_k(e=>e.filter(e=>e.agentType===`user`)),Dk=_k(e=>e.filter(e=>e.agentType===`builtin`));function Ok(e,t){let{searchTerm:n,sortBy:r,favFilter:i,favoritesFirst:a}=t;if(n){let i=new Map;e.forEach(e=>{i.set(e.id,mk(e,n))});let a=new Map;return t.serverMatchedIds.forEach((e,t)=>a.set(e,t)),[...e].sort((e,t)=>{let n=i.get(e.id)??0,o=i.get(t.id)??0;if(o!==n)return o-n;if(n===0){let n=a.get(e.id),r=a.get(t.id);if(n!==void 0&&r!==void 0&&n!==r)return n-r}return bk(e,t,r)})}return[...e].sort((e,t)=>{if(a&&i===`all`){let n=+!!e.isFavorite,r=+!!t.isFavorite;if(r!==n)return r-n}return bk(e,t,r)})}function kk(e,t){let{searchTerm:n,includedCats:r,includedTags:i,favFilter:a,archFilter:o,accessFilter:s,tab:c}=t,l=new Set(t.serverMatchedIds);return Ok(e.filter(e=>{if(c===`mine`&&e.isOwner!==!0||c===`shared`&&(e.isOwner!==!1||e.accessLevel==null)||!Mk(e,o)||a===`yes`&&!e.isFavorite||a===`no`&&e.isFavorite||s===`owned`&&e.isOwner!==!0||s===`shared`&&e.isOwner!==!1||s===`editable`&&e.accessLevel!==`owner`&&e.accessLevel!==`admin`&&e.accessLevel!==`editor`)return!1;if(r.length>0){let t=e.category;if(!t){if(!r.includes(`__none__`))return!1}else if(!r.includes(t))return!1}if(i.length>0){if(!e.tags?.length){if(!i.includes(`__none__`))return!1}else if(!e.tags?.some(e=>i.includes(e)))return!1}return!(n&&!gk(e,n)&&!l.has(e.id))}),t)}function Ak(e,t){let{searchTerm:n,favFilter:r,archFilter:i,includedCats:a,includedTags:o}=t,s=new Set(t.serverMatchedIds);return Ok(e.filter(e=>{if(!Mk(e,i)||r===`yes`&&!e.isFavorite||r===`no`&&e.isFavorite)return!1;if(a.length>0){let t=e.category;if(!t){if(!a.includes(`__none__`))return!1}else if(!a.includes(t))return!1}if(o.length>0){if(!e.tags?.length){if(!o.includes(`__none__`))return!1}else if(!e.tags?.some(e=>o.includes(e)))return!1}return!(n&&!gk(e,n)&&!s.has(e.id))}),t)}var jk=(e=!1)=>vk((t,n)=>{let r=Ek(t),i=Dk(t);return n.tab===`system`?Ak(i,n):e&&n.tab===`all`?[...kk(r,n),...Ak(i,n)]:kk(r,n)});function Mk(e,t){return t===`active`?!e.isArchived:t!==`archived`||!!e.isArchived}function Nk(e,t){let n=0;for(let r of e)r.agentType===`builtin`&&Mk(r,t)&&(n+=1);return n}function Pk(e,t,n){let r=0;for(let i of e)i.agentType===`user`&&Mk(i,t)&&n(i)&&(r+=1);return r}var Fk=e=>e.isOwner===!0,Ik=e=>e.isOwner===!1&&e.accessLevel!=null,Lk=()=>!0,Rk=vk((e,t)=>({mine:Pk(e,t,Fk),shared:Pk(e,t,Ik),all:Pk(e,t,Lk),system:Nk(e,t)})),zk=(0,_.createContext)(null);function Bk({catalog:e,platform:t,children:n,...r}){let i=(0,_.useMemo)(()=>({catalog:e,platform:t,...r}),[e,t,r.navigate,r.LinkComponent,r.renderModelRef,r.openPeek,r.popoverContainer]);return(0,j.jsx)(zk.Provider,{value:i,children:n})}function Vk(){let e=(0,_.useContext)(zk);if(!e)throw Error(`@ai-matrx/agents/catalog: no <AgentCatalogProvider> is mounted above this component. Create the catalog once with createAgentCatalog({ client, identity }) and mount <AgentCatalogProvider catalog={catalog}> at the top of your tree.`);return e}function Hk(){return Vk().catalog}function Uk(){let e=Vk(),t=e.navigate,n=e.platform.navigate;return{navigate:(0,_.useCallback)(e=>{if(t){t(e);return}n(e)},[t,n]),LinkComponent:e.LinkComponent??e.platform.LinkComponent,renderModelRef:e.renderModelRef??e.platform.renderModelRef,openPeek:e.openPeek,popoverContainer:e.popoverContainer}}function Wk(e){let t=Hk(),n=(0,_.useCallback)(()=>e(t.getState()),[t,e]);return(0,_.useSyncExternalStore)(t.subscribe,n,n)}function Gk(){return Wk(Kk)}var Kk=e=>e.rows,qk={navigate:e=>{typeof window<`u`&&window.location.assign(e)},LinkComponent:({children:e,...t})=>(0,j.jsx)(`a`,{...t,children:e}),renderModelRef:({modelId:e,className:t})=>(0,j.jsx)(`span`,{className:t,children:e})};function Jk({catalog:e,children:t,...n}){let r=(0,_.useMemo)(()=>qk,[]);return(0,j.jsx)(Bk,{catalog:e,platform:r,...n,children:t})}var Yk=250,Xk=2;function Zk(e,t){let n=Hk(),r=n.consumerDefaults,i=Wk((0,_.useCallback)(t=>t.consumers[e]??r,[e,r])),a=(0,_.useRef)(t);a.current=t,(0,_.useEffect)(()=>{let t=a.current,r={...t?.initialTab?{tab:t.initialTab}:{},...t?.initialArchFilter?{archFilter:t.initialArchFilter}:{}};return n.registerConsumer(e,Object.keys(r).length>0?r:void 0),()=>{a.current?.unregisterOnUnmount&&n.unregisterConsumer(e)}},[e,n]);let o=(0,_.useCallback)(t=>n.setConsumerFilter(e,{searchTerm:t}),[e,n]),s=(0,_.useCallback)(t=>n.setConsumerFilter(e,{deepSearch:t}),[e,n]),c=(0,_.useCallback)(t=>n.setConsumerFilter(e,{sortBy:t}),[e,n]),l=(0,_.useCallback)(t=>n.setConsumerFilter(e,{tab:t}),[e,n]),u=(0,_.useCallback)(t=>n.setConsumerFilter(e,{favFilter:t}),[e,n]),d=(0,_.useCallback)(t=>n.setConsumerFilter(e,{archFilter:t}),[e,n]),f=(0,_.useCallback)(t=>n.setConsumerFilter(e,{accessFilter:t}),[e,n]),p=(0,_.useCallback)(t=>{let r=n.getConsumer(e).includedCats,i=r.includes(t)?r.filter(e=>e!==t):[...r,t];n.setConsumerFilter(e,{includedCats:i})},[e,n]),m=(0,_.useCallback)(t=>{let r=n.getConsumer(e).includedTags,i=r.includes(t)?r.filter(e=>e!==t):[...r,t];n.setConsumerFilter(e,{includedTags:i})},[e,n]),h=(0,_.useCallback)(t=>n.setConsumerFilter(e,{includedCats:t}),[e,n]),g=(0,_.useCallback)(t=>n.setConsumerFilter(e,{includedTags:t}),[e,n]),v=(0,_.useCallback)(()=>n.setConsumerFilter(e,{favoritesFirst:!n.getConsumer(e).favoritesFirst}),[e,n]),y=(0,_.useCallback)(()=>n.setConsumerPage(e,`list`,n.getConsumer(e).listPage+1),[e,n]),b=(0,_.useCallback)(()=>n.setConsumerPage(e,`shared`,n.getConsumer(e).sharedPage+1),[e,n]),x=(0,_.useCallback)(()=>n.resetConsumerFilters(e),[e,n]),[S,C]=(0,_.useState)(!1),[w,T]=(0,_.useState)(null),E=(0,_.useRef)(0),D=i.searchTerm,O=i.deepSearch;(0,_.useEffect)(()=>{let e=D.trim();if(e.length<Xk){C(!1),T(null);return}let t=++E.current;C(!0);let r=setTimeout(()=>{n.searchServer(e,O).then(e=>{t===E.current&&(T(e),C(!1))}).catch(r=>{t===E.current&&(n.errorSink({code:`server_search_failed`,message:`agent search failed: ${r instanceof Error?r.message:String(r)}`,context:{query:e,deep:O}}),C(!1))})},Yk);return()=>clearTimeout(r)},[D,O,n]),(0,_.useEffect)(()=>{n.setConsumerServerSearch(e,{matchedIds:w??[],isSearching:S})},[e,n,w,S]);let k=i.searchTerm!==``||i.includedCats.length>0||i.includedTags.length>0||i.favFilter!==`all`||i.archFilter!==r.archFilter||i.accessFilter!==`any`||!i.favoritesFirst;return{tab:i.tab,sortBy:i.sortBy,searchTerm:i.searchTerm,includedCats:i.includedCats,includedTags:i.includedTags,favFilter:i.favFilter,archFilter:i.archFilter,archFilterDefault:r.archFilter,accessFilter:i.accessFilter,favoritesFirst:i.favoritesFirst,listPage:i.listPage,sharedPage:i.sharedPage,state:i,hasActiveFilters:k,deepSearch:i.deepSearch,isServerSearching:i.isServerSearching,setSearchTerm:o,setDeepSearch:s,setSortBy:c,setTab:l,setFavFilter:u,setArchFilter:d,setAccessFilter:f,toggleCategory:p,toggleTag:m,setIncludedCats:h,setIncludedTags:g,toggleFavoritesFirst:v,loadMoreList:y,loadMoreShared:b,resetFilters:x}}function Qk(e,t,n){return t.length===0||t.includes(e)?null:n&&t.includes(n)?n:t[0]??null}var $k=[];function eA({consumerId:e,onSelect:t,navigateTo:n,activeAgentIdOverride:r,initialTab:i,includeSystemInAll:a=!1,visibleTabs:o,initialArchFilter:s,excludeAgentIds:c=$k,defaultMandateKey:l,agentFilter:u}){let d=Hk(),{navigate:f}=Uk(),p=(0,_.useRef)(!1),[m,h]=(0,_.useState)(null),g=(0,_.useRef)(null),v=(0,_.useRef)(!1),y=Zk(e,{unregisterOnUnmount:!0,...s?{initialArchFilter:s}:{}}),b=Gk(),x=d.getUserIdOrNull(),S=Rk(b,y.state.archFilter),C=S.mine,w=(0,_.useMemo)(()=>jk(a),[a])(b,y.state),T=(0,_.useMemo)(()=>new Set(c),[c]),[E,D]=(0,_.useState)(null),O=u&&E!==u.label?u:null,k=O?.test,A=(0,_.useCallback)(e=>T.size===0&&!k?e:e.filter(e=>!T.has(e.id)&&(!k||k(e))),[T,k]),j=(0,_.useCallback)(()=>{u&&(u.onClear?u.onClear():D(u.label))},[u]),M=(0,_.useCallback)(()=>D(null),[]),N=A(w),P=(0,_.useMemo)(()=>jk(a),[a]),F=(0,_.useMemo)(()=>({...y.state,archFilter:`archived`}),[y.state]),I=y.archFilter===`active`?A(P(b,F)).length:0,L=Wk(tA),ee=r??null,te=ee?d.getAgent(ee):void 0,ne=y.tab===`system`,re=ne?Ck(b):Sk(b),ie=ne?Tk(b):wk(b),ae=S,oe=L===`loading`,se=L===`succeeded`||L===`failed`,ce=(0,_.useCallback)(()=>{p.current||(p.current=!0,d.ensureLoaded().catch(()=>{}))},[d]),le=Wk((0,_.useCallback)(e=>l?e.defaultRows[l]:void 0,[l]));(0,_.useEffect)(()=>{l&&d.ensureDefaultRow(l)},[d,l]),(0,_.useEffect)(()=>{if(!v.current){if(i){v.current=!0,y.tab!==i&&y.setTab(i);return}if(y.tab!==`mine`){v.current=!0;return}if(!lk({userId:x,ownedCount:C,agentsLoaded:se})){(!x||se)&&(v.current=!0);return}y.setTab(`system`),v.current=!0}},[x,C,se,i,y.tab,y.setTab]);let ue=o?o.join(`,`):``;(0,_.useEffect)(()=>{if(!ue)return;let e=Qk(y.tab,ue.split(`,`),i);e&&y.setTab(e)},[ue,i,y.tab,y.setTab]),(0,_.useEffect)(()=>{ce()},[ce]);let R=(0,_.useCallback)(r=>{t?t(r.id):n?f(n.replace(`{id}`,r.id)):d.errorSink({code:`select_has_nowhere_to_go`,message:`an agent was chosen but this picker was given neither onSelect nor navigateTo, so the choice went nowhere.`,context:{consumerId:e,agentId:r.id}})},[t,n,f,d,e]),de=(y.sortBy===`updated-desc`?0:1)+ +(y.includedCats.length>0)+ +(y.includedTags.length>0)+(y.favFilter===`all`?0:1)+(y.archFilter===y.archFilterDefault?0:1),z=(0,_.useCallback)((e,t)=>{t||(g.current&&=(clearTimeout(g.current),null),h(e))},[]),B=(0,_.useCallback)((e,t)=>{m?.id===e.id&&(g.current=setTimeout(()=>{h(null),t()},900))},[m]),fe=(0,_.useCallback)(()=>{g.current&&=(clearTimeout(g.current),null)},[]),pe=(0,_.useCallback)(e=>{g.current=setTimeout(()=>{h(null),e()},900)},[]);return(0,_.useEffect)(()=>()=>{g.current&&clearTimeout(g.current)},[]),{agents:N,archivedHiddenCount:I,footerLabel:pk({count:N.length,archFilter:y.archFilter,archivedHiddenCount:I}),isLoading:oe,activeAgentId:ee,pinnedAgent:te??null,defaultRow:le??null,agentFilterLabel:O?.label??null,clearAgentFilter:j,resumeAgentFilter:M,allCategories:re,allTags:ie,consumer:y,tabCounts:ae,activeFilterCount:de,hoveredAgent:m,setHoveredAgent:h,ensureLoaded:ce,handleSelectAgent:R,handleAgentHover:z,handleAgentHoverEnd:B,handleDetailPanelMouseEnter:fe,handleDetailPanelMouseLeave:pe}}var tA=e=>e.status,nA={star:{paths:[`M11.5 3.2a.6.6 0 0 1 1 0l2.3 4.7 5.2.8a.6.6 0 0 1 .3 1l-3.8 3.7.9 5.2a.6.6 0 0 1-.9.6L12 16.8l-4.6 2.4a.6.6 0 0 1-.9-.6l.9-5.2-3.8-3.7a.6.6 0 0 1 .3-1l5.2-.8Z`],fillable:!0},chevronRight:{paths:[`m9 18 6-6-6-6`]},chevronDown:{paths:[`m6 9 6 6 6-6`]},search:{paths:[`m21 21-4.3-4.3`],circles:[{cx:11,cy:11,r:8}]},x:{paths:[`M18 6 6 18`,`m6 6 12 12`]},check:{paths:[`M20 6 9 17l-5-5`]},arrowUpDown:{paths:[`m21 16-4 4-4-4`,`M17 20V4`,`m3 8 4-4 4 4`,`M7 4v16`]},folder:{paths:[`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`]},tag:{paths:[`M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z`],circles:[{cx:7.5,cy:7.5,r:.5,filled:!0}]},rotateCcw:{paths:[`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,`M3 3v5h5`]},loader:{paths:[`M21 12a9 9 0 1 1-6.219-8.56`]},alertTriangle:{paths:[`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,`M12 9v4`,`M12 17h.01`]},music4:{paths:[`M9 18V5l12-2v13`,`m9 9 12-2`],circles:[{cx:6,cy:18,r:3},{cx:18,cy:16,r:3}]},clock:{paths:[`M12 6v6l4 2`],circles:[{cx:12,cy:12,r:10}]},globe:{paths:[`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,`M2 12h20`],circles:[{cx:12,cy:12,r:10}]},users:{paths:[`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,`M22 21v-2a4 4 0 0 0-3-3.87`,`M16 3.13a4 4 0 0 1 0 7.75`],circles:[{cx:9,cy:7,r:4}]},externalLink:{paths:[`M15 3h6v6`,`M10 14 21 3`,`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`]},messageCircle:{paths:[`M7.9 20A9 9 0 1 0 4 16.1L2 22Z`]},rocket:{paths:[`M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91 0`,`m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2`,`M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0`,`M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5`]},archive:{paths:[`M3 3h18a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1z`,`M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8`,`M10 12h4`]},circleCheck:{paths:[`m9 12 2 2 4-4`],circles:[{cx:12,cy:12,r:10}]}};Object.keys(nA);function rA({children:e,...t}){return(0,j.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,...t,children:e})}function iA({name:e,filled:t}){let n=nA[e];return(0,j.jsxs)(j.Fragment,{children:[n.paths.map((e,r)=>(0,j.jsx)(`path`,{d:e,...t&&n.fillable?{fill:`currentColor`}:{}},`p${r}`)),(n.circles??[]).map((e,t)=>(0,j.jsx)(`circle`,{cx:e.cx,cy:e.cy,r:e.r,...e.filled?{fill:`currentColor`}:{}},`c${t}`))]})}function aA(e){return function(t){return(0,j.jsx)(rA,{...t,children:(0,j.jsx)(iA,{name:e,filled:!1})})}}function oA({filled:e=!1,...t}){return(0,j.jsx)(rA,{...t,fill:e?`currentColor`:`none`,children:(0,j.jsx)(iA,{name:`star`,filled:e})})}var sA=aA(`chevronRight`),cA=aA(`chevronDown`),lA=aA(`search`),uA=aA(`x`),dA=aA(`check`),fA=aA(`arrowUpDown`),pA=aA(`folder`),mA=aA(`tag`),hA=aA(`rotateCcw`),gA=aA(`archive`),_A=aA(`loader`),vA=aA(`users`),yA=aA(`clock`),bA=aA(`globe`),xA=aA(`externalLink`),SA=aA(`messageCircle`),CA=aA(`rocket`),wA=aA(`alertTriangle`),TA=aA(`music4`);function EA(e){return(0,j.jsxs)(rA,{...e,children:[(0,j.jsx)(`path`,{d:`M14 4.1 12 6`}),(0,j.jsx)(`path`,{d:`m5.1 8-2.9-.8`}),(0,j.jsx)(`path`,{d:`m6 12-1.9 2`}),(0,j.jsx)(`path`,{d:`M7.2 2.2 8 5.1`}),(0,j.jsx)(`path`,{d:`M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z`})]})}var DA=({ref:e,value:t,onChange:n,placeholder:r})=>(0,j.jsxs)(`div`,{className:`flex items-center gap-1.5 h-7 px-2 rounded-md bg-muted/40 border border-border/50`,children:[(0,j.jsx)(lA,{className:`w-3 h-3 text-muted-foreground shrink-0`}),(0,j.jsx)(`input`,{ref:e,type:`text`,value:t,onChange:e=>n(e.target.value),placeholder:r,className:`flex-1 bg-transparent text-xs text-foreground placeholder:text-muted-foreground/50 outline-none min-w-0`,style:{fontSize:`16px`}}),t&&(0,j.jsx)(`button`,{type:`button`,onClick:()=>n(``),className:`text-muted-foreground hover:text-foreground`,"aria-label":`Clear search`,children:(0,j.jsx)(uA,{className:`w-3 h-3`})})]});function OA({icon:e,label:t,active:n,focused:r,onClick:i,ariaLabel:a,testId:o}){return(0,j.jsxs)(`button`,{type:`button`,onClick:i,...a?{"aria-label":a}:{},...o?{"data-testid":o}:{},className:Z(`inline-flex items-center gap-1 h-6 px-1.5 rounded text-[11px] font-medium shrink-0 transition-colors`,r?`bg-primary/15 text-primary border border-primary/30 ring-1 ring-primary/20`:n?`bg-primary/10 text-primary border border-primary/20`:`text-muted-foreground hover:text-foreground hover:bg-muted/50 border border-transparent`),children:[(0,j.jsx)(e,{className:`w-3 h-3`}),(0,j.jsx)(`span`,{children:t})]})}function kA({label:e,selected:t,onClick:n}){return(0,j.jsxs)(`button`,{type:`button`,onClick:n,className:Z(`flex items-center w-full px-3 py-2 text-xs transition-colors`,`hover:bg-muted/50 active:bg-muted/70`,t&&`text-primary font-medium`),children:[(0,j.jsx)(`span`,{className:`flex-1 text-left`,children:e}),t&&(0,j.jsx)(dA,{className:`w-3.5 h-3.5 text-primary shrink-0`})]})}function AA({label:e,checked:t,onClick:n}){return(0,j.jsxs)(`button`,{type:`button`,onClick:n,className:`flex items-center gap-2 w-full px-3 py-1.5 text-xs hover:bg-muted/50 active:bg-muted/70 transition-colors`,children:[(0,j.jsx)(`div`,{className:Z(`w-3.5 h-3.5 rounded-sm border flex items-center justify-center shrink-0 transition-colors`,t?`bg-primary border-primary`:`border-muted-foreground/30`),children:t&&(0,j.jsx)(dA,{className:`w-2.5 h-2.5 text-primary-foreground`})}),(0,j.jsx)(`span`,{className:`flex-1 text-left truncate`,children:e})]})}function jA({title:e,onClose:t}){return(0,j.jsxs)(`div`,{className:`flex items-center justify-between px-3 py-2 border-b border-border shrink-0`,children:[(0,j.jsx)(`span`,{className:`text-xs font-semibold text-foreground`,children:e}),(0,j.jsx)(`button`,{type:`button`,onClick:t,className:`w-5 h-5 rounded flex items-center justify-center text-muted-foreground hover:text-foreground hover:bg-muted/50 transition-colors`,"aria-label":`Close`,children:(0,j.jsx)(uA,{className:`w-3.5 h-3.5`})})]})}function MA({consumer:e,allCategories:t,search:n,setSearch:r,onClose:i}){let a=t.filter(e=>!n||e.toLowerCase().includes(n.toLowerCase()));return(0,j.jsxs)(`div`,{className:`flex flex-col h-full`,children:[(0,j.jsx)(jA,{title:`Categories`,onClose:i}),(0,j.jsx)(`div`,{className:`px-2 pt-2 pb-1 shrink-0`,children:(0,j.jsx)(DA,{value:n,onChange:r,placeholder:`Filter categories...`})}),e.includedCats.length>0&&(0,j.jsxs)(`button`,{type:`button`,onClick:()=>e.setIncludedCats([]),className:`mx-2 mb-1 h-6 rounded text-[11px] font-medium text-primary hover:bg-muted/50 transition-colors text-left shrink-0`,children:[`Clear (`,e.includedCats.length,`)`]}),(0,j.jsx)(`div`,{className:`overflow-y-auto flex-1`,children:a.length===0?(0,j.jsx)(`p`,{className:`text-xs text-muted-foreground text-center py-6`,children:`No categories`}):a.map(t=>(0,j.jsx)(AA,{label:t,checked:e.includedCats.includes(t),onClick:()=>e.toggleCategory(t)},t))})]})}function NA({id:e,variant:t=`card`,disabled:n}){let r=Hk(),i=Wk((0,_.useCallback)(t=>t.byId[e],[e]))?.isFavorite??!1,a=t=>{t.stopPropagation(),!n&&r.setFavorite(e,!i).catch(()=>{})},o=i?`Remove from favorites`:`Add to favorites`;return t===`list`?(0,j.jsx)(`button`,{type:`button`,className:Z(`flex-shrink-0 p-0.5 rounded transition-all duration-150`,`focus:outline-none focus-visible:ring-2 focus-visible:ring-primary`,n?`cursor-not-allowed`:`hover:scale-110 cursor-pointer`),onClick:a,disabled:n,title:o,"aria-label":i?`Remove from favorites`:`Add to favorites`,children:(0,j.jsx)(oA,{filled:i,className:Z(`h-3.5 w-3.5 transition-all duration-150`,i?`matrx-agent-star-on`:`text-muted-foreground/40 hover:matrx-agent-star-on`)})}):(0,j.jsx)(`button`,{type:`button`,className:Z(`absolute top-2.5 right-2.5 z-10 p-0.5 rounded transition-all duration-150`,`focus:outline-none focus-visible:ring-2 focus-visible:ring-primary`,n?`cursor-not-allowed`:`hover:scale-110 cursor-pointer`,i?`matrx-agent-star-on`:`text-muted-foreground/40 hover:matrx-agent-star-on`),onClick:a,disabled:n,title:o,"aria-label":i?`Remove from favorites`:`Add to favorites`,children:(0,j.jsx)(oA,{filled:i,className:`w-4 h-4 transition-all duration-150`})})}function PA({agent:e,onSelect:t}){let{LinkComponent:n,renderModelRef:r,openPeek:i}=Uk(),a=e.updatedAt?new Date(e.updatedAt):null,o=e.createdAt?new Date(e.createdAt):null,s=rD(e.id),c=e=>e?e.toLocaleDateString(void 0,{month:`short`,day:`numeric`,year:`numeric`}):null;return(0,j.jsxs)(`div`,{className:`flex flex-col h-full`,children:[(0,j.jsx)(`div`,{className:`px-4 pt-4 pb-3`,children:(0,j.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,j.jsxs)(`div`,{className:`flex-1 min-w-0`,children:[(0,j.jsx)(`h3`,{className:`text-sm font-semibold text-foreground leading-tight break-words`,children:e.name||`Untitled`}),e.isFavorite&&(0,j.jsx)(`div`,{className:`flex items-center gap-1 mt-0.5`,children:(0,j.jsx)(`span`,{className:`text-[11px] matrx-agent-star-on`,children:`Pinned to favorites`})})]}),!s&&(0,j.jsx)(NA,{id:e.id,variant:`list`})]})}),(0,j.jsx)(`div`,{className:`h-px bg-border mx-3`}),(0,j.jsxs)(`div`,{className:`flex-1 overflow-y-auto px-4 py-3 space-y-3`,children:[e.orchestra&&(0,j.jsxs)(`div`,{className:`rounded-md border border-primary/20 bg-primary/5 px-2.5 py-2`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,j.jsx)(TA,{className:`w-3.5 h-3.5 text-primary shrink-0`}),(0,j.jsx)(`span`,{className:`text-[11px] font-medium text-primary`,children:ak(e.orchestra)})]}),e.orchestra.tagline&&(0,j.jsx)(`p`,{className:`mt-1 text-xs text-foreground/80 leading-relaxed`,children:e.orchestra.tagline}),sk(e.orchestra)&&(0,j.jsx)(`p`,{className:`mt-1 text-[11px] text-muted-foreground`,title:`Delegates to: ${e.orchestra.memberTitles.join(`, `)}`,children:sk(e.orchestra)}),ok(e.orchestra)&&(0,j.jsx)(`p`,{className:`mt-0.5 text-[11px] text-muted-foreground`,children:ok(e.orchestra)})]}),e.description&&(0,j.jsxs)(`div`,{children:[(0,j.jsx)(`p`,{className:`text-[11px] font-medium text-muted-foreground uppercase tracking-wider mb-1`,children:`Description`}),(0,j.jsx)(`p`,{className:`text-xs text-foreground/80 leading-relaxed`,children:e.description})]}),e.category&&(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(pA,{className:`w-3.5 h-3.5 text-muted-foreground shrink-0`}),(0,j.jsx)(`span`,{className:`text-xs text-foreground/80`,children:e.category})]}),e.tags&&e.tags.length>0&&(0,j.jsxs)(`div`,{children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-1.5 mb-1.5`,children:[(0,j.jsx)(mA,{className:`w-3.5 h-3.5 text-muted-foreground shrink-0`}),(0,j.jsx)(`span`,{className:`text-[11px] font-medium text-muted-foreground`,children:`Tags`})]}),(0,j.jsx)(`div`,{className:`flex flex-wrap gap-1`,children:e.tags.map(e=>(0,j.jsx)(`span`,{className:`inline-flex items-center h-5 px-1.5 rounded text-[10px] font-medium bg-muted text-muted-foreground`,children:e},e))})]}),e.accessLevel&&(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[e.isOwner===!1?(0,j.jsx)(vA,{className:`w-3.5 h-3.5 text-muted-foreground shrink-0`}):(0,j.jsx)(bA,{className:`w-3.5 h-3.5 text-muted-foreground shrink-0`}),(0,j.jsxs)(`div`,{className:`flex flex-col`,children:[(0,j.jsx)(`span`,{className:`text-xs text-foreground/80 capitalize`,children:e.accessLevel===`owner`?`You own this`:`Shared — ${e.accessLevel}`}),e.sharedByEmail&&(0,j.jsxs)(`span`,{className:`text-[10px] text-muted-foreground`,children:[`by `,e.sharedByEmail]})]})]}),e.modelId&&(0,j.jsx)(`div`,{className:`flex items-center gap-2`,children:r({modelId:e.modelId,...e.offeringId===void 0?{}:{offeringId:e.offeringId},className:`max-w-full text-xs text-foreground/80`})}),(a||o)&&(0,j.jsxs)(`div`,{className:`pt-1 space-y-1`,children:[a&&(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(yA,{className:`w-3.5 h-3.5 text-muted-foreground shrink-0`}),(0,j.jsxs)(`span`,{className:`text-[11px] text-muted-foreground`,children:[`Updated `,c(a)]})]}),o&&(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(yA,{className:`w-3.5 h-3.5 text-muted-foreground/50 shrink-0`}),(0,j.jsxs)(`span`,{className:`text-[11px] text-muted-foreground/70`,children:[`Created `,c(o)]})]})]})]}),(0,j.jsx)(`div`,{className:`h-px bg-border mx-3 mt-auto`}),(0,j.jsxs)(`div`,{className:`px-3 py-2 shrink-0 flex items-center gap-1.5`,children:[(0,j.jsx)(`button`,{type:`button`,onClick:t,className:`flex-1 h-7 rounded-md bg-primary text-primary-foreground text-[11px] font-medium hover:bg-primary/90 active:bg-primary/80 transition-colors`,children:`Select`}),i&&(0,j.jsx)(`button`,{type:`button`,onClick:t=>{t.stopPropagation(),i(e)},title:`Sneak Peek`,"aria-label":`Sneak Peek`,className:FA,children:(0,j.jsx)(CA,{className:`w-3.5 h-3.5`})}),!s&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(n,{href:`/chat/a/${e.id}`,onClick:e=>e.stopPropagation(),title:`Open in chat`,"aria-label":`Open in chat`,className:FA,children:(0,j.jsx)(SA,{className:`w-3.5 h-3.5`})}),(0,j.jsx)(n,{href:`/agents/go/${e.id}`,target:`_blank`,rel:`noopener noreferrer`,onClick:e=>e.stopPropagation(),title:`Open in new tab`,"aria-label":`Open in new tab`,className:Z(FA,`hover:text-foreground`),children:(0,j.jsx)(xA,{className:`w-3.5 h-3.5`})})]})]})]})}var FA=`flex items-center justify-center h-7 w-7 rounded-md border border-border bg-background text-muted-foreground hover:text-primary hover:bg-muted/50 transition-colors shrink-0`;function IA(e,t={}){if(!e||typeof window>`u`)return null;let n=t.full??528,r=t.minUsable??300,i=t.gap??16,a=window.innerHeight-e.getBoundingClientRect().bottom-i;return a>=n?null:a>=r?`${Math.floor(a)}px`:null}function LA(e,t,n={}){if(!e||typeof window>`u`||t!==`left`&&t!==`right`)return t;let r=n.width??680,i=n.gap??16,a=e.getBoundingClientRect(),o={left:a.left-i,right:window.innerWidth-a.right-i};if(o[t]>=r)return t;let s=t===`left`?`right`:`left`;return o[s]>=r?s:`bottom`}function RA({consumer:e,allCategories:t,allTags:n,activeFilterCount:r,isMobile:i,rightPanel:a,onFilterChipClick:o,onReset:s}){return(0,j.jsxs)(`div`,{className:`flex items-center gap-1 px-2 pb-1.5 overflow-x-auto matrx-agent-scrollbar-none shrink-0`,children:[(0,j.jsx)(OA,{icon:fA,label:iD.find(t=>t.value===e.sortBy)?.label??`Sort`,active:e.sortBy!==`updated-desc`,focused:!i&&a===`sort`,onClick:()=>o(`sort`)}),(0,j.jsx)(OA,{icon:oA,label:e.favFilter===`no`?`No Favs`:`Favs`,active:e.favFilter!==`all`,onClick:()=>{let t=e.favFilter===`all`?`yes`:e.favFilter===`yes`?`no`:`all`;e.setFavFilter(t)}}),(0,j.jsx)(OA,{icon:gA,label:uk(e.archFilter),active:e.archFilter!==e.archFilterDefault,ariaLabel:fk(e.archFilter),testId:`agent-archive-filter`,onClick:()=>e.setArchFilter(sD(e.archFilter))}),t.length>0&&(0,j.jsx)(OA,{icon:pA,label:e.includedCats.length>0?`${e.includedCats.length}`:`Category`,active:e.includedCats.length>0,focused:!i&&a===`categories`,onClick:()=>o(`categories`)}),n.length>0&&(0,j.jsx)(OA,{icon:mA,label:e.includedTags.length>0?`${e.includedTags.length}`:`Tags`,active:e.includedTags.length>0,focused:!i&&a===`tags`,onClick:()=>o(`tags`)}),r>0&&(0,j.jsx)(`button`,{type:`button`,onClick:s,"aria-label":`Reset filters`,className:`flex items-center gap-0.5 h-6 px-1.5 rounded text-[11px] text-muted-foreground hover:text-foreground hover:bg-muted/50 transition-colors shrink-0`,children:(0,j.jsx)(hA,{className:`w-3 h-3`})})]})}function zA({consumer:e,tabCounts:t,systemTabLabel:n,visibleTabs:r}){let{labels:i}=Hk(),a=[{value:`mine`,label:`Mine`,countKey:`mine`},{value:`shared`,label:`Shared`,countKey:`shared`},{value:`all`,label:`All`,countKey:`all`},{value:`system`,label:i.publicTab,countKey:`system`}];return(0,j.jsx)(`div`,{className:`flex items-center gap-0.5 px-2 pb-1 overflow-x-auto matrx-agent-scrollbar-none shrink-0`,role:`tablist`,"aria-label":`Agent ownership`,children:a.filter(({value:e})=>!r||r.includes(e)).map(({value:r,label:i,countKey:a})=>{let o=r===`system`?n??i:i,s=e.tab===r,c=t[a];return(0,j.jsxs)(`button`,{type:`button`,role:`tab`,"aria-selected":s,onClick:()=>e.setTab(r),className:Z(`inline-flex items-center gap-1 rounded-md px-2 py-1 text-[10px] font-medium transition-colors shrink-0`,s?`bg-primary text-primary-foreground`:`text-muted-foreground hover:text-foreground hover:bg-muted/50`),children:[(0,j.jsx)(`span`,{children:o}),(0,j.jsx)(`span`,{className:Z(`tabular-nums opacity-70`,s&&`opacity-90`),children:c})]},r)})})}function BA({agent:e,isActive:t,isHovered:n,isMobile:r,href:i,onClick:a,onHover:o,onHoverEnd:s,onDetailPress:c}){let{LinkComponent:l}=Uk(),{labels:u}=Hk(),d=i??`/agents/go/${e.id}`;return(0,j.jsxs)(`div`,{"data-testid":`agent-row-${e.id}`,className:Z(`flex items-center w-full text-left transition-colors group`,`hover:bg-muted/50 active:bg-muted/70`,t&&`bg-primary/5`,!r&&n&&`bg-muted/40`),onMouseEnter:r?void 0:o,onMouseLeave:r?void 0:s,children:[(0,j.jsxs)(l,{href:d,onClick:e=>{e.metaKey||e.ctrlKey||(e.preventDefault(),a())},className:`flex items-center gap-2 flex-1 min-w-0 px-3 py-2`,children:[e.isFavorite&&(0,j.jsx)(oA,{filled:!0,className:`w-3 h-3 matrx-agent-star-on shrink-0`}),(0,j.jsx)(`span`,{className:Z(`text-[13px] font-medium truncate`,t?`text-primary`:`text-foreground`),title:e.name||`Untitled`,children:e.name||`Untitled`}),e.organizationName?(0,j.jsx)(`span`,{"data-testid":`agent-org-${e.id}`,className:`text-[10px] text-muted-foreground truncate min-w-0 shrink`,title:e.organizationName,children:e.organizationName}):null,e.orchestra&&(0,j.jsxs)(`span`,{className:`flex shrink-0 items-center gap-0.5 rounded-sm bg-primary/10 px-1 py-px text-[9px] font-medium text-primary`,title:sk(e.orchestra)??ak(e.orchestra),children:[(0,j.jsx)(TA,{className:`w-2.5 h-2.5`}),e.orchestra.memberCount]}),e.isArchived?(0,j.jsx)(`span`,{"data-testid":`agent-archived-badge-${e.id}`,className:`text-[9px] font-medium text-muted-foreground bg-muted px-1 py-px rounded shrink-0 ml-auto`,children:u.archivedBadge}):null,e.agentType===`builtin`?(0,j.jsx)(`span`,{className:Z(`text-[9px] font-medium text-primary bg-primary/10 px-1 py-px rounded shrink-0`,!e.isArchived&&`ml-auto`),children:u.systemBadge}):e.isOwner===!1?(0,j.jsx)(`span`,{className:Z(`text-[9px] text-muted-foreground bg-muted px-1 py-px rounded shrink-0`,!e.isArchived&&`ml-auto`),children:`shared`}):null]}),r&&(0,j.jsx)(`button`,{type:`button`,"aria-label":`Show details`,onClick:e=>{e.stopPropagation(),c()},className:`flex items-center justify-center w-10 h-full shrink-0 text-muted-foreground/40 active:text-muted-foreground`,children:(0,j.jsx)(sA,{className:`w-4 h-4`})})]})}function VA({agents:e,isLoading:t,consumer:n,activeAgentId:r,allCategories:i,allTags:a,inputRef:o,onSelectAgent:s,resolveAgentHref:c,onReset:l,activeFilterCount:u,isMobile:d,hoveredAgent:f,onAgentHover:p,onAgentHoverEnd:m,onDetailPress:h,onFilterChipClick:g,rightPanel:v,tabCounts:y,visibleTabs:b,systemTabLabel:x,pinnedAgent:S=null,defaultRow:C=null,listOpen:w=!1,archivedHiddenCount:T=0,agentFilterLabel:E=null,onClearAgentFilter:D}){let O=Hk(),k=(0,_.useRef)(null);(0,_.useEffect)(()=>{w&&S&&k.current?.scrollTo({top:0})},[w,S?.id]);let{labels:A}=O,M=O.getUserIdOrNull()===null?A.emptySignedOut:ck(n.tab,A),N=C?.row??null;return(0,j.jsxs)(`div`,{className:`flex flex-col h-full`,children:[(0,j.jsx)(`div`,{className:`px-2 pt-2 pb-1 shrink-0`,children:(0,j.jsx)(DA,{ref:o,value:n.searchTerm,onChange:n.setSearchTerm,placeholder:A.searchPlaceholder})}),(0,j.jsx)(zA,{consumer:n,tabCounts:y,systemTabLabel:x,visibleTabs:b}),(0,j.jsx)(RA,{consumer:n,allCategories:i,allTags:a,activeFilterCount:u,isMobile:d,rightPanel:v,onFilterChipClick:g,onReset:l}),E&&(0,j.jsxs)(`div`,{"data-testid":`agent-list-host-filter`,className:`mx-2 mb-1.5 flex h-6 items-center gap-2 rounded-md bg-primary/10 px-2 shrink-0`,children:[(0,j.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-[11px] font-medium text-primary`,children:E}),D&&(0,j.jsx)(`button`,{type:`button`,onClick:D,className:`shrink-0 text-[11px] text-muted-foreground hover:text-foreground transition-colors`,children:`Show all`})]}),C?.drift&&(0,j.jsxs)(`div`,{role:`status`,className:`matrx-agent-drift-banner mx-2 mb-1.5 flex items-start gap-2 rounded-md px-2 py-1.5 shrink-0`,children:[(0,j.jsx)(wA,{className:`w-3.5 h-3.5 shrink-0 mt-px`}),(0,j.jsx)(`span`,{className:`text-[11px] leading-snug flex-1`,children:C.drift}),(0,j.jsx)(`button`,{type:`button`,"aria-label":`Dismiss`,onClick:()=>O.dismissDefaultRowDrift(C.mandateKey),className:`shrink-0 opacity-70 hover:opacity-100`,children:(0,j.jsx)(uA,{className:`w-3 h-3`})})]}),C?.error&&(0,j.jsxs)(p_,{as:`div`,className:`matrx-agent-drift-banner mx-2 mb-1.5 flex items-start gap-2 rounded-md px-2 py-1.5 shrink-0`,message:C.error,operation:`Load the default agent for ${C.mandateKey}`,origin:`agents/AgentListContent`,children:[(0,j.jsx)(wA,{className:`w-3.5 h-3.5 shrink-0 mt-px`}),(0,j.jsx)(`span`,{className:`text-[11px] leading-snug flex-1`,children:C.error}),(0,j.jsx)(`button`,{type:`button`,onClick:()=>O.retryDefaultRow(C.mandateKey),className:`shrink-0 text-[11px] font-medium underline underline-offset-2 opacity-80 hover:opacity-100`,children:`Try again`})]}),(0,j.jsx)(`div`,{className:`h-px bg-border shrink-0`}),(0,j.jsx)(`div`,{ref:k,className:`overflow-y-auto flex-1 min-h-0`,children:t?(0,j.jsxs)(`div`,{className:`flex items-center justify-center py-8 gap-2 text-muted-foreground`,children:[(0,j.jsx)(_A,{className:`w-4 h-4 matrx-agent-spin`}),(0,j.jsx)(`span`,{className:`text-xs`,children:A.loading})]}):e.length===0&&!S&&!N?(0,j.jsx)(`div`,{className:`flex flex-col items-center py-8 text-muted-foreground`,children:(0,j.jsx)(`span`,{className:`text-xs`,children:M})}):(0,j.jsxs)(`div`,{className:`py-0.5`,children:[N&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`div`,{className:`px-3 pt-1.5 pb-0.5`,children:(0,j.jsx)(`span`,{className:`text-[10px] font-medium uppercase tracking-wide text-muted-foreground`,children:`Default`})}),(0,j.jsx)(BA,{agent:N,isActive:N.id===r,isHovered:f?.id===N.id,isMobile:d,onClick:()=>s(N),href:c?.(N),onHover:()=>p(N),onHoverEnd:()=>m(N),onDetailPress:()=>h(N)},`default-${N.id}`),(0,j.jsx)(`div`,{className:`mx-2 my-0.5 h-px bg-border`})]}),S&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`div`,{className:`px-3 pt-1.5 pb-0.5`,children:(0,j.jsx)(`span`,{className:`text-[10px] font-medium uppercase tracking-wide text-muted-foreground`,children:A.currentAgentHeading})}),(0,j.jsx)(BA,{agent:S,isActive:!0,isHovered:f?.id===S.id,isMobile:d,onClick:()=>s(S),href:c?.(S),onHover:()=>p(S),onHoverEnd:()=>m(S),onDetailPress:()=>h(S)},`pinned-${S.id}`),(0,j.jsx)(`div`,{className:`mx-2 my-0.5 h-px bg-border`})]}),e.map(e=>(0,j.jsx)(BA,{agent:e,isActive:e.id===r,isHovered:f?.id===e.id,isMobile:d,onClick:()=>s(e),href:c?.(e),onHover:()=>p(e),onHoverEnd:()=>m(e),onDetailPress:()=>h(e)},e.id)),e.length===0&&(S||N)&&(0,j.jsx)(`div`,{className:`flex flex-col items-center py-4 text-muted-foreground`,children:(0,j.jsx)(`span`,{className:`text-xs`,children:M})})]})}),(0,j.jsx)(`div`,{className:`h-px bg-border shrink-0`}),(0,j.jsxs)(`div`,{className:`flex items-center justify-between px-2.5 py-1.5 shrink-0`,children:[(0,j.jsx)(`span`,{"data-testid":`agent-list-footer`,className:`text-[10px] text-muted-foreground tabular-nums`,children:pk({count:e.length,archFilter:n.archFilter,archivedHiddenCount:T})}),n.searchTerm&&(0,j.jsx)(`button`,{type:`button`,onClick:()=>n.setSearchTerm(``),className:`text-[10px] text-muted-foreground hover:text-foreground transition-colors`,children:`Clear search`})]})]})}function HA({view:e,consumer:t,allCategories:n,allTags:r,catSearch:i,setCatSearch:a,tagSearch:o,setTagSearch:s,onBack:c}){return(0,j.jsxs)(`div`,{className:`flex flex-col`,children:[(0,j.jsxs)(`button`,{type:`button`,onClick:c,className:`flex items-center gap-1.5 px-3 py-2.5 text-sm font-medium text-primary hover:bg-muted/30 transition-colors border-b border-border shrink-0`,children:[(0,j.jsx)(sA,{className:`w-4 h-4 rotate-180`}),e===`sort`?`Sort`:e===`categories`?`Categories`:`Tags`]}),e===`sort`&&iD.map(e=>(0,j.jsx)(kA,{label:e.label,selected:t.sortBy===e.value,onClick:()=>{t.setSortBy(e.value),c()}},e.value)),e===`categories`&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`div`,{className:`px-2 pt-2 pb-1`,children:(0,j.jsx)(DA,{value:i,onChange:a,placeholder:`Filter categories...`})}),t.includedCats.length>0&&(0,j.jsxs)(`button`,{type:`button`,onClick:()=>t.setIncludedCats([]),className:`mx-2 mb-1 h-6 rounded text-[11px] font-medium text-primary hover:bg-muted/50 transition-colors text-left`,children:[`Clear (`,t.includedCats.length,`)`]}),(0,j.jsx)(`div`,{className:`overflow-y-auto max-h-[300px]`,children:n.filter(e=>!i||e.toLowerCase().includes(i.toLowerCase())).map(e=>(0,j.jsx)(AA,{label:e,checked:t.includedCats.includes(e),onClick:()=>t.toggleCategory(e)},e))})]}),e===`tags`&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`div`,{className:`px-2 pt-2 pb-1`,children:(0,j.jsx)(DA,{value:o,onChange:s,placeholder:`Filter tags...`})}),t.includedTags.length>0&&(0,j.jsxs)(`button`,{type:`button`,onClick:()=>t.setIncludedTags([]),className:`mx-2 mb-1 h-6 rounded text-[11px] font-medium text-primary hover:bg-muted/50 transition-colors text-left`,children:[`Clear (`,t.includedTags.length,`)`]}),(0,j.jsx)(`div`,{className:`overflow-y-auto max-h-[300px]`,children:r.filter(e=>!o||e.toLowerCase().includes(o.toLowerCase())).map(e=>(0,j.jsx)(AA,{label:e,checked:t.includedTags.includes(e),onClick:()=>t.toggleTag(e)},e))})]})]})}function UA({consumer:e,onClose:t}){return(0,j.jsxs)(`div`,{className:`flex flex-col h-full`,children:[(0,j.jsx)(jA,{title:`Sort By`,onClose:t}),(0,j.jsx)(`div`,{className:`overflow-y-auto flex-1`,children:iD.map(t=>(0,j.jsx)(kA,{label:t.label,selected:e.sortBy===t.value,onClick:()=>e.setSortBy(t.value)},t.value))})]})}function WA({consumer:e,allTags:t,search:n,setSearch:r,onClose:i}){let a=t.filter(e=>!n||e.toLowerCase().includes(n.toLowerCase()));return(0,j.jsxs)(`div`,{className:`flex flex-col h-full`,children:[(0,j.jsx)(jA,{title:`Tags`,onClose:i}),(0,j.jsx)(`div`,{className:`px-2 pt-2 pb-1 shrink-0`,children:(0,j.jsx)(DA,{value:n,onChange:r,placeholder:`Filter tags...`})}),e.includedTags.length>0&&(0,j.jsxs)(`button`,{type:`button`,onClick:()=>e.setIncludedTags([]),className:`mx-2 mb-1 h-6 rounded text-[11px] font-medium text-primary hover:bg-muted/50 transition-colors text-left shrink-0`,children:[`Clear (`,e.includedTags.length,`)`]}),(0,j.jsx)(`div`,{className:`overflow-y-auto flex-1`,children:a.length===0?(0,j.jsx)(`p`,{className:`text-xs text-muted-foreground text-center py-6`,children:`No tags`}):a.map(t=>(0,j.jsx)(AA,{label:t,checked:e.includedTags.includes(t),onClick:()=>e.toggleTag(t)},t))})]})}var GA=`680px`;function KA({core:e,visibleTabs:t,systemTabLabel:n,includeSystemInAll:r=!1,resolveAgentHref:i,showPinnedAgent:a=!0,autoFocusSearch:o=!0,onAfterSelect:s,className:c}){let l=w_(),{labels:u}=Hk(),[d,f]=(0,_.useState)(null),[p,m]=(0,_.useState)(``),[h,g]=(0,_.useState)(``),[v,y]=(0,_.useState)(null),[b,x]=(0,_.useState)(null),S=(0,_.useRef)(null),{agents:C,archivedHiddenCount:w,isLoading:T,activeAgentId:E,pinnedAgent:D,defaultRow:O,agentFilterLabel:k,clearAgentFilter:A,allCategories:M,allTags:N,consumer:P,tabCounts:F,activeFilterCount:I,hoveredAgent:L,setHoveredAgent:ee,ensureLoaded:te,handleSelectAgent:ne,handleAgentHover:re,handleAgentHoverEnd:ie,handleDetailPanelMouseEnter:ae,handleDetailPanelMouseLeave:oe}=e;(0,_.useEffect)(()=>{if(te(),!o)return;let e=setTimeout(()=>S.current?.focus(),50);return()=>clearTimeout(e)},[te,o]);let se=(0,_.useRef)(!1);(0,_.useEffect)(()=>{se.current||l||!D||(se.current=!0,d===null&&(ee(D),f(`detail`)))},[D,l,d,ee]);let ce=e=>{ne(e),y(null),x(null),s?.(e)},le=e=>{l?x(e):f(d===e?null:e)},ue=(0,_.useCallback)(e=>{if(l)return;let t=d===`sort`||d===`categories`||d===`tags`;re(e,t),t||f(`detail`)},[l,d,re]),R=(0,_.useCallback)(e=>{l||d===`detail`&&ie(e,()=>f(null))},[l,d,ie]),de=(0,_.useCallback)(()=>{oe(()=>f(null))},[oe]),z=n??(r?`System`:void 0),B=(0,j.jsx)(VA,{agents:C,isLoading:T,consumer:P,activeAgentId:E,allCategories:M,allTags:N,inputRef:S,onSelectAgent:ce,...i?{resolveAgentHref:i}:{},onReset:P.resetFilters,activeFilterCount:I,isMobile:l,hoveredAgent:L,onAgentHover:ue,onAgentHoverEnd:R,onDetailPress:y,onFilterChipClick:le,rightPanel:d,tabCounts:F,archivedHiddenCount:w,...t?{visibleTabs:t}:{},...z?{systemTabLabel:z}:{},pinnedAgent:a?D:null,defaultRow:O,agentFilterLabel:k,onClearAgentFilter:A,listOpen:!0});return l?(0,j.jsx)(`div`,{className:Z(`flex min-h-0 flex-1 flex-col overflow-hidden`,c),children:v?(0,j.jsxs)(`div`,{className:`flex flex-col overflow-hidden`,children:[(0,j.jsxs)(`button`,{type:`button`,onClick:()=>y(null),className:`flex items-center gap-1.5 px-3 py-2.5 text-sm font-medium text-primary hover:bg-muted/30 transition-colors border-b border-border shrink-0`,children:[(0,j.jsx)(sA,{className:`w-4 h-4 rotate-180`}),`Back`]}),(0,j.jsx)(`div`,{className:`overflow-y-auto`,children:(0,j.jsx)(PA,{agent:v,onSelect:()=>ce(v)})})]}):b?(0,j.jsx)(HA,{view:b,consumer:P,allCategories:M,allTags:N,catSearch:p,setCatSearch:m,tagSearch:h,setTagSearch:g,onBack:()=>{x(null),m(``),g(``)}}):B}):(0,j.jsxs)(`div`,{className:Z(`flex h-full`,c),children:[(0,j.jsx)(`div`,{className:`flex flex-col min-w-[340px] flex-1 border-r border-border`,children:B}),(0,j.jsxs)(`div`,{className:`h-full w-[340px] shrink-0 overflow-hidden flex flex-col`,onMouseEnter:d===`detail`?ae:void 0,onMouseLeave:d===`detail`?de:void 0,children:[d===`detail`&&L&&(0,j.jsx)(`div`,{className:`h-full matrx-agent-fade-in`,children:(0,j.jsx)(PA,{agent:L,onSelect:()=>ce(L)})},L.id),d===`sort`&&(0,j.jsx)(UA,{consumer:P,onClose:()=>f(null)}),d===`categories`&&(0,j.jsx)(MA,{consumer:P,allCategories:M,search:p,setSearch:m,onClose:()=>{f(null),m(``)}}),d===`tags`&&(0,j.jsx)(WA,{consumer:P,allTags:N,search:h,setSearch:g,onClose:()=>{f(null),g(``)}}),d===null&&(0,j.jsxs)(`div`,{className:`flex flex-1 flex-col items-center justify-center gap-2 px-6 text-center`,children:[(0,j.jsx)(EA,{className:`h-6 w-6 text-muted-foreground/40`}),(0,j.jsx)(`p`,{className:`text-xs text-muted-foreground/70 leading-relaxed`,children:u.hoverHint})]})]})]})}var qA=`agent-list-dropdown`;function JA({onSelect:e,navigateTo:t,className:n,label:r,triggerSlot:i,noBorder:a=!1,compact:o=!1,activeAgentId:s,contentSide:c,consumerId:l=qA,initialTab:u,includeSystemInAll:d=!1,visibleTabs:f,systemTabLabel:p,resolveAgentHref:m,showPinnedAgent:h=!0,excludeAgentIds:g,defaultMandateKey:v,agentFilter:y}){let b=w_(),{labels:x}=Hk(),{popoverContainer:S}=Uk(),[C,w]=(0,_.useState)(!1),T=(0,_.useRef)(null),[E,D]=(0,_.useState)(null),[O,k]=(0,_.useState)(c),A=eA({consumerId:l,...e?{onSelect:e}:{},...t?{navigateTo:t}:{},...s===void 0?{}:{activeAgentIdOverride:s},...u?{initialTab:u}:{},includeSystemInAll:d,...f?{visibleTabs:f}:{},...g?{excludeAgentIds:g}:{},...v?{defaultMandateKey:v}:{},...y?{agentFilter:y}:{}}),{pinnedAgent:M,defaultRow:N,activeAgentId:P,isLoading:F,activeFilterCount:I}=A,L=N?.row?.id===P?N.row:null,ee=r??M?.name??L?.name??(P?F?x.triggerResolving:x.triggerUnnameable:x.triggerFallback),te=!!P&&ee.trim().length>0&&ee!==`Select an agent`&&ee!==x.triggerFallback,ne=e=>{w(e),e&&(A.resumeAgentFilter(),D(c||b?null:IA(T.current)),k(c&&!b?LA(T.current,c):c))},re=(0,_.useMemo)(()=>{if(m)return m;if(t)return e=>t.replace(`{id}`,e.id)},[t,m]),ie=i??(0,j.jsxs)(`button`,{type:`button`,className:Z(`inline-flex items-center rounded-md text-xs font-medium transition-colors`,`bg-background hover:bg-muted/50 text-foreground/80 hover:text-foreground`,o?`h-5 gap-1 px-1.5`:`h-7 gap-1.5 px-2.5`,!a&&`border border-border`,n),children:[(0,j.jsx)(`span`,{className:`min-w-0 max-w-[200px] flex-1 truncate text-left`,children:ee}),I>0&&(0,j.jsx)(`span`,{className:`flex items-center justify-center w-4 h-4 rounded-md bg-primary text-primary-foreground text-[10px]`,children:I}),(0,j.jsx)(cA,{className:`w-3 h-3 text-muted-foreground/60`})]}),ae=e=>te?(0,j.jsxs)(pd,{...C?{open:!1}:{},children:[(0,j.jsx)(e,{asChild:!0,ref:T,children:(0,j.jsx)(md,{asChild:!0,children:ie})}),(0,j.jsx)(hd,{side:`bottom`,className:`max-w-xs`,children:ee})]}):(0,j.jsx)(e,{asChild:!0,ref:T,children:ie}),oe=(0,j.jsx)(KA,{core:A,includeSystemInAll:d,showPinnedAgent:h,onAfterSelect:()=>w(!1),...f?{visibleTabs:f}:{},...p?{systemTabLabel:p}:{},...re?{resolveAgentHref:re}:{}});return b?(0,j.jsxs)(Qg,{open:C,onOpenChange:ne,children:[ae($g),(0,j.jsxs)(o_,{className:`h-[85dvh]`,children:[(0,j.jsx)(s_,{className:`sr-only`,children:`Select Agent`}),(0,j.jsx)(`div`,{className:`flex flex-col overflow-hidden flex-1 min-h-0`,children:oe})]})]}):(0,j.jsxs)(BS,{open:C,onOpenChange:ne,modal:!1,children:[ae(VS),(0,j.jsx)(HS,{...O?{side:O}:E?{side:`bottom`}:{},align:`start`,sideOffset:4,collisionPadding:12,sticky:`always`,...S?{container:S}:{},className:`p-0 overflow-hidden`,style:{width:GA,height:E??`528px`,maxHeight:E??`min(528px, var(--radix-popper-available-height, 528px))`},children:oe})]})}var YA=`Sign in to AI Matrx to use your agents`,XA=`latest`;function ZA(e){let t=n=>{let r=()=>e.call(`agentCatalogRpc`,n).then(e=>({data:e.data,error:e.error?{message:e.error.message,...e.error.code?{code:e.error.code}:{},details:e.error.details??null,hint:e.error.hint??null}:null,count:e.count??null}));return{then:(e,t)=>r().then(e,t),range:(e,r)=>t({...n,range:[e,r]}),order:(e,r)=>t({...n,order:{column:e,ascending:r?.ascending!==!1}})}};return{rpc:(e,n,r)=>t({fn:e,...n?{args:n}:{},...r?.count?{count:r.count}:{}})}}function QA(e,t){let[n,r]=(0,_.useState)(null);return(0,_.useEffect)(()=>{if(!t)return;let n=!0;return e.call(`agentAccess`).then(e=>n&&r(e)).catch(()=>n&&r({signedIn:!1,userId:null,organizationId:null,configured:!1})),()=>{n=!1}},[e,t]),n}function $A(e,t,n){let r=(0,_.useRef)(n);return r.current=n,(0,_.useMemo)(()=>t?nk({client:ZA(e),identity:{requireUserId:()=>t,getUserId:()=>t},catalogId:`coding-sessions:${t}`,errorSink:e=>{console.error(`[coding-sessions] agent catalogue: ${e.code}: ${e.message}`),e.code===`list_read_failed`&&r.current(`Couldn't load your agents. Reopen to retry.`)}}):null,[e,t])}function ej(e){return e.flatMap(e=>typeof e.name==`string`?[e]:[])}function tj(e){let t=QA(e.transport,e.open),[n,r]=(0,_.useState)(null),[i,a]=(0,_.useState)(null),o=$A(e.transport,t?.signedIn?t.userId:null,a),s=e.value?.agentId??null;(0,_.useEffect)(()=>{if(r(null),a(null),!s)return;let t=!0;return e.transport.call(`agentDetails`,s).then(e=>t&&r(e)).catch(e=>t&&a(e instanceof Error?e.message:String(e))),()=>{t=!1}},[s,e.transport]);let{onDetails:c}=e;(0,_.useEffect)(()=>{c?.(n)},[n,c]);let l=(0,_.useMemo)(()=>eD(ej(n?.variables??[])),[n]);if(t===null)return(0,j.jsx)(`div`,{className:`cs-skeleton h-9 rounded-lg`});if(!t.signedIn||!o)return(0,j.jsx)(`p`,{className:`text-[12.5px] text-muted-foreground`,children:YA});let u=(t,n)=>{e.value&&e.onChange({...e.value,variables:{...e.value.variables??{},[t]:n}})};return(0,j.jsxs)(`div`,{className:`space-y-3`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(fd,{children:(0,j.jsx)(Jk,{catalog:o,children:(0,j.jsx)(JA,{consumerId:`coding-sessions-new-session`,activeAgentId:s,label:n?.name??(s?`Loading…`:`None`),onSelect:t=>e.onChange({agentId:t,versionId:null,variables:{}})})})}),s?(0,j.jsx)(v_,{type:`button`,size:`sm`,variant:`ghost`,onClick:()=>e.onChange(null),children:`Remove`}):null]}),i?(0,j.jsx)(`p`,{className:`text-[12px] text-destructive`,children:i}):null,n&&e.value?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(`span`,{className:`w-[72px] shrink-0 text-[12px] text-muted-foreground`,children:`Version`}),(0,j.jsxs)(rS,{value:e.value.versionId??XA,onValueChange:t=>e.value&&e.onChange({...e.value,versionId:t===XA?null:t}),children:[(0,j.jsx)(sS,{className:`h-8 w-[200px] text-[12.5px]`,"aria-label":`Agent version`,children:(0,j.jsx)(iS,{})}),(0,j.jsxs)(uS,{children:[(0,j.jsx)(fS,{value:XA,children:n.latestVersionNumber===null?`Latest`:`Latest (v${n.latestVersionNumber})`}),n.versions.map(e=>(0,j.jsxs)(fS,{value:e.id,children:[`v`,e.versionNumber]},e.id))]})]})]}),l.map(t=>{let n=e.value?.variables?.[t.name],r=typeof n==`string`?n:``,i=`cs-agent-var-${t.name}`,a=e.missing===t.name;return(0,j.jsxs)(`div`,{className:`space-y-1`,children:[(0,j.jsxs)(`label`,{htmlFor:i,className:`text-[12px] font-medium`,children:[t.label,t.required?(0,j.jsx)(`span`,{className:`text-muted-foreground`,children:` · required`}):null]}),t.options&&t.options.length>0?(0,j.jsxs)(rS,{value:r,onValueChange:e=>u(t.name,e),children:[(0,j.jsx)(sS,{id:i,className:`h-8 text-[12.5px]`,"aria-invalid":a||void 0,children:(0,j.jsx)(iS,{placeholder:`Choose…`})}),(0,j.jsx)(uS,{children:t.options.map(e=>(0,j.jsx)(fS,{value:e,children:e},e))})]}):t.variable.customComponent?.type===`textarea`?(0,j.jsx)(Sw,{id:i,rows:2,value:r,onChange:e=>u(t.name,e.target.value),placeholder:t.hint??``,"aria-invalid":a||void 0}):(0,j.jsx)(uw,{id:i,value:r,onChange:e=>u(t.name,e.target.value),placeholder:t.hint??``,"aria-invalid":a||void 0}),a?(0,j.jsx)(`p`,{className:`text-[12px] text-destructive`,children:`Fill this in to use the agent`}):null]},t.name)})]}):null]})}function nj(e,t){if(!e||!t)return null;for(let n of eD(ej(e.variables))){if(!n.required)continue;let e=t.variables?.[n.name];if(typeof e!=`string`||!e.trim())return n.name}return null}var rj={instructions:`Instructions`,skills:`Skills`,tools:`Tools`};function ij(e){let t=e.loaded.map(e=>e.part===`instructions`?`${rj.instructions} ${e.loaded===1?`✓`:`—`}`:`${rj[e.part]} ${e.loaded}/${e.total}`);return`${e.name}${e.versionNumber===null?``:` v${e.versionNumber}`} · ${t.join(` · `)}`}function aj(e){let{agent:t}=e,n=DE(),[r,i]=(0,_.useState)(!1),[a,o]=(0,_.useState)(!1),[s,c]=(0,_.useState)(null),[l,u]=(0,_.useState)(null);(0,_.useEffect)(()=>{if(!r)return;let n=!0;return e.transport.call(`agentAccess`).then(e=>n&&u(e)).catch(()=>void 0),t&&e.transport.call(`agentDetails`,t.agentId).then(e=>{n&&e.latestVersionId&&e.latestVersionNumber!==null&&c({id:e.latestVersionId,number:e.latestVersionNumber})}).catch(()=>void 0),()=>{n=!1}},[r,t,e.transport]);let d=async(t,r)=>{try{await e.transport.call(`setAgent`,e.sessionId,t),n(r),e.onChange()}catch(e){n(`That didn't change: ${e instanceof Error?e.message:String(e)}`)}},f=t&&s&&t.versionNumber!==null&&s.number>t.versionNumber?s:null,p=!t||t.loaded.every(e=>e.loaded===e.total),m=l?.signedIn??!1;return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(JC,{open:r,onOpenChange:i,children:[(0,j.jsx)(YC,{asChild:!0,children:(0,j.jsxs)(`button`,{type:`button`,className:Z(`cs-agent-chip`,t?`cs-agent-chip--set`:`cs-agent-chip--none`,!p&&`cs-agent-chip--partial`),"data-testid":`cs-agent-chip`,"aria-label":t?`AI Matrx agent: ${t.name}`:`Add an AI Matrx agent`,children:[t?ij(t):`No agent`,f?(0,j.jsx)(`span`,{className:`cs-agent-chip-dot`,"aria-label":`Update available`}):null,(0,j.jsx)(xE,{size:12,className:`ml-1 inline shrink-0`})]})}),(0,j.jsxs)(rw,{align:`end`,className:`w-[320px]`,children:[t?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(sw,{className:`truncate`,children:[t.name,t.versionNumber===null?``:` · v${t.versionNumber}`]}),(0,j.jsxs)(`div`,{className:`cs-agent-parts`,children:[t.blockDue?(0,j.jsx)(`p`,{className:`text-[12px] text-muted-foreground`,children:`Sent with your next message`}):null,(0,j.jsx)(oj,{title:`Skills`,items:t.skills??[]}),(0,j.jsx)(oj,{title:`Tools`,items:t.tools??[]}),t.unavailable.length>0?(0,j.jsx)(oj,{title:`Not loaded`,items:t.unavailable.map(e=>`${e.name} — ${e.reason}`)}):null]}),(0,j.jsx)(cw,{})]}):null,m?(0,j.jsxs)(j.Fragment,{children:[f&&t?(0,j.jsxs)(iw,{onSelect:()=>void d({agentId:t.agentId,versionId:f.id,variables:t.variables??{}},`The next message uses ${t.name} v${f.number}.`),children:[`Update to v`,f.number]}):null,(0,j.jsx)(iw,{onSelect:()=>o(!0),children:t?`Change agent…`:`Choose agent…`}),t?(0,j.jsx)(iw,{onSelect:()=>void d(null,`The next message runs without an agent.`),children:`Remove agent`}):null]}):l?(0,j.jsx)(`p`,{className:`px-2 py-1.5 text-[12px] text-muted-foreground`,children:YA}):null]})]}),(0,j.jsx)(sj,{transport:e.transport,open:a,onOpenChange:o,title:t?`Change agent`:`Choose an agent`,action:`Use this agent`,onConfirm:e=>d(e,`The next message uses the new agent.`)})]})}function oj({title:e,items:t}){return(0,j.jsxs)(`div`,{children:[(0,j.jsxs)(`p`,{className:`text-[11.5px] font-medium text-muted-foreground`,children:[e,` · `,t.length]}),t.length>0?(0,j.jsx)(`ul`,{className:`cs-agent-part-list`,children:t.map(e=>(0,j.jsx)(`li`,{className:`truncate`,title:e,children:e},e))}):null]})}function sj(e){let[t,n]=(0,_.useState)(null),[r,i]=(0,_.useState)(null),[a,o]=(0,_.useState)(null),[s,c]=(0,_.useState)(!1);(0,_.useEffect)(()=>{e.open&&(n(null),o(null))},[e.open]);let l=async()=>{if(!t)return;let n=nj(r,t);if(o(n),!n){c(!0);try{await e.onConfirm(t),e.onOpenChange(!1)}finally{c(!1)}}};return(0,j.jsx)(KS,{open:e.open,onOpenChange:e.onOpenChange,children:(0,j.jsxs)(aC,{className:`max-w-[480px]`,children:[(0,j.jsx)(oC,{children:(0,j.jsx)(cC,{children:e.title})}),(0,j.jsx)(tj,{transport:e.transport,open:e.open,value:t,onChange:e=>{n(e),o(null)},missing:a,onDetails:i}),(0,j.jsxs)(sC,{children:[(0,j.jsx)(v_,{type:`button`,variant:`ghost`,onClick:()=>e.onOpenChange(!1),children:`Cancel`}),t?(0,j.jsx)(v_,{type:`button`,disabled:s,onClick:()=>void l(),children:e.action}):null]})]})})}function cj(e,t,n){try{let r=localStorage.getItem(e);return t.includes(r??``)?r:n}catch{return n}}function lj(e,t){try{localStorage.setItem(e,t)}catch{}}function uj({children:e,action:t}){return(0,j.jsxs)(`div`,{"data-cs-section-label":!0,className:`flex h-8 items-center justify-between px-3 pt-3`,children:[(0,j.jsx)(`span`,{className:`text-[12px] font-medium text-muted-foreground`,children:e}),t]})}function dj({children:e}){return(0,j.jsx)(`div`,{className:`truncate px-4 pb-0.5 pt-2.5 text-[12px] font-medium text-muted-foreground`,children:e})}function fj(e){let[t,n]=(0,_.useState)(e.initial),r=(0,_.useRef)(!1),i=t=>{r.current||(r.current=!0,e.onDone(t))};return(0,j.jsx)(`input`,{autoFocus:!0,value:t,onChange:e=>n(e.target.value),onFocus:e=>e.currentTarget.select(),onKeyDown:e=>{e.key===`Enter`&&i(t),e.key===`Escape`&&i(null)},onBlur:()=>i(t),"aria-label":`New name for this chat`,className:`cs-rename-input`})}function pj(e){return e.kind===`session`&&e.session?`#s/${e.session.id}`:e.providerSessionId?`#d/${e.provider}/${e.providerSessionId}`:``}function mj(e){let t=KT(),n=DE(),[r,i]=(0,_.useState)(!1),[a,o]=(0,_.useState)(!1),{entry:s}=e;return(0,j.jsxs)(Eb,{children:[(0,j.jsx)(Db,{asChild:!0,children:(0,j.jsxs)(`div`,{className:Z(`cs-row group`,e.active&&`cs-row--active`,a&&`cs-row--menu`),"data-hidden":s.hidden||void 0,"data-cs-row":s.key,"data-cs-target":pj(s),"data-cs-provider":s.provider,"data-cs-title":s.title,"data-cs-live":e.live?`true`:void 0,"data-cs-active":e.active?`true`:void 0,children:[(0,j.jsx)(`button`,{type:`button`,onClick:e.onSelect,className:`cs-row__hit`,"aria-current":e.active?`true`:void 0,"aria-label":s.title,title:s.title===s.originalTitle?s.title:`${s.title}\n(${s.originalTitle})`}),(0,j.jsx)(`span`,{className:`pointer-events-none mt-0.5 shrink-0`,children:e.live?(0,j.jsx)(uE,{size:16,className:`text-primary`}):(0,j.jsx)(pE,{provider:s.provider,size:16})}),(0,j.jsxs)(`span`,{className:`cs-row__body`,children:[r?(0,j.jsx)(`span`,{className:`pointer-events-auto relative z-10 block`,children:(0,j.jsx)(fj,{initial:s.title,onDone:e=>{if(i(!1),e===null||e.trim()===s.title)return;let r=e.trim()===``||e.trim()===s.originalTitle?null:e;t.setPreference(s.key,{title:r}).catch(e=>n(`The new name didn't save: ${e instanceof Error?e.message:String(e)}`))}})}):(0,j.jsxs)(`span`,{className:`flex items-center gap-1`,children:[(0,j.jsx)(`span`,{className:`min-w-0 truncate text-[13px] font-medium leading-5`,children:s.title}),s.pinned?(0,j.jsx)(gE,{size:11,className:`shrink-0 text-muted-foreground`,"aria-label":`Pinned`}):null]}),(0,j.jsx)(`span`,{className:`block truncate text-[11.5px] leading-4 text-muted-foreground`,children:e.meta}),e.snippet?(0,j.jsx)(`span`,{className:`cs-row__snippet`,children:e.snippet}):null]}),r?null:(0,j.jsxs)(`span`,{className:`cs-row__actions`,children:[e.takeover,(0,j.jsxs)(JC,{open:a,onOpenChange:o,children:[(0,j.jsx)(YC,{asChild:!0,children:(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button`,"aria-label":`More for ${s.title}`,title:`More`,children:(0,j.jsx)(hE,{size:15})})}),(0,j.jsx)(rw,{align:`start`,className:`w-60`,onCloseAutoFocus:e=>e.preventDefault(),children:(0,j.jsx)(jE,{entry:s,variant:`dropdown`,onRename:()=>i(!0)})})]})]})]})}),(0,j.jsx)(Pb,{className:`w-60`,onCloseAutoFocus:e=>e.preventDefault(),children:(0,j.jsx)(jE,{entry:s,variant:`context`,onRename:()=>i(!0)})})]})}function hj(){return(0,j.jsx)(`div`,{className:`space-y-1.5 px-3 py-2`,"aria-hidden":`true`,children:[0,1,2].map(e=>(0,j.jsx)(`div`,{className:`cs-skeleton h-9 rounded-lg`},e))})}function gj({text:e,query:t}){let n=t.trim().toLowerCase();if(!n)return e;let r=e.toLowerCase().indexOf(n);return r<0?e:(0,j.jsxs)(j.Fragment,{children:[e.slice(0,r),(0,j.jsx)(`mark`,{className:`cs-mark`,children:e.slice(r,r+n.length)}),e.slice(r+n.length)]})}var _j={query:``,loading:!1,error:null,hits:[],scanned:0,total:0,nextCursor:null};function vj(e){let t=KT(),[n,r]=(0,_.useState)(_j),i=(0,_.useRef)(e);i.current=e;let a=(0,_.useCallback)(async(e,n,a)=>{r(t=>({...a?t:_j,query:e,loading:!0,error:null}));try{let o=await t.search(e,n);if(i.current.trim()!==e)return;r(t=>({query:e,loading:!1,error:null,hits:a?[...t.hits,...o.hits]:o.hits,scanned:(a?t.scanned:n)+o.scanned,total:o.total,nextCursor:o.nextCursor}))}catch(t){if(i.current.trim()!==e)return;r(e=>({...e,loading:!1,error:t instanceof Error?t.message:String(t)}))}},[t]);return(0,_.useEffect)(()=>{let t=e.trim();if(t.length<2){r(_j);return}let n=setTimeout(()=>void a(t,0,!1),350);return()=>clearTimeout(n)},[e,a]),[n,(0,_.useCallback)(()=>{n.nextCursor!==null&&!n.loading&&a(n.query,n.nextCursor,!0)},[a,n.nextCursor,n.loading,n.query])]}function yj(e){return{provider:e.provider,providerSessionId:e.providerSessionId,cwd:e.cwd,title:e.title,updatedAt:e.updatedAt,source:null,activeElsewhere:null}}function bj(e){let t=KT(),n=qT(),r=YT(),[i,a]=(0,_.useState)(``),[o,s]=vj(i),[c,l]=(0,_.useState)(()=>cj(`coding-sessions.group`,[`date`,`folder`],`date`)),[u,d]=(0,_.useState)(!1),[f,p]=(0,_.useState)(null),[m,h]=(0,_.useState)(null),g=n.preferences,v=n.sessions.data,y=e=>{let t=n.runs[e];return t!==void 0&&!_T(t.status)},{ours:b,others:x,hiddenCount:S}=(0,_.useMemo)(()=>{let e=v.map(e=>FT(e,g)),t=new Set(v.map(e=>e.providerSessionId).filter(Boolean)),r=n.discovered.data.filter(e=>!t.has(e.providerSessionId)).map(e=>IT(e,g));return{ours:e,others:r,hiddenCount:[...e,...r].filter(e=>e.hidden).length}},[v,n.discovered.data,g]),C=e=>u||!e.hidden,w=[...b,...x].filter(e=>e.pinned&&C(e)).sort(UT),T=b.filter(e=>!e.pinned&&e.session&&y(e.session.id)&&C(e)),E=b.filter(e=>!e.pinned&&!(e.session&&y(e.session.id))&&C(e)),D=x.filter(e=>!e.pinned&&C(e)),O=e=>{l(e),lj(`coding-sessions.group`,e)},k=t=>{t.session?e.select({kind:`session`,id:t.session.id}):t.providerSessionId&&e.select({kind:`discovered`,provider:t.provider,id:t.providerSessionId})},A=t=>t.session?e.selection.kind===`session`&&e.selection.id===t.session.id:e.selection.kind===`discovered`&&e.selection.id===t.providerSessionId,M=async n=>{p(n.providerSessionId),h(null);try{let r=await t.takeover(n);e.select({kind:`session`,id:r.id})}catch(e){h({id:n.providerSessionId,message:e instanceof Error?e.message:String(e)})}finally{p(null)}},N=(e,t)=>{let i=e.session?y(e.session.id):!1,a=e.session?n.runs[e.session.id]:void 0,o=e.discovered,s;if(i)s=`${mT[e.provider]} is working…`;else if(o?.activeElsewhere)s=(0,j.jsxs)(`span`,{className:`cs-live-elsewhere`,children:[(0,j.jsx)(`span`,{className:`cs-live-dot`,"aria-hidden":`true`}),`Running in `,mT[e.provider]]});else{let n=a?a.status===`failed`?`Failed · `:a.status===`stopped`?`Stopped · `:``:``,i=e.cwd?ZT(e.cwd):`unknown folder`;s=`${n}${e.kind===`discovered`?`${mT[e.provider]} · `:``}${c===`folder`&&!t?``:`${i} · `}${XT(e.updatedAt,r)}`}return(0,j.jsxs)(`div`,{children:[(0,j.jsx)(mj,{entry:e,active:A(e),onSelect:()=>k(e),live:i,meta:s,snippet:t?.snippet,takeover:o?.cwd?(0,j.jsxs)(`button`,{type:`button`,className:`cs-takeover-chip`,onClick:()=>o.activeElsewhere?k(e):void M(o),title:o.activeElsewhere?o.activeElsewhere.message:`Continue this chat here`,disabled:f===o.providerSessionId,children:[f===o.providerSessionId?(0,j.jsx)(uE,{size:11}):null,`Take over`]}):null}),m&&o&&m.id===o.providerSessionId?(0,j.jsx)(`p`,{className:`mx-4 mb-1 text-[11.5px] text-destructive`,children:m.message}):null]},e.key)},P=e=>VT(e,c,r).map(e=>(0,j.jsxs)(`div`,{role:`group`,"aria-label":e.label,children:[(0,j.jsx)(dj,{children:e.label}),e.entries.map(e=>N(e))]},e.label)),F=i.trim().length>0,I=F?[...b,...x].filter(e=>HT(e,i)).sort(UT):[],L=new Set(I.map(e=>e.key)),ee=new Map([...b,...x].map(e=>[e.key,e])),te=o.hits.filter(e=>!L.has(hT(e.provider,e.providerSessionId))),ne=t=>{let n=ee.get(hT(t.provider,t.providerSessionId));if(n){k(n);return}e.onFound(yj(t)),e.select({kind:`discovered`,provider:t.provider,id:t.providerSessionId})},re=(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(uj,{children:`Chats`}),I.length===0?(0,j.jsx)(`p`,{className:`px-4 py-1 text-[12px] text-muted-foreground`,children:`No listed chat has that in its name or folder.`}):I.map(e=>N(e,{query:i})),(0,j.jsx)(uj,{children:`In conversations`}),i.trim().length<2?(0,j.jsx)(`p`,{className:`px-4 py-1 text-[12px] text-muted-foreground`,children:`Type at least two letters to search what was said.`}):(0,j.jsxs)(j.Fragment,{children:[te.map(t=>{let n=ee.get(hT(t.provider,t.providerSessionId)),r=n??IT(yj(t),g);return(0,j.jsx)(`div`,{onClickCapture:n?void 0:()=>e.onFound(yj(t)),children:N(r,{query:i,snippet:t.snippet?(0,j.jsx)(gj,{text:t.snippet,query:i}):void 0})},`hit:${r.key}`)}),(0,j.jsx)(`div`,{className:`px-4 py-2 text-[11.5px] leading-4 text-muted-foreground`,role:`status`,"aria-live":`polite`,children:o.error?(0,j.jsxs)(`span`,{className:`text-destructive`,children:[`Search stopped: `,o.error]}):o.loading?(0,j.jsxs)(`span`,{className:`inline-flex items-center gap-1.5`,children:[(0,j.jsx)(uE,{size:12}),` Searching your chats…`]}):o.query?(0,j.jsxs)(j.Fragment,{children:[te.length===0&&o.hits.length===0?`Nothing found. `:null,o.nextCursor===null?`Searched all ${o.total.toLocaleString()} chats on this computer.`:`Searched the ${o.scanned.toLocaleString()} most recent of ${o.total.toLocaleString()} chats.`,o.nextCursor===null?null:(0,j.jsx)(`button`,{type:`button`,className:`cs-link ml-1`,onClick:s,children:`Search older chats`})]}):null})]})]}),ie=(0,j.jsxs)(j.Fragment,{children:[w.length>0?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(uj,{children:`Pinned`}),w.map(e=>N(e))]}):null,T.length>0?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(uj,{children:`Running`}),T.map(e=>N(e))]}):null,(0,j.jsx)(uj,{children:`Recent`}),n.sessions.loading&&n.sessions.loadedAt===null?(0,j.jsx)(hj,{}):n.sessions.error?(0,j.jsx)(`p`,{className:`px-4 py-1 text-[12px] text-destructive`,children:n.sessions.error}):E.length===0?T.length===0?(0,j.jsx)(`p`,{className:`px-4 py-1 text-[12px] leading-5 text-muted-foreground`,children:`Sessions you start or take over here will appear here.`}):null:E.map(e=>N(e)),(0,j.jsx)(uj,{action:(0,j.jsxs)(`span`,{className:`flex items-center gap-0.5`,children:[(0,j.jsxs)(JC,{children:[(0,j.jsx)(YC,{asChild:!0,children:(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button cs-icon-button--text`,"aria-label":`How to list your other chats`,children:c===`date`?`By date`:`By folder`})}),(0,j.jsxs)(rw,{align:`end`,className:`w-52`,children:[(0,j.jsx)(sw,{children:`Group your other chats`}),(0,j.jsxs)(ZC,{value:c,onValueChange:e=>O(e),children:[(0,j.jsx)(ow,{value:`date`,children:`By date`}),(0,j.jsx)(ow,{value:`folder`,children:`By folder`})]}),(0,j.jsx)(cw,{}),(0,j.jsx)(iw,{onSelect:()=>d(e=>!e),children:u?`Leave hidden chats out`:`Show hidden chats${S?` (${S})`:``}`})]})]}),(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button`,onClick:()=>void t.refreshDiscovered(),"aria-label":`Look again for your other chats`,title:`Look again`,children:n.discovered.loading?(0,j.jsx)(uE,{size:13}):(0,j.jsx)(iE,{size:13})})]}),children:`Your other chats`}),n.discovered.loading&&n.discovered.loadedAt===null?(0,j.jsx)(hj,{}):n.discovered.error?(0,j.jsx)(`p`,{className:`px-4 py-1 text-[12px] text-destructive`,children:n.discovered.error}):D.length===0?(0,j.jsx)(`p`,{className:`px-4 py-1 text-[12px] leading-5 text-muted-foreground`,children:x.length>0?`Every chat found here is pinned or hidden.`:`No other Claude Code or Codex chats were found on this computer.`}):(0,j.jsxs)(j.Fragment,{children:[P(D),n.discovered.data.length>=n.discoveredLimit?(0,j.jsx)(`div`,{className:`px-3 pt-2`,children:(0,j.jsxs)(v_,{variant:`ghost`,size:`sm`,className:`w-full text-muted-foreground`,onClick:()=>void t.showMoreDiscovered(),disabled:n.discovered.loading,children:[n.discovered.loading?(0,j.jsx)(uE,{size:13}):null,`Show older chats`]})}):null]}),u?null:S>0?(0,j.jsxs)(`button`,{type:`button`,className:`cs-link mx-4 mt-3 text-[11.5px]`,onClick:()=>d(!0),children:[S,` hidden `,S===1?`chat`:`chats`,` — show`]}):null]});return(0,j.jsxs)(`aside`,{className:`cs-sidebar flex h-full shrink-0 flex-col border-r border-border bg-sidebar-background`,style:{width:e.width},"aria-label":`Sessions`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between gap-2 px-4 pb-2 pt-3.5`,children:[(0,j.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[(0,j.jsx)(`span`,{className:`cs-app-mark`,"aria-hidden":`true`}),(0,j.jsx)(`span`,{className:`truncate text-[14px] font-semibold tracking-[-0.01em]`,children:`Coding sessions`})]}),(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button`,onClick:e.onCollapse,"aria-label":`Hide the sidebar (⌘B)`,title:`Hide sidebar ⌘B`,children:(0,j.jsx)(bE,{size:15})})]}),(0,j.jsxs)(`div`,{className:`space-y-1.5 px-3 pb-1`,children:[(0,j.jsxs)(v_,{className:`w-full justify-start gap-2`,variant:`outline`,size:`sm`,onClick:e.onNew,children:[(0,j.jsx)($T,{size:15}),`New session`,(0,j.jsx)(`kbd`,{className:`cs-kbd ml-auto`,children:`⌥⌘N`})]}),(0,j.jsxs)(`div`,{className:`cs-search`,children:[(0,j.jsx)(mE,{size:14,className:`cs-search__icon`}),(0,j.jsx)(`input`,{ref:e.searchRef,type:`search`,value:i,onChange:e=>a(e.target.value),onKeyDown:e=>{if(e.key===`Escape`&&(i?a(``):e.currentTarget.blur(),e.preventDefault()),e.key===`Enter`){let e=I[0],t=te[0];e?k(e):t&&ne(t)}},placeholder:`Search chats`,"aria-label":`Search chats by name, folder or what was said`,spellCheck:!1,className:`cs-search__input`}),i?(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button cs-search__clear`,onClick:()=>a(``),"aria-label":`Clear search`,children:(0,j.jsx)(CE,{size:13})}):(0,j.jsx)(`kbd`,{className:`cs-search__kbd`,children:`⌘K`})]})]}),(0,j.jsx)(`nav`,{className:`min-h-0 flex-1 overflow-y-auto pb-3`,children:F?re:ie}),e.footer]})}function xj(){let e=[],t=null,n=0,r=null,i=new Map;function a(t,n,r){let i={...t.message,parts:n,status:r??t.message.status};t.message=i;let a=e.findIndex(e=>e.id===i.id);a>=0&&(e[a]=i)}function o(){if(t)return t;n+=1;let r=S({id:`turn-${n}-${e.length}`,role:`assistant`,status:`streaming`});return e.push(r),t={message:r,index:new Map},t}function s(e,t){let n=o(),r=[...n.message.parts],i=n.index.get(e);i===void 0?(n.index.set(e,r.length),r.push(t(null))):r[i]=t(r[i]??null),a(n,r)}function c(e){if(!t)return;let n=t;a(n,n.message.parts.map(t=>{if(t.type===`reasoning`&&t.state===`streaming`)return{...t,state:`done`};if(t.type===`tool`&&t.state===`input-available`&&e!==`streaming`){if(e===`cancelled`)return{...t,state:`output-error`,errorText:`Stopped before this finished.`};if(e===`error`)return{...t,state:`output-error`,errorText:`The run ended before this finished.`}}return t}),e),t=null}let l={apply(n){switch(n.kind){case`user`:c(`complete`),e.push(S({id:`user-${n.id}`,role:`user`,parts:[{type:`text`,text:n.text}],status:`complete`,metadata:n.at?{createdAt:n.at}:void 0}));return;case`text-delta`:s(n.id,e=>e&&e.type===`text`?{type:`text`,text:e.text+n.text}:{type:`text`,text:n.text});return;case`text`:s(n.id,()=>({type:`text`,text:n.text}));return;case`reasoning`:s(n.id,()=>({type:`reasoning`,text:n.text,state:`done`}));return;case`tool-call`:{let r=kT(n.name,n.input),a=r?[{toolName:n.name,message:r,percent:null,at:null}]:[];s(n.id,e=>e&&e.type===`tool`?{...e,input:n.input,progress:a}:{type:`tool`,toolCallId:n.id,toolName:n.name,state:`input-available`,input:n.input,output:null,errorText:null,progress:a,delegated:!1});let o=t;if(o){let t=o.index.get(n.id),r=e.findIndex(e=>e.id===o.message.id);t!==void 0&&r>=0&&i.set(n.id,{messageIndex:r,partIndex:t})}return}case`tool-result`:{let r=i.get(n.id);if(!r){s(n.id,()=>({type:`tool`,toolCallId:n.id,toolName:`Tool`,state:n.isError?`output-error`:`output-available`,input:null,output:n.isError?null:n.output,errorText:n.isError?n.output||`The tool reported an error.`:null,progress:[],delegated:!1}));return}let a=e[r.messageIndex],o=a?.parts[r.partIndex];if(!a||!o||o.type!==`tool`)return;let c=n.isError?{...o,state:`output-error`,errorText:n.output||`The tool reported an error.`,output:null}:{...o,state:`output-available`,output:n.output},l=[...a.parts];l[r.partIndex]=c;let u={...a,parts:l};e[r.messageIndex]=u,t&&t.message.id===u.id&&(t.message=u);return}case`usage`:r={usage:n.usage,costUsd:n.costUsd};return;case`notice`:s(n.id,()=>({type:`notice`,level:n.level===`warning`?`medium`:`info`,code:null,userMessage:n.text,remedy:null}));return;case`error`:{let e=ST(n.text);if(t?.message.parts.some(t=>t.type===`error`&&t.message.trim()===e.trim()))return;s(n.id,()=>({type:`error`,errorType:`provider`,code:null,message:e,userMessage:e,recoverable:!0,remedy:null}));return}}},applyAll(e){for(let t of e)l.apply(t)},beginTurn(){o()},endTurn(n,r){n===`failed`&&r&&l.apply({kind:`error`,id:`run-error-${e.length}`,text:r}),n===`stopped`&&t&&l.apply({kind:`notice`,id:`run-stopped-${e.length}`,level:`info`,text:`You stopped this run.`}),c(n===`stopped`?`cancelled`:n===`failed`?`error`:`complete`)},messages(){return e.slice()},lastUsage(){return r}};return l}var Sj=60,Cj=25165824;function wj(e){return{data:e,loading:!1,error:null,loadedAt:null}}function Tj(e){return e instanceof Error?e.message:String(e)}var Ej=class{sessionId;client;thread;builder=xj();messages=[];listeners=new Set;seqMark=0;pending=[];activeRunId=null;activity=null;state={loading:!0,unavailable:null,truncated:!1};maxBytes=Cj;constructor(e,t){this.sessionId=e,this.client=t,this.thread=pT({getSnapshot:()=>({messages:this.messages,status:this.status(),conversationId:this.sessionId,ephemeral:!1}),features:{surface:{sendWhileBusy:!0}},subscribe:e=>(this.listeners.add(e),()=>{this.listeners.delete(e)}),onSubmit:async e=>{await this.client.send(this.sessionId,e.text)},onCancel:async()=>{let e=this.client.getState().runs[this.sessionId];e&&!_T(e.status)&&await this.client.stop(e.runId)}})}status(){let e=this.client.getState().runs[this.sessionId];return e?e.status===`starting`?`submitted`:e.status===`running`?`streaming`:`idle`:`idle`}notify(){this.messages=this.builder.messages();for(let e of this.listeners)e()}async loadEarlier(){this.state.truncated&&!this.state.loadingEarlier&&(this.maxBytes*=4,this.state={...this.state,loadingEarlier:!0},this.notify(),await this.load(!0))}async load(e=!1){e||(this.state={loading:!0,unavailable:null,truncated:!1},this.notify());try{let e=await this.client.transport.call(`history`,this.sessionId,{maxBytes:this.maxBytes});this.builder=xj(),this.builder.applyAll(e.items),this.seqMark=e.seq;let t=this.client.getState().runs[this.sessionId];t&&!_T(t.status)?(this.activeRunId=t.runId,this.builder.beginTurn()):this.builder.endTurn(`completed`),this.state={loading:!1,unavailable:e.unavailable,truncated:e.truncated};let n=this.pending;this.pending=[];for(let e of n)this.onEvent(e.event)}catch(e){this.state={loading:!1,unavailable:Tj(e),truncated:!1}}this.notify()}onEvent(e){if(this.state.loading){e.type===`item`&&this.pending.push({seq:e.seq,event:e});return}if(e.type===`item`){if(e.seq<=this.seqMark)return;this.seqMark=e.seq,this.builder.apply(e.item),e.item.kind===`user`&&(this.activeRunId=e.runId,this.builder.beginTurn()),this.activity=Dj(this.activity,e.item),this.notify();return}if(e.type===`run`){let t=e.run;_T(t.status)&&(this.activity=null,this.activeRunId===t.runId?(this.builder.endTurn(t.status,t.error),this.activeRunId=null):t.status===`failed`&&t.error&&this.builder.endTurn(`failed`,t.error)),this.notify()}}};function Dj(e,t){switch(t.kind){case`user`:return`Thinking…`;case`text-delta`:return`Writing…`;case`text`:case`reasoning`:case`tool-result`:return`Thinking…`;case`tool-call`:{let e=kT(t.name,t.input);return`${ET(t.name)}${e?` — ${e}`:``}`}default:return e}}var Oj=class{transport;state;listeners=new Set;transcripts=new Map;finishedListeners=new Set;onRunFinished=e=>(this.finishedListeners.add(e),()=>{this.finishedListeners.delete(e)});constructor(e){this.transport=e,this.state={connection:e.status(),providers:wj([]),sessions:wj([]),discovered:wj([]),folders:wj([]),runs:{},preferences:{},discoveredLimit:Sj},e.onStatus(e=>{let t=this.state.connection.state===`open`;this.set({connection:e}),e.state===`open`&&!t&&this.refreshAll()}),e.subscribe(e=>this.onEvent(e))}getState=()=>this.state;subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});set(e){this.state={...this.state,...e};for(let e of this.listeners)e()}onEvent(e){if(e.type===`session`){let t=this.state.sessions.data.filter(t=>t.id!==e.session.id);t.unshift(e.session),t.sort((e,t)=>t.updatedAt.localeCompare(e.updatedAt)),this.set({sessions:{...this.state.sessions,data:t}})}else if(e.type===`run`){let t=this.state.runs[e.run.sessionId];if(this.set({runs:{...this.state.runs,[e.run.sessionId]:e.run}}),_T(e.run.status)&&(!t||t.runId!==e.run.runId||!_T(t.status))){let t=this.state.sessions.data.find(t=>t.id===e.run.sessionId)??null;for(let n of this.finishedListeners)n({run:e.run,session:t})}}else if(e.type===`preferences`){this.set({preferences:e.preferences});return}let t=e.type===`session`?e.session.id:e.type===`run`?e.run.sessionId:e.sessionId;this.transcripts.get(t)?.onEvent(e)}async load(e,t){this.set({[e]:{...this.state[e],loading:!0,error:null}});try{let n=await t();this.set({[e]:{data:n,loading:!1,error:null,loadedAt:Date.now()}})}catch(t){this.set({[e]:{...this.state[e],loading:!1,error:Tj(t)}})}}refreshProviders=()=>this.load(`providers`,()=>this.transport.call(`providers`));refreshDiscovered=()=>this.load(`discovered`,()=>this.transport.call(`discoverSessions`,{limit:this.state.discoveredLimit}));showMoreDiscovered=async()=>{this.set({discoveredLimit:this.state.discoveredLimit+Sj}),await this.refreshDiscovered()};refreshPreferences=async()=>{try{this.set({preferences:await this.transport.call(`chatPreferences`)})}catch{}};setPreference=async(e,t)=>{let n=this.state.preferences,r={...n[e],...t};this.set({preferences:{...n,[e]:r}});try{this.set({preferences:await this.transport.call(`setChatPreference`,e,t)})}catch(e){throw this.set({preferences:n}),e}};search(e,t=0){return this.transport.call(`searchChats`,e,{cursor:t,limit:30})}readRawTranscript(e,t){return this.transport.call(`readRawTranscript`,e,t)}openFolder(e,t){return this.transport.call(`openFolder`,e,t)}setSessionOptions(e,t){return this.transport.call(`setSessionOptions`,e,t)}refreshFolders=()=>this.load(`folders`,()=>this.transport.call(`recentFolders`));refreshSessions=async()=>{await this.load(`sessions`,()=>this.transport.call(`listSessions`));let e={};await Promise.all(this.state.sessions.data.map(async t=>{let n=await this.transport.call(`listRuns`,t.id).catch(()=>[]),r=n[n.length-1];r&&(e[t.id]=r)})),this.set({runs:{...e,...this.pickLive()}})};pickLive(){let e={};for(let[t,n]of Object.entries(this.state.runs))_T(n.status)||(e[t]=n);return e}refreshAll=async()=>{await Promise.all([this.refreshSessions(),this.refreshProviders(),this.refreshDiscovered(),this.refreshFolders(),this.refreshPreferences()]);for(let e of this.transcripts.values())e.load()};transcript(e){let t=this.transcripts.get(e);return t||(t=new Ej(e,this),this.transcripts.set(e,t),t.load()),t}async readPreview(e,t,n){try{let r=await this.transport.call(`readTranscript`,e,t,n?{maxBytes:n}:void 0),i=xj();return i.applyAll(r.items),i.endTurn(`completed`),{loading:!1,messages:i.messages(),unavailable:r.unavailable,truncated:r.truncated}}catch(e){return{loading:!1,messages:[],unavailable:Tj(e),truncated:!1}}}start(e){return this.transport.call(`start`,e)}takeover(e,t){return this.transport.call(`takeover`,{provider:e.provider,providerSessionId:e.providerSessionId,cwd:e.cwd??``,title:e.title,...t?{agent:t}:{}})}send(e,t){return this.transport.call(`send`,e,t)}stop(e){return this.transport.call(`stop`,e)}},kj=[`agent`,`folder`,`prompt`];async function Aj(e){let t={},n=e.provider;if(n&&(!n.installed||!n.loggedIn)&&(t.agent=`${n.problem??`${n.label} can't run here yet.`} ${n.fix??``}`.trim()),!e.folder.trim())t.folder=`Choose a folder, or type one, for it to work in.`;else try{let n=await e.checkFolder(e.folder);n.exists?n.isDirectory||(t.folder=`That path is a file, not a folder.`):(t.folder=`That folder doesn't exist on this computer.`,t.createFolder=n.path)}catch(e){t.folder=`Couldn't check that folder: ${e instanceof Error?e.message:String(e)}`}return e.prompt.trim()||(t.prompt=`Tell it what to do first.`),t}function jj(e){return kj.find(t=>e[t]!==void 0)??null}function Mj({transport:e,children:t}){let[n]=(0,_.useState)(()=>new Oj(e));return(0,_.useEffect)(()=>{e.status().state===`open`&&n.refreshAll()},[n,e]),(0,j.jsx)(GT.Provider,{value:n,children:t})}function Nj(){if(typeof location>`u`)return{kind:`none`};let[e,t,n]=location.hash.replace(/^#/,``).split(`/`);return e===`s`&&t?{kind:`session`,id:t}:e===`d`&&(t===`claude`||t===`codex`)&&n?{kind:`discovered`,provider:t,id:n}:{kind:`none`}}function Pj(e){if(typeof history>`u`)return;let t=e.kind===`session`?`#s/${e.id}`:e.kind===`discovered`?`#d/${e.provider}/${e.id}`:``;history.replaceState(null,``,`${location.pathname}${location.search}${t}`)}function Fj(){try{let e=localStorage.getItem(`coding-sessions.theme`);return e===`light`||e===`dark`?e:`system`}catch{return`system`}}function Ij(){let[e,t]=(0,_.useState)(Fj);return(0,_.useEffect)(()=>{let t=typeof window.matchMedia==`function`?window.matchMedia(`(prefers-color-scheme: dark)`):null,n=()=>{let n=e===`dark`||e===`system`&&t?.matches===!0;document.documentElement.classList.toggle(`dark`,n),document.documentElement.setAttribute(`data-theme`,n?`dark`:`light`)};return n(),t?.addEventListener(`change`,n),()=>t?.removeEventListener(`change`,n)},[e]),[e,(0,_.useCallback)(e=>{t(e);try{localStorage.setItem(`coding-sessions.theme`,e)}catch{}},[])]}var Lj={starting:`Starting`,running:`Working`,completed:`Done`,stopped:`Stopped`,failed:`Failed`};function Rj({run:e}){if(!e)return null;let t=!_T(e.status);return(0,j.jsxs)(`span`,{className:Z(`cs-pill`,`cs-pill--${e.status}`),children:[t?(0,j.jsx)(`span`,{className:`cs-pill__dot`,"aria-hidden":`true`}):null,Lj[e.status]]})}function zj(){let{connection:e}=qT();if(e.state===`open`)return null;let t=e.state===`closed`;return(0,j.jsxs)(`div`,{role:`status`,className:Z(`flex items-center gap-2 border-b px-4 py-2 text-[13px]`,t?`border-destructive/30 bg-destructive/10 text-destructive`:`border-border bg-muted/60 text-muted-foreground`),children:[t?(0,j.jsx)(rE,{size:15}):(0,j.jsx)(uE,{size:14}),(0,j.jsx)(`span`,{children:t?e.reason:`Connecting to the coding sessions host…`})]})}function Bj(e){let t=qT(),n=KT(),r={system:`light`,light:`dark`,dark:`system`},i={system:`Match system`,light:`Light`,dark:`Dark`};return(0,j.jsx)(`div`,{className:`border-t border-border px-3 py-2.5`,children:(0,j.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,j.jsx)(`div`,{className:`flex min-w-0 flex-1 flex-wrap gap-1.5`,children:t.providers.loading&&t.providers.loadedAt===null?(0,j.jsx)(`span`,{className:`text-[11.5px] text-muted-foreground`,children:`Checking Claude Code and Codex…`}):t.providers.data.map(e=>{let t=e.lastProblem?vT(e.lastProblem.until):null,n=e.lastProblem?e.lastProblem.kind===`signed-out`?`· sign in again`:`· limit${t?` until ${t}`:``}`:null,r=e.problem?`${e.problem} ${e.fix??``}`.trim():[qj(e)??e.label,e.plan,Jj(e)].filter(Boolean).join(` · `);return(0,j.jsxs)(`span`,{className:Z(`cs-provider-chip`,e.ready?``:`cs-provider-chip--problem`),title:n&&!e.problem?`${r} ${n}`:r,children:[(0,j.jsx)(pE,{provider:e.provider,size:13}),e.label,n?(0,j.jsx)(`span`,{className:`cs-provider-chip__note`,children:n}):null,e.ready?(0,j.jsx)(nE,{size:12}):(0,j.jsx)(rE,{size:12})]},e.provider)})}),(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button`,onClick:()=>void n.refreshProviders(),"aria-label":`Check Claude Code and Codex again`,title:`Check again`,children:t.providers.loading?(0,j.jsx)(uE,{size:13}):(0,j.jsx)(iE,{size:13})}),e.extra,(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button`,onClick:()=>e.setTheme(r[e.theme]),"aria-label":`Theme: ${i[e.theme]}. Switch to ${i[r[e.theme]]}.`,title:`Theme: ${i[e.theme]}`,children:e.theme===`system`?(0,j.jsx)(cE,{size:14}):e.theme===`light`?(0,j.jsx)(oE,{size:14}):(0,j.jsx)(sE,{size:14})})]})})}function Vj(){let e=(0,_.useContext)(EE);return(0,_.useMemo)(()=>({notify(t){e(t.message)}}),[e])}function Hj(e,t,n=null){let r=KT(),[i,a]=(0,_.useState)(n);return(0,_.useEffect)(()=>{if(!e||!t){a(null);return}let n=!1,i=()=>r.transport.call(`sessionActivity`,e,t).then(e=>{n||a(e)}).catch(()=>void 0);i();let o=setInterval(i,1e4);return()=>{n=!0,clearInterval(o)}},[r,e,t]),i}function Uj(e,t){let n=KT(),[r,i]=(0,_.useState)(null);return(0,_.useEffect)(()=>{let t=!1;return n.transport.call(`listRuns`,e).then(e=>{if(t)return;let n=0,r=null,a=null;for(let t of e)t.usage&&(n+=t.usage.inputTokens+t.usage.outputTokens+t.usage.cachedInputTokens),t.costUsd!==null&&(r=(r??0)+t.costUsd),a=t.billing??a;i(n>0||r!==null?{tokens:n,cost:r,billing:a,runs:e.length}:null)}).catch(()=>void 0),()=>{t=!0}},[n,e,t]),r}function Wj(e){return(0,j.jsxs)(JC,{children:[(0,j.jsx)(YC,{asChild:!0,children:(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button shrink-0`,"aria-label":`More for this chat`,title:`More`,children:(0,j.jsx)(hE,{size:16})})}),(0,j.jsxs)(rw,{align:`end`,className:`w-64`,onCloseAutoFocus:e=>e.preventDefault(),children:[e.onChanges?(0,j.jsxs)(iw,{onSelect:e.onChanges,children:[(0,j.jsx)(SE,{size:14}),e.changesOpen?`Hide changed files`:`Files this chat changed`]}):null,(0,j.jsx)(jE,{entry:e.entry,variant:`dropdown`,onRename:e.onRename})]})]})}function Gj(e){let t=KT(),n=(0,_.useContext)(EE),[r,i]=(0,_.useState)(e.entry.title);(0,_.useEffect)(()=>i(e.entry.title),[e.entry.title,e.renaming]);let a=(0,_.useRef)(null);if((0,_.useEffect)(()=>{if(!e.renaming)return;let t=setTimeout(()=>{let e=a.current;e&&document.activeElement!==e&&(e.focus(),e.select())},0);return()=>clearTimeout(t)},[e.renaming]),!e.renaming)return(0,j.jsx)(`h1`,{className:`truncate text-[15px] font-semibold leading-5 tracking-[-0.01em]`,title:e.entry.title===e.entry.originalTitle?e.entry.title:`${e.entry.title} (${e.entry.originalTitle})`,onDoubleClick:()=>e.setRenaming(!0),children:e.entry.title});let o=()=>{e.setRenaming(!1);let i=r.trim();if(i===e.entry.title)return;let a=i===``||i===e.entry.originalTitle?null:i;t.setPreference(e.entry.key,{title:a}).catch(e=>n(`The new name didn't save: ${e instanceof Error?e.message:String(e)}`))};return(0,j.jsx)(`input`,{ref:a,autoFocus:!0,value:r,onChange:e=>i(e.target.value),onFocus:e=>e.currentTarget.select(),onBlur:o,onKeyDown:t=>{t.key===`Enter`&&o(),t.key===`Escape`&&e.setRenaming(!1)},"aria-label":`New name for this chat`,className:`cs-rename-input !m-0 !h-6 !text-[15px] !font-semibold`})}function Kj(e){return(0,j.jsxs)(`p`,{className:`mx-auto mt-3 flex items-center gap-2 text-[12px] text-muted-foreground`,children:[`This chat is very long — showing its most recent part.`,(0,j.jsx)(`button`,{type:`button`,className:`cs-link`,onClick:e.onEarlier,disabled:e.loading,children:e.loading?`Reading…`:`Show earlier`})]})}function qj(e){return e.version?`${e.label} ${e.version}${e.binary?` · ${e.binary.sourceLabel}`:``}`:null}function Jj(e){return e.binary?.newer?`Newer: ${e.binary.newer.version} ${e.binary.newer.sourceLabel}`:null}function Yj({session:e,changesOpen:t,setChangesOpen:n}){let r=KT(),i=qT(),a=(0,_.useContext)(EE),o=JT(e.id),s=i.runs[e.id],c=s!==void 0&&!_T(s.status),l=Vj(),u=i.providers.data.find(t=>t.provider===e.provider)??null,d=u&&(!u.installed||!u.loggedIn)?u:null,f=!d&&u?.lastProblem?u:null,p=s?.status===`failed`&&xT(s.error),[m,h]=(0,_.useState)(!1),[g,v]=(0,_.useState)(!1),y=Hj(e.origin===`takeover`&&!c?e.provider:null,e.providerSessionId),b=FT(e,i.preferences),x=o.thread.getSnapshot().messages,S=IE(x),C=Uj(e.id,`${s?.runId??``}:${s?.status??``}`);(0,_.useEffect)(()=>{c||h(!1)},[c]);let w=async()=>{s&&(h(!0),await r.stop(s.runId).catch(()=>h(!1)))},T=t=>{r.setSessionOptions(e.id,{model:t.model,effort:t.effort}).then(()=>a(`The next message uses ${zE(t,u)}.`)).catch(e=>a(`That didn't save: ${e instanceof Error?e.message:String(e)}`))},E=C?`${si(C.tokens,{style:`compact`})} tokens${C.cost===null?``:` · ${ai(C.cost)}`}`:null,D=C?`${si(C.tokens)} tokens over ${C.runs} ${C.runs===1?`message`:`messages`} sent from here.`+(C.cost===null?``:C.billing===`subscription`?` ${ai(C.cost)} is what this would cost at API prices — it's covered by your ${u?.plan??``} plan.`.replace(` `,` `):` Billed ${ai(C.cost)} to your API key.`):``;return(0,j.jsxs)(`div`,{className:`flex min-w-0 flex-1`,children:[(0,j.jsxs)(`section`,{className:`flex min-w-0 flex-1 flex-col`,"aria-label":b.title,children:[(0,j.jsxs)(`header`,{className:`@container/header flex items-center gap-2 border-b border-border px-5 pt-2.5 pb-2.5`,children:[(0,j.jsx)(pE,{provider:e.provider,size:22}),(0,j.jsxs)(`div`,{className:`min-w-0 flex-1 overflow-hidden`,children:[(0,j.jsx)(Gj,{entry:b,renaming:g,setRenaming:v}),(0,j.jsxs)(`div`,{className:`flex min-w-0 items-center gap-1 text-[12px] leading-5 text-muted-foreground`,children:[(0,j.jsx)(`span`,{className:`shrink-0`,children:mT[e.provider]}),(0,j.jsx)(`span`,{"aria-hidden":`true`,children:`·`}),(0,j.jsx)(BE,{status:u,value:{model:e.model,effort:e.effort??null},onChange:T}),(0,j.jsx)(`span`,{"aria-hidden":`true`,children:`·`}),(0,j.jsx)(tE,{size:12,className:`shrink-0`}),(0,j.jsx)(`span`,{className:`min-w-[4rem] truncate`,title:e.cwd,children:ZT(e.cwd)}),E?(0,j.jsxs)(`span`,{className:`shrink-0`,title:D,children:[`· `,E]}):null]})]}),(0,j.jsx)(aj,{transport:r.transport,sessionId:e.id,agent:e.agent??null,onChange:()=>void 0}),(0,j.jsxs)(`button`,{type:`button`,className:Z(`cs-chip-button shrink-0 @max-[620px]/header:hidden`,t&&`cs-chip-button--on`),onClick:()=>n(!t),"aria-pressed":t,title:`Files this chat changed`,children:[(0,j.jsx)(SE,{size:13}),S.length>0?`${S.length} ${S.length===1?`file`:`files`} changed`:`Changes`]}),(0,j.jsx)(Rj,{run:s}),c?(0,j.jsxs)(v_,{variant:`outline`,size:`sm`,onClick:()=>void w(),disabled:m,className:`gap-1.5`,title:`Stop Esc`,children:[m?(0,j.jsx)(uE,{size:13}):(0,j.jsx)(eE,{size:13}),m?`Stopping…`:`Stop`]}):null,(0,j.jsx)(Wj,{entry:b,onRename:()=>v(!0),onChanges:()=>n(!t),changesOpen:t})]}),(0,j.jsx)(`div`,{className:`mx-chat flex min-h-0 flex-1 flex-col`,children:(0,j.jsxs)(hi,{thread:o.thread,ports:{notifier:l,toolLabel:ET},children:[(0,j.jsx)(`div`,{className:`min-h-0 flex-1 overflow-hidden`,children:o.state.loading?(0,j.jsxs)(`div`,{className:`flex h-full items-center justify-center gap-2 text-[13px] text-muted-foreground`,children:[(0,j.jsx)(uE,{size:15}),` Loading the conversation…`]}):(0,j.jsxs)(`div`,{className:`flex h-full flex-col`,children:[o.state.unavailable?(0,j.jsx)(`p`,{className:`mx-auto mt-4 max-w-[720px] rounded-lg border border-border bg-muted/50 px-4 py-2.5 text-[13px] text-muted-foreground`,children:o.state.unavailable}):null,o.state.truncated?(0,j.jsx)(Kj,{loading:o.state.loadingEarlier===!0,onEarlier:()=>void o.loadEarlier()}):null,x.length===0&&!c?(0,j.jsx)(`div`,{className:`flex flex-1 items-center justify-center text-[13px] text-muted-foreground`,children:e.origin===`takeover`?`You've taken over this chat. Send a message to continue it.`:`Nothing here yet.`}):(0,j.jsx)(Ww,{className:`min-h-0 flex-1`,label:`Conversation: ${b.title}`})]})}),(0,j.jsxs)(`div`,{"data-cs-composer":!0,className:`mx-auto w-full max-w-[820px] px-4 pb-4`,children:[f?(0,j.jsxs)(`div`,{className:`mb-2 flex items-start gap-2 rounded-lg border border-warning/40 bg-warning/10 px-3 py-2 text-[12.5px]`,children:[(0,j.jsx)(rE,{size:15,className:`mt-0.5 shrink-0 text-warning`}),(0,j.jsxs)(`span`,{children:[f.problem,` `,f.fix]})]}):null,p&&!d?(0,j.jsxs)(`div`,{className:`mb-2 flex items-center gap-2 rounded-lg border border-warning/40 bg-warning/10 px-3 py-2 text-[12.5px]`,role:`alert`,children:[(0,j.jsx)(rE,{size:15,className:`shrink-0 text-warning`}),(0,j.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,title:s?.error??void 0,children:bT}),(0,j.jsx)(BE,{status:u,value:{model:e.model,effort:e.effort??null},onChange:T})]}):null,d?(0,j.jsxs)(`div`,{className:`mb-2 flex items-start gap-2 rounded-lg border border-warning/40 bg-warning/10 px-3 py-2 text-[12.5px]`,children:[(0,j.jsx)(rE,{size:15,className:`mt-0.5 shrink-0 text-warning`}),(0,j.jsxs)(`span`,{children:[d.problem,` `,d.fix]})]}):null,(0,j.jsx)(`div`,{className:`cs-activity`,role:`status`,"aria-live":`polite`,"data-idle":!c||void 0,children:c?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(uE,{size:13}),(0,j.jsx)(`span`,{className:`truncate`,children:s?.status===`starting`?`Starting ${mT[e.provider]}…`:o.activity??`Thinking…`}),(0,j.jsx)(`span`,{className:`ml-auto shrink-0 text-[11px] opacity-70`,children:`Esc to stop`})]}):null}),y?(0,j.jsxs)(`div`,{className:`mb-2 flex items-start gap-2 rounded-lg border border-warning/40 bg-warning/10 px-3 py-2 text-[12.5px]`,children:[(0,j.jsx)(rE,{size:15,className:`mt-0.5 shrink-0 text-warning`}),(0,j.jsxs)(`span`,{children:[y.message,` A message sent here would put a second agent on the same chat.`]})]}):null,e.queued.length>0?(0,j.jsx)(`ul`,{className:`mb-2 space-y-1.5`,"aria-label":`Queued messages`,children:e.queued.map((e,t)=>(0,j.jsxs)(`li`,{className:`cs-queued`,children:[(0,j.jsx)(`span`,{className:`cs-queued__label`,children:`Queued · sends when this run finishes`}),(0,j.jsx)(`span`,{className:`cs-queued__text`,children:e})]},`${t}-${e.slice(0,16)}`))}):null,(0,j.jsx)(fT,{placeholder:`Message ${mT[e.provider]}…`,autoFocus:!0,...d?{held:{reason:`${d.problem} ${d.fix??``}`.trim()}}:{}})]})]})})]}),t?(0,j.jsx)(LE,{files:S,cwd:e.cwd,truncated:o.state.truncated,onClose:()=>n(!1)}):null]})}function Xj(e,t){let n=(0,_.useRef)({messages:[],listeners:new Set}),r=(0,_.useRef)(t);return r.current=t,[(0,_.useMemo)(()=>pT({getSnapshot:()=>({messages:n.current.messages,status:`idle`,conversationId:e}),subscribe:e=>(n.current.listeners.add(e),()=>{n.current.listeners.delete(e)}),onSubmit:()=>r.current()}),[e]),(0,_.useCallback)(e=>{n.current.messages=e;for(let e of n.current.listeners)e()},[])]}function Zj(e){let t=KT(),n=qT(),r=(0,_.useContext)(EE),i=YT(),[a,o]=(0,_.useState)({loading:!0,messages:[],unavailable:null,truncated:!1}),[s,c]=(0,_.useState)(!1),[l,u]=(0,_.useState)(null),[d,f]=(0,_.useState)(!1),[p,m]=(0,_.useState)(!1),[h,g]=(0,_.useState)(void 0),[v,y]=(0,_.useState)(!1),b=Hj(e.provider,e.id,e.session?.activeElsewhere??null),x=IE(a.messages),S=e.session,[C,w]=Xj(e.id,()=>r(S?.cwd?`This chat is read-only until you take it over. Press Take over to continue it here.`:`This chat is read-only here: it doesn't record its folder, so it can't be continued.`));(0,_.useEffect)(()=>{let n=!1,r=r=>t.readPreview(e.provider,e.id,h).then(e=>{n||(w(e.messages),o(e),r&&y(!1))});h===void 0&&o({loading:!0,messages:[],unavailable:null,truncated:!1}),r(!0);let i=b?setInterval(()=>void r(!1),8e3):null;return()=>{n=!0,i&&clearInterval(i)}},[t,e.provider,e.id,h,b!==null,w]);let T=Vj(),E=IT(S??{provider:e.provider,providerSessionId:e.id,cwd:null,title:`Chat`,updatedAt:``,source:null,activeElsewhere:null},n.preferences),D=()=>{b?f(!0):A()},[O,k]=(0,_.useState)(!1),A=async n=>{if(S){f(!1),c(!0),u(null);try{let r=await t.takeover(S,n);e.onTakenOver(r.id)}catch(e){u(e instanceof Error?e.message:String(e))}finally{c(!1)}}};return(0,j.jsxs)(`div`,{className:`flex min-w-0 flex-1`,children:[(0,j.jsxs)(`section`,{className:`flex min-w-0 flex-1 flex-col`,"aria-label":E.title,children:[(0,j.jsxs)(`header`,{className:`@container/header flex items-center gap-2 border-b border-border px-5 pt-2.5 pb-2.5`,children:[(0,j.jsx)(pE,{provider:e.provider,size:22}),(0,j.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,j.jsx)(Gj,{entry:E,renaming:p,setRenaming:m}),(0,j.jsxs)(`p`,{className:`flex items-center gap-1.5 truncate text-[12px] leading-4 text-muted-foreground`,children:[(0,j.jsx)(`span`,{children:mT[e.provider]}),S?.cwd?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`span`,{"aria-hidden":`true`,children:`·`}),(0,j.jsx)(tE,{size:12}),(0,j.jsx)(`span`,{className:`truncate`,title:S.cwd,children:ZT(S.cwd)})]}):null,S?(0,j.jsxs)(`span`,{children:[`· last active `,XT(S.updatedAt,i)]}):null]})]}),x.length>0?(0,j.jsxs)(`button`,{type:`button`,className:`cs-chip-button`,onClick:()=>e.setChangesOpen(!e.changesOpen),"aria-pressed":e.changesOpen,title:`Files this chat changed`,children:[(0,j.jsx)(SE,{size:13}),`${x.length} ${x.length===1?`file`:`files`} changed`]}):null,S?.cwd?(0,j.jsxs)(v_,{size:`sm`,variant:b?`outline`:`default`,onClick:D,disabled:s,className:`gap-1.5`,title:b?b.message:void 0,children:[s?(0,j.jsx)(uE,{size:13}):b?(0,j.jsx)(rE,{size:14,className:`text-warning`}):(0,j.jsx)(aE,{size:14}),b?`Take over anyway…`:`Take over`]}):null,S?.cwd&&!b?(0,j.jsx)(v_,{size:`sm`,variant:`outline`,onClick:()=>k(!0),disabled:s,children:`Continue with agent…`}):null,(0,j.jsx)(sj,{transport:t.transport,open:O,onOpenChange:k,title:`Continue with an agent`,action:`Take over with this agent`,onConfirm:e=>A(e)}),S?(0,j.jsx)(Wj,{entry:E,onRename:()=>m(!0)}):null]}),b?(0,j.jsxs)(`div`,{role:`status`,className:`flex items-start gap-2 border-b border-warning/40 bg-warning/10 px-5 py-2.5 text-[13px]`,children:[(0,j.jsx)(rE,{size:15,className:`mt-0.5 shrink-0 text-warning`}),(0,j.jsxs)(`span`,{children:[(0,j.jsx)(`span`,{className:`font-medium`,children:b.message}),` Taking it over now would put two agents on the same chat, and they could overwrite each other's work. Finish or stop it there first if you can. This preview follows it as it runs.`]})]}):null,(0,j.jsx)(KS,{open:d,onOpenChange:f,children:(0,j.jsxs)(aC,{className:`max-w-[460px]`,children:[(0,j.jsxs)(oC,{children:[(0,j.jsxs)(cC,{children:[`This chat is running right now in `,mT[e.provider]]}),(0,j.jsxs)(lC,{children:[b?.message,` If you take it over, two agents will work in the same conversation at once and may overwrite each other's changes.`]})]}),(0,j.jsxs)(sC,{children:[(0,j.jsx)(v_,{variant:`ghost`,onClick:()=>f(!1),children:`Cancel`}),(0,j.jsx)(v_,{variant:`destructive`,onClick:()=>void A(),children:`Take over anyway`})]})]})}),l?(0,j.jsx)(`p`,{className:`border-b border-destructive/30 bg-destructive/10 px-5 py-2 text-[13px] text-destructive`,children:l}):null,S&&!S.cwd?(0,j.jsx)(`p`,{className:`border-b border-border bg-muted/50 px-5 py-2 text-[13px] text-muted-foreground`,children:`This chat doesn't record which folder it ran in, so it can't be continued from here.`}):null,(0,j.jsxs)(`div`,{className:`mx-chat flex min-h-0 flex-1 flex-col`,children:[a.loading?(0,j.jsxs)(`div`,{className:`flex flex-1 items-center justify-center gap-2 text-[13px] text-muted-foreground`,children:[(0,j.jsx)(uE,{size:15}),` Reading this chat…`]}):a.unavailable?(0,j.jsx)(`div`,{className:`flex flex-1 items-center justify-center px-6 text-center text-[13px] text-muted-foreground`,children:a.unavailable}):(0,j.jsxs)(hi,{thread:C,ports:{notifier:T,toolLabel:ET},children:[a.truncated?(0,j.jsx)(Kj,{loading:v,onEarlier:()=>{y(!0),g(e=>(e??25165824)*4)}}):null,(0,j.jsx)(Ww,{className:`min-h-0 flex-1`,label:`Chat preview`})]}),S?.cwd?(0,j.jsxs)(`div`,{className:`border-t border-border bg-muted/30 px-5 py-3 text-center text-[13px] text-muted-foreground`,children:[`This chat was started in `,mT[e.provider],`.`,` `,(0,j.jsx)(`button`,{type:`button`,className:`font-medium text-foreground underline-offset-4 hover:underline`,onClick:D,children:`Take it over`}),` `,`to continue it here — it stays in your `,mT[e.provider],` history too.`]}):null]})]}),e.changesOpen&&x.length>0?(0,j.jsx)(LE,{files:x,cwd:S?.cwd??null,truncated:a.truncated,onClose:()=>e.setChangesOpen(!1)}):null]})}function Qj(e){let t=e.status.ready;return(0,j.jsxs)(`button`,{type:`button`,onClick:e.onSelect,"aria-pressed":e.selected,className:Z(`flex flex-1 flex-col gap-1.5 rounded-xl border px-3.5 py-3 text-left transition-colors`,e.selected?`border-primary bg-primary/5 ring-1 ring-primary`:`border-border hover:bg-accent/50`),children:[(0,j.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(pE,{provider:e.status.provider,size:18}),(0,j.jsx)(`span`,{className:`text-[13.5px] font-semibold`,children:e.status.label})]}),t?(0,j.jsxs)(`span`,{className:`flex items-center gap-1 text-[12px] text-success`,children:[(0,j.jsx)(nE,{size:13}),e.status.billing===`subscription`?`Signed in${e.status.plan?` · ${e.status.plan} plan`:``}`:`Signed in with an API key (billed per use)`]}):(0,j.jsxs)(`span`,{className:`flex items-start gap-1 text-[12px] leading-4 text-warning`,children:[(0,j.jsx)(rE,{size:13,className:`mt-px shrink-0`}),e.status.problem]}),e.status.quota.filter(e=>e.usedPercent!==null).length>0?(0,j.jsx)(`span`,{className:`text-[11.5px] leading-4 text-muted-foreground`,children:e.status.quota.filter(e=>e.usedPercent!==null).map(e=>`${e.label}: ${e.usedPercent}% used`).join(` · `)}):null]})}function $j({id:e,children:t}){return(0,j.jsxs)(`p`,{id:e,role:`alert`,className:`flex items-start gap-1.5 text-[12.5px] leading-5 text-destructive`,children:[(0,j.jsx)(rE,{size:14,className:`mt-0.5 shrink-0`}),(0,j.jsx)(`span`,{children:t})]})}function eM(e){let t=KT(),n=qT(),r=YT(),[i,a]=(0,_.useState)(`claude`),[o,s]=(0,_.useState)(``),[c,l]=(0,_.useState)({model:null,effort:null}),[u,d]=(0,_.useState)(``),[f,p]=(0,_.useState)({}),[m,h]=(0,_.useState)(null),[g,v]=(0,_.useState)(!1),[y,b]=(0,_.useState)(!1),[x,S]=(0,_.useState)(null),[C,w]=(0,_.useState)(null),[T,E]=(0,_.useState)(null),D=(0,_.useRef)(null),O=(0,_.useRef)(null),k=(0,_.useRef)(null);(0,_.useEffect)(()=>{e.open&&(h(null),p({}),t.refreshProviders(),t.refreshFolders())},[e.open,t]),(0,_.useEffect)(()=>{!o&&n.folders.data[0]?.exists&&s(n.folders.data[0].path)},[n.folders.data,o]),(0,_.useEffect)(()=>{let e=n.providers.data.filter(e=>e.ready),t=n.providers.data.find(e=>e.provider===i);t&&!t.ready&&e[0]&&a(e[0].provider)},[n.providers.loadedAt]);let A=n.providers.data.find(e=>e.provider===i)??null,M=e=>{e===`prompt`?D.current?.focus():e===`folder`?O.current?.focus():e===`agent`&&k.current?.querySelector(`button`)?.focus()},N=async()=>{if(g)return;h(null);let n=await Aj({provider:A,folder:o,prompt:u,checkFolder:e=>t.transport.call(`checkFolder`,e)});p(n);let r=jj(n);if(r){M(r);return}let a=nj(C,x);if(E(a),a){document.getElementById(`cs-agent-var-${a}`)?.focus();return}v(!0);try{let n=await t.start({provider:i,cwd:o.trim(),prompt:u,model:c.model,effort:c.effort,...x?{agent:x}:{}});d(``),e.onStarted(n.session.id)}catch(e){h(e instanceof Error?e.message:String(e))}finally{v(!1)}},P=async()=>{if(f.createFolder){b(!0);try{let e=await t.transport.call(`createFolder`,f.createFolder);s(e.path),p(e=>{let t={...e};return delete t.folder,delete t.createFolder,t}),t.refreshFolders(),O.current?.focus()}catch(e){p(t=>({...t,folder:`Couldn't create it: ${e instanceof Error?e.message:String(e)}`}))}finally{b(!1)}}},F=e=>p(t=>{if(t[e]===void 0)return t;let n={...t};return delete n[e],e===`folder`&&delete n.createFolder,n});return(0,j.jsx)(KS,{open:e.open,onOpenChange:e.onOpenChange,children:(0,j.jsxs)(aC,{className:`max-w-[560px]`,children:[(0,j.jsxs)(oC,{children:[(0,j.jsx)(cC,{children:`New coding session`}),(0,j.jsxs)(lC,{children:[`Runs on your own `,i===`claude`?`Claude`:`ChatGPT`,` sign-in, in a folder on this computer.`]})]}),(0,j.jsxs)(`form`,{noValidate:!0,onSubmit:e=>{e.preventDefault(),N()},className:`flex min-h-0 flex-col`,children:[(0,j.jsxs)(`div`,{className:`cs-dialog-body space-y-5 py-1 pr-1`,children:[(0,j.jsxs)(`fieldset`,{className:`space-y-2`,ref:k,children:[(0,j.jsx)(`legend`,{className:`mb-2 text-[12.5px] font-medium`,children:`Agent`}),n.providers.loading&&n.providers.loadedAt===null?(0,j.jsxs)(`div`,{className:`flex gap-2`,children:[(0,j.jsx)(`div`,{className:`cs-skeleton h-[68px] flex-1 rounded-xl`}),(0,j.jsx)(`div`,{className:`cs-skeleton h-[68px] flex-1 rounded-xl`})]}):n.providers.error?(0,j.jsx)(`p`,{className:`text-[12.5px] text-destructive`,children:n.providers.error}):(0,j.jsx)(`div`,{className:`flex gap-2`,children:n.providers.data.map(e=>(0,j.jsx)(Qj,{status:e,selected:e.provider===i,onSelect:()=>{e.provider!==i&&l({model:null,effort:null}),a(e.provider),F(`agent`)}},e.provider))}),f.agent?(0,j.jsx)($j,{id:`cs-err-agent`,children:f.agent}):A&&!A.ready&&A.fix?(0,j.jsxs)(`p`,{className:`text-[12px] leading-4 text-muted-foreground`,children:[A.fix,A.installed&&A.loggedIn?` You can still try — the run will say if it's still blocked.`:``]}):null]}),(0,j.jsxs)(`fieldset`,{className:`space-y-2`,children:[(0,j.jsx)(`legend`,{className:`mb-2 text-[12.5px] font-medium`,children:`AI Matrx agent`}),(0,j.jsx)(tj,{transport:t.transport,open:e.open,value:x,onChange:e=>{S(e),E(null)},missing:T,onDetails:w})]}),(0,j.jsxs)(`fieldset`,{className:`space-y-2`,children:[(0,j.jsx)(`legend`,{className:`mb-2 text-[12.5px] font-medium`,children:`Folder`}),n.folders.data.length>0?(0,j.jsx)(`div`,{className:`max-h-[132px] space-y-0.5 overflow-y-auto rounded-lg border border-border p-1`,children:n.folders.data.map(e=>(0,j.jsxs)(`button`,{type:`button`,onClick:()=>{s(e.path),F(`folder`)},disabled:!e.exists,title:e.exists?e.path:`${e.path} no longer exists`,className:Z(`flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-[12.5px]`,o===e.path?`bg-accent text-accent-foreground`:`hover:bg-accent/50`,!e.exists&&`opacity-50`),children:[(0,j.jsx)(tE,{size:14,className:`shrink-0 text-muted-foreground`}),(0,j.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:ZT(e.path)}),(0,j.jsx)(`span`,{className:`shrink-0 text-[11px] text-muted-foreground`,children:e.exists?XT(e.lastUsedAt,r):`missing`})]},e.path))}):n.folders.loading?(0,j.jsx)(`div`,{className:`cs-skeleton h-10 rounded-lg`}):null,(0,j.jsx)(uw,{ref:O,value:o,onChange:e=>{s(e.target.value),F(`folder`)},placeholder:`Or type a folder path, like ~/code/my-app`,"aria-label":`Folder path`,"aria-invalid":f.folder?!0:void 0,"aria-describedby":f.folder?`cs-err-folder`:void 0,spellCheck:!1}),f.folder?(0,j.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-3 gap-y-1`,children:[(0,j.jsx)($j,{id:`cs-err-folder`,children:f.folder}),f.createFolder?(0,j.jsxs)(v_,{type:`button`,size:`sm`,variant:`outline`,onClick:()=>void P(),disabled:y,className:`gap-1.5`,children:[y?(0,j.jsx)(uE,{size:13}):(0,j.jsx)(tE,{size:13}),`Create this folder`]}):null]}):null]}),(0,j.jsxs)(`fieldset`,{className:`space-y-2`,children:[(0,j.jsx)(`legend`,{className:`mb-2 text-[12.5px] font-medium`,children:`What should it do?`}),(0,j.jsx)(Sw,{ref:D,value:u,onChange:e=>{d(e.target.value),F(`prompt`)},onKeyDown:e=>{e.key===`Enter`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),N())},placeholder:`Describe the change, the bug, or the question…`,rows:4,"aria-label":`First message`,"aria-invalid":f.prompt?!0:void 0,"aria-describedby":f.prompt?`cs-err-prompt`:void 0}),f.prompt?(0,j.jsx)($j,{id:`cs-err-prompt`,children:f.prompt}):null]}),(0,j.jsxs)(`fieldset`,{className:`space-y-2`,children:[(0,j.jsx)(`legend`,{className:`mb-2 text-[12.5px] font-medium`,children:`Model and thinking effort`}),(0,j.jsx)(BE,{status:A,value:c,onChange:l,appearance:`field`}),(0,j.jsxs)(`p`,{className:`text-[11.5px] leading-4 text-muted-foreground`,children:[`Default is `,RE(A),`. You can change it later from the chat's header.`]})]}),m?(0,j.jsx)($j,{id:`cs-err-start`,children:m}):null]}),(0,j.jsxs)(sC,{className:`pt-4`,children:[(0,j.jsx)(v_,{type:`button`,variant:`ghost`,onClick:()=>e.onOpenChange(!1),children:`Cancel`}),(0,j.jsxs)(v_,{type:`submit`,disabled:g,className:`gap-1.5`,children:[g?(0,j.jsx)(uE,{size:14}):null,g?`Starting…`:`Start session`,g?null:(0,j.jsx)(`kbd`,{className:`cs-kbd`,children:`⌘↵`})]})]})]})]})})}function tM({onNew:e}){let t=qT();return(0,j.jsx)(`section`,{className:`flex flex-1 items-center justify-center px-6`,children:(0,j.jsxs)(`div`,{className:`w-full max-w-[460px] text-center`,children:[(0,j.jsx)(`span`,{className:`mx-auto mb-4 flex h-11 w-11 items-center justify-center rounded-2xl bg-primary/10 text-primary`,children:(0,j.jsx)(lE,{size:22})}),(0,j.jsx)(`h1`,{className:`text-[15px] font-semibold leading-5 tracking-[-0.01em]`,children:`Drive Claude Code and Codex from here`}),(0,j.jsx)(`p`,{className:`mx-auto mt-2 max-w-[400px] text-[13.5px] leading-6 text-muted-foreground`,children:`Start a session in any folder, or pick up a chat you began somewhere else. Everything runs on your own subscriptions — no API keys.`}),(0,j.jsxs)(v_,{className:`mt-5 gap-1.5`,onClick:e,children:[(0,j.jsx)($T,{size:15}),`New session`]}),(0,j.jsxs)(`p`,{className:`mt-3 text-[12px] text-muted-foreground`,children:[(0,j.jsx)(`kbd`,{className:`cs-kbd`,children:`⌥⌘N`}),` new session · `,(0,j.jsx)(`kbd`,{className:`cs-kbd`,children:`⌘K`}),` search your chats ·`,` `,(0,j.jsx)(`kbd`,{className:`cs-kbd`,children:`⌘/`}),` all shortcuts`]}),(0,j.jsx)(`div`,{className:`mt-6 flex flex-wrap justify-center gap-2 text-left`,children:t.providers.data.map(e=>(0,j.jsxs)(`div`,{"data-provider-card":e.provider,title:e.installed&&e.version?[qj(e),Jj(e)??e.binary?.path].filter(Boolean).join(` · `):void 0,className:`flex w-[260px] items-start gap-2.5 rounded-lg border border-border bg-card px-3 py-2.5`,children:[(0,j.jsx)(pE,{provider:e.provider,size:16}),(0,j.jsxs)(`div`,{className:`min-w-0 flex-1 leading-5`,children:[(0,j.jsx)(`span`,{className:`block truncate text-[14px] font-semibold`,children:e.label}),e.ready?(0,j.jsxs)(`span`,{className:`block truncate text-[12px] text-muted-foreground`,children:[`Ready`,e.plan?` on your ${e.plan} plan`:``,e.billing===`api`?` (API key, billed per use)`:``]}):(0,j.jsxs)(`span`,{className:`block text-[12px] text-muted-foreground`,children:[e.problem,` `,e.fix]})]}),e.ready?(0,j.jsx)(nE,{size:15,className:`mt-0.5 text-success`}):(0,j.jsx)(rE,{size:15,className:`mt-0.5 text-warning`})]},e.provider))})]})})}function nM(){let[e,t]=(0,_.useState)(null),n=(0,_.useRef)(null);(0,_.useEffect)(()=>()=>{n.current&&clearTimeout(n.current)},[]);let r=(0,_.useCallback)((e,r=null)=>{t({text:e,sessionId:r}),n.current&&clearTimeout(n.current),n.current=setTimeout(()=>t(null),6e3)},[]),i=(0,_.useCallback)(()=>{n.current&&clearTimeout(n.current),t(null)},[]);return{text:e?.text??null,sessionId:e?.sessionId??null,show:r,dismiss:i}}function rM({text:e}){let t=(0,_.useRef)(null);return(0,_.useLayoutEffect)(()=>{let e=t.current,n=e?.parentElement;if(!e||!n)return;let r=n.querySelector(`[data-cs-composer]`),i=r?n.getBoundingClientRect().bottom-r.getBoundingClientRect().top+8:20;e.style.setProperty(`--cs-toast-bottom`,`${Math.max(20,Math.round(i))}px`)},[e]),e?(0,j.jsx)(`div`,{ref:t,role:`status`,"data-cs-toast":!0,className:`cs-toast`,children:e}):null}var iM=300,aM=220,oM=560;function sM(e){return Math.round(Math.min(oM,Math.max(aM,e)))}function cM(){let[e,t]=(0,_.useState)(()=>{try{let e=Number(localStorage.getItem(`coding-sessions.sidebar-width`));return Number.isFinite(e)&&e>0?sM(e):iM}catch{return iM}}),[n,r]=(0,_.useState)(()=>{try{return localStorage.getItem(`coding-sessions.sidebar-collapsed`)===`1`}catch{return!1}});return{width:e,setWidth:(0,_.useCallback)(e=>{let n=sM(e);t(n);try{localStorage.setItem(`coding-sessions.sidebar-width`,String(n))}catch{}},[]),collapsed:n,setCollapsed:(0,_.useCallback)(e=>{r(e);try{localStorage.setItem(`coding-sessions.sidebar-collapsed`,e?`1`:`0`)}catch{}},[])}}function lM(e){let[t,n]=(0,_.useState)(!1);return(0,j.jsx)(`div`,{className:Z(`cs-resizer`,t&&`cs-resizer--dragging`),children:(0,j.jsx)(`button`,{type:`button`,className:`cs-resizer__grip`,role:`separator`,"aria-orientation":`vertical`,"aria-label":`Resize the sidebar`,"aria-valuenow":e.width,"aria-valuemin":aM,"aria-valuemax":oM,title:`Drag to resize · double-click to reset`,onDoubleClick:()=>e.setWidth(iM),onKeyDown:t=>{t.key===`ArrowLeft`&&e.setWidth(e.width-16),t.key===`ArrowRight`&&e.setWidth(e.width+16)},onPointerDown:t=>{t.preventDefault();let r=t.clientX,i=e.width;n(!0),document.body.style.cursor=`col-resize`,document.body.style.userSelect=`none`;let a=t=>e.setWidth(i+t.clientX-r),o=()=>{n(!1),document.body.style.cursor=``,document.body.style.userSelect=``,window.removeEventListener(`pointermove`,a),window.removeEventListener(`pointerup`,o)};window.addEventListener(`pointermove`,a),window.addEventListener(`pointerup`,o)}})})}var uM=[{keys:`⌘K`,what:`Search chats`},{keys:`⌥⌘N`,what:`New session`},{keys:`Enter`,what:`Send (Shift+Enter for a new line)`},{keys:`Esc`,what:`Stop the run in the open chat`},{keys:`⌘B`,what:`Show or hide the sidebar`},{keys:`⌥↑ / ⌥↓`,what:`Previous or next chat in the list`},{keys:`⌘/`,what:`These shortcuts`}];function dM(e){return(0,j.jsx)(KS,{open:e.open,onOpenChange:e.onOpenChange,children:(0,j.jsxs)(aC,{className:`max-w-[420px]`,children:[(0,j.jsxs)(oC,{children:[(0,j.jsx)(cC,{children:`Keyboard shortcuts`}),(0,j.jsx)(lC,{children:`Ctrl works in place of ⌘ on Windows and Linux.`})]}),(0,j.jsx)(`dl`,{className:`divide-y divide-border text-[13px]`,children:uM.map(e=>(0,j.jsxs)(`div`,{className:`flex items-center justify-between gap-4 py-2`,children:[(0,j.jsx)(`dt`,{className:`text-muted-foreground`,children:e.what}),(0,j.jsx)(`dd`,{children:(0,j.jsx)(`kbd`,{className:`rounded border border-border px-1.5 py-0.5 font-sans text-[12px]`,children:e.keys})})]},e.keys))})]})})}var fM=`Coding sessions`;function pM(e,t){let{show:n,dismiss:r,sessionId:i}=t,a=qT();(0,_.useEffect)(()=>{if(!i)return;let t=a.runs[i];(e===i||t&&(t.status===`starting`||t.status===`running`))&&r()},[i,e,a.runs,r]);let o=KT(),s=(0,_.useRef)(0),c=(0,_.useRef)(e);c.current=e,(0,_.useEffect)(()=>{let e=()=>{document.visibilityState===`visible`&&(s.current=0,document.title=fM)};document.addEventListener(`visibilitychange`,e);let t=o.onRunFinished(({run:e,session:t})=>{let r=t?.title??`A session`,i=e.status===`completed`?`finished`:e.status===`failed`?`failed`:`was stopped`,a=`${mT[e.provider]} ${i}: ${r}`;if(document.visibilityState===`hidden`){if(s.current+=1,document.title=`(${s.current}) ${fM}`,typeof Notification<`u`&&Notification.permission===`granted`){let t=new Notification(a,e.error?{tag:e.runId,body:ST(e.error)}:{tag:e.runId});t.onclick=()=>{window.focus(),location.hash=`#s/${e.sessionId}`,t.close()}}}else c.current!==e.sessionId&&e.status!==`stopped`&&n(a,e.sessionId)});return()=>{t(),document.removeEventListener(`visibilitychange`,e)}},[o,n])}function mM(){let e=typeof Notification<`u`,[t,n]=(0,_.useState)(e?Notification.permission:`denied`);return!e||t===`granted`?null:(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button`,onClick:()=>void Notification.requestPermission().then(n),"aria-label":t===`denied`?`Notifications are blocked for this page in your browser's site settings`:`Notify me when a run finishes`,title:t===`denied`?`Notifications are blocked in your browser's site settings`:`Notify me when a run finishes`,disabled:t===`denied`,children:(0,j.jsx)(TE,{size:14})})}function hM(e){let t=e;return t?t.isContentEditable||t.tagName===`INPUT`||t.tagName===`TEXTAREA`||t.tagName===`SELECT`:!1}function gM(){let e=KT(),t=qT(),[n,r]=(0,_.useState)(Nj),[i,a]=(0,_.useState)(!1),[o,s]=(0,_.useState)(!1),[c,l]=(0,_.useState)(!1),[u,d]=(0,_.useState)({}),[f,p]=Ij(),m=nM(),h=m.show,g=cM(),v=(0,_.useRef)(null),y=(0,_.useCallback)(e=>{r(e),Pj(e)},[]);(0,_.useEffect)(()=>{let e=()=>r(Nj());return window.addEventListener(`hashchange`,e),()=>window.removeEventListener(`hashchange`,e)},[]),pM(n.kind===`session`?n.id:null,m);let b=n.kind===`session`?t.sessions.data.find(e=>e.id===n.id)??null:null,x=n.kind===`discovered`?t.discovered.data.find(e=>e.providerSessionId===n.id)??u[`${n.provider}:${n.id}`]??null:null,S=b?t.runs[b.id]:void 0,C=S!==void 0&&!_T(S.status),w=(0,_.useMemo)(()=>{let e=new Set(t.sessions.data.map(e=>e.providerSessionId).filter(Boolean));return[...t.sessions.data.map(e=>({kind:`session`,id:e.id})),...t.discovered.data.filter(t=>!e.has(t.providerSessionId)).map(e=>({kind:`discovered`,provider:e.provider,id:e.providerSessionId}))]},[t.sessions.data,t.discovered.data]);(0,_.useEffect)(()=>{let t=t=>{let r=t.metaKey||t.ctrlKey,i=t.key.toLowerCase();if(r&&!t.shiftKey&&!t.altKey&&i===`k`){t.preventDefault(),g.setCollapsed(!1),requestAnimationFrame(()=>{v.current?.focus(),v.current?.select()});return}if(r&&t.altKey&&(i===`n`||t.code===`KeyN`)||r&&t.shiftKey&&i===`o`){t.preventDefault(),a(!0);return}if(r&&!t.shiftKey&&!t.altKey&&i===`b`){t.preventDefault(),g.setCollapsed(!g.collapsed);return}if(r&&i===`/`){t.preventDefault(),s(!0);return}if(t.altKey&&!r&&(t.key===`ArrowUp`||t.key===`ArrowDown`)){let e=w.findIndex(e=>(e.kind===`session`&&n.kind===`session`||e.kind===`discovered`&&n.kind===`discovered`)&&e.id===n.id),r=w[t.key===`ArrowUp`?Math.max(0,e-1):Math.min(w.length-1,e+1)];r&&(t.preventDefault(),y(r));return}if(t.key===`Escape`&&C&&S&&!t.defaultPrevented){if(document.querySelector(`[role="dialog"], [role="menu"], [data-radix-popper-content-wrapper]`)||t.target===v.current)return;t.preventDefault(),e.stop(S.runId),h(`Stopping…`);return}t.key===`?`&&!hM(t.target)&&s(!0)};return window.addEventListener(`keydown`,t),()=>window.removeEventListener(`keydown`,t)},[e,g,C,S,w,n,y,h]);let T;return T=n.kind===`session`?b?(0,j.jsx)(Yj,{session:b,changesOpen:c,setChangesOpen:l},b.id):t.sessions.loadedAt===null?(0,j.jsxs)(`div`,{className:`flex flex-1 items-center justify-center gap-2 text-[13px] text-muted-foreground`,children:[(0,j.jsx)(uE,{size:15}),` Loading…`]}):(0,j.jsx)(`div`,{className:`flex flex-1 items-center justify-center text-[13px] text-muted-foreground`,children:`That session is not in the list anymore.`}):n.kind===`discovered`?(0,j.jsx)(Zj,{session:x,provider:n.provider,id:n.id,onTakenOver:e=>y({kind:`session`,id:e}),changesOpen:c,setChangesOpen:l},`${n.provider}:${n.id}`):(0,j.jsx)(tM,{onNew:()=>a(!0)}),(0,j.jsx)(EE.Provider,{value:h,children:(0,j.jsxs)(`div`,{className:`cs-app flex h-full flex-col bg-background text-foreground`,children:[(0,j.jsx)(zj,{}),(0,j.jsxs)(`div`,{className:`flex min-h-0 flex-1`,children:[g.collapsed?(0,j.jsxs)(`div`,{className:`flex flex-col items-center gap-1 border-r border-border bg-muted/30 px-1.5 py-3`,children:[(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button`,onClick:()=>g.setCollapsed(!1),"aria-label":`Show the sidebar (⌘B)`,title:`Show sidebar ⌘B`,children:(0,j.jsx)(bE,{size:15})}),(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button`,onClick:()=>a(!0),"aria-label":`New session`,title:`New session ⌥⌘N`,children:(0,j.jsx)($T,{size:15})})]}):(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(bj,{selection:n,select:y,onNew:()=>a(!0),onCollapse:()=>g.setCollapsed(!0),width:g.width,searchRef:v,onFound:e=>d(t=>({...t,[`${e.provider}:${e.providerSessionId}`]:e})),footer:(0,j.jsx)(Bj,{theme:f,setTheme:p,extra:(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(mM,{}),(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button`,onClick:()=>s(!0),"aria-label":`Keyboard shortcuts (⌘/)`,title:`Keyboard shortcuts ⌘/`,children:(0,j.jsx)(wE,{size:14})})]})})}),(0,j.jsx)(lM,{width:g.width,setWidth:g.setWidth})]}),(0,j.jsxs)(`main`,{className:`relative flex min-w-0 flex-1`,children:[T,(0,j.jsx)(rM,{text:m.text})]})]}),(0,j.jsx)(eM,{open:i,onOpenChange:a,onStarted:e=>{a(!1),y({kind:`session`,id:e})}}),(0,j.jsx)(dM,{open:o,onOpenChange:s})]})})}function _M({transport:e}){return(0,j.jsx)(Mj,{transport:e,children:(0,j.jsx)(gM,{})})}var vM=`coding-sessions.token`;function yM(){let e=new URL(location.href),t=e.searchParams.get(`token`);if(t){try{sessionStorage.setItem(vM,t)}catch{}return e.searchParams.delete(`token`),history.replaceState(null,``,`${e.pathname}${e.search}${e.hash}`),t}try{return sessionStorage.getItem(vM)}catch{return null}}var bM=(0,v.createRoot)(document.getElementById(`root`)),xM=yM();if(!xM)bM.render((0,j.jsx)(`div`,{className:`flex h-full items-center justify-center p-8`,children:(0,j.jsxs)(`div`,{className:`max-w-[440px] text-center`,children:[(0,j.jsx)(`h1`,{className:`text-[18px] font-semibold`,children:`This link is missing its access code`}),(0,j.jsx)(`p`,{className:`mt-2 text-[13.5px] leading-6 text-muted-foreground`,children:`Open the coding sessions page from the full link AI Matrx gave you — it ends in a long access code that keeps other websites from reaching your coding agents.`})]})}));else{let e=y({token:xM});bM.render((0,j.jsx)(_.StrictMode,{children:(0,j.jsx)(_M,{transport:e})}))}
|
|
71
|
+
`))t.push({kind:`add`,text:`+${n}`})}if(t.length===0)return(0,j.jsx)(`p`,{className:`text-[12px] text-muted-foreground`,children:e.failed?`This change failed.`:`The agent didn't record the text of this change.`});let n=t.slice(0,NE);return(0,j.jsxs)(j.Fragment,{children:[e.failed?(0,j.jsx)(`p`,{className:`mb-1 text-[11.5px] text-destructive`,children:`This change failed and was not applied.`}):null,(0,j.jsx)(`pre`,{className:Z(`cs-diff`,e.failed&&`opacity-60`),children:n.map((e,t)=>(0,j.jsx)(`span`,{className:Z(`cs-diff__line`,e.kind!==`ctx`&&`cs-diff__line--${e.kind}`),children:e.text||` `},t))}),t.length>NE?(0,j.jsxs)(`p`,{className:`mt-1 text-[11.5px] text-muted-foreground`,children:[`Showing the first `,NE,` of `,t.length,` lines.`]}):null]})}function IE({file:e,cwd:t}){let[n,r]=(0,_.useState)(!1),i=OE(),a=FT(e),o=PE(e.path,t),s={created:`New`,edited:`Edited`,deleted:`Deleted`,moved:`Moved`}[e.kind];return(0,j.jsxs)(`li`,{className:`border-b border-border`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2 px-4 py-2`,children:[(0,j.jsxs)(`button`,{type:`button`,onClick:()=>r(e=>!e),"aria-expanded":n,className:`flex min-w-0 flex-1 items-center gap-2 text-left`,children:[(0,j.jsx)(SE,{size:13,className:Z(`shrink-0 transition-transform`,!n&&`-rotate-90`)}),(0,j.jsx)(CE,{size:14,className:`shrink-0 text-muted-foreground`}),(0,j.jsx)(`span`,{className:`min-w-0 truncate text-[12.5px] font-medium`,title:e.path,children:o})]}),(0,j.jsx)(`span`,{className:`shrink-0 text-[11px] text-muted-foreground`,children:s}),(0,j.jsxs)(`span`,{className:`shrink-0 font-mono text-[11px]`,children:[a.added?(0,j.jsxs)(`span`,{className:`cs-count-add`,children:[`+`,a.added]}):null,` `,a.removed?(0,j.jsxs)(`span`,{className:`cs-count-del`,children:[`−`,a.removed]}):null]}),(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button`,onClick:()=>void AE(e.path,i,`File path`),"aria-label":`Copy the path of ${o}`,title:`Copy path`,children:(0,j.jsx)(CE,{size:12})})]}),n?(0,j.jsx)(`div`,{className:`space-y-3 px-4 pb-3`,children:e.edits.map((e,t)=>(0,j.jsx)(FE,{edit:e},`${e.toolCallId}-${t}`))}):null]})}function LE(e){return(0,_.useMemo)(()=>PT(e),[e])}function RE(e){return(0,j.jsxs)(`aside`,{className:`cs-changes`,"aria-label":`Files changed in this chat`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between border-b border-border px-4 py-3`,children:[(0,j.jsxs)(`div`,{children:[(0,j.jsx)(`h2`,{className:`text-[13.5px] font-semibold`,children:`Files changed`}),(0,j.jsxs)(`p`,{className:`text-[11.5px] text-muted-foreground`,children:[e.files.length===0?`Nothing yet`:`${e.files.length} ${e.files.length===1?`file`:`files`}, from this chat's own record`,e.truncated?` · only the part of the chat shown here`:``]})]}),(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button`,onClick:e.onClose,"aria-label":`Close files changed`,children:(0,j.jsx)(wE,{size:14})})]}),e.files.length===0?(0,j.jsx)(`p`,{className:`px-4 py-6 text-center text-[12.5px] leading-5 text-muted-foreground`,children:`The agent hasn't written any files in this chat yet.`}):(0,j.jsx)(`ul`,{className:`min-h-0 flex-1 overflow-y-auto`,children:e.files.map(t=>(0,j.jsx)(IE,{file:t,cwd:e.cwd},t.path))})]})}function zE(e){let t=e?.defaultModel;return t?t.source===`settings`?`${t.id}, from your settings`:`${t.id}, the built-in default`:`${e?.label??`the agent`}'s own default`}function BE(e,t){let n=e.model??t?.defaultModel?.id??`Default model`,r=e.effort??t?.defaultEffort??null;return r?`${n} · ${r}`:n}function VE(e){let[t,n]=(0,_.useState)(!1),[r,i]=(0,_.useState)(``),a=e.status?.models??[],o=e.status?.efforts??[],s=e.value.model===null||a.some(t=>t.id===e.value.model),c=t=>e.onChange({...e.value,...t});return(0,j.jsxs)(VS,{open:t,onOpenChange:n,children:[(0,j.jsx)(HS,{asChild:!0,children:(0,j.jsxs)(`button`,{type:`button`,disabled:e.disabled,className:Z(e.appearance===`field`?`cs-model-field`:`cs-chip-button`),"aria-label":`Model and effort: ${BE(e.value,e.status)}. Change`,title:`Model and effort`,children:[(0,j.jsx)(`span`,{className:`truncate`,children:BE(e.value,e.status)}),(0,j.jsx)(SE,{size:12,className:`shrink-0`})]})}),(0,j.jsxs)(US,{align:`start`,className:`w-[300px] p-0`,children:[(0,j.jsxs)(`div`,{className:`max-h-[320px] overflow-y-auto p-1`,role:`listbox`,"aria-label":`Model`,children:[(0,j.jsx)(`p`,{className:`px-2 pb-1 pt-1.5 text-[11px] font-medium uppercase tracking-[0.05em] text-muted-foreground`,children:`Model`}),(0,j.jsxs)(`button`,{type:`button`,role:`option`,"aria-selected":e.value.model===null,className:`cs-option`,onClick:()=>c({model:null}),children:[(0,j.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,j.jsx)(`span`,{className:`block text-[13px]`,children:`Default`}),(0,j.jsx)(`span`,{className:`block truncate text-[11.5px] text-muted-foreground`,children:zE(e.status)})]}),e.value.model===null?(0,j.jsx)(rE,{size:14}):null]}),a.map(t=>(0,j.jsxs)(`button`,{type:`button`,role:`option`,"aria-selected":e.value.model===t.id,className:`cs-option`,onClick:()=>c({model:t.id}),children:[(0,j.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-[13px]`,children:t.label}),e.value.model===t.id?(0,j.jsx)(rE,{size:14}):null]},t.id)),s?null:(0,j.jsxs)(`div`,{className:`cs-option`,"aria-selected":`true`,role:`option`,children:[(0,j.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-[13px]`,children:e.value.model}),(0,j.jsx)(rE,{size:14})]}),(0,j.jsx)(`div`,{className:`flex gap-1 px-1 pb-1 pt-1.5`,children:(0,j.jsx)(`input`,{value:r,onChange:e=>i(e.target.value),onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),e.stopPropagation(),r.trim()&&(c({model:r.trim()}),i(``)))},placeholder:`Another model name…`,"aria-label":`Another model name`,spellCheck:!1,className:`cs-option-input`})})]}),o.length>0?(0,j.jsxs)(`div`,{className:`border-t border-border p-2`,children:[(0,j.jsx)(`p`,{className:`px-1 pb-1.5 text-[11px] font-medium uppercase tracking-[0.05em] text-muted-foreground`,children:`Thinking effort`}),(0,j.jsx)(`div`,{className:`flex flex-wrap gap-1`,role:`radiogroup`,"aria-label":`Thinking effort`,children:[null,...o].map(t=>(0,j.jsx)(`button`,{type:`button`,role:`radio`,"aria-checked":e.value.effort===t,className:Z(`cs-seg`,e.value.effort===t&&`cs-seg--on`),onClick:()=>c({effort:t}),title:t===null?`Default${e.status?.defaultEffort?` (${e.status.defaultEffort}, from your settings)`:``}`:void 0,children:t===null?`Default`:t},t??`default`))})]}):null]})]})}var HE=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function UE(e){return typeof e==`string`&&HE.test(e)}var WE=[`subject`,`character`,`style`,`mask`,`edit_target`,`composition_control`],GE=[`first_frame`,`last_frame`,`asset`,`style`];[...WE,...GE];var KE={subject:{label:`Subject`,ask:`Subject reference`,explanation:`Keeps this exact product or object recognisable: shape, materials, labels.`},character:{label:`Character`,ask:`Character reference`,explanation:`Keeps this person or character looking the same.`},style:{label:`Style`,ask:`Style reference`,explanation:`Borrows only the look (colours, lighting, medium), never the content.`},mask:{label:`Mask`,ask:`Mask`,explanation:`Marks the only area of the edited image that is allowed to change.`},edit_target:{label:`Edit this`,ask:`Image to edit`,explanation:`The image being edited; everything not asked for stays the same.`},composition_control:{label:`Composition`,ask:`Composition reference`,explanation:`Follows its layout, pose and geometry, not its appearance.`},first_frame:{label:`First frame`,ask:`First frame`,explanation:`The video starts on exactly this image.`},last_frame:{label:`Last frame`,ask:`Last frame`,explanation:`The video ends on exactly this image (needs a first frame).`},asset:{label:`Asset`,ask:`Asset reference`,explanation:`Keeps this product, object or character recognisable throughout the clip.`},extend:{label:`Extend`,ask:`Video to extend`,explanation:`The new clip continues this video from its last frame.`},restyle:{label:`Restyle`,ask:`Reference video`,explanation:`Re-renders this video: same motion and timing, a new look.`},lip_sync:{label:`Lip sync`,ask:`Lip-sync audio`,explanation:`The speech the on-screen face mouths, word for word.`}};function qE(e){return typeof e==`string`&&e in KE}var JE=[`image`,`video`,`audio`,`document`,`youtube`];function YE(e){return typeof e.control?.key==`string`&&e.control.key.length>0}function XE(e){let t=[],n=[];for(let r of e)(YE(r)?n:t).push(r);return{content:t,settings:n}}function ZE(e){let{content:t,settings:n}=XE(e);if(n.length===0)return e;let r=[...t,...n];return r.every((t,n)=>t===e[n])?e:r}function QE(e){let t=e.customComponent?.type,n=e.customComponent?.imageRole;return(t===`image`||t===`video`||t===`audio`)&&qE(n)?n:null}function $E(e,t=de){let n=(e.label??``).trim();if(n!==``)return n;let r=QE(e);return r?KE[r].ask:t(e.name)||e.name}function eD(e){if(e.helpText)return e.helpText;let t=QE(e);return t?KE[t].explanation:void 0}function tD(e,t=de){return ZE([...e??[]]).map(e=>{let n=e.customComponent?.type??`textarea`,r=e.customComponent?.options??void 0;return{name:e.name,label:$E(e,t),hint:eD(e),group:YE(e)?`settings`:`content`,required:!!e.required,component:n,options:r&&r.length>0?r:void 0,mediaKind:JE.includes(n)?n:null,role:QE(e),controlKey:YE(e)?e.control?.key??null:null,variable:e}})}function nD(e){return e}function rD(e){return`mandate:${e}`}function iD(e){return e.startsWith(`mandate:`)}var aD=[{value:`updated-desc`,label:`Recent`},{value:`created-desc`,label:`Created`},{value:`name-asc`,label:`A → Z`},{value:`name-desc`,label:`Z → A`},{value:`category-asc`,label:`Category`}],oD=[`active`,`both`,`archived`],sD=[{value:`active`,label:`Hide archived`,chip:`Archive`},{value:`both`,label:`Show all`,chip:`All + archived`},{value:`archived`,label:`Archived only`,chip:`Archived only`}];function cD(e){let t=oD.indexOf(e);return t<0?oD[0]:oD[(t+1)%oD.length]}function lD(e){return e===`active`||e===`archived`||e===`both`}var uD={tab:`mine`,sortBy:`updated-desc`,searchTerm:``,includedCats:[],includedTags:[],favFilter:`all`,archFilter:`active`,accessFilter:`any`,favoritesFirst:!0,listPage:1,sharedPage:1,serverMatchedIds:[],isServerSearching:!1,deepSearch:!1},dD=class extends Error{name=`AgentCatalogConfigError`;code;remedy;constructor(e){super(`${e.message} — ${e.remedy}`),this.code=e.code,this.remedy=e.remedy}},fD={publicTab:`Public`,systemBadge:`system`,archivedBadge:`Archived`,searchPlaceholder:`Search agents...`,currentAgentHeading:`Current agent`,emptyDefault:`No agents found`,emptyShared:`No shared agents found`,emptySystem:`No system agents found`,emptySignedOut:`Sign in to see your agents`,loading:`Loading...`,triggerFallback:`Agents`,triggerResolving:`Naming the agent…`,triggerUnnameable:`An agent this list cannot name`,hoverHint:`Hover an agent to preview its details, or click to select.`};function pD(e){return e.ok===!1}function mD(){let e=!1;return t=>{e||(e=!0,console.error("[associations] no errorSink port bound — using the package default. Bind the `errorSink` port on createAssociationsStore({ errorSink }) to route these into your diagnostics surface; until then they only reach the console.")),console.error(`[associations] ${t.code}: ${t.message}`,t.context??{})}}var hD={access_delta_probe:{token:`access_delta_probe`,schema:`iam`,table:`access_delta_probe`,label:`Access Delta Probe`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},access_delta_run:{token:`access_delta_run`,schema:`iam`,table:`access_delta_run`,label:`Access Delta Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},access_request:{token:`access_request`,schema:`iam`,table:`access_requests`,label:`Access Request`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`System`,referencePickable:!1,titleColumn:null,contentRole:`utility`,referenceCategory:null},account_addon:{token:`account_addon`,schema:`billing`,table:`account_addon`,label:`Account Addon`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},acquisition_block:{token:`acquisition_block`,schema:`platform`,table:`acquisition_block`,label:`Acquisition Block`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},activity:{token:`activity`,schema:`platform`,table:`activity_log`,label:`Activity Log Entry`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},admin_audit_log:{token:`admin_audit_log`,schema:`admin`,table:`admin_audit_log`,label:`Admin audit log`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},admin_email_log:{token:`admin_email_log`,schema:`admin`,table:`admin_email_logs`,label:`Admin email log`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},admin_markdown_sample:{token:`admin_markdown_sample`,schema:`admin`,table:`admin_markdown_samples`,label:`Admin markdown sample`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},admin_user:{token:`admin_user`,schema:`admin`,table:`admins`,label:`Platform admin`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},admission_config:{token:`admission_config`,schema:`content_ir`,table:`admission_config`,label:`Admission Config`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},agent:{token:`agent`,schema:`agent`,table:`definition`,label:`Agent`,baseTier:1,isComponent:!1,isModule:!0,isListed:!0,scopeable:!0,category:`Agents`,referencePickable:!0,titleColumn:`name`,contentRole:`utility`,referenceCategory:null},agent_card:{token:`agent_card`,schema:`agent`,table:`card`,label:`Agent Card`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},agent_definition_version:{token:`agent_definition_version`,schema:`agent`,table:`definition_version`,label:`Agent Definition Version`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Agents`,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},agent_drift_alert:{token:`agent_drift_alert`,schema:`agent`,table:`drift_alert`,label:`Agent Drift Alert`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Agents`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},agent_exemplar:{token:`agent_exemplar`,schema:`agent`,table:`exemplar`,label:`Agent Test Case`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},agent_mandate_note:{token:`agent_mandate_note`,schema:`agent`,table:`mandate_note`,label:`Mandate Note`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},agent_prompt_remediation:{token:`agent_prompt_remediation`,schema:`agent`,table:`prompt_remediation`,label:`Agent Prompt Remediation`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},agent_run:{token:`agent_run`,schema:`chat`,table:`agent_run`,label:`Agent Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},agent_run_stage:{token:`agent_run_stage`,schema:`chat`,table:`agent_run_stage`,label:`Agent Run Stage`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},agent_schedule:{token:`agent_schedule`,schema:`scheduler`,table:`agent_schedule`,label:`Agent Schedule`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},agent_schedule_claim:{token:`agent_schedule_claim`,schema:`scheduler`,table:`agent_schedule_claim`,label:`Agent Schedule Claim`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},agent_shortcut:{token:`agent_shortcut`,schema:`agent`,table:`shortcut`,label:`Agent Shortcut`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Agents`,referencePickable:!0,titleColumn:`label`,contentRole:`utility`,referenceCategory:null},agent_surface_binding:{token:`agent_surface_binding`,schema:`platform`,table:`associations`,label:`Agent Surface Binding`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Agents`,referencePickable:!0,titleColumn:`label`,contentRole:null,referenceCategory:null},agent_template:{token:`agent_template`,schema:`agent`,table:`template`,label:`Agent Template`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Agents`,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},agent_term_list:{token:`agent_term_list`,schema:`agent`,table:`term_list`,label:`Term List`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Agents`,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},agent_usage:{token:`agent_usage`,schema:`agent`,table:`usage`,label:`Agent Usage`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Agents`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ai_api:{token:`ai_api`,schema:`ai`,table:`api`,label:`AI API`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},ai_calls:{token:`ai_calls`,schema:`runtime`,table:`_ai_calls`,label:`AI model calls`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ai_endpoint:{token:`ai_endpoint`,schema:`ai`,table:`endpoint`,label:`AI Endpoint`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`display_name`,contentRole:null,referenceCategory:null},ai_model:{token:`ai_model`,schema:`ai`,table:`model_definition`,label:`AI Model`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},ai_model_alias:{token:`ai_model_alias`,schema:`ai`,table:`model_alias`,label:`AI Model Alias`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ai_offering:{token:`ai_offering`,schema:`ai`,table:`offering`,label:`AI Offering`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ai_provider:{token:`ai_provider`,schema:`ai`,table:`provider`,label:`AI Provider`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},ai_setting:{token:`ai_setting`,schema:`ai`,table:`setting`,label:`AI Setting`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`key`,contentRole:null,referenceCategory:null},ai_setting_profile:{token:`ai_setting_profile`,schema:`ai`,table:`setting_profile`,label:`Settings Profile`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`AI catalog`,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},ai_translation_cell:{token:`ai_translation_cell`,schema:`ai`,table:`translation_cell`,label:`Translation Cell`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`AI catalog`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ai_usage_executions:{token:`ai_usage_executions`,schema:`runtime`,table:`_ai_usage_calls`,label:`AI usage by execution`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ai_usage_hourly:{token:`ai_usage_hourly`,schema:`runtime`,table:`_ai_usage_hourly`,label:`AI usage by hour`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ai_usage_hourly_watermark:{token:`ai_usage_hourly_watermark`,schema:`runtime`,table:`_ai_usage_hourly_watermark`,label:`AI usage counted through`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},analysis_result:{token:`analysis_result`,schema:`files`,table:`analysis_result`,label:`Analysis Result`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},anon_form:{token:`anon_form`,schema:`custom`,table:`anon_form`,label:`Public form`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},anon_function_birth_grandfather:{token:`anon_function_birth_grandfather`,schema:`platform`,table:`anon_function_birth_grandfather`,label:`Anon Function Birth Grandfather`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},anon_hit:{token:`anon_hit`,schema:`custom`,table:`anon_hit`,label:`Anonymous rate window`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},anon_inbound:{token:`anon_inbound`,schema:`custom`,table:`anon_inbound`,label:`Inbound address`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},anon_replay:{token:`anon_replay`,schema:`custom`,table:`anon_replay`,label:`Offline capture ledger`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},anon_submission:{token:`anon_submission`,schema:`custom`,table:`anon_submission`,label:`Quarantined submission`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},anon_token:{token:`anon_token`,schema:`custom`,table:`anon_token`,label:`Embed token`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},api_field_warning:{token:`api_field_warning`,schema:`ops`,table:`api_field_warnings`,label:`API field warning`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},api_request_log:{token:`api_request_log`,schema:`ops`,table:`api_request_log`,label:`API request log`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},app:{token:`app`,schema:`app`,table:`definition`,label:`App`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Apps`,referencePickable:!0,titleColumn:`name`,contentRole:`utility`,referenceCategory:null},app_config:{token:`app_config`,schema:`public`,table:`app_config`,label:`App config`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},app_config_history:{token:`app_config_history`,schema:`public`,table:`app_config_history`,label:`App Config History`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},app_definition_version:{token:`app_definition_version`,schema:`app`,table:`definition_version`,label:`App Definition Version`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Apps`,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},app_error:{token:`app_error`,schema:`app`,table:`error`,label:`App Error`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Apps`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},app_execution:{token:`app_execution`,schema:`app`,table:`execution`,label:`App Execution`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Apps`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},app_instance:{token:`app_instance`,schema:`public`,table:`app_instances`,label:`App Instance`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},app_log:{token:`app_log`,schema:`ops`,table:`app_log`,label:`App Log`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},app_log_muted_pattern:{token:`app_log_muted_pattern`,schema:`ops`,table:`app_log_muted_pattern`,label:`Muted log pattern`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},app_log_norm_exception:{token:`app_log_norm_exception`,schema:`ops`,table:`app_log_norm_exception`,label:`Log normalisation exception`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},app_rate_limit:{token:`app_rate_limit`,schema:`app`,table:`rate_limit`,label:`App Rate Limit`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Apps`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},app_setting:{token:`app_setting`,schema:`public`,table:`app_settings`,label:`App Setting`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},app_sync_status:{token:`app_sync_status`,schema:`public`,table:`app_sync_status`,label:`App Sync Status`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},approach:{token:`approach`,schema:`platform`,table:`approach`,label:`Approach`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},artifact:{token:`artifact`,schema:`chat`,table:`artifact`,label:`Artifact`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},assessment:{token:`assessment`,schema:`education`,table:`assessment`,label:`Assessment`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},assessment_item:{token:`assessment_item`,schema:`education`,table:`assessment_item`,label:`Assessment Item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},assessment_result:{token:`assessment_result`,schema:`education`,table:`assessment_result`,label:`Assessment Result`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},assignment_session:{token:`assignment_session`,schema:`assignment`,table:`session`,label:`Assignment session`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},assist:{token:`assist`,schema:`platform`,table:`assists`,label:`Assist`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:`platform`,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},assist_producer_policy:{token:`assist_producer_policy`,schema:`platform`,table:`assist_producer_policy`,label:`Assist producer policy`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},assist_producer_policy_history:{token:`assist_producer_policy_history`,schema:`platform`,table:`assist_producer_policy_history`,label:`Assist Producer Policy History`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},association_type:{token:`association_type`,schema:`platform`,table:`association_types`,label:`Association type`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},assurance_level:{token:`assurance_level`,schema:`platform`,table:`assurance_level`,label:`Assurance level`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},attempt:{token:`attempt`,schema:`assignment`,table:`attempt`,label:`Attempt`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},audit_broken_functions:{token:`audit_broken_functions`,schema:`audit`,table:`broken_functions`,label:`Broken functions`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},audit_canonical_findings:{token:`audit_canonical_findings`,schema:`audit`,table:`canonical_findings`,label:`Canonical findings`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},audit_exemption:{token:`audit_exemption`,schema:`meta`,table:`audit_exemption`,label:`Audit exemption`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},audit_function_deps:{token:`audit_function_deps`,schema:`audit`,table:`function_deps`,label:`Function dependencies`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},audit_function_runtime_probe:{token:`audit_function_runtime_probe`,schema:`audit`,table:`function_runtime_probe`,label:`Function runtime probe`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},audit_m2m_candidates:{token:`audit_m2m_candidates`,schema:`audit`,table:`m2m_candidates`,label:`M2M candidates`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},audit_refresh_log:{token:`audit_refresh_log`,schema:`audit`,table:`refresh_log`,label:`Audit refresh log`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},audit_stale_registry:{token:`audit_stale_registry`,schema:`audit`,table:`stale_registry`,label:`Stale registry`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},audit_unregistered_candidates:{token:`audit_unregistered_candidates`,schema:`audit`,table:`unregistered_candidates`,label:`Unregistered candidates`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},base_entity_template:{token:`base_entity_template`,schema:`platform`,table:`_base_entity`,label:`Base entity template`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},batch_cost_event:{token:`batch_cost_event`,schema:`batch`,table:`cost_event`,label:`Batch Cost Event`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},batch_provider_batch:{token:`batch_provider_batch`,schema:`batch`,table:`provider_batch`,label:`Provider Batch`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},batch_work_item:{token:`batch_work_item`,schema:`batch`,table:`work_item`,label:`Batch Work Item`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_capability:{token:`billing_capability`,schema:`billing`,table:`capability`,label:`Billing capability`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_capability_limit:{token:`billing_capability_limit`,schema:`billing`,table:`capability_limit`,label:`Billing capability limit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_connect_account:{token:`billing_connect_account`,schema:`billing`,table:`connect_account`,label:`Billing connect account`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_coupon:{token:`billing_coupon`,schema:`billing`,table:`coupon`,label:`Coupon`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_coupon_redemption:{token:`billing_coupon_redemption`,schema:`billing`,table:`coupon_redemption`,label:`Coupon redemption`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_customer:{token:`billing_customer`,schema:`billing`,table:`customer`,label:`Billing customer`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_free_period_grant:{token:`billing_free_period_grant`,schema:`billing`,table:`free_period_grant`,label:`Free period grant`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_plan:{token:`billing_plan`,schema:`billing`,table:`plan`,label:`Billing plan`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_plan_limit:{token:`billing_plan_limit`,schema:`billing`,table:`plan_limit`,label:`Billing plan limit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_price:{token:`billing_price`,schema:`billing`,table:`price`,label:`Billing price`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_product:{token:`billing_product`,schema:`billing`,table:`product`,label:`Billing product`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_spend_approval:{token:`billing_spend_approval`,schema:`billing`,table:`spend_approval`,label:`Spend Approval`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_spend_guardrail:{token:`billing_spend_guardrail`,schema:`billing`,table:`spend_guardrail`,label:`Spend Guardrail`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_stripe_event:{token:`billing_stripe_event`,schema:`billing`,table:`stripe_event`,label:`Stripe webhook event`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_subscription:{token:`billing_subscription`,schema:`billing`,table:`subscription`,label:`Billing subscription`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_usage_ledger:{token:`billing_usage_ledger`,schema:`billing`,table:`usage_ledger`,label:`Usage ledger`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_usage_reset:{token:`billing_usage_reset`,schema:`billing`,table:`usage_reset`,label:`Usage reset`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},billing_user_plan:{token:`billing_user_plan`,schema:`billing`,table:`user_plan`,label:`User plan`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},board:{token:`board`,schema:`projects`,table:`boards`,label:`Board`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_account_binding:{token:`browser_account_binding`,schema:`browser`,table:`account_binding`,label:`Browser Account Binding`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_action_event:{token:`browser_action_event`,schema:`browser`,table:`action_event`,label:`Browser Action Event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_authenticator_window:{token:`browser_authenticator_window`,schema:`browser`,table:`authenticator_window`,label:`Browser Authenticator Window`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_capture:{token:`browser_capture`,schema:`browser`,table:`capture`,label:`Browser Capture`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_control_request:{token:`browser_control_request`,schema:`browser`,table:`control_request`,label:`Browser Control Request`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_handoff:{token:`browser_handoff`,schema:`browser`,table:`handoff`,label:`Browser Handoff`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_login_attempt:{token:`browser_login_attempt`,schema:`browser`,table:`login_attempt`,label:`Browser Login Attempt`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_login_recipe:{token:`browser_login_recipe`,schema:`browser`,table:`login_recipe`,label:`Browser Login Recipe`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_profile:{token:`browser_profile`,schema:`browser`,table:`profile`,label:`Cloud Browser Profile`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_profile_checkpoint:{token:`browser_profile_checkpoint`,schema:`browser`,table:`profile_checkpoint`,label:`Browser Profile Checkpoint`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_run:{token:`browser_run`,schema:`browser`,table:`run`,label:`Cloud Browser Run`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_site_observation:{token:`browser_site_observation`,schema:`browser`,table:`site_observation`,label:`Browser Site Observation`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_site_policy:{token:`browser_site_policy`,schema:`browser`,table:`site_policy`,label:`Browser Site Policy`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},browser_stream_ticket:{token:`browser_stream_ticket`,schema:`browser`,table:`stream_ticket`,label:`Browser Stream Ticket`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},build_lock:{token:`build_lock`,schema:`campaign_watch`,table:`build_lock`,label:`Build Lock`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},calendar_event:{token:`calendar_event`,schema:`communication`,table:`calendar_event`,label:`Calendar event`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},campaign_watch_ramp_gate_run:{token:`campaign_watch_ramp_gate_run`,schema:`campaign_watch`,table:`ramp_gate_run`,label:`Ramp gate run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},campaign_watch_switch_outbox:{token:`campaign_watch_switch_outbox`,schema:`campaign_watch`,table:`switch_outbox`,label:`Switch outbox`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},campaign_watch_switch_window:{token:`campaign_watch_switch_window`,schema:`campaign_watch`,table:`switch_window`,label:`Switch window`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},canvas_comment:{token:`canvas_comment`,schema:`canvas`,table:`canvas_comments`,label:`Canvas Comment`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`display_name`,contentRole:null,referenceCategory:null},canvas_comment_like:{token:`canvas_comment_like`,schema:`canvas`,table:`canvas_comment_likes`,label:`Canvas Comment Like`,baseTier:3,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},canvas_item:{token:`canvas_item`,schema:`canvas`,table:`canvas_items`,label:`Canvas Item`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},canvas_item_state:{token:`canvas_item_state`,schema:`canvas`,table:`canvas_item_state`,label:`Canvas Item State`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},canvas_like:{token:`canvas_like`,schema:`canvas`,table:`canvas_likes`,label:`Canvas Like`,baseTier:3,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},canvas_score:{token:`canvas_score`,schema:`canvas`,table:`canvas_scores`,label:`Canvas Score`,baseTier:3,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`display_name`,contentRole:null,referenceCategory:null},canvas_view:{token:`canvas_view`,schema:`canvas`,table:`canvas_views`,label:`Canvas View`,baseTier:3,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},capture_window:{token:`capture_window`,schema:`history`,table:`capture_window`,label:`Capture Window`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},carrying_rule:{token:`carrying_rule`,schema:`custom`,table:`carrying_rule`,label:`Carrying Rule`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},catalog_entries_history:{token:`catalog_entries_history`,schema:`public`,table:`catalog_entries_history`,label:`Catalog Entries History`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},catalog_entry:{token:`catalog_entry`,schema:`public`,table:`catalog_entries`,label:`Catalog entry`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},category:{token:`category`,schema:`platform`,table:`categories`,label:`Category`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},change_type_default:{token:`change_type_default`,schema:`platform`,table:`change_type_default`,label:`Change type default`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},chat_user_usage_summary:{token:`chat_user_usage_summary`,schema:`chat`,table:`user_usage_summary`,label:`Chat usage summary`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},citations:{token:`citations`,schema:`legal`,table:`citations`,label:`Citations`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},class_purchase:{token:`class_purchase`,schema:`billing`,table:`class_purchase`,label:`Class Purchase`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},classifier_revision_ledger:{token:`classifier_revision_ledger`,schema:`seo`,table:`classifier_revision_ledger`,label:`Classifier Revision Ledger`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},client_callable_door:{token:`client_callable_door`,schema:`platform`,table:`client_callable_door`,label:`Client Callable Door`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},client_callable_door_retirement:{token:`client_callable_door_retirement`,schema:`platform`,table:`client_callable_door_retirement`,label:`Client Callable Door Retirement`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},client_excluded_column_unregistered:{token:`client_excluded_column_unregistered`,schema:`platform`,table:`client_excluded_column_unregistered`,label:`Client Excluded Column Unregistered`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cmp_entry:{token:`cmp_entry`,schema:`agent`,table:`cmp_comparison_entries`,label:`Comparison Entry`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cmp_feedback:{token:`cmp_feedback`,schema:`agent`,table:`cmp_response_feedback`,label:`Comparison Response Feedback`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},code_file:{token:`code_file`,schema:`code`,table:`code_files`,label:`Code File`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:`source`,referenceCategory:null},code_folder:{token:`code_folder`,schema:`code`,table:`code_file_folders`,label:`Code Folder`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:`container`,referenceCategory:null},code_repository:{token:`code_repository`,schema:`code`,table:`code_repositories`,label:`Code Repository`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:`container`,referenceCategory:null},coding_session:{token:`coding_session`,schema:`chat`,table:`coding_session`,label:`Coding Session`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},coding_session_entry:{token:`coding_session_entry`,schema:`chat`,table:`coding_session_entry`,label:`Coding Session Entry`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},comment:{token:`comment`,schema:`platform`,table:`comments`,label:`Comment`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_asset_allocation:{token:`commerce_asset_allocation`,schema:`commerce`,table:`asset_allocation`,label:`Asset Allocation`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_asset_grading:{token:`commerce_asset_grading`,schema:`commerce`,table:`asset_grading`,label:`Asset Grading`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_asset_identifier:{token:`commerce_asset_identifier`,schema:`commerce`,table:`asset_identifier`,label:`Asset Identifier`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_asset_lot_event:{token:`commerce_asset_lot_event`,schema:`commerce`,table:`asset_lot_event`,label:`Asset Lot Event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_asset_mandate_result:{token:`commerce_asset_mandate_result`,schema:`commerce`,table:`asset_mandate_result`,label:`Asset Mandate Result`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_asset_price_factor:{token:`commerce_asset_price_factor`,schema:`commerce`,table:`asset_price_factor`,label:`Asset Price Factor`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_asset_reshoot_request:{token:`commerce_asset_reshoot_request`,schema:`commerce`,table:`asset_reshoot_request`,label:`Asset Reshoot Request`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_asset_review:{token:`commerce_asset_review`,schema:`commerce`,table:`asset_review`,label:`Asset Review`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_asset_unknown:{token:`commerce_asset_unknown`,schema:`commerce`,table:`asset_unknown`,label:`Asset Unknown`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_certified_printer:{token:`commerce_certified_printer`,schema:`commerce`,table:`certified_printer`,label:`Certified Printer`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_cloud_sync_connection:{token:`commerce_cloud_sync_connection`,schema:`commerce`,table:`cloud_sync_connection`,label:`Cloud Sync Connection`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_business_policy:{token:`commerce_ebay_business_policy`,schema:`commerce`,table:`ebay_business_policy`,label:`eBay Business Policy`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_category:{token:`commerce_ebay_category`,schema:`commerce`,table:`ebay_category`,label:`eBay Category`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_category_aspect:{token:`commerce_ebay_category_aspect`,schema:`commerce`,table:`ebay_category_aspect`,label:`eBay Category Aspect`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_category_tree:{token:`commerce_ebay_category_tree`,schema:`commerce`,table:`ebay_category_tree`,label:`eBay Category Tree`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_custom_policy:{token:`commerce_ebay_custom_policy`,schema:`commerce`,table:`ebay_custom_policy`,label:`eBay Custom Policy`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_inventory_item:{token:`commerce_ebay_inventory_item`,schema:`commerce`,table:`ebay_inventory_item`,label:`eBay Inventory Item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_inventory_item_group:{token:`commerce_ebay_inventory_item_group`,schema:`commerce`,table:`ebay_inventory_item_group`,label:`eBay Inventory Item Group`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_inventory_item_group_member:{token:`commerce_ebay_inventory_item_group_member`,schema:`commerce`,table:`ebay_inventory_item_group_member`,label:`eBay Inventory Item Group Member`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_inventory_location:{token:`commerce_ebay_inventory_location`,schema:`commerce`,table:`ebay_inventory_location`,label:`eBay Inventory Location`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_listing:{token:`commerce_ebay_listing`,schema:`commerce`,table:`ebay_listing`,label:`eBay Listing`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_marketplace_policy:{token:`commerce_ebay_marketplace_policy`,schema:`commerce`,table:`ebay_marketplace_policy`,label:`eBay Marketplace Policy`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_media_asset:{token:`commerce_ebay_media_asset`,schema:`commerce`,table:`ebay_media_asset`,label:`eBay Media Asset`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_notification_destination:{token:`commerce_ebay_notification_destination`,schema:`commerce`,table:`ebay_notification_destination`,label:`eBay Notification Destination`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_notification_event:{token:`commerce_ebay_notification_event`,schema:`commerce`,table:`ebay_notification_event`,label:`eBay Notification Event`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_notification_subscription:{token:`commerce_ebay_notification_subscription`,schema:`commerce`,table:`ebay_notification_subscription`,label:`eBay Notification Subscription`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_notification_topic:{token:`commerce_ebay_notification_topic`,schema:`commerce`,table:`ebay_notification_topic`,label:`eBay Notification Topic`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_offer:{token:`commerce_ebay_offer`,schema:`commerce`,table:`ebay_offer`,label:`eBay Offer`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_order:{token:`commerce_ebay_order`,schema:`commerce`,table:`ebay_order`,label:`eBay Order`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_order_line_item:{token:`commerce_ebay_order_line_item`,schema:`commerce`,table:`ebay_order_line_item`,label:`eBay Order Line Item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_shipping_fulfillment:{token:`commerce_ebay_shipping_fulfillment`,schema:`commerce`,table:`ebay_shipping_fulfillment`,label:`eBay Shipping Fulfillment`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_ebay_store_category:{token:`commerce_ebay_store_category`,schema:`commerce`,table:`ebay_store_category`,label:`eBay Store Category`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_human_correction:{token:`commerce_human_correction`,schema:`commerce`,table:`human_correction`,label:`Human Correction`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_intake_artifact:{token:`commerce_intake_artifact`,schema:`commerce`,table:`intake_artifact`,label:`Intake Artifact`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_intake_asset:{token:`commerce_intake_asset`,schema:`commerce`,table:`intake_asset`,label:`Intake Asset`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_intake_batch:{token:`commerce_intake_batch`,schema:`commerce`,table:`intake_batch`,label:`Intake Batch`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_label_batch:{token:`commerce_label_batch`,schema:`commerce`,table:`label_batch`,label:`Label Batch`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_label_code:{token:`commerce_label_code`,schema:`commerce`,table:`label_code`,label:`Label Code`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_marketplace_account:{token:`commerce_marketplace_account`,schema:`commerce`,table:`marketplace_account`,label:`Marketplace Account`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_marketplace_account_deletion_audit:{token:`commerce_marketplace_account_deletion_audit`,schema:`commerce`,table:`marketplace_account_deletion_audit`,label:`Marketplace Account Deletion Audit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_marketplace_api_call:{token:`commerce_marketplace_api_call`,schema:`commerce`,table:`marketplace_api_call`,label:`Marketplace API Call`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_marketplace_rate_budget:{token:`commerce_marketplace_rate_budget`,schema:`commerce`,table:`marketplace_rate_budget`,label:`Marketplace Rate Budget`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_marketplace_site:{token:`commerce_marketplace_site`,schema:`commerce`,table:`marketplace_site`,label:`Marketplace Site`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_marketplace_sync_run:{token:`commerce_marketplace_sync_run`,schema:`commerce`,table:`marketplace_sync_run`,label:`Marketplace Sync Run`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_prediction_outcome:{token:`commerce_prediction_outcome`,schema:`commerce`,table:`prediction_outcome`,label:`Prediction Outcome`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_print_order:{token:`commerce_print_order`,schema:`commerce`,table:`print_order`,label:`Print Order`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_product:{token:`commerce_product`,schema:`commerce`,table:`product`,label:`Product`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_product_channel_ref:{token:`commerce_product_channel_ref`,schema:`commerce`,table:`product_channel_ref`,label:`Product Channel Reference`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_product_media:{token:`commerce_product_media`,schema:`commerce`,table:`product_media`,label:`Product Media`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_product_variant:{token:`commerce_product_variant`,schema:`commerce`,table:`product_variant`,label:`Product Variant`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},commerce_recall_audit:{token:`commerce_recall_audit`,schema:`commerce`,table:`recall_audit`,label:`Recall Audit`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},communication_calendar_selected_snapshot_state:{token:`communication_calendar_selected_snapshot_state`,schema:`communication`,table:`calendar_selected_snapshot_state`,label:`Calendar snapshot state`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},communication_channel_readiness:{token:`communication_channel_readiness`,schema:`communication`,table:`channel_readiness`,label:`Channel readiness`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},comparison_set:{token:`comparison_set`,schema:`agent`,table:`cmp_comparison_sets`,label:`Comparison Set`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},contact_medium:{token:`contact_medium`,schema:`crm`,table:`contact_medium`,label:`Contact Medium`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`display_value`,contentRole:`utility`,referenceCategory:null},contact_submission:{token:`contact_submission`,schema:`communication`,table:`contact_submissions`,label:`Contact Submission`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},content_certification:{token:`content_certification`,schema:`education`,table:`content_certification`,label:`Content certification`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},content_ir_kind:{token:`content_ir_kind`,schema:`content_ir`,table:`kind_definition`,label:`Content-IR Kind`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`label`,contentRole:null,referenceCategory:null},content_ir_kind_component:{token:`content_ir_kind_component`,schema:`content_ir`,table:`kind_component`,label:`Kind Component`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},content_ir_kind_component_incident:{token:`content_ir_kind_component_incident`,schema:`content_ir`,table:`kind_component_incident`,label:`Kind Component Incident`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},content_ir_kind_conformance:{token:`content_ir_kind_conformance`,schema:`content_ir`,table:`kind_conformance`,label:`Shape Conformance`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},content_ir_kind_edge:{token:`content_ir_kind_edge`,schema:`content_ir`,table:`kind_edge`,label:`Content-IR Kind Edge`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},content_ir_kind_example:{token:`content_ir_kind_example`,schema:`content_ir`,table:`kind_example`,label:`Kind Example`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`label`,contentRole:null,referenceCategory:null},content_ir_kind_instance:{token:`content_ir_kind_instance`,schema:`content_ir`,table:`kind_instance`,label:`Saved Result`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},content_ir_kind_surface:{token:`content_ir_kind_surface`,schema:`content_ir`,table:`kind_surface`,label:`Kind Surface`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},content_lane:{token:`content_lane`,schema:`iam`,table:`content_lane`,label:`Content Lane`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},context_access_log:{token:`context_access_log`,schema:`context`,table:`context_access_log`,label:`Context access log`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},context_item:{token:`context_item`,schema:`context`,table:`context_items`,label:`Context Item`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`display_name`,contentRole:null,referenceCategory:null},context_item_suggestion:{token:`context_item_suggestion`,schema:`rag`,table:`context_item_suggestions`,label:`Context Item Suggestion`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},context_item_value:{token:`context_item_value`,schema:`context`,table:`context_item_values`,label:`Record Value`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},context_value_refs:{token:`context_value_refs`,schema:`context`,table:`context_value_refs`,label:`Context Value Refs`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},conversation:{token:`conversation`,schema:`chat`,table:`conversation`,label:`Conversation`,baseTier:1,isComponent:!1,isModule:!0,isListed:!1,scopeable:!0,category:`Outputs`,referencePickable:!0,titleColumn:`title`,contentRole:`destination`,referenceCategory:null},conversation_value:{token:`conversation_value`,schema:`chat`,table:`conversation_value`,label:`Conversation Value`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:null,referencePickable:!1,titleColumn:`key`,contentRole:null,referenceCategory:null},courts:{token:`courts`,schema:`legal`,table:`courts`,label:`Courts`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},credential_attachment:{token:`credential_attachment`,schema:`users`,table:`credential_attachments`,label:`Credential attachment`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},credential_item:{token:`credential_item`,schema:`users`,table:`credential_items`,label:`Credential item`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`display_name`,contentRole:null,referenceCategory:null},credential_mutation_receipt:{token:`credential_mutation_receipt`,schema:`users`,table:`credential_mutation_receipts`,label:`Credential Mutation Receipt`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},crm_address:{token:`crm_address`,schema:`crm`,table:`address`,label:`Address`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`label`,contentRole:null,referenceCategory:null},crm_affiliation:{token:`crm_affiliation`,schema:`crm`,table:`affiliation`,label:`Affiliation`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},crm_blocklist_entry:{token:`crm_blocklist_entry`,schema:`crm`,table:`blocklist_entry`,label:`Blocklist Entry`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},crm_contact_candidate:{token:`crm_contact_candidate`,schema:`crm`,table:`contact_candidate`,label:`Contact Candidate`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},crm_deal:{token:`crm_deal`,schema:`crm`,table:`deal`,label:`Deal`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:`source`,referenceCategory:null},crm_deal_stage_event:{token:`crm_deal_stage_event`,schema:`crm`,table:`deal_stage_event`,label:`Deal Stage Event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},crm_enrichment_call:{token:`crm_enrichment_call`,schema:`crm`,table:`enrichment_call`,label:`Enrichment Call`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},crm_interaction:{token:`crm_interaction`,schema:`crm`,table:`interaction`,label:`Interaction`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`subject`,contentRole:null,referenceCategory:null},crm_merge_candidate:{token:`crm_merge_candidate`,schema:`crm`,table:`merge_candidate`,label:`Merge Candidate`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},crm_outreach_list:{token:`crm_outreach_list`,schema:`crm`,table:`outreach_list`,label:`Outreach List`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:`container`,referenceCategory:null},crm_outreach_list_member:{token:`crm_outreach_list_member`,schema:`crm`,table:`outreach_list_member`,label:`Outreach List Member`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},crm_party_merge:{token:`crm_party_merge`,schema:`crm`,table:`party_merge`,label:`Party Merge`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},crm_party_research:{token:`crm_party_research`,schema:`crm`,table:`party_research`,label:`Private contact research`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`CRM`,referencePickable:!1,titleColumn:`label`,contentRole:`utility`,referenceCategory:null},crm_registry_ingest_run:{token:`crm_registry_ingest_run`,schema:`crm`,table:`registry_ingest_run`,label:`Registry Ingest Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},crm_registry_source:{token:`crm_registry_source`,schema:`crm`,table:`registry_source`,label:`Registry Source`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},crm_sending_claim:{token:`crm_sending_claim`,schema:`crm`,table:`sending_claim`,label:`Sending claim`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},crm_sending_event:{token:`crm_sending_event`,schema:`crm`,table:`sending_event`,label:`Sending Event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`subject`,contentRole:null,referenceCategory:null},crm_sending_identity:{token:`crm_sending_identity`,schema:`crm`,table:`sending_identity`,label:`Sending Identity`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},crm_sending_identity_check:{token:`crm_sending_identity_check`,schema:`crm`,table:`sending_identity_check`,label:`Sending Check`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`check_kind`,contentRole:null,referenceCategory:null},crm_sending_policy:{token:`crm_sending_policy`,schema:`crm`,table:`sending_policy`,label:`Sending Policy`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},custom_agent_table_trust:{token:`custom_agent_table_trust`,schema:`custom`,table:`agent_table_trust`,label:`Agent table trust`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},custom_agg_digest_checked:{token:`custom_agg_digest_checked`,schema:`custom`,table:`agg_digest_checked`,label:`Aggregate digest checked`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},custom_entity_definition:{token:`custom_entity_definition`,schema:`platform`,table:`custom_entity_definition`,label:`Custom Object`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},custom_field_definition:{token:`custom_field_definition`,schema:`platform`,table:`custom_field_definition`,label:`Custom Field`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},custom_field_target:{token:`custom_field_target`,schema:`platform`,table:`custom_field_target`,label:`Custom Field Target`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},custom_io_outbox_consumer:{token:`custom_io_outbox_consumer`,schema:`custom`,table:`io_outbox_consumer`,label:`Outbox consumer`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},custom_io_outbox_consumption:{token:`custom_io_outbox_consumption`,schema:`custom`,table:`io_outbox_consumption`,label:`Outbox consumption`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},custom_record:{token:`custom_record`,schema:`platform`,table:`custom_record`,label:`Custom Record`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},custom_share_tails_mine_repair:{token:`custom_share_tails_mine_repair`,schema:`custom`,table:`_share_tails_mine_repair`,label:`Share tails repair`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},custom_template:{token:`custom_template`,schema:`custom`,table:`template`,label:`Template`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},custom_template_install:{token:`custom_template_install`,schema:`custom`,table:`template_install`,label:`Template install`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cx_agent_memory:{token:`cx_agent_memory`,schema:`chat`,table:`agent_memory`,label:`Agent Memory`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!0,titleColumn:`key`,contentRole:null,referenceCategory:null},cx_agent_plan:{token:`cx_agent_plan`,schema:`chat`,table:`agent_plan`,label:`Agent Plan`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},cx_agent_task:{token:`cx_agent_task`,schema:`chat`,table:`agent_task`,label:`Agent Task`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},cx_code_edit:{token:`cx_code_edit`,schema:`chat`,table:`code_edit`,label:`Code Edit`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cx_code_message_file:{token:`cx_code_message_file`,schema:`chat`,table:`code_message_file`,label:`Code Message File`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cx_media:{token:`cx_media`,schema:`chat`,table:`media`,label:`Media`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cx_observational_memory:{token:`cx_observational_memory`,schema:`chat`,table:`observational_memory`,label:`Observational Memory`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cx_observational_memory_event:{token:`cx_observational_memory_event`,schema:`chat`,table:`observational_memory_event`,label:`Observational Memory Event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cx_pending_injection:{token:`cx_pending_injection`,schema:`chat`,table:`pending_injection`,label:`Pending Injection`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cx_request:{token:`cx_request`,schema:`chat`,table:`request`,label:`Conversation Request`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cx_request_snapshot:{token:`cx_request_snapshot`,schema:`chat`,table:`request_snapshot`,label:`Request Snapshot`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cx_tool_trace:{token:`cx_tool_trace`,schema:`chat`,table:`tool_trace`,label:`Tool Trace`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cx_user_request:{token:`cx_user_request`,schema:`chat`,table:`user_request`,label:`User Request`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},cx_user_todo:{token:`cx_user_todo`,schema:`chat`,table:`user_todo`,label:`User Todo`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},data_rights_event:{token:`data_rights_event`,schema:`education`,table:`data_rights_event`,label:`Data rights event`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},data_store:{token:`data_store`,schema:`rag`,table:`data_stores`,label:`Data Store`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:`source`,referenceCategory:null},data_store_members:{token:`data_store_members`,schema:`rag`,table:`data_store_members`,label:`Data Store Members`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ddl_guard_log:{token:`ddl_guard_log`,schema:`platform`,table:`ddl_guard_log`,label:`DDL guard log`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},deck_suggestion:{token:`deck_suggestion`,schema:`education`,table:`deck_suggestion`,label:`Deck Suggestion`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},definer_class_exemption:{token:`definer_class_exemption`,schema:`iam`,table:`definer_class_exemption`,label:`Definer Class Exemption`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},definer_client_grant_grandfather:{token:`definer_client_grant_grandfather`,schema:`platform`,table:`definer_client_grant_grandfather`,label:`Definer Client Grant Grandfather`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},definer_grant_baseline:{token:`definer_grant_baseline`,schema:`hr`,table:`definer_grant_baseline`,label:`Definer Grant Baseline`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},deprecated_relation:{token:`deprecated_relation`,schema:`platform`,table:`deprecated_relations`,label:`Deprecated relation`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},derive_run:{token:`derive_run`,schema:`docproc`,table:`derive_runs`,label:`Derive Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},dev_login_audit:{token:`dev_login_audit`,schema:`admin`,table:`dev_login_audit`,label:`Dev login audit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},dict_entry:{token:`dict_entry`,schema:`dictionary`,table:`dict_entries`,label:`Dictionary entry`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},dict_provider_publication:{token:`dict_provider_publication`,schema:`dictionary`,table:`dict_provider_publication`,label:`Dict Provider Publication`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},dict_setting:{token:`dict_setting`,schema:`dictionary`,table:`dict_settings`,label:`Dict Setting`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},dm_conversation:{token:`dm_conversation`,schema:`communication`,table:`dm_conversations`,label:`Direct Conversation`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},dm_message:{token:`dm_message`,schema:`communication`,table:`dm_messages`,label:`Direct Message`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},dm_participant:{token:`dm_participant`,schema:`communication`,table:`dm_conversation_participants`,label:`DM Conversation Participant`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},doc_render:{token:`doc_render`,schema:`custom`,table:`doc_render`,label:`Rendered Document`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},doc_signature:{token:`doc_signature`,schema:`custom`,table:`doc_signature`,label:`Document Signature`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},dockets:{token:`dockets`,schema:`legal`,table:`dockets`,label:`Dockets`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},document:{token:`document`,schema:`content`,table:`document`,label:`Markdown document`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:`Documents`,referencePickable:!1,titleColumn:`title`,contentRole:`hybrid`,referenceCategory:null},document_version:{token:`document_version`,schema:`content`,table:`document_version`,label:`Document Version`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Documents`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},domain_classification:{token:`domain_classification`,schema:`platform`,table:`domain_classification`,label:`Domain Classification`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},edge_payload_kind:{token:`edge_payload_kind`,schema:`platform`,table:`edge_payload_kind`,label:`Edge payload kind`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},egress_device:{token:`egress_device`,schema:`platform`,table:`egress_device`,label:`Home connection computer`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},egress_pairing:{token:`egress_pairing`,schema:`platform`,table:`egress_pairing`,label:`Home connection pairing`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},egress_ticket:{token:`egress_ticket`,schema:`platform`,table:`egress_ticket`,label:`Home connection ticket`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},emails:{token:`emails`,schema:`communication`,table:`emails`,label:`Emails`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},embedding_cache:{token:`embedding_cache`,schema:`rag`,table:`embedding_cache`,label:`Embedding Cache`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},embeddings_google_gemini_2_1536:{token:`embeddings_google_gemini_2_1536`,schema:`rag`,table:`embeddings_google_gemini_2_1536`,label:`Embeddings Google Gemini 2 1536`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},embeddings_oai_3_small_1536:{token:`embeddings_oai_3_small_1536`,schema:`rag`,table:`embeddings_oai_3_small_1536`,label:`Embeddings Oai 3 Small 1536`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},embeddings_voyage_4_large_1024:{token:`embeddings_voyage_4_large_1024`,schema:`rag`,table:`embeddings_voyage_4_large_1024`,label:`Embeddings Voyage 4 Large 1024`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},embeddings_voyage_code_3_1024:{token:`embeddings_voyage_code_3_1024`,schema:`rag`,table:`embeddings_voyage_code_3_1024`,label:`Embeddings Voyage Code 3 1024`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},endpoint_family_sweep_state:{token:`endpoint_family_sweep_state`,schema:`web`,table:`endpoint_family_sweep_state`,label:`Endpoint Family Sweep State`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},engine_owner_task:{token:`engine_owner_task`,schema:`seo`,table:`engine_owner_task`,label:`Engine Owner Task`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},entity_grant:{token:`entity_grant`,schema:`platform`,table:`entity_grants`,label:`Entity grant`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},entity_protected_value:{token:`entity_protected_value`,schema:`custom`,table:`entity_protected_value`,label:`Protected field value`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},entity_protected_value_version:{token:`entity_protected_value_version`,schema:`custom`,table:`entity_protected_value_version`,label:`Protected field value version`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},entity_relationship:{token:`entity_relationship`,schema:`platform`,table:`entity_relationships`,label:`Entity relationship`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},entity_type:{token:`entity_type`,schema:`platform`,table:`entity_types`,label:`Entity type`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},esign_campaign:{token:`esign_campaign`,schema:`esign`,table:`campaign`,label:`Signature campaign`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},esign_campaign_member:{token:`esign_campaign_member`,schema:`esign`,table:`campaign_member`,label:`Campaign member`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},esign_consent_disclosure:{token:`esign_consent_disclosure`,schema:`esign`,table:`consent_disclosure`,label:`E-sign consent disclosure`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},esign_envelope:{token:`esign_envelope`,schema:`esign`,table:`envelope`,label:`Signature envelope`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},esign_envelope_certificate:{token:`esign_envelope_certificate`,schema:`esign`,table:`envelope_certificate`,label:`Completion certificate`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},esign_envelope_document:{token:`esign_envelope_document`,schema:`esign`,table:`envelope_document`,label:`Envelope document`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},esign_envelope_event:{token:`esign_envelope_event`,schema:`esign`,table:`envelope_event`,label:`Envelope event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},esign_envelope_external_ref:{token:`esign_envelope_external_ref`,schema:`esign`,table:`envelope_external_ref`,label:`Envelope external reference`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},esign_envelope_signer:{token:`esign_envelope_signer`,schema:`esign`,table:`envelope_signer`,label:`Envelope signer`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},esign_provider:{token:`esign_provider`,schema:`esign`,table:`provider`,label:`E-sign provider`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},esign_provider_binding:{token:`esign_provider_binding`,schema:`esign`,table:`provider_binding`,label:`E-sign provider binding`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},esign_signing_key:{token:`esign_signing_key`,schema:`esign`,table:`signing_key`,label:`E-sign certificate signing key`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},execution_event_cursor:{token:`execution_event_cursor`,schema:`runtime`,table:`execution_event_cursor`,label:`Execution event cursor`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},extension_auth_code:{token:`extension_auth_code`,schema:`extend`,table:`extension_auth_codes`,label:`Extension auth code`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},external_link:{token:`external_link`,schema:`custom`,table:`external_link`,label:`External Link`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},external_source:{token:`external_source`,schema:`custom`,table:`external_source`,label:`External Source`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},extract_sweep_state:{token:`extract_sweep_state`,schema:`workflow`,table:`extract_sweep_state`,label:`Extract sweep state`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},fc_card:{token:`fc_card`,schema:`education`,table:`fc_card`,label:`Flashcard`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`front`,contentRole:null,referenceCategory:null},fc_detail:{token:`fc_detail`,schema:`education`,table:`fc_detail`,label:`Flashcard Detail`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},fc_set:{token:`fc_set`,schema:`education`,table:`fc_set`,label:`Flashcard Deck`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},feature_doc:{token:`feature_doc`,schema:`admin`,table:`feature_docs`,label:`Feature Doc`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`documentation`,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},feature_knob:{token:`feature_knob`,schema:`platform`,table:`feature_knob`,label:`Feature Knob`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},feedback_comments:{token:`feedback_comments`,schema:`users`,table:`feedback_comments`,label:`Feedback Comments`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},feedback_user_messages:{token:`feedback_user_messages`,schema:`users`,table:`feedback_user_messages`,label:`Feedback User Messages`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},file:{token:`file`,schema:`files`,table:`files`,label:`File`,baseTier:1,isComponent:!1,isModule:!0,isListed:!1,scopeable:!0,category:`Sources`,referencePickable:!0,titleColumn:`file_name`,contentRole:`source`,referenceCategory:null},file_analysis:{token:`file_analysis`,schema:`files`,table:`analysis`,label:`File Analysis`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},file_entities:{token:`file_entities`,schema:`files`,table:`entities`,label:`Extracted Term`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`label`,contentRole:null,referenceCategory:null},file_overrides:{token:`file_overrides`,schema:`files`,table:`overrides`,label:`File Override`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},file_page_annotations:{token:`file_page_annotations`,schema:`files`,table:`page_annotations`,label:`Page Annotation`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`label`,contentRole:null,referenceCategory:null},file_pages:{token:`file_pages`,schema:`files`,table:`pages`,label:`File Page`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},file_rag_job:{token:`file_rag_job`,schema:`files`,table:`file_rag_jobs`,label:`File RAG job`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},file_version:{token:`file_version`,schema:`files`,table:`file_versions`,label:`File Version`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:`Sources`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},files_account_tier:{token:`files_account_tier`,schema:`files`,table:`account_tiers`,label:`File account tier`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},files_machine_written_prefix:{token:`files_machine_written_prefix`,schema:`files`,table:`machine_written_prefixes`,label:`Machine-Written Prefix`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},files_sync_mapping:{token:`files_sync_mapping`,schema:`files`,table:`sync_mappings`,label:`Sync Mapping`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},files_user_account:{token:`files_user_account`,schema:`files`,table:`user_account`,label:`File account`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},flexible_data:{token:`flexible_data`,schema:`platform`,table:`flexible_data`,label:`Flexible Data`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`label`,contentRole:null,referenceCategory:null},folder:{token:`folder`,schema:`files`,table:`folders`,label:`Folder`,baseTier:1,isComponent:!1,isModule:!0,isListed:!1,scopeable:!0,category:`Sources`,referencePickable:!0,titleColumn:`folder_name`,contentRole:`source`,referenceCategory:null},function_contract:{token:`function_contract`,schema:`hr`,table:`function_contract`,label:`Function Contract`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},game_badge:{token:`game_badge`,schema:`education`,table:`game_badge`,label:`Game Badge`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},game_result:{token:`game_result`,schema:`education`,table:`game_result`,label:`Game Result`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`display_name`,contentRole:null,referenceCategory:null},game_room:{token:`game_room`,schema:`education`,table:`game_room`,label:`Game Room`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},global_execution:{token:`global_execution`,schema:`runtime`,table:`global_execution`,label:`Runtime Execution`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},global_execution_checkpoint:{token:`global_execution_checkpoint`,schema:`runtime`,table:`global_execution_checkpoint`,label:`Runtime Checkpoint`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},global_execution_control:{token:`global_execution_control`,schema:`runtime`,table:`global_execution_control`,label:`Global execution control`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},global_execution_event:{token:`global_execution_event`,schema:`runtime`,table:`global_execution_event`,label:`Runtime Event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},global_meter_entry:{token:`global_meter_entry`,schema:`runtime`,table:`global_meter_entry`,label:`Runtime Meter Entry`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`label`,contentRole:null,referenceCategory:null},global_origin:{token:`global_origin`,schema:`runtime`,table:`global_origin`,label:`Runtime Origin`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},global_request:{token:`global_request`,schema:`runtime`,table:`global_request`,label:`Runtime Request`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},google_document:{token:`google_document`,schema:`workbench`,table:`google_document`,label:`Google document`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},growth_loop_event:{token:`growth_loop_event`,schema:`growth`,table:`loop_event`,label:`Growth Loop Event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},growth_loop_run:{token:`growth_loop_run`,schema:`growth`,table:`loop_run`,label:`Growth Loop Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:`label`,contentRole:null,referenceCategory:null},growth_loop_stage_run:{token:`growth_loop_stage_run`,schema:`growth`,table:`loop_stage_run`,label:`Growth Loop Stage Run`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},guardian_link:{token:`guardian_link`,schema:`education`,table:`guardian_link`,label:`Guardian link`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},guest_conversion_audit:{token:`guest_conversion_audit`,schema:`users`,table:`guest_conversion_audit`,label:`Guest conversion audit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},guest_execution_log:{token:`guest_execution_log`,schema:`users`,table:`guest_execution_log`,label:`Guest Execution Log`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},guest_executions:{token:`guest_executions`,schema:`users`,table:`guest_executions`,label:`Guest Executions`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},guided_checklist_run:{token:`guided_checklist_run`,schema:`platform`,table:`guided_checklist_run`,label:`Guided Checklist Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},heatmap_save:{token:`heatmap_save`,schema:`workbench`,table:`heatmap_saves`,label:`Heatmap Save`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},hindsight_enrollment:{token:`hindsight_enrollment`,schema:`hindsight`,table:`enrollment`,label:`Hindsight Enrollment`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`display_name`,contentRole:null,referenceCategory:null},hindsight_finding:{token:`hindsight_finding`,schema:`hindsight`,table:`finding`,label:`Hindsight Finding`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hindsight_regression_case:{token:`hindsight_regression_case`,schema:`hindsight`,table:`regression_case`,label:`Regression Case`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hindsight_replay:{token:`hindsight_replay`,schema:`hindsight`,table:`replay`,label:`Hindsight Replay`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hindsight_replay_step:{token:`hindsight_replay_step`,schema:`hindsight`,table:`replay_step`,label:`Wire Replay Step`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hindsight_review:{token:`hindsight_review`,schema:`hindsight`,table:`review`,label:`Hindsight Review`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_access_audit:{token:`hr_access_audit`,schema:`hr`,table:`access_audit`,label:`Access audit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_access_role:{token:`hr_access_role`,schema:`hr`,table:`access_role`,label:`HR access role`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`label`,contentRole:null,referenceCategory:null},hr_accommodation_request:{token:`hr_accommodation_request`,schema:`hr`,table:`accommodation_request`,label:`Accommodation request`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_ai_evidence:{token:`hr_ai_evidence`,schema:`hr`,table:`ai_evidence`,label:`AI evidence`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_alert_routing_rule:{token:`hr_alert_routing_rule`,schema:`hr`,table:`alert_routing_rule`,label:`Alert routing rule`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_application:{token:`hr_application`,schema:`hr`,table:`application`,label:`Application`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_approval_authority:{token:`hr_approval_authority`,schema:`hr`,table:`approval_authority`,label:`Approval authority`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_approval_delegation:{token:`hr_approval_delegation`,schema:`hr`,table:`approval_delegation`,label:`Approval delegation`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_asset:{token:`hr_asset`,schema:`hr`,table:`asset`,label:`Asset`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_asset_assignment:{token:`hr_asset_assignment`,schema:`hr`,table:`asset_assignment`,label:`Asset assignment`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_attendance_exception:{token:`hr_attendance_exception`,schema:`hr`,table:`attendance_exception`,label:`Attendance exception`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_auto_close_rule:{token:`hr_auto_close_rule`,schema:`hr`,table:`auto_close_rule`,label:`Auto-close rule`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_availability:{token:`hr_availability`,schema:`hr`,table:`availability`,label:`Availability`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_background_check:{token:`hr_background_check`,schema:`hr`,table:`background_check`,label:`Background check`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_benefits_event:{token:`hr_benefits_event`,schema:`hr`,table:`benefits_event`,label:`Benefits event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_calculation_snapshot:{token:`hr_calculation_snapshot`,schema:`hr`,table:`calculation_snapshot`,label:`Calculation snapshot`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_candidate:{token:`hr_candidate`,schema:`hr`,table:`candidate`,label:`Candidate`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`preferred_name`,contentRole:null,referenceCategory:null},hr_candidate_conversion:{token:`hr_candidate_conversion`,schema:`hr`,table:`candidate_conversion`,label:`Candidate conversion`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_candidate_message:{token:`hr_candidate_message`,schema:`hr`,table:`candidate_message`,label:`Candidate message`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_careers_portal:{token:`hr_careers_portal`,schema:`hr`,table:`careers_portal`,label:`Careers portal`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`display_name`,contentRole:null,referenceCategory:null},hr_checklist_item:{token:`hr_checklist_item`,schema:`hr`,table:`checklist_item`,label:`Checklist item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_checklist_run:{token:`hr_checklist_run`,schema:`hr`,table:`checklist_run`,label:`Checklist run`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_checklist_template:{token:`hr_checklist_template`,schema:`hr`,table:`checklist_template`,label:`Checklist template`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_checklist_template_item:{token:`hr_checklist_template_item`,schema:`hr`,table:`checklist_template_item`,label:`Checklist template item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_compensation:{token:`hr_compensation`,schema:`hr`,table:`compensation`,label:`Compensation record`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_corrective_action:{token:`hr_corrective_action`,schema:`hr`,table:`corrective_action`,label:`Corrective action`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_course:{token:`hr_course`,schema:`hr`,table:`course`,label:`Course`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},hr_course_version:{token:`hr_course_version`,schema:`hr`,table:`course_version`,label:`Course version`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_credential:{token:`hr_credential`,schema:`hr`,table:`credential`,label:`Credential`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_crew:{token:`hr_crew`,schema:`hr`,table:`crew`,label:`Crew`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_deduction_code:{token:`hr_deduction_code`,schema:`hr`,table:`deduction_code`,label:`Deduction code`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_department:{token:`hr_department`,schema:`hr`,table:`department`,label:`Department`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_derived_grant:{token:`hr_derived_grant`,schema:`hr`,table:`derived_grant`,label:`Derived grant`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_disposition_event:{token:`hr_disposition_event`,schema:`hr`,table:`disposition_event`,label:`Disposition event`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_earning_code:{token:`hr_earning_code`,schema:`hr`,table:`earning_code`,label:`Earning code`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_eeo_response:{token:`hr_eeo_response`,schema:`hr`,table:`eeo_response`,label:`EEO self-identification response`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_emergency_contact:{token:`hr_emergency_contact`,schema:`hr`,table:`emergency_contact`,label:`Emergency contact`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_employee:{token:`hr_employee`,schema:`hr`,table:`employee`,label:`Employee`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`display_name`,contentRole:`container`,referenceCategory:null},hr_employee_private:{token:`hr_employee_private`,schema:`hr`,table:`employee_private`,label:`Employee private record`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_employer_profile:{token:`hr_employer_profile`,schema:`hr`,table:`employer_profile`,label:`Employer profile`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`legal_name`,contentRole:null,referenceCategory:null},hr_employment:{token:`hr_employment`,schema:`hr`,table:`employment`,label:`Employment spell`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_employment_pin:{token:`hr_employment_pin`,schema:`hr`,table:`employment_pin`,label:`Employment PIN`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_engagement:{token:`hr_engagement`,schema:`hr`,table:`engagement`,label:`Engagement`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_establishment:{token:`hr_establishment`,schema:`hr`,table:`establishment`,label:`Establishment`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_external_identity:{token:`hr_external_identity`,schema:`hr`,table:`external_identity`,label:`External identity`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_field_policy:{token:`hr_field_policy`,schema:`hr`,table:`field_policy`,label:`Self-service field policy`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_holiday:{token:`hr_holiday`,schema:`hr`,table:`holiday`,label:`Holiday`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_holiday_calendar:{token:`hr_holiday_calendar`,schema:`hr`,table:`holiday_calendar`,label:`Holiday calendar`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_i9:{token:`hr_i9`,schema:`hr`,table:`i9`,label:`Form I-9`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_i9_document:{token:`hr_i9_document`,schema:`hr`,table:`i9_document`,label:`I-9 document`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_incident:{token:`hr_incident`,schema:`hr`,table:`incident`,label:`Incident`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_incident_party:{token:`hr_incident_party`,schema:`hr`,table:`incident_party`,label:`Incident party`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_interview:{token:`hr_interview`,schema:`hr`,table:`interview`,label:`Interview`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_interview_kit:{token:`hr_interview_kit`,schema:`hr`,table:`interview_kit`,label:`Interview kit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_job_title:{token:`hr_job_title`,schema:`hr`,table:`job_title`,label:`Job title`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},hr_jurisdiction:{token:`hr_jurisdiction`,schema:`hr`,table:`jurisdiction`,label:`Jurisdiction`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_jurisdiction_rule:{token:`hr_jurisdiction_rule`,schema:`hr`,table:`jurisdiction_rule`,label:`Jurisdiction rule`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_jurisdiction_rule_class:{token:`hr_jurisdiction_rule_class`,schema:`hr`,table:`jurisdiction_rule_class`,label:`Jurisdiction rule class`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`label`,contentRole:null,referenceCategory:null},hr_jurisdiction_rule_org_decision:{token:`hr_jurisdiction_rule_org_decision`,schema:`hr`,table:`jurisdiction_rule_org_decision`,label:`Jurisdiction rule org decision`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_jurisdiction_rule_test:{token:`hr_jurisdiction_rule_test`,schema:`hr`,table:`jurisdiction_rule_test`,label:`Jurisdiction rule fixture`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},hr_kiosk_device:{token:`hr_kiosk_device`,schema:`hr`,table:`kiosk_device`,label:`Kiosk device`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_kiosk_session:{token:`hr_kiosk_session`,schema:`hr`,table:`kiosk_session`,label:`Kiosk session`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_labor_target:{token:`hr_labor_target`,schema:`hr`,table:`labor_target`,label:`Labor target`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_leave_case:{token:`hr_leave_case`,schema:`hr`,table:`leave_case`,label:`Leave case`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_leave_enrollment:{token:`hr_leave_enrollment`,schema:`hr`,table:`leave_enrollment`,label:`Leave enrollment`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_leave_ledger:{token:`hr_leave_ledger`,schema:`hr`,table:`leave_ledger`,label:`Leave ledger entry`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_leave_policy:{token:`hr_leave_policy`,schema:`hr`,table:`leave_policy`,label:`Leave policy`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_leave_request:{token:`hr_leave_request`,schema:`hr`,table:`leave_request`,label:`Leave request`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_legal_hold:{token:`hr_legal_hold`,schema:`hr`,table:`legal_hold`,label:`Legal hold`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`matter_name`,contentRole:null,referenceCategory:null},hr_legal_hold_item:{token:`hr_legal_hold_item`,schema:`hr`,table:`legal_hold_item`,label:`Legal hold item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_location:{token:`hr_location`,schema:`hr`,table:`location`,label:`Location`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_new_hire_report:{token:`hr_new_hire_report`,schema:`hr`,table:`new_hire_report`,label:`New hire report`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_offer:{token:`hr_offer`,schema:`hr`,table:`offer`,label:`Offer`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_opening:{token:`hr_opening`,schema:`hr`,table:`opening`,label:`Opening`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_overtime_alert:{token:`hr_overtime_alert`,schema:`hr`,table:`overtime_alert`,label:`Overtime alert`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_overtime_alert_rule:{token:`hr_overtime_alert_rule`,schema:`hr`,table:`overtime_alert_rule`,label:`Overtime alert rule`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_overtime_preapproval:{token:`hr_overtime_preapproval`,schema:`hr`,table:`overtime_preapproval`,label:`Overtime pre-approval`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_pay_group:{token:`hr_pay_group`,schema:`hr`,table:`pay_group`,label:`Pay group`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_pay_period:{token:`hr_pay_period`,schema:`hr`,table:`pay_period`,label:`Pay period`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_pay_period_employment:{token:`hr_pay_period_employment`,schema:`hr`,table:`pay_period_employment`,label:`Pay period timesheet`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_payroll_export:{token:`hr_payroll_export`,schema:`hr`,table:`payroll_export`,label:`Payroll export`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_payroll_export_line:{token:`hr_payroll_export_line`,schema:`hr`,table:`payroll_export_line`,label:`Payroll export line`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_position_assignment:{token:`hr_position_assignment`,schema:`hr`,table:`position_assignment`,label:`Position assignment`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_posting:{token:`hr_posting`,schema:`hr`,table:`posting`,label:`Job posting`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},hr_posting_publication:{token:`hr_posting_publication`,schema:`hr`,table:`posting_publication`,label:`Posting publication`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_provider_binding:{token:`hr_provider_binding`,schema:`hr`,table:`provider_binding`,label:`Provider binding`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_provider_event:{token:`hr_provider_event`,schema:`hr`,table:`provider_event`,label:`Provider seam event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_provisioning_result:{token:`hr_provisioning_result`,schema:`hr`,table:`provisioning_result`,label:`Provisioning result`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_punch:{token:`hr_punch`,schema:`hr`,table:`punch`,label:`Punch`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_recalculation_batch:{token:`hr_recalculation_batch`,schema:`hr`,table:`recalculation_batch`,label:`Recalculation batch`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_record_class:{token:`hr_record_class`,schema:`hr`,table:`record_class`,label:`Record class`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`label`,contentRole:null,referenceCategory:null},hr_records_request:{token:`hr_records_request`,schema:`hr`,table:`records_request`,label:`Records request`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_reference_check:{token:`hr_reference_check`,schema:`hr`,table:`reference_check`,label:`Reference check`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_reporting_line:{token:`hr_reporting_line`,schema:`hr`,table:`reporting_line`,label:`Reporting line`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_requisition:{token:`hr_requisition`,schema:`hr`,table:`requisition`,label:`Requisition`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`requisition_number`,contentRole:null,referenceCategory:null},hr_restricted_note:{token:`hr_restricted_note`,schema:`hr`,table:`restricted_note`,label:`Restricted note`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_retention_rule:{token:`hr_retention_rule`,schema:`hr`,table:`retention_rule`,label:`Retention rule`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_role_assignment:{token:`hr_role_assignment`,schema:`hr`,table:`role_assignment`,label:`HR role assignment`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_schedule:{token:`hr_schedule`,schema:`hr`,table:`schedule`,label:`Schedule`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_schedule_change:{token:`hr_schedule_change`,schema:`hr`,table:`schedule_change`,label:`Schedule change`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_schedule_guidance:{token:`hr_schedule_guidance`,schema:`hr`,table:`schedule_guidance`,label:`Schedule guidance`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},hr_schedule_template:{token:`hr_schedule_template`,schema:`hr`,table:`schedule_template`,label:`Schedule template`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_schedule_template_shift:{token:`hr_schedule_template_shift`,schema:`hr`,table:`schedule_template_shift`,label:`Schedule template shift`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_scorecard:{token:`hr_scorecard`,schema:`hr`,table:`scorecard`,label:`Scorecard`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_separation:{token:`hr_separation`,schema:`hr`,table:`separation`,label:`Separation`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_shift:{token:`hr_shift`,schema:`hr`,table:`shift`,label:`Shift`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_shift_claim:{token:`hr_shift_claim`,schema:`hr`,table:`shift_claim`,label:`Shift claim`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_staffing_requirement:{token:`hr_staffing_requirement`,schema:`hr`,table:`staffing_requirement`,label:`Staffing requirement`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_survey:{token:`hr_survey`,schema:`hr`,table:`survey`,label:`Survey`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},hr_survey_invitation:{token:`hr_survey_invitation`,schema:`hr`,table:`survey_invitation`,label:`Survey invitation`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_survey_question:{token:`hr_survey_question`,schema:`hr`,table:`survey_question`,label:`Survey question`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_survey_response:{token:`hr_survey_response`,schema:`hr`,table:`survey_response`,label:`Survey response`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_tax_registration:{token:`hr_tax_registration`,schema:`hr`,table:`tax_registration`,label:`Tax registration`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_tax_withholding:{token:`hr_tax_withholding`,schema:`hr`,table:`tax_withholding`,label:`Tax withholding certificate`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_time_adjustment:{token:`hr_time_adjustment`,schema:`hr`,table:`time_adjustment`,label:`Time adjustment`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_training_assignment:{token:`hr_training_assignment`,schema:`hr`,table:`training_assignment`,label:`Training assignment`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_training_attempt:{token:`hr_training_attempt`,schema:`hr`,table:`training_attempt`,label:`Training attempt`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_transcript_entry:{token:`hr_transcript_entry`,schema:`hr`,table:`transcript_entry`,label:`Transcript entry`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_verification_letter_request:{token:`hr_verification_letter_request`,schema:`hr`,table:`verification_letter_request`,label:`Verification letter request`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_work_interval:{token:`hr_work_interval`,schema:`hr`,table:`work_interval`,label:`Work interval`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_workflow_binding:{token:`hr_workflow_binding`,schema:`hr`,table:`workflow_binding`,label:`HR Workflow Binding`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_workflow_decision:{token:`hr_workflow_decision`,schema:`hr`,table:`workflow_decision`,label:`HR Workflow Decision`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_workflow_definition:{token:`hr_workflow_definition`,schema:`hr`,table:`workflow_definition`,label:`HR Workflow Definition`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_workflow_event:{token:`hr_workflow_event`,schema:`hr`,table:`workflow_event`,label:`HR Workflow Event`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_workflow_failure:{token:`hr_workflow_failure`,schema:`hr`,table:`workflow_failure`,label:`HR Workflow Failure`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_workflow_flow_type:{token:`hr_workflow_flow_type`,schema:`hr`,table:`workflow_flow_type`,label:`HR Workflow Flow Type`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_workflow_instance:{token:`hr_workflow_instance`,schema:`hr`,table:`workflow_instance`,label:`HR Workflow Instance`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_workflow_step:{token:`hr_workflow_step`,schema:`hr`,table:`workflow_step`,label:`HR Workflow Step`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_workflow_step_definition:{token:`hr_workflow_step_definition`,schema:`hr`,table:`workflow_step_definition`,label:`HR Workflow Step Definition`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},hr_workweek:{token:`hr_workweek`,schema:`hr`,table:`workweek`,label:`Workweek`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},html_extraction:{token:`html_extraction`,schema:`api`,table:`html_extractions`,label:`HTML extraction`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},iam_access_audit:{token:`iam_access_audit`,schema:`iam`,table:`access_audit`,label:`Access audit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},iam_api_key:{token:`iam_api_key`,schema:`iam`,table:`api_keys`,label:`API Key`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},iam_emergency_door_request:{token:`iam_emergency_door_request`,schema:`iam`,table:`emergency_door_request`,label:`Emergency access request`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},iam_org_availability_key:{token:`iam_org_availability_key`,schema:`iam`,table:`_org_availability_key`,label:`Organization availability key`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},iam_read_lane_v2_rollout:{token:`iam_read_lane_v2_rollout`,schema:`iam`,table:`read_lane_v2_rollout`,label:`Read lane v2 rollout`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},idempotency:{token:`idempotency`,schema:`files`,table:`idempotency`,label:`Idempotency`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},industry:{token:`industry`,schema:`iam`,table:`industries`,label:`Industry`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},industry_curator:{token:`industry_curator`,schema:`iam`,table:`industry_curators`,label:`Industry Curator`,baseTier:2,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},infra_status:{token:`infra_status`,schema:`public`,table:`infra_status`,label:`Infra status`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ingest_runs:{token:`ingest_runs`,schema:`legal`,table:`ingest_runs`,label:`Ingest Runs`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},integration_connection:{token:`integration_connection`,schema:`users`,table:`integration_connections`,label:`Integration connection`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},integration_connection_resource:{token:`integration_connection_resource`,schema:`users`,table:`integration_connection_resources`,label:`Integration connection resource`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},interview_decision_interview:{token:`interview_decision_interview`,schema:`interview`,table:`decision_interview`,label:`Decision Interview`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},interview_decision_question:{token:`interview_decision_question`,schema:`interview`,table:`decision_question`,label:`Decision Question`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},interview_document_revision:{token:`interview_document_revision`,schema:`interview`,table:`document_revision`,label:`Interview Document Revision`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},interview_hole:{token:`interview_hole`,schema:`interview`,table:`hole`,label:`Interview Adversary Hole`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},interview_question:{token:`interview_question`,schema:`interview`,table:`question`,label:`Interview Open Question`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},interview_session:{token:`interview_session`,schema:`interview`,table:`session`,label:`Vision Interview Session`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},interview_turn:{token:`interview_turn`,schema:`interview`,table:`turn`,label:`Interview Turn`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},invitation:{token:`invitation`,schema:`iam`,table:`invitations`,label:`Invitation`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},invitation_code:{token:`invitation_code`,schema:`users`,table:`invitation_codes`,label:`Invitation Code`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},invitation_request:{token:`invitation_request`,schema:`users`,table:`invitation_requests`,label:`Invitation Request`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},io_comment:{token:`io_comment`,schema:`custom`,table:`io_comment`,label:`Record comment`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},io_contract:{token:`io_contract`,schema:`content_ir`,table:`io_contract`,label:`Io Contract`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},io_import:{token:`io_import`,schema:`custom`,table:`io_import`,label:`Import run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},io_outbox:{token:`io_outbox`,schema:`custom`,table:`io_outbox`,label:`Record change outbox`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},item:{token:`item`,schema:`assignment`,table:`item`,label:`Item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},item_mastery:{token:`item_mastery`,schema:`education`,table:`item_mastery`,label:`Item Mastery`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},judge_verdict:{token:`judge_verdict`,schema:`platform`,table:`judge_verdict`,label:`Judge Verdict`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},jurisdiction_policy:{token:`jurisdiction_policy`,schema:`crm`,table:`jurisdiction_policy`,label:`Jurisdiction policy`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},keyword_classification_queue:{token:`keyword_classification_queue`,schema:`seo`,table:`keyword_classification_queue`,label:`Keyword Classification Queue`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},kg_alert:{token:`kg_alert`,schema:`rag`,table:`kg_alerts`,label:`KG Alert`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},kg_chunk_entities:{token:`kg_chunk_entities`,schema:`rag`,table:`kg_chunk_entities`,label:`Kg Chunk Entities`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},kg_chunks:{token:`kg_chunks`,schema:`rag`,table:`kg_chunks`,label:`Kg Chunks`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},kg_clusters:{token:`kg_clusters`,schema:`rag`,table:`kg_clusters`,label:`Kg Clusters`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},kg_edges:{token:`kg_edges`,schema:`rag`,table:`kg_edges`,label:`Kg Edges`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},kg_entities:{token:`kg_entities`,schema:`rag`,table:`kg_entities`,label:`Kg Entities`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},kg_entity_aliases:{token:`kg_entity_aliases`,schema:`rag`,table:`kg_entity_aliases`,label:`Kg Entity Aliases`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},kg_suggestion_ack:{token:`kg_suggestion_ack`,schema:`rag`,table:`kg_suggestion_ack`,label:`KG Suggestion Ack`,baseTier:3,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},kg_sweep_queue:{token:`kg_sweep_queue`,schema:`rag`,table:`kg_sweep_queue`,label:`KG Sweep Queue`,baseTier:3,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},kg_sweep_run:{token:`kg_sweep_run`,schema:`rag`,table:`kg_sweep_run`,label:`KG Sweep Run`,baseTier:3,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},kg_sweep_state:{token:`kg_sweep_state`,schema:`rag`,table:`kg_sweep_state`,label:`KG Sweep State`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},kg_value_match:{token:`kg_value_match`,schema:`rag`,table:`kg_value_matches`,label:`KG Value Match`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},knob_override:{token:`knob_override`,schema:`platform`,table:`knob_override`,label:`Knob Override`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},knob_override_audit:{token:`knob_override_audit`,schema:`platform`,table:`knob_override_audit`,label:`Knob override audit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},knob_rung_lock:{token:`knob_rung_lock`,schema:`platform`,table:`knob_rung_lock`,label:`Knob Rung Lock`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},knob_scope_kind:{token:`knob_scope_kind`,schema:`platform`,table:`knob_scope_kind`,label:`Knob scope kind`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},knob_write_door:{token:`knob_write_door`,schema:`platform`,table:`knob_write_door`,label:`Knob write door`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},league_membership:{token:`league_membership`,schema:`education`,table:`league_membership`,label:`League Membership`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`display_name`,contentRole:null,referenceCategory:null},learn_doc:{token:`learn_doc`,schema:`education`,table:`learn_doc`,label:`Study Guide`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},library_doc:{token:`library_doc`,schema:`rag`,table:`library_docs`,label:`Library Document`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},lifecycle_archive:{token:`lifecycle_archive`,schema:`platform`,table:`lifecycle_archive`,label:`Lifecycle archive`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},lifecycle_archive_row:{token:`lifecycle_archive_row`,schema:`platform`,table:`lifecycle_archive_row`,label:`Lifecycle archive row`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},lifecycle_audit:{token:`lifecycle_audit`,schema:`platform`,table:`lifecycle_audit`,label:`Lifecycle audit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},lifecycle_entity_plan:{token:`lifecycle_entity_plan`,schema:`platform`,table:`lifecycle_entity_plan`,label:`Lifecycle entity plan`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},lifecycle_map_build:{token:`lifecycle_map_build`,schema:`platform`,table:`lifecycle_map_build`,label:`Lifecycle map build`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},lifecycle_reference_map:{token:`lifecycle_reference_map`,schema:`platform`,table:`lifecycle_reference_map`,label:`Lifecycle reference map`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},lifecycle_run:{token:`lifecycle_run`,schema:`platform`,table:`lifecycle_run`,label:`Lifecycle run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},lifecycle_tier_ledger:{token:`lifecycle_tier_ledger`,schema:`platform`,table:`lifecycle_tier_ledger`,label:`Lifecycle tier ledger`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},location:{token:`location`,schema:`seo`,table:`location`,label:`Location`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mandate:{token:`mandate`,schema:`mandate`,table:`definition`,label:`Mandate`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`label`,contentRole:null,referenceCategory:null},mandate_advance_batch_row:{token:`mandate_advance_batch_row`,schema:`mandate`,table:`advance_batch_row`,label:`Pin advance batch row`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mandate_binding:{token:`mandate_binding`,schema:`mandate`,table:`binding`,label:`Mandate Binding (new)`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mandate_candidate:{token:`mandate_candidate`,schema:`mandate`,table:`candidate`,label:`Mandate Candidate`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mandate_candidate_run:{token:`mandate_candidate_run`,schema:`mandate`,table:`candidate_run`,label:`Mandate Candidate Run`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mandate_candidate_run_payload:{token:`mandate_candidate_run_payload`,schema:`mandate`,table:`candidate_run_payload`,label:`Mandate Candidate Run Payload`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mandate_goal_clauses:{token:`mandate_goal_clauses`,schema:`mandate`,table:`goal_clauses`,label:`Mandate Goal Clauses`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mandate_observation:{token:`mandate_observation`,schema:`mandate`,table:`observation`,label:`Mandate Observation`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mandate_reference:{token:`mandate_reference`,schema:`mandate`,table:`reference`,label:`Mandate Reference`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mandate_scan:{token:`mandate_scan`,schema:`mandate`,table:`scan`,label:`Mandate Scan`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mandate_treatment:{token:`mandate_treatment`,schema:`mandate`,table:`treatment`,label:`Mandate Treatment (new)`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},marketing_initiative:{token:`marketing_initiative`,schema:`marketing`,table:`initiative`,label:`Initiative`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:`container`,referenceCategory:null},masterwork_corpus_item:{token:`masterwork_corpus_item`,schema:`platform`,table:`masterwork_corpus_item`,label:`Masterwork Corpus Piece`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},masterwork_run:{token:`masterwork_run`,schema:`platform`,table:`masterwork_run`,label:`Masterwork Run`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Masterwork`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},masterwork_run_kind:{token:`masterwork_run_kind`,schema:`platform`,table:`masterwork_run_kind`,label:`Masterwork Run Kind`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},masterwork_source:{token:`masterwork_source`,schema:`platform`,table:`masterwork_source`,label:`Masterwork Source`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},math_course_structure:{token:`math_course_structure`,schema:`education`,table:`math_course_structure`,label:`Math Course Structure`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},math_problem:{token:`math_problem`,schema:`education`,table:`math_problems`,label:`Math problem`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},matrx_action_ledger:{token:`matrx_action_ledger`,schema:`platform`,table:`matrx_action_ledger`,label:`Action ledger`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mcp_config:{token:`mcp_config`,schema:`tool`,table:`mcp_config`,label:`MCP config`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mcp_server:{token:`mcp_server`,schema:`tool`,table:`mcp_server`,label:`MCP server`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mcp_user_conn:{token:`mcp_user_conn`,schema:`tool`,table:`mcp_user_conn`,label:`MCP user connection`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},media_capture_handoff:{token:`media_capture_handoff`,schema:`media`,table:`capture_handoff`,label:`Capture Handoff`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},media_catalog_setting:{token:`media_catalog_setting`,schema:`media`,table:`catalog_setting`,label:`Media Catalog Setting`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},media_library_item:{token:`media_library_item`,schema:`media`,table:`library_item`,label:`Library Item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},media_selection_item:{token:`media_selection_item`,schema:`media`,table:`selection_item`,label:`Selection Item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},media_selection_job:{token:`media_selection_job`,schema:`media`,table:`selection_job`,label:`Selection Job`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},media_source_library:{token:`media_source_library`,schema:`media`,table:`source_library`,label:`Source Library`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},meet_call_invite:{token:`meet_call_invite`,schema:`communication`,table:`meet_call_invites`,label:`Call Invite`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},meet_chat_message:{token:`meet_chat_message`,schema:`communication`,table:`meet_chat_messages`,label:`Meeting Chat Message`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},meet_invitee:{token:`meet_invitee`,schema:`communication`,table:`meet_invitees`,label:`Meeting Invitee`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},meet_meeting:{token:`meet_meeting`,schema:`communication`,table:`meet_meetings`,label:`Meeting`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},meet_note:{token:`meet_note`,schema:`communication`,table:`meet_notes`,label:`Meeting Note`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},meet_occurrence_override:{token:`meet_occurrence_override`,schema:`communication`,table:`meet_occurrence_overrides`,label:`Meeting Occurrence Override`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},meet_participant:{token:`meet_participant`,schema:`communication`,table:`meet_participants`,label:`Meeting Participant`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},meet_recording:{token:`meet_recording`,schema:`communication`,table:`meet_recordings`,label:`Meeting Recording`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},meet_transcript_segment:{token:`meet_transcript_segment`,schema:`communication`,table:`meet_transcript_segments`,label:`Meeting Transcript Segment`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},membership:{token:`membership`,schema:`iam`,table:`memberships`,label:`Membership`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},membership_grant:{token:`membership_grant`,schema:`iam`,table:`membership_grant`,label:`Membership Grant`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},merge_field_provenance:{token:`merge_field_provenance`,schema:`custom`,table:`merge_field_provenance`,label:`Merge Field Provenance`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},message:{token:`message`,schema:`chat`,table:`message`,label:`Message`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},message_template:{token:`message_template`,schema:`agent`,table:`message_template`,label:`Message Template`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`label`,contentRole:`utility`,referenceCategory:null},message_template_detail:{token:`message_template_detail`,schema:`agent`,table:`message_template_detail`,label:`Message Template Detail`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Documents`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},meta_excluded_schema:{token:`meta_excluded_schema`,schema:`meta`,table:`excluded_schema`,label:`Excluded schema`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},meta_table_stats_history:{token:`meta_table_stats_history`,schema:`meta`,table:`table_stats_history`,label:`Table stats history`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},metadata_reserved_keys:{token:`metadata_reserved_keys`,schema:`platform`,table:`metadata_reserved_keys`,label:`Metadata Reserved Keys`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},migration_log:{token:`migration_log`,schema:`history`,table:`migration_log`,label:`Migration Log`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mtx_media_heal_queue:{token:`mtx_media_heal_queue`,schema:`platform`,table:`mtx_media_heal_queue`,label:`Mtx Media Heal Queue`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},mtx_public_url_guard:{token:`mtx_public_url_guard`,schema:`platform`,table:`mtx_public_url_guard`,label:`Public URL guard`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ner_shadow:{token:`ner_shadow`,schema:`rag`,table:`ner_canonicalizer_shadow`,label:`NER Shadow`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},note:{token:`note`,schema:`workbench`,table:`notes`,label:`Note`,baseTier:1,isComponent:!1,isModule:!0,isListed:!1,scopeable:!0,category:`Sources & Outputs`,referencePickable:!0,titleColumn:`label`,contentRole:`hybrid`,referenceCategory:null},note_folder:{token:`note_folder`,schema:`workbench`,table:`note_folders`,label:`Note Folder`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},notification:{token:`notification`,schema:`communication`,table:`notification`,label:`Notification`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},notification_channel_preference:{token:`notification_channel_preference`,schema:`communication`,table:`notification_channel_preference`,label:`Notification Channel Preference`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},notification_event_override:{token:`notification_event_override`,schema:`communication`,table:`notification_event_override`,label:`Notification Event Override`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},notification_event_type:{token:`notification_event_type`,schema:`communication`,table:`notification_event_type`,label:`Notification Event Type`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},notification_preference:{token:`notification_preference`,schema:`communication`,table:`notification_preference`,label:`Notification Preference`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},notification_submission:{token:`notification_submission`,schema:`communication`,table:`notification_submission`,label:`Self notification submission`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},notify_outsider_door_baseline:{token:`notify_outsider_door_baseline`,schema:`hr`,table:`notify_outsider_door_baseline`,label:`Notify Outsider Door Baseline`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},oauth_handoff_claim:{token:`oauth_handoff_claim`,schema:`platform`,table:`_oauth_handoff_claim`,label:`Oauth Handoff Claim`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},opinion_clusters:{token:`opinion_clusters`,schema:`legal`,table:`opinion_clusters`,label:`Opinion Clusters`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},opinions:{token:`opinions`,schema:`legal`,table:`opinions`,label:`Opinions`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ops_check_item:{token:`ops_check_item`,schema:`ops`,table:`check_item`,label:`Check Item`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ops_check_run:{token:`ops_check_run`,schema:`ops`,table:`check_run`,label:`Check Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ops_db_host_sample:{token:`ops_db_host_sample`,schema:`ops`,table:`db_host_sample`,label:`Database host sample`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ops_issue_class:{token:`ops_issue_class`,schema:`ops`,table:`ops_issue_class`,label:`Ops Issue Class`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ops_issue_event:{token:`ops_issue_event`,schema:`ops`,table:`ops_issue_event`,label:`Ops Issue Event`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ops_proof_check:{token:`ops_proof_check`,schema:`ops`,table:`proof_check`,label:`Proof Check`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ops_proof_run:{token:`ops_proof_run`,schema:`ops`,table:`proof_run`,label:`Proof Run`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ops_proof_scenario:{token:`ops_proof_scenario`,schema:`ops`,table:`proof_scenario`,label:`Proof Scenario`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},org_admin_audit:{token:`org_admin_audit`,schema:`iam`,table:`org_admin_audit`,label:`Org admin audit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},org_change_policy:{token:`org_change_policy`,schema:`platform`,table:`org_change_policy`,label:`Org Change Policy`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},org_context_ledger:{token:`org_context_ledger`,schema:`platform`,table:`org_context_ledger`,label:`Org Context Ledger`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},org_industries:{token:`org_industries`,schema:`iam`,table:`org_industries`,label:`Org Industries`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},org_member_control:{token:`org_member_control`,schema:`iam`,table:`org_member_controls`,label:`Org member control`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},org_module_config:{token:`org_module_config`,schema:`platform`,table:`org_module_config`,label:`Organization module configuration`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},org_plan:{token:`org_plan`,schema:`billing`,table:`org_plan`,label:`Org Plan`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},organization:{token:`organization`,schema:`iam`,table:`organizations`,label:`Organization`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:`container`,referenceCategory:null},organization_preferences:{token:`organization_preferences`,schema:`iam`,table:`organization_preferences`,label:`Organization Preferences`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},organization_visibility_version:{token:`organization_visibility_version`,schema:`custom`,table:`organization_visibility_version`,label:`Organization Visibility Version`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},output_feedback:{token:`output_feedback`,schema:`platform`,table:`output_feedback`,label:`Output Feedback`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},outreach_acceptance:{token:`outreach_acceptance`,schema:`crm`,table:`outreach_acceptance`,label:`Outreach Acceptance`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},page_extraction_job:{token:`page_extraction_job`,schema:`docproc`,table:`page_extraction_jobs`,label:`Extraction Dataset`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},page_extraction_page_run:{token:`page_extraction_page_run`,schema:`docproc`,table:`page_extraction_page_runs`,label:`Page Extraction Page Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},page_extraction_results:{token:`page_extraction_results`,schema:`docproc`,table:`page_extraction_results`,label:`Page Extraction Results`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},page_extraction_runs:{token:`page_extraction_runs`,schema:`docproc`,table:`page_extraction_runs`,label:`Page Extraction Runs`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},page_intent_queue:{token:`page_intent_queue`,schema:`seo`,table:`page_intent_queue`,label:`Page Intent Queue`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},page_mapping_queue:{token:`page_mapping_queue`,schema:`seo`,table:`page_mapping_queue`,label:`Page Mapping Queue`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},part_config:{token:`part_config`,schema:`partman`,table:`part_config`,label:`Part Config`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},part_config_sub:{token:`part_config_sub`,schema:`partman`,table:`part_config_sub`,label:`Part Config Sub`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},party:{token:`party`,schema:`crm`,table:`party`,label:`Contact`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`display_name`,contentRole:`source`,referenceCategory:null},party_contact_point:{token:`party_contact_point`,schema:`crm`,table:`party_contact_point`,label:`Contact Point`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`label`,contentRole:null,referenceCategory:null},passkey_credential:{token:`passkey_credential`,schema:`users`,table:`passkey_credentials`,label:`Passkey credential`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},pc_article:{token:`pc_article`,schema:`podcast`,table:`pc_articles`,label:`Podcast Article`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},pc_episode:{token:`pc_episode`,schema:`podcast`,table:`pc_episodes`,label:`Podcast Episode`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},pc_show:{token:`pc_show`,schema:`podcast`,table:`pc_shows`,label:`Podcast Show`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},pc_studio_run:{token:`pc_studio_run`,schema:`podcast`,table:`pc_studio_runs`,label:`Podcast Studio Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},pc_studio_run_asset:{token:`pc_studio_run_asset`,schema:`podcast`,table:`pc_studio_run_assets`,label:`Podcast Studio Run Asset`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},pdf_consolidation_log:{token:`pdf_consolidation_log`,schema:`pdf`,table:`pdf_consolidation_log`,label:`Pdf Consolidation Log`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},pdf_redaction_audit:{token:`pdf_redaction_audit`,schema:`pdf`,table:`pdf_redaction_audits`,label:`PDF Redaction Audit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},pdf_redaction_key_escrow:{token:`pdf_redaction_key_escrow`,schema:`pdf`,table:`pdf_redaction_key_escrow`,label:`Pdf Redaction Key Escrow`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},permission_grant:{token:`permission_grant`,schema:`iam`,table:`permissions`,label:`Permission grant`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},plan_cms_fill_item:{token:`plan_cms_fill_item`,schema:`plan`,table:`cms_fill_item`,label:`CMS Fill Item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},plan_cms_fill_job:{token:`plan_cms_fill_job`,schema:`plan`,table:`cms_fill_job`,label:`CMS Fill Job`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},plan_entity:{token:`plan_entity`,schema:`plan`,table:`entity`,label:`Plan Entity`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:`label`,contentRole:null,referenceCategory:null},plan_node:{token:`plan_node`,schema:`plan`,table:`node`,label:`Plan Node`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:`label`,contentRole:null,referenceCategory:null},plan_node_artifact:{token:`plan_node_artifact`,schema:`plan`,table:`node_artifact`,label:`Plan Node Artifact`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},plan_node_step:{token:`plan_node_step`,schema:`plan`,table:`node_step`,label:`Plan Node Step`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},plan_profile:{token:`plan_profile`,schema:`plan`,table:`profile`,label:`Plan Vertical Profile`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`vertical`,contentRole:null,referenceCategory:null},platform_action_request:{token:`platform_action_request`,schema:`platform`,table:`action_request`,label:`Action Request`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_actor_session:{token:`platform_actor_session`,schema:`platform`,table:`actor_session`,label:`Actor session`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_actor_token:{token:`platform_actor_token`,schema:`platform`,table:`actor_token`,label:`Actor token`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_actor_token_event:{token:`platform_actor_token_event`,schema:`platform`,table:`actor_token_event`,label:`Actor token event`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_class_approval_by_arman:{token:`platform_class_approval_by_arman`,schema:`platform`,table:`class_approval_by_arman`,label:`Class approval by Arman`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_continued_access:{token:`platform_continued_access`,schema:`platform`,table:`continued_access`,label:`Continued Access`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_cutover_census_run:{token:`platform_cutover_census_run`,schema:`platform`,table:`cutover_census_run`,label:`Cutover census run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_cutover_evaluation_replaced:{token:`platform_cutover_evaluation_replaced`,schema:`platform`,table:`cutover_evaluation_replaced`,label:`Cutover evaluation replaced`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_cutover_evaluation_write:{token:`platform_cutover_evaluation_write`,schema:`platform`,table:`cutover_evaluation_write`,label:`Cutover evaluation write`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_cutover_seam:{token:`platform_cutover_seam`,schema:`platform`,table:`cutover_seam`,label:`Cutover seam`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_cutover_seam_measure:{token:`platform_cutover_seam_measure`,schema:`platform`,table:`cutover_seam_measure`,label:`Cutover seam measure`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_cutover_seam_press:{token:`platform_cutover_seam_press`,schema:`platform`,table:`cutover_seam_press`,label:`Cutover seam press`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_dated_change:{token:`platform_dated_change`,schema:`platform`,table:`dated_change`,label:`Dated Change`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_doors_only_pending_cutover:{token:`platform_doors_only_pending_cutover`,schema:`platform`,table:`doors_only_pending_cutover`,label:`Doors-only pending cutover`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_google_calendar_event_create_intent:{token:`platform_google_calendar_event_create_intent`,schema:`platform`,table:`_google_calendar_event_create_intent`,label:`Google calendar event create intent`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_google_task_create_intent:{token:`platform_google_task_create_intent`,schema:`platform`,table:`_google_task_create_intent`,label:`Google task create intent`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_kernel_fingerprint_record:{token:`platform_kernel_fingerprint_record`,schema:`platform`,table:`kernel_fingerprint_record`,label:`Kernel fingerprint record`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_outcome_event:{token:`platform_outcome_event`,schema:`platform`,table:`outcome_event`,label:`Outcome Event`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_outsider_consumer:{token:`platform_outsider_consumer`,schema:`platform`,table:`outsider_consumer`,label:`Outsider consumer`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_provision_base_contract_pending:{token:`platform_provision_base_contract_pending`,schema:`platform`,table:`provision_base_contract_pending`,label:`Provision base contract pending`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_reachability:{token:`platform_reachability`,schema:`platform`,table:`reachability`,label:`Reachability`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_reachability_rebuild_pending:{token:`platform_reachability_rebuild_pending`,schema:`platform`,table:`reachability_rebuild_pending`,label:`Reachability rebuild pending`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_realtime_topic_prefix:{token:`platform_realtime_topic_prefix`,schema:`platform`,table:`realtime_topic_prefix`,label:`Realtime topic prefix`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_reference_category:{token:`platform_reference_category`,schema:`platform`,table:`reference_categories`,label:`Reference category`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_reference_declaration:{token:`platform_reference_declaration`,schema:`platform`,table:`reference_declaration`,label:`Reference declaration`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_repo:{token:`platform_repo`,schema:`platform`,table:`repo`,label:`Repository`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_saved_view:{token:`platform_saved_view`,schema:`platform`,table:`saved_view`,label:`Saved view`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_schema:{token:`platform_schema`,schema:`platform`,table:`schemas`,label:`Schema`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_secure_delivery:{token:`platform_secure_delivery`,schema:`platform`,table:`secure_delivery`,label:`Secure Delivery`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_share_link:{token:`platform_share_link`,schema:`platform`,table:`share_links`,label:`Share link`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},platform_strict_class_probe:{token:`platform_strict_class_probe`,schema:`platform`,table:`strict_class_probe`,label:`Strict class probe`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},podcast_race:{token:`podcast_race`,schema:`podcast`,table:`pc_race`,label:`Podcast Race Episode`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},position:{token:`position`,schema:`agent`,table:`position`,label:`Position`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},processed_document:{token:`processed_document`,schema:`docproc`,table:`processed_documents`,label:`Source`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:`source`,referenceCategory:null},processed_document_page:{token:`processed_document_page`,schema:`docproc`,table:`processed_document_pages`,label:`Processed document page`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},product_capture_file:{token:`product_capture_file`,schema:`workbench`,table:`product_capture_file`,label:`Product Capture File`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},product_capture_item:{token:`product_capture_item`,schema:`workbench`,table:`product_capture_item`,label:`Product Capture Item`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},product_capture_payload:{token:`product_capture_payload`,schema:`workbench`,table:`product_capture_payload`,label:`Product Capture Payload`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},product_capture_product:{token:`product_capture_product`,schema:`workbench`,table:`product_capture_product`,label:`Product Capture Product`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},product_capture_question:{token:`product_capture_question`,schema:`workbench`,table:`product_capture_question`,label:`Product Capture Question`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},project:{token:`project`,schema:`projects`,table:`projects`,label:`Project`,baseTier:1,isComponent:!1,isModule:!0,isListed:!1,scopeable:!0,category:`Workspaces`,referencePickable:!0,titleColumn:`name`,contentRole:`container`,referenceCategory:null},provider_account:{token:`provider_account`,schema:`provider`,table:`account`,label:`Provider operating account`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},provider_account_credential:{token:`provider_account_credential`,schema:`provider`,table:`account_credential`,label:`Provider account credential association`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},provision:{token:`provision`,schema:`mandate`,table:`provision`,label:`Mandate Provision (new)`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},provision_generate_target:{token:`provision_generate_target`,schema:`platform`,table:`provision_generate_target`,label:`Provision Generate Target`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},provision_grant:{token:`provision_grant`,schema:`platform`,table:`provision_grant`,label:`Provision Grant`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},provision_marker:{token:`provision_marker`,schema:`platform`,table:`provision_marker`,label:`Provision Marker`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},provision_rule_message:{token:`provision_rule_message`,schema:`platform`,table:`provision_rule_message`,label:`Provision Rule Message`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},provision_schema:{token:`provision_schema`,schema:`platform`,table:`provision_schema`,label:`Provision Schema`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},provision_shape_debt:{token:`provision_shape_debt`,schema:`platform`,table:`provision_shape_debt`,label:`Provision Shape Debt`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},provision_spec:{token:`provision_spec`,schema:`platform`,table:`provision_spec`,label:`Provision Spec`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},provision_spec_grandfather:{token:`provision_spec_grandfather`,schema:`platform`,table:`provision_spec_grandfather`,label:`Provision Spec Grandfather`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},provision_vocabulary:{token:`provision_vocabulary`,schema:`platform`,table:`provision_vocabulary`,label:`Provision Vocabulary`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},purpose:{token:`purpose`,schema:`platform`,table:`purpose`,label:`Purpose`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},quiz_session:{token:`quiz_session`,schema:`education`,table:`quiz_sessions`,label:`Quiz Session`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:`destination`,referenceCategory:null},rag_ingest_run:{token:`rag_ingest_run`,schema:`rag`,table:`ingest_run`,label:`Ingest Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},rag_library_audit_log:{token:`rag_library_audit_log`,schema:`rag`,table:`library_audit_log`,label:`Library audit log`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},rate_limit_buckets:{token:`rate_limit_buckets`,schema:`files`,table:`rate_limit_buckets`,label:`Rate Limit Buckets`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},reachability_pending:{token:`reachability_pending`,schema:`platform`,table:`reachability_pending`,label:`Reachability pending`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},recompute_queue:{token:`recompute_queue`,schema:`hr`,table:`_recompute_queue`,label:`Recompute Queue`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},record:{token:`record`,schema:`custom`,table:`record`,label:`Record`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Custom Data`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},record_alias:{token:`record_alias`,schema:`custom`,table:`record_alias`,label:`Record Alias`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},redaction_mapping:{token:`redaction_mapping`,schema:`pdf`,table:`redaction_mapping`,label:`Redaction Mapping`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},research_analysis:{token:`research_analysis`,schema:`research`,table:`rs_analysis`,label:`Research Analysis`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},research_content:{token:`research_content`,schema:`research`,table:`rs_content`,label:`Research Content`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},research_context_bundle:{token:`research_context_bundle`,schema:`research`,table:`rs_context_bundle`,label:`Research Context Bundle`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:`research`,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},research_document:{token:`research_document`,schema:`research`,table:`rs_document`,label:`Research Document`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},research_intent:{token:`research_intent`,schema:`research`,table:`research_intent`,label:`Research Intent`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},research_keyword:{token:`research_keyword`,schema:`research`,table:`rs_keyword`,label:`Research Keyword`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},research_media:{token:`research_media`,schema:`research`,table:`rs_media`,label:`Research Media`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},research_source:{token:`research_source`,schema:`research`,table:`rs_source`,label:`Research Source`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},research_synthesis:{token:`research_synthesis`,schema:`research`,table:`rs_synthesis`,label:`Research Synthesis`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},research_tag:{token:`research_tag`,schema:`research`,table:`rs_tag`,label:`Research Tag`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},research_template:{token:`research_template`,schema:`research`,table:`rs_template`,label:`Research Template`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},research_topic:{token:`research_topic`,schema:`research`,table:`rs_topic`,label:`Research Topic`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},retention_policy:{token:`retention_policy`,schema:`platform`,table:`retention_policy`,label:`Retention policy`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},retrieval_audit:{token:`retrieval_audit`,schema:`rag`,table:`retrieval_audit`,label:`Retrieval audit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},review_queue:{token:`review_queue`,schema:`agent`,table:`review_queue`,label:`Review Queue`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},route_manifest_entry:{token:`route_manifest_entry`,schema:`platform`,table:`route_manifest`,label:`Route Manifest Entry`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},row_version:{token:`row_version`,schema:`history`,table:`row_versions`,label:`Row version`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},rulebook:{token:`rulebook`,schema:`platform`,table:`rulebook`,label:`Rulebook`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:`Knowledge`,referencePickable:!0,titleColumn:`name`,contentRole:`source`,referenceCategory:null},runtime_operation_stream:{token:`runtime_operation_stream`,schema:`runtime`,table:`operation_stream`,label:`Operation stream`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},runtime_operation_stream_batch:{token:`runtime_operation_stream_batch`,schema:`runtime`,table:`operation_stream_batch`,label:`Operation stream batch`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},sandbox_instance:{token:`sandbox_instance`,schema:`public`,table:`sandbox_instances`,label:`Sandbox Instance`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},sch_agent_task:{token:`sch_agent_task`,schema:`scheduler`,table:`sch_agent_task`,label:`Agent Task Config`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},sch_run:{token:`sch_run`,schema:`scheduler`,table:`sch_run`,label:`Task Run`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},sch_task:{token:`sch_task`,schema:`scheduler`,table:`sch_task`,label:`Scheduled Task`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},sch_trigger:{token:`sch_trigger`,schema:`scheduler`,table:`sch_trigger`,label:`Task Trigger`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},schema_client_exposure:{token:`schema_client_exposure`,schema:`platform`,table:`schema_client_exposure`,label:`Schema Client Exposure`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},schema_migration_ledger:{token:`schema_migration_ledger`,schema:`public`,table:`_schema_migrations`,label:`Migration ledger`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},schema_migration_legacy:{token:`schema_migration_legacy`,schema:`public`,table:`schema_migrations`,label:`Legacy migration ledger`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},schema_migration_slot_grandfather:{token:`schema_migration_slot_grandfather`,schema:`public`,table:`_schema_migration_slot_grandfather`,label:`Schema Migration Slot Grandfather`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},schema_templates:{token:`schema_templates`,schema:`workbench`,table:`schema_templates`,label:`Schema Templates`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},scope:{token:`scope`,schema:`context`,table:`scopes`,label:`Scope`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:`container`,referenceCategory:null},scope_association_suggestion:{token:`scope_association_suggestion`,schema:`rag`,table:`scope_association_suggestions`,label:`Scope Association Suggestion`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},scope_dataset_instance:{token:`scope_dataset_instance`,schema:`context`,table:`scope_dataset_instances`,label:`Scope dataset instance`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},scope_door_registry:{token:`scope_door_registry`,schema:`context`,table:`scope_door_registry`,label:`Scope Door Registry`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},scope_item_value_suggestion:{token:`scope_item_value_suggestion`,schema:`rag`,table:`scope_item_value_suggestions`,label:`Scope Item Value Suggestion`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},scope_suggestion:{token:`scope_suggestion`,schema:`rag`,table:`scope_suggestions`,label:`Scope Suggestion`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},scope_type:{token:`scope_type`,schema:`context`,table:`scope_types`,label:`Scope Type`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`slug`,contentRole:`container`,referenceCategory:null},scrape_domain:{token:`scrape_domain`,schema:`scraper`,table:`scrape_domain`,label:`Scrape Domain`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},scrape_domain_settings:{token:`scrape_domain_settings`,schema:`scraper`,table:`scrape_domain_settings`,label:`Scrape Domain Settings`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},scrape_failure_log:{token:`scrape_failure_log`,schema:`scraper`,table:`scrape_failure_log`,label:`Scrape Failure Log`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},scrape_parsed_page:{token:`scrape_parsed_page`,schema:`scraper`,table:`scrape_parsed_page`,label:`Parsed page`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},scrape_path_override:{token:`scrape_path_override`,schema:`scraper`,table:`scrape_path_override`,label:`Scrape Path Override`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},scrape_path_pattern:{token:`scrape_path_pattern`,schema:`scraper`,table:`scrape_path_pattern`,label:`Scrape Path Pattern`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},scrape_retry_queue:{token:`scrape_retry_queue`,schema:`scraper`,table:`scrape_retry_queue`,label:`Scrape Retry Queue`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},search_item:{token:`search_item`,schema:`platform`,table:`search_item`,label:`Search item`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_ai_capability:{token:`seo_ai_capability`,schema:`seo`,table:`ai_capability`,label:`SEO AI capability`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_ai_visibility_citation:{token:`seo_ai_visibility_citation`,schema:`seo`,table:`ai_visibility_citation`,label:`AI Visibility Citation`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_ai_visibility_claim:{token:`seo_ai_visibility_claim`,schema:`seo`,table:`ai_visibility_claim`,label:`AI Visibility Claim`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_ai_visibility_panel:{token:`seo_ai_visibility_panel`,schema:`seo`,table:`ai_visibility_panel`,label:`AI Visibility Panel`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_ai_visibility_response:{token:`seo_ai_visibility_response`,schema:`seo`,table:`ai_visibility_response`,label:`AI Visibility Response`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_ai_visibility_signal:{token:`seo_ai_visibility_signal`,schema:`seo`,table:`ai_visibility_signal`,label:`AI Visibility Signal`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_backlink:{token:`seo_backlink`,schema:`seo`,table:`backlink`,label:`SEO Backlink`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_backlink_change_event:{token:`seo_backlink_change_event`,schema:`seo`,table:`backlink_change_event`,label:`Backlink Change Event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_backlink_dimension_snapshot:{token:`seo_backlink_dimension_snapshot`,schema:`seo`,table:`backlink_dimension_snapshot`,label:`Backlink Dimension Snapshot`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_backlink_observation:{token:`seo_backlink_observation`,schema:`seo`,table:`backlink_observation`,label:`Backlink Observation`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_backlink_snapshot:{token:`seo_backlink_snapshot`,schema:`seo`,table:`backlink_snapshot`,label:`Backlink Snapshot`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_change_assessment:{token:`seo_change_assessment`,schema:`seo`,table:`change_assessment`,label:`SEO Change Assessment`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_change_event:{token:`seo_change_event`,schema:`seo`,table:`change_event`,label:`SEO Change Event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_change_item:{token:`seo_change_item`,schema:`seo`,table:`change_item`,label:`SEO Change Item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_change_metric:{token:`seo_change_metric`,schema:`seo`,table:`change_metric`,label:`SEO Change Metric`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_change_set:{token:`seo_change_set`,schema:`seo`,table:`change_set`,label:`SEO Change`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:`title`,contentRole:`source`,referenceCategory:null},seo_change_theory:{token:`seo_change_theory`,schema:`seo`,table:`change_theory`,label:`SEO Change Theory`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_collection_run:{token:`seo_collection_run`,schema:`seo`,table:`collection_run`,label:`SEO Collection Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_competitor:{token:`seo_competitor`,schema:`seo`,table:`competitor`,label:`SEO Competitor`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_competitor_observation:{token:`seo_competitor_observation`,schema:`seo`,table:`competitor_observation`,label:`Competitor Observation`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_competitor_opportunity:{token:`seo_competitor_opportunity`,schema:`seo`,table:`competitor_opportunity`,label:`Competitor Opportunity`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_coverage_mention:{token:`seo_coverage_mention`,schema:`seo`,table:`coverage_mention`,label:`Coverage Mention`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_coverage_tracker:{token:`seo_coverage_tracker`,schema:`seo`,table:`coverage_tracker`,label:`Coverage Tracker`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_dimension_value_matcher:{token:`seo_dimension_value_matcher`,schema:`seo`,table:`dimension_value_matcher`,label:`Dimension Value Matcher`,baseTier:1,isComponent:!0,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_engine_schedule:{token:`seo_engine_schedule`,schema:`seo`,table:`engine_schedule`,label:`SEO Engine Schedule`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_geo_place:{token:`seo_geo_place`,schema:`seo`,table:`geo_place`,label:`Geo Place`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_gsc_dig_rule:{token:`seo_gsc_dig_rule`,schema:`seo`,table:`gsc_dig_rule`,label:`GSC Dig Rule`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_keyword:{token:`seo_keyword`,schema:`seo`,table:`keyword`,label:`SEO Keyword`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:`phrase`,contentRole:null,referenceCategory:null},seo_keyword_class_rule:{token:`seo_keyword_class_rule`,schema:`seo`,table:`keyword_class_rule`,label:`Keyword Class Rule`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_keyword_edge:{token:`seo_keyword_edge`,schema:`seo`,table:`keyword_edge`,label:`Keyword Edge`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_keyword_facet:{token:`seo_keyword_facet`,schema:`seo`,table:`keyword_facet`,label:`Keyword Facet`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_keyword_market:{token:`seo_keyword_market`,schema:`seo`,table:`keyword_market`,label:`Keyword Market Data`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_keyword_market_observation:{token:`seo_keyword_market_observation`,schema:`seo`,table:`keyword_market_observation`,label:`Keyword Market Observation`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_keyword_place:{token:`seo_keyword_place`,schema:`seo`,table:`keyword_place`,label:`Keyword Place`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_keyword_saved_view:{token:`seo_keyword_saved_view`,schema:`seo`,table:`keyword_saved_view`,label:`Keyword Saved View`,baseTier:1,isComponent:!0,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_keyword_topic:{token:`seo_keyword_topic`,schema:`seo`,table:`keyword_topic`,label:`Keyword Topic Assignment`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_landscape_brief:{token:`seo_landscape_brief`,schema:`seo`,table:`landscape_brief`,label:`Competitive Landscape Brief`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_link_gap_domain:{token:`seo_link_gap_domain`,schema:`seo`,table:`link_gap_domain`,label:`Link Gap Domain`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_link_gap_match:{token:`seo_link_gap_match`,schema:`seo`,table:`link_gap_match`,label:`Link Gap Match`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_map_facet:{token:`seo_map_facet`,schema:`seo`,table:`map_facet`,label:`Topical map facet`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_map_facet_value:{token:`seo_map_facet_value`,schema:`seo`,table:`map_facet_value`,label:`Topical map facet value`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_map_topic:{token:`seo_map_topic`,schema:`seo`,table:`map_topic`,label:`Topical map topic`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_page_measurement_health:{token:`seo_page_measurement_health`,schema:`seo`,table:`page_measurement_health`,label:`Page Measurement Health`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_page_performance:{token:`seo_page_performance`,schema:`seo`,table:`page_performance`,label:`Page Performance`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_pr_moment:{token:`seo_pr_moment`,schema:`seo`,table:`pr_moment`,label:`PR Moment`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_provider_call:{token:`seo_provider_call`,schema:`seo`,table:`provider_call`,label:`SEO Provider Call`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_provider_task:{token:`seo_provider_task`,schema:`seo`,table:`provider_task`,label:`SEO Provider Task`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_rank_observation:{token:`seo_rank_observation`,schema:`seo`,table:`rank_observation`,label:`Rank Observation`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_rank_target:{token:`seo_rank_target`,schema:`seo`,table:`rank_target`,label:`SEO Rank Target`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_raw_payload:{token:`seo_raw_payload`,schema:`seo`,table:`raw_payload`,label:`SEO Raw Payload`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_referring_domain_profile:{token:`seo_referring_domain_profile`,schema:`seo`,table:`referring_domain_profile`,label:`Referring Domain Profile`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_reputation_case:{token:`seo_reputation_case`,schema:`seo`,table:`reputation_case`,label:`Reputation Case`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_search_performance_daily:{token:`seo_search_performance_daily`,schema:`seo`,table:`search_performance_daily`,label:`Search Performance Daily`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_serp_mention:{token:`seo_serp_mention`,schema:`seo`,table:`serp_mention`,label:`SERP Prospect Mention`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_serp_opportunity:{token:`seo_serp_opportunity`,schema:`seo`,table:`serp_opportunity`,label:`SERP Prospect Opportunity`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_serp_result:{token:`seo_serp_result`,schema:`seo`,table:`serp_result`,label:`SERP Result`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_serp_snapshot:{token:`seo_serp_snapshot`,schema:`seo`,table:`serp_snapshot`,label:`SERP Snapshot`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_site_geo_area:{token:`seo_site_geo_area`,schema:`seo`,table:`site_geo_area`,label:`Site Geo Area`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_site_keyword_offering:{token:`seo_site_keyword_offering`,schema:`seo`,table:`site_keyword_offering`,label:`Site Keyword Offering`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_site_keyword_value:{token:`seo_site_keyword_value`,schema:`seo`,table:`site_keyword_value`,label:`Site Keyword Value`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_site_offering_value:{token:`seo_site_offering_value`,schema:`seo`,table:`site_offering_value`,label:`Site Offering Value`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_site_topic_value:{token:`seo_site_topic_value`,schema:`seo`,table:`site_topic_value`,label:`Site Topic Value`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_site_value_combo:{token:`seo_site_value_combo`,schema:`seo`,table:`site_value_combo`,label:`Site Value Combination`,baseTier:1,isComponent:!0,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_site_value_worth:{token:`seo_site_value_worth`,schema:`seo`,table:`site_value_worth`,label:`Site Value Worth`,baseTier:1,isComponent:!0,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_site_vocabulary:{token:`seo_site_vocabulary`,schema:`seo`,table:`site_vocabulary`,label:`Site Vocabulary`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_source_request:{token:`seo_source_request`,schema:`seo`,table:`source_request`,label:`SEO Source Request`,baseTier:2,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_starter_pack:{token:`seo_starter_pack`,schema:`seo`,table:`starter_pack`,label:`SEO Industry Starter Pack`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_starter_pack_item:{token:`seo_starter_pack_item`,schema:`seo`,table:`starter_pack_item`,label:`SEO Starter Pack Item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_story_angle:{token:`seo_story_angle`,schema:`seo`,table:`story_angle`,label:`SEO Story Angle`,baseTier:2,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_topic:{token:`seo_topic`,schema:`seo`,table:`topic`,label:`SEO Topic`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`seo`,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},seo_topical_map:{token:`seo_topical_map`,schema:`seo`,table:`topical_map`,label:`Topical map`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:`seo`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_tracker_story:{token:`seo_tracker_story`,schema:`seo`,table:`tracker_story`,label:`Monitor Story`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},seo_web_analytics_daily:{token:`seo_web_analytics_daily`,schema:`seo`,table:`web_analytics_daily`,label:`Web Analytics Daily`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`marketing`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},shareable_resource_registry:{token:`shareable_resource_registry`,schema:`platform`,table:`shareable_resource_registry`,label:`Shareable resource registry`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},shared_canvas_item:{token:`shared_canvas_item`,schema:`canvas`,table:`shared_canvas_items`,label:`Shared Canvas Item`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},short_link:{token:`short_link`,schema:`platform`,table:`short_links`,label:`Short Link`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},sign_in_fk_legacy:{token:`sign_in_fk_legacy`,schema:`platform`,table:`sign_in_fk_legacy`,label:`Sign-in reference baseline`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},skill:{token:`skill`,schema:`skill`,table:`definition`,label:`Skill`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Skills`,referencePickable:!0,titleColumn:`label`,contentRole:`utility`,referenceCategory:null},skill_detail:{token:`skill_detail`,schema:`skill`,table:`skill_detail`,label:`Skill Detail`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Skills`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},skill_render_definition:{token:`skill_render_definition`,schema:`skill`,table:`render_definition`,label:`Skill Render Definition`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Skills`,referencePickable:!0,titleColumn:`label`,contentRole:null,referenceCategory:null},sms_consent:{token:`sms_consent`,schema:`communication`,table:`sms_consent`,label:`SMS Consent`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},sms_conversation:{token:`sms_conversation`,schema:`communication`,table:`sms_conversations`,label:`SMS Conversation`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},sms_message:{token:`sms_message`,schema:`communication`,table:`sms_messages`,label:`SMS Message`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},sms_message_media:{token:`sms_message_media`,schema:`communication`,table:`sms_media`,label:`SMS Media`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`file_name`,contentRole:null,referenceCategory:null},sms_notification:{token:`sms_notification`,schema:`communication`,table:`sms_notifications`,label:`SMS Notification`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},sms_notification_preference:{token:`sms_notification_preference`,schema:`communication`,table:`sms_notification_preferences`,label:`SMS Notification Preference`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},sms_phone_number:{token:`sms_phone_number`,schema:`communication`,table:`sms_phone_numbers`,label:`SMS Phone Number`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},sms_rate_limits:{token:`sms_rate_limits`,schema:`communication`,table:`sms_rate_limits`,label:`Sms Rate Limits`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},sms_webhook_logs:{token:`sms_webhook_logs`,schema:`communication`,table:`sms_webhook_logs`,label:`Sms Webhook Logs`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},soft_delete_cascade_job:{token:`soft_delete_cascade_job`,schema:`platform`,table:`soft_delete_cascade_job`,label:`Soft-delete cascade job`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},soft_delete_edge:{token:`soft_delete_edge`,schema:`platform`,table:`soft_delete_edge`,label:`Soft Delete Edge`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},source_authority:{token:`source_authority`,schema:`platform`,table:`source_authority`,label:`Source authority`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},stage_ref_kind:{token:`stage_ref_kind`,schema:`growth`,table:`stage_ref_kind`,label:`Stage reference kind`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},stamped_write_table:{token:`stamped_write_table`,schema:`platform`,table:`stamped_write_table`,label:`Stamped Write Table`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},structure:{token:`structure`,schema:`files`,table:`structure`,label:`Structure`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},studio_cleaned_segments:{token:`studio_cleaned_segments`,schema:`transcripts`,table:`studio_cleaned_segments`,label:`Studio Cleaned Segments`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},studio_concept_items:{token:`studio_concept_items`,schema:`transcripts`,table:`studio_concept_items`,label:`Studio Concept Items`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},studio_documents:{token:`studio_documents`,schema:`transcripts`,table:`studio_documents`,label:`Studio Document`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},studio_module_segments:{token:`studio_module_segments`,schema:`transcripts`,table:`studio_module_segments`,label:`Studio Module Segments`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},studio_raw_segments:{token:`studio_raw_segments`,schema:`transcripts`,table:`studio_raw_segments`,label:`Studio Raw Segments`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},studio_recording_chunks:{token:`studio_recording_chunks`,schema:`transcripts`,table:`studio_recording_chunks`,label:`Studio Recording Chunk`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},studio_recording_segments:{token:`studio_recording_segments`,schema:`transcripts`,table:`studio_recording_segments`,label:`Studio Recording Segment`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},studio_run:{token:`studio_run`,schema:`transcripts`,table:`studio_runs`,label:`Studio Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},studio_session:{token:`studio_session`,schema:`transcripts`,table:`studio_sessions`,label:`Transcript Studio session`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:`source`,referenceCategory:null},studio_session_settings:{token:`studio_session_settings`,schema:`transcripts`,table:`studio_session_settings`,label:`Studio Session Settings`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},study_attempt:{token:`study_attempt`,schema:`education`,table:`study_attempt`,label:`Study Attempt`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},study_goal:{token:`study_goal`,schema:`education`,table:`study_goal`,label:`Study Goal`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},study_media:{token:`study_media`,schema:`education`,table:`study_media`,label:`Study Media`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},study_plan:{token:`study_plan`,schema:`education`,table:`study_plan`,label:`Study Plan`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},study_plan_block:{token:`study_plan_block`,schema:`education`,table:`study_plan_block`,label:`Study Plan Block`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`label`,contentRole:null,referenceCategory:null},study_plan_day:{token:`study_plan_day`,schema:`education`,table:`study_plan_day`,label:`Study Plan Day`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},study_reminder_context:{token:`study_reminder_context`,schema:`education`,table:`study_reminder_context`,label:`Study Reminder Context`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},study_reminder_delivery:{token:`study_reminder_delivery`,schema:`education`,table:`study_reminder_delivery`,label:`Study Reminder Delivery`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},study_session:{token:`study_session`,schema:`education`,table:`study_session`,label:`Study Session`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},study_source_chunk:{token:`study_source_chunk`,schema:`education`,table:`study_source_chunk`,label:`Study Source Chunk`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},study_streak:{token:`study_streak`,schema:`education`,table:`study_streak`,label:`Study streak`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},study_structured_section:{token:`study_structured_section`,schema:`education`,table:`study_structured_section`,label:`Study Structured Section`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},superseded_policy:{token:`superseded_policy`,schema:`iam`,table:`superseded_policy`,label:`Superseded Policy`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},surface:{token:`surface`,schema:`ui`,table:`ui_surface`,label:`UI Surface`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},system_announcement:{token:`system_announcement`,schema:`users`,table:`system_announcements`,label:`System announcement`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},system_context_item:{token:`system_context_item`,schema:`context`,table:`system_context_item`,label:`System Context Item`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},system_error:{token:`system_error`,schema:`ops`,table:`system_error`,label:`System Error`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},system_orgs:{token:`system_orgs`,schema:`iam`,table:`system_orgs`,label:`System Orgs`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},system_write_failure:{token:`system_write_failure`,schema:`ops`,table:`system_write_failure`,label:`System Write Failure`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},t13_backfill_ledger:{token:`t13_backfill_ledger`,schema:`ops`,table:`t13_backfill_ledger`,label:`T-13 backfill ledger`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},t13_default_ledger:{token:`t13_default_ledger`,schema:`ops`,table:`t13_default_ledger`,label:`T-13 default ledger`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},t13_row_column_events:{token:`t13_row_column_events`,schema:`ops`,table:`t13_row_column_events`,label:`T-13 row column events`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},tag:{token:`tag`,schema:`platform`,table:`tag`,label:`Tag`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},task:{token:`task`,schema:`projects`,table:`tasks`,label:`Task`,baseTier:1,isComponent:!1,isModule:!0,isListed:!1,scopeable:!0,category:`Workspaces`,referencePickable:!0,titleColumn:`title`,contentRole:`container`,referenceCategory:null},task_user_state:{token:`task_user_state`,schema:`projects`,table:`task_user_state`,label:`Task user state`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},taxonomy_node:{token:`taxonomy_node`,schema:`platform`,table:`taxonomy_node`,label:`Taxonomy node`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},team:{token:`team`,schema:`iam`,table:`team`,label:`Team`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!1,category:`Organizations`,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},template_context_items:{token:`template_context_items`,schema:`context`,table:`template_context_items`,label:`Template Context Items`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},template_scope_types:{token:`template_scope_types`,schema:`context`,table:`template_scope_types`,label:`Template Scope Types`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},templates:{token:`templates`,schema:`context`,table:`templates`,label:`Templates`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},test_handset_inbox:{token:`test_handset_inbox`,schema:`communication`,table:`test_handset_inbox`,label:`Test Handset Inbox`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},test_handset_verification:{token:`test_handset_verification`,schema:`communication`,table:`test_handset_verification`,label:`Test Handset Verification`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},thread:{token:`thread`,schema:`projects`,table:`threads`,label:`Thread`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},tool:{token:`tool`,schema:`tool`,table:`definition`,label:`Tool`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Tools`,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},tool_binding:{token:`tool_binding`,schema:`tool`,table:`binding`,label:`Tool binding`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},tool_bundle:{token:`tool_bundle`,schema:`tool`,table:`bundle`,label:`Tool Bundle`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:`Tools`,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},tool_call:{token:`tool_call`,schema:`chat`,table:`tool_call`,label:`Tool Call`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},tool_definition_version:{token:`tool_definition_version`,schema:`tool`,table:`definition_version`,label:`Tool Definition Version`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Tools`,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},tool_executor:{token:`tool_executor`,schema:`tool`,table:`executor`,label:`Tool executor`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},tool_surface_defaults:{token:`tool_surface_defaults`,schema:`tool`,table:`surface_defaults`,label:`Tool surface defaults`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},tool_test_sample:{token:`tool_test_sample`,schema:`tool`,table:`test_sample`,label:`Tool Test Sample`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Tools`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},tool_ui:{token:`tool_ui`,schema:`tool`,table:`ui`,label:`Tool UI`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Tools`,referencePickable:!1,titleColumn:`display_name`,contentRole:null,referenceCategory:null},tool_ui_incident:{token:`tool_ui_incident`,schema:`tool`,table:`ui_incident`,label:`Tool UI Incident`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Tools`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},tool_ui_version:{token:`tool_ui_version`,schema:`tool`,table:`ui_version`,label:`Tool UI Version`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Tools`,referencePickable:!1,titleColumn:`display_name`,contentRole:null,referenceCategory:null},topic_placement_queue:{token:`topic_placement_queue`,schema:`seo`,table:`topic_placement_queue`,label:`Topic Placement Queue`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},transcript:{token:`transcript`,schema:`transcripts`,table:`transcripts`,label:`Transcript`,baseTier:1,isComponent:!1,isModule:!0,isListed:!1,scopeable:!0,category:`Sources`,referencePickable:!0,titleColumn:`title`,contentRole:`source`,referenceCategory:null},trigger_event:{token:`trigger_event`,schema:`workflow`,table:`trigger_event`,label:`Trigger Event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},udt_dataset_template:{token:`udt_dataset_template`,schema:`workbench`,table:`udt_dataset_templates`,label:`Dataset template`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},udt_dataset_template_fields:{token:`udt_dataset_template_fields`,schema:`workbench`,table:`udt_dataset_template_fields`,label:`Udt Dataset Template Fields`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},udt_document:{token:`udt_document`,schema:`workbench`,table:`udt_documents`,label:`Cloud document`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`document_name`,contentRole:`hybrid`,referenceCategory:null},udt_document_snapshot:{token:`udt_document_snapshot`,schema:`workbench`,table:`udt_document_snapshots`,label:`Document snapshot`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},udt_workbook_snapshot:{token:`udt_workbook_snapshot`,schema:`workbench`,table:`udt_workbook_snapshots`,label:`Workbook snapshot`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ui_client:{token:`ui_client`,schema:`ui`,table:`ui_client`,label:`UI client`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ui_surface_agent_pref:{token:`ui_surface_agent_pref`,schema:`ui`,table:`ui_surface_agent_pref`,label:`UI Surface Agent Pref`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ui_surface_agent_role:{token:`ui_surface_agent_role`,schema:`ui`,table:`ui_surface_agent_role`,label:`UI surface agent role`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ui_surface_client_tool:{token:`ui_surface_client_tool`,schema:`ui`,table:`ui_surface_client_tool`,label:`UI surface client tool`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ui_surface_config:{token:`ui_surface_config`,schema:`ui`,table:`ui_surface_config`,label:`UI Surface Config`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ui_surface_item_type:{token:`ui_surface_item_type`,schema:`ui`,table:`ui_surface_item_type`,label:`UI surface item type`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ui_surface_value:{token:`ui_surface_value`,schema:`ui`,table:`ui_surface_value`,label:`UI surface value`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},ui_surface_write_target:{token:`ui_surface_write_target`,schema:`ui`,table:`ui_surface_write_target`,label:`UI surface write target`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},univer_payload:{token:`univer_payload`,schema:`content`,table:`univer_payload`,label:`Univer Payload`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:`Documents`,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},unsubscribe_token:{token:`unsubscribe_token`,schema:`crm`,table:`unsubscribe_token`,label:`Unsubscribe Token`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},uploads_inflight:{token:`uploads_inflight`,schema:`files`,table:`uploads_inflight`,label:`Uploads Inflight`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user:{token:`user`,schema:`iam`,table:`users`,label:`User`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_achievement:{token:`user_achievement`,schema:`users`,table:`user_achievements`,label:`User Achievement`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_active_context:{token:`user_active_context`,schema:`context`,table:`user_active_context`,label:`Active context`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_analysis_preference:{token:`user_analysis_preference`,schema:`users`,table:`user_analysis_preferences`,label:`User Analysis Preference`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_email_preference:{token:`user_email_preference`,schema:`users`,table:`user_email_preferences`,label:`User Email Preference`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_entity_state:{token:`user_entity_state`,schema:`platform`,table:`user_entity_state`,label:`User entity state`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_feedback:{token:`user_feedback`,schema:`users`,table:`user_feedback`,label:`User Feedback`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_follows:{token:`user_follows`,schema:`users`,table:`user_follows`,label:`User Follows`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_form_profile:{token:`user_form_profile`,schema:`users`,table:`user_form_profile`,label:`User Form Profile`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_markdown_sample:{token:`user_markdown_sample`,schema:`users`,table:`user_markdown_samples`,label:`User Markdown Sample`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},user_memory:{token:`user_memory`,schema:`users`,table:`user_memory`,label:`User Memory`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_preference:{token:`user_preference`,schema:`users`,table:`user_preferences`,label:`User Preference`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_profile:{token:`user_profile`,schema:`users`,table:`profiles`,label:`User Profile`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`display_name`,contentRole:null,referenceCategory:null},user_secret:{token:`user_secret`,schema:`users`,table:`user_secrets`,label:`User secret`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_secret_audit:{token:`user_secret_audit`,schema:`users`,table:`user_secret_audit`,label:`Secret audit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_secret_grant:{token:`user_secret_grant`,schema:`users`,table:`user_secret_grants`,label:`Secret grant`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_stat:{token:`user_stat`,schema:`users`,table:`user_stats`,label:`User Stats`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_storage_usage:{token:`user_storage_usage`,schema:`files`,table:`user_storage_usage`,label:`Storage usage`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},user_surface_state:{token:`user_surface_state`,schema:`users`,table:`user_surface_state`,label:`User Surface State`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},vault_fill_approvals:{token:`vault_fill_approvals`,schema:`users`,table:`_vault_fill_approvals`,label:`Vault fill approvals`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},vault_fill_devices:{token:`vault_fill_devices`,schema:`users`,table:`_vault_fill_devices`,label:`Vault fill devices`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},vault_fill_nonces:{token:`vault_fill_nonces`,schema:`users`,table:`_vault_fill_nonces`,label:`Vault fill nonces`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},visibility_cache:{token:`visibility_cache`,schema:`custom`,table:`visibility_cache`,label:`Visibility Cache`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},visibility_epoch:{token:`visibility_epoch`,schema:`custom`,table:`visibility_epoch`,label:`Visibility Epoch`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},voice:{token:`voice`,schema:`ai`,table:`voices`,label:`Voice`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},war_room:{token:`war_room`,schema:`projects`,table:`war_rooms`,label:`War Room`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`title`,contentRole:null,referenceCategory:null},wbx_demo:{token:`wbx_demo`,schema:`extend`,table:`wbx_demo`,label:`Extension demo record`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},wbx_guidance:{token:`wbx_guidance`,schema:`extend`,table:`wbx_guidance`,label:`Extension Guidance`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},wbx_highlight:{token:`wbx_highlight`,schema:`extend`,table:`wbx_highlight`,label:`Extension Highlight`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},wbx_pattern:{token:`wbx_pattern`,schema:`extend`,table:`wbx_pattern`,label:`Extension Scrape Pattern`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},wbx_recipe:{token:`wbx_recipe`,schema:`extend`,table:`wbx_recipe`,label:`Extension recipe`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},wbx_screenshot:{token:`wbx_screenshot`,schema:`extend`,table:`wbx_screenshot`,label:`Extension Screenshot`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},wbx_seo_audit:{token:`wbx_seo_audit`,schema:`extend`,table:`wbx_seo_audit`,label:`Extension SEO Audit`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},wc_claim:{token:`wc_claim`,schema:`legal`,table:`wc_claim`,label:`WC Claim`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},wc_impairment_definition:{token:`wc_impairment_definition`,schema:`legal`,table:`wc_impairment_definition`,label:`WC Impairment Definition`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},wc_injury:{token:`wc_injury`,schema:`legal`,table:`wc_injury`,label:`WC Injury`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},wc_report:{token:`wc_report`,schema:`legal`,table:`wc_report`,label:`WC Report`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_analysis_item:{token:`web_analysis_item`,schema:`web`,table:`analysis_item`,label:`Analysis Item`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`label`,contentRole:null,referenceCategory:null},web_brand:{token:`web_brand`,schema:`web`,table:`brand`,label:`Brand`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},web_brand_asset:{token:`web_brand_asset`,schema:`web`,table:`brand_asset`,label:`Brand Asset`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`title`,contentRole:null,referenceCategory:null},web_brand_offering:{token:`web_brand_offering`,schema:`web`,table:`brand_offering`,label:`Brand Offering`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_business_fact:{token:`web_business_fact`,schema:`web`,table:`business_fact`,label:`Business Fact`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`label`,contentRole:null,referenceCategory:null},web_business_location:{token:`web_business_location`,schema:`web`,table:`business_location`,label:`Business Location`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_channel_analytics_daily:{token:`web_channel_analytics_daily`,schema:`web`,table:`channel_analytics_daily`,label:`Channel analytics (daily)`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_crawl_event:{token:`web_crawl_event`,schema:`web`,table:`crawl_event`,label:`Web Crawl Event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_crawl_preset:{token:`web_crawl_preset`,schema:`web`,table:`crawl_preset`,label:`Web Crawl Preset`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},web_crawl_schedule:{token:`web_crawl_schedule`,schema:`web`,table:`crawl_schedule`,label:`Web Crawl Schedule`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},web_crawl_session:{token:`web_crawl_session`,schema:`web`,table:`crawl_session`,label:`Crawl Session`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_crawl_url:{token:`web_crawl_url`,schema:`web`,table:`crawl_url`,label:`Web Crawl URL`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_discovered_item:{token:`web_discovered_item`,schema:`web`,table:`discovered_item`,label:`Discovered Item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_finding:{token:`web_finding`,schema:`web`,table:`finding`,label:`Finding`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_gsc_page_stat:{token:`web_gsc_page_stat`,schema:`web`,table:`gsc_page_stat`,label:`GSC Page Stat`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_link_edge:{token:`web_link_edge`,schema:`web`,table:`link_edge`,label:`Link Edge`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_listing_publisher:{token:`web_listing_publisher`,schema:`web`,table:`listing_publisher`,label:`Listing Publisher`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_location_listing:{token:`web_location_listing`,schema:`web`,table:`location_listing`,label:`Location Listing`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_news_item:{token:`web_news_item`,schema:`web`,table:`news_item`,label:`News Item`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_offering_template:{token:`web_offering_template`,schema:`web`,table:`offering_template`,label:`Offering Template`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_page:{token:`web_page`,schema:`web`,table:`page`,label:`Site page`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`url`,contentRole:`source`,referenceCategory:null},web_page_content:{token:`web_page_content`,schema:`web`,table:`page_content`,label:`Page Draft Content`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_page_evidence:{token:`web_page_evidence`,schema:`web`,table:`page_evidence`,label:`Web Page Evidence`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_page_sitemap:{token:`web_page_sitemap`,schema:`web`,table:`page_sitemap`,label:`Page Sitemap Membership`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_property:{token:`web_property`,schema:`web`,table:`property`,label:`Brand Property`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`display_name`,contentRole:null,referenceCategory:null},web_provider:{token:`web_provider`,schema:`web`,table:`provider`,label:`Provider`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`label`,contentRole:null,referenceCategory:null},web_result:{token:`web_result`,schema:`web`,table:`analysis_result`,label:`Analysis Result`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_screenshot:{token:`web_screenshot`,schema:`web`,table:`screenshot`,label:`Screenshot`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_site:{token:`web_site`,schema:`web`,table:`site`,label:`Site`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},web_site_endpoint_rule:{token:`web_site_endpoint_rule`,schema:`web`,table:`site_endpoint_rule`,label:`Site Endpoint Rule`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`path_prefix`,contentRole:null,referenceCategory:null},web_site_item_config:{token:`web_site_item_config`,schema:`web`,table:`site_item_config`,label:`Site Item Config`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_site_offering:{token:`web_site_offering`,schema:`web`,table:`site_offering`,label:`Site Offering`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_sitemap:{token:`web_sitemap`,schema:`web`,table:`sitemap`,label:`Sitemap`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`url`,contentRole:null,referenceCategory:null},web_snapshot:{token:`web_snapshot`,schema:`web`,table:`snapshot`,label:`Snapshot`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_tag_manager_snapshot:{token:`web_tag_manager_snapshot`,schema:`web`,table:`tag_manager_snapshot`,label:`Tag Manager snapshot`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_voice_fingerprint:{token:`web_voice_fingerprint`,schema:`web`,table:`voice_fingerprint`,label:`Voice Fingerprint`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},web_youtube_video:{token:`web_youtube_video`,schema:`web`,table:`youtube_video`,label:`YouTube video`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},webhook_deliveries:{token:`webhook_deliveries`,schema:`files`,table:`webhook_deliveries`,label:`Webhook Deliveries`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},webhook_dispatch_state:{token:`webhook_dispatch_state`,schema:`files`,table:`webhook_dispatch_state`,label:`Webhook Dispatch State`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},webhooks:{token:`webhooks`,schema:`files`,table:`webhooks`,label:`Webhooks`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},wf_node_data_slot:{token:`wf_node_data_slot`,schema:`workflow`,table:`node_data_slot`,label:`Workflow Node Data Slot`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},work_claim:{token:`work_claim`,schema:`platform`,table:`_work_claim`,label:`Work Claim`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},work_item:{token:`work_item`,schema:`runtime`,table:`work_item`,label:`Runtime Work Item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workbook:{token:`workbook`,schema:`workbench`,table:`udt_workbooks`,label:`Workbook`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!0,titleColumn:`workbook_name`,contentRole:`hybrid`,referenceCategory:null},worker_heartbeat:{token:`worker_heartbeat`,schema:`workflow`,table:`worker_heartbeat`,label:`Worker Heartbeat`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow:{token:`workflow`,schema:`workflow`,table:`definition`,label:`Workflow`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:`utility`,referenceCategory:null},workflow_card:{token:`workflow_card`,schema:`workflow`,table:`card`,label:`Workflow Card`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_checkpoint:{token:`workflow_checkpoint`,schema:`workflow`,table:`checkpoint`,label:`Workflow Checkpoint`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_comparison:{token:`workflow_comparison`,schema:`workflow`,table:`comparison`,label:`Workflow Comparison`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_definition_version:{token:`workflow_definition_version`,schema:`workflow`,table:`definition_version`,label:`Workflow Definition Version`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`name`,contentRole:null,referenceCategory:null},workflow_idempotency:{token:`workflow_idempotency`,schema:`workflow`,table:`idempotency`,label:`Workflow Idempotency`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_job:{token:`workflow_job`,schema:`workflow`,table:`job`,label:`Workflow Job`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_node_events:{token:`workflow_node_events`,schema:`workflow`,table:`node_events`,label:`Workflow Node Events`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_node_outcome:{token:`workflow_node_outcome`,schema:`workflow`,table:`node_outcome`,label:`Workflow Node Outcome`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_plan:{token:`workflow_plan`,schema:`workflow`,table:`plan`,label:`Workflow Plan`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},workflow_plan_event:{token:`workflow_plan_event`,schema:`workflow`,table:`plan_event`,label:`Workflow Plan Event`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_plan_sample:{token:`workflow_plan_sample`,schema:`workflow`,table:`plan_sample`,label:`Workflow Plan Sample`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!1,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_recovery_audit:{token:`workflow_recovery_audit`,schema:`workflow`,table:`recovery_audit`,label:`Workflow Recovery Audit`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_run:{token:`workflow_run`,schema:`workflow`,table:`run`,label:`Workflow Run`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_run_cost:{token:`workflow_run_cost`,schema:`workflow`,table:`_run_cost`,label:`Workflow run cost`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_run_facts:{token:`workflow_run_facts`,schema:`workflow`,table:`_run_facts`,label:`Workflow run facts`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_run_log:{token:`workflow_run_log`,schema:`workflow`,table:`run_log`,label:`Workflow Run Log`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_runtime_surface:{token:`workflow_runtime_surface`,schema:`workflow`,table:`runtime_surface`,label:`Run Surface`,baseTier:1,isComponent:!1,isModule:!1,isListed:!0,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_template:{token:`workflow_template`,schema:`workflow`,table:`template`,label:`Workflow Template`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},workflow_trigger:{token:`workflow_trigger`,schema:`workflow`,table:`trigger`,label:`Workflow Trigger`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!0,titleColumn:`name`,contentRole:null,referenceCategory:null},workflow_trigger_fire:{token:`workflow_trigger_fire`,schema:`workflow`,table:`trigger_fire`,label:`Workflow Trigger Fire`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},workflow_work_item:{token:`workflow_work_item`,schema:`workflow`,table:`work_item`,label:`Work Item`,baseTier:1,isComponent:!0,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},working_document:{token:`working_document`,schema:`workbench`,table:`working_documents`,label:`Working Document`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!1,category:`Conversations`,referencePickable:!0,titleColumn:`title`,contentRole:`destination`,referenceCategory:null},write_guard_key:{token:`write_guard_key`,schema:`hr`,table:`_write_guard_key`,label:`Write Guard Key`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},youtube_quota_day:{token:`youtube_quota_day`,schema:`research`,table:`youtube_quota_day`,label:`Youtube Quota Day`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},youtube_search:{token:`youtube_search`,schema:`research`,table:`youtube_search`,label:`YouTube Search`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null},youtube_video:{token:`youtube_video`,schema:`research`,table:`youtube_video`,label:`YouTube Video`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!0,category:null,referencePickable:!1,titleColumn:`title`,contentRole:`source`,referenceCategory:null}},gD=new Set(`access_delta_probe.access_delta_run.access_request.account_addon.acquisition_block.activity.admin_audit_log.admin_email_log.admin_markdown_sample.admin_user.admission_config.agent.agent_card.agent_definition_version.agent_drift_alert.agent_exemplar.agent_mandate_note.agent_prompt_remediation.agent_run.agent_run_stage.agent_schedule.agent_schedule_claim.agent_shortcut.agent_surface_binding.agent_template.agent_term_list.agent_usage.ai_api.ai_calls.ai_endpoint.ai_model.ai_model_alias.ai_offering.ai_provider.ai_setting.ai_setting_profile.ai_translation_cell.ai_usage_executions.ai_usage_hourly.ai_usage_hourly_watermark.analysis_result.anon_form.anon_function_birth_grandfather.anon_hit.anon_inbound.anon_replay.anon_submission.anon_token.api_field_warning.api_request_log.app.app_config.app_config_history.app_definition_version.app_error.app_execution.app_instance.app_log.app_log_muted_pattern.app_log_norm_exception.app_rate_limit.app_setting.app_sync_status.approach.artifact.assessment.assessment_item.assessment_result.assignment_session.assist.assist_producer_policy.assist_producer_policy_history.association_type.assurance_level.attempt.audit_broken_functions.audit_canonical_findings.audit_exemption.audit_function_deps.audit_function_runtime_probe.audit_m2m_candidates.audit_refresh_log.audit_stale_registry.audit_unregistered_candidates.base_entity_template.batch_cost_event.batch_provider_batch.batch_work_item.billing_capability.billing_capability_limit.billing_connect_account.billing_coupon.billing_coupon_redemption.billing_customer.billing_free_period_grant.billing_plan.billing_plan_limit.billing_price.billing_product.billing_spend_approval.billing_spend_guardrail.billing_stripe_event.billing_subscription.billing_usage_ledger.billing_usage_reset.billing_user_plan.board.browser_account_binding.browser_action_event.browser_authenticator_window.browser_capture.browser_control_request.browser_handoff.browser_login_attempt.browser_login_recipe.browser_profile.browser_profile_checkpoint.browser_run.browser_site_observation.browser_site_policy.browser_stream_ticket.build_lock.calendar_event.campaign_watch_ramp_gate_run.campaign_watch_switch_outbox.campaign_watch_switch_window.canvas_comment.canvas_comment_like.canvas_item.canvas_item_state.canvas_like.canvas_score.canvas_view.capture_window.carrying_rule.catalog_entries_history.catalog_entry.category.change_type_default.chat_user_usage_summary.citations.class_purchase.classifier_revision_ledger.client_callable_door.client_callable_door_retirement.client_excluded_column_unregistered.cmp_entry.cmp_feedback.code_file.code_folder.code_repository.coding_session.coding_session_entry.comment.commerce_asset_allocation.commerce_asset_grading.commerce_asset_identifier.commerce_asset_lot_event.commerce_asset_mandate_result.commerce_asset_price_factor.commerce_asset_reshoot_request.commerce_asset_review.commerce_asset_unknown.commerce_certified_printer.commerce_cloud_sync_connection.commerce_ebay_business_policy.commerce_ebay_category.commerce_ebay_category_aspect.commerce_ebay_category_tree.commerce_ebay_custom_policy.commerce_ebay_inventory_item.commerce_ebay_inventory_item_group.commerce_ebay_inventory_item_group_member.commerce_ebay_inventory_location.commerce_ebay_listing.commerce_ebay_marketplace_policy.commerce_ebay_media_asset.commerce_ebay_notification_destination.commerce_ebay_notification_event.commerce_ebay_notification_subscription.commerce_ebay_notification_topic.commerce_ebay_offer.commerce_ebay_order.commerce_ebay_order_line_item.commerce_ebay_shipping_fulfillment.commerce_ebay_store_category.commerce_human_correction.commerce_intake_artifact.commerce_intake_asset.commerce_intake_batch.commerce_label_batch.commerce_label_code.commerce_marketplace_account.commerce_marketplace_account_deletion_audit.commerce_marketplace_api_call.commerce_marketplace_rate_budget.commerce_marketplace_site.commerce_marketplace_sync_run.commerce_prediction_outcome.commerce_print_order.commerce_product.commerce_product_channel_ref.commerce_product_media.commerce_product_variant.commerce_recall_audit.communication_calendar_selected_snapshot_state.communication_channel_readiness.comparison_set.contact_medium.contact_submission.content_certification.content_ir_kind.content_ir_kind_component.content_ir_kind_component_incident.content_ir_kind_conformance.content_ir_kind_edge.content_ir_kind_example.content_ir_kind_instance.content_ir_kind_surface.content_lane.context_access_log.context_item.context_item_suggestion.context_item_value.context_value_refs.conversation.conversation_value.courts.credential_attachment.credential_item.credential_mutation_receipt.crm_address.crm_affiliation.crm_blocklist_entry.crm_contact_candidate.crm_deal.crm_deal_stage_event.crm_enrichment_call.crm_interaction.crm_merge_candidate.crm_outreach_list.crm_outreach_list_member.crm_party_merge.crm_party_research.crm_registry_ingest_run.crm_registry_source.crm_sending_claim.crm_sending_event.crm_sending_identity.crm_sending_identity_check.crm_sending_policy.custom_agent_table_trust.custom_agg_digest_checked.custom_entity_definition.custom_field_definition.custom_field_target.custom_io_outbox_consumer.custom_io_outbox_consumption.custom_record.custom_share_tails_mine_repair.custom_template.custom_template_install.cx_agent_memory.cx_agent_plan.cx_agent_task.cx_code_edit.cx_code_message_file.cx_media.cx_observational_memory.cx_observational_memory_event.cx_pending_injection.cx_request.cx_request_snapshot.cx_tool_trace.cx_user_request.cx_user_todo.data_rights_event.data_store.data_store_members.ddl_guard_log.deck_suggestion.definer_class_exemption.definer_client_grant_grandfather.definer_grant_baseline.deprecated_relation.derive_run.dev_login_audit.dict_entry.dict_provider_publication.dict_setting.dm_conversation.dm_message.dm_participant.doc_render.doc_signature.dockets.document.document_version.domain_classification.edge_payload_kind.egress_device.egress_pairing.egress_ticket.emails.embedding_cache.embeddings_google_gemini_2_1536.embeddings_oai_3_small_1536.embeddings_voyage_4_large_1024.embeddings_voyage_code_3_1024.endpoint_family_sweep_state.engine_owner_task.entity_grant.entity_protected_value.entity_protected_value_version.entity_relationship.entity_type.esign_campaign.esign_campaign_member.esign_consent_disclosure.esign_envelope.esign_envelope_certificate.esign_envelope_document.esign_envelope_event.esign_envelope_external_ref.esign_envelope_signer.esign_provider.esign_provider_binding.esign_signing_key.execution_event_cursor.extension_auth_code.external_link.external_source.extract_sweep_state.fc_card.fc_detail.fc_set.feature_doc.feature_knob.feedback_comments.feedback_user_messages.file.file_analysis.file_entities.file_overrides.file_page_annotations.file_pages.file_rag_job.file_version.files_account_tier.files_machine_written_prefix.files_sync_mapping.files_user_account.flexible_data.folder.function_contract.game_badge.game_result.game_room.global_execution.global_execution_checkpoint.global_execution_control.global_execution_event.global_meter_entry.global_origin.global_request.google_document.growth_loop_event.growth_loop_run.growth_loop_stage_run.guardian_link.guest_conversion_audit.guest_execution_log.guest_executions.guided_checklist_run.heatmap_save.hindsight_enrollment.hindsight_finding.hindsight_regression_case.hindsight_replay.hindsight_replay_step.hindsight_review.hr_access_audit.hr_access_role.hr_accommodation_request.hr_ai_evidence.hr_alert_routing_rule.hr_application.hr_approval_authority.hr_approval_delegation.hr_asset.hr_asset_assignment.hr_attendance_exception.hr_auto_close_rule.hr_availability.hr_background_check.hr_benefits_event.hr_calculation_snapshot.hr_candidate.hr_candidate_conversion.hr_candidate_message.hr_careers_portal.hr_checklist_item.hr_checklist_run.hr_checklist_template.hr_checklist_template_item.hr_compensation.hr_corrective_action.hr_course.hr_course_version.hr_credential.hr_crew.hr_deduction_code.hr_department.hr_derived_grant.hr_disposition_event.hr_earning_code.hr_eeo_response.hr_emergency_contact.hr_employee.hr_employee_private.hr_employer_profile.hr_employment.hr_employment_pin.hr_engagement.hr_establishment.hr_external_identity.hr_field_policy.hr_holiday.hr_holiday_calendar.hr_i9.hr_i9_document.hr_incident.hr_incident_party.hr_interview.hr_interview_kit.hr_job_title.hr_jurisdiction.hr_jurisdiction_rule.hr_jurisdiction_rule_class.hr_jurisdiction_rule_org_decision.hr_jurisdiction_rule_test.hr_kiosk_device.hr_kiosk_session.hr_labor_target.hr_leave_case.hr_leave_enrollment.hr_leave_ledger.hr_leave_policy.hr_leave_request.hr_legal_hold.hr_legal_hold_item.hr_location.hr_new_hire_report.hr_offer.hr_opening.hr_overtime_alert.hr_overtime_alert_rule.hr_overtime_preapproval.hr_pay_group.hr_pay_period.hr_pay_period_employment.hr_payroll_export.hr_payroll_export_line.hr_position_assignment.hr_posting.hr_posting_publication.hr_provider_binding.hr_provider_event.hr_provisioning_result.hr_punch.hr_recalculation_batch.hr_record_class.hr_records_request.hr_reference_check.hr_reporting_line.hr_requisition.hr_restricted_note.hr_retention_rule.hr_role_assignment.hr_schedule.hr_schedule_change.hr_schedule_guidance.hr_schedule_template.hr_schedule_template_shift.hr_scorecard.hr_separation.hr_shift.hr_shift_claim.hr_staffing_requirement.hr_survey.hr_survey_invitation.hr_survey_question.hr_survey_response.hr_tax_registration.hr_tax_withholding.hr_time_adjustment.hr_training_assignment.hr_training_attempt.hr_transcript_entry.hr_verification_letter_request.hr_work_interval.hr_workflow_binding.hr_workflow_decision.hr_workflow_definition.hr_workflow_event.hr_workflow_failure.hr_workflow_flow_type.hr_workflow_instance.hr_workflow_step.hr_workflow_step_definition.hr_workweek.html_extraction.iam_access_audit.iam_api_key.iam_emergency_door_request.iam_org_availability_key.iam_read_lane_v2_rollout.idempotency.industry.industry_curator.infra_status.ingest_runs.integration_connection.integration_connection_resource.interview_decision_interview.interview_decision_question.interview_document_revision.interview_hole.interview_question.interview_session.interview_turn.invitation.invitation_code.invitation_request.io_comment.io_contract.io_import.io_outbox.item.item_mastery.judge_verdict.jurisdiction_policy.keyword_classification_queue.kg_alert.kg_chunk_entities.kg_chunks.kg_clusters.kg_edges.kg_entities.kg_entity_aliases.kg_suggestion_ack.kg_sweep_queue.kg_sweep_run.kg_sweep_state.kg_value_match.knob_override.knob_override_audit.knob_rung_lock.knob_scope_kind.knob_write_door.league_membership.learn_doc.library_doc.lifecycle_archive.lifecycle_archive_row.lifecycle_audit.lifecycle_entity_plan.lifecycle_map_build.lifecycle_reference_map.lifecycle_run.lifecycle_tier_ledger.location.mandate.mandate_advance_batch_row.mandate_binding.mandate_candidate.mandate_candidate_run.mandate_candidate_run_payload.mandate_goal_clauses.mandate_observation.mandate_reference.mandate_scan.mandate_treatment.marketing_initiative.masterwork_corpus_item.masterwork_run.masterwork_run_kind.masterwork_source.math_course_structure.math_problem.matrx_action_ledger.mcp_config.mcp_server.mcp_user_conn.media_capture_handoff.media_catalog_setting.media_library_item.media_selection_item.media_selection_job.media_source_library.meet_call_invite.meet_chat_message.meet_invitee.meet_meeting.meet_note.meet_occurrence_override.meet_participant.meet_recording.meet_transcript_segment.membership.membership_grant.merge_field_provenance.message.message_template.message_template_detail.meta_excluded_schema.meta_table_stats_history.metadata_reserved_keys.migration_log.mtx_media_heal_queue.mtx_public_url_guard.ner_shadow.note.note_folder.notification.notification_channel_preference.notification_event_override.notification_event_type.notification_preference.notification_submission.notify_outsider_door_baseline.oauth_handoff_claim.opinion_clusters.opinions.ops_check_item.ops_check_run.ops_db_host_sample.ops_issue_class.ops_issue_event.ops_proof_check.ops_proof_run.ops_proof_scenario.org_admin_audit.org_change_policy.org_context_ledger.org_industries.org_member_control.org_module_config.org_plan.organization.organization_preferences.organization_visibility_version.output_feedback.outreach_acceptance.page_extraction_job.page_extraction_page_run.page_extraction_results.page_extraction_runs.page_intent_queue.page_mapping_queue.part_config.part_config_sub.party.party_contact_point.passkey_credential.pc_article.pc_episode.pc_show.pc_studio_run.pc_studio_run_asset.pdf_consolidation_log.pdf_redaction_audit.pdf_redaction_key_escrow.permission_grant.plan_cms_fill_item.plan_cms_fill_job.plan_entity.plan_node.plan_node_artifact.plan_node_step.plan_profile.platform_action_request.platform_actor_session.platform_actor_token.platform_actor_token_event.platform_class_approval_by_arman.platform_continued_access.platform_cutover_census_run.platform_cutover_evaluation_replaced.platform_cutover_evaluation_write.platform_cutover_seam.platform_cutover_seam_measure.platform_cutover_seam_press.platform_dated_change.platform_doors_only_pending_cutover.platform_google_calendar_event_create_intent.platform_google_task_create_intent.platform_kernel_fingerprint_record.platform_outcome_event.platform_outsider_consumer.platform_provision_base_contract_pending.platform_reachability.platform_reachability_rebuild_pending.platform_realtime_topic_prefix.platform_reference_category.platform_reference_declaration.platform_repo.platform_saved_view.platform_schema.platform_secure_delivery.platform_share_link.platform_strict_class_probe.podcast_race.position.processed_document.processed_document_page.product_capture_file.product_capture_item.product_capture_payload.product_capture_product.product_capture_question.project.provider_account.provider_account_credential.provision.provision_generate_target.provision_grant.provision_marker.provision_rule_message.provision_schema.provision_shape_debt.provision_spec.provision_spec_grandfather.provision_vocabulary.purpose.quiz_session.rag_ingest_run.rag_library_audit_log.rate_limit_buckets.reachability_pending.recompute_queue.record.record_alias.redaction_mapping.research_analysis.research_content.research_context_bundle.research_document.research_intent.research_keyword.research_media.research_source.research_synthesis.research_tag.research_template.research_topic.retention_policy.retrieval_audit.review_queue.route_manifest_entry.row_version.rulebook.runtime_operation_stream.runtime_operation_stream_batch.sandbox_instance.sch_agent_task.sch_run.sch_task.sch_trigger.schema_client_exposure.schema_migration_ledger.schema_migration_legacy.schema_migration_slot_grandfather.schema_templates.scope.scope_association_suggestion.scope_dataset_instance.scope_door_registry.scope_item_value_suggestion.scope_suggestion.scope_type.scrape_domain.scrape_domain_settings.scrape_failure_log.scrape_parsed_page.scrape_path_override.scrape_path_pattern.scrape_retry_queue.search_item.seo_ai_capability.seo_ai_visibility_citation.seo_ai_visibility_claim.seo_ai_visibility_panel.seo_ai_visibility_response.seo_ai_visibility_signal.seo_backlink.seo_backlink_change_event.seo_backlink_dimension_snapshot.seo_backlink_observation.seo_backlink_snapshot.seo_change_assessment.seo_change_event.seo_change_item.seo_change_metric.seo_change_set.seo_change_theory.seo_collection_run.seo_competitor.seo_competitor_observation.seo_competitor_opportunity.seo_coverage_mention.seo_coverage_tracker.seo_dimension_value_matcher.seo_engine_schedule.seo_geo_place.seo_gsc_dig_rule.seo_keyword.seo_keyword_class_rule.seo_keyword_edge.seo_keyword_facet.seo_keyword_market.seo_keyword_market_observation.seo_keyword_place.seo_keyword_saved_view.seo_keyword_topic.seo_landscape_brief.seo_link_gap_domain.seo_link_gap_match.seo_map_facet.seo_map_facet_value.seo_map_topic.seo_page_measurement_health.seo_page_performance.seo_pr_moment.seo_provider_call.seo_provider_task.seo_rank_observation.seo_rank_target.seo_raw_payload.seo_referring_domain_profile.seo_reputation_case.seo_search_performance_daily.seo_serp_mention.seo_serp_opportunity.seo_serp_result.seo_serp_snapshot.seo_site_geo_area.seo_site_keyword_offering.seo_site_keyword_value.seo_site_offering_value.seo_site_topic_value.seo_site_value_combo.seo_site_value_worth.seo_site_vocabulary.seo_source_request.seo_starter_pack.seo_starter_pack_item.seo_story_angle.seo_topic.seo_topical_map.seo_tracker_story.seo_web_analytics_daily.shareable_resource_registry.shared_canvas_item.short_link.sign_in_fk_legacy.skill.skill_detail.skill_render_definition.sms_consent.sms_conversation.sms_message.sms_message_media.sms_notification.sms_notification_preference.sms_phone_number.sms_rate_limits.sms_webhook_logs.soft_delete_cascade_job.soft_delete_edge.source_authority.stage_ref_kind.stamped_write_table.structure.studio_cleaned_segments.studio_concept_items.studio_documents.studio_module_segments.studio_raw_segments.studio_recording_chunks.studio_recording_segments.studio_run.studio_session.studio_session_settings.study_attempt.study_goal.study_media.study_plan.study_plan_block.study_plan_day.study_reminder_context.study_reminder_delivery.study_session.study_source_chunk.study_streak.study_structured_section.superseded_policy.surface.system_announcement.system_context_item.system_error.system_orgs.system_write_failure.t13_backfill_ledger.t13_default_ledger.t13_row_column_events.tag.task.task_user_state.taxonomy_node.team.template_context_items.template_scope_types.templates.test_handset_inbox.test_handset_verification.thread.tool.tool_binding.tool_bundle.tool_call.tool_definition_version.tool_executor.tool_surface_defaults.tool_test_sample.tool_ui.tool_ui_incident.tool_ui_version.topic_placement_queue.transcript.trigger_event.udt_dataset_template.udt_dataset_template_fields.udt_document.udt_document_snapshot.udt_workbook_snapshot.ui_client.ui_surface_agent_pref.ui_surface_agent_role.ui_surface_client_tool.ui_surface_config.ui_surface_item_type.ui_surface_value.ui_surface_write_target.univer_payload.unsubscribe_token.uploads_inflight.user.user_achievement.user_active_context.user_analysis_preference.user_email_preference.user_entity_state.user_feedback.user_follows.user_form_profile.user_markdown_sample.user_memory.user_preference.user_profile.user_secret.user_secret_audit.user_secret_grant.user_stat.user_storage_usage.user_surface_state.vault_fill_approvals.vault_fill_devices.vault_fill_nonces.visibility_cache.visibility_epoch.voice.war_room.wbx_demo.wbx_guidance.wbx_highlight.wbx_pattern.wbx_recipe.wbx_screenshot.wbx_seo_audit.wc_claim.wc_impairment_definition.wc_injury.wc_report.web_analysis_item.web_brand.web_brand_asset.web_brand_offering.web_business_fact.web_business_location.web_channel_analytics_daily.web_crawl_event.web_crawl_preset.web_crawl_schedule.web_crawl_session.web_crawl_url.web_discovered_item.web_finding.web_gsc_page_stat.web_link_edge.web_listing_publisher.web_location_listing.web_news_item.web_offering_template.web_page.web_page_content.web_page_evidence.web_page_sitemap.web_property.web_provider.web_result.web_screenshot.web_site.web_site_endpoint_rule.web_site_item_config.web_site_offering.web_sitemap.web_snapshot.web_tag_manager_snapshot.web_voice_fingerprint.web_youtube_video.webhook_deliveries.webhook_dispatch_state.webhooks.wf_node_data_slot.work_claim.work_item.workbook.worker_heartbeat.workflow.workflow_card.workflow_checkpoint.workflow_comparison.workflow_definition_version.workflow_idempotency.workflow_job.workflow_node_events.workflow_node_outcome.workflow_plan.workflow_plan_event.workflow_plan_sample.workflow_recovery_audit.workflow_run.workflow_run_cost.workflow_run_facts.workflow_run_log.workflow_runtime_surface.workflow_template.workflow_trigger.workflow_trigger_fire.workflow_work_item.working_document.write_guard_key.youtube_quota_day.youtube_search.youtube_video`.split(`.`));function _D(e){return typeof e==`string`&&gD.has(e)}function vD(e){return typeof e==`string`?JSON.stringify(e):e==null?String(e):JSON.stringify(e)}var yD={cx_message:`message`,cx_conversation:`conversation`,user_file:`file`,agent_app:`app`,chat_block:`message`};function bD(...e){for(let t of e)if(t)return t;return null}function xD(e){function t(t,n,r){let i=`association ${t} ${r} (got ${vD(n)})`;return e({code:`invalid_argument`,message:`[associations] invalid argument — ${i}`,context:{field:t}}),{code:`invalid_argument`,message:i}}return{checkUuid(e,n){return UE(n)?null:t(e,n,`must be a UUID`)},checkUuidArray(e,n){for(let r=0;r<n.length;r++)if(!UE(n[r]))return t(`${e}[${r}]`,n[r],`must be a UUID`);return null},checkToken(e,n){return typeof n!=`string`||n.length===0?t(e,n,`must be a non-empty entity-type token`):_D(n)?null:t(e,n,`is not a registered entity type (platform.entity_types) — add it to the registry + upgrade @ai-matrx/associations, never guess a token`)},normalizeEntityToken(t){let n=yD[t];return n?(e({code:`legacy_token_alias`,message:`[associations] phantom entity token ${JSON.stringify(t)} mapped to canonical ${JSON.stringify(n)} — fix the callsite to emit the canonical token (FOUND_DEFECTS D27)`,context:{value:t,canonical:n}}),n):t}}}function SD(e,t,n,r){let i={code:e,message:t};return n!==void 0&&(i.detail=n),r!==void 0&&(i.hint=r),{ok:!1,error:i}}function CD(e){return{ok:!0,data:e}}function wD(e){if(typeof navigator<`u`&&navigator.onLine===!1||e instanceof TypeError)return!0;if(e&&typeof e==`object`){let t=e;if(t.code||t.status)return!1;let n=`${typeof t.name==`string`?t.name:``} ${typeof t.message==`string`?t.message:``}`.toLowerCase();return n.includes(`failed to fetch`)||n.includes(`networkerror`)||n.includes(`network request failed`)||n.includes(`load failed`)||n.includes(`upstream connect error or disconnect/reset before headers`)}return!1}function TD(e){if(!e||typeof e!=`object`)return!1;let t=e;return typeof t.code==`string`&&typeof t.message==`string`}function ED(e){if(e&&typeof e==`object`){let t=e;return{pgCode:typeof t.code==`string`&&t.code?t.code:null,pgMessage:typeof t.message==`string`&&t.message?t.message:null,pgHint:typeof t.hint==`string`&&t.hint?t.hint:void 0}}return{pgCode:null,pgMessage:null,pgHint:void 0}}function DD(e){function t(t){let{pgCode:n,pgMessage:r,pgHint:i}=ED(t);if(n===`PGRST202`){let a=`demanded schema violation: the database this client is pointed at cannot answer a demanded @ai-matrx/associations RPC (PostgREST PGRST202 — function not found). This package DEMANDS the platform `+`schema (README § The demanded schema). ${r??``}`.trim();e({code:`demanded_schema_violation`,message:a,context:{pgCode:n,detail:t}});let o={code:`demanded_schema_violation`,message:a,detail:t};return i!==void 0&&(o.hint=i),o}if(wD(t)?e({code:`transport_failure`,message:`network unreachable (browser offline?)`,context:{transient:!0,detail:t}}):TD(t)||e({code:`internal`,message:r??`Unexpected error talking to the data source`,context:{detail:t}}),n===`PGRST116`)return{code:`not_found`,message:`Not found`};if(n===`42501`)return{code:`forbidden_org`,message:`Permission denied`};if(n===`PGRST301`||n===`PGRST303`)return{code:`unauthorized`,message:`Your session expired`};if(n===`57014`){let e={code:`internal`,message:`The database took too long to respond`,detail:t};return i!==void 0&&(e.hint=i),e}let a={message:r??`Unexpected error talking to the data source`,code:`internal`,detail:t};return i!==void 0&&(a.hint=i),a}function n(e){let n=t(e);return[n.code,n.message,n.detail,n.hint]}return{ok:CD,err:SD,mapPgError:t,mapPgErrorPair:n}}var OD={dataset:{label:`Table`},structured_list:{label:`Pick list`}};function kD(e){return Object.prototype.hasOwnProperty.call(OD,e)}function AD(e){return kD(e)?OD[e].label:null}var jD=`created_by`,MD=`organization_id`,ND=new Set([`utility`,`source`,`destination`,`hybrid`,`container`]);function PD(e){return e!==null&&ND.has(e)}var FD={cld_file:`file`};function ID(e){return FD[e]??e}var LD=(()=>{let e={};for(let t of Object.keys(hD)){let n=hD[t],r=`${n.schema}.${n.table}`;r in e||(e[r]=t)}return e})(),RD=(()=>{let e={};for(let t of Object.keys(hD)){let n=hD[t].table;e[n]=n in e?null:t}return e})();function zD(e,t){let n={...t??{}},r=new Set;function i(t){return r.has(t)||(r.add(t),e({code:`retired_entity_token`,message:`[entityRegistry] "${t}" is not in the live entity vocabulary (retired or renamed in platform.entity_types). The host still references it; rename the reference to the live token, or drop it. Serving a stand-in so the page can render.`,context:{token:t}})),{token:t,schema:``,table:``,label:`${t} (retired)`,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!1,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null}}function a(e){let t=AD(e);return t===null?null:{token:e,schema:``,table:``,label:t,baseTier:1,isComponent:!1,isModule:!1,isListed:!1,scopeable:!1,category:null,referencePickable:!1,titleColumn:null,contentRole:null,referenceCategory:null}}function o(t){let r=hD[t]??a(t)??i(t),o=n[t],s=o?.labelPlural??`${r.label}s`,c=r.titleColumn,l=PD(r.contentRole)?r.contentRole:`destination`;r.contentRole!==null&&!PD(r.contentRole)&&e({code:`invalid_content_role`,message:`[entityRegistry] "${t}" has invalid content_role "${r.contentRole}" in platform.entity_types; using destination as a loud recovery.`,context:{token:t,contentRole:r.contentRole}});let u=o?.ownerColumn===void 0?jD:o.ownerColumn??``,d=o?.orgColumn===void 0?MD:o.orgColumn??``;return{token:t,label:r.label,labelPlural:s,schema:r.schema,table:r.table,titleColumn:c,ownerColumn:u,orgColumn:d,Icon:o?.Icon??null,hrefFor:o?.hrefFor??null,scopeable:r.scopeable,category:r.category,contentRole:l,listCandidates:o?.listCandidates??null,canListCandidates:c!==null||o?.listCandidates!==void 0}}return{registerEntityOverlay(e){for(let t of Object.keys(e)){let r=e[t];r&&(n[t]={...n[t],...r})}},getEntityInfo:o,tryGetEntityInfo(e){let t=ID(e);return _D(t)?o(t):kD(e)?o(e):null},tryGetEntityInfoByTable(e,t){let n=LD[`${e}.${t}`];return n?o(n):null},tryGetEntityInfoByUniqueTableName(e){let t=RD[e];return t?o(t):null},curatedTokens(){return Object.keys(hD).filter(e=>{let t=hD[e],r=n[e];return PD(t.contentRole)&&(t.titleColumn!=null||r?.listCandidates!==void 0)})},listableTokens(){return Object.keys(hD).filter(t=>{let r=hD[t];if(!r.referencePickable)return!1;let i=n[t],a=r.titleColumn!=null||i?.listCandidates!==void 0;return a||e({code:`unlistable_pickable_token`,message:`[entityRegistry] "${t}" is reference_pickable in platform.entity_types but has NO title_column and no host candidate source — set its title_column in the registry or register a listCandidates override.`,context:{token:t}}),a})}}}var BD={"artifact>processed_document":`source`,"calendar_event>conversation":`conversation_attached_resource`,"calendar_event>party":`attendee`,"code_file>code_repository":`in_repository`,"content_ir_kind_instance>content_ir_kind_instance":`part_of`,"conversation>party":`produced_by`,"fc_set>processed_document":`source`,"file>hr_application":`evidence`,"file>hr_employee":`personnel_document`,"file>hr_employment":`evidence`,"file>hr_incident":`evidence`,"file>hr_leave_case":`evidence`,"google_document>crm_deal":`attached_to`,"google_document>party":`attached_to`,"google_document>project":`attached_to`,"google_document>task":`attached_to`,"hr_candidate>party":`candidate_party`,"hr_course>hr_job_title":`role_curriculum`,"hr_credential>hr_job_title":`required_credential`,"hr_employee>record":`scope_member`,"hr_employee>scope":`scope_member`,"integration_connection_resource>conversation":`conversation_attached_resource`,"media_source_library>youtube_video":`catalogued_source`,"message>content_ir_kind_instance":`produced_by`,"note>calendar_event":`about`,"note>hr_candidate":`hr_note`,"note>hr_employee":`hr_note`,"organization>seo_keyword":`keyword_library`,"pc_episode>processed_document":`source`,"processed_document>code_repository":`in_repository`,"processed_document>media_source_library":`catalogued_source`,"processed_document>record":`about`,"processed_document>research_topic":`research_source`,"processed_document>scope":`about`,"processed_document>tag":`about`,"processed_document>web_site":`crawled_page`,"quiz_session>processed_document":`source`,"research_source>youtube_video":`Canonical YouTube video`,"web_youtube_video>seo_map_topic":`covers`,"youtube_video>transcript":`video_transcript`};function VD(e,t){return BD[`${e}>${t}`]}function HD(e){return{id:e.id,direction:e.direction===`incoming`?`incoming`:`outgoing`,otherType:e.other_type,otherId:e.other_id,role:e.role??null,label:e.label??null,position:e.position??null,metadata:e.metadata??{},orgId:e.organization_id??null,createdAt:e.created_at}}function UD(e){return{id:e.id,targetId:e.target_id,sourceType:e.source_type,sourceId:e.source_id,role:e.role??null,label:e.label??null,position:e.position??null,metadata:e.metadata??{},orgId:e.organization_id??null,createdAt:e.created_at}}function WD(e){return{id:e.id,sourceId:e.source_id,targetType:e.target_type,targetId:e.target_id,role:e.role??null,label:e.label??null,position:e.position??null,metadata:e.metadata??{},orgId:e.organization_id??null,createdAt:e.created_at}}function GD(e){let{dataSource:t,identity:n,guards:r}=e,{ok:i,err:a,mapPgError:o,mapPgErrorPair:s}=e.rpc,{checkToken:c,checkUuid:l,checkUuidArray:u,normalizeEntityToken:d}=r;return{async listForEntity(e,r){try{n.requireUserId();let o=d(e),u=bD(c(`type`,o),l(`id`,r));if(u)return{ok:!1,error:u};let{data:f,error:p}=await t.rpc(`assoc_for_entity`,{p_type:o,p_id:r});return p?a(...s(p)):i({edges:(Array.isArray(f)?f:[]).map(HD)})}catch(e){return{ok:!1,error:o(e)}}},async listConversationFiles(e){try{n.requireUserId();let r=l(`conversationId`,e);if(r)return{ok:!1,error:r};let{data:o,error:c}=await t.rpc(`conversation_files`,{p_conversation_id:e});return c?a(...s(c)):i({files:(Array.isArray(o)?o:[]).map(e=>({fileId:e.file_id,label:e.label??null,metadata:e.metadata??{},createdAt:e.created_at}))})}catch(e){return{ok:!1,error:o(e)}}},async listForTargets(e,r){try{n.requireUserId();let o=d(e),l=Array.from(new Set(r));if(l.length===0)return i({edges:[]});let f=bD(c(`targetType`,o),u(`targetIds`,l));if(f)return{ok:!1,error:f};let{data:p,error:m}=await t.rpc(`assoc_for_targets`,{p_target_type:o,p_target_ids:l});return m?a(...s(m)):i({edges:(Array.isArray(p)?p:[]).map(UD)})}catch(e){return{ok:!1,error:o(e)}}},async listForTargetsVisible(e,r){try{n.requireUserId();let o=d(e),l=Array.from(new Set(r));if(l.length===0)return i({edges:[]});let f=bD(c(`targetType`,o),u(`targetIds`,l));if(f)return{ok:!1,error:f};let{data:p,error:m}=await t.rpc(`assoc_members_visible`,{p_target_type:o,p_target_ids:l});return m?a(...s(m)):i({edges:(Array.isArray(p)?p:[]).map(UD)})}catch(e){return{ok:!1,error:o(e)}}},async listForSources(e,r,l){try{n.requireUserId();let o=d(e),f=l==null?void 0:d(l),p=Array.from(new Set(r));if(p.length===0)return i({edges:[]});let m=bD(c(`sourceType`,o),u(`sourceIds`,p),f?c(`targetType`,f):null);if(m)return{ok:!1,error:m};let{data:h,error:g}=await t.rpc(`assoc_for_sources`,{p_source_type:o,p_source_ids:p,...f?{p_target_type:f}:{}});return g?a(...s(g)):i({edges:(Array.isArray(h)?h:[]).map(WD)})}catch(e){return{ok:!1,error:o(e)}}},async add(e){try{n.requireUserId();let r=d(e.sourceType),o=d(e.targetType),u=bD(c(`sourceType`,r),l(`sourceId`,e.sourceId),c(`targetType`,o),l(`targetId`,e.targetId),e.orgId==null?null:l(`orgId`,e.orgId));if(u)return{ok:!1,error:u};if(r===`file`&&o===`conversation`){if(e.role!=null||e.position!=null||e.payloadKind!=null||e.payload!=null)return a(`invalid_argument`,`File conversation attachments support only the canonical role-less edge`);let{data:n,error:r}=await t.rpc(`conversation_file_add`,{p_conversation_id:e.targetId,p_file_id:e.sourceId,p_label:e.label,p_metadata:e.metadata??{},p_replace_metadata:e.replaceMetadata??!1});return r?a(...s(r)):!n||typeof n!=`string`?a(`internal`,`conversation_file_add returned no association id`):i({id:n})}if(e.replaceMetadata!=null)return a(`invalid_argument`,`replaceMetadata is supported only for file conversation attachments`);let{data:f,error:p}=await t.rpc(`assoc_add`,{p_source_type:r,p_source_id:e.sourceId,p_target_type:o,p_target_id:e.targetId,p_org_id:e.orgId,p_label:VD(r,o)??e.label,p_metadata:e.metadata??{},p_role:e.role,p_position:e.position,p_payload_kind:e.payloadKind,p_payload:e.payload??void 0});return p?a(...s(p)):!f||typeof f!=`string`?a(`internal`,`assoc_add returned no association id`):i({id:f})}catch(e){return{ok:!1,error:o(e)}}},async remove(e){try{n.requireUserId();let r=d(e.sourceType),o=d(e.targetType),u=bD(c(`sourceType`,r),l(`sourceId`,e.sourceId),c(`targetType`,o),l(`targetId`,e.targetId));if(u)return{ok:!1,error:u};if(r===`file`&&o===`conversation`){if(e.role!=null)return a(`invalid_argument`,`File conversation attachments support only the canonical role-less edge`);let{error:n}=await t.rpc(`conversation_file_remove`,{p_conversation_id:e.targetId,p_file_id:e.sourceId});return n?a(...s(n)):i(null)}let{error:f}=await t.rpc(`assoc_remove`,{p_source_type:r,p_source_id:e.sourceId,p_target_type:o,p_target_id:e.targetId,p_role:e.role});return f?a(...s(f)):i(null)}catch(e){return{ok:!1,error:o(e)}}},async setTargets(e){try{n.requireUserId();let r=d(e.sourceType),o=d(e.targetType),f=Array.from(new Set(e.targetIds)),p=bD(c(`sourceType`,r),l(`sourceId`,e.sourceId),c(`targetType`,o),u(`targetIds`,f),e.orgId==null?null:l(`orgId`,e.orgId));if(p)return{ok:!1,error:p};let{error:m}=await t.rpc(`assoc_set_targets`,{p_source_type:r,p_source_id:e.sourceId,p_target_type:o,p_target_ids:f,p_org_id:e.orgId,p_role:e.role});return m?a(...s(m)):i(null)}catch(e){return{ok:!1,error:o(e)}}},async addAgentResource(e){try{n.requireUserId();let r=d(e.sourceType),o=bD(l(`agentId`,e.agentId),c(`sourceType`,r),l(`sourceId`,e.sourceId));if(o)return{ok:!1,error:o};let{data:u,error:f}=await t.rpc(`agent_resource_add`,{p_agent_id:e.agentId,p_source_type:r,p_source_id:e.sourceId,p_label:e.label,p_metadata:e.metadata??{}});return f?a(...s(f)):!u||typeof u!=`string`?a(`internal`,`agent_resource_add returned no association id`):i({id:u})}catch(e){return{ok:!1,error:o(e)}}},async removeAgentResource(e){try{n.requireUserId();let r=d(e.sourceType),o=bD(l(`agentId`,e.agentId),c(`sourceType`,r),l(`sourceId`,e.sourceId));if(o)return{ok:!1,error:o};let{error:u}=await t.rpc(`agent_resource_remove`,{p_agent_id:e.agentId,p_source_type:r,p_source_id:e.sourceId});return u?a(...s(u)):i(null)}catch(e){return{ok:!1,error:o(e)}}},async removeForEntity(e,r){try{n.requireUserId();let o=d(e),u=bD(c(`type`,o),l(`id`,r));if(u)return{ok:!1,error:u};let{error:f}=await t.rpc(`assoc_remove_for_entity`,{p_type:o,p_id:r});return f?a(...s(f)):i(null)}catch(e){return{ok:!1,error:o(e)}}}}}function KD(e){return{id:e.id,orgId:e.organization_id??null,dimension:e.dimension,name:e.name,slug:e.slug??null,parentId:e.parent_id??null,isSystem:!!e.is_system,color:e.color??null,icon:e.icon??null,position:e.position??null,metadata:e.metadata&&typeof e.metadata==`object`&&!Array.isArray(e.metadata)?e.metadata:null}}function qD(e){let{dataSource:t,identity:n}=e,{ok:r,err:i,mapPgError:a,mapPgErrorPair:o}=e.rpc;return{async list(e){try{n.requireUserId();let{data:a,error:s}=await t.rpc(`cat_list`,{p_dimension:e});return s?i(...o(s)):r({categories:(Array.isArray(a)?a:[]).map(KD)})}catch(e){return{ok:!1,error:a(e)}}},async create(e){try{n.requireUserId();let{data:a,error:s}=await t.rpc(`cat_create`,{p_dimension:e.dimension,p_name:e.name,p_org_id:e.orgId,p_parent_id:e.parentId??void 0,p_color:e.color??void 0,p_icon:e.icon??void 0,p_slug:e.slug??void 0});return s?i(...o(s)):!a||typeof a!=`string`?i(`internal`,`cat_create returned no category id`):r({id:a})}catch(e){return{ok:!1,error:a(e)}}},async update(e){try{n.requireUserId();let{data:a,error:s}=await t.rpc(`cat_update`,{p_category_id:e.id,p_name:e.name,p_slug:e.slug??void 0,p_color:e.color??void 0,p_icon:e.icon??void 0,p_position:e.position??void 0});return s?i(...o(s)):!a||typeof a!=`string`?i(`internal`,`cat_update returned no category id`):r({id:a})}catch(e){return{ok:!1,error:a(e)}}},async reparent(e){try{n.requireUserId();let{data:a,error:s}=await t.rpc(`cat_reparent`,{p_category_id:e.id,p_parent_id:e.parentId??void 0});return s?i(...o(s)):!a||typeof a!=`string`?i(`internal`,`cat_reparent returned no category id`):r({id:a})}catch(e){return{ok:!1,error:a(e)}}},async delete(e){try{n.requireUserId();let{data:a,error:s}=await t.rpc(`cat_delete`,{p_category_id:e});return s?i(...o(s)):!a||typeof a!=`string`?i(`internal`,`cat_delete returned no category id`):r({id:a})}catch(e){return{ok:!1,error:a(e)}}}}}function JD(e){return{entityType:e.entity_type,entityId:e.entity_id,isFavorite:e.is_favorite,isPinned:e.is_pinned,isHidden:e.is_hidden,lastViewedAt:e.last_viewed_at??null}}function YD(e){let{dataSource:t,identity:n}=e,{ok:r,err:i,mapPgError:a,mapPgErrorPair:o}=e.rpc,s={async setState(e){try{n.requireUserId();let{error:a}=await t.rpc(`ues_set`,{p_entity_type:e.entityType,p_entity_id:e.entityId,p_is_favorite:e.isFavorite,p_is_pinned:e.isPinned,p_is_hidden:e.isHidden});return a?i(...o(a)):r(null)}catch(e){return{ok:!1,error:a(e)}}},async setFavorite(e,t,n){return s.setState({entityType:e,entityId:t,isFavorite:n})},async setPinned(e,t,n){return s.setState({entityType:e,entityId:t,isPinned:n})},async setHidden(e,t,n){return s.setState({entityType:e,entityId:t,isHidden:n})},async list(e){try{n.requireUserId();let{data:a,error:s}=await t.rpc(`ues_list`,{p_kind:e});return s?i(...o(s)):r({items:(Array.isArray(a)?a:[]).map(JD)})}catch(e){return{ok:!1,error:a(e)}}},async getBulk(e,s){try{n.requireUserId();let a=Array.from(new Set(s)),{data:c,error:l}=await t.rpc(`ues_get_bulk`,{p_entity_type:e,p_entity_ids:a});return l?i(...o(l)):r({items:(Array.isArray(c)?c:[]).map(t=>({entityType:e,entityId:t.entity_id,isFavorite:t.is_favorite,isPinned:t.is_pinned,isHidden:t.is_hidden,lastViewedAt:t.last_viewed_at??null}))})}catch(e){return{ok:!1,error:a(e)}}},async touch(e,s){try{n.requireUserId();let{error:a}=await t.rpc(`ues_touch`,{p_entity_type:e,p_entity_id:s});return a?i(...o(a)):r(null)}catch(e){return{ok:!1,error:a(e)}}}};return s}function XD(e){let{dataSource:t,registry:n,errorSink:r}=e,i=async e=>{let{data:n,error:r}=await t.rpc(`reference_search_candidates`,e);return r?{data:null,error:r}:{data:Array.isArray(n)?n:[],error:null}};async function a(e){let{token:t,search:a,limit:o=100}=e,s=n.getEntityInfo(t);if(s.listCandidates)try{return await s.listCandidates({...a===void 0?{}:{search:a},limit:o})}catch(e){let n=e instanceof Error?e.message:`Failed to load candidates`;return r({code:`candidate_override_failed`,message:`[listAssociationCandidates] override failed for "${t}": ${n}`,context:{token:t,detail:e}}),{ok:!1,error:n}}if(!s.canListCandidates||!s.titleColumn){let e=`Entity "${t}" has no title column — set one in platform.entity_types (or register a listCandidates override) before listing candidates`;return r({code:`unlistable_token`,message:`[listAssociationCandidates] ${e}`,context:{token:t}}),{ok:!1,error:e}}let c=a?.trim()||void 0,{data:l,error:u}=await i({p_token:t,...c===void 0?{}:{p_search:c},p_limit:o});return u?(r({code:`candidate_rpc_failed`,message:`[listAssociationCandidates] candidate RPC failed for "${t}": ${u.message}`,context:{token:t,detail:u}}),{ok:!1,error:u.message}):{ok:!0,data:l.map(e=>({id:e.id,title:e.title?.trim()||`Untitled`}))}}async function o(e){let{tokens:t,search:r,perTokenLimit:i=5,concurrency:o=6}=e,s=t??n.listableTokens();if(s.length===0)return{results:[],failures:[]};let c=[],l=[],u=0;async function d(){for(;u<s.length;){let e=s[u];if(u+=1,!e)continue;let t=await a({token:e,search:r,limit:i});if(t.ok)for(let n of t.data)c.push({...n,token:e});else l.push({token:e,error:t.error})}}await Promise.all(Array.from({length:Math.min(o,s.length)},d));let f=new Map(s.map((e,t)=>[e,t]));return c.sort((e,t)=>{let n=f.get(e.token)??0,r=f.get(t.token)??0;return n===r?e.title.localeCompare(t.title):n-r}),l.sort((e,t)=>(f.get(e.token)??0)-(f.get(t.token)??0)),{results:c,failures:l}}return{callReferenceSearchCandidates:i,listAssociationCandidates:a,searchCandidatesAcrossTokens:o}}var ZD=200;function QD(e,t){return`${e}:${t}`}function $D(e,t){let{registry:n,errorSink:r}=e,i=new Map;return{get(e,t){return i.get(QD(e,t))??null},prime(e,t,n){let r=n.trim();r&&i.set(QD(e,t),r)},fallback(e){return`Untitled ${n.tryGetEntityInfo(e)?.label??de(e)}`},async fetch(e,a){let o=new Map;if(a.length===0)return o;let s=n.tryGetEntityInfo(e),c=[];for(let t of a){let n=i.get(QD(e,t));n===void 0?c.push(t):o.set(t,n)}if(c.length===0||!s?.titleColumn)return o;for(let n=0;n<c.length;n+=ZD){let a=c.slice(n,n+ZD),{data:s,error:l}=await t.callReferenceSearchCandidates({p_token:e,p_ids:a,p_limit:a.length});if(l){r({code:`title_rpc_failed`,message:`[fetchEntityTitles] candidate RPC failed for "${e}": ${l.message}`,context:{token:e,chunkStart:n,chunkSize:a.length,detail:l}});continue}for(let t of s){let n=t.title?.trim();n&&(i.set(QD(e,t.id),n),o.set(t.id,n))}}return o}}}function eO(e,t){let{dataSource:n,registry:r,errorSink:i}=e;function a(e,t){if(!r.getEntityInfo(e).titleColumn){let n=`Entity "${e}" has no title_column in platform.entity_types — add one in the registry before ${t}`;return i({code:`missing_title_column`,message:`[entityRows] ${n}`,context:{token:e}}),{ok:!1,error:n}}return{ok:!0}}return{async createEntityRow(e,o){let s=a(e,`creating rows`);if(!s.ok)return s;let c=o.title.trim();if(!c)return{ok:!1,error:`Name is required`};let l=Object.keys(o.extraColumns??{});if(l.length>0){let t=`A new ${r.getEntityInfo(e).label} cannot be created here with ${l.join(`, `)}: the shared create door writes the name, the owner and the organization and nothing else. Create it with this feature's own create service, then attach it.`;return i({code:`entity_row_extra_columns_unsupported`,message:`[createEntityRow] extraColumns are not writable through entity_row_create for "${e}": ${l.join(`, `)}`,context:{token:e,extras:l}}),{ok:!1,error:t}}if(!o.orgId){let t=`Name the organization this ${r.getEntityInfo(e).label} belongs to.`;return i({code:`entity_row_missing_organization`,message:`[createEntityRow] no organization supplied for "${e}"; entity_row_create requires one`,context:{token:e}}),{ok:!1,error:t}}try{let{data:r,error:a}=await n.rpc(`entity_row_create`,{p_token:e,p_title:c,p_organization_id:o.orgId});if(a)return i({code:`entity_row_insert_failed`,message:`[createEntityRow] entity_row_create failed for "${e}": ${a.message}`,context:{token:e,detail:a}}),{ok:!1,error:a.message};let s=r;if(!s||typeof s.id!=`string`||!s.id)return i({code:`entity_row_insert_failed`,message:`[createEntityRow] entity_row_create returned no id for "${e}"`,context:{token:e,detail:r}}),{ok:!1,error:`The create door returned no record.`};let l=s.id,u=typeof s.title==`string`&&s.title?s.title:c;return t.prime(e,l,u),{ok:!0,data:{id:l,title:u}}}catch(t){let n=t instanceof Error?t.message:`Failed to create`;return i({code:`entity_row_insert_failed`,message:`[createEntityRow] exception for "${e}": ${n}`,context:{token:e,detail:t}}),{ok:!1,error:n}}},async renameEntityRow(e,r,o){let s=a(e,`renaming rows`);if(!s.ok)return s;let c=o.trim();if(!c)return{ok:!1,error:`Name is required`};try{let{error:a}=await n.rpc(`entity_row_rename`,{p_token:e,p_id:r,p_title:c});return a?(i({code:`entity_row_update_failed`,message:`[renameEntityRow] entity_row_rename failed for "${e}": ${a.message}`,context:{token:e,id:r,detail:a}}),{ok:!1,error:a.message}):(t.prime(e,r,c),{ok:!0})}catch(t){let n=t instanceof Error?t.message:`Failed to rename`;return i({code:`entity_row_update_failed`,message:`[renameEntityRow] exception for "${e}": ${n}`,context:{token:e,id:r,detail:t}}),{ok:!1,error:n}}}}}function tO(e,t){let n=e[0]??{code:`internal`,message:`unknown failure`};return{code:e.every(e=>e.code===n.code)?n.code:`internal`,message:`${e.length}/${t} association edge(s) failed: ${n.message}`,detail:e}}function nO(e){return[e.code,e.message,e.detail]}function rO(e){async function t(t){if(t.length===0)return CD({ids:[]});let n=await Promise.all(t.map(t=>e.add({sourceType:t.source.type,sourceId:t.source.id,targetType:t.target.type,targetId:t.target.id,...t.orgId===void 0?{}:{orgId:t.orgId},...t.label===void 0?{}:{label:t.label},...t.metadata===void 0?{}:{metadata:t.metadata},...t.role===void 0?{}:{role:t.role},...t.position===void 0?{}:{position:t.position}}))),r=[],i=[];for(let e of n)pD(e)?i.push(e.error):r.push(e.data.id);return i.length>0?SD(...nO(tO(i,t.length))):CD({ids:r})}return{linkEdges:t,async linkOneToMany({source:e,targets:n,attrs:r}){return t(n.map(t=>({source:e,target:t,...r})))},async linkManyToOne({sources:e,target:n,attrs:r}){return t(e.map(e=>({source:e,target:n,...r})))},async replaceTargets(t){return e.setTargets({sourceType:t.source.type,sourceId:t.source.id,targetType:t.targetType,targetIds:t.targetIds,...t.orgId===void 0?{}:{orgId:t.orgId},...t.role===void 0?{}:{role:t.role}})},async linkCreated(e){return t(e.targets.map(t=>({source:e.created,target:t,...e.attrs})))},async unlinkEdges(t){if(t.length===0)return CD(null);let n=await Promise.all(t.map(t=>e.remove({sourceType:t.source.type,sourceId:t.source.id,targetType:t.target.type,targetId:t.target.id,...t.role===void 0?{}:{role:t.role}}))),r=[];for(let e of n)pD(e)&&r.push(e.error);return r.length>0?SD(...nO(tO(r,t.length))):CD(null)}}}function iO(e){return{id:e.id,orgId:e.organization_id??null,entityType:e.entity_type,entityId:e.entity_id,parentId:e.parent_id??null,body:e.body,createdAt:e.created_at,updatedAt:e.updated_at,createdBy:e.created_by??null,author:{email:e.author_email??null,displayName:e.author_display_name??null,avatarUrl:e.author_avatar_url??null},authorAgent:e.author_agent_id?{id:e.author_agent_id,name:e.author_agent_name??null}:null,anchor:e.anchor&&typeof e.anchor==`object`?e.anchor:null}}function aO(e){let{dataSource:t,identity:n,guards:r}=e,{ok:i,err:a,mapPgError:o,mapPgErrorPair:s}=e.rpc;return{async listForEntity(e,c){try{n.requireUserId();let o=r.normalizeEntityToken(e),l=bD(r.checkToken(`entityType`,o),r.checkUuid(`entityId`,c));if(l)return{ok:!1,error:l};let{data:u,error:d}=await t.rpc(`cmt_list`,{p_entity_type:o,p_entity_id:c});return d?a(...s(d)):i({comments:(Array.isArray(u)?u:[]).map(iO)})}catch(e){return{ok:!1,error:o(e)}}},async add(e){try{n.requireUserId();let o=r.normalizeEntityToken(e.entityType),c=bD(r.checkToken(`entityType`,o),r.checkUuid(`entityId`,e.entityId),e.parentId==null?null:r.checkUuid(`parentId`,e.parentId));if(c)return{ok:!1,error:c};if(!e.body||e.body.trim().length===0)return a(`invalid_argument`,`comment body must be non-empty`);let{data:l,error:u}=await t.rpc(`cmt_add`,{p_entity_type:o,p_entity_id:e.entityId,p_body:e.body,p_parent_id:e.parentId??void 0,p_org_id:e.orgId??void 0,...e.anchor?{p_anchor:e.anchor}:{}});return u?a(...s(u)):!l||typeof l!=`string`?a(`internal`,`cmt_add returned no comment id`):i({id:l})}catch(e){return{ok:!1,error:o(e)}}},async edit(e,c){try{n.requireUserId();let o=r.checkUuid(`commentId`,e);if(o)return{ok:!1,error:o};if(!c||c.trim().length===0)return a(`invalid_argument`,`comment body must be non-empty`);let{error:l}=await t.rpc(`cmt_edit`,{p_id:e,p_body:c});return l?a(...s(l)):i(null)}catch(e){return{ok:!1,error:o(e)}}},async remove(e){try{n.requireUserId();let o=r.checkUuid(`commentId`,e);if(o)return{ok:!1,error:o};let{error:c}=await t.rpc(`cmt_delete`,{p_id:e});return c?a(...s(c)):i(null)}catch(e){return{ok:!1,error:o(e)}}}}}function oO(e,t){return`${e}:${t}`}var sO=Object.freeze({status:`idle`,edges:Object.freeze([]),fetchedAt:null,error:null}),cO=Object.freeze({status:`idle`,categories:Object.freeze([]),fetchedAt:null,error:null}),lO=Object.freeze({status:`idle`,comments:Object.freeze([]),fetchedAt:null,error:null});function uO(e){if(!e||typeof e.dataSource?.rpc!=`function`)throw Error(`@ai-matrx/associations: the REQUIRED dataSource port is missing (need an object with rpc(fn, args) — a supabase-js client satisfies it structurally). The package IS data operations; there is no degraded mode without one.`);if(typeof e.identity?.requireUserId!=`function`)throw Error(`@ai-matrx/associations: the REQUIRED identity port is missing (need requireUserId(): string that THROWS when unauthenticated). Identity never comes from a store import.`);let t=typeof e.errorSink==`function`?e.errorSink:mD(),n=zD(t,e.entityOverlay),r={dataSource:e.dataSource,identity:e.identity,errorSink:t,guards:xD(t),rpc:DD(t),registry:n},i=GD(r),a=qD(r),o=YD(r),s=XD(r),c=$D(r,s),l=eO(r,c),u=rO(i),d=aO(r),f=new Map,p=new Map,m=new Map,h=new Map,g=new Map,_=new Map,v=new Map,y=new Map,b=new Map;function x(e){let t=p.get(e);if(t)for(let e of[...t])e()}function S(e){let t=g.get(e);if(t)for(let e of[...t])e()}function C(e,t){f.set(e,t),x(e)}function w(e,t){h.set(e,t),S(e)}function T(e){let t=y.get(e);if(t)for(let e of[...t])e()}function E(e,t){v.set(e,t),T(e)}async function D(e,t,n={}){let r=n.force??!1;if(!e||!t)return;let a=oO(e,t),o=f.get(a);if(!r&&o?.status===`ready`)return;let s=m.get(a);if(!r&&o?.status===`loading`&&s)return s;let c=f.get(a);C(a,{status:`loading`,edges:c?.edges??[],fetchedAt:c?.fetchedAt??null,error:c?.error??null});let l=(async()=>{try{let n=await i.listForEntity(e,t);if(pD(n)){let e=f.get(a);C(a,{status:`error`,edges:e?.edges??[],fetchedAt:e?.fetchedAt??null,error:n.error.message})}else C(a,{status:`ready`,edges:n.data.edges,fetchedAt:Date.now(),error:null})}finally{m.delete(a)}})();return m.set(a,l),l}async function O(e,t,n,r){await Promise.all([D(e,t,{force:!0}),D(n,r,{force:!0})])}async function k(e,t={}){let n=t.force??!1;if(!e)return;let r=h.get(e);if(!n&&r?.status===`ready`)return;let i=_.get(e);if(!n&&r?.status===`loading`&&i)return i;let o=h.get(e);w(e,{status:`loading`,categories:o?.categories??[],fetchedAt:o?.fetchedAt??null,error:null});let s=(async()=>{try{let t=await a.list(e);if(pD(t)){let n=h.get(e);w(e,{status:`error`,categories:n?.categories??[],fetchedAt:n?.fetchedAt??null,error:t.error.message})}else w(e,{status:`ready`,categories:t.data.categories,fetchedAt:Date.now(),error:null})}finally{_.delete(e)}})();return _.set(e,s),s}async function A(e,t,n={}){let r=n.force??!1;if(!e||!t)return;let i=oO(e,t),a=v.get(i);if(!r&&a?.status===`ready`)return;let o=b.get(i);if(!r&&a?.status===`loading`&&o)return o;let s=v.get(i);E(i,{status:`loading`,comments:s?.comments??[],fetchedAt:s?.fetchedAt??null,error:s?.error??null});let c=(async()=>{try{let n=await d.listForEntity(e,t);if(pD(n)){let e=v.get(i);E(i,{status:`error`,comments:e?.comments??[],fetchedAt:e?.fetchedAt??null,error:n.error.message})}else E(i,{status:`ready`,comments:n.data.comments,fetchedAt:Date.now(),error:null})}finally{b.delete(i)}})();return b.set(i,c),c}return{getEdges(e,t){return!e||!t?sO:f.get(oO(e,t))??sO},load:D,subscribe(e,t){let n=p.get(e);return n||(n=new Set,p.set(e,n)),n.add(t),()=>{n.delete(t),n.size===0&&p.delete(e)}},async add(e){let t=await i.add(e);return pD(t)?{ok:!1,error:t.error.message}:(await O(e.sourceType,e.sourceId,e.targetType,e.targetId),{ok:!0,id:t.data.id})},async remove(e){let t=await i.remove(e);return pD(t)?{ok:!1,error:t.error.message}:(await O(e.sourceType,e.sourceId,e.targetType,e.targetId),{ok:!0})},async setTargets(e){let t=await i.setTargets(e);return pD(t)?{ok:!1,error:t.error.message}:(await D(e.sourceType,e.sourceId,{force:!0}),{ok:!0})},invalidate(e,t){let n=oO(e,t);f.delete(n)&&x(n)},invalidateAll(){let e=[...f.keys()];f.clear();for(let t of e)x(t);let t=[...h.keys()];h.clear();for(let e of t)S(e);let n=[...v.keys()];v.clear();for(let e of n)T(e)},getCategories(e){return e?h.get(e)??cO:cO},loadCategories:k,subscribeCategories(e,t){let n=g.get(e);return n||(n=new Set,g.set(e,n)),n.add(t),()=>{n.delete(t),n.size===0&&g.delete(e)}},async createCategory(e){let t=await a.create(e);if(pD(t))return{ok:!1,error:t.error.message};let n={id:t.data.id,orgId:e.orgId,dimension:e.dimension,name:e.name,slug:e.slug??null,parentId:e.parentId??null,isSystem:!1,color:e.color??null,icon:e.icon??null,metadata:null,position:null},r=h.get(e.dimension),i=r?.categories??[];return i.some(e=>e.id===n.id)||w(e.dimension,{status:`ready`,categories:[...i,n],fetchedAt:r?.fetchedAt??Date.now(),error:null}),await k(e.dimension,{force:!0}),{ok:!0,id:t.data.id}},async updateCategory(e){let t=await a.update(e);return pD(t)?{ok:!1,error:t.error.message}:(await k(e.dimension,{force:!0}),{ok:!0,id:t.data.id})},async reparentCategory(e){let t=await a.reparent(e);return pD(t)?{ok:!1,error:t.error.message}:(await k(e.dimension,{force:!0}),{ok:!0,id:t.data.id})},async deleteCategory(e){let t=await a.delete(e.id);return pD(t)?{ok:!1,error:t.error.message}:(await k(e.dimension,{force:!0}),{ok:!0,id:t.data.id})},getComments(e,t){return!e||!t?lO:v.get(oO(e,t))??lO},loadComments:A,subscribeComments(e,t){let n=y.get(e);return n||(n=new Set,y.set(e,n)),n.add(t),()=>{n.delete(t),n.size===0&&y.delete(e)}},async addComment(e){let t=await d.add(e);return pD(t)?{ok:!1,error:t.error.message}:(await A(e.entityType,e.entityId,{force:!0}),{ok:!0,id:t.data.id})},async editComment(e){let t=await d.edit(e.id,e.body);return pD(t)?{ok:!1,error:t.error.message}:(await A(e.entityType,e.entityId,{force:!0}),{ok:!0,id:e.id})},async deleteComment(e){let t=await d.remove(e.id);return pD(t)?{ok:!1,error:t.error.message}:(await A(e.entityType,e.entityId,{force:!0}),{ok:!0,id:e.id})},invalidateComments(e,t){let n=oO(e,t);v.delete(n)&&T(n)},titles:c,favorites:o,candidates:s,entityRows:l,helpers:u,registry:n,services:{associations:i,categories:a,comments:d},registerEntityOverlay:n.registerEntityOverlay,errorSink:t,dataSource:e.dataSource,identity:e.identity}}var dO=1e3,fO=5e5,pO=class extends Error{label;collected;expected;constructor(e,t,n,r){super(`readAllRows(${e}): ${r} — collected ${t}`+(n===null?``:` of ${n}`)+`. Refusing to return a partial list: a truncated read used for an existence/diff decision produces a confidently WRONG answer.`),this.label=e,this.collected=t,this.expected=n,this.name=`IncompleteReadError`}};async function mO(e,t){let n=t.pageSize??dO,r=t.maxRows??fO,i=[],a=null;for(let o=0;;o+=n){let s=await e({from:o,to:o+n-1});if(s.error)throw Error(`readAllRows(${t.label}): query failed — ${s.error.message}`);let c=s.data??[];if(i.push(...c),typeof s.count==`number`&&(a=s.count),a===null){if(c.length<n)return i;throw new pO(t.label,i.length,null,`the query returned no count — pass { count: "exact" } to select() so completeness can be verified`)}if(i.length>=a)break;if(c.length===0)throw new pO(t.label,i.length,a,`a page came back empty before the declared total was reached`);if(i.length>r)throw new pO(t.label,i.length,a,`exceeded the ${r}-row safety limit`)}if(i.length!==a)throw new pO(t.label,i.length,a,`final row count does not match the total the server reported`);return i}function hO(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function gO(e){return typeof e==`string`?e:null}function _O(e){return e===!0}function vO(e){return typeof e==`boolean`?e:null}function yO(e){return Array.isArray(e)?e.filter(e=>typeof e==`string`):[]}function bO(e){return e===`builtin`?`builtin`:`user`}function xO(e){if(!hO(e))return null;let t=e.depth_budget,n=e.member_count;return{mode:gO(e.mode)??`supervisor`,tagline:gO(e.tagline),depthBudget:typeof t==`number`&&Number.isFinite(t)&&t>0?t:null,memberCount:typeof n==`number`&&Number.isFinite(n)&&n>=0?n:0,memberTitles:yO(e.member_titles)}}function SO(e){if(!hO(e))return null;let t=gO(e.id);return t?{id:nD(t),name:gO(e.name),description:gO(e.description),category:gO(e.category),tags:yO(e.tags),agentType:bO(e.agent_type),modelId:gO(e.model_id),isActive:_O(e.is_active),isArchived:_O(e.is_archived),isFavorite:!1,createdBy:gO(e.created_by),organizationId:gO(e.organization_id),taskId:gO(e.task_id),sourceAgentId:gO(e.source_agent_id),createdAt:gO(e.created_at),updatedAt:gO(e.updated_at),isOwner:vO(e.is_owner),accessLevel:gO(e.access_level),sharedByEmail:gO(e.shared_by_email),orchestra:xO(e.orchestra),...`offering_id`in e?{offeringId:gO(e.offering_id)}:{},...`organization_name`in e?{organizationName:gO(e.organization_name)}:{}}:null}var CO=1e3,wO=class extends Error{name=`AgentCatalogReadError`;source;constructor(e,t){super(`${e}: ${t}`),this.source=e}};function TO(e){return e.code?`${e.message} (${e.code})`:e.message}async function EO(e){let t=await mO(({from:t,to:n})=>Promise.resolve(e.rpc(`agx_get_list_full`,{},{count:`exact`}).order(`id`,{ascending:!0}).range(t,n)).then(e=>({data:Array.isArray(e.data)?e.data:null,error:e.error,count:e.count??null})),{label:`agx_get_list_full`,pageSize:CO}),n=[],r=0;for(let e of t){let t=SO(e);t?n.push(t):r+=1}if(r>0)throw new wO(`agx_get_list_full`,`${r} row(s) came back without an id and were refused. A row that cannot be identified cannot be selected, so the catalogue is not trustworthy — check the RPC's return shape.`);return n}async function DO(e,t){let n=t.query.trim();if(!n)return{ids:[],rows:[]};let{data:r,error:i}=await e.rpc(`agx_search`,{p_query:n,p_deep:t.deep??!1,p_limit:t.limit??50,p_offset:0});if(i)throw new wO(`agx_search`,TO(i));let a=[];if(Array.isArray(r))for(let e of r){let t=SO(e);t&&a.push(t)}return{ids:a.map(e=>e.id),rows:a}}async function OO(e,t){try{let n=(await DO(e,{query:t,limit:5})).rows.find(e=>e.id===t);if(n)return n}catch{}let{data:n,error:r}=await e.rpc(`agx_resolve_agent_address`,{p_ids:[t]});if(r)throw new wO(`agx_resolve_agent_address`,TO(r));if(!Array.isArray(n))return null;for(let e of n){if(typeof e!=`object`||!e)continue;let n=e;if(n.agent_id!==t)continue;let r=n.agent_name;return SO({id:t,name:typeof r==`string`?r:null,agent_type:n.agent_type,is_active:!0})}return null}var kO=`agent`;async function AO(e,t,n){if(t.length===0)return t;let r=null;try{let i=await e.getBulk(kO,t.map(e=>e.id));i.ok?r=new Set(i.data.items.filter(e=>e.isFavorite).map(e=>e.entityId)):n(i.error.message)}catch(e){n(e instanceof Error?e.message:String(e))}return t.map(e=>{let t=r?.has(e.id)??!1;return e.isFavorite===t?e:{...e,isFavorite:t}})}async function jO(e,t,n){let r=await e.setFavorite(kO,t,n);if(!r.ok)throw new wO(`user_entity_state (ues_set)`,r.error.code?`${r.error.message} (${r.error.code})`:r.error.message)}var MO=`ai-matrx.agents.catalog.default-row:`,NO=class extends Error{name=`MandateDefaultRowError`;mandateKey;remedy;constructor(e){super(`${e.message} — ${e.remedy}`),this.mandateKey=e.mandateKey,this.remedy=e.remedy}};function PO(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function FO(e,t){if(!PO(t))throw new NO({mandateKey:e,message:`mandate "${e}": the resolution endpoint did not return an object`,remedy:`check that the transport points at the AI Matrx server and that GET /mandates/{key}/resolution is reachable`});let n=t.agent_id,r=t.definition_agent_id,i=t.provenance,a=t.holder_type;return{mandateKey:typeof t.mandate_key==`string`?t.mandate_key:e,holderType:typeof a==`string`?a:`agent`,agentId:typeof n==`string`?n:null,isVersion:t.is_version===!0,definitionAgentId:typeof r==`string`?r:null,provenance:typeof i==`string`?i:`system`}}async function IO(e,t){let n=`/mandates/${encodeURIComponent(t)}/resolution`,r=await e.fetch(n,{method:`GET`,headers:{Accept:`application/json`}});if(!r.ok)throw new NO({mandateKey:t,message:`mandate "${t}": the server refused to resolve it (HTTP ${r.status})`,remedy:r.status===404?`the mandate does not exist — check the key this picker was given`:`check the caller's session and organization context, then retry`});return FO(t,await r.json())}function LO(){let e=new Map;return{getItem:t=>e.get(t)??null,setItem:(t,n)=>{e.set(t,n)},removeItem:t=>{e.delete(t)}}}function RO(){try{let e=globalThis.localStorage;if(e){let t=`${MO}__probe__`;return e.setItem(t,`1`),e.removeItem(t),e}}catch{}return LO()}function zO(e,t){try{if(!t)return null;let n=JSON.parse(t);if(!PO(n))return null;let r=n.holderId,i=n.holderName;if(typeof r!=`string`||typeof i!=`string`)return null;let a=n.holderDescription,o=n.provenance,s=n.at;return{mandateKey:e,holderId:r,holderName:i,holderDescription:typeof a==`string`?a:null,provenance:typeof o==`string`?o:`system`,at:typeof s==`number`?s:0}}catch{return null}}async function BO(e,t){let n;try{n=await e.getItem(MO+t)}catch{return null}return zO(t,n)}async function VO(e,t){try{await e.setItem(MO+t.mandateKey,JSON.stringify(t))}catch{}}function HO(e){return{id:rD(e.mandateKey),name:e.holderName,description:e.holderDescription,category:null,tags:[],agentType:`builtin`,modelId:null,isActive:!0,isArchived:!1,isFavorite:!1,createdBy:null,organizationId:null,taskId:null,sourceAgentId:e.holderId,createdAt:null,updatedAt:null,isOwner:null,accessLevel:null,sharedByEmail:null,orchestra:null,mandateKey:e.mandateKey}}function UO(e,t){return e?e.holderId===t.holderId?e.holderName===t.holderName?null:`The default agent for "${t.mandateKey}" was renamed: "${e.holderName}" is now "${t.holderName}".`:`The default agent for "${t.mandateKey}" changed: this screen was showing "${e.holderName}", and the platform now resolves it to "${t.holderName}". The list below is correct; anything that cached the old name is not.`:null}async function WO(e){let{mandateKey:t,transport:n,client:r,storage:i,lookupRow:a}=e,o=await BO(i,t),s=await IO(n,t);if(s.holderType!==`agent`)throw new NO({mandateKey:t,message:`mandate "${t}": the ${s.provenance} rung names a ${s.holderType} Holder, and an agent picker can only offer an agent`,remedy:`rebind the ${s.provenance} rung to an agent, or drop defaultMandateKey from this picker`});let c=s.definitionAgentId??s.agentId;if(!c)throw new NO({mandateKey:t,message:`mandate "${t}": the server resolved it without naming an agent`,remedy:`bind the ${s.provenance} rung to an agent`});let l=await a(c);if(l||=await OO(r,c)??void 0,!l||!l.name)throw new NO({mandateKey:t,message:`mandate "${t}": its Holder resolved, but nothing this caller can read could name that agent`,remedy:`grant this user access to the Holder, or make it a platform agent — the picker will not print a placeholder name in its place`});let u={mandateKey:t,holderId:c,holderName:l.name,holderDescription:l.description,provenance:s.provenance,at:Date.now()},d=UO(o,u);return await VO(i,u),{resolved:u,row:HO(u),drift:d}}var GO=Symbol.for(`ai-matrx.agents.catalog`);function KO(){let e=globalThis,t=e[GO];return t||(t={catalogs:new Map,listInFlight:new Map,listFetchedAt:new Map,defaultRows:new Map},e[GO]=t),t}var qO=`00000000-0000-0000-0000-000000000000`,JO=`agx_this_function_does_not_exist_probe`,YO={agx_get_list_full:{},agx_search:{p_query:`__probe__`,p_deep:!1,p_limit:1,p_offset:0},agx_resolve_agent_address:{p_ids:[qO]},ues_get_bulk:{p_entity_type:`agent`,p_entity_ids:[qO]}};function XO(e){if(!e||typeof e!=`object`)return!1;let t=e.code;return t===`PGRST202`||t===`42883`}async function ZO(e,t={}){let{selfTest:n=!1,throwOnViolation:r=!0}=t,i=Object.keys(YO);n&&i.push(JO);let a=[],o=[],s=[],c=null;for(let t of i){let n=YO[t]??{};try{let{data:r,error:i}=await e.rpc(t,n);t===`agx_get_list_full`&&i==null&&(c=QO(r)),i==null?s.push(t):XO(i)?a.push(t):s.push(t)}catch(e){o.push({fn:t,error:e})}}if(n){let e=a.includes(JO),t=a.indexOf(JO);t>=0&&a.splice(t,1);let n=s.indexOf(JO);if(n>=0&&s.splice(n,1),!e)throw Error(`assertAgentCatalogSchema self-test FAILED: the fabricated function "${JO}" did not come back as missing. This probe cannot currently fail, so its green result proves nothing — the client is swallowing or faking errors.`)}if(o.length>0)throw Error(`assertAgentCatalogSchema could not complete: ${o.length} probe call(s) failed to reach the database (${o.map(e=>e.fn).join(`, `)}). This is NOT a schema verdict — fix connectivity and re-run.`);let l=a.length===0,u={ok:l,missing:a,unreachable:o,answered:s,orchestraColumn:c};if(!l&&r)throw Error(`DEMANDED SCHEMA VIOLATION: the database this client points at cannot answer ${a.length} demanded function(s): ${a.join(`, `)}. @ai-matrx/agents/catalog cannot render a correct picker against it — point the client at Matrx Main, or apply the agx_* migrations.`);return u}function QO(e){return!Array.isArray(e)||e.length===0?null:e.some(e=>typeof e==`object`&&!!e&&Object.prototype.hasOwnProperty.call(e,`orchestra`))}var $O=9e5,ek=144e5;function tk(){let e=!1;return t=>{e||(e=!0,console.error("[@ai-matrx/agents/catalog] no errorSink is bound, so failures are only reaching the console. Pass `errorSink` to createAgentCatalog to route them into your diagnostics surface.")),console.error(`[@ai-matrx/agents/catalog] ${t.code}: ${t.message}`,{...t.context??{}})}}function nk(e){return e instanceof Error?e.message:String(e)}function rk(e){if(!e||typeof e!=`object`)throw new dD({code:`missing_config`,message:`createAgentCatalog was called without a config object`,remedy:`pass { client, identity }`});if(!e.client||typeof e.client.rpc!=`function`)throw new dD({code:`missing_client`,message:`createAgentCatalog needs a Supabase client — it IS the catalogue read`,remedy:"pass `client` (a supabase-js client, or anything with rpc() and schema().from())"});if(!e.identity||typeof e.identity.requireUserId!=`function`)throw new dD({code:`missing_identity`,message:`createAgentCatalog needs to know who is asking`,remedy:"pass `identity: { requireUserId() }` — never a silent anonymous read"});let t=e.defaults?.archiveFilter;if(t!==void 0&&!lD(t))throw new dD({code:`invalid_archive_default`,message:`defaults.archiveFilter was ${JSON.stringify(t)}, which is not one of the three states of the platform archive filter`,remedy:`pass "active" (hide archived), "both" (show all) or "archived" (archived only)`});let n={...uD,...t?{archFilter:t}:{}},r=e.catalogId??`default`,i=e.client,a=e.identity,o=e.errorSink??tk(),s=e.notifier,c=e.storage??RO(),l=e.transport,u=e.favorites??uO({dataSource:i,identity:a,errorSink:o}).favorites;function d(e){o({code:`favorite_read_failed`,message:`your starred agents could not be read (${e}); every star is shown unset until the next catalogue load`,context:{catalogId:r}})}let f={...fD,...e.labels??{}},p=KO();p.catalogs.has(r)&&o({code:`catalog_replaced`,message:`a second agent catalog was created under id "${r}" and has REPLACED the first. Two catalogs with one id share a freshness stamp and an in-flight promise; give each one its own \`catalogId\`.`});let m={rows:[],byId:{},status:`idle`,error:null,consumers:{},defaultRows:{}},h=new Set;function g(e){m=e;for(let e of h)e()}function _(e){if(e.length===0)return;let t={...m.byId};for(let n of e)t[n.id]=n;g({...m,byId:t,rows:Object.values(t)})}function v(e){let t={};for(let n of e)t[n.id]=n;g({...m,byId:t,rows:Object.values(t)})}let y=!1;function b(){if(typeof a.getUserId==`function`)return a.getUserId();try{return a.requireUserId()}catch(e){return y||(y=!0,o({code:`identity_unavailable`,message:`identity.requireUserId() threw, so the picker is treating this session as signed out and opening on the public catalogue. Favoriting is unavailable until a session exists.`,context:{detail:nk(e)}})),null}}function x(){let e=p.listFetchedAt.get(r);return e!==void 0&&Date.now()-e<$O}function S(){let e=p.listFetchedAt.get(r);return e===void 0||Date.now()-e>ek}async function C(){if(b()===null){m.rows.length>0&&v([]),g({...m,status:`succeeded`,error:null});return}g({...m,status:`loading`,error:null});try{v(await AO(u,await EO(i),d)),g({...m,status:`succeeded`,error:null}),p.listFetchedAt.set(r,Date.now())}catch(e){let t=nk(e);throw g({...m,status:`failed`,error:t}),o({code:`list_read_failed`,message:`the agent catalogue could not be read: ${t}`,context:{catalogId:r}}),e}}async function w(e){if(!(e?.force??!1)&&x())return;let t=p.listInFlight.get(r);if(t)return t;let n=C().finally(()=>{p.listInFlight.get(r)===n&&p.listInFlight.delete(r)});return p.listInFlight.set(r,n),n}function T(e){return m.consumers[e]??n}function E(e,t){g({...m,consumers:{...m.consumers,[e]:t}})}function D(e,t){m.consumers[e]||E(e,{...n,...t??{}})}function O(e){if(!m.consumers[e])return;let t={...m.consumers};delete t[e],g({...m,consumers:t})}function k(e,t){E(e,{...m.consumers[e]??{...n},...t,listPage:1,sharedPage:1})}function A(e,t,n){let r=m.consumers[e];r&&E(e,t===`list`?{...r,listPage:n}:{...r,sharedPage:n})}function j(e,t){let r=m.consumers[e]??{...n},i={...r};t.matchedIds!==void 0&&(i.serverMatchedIds=t.matchedIds),t.isSearching!==void 0&&(i.isServerSearching=t.isSearching),(i.serverMatchedIds!==r.serverMatchedIds||i.isServerSearching!==r.isServerSearching)&&E(e,i)}function M(e){m.consumers[e]&&E(e,{...n})}async function N(e,t=!1){let n=await DO(i,{query:e,deep:t});return _(await AO(u,n.rows,d)),n.ids}async function P(e,t){let n=m.byId[e];if(!n){o({code:`favorite_unknown_agent`,message:`cannot favorite ${e}: it is not in this catalogue`});return}_([{...n,isFavorite:t}]);try{await jO(u,e,t)}catch(r){throw _([n]),o({code:`favorite_write_failed`,message:`the favorite could not be saved: ${nk(r)}`,context:{agentId:e,isFavorite:t}}),s?.({level:`error`,title:`Favorite not saved`,message:`The star was put back because the change could not be saved. Check your connection and try again.`}),r}}function F(e,t){g({...m,defaultRows:{...m.defaultRows,[e]:t}})}let I=new Set;function L(e){if(!e||I.has(e))return;let t=m.defaultRows[e];if(!t||t.error){if(!l)throw new dD({code:`missing_transport`,message:`a picker asked for the default row of mandate "${e}", but this catalog has no transport`,remedy:"pass `transport` (createMatrxTransport from @ai-matrx/agents/matrx) to createAgentCatalog — clients never walk the mandate ladder themselves, they ask the server"});I.add(e),F(e,{mandateKey:e,row:null,resolved:null,loading:!0,drift:null,error:null}),(async()=>{try{let t=await WO({mandateKey:e,transport:l,client:i,storage:c,errorSink:o,lookupRow:async e=>{let t=m.byId[e];if(t)return t;let n=p.listInFlight.get(r);if(n)return await n.catch(()=>void 0),m.byId[e]}});KO().defaultRows.set(`${r}::${e}`,t.resolved),F(e,{mandateKey:e,row:t.row,resolved:t.resolved,loading:!1,drift:t.drift,error:null}),t.drift&&(o({code:`default_row_drift`,message:t.drift,context:{mandateKey:e,holderId:t.resolved.holderId}}),s?.({level:`warning`,title:`The default agent changed`,message:t.drift}))}catch(t){let n=t instanceof NO?t.message:nk(t);F(e,{mandateKey:e,row:null,resolved:null,loading:!1,drift:null,error:n}),o({code:`default_row_unresolved`,message:n,context:{mandateKey:e}})}finally{I.delete(e)}})()}}function ee(e){return m.defaultRows[e]}function te(e){let t=m.defaultRows[e];t&&t.drift&&F(e,{...t,drift:null})}function ne(e){if(!e||I.has(e))return;let{[e]:t,...n}=m.defaultRows;g({...m,defaultRows:n}),L(e)}let re={catalogId:r,labels:f,errorSink:o,notifier:s,canResolveMandates:l!==void 0,consumerDefaults:n,getState:()=>m,subscribe:e=>(h.add(e),()=>{h.delete(e)}),getAgent:e=>m.byId[e],getUserIdOrNull:b,ensureLoaded:w,isFresh:x,isStale:S,getConsumer:T,registerConsumer:D,unregisterConsumer:O,setConsumerFilter:k,setConsumerPage:A,setConsumerServerSearch:j,resetConsumerFilters:M,searchServer:N,setFavorite:P,ensureDefaultRow:L,getDefaultRow:ee,dismissDefaultRowDrift:te,retryDefaultRow:ne,assertSchema:e=>ZO(i,e)};return p.catalogs.set(r,re),re}var ik={supervisor:`supervisor`,sequential:`in order`,parallel:`together`,dag:`custom flow`};function ak(e){return ik[e]??e}function ok(e){let t=e.memberCount;return`Orchestra · ${ak(e.mode)} · ${t} ${t===1?`member`:`members`}`}function sk(e){let t=e.depthBudget;return typeof t!=`number`||t<=0?null:`Team members can call helpers up to ${t} ${t===1?`level`:`levels`} deep`}function ck(e,t=3){let n=e.memberTitles;if(n.length===0)return null;let r=n.slice(0,t),i=n.length-r.length;return`Delegates to: ${r.join(`, `)}${i>0?` +${i} more`:``}`}function lk(e,t){switch(e){case`system`:return t.emptySystem;case`shared`:return t.emptyShared;default:return t.emptyDefault}}function uk(e){return e.userId?e.agentsLoaded?e.ownedCount===0:!1:!0}function dk(e){return sD.find(t=>t.value===e)?.chip??`Archive`}function fk(e){return sD.find(t=>t.value===e)?.label??`Hide archived`}function pk(e){return`Archive filter: ${fk(e).toLowerCase()}. Click for ${fk(cD(e)).toLowerCase()}`}function mk(e){let{count:t,archFilter:n,archivedHiddenCount:r}=e;if(n===`archived`)return`${t} archived shown`;let i=`${t} agent${t===1?``:`s`}`;return n===`both`?`${i} · archived shown`:r>0?`${i} · ${r} archived hidden`:i}function hk(e,t){let n=t.trim().toLowerCase();if(!n)return 0;let r=0,i=(e.name??``).toLowerCase(),a=(e.description??``).toLowerCase();i===n?r+=1e4:i.startsWith(n)?r+=5e3:gk(i,n)?r+=3e3:i.includes(n)&&(r+=2e3),a===n?r+=1e3:a.includes(n)&&(r+=500),e.category?.toLowerCase().includes(n)&&(r+=300),e.tags?.some(e=>e.toLowerCase().includes(n))&&(r+=300),e.modelId?.toLowerCase().includes(n)&&(r+=100),e.agentType?.toLowerCase().includes(n)&&(r+=100),e.outputFormat?.toLowerCase().includes(n)&&(r+=100);let o=e.id.toLowerCase();if(o===n?r+=1e5:o.includes(n)&&(r+=5e3),e.sharedByEmail?.toLowerCase().includes(n)&&(r+=200),r===0&&n.includes(` `)){let t=n.split(/\s+/).filter(Boolean),o=0,s=0;for(let n of t){let t=i.includes(n);(t||a.includes(n)||(e.category?.toLowerCase().includes(n)??!1)||(e.tags?.some(e=>e.toLowerCase().includes(n))??!1))&&(o+=1,s+=t?400:100)}o===t.length&&(r+=s)}return r}function gk(e,t){let n=t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);return RegExp(`\\b${n}\\b`).test(e)}function _k(e,t){return hk(e,t)>0}function vk(e){let t,n,r=!1;return i=>((!r||t!==i)&&(n=e(i),t=i,r=!0),n)}function yk(e){let t,n,r,i=!1;return(a,o)=>((!i||t!==a||n!==o)&&(r=e(a,o),t=a,n=o,i=!0),r)}function bk(e,t){let n=e.id??``,r=t.id??``;return n<r?-1:+(n>r)}function xk(e,t,n){let r=Sk(e,t,n);return!Number.isFinite(r)||r===0?bk(e,t):r}function Sk(e,t,n){switch(n){case`name-asc`:return(e.name??``).localeCompare(t.name??``);case`name-desc`:return(t.name??``).localeCompare(e.name??``);case`created-desc`:return+new Date(t.createdAt??0)-new Date(e.createdAt??0);case`category-asc`:return(e.category??``).localeCompare(t.category??``);default:return+new Date(t.updatedAt??0)-new Date(e.updatedAt??0)}}var Ck=vk(e=>{let t=new Set;for(let n of e)n.agentType===`user`&&n.category&&t.add(n.category);return Array.from(t).sort()}),wk=vk(e=>{let t=new Set;for(let n of e)n.agentType===`builtin`&&n.category&&t.add(n.category);return Array.from(t).sort()}),Tk=vk(e=>{let t=new Set;for(let n of e)n.agentType===`user`&&n.tags?.forEach(e=>t.add(e));return Array.from(t).sort()}),Ek=vk(e=>{let t=new Set;for(let n of e)n.agentType===`builtin`&&n.tags?.forEach(e=>t.add(e));return Array.from(t).sort()}),Dk=vk(e=>e.filter(e=>e.agentType===`user`)),Ok=vk(e=>e.filter(e=>e.agentType===`builtin`));function kk(e,t){let{searchTerm:n,sortBy:r,favFilter:i,favoritesFirst:a}=t;if(n){let i=new Map;e.forEach(e=>{i.set(e.id,hk(e,n))});let a=new Map;return t.serverMatchedIds.forEach((e,t)=>a.set(e,t)),[...e].sort((e,t)=>{let n=i.get(e.id)??0,o=i.get(t.id)??0;if(o!==n)return o-n;if(n===0){let n=a.get(e.id),r=a.get(t.id);if(n!==void 0&&r!==void 0&&n!==r)return n-r}return xk(e,t,r)})}return[...e].sort((e,t)=>{if(a&&i===`all`){let n=+!!e.isFavorite,r=+!!t.isFavorite;if(r!==n)return r-n}return xk(e,t,r)})}function Ak(e,t){let{searchTerm:n,includedCats:r,includedTags:i,favFilter:a,archFilter:o,accessFilter:s,tab:c}=t,l=new Set(t.serverMatchedIds);return kk(e.filter(e=>{if(c===`mine`&&e.isOwner!==!0||c===`shared`&&(e.isOwner!==!1||e.accessLevel==null)||!Nk(e,o)||a===`yes`&&!e.isFavorite||a===`no`&&e.isFavorite||s===`owned`&&e.isOwner!==!0||s===`shared`&&e.isOwner!==!1||s===`editable`&&e.accessLevel!==`owner`&&e.accessLevel!==`admin`&&e.accessLevel!==`editor`)return!1;if(r.length>0){let t=e.category;if(!t){if(!r.includes(`__none__`))return!1}else if(!r.includes(t))return!1}if(i.length>0){if(!e.tags?.length){if(!i.includes(`__none__`))return!1}else if(!e.tags?.some(e=>i.includes(e)))return!1}return!(n&&!_k(e,n)&&!l.has(e.id))}),t)}function jk(e,t){let{searchTerm:n,favFilter:r,archFilter:i,includedCats:a,includedTags:o}=t,s=new Set(t.serverMatchedIds);return kk(e.filter(e=>{if(!Nk(e,i)||r===`yes`&&!e.isFavorite||r===`no`&&e.isFavorite)return!1;if(a.length>0){let t=e.category;if(!t){if(!a.includes(`__none__`))return!1}else if(!a.includes(t))return!1}if(o.length>0){if(!e.tags?.length){if(!o.includes(`__none__`))return!1}else if(!e.tags?.some(e=>o.includes(e)))return!1}return!(n&&!_k(e,n)&&!s.has(e.id))}),t)}var Mk=(e=!1)=>yk((t,n)=>{let r=Dk(t),i=Ok(t);return n.tab===`system`?jk(i,n):e&&n.tab===`all`?[...Ak(r,n),...jk(i,n)]:Ak(r,n)});function Nk(e,t){return t===`active`?!e.isArchived:t!==`archived`||!!e.isArchived}function Pk(e,t){let n=0;for(let r of e)r.agentType===`builtin`&&Nk(r,t)&&(n+=1);return n}function Fk(e,t,n){let r=0;for(let i of e)i.agentType===`user`&&Nk(i,t)&&n(i)&&(r+=1);return r}var Ik=e=>e.isOwner===!0,Lk=e=>e.isOwner===!1&&e.accessLevel!=null,Rk=()=>!0,zk=yk((e,t)=>({mine:Fk(e,t,Ik),shared:Fk(e,t,Lk),all:Fk(e,t,Rk),system:Pk(e,t)})),Bk=(0,_.createContext)(null);function Vk({catalog:e,platform:t,children:n,...r}){let i=(0,_.useMemo)(()=>({catalog:e,platform:t,...r}),[e,t,r.navigate,r.LinkComponent,r.renderModelRef,r.openPeek,r.popoverContainer]);return(0,j.jsx)(Bk.Provider,{value:i,children:n})}function Hk(){let e=(0,_.useContext)(Bk);if(!e)throw Error(`@ai-matrx/agents/catalog: no <AgentCatalogProvider> is mounted above this component. Create the catalog once with createAgentCatalog({ client, identity }) and mount <AgentCatalogProvider catalog={catalog}> at the top of your tree.`);return e}function Uk(){return Hk().catalog}function Wk(){let e=Hk(),t=e.navigate,n=e.platform.navigate;return{navigate:(0,_.useCallback)(e=>{if(t){t(e);return}n(e)},[t,n]),LinkComponent:e.LinkComponent??e.platform.LinkComponent,renderModelRef:e.renderModelRef??e.platform.renderModelRef,openPeek:e.openPeek,popoverContainer:e.popoverContainer}}function Gk(e){let t=Uk(),n=(0,_.useCallback)(()=>e(t.getState()),[t,e]);return(0,_.useSyncExternalStore)(t.subscribe,n,n)}function Kk(){return Gk(qk)}var qk=e=>e.rows,Jk={navigate:e=>{typeof window<`u`&&window.location.assign(e)},LinkComponent:({children:e,...t})=>(0,j.jsx)(`a`,{...t,children:e}),renderModelRef:({modelId:e,className:t})=>(0,j.jsx)(`span`,{className:t,children:e})};function Yk({catalog:e,children:t,...n}){let r=(0,_.useMemo)(()=>Jk,[]);return(0,j.jsx)(Vk,{catalog:e,platform:r,...n,children:t})}var Xk=250,Zk=2;function Qk(e,t){let n=Uk(),r=n.consumerDefaults,i=Gk((0,_.useCallback)(t=>t.consumers[e]??r,[e,r])),a=(0,_.useRef)(t);a.current=t,(0,_.useEffect)(()=>{let t=a.current,r={...t?.initialTab?{tab:t.initialTab}:{},...t?.initialArchFilter?{archFilter:t.initialArchFilter}:{}};return n.registerConsumer(e,Object.keys(r).length>0?r:void 0),()=>{a.current?.unregisterOnUnmount&&n.unregisterConsumer(e)}},[e,n]);let o=(0,_.useCallback)(t=>n.setConsumerFilter(e,{searchTerm:t}),[e,n]),s=(0,_.useCallback)(t=>n.setConsumerFilter(e,{deepSearch:t}),[e,n]),c=(0,_.useCallback)(t=>n.setConsumerFilter(e,{sortBy:t}),[e,n]),l=(0,_.useCallback)(t=>n.setConsumerFilter(e,{tab:t}),[e,n]),u=(0,_.useCallback)(t=>n.setConsumerFilter(e,{favFilter:t}),[e,n]),d=(0,_.useCallback)(t=>n.setConsumerFilter(e,{archFilter:t}),[e,n]),f=(0,_.useCallback)(t=>n.setConsumerFilter(e,{accessFilter:t}),[e,n]),p=(0,_.useCallback)(t=>{let r=n.getConsumer(e).includedCats,i=r.includes(t)?r.filter(e=>e!==t):[...r,t];n.setConsumerFilter(e,{includedCats:i})},[e,n]),m=(0,_.useCallback)(t=>{let r=n.getConsumer(e).includedTags,i=r.includes(t)?r.filter(e=>e!==t):[...r,t];n.setConsumerFilter(e,{includedTags:i})},[e,n]),h=(0,_.useCallback)(t=>n.setConsumerFilter(e,{includedCats:t}),[e,n]),g=(0,_.useCallback)(t=>n.setConsumerFilter(e,{includedTags:t}),[e,n]),v=(0,_.useCallback)(()=>n.setConsumerFilter(e,{favoritesFirst:!n.getConsumer(e).favoritesFirst}),[e,n]),y=(0,_.useCallback)(()=>n.setConsumerPage(e,`list`,n.getConsumer(e).listPage+1),[e,n]),b=(0,_.useCallback)(()=>n.setConsumerPage(e,`shared`,n.getConsumer(e).sharedPage+1),[e,n]),x=(0,_.useCallback)(()=>n.resetConsumerFilters(e),[e,n]),[S,C]=(0,_.useState)(!1),[w,T]=(0,_.useState)(null),E=(0,_.useRef)(0),D=i.searchTerm,O=i.deepSearch;(0,_.useEffect)(()=>{let e=D.trim();if(e.length<Zk){C(!1),T(null);return}let t=++E.current;C(!0);let r=setTimeout(()=>{n.searchServer(e,O).then(e=>{t===E.current&&(T(e),C(!1))}).catch(r=>{t===E.current&&(n.errorSink({code:`server_search_failed`,message:`agent search failed: ${r instanceof Error?r.message:String(r)}`,context:{query:e,deep:O}}),C(!1))})},Xk);return()=>clearTimeout(r)},[D,O,n]),(0,_.useEffect)(()=>{n.setConsumerServerSearch(e,{matchedIds:w??[],isSearching:S})},[e,n,w,S]);let k=i.searchTerm!==``||i.includedCats.length>0||i.includedTags.length>0||i.favFilter!==`all`||i.archFilter!==r.archFilter||i.accessFilter!==`any`||!i.favoritesFirst;return{tab:i.tab,sortBy:i.sortBy,searchTerm:i.searchTerm,includedCats:i.includedCats,includedTags:i.includedTags,favFilter:i.favFilter,archFilter:i.archFilter,archFilterDefault:r.archFilter,accessFilter:i.accessFilter,favoritesFirst:i.favoritesFirst,listPage:i.listPage,sharedPage:i.sharedPage,state:i,hasActiveFilters:k,deepSearch:i.deepSearch,isServerSearching:i.isServerSearching,setSearchTerm:o,setDeepSearch:s,setSortBy:c,setTab:l,setFavFilter:u,setArchFilter:d,setAccessFilter:f,toggleCategory:p,toggleTag:m,setIncludedCats:h,setIncludedTags:g,toggleFavoritesFirst:v,loadMoreList:y,loadMoreShared:b,resetFilters:x}}function $k(e,t,n){return t.length===0||t.includes(e)?null:n&&t.includes(n)?n:t[0]??null}var eA=[];function tA({consumerId:e,onSelect:t,navigateTo:n,activeAgentIdOverride:r,initialTab:i,includeSystemInAll:a=!1,visibleTabs:o,initialArchFilter:s,excludeAgentIds:c=eA,defaultMandateKey:l,agentFilter:u}){let d=Uk(),{navigate:f}=Wk(),p=(0,_.useRef)(!1),[m,h]=(0,_.useState)(null),g=(0,_.useRef)(null),v=(0,_.useRef)(!1),y=Qk(e,{unregisterOnUnmount:!0,...s?{initialArchFilter:s}:{}}),b=Kk(),x=d.getUserIdOrNull(),S=zk(b,y.state.archFilter),C=S.mine,w=(0,_.useMemo)(()=>Mk(a),[a])(b,y.state),T=(0,_.useMemo)(()=>new Set(c),[c]),[E,D]=(0,_.useState)(null),O=u&&E!==u.label?u:null,k=O?.test,A=(0,_.useCallback)(e=>T.size===0&&!k?e:e.filter(e=>!T.has(e.id)&&(!k||k(e))),[T,k]),j=(0,_.useCallback)(()=>{u&&(u.onClear?u.onClear():D(u.label))},[u]),M=(0,_.useCallback)(()=>D(null),[]),N=A(w),P=(0,_.useMemo)(()=>Mk(a),[a]),F=(0,_.useMemo)(()=>({...y.state,archFilter:`archived`}),[y.state]),I=y.archFilter===`active`?A(P(b,F)).length:0,L=Gk(nA),ee=r??null,te=ee?d.getAgent(ee):void 0,ne=y.tab===`system`,re=ne?wk(b):Ck(b),ie=ne?Ek(b):Tk(b),ae=S,oe=L===`loading`,se=L===`succeeded`||L===`failed`,ce=(0,_.useCallback)(()=>{p.current||(p.current=!0,d.ensureLoaded().catch(()=>{}))},[d]),le=Gk((0,_.useCallback)(e=>l?e.defaultRows[l]:void 0,[l]));(0,_.useEffect)(()=>{l&&d.ensureDefaultRow(l)},[d,l]),(0,_.useEffect)(()=>{if(!v.current){if(i){v.current=!0,y.tab!==i&&y.setTab(i);return}if(y.tab!==`mine`){v.current=!0;return}if(!uk({userId:x,ownedCount:C,agentsLoaded:se})){(!x||se)&&(v.current=!0);return}y.setTab(`system`),v.current=!0}},[x,C,se,i,y.tab,y.setTab]);let ue=o?o.join(`,`):``;(0,_.useEffect)(()=>{if(!ue)return;let e=$k(y.tab,ue.split(`,`),i);e&&y.setTab(e)},[ue,i,y.tab,y.setTab]),(0,_.useEffect)(()=>{ce()},[ce]);let R=(0,_.useCallback)(r=>{t?t(r.id):n?f(n.replace(`{id}`,r.id)):d.errorSink({code:`select_has_nowhere_to_go`,message:`an agent was chosen but this picker was given neither onSelect nor navigateTo, so the choice went nowhere.`,context:{consumerId:e,agentId:r.id}})},[t,n,f,d,e]),de=(y.sortBy===`updated-desc`?0:1)+ +(y.includedCats.length>0)+ +(y.includedTags.length>0)+(y.favFilter===`all`?0:1)+(y.archFilter===y.archFilterDefault?0:1),z=(0,_.useCallback)((e,t)=>{t||(g.current&&=(clearTimeout(g.current),null),h(e))},[]),B=(0,_.useCallback)((e,t)=>{m?.id===e.id&&(g.current=setTimeout(()=>{h(null),t()},900))},[m]),fe=(0,_.useCallback)(()=>{g.current&&=(clearTimeout(g.current),null)},[]),pe=(0,_.useCallback)(e=>{g.current=setTimeout(()=>{h(null),e()},900)},[]);return(0,_.useEffect)(()=>()=>{g.current&&clearTimeout(g.current)},[]),{agents:N,archivedHiddenCount:I,footerLabel:mk({count:N.length,archFilter:y.archFilter,archivedHiddenCount:I}),isLoading:oe,activeAgentId:ee,pinnedAgent:te??null,defaultRow:le??null,agentFilterLabel:O?.label??null,clearAgentFilter:j,resumeAgentFilter:M,allCategories:re,allTags:ie,consumer:y,tabCounts:ae,activeFilterCount:de,hoveredAgent:m,setHoveredAgent:h,ensureLoaded:ce,handleSelectAgent:R,handleAgentHover:z,handleAgentHoverEnd:B,handleDetailPanelMouseEnter:fe,handleDetailPanelMouseLeave:pe}}var nA=e=>e.status,rA={star:{paths:[`M11.5 3.2a.6.6 0 0 1 1 0l2.3 4.7 5.2.8a.6.6 0 0 1 .3 1l-3.8 3.7.9 5.2a.6.6 0 0 1-.9.6L12 16.8l-4.6 2.4a.6.6 0 0 1-.9-.6l.9-5.2-3.8-3.7a.6.6 0 0 1 .3-1l5.2-.8Z`],fillable:!0},chevronRight:{paths:[`m9 18 6-6-6-6`]},chevronDown:{paths:[`m6 9 6 6 6-6`]},search:{paths:[`m21 21-4.3-4.3`],circles:[{cx:11,cy:11,r:8}]},x:{paths:[`M18 6 6 18`,`m6 6 12 12`]},check:{paths:[`M20 6 9 17l-5-5`]},arrowUpDown:{paths:[`m21 16-4 4-4-4`,`M17 20V4`,`m3 8 4-4 4 4`,`M7 4v16`]},folder:{paths:[`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`]},tag:{paths:[`M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z`],circles:[{cx:7.5,cy:7.5,r:.5,filled:!0}]},rotateCcw:{paths:[`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,`M3 3v5h5`]},loader:{paths:[`M21 12a9 9 0 1 1-6.219-8.56`]},alertTriangle:{paths:[`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,`M12 9v4`,`M12 17h.01`]},music4:{paths:[`M9 18V5l12-2v13`,`m9 9 12-2`],circles:[{cx:6,cy:18,r:3},{cx:18,cy:16,r:3}]},clock:{paths:[`M12 6v6l4 2`],circles:[{cx:12,cy:12,r:10}]},globe:{paths:[`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,`M2 12h20`],circles:[{cx:12,cy:12,r:10}]},users:{paths:[`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,`M22 21v-2a4 4 0 0 0-3-3.87`,`M16 3.13a4 4 0 0 1 0 7.75`],circles:[{cx:9,cy:7,r:4}]},externalLink:{paths:[`M15 3h6v6`,`M10 14 21 3`,`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`]},messageCircle:{paths:[`M7.9 20A9 9 0 1 0 4 16.1L2 22Z`]},rocket:{paths:[`M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91 0`,`m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2`,`M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0`,`M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5`]},archive:{paths:[`M3 3h18a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1z`,`M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8`,`M10 12h4`]},circleCheck:{paths:[`m9 12 2 2 4-4`],circles:[{cx:12,cy:12,r:10}]}};Object.keys(rA);function iA({children:e,...t}){return(0,j.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,...t,children:e})}function aA({name:e,filled:t}){let n=rA[e];return(0,j.jsxs)(j.Fragment,{children:[n.paths.map((e,r)=>(0,j.jsx)(`path`,{d:e,...t&&n.fillable?{fill:`currentColor`}:{}},`p${r}`)),(n.circles??[]).map((e,t)=>(0,j.jsx)(`circle`,{cx:e.cx,cy:e.cy,r:e.r,...e.filled?{fill:`currentColor`}:{}},`c${t}`))]})}function oA(e){return function(t){return(0,j.jsx)(iA,{...t,children:(0,j.jsx)(aA,{name:e,filled:!1})})}}function sA({filled:e=!1,...t}){return(0,j.jsx)(iA,{...t,fill:e?`currentColor`:`none`,children:(0,j.jsx)(aA,{name:`star`,filled:e})})}var cA=oA(`chevronRight`),lA=oA(`chevronDown`),uA=oA(`search`),dA=oA(`x`),fA=oA(`check`),pA=oA(`arrowUpDown`),mA=oA(`folder`),hA=oA(`tag`),gA=oA(`rotateCcw`),_A=oA(`archive`),vA=oA(`loader`),yA=oA(`users`),bA=oA(`clock`),xA=oA(`globe`),SA=oA(`externalLink`),CA=oA(`messageCircle`),wA=oA(`rocket`),TA=oA(`alertTriangle`),EA=oA(`music4`);function DA(e){return(0,j.jsxs)(iA,{...e,children:[(0,j.jsx)(`path`,{d:`M14 4.1 12 6`}),(0,j.jsx)(`path`,{d:`m5.1 8-2.9-.8`}),(0,j.jsx)(`path`,{d:`m6 12-1.9 2`}),(0,j.jsx)(`path`,{d:`M7.2 2.2 8 5.1`}),(0,j.jsx)(`path`,{d:`M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z`})]})}var OA=({ref:e,value:t,onChange:n,placeholder:r})=>(0,j.jsxs)(`div`,{className:`flex items-center gap-1.5 h-7 px-2 rounded-md bg-muted/40 border border-border/50`,children:[(0,j.jsx)(uA,{className:`w-3 h-3 text-muted-foreground shrink-0`}),(0,j.jsx)(`input`,{ref:e,type:`text`,value:t,onChange:e=>n(e.target.value),placeholder:r,className:`flex-1 bg-transparent text-xs text-foreground placeholder:text-muted-foreground/50 outline-none min-w-0`,style:{fontSize:`16px`}}),t&&(0,j.jsx)(`button`,{type:`button`,onClick:()=>n(``),className:`text-muted-foreground hover:text-foreground`,"aria-label":`Clear search`,children:(0,j.jsx)(dA,{className:`w-3 h-3`})})]});function kA({icon:e,label:t,active:n,focused:r,onClick:i,ariaLabel:a,testId:o}){return(0,j.jsxs)(`button`,{type:`button`,onClick:i,...a?{"aria-label":a}:{},...o?{"data-testid":o}:{},className:Z(`inline-flex items-center gap-1 h-6 px-1.5 rounded text-[11px] font-medium shrink-0 transition-colors`,r?`bg-primary/15 text-primary border border-primary/30 ring-1 ring-primary/20`:n?`bg-primary/10 text-primary border border-primary/20`:`text-muted-foreground hover:text-foreground hover:bg-muted/50 border border-transparent`),children:[(0,j.jsx)(e,{className:`w-3 h-3`}),(0,j.jsx)(`span`,{children:t})]})}function AA({label:e,selected:t,onClick:n}){return(0,j.jsxs)(`button`,{type:`button`,onClick:n,className:Z(`flex items-center w-full px-3 py-2 text-xs transition-colors`,`hover:bg-muted/50 active:bg-muted/70`,t&&`text-primary font-medium`),children:[(0,j.jsx)(`span`,{className:`flex-1 text-left`,children:e}),t&&(0,j.jsx)(fA,{className:`w-3.5 h-3.5 text-primary shrink-0`})]})}function jA({label:e,checked:t,onClick:n}){return(0,j.jsxs)(`button`,{type:`button`,onClick:n,className:`flex items-center gap-2 w-full px-3 py-1.5 text-xs hover:bg-muted/50 active:bg-muted/70 transition-colors`,children:[(0,j.jsx)(`div`,{className:Z(`w-3.5 h-3.5 rounded-sm border flex items-center justify-center shrink-0 transition-colors`,t?`bg-primary border-primary`:`border-muted-foreground/30`),children:t&&(0,j.jsx)(fA,{className:`w-2.5 h-2.5 text-primary-foreground`})}),(0,j.jsx)(`span`,{className:`flex-1 text-left truncate`,children:e})]})}function MA({title:e,onClose:t}){return(0,j.jsxs)(`div`,{className:`flex items-center justify-between px-3 py-2 border-b border-border shrink-0`,children:[(0,j.jsx)(`span`,{className:`text-xs font-semibold text-foreground`,children:e}),(0,j.jsx)(`button`,{type:`button`,onClick:t,className:`w-5 h-5 rounded flex items-center justify-center text-muted-foreground hover:text-foreground hover:bg-muted/50 transition-colors`,"aria-label":`Close`,children:(0,j.jsx)(dA,{className:`w-3.5 h-3.5`})})]})}function NA({consumer:e,allCategories:t,search:n,setSearch:r,onClose:i}){let a=t.filter(e=>!n||e.toLowerCase().includes(n.toLowerCase()));return(0,j.jsxs)(`div`,{className:`flex flex-col h-full`,children:[(0,j.jsx)(MA,{title:`Categories`,onClose:i}),(0,j.jsx)(`div`,{className:`px-2 pt-2 pb-1 shrink-0`,children:(0,j.jsx)(OA,{value:n,onChange:r,placeholder:`Filter categories...`})}),e.includedCats.length>0&&(0,j.jsxs)(`button`,{type:`button`,onClick:()=>e.setIncludedCats([]),className:`mx-2 mb-1 h-6 rounded text-[11px] font-medium text-primary hover:bg-muted/50 transition-colors text-left shrink-0`,children:[`Clear (`,e.includedCats.length,`)`]}),(0,j.jsx)(`div`,{className:`overflow-y-auto flex-1`,children:a.length===0?(0,j.jsx)(`p`,{className:`text-xs text-muted-foreground text-center py-6`,children:`No categories`}):a.map(t=>(0,j.jsx)(jA,{label:t,checked:e.includedCats.includes(t),onClick:()=>e.toggleCategory(t)},t))})]})}function PA({id:e,variant:t=`card`,disabled:n}){let r=Uk(),i=Gk((0,_.useCallback)(t=>t.byId[e],[e]))?.isFavorite??!1,a=t=>{t.stopPropagation(),!n&&r.setFavorite(e,!i).catch(()=>{})},o=i?`Remove from favorites`:`Add to favorites`;return t===`list`?(0,j.jsx)(`button`,{type:`button`,className:Z(`flex-shrink-0 p-0.5 rounded transition-all duration-150`,`focus:outline-none focus-visible:ring-2 focus-visible:ring-primary`,n?`cursor-not-allowed`:`hover:scale-110 cursor-pointer`),onClick:a,disabled:n,title:o,"aria-label":i?`Remove from favorites`:`Add to favorites`,children:(0,j.jsx)(sA,{filled:i,className:Z(`h-3.5 w-3.5 transition-all duration-150`,i?`matrx-agent-star-on`:`text-muted-foreground/40 hover:matrx-agent-star-on`)})}):(0,j.jsx)(`button`,{type:`button`,className:Z(`absolute top-2.5 right-2.5 z-10 p-0.5 rounded transition-all duration-150`,`focus:outline-none focus-visible:ring-2 focus-visible:ring-primary`,n?`cursor-not-allowed`:`hover:scale-110 cursor-pointer`,i?`matrx-agent-star-on`:`text-muted-foreground/40 hover:matrx-agent-star-on`),onClick:a,disabled:n,title:o,"aria-label":i?`Remove from favorites`:`Add to favorites`,children:(0,j.jsx)(sA,{filled:i,className:`w-4 h-4 transition-all duration-150`})})}function FA({agent:e,onSelect:t}){let{LinkComponent:n,renderModelRef:r,openPeek:i}=Wk(),a=e.updatedAt?new Date(e.updatedAt):null,o=e.createdAt?new Date(e.createdAt):null,s=iD(e.id),c=e=>e?e.toLocaleDateString(void 0,{month:`short`,day:`numeric`,year:`numeric`}):null;return(0,j.jsxs)(`div`,{className:`flex flex-col h-full`,children:[(0,j.jsx)(`div`,{className:`px-4 pt-4 pb-3`,children:(0,j.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,j.jsxs)(`div`,{className:`flex-1 min-w-0`,children:[(0,j.jsx)(`h3`,{className:`text-sm font-semibold text-foreground leading-tight break-words`,children:e.name||`Untitled`}),e.isFavorite&&(0,j.jsx)(`div`,{className:`flex items-center gap-1 mt-0.5`,children:(0,j.jsx)(`span`,{className:`text-[11px] matrx-agent-star-on`,children:`Pinned to favorites`})})]}),!s&&(0,j.jsx)(PA,{id:e.id,variant:`list`})]})}),(0,j.jsx)(`div`,{className:`h-px bg-border mx-3`}),(0,j.jsxs)(`div`,{className:`flex-1 overflow-y-auto px-4 py-3 space-y-3`,children:[e.orchestra&&(0,j.jsxs)(`div`,{className:`rounded-md border border-primary/20 bg-primary/5 px-2.5 py-2`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,j.jsx)(EA,{className:`w-3.5 h-3.5 text-primary shrink-0`}),(0,j.jsx)(`span`,{className:`text-[11px] font-medium text-primary`,children:ok(e.orchestra)})]}),e.orchestra.tagline&&(0,j.jsx)(`p`,{className:`mt-1 text-xs text-foreground/80 leading-relaxed`,children:e.orchestra.tagline}),ck(e.orchestra)&&(0,j.jsx)(`p`,{className:`mt-1 text-[11px] text-muted-foreground`,title:`Delegates to: ${e.orchestra.memberTitles.join(`, `)}`,children:ck(e.orchestra)}),sk(e.orchestra)&&(0,j.jsx)(`p`,{className:`mt-0.5 text-[11px] text-muted-foreground`,children:sk(e.orchestra)})]}),e.description&&(0,j.jsxs)(`div`,{children:[(0,j.jsx)(`p`,{className:`text-[11px] font-medium text-muted-foreground uppercase tracking-wider mb-1`,children:`Description`}),(0,j.jsx)(`p`,{className:`text-xs text-foreground/80 leading-relaxed`,children:e.description})]}),e.category&&(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(mA,{className:`w-3.5 h-3.5 text-muted-foreground shrink-0`}),(0,j.jsx)(`span`,{className:`text-xs text-foreground/80`,children:e.category})]}),e.tags&&e.tags.length>0&&(0,j.jsxs)(`div`,{children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-1.5 mb-1.5`,children:[(0,j.jsx)(hA,{className:`w-3.5 h-3.5 text-muted-foreground shrink-0`}),(0,j.jsx)(`span`,{className:`text-[11px] font-medium text-muted-foreground`,children:`Tags`})]}),(0,j.jsx)(`div`,{className:`flex flex-wrap gap-1`,children:e.tags.map(e=>(0,j.jsx)(`span`,{className:`inline-flex items-center h-5 px-1.5 rounded text-[10px] font-medium bg-muted text-muted-foreground`,children:e},e))})]}),e.accessLevel&&(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[e.isOwner===!1?(0,j.jsx)(yA,{className:`w-3.5 h-3.5 text-muted-foreground shrink-0`}):(0,j.jsx)(xA,{className:`w-3.5 h-3.5 text-muted-foreground shrink-0`}),(0,j.jsxs)(`div`,{className:`flex flex-col`,children:[(0,j.jsx)(`span`,{className:`text-xs text-foreground/80 capitalize`,children:e.accessLevel===`owner`?`You own this`:`Shared — ${e.accessLevel}`}),e.sharedByEmail&&(0,j.jsxs)(`span`,{className:`text-[10px] text-muted-foreground`,children:[`by `,e.sharedByEmail]})]})]}),e.modelId&&(0,j.jsx)(`div`,{className:`flex items-center gap-2`,children:r({modelId:e.modelId,...e.offeringId===void 0?{}:{offeringId:e.offeringId},className:`max-w-full text-xs text-foreground/80`})}),(a||o)&&(0,j.jsxs)(`div`,{className:`pt-1 space-y-1`,children:[a&&(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(bA,{className:`w-3.5 h-3.5 text-muted-foreground shrink-0`}),(0,j.jsxs)(`span`,{className:`text-[11px] text-muted-foreground`,children:[`Updated `,c(a)]})]}),o&&(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(bA,{className:`w-3.5 h-3.5 text-muted-foreground/50 shrink-0`}),(0,j.jsxs)(`span`,{className:`text-[11px] text-muted-foreground/70`,children:[`Created `,c(o)]})]})]})]}),(0,j.jsx)(`div`,{className:`h-px bg-border mx-3 mt-auto`}),(0,j.jsxs)(`div`,{className:`px-3 py-2 shrink-0 flex items-center gap-1.5`,children:[(0,j.jsx)(`button`,{type:`button`,onClick:t,className:`flex-1 h-7 rounded-md bg-primary text-primary-foreground text-[11px] font-medium hover:bg-primary/90 active:bg-primary/80 transition-colors`,children:`Select`}),i&&(0,j.jsx)(`button`,{type:`button`,onClick:t=>{t.stopPropagation(),i(e)},title:`Sneak Peek`,"aria-label":`Sneak Peek`,className:IA,children:(0,j.jsx)(wA,{className:`w-3.5 h-3.5`})}),!s&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(n,{href:`/chat/a/${e.id}`,onClick:e=>e.stopPropagation(),title:`Open in chat`,"aria-label":`Open in chat`,className:IA,children:(0,j.jsx)(CA,{className:`w-3.5 h-3.5`})}),(0,j.jsx)(n,{href:`/agents/go/${e.id}`,target:`_blank`,rel:`noopener noreferrer`,onClick:e=>e.stopPropagation(),title:`Open in new tab`,"aria-label":`Open in new tab`,className:Z(IA,`hover:text-foreground`),children:(0,j.jsx)(SA,{className:`w-3.5 h-3.5`})})]})]})]})}var IA=`flex items-center justify-center h-7 w-7 rounded-md border border-border bg-background text-muted-foreground hover:text-primary hover:bg-muted/50 transition-colors shrink-0`;function LA(e,t={}){if(!e||typeof window>`u`)return null;let n=t.full??528,r=t.minUsable??300,i=t.gap??16,a=window.innerHeight-e.getBoundingClientRect().bottom-i;return a>=n?null:a>=r?`${Math.floor(a)}px`:null}function RA(e,t,n={}){if(!e||typeof window>`u`||t!==`left`&&t!==`right`)return t;let r=n.width??680,i=n.gap??16,a=e.getBoundingClientRect(),o={left:a.left-i,right:window.innerWidth-a.right-i};if(o[t]>=r)return t;let s=t===`left`?`right`:`left`;return o[s]>=r?s:`bottom`}function zA({consumer:e,allCategories:t,allTags:n,activeFilterCount:r,isMobile:i,rightPanel:a,onFilterChipClick:o,onReset:s}){return(0,j.jsxs)(`div`,{className:`flex items-center gap-1 px-2 pb-1.5 overflow-x-auto matrx-agent-scrollbar-none shrink-0`,children:[(0,j.jsx)(kA,{icon:pA,label:aD.find(t=>t.value===e.sortBy)?.label??`Sort`,active:e.sortBy!==`updated-desc`,focused:!i&&a===`sort`,onClick:()=>o(`sort`)}),(0,j.jsx)(kA,{icon:sA,label:e.favFilter===`no`?`No Favs`:`Favs`,active:e.favFilter!==`all`,onClick:()=>{let t=e.favFilter===`all`?`yes`:e.favFilter===`yes`?`no`:`all`;e.setFavFilter(t)}}),(0,j.jsx)(kA,{icon:_A,label:dk(e.archFilter),active:e.archFilter!==e.archFilterDefault,ariaLabel:pk(e.archFilter),testId:`agent-archive-filter`,onClick:()=>e.setArchFilter(cD(e.archFilter))}),t.length>0&&(0,j.jsx)(kA,{icon:mA,label:e.includedCats.length>0?`${e.includedCats.length}`:`Category`,active:e.includedCats.length>0,focused:!i&&a===`categories`,onClick:()=>o(`categories`)}),n.length>0&&(0,j.jsx)(kA,{icon:hA,label:e.includedTags.length>0?`${e.includedTags.length}`:`Tags`,active:e.includedTags.length>0,focused:!i&&a===`tags`,onClick:()=>o(`tags`)}),r>0&&(0,j.jsx)(`button`,{type:`button`,onClick:s,"aria-label":`Reset filters`,className:`flex items-center gap-0.5 h-6 px-1.5 rounded text-[11px] text-muted-foreground hover:text-foreground hover:bg-muted/50 transition-colors shrink-0`,children:(0,j.jsx)(gA,{className:`w-3 h-3`})})]})}function BA({consumer:e,tabCounts:t,systemTabLabel:n,visibleTabs:r}){let{labels:i}=Uk(),a=[{value:`mine`,label:`Mine`,countKey:`mine`},{value:`shared`,label:`Shared`,countKey:`shared`},{value:`all`,label:`All`,countKey:`all`},{value:`system`,label:i.publicTab,countKey:`system`}];return(0,j.jsx)(`div`,{className:`flex items-center gap-0.5 px-2 pb-1 overflow-x-auto matrx-agent-scrollbar-none shrink-0`,role:`tablist`,"aria-label":`Agent ownership`,children:a.filter(({value:e})=>!r||r.includes(e)).map(({value:r,label:i,countKey:a})=>{let o=r===`system`?n??i:i,s=e.tab===r,c=t[a];return(0,j.jsxs)(`button`,{type:`button`,role:`tab`,"aria-selected":s,onClick:()=>e.setTab(r),className:Z(`inline-flex items-center gap-1 rounded-md px-2 py-1 text-[10px] font-medium transition-colors shrink-0`,s?`bg-primary text-primary-foreground`:`text-muted-foreground hover:text-foreground hover:bg-muted/50`),children:[(0,j.jsx)(`span`,{children:o}),(0,j.jsx)(`span`,{className:Z(`tabular-nums opacity-70`,s&&`opacity-90`),children:c})]},r)})})}function VA({agent:e,isActive:t,isHovered:n,isMobile:r,href:i,onClick:a,onHover:o,onHoverEnd:s,onDetailPress:c}){let{LinkComponent:l}=Wk(),{labels:u}=Uk(),d=i??`/agents/go/${e.id}`;return(0,j.jsxs)(`div`,{"data-testid":`agent-row-${e.id}`,className:Z(`flex items-center w-full text-left transition-colors group`,`hover:bg-muted/50 active:bg-muted/70`,t&&`bg-primary/5`,!r&&n&&`bg-muted/40`),onMouseEnter:r?void 0:o,onMouseLeave:r?void 0:s,children:[(0,j.jsxs)(l,{href:d,onClick:e=>{e.metaKey||e.ctrlKey||(e.preventDefault(),a())},className:`flex items-center gap-2 flex-1 min-w-0 px-3 py-2`,children:[e.isFavorite&&(0,j.jsx)(sA,{filled:!0,className:`w-3 h-3 matrx-agent-star-on shrink-0`}),(0,j.jsx)(`span`,{className:Z(`text-[13px] font-medium truncate`,t?`text-primary`:`text-foreground`),title:e.name||`Untitled`,children:e.name||`Untitled`}),e.organizationName?(0,j.jsx)(`span`,{"data-testid":`agent-org-${e.id}`,className:`text-[10px] text-muted-foreground truncate min-w-0 shrink`,title:e.organizationName,children:e.organizationName}):null,e.orchestra&&(0,j.jsxs)(`span`,{className:`flex shrink-0 items-center gap-0.5 rounded-sm bg-primary/10 px-1 py-px text-[9px] font-medium text-primary`,title:ck(e.orchestra)??ok(e.orchestra),children:[(0,j.jsx)(EA,{className:`w-2.5 h-2.5`}),e.orchestra.memberCount]}),e.isArchived?(0,j.jsx)(`span`,{"data-testid":`agent-archived-badge-${e.id}`,className:`text-[9px] font-medium text-muted-foreground bg-muted px-1 py-px rounded shrink-0 ml-auto`,children:u.archivedBadge}):null,e.agentType===`builtin`?(0,j.jsx)(`span`,{className:Z(`text-[9px] font-medium text-primary bg-primary/10 px-1 py-px rounded shrink-0`,!e.isArchived&&`ml-auto`),children:u.systemBadge}):e.isOwner===!1?(0,j.jsx)(`span`,{className:Z(`text-[9px] text-muted-foreground bg-muted px-1 py-px rounded shrink-0`,!e.isArchived&&`ml-auto`),children:`shared`}):null]}),r&&(0,j.jsx)(`button`,{type:`button`,"aria-label":`Show details`,onClick:e=>{e.stopPropagation(),c()},className:`flex items-center justify-center w-10 h-full shrink-0 text-muted-foreground/40 active:text-muted-foreground`,children:(0,j.jsx)(cA,{className:`w-4 h-4`})})]})}function HA({agents:e,isLoading:t,consumer:n,activeAgentId:r,allCategories:i,allTags:a,inputRef:o,onSelectAgent:s,resolveAgentHref:c,onReset:l,activeFilterCount:u,isMobile:d,hoveredAgent:f,onAgentHover:p,onAgentHoverEnd:m,onDetailPress:h,onFilterChipClick:g,rightPanel:v,tabCounts:y,visibleTabs:b,systemTabLabel:x,pinnedAgent:S=null,defaultRow:C=null,listOpen:w=!1,archivedHiddenCount:T=0,agentFilterLabel:E=null,onClearAgentFilter:D}){let O=Uk(),k=(0,_.useRef)(null);(0,_.useEffect)(()=>{w&&S&&k.current?.scrollTo({top:0})},[w,S?.id]);let{labels:A}=O,M=O.getUserIdOrNull()===null?A.emptySignedOut:lk(n.tab,A),N=C?.row??null;return(0,j.jsxs)(`div`,{className:`flex flex-col h-full`,children:[(0,j.jsx)(`div`,{className:`px-2 pt-2 pb-1 shrink-0`,children:(0,j.jsx)(OA,{ref:o,value:n.searchTerm,onChange:n.setSearchTerm,placeholder:A.searchPlaceholder})}),(0,j.jsx)(BA,{consumer:n,tabCounts:y,systemTabLabel:x,visibleTabs:b}),(0,j.jsx)(zA,{consumer:n,allCategories:i,allTags:a,activeFilterCount:u,isMobile:d,rightPanel:v,onFilterChipClick:g,onReset:l}),E&&(0,j.jsxs)(`div`,{"data-testid":`agent-list-host-filter`,className:`mx-2 mb-1.5 flex h-6 items-center gap-2 rounded-md bg-primary/10 px-2 shrink-0`,children:[(0,j.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-[11px] font-medium text-primary`,children:E}),D&&(0,j.jsx)(`button`,{type:`button`,onClick:D,className:`shrink-0 text-[11px] text-muted-foreground hover:text-foreground transition-colors`,children:`Show all`})]}),C?.drift&&(0,j.jsxs)(`div`,{role:`status`,className:`matrx-agent-drift-banner mx-2 mb-1.5 flex items-start gap-2 rounded-md px-2 py-1.5 shrink-0`,children:[(0,j.jsx)(TA,{className:`w-3.5 h-3.5 shrink-0 mt-px`}),(0,j.jsx)(`span`,{className:`text-[11px] leading-snug flex-1`,children:C.drift}),(0,j.jsx)(`button`,{type:`button`,"aria-label":`Dismiss`,onClick:()=>O.dismissDefaultRowDrift(C.mandateKey),className:`shrink-0 opacity-70 hover:opacity-100`,children:(0,j.jsx)(dA,{className:`w-3 h-3`})})]}),C?.error&&(0,j.jsxs)(p_,{as:`div`,className:`matrx-agent-drift-banner mx-2 mb-1.5 flex items-start gap-2 rounded-md px-2 py-1.5 shrink-0`,message:C.error,operation:`Load the default agent for ${C.mandateKey}`,origin:`agents/AgentListContent`,children:[(0,j.jsx)(TA,{className:`w-3.5 h-3.5 shrink-0 mt-px`}),(0,j.jsx)(`span`,{className:`text-[11px] leading-snug flex-1`,children:C.error}),(0,j.jsx)(`button`,{type:`button`,onClick:()=>O.retryDefaultRow(C.mandateKey),className:`shrink-0 text-[11px] font-medium underline underline-offset-2 opacity-80 hover:opacity-100`,children:`Try again`})]}),(0,j.jsx)(`div`,{className:`h-px bg-border shrink-0`}),(0,j.jsx)(`div`,{ref:k,className:`overflow-y-auto flex-1 min-h-0`,children:t?(0,j.jsxs)(`div`,{className:`flex items-center justify-center py-8 gap-2 text-muted-foreground`,children:[(0,j.jsx)(vA,{className:`w-4 h-4 matrx-agent-spin`}),(0,j.jsx)(`span`,{className:`text-xs`,children:A.loading})]}):e.length===0&&!S&&!N?(0,j.jsx)(`div`,{className:`flex flex-col items-center py-8 text-muted-foreground`,children:(0,j.jsx)(`span`,{className:`text-xs`,children:M})}):(0,j.jsxs)(`div`,{className:`py-0.5`,children:[N&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`div`,{className:`px-3 pt-1.5 pb-0.5`,children:(0,j.jsx)(`span`,{className:`text-[10px] font-medium uppercase tracking-wide text-muted-foreground`,children:`Default`})}),(0,j.jsx)(VA,{agent:N,isActive:N.id===r,isHovered:f?.id===N.id,isMobile:d,onClick:()=>s(N),href:c?.(N),onHover:()=>p(N),onHoverEnd:()=>m(N),onDetailPress:()=>h(N)},`default-${N.id}`),(0,j.jsx)(`div`,{className:`mx-2 my-0.5 h-px bg-border`})]}),S&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`div`,{className:`px-3 pt-1.5 pb-0.5`,children:(0,j.jsx)(`span`,{className:`text-[10px] font-medium uppercase tracking-wide text-muted-foreground`,children:A.currentAgentHeading})}),(0,j.jsx)(VA,{agent:S,isActive:!0,isHovered:f?.id===S.id,isMobile:d,onClick:()=>s(S),href:c?.(S),onHover:()=>p(S),onHoverEnd:()=>m(S),onDetailPress:()=>h(S)},`pinned-${S.id}`),(0,j.jsx)(`div`,{className:`mx-2 my-0.5 h-px bg-border`})]}),e.map(e=>(0,j.jsx)(VA,{agent:e,isActive:e.id===r,isHovered:f?.id===e.id,isMobile:d,onClick:()=>s(e),href:c?.(e),onHover:()=>p(e),onHoverEnd:()=>m(e),onDetailPress:()=>h(e)},e.id)),e.length===0&&(S||N)&&(0,j.jsx)(`div`,{className:`flex flex-col items-center py-4 text-muted-foreground`,children:(0,j.jsx)(`span`,{className:`text-xs`,children:M})})]})}),(0,j.jsx)(`div`,{className:`h-px bg-border shrink-0`}),(0,j.jsxs)(`div`,{className:`flex items-center justify-between px-2.5 py-1.5 shrink-0`,children:[(0,j.jsx)(`span`,{"data-testid":`agent-list-footer`,className:`text-[10px] text-muted-foreground tabular-nums`,children:mk({count:e.length,archFilter:n.archFilter,archivedHiddenCount:T})}),n.searchTerm&&(0,j.jsx)(`button`,{type:`button`,onClick:()=>n.setSearchTerm(``),className:`text-[10px] text-muted-foreground hover:text-foreground transition-colors`,children:`Clear search`})]})]})}function UA({view:e,consumer:t,allCategories:n,allTags:r,catSearch:i,setCatSearch:a,tagSearch:o,setTagSearch:s,onBack:c}){return(0,j.jsxs)(`div`,{className:`flex flex-col`,children:[(0,j.jsxs)(`button`,{type:`button`,onClick:c,className:`flex items-center gap-1.5 px-3 py-2.5 text-sm font-medium text-primary hover:bg-muted/30 transition-colors border-b border-border shrink-0`,children:[(0,j.jsx)(cA,{className:`w-4 h-4 rotate-180`}),e===`sort`?`Sort`:e===`categories`?`Categories`:`Tags`]}),e===`sort`&&aD.map(e=>(0,j.jsx)(AA,{label:e.label,selected:t.sortBy===e.value,onClick:()=>{t.setSortBy(e.value),c()}},e.value)),e===`categories`&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`div`,{className:`px-2 pt-2 pb-1`,children:(0,j.jsx)(OA,{value:i,onChange:a,placeholder:`Filter categories...`})}),t.includedCats.length>0&&(0,j.jsxs)(`button`,{type:`button`,onClick:()=>t.setIncludedCats([]),className:`mx-2 mb-1 h-6 rounded text-[11px] font-medium text-primary hover:bg-muted/50 transition-colors text-left`,children:[`Clear (`,t.includedCats.length,`)`]}),(0,j.jsx)(`div`,{className:`overflow-y-auto max-h-[300px]`,children:n.filter(e=>!i||e.toLowerCase().includes(i.toLowerCase())).map(e=>(0,j.jsx)(jA,{label:e,checked:t.includedCats.includes(e),onClick:()=>t.toggleCategory(e)},e))})]}),e===`tags`&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`div`,{className:`px-2 pt-2 pb-1`,children:(0,j.jsx)(OA,{value:o,onChange:s,placeholder:`Filter tags...`})}),t.includedTags.length>0&&(0,j.jsxs)(`button`,{type:`button`,onClick:()=>t.setIncludedTags([]),className:`mx-2 mb-1 h-6 rounded text-[11px] font-medium text-primary hover:bg-muted/50 transition-colors text-left`,children:[`Clear (`,t.includedTags.length,`)`]}),(0,j.jsx)(`div`,{className:`overflow-y-auto max-h-[300px]`,children:r.filter(e=>!o||e.toLowerCase().includes(o.toLowerCase())).map(e=>(0,j.jsx)(jA,{label:e,checked:t.includedTags.includes(e),onClick:()=>t.toggleTag(e)},e))})]})]})}function WA({consumer:e,onClose:t}){return(0,j.jsxs)(`div`,{className:`flex flex-col h-full`,children:[(0,j.jsx)(MA,{title:`Sort By`,onClose:t}),(0,j.jsx)(`div`,{className:`overflow-y-auto flex-1`,children:aD.map(t=>(0,j.jsx)(AA,{label:t.label,selected:e.sortBy===t.value,onClick:()=>e.setSortBy(t.value)},t.value))})]})}function GA({consumer:e,allTags:t,search:n,setSearch:r,onClose:i}){let a=t.filter(e=>!n||e.toLowerCase().includes(n.toLowerCase()));return(0,j.jsxs)(`div`,{className:`flex flex-col h-full`,children:[(0,j.jsx)(MA,{title:`Tags`,onClose:i}),(0,j.jsx)(`div`,{className:`px-2 pt-2 pb-1 shrink-0`,children:(0,j.jsx)(OA,{value:n,onChange:r,placeholder:`Filter tags...`})}),e.includedTags.length>0&&(0,j.jsxs)(`button`,{type:`button`,onClick:()=>e.setIncludedTags([]),className:`mx-2 mb-1 h-6 rounded text-[11px] font-medium text-primary hover:bg-muted/50 transition-colors text-left shrink-0`,children:[`Clear (`,e.includedTags.length,`)`]}),(0,j.jsx)(`div`,{className:`overflow-y-auto flex-1`,children:a.length===0?(0,j.jsx)(`p`,{className:`text-xs text-muted-foreground text-center py-6`,children:`No tags`}):a.map(t=>(0,j.jsx)(jA,{label:t,checked:e.includedTags.includes(t),onClick:()=>e.toggleTag(t)},t))})]})}var KA=`680px`;function qA({core:e,visibleTabs:t,systemTabLabel:n,includeSystemInAll:r=!1,resolveAgentHref:i,showPinnedAgent:a=!0,autoFocusSearch:o=!0,onAfterSelect:s,className:c}){let l=T_(),{labels:u}=Uk(),[d,f]=(0,_.useState)(null),[p,m]=(0,_.useState)(``),[h,g]=(0,_.useState)(``),[v,y]=(0,_.useState)(null),[b,x]=(0,_.useState)(null),S=(0,_.useRef)(null),{agents:C,archivedHiddenCount:w,isLoading:T,activeAgentId:E,pinnedAgent:D,defaultRow:O,agentFilterLabel:k,clearAgentFilter:A,allCategories:M,allTags:N,consumer:P,tabCounts:F,activeFilterCount:I,hoveredAgent:L,setHoveredAgent:ee,ensureLoaded:te,handleSelectAgent:ne,handleAgentHover:re,handleAgentHoverEnd:ie,handleDetailPanelMouseEnter:ae,handleDetailPanelMouseLeave:oe}=e;(0,_.useEffect)(()=>{if(te(),!o)return;let e=setTimeout(()=>S.current?.focus(),50);return()=>clearTimeout(e)},[te,o]);let se=(0,_.useRef)(!1);(0,_.useEffect)(()=>{se.current||l||!D||(se.current=!0,d===null&&(ee(D),f(`detail`)))},[D,l,d,ee]);let ce=e=>{ne(e),y(null),x(null),s?.(e)},le=e=>{l?x(e):f(d===e?null:e)},ue=(0,_.useCallback)(e=>{if(l)return;let t=d===`sort`||d===`categories`||d===`tags`;re(e,t),t||f(`detail`)},[l,d,re]),R=(0,_.useCallback)(e=>{l||d===`detail`&&ie(e,()=>f(null))},[l,d,ie]),de=(0,_.useCallback)(()=>{oe(()=>f(null))},[oe]),z=n??(r?`System`:void 0),B=(0,j.jsx)(HA,{agents:C,isLoading:T,consumer:P,activeAgentId:E,allCategories:M,allTags:N,inputRef:S,onSelectAgent:ce,...i?{resolveAgentHref:i}:{},onReset:P.resetFilters,activeFilterCount:I,isMobile:l,hoveredAgent:L,onAgentHover:ue,onAgentHoverEnd:R,onDetailPress:y,onFilterChipClick:le,rightPanel:d,tabCounts:F,archivedHiddenCount:w,...t?{visibleTabs:t}:{},...z?{systemTabLabel:z}:{},pinnedAgent:a?D:null,defaultRow:O,agentFilterLabel:k,onClearAgentFilter:A,listOpen:!0});return l?(0,j.jsx)(`div`,{className:Z(`flex min-h-0 flex-1 flex-col overflow-hidden`,c),children:v?(0,j.jsxs)(`div`,{className:`flex flex-col overflow-hidden`,children:[(0,j.jsxs)(`button`,{type:`button`,onClick:()=>y(null),className:`flex items-center gap-1.5 px-3 py-2.5 text-sm font-medium text-primary hover:bg-muted/30 transition-colors border-b border-border shrink-0`,children:[(0,j.jsx)(cA,{className:`w-4 h-4 rotate-180`}),`Back`]}),(0,j.jsx)(`div`,{className:`overflow-y-auto`,children:(0,j.jsx)(FA,{agent:v,onSelect:()=>ce(v)})})]}):b?(0,j.jsx)(UA,{view:b,consumer:P,allCategories:M,allTags:N,catSearch:p,setCatSearch:m,tagSearch:h,setTagSearch:g,onBack:()=>{x(null),m(``),g(``)}}):B}):(0,j.jsxs)(`div`,{className:Z(`flex h-full`,c),children:[(0,j.jsx)(`div`,{className:`flex flex-col min-w-[340px] flex-1 border-r border-border`,children:B}),(0,j.jsxs)(`div`,{className:`h-full w-[340px] shrink-0 overflow-hidden flex flex-col`,onMouseEnter:d===`detail`?ae:void 0,onMouseLeave:d===`detail`?de:void 0,children:[d===`detail`&&L&&(0,j.jsx)(`div`,{className:`h-full matrx-agent-fade-in`,children:(0,j.jsx)(FA,{agent:L,onSelect:()=>ce(L)})},L.id),d===`sort`&&(0,j.jsx)(WA,{consumer:P,onClose:()=>f(null)}),d===`categories`&&(0,j.jsx)(NA,{consumer:P,allCategories:M,search:p,setSearch:m,onClose:()=>{f(null),m(``)}}),d===`tags`&&(0,j.jsx)(GA,{consumer:P,allTags:N,search:h,setSearch:g,onClose:()=>{f(null),g(``)}}),d===null&&(0,j.jsxs)(`div`,{className:`flex flex-1 flex-col items-center justify-center gap-2 px-6 text-center`,children:[(0,j.jsx)(DA,{className:`h-6 w-6 text-muted-foreground/40`}),(0,j.jsx)(`p`,{className:`text-xs text-muted-foreground/70 leading-relaxed`,children:u.hoverHint})]})]})]})}var JA=`agent-list-dropdown`;function YA({onSelect:e,navigateTo:t,className:n,label:r,triggerSlot:i,noBorder:a=!1,compact:o=!1,activeAgentId:s,contentSide:c,consumerId:l=JA,initialTab:u,includeSystemInAll:d=!1,visibleTabs:f,systemTabLabel:p,resolveAgentHref:m,showPinnedAgent:h=!0,excludeAgentIds:g,defaultMandateKey:v,agentFilter:y}){let b=T_(),{labels:x}=Uk(),{popoverContainer:S}=Wk(),[C,w]=(0,_.useState)(!1),T=(0,_.useRef)(null),[E,D]=(0,_.useState)(null),[O,k]=(0,_.useState)(c),A=tA({consumerId:l,...e?{onSelect:e}:{},...t?{navigateTo:t}:{},...s===void 0?{}:{activeAgentIdOverride:s},...u?{initialTab:u}:{},includeSystemInAll:d,...f?{visibleTabs:f}:{},...g?{excludeAgentIds:g}:{},...v?{defaultMandateKey:v}:{},...y?{agentFilter:y}:{}}),{pinnedAgent:M,defaultRow:N,activeAgentId:P,isLoading:F,activeFilterCount:I}=A,L=N?.row?.id===P?N.row:null,ee=r??M?.name??L?.name??(P?F?x.triggerResolving:x.triggerUnnameable:x.triggerFallback),te=!!P&&ee.trim().length>0&&ee!==`Select an agent`&&ee!==x.triggerFallback,ne=e=>{w(e),e&&(A.resumeAgentFilter(),D(c||b?null:LA(T.current)),k(c&&!b?RA(T.current,c):c))},re=(0,_.useMemo)(()=>{if(m)return m;if(t)return e=>t.replace(`{id}`,e.id)},[t,m]),ie=i??(0,j.jsxs)(`button`,{type:`button`,className:Z(`inline-flex items-center rounded-md text-xs font-medium transition-colors`,`bg-background hover:bg-muted/50 text-foreground/80 hover:text-foreground`,o?`h-5 gap-1 px-1.5`:`h-7 gap-1.5 px-2.5`,!a&&`border border-border`,n),children:[(0,j.jsx)(`span`,{className:`min-w-0 max-w-[200px] flex-1 truncate text-left`,children:ee}),I>0&&(0,j.jsx)(`span`,{className:`flex items-center justify-center w-4 h-4 rounded-md bg-primary text-primary-foreground text-[10px]`,children:I}),(0,j.jsx)(lA,{className:`w-3 h-3 text-muted-foreground/60`})]}),ae=e=>te?(0,j.jsxs)(pd,{...C?{open:!1}:{},children:[(0,j.jsx)(e,{asChild:!0,ref:T,children:(0,j.jsx)(md,{asChild:!0,children:ie})}),(0,j.jsx)(hd,{side:`bottom`,className:`max-w-xs`,children:ee})]}):(0,j.jsx)(e,{asChild:!0,ref:T,children:ie}),oe=(0,j.jsx)(qA,{core:A,includeSystemInAll:d,showPinnedAgent:h,onAfterSelect:()=>w(!1),...f?{visibleTabs:f}:{},...p?{systemTabLabel:p}:{},...re?{resolveAgentHref:re}:{}});return b?(0,j.jsxs)(Qg,{open:C,onOpenChange:ne,children:[ae($g),(0,j.jsxs)(o_,{className:`h-[85dvh]`,children:[(0,j.jsx)(s_,{className:`sr-only`,children:`Select Agent`}),(0,j.jsx)(`div`,{className:`flex flex-col overflow-hidden flex-1 min-h-0`,children:oe})]})]}):(0,j.jsxs)(VS,{open:C,onOpenChange:ne,modal:!1,children:[ae(HS),(0,j.jsx)(US,{...O?{side:O}:E?{side:`bottom`}:{},align:`start`,sideOffset:4,collisionPadding:12,sticky:`always`,...S?{container:S}:{},className:`p-0 overflow-hidden`,style:{width:KA,height:E??`528px`,maxHeight:E??`min(528px, var(--radix-popper-available-height, 528px))`},children:oe})]})}var XA=`Sign in to AI Matrx to use your agents`,ZA=`latest`;function QA(e){let t=n=>{let r=()=>e.call(`agentCatalogRpc`,n).then(e=>({data:e.data,error:e.error?{message:e.error.message,...e.error.code?{code:e.error.code}:{},details:e.error.details??null,hint:e.error.hint??null}:null,count:e.count??null}));return{then:(e,t)=>r().then(e,t),range:(e,r)=>t({...n,range:[e,r]}),order:(e,r)=>t({...n,order:{column:e,ascending:r?.ascending!==!1}})}};return{rpc:(e,n,r)=>t({fn:e,...n?{args:n}:{},...r?.count?{count:r.count}:{}})}}function $A(e,t){let[n,r]=(0,_.useState)(null);return(0,_.useEffect)(()=>{if(!t)return;let n=!0;return e.call(`agentAccess`).then(e=>n&&r(e)).catch(()=>n&&r({signedIn:!1,userId:null,organizationId:null,configured:!1})),()=>{n=!1}},[e,t]),n}function ej(e,t,n){let r=(0,_.useRef)(n);return r.current=n,(0,_.useMemo)(()=>t?rk({client:QA(e),identity:{requireUserId:()=>t,getUserId:()=>t},catalogId:`coding-sessions:${t}`,errorSink:e=>{console.error(`[coding-sessions] agent catalogue: ${e.code}: ${e.message}`),e.code===`list_read_failed`&&r.current(`Couldn't load your agents. Reopen to retry.`)}}):null,[e,t])}function tj(e){return e.flatMap(e=>typeof e.name==`string`?[e]:[])}function nj(e){let t=$A(e.transport,e.open),[n,r]=(0,_.useState)(null),[i,a]=(0,_.useState)(null),o=ej(e.transport,t?.signedIn?t.userId:null,a),s=e.value?.agentId??null;(0,_.useEffect)(()=>{if(r(null),a(null),!s)return;let t=!0;return e.transport.call(`agentDetails`,s).then(e=>t&&r(e)).catch(e=>t&&a(e instanceof Error?e.message:String(e))),()=>{t=!1}},[s,e.transport]);let{onDetails:c}=e;(0,_.useEffect)(()=>{c?.(n)},[n,c]);let l=(0,_.useMemo)(()=>tD(tj(n?.variables??[])),[n]);if(t===null)return(0,j.jsx)(`div`,{className:`cs-skeleton h-9 rounded-lg`});if(!t.signedIn||!o)return(0,j.jsx)(`p`,{className:`text-[12.5px] text-muted-foreground`,children:XA});let u=(t,n)=>{e.value&&e.onChange({...e.value,variables:{...e.value.variables??{},[t]:n}})};return(0,j.jsxs)(`div`,{className:`space-y-3`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(fd,{children:(0,j.jsx)(Yk,{catalog:o,children:(0,j.jsx)(YA,{consumerId:`coding-sessions-new-session`,activeAgentId:s,label:n?.name??(s?`Loading…`:`None`),onSelect:t=>e.onChange({agentId:t,versionId:null,variables:{}})})})}),s?(0,j.jsx)(v_,{type:`button`,size:`sm`,variant:`ghost`,onClick:()=>e.onChange(null),children:`Remove`}):null]}),i?(0,j.jsx)(`p`,{className:`text-[12px] text-destructive`,children:i}):null,n&&e.value?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(`span`,{className:`w-[72px] shrink-0 text-[12px] text-muted-foreground`,children:`Version`}),(0,j.jsxs)(iS,{value:e.value.versionId??ZA,onValueChange:t=>e.value&&e.onChange({...e.value,versionId:t===ZA?null:t}),children:[(0,j.jsx)(cS,{className:`h-8 w-[200px] text-[12.5px]`,"aria-label":`Agent version`,children:(0,j.jsx)(aS,{})}),(0,j.jsxs)(dS,{children:[(0,j.jsx)(pS,{value:ZA,children:n.latestVersionNumber===null?`Latest`:`Latest (v${n.latestVersionNumber})`}),n.versions.map(e=>(0,j.jsxs)(pS,{value:e.id,children:[`v`,e.versionNumber]},e.id))]})]})]}),l.map(t=>{let n=e.value?.variables?.[t.name],r=typeof n==`string`?n:``,i=`cs-agent-var-${t.name}`,a=e.missing===t.name;return(0,j.jsxs)(`div`,{className:`space-y-1`,children:[(0,j.jsxs)(`label`,{htmlFor:i,className:`text-[12px] font-medium`,children:[t.label,t.required?(0,j.jsx)(`span`,{className:`text-muted-foreground`,children:` · required`}):null]}),t.options&&t.options.length>0?(0,j.jsxs)(iS,{value:r,onValueChange:e=>u(t.name,e),children:[(0,j.jsx)(cS,{id:i,className:`h-8 text-[12.5px]`,"aria-invalid":a||void 0,children:(0,j.jsx)(aS,{placeholder:`Choose…`})}),(0,j.jsx)(dS,{children:t.options.map(e=>(0,j.jsx)(pS,{value:e,children:e},e))})]}):t.variable.customComponent?.type===`textarea`?(0,j.jsx)(Cw,{id:i,rows:2,value:r,onChange:e=>u(t.name,e.target.value),placeholder:t.hint??``,"aria-invalid":a||void 0}):(0,j.jsx)(dw,{id:i,value:r,onChange:e=>u(t.name,e.target.value),placeholder:t.hint??``,"aria-invalid":a||void 0}),a?(0,j.jsx)(`p`,{className:`text-[12px] text-destructive`,children:`Fill this in to use the agent`}):null]},t.name)})]}):null]})}function rj(e,t){if(!e||!t)return null;for(let n of tD(tj(e.variables))){if(!n.required)continue;let e=t.variables?.[n.name];if(typeof e!=`string`||!e.trim())return n.name}return null}var ij={instructions:`Instructions`,skills:`Skills`,tools:`Tools`};function aj(e){let t=e.loaded.map(e=>e.part===`instructions`?`${ij.instructions} ${e.loaded===1?`✓`:`—`}`:`${ij[e.part]} ${e.loaded}/${e.total}`);return`${e.name}${e.versionNumber===null?``:` v${e.versionNumber}`} · ${t.join(` · `)}`}function oj(e){let{agent:t}=e,n=OE(),[r,i]=(0,_.useState)(!1),[a,o]=(0,_.useState)(!1),[s,c]=(0,_.useState)(null),[l,u]=(0,_.useState)(null);(0,_.useEffect)(()=>{if(!r)return;let n=!0;return e.transport.call(`agentAccess`).then(e=>n&&u(e)).catch(()=>void 0),t&&e.transport.call(`agentDetails`,t.agentId).then(e=>{n&&e.latestVersionId&&e.latestVersionNumber!==null&&c({id:e.latestVersionId,number:e.latestVersionNumber})}).catch(()=>void 0),()=>{n=!1}},[r,t,e.transport]);let d=async(t,r)=>{try{await e.transport.call(`setAgent`,e.sessionId,t),n(r),e.onChange()}catch(e){n(`That didn't change: ${e instanceof Error?e.message:String(e)}`)}},f=t&&s&&t.versionNumber!==null&&s.number>t.versionNumber?s:null,p=!t||t.loaded.every(e=>e.loaded===e.total),m=l?.signedIn??!1;return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(YC,{open:r,onOpenChange:i,children:[(0,j.jsx)(XC,{asChild:!0,children:(0,j.jsxs)(`button`,{type:`button`,className:Z(`cs-agent-chip`,t?`cs-agent-chip--set`:`cs-agent-chip--none`,!p&&`cs-agent-chip--partial`),"data-testid":`cs-agent-chip`,"aria-label":t?`AI Matrx agent: ${t.name}`:`Add an AI Matrx agent`,children:[t?aj(t):`No agent`,f?(0,j.jsx)(`span`,{className:`cs-agent-chip-dot`,"aria-label":`Update available`}):null,(0,j.jsx)(SE,{size:12,className:`ml-1 inline shrink-0`})]})}),(0,j.jsxs)(iw,{align:`end`,className:`w-[320px]`,children:[t?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(cw,{className:`truncate`,children:[t.name,t.versionNumber===null?``:` · v${t.versionNumber}`]}),(0,j.jsxs)(`div`,{className:`cs-agent-parts`,children:[t.blockDue?(0,j.jsx)(`p`,{className:`text-[12px] text-muted-foreground`,children:`Sent with your next message`}):null,(0,j.jsx)(sj,{title:`Skills`,items:t.skills??[]}),(0,j.jsx)(sj,{title:`Tools`,items:t.tools??[]}),t.unavailable.length>0?(0,j.jsx)(sj,{title:`Not loaded`,items:t.unavailable.map(e=>`${e.name} — ${e.reason}`)}):null]}),(0,j.jsx)(lw,{})]}):null,m?(0,j.jsxs)(j.Fragment,{children:[f&&t?(0,j.jsxs)(aw,{onSelect:()=>void d({agentId:t.agentId,versionId:f.id,variables:t.variables??{}},`The next message uses ${t.name} v${f.number}.`),children:[`Update to v`,f.number]}):null,(0,j.jsx)(aw,{onSelect:()=>o(!0),children:t?`Change agent…`:`Choose agent…`}),t?(0,j.jsx)(aw,{onSelect:()=>void d(null,`The next message runs without an agent.`),children:`Remove agent`}):null]}):l?(0,j.jsx)(`p`,{className:`px-2 py-1.5 text-[12px] text-muted-foreground`,children:XA}):null]})]}),(0,j.jsx)(cj,{transport:e.transport,open:a,onOpenChange:o,title:t?`Change agent`:`Choose an agent`,action:`Use this agent`,onConfirm:e=>d(e,`The next message uses the new agent.`)})]})}function sj({title:e,items:t}){return(0,j.jsxs)(`div`,{children:[(0,j.jsxs)(`p`,{className:`text-[11.5px] font-medium text-muted-foreground`,children:[e,` · `,t.length]}),t.length>0?(0,j.jsx)(`ul`,{className:`cs-agent-part-list`,children:t.map(e=>(0,j.jsx)(`li`,{className:`truncate`,title:e,children:e},e))}):null]})}function cj(e){let[t,n]=(0,_.useState)(null),[r,i]=(0,_.useState)(null),[a,o]=(0,_.useState)(null),[s,c]=(0,_.useState)(!1);(0,_.useEffect)(()=>{e.open&&(n(null),o(null))},[e.open]);let l=async()=>{if(!t)return;let n=rj(r,t);if(o(n),!n){c(!0);try{await e.onConfirm(t),e.onOpenChange(!1)}finally{c(!1)}}};return(0,j.jsx)(qS,{open:e.open,onOpenChange:e.onOpenChange,children:(0,j.jsxs)(oC,{className:`max-w-[480px]`,children:[(0,j.jsx)(sC,{children:(0,j.jsx)(lC,{children:e.title})}),(0,j.jsx)(nj,{transport:e.transport,open:e.open,value:t,onChange:e=>{n(e),o(null)},missing:a,onDetails:i}),(0,j.jsxs)(cC,{children:[(0,j.jsx)(v_,{type:`button`,variant:`ghost`,onClick:()=>e.onOpenChange(!1),children:`Cancel`}),t?(0,j.jsx)(v_,{type:`button`,disabled:s,onClick:()=>void l(),children:e.action}):null]})]})})}function lj(e,t,n){try{let r=localStorage.getItem(e);return t.includes(r??``)?r:n}catch{return n}}function uj(e,t){try{localStorage.setItem(e,t)}catch{}}function dj({children:e,action:t}){return(0,j.jsxs)(`div`,{"data-cs-section-label":!0,className:`flex h-8 items-center justify-between px-3 pt-3`,children:[(0,j.jsx)(`span`,{className:`text-[12px] font-medium text-muted-foreground`,children:e}),t]})}function fj({children:e}){return(0,j.jsx)(`div`,{className:`truncate px-4 pb-0.5 pt-2.5 text-[12px] font-medium text-muted-foreground`,children:e})}function pj(e){let[t,n]=(0,_.useState)(e.initial),r=(0,_.useRef)(!1),i=t=>{r.current||(r.current=!0,e.onDone(t))};return(0,j.jsx)(`input`,{autoFocus:!0,value:t,onChange:e=>n(e.target.value),onFocus:e=>e.currentTarget.select(),onKeyDown:e=>{e.key===`Enter`&&i(t),e.key===`Escape`&&i(null)},onBlur:()=>i(t),"aria-label":`New name for this chat`,className:`cs-rename-input`})}function mj(e){return e.kind===`session`&&e.session?`#s/${e.session.id}`:e.providerSessionId?`#d/${e.provider}/${e.providerSessionId}`:``}function hj(e){let t=qT(),n=OE(),[r,i]=(0,_.useState)(!1),[a,o]=(0,_.useState)(!1),{entry:s}=e;return(0,j.jsxs)(Db,{children:[(0,j.jsx)(Ob,{asChild:!0,children:(0,j.jsxs)(`div`,{className:Z(`cs-row group`,e.active&&`cs-row--active`,a&&`cs-row--menu`),"data-hidden":s.hidden||void 0,"data-cs-row":s.key,"data-cs-target":mj(s),"data-cs-provider":s.provider,"data-cs-title":s.title,"data-cs-live":e.live?`true`:void 0,"data-cs-active":e.active?`true`:void 0,children:[(0,j.jsx)(`button`,{type:`button`,onClick:e.onSelect,className:`cs-row__hit`,"aria-current":e.active?`true`:void 0,"aria-label":s.title,title:s.title===s.originalTitle?s.title:`${s.title}\n(${s.originalTitle})`}),(0,j.jsx)(`span`,{className:`pointer-events-none mt-0.5 shrink-0`,children:e.live?(0,j.jsx)(dE,{size:16,className:`text-primary`}):(0,j.jsx)(mE,{provider:s.provider,size:16})}),(0,j.jsxs)(`span`,{className:`cs-row__body`,children:[r?(0,j.jsx)(`span`,{className:`pointer-events-auto relative z-10 block`,children:(0,j.jsx)(pj,{initial:s.title,onDone:e=>{if(i(!1),e===null||e.trim()===s.title)return;let r=e.trim()===``||e.trim()===s.originalTitle?null:e;t.setPreference(s.key,{title:r}).catch(e=>n(`The new name didn't save: ${e instanceof Error?e.message:String(e)}`))}})}):(0,j.jsxs)(`span`,{className:`flex items-center gap-1`,children:[(0,j.jsx)(`span`,{className:`min-w-0 truncate text-[13px] font-medium leading-5`,children:s.title}),s.pinned?(0,j.jsx)(_E,{size:11,className:`shrink-0 text-muted-foreground`,"aria-label":`Pinned`}):null]}),(0,j.jsx)(`span`,{className:`block truncate text-[11.5px] leading-4 text-muted-foreground`,children:e.meta}),e.snippet?(0,j.jsx)(`span`,{className:`cs-row__snippet`,children:e.snippet}):null]}),r?null:(0,j.jsxs)(`span`,{className:`cs-row__actions`,children:[e.takeover,(0,j.jsxs)(YC,{open:a,onOpenChange:o,children:[(0,j.jsx)(XC,{asChild:!0,children:(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button`,"aria-label":`More for ${s.title}`,title:`More`,children:(0,j.jsx)(gE,{size:15})})}),(0,j.jsx)(iw,{align:`start`,className:`w-60`,onCloseAutoFocus:e=>e.preventDefault(),children:(0,j.jsx)(ME,{entry:s,variant:`dropdown`,onRename:()=>i(!0)})})]})]})]})}),(0,j.jsx)(Fb,{className:`w-60`,onCloseAutoFocus:e=>e.preventDefault(),children:(0,j.jsx)(ME,{entry:s,variant:`context`,onRename:()=>i(!0)})})]})}function gj(){return(0,j.jsx)(`div`,{className:`space-y-1.5 px-3 py-2`,"aria-hidden":`true`,children:[0,1,2].map(e=>(0,j.jsx)(`div`,{className:`cs-skeleton h-9 rounded-lg`},e))})}function _j({text:e,query:t}){let n=t.trim().toLowerCase();if(!n)return e;let r=e.toLowerCase().indexOf(n);return r<0?e:(0,j.jsxs)(j.Fragment,{children:[e.slice(0,r),(0,j.jsx)(`mark`,{className:`cs-mark`,children:e.slice(r,r+n.length)}),e.slice(r+n.length)]})}var vj={query:``,loading:!1,error:null,hits:[],scanned:0,total:0,nextCursor:null};function yj(e){let t=qT(),[n,r]=(0,_.useState)(vj),i=(0,_.useRef)(e);i.current=e;let a=(0,_.useCallback)(async(e,n,a)=>{r(t=>({...a?t:vj,query:e,loading:!0,error:null}));try{let o=await t.search(e,n);if(i.current.trim()!==e)return;r(t=>({query:e,loading:!1,error:null,hits:a?[...t.hits,...o.hits]:o.hits,scanned:(a?t.scanned:n)+o.scanned,total:o.total,nextCursor:o.nextCursor}))}catch(t){if(i.current.trim()!==e)return;r(e=>({...e,loading:!1,error:t instanceof Error?t.message:String(t)}))}},[t]);return(0,_.useEffect)(()=>{let t=e.trim();if(t.length<2){r(vj);return}let n=setTimeout(()=>void a(t,0,!1),350);return()=>clearTimeout(n)},[e,a]),[n,(0,_.useCallback)(()=>{n.nextCursor!==null&&!n.loading&&a(n.query,n.nextCursor,!0)},[a,n.nextCursor,n.loading,n.query])]}function bj(e){return{provider:e.provider,providerSessionId:e.providerSessionId,cwd:e.cwd,title:e.title,updatedAt:e.updatedAt,source:null,activeElsewhere:null}}function xj(e){let t=qT(),n=JT(),r=XT(),[i,a]=(0,_.useState)(``),[o,s]=yj(i),[c,l]=(0,_.useState)(()=>lj(`coding-sessions.group`,[`date`,`folder`],`date`)),[u,d]=(0,_.useState)(!1),[f,p]=(0,_.useState)(null),[m,h]=(0,_.useState)(null),g=n.preferences,v=n.sessions.data,y=e=>{let t=n.runs[e];return t!==void 0&&!vT(t.status)},{ours:b,others:x,hiddenCount:S}=(0,_.useMemo)(()=>{let e=v.map(e=>IT(e,g)),t=new Set(v.map(e=>e.providerSessionId).filter(Boolean)),r=n.discovered.data.filter(e=>!t.has(e.providerSessionId)).map(e=>LT(e,g));return{ours:e,others:r,hiddenCount:[...e,...r].filter(e=>e.hidden).length}},[v,n.discovered.data,g]),C=e=>u||!e.hidden,w=[...b,...x].filter(e=>e.pinned&&C(e)).sort(WT),T=b.filter(e=>!e.pinned&&e.session&&y(e.session.id)&&C(e)),E=b.filter(e=>!e.pinned&&!(e.session&&y(e.session.id))&&C(e)),D=x.filter(e=>!e.pinned&&C(e)),O=e=>{l(e),uj(`coding-sessions.group`,e)},k=t=>{t.session?e.select({kind:`session`,id:t.session.id}):t.providerSessionId&&e.select({kind:`discovered`,provider:t.provider,id:t.providerSessionId})},A=t=>t.session?e.selection.kind===`session`&&e.selection.id===t.session.id:e.selection.kind===`discovered`&&e.selection.id===t.providerSessionId,M=async n=>{p(n.providerSessionId),h(null);try{let r=await t.takeover(n);e.select({kind:`session`,id:r.id})}catch(e){h({id:n.providerSessionId,message:e instanceof Error?e.message:String(e)})}finally{p(null)}},N=(e,t)=>{let i=e.session?y(e.session.id):!1,a=e.session?n.runs[e.session.id]:void 0,o=e.discovered,s;if(i)s=`${hT[e.provider]} is working…`;else if(o?.activeElsewhere)s=(0,j.jsxs)(`span`,{className:`cs-live-elsewhere`,children:[(0,j.jsx)(`span`,{className:`cs-live-dot`,"aria-hidden":`true`}),`Running in `,hT[e.provider]]});else{let n=a?a.status===`failed`?`Failed · `:a.status===`stopped`?`Stopped · `:``:``,i=e.cwd?QT(e.cwd):`unknown folder`;s=`${n}${e.kind===`discovered`?`${hT[e.provider]} · `:``}${c===`folder`&&!t?``:`${i} · `}${ZT(e.updatedAt,r)}`}return(0,j.jsxs)(`div`,{children:[(0,j.jsx)(hj,{entry:e,active:A(e),onSelect:()=>k(e),live:i,meta:s,snippet:t?.snippet,takeover:o?.cwd?(0,j.jsxs)(`button`,{type:`button`,className:`cs-takeover-chip`,onClick:()=>o.activeElsewhere?k(e):void M(o),title:o.activeElsewhere?o.activeElsewhere.message:`Continue this chat here`,disabled:f===o.providerSessionId,children:[f===o.providerSessionId?(0,j.jsx)(dE,{size:11}):null,`Take over`]}):null}),m&&o&&m.id===o.providerSessionId?(0,j.jsx)(`p`,{className:`mx-4 mb-1 text-[11.5px] text-destructive`,children:m.message}):null]},e.key)},P=e=>HT(e,c,r).map(e=>(0,j.jsxs)(`div`,{role:`group`,"aria-label":e.label,children:[(0,j.jsx)(fj,{children:e.label}),e.entries.map(e=>N(e))]},e.label)),F=i.trim().length>0,I=F?[...b,...x].filter(e=>UT(e,i)).sort(WT):[],L=new Set(I.map(e=>e.key)),ee=new Map([...b,...x].map(e=>[e.key,e])),te=o.hits.filter(e=>!L.has(gT(e.provider,e.providerSessionId))),ne=t=>{let n=ee.get(gT(t.provider,t.providerSessionId));if(n){k(n);return}e.onFound(bj(t)),e.select({kind:`discovered`,provider:t.provider,id:t.providerSessionId})},re=(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(dj,{children:`Chats`}),I.length===0?(0,j.jsx)(`p`,{className:`px-4 py-1 text-[12px] text-muted-foreground`,children:`No listed chat has that in its name or folder.`}):I.map(e=>N(e,{query:i})),(0,j.jsx)(dj,{children:`In conversations`}),i.trim().length<2?(0,j.jsx)(`p`,{className:`px-4 py-1 text-[12px] text-muted-foreground`,children:`Type at least two letters to search what was said.`}):(0,j.jsxs)(j.Fragment,{children:[te.map(t=>{let n=ee.get(gT(t.provider,t.providerSessionId)),r=n??LT(bj(t),g);return(0,j.jsx)(`div`,{onClickCapture:n?void 0:()=>e.onFound(bj(t)),children:N(r,{query:i,snippet:t.snippet?(0,j.jsx)(_j,{text:t.snippet,query:i}):void 0})},`hit:${r.key}`)}),(0,j.jsx)(`div`,{className:`px-4 py-2 text-[11.5px] leading-4 text-muted-foreground`,role:`status`,"aria-live":`polite`,children:o.error?(0,j.jsxs)(`span`,{className:`text-destructive`,children:[`Search stopped: `,o.error]}):o.loading?(0,j.jsxs)(`span`,{className:`inline-flex items-center gap-1.5`,children:[(0,j.jsx)(dE,{size:12}),` Searching your chats…`]}):o.query?(0,j.jsxs)(j.Fragment,{children:[te.length===0&&o.hits.length===0?`Nothing found. `:null,o.nextCursor===null?`Searched all ${o.total.toLocaleString()} chats on this computer.`:`Searched the ${o.scanned.toLocaleString()} most recent of ${o.total.toLocaleString()} chats.`,o.nextCursor===null?null:(0,j.jsx)(`button`,{type:`button`,className:`cs-link ml-1`,onClick:s,children:`Search older chats`})]}):null})]})]}),ie=(0,j.jsxs)(j.Fragment,{children:[w.length>0?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(dj,{children:`Pinned`}),w.map(e=>N(e))]}):null,T.length>0?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(dj,{children:`Running`}),T.map(e=>N(e))]}):null,(0,j.jsx)(dj,{children:`Recent`}),n.sessions.loading&&n.sessions.loadedAt===null?(0,j.jsx)(gj,{}):n.sessions.error?(0,j.jsx)(`p`,{className:`px-4 py-1 text-[12px] text-destructive`,children:n.sessions.error}):E.length===0?T.length===0?(0,j.jsx)(`p`,{className:`px-4 py-1 text-[12px] leading-5 text-muted-foreground`,children:`Sessions you start or take over here will appear here.`}):null:E.map(e=>N(e)),(0,j.jsx)(dj,{action:(0,j.jsxs)(`span`,{className:`flex items-center gap-0.5`,children:[(0,j.jsxs)(YC,{children:[(0,j.jsx)(XC,{asChild:!0,children:(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button cs-icon-button--text`,"aria-label":`How to list your other chats`,children:c===`date`?`By date`:`By folder`})}),(0,j.jsxs)(iw,{align:`end`,className:`w-52`,children:[(0,j.jsx)(cw,{children:`Group your other chats`}),(0,j.jsxs)(QC,{value:c,onValueChange:e=>O(e),children:[(0,j.jsx)(sw,{value:`date`,children:`By date`}),(0,j.jsx)(sw,{value:`folder`,children:`By folder`})]}),(0,j.jsx)(lw,{}),(0,j.jsx)(aw,{onSelect:()=>d(e=>!e),children:u?`Leave hidden chats out`:`Show hidden chats${S?` (${S})`:``}`})]})]}),(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button`,onClick:()=>void t.refreshDiscovered(),"aria-label":`Look again for your other chats`,title:`Look again`,children:n.discovered.loading?(0,j.jsx)(dE,{size:13}):(0,j.jsx)(aE,{size:13})})]}),children:`Your other chats`}),n.discovered.loading&&n.discovered.loadedAt===null?(0,j.jsx)(gj,{}):n.discovered.error?(0,j.jsx)(`p`,{className:`px-4 py-1 text-[12px] text-destructive`,children:n.discovered.error}):D.length===0?(0,j.jsx)(`p`,{className:`px-4 py-1 text-[12px] leading-5 text-muted-foreground`,children:x.length>0?`Every chat found here is pinned or hidden.`:`No other Claude Code or Codex chats were found on this computer.`}):(0,j.jsxs)(j.Fragment,{children:[P(D),n.discovered.data.length>=n.discoveredLimit?(0,j.jsx)(`div`,{className:`px-3 pt-2`,children:(0,j.jsxs)(v_,{variant:`ghost`,size:`sm`,className:`w-full text-muted-foreground`,onClick:()=>void t.showMoreDiscovered(),disabled:n.discovered.loading,children:[n.discovered.loading?(0,j.jsx)(dE,{size:13}):null,`Show older chats`]})}):null]}),u?null:S>0?(0,j.jsxs)(`button`,{type:`button`,className:`cs-link mx-4 mt-3 text-[11.5px]`,onClick:()=>d(!0),children:[S,` hidden `,S===1?`chat`:`chats`,` — show`]}):null]});return(0,j.jsxs)(`aside`,{className:`cs-sidebar flex h-full shrink-0 flex-col border-r border-border bg-sidebar-background`,style:{width:e.width},"aria-label":`Sessions`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between gap-2 px-4 pb-2 pt-3.5`,children:[(0,j.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[(0,j.jsx)(`span`,{className:`cs-app-mark`,"aria-hidden":`true`}),(0,j.jsx)(`span`,{className:`truncate text-[14px] font-semibold tracking-[-0.01em]`,children:`Coding sessions`})]}),(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button`,onClick:e.onCollapse,"aria-label":`Hide the sidebar (⌘B)`,title:`Hide sidebar ⌘B`,children:(0,j.jsx)(xE,{size:15})})]}),(0,j.jsxs)(`div`,{className:`space-y-1.5 px-3 pb-1`,children:[(0,j.jsxs)(v_,{className:`w-full justify-start gap-2`,variant:`outline`,size:`sm`,onClick:e.onNew,children:[(0,j.jsx)(eE,{size:15}),`New session`,(0,j.jsx)(`kbd`,{className:`cs-kbd ml-auto`,children:`⌥⌘N`})]}),(0,j.jsxs)(`div`,{className:`cs-search`,children:[(0,j.jsx)(hE,{size:14,className:`cs-search__icon`}),(0,j.jsx)(`input`,{ref:e.searchRef,type:`search`,value:i,onChange:e=>a(e.target.value),onKeyDown:e=>{if(e.key===`Escape`&&(i?a(``):e.currentTarget.blur(),e.preventDefault()),e.key===`Enter`){let e=I[0],t=te[0];e?k(e):t&&ne(t)}},placeholder:`Search chats`,"aria-label":`Search chats by name, folder or what was said`,spellCheck:!1,className:`cs-search__input`}),i?(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button cs-search__clear`,onClick:()=>a(``),"aria-label":`Clear search`,children:(0,j.jsx)(wE,{size:13})}):(0,j.jsx)(`kbd`,{className:`cs-search__kbd`,children:`⌘K`})]})]}),(0,j.jsx)(`nav`,{className:`min-h-0 flex-1 overflow-y-auto pb-3`,children:F?re:ie}),e.footer]})}function Sj(){let e=[],t=null,n=0,r=null,i=new Map;function a(t,n,r){let i={...t.message,parts:n,status:r??t.message.status};t.message=i;let a=e.findIndex(e=>e.id===i.id);a>=0&&(e[a]=i)}function o(){if(t)return t;n+=1;let r=S({id:`turn-${n}-${e.length}`,role:`assistant`,status:`streaming`});return e.push(r),t={message:r,index:new Map},t}function s(e,t){let n=o(),r=[...n.message.parts],i=n.index.get(e);i===void 0?(n.index.set(e,r.length),r.push(t(null))):r[i]=t(r[i]??null),a(n,r)}function c(e){if(!t)return;let n=t;a(n,n.message.parts.map(t=>{if(t.type===`reasoning`&&t.state===`streaming`)return{...t,state:`done`};if(t.type===`tool`&&t.state===`input-available`&&e!==`streaming`){if(e===`cancelled`)return{...t,state:`output-error`,errorText:`Stopped before this finished.`};if(e===`error`)return{...t,state:`output-error`,errorText:`The run ended before this finished.`}}return t}),e),t=null}let l={apply(n){switch(n.kind){case`user`:c(`complete`),e.push(S({id:`user-${n.id}`,role:`user`,parts:[{type:`text`,text:n.text}],status:`complete`,metadata:n.at?{createdAt:n.at}:void 0}));return;case`text-delta`:s(n.id,e=>e&&e.type===`text`?{type:`text`,text:e.text+n.text}:{type:`text`,text:n.text});return;case`text`:s(n.id,()=>({type:`text`,text:n.text}));return;case`reasoning`:s(n.id,()=>({type:`reasoning`,text:n.text,state:`done`}));return;case`tool-call`:{let r=AT(n.name,n.input),a=r?[{toolName:n.name,message:r,percent:null,at:null}]:[];s(n.id,e=>e&&e.type===`tool`?{...e,input:n.input,progress:a}:{type:`tool`,toolCallId:n.id,toolName:n.name,state:`input-available`,input:n.input,output:null,errorText:null,progress:a,delegated:!1});let o=t;if(o){let t=o.index.get(n.id),r=e.findIndex(e=>e.id===o.message.id);t!==void 0&&r>=0&&i.set(n.id,{messageIndex:r,partIndex:t})}return}case`tool-result`:{let r=i.get(n.id);if(!r){s(n.id,()=>({type:`tool`,toolCallId:n.id,toolName:`Tool`,state:n.isError?`output-error`:`output-available`,input:null,output:n.isError?null:n.output,errorText:n.isError?n.output||`The tool reported an error.`:null,progress:[],delegated:!1}));return}let a=e[r.messageIndex],o=a?.parts[r.partIndex];if(!a||!o||o.type!==`tool`)return;let c=n.isError?{...o,state:`output-error`,errorText:n.output||`The tool reported an error.`,output:null}:{...o,state:`output-available`,output:n.output},l=[...a.parts];l[r.partIndex]=c;let u={...a,parts:l};e[r.messageIndex]=u,t&&t.message.id===u.id&&(t.message=u);return}case`usage`:r={usage:n.usage,costUsd:n.costUsd};return;case`notice`:s(n.id,()=>({type:`notice`,level:n.level===`warning`?`medium`:`info`,code:null,userMessage:n.text,remedy:null}));return;case`error`:{let e=CT(n.text);if(t?.message.parts.some(t=>t.type===`error`&&t.message.trim()===e.trim()))return;s(n.id,()=>({type:`error`,errorType:`provider`,code:null,message:e,userMessage:e,recoverable:!0,remedy:null}));return}}},applyAll(e){for(let t of e)l.apply(t)},beginTurn(){o()},endTurn(n,r){n===`failed`&&r&&l.apply({kind:`error`,id:`run-error-${e.length}`,text:r}),n===`stopped`&&t&&l.apply({kind:`notice`,id:`run-stopped-${e.length}`,level:`info`,text:`You stopped this run.`}),c(n===`stopped`?`cancelled`:n===`failed`?`error`:`complete`)},messages(){return e.slice()},lastUsage(){return r}};return l}var Cj=60,wj=25165824;function Tj(e){return{data:e,loading:!1,error:null,loadedAt:null}}function Ej(e){return e instanceof Error?e.message:String(e)}var Dj=class{sessionId;client;thread;builder=Sj();messages=[];listeners=new Set;seqMark=0;pending=[];activeRunId=null;activity=null;state={loading:!0,unavailable:null,truncated:!1};maxBytes=wj;constructor(e,t){this.sessionId=e,this.client=t,this.thread=mT({getSnapshot:()=>({messages:this.messages,status:this.status(),conversationId:this.sessionId,ephemeral:!1}),features:{surface:{sendWhileBusy:!0}},subscribe:e=>(this.listeners.add(e),()=>{this.listeners.delete(e)}),onSubmit:async e=>{await this.client.send(this.sessionId,e.text)},onCancel:async()=>{let e=this.client.getState().runs[this.sessionId];e&&!vT(e.status)&&await this.client.stop(e.runId)}})}status(){let e=this.client.getState().runs[this.sessionId];return e?e.status===`starting`?`submitted`:e.status===`running`?`streaming`:`idle`:`idle`}notify(){this.messages=this.builder.messages();for(let e of this.listeners)e()}async loadEarlier(){this.state.truncated&&!this.state.loadingEarlier&&(this.maxBytes*=4,this.state={...this.state,loadingEarlier:!0},this.notify(),await this.load(!0))}async load(e=!1){e||(this.state={loading:!0,unavailable:null,truncated:!1},this.notify());try{let e=await this.client.transport.call(`history`,this.sessionId,{maxBytes:this.maxBytes});this.builder=Sj(),this.builder.applyAll(e.items),this.seqMark=e.seq;let t=this.client.getState().runs[this.sessionId];t&&!vT(t.status)?(this.activeRunId=t.runId,this.builder.beginTurn()):this.builder.endTurn(`completed`),this.state={loading:!1,unavailable:e.unavailable,truncated:e.truncated};let n=this.pending;this.pending=[];for(let e of n)this.onEvent(e.event)}catch(e){this.state={loading:!1,unavailable:Ej(e),truncated:!1}}this.notify()}onEvent(e){if(this.state.loading){e.type===`item`&&this.pending.push({seq:e.seq,event:e});return}if(e.type===`item`){if(e.seq<=this.seqMark)return;this.seqMark=e.seq,this.builder.apply(e.item),e.item.kind===`user`&&(this.activeRunId=e.runId,this.builder.beginTurn()),this.activity=Oj(this.activity,e.item),this.notify();return}if(e.type===`run`){let t=e.run;vT(t.status)&&(this.activity=null,this.activeRunId===t.runId?(this.builder.endTurn(t.status,t.error),this.activeRunId=null):t.status===`failed`&&t.error&&this.builder.endTurn(`failed`,t.error)),this.notify()}}};function Oj(e,t){switch(t.kind){case`user`:return`Thinking…`;case`text-delta`:return`Writing…`;case`text`:case`reasoning`:case`tool-result`:return`Thinking…`;case`tool-call`:{let e=AT(t.name,t.input);return`${DT(t.name)}${e?` — ${e}`:``}`}default:return e}}var kj=class{transport;state;listeners=new Set;transcripts=new Map;finishedListeners=new Set;onRunFinished=e=>(this.finishedListeners.add(e),()=>{this.finishedListeners.delete(e)});constructor(e){this.transport=e,this.state={connection:e.status(),providers:Tj([]),sessions:Tj([]),discovered:Tj([]),folders:Tj([]),runs:{},preferences:{},discoveredLimit:Cj},e.onStatus(e=>{let t=this.state.connection.state===`open`;this.set({connection:e}),e.state===`open`&&!t&&this.refreshAll()}),e.subscribe(e=>this.onEvent(e))}getState=()=>this.state;subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});set(e){this.state={...this.state,...e};for(let e of this.listeners)e()}onEvent(e){if(e.type===`session`){let t=this.state.sessions.data.filter(t=>t.id!==e.session.id);t.unshift(e.session),t.sort((e,t)=>t.updatedAt.localeCompare(e.updatedAt)),this.set({sessions:{...this.state.sessions,data:t}})}else if(e.type===`run`){let t=this.state.runs[e.run.sessionId];if(this.set({runs:{...this.state.runs,[e.run.sessionId]:e.run}}),vT(e.run.status)&&(!t||t.runId!==e.run.runId||!vT(t.status))){let t=this.state.sessions.data.find(t=>t.id===e.run.sessionId)??null;for(let n of this.finishedListeners)n({run:e.run,session:t})}}else if(e.type===`preferences`){this.set({preferences:e.preferences});return}let t=e.type===`session`?e.session.id:e.type===`run`?e.run.sessionId:e.sessionId;this.transcripts.get(t)?.onEvent(e)}async load(e,t){this.set({[e]:{...this.state[e],loading:!0,error:null}});try{let n=await t();this.set({[e]:{data:n,loading:!1,error:null,loadedAt:Date.now()}})}catch(t){this.set({[e]:{...this.state[e],loading:!1,error:Ej(t)}})}}refreshProviders=()=>this.load(`providers`,()=>this.transport.call(`providers`));refreshDiscovered=()=>this.load(`discovered`,()=>this.transport.call(`discoverSessions`,{limit:this.state.discoveredLimit}));showMoreDiscovered=async()=>{this.set({discoveredLimit:this.state.discoveredLimit+Cj}),await this.refreshDiscovered()};refreshPreferences=async()=>{try{this.set({preferences:await this.transport.call(`chatPreferences`)})}catch{}};setPreference=async(e,t)=>{let n=this.state.preferences,r={...n[e],...t};this.set({preferences:{...n,[e]:r}});try{this.set({preferences:await this.transport.call(`setChatPreference`,e,t)})}catch(e){throw this.set({preferences:n}),e}};search(e,t=0){return this.transport.call(`searchChats`,e,{cursor:t,limit:30})}readRawTranscript(e,t){return this.transport.call(`readRawTranscript`,e,t)}openFolder(e,t){return this.transport.call(`openFolder`,e,t)}setSessionOptions(e,t){return this.transport.call(`setSessionOptions`,e,t)}refreshFolders=()=>this.load(`folders`,()=>this.transport.call(`recentFolders`));refreshSessions=async()=>{await this.load(`sessions`,()=>this.transport.call(`listSessions`));let e={};await Promise.all(this.state.sessions.data.map(async t=>{let n=await this.transport.call(`listRuns`,t.id).catch(()=>[]),r=n[n.length-1];r&&(e[t.id]=r)})),this.set({runs:{...e,...this.pickLive()}})};pickLive(){let e={};for(let[t,n]of Object.entries(this.state.runs))vT(n.status)||(e[t]=n);return e}refreshAll=async()=>{await Promise.all([this.refreshSessions(),this.refreshProviders(),this.refreshDiscovered(),this.refreshFolders(),this.refreshPreferences()]);for(let e of this.transcripts.values())e.load()};transcript(e){let t=this.transcripts.get(e);return t||(t=new Dj(e,this),this.transcripts.set(e,t),t.load()),t}async readPreview(e,t,n){try{let r=await this.transport.call(`readTranscript`,e,t,n?{maxBytes:n}:void 0),i=Sj();return i.applyAll(r.items),i.endTurn(`completed`),{loading:!1,messages:i.messages(),unavailable:r.unavailable,truncated:r.truncated}}catch(e){return{loading:!1,messages:[],unavailable:Ej(e),truncated:!1}}}start(e){return this.transport.call(`start`,e)}takeover(e,t){return this.transport.call(`takeover`,{provider:e.provider,providerSessionId:e.providerSessionId,cwd:e.cwd??``,title:e.title,...t?{agent:t}:{}})}send(e,t){return this.transport.call(`send`,e,t)}stop(e){return this.transport.call(`stop`,e)}},Aj=[`agent`,`folder`,`prompt`];async function jj(e){let t={},n=e.provider;if(n&&(!n.installed||!n.loggedIn)&&(t.agent=`${n.problem??`${n.label} can't run here yet.`} ${n.fix??``}`.trim()),!e.folder.trim())t.folder=`Choose a folder, or type one, for it to work in.`;else try{let n=await e.checkFolder(e.folder);n.exists?n.isDirectory||(t.folder=`That path is a file, not a folder.`):(t.folder=`That folder doesn't exist on this computer.`,t.createFolder=n.path)}catch(e){t.folder=`Couldn't check that folder: ${e instanceof Error?e.message:String(e)}`}return e.prompt.trim()||(t.prompt=`Tell it what to do first.`),t}function Mj(e){return Aj.find(t=>e[t]!==void 0)??null}function Nj({transport:e,children:t}){let[n]=(0,_.useState)(()=>new kj(e));return(0,_.useEffect)(()=>{e.status().state===`open`&&n.refreshAll()},[n,e]),(0,j.jsx)(KT.Provider,{value:n,children:t})}function Pj(){if(typeof location>`u`)return{kind:`none`};let[e,t,n]=location.hash.replace(/^#/,``).split(`/`);return e===`s`&&t?{kind:`session`,id:t}:e===`d`&&(t===`claude`||t===`codex`)&&n?{kind:`discovered`,provider:t,id:n}:{kind:`none`}}function Fj(e){if(typeof history>`u`)return;let t=e.kind===`session`?`#s/${e.id}`:e.kind===`discovered`?`#d/${e.provider}/${e.id}`:``;history.replaceState(null,``,`${location.pathname}${location.search}${t}`)}function Ij(){try{let e=localStorage.getItem(`coding-sessions.theme`);return e===`light`||e===`dark`?e:`system`}catch{return`system`}}function Lj(){let[e,t]=(0,_.useState)(Ij);return(0,_.useEffect)(()=>{let t=typeof window.matchMedia==`function`?window.matchMedia(`(prefers-color-scheme: dark)`):null,n=()=>{let n=e===`dark`||e===`system`&&t?.matches===!0;document.documentElement.classList.toggle(`dark`,n),document.documentElement.setAttribute(`data-theme`,n?`dark`:`light`)};return n(),t?.addEventListener(`change`,n),()=>t?.removeEventListener(`change`,n)},[e]),[e,(0,_.useCallback)(e=>{t(e);try{localStorage.setItem(`coding-sessions.theme`,e)}catch{}},[])]}var Rj={starting:`Starting`,running:`Working`,completed:`Done`,stopped:`Stopped`,failed:`Failed`};function zj({run:e}){if(!e)return null;let t=!vT(e.status);return(0,j.jsxs)(`span`,{className:Z(`cs-pill`,`cs-pill--${e.status}`),children:[t?(0,j.jsx)(`span`,{className:`cs-pill__dot`,"aria-hidden":`true`}):null,Rj[e.status]]})}function Bj(){let{connection:e}=JT();if(e.state===`open`)return null;let t=e.state===`closed`;return(0,j.jsxs)(`div`,{role:`status`,className:Z(`flex items-center gap-2 border-b px-4 py-2 text-[13px]`,t?`border-destructive/30 bg-destructive/10 text-destructive`:`border-border bg-muted/60 text-muted-foreground`),children:[t?(0,j.jsx)(iE,{size:15}):(0,j.jsx)(dE,{size:14}),(0,j.jsx)(`span`,{children:t?e.reason:`Connecting to the coding sessions host…`})]})}function Vj(e){let t=JT(),n=qT(),r={system:`light`,light:`dark`,dark:`system`},i={system:`Match system`,light:`Light`,dark:`Dark`};return(0,j.jsx)(`div`,{className:`border-t border-border px-3 py-2.5`,children:(0,j.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,j.jsx)(`div`,{className:`flex min-w-0 flex-1 flex-wrap gap-1.5`,children:t.providers.loading&&t.providers.loadedAt===null?(0,j.jsx)(`span`,{className:`text-[11.5px] text-muted-foreground`,children:`Checking Claude Code and Codex…`}):t.providers.data.map(e=>{let t=e.lastProblem?yT(e.lastProblem.until):null,n=e.lastProblem?e.lastProblem.kind===`signed-out`?`· sign in again`:`· limit${t?` until ${t}`:``}`:null,r=e.problem?`${e.problem} ${e.fix??``}`.trim():[Jj(e)??e.label,e.plan,Yj(e)].filter(Boolean).join(` · `);return(0,j.jsxs)(`span`,{className:Z(`cs-provider-chip`,e.ready?``:`cs-provider-chip--problem`),title:n&&!e.problem?`${r} ${n}`:r,children:[(0,j.jsx)(mE,{provider:e.provider,size:13}),e.label,n?(0,j.jsx)(`span`,{className:`cs-provider-chip__note`,children:n}):null,e.ready?(0,j.jsx)(rE,{size:12}):(0,j.jsx)(iE,{size:12})]},e.provider)})}),(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button`,onClick:()=>void n.refreshProviders(),"aria-label":`Check Claude Code and Codex again`,title:`Check again`,children:t.providers.loading?(0,j.jsx)(dE,{size:13}):(0,j.jsx)(aE,{size:13})}),e.extra,(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button`,onClick:()=>e.setTheme(r[e.theme]),"aria-label":`Theme: ${i[e.theme]}. Switch to ${i[r[e.theme]]}.`,title:`Theme: ${i[e.theme]}`,children:e.theme===`system`?(0,j.jsx)(lE,{size:14}):e.theme===`light`?(0,j.jsx)(sE,{size:14}):(0,j.jsx)(cE,{size:14})})]})})}function Hj(){let e=(0,_.useContext)(DE);return(0,_.useMemo)(()=>({notify(t){e(t.message)}}),[e])}function Uj(e,t,n=null){let r=qT(),[i,a]=(0,_.useState)(n);return(0,_.useEffect)(()=>{if(!e||!t){a(null);return}let n=!1,i=()=>r.transport.call(`sessionActivity`,e,t).then(e=>{n||a(e)}).catch(()=>void 0);i();let o=setInterval(i,1e4);return()=>{n=!0,clearInterval(o)}},[r,e,t]),i}function Wj(e,t){let n=qT(),[r,i]=(0,_.useState)(null);return(0,_.useEffect)(()=>{let t=!1;return n.transport.call(`listRuns`,e).then(e=>{if(t)return;let n=0,r=null,a=null;for(let t of e)t.usage&&(n+=t.usage.inputTokens+t.usage.outputTokens+t.usage.cachedInputTokens),t.costUsd!==null&&(r=(r??0)+t.costUsd),a=t.billing??a;i(n>0||r!==null?{tokens:n,cost:r,billing:a,runs:e.length}:null)}).catch(()=>void 0),()=>{t=!0}},[n,e,t]),r}function Gj(e){return(0,j.jsxs)(YC,{children:[(0,j.jsx)(XC,{asChild:!0,children:(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button shrink-0`,"aria-label":`More for this chat`,title:`More`,children:(0,j.jsx)(gE,{size:16})})}),(0,j.jsxs)(iw,{align:`end`,className:`w-64`,onCloseAutoFocus:e=>e.preventDefault(),children:[e.onChanges?(0,j.jsxs)(aw,{onSelect:e.onChanges,children:[(0,j.jsx)(CE,{size:14}),e.changesOpen?`Hide changed files`:`Files this chat changed`]}):null,(0,j.jsx)(ME,{entry:e.entry,variant:`dropdown`,onRename:e.onRename})]})]})}function Kj(e){let t=qT(),n=(0,_.useContext)(DE),[r,i]=(0,_.useState)(e.entry.title);(0,_.useEffect)(()=>i(e.entry.title),[e.entry.title,e.renaming]);let a=(0,_.useRef)(null);if((0,_.useEffect)(()=>{if(!e.renaming)return;let t=setTimeout(()=>{let e=a.current;e&&document.activeElement!==e&&(e.focus(),e.select())},0);return()=>clearTimeout(t)},[e.renaming]),!e.renaming)return(0,j.jsx)(`h1`,{className:`truncate text-[15px] font-semibold leading-5 tracking-[-0.01em]`,title:e.entry.title===e.entry.originalTitle?e.entry.title:`${e.entry.title} (${e.entry.originalTitle})`,onDoubleClick:()=>e.setRenaming(!0),children:e.entry.title});let o=()=>{e.setRenaming(!1);let i=r.trim();if(i===e.entry.title)return;let a=i===``||i===e.entry.originalTitle?null:i;t.setPreference(e.entry.key,{title:a}).catch(e=>n(`The new name didn't save: ${e instanceof Error?e.message:String(e)}`))};return(0,j.jsx)(`input`,{ref:a,autoFocus:!0,value:r,onChange:e=>i(e.target.value),onFocus:e=>e.currentTarget.select(),onBlur:o,onKeyDown:t=>{t.key===`Enter`&&o(),t.key===`Escape`&&e.setRenaming(!1)},"aria-label":`New name for this chat`,className:`cs-rename-input !m-0 !h-6 !text-[15px] !font-semibold`})}function qj(e){return(0,j.jsxs)(`p`,{className:`mx-auto mt-3 flex items-center gap-2 text-[12px] text-muted-foreground`,children:[`This chat is very long — showing its most recent part.`,(0,j.jsx)(`button`,{type:`button`,className:`cs-link`,onClick:e.onEarlier,disabled:e.loading,children:e.loading?`Reading…`:`Show earlier`})]})}function Jj(e){return e.version?`${e.label} ${e.version}${e.binary?` · ${e.binary.sourceLabel}`:``}`:null}function Yj(e){return e.binary?.newer?`Newer: ${e.binary.newer.version} ${e.binary.newer.sourceLabel}`:null}function Xj({session:e,changesOpen:t,setChangesOpen:n}){let r=qT(),i=JT(),a=(0,_.useContext)(DE),o=YT(e.id),s=i.runs[e.id],c=s!==void 0&&!vT(s.status),l=Hj(),u=i.providers.data.find(t=>t.provider===e.provider)??null,d=u&&(!u.installed||!u.loggedIn)?u:null,f=!d&&u?.lastProblem?u:null,p=s?.status===`failed`&&ST(s.error),[m,h]=(0,_.useState)(!1),[g,v]=(0,_.useState)(!1),y=Uj(e.origin===`takeover`&&!c?e.provider:null,e.providerSessionId),b=IT(e,i.preferences),x=o.thread.getSnapshot().messages,S=LE(x),C=Wj(e.id,`${s?.runId??``}:${s?.status??``}`);(0,_.useEffect)(()=>{c||h(!1)},[c]);let w=async()=>{s&&(h(!0),await r.stop(s.runId).catch(()=>h(!1)))},T=t=>{r.setSessionOptions(e.id,{model:t.model,effort:t.effort}).then(()=>a(`The next message uses ${BE(t,u)}.`)).catch(e=>a(`That didn't save: ${e instanceof Error?e.message:String(e)}`))},E=C?`${si(C.tokens,{style:`compact`})} tokens${C.cost===null?``:` · ${ai(C.cost)}`}`:null,D=C?`${si(C.tokens)} tokens over ${C.runs} ${C.runs===1?`message`:`messages`} sent from here.`+(C.cost===null?``:C.billing===`subscription`?` ${ai(C.cost)} is what this would cost at API prices — it's covered by your ${u?.plan??``} plan.`.replace(` `,` `):` Billed ${ai(C.cost)} to your API key.`):``;return(0,j.jsxs)(`div`,{className:`flex min-w-0 flex-1`,children:[(0,j.jsxs)(`section`,{className:`flex min-w-0 flex-1 flex-col`,"aria-label":b.title,children:[(0,j.jsxs)(`header`,{className:`@container/header flex items-center gap-2 border-b border-border px-5 pt-2.5 pb-2.5`,children:[(0,j.jsx)(mE,{provider:e.provider,size:22}),(0,j.jsxs)(`div`,{className:`min-w-0 flex-1 overflow-hidden`,children:[(0,j.jsx)(Kj,{entry:b,renaming:g,setRenaming:v}),(0,j.jsxs)(`div`,{className:`flex min-w-0 items-center gap-1 text-[12px] leading-5 text-muted-foreground`,children:[(0,j.jsx)(`span`,{className:`shrink-0`,children:hT[e.provider]}),(0,j.jsx)(`span`,{"aria-hidden":`true`,children:`·`}),(0,j.jsx)(VE,{status:u,value:{model:e.model,effort:e.effort??null},onChange:T}),(0,j.jsx)(`span`,{"aria-hidden":`true`,children:`·`}),(0,j.jsx)(nE,{size:12,className:`shrink-0`}),(0,j.jsx)(`span`,{className:`min-w-[4rem] truncate`,title:e.cwd,children:QT(e.cwd)}),E?(0,j.jsxs)(`span`,{className:`shrink-0`,title:D,children:[`· `,E]}):null]})]}),(0,j.jsx)(oj,{transport:r.transport,sessionId:e.id,agent:e.agent??null,onChange:()=>void 0}),(0,j.jsxs)(`button`,{type:`button`,className:Z(`cs-chip-button shrink-0 @max-[620px]/header:hidden`,t&&`cs-chip-button--on`),onClick:()=>n(!t),"aria-pressed":t,title:`Files this chat changed`,children:[(0,j.jsx)(CE,{size:13}),S.length>0?`${S.length} ${S.length===1?`file`:`files`} changed`:`Changes`]}),(0,j.jsx)(zj,{run:s}),c?(0,j.jsxs)(v_,{variant:`outline`,size:`sm`,onClick:()=>void w(),disabled:m,className:`gap-1.5`,title:`Stop Esc`,children:[m?(0,j.jsx)(dE,{size:13}):(0,j.jsx)(tE,{size:13}),m?`Stopping…`:`Stop`]}):null,(0,j.jsx)(Gj,{entry:b,onRename:()=>v(!0),onChanges:()=>n(!t),changesOpen:t})]}),(0,j.jsx)(`div`,{className:`mx-chat flex min-h-0 flex-1 flex-col`,children:(0,j.jsxs)(hi,{thread:o.thread,ports:{notifier:l,toolLabel:DT},children:[(0,j.jsx)(`div`,{className:`min-h-0 flex-1 overflow-hidden`,children:o.state.loading?(0,j.jsxs)(`div`,{className:`flex h-full items-center justify-center gap-2 text-[13px] text-muted-foreground`,children:[(0,j.jsx)(dE,{size:15}),` Loading the conversation…`]}):(0,j.jsxs)(`div`,{className:`flex h-full flex-col`,children:[o.state.unavailable?(0,j.jsx)(`p`,{className:`mx-auto mt-4 max-w-[720px] rounded-lg border border-border bg-muted/50 px-4 py-2.5 text-[13px] text-muted-foreground`,children:o.state.unavailable}):null,o.state.truncated?(0,j.jsx)(qj,{loading:o.state.loadingEarlier===!0,onEarlier:()=>void o.loadEarlier()}):null,x.length===0&&!c?(0,j.jsx)(`div`,{className:`flex flex-1 items-center justify-center text-[13px] text-muted-foreground`,children:e.origin===`takeover`?`You've taken over this chat. Send a message to continue it.`:`Nothing here yet.`}):(0,j.jsx)(Gw,{className:`min-h-0 flex-1`,label:`Conversation: ${b.title}`})]})}),(0,j.jsxs)(`div`,{"data-cs-composer":!0,className:`mx-auto w-full max-w-[820px] px-4 pb-4`,children:[f?(0,j.jsxs)(`div`,{className:`mb-2 flex items-start gap-2 rounded-lg border border-warning/40 bg-warning/10 px-3 py-2 text-[12.5px]`,children:[(0,j.jsx)(iE,{size:15,className:`mt-0.5 shrink-0 text-warning`}),(0,j.jsxs)(`span`,{children:[f.problem,` `,f.fix]})]}):null,p&&!d?(0,j.jsxs)(`div`,{className:`mb-2 flex items-center gap-2 rounded-lg border border-warning/40 bg-warning/10 px-3 py-2 text-[12.5px]`,role:`alert`,children:[(0,j.jsx)(iE,{size:15,className:`shrink-0 text-warning`}),(0,j.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,title:s?.error??void 0,children:xT}),(0,j.jsx)(VE,{status:u,value:{model:e.model,effort:e.effort??null},onChange:T})]}):null,d?(0,j.jsxs)(`div`,{className:`mb-2 flex items-start gap-2 rounded-lg border border-warning/40 bg-warning/10 px-3 py-2 text-[12.5px]`,children:[(0,j.jsx)(iE,{size:15,className:`mt-0.5 shrink-0 text-warning`}),(0,j.jsxs)(`span`,{children:[d.problem,` `,d.fix]})]}):null,(0,j.jsx)(`div`,{className:`cs-activity`,role:`status`,"aria-live":`polite`,"data-idle":!c||void 0,children:c?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(dE,{size:13}),(0,j.jsx)(`span`,{className:`truncate`,children:s?.status===`starting`?`Starting ${hT[e.provider]}…`:o.activity??`Thinking…`}),(0,j.jsx)(`span`,{className:`ml-auto shrink-0 text-[11px] opacity-70`,children:`Esc to stop`})]}):null}),y?(0,j.jsxs)(`div`,{className:`mb-2 flex items-start gap-2 rounded-lg border border-warning/40 bg-warning/10 px-3 py-2 text-[12.5px]`,children:[(0,j.jsx)(iE,{size:15,className:`mt-0.5 shrink-0 text-warning`}),(0,j.jsxs)(`span`,{children:[y.message,` A message sent here would put a second agent on the same chat.`]})]}):null,e.queued.length>0?(0,j.jsx)(`ul`,{className:`mb-2 space-y-1.5`,"aria-label":`Queued messages`,children:e.queued.map((e,t)=>(0,j.jsxs)(`li`,{className:`cs-queued`,children:[(0,j.jsx)(`span`,{className:`cs-queued__label`,children:`Queued · sends when this run finishes`}),(0,j.jsx)(`span`,{className:`cs-queued__text`,children:e})]},`${t}-${e.slice(0,16)}`))}):null,(0,j.jsx)(pT,{placeholder:`Message ${hT[e.provider]}…`,autoFocus:!0,...d?{held:{reason:`${d.problem} ${d.fix??``}`.trim()}}:{}})]})]})})]}),t?(0,j.jsx)(RE,{files:S,cwd:e.cwd,truncated:o.state.truncated,onClose:()=>n(!1)}):null]})}function Zj(e,t){let n=(0,_.useRef)({messages:[],listeners:new Set}),r=(0,_.useRef)(t);return r.current=t,[(0,_.useMemo)(()=>mT({getSnapshot:()=>({messages:n.current.messages,status:`idle`,conversationId:e}),subscribe:e=>(n.current.listeners.add(e),()=>{n.current.listeners.delete(e)}),onSubmit:()=>r.current()}),[e]),(0,_.useCallback)(e=>{n.current.messages=e;for(let e of n.current.listeners)e()},[])]}function Qj(e){let t=qT(),n=JT(),r=(0,_.useContext)(DE),i=XT(),[a,o]=(0,_.useState)({loading:!0,messages:[],unavailable:null,truncated:!1}),[s,c]=(0,_.useState)(!1),[l,u]=(0,_.useState)(null),[d,f]=(0,_.useState)(!1),[p,m]=(0,_.useState)(!1),[h,g]=(0,_.useState)(void 0),[v,y]=(0,_.useState)(!1),b=Uj(e.provider,e.id,e.session?.activeElsewhere??null),x=LE(a.messages),S=e.session,[C,w]=Zj(e.id,()=>r(S?.cwd?`This chat is read-only until you take it over. Press Take over to continue it here.`:`This chat is read-only here: it doesn't record its folder, so it can't be continued.`));(0,_.useEffect)(()=>{let n=!1,r=r=>t.readPreview(e.provider,e.id,h).then(e=>{n||(w(e.messages),o(e),r&&y(!1))});h===void 0&&o({loading:!0,messages:[],unavailable:null,truncated:!1}),r(!0);let i=b?setInterval(()=>void r(!1),8e3):null;return()=>{n=!0,i&&clearInterval(i)}},[t,e.provider,e.id,h,b!==null,w]);let T=Hj(),E=LT(S??{provider:e.provider,providerSessionId:e.id,cwd:null,title:`Chat`,updatedAt:``,source:null,activeElsewhere:null},n.preferences),D=()=>{b?f(!0):A()},[O,k]=(0,_.useState)(!1),A=async n=>{if(S){f(!1),c(!0),u(null);try{let r=await t.takeover(S,n);e.onTakenOver(r.id)}catch(e){u(e instanceof Error?e.message:String(e))}finally{c(!1)}}};return(0,j.jsxs)(`div`,{className:`flex min-w-0 flex-1`,children:[(0,j.jsxs)(`section`,{className:`flex min-w-0 flex-1 flex-col`,"aria-label":E.title,children:[(0,j.jsxs)(`header`,{className:`@container/header flex items-center gap-2 border-b border-border px-5 pt-2.5 pb-2.5`,children:[(0,j.jsx)(mE,{provider:e.provider,size:22}),(0,j.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,j.jsx)(Kj,{entry:E,renaming:p,setRenaming:m}),(0,j.jsxs)(`p`,{className:`flex items-center gap-1.5 truncate text-[12px] leading-4 text-muted-foreground`,children:[(0,j.jsx)(`span`,{children:hT[e.provider]}),S?.cwd?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`span`,{"aria-hidden":`true`,children:`·`}),(0,j.jsx)(nE,{size:12}),(0,j.jsx)(`span`,{className:`truncate`,title:S.cwd,children:QT(S.cwd)})]}):null,S?(0,j.jsxs)(`span`,{children:[`· last active `,ZT(S.updatedAt,i)]}):null]})]}),x.length>0?(0,j.jsxs)(`button`,{type:`button`,className:`cs-chip-button`,onClick:()=>e.setChangesOpen(!e.changesOpen),"aria-pressed":e.changesOpen,title:`Files this chat changed`,children:[(0,j.jsx)(CE,{size:13}),`${x.length} ${x.length===1?`file`:`files`} changed`]}):null,S?.cwd?(0,j.jsxs)(v_,{size:`sm`,variant:b?`outline`:`default`,onClick:D,disabled:s,className:`gap-1.5`,title:b?b.message:void 0,children:[s?(0,j.jsx)(dE,{size:13}):b?(0,j.jsx)(iE,{size:14,className:`text-warning`}):(0,j.jsx)(oE,{size:14}),b?`Take over anyway…`:`Take over`]}):null,S?.cwd&&!b?(0,j.jsx)(v_,{size:`sm`,variant:`outline`,onClick:()=>k(!0),disabled:s,children:`Continue with agent…`}):null,(0,j.jsx)(cj,{transport:t.transport,open:O,onOpenChange:k,title:`Continue with an agent`,action:`Take over with this agent`,onConfirm:e=>A(e)}),S?(0,j.jsx)(Gj,{entry:E,onRename:()=>m(!0)}):null]}),b?(0,j.jsxs)(`div`,{role:`status`,className:`flex items-start gap-2 border-b border-warning/40 bg-warning/10 px-5 py-2.5 text-[13px]`,children:[(0,j.jsx)(iE,{size:15,className:`mt-0.5 shrink-0 text-warning`}),(0,j.jsxs)(`span`,{children:[(0,j.jsx)(`span`,{className:`font-medium`,children:b.message}),` Taking it over now would put two agents on the same chat, and they could overwrite each other's work. Finish or stop it there first if you can. This preview follows it as it runs.`]})]}):null,(0,j.jsx)(qS,{open:d,onOpenChange:f,children:(0,j.jsxs)(oC,{className:`max-w-[460px]`,children:[(0,j.jsxs)(sC,{children:[(0,j.jsxs)(lC,{children:[`This chat is running right now in `,hT[e.provider]]}),(0,j.jsxs)(uC,{children:[b?.message,` If you take it over, two agents will work in the same conversation at once and may overwrite each other's changes.`]})]}),(0,j.jsxs)(cC,{children:[(0,j.jsx)(v_,{variant:`ghost`,onClick:()=>f(!1),children:`Cancel`}),(0,j.jsx)(v_,{variant:`destructive`,onClick:()=>void A(),children:`Take over anyway`})]})]})}),l?(0,j.jsx)(`p`,{className:`border-b border-destructive/30 bg-destructive/10 px-5 py-2 text-[13px] text-destructive`,children:l}):null,S&&!S.cwd?(0,j.jsx)(`p`,{className:`border-b border-border bg-muted/50 px-5 py-2 text-[13px] text-muted-foreground`,children:`This chat doesn't record which folder it ran in, so it can't be continued from here.`}):null,(0,j.jsxs)(`div`,{className:`mx-chat flex min-h-0 flex-1 flex-col`,children:[a.loading?(0,j.jsxs)(`div`,{className:`flex flex-1 items-center justify-center gap-2 text-[13px] text-muted-foreground`,children:[(0,j.jsx)(dE,{size:15}),` Reading this chat…`]}):a.unavailable?(0,j.jsx)(`div`,{className:`flex flex-1 items-center justify-center px-6 text-center text-[13px] text-muted-foreground`,children:a.unavailable}):(0,j.jsxs)(hi,{thread:C,ports:{notifier:T,toolLabel:DT},children:[a.truncated?(0,j.jsx)(qj,{loading:v,onEarlier:()=>{y(!0),g(e=>(e??25165824)*4)}}):null,(0,j.jsx)(Gw,{className:`min-h-0 flex-1`,label:`Chat preview`})]}),S?.cwd?(0,j.jsxs)(`div`,{className:`border-t border-border bg-muted/30 px-5 py-3 text-center text-[13px] text-muted-foreground`,children:[`This chat was started in `,hT[e.provider],`.`,` `,(0,j.jsx)(`button`,{type:`button`,className:`font-medium text-foreground underline-offset-4 hover:underline`,onClick:D,children:`Take it over`}),` `,`to continue it here — it stays in your `,hT[e.provider],` history too.`]}):null]})]}),e.changesOpen&&x.length>0?(0,j.jsx)(RE,{files:x,cwd:S?.cwd??null,truncated:a.truncated,onClose:()=>e.setChangesOpen(!1)}):null]})}function $j(e){let t=e.status.ready;return(0,j.jsxs)(`button`,{type:`button`,onClick:e.onSelect,"aria-pressed":e.selected,className:Z(`flex flex-1 flex-col gap-1.5 rounded-xl border px-3.5 py-3 text-left transition-colors`,e.selected?`border-primary bg-primary/5 ring-1 ring-primary`:`border-border hover:bg-accent/50`),children:[(0,j.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(mE,{provider:e.status.provider,size:18}),(0,j.jsx)(`span`,{className:`text-[13.5px] font-semibold`,children:e.status.label})]}),t?(0,j.jsxs)(`span`,{className:`flex items-center gap-1 text-[12px] text-success`,children:[(0,j.jsx)(rE,{size:13}),e.status.billing===`subscription`?`Signed in${e.status.plan?` · ${e.status.plan} plan`:``}`:`Signed in with an API key (billed per use)`]}):(0,j.jsxs)(`span`,{className:`flex items-start gap-1 text-[12px] leading-4 text-warning`,children:[(0,j.jsx)(iE,{size:13,className:`mt-px shrink-0`}),e.status.problem]}),e.status.quota.filter(e=>e.usedPercent!==null).length>0?(0,j.jsx)(`span`,{className:`text-[11.5px] leading-4 text-muted-foreground`,children:e.status.quota.filter(e=>e.usedPercent!==null).map(e=>`${e.label}: ${e.usedPercent}% used`).join(` · `)}):null]})}function eM({id:e,children:t}){return(0,j.jsxs)(`p`,{id:e,role:`alert`,className:`flex items-start gap-1.5 text-[12.5px] leading-5 text-destructive`,children:[(0,j.jsx)(iE,{size:14,className:`mt-0.5 shrink-0`}),(0,j.jsx)(`span`,{children:t})]})}function tM(e){let t=qT(),n=JT(),r=XT(),[i,a]=(0,_.useState)(`claude`),[o,s]=(0,_.useState)(``),[c,l]=(0,_.useState)({model:null,effort:null}),[u,d]=(0,_.useState)(``),[f,p]=(0,_.useState)({}),[m,h]=(0,_.useState)(null),[g,v]=(0,_.useState)(!1),[y,b]=(0,_.useState)(!1),[x,S]=(0,_.useState)(null),[C,w]=(0,_.useState)(null),[T,E]=(0,_.useState)(null),D=(0,_.useRef)(null),O=(0,_.useRef)(null),k=(0,_.useRef)(null);(0,_.useEffect)(()=>{e.open&&(h(null),p({}),t.refreshProviders(),t.refreshFolders())},[e.open,t]),(0,_.useEffect)(()=>{!o&&n.folders.data[0]?.exists&&s(n.folders.data[0].path)},[n.folders.data,o]),(0,_.useEffect)(()=>{let e=n.providers.data.filter(e=>e.ready),t=n.providers.data.find(e=>e.provider===i);t&&!t.ready&&e[0]&&a(e[0].provider)},[n.providers.loadedAt]);let A=n.providers.data.find(e=>e.provider===i)??null,M=e=>{e===`prompt`?D.current?.focus():e===`folder`?O.current?.focus():e===`agent`&&k.current?.querySelector(`button`)?.focus()},N=async()=>{if(g)return;h(null);let n=await jj({provider:A,folder:o,prompt:u,checkFolder:e=>t.transport.call(`checkFolder`,e)});p(n);let r=Mj(n);if(r){M(r);return}let a=rj(C,x);if(E(a),a){document.getElementById(`cs-agent-var-${a}`)?.focus();return}v(!0);try{let n=await t.start({provider:i,cwd:o.trim(),prompt:u,model:c.model,effort:c.effort,...x?{agent:x}:{}});d(``),e.onStarted(n.session.id)}catch(e){h(e instanceof Error?e.message:String(e))}finally{v(!1)}},P=async()=>{if(f.createFolder){b(!0);try{let e=await t.transport.call(`createFolder`,f.createFolder);s(e.path),p(e=>{let t={...e};return delete t.folder,delete t.createFolder,t}),t.refreshFolders(),O.current?.focus()}catch(e){p(t=>({...t,folder:`Couldn't create it: ${e instanceof Error?e.message:String(e)}`}))}finally{b(!1)}}},F=e=>p(t=>{if(t[e]===void 0)return t;let n={...t};return delete n[e],e===`folder`&&delete n.createFolder,n});return(0,j.jsx)(qS,{open:e.open,onOpenChange:e.onOpenChange,children:(0,j.jsxs)(oC,{className:`max-w-[560px]`,children:[(0,j.jsxs)(sC,{children:[(0,j.jsx)(lC,{children:`New coding session`}),(0,j.jsxs)(uC,{children:[`Runs on your own `,i===`claude`?`Claude`:`ChatGPT`,` sign-in, in a folder on this computer.`]})]}),(0,j.jsxs)(`form`,{noValidate:!0,onSubmit:e=>{e.preventDefault(),N()},className:`flex min-h-0 flex-col`,children:[(0,j.jsxs)(`div`,{className:`cs-dialog-body space-y-5 py-1 pr-1`,children:[(0,j.jsxs)(`fieldset`,{className:`space-y-2`,ref:k,children:[(0,j.jsx)(`legend`,{className:`mb-2 text-[12.5px] font-medium`,children:`Agent`}),n.providers.loading&&n.providers.loadedAt===null?(0,j.jsxs)(`div`,{className:`flex gap-2`,children:[(0,j.jsx)(`div`,{className:`cs-skeleton h-[68px] flex-1 rounded-xl`}),(0,j.jsx)(`div`,{className:`cs-skeleton h-[68px] flex-1 rounded-xl`})]}):n.providers.error?(0,j.jsx)(`p`,{className:`text-[12.5px] text-destructive`,children:n.providers.error}):(0,j.jsx)(`div`,{className:`flex gap-2`,children:n.providers.data.map(e=>(0,j.jsx)($j,{status:e,selected:e.provider===i,onSelect:()=>{e.provider!==i&&l({model:null,effort:null}),a(e.provider),F(`agent`)}},e.provider))}),f.agent?(0,j.jsx)(eM,{id:`cs-err-agent`,children:f.agent}):A&&!A.ready&&A.fix?(0,j.jsxs)(`p`,{className:`text-[12px] leading-4 text-muted-foreground`,children:[A.fix,A.installed&&A.loggedIn?` You can still try — the run will say if it's still blocked.`:``]}):null]}),(0,j.jsxs)(`fieldset`,{className:`space-y-2`,children:[(0,j.jsx)(`legend`,{className:`mb-2 text-[12.5px] font-medium`,children:`AI Matrx agent`}),(0,j.jsx)(nj,{transport:t.transport,open:e.open,value:x,onChange:e=>{S(e),E(null)},missing:T,onDetails:w})]}),(0,j.jsxs)(`fieldset`,{className:`space-y-2`,children:[(0,j.jsx)(`legend`,{className:`mb-2 text-[12.5px] font-medium`,children:`Folder`}),n.folders.data.length>0?(0,j.jsx)(`div`,{className:`max-h-[132px] space-y-0.5 overflow-y-auto rounded-lg border border-border p-1`,children:n.folders.data.map(e=>(0,j.jsxs)(`button`,{type:`button`,onClick:()=>{s(e.path),F(`folder`)},disabled:!e.exists,title:e.exists?e.path:`${e.path} no longer exists`,className:Z(`flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-[12.5px]`,o===e.path?`bg-accent text-accent-foreground`:`hover:bg-accent/50`,!e.exists&&`opacity-50`),children:[(0,j.jsx)(nE,{size:14,className:`shrink-0 text-muted-foreground`}),(0,j.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:QT(e.path)}),(0,j.jsx)(`span`,{className:`shrink-0 text-[11px] text-muted-foreground`,children:e.exists?ZT(e.lastUsedAt,r):`missing`})]},e.path))}):n.folders.loading?(0,j.jsx)(`div`,{className:`cs-skeleton h-10 rounded-lg`}):null,(0,j.jsx)(dw,{ref:O,value:o,onChange:e=>{s(e.target.value),F(`folder`)},placeholder:`Or type a folder path, like ~/code/my-app`,"aria-label":`Folder path`,"aria-invalid":f.folder?!0:void 0,"aria-describedby":f.folder?`cs-err-folder`:void 0,spellCheck:!1}),f.folder?(0,j.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-3 gap-y-1`,children:[(0,j.jsx)(eM,{id:`cs-err-folder`,children:f.folder}),f.createFolder?(0,j.jsxs)(v_,{type:`button`,size:`sm`,variant:`outline`,onClick:()=>void P(),disabled:y,className:`gap-1.5`,children:[y?(0,j.jsx)(dE,{size:13}):(0,j.jsx)(nE,{size:13}),`Create this folder`]}):null]}):null]}),(0,j.jsxs)(`fieldset`,{className:`space-y-2`,children:[(0,j.jsx)(`legend`,{className:`mb-2 text-[12.5px] font-medium`,children:`What should it do?`}),(0,j.jsx)(Cw,{ref:D,value:u,onChange:e=>{d(e.target.value),F(`prompt`)},onKeyDown:e=>{e.key===`Enter`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),N())},placeholder:`Describe the change, the bug, or the question…`,rows:4,"aria-label":`First message`,"aria-invalid":f.prompt?!0:void 0,"aria-describedby":f.prompt?`cs-err-prompt`:void 0}),f.prompt?(0,j.jsx)(eM,{id:`cs-err-prompt`,children:f.prompt}):null]}),(0,j.jsxs)(`fieldset`,{className:`space-y-2`,children:[(0,j.jsx)(`legend`,{className:`mb-2 text-[12.5px] font-medium`,children:`Model and thinking effort`}),(0,j.jsx)(VE,{status:A,value:c,onChange:l,appearance:`field`}),(0,j.jsxs)(`p`,{className:`text-[11.5px] leading-4 text-muted-foreground`,children:[`Default is `,zE(A),`. You can change it later from the chat's header.`]})]}),m?(0,j.jsx)(eM,{id:`cs-err-start`,children:m}):null]}),(0,j.jsxs)(cC,{className:`pt-4`,children:[(0,j.jsx)(v_,{type:`button`,variant:`ghost`,onClick:()=>e.onOpenChange(!1),children:`Cancel`}),(0,j.jsxs)(v_,{type:`submit`,disabled:g,className:`gap-1.5`,children:[g?(0,j.jsx)(dE,{size:14}):null,g?`Starting…`:`Start session`,g?null:(0,j.jsx)(`kbd`,{className:`cs-kbd`,children:`⌘↵`})]})]})]})]})})}function nM({onNew:e}){let t=JT();return(0,j.jsx)(`section`,{className:`flex flex-1 items-center justify-center px-6`,children:(0,j.jsxs)(`div`,{className:`w-full max-w-[460px] text-center`,children:[(0,j.jsx)(`span`,{className:`mx-auto mb-4 flex h-11 w-11 items-center justify-center rounded-2xl bg-primary/10 text-primary`,children:(0,j.jsx)(uE,{size:22})}),(0,j.jsx)(`h1`,{className:`text-[15px] font-semibold leading-5 tracking-[-0.01em]`,children:`Drive Claude Code and Codex from here`}),(0,j.jsx)(`p`,{className:`mx-auto mt-2 max-w-[400px] text-[13.5px] leading-6 text-muted-foreground`,children:`Start a session in any folder, or pick up a chat you began somewhere else. Everything runs on your own subscriptions — no API keys.`}),(0,j.jsxs)(v_,{className:`mt-5 gap-1.5`,onClick:e,children:[(0,j.jsx)(eE,{size:15}),`New session`]}),(0,j.jsxs)(`p`,{className:`mt-3 text-[12px] text-muted-foreground`,children:[(0,j.jsx)(`kbd`,{className:`cs-kbd`,children:`⌥⌘N`}),` new session · `,(0,j.jsx)(`kbd`,{className:`cs-kbd`,children:`⌘K`}),` search your chats ·`,` `,(0,j.jsx)(`kbd`,{className:`cs-kbd`,children:`⌘/`}),` all shortcuts`]}),(0,j.jsx)(`div`,{className:`mt-6 flex flex-wrap justify-center gap-2 text-left`,children:t.providers.data.map(e=>(0,j.jsxs)(`div`,{"data-provider-card":e.provider,title:e.installed&&e.version?[Jj(e),Yj(e)??e.binary?.path].filter(Boolean).join(` · `):void 0,className:`flex w-[260px] items-start gap-2.5 rounded-lg border border-border bg-card px-3 py-2.5`,children:[(0,j.jsx)(mE,{provider:e.provider,size:16}),(0,j.jsxs)(`div`,{className:`min-w-0 flex-1 leading-5`,children:[(0,j.jsx)(`span`,{className:`block truncate text-[14px] font-semibold`,children:e.label}),e.ready?(0,j.jsxs)(`span`,{className:`block truncate text-[12px] text-muted-foreground`,children:[`Ready`,e.plan?` on your ${e.plan} plan`:``,e.billing===`api`?` (API key, billed per use)`:``]}):(0,j.jsxs)(`span`,{className:`block text-[12px] text-muted-foreground`,children:[e.problem,` `,e.fix]})]}),e.ready?(0,j.jsx)(rE,{size:15,className:`mt-0.5 text-success`}):(0,j.jsx)(iE,{size:15,className:`mt-0.5 text-warning`})]},e.provider))})]})})}function rM(){let[e,t]=(0,_.useState)(null),n=(0,_.useRef)(null);(0,_.useEffect)(()=>()=>{n.current&&clearTimeout(n.current)},[]);let r=(0,_.useCallback)((e,r=null)=>{t({text:e,sessionId:r}),n.current&&clearTimeout(n.current),n.current=setTimeout(()=>t(null),6e3)},[]),i=(0,_.useCallback)(()=>{n.current&&clearTimeout(n.current),t(null)},[]);return{text:e?.text??null,sessionId:e?.sessionId??null,show:r,dismiss:i}}function iM({text:e}){let t=(0,_.useRef)(null);return(0,_.useLayoutEffect)(()=>{let e=t.current,n=e?.parentElement;if(!e||!n)return;let r=n.querySelector(`[data-cs-composer]`),i=r?n.getBoundingClientRect().bottom-r.getBoundingClientRect().top+8:20;e.style.setProperty(`--cs-toast-bottom`,`${Math.max(20,Math.round(i))}px`)},[e]),e?(0,j.jsx)(`div`,{ref:t,role:`status`,"data-cs-toast":!0,className:`cs-toast`,children:e}):null}var aM=300,oM=220,sM=560;function cM(e){return Math.round(Math.min(sM,Math.max(oM,e)))}function lM(){let[e,t]=(0,_.useState)(()=>{try{let e=Number(localStorage.getItem(`coding-sessions.sidebar-width`));return Number.isFinite(e)&&e>0?cM(e):aM}catch{return aM}}),[n,r]=(0,_.useState)(()=>{try{return localStorage.getItem(`coding-sessions.sidebar-collapsed`)===`1`}catch{return!1}});return{width:e,setWidth:(0,_.useCallback)(e=>{let n=cM(e);t(n);try{localStorage.setItem(`coding-sessions.sidebar-width`,String(n))}catch{}},[]),collapsed:n,setCollapsed:(0,_.useCallback)(e=>{r(e);try{localStorage.setItem(`coding-sessions.sidebar-collapsed`,e?`1`:`0`)}catch{}},[])}}function uM(e){let[t,n]=(0,_.useState)(!1);return(0,j.jsx)(`div`,{className:Z(`cs-resizer`,t&&`cs-resizer--dragging`),children:(0,j.jsx)(`button`,{type:`button`,className:`cs-resizer__grip`,role:`separator`,"aria-orientation":`vertical`,"aria-label":`Resize the sidebar`,"aria-valuenow":e.width,"aria-valuemin":oM,"aria-valuemax":sM,title:`Drag to resize · double-click to reset`,onDoubleClick:()=>e.setWidth(aM),onKeyDown:t=>{t.key===`ArrowLeft`&&e.setWidth(e.width-16),t.key===`ArrowRight`&&e.setWidth(e.width+16)},onPointerDown:t=>{t.preventDefault();let r=t.clientX,i=e.width;n(!0),document.body.style.cursor=`col-resize`,document.body.style.userSelect=`none`;let a=t=>e.setWidth(i+t.clientX-r),o=()=>{n(!1),document.body.style.cursor=``,document.body.style.userSelect=``,window.removeEventListener(`pointermove`,a),window.removeEventListener(`pointerup`,o)};window.addEventListener(`pointermove`,a),window.addEventListener(`pointerup`,o)}})})}var dM=[{keys:`⌘K`,what:`Search chats`},{keys:`⌥⌘N`,what:`New session`},{keys:`Enter`,what:`Send (Shift+Enter for a new line)`},{keys:`Esc`,what:`Stop the run in the open chat`},{keys:`⌘B`,what:`Show or hide the sidebar`},{keys:`⌥↑ / ⌥↓`,what:`Previous or next chat in the list`},{keys:`⌘/`,what:`These shortcuts`}];function fM(e){return(0,j.jsx)(qS,{open:e.open,onOpenChange:e.onOpenChange,children:(0,j.jsxs)(oC,{className:`max-w-[420px]`,children:[(0,j.jsxs)(sC,{children:[(0,j.jsx)(lC,{children:`Keyboard shortcuts`}),(0,j.jsx)(uC,{children:`Ctrl works in place of ⌘ on Windows and Linux.`})]}),(0,j.jsx)(`dl`,{className:`divide-y divide-border text-[13px]`,children:dM.map(e=>(0,j.jsxs)(`div`,{className:`flex items-center justify-between gap-4 py-2`,children:[(0,j.jsx)(`dt`,{className:`text-muted-foreground`,children:e.what}),(0,j.jsx)(`dd`,{children:(0,j.jsx)(`kbd`,{className:`rounded border border-border px-1.5 py-0.5 font-sans text-[12px]`,children:e.keys})})]},e.keys))})]})})}var pM=`Coding sessions`;function mM(e,t){let{show:n,dismiss:r,sessionId:i}=t,a=JT();(0,_.useEffect)(()=>{if(!i)return;let t=a.runs[i];(e===i||t&&(t.status===`starting`||t.status===`running`))&&r()},[i,e,a.runs,r]);let o=qT(),s=(0,_.useRef)(0),c=(0,_.useRef)(e);c.current=e,(0,_.useEffect)(()=>{let e=()=>{document.visibilityState===`visible`&&(s.current=0,document.title=pM)};document.addEventListener(`visibilitychange`,e);let t=o.onRunFinished(({run:e,session:t})=>{let r=t?.title??`A session`,i=e.status===`completed`?`finished`:e.status===`failed`?`failed`:`was stopped`,a=`${hT[e.provider]} ${i}: ${r}`;if(document.visibilityState===`hidden`){if(s.current+=1,document.title=`(${s.current}) ${pM}`,typeof Notification<`u`&&Notification.permission===`granted`){let t=new Notification(a,e.error?{tag:e.runId,body:CT(e.error)}:{tag:e.runId});t.onclick=()=>{window.focus(),location.hash=`#s/${e.sessionId}`,t.close()}}}else c.current!==e.sessionId&&e.status!==`stopped`&&n(a,e.sessionId)});return()=>{t(),document.removeEventListener(`visibilitychange`,e)}},[o,n])}function hM(){let e=typeof Notification<`u`,[t,n]=(0,_.useState)(e?Notification.permission:`denied`);return!e||t===`granted`?null:(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button`,onClick:()=>void Notification.requestPermission().then(n),"aria-label":t===`denied`?`Notifications are blocked for this page in your browser's site settings`:`Notify me when a run finishes`,title:t===`denied`?`Notifications are blocked in your browser's site settings`:`Notify me when a run finishes`,disabled:t===`denied`,children:(0,j.jsx)(EE,{size:14})})}function gM(e){let t=e;return t?t.isContentEditable||t.tagName===`INPUT`||t.tagName===`TEXTAREA`||t.tagName===`SELECT`:!1}function _M(){let e=qT(),t=JT(),[n,r]=(0,_.useState)(Pj),[i,a]=(0,_.useState)(!1),[o,s]=(0,_.useState)(!1),[c,l]=(0,_.useState)(!1),[u,d]=(0,_.useState)({}),[f,p]=Lj(),m=rM(),h=m.show,g=lM(),v=(0,_.useRef)(null),y=(0,_.useCallback)(e=>{r(e),Fj(e)},[]);(0,_.useEffect)(()=>{let e=()=>r(Pj());return window.addEventListener(`hashchange`,e),()=>window.removeEventListener(`hashchange`,e)},[]),mM(n.kind===`session`?n.id:null,m);let b=n.kind===`session`?t.sessions.data.find(e=>e.id===n.id)??null:null,x=n.kind===`discovered`?t.discovered.data.find(e=>e.providerSessionId===n.id)??u[`${n.provider}:${n.id}`]??null:null,S=b?t.runs[b.id]:void 0,C=S!==void 0&&!vT(S.status),w=(0,_.useMemo)(()=>{let e=new Set(t.sessions.data.map(e=>e.providerSessionId).filter(Boolean));return[...t.sessions.data.map(e=>({kind:`session`,id:e.id})),...t.discovered.data.filter(t=>!e.has(t.providerSessionId)).map(e=>({kind:`discovered`,provider:e.provider,id:e.providerSessionId}))]},[t.sessions.data,t.discovered.data]);(0,_.useEffect)(()=>{let t=t=>{let r=t.metaKey||t.ctrlKey,i=t.key.toLowerCase();if(r&&!t.shiftKey&&!t.altKey&&i===`k`){t.preventDefault(),g.setCollapsed(!1),requestAnimationFrame(()=>{v.current?.focus(),v.current?.select()});return}if(r&&t.altKey&&(i===`n`||t.code===`KeyN`)||r&&t.shiftKey&&i===`o`){t.preventDefault(),a(!0);return}if(r&&!t.shiftKey&&!t.altKey&&i===`b`){t.preventDefault(),g.setCollapsed(!g.collapsed);return}if(r&&i===`/`){t.preventDefault(),s(!0);return}if(t.altKey&&!r&&(t.key===`ArrowUp`||t.key===`ArrowDown`)){let e=w.findIndex(e=>(e.kind===`session`&&n.kind===`session`||e.kind===`discovered`&&n.kind===`discovered`)&&e.id===n.id),r=w[t.key===`ArrowUp`?Math.max(0,e-1):Math.min(w.length-1,e+1)];r&&(t.preventDefault(),y(r));return}if(t.key===`Escape`&&C&&S&&!t.defaultPrevented){if(document.querySelector(`[role="dialog"], [role="menu"], [data-radix-popper-content-wrapper]`)||t.target===v.current)return;t.preventDefault(),e.stop(S.runId),h(`Stopping…`);return}t.key===`?`&&!gM(t.target)&&s(!0)};return window.addEventListener(`keydown`,t),()=>window.removeEventListener(`keydown`,t)},[e,g,C,S,w,n,y,h]);let T;return T=n.kind===`session`?b?(0,j.jsx)(Xj,{session:b,changesOpen:c,setChangesOpen:l},b.id):t.sessions.loadedAt===null?(0,j.jsxs)(`div`,{className:`flex flex-1 items-center justify-center gap-2 text-[13px] text-muted-foreground`,children:[(0,j.jsx)(dE,{size:15}),` Loading…`]}):(0,j.jsx)(`div`,{className:`flex flex-1 items-center justify-center text-[13px] text-muted-foreground`,children:`That session is not in the list anymore.`}):n.kind===`discovered`?(0,j.jsx)(Qj,{session:x,provider:n.provider,id:n.id,onTakenOver:e=>y({kind:`session`,id:e}),changesOpen:c,setChangesOpen:l},`${n.provider}:${n.id}`):(0,j.jsx)(nM,{onNew:()=>a(!0)}),(0,j.jsx)(DE.Provider,{value:h,children:(0,j.jsxs)(`div`,{className:`cs-app flex h-full flex-col bg-background text-foreground`,children:[(0,j.jsx)(Bj,{}),(0,j.jsxs)(`div`,{className:`flex min-h-0 flex-1`,children:[g.collapsed?(0,j.jsxs)(`div`,{className:`flex flex-col items-center gap-1 border-r border-border bg-muted/30 px-1.5 py-3`,children:[(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button`,onClick:()=>g.setCollapsed(!1),"aria-label":`Show the sidebar (⌘B)`,title:`Show sidebar ⌘B`,children:(0,j.jsx)(xE,{size:15})}),(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button`,onClick:()=>a(!0),"aria-label":`New session`,title:`New session ⌥⌘N`,children:(0,j.jsx)(eE,{size:15})})]}):(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(xj,{selection:n,select:y,onNew:()=>a(!0),onCollapse:()=>g.setCollapsed(!0),width:g.width,searchRef:v,onFound:e=>d(t=>({...t,[`${e.provider}:${e.providerSessionId}`]:e})),footer:(0,j.jsx)(Vj,{theme:f,setTheme:p,extra:(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(hM,{}),(0,j.jsx)(`button`,{type:`button`,className:`cs-icon-button`,onClick:()=>s(!0),"aria-label":`Keyboard shortcuts (⌘/)`,title:`Keyboard shortcuts ⌘/`,children:(0,j.jsx)(TE,{size:14})})]})})}),(0,j.jsx)(uM,{width:g.width,setWidth:g.setWidth})]}),(0,j.jsxs)(`main`,{className:`relative flex min-w-0 flex-1`,children:[T,(0,j.jsx)(iM,{text:m.text})]})]}),(0,j.jsx)(tM,{open:i,onOpenChange:a,onStarted:e=>{a(!1),y({kind:`session`,id:e})}}),(0,j.jsx)(fM,{open:o,onOpenChange:s})]})})}function vM({transport:e}){return(0,j.jsx)(Nj,{transport:e,children:(0,j.jsx)(_M,{})})}var yM=`coding-sessions.token`;function bM(){let e=new URL(location.href),t=e.searchParams.get(`token`);if(t){try{sessionStorage.setItem(yM,t)}catch{}return e.searchParams.delete(`token`),history.replaceState(null,``,`${e.pathname}${e.search}${e.hash}`),t}try{return sessionStorage.getItem(yM)}catch{return null}}var xM=(0,v.createRoot)(document.getElementById(`root`)),SM=bM();if(!SM)xM.render((0,j.jsx)(`div`,{className:`flex h-full items-center justify-center p-8`,children:(0,j.jsxs)(`div`,{className:`max-w-[440px] text-center`,children:[(0,j.jsx)(`h1`,{className:`text-[18px] font-semibold`,children:`This link is missing its access code`}),(0,j.jsx)(`p`,{className:`mt-2 text-[13.5px] leading-6 text-muted-foreground`,children:`Open the coding sessions page from the full link AI Matrx gave you — it ends in a long access code that keeps other websites from reaching your coding agents.`})]})}));else{let e=y({token:SM});xM.render((0,j.jsx)(_.StrictMode,{children:(0,j.jsx)(vM,{transport:e})}))}
|