@gnome-ui/react 1.18.0 → 1.20.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,41 @@
1
+ export interface ContributionDay {
2
+ /** ISO 8601 date — "YYYY-MM-DD". */
3
+ date: string;
4
+ /** Non-negative activity count. */
5
+ count: number;
6
+ }
7
+ export interface ContributionGraphProps {
8
+ /** Activity data. Days absent from the array are treated as count = 0. */
9
+ data: ContributionDay[];
10
+ /**
11
+ * Number of intensity levels (excluding 0).
12
+ * @default 4
13
+ */
14
+ maxLevel?: number;
15
+ /**
16
+ * Colour scale — length must be maxLevel + 1 (index 0 = empty).
17
+ * Defaults to the Adwaita green palette.
18
+ */
19
+ colorScale?: string[];
20
+ /** Cell side length in pixels. @default 12 */
21
+ cellSize?: number;
22
+ /** Gap between cells in pixels. @default 3 */
23
+ cellGap?: number;
24
+ /** 0 = Sunday · 1 = Monday (GNOME locale default). @default 1 */
25
+ weekStartDay?: 0 | 1;
26
+ /** @default true */
27
+ showMonthLabels?: boolean;
28
+ /** @default true */
29
+ showDayLabels?: boolean;
30
+ /** @default true */
31
+ showLegend?: boolean;
32
+ /** Number of week columns to display. @default 52 */
33
+ weeks?: number;
34
+ /** @default "Contribution graph" */
35
+ ariaLabel?: string;
36
+ onDayClick?: (day: ContributionDay) => void;
37
+ /** Returns a plain-text tooltip string for a day. */
38
+ tooltipContent?: (day: ContributionDay) => string;
39
+ className?: string;
40
+ }
41
+ export declare function ContributionGraph({ data, maxLevel, colorScale, cellSize, cellGap, weekStartDay, showMonthLabels, showDayLabels, showLegend, weeks, ariaLabel, onDayClick, tooltipContent, className, }: ContributionGraphProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { ContributionGraph } from './ContributionGraph';
2
+ export type { ContributionGraphProps, ContributionDay } from './ContributionGraph';
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 ee(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 E({name:t=``,src:n,alt:r,size:i=`md`,color:a,className:o,...s}){let c=a??(t?T(t):`blue`),l=ee(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 D={separator:`_separator_w9b4s_3`,horizontal:`_horizontal_w9b4s_12`,vertical:`_vertical_w9b4s_20`};function O({orientation:t=`horizontal`,className:n,...r}){let i=[D.separator,t===`vertical`?D.vertical:D.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 k={switch:`_switch_1h6fk_3`};function te({className:t,...n}){return(0,e.jsx)(`input`,{type:`checkbox`,role:`switch`,className:[k.switch,t].filter(Boolean).join(` `),...n})}var ne={checkbox:`_checkbox_jnffk_3`};function re({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:[ne.checkbox,r].filter(Boolean).join(` `),...i})}var A={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:[A.wrapper,s?A.disabled:null].filter(Boolean).join(` `),children:[n&&(0,e.jsx)(`label`,{htmlFor:u,className:A.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:[A.input,i?A.errorInput:null,o].filter(Boolean).join(` `),...c}),(i||r)&&(0,e.jsx)(`span`,{id:d,className:[A.hint,i?A.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={sm:12,md:16,lg:20};function j({icon:t,size:n=`md`,label:r,width:i,height:a,...o}){let s=Ee[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 De={viewBox:`0 0 16 16`,paths:[{d:`m2.5 5 5.5 6 5.5-6z`,fillRule:`evenodd`}]},Oe={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`}]},ke={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`}]},Ae={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`}]},je={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`}]},Me={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_1rkb1_3`,open:`_open_1rkb1_13`,bar:`_bar_1rkb1_20`,disabled:`_disabled_1rkb1_31`,searchIcon:`_searchIcon_1rkb1_37`,input:`_input_1rkb1_47`,clearButton:`_clearButton_1rkb1_82`,filterRow:`_filterRow_1rkb1_124`,inline:`_inline_1rkb1_136`};function Ne({open:n,onClose:r,onClear:i,children:a,value:o,onChange:s,placeholder:c=`Search…`,disabled:l,inline:u=!1,className:d,...f}){let p=(0,t.useRef)(null);(0,t.useEffect)(()=>{if(n){let e=requestAnimationFrame(()=>p.current?.focus());return()=>cancelAnimationFrame(e)}},[n]);let m=(0,t.useCallback)(e=>{e.key===`Escape`&&(e.preventDefault(),r?.()),f.onKeyDown?.(e)},[r,f]),h=o!==void 0&&o!==``;return(0,e.jsxs)(`div`,{className:[M.wrapper,n?M.open:null,d].filter(Boolean).join(` `),"aria-hidden":!n,children:[(0,e.jsxs)(`div`,{className:[M.bar,u?M.inline:null,l?M.disabled:null].filter(Boolean).join(` `),children:[(0,e.jsx)(`span`,{className:M.searchIcon,"aria-hidden":!0,children:(0,e.jsx)(j,{icon:ke,size:`md`})}),(0,e.jsx)(`input`,{ref:p,type:`search`,role:`searchbox`,value:o,onChange:s,placeholder:c,disabled:l,tabIndex:n?void 0:-1,className:M.input,onKeyDown:m,...f}),h&&(0,e.jsx)(`button`,{type:`button`,className:M.clearButton,"aria-label":`Clear search`,tabIndex:n?void 0:-1,disabled:l,onClick:()=>{i?.(),p.current?.focus()},children:(0,e.jsx)(j,{icon:Oe,size:`md`})})]}),a&&(0,e.jsx)(`div`,{className:M.filterRow,children:a})]})}var Pe={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 Fe({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:[Pe.page,o?Pe.compact:null,s].filter(Boolean).join(` `),...c,children:[u&&(0,e.jsx)(`div`,{className:Pe.iconWrap,"aria-hidden":`true`,children:u}),(0,e.jsx)(`p`,{className:Pe.title,children:r}),i&&(0,e.jsx)(`p`,{className:Pe.description,children:i}),a&&(0,e.jsx)(`div`,{className:Pe.actions,children:a})]})}var Ie={narrow:400,medium:550,wide:860};function Le(){let e=()=>{let e=typeof window<`u`?window.innerWidth:1280;return{isNarrow:e<=Ie.narrow,isMedium:e<=Ie.medium,isWide:e<=Ie.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 Re=`_sidebar_b80pp_3`,ze=`_section_b80pp_21`,Be=`_sectionTitle_b80pp_33`,Ve=`_list_b80pp_47`,He=`_item_b80pp_58`,Ue=`_itemBtn_b80pp_64`,We=`_active_b80pp_111`,Ge=`_itemIcon_b80pp_127`,Ke=`_itemLabel_b80pp_140`,qe=`_itemSuffix_b80pp_150`,Je=`_contextMenu_b80pp_159`,Ye=`_contextMenuItem_b80pp_183`,Xe=`_contextMenuDestructive_b80pp_219`,Ze=`_searchWrap_b80pp_225`,Qe=`_pageMode_b80pp_236`,$e=`_dragOver_b80pp_243`,et=`_collapsed_b80pp_251`,tt=`_itemCollapsed_b80pp_262`,N={sidebar:Re,section:ze,sectionTitle:Be,list:Ve,item:He,itemBtn:Ue,active:We,itemIcon:Ge,itemLabel:Ke,itemSuffix:qe,contextMenu:Je,"menu-in":`_menu-in_b80pp_1`,contextMenuItem:Ye,contextMenuDestructive:Xe,searchWrap:Ze,pageMode:Qe,dragOver:$e,collapsed:et,itemCollapsed:tt},nt=(0,t.createContext)(!1);function rt(){return(0,t.useContext)(nt)}var it=(0,t.createContext)(``);function at(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+=at(i.children,n))}),r}function ot({children:n,collapsed:r=!1,searchable:i,filter:a,onFilterChange:o,mode:s,className:c,...l}){let[u,d]=(0,t.useState)(``),{isNarrow:f}=Le(),p=a!==void 0,m=p?a:u,h=e=>{p||d(e),o?.(e)},g=m.length>0,_=s??(f?`page`:`sidebar`),v=!g||at(n,m)>0;return(0,e.jsx)(nt.Provider,{value:r,children:(0,e.jsx)(it.Provider,{value:m,children:(0,e.jsxs)(`nav`,{className:[N.sidebar,r?N.collapsed:null,_===`page`?N.pageMode:null,c].filter(Boolean).join(` `),...l,children:[i&&(0,e.jsx)(`div`,{className:N.searchWrap,children:(0,e.jsx)(Ne,{open:!0,value:m,onChange:e=>h(e.target.value),onClose:()=>h(``),onClear:()=>h(``),inline:!0})}),g&&!v?(0,e.jsx)(Fe,{title:`No Results`,description:`No items match your search.`,compact:!0}):n]})})})}function st({title:t,children:n,className:r,...i}){return(0,e.jsxs)(`section`,{className:[N.section,r].filter(Boolean).join(` `),...i,children:[t&&(0,e.jsx)(`h3`,{className:N.sectionTitle,children:t}),(0,e.jsx)(`ul`,{role:`list`,className:N.list,children:n})]})}var ct={tooltip:`_tooltip_y4het_3`,visible:`_visible_y4het_29`,top:`_top_y4het_55`,bottom:`_bottom_y4het_62`,left:`_left_y4het_69`,right:`_right_y4het_76`},P=6;function lt(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-P,o=e.left+e.width/2-t.width/2):n===`bottom`?(a=e.bottom+P,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-P):(a=e.top+e.height/2-t.height/2,o=e.right+P);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-P,s=e.left+e.width/2-t.width/2),n===`bottom`&&(o=e.bottom+P,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-P),n===`right`&&(o=e.top+e.height/2-t.height/2,s=e.right+P),{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 ut({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(lt(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:[ct.tooltip,u?ct[u.placement]:null,c&&u?ct.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 dt({label:r,icon:i,active:a=!1,suffix:o,badge:s,tooltip:c,menuItems:l,onDrop:u,acceptTypes:d,className:f,...p}){let m=rt(),h=(0,t.useContext)(it),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),ee=(0,t.useRef)(null),E=(0,t.useCallback)((e,t)=>T({x:e,y:t}),[]),D=(0,t.useCallback)(()=>T(null),[]);(0,t.useEffect)(()=>{if(!w)return;let e=e=>{ee.current&&!ee.current.contains(e.target)&&D()},t=e=>{e.key===`Escape`&&D()};return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}},[w,D]);let O=e=>{l?.length&&(e.preventDefault(),E(e.clientX,e.clientY))},k=e=>{if(e.key===`ContextMenu`||e.key===`F10`&&e.shiftKey){if(!l?.length)return;e.preventDefault();let t=e.currentTarget.getBoundingClientRect();E(t.right,t.top)}},te=(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:O,onKeyDown:k,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)(ut,{label:_,placement:`right`,children:te}):te,w&&l?.length&&typeof document<`u`&&(0,n.createPortal)((0,e.jsx)(`div`,{ref:ee,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(),D()},children:t.label},t.label))}),document.body)]})}var ft={spin:`_spin_7d4yi_3`,disabled:`_disabled_7d4yi_36`,btn:`_btn_7d4yi_43`,value:`_value_7d4yi_96`};function pt(e){let t=e.toString(),n=t.indexOf(`.`);return n===-1?0:t.length-n-1}function mt(e,t,n){return Math.min(n,Math.max(t,e))}function ht({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??pt(o),m=(0,t.useCallback)(e=>r(parseFloat(mt(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:[ft.spin,c?ft.disabled:null,l].filter(Boolean).join(` `),...f,children:[(0,e.jsx)(`button`,{type:`button`,tabIndex:-1,"aria-hidden":`true`,disabled:c||n<=i,className:ft.btn,onClick:()=>m(n-o),children:`−`}),(0,e.jsx)(`span`,{className:ft.value,"aria-hidden":`true`,children:n.toFixed(p)}),(0,e.jsx)(`button`,{type:`button`,tabIndex:-1,"aria-hidden":`true`,disabled:c||n>=a,className:ft.btn,onClick:()=>m(n+o),children:`+`})]})}var F={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 gt({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:[F.bar,i?F.inline:null,r].filter(Boolean).join(` `),...o,children:(0,e.jsx)(`div`,{ref:s,role:`tablist`,"aria-label":a,className:F.list,onKeyDown:c,children:n})})}function _t({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:[F.tab,r?F.active:null,a?F.closeable:null,s].filter(Boolean).join(` `),...l,children:[n&&(0,e.jsx)(`span`,{className:F.tabIcon,children:(0,e.jsx)(j,{icon:n,size:`sm`,"aria-hidden":!0})}),(0,e.jsx)(`span`,{className:F.tabLabel,children:t}),a&&(0,e.jsx)(`span`,{role:`button`,tabIndex:0,"aria-label":o,className:F.closeBtn,onClick:e=>{e.stopPropagation(),a()},onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),e.stopPropagation(),a())},children:`×`})]})}function vt({id:t,active:n=!1,className:r,children:i,...a}){return(0,e.jsx)(`div`,{id:t,role:`tabpanel`,hidden:!n,tabIndex:0,className:[F.panel,r].filter(Boolean).join(` `),...a,children:i})}var I={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 yt({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:[I.row,a?I.interactive:null,u?I.property:null,s].filter(Boolean).join(` `),...c,children:[r&&(0,e.jsx)(`span`,{className:I.leading,children:r}),(0,e.jsxs)(`span`,{className:I.content,children:[(0,e.jsx)(`span`,{className:u?I.propertyLabel:I.title,children:t}),n&&(0,e.jsx)(`span`,{className:u?I.propertyValue:I.subtitle,children:n})]}),i&&(0,e.jsx)(`span`,{className:I.trailing,children:i})]})}var bt={list:`_list_cy3hv_3`,item:`_item_cy3hv_17`,separate:`_separate_cy3hv_26`,separateItem:`_separateItem_cy3hv_36`,divider:`_divider_cy3hv_58`};function xt({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:[bt.list,s?bt.separate:null,i].filter(Boolean).join(` `),...a,children:o.map((t,n)=>(0,e.jsxs)(`li`,{className:s?bt.separateItem:bt.item,children:[!s&&n>0&&(0,e.jsx)(O,{"aria-hidden":`true`}),t]},n))})}var St={switcher:`_switcher_1uh9r_3`,item:`_item_1uh9r_18`,active:`_active_1uh9r_45`,itemIcon:`_itemIcon_1uh9r_76`,itemLabel:`_itemLabel_1uh9r_84`};function Ct({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:[St.switcher,r].filter(Boolean).join(` `),...a,children:n})}function wt({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:[St.item,r?St.active:null,i].filter(Boolean).join(` `),...o,children:[n&&(0,e.jsx)(`span`,{className:St.itemIcon,children:(0,e.jsx)(j,{icon:n,size:`md`,"aria-hidden":!0})}),(0,e.jsx)(`span`,{className:St.itemLabel,children:t})]})}var Tt=`_toaster_1tgvb_3`,Et=`_toasterBottom_1tgvb_18`,Dt=`_toasterTop_1tgvb_22`,Ot=`_toast_1tgvb_3`,kt=`_title_1tgvb_69`,At=`_actions_1tgvb_76`,jt=`_actionBtn_1tgvb_85`,Mt=`_dismissBtn_1tgvb_118`,Nt={toaster:Tt,toasterBottom:Et,toasterTop:Dt,toast:Ot,"toast-in":`_toast-in_1tgvb_1`,title:kt,actions:At,actionBtn:jt,dismissBtn:Mt};function Pt({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:[Nt.toast,c].filter(Boolean).join(` `),onMouseEnter:h,onMouseLeave:g,onFocus:h,onBlur:g,...l,children:[(0,e.jsx)(`span`,{className:Nt.title,children:n}),(a||s)&&(0,e.jsxs)(`span`,{className:Nt.actions,children:[a&&(0,e.jsx)(`button`,{type:`button`,className:Nt.actionBtn,onClick:_,children:a}),s&&(0,e.jsx)(`button`,{type:`button`,className:Nt.dismissBtn,"aria-label":`Dismiss`,onClick:()=>{p(),i?.()},children:(0,e.jsx)(j,{icon:Oe,size:`md`,"aria-hidden":!0})})]})]})}function Ft({position:t=`bottom`,children:r,container:i,className:a,...o}){let s=(0,e.jsx)(`div`,{"aria-label":`Notifications`,className:[Nt.toaster,t===`top`?Nt.toasterTop:Nt.toasterBottom,a].filter(Boolean).join(` `),...o,children:r});return typeof document>`u`?s:(0,n.createPortal)(s,i??document.body)}var It=`_backdrop_zx0yn_3`,Lt=`_dialog_zx0yn_26`,Rt=`_title_zx0yn_56`,zt=`_body_zx0yn_70`,Bt=`_footer_zx0yn_85`,Vt=`_btn_zx0yn_92`,Ht=`_dialogAbout_zx0yn_155`,Ut=`_aboutHeader_zx0yn_162`,Wt=`_aboutIcon_zx0yn_171`,Gt=`_aboutAppName_zx0yn_180`,Kt=`_aboutVersion_zx0yn_187`,qt=`_aboutTabBar_zx0yn_194`,Jt=`_aboutTabBtn_zx0yn_201`,Yt=`_aboutTabBtnActive_zx0yn_220`,Xt=`_aboutTabContent_zx0yn_233`,Zt=`_aboutSection_zx0yn_238`,Qt=`_aboutComments_zx0yn_243`,$t=`_aboutInfoList_zx0yn_252`,en=`_aboutInfoLabel_zx0yn_259`,tn=`_aboutInfoValue_zx0yn_267`,nn=`_aboutLink_zx0yn_275`,rn=`_aboutCreditGroup_zx0yn_283`,an=`_aboutCreditTitle_zx0yn_287`,on=`_aboutCreditList_zx0yn_297`,sn=`_aboutCreditItem_zx0yn_306`,cn=`_aboutCopyright_zx0yn_312`,ln=`_aboutLicenseType_zx0yn_319`,un=`_aboutLicenseText_zx0yn_326`,L={backdrop:It,"backdrop-in":`_backdrop-in_zx0yn_1`,dialog:Lt,"dialog-in":`_dialog-in_zx0yn_1`,title:Rt,body:zt,footer:Bt,btn:Vt,"btn-default":`_btn-default_zx0yn_140`,"btn-suggested":`_btn-suggested_zx0yn_144`,"btn-destructive":`_btn-destructive_zx0yn_149`,dialogAbout:Ht,aboutHeader:Ut,aboutIcon:Wt,aboutAppName:Gt,aboutVersion:Kt,aboutTabBar:qt,aboutTabBtn:Jt,aboutTabBtnActive:Yt,aboutTabContent:Xt,aboutSection:Zt,aboutComments:Qt,aboutInfoList:$t,aboutInfoLabel:en,aboutInfoValue:tn,aboutLink:nn,aboutCreditGroup:rn,aboutCreditTitle:an,aboutCreditList:on,aboutCreditItem:sn,aboutCopyright:cn,aboutLicenseType:ln,aboutLicenseText:un},dn=`button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])`;function fn(e,t){if(e.key!==`Tab`)return;let n=Array.from(t.current?.querySelectorAll(dn)??[]);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 pn={details:`Details`,credits:`Credits`,legal:`Legal`};function mn({open:r,title:i,children:a,buttons:o=[],onClose:s,closeOnBackdrop:c=!0,role:l=`dialog`,responses:u,onResponse:d,variant:f,applicationName:p,applicationIcon:m,version:h,comments:g,developerName:_,website:v,websiteLabel:y,developers:b,designers:x,artists:S,copyright:C,licenseType:w,licenseText:T,links:ee,className:E,...D}){let O=(0,t.useRef)(null),k=(0,t.useId)(),te=(0,t.useRef)(null),[ne,re]=(0,t.useState)(`details`),A=!!u,ie=f===`about`;(0,t.useEffect)(()=>{r?(te.current=document.activeElement,(O.current?.querySelector(dn))?.focus()):(te.current?.focus(),ie&&re(`details`))},[r,ie]);let ae=(0,t.useCallback)(()=>{let e=u?.find(e=>e.variant!==`destructive`&&!e.disabled);e&&d?.(e.id)},[u,d]),oe=A?ae:c?s:void 0,se=(0,t.useCallback)(e=>{if(e.key===`Escape`){e.preventDefault(),A?ae():s?.();return}fn(e,O)},[A,ae,s]);if(!r)return null;let ce=[`details`,!!(b?.length||x?.length||S?.length)&&`credits`,!!(C||w||T)&&`legal`].filter(Boolean),le=()=>ie?(0,e.jsx)(`div`,{className:L.footer,children:(0,e.jsx)(`button`,{type:`button`,className:[L.btn,L[`btn-default`]].join(` `),onClick:s,children:`Close`})}):A&&u?(0,e.jsx)(`div`,{className:L.footer,children:u.map(t=>(0,e.jsx)(`button`,{type:`button`,disabled:t.disabled,className:[L.btn,L[`btn-${t.variant??`default`}`]].filter(Boolean).join(` `),onClick:()=>d?.(t.id),children:t.label},t.id))}):o.length>0?(0,e.jsx)(`div`,{className:L.footer,children:o.map(t=>(0,e.jsx)(`button`,{type:`button`,disabled:t.disabled,className:[L.btn,L[`btn-${t.variant??`default`}`]].filter(Boolean).join(` `),onClick:t.onClick,children:t.label},t.label))}):null,ue=()=>(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(`div`,{className:L.aboutHeader,children:[m&&(0,e.jsx)(`div`,{className:L.aboutIcon,children:m}),(0,e.jsx)(`div`,{id:k,className:L.aboutAppName,children:p}),h&&(0,e.jsx)(`div`,{className:L.aboutVersion,children:h})]}),ce.length>1&&(0,e.jsx)(`div`,{className:L.aboutTabBar,role:`tablist`,children:ce.map(t=>(0,e.jsx)(`button`,{type:`button`,role:`tab`,"aria-selected":ne===t,className:[L.aboutTabBtn,ne===t?L.aboutTabBtnActive:null].filter(Boolean).join(` `),onClick:()=>re(t),children:pn[t]},t))}),(0,e.jsxs)(`div`,{className:L.aboutTabContent,children:[ne===`details`&&(0,e.jsxs)(`div`,{className:L.aboutSection,children:[g&&(0,e.jsx)(`p`,{className:L.aboutComments,children:g}),(_||v||ee?.length)&&(0,e.jsxs)(`dl`,{className:L.aboutInfoList,children:[_&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(`dt`,{className:L.aboutInfoLabel,children:`Developer`}),(0,e.jsx)(`dd`,{className:L.aboutInfoValue,children:_})]}),v&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(`dt`,{className:L.aboutInfoLabel,children:`Website`}),(0,e.jsx)(`dd`,{className:L.aboutInfoValue,children:(0,e.jsx)(`a`,{href:v,target:`_blank`,rel:`noopener noreferrer`,className:L.aboutLink,children:y??v})})]}),ee?.map(t=>(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(`dt`,{className:L.aboutInfoLabel,children:t.label},`${t.label}-dt`),(0,e.jsx)(`dd`,{className:L.aboutInfoValue,children:(0,e.jsx)(`a`,{href:t.url,target:`_blank`,rel:`noopener noreferrer`,className:L.aboutLink,children:t.url})},`${t.label}-dd`)]}))]})]}),ne===`credits`&&(0,e.jsx)(`div`,{className:L.aboutSection,children:[{heading:`Developers`,list:b},{heading:`Designers`,list:x},{heading:`Artists`,list:S}].filter(e=>e.list?.length).map(({heading:t,list:n})=>(0,e.jsxs)(`div`,{className:L.aboutCreditGroup,children:[(0,e.jsx)(`h4`,{className:L.aboutCreditTitle,children:t}),(0,e.jsx)(`ul`,{className:L.aboutCreditList,children:n.map(t=>(0,e.jsx)(`li`,{className:L.aboutCreditItem,children:t},t))})]},t))}),ne===`legal`&&(0,e.jsxs)(`div`,{className:L.aboutSection,children:[C&&(0,e.jsx)(`p`,{className:L.aboutCopyright,children:C}),w&&(0,e.jsx)(`p`,{className:L.aboutLicenseType,children:w}),T&&(0,e.jsx)(`pre`,{className:L.aboutLicenseText,children:T})]})]})]}),de=(0,e.jsx)(`div`,{className:L.backdrop,onClick:oe,"aria-hidden":`true`,children:(0,e.jsxs)(`div`,{ref:O,role:l,"aria-modal":`true`,"aria-labelledby":k,className:[L.dialog,ie?L.dialogAbout:null,E].filter(Boolean).join(` `),onKeyDown:se,onClick:e=>e.stopPropagation(),...D,children:[ie?ue():(0,e.jsxs)(e.Fragment,{children:[i&&(0,e.jsx)(`div`,{id:k,className:L.title,children:i}),a&&(0,e.jsx)(`div`,{className:L.body,children:a})]}),le()]})});return typeof document>`u`?de:(0,n.createPortal)(de,document.body)}var hn=`_wrapper_1hi05_3`,gn=`_trigger_1hi05_11`,_n=`_triggerOpen_1hi05_63`,vn=`_triggerLabel_1hi05_73`,yn=`_placeholder_1hi05_81`,bn=`_chevron_1hi05_87`,xn=`_chevronOpen_1hi05_94`,Sn=`_list_1hi05_100`,Cn=`_listDown_1hi05_129`,wn=`_listUp_1hi05_133`,Tn=`_option_1hi05_145`,En=`_optionActive_1hi05_162`,Dn=`_optionSelected_1hi05_166`,On=`_optionDisabled_1hi05_170`,kn=`_optionText_1hi05_178`,An=`_optionLabel_1hi05_186`,jn=`_optionDesc_1hi05_192`,Mn=`_checkIcon_1hi05_202`,R={wrapper:hn,trigger:gn,triggerOpen:_n,triggerLabel:vn,placeholder:yn,chevron:bn,chevronOpen:xn,list:Sn,"list-in":`_list-in_1hi05_1`,listDown:Cn,listUp:wn,"list-in-up":`_list-in-up_1hi05_1`,option:Tn,optionActive:En,optionSelected:Dn,optionDisabled:On,optionText:kn,optionLabel:An,optionDesc:jn,checkIcon:Mn};function Nn({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:De,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:Me,size:`md`,"aria-hidden":!0,className:R.checkIcon})]},t.value))})]})}var z={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 Pn(e,t,n){return Math.min(n,Math.max(t,e))}function Fn(e,t,n,r){return parseFloat((Math.round((e-t)/n)*n+t).toFixed(r))}function In(e){let t=e.toString(),n=t.indexOf(`.`);return n===-1?0:t.length-n-1}function Ln({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=In(o),g=(Pn(n,i,a)-i)/(a-i)*100,_=(0,t.useCallback)(e=>{if(!m.current)return;let{left:t,width:n}=m.current.getBoundingClientRect();r(Pn(Fn((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(Pn(Fn(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:[z.wrapper,S?z.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:[z.track,s?z.disabled:null].filter(Boolean).join(` `),onPointerDown:v,onPointerMove:y,onKeyDown:s?void 0:b,children:[(0,e.jsx)(`div`,{className:z.fill,style:{width:`${g}%`}}),(0,e.jsx)(`div`,{className:z.thumb,style:{left:`${g}%`},"aria-hidden":`true`}),x&&c.map(t=>{let n=(Pn(t.value,i,a)-i)/(a-i)*100;return(0,e.jsx)(`div`,{className:z.tick,style:{left:`${n}%`},"aria-hidden":`true`},t.value)})]}),S&&(0,e.jsx)(`div`,{className:z.labels,"aria-hidden":`true`,children:c.map(t=>{let n=(Pn(t.value,i,a)-i)/(a-i)*100;return(0,e.jsx)(`span`,{className:z.markLabel,style:{left:`${n}%`},children:t.label},t.value)})})]})}var Rn={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`},zn=8,B=10,Bn=6;function Vn(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+zn,left:e.left+e.width/2-t.width/2}:n===`top`?{top:e.top-t.height-zn,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-zn}:{top:e.top+e.height/2-t.height/2,left:e.right+zn}}for(let n of a){let{top:a,left:s}=o(n),c=s>=B&&s+t.width<=r-B,l=a>=B&&a+t.height<=i-B;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>=B&&a+t.height<=i-B,l=s>=B&&s+t.width<=r-B;if((n===`top`||n===`bottom`)&&c){let i=Math.max(B,Math.min(s,r-t.width-B)),o=e.left+e.width/2-i;return{top:a,left:i,placement:n,arrowOffset:Math.max(Bn+4,Math.min(o,t.width-Bn-4))}}if((n===`left`||n===`right`)&&l){let r=Math.max(B,Math.min(a,i-t.height-B)),o=e.top+e.height/2-r;return{top:r,left:s,placement:n,arrowOffset:Math.max(Bn+4,Math.min(o,t.height-Bn-4))}}}let s=e.bottom+zn,c=e.left+e.width/2-t.width/2,l=Math.max(B,Math.min(s,i-t.height-B)),u=Math.max(B,Math.min(c,r-t.width-B)),d=e.left+e.width/2-u;return{top:l,left:u,placement:`bottom`,arrowOffset:Math.max(Bn+4,Math.min(d,t.width-Bn-4))}}function Hn({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(Vn(_.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:[Rn.panel,p?Rn[p.placement]:null,f&&p?Rn.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:Rn.arrow,"aria-hidden":`true`,style:p?.arrowOffset===void 0?void 0:p.placement===`top`||p.placement===`bottom`?{left:p.arrowOffset-Bn,marginLeft:0}:{top:p.arrowOffset-Bn,marginTop:0}}),r]});return(0,e.jsxs)(e.Fragment,{children:[w,f&&(typeof document<`u`?(0,n.createPortal)(T,document.body):T)]})}var Un={clamp:`_clamp_1j51b_6`};function Wn({maximumSize:t=600,children:n,className:r,style:i,...a}){return(0,e.jsx)(`div`,{className:[Un.clamp,r].filter(Boolean).join(` `),style:{maxWidth:t,...i},...a,children:n})}var V={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 Gn({sidebar:t,content:n,showContent:r=!1,minSidebarWidth:i=180,maxSidebarWidth:a=280,sidebarWidthFraction:o=.25,className:s,style:c,...l}){let{isNarrow:u}=Le(),d=`clamp(${i}px, ${o*100}%, ${a}px)`;return(0,e.jsxs)(`div`,{className:[V.root,u?V.collapsed:V.expanded,s].filter(Boolean).join(` `),style:{"--sidebar-width":d,...c},...l,children:[(0,e.jsx)(`div`,{className:[V.sidebar,u&&r?V.paneHidden:V.paneVisible].filter(Boolean).join(` `),"aria-hidden":u&&r,children:t}),!u&&(0,e.jsx)(`div`,{className:V.divider,"aria-hidden":`true`}),(0,e.jsx)(`div`,{className:[V.contentPane,u&&!r?V.paneHidden:V.paneVisible].filter(Boolean).join(` `),"aria-hidden":u&&!r,children:n})]})}var H={root:`_root_1xl2w_3`,wide:`_wide_1xl2w_13`,end:`_end_1xl2w_17`,sidebar:`_sidebar_1xl2w_21`,content:`_content_1xl2w_27`,narrow:`_narrow_1xl2w_35`,start:`_start_1xl2w_55`,sidebarOpen:`_sidebarOpen_1xl2w_59`,sidebarClosed:`_sidebarClosed_1xl2w_60`,backdrop:`_backdrop_1xl2w_72`,backdropVisible:`_backdropVisible_1xl2w_83`};function Kn({sidebar:n,content:r,showSidebar:i=!1,onClose:a,sidebarPosition:o=`start`,minSidebarWidth:s=180,maxSidebarWidth:c=280,sidebarWidthFraction:l=.25,className:u,style:d,...f}){let{isNarrow:p}=Le(),m=(0,t.useRef)(null),h=`clamp(${s}px, ${l*100}%, ${c}px)`;(0,t.useEffect)(()=>{if(!p||!i)return;let e=e=>{e.key===`Escape`&&a?.()};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[p,i,a]),(0,t.useEffect)(()=>{!p||!i||(m.current?.querySelector(`button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])`))?.focus()},[p,i]);let g=o===`end`;return(0,e.jsxs)(`div`,{className:[H.root,p?H.narrow:H.wide,g?H.end:H.start,u].filter(Boolean).join(` `),style:{"--sidebar-width":h,...d},...f,children:[p&&(0,e.jsx)(`div`,{className:[H.backdrop,i?H.backdropVisible:null].filter(Boolean).join(` `),"aria-hidden":`true`,onClick:a}),(0,e.jsx)(`div`,{ref:m,className:[H.sidebar,p?i?H.sidebarOpen:H.sidebarClosed:null].filter(Boolean).join(` `),"aria-hidden":p&&!i,children:n}),(0,e.jsx)(`div`,{className:H.content,children:r})]})}var qn={bar:`_bar_njcvu_3`};function Jn({children:t,reveal:n=!0,className:r,...i}){return n?(0,e.jsx)(`div`,{role:`navigation`,"aria-label":`Bottom navigation`,className:[qn.bar,r].filter(Boolean).join(` `),...i,children:t}):null}var Yn={link:`_link_x1qyh_1`,externalIcon:`_externalIcon_x1qyh_36`};function Xn({external:t=!1,children:n,className:r,target:i,rel:a,...o}){let s=t||i===`_blank`;return(0,e.jsxs)(`a`,{className:[Yn.link,r].filter(Boolean).join(` `),target:s?`_blank`:i,rel:s?`noopener noreferrer`:a,...o,children:[n,s&&(0,e.jsx)(`span`,{className:Yn.externalIcon,"aria-label":`(opens in new tab)`,children:`↗`})]})}var Zn={group:`_group_1fa3l_3`,item:`_item_1fa3l_18`,iconOnly:`_iconOnly_1fa3l_48`,active:`_active_1fa3l_53`,itemIcon:`_itemIcon_1fa3l_86`,itemLabel:`_itemLabel_1fa3l_92`},Qn=(0,t.createContext)(null);function $n(){let e=(0,t.useContext)(Qn);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)(Qn.Provider,{value:{value:n,onValueChange:r},children:(0,e.jsx)(`div`,{ref:c,role:`radiogroup`,"aria-label":i,onKeyDown:l,className:[Zn.group,o].filter(Boolean).join(` `),...s,children:a})})}function tr({name:t,label:n,icon:r,disabled:i,className:a,...o}){let{value:s,onValueChange:c}=$n(),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:[Zn.item,l?Zn.active:null,u?Zn.iconOnly:null,a].filter(Boolean).join(` `),...o,children:[r&&(0,e.jsx)(`span`,{className:Zn.itemIcon,children:(0,e.jsx)(j,{icon:r,size:`md`,"aria-hidden":!0})}),n&&(0,e.jsx)(`span`,{className:Zn.itemLabel,children:n})]})}function nr({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 rr={wrapBox:`_wrapBox_1ik0x_1`,reverse:`_reverse_1ik0x_10`};function ir({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:[rr.wrapBox,a?rr.reverse:null,s].filter(Boolean).join(` `),style:f,...l,children:o})}var ar={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 or({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=[ar.chip,a?ar.selected:null,s?ar.disabled:null,u?ar.selectable:null,c].filter(Boolean).join(` `),f=(0,e.jsxs)(e.Fragment,{children:[n&&(0,e.jsx)(`span`,{className:ar.icon,children:(0,e.jsx)(j,{icon:n,size:`sm`,"aria-hidden":!0})}),(0,e.jsx)(`span`,{className:ar.label,children:t}),r&&(0,e.jsx)(`button`,{type:`button`,className:ar.remove,"aria-label":`Remove ${t}`,disabled:s,onClick:e=>{e.stopPropagation(),r()},tabIndex:s?-1:0,children:(0,e.jsx)(j,{icon:Oe,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 sr=`_backdrop_zvuhh_3`,cr=`_dialog_zvuhh_26`,lr=`_header_zvuhh_59`,ur=`_title_zvuhh_67`,dr=`_closeBtn_zvuhh_74`,fr=`_searchRow_zvuhh_112`,pr=`_searchIcon_zvuhh_124`,mr=`_searchInput_zvuhh_132`,hr=`_searchClear_zvuhh_151`,gr=`_body_zvuhh_174`,_r=`_empty_zvuhh_182`,vr=`_section_zvuhh_193`,yr=`_sectionTitle_zvuhh_199`,br=`_list_zvuhh_209`,xr=`_row_zvuhh_225`,Sr=`_keys_zvuhh_240`,Cr=`_keyCap_zvuhh_247`,wr=`_plus_zvuhh_277`,Tr=`_description_zvuhh_284`,U={backdrop:sr,"backdrop-in":`_backdrop-in_zvuhh_1`,dialog:cr,"dialog-in":`_dialog-in_zvuhh_1`,header:lr,title:ur,closeBtn:dr,searchRow:fr,searchIcon:pr,searchInput:mr,searchClear:hr,body:gr,empty:_r,section:vr,sectionTitle:yr,list:br,row:xr,keys:Sr,keyCap:Cr,plus:wr,description:Tr},Er=`button:not([disabled]), [href], input:not([disabled]), [tabindex]:not([tabindex="-1"])`;function Dr({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(Er)??[]);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:U.backdrop,onClick:i,"aria-hidden":`true`,children:(0,e.jsxs)(`div`,{ref:l,role:`dialog`,"aria-modal":`true`,"aria-labelledby":f.current,className:U.dialog,onKeyDown:p,onClick:e=>e.stopPropagation(),children:[(0,e.jsxs)(`div`,{className:U.header,children:[(0,e.jsx)(`span`,{id:f.current,className:U.title,children:a}),(0,e.jsx)(`button`,{type:`button`,className:U.closeBtn,"aria-label":`Close`,onClick:i,children:`×`})]}),(0,e.jsxs)(`div`,{className:U.searchRow,children:[(0,e.jsx)(`span`,{className:U.searchIcon,"aria-hidden":`true`,children:`⌕`}),(0,e.jsx)(`input`,{ref:u,type:`search`,className:U.searchInput,placeholder:`Search shortcuts…`,value:s,onChange:e=>c(e.target.value),"aria-label":`Search shortcuts`}),s&&(0,e.jsx)(`button`,{type:`button`,className:U.searchClear,"aria-label":`Clear search`,onClick:()=>{c(``),u.current?.focus()},children:`×`})]}),(0,e.jsx)(`div`,{className:U.body,role:`list`,children:h.length===0?(0,e.jsxs)(`p`,{className:U.empty,children:[`No shortcuts match "`,s,`"`]}):h.map(t=>(0,e.jsxs)(`section`,{className:U.section,children:[(0,e.jsx)(`h3`,{className:U.sectionTitle,children:t.title}),(0,e.jsx)(`ul`,{className:U.list,children:t.shortcuts.map(t=>(0,e.jsxs)(`li`,{className:U.row,role:`listitem`,children:[(0,e.jsx)(`span`,{className:U.keys,"aria-label":t.keys.join(` + `),children:t.keys.map((n,r)=>(0,e.jsxs)(`span`,{className:U.keyCap,children:[(0,e.jsx)(`kbd`,{children:n}),r<t.keys.length-1&&(0,e.jsx)(`span`,{className:U.plus,"aria-hidden":`true`,children:`+`})]},r))}),(0,e.jsx)(`span`,{className:U.description,children:t.description})]},t.description))})]},t.title))})]})});return typeof document>`u`?g:(0,n.createPortal)(g,document.body)}var W={sidebar:`_sidebar_kmj4b_3`,list:`_list_kmj4b_17`,item:`_item_kmj4b_28`,itemBtn:`_itemBtn_kmj4b_34`,active:`_active_kmj4b_60`,itemIcon:`_itemIcon_kmj4b_106`,itemLabel:`_itemLabel_kmj4b_119`,itemSuffix:`_itemSuffix_kmj4b_129`,count:`_count_kmj4b_136`},Or=(0,t.createContext)(null);function kr(){let e=(0,t.useContext)(Or);if(!e)throw Error(`ViewSwitcherSidebarItem must be used inside ViewSwitcherSidebar`);return e}function Ar({value:n,onValueChange:r,"aria-label":i=`Views`,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===`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)(Or.Provider,{value:{value:n,onValueChange:r},children:(0,e.jsx)(`nav`,{className:[W.sidebar,o].filter(Boolean).join(` `),onKeyDown:l,...s,children:(0,e.jsx)(`ul`,{ref:c,role:`radiogroup`,"aria-label":i,className:W.list,children:a})})})}function jr({name:t,label:n,icon:r,count:i,suffix:a,disabled:o,className:s,...c}){let{value:l,onValueChange:u}=kr(),d=l===t,f=a??i??null;return(0,e.jsx)(`li`,{className:W.item,children:(0,e.jsxs)(`button`,{type:`button`,role:`radio`,"aria-checked":d,tabIndex:d?0:-1,disabled:o,onClick:()=>u(t),className:[W.itemBtn,d?W.active:null,s].filter(Boolean).join(` `),...c,children:[r&&(0,e.jsx)(`span`,{className:W.itemIcon,children:(0,e.jsx)(j,{icon:r,size:`md`,"aria-hidden":!0})}),(0,e.jsx)(`span`,{className:W.itemLabel,children:n}),f!=null&&(0,e.jsx)(`span`,{className:W.itemSuffix,children:typeof f==`number`?(0,e.jsx)(`span`,{className:W.count,children:f>99?`99+`:f}):f})]})})}function Mr({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 Nr={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 Pr({title:t,variant:n=`default`,leading:r,trailing:i,className:a,...o}){return(0,e.jsxs)(`button`,{className:[Nr.row,Nr[n],a].filter(Boolean).join(` `),...o,children:[r&&(0,e.jsx)(`span`,{className:Nr.leading,children:r}),(0,e.jsx)(`span`,{className:Nr.title,children:t}),i&&(0,e.jsx)(`span`,{className:Nr.trailing,children:i})]})}var Fr={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 Ir({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=[Fr.container,Fr[i],l].filter(Boolean).join(` `),S=(0,e.jsx)(`div`,{ref:_,role:`dialog`,"aria-label":o,tabIndex:-1,className:[Fr.dropdown,d?Fr.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:Fr.primary,disabled:s,onClick:c,...u,children:r}),(0,e.jsx)(`span`,{className:Fr.separator,"aria-hidden":`true`}),(0,e.jsx)(`button`,{ref:g,className:Fr.toggle,disabled:s,"aria-label":o,"aria-haspopup":`dialog`,"aria-expanded":d,onClick:()=>f(e=>!e),children:(0,e.jsx)(`svg`,{className:Fr.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 Lr={toolbar:`_toolbar_1avgl_2`,spacer:`_spacer_1avgl_20`};function Rr({children:t,className:n,...r}){return(0,e.jsx)(`div`,{className:[Lr.toolbar,n].filter(Boolean).join(` `),...r,children:t})}function zr({className:t,...n}){return(0,e.jsx)(`div`,{"aria-hidden":`true`,className:[Lr.spacer,t].filter(Boolean).join(` `),...n})}var Br={linked:`_linked_1tser_3`,vertical:`_vertical_1tser_9`};function Vr({children:t,vertical:n=!1,className:r,...i}){return(0,e.jsx)(`div`,{className:[Br.linked,n?Br.vertical:null,r].filter(Boolean).join(` `),...i,children:t})}var Hr={frame:`_frame_1bq7b_2`};function Ur({children:t,className:n,...r}){return(0,e.jsx)(`div`,{className:[Hr.frame,n].filter(Boolean).join(` `),...r,children:t})}var G={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 Wr({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:[G.expanderRow,h?G.expanded:null,u].filter(Boolean).join(` `),...d,children:[(0,e.jsxs)(`button`,{id:_,className:G.header,"aria-expanded":h,"aria-controls":g,onClick:v,children:[i&&(0,e.jsx)(`span`,{className:G.leading,children:i}),(0,e.jsxs)(`span`,{className:G.content,children:[(0,e.jsx)(`span`,{className:G.title,children:n}),r&&(0,e.jsx)(`span`,{className:G.subtitle,children:r})]}),a&&(0,e.jsx)(`span`,{className:G.trailing,children:a}),(0,e.jsx)(`span`,{className:[G.chevronWrap,h?G.chevronOpen:null].filter(Boolean).join(` `),"aria-hidden":`true`,children:(0,e.jsx)(`svg`,{className:G.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:G.panel,children:(0,e.jsx)(`div`,{className:G.panelInner,children:y.map((t,n)=>(0,e.jsxs)(`div`,{className:G.childItem,children:[(0,e.jsx)(O,{"aria-hidden":`true`}),t]},n))})})]})}var Gr={switcher:`_switcher_2tknm_3`,item:`_item_2tknm_10`,iconOnly:`_iconOnly_2tknm_38`,itemIcon:`_itemIcon_2tknm_43`,itemLabel:`_itemLabel_2tknm_49`,default:`_default_2tknm_55`,active:`_active_2tknm_68`,flat:`_flat_2tknm_121`,round:`_round_2tknm_169`},Kr=(0,t.createContext)(null);function qr(){let e=(0,t.useContext)(Kr);if(!e)throw Error(`InlineViewSwitcherItem must be used inside InlineViewSwitcher`);return e}function Jr({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)(Kr.Provider,{value:{value:n,onValueChange:r},children:(0,e.jsx)(`div`,{ref:l,role:`radiogroup`,"aria-label":a,onKeyDown:u,className:[Gr.switcher,Gr[i],s].filter(Boolean).join(` `),...c,children:o})})}function Yr({name:t,label:n,icon:r,disabled:i,className:a,...o}){let{value:s,onValueChange:c}=qr(),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:[Gr.item,l?Gr.active:null,u?Gr.iconOnly:null,a].filter(Boolean).join(` `),...o,children:[r&&(0,e.jsx)(`span`,{className:Gr.itemIcon,children:(0,e.jsx)(j,{icon:r,size:`md`,"aria-hidden":!0})}),n&&(0,e.jsx)(`span`,{className:Gr.itemLabel,children:n})]})}var K={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 Xr({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:[K.row,c?K.disabled:null,l].filter(Boolean).join(` `),onClick:_,...d,children:[i&&(0,e.jsx)(`span`,{className:K.leading,children:i}),(0,e.jsxs)(`span`,{className:K.content,id:g,children:[(0,e.jsx)(`span`,{className:K.title,children:n}),r&&(0,e.jsx)(`span`,{className:K.subtitle,children:r})]}),(0,e.jsx)(`span`,{className:K.switchTrack,"aria-hidden":`true`,children:(0,e.jsx)(`span`,{className:[K.switchThumb,h?K.switchThumbOn:null].filter(Boolean).join(` `)})})]})}var q={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 Zr({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:[q.row,c?q.disabled:null,l].filter(Boolean).join(` `),onClick:_,...d,children:[(0,e.jsx)(`span`,{className:q.checkboxWrap,"aria-hidden":`true`,children:(0,e.jsx)(`span`,{className:[q.checkbox,h?q.checkboxChecked:null].filter(Boolean).join(` `),children:h&&(0,e.jsx)(`svg`,{className:q.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:q.leading,children:i}),(0,e.jsxs)(`span`,{className:q.content,id:g,children:[(0,e.jsx)(`span`,{className:q.title,children:n}),r&&(0,e.jsx)(`span`,{className:q.subtitle,children:r})]})]})}var Qr=`_row_46mn8_3`,$r=`_disabled_46mn8_16`,ei=`_leading_46mn8_23`,ti=`_content_46mn8_32`,ni=`_title_46mn8_40`,ri=`_subtitle_46mn8_51`,ii=`_comboWrap_46mn8_65`,ai=`_trigger_46mn8_73`,oi=`_triggerOpen_46mn8_126`,si=`_triggerLabel_46mn8_136`,ci=`_placeholder_46mn8_144`,li=`_chevron_46mn8_150`,ui=`_chevronOpen_46mn8_157`,di=`_list_46mn8_163`,fi=`_listDown_46mn8_192`,pi=`_listUp_46mn8_196`,mi=`_option_46mn8_208`,hi=`_optionActive_46mn8_225`,gi=`_optionSelected_46mn8_229`,_i=`_optionDisabled_46mn8_233`,vi=`_optionLabel_46mn8_239`,yi=`_checkIcon_46mn8_247`,J={row:Qr,disabled:$r,leading:ei,content:ti,title:ni,subtitle:ri,comboWrap:ii,trigger:ai,triggerOpen:oi,triggerLabel:si,placeholder:ci,chevron:li,chevronOpen:ui,list:di,"list-in":`_list-in_46mn8_1`,listDown:fi,listUp:pi,"list-in-up":`_list-in-up_46mn8_1`,option:mi,optionActive:hi,optionSelected:gi,optionDisabled:_i,optionLabel:vi,checkIcon:yi};function bi({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),ee=a.find(e=>e.value===h),E=(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]),D=(0,t.useCallback)(()=>{if(l)return;E(),_(!0);let e=a.findIndex(e=>e.value===h&&!e.disabled);y(e>=0?e:a.findIndex(e=>!e.disabled))},[l,E,a,h]),O=(0,t.useCallback)(()=>{_(!1),y(-1),w.current?.focus()},[]),k=(0,t.useCallback)(e=>{e.disabled||(f||m(e.value),c?.(e.value),O())},[f,c,O]);(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)&&O()};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[g,O]);let te=(0,t.useCallback)(e=>{switch(e.key){case`Enter`:case` `:case`ArrowDown`:e.preventDefault(),D();break;case`ArrowUp`:e.preventDefault(),E(),_(!0),y(a.reduce((e,t,n)=>t.disabled?e:n,-1));break}},[D,E,a]),ne=(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&&k(a[v]);break;case`Escape`:case`Tab`:O();break}},[a,v,k,O]);return(0,e.jsxs)(`div`,{className:[J.row,l?J.disabled:null,u].filter(Boolean).join(` `),...d,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`,{className:J.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:[J.trigger,g?J.triggerOpen:null].filter(Boolean).join(` `),onClick:()=>g?O():D(),onKeyDown:te,children:[(0,e.jsx)(`span`,{className:[J.triggerLabel,ee?null:J.placeholder].filter(Boolean).join(` `),children:ee?.label??`—`}),(0,e.jsx)(`svg`,{className:[J.chevron,g?J.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:[J.list,b?J.listUp:J.listDown].filter(Boolean).join(` `),onKeyDown:ne,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:[J.option,t.value===h?J.optionSelected:null,n===v?J.optionActive:null,t.disabled?J.optionDisabled:null].filter(Boolean).join(` `),onMouseEnter:()=>!t.disabled&&y(n),onClick:()=>k(t),children:[(0,e.jsx)(`span`,{className:J.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:J.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 Y={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 xi({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:[Y.row,y?Y.focused:null,c?Y.disabled:null,l].filter(Boolean).join(` `),onClick:()=>x.current?.focus(),children:[o&&(0,e.jsx)(`span`,{className:Y.leading,children:o}),(0,e.jsxs)(`span`,{className:Y.fieldWrap,children:[(0,e.jsx)(`label`,{htmlFor:m,className:[Y.label,S?Y.labelFloated:null].filter(Boolean).join(` `),children:n}),(0,e.jsx)(`input`,{ref:x,id:m,className:[Y.input,S?Y.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:Y.trailing,children:s})]})}var Si={revealButton:`_revealButton_1j8z0_3`};function Ci({trailing:n,disabled:r,...i}){let[a,o]=(0,t.useState)(!1),s=(0,e.jsx)(`button`,{type:`button`,className:Si.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?je:Ae,size:`md`,"aria-hidden":!0})});return(0,e.jsx)(xi,{...i,type:a?`text`:`password`,disabled:r,trailing:(0,e.jsxs)(e.Fragment,{children:[n,s]})})}var X={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 wi(e){let t=e.toString(),n=t.indexOf(`.`);return n===-1?0:t.length-n-1}function Ti(e,t,n){return Math.min(n,Math.max(t,e))}function Ei({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??wi(u),b=(0,t.useId)(),x=(0,t.useCallback)(e=>{let t=parseFloat(Ti(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:[X.row,f?X.disabled:null,p].filter(Boolean).join(` `),...m,children:[i&&(0,e.jsx)(`span`,{className:X.leading,children:i}),(0,e.jsxs)(`span`,{className:X.content,children:[(0,e.jsx)(`span`,{className:X.title,children:n}),r&&(0,e.jsx)(`span`,{className:X.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:X.spin,children:[(0,e.jsx)(`button`,{type:`button`,tabIndex:-1,"aria-hidden":`true`,disabled:f||v<=c,className:X.spinBtn,onClick:e=>{e.stopPropagation(),x(v-u)},children:`−`}),(0,e.jsx)(`span`,{id:b,className:X.spinValue,"aria-hidden":`true`,children:v.toFixed(y)}),(0,e.jsx)(`button`,{type:`button`,tabIndex:-1,"aria-hidden":`true`,disabled:f||v>=l,className:X.spinBtn,onClick:e=>{e.stopPropagation(),x(v+u)},children:`+`})]})]})}var Di=`_view_1r1om_3`,Oi=`_page_1r1om_12`,ki=`_pageHeader_1r1om_23`,Ai=`_pageTitle_1r1om_34`,ji=`_pageContent_1r1om_43`,Mi=`_enterForward_1r1om_52`,Ni=`_enterBack_1r1om_56`,Pi={view:Di,page:Oi,pageHeader:ki,pageTitle:Ai,pageContent:ji,enterForward:Mi,"slide-in-right":`_slide-in-right_1r1om_1`,enterBack:Ni,"slide-in-left":`_slide-in-left_1r1om_1`},Fi=(0,t.createContext)({navigate:()=>{},pop:()=>{},canGoBack:!1,currentTag:``,direction:`forward`});function Ii(){return(0,t.useContext)(Fi)}function Li({tag:n,title:r,children:i,className:a,...o}){let{currentTag:s,direction:c}=(0,t.useContext)(Fi);return s===n?(0,e.jsxs)(`div`,{className:[Pi.page,c===`forward`?Pi.enterForward:Pi.enterBack,a].filter(Boolean).join(` `),...o,children:[(0,e.jsx)(`div`,{className:Pi.pageHeader,children:(0,e.jsx)(`span`,{className:Pi.pageTitle,children:r})}),(0,e.jsx)(`div`,{className:Pi.pageContent,children:i})]}):null}function Ri({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)(Fi.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:[Pi.view,i].filter(Boolean).join(` `),...a,children:r})})}var zi=`_backdrop_zzv98_3`,Bi=`_sheet_zzv98_26`,Vi=`_handle_zzv98_49`,Hi=`_handleBar_zzv98_56`,Ui=`_title_zzv98_66`,Wi=`_content_zzv98_79`,Gi={backdrop:zi,"backdrop-in":`_backdrop-in_zzv98_1`,sheet:Bi,"sheet-in":`_sheet-in_zzv98_1`,handle:Vi,handleBar:Hi,title:Ui,content:Wi},Ki=`button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])`;function qi({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(Ki))?.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(Ki)??[]);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:Gi.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:[Gi.sheet,c].filter(Boolean).join(` `),onKeyDown:p,onClick:e=>e.stopPropagation(),...l,children:[(0,e.jsx)(`div`,{className:Gi.handle,"aria-hidden":`true`,children:(0,e.jsx)(`div`,{className:Gi.handleBar})}),i&&(0,e.jsx)(`div`,{id:d,className:Gi.title,children:i}),a&&(0,e.jsx)(`div`,{className:Gi.content,children:a})]})});return typeof document>`u`?m:(0,n.createPortal)(m,document.body)}var Z={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 Ji({pages:t,currentPage:n,onPageSelected:r,className:i,...a}){return(0,e.jsx)(`div`,{className:[Z.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:[Z.dot,i===n?Z.dotActive:null].filter(Boolean).join(` `),onClick:()=>r?.(i)},i))})}function Yi({pages:t,currentPage:n,onPageSelected:r,className:i,...a}){return(0,e.jsx)(`div`,{className:[Z.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:[Z.line,i===n?Z.lineActive:null].filter(Boolean).join(` `),onClick:()=>r?.(i)},i))})}function Xi({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:[Z.carousel,v?Z.horizontal:Z.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:Z.slide,role:`group`,"aria-roledescription":`slide`,"aria-label":`${n+1} of ${d}`,children:t},n))})}function Zi({children:t,...n}){return(0,e.jsx)(`div`,{...n,children:t})}var Qi={content:`_content_1xkwk_3`,icon:`_icon_1xkwk_9`,label:`_label_1xkwk_15`};function $i({icon:t,label:n,iconPosition:r=`start`,className:i,...a}){return(0,e.jsxs)(`span`,{className:[Qi.content,r===`end`?Qi.iconEnd:null,i].filter(Boolean).join(` `),...a,children:[t&&r===`start`&&(0,e.jsx)(`span`,{className:Qi.icon,"aria-hidden":`true`,children:t}),(0,e.jsx)(`span`,{className:Qi.label,children:n}),t&&r===`end`&&(0,e.jsx)(`span`,{className:Qi.icon,"aria-hidden":`true`,children:t})]})}var ea={label:`_label_h3znl_3`,key:`_key_h3znl_9`},ta={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 na({shortcut:t,symbols:n=!0,className:r,...i}){let a=t.split(`+`).map(e=>e.trim()).filter(Boolean);return(0,e.jsx)(`span`,{className:[ea.label,r].filter(Boolean).join(` `),"aria-label":t,...i,children:a.map((t,r)=>{let i=n?ta[t.toLowerCase()]??t:t;return(0,e.jsx)(`kbd`,{className:ea.key,children:i},r)})})}var ra={toolbarView:`_toolbarView_134hf_3`,top:`_top_134hf_11`,content:`_content_134hf_16`,bottom:`_bottom_134hf_23`};function ia({topBar:t,bottomBar:n,children:r,className:i,...a}){return(0,e.jsxs)(`div`,{className:[ra.toolbarView,i].filter(Boolean).join(` `),...a,children:[t&&(0,e.jsx)(`div`,{className:ra.top,children:t}),(0,e.jsx)(`div`,{className:ra.content,children:r}),n&&(0,e.jsx)(`div`,{className:ra.bottom,children:n})]})}var aa={windowTitle:`_windowTitle_zm877_3`,title:`_title_zm877_11`,subtitle:`_subtitle_zm877_24`};function oa({title:t,subtitle:n,className:r,...i}){return(0,e.jsxs)(`div`,{className:[aa.windowTitle,r].filter(Boolean).join(` `),...i,children:[(0,e.jsx)(`span`,{className:aa.title,children:t}),n&&(0,e.jsx)(`span`,{className:aa.subtitle,children:n})]})}var sa={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 ca({title:t,description:n,headerSuffix:r,children:i,className:a,...o}){let s=t||n||r;return(0,e.jsxs)(`div`,{className:[sa.group,a].filter(Boolean).join(` `),...o,children:[s&&(0,e.jsxs)(`div`,{className:sa.header,children:[(0,e.jsxs)(`div`,{className:sa.headerText,children:[t&&(0,e.jsx)(`span`,{className:sa.title,children:t}),n&&(0,e.jsx)(`span`,{className:sa.description,children:n})]}),r&&(0,e.jsx)(`div`,{className:sa.suffix,children:r})]}),(0,e.jsx)(`div`,{className:sa.content,children:i})]})}var la={page:`_page_gt42j_3`,inner:`_inner_gt42j_10`};function ua({title:t,iconName:n,children:r,className:i,...a}){return(0,e.jsx)(`div`,{className:[la.page,i].filter(Boolean).join(` `),role:`tabpanel`,...a,children:(0,e.jsx)(`div`,{className:la.inner,children:r})})}var da=`_backdrop_1u1bd_3`,fa=`_dialog_1u1bd_26`,pa=`_dialogMulti_1u1bd_46`,ma=`_header_1u1bd_63`,ha=`_closeBtn_1u1bd_73`,ga=`_title_1u1bd_102`,_a=`_searchWrap_1u1bd_112`,va=`_searchInput_1u1bd_116`,ya=`_body_1u1bd_143`,ba=`_sidebar_1u1bd_152`,xa=`_navList_1u1bd_160`,Sa=`_navItem_1u1bd_169`,Ca=`_navItemActive_1u1bd_190`,wa=`_navIcon_1u1bd_205`,Ta=`_navLabel_1u1bd_211`,Ea=`_pageWrap_1u1bd_221`,Q={backdrop:da,"backdrop-in":`_backdrop-in_1u1bd_1`,dialog:fa,"dialog-in":`_dialog-in_1u1bd_1`,dialogMulti:pa,header:ma,closeBtn:ha,title:ga,searchWrap:_a,searchInput:va,body:ya,sidebar:ba,navList:xa,navItem:Sa,navItemActive:Ca,navIcon:wa,navLabel:Ta,pageWrap:Ea},Da=`button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])`;function Oa(e,t){if(e.key!==`Tab`)return;let n=Array.from(t.current?.querySelectorAll(Da)??[]);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 ka({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(Da))?.focus()});return()=>cancelAnimationFrame(e)}},[r,o]);let _=(0,t.useCallback)(e=>{if(e.key===`Escape`){e.stopPropagation(),i();return}Oa(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:Q.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:[Q.dialog,v?Q.dialogMulti:null,s].filter(Boolean).join(` `),onKeyDown:_,...c,children:[(0,e.jsxs)(`div`,{className:Q.header,children:[(0,e.jsx)(`button`,{type:`button`,className:Q.closeBtn,onClick:i,"aria-label":`Close preferences`,children:`✕`}),(0,e.jsx)(`span`,{id:d,className:Q.title,children:`Preferences`}),o&&(0,e.jsx)(`div`,{className:Q.searchWrap,children:(0,e.jsx)(`input`,{ref:u,type:`search`,placeholder:`Search…`,value:h,onChange:e=>g(e.target.value),className:Q.searchInput,"aria-label":`Search preferences`})})]}),(0,e.jsxs)(`div`,{className:Q.body,children:[v&&(0,e.jsx)(`nav`,{className:Q.sidebar,"aria-label":`Preferences pages`,children:(0,e.jsx)(`ul`,{role:`tablist`,className:Q.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:[Q.navItem,n===p?Q.navItemActive:null].filter(Boolean).join(` `),onClick:()=>m(n),children:[t.props.iconName&&(0,e.jsx)(`span`,{className:[Q.navIcon,`icon`,t.props.iconName].join(` `),"aria-hidden":`true`}),(0,e.jsx)(`span`,{className:Q.navLabel,children:t.props.title})]})},n))})}),(0,e.jsx)(`div`,{className:Q.pageWrap,children:y&&(0,t.cloneElement)(y,{"data-search-query":b||void 0})})]})]})}),document.body):null}var $={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 Aa({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:[$.root,o?$.horizontal:$.vertical,i].filter(Boolean).join(` `),...a,children:t.map((n,i)=>{let a=i===0,c=i===t.length-1,l=[$.line,r===`dotted`?$.lineDotted:null].filter(Boolean).join(` `),u=(0,e.jsx)(`div`,{className:[$.node,n.icon?$.nodeWithIcon:$.nodeDot].filter(Boolean).join(` `),children:n.icon&&(0,e.jsx)(`span`,{className:$.iconWrap,"aria-hidden":`true`,children:n.icon})});return(0,e.jsxs)(`div`,{role:`listitem`,className:$.item,children:[(0,e.jsx)(`div`,{className:$.leading,children:n.leading}),o?(0,e.jsxs)(`div`,{className:$.nodeTrack,children:[(0,e.jsx)(`div`,{className:[$.line,r===`dotted`?$.lineDotted:null,a||!s?$.lineInvisible:null].filter(Boolean).join(` `),"aria-hidden":`true`}),u,(0,e.jsx)(`div`,{className:[$.line,r===`dotted`?$.lineDotted:null,c||!s?$.lineInvisible:null].filter(Boolean).join(` `),"aria-hidden":`true`})]}):(0,e.jsxs)(`div`,{className:$.nodeTrack,children:[u,!c&&s&&(0,e.jsx)(`div`,{className:l,"aria-hidden":`true`})]}),(0,e.jsx)(`div`,{className:$.content,children:n.content})]},i)})})}var ja={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 Ma({segments:t,onNavigate:n,className:r,...i}){return(0,e.jsx)(`nav`,{"aria-label":`Breadcrumb`,className:[ja.pathBar,r].filter(Boolean).join(` `),...i,children:(0,e.jsx)(`ol`,{className:ja.list,"aria-label":`Path segments`,children:t.map((r,i)=>{let a=i===t.length-1;return(0,e.jsxs)(`li`,{className:ja.item,children:[i>0&&(0,e.jsx)(`span`,{className:ja.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:ja.current,"aria-current":`page`,children:[r.icon&&(0,e.jsx)(`span`,{className:ja.icon,"aria-hidden":`true`,children:r.icon}),r.label]}):(0,e.jsxs)(`button`,{type:`button`,className:ja.segment,onClick:()=>n?.(r.path,i),children:[r.icon&&(0,e.jsx)(`span`,{className:ja.icon,"aria-hidden":`true`,children:r.icon}),r.label]})]},r.path)})})})}exports.ActionRow=yt,exports.Avatar=E,exports.Badge=Te,exports.Banner=ye,exports.Bin=Zi,exports.Blockquote=i,exports.BottomSheet=qi,exports.Box=nr,exports.BoxedList=xt,exports.BreakpointBin=Mr,exports.Button=o,exports.ButtonContent=$i,exports.ButtonRow=Pr,exports.Card=b,exports.Carousel=Xi,exports.CarouselIndicatorDots=Ji,exports.CarouselIndicatorLines=Yi,exports.CheckRow=Zr,exports.Checkbox=re,exports.Chip=or,exports.Clamp=Wn,exports.ComboRow=bi,exports.Dialog=mn,exports.Dropdown=Nn,exports.EntryRow=xi,exports.ExpanderRow=Wr,exports.Footer=Ce,exports.Frame=Ur,exports.GNOME_BREAKPOINTS=Ie,exports.HeaderBar=xe,exports.Icon=j,exports.InlineViewSwitcher=Jr,exports.InlineViewSwitcherItem=Yr,exports.Link=Xn,exports.LinkedGroup=Vr,exports.NavigationPage=Li,exports.NavigationSplitView=Gn,exports.NavigationView=Ri,exports.OverlaySplitView=Kn,exports.PasswordEntryRow=Ci,exports.PathBar=Ma,exports.Popover=Hn,exports.PreferencesDialog=ka,exports.PreferencesGroup=ca,exports.PreferencesPage=ua,exports.ProgressBar=ce,exports.RadioButton=oe,exports.SearchBar=Ne,exports.Separator=O,exports.ShortcutLabel=na,exports.ShortcutsDialog=Dr,exports.Sidebar=ot,exports.SidebarCollapsedContext=nt,exports.SidebarItem=dt,exports.SidebarSection=st,exports.Slider=Ln,exports.Spacer=zr,exports.SpinButton=ht,exports.SpinRow=Ei,exports.Spinner=S,exports.SplitButton=Ir,exports.StatusPage=Fe,exports.Switch=te,exports.SwitchRow=Xr,exports.TabBar=gt,exports.TabItem=_t,exports.TabPanel=vt,exports.Text=g,exports.TextField=ie,exports.Timeline=Aa,exports.Toast=Pt,exports.Toaster=Ft,exports.ToggleGroup=er,exports.ToggleGroupItem=tr,exports.Toolbar=Rr,exports.ToolbarView=ia,exports.Tooltip=ut,exports.ViewSwitcher=Ct,exports.ViewSwitcherBar=Jn,exports.ViewSwitcherItem=wt,exports.ViewSwitcherSidebar=Ar,exports.ViewSwitcherSidebarItem=jr,exports.WindowTitle=oa,exports.WrapBox=ir,exports.useBreakpoint=Le,exports.useNavigation=Ii,exports.useSidebarCollapsed=rt;
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 j={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 re({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:[j.wrapper,s?j.disabled:null].filter(Boolean).join(` `),children:[n&&(0,e.jsx)(`label`,{htmlFor:u,className:j.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:[j.input,i?j.errorInput:null,o].filter(Boolean).join(` `),...c}),(i||r)&&(0,e.jsx)(`span`,{id:d,className:[j.hint,i?j.errorHint:null].filter(Boolean).join(` `),children:i??r})]})}var ie={radio:`_radio_1vybt_3`};function ae({className:t,...n}){return(0,e.jsx)(`input`,{type:`radio`,className:[ie.radio,t].filter(Boolean).join(` `),...n})}var oe={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 se({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:[oe.track,r].filter(Boolean).join(` `),...o,children:(0,e.jsx)(`div`,{className:[oe.fill,oe[n],s?oe.indeterminate:null].filter(Boolean).join(` `),style:s?void 0:{width:`${l}%`}})})}var ce=`_banner_1x3b0_3`,le=`_message_1x3b0_17`,ue=`_actions_1x3b0_24`,de=`_actionBtn_1x3b0_33`,fe=`_dismissBtn_1x3b0_55`,pe=`_info_1x3b0_85`,me=`_warning_1x3b0_99`,he=`_error_1x3b0_113`,ge=`_success_1x3b0_127`,_e={banner:ce,message:le,actions:ue,actionBtn:de,dismissBtn:fe,info:pe,"actionBtn-info":`_actionBtn-info_1x3b0_90`,warning:me,"actionBtn-warning":`_actionBtn-warning_1x3b0_104`,error:he,"actionBtn-error":`_actionBtn-error_1x3b0_118`,success:ge,"actionBtn-success":`_actionBtn-success_1x3b0_132`};function ve({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:[_e.banner,_e[t],s].filter(Boolean).join(` `),...c,children:[(0,e.jsx)(`span`,{className:_e.message,children:n}),(r||a)&&(0,e.jsxs)(`span`,{className:_e.actions,children:[r&&(0,e.jsx)(`button`,{type:`button`,className:[_e.actionBtn,_e[`actionBtn-${t}`]].filter(Boolean).join(` `),onClick:i,children:r}),a&&(0,e.jsx)(`button`,{type:`button`,className:_e.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 ye={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 be({title:t,start:n,end:r,flat:i=!1,className:a,...o}){return(0,e.jsxs)(`header`,{className:[ye.headerBar,i?ye.flat:null,a].filter(Boolean).join(` `),...o,children:[(0,e.jsx)(`div`,{className:ye.slot,children:n}),(0,e.jsx)(`div`,{className:ye.titleSlot,"aria-live":`polite`,children:typeof t==`string`?(0,e.jsx)(`span`,{className:ye.title,children:t}):t}),(0,e.jsx)(`div`,{className:[ye.slot,ye.slotEnd].filter(Boolean).join(` `),children:r})]})}var xe={footer:`_footer_10xz9_3`,flat:`_flat_10xz9_23`,slot:`_slot_10xz9_29`,slotEnd:`_slotEnd_10xz9_36`,center:`_center_10xz9_42`};function Se({start:t,end:n,children:r,flat:i=!1,className:a,...o}){return(0,e.jsxs)(`footer`,{className:[xe.footer,i?xe.flat:null,a].filter(Boolean).join(` `),...o,children:[(0,e.jsx)(`div`,{className:xe.slot,children:t}),r!=null&&(0,e.jsx)(`div`,{className:xe.center,children:r}),(0,e.jsx)(`div`,{className:[xe.slot,xe.slotEnd].filter(Boolean).join(` `),children:n})]})}var Ce={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 we({variant:t=`accent`,dot:n=!1,children:r,anchor:i,className:a,...o}){let s=(0,e.jsx)(`span`,{className:[Ce.badge,Ce[t],n?Ce.dot:null,i?Ce.anchored:null,a].filter(Boolean).join(` `),...o,children:!n&&r});return i?(0,e.jsxs)(`span`,{className:Ce.wrapper,children:[i,s]}):s}var Te={sm:12,md:16,lg:20};function M({icon:t,size:n=`md`,label:r,width:i,height:a,...o}){let s=Te[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 Ee={viewBox:`0 0 16 16`,paths:[{d:`m2.5 5 5.5 6 5.5-6z`,fillRule:`evenodd`}]},De={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`}]},Oe={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`}]},ke={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`}]},Ae={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`}]},je={viewBox:`0 0 16 16`,paths:[{d:`M13.5 3 6 11.5 2.5 8 1 9.5l5 5 9-10z`,fillRule:`evenodd`}]},N={wrapper:`_wrapper_1rkb1_3`,open:`_open_1rkb1_13`,bar:`_bar_1rkb1_20`,disabled:`_disabled_1rkb1_31`,searchIcon:`_searchIcon_1rkb1_37`,input:`_input_1rkb1_47`,clearButton:`_clearButton_1rkb1_82`,filterRow:`_filterRow_1rkb1_124`,inline:`_inline_1rkb1_136`};function Me({open:n,onClose:r,onClear:i,children:a,value:o,onChange:s,placeholder:c=`Search…`,disabled:l,inline:u=!1,className:d,...f}){let p=(0,t.useRef)(null);(0,t.useEffect)(()=>{if(n){let e=requestAnimationFrame(()=>p.current?.focus());return()=>cancelAnimationFrame(e)}},[n]);let m=(0,t.useCallback)(e=>{e.key===`Escape`&&(e.preventDefault(),r?.()),f.onKeyDown?.(e)},[r,f]),h=o!==void 0&&o!==``;return(0,e.jsxs)(`div`,{className:[N.wrapper,n?N.open:null,d].filter(Boolean).join(` `),"aria-hidden":!n,children:[(0,e.jsxs)(`div`,{className:[N.bar,u?N.inline:null,l?N.disabled:null].filter(Boolean).join(` `),children:[(0,e.jsx)(`span`,{className:N.searchIcon,"aria-hidden":!0,children:(0,e.jsx)(M,{icon:Oe,size:`md`})}),(0,e.jsx)(`input`,{ref:p,type:`search`,role:`searchbox`,value:o,onChange:s,placeholder:c,disabled:l,tabIndex:n?void 0:-1,className:N.input,onKeyDown:m,...f}),h&&(0,e.jsx)(`button`,{type:`button`,className:N.clearButton,"aria-label":`Clear search`,tabIndex:n?void 0:-1,disabled:l,onClick:()=>{i?.(),p.current?.focus()},children:(0,e.jsx)(M,{icon:De,size:`md`})})]}),a&&(0,e.jsx)(`div`,{className:N.filterRow,children:a})]})}var Ne={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 Pe({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)(M,{icon:t,width:l,height:l,"aria-hidden":!0}):n??null;return(0,e.jsxs)(`div`,{className:[Ne.page,o?Ne.compact:null,s].filter(Boolean).join(` `),...c,children:[u&&(0,e.jsx)(`div`,{className:Ne.iconWrap,"aria-hidden":`true`,children:u}),(0,e.jsx)(`p`,{className:Ne.title,children:r}),i&&(0,e.jsx)(`p`,{className:Ne.description,children:i}),a&&(0,e.jsx)(`div`,{className:Ne.actions,children:a})]})}var Fe={narrow:400,medium:550,wide:860};function Ie(){let e=()=>{let e=typeof window<`u`?window.innerWidth:1280;return{isNarrow:e<=Fe.narrow,isMedium:e<=Fe.medium,isWide:e<=Fe.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 Le=`_sidebar_b80pp_3`,Re=`_section_b80pp_21`,ze=`_sectionTitle_b80pp_33`,Be=`_list_b80pp_47`,Ve=`_item_b80pp_58`,He=`_itemBtn_b80pp_64`,Ue=`_active_b80pp_111`,We=`_itemIcon_b80pp_127`,Ge=`_itemLabel_b80pp_140`,Ke=`_itemSuffix_b80pp_150`,qe=`_contextMenu_b80pp_159`,Je=`_contextMenuItem_b80pp_183`,Ye=`_contextMenuDestructive_b80pp_219`,Xe=`_searchWrap_b80pp_225`,Ze=`_pageMode_b80pp_236`,Qe=`_dragOver_b80pp_243`,$e=`_collapsed_b80pp_251`,et=`_itemCollapsed_b80pp_262`,P={sidebar:Le,section:Re,sectionTitle:ze,list:Be,item:Ve,itemBtn:He,active:Ue,itemIcon:We,itemLabel:Ge,itemSuffix:Ke,contextMenu:qe,"menu-in":`_menu-in_b80pp_1`,contextMenuItem:Je,contextMenuDestructive:Ye,searchWrap:Xe,pageMode:Ze,dragOver:Qe,collapsed:$e,itemCollapsed:et},tt=(0,t.createContext)(!1);function nt(){return(0,t.useContext)(tt)}var rt=(0,t.createContext)(``);function it(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+=it(i.children,n))}),r}function at({children:n,collapsed:r=!1,searchable:i,filter:a,onFilterChange:o,mode:s,className:c,...l}){let[u,d]=(0,t.useState)(``),{isNarrow:f}=Ie(),p=a!==void 0,m=p?a:u,h=e=>{p||d(e),o?.(e)},g=m.length>0,_=s??(f?`page`:`sidebar`),v=!g||it(n,m)>0;return(0,e.jsx)(tt.Provider,{value:r,children:(0,e.jsx)(rt.Provider,{value:m,children:(0,e.jsxs)(`nav`,{className:[P.sidebar,r?P.collapsed:null,_===`page`?P.pageMode:null,c].filter(Boolean).join(` `),...l,children:[i&&(0,e.jsx)(`div`,{className:P.searchWrap,children:(0,e.jsx)(Me,{open:!0,value:m,onChange:e=>h(e.target.value),onClose:()=>h(``),onClear:()=>h(``),inline:!0})}),g&&!v?(0,e.jsx)(Pe,{title:`No Results`,description:`No items match your search.`,compact:!0}):n]})})})}function ot({title:t,children:n,className:r,...i}){return(0,e.jsxs)(`section`,{className:[P.section,r].filter(Boolean).join(` `),...i,children:[t&&(0,e.jsx)(`h3`,{className:P.sectionTitle,children:t}),(0,e.jsx)(`ul`,{role:`list`,className:P.list,children:n})]})}var st={tooltip:`_tooltip_y4het_3`,visible:`_visible_y4het_29`,top:`_top_y4het_55`,bottom:`_bottom_y4het_62`,left:`_left_y4het_69`,right:`_right_y4het_76`},ct=6;function lt(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-ct,o=e.left+e.width/2-t.width/2):n===`bottom`?(a=e.bottom+ct,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-ct):(a=e.top+e.height/2-t.height/2,o=e.right+ct);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-ct,s=e.left+e.width/2-t.width/2),n===`bottom`&&(o=e.bottom+ct,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-ct),n===`right`&&(o=e.top+e.height/2-t.height/2,s=e.right+ct),{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 ut({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(lt(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:[st.tooltip,u?st[u.placement]:null,c&&u?st.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 dt({label:r,icon:i,active:a=!1,suffix:o,badge:s,tooltip:c,menuItems:l,onDrop:u,acceptTypes:d,className:f,...p}){let m=nt(),h=(0,t.useContext)(rt),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:[P.itemBtn,a?P.active:null,m?P.itemCollapsed:null,y?P.dragOver:null,f].filter(Boolean).join(` `),onContextMenu:k,onKeyDown:A,onDragOver:x,onDragLeave:S,onDrop:C,...p,children:[i&&(0,e.jsx)(`span`,{className:P.itemIcon,children:(0,e.jsx)(M,{icon:i,size:`md`,"aria-hidden":!0})}),!m&&(0,e.jsx)(`span`,{className:P.itemLabel,children:r}),!m&&g&&(0,e.jsx)(`span`,{className:P.itemSuffix,children:g})]});return(0,e.jsxs)(`li`,{className:P.item,hidden:v||void 0,children:[_?(0,e.jsx)(ut,{label:_,placement:`right`,children:ee}):ee,w&&l?.length&&typeof document<`u`&&(0,n.createPortal)((0,e.jsx)(`div`,{ref:E,className:P.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:[P.contextMenuItem,t.destructive?P.contextMenuDestructive:null].filter(Boolean).join(` `),onClick:()=>{t.onClick(),O()},children:t.label},t.label))}),document.body)]})}var ft={spin:`_spin_7d4yi_3`,disabled:`_disabled_7d4yi_36`,btn:`_btn_7d4yi_43`,value:`_value_7d4yi_96`};function pt(e){let t=e.toString(),n=t.indexOf(`.`);return n===-1?0:t.length-n-1}function mt(e,t,n){return Math.min(n,Math.max(t,e))}function ht({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??pt(o),m=(0,t.useCallback)(e=>r(parseFloat(mt(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:[ft.spin,c?ft.disabled:null,l].filter(Boolean).join(` `),...f,children:[(0,e.jsx)(`button`,{type:`button`,tabIndex:-1,"aria-hidden":`true`,disabled:c||n<=i,className:ft.btn,onClick:()=>m(n-o),children:`−`}),(0,e.jsx)(`span`,{className:ft.value,"aria-hidden":`true`,children:n.toFixed(p)}),(0,e.jsx)(`button`,{type:`button`,tabIndex:-1,"aria-hidden":`true`,disabled:c||n>=a,className:ft.btn,onClick:()=>m(n+o),children:`+`})]})}var F={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 gt({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:[F.bar,i?F.inline:null,r].filter(Boolean).join(` `),...o,children:(0,e.jsx)(`div`,{ref:s,role:`tablist`,"aria-label":a,className:F.list,onKeyDown:c,children:n})})}function _t({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:[F.tab,r?F.active:null,a?F.closeable:null,s].filter(Boolean).join(` `),...l,children:[n&&(0,e.jsx)(`span`,{className:F.tabIcon,children:(0,e.jsx)(M,{icon:n,size:`sm`,"aria-hidden":!0})}),(0,e.jsx)(`span`,{className:F.tabLabel,children:t}),a&&(0,e.jsx)(`span`,{role:`button`,tabIndex:0,"aria-label":o,className:F.closeBtn,onClick:e=>{e.stopPropagation(),a()},onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),e.stopPropagation(),a())},children:`×`})]})}function vt({id:t,active:n=!1,className:r,children:i,...a}){return(0,e.jsx)(`div`,{id:t,role:`tabpanel`,hidden:!n,tabIndex:0,className:[F.panel,r].filter(Boolean).join(` `),...a,children:i})}var I={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 yt({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:[I.row,a?I.interactive:null,u?I.property:null,s].filter(Boolean).join(` `),...c,children:[r&&(0,e.jsx)(`span`,{className:I.leading,children:r}),(0,e.jsxs)(`span`,{className:I.content,children:[(0,e.jsx)(`span`,{className:u?I.propertyLabel:I.title,children:t}),n&&(0,e.jsx)(`span`,{className:u?I.propertyValue:I.subtitle,children:n})]}),i&&(0,e.jsx)(`span`,{className:I.trailing,children:i})]})}var bt={list:`_list_cy3hv_3`,item:`_item_cy3hv_17`,separate:`_separate_cy3hv_26`,separateItem:`_separateItem_cy3hv_36`,divider:`_divider_cy3hv_58`};function xt({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:[bt.list,s?bt.separate:null,i].filter(Boolean).join(` `),...a,children:o.map((t,n)=>(0,e.jsxs)(`li`,{className:s?bt.separateItem:bt.item,children:[!s&&n>0&&(0,e.jsx)(k,{"aria-hidden":`true`}),t]},n))})}var St={switcher:`_switcher_1uh9r_3`,item:`_item_1uh9r_18`,active:`_active_1uh9r_45`,itemIcon:`_itemIcon_1uh9r_76`,itemLabel:`_itemLabel_1uh9r_84`};function Ct({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:[St.switcher,r].filter(Boolean).join(` `),...a,children:n})}function wt({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:[St.item,r?St.active:null,i].filter(Boolean).join(` `),...o,children:[n&&(0,e.jsx)(`span`,{className:St.itemIcon,children:(0,e.jsx)(M,{icon:n,size:`md`,"aria-hidden":!0})}),(0,e.jsx)(`span`,{className:St.itemLabel,children:t})]})}var Tt=`_toaster_1tgvb_3`,Et=`_toasterBottom_1tgvb_18`,Dt=`_toasterTop_1tgvb_22`,Ot=`_toast_1tgvb_3`,kt=`_title_1tgvb_69`,At=`_actions_1tgvb_76`,jt=`_actionBtn_1tgvb_85`,Mt=`_dismissBtn_1tgvb_118`,Nt={toaster:Tt,toasterBottom:Et,toasterTop:Dt,toast:Ot,"toast-in":`_toast-in_1tgvb_1`,title:kt,actions:At,actionBtn:jt,dismissBtn:Mt};function Pt({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:[Nt.toast,c].filter(Boolean).join(` `),onMouseEnter:h,onMouseLeave:g,onFocus:h,onBlur:g,...l,children:[(0,e.jsx)(`span`,{className:Nt.title,children:n}),(a||s)&&(0,e.jsxs)(`span`,{className:Nt.actions,children:[a&&(0,e.jsx)(`button`,{type:`button`,className:Nt.actionBtn,onClick:_,children:a}),s&&(0,e.jsx)(`button`,{type:`button`,className:Nt.dismissBtn,"aria-label":`Dismiss`,onClick:()=>{p(),i?.()},children:(0,e.jsx)(M,{icon:De,size:`md`,"aria-hidden":!0})})]})]})}function Ft({position:t=`bottom`,children:r,container:i,className:a,...o}){let s=(0,e.jsx)(`div`,{"aria-label":`Notifications`,className:[Nt.toaster,t===`top`?Nt.toasterTop:Nt.toasterBottom,a].filter(Boolean).join(` `),...o,children:r});return typeof document>`u`?s:(0,n.createPortal)(s,i??document.body)}var It=`_backdrop_zx0yn_3`,Lt=`_dialog_zx0yn_26`,Rt=`_title_zx0yn_56`,zt=`_body_zx0yn_70`,Bt=`_footer_zx0yn_85`,Vt=`_btn_zx0yn_92`,Ht=`_dialogAbout_zx0yn_155`,Ut=`_aboutHeader_zx0yn_162`,Wt=`_aboutIcon_zx0yn_171`,Gt=`_aboutAppName_zx0yn_180`,Kt=`_aboutVersion_zx0yn_187`,qt=`_aboutTabBar_zx0yn_194`,Jt=`_aboutTabBtn_zx0yn_201`,Yt=`_aboutTabBtnActive_zx0yn_220`,Xt=`_aboutTabContent_zx0yn_233`,Zt=`_aboutSection_zx0yn_238`,Qt=`_aboutComments_zx0yn_243`,$t=`_aboutInfoList_zx0yn_252`,en=`_aboutInfoLabel_zx0yn_259`,tn=`_aboutInfoValue_zx0yn_267`,nn=`_aboutLink_zx0yn_275`,rn=`_aboutCreditGroup_zx0yn_283`,an=`_aboutCreditTitle_zx0yn_287`,on=`_aboutCreditList_zx0yn_297`,sn=`_aboutCreditItem_zx0yn_306`,cn=`_aboutCopyright_zx0yn_312`,ln=`_aboutLicenseType_zx0yn_319`,un=`_aboutLicenseText_zx0yn_326`,L={backdrop:It,"backdrop-in":`_backdrop-in_zx0yn_1`,dialog:Lt,"dialog-in":`_dialog-in_zx0yn_1`,title:Rt,body:zt,footer:Bt,btn:Vt,"btn-default":`_btn-default_zx0yn_140`,"btn-suggested":`_btn-suggested_zx0yn_144`,"btn-destructive":`_btn-destructive_zx0yn_149`,dialogAbout:Ht,aboutHeader:Ut,aboutIcon:Wt,aboutAppName:Gt,aboutVersion:Kt,aboutTabBar:qt,aboutTabBtn:Jt,aboutTabBtnActive:Yt,aboutTabContent:Xt,aboutSection:Zt,aboutComments:Qt,aboutInfoList:$t,aboutInfoLabel:en,aboutInfoValue:tn,aboutLink:nn,aboutCreditGroup:rn,aboutCreditTitle:an,aboutCreditList:on,aboutCreditItem:sn,aboutCopyright:cn,aboutLicenseType:ln,aboutLicenseText:un},dn=`button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])`;function fn(e,t){if(e.key!==`Tab`)return;let n=Array.from(t.current?.querySelectorAll(dn)??[]);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 pn={details:`Details`,credits:`Credits`,legal:`Legal`};function mn({open:r,title:i,children:a,buttons:o=[],onClose:s,closeOnBackdrop:c=!0,role:l=`dialog`,responses:u,onResponse:d,variant:f,applicationName:p,applicationIcon:m,version:h,comments:g,developerName:_,website:v,websiteLabel:y,developers:b,designers:x,artists:S,copyright:C,licenseType:w,licenseText:T,links:E,className:D,...O}){let k=(0,t.useRef)(null),A=(0,t.useId)(),ee=(0,t.useRef)(null),[te,ne]=(0,t.useState)(`details`),j=!!u,re=f===`about`;(0,t.useEffect)(()=>{r?(ee.current=document.activeElement,(k.current?.querySelector(dn))?.focus()):(ee.current?.focus(),re&&ne(`details`))},[r,re]);let ie=(0,t.useCallback)(()=>{let e=u?.find(e=>e.variant!==`destructive`&&!e.disabled);e&&d?.(e.id)},[u,d]),ae=j?ie:c?s:void 0,oe=(0,t.useCallback)(e=>{if(e.key===`Escape`){e.preventDefault(),j?ie():s?.();return}fn(e,k)},[j,ie,s]);if(!r)return null;let se=[`details`,!!(b?.length||x?.length||S?.length)&&`credits`,!!(C||w||T)&&`legal`].filter(Boolean),ce=()=>re?(0,e.jsx)(`div`,{className:L.footer,children:(0,e.jsx)(`button`,{type:`button`,className:[L.btn,L[`btn-default`]].join(` `),onClick:s,children:`Close`})}):j&&u?(0,e.jsx)(`div`,{className:L.footer,children:u.map(t=>(0,e.jsx)(`button`,{type:`button`,disabled:t.disabled,className:[L.btn,L[`btn-${t.variant??`default`}`]].filter(Boolean).join(` `),onClick:()=>d?.(t.id),children:t.label},t.id))}):o.length>0?(0,e.jsx)(`div`,{className:L.footer,children:o.map(t=>(0,e.jsx)(`button`,{type:`button`,disabled:t.disabled,className:[L.btn,L[`btn-${t.variant??`default`}`]].filter(Boolean).join(` `),onClick:t.onClick,children:t.label},t.label))}):null,le=()=>(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(`div`,{className:L.aboutHeader,children:[m&&(0,e.jsx)(`div`,{className:L.aboutIcon,children:m}),(0,e.jsx)(`div`,{id:A,className:L.aboutAppName,children:p}),h&&(0,e.jsx)(`div`,{className:L.aboutVersion,children:h})]}),se.length>1&&(0,e.jsx)(`div`,{className:L.aboutTabBar,role:`tablist`,children:se.map(t=>(0,e.jsx)(`button`,{type:`button`,role:`tab`,"aria-selected":te===t,className:[L.aboutTabBtn,te===t?L.aboutTabBtnActive:null].filter(Boolean).join(` `),onClick:()=>ne(t),children:pn[t]},t))}),(0,e.jsxs)(`div`,{className:L.aboutTabContent,children:[te===`details`&&(0,e.jsxs)(`div`,{className:L.aboutSection,children:[g&&(0,e.jsx)(`p`,{className:L.aboutComments,children:g}),(_||v||E?.length)&&(0,e.jsxs)(`dl`,{className:L.aboutInfoList,children:[_&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(`dt`,{className:L.aboutInfoLabel,children:`Developer`}),(0,e.jsx)(`dd`,{className:L.aboutInfoValue,children:_})]}),v&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(`dt`,{className:L.aboutInfoLabel,children:`Website`}),(0,e.jsx)(`dd`,{className:L.aboutInfoValue,children:(0,e.jsx)(`a`,{href:v,target:`_blank`,rel:`noopener noreferrer`,className:L.aboutLink,children:y??v})})]}),E?.map(t=>(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(`dt`,{className:L.aboutInfoLabel,children:t.label},`${t.label}-dt`),(0,e.jsx)(`dd`,{className:L.aboutInfoValue,children:(0,e.jsx)(`a`,{href:t.url,target:`_blank`,rel:`noopener noreferrer`,className:L.aboutLink,children:t.url})},`${t.label}-dd`)]}))]})]}),te===`credits`&&(0,e.jsx)(`div`,{className:L.aboutSection,children:[{heading:`Developers`,list:b},{heading:`Designers`,list:x},{heading:`Artists`,list:S}].filter(e=>e.list?.length).map(({heading:t,list:n})=>(0,e.jsxs)(`div`,{className:L.aboutCreditGroup,children:[(0,e.jsx)(`h4`,{className:L.aboutCreditTitle,children:t}),(0,e.jsx)(`ul`,{className:L.aboutCreditList,children:n.map(t=>(0,e.jsx)(`li`,{className:L.aboutCreditItem,children:t},t))})]},t))}),te===`legal`&&(0,e.jsxs)(`div`,{className:L.aboutSection,children:[C&&(0,e.jsx)(`p`,{className:L.aboutCopyright,children:C}),w&&(0,e.jsx)(`p`,{className:L.aboutLicenseType,children:w}),T&&(0,e.jsx)(`pre`,{className:L.aboutLicenseText,children:T})]})]})]}),ue=(0,e.jsx)(`div`,{className:L.backdrop,onClick:ae,"aria-hidden":`true`,children:(0,e.jsxs)(`div`,{ref:k,role:l,"aria-modal":`true`,"aria-labelledby":A,className:[L.dialog,re?L.dialogAbout:null,D].filter(Boolean).join(` `),onKeyDown:oe,onClick:e=>e.stopPropagation(),...O,children:[re?le():(0,e.jsxs)(e.Fragment,{children:[i&&(0,e.jsx)(`div`,{id:A,className:L.title,children:i}),a&&(0,e.jsx)(`div`,{className:L.body,children:a})]}),ce()]})});return typeof document>`u`?ue:(0,n.createPortal)(ue,document.body)}var hn=`_wrapper_1hi05_3`,gn=`_trigger_1hi05_11`,_n=`_triggerOpen_1hi05_63`,vn=`_triggerLabel_1hi05_73`,yn=`_placeholder_1hi05_81`,bn=`_chevron_1hi05_87`,xn=`_chevronOpen_1hi05_94`,Sn=`_list_1hi05_100`,Cn=`_listDown_1hi05_129`,wn=`_listUp_1hi05_133`,Tn=`_option_1hi05_145`,En=`_optionActive_1hi05_162`,Dn=`_optionSelected_1hi05_166`,On=`_optionDisabled_1hi05_170`,kn=`_optionText_1hi05_178`,An=`_optionLabel_1hi05_186`,jn=`_optionDesc_1hi05_192`,Mn=`_checkIcon_1hi05_202`,R={wrapper:hn,trigger:gn,triggerOpen:_n,triggerLabel:vn,placeholder:yn,chevron:bn,chevronOpen:xn,list:Sn,"list-in":`_list-in_1hi05_1`,listDown:Cn,listUp:wn,"list-in-up":`_list-in-up_1hi05_1`,option:Tn,optionActive:En,optionSelected:Dn,optionDisabled:On,optionText:kn,optionLabel:An,optionDesc:jn,checkIcon:Mn};function Nn({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)(M,{icon:Ee,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)(M,{icon:je,size:`md`,"aria-hidden":!0,className:R.checkIcon})]},t.value))})]})}var z={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 Pn(e,t,n){return Math.min(n,Math.max(t,e))}function Fn(e,t,n,r){return parseFloat((Math.round((e-t)/n)*n+t).toFixed(r))}function In(e){let t=e.toString(),n=t.indexOf(`.`);return n===-1?0:t.length-n-1}function Ln({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=In(o),g=(Pn(n,i,a)-i)/(a-i)*100,_=(0,t.useCallback)(e=>{if(!m.current)return;let{left:t,width:n}=m.current.getBoundingClientRect();r(Pn(Fn((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(Pn(Fn(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:[z.wrapper,S?z.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:[z.track,s?z.disabled:null].filter(Boolean).join(` `),onPointerDown:v,onPointerMove:y,onKeyDown:s?void 0:b,children:[(0,e.jsx)(`div`,{className:z.fill,style:{width:`${g}%`}}),(0,e.jsx)(`div`,{className:z.thumb,style:{left:`${g}%`},"aria-hidden":`true`}),x&&c.map(t=>{let n=(Pn(t.value,i,a)-i)/(a-i)*100;return(0,e.jsx)(`div`,{className:z.tick,style:{left:`${n}%`},"aria-hidden":`true`},t.value)})]}),S&&(0,e.jsx)(`div`,{className:z.labels,"aria-hidden":`true`,children:c.map(t=>{let n=(Pn(t.value,i,a)-i)/(a-i)*100;return(0,e.jsx)(`span`,{className:z.markLabel,style:{left:`${n}%`},children:t.label},t.value)})})]})}var Rn={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`},zn=8,B=10,Bn=6;function Vn(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+zn,left:e.left+e.width/2-t.width/2}:n===`top`?{top:e.top-t.height-zn,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-zn}:{top:e.top+e.height/2-t.height/2,left:e.right+zn}}for(let n of a){let{top:a,left:s}=o(n),c=s>=B&&s+t.width<=r-B,l=a>=B&&a+t.height<=i-B;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>=B&&a+t.height<=i-B,l=s>=B&&s+t.width<=r-B;if((n===`top`||n===`bottom`)&&c){let i=Math.max(B,Math.min(s,r-t.width-B)),o=e.left+e.width/2-i;return{top:a,left:i,placement:n,arrowOffset:Math.max(Bn+4,Math.min(o,t.width-Bn-4))}}if((n===`left`||n===`right`)&&l){let r=Math.max(B,Math.min(a,i-t.height-B)),o=e.top+e.height/2-r;return{top:r,left:s,placement:n,arrowOffset:Math.max(Bn+4,Math.min(o,t.height-Bn-4))}}}let s=e.bottom+zn,c=e.left+e.width/2-t.width/2,l=Math.max(B,Math.min(s,i-t.height-B)),u=Math.max(B,Math.min(c,r-t.width-B)),d=e.left+e.width/2-u;return{top:l,left:u,placement:`bottom`,arrowOffset:Math.max(Bn+4,Math.min(d,t.width-Bn-4))}}function Hn({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(Vn(_.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:[Rn.panel,p?Rn[p.placement]:null,f&&p?Rn.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:Rn.arrow,"aria-hidden":`true`,style:p?.arrowOffset===void 0?void 0:p.placement===`top`||p.placement===`bottom`?{left:p.arrowOffset-Bn,marginLeft:0}:{top:p.arrowOffset-Bn,marginTop:0}}),r]});return(0,e.jsxs)(e.Fragment,{children:[w,f&&(typeof document<`u`?(0,n.createPortal)(T,document.body):T)]})}var Un={clamp:`_clamp_1j51b_6`};function Wn({maximumSize:t=600,children:n,className:r,style:i,...a}){return(0,e.jsx)(`div`,{className:[Un.clamp,r].filter(Boolean).join(` `),style:{maxWidth:t,...i},...a,children:n})}var V={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 Gn({sidebar:t,content:n,showContent:r=!1,minSidebarWidth:i=180,maxSidebarWidth:a=280,sidebarWidthFraction:o=.25,className:s,style:c,...l}){let{isNarrow:u}=Ie(),d=`clamp(${i}px, ${o*100}%, ${a}px)`;return(0,e.jsxs)(`div`,{className:[V.root,u?V.collapsed:V.expanded,s].filter(Boolean).join(` `),style:{"--sidebar-width":d,...c},...l,children:[(0,e.jsx)(`div`,{className:[V.sidebar,u&&r?V.paneHidden:V.paneVisible].filter(Boolean).join(` `),"aria-hidden":u&&r,children:t}),!u&&(0,e.jsx)(`div`,{className:V.divider,"aria-hidden":`true`}),(0,e.jsx)(`div`,{className:[V.contentPane,u&&!r?V.paneHidden:V.paneVisible].filter(Boolean).join(` `),"aria-hidden":u&&!r,children:n})]})}var H={root:`_root_1xl2w_3`,wide:`_wide_1xl2w_13`,end:`_end_1xl2w_17`,sidebar:`_sidebar_1xl2w_21`,content:`_content_1xl2w_27`,narrow:`_narrow_1xl2w_35`,start:`_start_1xl2w_55`,sidebarOpen:`_sidebarOpen_1xl2w_59`,sidebarClosed:`_sidebarClosed_1xl2w_60`,backdrop:`_backdrop_1xl2w_72`,backdropVisible:`_backdropVisible_1xl2w_83`};function Kn({sidebar:n,content:r,showSidebar:i=!1,onClose:a,sidebarPosition:o=`start`,minSidebarWidth:s=180,maxSidebarWidth:c=280,sidebarWidthFraction:l=.25,className:u,style:d,...f}){let{isNarrow:p}=Ie(),m=(0,t.useRef)(null),h=`clamp(${s}px, ${l*100}%, ${c}px)`;(0,t.useEffect)(()=>{if(!p||!i)return;let e=e=>{e.key===`Escape`&&a?.()};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[p,i,a]),(0,t.useEffect)(()=>{!p||!i||(m.current?.querySelector(`button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])`))?.focus()},[p,i]);let g=o===`end`;return(0,e.jsxs)(`div`,{className:[H.root,p?H.narrow:H.wide,g?H.end:H.start,u].filter(Boolean).join(` `),style:{"--sidebar-width":h,...d},...f,children:[p&&(0,e.jsx)(`div`,{className:[H.backdrop,i?H.backdropVisible:null].filter(Boolean).join(` `),"aria-hidden":`true`,onClick:a}),(0,e.jsx)(`div`,{ref:m,className:[H.sidebar,p?i?H.sidebarOpen:H.sidebarClosed:null].filter(Boolean).join(` `),"aria-hidden":p&&!i,children:n}),(0,e.jsx)(`div`,{className:H.content,children:r})]})}var qn={bar:`_bar_njcvu_3`};function Jn({children:t,reveal:n=!0,className:r,...i}){return n?(0,e.jsx)(`div`,{role:`navigation`,"aria-label":`Bottom navigation`,className:[qn.bar,r].filter(Boolean).join(` `),...i,children:t}):null}var Yn={link:`_link_x1qyh_1`,externalIcon:`_externalIcon_x1qyh_36`};function Xn({external:t=!1,children:n,className:r,target:i,rel:a,...o}){let s=t||i===`_blank`;return(0,e.jsxs)(`a`,{className:[Yn.link,r].filter(Boolean).join(` `),target:s?`_blank`:i,rel:s?`noopener noreferrer`:a,...o,children:[n,s&&(0,e.jsx)(`span`,{className:Yn.externalIcon,"aria-label":`(opens in new tab)`,children:`↗`})]})}var Zn={group:`_group_1fa3l_3`,item:`_item_1fa3l_18`,iconOnly:`_iconOnly_1fa3l_48`,active:`_active_1fa3l_53`,itemIcon:`_itemIcon_1fa3l_86`,itemLabel:`_itemLabel_1fa3l_92`},Qn=(0,t.createContext)(null);function $n(){let e=(0,t.useContext)(Qn);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)(Qn.Provider,{value:{value:n,onValueChange:r},children:(0,e.jsx)(`div`,{ref:c,role:`radiogroup`,"aria-label":i,onKeyDown:l,className:[Zn.group,o].filter(Boolean).join(` `),...s,children:a})})}function tr({name:t,label:n,icon:r,disabled:i,className:a,...o}){let{value:s,onValueChange:c}=$n(),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:[Zn.item,l?Zn.active:null,u?Zn.iconOnly:null,a].filter(Boolean).join(` `),...o,children:[r&&(0,e.jsx)(`span`,{className:Zn.itemIcon,children:(0,e.jsx)(M,{icon:r,size:`md`,"aria-hidden":!0})}),n&&(0,e.jsx)(`span`,{className:Zn.itemLabel,children:n})]})}function nr({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 rr={wrapBox:`_wrapBox_1ik0x_1`,reverse:`_reverse_1ik0x_10`};function ir({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:[rr.wrapBox,a?rr.reverse:null,s].filter(Boolean).join(` `),style:f,...l,children:o})}var ar={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 or({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=[ar.chip,a?ar.selected:null,s?ar.disabled:null,u?ar.selectable:null,c].filter(Boolean).join(` `),f=(0,e.jsxs)(e.Fragment,{children:[n&&(0,e.jsx)(`span`,{className:ar.icon,children:(0,e.jsx)(M,{icon:n,size:`sm`,"aria-hidden":!0})}),(0,e.jsx)(`span`,{className:ar.label,children:t}),r&&(0,e.jsx)(`button`,{type:`button`,className:ar.remove,"aria-label":`Remove ${t}`,disabled:s,onClick:e=>{e.stopPropagation(),r()},tabIndex:s?-1:0,children:(0,e.jsx)(M,{icon:De,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 sr=`_backdrop_zvuhh_3`,cr=`_dialog_zvuhh_26`,lr=`_header_zvuhh_59`,ur=`_title_zvuhh_67`,dr=`_closeBtn_zvuhh_74`,fr=`_searchRow_zvuhh_112`,pr=`_searchIcon_zvuhh_124`,mr=`_searchInput_zvuhh_132`,hr=`_searchClear_zvuhh_151`,gr=`_body_zvuhh_174`,_r=`_empty_zvuhh_182`,vr=`_section_zvuhh_193`,yr=`_sectionTitle_zvuhh_199`,br=`_list_zvuhh_209`,xr=`_row_zvuhh_225`,Sr=`_keys_zvuhh_240`,Cr=`_keyCap_zvuhh_247`,wr=`_plus_zvuhh_277`,Tr=`_description_zvuhh_284`,U={backdrop:sr,"backdrop-in":`_backdrop-in_zvuhh_1`,dialog:cr,"dialog-in":`_dialog-in_zvuhh_1`,header:lr,title:ur,closeBtn:dr,searchRow:fr,searchIcon:pr,searchInput:mr,searchClear:hr,body:gr,empty:_r,section:vr,sectionTitle:yr,list:br,row:xr,keys:Sr,keyCap:Cr,plus:wr,description:Tr},Er=`button:not([disabled]), [href], input:not([disabled]), [tabindex]:not([tabindex="-1"])`;function Dr({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(Er)??[]);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:U.backdrop,onClick:i,"aria-hidden":`true`,children:(0,e.jsxs)(`div`,{ref:l,role:`dialog`,"aria-modal":`true`,"aria-labelledby":f.current,className:U.dialog,onKeyDown:p,onClick:e=>e.stopPropagation(),children:[(0,e.jsxs)(`div`,{className:U.header,children:[(0,e.jsx)(`span`,{id:f.current,className:U.title,children:a}),(0,e.jsx)(`button`,{type:`button`,className:U.closeBtn,"aria-label":`Close`,onClick:i,children:`×`})]}),(0,e.jsxs)(`div`,{className:U.searchRow,children:[(0,e.jsx)(`span`,{className:U.searchIcon,"aria-hidden":`true`,children:`⌕`}),(0,e.jsx)(`input`,{ref:u,type:`search`,className:U.searchInput,placeholder:`Search shortcuts…`,value:s,onChange:e=>c(e.target.value),"aria-label":`Search shortcuts`}),s&&(0,e.jsx)(`button`,{type:`button`,className:U.searchClear,"aria-label":`Clear search`,onClick:()=>{c(``),u.current?.focus()},children:`×`})]}),(0,e.jsx)(`div`,{className:U.body,role:`list`,children:h.length===0?(0,e.jsxs)(`p`,{className:U.empty,children:[`No shortcuts match "`,s,`"`]}):h.map(t=>(0,e.jsxs)(`section`,{className:U.section,children:[(0,e.jsx)(`h3`,{className:U.sectionTitle,children:t.title}),(0,e.jsx)(`ul`,{className:U.list,children:t.shortcuts.map(t=>(0,e.jsxs)(`li`,{className:U.row,role:`listitem`,children:[(0,e.jsx)(`span`,{className:U.keys,"aria-label":t.keys.join(` + `),children:t.keys.map((n,r)=>(0,e.jsxs)(`span`,{className:U.keyCap,children:[(0,e.jsx)(`kbd`,{children:n}),r<t.keys.length-1&&(0,e.jsx)(`span`,{className:U.plus,"aria-hidden":`true`,children:`+`})]},r))}),(0,e.jsx)(`span`,{className:U.description,children:t.description})]},t.description))})]},t.title))})]})});return typeof document>`u`?g:(0,n.createPortal)(g,document.body)}var W={sidebar:`_sidebar_kmj4b_3`,list:`_list_kmj4b_17`,item:`_item_kmj4b_28`,itemBtn:`_itemBtn_kmj4b_34`,active:`_active_kmj4b_60`,itemIcon:`_itemIcon_kmj4b_106`,itemLabel:`_itemLabel_kmj4b_119`,itemSuffix:`_itemSuffix_kmj4b_129`,count:`_count_kmj4b_136`},Or=(0,t.createContext)(null);function kr(){let e=(0,t.useContext)(Or);if(!e)throw Error(`ViewSwitcherSidebarItem must be used inside ViewSwitcherSidebar`);return e}function Ar({value:n,onValueChange:r,"aria-label":i=`Views`,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===`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)(Or.Provider,{value:{value:n,onValueChange:r},children:(0,e.jsx)(`nav`,{className:[W.sidebar,o].filter(Boolean).join(` `),onKeyDown:l,...s,children:(0,e.jsx)(`ul`,{ref:c,role:`radiogroup`,"aria-label":i,className:W.list,children:a})})})}function jr({name:t,label:n,icon:r,count:i,suffix:a,disabled:o,className:s,...c}){let{value:l,onValueChange:u}=kr(),d=l===t,f=a??i??null;return(0,e.jsx)(`li`,{className:W.item,children:(0,e.jsxs)(`button`,{type:`button`,role:`radio`,"aria-checked":d,tabIndex:d?0:-1,disabled:o,onClick:()=>u(t),className:[W.itemBtn,d?W.active:null,s].filter(Boolean).join(` `),...c,children:[r&&(0,e.jsx)(`span`,{className:W.itemIcon,children:(0,e.jsx)(M,{icon:r,size:`md`,"aria-hidden":!0})}),(0,e.jsx)(`span`,{className:W.itemLabel,children:n}),f!=null&&(0,e.jsx)(`span`,{className:W.itemSuffix,children:typeof f==`number`?(0,e.jsx)(`span`,{className:W.count,children:f>99?`99+`:f}):f})]})})}function Mr({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 Nr={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 Pr({title:t,variant:n=`default`,leading:r,trailing:i,className:a,...o}){return(0,e.jsxs)(`button`,{className:[Nr.row,Nr[n],a].filter(Boolean).join(` `),...o,children:[r&&(0,e.jsx)(`span`,{className:Nr.leading,children:r}),(0,e.jsx)(`span`,{className:Nr.title,children:t}),i&&(0,e.jsx)(`span`,{className:Nr.trailing,children:i})]})}var Fr={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 Ir({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=[Fr.container,Fr[i],l].filter(Boolean).join(` `),S=(0,e.jsx)(`div`,{ref:_,role:`dialog`,"aria-label":o,tabIndex:-1,className:[Fr.dropdown,d?Fr.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:Fr.primary,disabled:s,onClick:c,...u,children:r}),(0,e.jsx)(`span`,{className:Fr.separator,"aria-hidden":`true`}),(0,e.jsx)(`button`,{ref:g,className:Fr.toggle,disabled:s,"aria-label":o,"aria-haspopup":`dialog`,"aria-expanded":d,onClick:()=>f(e=>!e),children:(0,e.jsx)(`svg`,{className:Fr.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 Lr={toolbar:`_toolbar_1avgl_2`,spacer:`_spacer_1avgl_20`};function Rr({children:t,className:n,...r}){return(0,e.jsx)(`div`,{className:[Lr.toolbar,n].filter(Boolean).join(` `),...r,children:t})}function zr({className:t,...n}){return(0,e.jsx)(`div`,{"aria-hidden":`true`,className:[Lr.spacer,t].filter(Boolean).join(` `),...n})}var Br={linked:`_linked_1tser_3`,vertical:`_vertical_1tser_9`};function Vr({children:t,vertical:n=!1,className:r,...i}){return(0,e.jsx)(`div`,{className:[Br.linked,n?Br.vertical:null,r].filter(Boolean).join(` `),...i,children:t})}var Hr={frame:`_frame_1bq7b_2`};function Ur({children:t,className:n,...r}){return(0,e.jsx)(`div`,{className:[Hr.frame,n].filter(Boolean).join(` `),...r,children:t})}var G={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 Wr({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:[G.expanderRow,h?G.expanded:null,u].filter(Boolean).join(` `),...d,children:[(0,e.jsxs)(`button`,{id:_,className:G.header,"aria-expanded":h,"aria-controls":g,onClick:v,children:[i&&(0,e.jsx)(`span`,{className:G.leading,children:i}),(0,e.jsxs)(`span`,{className:G.content,children:[(0,e.jsx)(`span`,{className:G.title,children:n}),r&&(0,e.jsx)(`span`,{className:G.subtitle,children:r})]}),a&&(0,e.jsx)(`span`,{className:G.trailing,children:a}),(0,e.jsx)(`span`,{className:[G.chevronWrap,h?G.chevronOpen:null].filter(Boolean).join(` `),"aria-hidden":`true`,children:(0,e.jsx)(`svg`,{className:G.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:G.panel,children:(0,e.jsx)(`div`,{className:G.panelInner,children:y.map((t,n)=>(0,e.jsxs)(`div`,{className:G.childItem,children:[(0,e.jsx)(k,{"aria-hidden":`true`}),t]},n))})})]})}var Gr={switcher:`_switcher_2tknm_3`,item:`_item_2tknm_10`,iconOnly:`_iconOnly_2tknm_38`,itemIcon:`_itemIcon_2tknm_43`,itemLabel:`_itemLabel_2tknm_49`,default:`_default_2tknm_55`,active:`_active_2tknm_68`,flat:`_flat_2tknm_121`,round:`_round_2tknm_169`},Kr=(0,t.createContext)(null);function qr(){let e=(0,t.useContext)(Kr);if(!e)throw Error(`InlineViewSwitcherItem must be used inside InlineViewSwitcher`);return e}function Jr({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)(Kr.Provider,{value:{value:n,onValueChange:r},children:(0,e.jsx)(`div`,{ref:l,role:`radiogroup`,"aria-label":a,onKeyDown:u,className:[Gr.switcher,Gr[i],s].filter(Boolean).join(` `),...c,children:o})})}function Yr({name:t,label:n,icon:r,disabled:i,className:a,...o}){let{value:s,onValueChange:c}=qr(),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:[Gr.item,l?Gr.active:null,u?Gr.iconOnly:null,a].filter(Boolean).join(` `),...o,children:[r&&(0,e.jsx)(`span`,{className:Gr.itemIcon,children:(0,e.jsx)(M,{icon:r,size:`md`,"aria-hidden":!0})}),n&&(0,e.jsx)(`span`,{className:Gr.itemLabel,children:n})]})}var Xr={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 Zr({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:[Xr.row,c?Xr.disabled:null,l].filter(Boolean).join(` `),onClick:_,...d,children:[i&&(0,e.jsx)(`span`,{className:Xr.leading,children:i}),(0,e.jsxs)(`span`,{className:Xr.content,id:g,children:[(0,e.jsx)(`span`,{className:Xr.title,children:n}),r&&(0,e.jsx)(`span`,{className:Xr.subtitle,children:r})]}),(0,e.jsx)(`span`,{className:Xr.switchTrack,"aria-hidden":`true`,children:(0,e.jsx)(`span`,{className:[Xr.switchThumb,h?Xr.switchThumbOn:null].filter(Boolean).join(` `)})})]})}var K={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 Qr({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:[K.row,c?K.disabled:null,l].filter(Boolean).join(` `),onClick:_,...d,children:[(0,e.jsx)(`span`,{className:K.checkboxWrap,"aria-hidden":`true`,children:(0,e.jsx)(`span`,{className:[K.checkbox,h?K.checkboxChecked:null].filter(Boolean).join(` `),children:h&&(0,e.jsx)(`svg`,{className:K.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:K.leading,children:i}),(0,e.jsxs)(`span`,{className:K.content,id:g,children:[(0,e.jsx)(`span`,{className:K.title,children:n}),r&&(0,e.jsx)(`span`,{className:K.subtitle,children:r})]})]})}var $r=`_row_46mn8_3`,ei=`_disabled_46mn8_16`,ti=`_leading_46mn8_23`,ni=`_content_46mn8_32`,ri=`_title_46mn8_40`,ii=`_subtitle_46mn8_51`,ai=`_comboWrap_46mn8_65`,oi=`_trigger_46mn8_73`,si=`_triggerOpen_46mn8_126`,ci=`_triggerLabel_46mn8_136`,li=`_placeholder_46mn8_144`,ui=`_chevron_46mn8_150`,di=`_chevronOpen_46mn8_157`,fi=`_list_46mn8_163`,pi=`_listDown_46mn8_192`,mi=`_listUp_46mn8_196`,hi=`_option_46mn8_208`,gi=`_optionActive_46mn8_225`,_i=`_optionSelected_46mn8_229`,vi=`_optionDisabled_46mn8_233`,yi=`_optionLabel_46mn8_239`,bi=`_checkIcon_46mn8_247`,q={row:$r,disabled:ei,leading:ti,content:ni,title:ri,subtitle:ii,comboWrap:ai,trigger:oi,triggerOpen:si,triggerLabel:ci,placeholder:li,chevron:ui,chevronOpen:di,list:fi,"list-in":`_list-in_46mn8_1`,listDown:pi,listUp:mi,"list-in-up":`_list-in-up_46mn8_1`,option:hi,optionActive:gi,optionSelected:_i,optionDisabled:vi,optionLabel:yi,checkIcon:bi};function xi({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:[q.row,l?q.disabled:null,u].filter(Boolean).join(` `),...d,children:[i&&(0,e.jsx)(`span`,{className:q.leading,children:i}),(0,e.jsxs)(`span`,{className:q.content,children:[(0,e.jsx)(`span`,{className:q.title,children:n}),r&&(0,e.jsx)(`span`,{className:q.subtitle,children:r})]}),(0,e.jsxs)(`div`,{className:q.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:[q.trigger,g?q.triggerOpen:null].filter(Boolean).join(` `),onClick:()=>g?k():O(),onKeyDown:ee,children:[(0,e.jsx)(`span`,{className:[q.triggerLabel,E?null:q.placeholder].filter(Boolean).join(` `),children:E?.label??`—`}),(0,e.jsx)(`svg`,{className:[q.chevron,g?q.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:[q.list,b?q.listUp:q.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:[q.option,t.value===h?q.optionSelected:null,n===v?q.optionActive:null,t.disabled?q.optionDisabled:null].filter(Boolean).join(` `),onMouseEnter:()=>!t.disabled&&y(n),onClick:()=>A(t),children:[(0,e.jsx)(`span`,{className:q.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:q.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 J={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 Si({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:[J.row,y?J.focused:null,c?J.disabled:null,l].filter(Boolean).join(` `),onClick:()=>x.current?.focus(),children:[o&&(0,e.jsx)(`span`,{className:J.leading,children:o}),(0,e.jsxs)(`span`,{className:J.fieldWrap,children:[(0,e.jsx)(`label`,{htmlFor:m,className:[J.label,S?J.labelFloated:null].filter(Boolean).join(` `),children:n}),(0,e.jsx)(`input`,{ref:x,id:m,className:[J.input,S?J.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:J.trailing,children:s})]})}var Ci={revealButton:`_revealButton_1j8z0_3`};function wi({trailing:n,disabled:r,...i}){let[a,o]=(0,t.useState)(!1),s=(0,e.jsx)(`button`,{type:`button`,className:Ci.revealButton,onClick:e=>{e.stopPropagation(),o(e=>!e)},"aria-label":a?`Conceal password`:`Reveal password`,"aria-pressed":a,disabled:r,children:(0,e.jsx)(M,{icon:a?Ae:ke,size:`md`,"aria-hidden":!0})});return(0,e.jsx)(Si,{...i,type:a?`text`:`password`,disabled:r,trailing:(0,e.jsxs)(e.Fragment,{children:[n,s]})})}var Y={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 Ti(e){let t=e.toString(),n=t.indexOf(`.`);return n===-1?0:t.length-n-1}function Ei(e,t,n){return Math.min(n,Math.max(t,e))}function Di({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??Ti(u),b=(0,t.useId)(),x=(0,t.useCallback)(e=>{let t=parseFloat(Ei(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:[Y.row,f?Y.disabled:null,p].filter(Boolean).join(` `),...m,children:[i&&(0,e.jsx)(`span`,{className:Y.leading,children:i}),(0,e.jsxs)(`span`,{className:Y.content,children:[(0,e.jsx)(`span`,{className:Y.title,children:n}),r&&(0,e.jsx)(`span`,{className:Y.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:Y.spin,children:[(0,e.jsx)(`button`,{type:`button`,tabIndex:-1,"aria-hidden":`true`,disabled:f||v<=c,className:Y.spinBtn,onClick:e=>{e.stopPropagation(),x(v-u)},children:`−`}),(0,e.jsx)(`span`,{id:b,className:Y.spinValue,"aria-hidden":`true`,children:v.toFixed(y)}),(0,e.jsx)(`button`,{type:`button`,tabIndex:-1,"aria-hidden":`true`,disabled:f||v>=l,className:Y.spinBtn,onClick:e=>{e.stopPropagation(),x(v+u)},children:`+`})]})]})}var Oi=`_view_1r1om_3`,ki=`_page_1r1om_12`,Ai=`_pageHeader_1r1om_23`,ji=`_pageTitle_1r1om_34`,Mi=`_pageContent_1r1om_43`,Ni=`_enterForward_1r1om_52`,Pi=`_enterBack_1r1om_56`,Fi={view:Oi,page:ki,pageHeader:Ai,pageTitle:ji,pageContent:Mi,enterForward:Ni,"slide-in-right":`_slide-in-right_1r1om_1`,enterBack:Pi,"slide-in-left":`_slide-in-left_1r1om_1`},Ii=(0,t.createContext)({navigate:()=>{},pop:()=>{},canGoBack:!1,currentTag:``,direction:`forward`});function Li(){return(0,t.useContext)(Ii)}function Ri({tag:n,title:r,children:i,className:a,...o}){let{currentTag:s,direction:c}=(0,t.useContext)(Ii);return s===n?(0,e.jsxs)(`div`,{className:[Fi.page,c===`forward`?Fi.enterForward:Fi.enterBack,a].filter(Boolean).join(` `),...o,children:[(0,e.jsx)(`div`,{className:Fi.pageHeader,children:(0,e.jsx)(`span`,{className:Fi.pageTitle,children:r})}),(0,e.jsx)(`div`,{className:Fi.pageContent,children:i})]}):null}function zi({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)(Ii.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:[Fi.view,i].filter(Boolean).join(` `),...a,children:r})})}var Bi=`_backdrop_zzv98_3`,Vi=`_sheet_zzv98_26`,Hi=`_handle_zzv98_49`,Ui=`_handleBar_zzv98_56`,Wi=`_title_zzv98_66`,Gi=`_content_zzv98_79`,Ki={backdrop:Bi,"backdrop-in":`_backdrop-in_zzv98_1`,sheet:Vi,"sheet-in":`_sheet-in_zzv98_1`,handle:Hi,handleBar:Ui,title:Wi,content:Gi},qi=`button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])`;function Ji({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(qi))?.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(qi)??[]);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:Ki.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:[Ki.sheet,c].filter(Boolean).join(` `),onKeyDown:p,onClick:e=>e.stopPropagation(),...l,children:[(0,e.jsx)(`div`,{className:Ki.handle,"aria-hidden":`true`,children:(0,e.jsx)(`div`,{className:Ki.handleBar})}),i&&(0,e.jsx)(`div`,{id:d,className:Ki.title,children:i}),a&&(0,e.jsx)(`div`,{className:Ki.content,children:a})]})});return typeof document>`u`?m:(0,n.createPortal)(m,document.body)}var X={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 Yi({pages:t,currentPage:n,onPageSelected:r,className:i,...a}){return(0,e.jsx)(`div`,{className:[X.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:[X.dot,i===n?X.dotActive:null].filter(Boolean).join(` `),onClick:()=>r?.(i)},i))})}function Xi({pages:t,currentPage:n,onPageSelected:r,className:i,...a}){return(0,e.jsx)(`div`,{className:[X.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:[X.line,i===n?X.lineActive:null].filter(Boolean).join(` `),onClick:()=>r?.(i)},i))})}function Zi({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:[X.carousel,v?X.horizontal:X.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:X.slide,role:`group`,"aria-roledescription":`slide`,"aria-label":`${n+1} of ${d}`,children:t},n))})}function Qi({children:t,...n}){return(0,e.jsx)(`div`,{...n,children:t})}var $i={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:[$i.content,r===`end`?$i.iconEnd:null,i].filter(Boolean).join(` `),...a,children:[t&&r===`start`&&(0,e.jsx)(`span`,{className:$i.icon,"aria-hidden":`true`,children:t}),(0,e.jsx)(`span`,{className:$i.label,children:n}),t&&r===`end`&&(0,e.jsx)(`span`,{className:$i.icon,"aria-hidden":`true`,children:t})]})}var ta={label:`_label_h3znl_3`,key:`_key_h3znl_9`},na={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 ra({shortcut:t,symbols:n=!0,className:r,...i}){let a=t.split(`+`).map(e=>e.trim()).filter(Boolean);return(0,e.jsx)(`span`,{className:[ta.label,r].filter(Boolean).join(` `),"aria-label":t,...i,children:a.map((t,r)=>{let i=n?na[t.toLowerCase()]??t:t;return(0,e.jsx)(`kbd`,{className:ta.key,children:i},r)})})}var ia={toolbarView:`_toolbarView_134hf_3`,top:`_top_134hf_11`,content:`_content_134hf_16`,bottom:`_bottom_134hf_23`};function aa({topBar:t,bottomBar:n,children:r,className:i,...a}){return(0,e.jsxs)(`div`,{className:[ia.toolbarView,i].filter(Boolean).join(` `),...a,children:[t&&(0,e.jsx)(`div`,{className:ia.top,children:t}),(0,e.jsx)(`div`,{className:ia.content,children:r}),n&&(0,e.jsx)(`div`,{className:ia.bottom,children:n})]})}var oa={windowTitle:`_windowTitle_zm877_3`,title:`_title_zm877_11`,subtitle:`_subtitle_zm877_24`};function sa({title:t,subtitle:n,className:r,...i}){return(0,e.jsxs)(`div`,{className:[oa.windowTitle,r].filter(Boolean).join(` `),...i,children:[(0,e.jsx)(`span`,{className:oa.title,children:t}),n&&(0,e.jsx)(`span`,{className:oa.subtitle,children:n})]})}var ca={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 la({title:t,description:n,headerSuffix:r,children:i,className:a,...o}){let s=t||n||r;return(0,e.jsxs)(`div`,{className:[ca.group,a].filter(Boolean).join(` `),...o,children:[s&&(0,e.jsxs)(`div`,{className:ca.header,children:[(0,e.jsxs)(`div`,{className:ca.headerText,children:[t&&(0,e.jsx)(`span`,{className:ca.title,children:t}),n&&(0,e.jsx)(`span`,{className:ca.description,children:n})]}),r&&(0,e.jsx)(`div`,{className:ca.suffix,children:r})]}),(0,e.jsx)(`div`,{className:ca.content,children:i})]})}var ua={page:`_page_gt42j_3`,inner:`_inner_gt42j_10`};function da({title:t,iconName:n,children:r,className:i,...a}){return(0,e.jsx)(`div`,{className:[ua.page,i].filter(Boolean).join(` `),role:`tabpanel`,...a,children:(0,e.jsx)(`div`,{className:ua.inner,children:r})})}var fa=`_backdrop_1u1bd_3`,pa=`_dialog_1u1bd_26`,ma=`_dialogMulti_1u1bd_46`,ha=`_header_1u1bd_63`,ga=`_closeBtn_1u1bd_73`,_a=`_title_1u1bd_102`,va=`_searchWrap_1u1bd_112`,ya=`_searchInput_1u1bd_116`,ba=`_body_1u1bd_143`,xa=`_sidebar_1u1bd_152`,Sa=`_navList_1u1bd_160`,Ca=`_navItem_1u1bd_169`,wa=`_navItemActive_1u1bd_190`,Ta=`_navIcon_1u1bd_205`,Ea=`_navLabel_1u1bd_211`,Da=`_pageWrap_1u1bd_221`,Z={backdrop:fa,"backdrop-in":`_backdrop-in_1u1bd_1`,dialog:pa,"dialog-in":`_dialog-in_1u1bd_1`,dialogMulti:ma,header:ha,closeBtn:ga,title:_a,searchWrap:va,searchInput:ya,body:ba,sidebar:xa,navList:Sa,navItem:Ca,navItemActive:wa,navIcon:Ta,navLabel:Ea,pageWrap:Da},Oa=`button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])`;function ka(e,t){if(e.key!==`Tab`)return;let n=Array.from(t.current?.querySelectorAll(Oa)??[]);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 Aa({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(Oa))?.focus()});return()=>cancelAnimationFrame(e)}},[r,o]);let _=(0,t.useCallback)(e=>{if(e.key===`Escape`){e.stopPropagation(),i();return}ka(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:Z.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:[Z.dialog,v?Z.dialogMulti:null,s].filter(Boolean).join(` `),onKeyDown:_,...c,children:[(0,e.jsxs)(`div`,{className:Z.header,children:[(0,e.jsx)(`button`,{type:`button`,className:Z.closeBtn,onClick:i,"aria-label":`Close preferences`,children:`✕`}),(0,e.jsx)(`span`,{id:d,className:Z.title,children:`Preferences`}),o&&(0,e.jsx)(`div`,{className:Z.searchWrap,children:(0,e.jsx)(`input`,{ref:u,type:`search`,placeholder:`Search…`,value:h,onChange:e=>g(e.target.value),className:Z.searchInput,"aria-label":`Search preferences`})})]}),(0,e.jsxs)(`div`,{className:Z.body,children:[v&&(0,e.jsx)(`nav`,{className:Z.sidebar,"aria-label":`Preferences pages`,children:(0,e.jsx)(`ul`,{role:`tablist`,className:Z.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:[Z.navItem,n===p?Z.navItemActive:null].filter(Boolean).join(` `),onClick:()=>m(n),children:[t.props.iconName&&(0,e.jsx)(`span`,{className:[Z.navIcon,`icon`,t.props.iconName].join(` `),"aria-hidden":`true`}),(0,e.jsx)(`span`,{className:Z.navLabel,children:t.props.title})]})},n))})}),(0,e.jsx)(`div`,{className:Z.pageWrap,children:y&&(0,t.cloneElement)(y,{"data-search-query":b||void 0})})]})]})}),document.body):null}var Q={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 ja({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:[Q.root,o?Q.horizontal:Q.vertical,i].filter(Boolean).join(` `),...a,children:t.map((n,i)=>{let a=i===0,c=i===t.length-1,l=[Q.line,r===`dotted`?Q.lineDotted:null].filter(Boolean).join(` `),u=(0,e.jsx)(`div`,{className:[Q.node,n.icon?Q.nodeWithIcon:Q.nodeDot].filter(Boolean).join(` `),children:n.icon&&(0,e.jsx)(`span`,{className:Q.iconWrap,"aria-hidden":`true`,children:n.icon})});return(0,e.jsxs)(`div`,{role:`listitem`,className:Q.item,children:[(0,e.jsx)(`div`,{className:Q.leading,children:n.leading}),o?(0,e.jsxs)(`div`,{className:Q.nodeTrack,children:[(0,e.jsx)(`div`,{className:[Q.line,r===`dotted`?Q.lineDotted:null,a||!s?Q.lineInvisible:null].filter(Boolean).join(` `),"aria-hidden":`true`}),u,(0,e.jsx)(`div`,{className:[Q.line,r===`dotted`?Q.lineDotted:null,c||!s?Q.lineInvisible:null].filter(Boolean).join(` `),"aria-hidden":`true`})]}):(0,e.jsxs)(`div`,{className:Q.nodeTrack,children:[u,!c&&s&&(0,e.jsx)(`div`,{className:l,"aria-hidden":`true`})]}),(0,e.jsx)(`div`,{className:Q.content,children:n.content})]},i)})})}var Ma={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 Na({segments:t,onNavigate:n,className:r,...i}){return(0,e.jsx)(`nav`,{"aria-label":`Breadcrumb`,className:[Ma.pathBar,r].filter(Boolean).join(` `),...i,children:(0,e.jsx)(`ol`,{className:Ma.list,"aria-label":`Path segments`,children:t.map((r,i)=>{let a=i===t.length-1;return(0,e.jsxs)(`li`,{className:Ma.item,children:[i>0&&(0,e.jsx)(`span`,{className:Ma.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:Ma.current,"aria-current":`page`,children:[r.icon&&(0,e.jsx)(`span`,{className:Ma.icon,"aria-hidden":`true`,children:r.icon}),r.label]}):(0,e.jsxs)(`button`,{type:`button`,className:Ma.segment,onClick:()=>n?.(r.path,i),children:[r.icon&&(0,e.jsx)(`span`,{className:Ma.icon,"aria-hidden":`true`,children:r.icon}),r.label]})]},r.path)})})})}var $={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`},Pa=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],Fa=[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],Ia=28,La=20,Ra=[`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 za(e){return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,`0`)}-${String(e.getDate()).padStart(2,`0`)}`}function Ba(e){let[t,n,r]=e.split(`-`).map(Number);return new Date(t,n-1,r)}function Va(e){return Ba(e).toLocaleDateString(`en-US`,{weekday:`long`,year:`numeric`,month:`long`,day:`numeric`})}function Ha({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??Ra,[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:Pa[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=za(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:Fa[e]})),[s]),k=l?Ia:0,A=c?La:0,ee=k+d*g-o,te=A+7*g-o,ne=Math.min(4,Math.floor(a/3));function j(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 re(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(),j(...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 ie(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 ae(e){return e.future?y[0]:y[Math.min(e.level,y.length-1)]??y[y.length-1]}function oe(e){return e.future?Va(e.iso):m?.({date:e.iso,count:e.count})??`${e.count} contribution${e.count===1?``:`s`} on ${Va(e.iso)}`}return(0,e.jsxs)(`div`,{ref:v,className:[$.wrapper,h].filter(Boolean).join(` `),children:[(0,e.jsxs)(`svg`,{ref:_,width:ee,height:te,className:$.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:$.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:$.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=oe(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:ae(t),opacity:t.future?.35:1,className:$.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=>re(e,n,r),onFocus:()=>x({col:n,row:r}),onMouseEnter:e=>ie(e,i),onMouseLeave:()=>C(null)},`${n}-${r}`)})},n))})]}),S&&(0,e.jsx)(`div`,{className:$.tooltip,style:{left:S.x,top:S.y},role:`tooltip`,children:S.text}),u&&(0,e.jsxs)(`div`,{className:$.legend,children:[(0,e.jsx)(`span`,{className:$.legendLabel,children:`Less`}),Array.from({length:r+1},(t,n)=>(0,e.jsx)(`svg`,{width:a,height:a,"aria-hidden":`true`,className:$.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:$.legendLabel,children:`More`})]})]})}exports.ActionRow=yt,exports.Avatar=D,exports.Badge=we,exports.Banner=ve,exports.Bin=Qi,exports.Blockquote=i,exports.BottomSheet=Ji,exports.Box=nr,exports.BoxedList=xt,exports.BreakpointBin=Mr,exports.Button=o,exports.ButtonContent=ea,exports.ButtonRow=Pr,exports.Card=b,exports.Carousel=Zi,exports.CarouselIndicatorDots=Yi,exports.CarouselIndicatorLines=Xi,exports.CheckRow=Qr,exports.Checkbox=ne,exports.Chip=or,exports.Clamp=Wn,exports.ComboRow=xi,exports.ContributionGraph=Ha,exports.Dialog=mn,exports.Dropdown=Nn,exports.EntryRow=Si,exports.ExpanderRow=Wr,exports.Footer=Se,exports.Frame=Ur,exports.GNOME_BREAKPOINTS=Fe,exports.HeaderBar=be,exports.Icon=M,exports.InlineViewSwitcher=Jr,exports.InlineViewSwitcherItem=Yr,exports.Link=Xn,exports.LinkedGroup=Vr,exports.NavigationPage=Ri,exports.NavigationSplitView=Gn,exports.NavigationView=zi,exports.OverlaySplitView=Kn,exports.PasswordEntryRow=wi,exports.PathBar=Na,exports.Popover=Hn,exports.PreferencesDialog=Aa,exports.PreferencesGroup=la,exports.PreferencesPage=da,exports.ProgressBar=se,exports.RadioButton=ae,exports.SearchBar=Me,exports.Separator=k,exports.ShortcutLabel=ra,exports.ShortcutsDialog=Dr,exports.Sidebar=at,exports.SidebarCollapsedContext=tt,exports.SidebarItem=dt,exports.SidebarSection=ot,exports.Slider=Ln,exports.Spacer=zr,exports.SpinButton=ht,exports.SpinRow=Di,exports.Spinner=S,exports.SplitButton=Ir,exports.StatusPage=Pe,exports.Switch=ee,exports.SwitchRow=Zr,exports.TabBar=gt,exports.TabItem=_t,exports.TabPanel=vt,exports.Text=g,exports.TextField=re,exports.Timeline=ja,exports.Toast=Pt,exports.Toaster=Ft,exports.ToggleGroup=er,exports.ToggleGroupItem=tr,exports.Toolbar=Rr,exports.ToolbarView=aa,exports.Tooltip=ut,exports.ViewSwitcher=Ct,exports.ViewSwitcherBar=Jn,exports.ViewSwitcherItem=wt,exports.ViewSwitcherSidebar=Ar,exports.ViewSwitcherSidebarItem=jr,exports.WindowTitle=sa,exports.WrapBox=ir,exports.useBreakpoint=Ie,exports.useNavigation=Li,exports.useSidebarCollapsed=nt;
2
2
  //# sourceMappingURL=index.cjs.map