@kimuson/claude-code-viewer 0.4.2-beta.2 → 0.4.3

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.
@@ -0,0 +1,105 @@
1
+ import{c as ne,s as Is,Q as Ls,r as l,j as a,gq as it,gI as jt,gp as F,gL as Er,gM as Ws,gN as Fs,gr as U,gt as Me,gO as sn,T as N,gP as $s,B as Bs,a as an,gQ as Yn,b as Hs,gC as Vs,gw as Ys,gB as zs,p as qs,gk as Us,gR as Xs,gS as Gs,gT as Ks,gU as Qs}from"./index-COLo22uo.js";/**
2
+ * @license lucide-react v0.548.0 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */const Js=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Nr=ne("check",Js);/**
7
+ * @license lucide-react v0.548.0 - ISC
8
+ *
9
+ * This source code is licensed under the ISC license.
10
+ * See the LICENSE file in the root directory of this source tree.
11
+ */const Zs=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],bn=ne("chevron-down",Zs);/**
12
+ * @license lucide-react v0.548.0 - ISC
13
+ *
14
+ * This source code is licensed under the ISC license.
15
+ * See the LICENSE file in the root directory of this source tree.
16
+ */const ei=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ti=ne("chevron-right",ei);/**
17
+ * @license lucide-react v0.548.0 - ISC
18
+ *
19
+ * This source code is licensed under the ISC license.
20
+ * See the LICENSE file in the root directory of this source tree.
21
+ */const ni=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],ri=ne("chevron-up",ni);/**
22
+ * @license lucide-react v0.548.0 - ISC
23
+ *
24
+ * This source code is licensed under the ISC license.
25
+ * See the LICENSE file in the root directory of this source tree.
26
+ */const oi=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],si=ne("circle-check",oi);/**
27
+ * @license lucide-react v0.548.0 - ISC
28
+ *
29
+ * This source code is licensed under the ISC license.
30
+ * See the LICENSE file in the root directory of this source tree.
31
+ */const ii=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],ai=ne("circle-x",ii);/**
32
+ * @license lucide-react v0.548.0 - ISC
33
+ *
34
+ * This source code is licensed under the ISC license.
35
+ * See the LICENSE file in the root directory of this source tree.
36
+ */const ci=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],Df=ne("folder",ci);/**
37
+ * @license lucide-react v0.548.0 - ISC
38
+ *
39
+ * This source code is licensed under the ISC license.
40
+ * See the LICENSE file in the root directory of this source tree.
41
+ */const li=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],ui=ne("info",li);/**
42
+ * @license lucide-react v0.548.0 - ISC
43
+ *
44
+ * This source code is licensed under the ISC license.
45
+ * See the LICENSE file in the root directory of this source tree.
46
+ */const di=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],fi=ne("loader-circle",di);/**
47
+ * @license lucide-react v0.548.0 - ISC
48
+ *
49
+ * This source code is licensed under the ISC license.
50
+ * See the LICENSE file in the root directory of this source tree.
51
+ */const mi=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],If=ne("plus",mi);/**
52
+ * @license lucide-react v0.548.0 - ISC
53
+ *
54
+ * This source code is licensed under the ISC license.
55
+ * See the LICENSE file in the root directory of this source tree.
56
+ */const hi=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],pi=ne("settings",hi);/**
57
+ * @license lucide-react v0.548.0 - ISC
58
+ *
59
+ * This source code is licensed under the ISC license.
60
+ * See the LICENSE file in the root directory of this source tree.
61
+ */const gi=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],vi=ne("x",gi);function Lf(e,t){return Is(e,Ls)}function M(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function xi(e,t){const n=l.createContext(t),r=s=>{const{children:i,...c}=s,u=l.useMemo(()=>c,Object.values(c));return a.jsx(n.Provider,{value:u,children:i})};r.displayName=e+"Provider";function o(s){const i=l.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function We(e,t=[]){let n=[];function r(s,i){const c=l.createContext(i),u=n.length;n=[...n,i];const d=m=>{const{scope:g,children:p,...v}=m,h=g?.[e]?.[u]||c,x=l.useMemo(()=>v,Object.values(v));return a.jsx(h.Provider,{value:x,children:p})};d.displayName=s+"Provider";function f(m,g){const p=g?.[e]?.[u]||c,v=l.useContext(p);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${m}\` must be used within \`${s}\``)}return[d,f]}const o=()=>{const s=n.map(i=>l.createContext(i));return function(c){const u=c?.[e]||s;return l.useMemo(()=>({[`__scope${e}`]:{...c,[e]:u}}),[c,u])}};return o.scopeName=e,[r,yi(o,...t)]}function yi(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((c,{useScope:u,scopeName:d})=>{const m=u(s)[`__scope${d}`];return{...c,...m}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var wi=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],k=wi.reduce((e,t)=>{const n=it(`Primitive.${t}`),r=l.forwardRef((o,s)=>{const{asChild:i,...c}=o,u=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),a.jsx(u,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function bi(e,t){e&&jt.flushSync(()=>e.dispatchEvent(t))}function Ae(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...n)=>t.current?.(...n),[])}function Ci(e,t=globalThis?.document){const n=Ae(e);l.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Si="DismissableLayer",cn="dismissableLayer.update",Pi="dismissableLayer.pointerDownOutside",Ei="dismissableLayer.focusOutside",zn,Tr=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ot=l.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:c,...u}=e,d=l.useContext(Tr),[f,m]=l.useState(null),g=f?.ownerDocument??globalThis?.document,[,p]=l.useState({}),v=F(t,P=>m(P)),h=Array.from(d.layers),[x]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),w=h.indexOf(x),y=f?h.indexOf(f):-1,b=d.layersWithOutsidePointerEventsDisabled.size>0,C=y>=w,S=Ri(P=>{const j=P.target,I=[...d.branches].some(_=>_.contains(j));!C||I||(o?.(P),i?.(P),P.defaultPrevented||c?.())},g),E=ji(P=>{const j=P.target;[...d.branches].some(_=>_.contains(j))||(s?.(P),i?.(P),P.defaultPrevented||c?.())},g);return Ci(P=>{y===d.layers.size-1&&(r?.(P),!P.defaultPrevented&&c&&(P.preventDefault(),c()))},g),l.useEffect(()=>{if(f)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(zn=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),qn(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=zn)}},[f,g,n,d]),l.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),qn())},[f,d]),l.useEffect(()=>{const P=()=>p({});return document.addEventListener(cn,P),()=>document.removeEventListener(cn,P)},[]),a.jsx(k.div,{...u,ref:v,style:{pointerEvents:b?C?"auto":"none":void 0,...e.style},onFocusCapture:M(e.onFocusCapture,E.onFocusCapture),onBlurCapture:M(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:M(e.onPointerDownCapture,S.onPointerDownCapture)})});Ot.displayName=Si;var Ni="DismissableLayerBranch",Ti=l.forwardRef((e,t)=>{const n=l.useContext(Tr),r=l.useRef(null),o=F(t,r);return l.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),a.jsx(k.div,{...e,ref:o})});Ti.displayName=Ni;function Ri(e,t=globalThis?.document){const n=Ae(e),r=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{const s=c=>{if(c.target&&!r.current){let u=function(){Rr(Pi,n,d,{discrete:!0})};const d={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function ji(e,t=globalThis?.document){const n=Ae(e),r=l.useRef(!1);return l.useEffect(()=>{const o=s=>{s.target&&!r.current&&Rr(Ei,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function qn(){const e=new CustomEvent(cn);document.dispatchEvent(e)}function Rr(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?bi(o,s):o.dispatchEvent(s)}var G=globalThis?.document?l.useLayoutEffect:()=>{},Oi=Er[" useId ".trim().toString()]||(()=>{}),Mi=0;function we(e){const[t,n]=l.useState(Oi());return G(()=>{n(r=>r??String(Mi++))},[e]),t?`radix-${t}`:""}const ki=["top","right","bottom","left"],Ce=Math.min,Z=Math.max,Ct=Math.round,mt=Math.floor,fe=e=>({x:e,y:e}),Ai={left:"right",right:"left",bottom:"top",top:"bottom"},_i={start:"end",end:"start"};function ln(e,t,n){return Z(e,Ce(t,n))}function pe(e,t){return typeof e=="function"?e(t):e}function ge(e){return e.split("-")[0]}function Ke(e){return e.split("-")[1]}function Cn(e){return e==="x"?"y":"x"}function Sn(e){return e==="y"?"height":"width"}const Di=new Set(["top","bottom"]);function de(e){return Di.has(ge(e))?"y":"x"}function Pn(e){return Cn(de(e))}function Ii(e,t,n){n===void 0&&(n=!1);const r=Ke(e),o=Pn(e),s=Sn(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=St(i)),[i,St(i)]}function Li(e){const t=St(e);return[un(e),t,un(t)]}function un(e){return e.replace(/start|end/g,t=>_i[t])}const Un=["left","right"],Xn=["right","left"],Wi=["top","bottom"],Fi=["bottom","top"];function $i(e,t,n){switch(e){case"top":case"bottom":return n?t?Xn:Un:t?Un:Xn;case"left":case"right":return t?Wi:Fi;default:return[]}}function Bi(e,t,n,r){const o=Ke(e);let s=$i(ge(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(un)))),s}function St(e){return e.replace(/left|right|bottom|top/g,t=>Ai[t])}function Hi(e){return{top:0,right:0,bottom:0,left:0,...e}}function jr(e){return typeof e!="number"?Hi(e):{top:e,right:e,bottom:e,left:e}}function Pt(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Gn(e,t,n){let{reference:r,floating:o}=e;const s=de(t),i=Pn(t),c=Sn(i),u=ge(t),d=s==="y",f=r.x+r.width/2-o.width/2,m=r.y+r.height/2-o.height/2,g=r[c]/2-o[c]/2;let p;switch(u){case"top":p={x:f,y:r.y-o.height};break;case"bottom":p={x:f,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:m};break;case"left":p={x:r.x-o.width,y:m};break;default:p={x:r.x,y:r.y}}switch(Ke(t)){case"start":p[i]-=g*(n&&d?-1:1);break;case"end":p[i]+=g*(n&&d?-1:1);break}return p}const Vi=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,c=s.filter(Boolean),u=await(i.isRTL==null?void 0:i.isRTL(t));let d=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:m}=Gn(d,r,u),g=r,p={},v=0;for(let h=0;h<c.length;h++){const{name:x,fn:w}=c[h],{x:y,y:b,data:C,reset:S}=await w({x:f,y:m,initialPlacement:r,placement:g,strategy:o,middlewareData:p,rects:d,platform:i,elements:{reference:e,floating:t}});f=y??f,m=b??m,p={...p,[x]:{...p[x],...C}},S&&v<=50&&(v++,typeof S=="object"&&(S.placement&&(g=S.placement),S.rects&&(d=S.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):S.rects),{x:f,y:m}=Gn(d,g,u)),h=-1)}return{x:f,y:m,placement:g,strategy:o,middlewareData:p}};async function at(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:c,strategy:u}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:m="floating",altBoundary:g=!1,padding:p=0}=pe(t,e),v=jr(p),x=c[g?m==="floating"?"reference":"floating":m],w=Pt(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(x)))==null||n?x:x.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:d,rootBoundary:f,strategy:u})),y=m==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,b=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),C=await(s.isElement==null?void 0:s.isElement(b))?await(s.getScale==null?void 0:s.getScale(b))||{x:1,y:1}:{x:1,y:1},S=Pt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:y,offsetParent:b,strategy:u}):y);return{top:(w.top-S.top+v.top)/C.y,bottom:(S.bottom-w.bottom+v.bottom)/C.y,left:(w.left-S.left+v.left)/C.x,right:(S.right-w.right+v.right)/C.x}}const Yi=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:c,middlewareData:u}=t,{element:d,padding:f=0}=pe(e,t)||{};if(d==null)return{};const m=jr(f),g={x:n,y:r},p=Pn(o),v=Sn(p),h=await i.getDimensions(d),x=p==="y",w=x?"top":"left",y=x?"bottom":"right",b=x?"clientHeight":"clientWidth",C=s.reference[v]+s.reference[p]-g[p]-s.floating[v],S=g[p]-s.reference[p],E=await(i.getOffsetParent==null?void 0:i.getOffsetParent(d));let P=E?E[b]:0;(!P||!await(i.isElement==null?void 0:i.isElement(E)))&&(P=c.floating[b]||s.floating[v]);const j=C/2-S/2,I=P/2-h[v]/2-1,_=Ce(m[w],I),$=Ce(m[y],I),B=_,W=P-h[v]-$,A=P/2-h[v]/2+j,z=ln(B,A,W),O=!u.arrow&&Ke(o)!=null&&A!==z&&s.reference[v]/2-(A<B?_:$)-h[v]/2<0,D=O?A<B?A-B:A-W:0;return{[p]:g[p]+D,data:{[p]:z,centerOffset:A-z-D,...O&&{alignmentOffset:D}},reset:O}}}),zi=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:c,platform:u,elements:d}=t,{mainAxis:f=!0,crossAxis:m=!0,fallbackPlacements:g,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:h=!0,...x}=pe(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const w=ge(o),y=de(c),b=ge(c)===c,C=await(u.isRTL==null?void 0:u.isRTL(d.floating)),S=g||(b||!h?[St(c)]:Li(c)),E=v!=="none";!g&&E&&S.push(...Bi(c,h,v,C));const P=[c,...S],j=await at(t,x),I=[];let _=((r=s.flip)==null?void 0:r.overflows)||[];if(f&&I.push(j[w]),m){const A=Ii(o,i,C);I.push(j[A[0]],j[A[1]])}if(_=[..._,{placement:o,overflows:I}],!I.every(A=>A<=0)){var $,B;const A=((($=s.flip)==null?void 0:$.index)||0)+1,z=P[A];if(z&&(!(m==="alignment"?y!==de(z):!1)||_.every(R=>de(R.placement)===y?R.overflows[0]>0:!0)))return{data:{index:A,overflows:_},reset:{placement:z}};let O=(B=_.filter(D=>D.overflows[0]<=0).sort((D,R)=>D.overflows[1]-R.overflows[1])[0])==null?void 0:B.placement;if(!O)switch(p){case"bestFit":{var W;const D=(W=_.filter(R=>{if(E){const H=de(R.placement);return H===y||H==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(H=>H>0).reduce((H,Q)=>H+Q,0)]).sort((R,H)=>R[1]-H[1])[0])==null?void 0:W[0];D&&(O=D);break}case"initialPlacement":O=c;break}if(o!==O)return{reset:{placement:O}}}return{}}}};function Kn(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Qn(e){return ki.some(t=>e[t]>=0)}const qi=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=pe(e,t);switch(r){case"referenceHidden":{const s=await at(t,{...o,elementContext:"reference"}),i=Kn(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Qn(i)}}}case"escaped":{const s=await at(t,{...o,altBoundary:!0}),i=Kn(s,n.floating);return{data:{escapedOffsets:i,escaped:Qn(i)}}}default:return{}}}}},Or=new Set(["left","top"]);async function Ui(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=ge(n),c=Ke(n),u=de(n)==="y",d=Or.has(i)?-1:1,f=s&&u?-1:1,m=pe(t,e);let{mainAxis:g,crossAxis:p,alignmentAxis:v}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return c&&typeof v=="number"&&(p=c==="end"?v*-1:v),u?{x:p*f,y:g*d}:{x:g*d,y:p*f}}const Xi=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:c}=t,u=await Ui(t,e);return i===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:o+u.x,y:s+u.y,data:{...u,placement:i}}}}},Gi=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:c={fn:x=>{let{x:w,y}=x;return{x:w,y}}},...u}=pe(e,t),d={x:n,y:r},f=await at(t,u),m=de(ge(o)),g=Cn(m);let p=d[g],v=d[m];if(s){const x=g==="y"?"top":"left",w=g==="y"?"bottom":"right",y=p+f[x],b=p-f[w];p=ln(y,p,b)}if(i){const x=m==="y"?"top":"left",w=m==="y"?"bottom":"right",y=v+f[x],b=v-f[w];v=ln(y,v,b)}const h=c.fn({...t,[g]:p,[m]:v});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[g]:s,[m]:i}}}}}},Ki=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:c=0,mainAxis:u=!0,crossAxis:d=!0}=pe(e,t),f={x:n,y:r},m=de(o),g=Cn(m);let p=f[g],v=f[m];const h=pe(c,t),x=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(u){const b=g==="y"?"height":"width",C=s.reference[g]-s.floating[b]+x.mainAxis,S=s.reference[g]+s.reference[b]-x.mainAxis;p<C?p=C:p>S&&(p=S)}if(d){var w,y;const b=g==="y"?"width":"height",C=Or.has(ge(o)),S=s.reference[m]-s.floating[b]+(C&&((w=i.offset)==null?void 0:w[m])||0)+(C?0:x.crossAxis),E=s.reference[m]+s.reference[b]+(C?0:((y=i.offset)==null?void 0:y[m])||0)-(C?x.crossAxis:0);v<S?v=S:v>E&&(v=E)}return{[g]:p,[m]:v}}}},Qi=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:c}=t,{apply:u=()=>{},...d}=pe(e,t),f=await at(t,d),m=ge(o),g=Ke(o),p=de(o)==="y",{width:v,height:h}=s.floating;let x,w;m==="top"||m==="bottom"?(x=m,w=g===(await(i.isRTL==null?void 0:i.isRTL(c.floating))?"start":"end")?"left":"right"):(w=m,x=g==="end"?"top":"bottom");const y=h-f.top-f.bottom,b=v-f.left-f.right,C=Ce(h-f[x],y),S=Ce(v-f[w],b),E=!t.middlewareData.shift;let P=C,j=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(j=b),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(P=y),E&&!g){const _=Z(f.left,0),$=Z(f.right,0),B=Z(f.top,0),W=Z(f.bottom,0);p?j=v-2*(_!==0||$!==0?_+$:Z(f.left,f.right)):P=h-2*(B!==0||W!==0?B+W:Z(f.top,f.bottom))}await u({...t,availableWidth:j,availableHeight:P});const I=await i.getDimensions(c.floating);return v!==I.width||h!==I.height?{reset:{rects:!0}}:{}}}};function Mt(){return typeof window<"u"}function Qe(e){return Mr(e)?(e.nodeName||"").toLowerCase():"#document"}function ee(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function he(e){var t;return(t=(Mr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Mr(e){return Mt()?e instanceof Node||e instanceof ee(e).Node:!1}function oe(e){return Mt()?e instanceof Element||e instanceof ee(e).Element:!1}function me(e){return Mt()?e instanceof HTMLElement||e instanceof ee(e).HTMLElement:!1}function Jn(e){return!Mt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ee(e).ShadowRoot}const Ji=new Set(["inline","contents"]);function dt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=se(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Ji.has(o)}const Zi=new Set(["table","td","th"]);function ea(e){return Zi.has(Qe(e))}const ta=[":popover-open",":modal"];function kt(e){return ta.some(t=>{try{return e.matches(t)}catch{return!1}})}const na=["transform","translate","scale","rotate","perspective"],ra=["transform","translate","scale","rotate","perspective","filter"],oa=["paint","layout","strict","content"];function En(e){const t=Nn(),n=oe(e)?se(e):e;return na.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)||ra.some(r=>(n.willChange||"").includes(r))||oa.some(r=>(n.contain||"").includes(r))}function sa(e){let t=Se(e);for(;me(t)&&!Ue(t);){if(En(t))return t;if(kt(t))return null;t=Se(t)}return null}function Nn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const ia=new Set(["html","body","#document"]);function Ue(e){return ia.has(Qe(e))}function se(e){return ee(e).getComputedStyle(e)}function At(e){return oe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Se(e){if(Qe(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Jn(e)&&e.host||he(e);return Jn(t)?t.host:t}function kr(e){const t=Se(e);return Ue(t)?e.ownerDocument?e.ownerDocument.body:e.body:me(t)&&dt(t)?t:kr(t)}function ct(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=kr(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=ee(o);if(s){const c=dn(i);return t.concat(i,i.visualViewport||[],dt(o)?o:[],c&&n?ct(c):[])}return t.concat(o,ct(o,[],n))}function dn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ar(e){const t=se(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=me(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,c=Ct(n)!==s||Ct(r)!==i;return c&&(n=s,r=i),{width:n,height:r,$:c}}function Tn(e){return oe(e)?e:e.contextElement}function Ye(e){const t=Tn(e);if(!me(t))return fe(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Ar(t);let i=(s?Ct(n.width):n.width)/r,c=(s?Ct(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!c||!Number.isFinite(c))&&(c=1),{x:i,y:c}}const aa=fe(0);function _r(e){const t=ee(e);return!Nn()||!t.visualViewport?aa:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ca(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ee(e)?!1:t}function _e(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Tn(e);let i=fe(1);t&&(r?oe(r)&&(i=Ye(r)):i=Ye(e));const c=ca(s,n,r)?_r(s):fe(0);let u=(o.left+c.x)/i.x,d=(o.top+c.y)/i.y,f=o.width/i.x,m=o.height/i.y;if(s){const g=ee(s),p=r&&oe(r)?ee(r):r;let v=g,h=dn(v);for(;h&&r&&p!==v;){const x=Ye(h),w=h.getBoundingClientRect(),y=se(h),b=w.left+(h.clientLeft+parseFloat(y.paddingLeft))*x.x,C=w.top+(h.clientTop+parseFloat(y.paddingTop))*x.y;u*=x.x,d*=x.y,f*=x.x,m*=x.y,u+=b,d+=C,v=ee(h),h=dn(v)}}return Pt({width:f,height:m,x:u,y:d})}function _t(e,t){const n=At(e).scrollLeft;return t?t.left+n:_e(he(e)).left+n}function Dr(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-_t(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function la(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=he(r),c=t?kt(t.floating):!1;if(r===i||c&&s)return n;let u={scrollLeft:0,scrollTop:0},d=fe(1);const f=fe(0),m=me(r);if((m||!m&&!s)&&((Qe(r)!=="body"||dt(i))&&(u=At(r)),me(r))){const p=_e(r);d=Ye(r),f.x=p.x+r.clientLeft,f.y=p.y+r.clientTop}const g=i&&!m&&!s?Dr(i,u):fe(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-u.scrollLeft*d.x+f.x+g.x,y:n.y*d.y-u.scrollTop*d.y+f.y+g.y}}function ua(e){return Array.from(e.getClientRects())}function da(e){const t=he(e),n=At(e),r=e.ownerDocument.body,o=Z(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Z(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+_t(e);const c=-n.scrollTop;return se(r).direction==="rtl"&&(i+=Z(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:c}}const Zn=25;function fa(e,t){const n=ee(e),r=he(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,c=0,u=0;if(o){s=o.width,i=o.height;const f=Nn();(!f||f&&t==="fixed")&&(c=o.offsetLeft,u=o.offsetTop)}const d=_t(r);if(d<=0){const f=r.ownerDocument,m=f.body,g=getComputedStyle(m),p=f.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,v=Math.abs(r.clientWidth-m.clientWidth-p);v<=Zn&&(s-=v)}else d<=Zn&&(s+=d);return{width:s,height:i,x:c,y:u}}const ma=new Set(["absolute","fixed"]);function ha(e,t){const n=_e(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=me(e)?Ye(e):fe(1),i=e.clientWidth*s.x,c=e.clientHeight*s.y,u=o*s.x,d=r*s.y;return{width:i,height:c,x:u,y:d}}function er(e,t,n){let r;if(t==="viewport")r=fa(e,n);else if(t==="document")r=da(he(e));else if(oe(t))r=ha(t,n);else{const o=_r(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Pt(r)}function Ir(e,t){const n=Se(e);return n===t||!oe(n)||Ue(n)?!1:se(n).position==="fixed"||Ir(n,t)}function pa(e,t){const n=t.get(e);if(n)return n;let r=ct(e,[],!1).filter(c=>oe(c)&&Qe(c)!=="body"),o=null;const s=se(e).position==="fixed";let i=s?Se(e):e;for(;oe(i)&&!Ue(i);){const c=se(i),u=En(i);!u&&c.position==="fixed"&&(o=null),(s?!u&&!o:!u&&c.position==="static"&&!!o&&ma.has(o.position)||dt(i)&&!u&&Ir(e,i))?r=r.filter(f=>f!==i):o=c,i=Se(i)}return t.set(e,r),r}function ga(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?kt(t)?[]:pa(t,this._c):[].concat(n),r],c=i[0],u=i.reduce((d,f)=>{const m=er(t,f,o);return d.top=Z(m.top,d.top),d.right=Ce(m.right,d.right),d.bottom=Ce(m.bottom,d.bottom),d.left=Z(m.left,d.left),d},er(t,c,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function va(e){const{width:t,height:n}=Ar(e);return{width:t,height:n}}function xa(e,t,n){const r=me(t),o=he(t),s=n==="fixed",i=_e(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const u=fe(0);function d(){u.x=_t(o)}if(r||!r&&!s)if((Qe(t)!=="body"||dt(o))&&(c=At(t)),r){const p=_e(t,!0,s,t);u.x=p.x+t.clientLeft,u.y=p.y+t.clientTop}else o&&d();s&&!r&&o&&d();const f=o&&!r&&!s?Dr(o,c):fe(0),m=i.left+c.scrollLeft-u.x-f.x,g=i.top+c.scrollTop-u.y-f.y;return{x:m,y:g,width:i.width,height:i.height}}function Kt(e){return se(e).position==="static"}function tr(e,t){if(!me(e)||se(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return he(e)===n&&(n=n.ownerDocument.body),n}function Lr(e,t){const n=ee(e);if(kt(e))return n;if(!me(e)){let o=Se(e);for(;o&&!Ue(o);){if(oe(o)&&!Kt(o))return o;o=Se(o)}return n}let r=tr(e,t);for(;r&&ea(r)&&Kt(r);)r=tr(r,t);return r&&Ue(r)&&Kt(r)&&!En(r)?n:r||sa(e)||n}const ya=async function(e){const t=this.getOffsetParent||Lr,n=this.getDimensions,r=await n(e.floating);return{reference:xa(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function wa(e){return se(e).direction==="rtl"}const ba={convertOffsetParentRelativeRectToViewportRelativeRect:la,getDocumentElement:he,getClippingRect:ga,getOffsetParent:Lr,getElementRects:ya,getClientRects:ua,getDimensions:va,getScale:Ye,isElement:oe,isRTL:wa};function Wr(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ca(e,t){let n=null,r;const o=he(e);function s(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function i(c,u){c===void 0&&(c=!1),u===void 0&&(u=1),s();const d=e.getBoundingClientRect(),{left:f,top:m,width:g,height:p}=d;if(c||t(),!g||!p)return;const v=mt(m),h=mt(o.clientWidth-(f+g)),x=mt(o.clientHeight-(m+p)),w=mt(f),b={rootMargin:-v+"px "+-h+"px "+-x+"px "+-w+"px",threshold:Z(0,Ce(1,u))||1};let C=!0;function S(E){const P=E[0].intersectionRatio;if(P!==u){if(!C)return i();P?i(!1,P):r=setTimeout(()=>{i(!1,1e-7)},1e3)}P===1&&!Wr(d,e.getBoundingClientRect())&&i(),C=!1}try{n=new IntersectionObserver(S,{...b,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,b)}n.observe(e)}return i(!0),s}function Sa(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,d=Tn(e),f=o||s?[...d?ct(d):[],...ct(t)]:[];f.forEach(w=>{o&&w.addEventListener("scroll",n,{passive:!0}),s&&w.addEventListener("resize",n)});const m=d&&c?Ca(d,n):null;let g=-1,p=null;i&&(p=new ResizeObserver(w=>{let[y]=w;y&&y.target===d&&p&&(p.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var b;(b=p)==null||b.observe(t)})),n()}),d&&!u&&p.observe(d),p.observe(t));let v,h=u?_e(e):null;u&&x();function x(){const w=_e(e);h&&!Wr(h,w)&&n(),h=w,v=requestAnimationFrame(x)}return n(),()=>{var w;f.forEach(y=>{o&&y.removeEventListener("scroll",n),s&&y.removeEventListener("resize",n)}),m?.(),(w=p)==null||w.disconnect(),p=null,u&&cancelAnimationFrame(v)}}const Pa=Xi,Ea=Gi,Na=zi,Ta=Qi,Ra=qi,nr=Yi,ja=Ki,Oa=(e,t,n)=>{const r=new Map,o={platform:ba,...n},s={...o.platform,_c:r};return Vi(e,t,{...o,platform:s})};var Ma=typeof document<"u",ka=function(){},yt=Ma?l.useLayoutEffect:ka;function Et(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,o;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(!Et(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!Et(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Fr(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function rr(e,t){const n=Fr(e);return Math.round(t*n)/n}function Qt(e){const t=l.useRef(e);return yt(()=>{t.current=e}),t}function Aa(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:c=!0,whileElementsMounted:u,open:d}=e,[f,m]=l.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,p]=l.useState(r);Et(g,r)||p(r);const[v,h]=l.useState(null),[x,w]=l.useState(null),y=l.useCallback(R=>{R!==E.current&&(E.current=R,h(R))},[]),b=l.useCallback(R=>{R!==P.current&&(P.current=R,w(R))},[]),C=s||v,S=i||x,E=l.useRef(null),P=l.useRef(null),j=l.useRef(f),I=u!=null,_=Qt(u),$=Qt(o),B=Qt(d),W=l.useCallback(()=>{if(!E.current||!P.current)return;const R={placement:t,strategy:n,middleware:g};$.current&&(R.platform=$.current),Oa(E.current,P.current,R).then(H=>{const Q={...H,isPositioned:B.current!==!1};A.current&&!Et(j.current,Q)&&(j.current=Q,jt.flushSync(()=>{m(Q)}))})},[g,t,n,$,B]);yt(()=>{d===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,m(R=>({...R,isPositioned:!1})))},[d]);const A=l.useRef(!1);yt(()=>(A.current=!0,()=>{A.current=!1}),[]),yt(()=>{if(C&&(E.current=C),S&&(P.current=S),C&&S){if(_.current)return _.current(C,S,W);W()}},[C,S,W,_,I]);const z=l.useMemo(()=>({reference:E,floating:P,setReference:y,setFloating:b}),[y,b]),O=l.useMemo(()=>({reference:C,floating:S}),[C,S]),D=l.useMemo(()=>{const R={position:n,left:0,top:0};if(!O.floating)return R;const H=rr(O.floating,f.x),Q=rr(O.floating,f.y);return c?{...R,transform:"translate("+H+"px, "+Q+"px)",...Fr(O.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:H,top:Q}},[n,c,O.floating,f.x,f.y]);return l.useMemo(()=>({...f,update:W,refs:z,elements:O,floatingStyles:D}),[f,W,z,O,D])}const _a=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?nr({element:r.current,padding:o}).fn(n):{}:r?nr({element:r,padding:o}).fn(n):{}}}},Da=(e,t)=>({...Pa(e),options:[e,t]}),Ia=(e,t)=>({...Ea(e),options:[e,t]}),La=(e,t)=>({...ja(e),options:[e,t]}),Wa=(e,t)=>({...Na(e),options:[e,t]}),Fa=(e,t)=>({...Ta(e),options:[e,t]}),$a=(e,t)=>({...Ra(e),options:[e,t]}),Ba=(e,t)=>({..._a(e),options:[e,t]});var Ha="Arrow",$r=l.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return a.jsx(k.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:a.jsx("polygon",{points:"0,0 30,0 15,10"})})});$r.displayName=Ha;var Va=$r;function Br(e){const[t,n]=l.useState(void 0);return G(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,c;if("borderBoxSize"in s){const u=s.borderBoxSize,d=Array.isArray(u)?u[0]:u;i=d.inlineSize,c=d.blockSize}else i=e.offsetWidth,c=e.offsetHeight;n({width:i,height:c})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Rn="Popper",[Hr,Dt]=We(Rn),[Ya,Vr]=Hr(Rn),Yr=e=>{const{__scopePopper:t,children:n}=e,[r,o]=l.useState(null);return a.jsx(Ya,{scope:t,anchor:r,onAnchorChange:o,children:n})};Yr.displayName=Rn;var zr="PopperAnchor",qr=l.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=Vr(zr,n),i=l.useRef(null),c=F(t,i),u=l.useRef(null);return l.useEffect(()=>{const d=u.current;u.current=r?.current||i.current,d!==u.current&&s.onAnchorChange(u.current)}),r?null:a.jsx(k.div,{...o,ref:c})});qr.displayName=zr;var jn="PopperContent",[za,qa]=Hr(jn),Ur=l.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:c=0,avoidCollisions:u=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:m="partial",hideWhenDetached:g=!1,updatePositionStrategy:p="optimized",onPlaced:v,...h}=e,x=Vr(jn,n),[w,y]=l.useState(null),b=F(t,T=>y(T)),[C,S]=l.useState(null),E=Br(C),P=E?.width??0,j=E?.height??0,I=r+(s!=="center"?"-"+s:""),_=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},$=Array.isArray(d)?d:[d],B=$.length>0,W={padding:_,boundary:$.filter(Xa),altBoundary:B},{refs:A,floatingStyles:z,placement:O,isPositioned:D,middlewareData:R}=Aa({strategy:"fixed",placement:I,whileElementsMounted:(...T)=>Sa(...T,{animationFrame:p==="always"}),elements:{reference:x.anchor},middleware:[Da({mainAxis:o+j,alignmentAxis:i}),u&&Ia({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?La():void 0,...W}),u&&Wa({...W}),Fa({...W,apply:({elements:T,rects:q,availableWidth:K,availableHeight:V})=>{const{width:Y,height:X}=q.reference,te=T.floating.style;te.setProperty("--radix-popper-available-width",`${K}px`),te.setProperty("--radix-popper-available-height",`${V}px`),te.setProperty("--radix-popper-anchor-width",`${Y}px`),te.setProperty("--radix-popper-anchor-height",`${X}px`)}}),C&&Ba({element:C,padding:c}),Ga({arrowWidth:P,arrowHeight:j}),g&&$a({strategy:"referenceHidden",...W})]}),[H,Q]=Kr(O),Re=Ae(v);G(()=>{D&&Re?.()},[D,Re]);const Ze=R.arrow?.x,et=R.arrow?.y,ve=R.arrow?.centerOffset!==0,[Fe,je]=l.useState();return G(()=>{w&&je(window.getComputedStyle(w).zIndex)},[w]),a.jsx("div",{ref:A.setFloating,"data-radix-popper-content-wrapper":"",style:{...z,transform:D?z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Fe,"--radix-popper-transform-origin":[R.transformOrigin?.x,R.transformOrigin?.y].join(" "),...R.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:a.jsx(za,{scope:n,placedSide:H,onArrowChange:S,arrowX:Ze,arrowY:et,shouldHideArrow:ve,children:a.jsx(k.div,{"data-side":H,"data-align":Q,...h,ref:b,style:{...h.style,animation:D?void 0:"none"}})})})});Ur.displayName=jn;var Xr="PopperArrow",Ua={top:"bottom",right:"left",bottom:"top",left:"right"},Gr=l.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=qa(Xr,r),i=Ua[s.placedSide];return a.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:a.jsx(Va,{...o,ref:n,style:{...o.style,display:"block"}})})});Gr.displayName=Xr;function Xa(e){return e!==null}var Ga=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,c=i?0:e.arrowWidth,u=i?0:e.arrowHeight,[d,f]=Kr(n),m={start:"0%",center:"50%",end:"100%"}[f],g=(o.arrow?.x??0)+c/2,p=(o.arrow?.y??0)+u/2;let v="",h="";return d==="bottom"?(v=i?m:`${g}px`,h=`${-u}px`):d==="top"?(v=i?m:`${g}px`,h=`${r.floating.height+u}px`):d==="right"?(v=`${-u}px`,h=i?m:`${p}px`):d==="left"&&(v=`${r.floating.width+u}px`,h=i?m:`${p}px`),{data:{x:v,y:h}}}});function Kr(e){const[t,n="center"]=e.split("-");return[t,n]}var Qr=Yr,Jr=qr,Zr=Ur,eo=Gr,Ka="Portal",It=l.forwardRef((e,t)=>{const{container:n,...r}=e,[o,s]=l.useState(!1);G(()=>s(!0),[]);const i=n||o&&globalThis?.document?.body;return i?Ws.createPortal(a.jsx(k.div,{...r,ref:t}),i):null});It.displayName=Ka;function Qa(e,t){return l.useReducer((n,r)=>t[n][r]??n,e)}var Ee=e=>{const{present:t,children:n}=e,r=Ja(t),o=typeof n=="function"?n({present:r.isPresent}):l.Children.only(n),s=F(r.ref,Za(o));return typeof n=="function"||r.isPresent?l.cloneElement(o,{ref:s}):null};Ee.displayName="Presence";function Ja(e){const[t,n]=l.useState(),r=l.useRef(null),o=l.useRef(e),s=l.useRef("none"),i=e?"mounted":"unmounted",[c,u]=Qa(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const d=ht(r.current);s.current=c==="mounted"?d:"none"},[c]),G(()=>{const d=r.current,f=o.current;if(f!==e){const g=s.current,p=ht(d);e?u("MOUNT"):p==="none"||d?.display==="none"?u("UNMOUNT"):u(f&&g!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,u]),G(()=>{if(t){let d;const f=t.ownerDocument.defaultView??window,m=p=>{const h=ht(r.current).includes(CSS.escape(p.animationName));if(p.target===t&&h&&(u("ANIMATION_END"),!o.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",d=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},g=p=>{p.target===t&&(s.current=ht(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{f.clearTimeout(d),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:l.useCallback(d=>{r.current=d?getComputedStyle(d):null,n(d)},[])}}function ht(e){return e?.animationName||"none"}function Za(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ec=Er[" useInsertionEffect ".trim().toString()]||G;function Xe({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=tc({defaultProp:t,onChange:n}),c=e!==void 0,u=c?e:o;{const f=l.useRef(e!==void 0);l.useEffect(()=>{const m=f.current;m!==c&&console.warn(`${r} is changing from ${m?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=c},[c,r])}const d=l.useCallback(f=>{if(c){const m=nc(f)?f(e):f;m!==e&&i.current?.(m)}else s(f)},[c,e,s,i]);return[u,d]}function tc({defaultProp:e,onChange:t}){const[n,r]=l.useState(e),o=l.useRef(n),s=l.useRef(t);return ec(()=>{s.current=t},[t]),l.useEffect(()=>{o.current!==n&&(s.current?.(n),o.current=n)},[n,o]),[n,r,s]}function nc(e){return typeof e=="function"}var to=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),rc="VisuallyHidden",no=l.forwardRef((e,t)=>a.jsx(k.span,{...e,ref:t,style:{...to,...e.style}}));no.displayName=rc;var oc=no,[Lt]=We("Tooltip",[Dt]),Wt=Dt(),ro="TooltipProvider",sc=700,fn="tooltip.open",[ic,On]=Lt(ro),oo=e=>{const{__scopeTooltip:t,delayDuration:n=sc,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,i=l.useRef(!0),c=l.useRef(!1),u=l.useRef(0);return l.useEffect(()=>{const d=u.current;return()=>window.clearTimeout(d)},[]),a.jsx(ic,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:l.useCallback(()=>{window.clearTimeout(u.current),i.current=!1},[]),onClose:l.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:c,onPointerInTransitChange:l.useCallback(d=>{c.current=d},[]),disableHoverableContent:o,children:s})};oo.displayName=ro;var lt="Tooltip",[ac,ft]=Lt(lt),so=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:s,disableHoverableContent:i,delayDuration:c}=e,u=On(lt,e.__scopeTooltip),d=Wt(t),[f,m]=l.useState(null),g=we(),p=l.useRef(0),v=i??u.disableHoverableContent,h=c??u.delayDuration,x=l.useRef(!1),[w,y]=Xe({prop:r,defaultProp:o??!1,onChange:P=>{P?(u.onOpen(),document.dispatchEvent(new CustomEvent(fn))):u.onClose(),s?.(P)},caller:lt}),b=l.useMemo(()=>w?x.current?"delayed-open":"instant-open":"closed",[w]),C=l.useCallback(()=>{window.clearTimeout(p.current),p.current=0,x.current=!1,y(!0)},[y]),S=l.useCallback(()=>{window.clearTimeout(p.current),p.current=0,y(!1)},[y]),E=l.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{x.current=!0,y(!0),p.current=0},h)},[h,y]);return l.useEffect(()=>()=>{p.current&&(window.clearTimeout(p.current),p.current=0)},[]),a.jsx(Qr,{...d,children:a.jsx(ac,{scope:t,contentId:g,open:w,stateAttribute:b,trigger:f,onTriggerChange:m,onTriggerEnter:l.useCallback(()=>{u.isOpenDelayedRef.current?E():C()},[u.isOpenDelayedRef,E,C]),onTriggerLeave:l.useCallback(()=>{v?S():(window.clearTimeout(p.current),p.current=0)},[S,v]),onOpen:C,onClose:S,disableHoverableContent:v,children:n})})};so.displayName=lt;var mn="TooltipTrigger",io=l.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=ft(mn,n),s=On(mn,n),i=Wt(n),c=l.useRef(null),u=F(t,c,o.onTriggerChange),d=l.useRef(!1),f=l.useRef(!1),m=l.useCallback(()=>d.current=!1,[]);return l.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),a.jsx(Jr,{asChild:!0,...i,children:a.jsx(k.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:u,onPointerMove:M(e.onPointerMove,g=>{g.pointerType!=="touch"&&!f.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:M(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:M(e.onPointerDown,()=>{o.open&&o.onClose(),d.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:M(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:M(e.onBlur,o.onClose),onClick:M(e.onClick,o.onClose)})})});io.displayName=mn;var Mn="TooltipPortal",[cc,lc]=Lt(Mn,{forceMount:void 0}),ao=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,s=ft(Mn,t);return a.jsx(cc,{scope:t,forceMount:n,children:a.jsx(Ee,{present:n||s.open,children:a.jsx(It,{asChild:!0,container:o,children:r})})})};ao.displayName=Mn;var Ge="TooltipContent",co=l.forwardRef((e,t)=>{const n=lc(Ge,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,i=ft(Ge,e.__scopeTooltip);return a.jsx(Ee,{present:r||i.open,children:i.disableHoverableContent?a.jsx(lo,{side:o,...s,ref:t}):a.jsx(uc,{side:o,...s,ref:t})})}),uc=l.forwardRef((e,t)=>{const n=ft(Ge,e.__scopeTooltip),r=On(Ge,e.__scopeTooltip),o=l.useRef(null),s=F(t,o),[i,c]=l.useState(null),{trigger:u,onClose:d}=n,f=o.current,{onPointerInTransitChange:m}=r,g=l.useCallback(()=>{c(null),m(!1)},[m]),p=l.useCallback((v,h)=>{const x=v.currentTarget,w={x:v.clientX,y:v.clientY},y=hc(w,x.getBoundingClientRect()),b=pc(w,y),C=gc(h.getBoundingClientRect()),S=xc([...b,...C]);c(S),m(!0)},[m]);return l.useEffect(()=>()=>g(),[g]),l.useEffect(()=>{if(u&&f){const v=x=>p(x,f),h=x=>p(x,u);return u.addEventListener("pointerleave",v),f.addEventListener("pointerleave",h),()=>{u.removeEventListener("pointerleave",v),f.removeEventListener("pointerleave",h)}}},[u,f,p,g]),l.useEffect(()=>{if(i){const v=h=>{const x=h.target,w={x:h.clientX,y:h.clientY},y=u?.contains(x)||f?.contains(x),b=!vc(w,i);y?g():b&&(g(),d())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[u,f,i,d,g]),a.jsx(lo,{...e,ref:s})}),[dc,fc]=Lt(lt,{isInside:!1}),mc=Fs("TooltipContent"),lo=l.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:i,...c}=e,u=ft(Ge,n),d=Wt(n),{onClose:f}=u;return l.useEffect(()=>(document.addEventListener(fn,f),()=>document.removeEventListener(fn,f)),[f]),l.useEffect(()=>{if(u.trigger){const m=g=>{g.target?.contains(u.trigger)&&f()};return window.addEventListener("scroll",m,{capture:!0}),()=>window.removeEventListener("scroll",m,{capture:!0})}},[u.trigger,f]),a.jsx(Ot,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:m=>m.preventDefault(),onDismiss:f,children:a.jsxs(Zr,{"data-state":u.stateAttribute,...d,...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:[a.jsx(mc,{children:r}),a.jsx(dc,{scope:n,isInside:!0,children:a.jsx(oc,{id:u.contentId,role:"tooltip",children:o||r})})]})})});co.displayName=Ge;var uo="TooltipArrow",fo=l.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Wt(n);return fc(uo,n).isInside?null:a.jsx(eo,{...o,...r,ref:t})});fo.displayName=uo;function hc(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function pc(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 gc(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function vc(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const c=t[s],u=t[i],d=c.x,f=c.y,m=u.x,g=u.y;f>r!=g>r&&n<(m-d)*(r-f)/(g-f)+d&&(o=!o)}return o}function xc(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),yc(t)}function yc(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],i=n[n.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}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 wc=oo,bc=so,Cc=io,Sc=ao,Pc=co,Ec=fo;function kn({delayDuration:e=0,...t}){return a.jsx(wc,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function mo({...e}){return a.jsx(kn,{children:a.jsx(bc,{"data-slot":"tooltip",...e})})}function ho({...e}){return a.jsx(Cc,{"data-slot":"tooltip-trigger",...e})}function po({className:e,sideOffset:t=0,children:n,...r}){return a.jsx(Sc,{children:a.jsxs(Pc,{"data-slot":"tooltip-content",sideOffset:t,className:U("bg-foreground text-background 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 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e),...r,children:[n,a.jsx(Ec,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const Nc={sm:"w-4 h-4",default:"w-8 h-8",lg:"w-12 h-12"},Tc={sm:"text-sm",default:"text-base",lg:"text-lg"},or=({message:e,size:t="default",fullScreen:n=!0,className:r})=>{const o=a.jsxs("div",{className:U("flex flex-col items-center justify-center gap-3",r),children:[a.jsx(fi,{className:U(Nc[t],"animate-spin text-primary")}),e&&a.jsx("p",{className:U(Tc[t],"text-muted-foreground font-medium"),children:e})]});return n?a.jsx("div",{className:"flex items-center justify-center w-full h-full min-h-[400px]",children:o}):o};function sr(e,[t,n]){return Math.min(n,Math.max(t,e))}function Rc(e){const t=e+"CollectionProvider",[n,r]=We(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=h=>{const{scope:x,children:w}=h,y=Me.useRef(null),b=Me.useRef(new Map).current;return a.jsx(o,{scope:x,itemMap:b,collectionRef:y,children:w})};i.displayName=t;const c=e+"CollectionSlot",u=it(c),d=Me.forwardRef((h,x)=>{const{scope:w,children:y}=h,b=s(c,w),C=F(x,b.collectionRef);return a.jsx(u,{ref:C,children:y})});d.displayName=c;const f=e+"CollectionItemSlot",m="data-radix-collection-item",g=it(f),p=Me.forwardRef((h,x)=>{const{scope:w,children:y,...b}=h,C=Me.useRef(null),S=F(x,C),E=s(f,w);return Me.useEffect(()=>(E.itemMap.set(C,{ref:C,...b}),()=>void E.itemMap.delete(C))),a.jsx(g,{[m]:"",ref:S,children:y})});p.displayName=f;function v(h){const x=s(e+"CollectionConsumer",h);return Me.useCallback(()=>{const y=x.collectionRef.current;if(!y)return[];const b=Array.from(y.querySelectorAll(`[${m}]`));return Array.from(x.itemMap.values()).sort((E,P)=>b.indexOf(E.ref.current)-b.indexOf(P.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:i,Slot:d,ItemSlot:p},v,r]}var jc=l.createContext(void 0);function Oc(e){const t=l.useContext(jc);return e||t||"ltr"}var Jt=0;function go(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ir()),document.body.insertAdjacentElement("beforeend",e[1]??ir()),Jt++,()=>{Jt===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Jt--}},[])}function ir(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Zt="focusScope.autoFocusOnMount",en="focusScope.autoFocusOnUnmount",ar={bubbles:!1,cancelable:!0},Mc="FocusScope",An=l.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[c,u]=l.useState(null),d=Ae(o),f=Ae(s),m=l.useRef(null),g=F(t,h=>u(h)),p=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(r){let h=function(b){if(p.paused||!c)return;const C=b.target;c.contains(C)?m.current=C:ye(m.current,{select:!0})},x=function(b){if(p.paused||!c)return;const C=b.relatedTarget;C!==null&&(c.contains(C)||ye(m.current,{select:!0}))},w=function(b){if(document.activeElement===document.body)for(const S of b)S.removedNodes.length>0&&ye(c)};document.addEventListener("focusin",h),document.addEventListener("focusout",x);const y=new MutationObserver(w);return c&&y.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",x),y.disconnect()}}},[r,c,p.paused]),l.useEffect(()=>{if(c){lr.add(p);const h=document.activeElement;if(!c.contains(h)){const w=new CustomEvent(Zt,ar);c.addEventListener(Zt,d),c.dispatchEvent(w),w.defaultPrevented||(kc(Lc(vo(c)),{select:!0}),document.activeElement===h&&ye(c))}return()=>{c.removeEventListener(Zt,d),setTimeout(()=>{const w=new CustomEvent(en,ar);c.addEventListener(en,f),c.dispatchEvent(w),w.defaultPrevented||ye(h??document.body,{select:!0}),c.removeEventListener(en,f),lr.remove(p)},0)}}},[c,d,f,p]);const v=l.useCallback(h=>{if(!n&&!r||p.paused)return;const x=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,w=document.activeElement;if(x&&w){const y=h.currentTarget,[b,C]=Ac(y);b&&C?!h.shiftKey&&w===C?(h.preventDefault(),n&&ye(b,{select:!0})):h.shiftKey&&w===b&&(h.preventDefault(),n&&ye(C,{select:!0})):w===y&&h.preventDefault()}},[n,r,p.paused]);return a.jsx(k.div,{tabIndex:-1,...i,ref:g,onKeyDown:v})});An.displayName=Mc;function kc(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ye(r,{select:t}),document.activeElement!==n)return}function Ac(e){const t=vo(e),n=cr(t,e),r=cr(t.reverse(),e);return[n,r]}function vo(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function cr(e,t){for(const n of e)if(!_c(n,{upTo:t}))return n}function _c(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Dc(e){return e instanceof HTMLInputElement&&"select"in e}function ye(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Dc(e)&&t&&e.select()}}var lr=Ic();function Ic(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=ur(e,t),e.unshift(t)},remove(t){e=ur(e,t),e[0]?.resume()}}}function ur(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Lc(e){return e.filter(t=>t.tagName!=="A")}function xo(e){const t=l.useRef({value:e,previous:e});return l.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Wc=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},$e=new WeakMap,pt=new WeakMap,gt={},tn=0,yo=function(e){return e&&(e.host||yo(e.parentNode))},Fc=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=yo(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},$c=function(e,t,n,r){var o=Fc(t,Array.isArray(e)?e:[e]);gt[n]||(gt[n]=new WeakMap);var s=gt[n],i=[],c=new Set,u=new Set(o),d=function(m){!m||c.has(m)||(c.add(m),d(m.parentNode))};o.forEach(d);var f=function(m){!m||u.has(m)||Array.prototype.forEach.call(m.children,function(g){if(c.has(g))f(g);else try{var p=g.getAttribute(r),v=p!==null&&p!=="false",h=($e.get(g)||0)+1,x=(s.get(g)||0)+1;$e.set(g,h),s.set(g,x),i.push(g),h===1&&v&&pt.set(g,!0),x===1&&g.setAttribute(n,"true"),v||g.setAttribute(r,"true")}catch(w){console.error("aria-hidden: cannot operate on ",g,w)}})};return f(t),c.clear(),tn++,function(){i.forEach(function(m){var g=$e.get(m)-1,p=s.get(m)-1;$e.set(m,g),s.set(m,p),g||(pt.has(m)||m.removeAttribute(r),pt.delete(m)),p||m.removeAttribute(n)}),tn--,tn||($e=new WeakMap,$e=new WeakMap,pt=new WeakMap,gt={})}},wo=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Wc(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),$c(r,o,n,"aria-hidden")):function(){return null}},ce=function(){return ce=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},ce.apply(this,arguments)};function bo(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Bc(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var wt="right-scroll-bar-position",bt="width-before-scroll-bar",Hc="with-scroll-bars-hidden",Vc="--removed-body-scroll-bar-size";function nn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Yc(e,t){var n=l.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var zc=typeof window<"u"?l.useLayoutEffect:l.useEffect,dr=new WeakMap;function qc(e,t){var n=Yc(null,function(r){return e.forEach(function(o){return nn(o,r)})});return zc(function(){var r=dr.get(n);if(r){var o=new Set(r),s=new Set(e),i=n.current;o.forEach(function(c){s.has(c)||nn(c,null)}),s.forEach(function(c){o.has(c)||nn(c,i)})}dr.set(n,e)},[e]),n}function Uc(e){return e}function Xc(e,t){t===void 0&&(t=Uc);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var i=t(s,r);return n.push(i),function(){n=n.filter(function(c){return c!==i})}},assignSyncMedium:function(s){for(r=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(c){return s(c)},filter:function(){return n}}},assignMedium:function(s){r=!0;var i=[];if(n.length){var c=n;n=[],c.forEach(s),i=n}var u=function(){var f=i;i=[],f.forEach(s)},d=function(){return Promise.resolve().then(u)};d(),n={push:function(f){i.push(f),d()},filter:function(f){return i=i.filter(f),n}}}};return o}function Gc(e){e===void 0&&(e={});var t=Xc(null);return t.options=ce({async:!0,ssr:!1},e),t}var Co=function(e){var t=e.sideCar,n=bo(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return l.createElement(r,ce({},n))};Co.isSideCarExport=!0;function Kc(e,t){return e.useMedium(t),Co}var So=Gc(),rn=function(){},Ft=l.forwardRef(function(e,t){var n=l.useRef(null),r=l.useState({onScrollCapture:rn,onWheelCapture:rn,onTouchMoveCapture:rn}),o=r[0],s=r[1],i=e.forwardProps,c=e.children,u=e.className,d=e.removeScrollBar,f=e.enabled,m=e.shards,g=e.sideCar,p=e.noRelative,v=e.noIsolation,h=e.inert,x=e.allowPinchZoom,w=e.as,y=w===void 0?"div":w,b=e.gapMode,C=bo(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=g,E=qc([n,t]),P=ce(ce({},C),o);return l.createElement(l.Fragment,null,f&&l.createElement(S,{sideCar:So,removeScrollBar:d,shards:m,noRelative:p,noIsolation:v,inert:h,setCallbacks:s,allowPinchZoom:!!x,lockRef:n,gapMode:b}),i?l.cloneElement(l.Children.only(c),ce(ce({},P),{ref:E})):l.createElement(y,ce({},P,{className:u,ref:E}),c))});Ft.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ft.classNames={fullWidth:bt,zeroRight:wt};var Qc=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Jc(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Qc();return t&&e.setAttribute("nonce",t),e}function Zc(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function el(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var tl=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Jc())&&(Zc(t,n),el(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},nl=function(){var e=tl();return function(t,n){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Po=function(){var e=nl(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},rl={left:0,top:0,right:0,gap:0},on=function(e){return parseInt(e||"",10)||0},ol=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[on(n),on(r),on(o)]},sl=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return rl;var t=ol(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},il=Po(),ze="data-scroll-locked",al=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,c=e.gap;return n===void 0&&(n="margin"),`
62
+ .`.concat(Hc,` {
63
+ overflow: hidden `).concat(r,`;
64
+ padding-right: `).concat(c,"px ").concat(r,`;
65
+ }
66
+ body[`).concat(ze,`] {
67
+ overflow: hidden `).concat(r,`;
68
+ overscroll-behavior: contain;
69
+ `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
70
+ padding-left: `.concat(o,`px;
71
+ padding-top: `).concat(s,`px;
72
+ padding-right: `).concat(i,`px;
73
+ margin-left:0;
74
+ margin-top:0;
75
+ margin-right: `).concat(c,"px ").concat(r,`;
76
+ `),n==="padding"&&"padding-right: ".concat(c,"px ").concat(r,";")].filter(Boolean).join(""),`
77
+ }
78
+
79
+ .`).concat(wt,` {
80
+ right: `).concat(c,"px ").concat(r,`;
81
+ }
82
+
83
+ .`).concat(bt,` {
84
+ margin-right: `).concat(c,"px ").concat(r,`;
85
+ }
86
+
87
+ .`).concat(wt," .").concat(wt,` {
88
+ right: 0 `).concat(r,`;
89
+ }
90
+
91
+ .`).concat(bt," .").concat(bt,` {
92
+ margin-right: 0 `).concat(r,`;
93
+ }
94
+
95
+ body[`).concat(ze,`] {
96
+ `).concat(Vc,": ").concat(c,`px;
97
+ }
98
+ `)},fr=function(){var e=parseInt(document.body.getAttribute(ze)||"0",10);return isFinite(e)?e:0},cl=function(){l.useEffect(function(){return document.body.setAttribute(ze,(fr()+1).toString()),function(){var e=fr()-1;e<=0?document.body.removeAttribute(ze):document.body.setAttribute(ze,e.toString())}},[])},ll=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;cl();var s=l.useMemo(function(){return sl(o)},[o]);return l.createElement(il,{styles:al(s,!t,o,n?"":"!important")})},hn=!1;if(typeof window<"u")try{var vt=Object.defineProperty({},"passive",{get:function(){return hn=!0,!0}});window.addEventListener("test",vt,vt),window.removeEventListener("test",vt,vt)}catch{hn=!1}var Be=hn?{passive:!1}:!1,ul=function(e){return e.tagName==="TEXTAREA"},Eo=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!ul(e)&&n[t]==="visible")},dl=function(e){return Eo(e,"overflowY")},fl=function(e){return Eo(e,"overflowX")},mr=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=No(e,r);if(o){var s=To(e,r),i=s[1],c=s[2];if(i>c)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},ml=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},hl=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},No=function(e,t){return e==="v"?dl(t):fl(t)},To=function(e,t){return e==="v"?ml(t):hl(t)},pl=function(e,t){return e==="h"&&t==="rtl"?-1:1},gl=function(e,t,n,r,o){var s=pl(e,window.getComputedStyle(t).direction),i=s*r,c=n.target,u=t.contains(c),d=!1,f=i>0,m=0,g=0;do{if(!c)break;var p=To(e,c),v=p[0],h=p[1],x=p[2],w=h-x-s*v;(v||w)&&No(e,c)&&(m+=w,g+=v);var y=c.parentNode;c=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!u&&c!==document.body||u&&(t.contains(c)||t===c));return(f&&Math.abs(m)<1||!f&&Math.abs(g)<1)&&(d=!0),d},xt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},hr=function(e){return[e.deltaX,e.deltaY]},pr=function(e){return e&&"current"in e?e.current:e},vl=function(e,t){return e[0]===t[0]&&e[1]===t[1]},xl=function(e){return`
99
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
100
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
101
+ `)},yl=0,He=[];function wl(e){var t=l.useRef([]),n=l.useRef([0,0]),r=l.useRef(),o=l.useState(yl++)[0],s=l.useState(Po)[0],i=l.useRef(e);l.useEffect(function(){i.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var h=Bc([e.lockRef.current],(e.shards||[]).map(pr),!0).filter(Boolean);return h.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=l.useCallback(function(h,x){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!i.current.allowPinchZoom;var w=xt(h),y=n.current,b="deltaX"in h?h.deltaX:y[0]-w[0],C="deltaY"in h?h.deltaY:y[1]-w[1],S,E=h.target,P=Math.abs(b)>Math.abs(C)?"h":"v";if("touches"in h&&P==="h"&&E.type==="range")return!1;var j=mr(P,E);if(!j)return!0;if(j?S=P:(S=P==="v"?"h":"v",j=mr(P,E)),!j)return!1;if(!r.current&&"changedTouches"in h&&(b||C)&&(r.current=S),!S)return!0;var I=r.current||S;return gl(I,x,h,I==="h"?b:C)},[]),u=l.useCallback(function(h){var x=h;if(!(!He.length||He[He.length-1]!==s)){var w="deltaY"in x?hr(x):xt(x),y=t.current.filter(function(S){return S.name===x.type&&(S.target===x.target||x.target===S.shadowParent)&&vl(S.delta,w)})[0];if(y&&y.should){x.cancelable&&x.preventDefault();return}if(!y){var b=(i.current.shards||[]).map(pr).filter(Boolean).filter(function(S){return S.contains(x.target)}),C=b.length>0?c(x,b[0]):!i.current.noIsolation;C&&x.cancelable&&x.preventDefault()}}},[]),d=l.useCallback(function(h,x,w,y){var b={name:h,delta:x,target:w,should:y,shadowParent:bl(w)};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(C){return C!==b})},1)},[]),f=l.useCallback(function(h){n.current=xt(h),r.current=void 0},[]),m=l.useCallback(function(h){d(h.type,hr(h),h.target,c(h,e.lockRef.current))},[]),g=l.useCallback(function(h){d(h.type,xt(h),h.target,c(h,e.lockRef.current))},[]);l.useEffect(function(){return He.push(s),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:g}),document.addEventListener("wheel",u,Be),document.addEventListener("touchmove",u,Be),document.addEventListener("touchstart",f,Be),function(){He=He.filter(function(h){return h!==s}),document.removeEventListener("wheel",u,Be),document.removeEventListener("touchmove",u,Be),document.removeEventListener("touchstart",f,Be)}},[]);var p=e.removeScrollBar,v=e.inert;return l.createElement(l.Fragment,null,v?l.createElement(s,{styles:xl(o)}):null,p?l.createElement(ll,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function bl(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Cl=Kc(So,wl);var _n=l.forwardRef(function(e,t){return l.createElement(Ft,ce({},e,{ref:t,sideCar:Cl}))});_n.classNames=Ft.classNames;var Sl=[" ","Enter","ArrowUp","ArrowDown"],Pl=[" ","Enter"],De="Select",[$t,Bt,El]=Rc(De),[Je]=We(De,[El,Dt]),Ht=Dt(),[Nl,Ne]=Je(De),[Tl,Rl]=Je(De),Ro=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:s,value:i,defaultValue:c,onValueChange:u,dir:d,name:f,autoComplete:m,disabled:g,required:p,form:v}=e,h=Ht(t),[x,w]=l.useState(null),[y,b]=l.useState(null),[C,S]=l.useState(!1),E=Oc(d),[P,j]=Xe({prop:r,defaultProp:o??!1,onChange:s,caller:De}),[I,_]=Xe({prop:i,defaultProp:c,onChange:u,caller:De}),$=l.useRef(null),B=x?v||!!x.closest("form"):!0,[W,A]=l.useState(new Set),z=Array.from(W).map(O=>O.props.value).join(";");return a.jsx(Qr,{...h,children:a.jsxs(Nl,{required:p,scope:t,trigger:x,onTriggerChange:w,valueNode:y,onValueNodeChange:b,valueNodeHasChildren:C,onValueNodeHasChildrenChange:S,contentId:we(),value:I,onValueChange:_,open:P,onOpenChange:j,dir:E,triggerPointerDownPosRef:$,disabled:g,children:[a.jsx($t.Provider,{scope:t,children:a.jsx(Tl,{scope:e.__scopeSelect,onNativeOptionAdd:l.useCallback(O=>{A(D=>new Set(D).add(O))},[]),onNativeOptionRemove:l.useCallback(O=>{A(D=>{const R=new Set(D);return R.delete(O),R})},[]),children:n})}),B?a.jsxs(Ko,{"aria-hidden":!0,required:p,tabIndex:-1,name:f,autoComplete:m,value:I,onChange:O=>_(O.target.value),disabled:g,form:v,children:[I===void 0?a.jsx("option",{value:""}):null,Array.from(W)]},z):null]})})};Ro.displayName=De;var jo="SelectTrigger",Oo=l.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=Ht(n),i=Ne(jo,n),c=i.disabled||r,u=F(t,i.onTriggerChange),d=Bt(n),f=l.useRef("touch"),[m,g,p]=Jo(h=>{const x=d().filter(b=>!b.disabled),w=x.find(b=>b.value===i.value),y=Zo(x,h,w);y!==void 0&&i.onValueChange(y.value)}),v=h=>{c||(i.onOpenChange(!0),p()),h&&(i.triggerPointerDownPosRef.current={x:Math.round(h.pageX),y:Math.round(h.pageY)})};return a.jsx(Jr,{asChild:!0,...s,children:a.jsx(k.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":Qo(i.value)?"":void 0,...o,ref:u,onClick:M(o.onClick,h=>{h.currentTarget.focus(),f.current!=="mouse"&&v(h)}),onPointerDown:M(o.onPointerDown,h=>{f.current=h.pointerType;const x=h.target;x.hasPointerCapture(h.pointerId)&&x.releasePointerCapture(h.pointerId),h.button===0&&h.ctrlKey===!1&&h.pointerType==="mouse"&&(v(h),h.preventDefault())}),onKeyDown:M(o.onKeyDown,h=>{const x=m.current!=="";!(h.ctrlKey||h.altKey||h.metaKey)&&h.key.length===1&&g(h.key),!(x&&h.key===" ")&&Sl.includes(h.key)&&(v(),h.preventDefault())})})})});Oo.displayName=jo;var Mo="SelectValue",ko=l.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:i="",...c}=e,u=Ne(Mo,n),{onValueNodeHasChildrenChange:d}=u,f=s!==void 0,m=F(t,u.onValueNodeChange);return G(()=>{d(f)},[d,f]),a.jsx(k.span,{...c,ref:m,style:{pointerEvents:"none"},children:Qo(u.value)?a.jsx(a.Fragment,{children:i}):s})});ko.displayName=Mo;var jl="SelectIcon",Ao=l.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return a.jsx(k.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});Ao.displayName=jl;var Ol="SelectPortal",_o=e=>a.jsx(It,{asChild:!0,...e});_o.displayName=Ol;var Ie="SelectContent",Do=l.forwardRef((e,t)=>{const n=Ne(Ie,e.__scopeSelect),[r,o]=l.useState();if(G(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?jt.createPortal(a.jsx(Io,{scope:e.__scopeSelect,children:a.jsx($t.Slot,{scope:e.__scopeSelect,children:a.jsx("div",{children:e.children})})}),s):null}return a.jsx(Lo,{...e,ref:t})});Do.displayName=Ie;var re=10,[Io,Te]=Je(Ie),Ml="SelectContentImpl",kl=it("SelectContent.RemoveScroll"),Lo=l.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:i,side:c,sideOffset:u,align:d,alignOffset:f,arrowPadding:m,collisionBoundary:g,collisionPadding:p,sticky:v,hideWhenDetached:h,avoidCollisions:x,...w}=e,y=Ne(Ie,n),[b,C]=l.useState(null),[S,E]=l.useState(null),P=F(t,T=>C(T)),[j,I]=l.useState(null),[_,$]=l.useState(null),B=Bt(n),[W,A]=l.useState(!1),z=l.useRef(!1);l.useEffect(()=>{if(b)return wo(b)},[b]),go();const O=l.useCallback(T=>{const[q,...K]=B().map(X=>X.ref.current),[V]=K.slice(-1),Y=document.activeElement;for(const X of T)if(X===Y||(X?.scrollIntoView({block:"nearest"}),X===q&&S&&(S.scrollTop=0),X===V&&S&&(S.scrollTop=S.scrollHeight),X?.focus(),document.activeElement!==Y))return},[B,S]),D=l.useCallback(()=>O([j,b]),[O,j,b]);l.useEffect(()=>{W&&D()},[W,D]);const{onOpenChange:R,triggerPointerDownPosRef:H}=y;l.useEffect(()=>{if(b){let T={x:0,y:0};const q=V=>{T={x:Math.abs(Math.round(V.pageX)-(H.current?.x??0)),y:Math.abs(Math.round(V.pageY)-(H.current?.y??0))}},K=V=>{T.x<=10&&T.y<=10?V.preventDefault():b.contains(V.target)||R(!1),document.removeEventListener("pointermove",q),H.current=null};return H.current!==null&&(document.addEventListener("pointermove",q),document.addEventListener("pointerup",K,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",q),document.removeEventListener("pointerup",K,{capture:!0})}}},[b,R,H]),l.useEffect(()=>{const T=()=>R(!1);return window.addEventListener("blur",T),window.addEventListener("resize",T),()=>{window.removeEventListener("blur",T),window.removeEventListener("resize",T)}},[R]);const[Q,Re]=Jo(T=>{const q=B().filter(Y=>!Y.disabled),K=q.find(Y=>Y.ref.current===document.activeElement),V=Zo(q,T,K);V&&setTimeout(()=>V.ref.current.focus())}),Ze=l.useCallback((T,q,K)=>{const V=!z.current&&!K;(y.value!==void 0&&y.value===q||V)&&(I(T),V&&(z.current=!0))},[y.value]),et=l.useCallback(()=>b?.focus(),[b]),ve=l.useCallback((T,q,K)=>{const V=!z.current&&!K;(y.value!==void 0&&y.value===q||V)&&$(T)},[y.value]),Fe=r==="popper"?pn:Wo,je=Fe===pn?{side:c,sideOffset:u,align:d,alignOffset:f,arrowPadding:m,collisionBoundary:g,collisionPadding:p,sticky:v,hideWhenDetached:h,avoidCollisions:x}:{};return a.jsx(Io,{scope:n,content:b,viewport:S,onViewportChange:E,itemRefCallback:Ze,selectedItem:j,onItemLeave:et,itemTextRefCallback:ve,focusSelectedItem:D,selectedItemText:_,position:r,isPositioned:W,searchRef:Q,children:a.jsx(_n,{as:kl,allowPinchZoom:!0,children:a.jsx(An,{asChild:!0,trapped:y.open,onMountAutoFocus:T=>{T.preventDefault()},onUnmountAutoFocus:M(o,T=>{y.trigger?.focus({preventScroll:!0}),T.preventDefault()}),children:a.jsx(Ot,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:T=>T.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:a.jsx(Fe,{role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:T=>T.preventDefault(),...w,...je,onPlaced:()=>A(!0),ref:P,style:{display:"flex",flexDirection:"column",outline:"none",...w.style},onKeyDown:M(w.onKeyDown,T=>{const q=T.ctrlKey||T.altKey||T.metaKey;if(T.key==="Tab"&&T.preventDefault(),!q&&T.key.length===1&&Re(T.key),["ArrowUp","ArrowDown","Home","End"].includes(T.key)){let V=B().filter(Y=>!Y.disabled).map(Y=>Y.ref.current);if(["ArrowUp","End"].includes(T.key)&&(V=V.slice().reverse()),["ArrowUp","ArrowDown"].includes(T.key)){const Y=T.target,X=V.indexOf(Y);V=V.slice(X+1)}setTimeout(()=>O(V)),T.preventDefault()}})})})})})})});Lo.displayName=Ml;var Al="SelectItemAlignedPosition",Wo=l.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,s=Ne(Ie,n),i=Te(Ie,n),[c,u]=l.useState(null),[d,f]=l.useState(null),m=F(t,P=>f(P)),g=Bt(n),p=l.useRef(!1),v=l.useRef(!0),{viewport:h,selectedItem:x,selectedItemText:w,focusSelectedItem:y}=i,b=l.useCallback(()=>{if(s.trigger&&s.valueNode&&c&&d&&h&&x&&w){const P=s.trigger.getBoundingClientRect(),j=d.getBoundingClientRect(),I=s.valueNode.getBoundingClientRect(),_=w.getBoundingClientRect();if(s.dir!=="rtl"){const Y=_.left-j.left,X=I.left-Y,te=P.left-X,Oe=P.width+te,Ut=Math.max(Oe,j.width),Xt=window.innerWidth-re,Gt=sr(X,[re,Math.max(re,Xt-Ut)]);c.style.minWidth=Oe+"px",c.style.left=Gt+"px"}else{const Y=j.right-_.right,X=window.innerWidth-I.right-Y,te=window.innerWidth-P.right-X,Oe=P.width+te,Ut=Math.max(Oe,j.width),Xt=window.innerWidth-re,Gt=sr(X,[re,Math.max(re,Xt-Ut)]);c.style.minWidth=Oe+"px",c.style.right=Gt+"px"}const $=g(),B=window.innerHeight-re*2,W=h.scrollHeight,A=window.getComputedStyle(d),z=parseInt(A.borderTopWidth,10),O=parseInt(A.paddingTop,10),D=parseInt(A.borderBottomWidth,10),R=parseInt(A.paddingBottom,10),H=z+O+W+R+D,Q=Math.min(x.offsetHeight*5,H),Re=window.getComputedStyle(h),Ze=parseInt(Re.paddingTop,10),et=parseInt(Re.paddingBottom,10),ve=P.top+P.height/2-re,Fe=B-ve,je=x.offsetHeight/2,T=x.offsetTop+je,q=z+O+T,K=H-q;if(q<=ve){const Y=$.length>0&&x===$[$.length-1].ref.current;c.style.bottom="0px";const X=d.clientHeight-h.offsetTop-h.offsetHeight,te=Math.max(Fe,je+(Y?et:0)+X+D),Oe=q+te;c.style.height=Oe+"px"}else{const Y=$.length>0&&x===$[0].ref.current;c.style.top="0px";const te=Math.max(ve,z+h.offsetTop+(Y?Ze:0)+je)+K;c.style.height=te+"px",h.scrollTop=q-ve+h.offsetTop}c.style.margin=`${re}px 0`,c.style.minHeight=Q+"px",c.style.maxHeight=B+"px",r?.(),requestAnimationFrame(()=>p.current=!0)}},[g,s.trigger,s.valueNode,c,d,h,x,w,s.dir,r]);G(()=>b(),[b]);const[C,S]=l.useState();G(()=>{d&&S(window.getComputedStyle(d).zIndex)},[d]);const E=l.useCallback(P=>{P&&v.current===!0&&(b(),y?.(),v.current=!1)},[b,y]);return a.jsx(Dl,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:p,onScrollButtonChange:E,children:a.jsx("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:a.jsx(k.div,{...o,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Wo.displayName=Al;var _l="SelectPopperPosition",pn=l.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=re,...s}=e,i=Ht(n);return a.jsx(Zr,{...i,...s,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...s.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)"}})});pn.displayName=_l;var[Dl,Dn]=Je(Ie,{}),gn="SelectViewport",Fo=l.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=Te(gn,n),i=Dn(gn,n),c=F(t,s.onViewportChange),u=l.useRef(0);return a.jsxs(a.Fragment,{children:[a.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}),a.jsx($t.Slot,{scope:n,children:a.jsx(k.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:M(o.onScroll,d=>{const f=d.currentTarget,{contentWrapper:m,shouldExpandOnScrollRef:g}=i;if(g?.current&&m){const p=Math.abs(u.current-f.scrollTop);if(p>0){const v=window.innerHeight-re*2,h=parseFloat(m.style.minHeight),x=parseFloat(m.style.height),w=Math.max(h,x);if(w<v){const y=w+p,b=Math.min(v,y),C=y-b;m.style.height=b+"px",m.style.bottom==="0px"&&(f.scrollTop=C>0?C:0,m.style.justifyContent="flex-end")}}}u.current=f.scrollTop})})})]})});Fo.displayName=gn;var $o="SelectGroup",[Il,Ll]=Je($o),Wl=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=we();return a.jsx(Il,{scope:n,id:o,children:a.jsx(k.div,{role:"group","aria-labelledby":o,...r,ref:t})})});Wl.displayName=$o;var Bo="SelectLabel",Fl=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Ll(Bo,n);return a.jsx(k.div,{id:o.id,...r,ref:t})});Fl.displayName=Bo;var Nt="SelectItem",[$l,Ho]=Je(Nt),Vo=l.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...i}=e,c=Ne(Nt,n),u=Te(Nt,n),d=c.value===r,[f,m]=l.useState(s??""),[g,p]=l.useState(!1),v=F(t,y=>u.itemRefCallback?.(y,r,o)),h=we(),x=l.useRef("touch"),w=()=>{o||(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 a.jsx($l,{scope:n,value:r,disabled:o,textId:h,isSelected:d,onItemTextChange:l.useCallback(y=>{m(b=>b||(y?.textContent??"").trim())},[]),children:a.jsx($t.ItemSlot,{scope:n,value:r,disabled:o,textValue:f,children:a.jsx(k.div,{role:"option","aria-labelledby":h,"data-highlighted":g?"":void 0,"aria-selected":d&&g,"data-state":d?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...i,ref:v,onFocus:M(i.onFocus,()=>p(!0)),onBlur:M(i.onBlur,()=>p(!1)),onClick:M(i.onClick,()=>{x.current!=="mouse"&&w()}),onPointerUp:M(i.onPointerUp,()=>{x.current==="mouse"&&w()}),onPointerDown:M(i.onPointerDown,y=>{x.current=y.pointerType}),onPointerMove:M(i.onPointerMove,y=>{x.current=y.pointerType,o?u.onItemLeave?.():x.current==="mouse"&&y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:M(i.onPointerLeave,y=>{y.currentTarget===document.activeElement&&u.onItemLeave?.()}),onKeyDown:M(i.onKeyDown,y=>{u.searchRef?.current!==""&&y.key===" "||(Pl.includes(y.key)&&w(),y.key===" "&&y.preventDefault())})})})})});Vo.displayName=Nt;var tt="SelectItemText",Yo=l.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,i=Ne(tt,n),c=Te(tt,n),u=Ho(tt,n),d=Rl(tt,n),[f,m]=l.useState(null),g=F(t,w=>m(w),u.onItemTextChange,w=>c.itemTextRefCallback?.(w,u.value,u.disabled)),p=f?.textContent,v=l.useMemo(()=>a.jsx("option",{value:u.value,disabled:u.disabled,children:p},u.value),[u.disabled,u.value,p]),{onNativeOptionAdd:h,onNativeOptionRemove:x}=d;return G(()=>(h(v),()=>x(v)),[h,x,v]),a.jsxs(a.Fragment,{children:[a.jsx(k.span,{id:u.textId,...s,ref:g}),u.isSelected&&i.valueNode&&!i.valueNodeHasChildren?jt.createPortal(s.children,i.valueNode):null]})});Yo.displayName=tt;var zo="SelectItemIndicator",qo=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Ho(zo,n).isSelected?a.jsx(k.span,{"aria-hidden":!0,...r,ref:t}):null});qo.displayName=zo;var vn="SelectScrollUpButton",Uo=l.forwardRef((e,t)=>{const n=Te(vn,e.__scopeSelect),r=Dn(vn,e.__scopeSelect),[o,s]=l.useState(!1),i=F(t,r.onScrollButtonChange);return G(()=>{if(n.viewport&&n.isPositioned){let c=function(){const d=u.scrollTop>0;s(d)};const u=n.viewport;return c(),u.addEventListener("scroll",c),()=>u.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),o?a.jsx(Go,{...e,ref:i,onAutoScroll:()=>{const{viewport:c,selectedItem:u}=n;c&&u&&(c.scrollTop=c.scrollTop-u.offsetHeight)}}):null});Uo.displayName=vn;var xn="SelectScrollDownButton",Xo=l.forwardRef((e,t)=>{const n=Te(xn,e.__scopeSelect),r=Dn(xn,e.__scopeSelect),[o,s]=l.useState(!1),i=F(t,r.onScrollButtonChange);return G(()=>{if(n.viewport&&n.isPositioned){let c=function(){const d=u.scrollHeight-u.clientHeight,f=Math.ceil(u.scrollTop)<d;s(f)};const u=n.viewport;return c(),u.addEventListener("scroll",c),()=>u.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),o?a.jsx(Go,{...e,ref:i,onAutoScroll:()=>{const{viewport:c,selectedItem:u}=n;c&&u&&(c.scrollTop=c.scrollTop+u.offsetHeight)}}):null});Xo.displayName=xn;var Go=l.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=Te("SelectScrollButton",n),i=l.useRef(null),c=Bt(n),u=l.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return l.useEffect(()=>()=>u(),[u]),G(()=>{c().find(f=>f.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[c]),a.jsx(k.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:M(o.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(r,50))}),onPointerMove:M(o.onPointerMove,()=>{s.onItemLeave?.(),i.current===null&&(i.current=window.setInterval(r,50))}),onPointerLeave:M(o.onPointerLeave,()=>{u()})})}),Bl="SelectSeparator",Hl=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return a.jsx(k.div,{"aria-hidden":!0,...r,ref:t})});Hl.displayName=Bl;var yn="SelectArrow",Vl=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Ht(n),s=Ne(yn,n),i=Te(yn,n);return s.open&&i.position==="popper"?a.jsx(eo,{...o,...r,ref:t}):null});Vl.displayName=yn;var Yl="SelectBubbleInput",Ko=l.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=l.useRef(null),s=F(r,o),i=xo(t);return l.useEffect(()=>{const c=o.current;if(!c)return;const u=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(u,"value").set;if(i!==t&&f){const m=new Event("change",{bubbles:!0});f.call(c,t),c.dispatchEvent(m)}},[i,t]),a.jsx(k.select,{...n,style:{...to,...n.style},ref:s,defaultValue:t})});Ko.displayName=Yl;function Qo(e){return e===""||e===void 0}function Jo(e){const t=Ae(e),n=l.useRef(""),r=l.useRef(0),o=l.useCallback(i=>{const c=n.current+i;t(c),(function u(d){n.current=d,window.clearTimeout(r.current),d!==""&&(r.current=window.setTimeout(()=>u(""),1e3))})(c)},[t]),s=l.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return l.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,s]}function Zo(e,t,n){const o=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let i=zl(e,Math.max(s,0));o.length===1&&(i=i.filter(d=>d!==n));const u=i.find(d=>d.textValue.toLowerCase().startsWith(o.toLowerCase()));return u!==n?u:void 0}function zl(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var ql=Ro,Ul=Oo,Xl=ko,Gl=Ao,Kl=_o,Ql=Do,Jl=Fo,Zl=Vo,eu=Yo,tu=qo,nu=Uo,ru=Xo;function nt({...e}){return a.jsx(ql,{...e})}function rt({...e}){return a.jsx(Xl,{...e})}function ot({className:e,children:t,...n}){return a.jsxs(Ul,{className:U("flex h-10 w-full items-center justify-between rounded-md border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,a.jsx(Gl,{asChild:!0,children:a.jsx(bn,{className:"h-4 w-4 opacity-50"})})]})}function ou({className:e,...t}){return a.jsx(nu,{className:U("flex cursor-default items-center justify-center py-1",e),...t,children:a.jsx(ri,{className:"h-4 w-4"})})}function su({className:e,...t}){return a.jsx(ru,{className:U("flex cursor-default items-center justify-center py-1",e),...t,children:a.jsx(bn,{className:"h-4 w-4"})})}function st({className:e,children:t,position:n="popper",...r}){return a.jsx(Kl,{children:a.jsxs(Ql,{className:U("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:[a.jsx(ou,{}),a.jsx(Jl,{className:U("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),a.jsx(su,{})]})})}function J({className:e,children:t,...n}){return a.jsxs(Zl,{className:U("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[a.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:a.jsx(tu,{children:a.jsx(Nr,{className:"h-4 w-4"})})}),a.jsx(eu,{children:t})]})}const In={},iu=Symbol((In?"production":void 0)!=="production"?"RESET":""),es=e=>typeof e?.then=="function";function au(e=()=>{try{return window.localStorage}catch(n){(In?"production":void 0)!=="production"&&typeof window<"u"&&console.warn(n);return}},t){var n;let r,o;const s={getItem:(u,d)=>{var f,m;const g=v=>{if(v=v||"",r!==v){try{o=JSON.parse(v,t?.reviver)}catch{return d}r=v}return o},p=(m=(f=e())==null?void 0:f.getItem(u))!=null?m:null;return es(p)?p.then(g):g(p)},setItem:(u,d)=>{var f;return(f=e())==null?void 0:f.setItem(u,JSON.stringify(d,void 0))},removeItem:u=>{var d;return(d=e())==null?void 0:d.removeItem(u)}},i=u=>(d,f,m)=>u(d,g=>{let p;try{p=JSON.parse(g||"")}catch{p=m}f(p)});let c;try{c=(n=e())==null?void 0:n.subscribe}catch{}return!c&&typeof window<"u"&&typeof window.addEventListener=="function"&&window.Storage&&(c=(u,d)=>{if(!(e()instanceof window.Storage))return()=>{};const f=m=>{m.storageArea===e()&&m.key===u&&d(m.newValue)};return window.addEventListener("storage",f),()=>{window.removeEventListener("storage",f)}}),c&&(s.subscribe=i(c)),s}const cu=au();function lu(e,t,n=cu,r){const o=sn(t);return(In?"production":void 0)!=="production"&&(o.debugPrivate=!0),o.onMount=i=>{i(n.getItem(e,t));let c;return n.subscribe&&(c=n.subscribe(e,i,t)),c},sn(i=>i(o),(i,c,u)=>{const d=typeof u=="function"?u(i(o)):u;return d===iu?(c(o,t),n.removeItem(e)):es(d)?d.then(f=>(c(o,f),n.setItem(e,f))):(c(o,d),n.setItem(e,d))})}const uu={soundType:"none"},ts=lu("claude-code-viewer-notification-settings",uu),Wf=sn(e=>e(ts).soundType!=="none"),du={beep:{frequency:[800],duration:.15,type:"sine",volume:.3},chime:{frequency:[523,659,784],duration:.4,type:"sine",volume:.2},ping:{frequency:[1e3],duration:.1,type:"triangle",volume:.4},pop:{frequency:[400,600],duration:.08,type:"square",volume:.2}};function fu(e){if(e!=="none")try{const t=du[e];if(!t){console.warn(`Unknown sound type: ${e}`);return}const n=new(window.AudioContext||window.webkitAudioContext);t.frequency.forEach((r,o)=>{const s=n.createOscillator(),i=n.createGain();s.connect(i),i.connect(n.destination),s.frequency.setValueAtTime(r,n.currentTime),s.type=t.type;const c=n.currentTime+o*.05;i.gain.setValueAtTime(t.volume,c),i.gain.exponentialRampToValueAtTime(.01,c+t.duration),s.start(c),s.stop(c+t.duration)})}catch(t){console.warn("Failed to play notification sound:",t)}}function mu(e){return{none:a.jsx(N,{id:"notification.none"}),beep:a.jsx(N,{id:"notification.beep"}),chime:a.jsx(N,{id:"notification.chime"}),ping:a.jsx(N,{id:"notification.ping"}),pop:a.jsx(N,{id:"notification.pop"})}[e]}function hu(){return["none","beep","chime","ping","pop"]}const pu=({showLabels:e=!0,showDescriptions:t=!0,className:n=""})=>{const r=l.useId(),[o,s]=$s(ts),i=l.useCallback(d=>{s(f=>({...f,soundType:d}))},[s]),c=l.useCallback(()=>{o.soundType!=="none"&&fu(o.soundType)},[o.soundType]),u=hu();return a.jsx("div",{className:`space-y-4 ${n}`,children:a.jsxs("div",{className:"space-y-2",children:[e&&a.jsx("label",{htmlFor:r,className:"text-sm font-medium leading-none",children:"Task completion sound"}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsxs(nt,{value:o.soundType,onValueChange:i,children:[a.jsx(ot,{id:r,className:"w-[180px]",children:a.jsx(rt,{placeholder:"音を選択"})}),a.jsx(st,{children:u.map(d=>a.jsx(J,{value:d,children:mu(d)},d))})]}),o.soundType!=="none"&&a.jsx(Bs,{variant:"outline",size:"sm",onClick:c,className:"px-3",children:a.jsx(N,{id:"notification.test"})})]}),t&&a.jsx("p",{className:"text-xs text-muted-foreground",children:a.jsx(N,{id:"notification.description"})})]})})};var Vt="Checkbox",[gu]=We(Vt),[vu,Ln]=gu(Vt);function xu(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:o,disabled:s,form:i,name:c,onCheckedChange:u,required:d,value:f="on",internal_do_not_use_render:m}=e,[g,p]=Xe({prop:n,defaultProp:o??!1,onChange:u,caller:Vt}),[v,h]=l.useState(null),[x,w]=l.useState(null),y=l.useRef(!1),b=v?!!i||!!v.closest("form"):!0,C={checked:g,disabled:s,setChecked:p,control:v,setControl:h,name:c,form:i,value:f,hasConsumerStoppedPropagationRef:y,required:d,defaultChecked:be(o)?!1:o,isFormControl:b,bubbleInput:x,setBubbleInput:w};return a.jsx(vu,{scope:t,...C,children:yu(m)?m(C):r})}var ns="CheckboxTrigger",rs=l.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},o)=>{const{control:s,value:i,disabled:c,checked:u,required:d,setControl:f,setChecked:m,hasConsumerStoppedPropagationRef:g,isFormControl:p,bubbleInput:v}=Ln(ns,e),h=F(o,f),x=l.useRef(u);return l.useEffect(()=>{const w=s?.form;if(w){const y=()=>m(x.current);return w.addEventListener("reset",y),()=>w.removeEventListener("reset",y)}},[s,m]),a.jsx(k.button,{type:"button",role:"checkbox","aria-checked":be(u)?"mixed":u,"aria-required":d,"data-state":ls(u),"data-disabled":c?"":void 0,disabled:c,value:i,...r,ref:h,onKeyDown:M(t,w=>{w.key==="Enter"&&w.preventDefault()}),onClick:M(n,w=>{m(y=>be(y)?!0:!y),v&&p&&(g.current=w.isPropagationStopped(),g.current||w.stopPropagation())})})});rs.displayName=ns;var os=l.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:s,required:i,disabled:c,value:u,onCheckedChange:d,form:f,...m}=e;return a.jsx(xu,{__scopeCheckbox:n,checked:o,defaultChecked:s,disabled:c,required:i,onCheckedChange:d,name:r,form:f,value:u,internal_do_not_use_render:({isFormControl:g})=>a.jsxs(a.Fragment,{children:[a.jsx(rs,{...m,ref:t,__scopeCheckbox:n}),g&&a.jsx(cs,{__scopeCheckbox:n})]})})});os.displayName=Vt;var ss="CheckboxIndicator",is=l.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,s=Ln(ss,n);return a.jsx(Ee,{present:r||be(s.checked)||s.checked===!0,children:a.jsx(k.span,{"data-state":ls(s.checked),"data-disabled":s.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});is.displayName=ss;var as="CheckboxBubbleInput",cs=l.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:o,checked:s,defaultChecked:i,required:c,disabled:u,name:d,value:f,form:m,bubbleInput:g,setBubbleInput:p}=Ln(as,e),v=F(n,p),h=xo(s),x=Br(r);l.useEffect(()=>{const y=g;if(!y)return;const b=window.HTMLInputElement.prototype,S=Object.getOwnPropertyDescriptor(b,"checked").set,E=!o.current;if(h!==s&&S){const P=new Event("click",{bubbles:E});y.indeterminate=be(s),S.call(y,be(s)?!1:s),y.dispatchEvent(P)}},[g,h,s,o]);const w=l.useRef(be(s)?!1:s);return a.jsx(k.input,{type:"checkbox","aria-hidden":!0,defaultChecked:i??w.current,required:c,disabled:u,name:d,value:f,form:m,...t,tabIndex:-1,ref:v,style:{...t.style,...x,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});cs.displayName=as;function yu(e){return typeof e=="function"}function be(e){return e==="indeterminate"}function ls(e){return be(e)?"indeterminate":e?"checked":"unchecked"}function gr({className:e,...t}){return a.jsx(os,{"data-slot":"checkbox",className:U("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:a.jsx(is,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-current transition-none",children:a.jsx(Nr,{className:"size-3.5"})})})}const us=()=>{const{data:e}=an({queryKey:Yn.queryKey,queryFn:Yn.queryFn}),t=l.useMemo(()=>new Set(e.flags.filter(r=>r.enabled).map(r=>r.name)),[e.flags]),n=l.useCallback(r=>t.has(r),[t]);return{flags:e.flags,isFlagEnabled:n}},wu=({openingProjectId:e,showLabels:t=!0,showDescriptions:n=!0,className:r=""})=>{const o=l.useId(),s=l.useId(),i=l.useId(),c=l.useId(),u=l.useId(),{config:d,updateConfig:f}=Hs(),m=Vs(),{theme:g}=Ys(),{i18n:p}=zs(),{isFlagEnabled:v}=us(),h=v("tool-approval"),x=async()=>{const E={...d,hideNoUserMessageSession:!d?.hideNoUserMessageSession};f(E,{onSuccess:async()=>{await m.refetchQueries({queryKey:qs.queryKey})}})},w=async()=>{const E={...d,unifySameTitleSession:!d?.unifySameTitleSession};f(E,{onSuccess:async()=>{await m.refetchQueries({queryKey:Us(e).queryKey})}})},y=async E=>{const P={...d,enterKeyBehavior:E};f(P)},b=async E=>{const P={...d,permissionMode:E};f(P)},C=async E=>{const P={...d,locale:E};f(P)},S=async E=>{const P={...d,theme:E};f(P)};return a.jsxs("div",{className:`space-y-4 ${r}`,children:[a.jsxs("div",{className:"flex items-center space-x-2",children:[a.jsx(gr,{id:o,checked:d?.hideNoUserMessageSession,onCheckedChange:x}),t&&a.jsx("label",{htmlFor:o,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:a.jsx(N,{id:"settings.session.hide_no_user_message"})})]}),n&&a.jsx("p",{className:"text-xs text-muted-foreground mt-1 ml-6",children:a.jsx(N,{id:"settings.session.hide_no_user_message.description"})}),a.jsxs("div",{className:"flex items-center space-x-2",children:[a.jsx(gr,{id:`${o}-unify`,checked:d?.unifySameTitleSession,onCheckedChange:w}),t&&a.jsx("label",{htmlFor:`${o}-unify`,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:a.jsx(N,{id:"settings.session.unify_same_title"})})]}),n&&a.jsx("p",{className:"text-xs text-muted-foreground mt-1 ml-6",children:a.jsx(N,{id:"settings.session.unify_same_title.description"})}),a.jsxs("div",{className:"space-y-2",children:[t&&a.jsx("label",{htmlFor:s,className:"text-sm font-medium leading-none",children:a.jsx(N,{id:"settings.input.enter_key_behavior"})}),a.jsxs(nt,{value:d?.enterKeyBehavior||"shift-enter-send",onValueChange:y,children:[a.jsx(ot,{id:s,className:"w-full",children:a.jsx(rt,{placeholder:p._("Select enter key behavior")})}),a.jsxs(st,{children:[a.jsx(J,{value:"shift-enter-send",children:a.jsx(N,{id:"settings.input.enter_key_behavior.shift_enter"})}),a.jsx(J,{value:"enter-send",children:a.jsx(N,{id:"settings.input.enter_key_behavior.enter"})}),a.jsx(J,{value:"command-enter-send",children:a.jsx(N,{id:"settings.input.enter_key_behavior.command_enter"})})]})]}),n&&a.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:a.jsx(N,{id:"settings.input.enter_key_behavior.description"})})]}),a.jsxs("div",{className:"space-y-2",children:[t&&a.jsx("label",{htmlFor:i,className:"text-sm font-medium leading-none",children:a.jsx(N,{id:"settings.permission.mode"})}),a.jsxs(nt,{value:d?.permissionMode||"default",onValueChange:b,disabled:!h,children:[a.jsx(ot,{id:i,className:"w-full",children:a.jsx(rt,{placeholder:p._("Select permission mode")})}),a.jsxs(st,{children:[a.jsx(J,{value:"default",children:a.jsx(N,{id:"settings.permission.mode.default"})}),a.jsx(J,{value:"acceptEdits",children:a.jsx(N,{id:"settings.permission.mode.accept_edits"})}),a.jsx(J,{value:"bypassPermissions",children:a.jsx(N,{id:"settings.permission.mode.bypass_permissions"})}),a.jsx(J,{value:"plan",children:a.jsx(N,{id:"settings.permission.mode.plan"})})]})]}),n&&h&&a.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:a.jsx(N,{id:"settings.permission.mode.description"})}),n&&!h&&a.jsx("p",{className:"text-xs text-destructive mt-1",children:a.jsx(N,{id:"settings.permission.mode.unavailable"})})]}),a.jsxs("div",{className:"space-y-2",children:[t&&a.jsx("label",{htmlFor:c,className:"text-sm font-medium leading-none",children:a.jsx(N,{id:"settings.locale"})}),a.jsxs(nt,{value:d?.locale||"ja",onValueChange:C,children:[a.jsx(ot,{id:c,className:"w-full",children:a.jsx(rt,{placeholder:p._("Select language")})}),a.jsxs(st,{children:[a.jsx(J,{value:"ja",children:a.jsx(N,{id:"settings.locale.ja"})}),a.jsx(J,{value:"en",children:a.jsx(N,{id:"settings.locale.en"})})]})]}),n&&a.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:a.jsx(N,{id:"settings.locale.description"})})]}),a.jsxs("div",{className:"space-y-2",children:[t&&a.jsx("label",{htmlFor:u,className:"text-sm font-medium leading-none",children:a.jsx(N,{id:"settings.theme"})}),a.jsxs(nt,{value:g??"system",onValueChange:S,children:[a.jsx(ot,{id:u,className:"w-full",children:a.jsx(rt,{placeholder:p._("Select theme")})}),a.jsxs(st,{children:[a.jsx(J,{value:"light",children:a.jsx(N,{id:"settings.theme.light"})}),a.jsx(J,{value:"dark",children:a.jsx(N,{id:"settings.theme.dark"})}),a.jsx(J,{value:"system",children:a.jsx(N,{id:"settings.theme.system"})})]})]}),n&&a.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:a.jsx(N,{id:"settings.theme.description"})})]})]})},bu=Gs("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function vr({className:e,variant:t,asChild:n=!1,...r}){const o=n?Xs:"span";return a.jsx(o,{"data-slot":"badge",className:U(bu({variant:t}),e),...r})}var Yt="Collapsible",[Cu]=We(Yt),[Su,Wn]=Cu(Yt),ds=l.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:s,onOpenChange:i,...c}=e,[u,d]=Xe({prop:r,defaultProp:o??!1,onChange:i,caller:Yt});return a.jsx(Su,{scope:n,disabled:s,contentId:we(),open:u,onOpenToggle:l.useCallback(()=>d(f=>!f),[d]),children:a.jsx(k.div,{"data-state":$n(u),"data-disabled":s?"":void 0,...c,ref:t})})});ds.displayName=Yt;var fs="CollapsibleTrigger",ms=l.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=Wn(fs,n);return a.jsx(k.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":$n(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:M(e.onClick,o.onOpenToggle)})});ms.displayName=fs;var Fn="CollapsibleContent",hs=l.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Wn(Fn,e.__scopeCollapsible);return a.jsx(Ee,{present:n||o.open,children:({present:s})=>a.jsx(Pu,{...r,ref:t,present:s})})});hs.displayName=Fn;var Pu=l.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...s}=e,i=Wn(Fn,n),[c,u]=l.useState(r),d=l.useRef(null),f=F(t,d),m=l.useRef(0),g=m.current,p=l.useRef(0),v=p.current,h=i.open||c,x=l.useRef(h),w=l.useRef(void 0);return l.useEffect(()=>{const y=requestAnimationFrame(()=>x.current=!1);return()=>cancelAnimationFrame(y)},[]),G(()=>{const y=d.current;if(y){w.current=w.current||{transitionDuration:y.style.transitionDuration,animationName:y.style.animationName},y.style.transitionDuration="0s",y.style.animationName="none";const b=y.getBoundingClientRect();m.current=b.height,p.current=b.width,x.current||(y.style.transitionDuration=w.current.transitionDuration,y.style.animationName=w.current.animationName),u(r)}},[i.open,r]),a.jsx(k.div,{"data-state":$n(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!h,...s,ref:f,style:{"--radix-collapsible-content-height":g?`${g}px`:void 0,"--radix-collapsible-content-width":v?`${v}px`:void 0,...e.style},children:h&&o})});function $n(e){return e?"open":"closed"}var Eu=ds;function Nu({...e}){return a.jsx(Eu,{"data-slot":"collapsible",...e})}function Tu({...e}){return a.jsx(ms,{"data-slot":"collapsible-trigger",...e})}function Ru({...e}){return a.jsx(hs,{"data-slot":"collapsible-content",...e})}const ju=e=>{switch(e){case"tool-approval":return{title:a.jsx(N,{id:"system_info.feature.tool_approval.title"}),description:a.jsx(N,{id:"system_info.feature.tool_approval.description"})};case"agent-sdk":return{title:a.jsx(N,{id:"system_info.feature.agent_sdk.title"}),description:a.jsx(N,{id:"system_info.feature.agent_sdk.description"})};default:return{title:e,description:a.jsx(N,{id:"system_info.feature.unknown.description"})}}},Ou=()=>{const[e,t]=l.useState(!1),{data:n}=an({...Ks}),{data:r}=an({...Qs}),{flags:o}=us();return a.jsxs("div",{className:"h-full flex flex-col",children:[a.jsxs("div",{className:"border-b border-sidebar-border p-4",children:[a.jsx("h2",{className:"font-semibold text-lg",children:a.jsx(N,{id:"system_info.title"})}),a.jsx("p",{className:"text-xs text-sidebar-foreground/70",children:a.jsx(N,{id:"system_info.description"})})]}),a.jsxs("div",{className:"flex-1 overflow-y-auto p-4 space-y-6",children:[a.jsxs("div",{className:"space-y-3",children:[a.jsx("h3",{className:"font-medium text-sm text-sidebar-foreground",children:a.jsx(N,{id:"system_info.viewer_version"})}),a.jsxs("div",{className:"flex justify-between items-center pl-2",children:[a.jsx("span",{className:"text-xs text-sidebar-foreground/70",children:a.jsx(N,{id:"system_info.version_label"})}),a.jsxs(vr,{variant:"secondary",className:"text-xs font-mono",children:["v",n?.version||"Unknown"]})]})]}),a.jsxs("div",{className:"space-y-3",children:[a.jsx("h3",{className:"font-medium text-sm text-sidebar-foreground",children:a.jsx(N,{id:"system_info.claude_code"})}),a.jsxs("div",{className:"space-y-2 pl-2",children:[a.jsxs("div",{className:"space-y-1",children:[a.jsx("div",{className:"text-xs text-sidebar-foreground/70",children:a.jsx(N,{id:"system_info.executable_path"})}),a.jsx("div",{className:"text-xs text-sidebar-foreground font-mono break-all",children:r?.executablePath||a.jsx("span",{className:"text-sidebar-foreground/50",children:a.jsx(N,{id:"system_info.unknown"})})})]}),a.jsxs("div",{className:"flex justify-between items-center pt-1",children:[a.jsx("span",{className:"text-xs text-sidebar-foreground/70",children:a.jsx(N,{id:"system_info.version_label"})}),a.jsx(vr,{variant:"secondary",className:"text-xs font-mono",children:r?.version||a.jsx(N,{id:"system_info.unknown"})})]})]})]}),a.jsx("div",{className:"space-y-3",children:a.jsxs(Nu,{open:e,onOpenChange:t,children:[a.jsxs(Tu,{className:"flex w-full items-center justify-between group",children:[a.jsx("h3",{className:"font-medium text-sm text-sidebar-foreground",children:a.jsx(N,{id:"system_info.available_features"})}),e?a.jsx(bn,{className:"h-4 w-4 text-sidebar-foreground/70 group-hover:text-sidebar-foreground transition-colors"}):a.jsx(ti,{className:"h-4 w-4 text-sidebar-foreground/70 group-hover:text-sidebar-foreground transition-colors"})]}),a.jsx(Ru,{className:"pt-3",children:a.jsx(kn,{children:a.jsx("ul",{className:"space-y-2 pl-2",children:o.map(({name:s,enabled:i})=>{const c=ju(s);return a.jsxs("li",{className:"flex items-start gap-2",children:[i?a.jsx(si,{className:"h-3.5 w-3.5 text-green-500 dark:text-green-400 mt-0.5 flex-shrink-0"}):a.jsx(ai,{className:"h-3.5 w-3.5 text-sidebar-foreground/30 mt-0.5 flex-shrink-0"}),a.jsxs(mo,{children:[a.jsx(ho,{asChild:!0,children:a.jsx("span",{className:i?"text-xs text-sidebar-foreground cursor-help":"text-xs text-sidebar-foreground/50 line-through cursor-help",children:c.title})}),a.jsx(po,{side:"right",className:"max-w-xs text-xs",children:c.description})]})]},s)})})})})]})})]})]})},Ff=({projectId:e,className:t,additionalTabs:n=[],defaultActiveTab:r,headerButton:o})=>{const s={id:"settings",icon:pi,title:a.jsx(N,{id:"settings.tab.title"}),content:a.jsxs("div",{className:"h-full flex flex-col",children:[a.jsxs("div",{className:"border-b border-sidebar-border p-4",children:[a.jsx("h2",{className:"font-semibold text-lg",children:a.jsx(N,{id:"settings.title"})}),a.jsx("p",{className:"text-xs text-sidebar-foreground/70",children:a.jsx(N,{id:"settings.description"})})]}),a.jsx(l.Suspense,{fallback:a.jsx("div",{className:"flex-1 flex items-center justify-center p-4",children:a.jsx("div",{className:"text-sm text-sidebar-foreground/70",children:a.jsx(N,{id:"settings.loading"})})}),children:a.jsxs("div",{className:"flex-1 overflow-y-auto p-4 space-y-6",children:[a.jsxs("div",{className:"space-y-4",children:[a.jsx("h3",{className:"font-medium text-sm text-sidebar-foreground",children:a.jsx(N,{id:"settings.section.session_display"})}),a.jsx(wu,{openingProjectId:e??""})]}),a.jsxs("div",{className:"space-y-4",children:[a.jsx("h3",{className:"font-medium text-sm text-sidebar-foreground",children:a.jsx(N,{id:"settings.section.notifications"})}),a.jsx(pu,{})]})]})})]})},i={id:"system-info",icon:ui,title:a.jsx(N,{id:"settings.section.system_info"}),content:a.jsx(l.Suspense,{fallback:a.jsx(or,{}),children:a.jsx(Ou,{})})},c=[...n,s,i],[u,d]=l.useState(r??c[c.length-1]?.id??"settings"),[f,m]=l.useState(!!r),g=v=>{u===v&&f?m(!1):(d(v),m(!0))},p=c.find(v=>v.id===u)?.content;return a.jsxs("div",{className:U("h-full border-r border-sidebar-border transition-all duration-300 ease-in-out flex bg-sidebar text-sidebar-foreground",f?"w-72 lg:w-80":"w-12",t),children:[a.jsx("div",{className:"w-12 flex flex-col border-r border-sidebar-border bg-sidebar/50",children:a.jsxs(kn,{children:[o&&a.jsx("div",{className:"border-b border-sidebar-border",children:o}),a.jsx("div",{className:"flex flex-col p-2 space-y-1",children:c.map(v=>{const h=v.icon;return a.jsxs(mo,{children:[a.jsx(ho,{asChild:!0,children:a.jsx("button",{type:"button",onClick:()=>g(v.id),className:U("w-8 h-8 flex items-center justify-center rounded-md transition-colors","hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",u===v.id&&f?"bg-sidebar-accent text-sidebar-accent-foreground shadow-sm":"text-sidebar-foreground/70"),"data-testid":`${v.id}-tab-button`,children:a.jsx(h,{className:"w-4 h-4"})})}),a.jsx(po,{side:"right",children:a.jsx("p",{children:v.title})})]},v.id)})})]})}),f&&a.jsx("div",{className:"flex-1 flex flex-col overflow-hidden",children:a.jsx(l.Suspense,{fallback:a.jsx(or,{}),children:p})})]})},ps=6048e5,Mu=864e5,xr=Symbol.for("constructDateFrom");function Pe(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&xr in e?e[xr](t):e instanceof Date?new e.constructor(t):new Date(t)}function ie(e,t){return Pe(t||e,e)}let ku={};function zt(){return ku}function ut(e,t){const n=zt(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=ie(e,t?.in),s=o.getDay(),i=(s<r?7:0)+s-r;return o.setDate(o.getDate()-i),o.setHours(0,0,0,0),o}function Tt(e,t){return ut(e,{...t,weekStartsOn:1})}function gs(e,t){const n=ie(e,t?.in),r=n.getFullYear(),o=Pe(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const s=Tt(o),i=Pe(n,0);i.setFullYear(r,0,4),i.setHours(0,0,0,0);const c=Tt(i);return n.getTime()>=s.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function yr(e){const t=ie(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Au(e,...t){const n=Pe.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function wr(e,t){const n=ie(e,t?.in);return n.setHours(0,0,0,0),n}function _u(e,t,n){const[r,o]=Au(n?.in,e,t),s=wr(r),i=wr(o),c=+s-yr(s),u=+i-yr(i);return Math.round((c-u)/Mu)}function Du(e,t){const n=gs(e,t),r=Pe(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Tt(r)}function Iu(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Lu(e){return!(!Iu(e)&&typeof e!="number"||isNaN(+ie(e)))}function Wu(e,t){const n=ie(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const Fu={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},$u=(e,t,n)=>{let r;const o=Fu[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function qe(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Bu={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Hu={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Vu={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Yu={date:qe({formats:Bu,defaultWidth:"full"}),time:qe({formats:Hu,defaultWidth:"full"}),dateTime:qe({formats:Vu,defaultWidth:"full"})},zu={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},qu=(e,t,n,r)=>zu[e];function le(e){return(t,n)=>{const r=n?.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const i=e.defaultFormattingWidth||e.defaultWidth,c=n?.width?String(n.width):i;o=e.formattingValues[c]||e.formattingValues[i]}else{const i=e.defaultWidth,c=n?.width?String(n.width):e.defaultWidth;o=e.values[c]||e.values[i]}const s=e.argumentCallback?e.argumentCallback(t):t;return o[s]}}const Uu={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Xu={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Gu={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Ku={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Qu={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Ju={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Zu=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},ed={ordinalNumber:Zu,era:le({values:Uu,defaultWidth:"wide"}),quarter:le({values:Xu,defaultWidth:"wide",argumentCallback:e=>e-1}),month:le({values:Gu,defaultWidth:"wide"}),day:le({values:Ku,defaultWidth:"wide"}),dayPeriod:le({values:Qu,defaultWidth:"wide",formattingValues:Ju,defaultFormattingWidth:"wide"})};function ue(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],s=t.match(o);if(!s)return null;const i=s[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(c)?nd(c,m=>m.test(i)):td(c,m=>m.test(i));let d;d=e.valueCallback?e.valueCallback(u):u,d=n.valueCallback?n.valueCallback(d):d;const f=t.slice(i.length);return{value:d,rest:f}}}function td(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function nd(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function vs(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],s=t.match(e.parsePattern);if(!s)return null;let i=e.valueCallback?e.valueCallback(s[0]):s[0];i=n.valueCallback?n.valueCallback(i):i;const c=t.slice(o.length);return{value:i,rest:c}}}const rd=/^(\d+)(th|st|nd|rd)?/i,od=/\d+/i,sd={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},id={any:[/^b/i,/^(a|c)/i]},ad={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},cd={any:[/1/i,/2/i,/3/i,/4/i]},ld={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},ud={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},dd={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},fd={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},md={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},hd={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},pd={ordinalNumber:vs({matchPattern:rd,parsePattern:od,valueCallback:e=>parseInt(e,10)}),era:ue({matchPatterns:sd,defaultMatchWidth:"wide",parsePatterns:id,defaultParseWidth:"any"}),quarter:ue({matchPatterns:ad,defaultMatchWidth:"wide",parsePatterns:cd,defaultParseWidth:"any",valueCallback:e=>e+1}),month:ue({matchPatterns:ld,defaultMatchWidth:"wide",parsePatterns:ud,defaultParseWidth:"any"}),day:ue({matchPatterns:dd,defaultMatchWidth:"wide",parsePatterns:fd,defaultParseWidth:"any"}),dayPeriod:ue({matchPatterns:md,defaultMatchWidth:"any",parsePatterns:hd,defaultParseWidth:"any"})},wn={code:"en-US",formatDistance:$u,formatLong:Yu,formatRelative:qu,localize:ed,match:pd,options:{weekStartsOn:0,firstWeekContainsDate:1}};function gd(e,t){const n=ie(e,t?.in);return _u(n,Wu(n))+1}function vd(e,t){const n=ie(e,t?.in),r=+Tt(n)-+Du(n);return Math.round(r/ps)+1}function xs(e,t){const n=ie(e,t?.in),r=n.getFullYear(),o=zt(),s=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,i=Pe(t?.in||e,0);i.setFullYear(r+1,0,s),i.setHours(0,0,0,0);const c=ut(i,t),u=Pe(t?.in||e,0);u.setFullYear(r,0,s),u.setHours(0,0,0,0);const d=ut(u,t);return+n>=+c?r+1:+n>=+d?r:r-1}function xd(e,t){const n=zt(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=xs(e,t),s=Pe(t?.in||e,0);return s.setFullYear(o,0,r),s.setHours(0,0,0,0),ut(s,t)}function yd(e,t){const n=ie(e,t?.in),r=+ut(n,t)-+xd(n,t);return Math.round(r/ps)+1}function L(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const xe={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return L(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):L(n+1,2)},d(e,t){return L(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return L(e.getHours()%12||12,t.length)},H(e,t){return L(e.getHours(),t.length)},m(e,t){return L(e.getMinutes(),t.length)},s(e,t){return L(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return L(o,t.length)}},Ve={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},br={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return xe.y(e,t)},Y:function(e,t,n,r){const o=xs(e,r),s=o>0?o:1-o;if(t==="YY"){const i=s%100;return L(i,2)}return t==="Yo"?n.ordinalNumber(s,{unit:"year"}):L(s,t.length)},R:function(e,t){const n=gs(e);return L(n,t.length)},u:function(e,t){const n=e.getFullYear();return L(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return L(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return L(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return xe.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return L(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=yd(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):L(o,t.length)},I:function(e,t,n){const r=vd(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):L(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):xe.d(e,t)},D:function(e,t,n){const r=gd(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):L(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),s=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return L(s,2);case"eo":return n.ordinalNumber(s,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),s=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return L(s,t.length);case"co":return n.ordinalNumber(s,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return L(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=Ve.noon:r===0?o=Ve.midnight:o=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=Ve.evening:r>=12?o=Ve.afternoon:r>=4?o=Ve.morning:o=Ve.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return xe.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):xe.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):L(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):L(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):xe.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):xe.s(e,t)},S:function(e,t){return xe.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Sr(r);case"XXXX":case"XX":return ke(r);case"XXXXX":case"XXX":default:return ke(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Sr(r);case"xxxx":case"xx":return ke(r);case"xxxxx":case"xxx":default:return ke(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Cr(r,":");case"OOOO":default:return"GMT"+ke(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Cr(r,":");case"zzzz":default:return"GMT"+ke(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return L(r,t.length)},T:function(e,t,n){return L(+e,t.length)}};function Cr(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),s=r%60;return s===0?n+String(o):n+String(o)+t+L(s,2)}function Sr(e,t){return e%60===0?(e>0?"-":"+")+L(Math.abs(e)/60,2):ke(e,t)}function ke(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=L(Math.trunc(r/60),2),s=L(r%60,2);return n+o+t+s}const Pr=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},ys=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},wd=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return Pr(e,t);let s;switch(r){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;case"PPPP":default:s=t.dateTime({width:"full"});break}return s.replace("{{date}}",Pr(r,t)).replace("{{time}}",ys(o,t))},bd={p:ys,P:wd},Cd=/^D+$/,Sd=/^Y+$/,Pd=["D","DD","YY","YYYY"];function Ed(e){return Cd.test(e)}function Nd(e){return Sd.test(e)}function Td(e,t,n){const r=Rd(e,t,n);if(console.warn(r),Pd.includes(e))throw new RangeError(r)}function Rd(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const jd=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Od=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Md=/^'([^]*?)'?$/,kd=/''/g,Ad=/[a-zA-Z]/;function _d(e,t,n){const r=zt(),o=n?.locale??r.locale??wn,s=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,i=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,c=ie(e,n?.in);if(!Lu(c))throw new RangeError("Invalid time value");let u=t.match(Od).map(f=>{const m=f[0];if(m==="p"||m==="P"){const g=bd[m];return g(f,o.formatLong)}return f}).join("").match(jd).map(f=>{if(f==="''")return{isToken:!1,value:"'"};const m=f[0];if(m==="'")return{isToken:!1,value:Dd(f)};if(br[m])return{isToken:!0,value:f};if(m.match(Ad))throw new RangeError("Format string contains an unescaped latin alphabet character `"+m+"`");return{isToken:!1,value:f}});o.localize.preprocessor&&(u=o.localize.preprocessor(c,u));const d={firstWeekContainsDate:s,weekStartsOn:i,locale:o};return u.map(f=>{if(!f.isToken)return f.value;const m=f.value;(!n?.useAdditionalWeekYearTokens&&Nd(m)||!n?.useAdditionalDayOfYearTokens&&Ed(m))&&Td(m,t,String(e));const g=br[m[0]];return g(c,m,o.localize,d)}).join("")}function Dd(e){const t=e.match(Md);return t?t[1].replace(kd,"'"):e}const Id={lessThanXSeconds:{one:"1秒未満",other:"{{count}}秒未満",oneWithSuffix:"約1秒",otherWithSuffix:"約{{count}}秒"},xSeconds:{one:"1秒",other:"{{count}}秒"},halfAMinute:"30秒",lessThanXMinutes:{one:"1分未満",other:"{{count}}分未満",oneWithSuffix:"約1分",otherWithSuffix:"約{{count}}分"},xMinutes:{one:"1分",other:"{{count}}分"},aboutXHours:{one:"約1時間",other:"約{{count}}時間"},xHours:{one:"1時間",other:"{{count}}時間"},xDays:{one:"1日",other:"{{count}}日"},aboutXWeeks:{one:"約1週間",other:"約{{count}}週間"},xWeeks:{one:"1週間",other:"{{count}}週間"},aboutXMonths:{one:"約1か月",other:"約{{count}}か月"},xMonths:{one:"1か月",other:"{{count}}か月"},aboutXYears:{one:"約1年",other:"約{{count}}年"},xYears:{one:"1年",other:"{{count}}年"},overXYears:{one:"1年以上",other:"{{count}}年以上"},almostXYears:{one:"1年近く",other:"{{count}}年近く"}},Ld=(e,t,n)=>{n=n||{};let r;const o=Id[e];return typeof o=="string"?r=o:t===1?n.addSuffix&&o.oneWithSuffix?r=o.oneWithSuffix:r=o.one:n.addSuffix&&o.otherWithSuffix?r=o.otherWithSuffix.replace("{{count}}",String(t)):r=o.other.replace("{{count}}",String(t)),n.addSuffix?n.comparison&&n.comparison>0?r+"後":r+"前":r},Wd={full:"y年M月d日EEEE",long:"y年M月d日",medium:"y/MM/dd",short:"y/MM/dd"},Fd={full:"H時mm分ss秒 zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},$d={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Bd={date:qe({formats:Wd,defaultWidth:"full"}),time:qe({formats:Fd,defaultWidth:"full"}),dateTime:qe({formats:$d,defaultWidth:"full"})},Hd={lastWeek:"先週のeeeeのp",yesterday:"昨日のp",today:"今日のp",tomorrow:"明日のp",nextWeek:"翌週のeeeeのp",other:"P"},Vd=(e,t,n,r)=>Hd[e],Yd={narrow:["BC","AC"],abbreviated:["紀元前","西暦"],wide:["紀元前","西暦"]},zd={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["第1四半期","第2四半期","第3四半期","第4四半期"]},qd={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]},Ud={narrow:["日","月","火","水","木","金","土"],short:["日","月","火","水","木","金","土"],abbreviated:["日","月","火","水","木","金","土"],wide:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"]},Xd={narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},Gd={narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},Kd=(e,t)=>{const n=Number(e);switch(String(t?.unit)){case"year":return`${n}年`;case"quarter":return`第${n}四半期`;case"month":return`${n}月`;case"week":return`第${n}週`;case"date":return`${n}日`;case"hour":return`${n}時`;case"minute":return`${n}分`;case"second":return`${n}秒`;default:return`${n}`}},Qd={ordinalNumber:Kd,era:le({values:Yd,defaultWidth:"wide"}),quarter:le({values:zd,defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:le({values:qd,defaultWidth:"wide"}),day:le({values:Ud,defaultWidth:"wide"}),dayPeriod:le({values:Xd,defaultWidth:"wide",formattingValues:Gd,defaultFormattingWidth:"wide"})},Jd=/^第?\d+(年|四半期|月|週|日|時|分|秒)?/i,Zd=/\d+/i,ef={narrow:/^(B\.?C\.?|A\.?D\.?)/i,abbreviated:/^(紀元[前後]|西暦)/i,wide:/^(紀元[前後]|西暦)/i},tf={narrow:[/^B/i,/^A/i],any:[/^(紀元前)/i,/^(西暦|紀元後)/i]},nf={narrow:/^[1234]/i,abbreviated:/^Q[1234]/i,wide:/^第[1234一二三四1234]四半期/i},rf={any:[/(1|一|1)/i,/(2|二|2)/i,/(3|三|3)/i,/(4|四|4)/i]},of={narrow:/^([123456789]|1[012])/,abbreviated:/^([123456789]|1[012])月/i,wide:/^([123456789]|1[012])月/i},sf={any:[/^1\D/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},af={narrow:/^[日月火水木金土]/,short:/^[日月火水木金土]/,abbreviated:/^[日月火水木金土]/,wide:/^[日月火水木金土]曜日/},cf={any:[/^日/,/^月/,/^火/,/^水/,/^木/,/^金/,/^土/]},lf={any:/^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i},uf={any:{am:/^(A|午前)/i,pm:/^(P|午後)/i,midnight:/^深夜|真夜中/i,noon:/^正午/i,morning:/^朝/i,afternoon:/^午後/i,evening:/^夜/i,night:/^深夜/i}},df={ordinalNumber:vs({matchPattern:Jd,parsePattern:Zd,valueCallback:function(e){return parseInt(e,10)}}),era:ue({matchPatterns:ef,defaultMatchWidth:"wide",parsePatterns:tf,defaultParseWidth:"any"}),quarter:ue({matchPatterns:nf,defaultMatchWidth:"wide",parsePatterns:rf,defaultParseWidth:"any",valueCallback:e=>e+1}),month:ue({matchPatterns:of,defaultMatchWidth:"wide",parsePatterns:sf,defaultParseWidth:"any"}),day:ue({matchPatterns:af,defaultMatchWidth:"wide",parsePatterns:cf,defaultParseWidth:"any"}),dayPeriod:ue({matchPatterns:lf,defaultMatchWidth:"any",parsePatterns:uf,defaultParseWidth:"any"})},ff={code:"ja",formatDistance:Ld,formatLong:Bd,formatRelative:Vd,localize:Qd,match:df,options:{weekStartsOn:0,firstWeekContainsDate:1}},mf=e=>{switch(e){case"ja":return ff;case"en":return wn;default:return wn}},$f=(e,t)=>{const{locale:n="en",target:r="time"}=t,o=typeof e=="string"?new Date(e):e,s=mf(n),c=((u,d)=>{if(u==="ja")switch(d){case"month":return"yyyy年M月";case"day":return"yyyy年M月d日";case"time":return"yyyy年M月d日 HH:mm"}else if(u==="en")switch(d){case"month":return"MM/yyyy";case"day":return"MM/dd/yyyy";case"time":return"MM/dd/yyyy HH:mm"}switch(d){case"month":return"yyyy-MM";case"day":return"yyyy-MM-dd";case"time":return"yyyy-MM-dd HH:mm"}})(n,r);return _d(o,c,{locale:s})};var qt="Dialog",[ws]=We(qt),[hf,ae]=ws(qt),bs=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:i=!0}=e,c=l.useRef(null),u=l.useRef(null),[d,f]=Xe({prop:r,defaultProp:o??!1,onChange:s,caller:qt});return a.jsx(hf,{scope:t,triggerRef:c,contentRef:u,contentId:we(),titleId:we(),descriptionId:we(),open:d,onOpenChange:f,onOpenToggle:l.useCallback(()=>f(m=>!m),[f]),modal:i,children:n})};bs.displayName=qt;var Cs="DialogTrigger",Ss=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ae(Cs,n),s=F(t,o.triggerRef);return a.jsx(k.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Vn(o.open),...r,ref:s,onClick:M(e.onClick,o.onOpenToggle)})});Ss.displayName=Cs;var Bn="DialogPortal",[pf,Ps]=ws(Bn,{forceMount:void 0}),Es=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=ae(Bn,t);return a.jsx(pf,{scope:t,forceMount:n,children:l.Children.map(r,i=>a.jsx(Ee,{present:n||s.open,children:a.jsx(It,{asChild:!0,container:o,children:i})}))})};Es.displayName=Bn;var Rt="DialogOverlay",Ns=l.forwardRef((e,t)=>{const n=Ps(Rt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=ae(Rt,e.__scopeDialog);return s.modal?a.jsx(Ee,{present:r||s.open,children:a.jsx(vf,{...o,ref:t})}):null});Ns.displayName=Rt;var gf=it("DialogOverlay.RemoveScroll"),vf=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ae(Rt,n);return a.jsx(_n,{as:gf,allowPinchZoom:!0,shards:[o.contentRef],children:a.jsx(k.div,{"data-state":Vn(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Le="DialogContent",Ts=l.forwardRef((e,t)=>{const n=Ps(Le,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=ae(Le,e.__scopeDialog);return a.jsx(Ee,{present:r||s.open,children:s.modal?a.jsx(xf,{...o,ref:t}):a.jsx(yf,{...o,ref:t})})});Ts.displayName=Le;var xf=l.forwardRef((e,t)=>{const n=ae(Le,e.__scopeDialog),r=l.useRef(null),o=F(t,n.contentRef,r);return l.useEffect(()=>{const s=r.current;if(s)return wo(s)},[]),a.jsx(Rs,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:M(e.onCloseAutoFocus,s=>{s.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:M(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,c=i.button===0&&i.ctrlKey===!0;(i.button===2||c)&&s.preventDefault()}),onFocusOutside:M(e.onFocusOutside,s=>s.preventDefault())})}),yf=l.forwardRef((e,t)=>{const n=ae(Le,e.__scopeDialog),r=l.useRef(!1),o=l.useRef(!1);return a.jsx(Rs,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||n.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=s.target;n.triggerRef.current?.contains(i)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),Rs=l.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...i}=e,c=ae(Le,n),u=l.useRef(null),d=F(t,u);return go(),a.jsxs(a.Fragment,{children:[a.jsx(An,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:a.jsx(Ot,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":Vn(c.open),...i,ref:d,onDismiss:()=>c.onOpenChange(!1)})}),a.jsxs(a.Fragment,{children:[a.jsx(wf,{titleId:c.titleId}),a.jsx(Cf,{contentRef:u,descriptionId:c.descriptionId})]})]})}),Hn="DialogTitle",js=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ae(Hn,n);return a.jsx(k.h2,{id:o.titleId,...r,ref:t})});js.displayName=Hn;var Os="DialogDescription",Ms=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ae(Os,n);return a.jsx(k.p,{id:o.descriptionId,...r,ref:t})});Ms.displayName=Os;var ks="DialogClose",As=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ae(ks,n);return a.jsx(k.button,{type:"button",...r,ref:t,onClick:M(e.onClick,()=>o.onOpenChange(!1))})});As.displayName=ks;function Vn(e){return e?"open":"closed"}var _s="DialogTitleWarning",[Bf,Ds]=xi(_s,{contentName:Le,titleName:Hn,docsSlug:"dialog"}),wf=({titleId:e})=>{const t=Ds(_s),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
102
+
103
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
104
+
105
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return l.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},bf="DialogDescriptionWarning",Cf=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ds(bf).contentName}}.`;return l.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Sf=bs,Pf=Ss,Ef=Es,Nf=Ns,Tf=Ts,Rf=js,jf=Ms,Of=As;function Hf({...e}){return a.jsx(Sf,{"data-slot":"dialog",...e})}function Vf({...e}){return a.jsx(Pf,{"data-slot":"dialog-trigger",...e})}function Mf({...e}){return a.jsx(Ef,{"data-slot":"dialog-portal",...e})}function kf({className:e,...t}){return a.jsx(Nf,{"data-slot":"dialog-overlay",className:U("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function Yf({className:e,children:t,showCloseButton:n=!0,...r}){return a.jsxs(Mf,{"data-slot":"dialog-portal",children:[a.jsx(kf,{}),a.jsxs(Tf,{"data-slot":"dialog-content",className:U("bg-background 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 fixed top-[50%] left-[50%] z-50 grid w-full translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200",e),...r,children:[t,n&&a.jsxs(Of,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[a.jsx(vi,{}),a.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function zf({className:e,...t}){return a.jsx("div",{"data-slot":"dialog-header",className:U("flex flex-col gap-2 text-center sm:text-left",e),...t})}function qf({className:e,...t}){return a.jsx("div",{"data-slot":"dialog-footer",className:U("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function Uf({className:e,...t}){return a.jsx(Rf,{"data-slot":"dialog-title",className:U("text-lg leading-none font-semibold",e),...t})}function Xf({className:e,...t}){return a.jsx(jf,{"data-slot":"dialog-description",className:U("text-muted-foreground text-sm",e),...t})}const Af=l.forwardRef(({className:e,children:t,...n},r)=>a.jsx("label",{ref:r,className:U("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",e),...n,children:t}));Af.displayName="Label";export{or as $,Jr as A,vr as B,gr as C,Hf as D,Ot as E,Df as F,Ff as G,Zr as H,eo as I,ts as J,Wf as K,Af as L,fu as M,ri as N,ot as O,If as P,rt as Q,Qr as R,nt as S,st as T,J as U,Nr as V,mo as W,vi as X,ho as Y,po as Z,ui as _,ti as a,kn as a0,pi as a1,Ou as a2,wu as a3,pu as a4,Vf as b,Yf as c,zf as d,Uf as e,$f as f,Xf as g,qf as h,fi as i,Nu as j,Tu as k,bn as l,Ru as m,Dt as n,Xe as o,We as p,we as q,k as r,M as s,Ee as t,Lf as u,It as v,wo as w,_n as x,go as y,An as z};
@@ -0,0 +1 @@
1
+ const e=JSON.parse('{"Available commands":["利用可能なコマンド"],"Available files and directories":["利用可能なファイルとディレクトリ"],"Close sidebar":["サイドバーを閉じる"],"Compare from":["比較元"],"Compare to":["比較先"],"Failed to commit":["コミットに失敗しました"],"Failed to commit and push":["コミットとプッシュに失敗しました"],"Failed to push":["プッシュに失敗しました"],"Message input with completion support":["補完機能付きメッセージ入力"],"Reload MCP servers":["MCPサーバーを再読み込み"],"Retry Push":["プッシュを再試行"],"Select enter key behavior":["Enterキーの動作を選択"],"Select language":["言語を選択"],"Select permission mode":["権限モードを選択"],"Select theme":["テーマを選択"],"Type your message here... (Start with / for commands, @ for files, Command+Enter to send)":["ここにメッセージを入力... (/でコマンド、@でファイル、Command+Enterで送信)"],"Type your message here... (Start with / for commands, @ for files, Enter to send)":["ここにメッセージを入力... (/でコマンド、@でファイル、Enterで送信)"],"Type your message here... (Start with / for commands, @ for files, Shift+Enter to send)":["ここにメッセージを入力... (/でコマンド、@でファイル、Shift+Enterで送信)"],"Uncommitted changes":["未コミットの変更"],"assistant.thinking":["思考中"],"assistant.tool.input_parameters":["入力パラメータ"],"assistant.tool.message_count":[["count"],"件のメッセージ"],"assistant.tool.result":["ツール実行結果"],"assistant.tool.task_id":["タスクID"],"assistant.tool.tool_id":["ツールID"],"assistant.tool.view_task":["タスクを表示"],"assistant.tool.view_task_details":["タスクを確認"],"chat.attach_file":["添付"],"chat.autocomplete.active":["オートコンプリート有効"],"chat.button.start":["チャット開始"],"chat.error.send_failed":["メッセージの送信に失敗しました。もう一度お試しください。"],"chat.modal.title":["新しいチャットを開始"],"chat.placeholder.continue.command_enter":["メッセージを入力... (/でコマンド、@でファイル、Command+Enterで送信)"],"chat.placeholder.continue.enter":["メッセージを入力... (/でコマンド、@でファイル、Enterで送信)"],"chat.placeholder.continue.shift_enter":["メッセージを入力... (/でコマンド、@でファイル、Shift+Enterで送信)"],"chat.placeholder.resume.command_enter":["メッセージを入力... (/でコマンド、@でファイル、Command+Enterで送信)"],"chat.placeholder.resume.enter":["メッセージを入力... (/でコマンド、@でファイル、Enterで送信)"],"chat.placeholder.resume.shift_enter":["メッセージを入力... (/でコマンド、@でファイル、Shift+Enterで送信)"],"chat.resume":["再開"],"chat.scheduled_send.failed":["メッセージの予約に失敗しました"],"chat.scheduled_send.success":["メッセージを予約しました"],"chat.scheduled_send.success_description":["スケジューラタブで確認・管理できます"],"chat.send":["送信"],"chat.send_mode.immediate":["今すぐ送信"],"chat.send_mode.label":["送信モード"],"chat.send_mode.scheduled":["予約送信"],"chat.send_mode.scheduled_time":["送信予定時刻"],"chat.status.processing":["処理中..."],"common.action.cancel":["キャンセル"],"common.cancel":["キャンセル"],"common.create":["作成"],"common.delete":["削除"],"common.deleting":["削除中..."],"common.error":["エラー"],"common.loading":["読み込み中..."],"common.reload":["再読み込み"],"common.saving":["保存中..."],"common.update":["更新"],"control.branch":["ブランチ"],"control.git":["Git"],"control.metadata":["メタデータ"],"control.new":["新規"],"control.new_chat":["新しいチャット"],"control.open_git_dialog":["Gitダイアログを開く"],"control.project_path":["プロジェクトパス"],"control.scroll_to_bottom":["ボトムにスクロール"],"control.scroll_to_top":["トップにスクロール"],"control.session_id":["セッションID"],"conversation.error.raw_content":["生データ:"],"conversation.error.report_issue":["この問題を報告"],"conversation.error.schema":["スキーマエラー"],"conversation.error.schema_validation":["スキーマ検証エラー"],"conversation.error.schema_validation.description":["この会話エントリの解析に失敗しました。フォーマットの変更または解析の問題が考えられます。"],"cron_builder.cron_expression":["Cron式"],"cron_builder.custom":["カスタム"],"cron_builder.daily":["毎日"],"cron_builder.day_of_week":["曜日"],"cron_builder.expression":["Cron式"],"cron_builder.friday":["金曜日"],"cron_builder.hour":["時 (0-23)"],"cron_builder.hourly":["毎時"],"cron_builder.minute":["分 (0-59)"],"cron_builder.monday":["月曜日"],"cron_builder.preview":["プレビュー"],"cron_builder.saturday":["土曜日"],"cron_builder.schedule_type":["スケジュールタイプ"],"cron_builder.sunday":["日曜日"],"cron_builder.thursday":["木曜日"],"cron_builder.tuesday":["火曜日"],"cron_builder.wednesday":["水曜日"],"cron_builder.weekly":["毎週"],"diff.commit":["コミット"],"diff.commit.changes":["変更をコミット"],"diff.commit.message":["コミットメッセージ"],"diff.commit.push":["コミット&プッシュ"],"diff.committing":["コミット中..."],"diff.committing.pushing":["コミット&プッシュ中..."],"diff.deselect.all":["すべて選択解除"],"diff.enter.message":["コミットメッセージを入力"],"diff.files":["ファイル"],"diff.files.changed":["ファイルが変更されました"],"diff.loading":["差分を読み込み中..."],"diff.push":["プッシュ"],"diff.pushing":["プッシュ中..."],"diff.select.all":["すべて選択"],"diff.select.file":["少なくとも1つのファイルを選択してください"],"directory_picker.current":["現在:"],"directory_picker.loading":["読み込み中..."],"directory_picker.no_directories":["ディレクトリが見つかりません"],"directory_picker.show_hidden":["隠しファイルを表示"],"mcp.error.load_failed":["MCPサーバーの読み込みに失敗しました: ",["error"]],"mcp.no.servers":["MCPサーバーが見つかりません"],"mcp.title":["MCPサーバー"],"notfound.button.go_home":["ホームに戻る"],"notfound.default.description":["お探しのページは存在しないか、移動されました。"],"notfound.default.title":["ページが見つかりません"],"notfound.project.description":["お探しのプロジェクトは存在しません。"],"notfound.project.title":["プロジェクトが見つかりません"],"notfound.session.description":["お探しのセッションは存在しません。"],"notfound.session.title":["セッションが見つかりません"],"notification.beep":["ビープ音"],"notification.chime":["チャイム"],"notification.description":["Claude Code のタスクが完了した時に再生する音を選択してください"],"notification.none":["なし"],"notification.ping":["ピン"],"notification.pop":["ポップ"],"notification.test":["テスト"],"project.new":["新規プロジェクト"],"project.setup.action.setting_up":["セットアップ中..."],"project.setup.action.setup":["プロジェクトをセットアップ"],"project.setup.description":["Claude Codeプロジェクトとしてセットアップするディレクトリまで移動してください。CLAUDE.mdが存在する場合はプロジェクトを説明し、存在しない場合は<0>/init</0>で初期化します。"],"project.setup.title":["新規プロジェクトをセットアップ"],"project_list.last_modified":["最終更新:"],"project_list.messages":["メッセージ:"],"project_list.no_projects.description":["~/.claude/projectsディレクトリにClaude Codeプロジェクトが見つかりません。Claude Codeとの会話を開始して、最初のプロジェクトをセットアップしてください。"],"project_list.no_projects.title":["プロジェクトが見つかりません"],"project_list.view_conversations":["会話を表示"],"projects.page.description":["Claude Codeの会話履歴とプロジェクトの操作を閲覧"],"projects.page.loading":["プロジェクトを読み込み中..."],"projects.page.title":["プロジェクト"],"scheduler.create_job":["ジョブを作成"],"scheduler.delete_dialog.description":["このスケジューラジョブを削除してもよろしいですか?この操作は取り消せません。"],"scheduler.delete_dialog.title":["スケジューラジョブを削除"],"scheduler.dialog.description":["Claude Codeにメッセージを送信するスケジュールジョブを設定します"],"scheduler.dialog.title.create":["スケジュールジョブを作成"],"scheduler.dialog.title.edit":["スケジュールジョブを編集"],"scheduler.error.load_failed":["スケジューラジョブの読み込みに失敗しました: ",["error"]],"scheduler.form.concurrency_policy":["同時実行ポリシー"],"scheduler.form.concurrency_policy.run":["実行中でも実行する"],"scheduler.form.concurrency_policy.skip":["実行中の場合はスキップ"],"scheduler.form.enabled":["有効化"],"scheduler.form.enabled.description":["このスケジュールジョブを有効または無効にします"],"scheduler.form.message":["メッセージ内容"],"scheduler.form.message.aria_label":["補完機能付きメッセージ入力 (/でコマンド、@でファイル)"],"scheduler.form.message.hint":["/でコマンド補完、@でファイル補完"],"scheduler.form.message.placeholder":["Claude Codeに送信するメッセージを入力... (/でコマンド補完、@でファイル補完)"],"scheduler.form.name":["ジョブ名"],"scheduler.form.reserved_time":["実行予定日時"],"scheduler.form.reserved_time.hint":["指定した日時に一度だけ実行されます。実行後は自動的に削除されます"],"scheduler.form.schedule_type":["スケジュールタイプ"],"scheduler.form.schedule_type.cron":["定期実行 (Cron)"],"scheduler.form.schedule_type.reserved":["予約実行"],"scheduler.job.create_failed":["ジョブの作成に失敗しました"],"scheduler.job.created":["ジョブを作成しました"],"scheduler.job.delete_failed":["ジョブの削除に失敗しました"],"scheduler.job.deleted":["ジョブを削除しました"],"scheduler.job.update_failed":["ジョブの更新に失敗しました"],"scheduler.job.updated":["ジョブを更新しました"],"scheduler.last_run":["最終実行"],"scheduler.no_jobs":["スケジューラジョブがありません"],"scheduler.status.disabled":["無効"],"scheduler.status.enabled":["有効"],"scheduler.title":["スケジューラ"],"session.conversation.abort":["中止"],"session.conversation.paused":["一時停止"],"session.conversation.running":["実行中"],"session.processing":["Claude Codeが処理中..."],"session.status.paused":["一時停止"],"session.status.running":["実行中"],"sessions.load.more":["さらに読み込む"],"sessions.new":["新規"],"sessions.title":["セッション"],"sessions.total":["合計"],"settings.description":["表示と動作の設定"],"settings.input.enter_key_behavior":["Enterキーの動作"],"settings.input.enter_key_behavior.command_enter":["Command+Enterで送信"],"settings.input.enter_key_behavior.description":["メッセージ入力でのEnterキーの動作を選択"],"settings.input.enter_key_behavior.enter":["Enterで送信"],"settings.input.enter_key_behavior.shift_enter":["Shift+Enterで送信(デフォルト)"],"settings.loading":["設定を読み込み中..."],"settings.locale":["言語"],"settings.locale.description":["お好みの言語を選択"],"settings.locale.en":["English"],"settings.locale.ja":["日本語"],"settings.notifications":["通知"],"settings.permission.mode":["権限モード"],"settings.permission.mode.accept_edits":["編集を承認(ファイル編集を自動承認)"],"settings.permission.mode.bypass_permissions":["権限をバイパス(プロンプトなし)"],"settings.permission.mode.default":["デフォルト(権限を確認)"],"settings.permission.mode.description":["ファイル操作の権限リクエストの処理方法を制御"],"settings.permission.mode.plan":["プランモード(計画のみ)"],"settings.permission.mode.unavailable":["お使いのClaude Codeバージョンではこの機能は利用できません。すべてのツールは自動で承認されます。"],"settings.section.notifications":["通知"],"settings.section.session_display":["セッション表示"],"settings.section.system_info":["システム情報"],"settings.session.display":["セッション表示"],"settings.session.hide_no_user_message":["ユーザーメッセージのないセッションを非表示"],"settings.session.hide_no_user_message.description":["ユーザーコマンドまたはメッセージを含むセッションのみを表示"],"settings.session.unify_same_title":["同じタイトルのセッションを統合"],"settings.session.unify_same_title.description":["同じタイトルの複数のセッションがある場合、最新のセッションのみを表示"],"settings.tab.title":["表示と通知の設定"],"settings.theme":["テーマ"],"settings.theme.dark":["ダーク"],"settings.theme.description":["お好みのカラーテーマを選択"],"settings.theme.light":["ライト"],"settings.theme.system":["システム"],"settings.title":["設定"],"sidebar.back.to.projects":["プロジェクト一覧に戻る"],"sidebar.show.mcp.settings":["MCPサーバー設定を表示"],"sidebar.show.scheduler.jobs":["スケジューラジョブを表示"],"sidebar.show.session.list":["セッション一覧を表示"],"system.info.tab.title":["システム情報を表示"],"system_info.available_features":["利用可能機能"],"system_info.claude_code":["Claude Code"],"system_info.description":["バージョンと機能情報"],"system_info.executable_path":["実行ファイル"],"system_info.feature.agent_sdk.description":["@anthropic-ai/claude-code ではなく @anthropic-ai/claude-agent-sdk を利用します"],"system_info.feature.agent_sdk.title":["拡張エージェントモード"],"system_info.feature.tool_approval.description":["Claude がツールを実行する前に承認または拒否でき、アクションを完全にコントロールできます"],"system_info.feature.tool_approval.title":["ツール実行承認"],"system_info.feature.unknown.description":["機能情報は利用できません"],"system_info.title":["システム情報"],"system_info.unknown":["不明"],"system_info.version_label":["バージョン"],"system_info.viewer_version":["Claude Code Viewer"],"user.content.document.pdf":["PDF文書"],"user.content.document.text":["テキスト文書"],"user.content.image":["添付画像"],"user.content.unsupported_document":["サポートされていない文書"],"user.content.unsupported_document.description":["文書タイプは表示がサポートされていません"],"user.content.unsupported_media":["サポートされていないメディア"],"user.content.unsupported_media.description":["表示がサポートされていないメディア形式です"]}');export{e as messages};
@@ -0,0 +1 @@
1
+ const e=JSON.parse('{"Available commands":["Available commands"],"Available files and directories":["Available files and directories"],"Close sidebar":["Close Sidebar"],"Compare from":["Compare from"],"Compare to":["Compare to"],"Failed to commit":["Failed to commit"],"Failed to commit and push":["Failed to commit and push"],"Failed to push":["Failed to push"],"Message input with completion support":["Message input with completion support"],"Reload MCP servers":["Reload MCP servers"],"Retry Push":["Retry Push"],"Select enter key behavior":["Select enter key behavior"],"Select language":["Select language"],"Select permission mode":["Select permission mode"],"Select theme":["Select theme"],"Type your message here... (Start with / for commands, @ for files, Command+Enter to send)":["Type your message here... (Start with / for commands, @ for files, Command+Enter to send)"],"Type your message here... (Start with / for commands, @ for files, Enter to send)":["Type your message here... (Start with / for commands, @ for files, Enter to send)"],"Type your message here... (Start with / for commands, @ for files, Shift+Enter to send)":["Type your message here... (Start with / for commands, @ for files, Shift+Enter to send)"],"Uncommitted changes":["Uncommitted changes"],"assistant.thinking":["Thinking"],"assistant.tool.input_parameters":["Input Parameters"],"assistant.tool.message_count":[["count"]," messages"],"assistant.tool.result":["Tool Result"],"assistant.tool.task_id":["Task ID"],"assistant.tool.tool_id":["Tool ID"],"assistant.tool.view_task":["View Task"],"assistant.tool.view_task_details":["View Task Details"],"chat.attach_file":["Attach"],"chat.autocomplete.active":["Autocomplete Active"],"chat.button.start":["Start Chat"],"chat.error.send_failed":["Failed to send message. Please try again."],"chat.modal.title":["Start New Chat"],"chat.placeholder.continue.command_enter":["Type your message... (Start with / for commands, @ for files, Command+Enter to send)"],"chat.placeholder.continue.enter":["Type your message... (Start with / for commands, @ for files, Enter to send)"],"chat.placeholder.continue.shift_enter":["Type your message... (Start with / for commands, @ for files, Shift+Enter to send)"],"chat.placeholder.resume.command_enter":["Type your message... (Start with / for commands, @ for files, Command+Enter to send)"],"chat.placeholder.resume.enter":["Type your message... (Start with / for commands, @ for files, Enter to send)"],"chat.placeholder.resume.shift_enter":["Type your message... (Start with / for commands, @ for files, Shift+Enter to send)"],"chat.resume":["Resume"],"chat.scheduled_send.failed":["Failed to schedule message"],"chat.scheduled_send.success":["Message scheduled successfully"],"chat.scheduled_send.success_description":["You can view and manage it in the Scheduler tab"],"chat.send":["Send"],"chat.send_mode.immediate":["Send Now"],"chat.send_mode.label":["Send Mode"],"chat.send_mode.scheduled":["Schedule Send"],"chat.send_mode.scheduled_time":["Scheduled Send Time"],"chat.status.processing":["Processing..."],"common.action.cancel":["Cancel"],"common.cancel":["Cancel"],"common.create":["Create"],"common.delete":["Delete"],"common.deleting":["Deleting..."],"common.error":["Error"],"common.loading":["Loading..."],"common.reload":["Reload"],"common.saving":["Saving..."],"common.update":["Update"],"control.branch":["Branch"],"control.git":["Git"],"control.metadata":["Metadata"],"control.new":["New"],"control.new_chat":["New Chat"],"control.open_git_dialog":["Open Git Dialog"],"control.project_path":["Project Path"],"control.scroll_to_bottom":["Scroll to Bottom"],"control.scroll_to_top":["Scroll to Top"],"control.session_id":["Session ID"],"conversation.error.raw_content":["Raw Data: "],"conversation.error.report_issue":["Report This Issue"],"conversation.error.schema":["Schema Error"],"conversation.error.schema_validation":["Schema Validation Error"],"conversation.error.schema_validation.description":["Failed to parse this conversation entry. This may be due to format changes or parsing issues."],"cron_builder.cron_expression":["Cron Expression"],"cron_builder.custom":["Custom"],"cron_builder.daily":["Daily"],"cron_builder.day_of_week":["Day of Week"],"cron_builder.expression":["Cron Expression"],"cron_builder.friday":["Friday"],"cron_builder.hour":["Hour (0-23)"],"cron_builder.hourly":["Hourly"],"cron_builder.minute":["Minute (0-59)"],"cron_builder.monday":["Monday"],"cron_builder.preview":["Preview"],"cron_builder.saturday":["Saturday"],"cron_builder.schedule_type":["Schedule Type"],"cron_builder.sunday":["Sunday"],"cron_builder.thursday":["Thursday"],"cron_builder.tuesday":["Tuesday"],"cron_builder.wednesday":["Wednesday"],"cron_builder.weekly":["Weekly"],"diff.commit":["Commit"],"diff.commit.changes":["Commit Changes"],"diff.commit.message":["Commit Message"],"diff.commit.push":["Commit & Push"],"diff.committing":["Committing..."],"diff.committing.pushing":["Committing & Pushing..."],"diff.deselect.all":["Deselect All"],"diff.enter.message":["Please enter a commit message"],"diff.files":["Files"],"diff.files.changed":["files changed"],"diff.loading":["Loading diff..."],"diff.push":["Push"],"diff.pushing":["Pushing..."],"diff.select.all":["Select All"],"diff.select.file":["Please select at least one file"],"directory_picker.current":["Current: "],"directory_picker.loading":["Loading..."],"directory_picker.no_directories":["No Directories Found"],"directory_picker.show_hidden":["Show Hidden Files"],"mcp.error.load_failed":["Failed to load MCP servers: ",["error"]],"mcp.no.servers":["No MCP Servers Found"],"mcp.title":["MCP Servers"],"notfound.button.go_home":["Go Home"],"notfound.default.description":["The page you are looking for does not exist or has been moved."],"notfound.default.title":["Page Not Found"],"notfound.project.description":["The project you are looking for does not exist."],"notfound.project.title":["No Projects Found"],"notfound.session.description":["The session you are looking for does not exist."],"notfound.session.title":["Session Not Found"],"notification.beep":["Beep"],"notification.chime":["Chime"],"notification.description":["Select sound to play when Claude Code task completes"],"notification.none":["None"],"notification.ping":["Ping"],"notification.pop":["Pop"],"notification.test":["Test"],"project.new":["New Project"],"project.setup.action.setting_up":["Setting up..."],"project.setup.action.setup":["Set Up Project"],"project.setup.description":["Navigate to the directory to set up as a Claude Code project. If CLAUDE.md exists, it describes the project; otherwise initialize with <0>/init</0>."],"project.setup.title":["Set Up New Project"],"project_list.last_modified":["Last Modified: "],"project_list.messages":["Messages: "],"project_list.no_projects.description":["No Claude Code projects found in your ~/.claude/projects directory. Start a conversation with Claude Code to set up your first project."],"project_list.no_projects.title":["No Projects Found"],"project_list.view_conversations":["View Conversations"],"projects.page.description":["View Claude Code conversation history and project operations"],"projects.page.loading":["Loading projects..."],"projects.page.title":["Projects"],"scheduler.create_job":["Create Job"],"scheduler.delete_dialog.description":["Are you sure you want to delete this scheduler job? This action cannot be undone."],"scheduler.delete_dialog.title":["Delete Scheduler Job"],"scheduler.dialog.description":["Configure a scheduled job to send messages to Claude Code"],"scheduler.dialog.title.create":["Create Scheduled Job"],"scheduler.dialog.title.edit":["Edit Scheduled Job"],"scheduler.error.load_failed":["Failed to load scheduler jobs: ",["error"]],"scheduler.form.concurrency_policy":["Concurrency Policy"],"scheduler.form.concurrency_policy.run":["Run even if already running"],"scheduler.form.concurrency_policy.skip":["Skip if already running"],"scheduler.form.enabled":["Enable"],"scheduler.form.enabled.description":["Enable or disable this scheduled job"],"scheduler.form.message":["Message Content"],"scheduler.form.message.aria_label":["Message input with completion support (/ for commands, @ for files)"],"scheduler.form.message.hint":["/ for command completion, @ for file completion"],"scheduler.form.message.placeholder":["Type message to send to Claude Code... (/ for commands, @ for files)"],"scheduler.form.name":["Job Name"],"scheduler.form.reserved_time":["Scheduled Execution Time"],"scheduler.form.reserved_time.hint":["Will be executed once at the specified date and time, then automatically deleted"],"scheduler.form.schedule_type":["Schedule Type"],"scheduler.form.schedule_type.cron":["Recurring (Cron)"],"scheduler.form.schedule_type.reserved":["One-time Execution"],"scheduler.job.create_failed":["Failed to create job"],"scheduler.job.created":["Job created successfully"],"scheduler.job.delete_failed":["Failed to delete job"],"scheduler.job.deleted":["Job deleted successfully"],"scheduler.job.update_failed":["Failed to update job"],"scheduler.job.updated":["Job updated successfully"],"scheduler.last_run":["Last Run"],"scheduler.no_jobs":["No scheduler jobs"],"scheduler.status.disabled":["Disabled"],"scheduler.status.enabled":["Enabled"],"scheduler.title":["Scheduler"],"session.conversation.abort":["Abort"],"session.conversation.paused":["Paused"],"session.conversation.running":["Running"],"session.processing":["Claude Code is processing..."],"session.status.paused":["Paused"],"session.status.running":["Running"],"sessions.load.more":["Load More"],"sessions.new":["New"],"sessions.title":["Sessions"],"sessions.total":["Total"],"settings.description":["Display and behavior settings"],"settings.input.enter_key_behavior":["Enter Key Behavior"],"settings.input.enter_key_behavior.command_enter":["Send with Command+Enter"],"settings.input.enter_key_behavior.description":["Select Enter key behavior for message input"],"settings.input.enter_key_behavior.enter":["Send with Enter"],"settings.input.enter_key_behavior.shift_enter":["Send with Shift+Enter (Default)"],"settings.loading":["Loading settings..."],"settings.locale":["Language"],"settings.locale.description":["Select your preferred language"],"settings.locale.en":["English"],"settings.locale.ja":["Japanese"],"settings.notifications":["Notifications"],"settings.permission.mode":["Permission Mode"],"settings.permission.mode.accept_edits":["Accept Edits (Auto-approve file edits)"],"settings.permission.mode.bypass_permissions":["Bypass Permissions (No prompts)"],"settings.permission.mode.default":["Default (Confirm Permissions)"],"settings.permission.mode.description":["Control how file operation permission requests are handled"],"settings.permission.mode.plan":["Plan Mode (Planning only)"],"settings.permission.mode.unavailable":["This feature is not available in your Claude Code version. All tools are automatically approved."],"settings.section.notifications":["Notifications"],"settings.section.session_display":["Session Display"],"settings.section.system_info":["System Information"],"settings.session.display":["Session Display"],"settings.session.hide_no_user_message":["Hide Sessions Without User Messages"],"settings.session.hide_no_user_message.description":["Show only sessions that contain user commands or messages"],"settings.session.unify_same_title":["Unify Sessions with Same Title"],"settings.session.unify_same_title.description":["When multiple sessions have the same title, show only the latest session"],"settings.tab.title":["Display and Notification Settings"],"settings.theme":["Theme"],"settings.theme.dark":["Dark"],"settings.theme.description":["Select your preferred color theme"],"settings.theme.light":["Light"],"settings.theme.system":["System"],"settings.title":["Settings"],"sidebar.back.to.projects":["Back to Projects"],"sidebar.show.mcp.settings":["Show MCP Server Settings"],"sidebar.show.scheduler.jobs":["Show Scheduler Jobs"],"sidebar.show.session.list":["Show Session List"],"system.info.tab.title":["Show System Information"],"system_info.available_features":["Available Features"],"system_info.claude_code":["Claude Code"],"system_info.description":["Version and feature information"],"system_info.executable_path":["Executable Path"],"system_info.feature.agent_sdk.description":["Uses @anthropic-ai/claude-agent-sdk instead of @anthropic-ai/claude-code"],"system_info.feature.agent_sdk.title":["Extended Agent Mode"],"system_info.feature.tool_approval.description":["Approve or reject tool executions before Claude runs them, giving you full control over actions"],"system_info.feature.tool_approval.title":["Tool Approval"],"system_info.feature.unknown.description":["Feature information unavailable"],"system_info.title":["System Information"],"system_info.unknown":["Unknown"],"system_info.version_label":["Version"],"system_info.viewer_version":["Claude Code Viewer"],"user.content.document.pdf":["PDF Document"],"user.content.document.text":["Text Document"],"user.content.image":["Attached Image"],"user.content.unsupported_document":["Unsupported Document"],"user.content.unsupported_document.description":["Document type not supported for display"],"user.content.unsupported_media":["Unsupported Media"],"user.content.unsupported_media.description":["Media format not supported for display"]}');export{e as messages};
@@ -8,8 +8,8 @@
8
8
  content="Web Viewer for Claude Code history"
9
9
  />
10
10
  <title>Claude Code Viewer</title>
11
- <script type="module" crossorigin src="/assets/index-u3TFrHTl.js"></script>
12
- <link rel="stylesheet" crossorigin href="/assets/index-BSbB57mR.css">
11
+ <script type="module" crossorigin src="/assets/index-COLo22uo.js"></script>
12
+ <link rel="stylesheet" crossorigin href="/assets/index-tkMROyMY.css">
13
13
  </head>
14
14
  <body>
15
15
  <div id="app"></div>