@lovelybunch/api 1.0.49 → 1.0.50

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovelybunch/api",
3
- "version": "1.0.49",
3
+ "version": "1.0.50",
4
4
  "type": "module",
5
5
  "main": "dist/server-with-static.js",
6
6
  "exports": {
@@ -32,9 +32,9 @@
32
32
  "dependencies": {
33
33
  "@hono/node-server": "^1.13.7",
34
34
  "@hono/node-ws": "^1.0.6",
35
- "@lovelybunch/core": "^1.0.49",
36
- "@lovelybunch/mcp": "^1.0.48",
37
- "@lovelybunch/types": "^1.0.49",
35
+ "@lovelybunch/core": "^1.0.50",
36
+ "@lovelybunch/mcp": "^1.0.50",
37
+ "@lovelybunch/types": "^1.0.50",
38
38
  "dotenv": "^17.2.1",
39
39
  "fuse.js": "^7.0.0",
40
40
  "gray-matter": "^4.0.3",
@@ -416,7 +416,7 @@ Please change the parent <Route path="${E}"> to <Route path="${E==="/"?"*":`${E}
416
416
 
417
417
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
418
418
 
419
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return A.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},h7="DialogDescriptionWarning",f7=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${iD(h7).contentName}}.`;return A.useEffect(()=>{const i=e.current?.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},vv=qk,sD=Wk,yv=Kk,gu=Xk,bu=Zk,vu=Jk,yu=tD,Lf=rD;const oD=vv,p7=yv,lD=A.forwardRef(({className:e,...t},n)=>s.jsx(gu,{className:Ie("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));lD.displayName=gu.displayName;const m7=al("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Ev=A.forwardRef(({side:e="right",className:t,children:n,...r},i)=>s.jsxs(p7,{children:[s.jsx(lD,{}),s.jsxs(bu,{ref:i,className:Ie(m7({side:e}),t),...r,children:[n,s.jsxs(Lf,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[s.jsx(xr,{className:"h-4 w-4"}),s.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Ev.displayName=bu.displayName;const _v=({className:e,...t})=>s.jsx("div",{className:Ie("flex flex-col space-y-2 text-center sm:text-left",e),...t});_v.displayName="SheetHeader";const xv=A.forwardRef(({className:e,...t},n)=>s.jsx(vu,{ref:n,className:Ie("text-lg font-semibold text-foreground",e),...t}));xv.displayName=vu.displayName;const cD=A.forwardRef(({className:e,...t},n)=>s.jsx(yu,{ref:n,className:Ie("text-sm text-muted-foreground",e),...t}));cD.displayName=yu.displayName;function jA({className:e,...t}){return s.jsx("div",{className:Ie("animate-pulse rounded-md bg-muted",e),...t})}const g7=["top","right","bottom","left"],Oi=Math.min,Er=Math.max,Jh=Math.round,ph=Math.floor,ba=e=>({x:e,y:e}),b7={left:"right",right:"left",bottom:"top",top:"bottom"},v7={start:"end",end:"start"};function i0(e,t,n){return Er(e,Oi(t,n))}function Ka(e,t){return typeof e=="function"?e(t):e}function Xa(e){return e.split("-")[0]}function ol(e){return e.split("-")[1]}function Sv(e){return e==="x"?"y":"x"}function Cv(e){return e==="y"?"height":"width"}const y7=new Set(["top","bottom"]);function da(e){return y7.has(Xa(e))?"y":"x"}function wv(e){return Sv(da(e))}function E7(e,t,n){n===void 0&&(n=!1);const r=ol(e),i=wv(e),l=Cv(i);let u=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(u=ef(u)),[u,ef(u)]}function _7(e){const t=ef(e);return[s0(e),t,s0(t)]}function s0(e){return e.replace(/start|end/g,t=>v7[t])}const FA=["left","right"],PA=["right","left"],x7=["top","bottom"],S7=["bottom","top"];function C7(e,t,n){switch(e){case"top":case"bottom":return n?t?PA:FA:t?FA:PA;case"left":case"right":return t?x7:S7;default:return[]}}function w7(e,t,n,r){const i=ol(e);let l=C7(Xa(e),n==="start",r);return i&&(l=l.map(u=>u+"-"+i),t&&(l=l.concat(l.map(s0)))),l}function ef(e){return e.replace(/left|right|bottom|top/g,t=>b7[t])}function T7(e){return{top:0,right:0,bottom:0,left:0,...e}}function uD(e){return typeof e!="number"?T7(e):{top:e,right:e,bottom:e,left:e}}function tf(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function BA(e,t,n){let{reference:r,floating:i}=e;const l=da(t),u=wv(t),c=Cv(u),d=Xa(t),h=l==="y",m=r.x+r.width/2-i.width/2,p=r.y+r.height/2-i.height/2,b=r[c]/2-i[c]/2;let y;switch(d){case"top":y={x:m,y:r.y-i.height};break;case"bottom":y={x:m,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:p};break;case"left":y={x:r.x-i.width,y:p};break;default:y={x:r.x,y:r.y}}switch(ol(t)){case"start":y[u]-=b*(n&&h?-1:1);break;case"end":y[u]+=b*(n&&h?-1:1);break}return y}const A7=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:l=[],platform:u}=n,c=l.filter(Boolean),d=await(u.isRTL==null?void 0:u.isRTL(t));let h=await u.getElementRects({reference:e,floating:t,strategy:i}),{x:m,y:p}=BA(h,r,d),b=r,y={},C=0;for(let S=0;S<c.length;S++){const{name:v,fn:_}=c[S],{x:E,y:x,data:T,reset:k}=await _({x:m,y:p,initialPlacement:r,placement:b,strategy:i,middlewareData:y,rects:h,platform:u,elements:{reference:e,floating:t}});m=E??m,p=x??p,y={...y,[v]:{...y[v],...T}},k&&C<=50&&(C++,typeof k=="object"&&(k.placement&&(b=k.placement),k.rects&&(h=k.rects===!0?await u.getElementRects({reference:e,floating:t,strategy:i}):k.rects),{x:m,y:p}=BA(h,b,d)),S=-1)}return{x:m,y:p,placement:b,strategy:i,middlewareData:y}};async function Zc(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:l,rects:u,elements:c,strategy:d}=e,{boundary:h="clippingAncestors",rootBoundary:m="viewport",elementContext:p="floating",altBoundary:b=!1,padding:y=0}=Ka(t,e),C=uD(y),v=c[b?p==="floating"?"reference":"floating":p],_=tf(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(v)))==null||n?v:v.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(c.floating)),boundary:h,rootBoundary:m,strategy:d})),E=p==="floating"?{x:r,y:i,width:u.floating.width,height:u.floating.height}:u.reference,x=await(l.getOffsetParent==null?void 0:l.getOffsetParent(c.floating)),T=await(l.isElement==null?void 0:l.isElement(x))?await(l.getScale==null?void 0:l.getScale(x))||{x:1,y:1}:{x:1,y:1},k=tf(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:E,offsetParent:x,strategy:d}):E);return{top:(_.top-k.top+C.top)/T.y,bottom:(k.bottom-_.bottom+C.bottom)/T.y,left:(_.left-k.left+C.left)/T.x,right:(k.right-_.right+C.right)/T.x}}const N7=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:l,platform:u,elements:c,middlewareData:d}=t,{element:h,padding:m=0}=Ka(e,t)||{};if(h==null)return{};const p=uD(m),b={x:n,y:r},y=wv(i),C=Cv(y),S=await u.getDimensions(h),v=y==="y",_=v?"top":"left",E=v?"bottom":"right",x=v?"clientHeight":"clientWidth",T=l.reference[C]+l.reference[y]-b[y]-l.floating[C],k=b[y]-l.reference[y],N=await(u.getOffsetParent==null?void 0:u.getOffsetParent(h));let L=N?N[x]:0;(!L||!await(u.isElement==null?void 0:u.isElement(N)))&&(L=c.floating[x]||l.floating[C]);const R=T/2-k/2,M=L/2-S[C]/2-1,F=Oi(p[_],M),U=Oi(p[E],M),$=F,P=L-S[C]-U,V=L/2-S[C]/2+R,te=i0($,V,P),H=!d.arrow&&ol(i)!=null&&V!==te&&l.reference[C]/2-(V<$?F:U)-S[C]/2<0,X=H?V<$?V-$:V-P:0;return{[y]:b[y]+X,data:{[y]:te,centerOffset:V-te-X,...H&&{alignmentOffset:X}},reset:H}}}),R7=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:l,rects:u,initialPlacement:c,platform:d,elements:h}=t,{mainAxis:m=!0,crossAxis:p=!0,fallbackPlacements:b,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:S=!0,...v}=Ka(e,t);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const _=Xa(i),E=da(c),x=Xa(c)===c,T=await(d.isRTL==null?void 0:d.isRTL(h.floating)),k=b||(x||!S?[ef(c)]:_7(c)),N=C!=="none";!b&&N&&k.push(...w7(c,S,C,T));const L=[c,...k],R=await Zc(t,v),M=[];let F=((r=l.flip)==null?void 0:r.overflows)||[];if(m&&M.push(R[_]),p){const V=E7(i,u,T);M.push(R[V[0]],R[V[1]])}if(F=[...F,{placement:i,overflows:M}],!M.every(V=>V<=0)){var U,$;const V=(((U=l.flip)==null?void 0:U.index)||0)+1,te=L[V];if(te&&(!(p==="alignment"?E!==da(te):!1)||F.every(K=>da(K.placement)===E?K.overflows[0]>0:!0)))return{data:{index:V,overflows:F},reset:{placement:te}};let H=($=F.filter(X=>X.overflows[0]<=0).sort((X,K)=>X.overflows[1]-K.overflows[1])[0])==null?void 0:$.placement;if(!H)switch(y){case"bestFit":{var P;const X=(P=F.filter(K=>{if(N){const j=da(K.placement);return j===E||j==="y"}return!0}).map(K=>[K.placement,K.overflows.filter(j=>j>0).reduce((j,O)=>j+O,0)]).sort((K,j)=>K[1]-j[1])[0])==null?void 0:P[0];X&&(H=X);break}case"initialPlacement":H=c;break}if(i!==H)return{reset:{placement:H}}}return{}}}};function UA(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function HA(e){return g7.some(t=>e[t]>=0)}const k7=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=Ka(e,t);switch(r){case"referenceHidden":{const l=await Zc(t,{...i,elementContext:"reference"}),u=UA(l,n.reference);return{data:{referenceHiddenOffsets:u,referenceHidden:HA(u)}}}case"escaped":{const l=await Zc(t,{...i,altBoundary:!0}),u=UA(l,n.floating);return{data:{escapedOffsets:u,escaped:HA(u)}}}default:return{}}}}},dD=new Set(["left","top"]);async function D7(e,t){const{placement:n,platform:r,elements:i}=e,l=await(r.isRTL==null?void 0:r.isRTL(i.floating)),u=Xa(n),c=ol(n),d=da(n)==="y",h=dD.has(u)?-1:1,m=l&&d?-1:1,p=Ka(t,e);let{mainAxis:b,crossAxis:y,alignmentAxis:C}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return c&&typeof C=="number"&&(y=c==="end"?C*-1:C),d?{x:y*m,y:b*h}:{x:b*h,y:y*m}}const I7=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:l,placement:u,middlewareData:c}=t,d=await D7(t,e);return u===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:i+d.x,y:l+d.y,data:{...d,placement:u}}}}},O7=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:l=!0,crossAxis:u=!1,limiter:c={fn:v=>{let{x:_,y:E}=v;return{x:_,y:E}}},...d}=Ka(e,t),h={x:n,y:r},m=await Zc(t,d),p=da(Xa(i)),b=Sv(p);let y=h[b],C=h[p];if(l){const v=b==="y"?"top":"left",_=b==="y"?"bottom":"right",E=y+m[v],x=y-m[_];y=i0(E,y,x)}if(u){const v=p==="y"?"top":"left",_=p==="y"?"bottom":"right",E=C+m[v],x=C-m[_];C=i0(E,C,x)}const S=c.fn({...t,[b]:y,[p]:C});return{...S,data:{x:S.x-n,y:S.y-r,enabled:{[b]:l,[p]:u}}}}}},L7=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:l,middlewareData:u}=t,{offset:c=0,mainAxis:d=!0,crossAxis:h=!0}=Ka(e,t),m={x:n,y:r},p=da(i),b=Sv(p);let y=m[b],C=m[p];const S=Ka(c,t),v=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(d){const x=b==="y"?"height":"width",T=l.reference[b]-l.floating[x]+v.mainAxis,k=l.reference[b]+l.reference[x]-v.mainAxis;y<T?y=T:y>k&&(y=k)}if(h){var _,E;const x=b==="y"?"width":"height",T=dD.has(Xa(i)),k=l.reference[p]-l.floating[x]+(T&&((_=u.offset)==null?void 0:_[p])||0)+(T?0:v.crossAxis),N=l.reference[p]+l.reference[x]+(T?0:((E=u.offset)==null?void 0:E[p])||0)-(T?v.crossAxis:0);C<k?C=k:C>N&&(C=N)}return{[b]:y,[p]:C}}}},M7=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:l,platform:u,elements:c}=t,{apply:d=()=>{},...h}=Ka(e,t),m=await Zc(t,h),p=Xa(i),b=ol(i),y=da(i)==="y",{width:C,height:S}=l.floating;let v,_;p==="top"||p==="bottom"?(v=p,_=b===(await(u.isRTL==null?void 0:u.isRTL(c.floating))?"start":"end")?"left":"right"):(_=p,v=b==="end"?"top":"bottom");const E=S-m.top-m.bottom,x=C-m.left-m.right,T=Oi(S-m[v],E),k=Oi(C-m[_],x),N=!t.middlewareData.shift;let L=T,R=k;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(L=E),N&&!b){const F=Er(m.left,0),U=Er(m.right,0),$=Er(m.top,0),P=Er(m.bottom,0);y?R=C-2*(F!==0||U!==0?F+U:Er(m.left,m.right)):L=S-2*($!==0||P!==0?$+P:Er(m.top,m.bottom))}await d({...t,availableWidth:R,availableHeight:L});const M=await u.getDimensions(c.floating);return C!==M.width||S!==M.height?{reset:{rects:!0}}:{}}}};function Mf(){return typeof window<"u"}function ll(e){return hD(e)?(e.nodeName||"").toLowerCase():"#document"}function Sr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Sa(e){var t;return(t=(hD(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function hD(e){return Mf()?e instanceof Node||e instanceof Sr(e).Node:!1}function Xr(e){return Mf()?e instanceof Element||e instanceof Sr(e).Element:!1}function ya(e){return Mf()?e instanceof HTMLElement||e instanceof Sr(e).HTMLElement:!1}function zA(e){return!Mf()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Sr(e).ShadowRoot}const j7=new Set(["inline","contents"]);function Eu(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Zr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!j7.has(i)}const F7=new Set(["table","td","th"]);function P7(e){return F7.has(ll(e))}const B7=[":popover-open",":modal"];function jf(e){return B7.some(t=>{try{return e.matches(t)}catch{return!1}})}const U7=["transform","translate","scale","rotate","perspective"],H7=["transform","translate","scale","rotate","perspective","filter"],z7=["paint","layout","strict","content"];function Tv(e){const t=Av(),n=Xr(e)?Zr(e):e;return U7.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||H7.some(r=>(n.willChange||"").includes(r))||z7.some(r=>(n.contain||"").includes(r))}function $7(e){let t=Li(e);for(;ya(t)&&!qo(t);){if(Tv(t))return t;if(jf(t))return null;t=Li(t)}return null}function Av(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const G7=new Set(["html","body","#document"]);function qo(e){return G7.has(ll(e))}function Zr(e){return Sr(e).getComputedStyle(e)}function Ff(e){return Xr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Li(e){if(ll(e)==="html")return e;const t=e.assignedSlot||e.parentNode||zA(e)&&e.host||Sa(e);return zA(t)?t.host:t}function fD(e){const t=Li(e);return qo(t)?e.ownerDocument?e.ownerDocument.body:e.body:ya(t)&&Eu(t)?t:fD(t)}function Qc(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=fD(e),l=i===((r=e.ownerDocument)==null?void 0:r.body),u=Sr(i);if(l){const c=o0(u);return t.concat(u,u.visualViewport||[],Eu(i)?i:[],c&&n?Qc(c):[])}return t.concat(i,Qc(i,[],n))}function o0(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function pD(e){const t=Zr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=ya(e),l=i?e.offsetWidth:n,u=i?e.offsetHeight:r,c=Jh(n)!==l||Jh(r)!==u;return c&&(n=l,r=u),{width:n,height:r,$:c}}function Nv(e){return Xr(e)?e:e.contextElement}function jo(e){const t=Nv(e);if(!ya(t))return ba(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:l}=pD(t);let u=(l?Jh(n.width):n.width)/r,c=(l?Jh(n.height):n.height)/i;return(!u||!Number.isFinite(u))&&(u=1),(!c||!Number.isFinite(c))&&(c=1),{x:u,y:c}}const q7=ba(0);function mD(e){const t=Sr(e);return!Av()||!t.visualViewport?q7:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function V7(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Sr(e)?!1:t}function gs(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),l=Nv(e);let u=ba(1);t&&(r?Xr(r)&&(u=jo(r)):u=jo(e));const c=V7(l,n,r)?mD(l):ba(0);let d=(i.left+c.x)/u.x,h=(i.top+c.y)/u.y,m=i.width/u.x,p=i.height/u.y;if(l){const b=Sr(l),y=r&&Xr(r)?Sr(r):r;let C=b,S=o0(C);for(;S&&r&&y!==C;){const v=jo(S),_=S.getBoundingClientRect(),E=Zr(S),x=_.left+(S.clientLeft+parseFloat(E.paddingLeft))*v.x,T=_.top+(S.clientTop+parseFloat(E.paddingTop))*v.y;d*=v.x,h*=v.y,m*=v.x,p*=v.y,d+=x,h+=T,C=Sr(S),S=o0(C)}}return tf({width:m,height:p,x:d,y:h})}function Rv(e,t){const n=Ff(e).scrollLeft;return t?t.left+n:gs(Sa(e)).left+n}function gD(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:Rv(e,r)),l=r.top+t.scrollTop;return{x:i,y:l}}function W7(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const l=i==="fixed",u=Sa(r),c=t?jf(t.floating):!1;if(r===u||c&&l)return n;let d={scrollLeft:0,scrollTop:0},h=ba(1);const m=ba(0),p=ya(r);if((p||!p&&!l)&&((ll(r)!=="body"||Eu(u))&&(d=Ff(r)),ya(r))){const y=gs(r);h=jo(r),m.x=y.x+r.clientLeft,m.y=y.y+r.clientTop}const b=u&&!p&&!l?gD(u,d,!0):ba(0);return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-d.scrollLeft*h.x+m.x+b.x,y:n.y*h.y-d.scrollTop*h.y+m.y+b.y}}function Y7(e){return Array.from(e.getClientRects())}function K7(e){const t=Sa(e),n=Ff(e),r=e.ownerDocument.body,i=Er(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),l=Er(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let u=-n.scrollLeft+Rv(e);const c=-n.scrollTop;return Zr(r).direction==="rtl"&&(u+=Er(t.clientWidth,r.clientWidth)-i),{width:i,height:l,x:u,y:c}}function X7(e,t){const n=Sr(e),r=Sa(e),i=n.visualViewport;let l=r.clientWidth,u=r.clientHeight,c=0,d=0;if(i){l=i.width,u=i.height;const h=Av();(!h||h&&t==="fixed")&&(c=i.offsetLeft,d=i.offsetTop)}return{width:l,height:u,x:c,y:d}}const Z7=new Set(["absolute","fixed"]);function Q7(e,t){const n=gs(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,l=ya(e)?jo(e):ba(1),u=e.clientWidth*l.x,c=e.clientHeight*l.y,d=i*l.x,h=r*l.y;return{width:u,height:c,x:d,y:h}}function $A(e,t,n){let r;if(t==="viewport")r=X7(e,n);else if(t==="document")r=K7(Sa(e));else if(Xr(t))r=Q7(t,n);else{const i=mD(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return tf(r)}function bD(e,t){const n=Li(e);return n===t||!Xr(n)||qo(n)?!1:Zr(n).position==="fixed"||bD(n,t)}function J7(e,t){const n=t.get(e);if(n)return n;let r=Qc(e,[],!1).filter(c=>Xr(c)&&ll(c)!=="body"),i=null;const l=Zr(e).position==="fixed";let u=l?Li(e):e;for(;Xr(u)&&!qo(u);){const c=Zr(u),d=Tv(u);!d&&c.position==="fixed"&&(i=null),(l?!d&&!i:!d&&c.position==="static"&&!!i&&Z7.has(i.position)||Eu(u)&&!d&&bD(e,u))?r=r.filter(m=>m!==u):i=c,u=Li(u)}return t.set(e,r),r}function e9(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const u=[...n==="clippingAncestors"?jf(t)?[]:J7(t,this._c):[].concat(n),r],c=u[0],d=u.reduce((h,m)=>{const p=$A(t,m,i);return h.top=Er(p.top,h.top),h.right=Oi(p.right,h.right),h.bottom=Oi(p.bottom,h.bottom),h.left=Er(p.left,h.left),h},$A(t,c,i));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function t9(e){const{width:t,height:n}=pD(e);return{width:t,height:n}}function n9(e,t,n){const r=ya(t),i=Sa(t),l=n==="fixed",u=gs(e,!0,l,t);let c={scrollLeft:0,scrollTop:0};const d=ba(0);function h(){d.x=Rv(i)}if(r||!r&&!l)if((ll(t)!=="body"||Eu(i))&&(c=Ff(t)),r){const y=gs(t,!0,l,t);d.x=y.x+t.clientLeft,d.y=y.y+t.clientTop}else i&&h();l&&!r&&i&&h();const m=i&&!r&&!l?gD(i,c):ba(0),p=u.left+c.scrollLeft-d.x-m.x,b=u.top+c.scrollTop-d.y-m.y;return{x:p,y:b,width:u.width,height:u.height}}function ib(e){return Zr(e).position==="static"}function GA(e,t){if(!ya(e)||Zr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Sa(e)===n&&(n=n.ownerDocument.body),n}function vD(e,t){const n=Sr(e);if(jf(e))return n;if(!ya(e)){let i=Li(e);for(;i&&!qo(i);){if(Xr(i)&&!ib(i))return i;i=Li(i)}return n}let r=GA(e,t);for(;r&&P7(r)&&ib(r);)r=GA(r,t);return r&&qo(r)&&ib(r)&&!Tv(r)?n:r||$7(e)||n}const r9=async function(e){const t=this.getOffsetParent||vD,n=this.getDimensions,r=await n(e.floating);return{reference:n9(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function a9(e){return Zr(e).direction==="rtl"}const i9={convertOffsetParentRelativeRectToViewportRelativeRect:W7,getDocumentElement:Sa,getClippingRect:e9,getOffsetParent:vD,getElementRects:r9,getClientRects:Y7,getDimensions:t9,getScale:jo,isElement:Xr,isRTL:a9};function yD(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function s9(e,t){let n=null,r;const i=Sa(e);function l(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function u(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),l();const h=e.getBoundingClientRect(),{left:m,top:p,width:b,height:y}=h;if(c||t(),!b||!y)return;const C=ph(p),S=ph(i.clientWidth-(m+b)),v=ph(i.clientHeight-(p+y)),_=ph(m),x={rootMargin:-C+"px "+-S+"px "+-v+"px "+-_+"px",threshold:Er(0,Oi(1,d))||1};let T=!0;function k(N){const L=N[0].intersectionRatio;if(L!==d){if(!T)return u();L?u(!1,L):r=setTimeout(()=>{u(!1,1e-7)},1e3)}L===1&&!yD(h,e.getBoundingClientRect())&&u(),T=!1}try{n=new IntersectionObserver(k,{...x,root:i.ownerDocument})}catch{n=new IntersectionObserver(k,x)}n.observe(e)}return u(!0),l}function o9(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:l=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,h=Nv(e),m=i||l?[...h?Qc(h):[],...Qc(t)]:[];m.forEach(_=>{i&&_.addEventListener("scroll",n,{passive:!0}),l&&_.addEventListener("resize",n)});const p=h&&c?s9(h,n):null;let b=-1,y=null;u&&(y=new ResizeObserver(_=>{let[E]=_;E&&E.target===h&&y&&(y.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var x;(x=y)==null||x.observe(t)})),n()}),h&&!d&&y.observe(h),y.observe(t));let C,S=d?gs(e):null;d&&v();function v(){const _=gs(e);S&&!yD(S,_)&&n(),S=_,C=requestAnimationFrame(v)}return n(),()=>{var _;m.forEach(E=>{i&&E.removeEventListener("scroll",n),l&&E.removeEventListener("resize",n)}),p?.(),(_=y)==null||_.disconnect(),y=null,d&&cancelAnimationFrame(C)}}const l9=I7,c9=O7,u9=R7,d9=M7,h9=k7,qA=N7,f9=L7,p9=(e,t,n)=>{const r=new Map,i={platform:i9,...n},l={...i.platform,_c:r};return A7(e,t,{...i,platform:l})};var m9=typeof document<"u",g9=function(){},Mh=m9?A.useLayoutEffect:g9;function nf(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!nf(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const l=i[r];if(!(l==="_owner"&&e.$$typeof)&&!nf(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function ED(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function VA(e,t){const n=ED(e);return Math.round(t*n)/n}function sb(e){const t=A.useRef(e);return Mh(()=>{t.current=e}),t}function b9(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:l,floating:u}={},transform:c=!0,whileElementsMounted:d,open:h}=e,[m,p]=A.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[b,y]=A.useState(r);nf(b,r)||y(r);const[C,S]=A.useState(null),[v,_]=A.useState(null),E=A.useCallback(K=>{K!==N.current&&(N.current=K,S(K))},[]),x=A.useCallback(K=>{K!==L.current&&(L.current=K,_(K))},[]),T=l||C,k=u||v,N=A.useRef(null),L=A.useRef(null),R=A.useRef(m),M=d!=null,F=sb(d),U=sb(i),$=sb(h),P=A.useCallback(()=>{if(!N.current||!L.current)return;const K={placement:t,strategy:n,middleware:b};U.current&&(K.platform=U.current),p9(N.current,L.current,K).then(j=>{const O={...j,isPositioned:$.current!==!1};V.current&&!nf(R.current,O)&&(R.current=O,nl.flushSync(()=>{p(O)}))})},[b,t,n,U,$]);Mh(()=>{h===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,p(K=>({...K,isPositioned:!1})))},[h]);const V=A.useRef(!1);Mh(()=>(V.current=!0,()=>{V.current=!1}),[]),Mh(()=>{if(T&&(N.current=T),k&&(L.current=k),T&&k){if(F.current)return F.current(T,k,P);P()}},[T,k,P,F,M]);const te=A.useMemo(()=>({reference:N,floating:L,setReference:E,setFloating:x}),[E,x]),H=A.useMemo(()=>({reference:T,floating:k}),[T,k]),X=A.useMemo(()=>{const K={position:n,left:0,top:0};if(!H.floating)return K;const j=VA(H.floating,m.x),O=VA(H.floating,m.y);return c?{...K,transform:"translate("+j+"px, "+O+"px)",...ED(H.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:j,top:O}},[n,c,H.floating,m.x,m.y]);return A.useMemo(()=>({...m,update:P,refs:te,elements:H,floatingStyles:X}),[m,P,te,H,X])}const v9=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?qA({element:r.current,padding:i}).fn(n):{}:r?qA({element:r,padding:i}).fn(n):{}}}},y9=(e,t)=>({...l9(e),options:[e,t]}),E9=(e,t)=>({...c9(e),options:[e,t]}),_9=(e,t)=>({...f9(e),options:[e,t]}),x9=(e,t)=>({...u9(e),options:[e,t]}),S9=(e,t)=>({...d9(e),options:[e,t]}),C9=(e,t)=>({...h9(e),options:[e,t]}),w9=(e,t)=>({...v9(e),options:[e,t]});var T9="Arrow",_D=A.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...l}=e;return s.jsx(ot.svg,{...l,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:s.jsx("polygon",{points:"0,0 30,0 15,10"})})});_D.displayName=T9;var A9=_D;function xD(e){const[t,n]=A.useState(void 0);return kn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const l=i[0];let u,c;if("borderBoxSize"in l){const d=l.borderBoxSize,h=Array.isArray(d)?d[0]:d;u=h.inlineSize,c=h.blockSize}else u=e.offsetWidth,c=e.offsetHeight;n({width:u,height:c})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var kv="Popper",[SD,Pf]=Qa(kv),[N9,CD]=SD(kv),wD=e=>{const{__scopePopper:t,children:n}=e,[r,i]=A.useState(null);return s.jsx(N9,{scope:t,anchor:r,onAnchorChange:i,children:n})};wD.displayName=kv;var TD="PopperAnchor",AD=A.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,l=CD(TD,n),u=A.useRef(null),c=Tt(t,u),d=A.useRef(null);return A.useEffect(()=>{const h=d.current;d.current=r?.current||u.current,h!==d.current&&l.onAnchorChange(d.current)}),r?null:s.jsx(ot.div,{...i,ref:c})});AD.displayName=TD;var Dv="PopperContent",[R9,k9]=SD(Dv),ND=A.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:l="center",alignOffset:u=0,arrowPadding:c=0,avoidCollisions:d=!0,collisionBoundary:h=[],collisionPadding:m=0,sticky:p="partial",hideWhenDetached:b=!1,updatePositionStrategy:y="optimized",onPlaced:C,...S}=e,v=CD(Dv,n),[_,E]=A.useState(null),x=Tt(t,J=>E(J)),[T,k]=A.useState(null),N=xD(T),L=N?.width??0,R=N?.height??0,M=r+(l!=="center"?"-"+l:""),F=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},U=Array.isArray(h)?h:[h],$=U.length>0,P={padding:F,boundary:U.filter(I9),altBoundary:$},{refs:V,floatingStyles:te,placement:H,isPositioned:X,middlewareData:K}=b9({strategy:"fixed",placement:M,whileElementsMounted:(...J)=>o9(...J,{animationFrame:y==="always"}),elements:{reference:v.anchor},middleware:[y9({mainAxis:i+R,alignmentAxis:u}),d&&E9({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?_9():void 0,...P}),d&&x9({...P}),S9({...P,apply:({elements:J,rects:G,availableWidth:pe,availableHeight:be})=>{const{width:me,height:le}=G.reference,Ce=J.floating.style;Ce.setProperty("--radix-popper-available-width",`${pe}px`),Ce.setProperty("--radix-popper-available-height",`${be}px`),Ce.setProperty("--radix-popper-anchor-width",`${me}px`),Ce.setProperty("--radix-popper-anchor-height",`${le}px`)}}),T&&w9({element:T,padding:c}),O9({arrowWidth:L,arrowHeight:R}),b&&C9({strategy:"referenceHidden",...P})]}),[j,O]=DD(H),q=An(C);kn(()=>{X&&q?.()},[X,q]);const Z=K.arrow?.x,z=K.arrow?.y,oe=K.arrow?.centerOffset!==0,[xe,fe]=A.useState();return kn(()=>{_&&fe(window.getComputedStyle(_).zIndex)},[_]),s.jsx("div",{ref:V.setFloating,"data-radix-popper-content-wrapper":"",style:{...te,transform:X?te.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:xe,"--radix-popper-transform-origin":[K.transformOrigin?.x,K.transformOrigin?.y].join(" "),...K.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:s.jsx(R9,{scope:n,placedSide:j,onArrowChange:k,arrowX:Z,arrowY:z,shouldHideArrow:oe,children:s.jsx(ot.div,{"data-side":j,"data-align":O,...S,ref:x,style:{...S.style,animation:X?void 0:"none"}})})})});ND.displayName=Dv;var RD="PopperArrow",D9={top:"bottom",right:"left",bottom:"top",left:"right"},kD=A.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,l=k9(RD,r),u=D9[l.placedSide];return s.jsx("span",{ref:l.onArrowChange,style:{position:"absolute",left:l.arrowX,top:l.arrowY,[u]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[l.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[l.placedSide],visibility:l.shouldHideArrow?"hidden":void 0},children:s.jsx(A9,{...i,ref:n,style:{...i.style,display:"block"}})})});kD.displayName=RD;function I9(e){return e!==null}var O9=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:i}=t,u=i.arrow?.centerOffset!==0,c=u?0:e.arrowWidth,d=u?0:e.arrowHeight,[h,m]=DD(n),p={start:"0%",center:"50%",end:"100%"}[m],b=(i.arrow?.x??0)+c/2,y=(i.arrow?.y??0)+d/2;let C="",S="";return h==="bottom"?(C=u?p:`${b}px`,S=`${-d}px`):h==="top"?(C=u?p:`${b}px`,S=`${r.floating.height+d}px`):h==="right"?(C=`${-d}px`,S=u?p:`${y}px`):h==="left"&&(C=`${r.floating.width+d}px`,S=u?p:`${y}px`),{data:{x:C,y:S}}}});function DD(e){const[t,n="center"]=e.split("-");return[t,n]}var ID=wD,OD=AD,LD=ND,MD=kD,[Bf,qre]=Qa("Tooltip",[Pf]),Uf=Pf(),jD="TooltipProvider",L9=700,l0="tooltip.open",[M9,Iv]=Bf(jD),FD=e=>{const{__scopeTooltip:t,delayDuration:n=L9,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:l}=e,u=A.useRef(!0),c=A.useRef(!1),d=A.useRef(0);return A.useEffect(()=>{const h=d.current;return()=>window.clearTimeout(h)},[]),s.jsx(M9,{scope:t,isOpenDelayedRef:u,delayDuration:n,onOpen:A.useCallback(()=>{window.clearTimeout(d.current),u.current=!1},[]),onClose:A.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>u.current=!0,r)},[r]),isPointerInTransitRef:c,onPointerInTransitChange:A.useCallback(h=>{c.current=h},[]),disableHoverableContent:i,children:l})};FD.displayName=jD;var Jc="Tooltip",[j9,Hf]=Bf(Jc),PD=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:l,disableHoverableContent:u,delayDuration:c}=e,d=Iv(Jc,e.__scopeTooltip),h=Uf(t),[m,p]=A.useState(null),b=hs(),y=A.useRef(0),C=u??d.disableHoverableContent,S=c??d.delayDuration,v=A.useRef(!1),[_,E]=Go({prop:r,defaultProp:i??!1,onChange:L=>{L?(d.onOpen(),document.dispatchEvent(new CustomEvent(l0))):d.onClose(),l?.(L)},caller:Jc}),x=A.useMemo(()=>_?v.current?"delayed-open":"instant-open":"closed",[_]),T=A.useCallback(()=>{window.clearTimeout(y.current),y.current=0,v.current=!1,E(!0)},[E]),k=A.useCallback(()=>{window.clearTimeout(y.current),y.current=0,E(!1)},[E]),N=A.useCallback(()=>{window.clearTimeout(y.current),y.current=window.setTimeout(()=>{v.current=!0,E(!0),y.current=0},S)},[S,E]);return A.useEffect(()=>()=>{y.current&&(window.clearTimeout(y.current),y.current=0)},[]),s.jsx(ID,{...h,children:s.jsx(j9,{scope:t,contentId:b,open:_,stateAttribute:x,trigger:m,onTriggerChange:p,onTriggerEnter:A.useCallback(()=>{d.isOpenDelayedRef.current?N():T()},[d.isOpenDelayedRef,N,T]),onTriggerLeave:A.useCallback(()=>{C?k():(window.clearTimeout(y.current),y.current=0)},[k,C]),onOpen:T,onClose:k,disableHoverableContent:C,children:n})})};PD.displayName=Jc;var c0="TooltipTrigger",BD=A.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=Hf(c0,n),l=Iv(c0,n),u=Uf(n),c=A.useRef(null),d=Tt(t,c,i.onTriggerChange),h=A.useRef(!1),m=A.useRef(!1),p=A.useCallback(()=>h.current=!1,[]);return A.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),s.jsx(OD,{asChild:!0,...u,children:s.jsx(ot.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:d,onPointerMove:tt(e.onPointerMove,b=>{b.pointerType!=="touch"&&!m.current&&!l.isPointerInTransitRef.current&&(i.onTriggerEnter(),m.current=!0)}),onPointerLeave:tt(e.onPointerLeave,()=>{i.onTriggerLeave(),m.current=!1}),onPointerDown:tt(e.onPointerDown,()=>{i.open&&i.onClose(),h.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:tt(e.onFocus,()=>{h.current||i.onOpen()}),onBlur:tt(e.onBlur,i.onClose),onClick:tt(e.onClick,i.onClose)})})});BD.displayName=c0;var F9="TooltipPortal",[Vre,P9]=Bf(F9,{forceMount:void 0}),Vo="TooltipContent",UD=A.forwardRef((e,t)=>{const n=P9(Vo,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...l}=e,u=Hf(Vo,e.__scopeTooltip);return s.jsx(Jr,{present:r||u.open,children:u.disableHoverableContent?s.jsx(HD,{side:i,...l,ref:t}):s.jsx(B9,{side:i,...l,ref:t})})}),B9=A.forwardRef((e,t)=>{const n=Hf(Vo,e.__scopeTooltip),r=Iv(Vo,e.__scopeTooltip),i=A.useRef(null),l=Tt(t,i),[u,c]=A.useState(null),{trigger:d,onClose:h}=n,m=i.current,{onPointerInTransitChange:p}=r,b=A.useCallback(()=>{c(null),p(!1)},[p]),y=A.useCallback((C,S)=>{const v=C.currentTarget,_={x:C.clientX,y:C.clientY},E=G9(_,v.getBoundingClientRect()),x=q9(_,E),T=V9(S.getBoundingClientRect()),k=Y9([...x,...T]);c(k),p(!0)},[p]);return A.useEffect(()=>()=>b(),[b]),A.useEffect(()=>{if(d&&m){const C=v=>y(v,m),S=v=>y(v,d);return d.addEventListener("pointerleave",C),m.addEventListener("pointerleave",S),()=>{d.removeEventListener("pointerleave",C),m.removeEventListener("pointerleave",S)}}},[d,m,y,b]),A.useEffect(()=>{if(u){const C=S=>{const v=S.target,_={x:S.clientX,y:S.clientY},E=d?.contains(v)||m?.contains(v),x=!W9(_,u);E?b():x&&(b(),h())};return document.addEventListener("pointermove",C),()=>document.removeEventListener("pointermove",C)}},[d,m,u,h,b]),s.jsx(HD,{...e,ref:l})}),[U9,H9]=Bf(Jc,{isInside:!1}),z9=IR("TooltipContent"),HD=A.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:l,onPointerDownOutside:u,...c}=e,d=Hf(Vo,n),h=Uf(n),{onClose:m}=d;return A.useEffect(()=>(document.addEventListener(l0,m),()=>document.removeEventListener(l0,m)),[m]),A.useEffect(()=>{if(d.trigger){const p=b=>{b.target?.contains(d.trigger)&&m()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[d.trigger,m]),s.jsx(fu,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:p=>p.preventDefault(),onDismiss:m,children:s.jsxs(LD,{"data-state":d.stateAttribute,...h,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[s.jsx(z9,{children:r}),s.jsx(U9,{scope:n,isInside:!0,children:s.jsx(TF,{id:d.contentId,role:"tooltip",children:i||r})})]})})});UD.displayName=Vo;var zD="TooltipArrow",$9=A.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=Uf(n);return H9(zD,n).isInside?null:s.jsx(MD,{...i,...r,ref:t})});$9.displayName=zD;function G9(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),l=Math.abs(t.left-e.x);switch(Math.min(n,r,i,l)){case l:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function q9(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function V9(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function W9(e,t){const{x:n,y:r}=e;let i=!1;for(let l=0,u=t.length-1;l<t.length;u=l++){const c=t[l],d=t[u],h=c.x,m=c.y,p=d.x,b=d.y;m>r!=b>r&&n<(p-h)*(r-m)/(b-m)+h&&(i=!i)}return i}function Y9(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),K9(t)}function K9(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const i=e[r];for(;t.length>=2;){const l=t[t.length-1],u=t[t.length-2];if((l.x-u.x)*(i.y-u.y)>=(l.y-u.y)*(i.x-u.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];for(;n.length>=2;){const l=n[n.length-1],u=n[n.length-2];if((l.x-u.x)*(i.y-u.y)>=(l.y-u.y)*(i.x-u.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var X9=FD,Z9=PD,Q9=BD,$D=UD;const J9=X9,eU=Z9,tU=Q9,GD=A.forwardRef(({className:e,sideOffset:t=4,...n},r)=>s.jsx($D,{ref:r,sideOffset:t,className:Ie("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));GD.displayName=$D.displayName;const nU="sidebar_state",rU=3600*24*7,aU="16rem",iU="18rem",sU="3rem",oU="b",qD=A.createContext(null);function zf(){const e=A.useContext(qD);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const VD=A.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:i,children:l,...u},c)=>{const d=Rk(),[h,m]=A.useState(!1),[p,b]=A.useState(e),y=t??p,C=A.useCallback(E=>{const x=typeof E=="function"?E(y):E;n?n(x):b(x),document.cookie=`${nU}=${x}; path=/; max-age=${rU}`},[n,y]),S=A.useCallback(()=>d?m(E=>!E):C(E=>!E),[d,C,m]);A.useEffect(()=>{const E=x=>{x.key===oU&&(x.metaKey||x.ctrlKey)&&(x.preventDefault(),S())};return window.addEventListener("keydown",E),()=>window.removeEventListener("keydown",E)},[S]);const v=y?"expanded":"collapsed",_=A.useMemo(()=>({state:v,open:y,setOpen:C,isMobile:d,openMobile:h,setOpenMobile:m,toggleSidebar:S}),[v,y,C,d,h,m,S]);return s.jsx(qD.Provider,{value:_,children:s.jsx(J9,{delayDuration:0,children:s.jsx("div",{style:{"--sidebar-width":aU,"--sidebar-width-icon":sU,...i},className:Ie("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",r),ref:c,...u,children:l})})})});VD.displayName="SidebarProvider";const WD=A.forwardRef(({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:i,...l},u)=>{const{isMobile:c,state:d,openMobile:h,setOpenMobile:m}=zf();return n==="none"?s.jsx("div",{className:Ie("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",r),ref:u,...l,children:i}):c?s.jsx(oD,{open:h,onOpenChange:m,...l,children:s.jsxs(Ev,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":iU},side:e,children:[s.jsxs(_v,{className:"sr-only",children:[s.jsx(xv,{children:"Sidebar"}),s.jsx(cD,{children:"Displays the mobile sidebar."})]}),s.jsx("div",{className:"flex h-full w-full flex-col",children:i})]})}):s.jsxs("div",{ref:u,className:"group peer hidden text-sidebar-foreground md:block","data-state":d,"data-collapsible":d==="collapsed"?n:"","data-variant":t,"data-side":e,children:[s.jsx("div",{className:Ie("relative w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),s.jsx("div",{className:Ie("fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...l,children:s.jsx("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:i})})]})});WD.displayName="Sidebar";const YD=A.forwardRef(({className:e,onClick:t,...n},r)=>{const{toggleSidebar:i}=zf();return s.jsxs(se,{ref:r,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:Ie("h-7 w-7",e),onClick:l=>{t?.(l),i()},...n,children:[s.jsx(Q8,{}),s.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});YD.displayName="SidebarTrigger";const lU=A.forwardRef(({className:e,...t},n)=>{const{toggleSidebar:r}=zf();return s.jsx("button",{ref:n,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:Ie("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})});lU.displayName="SidebarRail";const KD=A.forwardRef(({className:e,...t},n)=>s.jsx("main",{ref:n,className:Ie("relative flex w-full flex-1 flex-col bg-background","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...t}));KD.displayName="SidebarInset";const cU=A.forwardRef(({className:e,...t},n)=>s.jsx(ze,{ref:n,"data-sidebar":"input",className:Ie("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));cU.displayName="SidebarInput";const XD=A.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,"data-sidebar":"header",className:Ie("flex flex-col gap-2 p-2",e),...t}));XD.displayName="SidebarHeader";const ZD=A.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,"data-sidebar":"footer",className:Ie("flex flex-col gap-2 p-2",e),...t}));ZD.displayName="SidebarFooter";const uU=A.forwardRef(({className:e,...t},n)=>s.jsx(xa,{ref:n,"data-sidebar":"separator",className:Ie("mx-2 w-auto bg-sidebar-border",e),...t}));uU.displayName="SidebarSeparator";const QD=A.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,"data-sidebar":"content",className:Ie("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));QD.displayName="SidebarContent";const jh=A.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,"data-sidebar":"group",className:Ie("relative flex w-full min-w-0 flex-col p-2",e),...t}));jh.displayName="SidebarGroup";const Fh=A.forwardRef(({className:e,asChild:t=!1,...n},r)=>{const i=t?rl:"div";return s.jsx(i,{ref:r,"data-sidebar":"group-label",className:Ie("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...n})});Fh.displayName="SidebarGroupLabel";const dU=A.forwardRef(({className:e,asChild:t=!1,...n},r)=>{const i=t?rl:"button";return s.jsx(i,{ref:r,"data-sidebar":"group-action",className:Ie("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...n})});dU.displayName="SidebarGroupAction";const Ph=A.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,"data-sidebar":"group-content",className:Ie("w-full text-sm",e),...t}));Ph.displayName="SidebarGroupContent";const Ro=A.forwardRef(({className:e,...t},n)=>s.jsx("ul",{ref:n,"data-sidebar":"menu",className:Ie("flex w-full min-w-0 flex-col gap-1",e),...t}));Ro.displayName="SidebarMenu";const ko=A.forwardRef(({className:e,...t},n)=>s.jsx("li",{ref:n,"data-sidebar":"menu-item",className:Ie("group/menu-item relative",e),...t}));ko.displayName="SidebarMenuItem";const hU=al("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),Do=A.forwardRef(({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:i,className:l,...u},c)=>{const d=e?rl:"button",{isMobile:h,state:m}=zf(),p=s.jsx(d,{ref:c,"data-sidebar":"menu-button","data-size":r,"data-active":t,className:Ie(hU({variant:n,size:r}),l),...u});return i?(typeof i=="string"&&(i={children:i}),s.jsxs(eU,{children:[s.jsx(tU,{asChild:!0,children:p}),s.jsx(GD,{side:"right",align:"center",hidden:m!=="collapsed"||h,...i})]})):p});Do.displayName="SidebarMenuButton";const fU=A.forwardRef(({className:e,asChild:t=!1,showOnHover:n=!1,...r},i)=>{const l=t?rl:"button";return s.jsx(l,{ref:i,"data-sidebar":"menu-action",className:Ie("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",n&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...r})});fU.displayName="SidebarMenuAction";const pU=A.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,"data-sidebar":"menu-badge",className:Ie("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}));pU.displayName="SidebarMenuBadge";const mU=A.forwardRef(({className:e,showIcon:t=!1,...n},r)=>{const i=A.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return s.jsxs("div",{ref:r,"data-sidebar":"menu-skeleton",className:Ie("flex h-8 items-center gap-2 rounded-md px-2",e),...n,children:[t&&s.jsx(jA,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),s.jsx(jA,{className:"h-4 max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":i}})]})});mU.displayName="SidebarMenuSkeleton";const gU=A.forwardRef(({className:e,...t},n)=>s.jsx("ul",{ref:n,"data-sidebar":"menu-sub",className:Ie("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));gU.displayName="SidebarMenuSub";const bU=A.forwardRef(({...e},t)=>s.jsx("li",{ref:t,...e}));bU.displayName="SidebarMenuSubItem";const vU=A.forwardRef(({asChild:e=!1,size:t="md",isActive:n,className:r,...i},l)=>{const u=e?rl:"a";return s.jsx(u,{ref:l,"data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:Ie("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",r),...i})});vU.displayName="SidebarMenuSubButton";const yU="1.0.49",EU={version:yU};function _U({className:e}){return s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,children:[s.jsx("path",{d:"M13 8c0-2.76-2.46-5-5.5-5S2 5.24 2 8h2l1-1 1 1h4"}),s.jsx("path",{d:"M13 7.14A5.82 5.82 0 0 1 16.5 6c3.04 0 5.5 2.24 5.5 5h-3l-1-1-1 1h-3"}),s.jsx("path",{d:"M5.89 9.71c-2.15 2.15-2.3 5.47-.35 7.43l4.24-4.25.7-.7.71-.71 2.12-2.12c-1.95-1.96-5.27-1.8-7.42.35"}),s.jsx("path",{d:"M11 15.5c.5 2.5-.17 4.5-1 6.5h4c2-5.5-.5-12-1-14"})]})}const xU=[{title:"Home",url:"/",icon:P8},{title:"Proposals",url:"/proposals",icon:N8},{title:"Agents",url:"/agents",icon:pa},{title:"Code",url:"/code",icon:ck},{title:"Terminal",url:"/terminal",icon:ga},{title:"Git",url:"/git",icon:Xh}],SU=[{title:"Overview",url:"/context/project",icon:va},{title:"Architecture",url:"/context/architecture",icon:ZF},{title:"Knowledge",url:"/context/knowledge",icon:o8},{title:"Resources",url:"/resources",icon:dk}],CU=[{title:"Documentation",url:"https://docs.coconut.dev/",icon:X8,external:!0},{title:"Settings",url:"/settings",icon:Df}];function wU(){return s.jsxs(WD,{className:"bg-sidebar border-r border-sidebar-border",children:[s.jsx(XD,{children:s.jsx(Ro,{children:s.jsx(ko,{children:s.jsx(Do,{size:"lg",asChild:!0,children:s.jsxs(Ze,{to:"/",children:[s.jsx(_U,{className:"size-8"}),s.jsxs("div",{className:"flex flex-col gap-0.5",children:[s.jsxs("span",{className:"font-semibold",children:["Coconut v",EU.version]}),s.jsx("span",{className:"text-xs text-muted-foreground",children:"Come one, come all"})]})]})})})})}),s.jsxs(QD,{children:[s.jsxs(jh,{children:[s.jsx(Fh,{children:"Main"}),s.jsx(Ph,{children:s.jsx(Ro,{children:xU.map(e=>s.jsx(ko,{children:s.jsx(Do,{asChild:!0,children:s.jsxs(Ze,{to:e.url,children:[s.jsx(e.icon,{}),s.jsx("span",{children:e.title})]})})},e.title))})})]}),s.jsxs(jh,{children:[s.jsx(Fh,{children:"Project Context"}),s.jsx(Ph,{children:s.jsx(Ro,{children:SU.map(e=>s.jsx(ko,{children:s.jsx(Do,{asChild:!0,children:s.jsxs(Ze,{to:e.url,children:[s.jsx(e.icon,{}),s.jsx("span",{children:e.title})]})})},e.title))})})]}),s.jsxs(jh,{children:[s.jsx(Fh,{children:"Quick Actions"}),s.jsx(Ph,{children:s.jsx(Ro,{children:s.jsx(ko,{children:s.jsx(Do,{asChild:!0,children:s.jsxs(Ze,{to:"/proposals/new",children:[s.jsx(Gt,{}),s.jsx("span",{children:"New Proposal"})]})})})})})]})]}),s.jsx(ZD,{children:s.jsx(Ro,{children:CU.map(e=>s.jsx(ko,{children:s.jsx(Do,{asChild:!0,children:e.external?s.jsxs("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",children:[s.jsx(e.icon,{}),s.jsx("span",{children:e.title})]}):s.jsxs(Ze,{to:e.url,children:[s.jsx(e.icon,{}),s.jsx("span",{children:e.title})]})})},e.title))})})]})}const Ue="";async function jc(e,t={}){const n=`${Ue}${e}`,r={headers:{"Content-Type":"application/json",...t.headers},...t},i=await fetch(n,r);if(!i.ok)throw new Error(`API request failed: ${i.status} ${i.statusText}`);return i.json()}const TU=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}`;function u0(e,[t,n]){return Math.min(n,Math.max(t,e))}var AU=A.createContext(void 0);function JD(e){const t=A.useContext(AU);return e||t||"ltr"}function eI(e){const t=A.useRef({value:e,previous:e});return A.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var NU=[" ","Enter","ArrowUp","ArrowDown"],RU=[" ","Enter"],bs="Select",[$f,Gf,kU]=OR(bs),[cl,Wre]=Qa(bs,[kU,Pf]),qf=Pf(),[DU,Pi]=cl(bs),[IU,OU]=cl(bs),tI=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:l,value:u,defaultValue:c,onValueChange:d,dir:h,name:m,autoComplete:p,disabled:b,required:y,form:C}=e,S=qf(t),[v,_]=A.useState(null),[E,x]=A.useState(null),[T,k]=A.useState(!1),N=JD(h),[L,R]=Go({prop:r,defaultProp:i??!1,onChange:l,caller:bs}),[M,F]=Go({prop:u,defaultProp:c,onChange:d,caller:bs}),U=A.useRef(null),$=v?C||!!v.closest("form"):!0,[P,V]=A.useState(new Set),te=Array.from(P).map(H=>H.props.value).join(";");return s.jsx(ID,{...S,children:s.jsxs(DU,{required:y,scope:t,trigger:v,onTriggerChange:_,valueNode:E,onValueNodeChange:x,valueNodeHasChildren:T,onValueNodeHasChildrenChange:k,contentId:hs(),value:M,onValueChange:F,open:L,onOpenChange:R,dir:N,triggerPointerDownPosRef:U,disabled:b,children:[s.jsx($f.Provider,{scope:t,children:s.jsx(IU,{scope:e.__scopeSelect,onNativeOptionAdd:A.useCallback(H=>{V(X=>new Set(X).add(H))},[]),onNativeOptionRemove:A.useCallback(H=>{V(X=>{const K=new Set(X);return K.delete(H),K})},[]),children:n})}),$?s.jsxs(wI,{"aria-hidden":!0,required:y,tabIndex:-1,name:m,autoComplete:p,value:M,onChange:H=>F(H.target.value),disabled:b,form:C,children:[M===void 0?s.jsx("option",{value:""}):null,Array.from(P)]},te):null]})})};tI.displayName=bs;var nI="SelectTrigger",rI=A.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...i}=e,l=qf(n),u=Pi(nI,n),c=u.disabled||r,d=Tt(t,u.onTriggerChange),h=Gf(n),m=A.useRef("touch"),[p,b,y]=AI(S=>{const v=h().filter(x=>!x.disabled),_=v.find(x=>x.value===u.value),E=NI(v,S,_);E!==void 0&&u.onValueChange(E.value)}),C=S=>{c||(u.onOpenChange(!0),y()),S&&(u.triggerPointerDownPosRef.current={x:Math.round(S.pageX),y:Math.round(S.pageY)})};return s.jsx(OD,{asChild:!0,...l,children:s.jsx(ot.button,{type:"button",role:"combobox","aria-controls":u.contentId,"aria-expanded":u.open,"aria-required":u.required,"aria-autocomplete":"none",dir:u.dir,"data-state":u.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":TI(u.value)?"":void 0,...i,ref:d,onClick:tt(i.onClick,S=>{S.currentTarget.focus(),m.current!=="mouse"&&C(S)}),onPointerDown:tt(i.onPointerDown,S=>{m.current=S.pointerType;const v=S.target;v.hasPointerCapture(S.pointerId)&&v.releasePointerCapture(S.pointerId),S.button===0&&S.ctrlKey===!1&&S.pointerType==="mouse"&&(C(S),S.preventDefault())}),onKeyDown:tt(i.onKeyDown,S=>{const v=p.current!=="";!(S.ctrlKey||S.altKey||S.metaKey)&&S.key.length===1&&b(S.key),!(v&&S.key===" ")&&NU.includes(S.key)&&(C(),S.preventDefault())})})})});rI.displayName=nI;var aI="SelectValue",iI=A.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,children:l,placeholder:u="",...c}=e,d=Pi(aI,n),{onValueNodeHasChildrenChange:h}=d,m=l!==void 0,p=Tt(t,d.onValueNodeChange);return kn(()=>{h(m)},[h,m]),s.jsx(ot.span,{...c,ref:p,style:{pointerEvents:"none"},children:TI(d.value)?s.jsx(s.Fragment,{children:u}):l})});iI.displayName=aI;var LU="SelectIcon",sI=A.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...i}=e;return s.jsx(ot.span,{"aria-hidden":!0,...i,ref:t,children:r||"▼"})});sI.displayName=LU;var MU="SelectPortal",oI=e=>s.jsx(Tf,{asChild:!0,...e});oI.displayName=MU;var vs="SelectContent",lI=A.forwardRef((e,t)=>{const n=Pi(vs,e.__scopeSelect),[r,i]=A.useState();if(kn(()=>{i(new DocumentFragment)},[]),!n.open){const l=r;return l?nl.createPortal(s.jsx(cI,{scope:e.__scopeSelect,children:s.jsx($f.Slot,{scope:e.__scopeSelect,children:s.jsx("div",{children:e.children})})}),l):null}return s.jsx(uI,{...e,ref:t})});lI.displayName=vs;var qr=10,[cI,Bi]=cl(vs),jU="SelectContentImpl",FU=$o("SelectContent.RemoveScroll"),uI=A.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:l,onPointerDownOutside:u,side:c,sideOffset:d,align:h,alignOffset:m,arrowPadding:p,collisionBoundary:b,collisionPadding:y,sticky:C,hideWhenDetached:S,avoidCollisions:v,..._}=e,E=Pi(vs,n),[x,T]=A.useState(null),[k,N]=A.useState(null),L=Tt(t,J=>T(J)),[R,M]=A.useState(null),[F,U]=A.useState(null),$=Gf(n),[P,V]=A.useState(!1),te=A.useRef(!1);A.useEffect(()=>{if(x)return zk(x)},[x]),Ok();const H=A.useCallback(J=>{const[G,...pe]=$().map(le=>le.ref.current),[be]=pe.slice(-1),me=document.activeElement;for(const le of J)if(le===me||(le?.scrollIntoView({block:"nearest"}),le===G&&k&&(k.scrollTop=0),le===be&&k&&(k.scrollTop=k.scrollHeight),le?.focus(),document.activeElement!==me))return},[$,k]),X=A.useCallback(()=>H([R,x]),[H,R,x]);A.useEffect(()=>{P&&X()},[P,X]);const{onOpenChange:K,triggerPointerDownPosRef:j}=E;A.useEffect(()=>{if(x){let J={x:0,y:0};const G=be=>{J={x:Math.abs(Math.round(be.pageX)-(j.current?.x??0)),y:Math.abs(Math.round(be.pageY)-(j.current?.y??0))}},pe=be=>{J.x<=10&&J.y<=10?be.preventDefault():x.contains(be.target)||K(!1),document.removeEventListener("pointermove",G),j.current=null};return j.current!==null&&(document.addEventListener("pointermove",G),document.addEventListener("pointerup",pe,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",G),document.removeEventListener("pointerup",pe,{capture:!0})}}},[x,K,j]),A.useEffect(()=>{const J=()=>K(!1);return window.addEventListener("blur",J),window.addEventListener("resize",J),()=>{window.removeEventListener("blur",J),window.removeEventListener("resize",J)}},[K]);const[O,q]=AI(J=>{const G=$().filter(me=>!me.disabled),pe=G.find(me=>me.ref.current===document.activeElement),be=NI(G,J,pe);be&&setTimeout(()=>be.ref.current.focus())}),Z=A.useCallback((J,G,pe)=>{const be=!te.current&&!pe;(E.value!==void 0&&E.value===G||be)&&(M(J),be&&(te.current=!0))},[E.value]),z=A.useCallback(()=>x?.focus(),[x]),oe=A.useCallback((J,G,pe)=>{const be=!te.current&&!pe;(E.value!==void 0&&E.value===G||be)&&U(J)},[E.value]),xe=r==="popper"?d0:dI,fe=xe===d0?{side:c,sideOffset:d,align:h,alignOffset:m,arrowPadding:p,collisionBoundary:b,collisionPadding:y,sticky:C,hideWhenDetached:S,avoidCollisions:v}:{};return s.jsx(cI,{scope:n,content:x,viewport:k,onViewportChange:N,itemRefCallback:Z,selectedItem:R,onItemLeave:z,itemTextRefCallback:oe,focusSelectedItem:X,selectedItemText:F,position:r,isPositioned:P,searchRef:O,children:s.jsx(pv,{as:FU,allowPinchZoom:!0,children:s.jsx(fv,{asChild:!0,trapped:E.open,onMountAutoFocus:J=>{J.preventDefault()},onUnmountAutoFocus:tt(i,J=>{E.trigger?.focus({preventScroll:!0}),J.preventDefault()}),children:s.jsx(fu,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:J=>J.preventDefault(),onDismiss:()=>E.onOpenChange(!1),children:s.jsx(xe,{role:"listbox",id:E.contentId,"data-state":E.open?"open":"closed",dir:E.dir,onContextMenu:J=>J.preventDefault(),..._,...fe,onPlaced:()=>V(!0),ref:L,style:{display:"flex",flexDirection:"column",outline:"none",..._.style},onKeyDown:tt(_.onKeyDown,J=>{const G=J.ctrlKey||J.altKey||J.metaKey;if(J.key==="Tab"&&J.preventDefault(),!G&&J.key.length===1&&q(J.key),["ArrowUp","ArrowDown","Home","End"].includes(J.key)){let be=$().filter(me=>!me.disabled).map(me=>me.ref.current);if(["ArrowUp","End"].includes(J.key)&&(be=be.slice().reverse()),["ArrowUp","ArrowDown"].includes(J.key)){const me=J.target,le=be.indexOf(me);be=be.slice(le+1)}setTimeout(()=>H(be)),J.preventDefault()}})})})})})})});uI.displayName=jU;var PU="SelectItemAlignedPosition",dI=A.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...i}=e,l=Pi(vs,n),u=Bi(vs,n),[c,d]=A.useState(null),[h,m]=A.useState(null),p=Tt(t,L=>m(L)),b=Gf(n),y=A.useRef(!1),C=A.useRef(!0),{viewport:S,selectedItem:v,selectedItemText:_,focusSelectedItem:E}=u,x=A.useCallback(()=>{if(l.trigger&&l.valueNode&&c&&h&&S&&v&&_){const L=l.trigger.getBoundingClientRect(),R=h.getBoundingClientRect(),M=l.valueNode.getBoundingClientRect(),F=_.getBoundingClientRect();if(l.dir!=="rtl"){const me=F.left-R.left,le=M.left-me,Ce=L.left-le,ae=L.width+Ce,Le=Math.max(ae,R.width),Be=window.innerWidth-qr,_e=u0(le,[qr,Math.max(qr,Be-Le)]);c.style.minWidth=ae+"px",c.style.left=_e+"px"}else{const me=R.right-F.right,le=window.innerWidth-M.right-me,Ce=window.innerWidth-L.right-le,ae=L.width+Ce,Le=Math.max(ae,R.width),Be=window.innerWidth-qr,_e=u0(le,[qr,Math.max(qr,Be-Le)]);c.style.minWidth=ae+"px",c.style.right=_e+"px"}const U=b(),$=window.innerHeight-qr*2,P=S.scrollHeight,V=window.getComputedStyle(h),te=parseInt(V.borderTopWidth,10),H=parseInt(V.paddingTop,10),X=parseInt(V.borderBottomWidth,10),K=parseInt(V.paddingBottom,10),j=te+H+P+K+X,O=Math.min(v.offsetHeight*5,j),q=window.getComputedStyle(S),Z=parseInt(q.paddingTop,10),z=parseInt(q.paddingBottom,10),oe=L.top+L.height/2-qr,xe=$-oe,fe=v.offsetHeight/2,J=v.offsetTop+fe,G=te+H+J,pe=j-G;if(G<=oe){const me=U.length>0&&v===U[U.length-1].ref.current;c.style.bottom="0px";const le=h.clientHeight-S.offsetTop-S.offsetHeight,Ce=Math.max(xe,fe+(me?z:0)+le+X),ae=G+Ce;c.style.height=ae+"px"}else{const me=U.length>0&&v===U[0].ref.current;c.style.top="0px";const Ce=Math.max(oe,te+S.offsetTop+(me?Z:0)+fe)+pe;c.style.height=Ce+"px",S.scrollTop=G-oe+S.offsetTop}c.style.margin=`${qr}px 0`,c.style.minHeight=O+"px",c.style.maxHeight=$+"px",r?.(),requestAnimationFrame(()=>y.current=!0)}},[b,l.trigger,l.valueNode,c,h,S,v,_,l.dir,r]);kn(()=>x(),[x]);const[T,k]=A.useState();kn(()=>{h&&k(window.getComputedStyle(h).zIndex)},[h]);const N=A.useCallback(L=>{L&&C.current===!0&&(x(),E?.(),C.current=!1)},[x,E]);return s.jsx(UU,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:y,onScrollButtonChange:N,children:s.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:T},children:s.jsx(ot.div,{...i,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});dI.displayName=PU;var BU="SelectPopperPosition",d0=A.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:i=qr,...l}=e,u=qf(n);return s.jsx(LD,{...u,...l,ref:t,align:r,collisionPadding:i,style:{boxSizing:"border-box",...l.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});d0.displayName=BU;var[UU,Ov]=cl(vs,{}),h0="SelectViewport",hI=A.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...i}=e,l=Bi(h0,n),u=Ov(h0,n),c=Tt(t,l.onViewportChange),d=A.useRef(0);return s.jsxs(s.Fragment,{children:[s.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),s.jsx($f.Slot,{scope:n,children:s.jsx(ot.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:tt(i.onScroll,h=>{const m=h.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:b}=u;if(b?.current&&p){const y=Math.abs(d.current-m.scrollTop);if(y>0){const C=window.innerHeight-qr*2,S=parseFloat(p.style.minHeight),v=parseFloat(p.style.height),_=Math.max(S,v);if(_<C){const E=_+y,x=Math.min(C,E),T=E-x;p.style.height=x+"px",p.style.bottom==="0px"&&(m.scrollTop=T>0?T:0,p.style.justifyContent="flex-end")}}}d.current=m.scrollTop})})})]})});hI.displayName=h0;var fI="SelectGroup",[HU,zU]=cl(fI),$U=A.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=hs();return s.jsx(HU,{scope:n,id:i,children:s.jsx(ot.div,{role:"group","aria-labelledby":i,...r,ref:t})})});$U.displayName=fI;var pI="SelectLabel",mI=A.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=zU(pI,n);return s.jsx(ot.div,{id:i.id,...r,ref:t})});mI.displayName=pI;var rf="SelectItem",[GU,gI]=cl(rf),bI=A.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:i=!1,textValue:l,...u}=e,c=Pi(rf,n),d=Bi(rf,n),h=c.value===r,[m,p]=A.useState(l??""),[b,y]=A.useState(!1),C=Tt(t,E=>d.itemRefCallback?.(E,r,i)),S=hs(),v=A.useRef("touch"),_=()=>{i||(c.onValueChange(r),c.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return s.jsx(GU,{scope:n,value:r,disabled:i,textId:S,isSelected:h,onItemTextChange:A.useCallback(E=>{p(x=>x||(E?.textContent??"").trim())},[]),children:s.jsx($f.ItemSlot,{scope:n,value:r,disabled:i,textValue:m,children:s.jsx(ot.div,{role:"option","aria-labelledby":S,"data-highlighted":b?"":void 0,"aria-selected":h&&b,"data-state":h?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...u,ref:C,onFocus:tt(u.onFocus,()=>y(!0)),onBlur:tt(u.onBlur,()=>y(!1)),onClick:tt(u.onClick,()=>{v.current!=="mouse"&&_()}),onPointerUp:tt(u.onPointerUp,()=>{v.current==="mouse"&&_()}),onPointerDown:tt(u.onPointerDown,E=>{v.current=E.pointerType}),onPointerMove:tt(u.onPointerMove,E=>{v.current=E.pointerType,i?d.onItemLeave?.():v.current==="mouse"&&E.currentTarget.focus({preventScroll:!0})}),onPointerLeave:tt(u.onPointerLeave,E=>{E.currentTarget===document.activeElement&&d.onItemLeave?.()}),onKeyDown:tt(u.onKeyDown,E=>{d.searchRef?.current!==""&&E.key===" "||(RU.includes(E.key)&&_(),E.key===" "&&E.preventDefault())})})})})});bI.displayName=rf;var Oc="SelectItemText",vI=A.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,...l}=e,u=Pi(Oc,n),c=Bi(Oc,n),d=gI(Oc,n),h=OU(Oc,n),[m,p]=A.useState(null),b=Tt(t,_=>p(_),d.onItemTextChange,_=>c.itemTextRefCallback?.(_,d.value,d.disabled)),y=m?.textContent,C=A.useMemo(()=>s.jsx("option",{value:d.value,disabled:d.disabled,children:y},d.value),[d.disabled,d.value,y]),{onNativeOptionAdd:S,onNativeOptionRemove:v}=h;return kn(()=>(S(C),()=>v(C)),[S,v,C]),s.jsxs(s.Fragment,{children:[s.jsx(ot.span,{id:d.textId,...l,ref:b}),d.isSelected&&u.valueNode&&!u.valueNodeHasChildren?nl.createPortal(l.children,u.valueNode):null]})});vI.displayName=Oc;var yI="SelectItemIndicator",EI=A.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return gI(yI,n).isSelected?s.jsx(ot.span,{"aria-hidden":!0,...r,ref:t}):null});EI.displayName=yI;var f0="SelectScrollUpButton",_I=A.forwardRef((e,t)=>{const n=Bi(f0,e.__scopeSelect),r=Ov(f0,e.__scopeSelect),[i,l]=A.useState(!1),u=Tt(t,r.onScrollButtonChange);return kn(()=>{if(n.viewport&&n.isPositioned){let c=function(){const h=d.scrollTop>0;l(h)};const d=n.viewport;return c(),d.addEventListener("scroll",c),()=>d.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),i?s.jsx(SI,{...e,ref:u,onAutoScroll:()=>{const{viewport:c,selectedItem:d}=n;c&&d&&(c.scrollTop=c.scrollTop-d.offsetHeight)}}):null});_I.displayName=f0;var p0="SelectScrollDownButton",xI=A.forwardRef((e,t)=>{const n=Bi(p0,e.__scopeSelect),r=Ov(p0,e.__scopeSelect),[i,l]=A.useState(!1),u=Tt(t,r.onScrollButtonChange);return kn(()=>{if(n.viewport&&n.isPositioned){let c=function(){const h=d.scrollHeight-d.clientHeight,m=Math.ceil(d.scrollTop)<h;l(m)};const d=n.viewport;return c(),d.addEventListener("scroll",c),()=>d.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),i?s.jsx(SI,{...e,ref:u,onAutoScroll:()=>{const{viewport:c,selectedItem:d}=n;c&&d&&(c.scrollTop=c.scrollTop+d.offsetHeight)}}):null});xI.displayName=p0;var SI=A.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...i}=e,l=Bi("SelectScrollButton",n),u=A.useRef(null),c=Gf(n),d=A.useCallback(()=>{u.current!==null&&(window.clearInterval(u.current),u.current=null)},[]);return A.useEffect(()=>()=>d(),[d]),kn(()=>{c().find(m=>m.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[c]),s.jsx(ot.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:tt(i.onPointerDown,()=>{u.current===null&&(u.current=window.setInterval(r,50))}),onPointerMove:tt(i.onPointerMove,()=>{l.onItemLeave?.(),u.current===null&&(u.current=window.setInterval(r,50))}),onPointerLeave:tt(i.onPointerLeave,()=>{d()})})}),qU="SelectSeparator",CI=A.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return s.jsx(ot.div,{"aria-hidden":!0,...r,ref:t})});CI.displayName=qU;var m0="SelectArrow",VU=A.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=qf(n),l=Pi(m0,n),u=Bi(m0,n);return l.open&&u.position==="popper"?s.jsx(MD,{...i,...r,ref:t}):null});VU.displayName=m0;var WU="SelectBubbleInput",wI=A.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const i=A.useRef(null),l=Tt(r,i),u=eI(t);return A.useEffect(()=>{const c=i.current;if(!c)return;const d=window.HTMLSelectElement.prototype,m=Object.getOwnPropertyDescriptor(d,"value").set;if(u!==t&&m){const p=new Event("change",{bubbles:!0});m.call(c,t),c.dispatchEvent(p)}},[u,t]),s.jsx(ot.select,{...n,style:{...PR,...n.style},ref:l,defaultValue:t})});wI.displayName=WU;function TI(e){return e===""||e===void 0}function AI(e){const t=An(e),n=A.useRef(""),r=A.useRef(0),i=A.useCallback(u=>{const c=n.current+u;t(c),(function d(h){n.current=h,window.clearTimeout(r.current),h!==""&&(r.current=window.setTimeout(()=>d(""),1e3))})(c)},[t]),l=A.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return A.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,l]}function NI(e,t,n){const i=t.length>1&&Array.from(t).every(h=>h===t[0])?t[0]:t,l=n?e.indexOf(n):-1;let u=YU(e,Math.max(l,0));i.length===1&&(u=u.filter(h=>h!==n));const d=u.find(h=>h.textValue.toLowerCase().startsWith(i.toLowerCase()));return d!==n?d:void 0}function YU(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var KU=tI,RI=rI,XU=iI,ZU=sI,QU=oI,kI=lI,JU=hI,DI=mI,II=bI,eH=vI,tH=EI,OI=_I,LI=xI,MI=CI;const en=KU,tn=XU,Kt=A.forwardRef(({className:e,children:t,...n},r)=>s.jsxs(RI,{ref:r,className:Ie("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,s.jsx(ZU,{asChild:!0,children:s.jsx(ok,{className:"h-4 w-4 opacity-50"})})]}));Kt.displayName=RI.displayName;const jI=A.forwardRef(({className:e,...t},n)=>s.jsx(OI,{ref:n,className:Ie("flex cursor-default items-center justify-center py-1",e),...t,children:s.jsx(p8,{className:"h-4 w-4"})}));jI.displayName=OI.displayName;const FI=A.forwardRef(({className:e,...t},n)=>s.jsx(LI,{ref:n,className:Ie("flex cursor-default items-center justify-center py-1",e),...t,children:s.jsx(ok,{className:"h-4 w-4"})}));FI.displayName=LI.displayName;const Xt=A.forwardRef(({className:e,children:t,position:n="popper",...r},i)=>s.jsx(QU,{children:s.jsxs(kI,{ref:i,className:Ie("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[s.jsx(jI,{}),s.jsx(JU,{className:Ie("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),s.jsx(FI,{})]})}));Xt.displayName=kI.displayName;const nH=A.forwardRef(({className:e,...t},n)=>s.jsx(DI,{ref:n,className:Ie("px-2 py-1.5 text-sm font-semibold",e),...t}));nH.displayName=DI.displayName;const Pe=A.forwardRef(({className:e,children:t,...n},r)=>s.jsxs(II,{ref:r,className:Ie("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[s.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:s.jsx(tH,{children:s.jsx(mu,{className:"h-4 w-4"})})}),s.jsx(eH,{children:t})]}));Pe.displayName=II.displayName;const rH=A.forwardRef(({className:e,...t},n)=>s.jsx(MI,{ref:n,className:Ie("-mx-1 my-1 h-px bg-muted",e),...t}));rH.displayName=MI.displayName;const Ea=A.forwardRef(({className:e,...t},n)=>s.jsx("textarea",{className:Ie("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...t}));Ea.displayName="Textarea";const Wo=vv,WA=sD,aH=yv,PI=A.forwardRef(({className:e,...t},n)=>s.jsx(gu,{ref:n,className:Ie("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));PI.displayName=gu.displayName;const ys=A.forwardRef(({className:e,children:t,...n},r)=>s.jsxs(aH,{children:[s.jsx(PI,{}),s.jsxs(bu,{ref:r,className:Ie("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,s.jsxs(Lf,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[s.jsx(xr,{className:"h-4 w-4"}),s.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));ys.displayName=bu.displayName;const Es=({className:e,...t})=>s.jsx("div",{className:Ie("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Es.displayName="DialogHeader";const g0=({className:e,...t})=>s.jsx("div",{className:Ie("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});g0.displayName="DialogFooter";const _s=A.forwardRef(({className:e,...t},n)=>s.jsx(vu,{ref:n,className:Ie("text-lg font-semibold leading-none tracking-tight",e),...t}));_s.displayName=vu.displayName;const b0=A.forwardRef(({className:e,...t},n)=>s.jsx(yu,{ref:n,className:Ie("text-sm text-muted-foreground",e),...t}));b0.displayName=yu.displayName;function eu(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,l=!1;for(;!l;){r===-1&&(r=n.length,l=!0);const u=n.slice(i,r).trim();(u||!l)&&t.push(u),i=r+1,r=n.indexOf(",",i)}return t}function Vf(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const iH=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,sH=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,oH={};function YA(e,t){return(oH.jsx?sH:iH).test(e)}const lH=/[ \t\n\f\r]/g;function _u(e){return typeof e=="object"?e.type==="text"?KA(e.value):!1:KA(e)}function KA(e){return e.replace(lH,"")===""}let xu=class{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}};xu.prototype.normal={};xu.prototype.property={};xu.prototype.space=void 0;function BI(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new xu(n,r,t)}function tu(e){return e.toLowerCase()}let or=class{constructor(t,n){this.attribute=n,this.property=t}};or.prototype.attribute="";or.prototype.booleanish=!1;or.prototype.boolean=!1;or.prototype.commaOrSpaceSeparated=!1;or.prototype.commaSeparated=!1;or.prototype.defined=!1;or.prototype.mustUseProperty=!1;or.prototype.number=!1;or.prototype.overloadedBoolean=!1;or.prototype.property="";or.prototype.spaceSeparated=!1;or.prototype.space=void 0;let cH=0;const dt=Ts(),hn=Ts(),v0=Ts(),Me=Ts(),zt=Ts(),Fo=Ts(),br=Ts();function Ts(){return 2**++cH}const y0=Object.freeze(Object.defineProperty({__proto__:null,boolean:dt,booleanish:hn,commaOrSpaceSeparated:br,commaSeparated:Fo,number:Me,overloadedBoolean:v0,spaceSeparated:zt},Symbol.toStringTag,{value:"Module"})),ob=Object.keys(y0);let Lv=class extends or{constructor(t,n,r,i){let l=-1;if(super(t,n),XA(this,"space",i),typeof r=="number")for(;++l<ob.length;){const u=ob[l];XA(this,ob[l],(r&y0[u])===y0[u])}}};Lv.prototype.defined=!0;function XA(e,t,n){n&&(e[t]=n)}function ul(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const l=new Lv(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),t[r]=l,n[tu(r)]=r,n[tu(l.attribute)]=r}return new xu(t,n,e.space)}const UI=ul({properties:{ariaActiveDescendant:null,ariaAtomic:hn,ariaAutoComplete:null,ariaBusy:hn,ariaChecked:hn,ariaColCount:Me,ariaColIndex:Me,ariaColSpan:Me,ariaControls:zt,ariaCurrent:null,ariaDescribedBy:zt,ariaDetails:null,ariaDisabled:hn,ariaDropEffect:zt,ariaErrorMessage:null,ariaExpanded:hn,ariaFlowTo:zt,ariaGrabbed:hn,ariaHasPopup:null,ariaHidden:hn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:zt,ariaLevel:Me,ariaLive:null,ariaModal:hn,ariaMultiLine:hn,ariaMultiSelectable:hn,ariaOrientation:null,ariaOwns:zt,ariaPlaceholder:null,ariaPosInSet:Me,ariaPressed:hn,ariaReadOnly:hn,ariaRelevant:null,ariaRequired:hn,ariaRoleDescription:zt,ariaRowCount:Me,ariaRowIndex:Me,ariaRowSpan:Me,ariaSelected:hn,ariaSetSize:Me,ariaSort:null,ariaValueMax:Me,ariaValueMin:Me,ariaValueNow:Me,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function HI(e,t){return t in e?e[t]:t}function zI(e,t){return HI(e,t.toLowerCase())}const uH=ul({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Fo,acceptCharset:zt,accessKey:zt,action:null,allow:null,allowFullScreen:dt,allowPaymentRequest:dt,allowUserMedia:dt,alt:null,as:null,async:dt,autoCapitalize:null,autoComplete:zt,autoFocus:dt,autoPlay:dt,blocking:zt,capture:null,charSet:null,checked:dt,cite:null,className:zt,cols:Me,colSpan:null,content:null,contentEditable:hn,controls:dt,controlsList:zt,coords:Me|Fo,crossOrigin:null,data:null,dateTime:null,decoding:null,default:dt,defer:dt,dir:null,dirName:null,disabled:dt,download:v0,draggable:hn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:dt,formTarget:null,headers:zt,height:Me,hidden:v0,high:Me,href:null,hrefLang:null,htmlFor:zt,httpEquiv:zt,id:null,imageSizes:null,imageSrcSet:null,inert:dt,inputMode:null,integrity:null,is:null,isMap:dt,itemId:null,itemProp:zt,itemRef:zt,itemScope:dt,itemType:zt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:dt,low:Me,manifest:null,max:null,maxLength:Me,media:null,method:null,min:null,minLength:Me,multiple:dt,muted:dt,name:null,nonce:null,noModule:dt,noValidate:dt,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:dt,optimum:Me,pattern:null,ping:zt,placeholder:null,playsInline:dt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:dt,referrerPolicy:null,rel:zt,required:dt,reversed:dt,rows:Me,rowSpan:Me,sandbox:zt,scope:null,scoped:dt,seamless:dt,selected:dt,shadowRootClonable:dt,shadowRootDelegatesFocus:dt,shadowRootMode:null,shape:null,size:Me,sizes:null,slot:null,span:Me,spellCheck:hn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Me,step:null,style:null,tabIndex:Me,target:null,title:null,translate:null,type:null,typeMustMatch:dt,useMap:null,value:hn,width:Me,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:zt,axis:null,background:null,bgColor:null,border:Me,borderColor:null,bottomMargin:Me,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:dt,declare:dt,event:null,face:null,frame:null,frameBorder:null,hSpace:Me,leftMargin:Me,link:null,longDesc:null,lowSrc:null,marginHeight:Me,marginWidth:Me,noResize:dt,noHref:dt,noShade:dt,noWrap:dt,object:null,profile:null,prompt:null,rev:null,rightMargin:Me,rules:null,scheme:null,scrolling:hn,standby:null,summary:null,text:null,topMargin:Me,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Me,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:dt,disableRemotePlayback:dt,prefix:null,property:null,results:Me,security:null,unselectable:null},space:"html",transform:zI}),dH=ul({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:br,accentHeight:Me,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Me,amplitude:Me,arabicForm:null,ascent:Me,attributeName:null,attributeType:null,azimuth:Me,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Me,by:null,calcMode:null,capHeight:Me,className:zt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Me,diffuseConstant:Me,direction:null,display:null,dur:null,divisor:Me,dominantBaseline:null,download:dt,dx:null,dy:null,edgeMode:null,editable:null,elevation:Me,enableBackground:null,end:null,event:null,exponent:Me,externalResourcesRequired:null,fill:null,fillOpacity:Me,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Fo,g2:Fo,glyphName:Fo,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Me,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Me,horizOriginX:Me,horizOriginY:Me,id:null,ideographic:Me,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Me,k:Me,k1:Me,k2:Me,k3:Me,k4:Me,kernelMatrix:br,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Me,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Me,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Me,overlineThickness:Me,paintOrder:null,panose1:null,path:null,pathLength:Me,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:zt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Me,pointsAtY:Me,pointsAtZ:Me,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:br,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:br,rev:br,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:br,requiredFeatures:br,requiredFonts:br,requiredFormats:br,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Me,specularExponent:Me,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Me,strikethroughThickness:Me,string:null,stroke:null,strokeDashArray:br,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Me,strokeOpacity:Me,strokeWidth:null,style:null,surfaceScale:Me,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:br,tabIndex:Me,tableValues:null,target:null,targetX:Me,targetY:Me,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:br,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Me,underlineThickness:Me,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Me,values:null,vAlphabetic:Me,vMathematical:Me,vectorEffect:null,vHanging:Me,vIdeographic:Me,version:null,vertAdvY:Me,vertOriginX:Me,vertOriginY:Me,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Me,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:HI}),$I=ul({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),GI=ul({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:zI}),qI=ul({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),hH={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},fH=/[A-Z]/g,ZA=/-[a-z]/g,pH=/^data[-\w.:]+$/i;function Su(e,t){const n=tu(t);let r=t,i=or;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&pH.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(ZA,gH);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!ZA.test(l)){let u=l.replace(fH,mH);u.charAt(0)!=="-"&&(u="-"+u),t="data"+u}}i=Lv}return new i(r,t)}function mH(e){return"-"+e.toLowerCase()}function gH(e){return e.charAt(1).toUpperCase()}const dl=BI([UI,uH,$I,GI,qI],"html"),Ja=BI([UI,dH,$I,GI,qI],"svg");function nu(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Wf(e){return e.join(" ").trim()}var To={},lb,QA;function bH(){if(QA)return lb;QA=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,c=/^\s+|\s+$/g,d=`
419
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return A.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},h7="DialogDescriptionWarning",f7=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${iD(h7).contentName}}.`;return A.useEffect(()=>{const i=e.current?.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},vv=qk,sD=Wk,yv=Kk,gu=Xk,bu=Zk,vu=Jk,yu=tD,Lf=rD;const oD=vv,p7=yv,lD=A.forwardRef(({className:e,...t},n)=>s.jsx(gu,{className:Ie("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));lD.displayName=gu.displayName;const m7=al("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Ev=A.forwardRef(({side:e="right",className:t,children:n,...r},i)=>s.jsxs(p7,{children:[s.jsx(lD,{}),s.jsxs(bu,{ref:i,className:Ie(m7({side:e}),t),...r,children:[n,s.jsxs(Lf,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[s.jsx(xr,{className:"h-4 w-4"}),s.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Ev.displayName=bu.displayName;const _v=({className:e,...t})=>s.jsx("div",{className:Ie("flex flex-col space-y-2 text-center sm:text-left",e),...t});_v.displayName="SheetHeader";const xv=A.forwardRef(({className:e,...t},n)=>s.jsx(vu,{ref:n,className:Ie("text-lg font-semibold text-foreground",e),...t}));xv.displayName=vu.displayName;const cD=A.forwardRef(({className:e,...t},n)=>s.jsx(yu,{ref:n,className:Ie("text-sm text-muted-foreground",e),...t}));cD.displayName=yu.displayName;function jA({className:e,...t}){return s.jsx("div",{className:Ie("animate-pulse rounded-md bg-muted",e),...t})}const g7=["top","right","bottom","left"],Oi=Math.min,Er=Math.max,Jh=Math.round,ph=Math.floor,ba=e=>({x:e,y:e}),b7={left:"right",right:"left",bottom:"top",top:"bottom"},v7={start:"end",end:"start"};function i0(e,t,n){return Er(e,Oi(t,n))}function Ka(e,t){return typeof e=="function"?e(t):e}function Xa(e){return e.split("-")[0]}function ol(e){return e.split("-")[1]}function Sv(e){return e==="x"?"y":"x"}function Cv(e){return e==="y"?"height":"width"}const y7=new Set(["top","bottom"]);function da(e){return y7.has(Xa(e))?"y":"x"}function wv(e){return Sv(da(e))}function E7(e,t,n){n===void 0&&(n=!1);const r=ol(e),i=wv(e),l=Cv(i);let u=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(u=ef(u)),[u,ef(u)]}function _7(e){const t=ef(e);return[s0(e),t,s0(t)]}function s0(e){return e.replace(/start|end/g,t=>v7[t])}const FA=["left","right"],PA=["right","left"],x7=["top","bottom"],S7=["bottom","top"];function C7(e,t,n){switch(e){case"top":case"bottom":return n?t?PA:FA:t?FA:PA;case"left":case"right":return t?x7:S7;default:return[]}}function w7(e,t,n,r){const i=ol(e);let l=C7(Xa(e),n==="start",r);return i&&(l=l.map(u=>u+"-"+i),t&&(l=l.concat(l.map(s0)))),l}function ef(e){return e.replace(/left|right|bottom|top/g,t=>b7[t])}function T7(e){return{top:0,right:0,bottom:0,left:0,...e}}function uD(e){return typeof e!="number"?T7(e):{top:e,right:e,bottom:e,left:e}}function tf(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function BA(e,t,n){let{reference:r,floating:i}=e;const l=da(t),u=wv(t),c=Cv(u),d=Xa(t),h=l==="y",m=r.x+r.width/2-i.width/2,p=r.y+r.height/2-i.height/2,b=r[c]/2-i[c]/2;let y;switch(d){case"top":y={x:m,y:r.y-i.height};break;case"bottom":y={x:m,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:p};break;case"left":y={x:r.x-i.width,y:p};break;default:y={x:r.x,y:r.y}}switch(ol(t)){case"start":y[u]-=b*(n&&h?-1:1);break;case"end":y[u]+=b*(n&&h?-1:1);break}return y}const A7=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:l=[],platform:u}=n,c=l.filter(Boolean),d=await(u.isRTL==null?void 0:u.isRTL(t));let h=await u.getElementRects({reference:e,floating:t,strategy:i}),{x:m,y:p}=BA(h,r,d),b=r,y={},C=0;for(let S=0;S<c.length;S++){const{name:v,fn:_}=c[S],{x:E,y:x,data:T,reset:k}=await _({x:m,y:p,initialPlacement:r,placement:b,strategy:i,middlewareData:y,rects:h,platform:u,elements:{reference:e,floating:t}});m=E??m,p=x??p,y={...y,[v]:{...y[v],...T}},k&&C<=50&&(C++,typeof k=="object"&&(k.placement&&(b=k.placement),k.rects&&(h=k.rects===!0?await u.getElementRects({reference:e,floating:t,strategy:i}):k.rects),{x:m,y:p}=BA(h,b,d)),S=-1)}return{x:m,y:p,placement:b,strategy:i,middlewareData:y}};async function Zc(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:l,rects:u,elements:c,strategy:d}=e,{boundary:h="clippingAncestors",rootBoundary:m="viewport",elementContext:p="floating",altBoundary:b=!1,padding:y=0}=Ka(t,e),C=uD(y),v=c[b?p==="floating"?"reference":"floating":p],_=tf(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(v)))==null||n?v:v.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(c.floating)),boundary:h,rootBoundary:m,strategy:d})),E=p==="floating"?{x:r,y:i,width:u.floating.width,height:u.floating.height}:u.reference,x=await(l.getOffsetParent==null?void 0:l.getOffsetParent(c.floating)),T=await(l.isElement==null?void 0:l.isElement(x))?await(l.getScale==null?void 0:l.getScale(x))||{x:1,y:1}:{x:1,y:1},k=tf(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:E,offsetParent:x,strategy:d}):E);return{top:(_.top-k.top+C.top)/T.y,bottom:(k.bottom-_.bottom+C.bottom)/T.y,left:(_.left-k.left+C.left)/T.x,right:(k.right-_.right+C.right)/T.x}}const N7=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:l,platform:u,elements:c,middlewareData:d}=t,{element:h,padding:m=0}=Ka(e,t)||{};if(h==null)return{};const p=uD(m),b={x:n,y:r},y=wv(i),C=Cv(y),S=await u.getDimensions(h),v=y==="y",_=v?"top":"left",E=v?"bottom":"right",x=v?"clientHeight":"clientWidth",T=l.reference[C]+l.reference[y]-b[y]-l.floating[C],k=b[y]-l.reference[y],N=await(u.getOffsetParent==null?void 0:u.getOffsetParent(h));let L=N?N[x]:0;(!L||!await(u.isElement==null?void 0:u.isElement(N)))&&(L=c.floating[x]||l.floating[C]);const R=T/2-k/2,M=L/2-S[C]/2-1,F=Oi(p[_],M),U=Oi(p[E],M),$=F,P=L-S[C]-U,V=L/2-S[C]/2+R,te=i0($,V,P),H=!d.arrow&&ol(i)!=null&&V!==te&&l.reference[C]/2-(V<$?F:U)-S[C]/2<0,X=H?V<$?V-$:V-P:0;return{[y]:b[y]+X,data:{[y]:te,centerOffset:V-te-X,...H&&{alignmentOffset:X}},reset:H}}}),R7=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:l,rects:u,initialPlacement:c,platform:d,elements:h}=t,{mainAxis:m=!0,crossAxis:p=!0,fallbackPlacements:b,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:S=!0,...v}=Ka(e,t);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const _=Xa(i),E=da(c),x=Xa(c)===c,T=await(d.isRTL==null?void 0:d.isRTL(h.floating)),k=b||(x||!S?[ef(c)]:_7(c)),N=C!=="none";!b&&N&&k.push(...w7(c,S,C,T));const L=[c,...k],R=await Zc(t,v),M=[];let F=((r=l.flip)==null?void 0:r.overflows)||[];if(m&&M.push(R[_]),p){const V=E7(i,u,T);M.push(R[V[0]],R[V[1]])}if(F=[...F,{placement:i,overflows:M}],!M.every(V=>V<=0)){var U,$;const V=(((U=l.flip)==null?void 0:U.index)||0)+1,te=L[V];if(te&&(!(p==="alignment"?E!==da(te):!1)||F.every(K=>da(K.placement)===E?K.overflows[0]>0:!0)))return{data:{index:V,overflows:F},reset:{placement:te}};let H=($=F.filter(X=>X.overflows[0]<=0).sort((X,K)=>X.overflows[1]-K.overflows[1])[0])==null?void 0:$.placement;if(!H)switch(y){case"bestFit":{var P;const X=(P=F.filter(K=>{if(N){const j=da(K.placement);return j===E||j==="y"}return!0}).map(K=>[K.placement,K.overflows.filter(j=>j>0).reduce((j,O)=>j+O,0)]).sort((K,j)=>K[1]-j[1])[0])==null?void 0:P[0];X&&(H=X);break}case"initialPlacement":H=c;break}if(i!==H)return{reset:{placement:H}}}return{}}}};function UA(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function HA(e){return g7.some(t=>e[t]>=0)}const k7=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=Ka(e,t);switch(r){case"referenceHidden":{const l=await Zc(t,{...i,elementContext:"reference"}),u=UA(l,n.reference);return{data:{referenceHiddenOffsets:u,referenceHidden:HA(u)}}}case"escaped":{const l=await Zc(t,{...i,altBoundary:!0}),u=UA(l,n.floating);return{data:{escapedOffsets:u,escaped:HA(u)}}}default:return{}}}}},dD=new Set(["left","top"]);async function D7(e,t){const{placement:n,platform:r,elements:i}=e,l=await(r.isRTL==null?void 0:r.isRTL(i.floating)),u=Xa(n),c=ol(n),d=da(n)==="y",h=dD.has(u)?-1:1,m=l&&d?-1:1,p=Ka(t,e);let{mainAxis:b,crossAxis:y,alignmentAxis:C}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return c&&typeof C=="number"&&(y=c==="end"?C*-1:C),d?{x:y*m,y:b*h}:{x:b*h,y:y*m}}const I7=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:l,placement:u,middlewareData:c}=t,d=await D7(t,e);return u===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:i+d.x,y:l+d.y,data:{...d,placement:u}}}}},O7=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:l=!0,crossAxis:u=!1,limiter:c={fn:v=>{let{x:_,y:E}=v;return{x:_,y:E}}},...d}=Ka(e,t),h={x:n,y:r},m=await Zc(t,d),p=da(Xa(i)),b=Sv(p);let y=h[b],C=h[p];if(l){const v=b==="y"?"top":"left",_=b==="y"?"bottom":"right",E=y+m[v],x=y-m[_];y=i0(E,y,x)}if(u){const v=p==="y"?"top":"left",_=p==="y"?"bottom":"right",E=C+m[v],x=C-m[_];C=i0(E,C,x)}const S=c.fn({...t,[b]:y,[p]:C});return{...S,data:{x:S.x-n,y:S.y-r,enabled:{[b]:l,[p]:u}}}}}},L7=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:l,middlewareData:u}=t,{offset:c=0,mainAxis:d=!0,crossAxis:h=!0}=Ka(e,t),m={x:n,y:r},p=da(i),b=Sv(p);let y=m[b],C=m[p];const S=Ka(c,t),v=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(d){const x=b==="y"?"height":"width",T=l.reference[b]-l.floating[x]+v.mainAxis,k=l.reference[b]+l.reference[x]-v.mainAxis;y<T?y=T:y>k&&(y=k)}if(h){var _,E;const x=b==="y"?"width":"height",T=dD.has(Xa(i)),k=l.reference[p]-l.floating[x]+(T&&((_=u.offset)==null?void 0:_[p])||0)+(T?0:v.crossAxis),N=l.reference[p]+l.reference[x]+(T?0:((E=u.offset)==null?void 0:E[p])||0)-(T?v.crossAxis:0);C<k?C=k:C>N&&(C=N)}return{[b]:y,[p]:C}}}},M7=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:l,platform:u,elements:c}=t,{apply:d=()=>{},...h}=Ka(e,t),m=await Zc(t,h),p=Xa(i),b=ol(i),y=da(i)==="y",{width:C,height:S}=l.floating;let v,_;p==="top"||p==="bottom"?(v=p,_=b===(await(u.isRTL==null?void 0:u.isRTL(c.floating))?"start":"end")?"left":"right"):(_=p,v=b==="end"?"top":"bottom");const E=S-m.top-m.bottom,x=C-m.left-m.right,T=Oi(S-m[v],E),k=Oi(C-m[_],x),N=!t.middlewareData.shift;let L=T,R=k;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(L=E),N&&!b){const F=Er(m.left,0),U=Er(m.right,0),$=Er(m.top,0),P=Er(m.bottom,0);y?R=C-2*(F!==0||U!==0?F+U:Er(m.left,m.right)):L=S-2*($!==0||P!==0?$+P:Er(m.top,m.bottom))}await d({...t,availableWidth:R,availableHeight:L});const M=await u.getDimensions(c.floating);return C!==M.width||S!==M.height?{reset:{rects:!0}}:{}}}};function Mf(){return typeof window<"u"}function ll(e){return hD(e)?(e.nodeName||"").toLowerCase():"#document"}function Sr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Sa(e){var t;return(t=(hD(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function hD(e){return Mf()?e instanceof Node||e instanceof Sr(e).Node:!1}function Xr(e){return Mf()?e instanceof Element||e instanceof Sr(e).Element:!1}function ya(e){return Mf()?e instanceof HTMLElement||e instanceof Sr(e).HTMLElement:!1}function zA(e){return!Mf()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Sr(e).ShadowRoot}const j7=new Set(["inline","contents"]);function Eu(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Zr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!j7.has(i)}const F7=new Set(["table","td","th"]);function P7(e){return F7.has(ll(e))}const B7=[":popover-open",":modal"];function jf(e){return B7.some(t=>{try{return e.matches(t)}catch{return!1}})}const U7=["transform","translate","scale","rotate","perspective"],H7=["transform","translate","scale","rotate","perspective","filter"],z7=["paint","layout","strict","content"];function Tv(e){const t=Av(),n=Xr(e)?Zr(e):e;return U7.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||H7.some(r=>(n.willChange||"").includes(r))||z7.some(r=>(n.contain||"").includes(r))}function $7(e){let t=Li(e);for(;ya(t)&&!qo(t);){if(Tv(t))return t;if(jf(t))return null;t=Li(t)}return null}function Av(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const G7=new Set(["html","body","#document"]);function qo(e){return G7.has(ll(e))}function Zr(e){return Sr(e).getComputedStyle(e)}function Ff(e){return Xr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Li(e){if(ll(e)==="html")return e;const t=e.assignedSlot||e.parentNode||zA(e)&&e.host||Sa(e);return zA(t)?t.host:t}function fD(e){const t=Li(e);return qo(t)?e.ownerDocument?e.ownerDocument.body:e.body:ya(t)&&Eu(t)?t:fD(t)}function Qc(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=fD(e),l=i===((r=e.ownerDocument)==null?void 0:r.body),u=Sr(i);if(l){const c=o0(u);return t.concat(u,u.visualViewport||[],Eu(i)?i:[],c&&n?Qc(c):[])}return t.concat(i,Qc(i,[],n))}function o0(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function pD(e){const t=Zr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=ya(e),l=i?e.offsetWidth:n,u=i?e.offsetHeight:r,c=Jh(n)!==l||Jh(r)!==u;return c&&(n=l,r=u),{width:n,height:r,$:c}}function Nv(e){return Xr(e)?e:e.contextElement}function jo(e){const t=Nv(e);if(!ya(t))return ba(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:l}=pD(t);let u=(l?Jh(n.width):n.width)/r,c=(l?Jh(n.height):n.height)/i;return(!u||!Number.isFinite(u))&&(u=1),(!c||!Number.isFinite(c))&&(c=1),{x:u,y:c}}const q7=ba(0);function mD(e){const t=Sr(e);return!Av()||!t.visualViewport?q7:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function V7(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Sr(e)?!1:t}function gs(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),l=Nv(e);let u=ba(1);t&&(r?Xr(r)&&(u=jo(r)):u=jo(e));const c=V7(l,n,r)?mD(l):ba(0);let d=(i.left+c.x)/u.x,h=(i.top+c.y)/u.y,m=i.width/u.x,p=i.height/u.y;if(l){const b=Sr(l),y=r&&Xr(r)?Sr(r):r;let C=b,S=o0(C);for(;S&&r&&y!==C;){const v=jo(S),_=S.getBoundingClientRect(),E=Zr(S),x=_.left+(S.clientLeft+parseFloat(E.paddingLeft))*v.x,T=_.top+(S.clientTop+parseFloat(E.paddingTop))*v.y;d*=v.x,h*=v.y,m*=v.x,p*=v.y,d+=x,h+=T,C=Sr(S),S=o0(C)}}return tf({width:m,height:p,x:d,y:h})}function Rv(e,t){const n=Ff(e).scrollLeft;return t?t.left+n:gs(Sa(e)).left+n}function gD(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:Rv(e,r)),l=r.top+t.scrollTop;return{x:i,y:l}}function W7(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const l=i==="fixed",u=Sa(r),c=t?jf(t.floating):!1;if(r===u||c&&l)return n;let d={scrollLeft:0,scrollTop:0},h=ba(1);const m=ba(0),p=ya(r);if((p||!p&&!l)&&((ll(r)!=="body"||Eu(u))&&(d=Ff(r)),ya(r))){const y=gs(r);h=jo(r),m.x=y.x+r.clientLeft,m.y=y.y+r.clientTop}const b=u&&!p&&!l?gD(u,d,!0):ba(0);return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-d.scrollLeft*h.x+m.x+b.x,y:n.y*h.y-d.scrollTop*h.y+m.y+b.y}}function Y7(e){return Array.from(e.getClientRects())}function K7(e){const t=Sa(e),n=Ff(e),r=e.ownerDocument.body,i=Er(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),l=Er(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let u=-n.scrollLeft+Rv(e);const c=-n.scrollTop;return Zr(r).direction==="rtl"&&(u+=Er(t.clientWidth,r.clientWidth)-i),{width:i,height:l,x:u,y:c}}function X7(e,t){const n=Sr(e),r=Sa(e),i=n.visualViewport;let l=r.clientWidth,u=r.clientHeight,c=0,d=0;if(i){l=i.width,u=i.height;const h=Av();(!h||h&&t==="fixed")&&(c=i.offsetLeft,d=i.offsetTop)}return{width:l,height:u,x:c,y:d}}const Z7=new Set(["absolute","fixed"]);function Q7(e,t){const n=gs(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,l=ya(e)?jo(e):ba(1),u=e.clientWidth*l.x,c=e.clientHeight*l.y,d=i*l.x,h=r*l.y;return{width:u,height:c,x:d,y:h}}function $A(e,t,n){let r;if(t==="viewport")r=X7(e,n);else if(t==="document")r=K7(Sa(e));else if(Xr(t))r=Q7(t,n);else{const i=mD(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return tf(r)}function bD(e,t){const n=Li(e);return n===t||!Xr(n)||qo(n)?!1:Zr(n).position==="fixed"||bD(n,t)}function J7(e,t){const n=t.get(e);if(n)return n;let r=Qc(e,[],!1).filter(c=>Xr(c)&&ll(c)!=="body"),i=null;const l=Zr(e).position==="fixed";let u=l?Li(e):e;for(;Xr(u)&&!qo(u);){const c=Zr(u),d=Tv(u);!d&&c.position==="fixed"&&(i=null),(l?!d&&!i:!d&&c.position==="static"&&!!i&&Z7.has(i.position)||Eu(u)&&!d&&bD(e,u))?r=r.filter(m=>m!==u):i=c,u=Li(u)}return t.set(e,r),r}function e9(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const u=[...n==="clippingAncestors"?jf(t)?[]:J7(t,this._c):[].concat(n),r],c=u[0],d=u.reduce((h,m)=>{const p=$A(t,m,i);return h.top=Er(p.top,h.top),h.right=Oi(p.right,h.right),h.bottom=Oi(p.bottom,h.bottom),h.left=Er(p.left,h.left),h},$A(t,c,i));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function t9(e){const{width:t,height:n}=pD(e);return{width:t,height:n}}function n9(e,t,n){const r=ya(t),i=Sa(t),l=n==="fixed",u=gs(e,!0,l,t);let c={scrollLeft:0,scrollTop:0};const d=ba(0);function h(){d.x=Rv(i)}if(r||!r&&!l)if((ll(t)!=="body"||Eu(i))&&(c=Ff(t)),r){const y=gs(t,!0,l,t);d.x=y.x+t.clientLeft,d.y=y.y+t.clientTop}else i&&h();l&&!r&&i&&h();const m=i&&!r&&!l?gD(i,c):ba(0),p=u.left+c.scrollLeft-d.x-m.x,b=u.top+c.scrollTop-d.y-m.y;return{x:p,y:b,width:u.width,height:u.height}}function ib(e){return Zr(e).position==="static"}function GA(e,t){if(!ya(e)||Zr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Sa(e)===n&&(n=n.ownerDocument.body),n}function vD(e,t){const n=Sr(e);if(jf(e))return n;if(!ya(e)){let i=Li(e);for(;i&&!qo(i);){if(Xr(i)&&!ib(i))return i;i=Li(i)}return n}let r=GA(e,t);for(;r&&P7(r)&&ib(r);)r=GA(r,t);return r&&qo(r)&&ib(r)&&!Tv(r)?n:r||$7(e)||n}const r9=async function(e){const t=this.getOffsetParent||vD,n=this.getDimensions,r=await n(e.floating);return{reference:n9(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function a9(e){return Zr(e).direction==="rtl"}const i9={convertOffsetParentRelativeRectToViewportRelativeRect:W7,getDocumentElement:Sa,getClippingRect:e9,getOffsetParent:vD,getElementRects:r9,getClientRects:Y7,getDimensions:t9,getScale:jo,isElement:Xr,isRTL:a9};function yD(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function s9(e,t){let n=null,r;const i=Sa(e);function l(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function u(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),l();const h=e.getBoundingClientRect(),{left:m,top:p,width:b,height:y}=h;if(c||t(),!b||!y)return;const C=ph(p),S=ph(i.clientWidth-(m+b)),v=ph(i.clientHeight-(p+y)),_=ph(m),x={rootMargin:-C+"px "+-S+"px "+-v+"px "+-_+"px",threshold:Er(0,Oi(1,d))||1};let T=!0;function k(N){const L=N[0].intersectionRatio;if(L!==d){if(!T)return u();L?u(!1,L):r=setTimeout(()=>{u(!1,1e-7)},1e3)}L===1&&!yD(h,e.getBoundingClientRect())&&u(),T=!1}try{n=new IntersectionObserver(k,{...x,root:i.ownerDocument})}catch{n=new IntersectionObserver(k,x)}n.observe(e)}return u(!0),l}function o9(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:l=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,h=Nv(e),m=i||l?[...h?Qc(h):[],...Qc(t)]:[];m.forEach(_=>{i&&_.addEventListener("scroll",n,{passive:!0}),l&&_.addEventListener("resize",n)});const p=h&&c?s9(h,n):null;let b=-1,y=null;u&&(y=new ResizeObserver(_=>{let[E]=_;E&&E.target===h&&y&&(y.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var x;(x=y)==null||x.observe(t)})),n()}),h&&!d&&y.observe(h),y.observe(t));let C,S=d?gs(e):null;d&&v();function v(){const _=gs(e);S&&!yD(S,_)&&n(),S=_,C=requestAnimationFrame(v)}return n(),()=>{var _;m.forEach(E=>{i&&E.removeEventListener("scroll",n),l&&E.removeEventListener("resize",n)}),p?.(),(_=y)==null||_.disconnect(),y=null,d&&cancelAnimationFrame(C)}}const l9=I7,c9=O7,u9=R7,d9=M7,h9=k7,qA=N7,f9=L7,p9=(e,t,n)=>{const r=new Map,i={platform:i9,...n},l={...i.platform,_c:r};return A7(e,t,{...i,platform:l})};var m9=typeof document<"u",g9=function(){},Mh=m9?A.useLayoutEffect:g9;function nf(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!nf(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const l=i[r];if(!(l==="_owner"&&e.$$typeof)&&!nf(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function ED(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function VA(e,t){const n=ED(e);return Math.round(t*n)/n}function sb(e){const t=A.useRef(e);return Mh(()=>{t.current=e}),t}function b9(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:l,floating:u}={},transform:c=!0,whileElementsMounted:d,open:h}=e,[m,p]=A.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[b,y]=A.useState(r);nf(b,r)||y(r);const[C,S]=A.useState(null),[v,_]=A.useState(null),E=A.useCallback(K=>{K!==N.current&&(N.current=K,S(K))},[]),x=A.useCallback(K=>{K!==L.current&&(L.current=K,_(K))},[]),T=l||C,k=u||v,N=A.useRef(null),L=A.useRef(null),R=A.useRef(m),M=d!=null,F=sb(d),U=sb(i),$=sb(h),P=A.useCallback(()=>{if(!N.current||!L.current)return;const K={placement:t,strategy:n,middleware:b};U.current&&(K.platform=U.current),p9(N.current,L.current,K).then(j=>{const O={...j,isPositioned:$.current!==!1};V.current&&!nf(R.current,O)&&(R.current=O,nl.flushSync(()=>{p(O)}))})},[b,t,n,U,$]);Mh(()=>{h===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,p(K=>({...K,isPositioned:!1})))},[h]);const V=A.useRef(!1);Mh(()=>(V.current=!0,()=>{V.current=!1}),[]),Mh(()=>{if(T&&(N.current=T),k&&(L.current=k),T&&k){if(F.current)return F.current(T,k,P);P()}},[T,k,P,F,M]);const te=A.useMemo(()=>({reference:N,floating:L,setReference:E,setFloating:x}),[E,x]),H=A.useMemo(()=>({reference:T,floating:k}),[T,k]),X=A.useMemo(()=>{const K={position:n,left:0,top:0};if(!H.floating)return K;const j=VA(H.floating,m.x),O=VA(H.floating,m.y);return c?{...K,transform:"translate("+j+"px, "+O+"px)",...ED(H.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:j,top:O}},[n,c,H.floating,m.x,m.y]);return A.useMemo(()=>({...m,update:P,refs:te,elements:H,floatingStyles:X}),[m,P,te,H,X])}const v9=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?qA({element:r.current,padding:i}).fn(n):{}:r?qA({element:r,padding:i}).fn(n):{}}}},y9=(e,t)=>({...l9(e),options:[e,t]}),E9=(e,t)=>({...c9(e),options:[e,t]}),_9=(e,t)=>({...f9(e),options:[e,t]}),x9=(e,t)=>({...u9(e),options:[e,t]}),S9=(e,t)=>({...d9(e),options:[e,t]}),C9=(e,t)=>({...h9(e),options:[e,t]}),w9=(e,t)=>({...v9(e),options:[e,t]});var T9="Arrow",_D=A.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...l}=e;return s.jsx(ot.svg,{...l,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:s.jsx("polygon",{points:"0,0 30,0 15,10"})})});_D.displayName=T9;var A9=_D;function xD(e){const[t,n]=A.useState(void 0);return kn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const l=i[0];let u,c;if("borderBoxSize"in l){const d=l.borderBoxSize,h=Array.isArray(d)?d[0]:d;u=h.inlineSize,c=h.blockSize}else u=e.offsetWidth,c=e.offsetHeight;n({width:u,height:c})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var kv="Popper",[SD,Pf]=Qa(kv),[N9,CD]=SD(kv),wD=e=>{const{__scopePopper:t,children:n}=e,[r,i]=A.useState(null);return s.jsx(N9,{scope:t,anchor:r,onAnchorChange:i,children:n})};wD.displayName=kv;var TD="PopperAnchor",AD=A.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,l=CD(TD,n),u=A.useRef(null),c=Tt(t,u),d=A.useRef(null);return A.useEffect(()=>{const h=d.current;d.current=r?.current||u.current,h!==d.current&&l.onAnchorChange(d.current)}),r?null:s.jsx(ot.div,{...i,ref:c})});AD.displayName=TD;var Dv="PopperContent",[R9,k9]=SD(Dv),ND=A.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:l="center",alignOffset:u=0,arrowPadding:c=0,avoidCollisions:d=!0,collisionBoundary:h=[],collisionPadding:m=0,sticky:p="partial",hideWhenDetached:b=!1,updatePositionStrategy:y="optimized",onPlaced:C,...S}=e,v=CD(Dv,n),[_,E]=A.useState(null),x=Tt(t,J=>E(J)),[T,k]=A.useState(null),N=xD(T),L=N?.width??0,R=N?.height??0,M=r+(l!=="center"?"-"+l:""),F=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},U=Array.isArray(h)?h:[h],$=U.length>0,P={padding:F,boundary:U.filter(I9),altBoundary:$},{refs:V,floatingStyles:te,placement:H,isPositioned:X,middlewareData:K}=b9({strategy:"fixed",placement:M,whileElementsMounted:(...J)=>o9(...J,{animationFrame:y==="always"}),elements:{reference:v.anchor},middleware:[y9({mainAxis:i+R,alignmentAxis:u}),d&&E9({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?_9():void 0,...P}),d&&x9({...P}),S9({...P,apply:({elements:J,rects:G,availableWidth:pe,availableHeight:be})=>{const{width:me,height:le}=G.reference,Ce=J.floating.style;Ce.setProperty("--radix-popper-available-width",`${pe}px`),Ce.setProperty("--radix-popper-available-height",`${be}px`),Ce.setProperty("--radix-popper-anchor-width",`${me}px`),Ce.setProperty("--radix-popper-anchor-height",`${le}px`)}}),T&&w9({element:T,padding:c}),O9({arrowWidth:L,arrowHeight:R}),b&&C9({strategy:"referenceHidden",...P})]}),[j,O]=DD(H),q=An(C);kn(()=>{X&&q?.()},[X,q]);const Z=K.arrow?.x,z=K.arrow?.y,oe=K.arrow?.centerOffset!==0,[xe,fe]=A.useState();return kn(()=>{_&&fe(window.getComputedStyle(_).zIndex)},[_]),s.jsx("div",{ref:V.setFloating,"data-radix-popper-content-wrapper":"",style:{...te,transform:X?te.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:xe,"--radix-popper-transform-origin":[K.transformOrigin?.x,K.transformOrigin?.y].join(" "),...K.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:s.jsx(R9,{scope:n,placedSide:j,onArrowChange:k,arrowX:Z,arrowY:z,shouldHideArrow:oe,children:s.jsx(ot.div,{"data-side":j,"data-align":O,...S,ref:x,style:{...S.style,animation:X?void 0:"none"}})})})});ND.displayName=Dv;var RD="PopperArrow",D9={top:"bottom",right:"left",bottom:"top",left:"right"},kD=A.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,l=k9(RD,r),u=D9[l.placedSide];return s.jsx("span",{ref:l.onArrowChange,style:{position:"absolute",left:l.arrowX,top:l.arrowY,[u]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[l.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[l.placedSide],visibility:l.shouldHideArrow?"hidden":void 0},children:s.jsx(A9,{...i,ref:n,style:{...i.style,display:"block"}})})});kD.displayName=RD;function I9(e){return e!==null}var O9=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:i}=t,u=i.arrow?.centerOffset!==0,c=u?0:e.arrowWidth,d=u?0:e.arrowHeight,[h,m]=DD(n),p={start:"0%",center:"50%",end:"100%"}[m],b=(i.arrow?.x??0)+c/2,y=(i.arrow?.y??0)+d/2;let C="",S="";return h==="bottom"?(C=u?p:`${b}px`,S=`${-d}px`):h==="top"?(C=u?p:`${b}px`,S=`${r.floating.height+d}px`):h==="right"?(C=`${-d}px`,S=u?p:`${y}px`):h==="left"&&(C=`${r.floating.width+d}px`,S=u?p:`${y}px`),{data:{x:C,y:S}}}});function DD(e){const[t,n="center"]=e.split("-");return[t,n]}var ID=wD,OD=AD,LD=ND,MD=kD,[Bf,qre]=Qa("Tooltip",[Pf]),Uf=Pf(),jD="TooltipProvider",L9=700,l0="tooltip.open",[M9,Iv]=Bf(jD),FD=e=>{const{__scopeTooltip:t,delayDuration:n=L9,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:l}=e,u=A.useRef(!0),c=A.useRef(!1),d=A.useRef(0);return A.useEffect(()=>{const h=d.current;return()=>window.clearTimeout(h)},[]),s.jsx(M9,{scope:t,isOpenDelayedRef:u,delayDuration:n,onOpen:A.useCallback(()=>{window.clearTimeout(d.current),u.current=!1},[]),onClose:A.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>u.current=!0,r)},[r]),isPointerInTransitRef:c,onPointerInTransitChange:A.useCallback(h=>{c.current=h},[]),disableHoverableContent:i,children:l})};FD.displayName=jD;var Jc="Tooltip",[j9,Hf]=Bf(Jc),PD=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:l,disableHoverableContent:u,delayDuration:c}=e,d=Iv(Jc,e.__scopeTooltip),h=Uf(t),[m,p]=A.useState(null),b=hs(),y=A.useRef(0),C=u??d.disableHoverableContent,S=c??d.delayDuration,v=A.useRef(!1),[_,E]=Go({prop:r,defaultProp:i??!1,onChange:L=>{L?(d.onOpen(),document.dispatchEvent(new CustomEvent(l0))):d.onClose(),l?.(L)},caller:Jc}),x=A.useMemo(()=>_?v.current?"delayed-open":"instant-open":"closed",[_]),T=A.useCallback(()=>{window.clearTimeout(y.current),y.current=0,v.current=!1,E(!0)},[E]),k=A.useCallback(()=>{window.clearTimeout(y.current),y.current=0,E(!1)},[E]),N=A.useCallback(()=>{window.clearTimeout(y.current),y.current=window.setTimeout(()=>{v.current=!0,E(!0),y.current=0},S)},[S,E]);return A.useEffect(()=>()=>{y.current&&(window.clearTimeout(y.current),y.current=0)},[]),s.jsx(ID,{...h,children:s.jsx(j9,{scope:t,contentId:b,open:_,stateAttribute:x,trigger:m,onTriggerChange:p,onTriggerEnter:A.useCallback(()=>{d.isOpenDelayedRef.current?N():T()},[d.isOpenDelayedRef,N,T]),onTriggerLeave:A.useCallback(()=>{C?k():(window.clearTimeout(y.current),y.current=0)},[k,C]),onOpen:T,onClose:k,disableHoverableContent:C,children:n})})};PD.displayName=Jc;var c0="TooltipTrigger",BD=A.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=Hf(c0,n),l=Iv(c0,n),u=Uf(n),c=A.useRef(null),d=Tt(t,c,i.onTriggerChange),h=A.useRef(!1),m=A.useRef(!1),p=A.useCallback(()=>h.current=!1,[]);return A.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),s.jsx(OD,{asChild:!0,...u,children:s.jsx(ot.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:d,onPointerMove:tt(e.onPointerMove,b=>{b.pointerType!=="touch"&&!m.current&&!l.isPointerInTransitRef.current&&(i.onTriggerEnter(),m.current=!0)}),onPointerLeave:tt(e.onPointerLeave,()=>{i.onTriggerLeave(),m.current=!1}),onPointerDown:tt(e.onPointerDown,()=>{i.open&&i.onClose(),h.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:tt(e.onFocus,()=>{h.current||i.onOpen()}),onBlur:tt(e.onBlur,i.onClose),onClick:tt(e.onClick,i.onClose)})})});BD.displayName=c0;var F9="TooltipPortal",[Vre,P9]=Bf(F9,{forceMount:void 0}),Vo="TooltipContent",UD=A.forwardRef((e,t)=>{const n=P9(Vo,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...l}=e,u=Hf(Vo,e.__scopeTooltip);return s.jsx(Jr,{present:r||u.open,children:u.disableHoverableContent?s.jsx(HD,{side:i,...l,ref:t}):s.jsx(B9,{side:i,...l,ref:t})})}),B9=A.forwardRef((e,t)=>{const n=Hf(Vo,e.__scopeTooltip),r=Iv(Vo,e.__scopeTooltip),i=A.useRef(null),l=Tt(t,i),[u,c]=A.useState(null),{trigger:d,onClose:h}=n,m=i.current,{onPointerInTransitChange:p}=r,b=A.useCallback(()=>{c(null),p(!1)},[p]),y=A.useCallback((C,S)=>{const v=C.currentTarget,_={x:C.clientX,y:C.clientY},E=G9(_,v.getBoundingClientRect()),x=q9(_,E),T=V9(S.getBoundingClientRect()),k=Y9([...x,...T]);c(k),p(!0)},[p]);return A.useEffect(()=>()=>b(),[b]),A.useEffect(()=>{if(d&&m){const C=v=>y(v,m),S=v=>y(v,d);return d.addEventListener("pointerleave",C),m.addEventListener("pointerleave",S),()=>{d.removeEventListener("pointerleave",C),m.removeEventListener("pointerleave",S)}}},[d,m,y,b]),A.useEffect(()=>{if(u){const C=S=>{const v=S.target,_={x:S.clientX,y:S.clientY},E=d?.contains(v)||m?.contains(v),x=!W9(_,u);E?b():x&&(b(),h())};return document.addEventListener("pointermove",C),()=>document.removeEventListener("pointermove",C)}},[d,m,u,h,b]),s.jsx(HD,{...e,ref:l})}),[U9,H9]=Bf(Jc,{isInside:!1}),z9=IR("TooltipContent"),HD=A.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:l,onPointerDownOutside:u,...c}=e,d=Hf(Vo,n),h=Uf(n),{onClose:m}=d;return A.useEffect(()=>(document.addEventListener(l0,m),()=>document.removeEventListener(l0,m)),[m]),A.useEffect(()=>{if(d.trigger){const p=b=>{b.target?.contains(d.trigger)&&m()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[d.trigger,m]),s.jsx(fu,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:p=>p.preventDefault(),onDismiss:m,children:s.jsxs(LD,{"data-state":d.stateAttribute,...h,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[s.jsx(z9,{children:r}),s.jsx(U9,{scope:n,isInside:!0,children:s.jsx(TF,{id:d.contentId,role:"tooltip",children:i||r})})]})})});UD.displayName=Vo;var zD="TooltipArrow",$9=A.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=Uf(n);return H9(zD,n).isInside?null:s.jsx(MD,{...i,...r,ref:t})});$9.displayName=zD;function G9(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),l=Math.abs(t.left-e.x);switch(Math.min(n,r,i,l)){case l:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function q9(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function V9(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function W9(e,t){const{x:n,y:r}=e;let i=!1;for(let l=0,u=t.length-1;l<t.length;u=l++){const c=t[l],d=t[u],h=c.x,m=c.y,p=d.x,b=d.y;m>r!=b>r&&n<(p-h)*(r-m)/(b-m)+h&&(i=!i)}return i}function Y9(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),K9(t)}function K9(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const i=e[r];for(;t.length>=2;){const l=t[t.length-1],u=t[t.length-2];if((l.x-u.x)*(i.y-u.y)>=(l.y-u.y)*(i.x-u.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];for(;n.length>=2;){const l=n[n.length-1],u=n[n.length-2];if((l.x-u.x)*(i.y-u.y)>=(l.y-u.y)*(i.x-u.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var X9=FD,Z9=PD,Q9=BD,$D=UD;const J9=X9,eU=Z9,tU=Q9,GD=A.forwardRef(({className:e,sideOffset:t=4,...n},r)=>s.jsx($D,{ref:r,sideOffset:t,className:Ie("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));GD.displayName=$D.displayName;const nU="sidebar_state",rU=3600*24*7,aU="16rem",iU="18rem",sU="3rem",oU="b",qD=A.createContext(null);function zf(){const e=A.useContext(qD);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const VD=A.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:i,children:l,...u},c)=>{const d=Rk(),[h,m]=A.useState(!1),[p,b]=A.useState(e),y=t??p,C=A.useCallback(E=>{const x=typeof E=="function"?E(y):E;n?n(x):b(x),document.cookie=`${nU}=${x}; path=/; max-age=${rU}`},[n,y]),S=A.useCallback(()=>d?m(E=>!E):C(E=>!E),[d,C,m]);A.useEffect(()=>{const E=x=>{x.key===oU&&(x.metaKey||x.ctrlKey)&&(x.preventDefault(),S())};return window.addEventListener("keydown",E),()=>window.removeEventListener("keydown",E)},[S]);const v=y?"expanded":"collapsed",_=A.useMemo(()=>({state:v,open:y,setOpen:C,isMobile:d,openMobile:h,setOpenMobile:m,toggleSidebar:S}),[v,y,C,d,h,m,S]);return s.jsx(qD.Provider,{value:_,children:s.jsx(J9,{delayDuration:0,children:s.jsx("div",{style:{"--sidebar-width":aU,"--sidebar-width-icon":sU,...i},className:Ie("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",r),ref:c,...u,children:l})})})});VD.displayName="SidebarProvider";const WD=A.forwardRef(({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:i,...l},u)=>{const{isMobile:c,state:d,openMobile:h,setOpenMobile:m}=zf();return n==="none"?s.jsx("div",{className:Ie("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",r),ref:u,...l,children:i}):c?s.jsx(oD,{open:h,onOpenChange:m,...l,children:s.jsxs(Ev,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":iU},side:e,children:[s.jsxs(_v,{className:"sr-only",children:[s.jsx(xv,{children:"Sidebar"}),s.jsx(cD,{children:"Displays the mobile sidebar."})]}),s.jsx("div",{className:"flex h-full w-full flex-col",children:i})]})}):s.jsxs("div",{ref:u,className:"group peer hidden text-sidebar-foreground md:block","data-state":d,"data-collapsible":d==="collapsed"?n:"","data-variant":t,"data-side":e,children:[s.jsx("div",{className:Ie("relative w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),s.jsx("div",{className:Ie("fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...l,children:s.jsx("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:i})})]})});WD.displayName="Sidebar";const YD=A.forwardRef(({className:e,onClick:t,...n},r)=>{const{toggleSidebar:i}=zf();return s.jsxs(se,{ref:r,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:Ie("h-7 w-7",e),onClick:l=>{t?.(l),i()},...n,children:[s.jsx(Q8,{}),s.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});YD.displayName="SidebarTrigger";const lU=A.forwardRef(({className:e,...t},n)=>{const{toggleSidebar:r}=zf();return s.jsx("button",{ref:n,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:Ie("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})});lU.displayName="SidebarRail";const KD=A.forwardRef(({className:e,...t},n)=>s.jsx("main",{ref:n,className:Ie("relative flex w-full flex-1 flex-col bg-background","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...t}));KD.displayName="SidebarInset";const cU=A.forwardRef(({className:e,...t},n)=>s.jsx(ze,{ref:n,"data-sidebar":"input",className:Ie("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));cU.displayName="SidebarInput";const XD=A.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,"data-sidebar":"header",className:Ie("flex flex-col gap-2 p-2",e),...t}));XD.displayName="SidebarHeader";const ZD=A.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,"data-sidebar":"footer",className:Ie("flex flex-col gap-2 p-2",e),...t}));ZD.displayName="SidebarFooter";const uU=A.forwardRef(({className:e,...t},n)=>s.jsx(xa,{ref:n,"data-sidebar":"separator",className:Ie("mx-2 w-auto bg-sidebar-border",e),...t}));uU.displayName="SidebarSeparator";const QD=A.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,"data-sidebar":"content",className:Ie("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));QD.displayName="SidebarContent";const jh=A.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,"data-sidebar":"group",className:Ie("relative flex w-full min-w-0 flex-col p-2",e),...t}));jh.displayName="SidebarGroup";const Fh=A.forwardRef(({className:e,asChild:t=!1,...n},r)=>{const i=t?rl:"div";return s.jsx(i,{ref:r,"data-sidebar":"group-label",className:Ie("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...n})});Fh.displayName="SidebarGroupLabel";const dU=A.forwardRef(({className:e,asChild:t=!1,...n},r)=>{const i=t?rl:"button";return s.jsx(i,{ref:r,"data-sidebar":"group-action",className:Ie("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...n})});dU.displayName="SidebarGroupAction";const Ph=A.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,"data-sidebar":"group-content",className:Ie("w-full text-sm",e),...t}));Ph.displayName="SidebarGroupContent";const Ro=A.forwardRef(({className:e,...t},n)=>s.jsx("ul",{ref:n,"data-sidebar":"menu",className:Ie("flex w-full min-w-0 flex-col gap-1",e),...t}));Ro.displayName="SidebarMenu";const ko=A.forwardRef(({className:e,...t},n)=>s.jsx("li",{ref:n,"data-sidebar":"menu-item",className:Ie("group/menu-item relative",e),...t}));ko.displayName="SidebarMenuItem";const hU=al("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),Do=A.forwardRef(({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:i,className:l,...u},c)=>{const d=e?rl:"button",{isMobile:h,state:m}=zf(),p=s.jsx(d,{ref:c,"data-sidebar":"menu-button","data-size":r,"data-active":t,className:Ie(hU({variant:n,size:r}),l),...u});return i?(typeof i=="string"&&(i={children:i}),s.jsxs(eU,{children:[s.jsx(tU,{asChild:!0,children:p}),s.jsx(GD,{side:"right",align:"center",hidden:m!=="collapsed"||h,...i})]})):p});Do.displayName="SidebarMenuButton";const fU=A.forwardRef(({className:e,asChild:t=!1,showOnHover:n=!1,...r},i)=>{const l=t?rl:"button";return s.jsx(l,{ref:i,"data-sidebar":"menu-action",className:Ie("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",n&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...r})});fU.displayName="SidebarMenuAction";const pU=A.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,"data-sidebar":"menu-badge",className:Ie("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}));pU.displayName="SidebarMenuBadge";const mU=A.forwardRef(({className:e,showIcon:t=!1,...n},r)=>{const i=A.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return s.jsxs("div",{ref:r,"data-sidebar":"menu-skeleton",className:Ie("flex h-8 items-center gap-2 rounded-md px-2",e),...n,children:[t&&s.jsx(jA,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),s.jsx(jA,{className:"h-4 max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":i}})]})});mU.displayName="SidebarMenuSkeleton";const gU=A.forwardRef(({className:e,...t},n)=>s.jsx("ul",{ref:n,"data-sidebar":"menu-sub",className:Ie("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));gU.displayName="SidebarMenuSub";const bU=A.forwardRef(({...e},t)=>s.jsx("li",{ref:t,...e}));bU.displayName="SidebarMenuSubItem";const vU=A.forwardRef(({asChild:e=!1,size:t="md",isActive:n,className:r,...i},l)=>{const u=e?rl:"a";return s.jsx(u,{ref:l,"data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:Ie("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",r),...i})});vU.displayName="SidebarMenuSubButton";const yU="1.0.50",EU={version:yU};function _U({className:e}){return s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,children:[s.jsx("path",{d:"M13 8c0-2.76-2.46-5-5.5-5S2 5.24 2 8h2l1-1 1 1h4"}),s.jsx("path",{d:"M13 7.14A5.82 5.82 0 0 1 16.5 6c3.04 0 5.5 2.24 5.5 5h-3l-1-1-1 1h-3"}),s.jsx("path",{d:"M5.89 9.71c-2.15 2.15-2.3 5.47-.35 7.43l4.24-4.25.7-.7.71-.71 2.12-2.12c-1.95-1.96-5.27-1.8-7.42.35"}),s.jsx("path",{d:"M11 15.5c.5 2.5-.17 4.5-1 6.5h4c2-5.5-.5-12-1-14"})]})}const xU=[{title:"Home",url:"/",icon:P8},{title:"Proposals",url:"/proposals",icon:N8},{title:"Agents",url:"/agents",icon:pa},{title:"Code",url:"/code",icon:ck},{title:"Terminal",url:"/terminal",icon:ga},{title:"Git",url:"/git",icon:Xh}],SU=[{title:"Overview",url:"/context/project",icon:va},{title:"Architecture",url:"/context/architecture",icon:ZF},{title:"Knowledge",url:"/context/knowledge",icon:o8},{title:"Resources",url:"/resources",icon:dk}],CU=[{title:"Documentation",url:"https://docs.coconut.dev/",icon:X8,external:!0},{title:"Settings",url:"/settings",icon:Df}];function wU(){return s.jsxs(WD,{className:"bg-sidebar border-r border-sidebar-border",children:[s.jsx(XD,{children:s.jsx(Ro,{children:s.jsx(ko,{children:s.jsx(Do,{size:"lg",asChild:!0,children:s.jsxs(Ze,{to:"/",children:[s.jsx(_U,{className:"size-8"}),s.jsxs("div",{className:"flex flex-col gap-0.5",children:[s.jsxs("span",{className:"font-semibold",children:["Coconut v",EU.version]}),s.jsx("span",{className:"text-xs text-muted-foreground",children:"Come one, come all"})]})]})})})})}),s.jsxs(QD,{children:[s.jsxs(jh,{children:[s.jsx(Fh,{children:"Main"}),s.jsx(Ph,{children:s.jsx(Ro,{children:xU.map(e=>s.jsx(ko,{children:s.jsx(Do,{asChild:!0,children:s.jsxs(Ze,{to:e.url,children:[s.jsx(e.icon,{}),s.jsx("span",{children:e.title})]})})},e.title))})})]}),s.jsxs(jh,{children:[s.jsx(Fh,{children:"Project Context"}),s.jsx(Ph,{children:s.jsx(Ro,{children:SU.map(e=>s.jsx(ko,{children:s.jsx(Do,{asChild:!0,children:s.jsxs(Ze,{to:e.url,children:[s.jsx(e.icon,{}),s.jsx("span",{children:e.title})]})})},e.title))})})]}),s.jsxs(jh,{children:[s.jsx(Fh,{children:"Quick Actions"}),s.jsx(Ph,{children:s.jsx(Ro,{children:s.jsx(ko,{children:s.jsx(Do,{asChild:!0,children:s.jsxs(Ze,{to:"/proposals/new",children:[s.jsx(Gt,{}),s.jsx("span",{children:"New Proposal"})]})})})})})]})]}),s.jsx(ZD,{children:s.jsx(Ro,{children:CU.map(e=>s.jsx(ko,{children:s.jsx(Do,{asChild:!0,children:e.external?s.jsxs("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",children:[s.jsx(e.icon,{}),s.jsx("span",{children:e.title})]}):s.jsxs(Ze,{to:e.url,children:[s.jsx(e.icon,{}),s.jsx("span",{children:e.title})]})})},e.title))})})]})}const Ue="";async function jc(e,t={}){const n=`${Ue}${e}`,r={headers:{"Content-Type":"application/json",...t.headers},...t},i=await fetch(n,r);if(!i.ok)throw new Error(`API request failed: ${i.status} ${i.statusText}`);return i.json()}const TU=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}`;function u0(e,[t,n]){return Math.min(n,Math.max(t,e))}var AU=A.createContext(void 0);function JD(e){const t=A.useContext(AU);return e||t||"ltr"}function eI(e){const t=A.useRef({value:e,previous:e});return A.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var NU=[" ","Enter","ArrowUp","ArrowDown"],RU=[" ","Enter"],bs="Select",[$f,Gf,kU]=OR(bs),[cl,Wre]=Qa(bs,[kU,Pf]),qf=Pf(),[DU,Pi]=cl(bs),[IU,OU]=cl(bs),tI=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:l,value:u,defaultValue:c,onValueChange:d,dir:h,name:m,autoComplete:p,disabled:b,required:y,form:C}=e,S=qf(t),[v,_]=A.useState(null),[E,x]=A.useState(null),[T,k]=A.useState(!1),N=JD(h),[L,R]=Go({prop:r,defaultProp:i??!1,onChange:l,caller:bs}),[M,F]=Go({prop:u,defaultProp:c,onChange:d,caller:bs}),U=A.useRef(null),$=v?C||!!v.closest("form"):!0,[P,V]=A.useState(new Set),te=Array.from(P).map(H=>H.props.value).join(";");return s.jsx(ID,{...S,children:s.jsxs(DU,{required:y,scope:t,trigger:v,onTriggerChange:_,valueNode:E,onValueNodeChange:x,valueNodeHasChildren:T,onValueNodeHasChildrenChange:k,contentId:hs(),value:M,onValueChange:F,open:L,onOpenChange:R,dir:N,triggerPointerDownPosRef:U,disabled:b,children:[s.jsx($f.Provider,{scope:t,children:s.jsx(IU,{scope:e.__scopeSelect,onNativeOptionAdd:A.useCallback(H=>{V(X=>new Set(X).add(H))},[]),onNativeOptionRemove:A.useCallback(H=>{V(X=>{const K=new Set(X);return K.delete(H),K})},[]),children:n})}),$?s.jsxs(wI,{"aria-hidden":!0,required:y,tabIndex:-1,name:m,autoComplete:p,value:M,onChange:H=>F(H.target.value),disabled:b,form:C,children:[M===void 0?s.jsx("option",{value:""}):null,Array.from(P)]},te):null]})})};tI.displayName=bs;var nI="SelectTrigger",rI=A.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...i}=e,l=qf(n),u=Pi(nI,n),c=u.disabled||r,d=Tt(t,u.onTriggerChange),h=Gf(n),m=A.useRef("touch"),[p,b,y]=AI(S=>{const v=h().filter(x=>!x.disabled),_=v.find(x=>x.value===u.value),E=NI(v,S,_);E!==void 0&&u.onValueChange(E.value)}),C=S=>{c||(u.onOpenChange(!0),y()),S&&(u.triggerPointerDownPosRef.current={x:Math.round(S.pageX),y:Math.round(S.pageY)})};return s.jsx(OD,{asChild:!0,...l,children:s.jsx(ot.button,{type:"button",role:"combobox","aria-controls":u.contentId,"aria-expanded":u.open,"aria-required":u.required,"aria-autocomplete":"none",dir:u.dir,"data-state":u.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":TI(u.value)?"":void 0,...i,ref:d,onClick:tt(i.onClick,S=>{S.currentTarget.focus(),m.current!=="mouse"&&C(S)}),onPointerDown:tt(i.onPointerDown,S=>{m.current=S.pointerType;const v=S.target;v.hasPointerCapture(S.pointerId)&&v.releasePointerCapture(S.pointerId),S.button===0&&S.ctrlKey===!1&&S.pointerType==="mouse"&&(C(S),S.preventDefault())}),onKeyDown:tt(i.onKeyDown,S=>{const v=p.current!=="";!(S.ctrlKey||S.altKey||S.metaKey)&&S.key.length===1&&b(S.key),!(v&&S.key===" ")&&NU.includes(S.key)&&(C(),S.preventDefault())})})})});rI.displayName=nI;var aI="SelectValue",iI=A.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,children:l,placeholder:u="",...c}=e,d=Pi(aI,n),{onValueNodeHasChildrenChange:h}=d,m=l!==void 0,p=Tt(t,d.onValueNodeChange);return kn(()=>{h(m)},[h,m]),s.jsx(ot.span,{...c,ref:p,style:{pointerEvents:"none"},children:TI(d.value)?s.jsx(s.Fragment,{children:u}):l})});iI.displayName=aI;var LU="SelectIcon",sI=A.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...i}=e;return s.jsx(ot.span,{"aria-hidden":!0,...i,ref:t,children:r||"▼"})});sI.displayName=LU;var MU="SelectPortal",oI=e=>s.jsx(Tf,{asChild:!0,...e});oI.displayName=MU;var vs="SelectContent",lI=A.forwardRef((e,t)=>{const n=Pi(vs,e.__scopeSelect),[r,i]=A.useState();if(kn(()=>{i(new DocumentFragment)},[]),!n.open){const l=r;return l?nl.createPortal(s.jsx(cI,{scope:e.__scopeSelect,children:s.jsx($f.Slot,{scope:e.__scopeSelect,children:s.jsx("div",{children:e.children})})}),l):null}return s.jsx(uI,{...e,ref:t})});lI.displayName=vs;var qr=10,[cI,Bi]=cl(vs),jU="SelectContentImpl",FU=$o("SelectContent.RemoveScroll"),uI=A.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:l,onPointerDownOutside:u,side:c,sideOffset:d,align:h,alignOffset:m,arrowPadding:p,collisionBoundary:b,collisionPadding:y,sticky:C,hideWhenDetached:S,avoidCollisions:v,..._}=e,E=Pi(vs,n),[x,T]=A.useState(null),[k,N]=A.useState(null),L=Tt(t,J=>T(J)),[R,M]=A.useState(null),[F,U]=A.useState(null),$=Gf(n),[P,V]=A.useState(!1),te=A.useRef(!1);A.useEffect(()=>{if(x)return zk(x)},[x]),Ok();const H=A.useCallback(J=>{const[G,...pe]=$().map(le=>le.ref.current),[be]=pe.slice(-1),me=document.activeElement;for(const le of J)if(le===me||(le?.scrollIntoView({block:"nearest"}),le===G&&k&&(k.scrollTop=0),le===be&&k&&(k.scrollTop=k.scrollHeight),le?.focus(),document.activeElement!==me))return},[$,k]),X=A.useCallback(()=>H([R,x]),[H,R,x]);A.useEffect(()=>{P&&X()},[P,X]);const{onOpenChange:K,triggerPointerDownPosRef:j}=E;A.useEffect(()=>{if(x){let J={x:0,y:0};const G=be=>{J={x:Math.abs(Math.round(be.pageX)-(j.current?.x??0)),y:Math.abs(Math.round(be.pageY)-(j.current?.y??0))}},pe=be=>{J.x<=10&&J.y<=10?be.preventDefault():x.contains(be.target)||K(!1),document.removeEventListener("pointermove",G),j.current=null};return j.current!==null&&(document.addEventListener("pointermove",G),document.addEventListener("pointerup",pe,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",G),document.removeEventListener("pointerup",pe,{capture:!0})}}},[x,K,j]),A.useEffect(()=>{const J=()=>K(!1);return window.addEventListener("blur",J),window.addEventListener("resize",J),()=>{window.removeEventListener("blur",J),window.removeEventListener("resize",J)}},[K]);const[O,q]=AI(J=>{const G=$().filter(me=>!me.disabled),pe=G.find(me=>me.ref.current===document.activeElement),be=NI(G,J,pe);be&&setTimeout(()=>be.ref.current.focus())}),Z=A.useCallback((J,G,pe)=>{const be=!te.current&&!pe;(E.value!==void 0&&E.value===G||be)&&(M(J),be&&(te.current=!0))},[E.value]),z=A.useCallback(()=>x?.focus(),[x]),oe=A.useCallback((J,G,pe)=>{const be=!te.current&&!pe;(E.value!==void 0&&E.value===G||be)&&U(J)},[E.value]),xe=r==="popper"?d0:dI,fe=xe===d0?{side:c,sideOffset:d,align:h,alignOffset:m,arrowPadding:p,collisionBoundary:b,collisionPadding:y,sticky:C,hideWhenDetached:S,avoidCollisions:v}:{};return s.jsx(cI,{scope:n,content:x,viewport:k,onViewportChange:N,itemRefCallback:Z,selectedItem:R,onItemLeave:z,itemTextRefCallback:oe,focusSelectedItem:X,selectedItemText:F,position:r,isPositioned:P,searchRef:O,children:s.jsx(pv,{as:FU,allowPinchZoom:!0,children:s.jsx(fv,{asChild:!0,trapped:E.open,onMountAutoFocus:J=>{J.preventDefault()},onUnmountAutoFocus:tt(i,J=>{E.trigger?.focus({preventScroll:!0}),J.preventDefault()}),children:s.jsx(fu,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:J=>J.preventDefault(),onDismiss:()=>E.onOpenChange(!1),children:s.jsx(xe,{role:"listbox",id:E.contentId,"data-state":E.open?"open":"closed",dir:E.dir,onContextMenu:J=>J.preventDefault(),..._,...fe,onPlaced:()=>V(!0),ref:L,style:{display:"flex",flexDirection:"column",outline:"none",..._.style},onKeyDown:tt(_.onKeyDown,J=>{const G=J.ctrlKey||J.altKey||J.metaKey;if(J.key==="Tab"&&J.preventDefault(),!G&&J.key.length===1&&q(J.key),["ArrowUp","ArrowDown","Home","End"].includes(J.key)){let be=$().filter(me=>!me.disabled).map(me=>me.ref.current);if(["ArrowUp","End"].includes(J.key)&&(be=be.slice().reverse()),["ArrowUp","ArrowDown"].includes(J.key)){const me=J.target,le=be.indexOf(me);be=be.slice(le+1)}setTimeout(()=>H(be)),J.preventDefault()}})})})})})})});uI.displayName=jU;var PU="SelectItemAlignedPosition",dI=A.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...i}=e,l=Pi(vs,n),u=Bi(vs,n),[c,d]=A.useState(null),[h,m]=A.useState(null),p=Tt(t,L=>m(L)),b=Gf(n),y=A.useRef(!1),C=A.useRef(!0),{viewport:S,selectedItem:v,selectedItemText:_,focusSelectedItem:E}=u,x=A.useCallback(()=>{if(l.trigger&&l.valueNode&&c&&h&&S&&v&&_){const L=l.trigger.getBoundingClientRect(),R=h.getBoundingClientRect(),M=l.valueNode.getBoundingClientRect(),F=_.getBoundingClientRect();if(l.dir!=="rtl"){const me=F.left-R.left,le=M.left-me,Ce=L.left-le,ae=L.width+Ce,Le=Math.max(ae,R.width),Be=window.innerWidth-qr,_e=u0(le,[qr,Math.max(qr,Be-Le)]);c.style.minWidth=ae+"px",c.style.left=_e+"px"}else{const me=R.right-F.right,le=window.innerWidth-M.right-me,Ce=window.innerWidth-L.right-le,ae=L.width+Ce,Le=Math.max(ae,R.width),Be=window.innerWidth-qr,_e=u0(le,[qr,Math.max(qr,Be-Le)]);c.style.minWidth=ae+"px",c.style.right=_e+"px"}const U=b(),$=window.innerHeight-qr*2,P=S.scrollHeight,V=window.getComputedStyle(h),te=parseInt(V.borderTopWidth,10),H=parseInt(V.paddingTop,10),X=parseInt(V.borderBottomWidth,10),K=parseInt(V.paddingBottom,10),j=te+H+P+K+X,O=Math.min(v.offsetHeight*5,j),q=window.getComputedStyle(S),Z=parseInt(q.paddingTop,10),z=parseInt(q.paddingBottom,10),oe=L.top+L.height/2-qr,xe=$-oe,fe=v.offsetHeight/2,J=v.offsetTop+fe,G=te+H+J,pe=j-G;if(G<=oe){const me=U.length>0&&v===U[U.length-1].ref.current;c.style.bottom="0px";const le=h.clientHeight-S.offsetTop-S.offsetHeight,Ce=Math.max(xe,fe+(me?z:0)+le+X),ae=G+Ce;c.style.height=ae+"px"}else{const me=U.length>0&&v===U[0].ref.current;c.style.top="0px";const Ce=Math.max(oe,te+S.offsetTop+(me?Z:0)+fe)+pe;c.style.height=Ce+"px",S.scrollTop=G-oe+S.offsetTop}c.style.margin=`${qr}px 0`,c.style.minHeight=O+"px",c.style.maxHeight=$+"px",r?.(),requestAnimationFrame(()=>y.current=!0)}},[b,l.trigger,l.valueNode,c,h,S,v,_,l.dir,r]);kn(()=>x(),[x]);const[T,k]=A.useState();kn(()=>{h&&k(window.getComputedStyle(h).zIndex)},[h]);const N=A.useCallback(L=>{L&&C.current===!0&&(x(),E?.(),C.current=!1)},[x,E]);return s.jsx(UU,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:y,onScrollButtonChange:N,children:s.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:T},children:s.jsx(ot.div,{...i,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});dI.displayName=PU;var BU="SelectPopperPosition",d0=A.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:i=qr,...l}=e,u=qf(n);return s.jsx(LD,{...u,...l,ref:t,align:r,collisionPadding:i,style:{boxSizing:"border-box",...l.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});d0.displayName=BU;var[UU,Ov]=cl(vs,{}),h0="SelectViewport",hI=A.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...i}=e,l=Bi(h0,n),u=Ov(h0,n),c=Tt(t,l.onViewportChange),d=A.useRef(0);return s.jsxs(s.Fragment,{children:[s.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),s.jsx($f.Slot,{scope:n,children:s.jsx(ot.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:tt(i.onScroll,h=>{const m=h.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:b}=u;if(b?.current&&p){const y=Math.abs(d.current-m.scrollTop);if(y>0){const C=window.innerHeight-qr*2,S=parseFloat(p.style.minHeight),v=parseFloat(p.style.height),_=Math.max(S,v);if(_<C){const E=_+y,x=Math.min(C,E),T=E-x;p.style.height=x+"px",p.style.bottom==="0px"&&(m.scrollTop=T>0?T:0,p.style.justifyContent="flex-end")}}}d.current=m.scrollTop})})})]})});hI.displayName=h0;var fI="SelectGroup",[HU,zU]=cl(fI),$U=A.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=hs();return s.jsx(HU,{scope:n,id:i,children:s.jsx(ot.div,{role:"group","aria-labelledby":i,...r,ref:t})})});$U.displayName=fI;var pI="SelectLabel",mI=A.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=zU(pI,n);return s.jsx(ot.div,{id:i.id,...r,ref:t})});mI.displayName=pI;var rf="SelectItem",[GU,gI]=cl(rf),bI=A.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:i=!1,textValue:l,...u}=e,c=Pi(rf,n),d=Bi(rf,n),h=c.value===r,[m,p]=A.useState(l??""),[b,y]=A.useState(!1),C=Tt(t,E=>d.itemRefCallback?.(E,r,i)),S=hs(),v=A.useRef("touch"),_=()=>{i||(c.onValueChange(r),c.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return s.jsx(GU,{scope:n,value:r,disabled:i,textId:S,isSelected:h,onItemTextChange:A.useCallback(E=>{p(x=>x||(E?.textContent??"").trim())},[]),children:s.jsx($f.ItemSlot,{scope:n,value:r,disabled:i,textValue:m,children:s.jsx(ot.div,{role:"option","aria-labelledby":S,"data-highlighted":b?"":void 0,"aria-selected":h&&b,"data-state":h?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...u,ref:C,onFocus:tt(u.onFocus,()=>y(!0)),onBlur:tt(u.onBlur,()=>y(!1)),onClick:tt(u.onClick,()=>{v.current!=="mouse"&&_()}),onPointerUp:tt(u.onPointerUp,()=>{v.current==="mouse"&&_()}),onPointerDown:tt(u.onPointerDown,E=>{v.current=E.pointerType}),onPointerMove:tt(u.onPointerMove,E=>{v.current=E.pointerType,i?d.onItemLeave?.():v.current==="mouse"&&E.currentTarget.focus({preventScroll:!0})}),onPointerLeave:tt(u.onPointerLeave,E=>{E.currentTarget===document.activeElement&&d.onItemLeave?.()}),onKeyDown:tt(u.onKeyDown,E=>{d.searchRef?.current!==""&&E.key===" "||(RU.includes(E.key)&&_(),E.key===" "&&E.preventDefault())})})})})});bI.displayName=rf;var Oc="SelectItemText",vI=A.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,...l}=e,u=Pi(Oc,n),c=Bi(Oc,n),d=gI(Oc,n),h=OU(Oc,n),[m,p]=A.useState(null),b=Tt(t,_=>p(_),d.onItemTextChange,_=>c.itemTextRefCallback?.(_,d.value,d.disabled)),y=m?.textContent,C=A.useMemo(()=>s.jsx("option",{value:d.value,disabled:d.disabled,children:y},d.value),[d.disabled,d.value,y]),{onNativeOptionAdd:S,onNativeOptionRemove:v}=h;return kn(()=>(S(C),()=>v(C)),[S,v,C]),s.jsxs(s.Fragment,{children:[s.jsx(ot.span,{id:d.textId,...l,ref:b}),d.isSelected&&u.valueNode&&!u.valueNodeHasChildren?nl.createPortal(l.children,u.valueNode):null]})});vI.displayName=Oc;var yI="SelectItemIndicator",EI=A.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return gI(yI,n).isSelected?s.jsx(ot.span,{"aria-hidden":!0,...r,ref:t}):null});EI.displayName=yI;var f0="SelectScrollUpButton",_I=A.forwardRef((e,t)=>{const n=Bi(f0,e.__scopeSelect),r=Ov(f0,e.__scopeSelect),[i,l]=A.useState(!1),u=Tt(t,r.onScrollButtonChange);return kn(()=>{if(n.viewport&&n.isPositioned){let c=function(){const h=d.scrollTop>0;l(h)};const d=n.viewport;return c(),d.addEventListener("scroll",c),()=>d.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),i?s.jsx(SI,{...e,ref:u,onAutoScroll:()=>{const{viewport:c,selectedItem:d}=n;c&&d&&(c.scrollTop=c.scrollTop-d.offsetHeight)}}):null});_I.displayName=f0;var p0="SelectScrollDownButton",xI=A.forwardRef((e,t)=>{const n=Bi(p0,e.__scopeSelect),r=Ov(p0,e.__scopeSelect),[i,l]=A.useState(!1),u=Tt(t,r.onScrollButtonChange);return kn(()=>{if(n.viewport&&n.isPositioned){let c=function(){const h=d.scrollHeight-d.clientHeight,m=Math.ceil(d.scrollTop)<h;l(m)};const d=n.viewport;return c(),d.addEventListener("scroll",c),()=>d.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),i?s.jsx(SI,{...e,ref:u,onAutoScroll:()=>{const{viewport:c,selectedItem:d}=n;c&&d&&(c.scrollTop=c.scrollTop+d.offsetHeight)}}):null});xI.displayName=p0;var SI=A.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...i}=e,l=Bi("SelectScrollButton",n),u=A.useRef(null),c=Gf(n),d=A.useCallback(()=>{u.current!==null&&(window.clearInterval(u.current),u.current=null)},[]);return A.useEffect(()=>()=>d(),[d]),kn(()=>{c().find(m=>m.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[c]),s.jsx(ot.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:tt(i.onPointerDown,()=>{u.current===null&&(u.current=window.setInterval(r,50))}),onPointerMove:tt(i.onPointerMove,()=>{l.onItemLeave?.(),u.current===null&&(u.current=window.setInterval(r,50))}),onPointerLeave:tt(i.onPointerLeave,()=>{d()})})}),qU="SelectSeparator",CI=A.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return s.jsx(ot.div,{"aria-hidden":!0,...r,ref:t})});CI.displayName=qU;var m0="SelectArrow",VU=A.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=qf(n),l=Pi(m0,n),u=Bi(m0,n);return l.open&&u.position==="popper"?s.jsx(MD,{...i,...r,ref:t}):null});VU.displayName=m0;var WU="SelectBubbleInput",wI=A.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const i=A.useRef(null),l=Tt(r,i),u=eI(t);return A.useEffect(()=>{const c=i.current;if(!c)return;const d=window.HTMLSelectElement.prototype,m=Object.getOwnPropertyDescriptor(d,"value").set;if(u!==t&&m){const p=new Event("change",{bubbles:!0});m.call(c,t),c.dispatchEvent(p)}},[u,t]),s.jsx(ot.select,{...n,style:{...PR,...n.style},ref:l,defaultValue:t})});wI.displayName=WU;function TI(e){return e===""||e===void 0}function AI(e){const t=An(e),n=A.useRef(""),r=A.useRef(0),i=A.useCallback(u=>{const c=n.current+u;t(c),(function d(h){n.current=h,window.clearTimeout(r.current),h!==""&&(r.current=window.setTimeout(()=>d(""),1e3))})(c)},[t]),l=A.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return A.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,l]}function NI(e,t,n){const i=t.length>1&&Array.from(t).every(h=>h===t[0])?t[0]:t,l=n?e.indexOf(n):-1;let u=YU(e,Math.max(l,0));i.length===1&&(u=u.filter(h=>h!==n));const d=u.find(h=>h.textValue.toLowerCase().startsWith(i.toLowerCase()));return d!==n?d:void 0}function YU(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var KU=tI,RI=rI,XU=iI,ZU=sI,QU=oI,kI=lI,JU=hI,DI=mI,II=bI,eH=vI,tH=EI,OI=_I,LI=xI,MI=CI;const en=KU,tn=XU,Kt=A.forwardRef(({className:e,children:t,...n},r)=>s.jsxs(RI,{ref:r,className:Ie("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,s.jsx(ZU,{asChild:!0,children:s.jsx(ok,{className:"h-4 w-4 opacity-50"})})]}));Kt.displayName=RI.displayName;const jI=A.forwardRef(({className:e,...t},n)=>s.jsx(OI,{ref:n,className:Ie("flex cursor-default items-center justify-center py-1",e),...t,children:s.jsx(p8,{className:"h-4 w-4"})}));jI.displayName=OI.displayName;const FI=A.forwardRef(({className:e,...t},n)=>s.jsx(LI,{ref:n,className:Ie("flex cursor-default items-center justify-center py-1",e),...t,children:s.jsx(ok,{className:"h-4 w-4"})}));FI.displayName=LI.displayName;const Xt=A.forwardRef(({className:e,children:t,position:n="popper",...r},i)=>s.jsx(QU,{children:s.jsxs(kI,{ref:i,className:Ie("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[s.jsx(jI,{}),s.jsx(JU,{className:Ie("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),s.jsx(FI,{})]})}));Xt.displayName=kI.displayName;const nH=A.forwardRef(({className:e,...t},n)=>s.jsx(DI,{ref:n,className:Ie("px-2 py-1.5 text-sm font-semibold",e),...t}));nH.displayName=DI.displayName;const Pe=A.forwardRef(({className:e,children:t,...n},r)=>s.jsxs(II,{ref:r,className:Ie("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[s.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:s.jsx(tH,{children:s.jsx(mu,{className:"h-4 w-4"})})}),s.jsx(eH,{children:t})]}));Pe.displayName=II.displayName;const rH=A.forwardRef(({className:e,...t},n)=>s.jsx(MI,{ref:n,className:Ie("-mx-1 my-1 h-px bg-muted",e),...t}));rH.displayName=MI.displayName;const Ea=A.forwardRef(({className:e,...t},n)=>s.jsx("textarea",{className:Ie("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...t}));Ea.displayName="Textarea";const Wo=vv,WA=sD,aH=yv,PI=A.forwardRef(({className:e,...t},n)=>s.jsx(gu,{ref:n,className:Ie("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));PI.displayName=gu.displayName;const ys=A.forwardRef(({className:e,children:t,...n},r)=>s.jsxs(aH,{children:[s.jsx(PI,{}),s.jsxs(bu,{ref:r,className:Ie("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,s.jsxs(Lf,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[s.jsx(xr,{className:"h-4 w-4"}),s.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));ys.displayName=bu.displayName;const Es=({className:e,...t})=>s.jsx("div",{className:Ie("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Es.displayName="DialogHeader";const g0=({className:e,...t})=>s.jsx("div",{className:Ie("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});g0.displayName="DialogFooter";const _s=A.forwardRef(({className:e,...t},n)=>s.jsx(vu,{ref:n,className:Ie("text-lg font-semibold leading-none tracking-tight",e),...t}));_s.displayName=vu.displayName;const b0=A.forwardRef(({className:e,...t},n)=>s.jsx(yu,{ref:n,className:Ie("text-sm text-muted-foreground",e),...t}));b0.displayName=yu.displayName;function eu(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,l=!1;for(;!l;){r===-1&&(r=n.length,l=!0);const u=n.slice(i,r).trim();(u||!l)&&t.push(u),i=r+1,r=n.indexOf(",",i)}return t}function Vf(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const iH=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,sH=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,oH={};function YA(e,t){return(oH.jsx?sH:iH).test(e)}const lH=/[ \t\n\f\r]/g;function _u(e){return typeof e=="object"?e.type==="text"?KA(e.value):!1:KA(e)}function KA(e){return e.replace(lH,"")===""}let xu=class{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}};xu.prototype.normal={};xu.prototype.property={};xu.prototype.space=void 0;function BI(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new xu(n,r,t)}function tu(e){return e.toLowerCase()}let or=class{constructor(t,n){this.attribute=n,this.property=t}};or.prototype.attribute="";or.prototype.booleanish=!1;or.prototype.boolean=!1;or.prototype.commaOrSpaceSeparated=!1;or.prototype.commaSeparated=!1;or.prototype.defined=!1;or.prototype.mustUseProperty=!1;or.prototype.number=!1;or.prototype.overloadedBoolean=!1;or.prototype.property="";or.prototype.spaceSeparated=!1;or.prototype.space=void 0;let cH=0;const dt=Ts(),hn=Ts(),v0=Ts(),Me=Ts(),zt=Ts(),Fo=Ts(),br=Ts();function Ts(){return 2**++cH}const y0=Object.freeze(Object.defineProperty({__proto__:null,boolean:dt,booleanish:hn,commaOrSpaceSeparated:br,commaSeparated:Fo,number:Me,overloadedBoolean:v0,spaceSeparated:zt},Symbol.toStringTag,{value:"Module"})),ob=Object.keys(y0);let Lv=class extends or{constructor(t,n,r,i){let l=-1;if(super(t,n),XA(this,"space",i),typeof r=="number")for(;++l<ob.length;){const u=ob[l];XA(this,ob[l],(r&y0[u])===y0[u])}}};Lv.prototype.defined=!0;function XA(e,t,n){n&&(e[t]=n)}function ul(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const l=new Lv(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),t[r]=l,n[tu(r)]=r,n[tu(l.attribute)]=r}return new xu(t,n,e.space)}const UI=ul({properties:{ariaActiveDescendant:null,ariaAtomic:hn,ariaAutoComplete:null,ariaBusy:hn,ariaChecked:hn,ariaColCount:Me,ariaColIndex:Me,ariaColSpan:Me,ariaControls:zt,ariaCurrent:null,ariaDescribedBy:zt,ariaDetails:null,ariaDisabled:hn,ariaDropEffect:zt,ariaErrorMessage:null,ariaExpanded:hn,ariaFlowTo:zt,ariaGrabbed:hn,ariaHasPopup:null,ariaHidden:hn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:zt,ariaLevel:Me,ariaLive:null,ariaModal:hn,ariaMultiLine:hn,ariaMultiSelectable:hn,ariaOrientation:null,ariaOwns:zt,ariaPlaceholder:null,ariaPosInSet:Me,ariaPressed:hn,ariaReadOnly:hn,ariaRelevant:null,ariaRequired:hn,ariaRoleDescription:zt,ariaRowCount:Me,ariaRowIndex:Me,ariaRowSpan:Me,ariaSelected:hn,ariaSetSize:Me,ariaSort:null,ariaValueMax:Me,ariaValueMin:Me,ariaValueNow:Me,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function HI(e,t){return t in e?e[t]:t}function zI(e,t){return HI(e,t.toLowerCase())}const uH=ul({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Fo,acceptCharset:zt,accessKey:zt,action:null,allow:null,allowFullScreen:dt,allowPaymentRequest:dt,allowUserMedia:dt,alt:null,as:null,async:dt,autoCapitalize:null,autoComplete:zt,autoFocus:dt,autoPlay:dt,blocking:zt,capture:null,charSet:null,checked:dt,cite:null,className:zt,cols:Me,colSpan:null,content:null,contentEditable:hn,controls:dt,controlsList:zt,coords:Me|Fo,crossOrigin:null,data:null,dateTime:null,decoding:null,default:dt,defer:dt,dir:null,dirName:null,disabled:dt,download:v0,draggable:hn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:dt,formTarget:null,headers:zt,height:Me,hidden:v0,high:Me,href:null,hrefLang:null,htmlFor:zt,httpEquiv:zt,id:null,imageSizes:null,imageSrcSet:null,inert:dt,inputMode:null,integrity:null,is:null,isMap:dt,itemId:null,itemProp:zt,itemRef:zt,itemScope:dt,itemType:zt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:dt,low:Me,manifest:null,max:null,maxLength:Me,media:null,method:null,min:null,minLength:Me,multiple:dt,muted:dt,name:null,nonce:null,noModule:dt,noValidate:dt,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:dt,optimum:Me,pattern:null,ping:zt,placeholder:null,playsInline:dt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:dt,referrerPolicy:null,rel:zt,required:dt,reversed:dt,rows:Me,rowSpan:Me,sandbox:zt,scope:null,scoped:dt,seamless:dt,selected:dt,shadowRootClonable:dt,shadowRootDelegatesFocus:dt,shadowRootMode:null,shape:null,size:Me,sizes:null,slot:null,span:Me,spellCheck:hn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Me,step:null,style:null,tabIndex:Me,target:null,title:null,translate:null,type:null,typeMustMatch:dt,useMap:null,value:hn,width:Me,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:zt,axis:null,background:null,bgColor:null,border:Me,borderColor:null,bottomMargin:Me,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:dt,declare:dt,event:null,face:null,frame:null,frameBorder:null,hSpace:Me,leftMargin:Me,link:null,longDesc:null,lowSrc:null,marginHeight:Me,marginWidth:Me,noResize:dt,noHref:dt,noShade:dt,noWrap:dt,object:null,profile:null,prompt:null,rev:null,rightMargin:Me,rules:null,scheme:null,scrolling:hn,standby:null,summary:null,text:null,topMargin:Me,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Me,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:dt,disableRemotePlayback:dt,prefix:null,property:null,results:Me,security:null,unselectable:null},space:"html",transform:zI}),dH=ul({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:br,accentHeight:Me,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Me,amplitude:Me,arabicForm:null,ascent:Me,attributeName:null,attributeType:null,azimuth:Me,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Me,by:null,calcMode:null,capHeight:Me,className:zt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Me,diffuseConstant:Me,direction:null,display:null,dur:null,divisor:Me,dominantBaseline:null,download:dt,dx:null,dy:null,edgeMode:null,editable:null,elevation:Me,enableBackground:null,end:null,event:null,exponent:Me,externalResourcesRequired:null,fill:null,fillOpacity:Me,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Fo,g2:Fo,glyphName:Fo,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Me,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Me,horizOriginX:Me,horizOriginY:Me,id:null,ideographic:Me,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Me,k:Me,k1:Me,k2:Me,k3:Me,k4:Me,kernelMatrix:br,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Me,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Me,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Me,overlineThickness:Me,paintOrder:null,panose1:null,path:null,pathLength:Me,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:zt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Me,pointsAtY:Me,pointsAtZ:Me,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:br,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:br,rev:br,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:br,requiredFeatures:br,requiredFonts:br,requiredFormats:br,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Me,specularExponent:Me,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Me,strikethroughThickness:Me,string:null,stroke:null,strokeDashArray:br,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Me,strokeOpacity:Me,strokeWidth:null,style:null,surfaceScale:Me,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:br,tabIndex:Me,tableValues:null,target:null,targetX:Me,targetY:Me,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:br,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Me,underlineThickness:Me,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Me,values:null,vAlphabetic:Me,vMathematical:Me,vectorEffect:null,vHanging:Me,vIdeographic:Me,version:null,vertAdvY:Me,vertOriginX:Me,vertOriginY:Me,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Me,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:HI}),$I=ul({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),GI=ul({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:zI}),qI=ul({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),hH={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},fH=/[A-Z]/g,ZA=/-[a-z]/g,pH=/^data[-\w.:]+$/i;function Su(e,t){const n=tu(t);let r=t,i=or;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&pH.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(ZA,gH);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!ZA.test(l)){let u=l.replace(fH,mH);u.charAt(0)!=="-"&&(u="-"+u),t="data"+u}}i=Lv}return new i(r,t)}function mH(e){return"-"+e.toLowerCase()}function gH(e){return e.charAt(1).toUpperCase()}const dl=BI([UI,uH,$I,GI,qI],"html"),Ja=BI([UI,dH,$I,GI,qI],"svg");function nu(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Wf(e){return e.join(" ").trim()}var To={},lb,QA;function bH(){if(QA)return lb;QA=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,c=/^\s+|\s+$/g,d=`
420
420
  `,h="/",m="*",p="",b="comment",y="declaration";lb=function(S,v){if(typeof S!="string")throw new TypeError("First argument must be a string");if(!S)return[];v=v||{};var _=1,E=1;function x(P){var V=P.match(t);V&&(_+=V.length);var te=P.lastIndexOf(d);E=~te?P.length-te:E+P.length}function T(){var P={line:_,column:E};return function(V){return V.position=new k(P),R(),V}}function k(P){this.start=P,this.end={line:_,column:E},this.source=v.source}k.prototype.content=S;function N(P){var V=new Error(v.source+":"+_+":"+E+": "+P);if(V.reason=P,V.filename=v.source,V.line=_,V.column=E,V.source=S,!v.silent)throw V}function L(P){var V=P.exec(S);if(V){var te=V[0];return x(te),S=S.slice(te.length),V}}function R(){L(n)}function M(P){var V;for(P=P||[];V=F();)V!==!1&&P.push(V);return P}function F(){var P=T();if(!(h!=S.charAt(0)||m!=S.charAt(1))){for(var V=2;p!=S.charAt(V)&&(m!=S.charAt(V)||h!=S.charAt(V+1));)++V;if(V+=2,p===S.charAt(V-1))return N("End of comment missing");var te=S.slice(2,V-2);return E+=2,x(te),S=S.slice(V),E+=2,P({type:b,comment:te})}}function U(){var P=T(),V=L(r);if(V){if(F(),!L(i))return N("property missing ':'");var te=L(l),H=P({type:y,property:C(V[0].replace(e,p)),value:te?C(te[0].replace(e,p)):p});return L(u),H}}function $(){var P=[];M(P);for(var V;V=U();)V!==!1&&(P.push(V),M(P));return P}return R(),$()};function C(S){return S?S.replace(c,p):p}return lb}var JA;function vH(){if(JA)return To;JA=1;var e=To&&To.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(To,"__esModule",{value:!0}),To.default=n;var t=e(bH());function n(r,i){var l=null;if(!r||typeof r!="string")return l;var u=(0,t.default)(r),c=typeof i=="function";return u.forEach(function(d){if(d.type==="declaration"){var h=d.property,m=d.value;c?i(h,m,d):m&&(l=l||{},l[h]=m)}}),l}return To}var wc={},e2;function yH(){if(e2)return wc;e2=1,Object.defineProperty(wc,"__esModule",{value:!0}),wc.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,l=function(h){return!h||n.test(h)||e.test(h)},u=function(h,m){return m.toUpperCase()},c=function(h,m){return"".concat(m,"-")},d=function(h,m){return m===void 0&&(m={}),l(h)?h:(h=h.toLowerCase(),m.reactCompat?h=h.replace(i,c):h=h.replace(r,c),h.replace(t,u))};return wc.camelCase=d,wc}var Tc,t2;function EH(){if(t2)return Tc;t2=1;var e=Tc&&Tc.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(vH()),n=yH();function r(i,l){var u={};return!i||typeof i!="string"||(0,t.default)(i,function(c,d){c&&d&&(u[(0,n.camelCase)(c,l)]=d)}),u}return r.default=r,Tc=r,Tc}var _H=EH();const xH=Qo(_H),Yf=VI("end"),Ca=VI("start");function VI(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function WI(e){const t=Ca(e),n=Yf(e);if(t&&n)return{start:t,end:n}}function Fc(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?n2(e.position):"start"in e||"end"in e?n2(e):"line"in e||"column"in e?E0(e):""}function E0(e){return r2(e&&e.line)+":"+r2(e&&e.column)}function n2(e){return E0(e&&e.start)+"-"+E0(e&&e.end)}function r2(e){return e&&typeof e=="number"?e:1}class Pn extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",l={},u=!1;if(n&&("line"in n&&"column"in n?l={place:n}:"start"in n&&"end"in n?l={place:n}:"type"in n?l={ancestors:[n],place:n.position}:l={...n}),typeof t=="string"?i=t:!l.cause&&t&&(u=!0,i=t.message,l.cause=t),!l.ruleId&&!l.source&&typeof r=="string"){const d=r.indexOf(":");d===-1?l.ruleId=r:(l.source=r.slice(0,d),l.ruleId=r.slice(d+1))}if(!l.place&&l.ancestors&&l.ancestors){const d=l.ancestors[l.ancestors.length-1];d&&(l.place=d.position)}const c=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=c?c.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=c?c.line:void 0,this.name=Fc(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=u&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Pn.prototype.file="";Pn.prototype.name="";Pn.prototype.reason="";Pn.prototype.message="";Pn.prototype.stack="";Pn.prototype.column=void 0;Pn.prototype.line=void 0;Pn.prototype.ancestors=void 0;Pn.prototype.cause=void 0;Pn.prototype.fatal=void 0;Pn.prototype.place=void 0;Pn.prototype.ruleId=void 0;Pn.prototype.source=void 0;const Mv={}.hasOwnProperty,SH=new Map,CH=/[A-Z]/g,wH=new Set(["table","tbody","thead","tfoot","tr"]),TH=new Set(["td","th"]),YI="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function KI(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=LH(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=OH(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Ja:dl,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},l=XI(i,e,void 0);return l&&typeof l!="string"?l:i.create(e,i.Fragment,{children:l||void 0},void 0)}function XI(e,t,n){if(t.type==="element")return AH(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return NH(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return kH(e,t,n);if(t.type==="mdxjsEsm")return RH(e,t);if(t.type==="root")return DH(e,t,n);if(t.type==="text")return IH(e,t)}function AH(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Ja,e.schema=i),e.ancestors.push(t);const l=QI(e,t.tagName,!1),u=MH(e,t);let c=Fv(e,t);return wH.has(t.tagName)&&(c=c.filter(function(d){return typeof d=="string"?!_u(d):!0})),ZI(e,u,l,t),jv(u,c),e.ancestors.pop(),e.schema=r,e.create(t,l,u,n)}function NH(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}ru(e,t.position)}function RH(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ru(e,t.position)}function kH(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Ja,e.schema=i),e.ancestors.push(t);const l=t.name===null?e.Fragment:QI(e,t.name,!0),u=jH(e,t),c=Fv(e,t);return ZI(e,u,l,t),jv(u,c),e.ancestors.pop(),e.schema=r,e.create(t,l,u,n)}function DH(e,t,n){const r={};return jv(r,Fv(e,t)),e.create(t,e.Fragment,r,n)}function IH(e,t){return t.value}function ZI(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function jv(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function OH(e,t,n){return r;function r(i,l,u,c){const h=Array.isArray(u.children)?n:t;return c?h(l,u,c):h(l,u)}}function LH(e,t){return n;function n(r,i,l,u){const c=Array.isArray(l.children),d=Ca(r);return t(i,l,u,c,{columnNumber:d?d.column-1:void 0,fileName:e,lineNumber:d?d.line:void 0},void 0)}}function MH(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&Mv.call(t.properties,i)){const l=FH(e,i,t.properties[i]);if(l){const[u,c]=l;e.tableCellAlignToStyle&&u==="align"&&typeof c=="string"&&TH.has(t.tagName)?r=c:n[u]=c}}if(r){const l=n.style||(n.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function jH(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const l=r.data.estree.body[0];l.type;const u=l.expression;u.type;const c=u.properties[0];c.type,Object.assign(n,e.evaluater.evaluateExpression(c.argument))}else ru(e,t.position);else{const i=r.name;let l;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const c=r.value.data.estree.body[0];c.type,l=e.evaluater.evaluateExpression(c.expression)}else ru(e,t.position);else l=r.value===null?!0:r.value;n[i]=l}return n}function Fv(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:SH;for(;++r<t.children.length;){const l=t.children[r];let u;if(e.passKeys){const d=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(d){const h=i.get(d)||0;u=d+"-"+h,i.set(d,h+1)}}const c=XI(e,l,u);c!==void 0&&n.push(c)}return n}function FH(e,t,n){const r=Su(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Vf(n):Wf(n)),r.property==="style"){let i=typeof n=="object"?n:PH(e,String(n));return e.stylePropertyNameCase==="css"&&(i=BH(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?hH[r.property]||r.property:r.attribute,n]}}function PH(e,t){try{return xH(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new Pn("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=YI+"#cannot-parse-style-attribute",i}}function QI(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let l=-1,u;for(;++l<i.length;){const c=YA(i[l])?{type:"Identifier",name:i[l]}:{type:"Literal",value:i[l]};u=u?{type:"MemberExpression",object:u,property:c,computed:!!(l&&c.type==="Literal"),optional:!1}:c}r=u}else r=YA(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return Mv.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);ru(e)}function ru(e,t){const n=new Pn("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=YI+"#cannot-handle-mdx-estrees-without-createevaluater",n}function BH(e){const t={};let n;for(n in e)Mv.call(e,n)&&(t[UH(n)]=e[n]);return t}function UH(e){let t=e.replace(CH,HH);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function HH(e){return"-"+e.toLowerCase()}const Po={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},zH={};function Pv(e,t){const n=zH,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return JI(e,r,i)}function JI(e,t,n){if($H(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return a2(e.children,t,n)}return Array.isArray(e)?a2(e,t,n):""}function a2(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=JI(e[i],t,n);return r.join("")}function $H(e){return!!(e&&typeof e=="object")}const i2=document.createElement("i");function au(e){const t="&"+e+";";i2.innerHTML=t;const n=i2.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Cr(e,t,n,r){const i=e.length;let l=0,u;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)u=Array.from(r),u.unshift(t,n),e.splice(...u);else for(n&&e.splice(t,n);l<r.length;)u=r.slice(l,l+1e4),u.unshift(t,0),e.splice(...u),l+=1e4,t+=1e4}function Mr(e,t){return e.length>0?(Cr(e,e.length,0,t),e):t}const s2={}.hasOwnProperty;function eO(e){const t={};let n=-1;for(;++n<e.length;)GH(t,e[n]);return t}function GH(e,t){let n;for(n in t){const i=(s2.call(e,n)?e[n]:void 0)||(e[n]={}),l=t[n];let u;if(l)for(u in l){s2.call(i,u)||(i[u]=[]);const c=l[u];qH(i[u],Array.isArray(c)?c:c?[c]:[])}}}function qH(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Cr(e,0,0,r)}function tO(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Wr(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Xn=Ui(/[A-Za-z]/),Gn=Ui(/[\dA-Za-z]/),VH=Ui(/[#-'*+\--9=?A-Z^-~]/);function af(e){return e!==null&&(e<32||e===127)}const _0=Ui(/\d/),WH=Ui(/[\dA-Fa-f]/),YH=Ui(/[!-/:-@[-`{-~]/);function Je(e){return e!==null&&e<-2}function Ut(e){return e!==null&&(e<0||e===32)}function xt(e){return e===-2||e===-1||e===32}const Kf=Ui(new RegExp("\\p{P}|\\p{S}","u")),xs=Ui(/\s/);function Ui(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function hl(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const l=e.charCodeAt(n);let u="";if(l===37&&Gn(e.charCodeAt(n+1))&&Gn(e.charCodeAt(n+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(u=String.fromCharCode(l));else if(l>55295&&l<57344){const c=e.charCodeAt(n+1);l<56320&&c>56319&&c<57344?(u=String.fromCharCode(l,c),i=1):u="�"}else u=String.fromCharCode(l);u&&(t.push(e.slice(r,n),encodeURIComponent(u)),r=n+i+1,u=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function Nt(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return u;function u(d){return xt(d)?(e.enter(n),c(d)):t(d)}function c(d){return xt(d)&&l++<i?(e.consume(d),c):(e.exit(n),t(d))}}const KH={tokenize:XH};function XH(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(c){if(c===null){e.consume(c);return}return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),Nt(e,t,"linePrefix")}function i(c){return e.enter("paragraph"),l(c)}function l(c){const d=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=d),n=d,u(c)}function u(c){if(c===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(c);return}return Je(c)?(e.consume(c),e.exit("chunkText"),l):(e.consume(c),u)}}const ZH={tokenize:QH},o2={tokenize:JH};function QH(e){const t=this,n=[];let r=0,i,l,u;return c;function c(x){if(r<n.length){const T=n[r];return t.containerState=T[1],e.attempt(T[0].continuation,d,h)(x)}return h(x)}function d(x){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&E();const T=t.events.length;let k=T,N;for(;k--;)if(t.events[k][0]==="exit"&&t.events[k][1].type==="chunkFlow"){N=t.events[k][1].end;break}_(r);let L=T;for(;L<t.events.length;)t.events[L][1].end={...N},L++;return Cr(t.events,k+1,0,t.events.slice(T)),t.events.length=L,h(x)}return c(x)}function h(x){if(r===n.length){if(!i)return b(x);if(i.currentConstruct&&i.currentConstruct.concrete)return C(x);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(o2,m,p)(x)}function m(x){return i&&E(),_(r),b(x)}function p(x){return t.parser.lazy[t.now().line]=r!==n.length,u=t.now().offset,C(x)}function b(x){return t.containerState={},e.attempt(o2,y,C)(x)}function y(x){return r++,n.push([t.currentConstruct,t.containerState]),b(x)}function C(x){if(x===null){i&&E(),_(0),e.consume(x);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:l}),S(x)}function S(x){if(x===null){v(e.exit("chunkFlow"),!0),_(0),e.consume(x);return}return Je(x)?(e.consume(x),v(e.exit("chunkFlow")),r=0,t.interrupt=void 0,c):(e.consume(x),S)}function v(x,T){const k=t.sliceStream(x);if(T&&k.push(null),x.previous=l,l&&(l.next=x),l=x,i.defineSkip(x.start),i.write(k),t.parser.lazy[x.start.line]){let N=i.events.length;for(;N--;)if(i.events[N][1].start.offset<u&&(!i.events[N][1].end||i.events[N][1].end.offset>u))return;const L=t.events.length;let R=L,M,F;for(;R--;)if(t.events[R][0]==="exit"&&t.events[R][1].type==="chunkFlow"){if(M){F=t.events[R][1].end;break}M=!0}for(_(r),N=L;N<t.events.length;)t.events[N][1].end={...F},N++;Cr(t.events,R+1,0,t.events.slice(L)),t.events.length=N}}function _(x){let T=n.length;for(;T-- >x;){const k=n[T];t.containerState=k[1],k[0].exit.call(t,e)}n.length=x}function E(){i.write([null]),l=void 0,i=void 0,t.containerState._closeFlow=void 0}}function JH(e,t,n){return Nt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Yo(e){if(e===null||Ut(e)||xs(e))return 1;if(Kf(e))return 2}function Xf(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const l=e[i].resolveAll;l&&!r.includes(l)&&(t=l(t,n),r.push(l))}return t}const x0={name:"attention",resolveAll:ez,tokenize:tz};function ez(e,t){let n=-1,r,i,l,u,c,d,h,m;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;d=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const p={...e[r][1].end},b={...e[n][1].start};l2(p,-d),l2(b,d),u={type:d>1?"strongSequence":"emphasisSequence",start:p,end:{...e[r][1].end}},c={type:d>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:b},l={type:d>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:d>1?"strong":"emphasis",start:{...u.start},end:{...c.end}},e[r][1].end={...u.start},e[n][1].start={...c.end},h=[],e[r][1].end.offset-e[r][1].start.offset&&(h=Mr(h,[["enter",e[r][1],t],["exit",e[r][1],t]])),h=Mr(h,[["enter",i,t],["enter",u,t],["exit",u,t],["enter",l,t]]),h=Mr(h,Xf(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),h=Mr(h,[["exit",l,t],["enter",c,t],["exit",c,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(m=2,h=Mr(h,[["enter",e[n][1],t],["exit",e[n][1],t]])):m=0,Cr(e,r-1,n-r+3,h),n=r+h.length-m-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function tz(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Yo(r);let l;return u;function u(d){return l=d,e.enter("attentionSequence"),c(d)}function c(d){if(d===l)return e.consume(d),c;const h=e.exit("attentionSequence"),m=Yo(d),p=!m||m===2&&i||n.includes(d),b=!i||i===2&&m||n.includes(r);return h._open=!!(l===42?p:p&&(i||!b)),h._close=!!(l===42?b:b&&(m||!p)),t(d)}}function l2(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const nz={name:"autolink",tokenize:rz};function rz(e,t,n){let r=0;return i;function i(y){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(y){return Xn(y)?(e.consume(y),u):y===64?n(y):h(y)}function u(y){return y===43||y===45||y===46||Gn(y)?(r=1,c(y)):h(y)}function c(y){return y===58?(e.consume(y),r=0,d):(y===43||y===45||y===46||Gn(y))&&r++<32?(e.consume(y),c):(r=0,h(y))}function d(y){return y===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),t):y===null||y===32||y===60||af(y)?n(y):(e.consume(y),d)}function h(y){return y===64?(e.consume(y),m):VH(y)?(e.consume(y),h):n(y)}function m(y){return Gn(y)?p(y):n(y)}function p(y){return y===46?(e.consume(y),r=0,m):y===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),t):b(y)}function b(y){if((y===45||Gn(y))&&r++<63){const C=y===45?b:p;return e.consume(y),C}return n(y)}}const Cu={partial:!0,tokenize:az};function az(e,t,n){return r;function r(l){return xt(l)?Nt(e,i,"linePrefix")(l):i(l)}function i(l){return l===null||Je(l)?t(l):n(l)}}const nO={continuation:{tokenize:sz},exit:oz,name:"blockQuote",tokenize:iz};function iz(e,t,n){const r=this;return i;function i(u){if(u===62){const c=r.containerState;return c.open||(e.enter("blockQuote",{_container:!0}),c.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(u),e.exit("blockQuoteMarker"),l}return n(u)}function l(u){return xt(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(u))}}function sz(e,t,n){const r=this;return i;function i(u){return xt(u)?Nt(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):l(u)}function l(u){return e.attempt(nO,t,n)(u)}}function oz(e){e.exit("blockQuote")}const rO={name:"characterEscape",tokenize:lz};function lz(e,t,n){return r;function r(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),i}function i(l){return YH(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(l)}}const aO={name:"characterReference",tokenize:cz};function cz(e,t,n){const r=this;let i=0,l,u;return c;function c(p){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),d}function d(p){return p===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(p),e.exit("characterReferenceMarkerNumeric"),h):(e.enter("characterReferenceValue"),l=31,u=Gn,m(p))}function h(p){return p===88||p===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(p),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,u=WH,m):(e.enter("characterReferenceValue"),l=7,u=_0,m(p))}function m(p){if(p===59&&i){const b=e.exit("characterReferenceValue");return u===Gn&&!au(r.sliceSerialize(b))?n(p):(e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return u(p)&&i++<l?(e.consume(p),m):n(p)}}const c2={partial:!0,tokenize:dz},u2={concrete:!0,name:"codeFenced",tokenize:uz};function uz(e,t,n){const r=this,i={partial:!0,tokenize:k};let l=0,u=0,c;return d;function d(N){return h(N)}function h(N){const L=r.events[r.events.length-1];return l=L&&L[1].type==="linePrefix"?L[2].sliceSerialize(L[1],!0).length:0,c=N,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),m(N)}function m(N){return N===c?(u++,e.consume(N),m):u<3?n(N):(e.exit("codeFencedFenceSequence"),xt(N)?Nt(e,p,"whitespace")(N):p(N))}function p(N){return N===null||Je(N)?(e.exit("codeFencedFence"),r.interrupt?t(N):e.check(c2,S,T)(N)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),b(N))}function b(N){return N===null||Je(N)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),p(N)):xt(N)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Nt(e,y,"whitespace")(N)):N===96&&N===c?n(N):(e.consume(N),b)}function y(N){return N===null||Je(N)?p(N):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),C(N))}function C(N){return N===null||Je(N)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),p(N)):N===96&&N===c?n(N):(e.consume(N),C)}function S(N){return e.attempt(i,T,v)(N)}function v(N){return e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),_}function _(N){return l>0&&xt(N)?Nt(e,E,"linePrefix",l+1)(N):E(N)}function E(N){return N===null||Je(N)?e.check(c2,S,T)(N):(e.enter("codeFlowValue"),x(N))}function x(N){return N===null||Je(N)?(e.exit("codeFlowValue"),E(N)):(e.consume(N),x)}function T(N){return e.exit("codeFenced"),t(N)}function k(N,L,R){let M=0;return F;function F(te){return N.enter("lineEnding"),N.consume(te),N.exit("lineEnding"),U}function U(te){return N.enter("codeFencedFence"),xt(te)?Nt(N,$,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(te):$(te)}function $(te){return te===c?(N.enter("codeFencedFenceSequence"),P(te)):R(te)}function P(te){return te===c?(M++,N.consume(te),P):M>=u?(N.exit("codeFencedFenceSequence"),xt(te)?Nt(N,V,"whitespace")(te):V(te)):R(te)}function V(te){return te===null||Je(te)?(N.exit("codeFencedFence"),L(te)):R(te)}}}function dz(e,t,n){const r=this;return i;function i(u){return u===null?n(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),l)}function l(u){return r.parser.lazy[r.now().line]?n(u):t(u)}}const cb={name:"codeIndented",tokenize:fz},hz={partial:!0,tokenize:pz};function fz(e,t,n){const r=this;return i;function i(h){return e.enter("codeIndented"),Nt(e,l,"linePrefix",5)(h)}function l(h){const m=r.events[r.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?u(h):n(h)}function u(h){return h===null?d(h):Je(h)?e.attempt(hz,u,d)(h):(e.enter("codeFlowValue"),c(h))}function c(h){return h===null||Je(h)?(e.exit("codeFlowValue"),u(h)):(e.consume(h),c)}function d(h){return e.exit("codeIndented"),t(h)}}function pz(e,t,n){const r=this;return i;function i(u){return r.parser.lazy[r.now().line]?n(u):Je(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),i):Nt(e,l,"linePrefix",5)(u)}function l(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(u):Je(u)?i(u):n(u)}}const mz={name:"codeText",previous:bz,resolve:gz,tokenize:vz};function gz(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function bz(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function vz(e,t,n){let r=0,i,l;return u;function u(p){return e.enter("codeText"),e.enter("codeTextSequence"),c(p)}function c(p){return p===96?(e.consume(p),r++,c):(e.exit("codeTextSequence"),d(p))}function d(p){return p===null?n(p):p===32?(e.enter("space"),e.consume(p),e.exit("space"),d):p===96?(l=e.enter("codeTextSequence"),i=0,m(p)):Je(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),d):(e.enter("codeTextData"),h(p))}function h(p){return p===null||p===32||p===96||Je(p)?(e.exit("codeTextData"),d(p)):(e.consume(p),h)}function m(p){return p===96?(e.consume(p),i++,m):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(p)):(l.type="codeTextData",h(p))}}class yz{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const l=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Ac(this.left,r),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Ac(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Ac(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Ac(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Ac(this.left,n.reverse())}}}function Ac(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function iO(e){const t={};let n=-1,r,i,l,u,c,d,h;const m=new yz(e);for(;++n<m.length;){for(;n in t;)n=t[n];if(r=m.get(n),n&&r[1].type==="chunkFlow"&&m.get(n-1)[1].type==="listItemPrefix"&&(d=r[1]._tokenizer.events,l=0,l<d.length&&d[l][1].type==="lineEndingBlank"&&(l+=2),l<d.length&&d[l][1].type==="content"))for(;++l<d.length&&d[l][1].type!=="content";)d[l][1].type==="chunkText"&&(d[l][1]._isInFirstContentOfListItem=!0,l++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,Ez(m,n)),n=t[n],h=!0);else if(r[1]._container){for(l=n,i=void 0;l--;)if(u=m.get(l),u[1].type==="lineEnding"||u[1].type==="lineEndingBlank")u[0]==="enter"&&(i&&(m.get(i)[1].type="lineEndingBlank"),u[1].type="lineEnding",i=l);else if(!(u[1].type==="linePrefix"||u[1].type==="listItemIndent"))break;i&&(r[1].end={...m.get(i)[1].start},c=m.slice(i,n),c.unshift(r),m.splice(i,n-i+1,c))}}return Cr(e,0,Number.POSITIVE_INFINITY,m.slice(0)),!h}function Ez(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const l=[];let u=n._tokenizer;u||(u=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(u._contentTypeTextTrailing=!0));const c=u.events,d=[],h={};let m,p,b=-1,y=n,C=0,S=0;const v=[S];for(;y;){for(;e.get(++i)[1]!==y;);l.push(i),y._tokenizer||(m=r.sliceStream(y),y.next||m.push(null),p&&u.defineSkip(y.start),y._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(m),y._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),p=y,y=y.next}for(y=n;++b<c.length;)c[b][0]==="exit"&&c[b-1][0]==="enter"&&c[b][1].type===c[b-1][1].type&&c[b][1].start.line!==c[b][1].end.line&&(S=b+1,v.push(S),y._tokenizer=void 0,y.previous=void 0,y=y.next);for(u.events=[],y?(y._tokenizer=void 0,y.previous=void 0):v.pop(),b=v.length;b--;){const _=c.slice(v[b],v[b+1]),E=l.pop();d.push([E,E+_.length-1]),e.splice(E,2,_)}for(d.reverse(),b=-1;++b<d.length;)h[C+d[b][0]]=C+d[b][1],C+=d[b][1]-d[b][0]-1;return h}const _z={resolve:Sz,tokenize:Cz},xz={partial:!0,tokenize:wz};function Sz(e){return iO(e),e}function Cz(e,t){let n;return r;function r(c){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(c)}function i(c){return c===null?l(c):Je(c)?e.check(xz,u,l)(c):(e.consume(c),i)}function l(c){return e.exit("chunkContent"),e.exit("content"),t(c)}function u(c){return e.consume(c),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function wz(e,t,n){const r=this;return i;function i(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),Nt(e,l,"linePrefix")}function l(u){if(u===null||Je(u))return n(u);const c=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(u):e.interrupt(r.parser.constructs.flow,n,t)(u)}}function sO(e,t,n,r,i,l,u,c,d){const h=d||Number.POSITIVE_INFINITY;let m=0;return p;function p(_){return _===60?(e.enter(r),e.enter(i),e.enter(l),e.consume(_),e.exit(l),b):_===null||_===32||_===41||af(_)?n(_):(e.enter(r),e.enter(u),e.enter(c),e.enter("chunkString",{contentType:"string"}),S(_))}function b(_){return _===62?(e.enter(l),e.consume(_),e.exit(l),e.exit(i),e.exit(r),t):(e.enter(c),e.enter("chunkString",{contentType:"string"}),y(_))}function y(_){return _===62?(e.exit("chunkString"),e.exit(c),b(_)):_===null||_===60||Je(_)?n(_):(e.consume(_),_===92?C:y)}function C(_){return _===60||_===62||_===92?(e.consume(_),y):y(_)}function S(_){return!m&&(_===null||_===41||Ut(_))?(e.exit("chunkString"),e.exit(c),e.exit(u),e.exit(r),t(_)):m<h&&_===40?(e.consume(_),m++,S):_===41?(e.consume(_),m--,S):_===null||_===32||_===40||af(_)?n(_):(e.consume(_),_===92?v:S)}function v(_){return _===40||_===41||_===92?(e.consume(_),S):S(_)}}function oO(e,t,n,r,i,l){const u=this;let c=0,d;return h;function h(y){return e.enter(r),e.enter(i),e.consume(y),e.exit(i),e.enter(l),m}function m(y){return c>999||y===null||y===91||y===93&&!d||y===94&&!c&&"_hiddenFootnoteSupport"in u.parser.constructs?n(y):y===93?(e.exit(l),e.enter(i),e.consume(y),e.exit(i),e.exit(r),t):Je(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),m):(e.enter("chunkString",{contentType:"string"}),p(y))}function p(y){return y===null||y===91||y===93||Je(y)||c++>999?(e.exit("chunkString"),m(y)):(e.consume(y),d||(d=!xt(y)),y===92?b:p)}function b(y){return y===91||y===92||y===93?(e.consume(y),c++,p):p(y)}}function lO(e,t,n,r,i,l){let u;return c;function c(b){return b===34||b===39||b===40?(e.enter(r),e.enter(i),e.consume(b),e.exit(i),u=b===40?41:b,d):n(b)}function d(b){return b===u?(e.enter(i),e.consume(b),e.exit(i),e.exit(r),t):(e.enter(l),h(b))}function h(b){return b===u?(e.exit(l),d(u)):b===null?n(b):Je(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),Nt(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),m(b))}function m(b){return b===u||b===null||Je(b)?(e.exit("chunkString"),h(b)):(e.consume(b),b===92?p:m)}function p(b){return b===u||b===92?(e.consume(b),m):m(b)}}function Pc(e,t){let n;return r;function r(i){return Je(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):xt(i)?Nt(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const Tz={name:"definition",tokenize:Nz},Az={partial:!0,tokenize:Rz};function Nz(e,t,n){const r=this;let i;return l;function l(y){return e.enter("definition"),u(y)}function u(y){return oO.call(r,e,c,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(y)}function c(y){return i=Wr(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),y===58?(e.enter("definitionMarker"),e.consume(y),e.exit("definitionMarker"),d):n(y)}function d(y){return Ut(y)?Pc(e,h)(y):h(y)}function h(y){return sO(e,m,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(y)}function m(y){return e.attempt(Az,p,p)(y)}function p(y){return xt(y)?Nt(e,b,"whitespace")(y):b(y)}function b(y){return y===null||Je(y)?(e.exit("definition"),r.parser.defined.push(i),t(y)):n(y)}}function Rz(e,t,n){return r;function r(c){return Ut(c)?Pc(e,i)(c):n(c)}function i(c){return lO(e,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(c)}function l(c){return xt(c)?Nt(e,u,"whitespace")(c):u(c)}function u(c){return c===null||Je(c)?t(c):n(c)}}const kz={name:"hardBreakEscape",tokenize:Dz};function Dz(e,t,n){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return Je(l)?(e.exit("hardBreakEscape"),t(l)):n(l)}}const Iz={name:"headingAtx",resolve:Oz,tokenize:Lz};function Oz(e,t){let n=e.length-2,r=3,i,l;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},l={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Cr(e,r,n-r+1,[["enter",i,t],["enter",l,t],["exit",l,t],["exit",i,t]])),e}function Lz(e,t,n){let r=0;return i;function i(m){return e.enter("atxHeading"),l(m)}function l(m){return e.enter("atxHeadingSequence"),u(m)}function u(m){return m===35&&r++<6?(e.consume(m),u):m===null||Ut(m)?(e.exit("atxHeadingSequence"),c(m)):n(m)}function c(m){return m===35?(e.enter("atxHeadingSequence"),d(m)):m===null||Je(m)?(e.exit("atxHeading"),t(m)):xt(m)?Nt(e,c,"whitespace")(m):(e.enter("atxHeadingText"),h(m))}function d(m){return m===35?(e.consume(m),d):(e.exit("atxHeadingSequence"),c(m))}function h(m){return m===null||m===35||Ut(m)?(e.exit("atxHeadingText"),c(m)):(e.consume(m),h)}}const Mz=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],d2=["pre","script","style","textarea"],jz={concrete:!0,name:"htmlFlow",resolveTo:Bz,tokenize:Uz},Fz={partial:!0,tokenize:zz},Pz={partial:!0,tokenize:Hz};function Bz(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Uz(e,t,n){const r=this;let i,l,u,c,d;return h;function h(z){return m(z)}function m(z){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(z),p}function p(z){return z===33?(e.consume(z),b):z===47?(e.consume(z),l=!0,S):z===63?(e.consume(z),i=3,r.interrupt?t:O):Xn(z)?(e.consume(z),u=String.fromCharCode(z),v):n(z)}function b(z){return z===45?(e.consume(z),i=2,y):z===91?(e.consume(z),i=5,c=0,C):Xn(z)?(e.consume(z),i=4,r.interrupt?t:O):n(z)}function y(z){return z===45?(e.consume(z),r.interrupt?t:O):n(z)}function C(z){const oe="CDATA[";return z===oe.charCodeAt(c++)?(e.consume(z),c===oe.length?r.interrupt?t:$:C):n(z)}function S(z){return Xn(z)?(e.consume(z),u=String.fromCharCode(z),v):n(z)}function v(z){if(z===null||z===47||z===62||Ut(z)){const oe=z===47,xe=u.toLowerCase();return!oe&&!l&&d2.includes(xe)?(i=1,r.interrupt?t(z):$(z)):Mz.includes(u.toLowerCase())?(i=6,oe?(e.consume(z),_):r.interrupt?t(z):$(z)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(z):l?E(z):x(z))}return z===45||Gn(z)?(e.consume(z),u+=String.fromCharCode(z),v):n(z)}function _(z){return z===62?(e.consume(z),r.interrupt?t:$):n(z)}function E(z){return xt(z)?(e.consume(z),E):F(z)}function x(z){return z===47?(e.consume(z),F):z===58||z===95||Xn(z)?(e.consume(z),T):xt(z)?(e.consume(z),x):F(z)}function T(z){return z===45||z===46||z===58||z===95||Gn(z)?(e.consume(z),T):k(z)}function k(z){return z===61?(e.consume(z),N):xt(z)?(e.consume(z),k):x(z)}function N(z){return z===null||z===60||z===61||z===62||z===96?n(z):z===34||z===39?(e.consume(z),d=z,L):xt(z)?(e.consume(z),N):R(z)}function L(z){return z===d?(e.consume(z),d=null,M):z===null||Je(z)?n(z):(e.consume(z),L)}function R(z){return z===null||z===34||z===39||z===47||z===60||z===61||z===62||z===96||Ut(z)?k(z):(e.consume(z),R)}function M(z){return z===47||z===62||xt(z)?x(z):n(z)}function F(z){return z===62?(e.consume(z),U):n(z)}function U(z){return z===null||Je(z)?$(z):xt(z)?(e.consume(z),U):n(z)}function $(z){return z===45&&i===2?(e.consume(z),H):z===60&&i===1?(e.consume(z),X):z===62&&i===4?(e.consume(z),q):z===63&&i===3?(e.consume(z),O):z===93&&i===5?(e.consume(z),j):Je(z)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Fz,Z,P)(z)):z===null||Je(z)?(e.exit("htmlFlowData"),P(z)):(e.consume(z),$)}function P(z){return e.check(Pz,V,Z)(z)}function V(z){return e.enter("lineEnding"),e.consume(z),e.exit("lineEnding"),te}function te(z){return z===null||Je(z)?P(z):(e.enter("htmlFlowData"),$(z))}function H(z){return z===45?(e.consume(z),O):$(z)}function X(z){return z===47?(e.consume(z),u="",K):$(z)}function K(z){if(z===62){const oe=u.toLowerCase();return d2.includes(oe)?(e.consume(z),q):$(z)}return Xn(z)&&u.length<8?(e.consume(z),u+=String.fromCharCode(z),K):$(z)}function j(z){return z===93?(e.consume(z),O):$(z)}function O(z){return z===62?(e.consume(z),q):z===45&&i===2?(e.consume(z),O):$(z)}function q(z){return z===null||Je(z)?(e.exit("htmlFlowData"),Z(z)):(e.consume(z),q)}function Z(z){return e.exit("htmlFlow"),t(z)}}function Hz(e,t,n){const r=this;return i;function i(u){return Je(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),l):n(u)}function l(u){return r.parser.lazy[r.now().line]?n(u):t(u)}}function zz(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Cu,t,n)}}const $z={name:"htmlText",tokenize:Gz};function Gz(e,t,n){const r=this;let i,l,u;return c;function c(O){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(O),d}function d(O){return O===33?(e.consume(O),h):O===47?(e.consume(O),k):O===63?(e.consume(O),x):Xn(O)?(e.consume(O),R):n(O)}function h(O){return O===45?(e.consume(O),m):O===91?(e.consume(O),l=0,C):Xn(O)?(e.consume(O),E):n(O)}function m(O){return O===45?(e.consume(O),y):n(O)}function p(O){return O===null?n(O):O===45?(e.consume(O),b):Je(O)?(u=p,X(O)):(e.consume(O),p)}function b(O){return O===45?(e.consume(O),y):p(O)}function y(O){return O===62?H(O):O===45?b(O):p(O)}function C(O){const q="CDATA[";return O===q.charCodeAt(l++)?(e.consume(O),l===q.length?S:C):n(O)}function S(O){return O===null?n(O):O===93?(e.consume(O),v):Je(O)?(u=S,X(O)):(e.consume(O),S)}function v(O){return O===93?(e.consume(O),_):S(O)}function _(O){return O===62?H(O):O===93?(e.consume(O),_):S(O)}function E(O){return O===null||O===62?H(O):Je(O)?(u=E,X(O)):(e.consume(O),E)}function x(O){return O===null?n(O):O===63?(e.consume(O),T):Je(O)?(u=x,X(O)):(e.consume(O),x)}function T(O){return O===62?H(O):x(O)}function k(O){return Xn(O)?(e.consume(O),N):n(O)}function N(O){return O===45||Gn(O)?(e.consume(O),N):L(O)}function L(O){return Je(O)?(u=L,X(O)):xt(O)?(e.consume(O),L):H(O)}function R(O){return O===45||Gn(O)?(e.consume(O),R):O===47||O===62||Ut(O)?M(O):n(O)}function M(O){return O===47?(e.consume(O),H):O===58||O===95||Xn(O)?(e.consume(O),F):Je(O)?(u=M,X(O)):xt(O)?(e.consume(O),M):H(O)}function F(O){return O===45||O===46||O===58||O===95||Gn(O)?(e.consume(O),F):U(O)}function U(O){return O===61?(e.consume(O),$):Je(O)?(u=U,X(O)):xt(O)?(e.consume(O),U):M(O)}function $(O){return O===null||O===60||O===61||O===62||O===96?n(O):O===34||O===39?(e.consume(O),i=O,P):Je(O)?(u=$,X(O)):xt(O)?(e.consume(O),$):(e.consume(O),V)}function P(O){return O===i?(e.consume(O),i=void 0,te):O===null?n(O):Je(O)?(u=P,X(O)):(e.consume(O),P)}function V(O){return O===null||O===34||O===39||O===60||O===61||O===96?n(O):O===47||O===62||Ut(O)?M(O):(e.consume(O),V)}function te(O){return O===47||O===62||Ut(O)?M(O):n(O)}function H(O){return O===62?(e.consume(O),e.exit("htmlTextData"),e.exit("htmlText"),t):n(O)}function X(O){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),K}function K(O){return xt(O)?Nt(e,j,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):j(O)}function j(O){return e.enter("htmlTextData"),u(O)}}const Bv={name:"labelEnd",resolveAll:Yz,resolveTo:Kz,tokenize:Xz},qz={tokenize:Zz},Vz={tokenize:Qz},Wz={tokenize:Jz};function Yz(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&Cr(e,0,e.length,n),e}function Kz(e,t){let n=e.length,r=0,i,l,u,c;for(;n--;)if(i=e[n][1],l){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(u){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(l=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(u=n);const d={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},h={type:"label",start:{...e[l][1].start},end:{...e[u][1].end}},m={type:"labelText",start:{...e[l+r+2][1].end},end:{...e[u-2][1].start}};return c=[["enter",d,t],["enter",h,t]],c=Mr(c,e.slice(l+1,l+r+3)),c=Mr(c,[["enter",m,t]]),c=Mr(c,Xf(t.parser.constructs.insideSpan.null,e.slice(l+r+4,u-3),t)),c=Mr(c,[["exit",m,t],e[u-2],e[u-1],["exit",h,t]]),c=Mr(c,e.slice(u+1)),c=Mr(c,[["exit",d,t]]),Cr(e,l,e.length,c),e}function Xz(e,t,n){const r=this;let i=r.events.length,l,u;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){l=r.events[i][1];break}return c;function c(b){return l?l._inactive?p(b):(u=r.parser.defined.includes(Wr(r.sliceSerialize({start:l.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(b),e.exit("labelMarker"),e.exit("labelEnd"),d):n(b)}function d(b){return b===40?e.attempt(qz,m,u?m:p)(b):b===91?e.attempt(Vz,m,u?h:p)(b):u?m(b):p(b)}function h(b){return e.attempt(Wz,m,p)(b)}function m(b){return t(b)}function p(b){return l._balanced=!0,n(b)}}function Zz(e,t,n){return r;function r(p){return e.enter("resource"),e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),i}function i(p){return Ut(p)?Pc(e,l)(p):l(p)}function l(p){return p===41?m(p):sO(e,u,c,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function u(p){return Ut(p)?Pc(e,d)(p):m(p)}function c(p){return n(p)}function d(p){return p===34||p===39||p===40?lO(e,h,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):m(p)}function h(p){return Ut(p)?Pc(e,m)(p):m(p)}function m(p){return p===41?(e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),e.exit("resource"),t):n(p)}}function Qz(e,t,n){const r=this;return i;function i(c){return oO.call(r,e,l,u,"reference","referenceMarker","referenceString")(c)}function l(c){return r.parser.defined.includes(Wr(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(c):n(c)}function u(c){return n(c)}}function Jz(e,t,n){return r;function r(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),i}function i(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),t):n(l)}}const e$={name:"labelStartImage",resolveAll:Bv.resolveAll,tokenize:t$};function t$(e,t,n){const r=this;return i;function i(c){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(c),e.exit("labelImageMarker"),l}function l(c){return c===91?(e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelImage"),u):n(c)}function u(c){return c===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(c):t(c)}}const n$={name:"labelStartLink",resolveAll:Bv.resolveAll,tokenize:r$};function r$(e,t,n){const r=this;return i;function i(u){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelLink"),l}function l(u){return u===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(u):t(u)}}const ub={name:"lineEnding",tokenize:a$};function a$(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Nt(e,t,"linePrefix")}}const Bh={name:"thematicBreak",tokenize:i$};function i$(e,t,n){let r=0,i;return l;function l(h){return e.enter("thematicBreak"),u(h)}function u(h){return i=h,c(h)}function c(h){return h===i?(e.enter("thematicBreakSequence"),d(h)):r>=3&&(h===null||Je(h))?(e.exit("thematicBreak"),t(h)):n(h)}function d(h){return h===i?(e.consume(h),r++,d):(e.exit("thematicBreakSequence"),xt(h)?Nt(e,c,"whitespace")(h):c(h))}}const sr={continuation:{tokenize:c$},exit:d$,name:"list",tokenize:l$},s$={partial:!0,tokenize:h$},o$={partial:!0,tokenize:u$};function l$(e,t,n){const r=this,i=r.events[r.events.length-1];let l=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,u=0;return c;function c(y){const C=r.containerState.type||(y===42||y===43||y===45?"listUnordered":"listOrdered");if(C==="listUnordered"?!r.containerState.marker||y===r.containerState.marker:_0(y)){if(r.containerState.type||(r.containerState.type=C,e.enter(C,{_container:!0})),C==="listUnordered")return e.enter("listItemPrefix"),y===42||y===45?e.check(Bh,n,h)(y):h(y);if(!r.interrupt||y===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),d(y)}return n(y)}function d(y){return _0(y)&&++u<10?(e.consume(y),d):(!r.interrupt||u<2)&&(r.containerState.marker?y===r.containerState.marker:y===41||y===46)?(e.exit("listItemValue"),h(y)):n(y)}function h(y){return e.enter("listItemMarker"),e.consume(y),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||y,e.check(Cu,r.interrupt?n:m,e.attempt(s$,b,p))}function m(y){return r.containerState.initialBlankLine=!0,l++,b(y)}function p(y){return xt(y)?(e.enter("listItemPrefixWhitespace"),e.consume(y),e.exit("listItemPrefixWhitespace"),b):n(y)}function b(y){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(y)}}function c$(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Cu,i,l);function i(c){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Nt(e,t,"listItemIndent",r.containerState.size+1)(c)}function l(c){return r.containerState.furtherBlankLines||!xt(c)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,u(c)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(o$,t,u)(c))}function u(c){return r.containerState._closeFlow=!0,r.interrupt=void 0,Nt(e,e.attempt(sr,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c)}}function u$(e,t,n){const r=this;return Nt(e,i,"listItemIndent",r.containerState.size+1);function i(l){const u=r.events[r.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===r.containerState.size?t(l):n(l)}}function d$(e){e.exit(this.containerState.type)}function h$(e,t,n){const r=this;return Nt(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(l){const u=r.events[r.events.length-1];return!xt(l)&&u&&u[1].type==="listItemPrefixWhitespace"?t(l):n(l)}}const h2={name:"setextUnderline",resolveTo:f$,tokenize:p$};function f$(e,t){let n=e.length,r,i,l;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!l&&e[n][1].type==="definition"&&(l=n);const u={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",l?(e.splice(i,0,["enter",u,t]),e.splice(l+1,0,["exit",e[r][1],t]),e[r][1].end={...e[l][1].end}):e[r][1]=u,e.push(["exit",u,t]),e}function p$(e,t,n){const r=this;let i;return l;function l(h){let m=r.events.length,p;for(;m--;)if(r.events[m][1].type!=="lineEnding"&&r.events[m][1].type!=="linePrefix"&&r.events[m][1].type!=="content"){p=r.events[m][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||p)?(e.enter("setextHeadingLine"),i=h,u(h)):n(h)}function u(h){return e.enter("setextHeadingLineSequence"),c(h)}function c(h){return h===i?(e.consume(h),c):(e.exit("setextHeadingLineSequence"),xt(h)?Nt(e,d,"lineSuffix")(h):d(h))}function d(h){return h===null||Je(h)?(e.exit("setextHeadingLine"),t(h)):n(h)}}const m$={tokenize:g$};function g$(e){const t=this,n=e.attempt(Cu,r,e.attempt(this.parser.constructs.flowInitial,i,Nt(e,e.attempt(this.parser.constructs.flow,i,e.attempt(_z,i)),"linePrefix")));return n;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const b$={resolveAll:uO()},v$=cO("string"),y$=cO("text");function cO(e){return{resolveAll:uO(e==="text"?E$:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],l=n.attempt(i,u,c);return u;function u(m){return h(m)?l(m):c(m)}function c(m){if(m===null){n.consume(m);return}return n.enter("data"),n.consume(m),d}function d(m){return h(m)?(n.exit("data"),l(m)):(n.consume(m),d)}function h(m){if(m===null)return!0;const p=i[m];let b=-1;if(p)for(;++b<p.length;){const y=p[b];if(!y.previous||y.previous.call(r,r.previous))return!0}return!1}}}function uO(e){return t;function t(n,r){let i=-1,l;for(;++i<=n.length;)l===void 0?n[i]&&n[i][1].type==="data"&&(l=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==l+2&&(n[l][1].end=n[i-1][1].end,n.splice(l+2,i-l-2),i=l+2),l=void 0);return e?e(n,r):n}}function E$(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let l=i.length,u=-1,c=0,d;for(;l--;){const h=i[l];if(typeof h=="string"){for(u=h.length;h.charCodeAt(u-1)===32;)c++,u--;if(u)break;u=-1}else if(h===-2)d=!0,c++;else if(h!==-1){l++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(c=0),c){const h={type:n===e.length||d||c<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?u:r.start._bufferIndex+u,_index:r.start._index+l,line:r.end.line,column:r.end.column-c,offset:r.end.offset-c},end:{...r.end}};r.end={...h.start},r.start.offset===r.end.offset?Object.assign(r,h):(e.splice(n,0,["enter",h,t],["exit",h,t]),n+=2)}n++}return e}const _$={42:sr,43:sr,45:sr,48:sr,49:sr,50:sr,51:sr,52:sr,53:sr,54:sr,55:sr,56:sr,57:sr,62:nO},x$={91:Tz},S$={[-2]:cb,[-1]:cb,32:cb},C$={35:Iz,42:Bh,45:[h2,Bh],60:jz,61:h2,95:Bh,96:u2,126:u2},w$={38:aO,92:rO},T$={[-5]:ub,[-4]:ub,[-3]:ub,33:e$,38:aO,42:x0,60:[nz,$z],91:n$,92:[kz,rO],93:Bv,95:x0,96:mz},A$={null:[x0,b$]},N$={null:[42,95]},R$={null:[]},k$=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:N$,contentInitial:x$,disable:R$,document:_$,flow:C$,flowInitial:S$,insideSpan:A$,string:w$,text:T$},Symbol.toStringTag,{value:"Module"}));function D$(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},l=[];let u=[],c=[];const d={attempt:L(k),check:L(N),consume:E,enter:x,exit:T,interrupt:L(N,{interrupt:!0})},h={code:null,containerState:{},defineSkip:S,events:[],now:C,parser:e,previous:null,sliceSerialize:b,sliceStream:y,write:p};let m=t.tokenize.call(h,d);return t.resolveAll&&l.push(t),h;function p(U){return u=Mr(u,U),v(),u[u.length-1]!==null?[]:(R(t,0),h.events=Xf(l,h.events,h),h.events)}function b(U,$){return O$(y(U),$)}function y(U){return I$(u,U)}function C(){const{_bufferIndex:U,_index:$,line:P,column:V,offset:te}=r;return{_bufferIndex:U,_index:$,line:P,column:V,offset:te}}function S(U){i[U.line]=U.column,F()}function v(){let U;for(;r._index<u.length;){const $=u[r._index];if(typeof $=="string")for(U=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===U&&r._bufferIndex<$.length;)_($.charCodeAt(r._bufferIndex));else _($)}}function _(U){m=m(U)}function E(U){Je(U)?(r.line++,r.column=1,r.offset+=U===-3?2:1,F()):U!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===u[r._index].length&&(r._bufferIndex=-1,r._index++)),h.previous=U}function x(U,$){const P=$||{};return P.type=U,P.start=C(),h.events.push(["enter",P,h]),c.push(P),P}function T(U){const $=c.pop();return $.end=C(),h.events.push(["exit",$,h]),$}function k(U,$){R(U,$.from)}function N(U,$){$.restore()}function L(U,$){return P;function P(V,te,H){let X,K,j,O;return Array.isArray(V)?Z(V):"tokenize"in V?Z([V]):q(V);function q(fe){return J;function J(G){const pe=G!==null&&fe[G],be=G!==null&&fe.null,me=[...Array.isArray(pe)?pe:pe?[pe]:[],...Array.isArray(be)?be:be?[be]:[]];return Z(me)(G)}}function Z(fe){return X=fe,K=0,fe.length===0?H:z(fe[K])}function z(fe){return J;function J(G){return O=M(),j=fe,fe.partial||(h.currentConstruct=fe),fe.name&&h.parser.constructs.disable.null.includes(fe.name)?xe():fe.tokenize.call($?Object.assign(Object.create(h),$):h,d,oe,xe)(G)}}function oe(fe){return U(j,O),te}function xe(fe){return O.restore(),++K<X.length?z(X[K]):H}}}function R(U,$){U.resolveAll&&!l.includes(U)&&l.push(U),U.resolve&&Cr(h.events,$,h.events.length-$,U.resolve(h.events.slice($),h)),U.resolveTo&&(h.events=U.resolveTo(h.events,h))}function M(){const U=C(),$=h.previous,P=h.currentConstruct,V=h.events.length,te=Array.from(c);return{from:V,restore:H};function H(){r=U,h.previous=$,h.currentConstruct=P,h.events.length=V,c=te,F()}}function F(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function I$(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,l=t.end._bufferIndex;let u;if(n===i)u=[e[n].slice(r,l)];else{if(u=e.slice(n,i),r>-1){const c=u[0];typeof c=="string"?u[0]=c.slice(r):u.shift()}l>0&&u.push(e[i].slice(0,l))}return u}function O$(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const l=e[n];let u;if(typeof l=="string")u=l;else switch(l){case-5:{u="\r";break}case-4:{u=`
421
421
  `;break}case-3:{u=`\r
422
422
  `;break}case-2:{u=t?" ":" ";break}case-1:{if(!t&&i)continue;u=" ";break}default:u=String.fromCharCode(l)}i=l===-2,r.push(u)}return r.join("")}function L$(e){const r={constructs:eO([k$,...(e||{}).extensions||[]]),content:i(KH),defined:[],document:i(ZH),flow:i(m$),lazy:{},string:i(v$),text:i(y$)};return r;function i(l){return u;function u(c){return D$(r,l,c)}}}function M$(e){for(;!iO(e););return e}const f2=/[\0\t\n\r]/g;function j$(){let e=1,t="",n=!0,r;return i;function i(l,u,c){const d=[];let h,m,p,b,y;for(l=t+(typeof l=="string"?l.toString():new TextDecoder(u||void 0).decode(l)),p=0,t="",n&&(l.charCodeAt(0)===65279&&p++,n=void 0);p<l.length;){if(f2.lastIndex=p,h=f2.exec(l),b=h&&h.index!==void 0?h.index:l.length,y=l.charCodeAt(b),!h){t=l.slice(p);break}if(y===10&&p===b&&r)d.push(-3),r=void 0;else switch(r&&(d.push(-5),r=void 0),p<b&&(d.push(l.slice(p,b)),e+=b-p),y){case 0:{d.push(65533),e++;break}case 9:{for(m=Math.ceil(e/4)*4,d.push(-2);e++<m;)d.push(-1);break}case 10:{d.push(-4),e=1;break}default:r=!0,e=1}p=b+1}return c&&(r&&d.push(-5),t&&d.push(t),d.push(null)),d}}const F$=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function P$(e){return e.replace(F$,B$)}function B$(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),l=i===120||i===88;return tO(n.slice(l?2:1),l?16:10)}return au(n)||e}const dO={}.hasOwnProperty;function U$(e,t,n){return typeof t!="string"&&(n=t,t=void 0),H$(n)(M$(L$(n).document().write(j$()(e,t,!0))))}function H$(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(ct),autolinkProtocol:M,autolinkEmail:M,atxHeading:l(Le),blockQuote:l(be),characterEscape:M,characterReference:M,codeFenced:l(me),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:l(me,u),codeText:l(le,u),codeTextData:M,data:M,codeFlowValue:M,definition:l(Ce),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:l(ae),hardBreakEscape:l(Be),hardBreakTrailing:l(Be),htmlFlow:l(_e,u),htmlFlowData:M,htmlText:l(_e,u),htmlTextData:M,image:l(Rt),label:u,link:l(ct),listItem:l(Zt),listItemValue:b,listOrdered:l(Ct,p),listUnordered:l(Ct),paragraph:l(kt),reference:z,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:l(Le),strong:l(Qt),thematicBreak:l(st)},exit:{atxHeading:d(),atxHeadingSequence:k,autolink:d(),autolinkEmail:pe,autolinkProtocol:G,blockQuote:d(),characterEscapeValue:F,characterReferenceMarkerHexadecimal:xe,characterReferenceMarkerNumeric:xe,characterReferenceValue:fe,characterReference:J,codeFenced:d(v),codeFencedFence:S,codeFencedFenceInfo:y,codeFencedFenceMeta:C,codeFlowValue:F,codeIndented:d(_),codeText:d(te),codeTextData:F,data:F,definition:d(),definitionDestinationString:T,definitionLabelString:E,definitionTitleString:x,emphasis:d(),hardBreakEscape:d($),hardBreakTrailing:d($),htmlFlow:d(P),htmlFlowData:F,htmlText:d(V),htmlTextData:F,image:d(X),label:j,labelText:K,lineEnding:U,link:d(H),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:oe,resourceDestinationString:O,resourceTitleString:q,resource:Z,setextHeading:d(R),setextHeadingLineSequence:L,setextHeadingText:N,strong:d(),thematicBreak:d()}};hO(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(ye){let Ne={type:"root",children:[]};const Ge={stack:[Ne],tokenStack:[],config:t,enter:c,exit:h,buffer:u,resume:m,data:n},Qe=[];let ht=-1;for(;++ht<ye.length;)if(ye[ht][1].type==="listOrdered"||ye[ht][1].type==="listUnordered")if(ye[ht][0]==="enter")Qe.push(ht);else{const rn=Qe.pop();ht=i(ye,rn,ht)}for(ht=-1;++ht<ye.length;){const rn=t[ye[ht][0]];dO.call(rn,ye[ht][1].type)&&rn[ye[ht][1].type].call(Object.assign({sliceSerialize:ye[ht][2].sliceSerialize},Ge),ye[ht][1])}if(Ge.tokenStack.length>0){const rn=Ge.tokenStack[Ge.tokenStack.length-1];(rn[1]||p2).call(Ge,void 0,rn[0])}for(Ne.position={start:wi(ye.length>0?ye[0][1].start:{line:1,column:1,offset:0}),end:wi(ye.length>0?ye[ye.length-2][1].end:{line:1,column:1,offset:0})},ht=-1;++ht<t.transforms.length;)Ne=t.transforms[ht](Ne)||Ne;return Ne}function i(ye,Ne,Ge){let Qe=Ne-1,ht=-1,rn=!1,pt,pn,Wn,ke;for(;++Qe<=Ge;){const He=ye[Qe];switch(He[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{He[0]==="enter"?ht++:ht--,ke=void 0;break}case"lineEndingBlank":{He[0]==="enter"&&(pt&&!ke&&!ht&&!Wn&&(Wn=Qe),ke=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ke=void 0}if(!ht&&He[0]==="enter"&&He[1].type==="listItemPrefix"||ht===-1&&He[0]==="exit"&&(He[1].type==="listUnordered"||He[1].type==="listOrdered")){if(pt){let ft=Qe;for(pn=void 0;ft--;){const rt=ye[ft];if(rt[1].type==="lineEnding"||rt[1].type==="lineEndingBlank"){if(rt[0]==="exit")continue;pn&&(ye[pn][1].type="lineEndingBlank",rn=!0),rt[1].type="lineEnding",pn=ft}else if(!(rt[1].type==="linePrefix"||rt[1].type==="blockQuotePrefix"||rt[1].type==="blockQuotePrefixWhitespace"||rt[1].type==="blockQuoteMarker"||rt[1].type==="listItemIndent"))break}Wn&&(!pn||Wn<pn)&&(pt._spread=!0),pt.end=Object.assign({},pn?ye[pn][1].start:He[1].end),ye.splice(pn||Qe,0,["exit",pt,He[2]]),Qe++,Ge++}if(He[1].type==="listItemPrefix"){const ft={type:"listItem",_spread:!1,start:Object.assign({},He[1].start),end:void 0};pt=ft,ye.splice(Qe,0,["enter",ft,He[2]]),Qe++,Ge++,Wn=void 0,ke=!0}}}return ye[Ne][1]._spread=rn,Ge}function l(ye,Ne){return Ge;function Ge(Qe){c.call(this,ye(Qe),Qe),Ne&&Ne.call(this,Qe)}}function u(){this.stack.push({type:"fragment",children:[]})}function c(ye,Ne,Ge){this.stack[this.stack.length-1].children.push(ye),this.stack.push(ye),this.tokenStack.push([Ne,Ge||void 0]),ye.position={start:wi(Ne.start),end:void 0}}function d(ye){return Ne;function Ne(Ge){ye&&ye.call(this,Ge),h.call(this,Ge)}}function h(ye,Ne){const Ge=this.stack.pop(),Qe=this.tokenStack.pop();if(Qe)Qe[0].type!==ye.type&&(Ne?Ne.call(this,ye,Qe[0]):(Qe[1]||p2).call(this,ye,Qe[0]));else throw new Error("Cannot close `"+ye.type+"` ("+Fc({start:ye.start,end:ye.end})+"): it’s not open");Ge.position.end=wi(ye.end)}function m(){return Pv(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function b(ye){if(this.data.expectingFirstListItemValue){const Ne=this.stack[this.stack.length-2];Ne.start=Number.parseInt(this.sliceSerialize(ye),10),this.data.expectingFirstListItemValue=void 0}}function y(){const ye=this.resume(),Ne=this.stack[this.stack.length-1];Ne.lang=ye}function C(){const ye=this.resume(),Ne=this.stack[this.stack.length-1];Ne.meta=ye}function S(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){const ye=this.resume(),Ne=this.stack[this.stack.length-1];Ne.value=ye.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function _(){const ye=this.resume(),Ne=this.stack[this.stack.length-1];Ne.value=ye.replace(/(\r?\n|\r)$/g,"")}function E(ye){const Ne=this.resume(),Ge=this.stack[this.stack.length-1];Ge.label=Ne,Ge.identifier=Wr(this.sliceSerialize(ye)).toLowerCase()}function x(){const ye=this.resume(),Ne=this.stack[this.stack.length-1];Ne.title=ye}function T(){const ye=this.resume(),Ne=this.stack[this.stack.length-1];Ne.url=ye}function k(ye){const Ne=this.stack[this.stack.length-1];if(!Ne.depth){const Ge=this.sliceSerialize(ye).length;Ne.depth=Ge}}function N(){this.data.setextHeadingSlurpLineEnding=!0}function L(ye){const Ne=this.stack[this.stack.length-1];Ne.depth=this.sliceSerialize(ye).codePointAt(0)===61?1:2}function R(){this.data.setextHeadingSlurpLineEnding=void 0}function M(ye){const Ge=this.stack[this.stack.length-1].children;let Qe=Ge[Ge.length-1];(!Qe||Qe.type!=="text")&&(Qe=lr(),Qe.position={start:wi(ye.start),end:void 0},Ge.push(Qe)),this.stack.push(Qe)}function F(ye){const Ne=this.stack.pop();Ne.value+=this.sliceSerialize(ye),Ne.position.end=wi(ye.end)}function U(ye){const Ne=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ge=Ne.children[Ne.children.length-1];Ge.position.end=wi(ye.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(Ne.type)&&(M.call(this,ye),F.call(this,ye))}function $(){this.data.atHardBreak=!0}function P(){const ye=this.resume(),Ne=this.stack[this.stack.length-1];Ne.value=ye}function V(){const ye=this.resume(),Ne=this.stack[this.stack.length-1];Ne.value=ye}function te(){const ye=this.resume(),Ne=this.stack[this.stack.length-1];Ne.value=ye}function H(){const ye=this.stack[this.stack.length-1];if(this.data.inReference){const Ne=this.data.referenceType||"shortcut";ye.type+="Reference",ye.referenceType=Ne,delete ye.url,delete ye.title}else delete ye.identifier,delete ye.label;this.data.referenceType=void 0}function X(){const ye=this.stack[this.stack.length-1];if(this.data.inReference){const Ne=this.data.referenceType||"shortcut";ye.type+="Reference",ye.referenceType=Ne,delete ye.url,delete ye.title}else delete ye.identifier,delete ye.label;this.data.referenceType=void 0}function K(ye){const Ne=this.sliceSerialize(ye),Ge=this.stack[this.stack.length-2];Ge.label=P$(Ne),Ge.identifier=Wr(Ne).toLowerCase()}function j(){const ye=this.stack[this.stack.length-1],Ne=this.resume(),Ge=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ge.type==="link"){const Qe=ye.children;Ge.children=Qe}else Ge.alt=Ne}function O(){const ye=this.resume(),Ne=this.stack[this.stack.length-1];Ne.url=ye}function q(){const ye=this.resume(),Ne=this.stack[this.stack.length-1];Ne.title=ye}function Z(){this.data.inReference=void 0}function z(){this.data.referenceType="collapsed"}function oe(ye){const Ne=this.resume(),Ge=this.stack[this.stack.length-1];Ge.label=Ne,Ge.identifier=Wr(this.sliceSerialize(ye)).toLowerCase(),this.data.referenceType="full"}function xe(ye){this.data.characterReferenceType=ye.type}function fe(ye){const Ne=this.sliceSerialize(ye),Ge=this.data.characterReferenceType;let Qe;Ge?(Qe=tO(Ne,Ge==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Qe=au(Ne);const ht=this.stack[this.stack.length-1];ht.value+=Qe}function J(ye){const Ne=this.stack.pop();Ne.position.end=wi(ye.end)}function G(ye){F.call(this,ye);const Ne=this.stack[this.stack.length-1];Ne.url=this.sliceSerialize(ye)}function pe(ye){F.call(this,ye);const Ne=this.stack[this.stack.length-1];Ne.url="mailto:"+this.sliceSerialize(ye)}function be(){return{type:"blockquote",children:[]}}function me(){return{type:"code",lang:null,meta:null,value:""}}function le(){return{type:"inlineCode",value:""}}function Ce(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ae(){return{type:"emphasis",children:[]}}function Le(){return{type:"heading",depth:0,children:[]}}function Be(){return{type:"break"}}function _e(){return{type:"html",value:""}}function Rt(){return{type:"image",title:null,url:"",alt:null}}function ct(){return{type:"link",title:null,url:"",children:[]}}function Ct(ye){return{type:"list",ordered:ye.type==="listOrdered",start:null,spread:ye._spread,children:[]}}function Zt(ye){return{type:"listItem",spread:ye._spread,checked:null,children:[]}}function kt(){return{type:"paragraph",children:[]}}function Qt(){return{type:"strong",children:[]}}function lr(){return{type:"text",value:""}}function st(){return{type:"thematicBreak"}}}function wi(e){return{line:e.line,column:e.column,offset:e.offset}}function hO(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?hO(e,r):z$(e,r)}}function z$(e,t){let n;for(n in t)if(dO.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function p2(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Fc({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Fc({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Fc({start:t.start,end:t.end})+") is still open")}function fO(e){const t=this;t.parser=n;function n(r){return U$(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function $$(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function G$(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
package/static/index.html CHANGED
@@ -8,7 +8,7 @@
8
8
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
9
9
  <link href="https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap" rel="stylesheet">
10
10
  <title>GAIT - Agent-Native Source Control</title>
11
- <script type="module" crossorigin src="/assets/index-Bfw6n23R.js"></script>
11
+ <script type="module" crossorigin src="/assets/index-DkPOXMdu.js"></script>
12
12
  <link rel="stylesheet" crossorigin href="/assets/index-5KUVUaRG.css">
13
13
  </head>
14
14
  <body class="font-inter">