cogpit 2.1.0 → 2.1.2
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.
- package/dist/cli.js +19788 -19545
- package/dist/web/assets/{CommandPaletteHost-C-ParO8t.js → CommandPaletteHost-Bq0_FFr0.js} +1 -1
- package/dist/web/assets/{ConfigBrowser-Co4eu81Z.js → ConfigBrowser-DmOlS3cU.js} +1 -1
- package/dist/web/assets/{HighlightedEditor-j81AHVZZ.js → HighlightedEditor-BYfv1SYX.js} +1 -1
- package/dist/web/assets/{KeyboardShortcutsDialog-CluzMowK.js → KeyboardShortcutsDialog-YDYAOpa5.js} +1 -1
- package/dist/web/assets/{MobileFileChanges-DiOncgtO.js → MobileFileChanges-Bb3zEFSH.js} +1 -1
- package/dist/web/assets/{PreviewPanel-i4Yn68yV.js → PreviewPanel-B9CQNmuh.js} +1 -1
- package/dist/web/assets/{ProjectFilesPanel-DPLFARWn.js → ProjectFilesPanel-C3jKD37-.js} +1 -1
- package/dist/web/assets/{ProjectSwitcherModal-BUXfKNzX.js → ProjectSwitcherModal-CxbGrX7A.js} +1 -1
- package/dist/web/assets/{TerminalOutput-DLRMV4_Y.js → TerminalOutput-LwRcBZWA.js} +1 -1
- package/dist/web/assets/{ThemeSelectorModal-Cmx9maEq.js → ThemeSelectorModal-BG_Jah0i.js} +1 -1
- package/dist/web/assets/{WorkflowsPanel-Cgm_kbHR.js → WorkflowsPanel-CiZjrfSd.js} +1 -1
- package/dist/web/assets/{WorktreePanel-h3DRRXek.js → WorktreePanel-gR-fCesa.js} +1 -1
- package/dist/web/assets/{index-cjmnKg1q.js → index-BaKcHvT2.js} +1 -1
- package/dist/web/assets/{index-Cgnw8FK8.js → index-C_pb6rZe.js} +1 -1
- package/dist/web/assets/index-D-Mg0tNr.js +144 -0
- package/dist/web/assets/{index-DUI5EaV5.js → index-EmT8Vg0x.js} +1 -1
- package/dist/web/assets/session-parser.worker-DycJL0jJ.js +29 -0
- package/dist/web/assets/{vendor-ui-CIBbYCBQ.js → vendor-ui-Bg9q4lA4.js} +1 -1
- package/dist/web/index.html +2 -2
- package/package.json +2 -1
- package/dist/web/assets/index-DocqIkvS.js +0 -144
- package/dist/web/assets/session-parser.worker-DTq2tkdd.js +0 -29
|
@@ -799,4 +799,4 @@ var Op=Object.defineProperty;var rc=e=>{throw TypeError(e)};var Ap=(e,t,n)=>t in
|
|
|
799
799
|
`)},xl=function(){var e=parseInt(document.body.getAttribute(no)||"0",10);return isFinite(e)?e:0},Tx=function(){c.useEffect(function(){return document.body.setAttribute(no,(xl()+1).toString()),function(){var e=xl()-1;e<=0?document.body.removeAttribute(no):document.body.setAttribute(no,e.toString())}},[])},Ix=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,r=o===void 0?"margin":o;Tx();var s=c.useMemo(function(){return Cx(r)},[r]);return c.createElement(Px,{styles:Mx(s,!t,r,n?"":"!important")})},Ei=!1;if(typeof window<"u")try{var gr=Object.defineProperty({},"passive",{get:function(){return Ei=!0,!0}});window.addEventListener("test",gr,gr),window.removeEventListener("test",gr,gr)}catch{Ei=!1}var Bn=Ei?{passive:!1}:!1,Ox=function(e){return e.tagName==="TEXTAREA"},Nf=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Ox(e)&&n[t]==="visible")},Ax=function(e){return Nf(e,"overflowY")},Dx=function(e){return Nf(e,"overflowX")},wl=function(e,t){var n=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var r=Lf(e,o);if(r){var s=_f(e,o),i=s[1],a=s[2];if(i>a)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},Nx=function(e){var t=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[t,n,o]},Lx=function(e){var t=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[t,n,o]},Lf=function(e,t){return e==="v"?Ax(t):Dx(t)},_f=function(e,t){return e==="v"?Nx(t):Lx(t)},_x=function(e,t){return e==="h"&&t==="rtl"?-1:1},Fx=function(e,t,n,o,r){var s=_x(e,window.getComputedStyle(t).direction),i=s*o,a=n.target,l=t.contains(a),u=!1,d=i>0,p=0,f=0;do{if(!a)break;var y=_f(e,a),m=y[0],g=y[1],h=y[2],b=g-h-s*m;(m||b)&&Lf(e,a)&&(p+=b,f+=m);var v=a.parentNode;a=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(d&&Math.abs(p)<1||!d&&Math.abs(f)<1)&&(u=!0),u},mr=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Sl=function(e){return[e.deltaX,e.deltaY]},Rl=function(e){return e&&"current"in e?e.current:e},zx=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Vx=function(e){return`
|
|
800
800
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
801
801
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
802
|
-
`)},$x=0,Wn=[];function Hx(e){var t=c.useRef([]),n=c.useRef([0,0]),o=c.useRef(),r=c.useState($x++)[0],s=c.useState(Df)[0],i=c.useRef(e);c.useEffect(function(){i.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var g=cx([e.lockRef.current],(e.shards||[]).map(Rl),!0).filter(Boolean);return g.forEach(function(h){return h.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),g.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var a=c.useCallback(function(g,h){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!i.current.allowPinchZoom;var b=mr(g),v=n.current,w="deltaX"in g?g.deltaX:v[0]-b[0],x="deltaY"in g?g.deltaY:v[1]-b[1],S,R=g.target,E=Math.abs(w)>Math.abs(x)?"h":"v";if("touches"in g&&E==="h"&&R.type==="range")return!1;var k=window.getSelection(),M=k&&k.anchorNode,C=M?M===R||M.contains(R):!1;if(C)return!1;var O=wl(E,R);if(!O)return!0;if(O?S=E:(S=E==="v"?"h":"v",O=wl(E,R)),!O)return!1;if(!o.current&&"changedTouches"in g&&(w||x)&&(o.current=S),!S)return!0;var I=o.current||S;return Fx(I,h,g,I==="h"?w:x)},[]),l=c.useCallback(function(g){var h=g;if(!(!Wn.length||Wn[Wn.length-1]!==s)){var b="deltaY"in h?Sl(h):mr(h),v=t.current.filter(function(S){return S.name===h.type&&(S.target===h.target||h.target===S.shadowParent)&&zx(S.delta,b)})[0];if(v&&v.should){h.cancelable&&h.preventDefault();return}if(!v){var w=(i.current.shards||[]).map(Rl).filter(Boolean).filter(function(S){return S.contains(h.target)}),x=w.length>0?a(h,w[0]):!i.current.noIsolation;x&&h.cancelable&&h.preventDefault()}}},[]),u=c.useCallback(function(g,h,b,v){var w={name:g,delta:h,target:b,should:v,shadowParent:jx(b)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(x){return x!==w})},1)},[]),d=c.useCallback(function(g){n.current=mr(g),o.current=void 0},[]),p=c.useCallback(function(g){u(g.type,Sl(g),g.target,a(g,e.lockRef.current))},[]),f=c.useCallback(function(g){u(g.type,mr(g),g.target,a(g,e.lockRef.current))},[]);c.useEffect(function(){return Wn.push(s),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Bn),document.addEventListener("touchmove",l,Bn),document.addEventListener("touchstart",d,Bn),function(){Wn=Wn.filter(function(g){return g!==s}),document.removeEventListener("wheel",l,Bn),document.removeEventListener("touchmove",l,Bn),document.removeEventListener("touchstart",d,Bn)}},[]);var y=e.removeScrollBar,m=e.inert;return c.createElement(c.Fragment,null,m?c.createElement(s,{styles:Vx(r)}):null,y?c.createElement(Ix,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function jx(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Bx=yx(Af,Hx);var Ff=c.forwardRef(function(e,t){return c.createElement(Rs,Bt({},e,{ref:t,sideCar:Bx}))});Ff.classNames=Rs.classNames;var Wx=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Un=new WeakMap,yr=new WeakMap,br={},qs=0,zf=function(e){return e&&(e.host||zf(e.parentNode))},Ux=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=zf(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Gx=function(e,t,n,o){var r=Ux(t,Array.isArray(e)?e:[e]);br[n]||(br[n]=new WeakMap);var s=br[n],i=[],a=new Set,l=new Set(r),u=function(p){!p||a.has(p)||(a.add(p),u(p.parentNode))};r.forEach(u);var d=function(p){!p||l.has(p)||Array.prototype.forEach.call(p.children,function(f){if(a.has(f))d(f);else try{var y=f.getAttribute(o),m=y!==null&&y!=="false",g=(Un.get(f)||0)+1,h=(s.get(f)||0)+1;Un.set(f,g),s.set(f,h),i.push(f),g===1&&m&&yr.set(f,!0),h===1&&f.setAttribute(n,"true"),m||f.setAttribute(o,"true")}catch(b){console.error("aria-hidden: cannot operate on ",f,b)}})};return d(t),a.clear(),qs++,function(){i.forEach(function(p){var f=Un.get(p)-1,y=s.get(p)-1;Un.set(p,f),s.set(p,y),f||(yr.has(p)||p.removeAttribute(o),yr.delete(p)),y||p.removeAttribute(n)}),qs--,qs||(Un=new WeakMap,Un=new WeakMap,yr=new WeakMap,br={})}},Yx=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=Wx(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live], script"))),Gx(o,r,n,"aria-hidden")):function(){return null}},qx=Object.defineProperty,un=(e,t)=>qx(e,"name",{value:t,configurable:!0}),ja="Dialog",[Vf,rE]=of(ja),[Xx,$n]=Vf(ja),sE=un(e=>{const{__scopeDialog:t,children:n,open:o,defaultOpen:r,onOpenChange:s,modal:i=!0}=e,a=c.useRef(null),l=c.useRef(null),[u,d]=af({prop:o,defaultProp:r??!1,onChange:s,caller:ja}),[p,f]=c.useState(0),[y,m]=c.useState(0);return K.jsx(Xx,{scope:t,triggerRef:a,contentRef:l,contentId:Pr(),titleId:Pr(),descriptionId:Pr(),titlePresent:p>0,descriptionPresent:y>0,setTitleCount:f,setDescriptionCount:m,open:u,onOpenChange:d,onOpenToggle:c.useCallback(()=>d(g=>!g),[d]),modal:i,children:n})},"Dialog"),$f="DialogPortal",[Kx,Hf]=Vf($f,{forceMount:void 0}),iE=un(e=>{const{__scopeDialog:t,forceMount:n,children:o,container:r}=e,s=$n($f,t);return K.jsx(Kx,{scope:t,forceMount:n,children:c.Children.map(o,i=>K.jsx(Va,{present:n||s.open,children:K.jsx(rx,{asChild:!0,container:r,children:i})}))})},"DialogPortal"),Ci="DialogOverlay",aE=c.forwardRef(un(function(t,n){const o=Hf(Ci,t.__scopeDialog),{forceMount:r=o.forceMount,...s}=t,i=$n(Ci,t.__scopeDialog);return i.modal?K.jsx(Va,{present:r||i.open,children:K.jsx(Qx,{...s,ref:n})}):null},"DialogOverlay")),Zx=_a("DialogOverlay.RemoveScroll"),Qx=c.forwardRef(un(function(t,n){const{__scopeDialog:o,...r}=t,s=$n(Ci,o),i=yf(),a=wo(n,i);return K.jsx(Ff,{as:Zx,allowPinchZoom:!0,shards:[s.contentRef],children:K.jsx(Ss.div,{"data-state":Ba(s.open),...r,ref:a,style:{pointerEvents:"auto",...r.style}})})},"DialogOverlayImpl")),$o="DialogContent",cE=c.forwardRef(un(function(t,n){const o=Hf($o,t.__scopeDialog),{forceMount:r=o.forceMount,...s}=t,i=$n($o,t.__scopeDialog);return K.jsx(Va,{present:r||i.open,children:i.modal?K.jsx(Jx,{...s,ref:n}):K.jsx(e2,{...s,ref:n})})},"DialogContent")),Jx=c.forwardRef(un(function(t,n){const o=$n($o,t.__scopeDialog),r=c.useRef(null),s=wo(n,o.contentRef,r);return c.useEffect(()=>{const i=r.current;if(i)return Yx(i)},[]),K.jsx(jf,{...t,ref:s,trapFocus:o.open,disableOutsidePointerEvents:o.open,onCloseAutoFocus:Dn(t.onCloseAutoFocus,i=>{var a;i.preventDefault(),(a=o.triggerRef.current)==null||a.focus()}),onPointerDownOutside:Dn(t.onPointerDownOutside,i=>{const a=i.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0;(a.button===2||l)&&i.preventDefault()}),onFocusOutside:Dn(t.onFocusOutside,i=>i.preventDefault())})},"DialogContentModal")),e2=c.forwardRef(un(function(t,n){const o=$n($o,t.__scopeDialog),r=c.useRef(!1),s=c.useRef(!1);return K.jsx(jf,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a,l;(a=t.onCloseAutoFocus)==null||a.call(t,i),i.defaultPrevented||(r.current||(l=o.triggerRef.current)==null||l.focus(),i.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:i=>{var u,d;(u=t.onInteractOutside)==null||u.call(t,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const a=i.target;((d=o.triggerRef.current)==null?void 0:d.contains(a))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})},"DialogContentNonModal")),jf=c.forwardRef(un(function(t,n){const{__scopeDialog:o,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:i,...a}=t,l=$n($o,o);return Ha(),K.jsx(K.Fragment,{children:K.jsx(tx,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:i,children:K.jsx(Qv,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionPresent?l.descriptionId:void 0,"aria-labelledby":l.titlePresent?l.titleId:void 0,"data-state":Ba(l.open),...a,ref:n,deferPointerDownOutside:!0,onDismiss:()=>l.onOpenChange(!1)})})})},"DialogContentImpl"));function Ba(e){return e?"open":"closed"}un(Ba,"getState");function t2(e){const{open:t,defaultOpen:n,onOpenChange:o,disabled:r}=e,[s,i]=Lt({controlled:t,default:n,name:"Collapsible",state:"open"}),{mounted:a,setMounted:l,transitionStatus:u}=ln(s,!0,!0),d=rt(),[p,f]=c.useState(),y=p===null?void 0:p??d,m=le(g=>{const h=!s,b=Re(Rn,g.nativeEvent);o(h,b),!b.isCanceled&&i(h)});return c.useMemo(()=>({defaultPanelId:d,disabled:r,handleTrigger:m,mounted:a,open:s,panelId:y,setMounted:l,setOpen:i,setPanelIdState:f,transitionStatus:u}),[d,r,m,a,s,y,l,i,f,u])}const Bf=c.createContext(void 0);function Wf(){const e=c.useContext(Bf);if(e===void 0)throw new Error(Ne(15));return e}let Wa=(function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=Nr.startingStyle]="startingStyle",e[e.endingStyle=Nr.endingStyle]="endingStyle",e})({}),n2=(function(e){return e.panelOpen="data-panel-open",e})({});const o2={[Wa.open]:""},r2={[Wa.closed]:""},s2={open(e){return e?{[n2.panelOpen]:""}:null}},i2={open(e){return e?o2:r2}},Uf={...i2,...Gt},lE=c.forwardRef(function(t,n){const{render:o,className:r,defaultOpen:s=!1,disabled:i=!1,onOpenChange:a,open:l,style:u,...d}=t,p=le(a),f=t2({open:l,defaultOpen:s,onOpenChange:p,disabled:i}),y=c.useMemo(()=>({open:f.open,disabled:f.disabled,transitionStatus:f.transitionStatus}),[f.open,f.disabled,f.transitionStatus]),m=c.useMemo(()=>({...f,onOpenChange:p,state:y}),[f,p,y]),g=ke("div",t,{state:y,ref:n,props:d,stateAttributesMapping:Uf});return K.jsx(Bf.Provider,{value:m,children:g})}),a2={...s2,...Gt},uE=c.forwardRef(function(t,n){const{panelId:o,open:r,handleTrigger:s,state:i,disabled:a}=Wf(),{className:l,disabled:u=a,render:d,nativeButton:p=!0,style:f,...y}=t,{getButtonProps:m,buttonRef:g}=Tt({disabled:u,focusableWhenDisabled:!0,native:p});return ke("button",t,{state:i,ref:[n,g],props:[{"aria-controls":r?o:void 0,"aria-expanded":r,onClick:s},y,m],stateAttributesMapping:a2})}),Po={height:void 0,width:void 0};function c2(e){const{externalRef:t,hiddenUntilFound:n,id:o,keepMounted:r,mounted:s,onOpenChange:i,open:a,setMounted:l,setOpen:u,transitionStatus:d}=e,p=c.useRef(null),f=c.useRef(null),[y,m]=c.useState(Po),g=c.useRef(Po),h=c.useRef(!1),b=c.useRef(a),v=c.useRef(!1),[w,x]=c.useState(!1),S=c.useRef(null),R=Dt(t,p),E=Ze(a),k=Ki(p),M=!a&&!s,C=w?"idle":d,O=a&&(b.current||v.current),I=!a&&s&&f.current==="css-animation"&&y.height===void 0&&y.width===void 0?g.current:y,D=n&&M&&f.current!=="css-animation",N=le((F,T=!0)=>{T&&(g.current=F),m(F)}),P=le(()=>{var F;(F=S.current)==null||F.call(S),S.current=null}),z=le(F=>{P(),S.current=()=>{S.current=null,F()}}),L=le(()=>{a&&s&&f.current==="css-animation"&&(v.current=!0)});re(()=>{!w||d==="starting"||x(!1)},[w,d]),c.useEffect(()=>()=>{L(),P()},[L,P]),re(()=>{const F=p.current;if(!F)return;!a&&S.current&&P();const T=l2(F,O);if(f.current=T,a&&d==="idle"&&b.current&&T==="css-animation"){g.current=Gn(F);return}if(a&&d==="starting"){const $=h.current;if(h.current=!1,T==="none"){N(Gn(F)),x(!0);return}if(T==="css-transition"){const V=u2(F);if(N(Gn(F)),!$)return V;const Q=vr(F,"transition-duration","0s");return z(Q),x(!0),V}N(Gn(F));const U=vr(F,"animation-name","none");if(!$){U();return}const Y=vr(F,"animation-duration","0s");U(),z(Y),x(!0);return}if(!a&&s&&(d==="idle"||d==="starting")){if(b.current=!1,v.current=!1,T==="none"){N(Po,!1),l(!1);return}N(Gn(F));return}if(d!=="ending")return;if(T==="none"){l(!1);return}const _=Gn(F);if(!(_.height>0||_.width>0)){l(!1);return}N(_),T==="css-animation"&&vr(F,"animation-name","none")()},[s,a,P,N,l,z,O,d]),kt({enabled:a&&s&&C==="idle",open:!0,ref:p,onComplete(){a&&N(Po,!1)}}),c.useEffect(()=>{if(a||!s||C!=="ending"||!p.current)return;const T=new AbortController;let _=-1;function j(){E.current||(l(!1),N(Po,!1))}return _=vt.request(()=>{k(j,T.signal)}),()=>{vt.cancel(_),T.abort()}},[E,s,a,C,k,N,l]),re(()=>{const F=p.current;!F||!n||!M||F.setAttribute("hidden","until-found")},[M,n]),c.useEffect(function(){const T=p.current;if(!T)return;function _(j){const $=Re(Rt,j);i(!0,$),!$.isCanceled&&(h.current=!0,u(!0))}return Me(T,"beforematch",_)},[i,u]);const A=r||n||s||a;return{height:I.height,props:{...D?{[Wa.startingStyle]:""}:void 0,hidden:M,id:o},ref:R,shouldPreventOpenAnimation:O,shouldRender:A,transitionStatus:C,width:I.width}}function Gn(e){return{height:e.scrollHeight,width:e.scrollWidth}}function l2(e,t){const n=He(e).getComputedStyle(e),o=(n.animationName.split(",").map(s=>s.trim()).some(s=>s!==""&&s!=="none")||t)&&kl(n.animationDuration),r=kl(n.transitionDuration);return o&&r||r?"css-transition":o?"css-animation":"none"}function kl(e){return e.split(",").map(t=>t.trim()).some(t=>t!==""&&Number.parseFloat(t)>0)}function vr(e,t,n){const o=e.style.getPropertyValue(t),r=e.style.getPropertyPriority(t);return e.style.setProperty(t,n),()=>{if(o===""){e.style.removeProperty(t);return}e.style.setProperty(t,o,r)}}function u2(e){const t={"justify-content":e.style.justifyContent,"align-items":e.style.alignItems,"align-content":e.style.alignContent,"justify-items":e.style.justifyItems};Object.keys(t).forEach(r=>{e.style.setProperty(r,"initial","important")});function n(){Object.entries(t).forEach(([r,s])=>{if(s===""){e.style.removeProperty(r);return}e.style.setProperty(r,s)})}const o=vt.request(n);return()=>{vt.cancel(o),n()}}let El=(function(e){return e.collapsiblePanelHeight="--collapsible-panel-height",e.collapsiblePanelWidth="--collapsible-panel-width",e})({});const dE=c.forwardRef(function(t,n){const{className:o,hiddenUntilFound:r,keepMounted:s,render:i,id:a,style:l,...u}=t,{defaultPanelId:d,mounted:p,onOpenChange:f,open:y,setMounted:m,setPanelIdState:g,setOpen:h,state:b,transitionStatus:v}=Wf(),w=r??!1,x=s??!1,S=a||void 0,R=S??d;re(()=>(g(L=>S??(L===null?void 0:L)),()=>{g(L=>L===S?null:L)}),[S,g]);const{height:E,props:k,ref:M,shouldPreventOpenAnimation:C,shouldRender:O,transitionStatus:I,width:D}=c2({externalRef:n,hiddenUntilFound:w,id:R,keepMounted:x,mounted:p,onOpenChange:f,open:y,setMounted:m,setOpen:h,transitionStatus:v}),N={...b,transitionStatus:I},P=du(l,N),z=ke("div",{...t,style:void 0},{state:N,ref:M,props:[k,{style:{[El.collapsiblePanelHeight]:E===void 0?"auto":`${E}px`,[El.collapsiblePanelWidth]:D===void 0?"auto":`${D}px`}},u,P?{style:P}:void 0,C?{style:{animationName:"none"}}:void 0],stateAttributesMapping:Uf});return O?z:null}),Gf=c.createContext(void 0);function ks(e){const t=c.useContext(Gf);if(t===void 0&&!e)throw new Error(Ne(72));return t}const d2={...Sa,disabled:e=>e.disabled,instantType:e=>e.instantType,isInstantPhase:e=>e.isInstantPhase,trackCursorAxis:e=>e.trackCursorAxis,disableHoverablePopup:e=>e.disableHoverablePopup,lastOpenChangeReason:e=>e.openChangeReason,closeOnClick:e=>e.closeOnClick,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin};class f2 extends Uo{constructor(n,o,r){const s=new Go;super(p2(n,s,o,r),h2(s),d2);De(this,"setOpen",(n,o)=>{Ub(this,n,o,{extraState:{openChangeReason:o.reason}})})}cancelPendingOpen(n){this.state.floatingRootContext.dispatchOpenChange(!1,Re(Rn,n))}}function p2(e,t,n,o=!1){const r={...xa(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,adaptiveOrigin:void 0,...e};return r.floatingRootContext=vd(t,n,o),r}function h2(e){return{popupRef:c.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:e}}const fE=pa(function(t){const{disabled:n=!1,defaultOpen:o=!1,open:r,disableHoverablePopup:s=!1,trackCursorAxis:i="none",actionsRef:a,onOpenChange:l,onOpenChangeComplete:u,handle:d,triggerId:p,defaultTriggerId:f=null,children:y}=t,m=yd((O,I)=>new f2({open:o,openProp:r,activeTriggerId:f,triggerIdProp:p},O,I));m.useControlledProp("openProp",r),m.useControlledProp("triggerIdProp",p),m.useContextCallback("onOpenChange",l),m.useContextCallback("onOpenChangeComplete",u);const g=m.useState("open"),h=!n&&g,b=m.useState("activeTriggerId"),v=m.useState("mounted"),w=m.useState("payload");m.useSyncedValues({trackCursorAxis:i,disableHoverablePopup:s,disabled:n}),ya(m,{closeOnActiveTriggerUnmount:!0});const{forceUnmount:x,transitionStatus:S}=ba(h,m),R=m.useState("isInstantPhase"),E=m.useState("instantType"),k=m.useState("lastOpenChangeReason"),M=c.useRef(null);re(()=>{g&&n&&m.setOpen(!1,Re(Tu))},[g,n,m]),re(()=>{S==="ending"&&k===Rt||S!=="ending"&&R?(E!=="delay"&&(M.current=E),m.set("instantType","delay")):M.current!==null&&(m.set("instantType",M.current),M.current=null)},[S,R,k,E,m]),re(()=>{h&&b==null&&m.set("payload",void 0)},[m,b,h]),c.useImperativeHandle(a,()=>({unmount:x,close:()=>m.setOpen(!1,Re(Wi))}),[x,m]);const C=h||v||!n&&i!=="none";return K.jsxs(Gf.Provider,{value:m,children:[d&&K.jsx(ha,{handle:d,store:m}),C&&K.jsx(g2,{store:m,disabled:n,trackCursorAxis:i}),typeof y=="function"?y({payload:w}):y]})});function g2({store:e,disabled:t,trackCursorAxis:n}){const o=e.useState("floatingRootContext"),r=is(o,{enabled:!t,referencePress:()=>e.select("closeOnClick")}),s=H0(o,{enabled:!t&&n!=="none",axis:n==="none"?void 0:n}),i=c.useMemo(()=>St(s.reference,r.reference),[s.reference,r.reference]);return va(e,{activeTriggerProps:i,inactiveTriggerProps:i,popupProps:r.floating??We}),null}const Yf=c.createContext(void 0);function m2(){return c.useContext(Yf)}const Cl=600,qf="data-base-ui-tooltip-trigger";function Pl(e){if("composedPath"in e){const n=e.composedPath();for(let o=0;o<n.length;o+=1){const r=n[o];if(Oe(r))return r}}const t=e.target;return Oe(t)?t:null}function y2(e){let t=e;for(;t;){const n=t.closest(`[${qf}]`);if(n)return n;const o=t.getRootNode();t="host"in o&&Oe(o.host)?o.host:null}return null}const pE=gd(function(t,n){const{render:o,className:r,style:s,handle:i,payload:a,disabled:l,delay:u,closeOnClick:d=!0,closeDelay:p,id:f,...y}=t,m=ks(!0),h=Ra(i)??m;if(!h)throw new Error(Ne(82));const b=rt(f),v=h.useState("isTriggerActive",b),w=h.useState("isOpenedByTrigger",b),x=h.useState("floatingRootContext"),S=c.useRef(null),R=u??Cl,E=p??0,{registerTrigger:k,isMountedByThisTrigger:M}=ma(b,S,h,{payload:a,closeOnClick:d,closeDelay:E}),C=m2(),{delayRef:O,isInstantPhase:I,hasProvider:D}=u0(x,{open:w}),N=Ea(x);h.useSyncedValue("isInstantPhase",I);const P=h.useState("disabled"),z=l??P,L=Ze(z),A=h.useState("trackCursorAxis"),F=h.useState("disableHoverablePopup"),T=c.useRef(!1),_=Ge(),j=c.useRef(void 0);function $(){return D?vn(O.current,"open")===0?0:u??C??Cl:R}function U(J){const ee=S.current;if(!ee||!J)return!1;const ie=y2(J);return ie!==null&&ie!==ee&&ve(ee,ie)}function Y(J){const ee=U(J);return T.current=ee,ee&&(N.openChangeTimeout.clear(),N.restTimeout.clear(),N.restTimeoutPending=!1,_.clear()),ee}const V=kd(x,{enabled:!z,mouseOnly:!0,move:!1,handleClose:!F&&A!=="both"?Pd():null,restMs:$,delay(){return p==null&&D?{close:vn(O.current,"close")}:{close:E}},triggerElementRef:S,isActiveTrigger:v,isClosing:()=>h.select("transitionStatus")==="ending",shouldOpen(){return!T.current}}),Q=wd(x,{enabled:!z}).reference,H=J=>{const ee=T.current,ie=Pl(J),xe=Y(ie),ae=S.current,he=ae&&ie&&ve(ae,ie);if(xe&&h.select("open")&&h.select("lastOpenChangeReason")===ot){h.setOpen(!1,Re(ot,J));return}if(ee&&!xe&&he&&!L.current&&!h.select("open")&&ae&&mn(j.current)){const oe=()=>{!T.current&&!L.current&&!h.select("open")&&h.setOpen(!0,Re(ot,J,ae))},ge=$();ge===0?(_.clear(),oe()):_.start(ge,oe)}},G=h.useState("triggerProps",M);return ke("button",t,{state:{open:w},ref:[n,k,S],props:[V,Q,M||A!=="none"?G:void 0,{onMouseOver(J){H(J.nativeEvent)},onFocus(J){U(Pl(J.nativeEvent))&&J.preventBaseUIHandler()},onMouseLeave(){T.current=!1,_.clear(),j.current=void 0},onPointerEnter(J){j.current=J.pointerType},onPointerDown(J){j.current=J.pointerType,h.set("closeOnClick",d),d&&!h.select("open")&&h.cancelPendingOpen(J.nativeEvent)},onClick(J){d&&!h.select("open")&&h.cancelPendingOpen(J.nativeEvent)},id:b,"data-trigger-disabled":z?"":void 0,[qf]:z?void 0:""},y],stateAttributesMapping:Hi})}),Xf=c.createContext(void 0);function b2(){const e=c.useContext(Xf);if(e===void 0)throw new Error(Ne(70));return e}const v2=c.forwardRef(function(t,n){const{children:o,container:r,className:s,render:i,style:a,...l}=t,{node:u,subtree:d}=td({container:r,ref:n,componentProps:t,elementProps:l});return!d&&!u?null:K.jsxs(c.Fragment,{children:[d,u&&At.createPortal(o,u)]})}),hE=c.forwardRef(function(t,n){const{keepMounted:o=!1,...r}=t;return ks().useState("mounted")||o?K.jsx(Xf.Provider,{value:o,children:K.jsx(v2,{ref:n,...r})}):null}),Kf=c.createContext(void 0);function x2(){const e=c.useContext(Kf);if(e===void 0)throw new Error(Ne(71));return e}const gE=c.forwardRef(function(t,n){const{render:o,className:r,anchor:s,positionMethod:i="absolute",side:a="top",align:l="center",sideOffset:u=0,alignOffset:d=0,collisionBoundary:p="clipping-ancestors",collisionPadding:f=5,arrowPadding:y=5,sticky:m=!1,disableAnchorTracking:g=!1,collisionAvoidance:h=Qu,style:b,...v}=t,w=ks(),x=b2(),S=w.useState("open"),R=w.useState("mounted"),E=w.useState("trackCursorAxis"),k=w.useState("disableHoverablePopup"),M=w.useState("floatingRootContext"),C=w.useState("instantType"),O=w.useState("transitionStatus"),I=w.useState("adaptiveOrigin"),D=Pa({anchor:s,positionMethod:i,floatingRootContext:M,mounted:R,side:a,sideOffset:u,align:l,alignOffset:d,collisionBoundary:p,collisionPadding:f,sticky:m,arrowPadding:y,disableAnchorTracking:g,keepMounted:x,collisionAvoidance:h,adaptiveOrigin:I}),N=c.useMemo(()=>({open:S,side:D.side,align:D.align,anchorHidden:D.anchorHidden,instant:E!=="none"?"tracking-cursor":C}),[S,D.side,D.align,D.anchorHidden,E,C]),P=Ta(t,N,{styles:D.positionerStyles,transitionStatus:O,props:v,refs:[n,w.useStateSetter("positionerElement")],hidden:!R,inert:!S||E==="both"||k});return K.jsx(Kf.Provider,{value:D,children:P})}),mE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,a=ks(),{side:l,align:u}=x2(),d=a.useState("open"),p=a.useState("instantType"),f=a.useState("transitionStatus"),y=a.useState("popupProps"),m=a.useState("floatingRootContext"),g=a.useState("disabled"),h=a.useState("closeDelay");kt({open:d,ref:a.context.popupRef,onComplete(){var x,S;d&&((S=(x=a.context).onOpenChangeComplete)==null||S.call(x,!0))}}),Rd(m,{enabled:!g,closeDelay:h});const b=a.useStateSetter("popupElement");return ke("div",t,{state:{open:d,side:l,align:u,instant:p,transitionStatus:f},ref:[n,a.context.popupRef,b],props:[us,y,ps(f),i],stateAttributesMapping:ji})}),yE=function(t){const{delay:n,closeDelay:o,timeout:r=400}=t,s=c.useMemo(()=>({open:n,close:o}),[n,o]);return K.jsx(Yf.Provider,{value:n,children:K.jsx(l0,{delay:s,timeoutMs:r,children:t.children})})};function Zf(e,t,n,o=!0,r){const[s,i]=c.useState(),a=rt(r?`${r}-label`:void 0),l=e??t??s;return re(()=>{const u=e||t||!o?void 0:w2(n.current,a);s!==u&&i(u)}),l}function w2(e,t){const n=S2(e);if(n)return!n.id&&t&&(n.id=t),n.id||void 0}function S2(e){if(!e)return;const t=e.parentElement;if(t&&t.tagName==="LABEL")return t;const n=e.id;if(n){const r=e.nextElementSibling;if(r&&r.htmlFor===n)return r}const o=e.labels;return o&&o[0]}const R2=c.createContext({disabled:!1});function k2(){return c.useContext(R2)}const E2=c.forwardRef(function(t,n){const{render:o,className:r,id:s,name:i,value:a,disabled:l=!1,onValueChange:u,defaultValue:d,autoFocus:p=!1,style:f,...y}=t,{state:m,name:g,disabled:h,setTouched:b,setDirty:v,validityData:w,setFocused:x,setFilled:S,validationMode:R,validation:E}=vo(),{clearErrors:k}=ws(),M=h||l,C=g??i,O={...m,disabled:M},{labelId:I}=Yo(),D=xs({id:s});re(()=>{var _;const T=a!=null;(_=E.inputRef.current)!=null&&_.value||T&&a!==""?S(!0):T&&a===""&&S(!1)},[E.inputRef,S,a]);const N=c.useRef(null);re(()=>{p&&N.current===dt(Te(N.current))&&x(!0)},[p,x]);const[P]=Lt({controlled:a,default:d,name:"FieldControl",state:"value"}),z=a!==void 0,L=z?P:void 0,A=le(()=>{var T;return(T=E.inputRef.current)==null?void 0:T.value});return vs(E.inputRef,D,L,A,!M,i),ke("input",t,{ref:[n,N],state:O,props:[{id:D,disabled:M,name:C,ref:E.inputRef,"aria-labelledby":I,autoFocus:p,...z?{value:L}:{defaultValue:d},onChange(T){const _=T.currentTarget.value;u==null||u(_,Re(Rt,T.nativeEvent)),v(_!==(w.initialValue??"")),S(_!==""),T.nativeEvent.defaultPrevented||(k(C),E.change(_))},onFocus(){x(!0)},onBlur(T){b(!0),x(!1),R==="onBlur"&&E.commit(T.currentTarget.value)},onKeyDown(T){T.currentTarget.tagName==="INPUT"&&T.key==="Enter"&&(b(!0),E.commit(T.currentTarget.value))}},y,T=>E.getValidationProps(M,T)],stateAttributesMapping:bs})}),bE=c.forwardRef(function(t,n){return K.jsx(E2,{ref:n,...t})});function Qf(e){return Array.isArray(e)?e.map(t=>Qf(t)).join(","):e==null?"":String(e)}const Ml=new Map;function C2(e,t){const n=JSON.stringify({locale:Qf(e),options:t}),o=Ml.get(n);if(o)return o;const r=new Intl.NumberFormat(e,t);return Ml.set(n,r),r}function Tl(e,t,n){return e==null?"":C2(t,n).format(e)}function P2(e,t,n){return(e-t)*100/(n-t)}const Jf=c.createContext(void 0);function ep(){const e=c.useContext(Jf);if(e===void 0)throw new Error(Ne(51));return e}const Ua={status(e){return{[`data-${e}`]:""}}},vE=c.forwardRef(function(t,n){const{format:o,getAriaValueText:r,locale:s,max:i=100,min:a=0,value:l,render:u,className:d,children:p,style:f,...y}=t,[m,g]=c.useState();let h="indeterminate",b=null,v=null,w="",x="indeterminate progress";if(l!=null&&Number.isFinite(l)){const M=P2(l,a,i);b=hn(Number.isNaN(M)?0:M,0,100),v=hn(l,a,i),h=v===i?"complete":"progressing",w=o?Tl(v,s,o):Tl(b/100,s,{style:"percent"}),x=w}const S=c.useMemo(()=>({status:h}),[h]),R={"aria-labelledby":m,"aria-valuemax":i,"aria-valuemin":a,"aria-valuenow":v??void 0,"aria-valuetext":r?r(w,l):x,role:"progressbar",children:K.jsxs(c.Fragment,{children:[p,K.jsx("span",{role:"presentation",style:Bo,children:"x"})]})},E=c.useMemo(()=>({formattedValue:w,percentageValue:b,setLabelId:g,state:S,value:l}),[w,b,g,S,l]),k=ke("div",t,{state:S,ref:n,props:[R,y],stateAttributesMapping:Ua});return K.jsx(Jf.Provider,{value:E,children:k})}),xE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,{state:a}=ep();return ke("div",t,{state:a,ref:n,props:i,stateAttributesMapping:Ua})}),wE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,{percentageValue:a,state:l}=ep(),u=a==null?{}:{insetInlineStart:0,height:"inherit",width:`${a}%`};return ke("div",t,{state:l,ref:n,props:[{style:u},i],stateAttributesMapping:Ua})}),tp=c.createContext(void 0);function Es(){const e=c.useContext(tp);if(e===void 0)throw new Error(Ne(53));return e}const M2=500,Pi=16;function gn(e,t,n){if(!e)return 0;const o=getComputedStyle(e),r=`${t}${n==="x"?"Inline":"Block"}`,s=parseFloat(o[`${r}Start`]);return n==="x"&&t==="margin"?s*2:s+parseFloat(o[`${r}End`])}const Yn=e=>t=>t?{[e]:""}:null,Ga={hasOverflowX:Yn("data-has-overflow-x"),hasOverflowY:Yn("data-has-overflow-y"),overflowXStart:Yn("data-overflow-x-start"),overflowXEnd:Yn("data-overflow-x-end"),overflowYStart:Yn("data-overflow-y-start"),overflowYEnd:Yn("data-overflow-y-end"),cornerHidden:()=>null},T2={x:0,y:0},Il={width:0,height:0},I2={xStart:!1,xEnd:!1,yStart:!1,yEnd:!1},O2={x:!0,y:!0,corner:!0},SE=c.forwardRef(function(t,n){const{render:o,className:r,overflowEdgeThreshold:s,style:i,...a}=t,{xStart:l,xEnd:u,yStart:d,yEnd:p}=A2(s),f=rt(),y=Ge(),m=Ge(),{nonce:g,disableStyleElements:h}=Da(),[b,v]=c.useState(!1),[w,x]=c.useState(!1),[S,R]=c.useState(!1),[E,k]=c.useState(!1),[M,C]=c.useState(!1),[O,I]=c.useState(Il),[D,N]=c.useState(Il),[P,z]=c.useState(I2),[L,A]=c.useState(O2),F=c.useRef(null),T=c.useRef(null),_=c.useRef(null),j=c.useRef(null),$=c.useRef(null),U=c.useRef(null),Y=c.useRef(null),V=c.useRef(null),Q=c.useRef(0),H=c.useRef(0),G=c.useRef(0),ue=c.useRef(0),ne=c.useRef("vertical"),te=c.useRef(T2),J=c.useRef(null);function ee(se){const Z=se?R:x,X=se?y:m;Z(!0),X.start(M2,()=>{Z(!1)})}const ie=le(se=>{const Z=se.x-te.current.x,X=se.y-te.current.y;te.current=se,X!==0&&ee(!0),Z!==0&&ee(!1)}),xe=le(()=>{const se=T.current;se&&J.current===null&&(J.current=se.style.scrollSnapType,se.style.scrollSnapType="none")}),ae=le(se=>{if(se.button!==0)return;if(V.current!==null){const pe=ne.current==="vertical"?$.current:U.current;if(pe!=null&&pe.hasPointerCapture(V.current))return}V.current=se.pointerId,Q.current=se.clientY,H.current=se.clientX,ne.current=se.currentTarget.getAttribute("data-orientation");const Z=T.current;Z&&(G.current=Z.scrollTop,ue.current=Z.scrollLeft,xe());const X=ne.current==="vertical"?$.current:U.current;X==null||X.setPointerCapture(se.pointerId)}),he=le(se=>{if(se.pointerId!==V.current)return;V.current=null,(ne.current==="vertical"?R:x)(!1),J.current!==null&&(T.current&&(T.current.style.scrollSnapType=J.current),J.current=null);const Z=ne.current==="vertical"?$.current:U.current;Z!=null&&Z.hasPointerCapture(se.pointerId)&&Z.releasePointerCapture(se.pointerId)}),oe=le(se=>{if(se.pointerId!==V.current)return;if(se.buttons%2===0){he(se);return}const Z=T.current;if(!Z)return;const X=ne.current==="vertical",pe=X?$.current:U.current,be=X?_.current:j.current;if(!pe||!be)return;const Le=X?"y":"x",Ue=gn(be,"padding",Le),qe=gn(pe,"margin",Le),st=X?pe.offsetHeight:pe.offsetWidth,Je=(X?be.offsetHeight:be.offsetWidth)-st-Ue-qe,ct=X?se.clientY-Q.current:se.clientX-H.current,Se=Je<=0?0:ct/Je,je=X?Z.scrollHeight:Z.scrollWidth,Ye=X?Z.clientHeight:Z.clientWidth,Xe=(X?G.current:ue.current)+Se*(je-Ye);X?Z.scrollTop=Xe:Z.scrollLeft=Xe,se.preventDefault(),ee(X)});function ge(se){k(se.pointerType==="touch")}function de(se){if(ge(se),se.pointerType!=="touch"){const Z=ve(F.current,se.target);v(Z)}}const ce=c.useMemo(()=>({scrolling:w||S,hasOverflowX:!L.x,hasOverflowY:!L.y,overflowXStart:P.xStart,overflowXEnd:P.xEnd,overflowYStart:P.yStart,overflowYEnd:P.yEnd,cornerHidden:L.corner}),[w,S,L.x,L.y,L.corner,P]),fe={role:"presentation",onPointerEnter:de,onPointerMove:de,onPointerDown:ge,onPointerLeave(){v(!1)},style:{position:"relative","--scroll-area-corner-height":`${O.height}px`,"--scroll-area-corner-width":`${O.width}px`}},B=ke("div",t,{state:ce,ref:[n,F],props:[fe,a],stateAttributesMapping:Ga}),q=c.useMemo(()=>({handlePointerDown:ae,handlePointerMove:oe,handlePointerUp:he,handleScroll:ie,disableViewportSnap:xe,cornerSize:O,setCornerSize:I,thumbSize:D,setThumbSize:N,hasMeasuredScrollbar:M,setHasMeasuredScrollbar:C,touchModality:E,cornerRef:Y,scrollingX:w,scrollingY:S,hovering:b,setHovering:v,viewportRef:T,scrollbarYRef:_,scrollbarXRef:j,thumbYRef:$,thumbXRef:U,rootId:f,hiddenState:L,setHiddenState:A,overflowEdges:P,setOverflowEdges:z,viewportState:ce,overflowEdgeThreshold:{xStart:l,xEnd:u,yStart:d,yEnd:p}}),[ae,oe,he,ie,xe,O,D,M,E,w,S,b,f,L,P,ce,l,u,d,p]);return K.jsxs(tp.Provider,{value:q,children:[!h&&Vo.getElement(g),B]})});function A2(e){const t=typeof e=="number"?{xStart:e,xEnd:e,yStart:e,yEnd:e}:e;return{xStart:Math.max(0,(t==null?void 0:t.xStart)||0),xEnd:Math.max(0,(t==null?void 0:t.xEnd)||0),yStart:Math.max(0,(t==null?void 0:t.yStart)||0),yEnd:Math.max(0,(t==null?void 0:t.yEnd)||0)}}const D2=c.createContext(void 0),np=["--scroll-area-overflow-x-start","--scroll-area-overflow-x-end","--scroll-area-overflow-y-start","--scroll-area-overflow-y-end"];let Ol=!1;function N2(){Ol||Yt||(typeof CSS<"u"&&"registerProperty"in CSS&&np.forEach(e=>{try{CSS.registerProperty({name:e,syntax:"<length>",inherits:!1,initialValue:"0px"})}catch{}}),Ol=!0)}const RE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,{viewportRef:a,scrollbarYRef:l,scrollbarXRef:u,thumbYRef:d,thumbXRef:p,cornerRef:f,cornerSize:y,setCornerSize:m,setThumbSize:g,rootId:h,setHiddenState:b,hiddenState:v,setHasMeasuredScrollbar:w,handleScroll:x,touchModality:S,setHovering:R,setOverflowEdges:E,overflowEdgeThreshold:k,viewportState:M}=Es(),C=bo(),O=c.useRef(!0),I=c.useRef([NaN,NaN,NaN,NaN]),D=Ge(),N=Ge(),P=le(()=>{const T=a.current,_=l.current,j=u.current,$=d.current,U=p.current,Y=f.current;if(!T)return;const V=T.scrollHeight,Q=T.scrollWidth,H=T.clientHeight,G=T.clientWidth,ue=T.scrollTop,ne=T.scrollLeft,te=I.current,J=Number.isNaN(te[0]);if(te[0]=H,te[1]=V,te[2]=G,te[3]=Q,J&&w(!0),V===0||Q===0)return;const ee=L2(T),ie=ee.y,xe=ee.x,ae=G/Q,he=H/V,oe=Math.max(0,Q-G),ge=Math.max(0,V-H);let de=0,ce=0;xe||(de=fo(C==="rtl"?-ne:ne,oe),ce=oe-de);const fe=ie?0:fo(ue,ge),B=ie?0:ge-fe,q=xe?0:G,se=ie?0:H;let Z=0,X=0;!xe&&!ie&&(Z=(_==null?void 0:_.offsetWidth)||0,X=(j==null?void 0:j.offsetHeight)||0);const pe=y.width===0&&y.height===0,be=pe?Z:0,Le=pe?X:0,Ue=gn(j,"padding","x"),qe=gn(_,"padding","y"),st=gn(U,"margin","x"),_e=gn($,"margin","y"),Je=q-Ue-st,ct=se-qe-_e,Se=j?Math.min(j.offsetWidth-be,Je):Je,je=_?Math.min(_.offsetHeight-Le,ct):ct,Ye=Math.max(Pi,Se*ae),Be=Math.max(Pi,je*he);if(g(we=>xr(we,{width:Ye,height:Be})),_&&$){const we=_.offsetHeight-Be-qe-_e,Ae=Al($,"--scroll-area-thumb-height",ue,ge,V,Be,we);$.style.transform=`translate3d(0,${Ae}px,0)`}if(j&&U){const we=j.offsetWidth-Ye-Ue-st,Ae=C==="rtl"?-ne:ne,Qe=Al(U,"--scroll-area-thumb-width",Ae,oe,Q,Ye,we);U.style.transform=`translate3d(${C==="rtl"?-Qe:Qe}px,0,0)`}const Xe=[de,ce,fe,B];np.forEach((we,Ae)=>{T.style.setProperty(we,`${Xe[Ae]}px`)}),Y&&m(we=>xr(we,{width:Z,height:X})),b(we=>xr(we,ee));const pt={xStart:!xe&&de>k.xStart,xEnd:!xe&&ce>k.xEnd,yStart:!ie&&fe>k.yStart,yEnd:!ie&&B>k.yEnd};E(we=>xr(we,pt))});re(()=>{N2()},[]),re(()=>{queueMicrotask(P)},[P,v,C,k.xStart,k.xEnd,k.yStart,k.yEnd]),re(()=>{var T;(T=a.current)!=null&&T.matches(":hover")&&R(!0)},[a,R]),re(()=>{const T=a.current;if(typeof ResizeObserver>"u"||!T)return;let _=!1;const j=new ResizeObserver(()=>{if(!_){_=!0;const $=I.current;if($[0]===T.clientHeight&&$[1]===T.scrollHeight&&$[2]===T.clientWidth&&$[3]===T.scrollWidth)return}P()});return j.observe(T),N.start(0,()=>{const $=T.getAnimations({subtree:!0});$.length!==0&&Promise.allSettled($.map(U=>U.finished)).then(P).catch(()=>{})}),()=>{j.disconnect(),N.clear()}},[P,a,N]);function z(){O.current=!1}const L={role:"presentation",...h&&{"data-id":`${h}-viewport`},tabIndex:v.x&&v.y?-1:0,className:Vo.className,style:{overflow:"scroll"},onScroll(){a.current&&(P(),(S||!O.current)&&x({x:a.current.scrollLeft,y:a.current.scrollTop}),D.start(100,()=>{O.current=!0}))},onWheel:z,onPointerMove:z,onPointerEnter:z,onKeyDown:z},A=ke("div",t,{ref:[n,a],state:M,props:[L,i],stateAttributesMapping:Ga}),F=c.useMemo(()=>({computeThumbPosition:P}),[P]);return K.jsx(D2.Provider,{value:F,children:A})});function L2(e){const t=e.clientHeight>=e.scrollHeight,n=e.clientWidth>=e.scrollWidth;return{y:t,x:n,corner:t||n}}function xr(e,t){for(const n in t)if(e[n]!==t[n])return t;return e}function Al(e,t,n,o,r,s,i){const a=hn(n,0,o),l=n-a,u=Math.max(Pi,s*r/(r+Math.abs(l)));return e.style.setProperty(t,l?`${u}px`:""),(o?a/o*i:0)+(l>0?s-u:0)}const op=c.createContext(void 0);function _2(){const e=c.useContext(op);if(e===void 0)throw new Error(Ne(54));return e}const kE=c.forwardRef(function(t,n){const{render:o,className:r,orientation:s="vertical",keepMounted:i=!1,style:a,...l}=t,{hovering:u,scrollingX:d,scrollingY:p,hiddenState:f,scrollbarYRef:y,scrollbarXRef:m,viewportRef:g,thumbYRef:h,thumbXRef:b,handlePointerDown:v,handlePointerUp:w,handleScroll:x,disableViewportSnap:S,rootId:R,thumbSize:E,hasMeasuredScrollbar:k,viewportState:M}=Es(),C=s==="vertical",O={...M,hovering:u,scrolling:C?p:d,orientation:s},I=bo(),D=!k&&!i,N=C?f.y:f.x,P=i||!N;c.useEffect(()=>{if(!P)return;const A=g.current,F=C?y.current:m.current;if(!F)return;function T(_){if(!A||_.ctrlKey)return;const j=!C,$=j?"scrollLeft":"scrollTop",U=j?_.deltaX:_.deltaY;if(U===0)return;const Y=j?A.scrollWidth-A.clientWidth:A.scrollHeight-A.clientHeight,V=j&&I==="rtl"?-Y:0,Q=j&&I==="rtl"?0:Y,H=A[$];H<=V&&U<0||H>=Q&&U>0||(_.preventDefault(),A[$]=Math.min(Q,Math.max(V,H+U)),x({x:A.scrollLeft,y:A.scrollTop}))}return Me(F,"wheel",T,{passive:!1})},[I,x,C,m,y,P,g]);const z={...R&&{"data-id":`${R}-scrollbar`},onPointerDown(A){if(A.button!==0)return;const F=et(A.nativeEvent),T=C?h.current:b.current;if(T&&ve(T,F))return;const _=g.current;if(!_)return;const j=C?y.current:m.current;if(!T||!j)return;const $=C?"y":"x",U=gn(T,"margin",$),Y=gn(j,"padding",$),V=C?T.offsetHeight:T.offsetWidth,Q=j.getBoundingClientRect(),H=C?A.clientY-Q.top-V/2-Y+U/2:A.clientX-Q.left-V/2-Y+U/2,G=C?_.scrollHeight:_.scrollWidth,ue=C?_.clientHeight:_.clientWidth,te=(C?j.offsetHeight:j.offsetWidth)-V-Y-U;if(te<=0)return;const J=H/te,ee=G-ue;S(),C?_.scrollTop=J*ee:I==="rtl"?_.scrollLeft=-(1-J)*ee:_.scrollLeft=J*ee,x({x:_.scrollLeft,y:_.scrollTop}),v(A)},onPointerUp:w,onPointerCancel:w,style:{position:"absolute",touchAction:"none",WebkitUserSelect:"none",userSelect:"none",visibility:D?"hidden":void 0,...C?{top:0,bottom:"var(--scroll-area-corner-height)",insetInlineEnd:0,"--scroll-area-thumb-height":`${E.height}px`}:{insetInlineStart:0,insetInlineEnd:"var(--scroll-area-corner-width)",bottom:0,"--scroll-area-thumb-width":`${E.width}px`}}},L=ke("div",t,{ref:[n,C?y:m],state:O,props:[z,l],stateAttributesMapping:Ga});return P?K.jsx(op.Provider,{value:s,children:L}):null}),EE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,{thumbYRef:a,thumbXRef:l,handlePointerDown:u,handlePointerMove:d,handlePointerUp:p,scrollingX:f,scrollingY:y,hasMeasuredScrollbar:m}=Es(),g=_2(),h=g==="vertical";return ke("div",t,{ref:[n,h?a:l],state:{scrolling:h?y:f,orientation:g},props:[{onPointerDown:u,onPointerMove:d,onPointerUp:p,onPointerCancel:p,style:{visibility:m?void 0:"hidden",...h?{height:"var(--scroll-area-thumb-height)"}:{width:"var(--scroll-area-thumb-width)"}}},i]})}),CE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,{cornerRef:a,cornerSize:l,hiddenState:u}=Es(),d=ke("div",t,{ref:[n,a],props:[{style:{position:"absolute",bottom:0,insetInlineEnd:0,width:l.width,height:l.height}},i]});return u.corner?null:d}),rp=c.createContext(void 0);function Cs(){const e=c.useContext(rp);if(e===void 0)throw new Error(Ne(64));return e}const Xo={tabActivationDirection:e=>({"data-activation-direction":e})},PE=c.forwardRef(function(t,n){const{className:o,defaultValue:r=0,onValueChange:s,orientation:i="horizontal",render:a,value:l,style:u,...d}=t,p=t.defaultValue!==void 0,f=c.useRef([]),[y,m]=c.useState(()=>new Map),[g,h]=Lt({controlled:l,default:r,name:"Tabs",state:"value"}),b=l!==void 0,[v,w]=c.useState(()=>new Map),x=c.useRef(void 0),S=c.useCallback(H=>Mi(v,H),[v]),[R,E]=c.useState(()=>({previousValue:g,tabActivationDirection:"none"})),{previousValue:k,tabActivationDirection:M}=R;let C=M,O=!1;k!==g&&(C=Dl(k,g,i,v),O=k!=null&&g!=null&&S(g)==null);const I=O?k:g,D=k!==I||M!==C;re(()=>{D&&E({previousValue:I,tabActivationDirection:C})},[I,D,C]);const N=le((H,G)=>{const ue=Dl(g,H,i,v);G.activationDirection=ue,s==null||s(H,G),!G.isCanceled&&h(H)}),P=le((H,G)=>{s==null||s(H,Re(G,void 0,void 0,{activationDirection:"none"}))}),z=le((H,G)=>(m(ue=>{const ne=new Map(ue);return ne.set(H,G),ne}),()=>{m(ue=>{if(ue.get(H)!==G)return ue;const ne=new Map(ue);return ne.delete(H),ne})})),L=c.useCallback(H=>y.get(H),[y]),A=c.useCallback(H=>{for(const G of v.values())if(H===G.value)return G.id},[v]),F=c.useMemo(()=>({getTabElementBySelectedValue:S,getTabIdByPanelValue:A,getTabPanelIdByValue:L,onValueChange:N,orientation:i,registerMountedTabPanel:z,setTabMap:w,tabActivationDirection:C,value:g}),[S,A,L,N,i,z,w,C,g]),T=c.useMemo(()=>{for(const H of v.values())if(H.value===g)return H},[v,g]),_=c.useMemo(()=>{for(const H of v.values())if(!H.disabled)return H.value},[v]),j=c.useRef(!p),$=c.useRef(r),U=c.useRef(p),Y=c.useRef(!1);re(()=>{var te;if(b)return;function H(J,ee){h(J),E({previousValue:J,tabActivationDirection:"none"}),P(J,ee),j.current=!1}if(v.size===0){Y.current&&g!==null&&!((te=x.current)!=null&&te.isConnected)&&H(null,vc);return}Y.current=!0,x.current=v.keys().next().value;const G=T==null?void 0:T.disabled,ue=T==null&&g!==null;if(!G&&g===$.current&&(U.current=!1),U.current&&G&&g===$.current)return;const ne=j.current;if(G||ue){const J=_??null;if(g===J){j.current=!1;return}let ee=vc;ne?ee=xc:G&&(ee=Tu),H(J,ee);return}ne&&T!=null&&(P(g,xc),j.current=!1)},[_,b,P,T,h,v,g]);const Q=ke("div",t,{state:{orientation:i,tabActivationDirection:C},ref:n,props:d,stateAttributesMapping:Xo});return K.jsx(rp.Provider,{value:F,children:K.jsx(gs,{elementsRef:f,children:Q})})});function Mi(e,t){for(const[n,o]of e.entries())if(t===o.value)return n;return null}function Dl(e,t,n,o){if(e==null||t==null)return"none";const[r,s,i]=n==="horizontal"?["left","left","right"]:["top","up","down"],a=Mi(o,e),l=Mi(o,t);if(a==null||l==null)return a!==l&&(typeof e=="number"||typeof e=="string")&&typeof e==typeof t?t>e?i:s:"none";const u=a.getBoundingClientRect()[r],d=l.getBoundingClientRect()[r];return d<u?s:d>u?i:"none"}const sp="data-composite-item-active",ip=c.createContext(void 0);function ap(){const e=c.useContext(ip);if(e===void 0)throw new Error(Ne(65));return e}const ME=c.forwardRef(function(t,n){const{className:o,disabled:r=!1,render:s,value:i,id:a,nativeButton:l=!0,style:u,...d}=t,{value:p,getTabPanelIdByValue:f,onValueChange:y,orientation:m,tabActivationDirection:g}=Cs(),{activateOnFocus:h,registerTabResizeObserverElement:b,tabsListElement:v}=ap(),{highlightedIndex:w,onHighlightedIndexChange:x}=Yr(),S=rt(a),R=c.useMemo(()=>({disabled:r,id:S,value:i}),[r,S,i]),{compositeProps:E,compositeRef:k,index:M}=Vd({metadata:R}),C=i===p,O=c.useRef(!1),I=c.useRef(null),D=le(Y=>{var V;(V=I.current)==null||V.call(I),I.current=Y?b(Y):null});re(()=>{if(O.current){O.current=!1;return}if(!(C&&M>-1&&w!==M))return;const Y=v;if(Y!=null){const V=dt(Te(Y));if(V&&ve(Y,V))return}r||x(M)},[C,M,w,x,r,v]);const{getButtonProps:N,buttonRef:P}=Tt({disabled:r,native:l,focusableWhenDisabled:!0}),z=f(i),L=c.useRef(!1),A=c.useRef(!1);function F(Y){y(i,Re(Rt,Y.nativeEvent,void 0,{activationDirection:"none"}))}function T(Y){C||r||F(Y)}function _(Y){C||r||h&&(!L.current||A.current)&&F(Y)}function j(Y){if(C||r)return;L.current=!0,A.current=Y.button===0;const V=Te(Y.currentTarget);function Q(){L.current=!1,A.current=!1,V.removeEventListener("pointerup",Q),V.removeEventListener("pointercancel",Q)}V.addEventListener("pointerup",Q),V.addEventListener("pointercancel",Q)}return ke("button",t,{state:{disabled:r,active:C,orientation:m,tabActivationDirection:g},ref:[n,P,k,D],props:[E,{role:"tab","aria-controls":z,"aria-selected":C,id:S,onClick:T,onFocus:_,onPointerDown:j,[sp]:C?"":void 0,onKeyDownCapture(){O.current=!0}},d,N],stateAttributesMapping:Xo})}),F2="";function z2(){return Ke}function V2(){return!1}function $2(){return!0}function H2(){return cs.useSyncExternalStore(z2,V2,$2)}function j2(e){const{script:t}=e,{nonce:n}=Da();return H2()?K.jsx("script",{nonce:n,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0}):null}var Nl;const B2={...Xo,activeTabPosition:()=>null,activeTabSize:()=>null},TE=c.forwardRef(function(t,n){const{className:o,render:r,renderBeforeHydration:s=!1,style:i,...a}=t,{getTabElementBySelectedValue:l,orientation:u,tabActivationDirection:d,value:p}=Cs(),{tabsListElement:f,registerIndicatorUpdateListener:y}=ap(),m=Hb();c.useEffect(()=>y(m),[y,m]);let g=0,h=0,b=0,v=0,w=0,x=0,S=!1;if(p!=null&&f!=null){const I=l(p);if(I!=null){S=!0;const{width:D,height:N}=ll(I),{width:P,height:z}=ll(f),L=I.getBoundingClientRect(),A=f.getBoundingClientRect(),F=P>0?A.width/P:1,T=z>0?A.height/z:1;if(F>Number.EPSILON&&T>Number.EPSILON){const j=L.left-A.left,$=L.top-A.top;g=j/F+f.scrollLeft-f.clientLeft,b=$/T+f.scrollTop-f.clientTop}else g=I.offsetLeft,b=I.offsetTop;w=D,x=N,h=f.scrollWidth-g-w,v=f.scrollHeight-b-x}}const R=S?{left:g,right:h,top:b,bottom:v}:null,E=S?{width:w,height:x}:null,k=S?{"--active-tab-left":`${g}px`,"--active-tab-right":`${h}px`,"--active-tab-top":`${b}px`,"--active-tab-bottom":`${v}px`,"--active-tab-width":`${w}px`,"--active-tab-height":`${x}px`}:void 0,M=S&&w>0&&x>0,O=ke("span",t,{state:{orientation:u,activeTabPosition:R,activeTabSize:E,tabActivationDirection:d},ref:n,props:[{role:"presentation",style:k,hidden:!M},a,{suppressHydrationWarning:!0}],stateAttributesMapping:B2});return p==null?null:K.jsxs(c.Fragment,{children:[O,s&&(Nl||(Nl=K.jsx(j2,{script:F2})))]})}),W2={...Xo,...Gt},IE=c.forwardRef(function(t,n){const{className:o,value:r,render:s,keepMounted:i=!1,style:a,...l}=t,{value:u,getTabIdByPanelValue:d,orientation:p,tabActivationDirection:f,registerMountedTabPanel:y}=Cs(),m=rt(),{ref:g,index:h}=yo(),b=r===u,{mounted:v,transitionStatus:w,setMounted:x}=ln(b),S=!v,R=d(r),E={hidden:S,orientation:p,tabActivationDirection:f,transitionStatus:w},k=c.useRef(null),M=ke("div",t,{state:E,ref:[n,g,k],props:[{"aria-labelledby":R,hidden:S,id:m,role:"tabpanel",tabIndex:b?0:-1,inert:hs(!b),"data-index":h},l],stateAttributesMapping:W2});return kt({open:b,ref:k,onComplete(){b||x(!1)}}),re(()=>{if(!(m==null||S&&!i))return y(r,m)},[S,i,r,m,y]),i||v?M:null}),U2=[];function G2(e){const{loopFocus:t=!0,orientation:n="both",grid:o,onLoop:r,direction:s,highlightedIndex:i,onHighlightedIndexChange:a,rootRef:l,enableHomeAndEndKeys:u=!1,stopEventPropagation:d,disabledIndices:p,modifierKeys:f=U2}=e,[y,m]=c.useState(0),g=o!=null,h=c.useRef(null),b=Dt(h,l),v=c.useRef([]),w=c.useRef(!1),x=i??y,S=le((C,O=!1)=>{if((a??m)(C),O){const I=v.current[C];Jc(h.current,I,s,n)}}),R=le(C=>{var N;if(C.size===0||w.current)return;w.current=!0;const O=Array.from(C.keys()),I=O.find(P=>P==null?void 0:P.hasAttribute(sp))??null,D=I?((N=C.get(I))==null?void 0:N.index)??-1:-1;if(D!==-1)S(D);else if(Vr(O,x,p)){const P=Jt(O,{disabledIndices:p});Ao(O,P)||S(P)}Jc(h.current,I,s,n)});re(()=>{if(p==null||i!=null||!w.current)return;const C=v.current;if(Vr(C,x,p)){const O=Jt(C,{disabledIndices:p});Ao(C,O)||S(O)}},[p,i,x,v,S]);const E=le((C,O,I)=>r?r(C,O,I,v):I),k=le(C=>{const O=C.key===pi||C.key===hi;if(!fs.has(C.key)||!u&&O||Y2(C,f)||!h.current)return;const D=s==="rtl",N=D?di:fi,P=D?fi:di,z=n==="vertical"?ui:N,L=n==="vertical"?li:P,A=et(C.nativeEvent);if(A!=null&&Qc(A)&&!Hd(A)){const U=A.selectionStart,Y=A.selectionEnd,V=A.value;if(U==null||C.shiftKey||U!==Y||C.key!==L&&U<V.length||C.key!==z&&U>0)return}let F=x;const T=Rr(v,p),_=ri(v,p);o!=null&&(F=o({disabledIndices:p,elementsRef:v,event:C,highlightedIndex:x,loopFocus:t,maxIndex:_,minIndex:T,onLoop:E,orientation:n,rtl:D}));const j=n!=="vertical"&&C.key===N||n!=="horizontal"&&C.key===ui,$=n!=="vertical"&&C.key===P||n!=="horizontal"&&C.key===li;u&&(C.key===pi?F=T:C.key===hi&&(F=_)),F===x&&(j||$)&&(t&&F===_&&j?(F=T,r&&(F=r(C,x,F,v))):t&&F===T&&$?(F=_,r&&(F=r(C,x,F,v))):F=Jt(v.current,{startingIndex:F,decrement:$,disabledIndices:p})),F!==x&&!Ao(v.current,F)&&(d&&C.stopPropagation(),(g||O||j||$)&&C.preventDefault(),S(F,!0),queueMicrotask(()=>{var U;(U=v.current[F])==null||U.focus()}))});return{props:{ref:b,onFocus(C){const O=h.current,I=et(C.nativeEvent);!O||I==null||!Qc(I)||I.setSelectionRange(0,I.value.length)},onKeyDown:k},highlightedIndex:x,onHighlightedIndexChange:S,elementsRef:v,onMapChange:R,relayKeyboardEvent:k}}function Y2(e,t){for(const n of i1)if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}function cp(e){const{render:t,className:n,style:o,refs:r=Nt,props:s=Nt,state:i=We,stateAttributesMapping:a,highlightedIndex:l,onHighlightedIndexChange:u,orientation:d,grid:p,loopFocus:f,onLoop:y,enableHomeAndEndKeys:m,onMapChange:g,stopEventPropagation:h=!0,rootRef:b,disabledIndices:v,modifierKeys:w,highlightItemOnHover:x=!1,tag:S="div",...R}=e,E=bo(),{props:k,highlightedIndex:M,onHighlightedIndexChange:C,elementsRef:O,onMapChange:I,relayKeyboardEvent:D}=G2({grid:p,loopFocus:f,onLoop:y,orientation:d,highlightedIndex:l,onHighlightedIndexChange:u,rootRef:b,stopEventPropagation:h,enableHomeAndEndKeys:m,direction:E,disabledIndices:v,modifierKeys:w}),N=ke(S,e,{state:i,ref:r,props:[k,...s,R],stateAttributesMapping:a}),P=c.useMemo(()=>({highlightedIndex:M,onHighlightedIndexChange:C,highlightItemOnHover:x,relayKeyboardEvent:D}),[M,C,x,D]);return K.jsx(cu.Provider,{value:P,children:K.jsx(gs,{elementsRef:O,onMapChange:z=>{g==null||g(z),I(z)},children:N})})}const OE=c.forwardRef(function(t,n){const{activateOnFocus:o=!1,className:r,loopFocus:s=!0,render:i,style:a,...l}=t,{orientation:u,setTabMap:d,tabActivationDirection:p}=Cs(),[f,y]=c.useState(0),[m,g]=c.useState(null),h=c.useRef(new Set),b=c.useRef(new Set),v=c.useRef(null);re(()=>{if(typeof ResizeObserver>"u")return;const k=new ResizeObserver(()=>{h.current.forEach(M=>{M()})});return v.current=k,m&&k.observe(m),b.current.forEach(M=>{k.observe(M)}),()=>{k.disconnect(),v.current=null}},[m]);const w=le(k=>(h.current.add(k),()=>{h.current.delete(k)})),x=le(k=>{var M;return b.current.add(k),(M=v.current)==null||M.observe(k),()=>{var C;b.current.delete(k),(C=v.current)==null||C.unobserve(k)}}),S={orientation:u,tabActivationDirection:p},R={"aria-orientation":u==="vertical"?"vertical":void 0,role:"tablist"},E=c.useMemo(()=>({activateOnFocus:o,registerIndicatorUpdateListener:w,registerTabResizeObserverElement:x,tabsListElement:m}),[o,w,x,m]);return K.jsx(ip.Provider,{value:E,children:K.jsx(cp,{render:i,className:r,style:a,state:S,refs:[n,g],props:[R,l],stateAttributesMapping:Xo,highlightedIndex:f,enableHomeAndEndKeys:!0,loopFocus:s,orientation:u,onHighlightedIndexChange:y,onMapChange:d,disabledIndices:Nt})})});function AE(e){return Qd("alert-dialog",e)}const DE=Rv;function q2(e){if(!e)return null;for(const t of e.elements){const n=t.tagName;if(n==="BUTTON"||n==="INPUT"){const o=t;if(o.type==="submit")return o}}return null}function lp(e){return{checked(t){return e.indeterminate?{}:t?{"data-checked":""}:{"data-unchecked":""}},...bs}}const X2=c.createContext(void 0);function K2(){return c.useContext(X2)}const up=c.createContext(void 0);function Z2(){const e=c.useContext(up);if(e===void 0)throw new Error(Ne(14));return e}const Q2="data-parent",NE=c.forwardRef(function(t,n){const{checked:o,className:r,defaultChecked:s=!1,"aria-labelledby":i,disabled:a=!1,form:l,id:u,indeterminate:d=!1,inputRef:p,name:f,onCheckedChange:y,parent:m=!1,readOnly:g=!1,render:h,required:b=!1,uncheckedValue:v,value:w,nativeButton:x=!1,style:S,...R}=t,{clearErrors:E}=ws(),{disabled:k,name:M,setDirty:C,setFilled:O,setFocused:I,setTouched:D,state:N,validationMode:P,validityData:z,validation:L}=vo(),A=k2(),{labelId:F,controlId:T,registerControlId:_,getDescriptionProps:j}=Yo(),$=K2(),U=($==null?void 0:$.allValues)===void 0?void 0:$.parent,Y=U!==void 0,V=k||A.disabled||($==null?void 0:$.disabled)||a,Q=M??f,H=w??Q,G=rt(),ue=rt();let ne=u||T;Y&&(m?ne=ue:H!==void 0?ne=`${U.id}-${H}`:ne||(ne=ue));let te={};Y&&(m?te=U.getParentProps():H!==void 0&&(te=U.getChildProps(H)));const{checked:J=o,indeterminate:ee=d,onCheckedChange:ie,...xe}=te,ae=$==null?void 0:$.value,he=c.useRef(null),oe=at(()=>Symbol()),ge=c.useRef(!1),{getButtonProps:de,buttonRef:ce}=Tt({disabled:V,native:x}),fe=($==null?void 0:$.validation)??L,[B,q]=Lt({controlled:H!==void 0&&ae!==void 0&&!m?ae.includes(H):J,default:s,name:"Checkbox",state:"checked"}),se=Y?!!J:B,Z=Y&&ee||d;re(()=>{_!==Ke&&(ge.current=!0,_(oe.current,ne))},[ne,_,oe]),c.useEffect(()=>{const Se=oe.current;return()=>{!ge.current||_===Ke||(ge.current=!1,_(Se,void 0))}},[_,oe]),vs(he,G,B,void 0,!$&&!V,f);const X=c.useRef(null),pe=fe.registerInput,be=$?H:void 0,Le=c.useCallback(Se=>pe(Se,{controlRef:he,value:be}),[pe,be]),Ue=Dt(p,X,m?void 0:Le),qe=Zf(i,F,X,!x,ne??void 0);re(()=>{X.current&&(X.current.indeterminate=Z,B&&O(!0))},[B,Z,O]),ys(B,()=>{$||(E(Q),O(B),C(B!==z.initialValue),fe.change(B))});const st=St({checked:B,disabled:V,form:l,name:m?void 0:Q,id:x?void 0:ne??void 0,required:b,ref:Ue,style:Q?ta:Bo,tabIndex:-1,type:"checkbox","aria-hidden":!0,onChange(Se){if(Se.nativeEvent.defaultPrevented)return;if(g){Se.preventDefault();return}const je=Se.currentTarget.checked,Ye=Re(Rt,Se.nativeEvent);if(y==null||y(je,Ye),!Ye.isCanceled&&(ie==null||ie(je,Ye),!Ye.isCanceled&&(q(je),H!==void 0&&$!==void 0&&!m&&!Y))){const Be=je?[...$.value,H]:$.value.filter(Xe=>Xe!==H);$.setValue(Be,Ye)}},onClick(Se){Se.stopPropagation()},onFocus(){var Se;(Se=he.current)==null||Se.focus()}},w!==void 0?{value:($?B&&w:w)||""}:We,j,Se=>fe.getValidationProps(V,Se));c.useEffect(()=>{if(!U||H===void 0)return;const Se=U.disabledStatesRef.current;return Se.set(H,V),()=>{Se.delete(H)}},[U,V,H]);const _e=c.useMemo(()=>({...N,checked:se,disabled:V,readOnly:g,required:b,indeterminate:Z}),[N,se,V,g,b,Z]),Je=lp(_e),ct=ke("span",t,{state:_e,ref:[ce,he,n],props:[{id:x?ne??void 0:G,role:"checkbox","aria-checked":Z?"mixed":se,"aria-readonly":g||void 0,"aria-required":b||void 0,"aria-labelledby":qe,[Q2]:m?"":void 0,onFocus(){V||I(!0)},onBlur(){const Se=X.current;Se&&(D(!0),I(!1),P==="onBlur"&&fe.commit($?ae:Se.checked))},onKeyDown(Se){var Ae;if(Se.key!=="Enter"||(Se.preventBaseUIHandler(),Se.defaultPrevented))return;const je=((Ae=X.current)==null?void 0:Ae.form)??null,Ye=Se.currentTarget,Be=Se.nativeEvent,Xe=Se.preventDefault,pt=Be.preventDefault;let we=!1;Se.preventDefault=()=>{we=!0,Xe.call(Se)},Be.preventDefault=()=>{we=!0,pt.call(Be)},pt.call(Be),He(Ye).queueMicrotask(()=>{var Qe;Se.preventDefault=Xe,Be.preventDefault=pt,we||(Qe=q2(je))==null||Qe.click()})},onClick(Se){if(g||V)return;Se.preventDefault();const je=X.current;je&&Qn(je,Se)}},R,xe,de,j,Se=>fe.getValidationProps(V,Se)],stateAttributesMapping:Je});return K.jsxs(up.Provider,{value:_e,children:[ct,!B&&!$&&Q&&!m&&v!==void 0&&K.jsx("input",{type:"hidden",form:l,name:Q,value:v,disabled:V}),K.jsx("input",{...st,suppressHydrationWarning:!0})]})}),LE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,keepMounted:i=!1,...a}=t,l=Z2(),u=l.checked||l.indeterminate,{mounted:d,transitionStatus:p,setMounted:f}=ln(u),y=c.useRef(null),m={...l,transitionStatus:p};kt({open:u,ref:y,onComplete(){u||f(!1)}});const h={...lp(l),...Gt},b=i||d,v=ke("span",t,{ref:[n,y],state:m,stateAttributesMapping:h,props:a});return b?v:null});function _E(e){const[t,n]=c.useState({getBoundingClientRect(){return DOMRect.fromRect({width:0,height:0,x:0,y:0})}}),o=c.useRef(null),r=c.useRef(null),s=c.useRef(null),i=c.useRef(null),a=c.useRef(!0),l=c.useRef(null),u=bn(),d=c.useMemo(()=>({anchor:t,setAnchor:n,actionsRef:s,backdropRef:o,internalBackdropRef:r,positionerRef:i,allowMouseUpTriggerRef:a,initialCursorPointRef:l,rootId:u}),[t,u]);return K.jsx(Mu.Provider,{value:d,children:K.jsx($i.Provider,{value:void 0,children:K.jsx(F1,{...e})})})}const Ll=500,FE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,{setAnchor:a,actionsRef:l,internalBackdropRef:u,backdropRef:d,positionerRef:p,allowMouseUpTriggerRef:f,initialCursorPointRef:y,rootId:m}=Kr(!1),{store:g}=cn(!1),h=g.useState("open"),b=g.useState("disabled"),v=c.useRef(null),w=c.useRef(null),x=Ge(),S=Ge(),R=c.useRef(!1),E=c.useRef(null);function k(P,z,L){var F;const A=L.type.startsWith("touch");y.current={x:P,y:z},a({getBoundingClientRect(){return DOMRect.fromRect({width:A?10:0,height:A?10:0,x:P,y:z})}}),R.current=!1,(F=l.current)==null||F.setOpen(!0,Re(Rn,L)),S.start(Ll,()=>{R.current=!0})}function M(P){var A;if(b)return;f.current=!0,It(P),k(P.clientX,P.clientY,P.nativeEvent);const z=Te(v.current);(A=E.current)==null||A.abort();const L=new AbortController;E.current=L,z.addEventListener("mouseup",F=>{var _;if(f.current=!1,!R.current)return;S.clear(),R.current=!1;const T=et(F);ve(p.current,T)||m&&T&&Ia(T)===m||(_=l.current)==null||_.setOpen(!1,Re(Bi,F))},{once:!0,signal:L.signal})}function C(){x.clear(),w.current=null}function O(P){if(b){C();return}if(f.current=!1,P.touches.length!==1){C();return}P.stopPropagation();const z=P.touches[0],L={x:z.clientX,y:z.clientY};w.current=L,x.start(Ll,()=>{k(L.x,L.y,P.nativeEvent)})}function I(P){if(P.touches.length!==1){C();return}if(x.isStarted()&&w.current){const z=P.touches[0],L=10,A=Math.abs(z.clientX-w.current.x),F=Math.abs(z.clientY-w.current.y);(A>L||F>L)&&C()}}return c.useEffect(()=>()=>{var P;(P=E.current)==null||P.abort()},[]),c.useEffect(()=>{function P(L){if(b)return;const F=et(L);(ve(v.current,F)||ve(u.current,F)||ve(d.current,F))&&L.preventDefault()}const z=Te(v.current);return Me(z,"contextmenu",P)},[d,b,u]),ke("div",t,{state:{open:h},ref:[v,n],props:[{onContextMenu:M,onTouchStart:O,onTouchMove:I,onTouchEnd:C,onTouchCancel:C,style:{WebkitTouchCallout:"none"}},i],stateAttributesMapping:Lr})}),dp=c.createContext(void 0);function J2(){return c.useContext(dp)}const zE=c.forwardRef(function(t,n){const{className:o,defaultPressed:r=!1,disabled:s=!1,form:i,onPressedChange:a,pressed:l,render:u,type:d,value:p,nativeButton:f=!0,style:y,...m}=t,g=rt(p||void 0),h=J2(),b=(h==null?void 0:h.value)??[],v=h?void 0:r,w=(s||(h==null?void 0:h.disabled))??!1,[x,S]=Lt({controlled:h?g!==void 0&&b.indexOf(g)>-1:l,default:v,name:"Toggle",state:"pressed"}),{getButtonProps:R,buttonRef:E}=Tt({disabled:w,native:f}),k={disabled:w,pressed:x},M=[E,n],C=[{"aria-pressed":x,onClick(D){var z;const N=!x,P=Re(Rt,D.nativeEvent);a==null||a(N,P),!P.isCanceled&&(g&&((z=h==null?void 0:h.setGroupValue)==null||z.call(h,g,N,P)),!P.isCanceled&&S(N))}},m,R],O=ke("button",t,{enabled:!h,state:k,ref:M,props:C}),I=c.useMemo(()=>({disabled:w,focusableWhenDisabled:!1}),[w]);return h?K.jsx($d,{tag:"button",render:u,className:o,style:y,metadata:I,state:k,refs:M,props:C}):O}),ew=c.createContext(void 0);function tw(){return c.useContext(ew)}const VE=c.forwardRef(function(t,n){const{defaultValue:o,disabled:r=!1,loopFocus:s=!0,onValueChange:i,orientation:a="horizontal",multiple:l=!1,value:u,className:d,render:p,style:f,...y}=t,m=Ca(),g=tw(),h=u!==void 0||o!==void 0,b=((m==null?void 0:m.disabled)??!1)||((g==null?void 0:g.disabled)??!1)||r,[v,w]=Lt({controlled:u,default:u===void 0?o??Nt:void 0,name:"ToggleGroup",state:"value"}),x=le((M,C,O)=>{let I;l?(I=v.slice(),C?I.push(M):I.splice(v.indexOf(M),1)):I=C?[M]:[],i==null||i(I,O),!O.isCanceled&&w(I)}),S={disabled:b,multiple:l,orientation:a},R=c.useMemo(()=>({disabled:b,setGroupValue:x,value:v,isValueInitialized:h}),[b,x,v,h]),E={role:"group"},k=ke("div",t,{enabled:!!m,state:S,ref:n,props:[E,y]});return K.jsx(dp.Provider,{value:R,children:m?k:K.jsx(cp,{render:p,className:d,style:f,state:S,refs:[n],props:[E,y],loopFocus:s,enableHomeAndEndKeys:!0,orientation:a})})});function nw(e,t){const n=getComputedStyle(e),o=parseFloat(n.fontSize);return t*o}function ow(e,t){const n=getComputedStyle(e.ownerDocument.documentElement),o=parseFloat(n.fontSize);return t*o}function rw(e){return e/100*window.innerHeight}function sw(e){return e/100*window.innerWidth}function iw(e){switch(typeof e){case"number":return[e,"px"];case"string":{const t=parseFloat(e);return e.endsWith("%")?[t,"%"]:e.endsWith("px")?[t,"px"]:e.endsWith("rem")?[t,"rem"]:e.endsWith("em")?[t,"em"]:e.endsWith("vh")?[t,"vh"]:e.endsWith("vw")?[t,"vw"]:[t,"%"]}}}function Oo({groupSize:e,panelElement:t,styleProp:n}){let o;const[r,s]=iw(n);switch(s){case"%":{o=r/100*e;break}case"px":{o=r;break}case"rem":{o=ow(t,r);break}case"em":{o=nw(t,r);break}case"vh":{o=rw(r);break}case"vw":{o=sw(r);break}}return o}function mt(e){return parseFloat(e.toFixed(3))}function go({group:e}){const{orientation:t,panels:n}=e;return n.reduce((o,r)=>(o+=t==="horizontal"?r.element.offsetWidth:r.element.offsetHeight,o),0)}function Ti(e){const{panels:t}=e,n=go({group:e});return n===0?t.map(o=>({groupResizeBehavior:o.panelConstraints.groupResizeBehavior,collapsedSize:0,collapsible:o.panelConstraints.collapsible===!0,defaultSize:void 0,disabled:o.panelConstraints.disabled,minSize:0,maxSize:100,panelId:o.id})):t.map(o=>{const{element:r,panelConstraints:s}=o;let i=0;if(s.collapsedSize!==void 0){const d=Oo({groupSize:n,panelElement:r,styleProp:s.collapsedSize});i=mt(d/n*100)}let a;if(s.defaultSize!==void 0){const d=Oo({groupSize:n,panelElement:r,styleProp:s.defaultSize});a=mt(d/n*100)}let l=0;if(s.minSize!==void 0){const d=Oo({groupSize:n,panelElement:r,styleProp:s.minSize});l=mt(d/n*100)}let u=100;if(s.maxSize!==void 0){const d=Oo({groupSize:n,panelElement:r,styleProp:s.maxSize});u=mt(d/n*100)}return{groupResizeBehavior:s.groupResizeBehavior,collapsedSize:i,collapsible:s.collapsible===!0,defaultSize:a,disabled:s.disabled,minSize:l,maxSize:u,panelId:o.id}})}function $e(e,t="Assertion error"){if(!e)throw Error(t)}function Ii(e,t){return Array.from(t).sort(e==="horizontal"?aw:cw)}function aw(e,t){const n=e.element.offsetLeft-t.element.offsetLeft;return n!==0?n:e.element.offsetWidth-t.element.offsetWidth}function cw(e,t){const n=e.element.offsetTop-t.element.offsetTop;return n!==0?n:e.element.offsetHeight-t.element.offsetHeight}function fp(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function pp(e,t){return{x:e.x>=t.left&&e.x<=t.right?0:Math.min(Math.abs(e.x-t.left),Math.abs(e.x-t.right)),y:e.y>=t.top&&e.y<=t.bottom?0:Math.min(Math.abs(e.y-t.top),Math.abs(e.y-t.bottom))}}function lw({orientation:e,rects:t,targetRect:n}){const o={x:n.x+n.width/2,y:n.y+n.height/2};let r,s=Number.MAX_VALUE;for(const i of t){const{x:a,y:l}=pp(o,i),u=e==="horizontal"?a:l;u<s&&(s=u,r=i)}return $e(r,"No rect found"),r}let wr;function uw(){return wr===void 0&&(typeof matchMedia=="function"?wr=!!matchMedia("(pointer:coarse)").matches:wr=!1),wr}function hp(e){const{element:t,orientation:n,panels:o,separators:r}=e,s=Ii(n,Array.from(t.children).filter(fp).map(m=>({element:m}))).map(({element:m})=>m),i=[];let a=!1,l=!1,u=-1,d=-1,p=0,f,y=[];{let m=-1;for(const g of s)g.hasAttribute("data-panel")&&(m++,g.hasAttribute("data-disabled")||(p++,u===-1&&(u=m),d=m))}if(p>1){let m=-1;for(const g of s)if(g.hasAttribute("data-panel")){m++;const h=o.find(b=>b.element===g);if(h){if(f){const b=f.element.getBoundingClientRect(),v=g.getBoundingClientRect();let w;if(l){const x=n==="horizontal"?new DOMRect(b.right,b.top,0,b.height):new DOMRect(b.left,b.bottom,b.width,0),S=n==="horizontal"?new DOMRect(v.left,v.top,0,v.height):new DOMRect(v.left,v.top,v.width,0);switch(y.length){case 0:{w=[x,S];break}case 1:{const R=y[0],E=lw({orientation:n,rects:[b,v],targetRect:R.element.getBoundingClientRect()});w=[R,E===b?S:x];break}default:{w=y;break}}}else y.length?w=y:w=[n==="horizontal"?new DOMRect(b.right,v.top,v.left-b.right,v.height):new DOMRect(v.left,b.bottom,v.width,v.top-b.bottom)];for(const x of w){let S="width"in x?x:x.element.getBoundingClientRect();const R=uw()?e.resizeTargetMinimumSize.coarse:e.resizeTargetMinimumSize.fine;if(S.width<R){const k=R-S.width;S=new DOMRect(S.x-k/2,S.y,S.width+k,S.height)}if(S.height<R){const k=R-S.height;S=new DOMRect(S.x,S.y-k/2,S.width,S.height+k)}const E=m<=u||m>d;!a&&!E&&i.push({group:e,groupSize:go({group:e}),panels:[f,h],separator:"width"in x?void 0:x,rect:S}),a=!1}}l=!1,f=h,y=[]}}else if(g.hasAttribute("data-separator")){g.ariaDisabled!==null&&(a=!0);const h=r.find(b=>b.element===g);h?y.push(h):(f=void 0,y=[])}else l=!0}return i}var fn;class gp{constructor(){ic(this,fn,{})}addListener(t,n){const o=Ro(this,fn)[t];return o===void 0?Ro(this,fn)[t]=[n]:o.includes(n)||o.push(n),()=>{this.removeListener(t,n)}}emit(t,n){const o=Ro(this,fn)[t];if(o!==void 0)if(o.length===1)o[0].call(null,n);else{let r=!1,s=null;const i=Array.from(o);for(let a=0;a<i.length;a++){const l=i[a];try{l.call(null,n)}catch(u){s===null&&(r=!0,s=u)}}if(r)throw s}}removeAllListeners(){ac(this,fn,{})}removeListener(t,n){const o=Ro(this,fn)[t];if(o!==void 0){const r=o.indexOf(n);r>=0&&o.splice(r,1)}}}fn=new WeakMap;let oo={cursorFlags:0,state:"inactive"};const Ya=new gp;function _n(){return oo}function dw(e){return Ya.addListener("change",e)}function fw(e){const t=oo,n={...oo};n.cursorFlags=e,oo=n,Ya.emit("change",{prev:t,next:n})}function ro(e){const t=oo;oo=e,Ya.emit("change",{prev:t,next:e})}const pw=e=>e,Xs=()=>{},mp=1,yp=2,bp=4,vp=8,_l=3,Fl=12;let Sr;function zl(){return Sr===void 0&&(Sr=!1,typeof window<"u"&&(window.navigator.userAgent.includes("Chrome")||window.navigator.userAgent.includes("Firefox"))&&(Sr=!0)),Sr}function hw({cursorFlags:e,groups:t,state:n}){let o=0,r=0;switch(n){case"active":case"hover":t.forEach(s=>{if(!s.mutableState.disableCursor)switch(s.orientation){case"horizontal":{o++;break}case"vertical":{r++;break}}})}if(!(o===0&&r===0)){switch(n){case"active":{if(e&&zl()){const s=(e&mp)!==0,i=(e&yp)!==0,a=(e&bp)!==0,l=(e&vp)!==0;if(s)return a?"se-resize":l?"ne-resize":"e-resize";if(i)return a?"sw-resize":l?"nw-resize":"w-resize";if(a)return"s-resize";if(l)return"n-resize"}break}}return zl()?o>0&&r>0?"move":o>0?"ew-resize":"ns-resize":o>0&&r>0?"grab":o>0?"col-resize":"row-resize"}}const Vl=new WeakMap;function qa(e){if(e.defaultView===null||e.defaultView===void 0)return;let{prevStyle:t,styleSheet:n}=Vl.get(e)??{};n===void 0&&(n=new e.defaultView.CSSStyleSheet,e.adoptedStyleSheets&&(Object.isExtensible(e.adoptedStyleSheets)?e.adoptedStyleSheets.push(n):e.adoptedStyleSheets=[...e.adoptedStyleSheets,n]));const o=_n();switch(o.state){case"active":case"hover":{const r=hw({cursorFlags:o.cursorFlags,groups:o.hitRegions.map(i=>i.group),state:o.state}),s=`*, *:hover {cursor: ${r} !important; }`;if(t===s)return;t=s,r?n.cssRules.length===0?n.insertRule(s):n.replaceSync(s):n.cssRules.length===1&&n.deleteRule(0);break}case"inactive":{t=void 0,n.cssRules.length===1&&n.deleteRule(0);break}}Vl.set(e,{prevStyle:t,styleSheet:n})}let Wt=new Map;const xp=new gp;function gw(e){Wt=new Map(Wt),Wt.delete(e)}function $l(e,t){for(const[n]of Wt)if(n.id===e)return n}function yn(e,t){for(const[n,o]of Wt)if(n.id===e)return o;if(t)throw Error(`Could not find data for Group with id ${e}`)}function Hn(){return Wt}function Xa(e,t){return xp.addListener("groupChange",n=>{n.group.id===e&&t(n)})}function sn(e,t,n){const o=Wt.get(e);Wt=new Map(Wt),Wt.set(e,t),xp.emit("groupChange",{group:e,isUserInteraction:(n==null?void 0:n.isUserInteraction)===!0,prev:o,next:t})}function wp(e){const t=_n();let n=!1;switch(t.state){case"active":ro({cursorFlags:0,state:"inactive"}),t.hitRegions.length>0&&(qa(e),n=!0,t.hitRegions.forEach(o=>{const r=yn(o.group.id,!0);sn(o.group,r,{isUserInteraction:!0})}))}return n}function Hl(e){e.defaultPrevented||wp(e.currentTarget)}function mw(e,t,n){let o,r={x:1/0,y:1/0};for(const s of t){const i=pp(n,s.rect);switch(e){case"horizontal":{i.x<=r.x&&(o=s,r=i);break}case"vertical":{i.y<=r.y&&(o=s,r=i);break}}}return o?{distance:r,hitRegion:o}:void 0}function yw(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}function bw(e,t){if(e===t)throw new Error("Cannot compare node with itself");const n={a:Wl(e),b:Wl(t)};let o;for(;n.a.at(-1)===n.b.at(-1);)o=n.a.pop(),n.b.pop();$e(o,"Stacking order can only be calculated for elements with a common ancestor");const r={a:Bl(jl(n.a)),b:Bl(jl(n.b))};if(r.a===r.b){const s=o.childNodes,i={a:n.a.at(-1),b:n.b.at(-1)};let a=s.length;for(;a--;){const l=s[a];if(l===i.a)return 1;if(l===i.b)return-1}}return Math.sign(r.a-r.b)}const vw=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function xw(e){const t=getComputedStyle(Sp(e)??e).display;return t==="flex"||t==="inline-flex"}function ww(e){const t=getComputedStyle(e);return!!(t.position==="fixed"||t.zIndex!=="auto"&&(t.position!=="static"||xw(e))||+t.opacity<1||"transform"in t&&t.transform!=="none"||"webkitTransform"in t&&t.webkitTransform!=="none"||"mixBlendMode"in t&&t.mixBlendMode!=="normal"||"filter"in t&&t.filter!=="none"||"webkitFilter"in t&&t.webkitFilter!=="none"||"isolation"in t&&t.isolation==="isolate"||vw.test(t.willChange)||t.webkitOverflowScrolling==="touch")}function jl(e){let t=e.length;for(;t--;){const n=e[t];if($e(n,"Missing node"),ww(n))return n}return null}function Bl(e){return e&&Number(getComputedStyle(e).zIndex)||0}function Wl(e){const t=[];for(;e;)t.push(e),e=Sp(e);return t}function Sp(e){const{parentNode:t}=e;return yw(t)?t.host:t}function Sw(e,t){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}function Rw({groupElement:e,hitRegion:t,pointerEventTarget:n}){if(!fp(n)||n.contains(e)||e.contains(n))return!0;if(bw(n,e)>0){let o=n;for(;o;){if(o.contains(e))return!0;if(Sw(o.getBoundingClientRect(),t))return!1;o=o.parentElement}}return!0}function Ka(e,t){const n=[];return t.forEach((o,r)=>{if(r.disabled)return;const s=hp(r),i=mw(r.orientation,s,{x:e.clientX,y:e.clientY});i&&i.distance.x<=0&&i.distance.y<=0&&Rw({groupElement:r.element,hitRegion:i.hitRegion.rect,pointerEventTarget:e.target})&&n.push(i.hitRegion)}),n}function kw(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function ft(e,t,n=0){return Math.abs(mt(e)-mt(t))<=n}function jt(e,t){return ft(e,t)?0:e>t?1:-1}function Zn({overrideDisabledPanels:e,panelConstraints:t,prevSize:n,size:o}){const{collapsedSize:r=0,collapsible:s,disabled:i,maxSize:a=100,minSize:l=0}=t;if(i&&!e)return n;if(jt(o,l)<0)if(s){const u=(r+l)/2;jt(o,u)<0?o=r:o=l}else o=l;return o=Math.min(a,o),o=mt(o),o}function Ho({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:o,prevLayout:r,trigger:s}){if(ft(e,0))return t;const i=s==="imperative-api",a=Object.values(t),l=Object.values(r),u=[...a],[d,p]=o;$e(d!=null,"Invalid first pivot index"),$e(p!=null,"Invalid second pivot index");let f=0;switch(s){case"keyboard":{{const g=e<0?p:d,h=n[g];$e(h,`Panel constraints not found for index ${g}`);const{collapsedSize:b=0,collapsible:v,minSize:w=0}=h;if(v){const x=a[g];if($e(x!=null,`Previous layout not found for panel index ${g}`),ft(x,b)){const S=w-x;jt(S,Math.abs(e))>0&&(e=e<0?0-S:S)}}}{const g=e<0?d:p,h=n[g];$e(h,`No panel constraints found for index ${g}`);const{collapsedSize:b=0,collapsible:v,minSize:w=0}=h;if(v){const x=a[g];if($e(x!=null,`Previous layout not found for panel index ${g}`),ft(x,w)){const S=x-b;jt(S,Math.abs(e))>0&&(e=e<0?0-S:S)}}}break}default:{const g=e<0?p:d,h=n[g];$e(h,`Panel constraints not found for index ${g}`);const b=a[g],{collapsible:v,collapsedSize:w,minSize:x}=h;if(v&&jt(b,x)<0)if(e>0){const S=x-w,R=S/2,E=b+e;jt(E,x)<0&&(e=jt(e,R)<=0?0:S)}else{const S=x-w,R=100-S/2,E=b-e;jt(E,x)<0&&(e=jt(100+e,R)>0?0:-S)}break}}{const g=e<0?1:-1;let h=e<0?p:d,b=0;for(;;){const w=a[h];$e(w!=null,`Previous layout not found for panel index ${h}`);const x=Zn({overrideDisabledPanels:i,panelConstraints:n[h],prevSize:w,size:100})-w;if(b+=x,h+=g,h<0||h>=n.length)break}const v=Math.min(Math.abs(e),Math.abs(b));e=e<0?0-v:v}{let g=e<0?d:p;for(;g>=0&&g<n.length;){const h=Math.abs(e)-Math.abs(f),b=a[g];$e(b!=null,`Previous layout not found for panel index ${g}`);const v=b-h,w=Zn({overrideDisabledPanels:i,panelConstraints:n[g],prevSize:b,size:v});if(!ft(b,w)&&(f+=b-w,u[g]=w,f.toFixed(3).localeCompare(Math.abs(e).toFixed(3),void 0,{numeric:!0})>=0))break;e<0?g--:g++}}if(kw(l,u))return r;{const g=e<0?p:d,h=a[g];$e(h!=null,`Previous layout not found for panel index ${g}`);const b=h+f,v=Zn({overrideDisabledPanels:i,panelConstraints:n[g],prevSize:h,size:b});if(u[g]=v,!ft(v,b)){let w=b-v,x=e<0?p:d;for(;x>=0&&x<n.length;){const S=u[x];$e(S!=null,`Previous layout not found for panel index ${x}`);const R=S+w,E=Zn({overrideDisabledPanels:i,panelConstraints:n[x],prevSize:S,size:R});if(ft(S,E)||(w-=E-S,u[x]=E),ft(w,0))break;e>0?x--:x++}}}const y=Object.values(u).reduce((g,h)=>h+g,0);if(!ft(y,100,.1))return r;const m=Object.keys(r);return u.reduce((g,h,b)=>(g[m[b]]=h,g),{})}function Fn(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(t[n]===void 0||jt(e[n],t[n])!==0)return!1;return!0}function zn({layout:e,panelConstraints:t}){const n=Object.values(e),o=[...n],r=o.reduce((a,l)=>a+l,0);if(o.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${o.map(a=>`${a}%`).join(", ")}`);if(!ft(r,100)&&o.length>0)for(let a=0;a<t.length;a++){const l=o[a];$e(l!=null,`No layout data found for index ${a}`);const u=100/r*l;o[a]=u}let s=0;for(let a=0;a<t.length;a++){const l=n[a];$e(l!=null,`No layout data found for index ${a}`);const u=o[a];$e(u!=null,`No layout data found for index ${a}`);const d=Zn({overrideDisabledPanels:!0,panelConstraints:t[a],prevSize:l,size:u});u!=d&&(s+=u-d,o[a]=d)}if(!ft(s,0))for(let a=0;a<t.length;a++){const l=o[a];$e(l!=null,`No layout data found for index ${a}`);const u=l+s,d=Zn({overrideDisabledPanels:!0,panelConstraints:t[a],prevSize:l,size:u});if(l!==d&&(s-=d-l,o[a]=d,ft(s,0)))break}const i=Object.keys(e);return o.reduce((a,l,u)=>(a[i[u]]=l,a),{})}function Rp({groupId:e,panelId:t}){const n=()=>{const l=Hn();for(const[u,{defaultLayoutDeferred:d,derivedPanelConstraints:p,layout:f,groupSize:y,separatorToPanels:m}]of l)if(u.id===e)return{defaultLayoutDeferred:d,derivedPanelConstraints:p,group:u,groupSize:y,layout:f,separatorToPanels:m};throw Error(`Group ${e} not found`)},o=()=>{const l=n().derivedPanelConstraints.find(u=>u.panelId===t);if(l!==void 0)return l;throw Error(`Panel constraints not found for Panel ${t}`)},r=()=>{const l=n().group.panels.find(u=>u.id===t);if(l!==void 0)return l;throw Error(`Layout not found for Panel ${t}`)},s=()=>{const l=n().layout[t];if(l!==void 0)return l;throw Error(`Layout not found for Panel ${t}`)},i=({nextSize:l,panels:u,prevLayout:d,derivedPanelConstraints:p})=>{const f=s(),y=u.findIndex(h=>h.id===t),m=y===0,g=y===u.length-1;if(g&&l<f&&(m||u.slice(0,y).every((h,b)=>{const v=p[b];return(v==null?void 0:v.collapsible)&&ft(v.collapsedSize,d[v.panelId])}))){const h=u.slice(0,y).reduce((b,v)=>b+d[v.id],0);return{...d,[t]:mt(100-h)}}return Ho({delta:g?f-l:l-f,initialLayout:d,panelConstraints:p,pivotIndices:g?[y-1,y]:[y,y+1],prevLayout:d,trigger:"imperative-api"})},a=l=>{const u=s();if(l===u)return;const{defaultLayoutDeferred:d,derivedPanelConstraints:p,group:f,groupSize:y,layout:m,separatorToPanels:g}=n(),h=i({nextSize:l,panels:f.panels,prevLayout:m,derivedPanelConstraints:p}),b=zn({layout:h,panelConstraints:p});Fn(m,b)||sn(f,{defaultLayoutDeferred:d,derivedPanelConstraints:p,groupSize:y,layout:b,separatorToPanels:g})};return{collapse:()=>{const{collapsible:l,collapsedSize:u}=o(),{mutableValues:d}=r(),p=s();l&&p!==u&&(d.expandToSize=p,a(u))},expand:()=>{const{collapsible:l,collapsedSize:u,minSize:d}=o(),{mutableValues:p}=r(),f=s();if(l&&f===u){let y=p.expandToSize??d;y===0&&(y=1),a(y)}},getSize:()=>{const{group:l}=n(),u=s(),{element:d}=r(),p=l.orientation==="horizontal"?d.offsetWidth:d.offsetHeight;return{asPercentage:u,inPixels:p}},isCollapsed:()=>{const{collapsible:l,collapsedSize:u}=o(),d=s();return l&&ft(u,d)},resize:l=>{const{group:u}=n(),{element:d}=r(),p=go({group:u}),f=Oo({groupSize:p,panelElement:d,styleProp:l}),y=mt(f/p*100);a(y)}}}function Ul(e){if(e.defaultPrevented)return;const t=Hn();Ka(e,t).forEach(n=>{if(n.separator&&!n.separator.disableDoubleClick){const o=n.panels.find(r=>r.panelConstraints.defaultSize!==void 0);if(o){const r=o.panelConstraints.defaultSize,s=Rp({groupId:n.group.id,panelId:o.id});s&&r!==void 0&&(s.resize(r),e.preventDefault())}}})}function Ir(e){const t=Hn();for(const[n]of t)if(n.separators.some(o=>o.element===e))return n;throw Error("Could not find parent Group for separator element")}function kp({groupId:e}){const t=()=>{const n=Hn();for(const[o,r]of n)if(o.id===e)return{group:o,...r};throw Error(`Could not find Group with id "${e}"`)};return{getLayout(){const{defaultLayoutDeferred:n,layout:o}=t();return n?{}:o},setLayout(n){const{defaultLayoutDeferred:o,derivedPanelConstraints:r,group:s,groupSize:i,layout:a,separatorToPanels:l}=t(),u=zn({layout:n,panelConstraints:r});return o?a:(Fn(a,u)||sn(s,{defaultLayoutDeferred:o,derivedPanelConstraints:r,groupSize:i,layout:u,separatorToPanels:l}),u)}}}function On(e,t){const n=Ir(e),o=yn(n.id,!0),r=n.separators.find(d=>d.element===e);$e(r,"Matching separator not found");const s=o.separatorToPanels.get(r);$e(s,"Matching panels not found");const i=s.map(d=>n.panels.indexOf(d)),a=kp({groupId:n.id}).getLayout(),l=Ho({delta:t,initialLayout:a,panelConstraints:o.derivedPanelConstraints,pivotIndices:i,prevLayout:a,trigger:"keyboard"}),u=zn({layout:l,panelConstraints:o.derivedPanelConstraints});Fn(a,u)||sn(n,{defaultLayoutDeferred:o.defaultLayoutDeferred,derivedPanelConstraints:o.derivedPanelConstraints,groupSize:o.groupSize,layout:u,separatorToPanels:o.separatorToPanels},{isUserInteraction:!0})}function Gl(e){if(e.defaultPrevented)return;const t=e.currentTarget,n=Ir(t);if(!n.disabled)switch(e.key){case"ArrowDown":{e.preventDefault(),n.orientation==="vertical"&&On(t,5);break}case"ArrowLeft":{e.preventDefault(),n.orientation==="horizontal"&&On(t,-5);break}case"ArrowRight":{e.preventDefault(),n.orientation==="horizontal"&&On(t,5);break}case"ArrowUp":{e.preventDefault(),n.orientation==="vertical"&&On(t,-5);break}case"End":{e.preventDefault(),On(t,100);break}case"Enter":{e.preventDefault();const o=Ir(t),r=yn(o.id,!0),{derivedPanelConstraints:s,layout:i,separatorToPanels:a}=r,l=o.separators.find(f=>f.element===t);$e(l,"Matching separator not found");const u=a.get(l);$e(u,"Matching panels not found");const d=u[0],p=s.find(f=>f.panelId===d.id);if($e(p,"Panel metadata not found"),p.collapsible){const f=i[d.id],y=p.collapsedSize===f?o.mutableState.expandedPanelSizes[d.id]??p.minSize:p.collapsedSize;On(t,y-f)}break}case"F6":{e.preventDefault();const o=Ir(t).separators.map(i=>i.element),r=Array.from(o).findIndex(i=>i===e.currentTarget);$e(r!==null,"Index not found");const s=e.shiftKey?r>0?r-1:o.length-1:r+1<o.length?r+1:0;o[s].focus({preventScroll:!0});break}case"Home":{e.preventDefault(),On(t,-100);break}}}function Yl(e){if(e.defaultPrevented||e.pointerType==="mouse"&&e.button>0)return;const t=Hn(),n=Ka(e,t),o=new Map;let r=!1;n.forEach(s=>{s.separator&&(r||(r=!0,s.separator.element.focus({focusVisible:!1,preventScroll:!0})));const i=t.get(s.group);i&&o.set(s.group,i.layout)}),ro({cursorFlags:0,hitRegions:n,initialLayoutMap:o,pointerDownAtPoint:{x:e.clientX,y:e.clientY},state:"active"}),n.length&&e.preventDefault()}function Ep({document:e,event:t,hitRegions:n,initialLayoutMap:o,mountedGroups:r,pointerDownAtPoint:s,prevCursorFlags:i}){let a=0;n.forEach(u=>{const{group:d,groupSize:p}=u,{orientation:f,panels:y}=d,{disableCursor:m}=d.mutableState;let g=0;s?f==="horizontal"?g=(t.clientX-s.x)/p*100:g=(t.clientY-s.y)/p*100:f==="horizontal"?g=t.clientX<0?-100:100:g=t.clientY<0?-100:100;const h=o.get(d),b=r.get(d);if(!h||!b)return;const{defaultLayoutDeferred:v,derivedPanelConstraints:w,groupSize:x,layout:S,separatorToPanels:R}=b;if(w&&S&&R){const E=Ho({delta:g,initialLayout:h,panelConstraints:w,pivotIndices:u.panels.map(k=>y.indexOf(k)),prevLayout:S,trigger:"mouse-or-touch"});if(Fn(E,S)){if(g!==0&&!m)switch(f){case"horizontal":{a|=g<0?mp:yp;break}case"vertical":{a|=g<0?bp:vp;break}}}else sn(u.group,{defaultLayoutDeferred:v,derivedPanelConstraints:w,groupSize:x,layout:E,separatorToPanels:R})}});let l=0;t.movementX===0?l|=i&_l:l|=a&_l,t.movementY===0?l|=i&Fl:l|=a&Fl,fw(l),qa(e)}function ql(e){const t=Hn(),n=_n();switch(n.state){case"active":Ep({document:e.currentTarget,event:e,hitRegions:n.hitRegions,initialLayoutMap:n.initialLayoutMap,mountedGroups:t,prevCursorFlags:n.cursorFlags})}}function Xl(e){var o,r;if(e.defaultPrevented)return;const t=_n(),n=Hn();switch(t.state){case"active":{if(e.buttons===0){ro({cursorFlags:0,state:"inactive"}),t.hitRegions.forEach(s=>{const i=yn(s.group.id,!0);sn(s.group,i,{isUserInteraction:!0})});return}for(const s of t.hitRegions)if(s.separator){const{element:i}=s.separator;(o=i.hasPointerCapture)!=null&&o.call(i,e.pointerId)||((r=i.setPointerCapture)==null||r.call(i,e.pointerId))}Ep({document:e.currentTarget,event:e,hitRegions:t.hitRegions,initialLayoutMap:t.initialLayoutMap,mountedGroups:n,pointerDownAtPoint:t.pointerDownAtPoint,prevCursorFlags:t.cursorFlags});break}default:{const s=Ka(e,n);s.length===0?t.state!=="inactive"&&ro({cursorFlags:0,state:"inactive"}):ro({cursorFlags:0,hitRegions:s,state:"hover"}),qa(e.currentTarget);break}}}function Kl(e){if(e.relatedTarget instanceof HTMLIFrameElement)switch(_n().state){case"hover":ro({cursorFlags:0,state:"inactive"})}}function Zl(e){e.defaultPrevented||e.pointerType==="mouse"&&e.button>0||wp(e.currentTarget)&&e.preventDefault()}function Ql(e){let t=0,n=0;const o={};for(const s of e)if(s.defaultSize!==void 0){t++;const i=mt(s.defaultSize);n+=i,o[s.panelId]=i}else o[s.panelId]=void 0;const r=e.length-t;if(r!==0){const s=mt((100-n)/r);for(const i of e)i.defaultSize===void 0&&(o[i.panelId]=s)}return o}function Ew(e,t,n){if(!n[0])return;const o=e.panels.find(l=>l.element===t);if(!o||!o.onResize)return;const r=go({group:e}),s=e.orientation==="horizontal"?o.element.offsetWidth:o.element.offsetHeight,i=o.mutableValues.prevSize,a={asPercentage:mt(s/r*100),inPixels:s};o.mutableValues.prevSize=a,o.onResize(a,o.id,i)}function Cw(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Pw({group:e,nextGroupSize:t,prevGroupSize:n,prevLayout:o}){if(n<=0||t<=0||n===t)return o;let r=0,s=0,i=!1;const a=new Map,l=[];for(const p of e.panels){const f=o[p.id]??0;switch(p.panelConstraints.groupResizeBehavior){case"preserve-pixel-size":{i=!0;const y=f/100*n,m=mt(y/t*100);a.set(p.id,m),r+=m;break}case"preserve-relative-size":default:{l.push(p.id),s+=f;break}}}if(!i||l.length===0)return o;const u=100-r,d={...o};if(a.forEach((p,f)=>{d[f]=p}),s>0)for(const p of l){const f=o[p]??0;d[p]=mt(f/s*u)}else{const p=mt(u/l.length);for(const f of l)d[f]=p}return d}function Mw(e,t){const n=e.map(r=>r.id),o=Object.keys(t);if(n.length!==o.length)return!1;for(const r of n)if(!o.includes(r))return!1;return!0}const qn=new Map;function Tw(e){let t=!0;$e(e.element.ownerDocument.defaultView,"Cannot register an unmounted Group");const n=e.element.ownerDocument.defaultView.ResizeObserver,o=new Set,r=new Set,s=new n(m=>{for(const g of m){const{borderBoxSize:h,target:b}=g;if(b===e.element){if(t){const v=go({group:e});if(v===0)return;const w=yn(e.id);if(!w)return;const x=Ti(e),S=w.defaultLayoutDeferred?Ql(x):w.layout,R=Pw({group:e,nextGroupSize:v,prevGroupSize:w.groupSize,prevLayout:S}),E=zn({layout:R,panelConstraints:x});if(!w.defaultLayoutDeferred&&Fn(w.layout,E)&&Cw(w.derivedPanelConstraints,x)&&w.groupSize===v)return;sn(e,{defaultLayoutDeferred:!1,derivedPanelConstraints:x,groupSize:v,layout:E,separatorToPanels:w.separatorToPanels})}}else Ew(e,b,h)}});s.observe(e.element),e.panels.forEach(m=>{$e(!o.has(m.id),`Panel ids must be unique; id "${m.id}" was used more than once`),o.add(m.id),m.onResize&&s.observe(m.element)});const i=go({group:e}),a=Ti(e),l=e.panels.map(({id:m})=>m).join(",");let u=e.mutableState.defaultLayout;u&&(Mw(e.panels,u)||(u=void 0));const d=e.mutableState.layouts[l]??u??Ql(a),p=zn({layout:d,panelConstraints:a}),f=e.element.ownerDocument;qn.set(f,(qn.get(f)??0)+1);const y=new Map;return hp(e).forEach(m=>{m.separator&&y.set(m.separator,m.panels)}),sn(e,{defaultLayoutDeferred:i===0,derivedPanelConstraints:a,groupSize:i,layout:p,separatorToPanels:y}),e.separators.forEach(m=>{$e(!r.has(m.id),`Separator ids must be unique; id "${m.id}" was used more than once`),r.add(m.id),m.element.addEventListener("keydown",Gl)}),qn.get(f)===1&&(f.addEventListener("contextmenu",Hl,!0),f.addEventListener("dblclick",Ul,!0),f.addEventListener("pointerdown",Yl,!0),f.addEventListener("pointerleave",ql),f.addEventListener("pointermove",Xl),f.addEventListener("pointerout",Kl),f.addEventListener("pointerup",Zl,!0)),function(){t=!1,qn.set(f,Math.max(0,(qn.get(f)??0)-1)),gw(e),e.separators.forEach(m=>{m.element.removeEventListener("keydown",Gl)}),qn.get(f)||(f.removeEventListener("contextmenu",Hl,!0),f.removeEventListener("dblclick",Ul,!0),f.removeEventListener("pointerdown",Yl,!0),f.removeEventListener("pointerleave",ql),f.removeEventListener("pointermove",Xl),f.removeEventListener("pointerout",Kl),f.removeEventListener("pointerup",Zl,!0)),s.disconnect()}}function Iw(){const[e,t]=c.useState({}),n=c.useCallback(()=>t({}),[]);return[e,n]}function Za(e){const t=c.useId();return`${e??t}`}const jn=typeof window<"u"?c.useLayoutEffect:c.useEffect;function No(e){const t=c.useRef(e);return jn(()=>{t.current=e},[e]),c.useCallback((...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)},[t])}function Qa(...e){return No(t=>{e.forEach(n=>{if(n)switch(typeof n){case"function":{n(t);break}case"object":{n.current=t;break}}})})}function Ja(e){const t=c.useRef({...e});return jn(()=>{for(const n in e)t.current[n]=e[n]},[e]),t.current}const Cp=c.createContext(null);function Ow(e,t){const n=c.useRef({getLayout:()=>({}),setLayout:pw});c.useImperativeHandle(t,()=>n.current,[]),jn(()=>{Object.assign(n.current,kp({groupId:e}))})}function Aw({children:e,className:t,defaultLayout:n,disableCursor:o,disabled:r,elementRef:s,groupRef:i,id:a,onLayoutChange:l,onLayoutChanged:u,orientation:d="horizontal",resizeTargetMinimumSize:p={coarse:20,fine:10},style:f,...y}){const m=c.useRef({onLayoutChange:{},onLayoutChanged:{}}),g=No(O=>{Fn(m.current.onLayoutChange,O)||(m.current.onLayoutChange=O,l==null||l(O))}),h=No((O,I)=>{Fn(m.current.onLayoutChanged,O)||(m.current.onLayoutChanged=O,u==null||u(O,{isUserInteraction:I}))}),b=Za(a),v=c.useRef(null),[w,x]=Iw(),S=c.useRef({lastExpandedPanelSizes:{},layouts:{},panels:[],resizeTargetMinimumSize:p,separators:[]}),R=Qa(v,s);Ow(b,i);const E=No((O,I)=>{const D=_n(),N=$l(O),P=yn(O);if(P){let z=!1;switch(D.state){case"active":{z=D.hitRegions.some(L=>L.group===N);break}}return{flexGrow:P.layout[I]??1,pointerEvents:z?"none":void 0}}if(n!=null&&n[I])return{flexGrow:n==null?void 0:n[I]}}),k=Ja({defaultLayout:n,disableCursor:o}),M=c.useMemo(()=>({get disableCursor(){return!!k.disableCursor},getPanelStyles:E,id:b,orientation:d,registerPanel:O=>{const I=S.current;return I.panels=Ii(d,[...I.panels,O]),x(),()=>{I.panels=I.panels.filter(D=>D!==O),x()}},registerSeparator:O=>{const I=S.current;return I.separators=Ii(d,[...I.separators,O]),x(),()=>{I.separators=I.separators.filter(D=>D!==O),x()}},updatePanelProps:(O,{disabled:I})=>{const D=S.current.panels.find(z=>z.id===O);D&&(D.panelConstraints.disabled=I);const N=$l(b),P=yn(b);N&&P&&sn(N,{...P,derivedPanelConstraints:Ti(N)})},updateSeparatorProps:(O,{disabled:I,disableDoubleClick:D})=>{const N=S.current.separators.find(P=>P.id===O);N&&(N.disabled=I,N.disableDoubleClick=D)}}),[E,b,x,d,k]),C=c.useRef(null);return jn(()=>{const O=v.current;if(O===null)return;const I=S.current;let D;if(k.defaultLayout!==void 0&&Object.keys(k.defaultLayout).length===I.panels.length){D={};for(const T of I.panels){const _=k.defaultLayout[T.id];_!==void 0&&(D[T.id]=_)}}const N={disabled:!!r,element:O,id:b,mutableState:{defaultLayout:D,disableCursor:!!k.disableCursor,expandedPanelSizes:S.current.lastExpandedPanelSizes,layouts:S.current.layouts},orientation:d,panels:I.panels,resizeTargetMinimumSize:I.resizeTargetMinimumSize,separators:I.separators};C.current=N;const P=Tw(N),{defaultLayoutDeferred:z,derivedPanelConstraints:L,layout:A}=yn(N.id,!0);!z&&L.length>0&&(g(A),h(A,!1));const F=Xa(b,T=>{const{defaultLayoutDeferred:_,derivedPanelConstraints:j,layout:$}=T.next;if(_||j.length===0)return;const U=N.panels.map(({id:V})=>V).join(",");N.mutableState.layouts[U]=$,j.forEach(V=>{if(V.collapsible){const{layout:Q}=T.prev??{};if(Q){const H=ft(V.collapsedSize,$[V.panelId]),G=ft(V.collapsedSize,Q[V.panelId]);H&&!G&&(N.mutableState.expandedPanelSizes[V.panelId]=Q[V.panelId])}}});const Y=_n().state!=="active";g($),Y&&h($,T.isUserInteraction)});return()=>{C.current=null,P(),F()}},[r,b,h,g,d,w,k]),c.useEffect(()=>{const O=C.current;O&&(O.mutableState.defaultLayout=n,O.mutableState.disableCursor=!!o)}),K.jsx(Cp.Provider,{value:M,children:K.jsx("div",{...y,className:t,"data-group":!0,"data-testid":b,id:b,ref:R,style:{height:"100%",width:"100%",overflow:"hidden",...f,display:"flex",flexDirection:d==="horizontal"?"row":"column",flexWrap:"nowrap",touchAction:d==="horizontal"?"pan-y":"pan-x"},children:e})})}Aw.displayName="Group";function ec(){const e=c.useContext(Cp);return $e(e,"Group Context not found; did you render a Panel or Separator outside of a Group?"),e}function Dw(e,t){const{id:n}=ec(),o=c.useRef({collapse:Xs,expand:Xs,getSize:()=>({asPercentage:0,inPixels:0}),isCollapsed:()=>!1,resize:Xs});c.useImperativeHandle(t,()=>o.current,[]),jn(()=>{Object.assign(o.current,Rp({groupId:n,panelId:e}))})}function Nw({children:e,className:t,collapsedSize:n="0%",collapsible:o=!1,defaultSize:r,disabled:s,elementRef:i,groupResizeBehavior:a="preserve-relative-size",id:l,maxSize:u="100%",minSize:d="0%",onResize:p,panelRef:f,style:y,...m}){const g=!!l,h=Za(l),b=Ja({disabled:s}),v=c.useRef(null),w=Qa(v,i),{getPanelStyles:x,id:S,orientation:R,registerPanel:E,updatePanelProps:k}=ec(),M=p!==null,C=No((N,P,z)=>{p==null||p(N,l,z)});jn(()=>{const N=v.current;if(N!==null){const P={element:N,id:h,idIsStable:g,mutableValues:{expandToSize:void 0,prevSize:void 0},onResize:M?C:void 0,panelConstraints:{groupResizeBehavior:a,collapsedSize:n,collapsible:o,defaultSize:r,disabled:b.disabled,maxSize:u,minSize:d}};return E(P)}},[a,n,o,r,M,h,g,u,d,C,E,b]),c.useEffect(()=>{k(h,{disabled:s})},[s,h,k]),Dw(h,f);const O=()=>{const N=x(S,h);if(N)return JSON.stringify(N)},I=c.useSyncExternalStore(N=>Xa(S,N),O,O);let D;return I?D=JSON.parse(I):r!==void 0?D={flexGrow:void 0,flexShrink:void 0,flexBasis:r}:D={flexGrow:1},K.jsx("div",{...m,"data-disabled":s||void 0,"data-panel":!0,"data-testid":h,id:h,ref:w,style:{...Lw,display:"flex",flexBasis:0,flexShrink:1,overflow:"visible",...D},children:K.jsx("div",{className:t,style:{maxHeight:"100%",maxWidth:"100%",flexGrow:1,overflow:"auto",...y,touchAction:R==="horizontal"?"pan-y":"pan-x"},children:e})})}Nw.displayName="Panel";const Lw={minHeight:0,maxHeight:"100%",height:"auto",minWidth:0,maxWidth:"100%",width:"auto",border:"none",borderWidth:0,padding:0,margin:0};function _w({layout:e,panelConstraints:t,panelId:n,panelIndex:o}){let r,s;const i=e[n],a=t.find(l=>l.panelId===n);if(a){const l=a.maxSize,u=a.collapsible?a.collapsedSize:a.minSize,d=[o,o+1];s=zn({layout:Ho({delta:u-i,initialLayout:e,panelConstraints:t,pivotIndices:d,prevLayout:e}),panelConstraints:t})[n],r=zn({layout:Ho({delta:l-i,initialLayout:e,panelConstraints:t,pivotIndices:d,prevLayout:e}),panelConstraints:t})[n]}return{valueControls:n,valueMax:r,valueMin:s,valueNow:i}}function Fw({children:e,className:t,disabled:n,disableDoubleClick:o,elementRef:r,id:s,style:i,...a}){const l=Za(s),u=Ja({disabled:n,disableDoubleClick:o}),[d,p]=c.useState({}),[f,y]=c.useState("inactive"),[m,g]=c.useState(!1),h=c.useRef(null),b=Qa(h,r),{disableCursor:v,id:w,orientation:x,registerSeparator:S,updateSeparatorProps:R}=ec(),E=x==="horizontal"?"vertical":"horizontal";jn(()=>{const C=h.current;if(C!==null){const O={disabled:u.disabled,disableDoubleClick:u.disableDoubleClick,element:C,id:l},I=S(O),D=dw(P=>{y(P.next.state!=="inactive"&&P.next.hitRegions.some(z=>z.separator===O)?P.next.state:"inactive")}),N=Xa(w,P=>{const{derivedPanelConstraints:z,layout:L,separatorToPanels:A}=P.next,F=A.get(O);if(F){const T=F[0],_=F.indexOf(T);p(_w({layout:L,panelConstraints:z,panelId:T.id,panelIndex:_}))}});return()=>{D(),N(),I()}}},[w,l,S,u]),c.useEffect(()=>{R(l,{disabled:n,disableDoubleClick:o})},[n,o,l,R]);let k;n&&!v&&(k="not-allowed");let M;if(n)M="disabled";else switch(f){case"active":{M="active";break}default:m?M="focus":M=f}return K.jsx("div",{...a,"aria-controls":d.valueControls,"aria-disabled":n||void 0,"aria-orientation":E,"aria-valuemax":d.valueMax,"aria-valuemin":d.valueMin,"aria-valuenow":d.valueNow,children:e,className:t,"data-separator":M,"data-testid":l,id:l,onBlur:()=>g(!1),onFocus:()=>g(!0),ref:b,role:"separator",style:{flexBasis:"auto",cursor:k,...i,flexGrow:0,flexShrink:0,touchAction:"none"},tabIndex:n?void 0:0})}Fw.displayName="Separator";const Pp=c.createContext(void 0);function zw(){const e=c.useContext(Pp);if(e===void 0)throw new Error(Ne(63));return e}const Mp={...bs,checked(e){return e?{"data-checked":""}:{"data-unchecked":""}}},$E=c.forwardRef(function(t,n){const{checked:o,className:r,defaultChecked:s,"aria-labelledby":i,form:a,id:l,inputRef:u,name:d,nativeButton:p=!1,onCheckedChange:f,readOnly:y=!1,required:m=!1,disabled:g=!1,render:h,uncheckedValue:b,value:v,style:w,...x}=t,{clearErrors:S}=ws(),{state:R,setTouched:E,setDirty:k,validityData:M,setFilled:C,setFocused:O,validationMode:I,disabled:D,name:N,validation:P}=vo(),{labelId:z}=Yo(),L=D||g,A=N??d,F=c.useRef(null),T=Dt(F,u,P.inputRef),_=c.useRef(null),j=rt(),$=xs({id:l,implicit:!1,controlRef:_}),U=p?void 0:$,[Y,V]=Lt({controlled:o,default:!!s,name:"Switch",state:"checked"});vs(_,j,Y,void 0,!L,d),re(()=>{F.current&&C(F.current.checked)},[C]),ys(Y,()=>{S(A),k(Y!==M.initialValue),C(Y),P.change(Y)});const{getButtonProps:Q,buttonRef:H}=Tt({disabled:L,native:p}),G=Zf(i,z,F,!p,U),ue={id:p?$:j,role:"switch","aria-checked":Y,"aria-readonly":y||void 0,"aria-required":m||void 0,"aria-labelledby":G,onFocus(){L||O(!0)},onBlur(){const ee=F.current;!ee||L||(E(!0),O(!1),I==="onBlur"&&P.commit(ee.checked))},onClick(ee){if(y||L)return;ee.preventDefault();const ie=F.current;ie&&Qn(ie,ee)}},ne={...P.getValidationProps(L),checked:Y,disabled:L,form:a,id:U,name:A,required:m,style:A?ta:Bo,tabIndex:-1,type:"checkbox","aria-hidden":!0,ref:T,onChange(ee){if(ee.nativeEvent.defaultPrevented)return;if(y){ee.preventDefault();return}const ie=ee.currentTarget.checked,xe=Re(Rt,ee.nativeEvent);f==null||f(ie,xe),!xe.isCanceled&&V(ie)},onClick(ee){ee.stopPropagation()},onFocus(){var ee;(ee=_.current)==null||ee.focus()},...v!==void 0?{value:v}:We},te=c.useMemo(()=>({...R,checked:Y,disabled:L,readOnly:y,required:m}),[R,Y,L,y,m]),J=ke("span",t,{state:te,ref:[n,_,H],props:[ue,x,Q,ee=>P.getValidationProps(L,ee)],stateAttributesMapping:Mp});return K.jsxs(Pp.Provider,{value:te,children:[J,!Y&&A&&b!==void 0&&K.jsx("input",{type:"hidden",form:a,name:A,value:b,disabled:L}),K.jsx("input",{...ne,suppressHydrationWarning:!0})]})}),HE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,a=zw();return ke("span",t,{state:a,ref:n,stateAttributesMapping:Mp,props:i})});export{PR as $,tk as A,rk as B,Jw as C,yS as D,RS as E,LS as F,$S as G,XS as H,FS as I,hS as J,eR as K,oR as L,yR as M,WR as N,Kw as O,DR as P,$E as Q,zR as R,HR as S,sk as T,HE as U,kS as V,ES as W,mk as X,pk as Y,vk as Z,fk as _,_S as a,Hk as a$,aR as a0,sS as a1,uS as a2,jS as a3,Qw as a4,gS as a5,gk as a6,pS as a7,IS as a8,Zw as a9,Ak as aA,F1 as aB,Nk as aC,Mk as aD,Ek as aE,Lk as aF,Ck as aG,Tk as aH,Ik as aI,Dk as aJ,Rk as aK,Ok as aL,kk as aM,US as aN,XR as aO,yk as aP,Wk as aQ,Gk as aR,Uk as aS,_k as aT,zk as aU,Fk as aV,jk as aW,Xk as aX,Vk as aY,Bk as aZ,$k as a_,xR as aa,Gw as ab,nR as ac,hk as ad,LR as ae,CS as af,Uw as ag,AR as ah,NS as ai,GS as aj,lk as ak,sR as al,cR as am,ck as an,YR as ao,uR as ap,aS as aq,iR as ar,Hw as as,Sk as at,Bm as au,xk as av,wk as aw,vR as ax,ZS as ay,Pk as az,ek as b,dS as b$,qk as b0,Yk as b1,eS as b2,tE as b3,Jk as b4,nE as b5,Qk as b6,eE as b7,Zk as b8,Kk as b9,nk as bA,jR as bB,rS as bC,AS as bD,bE,vE as bF,xE as bG,wE as bH,OR as bI,MR as bJ,SE as bK,RE as bL,CE as bM,kE as bN,EE as bO,IE as bP,OE as bQ,PE as bR,ME as bS,TE as bT,AE as bU,DE as bV,NE as bW,LE as bX,KS as bY,mR as bZ,YS as b_,Rv as ba,uk as bb,vS as bc,St as bd,oE as be,Pr as bf,Ss as bg,sE as bh,iE as bi,aE as bj,cE as bk,nf as bl,IR as bm,OS as bn,dE as bo,lE as bp,uE as bq,QS as br,TR as bs,pE as bt,mE as bu,fE as bv,yE as bw,hE as bx,gE as by,NR as bz,FR as c,iS as c0,xS as c1,FE as c2,_E as c3,nS as c4,jw as c5,dk as c6,fS as c7,zE as c8,VE as c9,Fw as cA,Nw as cB,Aw as cC,ik as cD,hR as cE,bS as cF,qR as cG,rR as cH,lS as ca,bR as cb,qS as cc,TS as cd,MS as ce,HS as cf,KR as cg,VS as ch,cS as ci,Yw as cj,gR as ck,_R as cl,$R as cm,fR as cn,Bw as co,JS as cp,DS as cq,Ww as cr,Xw as cs,BS as ct,GR as cu,RR as cv,SS as cw,ER as cx,CR as cy,SR as cz,WS as d,PS as e,wS as f,BR as g,ok as h,JR as i,lR as j,bk as k,zS as l,ak as m,dR as n,VR as o,pR as p,mS as q,tR as r,qw as s,kR as t,ZR as u,oS as v,tS as w,wR as x,UR as y,QR as z};
|
|
802
|
+
`)},$x=0,Wn=[];function Hx(e){var t=c.useRef([]),n=c.useRef([0,0]),o=c.useRef(),r=c.useState($x++)[0],s=c.useState(Df)[0],i=c.useRef(e);c.useEffect(function(){i.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var g=cx([e.lockRef.current],(e.shards||[]).map(Rl),!0).filter(Boolean);return g.forEach(function(h){return h.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),g.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var a=c.useCallback(function(g,h){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!i.current.allowPinchZoom;var b=mr(g),v=n.current,w="deltaX"in g?g.deltaX:v[0]-b[0],x="deltaY"in g?g.deltaY:v[1]-b[1],S,R=g.target,E=Math.abs(w)>Math.abs(x)?"h":"v";if("touches"in g&&E==="h"&&R.type==="range")return!1;var k=window.getSelection(),M=k&&k.anchorNode,C=M?M===R||M.contains(R):!1;if(C)return!1;var O=wl(E,R);if(!O)return!0;if(O?S=E:(S=E==="v"?"h":"v",O=wl(E,R)),!O)return!1;if(!o.current&&"changedTouches"in g&&(w||x)&&(o.current=S),!S)return!0;var I=o.current||S;return Fx(I,h,g,I==="h"?w:x)},[]),l=c.useCallback(function(g){var h=g;if(!(!Wn.length||Wn[Wn.length-1]!==s)){var b="deltaY"in h?Sl(h):mr(h),v=t.current.filter(function(S){return S.name===h.type&&(S.target===h.target||h.target===S.shadowParent)&&zx(S.delta,b)})[0];if(v&&v.should){h.cancelable&&h.preventDefault();return}if(!v){var w=(i.current.shards||[]).map(Rl).filter(Boolean).filter(function(S){return S.contains(h.target)}),x=w.length>0?a(h,w[0]):!i.current.noIsolation;x&&h.cancelable&&h.preventDefault()}}},[]),u=c.useCallback(function(g,h,b,v){var w={name:g,delta:h,target:b,should:v,shadowParent:jx(b)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(x){return x!==w})},1)},[]),d=c.useCallback(function(g){n.current=mr(g),o.current=void 0},[]),p=c.useCallback(function(g){u(g.type,Sl(g),g.target,a(g,e.lockRef.current))},[]),f=c.useCallback(function(g){u(g.type,mr(g),g.target,a(g,e.lockRef.current))},[]);c.useEffect(function(){return Wn.push(s),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Bn),document.addEventListener("touchmove",l,Bn),document.addEventListener("touchstart",d,Bn),function(){Wn=Wn.filter(function(g){return g!==s}),document.removeEventListener("wheel",l,Bn),document.removeEventListener("touchmove",l,Bn),document.removeEventListener("touchstart",d,Bn)}},[]);var y=e.removeScrollBar,m=e.inert;return c.createElement(c.Fragment,null,m?c.createElement(s,{styles:Vx(r)}):null,y?c.createElement(Ix,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function jx(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Bx=yx(Af,Hx);var Ff=c.forwardRef(function(e,t){return c.createElement(Rs,Bt({},e,{ref:t,sideCar:Bx}))});Ff.classNames=Rs.classNames;var Wx=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Un=new WeakMap,yr=new WeakMap,br={},qs=0,zf=function(e){return e&&(e.host||zf(e.parentNode))},Ux=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=zf(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Gx=function(e,t,n,o){var r=Ux(t,Array.isArray(e)?e:[e]);br[n]||(br[n]=new WeakMap);var s=br[n],i=[],a=new Set,l=new Set(r),u=function(p){!p||a.has(p)||(a.add(p),u(p.parentNode))};r.forEach(u);var d=function(p){!p||l.has(p)||Array.prototype.forEach.call(p.children,function(f){if(a.has(f))d(f);else try{var y=f.getAttribute(o),m=y!==null&&y!=="false",g=(Un.get(f)||0)+1,h=(s.get(f)||0)+1;Un.set(f,g),s.set(f,h),i.push(f),g===1&&m&&yr.set(f,!0),h===1&&f.setAttribute(n,"true"),m||f.setAttribute(o,"true")}catch(b){console.error("aria-hidden: cannot operate on ",f,b)}})};return d(t),a.clear(),qs++,function(){i.forEach(function(p){var f=Un.get(p)-1,y=s.get(p)-1;Un.set(p,f),s.set(p,y),f||(yr.has(p)||p.removeAttribute(o),yr.delete(p)),y||p.removeAttribute(n)}),qs--,qs||(Un=new WeakMap,Un=new WeakMap,yr=new WeakMap,br={})}},Yx=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=Wx(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live], script"))),Gx(o,r,n,"aria-hidden")):function(){return null}},qx=Object.defineProperty,un=(e,t)=>qx(e,"name",{value:t,configurable:!0}),ja="Dialog",[Vf,rE]=of(ja),[Xx,$n]=Vf(ja),sE=un(e=>{const{__scopeDialog:t,children:n,open:o,defaultOpen:r,onOpenChange:s,modal:i=!0}=e,a=c.useRef(null),l=c.useRef(null),[u,d]=af({prop:o,defaultProp:r??!1,onChange:s,caller:ja}),[p,f]=c.useState(0),[y,m]=c.useState(0);return K.jsx(Xx,{scope:t,triggerRef:a,contentRef:l,contentId:Pr(),titleId:Pr(),descriptionId:Pr(),titlePresent:p>0,descriptionPresent:y>0,setTitleCount:f,setDescriptionCount:m,open:u,onOpenChange:d,onOpenToggle:c.useCallback(()=>d(g=>!g),[d]),modal:i,children:n})},"Dialog"),$f="DialogPortal",[Kx,Hf]=Vf($f,{forceMount:void 0}),iE=un(e=>{const{__scopeDialog:t,forceMount:n,children:o,container:r}=e,s=$n($f,t);return K.jsx(Kx,{scope:t,forceMount:n,children:c.Children.map(o,i=>K.jsx(Va,{present:n||s.open,children:K.jsx(rx,{asChild:!0,container:r,children:i})}))})},"DialogPortal"),Ci="DialogOverlay",aE=c.forwardRef(un(function(t,n){const o=Hf(Ci,t.__scopeDialog),{forceMount:r=o.forceMount,...s}=t,i=$n(Ci,t.__scopeDialog);return i.modal?K.jsx(Va,{present:r||i.open,children:K.jsx(Qx,{...s,ref:n})}):null},"DialogOverlay")),Zx=_a("DialogOverlay.RemoveScroll"),Qx=c.forwardRef(un(function(t,n){const{__scopeDialog:o,...r}=t,s=$n(Ci,o),i=yf(),a=wo(n,i);return K.jsx(Ff,{as:Zx,allowPinchZoom:!0,shards:[s.contentRef],children:K.jsx(Ss.div,{"data-state":Ba(s.open),...r,ref:a,style:{pointerEvents:"auto",...r.style}})})},"DialogOverlayImpl")),$o="DialogContent",cE=c.forwardRef(un(function(t,n){const o=Hf($o,t.__scopeDialog),{forceMount:r=o.forceMount,...s}=t,i=$n($o,t.__scopeDialog);return K.jsx(Va,{present:r||i.open,children:i.modal?K.jsx(Jx,{...s,ref:n}):K.jsx(e2,{...s,ref:n})})},"DialogContent")),Jx=c.forwardRef(un(function(t,n){const o=$n($o,t.__scopeDialog),r=c.useRef(null),s=wo(n,o.contentRef,r);return c.useEffect(()=>{const i=r.current;if(i)return Yx(i)},[]),K.jsx(jf,{...t,ref:s,trapFocus:o.open,disableOutsidePointerEvents:o.open,onCloseAutoFocus:Dn(t.onCloseAutoFocus,i=>{var a;i.preventDefault(),(a=o.triggerRef.current)==null||a.focus()}),onPointerDownOutside:Dn(t.onPointerDownOutside,i=>{const a=i.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0;(a.button===2||l)&&i.preventDefault()}),onFocusOutside:Dn(t.onFocusOutside,i=>i.preventDefault())})},"DialogContentModal")),e2=c.forwardRef(un(function(t,n){const o=$n($o,t.__scopeDialog),r=c.useRef(!1),s=c.useRef(!1);return K.jsx(jf,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a,l;(a=t.onCloseAutoFocus)==null||a.call(t,i),i.defaultPrevented||(r.current||(l=o.triggerRef.current)==null||l.focus(),i.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:i=>{var u,d;(u=t.onInteractOutside)==null||u.call(t,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const a=i.target;((d=o.triggerRef.current)==null?void 0:d.contains(a))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})},"DialogContentNonModal")),jf=c.forwardRef(un(function(t,n){const{__scopeDialog:o,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:i,...a}=t,l=$n($o,o);return Ha(),K.jsx(K.Fragment,{children:K.jsx(tx,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:i,children:K.jsx(Qv,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionPresent?l.descriptionId:void 0,"aria-labelledby":l.titlePresent?l.titleId:void 0,"data-state":Ba(l.open),...a,ref:n,deferPointerDownOutside:!0,onDismiss:()=>l.onOpenChange(!1)})})})},"DialogContentImpl"));function Ba(e){return e?"open":"closed"}un(Ba,"getState");function t2(e){const{open:t,defaultOpen:n,onOpenChange:o,disabled:r}=e,[s,i]=Lt({controlled:t,default:n,name:"Collapsible",state:"open"}),{mounted:a,setMounted:l,transitionStatus:u}=ln(s,!0,!0),d=rt(),[p,f]=c.useState(),y=p===null?void 0:p??d,m=le(g=>{const h=!s,b=Re(Rn,g.nativeEvent);o(h,b),!b.isCanceled&&i(h)});return c.useMemo(()=>({defaultPanelId:d,disabled:r,handleTrigger:m,mounted:a,open:s,panelId:y,setMounted:l,setOpen:i,setPanelIdState:f,transitionStatus:u}),[d,r,m,a,s,y,l,i,f,u])}const Bf=c.createContext(void 0);function Wf(){const e=c.useContext(Bf);if(e===void 0)throw new Error(Ne(15));return e}let Wa=(function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=Nr.startingStyle]="startingStyle",e[e.endingStyle=Nr.endingStyle]="endingStyle",e})({}),n2=(function(e){return e.panelOpen="data-panel-open",e})({});const o2={[Wa.open]:""},r2={[Wa.closed]:""},s2={open(e){return e?{[n2.panelOpen]:""}:null}},i2={open(e){return e?o2:r2}},Uf={...i2,...Gt},lE=c.forwardRef(function(t,n){const{render:o,className:r,defaultOpen:s=!1,disabled:i=!1,onOpenChange:a,open:l,style:u,...d}=t,p=le(a),f=t2({open:l,defaultOpen:s,onOpenChange:p,disabled:i}),y=c.useMemo(()=>({open:f.open,disabled:f.disabled,transitionStatus:f.transitionStatus}),[f.open,f.disabled,f.transitionStatus]),m=c.useMemo(()=>({...f,onOpenChange:p,state:y}),[f,p,y]),g=ke("div",t,{state:y,ref:n,props:d,stateAttributesMapping:Uf});return K.jsx(Bf.Provider,{value:m,children:g})}),a2={...s2,...Gt},uE=c.forwardRef(function(t,n){const{panelId:o,open:r,handleTrigger:s,state:i,disabled:a}=Wf(),{className:l,disabled:u=a,render:d,nativeButton:p=!0,style:f,...y}=t,{getButtonProps:m,buttonRef:g}=Tt({disabled:u,focusableWhenDisabled:!0,native:p});return ke("button",t,{state:i,ref:[n,g],props:[{"aria-controls":r?o:void 0,"aria-expanded":r,onClick:s},y,m],stateAttributesMapping:a2})}),Po={height:void 0,width:void 0};function c2(e){const{externalRef:t,hiddenUntilFound:n,id:o,keepMounted:r,mounted:s,onOpenChange:i,open:a,setMounted:l,setOpen:u,transitionStatus:d}=e,p=c.useRef(null),f=c.useRef(null),[y,m]=c.useState(Po),g=c.useRef(Po),h=c.useRef(!1),b=c.useRef(a),v=c.useRef(!1),[w,x]=c.useState(!1),S=c.useRef(null),R=Dt(t,p),E=Ze(a),k=Ki(p),M=!a&&!s,C=w?"idle":d,O=a&&(b.current||v.current),I=!a&&s&&f.current==="css-animation"&&y.height===void 0&&y.width===void 0?g.current:y,D=n&&M&&f.current!=="css-animation",N=le((F,T=!0)=>{T&&(g.current=F),m(F)}),P=le(()=>{var F;(F=S.current)==null||F.call(S),S.current=null}),z=le(F=>{P(),S.current=()=>{S.current=null,F()}}),L=le(()=>{a&&s&&f.current==="css-animation"&&(v.current=!0)});re(()=>{!w||d==="starting"||x(!1)},[w,d]),c.useEffect(()=>()=>{L(),P()},[L,P]),re(()=>{const F=p.current;if(!F)return;!a&&S.current&&P();const T=l2(F,O);if(f.current=T,a&&d==="idle"&&b.current&&T==="css-animation"){g.current=Gn(F);return}if(a&&d==="starting"){const $=h.current;if(h.current=!1,T==="none"){N(Gn(F)),x(!0);return}if(T==="css-transition"){const V=u2(F);if(N(Gn(F)),!$)return V;const Q=vr(F,"transition-duration","0s");return z(Q),x(!0),V}N(Gn(F));const U=vr(F,"animation-name","none");if(!$){U();return}const Y=vr(F,"animation-duration","0s");U(),z(Y),x(!0);return}if(!a&&s&&(d==="idle"||d==="starting")){if(b.current=!1,v.current=!1,T==="none"){N(Po,!1),l(!1);return}N(Gn(F));return}if(d!=="ending")return;if(T==="none"){l(!1);return}const _=Gn(F);if(!(_.height>0||_.width>0)){l(!1);return}N(_),T==="css-animation"&&vr(F,"animation-name","none")()},[s,a,P,N,l,z,O,d]),kt({enabled:a&&s&&C==="idle",open:!0,ref:p,onComplete(){a&&N(Po,!1)}}),c.useEffect(()=>{if(a||!s||C!=="ending"||!p.current)return;const T=new AbortController;let _=-1;function j(){E.current||(l(!1),N(Po,!1))}return _=vt.request(()=>{k(j,T.signal)}),()=>{vt.cancel(_),T.abort()}},[E,s,a,C,k,N,l]),re(()=>{const F=p.current;!F||!n||!M||F.setAttribute("hidden","until-found")},[M,n]),c.useEffect(function(){const T=p.current;if(!T)return;function _(j){const $=Re(Rt,j);i(!0,$),!$.isCanceled&&(h.current=!0,u(!0))}return Me(T,"beforematch",_)},[i,u]);const A=r||n||s||a;return{height:I.height,props:{...D?{[Wa.startingStyle]:""}:void 0,hidden:M,id:o},ref:R,shouldPreventOpenAnimation:O,shouldRender:A,transitionStatus:C,width:I.width}}function Gn(e){return{height:e.scrollHeight,width:e.scrollWidth}}function l2(e,t){const n=He(e).getComputedStyle(e),o=(n.animationName.split(",").map(s=>s.trim()).some(s=>s!==""&&s!=="none")||t)&&kl(n.animationDuration),r=kl(n.transitionDuration);return o&&r||r?"css-transition":o?"css-animation":"none"}function kl(e){return e.split(",").map(t=>t.trim()).some(t=>t!==""&&Number.parseFloat(t)>0)}function vr(e,t,n){const o=e.style.getPropertyValue(t),r=e.style.getPropertyPriority(t);return e.style.setProperty(t,n),()=>{if(o===""){e.style.removeProperty(t);return}e.style.setProperty(t,o,r)}}function u2(e){const t={"justify-content":e.style.justifyContent,"align-items":e.style.alignItems,"align-content":e.style.alignContent,"justify-items":e.style.justifyItems};Object.keys(t).forEach(r=>{e.style.setProperty(r,"initial","important")});function n(){Object.entries(t).forEach(([r,s])=>{if(s===""){e.style.removeProperty(r);return}e.style.setProperty(r,s)})}const o=vt.request(n);return()=>{vt.cancel(o),n()}}let El=(function(e){return e.collapsiblePanelHeight="--collapsible-panel-height",e.collapsiblePanelWidth="--collapsible-panel-width",e})({});const dE=c.forwardRef(function(t,n){const{className:o,hiddenUntilFound:r,keepMounted:s,render:i,id:a,style:l,...u}=t,{defaultPanelId:d,mounted:p,onOpenChange:f,open:y,setMounted:m,setPanelIdState:g,setOpen:h,state:b,transitionStatus:v}=Wf(),w=r??!1,x=s??!1,S=a||void 0,R=S??d;re(()=>(g(L=>S??(L===null?void 0:L)),()=>{g(L=>L===S?null:L)}),[S,g]);const{height:E,props:k,ref:M,shouldPreventOpenAnimation:C,shouldRender:O,transitionStatus:I,width:D}=c2({externalRef:n,hiddenUntilFound:w,id:R,keepMounted:x,mounted:p,onOpenChange:f,open:y,setMounted:m,setOpen:h,transitionStatus:v}),N={...b,transitionStatus:I},P=du(l,N),z=ke("div",{...t,style:void 0},{state:N,ref:M,props:[k,{style:{[El.collapsiblePanelHeight]:E===void 0?"auto":`${E}px`,[El.collapsiblePanelWidth]:D===void 0?"auto":`${D}px`}},u,P?{style:P}:void 0,C?{style:{animationName:"none"}}:void 0],stateAttributesMapping:Uf});return O?z:null}),Gf=c.createContext(void 0);function ks(e){const t=c.useContext(Gf);if(t===void 0&&!e)throw new Error(Ne(72));return t}const d2={...Sa,disabled:e=>e.disabled,instantType:e=>e.instantType,isInstantPhase:e=>e.isInstantPhase,trackCursorAxis:e=>e.trackCursorAxis,disableHoverablePopup:e=>e.disableHoverablePopup,lastOpenChangeReason:e=>e.openChangeReason,closeOnClick:e=>e.closeOnClick,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin};class f2 extends Uo{constructor(n,o,r){const s=new Go;super(p2(n,s,o,r),h2(s),d2);De(this,"setOpen",(n,o)=>{Ub(this,n,o,{extraState:{openChangeReason:o.reason}})})}cancelPendingOpen(n){this.state.floatingRootContext.dispatchOpenChange(!1,Re(Rn,n))}}function p2(e,t,n,o=!1){const r={...xa(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,adaptiveOrigin:void 0,...e};return r.floatingRootContext=vd(t,n,o),r}function h2(e){return{popupRef:c.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:e}}const fE=pa(function(t){const{disabled:n=!1,defaultOpen:o=!1,open:r,disableHoverablePopup:s=!1,trackCursorAxis:i="none",actionsRef:a,onOpenChange:l,onOpenChangeComplete:u,handle:d,triggerId:p,defaultTriggerId:f=null,children:y}=t,m=yd((O,I)=>new f2({open:o,openProp:r,activeTriggerId:f,triggerIdProp:p},O,I));m.useControlledProp("openProp",r),m.useControlledProp("triggerIdProp",p),m.useContextCallback("onOpenChange",l),m.useContextCallback("onOpenChangeComplete",u);const g=m.useState("open"),h=!n&&g,b=m.useState("activeTriggerId"),v=m.useState("mounted"),w=m.useState("payload");m.useSyncedValues({trackCursorAxis:i,disableHoverablePopup:s,disabled:n}),ya(m,{closeOnActiveTriggerUnmount:!0});const{forceUnmount:x,transitionStatus:S}=ba(h,m),R=m.useState("isInstantPhase"),E=m.useState("instantType"),k=m.useState("lastOpenChangeReason"),M=c.useRef(null);re(()=>{g&&n&&m.setOpen(!1,Re(Tu))},[g,n,m]),re(()=>{S==="ending"&&k===Rt||S!=="ending"&&R?(E!=="delay"&&(M.current=E),m.set("instantType","delay")):M.current!==null&&(m.set("instantType",M.current),M.current=null)},[S,R,k,E,m]),re(()=>{h&&b==null&&m.set("payload",void 0)},[m,b,h]),c.useImperativeHandle(a,()=>({unmount:x,close:()=>m.setOpen(!1,Re(Wi))}),[x,m]);const C=h||v||!n&&i!=="none";return K.jsxs(Gf.Provider,{value:m,children:[d&&K.jsx(ha,{handle:d,store:m}),C&&K.jsx(g2,{store:m,disabled:n,trackCursorAxis:i}),typeof y=="function"?y({payload:w}):y]})});function g2({store:e,disabled:t,trackCursorAxis:n}){const o=e.useState("floatingRootContext"),r=is(o,{enabled:!t,referencePress:()=>e.select("closeOnClick")}),s=H0(o,{enabled:!t&&n!=="none",axis:n==="none"?void 0:n}),i=c.useMemo(()=>St(s.reference,r.reference),[s.reference,r.reference]);return va(e,{activeTriggerProps:i,inactiveTriggerProps:i,popupProps:r.floating??We}),null}const Yf=c.createContext(void 0);function m2(){return c.useContext(Yf)}const Cl=600,qf="data-base-ui-tooltip-trigger";function Pl(e){if("composedPath"in e){const n=e.composedPath();for(let o=0;o<n.length;o+=1){const r=n[o];if(Oe(r))return r}}const t=e.target;return Oe(t)?t:null}function y2(e){let t=e;for(;t;){const n=t.closest(`[${qf}]`);if(n)return n;const o=t.getRootNode();t="host"in o&&Oe(o.host)?o.host:null}return null}const pE=gd(function(t,n){const{render:o,className:r,style:s,handle:i,payload:a,disabled:l,delay:u,closeOnClick:d=!0,closeDelay:p,id:f,...y}=t,m=ks(!0),h=Ra(i)??m;if(!h)throw new Error(Ne(82));const b=rt(f),v=h.useState("isTriggerActive",b),w=h.useState("isOpenedByTrigger",b),x=h.useState("floatingRootContext"),S=c.useRef(null),R=u??Cl,E=p??0,{registerTrigger:k,isMountedByThisTrigger:M}=ma(b,S,h,{payload:a,closeOnClick:d,closeDelay:E}),C=m2(),{delayRef:O,isInstantPhase:I,hasProvider:D}=u0(x,{open:w}),N=Ea(x);h.useSyncedValue("isInstantPhase",I);const P=h.useState("disabled"),z=l??P,L=Ze(z),A=h.useState("trackCursorAxis"),F=h.useState("disableHoverablePopup"),T=c.useRef(!1),_=Ge(),j=c.useRef(void 0);function $(){return D?vn(O.current,"open")===0?0:u??C??Cl:R}function U(J){const ee=S.current;if(!ee||!J)return!1;const ie=y2(J);return ie!==null&&ie!==ee&&ve(ee,ie)}function Y(J){const ee=U(J);return T.current=ee,ee&&(N.openChangeTimeout.clear(),N.restTimeout.clear(),N.restTimeoutPending=!1,_.clear()),ee}const V=kd(x,{enabled:!z,mouseOnly:!0,move:!1,handleClose:!F&&A!=="both"?Pd():null,restMs:$,delay(){return p==null&&D?{close:vn(O.current,"close")}:{close:E}},triggerElementRef:S,isActiveTrigger:v,isClosing:()=>h.select("transitionStatus")==="ending",shouldOpen(){return!T.current}}),Q=wd(x,{enabled:!z}).reference,H=J=>{const ee=T.current,ie=Pl(J),xe=Y(ie),ae=S.current,he=ae&&ie&&ve(ae,ie);if(xe&&h.select("open")&&h.select("lastOpenChangeReason")===ot){h.setOpen(!1,Re(ot,J));return}if(ee&&!xe&&he&&!L.current&&!h.select("open")&&ae&&mn(j.current)){const oe=()=>{!T.current&&!L.current&&!h.select("open")&&h.setOpen(!0,Re(ot,J,ae))},ge=$();ge===0?(_.clear(),oe()):_.start(ge,oe)}},G=h.useState("triggerProps",M);return ke("button",t,{state:{open:w},ref:[n,k,S],props:[V,Q,M||A!=="none"?G:void 0,{onMouseOver(J){H(J.nativeEvent)},onFocus(J){U(Pl(J.nativeEvent))&&J.preventBaseUIHandler()},onMouseLeave(){T.current=!1,_.clear(),j.current=void 0},onPointerEnter(J){j.current=J.pointerType},onPointerDown(J){j.current=J.pointerType,h.set("closeOnClick",d),d&&!h.select("open")&&h.cancelPendingOpen(J.nativeEvent)},onClick(J){d&&!h.select("open")&&h.cancelPendingOpen(J.nativeEvent)},id:b,"data-trigger-disabled":z?"":void 0,[qf]:z?void 0:""},y],stateAttributesMapping:Hi})}),Xf=c.createContext(void 0);function b2(){const e=c.useContext(Xf);if(e===void 0)throw new Error(Ne(70));return e}const v2=c.forwardRef(function(t,n){const{children:o,container:r,className:s,render:i,style:a,...l}=t,{node:u,subtree:d}=td({container:r,ref:n,componentProps:t,elementProps:l});return!d&&!u?null:K.jsxs(c.Fragment,{children:[d,u&&At.createPortal(o,u)]})}),hE=c.forwardRef(function(t,n){const{keepMounted:o=!1,...r}=t;return ks().useState("mounted")||o?K.jsx(Xf.Provider,{value:o,children:K.jsx(v2,{ref:n,...r})}):null}),Kf=c.createContext(void 0);function x2(){const e=c.useContext(Kf);if(e===void 0)throw new Error(Ne(71));return e}const gE=c.forwardRef(function(t,n){const{render:o,className:r,anchor:s,positionMethod:i="absolute",side:a="top",align:l="center",sideOffset:u=0,alignOffset:d=0,collisionBoundary:p="clipping-ancestors",collisionPadding:f=5,arrowPadding:y=5,sticky:m=!1,disableAnchorTracking:g=!1,collisionAvoidance:h=Qu,style:b,...v}=t,w=ks(),x=b2(),S=w.useState("open"),R=w.useState("mounted"),E=w.useState("trackCursorAxis"),k=w.useState("disableHoverablePopup"),M=w.useState("floatingRootContext"),C=w.useState("instantType"),O=w.useState("transitionStatus"),I=w.useState("adaptiveOrigin"),D=Pa({anchor:s,positionMethod:i,floatingRootContext:M,mounted:R,side:a,sideOffset:u,align:l,alignOffset:d,collisionBoundary:p,collisionPadding:f,sticky:m,arrowPadding:y,disableAnchorTracking:g,keepMounted:x,collisionAvoidance:h,adaptiveOrigin:I}),N=c.useMemo(()=>({open:S,side:D.side,align:D.align,anchorHidden:D.anchorHidden,instant:E!=="none"?"tracking-cursor":C}),[S,D.side,D.align,D.anchorHidden,E,C]),P=Ta(t,N,{styles:D.positionerStyles,transitionStatus:O,props:v,refs:[n,w.useStateSetter("positionerElement")],hidden:!R,inert:!S||E==="both"||k});return K.jsx(Kf.Provider,{value:D,children:P})}),mE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,a=ks(),{side:l,align:u}=x2(),d=a.useState("open"),p=a.useState("instantType"),f=a.useState("transitionStatus"),y=a.useState("popupProps"),m=a.useState("floatingRootContext"),g=a.useState("disabled"),h=a.useState("closeDelay");kt({open:d,ref:a.context.popupRef,onComplete(){var x,S;d&&((S=(x=a.context).onOpenChangeComplete)==null||S.call(x,!0))}}),Rd(m,{enabled:!g,closeDelay:h});const b=a.useStateSetter("popupElement");return ke("div",t,{state:{open:d,side:l,align:u,instant:p,transitionStatus:f},ref:[n,a.context.popupRef,b],props:[us,y,ps(f),i],stateAttributesMapping:ji})}),yE=function(t){const{delay:n,closeDelay:o,timeout:r=400}=t,s=c.useMemo(()=>({open:n,close:o}),[n,o]);return K.jsx(Yf.Provider,{value:n,children:K.jsx(l0,{delay:s,timeoutMs:r,children:t.children})})};function Zf(e,t,n,o=!0,r){const[s,i]=c.useState(),a=rt(r?`${r}-label`:void 0),l=e??t??s;return re(()=>{const u=e||t||!o?void 0:w2(n.current,a);s!==u&&i(u)}),l}function w2(e,t){const n=S2(e);if(n)return!n.id&&t&&(n.id=t),n.id||void 0}function S2(e){if(!e)return;const t=e.parentElement;if(t&&t.tagName==="LABEL")return t;const n=e.id;if(n){const r=e.nextElementSibling;if(r&&r.htmlFor===n)return r}const o=e.labels;return o&&o[0]}const R2=c.createContext({disabled:!1});function k2(){return c.useContext(R2)}const E2=c.forwardRef(function(t,n){const{render:o,className:r,id:s,name:i,value:a,disabled:l=!1,onValueChange:u,defaultValue:d,autoFocus:p=!1,style:f,...y}=t,{state:m,name:g,disabled:h,setTouched:b,setDirty:v,validityData:w,setFocused:x,setFilled:S,validationMode:R,validation:E}=vo(),{clearErrors:k}=ws(),M=h||l,C=g??i,O={...m,disabled:M},{labelId:I}=Yo(),D=xs({id:s});re(()=>{var _;const T=a!=null;(_=E.inputRef.current)!=null&&_.value||T&&a!==""?S(!0):T&&a===""&&S(!1)},[E.inputRef,S,a]);const N=c.useRef(null);re(()=>{p&&N.current===dt(Te(N.current))&&x(!0)},[p,x]);const[P]=Lt({controlled:a,default:d,name:"FieldControl",state:"value"}),z=a!==void 0,L=z?P:void 0,A=le(()=>{var T;return(T=E.inputRef.current)==null?void 0:T.value});return vs(E.inputRef,D,L,A,!M,i),ke("input",t,{ref:[n,N],state:O,props:[{id:D,disabled:M,name:C,ref:E.inputRef,"aria-labelledby":I,autoFocus:p,...z?{value:L}:{defaultValue:d},onChange(T){const _=T.currentTarget.value;u==null||u(_,Re(Rt,T.nativeEvent)),v(_!==(w.initialValue??"")),S(_!==""),T.nativeEvent.defaultPrevented||(k(C),E.change(_))},onFocus(){x(!0)},onBlur(T){b(!0),x(!1),R==="onBlur"&&E.commit(T.currentTarget.value)},onKeyDown(T){T.currentTarget.tagName==="INPUT"&&T.key==="Enter"&&(b(!0),E.commit(T.currentTarget.value))}},y,T=>E.getValidationProps(M,T)],stateAttributesMapping:bs})}),bE=c.forwardRef(function(t,n){return K.jsx(E2,{ref:n,...t})});function Qf(e){return Array.isArray(e)?e.map(t=>Qf(t)).join(","):e==null?"":String(e)}const Ml=new Map;function C2(e,t){const n=JSON.stringify({locale:Qf(e),options:t}),o=Ml.get(n);if(o)return o;const r=new Intl.NumberFormat(e,t);return Ml.set(n,r),r}function Tl(e,t,n){return e==null?"":C2(t,n).format(e)}function P2(e,t,n){return(e-t)*100/(n-t)}const Jf=c.createContext(void 0);function ep(){const e=c.useContext(Jf);if(e===void 0)throw new Error(Ne(51));return e}const Ua={status(e){return{[`data-${e}`]:""}}},vE=c.forwardRef(function(t,n){const{format:o,getAriaValueText:r,locale:s,max:i=100,min:a=0,value:l,render:u,className:d,children:p,style:f,...y}=t,[m,g]=c.useState();let h="indeterminate",b=null,v=null,w="",x="indeterminate progress";if(l!=null&&Number.isFinite(l)){const M=P2(l,a,i);b=hn(Number.isNaN(M)?0:M,0,100),v=hn(l,a,i),h=v===i?"complete":"progressing",w=o?Tl(v,s,o):Tl(b/100,s,{style:"percent"}),x=w}const S=c.useMemo(()=>({status:h}),[h]),R={"aria-labelledby":m,"aria-valuemax":i,"aria-valuemin":a,"aria-valuenow":v??void 0,"aria-valuetext":r?r(w,l):x,role:"progressbar",children:K.jsxs(c.Fragment,{children:[p,K.jsx("span",{role:"presentation",style:Bo,children:"x"})]})},E=c.useMemo(()=>({formattedValue:w,percentageValue:b,setLabelId:g,state:S,value:l}),[w,b,g,S,l]),k=ke("div",t,{state:S,ref:n,props:[R,y],stateAttributesMapping:Ua});return K.jsx(Jf.Provider,{value:E,children:k})}),xE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,{state:a}=ep();return ke("div",t,{state:a,ref:n,props:i,stateAttributesMapping:Ua})}),wE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,{percentageValue:a,state:l}=ep(),u=a==null?{}:{insetInlineStart:0,height:"inherit",width:`${a}%`};return ke("div",t,{state:l,ref:n,props:[{style:u},i],stateAttributesMapping:Ua})}),tp=c.createContext(void 0);function Es(){const e=c.useContext(tp);if(e===void 0)throw new Error(Ne(53));return e}const M2=500,Pi=16;function gn(e,t,n){if(!e)return 0;const o=getComputedStyle(e),r=`${t}${n==="x"?"Inline":"Block"}`,s=parseFloat(o[`${r}Start`]);return n==="x"&&t==="margin"?s*2:s+parseFloat(o[`${r}End`])}const Yn=e=>t=>t?{[e]:""}:null,Ga={hasOverflowX:Yn("data-has-overflow-x"),hasOverflowY:Yn("data-has-overflow-y"),overflowXStart:Yn("data-overflow-x-start"),overflowXEnd:Yn("data-overflow-x-end"),overflowYStart:Yn("data-overflow-y-start"),overflowYEnd:Yn("data-overflow-y-end"),cornerHidden:()=>null},T2={x:0,y:0},Il={width:0,height:0},I2={xStart:!1,xEnd:!1,yStart:!1,yEnd:!1},O2={x:!0,y:!0,corner:!0},SE=c.forwardRef(function(t,n){const{render:o,className:r,overflowEdgeThreshold:s,style:i,...a}=t,{xStart:l,xEnd:u,yStart:d,yEnd:p}=A2(s),f=rt(),y=Ge(),m=Ge(),{nonce:g,disableStyleElements:h}=Da(),[b,v]=c.useState(!1),[w,x]=c.useState(!1),[S,R]=c.useState(!1),[E,k]=c.useState(!1),[M,C]=c.useState(!1),[O,I]=c.useState(Il),[D,N]=c.useState(Il),[P,z]=c.useState(I2),[L,A]=c.useState(O2),F=c.useRef(null),T=c.useRef(null),_=c.useRef(null),j=c.useRef(null),$=c.useRef(null),U=c.useRef(null),Y=c.useRef(null),V=c.useRef(null),Q=c.useRef(0),H=c.useRef(0),G=c.useRef(0),ue=c.useRef(0),ne=c.useRef("vertical"),te=c.useRef(T2),J=c.useRef(null);function ee(se){const Z=se?R:x,X=se?y:m;Z(!0),X.start(M2,()=>{Z(!1)})}const ie=le(se=>{const Z=se.x-te.current.x,X=se.y-te.current.y;te.current=se,X!==0&&ee(!0),Z!==0&&ee(!1)}),xe=le(()=>{const se=T.current;se&&J.current===null&&(J.current=se.style.scrollSnapType,se.style.scrollSnapType="none")}),ae=le(se=>{if(se.button!==0)return;if(V.current!==null){const pe=ne.current==="vertical"?$.current:U.current;if(pe!=null&&pe.hasPointerCapture(V.current))return}V.current=se.pointerId,Q.current=se.clientY,H.current=se.clientX,ne.current=se.currentTarget.getAttribute("data-orientation");const Z=T.current;Z&&(G.current=Z.scrollTop,ue.current=Z.scrollLeft,xe());const X=ne.current==="vertical"?$.current:U.current;X==null||X.setPointerCapture(se.pointerId)}),he=le(se=>{if(se.pointerId!==V.current)return;V.current=null,(ne.current==="vertical"?R:x)(!1),J.current!==null&&(T.current&&(T.current.style.scrollSnapType=J.current),J.current=null);const Z=ne.current==="vertical"?$.current:U.current;Z!=null&&Z.hasPointerCapture(se.pointerId)&&Z.releasePointerCapture(se.pointerId)}),oe=le(se=>{if(se.pointerId!==V.current)return;if(se.buttons%2===0){he(se);return}const Z=T.current;if(!Z)return;const X=ne.current==="vertical",pe=X?$.current:U.current,be=X?_.current:j.current;if(!pe||!be)return;const Le=X?"y":"x",Ue=gn(be,"padding",Le),qe=gn(pe,"margin",Le),st=X?pe.offsetHeight:pe.offsetWidth,Je=(X?be.offsetHeight:be.offsetWidth)-st-Ue-qe,ct=X?se.clientY-Q.current:se.clientX-H.current,Se=Je<=0?0:ct/Je,je=X?Z.scrollHeight:Z.scrollWidth,Ye=X?Z.clientHeight:Z.clientWidth,Xe=(X?G.current:ue.current)+Se*(je-Ye);X?Z.scrollTop=Xe:Z.scrollLeft=Xe,se.preventDefault(),ee(X)});function ge(se){k(se.pointerType==="touch")}function de(se){if(ge(se),se.pointerType!=="touch"){const Z=ve(F.current,se.target);v(Z)}}const ce=c.useMemo(()=>({scrolling:w||S,hasOverflowX:!L.x,hasOverflowY:!L.y,overflowXStart:P.xStart,overflowXEnd:P.xEnd,overflowYStart:P.yStart,overflowYEnd:P.yEnd,cornerHidden:L.corner}),[w,S,L.x,L.y,L.corner,P]),fe={role:"presentation",onPointerEnter:de,onPointerMove:de,onPointerDown:ge,onPointerLeave(){v(!1)},style:{position:"relative","--scroll-area-corner-height":`${O.height}px`,"--scroll-area-corner-width":`${O.width}px`}},B=ke("div",t,{state:ce,ref:[n,F],props:[fe,a],stateAttributesMapping:Ga}),q=c.useMemo(()=>({handlePointerDown:ae,handlePointerMove:oe,handlePointerUp:he,handleScroll:ie,disableViewportSnap:xe,cornerSize:O,setCornerSize:I,thumbSize:D,setThumbSize:N,hasMeasuredScrollbar:M,setHasMeasuredScrollbar:C,touchModality:E,cornerRef:Y,scrollingX:w,scrollingY:S,hovering:b,setHovering:v,viewportRef:T,scrollbarYRef:_,scrollbarXRef:j,thumbYRef:$,thumbXRef:U,rootId:f,hiddenState:L,setHiddenState:A,overflowEdges:P,setOverflowEdges:z,viewportState:ce,overflowEdgeThreshold:{xStart:l,xEnd:u,yStart:d,yEnd:p}}),[ae,oe,he,ie,xe,O,D,M,E,w,S,b,f,L,P,ce,l,u,d,p]);return K.jsxs(tp.Provider,{value:q,children:[!h&&Vo.getElement(g),B]})});function A2(e){const t=typeof e=="number"?{xStart:e,xEnd:e,yStart:e,yEnd:e}:e;return{xStart:Math.max(0,(t==null?void 0:t.xStart)||0),xEnd:Math.max(0,(t==null?void 0:t.xEnd)||0),yStart:Math.max(0,(t==null?void 0:t.yStart)||0),yEnd:Math.max(0,(t==null?void 0:t.yEnd)||0)}}const D2=c.createContext(void 0),np=["--scroll-area-overflow-x-start","--scroll-area-overflow-x-end","--scroll-area-overflow-y-start","--scroll-area-overflow-y-end"];let Ol=!1;function N2(){Ol||Yt||(typeof CSS<"u"&&"registerProperty"in CSS&&np.forEach(e=>{try{CSS.registerProperty({name:e,syntax:"<length>",inherits:!1,initialValue:"0px"})}catch{}}),Ol=!0)}const RE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,{viewportRef:a,scrollbarYRef:l,scrollbarXRef:u,thumbYRef:d,thumbXRef:p,cornerRef:f,cornerSize:y,setCornerSize:m,setThumbSize:g,rootId:h,setHiddenState:b,hiddenState:v,setHasMeasuredScrollbar:w,handleScroll:x,touchModality:S,setHovering:R,setOverflowEdges:E,overflowEdgeThreshold:k,viewportState:M}=Es(),C=bo(),O=c.useRef(!0),I=c.useRef([NaN,NaN,NaN,NaN]),D=Ge(),N=Ge(),P=le(()=>{const T=a.current,_=l.current,j=u.current,$=d.current,U=p.current,Y=f.current;if(!T)return;const V=T.scrollHeight,Q=T.scrollWidth,H=T.clientHeight,G=T.clientWidth,ue=T.scrollTop,ne=T.scrollLeft,te=I.current,J=Number.isNaN(te[0]);if(te[0]=H,te[1]=V,te[2]=G,te[3]=Q,J&&w(!0),V===0||Q===0)return;const ee=L2(T),ie=ee.y,xe=ee.x,ae=G/Q,he=H/V,oe=Math.max(0,Q-G),ge=Math.max(0,V-H);let de=0,ce=0;xe||(de=fo(C==="rtl"?-ne:ne,oe),ce=oe-de);const fe=ie?0:fo(ue,ge),B=ie?0:ge-fe,q=xe?0:G,se=ie?0:H;let Z=0,X=0;!xe&&!ie&&(Z=(_==null?void 0:_.offsetWidth)||0,X=(j==null?void 0:j.offsetHeight)||0);const pe=y.width===0&&y.height===0,be=pe?Z:0,Le=pe?X:0,Ue=gn(j,"padding","x"),qe=gn(_,"padding","y"),st=gn(U,"margin","x"),_e=gn($,"margin","y"),Je=q-Ue-st,ct=se-qe-_e,Se=j?Math.min(j.offsetWidth-be,Je):Je,je=_?Math.min(_.offsetHeight-Le,ct):ct,Ye=Math.max(Pi,Se*ae),Be=Math.max(Pi,je*he);if(g(we=>xr(we,{width:Ye,height:Be})),_&&$){const we=_.offsetHeight-Be-qe-_e,Ae=Al($,"--scroll-area-thumb-height",ue,ge,V,Be,we);$.style.transform=`translate3d(0,${Ae}px,0)`}if(j&&U){const we=j.offsetWidth-Ye-Ue-st,Ae=C==="rtl"?-ne:ne,Qe=Al(U,"--scroll-area-thumb-width",Ae,oe,Q,Ye,we);U.style.transform=`translate3d(${C==="rtl"?-Qe:Qe}px,0,0)`}const Xe=[de,ce,fe,B];np.forEach((we,Ae)=>{T.style.setProperty(we,`${Xe[Ae]}px`)}),Y&&m(we=>xr(we,{width:Z,height:X})),b(we=>xr(we,ee));const pt={xStart:!xe&&de>k.xStart,xEnd:!xe&&ce>k.xEnd,yStart:!ie&&fe>k.yStart,yEnd:!ie&&B>k.yEnd};E(we=>xr(we,pt))});re(()=>{N2()},[]),re(()=>{queueMicrotask(P)},[P,v,C,k.xStart,k.xEnd,k.yStart,k.yEnd]),re(()=>{var T;(T=a.current)!=null&&T.matches(":hover")&&R(!0)},[a,R]),re(()=>{const T=a.current;if(typeof ResizeObserver>"u"||!T)return;let _=!1;const j=new ResizeObserver(()=>{if(!_){_=!0;const $=I.current;if($[0]===T.clientHeight&&$[1]===T.scrollHeight&&$[2]===T.clientWidth&&$[3]===T.scrollWidth)return}P()});return j.observe(T),N.start(0,()=>{const $=T.getAnimations({subtree:!0});$.length!==0&&Promise.allSettled($.map(U=>U.finished)).then(P).catch(()=>{})}),()=>{j.disconnect(),N.clear()}},[P,a,N]);function z(){O.current=!1}const L={role:"presentation",...h&&{"data-id":`${h}-viewport`},tabIndex:v.x&&v.y?-1:0,className:Vo.className,style:{overflow:"scroll"},onScroll(){a.current&&(P(),(S||!O.current)&&x({x:a.current.scrollLeft,y:a.current.scrollTop}),D.start(100,()=>{O.current=!0}))},onWheel:z,onPointerMove:z,onPointerEnter:z,onKeyDown:z},A=ke("div",t,{ref:[n,a],state:M,props:[L,i],stateAttributesMapping:Ga}),F=c.useMemo(()=>({computeThumbPosition:P}),[P]);return K.jsx(D2.Provider,{value:F,children:A})});function L2(e){const t=e.clientHeight>=e.scrollHeight,n=e.clientWidth>=e.scrollWidth;return{y:t,x:n,corner:t||n}}function xr(e,t){for(const n in t)if(e[n]!==t[n])return t;return e}function Al(e,t,n,o,r,s,i){const a=hn(n,0,o),l=n-a,u=Math.max(Pi,s*r/(r+Math.abs(l)));return e.style.setProperty(t,l?`${u}px`:""),(o?a/o*i:0)+(l>0?s-u:0)}const op=c.createContext(void 0);function _2(){const e=c.useContext(op);if(e===void 0)throw new Error(Ne(54));return e}const kE=c.forwardRef(function(t,n){const{render:o,className:r,orientation:s="vertical",keepMounted:i=!1,style:a,...l}=t,{hovering:u,scrollingX:d,scrollingY:p,hiddenState:f,scrollbarYRef:y,scrollbarXRef:m,viewportRef:g,thumbYRef:h,thumbXRef:b,handlePointerDown:v,handlePointerUp:w,handleScroll:x,disableViewportSnap:S,rootId:R,thumbSize:E,hasMeasuredScrollbar:k,viewportState:M}=Es(),C=s==="vertical",O={...M,hovering:u,scrolling:C?p:d,orientation:s},I=bo(),D=!k&&!i,N=C?f.y:f.x,P=i||!N;c.useEffect(()=>{if(!P)return;const A=g.current,F=C?y.current:m.current;if(!F)return;function T(_){if(!A||_.ctrlKey)return;const j=!C,$=j?"scrollLeft":"scrollTop",U=j?_.deltaX:_.deltaY;if(U===0)return;const Y=j?A.scrollWidth-A.clientWidth:A.scrollHeight-A.clientHeight,V=j&&I==="rtl"?-Y:0,Q=j&&I==="rtl"?0:Y,H=A[$];H<=V&&U<0||H>=Q&&U>0||(_.preventDefault(),A[$]=Math.min(Q,Math.max(V,H+U)),x({x:A.scrollLeft,y:A.scrollTop}))}return Me(F,"wheel",T,{passive:!1})},[I,x,C,m,y,P,g]);const z={...R&&{"data-id":`${R}-scrollbar`},onPointerDown(A){if(A.button!==0)return;const F=et(A.nativeEvent),T=C?h.current:b.current;if(T&&ve(T,F))return;const _=g.current;if(!_)return;const j=C?y.current:m.current;if(!T||!j)return;const $=C?"y":"x",U=gn(T,"margin",$),Y=gn(j,"padding",$),V=C?T.offsetHeight:T.offsetWidth,Q=j.getBoundingClientRect(),H=C?A.clientY-Q.top-V/2-Y+U/2:A.clientX-Q.left-V/2-Y+U/2,G=C?_.scrollHeight:_.scrollWidth,ue=C?_.clientHeight:_.clientWidth,te=(C?j.offsetHeight:j.offsetWidth)-V-Y-U;if(te<=0)return;const J=H/te,ee=G-ue;S(),C?_.scrollTop=J*ee:I==="rtl"?_.scrollLeft=-(1-J)*ee:_.scrollLeft=J*ee,x({x:_.scrollLeft,y:_.scrollTop}),v(A)},onPointerUp:w,onPointerCancel:w,style:{position:"absolute",touchAction:"none",WebkitUserSelect:"none",userSelect:"none",visibility:D?"hidden":void 0,...C?{top:0,bottom:"var(--scroll-area-corner-height)",insetInlineEnd:0,"--scroll-area-thumb-height":`${E.height}px`}:{insetInlineStart:0,insetInlineEnd:"var(--scroll-area-corner-width)",bottom:0,"--scroll-area-thumb-width":`${E.width}px`}}},L=ke("div",t,{ref:[n,C?y:m],state:O,props:[z,l],stateAttributesMapping:Ga});return P?K.jsx(op.Provider,{value:s,children:L}):null}),EE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,{thumbYRef:a,thumbXRef:l,handlePointerDown:u,handlePointerMove:d,handlePointerUp:p,scrollingX:f,scrollingY:y,hasMeasuredScrollbar:m}=Es(),g=_2(),h=g==="vertical";return ke("div",t,{ref:[n,h?a:l],state:{scrolling:h?y:f,orientation:g},props:[{onPointerDown:u,onPointerMove:d,onPointerUp:p,onPointerCancel:p,style:{visibility:m?void 0:"hidden",...h?{height:"var(--scroll-area-thumb-height)"}:{width:"var(--scroll-area-thumb-width)"}}},i]})}),CE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,{cornerRef:a,cornerSize:l,hiddenState:u}=Es(),d=ke("div",t,{ref:[n,a],props:[{style:{position:"absolute",bottom:0,insetInlineEnd:0,width:l.width,height:l.height}},i]});return u.corner?null:d}),rp=c.createContext(void 0);function Cs(){const e=c.useContext(rp);if(e===void 0)throw new Error(Ne(64));return e}const Xo={tabActivationDirection:e=>({"data-activation-direction":e})},PE=c.forwardRef(function(t,n){const{className:o,defaultValue:r=0,onValueChange:s,orientation:i="horizontal",render:a,value:l,style:u,...d}=t,p=t.defaultValue!==void 0,f=c.useRef([]),[y,m]=c.useState(()=>new Map),[g,h]=Lt({controlled:l,default:r,name:"Tabs",state:"value"}),b=l!==void 0,[v,w]=c.useState(()=>new Map),x=c.useRef(void 0),S=c.useCallback(H=>Mi(v,H),[v]),[R,E]=c.useState(()=>({previousValue:g,tabActivationDirection:"none"})),{previousValue:k,tabActivationDirection:M}=R;let C=M,O=!1;k!==g&&(C=Dl(k,g,i,v),O=k!=null&&g!=null&&S(g)==null);const I=O?k:g,D=k!==I||M!==C;re(()=>{D&&E({previousValue:I,tabActivationDirection:C})},[I,D,C]);const N=le((H,G)=>{const ue=Dl(g,H,i,v);G.activationDirection=ue,s==null||s(H,G),!G.isCanceled&&h(H)}),P=le((H,G)=>{s==null||s(H,Re(G,void 0,void 0,{activationDirection:"none"}))}),z=le((H,G)=>(m(ue=>{const ne=new Map(ue);return ne.set(H,G),ne}),()=>{m(ue=>{if(ue.get(H)!==G)return ue;const ne=new Map(ue);return ne.delete(H),ne})})),L=c.useCallback(H=>y.get(H),[y]),A=c.useCallback(H=>{for(const G of v.values())if(H===G.value)return G.id},[v]),F=c.useMemo(()=>({getTabElementBySelectedValue:S,getTabIdByPanelValue:A,getTabPanelIdByValue:L,onValueChange:N,orientation:i,registerMountedTabPanel:z,setTabMap:w,tabActivationDirection:C,value:g}),[S,A,L,N,i,z,w,C,g]),T=c.useMemo(()=>{for(const H of v.values())if(H.value===g)return H},[v,g]),_=c.useMemo(()=>{for(const H of v.values())if(!H.disabled)return H.value},[v]),j=c.useRef(!p),$=c.useRef(r),U=c.useRef(p),Y=c.useRef(!1);re(()=>{var te;if(b)return;function H(J,ee){h(J),E({previousValue:J,tabActivationDirection:"none"}),P(J,ee),j.current=!1}if(v.size===0){Y.current&&g!==null&&!((te=x.current)!=null&&te.isConnected)&&H(null,vc);return}Y.current=!0,x.current=v.keys().next().value;const G=T==null?void 0:T.disabled,ue=T==null&&g!==null;if(!G&&g===$.current&&(U.current=!1),U.current&&G&&g===$.current)return;const ne=j.current;if(G||ue){const J=_??null;if(g===J){j.current=!1;return}let ee=vc;ne?ee=xc:G&&(ee=Tu),H(J,ee);return}ne&&T!=null&&(P(g,xc),j.current=!1)},[_,b,P,T,h,v,g]);const Q=ke("div",t,{state:{orientation:i,tabActivationDirection:C},ref:n,props:d,stateAttributesMapping:Xo});return K.jsx(rp.Provider,{value:F,children:K.jsx(gs,{elementsRef:f,children:Q})})});function Mi(e,t){for(const[n,o]of e.entries())if(t===o.value)return n;return null}function Dl(e,t,n,o){if(e==null||t==null)return"none";const[r,s,i]=n==="horizontal"?["left","left","right"]:["top","up","down"],a=Mi(o,e),l=Mi(o,t);if(a==null||l==null)return a!==l&&(typeof e=="number"||typeof e=="string")&&typeof e==typeof t?t>e?i:s:"none";const u=a.getBoundingClientRect()[r],d=l.getBoundingClientRect()[r];return d<u?s:d>u?i:"none"}const sp="data-composite-item-active",ip=c.createContext(void 0);function ap(){const e=c.useContext(ip);if(e===void 0)throw new Error(Ne(65));return e}const ME=c.forwardRef(function(t,n){const{className:o,disabled:r=!1,render:s,value:i,id:a,nativeButton:l=!0,style:u,...d}=t,{value:p,getTabPanelIdByValue:f,onValueChange:y,orientation:m,tabActivationDirection:g}=Cs(),{activateOnFocus:h,registerTabResizeObserverElement:b,tabsListElement:v}=ap(),{highlightedIndex:w,onHighlightedIndexChange:x}=Yr(),S=rt(a),R=c.useMemo(()=>({disabled:r,id:S,value:i}),[r,S,i]),{compositeProps:E,compositeRef:k,index:M}=Vd({metadata:R}),C=i===p,O=c.useRef(!1),I=c.useRef(null),D=le(Y=>{var V;(V=I.current)==null||V.call(I),I.current=Y?b(Y):null});re(()=>{if(O.current){O.current=!1;return}if(!(C&&M>-1&&w!==M))return;const Y=v;if(Y!=null){const V=dt(Te(Y));if(V&&ve(Y,V))return}r||x(M)},[C,M,w,x,r,v]);const{getButtonProps:N,buttonRef:P}=Tt({disabled:r,native:l,focusableWhenDisabled:!0}),z=f(i),L=c.useRef(!1),A=c.useRef(!1);function F(Y){y(i,Re(Rt,Y.nativeEvent,void 0,{activationDirection:"none"}))}function T(Y){C||r||F(Y)}function _(Y){C||r||h&&(!L.current||A.current)&&F(Y)}function j(Y){if(C||r)return;L.current=!0,A.current=Y.button===0;const V=Te(Y.currentTarget);function Q(){L.current=!1,A.current=!1,V.removeEventListener("pointerup",Q),V.removeEventListener("pointercancel",Q)}V.addEventListener("pointerup",Q),V.addEventListener("pointercancel",Q)}return ke("button",t,{state:{disabled:r,active:C,orientation:m,tabActivationDirection:g},ref:[n,P,k,D],props:[E,{role:"tab","aria-controls":z,"aria-selected":C,id:S,onClick:T,onFocus:_,onPointerDown:j,[sp]:C?"":void 0,onKeyDownCapture(){O.current=!0}},d,N],stateAttributesMapping:Xo})}),F2="";function z2(){return Ke}function V2(){return!1}function $2(){return!0}function H2(){return cs.useSyncExternalStore(z2,V2,$2)}function j2(e){const{script:t}=e,{nonce:n}=Da();return H2()?K.jsx("script",{nonce:n,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0}):null}var Nl;const B2={...Xo,activeTabPosition:()=>null,activeTabSize:()=>null},TE=c.forwardRef(function(t,n){const{className:o,render:r,renderBeforeHydration:s=!1,style:i,...a}=t,{getTabElementBySelectedValue:l,orientation:u,tabActivationDirection:d,value:p}=Cs(),{tabsListElement:f,registerIndicatorUpdateListener:y}=ap(),m=Hb();c.useEffect(()=>y(m),[y,m]);let g=0,h=0,b=0,v=0,w=0,x=0,S=!1;if(p!=null&&f!=null){const I=l(p);if(I!=null){S=!0;const{width:D,height:N}=ll(I),{width:P,height:z}=ll(f),L=I.getBoundingClientRect(),A=f.getBoundingClientRect(),F=P>0?A.width/P:1,T=z>0?A.height/z:1;if(F>Number.EPSILON&&T>Number.EPSILON){const j=L.left-A.left,$=L.top-A.top;g=j/F+f.scrollLeft-f.clientLeft,b=$/T+f.scrollTop-f.clientTop}else g=I.offsetLeft,b=I.offsetTop;w=D,x=N,h=f.scrollWidth-g-w,v=f.scrollHeight-b-x}}const R=S?{left:g,right:h,top:b,bottom:v}:null,E=S?{width:w,height:x}:null,k=S?{"--active-tab-left":`${g}px`,"--active-tab-right":`${h}px`,"--active-tab-top":`${b}px`,"--active-tab-bottom":`${v}px`,"--active-tab-width":`${w}px`,"--active-tab-height":`${x}px`}:void 0,M=S&&w>0&&x>0,O=ke("span",t,{state:{orientation:u,activeTabPosition:R,activeTabSize:E,tabActivationDirection:d},ref:n,props:[{role:"presentation",style:k,hidden:!M},a,{suppressHydrationWarning:!0}],stateAttributesMapping:B2});return p==null?null:K.jsxs(c.Fragment,{children:[O,s&&(Nl||(Nl=K.jsx(j2,{script:F2})))]})}),W2={...Xo,...Gt},IE=c.forwardRef(function(t,n){const{className:o,value:r,render:s,keepMounted:i=!1,style:a,...l}=t,{value:u,getTabIdByPanelValue:d,orientation:p,tabActivationDirection:f,registerMountedTabPanel:y}=Cs(),m=rt(),{ref:g,index:h}=yo(),b=r===u,{mounted:v,transitionStatus:w,setMounted:x}=ln(b),S=!v,R=d(r),E={hidden:S,orientation:p,tabActivationDirection:f,transitionStatus:w},k=c.useRef(null),M=ke("div",t,{state:E,ref:[n,g,k],props:[{"aria-labelledby":R,hidden:S,id:m,role:"tabpanel",tabIndex:b?0:-1,inert:hs(!b),"data-index":h},l],stateAttributesMapping:W2});return kt({open:b,ref:k,onComplete(){b||x(!1)}}),re(()=>{if(!(m==null||S&&!i))return y(r,m)},[S,i,r,m,y]),i||v?M:null}),U2=[];function G2(e){const{loopFocus:t=!0,orientation:n="both",grid:o,onLoop:r,direction:s,highlightedIndex:i,onHighlightedIndexChange:a,rootRef:l,enableHomeAndEndKeys:u=!1,stopEventPropagation:d,disabledIndices:p,modifierKeys:f=U2}=e,[y,m]=c.useState(0),g=o!=null,h=c.useRef(null),b=Dt(h,l),v=c.useRef([]),w=c.useRef(!1),x=i??y,S=le((C,O=!1)=>{if((a??m)(C),O){const I=v.current[C];Jc(h.current,I,s,n)}}),R=le(C=>{var N;if(C.size===0||w.current)return;w.current=!0;const O=Array.from(C.keys()),I=O.find(P=>P==null?void 0:P.hasAttribute(sp))??null,D=I?((N=C.get(I))==null?void 0:N.index)??-1:-1;if(D!==-1)S(D);else if(Vr(O,x,p)){const P=Jt(O,{disabledIndices:p});Ao(O,P)||S(P)}Jc(h.current,I,s,n)});re(()=>{if(p==null||i!=null||!w.current)return;const C=v.current;if(Vr(C,x,p)){const O=Jt(C,{disabledIndices:p});Ao(C,O)||S(O)}},[p,i,x,v,S]);const E=le((C,O,I)=>r?r(C,O,I,v):I),k=le(C=>{const O=C.key===pi||C.key===hi;if(!fs.has(C.key)||!u&&O||Y2(C,f)||!h.current)return;const D=s==="rtl",N=D?di:fi,P=D?fi:di,z=n==="vertical"?ui:N,L=n==="vertical"?li:P,A=et(C.nativeEvent);if(A!=null&&Qc(A)&&!Hd(A)){const U=A.selectionStart,Y=A.selectionEnd,V=A.value;if(U==null||C.shiftKey||U!==Y||C.key!==L&&U<V.length||C.key!==z&&U>0)return}let F=x;const T=Rr(v,p),_=ri(v,p);o!=null&&(F=o({disabledIndices:p,elementsRef:v,event:C,highlightedIndex:x,loopFocus:t,maxIndex:_,minIndex:T,onLoop:E,orientation:n,rtl:D}));const j=n!=="vertical"&&C.key===N||n!=="horizontal"&&C.key===ui,$=n!=="vertical"&&C.key===P||n!=="horizontal"&&C.key===li;u&&(C.key===pi?F=T:C.key===hi&&(F=_)),F===x&&(j||$)&&(t&&F===_&&j?(F=T,r&&(F=r(C,x,F,v))):t&&F===T&&$?(F=_,r&&(F=r(C,x,F,v))):F=Jt(v.current,{startingIndex:F,decrement:$,disabledIndices:p})),F!==x&&!Ao(v.current,F)&&(d&&C.stopPropagation(),(g||O||j||$)&&C.preventDefault(),S(F,!0),queueMicrotask(()=>{var U;(U=v.current[F])==null||U.focus()}))});return{props:{ref:b,onFocus(C){const O=h.current,I=et(C.nativeEvent);!O||I==null||!Qc(I)||I.setSelectionRange(0,I.value.length)},onKeyDown:k},highlightedIndex:x,onHighlightedIndexChange:S,elementsRef:v,onMapChange:R,relayKeyboardEvent:k}}function Y2(e,t){for(const n of i1)if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}function cp(e){const{render:t,className:n,style:o,refs:r=Nt,props:s=Nt,state:i=We,stateAttributesMapping:a,highlightedIndex:l,onHighlightedIndexChange:u,orientation:d,grid:p,loopFocus:f,onLoop:y,enableHomeAndEndKeys:m,onMapChange:g,stopEventPropagation:h=!0,rootRef:b,disabledIndices:v,modifierKeys:w,highlightItemOnHover:x=!1,tag:S="div",...R}=e,E=bo(),{props:k,highlightedIndex:M,onHighlightedIndexChange:C,elementsRef:O,onMapChange:I,relayKeyboardEvent:D}=G2({grid:p,loopFocus:f,onLoop:y,orientation:d,highlightedIndex:l,onHighlightedIndexChange:u,rootRef:b,stopEventPropagation:h,enableHomeAndEndKeys:m,direction:E,disabledIndices:v,modifierKeys:w}),N=ke(S,e,{state:i,ref:r,props:[k,...s,R],stateAttributesMapping:a}),P=c.useMemo(()=>({highlightedIndex:M,onHighlightedIndexChange:C,highlightItemOnHover:x,relayKeyboardEvent:D}),[M,C,x,D]);return K.jsx(cu.Provider,{value:P,children:K.jsx(gs,{elementsRef:O,onMapChange:z=>{g==null||g(z),I(z)},children:N})})}const OE=c.forwardRef(function(t,n){const{activateOnFocus:o=!1,className:r,loopFocus:s=!0,render:i,style:a,...l}=t,{orientation:u,setTabMap:d,tabActivationDirection:p}=Cs(),[f,y]=c.useState(0),[m,g]=c.useState(null),h=c.useRef(new Set),b=c.useRef(new Set),v=c.useRef(null);re(()=>{if(typeof ResizeObserver>"u")return;const k=new ResizeObserver(()=>{h.current.forEach(M=>{M()})});return v.current=k,m&&k.observe(m),b.current.forEach(M=>{k.observe(M)}),()=>{k.disconnect(),v.current=null}},[m]);const w=le(k=>(h.current.add(k),()=>{h.current.delete(k)})),x=le(k=>{var M;return b.current.add(k),(M=v.current)==null||M.observe(k),()=>{var C;b.current.delete(k),(C=v.current)==null||C.unobserve(k)}}),S={orientation:u,tabActivationDirection:p},R={"aria-orientation":u==="vertical"?"vertical":void 0,role:"tablist"},E=c.useMemo(()=>({activateOnFocus:o,registerIndicatorUpdateListener:w,registerTabResizeObserverElement:x,tabsListElement:m}),[o,w,x,m]);return K.jsx(ip.Provider,{value:E,children:K.jsx(cp,{render:i,className:r,style:a,state:S,refs:[n,g],props:[R,l],stateAttributesMapping:Xo,highlightedIndex:f,enableHomeAndEndKeys:!0,loopFocus:s,orientation:u,onHighlightedIndexChange:y,onMapChange:d,disabledIndices:Nt})})});function AE(e){return Qd("alert-dialog",e)}const DE=Rv;function q2(e){if(!e)return null;for(const t of e.elements){const n=t.tagName;if(n==="BUTTON"||n==="INPUT"){const o=t;if(o.type==="submit")return o}}return null}function lp(e){return{checked(t){return e.indeterminate?{}:t?{"data-checked":""}:{"data-unchecked":""}},...bs}}const X2=c.createContext(void 0);function K2(){return c.useContext(X2)}const up=c.createContext(void 0);function Z2(){const e=c.useContext(up);if(e===void 0)throw new Error(Ne(14));return e}const Q2="data-parent",NE=c.forwardRef(function(t,n){const{checked:o,className:r,defaultChecked:s=!1,"aria-labelledby":i,disabled:a=!1,form:l,id:u,indeterminate:d=!1,inputRef:p,name:f,onCheckedChange:y,parent:m=!1,readOnly:g=!1,render:h,required:b=!1,uncheckedValue:v,value:w,nativeButton:x=!1,style:S,...R}=t,{clearErrors:E}=ws(),{disabled:k,name:M,setDirty:C,setFilled:O,setFocused:I,setTouched:D,state:N,validationMode:P,validityData:z,validation:L}=vo(),A=k2(),{labelId:F,controlId:T,registerControlId:_,getDescriptionProps:j}=Yo(),$=K2(),U=($==null?void 0:$.allValues)===void 0?void 0:$.parent,Y=U!==void 0,V=k||A.disabled||($==null?void 0:$.disabled)||a,Q=M??f,H=w??Q,G=rt(),ue=rt();let ne=u||T;Y&&(m?ne=ue:H!==void 0?ne=`${U.id}-${H}`:ne||(ne=ue));let te={};Y&&(m?te=U.getParentProps():H!==void 0&&(te=U.getChildProps(H)));const{checked:J=o,indeterminate:ee=d,onCheckedChange:ie,...xe}=te,ae=$==null?void 0:$.value,he=c.useRef(null),oe=at(()=>Symbol()),ge=c.useRef(!1),{getButtonProps:de,buttonRef:ce}=Tt({disabled:V,native:x}),fe=($==null?void 0:$.validation)??L,[B,q]=Lt({controlled:H!==void 0&&ae!==void 0&&!m?ae.includes(H):J,default:s,name:"Checkbox",state:"checked"}),se=Y?!!J:B,Z=Y&&ee||d;re(()=>{_!==Ke&&(ge.current=!0,_(oe.current,ne))},[ne,_,oe]),c.useEffect(()=>{const Se=oe.current;return()=>{!ge.current||_===Ke||(ge.current=!1,_(Se,void 0))}},[_,oe]),vs(he,G,B,void 0,!$&&!V,f);const X=c.useRef(null),pe=fe.registerInput,be=$?H:void 0,Le=c.useCallback(Se=>pe(Se,{controlRef:he,value:be}),[pe,be]),Ue=Dt(p,X,m?void 0:Le),qe=Zf(i,F,X,!x,ne??void 0);re(()=>{X.current&&(X.current.indeterminate=Z,B&&O(!0))},[B,Z,O]),ys(B,()=>{$||(E(Q),O(B),C(B!==z.initialValue),fe.change(B))});const st=St({checked:B,disabled:V,form:l,name:m?void 0:Q,id:x?void 0:ne??void 0,required:b,ref:Ue,style:Q?ta:Bo,tabIndex:-1,type:"checkbox","aria-hidden":!0,onChange(Se){if(Se.nativeEvent.defaultPrevented)return;if(g){Se.preventDefault();return}const je=Se.currentTarget.checked,Ye=Re(Rt,Se.nativeEvent);if(y==null||y(je,Ye),!Ye.isCanceled&&(ie==null||ie(je,Ye),!Ye.isCanceled&&(q(je),H!==void 0&&$!==void 0&&!m&&!Y))){const Be=je?[...$.value,H]:$.value.filter(Xe=>Xe!==H);$.setValue(Be,Ye)}},onClick(Se){Se.stopPropagation()},onFocus(){var Se;(Se=he.current)==null||Se.focus()}},w!==void 0?{value:($?B&&w:w)||""}:We,j,Se=>fe.getValidationProps(V,Se));c.useEffect(()=>{if(!U||H===void 0)return;const Se=U.disabledStatesRef.current;return Se.set(H,V),()=>{Se.delete(H)}},[U,V,H]);const _e=c.useMemo(()=>({...N,checked:se,disabled:V,readOnly:g,required:b,indeterminate:Z}),[N,se,V,g,b,Z]),Je=lp(_e),ct=ke("span",t,{state:_e,ref:[ce,he,n],props:[{id:x?ne??void 0:G,role:"checkbox","aria-checked":Z?"mixed":se,"aria-readonly":g||void 0,"aria-required":b||void 0,"aria-labelledby":qe,[Q2]:m?"":void 0,onFocus(){V||I(!0)},onBlur(){const Se=X.current;Se&&(D(!0),I(!1),P==="onBlur"&&fe.commit($?ae:Se.checked))},onKeyDown(Se){var Ae;if(Se.key!=="Enter"||(Se.preventBaseUIHandler(),Se.defaultPrevented))return;const je=((Ae=X.current)==null?void 0:Ae.form)??null,Ye=Se.currentTarget,Be=Se.nativeEvent,Xe=Se.preventDefault,pt=Be.preventDefault;let we=!1;Se.preventDefault=()=>{we=!0,Xe.call(Se)},Be.preventDefault=()=>{we=!0,pt.call(Be)},pt.call(Be),He(Ye).queueMicrotask(()=>{var Qe;Se.preventDefault=Xe,Be.preventDefault=pt,we||(Qe=q2(je))==null||Qe.click()})},onClick(Se){if(g||V)return;Se.preventDefault();const je=X.current;je&&Qn(je,Se)}},R,xe,de,j,Se=>fe.getValidationProps(V,Se)],stateAttributesMapping:Je});return K.jsxs(up.Provider,{value:_e,children:[ct,!B&&!$&&Q&&!m&&v!==void 0&&K.jsx("input",{type:"hidden",form:l,name:Q,value:v,disabled:V}),K.jsx("input",{...st,suppressHydrationWarning:!0})]})}),LE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,keepMounted:i=!1,...a}=t,l=Z2(),u=l.checked||l.indeterminate,{mounted:d,transitionStatus:p,setMounted:f}=ln(u),y=c.useRef(null),m={...l,transitionStatus:p};kt({open:u,ref:y,onComplete(){u||f(!1)}});const h={...lp(l),...Gt},b=i||d,v=ke("span",t,{ref:[n,y],state:m,stateAttributesMapping:h,props:a});return b?v:null});function _E(e){const[t,n]=c.useState({getBoundingClientRect(){return DOMRect.fromRect({width:0,height:0,x:0,y:0})}}),o=c.useRef(null),r=c.useRef(null),s=c.useRef(null),i=c.useRef(null),a=c.useRef(!0),l=c.useRef(null),u=bn(),d=c.useMemo(()=>({anchor:t,setAnchor:n,actionsRef:s,backdropRef:o,internalBackdropRef:r,positionerRef:i,allowMouseUpTriggerRef:a,initialCursorPointRef:l,rootId:u}),[t,u]);return K.jsx(Mu.Provider,{value:d,children:K.jsx($i.Provider,{value:void 0,children:K.jsx(F1,{...e})})})}const Ll=500,FE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,{setAnchor:a,actionsRef:l,internalBackdropRef:u,backdropRef:d,positionerRef:p,allowMouseUpTriggerRef:f,initialCursorPointRef:y,rootId:m}=Kr(!1),{store:g}=cn(!1),h=g.useState("open"),b=g.useState("disabled"),v=c.useRef(null),w=c.useRef(null),x=Ge(),S=Ge(),R=c.useRef(!1),E=c.useRef(null);function k(P,z,L){var F;const A=L.type.startsWith("touch");y.current={x:P,y:z},a({getBoundingClientRect(){return DOMRect.fromRect({width:A?10:0,height:A?10:0,x:P,y:z})}}),R.current=!1,(F=l.current)==null||F.setOpen(!0,Re(Rn,L)),S.start(Ll,()=>{R.current=!0})}function M(P){var A;if(b)return;f.current=!0,It(P),k(P.clientX,P.clientY,P.nativeEvent);const z=Te(v.current);(A=E.current)==null||A.abort();const L=new AbortController;E.current=L,z.addEventListener("mouseup",F=>{var _;if(f.current=!1,!R.current)return;S.clear(),R.current=!1;const T=et(F);ve(p.current,T)||m&&T&&Ia(T)===m||(_=l.current)==null||_.setOpen(!1,Re(Bi,F))},{once:!0,signal:L.signal})}function C(){x.clear(),w.current=null}function O(P){if(b){C();return}if(f.current=!1,P.touches.length!==1){C();return}P.stopPropagation();const z=P.touches[0],L={x:z.clientX,y:z.clientY};w.current=L,x.start(Ll,()=>{k(L.x,L.y,P.nativeEvent)})}function I(P){if(P.touches.length!==1){C();return}if(x.isStarted()&&w.current){const z=P.touches[0],L=10,A=Math.abs(z.clientX-w.current.x),F=Math.abs(z.clientY-w.current.y);(A>L||F>L)&&C()}}return c.useEffect(()=>()=>{var P;(P=E.current)==null||P.abort()},[]),c.useEffect(()=>{function P(L){if(b)return;const F=et(L);(ve(v.current,F)||ve(u.current,F)||ve(d.current,F))&&L.preventDefault()}const z=Te(v.current);return Me(z,"contextmenu",P)},[d,b,u]),ke("div",t,{state:{open:h},ref:[v,n],props:[{onContextMenu:M,onTouchStart:O,onTouchMove:I,onTouchEnd:C,onTouchCancel:C,style:{WebkitTouchCallout:"none"}},i],stateAttributesMapping:Lr})}),dp=c.createContext(void 0);function J2(){return c.useContext(dp)}const zE=c.forwardRef(function(t,n){const{className:o,defaultPressed:r=!1,disabled:s=!1,form:i,onPressedChange:a,pressed:l,render:u,type:d,value:p,nativeButton:f=!0,style:y,...m}=t,g=rt(p||void 0),h=J2(),b=(h==null?void 0:h.value)??[],v=h?void 0:r,w=(s||(h==null?void 0:h.disabled))??!1,[x,S]=Lt({controlled:h?g!==void 0&&b.indexOf(g)>-1:l,default:v,name:"Toggle",state:"pressed"}),{getButtonProps:R,buttonRef:E}=Tt({disabled:w,native:f}),k={disabled:w,pressed:x},M=[E,n],C=[{"aria-pressed":x,onClick(D){var z;const N=!x,P=Re(Rt,D.nativeEvent);a==null||a(N,P),!P.isCanceled&&(g&&((z=h==null?void 0:h.setGroupValue)==null||z.call(h,g,N,P)),!P.isCanceled&&S(N))}},m,R],O=ke("button",t,{enabled:!h,state:k,ref:M,props:C}),I=c.useMemo(()=>({disabled:w,focusableWhenDisabled:!1}),[w]);return h?K.jsx($d,{tag:"button",render:u,className:o,style:y,metadata:I,state:k,refs:M,props:C}):O}),ew=c.createContext(void 0);function tw(){return c.useContext(ew)}const VE=c.forwardRef(function(t,n){const{defaultValue:o,disabled:r=!1,loopFocus:s=!0,onValueChange:i,orientation:a="horizontal",multiple:l=!1,value:u,className:d,render:p,style:f,...y}=t,m=Ca(),g=tw(),h=u!==void 0||o!==void 0,b=((m==null?void 0:m.disabled)??!1)||((g==null?void 0:g.disabled)??!1)||r,[v,w]=Lt({controlled:u,default:u===void 0?o??Nt:void 0,name:"ToggleGroup",state:"value"}),x=le((M,C,O)=>{let I;l?(I=v.slice(),C?I.push(M):I.splice(v.indexOf(M),1)):I=C?[M]:[],i==null||i(I,O),!O.isCanceled&&w(I)}),S={disabled:b,multiple:l,orientation:a},R=c.useMemo(()=>({disabled:b,setGroupValue:x,value:v,isValueInitialized:h}),[b,x,v,h]),E={role:"group"},k=ke("div",t,{enabled:!!m,state:S,ref:n,props:[E,y]});return K.jsx(dp.Provider,{value:R,children:m?k:K.jsx(cp,{render:p,className:d,style:f,state:S,refs:[n],props:[E,y],loopFocus:s,enableHomeAndEndKeys:!0,orientation:a})})});function nw(e,t){const n=getComputedStyle(e),o=parseFloat(n.fontSize);return t*o}function ow(e,t){const n=getComputedStyle(e.ownerDocument.documentElement),o=parseFloat(n.fontSize);return t*o}function rw(e){return e/100*window.innerHeight}function sw(e){return e/100*window.innerWidth}function iw(e){switch(typeof e){case"number":return[e,"px"];case"string":{const t=parseFloat(e);return e.endsWith("%")?[t,"%"]:e.endsWith("px")?[t,"px"]:e.endsWith("rem")?[t,"rem"]:e.endsWith("em")?[t,"em"]:e.endsWith("vh")?[t,"vh"]:e.endsWith("vw")?[t,"vw"]:[t,"%"]}}}function Oo({groupSize:e,panelElement:t,styleProp:n}){let o;const[r,s]=iw(n);switch(s){case"%":{o=r/100*e;break}case"px":{o=r;break}case"rem":{o=ow(t,r);break}case"em":{o=nw(t,r);break}case"vh":{o=rw(r);break}case"vw":{o=sw(r);break}}return o}function mt(e){return parseFloat(e.toFixed(3))}function go({group:e}){const{orientation:t,panels:n}=e;return n.reduce((o,r)=>(o+=t==="horizontal"?r.element.offsetWidth:r.element.offsetHeight,o),0)}function Ti(e){const{panels:t}=e,n=go({group:e});return n===0?t.map(o=>({groupResizeBehavior:o.panelConstraints.groupResizeBehavior,collapsedSize:0,collapsible:o.panelConstraints.collapsible===!0,defaultSize:void 0,disabled:o.panelConstraints.disabled,minSize:0,maxSize:100,panelId:o.id})):t.map(o=>{const{element:r,panelConstraints:s}=o;let i=0;if(s.collapsedSize!==void 0){const d=Oo({groupSize:n,panelElement:r,styleProp:s.collapsedSize});i=mt(d/n*100)}let a;if(s.defaultSize!==void 0){const d=Oo({groupSize:n,panelElement:r,styleProp:s.defaultSize});a=mt(d/n*100)}let l=0;if(s.minSize!==void 0){const d=Oo({groupSize:n,panelElement:r,styleProp:s.minSize});l=mt(d/n*100)}let u=100;if(s.maxSize!==void 0){const d=Oo({groupSize:n,panelElement:r,styleProp:s.maxSize});u=mt(d/n*100)}return{groupResizeBehavior:s.groupResizeBehavior,collapsedSize:i,collapsible:s.collapsible===!0,defaultSize:a,disabled:s.disabled,minSize:l,maxSize:u,panelId:o.id}})}function $e(e,t="Assertion error"){if(!e)throw Error(t)}function Ii(e,t){return Array.from(t).sort(e==="horizontal"?aw:cw)}function aw(e,t){const n=e.element.offsetLeft-t.element.offsetLeft;return n!==0?n:e.element.offsetWidth-t.element.offsetWidth}function cw(e,t){const n=e.element.offsetTop-t.element.offsetTop;return n!==0?n:e.element.offsetHeight-t.element.offsetHeight}function fp(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function pp(e,t){return{x:e.x>=t.left&&e.x<=t.right?0:Math.min(Math.abs(e.x-t.left),Math.abs(e.x-t.right)),y:e.y>=t.top&&e.y<=t.bottom?0:Math.min(Math.abs(e.y-t.top),Math.abs(e.y-t.bottom))}}function lw({orientation:e,rects:t,targetRect:n}){const o={x:n.x+n.width/2,y:n.y+n.height/2};let r,s=Number.MAX_VALUE;for(const i of t){const{x:a,y:l}=pp(o,i),u=e==="horizontal"?a:l;u<s&&(s=u,r=i)}return $e(r,"No rect found"),r}let wr;function uw(){return wr===void 0&&(typeof matchMedia=="function"?wr=!!matchMedia("(pointer:coarse)").matches:wr=!1),wr}function hp(e){const{element:t,orientation:n,panels:o,separators:r}=e,s=Ii(n,Array.from(t.children).filter(fp).map(m=>({element:m}))).map(({element:m})=>m),i=[];let a=!1,l=!1,u=-1,d=-1,p=0,f,y=[];{let m=-1;for(const g of s)g.hasAttribute("data-panel")&&(m++,g.hasAttribute("data-disabled")||(p++,u===-1&&(u=m),d=m))}if(p>1){let m=-1;for(const g of s)if(g.hasAttribute("data-panel")){m++;const h=o.find(b=>b.element===g);if(h){if(f){const b=f.element.getBoundingClientRect(),v=g.getBoundingClientRect();let w;if(l){const x=n==="horizontal"?new DOMRect(b.right,b.top,0,b.height):new DOMRect(b.left,b.bottom,b.width,0),S=n==="horizontal"?new DOMRect(v.left,v.top,0,v.height):new DOMRect(v.left,v.top,v.width,0);switch(y.length){case 0:{w=[x,S];break}case 1:{const R=y[0],E=lw({orientation:n,rects:[b,v],targetRect:R.element.getBoundingClientRect()});w=[R,E===b?S:x];break}default:{w=y;break}}}else y.length?w=y:w=[n==="horizontal"?new DOMRect(b.right,v.top,v.left-b.right,v.height):new DOMRect(v.left,b.bottom,v.width,v.top-b.bottom)];for(const x of w){let S="width"in x?x:x.element.getBoundingClientRect();const R=uw()?e.resizeTargetMinimumSize.coarse:e.resizeTargetMinimumSize.fine;if(S.width<R){const k=R-S.width;S=new DOMRect(S.x-k/2,S.y,S.width+k,S.height)}if(S.height<R){const k=R-S.height;S=new DOMRect(S.x,S.y-k/2,S.width,S.height+k)}const E=m<=u||m>d;!a&&!E&&i.push({group:e,groupSize:go({group:e}),panels:[f,h],separator:"width"in x?void 0:x,rect:S}),a=!1}}l=!1,f=h,y=[]}}else if(g.hasAttribute("data-separator")){g.ariaDisabled!==null&&(a=!0);const h=r.find(b=>b.element===g);h?y.push(h):(f=void 0,y=[])}else l=!0}return i}var fn;class gp{constructor(){ic(this,fn,{})}addListener(t,n){const o=Ro(this,fn)[t];return o===void 0?Ro(this,fn)[t]=[n]:o.includes(n)||o.push(n),()=>{this.removeListener(t,n)}}emit(t,n){const o=Ro(this,fn)[t];if(o!==void 0)if(o.length===1)o[0].call(null,n);else{let r=!1,s=null;const i=Array.from(o);for(let a=0;a<i.length;a++){const l=i[a];try{l.call(null,n)}catch(u){s===null&&(r=!0,s=u)}}if(r)throw s}}removeAllListeners(){ac(this,fn,{})}removeListener(t,n){const o=Ro(this,fn)[t];if(o!==void 0){const r=o.indexOf(n);r>=0&&o.splice(r,1)}}}fn=new WeakMap;let oo={cursorFlags:0,state:"inactive"};const Ya=new gp;function _n(){return oo}function dw(e){return Ya.addListener("change",e)}function fw(e){const t=oo,n={...oo};n.cursorFlags=e,oo=n,Ya.emit("change",{prev:t,next:n})}function ro(e){const t=oo;oo=e,Ya.emit("change",{prev:t,next:e})}const pw=e=>e,Xs=()=>{},mp=1,yp=2,bp=4,vp=8,_l=3,Fl=12;let Sr;function zl(){return Sr===void 0&&(Sr=!1,typeof window<"u"&&(window.navigator.userAgent.includes("Chrome")||window.navigator.userAgent.includes("Firefox"))&&(Sr=!0)),Sr}function hw({cursorFlags:e,groups:t,state:n}){let o=0,r=0;switch(n){case"active":case"hover":t.forEach(s=>{if(!s.mutableState.disableCursor)switch(s.orientation){case"horizontal":{o++;break}case"vertical":{r++;break}}})}if(!(o===0&&r===0)){switch(n){case"active":{if(e&&zl()){const s=(e&mp)!==0,i=(e&yp)!==0,a=(e&bp)!==0,l=(e&vp)!==0;if(s)return a?"se-resize":l?"ne-resize":"e-resize";if(i)return a?"sw-resize":l?"nw-resize":"w-resize";if(a)return"s-resize";if(l)return"n-resize"}break}}return zl()?o>0&&r>0?"move":o>0?"ew-resize":"ns-resize":o>0&&r>0?"grab":o>0?"col-resize":"row-resize"}}const Vl=new WeakMap;function qa(e){if(e.defaultView===null||e.defaultView===void 0)return;let{prevStyle:t,styleSheet:n}=Vl.get(e)??{};n===void 0&&(n=new e.defaultView.CSSStyleSheet,e.adoptedStyleSheets&&(Object.isExtensible(e.adoptedStyleSheets)?e.adoptedStyleSheets.push(n):e.adoptedStyleSheets=[...e.adoptedStyleSheets,n]));const o=_n();switch(o.state){case"active":case"hover":{const r=hw({cursorFlags:o.cursorFlags,groups:o.hitRegions.map(i=>i.group),state:o.state}),s=`*, *:hover {cursor: ${r} !important; }`;if(t===s)return;t=s,r?n.cssRules.length===0?n.insertRule(s):n.replaceSync(s):n.cssRules.length===1&&n.deleteRule(0);break}case"inactive":{t=void 0,n.cssRules.length===1&&n.deleteRule(0);break}}Vl.set(e,{prevStyle:t,styleSheet:n})}let Wt=new Map;const xp=new gp;function gw(e){Wt=new Map(Wt),Wt.delete(e)}function $l(e,t){for(const[n]of Wt)if(n.id===e)return n}function yn(e,t){for(const[n,o]of Wt)if(n.id===e)return o;if(t)throw Error(`Could not find data for Group with id ${e}`)}function Hn(){return Wt}function Xa(e,t){return xp.addListener("groupChange",n=>{n.group.id===e&&t(n)})}function sn(e,t,n){const o=Wt.get(e);Wt=new Map(Wt),Wt.set(e,t),xp.emit("groupChange",{group:e,isUserInteraction:(n==null?void 0:n.isUserInteraction)===!0,prev:o,next:t})}function wp(e){const t=_n();let n=!1;switch(t.state){case"active":ro({cursorFlags:0,state:"inactive"}),t.hitRegions.length>0&&(qa(e),n=!0,t.hitRegions.forEach(o=>{const r=yn(o.group.id,!0);sn(o.group,r,{isUserInteraction:!0})}))}return n}function Hl(e){e.defaultPrevented||wp(e.currentTarget)}function mw(e,t,n){let o,r={x:1/0,y:1/0};for(const s of t){const i=pp(n,s.rect);switch(e){case"horizontal":{i.x<=r.x&&(o=s,r=i);break}case"vertical":{i.y<=r.y&&(o=s,r=i);break}}}return o?{distance:r,hitRegion:o}:void 0}function yw(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}function bw(e,t){if(e===t)throw new Error("Cannot compare node with itself");const n={a:Wl(e),b:Wl(t)};let o;for(;n.a.at(-1)===n.b.at(-1);)o=n.a.pop(),n.b.pop();$e(o,"Stacking order can only be calculated for elements with a common ancestor");const r={a:Bl(jl(n.a)),b:Bl(jl(n.b))};if(r.a===r.b){const s=o.childNodes,i={a:n.a.at(-1),b:n.b.at(-1)};let a=s.length;for(;a--;){const l=s[a];if(l===i.a)return 1;if(l===i.b)return-1}}return Math.sign(r.a-r.b)}const vw=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function xw(e){const t=getComputedStyle(Sp(e)??e).display;return t==="flex"||t==="inline-flex"}function ww(e){const t=getComputedStyle(e);return!!(t.position==="fixed"||t.zIndex!=="auto"&&(t.position!=="static"||xw(e))||+t.opacity<1||"transform"in t&&t.transform!=="none"||"webkitTransform"in t&&t.webkitTransform!=="none"||"mixBlendMode"in t&&t.mixBlendMode!=="normal"||"filter"in t&&t.filter!=="none"||"webkitFilter"in t&&t.webkitFilter!=="none"||"isolation"in t&&t.isolation==="isolate"||vw.test(t.willChange)||t.webkitOverflowScrolling==="touch")}function jl(e){let t=e.length;for(;t--;){const n=e[t];if($e(n,"Missing node"),ww(n))return n}return null}function Bl(e){return e&&Number(getComputedStyle(e).zIndex)||0}function Wl(e){const t=[];for(;e;)t.push(e),e=Sp(e);return t}function Sp(e){const{parentNode:t}=e;return yw(t)?t.host:t}function Sw(e,t){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}function Rw({groupElement:e,hitRegion:t,pointerEventTarget:n}){if(!fp(n)||n.contains(e)||e.contains(n))return!0;if(bw(n,e)>0){let o=n;for(;o;){if(o.contains(e))return!0;if(Sw(o.getBoundingClientRect(),t))return!1;o=o.parentElement}}return!0}function Ka(e,t){const n=[];return t.forEach((o,r)=>{if(r.disabled)return;const s=hp(r),i=mw(r.orientation,s,{x:e.clientX,y:e.clientY});i&&i.distance.x<=0&&i.distance.y<=0&&Rw({groupElement:r.element,hitRegion:i.hitRegion.rect,pointerEventTarget:e.target})&&n.push(i.hitRegion)}),n}function kw(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function ft(e,t,n=0){return Math.abs(mt(e)-mt(t))<=n}function jt(e,t){return ft(e,t)?0:e>t?1:-1}function Zn({overrideDisabledPanels:e,panelConstraints:t,prevSize:n,size:o}){const{collapsedSize:r=0,collapsible:s,disabled:i,maxSize:a=100,minSize:l=0}=t;if(i&&!e)return n;if(jt(o,l)<0)if(s){const u=(r+l)/2;jt(o,u)<0?o=r:o=l}else o=l;return o=Math.min(a,o),o=mt(o),o}function Ho({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:o,prevLayout:r,trigger:s}){if(ft(e,0))return t;const i=s==="imperative-api",a=Object.values(t),l=Object.values(r),u=[...a],[d,p]=o;$e(d!=null,"Invalid first pivot index"),$e(p!=null,"Invalid second pivot index");let f=0;switch(s){case"keyboard":{{const g=e<0?p:d,h=n[g];$e(h,`Panel constraints not found for index ${g}`);const{collapsedSize:b=0,collapsible:v,minSize:w=0}=h;if(v){const x=a[g];if($e(x!=null,`Previous layout not found for panel index ${g}`),ft(x,b)){const S=w-x;jt(S,Math.abs(e))>0&&(e=e<0?0-S:S)}}}{const g=e<0?d:p,h=n[g];$e(h,`No panel constraints found for index ${g}`);const{collapsedSize:b=0,collapsible:v,minSize:w=0}=h;if(v){const x=a[g];if($e(x!=null,`Previous layout not found for panel index ${g}`),ft(x,w)){const S=x-b;jt(S,Math.abs(e))>0&&(e=e<0?0-S:S)}}}break}default:{const g=e<0?p:d,h=n[g];$e(h,`Panel constraints not found for index ${g}`);const b=a[g],{collapsible:v,collapsedSize:w,minSize:x}=h;if(v&&jt(b,x)<0)if(e>0){const S=x-w,R=S/2,E=b+e;jt(E,x)<0&&(e=jt(e,R)<=0?0:S)}else{const S=x-w,R=100-S/2,E=b-e;jt(E,x)<0&&(e=jt(100+e,R)>0?0:-S)}break}}{const g=e<0?1:-1;let h=e<0?p:d,b=0;for(;;){const w=a[h];$e(w!=null,`Previous layout not found for panel index ${h}`);const x=Zn({overrideDisabledPanels:i,panelConstraints:n[h],prevSize:w,size:100})-w;if(b+=x,h+=g,h<0||h>=n.length)break}const v=Math.min(Math.abs(e),Math.abs(b));e=e<0?0-v:v}{let g=e<0?d:p;for(;g>=0&&g<n.length;){const h=Math.abs(e)-Math.abs(f),b=a[g];$e(b!=null,`Previous layout not found for panel index ${g}`);const v=b-h,w=Zn({overrideDisabledPanels:i,panelConstraints:n[g],prevSize:b,size:v});if(!ft(b,w)&&(f+=b-w,u[g]=w,f.toFixed(3).localeCompare(Math.abs(e).toFixed(3),void 0,{numeric:!0})>=0))break;e<0?g--:g++}}if(kw(l,u))return r;{const g=e<0?p:d,h=a[g];$e(h!=null,`Previous layout not found for panel index ${g}`);const b=h+f,v=Zn({overrideDisabledPanels:i,panelConstraints:n[g],prevSize:h,size:b});if(u[g]=v,!ft(v,b)){let w=b-v,x=e<0?p:d;for(;x>=0&&x<n.length;){const S=u[x];$e(S!=null,`Previous layout not found for panel index ${x}`);const R=S+w,E=Zn({overrideDisabledPanels:i,panelConstraints:n[x],prevSize:S,size:R});if(ft(S,E)||(w-=E-S,u[x]=E),ft(w,0))break;e>0?x--:x++}}}const y=Object.values(u).reduce((g,h)=>h+g,0);if(!ft(y,100,.1))return r;const m=Object.keys(r);return u.reduce((g,h,b)=>(g[m[b]]=h,g),{})}function Fn(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(t[n]===void 0||jt(e[n],t[n])!==0)return!1;return!0}function zn({layout:e,panelConstraints:t}){const n=Object.values(e),o=[...n],r=o.reduce((a,l)=>a+l,0);if(o.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${o.map(a=>`${a}%`).join(", ")}`);if(!ft(r,100)&&o.length>0)for(let a=0;a<t.length;a++){const l=o[a];$e(l!=null,`No layout data found for index ${a}`);const u=100/r*l;o[a]=u}let s=0;for(let a=0;a<t.length;a++){const l=n[a];$e(l!=null,`No layout data found for index ${a}`);const u=o[a];$e(u!=null,`No layout data found for index ${a}`);const d=Zn({overrideDisabledPanels:!0,panelConstraints:t[a],prevSize:l,size:u});u!=d&&(s+=u-d,o[a]=d)}if(!ft(s,0))for(let a=0;a<t.length;a++){const l=o[a];$e(l!=null,`No layout data found for index ${a}`);const u=l+s,d=Zn({overrideDisabledPanels:!0,panelConstraints:t[a],prevSize:l,size:u});if(l!==d&&(s-=d-l,o[a]=d,ft(s,0)))break}const i=Object.keys(e);return o.reduce((a,l,u)=>(a[i[u]]=l,a),{})}function Rp({groupId:e,panelId:t}){const n=()=>{const l=Hn();for(const[u,{defaultLayoutDeferred:d,derivedPanelConstraints:p,layout:f,groupSize:y,separatorToPanels:m}]of l)if(u.id===e)return{defaultLayoutDeferred:d,derivedPanelConstraints:p,group:u,groupSize:y,layout:f,separatorToPanels:m};throw Error(`Group ${e} not found`)},o=()=>{const l=n().derivedPanelConstraints.find(u=>u.panelId===t);if(l!==void 0)return l;throw Error(`Panel constraints not found for Panel ${t}`)},r=()=>{const l=n().group.panels.find(u=>u.id===t);if(l!==void 0)return l;throw Error(`Layout not found for Panel ${t}`)},s=()=>{const l=n().layout[t];if(l!==void 0)return l;throw Error(`Layout not found for Panel ${t}`)},i=({nextSize:l,panels:u,prevLayout:d,derivedPanelConstraints:p})=>{const f=s(),y=u.findIndex(h=>h.id===t),m=y===0,g=y===u.length-1;if(g&&l<f&&(m||u.slice(0,y).every((h,b)=>{const v=p[b];return(v==null?void 0:v.collapsible)&&ft(v.collapsedSize,d[v.panelId])}))){const h=u.slice(0,y).reduce((b,v)=>b+d[v.id],0);return{...d,[t]:mt(100-h)}}return Ho({delta:g?f-l:l-f,initialLayout:d,panelConstraints:p,pivotIndices:g?[y-1,y]:[y,y+1],prevLayout:d,trigger:"imperative-api"})},a=l=>{const u=s();if(l===u)return;const{defaultLayoutDeferred:d,derivedPanelConstraints:p,group:f,groupSize:y,layout:m,separatorToPanels:g}=n(),h=i({nextSize:l,panels:f.panels,prevLayout:m,derivedPanelConstraints:p}),b=zn({layout:h,panelConstraints:p});Fn(m,b)||sn(f,{defaultLayoutDeferred:d,derivedPanelConstraints:p,groupSize:y,layout:b,separatorToPanels:g})};return{collapse:()=>{const{collapsible:l,collapsedSize:u}=o(),{mutableValues:d}=r(),p=s();l&&p!==u&&(d.expandToSize=p,a(u))},expand:()=>{const{collapsible:l,collapsedSize:u,minSize:d}=o(),{mutableValues:p}=r(),f=s();if(l&&f===u){let y=p.expandToSize??d;y===0&&(y=1),a(y)}},getSize:()=>{const{group:l}=n(),u=s(),{element:d}=r(),p=l.orientation==="horizontal"?d.offsetWidth:d.offsetHeight;return{asPercentage:u,inPixels:p}},isCollapsed:()=>{const{collapsible:l,collapsedSize:u}=o(),d=s();return l&&ft(u,d)},resize:l=>{const{group:u}=n(),{element:d}=r(),p=go({group:u}),f=Oo({groupSize:p,panelElement:d,styleProp:l}),y=mt(f/p*100);a(y)}}}function Ul(e){if(e.defaultPrevented)return;const t=Hn();Ka(e,t).forEach(n=>{if(n.separator&&!n.separator.disableDoubleClick){const o=n.panels.find(r=>r.panelConstraints.defaultSize!==void 0);if(o){const r=o.panelConstraints.defaultSize,s=Rp({groupId:n.group.id,panelId:o.id});s&&r!==void 0&&(s.resize(r),e.preventDefault())}}})}function Ir(e){const t=Hn();for(const[n]of t)if(n.separators.some(o=>o.element===e))return n;throw Error("Could not find parent Group for separator element")}function kp({groupId:e}){const t=()=>{const n=Hn();for(const[o,r]of n)if(o.id===e)return{group:o,...r};throw Error(`Could not find Group with id "${e}"`)};return{getLayout(){const{defaultLayoutDeferred:n,layout:o}=t();return n?{}:o},setLayout(n){const{defaultLayoutDeferred:o,derivedPanelConstraints:r,group:s,groupSize:i,layout:a,separatorToPanels:l}=t(),u=zn({layout:n,panelConstraints:r});return o?a:(Fn(a,u)||sn(s,{defaultLayoutDeferred:o,derivedPanelConstraints:r,groupSize:i,layout:u,separatorToPanels:l}),u)}}}function On(e,t){const n=Ir(e),o=yn(n.id,!0),r=n.separators.find(d=>d.element===e);$e(r,"Matching separator not found");const s=o.separatorToPanels.get(r);$e(s,"Matching panels not found");const i=s.map(d=>n.panels.indexOf(d)),a=kp({groupId:n.id}).getLayout(),l=Ho({delta:t,initialLayout:a,panelConstraints:o.derivedPanelConstraints,pivotIndices:i,prevLayout:a,trigger:"keyboard"}),u=zn({layout:l,panelConstraints:o.derivedPanelConstraints});Fn(a,u)||sn(n,{defaultLayoutDeferred:o.defaultLayoutDeferred,derivedPanelConstraints:o.derivedPanelConstraints,groupSize:o.groupSize,layout:u,separatorToPanels:o.separatorToPanels},{isUserInteraction:!0})}function Gl(e){if(e.defaultPrevented)return;const t=e.currentTarget,n=Ir(t);if(!n.disabled)switch(e.key){case"ArrowDown":{e.preventDefault(),n.orientation==="vertical"&&On(t,5);break}case"ArrowLeft":{e.preventDefault(),n.orientation==="horizontal"&&On(t,-5);break}case"ArrowRight":{e.preventDefault(),n.orientation==="horizontal"&&On(t,5);break}case"ArrowUp":{e.preventDefault(),n.orientation==="vertical"&&On(t,-5);break}case"End":{e.preventDefault(),On(t,100);break}case"Enter":{e.preventDefault();const o=Ir(t),r=yn(o.id,!0),{derivedPanelConstraints:s,layout:i,separatorToPanels:a}=r,l=o.separators.find(f=>f.element===t);$e(l,"Matching separator not found");const u=a.get(l);$e(u,"Matching panels not found");const d=u[0],p=s.find(f=>f.panelId===d.id);if($e(p,"Panel metadata not found"),p.collapsible){const f=i[d.id],y=p.collapsedSize===f?o.mutableState.expandedPanelSizes[d.id]??p.minSize:p.collapsedSize;On(t,y-f)}break}case"F6":{e.preventDefault();const o=Ir(t).separators.map(i=>i.element),r=Array.from(o).findIndex(i=>i===e.currentTarget);$e(r!==null,"Index not found");const s=e.shiftKey?r>0?r-1:o.length-1:r+1<o.length?r+1:0;o[s].focus({preventScroll:!0});break}case"Home":{e.preventDefault(),On(t,-100);break}}}function Yl(e){if(e.defaultPrevented||e.pointerType==="mouse"&&e.button>0)return;const t=Hn(),n=Ka(e,t),o=new Map;let r=!1;n.forEach(s=>{s.separator&&(r||(r=!0,s.separator.element.focus({focusVisible:!1,preventScroll:!0})));const i=t.get(s.group);i&&o.set(s.group,i.layout)}),ro({cursorFlags:0,hitRegions:n,initialLayoutMap:o,pointerDownAtPoint:{x:e.clientX,y:e.clientY},state:"active"}),n.length&&e.preventDefault()}function Ep({document:e,event:t,hitRegions:n,initialLayoutMap:o,mountedGroups:r,pointerDownAtPoint:s,prevCursorFlags:i}){let a=0;n.forEach(u=>{const{group:d,groupSize:p}=u,{orientation:f,panels:y}=d,{disableCursor:m}=d.mutableState;let g=0;s?f==="horizontal"?g=(t.clientX-s.x)/p*100:g=(t.clientY-s.y)/p*100:f==="horizontal"?g=t.clientX<0?-100:100:g=t.clientY<0?-100:100;const h=o.get(d),b=r.get(d);if(!h||!b)return;const{defaultLayoutDeferred:v,derivedPanelConstraints:w,groupSize:x,layout:S,separatorToPanels:R}=b;if(w&&S&&R){const E=Ho({delta:g,initialLayout:h,panelConstraints:w,pivotIndices:u.panels.map(k=>y.indexOf(k)),prevLayout:S,trigger:"mouse-or-touch"});if(Fn(E,S)){if(g!==0&&!m)switch(f){case"horizontal":{a|=g<0?mp:yp;break}case"vertical":{a|=g<0?bp:vp;break}}}else sn(u.group,{defaultLayoutDeferred:v,derivedPanelConstraints:w,groupSize:x,layout:E,separatorToPanels:R})}});let l=0;t.movementX===0?l|=i&_l:l|=a&_l,t.movementY===0?l|=i&Fl:l|=a&Fl,fw(l),qa(e)}function ql(e){const t=Hn(),n=_n();switch(n.state){case"active":Ep({document:e.currentTarget,event:e,hitRegions:n.hitRegions,initialLayoutMap:n.initialLayoutMap,mountedGroups:t,prevCursorFlags:n.cursorFlags})}}function Xl(e){var o,r;if(e.defaultPrevented)return;const t=_n(),n=Hn();switch(t.state){case"active":{if(e.buttons===0){ro({cursorFlags:0,state:"inactive"}),t.hitRegions.forEach(s=>{const i=yn(s.group.id,!0);sn(s.group,i,{isUserInteraction:!0})});return}for(const s of t.hitRegions)if(s.separator){const{element:i}=s.separator;(o=i.hasPointerCapture)!=null&&o.call(i,e.pointerId)||((r=i.setPointerCapture)==null||r.call(i,e.pointerId))}Ep({document:e.currentTarget,event:e,hitRegions:t.hitRegions,initialLayoutMap:t.initialLayoutMap,mountedGroups:n,pointerDownAtPoint:t.pointerDownAtPoint,prevCursorFlags:t.cursorFlags});break}default:{const s=Ka(e,n);s.length===0?t.state!=="inactive"&&ro({cursorFlags:0,state:"inactive"}):ro({cursorFlags:0,hitRegions:s,state:"hover"}),qa(e.currentTarget);break}}}function Kl(e){if(e.relatedTarget instanceof HTMLIFrameElement)switch(_n().state){case"hover":ro({cursorFlags:0,state:"inactive"})}}function Zl(e){e.defaultPrevented||e.pointerType==="mouse"&&e.button>0||wp(e.currentTarget)&&e.preventDefault()}function Ql(e){let t=0,n=0;const o={};for(const s of e)if(s.defaultSize!==void 0){t++;const i=mt(s.defaultSize);n+=i,o[s.panelId]=i}else o[s.panelId]=void 0;const r=e.length-t;if(r!==0){const s=mt((100-n)/r);for(const i of e)i.defaultSize===void 0&&(o[i.panelId]=s)}return o}function Ew(e,t,n){if(!n[0])return;const o=e.panels.find(l=>l.element===t);if(!o||!o.onResize)return;const r=go({group:e}),s=e.orientation==="horizontal"?o.element.offsetWidth:o.element.offsetHeight,i=o.mutableValues.prevSize,a={asPercentage:mt(s/r*100),inPixels:s};o.mutableValues.prevSize=a,o.onResize(a,o.id,i)}function Cw(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Pw({group:e,nextGroupSize:t,prevGroupSize:n,prevLayout:o}){if(n<=0||t<=0||n===t)return o;let r=0,s=0,i=!1;const a=new Map,l=[];for(const p of e.panels){const f=o[p.id]??0;switch(p.panelConstraints.groupResizeBehavior){case"preserve-pixel-size":{i=!0;const y=f/100*n,m=mt(y/t*100);a.set(p.id,m),r+=m;break}case"preserve-relative-size":default:{l.push(p.id),s+=f;break}}}if(!i||l.length===0)return o;const u=100-r,d={...o};if(a.forEach((p,f)=>{d[f]=p}),s>0)for(const p of l){const f=o[p]??0;d[p]=mt(f/s*u)}else{const p=mt(u/l.length);for(const f of l)d[f]=p}return d}function Mw(e,t){const n=e.map(r=>r.id),o=Object.keys(t);if(n.length!==o.length)return!1;for(const r of n)if(!o.includes(r))return!1;return!0}const qn=new Map;function Tw(e){let t=!0;$e(e.element.ownerDocument.defaultView,"Cannot register an unmounted Group");const n=e.element.ownerDocument.defaultView.ResizeObserver,o=new Set,r=new Set,s=new n(m=>{for(const g of m){const{borderBoxSize:h,target:b}=g;if(b===e.element){if(t){const v=go({group:e});if(v===0)return;const w=yn(e.id);if(!w)return;const x=Ti(e),S=w.defaultLayoutDeferred?Ql(x):w.layout,R=Pw({group:e,nextGroupSize:v,prevGroupSize:w.groupSize,prevLayout:S}),E=zn({layout:R,panelConstraints:x});if(!w.defaultLayoutDeferred&&Fn(w.layout,E)&&Cw(w.derivedPanelConstraints,x)&&w.groupSize===v)return;sn(e,{defaultLayoutDeferred:!1,derivedPanelConstraints:x,groupSize:v,layout:E,separatorToPanels:w.separatorToPanels})}}else Ew(e,b,h)}});s.observe(e.element),e.panels.forEach(m=>{$e(!o.has(m.id),`Panel ids must be unique; id "${m.id}" was used more than once`),o.add(m.id),m.onResize&&s.observe(m.element)});const i=go({group:e}),a=Ti(e),l=e.panels.map(({id:m})=>m).join(",");let u=e.mutableState.defaultLayout;u&&(Mw(e.panels,u)||(u=void 0));const d=e.mutableState.layouts[l]??u??Ql(a),p=zn({layout:d,panelConstraints:a}),f=e.element.ownerDocument;qn.set(f,(qn.get(f)??0)+1);const y=new Map;return hp(e).forEach(m=>{m.separator&&y.set(m.separator,m.panels)}),sn(e,{defaultLayoutDeferred:i===0,derivedPanelConstraints:a,groupSize:i,layout:p,separatorToPanels:y}),e.separators.forEach(m=>{$e(!r.has(m.id),`Separator ids must be unique; id "${m.id}" was used more than once`),r.add(m.id),m.element.addEventListener("keydown",Gl)}),qn.get(f)===1&&(f.addEventListener("contextmenu",Hl,!0),f.addEventListener("dblclick",Ul,!0),f.addEventListener("pointerdown",Yl,!0),f.addEventListener("pointerleave",ql),f.addEventListener("pointermove",Xl),f.addEventListener("pointerout",Kl),f.addEventListener("pointerup",Zl,!0)),function(){t=!1,qn.set(f,Math.max(0,(qn.get(f)??0)-1)),gw(e),e.separators.forEach(m=>{m.element.removeEventListener("keydown",Gl)}),qn.get(f)||(f.removeEventListener("contextmenu",Hl,!0),f.removeEventListener("dblclick",Ul,!0),f.removeEventListener("pointerdown",Yl,!0),f.removeEventListener("pointerleave",ql),f.removeEventListener("pointermove",Xl),f.removeEventListener("pointerout",Kl),f.removeEventListener("pointerup",Zl,!0)),s.disconnect()}}function Iw(){const[e,t]=c.useState({}),n=c.useCallback(()=>t({}),[]);return[e,n]}function Za(e){const t=c.useId();return`${e??t}`}const jn=typeof window<"u"?c.useLayoutEffect:c.useEffect;function No(e){const t=c.useRef(e);return jn(()=>{t.current=e},[e]),c.useCallback((...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)},[t])}function Qa(...e){return No(t=>{e.forEach(n=>{if(n)switch(typeof n){case"function":{n(t);break}case"object":{n.current=t;break}}})})}function Ja(e){const t=c.useRef({...e});return jn(()=>{for(const n in e)t.current[n]=e[n]},[e]),t.current}const Cp=c.createContext(null);function Ow(e,t){const n=c.useRef({getLayout:()=>({}),setLayout:pw});c.useImperativeHandle(t,()=>n.current,[]),jn(()=>{Object.assign(n.current,kp({groupId:e}))})}function Aw({children:e,className:t,defaultLayout:n,disableCursor:o,disabled:r,elementRef:s,groupRef:i,id:a,onLayoutChange:l,onLayoutChanged:u,orientation:d="horizontal",resizeTargetMinimumSize:p={coarse:20,fine:10},style:f,...y}){const m=c.useRef({onLayoutChange:{},onLayoutChanged:{}}),g=No(O=>{Fn(m.current.onLayoutChange,O)||(m.current.onLayoutChange=O,l==null||l(O))}),h=No((O,I)=>{Fn(m.current.onLayoutChanged,O)||(m.current.onLayoutChanged=O,u==null||u(O,{isUserInteraction:I}))}),b=Za(a),v=c.useRef(null),[w,x]=Iw(),S=c.useRef({lastExpandedPanelSizes:{},layouts:{},panels:[],resizeTargetMinimumSize:p,separators:[]}),R=Qa(v,s);Ow(b,i);const E=No((O,I)=>{const D=_n(),N=$l(O),P=yn(O);if(P){let z=!1;switch(D.state){case"active":{z=D.hitRegions.some(L=>L.group===N);break}}return{flexGrow:P.layout[I]??1,pointerEvents:z?"none":void 0}}if(n!=null&&n[I])return{flexGrow:n==null?void 0:n[I]}}),k=Ja({defaultLayout:n,disableCursor:o}),M=c.useMemo(()=>({get disableCursor(){return!!k.disableCursor},getPanelStyles:E,id:b,orientation:d,registerPanel:O=>{const I=S.current;return I.panels=Ii(d,[...I.panels,O]),x(),()=>{I.panels=I.panels.filter(D=>D!==O),x()}},registerSeparator:O=>{const I=S.current;return I.separators=Ii(d,[...I.separators,O]),x(),()=>{I.separators=I.separators.filter(D=>D!==O),x()}},updatePanelProps:(O,{disabled:I})=>{const D=S.current.panels.find(z=>z.id===O);D&&(D.panelConstraints.disabled=I);const N=$l(b),P=yn(b);N&&P&&sn(N,{...P,derivedPanelConstraints:Ti(N)})},updateSeparatorProps:(O,{disabled:I,disableDoubleClick:D})=>{const N=S.current.separators.find(P=>P.id===O);N&&(N.disabled=I,N.disableDoubleClick=D)}}),[E,b,x,d,k]),C=c.useRef(null);return jn(()=>{const O=v.current;if(O===null)return;const I=S.current;let D;if(k.defaultLayout!==void 0&&Object.keys(k.defaultLayout).length===I.panels.length){D={};for(const T of I.panels){const _=k.defaultLayout[T.id];_!==void 0&&(D[T.id]=_)}}const N={disabled:!!r,element:O,id:b,mutableState:{defaultLayout:D,disableCursor:!!k.disableCursor,expandedPanelSizes:S.current.lastExpandedPanelSizes,layouts:S.current.layouts},orientation:d,panels:I.panels,resizeTargetMinimumSize:I.resizeTargetMinimumSize,separators:I.separators};C.current=N;const P=Tw(N),{defaultLayoutDeferred:z,derivedPanelConstraints:L,layout:A}=yn(N.id,!0);!z&&L.length>0&&(g(A),h(A,!1));const F=Xa(b,T=>{const{defaultLayoutDeferred:_,derivedPanelConstraints:j,layout:$}=T.next;if(_||j.length===0)return;const U=N.panels.map(({id:V})=>V).join(",");N.mutableState.layouts[U]=$,j.forEach(V=>{if(V.collapsible){const{layout:Q}=T.prev??{};if(Q){const H=ft(V.collapsedSize,$[V.panelId]),G=ft(V.collapsedSize,Q[V.panelId]);H&&!G&&(N.mutableState.expandedPanelSizes[V.panelId]=Q[V.panelId])}}});const Y=_n().state!=="active";g($),Y&&h($,T.isUserInteraction)});return()=>{C.current=null,P(),F()}},[r,b,h,g,d,w,k]),c.useEffect(()=>{const O=C.current;O&&(O.mutableState.defaultLayout=n,O.mutableState.disableCursor=!!o)}),K.jsx(Cp.Provider,{value:M,children:K.jsx("div",{...y,className:t,"data-group":!0,"data-testid":b,id:b,ref:R,style:{height:"100%",width:"100%",overflow:"hidden",...f,display:"flex",flexDirection:d==="horizontal"?"row":"column",flexWrap:"nowrap",touchAction:d==="horizontal"?"pan-y":"pan-x"},children:e})})}Aw.displayName="Group";function ec(){const e=c.useContext(Cp);return $e(e,"Group Context not found; did you render a Panel or Separator outside of a Group?"),e}function Dw(e,t){const{id:n}=ec(),o=c.useRef({collapse:Xs,expand:Xs,getSize:()=>({asPercentage:0,inPixels:0}),isCollapsed:()=>!1,resize:Xs});c.useImperativeHandle(t,()=>o.current,[]),jn(()=>{Object.assign(o.current,Rp({groupId:n,panelId:e}))})}function Nw({children:e,className:t,collapsedSize:n="0%",collapsible:o=!1,defaultSize:r,disabled:s,elementRef:i,groupResizeBehavior:a="preserve-relative-size",id:l,maxSize:u="100%",minSize:d="0%",onResize:p,panelRef:f,style:y,...m}){const g=!!l,h=Za(l),b=Ja({disabled:s}),v=c.useRef(null),w=Qa(v,i),{getPanelStyles:x,id:S,orientation:R,registerPanel:E,updatePanelProps:k}=ec(),M=p!==null,C=No((N,P,z)=>{p==null||p(N,l,z)});jn(()=>{const N=v.current;if(N!==null){const P={element:N,id:h,idIsStable:g,mutableValues:{expandToSize:void 0,prevSize:void 0},onResize:M?C:void 0,panelConstraints:{groupResizeBehavior:a,collapsedSize:n,collapsible:o,defaultSize:r,disabled:b.disabled,maxSize:u,minSize:d}};return E(P)}},[a,n,o,r,M,h,g,u,d,C,E,b]),c.useEffect(()=>{k(h,{disabled:s})},[s,h,k]),Dw(h,f);const O=()=>{const N=x(S,h);if(N)return JSON.stringify(N)},I=c.useSyncExternalStore(N=>Xa(S,N),O,O);let D;return I?D=JSON.parse(I):r!==void 0?D={flexGrow:void 0,flexShrink:void 0,flexBasis:r}:D={flexGrow:1},K.jsx("div",{...m,"data-disabled":s||void 0,"data-panel":!0,"data-testid":h,id:h,ref:w,style:{...Lw,display:"flex",flexBasis:0,flexShrink:1,overflow:"visible",...D},children:K.jsx("div",{className:t,style:{maxHeight:"100%",maxWidth:"100%",flexGrow:1,overflow:"auto",...y,touchAction:R==="horizontal"?"pan-y":"pan-x"},children:e})})}Nw.displayName="Panel";const Lw={minHeight:0,maxHeight:"100%",height:"auto",minWidth:0,maxWidth:"100%",width:"auto",border:"none",borderWidth:0,padding:0,margin:0};function _w({layout:e,panelConstraints:t,panelId:n,panelIndex:o}){let r,s;const i=e[n],a=t.find(l=>l.panelId===n);if(a){const l=a.maxSize,u=a.collapsible?a.collapsedSize:a.minSize,d=[o,o+1];s=zn({layout:Ho({delta:u-i,initialLayout:e,panelConstraints:t,pivotIndices:d,prevLayout:e}),panelConstraints:t})[n],r=zn({layout:Ho({delta:l-i,initialLayout:e,panelConstraints:t,pivotIndices:d,prevLayout:e}),panelConstraints:t})[n]}return{valueControls:n,valueMax:r,valueMin:s,valueNow:i}}function Fw({children:e,className:t,disabled:n,disableDoubleClick:o,elementRef:r,id:s,style:i,...a}){const l=Za(s),u=Ja({disabled:n,disableDoubleClick:o}),[d,p]=c.useState({}),[f,y]=c.useState("inactive"),[m,g]=c.useState(!1),h=c.useRef(null),b=Qa(h,r),{disableCursor:v,id:w,orientation:x,registerSeparator:S,updateSeparatorProps:R}=ec(),E=x==="horizontal"?"vertical":"horizontal";jn(()=>{const C=h.current;if(C!==null){const O={disabled:u.disabled,disableDoubleClick:u.disableDoubleClick,element:C,id:l},I=S(O),D=dw(P=>{y(P.next.state!=="inactive"&&P.next.hitRegions.some(z=>z.separator===O)?P.next.state:"inactive")}),N=Xa(w,P=>{const{derivedPanelConstraints:z,layout:L,separatorToPanels:A}=P.next,F=A.get(O);if(F){const T=F[0],_=F.indexOf(T);p(_w({layout:L,panelConstraints:z,panelId:T.id,panelIndex:_}))}});return()=>{D(),N(),I()}}},[w,l,S,u]),c.useEffect(()=>{R(l,{disabled:n,disableDoubleClick:o})},[n,o,l,R]);let k;n&&!v&&(k="not-allowed");let M;if(n)M="disabled";else switch(f){case"active":{M="active";break}default:m?M="focus":M=f}return K.jsx("div",{...a,"aria-controls":d.valueControls,"aria-disabled":n||void 0,"aria-orientation":E,"aria-valuemax":d.valueMax,"aria-valuemin":d.valueMin,"aria-valuenow":d.valueNow,children:e,className:t,"data-separator":M,"data-testid":l,id:l,onBlur:()=>g(!1),onFocus:()=>g(!0),ref:b,role:"separator",style:{flexBasis:"auto",cursor:k,...i,flexGrow:0,flexShrink:0,touchAction:"none"},tabIndex:n?void 0:0})}Fw.displayName="Separator";const Pp=c.createContext(void 0);function zw(){const e=c.useContext(Pp);if(e===void 0)throw new Error(Ne(63));return e}const Mp={...bs,checked(e){return e?{"data-checked":""}:{"data-unchecked":""}}},$E=c.forwardRef(function(t,n){const{checked:o,className:r,defaultChecked:s,"aria-labelledby":i,form:a,id:l,inputRef:u,name:d,nativeButton:p=!1,onCheckedChange:f,readOnly:y=!1,required:m=!1,disabled:g=!1,render:h,uncheckedValue:b,value:v,style:w,...x}=t,{clearErrors:S}=ws(),{state:R,setTouched:E,setDirty:k,validityData:M,setFilled:C,setFocused:O,validationMode:I,disabled:D,name:N,validation:P}=vo(),{labelId:z}=Yo(),L=D||g,A=N??d,F=c.useRef(null),T=Dt(F,u,P.inputRef),_=c.useRef(null),j=rt(),$=xs({id:l,implicit:!1,controlRef:_}),U=p?void 0:$,[Y,V]=Lt({controlled:o,default:!!s,name:"Switch",state:"checked"});vs(_,j,Y,void 0,!L,d),re(()=>{F.current&&C(F.current.checked)},[C]),ys(Y,()=>{S(A),k(Y!==M.initialValue),C(Y),P.change(Y)});const{getButtonProps:Q,buttonRef:H}=Tt({disabled:L,native:p}),G=Zf(i,z,F,!p,U),ue={id:p?$:j,role:"switch","aria-checked":Y,"aria-readonly":y||void 0,"aria-required":m||void 0,"aria-labelledby":G,onFocus(){L||O(!0)},onBlur(){const ee=F.current;!ee||L||(E(!0),O(!1),I==="onBlur"&&P.commit(ee.checked))},onClick(ee){if(y||L)return;ee.preventDefault();const ie=F.current;ie&&Qn(ie,ee)}},ne={...P.getValidationProps(L),checked:Y,disabled:L,form:a,id:U,name:A,required:m,style:A?ta:Bo,tabIndex:-1,type:"checkbox","aria-hidden":!0,ref:T,onChange(ee){if(ee.nativeEvent.defaultPrevented)return;if(y){ee.preventDefault();return}const ie=ee.currentTarget.checked,xe=Re(Rt,ee.nativeEvent);f==null||f(ie,xe),!xe.isCanceled&&V(ie)},onClick(ee){ee.stopPropagation()},onFocus(){var ee;(ee=_.current)==null||ee.focus()},...v!==void 0?{value:v}:We},te=c.useMemo(()=>({...R,checked:Y,disabled:L,readOnly:y,required:m}),[R,Y,L,y,m]),J=ke("span",t,{state:te,ref:[n,_,H],props:[ue,x,Q,ee=>P.getValidationProps(L,ee)],stateAttributesMapping:Mp});return K.jsxs(Pp.Provider,{value:te,children:[J,!Y&&A&&b!==void 0&&K.jsx("input",{type:"hidden",form:a,name:A,value:b,disabled:L}),K.jsx("input",{...ne,suppressHydrationWarning:!0})]})}),HE=c.forwardRef(function(t,n){const{render:o,className:r,style:s,...i}=t,a=zw();return ke("span",t,{state:a,ref:n,stateAttributesMapping:Mp,props:i})});export{PR as $,tk as A,rk as B,Jw as C,yS as D,RS as E,LS as F,$S as G,XS as H,FS as I,hS as J,eR as K,oR as L,yR as M,WR as N,Kw as O,DR as P,$E as Q,zR as R,HR as S,sk as T,HE as U,kS as V,ES as W,mk as X,pk as Y,vk as Z,fk as _,_S as a,Hk as a$,aR as a0,sS as a1,uS as a2,jS as a3,Qw as a4,gS as a5,gk as a6,pS as a7,IS as a8,Zw as a9,Ak as aA,F1 as aB,Nk as aC,Mk as aD,Ek as aE,Lk as aF,Ck as aG,Tk as aH,Ik as aI,Dk as aJ,Rk as aK,Ok as aL,kk as aM,US as aN,XR as aO,yk as aP,Wk as aQ,Gk as aR,Uk as aS,_k as aT,zk as aU,Fk as aV,jk as aW,Xk as aX,Vk as aY,Bk as aZ,$k as a_,xR as aa,Gw as ab,nR as ac,hk as ad,LR as ae,CS as af,Uw as ag,AR as ah,NS as ai,GS as aj,lk as ak,sR as al,cR as am,ck as an,YR as ao,uR as ap,aS as aq,iR as ar,Hw as as,Sk as at,Bm as au,xk as av,wk as aw,vR as ax,ZS as ay,Pk as az,ek as b,dS as b$,qk as b0,Yk as b1,eS as b2,tE as b3,Jk as b4,nE as b5,Qk as b6,eE as b7,Zk as b8,Kk as b9,nk as bA,jR as bB,rS as bC,bE as bD,vE as bE,xE as bF,wE as bG,AS as bH,OR as bI,MR as bJ,SE as bK,RE as bL,CE as bM,kE as bN,EE as bO,IE as bP,OE as bQ,PE as bR,ME as bS,TE as bT,AE as bU,DE as bV,NE as bW,LE as bX,KS as bY,mR as bZ,YS as b_,Rv as ba,uk as bb,vS as bc,St as bd,oE as be,Pr as bf,Ss as bg,sE as bh,iE as bi,aE as bj,cE as bk,nf as bl,IR as bm,OS as bn,dE as bo,lE as bp,uE as bq,QS as br,TR as bs,pE as bt,mE as bu,fE as bv,yE as bw,hE as bx,gE as by,NR as bz,FR as c,iS as c0,xS as c1,FE as c2,_E as c3,nS as c4,jw as c5,dk as c6,fS as c7,zE as c8,VE as c9,Fw as cA,Nw as cB,Aw as cC,ik as cD,hR as cE,bS as cF,qR as cG,rR as cH,lS as ca,bR as cb,qS as cc,TS as cd,MS as ce,HS as cf,KR as cg,VS as ch,cS as ci,Yw as cj,gR as ck,_R as cl,$R as cm,fR as cn,Bw as co,JS as cp,DS as cq,Ww as cr,Xw as cs,BS as ct,GR as cu,RR as cv,SS as cw,ER as cx,CR as cy,SR as cz,WS as d,PS as e,wS as f,BR as g,ok as h,JR as i,lR as j,bk as k,zS as l,ak as m,dR as n,VR as o,pR as p,mS as q,tR as r,qw as s,kR as t,ZR as u,oS as v,tS as w,wR as x,UR as y,QR as z};
|
package/dist/web/index.html
CHANGED
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
.dark body { background: #09090b; color: #fafafa; }
|
|
16
16
|
body { background: #fafafa; color: #09090b; }
|
|
17
17
|
</style>
|
|
18
|
-
<script type="module" crossorigin src="/assets/index-
|
|
18
|
+
<script type="module" crossorigin src="/assets/index-D-Mg0tNr.js"></script>
|
|
19
19
|
<link rel="modulepreload" crossorigin href="/assets/vendor-react-gGw_S5I_.js">
|
|
20
|
-
<link rel="modulepreload" crossorigin href="/assets/vendor-ui-
|
|
20
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-ui-Bg9q4lA4.js">
|
|
21
21
|
<link rel="modulepreload" crossorigin href="/assets/vendor-markdown-BE1gYnO9.js">
|
|
22
22
|
<link rel="modulepreload" crossorigin href="/assets/vendor-shiki-DOn6sF-i.js">
|
|
23
23
|
<link rel="stylesheet" crossorigin href="/assets/index-Bif4Kdtn.css">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cogpit",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"description": "Run Cogpit's local Claude Code, Codex, and GitHub Copilot CLI interface without installing it",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
"@anthropic-ai/claude-agent-sdk": "^0.3.215",
|
|
41
41
|
"express": "^5.2.1",
|
|
42
42
|
"node-pty": "^1.1.0",
|
|
43
|
+
"vscode-jsonrpc": "8.2.1",
|
|
43
44
|
"ws": "^8.21.1"
|
|
44
45
|
},
|
|
45
46
|
"devDependencies": {
|