@gnome-ui/react 1.32.0 → 1.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,28 @@
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
+ export type StatusBadgeVariant = "success" | "warning" | "error" | "new" | "accent" | "neutral";
3
+ export interface StatusBadgeProps extends HTMLAttributes<HTMLSpanElement> {
4
+ /**
5
+ * Visual style. Defaults to `"neutral"`.
6
+ * - `success` — green (`--gnome-success-*`), for published / active states.
7
+ * - `warning` — yellow (`--gnome-warning-*`), for beta / pending states.
8
+ * - `error` — red (`--gnome-error-*`), for failed / rejected states.
9
+ * - `new` — purple (`--gnome-new-*`), for newly released / featured items.
10
+ * - `accent` — blue (`--gnome-accent-*`), for highlighted / primary states.
11
+ * - `neutral` — muted overlay, for draft / archived / inactive states.
12
+ */
13
+ variant?: StatusBadgeVariant;
14
+ children: ReactNode;
15
+ }
16
+ /**
17
+ * Pill-shaped text label for entity status — published, beta, new, etc.
18
+ *
19
+ * Unlike `Badge` (which is for numeric counts), `StatusBadge` is designed
20
+ * for short human-readable state labels.
21
+ *
22
+ * ```tsx
23
+ * <StatusBadge variant="success">published</StatusBadge>
24
+ * <StatusBadge variant="warning">beta</StatusBadge>
25
+ * <StatusBadge variant="new">new</StatusBadge>
26
+ * ```
27
+ */
28
+ export declare function StatusBadge({ variant, className, children, ...props }: StatusBadgeProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { StatusBadge } from './StatusBadge';
2
+ export type { StatusBadgeProps, StatusBadgeVariant } from './StatusBadge';
package/dist/index.cjs CHANGED
@@ -1,2 +1,2 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require(`react/jsx-runtime`),t=require(`react`),n=require(`react-dom`);var r={blockquote:`_blockquote_j7x50_3`,body:`_body_j7x50_15`,icon:`_icon_j7x50_21`,content:`_content_j7x50_28`,footer:`_footer_j7x50_36`,cite:`_cite_j7x50_42`,default:`_default_j7x50_48`,info:`_info_j7x50_52`,warning:`_warning_j7x50_61`,error:`_error_j7x50_70`,success:`_success_j7x50_79`};function i({variant:t=`default`,icon:n,cite:i,children:a,className:o,...s}){return(0,e.jsxs)(`blockquote`,{className:[r.blockquote,r[t],o].filter(Boolean).join(` `),...s,children:[(0,e.jsxs)(`div`,{className:r.body,children:[n&&(0,e.jsx)(`span`,{className:r.icon,"aria-hidden":`true`,children:n}),(0,e.jsx)(`p`,{className:r.content,children:a})]}),i!==void 0&&(0,e.jsx)(`footer`,{className:r.footer,children:(0,e.jsx)(`cite`,{className:r.cite,children:i})})]})}var a={button:`_button_1qgdy_1`,pill:`_pill_1qgdy_52`,circular:`_circular_1qgdy_59`,default:`_default_1qgdy_71`,suggested:`_suggested_1qgdy_105`,destructive:`_destructive_1qgdy_120`,flat:`_flat_1qgdy_135`,raised:`_raised_1qgdy_150`,osd:`_osd_1qgdy_184`,sm:`_sm_1qgdy_228`,lg:`_lg_1qgdy_235`};function o({variant:t=`default`,size:n=`md`,shape:r=`default`,osd:i=!1,leadingIcon:o,trailingIcon:s,children:c,className:l,...u}){return(0,e.jsxs)(`button`,{className:[a.button,a[t],n===`md`?null:a[n],r===`default`?null:a[r],i?a.osd:null,l].filter(Boolean).join(` `),...u,children:[o,c,s]})}var s=`_text_102e3_1`,c=`_heading_102e3_41`,l=`_body_102e3_48`,u=`_document_102e3_55`,d=`_caption_102e3_62`,f=`_monospace_102e3_78`,p=`_numeric_102e3_85`,m={text:s,"large-title":`_large-title_102e3_9`,"title-1":`_title-1_102e3_16`,"title-2":`_title-2_102e3_22`,"title-3":`_title-3_102e3_28`,"title-4":`_title-4_102e3_34`,heading:c,body:l,document:u,caption:d,"caption-heading":`_caption-heading_102e3_69`,monospace:f,numeric:p,"color-default":`_color-default_102e3_95`,"color-dim":`_color-dim_102e3_99`,"color-accent":`_color-accent_102e3_103`,"color-destructive":`_color-destructive_102e3_107`,"color-success":`_color-success_102e3_111`,"color-warning":`_color-warning_102e3_115`,"color-error":`_color-error_102e3_119`},h={"large-title":`h1`,"title-1":`h1`,"title-2":`h2`,"title-3":`h3`,"title-4":`h4`,heading:`h3`,body:`p`,document:`p`,caption:`span`,"caption-heading":`span`,monospace:`code`,numeric:`span`};function g({variant:t=`body`,color:n=`default`,as:r,className:i,children:a,...o}){return(0,e.jsx)(r??h[t],{className:[m.text,m[t],m[`color-${n}`],i].filter(Boolean).join(` `),...o,children:a})}var _=`_card_7f351_1`,v=`_interactive_7f351_19`,y={card:_,"padding-none":`_padding-none_7f351_12`,"padding-sm":`_padding-sm_7f351_13`,"padding-md":`_padding-md_7f351_14`,"padding-lg":`_padding-lg_7f351_15`,interactive:v};function b({interactive:t=!1,padding:n=`md`,as:r,className:i,children:a,...o}){return(0,e.jsx)(r??(t?`button`:`div`),{className:[y.card,y[`padding-${n}`],t?y.interactive:null,i].filter(Boolean).join(` `),...o,children:a})}var x={spinner:`_spinner_101bb_3`,spin:`_spin_101bb_3`,sm:`_sm_101bb_15`,md:`_md_101bb_21`,lg:`_lg_101bb_27`};function S({size:t=`md`,label:n=`Loading…`,className:r,...i}){let a=[x.spinner,x[t],r].filter(Boolean).join(` `);return(0,e.jsx)(`span`,{role:`status`,"aria-label":n||void 0,"aria-hidden":n===``?!0:void 0,className:a,...i})}var C={avatar:`_avatar_1f2cd_3`,sm:`_sm_1f2cd_17`,md:`_md_1f2cd_22`,lg:`_lg_1f2cd_27`,xl:`_xl_1f2cd_32`,image:`_image_1f2cd_39`,initials:`_initials_1f2cd_48`,"color-blue":`_color-blue_1f2cd_64`,"color-green":`_color-green_1f2cd_65`,"color-yellow":`_color-yellow_1f2cd_66`,"color-orange":`_color-orange_1f2cd_72`,"color-red":`_color-red_1f2cd_73`,"color-purple":`_color-purple_1f2cd_74`,"color-brown":`_color-brown_1f2cd_75`,"color-teal":`_color-teal_1f2cd_76`,"color-slate":`_color-slate_1f2cd_77`},w=[`blue`,`green`,`yellow`,`orange`,`red`,`purple`,`brown`,`teal`,`slate`];function T(e){let t=0;for(let n=0;n<e.length;n++)t=t*31+e.charCodeAt(n)>>>0;return w[t%w.length]}function E(e){let t=e.trim().split(/\s+/).filter(Boolean);return t.length===0?``:t.length===1?t[0].charAt(0).toUpperCase():t[0].charAt(0).toUpperCase()+t[t.length-1].charAt(0).toUpperCase()}function D({name:t=``,src:n,alt:r,size:i=`md`,color:a,className:o,...s}){let c=a??(t?T(t):`blue`),l=E(t),u=[C.avatar,C[i],n?null:C[`color-${c}`],o].filter(Boolean).join(` `);return(0,e.jsx)(`span`,{role:`img`,"aria-label":r??t??`Avatar`,className:u,...s,children:n?(0,e.jsx)(`img`,{src:n,alt:r??t,className:C.image}):(0,e.jsx)(`span`,{"aria-hidden":`true`,className:C.initials,children:l})})}var O={separator:`_separator_w9b4s_3`,horizontal:`_horizontal_w9b4s_12`,vertical:`_vertical_w9b4s_20`};function k({orientation:t=`horizontal`,className:n,...r}){let i=[O.separator,t===`vertical`?O.vertical:O.horizontal,n].filter(Boolean).join(` `);return t===`vertical`?(0,e.jsx)(`div`,{role:`separator`,"aria-orientation":`vertical`,className:i,...r}):(0,e.jsx)(`hr`,{className:i,...r})}var A={switch:`_switch_1h6fk_3`};function ee({className:t,...n}){return(0,e.jsx)(`input`,{type:`checkbox`,role:`switch`,className:[A.switch,t].filter(Boolean).join(` `),...n})}var te={checkbox:`_checkbox_jnffk_3`};function ne({indeterminate:n=!1,className:r,...i}){let a=(0,t.useRef)(null);return(0,t.useEffect)(()=>{a.current&&(a.current.indeterminate=n)},[n]),(0,e.jsx)(`input`,{ref:a,type:`checkbox`,className:[te.checkbox,r].filter(Boolean).join(` `),...i})}var re={wrapper:`_wrapper_q91d8_3`,disabled:`_disabled_q91d8_9`,label:`_label_q91d8_15`,input:`_input_q91d8_25`,errorInput:`_errorInput_q91d8_74`,hint:`_hint_q91d8_89`,errorHint:`_errorHint_q91d8_97`};function ie({label:n,helperText:r,error:i,id:a,className:o,disabled:s,...c}){let l=(0,t.useId)(),u=a??l,d=`${u}-help`;return(0,e.jsxs)(`div`,{className:[re.wrapper,s?re.disabled:null].filter(Boolean).join(` `),children:[n&&(0,e.jsx)(`label`,{htmlFor:u,className:re.label,children:n}),(0,e.jsx)(`input`,{id:u,disabled:s,"aria-describedby":i||r?d:void 0,"aria-invalid":i?!0:void 0,className:[re.input,i?re.errorInput:null,o].filter(Boolean).join(` `),...c}),(i||r)&&(0,e.jsx)(`span`,{id:d,className:[re.hint,i?re.errorHint:null].filter(Boolean).join(` `),children:i??r})]})}var ae={radio:`_radio_1vybt_3`};function oe({className:t,...n}){return(0,e.jsx)(`input`,{type:`radio`,className:[ae.radio,t].filter(Boolean).join(` `),...n})}var se={track:`_track_endpr_3`,fill:`_fill_endpr_14`,accent:`_accent_endpr_23`,success:`_success_endpr_24`,warning:`_warning_endpr_25`,error:`_error_endpr_26`,indeterminate:`_indeterminate_endpr_30`,pulse:`_pulse_endpr_1`};function ce({value:t,variant:n=`accent`,className:r,"aria-label":i,"aria-labelledby":a,...o}){let s=t==null,c=s?void 0:Math.min(1,Math.max(0,t)),l=c===void 0?void 0:c*100;return(0,e.jsx)(`div`,{role:`progressbar`,"aria-label":i,"aria-labelledby":a,"aria-valuenow":c===void 0?void 0:Math.round(l),"aria-valuemin":s?void 0:0,"aria-valuemax":s?void 0:100,className:[se.track,r].filter(Boolean).join(` `),...o,children:(0,e.jsx)(`div`,{className:[se.fill,se[n],s?se.indeterminate:null].filter(Boolean).join(` `),style:s?void 0:{width:`${l}%`}})})}var le=`_banner_1x3b0_3`,ue=`_message_1x3b0_17`,de=`_actions_1x3b0_24`,fe=`_actionBtn_1x3b0_33`,pe=`_dismissBtn_1x3b0_55`,me=`_info_1x3b0_85`,he=`_warning_1x3b0_99`,ge=`_error_1x3b0_113`,_e=`_success_1x3b0_127`,ve={banner:le,message:ue,actions:de,actionBtn:fe,dismissBtn:pe,info:me,"actionBtn-info":`_actionBtn-info_1x3b0_90`,warning:he,"actionBtn-warning":`_actionBtn-warning_1x3b0_104`,error:ge,"actionBtn-error":`_actionBtn-error_1x3b0_118`,success:_e,"actionBtn-success":`_actionBtn-success_1x3b0_132`};function ye({variant:t=`info`,children:n,actionLabel:r,onAction:i,dismissible:a=!1,onDismiss:o,className:s,...c}){return(0,e.jsxs)(`div`,{role:`status`,"aria-live":`polite`,className:[ve.banner,ve[t],s].filter(Boolean).join(` `),...c,children:[(0,e.jsx)(`span`,{className:ve.message,children:n}),(r||a)&&(0,e.jsxs)(`span`,{className:ve.actions,children:[r&&(0,e.jsx)(`button`,{type:`button`,className:[ve.actionBtn,ve[`actionBtn-${t}`]].filter(Boolean).join(` `),onClick:i,children:r}),a&&(0,e.jsx)(`button`,{type:`button`,className:ve.dismissBtn,onClick:o,"aria-label":`Dismiss`,children:(0,e.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,"aria-hidden":`true`,fill:`currentColor`,children:(0,e.jsx)(`path`,{d:`M3.293 3.293a1 1 0 011.414 0L8 6.586l3.293-3.293a1 1 0 111.414 1.414L9.414 8l3.293 3.293a1 1 0 01-1.414 1.414L8 9.414l-3.293 3.293a1 1 0 01-1.414-1.414L6.586 8 3.293 4.707a1 1 0 010-1.414z`})})})]})]})}var be={headerBar:`_headerBar_1rr5r_3`,flat:`_flat_1rr5r_22`,slot:`_slot_1rr5r_29`,slotEnd:`_slotEnd_1rr5r_36`,titleSlot:`_titleSlot_1rr5r_42`,title:`_title_1rr5r_42`};function xe({title:t,start:n,end:r,flat:i=!1,className:a,...o}){return(0,e.jsxs)(`header`,{className:[be.headerBar,i?be.flat:null,a].filter(Boolean).join(` `),...o,children:[(0,e.jsx)(`div`,{className:be.slot,children:n}),(0,e.jsx)(`div`,{className:be.titleSlot,"aria-live":`polite`,children:typeof t==`string`?(0,e.jsx)(`span`,{className:be.title,children:t}):t}),(0,e.jsx)(`div`,{className:[be.slot,be.slotEnd].filter(Boolean).join(` `),children:r})]})}var Se={footer:`_footer_10xz9_3`,flat:`_flat_10xz9_23`,slot:`_slot_10xz9_29`,slotEnd:`_slotEnd_10xz9_36`,center:`_center_10xz9_42`};function Ce({start:t,end:n,children:r,flat:i=!1,className:a,...o}){return(0,e.jsxs)(`footer`,{className:[Se.footer,i?Se.flat:null,a].filter(Boolean).join(` `),...o,children:[(0,e.jsx)(`div`,{className:Se.slot,children:t}),r!=null&&(0,e.jsx)(`div`,{className:Se.center,children:r}),(0,e.jsx)(`div`,{className:[Se.slot,Se.slotEnd].filter(Boolean).join(` `),children:n})]})}var we={wrapper:`_wrapper_1apop_3`,badge:`_badge_1apop_11`,anchored:`_anchored_1apop_32`,dot:`_dot_1apop_41`,accent:`_accent_1apop_56`,success:`_success_1apop_61`,warning:`_warning_1apop_66`,error:`_error_1apop_71`,neutral:`_neutral_1apop_76`};function Te({variant:t=`accent`,dot:n=!1,children:r,anchor:i,className:a,...o}){let s=(0,e.jsx)(`span`,{className:[we.badge,we[t],n?we.dot:null,i?we.anchored:null,a].filter(Boolean).join(` `),...o,children:!n&&r});return i?(0,e.jsxs)(`span`,{className:we.wrapper,children:[i,s]}):s}var Ee={countdownTimer:`_countdownTimer_twhbs_3`,value:`_value_twhbs_25`,accent:`_accent_twhbs_34`,success:`_success_twhbs_46`,warning:`_warning_twhbs_58`,destructive:`_destructive_twhbs_70`,finished:`_finished_twhbs_82`};function De({start:n,end:r,format:i=`time`,variant:a=`accent`,action:o,className:s,...c}){let[l,u]=(0,t.useState)(null),[d,f]=(0,t.useState)(!1);if((0,t.useEffect)(()=>{let e=()=>{let e=new Date,t=new Date(r).getTime()-e.getTime();return t<=0?{days:0,hours:0,minutes:0,seconds:0,isFinished:!0}:{days:Math.floor(t/(1e3*60*60*24)),hours:Math.floor(t/(1e3*60*60)%24),minutes:Math.floor(t/1e3/60%60),seconds:Math.floor(t/1e3%60),isFinished:!1}};u(e());let t=setInterval(()=>{let t=e();u(t),t.isFinished&&!d&&(o?.(),f(!0))},1e3);return()=>clearInterval(t)},[r,o,d]),!l)return null;let p=()=>{if(i===`date`)return new Date(r).toLocaleDateString();let{days:e,hours:t,minutes:n,seconds:a,isFinished:o}=l;return o?`00:00:00`:i===`datetime`?`${new Date(r).toLocaleDateString()} ${`${String(t).padStart(2,`0`)}:${String(n).padStart(2,`0`)}:${String(a).padStart(2,`0`)}`}`:e>0?`${e}d ${String(t).padStart(2,`0`)}h ${String(n).padStart(2,`0`)}m`:`${String(t).padStart(2,`0`)}:${String(n).padStart(2,`0`)}:${String(a).padStart(2,`0`)}`},m=l.isFinished?`destructive`:a;return(0,e.jsx)(`div`,{className:[Ee.countdownTimer,Ee[m],l.isFinished?Ee.finished:null,s].filter(Boolean).join(` `),...c,children:(0,e.jsx)(`span`,{className:Ee.value,children:p()})})}var Oe={sm:12,md:16,lg:20};function j({icon:t,size:n=`md`,label:r,width:i,height:a,...o}){let s=Oe[n];return(0,e.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:t.viewBox,width:i??s,height:a??s,fill:`currentColor`,"aria-label":r,"aria-hidden":r?void 0:!0,role:r?`img`:void 0,focusable:`false`,...o,children:t.paths.map((t,n)=>(0,e.jsx)(`path`,{d:t.d,fillRule:t.fillRule,clipRule:t.clipRule},n))})}var ke={viewBox:`0 0 16 16`,paths:[{d:`m2.5 5 5.5 6 5.5-6z`,fillRule:`evenodd`}]},Ae={viewBox:`0 0 16 16`,paths:[{d:`M2.5 11 8 5l5.5 6z`,fillRule:`evenodd`}]},je={viewBox:`0 0 16 16`,paths:[{d:`M3.293 3.293a1 1 0 0 1 1.414 0L8 6.586l3.293-3.293a1 1 0 1 1 1.414 1.414L9.414 8l3.293 3.293a1 1 0 0 1-1.414 1.414L8 9.414l-3.293 3.293a1 1 0 0 1-1.414-1.414L6.586 8 3.293 4.707a1 1 0 0 1 0-1.414z`,fillRule:`evenodd`}]},Me={viewBox:`0 0 16 16`,paths:[{d:`M6.5 1a5.5 5.5 0 0 1 4.33 8.92l3.13 3.13-1.41 1.41-3.13-3.13A5.5 5.5 0 1 1 6.5 1zm0 2a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7z`,fillRule:`evenodd`}]},Ne={viewBox:`0 0 16 16`,paths:[{d:`M8 3C4.5 3 1.5 5.667 0 8c1.5 2.333 4.5 5 8 5s6.5-2.667 8-5c-1.5-2.333-4.5-5-8-5zm0 8a3 3 0 1 1 0-6 3 3 0 0 1 0 6zm0-4.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3z`,fillRule:`evenodd`}]},Pe={viewBox:`0 0 16 16`,paths:[{d:`M1.293 1.293a1 1 0 0 1 1.414 0l12 12a1 1 0 0 1-1.414 1.414l-1.88-1.88A8.8 8.8 0 0 1 8 13C4.5 13 1.5 10.333 0 8c.637-1.023 1.52-2.049 2.6-2.893L1.293 2.707a1 1 0 0 1 0-1.414zM5.03 6.444 7.09 8.505A1.5 1.5 0 0 0 9.494 6.91L7.432 4.848A3 3 0 0 0 5.03 6.444zM8 3c.645 0 1.27.083 1.867.237l-1.59 1.59A3 3 0 0 0 5.173 7.92L3.584 6.333C4.51 4.95 6.152 3 8 3zm5.4 2.107C14.48 5.951 15.363 6.977 16 8c-1.5 2.333-4.5 5-8 5a8.8 8.8 0 0 1-2.072-.249l1.538-1.538a3 3 0 0 0 3.703-3.703L12.81 5.87c.202.076.4.156.59.237z`,fillRule:`evenodd`}]},Fe={viewBox:`0 0 16 16`,paths:[{d:`M13.5 3 6 11.5 2.5 8 1 9.5l5 5 9-10z`,fillRule:`evenodd`}]},M={wrapper:`_wrapper_ld6g1_3`,open:`_open_ld6g1_13`,bar:`_bar_ld6g1_20`,disabled:`_disabled_ld6g1_31`,searchIcon:`_searchIcon_ld6g1_37`,input:`_input_ld6g1_47`,clearButton:`_clearButton_ld6g1_82`,filterRow:`_filterRow_ld6g1_124`,suggestionsPanel:`_suggestionsPanel_ld6g1_136`,suggestionsLoading:`_suggestionsLoading_ld6g1_160`,suggestionItem:`_suggestionItem_ld6g1_166`,suggestionItemActive:`_suggestionItemActive_ld6g1_176`,inline:`_inline_ld6g1_202`};function Ie({open:r,onClose:i,onClear:a,children:o,value:s,onChange:c,placeholder:l=`Search…`,disabled:u,inline:d=!1,className:f,suggestions:p,onSuggestionSelect:m,loadingSuggestions:h=!1,renderSuggestion:g,suggestionsLabel:_=`Suggestions`,...v}){let y=(0,t.useRef)(null),b=(0,t.useRef)(null),x=(0,t.useRef)(null),C=(0,t.useId)(),w=(0,t.useId)(),[T,E]=(0,t.useState)(-1),[D,O]=(0,t.useState)(null),k=(p?.length??0)>0,A=r&&(h||k);(0,t.useEffect)(()=>{E(-1)},[p]),(0,t.useEffect)(()=>{if(r){let e=requestAnimationFrame(()=>y.current?.focus());return()=>cancelAnimationFrame(e)}},[r]),(0,t.useEffect)(()=>{if(!A||!b.current){O(null);return}function e(){if(!b.current)return;let e=b.current.getBoundingClientRect();O({top:e.bottom,left:e.left,width:e.width})}return e(),window.addEventListener(`scroll`,e,{passive:!0,capture:!0}),window.addEventListener(`resize`,e,{passive:!0}),()=>{window.removeEventListener(`scroll`,e,{capture:!0}),window.removeEventListener(`resize`,e)}},[A]),(0,t.useEffect)(()=>{T<0||!x.current||x.current.children[T]?.scrollIntoView({block:`nearest`})},[T]);let ee=(0,t.useCallback)(e=>{if(A&&k&&p){if(e.key===`ArrowDown`){e.preventDefault(),E(e=>Math.min(e+1,p.length-1));return}if(e.key===`ArrowUp`){e.preventDefault(),E(e=>Math.max(e-1,-1));return}if(e.key===`Enter`&&T>=0){e.preventDefault(),m?.(p[T]);return}}e.key===`Escape`&&(e.preventDefault(),i?.()),v.onKeyDown?.(e)},[i,v,A,k,p,T,m]),te=s!==void 0&&s!==``,ne=T>=0&&p?.[T]?`${w}-${p[T].id}`:void 0,re=A&&D?(0,n.createPortal)((0,e.jsxs)(`ul`,{ref:x,role:`listbox`,"aria-label":_,id:C,className:M.suggestionsPanel,style:{top:D.top,left:D.left,width:D.width},onMouseDown:e=>e.preventDefault(),children:[h&&(0,e.jsx)(`li`,{role:`presentation`,className:M.suggestionsLoading,children:(0,e.jsx)(S,{size:`sm`,label:`Loading suggestions…`})}),!h&&p?.map((t,n)=>(0,e.jsx)(`li`,{id:`${w}-${t.id}`,role:`option`,"aria-selected":n===T,className:[M.suggestionItem,n===T?M.suggestionItemActive:null].filter(Boolean).join(` `),onMouseEnter:()=>E(n),onMouseLeave:()=>E(-1),onClick:()=>m?.(t),children:g?g(t):t.label},t.id))]}),document.body):null;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(`div`,{ref:b,className:[M.wrapper,r?M.open:null,f].filter(Boolean).join(` `),"aria-hidden":!r,children:[(0,e.jsxs)(`div`,{className:[M.bar,d?M.inline:null,u?M.disabled:null].filter(Boolean).join(` `),children:[(0,e.jsx)(`span`,{className:M.searchIcon,"aria-hidden":!0,children:(0,e.jsx)(j,{icon:Me,size:`md`})}),(0,e.jsx)(`input`,{ref:y,type:`search`,role:`combobox`,"aria-autocomplete":`list`,"aria-expanded":A,"aria-controls":A?C:void 0,"aria-activedescendant":ne,value:s,onChange:c,placeholder:l,disabled:u,tabIndex:r?void 0:-1,className:M.input,onKeyDown:ee,...v}),te&&(0,e.jsx)(`button`,{type:`button`,className:M.clearButton,"aria-label":`Clear search`,tabIndex:r?void 0:-1,disabled:u,onClick:()=>{a?.(),y.current?.focus()},children:(0,e.jsx)(j,{icon:je,size:`md`})})]}),o&&(0,e.jsx)(`div`,{className:M.filterRow,children:o})]}),typeof document<`u`&&re]})}var Le={page:`_page_cb4hq_3`,iconWrap:`_iconWrap_cb4hq_20`,title:`_title_cb4hq_33`,description:`_description_cb4hq_44`,actions:`_actions_cb4hq_58`,compact:`_compact_cb4hq_68`};function Re({icon:t,iconNode:n,title:r,description:i,children:a,compact:o=!1,className:s,...c}){let l=o?64:128,u=t?(0,e.jsx)(j,{icon:t,width:l,height:l,"aria-hidden":!0}):n??null;return(0,e.jsxs)(`div`,{className:[Le.page,o?Le.compact:null,s].filter(Boolean).join(` `),...c,children:[u&&(0,e.jsx)(`div`,{className:Le.iconWrap,"aria-hidden":`true`,children:u}),(0,e.jsx)(`p`,{className:Le.title,children:r}),i&&(0,e.jsx)(`p`,{className:Le.description,children:i}),a&&(0,e.jsx)(`div`,{className:Le.actions,children:a})]})}var ze={narrow:400,medium:550,wide:860};function Be(){let e=()=>{let e=typeof window<`u`?window.innerWidth:1280;return{isNarrow:e<=ze.narrow,isMedium:e<=ze.medium,isWide:e<=ze.wide,width:e}},[n,r]=(0,t.useState)(e);return(0,t.useEffect)(()=>{let t=()=>r(e());return window.addEventListener(`resize`,t,{passive:!0}),()=>window.removeEventListener(`resize`,t)},[]),n}var Ve=`_sidebar_537se_3`,He=`_section_537se_21`,Ue=`_sectionHeader_537se_35`,We=`_sectionHeaderIcon_537se_71`,Ge=`_sectionTitle_537se_78`,Ke=`_sectionChevron_537se_94`,qe=`_sectionBody_537se_104`,Je=`_sectionBodyCollapsed_537se_110`,Ye=`_sectionBodyInner_537se_114`,Xe=`_list_537se_120`,Ze=`_item_537se_131`,Qe=`_itemBtn_537se_137`,$e=`_active_537se_184`,et=`_itemIcon_537se_200`,tt=`_itemLabel_537se_213`,nt=`_itemSuffix_537se_223`,rt=`_contextMenu_537se_232`,it=`_contextMenuItem_537se_256`,at=`_contextMenuDestructive_537se_292`,ot=`_searchWrap_537se_298`,st=`_variantBlue_537se_309`,ct=`_variantGreen_537se_318`,lt=`_variantRed_537se_327`,ut=`_variantYellow_537se_336`,dt=`_variantBlack_537se_345`,ft=`_variantTransparent_537se_354`,pt=`_variantBlurred_537se_359`,mt=`_pageMode_537se_375`,ht=`_dragOver_537se_382`,gt=`_collapsed_537se_390`,_t=`_itemCollapsed_537se_401`,N={sidebar:Ve,section:He,sectionHeader:Ue,sectionHeaderIcon:We,sectionTitle:Ge,sectionChevron:Ke,sectionBody:qe,sectionBodyCollapsed:Je,sectionBodyInner:Ye,list:Xe,item:Ze,itemBtn:Qe,active:$e,itemIcon:et,itemLabel:tt,itemSuffix:nt,contextMenu:rt,"menu-in":`_menu-in_537se_1`,contextMenuItem:it,contextMenuDestructive:at,searchWrap:ot,variantBlue:st,variantGreen:ct,variantRed:lt,variantYellow:ut,variantBlack:dt,variantTransparent:ft,variantBlurred:pt,pageMode:mt,dragOver:ht,collapsed:gt,itemCollapsed:_t},vt=(0,t.createContext)(!1);function yt(){return(0,t.useContext)(vt)}var bt=(0,t.createContext)(``);function xt(e,n){let r=0;return t.Children.forEach(e,e=>{if(!(0,t.isValidElement)(e))return;let i=e.props;typeof i.label==`string`?i.label.toLowerCase().includes(n.toLowerCase())&&r++:i.children&&(r+=xt(i.children,n))}),r}var St={blue:`variantBlue`,green:`variantGreen`,red:`variantRed`,yellow:`variantYellow`,black:`variantBlack`,transparent:`variantTransparent`,blurred:`variantBlurred`};function Ct({children:n,collapsed:r=!1,searchable:i,filter:a,onFilterChange:o,mode:s,variant:c=`classic`,className:l,...u}){let[d,f]=(0,t.useState)(``),{isNarrow:p}=Be(),m=a!==void 0,h=m?a:d,g=e=>{m||f(e),o?.(e)},_=h.length>0,v=s??(p?`page`:`sidebar`),y=!_||xt(n,h)>0;return(0,e.jsx)(vt.Provider,{value:r,children:(0,e.jsx)(bt.Provider,{value:h,children:(0,e.jsxs)(`nav`,{className:[N.sidebar,r?N.collapsed:null,v===`page`?N.pageMode:null,c===`classic`?null:N[St[c]],l].filter(Boolean).join(` `),...u,children:[i&&(0,e.jsx)(`div`,{className:N.searchWrap,children:(0,e.jsx)(Ie,{open:!0,value:h,onChange:e=>g(e.target.value),onClose:()=>g(``),onClear:()=>g(``),inline:!0})}),_&&!y?(0,e.jsx)(Re,{title:`No Results`,description:`No items match your search.`,compact:!0}):n]})})})}function wt(e,n){let r=0;return t.Children.forEach(e,e=>{if(!(0,t.isValidElement)(e))return;let i=e.props;typeof i.label==`string`?i.label.toLowerCase().includes(n.toLowerCase())&&r++:i.children&&(r+=wt(i.children,n))}),r}var Tt=(0,t.forwardRef)(function({title:n,icon:r,collapsible:i=!1,defaultOpen:a=!0,open:o,onOpenChange:s,children:c,className:l,...u},d){let[f,p]=(0,t.useState)(a),m=o!==void 0,h=m?o:f,g=yt(),_=(0,t.useContext)(bt),v=(0,t.useId)(),y=e=>{m||p(e),s?.(e)};if((0,t.useImperativeHandle)(d,()=>({expand:()=>y(!0),collapse:()=>y(!1),toggle:()=>y(!h)})),!(_.length===0||wt(c,_)>0))return null;let b=g?!0:h,x=!!(n||r||i&&!g);return(0,e.jsxs)(`section`,{className:[N.section,l].filter(Boolean).join(` `),...u,children:[x&&(i&&!g?(0,e.jsxs)(`button`,{type:`button`,className:N.sectionHeader,onClick:()=>y(!h),"aria-expanded":h,"aria-controls":v,children:[r&&(0,e.jsx)(`span`,{className:N.sectionHeaderIcon,children:(0,e.jsx)(j,{icon:r,size:`sm`,"aria-hidden":!0})}),n&&(0,e.jsx)(`span`,{className:N.sectionTitle,children:n}),(0,e.jsx)(`span`,{className:N.sectionChevron,children:(0,e.jsx)(j,{icon:h?Ae:ke,size:`sm`,"aria-hidden":!0})})]}):(0,e.jsxs)(`div`,{className:N.sectionHeader,children:[r&&(0,e.jsx)(`span`,{className:N.sectionHeaderIcon,children:(0,e.jsx)(j,{icon:r,size:`sm`,"aria-hidden":!0})}),n&&(0,e.jsx)(`span`,{className:N.sectionTitle,children:n})]})),(0,e.jsx)(`div`,{id:v,className:[N.sectionBody,b?null:N.sectionBodyCollapsed].filter(Boolean).join(` `),"aria-hidden":!b||void 0,children:(0,e.jsx)(`div`,{className:N.sectionBodyInner,children:(0,e.jsx)(`ul`,{role:`list`,className:N.list,children:c})})})]})}),Et={tooltip:`_tooltip_y4het_3`,visible:`_visible_y4het_29`,top:`_top_y4het_55`,bottom:`_bottom_y4het_62`,left:`_left_y4het_69`,right:`_right_y4het_76`},Dt=6;function Ot(e,t,n){let r=window.innerWidth,i=window.innerHeight,a=[n,n===`top`||n===`bottom`?n===`top`?`bottom`:`top`:n===`left`?`right`:`left`,`top`,`bottom`,`left`,`right`];for(let n of a){let a=0,o=0;n===`top`?(a=e.top-t.height-Dt,o=e.left+e.width/2-t.width/2):n===`bottom`?(a=e.bottom+Dt,o=e.left+e.width/2-t.width/2):n===`left`?(a=e.top+e.height/2-t.height/2,o=e.left-t.width-Dt):(a=e.top+e.height/2-t.height/2,o=e.right+Dt);let s=o>=8&&o+t.width<=r-8,c=a>=8&&a+t.height<=i-8;if(s&&c)return{top:Math.max(8,Math.min(a,i-t.height-8)),left:Math.max(8,Math.min(o,r-t.width-8)),placement:n}}let o=0,s=0;return n===`top`&&(o=e.top-t.height-Dt,s=e.left+e.width/2-t.width/2),n===`bottom`&&(o=e.bottom+Dt,s=e.left+e.width/2-t.width/2),n===`left`&&(o=e.top+e.height/2-t.height/2,s=e.left-t.width-Dt),n===`right`&&(o=e.top+e.height/2-t.height/2,s=e.right+Dt),{top:Math.max(8,Math.min(o,i-t.height-8)),left:Math.max(8,Math.min(s,window.innerWidth-t.width-8)),placement:n}}function kt({label:r,placement:i=`top`,delay:a=500,children:o}){let s=(0,t.useId)(),[c,l]=(0,t.useState)(!1),[u,d]=(0,t.useState)(null),f=(0,t.useRef)(null),p=(0,t.useRef)(null),m=(0,t.useRef)(null),h=()=>{m.current&&=(clearTimeout(m.current),null)},g=(0,t.useCallback)(()=>{!f.current||!p.current||d(Ot(f.current.getBoundingClientRect(),p.current.getBoundingClientRect(),i))},[i]);(0,t.useEffect)(()=>{if(c)return g(),window.addEventListener(`scroll`,g,{passive:!0,capture:!0}),window.addEventListener(`resize`,g,{passive:!0}),()=>{window.removeEventListener(`scroll`,g,{capture:!0}),window.removeEventListener(`resize`,g)}},[c,g]);let _=(0,t.useCallback)(()=>{h(),m.current=setTimeout(()=>l(!0),a)},[a]),v=(0,t.useCallback)(()=>{h(),l(!1),d(null)},[]);(0,t.useEffect)(()=>{c&&g()},[c,g]),(0,t.useEffect)(()=>{if(!c)return;let e=e=>{e.key===`Escape`&&v()};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[c,v]);let y=(0,t.cloneElement)(o,{ref:f,"aria-describedby":s,onMouseEnter:e=>{_(),o.props.onMouseEnter?.(e)},onMouseLeave:e=>{v(),o.props.onMouseLeave?.(e)},onFocus:e=>{_(),o.props.onFocus?.(e)},onBlur:e=>{v(),o.props.onBlur?.(e)}}),b=(0,e.jsx)(`div`,{ref:p,id:s,role:`tooltip`,className:[Et.tooltip,u?Et[u.placement]:null,c&&u?Et.visible:null].filter(Boolean).join(` `),style:u?{top:u.top,left:u.left}:{visibility:`hidden`,top:-9999,left:-9999},children:r});return(0,e.jsxs)(e.Fragment,{children:[y,typeof document<`u`?(0,n.createPortal)(b,document.body):b]})}function At({label:r,icon:i,active:a=!1,suffix:o,badge:s,tooltip:c,menuItems:l,onDrop:u,acceptTypes:d,className:f,...p}){let m=yt(),h=(0,t.useContext)(bt),g=o??s,_=m?c??r:c,v=h.length>0&&!r.toLowerCase().includes(h.toLowerCase()),[y,b]=(0,t.useState)(!1),x=e=>{u&&(d?.length&&!d.some(t=>e.dataTransfer.types.includes(t))||(e.preventDefault(),b(!0)))},S=()=>b(!1),C=e=>{u&&(e.preventDefault(),b(!1),u(e))},[w,T]=(0,t.useState)(null),E=(0,t.useRef)(null),D=(0,t.useCallback)((e,t)=>T({x:e,y:t}),[]),O=(0,t.useCallback)(()=>T(null),[]);(0,t.useEffect)(()=>{if(!w)return;let e=e=>{E.current&&!E.current.contains(e.target)&&O()},t=e=>{e.key===`Escape`&&O()};return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}},[w,O]);let k=e=>{l?.length&&(e.preventDefault(),D(e.clientX,e.clientY))},A=e=>{if(e.key===`ContextMenu`||e.key===`F10`&&e.shiftKey){if(!l?.length)return;e.preventDefault();let t=e.currentTarget.getBoundingClientRect();D(t.right,t.top)}},ee=(0,e.jsxs)(`button`,{type:`button`,"aria-current":a?`page`:void 0,"aria-label":m?r:void 0,className:[N.itemBtn,a?N.active:null,m?N.itemCollapsed:null,y?N.dragOver:null,f].filter(Boolean).join(` `),onContextMenu:k,onKeyDown:A,onDragOver:x,onDragLeave:S,onDrop:C,...p,children:[i&&(0,e.jsx)(`span`,{className:N.itemIcon,children:(0,e.jsx)(j,{icon:i,size:`md`,"aria-hidden":!0})}),!m&&(0,e.jsx)(`span`,{className:N.itemLabel,children:r}),!m&&g&&(0,e.jsx)(`span`,{className:N.itemSuffix,children:g})]});return(0,e.jsxs)(`li`,{className:N.item,hidden:v||void 0,children:[_?(0,e.jsx)(kt,{label:_,placement:`right`,children:ee}):ee,w&&l?.length&&typeof document<`u`&&(0,n.createPortal)((0,e.jsx)(`div`,{ref:E,className:N.contextMenu,style:{top:w.y,left:w.x},role:`menu`,children:l.map(t=>(0,e.jsx)(`button`,{type:`button`,role:`menuitem`,disabled:t.disabled,className:[N.contextMenuItem,t.destructive?N.contextMenuDestructive:null].filter(Boolean).join(` `),onClick:()=>{t.onClick(),O()},children:t.label},t.label))}),document.body)]})}var jt={spin:`_spin_7d4yi_3`,disabled:`_disabled_7d4yi_36`,btn:`_btn_7d4yi_43`,value:`_value_7d4yi_96`};function Mt(e){let t=e.toString(),n=t.indexOf(`.`);return n===-1?0:t.length-n-1}function Nt(e,t,n){return Math.min(n,Math.max(t,e))}function Pt({value:n,onChange:r,min:i=0,max:a=100,step:o=1,decimals:s,disabled:c=!1,className:l,"aria-label":u,"aria-labelledby":d,...f}){let p=s??Mt(o),m=(0,t.useCallback)(e=>r(parseFloat(Nt(e,i,a).toFixed(p))),[r,i,a,p]),h=(0,t.useCallback)(e=>{switch(e.key){case`ArrowUp`:e.preventDefault(),m(n+o);break;case`ArrowDown`:e.preventDefault(),m(n-o);break;case`PageUp`:e.preventDefault(),m(n+o*10);break;case`PageDown`:e.preventDefault(),m(n-o*10);break;case`Home`:e.preventDefault(),m(i);break;case`End`:e.preventDefault(),m(a);break}},[n,o,i,a,m]);return(0,e.jsxs)(`div`,{role:`spinbutton`,"aria-valuenow":n,"aria-valuemin":i,"aria-valuemax":a,"aria-label":u,"aria-labelledby":d,"aria-disabled":c||void 0,tabIndex:c?-1:0,onKeyDown:c?void 0:h,className:[jt.spin,c?jt.disabled:null,l].filter(Boolean).join(` `),...f,children:[(0,e.jsx)(`button`,{type:`button`,tabIndex:-1,"aria-hidden":`true`,disabled:c||n<=i,className:jt.btn,onClick:()=>m(n-o),children:`−`}),(0,e.jsx)(`span`,{className:jt.value,"aria-hidden":`true`,children:n.toFixed(p)}),(0,e.jsx)(`button`,{type:`button`,tabIndex:-1,"aria-hidden":`true`,disabled:c||n>=a,className:jt.btn,onClick:()=>m(n+o),children:`+`})]})}var P={bar:`_bar_12ars_3`,list:`_list_12ars_10`,tab:`_tab_12ars_26`,active:`_active_12ars_81`,tabIcon:`_tabIcon_12ars_102`,tabLabel:`_tabLabel_12ars_110`,closeBtn:`_closeBtn_12ars_119`,panel:`_panel_12ars_148`,inline:`_inline_12ars_158`};function Ft({children:n,className:r,inline:i=!1,"aria-label":a=`Tabs`,...o}){let s=(0,t.useRef)(null);function c(e){let t=Array.from(s.current?.querySelectorAll(`[role=tab]:not(:disabled)`)??[]),n=t.findIndex(e=>e===document.activeElement);if(n===-1)return;let r=n;if(e.key===`ArrowRight`)r=(n+1)%t.length;else if(e.key===`ArrowLeft`)r=(n-1+t.length)%t.length;else if(e.key===`Home`)r=0;else if(e.key===`End`)r=t.length-1;else return;e.preventDefault(),t[r].focus()}return(0,e.jsx)(`div`,{className:[P.bar,i?P.inline:null,r].filter(Boolean).join(` `),...o,children:(0,e.jsx)(`div`,{ref:s,role:`tablist`,"aria-label":a,className:P.list,onKeyDown:c,children:n})})}function It({label:t,icon:n,active:r=!1,panelId:i,onClose:a,closeLabel:o=`Close tab`,className:s,disabled:c,...l}){return(0,e.jsxs)(`button`,{role:`tab`,type:`button`,"aria-selected":r,"aria-controls":i,tabIndex:r?0:-1,disabled:c,className:[P.tab,r?P.active:null,a?P.closeable:null,s].filter(Boolean).join(` `),...l,children:[n&&(0,e.jsx)(`span`,{className:P.tabIcon,children:(0,e.jsx)(j,{icon:n,size:`sm`,"aria-hidden":!0})}),(0,e.jsx)(`span`,{className:P.tabLabel,children:t}),a&&(0,e.jsx)(`span`,{role:`button`,tabIndex:0,"aria-label":o,className:P.closeBtn,onClick:e=>{e.stopPropagation(),a()},onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),e.stopPropagation(),a())},children:`×`})]})}function Lt({id:t,active:n=!1,className:r,children:i,...a}){return(0,e.jsx)(`div`,{id:t,role:`tabpanel`,hidden:!n,tabIndex:0,className:[P.panel,r].filter(Boolean).join(` `),...a,children:i})}var F={row:`_row_17clq_3`,leading:`_leading_17clq_16`,content:`_content_17clq_25`,title:`_title_17clq_33`,subtitle:`_subtitle_17clq_44`,trailing:`_trailing_17clq_58`,propertyLabel:`_propertyLabel_17clq_68`,propertyValue:`_propertyValue_17clq_81`,interactive:`_interactive_17clq_94`};function Rt({title:t,subtitle:n,leading:r,trailing:i,interactive:a=!1,variant:o=`default`,className:s,...c}){let l=a?`button`:`div`,u=o===`property`;return(0,e.jsxs)(l,{className:[F.row,a?F.interactive:null,u?F.property:null,s].filter(Boolean).join(` `),...c,children:[r&&(0,e.jsx)(`span`,{className:F.leading,children:r}),(0,e.jsxs)(`span`,{className:F.content,children:[(0,e.jsx)(`span`,{className:u?F.propertyLabel:F.title,children:t}),n&&(0,e.jsx)(`span`,{className:u?F.propertyValue:F.subtitle,children:n})]}),i&&(0,e.jsx)(`span`,{className:F.trailing,children:i})]})}var zt={list:`_list_1m4lm_3`,item:`_item_1m4lm_16`,separate:`_separate_1m4lm_37`,separateItem:`_separateItem_1m4lm_47`,divider:`_divider_1m4lm_69`};function Bt({children:n,variant:r=`default`,className:i,...a}){let o=t.Children.toArray(n).filter(Boolean),s=r===`separate`;return(0,e.jsx)(`ul`,{role:`list`,className:[zt.list,s?zt.separate:null,i].filter(Boolean).join(` `),...a,children:o.map((t,n)=>(0,e.jsxs)(`li`,{className:s?zt.separateItem:zt.item,children:[!s&&n>0&&(0,e.jsx)(k,{"aria-hidden":`true`}),t]},n))})}var Vt={switcher:`_switcher_1uh9r_3`,item:`_item_1uh9r_18`,active:`_active_1uh9r_45`,itemIcon:`_itemIcon_1uh9r_76`,itemLabel:`_itemLabel_1uh9r_84`};function Ht({children:n,className:r,"aria-label":i=`View switcher`,...a}){let o=(0,t.useRef)(null);function s(e){let t=Array.from(o.current?.querySelectorAll(`[role=radio]:not(:disabled)`)??[]),n=t.findIndex(e=>e===document.activeElement);if(n===-1)return;let r=n;if(e.key===`ArrowRight`||e.key===`ArrowDown`)r=(n+1)%t.length;else if(e.key===`ArrowLeft`||e.key===`ArrowUp`)r=(n-1+t.length)%t.length;else if(e.key===`Home`)r=0;else if(e.key===`End`)r=t.length-1;else return;e.preventDefault(),t[r].focus(),t[r].click()}return(0,e.jsx)(`div`,{ref:o,role:`radiogroup`,"aria-label":i,onKeyDown:s,className:[Vt.switcher,r].filter(Boolean).join(` `),...a,children:n})}function Ut({label:t,icon:n,active:r=!1,className:i,disabled:a,...o}){return(0,e.jsxs)(`button`,{type:`button`,role:`radio`,"aria-checked":r,tabIndex:r?0:-1,disabled:a,className:[Vt.item,r?Vt.active:null,i].filter(Boolean).join(` `),...o,children:[n&&(0,e.jsx)(`span`,{className:Vt.itemIcon,children:(0,e.jsx)(j,{icon:n,size:`md`,"aria-hidden":!0})}),(0,e.jsx)(`span`,{className:Vt.itemLabel,children:t})]})}var Wt=`_toaster_1tgvb_3`,Gt=`_toasterBottom_1tgvb_18`,Kt=`_toasterTop_1tgvb_22`,qt=`_toast_1tgvb_3`,Jt=`_title_1tgvb_69`,Yt=`_actions_1tgvb_76`,Xt=`_actionBtn_1tgvb_85`,Zt=`_dismissBtn_1tgvb_118`,Qt={toaster:Wt,toasterBottom:Gt,toasterTop:Kt,toast:qt,"toast-in":`_toast-in_1tgvb_1`,title:Jt,actions:Yt,actionBtn:Xt,dismissBtn:Zt};function $t({title:n,duration:r=3e3,onDismiss:i,actionLabel:a,onAction:o,dismissible:s=!1,className:c,...l}){let u=(0,t.useRef)(null),d=(0,t.useRef)(r),f=(0,t.useRef)(0),p=()=>{u.current&&=(clearTimeout(u.current),null)},m=e=>{e<=0||!i||(p(),f.current=Date.now(),u.current=setTimeout(()=>i(),e))};(0,t.useEffect)(()=>(r>0&&(d.current=r,m(r)),p),[r]);let h=()=>{if(u.current){let e=Date.now()-f.current;d.current=Math.max(0,d.current-e),p()}},g=()=>{m(d.current)},_=()=>{p(),o?.(),i?.()};return(0,e.jsxs)(`div`,{role:`status`,"aria-live":`polite`,"aria-atomic":`true`,className:[Qt.toast,c].filter(Boolean).join(` `),onMouseEnter:h,onMouseLeave:g,onFocus:h,onBlur:g,...l,children:[(0,e.jsx)(`span`,{className:Qt.title,children:n}),(a||s)&&(0,e.jsxs)(`span`,{className:Qt.actions,children:[a&&(0,e.jsx)(`button`,{type:`button`,className:Qt.actionBtn,onClick:_,children:a}),s&&(0,e.jsx)(`button`,{type:`button`,className:Qt.dismissBtn,"aria-label":`Dismiss`,onClick:()=>{p(),i?.()},children:(0,e.jsx)(j,{icon:je,size:`md`,"aria-hidden":!0})})]})]})}function en({position:t=`bottom`,children:r,container:i,className:a,...o}){let s=(0,e.jsx)(`div`,{"aria-label":`Notifications`,className:[Qt.toaster,t===`top`?Qt.toasterTop:Qt.toasterBottom,a].filter(Boolean).join(` `),...o,children:r});return typeof document>`u`?s:(0,n.createPortal)(s,i??document.body)}var tn=`button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])`;function nn(){let[e,n]=(0,t.useState)({});return(0,t.useEffect)(()=>{let{visualViewport:e}=window;if(!e)return;let t=()=>{let{offsetLeft:t,offsetTop:r,width:i,height:a}=e;n({top:r,left:t,width:i,height:a})};return t(),e.addEventListener(`resize`,t),e.addEventListener(`scroll`,t),()=>{e.removeEventListener(`resize`,t),e.removeEventListener(`scroll`,t)}},[]),e}function rn(e,t){if(e.key!==`Tab`)return;let n=Array.from(t.current?.querySelectorAll(`button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])`)??[]);if(!n.length)return;let r=n[0],i=n[n.length-1];e.shiftKey?document.activeElement===r&&(e.preventDefault(),i.focus()):document.activeElement===i&&(e.preventDefault(),r.focus())}var an=`_backdrop_gg1yz_3`,on=`_dialog_gg1yz_26`,sn=`_title_gg1yz_56`,cn=`_body_gg1yz_68`,ln=`_footer_gg1yz_89`,un=`_btn_gg1yz_96`,I={backdrop:an,"backdrop-in":`_backdrop-in_gg1yz_1`,dialog:on,"dialog-in":`_dialog-in_gg1yz_1`,title:sn,body:cn,footer:ln,btn:un,"btn-default":`_btn-default_gg1yz_144`,"btn-suggested":`_btn-suggested_gg1yz_148`,"btn-destructive":`_btn-destructive_gg1yz_153`};function dn({open:r,title:i,children:a,buttons:o=[],onClose:s,closeOnBackdrop:c=!0,role:l=`dialog`,responses:u,onResponse:d,className:f,...p}){let m=(0,t.useRef)(null),h=(0,t.useId)(),g=(0,t.useRef)(null),_=!!u,v=nn();(0,t.useEffect)(()=>{r?(g.current=document.activeElement,(m.current?.querySelector(tn))?.focus()):g.current?.focus()},[r]);let y=(0,t.useCallback)(()=>{let e=u?.find(e=>e.variant!==`destructive`&&!e.disabled);e&&d?.(e.id)},[u,d]),b=_?y:c?s:void 0,x=(0,t.useCallback)(e=>{if(e.key===`Escape`){e.preventDefault(),_?y():s?.();return}rn(e,m)},[_,y,s]);if(!r)return null;let S=()=>_&&u?(0,e.jsx)(`div`,{className:I.footer,children:u.map(t=>(0,e.jsx)(`button`,{type:`button`,disabled:t.disabled,className:[I.btn,I[`btn-${t.variant??`default`}`]].filter(Boolean).join(` `),onClick:()=>d?.(t.id),children:t.label},t.id))}):o.length>0?(0,e.jsx)(`div`,{className:I.footer,children:o.map(t=>(0,e.jsx)(`button`,{type:`button`,disabled:t.disabled,className:[I.btn,I[`btn-${t.variant??`default`}`]].filter(Boolean).join(` `),onClick:t.onClick,children:t.label},t.label))}):null,C=(0,e.jsx)(`div`,{className:I.backdrop,style:v,onClick:b,"aria-hidden":`true`,children:(0,e.jsxs)(`div`,{ref:m,role:l,"aria-modal":`true`,"aria-labelledby":h,className:[I.dialog,f].filter(Boolean).join(` `),onKeyDown:x,onClick:e=>e.stopPropagation(),...p,children:[i&&(0,e.jsx)(`div`,{id:h,className:I.title,children:i}),a&&(0,e.jsx)(`div`,{className:I.body,children:a}),S()]})});return typeof document>`u`?C:(0,n.createPortal)(C,document.body)}var fn=`_backdrop_1iswz_3`,pn=`_dialog_1iswz_26`,mn=`_header_1iswz_59`,hn=`_icon_1iswz_68`,gn=`_appName_1iswz_77`,_n=`_version_1iswz_84`,vn=`_tabBar_1iswz_92`,yn=`_tabBtn_1iswz_99`,bn=`_tabBtnActive_1iswz_118`,xn=`_tabContent_1iswz_132`,Sn=`_section_1iswz_137`,Cn=`_comments_1iswz_142`,wn=`_infoList_1iswz_151`,Tn=`_infoLabel_1iswz_158`,En=`_infoValue_1iswz_166`,Dn=`_link_1iswz_174`,On=`_creditGroup_1iswz_182`,kn=`_creditTitle_1iswz_186`,An=`_creditList_1iswz_196`,jn=`_creditItem_1iswz_205`,Mn=`_copyright_1iswz_211`,Nn=`_licenseType_1iswz_218`,Pn=`_licenseText_1iswz_225`,Fn=`_footer_1iswz_239`,In=`_btn_1iswz_245`,Ln=`_btnDefault_1iswz_281`,L={backdrop:fn,"backdrop-in":`_backdrop-in_1iswz_1`,dialog:pn,"dialog-in":`_dialog-in_1iswz_1`,header:mn,icon:hn,appName:gn,version:_n,tabBar:vn,tabBtn:yn,tabBtnActive:bn,tabContent:xn,section:Sn,comments:Cn,infoList:wn,infoLabel:Tn,infoValue:En,link:Dn,creditGroup:On,creditTitle:kn,creditList:An,creditItem:jn,copyright:Mn,licenseType:Nn,licenseText:Pn,footer:Fn,btn:In,btnDefault:Ln},Rn={details:`Details`,credits:`Credits`,legal:`Legal`};function zn({open:r,onClose:i,applicationName:a,applicationIcon:o,version:s,comments:c,developerName:l,website:u,websiteLabel:d,developers:f,designers:p,artists:m,copyright:h,licenseType:g,licenseText:_,links:v}){let y=(0,t.useRef)(null),b=(0,t.useId)(),x=(0,t.useRef)(null),S=nn(),[C,w]=(0,t.useState)(`details`);(0,t.useEffect)(()=>{r?(x.current=document.activeElement,(y.current?.querySelector(tn))?.focus()):(x.current?.focus(),w(`details`))},[r]);let T=(0,t.useCallback)(e=>{if(e.key===`Escape`){e.preventDefault(),i?.();return}rn(e,y)},[i]);if(!r)return null;let E=[`details`,!!(f?.length||p?.length||m?.length)&&`credits`,!!(h||g||_)&&`legal`].filter(Boolean),D=(0,e.jsx)(`div`,{className:L.backdrop,style:S,onClick:i,"aria-hidden":`true`,children:(0,e.jsxs)(`div`,{ref:y,role:`dialog`,"aria-modal":`true`,"aria-labelledby":b,className:L.dialog,onKeyDown:T,onClick:e=>e.stopPropagation(),children:[(0,e.jsxs)(`div`,{className:L.header,children:[o&&(0,e.jsx)(`div`,{className:L.icon,children:o}),(0,e.jsx)(`div`,{id:b,className:L.appName,children:a}),s&&(0,e.jsx)(`div`,{className:L.version,children:s})]}),E.length>1&&(0,e.jsx)(`div`,{className:L.tabBar,role:`tablist`,children:E.map(t=>(0,e.jsx)(`button`,{type:`button`,role:`tab`,"aria-selected":C===t,className:[L.tabBtn,C===t?L.tabBtnActive:null].filter(Boolean).join(` `),onClick:()=>w(t),children:Rn[t]},t))}),(0,e.jsxs)(`div`,{className:L.tabContent,children:[C===`details`&&(0,e.jsxs)(`div`,{className:L.section,children:[c&&(0,e.jsx)(`p`,{className:L.comments,children:c}),(l||u||v?.length)&&(0,e.jsxs)(`dl`,{className:L.infoList,children:[l&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(`dt`,{className:L.infoLabel,children:`Developer`}),(0,e.jsx)(`dd`,{className:L.infoValue,children:l})]}),u&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(`dt`,{className:L.infoLabel,children:`Website`}),(0,e.jsx)(`dd`,{className:L.infoValue,children:(0,e.jsx)(`a`,{href:u,target:`_blank`,rel:`noopener noreferrer`,className:L.link,children:d??u})})]}),v?.map(t=>(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(`dt`,{className:L.infoLabel,children:t.label},`${t.label}-dt`),(0,e.jsx)(`dd`,{className:L.infoValue,children:(0,e.jsx)(`a`,{href:t.url,target:`_blank`,rel:`noopener noreferrer`,className:L.link,children:t.url})},`${t.label}-dd`)]}))]})]}),C===`credits`&&(0,e.jsx)(`div`,{className:L.section,children:[{heading:`Developers`,list:f},{heading:`Designers`,list:p},{heading:`Artists`,list:m}].filter(e=>e.list?.length).map(({heading:t,list:n})=>(0,e.jsxs)(`div`,{className:L.creditGroup,children:[(0,e.jsx)(`h4`,{className:L.creditTitle,children:t}),(0,e.jsx)(`ul`,{className:L.creditList,children:n.map(t=>(0,e.jsx)(`li`,{className:L.creditItem,children:t},t))})]},t))}),C===`legal`&&(0,e.jsxs)(`div`,{className:L.section,children:[h&&(0,e.jsx)(`p`,{className:L.copyright,children:h}),g&&(0,e.jsx)(`p`,{className:L.licenseType,children:g}),_&&(0,e.jsx)(`pre`,{className:L.licenseText,children:_})]})]}),(0,e.jsx)(`div`,{className:L.footer,children:(0,e.jsx)(`button`,{type:`button`,className:[L.btn,L.btnDefault].join(` `),onClick:i,children:`Close`})})]})});return typeof document>`u`?D:(0,n.createPortal)(D,document.body)}var Bn=`_wrapper_1hi05_3`,Vn=`_trigger_1hi05_11`,Hn=`_triggerOpen_1hi05_63`,Un=`_triggerLabel_1hi05_73`,Wn=`_placeholder_1hi05_81`,Gn=`_chevron_1hi05_87`,Kn=`_chevronOpen_1hi05_94`,qn=`_list_1hi05_100`,Jn=`_listDown_1hi05_129`,Yn=`_listUp_1hi05_133`,Xn=`_option_1hi05_145`,Zn=`_optionActive_1hi05_162`,Qn=`_optionSelected_1hi05_166`,$n=`_optionDisabled_1hi05_170`,er=`_optionText_1hi05_178`,tr=`_optionLabel_1hi05_186`,nr=`_optionDesc_1hi05_192`,rr=`_checkIcon_1hi05_202`,R={wrapper:Bn,trigger:Vn,triggerOpen:Hn,triggerLabel:Un,placeholder:Wn,chevron:Gn,chevronOpen:Kn,list:qn,"list-in":`_list-in_1hi05_1`,listDown:Jn,listUp:Yn,"list-in-up":`_list-in-up_1hi05_1`,option:Xn,optionActive:Zn,optionSelected:Qn,optionDisabled:$n,optionText:er,optionLabel:tr,optionDesc:nr,checkIcon:rr};function ir({options:n,value:r,onChange:i,placeholder:a=`Select an option`,disabled:o,className:s,...c}){let[l,u]=(0,t.useState)(!1),[d,f]=(0,t.useState)(-1),[p,m]=(0,t.useState)(!1),h=(0,t.useId)(),g=(0,t.useId)(),_=(0,t.useRef)(null),v=(0,t.useRef)(null),y=n.find(e=>e.value===r),b=(0,t.useCallback)(()=>{if(!_.current)return;let e=_.current.getBoundingClientRect(),t=window.innerHeight-e.bottom,r=Math.min(n.length*48+8,280);m(t<r&&e.top>r)},[n.length]),x=(0,t.useCallback)(()=>{if(o)return;b(),u(!0);let e=n.findIndex(e=>e.value===r&&!e.disabled);f(e>=0?e:n.findIndex(e=>!e.disabled))},[o,b,n,r]),S=(0,t.useCallback)(()=>{u(!1),f(-1),_.current?.focus()},[]),C=(0,t.useCallback)(e=>{e.disabled||(i?.(e.value),S())},[i,S]);(0,t.useEffect)(()=>{!l||d<0||!v.current||v.current.children[d]?.scrollIntoView({block:`nearest`})},[d,l]),(0,t.useEffect)(()=>{if(!l)return;let e=e=>{!_.current?.contains(e.target)&&!v.current?.contains(e.target)&&S()};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[l,S]);let w=(0,t.useCallback)(e=>{switch(e.key){case`Enter`:case` `:case`ArrowDown`:e.preventDefault(),x();break;case`ArrowUp`:e.preventDefault(),b(),u(!0),f(n.reduce((e,t,n)=>t.disabled?e:n,-1));break}},[x,b,n]),T=(0,t.useCallback)(e=>{let t=n.map((e,t)=>({o:e,i:t})).filter(({o:e})=>!e.disabled).map(({i:e})=>e),r=t.indexOf(d);switch(e.key){case`ArrowDown`:{e.preventDefault();let n=t[Math.min(r+1,t.length-1)];f(n??d);break}case`ArrowUp`:{e.preventDefault();let n=t[Math.max(r-1,0)];f(n??d);break}case`Home`:e.preventDefault(),f(t[0]??-1);break;case`End`:e.preventDefault(),f(t[t.length-1]??-1);break;case`Enter`:case` `:e.preventDefault(),d>=0&&C(n[d]);break;case`Escape`:case`Tab`:S();break}},[n,d,C,S]);return(0,e.jsxs)(`div`,{className:[R.wrapper,s].filter(Boolean).join(` `),...c,children:[(0,e.jsxs)(`button`,{ref:_,id:h,type:`button`,role:`combobox`,"aria-haspopup":`listbox`,"aria-expanded":l,"aria-controls":g,"aria-activedescendant":l&&d>=0?`${g}-opt-${d}`:void 0,disabled:o,className:[R.trigger,l?R.triggerOpen:null].filter(Boolean).join(` `),onClick:()=>l?S():x(),onKeyDown:w,children:[(0,e.jsx)(`span`,{className:[R.triggerLabel,y?null:R.placeholder].filter(Boolean).join(` `),children:y?.label??a}),(0,e.jsx)(j,{icon:ke,size:`md`,"aria-hidden":!0,className:[R.chevron,l?R.chevronOpen:null].filter(Boolean).join(` `)})]}),l&&(0,e.jsx)(`ul`,{ref:v,id:g,role:`listbox`,"aria-labelledby":h,tabIndex:-1,className:[R.list,p?R.listUp:R.listDown].filter(Boolean).join(` `),onKeyDown:T,children:n.map((t,n)=>(0,e.jsxs)(`li`,{id:`${g}-opt-${n}`,role:`option`,"aria-selected":t.value===r,"aria-disabled":t.disabled,className:[R.option,t.value===r?R.optionSelected:null,n===d?R.optionActive:null,t.disabled?R.optionDisabled:null].filter(Boolean).join(` `),onMouseEnter:()=>!t.disabled&&f(n),onClick:()=>C(t),children:[(0,e.jsxs)(`span`,{className:R.optionText,children:[(0,e.jsx)(`span`,{className:R.optionLabel,children:t.label}),t.description&&(0,e.jsx)(`span`,{className:R.optionDesc,children:t.description})]}),t.value===r&&(0,e.jsx)(j,{icon:Fe,size:`md`,"aria-hidden":!0,className:R.checkIcon})]},t.value))})]})}var ar={wrapper:`_wrapper_11zhs_3`,hasLabels:`_hasLabels_11zhs_11`,track:`_track_11zhs_17`,disabled:`_disabled_11zhs_42`,fill:`_fill_11zhs_50`,thumb:`_thumb_11zhs_64`,tick:`_tick_11zhs_97`,labels:`_labels_11zhs_112`,markLabel:`_markLabel_11zhs_119`};function or(e,t,n){return Math.min(n,Math.max(t,e))}function sr(e,t,n,r){return parseFloat((Math.round((e-t)/n)*n+t).toFixed(r))}function cr(e){let t=e.toString(),n=t.indexOf(`.`);return n===-1?0:t.length-n-1}function lr({value:n,onChange:r,min:i=0,max:a=100,step:o=1,disabled:s=!1,marks:c,className:l,"aria-label":u,"aria-labelledby":d,"aria-describedby":f,...p}){let m=(0,t.useRef)(null),h=cr(o),g=(or(n,i,a)-i)/(a-i)*100,_=(0,t.useCallback)(e=>{if(!m.current)return;let{left:t,width:n}=m.current.getBoundingClientRect();r(or(sr((e-t)/n*(a-i)+i,i,o,h),i,a))},[i,a,o,h,r]),v=(0,t.useCallback)(e=>{s||(e.currentTarget.setPointerCapture(e.pointerId),_(e.clientX))},[s,_]),y=(0,t.useCallback)(e=>{e.currentTarget.hasPointerCapture(e.pointerId)&&_(e.clientX)},[_]),b=(0,t.useCallback)(e=>{let t=t=>{e.preventDefault(),r(or(sr(t,i,o,h),i,a))};switch(e.key){case`ArrowRight`:case`ArrowUp`:t(n+o);break;case`ArrowLeft`:case`ArrowDown`:t(n-o);break;case`PageUp`:t(n+o*10);break;case`PageDown`:t(n-o*10);break;case`Home`:t(i);break;case`End`:t(a);break}},[n,o,i,a,h,r]),x=c&&c.length>0,S=x&&c.some(e=>e.label);return(0,e.jsxs)(`div`,{className:[ar.wrapper,S?ar.hasLabels:null,l].filter(Boolean).join(` `),...p,children:[(0,e.jsxs)(`div`,{ref:m,role:`slider`,tabIndex:s?-1:0,"aria-valuemin":i,"aria-valuemax":a,"aria-valuenow":n,"aria-label":u,"aria-labelledby":d,"aria-describedby":f,"aria-disabled":s||void 0,className:[ar.track,s?ar.disabled:null].filter(Boolean).join(` `),onPointerDown:v,onPointerMove:y,onKeyDown:s?void 0:b,children:[(0,e.jsx)(`div`,{className:ar.fill,style:{width:`${g}%`}}),(0,e.jsx)(`div`,{className:ar.thumb,style:{left:`${g}%`},"aria-hidden":`true`}),x&&c.map(t=>{let n=(or(t.value,i,a)-i)/(a-i)*100;return(0,e.jsx)(`div`,{className:ar.tick,style:{left:`${n}%`},"aria-hidden":`true`},t.value)})]}),S&&(0,e.jsx)(`div`,{className:ar.labels,"aria-hidden":`true`,children:c.map(t=>{let n=(or(t.value,i,a)-i)/(a-i)*100;return(0,e.jsx)(`span`,{className:ar.markLabel,style:{left:`${n}%`},children:t.label},t.value)})})]})}var ur={panel:`_panel_1tk9v_3`,visible:`_visible_1tk9v_36`,arrow:`_arrow_1tk9v_44`,bottom:`_bottom_1tk9v_59`,top:`_top_1tk9v_67`,left:`_left_1tk9v_75`,right:`_right_1tk9v_83`},dr=8,z=10,fr=6;function pr(e,t,n){let r=window.innerWidth,i=window.innerHeight,a=[...new Set([n,n===`top`?`bottom`:n===`bottom`?`top`:n===`left`?`right`:`left`,`bottom`,`top`,`left`,`right`])];function o(n){return n===`bottom`?{top:e.bottom+dr,left:e.left+e.width/2-t.width/2}:n===`top`?{top:e.top-t.height-dr,left:e.left+e.width/2-t.width/2}:n===`left`?{top:e.top+e.height/2-t.height/2,left:e.left-t.width-dr}:{top:e.top+e.height/2-t.height/2,left:e.right+dr}}for(let n of a){let{top:a,left:s}=o(n),c=s>=z&&s+t.width<=r-z,l=a>=z&&a+t.height<=i-z;if(c&&l)return{top:a,left:s,placement:n,arrowOffset:n===`top`||n===`bottom`?e.left+e.width/2-s:e.top+e.height/2-a}}for(let n of a){let{top:a,left:s}=o(n),c=a>=z&&a+t.height<=i-z,l=s>=z&&s+t.width<=r-z;if((n===`top`||n===`bottom`)&&c){let i=Math.max(z,Math.min(s,r-t.width-z)),o=e.left+e.width/2-i;return{top:a,left:i,placement:n,arrowOffset:Math.max(fr+4,Math.min(o,t.width-fr-4))}}if((n===`left`||n===`right`)&&l){let r=Math.max(z,Math.min(a,i-t.height-z)),o=e.top+e.height/2-r;return{top:r,left:s,placement:n,arrowOffset:Math.max(fr+4,Math.min(o,t.height-fr-4))}}}let s=e.bottom+dr,c=e.left+e.width/2-t.width/2,l=Math.max(z,Math.min(s,i-t.height-z)),u=Math.max(z,Math.min(c,r-t.width-z)),d=e.left+e.width/2-u;return{top:l,left:u,placement:`bottom`,arrowOffset:Math.max(fr+4,Math.min(d,t.width-fr-4))}}function mr({content:r,placement:i=`bottom`,open:a,onClose:o,onOpenChange:s,children:c}){let l=a!==void 0,[u,d]=(0,t.useState)(!1),f=l?a:u,[p,m]=(0,t.useState)(null),h=(0,t.useId)(),g=(0,t.useId)(),_=(0,t.useRef)(null),v=(0,t.useRef)(null),y=(0,t.useRef)(null),b=(0,t.useCallback)(()=>{l?o?.():d(!1),s?.(!1)},[l,o,s]),x=(0,t.useCallback)(()=>{f?b():(l||d(!0),s?.(!0))},[f,b,l,s]),S=(0,t.useCallback)(()=>{!_.current||!v.current||m(pr(_.current.getBoundingClientRect(),v.current.getBoundingClientRect(),i))},[i]);(0,t.useEffect)(()=>{if(!f)return;let e=requestAnimationFrame(()=>{S(),window.addEventListener(`scroll`,S,{passive:!0,capture:!0}),window.addEventListener(`resize`,S,{passive:!0})});return()=>{cancelAnimationFrame(e),window.removeEventListener(`scroll`,S,{capture:!0}),window.removeEventListener(`resize`,S)}},[f,S]),(0,t.useEffect)(()=>{f?(y.current=document.activeElement,requestAnimationFrame(()=>{(v.current?.querySelector(`button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])`)??v.current)?.focus()})):(y.current?.focus(),m(null))},[f]),(0,t.useEffect)(()=>{if(!f)return;let e=e=>{!_.current?.contains(e.target)&&!v.current?.contains(e.target)&&b()};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[f,b]);let C=(0,t.useCallback)(e=>{e.key===`Escape`&&(e.stopPropagation(),b())},[b]),w=(0,t.cloneElement)(c,{ref:_,id:h,"aria-haspopup":`dialog`,"aria-expanded":f,"aria-controls":f?g:void 0,onClick:e=>{x(),c.props.onClick?.(e)}}),T=(0,e.jsxs)(`div`,{ref:v,id:g,role:`dialog`,"aria-labelledby":h,tabIndex:-1,className:[ur.panel,p?ur[p.placement]:null,f&&p?ur.visible:null].filter(Boolean).join(` `),style:p?{top:p.top,left:p.left}:{visibility:`hidden`,pointerEvents:`none`,top:-9999,left:-9999},onKeyDown:C,children:[(0,e.jsx)(`div`,{className:ur.arrow,"aria-hidden":`true`,style:p?.arrowOffset===void 0?void 0:p.placement===`top`||p.placement===`bottom`?{left:p.arrowOffset-fr,marginLeft:0}:{top:p.arrowOffset-fr,marginTop:0}}),r]});return(0,e.jsxs)(e.Fragment,{children:[w,f&&(typeof document<`u`?(0,n.createPortal)(T,document.body):T)]})}var hr={clamp:`_clamp_1j51b_6`};function gr({maximumSize:t=600,children:n,className:r,style:i,...a}){return(0,e.jsx)(`div`,{className:[hr.clamp,r].filter(Boolean).join(` `),style:{maxWidth:t,...i},...a,children:n})}var B={root:`_root_yaj3r_3`,expanded:`_expanded_yaj3r_12`,sidebar:`_sidebar_yaj3r_16`,contentPane:`_contentPane_yaj3r_22`,collapsed:`_collapsed_yaj3r_30`,paneVisible:`_paneVisible_yaj3r_46`,paneHidden:`_paneHidden_yaj3r_50`,divider:`_divider_yaj3r_67`};function _r({sidebar:t,content:n,showContent:r=!1,minSidebarWidth:i=180,maxSidebarWidth:a=280,sidebarWidthFraction:o=.25,className:s,style:c,...l}){let{isNarrow:u}=Be(),d=`clamp(${i}px, ${o*100}%, ${a}px)`;return(0,e.jsxs)(`div`,{className:[B.root,u?B.collapsed:B.expanded,s].filter(Boolean).join(` `),style:{"--sidebar-width":d,...c},...l,children:[(0,e.jsx)(`div`,{className:[B.sidebar,u&&r?B.paneHidden:B.paneVisible].filter(Boolean).join(` `),"aria-hidden":u&&r,children:t}),!u&&(0,e.jsx)(`div`,{className:B.divider,"aria-hidden":`true`}),(0,e.jsx)(`div`,{className:[B.contentPane,u&&!r?B.paneHidden:B.paneVisible].filter(Boolean).join(` `),"aria-hidden":u&&!r,children:n})]})}var V={root:`_root_1g9mq_3`,wide:`_wide_1g9mq_13`,end:`_end_1g9mq_17`,sidebar:`_sidebar_1g9mq_21`,collapsed:`_collapsed_1g9mq_28`,content:`_content_1g9mq_32`,narrow:`_narrow_1g9mq_40`,start:`_start_1g9mq_60`,sidebarOpen:`_sidebarOpen_1g9mq_64`,sidebarClosed:`_sidebarClosed_1g9mq_65`,backdrop:`_backdrop_1g9mq_77`,backdropVisible:`_backdropVisible_1g9mq_88`};function vr({sidebar:n,content:r,showSidebar:i=!1,onClose:a,collapsed:o=!1,sidebarPosition:s=`start`,minSidebarWidth:c=180,maxSidebarWidth:l=280,sidebarWidthFraction:u=.25,className:d,style:f,...p}){let{isNarrow:m}=Be(),h=(0,t.useRef)(null),g=`clamp(${c}px, ${u*100}%, ${l}px)`;(0,t.useEffect)(()=>{if(!m||!i)return;let e=e=>{e.key===`Escape`&&a?.()};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[m,i,a]),(0,t.useEffect)(()=>{!m||!i||(h.current?.querySelector(`button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])`))?.focus()},[m,i]);let _=s===`end`;return(0,t.useEffect)(()=>{if(!m||!i)return;let e=h.current;if(!e)return;let t=0,n=e=>{t=e.touches[0].clientX},r=e=>{let n=e.changedTouches[0].clientX-t;(_?n>80:n<-80)&&a?.()};return e.addEventListener(`touchstart`,n,{passive:!0}),e.addEventListener(`touchend`,r,{passive:!0}),()=>{e.removeEventListener(`touchstart`,n),e.removeEventListener(`touchend`,r)}},[m,i,_,a]),(0,e.jsxs)(`div`,{className:[V.root,m?V.narrow:V.wide,!m&&o?V.collapsed:null,_?V.end:V.start,d].filter(Boolean).join(` `),style:{"--sidebar-width":g,...f},...p,children:[m&&(0,e.jsx)(`div`,{className:[V.backdrop,i?V.backdropVisible:null].filter(Boolean).join(` `),"aria-hidden":`true`,onClick:a}),(0,e.jsx)(`div`,{ref:h,className:[V.sidebar,m?i?V.sidebarOpen:V.sidebarClosed:null].filter(Boolean).join(` `),"aria-hidden":m&&!i,children:n}),(0,e.jsx)(`div`,{className:V.content,children:r})]})}var yr={bar:`_bar_njcvu_3`};function br({children:t,reveal:n=!0,className:r,...i}){return n?(0,e.jsx)(`div`,{role:`navigation`,"aria-label":`Bottom navigation`,className:[yr.bar,r].filter(Boolean).join(` `),...i,children:t}):null}var xr={link:`_link_x1qyh_1`,externalIcon:`_externalIcon_x1qyh_36`};function Sr({external:t=!1,children:n,className:r,target:i,rel:a,...o}){let s=t||i===`_blank`;return(0,e.jsxs)(`a`,{className:[xr.link,r].filter(Boolean).join(` `),target:s?`_blank`:i,rel:s?`noopener noreferrer`:a,...o,children:[n,s&&(0,e.jsx)(`span`,{className:xr.externalIcon,"aria-label":`(opens in new tab)`,children:`↗`})]})}var Cr={group:`_group_1fa3l_3`,item:`_item_1fa3l_18`,iconOnly:`_iconOnly_1fa3l_48`,active:`_active_1fa3l_53`,itemIcon:`_itemIcon_1fa3l_86`,itemLabel:`_itemLabel_1fa3l_92`},wr=(0,t.createContext)(null);function Tr(){let e=(0,t.useContext)(wr);if(!e)throw Error(`ToggleGroupItem must be used inside ToggleGroup`);return e}function Er({value:n,onValueChange:r,"aria-label":i=`Options`,children:a,className:o,...s}){let c=(0,t.useRef)(null);function l(e){let t=Array.from(c.current?.querySelectorAll(`[role=radio]:not(:disabled)`)??[]),n=t.findIndex(e=>e===document.activeElement);if(n===-1)return;let r=n;if(e.key===`ArrowRight`||e.key===`ArrowDown`)r=(n+1)%t.length;else if(e.key===`ArrowLeft`||e.key===`ArrowUp`)r=(n-1+t.length)%t.length;else if(e.key===`Home`)r=0;else if(e.key===`End`)r=t.length-1;else return;e.preventDefault(),t[r].focus(),t[r].click()}return(0,e.jsx)(wr.Provider,{value:{value:n,onValueChange:r},children:(0,e.jsx)(`div`,{ref:c,role:`radiogroup`,"aria-label":i,onKeyDown:l,className:[Cr.group,o].filter(Boolean).join(` `),...s,children:a})})}function Dr({name:t,label:n,icon:r,disabled:i,className:a,...o}){let{value:s,onValueChange:c}=Tr(),l=s===t,u=r&&!n;return(0,e.jsxs)(`button`,{type:`button`,role:`radio`,"aria-checked":l,tabIndex:l?0:-1,disabled:i,onClick:()=>c(t),className:[Cr.item,l?Cr.active:null,u?Cr.iconOnly:null,a].filter(Boolean).join(` `),...o,children:[r&&(0,e.jsx)(`span`,{className:Cr.itemIcon,children:(0,e.jsx)(j,{icon:r,size:`md`,"aria-hidden":!0})}),n&&(0,e.jsx)(`span`,{className:Cr.itemLabel,children:n})]})}function Or({orientation:t=`vertical`,spacing:n=6,align:r,justify:i=`start`,className:a,style:o,children:s,...c}){let l=t===`horizontal`?`center`:`stretch`;return(0,e.jsx)(`div`,{className:a,style:{display:`flex`,flexDirection:t===`horizontal`?`row`:`column`,gap:typeof n==`number`?`${n}px`:n,alignItems:r??l,justifyContent:i,...o},...c,children:s})}var kr={wrapBox:`_wrapBox_1ik0x_1`,reverse:`_reverse_1ik0x_10`};function Ar({childSpacing:t=6,lineSpacing:n,justify:r=`start`,align:i=`center`,wrapReverse:a=!1,children:o,className:s,style:c,...l}){let u=typeof t==`number`?`${t}px`:t,d=n==null?u:typeof n==`number`?`${n}px`:n,f={"--wrapbox-gap":u,"--wrapbox-row-gap":d,"--wrapbox-justify":r,"--wrapbox-align":i,...c};return(0,e.jsx)(`div`,{className:[kr.wrapBox,a?kr.reverse:null,s].filter(Boolean).join(` `),style:f,...l,children:o})}var jr={chip:`_chip_e26qc_3`,selectable:`_selectable_e26qc_31`,selected:`_selected_e26qc_55`,disabled:`_disabled_e26qc_68`,icon:`_icon_e26qc_76`,label:`_label_e26qc_85`,remove:`_remove_e26qc_91`};function Mr({label:t,icon:n,onRemove:r,selectable:i=!1,selected:a=!1,onToggle:o,disabled:s=!1,className:c,...l}){let u=i&&!r,d=[jr.chip,a?jr.selected:null,s?jr.disabled:null,u?jr.selectable:null,c].filter(Boolean).join(` `),f=(0,e.jsxs)(e.Fragment,{children:[n&&(0,e.jsx)(`span`,{className:jr.icon,children:(0,e.jsx)(j,{icon:n,size:`sm`,"aria-hidden":!0})}),(0,e.jsx)(`span`,{className:jr.label,children:t}),r&&(0,e.jsx)(`button`,{type:`button`,className:jr.remove,"aria-label":`Remove ${t}`,disabled:s,onClick:e=>{e.stopPropagation(),r()},tabIndex:s?-1:0,children:(0,e.jsx)(j,{icon:je,size:`sm`,"aria-hidden":!0})})]});return u?(0,e.jsx)(`button`,{type:`button`,role:`checkbox`,"aria-checked":a,"aria-label":t,disabled:s,onClick:o,className:d,...l,children:f}):(0,e.jsx)(`span`,{className:d,...l,children:f})}var Nr=`_backdrop_zvuhh_3`,Pr=`_dialog_zvuhh_26`,Fr=`_header_zvuhh_59`,Ir=`_title_zvuhh_67`,Lr=`_closeBtn_zvuhh_74`,Rr=`_searchRow_zvuhh_112`,zr=`_searchIcon_zvuhh_124`,Br=`_searchInput_zvuhh_132`,Vr=`_searchClear_zvuhh_151`,Hr=`_body_zvuhh_174`,Ur=`_empty_zvuhh_182`,Wr=`_section_zvuhh_193`,Gr=`_sectionTitle_zvuhh_199`,Kr=`_list_zvuhh_209`,qr=`_row_zvuhh_225`,Jr=`_keys_zvuhh_240`,Yr=`_keyCap_zvuhh_247`,Xr=`_plus_zvuhh_277`,Zr=`_description_zvuhh_284`,H={backdrop:Nr,"backdrop-in":`_backdrop-in_zvuhh_1`,dialog:Pr,"dialog-in":`_dialog-in_zvuhh_1`,header:Fr,title:Ir,closeBtn:Lr,searchRow:Rr,searchIcon:zr,searchInput:Br,searchClear:Vr,body:Hr,empty:Ur,section:Wr,sectionTitle:Gr,list:Kr,row:qr,keys:Jr,keyCap:Yr,plus:Xr,description:Zr},Qr=`button:not([disabled]), [href], input:not([disabled]), [tabindex]:not([tabindex="-1"])`;function $r({open:r,onClose:i,title:a=`Keyboard Shortcuts`,sections:o}){let[s,c]=(0,t.useState)(``),l=(0,t.useRef)(null),u=(0,t.useRef)(null),d=(0,t.useRef)(null),f=(0,t.useRef)(`shortcuts-title-${Math.random().toString(36).slice(2,9)}`);(0,t.useEffect)(()=>{r?(d.current=document.activeElement,requestAnimationFrame(()=>u.current?.focus())):(c(``),d.current?.focus())},[r]);let p=(0,t.useCallback)(e=>{if(e.key===`Escape`){e.preventDefault(),i();return}if(e.key!==`Tab`)return;let t=Array.from(l.current?.querySelectorAll(Qr)??[]);if(t.length===0)return;let n=t[0],r=t[t.length-1];e.shiftKey?document.activeElement===n&&(e.preventDefault(),r.focus()):document.activeElement===r&&(e.preventDefault(),n.focus())},[i]);if(!r)return null;let m=s.trim().toLowerCase(),h=o.map(e=>({...e,shortcuts:e.shortcuts.filter(({description:e,keys:t})=>!m||e.toLowerCase().includes(m)||t.some(e=>e.toLowerCase().includes(m)))})).filter(e=>e.shortcuts.length>0),g=(0,e.jsx)(`div`,{className:H.backdrop,onClick:i,"aria-hidden":`true`,children:(0,e.jsxs)(`div`,{ref:l,role:`dialog`,"aria-modal":`true`,"aria-labelledby":f.current,className:H.dialog,onKeyDown:p,onClick:e=>e.stopPropagation(),children:[(0,e.jsxs)(`div`,{className:H.header,children:[(0,e.jsx)(`span`,{id:f.current,className:H.title,children:a}),(0,e.jsx)(`button`,{type:`button`,className:H.closeBtn,"aria-label":`Close`,onClick:i,children:`×`})]}),(0,e.jsxs)(`div`,{className:H.searchRow,children:[(0,e.jsx)(`span`,{className:H.searchIcon,"aria-hidden":`true`,children:`⌕`}),(0,e.jsx)(`input`,{ref:u,type:`search`,className:H.searchInput,placeholder:`Search shortcuts…`,value:s,onChange:e=>c(e.target.value),"aria-label":`Search shortcuts`}),s&&(0,e.jsx)(`button`,{type:`button`,className:H.searchClear,"aria-label":`Clear search`,onClick:()=>{c(``),u.current?.focus()},children:`×`})]}),(0,e.jsx)(`div`,{className:H.body,role:`list`,children:h.length===0?(0,e.jsxs)(`p`,{className:H.empty,children:[`No shortcuts match "`,s,`"`]}):h.map(t=>(0,e.jsxs)(`section`,{className:H.section,children:[(0,e.jsx)(`h3`,{className:H.sectionTitle,children:t.title}),(0,e.jsx)(`ul`,{className:H.list,children:t.shortcuts.map(t=>(0,e.jsxs)(`li`,{className:H.row,role:`listitem`,children:[(0,e.jsx)(`span`,{className:H.keys,"aria-label":t.keys.join(` + `),children:t.keys.map((n,r)=>(0,e.jsxs)(`span`,{className:H.keyCap,children:[(0,e.jsx)(`kbd`,{children:n}),r<t.keys.length-1&&(0,e.jsx)(`span`,{className:H.plus,"aria-hidden":`true`,children:`+`})]},r))}),(0,e.jsx)(`span`,{className:H.description,children:t.description})]},t.description))})]},t.title))})]})});return typeof document>`u`?g:(0,n.createPortal)(g,document.body)}var U={sidebar:`_sidebar_1hdq3_3`,sidebarCollapsed:`_sidebarCollapsed_1hdq3_15`,itemBtn:`_itemBtn_1hdq3_19`,header:`_header_1hdq3_26`,footer:`_footer_1hdq3_31`,list:`_list_1hdq3_38`,item:`_item_1hdq3_19`,active:`_active_1hdq3_84`,itemIcon:`_itemIcon_1hdq3_130`,itemLabel:`_itemLabel_1hdq3_143`,itemSuffix:`_itemSuffix_1hdq3_153`,count:`_count_1hdq3_160`},ei=(0,t.createContext)(null);function ti(){let e=(0,t.useContext)(ei);if(!e)throw Error(`ViewSwitcherSidebarItem must be used inside ViewSwitcherSidebar`);return e}function ni({value:n,onValueChange:r,"aria-label":i=`Views`,collapsed:a=!1,header:o,footer:s,children:c,className:l,...u}){let d=(0,t.useRef)(null);function f(e){let t=Array.from(d.current?.querySelectorAll(`[role=radio]:not(:disabled)`)??[]),n=t.findIndex(e=>e===document.activeElement);if(n===-1)return;let r=n;if(e.key===`ArrowDown`||e.key===`ArrowRight`)r=(n+1)%t.length;else if(e.key===`ArrowUp`||e.key===`ArrowLeft`)r=(n-1+t.length)%t.length;else if(e.key===`Home`)r=0;else if(e.key===`End`)r=t.length-1;else return;e.preventDefault(),t[r].focus(),t[r].click()}return(0,e.jsx)(ei.Provider,{value:{value:n,onValueChange:r,collapsed:a},children:(0,e.jsxs)(`nav`,{className:[U.sidebar,a?U.sidebarCollapsed:null,l].filter(Boolean).join(` `),onKeyDown:f,...u,children:[o&&(0,e.jsx)(`div`,{className:U.header,children:o}),(0,e.jsx)(`ul`,{ref:d,role:`radiogroup`,"aria-label":i,className:U.list,children:c}),s&&(0,e.jsx)(`div`,{className:U.footer,children:s})]})})}function ri({name:t,label:n,icon:r,count:i,suffix:a,disabled:o,className:s,...c}){let{value:l,onValueChange:u,collapsed:d}=ti(),f=l===t,p=a??i??null;return(0,e.jsx)(`li`,{className:U.item,children:(0,e.jsxs)(`button`,{type:`button`,role:`radio`,"aria-checked":f,tabIndex:f?0:-1,disabled:o,onClick:()=>u(t),className:[U.itemBtn,f?U.active:null,s].filter(Boolean).join(` `),...c,children:[r&&(0,e.jsx)(`span`,{className:U.itemIcon,children:(0,e.jsx)(j,{icon:r,size:`md`,"aria-hidden":!0})}),!d&&(0,e.jsx)(`span`,{className:U.itemLabel,children:n}),!d&&p!=null&&(0,e.jsx)(`span`,{className:U.itemSuffix,children:typeof p==`number`?(0,e.jsx)(`span`,{className:U.count,children:p>99?`99+`:p}):p})]})})}function ii({breakpoints:n,children:r,className:i,style:a,...o}){let s=(0,t.useRef)(null),[c,l]=(0,t.useState)({activeBreakpoint:null,width:0});return(0,t.useEffect)(()=>{let e=s.current;if(!e)return;let t=[...n].sort((e,t)=>e.maxWidth-t.maxWidth),r=e=>({activeBreakpoint:(t.find(t=>e<=t.maxWidth)??null)?.name??null,width:e});l(r(e.offsetWidth));let i=new ResizeObserver(e=>{let t=e[0];t&&l(r(t.contentBoxSize?.[0]?.inlineSize??t.contentRect.width))});return i.observe(e),()=>i.disconnect()},[JSON.stringify(n)]),(0,e.jsx)(`div`,{ref:s,className:i,style:{minWidth:0,...a},"data-breakpoint":c.activeBreakpoint??void 0,...o,children:r(c)})}var ai={row:`_row_1ba2f_3`,title:`_title_1ba2f_48`,leading:`_leading_1ba2f_59`,trailing:`_trailing_1ba2f_60`,default:`_default_1ba2f_68`,suggested:`_suggested_1ba2f_77`,destructive:`_destructive_1ba2f_86`};function oi({title:t,variant:n=`default`,leading:r,trailing:i,className:a,...o}){return(0,e.jsxs)(`button`,{className:[ai.row,ai[n],a].filter(Boolean).join(` `),...o,children:[r&&(0,e.jsx)(`span`,{className:ai.leading,children:r}),(0,e.jsx)(`span`,{className:ai.title,children:t}),i&&(0,e.jsx)(`span`,{className:ai.trailing,children:i})]})}var si={container:`_container_4kjnf_3`,primary:`_primary_4kjnf_14`,toggle:`_toggle_4kjnf_15`,separator:`_separator_4kjnf_66`,chevron:`_chevron_4kjnf_81`,default:`_default_4kjnf_88`,suggested:`_suggested_4kjnf_123`,destructive:`_destructive_4kjnf_145`,dropdown:`_dropdown_4kjnf_167`,dropdownVisible:`_dropdownVisible_4kjnf_185`};function ci({label:r,variant:i=`default`,dropdownContent:a,dropdownLabel:o=`More options`,disabled:s=!1,onClick:c,className:l,...u}){let[d,f]=(0,t.useState)(!1),[p,m]=(0,t.useState)({}),h=(0,t.useRef)(null),g=(0,t.useRef)(null),_=(0,t.useRef)(null),v=(0,t.useCallback)(()=>f(!1),[]),y=(0,t.useCallback)(()=>{if(!g.current||!_.current)return;let e=g.current.getBoundingClientRect(),t=_.current.getBoundingClientRect(),n=window.innerWidth,r=e.right-t.width;r<8&&(r=8),r+t.width>n-8&&(r=n-t.width-8),m({top:e.bottom+6,left:r})},[]);(0,t.useEffect)(()=>{if(!d)return;let e=requestAnimationFrame(()=>{y(),window.addEventListener(`scroll`,y,{passive:!0,capture:!0}),window.addEventListener(`resize`,y,{passive:!0})});return()=>{cancelAnimationFrame(e),window.removeEventListener(`scroll`,y,{capture:!0}),window.removeEventListener(`resize`,y)}},[d,y]),(0,t.useEffect)(()=>{if(!d)return;let e=e=>{!h.current?.contains(e.target)&&!_.current?.contains(e.target)&&v()};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[d,v]);let b=e=>{e.key===`Escape`&&(e.stopPropagation(),v(),g.current?.focus())},x=[si.container,si[i],l].filter(Boolean).join(` `),S=(0,e.jsx)(`div`,{ref:_,role:`dialog`,"aria-label":o,tabIndex:-1,className:[si.dropdown,d?si.dropdownVisible:null].filter(Boolean).join(` `),style:Object.keys(p).length?{...p,position:`fixed`}:{visibility:`hidden`,pointerEvents:`none`,top:-9999,left:-9999,position:`fixed`},onKeyDown:b,children:a});return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(`div`,{ref:h,className:x,children:[(0,e.jsx)(`button`,{className:si.primary,disabled:s,onClick:c,...u,children:r}),(0,e.jsx)(`span`,{className:si.separator,"aria-hidden":`true`}),(0,e.jsx)(`button`,{ref:g,className:si.toggle,disabled:s,"aria-label":o,"aria-haspopup":`dialog`,"aria-expanded":d,onClick:()=>f(e=>!e),children:(0,e.jsx)(`svg`,{className:si.chevron,width:`16`,height:`16`,viewBox:`0 0 16 16`,"aria-hidden":`true`,focusable:`false`,children:(0,e.jsx)(`path`,{d:`M4 6l4 4 4-4`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})})})]}),d&&(typeof document<`u`?(0,n.createPortal)(S,document.body):S)]})}var li={toolbar:`_toolbar_1avgl_2`,spacer:`_spacer_1avgl_20`};function ui({children:t,className:n,...r}){return(0,e.jsx)(`div`,{className:[li.toolbar,n].filter(Boolean).join(` `),...r,children:t})}function di({className:t,...n}){return(0,e.jsx)(`div`,{"aria-hidden":`true`,className:[li.spacer,t].filter(Boolean).join(` `),...n})}var fi={linked:`_linked_1tser_3`,vertical:`_vertical_1tser_9`};function pi({children:t,vertical:n=!1,className:r,...i}){return(0,e.jsx)(`div`,{className:[fi.linked,n?fi.vertical:null,r].filter(Boolean).join(` `),...i,children:t})}var mi={frame:`_frame_1bq7b_2`};function hi({children:t,className:n,...r}){return(0,e.jsx)(`div`,{className:[mi.frame,n].filter(Boolean).join(` `),...r,children:t})}var W={expanderRow:`_expanderRow_1wh8c_3`,header:`_header_1wh8c_11`,leading:`_leading_1wh8c_55`,content:`_content_1wh8c_64`,title:`_title_1wh8c_72`,subtitle:`_subtitle_1wh8c_83`,trailing:`_trailing_1wh8c_97`,chevronWrap:`_chevronWrap_1wh8c_106`,chevronOpen:`_chevronOpen_1wh8c_115`,chevron:`_chevron_1wh8c_106`,panel:`_panel_1wh8c_125`,expanded:`_expanded_1wh8c_131`,panelInner:`_panelInner_1wh8c_135`,childItem:`_childItem_1wh8c_142`};function gi({title:n,subtitle:r,leading:i,trailing:a,children:o,expanded:s,defaultExpanded:c=!1,onExpandedChange:l,className:u,...d}){let f=s!==void 0,[p,m]=(0,t.useState)(c),h=f?s:p,g=(0,t.useId)(),_=(0,t.useId)(),v=()=>{let e=!h;f||m(e),l?.(e)},y=t.Children.toArray(o).filter(Boolean);return(0,e.jsxs)(`div`,{className:[W.expanderRow,h?W.expanded:null,u].filter(Boolean).join(` `),...d,children:[(0,e.jsxs)(`button`,{id:_,className:W.header,"aria-expanded":h,"aria-controls":g,onClick:v,children:[i&&(0,e.jsx)(`span`,{className:W.leading,children:i}),(0,e.jsxs)(`span`,{className:W.content,children:[(0,e.jsx)(`span`,{className:W.title,children:n}),r&&(0,e.jsx)(`span`,{className:W.subtitle,children:r})]}),a&&(0,e.jsx)(`span`,{className:W.trailing,children:a}),(0,e.jsx)(`span`,{className:[W.chevronWrap,h?W.chevronOpen:null].filter(Boolean).join(` `),"aria-hidden":`true`,children:(0,e.jsx)(`svg`,{className:W.chevron,width:`16`,height:`16`,viewBox:`0 0 16 16`,focusable:`false`,children:(0,e.jsx)(`path`,{d:`M4 6l4 4 4-4`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})})})]}),(0,e.jsx)(`div`,{id:g,role:`region`,"aria-labelledby":_,className:W.panel,children:(0,e.jsx)(`div`,{className:W.panelInner,children:y.map((t,n)=>(0,e.jsxs)(`div`,{className:W.childItem,children:[(0,e.jsx)(k,{"aria-hidden":`true`}),t]},n))})})]})}var _i={switcher:`_switcher_15xk5_3`,item:`_item_15xk5_10`,iconOnly:`_iconOnly_15xk5_38`,itemIcon:`_itemIcon_15xk5_43`,itemLabel:`_itemLabel_15xk5_49`,default:`_default_15xk5_55`,active:`_active_15xk5_68`,flat:`_flat_15xk5_121`,round:`_round_15xk5_169`,pill:`_pill_15xk5_235`},vi=(0,t.createContext)(null);function yi(){let e=(0,t.useContext)(vi);if(!e)throw Error(`InlineViewSwitcherItem must be used inside InlineViewSwitcher`);return e}function bi({value:n,onValueChange:r,variant:i=`default`,"aria-label":a=`View switcher`,children:o,className:s,...c}){let l=(0,t.useRef)(null);function u(e){let t=Array.from(l.current?.querySelectorAll(`[role=radio]:not(:disabled)`)??[]),n=t.findIndex(e=>e===document.activeElement);if(n===-1)return;let r=n;if(e.key===`ArrowRight`||e.key===`ArrowDown`)r=(n+1)%t.length;else if(e.key===`ArrowLeft`||e.key===`ArrowUp`)r=(n-1+t.length)%t.length;else if(e.key===`Home`)r=0;else if(e.key===`End`)r=t.length-1;else return;e.preventDefault(),t[r].focus(),t[r].click()}return(0,e.jsx)(vi.Provider,{value:{value:n,onValueChange:r},children:(0,e.jsx)(`div`,{ref:l,role:`radiogroup`,"aria-label":a,onKeyDown:u,className:[_i.switcher,_i[i],s].filter(Boolean).join(` `),...c,children:o})})}function xi({name:t,label:n,icon:r,disabled:i,className:a,...o}){let{value:s,onValueChange:c}=yi(),l=s===t,u=r&&!n;return(0,e.jsxs)(`button`,{type:`button`,role:`radio`,"aria-checked":l,tabIndex:l?0:-1,disabled:i,onClick:()=>c(t),className:[_i.item,l?_i.active:null,u?_i.iconOnly:null,a].filter(Boolean).join(` `),...o,children:[r&&(0,e.jsx)(`span`,{className:_i.itemIcon,children:(0,e.jsx)(j,{icon:r,size:`md`,"aria-hidden":!0})}),n&&(0,e.jsx)(`span`,{className:_i.itemLabel,children:n})]})}var Si={row:`_row_jl3bc_3`,disabled:`_disabled_jl3bc_41`,leading:`_leading_jl3bc_49`,content:`_content_jl3bc_58`,title:`_title_jl3bc_66`,subtitle:`_subtitle_jl3bc_77`,switchTrack:`_switchTrack_jl3bc_91`,switchThumb:`_switchThumb_jl3bc_114`,switchThumbOn:`_switchThumbOn_jl3bc_126`};function Ci({title:n,subtitle:r,leading:i,checked:a,defaultChecked:o=!1,onCheckedChange:s,disabled:c=!1,className:l,onClick:u,...d}){let f=a!==void 0,[p,m]=(0,t.useState)(o),h=f?a:p,g=(0,t.useId)(),_=e=>{let t=!h;f||m(t),s?.(t),u?.(e)};return(0,e.jsxs)(`button`,{role:`switch`,"aria-checked":h,"aria-labelledby":g,disabled:c,className:[Si.row,c?Si.disabled:null,l].filter(Boolean).join(` `),onClick:_,...d,children:[i&&(0,e.jsx)(`span`,{className:Si.leading,children:i}),(0,e.jsxs)(`span`,{className:Si.content,id:g,children:[(0,e.jsx)(`span`,{className:Si.title,children:n}),r&&(0,e.jsx)(`span`,{className:Si.subtitle,children:r})]}),(0,e.jsx)(`span`,{className:Si.switchTrack,"aria-hidden":`true`,children:(0,e.jsx)(`span`,{className:[Si.switchThumb,h?Si.switchThumbOn:null].filter(Boolean).join(` `)})})]})}var G={row:`_row_1dije_3`,disabled:`_disabled_1dije_41`,checkboxWrap:`_checkboxWrap_1dije_49`,checkbox:`_checkbox_1dije_49`,checkboxChecked:`_checkboxChecked_1dije_71`,checkmark:`_checkmark_1dije_77`,leading:`_leading_1dije_84`,content:`_content_1dije_93`,title:`_title_1dije_101`,subtitle:`_subtitle_1dije_112`};function wi({title:n,subtitle:r,leading:i,checked:a,defaultChecked:o=!1,onCheckedChange:s,disabled:c=!1,className:l,onClick:u,...d}){let f=a!==void 0,[p,m]=(0,t.useState)(o),h=f?a:p,g=(0,t.useId)(),_=e=>{let t=!h;f||m(t),s?.(t),u?.(e)};return(0,e.jsxs)(`button`,{role:`checkbox`,"aria-checked":h,"aria-labelledby":g,disabled:c,className:[G.row,c?G.disabled:null,l].filter(Boolean).join(` `),onClick:_,...d,children:[(0,e.jsx)(`span`,{className:G.checkboxWrap,"aria-hidden":`true`,children:(0,e.jsx)(`span`,{className:[G.checkbox,h?G.checkboxChecked:null].filter(Boolean).join(` `),children:h&&(0,e.jsx)(`svg`,{className:G.checkmark,width:`12`,height:`12`,viewBox:`0 0 12 12`,focusable:`false`,children:(0,e.jsx)(`path`,{d:`M2 6l3 3 5-5`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.75`,strokeLinecap:`round`,strokeLinejoin:`round`})})})}),i&&(0,e.jsx)(`span`,{className:G.leading,children:i}),(0,e.jsxs)(`span`,{className:G.content,id:g,children:[(0,e.jsx)(`span`,{className:G.title,children:n}),r&&(0,e.jsx)(`span`,{className:G.subtitle,children:r})]})]})}var Ti=`_row_46mn8_3`,Ei=`_disabled_46mn8_16`,Di=`_leading_46mn8_23`,Oi=`_content_46mn8_32`,ki=`_title_46mn8_40`,Ai=`_subtitle_46mn8_51`,ji=`_comboWrap_46mn8_65`,Mi=`_trigger_46mn8_73`,Ni=`_triggerOpen_46mn8_126`,Pi=`_triggerLabel_46mn8_136`,Fi=`_placeholder_46mn8_144`,Ii=`_chevron_46mn8_150`,Li=`_chevronOpen_46mn8_157`,Ri=`_list_46mn8_163`,zi=`_listDown_46mn8_192`,Bi=`_listUp_46mn8_196`,Vi=`_option_46mn8_208`,Hi=`_optionActive_46mn8_225`,Ui=`_optionSelected_46mn8_229`,Wi=`_optionDisabled_46mn8_233`,Gi=`_optionLabel_46mn8_239`,Ki=`_checkIcon_46mn8_247`,K={row:Ti,disabled:Ei,leading:Di,content:Oi,title:ki,subtitle:Ai,comboWrap:ji,trigger:Mi,triggerOpen:Ni,triggerLabel:Pi,placeholder:Fi,chevron:Ii,chevronOpen:Li,list:Ri,"list-in":`_list-in_46mn8_1`,listDown:zi,listUp:Bi,"list-in-up":`_list-in-up_46mn8_1`,option:Vi,optionActive:Hi,optionSelected:Ui,optionDisabled:Wi,optionLabel:Gi,checkIcon:Ki};function qi({title:n,subtitle:r,leading:i,options:a,value:o,defaultValue:s,onValueChange:c,disabled:l=!1,className:u,...d}){let f=o!==void 0,[p,m]=(0,t.useState)(s),h=f?o:p,[g,_]=(0,t.useState)(!1),[v,y]=(0,t.useState)(-1),[b,x]=(0,t.useState)(!1),S=(0,t.useId)(),C=(0,t.useId)(),w=(0,t.useRef)(null),T=(0,t.useRef)(null),E=a.find(e=>e.value===h),D=(0,t.useCallback)(()=>{if(!w.current)return;let e=w.current.getBoundingClientRect(),t=window.innerHeight-e.bottom,n=Math.min(a.length*44+8,260);x(t<n&&e.top>n)},[a.length]),O=(0,t.useCallback)(()=>{if(l)return;D(),_(!0);let e=a.findIndex(e=>e.value===h&&!e.disabled);y(e>=0?e:a.findIndex(e=>!e.disabled))},[l,D,a,h]),k=(0,t.useCallback)(()=>{_(!1),y(-1),w.current?.focus()},[]),A=(0,t.useCallback)(e=>{e.disabled||(f||m(e.value),c?.(e.value),k())},[f,c,k]);(0,t.useEffect)(()=>{!g||v<0||!T.current||T.current.children[v]?.scrollIntoView({block:`nearest`})},[v,g]),(0,t.useEffect)(()=>{if(!g)return;let e=e=>{!w.current?.contains(e.target)&&!T.current?.contains(e.target)&&k()};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[g,k]);let ee=(0,t.useCallback)(e=>{switch(e.key){case`Enter`:case` `:case`ArrowDown`:e.preventDefault(),O();break;case`ArrowUp`:e.preventDefault(),D(),_(!0),y(a.reduce((e,t,n)=>t.disabled?e:n,-1));break}},[O,D,a]),te=(0,t.useCallback)(e=>{let t=a.map((e,t)=>({o:e,i:t})).filter(({o:e})=>!e.disabled).map(({i:e})=>e),n=t.indexOf(v);switch(e.key){case`ArrowDown`:{e.preventDefault();let r=t[Math.min(n+1,t.length-1)];y(r??v);break}case`ArrowUp`:{e.preventDefault();let r=t[Math.max(n-1,0)];y(r??v);break}case`Home`:e.preventDefault(),y(t[0]??-1);break;case`End`:e.preventDefault(),y(t[t.length-1]??-1);break;case`Enter`:case` `:e.preventDefault(),v>=0&&A(a[v]);break;case`Escape`:case`Tab`:k();break}},[a,v,A,k]);return(0,e.jsxs)(`div`,{className:[K.row,l?K.disabled:null,u].filter(Boolean).join(` `),...d,children:[i&&(0,e.jsx)(`span`,{className:K.leading,children:i}),(0,e.jsxs)(`span`,{className:K.content,children:[(0,e.jsx)(`span`,{className:K.title,children:n}),r&&(0,e.jsx)(`span`,{className:K.subtitle,children:r})]}),(0,e.jsxs)(`div`,{className:K.comboWrap,children:[(0,e.jsxs)(`button`,{ref:w,id:S,type:`button`,role:`combobox`,"aria-haspopup":`listbox`,"aria-expanded":g,"aria-controls":C,"aria-activedescendant":g&&v>=0?`${C}-opt-${v}`:void 0,disabled:l,className:[K.trigger,g?K.triggerOpen:null].filter(Boolean).join(` `),onClick:()=>g?k():O(),onKeyDown:ee,children:[(0,e.jsx)(`span`,{className:[K.triggerLabel,E?null:K.placeholder].filter(Boolean).join(` `),children:E?.label??`—`}),(0,e.jsx)(`svg`,{className:[K.chevron,g?K.chevronOpen:null].filter(Boolean).join(` `),width:`16`,height:`16`,viewBox:`0 0 16 16`,"aria-hidden":`true`,focusable:`false`,children:(0,e.jsx)(`path`,{d:`M4 6l4 4 4-4`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})})]}),g&&(0,e.jsx)(`ul`,{ref:T,id:C,role:`listbox`,"aria-labelledby":S,tabIndex:-1,className:[K.list,b?K.listUp:K.listDown].filter(Boolean).join(` `),onKeyDown:te,children:a.map((t,n)=>(0,e.jsxs)(`li`,{id:`${C}-opt-${n}`,role:`option`,"aria-selected":t.value===h,"aria-disabled":t.disabled,className:[K.option,t.value===h?K.optionSelected:null,n===v?K.optionActive:null,t.disabled?K.optionDisabled:null].filter(Boolean).join(` `),onMouseEnter:()=>!t.disabled&&y(n),onClick:()=>A(t),children:[(0,e.jsx)(`span`,{className:K.optionLabel,children:t.label}),t.value===h&&(0,e.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,"aria-hidden":`true`,focusable:`false`,className:K.checkIcon,children:(0,e.jsx)(`path`,{d:`M3 8l4 4 6-6`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.75`,strokeLinecap:`round`,strokeLinejoin:`round`})})]},t.value))})]})]})}var q={row:`_row_1kogj_3`,focused:`_focused_1kogj_16`,disabled:`_disabled_1kogj_25`,leading:`_leading_1kogj_33`,trailing:`_trailing_1kogj_40`,fieldWrap:`_fieldWrap_1kogj_49`,label:`_label_1kogj_61`,labelFloated:`_labelFloated_1kogj_82`,input:`_input_1kogj_91`,inputFloated:`_inputFloated_1kogj_114`};function Ji({title:n,value:r,defaultValue:i=``,onValueChange:a,leading:o,trailing:s,disabled:c,className:l,id:u,onChange:d,...f}){let p=(0,t.useId)(),m=u??p,h=r!==void 0,[g,_]=(0,t.useState)(String(i)),v=h?String(r):g,[y,b]=(0,t.useState)(!1),x=(0,t.useRef)(null),S=y||v.length>0;return(0,e.jsxs)(`div`,{className:[q.row,y?q.focused:null,c?q.disabled:null,l].filter(Boolean).join(` `),onClick:()=>x.current?.focus(),children:[o&&(0,e.jsx)(`span`,{className:q.leading,children:o}),(0,e.jsxs)(`span`,{className:q.fieldWrap,children:[(0,e.jsx)(`label`,{htmlFor:m,className:[q.label,S?q.labelFloated:null].filter(Boolean).join(` `),children:n}),(0,e.jsx)(`input`,{ref:x,id:m,className:[q.input,S?q.inputFloated:null].filter(Boolean).join(` `),value:v,disabled:c,onFocus:()=>b(!0),onBlur:()=>b(!1),onChange:e=>{h||_(e.target.value),a?.(e.target.value),d?.(e)},...f})]}),s&&(0,e.jsx)(`span`,{className:q.trailing,children:s})]})}var Yi={revealButton:`_revealButton_1j8z0_3`};function Xi({trailing:n,disabled:r,...i}){let[a,o]=(0,t.useState)(!1),s=(0,e.jsx)(`button`,{type:`button`,className:Yi.revealButton,onClick:e=>{e.stopPropagation(),o(e=>!e)},"aria-label":a?`Conceal password`:`Reveal password`,"aria-pressed":a,disabled:r,children:(0,e.jsx)(j,{icon:a?Pe:Ne,size:`md`,"aria-hidden":!0})});return(0,e.jsx)(Ji,{...i,type:a?`text`:`password`,disabled:r,trailing:(0,e.jsxs)(e.Fragment,{children:[n,s]})})}var J={row:`_row_ycg6f_3`,disabled:`_disabled_ycg6f_16`,leading:`_leading_ycg6f_23`,content:`_content_ycg6f_32`,title:`_title_ycg6f_40`,subtitle:`_subtitle_ycg6f_51`,spin:`_spin_ycg6f_65`,spinBtn:`_spinBtn_ycg6f_100`,spinValue:`_spinValue_ycg6f_144`};function Zi(e){let t=e.toString(),n=t.indexOf(`.`);return n===-1?0:t.length-n-1}function Qi(e,t,n){return Math.min(n,Math.max(t,e))}function $i({title:n,subtitle:r,leading:i,value:a,defaultValue:o=0,onValueChange:s,min:c=0,max:l=100,step:u=1,decimals:d,disabled:f=!1,className:p,...m}){let h=a!==void 0,[g,_]=(0,t.useState)(o),v=h?a:g,y=d??Zi(u),b=(0,t.useId)(),x=(0,t.useCallback)(e=>{let t=parseFloat(Qi(e,c,l).toFixed(y));h||_(t),s?.(t)},[h,c,l,y,s]),S=(0,t.useCallback)(e=>{switch(e.key){case`ArrowUp`:e.preventDefault(),x(v+u);break;case`ArrowDown`:e.preventDefault(),x(v-u);break;case`PageUp`:e.preventDefault(),x(v+u*10);break;case`PageDown`:e.preventDefault(),x(v-u*10);break;case`Home`:e.preventDefault(),x(c);break;case`End`:e.preventDefault(),x(l);break}},[v,u,c,l,x]);return(0,e.jsxs)(`div`,{className:[J.row,f?J.disabled:null,p].filter(Boolean).join(` `),...m,children:[i&&(0,e.jsx)(`span`,{className:J.leading,children:i}),(0,e.jsxs)(`span`,{className:J.content,children:[(0,e.jsx)(`span`,{className:J.title,children:n}),r&&(0,e.jsx)(`span`,{className:J.subtitle,children:r})]}),(0,e.jsxs)(`div`,{role:`spinbutton`,"aria-valuenow":v,"aria-valuemin":c,"aria-valuemax":l,"aria-labelledby":b,"aria-disabled":f||void 0,tabIndex:f?-1:0,onKeyDown:f?void 0:S,className:J.spin,children:[(0,e.jsx)(`button`,{type:`button`,tabIndex:-1,"aria-hidden":`true`,disabled:f||v<=c,className:J.spinBtn,onClick:e=>{e.stopPropagation(),x(v-u)},children:`−`}),(0,e.jsx)(`span`,{id:b,className:J.spinValue,"aria-hidden":`true`,children:v.toFixed(y)}),(0,e.jsx)(`button`,{type:`button`,tabIndex:-1,"aria-hidden":`true`,disabled:f||v>=l,className:J.spinBtn,onClick:e=>{e.stopPropagation(),x(v+u)},children:`+`})]})]})}var ea=`_view_1r1om_3`,ta=`_page_1r1om_12`,na=`_pageHeader_1r1om_23`,ra=`_pageTitle_1r1om_34`,ia=`_pageContent_1r1om_43`,aa=`_enterForward_1r1om_52`,oa=`_enterBack_1r1om_56`,sa={view:ea,page:ta,pageHeader:na,pageTitle:ra,pageContent:ia,enterForward:aa,"slide-in-right":`_slide-in-right_1r1om_1`,enterBack:oa,"slide-in-left":`_slide-in-left_1r1om_1`},ca=(0,t.createContext)({navigate:()=>{},pop:()=>{},canGoBack:!1,currentTag:``,direction:`forward`});function la(){return(0,t.useContext)(ca)}function ua({tag:n,title:r,children:i,className:a,...o}){let{currentTag:s,direction:c}=(0,t.useContext)(ca);return s===n?(0,e.jsxs)(`div`,{className:[sa.page,c===`forward`?sa.enterForward:sa.enterBack,a].filter(Boolean).join(` `),...o,children:[(0,e.jsx)(`div`,{className:sa.pageHeader,children:(0,e.jsx)(`span`,{className:sa.pageTitle,children:r})}),(0,e.jsx)(`div`,{className:sa.pageContent,children:i})]}):null}function da({initialPage:n,children:r,className:i,...a}){let[o,s]=(0,t.useState)([n]),c=o[o.length-1],l=o.length>1,[u,d]=(0,t.useState)(`forward`);return(0,e.jsx)(ca.Provider,{value:{navigate:e=>{d(`forward`),s(t=>[...t,e])},pop:()=>{o.length<=1||(d(`back`),s(e=>e.slice(0,-1)))},canGoBack:l,currentTag:c,direction:u},children:(0,e.jsx)(`div`,{className:[sa.view,i].filter(Boolean).join(` `),...a,children:r})})}var fa=`_backdrop_zzv98_3`,pa=`_sheet_zzv98_26`,ma=`_handle_zzv98_49`,ha=`_handleBar_zzv98_56`,ga=`_title_zzv98_66`,_a=`_content_zzv98_79`,va={backdrop:fa,"backdrop-in":`_backdrop-in_zzv98_1`,sheet:pa,"sheet-in":`_sheet-in_zzv98_1`,handle:ma,handleBar:ha,title:ga,content:_a},ya=`button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])`;function ba({open:r,title:i,children:a,onClose:o,closeOnBackdrop:s=!0,className:c,...l}){let u=(0,t.useRef)(null),d=(0,t.useId)(),f=(0,t.useRef)(null);(0,t.useEffect)(()=>{r?(f.current=document.activeElement,(u.current?.querySelector(ya))?.focus()):f.current?.focus()},[r]);let p=(0,t.useCallback)(e=>{if(e.key===`Escape`){e.preventDefault(),o?.();return}if(e.key!==`Tab`)return;let t=Array.from(u.current?.querySelectorAll(ya)??[]);if(t.length===0)return;let n=t[0],r=t[t.length-1];e.shiftKey?document.activeElement===n&&(e.preventDefault(),r.focus()):document.activeElement===r&&(e.preventDefault(),n.focus())},[o]);if(!r)return null;let m=(0,e.jsx)(`div`,{className:va.backdrop,onClick:s?o:void 0,"aria-hidden":`true`,children:(0,e.jsxs)(`div`,{ref:u,role:`dialog`,"aria-modal":`true`,"aria-labelledby":i?d:void 0,className:[va.sheet,c].filter(Boolean).join(` `),onKeyDown:p,onClick:e=>e.stopPropagation(),...l,children:[(0,e.jsx)(`div`,{className:va.handle,"aria-hidden":`true`,children:(0,e.jsx)(`div`,{className:va.handleBar})}),i&&(0,e.jsx)(`div`,{id:d,className:va.title,children:i}),a&&(0,e.jsx)(`div`,{className:va.content,children:a})]})});return typeof document>`u`?m:(0,n.createPortal)(m,document.body)}var Y={carousel:`_carousel_117hp_3`,horizontal:`_horizontal_117hp_20`,vertical:`_vertical_117hp_27`,slide:`_slide_117hp_36`,indicatorDots:`_indicatorDots_117hp_46`,dot:`_dot_117hp_54`,dotActive:`_dotActive_117hp_73`,indicatorLines:`_indicatorLines_117hp_85`,line:`_line_117hp_93`,lineActive:`_lineActive_117hp_110`};function xa({pages:t,currentPage:n,onPageSelected:r,className:i,...a}){return(0,e.jsx)(`div`,{className:[Y.indicatorDots,i].filter(Boolean).join(` `),role:`tablist`,"aria-label":`Carousel pages`,...a,children:Array.from({length:t},(t,i)=>(0,e.jsx)(`button`,{type:`button`,role:`tab`,"aria-selected":i===n,"aria-label":`Page ${i+1}`,className:[Y.dot,i===n?Y.dotActive:null].filter(Boolean).join(` `),onClick:()=>r?.(i)},i))})}function Sa({pages:t,currentPage:n,onPageSelected:r,className:i,...a}){return(0,e.jsx)(`div`,{className:[Y.indicatorLines,i].filter(Boolean).join(` `),role:`tablist`,"aria-label":`Carousel pages`,...a,children:Array.from({length:t},(t,i)=>(0,e.jsx)(`button`,{type:`button`,role:`tab`,"aria-selected":i===n,"aria-label":`Page ${i+1}`,className:[Y.line,i===n?Y.lineActive:null].filter(Boolean).join(` `),onClick:()=>r?.(i)},i))})}function Ca({children:n,orientation:r=`horizontal`,spacing:i=0,loop:a=!1,onPageChanged:o,page:s,className:c,...l}){let u=(0,t.useRef)(null),d=t.Children.count(n),[f,p]=(0,t.useState)(0),m=s!==void 0,h=m?s:f;(0,t.useEffect)(()=>{m&&g(s,`smooth`)},[s]);let g=(0,t.useCallback)((e,t=`smooth`)=>{let n=u.current;n&&(r===`horizontal`?n.scrollTo({left:n.clientWidth*e,behavior:t}):n.scrollTo({top:n.clientHeight*e,behavior:t}))},[r]);(0,t.useEffect)(()=>{let e=u.current;if(!e)return;let t=()=>{Array.from(e.children);let t=r===`horizontal`?e.clientWidth:e.clientHeight,n=r===`horizontal`?e.scrollLeft:e.scrollTop,i=Math.round(n/(t||1)),a=Math.max(0,Math.min(i,d-1));m||p(a),o?.(a)};return e.addEventListener(`scroll`,t,{passive:!0}),()=>e.removeEventListener(`scroll`,t)},[r,d,m,o]);let _=(0,t.useCallback)(e=>{let t=r===`horizontal`?e.key===`ArrowRight`:e.key===`ArrowDown`,n=r===`horizontal`?e.key===`ArrowLeft`:e.key===`ArrowUp`;if(t){e.preventDefault();let t=a?(h+1)%d:Math.min(h+1,d-1);g(t),m||p(t),o?.(t)}else if(n){e.preventDefault();let t=a?(h-1+d)%d:Math.max(h-1,0);g(t),m||p(t),o?.(t)}},[h,d,a,r,g,m,o]),v=r===`horizontal`;return(0,e.jsx)(`div`,{ref:u,role:`region`,"aria-roledescription":`carousel`,tabIndex:0,className:[Y.carousel,v?Y.horizontal:Y.vertical,c].filter(Boolean).join(` `),style:v?{columnGap:i||void 0}:{rowGap:i||void 0},onKeyDown:_,...l,children:t.Children.map(n,(t,n)=>(0,e.jsx)(`div`,{className:Y.slide,role:`group`,"aria-roledescription":`slide`,"aria-label":`${n+1} of ${d}`,children:t},n))})}function wa({children:t,...n}){return(0,e.jsx)(`div`,{...n,children:t})}var Ta={content:`_content_1xkwk_3`,icon:`_icon_1xkwk_9`,label:`_label_1xkwk_15`};function Ea({icon:t,label:n,iconPosition:r=`start`,className:i,...a}){return(0,e.jsxs)(`span`,{className:[Ta.content,r===`end`?Ta.iconEnd:null,i].filter(Boolean).join(` `),...a,children:[t&&r===`start`&&(0,e.jsx)(`span`,{className:Ta.icon,"aria-hidden":`true`,children:t}),(0,e.jsx)(`span`,{className:Ta.label,children:n}),t&&r===`end`&&(0,e.jsx)(`span`,{className:Ta.icon,"aria-hidden":`true`,children:t})]})}var Da={label:`_label_h3znl_3`,key:`_key_h3znl_9`},Oa={ctrl:`⌃`,control:`⌃`,shift:`⇧`,alt:`⌥`,option:`⌥`,super:`⊞`,win:`⊞`,cmd:`⌘`,command:`⌘`,meta:`⌘`,up:`↑`,down:`↓`,left:`←`,right:`→`,enter:`↵`,return:`↵`,backspace:`⌫`,delete:`⌦`,escape:`⎋`,esc:`⎋`,tab:`⇥`,space:`␣`,pageup:`⇞`,pagedown:`⇟`,home:`⇱`,end:`⇲`};function ka({shortcut:t,symbols:n=!0,className:r,...i}){let a=t.split(`+`).map(e=>e.trim()).filter(Boolean);return(0,e.jsx)(`span`,{className:[Da.label,r].filter(Boolean).join(` `),"aria-label":t,...i,children:a.map((t,r)=>{let i=n?Oa[t.toLowerCase()]??t:t;return(0,e.jsx)(`kbd`,{className:Da.key,children:i},r)})})}var Aa={toolbarView:`_toolbarView_134hf_3`,top:`_top_134hf_11`,content:`_content_134hf_16`,bottom:`_bottom_134hf_23`};function ja({topBar:t,bottomBar:n,children:r,className:i,...a}){return(0,e.jsxs)(`div`,{className:[Aa.toolbarView,i].filter(Boolean).join(` `),...a,children:[t&&(0,e.jsx)(`div`,{className:Aa.top,children:t}),(0,e.jsx)(`div`,{className:Aa.content,children:r}),n&&(0,e.jsx)(`div`,{className:Aa.bottom,children:n})]})}var Ma={windowTitle:`_windowTitle_zm877_3`,title:`_title_zm877_11`,subtitle:`_subtitle_zm877_24`};function Na({title:t,subtitle:n,className:r,...i}){return(0,e.jsxs)(`div`,{className:[Ma.windowTitle,r].filter(Boolean).join(` `),...i,children:[(0,e.jsx)(`span`,{className:Ma.title,children:t}),n&&(0,e.jsx)(`span`,{className:Ma.subtitle,children:n})]})}var Pa={group:`_group_17s4f_3`,header:`_header_17s4f_11`,headerText:`_headerText_17s4f_17`,title:`_title_17s4f_25`,description:`_description_17s4f_33`,suffix:`_suffix_17s4f_42`,content:`_content_17s4f_48`};function Fa({title:t,description:n,headerSuffix:r,children:i,className:a,...o}){let s=t||n||r;return(0,e.jsxs)(`div`,{className:[Pa.group,a].filter(Boolean).join(` `),...o,children:[s&&(0,e.jsxs)(`div`,{className:Pa.header,children:[(0,e.jsxs)(`div`,{className:Pa.headerText,children:[t&&(0,e.jsx)(`span`,{className:Pa.title,children:t}),n&&(0,e.jsx)(`span`,{className:Pa.description,children:n})]}),r&&(0,e.jsx)(`div`,{className:Pa.suffix,children:r})]}),(0,e.jsx)(`div`,{className:Pa.content,children:i})]})}var Ia={page:`_page_gt42j_3`,inner:`_inner_gt42j_10`};function La({title:t,iconName:n,children:r,className:i,...a}){return(0,e.jsx)(`div`,{className:[Ia.page,i].filter(Boolean).join(` `),role:`tabpanel`,...a,children:(0,e.jsx)(`div`,{className:Ia.inner,children:r})})}var Ra=`_backdrop_1u1bd_3`,za=`_dialog_1u1bd_26`,Ba=`_dialogMulti_1u1bd_46`,Va=`_header_1u1bd_63`,Ha=`_closeBtn_1u1bd_73`,Ua=`_title_1u1bd_102`,Wa=`_searchWrap_1u1bd_112`,Ga=`_searchInput_1u1bd_116`,Ka=`_body_1u1bd_143`,qa=`_sidebar_1u1bd_152`,Ja=`_navList_1u1bd_160`,Ya=`_navItem_1u1bd_169`,Xa=`_navItemActive_1u1bd_190`,Za=`_navIcon_1u1bd_205`,Qa=`_navLabel_1u1bd_211`,$a=`_pageWrap_1u1bd_221`,X={backdrop:Ra,"backdrop-in":`_backdrop-in_1u1bd_1`,dialog:za,"dialog-in":`_dialog-in_1u1bd_1`,dialogMulti:Ba,header:Va,closeBtn:Ha,title:Ua,searchWrap:Wa,searchInput:Ga,body:Ka,sidebar:qa,navList:Ja,navItem:Ya,navItemActive:Xa,navIcon:Za,navLabel:Qa,pageWrap:$a},eo=`button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])`;function to(e,t){if(e.key!==`Tab`)return;let n=Array.from(t.current?.querySelectorAll(eo)??[]);if(!n.length)return;let r=n[0],i=n[n.length-1];e.shiftKey?document.activeElement===r&&(e.preventDefault(),i.focus()):document.activeElement===i&&(e.preventDefault(),r.focus())}function no({open:r,onClose:i,children:a,searchable:o=!0,className:s,...c}){let l=(0,t.useRef)(null),u=(0,t.useRef)(null),d=(0,t.useId)(),f=t.Children.toArray(a).filter(e=>(0,t.isValidElement)(e)),[p,m]=(0,t.useState)(0),[h,g]=(0,t.useState)(``);(0,t.useEffect)(()=>{if(r){m(0),g(``);let e=requestAnimationFrame(()=>{o&&u.current?u.current.focus():(l.current?.querySelector(eo))?.focus()});return()=>cancelAnimationFrame(e)}},[r,o]);let _=(0,t.useCallback)(e=>{if(e.key===`Escape`){e.stopPropagation(),i();return}to(e,l)},[i]),v=f.length>1,y=f[p]??f[0],b=h.trim().toLowerCase();return r?(0,n.createPortal)((0,e.jsx)(`div`,{className:X.backdrop,onClick:e=>{e.target===e.currentTarget&&i()},role:`presentation`,children:(0,e.jsxs)(`div`,{ref:l,role:`dialog`,"aria-modal":`true`,"aria-labelledby":d,className:[X.dialog,v?X.dialogMulti:null,s].filter(Boolean).join(` `),onKeyDown:_,...c,children:[(0,e.jsxs)(`div`,{className:X.header,children:[(0,e.jsx)(`button`,{type:`button`,className:X.closeBtn,onClick:i,"aria-label":`Close preferences`,children:`✕`}),(0,e.jsx)(`span`,{id:d,className:X.title,children:`Preferences`}),o&&(0,e.jsx)(`div`,{className:X.searchWrap,children:(0,e.jsx)(`input`,{ref:u,type:`search`,placeholder:`Search…`,value:h,onChange:e=>g(e.target.value),className:X.searchInput,"aria-label":`Search preferences`})})]}),(0,e.jsxs)(`div`,{className:X.body,children:[v&&(0,e.jsx)(`nav`,{className:X.sidebar,"aria-label":`Preferences pages`,children:(0,e.jsx)(`ul`,{role:`tablist`,className:X.navList,children:f.map((t,n)=>(0,e.jsx)(`li`,{role:`presentation`,children:(0,e.jsxs)(`button`,{role:`tab`,type:`button`,"aria-selected":n===p,className:[X.navItem,n===p?X.navItemActive:null].filter(Boolean).join(` `),onClick:()=>m(n),children:[t.props.iconName&&(0,e.jsx)(`span`,{className:[X.navIcon,`icon`,t.props.iconName].join(` `),"aria-hidden":`true`}),(0,e.jsx)(`span`,{className:X.navLabel,children:t.props.title})]})},n))})}),(0,e.jsx)(`div`,{className:X.pageWrap,children:y&&(0,t.cloneElement)(y,{"data-search-query":b||void 0})})]})]})}),document.body):null}var Z={vertical:`_vertical_12mfk_12`,item:`_item_12mfk_18`,leading:`_leading_12mfk_25`,nodeTrack:`_nodeTrack_12mfk_32`,content:`_content_12mfk_41`,horizontal:`_horizontal_12mfk_65`,node:`_node_12mfk_32`,nodeDot:`_nodeDot_12mfk_114`,nodeWithIcon:`_nodeWithIcon_12mfk_121`,iconWrap:`_iconWrap_12mfk_128`,lineInvisible:`_lineInvisible_12mfk_139`,line:`_line_12mfk_139`,lineDotted:`_lineDotted_12mfk_153`};function ro({items:t,orientation:n=`vertical`,variant:r=`default`,className:i,...a}){let o=n===`horizontal`,s=r!==`none`;return(0,e.jsx)(`div`,{role:`list`,className:[Z.root,o?Z.horizontal:Z.vertical,i].filter(Boolean).join(` `),...a,children:t.map((n,i)=>{let a=i===0,c=i===t.length-1,l=[Z.line,r===`dotted`?Z.lineDotted:null].filter(Boolean).join(` `),u=(0,e.jsx)(`div`,{className:[Z.node,n.icon?Z.nodeWithIcon:Z.nodeDot].filter(Boolean).join(` `),children:n.icon&&(0,e.jsx)(`span`,{className:Z.iconWrap,"aria-hidden":`true`,children:n.icon})});return(0,e.jsxs)(`div`,{role:`listitem`,className:Z.item,children:[(0,e.jsx)(`div`,{className:Z.leading,children:n.leading}),o?(0,e.jsxs)(`div`,{className:Z.nodeTrack,children:[(0,e.jsx)(`div`,{className:[Z.line,r===`dotted`?Z.lineDotted:null,a||!s?Z.lineInvisible:null].filter(Boolean).join(` `),"aria-hidden":`true`}),u,(0,e.jsx)(`div`,{className:[Z.line,r===`dotted`?Z.lineDotted:null,c||!s?Z.lineInvisible:null].filter(Boolean).join(` `),"aria-hidden":`true`})]}):(0,e.jsxs)(`div`,{className:Z.nodeTrack,children:[u,!c&&s&&(0,e.jsx)(`div`,{className:l,"aria-hidden":`true`})]}),(0,e.jsx)(`div`,{className:Z.content,children:n.content})]},i)})})}var io={pathBar:`_pathBar_1n4ev_3`,list:`_list_1n4ev_12`,item:`_item_1n4ev_25`,separator:`_separator_1n4ev_33`,segment:`_segment_1n4ev_44`,current:`_current_1n4ev_81`,icon:`_icon_1n4ev_98`};function ao({segments:t,onNavigate:n,className:r,...i}){return(0,e.jsx)(`nav`,{"aria-label":`Breadcrumb`,className:[io.pathBar,r].filter(Boolean).join(` `),...i,children:(0,e.jsx)(`ol`,{className:io.list,"aria-label":`Path segments`,children:t.map((r,i)=>{let a=i===t.length-1;return(0,e.jsxs)(`li`,{className:io.item,children:[i>0&&(0,e.jsx)(`span`,{className:io.separator,"aria-hidden":`true`,children:(0,e.jsx)(`svg`,{width:`12`,height:`12`,viewBox:`0 0 12 12`,focusable:`false`,children:(0,e.jsx)(`path`,{d:`M4 2l4 4-4 4`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})})}),a?(0,e.jsxs)(`span`,{className:io.current,"aria-current":`page`,children:[r.icon&&(0,e.jsx)(`span`,{className:io.icon,"aria-hidden":`true`,children:r.icon}),r.label]}):(0,e.jsxs)(`button`,{type:`button`,className:io.segment,onClick:()=>n?.(r.path,i),children:[r.icon&&(0,e.jsx)(`span`,{className:io.icon,"aria-hidden":`true`,children:r.icon}),r.label]})]},r.path)})})})}var Q={wrapper:`_wrapper_1upmq_1`,svg:`_svg_1upmq_10`,label:`_label_1upmq_15`,cell:`_cell_1upmq_23`,tooltip:`_tooltip_1upmq_58`,legend:`_legend_1upmq_74`,legendLabel:`_legendLabel_1upmq_81`,legendCell:`_legendCell_1upmq_89`},oo=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],so=[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],co=28,lo=20,uo=[`var(--gnome-card-shade-color, rgba(0,0,0,0.07))`,`var(--gnome-green-1, #8ff0a4)`,`var(--gnome-green-2, #57e389)`,`var(--gnome-green-4, #2ec27e)`,`var(--gnome-green-5, #26a269)`];function fo(e){return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,`0`)}-${String(e.getDate()).padStart(2,`0`)}`}function po(e){let[t,n,r]=e.split(`-`).map(Number);return new Date(t,n-1,r)}function mo(e){return po(e).toLocaleDateString(`en-US`,{weekday:`long`,year:`numeric`,month:`long`,day:`numeric`})}function ho({data:n,maxLevel:r=4,colorScale:i,cellSize:a=12,cellGap:o=3,weekStartDay:s=1,showMonthLabels:c=!0,showDayLabels:l=!0,showLegend:u=!0,weeks:d=52,ariaLabel:f=`Contribution graph`,onDayClick:p,tooltipContent:m,className:h}){let g=a+o,_=(0,t.useRef)(null),v=(0,t.useRef)(null),y=i??uo,[b,x]=(0,t.useState)({col:0,row:0}),[S,C]=(0,t.useState)(null),w=(0,t.useMemo)(()=>{let e=new Map;for(let t of n)e.set(t.date,t.count);return e},[n]),T=(0,t.useMemo)(()=>Math.max(1,...n.map(e=>e.count)),[n]),{grid:E,monthLabels:D}=(0,t.useMemo)(()=>{let e=new Date;e.setHours(0,0,0,0);let t=(e.getDay()-s+7)%7,n=new Date(e);n.setDate(e.getDate()-t);let i=new Date(n);i.setDate(n.getDate()-(d-1)*7);let a=[],o=[],c=-1;for(let t=0;t<d;t++){let n=new Date(i);n.setDate(i.getDate()+t*7),n.getMonth()!==c&&(o.push({col:t,month:oo[n.getMonth()]}),c=n.getMonth());let s=[];for(let n=0;n<7;n++){let a=new Date(i);a.setDate(i.getDate()+t*7+n);let o=a>e,c=fo(a),l=o?0:w.get(c)??0,u=l===0?0:Math.min(r,Math.ceil(l/T*r));s.push({iso:c,count:l,level:u,future:o})}a.push(s)}return{grid:a,monthLabels:o}},[w,T,r,d,s]),O=(0,t.useMemo)(()=>[1,3,5].map(e=>({row:(e-s+7)%7,label:so[e]})),[s]),k=l?co:0,A=c?lo:0,ee=k+d*g-o,te=A+7*g-o,ne=Math.min(4,Math.floor(a/3));function re(e,t){let n=Math.max(0,Math.min(d-1,e)),r=Math.max(0,Math.min(6,t));x({col:n,row:r}),_.current?.querySelector(`[data-col="${n}"][data-row="${r}"]`)?.focus()}function ie(e,t,n){let r={ArrowRight:[t+1,n],ArrowLeft:[t-1,n],ArrowDown:[t,n+1],ArrowUp:[t,n-1]};if(r[e.key])e.preventDefault(),re(...r[e.key]);else if(e.key===`Enter`||e.key===` `){e.preventDefault();let r=E[t]?.[n];r&&!r.future&&p?.({date:r.iso,count:r.count})}}function ae(e,t){let n=v.current;if(!n)return;let r=n.getBoundingClientRect(),i=e.currentTarget.getBoundingClientRect();C({x:i.left-r.left+a/2,y:i.top-r.top,text:t})}function oe(e){return e.future?y[0]:y[Math.min(e.level,y.length-1)]??y[y.length-1]}function se(e){return e.future?mo(e.iso):m?.({date:e.iso,count:e.count})??`${e.count} contribution${e.count===1?``:`s`} on ${mo(e.iso)}`}return(0,e.jsxs)(`div`,{ref:v,className:[Q.wrapper,h].filter(Boolean).join(` `),children:[(0,e.jsxs)(`svg`,{ref:_,width:ee,height:te,className:Q.svg,"aria-label":f,role:`img`,children:[c&&D.map(({col:t,month:n})=>(0,e.jsx)(`text`,{x:k+t*g,y:12,className:Q.label,children:n},`m-${t}`)),l&&O.map(({row:t,label:n})=>(0,e.jsx)(`text`,{x:0,y:A+t*g+a-1,className:Q.label,children:n},`d-${t}`)),(0,e.jsx)(`g`,{role:`grid`,"aria-label":f,children:E.map((t,n)=>(0,e.jsx)(`g`,{role:`row`,children:t.map((t,r)=>{let i=se(t),o=b.col===n&&b.row===r;return(0,e.jsx)(`rect`,{"data-col":n,"data-row":r,x:k+n*g,y:A+r*g,width:a,height:a,rx:ne,fill:oe(t),opacity:t.future?.35:1,className:Q.cell,role:`gridcell`,"aria-label":i,"aria-disabled":t.future||void 0,tabIndex:o?0:-1,onClick:()=>!t.future&&p?.({date:t.iso,count:t.count}),onKeyDown:e=>ie(e,n,r),onFocus:()=>x({col:n,row:r}),onMouseEnter:e=>ae(e,i),onMouseLeave:()=>C(null)},`${n}-${r}`)})},n))})]}),S&&(0,e.jsx)(`div`,{className:Q.tooltip,style:{left:S.x,top:S.y},role:`tooltip`,children:S.text}),u&&(0,e.jsxs)(`div`,{className:Q.legend,children:[(0,e.jsx)(`span`,{className:Q.legendLabel,children:`Less`}),Array.from({length:r+1},(t,n)=>(0,e.jsx)(`svg`,{width:a,height:a,"aria-hidden":`true`,className:Q.legendCell,children:(0,e.jsx)(`rect`,{width:a,height:a,rx:ne,fill:y[Math.min(n,y.length-1)]})},n)),(0,e.jsx)(`span`,{className:Q.legendLabel,children:`More`})]})]})}var $={outer:`_outer_1pg3h_3`,scroll:`_scroll_1pg3h_13`,table:`_table_1pg3h_20`,thead:`_thead_1pg3h_28`,th:`_th_1pg3h_28`,headerLabel:`_headerLabel_1pg3h_48`,sortBtn:`_sortBtn_1pg3h_55`,sortBtnActive:`_sortBtnActive_1pg3h_84`,sortActive:`_sortActive_1pg3h_89`,sortNeutral:`_sortNeutral_1pg3h_93`,tbody:`_tbody_1pg3h_99`,row:`_row_1pg3h_105`,rowSelectable:`_rowSelectable_1pg3h_114`,rowSelected:`_rowSelected_1pg3h_126`,td:`_td_1pg3h_144`,alignStart:`_alignStart_1pg3h_156`,alignCenter:`_alignCenter_1pg3h_160`,alignEnd:`_alignEnd_1pg3h_164`,checkboxCol:`_checkboxCol_1pg3h_170`,checkbox:`_checkbox_1pg3h_170`,emptyCell:`_emptyCell_1pg3h_186`,emptyLabel:`_emptyLabel_1pg3h_191`},go={start:$.alignStart,center:$.alignCenter,end:$.alignEnd};function _o({direction:t}){return(0,e.jsx)(`svg`,{width:`10`,height:`10`,viewBox:`0 0 10 10`,"aria-hidden":`true`,className:t?$.sortActive:$.sortNeutral,children:t===`asc`?(0,e.jsx)(`path`,{d:`M5 2 L9 8 L1 8 Z`,fill:`currentColor`}):t===`desc`?(0,e.jsx)(`path`,{d:`M5 8 L1 2 L9 2 Z`,fill:`currentColor`}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(`path`,{d:`M5 1 L8 5 L2 5 Z`,fill:`currentColor`,opacity:`0.4`}),(0,e.jsx)(`path`,{d:`M5 9 L2 5 L8 5 Z`,fill:`currentColor`,opacity:`0.4`})]})})}function vo({columns:n,rows:r,rowKey:i,selectionMode:a=`none`,selectedRows:o=[],onSelectionChange:s,sortState:c,onSort:l,height:u,emptyState:d,className:f,ariaLabel:p}){let m=(0,t.useRef)(null),[h,g]=(0,t.useState)(0),_=new Set(o),v=a===`multiple`,y=n.length+(v?1:0);function b(e){l&&l(e,c?.columnId===e&&c.direction===`asc`?`desc`:`asc`)}function x(e){if(!(a===`none`||!s))if(a===`single`)s(_.has(e)?[]:[e]);else{let t=new Set(_);t.has(e)?t.delete(e):t.add(e),s([...t])}}function S(e,t,n){let i=m.current?.querySelectorAll(`tr`)??[];if(e.key===`ArrowDown`){e.preventDefault();let n=Math.min(r.length-1,t+1);g(n),i[n]?.focus()}else if(e.key===`ArrowUp`){e.preventDefault();let n=Math.max(0,t-1);g(n),i[n]?.focus()}else (e.key===` `||e.key===`Enter`)&&(e.preventDefault(),x(n))}function C(e){s&&s(e?r.map(i):[])}let w=u?{height:typeof u==`number`?`${u}px`:u}:{};return(0,e.jsx)(`div`,{className:[$.outer,f].filter(Boolean).join(` `),children:(0,e.jsx)(`div`,{className:$.scroll,style:w,children:(0,e.jsxs)(`table`,{className:$.table,role:`grid`,"aria-label":p,"aria-multiselectable":a===`multiple`||void 0,children:[(0,e.jsx)(`thead`,{className:$.thead,children:(0,e.jsxs)(`tr`,{children:[v&&(0,e.jsx)(`th`,{className:[$.th,$.checkboxCol].join(` `),children:(0,e.jsx)(`input`,{type:`checkbox`,className:$.checkbox,checked:r.length>0&&o.length===r.length,ref:e=>{e&&(e.indeterminate=o.length>0&&o.length<r.length)},onChange:e=>C(e.target.checked),"aria-label":`Select all rows`})}),n.map(t=>{let n=c?.columnId===t.id;return(0,e.jsx)(`th`,{className:[$.th,t.align?go[t.align]:null].filter(Boolean).join(` `),style:t.width?{width:t.width}:void 0,"aria-sort":n?c.direction===`asc`?`ascending`:`descending`:t.sortable?`none`:void 0,children:t.sortable&&l?(0,e.jsxs)(`button`,{type:`button`,className:[$.sortBtn,n?$.sortBtnActive:null].filter(Boolean).join(` `),onClick:()=>b(t.id),children:[(0,e.jsx)(`span`,{children:t.header}),(0,e.jsx)(_o,{direction:n?c.direction:null})]}):(0,e.jsx)(`span`,{className:$.headerLabel,children:t.header})},t.id)})]})}),(0,e.jsx)(`tbody`,{ref:m,className:$.tbody,children:r.length===0?(0,e.jsx)(`tr`,{children:(0,e.jsx)(`td`,{colSpan:y,className:$.emptyCell,children:d??(0,e.jsx)(`span`,{className:$.emptyLabel,children:`No items`})})}):r.map((t,r)=>{let o=i(t),s=_.has(o);return(0,e.jsxs)(`tr`,{className:[$.row,s?$.rowSelected:null,a===`none`?null:$.rowSelectable].filter(Boolean).join(` `),role:`row`,"aria-selected":a===`none`?void 0:s,tabIndex:h===r?0:-1,onClick:()=>x(o),onKeyDown:e=>S(e,r,o),onFocus:()=>g(r),children:[v&&(0,e.jsx)(`td`,{className:[$.td,$.checkboxCol].join(` `),children:(0,e.jsx)(`input`,{type:`checkbox`,className:$.checkbox,checked:s,onChange:()=>x(o),onClick:e=>e.stopPropagation(),tabIndex:-1,"aria-label":`Select row ${r+1}`})}),n.map(n=>(0,e.jsx)(`td`,{className:[$.td,n.align?go[n.align]:null].filter(Boolean).join(` `),role:`gridcell`,children:n.cell(t,r)},n.id))]},o)})})]})})})}var yo={terminal:`_terminal_1gr0s_3`,pre:`_pre_1gr0s_18`,line:`_line_1gr0s_25`,success:`_success_1gr0s_41`,warning:`_warning_1gr0s_45`,destructive:`_destructive_1gr0s_49`};function bo({lines:n,variant:r=`default`,maxLines:i=500,autoScroll:a=!0,className:o,...s}){let c=(0,t.useRef)(null),l=n.slice(-i);return(0,t.useEffect)(()=>{a&&c.current?.scrollIntoView({block:`nearest`})},[l.length,a]),(0,e.jsx)(`div`,{className:[yo.terminal,yo[r],o].filter(Boolean).join(` `),...s,children:(0,e.jsxs)(`pre`,{className:yo.pre,children:[l.map((t,n)=>(0,e.jsx)(`div`,{className:yo.line,children:t},n)),(0,e.jsx)(`div`,{ref:c})]})})}exports.AboutDialog=zn,exports.ActionRow=Rt,exports.Avatar=D,exports.Badge=Te,exports.Banner=ye,exports.Bin=wa,exports.Blockquote=i,exports.BottomSheet=ba,exports.Box=Or,exports.BoxedList=Bt,exports.BreakpointBin=ii,exports.Button=o,exports.ButtonContent=Ea,exports.ButtonRow=oi,exports.Card=b,exports.Carousel=Ca,exports.CarouselIndicatorDots=xa,exports.CarouselIndicatorLines=Sa,exports.CheckRow=wi,exports.Checkbox=ne,exports.Chip=Mr,exports.Clamp=gr,exports.ColumnView=vo,exports.ComboRow=qi,exports.ContributionGraph=ho,exports.CountDownTimer=De,exports.Dialog=dn,exports.Dropdown=ir,exports.EntryRow=Ji,exports.ExpanderRow=gi,exports.Footer=Ce,exports.Frame=hi,exports.GNOME_BREAKPOINTS=ze,exports.HeaderBar=xe,exports.Icon=j,exports.InlineViewSwitcher=bi,exports.InlineViewSwitcherItem=xi,exports.Link=Sr,exports.LinkedGroup=pi,exports.NavigationPage=ua,exports.NavigationSplitView=_r,exports.NavigationView=da,exports.OverlaySplitView=vr,exports.PasswordEntryRow=Xi,exports.PathBar=ao,exports.Popover=mr,exports.PreferencesDialog=no,exports.PreferencesGroup=Fa,exports.PreferencesPage=La,exports.ProgressBar=ce,exports.RadioButton=oe,exports.SearchBar=Ie,exports.Separator=k,exports.ShortcutLabel=ka,exports.ShortcutsDialog=$r,exports.Sidebar=Ct,exports.SidebarCollapsedContext=vt,exports.SidebarItem=At,exports.SidebarSection=Tt,exports.Slider=lr,exports.Spacer=di,exports.SpinButton=Pt,exports.SpinRow=$i,exports.Spinner=S,exports.SplitButton=ci,exports.StatusPage=Re,exports.Switch=ee,exports.SwitchRow=Ci,exports.TabBar=Ft,exports.TabItem=It,exports.TabPanel=Lt,exports.TerminalView=bo,exports.Text=g,exports.TextField=ie,exports.Timeline=ro,exports.Toast=$t,exports.Toaster=en,exports.ToggleGroup=Er,exports.ToggleGroupItem=Dr,exports.Toolbar=ui,exports.ToolbarView=ja,exports.Tooltip=kt,exports.ViewSwitcher=Ht,exports.ViewSwitcherBar=br,exports.ViewSwitcherItem=Ut,exports.ViewSwitcherSidebar=ni,exports.ViewSwitcherSidebarItem=ri,exports.WindowTitle=Na,exports.WrapBox=Ar,exports.useBreakpoint=Be,exports.useNavigation=la,exports.useSidebarCollapsed=yt;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require(`react/jsx-runtime`),t=require(`react`),n=require(`react-dom`);var r={blockquote:`_blockquote_j7x50_3`,body:`_body_j7x50_15`,icon:`_icon_j7x50_21`,content:`_content_j7x50_28`,footer:`_footer_j7x50_36`,cite:`_cite_j7x50_42`,default:`_default_j7x50_48`,info:`_info_j7x50_52`,warning:`_warning_j7x50_61`,error:`_error_j7x50_70`,success:`_success_j7x50_79`};function i({variant:t=`default`,icon:n,cite:i,children:a,className:o,...s}){return(0,e.jsxs)(`blockquote`,{className:[r.blockquote,r[t],o].filter(Boolean).join(` `),...s,children:[(0,e.jsxs)(`div`,{className:r.body,children:[n&&(0,e.jsx)(`span`,{className:r.icon,"aria-hidden":`true`,children:n}),(0,e.jsx)(`p`,{className:r.content,children:a})]}),i!==void 0&&(0,e.jsx)(`footer`,{className:r.footer,children:(0,e.jsx)(`cite`,{className:r.cite,children:i})})]})}var a={button:`_button_1qgdy_1`,pill:`_pill_1qgdy_52`,circular:`_circular_1qgdy_59`,default:`_default_1qgdy_71`,suggested:`_suggested_1qgdy_105`,destructive:`_destructive_1qgdy_120`,flat:`_flat_1qgdy_135`,raised:`_raised_1qgdy_150`,osd:`_osd_1qgdy_184`,sm:`_sm_1qgdy_228`,lg:`_lg_1qgdy_235`};function o({variant:t=`default`,size:n=`md`,shape:r=`default`,osd:i=!1,leadingIcon:o,trailingIcon:s,children:c,className:l,...u}){return(0,e.jsxs)(`button`,{className:[a.button,a[t],n===`md`?null:a[n],r===`default`?null:a[r],i?a.osd:null,l].filter(Boolean).join(` `),...u,children:[o,c,s]})}var s=`_text_102e3_1`,c=`_heading_102e3_41`,l=`_body_102e3_48`,u=`_document_102e3_55`,d=`_caption_102e3_62`,f=`_monospace_102e3_78`,p=`_numeric_102e3_85`,m={text:s,"large-title":`_large-title_102e3_9`,"title-1":`_title-1_102e3_16`,"title-2":`_title-2_102e3_22`,"title-3":`_title-3_102e3_28`,"title-4":`_title-4_102e3_34`,heading:c,body:l,document:u,caption:d,"caption-heading":`_caption-heading_102e3_69`,monospace:f,numeric:p,"color-default":`_color-default_102e3_95`,"color-dim":`_color-dim_102e3_99`,"color-accent":`_color-accent_102e3_103`,"color-destructive":`_color-destructive_102e3_107`,"color-success":`_color-success_102e3_111`,"color-warning":`_color-warning_102e3_115`,"color-error":`_color-error_102e3_119`},h={"large-title":`h1`,"title-1":`h1`,"title-2":`h2`,"title-3":`h3`,"title-4":`h4`,heading:`h3`,body:`p`,document:`p`,caption:`span`,"caption-heading":`span`,monospace:`code`,numeric:`span`};function g({variant:t=`body`,color:n=`default`,as:r,className:i,children:a,...o}){return(0,e.jsx)(r??h[t],{className:[m.text,m[t],m[`color-${n}`],i].filter(Boolean).join(` `),...o,children:a})}var _=`_card_7f351_1`,v=`_interactive_7f351_19`,y={card:_,"padding-none":`_padding-none_7f351_12`,"padding-sm":`_padding-sm_7f351_13`,"padding-md":`_padding-md_7f351_14`,"padding-lg":`_padding-lg_7f351_15`,interactive:v};function b({interactive:t=!1,padding:n=`md`,as:r,className:i,children:a,...o}){return(0,e.jsx)(r??(t?`button`:`div`),{className:[y.card,y[`padding-${n}`],t?y.interactive:null,i].filter(Boolean).join(` `),...o,children:a})}var x={spinner:`_spinner_101bb_3`,spin:`_spin_101bb_3`,sm:`_sm_101bb_15`,md:`_md_101bb_21`,lg:`_lg_101bb_27`};function S({size:t=`md`,label:n=`Loading…`,className:r,...i}){let a=[x.spinner,x[t],r].filter(Boolean).join(` `);return(0,e.jsx)(`span`,{role:`status`,"aria-label":n||void 0,"aria-hidden":n===``?!0:void 0,className:a,...i})}var C={avatar:`_avatar_1f2cd_3`,sm:`_sm_1f2cd_17`,md:`_md_1f2cd_22`,lg:`_lg_1f2cd_27`,xl:`_xl_1f2cd_32`,image:`_image_1f2cd_39`,initials:`_initials_1f2cd_48`,"color-blue":`_color-blue_1f2cd_64`,"color-green":`_color-green_1f2cd_65`,"color-yellow":`_color-yellow_1f2cd_66`,"color-orange":`_color-orange_1f2cd_72`,"color-red":`_color-red_1f2cd_73`,"color-purple":`_color-purple_1f2cd_74`,"color-brown":`_color-brown_1f2cd_75`,"color-teal":`_color-teal_1f2cd_76`,"color-slate":`_color-slate_1f2cd_77`},w=[`blue`,`green`,`yellow`,`orange`,`red`,`purple`,`brown`,`teal`,`slate`];function T(e){let t=0;for(let n=0;n<e.length;n++)t=t*31+e.charCodeAt(n)>>>0;return w[t%w.length]}function E(e){let t=e.trim().split(/\s+/).filter(Boolean);return t.length===0?``:t.length===1?t[0].charAt(0).toUpperCase():t[0].charAt(0).toUpperCase()+t[t.length-1].charAt(0).toUpperCase()}function D({name:t=``,src:n,alt:r,size:i=`md`,color:a,className:o,...s}){let c=a??(t?T(t):`blue`),l=E(t),u=[C.avatar,C[i],n?null:C[`color-${c}`],o].filter(Boolean).join(` `);return(0,e.jsx)(`span`,{role:`img`,"aria-label":r??t??`Avatar`,className:u,...s,children:n?(0,e.jsx)(`img`,{src:n,alt:r??t,className:C.image}):(0,e.jsx)(`span`,{"aria-hidden":`true`,className:C.initials,children:l})})}var O={separator:`_separator_w9b4s_3`,horizontal:`_horizontal_w9b4s_12`,vertical:`_vertical_w9b4s_20`};function k({orientation:t=`horizontal`,className:n,...r}){let i=[O.separator,t===`vertical`?O.vertical:O.horizontal,n].filter(Boolean).join(` `);return t===`vertical`?(0,e.jsx)(`div`,{role:`separator`,"aria-orientation":`vertical`,className:i,...r}):(0,e.jsx)(`hr`,{className:i,...r})}var A={switch:`_switch_1h6fk_3`};function ee({className:t,...n}){return(0,e.jsx)(`input`,{type:`checkbox`,role:`switch`,className:[A.switch,t].filter(Boolean).join(` `),...n})}var te={checkbox:`_checkbox_jnffk_3`};function ne({indeterminate:n=!1,className:r,...i}){let a=(0,t.useRef)(null);return(0,t.useEffect)(()=>{a.current&&(a.current.indeterminate=n)},[n]),(0,e.jsx)(`input`,{ref:a,type:`checkbox`,className:[te.checkbox,r].filter(Boolean).join(` `),...i})}var re={wrapper:`_wrapper_q91d8_3`,disabled:`_disabled_q91d8_9`,label:`_label_q91d8_15`,input:`_input_q91d8_25`,errorInput:`_errorInput_q91d8_74`,hint:`_hint_q91d8_89`,errorHint:`_errorHint_q91d8_97`};function ie({label:n,helperText:r,error:i,id:a,className:o,disabled:s,...c}){let l=(0,t.useId)(),u=a??l,d=`${u}-help`;return(0,e.jsxs)(`div`,{className:[re.wrapper,s?re.disabled:null].filter(Boolean).join(` `),children:[n&&(0,e.jsx)(`label`,{htmlFor:u,className:re.label,children:n}),(0,e.jsx)(`input`,{id:u,disabled:s,"aria-describedby":i||r?d:void 0,"aria-invalid":i?!0:void 0,className:[re.input,i?re.errorInput:null,o].filter(Boolean).join(` `),...c}),(i||r)&&(0,e.jsx)(`span`,{id:d,className:[re.hint,i?re.errorHint:null].filter(Boolean).join(` `),children:i??r})]})}var ae={radio:`_radio_1vybt_3`};function oe({className:t,...n}){return(0,e.jsx)(`input`,{type:`radio`,className:[ae.radio,t].filter(Boolean).join(` `),...n})}var se={track:`_track_endpr_3`,fill:`_fill_endpr_14`,accent:`_accent_endpr_23`,success:`_success_endpr_24`,warning:`_warning_endpr_25`,error:`_error_endpr_26`,indeterminate:`_indeterminate_endpr_30`,pulse:`_pulse_endpr_1`};function ce({value:t,variant:n=`accent`,className:r,"aria-label":i,"aria-labelledby":a,...o}){let s=t==null,c=s?void 0:Math.min(1,Math.max(0,t)),l=c===void 0?void 0:c*100;return(0,e.jsx)(`div`,{role:`progressbar`,"aria-label":i,"aria-labelledby":a,"aria-valuenow":c===void 0?void 0:Math.round(l),"aria-valuemin":s?void 0:0,"aria-valuemax":s?void 0:100,className:[se.track,r].filter(Boolean).join(` `),...o,children:(0,e.jsx)(`div`,{className:[se.fill,se[n],s?se.indeterminate:null].filter(Boolean).join(` `),style:s?void 0:{width:`${l}%`}})})}var le=`_banner_1x3b0_3`,ue=`_message_1x3b0_17`,de=`_actions_1x3b0_24`,fe=`_actionBtn_1x3b0_33`,pe=`_dismissBtn_1x3b0_55`,me=`_info_1x3b0_85`,he=`_warning_1x3b0_99`,ge=`_error_1x3b0_113`,_e=`_success_1x3b0_127`,ve={banner:le,message:ue,actions:de,actionBtn:fe,dismissBtn:pe,info:me,"actionBtn-info":`_actionBtn-info_1x3b0_90`,warning:he,"actionBtn-warning":`_actionBtn-warning_1x3b0_104`,error:ge,"actionBtn-error":`_actionBtn-error_1x3b0_118`,success:_e,"actionBtn-success":`_actionBtn-success_1x3b0_132`};function ye({variant:t=`info`,children:n,actionLabel:r,onAction:i,dismissible:a=!1,onDismiss:o,className:s,...c}){return(0,e.jsxs)(`div`,{role:`status`,"aria-live":`polite`,className:[ve.banner,ve[t],s].filter(Boolean).join(` `),...c,children:[(0,e.jsx)(`span`,{className:ve.message,children:n}),(r||a)&&(0,e.jsxs)(`span`,{className:ve.actions,children:[r&&(0,e.jsx)(`button`,{type:`button`,className:[ve.actionBtn,ve[`actionBtn-${t}`]].filter(Boolean).join(` `),onClick:i,children:r}),a&&(0,e.jsx)(`button`,{type:`button`,className:ve.dismissBtn,onClick:o,"aria-label":`Dismiss`,children:(0,e.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,"aria-hidden":`true`,fill:`currentColor`,children:(0,e.jsx)(`path`,{d:`M3.293 3.293a1 1 0 011.414 0L8 6.586l3.293-3.293a1 1 0 111.414 1.414L9.414 8l3.293 3.293a1 1 0 01-1.414 1.414L8 9.414l-3.293 3.293a1 1 0 01-1.414-1.414L6.586 8 3.293 4.707a1 1 0 010-1.414z`})})})]})]})}var be={headerBar:`_headerBar_1rr5r_3`,flat:`_flat_1rr5r_22`,slot:`_slot_1rr5r_29`,slotEnd:`_slotEnd_1rr5r_36`,titleSlot:`_titleSlot_1rr5r_42`,title:`_title_1rr5r_42`};function xe({title:t,start:n,end:r,flat:i=!1,className:a,...o}){return(0,e.jsxs)(`header`,{className:[be.headerBar,i?be.flat:null,a].filter(Boolean).join(` `),...o,children:[(0,e.jsx)(`div`,{className:be.slot,children:n}),(0,e.jsx)(`div`,{className:be.titleSlot,"aria-live":`polite`,children:typeof t==`string`?(0,e.jsx)(`span`,{className:be.title,children:t}):t}),(0,e.jsx)(`div`,{className:[be.slot,be.slotEnd].filter(Boolean).join(` `),children:r})]})}var Se={footer:`_footer_10xz9_3`,flat:`_flat_10xz9_23`,slot:`_slot_10xz9_29`,slotEnd:`_slotEnd_10xz9_36`,center:`_center_10xz9_42`};function Ce({start:t,end:n,children:r,flat:i=!1,className:a,...o}){return(0,e.jsxs)(`footer`,{className:[Se.footer,i?Se.flat:null,a].filter(Boolean).join(` `),...o,children:[(0,e.jsx)(`div`,{className:Se.slot,children:t}),r!=null&&(0,e.jsx)(`div`,{className:Se.center,children:r}),(0,e.jsx)(`div`,{className:[Se.slot,Se.slotEnd].filter(Boolean).join(` `),children:n})]})}var we={wrapper:`_wrapper_1apop_3`,badge:`_badge_1apop_11`,anchored:`_anchored_1apop_32`,dot:`_dot_1apop_41`,accent:`_accent_1apop_56`,success:`_success_1apop_61`,warning:`_warning_1apop_66`,error:`_error_1apop_71`,neutral:`_neutral_1apop_76`};function Te({variant:t=`accent`,dot:n=!1,children:r,anchor:i,className:a,...o}){let s=(0,e.jsx)(`span`,{className:[we.badge,we[t],n?we.dot:null,i?we.anchored:null,a].filter(Boolean).join(` `),...o,children:!n&&r});return i?(0,e.jsxs)(`span`,{className:we.wrapper,children:[i,s]}):s}var Ee={countdownTimer:`_countdownTimer_twhbs_3`,value:`_value_twhbs_25`,accent:`_accent_twhbs_34`,success:`_success_twhbs_46`,warning:`_warning_twhbs_58`,destructive:`_destructive_twhbs_70`,finished:`_finished_twhbs_82`};function De({start:n,end:r,format:i=`time`,variant:a=`accent`,action:o,className:s,...c}){let[l,u]=(0,t.useState)(null),[d,f]=(0,t.useState)(!1);if((0,t.useEffect)(()=>{let e=()=>{let e=new Date,t=new Date(r).getTime()-e.getTime();return t<=0?{days:0,hours:0,minutes:0,seconds:0,isFinished:!0}:{days:Math.floor(t/(1e3*60*60*24)),hours:Math.floor(t/(1e3*60*60)%24),minutes:Math.floor(t/1e3/60%60),seconds:Math.floor(t/1e3%60),isFinished:!1}};u(e());let t=setInterval(()=>{let t=e();u(t),t.isFinished&&!d&&(o?.(),f(!0))},1e3);return()=>clearInterval(t)},[r,o,d]),!l)return null;let p=()=>{if(i===`date`)return new Date(r).toLocaleDateString();let{days:e,hours:t,minutes:n,seconds:a,isFinished:o}=l;return o?`00:00:00`:i===`datetime`?`${new Date(r).toLocaleDateString()} ${`${String(t).padStart(2,`0`)}:${String(n).padStart(2,`0`)}:${String(a).padStart(2,`0`)}`}`:e>0?`${e}d ${String(t).padStart(2,`0`)}h ${String(n).padStart(2,`0`)}m`:`${String(t).padStart(2,`0`)}:${String(n).padStart(2,`0`)}:${String(a).padStart(2,`0`)}`},m=l.isFinished?`destructive`:a;return(0,e.jsx)(`div`,{className:[Ee.countdownTimer,Ee[m],l.isFinished?Ee.finished:null,s].filter(Boolean).join(` `),...c,children:(0,e.jsx)(`span`,{className:Ee.value,children:p()})})}var Oe={sm:12,md:16,lg:20};function j({icon:t,size:n=`md`,label:r,width:i,height:a,...o}){let s=Oe[n];return(0,e.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:t.viewBox,width:i??s,height:a??s,fill:`currentColor`,"aria-label":r,"aria-hidden":r?void 0:!0,role:r?`img`:void 0,focusable:`false`,...o,children:t.paths.map((t,n)=>(0,e.jsx)(`path`,{d:t.d,fillRule:t.fillRule,clipRule:t.clipRule},n))})}var ke={viewBox:`0 0 16 16`,paths:[{d:`m2.5 5 5.5 6 5.5-6z`,fillRule:`evenodd`}]},Ae={viewBox:`0 0 16 16`,paths:[{d:`M2.5 11 8 5l5.5 6z`,fillRule:`evenodd`}]},je={viewBox:`0 0 16 16`,paths:[{d:`M3.293 3.293a1 1 0 0 1 1.414 0L8 6.586l3.293-3.293a1 1 0 1 1 1.414 1.414L9.414 8l3.293 3.293a1 1 0 0 1-1.414 1.414L8 9.414l-3.293 3.293a1 1 0 0 1-1.414-1.414L6.586 8 3.293 4.707a1 1 0 0 1 0-1.414z`,fillRule:`evenodd`}]},Me={viewBox:`0 0 16 16`,paths:[{d:`M6.5 1a5.5 5.5 0 0 1 4.33 8.92l3.13 3.13-1.41 1.41-3.13-3.13A5.5 5.5 0 1 1 6.5 1zm0 2a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7z`,fillRule:`evenodd`}]},Ne={viewBox:`0 0 16 16`,paths:[{d:`M8 3C4.5 3 1.5 5.667 0 8c1.5 2.333 4.5 5 8 5s6.5-2.667 8-5c-1.5-2.333-4.5-5-8-5zm0 8a3 3 0 1 1 0-6 3 3 0 0 1 0 6zm0-4.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3z`,fillRule:`evenodd`}]},Pe={viewBox:`0 0 16 16`,paths:[{d:`M1.293 1.293a1 1 0 0 1 1.414 0l12 12a1 1 0 0 1-1.414 1.414l-1.88-1.88A8.8 8.8 0 0 1 8 13C4.5 13 1.5 10.333 0 8c.637-1.023 1.52-2.049 2.6-2.893L1.293 2.707a1 1 0 0 1 0-1.414zM5.03 6.444 7.09 8.505A1.5 1.5 0 0 0 9.494 6.91L7.432 4.848A3 3 0 0 0 5.03 6.444zM8 3c.645 0 1.27.083 1.867.237l-1.59 1.59A3 3 0 0 0 5.173 7.92L3.584 6.333C4.51 4.95 6.152 3 8 3zm5.4 2.107C14.48 5.951 15.363 6.977 16 8c-1.5 2.333-4.5 5-8 5a8.8 8.8 0 0 1-2.072-.249l1.538-1.538a3 3 0 0 0 3.703-3.703L12.81 5.87c.202.076.4.156.59.237z`,fillRule:`evenodd`}]},Fe={viewBox:`0 0 16 16`,paths:[{d:`M13.5 3 6 11.5 2.5 8 1 9.5l5 5 9-10z`,fillRule:`evenodd`}]},M={wrapper:`_wrapper_ld6g1_3`,open:`_open_ld6g1_13`,bar:`_bar_ld6g1_20`,disabled:`_disabled_ld6g1_31`,searchIcon:`_searchIcon_ld6g1_37`,input:`_input_ld6g1_47`,clearButton:`_clearButton_ld6g1_82`,filterRow:`_filterRow_ld6g1_124`,suggestionsPanel:`_suggestionsPanel_ld6g1_136`,suggestionsLoading:`_suggestionsLoading_ld6g1_160`,suggestionItem:`_suggestionItem_ld6g1_166`,suggestionItemActive:`_suggestionItemActive_ld6g1_176`,inline:`_inline_ld6g1_202`};function Ie({open:r,onClose:i,onClear:a,children:o,value:s,onChange:c,placeholder:l=`Search…`,disabled:u,inline:d=!1,className:f,suggestions:p,onSuggestionSelect:m,loadingSuggestions:h=!1,renderSuggestion:g,suggestionsLabel:_=`Suggestions`,...v}){let y=(0,t.useRef)(null),b=(0,t.useRef)(null),x=(0,t.useRef)(null),C=(0,t.useId)(),w=(0,t.useId)(),[T,E]=(0,t.useState)(-1),[D,O]=(0,t.useState)(null),k=(p?.length??0)>0,A=r&&(h||k);(0,t.useEffect)(()=>{E(-1)},[p]),(0,t.useEffect)(()=>{if(r){let e=requestAnimationFrame(()=>y.current?.focus());return()=>cancelAnimationFrame(e)}},[r]),(0,t.useEffect)(()=>{if(!A||!b.current){O(null);return}function e(){if(!b.current)return;let e=b.current.getBoundingClientRect();O({top:e.bottom,left:e.left,width:e.width})}return e(),window.addEventListener(`scroll`,e,{passive:!0,capture:!0}),window.addEventListener(`resize`,e,{passive:!0}),()=>{window.removeEventListener(`scroll`,e,{capture:!0}),window.removeEventListener(`resize`,e)}},[A]),(0,t.useEffect)(()=>{T<0||!x.current||x.current.children[T]?.scrollIntoView({block:`nearest`})},[T]);let ee=(0,t.useCallback)(e=>{if(A&&k&&p){if(e.key===`ArrowDown`){e.preventDefault(),E(e=>Math.min(e+1,p.length-1));return}if(e.key===`ArrowUp`){e.preventDefault(),E(e=>Math.max(e-1,-1));return}if(e.key===`Enter`&&T>=0){e.preventDefault(),m?.(p[T]);return}}e.key===`Escape`&&(e.preventDefault(),i?.()),v.onKeyDown?.(e)},[i,v,A,k,p,T,m]),te=s!==void 0&&s!==``,ne=T>=0&&p?.[T]?`${w}-${p[T].id}`:void 0,re=A&&D?(0,n.createPortal)((0,e.jsxs)(`ul`,{ref:x,role:`listbox`,"aria-label":_,id:C,className:M.suggestionsPanel,style:{top:D.top,left:D.left,width:D.width},onMouseDown:e=>e.preventDefault(),children:[h&&(0,e.jsx)(`li`,{role:`presentation`,className:M.suggestionsLoading,children:(0,e.jsx)(S,{size:`sm`,label:`Loading suggestions…`})}),!h&&p?.map((t,n)=>(0,e.jsx)(`li`,{id:`${w}-${t.id}`,role:`option`,"aria-selected":n===T,className:[M.suggestionItem,n===T?M.suggestionItemActive:null].filter(Boolean).join(` `),onMouseEnter:()=>E(n),onMouseLeave:()=>E(-1),onClick:()=>m?.(t),children:g?g(t):t.label},t.id))]}),document.body):null;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(`div`,{ref:b,className:[M.wrapper,r?M.open:null,f].filter(Boolean).join(` `),"aria-hidden":!r,children:[(0,e.jsxs)(`div`,{className:[M.bar,d?M.inline:null,u?M.disabled:null].filter(Boolean).join(` `),children:[(0,e.jsx)(`span`,{className:M.searchIcon,"aria-hidden":!0,children:(0,e.jsx)(j,{icon:Me,size:`md`})}),(0,e.jsx)(`input`,{ref:y,type:`search`,role:`combobox`,"aria-autocomplete":`list`,"aria-expanded":A,"aria-controls":A?C:void 0,"aria-activedescendant":ne,value:s,onChange:c,placeholder:l,disabled:u,tabIndex:r?void 0:-1,className:M.input,onKeyDown:ee,...v}),te&&(0,e.jsx)(`button`,{type:`button`,className:M.clearButton,"aria-label":`Clear search`,tabIndex:r?void 0:-1,disabled:u,onClick:()=>{a?.(),y.current?.focus()},children:(0,e.jsx)(j,{icon:je,size:`md`})})]}),o&&(0,e.jsx)(`div`,{className:M.filterRow,children:o})]}),typeof document<`u`&&re]})}var Le={page:`_page_cb4hq_3`,iconWrap:`_iconWrap_cb4hq_20`,title:`_title_cb4hq_33`,description:`_description_cb4hq_44`,actions:`_actions_cb4hq_58`,compact:`_compact_cb4hq_68`};function Re({icon:t,iconNode:n,title:r,description:i,children:a,compact:o=!1,className:s,...c}){let l=o?64:128,u=t?(0,e.jsx)(j,{icon:t,width:l,height:l,"aria-hidden":!0}):n??null;return(0,e.jsxs)(`div`,{className:[Le.page,o?Le.compact:null,s].filter(Boolean).join(` `),...c,children:[u&&(0,e.jsx)(`div`,{className:Le.iconWrap,"aria-hidden":`true`,children:u}),(0,e.jsx)(`p`,{className:Le.title,children:r}),i&&(0,e.jsx)(`p`,{className:Le.description,children:i}),a&&(0,e.jsx)(`div`,{className:Le.actions,children:a})]})}var ze={narrow:400,medium:550,wide:860};function Be(){let e=()=>{let e=typeof window<`u`?window.innerWidth:1280;return{isNarrow:e<=ze.narrow,isMedium:e<=ze.medium,isWide:e<=ze.wide,width:e}},[n,r]=(0,t.useState)(e);return(0,t.useEffect)(()=>{let t=()=>r(e());return window.addEventListener(`resize`,t,{passive:!0}),()=>window.removeEventListener(`resize`,t)},[]),n}var Ve=`_sidebar_537se_3`,He=`_section_537se_21`,Ue=`_sectionHeader_537se_35`,We=`_sectionHeaderIcon_537se_71`,Ge=`_sectionTitle_537se_78`,Ke=`_sectionChevron_537se_94`,qe=`_sectionBody_537se_104`,Je=`_sectionBodyCollapsed_537se_110`,Ye=`_sectionBodyInner_537se_114`,Xe=`_list_537se_120`,Ze=`_item_537se_131`,Qe=`_itemBtn_537se_137`,$e=`_active_537se_184`,et=`_itemIcon_537se_200`,tt=`_itemLabel_537se_213`,nt=`_itemSuffix_537se_223`,rt=`_contextMenu_537se_232`,it=`_contextMenuItem_537se_256`,at=`_contextMenuDestructive_537se_292`,ot=`_searchWrap_537se_298`,st=`_variantBlue_537se_309`,ct=`_variantGreen_537se_318`,lt=`_variantRed_537se_327`,ut=`_variantYellow_537se_336`,dt=`_variantBlack_537se_345`,ft=`_variantTransparent_537se_354`,pt=`_variantBlurred_537se_359`,mt=`_pageMode_537se_375`,ht=`_dragOver_537se_382`,gt=`_collapsed_537se_390`,_t=`_itemCollapsed_537se_401`,N={sidebar:Ve,section:He,sectionHeader:Ue,sectionHeaderIcon:We,sectionTitle:Ge,sectionChevron:Ke,sectionBody:qe,sectionBodyCollapsed:Je,sectionBodyInner:Ye,list:Xe,item:Ze,itemBtn:Qe,active:$e,itemIcon:et,itemLabel:tt,itemSuffix:nt,contextMenu:rt,"menu-in":`_menu-in_537se_1`,contextMenuItem:it,contextMenuDestructive:at,searchWrap:ot,variantBlue:st,variantGreen:ct,variantRed:lt,variantYellow:ut,variantBlack:dt,variantTransparent:ft,variantBlurred:pt,pageMode:mt,dragOver:ht,collapsed:gt,itemCollapsed:_t},vt=(0,t.createContext)(!1);function yt(){return(0,t.useContext)(vt)}var bt=(0,t.createContext)(``);function xt(e,n){let r=0;return t.Children.forEach(e,e=>{if(!(0,t.isValidElement)(e))return;let i=e.props;typeof i.label==`string`?i.label.toLowerCase().includes(n.toLowerCase())&&r++:i.children&&(r+=xt(i.children,n))}),r}var St={blue:`variantBlue`,green:`variantGreen`,red:`variantRed`,yellow:`variantYellow`,black:`variantBlack`,transparent:`variantTransparent`,blurred:`variantBlurred`};function Ct({children:n,collapsed:r=!1,searchable:i,filter:a,onFilterChange:o,mode:s,variant:c=`classic`,className:l,...u}){let[d,f]=(0,t.useState)(``),{isNarrow:p}=Be(),m=a!==void 0,h=m?a:d,g=e=>{m||f(e),o?.(e)},_=h.length>0,v=s??(p?`page`:`sidebar`),y=!_||xt(n,h)>0;return(0,e.jsx)(vt.Provider,{value:r,children:(0,e.jsx)(bt.Provider,{value:h,children:(0,e.jsxs)(`nav`,{className:[N.sidebar,r?N.collapsed:null,v===`page`?N.pageMode:null,c===`classic`?null:N[St[c]],l].filter(Boolean).join(` `),...u,children:[i&&(0,e.jsx)(`div`,{className:N.searchWrap,children:(0,e.jsx)(Ie,{open:!0,value:h,onChange:e=>g(e.target.value),onClose:()=>g(``),onClear:()=>g(``),inline:!0})}),_&&!y?(0,e.jsx)(Re,{title:`No Results`,description:`No items match your search.`,compact:!0}):n]})})})}function wt(e,n){let r=0;return t.Children.forEach(e,e=>{if(!(0,t.isValidElement)(e))return;let i=e.props;typeof i.label==`string`?i.label.toLowerCase().includes(n.toLowerCase())&&r++:i.children&&(r+=wt(i.children,n))}),r}var Tt=(0,t.forwardRef)(function({title:n,icon:r,collapsible:i=!1,defaultOpen:a=!0,open:o,onOpenChange:s,children:c,className:l,...u},d){let[f,p]=(0,t.useState)(a),m=o!==void 0,h=m?o:f,g=yt(),_=(0,t.useContext)(bt),v=(0,t.useId)(),y=e=>{m||p(e),s?.(e)};if((0,t.useImperativeHandle)(d,()=>({expand:()=>y(!0),collapse:()=>y(!1),toggle:()=>y(!h)})),!(_.length===0||wt(c,_)>0))return null;let b=g?!0:h,x=!!(n||r||i&&!g);return(0,e.jsxs)(`section`,{className:[N.section,l].filter(Boolean).join(` `),...u,children:[x&&(i&&!g?(0,e.jsxs)(`button`,{type:`button`,className:N.sectionHeader,onClick:()=>y(!h),"aria-expanded":h,"aria-controls":v,children:[r&&(0,e.jsx)(`span`,{className:N.sectionHeaderIcon,children:(0,e.jsx)(j,{icon:r,size:`sm`,"aria-hidden":!0})}),n&&(0,e.jsx)(`span`,{className:N.sectionTitle,children:n}),(0,e.jsx)(`span`,{className:N.sectionChevron,children:(0,e.jsx)(j,{icon:h?Ae:ke,size:`sm`,"aria-hidden":!0})})]}):(0,e.jsxs)(`div`,{className:N.sectionHeader,children:[r&&(0,e.jsx)(`span`,{className:N.sectionHeaderIcon,children:(0,e.jsx)(j,{icon:r,size:`sm`,"aria-hidden":!0})}),n&&(0,e.jsx)(`span`,{className:N.sectionTitle,children:n})]})),(0,e.jsx)(`div`,{id:v,className:[N.sectionBody,b?null:N.sectionBodyCollapsed].filter(Boolean).join(` `),"aria-hidden":!b||void 0,children:(0,e.jsx)(`div`,{className:N.sectionBodyInner,children:(0,e.jsx)(`ul`,{role:`list`,className:N.list,children:c})})})]})}),Et={tooltip:`_tooltip_y4het_3`,visible:`_visible_y4het_29`,top:`_top_y4het_55`,bottom:`_bottom_y4het_62`,left:`_left_y4het_69`,right:`_right_y4het_76`},Dt=6;function Ot(e,t,n){let r=window.innerWidth,i=window.innerHeight,a=[n,n===`top`||n===`bottom`?n===`top`?`bottom`:`top`:n===`left`?`right`:`left`,`top`,`bottom`,`left`,`right`];for(let n of a){let a=0,o=0;n===`top`?(a=e.top-t.height-Dt,o=e.left+e.width/2-t.width/2):n===`bottom`?(a=e.bottom+Dt,o=e.left+e.width/2-t.width/2):n===`left`?(a=e.top+e.height/2-t.height/2,o=e.left-t.width-Dt):(a=e.top+e.height/2-t.height/2,o=e.right+Dt);let s=o>=8&&o+t.width<=r-8,c=a>=8&&a+t.height<=i-8;if(s&&c)return{top:Math.max(8,Math.min(a,i-t.height-8)),left:Math.max(8,Math.min(o,r-t.width-8)),placement:n}}let o=0,s=0;return n===`top`&&(o=e.top-t.height-Dt,s=e.left+e.width/2-t.width/2),n===`bottom`&&(o=e.bottom+Dt,s=e.left+e.width/2-t.width/2),n===`left`&&(o=e.top+e.height/2-t.height/2,s=e.left-t.width-Dt),n===`right`&&(o=e.top+e.height/2-t.height/2,s=e.right+Dt),{top:Math.max(8,Math.min(o,i-t.height-8)),left:Math.max(8,Math.min(s,window.innerWidth-t.width-8)),placement:n}}function kt({label:r,placement:i=`top`,delay:a=500,children:o}){let s=(0,t.useId)(),[c,l]=(0,t.useState)(!1),[u,d]=(0,t.useState)(null),f=(0,t.useRef)(null),p=(0,t.useRef)(null),m=(0,t.useRef)(null),h=()=>{m.current&&=(clearTimeout(m.current),null)},g=(0,t.useCallback)(()=>{!f.current||!p.current||d(Ot(f.current.getBoundingClientRect(),p.current.getBoundingClientRect(),i))},[i]);(0,t.useEffect)(()=>{if(c)return g(),window.addEventListener(`scroll`,g,{passive:!0,capture:!0}),window.addEventListener(`resize`,g,{passive:!0}),()=>{window.removeEventListener(`scroll`,g,{capture:!0}),window.removeEventListener(`resize`,g)}},[c,g]);let _=(0,t.useCallback)(()=>{h(),m.current=setTimeout(()=>l(!0),a)},[a]),v=(0,t.useCallback)(()=>{h(),l(!1),d(null)},[]);(0,t.useEffect)(()=>{c&&g()},[c,g]),(0,t.useEffect)(()=>{if(!c)return;let e=e=>{e.key===`Escape`&&v()};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[c,v]);let y=(0,t.cloneElement)(o,{ref:f,"aria-describedby":s,onMouseEnter:e=>{_(),o.props.onMouseEnter?.(e)},onMouseLeave:e=>{v(),o.props.onMouseLeave?.(e)},onFocus:e=>{_(),o.props.onFocus?.(e)},onBlur:e=>{v(),o.props.onBlur?.(e)}}),b=(0,e.jsx)(`div`,{ref:p,id:s,role:`tooltip`,className:[Et.tooltip,u?Et[u.placement]:null,c&&u?Et.visible:null].filter(Boolean).join(` `),style:u?{top:u.top,left:u.left}:{visibility:`hidden`,top:-9999,left:-9999},children:r});return(0,e.jsxs)(e.Fragment,{children:[y,typeof document<`u`?(0,n.createPortal)(b,document.body):b]})}function At({label:r,icon:i,active:a=!1,suffix:o,badge:s,tooltip:c,menuItems:l,onDrop:u,acceptTypes:d,className:f,...p}){let m=yt(),h=(0,t.useContext)(bt),g=o??s,_=m?c??r:c,v=h.length>0&&!r.toLowerCase().includes(h.toLowerCase()),[y,b]=(0,t.useState)(!1),x=e=>{u&&(d?.length&&!d.some(t=>e.dataTransfer.types.includes(t))||(e.preventDefault(),b(!0)))},S=()=>b(!1),C=e=>{u&&(e.preventDefault(),b(!1),u(e))},[w,T]=(0,t.useState)(null),E=(0,t.useRef)(null),D=(0,t.useCallback)((e,t)=>T({x:e,y:t}),[]),O=(0,t.useCallback)(()=>T(null),[]);(0,t.useEffect)(()=>{if(!w)return;let e=e=>{E.current&&!E.current.contains(e.target)&&O()},t=e=>{e.key===`Escape`&&O()};return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}},[w,O]);let k=e=>{l?.length&&(e.preventDefault(),D(e.clientX,e.clientY))},A=e=>{if(e.key===`ContextMenu`||e.key===`F10`&&e.shiftKey){if(!l?.length)return;e.preventDefault();let t=e.currentTarget.getBoundingClientRect();D(t.right,t.top)}},ee=(0,e.jsxs)(`button`,{type:`button`,"aria-current":a?`page`:void 0,"aria-label":m?r:void 0,className:[N.itemBtn,a?N.active:null,m?N.itemCollapsed:null,y?N.dragOver:null,f].filter(Boolean).join(` `),onContextMenu:k,onKeyDown:A,onDragOver:x,onDragLeave:S,onDrop:C,...p,children:[i&&(0,e.jsx)(`span`,{className:N.itemIcon,children:(0,e.jsx)(j,{icon:i,size:`md`,"aria-hidden":!0})}),!m&&(0,e.jsx)(`span`,{className:N.itemLabel,children:r}),!m&&g&&(0,e.jsx)(`span`,{className:N.itemSuffix,children:g})]});return(0,e.jsxs)(`li`,{className:N.item,hidden:v||void 0,children:[_?(0,e.jsx)(kt,{label:_,placement:`right`,children:ee}):ee,w&&l?.length&&typeof document<`u`&&(0,n.createPortal)((0,e.jsx)(`div`,{ref:E,className:N.contextMenu,style:{top:w.y,left:w.x},role:`menu`,children:l.map(t=>(0,e.jsx)(`button`,{type:`button`,role:`menuitem`,disabled:t.disabled,className:[N.contextMenuItem,t.destructive?N.contextMenuDestructive:null].filter(Boolean).join(` `),onClick:()=>{t.onClick(),O()},children:t.label},t.label))}),document.body)]})}var jt={spin:`_spin_7d4yi_3`,disabled:`_disabled_7d4yi_36`,btn:`_btn_7d4yi_43`,value:`_value_7d4yi_96`};function Mt(e){let t=e.toString(),n=t.indexOf(`.`);return n===-1?0:t.length-n-1}function Nt(e,t,n){return Math.min(n,Math.max(t,e))}function Pt({value:n,onChange:r,min:i=0,max:a=100,step:o=1,decimals:s,disabled:c=!1,className:l,"aria-label":u,"aria-labelledby":d,...f}){let p=s??Mt(o),m=(0,t.useCallback)(e=>r(parseFloat(Nt(e,i,a).toFixed(p))),[r,i,a,p]),h=(0,t.useCallback)(e=>{switch(e.key){case`ArrowUp`:e.preventDefault(),m(n+o);break;case`ArrowDown`:e.preventDefault(),m(n-o);break;case`PageUp`:e.preventDefault(),m(n+o*10);break;case`PageDown`:e.preventDefault(),m(n-o*10);break;case`Home`:e.preventDefault(),m(i);break;case`End`:e.preventDefault(),m(a);break}},[n,o,i,a,m]);return(0,e.jsxs)(`div`,{role:`spinbutton`,"aria-valuenow":n,"aria-valuemin":i,"aria-valuemax":a,"aria-label":u,"aria-labelledby":d,"aria-disabled":c||void 0,tabIndex:c?-1:0,onKeyDown:c?void 0:h,className:[jt.spin,c?jt.disabled:null,l].filter(Boolean).join(` `),...f,children:[(0,e.jsx)(`button`,{type:`button`,tabIndex:-1,"aria-hidden":`true`,disabled:c||n<=i,className:jt.btn,onClick:()=>m(n-o),children:`−`}),(0,e.jsx)(`span`,{className:jt.value,"aria-hidden":`true`,children:n.toFixed(p)}),(0,e.jsx)(`button`,{type:`button`,tabIndex:-1,"aria-hidden":`true`,disabled:c||n>=a,className:jt.btn,onClick:()=>m(n+o),children:`+`})]})}var P={bar:`_bar_12ars_3`,list:`_list_12ars_10`,tab:`_tab_12ars_26`,active:`_active_12ars_81`,tabIcon:`_tabIcon_12ars_102`,tabLabel:`_tabLabel_12ars_110`,closeBtn:`_closeBtn_12ars_119`,panel:`_panel_12ars_148`,inline:`_inline_12ars_158`};function Ft({children:n,className:r,inline:i=!1,"aria-label":a=`Tabs`,...o}){let s=(0,t.useRef)(null);function c(e){let t=Array.from(s.current?.querySelectorAll(`[role=tab]:not(:disabled)`)??[]),n=t.findIndex(e=>e===document.activeElement);if(n===-1)return;let r=n;if(e.key===`ArrowRight`)r=(n+1)%t.length;else if(e.key===`ArrowLeft`)r=(n-1+t.length)%t.length;else if(e.key===`Home`)r=0;else if(e.key===`End`)r=t.length-1;else return;e.preventDefault(),t[r].focus()}return(0,e.jsx)(`div`,{className:[P.bar,i?P.inline:null,r].filter(Boolean).join(` `),...o,children:(0,e.jsx)(`div`,{ref:s,role:`tablist`,"aria-label":a,className:P.list,onKeyDown:c,children:n})})}function It({label:t,icon:n,active:r=!1,panelId:i,onClose:a,closeLabel:o=`Close tab`,className:s,disabled:c,...l}){return(0,e.jsxs)(`button`,{role:`tab`,type:`button`,"aria-selected":r,"aria-controls":i,tabIndex:r?0:-1,disabled:c,className:[P.tab,r?P.active:null,a?P.closeable:null,s].filter(Boolean).join(` `),...l,children:[n&&(0,e.jsx)(`span`,{className:P.tabIcon,children:(0,e.jsx)(j,{icon:n,size:`sm`,"aria-hidden":!0})}),(0,e.jsx)(`span`,{className:P.tabLabel,children:t}),a&&(0,e.jsx)(`span`,{role:`button`,tabIndex:0,"aria-label":o,className:P.closeBtn,onClick:e=>{e.stopPropagation(),a()},onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),e.stopPropagation(),a())},children:`×`})]})}function Lt({id:t,active:n=!1,className:r,children:i,...a}){return(0,e.jsx)(`div`,{id:t,role:`tabpanel`,hidden:!n,tabIndex:0,className:[P.panel,r].filter(Boolean).join(` `),...a,children:i})}var F={row:`_row_17clq_3`,leading:`_leading_17clq_16`,content:`_content_17clq_25`,title:`_title_17clq_33`,subtitle:`_subtitle_17clq_44`,trailing:`_trailing_17clq_58`,propertyLabel:`_propertyLabel_17clq_68`,propertyValue:`_propertyValue_17clq_81`,interactive:`_interactive_17clq_94`};function Rt({title:t,subtitle:n,leading:r,trailing:i,interactive:a=!1,variant:o=`default`,className:s,...c}){let l=a?`button`:`div`,u=o===`property`;return(0,e.jsxs)(l,{className:[F.row,a?F.interactive:null,u?F.property:null,s].filter(Boolean).join(` `),...c,children:[r&&(0,e.jsx)(`span`,{className:F.leading,children:r}),(0,e.jsxs)(`span`,{className:F.content,children:[(0,e.jsx)(`span`,{className:u?F.propertyLabel:F.title,children:t}),n&&(0,e.jsx)(`span`,{className:u?F.propertyValue:F.subtitle,children:n})]}),i&&(0,e.jsx)(`span`,{className:F.trailing,children:i})]})}var zt={list:`_list_1m4lm_3`,item:`_item_1m4lm_16`,separate:`_separate_1m4lm_37`,separateItem:`_separateItem_1m4lm_47`,divider:`_divider_1m4lm_69`};function Bt({children:n,variant:r=`default`,className:i,...a}){let o=t.Children.toArray(n).filter(Boolean),s=r===`separate`;return(0,e.jsx)(`ul`,{role:`list`,className:[zt.list,s?zt.separate:null,i].filter(Boolean).join(` `),...a,children:o.map((t,n)=>(0,e.jsxs)(`li`,{className:s?zt.separateItem:zt.item,children:[!s&&n>0&&(0,e.jsx)(k,{"aria-hidden":`true`}),t]},n))})}var Vt={switcher:`_switcher_1uh9r_3`,item:`_item_1uh9r_18`,active:`_active_1uh9r_45`,itemIcon:`_itemIcon_1uh9r_76`,itemLabel:`_itemLabel_1uh9r_84`};function Ht({children:n,className:r,"aria-label":i=`View switcher`,...a}){let o=(0,t.useRef)(null);function s(e){let t=Array.from(o.current?.querySelectorAll(`[role=radio]:not(:disabled)`)??[]),n=t.findIndex(e=>e===document.activeElement);if(n===-1)return;let r=n;if(e.key===`ArrowRight`||e.key===`ArrowDown`)r=(n+1)%t.length;else if(e.key===`ArrowLeft`||e.key===`ArrowUp`)r=(n-1+t.length)%t.length;else if(e.key===`Home`)r=0;else if(e.key===`End`)r=t.length-1;else return;e.preventDefault(),t[r].focus(),t[r].click()}return(0,e.jsx)(`div`,{ref:o,role:`radiogroup`,"aria-label":i,onKeyDown:s,className:[Vt.switcher,r].filter(Boolean).join(` `),...a,children:n})}function Ut({label:t,icon:n,active:r=!1,className:i,disabled:a,...o}){return(0,e.jsxs)(`button`,{type:`button`,role:`radio`,"aria-checked":r,tabIndex:r?0:-1,disabled:a,className:[Vt.item,r?Vt.active:null,i].filter(Boolean).join(` `),...o,children:[n&&(0,e.jsx)(`span`,{className:Vt.itemIcon,children:(0,e.jsx)(j,{icon:n,size:`md`,"aria-hidden":!0})}),(0,e.jsx)(`span`,{className:Vt.itemLabel,children:t})]})}var Wt=`_toaster_1tgvb_3`,Gt=`_toasterBottom_1tgvb_18`,Kt=`_toasterTop_1tgvb_22`,qt=`_toast_1tgvb_3`,Jt=`_title_1tgvb_69`,Yt=`_actions_1tgvb_76`,Xt=`_actionBtn_1tgvb_85`,Zt=`_dismissBtn_1tgvb_118`,Qt={toaster:Wt,toasterBottom:Gt,toasterTop:Kt,toast:qt,"toast-in":`_toast-in_1tgvb_1`,title:Jt,actions:Yt,actionBtn:Xt,dismissBtn:Zt};function $t({title:n,duration:r=3e3,onDismiss:i,actionLabel:a,onAction:o,dismissible:s=!1,className:c,...l}){let u=(0,t.useRef)(null),d=(0,t.useRef)(r),f=(0,t.useRef)(0),p=()=>{u.current&&=(clearTimeout(u.current),null)},m=e=>{e<=0||!i||(p(),f.current=Date.now(),u.current=setTimeout(()=>i(),e))};(0,t.useEffect)(()=>(r>0&&(d.current=r,m(r)),p),[r]);let h=()=>{if(u.current){let e=Date.now()-f.current;d.current=Math.max(0,d.current-e),p()}},g=()=>{m(d.current)},_=()=>{p(),o?.(),i?.()};return(0,e.jsxs)(`div`,{role:`status`,"aria-live":`polite`,"aria-atomic":`true`,className:[Qt.toast,c].filter(Boolean).join(` `),onMouseEnter:h,onMouseLeave:g,onFocus:h,onBlur:g,...l,children:[(0,e.jsx)(`span`,{className:Qt.title,children:n}),(a||s)&&(0,e.jsxs)(`span`,{className:Qt.actions,children:[a&&(0,e.jsx)(`button`,{type:`button`,className:Qt.actionBtn,onClick:_,children:a}),s&&(0,e.jsx)(`button`,{type:`button`,className:Qt.dismissBtn,"aria-label":`Dismiss`,onClick:()=>{p(),i?.()},children:(0,e.jsx)(j,{icon:je,size:`md`,"aria-hidden":!0})})]})]})}function en({position:t=`bottom`,children:r,container:i,className:a,...o}){let s=(0,e.jsx)(`div`,{"aria-label":`Notifications`,className:[Qt.toaster,t===`top`?Qt.toasterTop:Qt.toasterBottom,a].filter(Boolean).join(` `),...o,children:r});return typeof document>`u`?s:(0,n.createPortal)(s,i??document.body)}var tn=`button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])`;function nn(){let[e,n]=(0,t.useState)({});return(0,t.useEffect)(()=>{let{visualViewport:e}=window;if(!e)return;let t=()=>{let{offsetLeft:t,offsetTop:r,width:i,height:a}=e;n({top:r,left:t,width:i,height:a})};return t(),e.addEventListener(`resize`,t),e.addEventListener(`scroll`,t),()=>{e.removeEventListener(`resize`,t),e.removeEventListener(`scroll`,t)}},[]),e}function rn(e,t){if(e.key!==`Tab`)return;let n=Array.from(t.current?.querySelectorAll(`button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])`)??[]);if(!n.length)return;let r=n[0],i=n[n.length-1];e.shiftKey?document.activeElement===r&&(e.preventDefault(),i.focus()):document.activeElement===i&&(e.preventDefault(),r.focus())}var an=`_backdrop_gg1yz_3`,on=`_dialog_gg1yz_26`,sn=`_title_gg1yz_56`,cn=`_body_gg1yz_68`,ln=`_footer_gg1yz_89`,un=`_btn_gg1yz_96`,I={backdrop:an,"backdrop-in":`_backdrop-in_gg1yz_1`,dialog:on,"dialog-in":`_dialog-in_gg1yz_1`,title:sn,body:cn,footer:ln,btn:un,"btn-default":`_btn-default_gg1yz_144`,"btn-suggested":`_btn-suggested_gg1yz_148`,"btn-destructive":`_btn-destructive_gg1yz_153`};function dn({open:r,title:i,children:a,buttons:o=[],onClose:s,closeOnBackdrop:c=!0,role:l=`dialog`,responses:u,onResponse:d,className:f,...p}){let m=(0,t.useRef)(null),h=(0,t.useId)(),g=(0,t.useRef)(null),_=!!u,v=nn();(0,t.useEffect)(()=>{r?(g.current=document.activeElement,(m.current?.querySelector(tn))?.focus()):g.current?.focus()},[r]);let y=(0,t.useCallback)(()=>{let e=u?.find(e=>e.variant!==`destructive`&&!e.disabled);e&&d?.(e.id)},[u,d]),b=_?y:c?s:void 0,x=(0,t.useCallback)(e=>{if(e.key===`Escape`){e.preventDefault(),_?y():s?.();return}rn(e,m)},[_,y,s]);if(!r)return null;let S=()=>_&&u?(0,e.jsx)(`div`,{className:I.footer,children:u.map(t=>(0,e.jsx)(`button`,{type:`button`,disabled:t.disabled,className:[I.btn,I[`btn-${t.variant??`default`}`]].filter(Boolean).join(` `),onClick:()=>d?.(t.id),children:t.label},t.id))}):o.length>0?(0,e.jsx)(`div`,{className:I.footer,children:o.map(t=>(0,e.jsx)(`button`,{type:`button`,disabled:t.disabled,className:[I.btn,I[`btn-${t.variant??`default`}`]].filter(Boolean).join(` `),onClick:t.onClick,children:t.label},t.label))}):null,C=(0,e.jsx)(`div`,{className:I.backdrop,style:v,onClick:b,"aria-hidden":`true`,children:(0,e.jsxs)(`div`,{ref:m,role:l,"aria-modal":`true`,"aria-labelledby":h,className:[I.dialog,f].filter(Boolean).join(` `),onKeyDown:x,onClick:e=>e.stopPropagation(),...p,children:[i&&(0,e.jsx)(`div`,{id:h,className:I.title,children:i}),a&&(0,e.jsx)(`div`,{className:I.body,children:a}),S()]})});return typeof document>`u`?C:(0,n.createPortal)(C,document.body)}var fn=`_backdrop_1iswz_3`,pn=`_dialog_1iswz_26`,mn=`_header_1iswz_59`,hn=`_icon_1iswz_68`,gn=`_appName_1iswz_77`,_n=`_version_1iswz_84`,vn=`_tabBar_1iswz_92`,yn=`_tabBtn_1iswz_99`,bn=`_tabBtnActive_1iswz_118`,xn=`_tabContent_1iswz_132`,Sn=`_section_1iswz_137`,Cn=`_comments_1iswz_142`,wn=`_infoList_1iswz_151`,Tn=`_infoLabel_1iswz_158`,En=`_infoValue_1iswz_166`,Dn=`_link_1iswz_174`,On=`_creditGroup_1iswz_182`,kn=`_creditTitle_1iswz_186`,An=`_creditList_1iswz_196`,jn=`_creditItem_1iswz_205`,Mn=`_copyright_1iswz_211`,Nn=`_licenseType_1iswz_218`,Pn=`_licenseText_1iswz_225`,Fn=`_footer_1iswz_239`,In=`_btn_1iswz_245`,Ln=`_btnDefault_1iswz_281`,L={backdrop:fn,"backdrop-in":`_backdrop-in_1iswz_1`,dialog:pn,"dialog-in":`_dialog-in_1iswz_1`,header:mn,icon:hn,appName:gn,version:_n,tabBar:vn,tabBtn:yn,tabBtnActive:bn,tabContent:xn,section:Sn,comments:Cn,infoList:wn,infoLabel:Tn,infoValue:En,link:Dn,creditGroup:On,creditTitle:kn,creditList:An,creditItem:jn,copyright:Mn,licenseType:Nn,licenseText:Pn,footer:Fn,btn:In,btnDefault:Ln},Rn={details:`Details`,credits:`Credits`,legal:`Legal`};function zn({open:r,onClose:i,applicationName:a,applicationIcon:o,version:s,comments:c,developerName:l,website:u,websiteLabel:d,developers:f,designers:p,artists:m,copyright:h,licenseType:g,licenseText:_,links:v}){let y=(0,t.useRef)(null),b=(0,t.useId)(),x=(0,t.useRef)(null),S=nn(),[C,w]=(0,t.useState)(`details`);(0,t.useEffect)(()=>{r?(x.current=document.activeElement,(y.current?.querySelector(tn))?.focus()):(x.current?.focus(),w(`details`))},[r]);let T=(0,t.useCallback)(e=>{if(e.key===`Escape`){e.preventDefault(),i?.();return}rn(e,y)},[i]);if(!r)return null;let E=[`details`,!!(f?.length||p?.length||m?.length)&&`credits`,!!(h||g||_)&&`legal`].filter(Boolean),D=(0,e.jsx)(`div`,{className:L.backdrop,style:S,onClick:i,"aria-hidden":`true`,children:(0,e.jsxs)(`div`,{ref:y,role:`dialog`,"aria-modal":`true`,"aria-labelledby":b,className:L.dialog,onKeyDown:T,onClick:e=>e.stopPropagation(),children:[(0,e.jsxs)(`div`,{className:L.header,children:[o&&(0,e.jsx)(`div`,{className:L.icon,children:o}),(0,e.jsx)(`div`,{id:b,className:L.appName,children:a}),s&&(0,e.jsx)(`div`,{className:L.version,children:s})]}),E.length>1&&(0,e.jsx)(`div`,{className:L.tabBar,role:`tablist`,children:E.map(t=>(0,e.jsx)(`button`,{type:`button`,role:`tab`,"aria-selected":C===t,className:[L.tabBtn,C===t?L.tabBtnActive:null].filter(Boolean).join(` `),onClick:()=>w(t),children:Rn[t]},t))}),(0,e.jsxs)(`div`,{className:L.tabContent,children:[C===`details`&&(0,e.jsxs)(`div`,{className:L.section,children:[c&&(0,e.jsx)(`p`,{className:L.comments,children:c}),(l||u||v?.length)&&(0,e.jsxs)(`dl`,{className:L.infoList,children:[l&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(`dt`,{className:L.infoLabel,children:`Developer`}),(0,e.jsx)(`dd`,{className:L.infoValue,children:l})]}),u&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(`dt`,{className:L.infoLabel,children:`Website`}),(0,e.jsx)(`dd`,{className:L.infoValue,children:(0,e.jsx)(`a`,{href:u,target:`_blank`,rel:`noopener noreferrer`,className:L.link,children:d??u})})]}),v?.map(t=>(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(`dt`,{className:L.infoLabel,children:t.label},`${t.label}-dt`),(0,e.jsx)(`dd`,{className:L.infoValue,children:(0,e.jsx)(`a`,{href:t.url,target:`_blank`,rel:`noopener noreferrer`,className:L.link,children:t.url})},`${t.label}-dd`)]}))]})]}),C===`credits`&&(0,e.jsx)(`div`,{className:L.section,children:[{heading:`Developers`,list:f},{heading:`Designers`,list:p},{heading:`Artists`,list:m}].filter(e=>e.list?.length).map(({heading:t,list:n})=>(0,e.jsxs)(`div`,{className:L.creditGroup,children:[(0,e.jsx)(`h4`,{className:L.creditTitle,children:t}),(0,e.jsx)(`ul`,{className:L.creditList,children:n.map(t=>(0,e.jsx)(`li`,{className:L.creditItem,children:t},t))})]},t))}),C===`legal`&&(0,e.jsxs)(`div`,{className:L.section,children:[h&&(0,e.jsx)(`p`,{className:L.copyright,children:h}),g&&(0,e.jsx)(`p`,{className:L.licenseType,children:g}),_&&(0,e.jsx)(`pre`,{className:L.licenseText,children:_})]})]}),(0,e.jsx)(`div`,{className:L.footer,children:(0,e.jsx)(`button`,{type:`button`,className:[L.btn,L.btnDefault].join(` `),onClick:i,children:`Close`})})]})});return typeof document>`u`?D:(0,n.createPortal)(D,document.body)}var Bn=`_wrapper_1hi05_3`,Vn=`_trigger_1hi05_11`,Hn=`_triggerOpen_1hi05_63`,Un=`_triggerLabel_1hi05_73`,Wn=`_placeholder_1hi05_81`,Gn=`_chevron_1hi05_87`,Kn=`_chevronOpen_1hi05_94`,qn=`_list_1hi05_100`,Jn=`_listDown_1hi05_129`,Yn=`_listUp_1hi05_133`,Xn=`_option_1hi05_145`,Zn=`_optionActive_1hi05_162`,Qn=`_optionSelected_1hi05_166`,$n=`_optionDisabled_1hi05_170`,er=`_optionText_1hi05_178`,tr=`_optionLabel_1hi05_186`,nr=`_optionDesc_1hi05_192`,rr=`_checkIcon_1hi05_202`,R={wrapper:Bn,trigger:Vn,triggerOpen:Hn,triggerLabel:Un,placeholder:Wn,chevron:Gn,chevronOpen:Kn,list:qn,"list-in":`_list-in_1hi05_1`,listDown:Jn,listUp:Yn,"list-in-up":`_list-in-up_1hi05_1`,option:Xn,optionActive:Zn,optionSelected:Qn,optionDisabled:$n,optionText:er,optionLabel:tr,optionDesc:nr,checkIcon:rr};function ir({options:n,value:r,onChange:i,placeholder:a=`Select an option`,disabled:o,className:s,...c}){let[l,u]=(0,t.useState)(!1),[d,f]=(0,t.useState)(-1),[p,m]=(0,t.useState)(!1),h=(0,t.useId)(),g=(0,t.useId)(),_=(0,t.useRef)(null),v=(0,t.useRef)(null),y=n.find(e=>e.value===r),b=(0,t.useCallback)(()=>{if(!_.current)return;let e=_.current.getBoundingClientRect(),t=window.innerHeight-e.bottom,r=Math.min(n.length*48+8,280);m(t<r&&e.top>r)},[n.length]),x=(0,t.useCallback)(()=>{if(o)return;b(),u(!0);let e=n.findIndex(e=>e.value===r&&!e.disabled);f(e>=0?e:n.findIndex(e=>!e.disabled))},[o,b,n,r]),S=(0,t.useCallback)(()=>{u(!1),f(-1),_.current?.focus()},[]),C=(0,t.useCallback)(e=>{e.disabled||(i?.(e.value),S())},[i,S]);(0,t.useEffect)(()=>{!l||d<0||!v.current||v.current.children[d]?.scrollIntoView({block:`nearest`})},[d,l]),(0,t.useEffect)(()=>{if(!l)return;let e=e=>{!_.current?.contains(e.target)&&!v.current?.contains(e.target)&&S()};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[l,S]);let w=(0,t.useCallback)(e=>{switch(e.key){case`Enter`:case` `:case`ArrowDown`:e.preventDefault(),x();break;case`ArrowUp`:e.preventDefault(),b(),u(!0),f(n.reduce((e,t,n)=>t.disabled?e:n,-1));break}},[x,b,n]),T=(0,t.useCallback)(e=>{let t=n.map((e,t)=>({o:e,i:t})).filter(({o:e})=>!e.disabled).map(({i:e})=>e),r=t.indexOf(d);switch(e.key){case`ArrowDown`:{e.preventDefault();let n=t[Math.min(r+1,t.length-1)];f(n??d);break}case`ArrowUp`:{e.preventDefault();let n=t[Math.max(r-1,0)];f(n??d);break}case`Home`:e.preventDefault(),f(t[0]??-1);break;case`End`:e.preventDefault(),f(t[t.length-1]??-1);break;case`Enter`:case` `:e.preventDefault(),d>=0&&C(n[d]);break;case`Escape`:case`Tab`:S();break}},[n,d,C,S]);return(0,e.jsxs)(`div`,{className:[R.wrapper,s].filter(Boolean).join(` `),...c,children:[(0,e.jsxs)(`button`,{ref:_,id:h,type:`button`,role:`combobox`,"aria-haspopup":`listbox`,"aria-expanded":l,"aria-controls":g,"aria-activedescendant":l&&d>=0?`${g}-opt-${d}`:void 0,disabled:o,className:[R.trigger,l?R.triggerOpen:null].filter(Boolean).join(` `),onClick:()=>l?S():x(),onKeyDown:w,children:[(0,e.jsx)(`span`,{className:[R.triggerLabel,y?null:R.placeholder].filter(Boolean).join(` `),children:y?.label??a}),(0,e.jsx)(j,{icon:ke,size:`md`,"aria-hidden":!0,className:[R.chevron,l?R.chevronOpen:null].filter(Boolean).join(` `)})]}),l&&(0,e.jsx)(`ul`,{ref:v,id:g,role:`listbox`,"aria-labelledby":h,tabIndex:-1,className:[R.list,p?R.listUp:R.listDown].filter(Boolean).join(` `),onKeyDown:T,children:n.map((t,n)=>(0,e.jsxs)(`li`,{id:`${g}-opt-${n}`,role:`option`,"aria-selected":t.value===r,"aria-disabled":t.disabled,className:[R.option,t.value===r?R.optionSelected:null,n===d?R.optionActive:null,t.disabled?R.optionDisabled:null].filter(Boolean).join(` `),onMouseEnter:()=>!t.disabled&&f(n),onClick:()=>C(t),children:[(0,e.jsxs)(`span`,{className:R.optionText,children:[(0,e.jsx)(`span`,{className:R.optionLabel,children:t.label}),t.description&&(0,e.jsx)(`span`,{className:R.optionDesc,children:t.description})]}),t.value===r&&(0,e.jsx)(j,{icon:Fe,size:`md`,"aria-hidden":!0,className:R.checkIcon})]},t.value))})]})}var ar={wrapper:`_wrapper_11zhs_3`,hasLabels:`_hasLabels_11zhs_11`,track:`_track_11zhs_17`,disabled:`_disabled_11zhs_42`,fill:`_fill_11zhs_50`,thumb:`_thumb_11zhs_64`,tick:`_tick_11zhs_97`,labels:`_labels_11zhs_112`,markLabel:`_markLabel_11zhs_119`};function or(e,t,n){return Math.min(n,Math.max(t,e))}function sr(e,t,n,r){return parseFloat((Math.round((e-t)/n)*n+t).toFixed(r))}function cr(e){let t=e.toString(),n=t.indexOf(`.`);return n===-1?0:t.length-n-1}function lr({value:n,onChange:r,min:i=0,max:a=100,step:o=1,disabled:s=!1,marks:c,className:l,"aria-label":u,"aria-labelledby":d,"aria-describedby":f,...p}){let m=(0,t.useRef)(null),h=cr(o),g=(or(n,i,a)-i)/(a-i)*100,_=(0,t.useCallback)(e=>{if(!m.current)return;let{left:t,width:n}=m.current.getBoundingClientRect();r(or(sr((e-t)/n*(a-i)+i,i,o,h),i,a))},[i,a,o,h,r]),v=(0,t.useCallback)(e=>{s||(e.currentTarget.setPointerCapture(e.pointerId),_(e.clientX))},[s,_]),y=(0,t.useCallback)(e=>{e.currentTarget.hasPointerCapture(e.pointerId)&&_(e.clientX)},[_]),b=(0,t.useCallback)(e=>{let t=t=>{e.preventDefault(),r(or(sr(t,i,o,h),i,a))};switch(e.key){case`ArrowRight`:case`ArrowUp`:t(n+o);break;case`ArrowLeft`:case`ArrowDown`:t(n-o);break;case`PageUp`:t(n+o*10);break;case`PageDown`:t(n-o*10);break;case`Home`:t(i);break;case`End`:t(a);break}},[n,o,i,a,h,r]),x=c&&c.length>0,S=x&&c.some(e=>e.label);return(0,e.jsxs)(`div`,{className:[ar.wrapper,S?ar.hasLabels:null,l].filter(Boolean).join(` `),...p,children:[(0,e.jsxs)(`div`,{ref:m,role:`slider`,tabIndex:s?-1:0,"aria-valuemin":i,"aria-valuemax":a,"aria-valuenow":n,"aria-label":u,"aria-labelledby":d,"aria-describedby":f,"aria-disabled":s||void 0,className:[ar.track,s?ar.disabled:null].filter(Boolean).join(` `),onPointerDown:v,onPointerMove:y,onKeyDown:s?void 0:b,children:[(0,e.jsx)(`div`,{className:ar.fill,style:{width:`${g}%`}}),(0,e.jsx)(`div`,{className:ar.thumb,style:{left:`${g}%`},"aria-hidden":`true`}),x&&c.map(t=>{let n=(or(t.value,i,a)-i)/(a-i)*100;return(0,e.jsx)(`div`,{className:ar.tick,style:{left:`${n}%`},"aria-hidden":`true`},t.value)})]}),S&&(0,e.jsx)(`div`,{className:ar.labels,"aria-hidden":`true`,children:c.map(t=>{let n=(or(t.value,i,a)-i)/(a-i)*100;return(0,e.jsx)(`span`,{className:ar.markLabel,style:{left:`${n}%`},children:t.label},t.value)})})]})}var ur={panel:`_panel_1tk9v_3`,visible:`_visible_1tk9v_36`,arrow:`_arrow_1tk9v_44`,bottom:`_bottom_1tk9v_59`,top:`_top_1tk9v_67`,left:`_left_1tk9v_75`,right:`_right_1tk9v_83`},dr=8,z=10,fr=6;function pr(e,t,n){let r=window.innerWidth,i=window.innerHeight,a=[...new Set([n,n===`top`?`bottom`:n===`bottom`?`top`:n===`left`?`right`:`left`,`bottom`,`top`,`left`,`right`])];function o(n){return n===`bottom`?{top:e.bottom+dr,left:e.left+e.width/2-t.width/2}:n===`top`?{top:e.top-t.height-dr,left:e.left+e.width/2-t.width/2}:n===`left`?{top:e.top+e.height/2-t.height/2,left:e.left-t.width-dr}:{top:e.top+e.height/2-t.height/2,left:e.right+dr}}for(let n of a){let{top:a,left:s}=o(n),c=s>=z&&s+t.width<=r-z,l=a>=z&&a+t.height<=i-z;if(c&&l)return{top:a,left:s,placement:n,arrowOffset:n===`top`||n===`bottom`?e.left+e.width/2-s:e.top+e.height/2-a}}for(let n of a){let{top:a,left:s}=o(n),c=a>=z&&a+t.height<=i-z,l=s>=z&&s+t.width<=r-z;if((n===`top`||n===`bottom`)&&c){let i=Math.max(z,Math.min(s,r-t.width-z)),o=e.left+e.width/2-i;return{top:a,left:i,placement:n,arrowOffset:Math.max(fr+4,Math.min(o,t.width-fr-4))}}if((n===`left`||n===`right`)&&l){let r=Math.max(z,Math.min(a,i-t.height-z)),o=e.top+e.height/2-r;return{top:r,left:s,placement:n,arrowOffset:Math.max(fr+4,Math.min(o,t.height-fr-4))}}}let s=e.bottom+dr,c=e.left+e.width/2-t.width/2,l=Math.max(z,Math.min(s,i-t.height-z)),u=Math.max(z,Math.min(c,r-t.width-z)),d=e.left+e.width/2-u;return{top:l,left:u,placement:`bottom`,arrowOffset:Math.max(fr+4,Math.min(d,t.width-fr-4))}}function mr({content:r,placement:i=`bottom`,open:a,onClose:o,onOpenChange:s,children:c}){let l=a!==void 0,[u,d]=(0,t.useState)(!1),f=l?a:u,[p,m]=(0,t.useState)(null),h=(0,t.useId)(),g=(0,t.useId)(),_=(0,t.useRef)(null),v=(0,t.useRef)(null),y=(0,t.useRef)(null),b=(0,t.useCallback)(()=>{l?o?.():d(!1),s?.(!1)},[l,o,s]),x=(0,t.useCallback)(()=>{f?b():(l||d(!0),s?.(!0))},[f,b,l,s]),S=(0,t.useCallback)(()=>{!_.current||!v.current||m(pr(_.current.getBoundingClientRect(),v.current.getBoundingClientRect(),i))},[i]);(0,t.useEffect)(()=>{if(!f)return;let e=requestAnimationFrame(()=>{S(),window.addEventListener(`scroll`,S,{passive:!0,capture:!0}),window.addEventListener(`resize`,S,{passive:!0})});return()=>{cancelAnimationFrame(e),window.removeEventListener(`scroll`,S,{capture:!0}),window.removeEventListener(`resize`,S)}},[f,S]),(0,t.useEffect)(()=>{f?(y.current=document.activeElement,requestAnimationFrame(()=>{(v.current?.querySelector(`button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])`)??v.current)?.focus()})):(y.current?.focus(),m(null))},[f]),(0,t.useEffect)(()=>{if(!f)return;let e=e=>{!_.current?.contains(e.target)&&!v.current?.contains(e.target)&&b()};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[f,b]);let C=(0,t.useCallback)(e=>{e.key===`Escape`&&(e.stopPropagation(),b())},[b]),w=(0,t.cloneElement)(c,{ref:_,id:h,"aria-haspopup":`dialog`,"aria-expanded":f,"aria-controls":f?g:void 0,onClick:e=>{x(),c.props.onClick?.(e)}}),T=(0,e.jsxs)(`div`,{ref:v,id:g,role:`dialog`,"aria-labelledby":h,tabIndex:-1,className:[ur.panel,p?ur[p.placement]:null,f&&p?ur.visible:null].filter(Boolean).join(` `),style:p?{top:p.top,left:p.left}:{visibility:`hidden`,pointerEvents:`none`,top:-9999,left:-9999},onKeyDown:C,children:[(0,e.jsx)(`div`,{className:ur.arrow,"aria-hidden":`true`,style:p?.arrowOffset===void 0?void 0:p.placement===`top`||p.placement===`bottom`?{left:p.arrowOffset-fr,marginLeft:0}:{top:p.arrowOffset-fr,marginTop:0}}),r]});return(0,e.jsxs)(e.Fragment,{children:[w,f&&(typeof document<`u`?(0,n.createPortal)(T,document.body):T)]})}var hr={clamp:`_clamp_1j51b_6`};function gr({maximumSize:t=600,children:n,className:r,style:i,...a}){return(0,e.jsx)(`div`,{className:[hr.clamp,r].filter(Boolean).join(` `),style:{maxWidth:t,...i},...a,children:n})}var B={root:`_root_yaj3r_3`,expanded:`_expanded_yaj3r_12`,sidebar:`_sidebar_yaj3r_16`,contentPane:`_contentPane_yaj3r_22`,collapsed:`_collapsed_yaj3r_30`,paneVisible:`_paneVisible_yaj3r_46`,paneHidden:`_paneHidden_yaj3r_50`,divider:`_divider_yaj3r_67`};function _r({sidebar:t,content:n,showContent:r=!1,minSidebarWidth:i=180,maxSidebarWidth:a=280,sidebarWidthFraction:o=.25,className:s,style:c,...l}){let{isNarrow:u}=Be(),d=`clamp(${i}px, ${o*100}%, ${a}px)`;return(0,e.jsxs)(`div`,{className:[B.root,u?B.collapsed:B.expanded,s].filter(Boolean).join(` `),style:{"--sidebar-width":d,...c},...l,children:[(0,e.jsx)(`div`,{className:[B.sidebar,u&&r?B.paneHidden:B.paneVisible].filter(Boolean).join(` `),"aria-hidden":u&&r,children:t}),!u&&(0,e.jsx)(`div`,{className:B.divider,"aria-hidden":`true`}),(0,e.jsx)(`div`,{className:[B.contentPane,u&&!r?B.paneHidden:B.paneVisible].filter(Boolean).join(` `),"aria-hidden":u&&!r,children:n})]})}var V={root:`_root_1g9mq_3`,wide:`_wide_1g9mq_13`,end:`_end_1g9mq_17`,sidebar:`_sidebar_1g9mq_21`,collapsed:`_collapsed_1g9mq_28`,content:`_content_1g9mq_32`,narrow:`_narrow_1g9mq_40`,start:`_start_1g9mq_60`,sidebarOpen:`_sidebarOpen_1g9mq_64`,sidebarClosed:`_sidebarClosed_1g9mq_65`,backdrop:`_backdrop_1g9mq_77`,backdropVisible:`_backdropVisible_1g9mq_88`};function vr({sidebar:n,content:r,showSidebar:i=!1,onClose:a,collapsed:o=!1,sidebarPosition:s=`start`,minSidebarWidth:c=180,maxSidebarWidth:l=280,sidebarWidthFraction:u=.25,className:d,style:f,...p}){let{isNarrow:m}=Be(),h=(0,t.useRef)(null),g=`clamp(${c}px, ${u*100}%, ${l}px)`;(0,t.useEffect)(()=>{if(!m||!i)return;let e=e=>{e.key===`Escape`&&a?.()};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[m,i,a]),(0,t.useEffect)(()=>{!m||!i||(h.current?.querySelector(`button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])`))?.focus()},[m,i]);let _=s===`end`;return(0,t.useEffect)(()=>{if(!m||!i)return;let e=h.current;if(!e)return;let t=0,n=e=>{t=e.touches[0].clientX},r=e=>{let n=e.changedTouches[0].clientX-t;(_?n>80:n<-80)&&a?.()};return e.addEventListener(`touchstart`,n,{passive:!0}),e.addEventListener(`touchend`,r,{passive:!0}),()=>{e.removeEventListener(`touchstart`,n),e.removeEventListener(`touchend`,r)}},[m,i,_,a]),(0,e.jsxs)(`div`,{className:[V.root,m?V.narrow:V.wide,!m&&o?V.collapsed:null,_?V.end:V.start,d].filter(Boolean).join(` `),style:{"--sidebar-width":g,...f},...p,children:[m&&(0,e.jsx)(`div`,{className:[V.backdrop,i?V.backdropVisible:null].filter(Boolean).join(` `),"aria-hidden":`true`,onClick:a}),(0,e.jsx)(`div`,{ref:h,className:[V.sidebar,m?i?V.sidebarOpen:V.sidebarClosed:null].filter(Boolean).join(` `),"aria-hidden":m&&!i,children:n}),(0,e.jsx)(`div`,{className:V.content,children:r})]})}var yr={bar:`_bar_njcvu_3`};function br({children:t,reveal:n=!0,className:r,...i}){return n?(0,e.jsx)(`div`,{role:`navigation`,"aria-label":`Bottom navigation`,className:[yr.bar,r].filter(Boolean).join(` `),...i,children:t}):null}var xr={link:`_link_x1qyh_1`,externalIcon:`_externalIcon_x1qyh_36`};function Sr({external:t=!1,children:n,className:r,target:i,rel:a,...o}){let s=t||i===`_blank`;return(0,e.jsxs)(`a`,{className:[xr.link,r].filter(Boolean).join(` `),target:s?`_blank`:i,rel:s?`noopener noreferrer`:a,...o,children:[n,s&&(0,e.jsx)(`span`,{className:xr.externalIcon,"aria-label":`(opens in new tab)`,children:`↗`})]})}var Cr={group:`_group_1fa3l_3`,item:`_item_1fa3l_18`,iconOnly:`_iconOnly_1fa3l_48`,active:`_active_1fa3l_53`,itemIcon:`_itemIcon_1fa3l_86`,itemLabel:`_itemLabel_1fa3l_92`},wr=(0,t.createContext)(null);function Tr(){let e=(0,t.useContext)(wr);if(!e)throw Error(`ToggleGroupItem must be used inside ToggleGroup`);return e}function Er({value:n,onValueChange:r,"aria-label":i=`Options`,children:a,className:o,...s}){let c=(0,t.useRef)(null);function l(e){let t=Array.from(c.current?.querySelectorAll(`[role=radio]:not(:disabled)`)??[]),n=t.findIndex(e=>e===document.activeElement);if(n===-1)return;let r=n;if(e.key===`ArrowRight`||e.key===`ArrowDown`)r=(n+1)%t.length;else if(e.key===`ArrowLeft`||e.key===`ArrowUp`)r=(n-1+t.length)%t.length;else if(e.key===`Home`)r=0;else if(e.key===`End`)r=t.length-1;else return;e.preventDefault(),t[r].focus(),t[r].click()}return(0,e.jsx)(wr.Provider,{value:{value:n,onValueChange:r},children:(0,e.jsx)(`div`,{ref:c,role:`radiogroup`,"aria-label":i,onKeyDown:l,className:[Cr.group,o].filter(Boolean).join(` `),...s,children:a})})}function Dr({name:t,label:n,icon:r,disabled:i,className:a,...o}){let{value:s,onValueChange:c}=Tr(),l=s===t,u=r&&!n;return(0,e.jsxs)(`button`,{type:`button`,role:`radio`,"aria-checked":l,tabIndex:l?0:-1,disabled:i,onClick:()=>c(t),className:[Cr.item,l?Cr.active:null,u?Cr.iconOnly:null,a].filter(Boolean).join(` `),...o,children:[r&&(0,e.jsx)(`span`,{className:Cr.itemIcon,children:(0,e.jsx)(j,{icon:r,size:`md`,"aria-hidden":!0})}),n&&(0,e.jsx)(`span`,{className:Cr.itemLabel,children:n})]})}function Or({orientation:t=`vertical`,spacing:n=6,align:r,justify:i=`start`,className:a,style:o,children:s,...c}){let l=t===`horizontal`?`center`:`stretch`;return(0,e.jsx)(`div`,{className:a,style:{display:`flex`,flexDirection:t===`horizontal`?`row`:`column`,gap:typeof n==`number`?`${n}px`:n,alignItems:r??l,justifyContent:i,...o},...c,children:s})}var kr={wrapBox:`_wrapBox_1ik0x_1`,reverse:`_reverse_1ik0x_10`};function Ar({childSpacing:t=6,lineSpacing:n,justify:r=`start`,align:i=`center`,wrapReverse:a=!1,children:o,className:s,style:c,...l}){let u=typeof t==`number`?`${t}px`:t,d=n==null?u:typeof n==`number`?`${n}px`:n,f={"--wrapbox-gap":u,"--wrapbox-row-gap":d,"--wrapbox-justify":r,"--wrapbox-align":i,...c};return(0,e.jsx)(`div`,{className:[kr.wrapBox,a?kr.reverse:null,s].filter(Boolean).join(` `),style:f,...l,children:o})}var jr={chip:`_chip_e26qc_3`,selectable:`_selectable_e26qc_31`,selected:`_selected_e26qc_55`,disabled:`_disabled_e26qc_68`,icon:`_icon_e26qc_76`,label:`_label_e26qc_85`,remove:`_remove_e26qc_91`};function Mr({label:t,icon:n,onRemove:r,selectable:i=!1,selected:a=!1,onToggle:o,disabled:s=!1,className:c,...l}){let u=i&&!r,d=[jr.chip,a?jr.selected:null,s?jr.disabled:null,u?jr.selectable:null,c].filter(Boolean).join(` `),f=(0,e.jsxs)(e.Fragment,{children:[n&&(0,e.jsx)(`span`,{className:jr.icon,children:(0,e.jsx)(j,{icon:n,size:`sm`,"aria-hidden":!0})}),(0,e.jsx)(`span`,{className:jr.label,children:t}),r&&(0,e.jsx)(`button`,{type:`button`,className:jr.remove,"aria-label":`Remove ${t}`,disabled:s,onClick:e=>{e.stopPropagation(),r()},tabIndex:s?-1:0,children:(0,e.jsx)(j,{icon:je,size:`sm`,"aria-hidden":!0})})]});return u?(0,e.jsx)(`button`,{type:`button`,role:`checkbox`,"aria-checked":a,"aria-label":t,disabled:s,onClick:o,className:d,...l,children:f}):(0,e.jsx)(`span`,{className:d,...l,children:f})}var Nr=`_backdrop_zvuhh_3`,Pr=`_dialog_zvuhh_26`,Fr=`_header_zvuhh_59`,Ir=`_title_zvuhh_67`,Lr=`_closeBtn_zvuhh_74`,Rr=`_searchRow_zvuhh_112`,zr=`_searchIcon_zvuhh_124`,Br=`_searchInput_zvuhh_132`,Vr=`_searchClear_zvuhh_151`,Hr=`_body_zvuhh_174`,Ur=`_empty_zvuhh_182`,Wr=`_section_zvuhh_193`,Gr=`_sectionTitle_zvuhh_199`,Kr=`_list_zvuhh_209`,qr=`_row_zvuhh_225`,Jr=`_keys_zvuhh_240`,Yr=`_keyCap_zvuhh_247`,Xr=`_plus_zvuhh_277`,Zr=`_description_zvuhh_284`,H={backdrop:Nr,"backdrop-in":`_backdrop-in_zvuhh_1`,dialog:Pr,"dialog-in":`_dialog-in_zvuhh_1`,header:Fr,title:Ir,closeBtn:Lr,searchRow:Rr,searchIcon:zr,searchInput:Br,searchClear:Vr,body:Hr,empty:Ur,section:Wr,sectionTitle:Gr,list:Kr,row:qr,keys:Jr,keyCap:Yr,plus:Xr,description:Zr},Qr=`button:not([disabled]), [href], input:not([disabled]), [tabindex]:not([tabindex="-1"])`;function $r({open:r,onClose:i,title:a=`Keyboard Shortcuts`,sections:o}){let[s,c]=(0,t.useState)(``),l=(0,t.useRef)(null),u=(0,t.useRef)(null),d=(0,t.useRef)(null),f=(0,t.useRef)(`shortcuts-title-${Math.random().toString(36).slice(2,9)}`);(0,t.useEffect)(()=>{r?(d.current=document.activeElement,requestAnimationFrame(()=>u.current?.focus())):(c(``),d.current?.focus())},[r]);let p=(0,t.useCallback)(e=>{if(e.key===`Escape`){e.preventDefault(),i();return}if(e.key!==`Tab`)return;let t=Array.from(l.current?.querySelectorAll(Qr)??[]);if(t.length===0)return;let n=t[0],r=t[t.length-1];e.shiftKey?document.activeElement===n&&(e.preventDefault(),r.focus()):document.activeElement===r&&(e.preventDefault(),n.focus())},[i]);if(!r)return null;let m=s.trim().toLowerCase(),h=o.map(e=>({...e,shortcuts:e.shortcuts.filter(({description:e,keys:t})=>!m||e.toLowerCase().includes(m)||t.some(e=>e.toLowerCase().includes(m)))})).filter(e=>e.shortcuts.length>0),g=(0,e.jsx)(`div`,{className:H.backdrop,onClick:i,"aria-hidden":`true`,children:(0,e.jsxs)(`div`,{ref:l,role:`dialog`,"aria-modal":`true`,"aria-labelledby":f.current,className:H.dialog,onKeyDown:p,onClick:e=>e.stopPropagation(),children:[(0,e.jsxs)(`div`,{className:H.header,children:[(0,e.jsx)(`span`,{id:f.current,className:H.title,children:a}),(0,e.jsx)(`button`,{type:`button`,className:H.closeBtn,"aria-label":`Close`,onClick:i,children:`×`})]}),(0,e.jsxs)(`div`,{className:H.searchRow,children:[(0,e.jsx)(`span`,{className:H.searchIcon,"aria-hidden":`true`,children:`⌕`}),(0,e.jsx)(`input`,{ref:u,type:`search`,className:H.searchInput,placeholder:`Search shortcuts…`,value:s,onChange:e=>c(e.target.value),"aria-label":`Search shortcuts`}),s&&(0,e.jsx)(`button`,{type:`button`,className:H.searchClear,"aria-label":`Clear search`,onClick:()=>{c(``),u.current?.focus()},children:`×`})]}),(0,e.jsx)(`div`,{className:H.body,role:`list`,children:h.length===0?(0,e.jsxs)(`p`,{className:H.empty,children:[`No shortcuts match "`,s,`"`]}):h.map(t=>(0,e.jsxs)(`section`,{className:H.section,children:[(0,e.jsx)(`h3`,{className:H.sectionTitle,children:t.title}),(0,e.jsx)(`ul`,{className:H.list,children:t.shortcuts.map(t=>(0,e.jsxs)(`li`,{className:H.row,role:`listitem`,children:[(0,e.jsx)(`span`,{className:H.keys,"aria-label":t.keys.join(` + `),children:t.keys.map((n,r)=>(0,e.jsxs)(`span`,{className:H.keyCap,children:[(0,e.jsx)(`kbd`,{children:n}),r<t.keys.length-1&&(0,e.jsx)(`span`,{className:H.plus,"aria-hidden":`true`,children:`+`})]},r))}),(0,e.jsx)(`span`,{className:H.description,children:t.description})]},t.description))})]},t.title))})]})});return typeof document>`u`?g:(0,n.createPortal)(g,document.body)}var U={sidebar:`_sidebar_1hdq3_3`,sidebarCollapsed:`_sidebarCollapsed_1hdq3_15`,itemBtn:`_itemBtn_1hdq3_19`,header:`_header_1hdq3_26`,footer:`_footer_1hdq3_31`,list:`_list_1hdq3_38`,item:`_item_1hdq3_19`,active:`_active_1hdq3_84`,itemIcon:`_itemIcon_1hdq3_130`,itemLabel:`_itemLabel_1hdq3_143`,itemSuffix:`_itemSuffix_1hdq3_153`,count:`_count_1hdq3_160`},ei=(0,t.createContext)(null);function ti(){let e=(0,t.useContext)(ei);if(!e)throw Error(`ViewSwitcherSidebarItem must be used inside ViewSwitcherSidebar`);return e}function ni({value:n,onValueChange:r,"aria-label":i=`Views`,collapsed:a=!1,header:o,footer:s,children:c,className:l,...u}){let d=(0,t.useRef)(null);function f(e){let t=Array.from(d.current?.querySelectorAll(`[role=radio]:not(:disabled)`)??[]),n=t.findIndex(e=>e===document.activeElement);if(n===-1)return;let r=n;if(e.key===`ArrowDown`||e.key===`ArrowRight`)r=(n+1)%t.length;else if(e.key===`ArrowUp`||e.key===`ArrowLeft`)r=(n-1+t.length)%t.length;else if(e.key===`Home`)r=0;else if(e.key===`End`)r=t.length-1;else return;e.preventDefault(),t[r].focus(),t[r].click()}return(0,e.jsx)(ei.Provider,{value:{value:n,onValueChange:r,collapsed:a},children:(0,e.jsxs)(`nav`,{className:[U.sidebar,a?U.sidebarCollapsed:null,l].filter(Boolean).join(` `),onKeyDown:f,...u,children:[o&&(0,e.jsx)(`div`,{className:U.header,children:o}),(0,e.jsx)(`ul`,{ref:d,role:`radiogroup`,"aria-label":i,className:U.list,children:c}),s&&(0,e.jsx)(`div`,{className:U.footer,children:s})]})})}function ri({name:t,label:n,icon:r,count:i,suffix:a,disabled:o,className:s,...c}){let{value:l,onValueChange:u,collapsed:d}=ti(),f=l===t,p=a??i??null;return(0,e.jsx)(`li`,{className:U.item,children:(0,e.jsxs)(`button`,{type:`button`,role:`radio`,"aria-checked":f,tabIndex:f?0:-1,disabled:o,onClick:()=>u(t),className:[U.itemBtn,f?U.active:null,s].filter(Boolean).join(` `),...c,children:[r&&(0,e.jsx)(`span`,{className:U.itemIcon,children:(0,e.jsx)(j,{icon:r,size:`md`,"aria-hidden":!0})}),!d&&(0,e.jsx)(`span`,{className:U.itemLabel,children:n}),!d&&p!=null&&(0,e.jsx)(`span`,{className:U.itemSuffix,children:typeof p==`number`?(0,e.jsx)(`span`,{className:U.count,children:p>99?`99+`:p}):p})]})})}function ii({breakpoints:n,children:r,className:i,style:a,...o}){let s=(0,t.useRef)(null),[c,l]=(0,t.useState)({activeBreakpoint:null,width:0});return(0,t.useEffect)(()=>{let e=s.current;if(!e)return;let t=[...n].sort((e,t)=>e.maxWidth-t.maxWidth),r=e=>({activeBreakpoint:(t.find(t=>e<=t.maxWidth)??null)?.name??null,width:e});l(r(e.offsetWidth));let i=new ResizeObserver(e=>{let t=e[0];t&&l(r(t.contentBoxSize?.[0]?.inlineSize??t.contentRect.width))});return i.observe(e),()=>i.disconnect()},[JSON.stringify(n)]),(0,e.jsx)(`div`,{ref:s,className:i,style:{minWidth:0,...a},"data-breakpoint":c.activeBreakpoint??void 0,...o,children:r(c)})}var ai={row:`_row_1ba2f_3`,title:`_title_1ba2f_48`,leading:`_leading_1ba2f_59`,trailing:`_trailing_1ba2f_60`,default:`_default_1ba2f_68`,suggested:`_suggested_1ba2f_77`,destructive:`_destructive_1ba2f_86`};function oi({title:t,variant:n=`default`,leading:r,trailing:i,className:a,...o}){return(0,e.jsxs)(`button`,{className:[ai.row,ai[n],a].filter(Boolean).join(` `),...o,children:[r&&(0,e.jsx)(`span`,{className:ai.leading,children:r}),(0,e.jsx)(`span`,{className:ai.title,children:t}),i&&(0,e.jsx)(`span`,{className:ai.trailing,children:i})]})}var si={container:`_container_4kjnf_3`,primary:`_primary_4kjnf_14`,toggle:`_toggle_4kjnf_15`,separator:`_separator_4kjnf_66`,chevron:`_chevron_4kjnf_81`,default:`_default_4kjnf_88`,suggested:`_suggested_4kjnf_123`,destructive:`_destructive_4kjnf_145`,dropdown:`_dropdown_4kjnf_167`,dropdownVisible:`_dropdownVisible_4kjnf_185`};function ci({label:r,variant:i=`default`,dropdownContent:a,dropdownLabel:o=`More options`,disabled:s=!1,onClick:c,className:l,...u}){let[d,f]=(0,t.useState)(!1),[p,m]=(0,t.useState)({}),h=(0,t.useRef)(null),g=(0,t.useRef)(null),_=(0,t.useRef)(null),v=(0,t.useCallback)(()=>f(!1),[]),y=(0,t.useCallback)(()=>{if(!g.current||!_.current)return;let e=g.current.getBoundingClientRect(),t=_.current.getBoundingClientRect(),n=window.innerWidth,r=e.right-t.width;r<8&&(r=8),r+t.width>n-8&&(r=n-t.width-8),m({top:e.bottom+6,left:r})},[]);(0,t.useEffect)(()=>{if(!d)return;let e=requestAnimationFrame(()=>{y(),window.addEventListener(`scroll`,y,{passive:!0,capture:!0}),window.addEventListener(`resize`,y,{passive:!0})});return()=>{cancelAnimationFrame(e),window.removeEventListener(`scroll`,y,{capture:!0}),window.removeEventListener(`resize`,y)}},[d,y]),(0,t.useEffect)(()=>{if(!d)return;let e=e=>{!h.current?.contains(e.target)&&!_.current?.contains(e.target)&&v()};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[d,v]);let b=e=>{e.key===`Escape`&&(e.stopPropagation(),v(),g.current?.focus())},x=[si.container,si[i],l].filter(Boolean).join(` `),S=(0,e.jsx)(`div`,{ref:_,role:`dialog`,"aria-label":o,tabIndex:-1,className:[si.dropdown,d?si.dropdownVisible:null].filter(Boolean).join(` `),style:Object.keys(p).length?{...p,position:`fixed`}:{visibility:`hidden`,pointerEvents:`none`,top:-9999,left:-9999,position:`fixed`},onKeyDown:b,children:a});return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(`div`,{ref:h,className:x,children:[(0,e.jsx)(`button`,{className:si.primary,disabled:s,onClick:c,...u,children:r}),(0,e.jsx)(`span`,{className:si.separator,"aria-hidden":`true`}),(0,e.jsx)(`button`,{ref:g,className:si.toggle,disabled:s,"aria-label":o,"aria-haspopup":`dialog`,"aria-expanded":d,onClick:()=>f(e=>!e),children:(0,e.jsx)(`svg`,{className:si.chevron,width:`16`,height:`16`,viewBox:`0 0 16 16`,"aria-hidden":`true`,focusable:`false`,children:(0,e.jsx)(`path`,{d:`M4 6l4 4 4-4`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})})})]}),d&&(typeof document<`u`?(0,n.createPortal)(S,document.body):S)]})}var li={toolbar:`_toolbar_1avgl_2`,spacer:`_spacer_1avgl_20`};function ui({children:t,className:n,...r}){return(0,e.jsx)(`div`,{className:[li.toolbar,n].filter(Boolean).join(` `),...r,children:t})}function di({className:t,...n}){return(0,e.jsx)(`div`,{"aria-hidden":`true`,className:[li.spacer,t].filter(Boolean).join(` `),...n})}var fi={linked:`_linked_1tser_3`,vertical:`_vertical_1tser_9`};function pi({children:t,vertical:n=!1,className:r,...i}){return(0,e.jsx)(`div`,{className:[fi.linked,n?fi.vertical:null,r].filter(Boolean).join(` `),...i,children:t})}var mi={frame:`_frame_1bq7b_2`};function hi({children:t,className:n,...r}){return(0,e.jsx)(`div`,{className:[mi.frame,n].filter(Boolean).join(` `),...r,children:t})}var W={expanderRow:`_expanderRow_1wh8c_3`,header:`_header_1wh8c_11`,leading:`_leading_1wh8c_55`,content:`_content_1wh8c_64`,title:`_title_1wh8c_72`,subtitle:`_subtitle_1wh8c_83`,trailing:`_trailing_1wh8c_97`,chevronWrap:`_chevronWrap_1wh8c_106`,chevronOpen:`_chevronOpen_1wh8c_115`,chevron:`_chevron_1wh8c_106`,panel:`_panel_1wh8c_125`,expanded:`_expanded_1wh8c_131`,panelInner:`_panelInner_1wh8c_135`,childItem:`_childItem_1wh8c_142`};function gi({title:n,subtitle:r,leading:i,trailing:a,children:o,expanded:s,defaultExpanded:c=!1,onExpandedChange:l,className:u,...d}){let f=s!==void 0,[p,m]=(0,t.useState)(c),h=f?s:p,g=(0,t.useId)(),_=(0,t.useId)(),v=()=>{let e=!h;f||m(e),l?.(e)},y=t.Children.toArray(o).filter(Boolean);return(0,e.jsxs)(`div`,{className:[W.expanderRow,h?W.expanded:null,u].filter(Boolean).join(` `),...d,children:[(0,e.jsxs)(`button`,{id:_,className:W.header,"aria-expanded":h,"aria-controls":g,onClick:v,children:[i&&(0,e.jsx)(`span`,{className:W.leading,children:i}),(0,e.jsxs)(`span`,{className:W.content,children:[(0,e.jsx)(`span`,{className:W.title,children:n}),r&&(0,e.jsx)(`span`,{className:W.subtitle,children:r})]}),a&&(0,e.jsx)(`span`,{className:W.trailing,children:a}),(0,e.jsx)(`span`,{className:[W.chevronWrap,h?W.chevronOpen:null].filter(Boolean).join(` `),"aria-hidden":`true`,children:(0,e.jsx)(`svg`,{className:W.chevron,width:`16`,height:`16`,viewBox:`0 0 16 16`,focusable:`false`,children:(0,e.jsx)(`path`,{d:`M4 6l4 4 4-4`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})})})]}),(0,e.jsx)(`div`,{id:g,role:`region`,"aria-labelledby":_,className:W.panel,children:(0,e.jsx)(`div`,{className:W.panelInner,children:y.map((t,n)=>(0,e.jsxs)(`div`,{className:W.childItem,children:[(0,e.jsx)(k,{"aria-hidden":`true`}),t]},n))})})]})}var _i={switcher:`_switcher_15xk5_3`,item:`_item_15xk5_10`,iconOnly:`_iconOnly_15xk5_38`,itemIcon:`_itemIcon_15xk5_43`,itemLabel:`_itemLabel_15xk5_49`,default:`_default_15xk5_55`,active:`_active_15xk5_68`,flat:`_flat_15xk5_121`,round:`_round_15xk5_169`,pill:`_pill_15xk5_235`},vi=(0,t.createContext)(null);function yi(){let e=(0,t.useContext)(vi);if(!e)throw Error(`InlineViewSwitcherItem must be used inside InlineViewSwitcher`);return e}function bi({value:n,onValueChange:r,variant:i=`default`,"aria-label":a=`View switcher`,children:o,className:s,...c}){let l=(0,t.useRef)(null);function u(e){let t=Array.from(l.current?.querySelectorAll(`[role=radio]:not(:disabled)`)??[]),n=t.findIndex(e=>e===document.activeElement);if(n===-1)return;let r=n;if(e.key===`ArrowRight`||e.key===`ArrowDown`)r=(n+1)%t.length;else if(e.key===`ArrowLeft`||e.key===`ArrowUp`)r=(n-1+t.length)%t.length;else if(e.key===`Home`)r=0;else if(e.key===`End`)r=t.length-1;else return;e.preventDefault(),t[r].focus(),t[r].click()}return(0,e.jsx)(vi.Provider,{value:{value:n,onValueChange:r},children:(0,e.jsx)(`div`,{ref:l,role:`radiogroup`,"aria-label":a,onKeyDown:u,className:[_i.switcher,_i[i],s].filter(Boolean).join(` `),...c,children:o})})}function xi({name:t,label:n,icon:r,disabled:i,className:a,...o}){let{value:s,onValueChange:c}=yi(),l=s===t,u=r&&!n;return(0,e.jsxs)(`button`,{type:`button`,role:`radio`,"aria-checked":l,tabIndex:l?0:-1,disabled:i,onClick:()=>c(t),className:[_i.item,l?_i.active:null,u?_i.iconOnly:null,a].filter(Boolean).join(` `),...o,children:[r&&(0,e.jsx)(`span`,{className:_i.itemIcon,children:(0,e.jsx)(j,{icon:r,size:`md`,"aria-hidden":!0})}),n&&(0,e.jsx)(`span`,{className:_i.itemLabel,children:n})]})}var Si={row:`_row_jl3bc_3`,disabled:`_disabled_jl3bc_41`,leading:`_leading_jl3bc_49`,content:`_content_jl3bc_58`,title:`_title_jl3bc_66`,subtitle:`_subtitle_jl3bc_77`,switchTrack:`_switchTrack_jl3bc_91`,switchThumb:`_switchThumb_jl3bc_114`,switchThumbOn:`_switchThumbOn_jl3bc_126`};function Ci({title:n,subtitle:r,leading:i,checked:a,defaultChecked:o=!1,onCheckedChange:s,disabled:c=!1,className:l,onClick:u,...d}){let f=a!==void 0,[p,m]=(0,t.useState)(o),h=f?a:p,g=(0,t.useId)(),_=e=>{let t=!h;f||m(t),s?.(t),u?.(e)};return(0,e.jsxs)(`button`,{role:`switch`,"aria-checked":h,"aria-labelledby":g,disabled:c,className:[Si.row,c?Si.disabled:null,l].filter(Boolean).join(` `),onClick:_,...d,children:[i&&(0,e.jsx)(`span`,{className:Si.leading,children:i}),(0,e.jsxs)(`span`,{className:Si.content,id:g,children:[(0,e.jsx)(`span`,{className:Si.title,children:n}),r&&(0,e.jsx)(`span`,{className:Si.subtitle,children:r})]}),(0,e.jsx)(`span`,{className:Si.switchTrack,"aria-hidden":`true`,children:(0,e.jsx)(`span`,{className:[Si.switchThumb,h?Si.switchThumbOn:null].filter(Boolean).join(` `)})})]})}var G={row:`_row_1dije_3`,disabled:`_disabled_1dije_41`,checkboxWrap:`_checkboxWrap_1dije_49`,checkbox:`_checkbox_1dije_49`,checkboxChecked:`_checkboxChecked_1dije_71`,checkmark:`_checkmark_1dije_77`,leading:`_leading_1dije_84`,content:`_content_1dije_93`,title:`_title_1dije_101`,subtitle:`_subtitle_1dije_112`};function wi({title:n,subtitle:r,leading:i,checked:a,defaultChecked:o=!1,onCheckedChange:s,disabled:c=!1,className:l,onClick:u,...d}){let f=a!==void 0,[p,m]=(0,t.useState)(o),h=f?a:p,g=(0,t.useId)(),_=e=>{let t=!h;f||m(t),s?.(t),u?.(e)};return(0,e.jsxs)(`button`,{role:`checkbox`,"aria-checked":h,"aria-labelledby":g,disabled:c,className:[G.row,c?G.disabled:null,l].filter(Boolean).join(` `),onClick:_,...d,children:[(0,e.jsx)(`span`,{className:G.checkboxWrap,"aria-hidden":`true`,children:(0,e.jsx)(`span`,{className:[G.checkbox,h?G.checkboxChecked:null].filter(Boolean).join(` `),children:h&&(0,e.jsx)(`svg`,{className:G.checkmark,width:`12`,height:`12`,viewBox:`0 0 12 12`,focusable:`false`,children:(0,e.jsx)(`path`,{d:`M2 6l3 3 5-5`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.75`,strokeLinecap:`round`,strokeLinejoin:`round`})})})}),i&&(0,e.jsx)(`span`,{className:G.leading,children:i}),(0,e.jsxs)(`span`,{className:G.content,id:g,children:[(0,e.jsx)(`span`,{className:G.title,children:n}),r&&(0,e.jsx)(`span`,{className:G.subtitle,children:r})]})]})}var Ti=`_row_46mn8_3`,Ei=`_disabled_46mn8_16`,Di=`_leading_46mn8_23`,Oi=`_content_46mn8_32`,ki=`_title_46mn8_40`,Ai=`_subtitle_46mn8_51`,ji=`_comboWrap_46mn8_65`,Mi=`_trigger_46mn8_73`,Ni=`_triggerOpen_46mn8_126`,Pi=`_triggerLabel_46mn8_136`,Fi=`_placeholder_46mn8_144`,Ii=`_chevron_46mn8_150`,Li=`_chevronOpen_46mn8_157`,Ri=`_list_46mn8_163`,zi=`_listDown_46mn8_192`,Bi=`_listUp_46mn8_196`,Vi=`_option_46mn8_208`,Hi=`_optionActive_46mn8_225`,Ui=`_optionSelected_46mn8_229`,Wi=`_optionDisabled_46mn8_233`,Gi=`_optionLabel_46mn8_239`,Ki=`_checkIcon_46mn8_247`,K={row:Ti,disabled:Ei,leading:Di,content:Oi,title:ki,subtitle:Ai,comboWrap:ji,trigger:Mi,triggerOpen:Ni,triggerLabel:Pi,placeholder:Fi,chevron:Ii,chevronOpen:Li,list:Ri,"list-in":`_list-in_46mn8_1`,listDown:zi,listUp:Bi,"list-in-up":`_list-in-up_46mn8_1`,option:Vi,optionActive:Hi,optionSelected:Ui,optionDisabled:Wi,optionLabel:Gi,checkIcon:Ki};function qi({title:n,subtitle:r,leading:i,options:a,value:o,defaultValue:s,onValueChange:c,disabled:l=!1,className:u,...d}){let f=o!==void 0,[p,m]=(0,t.useState)(s),h=f?o:p,[g,_]=(0,t.useState)(!1),[v,y]=(0,t.useState)(-1),[b,x]=(0,t.useState)(!1),S=(0,t.useId)(),C=(0,t.useId)(),w=(0,t.useRef)(null),T=(0,t.useRef)(null),E=a.find(e=>e.value===h),D=(0,t.useCallback)(()=>{if(!w.current)return;let e=w.current.getBoundingClientRect(),t=window.innerHeight-e.bottom,n=Math.min(a.length*44+8,260);x(t<n&&e.top>n)},[a.length]),O=(0,t.useCallback)(()=>{if(l)return;D(),_(!0);let e=a.findIndex(e=>e.value===h&&!e.disabled);y(e>=0?e:a.findIndex(e=>!e.disabled))},[l,D,a,h]),k=(0,t.useCallback)(()=>{_(!1),y(-1),w.current?.focus()},[]),A=(0,t.useCallback)(e=>{e.disabled||(f||m(e.value),c?.(e.value),k())},[f,c,k]);(0,t.useEffect)(()=>{!g||v<0||!T.current||T.current.children[v]?.scrollIntoView({block:`nearest`})},[v,g]),(0,t.useEffect)(()=>{if(!g)return;let e=e=>{!w.current?.contains(e.target)&&!T.current?.contains(e.target)&&k()};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[g,k]);let ee=(0,t.useCallback)(e=>{switch(e.key){case`Enter`:case` `:case`ArrowDown`:e.preventDefault(),O();break;case`ArrowUp`:e.preventDefault(),D(),_(!0),y(a.reduce((e,t,n)=>t.disabled?e:n,-1));break}},[O,D,a]),te=(0,t.useCallback)(e=>{let t=a.map((e,t)=>({o:e,i:t})).filter(({o:e})=>!e.disabled).map(({i:e})=>e),n=t.indexOf(v);switch(e.key){case`ArrowDown`:{e.preventDefault();let r=t[Math.min(n+1,t.length-1)];y(r??v);break}case`ArrowUp`:{e.preventDefault();let r=t[Math.max(n-1,0)];y(r??v);break}case`Home`:e.preventDefault(),y(t[0]??-1);break;case`End`:e.preventDefault(),y(t[t.length-1]??-1);break;case`Enter`:case` `:e.preventDefault(),v>=0&&A(a[v]);break;case`Escape`:case`Tab`:k();break}},[a,v,A,k]);return(0,e.jsxs)(`div`,{className:[K.row,l?K.disabled:null,u].filter(Boolean).join(` `),...d,children:[i&&(0,e.jsx)(`span`,{className:K.leading,children:i}),(0,e.jsxs)(`span`,{className:K.content,children:[(0,e.jsx)(`span`,{className:K.title,children:n}),r&&(0,e.jsx)(`span`,{className:K.subtitle,children:r})]}),(0,e.jsxs)(`div`,{className:K.comboWrap,children:[(0,e.jsxs)(`button`,{ref:w,id:S,type:`button`,role:`combobox`,"aria-haspopup":`listbox`,"aria-expanded":g,"aria-controls":C,"aria-activedescendant":g&&v>=0?`${C}-opt-${v}`:void 0,disabled:l,className:[K.trigger,g?K.triggerOpen:null].filter(Boolean).join(` `),onClick:()=>g?k():O(),onKeyDown:ee,children:[(0,e.jsx)(`span`,{className:[K.triggerLabel,E?null:K.placeholder].filter(Boolean).join(` `),children:E?.label??`—`}),(0,e.jsx)(`svg`,{className:[K.chevron,g?K.chevronOpen:null].filter(Boolean).join(` `),width:`16`,height:`16`,viewBox:`0 0 16 16`,"aria-hidden":`true`,focusable:`false`,children:(0,e.jsx)(`path`,{d:`M4 6l4 4 4-4`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})})]}),g&&(0,e.jsx)(`ul`,{ref:T,id:C,role:`listbox`,"aria-labelledby":S,tabIndex:-1,className:[K.list,b?K.listUp:K.listDown].filter(Boolean).join(` `),onKeyDown:te,children:a.map((t,n)=>(0,e.jsxs)(`li`,{id:`${C}-opt-${n}`,role:`option`,"aria-selected":t.value===h,"aria-disabled":t.disabled,className:[K.option,t.value===h?K.optionSelected:null,n===v?K.optionActive:null,t.disabled?K.optionDisabled:null].filter(Boolean).join(` `),onMouseEnter:()=>!t.disabled&&y(n),onClick:()=>A(t),children:[(0,e.jsx)(`span`,{className:K.optionLabel,children:t.label}),t.value===h&&(0,e.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,"aria-hidden":`true`,focusable:`false`,className:K.checkIcon,children:(0,e.jsx)(`path`,{d:`M3 8l4 4 6-6`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.75`,strokeLinecap:`round`,strokeLinejoin:`round`})})]},t.value))})]})]})}var q={row:`_row_1kogj_3`,focused:`_focused_1kogj_16`,disabled:`_disabled_1kogj_25`,leading:`_leading_1kogj_33`,trailing:`_trailing_1kogj_40`,fieldWrap:`_fieldWrap_1kogj_49`,label:`_label_1kogj_61`,labelFloated:`_labelFloated_1kogj_82`,input:`_input_1kogj_91`,inputFloated:`_inputFloated_1kogj_114`};function Ji({title:n,value:r,defaultValue:i=``,onValueChange:a,leading:o,trailing:s,disabled:c,className:l,id:u,onChange:d,...f}){let p=(0,t.useId)(),m=u??p,h=r!==void 0,[g,_]=(0,t.useState)(String(i)),v=h?String(r):g,[y,b]=(0,t.useState)(!1),x=(0,t.useRef)(null),S=y||v.length>0;return(0,e.jsxs)(`div`,{className:[q.row,y?q.focused:null,c?q.disabled:null,l].filter(Boolean).join(` `),onClick:()=>x.current?.focus(),children:[o&&(0,e.jsx)(`span`,{className:q.leading,children:o}),(0,e.jsxs)(`span`,{className:q.fieldWrap,children:[(0,e.jsx)(`label`,{htmlFor:m,className:[q.label,S?q.labelFloated:null].filter(Boolean).join(` `),children:n}),(0,e.jsx)(`input`,{ref:x,id:m,className:[q.input,S?q.inputFloated:null].filter(Boolean).join(` `),value:v,disabled:c,onFocus:()=>b(!0),onBlur:()=>b(!1),onChange:e=>{h||_(e.target.value),a?.(e.target.value),d?.(e)},...f})]}),s&&(0,e.jsx)(`span`,{className:q.trailing,children:s})]})}var Yi={revealButton:`_revealButton_1j8z0_3`};function Xi({trailing:n,disabled:r,...i}){let[a,o]=(0,t.useState)(!1),s=(0,e.jsx)(`button`,{type:`button`,className:Yi.revealButton,onClick:e=>{e.stopPropagation(),o(e=>!e)},"aria-label":a?`Conceal password`:`Reveal password`,"aria-pressed":a,disabled:r,children:(0,e.jsx)(j,{icon:a?Pe:Ne,size:`md`,"aria-hidden":!0})});return(0,e.jsx)(Ji,{...i,type:a?`text`:`password`,disabled:r,trailing:(0,e.jsxs)(e.Fragment,{children:[n,s]})})}var J={row:`_row_ycg6f_3`,disabled:`_disabled_ycg6f_16`,leading:`_leading_ycg6f_23`,content:`_content_ycg6f_32`,title:`_title_ycg6f_40`,subtitle:`_subtitle_ycg6f_51`,spin:`_spin_ycg6f_65`,spinBtn:`_spinBtn_ycg6f_100`,spinValue:`_spinValue_ycg6f_144`};function Zi(e){let t=e.toString(),n=t.indexOf(`.`);return n===-1?0:t.length-n-1}function Qi(e,t,n){return Math.min(n,Math.max(t,e))}function $i({title:n,subtitle:r,leading:i,value:a,defaultValue:o=0,onValueChange:s,min:c=0,max:l=100,step:u=1,decimals:d,disabled:f=!1,className:p,...m}){let h=a!==void 0,[g,_]=(0,t.useState)(o),v=h?a:g,y=d??Zi(u),b=(0,t.useId)(),x=(0,t.useCallback)(e=>{let t=parseFloat(Qi(e,c,l).toFixed(y));h||_(t),s?.(t)},[h,c,l,y,s]),S=(0,t.useCallback)(e=>{switch(e.key){case`ArrowUp`:e.preventDefault(),x(v+u);break;case`ArrowDown`:e.preventDefault(),x(v-u);break;case`PageUp`:e.preventDefault(),x(v+u*10);break;case`PageDown`:e.preventDefault(),x(v-u*10);break;case`Home`:e.preventDefault(),x(c);break;case`End`:e.preventDefault(),x(l);break}},[v,u,c,l,x]);return(0,e.jsxs)(`div`,{className:[J.row,f?J.disabled:null,p].filter(Boolean).join(` `),...m,children:[i&&(0,e.jsx)(`span`,{className:J.leading,children:i}),(0,e.jsxs)(`span`,{className:J.content,children:[(0,e.jsx)(`span`,{className:J.title,children:n}),r&&(0,e.jsx)(`span`,{className:J.subtitle,children:r})]}),(0,e.jsxs)(`div`,{role:`spinbutton`,"aria-valuenow":v,"aria-valuemin":c,"aria-valuemax":l,"aria-labelledby":b,"aria-disabled":f||void 0,tabIndex:f?-1:0,onKeyDown:f?void 0:S,className:J.spin,children:[(0,e.jsx)(`button`,{type:`button`,tabIndex:-1,"aria-hidden":`true`,disabled:f||v<=c,className:J.spinBtn,onClick:e=>{e.stopPropagation(),x(v-u)},children:`−`}),(0,e.jsx)(`span`,{id:b,className:J.spinValue,"aria-hidden":`true`,children:v.toFixed(y)}),(0,e.jsx)(`button`,{type:`button`,tabIndex:-1,"aria-hidden":`true`,disabled:f||v>=l,className:J.spinBtn,onClick:e=>{e.stopPropagation(),x(v+u)},children:`+`})]})]})}var ea=`_view_1r1om_3`,ta=`_page_1r1om_12`,na=`_pageHeader_1r1om_23`,ra=`_pageTitle_1r1om_34`,ia=`_pageContent_1r1om_43`,aa=`_enterForward_1r1om_52`,oa=`_enterBack_1r1om_56`,sa={view:ea,page:ta,pageHeader:na,pageTitle:ra,pageContent:ia,enterForward:aa,"slide-in-right":`_slide-in-right_1r1om_1`,enterBack:oa,"slide-in-left":`_slide-in-left_1r1om_1`},ca=(0,t.createContext)({navigate:()=>{},pop:()=>{},canGoBack:!1,currentTag:``,direction:`forward`});function la(){return(0,t.useContext)(ca)}function ua({tag:n,title:r,children:i,className:a,...o}){let{currentTag:s,direction:c}=(0,t.useContext)(ca);return s===n?(0,e.jsxs)(`div`,{className:[sa.page,c===`forward`?sa.enterForward:sa.enterBack,a].filter(Boolean).join(` `),...o,children:[(0,e.jsx)(`div`,{className:sa.pageHeader,children:(0,e.jsx)(`span`,{className:sa.pageTitle,children:r})}),(0,e.jsx)(`div`,{className:sa.pageContent,children:i})]}):null}function da({initialPage:n,children:r,className:i,...a}){let[o,s]=(0,t.useState)([n]),c=o[o.length-1],l=o.length>1,[u,d]=(0,t.useState)(`forward`);return(0,e.jsx)(ca.Provider,{value:{navigate:e=>{d(`forward`),s(t=>[...t,e])},pop:()=>{o.length<=1||(d(`back`),s(e=>e.slice(0,-1)))},canGoBack:l,currentTag:c,direction:u},children:(0,e.jsx)(`div`,{className:[sa.view,i].filter(Boolean).join(` `),...a,children:r})})}var fa=`_backdrop_zzv98_3`,pa=`_sheet_zzv98_26`,ma=`_handle_zzv98_49`,ha=`_handleBar_zzv98_56`,ga=`_title_zzv98_66`,_a=`_content_zzv98_79`,va={backdrop:fa,"backdrop-in":`_backdrop-in_zzv98_1`,sheet:pa,"sheet-in":`_sheet-in_zzv98_1`,handle:ma,handleBar:ha,title:ga,content:_a},ya=`button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])`;function ba({open:r,title:i,children:a,onClose:o,closeOnBackdrop:s=!0,className:c,...l}){let u=(0,t.useRef)(null),d=(0,t.useId)(),f=(0,t.useRef)(null);(0,t.useEffect)(()=>{r?(f.current=document.activeElement,(u.current?.querySelector(ya))?.focus()):f.current?.focus()},[r]);let p=(0,t.useCallback)(e=>{if(e.key===`Escape`){e.preventDefault(),o?.();return}if(e.key!==`Tab`)return;let t=Array.from(u.current?.querySelectorAll(ya)??[]);if(t.length===0)return;let n=t[0],r=t[t.length-1];e.shiftKey?document.activeElement===n&&(e.preventDefault(),r.focus()):document.activeElement===r&&(e.preventDefault(),n.focus())},[o]);if(!r)return null;let m=(0,e.jsx)(`div`,{className:va.backdrop,onClick:s?o:void 0,"aria-hidden":`true`,children:(0,e.jsxs)(`div`,{ref:u,role:`dialog`,"aria-modal":`true`,"aria-labelledby":i?d:void 0,className:[va.sheet,c].filter(Boolean).join(` `),onKeyDown:p,onClick:e=>e.stopPropagation(),...l,children:[(0,e.jsx)(`div`,{className:va.handle,"aria-hidden":`true`,children:(0,e.jsx)(`div`,{className:va.handleBar})}),i&&(0,e.jsx)(`div`,{id:d,className:va.title,children:i}),a&&(0,e.jsx)(`div`,{className:va.content,children:a})]})});return typeof document>`u`?m:(0,n.createPortal)(m,document.body)}var Y={carousel:`_carousel_117hp_3`,horizontal:`_horizontal_117hp_20`,vertical:`_vertical_117hp_27`,slide:`_slide_117hp_36`,indicatorDots:`_indicatorDots_117hp_46`,dot:`_dot_117hp_54`,dotActive:`_dotActive_117hp_73`,indicatorLines:`_indicatorLines_117hp_85`,line:`_line_117hp_93`,lineActive:`_lineActive_117hp_110`};function xa({pages:t,currentPage:n,onPageSelected:r,className:i,...a}){return(0,e.jsx)(`div`,{className:[Y.indicatorDots,i].filter(Boolean).join(` `),role:`tablist`,"aria-label":`Carousel pages`,...a,children:Array.from({length:t},(t,i)=>(0,e.jsx)(`button`,{type:`button`,role:`tab`,"aria-selected":i===n,"aria-label":`Page ${i+1}`,className:[Y.dot,i===n?Y.dotActive:null].filter(Boolean).join(` `),onClick:()=>r?.(i)},i))})}function Sa({pages:t,currentPage:n,onPageSelected:r,className:i,...a}){return(0,e.jsx)(`div`,{className:[Y.indicatorLines,i].filter(Boolean).join(` `),role:`tablist`,"aria-label":`Carousel pages`,...a,children:Array.from({length:t},(t,i)=>(0,e.jsx)(`button`,{type:`button`,role:`tab`,"aria-selected":i===n,"aria-label":`Page ${i+1}`,className:[Y.line,i===n?Y.lineActive:null].filter(Boolean).join(` `),onClick:()=>r?.(i)},i))})}function Ca({children:n,orientation:r=`horizontal`,spacing:i=0,loop:a=!1,onPageChanged:o,page:s,className:c,...l}){let u=(0,t.useRef)(null),d=t.Children.count(n),[f,p]=(0,t.useState)(0),m=s!==void 0,h=m?s:f;(0,t.useEffect)(()=>{m&&g(s,`smooth`)},[s]);let g=(0,t.useCallback)((e,t=`smooth`)=>{let n=u.current;n&&(r===`horizontal`?n.scrollTo({left:n.clientWidth*e,behavior:t}):n.scrollTo({top:n.clientHeight*e,behavior:t}))},[r]);(0,t.useEffect)(()=>{let e=u.current;if(!e)return;let t=()=>{Array.from(e.children);let t=r===`horizontal`?e.clientWidth:e.clientHeight,n=r===`horizontal`?e.scrollLeft:e.scrollTop,i=Math.round(n/(t||1)),a=Math.max(0,Math.min(i,d-1));m||p(a),o?.(a)};return e.addEventListener(`scroll`,t,{passive:!0}),()=>e.removeEventListener(`scroll`,t)},[r,d,m,o]);let _=(0,t.useCallback)(e=>{let t=r===`horizontal`?e.key===`ArrowRight`:e.key===`ArrowDown`,n=r===`horizontal`?e.key===`ArrowLeft`:e.key===`ArrowUp`;if(t){e.preventDefault();let t=a?(h+1)%d:Math.min(h+1,d-1);g(t),m||p(t),o?.(t)}else if(n){e.preventDefault();let t=a?(h-1+d)%d:Math.max(h-1,0);g(t),m||p(t),o?.(t)}},[h,d,a,r,g,m,o]),v=r===`horizontal`;return(0,e.jsx)(`div`,{ref:u,role:`region`,"aria-roledescription":`carousel`,tabIndex:0,className:[Y.carousel,v?Y.horizontal:Y.vertical,c].filter(Boolean).join(` `),style:v?{columnGap:i||void 0}:{rowGap:i||void 0},onKeyDown:_,...l,children:t.Children.map(n,(t,n)=>(0,e.jsx)(`div`,{className:Y.slide,role:`group`,"aria-roledescription":`slide`,"aria-label":`${n+1} of ${d}`,children:t},n))})}function wa({children:t,...n}){return(0,e.jsx)(`div`,{...n,children:t})}var Ta={content:`_content_1xkwk_3`,icon:`_icon_1xkwk_9`,label:`_label_1xkwk_15`};function Ea({icon:t,label:n,iconPosition:r=`start`,className:i,...a}){return(0,e.jsxs)(`span`,{className:[Ta.content,r===`end`?Ta.iconEnd:null,i].filter(Boolean).join(` `),...a,children:[t&&r===`start`&&(0,e.jsx)(`span`,{className:Ta.icon,"aria-hidden":`true`,children:t}),(0,e.jsx)(`span`,{className:Ta.label,children:n}),t&&r===`end`&&(0,e.jsx)(`span`,{className:Ta.icon,"aria-hidden":`true`,children:t})]})}var Da={label:`_label_h3znl_3`,key:`_key_h3znl_9`},Oa={ctrl:`⌃`,control:`⌃`,shift:`⇧`,alt:`⌥`,option:`⌥`,super:`⊞`,win:`⊞`,cmd:`⌘`,command:`⌘`,meta:`⌘`,up:`↑`,down:`↓`,left:`←`,right:`→`,enter:`↵`,return:`↵`,backspace:`⌫`,delete:`⌦`,escape:`⎋`,esc:`⎋`,tab:`⇥`,space:`␣`,pageup:`⇞`,pagedown:`⇟`,home:`⇱`,end:`⇲`};function ka({shortcut:t,symbols:n=!0,className:r,...i}){let a=t.split(`+`).map(e=>e.trim()).filter(Boolean);return(0,e.jsx)(`span`,{className:[Da.label,r].filter(Boolean).join(` `),"aria-label":t,...i,children:a.map((t,r)=>{let i=n?Oa[t.toLowerCase()]??t:t;return(0,e.jsx)(`kbd`,{className:Da.key,children:i},r)})})}var Aa={toolbarView:`_toolbarView_134hf_3`,top:`_top_134hf_11`,content:`_content_134hf_16`,bottom:`_bottom_134hf_23`};function ja({topBar:t,bottomBar:n,children:r,className:i,...a}){return(0,e.jsxs)(`div`,{className:[Aa.toolbarView,i].filter(Boolean).join(` `),...a,children:[t&&(0,e.jsx)(`div`,{className:Aa.top,children:t}),(0,e.jsx)(`div`,{className:Aa.content,children:r}),n&&(0,e.jsx)(`div`,{className:Aa.bottom,children:n})]})}var Ma={windowTitle:`_windowTitle_zm877_3`,title:`_title_zm877_11`,subtitle:`_subtitle_zm877_24`};function Na({title:t,subtitle:n,className:r,...i}){return(0,e.jsxs)(`div`,{className:[Ma.windowTitle,r].filter(Boolean).join(` `),...i,children:[(0,e.jsx)(`span`,{className:Ma.title,children:t}),n&&(0,e.jsx)(`span`,{className:Ma.subtitle,children:n})]})}var Pa={group:`_group_17s4f_3`,header:`_header_17s4f_11`,headerText:`_headerText_17s4f_17`,title:`_title_17s4f_25`,description:`_description_17s4f_33`,suffix:`_suffix_17s4f_42`,content:`_content_17s4f_48`};function Fa({title:t,description:n,headerSuffix:r,children:i,className:a,...o}){let s=t||n||r;return(0,e.jsxs)(`div`,{className:[Pa.group,a].filter(Boolean).join(` `),...o,children:[s&&(0,e.jsxs)(`div`,{className:Pa.header,children:[(0,e.jsxs)(`div`,{className:Pa.headerText,children:[t&&(0,e.jsx)(`span`,{className:Pa.title,children:t}),n&&(0,e.jsx)(`span`,{className:Pa.description,children:n})]}),r&&(0,e.jsx)(`div`,{className:Pa.suffix,children:r})]}),(0,e.jsx)(`div`,{className:Pa.content,children:i})]})}var Ia={page:`_page_gt42j_3`,inner:`_inner_gt42j_10`};function La({title:t,iconName:n,children:r,className:i,...a}){return(0,e.jsx)(`div`,{className:[Ia.page,i].filter(Boolean).join(` `),role:`tabpanel`,...a,children:(0,e.jsx)(`div`,{className:Ia.inner,children:r})})}var Ra=`_backdrop_1u1bd_3`,za=`_dialog_1u1bd_26`,Ba=`_dialogMulti_1u1bd_46`,Va=`_header_1u1bd_63`,Ha=`_closeBtn_1u1bd_73`,Ua=`_title_1u1bd_102`,Wa=`_searchWrap_1u1bd_112`,Ga=`_searchInput_1u1bd_116`,Ka=`_body_1u1bd_143`,qa=`_sidebar_1u1bd_152`,Ja=`_navList_1u1bd_160`,Ya=`_navItem_1u1bd_169`,Xa=`_navItemActive_1u1bd_190`,Za=`_navIcon_1u1bd_205`,Qa=`_navLabel_1u1bd_211`,$a=`_pageWrap_1u1bd_221`,X={backdrop:Ra,"backdrop-in":`_backdrop-in_1u1bd_1`,dialog:za,"dialog-in":`_dialog-in_1u1bd_1`,dialogMulti:Ba,header:Va,closeBtn:Ha,title:Ua,searchWrap:Wa,searchInput:Ga,body:Ka,sidebar:qa,navList:Ja,navItem:Ya,navItemActive:Xa,navIcon:Za,navLabel:Qa,pageWrap:$a},eo=`button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])`;function to(e,t){if(e.key!==`Tab`)return;let n=Array.from(t.current?.querySelectorAll(eo)??[]);if(!n.length)return;let r=n[0],i=n[n.length-1];e.shiftKey?document.activeElement===r&&(e.preventDefault(),i.focus()):document.activeElement===i&&(e.preventDefault(),r.focus())}function no({open:r,onClose:i,children:a,searchable:o=!0,className:s,...c}){let l=(0,t.useRef)(null),u=(0,t.useRef)(null),d=(0,t.useId)(),f=t.Children.toArray(a).filter(e=>(0,t.isValidElement)(e)),[p,m]=(0,t.useState)(0),[h,g]=(0,t.useState)(``);(0,t.useEffect)(()=>{if(r){m(0),g(``);let e=requestAnimationFrame(()=>{o&&u.current?u.current.focus():(l.current?.querySelector(eo))?.focus()});return()=>cancelAnimationFrame(e)}},[r,o]);let _=(0,t.useCallback)(e=>{if(e.key===`Escape`){e.stopPropagation(),i();return}to(e,l)},[i]),v=f.length>1,y=f[p]??f[0],b=h.trim().toLowerCase();return r?(0,n.createPortal)((0,e.jsx)(`div`,{className:X.backdrop,onClick:e=>{e.target===e.currentTarget&&i()},role:`presentation`,children:(0,e.jsxs)(`div`,{ref:l,role:`dialog`,"aria-modal":`true`,"aria-labelledby":d,className:[X.dialog,v?X.dialogMulti:null,s].filter(Boolean).join(` `),onKeyDown:_,...c,children:[(0,e.jsxs)(`div`,{className:X.header,children:[(0,e.jsx)(`button`,{type:`button`,className:X.closeBtn,onClick:i,"aria-label":`Close preferences`,children:`✕`}),(0,e.jsx)(`span`,{id:d,className:X.title,children:`Preferences`}),o&&(0,e.jsx)(`div`,{className:X.searchWrap,children:(0,e.jsx)(`input`,{ref:u,type:`search`,placeholder:`Search…`,value:h,onChange:e=>g(e.target.value),className:X.searchInput,"aria-label":`Search preferences`})})]}),(0,e.jsxs)(`div`,{className:X.body,children:[v&&(0,e.jsx)(`nav`,{className:X.sidebar,"aria-label":`Preferences pages`,children:(0,e.jsx)(`ul`,{role:`tablist`,className:X.navList,children:f.map((t,n)=>(0,e.jsx)(`li`,{role:`presentation`,children:(0,e.jsxs)(`button`,{role:`tab`,type:`button`,"aria-selected":n===p,className:[X.navItem,n===p?X.navItemActive:null].filter(Boolean).join(` `),onClick:()=>m(n),children:[t.props.iconName&&(0,e.jsx)(`span`,{className:[X.navIcon,`icon`,t.props.iconName].join(` `),"aria-hidden":`true`}),(0,e.jsx)(`span`,{className:X.navLabel,children:t.props.title})]})},n))})}),(0,e.jsx)(`div`,{className:X.pageWrap,children:y&&(0,t.cloneElement)(y,{"data-search-query":b||void 0})})]})]})}),document.body):null}var Z={vertical:`_vertical_12mfk_12`,item:`_item_12mfk_18`,leading:`_leading_12mfk_25`,nodeTrack:`_nodeTrack_12mfk_32`,content:`_content_12mfk_41`,horizontal:`_horizontal_12mfk_65`,node:`_node_12mfk_32`,nodeDot:`_nodeDot_12mfk_114`,nodeWithIcon:`_nodeWithIcon_12mfk_121`,iconWrap:`_iconWrap_12mfk_128`,lineInvisible:`_lineInvisible_12mfk_139`,line:`_line_12mfk_139`,lineDotted:`_lineDotted_12mfk_153`};function ro({items:t,orientation:n=`vertical`,variant:r=`default`,className:i,...a}){let o=n===`horizontal`,s=r!==`none`;return(0,e.jsx)(`div`,{role:`list`,className:[Z.root,o?Z.horizontal:Z.vertical,i].filter(Boolean).join(` `),...a,children:t.map((n,i)=>{let a=i===0,c=i===t.length-1,l=[Z.line,r===`dotted`?Z.lineDotted:null].filter(Boolean).join(` `),u=(0,e.jsx)(`div`,{className:[Z.node,n.icon?Z.nodeWithIcon:Z.nodeDot].filter(Boolean).join(` `),children:n.icon&&(0,e.jsx)(`span`,{className:Z.iconWrap,"aria-hidden":`true`,children:n.icon})});return(0,e.jsxs)(`div`,{role:`listitem`,className:Z.item,children:[(0,e.jsx)(`div`,{className:Z.leading,children:n.leading}),o?(0,e.jsxs)(`div`,{className:Z.nodeTrack,children:[(0,e.jsx)(`div`,{className:[Z.line,r===`dotted`?Z.lineDotted:null,a||!s?Z.lineInvisible:null].filter(Boolean).join(` `),"aria-hidden":`true`}),u,(0,e.jsx)(`div`,{className:[Z.line,r===`dotted`?Z.lineDotted:null,c||!s?Z.lineInvisible:null].filter(Boolean).join(` `),"aria-hidden":`true`})]}):(0,e.jsxs)(`div`,{className:Z.nodeTrack,children:[u,!c&&s&&(0,e.jsx)(`div`,{className:l,"aria-hidden":`true`})]}),(0,e.jsx)(`div`,{className:Z.content,children:n.content})]},i)})})}var io={pathBar:`_pathBar_1n4ev_3`,list:`_list_1n4ev_12`,item:`_item_1n4ev_25`,separator:`_separator_1n4ev_33`,segment:`_segment_1n4ev_44`,current:`_current_1n4ev_81`,icon:`_icon_1n4ev_98`};function ao({segments:t,onNavigate:n,className:r,...i}){return(0,e.jsx)(`nav`,{"aria-label":`Breadcrumb`,className:[io.pathBar,r].filter(Boolean).join(` `),...i,children:(0,e.jsx)(`ol`,{className:io.list,"aria-label":`Path segments`,children:t.map((r,i)=>{let a=i===t.length-1;return(0,e.jsxs)(`li`,{className:io.item,children:[i>0&&(0,e.jsx)(`span`,{className:io.separator,"aria-hidden":`true`,children:(0,e.jsx)(`svg`,{width:`12`,height:`12`,viewBox:`0 0 12 12`,focusable:`false`,children:(0,e.jsx)(`path`,{d:`M4 2l4 4-4 4`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})})}),a?(0,e.jsxs)(`span`,{className:io.current,"aria-current":`page`,children:[r.icon&&(0,e.jsx)(`span`,{className:io.icon,"aria-hidden":`true`,children:r.icon}),r.label]}):(0,e.jsxs)(`button`,{type:`button`,className:io.segment,onClick:()=>n?.(r.path,i),children:[r.icon&&(0,e.jsx)(`span`,{className:io.icon,"aria-hidden":`true`,children:r.icon}),r.label]})]},r.path)})})})}var Q={wrapper:`_wrapper_1upmq_1`,svg:`_svg_1upmq_10`,label:`_label_1upmq_15`,cell:`_cell_1upmq_23`,tooltip:`_tooltip_1upmq_58`,legend:`_legend_1upmq_74`,legendLabel:`_legendLabel_1upmq_81`,legendCell:`_legendCell_1upmq_89`},oo=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],so=[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],co=28,lo=20,uo=[`var(--gnome-card-shade-color, rgba(0,0,0,0.07))`,`var(--gnome-green-1, #8ff0a4)`,`var(--gnome-green-2, #57e389)`,`var(--gnome-green-4, #2ec27e)`,`var(--gnome-green-5, #26a269)`];function fo(e){return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,`0`)}-${String(e.getDate()).padStart(2,`0`)}`}function po(e){let[t,n,r]=e.split(`-`).map(Number);return new Date(t,n-1,r)}function mo(e){return po(e).toLocaleDateString(`en-US`,{weekday:`long`,year:`numeric`,month:`long`,day:`numeric`})}function ho({data:n,maxLevel:r=4,colorScale:i,cellSize:a=12,cellGap:o=3,weekStartDay:s=1,showMonthLabels:c=!0,showDayLabels:l=!0,showLegend:u=!0,weeks:d=52,ariaLabel:f=`Contribution graph`,onDayClick:p,tooltipContent:m,className:h}){let g=a+o,_=(0,t.useRef)(null),v=(0,t.useRef)(null),y=i??uo,[b,x]=(0,t.useState)({col:0,row:0}),[S,C]=(0,t.useState)(null),w=(0,t.useMemo)(()=>{let e=new Map;for(let t of n)e.set(t.date,t.count);return e},[n]),T=(0,t.useMemo)(()=>Math.max(1,...n.map(e=>e.count)),[n]),{grid:E,monthLabels:D}=(0,t.useMemo)(()=>{let e=new Date;e.setHours(0,0,0,0);let t=(e.getDay()-s+7)%7,n=new Date(e);n.setDate(e.getDate()-t);let i=new Date(n);i.setDate(n.getDate()-(d-1)*7);let a=[],o=[],c=-1;for(let t=0;t<d;t++){let n=new Date(i);n.setDate(i.getDate()+t*7),n.getMonth()!==c&&(o.push({col:t,month:oo[n.getMonth()]}),c=n.getMonth());let s=[];for(let n=0;n<7;n++){let a=new Date(i);a.setDate(i.getDate()+t*7+n);let o=a>e,c=fo(a),l=o?0:w.get(c)??0,u=l===0?0:Math.min(r,Math.ceil(l/T*r));s.push({iso:c,count:l,level:u,future:o})}a.push(s)}return{grid:a,monthLabels:o}},[w,T,r,d,s]),O=(0,t.useMemo)(()=>[1,3,5].map(e=>({row:(e-s+7)%7,label:so[e]})),[s]),k=l?co:0,A=c?lo:0,ee=k+d*g-o,te=A+7*g-o,ne=Math.min(4,Math.floor(a/3));function re(e,t){let n=Math.max(0,Math.min(d-1,e)),r=Math.max(0,Math.min(6,t));x({col:n,row:r}),_.current?.querySelector(`[data-col="${n}"][data-row="${r}"]`)?.focus()}function ie(e,t,n){let r={ArrowRight:[t+1,n],ArrowLeft:[t-1,n],ArrowDown:[t,n+1],ArrowUp:[t,n-1]};if(r[e.key])e.preventDefault(),re(...r[e.key]);else if(e.key===`Enter`||e.key===` `){e.preventDefault();let r=E[t]?.[n];r&&!r.future&&p?.({date:r.iso,count:r.count})}}function ae(e,t){let n=v.current;if(!n)return;let r=n.getBoundingClientRect(),i=e.currentTarget.getBoundingClientRect();C({x:i.left-r.left+a/2,y:i.top-r.top,text:t})}function oe(e){return e.future?y[0]:y[Math.min(e.level,y.length-1)]??y[y.length-1]}function se(e){return e.future?mo(e.iso):m?.({date:e.iso,count:e.count})??`${e.count} contribution${e.count===1?``:`s`} on ${mo(e.iso)}`}return(0,e.jsxs)(`div`,{ref:v,className:[Q.wrapper,h].filter(Boolean).join(` `),children:[(0,e.jsxs)(`svg`,{ref:_,width:ee,height:te,className:Q.svg,"aria-label":f,role:`img`,children:[c&&D.map(({col:t,month:n})=>(0,e.jsx)(`text`,{x:k+t*g,y:12,className:Q.label,children:n},`m-${t}`)),l&&O.map(({row:t,label:n})=>(0,e.jsx)(`text`,{x:0,y:A+t*g+a-1,className:Q.label,children:n},`d-${t}`)),(0,e.jsx)(`g`,{role:`grid`,"aria-label":f,children:E.map((t,n)=>(0,e.jsx)(`g`,{role:`row`,children:t.map((t,r)=>{let i=se(t),o=b.col===n&&b.row===r;return(0,e.jsx)(`rect`,{"data-col":n,"data-row":r,x:k+n*g,y:A+r*g,width:a,height:a,rx:ne,fill:oe(t),opacity:t.future?.35:1,className:Q.cell,role:`gridcell`,"aria-label":i,"aria-disabled":t.future||void 0,tabIndex:o?0:-1,onClick:()=>!t.future&&p?.({date:t.iso,count:t.count}),onKeyDown:e=>ie(e,n,r),onFocus:()=>x({col:n,row:r}),onMouseEnter:e=>ae(e,i),onMouseLeave:()=>C(null)},`${n}-${r}`)})},n))})]}),S&&(0,e.jsx)(`div`,{className:Q.tooltip,style:{left:S.x,top:S.y},role:`tooltip`,children:S.text}),u&&(0,e.jsxs)(`div`,{className:Q.legend,children:[(0,e.jsx)(`span`,{className:Q.legendLabel,children:`Less`}),Array.from({length:r+1},(t,n)=>(0,e.jsx)(`svg`,{width:a,height:a,"aria-hidden":`true`,className:Q.legendCell,children:(0,e.jsx)(`rect`,{width:a,height:a,rx:ne,fill:y[Math.min(n,y.length-1)]})},n)),(0,e.jsx)(`span`,{className:Q.legendLabel,children:`More`})]})]})}var $={outer:`_outer_1pg3h_3`,scroll:`_scroll_1pg3h_13`,table:`_table_1pg3h_20`,thead:`_thead_1pg3h_28`,th:`_th_1pg3h_28`,headerLabel:`_headerLabel_1pg3h_48`,sortBtn:`_sortBtn_1pg3h_55`,sortBtnActive:`_sortBtnActive_1pg3h_84`,sortActive:`_sortActive_1pg3h_89`,sortNeutral:`_sortNeutral_1pg3h_93`,tbody:`_tbody_1pg3h_99`,row:`_row_1pg3h_105`,rowSelectable:`_rowSelectable_1pg3h_114`,rowSelected:`_rowSelected_1pg3h_126`,td:`_td_1pg3h_144`,alignStart:`_alignStart_1pg3h_156`,alignCenter:`_alignCenter_1pg3h_160`,alignEnd:`_alignEnd_1pg3h_164`,checkboxCol:`_checkboxCol_1pg3h_170`,checkbox:`_checkbox_1pg3h_170`,emptyCell:`_emptyCell_1pg3h_186`,emptyLabel:`_emptyLabel_1pg3h_191`},go={start:$.alignStart,center:$.alignCenter,end:$.alignEnd};function _o({direction:t}){return(0,e.jsx)(`svg`,{width:`10`,height:`10`,viewBox:`0 0 10 10`,"aria-hidden":`true`,className:t?$.sortActive:$.sortNeutral,children:t===`asc`?(0,e.jsx)(`path`,{d:`M5 2 L9 8 L1 8 Z`,fill:`currentColor`}):t===`desc`?(0,e.jsx)(`path`,{d:`M5 8 L1 2 L9 2 Z`,fill:`currentColor`}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(`path`,{d:`M5 1 L8 5 L2 5 Z`,fill:`currentColor`,opacity:`0.4`}),(0,e.jsx)(`path`,{d:`M5 9 L2 5 L8 5 Z`,fill:`currentColor`,opacity:`0.4`})]})})}function vo({columns:n,rows:r,rowKey:i,selectionMode:a=`none`,selectedRows:o=[],onSelectionChange:s,sortState:c,onSort:l,height:u,emptyState:d,className:f,ariaLabel:p}){let m=(0,t.useRef)(null),[h,g]=(0,t.useState)(0),_=new Set(o),v=a===`multiple`,y=n.length+(v?1:0);function b(e){l&&l(e,c?.columnId===e&&c.direction===`asc`?`desc`:`asc`)}function x(e){if(!(a===`none`||!s))if(a===`single`)s(_.has(e)?[]:[e]);else{let t=new Set(_);t.has(e)?t.delete(e):t.add(e),s([...t])}}function S(e,t,n){let i=m.current?.querySelectorAll(`tr`)??[];if(e.key===`ArrowDown`){e.preventDefault();let n=Math.min(r.length-1,t+1);g(n),i[n]?.focus()}else if(e.key===`ArrowUp`){e.preventDefault();let n=Math.max(0,t-1);g(n),i[n]?.focus()}else (e.key===` `||e.key===`Enter`)&&(e.preventDefault(),x(n))}function C(e){s&&s(e?r.map(i):[])}let w=u?{height:typeof u==`number`?`${u}px`:u}:{};return(0,e.jsx)(`div`,{className:[$.outer,f].filter(Boolean).join(` `),children:(0,e.jsx)(`div`,{className:$.scroll,style:w,children:(0,e.jsxs)(`table`,{className:$.table,role:`grid`,"aria-label":p,"aria-multiselectable":a===`multiple`||void 0,children:[(0,e.jsx)(`thead`,{className:$.thead,children:(0,e.jsxs)(`tr`,{children:[v&&(0,e.jsx)(`th`,{className:[$.th,$.checkboxCol].join(` `),children:(0,e.jsx)(`input`,{type:`checkbox`,className:$.checkbox,checked:r.length>0&&o.length===r.length,ref:e=>{e&&(e.indeterminate=o.length>0&&o.length<r.length)},onChange:e=>C(e.target.checked),"aria-label":`Select all rows`})}),n.map(t=>{let n=c?.columnId===t.id;return(0,e.jsx)(`th`,{className:[$.th,t.align?go[t.align]:null].filter(Boolean).join(` `),style:t.width?{width:t.width}:void 0,"aria-sort":n?c.direction===`asc`?`ascending`:`descending`:t.sortable?`none`:void 0,children:t.sortable&&l?(0,e.jsxs)(`button`,{type:`button`,className:[$.sortBtn,n?$.sortBtnActive:null].filter(Boolean).join(` `),onClick:()=>b(t.id),children:[(0,e.jsx)(`span`,{children:t.header}),(0,e.jsx)(_o,{direction:n?c.direction:null})]}):(0,e.jsx)(`span`,{className:$.headerLabel,children:t.header})},t.id)})]})}),(0,e.jsx)(`tbody`,{ref:m,className:$.tbody,children:r.length===0?(0,e.jsx)(`tr`,{children:(0,e.jsx)(`td`,{colSpan:y,className:$.emptyCell,children:d??(0,e.jsx)(`span`,{className:$.emptyLabel,children:`No items`})})}):r.map((t,r)=>{let o=i(t),s=_.has(o);return(0,e.jsxs)(`tr`,{className:[$.row,s?$.rowSelected:null,a===`none`?null:$.rowSelectable].filter(Boolean).join(` `),role:`row`,"aria-selected":a===`none`?void 0:s,tabIndex:h===r?0:-1,onClick:()=>x(o),onKeyDown:e=>S(e,r,o),onFocus:()=>g(r),children:[v&&(0,e.jsx)(`td`,{className:[$.td,$.checkboxCol].join(` `),children:(0,e.jsx)(`input`,{type:`checkbox`,className:$.checkbox,checked:s,onChange:()=>x(o),onClick:e=>e.stopPropagation(),tabIndex:-1,"aria-label":`Select row ${r+1}`})}),n.map(n=>(0,e.jsx)(`td`,{className:[$.td,n.align?go[n.align]:null].filter(Boolean).join(` `),role:`gridcell`,children:n.cell(t,r)},n.id))]},o)})})]})})})}var yo={terminal:`_terminal_1gr0s_3`,pre:`_pre_1gr0s_18`,line:`_line_1gr0s_25`,success:`_success_1gr0s_41`,warning:`_warning_1gr0s_45`,destructive:`_destructive_1gr0s_49`};function bo({lines:n,variant:r=`default`,maxLines:i=500,autoScroll:a=!0,className:o,...s}){let c=(0,t.useRef)(null),l=n.slice(-i);return(0,t.useEffect)(()=>{a&&c.current?.scrollIntoView({block:`nearest`})},[l.length,a]),(0,e.jsx)(`div`,{className:[yo.terminal,yo[r],o].filter(Boolean).join(` `),...s,children:(0,e.jsxs)(`pre`,{className:yo.pre,children:[l.map((t,n)=>(0,e.jsx)(`div`,{className:yo.line,children:t},n)),(0,e.jsx)(`div`,{ref:c})]})})}var xo={badge:`_badge_yj13e_3`,success:`_success_yj13e_18`,warning:`_warning_yj13e_23`,error:`_error_yj13e_28`,new:`_new_yj13e_33`,accent:`_accent_yj13e_38`,neutral:`_neutral_yj13e_43`};function So({variant:t=`neutral`,className:n,children:r,...i}){return(0,e.jsx)(`span`,{className:[xo.badge,xo[t],n].filter(Boolean).join(` `),...i,children:r})}exports.AboutDialog=zn,exports.ActionRow=Rt,exports.Avatar=D,exports.Badge=Te,exports.Banner=ye,exports.Bin=wa,exports.Blockquote=i,exports.BottomSheet=ba,exports.Box=Or,exports.BoxedList=Bt,exports.BreakpointBin=ii,exports.Button=o,exports.ButtonContent=Ea,exports.ButtonRow=oi,exports.Card=b,exports.Carousel=Ca,exports.CarouselIndicatorDots=xa,exports.CarouselIndicatorLines=Sa,exports.CheckRow=wi,exports.Checkbox=ne,exports.Chip=Mr,exports.Clamp=gr,exports.ColumnView=vo,exports.ComboRow=qi,exports.ContributionGraph=ho,exports.CountDownTimer=De,exports.Dialog=dn,exports.Dropdown=ir,exports.EntryRow=Ji,exports.ExpanderRow=gi,exports.Footer=Ce,exports.Frame=hi,exports.GNOME_BREAKPOINTS=ze,exports.HeaderBar=xe,exports.Icon=j,exports.InlineViewSwitcher=bi,exports.InlineViewSwitcherItem=xi,exports.Link=Sr,exports.LinkedGroup=pi,exports.NavigationPage=ua,exports.NavigationSplitView=_r,exports.NavigationView=da,exports.OverlaySplitView=vr,exports.PasswordEntryRow=Xi,exports.PathBar=ao,exports.Popover=mr,exports.PreferencesDialog=no,exports.PreferencesGroup=Fa,exports.PreferencesPage=La,exports.ProgressBar=ce,exports.RadioButton=oe,exports.SearchBar=Ie,exports.Separator=k,exports.ShortcutLabel=ka,exports.ShortcutsDialog=$r,exports.Sidebar=Ct,exports.SidebarCollapsedContext=vt,exports.SidebarItem=At,exports.SidebarSection=Tt,exports.Slider=lr,exports.Spacer=di,exports.SpinButton=Pt,exports.SpinRow=$i,exports.Spinner=S,exports.SplitButton=ci,exports.StatusBadge=So,exports.StatusPage=Re,exports.Switch=ee,exports.SwitchRow=Ci,exports.TabBar=Ft,exports.TabItem=It,exports.TabPanel=Lt,exports.TerminalView=bo,exports.Text=g,exports.TextField=ie,exports.Timeline=ro,exports.Toast=$t,exports.Toaster=en,exports.ToggleGroup=Er,exports.ToggleGroupItem=Dr,exports.Toolbar=ui,exports.ToolbarView=ja,exports.Tooltip=kt,exports.ViewSwitcher=Ht,exports.ViewSwitcherBar=br,exports.ViewSwitcherItem=Ut,exports.ViewSwitcherSidebar=ni,exports.ViewSwitcherSidebarItem=ri,exports.WindowTitle=Na,exports.WrapBox=Ar,exports.useBreakpoint=Be,exports.useNavigation=la,exports.useSidebarCollapsed=yt;
2
2
  //# sourceMappingURL=index.cjs.map