@kimuson/claude-code-viewer 0.4.2 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -1
- package/dist/main.js +459 -261
- package/dist/main.js.map +4 -4
- package/dist/static/assets/index-52rNYQAH.js +1 -0
- package/dist/static/assets/{index-Gic8S5Lu.js → index-DFmNnbaj.js} +1 -1
- package/dist/static/assets/index-DLA4zb1O.js +6 -0
- package/dist/static/assets/index-DutDIkvw.js +1 -0
- package/dist/static/assets/index-XKo9yk8p.js +1 -0
- package/dist/static/assets/index-hJaFyqiY.js +181 -0
- package/dist/static/assets/index-tkMROyMY.css +1 -0
- package/dist/static/assets/index-yRcA1geA.js +135 -0
- package/dist/static/assets/label-Dws6Ewzu.js +105 -0
- package/dist/static/assets/messages-ChjmV9GI.js +1 -0
- package/dist/static/assets/messages-DLi20Ryh.js +1 -0
- package/dist/static/assets/messages-H7YsW45d.js +1 -0
- package/dist/static/index.html +2 -2
- package/package.json +4 -2
- package/dist/static/assets/fileUtils-Dx6psFN4.js +0 -1
- package/dist/static/assets/index-9_i65aDK.js +0 -1
- package/dist/static/assets/index-BOZi-nvY.js +0 -115
- package/dist/static/assets/index-BSbB57mR.css +0 -1
- package/dist/static/assets/index-C4k414nW.js +0 -1
- package/dist/static/assets/index-CUFn_afi.js +0 -6
- package/dist/static/assets/index-CUzR7g73.js +0 -194
- package/dist/static/assets/index-dP8USCrN.js +0 -1
- package/dist/static/assets/label-CwNfCtYa.js +0 -105
- package/dist/static/assets/messages-Bbqi5Aw-.js +0 -1
- package/dist/static/assets/messages-CQJqvH5I.js +0 -1
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import{c as oe,s as Ws,Q as Fs,r as l,j as i,gq as it,gI as jt,gp as F,gL as Tr,gM as $s,gN as Bs,gr as U,gt as ke,gO as sn,T as N,gP as Hs,B as Vs,a as an,gQ as zn,b as Ys,gC as zs,gw as qs,gB as Us,p as Xs,gk as Gs,gR as Ks,gS as Qs,gT as Js,gU as Zs}from"./index-yRcA1geA.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 ea=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Rr=oe("check",ea);/**
|
|
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 ta=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],bn=oe("chevron-down",ta);/**
|
|
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 na=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ra=oe("chevron-right",na);/**
|
|
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 oa=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],sa=oe("chevron-up",oa);/**
|
|
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 aa=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],ia=oe("circle-check",aa);/**
|
|
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 ca=[["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"}]],la=oe("circle-x",ca);/**
|
|
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 ua=[["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"}]],mm=oe("folder",ua);/**
|
|
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 da=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],fa=oe("info",da);/**
|
|
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 ma=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],ha=oe("loader-circle",ma);/**
|
|
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 pa=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],hm=oe("plus",pa);/**
|
|
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 ga=[["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"}]],va=oe("settings",ga);/**
|
|
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 xa=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ya=oe("x",xa);function pm(e,t){return Ws(e,Fs)}function M(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function wa(e,t){const n=l.createContext(t),r=s=>{const{children:a,...c}=s,u=l.useMemo(()=>c,Object.values(c));return i.jsx(n.Provider,{value:u,children:a})};r.displayName=e+"Provider";function o(s){const a=l.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function $e(e,t=[]){let n=[];function r(s,a){const c=l.createContext(a),u=n.length;n=[...n,a];const d=m=>{const{scope:g,children:p,...v}=m,h=g?.[e]?.[u]||c,x=l.useMemo(()=>v,Object.values(v));return i.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(a!==void 0)return a;throw new Error(`\`${m}\` must be used within \`${s}\``)}return[d,f]}const o=()=>{const s=n.map(a=>l.createContext(a));return function(c){const u=c?.[e]||s;return l.useMemo(()=>({[`__scope${e}`]:{...c,[e]:u}}),[c,u])}};return o.scopeName=e,[r,ba(o,...t)]}function ba(...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 a=r.reduce((c,{useScope:u,scopeName:d})=>{const m=u(s)[`__scope${d}`];return{...c,...m}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var Ca=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],k=Ca.reduce((e,t)=>{const n=it(`Primitive.${t}`),r=l.forwardRef((o,s)=>{const{asChild:a,...c}=o,u=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),i.jsx(u,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Sa(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 Pa(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 Ea="DismissableLayer",cn="dismissableLayer.update",Na="dismissableLayer.pointerDownOutside",Ta="dismissableLayer.focusOutside",qn,jr=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:a,onDismiss:c,...u}=e,d=l.useContext(jr),[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=Oa(P=>{const j=P.target,I=[...d.branches].some(A=>A.contains(j));!C||I||(o?.(P),a?.(P),P.defaultPrevented||c?.())},g),E=Ma(P=>{const j=P.target;[...d.branches].some(A=>A.contains(j))||(s?.(P),a?.(P),P.defaultPrevented||c?.())},g);return Pa(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&&(qn=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Un(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=qn)}},[f,g,n,d]),l.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Un())},[f,d]),l.useEffect(()=>{const P=()=>p({});return document.addEventListener(cn,P),()=>document.removeEventListener(cn,P)},[]),i.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=Ea;var Ra="DismissableLayerBranch",ja=l.forwardRef((e,t)=>{const n=l.useContext(jr),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]),i.jsx(k.div,{...e,ref:o})});ja.displayName=Ra;function Oa(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(){Or(Na,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},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Ma(e,t=globalThis?.document){const n=Ae(e),r=l.useRef(!1);return l.useEffect(()=>{const o=s=>{s.target&&!r.current&&Or(Ta,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 Un(){const e=new CustomEvent(cn);document.dispatchEvent(e)}function Or(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?Sa(o,s):o.dispatchEvent(s)}var G=globalThis?.document?l.useLayoutEffect:()=>{},ka=Tr[" useId ".trim().toString()]||(()=>{}),_a=0;function be(e){const[t,n]=l.useState(ka());return G(()=>{n(r=>r??String(_a++))},[e]),t?`radix-${t}`:""}const Aa=["top","right","bottom","left"],Se=Math.min,te=Math.max,Ct=Math.round,mt=Math.floor,fe=e=>({x:e,y:e}),Da={left:"right",right:"left",bottom:"top",top:"bottom"},Ia={start:"end",end:"start"};function ln(e,t,n){return te(e,Se(t,n))}function ge(e,t){return typeof e=="function"?e(t):e}function ve(e){return e.split("-")[0]}function Qe(e){return e.split("-")[1]}function Cn(e){return e==="x"?"y":"x"}function Sn(e){return e==="y"?"height":"width"}const La=new Set(["top","bottom"]);function de(e){return La.has(ve(e))?"y":"x"}function Pn(e){return Cn(de(e))}function Wa(e,t,n){n===void 0&&(n=!1);const r=Qe(e),o=Pn(e),s=Sn(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=St(a)),[a,St(a)]}function Fa(e){const t=St(e);return[un(e),t,un(t)]}function un(e){return e.replace(/start|end/g,t=>Ia[t])}const Xn=["left","right"],Gn=["right","left"],$a=["top","bottom"],Ba=["bottom","top"];function Ha(e,t,n){switch(e){case"top":case"bottom":return n?t?Gn:Xn:t?Xn:Gn;case"left":case"right":return t?$a:Ba;default:return[]}}function Va(e,t,n,r){const o=Qe(e);let s=Ha(ve(e),n==="start",r);return o&&(s=s.map(a=>a+"-"+o),t&&(s=s.concat(s.map(un)))),s}function St(e){return e.replace(/left|right|bottom|top/g,t=>Da[t])}function Ya(e){return{top:0,right:0,bottom:0,left:0,...e}}function Mr(e){return typeof e!="number"?Ya(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 Kn(e,t,n){let{reference:r,floating:o}=e;const s=de(t),a=Pn(t),c=Sn(a),u=ve(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(Qe(t)){case"start":p[a]-=g*(n&&d?-1:1);break;case"end":p[a]+=g*(n&&d?-1:1);break}return p}const za=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:a}=n,c=s.filter(Boolean),u=await(a.isRTL==null?void 0:a.isRTL(t));let d=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:m}=Kn(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:a,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 a.getElementRects({reference:e,floating:t,strategy:o}):S.rects),{x:f,y:m}=Kn(d,g,u)),h=-1)}return{x:f,y:m,placement:g,strategy:o,middlewareData:p}};async function ct(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:a,elements:c,strategy:u}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:m="floating",altBoundary:g=!1,padding:p=0}=ge(t,e),v=Mr(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:a.floating.width,height:a.floating.height}:a.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 qa=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:a,elements:c,middlewareData:u}=t,{element:d,padding:f=0}=ge(e,t)||{};if(d==null)return{};const m=Mr(f),g={x:n,y:r},p=Pn(o),v=Sn(p),h=await a.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(a.getOffsetParent==null?void 0:a.getOffsetParent(d));let P=E?E[b]:0;(!P||!await(a.isElement==null?void 0:a.isElement(E)))&&(P=c.floating[b]||s.floating[v]);const j=C/2-S/2,I=P/2-h[v]/2-1,A=Se(m[w],I),$=Se(m[y],I),B=A,W=P-h[v]-$,_=P/2-h[v]/2+j,z=ln(B,_,W),O=!u.arrow&&Qe(o)!=null&&_!==z&&s.reference[v]/2-(_<B?A:$)-h[v]/2<0,D=O?_<B?_-B:_-W:0;return{[p]:g[p]+D,data:{[p]:z,centerOffset:_-z-D,...O&&{alignmentOffset:D}},reset:O}}}),Ua=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:a,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}=ge(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const w=ve(o),y=de(c),b=ve(c)===c,C=await(u.isRTL==null?void 0:u.isRTL(d.floating)),S=g||(b||!h?[St(c)]:Fa(c)),E=v!=="none";!g&&E&&S.push(...Va(c,h,v,C));const P=[c,...S],j=await ct(t,x),I=[];let A=((r=s.flip)==null?void 0:r.overflows)||[];if(f&&I.push(j[w]),m){const _=Wa(o,a,C);I.push(j[_[0]],j[_[1]])}if(A=[...A,{placement:o,overflows:I}],!I.every(_=>_<=0)){var $,B;const _=((($=s.flip)==null?void 0:$.index)||0)+1,z=P[_];if(z&&(!(m==="alignment"?y!==de(z):!1)||A.every(R=>de(R.placement)===y?R.overflows[0]>0:!0)))return{data:{index:_,overflows:A},reset:{placement:z}};let O=(B=A.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=A.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,Z)=>H+Z,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 Qn(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Jn(e){return Aa.some(t=>e[t]>=0)}const Xa=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=ge(e,t);switch(r){case"referenceHidden":{const s=await ct(t,{...o,elementContext:"reference"}),a=Qn(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Jn(a)}}}case"escaped":{const s=await ct(t,{...o,altBoundary:!0}),a=Qn(s,n.floating);return{data:{escapedOffsets:a,escaped:Jn(a)}}}default:return{}}}}},kr=new Set(["left","top"]);async function Ga(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=ve(n),c=Qe(n),u=de(n)==="y",d=kr.has(a)?-1:1,f=s&&u?-1:1,m=ge(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 Ka=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:a,middlewareData:c}=t,u=await Ga(t,e);return a===((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:a}}}}},Qa=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:a=!1,limiter:c={fn:x=>{let{x:w,y}=x;return{x:w,y}}},...u}=ge(e,t),d={x:n,y:r},f=await ct(t,u),m=de(ve(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(a){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]:a}}}}}},Ja=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:a}=t,{offset:c=0,mainAxis:u=!0,crossAxis:d=!0}=ge(e,t),f={x:n,y:r},m=de(o),g=Cn(m);let p=f[g],v=f[m];const h=ge(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=kr.has(ve(o)),S=s.reference[m]-s.floating[b]+(C&&((w=a.offset)==null?void 0:w[m])||0)+(C?0:x.crossAxis),E=s.reference[m]+s.reference[b]+(C?0:((y=a.offset)==null?void 0:y[m])||0)-(C?x.crossAxis:0);v<S?v=S:v>E&&(v=E)}return{[g]:p,[m]:v}}}},Za=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:a,elements:c}=t,{apply:u=()=>{},...d}=ge(e,t),f=await ct(t,d),m=ve(o),g=Qe(o),p=de(o)==="y",{width:v,height:h}=s.floating;let x,w;m==="top"||m==="bottom"?(x=m,w=g===(await(a.isRTL==null?void 0:a.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=Se(h-f[x],y),S=Se(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 A=te(f.left,0),$=te(f.right,0),B=te(f.top,0),W=te(f.bottom,0);p?j=v-2*(A!==0||$!==0?A+$:te(f.left,f.right)):P=h-2*(B!==0||W!==0?B+W:te(f.top,f.bottom))}await u({...t,availableWidth:j,availableHeight:P});const I=await a.getDimensions(c.floating);return v!==I.width||h!==I.height?{reset:{rects:!0}}:{}}}};function Mt(){return typeof window<"u"}function Je(e){return _r(e)?(e.nodeName||"").toLowerCase():"#document"}function ne(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function he(e){var t;return(t=(_r(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function _r(e){return Mt()?e instanceof Node||e instanceof ne(e).Node:!1}function ae(e){return Mt()?e instanceof Element||e instanceof ne(e).Element:!1}function me(e){return Mt()?e instanceof HTMLElement||e instanceof ne(e).HTMLElement:!1}function Zn(e){return!Mt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ne(e).ShadowRoot}const ei=new Set(["inline","contents"]);function dt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ie(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!ei.has(o)}const ti=new Set(["table","td","th"]);function ni(e){return ti.has(Je(e))}const ri=[":popover-open",":modal"];function kt(e){return ri.some(t=>{try{return e.matches(t)}catch{return!1}})}const oi=["transform","translate","scale","rotate","perspective"],si=["transform","translate","scale","rotate","perspective","filter"],ai=["paint","layout","strict","content"];function En(e){const t=Nn(),n=ae(e)?ie(e):e;return oi.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)||si.some(r=>(n.willChange||"").includes(r))||ai.some(r=>(n.contain||"").includes(r))}function ii(e){let t=Pe(e);for(;me(t)&&!Xe(t);){if(En(t))return t;if(kt(t))return null;t=Pe(t)}return null}function Nn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const ci=new Set(["html","body","#document"]);function Xe(e){return ci.has(Je(e))}function ie(e){return ne(e).getComputedStyle(e)}function _t(e){return ae(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Pe(e){if(Je(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Zn(e)&&e.host||he(e);return Zn(t)?t.host:t}function Ar(e){const t=Pe(e);return Xe(t)?e.ownerDocument?e.ownerDocument.body:e.body:me(t)&&dt(t)?t:Ar(t)}function lt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Ar(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),a=ne(o);if(s){const c=dn(a);return t.concat(a,a.visualViewport||[],dt(o)?o:[],c&&n?lt(c):[])}return t.concat(o,lt(o,[],n))}function dn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Dr(e){const t=ie(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=me(e),s=o?e.offsetWidth:n,a=o?e.offsetHeight:r,c=Ct(n)!==s||Ct(r)!==a;return c&&(n=s,r=a),{width:n,height:r,$:c}}function Tn(e){return ae(e)?e:e.contextElement}function qe(e){const t=Tn(e);if(!me(t))return fe(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Dr(t);let a=(s?Ct(n.width):n.width)/r,c=(s?Ct(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!c||!Number.isFinite(c))&&(c=1),{x:a,y:c}}const li=fe(0);function Ir(e){const t=ne(e);return!Nn()||!t.visualViewport?li:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ui(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ne(e)?!1:t}function De(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Tn(e);let a=fe(1);t&&(r?ae(r)&&(a=qe(r)):a=qe(e));const c=ui(s,n,r)?Ir(s):fe(0);let u=(o.left+c.x)/a.x,d=(o.top+c.y)/a.y,f=o.width/a.x,m=o.height/a.y;if(s){const g=ne(s),p=r&&ae(r)?ne(r):r;let v=g,h=dn(v);for(;h&&r&&p!==v;){const x=qe(h),w=h.getBoundingClientRect(),y=ie(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=ne(h),h=dn(v)}}return Pt({width:f,height:m,x:u,y:d})}function At(e,t){const n=_t(e).scrollLeft;return t?t.left+n:De(he(e)).left+n}function Lr(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-At(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function di(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",a=he(r),c=t?kt(t.floating):!1;if(r===a||c&&s)return n;let u={scrollLeft:0,scrollTop:0},d=fe(1);const f=fe(0),m=me(r);if((m||!m&&!s)&&((Je(r)!=="body"||dt(a))&&(u=_t(r)),me(r))){const p=De(r);d=qe(r),f.x=p.x+r.clientLeft,f.y=p.y+r.clientTop}const g=a&&!m&&!s?Lr(a,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 fi(e){return Array.from(e.getClientRects())}function mi(e){const t=he(e),n=_t(e),r=e.ownerDocument.body,o=te(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=te(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+At(e);const c=-n.scrollTop;return ie(r).direction==="rtl"&&(a+=te(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:a,y:c}}const er=25;function hi(e,t){const n=ne(e),r=he(e),o=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,c=0,u=0;if(o){s=o.width,a=o.height;const f=Nn();(!f||f&&t==="fixed")&&(c=o.offsetLeft,u=o.offsetTop)}const d=At(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<=er&&(s-=v)}else d<=er&&(s+=d);return{width:s,height:a,x:c,y:u}}const pi=new Set(["absolute","fixed"]);function gi(e,t){const n=De(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=me(e)?qe(e):fe(1),a=e.clientWidth*s.x,c=e.clientHeight*s.y,u=o*s.x,d=r*s.y;return{width:a,height:c,x:u,y:d}}function tr(e,t,n){let r;if(t==="viewport")r=hi(e,n);else if(t==="document")r=mi(he(e));else if(ae(t))r=gi(t,n);else{const o=Ir(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Pt(r)}function Wr(e,t){const n=Pe(e);return n===t||!ae(n)||Xe(n)?!1:ie(n).position==="fixed"||Wr(n,t)}function vi(e,t){const n=t.get(e);if(n)return n;let r=lt(e,[],!1).filter(c=>ae(c)&&Je(c)!=="body"),o=null;const s=ie(e).position==="fixed";let a=s?Pe(e):e;for(;ae(a)&&!Xe(a);){const c=ie(a),u=En(a);!u&&c.position==="fixed"&&(o=null),(s?!u&&!o:!u&&c.position==="static"&&!!o&&pi.has(o.position)||dt(a)&&!u&&Wr(e,a))?r=r.filter(f=>f!==a):o=c,a=Pe(a)}return t.set(e,r),r}function xi(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?kt(t)?[]:vi(t,this._c):[].concat(n),r],c=a[0],u=a.reduce((d,f)=>{const m=tr(t,f,o);return d.top=te(m.top,d.top),d.right=Se(m.right,d.right),d.bottom=Se(m.bottom,d.bottom),d.left=te(m.left,d.left),d},tr(t,c,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function yi(e){const{width:t,height:n}=Dr(e);return{width:t,height:n}}function wi(e,t,n){const r=me(t),o=he(t),s=n==="fixed",a=De(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const u=fe(0);function d(){u.x=At(o)}if(r||!r&&!s)if((Je(t)!=="body"||dt(o))&&(c=_t(t)),r){const p=De(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?Lr(o,c):fe(0),m=a.left+c.scrollLeft-u.x-f.x,g=a.top+c.scrollTop-u.y-f.y;return{x:m,y:g,width:a.width,height:a.height}}function Kt(e){return ie(e).position==="static"}function nr(e,t){if(!me(e)||ie(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return he(e)===n&&(n=n.ownerDocument.body),n}function Fr(e,t){const n=ne(e);if(kt(e))return n;if(!me(e)){let o=Pe(e);for(;o&&!Xe(o);){if(ae(o)&&!Kt(o))return o;o=Pe(o)}return n}let r=nr(e,t);for(;r&&ni(r)&&Kt(r);)r=nr(r,t);return r&&Xe(r)&&Kt(r)&&!En(r)?n:r||ii(e)||n}const bi=async function(e){const t=this.getOffsetParent||Fr,n=this.getDimensions,r=await n(e.floating);return{reference:wi(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ci(e){return ie(e).direction==="rtl"}const Si={convertOffsetParentRelativeRectToViewportRelativeRect:di,getDocumentElement:he,getClippingRect:xi,getOffsetParent:Fr,getElementRects:bi,getClientRects:fi,getDimensions:yi,getScale:qe,isElement:ae,isRTL:Ci};function $r(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Pi(e,t){let n=null,r;const o=he(e);function s(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function a(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:te(0,Se(1,u))||1};let C=!0;function S(E){const P=E[0].intersectionRatio;if(P!==u){if(!C)return a();P?a(!1,P):r=setTimeout(()=>{a(!1,1e-7)},1e3)}P===1&&!$r(d,e.getBoundingClientRect())&&a(),C=!1}try{n=new IntersectionObserver(S,{...b,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,b)}n.observe(e)}return a(!0),s}function Ei(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,d=Tn(e),f=o||s?[...d?lt(d):[],...lt(t)]:[];f.forEach(w=>{o&&w.addEventListener("scroll",n,{passive:!0}),s&&w.addEventListener("resize",n)});const m=d&&c?Pi(d,n):null;let g=-1,p=null;a&&(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?De(e):null;u&&x();function x(){const w=De(e);h&&!$r(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 Ni=Ka,Ti=Qa,Ri=Ua,ji=Za,Oi=Xa,rr=qa,Mi=Ja,ki=(e,t,n)=>{const r=new Map,o={platform:Si,...n},s={...o.platform,_c:r};return za(e,t,{...o,platform:s})};var _i=typeof document<"u",Ai=function(){},yt=_i?l.useLayoutEffect:Ai;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 Br(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function or(e,t){const n=Br(e);return Math.round(t*n)/n}function Qt(e){const t=l.useRef(e);return yt(()=>{t.current=e}),t}function Di(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:a}={},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=a||x,E=l.useRef(null),P=l.useRef(null),j=l.useRef(f),I=u!=null,A=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),ki(E.current,P.current,R).then(H=>{const Z={...H,isPositioned:B.current!==!1};_.current&&!Et(j.current,Z)&&(j.current=Z,jt.flushSync(()=>{m(Z)}))})},[g,t,n,$,B]);yt(()=>{d===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,m(R=>({...R,isPositioned:!1})))},[d]);const _=l.useRef(!1);yt(()=>(_.current=!0,()=>{_.current=!1}),[]),yt(()=>{if(C&&(E.current=C),S&&(P.current=S),C&&S){if(A.current)return A.current(C,S,W);W()}},[C,S,W,A,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=or(O.floating,f.x),Z=or(O.floating,f.y);return c?{...R,transform:"translate("+H+"px, "+Z+"px)",...Br(O.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:H,top:Z}},[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 Ii=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?rr({element:r.current,padding:o}).fn(n):{}:r?rr({element:r,padding:o}).fn(n):{}}}},Li=(e,t)=>({...Ni(e),options:[e,t]}),Wi=(e,t)=>({...Ti(e),options:[e,t]}),Fi=(e,t)=>({...Mi(e),options:[e,t]}),$i=(e,t)=>({...Ri(e),options:[e,t]}),Bi=(e,t)=>({...ji(e),options:[e,t]}),Hi=(e,t)=>({...Oi(e),options:[e,t]}),Vi=(e,t)=>({...Ii(e),options:[e,t]});var Yi="Arrow",Hr=l.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return i.jsx(k.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:i.jsx("polygon",{points:"0,0 30,0 15,10"})})});Hr.displayName=Yi;var zi=Hr;function Vr(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 a,c;if("borderBoxSize"in s){const u=s.borderBoxSize,d=Array.isArray(u)?u[0]:u;a=d.inlineSize,c=d.blockSize}else a=e.offsetWidth,c=e.offsetHeight;n({width:a,height:c})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Rn="Popper",[Yr,Dt]=$e(Rn),[qi,zr]=Yr(Rn),qr=e=>{const{__scopePopper:t,children:n}=e,[r,o]=l.useState(null);return i.jsx(qi,{scope:t,anchor:r,onAnchorChange:o,children:n})};qr.displayName=Rn;var Ur="PopperAnchor",Xr=l.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=zr(Ur,n),a=l.useRef(null),c=F(t,a),u=l.useRef(null);return l.useEffect(()=>{const d=u.current;u.current=r?.current||a.current,d!==u.current&&s.onAnchorChange(u.current)}),r?null:i.jsx(k.div,{...o,ref:c})});Xr.displayName=Ur;var jn="PopperContent",[Ui,Xi]=Yr(jn),Gr=l.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:a=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=zr(jn,n),[w,y]=l.useState(null),b=F(t,T=>y(T)),[C,S]=l.useState(null),E=Vr(C),P=E?.width??0,j=E?.height??0,I=r+(s!=="center"?"-"+s:""),A=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},$=Array.isArray(d)?d:[d],B=$.length>0,W={padding:A,boundary:$.filter(Ki),altBoundary:B},{refs:_,floatingStyles:z,placement:O,isPositioned:D,middlewareData:R}=Di({strategy:"fixed",placement:I,whileElementsMounted:(...T)=>Ei(...T,{animationFrame:p==="always"}),elements:{reference:x.anchor},middleware:[Li({mainAxis:o+j,alignmentAxis:a}),u&&Wi({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?Fi():void 0,...W}),u&&$i({...W}),Bi({...W,apply:({elements:T,rects:q,availableWidth:K,availableHeight:V})=>{const{width:Y,height:X}=q.reference,re=T.floating.style;re.setProperty("--radix-popper-available-width",`${K}px`),re.setProperty("--radix-popper-available-height",`${V}px`),re.setProperty("--radix-popper-anchor-width",`${Y}px`),re.setProperty("--radix-popper-anchor-height",`${X}px`)}}),C&&Vi({element:C,padding:c}),Qi({arrowWidth:P,arrowHeight:j}),g&&Hi({strategy:"referenceHidden",...W})]}),[H,Z]=Jr(O),je=Ae(v);G(()=>{D&&je?.()},[D,je]);const et=R.arrow?.x,tt=R.arrow?.y,xe=R.arrow?.centerOffset!==0,[Be,Oe]=l.useState();return G(()=>{w&&Oe(window.getComputedStyle(w).zIndex)},[w]),i.jsx("div",{ref:_.setFloating,"data-radix-popper-content-wrapper":"",style:{...z,transform:D?z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Be,"--radix-popper-transform-origin":[R.transformOrigin?.x,R.transformOrigin?.y].join(" "),...R.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:i.jsx(Ui,{scope:n,placedSide:H,onArrowChange:S,arrowX:et,arrowY:tt,shouldHideArrow:xe,children:i.jsx(k.div,{"data-side":H,"data-align":Z,...h,ref:b,style:{...h.style,animation:D?void 0:"none"}})})})});Gr.displayName=jn;var Kr="PopperArrow",Gi={top:"bottom",right:"left",bottom:"top",left:"right"},Qr=l.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=Xi(Kr,r),a=Gi[s.placedSide];return i.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]: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:i.jsx(zi,{...o,ref:n,style:{...o.style,display:"block"}})})});Qr.displayName=Kr;function Ki(e){return e!==null}var Qi=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,a=o.arrow?.centerOffset!==0,c=a?0:e.arrowWidth,u=a?0:e.arrowHeight,[d,f]=Jr(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=a?m:`${g}px`,h=`${-u}px`):d==="top"?(v=a?m:`${g}px`,h=`${r.floating.height+u}px`):d==="right"?(v=`${-u}px`,h=a?m:`${p}px`):d==="left"&&(v=`${r.floating.width+u}px`,h=a?m:`${p}px`),{data:{x:v,y:h}}}});function Jr(e){const[t,n="center"]=e.split("-");return[t,n]}var Zr=qr,eo=Xr,to=Gr,no=Qr,Ji="Portal",It=l.forwardRef((e,t)=>{const{container:n,...r}=e,[o,s]=l.useState(!1);G(()=>s(!0),[]);const a=n||o&&globalThis?.document?.body;return a?$s.createPortal(i.jsx(k.div,{...r,ref:t}),a):null});It.displayName=Ji;function Zi(e,t){return l.useReducer((n,r)=>t[n][r]??n,e)}var Ne=e=>{const{present:t,children:n}=e,r=ec(t),o=typeof n=="function"?n({present:r.isPresent}):l.Children.only(n),s=F(r.ref,tc(o));return typeof n=="function"||r.isPresent?l.cloneElement(o,{ref:s}):null};Ne.displayName="Presence";function ec(e){const[t,n]=l.useState(),r=l.useRef(null),o=l.useRef(e),s=l.useRef("none"),a=e?"mounted":"unmounted",[c,u]=Zi(a,{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 tc(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 nc=Tr[" useInsertionEffect ".trim().toString()]||G;function Ge({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,a]=rc({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=oc(f)?f(e):f;m!==e&&a.current?.(m)}else s(f)},[c,e,s,a]);return[u,d]}function rc({defaultProp:e,onChange:t}){const[n,r]=l.useState(e),o=l.useRef(n),s=l.useRef(t);return nc(()=>{s.current=t},[t]),l.useEffect(()=>{o.current!==n&&(s.current?.(n),o.current=n)},[n,o]),[n,r,s]}function oc(e){return typeof e=="function"}var ro=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"}),sc="VisuallyHidden",oo=l.forwardRef((e,t)=>i.jsx(k.span,{...e,ref:t,style:{...ro,...e.style}}));oo.displayName=sc;var ac=oo,[Lt]=$e("Tooltip",[Dt]),Wt=Dt(),so="TooltipProvider",ic=700,fn="tooltip.open",[cc,On]=Lt(so),ao=e=>{const{__scopeTooltip:t,delayDuration:n=ic,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,a=l.useRef(!0),c=l.useRef(!1),u=l.useRef(0);return l.useEffect(()=>{const d=u.current;return()=>window.clearTimeout(d)},[]),i.jsx(cc,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:l.useCallback(()=>{window.clearTimeout(u.current),a.current=!1},[]),onClose:l.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>a.current=!0,r)},[r]),isPointerInTransitRef:c,onPointerInTransitChange:l.useCallback(d=>{c.current=d},[]),disableHoverableContent:o,children:s})};ao.displayName=so;var ut="Tooltip",[lc,ft]=Lt(ut),io=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:s,disableHoverableContent:a,delayDuration:c}=e,u=On(ut,e.__scopeTooltip),d=Wt(t),[f,m]=l.useState(null),g=be(),p=l.useRef(0),v=a??u.disableHoverableContent,h=c??u.delayDuration,x=l.useRef(!1),[w,y]=Ge({prop:r,defaultProp:o??!1,onChange:P=>{P?(u.onOpen(),document.dispatchEvent(new CustomEvent(fn))):u.onClose(),s?.(P)},caller:ut}),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)},[]),i.jsx(Zr,{...d,children:i.jsx(lc,{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})})};io.displayName=ut;var mn="TooltipTrigger",co=l.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=ft(mn,n),s=On(mn,n),a=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]),i.jsx(eo,{asChild:!0,...a,children:i.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)})})});co.displayName=mn;var Mn="TooltipPortal",[uc,dc]=Lt(Mn,{forceMount:void 0}),lo=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,s=ft(Mn,t);return i.jsx(uc,{scope:t,forceMount:n,children:i.jsx(Ne,{present:n||s.open,children:i.jsx(It,{asChild:!0,container:o,children:r})})})};lo.displayName=Mn;var Ke="TooltipContent",uo=l.forwardRef((e,t)=>{const n=dc(Ke,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,a=ft(Ke,e.__scopeTooltip);return i.jsx(Ne,{present:r||a.open,children:a.disableHoverableContent?i.jsx(fo,{side:o,...s,ref:t}):i.jsx(fc,{side:o,...s,ref:t})})}),fc=l.forwardRef((e,t)=>{const n=ft(Ke,e.__scopeTooltip),r=On(Ke,e.__scopeTooltip),o=l.useRef(null),s=F(t,o),[a,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=gc(w,x.getBoundingClientRect()),b=vc(w,y),C=xc(h.getBoundingClientRect()),S=wc([...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(a){const v=h=>{const x=h.target,w={x:h.clientX,y:h.clientY},y=u?.contains(x)||f?.contains(x),b=!yc(w,a);y?g():b&&(g(),d())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[u,f,a,d,g]),i.jsx(fo,{...e,ref:s})}),[mc,hc]=Lt(ut,{isInside:!1}),pc=Bs("TooltipContent"),fo=l.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:a,...c}=e,u=ft(Ke,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]),i.jsx(Ot,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:m=>m.preventDefault(),onDismiss:f,children:i.jsxs(to,{"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:[i.jsx(pc,{children:r}),i.jsx(mc,{scope:n,isInside:!0,children:i.jsx(ac,{id:u.contentId,role:"tooltip",children:o||r})})]})})});uo.displayName=Ke;var mo="TooltipArrow",ho=l.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Wt(n);return hc(mo,n).isInside?null:i.jsx(no,{...o,...r,ref:t})});ho.displayName=mo;function gc(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 vc(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 xc(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 yc(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const c=t[s],u=t[a],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 wc(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),bc(t)}function bc(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],a=t[t.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.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],a=n[n.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.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 Cc=ao,Sc=io,Pc=co,Ec=lo,Nc=uo,Tc=ho;function kn({delayDuration:e=0,...t}){return i.jsx(Cc,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function po({...e}){return i.jsx(kn,{children:i.jsx(Sc,{"data-slot":"tooltip",...e})})}function go({...e}){return i.jsx(Pc,{"data-slot":"tooltip-trigger",...e})}function vo({className:e,sideOffset:t=0,children:n,...r}){return i.jsx(Ec,{children:i.jsxs(Nc,{"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,i.jsx(Tc,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const Rc={sm:"w-4 h-4",default:"w-8 h-8",lg:"w-12 h-12"},jc={sm:"text-sm",default:"text-base",lg:"text-lg"},sr=({message:e,size:t="default",fullScreen:n=!0,className:r})=>{const o=i.jsxs("div",{className:U("flex flex-col items-center justify-center gap-3",r),children:[i.jsx(ha,{className:U(Rc[t],"animate-spin text-primary")}),e&&i.jsx("p",{className:U(jc[t],"text-muted-foreground font-medium"),children:e})]});return n?i.jsx("div",{className:"flex items-center justify-center w-full h-full min-h-[400px]",children:o}):o};function ar(e,[t,n]){return Math.min(n,Math.max(t,e))}function Oc(e){const t=e+"CollectionProvider",[n,r]=$e(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=h=>{const{scope:x,children:w}=h,y=ke.useRef(null),b=ke.useRef(new Map).current;return i.jsx(o,{scope:x,itemMap:b,collectionRef:y,children:w})};a.displayName=t;const c=e+"CollectionSlot",u=it(c),d=ke.forwardRef((h,x)=>{const{scope:w,children:y}=h,b=s(c,w),C=F(x,b.collectionRef);return i.jsx(u,{ref:C,children:y})});d.displayName=c;const f=e+"CollectionItemSlot",m="data-radix-collection-item",g=it(f),p=ke.forwardRef((h,x)=>{const{scope:w,children:y,...b}=h,C=ke.useRef(null),S=F(x,C),E=s(f,w);return ke.useEffect(()=>(E.itemMap.set(C,{ref:C,...b}),()=>void E.itemMap.delete(C))),i.jsx(g,{[m]:"",ref:S,children:y})});p.displayName=f;function v(h){const x=s(e+"CollectionConsumer",h);return ke.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:a,Slot:d,ItemSlot:p},v,r]}var Mc=l.createContext(void 0);function kc(e){const t=l.useContext(Mc);return e||t||"ltr"}var Jt=0;function xo(){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",cr={bubbles:!1,cancelable:!0},_c="FocusScope",_n=l.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...a}=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:we(m.current,{select:!0})},x=function(b){if(p.paused||!c)return;const C=b.relatedTarget;C!==null&&(c.contains(C)||we(m.current,{select:!0}))},w=function(b){if(document.activeElement===document.body)for(const S of b)S.removedNodes.length>0&&we(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){ur.add(p);const h=document.activeElement;if(!c.contains(h)){const w=new CustomEvent(Zt,cr);c.addEventListener(Zt,d),c.dispatchEvent(w),w.defaultPrevented||(Ac(Fc(yo(c)),{select:!0}),document.activeElement===h&&we(c))}return()=>{c.removeEventListener(Zt,d),setTimeout(()=>{const w=new CustomEvent(en,cr);c.addEventListener(en,f),c.dispatchEvent(w),w.defaultPrevented||we(h??document.body,{select:!0}),c.removeEventListener(en,f),ur.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]=Dc(y);b&&C?!h.shiftKey&&w===C?(h.preventDefault(),n&&we(b,{select:!0})):h.shiftKey&&w===b&&(h.preventDefault(),n&&we(C,{select:!0})):w===y&&h.preventDefault()}},[n,r,p.paused]);return i.jsx(k.div,{tabIndex:-1,...a,ref:g,onKeyDown:v})});_n.displayName=_c;function Ac(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(we(r,{select:t}),document.activeElement!==n)return}function Dc(e){const t=yo(e),n=lr(t,e),r=lr(t.reverse(),e);return[n,r]}function yo(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 lr(e,t){for(const n of e)if(!Ic(n,{upTo:t}))return n}function Ic(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 Lc(e){return e instanceof HTMLInputElement&&"select"in e}function we(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Lc(e)&&t&&e.select()}}var ur=Wc();function Wc(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=dr(e,t),e.unshift(t)},remove(t){e=dr(e,t),e[0]?.resume()}}}function dr(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Fc(e){return e.filter(t=>t.tagName!=="A")}function wo(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 $c=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},He=new WeakMap,pt=new WeakMap,gt={},tn=0,bo=function(e){return e&&(e.host||bo(e.parentNode))},Bc=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=bo(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})},Hc=function(e,t,n,r){var o=Bc(t,Array.isArray(e)?e:[e]);gt[n]||(gt[n]=new WeakMap);var s=gt[n],a=[],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=(He.get(g)||0)+1,x=(s.get(g)||0)+1;He.set(g,h),s.set(g,x),a.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(){a.forEach(function(m){var g=He.get(m)-1,p=s.get(m)-1;He.set(m,g),s.set(m,p),g||(pt.has(m)||m.removeAttribute(r),pt.delete(m)),p||m.removeAttribute(n)}),tn--,tn||(He=new WeakMap,He=new WeakMap,pt=new WeakMap,gt={})}},Co=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=$c(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Hc(r,o,n,"aria-hidden")):function(){return null}},ue=function(){return ue=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},ue.apply(this,arguments)};function So(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 Vc(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",Yc="with-scroll-bars-hidden",zc="--removed-body-scroll-bar-size";function nn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function qc(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 Uc=typeof window<"u"?l.useLayoutEffect:l.useEffect,fr=new WeakMap;function Xc(e,t){var n=qc(null,function(r){return e.forEach(function(o){return nn(o,r)})});return Uc(function(){var r=fr.get(n);if(r){var o=new Set(r),s=new Set(e),a=n.current;o.forEach(function(c){s.has(c)||nn(c,null)}),s.forEach(function(c){o.has(c)||nn(c,a)})}fr.set(n,e)},[e]),n}function Gc(e){return e}function Kc(e,t){t===void 0&&(t=Gc);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 a=t(s,r);return n.push(a),function(){n=n.filter(function(c){return c!==a})}},assignSyncMedium:function(s){for(r=!0;n.length;){var a=n;n=[],a.forEach(s)}n={push:function(c){return s(c)},filter:function(){return n}}},assignMedium:function(s){r=!0;var a=[];if(n.length){var c=n;n=[],c.forEach(s),a=n}var u=function(){var f=a;a=[],f.forEach(s)},d=function(){return Promise.resolve().then(u)};d(),n={push:function(f){a.push(f),d()},filter:function(f){return a=a.filter(f),n}}}};return o}function Qc(e){e===void 0&&(e={});var t=Kc(null);return t.options=ue({async:!0,ssr:!1},e),t}var Po=function(e){var t=e.sideCar,n=So(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,ue({},n))};Po.isSideCarExport=!0;function Jc(e,t){return e.useMedium(t),Po}var Eo=Qc(),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],a=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=So(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=g,E=Xc([n,t]),P=ue(ue({},C),o);return l.createElement(l.Fragment,null,f&&l.createElement(S,{sideCar:Eo,removeScrollBar:d,shards:m,noRelative:p,noIsolation:v,inert:h,setCallbacks:s,allowPinchZoom:!!x,lockRef:n,gapMode:b}),a?l.cloneElement(l.Children.only(c),ue(ue({},P),{ref:E})):l.createElement(y,ue({},P,{className:u,ref:E}),c))});Ft.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ft.classNames={fullWidth:bt,zeroRight:wt};var Zc=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function el(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Zc();return t&&e.setAttribute("nonce",t),e}function tl(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function nl(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var rl=function(){var e=0,t=null;return{add:function(n){e==0&&(t=el())&&(tl(t,n),nl(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ol=function(){var e=rl();return function(t,n){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},No=function(){var e=ol(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},sl={left:0,top:0,right:0,gap:0},on=function(e){return parseInt(e||"",10)||0},al=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)]},il=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return sl;var t=al(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])}},cl=No(),Ue="data-scroll-locked",ll=function(e,t,n,r){var o=e.left,s=e.top,a=e.right,c=e.gap;return n===void 0&&(n="margin"),`
|
|
62
|
+
.`.concat(Yc,` {
|
|
63
|
+
overflow: hidden `).concat(r,`;
|
|
64
|
+
padding-right: `).concat(c,"px ").concat(r,`;
|
|
65
|
+
}
|
|
66
|
+
body[`).concat(Ue,`] {
|
|
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(a,`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(Ue,`] {
|
|
96
|
+
`).concat(zc,": ").concat(c,`px;
|
|
97
|
+
}
|
|
98
|
+
`)},mr=function(){var e=parseInt(document.body.getAttribute(Ue)||"0",10);return isFinite(e)?e:0},ul=function(){l.useEffect(function(){return document.body.setAttribute(Ue,(mr()+1).toString()),function(){var e=mr()-1;e<=0?document.body.removeAttribute(Ue):document.body.setAttribute(Ue,e.toString())}},[])},dl=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;ul();var s=l.useMemo(function(){return il(o)},[o]);return l.createElement(cl,{styles:ll(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 Ve=hn?{passive:!1}:!1,fl=function(e){return e.tagName==="TEXTAREA"},To=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!fl(e)&&n[t]==="visible")},ml=function(e){return To(e,"overflowY")},hl=function(e){return To(e,"overflowX")},hr=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Ro(e,r);if(o){var s=jo(e,r),a=s[1],c=s[2];if(a>c)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},pl=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},gl=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Ro=function(e,t){return e==="v"?ml(t):hl(t)},jo=function(e,t){return e==="v"?pl(t):gl(t)},vl=function(e,t){return e==="h"&&t==="rtl"?-1:1},xl=function(e,t,n,r,o){var s=vl(e,window.getComputedStyle(t).direction),a=s*r,c=n.target,u=t.contains(c),d=!1,f=a>0,m=0,g=0;do{if(!c)break;var p=jo(e,c),v=p[0],h=p[1],x=p[2],w=h-x-s*v;(v||w)&&Ro(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]},pr=function(e){return[e.deltaX,e.deltaY]},gr=function(e){return e&&"current"in e?e.current:e},yl=function(e,t){return e[0]===t[0]&&e[1]===t[1]},wl=function(e){return`
|
|
99
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
100
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
101
|
+
`)},bl=0,Ye=[];function Cl(e){var t=l.useRef([]),n=l.useRef([0,0]),r=l.useRef(),o=l.useState(bl++)[0],s=l.useState(No)[0],a=l.useRef(e);l.useEffect(function(){a.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var h=Vc([e.lockRef.current],(e.shards||[]).map(gr),!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!a.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=hr(P,E);if(!j)return!0;if(j?S=P:(S=P==="v"?"h":"v",j=hr(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 xl(I,x,h,I==="h"?b:C)},[]),u=l.useCallback(function(h){var x=h;if(!(!Ye.length||Ye[Ye.length-1]!==s)){var w="deltaY"in x?pr(x):xt(x),y=t.current.filter(function(S){return S.name===x.type&&(S.target===x.target||x.target===S.shadowParent)&&yl(S.delta,w)})[0];if(y&&y.should){x.cancelable&&x.preventDefault();return}if(!y){var b=(a.current.shards||[]).map(gr).filter(Boolean).filter(function(S){return S.contains(x.target)}),C=b.length>0?c(x,b[0]):!a.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:Sl(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,pr(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 Ye.push(s),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:g}),document.addEventListener("wheel",u,Ve),document.addEventListener("touchmove",u,Ve),document.addEventListener("touchstart",f,Ve),function(){Ye=Ye.filter(function(h){return h!==s}),document.removeEventListener("wheel",u,Ve),document.removeEventListener("touchmove",u,Ve),document.removeEventListener("touchstart",f,Ve)}},[]);var p=e.removeScrollBar,v=e.inert;return l.createElement(l.Fragment,null,v?l.createElement(s,{styles:wl(o)}):null,p?l.createElement(dl,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Sl(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Pl=Jc(Eo,Cl);var An=l.forwardRef(function(e,t){return l.createElement(Ft,ue({},e,{ref:t,sideCar:Pl}))});An.classNames=Ft.classNames;var El=[" ","Enter","ArrowUp","ArrowDown"],Nl=[" ","Enter"],Ie="Select",[$t,Bt,Tl]=Oc(Ie),[Ze]=$e(Ie,[Tl,Dt]),Ht=Dt(),[Rl,Te]=Ze(Ie),[jl,Ol]=Ze(Ie),Oo=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:s,value:a,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=kc(d),[P,j]=Ge({prop:r,defaultProp:o??!1,onChange:s,caller:Ie}),[I,A]=Ge({prop:a,defaultProp:c,onChange:u,caller:Ie}),$=l.useRef(null),B=x?v||!!x.closest("form"):!0,[W,_]=l.useState(new Set),z=Array.from(W).map(O=>O.props.value).join(";");return i.jsx(Zr,{...h,children:i.jsxs(Rl,{required:p,scope:t,trigger:x,onTriggerChange:w,valueNode:y,onValueNodeChange:b,valueNodeHasChildren:C,onValueNodeHasChildrenChange:S,contentId:be(),value:I,onValueChange:A,open:P,onOpenChange:j,dir:E,triggerPointerDownPosRef:$,disabled:g,children:[i.jsx($t.Provider,{scope:t,children:i.jsx(jl,{scope:e.__scopeSelect,onNativeOptionAdd:l.useCallback(O=>{_(D=>new Set(D).add(O))},[]),onNativeOptionRemove:l.useCallback(O=>{_(D=>{const R=new Set(D);return R.delete(O),R})},[]),children:n})}),B?i.jsxs(Jo,{"aria-hidden":!0,required:p,tabIndex:-1,name:f,autoComplete:m,value:I,onChange:O=>A(O.target.value),disabled:g,form:v,children:[I===void 0?i.jsx("option",{value:""}):null,Array.from(W)]},z):null]})})};Oo.displayName=Ie;var Mo="SelectTrigger",ko=l.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=Ht(n),a=Te(Mo,n),c=a.disabled||r,u=F(t,a.onTriggerChange),d=Bt(n),f=l.useRef("touch"),[m,g,p]=es(h=>{const x=d().filter(b=>!b.disabled),w=x.find(b=>b.value===a.value),y=ts(x,h,w);y!==void 0&&a.onValueChange(y.value)}),v=h=>{c||(a.onOpenChange(!0),p()),h&&(a.triggerPointerDownPosRef.current={x:Math.round(h.pageX),y:Math.round(h.pageY)})};return i.jsx(eo,{asChild:!0,...s,children:i.jsx(k.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":Zo(a.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===" ")&&El.includes(h.key)&&(v(),h.preventDefault())})})})});ko.displayName=Mo;var _o="SelectValue",Ao=l.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:a="",...c}=e,u=Te(_o,n),{onValueNodeHasChildrenChange:d}=u,f=s!==void 0,m=F(t,u.onValueNodeChange);return G(()=>{d(f)},[d,f]),i.jsx(k.span,{...c,ref:m,style:{pointerEvents:"none"},children:Zo(u.value)?i.jsx(i.Fragment,{children:a}):s})});Ao.displayName=_o;var Ml="SelectIcon",Do=l.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return i.jsx(k.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});Do.displayName=Ml;var kl="SelectPortal",Io=e=>i.jsx(It,{asChild:!0,...e});Io.displayName=kl;var Le="SelectContent",Lo=l.forwardRef((e,t)=>{const n=Te(Le,e.__scopeSelect),[r,o]=l.useState();if(G(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?jt.createPortal(i.jsx(Wo,{scope:e.__scopeSelect,children:i.jsx($t.Slot,{scope:e.__scopeSelect,children:i.jsx("div",{children:e.children})})}),s):null}return i.jsx(Fo,{...e,ref:t})});Lo.displayName=Le;var se=10,[Wo,Re]=Ze(Le),_l="SelectContentImpl",Al=it("SelectContent.RemoveScroll"),Fo=l.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:a,side:c,sideOffset:u,align:d,alignOffset:f,arrowPadding:m,collisionBoundary:g,collisionPadding:p,sticky:v,hideWhenDetached:h,avoidCollisions:x,...w}=e,y=Te(Le,n),[b,C]=l.useState(null),[S,E]=l.useState(null),P=F(t,T=>C(T)),[j,I]=l.useState(null),[A,$]=l.useState(null),B=Bt(n),[W,_]=l.useState(!1),z=l.useRef(!1);l.useEffect(()=>{if(b)return Co(b)},[b]),xo();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[Z,je]=es(T=>{const q=B().filter(Y=>!Y.disabled),K=q.find(Y=>Y.ref.current===document.activeElement),V=ts(q,T,K);V&&setTimeout(()=>V.ref.current.focus())}),et=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]),tt=l.useCallback(()=>b?.focus(),[b]),xe=l.useCallback((T,q,K)=>{const V=!z.current&&!K;(y.value!==void 0&&y.value===q||V)&&$(T)},[y.value]),Be=r==="popper"?pn:$o,Oe=Be===pn?{side:c,sideOffset:u,align:d,alignOffset:f,arrowPadding:m,collisionBoundary:g,collisionPadding:p,sticky:v,hideWhenDetached:h,avoidCollisions:x}:{};return i.jsx(Wo,{scope:n,content:b,viewport:S,onViewportChange:E,itemRefCallback:et,selectedItem:j,onItemLeave:tt,itemTextRefCallback:xe,focusSelectedItem:D,selectedItemText:A,position:r,isPositioned:W,searchRef:Z,children:i.jsx(An,{as:Al,allowPinchZoom:!0,children:i.jsx(_n,{asChild:!0,trapped:y.open,onMountAutoFocus:T=>{T.preventDefault()},onUnmountAutoFocus:M(o,T=>{y.trigger?.focus({preventScroll:!0}),T.preventDefault()}),children:i.jsx(Ot,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:T=>T.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:i.jsx(Be,{role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:T=>T.preventDefault(),...w,...Oe,onPlaced:()=>_(!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&&je(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()}})})})})})})});Fo.displayName=_l;var Dl="SelectItemAlignedPosition",$o=l.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,s=Te(Le,n),a=Re(Le,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}=a,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(),A=w.getBoundingClientRect();if(s.dir!=="rtl"){const Y=A.left-j.left,X=I.left-Y,re=P.left-X,Me=P.width+re,Ut=Math.max(Me,j.width),Xt=window.innerWidth-se,Gt=ar(X,[se,Math.max(se,Xt-Ut)]);c.style.minWidth=Me+"px",c.style.left=Gt+"px"}else{const Y=j.right-A.right,X=window.innerWidth-I.right-Y,re=window.innerWidth-P.right-X,Me=P.width+re,Ut=Math.max(Me,j.width),Xt=window.innerWidth-se,Gt=ar(X,[se,Math.max(se,Xt-Ut)]);c.style.minWidth=Me+"px",c.style.right=Gt+"px"}const $=g(),B=window.innerHeight-se*2,W=h.scrollHeight,_=window.getComputedStyle(d),z=parseInt(_.borderTopWidth,10),O=parseInt(_.paddingTop,10),D=parseInt(_.borderBottomWidth,10),R=parseInt(_.paddingBottom,10),H=z+O+W+R+D,Z=Math.min(x.offsetHeight*5,H),je=window.getComputedStyle(h),et=parseInt(je.paddingTop,10),tt=parseInt(je.paddingBottom,10),xe=P.top+P.height/2-se,Be=B-xe,Oe=x.offsetHeight/2,T=x.offsetTop+Oe,q=z+O+T,K=H-q;if(q<=xe){const Y=$.length>0&&x===$[$.length-1].ref.current;c.style.bottom="0px";const X=d.clientHeight-h.offsetTop-h.offsetHeight,re=Math.max(Be,Oe+(Y?tt:0)+X+D),Me=q+re;c.style.height=Me+"px"}else{const Y=$.length>0&&x===$[0].ref.current;c.style.top="0px";const re=Math.max(xe,z+h.offsetTop+(Y?et:0)+Oe)+K;c.style.height=re+"px",h.scrollTop=q-xe+h.offsetTop}c.style.margin=`${se}px 0`,c.style.minHeight=Z+"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 i.jsx(Ll,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:p,onScrollButtonChange:E,children:i.jsx("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:i.jsx(k.div,{...o,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});$o.displayName=Dl;var Il="SelectPopperPosition",pn=l.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=se,...s}=e,a=Ht(n);return i.jsx(to,{...a,...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=Il;var[Ll,Dn]=Ze(Le,{}),gn="SelectViewport",Bo=l.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=Re(gn,n),a=Dn(gn,n),c=F(t,s.onViewportChange),u=l.useRef(0);return i.jsxs(i.Fragment,{children:[i.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}),i.jsx($t.Slot,{scope:n,children:i.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}=a;if(g?.current&&m){const p=Math.abs(u.current-f.scrollTop);if(p>0){const v=window.innerHeight-se*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})})})]})});Bo.displayName=gn;var Ho="SelectGroup",[Wl,Fl]=Ze(Ho),$l=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=be();return i.jsx(Wl,{scope:n,id:o,children:i.jsx(k.div,{role:"group","aria-labelledby":o,...r,ref:t})})});$l.displayName=Ho;var Vo="SelectLabel",Bl=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Fl(Vo,n);return i.jsx(k.div,{id:o.id,...r,ref:t})});Bl.displayName=Vo;var Nt="SelectItem",[Hl,Yo]=Ze(Nt),zo=l.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...a}=e,c=Te(Nt,n),u=Re(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=be(),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 i.jsx(Hl,{scope:n,value:r,disabled:o,textId:h,isSelected:d,onItemTextChange:l.useCallback(y=>{m(b=>b||(y?.textContent??"").trim())},[]),children:i.jsx($t.ItemSlot,{scope:n,value:r,disabled:o,textValue:f,children:i.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,...a,ref:v,onFocus:M(a.onFocus,()=>p(!0)),onBlur:M(a.onBlur,()=>p(!1)),onClick:M(a.onClick,()=>{x.current!=="mouse"&&w()}),onPointerUp:M(a.onPointerUp,()=>{x.current==="mouse"&&w()}),onPointerDown:M(a.onPointerDown,y=>{x.current=y.pointerType}),onPointerMove:M(a.onPointerMove,y=>{x.current=y.pointerType,o?u.onItemLeave?.():x.current==="mouse"&&y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:M(a.onPointerLeave,y=>{y.currentTarget===document.activeElement&&u.onItemLeave?.()}),onKeyDown:M(a.onKeyDown,y=>{u.searchRef?.current!==""&&y.key===" "||(Nl.includes(y.key)&&w(),y.key===" "&&y.preventDefault())})})})})});zo.displayName=Nt;var nt="SelectItemText",qo=l.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,a=Te(nt,n),c=Re(nt,n),u=Yo(nt,n),d=Ol(nt,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(()=>i.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]),i.jsxs(i.Fragment,{children:[i.jsx(k.span,{id:u.textId,...s,ref:g}),u.isSelected&&a.valueNode&&!a.valueNodeHasChildren?jt.createPortal(s.children,a.valueNode):null]})});qo.displayName=nt;var Uo="SelectItemIndicator",Xo=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Yo(Uo,n).isSelected?i.jsx(k.span,{"aria-hidden":!0,...r,ref:t}):null});Xo.displayName=Uo;var vn="SelectScrollUpButton",Go=l.forwardRef((e,t)=>{const n=Re(vn,e.__scopeSelect),r=Dn(vn,e.__scopeSelect),[o,s]=l.useState(!1),a=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?i.jsx(Qo,{...e,ref:a,onAutoScroll:()=>{const{viewport:c,selectedItem:u}=n;c&&u&&(c.scrollTop=c.scrollTop-u.offsetHeight)}}):null});Go.displayName=vn;var xn="SelectScrollDownButton",Ko=l.forwardRef((e,t)=>{const n=Re(xn,e.__scopeSelect),r=Dn(xn,e.__scopeSelect),[o,s]=l.useState(!1),a=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?i.jsx(Qo,{...e,ref:a,onAutoScroll:()=>{const{viewport:c,selectedItem:u}=n;c&&u&&(c.scrollTop=c.scrollTop+u.offsetHeight)}}):null});Ko.displayName=xn;var Qo=l.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=Re("SelectScrollButton",n),a=l.useRef(null),c=Bt(n),u=l.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return l.useEffect(()=>()=>u(),[u]),G(()=>{c().find(f=>f.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[c]),i.jsx(k.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:M(o.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(r,50))}),onPointerMove:M(o.onPointerMove,()=>{s.onItemLeave?.(),a.current===null&&(a.current=window.setInterval(r,50))}),onPointerLeave:M(o.onPointerLeave,()=>{u()})})}),Vl="SelectSeparator",Yl=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return i.jsx(k.div,{"aria-hidden":!0,...r,ref:t})});Yl.displayName=Vl;var yn="SelectArrow",zl=l.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Ht(n),s=Te(yn,n),a=Re(yn,n);return s.open&&a.position==="popper"?i.jsx(no,{...o,...r,ref:t}):null});zl.displayName=yn;var ql="SelectBubbleInput",Jo=l.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=l.useRef(null),s=F(r,o),a=wo(t);return l.useEffect(()=>{const c=o.current;if(!c)return;const u=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(u,"value").set;if(a!==t&&f){const m=new Event("change",{bubbles:!0});f.call(c,t),c.dispatchEvent(m)}},[a,t]),i.jsx(k.select,{...n,style:{...ro,...n.style},ref:s,defaultValue:t})});Jo.displayName=ql;function Zo(e){return e===""||e===void 0}function es(e){const t=Ae(e),n=l.useRef(""),r=l.useRef(0),o=l.useCallback(a=>{const c=n.current+a;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 ts(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 a=Ul(e,Math.max(s,0));o.length===1&&(a=a.filter(d=>d!==n));const u=a.find(d=>d.textValue.toLowerCase().startsWith(o.toLowerCase()));return u!==n?u:void 0}function Ul(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Xl=Oo,Gl=ko,Kl=Ao,Ql=Do,Jl=Io,Zl=Lo,eu=Bo,tu=zo,nu=qo,ru=Xo,ou=Go,su=Ko;function rt({...e}){return i.jsx(Xl,{...e})}function ot({...e}){return i.jsx(Kl,{...e})}function st({className:e,children:t,...n}){return i.jsxs(Gl,{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,i.jsx(Ql,{asChild:!0,children:i.jsx(bn,{className:"h-4 w-4 opacity-50"})})]})}function au({className:e,...t}){return i.jsx(ou,{className:U("flex cursor-default items-center justify-center py-1",e),...t,children:i.jsx(sa,{className:"h-4 w-4"})})}function iu({className:e,...t}){return i.jsx(su,{className:U("flex cursor-default items-center justify-center py-1",e),...t,children:i.jsx(bn,{className:"h-4 w-4"})})}function at({className:e,children:t,position:n="popper",...r}){return i.jsx(Jl,{children:i.jsxs(Zl,{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:[i.jsx(au,{}),i.jsx(eu,{className:U("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),i.jsx(iu,{})]})})}function ee({className:e,children:t,...n}){return i.jsxs(tu,{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:[i.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:i.jsx(ru,{children:i.jsx(Rr,{className:"h-4 w-4"})})}),i.jsx(nu,{children:t})]})}const In={},cu=Symbol((In?"production":void 0)!=="production"?"RESET":""),ns=e=>typeof e?.then=="function";function lu(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 ns(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)}},a=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=a(c)),s}const uu=lu();function du(e,t,n=uu,r){const o=sn(t);return(In?"production":void 0)!=="production"&&(o.debugPrivate=!0),o.onMount=a=>{a(n.getItem(e,t));let c;return n.subscribe&&(c=n.subscribe(e,a,t)),c},sn(a=>a(o),(a,c,u)=>{const d=typeof u=="function"?u(a(o)):u;return d===cu?(c(o,t),n.removeItem(e)):ns(d)?d.then(f=>(c(o,f),n.setItem(e,f))):(c(o,d),n.setItem(e,d))})}const fu={soundType:"none"},rs=du("claude-code-viewer-notification-settings",fu),gm=sn(e=>e(rs).soundType!=="none"),mu={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 hu(e){if(e!=="none")try{const t=mu[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(),a=n.createGain();s.connect(a),a.connect(n.destination),s.frequency.setValueAtTime(r,n.currentTime),s.type=t.type;const c=n.currentTime+o*.05;a.gain.setValueAtTime(t.volume,c),a.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 pu(e){return{none:i.jsx(N,{id:"notification.none"}),beep:i.jsx(N,{id:"notification.beep"}),chime:i.jsx(N,{id:"notification.chime"}),ping:i.jsx(N,{id:"notification.ping"}),pop:i.jsx(N,{id:"notification.pop"})}[e]}function gu(){return["none","beep","chime","ping","pop"]}const vu=({showLabels:e=!0,showDescriptions:t=!0,className:n=""})=>{const r=l.useId(),[o,s]=Hs(rs),a=l.useCallback(d=>{s(f=>({...f,soundType:d}))},[s]),c=l.useCallback(()=>{o.soundType!=="none"&&hu(o.soundType)},[o.soundType]),u=gu();return i.jsx("div",{className:`space-y-4 ${n}`,children:i.jsxs("div",{className:"space-y-2",children:[e&&i.jsx("label",{htmlFor:r,className:"text-sm font-medium leading-none",children:"Task completion sound"}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsxs(rt,{value:o.soundType,onValueChange:a,children:[i.jsx(st,{id:r,className:"w-[180px]",children:i.jsx(ot,{placeholder:"音を選択"})}),i.jsx(at,{children:u.map(d=>i.jsx(ee,{value:d,children:pu(d)},d))})]}),o.soundType!=="none"&&i.jsx(Vs,{variant:"outline",size:"sm",onClick:c,className:"px-3",children:i.jsx(N,{id:"notification.test"})})]}),t&&i.jsx("p",{className:"text-xs text-muted-foreground",children:i.jsx(N,{id:"notification.description"})})]})})};var Vt="Checkbox",[xu]=$e(Vt),[yu,Ln]=xu(Vt);function wu(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:o,disabled:s,form:a,name:c,onCheckedChange:u,required:d,value:f="on",internal_do_not_use_render:m}=e,[g,p]=Ge({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?!!a||!!v.closest("form"):!0,C={checked:g,disabled:s,setChecked:p,control:v,setControl:h,name:c,form:a,value:f,hasConsumerStoppedPropagationRef:y,required:d,defaultChecked:Ce(o)?!1:o,isFormControl:b,bubbleInput:x,setBubbleInput:w};return i.jsx(yu,{scope:t,...C,children:bu(m)?m(C):r})}var os="CheckboxTrigger",ss=l.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},o)=>{const{control:s,value:a,disabled:c,checked:u,required:d,setControl:f,setChecked:m,hasConsumerStoppedPropagationRef:g,isFormControl:p,bubbleInput:v}=Ln(os,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]),i.jsx(k.button,{type:"button",role:"checkbox","aria-checked":Ce(u)?"mixed":u,"aria-required":d,"data-state":ds(u),"data-disabled":c?"":void 0,disabled:c,value:a,...r,ref:h,onKeyDown:M(t,w=>{w.key==="Enter"&&w.preventDefault()}),onClick:M(n,w=>{m(y=>Ce(y)?!0:!y),v&&p&&(g.current=w.isPropagationStopped(),g.current||w.stopPropagation())})})});ss.displayName=os;var as=l.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:s,required:a,disabled:c,value:u,onCheckedChange:d,form:f,...m}=e;return i.jsx(wu,{__scopeCheckbox:n,checked:o,defaultChecked:s,disabled:c,required:a,onCheckedChange:d,name:r,form:f,value:u,internal_do_not_use_render:({isFormControl:g})=>i.jsxs(i.Fragment,{children:[i.jsx(ss,{...m,ref:t,__scopeCheckbox:n}),g&&i.jsx(us,{__scopeCheckbox:n})]})})});as.displayName=Vt;var is="CheckboxIndicator",cs=l.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,s=Ln(is,n);return i.jsx(Ne,{present:r||Ce(s.checked)||s.checked===!0,children:i.jsx(k.span,{"data-state":ds(s.checked),"data-disabled":s.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});cs.displayName=is;var ls="CheckboxBubbleInput",us=l.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:o,checked:s,defaultChecked:a,required:c,disabled:u,name:d,value:f,form:m,bubbleInput:g,setBubbleInput:p}=Ln(ls,e),v=F(n,p),h=wo(s),x=Vr(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=Ce(s),S.call(y,Ce(s)?!1:s),y.dispatchEvent(P)}},[g,h,s,o]);const w=l.useRef(Ce(s)?!1:s);return i.jsx(k.input,{type:"checkbox","aria-hidden":!0,defaultChecked:a??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%)"}})});us.displayName=ls;function bu(e){return typeof e=="function"}function Ce(e){return e==="indeterminate"}function ds(e){return Ce(e)?"indeterminate":e?"checked":"unchecked"}function vr({className:e,...t}){return i.jsx(as,{"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:i.jsx(cs,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-current transition-none",children:i.jsx(Rr,{className:"size-3.5"})})})}const fs=()=>{const{data:e}=an({queryKey:zn.queryKey,queryFn:zn.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}},Cu=({openingProjectId:e,showLabels:t=!0,showDescriptions:n=!0,className:r=""})=>{const o=l.useId(),s=l.useId(),a=l.useId(),c=l.useId(),u=l.useId(),{config:d,updateConfig:f}=Ys(),m=zs(),{theme:g}=qs(),{i18n:p}=Us(),{isFlagEnabled:v}=fs(),h=v("tool-approval"),x=async()=>{const E={...d,hideNoUserMessageSession:!d?.hideNoUserMessageSession};f(E,{onSuccess:async()=>{await m.refetchQueries({queryKey:Xs.queryKey})}})},w=async()=>{const E={...d,unifySameTitleSession:!d?.unifySameTitleSession};f(E,{onSuccess:async()=>{await m.refetchQueries({queryKey:Gs(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 i.jsxs("div",{className:`space-y-4 ${r}`,children:[i.jsxs("div",{className:"flex items-center space-x-2",children:[i.jsx(vr,{id:o,checked:d?.hideNoUserMessageSession,onCheckedChange:x}),t&&i.jsx("label",{htmlFor:o,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:i.jsx(N,{id:"settings.session.hide_no_user_message"})})]}),n&&i.jsx("p",{className:"text-xs text-muted-foreground mt-1 ml-6",children:i.jsx(N,{id:"settings.session.hide_no_user_message.description"})}),i.jsxs("div",{className:"flex items-center space-x-2",children:[i.jsx(vr,{id:`${o}-unify`,checked:d?.unifySameTitleSession,onCheckedChange:w}),t&&i.jsx("label",{htmlFor:`${o}-unify`,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:i.jsx(N,{id:"settings.session.unify_same_title"})})]}),n&&i.jsx("p",{className:"text-xs text-muted-foreground mt-1 ml-6",children:i.jsx(N,{id:"settings.session.unify_same_title.description"})}),i.jsxs("div",{className:"space-y-2",children:[t&&i.jsx("label",{htmlFor:s,className:"text-sm font-medium leading-none",children:i.jsx(N,{id:"settings.input.enter_key_behavior"})}),i.jsxs(rt,{value:d?.enterKeyBehavior||"shift-enter-send",onValueChange:y,children:[i.jsx(st,{id:s,className:"w-full",children:i.jsx(ot,{placeholder:p._("Select enter key behavior")})}),i.jsxs(at,{children:[i.jsx(ee,{value:"shift-enter-send",children:i.jsx(N,{id:"settings.input.enter_key_behavior.shift_enter"})}),i.jsx(ee,{value:"enter-send",children:i.jsx(N,{id:"settings.input.enter_key_behavior.enter"})}),i.jsx(ee,{value:"command-enter-send",children:i.jsx(N,{id:"settings.input.enter_key_behavior.command_enter"})})]})]}),n&&i.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:i.jsx(N,{id:"settings.input.enter_key_behavior.description"})})]}),i.jsxs("div",{className:"space-y-2",children:[t&&i.jsx("label",{htmlFor:a,className:"text-sm font-medium leading-none",children:i.jsx(N,{id:"settings.permission.mode"})}),i.jsxs(rt,{value:d?.permissionMode||"default",onValueChange:b,disabled:!h,children:[i.jsx(st,{id:a,className:"w-full",children:i.jsx(ot,{placeholder:p._("Select permission mode")})}),i.jsxs(at,{children:[i.jsx(ee,{value:"default",children:i.jsx(N,{id:"settings.permission.mode.default"})}),i.jsx(ee,{value:"acceptEdits",children:i.jsx(N,{id:"settings.permission.mode.accept_edits"})}),i.jsx(ee,{value:"bypassPermissions",children:i.jsx(N,{id:"settings.permission.mode.bypass_permissions"})}),i.jsx(ee,{value:"plan",children:i.jsx(N,{id:"settings.permission.mode.plan"})})]})]}),n&&h&&i.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:i.jsx(N,{id:"settings.permission.mode.description"})}),n&&!h&&i.jsx("p",{className:"text-xs text-destructive mt-1",children:i.jsx(N,{id:"settings.permission.mode.unavailable"})})]}),i.jsxs("div",{className:"space-y-2",children:[t&&i.jsx("label",{htmlFor:c,className:"text-sm font-medium leading-none",children:i.jsx(N,{id:"settings.locale"})}),i.jsxs(rt,{value:d?.locale||"ja",onValueChange:C,children:[i.jsx(st,{id:c,className:"w-full",children:i.jsx(ot,{placeholder:p._("Select language")})}),i.jsxs(at,{children:[i.jsx(ee,{value:"ja",children:i.jsx(N,{id:"settings.locale.ja"})}),i.jsx(ee,{value:"en",children:i.jsx(N,{id:"settings.locale.en"})}),i.jsx(ee,{value:"zh_CN",children:i.jsx(N,{id:"settings.locale.zh_CN"})})]})]}),n&&i.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:i.jsx(N,{id:"settings.locale.description"})})]}),i.jsxs("div",{className:"space-y-2",children:[t&&i.jsx("label",{htmlFor:u,className:"text-sm font-medium leading-none",children:i.jsx(N,{id:"settings.theme"})}),i.jsxs(rt,{value:g??"system",onValueChange:S,children:[i.jsx(st,{id:u,className:"w-full",children:i.jsx(ot,{placeholder:p._("Select theme")})}),i.jsxs(at,{children:[i.jsx(ee,{value:"light",children:i.jsx(N,{id:"settings.theme.light"})}),i.jsx(ee,{value:"dark",children:i.jsx(N,{id:"settings.theme.dark"})}),i.jsx(ee,{value:"system",children:i.jsx(N,{id:"settings.theme.system"})})]})]}),n&&i.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:i.jsx(N,{id:"settings.theme.description"})})]})]})},Su=Qs("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 xr({className:e,variant:t,asChild:n=!1,...r}){const o=n?Ks:"span";return i.jsx(o,{"data-slot":"badge",className:U(Su({variant:t}),e),...r})}var Yt="Collapsible",[Pu]=$e(Yt),[Eu,Wn]=Pu(Yt),ms=l.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:s,onOpenChange:a,...c}=e,[u,d]=Ge({prop:r,defaultProp:o??!1,onChange:a,caller:Yt});return i.jsx(Eu,{scope:n,disabled:s,contentId:be(),open:u,onOpenToggle:l.useCallback(()=>d(f=>!f),[d]),children:i.jsx(k.div,{"data-state":$n(u),"data-disabled":s?"":void 0,...c,ref:t})})});ms.displayName=Yt;var hs="CollapsibleTrigger",ps=l.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=Wn(hs,n);return i.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)})});ps.displayName=hs;var Fn="CollapsibleContent",gs=l.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Wn(Fn,e.__scopeCollapsible);return i.jsx(Ne,{present:n||o.open,children:({present:s})=>i.jsx(Nu,{...r,ref:t,present:s})})});gs.displayName=Fn;var Nu=l.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...s}=e,a=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=a.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)}},[a.open,r]),i.jsx(k.div,{"data-state":$n(a.open),"data-disabled":a.disabled?"":void 0,id:a.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 Tu=ms;function Ru({...e}){return i.jsx(Tu,{"data-slot":"collapsible",...e})}function ju({...e}){return i.jsx(ps,{"data-slot":"collapsible-trigger",...e})}function Ou({...e}){return i.jsx(gs,{"data-slot":"collapsible-content",...e})}const Mu=e=>{switch(e){case"tool-approval":return{title:i.jsx(N,{id:"system_info.feature.tool_approval.title"}),description:i.jsx(N,{id:"system_info.feature.tool_approval.description"})};case"agent-sdk":return{title:i.jsx(N,{id:"system_info.feature.agent_sdk.title"}),description:i.jsx(N,{id:"system_info.feature.agent_sdk.description"})};default:return{title:e,description:i.jsx(N,{id:"system_info.feature.unknown.description"})}}},ku=()=>{const[e,t]=l.useState(!1),{data:n}=an({...Js}),{data:r}=an({...Zs}),{flags:o}=fs();return i.jsxs("div",{className:"h-full flex flex-col",children:[i.jsxs("div",{className:"border-b border-sidebar-border p-4",children:[i.jsx("h2",{className:"font-semibold text-lg",children:i.jsx(N,{id:"system_info.title"})}),i.jsx("p",{className:"text-xs text-sidebar-foreground/70",children:i.jsx(N,{id:"system_info.description"})})]}),i.jsxs("div",{className:"flex-1 overflow-y-auto p-4 space-y-6",children:[i.jsxs("div",{className:"space-y-3",children:[i.jsx("h3",{className:"font-medium text-sm text-sidebar-foreground",children:i.jsx(N,{id:"system_info.viewer_version"})}),i.jsxs("div",{className:"flex justify-between items-center pl-2",children:[i.jsx("span",{className:"text-xs text-sidebar-foreground/70",children:i.jsx(N,{id:"system_info.version_label"})}),i.jsxs(xr,{variant:"secondary",className:"text-xs font-mono",children:["v",n?.version||"Unknown"]})]})]}),i.jsxs("div",{className:"space-y-3",children:[i.jsx("h3",{className:"font-medium text-sm text-sidebar-foreground",children:i.jsx(N,{id:"system_info.claude_code"})}),i.jsxs("div",{className:"space-y-2 pl-2",children:[i.jsxs("div",{className:"space-y-1",children:[i.jsx("div",{className:"text-xs text-sidebar-foreground/70",children:i.jsx(N,{id:"system_info.executable_path"})}),i.jsx("div",{className:"text-xs text-sidebar-foreground font-mono break-all",children:r?.executablePath||i.jsx("span",{className:"text-sidebar-foreground/50",children:i.jsx(N,{id:"system_info.unknown"})})})]}),i.jsxs("div",{className:"flex justify-between items-center pt-1",children:[i.jsx("span",{className:"text-xs text-sidebar-foreground/70",children:i.jsx(N,{id:"system_info.version_label"})}),i.jsx(xr,{variant:"secondary",className:"text-xs font-mono",children:r?.version||i.jsx(N,{id:"system_info.unknown"})})]})]})]}),i.jsx("div",{className:"space-y-3",children:i.jsxs(Ru,{open:e,onOpenChange:t,children:[i.jsxs(ju,{className:"flex w-full items-center justify-between group",children:[i.jsx("h3",{className:"font-medium text-sm text-sidebar-foreground",children:i.jsx(N,{id:"system_info.available_features"})}),e?i.jsx(bn,{className:"h-4 w-4 text-sidebar-foreground/70 group-hover:text-sidebar-foreground transition-colors"}):i.jsx(ra,{className:"h-4 w-4 text-sidebar-foreground/70 group-hover:text-sidebar-foreground transition-colors"})]}),i.jsx(Ou,{className:"pt-3",children:i.jsx(kn,{children:i.jsx("ul",{className:"space-y-2 pl-2",children:o.map(({name:s,enabled:a})=>{const c=Mu(s);return i.jsxs("li",{className:"flex items-start gap-2",children:[a?i.jsx(ia,{className:"h-3.5 w-3.5 text-green-500 dark:text-green-400 mt-0.5 flex-shrink-0"}):i.jsx(la,{className:"h-3.5 w-3.5 text-sidebar-foreground/30 mt-0.5 flex-shrink-0"}),i.jsxs(po,{children:[i.jsx(go,{asChild:!0,children:i.jsx("span",{className:a?"text-xs text-sidebar-foreground cursor-help":"text-xs text-sidebar-foreground/50 line-through cursor-help",children:c.title})}),i.jsx(vo,{side:"right",className:"max-w-xs text-xs",children:c.description})]})]},s)})})})})]})})]})]})},vm=({projectId:e,className:t,additionalTabs:n=[],defaultActiveTab:r,headerButton:o})=>{const s={id:"settings",icon:va,title:i.jsx(N,{id:"settings.tab.title"}),content:i.jsxs("div",{className:"h-full flex flex-col",children:[i.jsxs("div",{className:"border-b border-sidebar-border p-4",children:[i.jsx("h2",{className:"font-semibold text-lg",children:i.jsx(N,{id:"settings.title"})}),i.jsx("p",{className:"text-xs text-sidebar-foreground/70",children:i.jsx(N,{id:"settings.description"})})]}),i.jsx(l.Suspense,{fallback:i.jsx("div",{className:"flex-1 flex items-center justify-center p-4",children:i.jsx("div",{className:"text-sm text-sidebar-foreground/70",children:i.jsx(N,{id:"settings.loading"})})}),children:i.jsxs("div",{className:"flex-1 overflow-y-auto p-4 space-y-6",children:[i.jsxs("div",{className:"space-y-4",children:[i.jsx("h3",{className:"font-medium text-sm text-sidebar-foreground",children:i.jsx(N,{id:"settings.section.session_display"})}),i.jsx(Cu,{openingProjectId:e??""})]}),i.jsxs("div",{className:"space-y-4",children:[i.jsx("h3",{className:"font-medium text-sm text-sidebar-foreground",children:i.jsx(N,{id:"settings.section.notifications"})}),i.jsx(vu,{})]})]})})]})},a={id:"system-info",icon:fa,title:i.jsx(N,{id:"settings.section.system_info"}),content:i.jsx(l.Suspense,{fallback:i.jsx(sr,{}),children:i.jsx(ku,{})})},c=[...n,s,a],[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 i.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:[i.jsx("div",{className:"w-12 flex flex-col border-r border-sidebar-border bg-sidebar/50",children:i.jsxs(kn,{children:[o&&i.jsx("div",{className:"border-b border-sidebar-border",children:o}),i.jsx("div",{className:"flex flex-col p-2 space-y-1",children:c.map(v=>{const h=v.icon;return i.jsxs(po,{children:[i.jsx(go,{asChild:!0,children:i.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:i.jsx(h,{className:"w-4 h-4"})})}),i.jsx(vo,{side:"right",children:i.jsx("p",{children:v.title})})]},v.id)})})]})}),f&&i.jsx("div",{className:"flex-1 flex flex-col overflow-hidden",children:i.jsx(l.Suspense,{fallback:i.jsx(sr,{}),children:p})})]})},vs=6048e5,_u=864e5,yr=Symbol.for("constructDateFrom");function Ee(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&yr in e?e[yr](t):e instanceof Date?new e.constructor(t):new Date(t)}function ce(e,t){return Ee(t||e,e)}let Au={};function zt(){return Au}function We(e,t){const n=zt(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=ce(e,t?.in),s=o.getDay(),a=(s<r?7:0)+s-r;return o.setDate(o.getDate()-a),o.setHours(0,0,0,0),o}function Tt(e,t){return We(e,{...t,weekStartsOn:1})}function xs(e,t){const n=ce(e,t?.in),r=n.getFullYear(),o=Ee(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const s=Tt(o),a=Ee(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const c=Tt(a);return n.getTime()>=s.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function wr(e){const t=ce(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 ys(e,...t){const n=Ee.bind(null,e||t.find(r=>typeof r=="object"));return t.map(n)}function br(e,t){const n=ce(e,t?.in);return n.setHours(0,0,0,0),n}function Du(e,t,n){const[r,o]=ys(n?.in,e,t),s=br(r),a=br(o),c=+s-wr(s),u=+a-wr(a);return Math.round((c-u)/_u)}function Iu(e,t){const n=xs(e,t),r=Ee(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Tt(r)}function Lu(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Wu(e){return!(!Lu(e)&&typeof e!="number"||isNaN(+ce(e)))}function Fu(e,t){const n=ce(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const $u={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"}},Bu=(e,t,n)=>{let r;const o=$u[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 pe(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Hu={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Vu={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Yu={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},zu={date:pe({formats:Hu,defaultWidth:"full"}),time:pe({formats:Vu,defaultWidth:"full"}),dateTime:pe({formats:Yu,defaultWidth:"full"})},qu={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Uu=(e,t,n,r)=>qu[e];function Q(e){return(t,n)=>{const r=n?.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,c=n?.width?String(n.width):a;o=e.formattingValues[c]||e.formattingValues[a]}else{const a=e.defaultWidth,c=n?.width?String(n.width):e.defaultWidth;o=e.values[c]||e.values[a]}const s=e.argumentCallback?e.argumentCallback(t):t;return o[s]}}const Xu={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Gu={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Ku={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"]},Qu={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"]},Ju={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"}},Zu={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"}},ed=(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"},td={ordinalNumber:ed,era:Q({values:Xu,defaultWidth:"wide"}),quarter:Q({values:Gu,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Q({values:Ku,defaultWidth:"wide"}),day:Q({values:Qu,defaultWidth:"wide"}),dayPeriod:Q({values:Ju,defaultWidth:"wide",formattingValues:Zu,defaultFormattingWidth:"wide"})};function J(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 a=s[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(c)?rd(c,m=>m.test(a)):nd(c,m=>m.test(a));let d;d=e.valueCallback?e.valueCallback(u):u,d=n.valueCallback?n.valueCallback(d):d;const f=t.slice(a.length);return{value:d,rest:f}}}function nd(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function rd(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function Bn(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 a=e.valueCallback?e.valueCallback(s[0]):s[0];a=n.valueCallback?n.valueCallback(a):a;const c=t.slice(o.length);return{value:a,rest:c}}}const od=/^(\d+)(th|st|nd|rd)?/i,sd=/\d+/i,ad={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]},cd={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ld={any:[/1/i,/2/i,/3/i,/4/i]},ud={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},dd={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]},fd={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},md={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]},hd={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},pd={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}},gd={ordinalNumber:Bn({matchPattern:od,parsePattern:sd,valueCallback:e=>parseInt(e,10)}),era:J({matchPatterns:ad,defaultMatchWidth:"wide",parsePatterns:id,defaultParseWidth:"any"}),quarter:J({matchPatterns:cd,defaultMatchWidth:"wide",parsePatterns:ld,defaultParseWidth:"any",valueCallback:e=>e+1}),month:J({matchPatterns:ud,defaultMatchWidth:"wide",parsePatterns:dd,defaultParseWidth:"any"}),day:J({matchPatterns:fd,defaultMatchWidth:"wide",parsePatterns:md,defaultParseWidth:"any"}),dayPeriod:J({matchPatterns:hd,defaultMatchWidth:"any",parsePatterns:pd,defaultParseWidth:"any"})},wn={code:"en-US",formatDistance:Bu,formatLong:zu,formatRelative:Uu,localize:td,match:gd,options:{weekStartsOn:0,firstWeekContainsDate:1}};function vd(e,t){const n=ce(e,t?.in);return Du(n,Fu(n))+1}function xd(e,t){const n=ce(e,t?.in),r=+Tt(n)-+Iu(n);return Math.round(r/vs)+1}function ws(e,t){const n=ce(e,t?.in),r=n.getFullYear(),o=zt(),s=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,a=Ee(t?.in||e,0);a.setFullYear(r+1,0,s),a.setHours(0,0,0,0);const c=We(a,t),u=Ee(t?.in||e,0);u.setFullYear(r,0,s),u.setHours(0,0,0,0);const d=We(u,t);return+n>=+c?r+1:+n>=+d?r:r-1}function yd(e,t){const n=zt(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=ws(e,t),s=Ee(t?.in||e,0);return s.setFullYear(o,0,r),s.setHours(0,0,0,0),We(s,t)}function wd(e,t){const n=ce(e,t?.in),r=+We(n,t)-+yd(n,t);return Math.round(r/vs)+1}function L(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const ye={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)}},ze={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Cr={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 ye.y(e,t)},Y:function(e,t,n,r){const o=ws(e,r),s=o>0?o:1-o;if(t==="YY"){const a=s%100;return L(a,2)}return t==="Yo"?n.ordinalNumber(s,{unit:"year"}):L(s,t.length)},R:function(e,t){const n=xs(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 ye.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=wd(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):L(o,t.length)},I:function(e,t,n){const r=xd(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"}):ye.d(e,t)},D:function(e,t,n){const r=vd(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=ze.noon:r===0?o=ze.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=ze.evening:r>=12?o=ze.afternoon:r>=4?o=ze.morning:o=ze.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 ye.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):ye.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"}):ye.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):ye.s(e,t)},S:function(e,t){return ye.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Pr(r);case"XXXX":case"XX":return _e(r);case"XXXXX":case"XXX":default:return _e(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Pr(r);case"xxxx":case"xx":return _e(r);case"xxxxx":case"xxx":default:return _e(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Sr(r,":");case"OOOO":default:return"GMT"+_e(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Sr(r,":");case"zzzz":default:return"GMT"+_e(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 Sr(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 Pr(e,t){return e%60===0?(e>0?"-":"+")+L(Math.abs(e)/60,2):_e(e,t)}function _e(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 Er=(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"})}},bs=(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"})}},bd=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return Er(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}}",Er(r,t)).replace("{{time}}",bs(o,t))},Cd={p:bs,P:bd},Sd=/^D+$/,Pd=/^Y+$/,Ed=["D","DD","YY","YYYY"];function Nd(e){return Sd.test(e)}function Td(e){return Pd.test(e)}function Rd(e,t,n){const r=jd(e,t,n);if(console.warn(r),Ed.includes(e))throw new RangeError(r)}function jd(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 Od=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Md=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,kd=/^'([^]*?)'?$/,_d=/''/g,Ad=/[a-zA-Z]/;function Dd(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,a=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,c=ce(e,n?.in);if(!Wu(c))throw new RangeError("Invalid time value");let u=t.match(Md).map(f=>{const m=f[0];if(m==="p"||m==="P"){const g=Cd[m];return g(f,o.formatLong)}return f}).join("").match(Od).map(f=>{if(f==="''")return{isToken:!1,value:"'"};const m=f[0];if(m==="'")return{isToken:!1,value:Id(f)};if(Cr[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:a,locale:o};return u.map(f=>{if(!f.isToken)return f.value;const m=f.value;(!n?.useAdditionalWeekYearTokens&&Td(m)||!n?.useAdditionalDayOfYearTokens&&Nd(m))&&Rd(m,t,String(e));const g=Cr[m[0]];return g(c,m,o.localize,d)}).join("")}function Id(e){const t=e.match(kd);return t?t[1].replace(_d,"'"):e}function Ld(e,t,n){const[r,o]=ys(n?.in,e,t);return+We(r,n)==+We(o,n)}const Wd={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}}年近く"}},Fd=(e,t,n)=>{n=n||{};let r;const o=Wd[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},$d={full:"y年M月d日EEEE",long:"y年M月d日",medium:"y/MM/dd",short:"y/MM/dd"},Bd={full:"H時mm分ss秒 zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},Hd={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Vd={date:pe({formats:$d,defaultWidth:"full"}),time:pe({formats:Bd,defaultWidth:"full"}),dateTime:pe({formats:Hd,defaultWidth:"full"})},Yd={lastWeek:"先週のeeeeのp",yesterday:"昨日のp",today:"今日のp",tomorrow:"明日のp",nextWeek:"翌週のeeeeのp",other:"P"},zd=(e,t,n,r)=>Yd[e],qd={narrow:["BC","AC"],abbreviated:["紀元前","西暦"],wide:["紀元前","西暦"]},Ud={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["第1四半期","第2四半期","第3四半期","第4四半期"]},Xd={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月"]},Gd={narrow:["日","月","火","水","木","金","土"],short:["日","月","火","水","木","金","土"],abbreviated:["日","月","火","水","木","金","土"],wide:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"]},Kd={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:"深夜"}},Qd={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:"深夜"}},Jd=(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}`}},Zd={ordinalNumber:Jd,era:Q({values:qd,defaultWidth:"wide"}),quarter:Q({values:Ud,defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:Q({values:Xd,defaultWidth:"wide"}),day:Q({values:Gd,defaultWidth:"wide"}),dayPeriod:Q({values:Kd,defaultWidth:"wide",formattingValues:Qd,defaultFormattingWidth:"wide"})},ef=/^第?\d+(年|四半期|月|週|日|時|分|秒)?/i,tf=/\d+/i,nf={narrow:/^(B\.?C\.?|A\.?D\.?)/i,abbreviated:/^(紀元[前後]|西暦)/i,wide:/^(紀元[前後]|西暦)/i},rf={narrow:[/^B/i,/^A/i],any:[/^(紀元前)/i,/^(西暦|紀元後)/i]},of={narrow:/^[1234]/i,abbreviated:/^Q[1234]/i,wide:/^第[1234一二三四1234]四半期/i},sf={any:[/(1|一|1)/i,/(2|二|2)/i,/(3|三|3)/i,/(4|四|4)/i]},af={narrow:/^([123456789]|1[012])/,abbreviated:/^([123456789]|1[012])月/i,wide:/^([123456789]|1[012])月/i},cf={any:[/^1\D/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},lf={narrow:/^[日月火水木金土]/,short:/^[日月火水木金土]/,abbreviated:/^[日月火水木金土]/,wide:/^[日月火水木金土]曜日/},uf={any:[/^日/,/^月/,/^火/,/^水/,/^木/,/^金/,/^土/]},df={any:/^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i},ff={any:{am:/^(A|午前)/i,pm:/^(P|午後)/i,midnight:/^深夜|真夜中/i,noon:/^正午/i,morning:/^朝/i,afternoon:/^午後/i,evening:/^夜/i,night:/^深夜/i}},mf={ordinalNumber:Bn({matchPattern:ef,parsePattern:tf,valueCallback:function(e){return parseInt(e,10)}}),era:J({matchPatterns:nf,defaultMatchWidth:"wide",parsePatterns:rf,defaultParseWidth:"any"}),quarter:J({matchPatterns:of,defaultMatchWidth:"wide",parsePatterns:sf,defaultParseWidth:"any",valueCallback:e=>e+1}),month:J({matchPatterns:af,defaultMatchWidth:"wide",parsePatterns:cf,defaultParseWidth:"any"}),day:J({matchPatterns:lf,defaultMatchWidth:"wide",parsePatterns:uf,defaultParseWidth:"any"}),dayPeriod:J({matchPatterns:df,defaultMatchWidth:"any",parsePatterns:ff,defaultParseWidth:"any"})},hf={code:"ja",formatDistance:Fd,formatLong:Vd,formatRelative:zd,localize:Zd,match:mf,options:{weekStartsOn:0,firstWeekContainsDate:1}},pf={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{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}} 年"}},gf=(e,t,n)=>{let r;const o=pf[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?r+"内":r+"前":r},vf={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},xf={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},yf={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},wf={date:pe({formats:vf,defaultWidth:"full"}),time:pe({formats:xf,defaultWidth:"full"}),dateTime:pe({formats:yf,defaultWidth:"full"})};function Nr(e,t,n){const r="eeee p";return Ld(e,t,n)?r:e.getTime()>t.getTime()?"'下个'"+r:"'上个'"+r}const bf={lastWeek:Nr,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:Nr,other:"PP p"},Cf=(e,t,n,r)=>{const o=bf[e];return typeof o=="function"?o(t,n,r):o},Sf={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},Pf={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},Ef={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},Nf={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},Tf={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:"夜间"}},Rf={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:"夜间"}},jf=(e,t)=>{const n=Number(e);switch(t?.unit){case"date":return n.toString()+"日";case"hour":return n.toString()+"时";case"minute":return n.toString()+"分";case"second":return n.toString()+"秒";default:return"第 "+n.toString()}},Of={ordinalNumber:jf,era:Q({values:Sf,defaultWidth:"wide"}),quarter:Q({values:Pf,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Q({values:Ef,defaultWidth:"wide"}),day:Q({values:Nf,defaultWidth:"wide"}),dayPeriod:Q({values:Tf,defaultWidth:"wide",formattingValues:Rf,defaultFormattingWidth:"wide"})},Mf=/^(第\s*)?\d+(日|时|分|秒)?/i,kf=/\d+/i,_f={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},Af={any:[/^(前)/i,/^(公元)/i]},Df={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},If={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},Lf={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},Wf={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},Ff={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},$f={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},Bf={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},Hf={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},Vf={ordinalNumber:Bn({matchPattern:Mf,parsePattern:kf,valueCallback:e=>parseInt(e,10)}),era:J({matchPatterns:_f,defaultMatchWidth:"wide",parsePatterns:Af,defaultParseWidth:"any"}),quarter:J({matchPatterns:Df,defaultMatchWidth:"wide",parsePatterns:If,defaultParseWidth:"any",valueCallback:e=>e+1}),month:J({matchPatterns:Lf,defaultMatchWidth:"wide",parsePatterns:Wf,defaultParseWidth:"any"}),day:J({matchPatterns:Ff,defaultMatchWidth:"wide",parsePatterns:$f,defaultParseWidth:"any"}),dayPeriod:J({matchPatterns:Bf,defaultMatchWidth:"any",parsePatterns:Hf,defaultParseWidth:"any"})},Yf={code:"zh-CN",formatDistance:gf,formatLong:wf,formatRelative:Cf,localize:Of,match:Vf,options:{weekStartsOn:1,firstWeekContainsDate:4}},zf=e=>{switch(e){case"ja":return hf;case"en":return wn;case"zh_CN":return Yf;default:return wn}},xm=(e,t)=>{const{locale:n="en",target:r="time"}=t,o=typeof e=="string"?new Date(e):e,s=zf(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"}else if(u==="zh_CN")switch(d){case"month":return"yyyy年M月";case"day":return"yyyy年M月d日";case"time":return"yyyy年M月d日 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 Dd(o,c,{locale:s})};var qt="Dialog",[Cs]=$e(qt),[qf,le]=Cs(qt),Ss=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:a=!0}=e,c=l.useRef(null),u=l.useRef(null),[d,f]=Ge({prop:r,defaultProp:o??!1,onChange:s,caller:qt});return i.jsx(qf,{scope:t,triggerRef:c,contentRef:u,contentId:be(),titleId:be(),descriptionId:be(),open:d,onOpenChange:f,onOpenToggle:l.useCallback(()=>f(m=>!m),[f]),modal:a,children:n})};Ss.displayName=qt;var Ps="DialogTrigger",Es=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=le(Ps,n),s=F(t,o.triggerRef);return i.jsx(k.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Yn(o.open),...r,ref:s,onClick:M(e.onClick,o.onOpenToggle)})});Es.displayName=Ps;var Hn="DialogPortal",[Uf,Ns]=Cs(Hn,{forceMount:void 0}),Ts=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=le(Hn,t);return i.jsx(Uf,{scope:t,forceMount:n,children:l.Children.map(r,a=>i.jsx(Ne,{present:n||s.open,children:i.jsx(It,{asChild:!0,container:o,children:a})}))})};Ts.displayName=Hn;var Rt="DialogOverlay",Rs=l.forwardRef((e,t)=>{const n=Ns(Rt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=le(Rt,e.__scopeDialog);return s.modal?i.jsx(Ne,{present:r||s.open,children:i.jsx(Gf,{...o,ref:t})}):null});Rs.displayName=Rt;var Xf=it("DialogOverlay.RemoveScroll"),Gf=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=le(Rt,n);return i.jsx(An,{as:Xf,allowPinchZoom:!0,shards:[o.contentRef],children:i.jsx(k.div,{"data-state":Yn(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Fe="DialogContent",js=l.forwardRef((e,t)=>{const n=Ns(Fe,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=le(Fe,e.__scopeDialog);return i.jsx(Ne,{present:r||s.open,children:s.modal?i.jsx(Kf,{...o,ref:t}):i.jsx(Qf,{...o,ref:t})})});js.displayName=Fe;var Kf=l.forwardRef((e,t)=>{const n=le(Fe,e.__scopeDialog),r=l.useRef(null),o=F(t,n.contentRef,r);return l.useEffect(()=>{const s=r.current;if(s)return Co(s)},[]),i.jsx(Os,{...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 a=s.detail.originalEvent,c=a.button===0&&a.ctrlKey===!0;(a.button===2||c)&&s.preventDefault()}),onFocusOutside:M(e.onFocusOutside,s=>s.preventDefault())})}),Qf=l.forwardRef((e,t)=>{const n=le(Fe,e.__scopeDialog),r=l.useRef(!1),o=l.useRef(!1);return i.jsx(Os,{...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 a=s.target;n.triggerRef.current?.contains(a)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),Os=l.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...a}=e,c=le(Fe,n),u=l.useRef(null),d=F(t,u);return xo(),i.jsxs(i.Fragment,{children:[i.jsx(_n,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:i.jsx(Ot,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":Yn(c.open),...a,ref:d,onDismiss:()=>c.onOpenChange(!1)})}),i.jsxs(i.Fragment,{children:[i.jsx(Jf,{titleId:c.titleId}),i.jsx(em,{contentRef:u,descriptionId:c.descriptionId})]})]})}),Vn="DialogTitle",Ms=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=le(Vn,n);return i.jsx(k.h2,{id:o.titleId,...r,ref:t})});Ms.displayName=Vn;var ks="DialogDescription",_s=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=le(ks,n);return i.jsx(k.p,{id:o.descriptionId,...r,ref:t})});_s.displayName=ks;var As="DialogClose",Ds=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=le(As,n);return i.jsx(k.button,{type:"button",...r,ref:t,onClick:M(e.onClick,()=>o.onOpenChange(!1))})});Ds.displayName=As;function Yn(e){return e?"open":"closed"}var Is="DialogTitleWarning",[ym,Ls]=wa(Is,{contentName:Fe,titleName:Vn,docsSlug:"dialog"}),Jf=({titleId:e})=>{const t=Ls(Is),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},Zf="DialogDescriptionWarning",em=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ls(Zf).contentName}}.`;return l.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},tm=Ss,nm=Es,rm=Ts,om=Rs,sm=js,am=Ms,im=_s,cm=Ds;function wm({...e}){return i.jsx(tm,{"data-slot":"dialog",...e})}function bm({...e}){return i.jsx(nm,{"data-slot":"dialog-trigger",...e})}function lm({...e}){return i.jsx(rm,{"data-slot":"dialog-portal",...e})}function um({className:e,...t}){return i.jsx(om,{"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 Cm({className:e,children:t,showCloseButton:n=!0,...r}){return i.jsxs(lm,{"data-slot":"dialog-portal",children:[i.jsx(um,{}),i.jsxs(sm,{"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&&i.jsxs(cm,{"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:[i.jsx(ya,{}),i.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function Sm({className:e,...t}){return i.jsx("div",{"data-slot":"dialog-header",className:U("flex flex-col gap-2 text-center sm:text-left",e),...t})}function Pm({className:e,...t}){return i.jsx("div",{"data-slot":"dialog-footer",className:U("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function Em({className:e,...t}){return i.jsx(am,{"data-slot":"dialog-title",className:U("text-lg leading-none font-semibold",e),...t})}function Nm({className:e,...t}){return i.jsx(im,{"data-slot":"dialog-description",className:U("text-muted-foreground text-sm",e),...t})}const dm=l.forwardRef(({className:e,children:t,...n},r)=>i.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}));dm.displayName="Label";export{sr as $,eo as A,xr as B,vr as C,wm as D,Ot as E,mm as F,vm as G,to as H,no as I,rs as J,gm as K,dm as L,hu as M,sa as N,st as O,hm as P,ot as Q,Zr as R,rt as S,at as T,ee as U,Rr as V,po as W,ya as X,go as Y,vo as Z,fa as _,ra as a,kn as a0,va as a1,ku as a2,Cu as a3,vu as a4,bm as b,Cm as c,Sm as d,Em as e,xm as f,Nm as g,Pm as h,ha as i,Ru as j,ju as k,bn as l,Ou as m,Dt as n,Ge as o,$e as p,be as q,k as r,M as s,Ne as t,pm as u,It as v,Co as w,An as x,xo as y,_n 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":["选择回车键行为"],"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":["请至少选择一个文件"],"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":["Ping 音"],"notification.pop":["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":["回车键行为"],"settings.input.enter_key_behavior.command_enter":["使用 Command+Enter 发送"],"settings.input.enter_key_behavior.description":["选择消息输入的回车键行为"],"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":["英语"],"settings.locale.ja":["日语"],"settings.locale.zh_CN":["简体中文"],"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-agent-sdk 而非 @anthropic-ai/claude-code"],"system_info.feature.agent_sdk.title":["扩展 Agent 模式"],"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 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.locale.zh_CN":["中国語(簡体字)"],"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};
|