@sakaniui/react 0.14.0 → 0.14.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-CMqjfN_6.cjs"),t=require("./TopBar-BsEWtJKj.cjs"),n=require("./help-circle-rtL4juBJ.cjs"),r=require("./logout-pQUABnfO.cjs");let i=require("react");i=e.t(i,1);let a=require("react/jsx-runtime"),o=require("recharts"),s=require("react-dom");var c={announcement:`_announcement_1ba3c_1`,"announcement--neutral":`_announcement--neutral_1ba3c_13`,"announcement--urgent":`_announcement--urgent_1ba3c_16`,content:`_content_1ba3c_20`,icon:`_icon_1ba3c_28`,icon__neutral:`_icon__neutral_1ba3c_32`,message:`_message_1ba3c_36`,link:`_link_1ba3c_52`},l=({message:e,linkLabel:r,linkHref:i,onLinkClick:o,onDismiss:s,variant:l=`neutral`,className:u})=>{let d=l===`urgent`;return(0,a.jsxs)(`div`,{className:[c.announcement,c[`announcement--${l}`],u??``].filter(Boolean).join(` `),children:[(0,a.jsxs)(`div`,{className:c.content,children:[(0,a.jsx)(`span`,{className:c.icon,"aria-hidden":`true`,children:d?(0,a.jsx)(n.z,{size:24,strokeWidth:1.5,style:{fill:`var(--color-info-solid)`,stroke:`var(--color-info-bg)`}}):(0,a.jsx)(n.B,{size:24,strokeWidth:1.5,fill:`currentColor`,stroke:`currentColor`,className:c.icon__neutral})}),(0,a.jsx)(`p`,{className:c.message,children:e}),!d&&r&&(0,a.jsx)(t.Ot,{href:i,onClick:o,className:c.link,style:{color:`var(--color-brand-fg)`,fontSize:16,lineHeight:`24px`},children:r})]}),s&&(0,a.jsx)(t.Dt,{icon:n.R,size:`sm`,variant:`ghost`,"aria-label":`Dismiss`,onClick:s})]})},u={snippet:`_snippet_1ao90_1`,header:`_header_1ao90_12`,filename:`_filename_1ao90_19`,body:`_body_1ao90_31`,tokenKeyword:`_tokenKeyword_1ao90_42`,tokenString:`_tokenString_1ao90_43`,editableBody:`_editableBody_1ao90_50`,textarea:`_textarea_1ao90_55`},d=[`import`,`export`,`from`,`default`,`function`,`return`,`const`,`let`,`var`,`if`,`else`,`for`,`while`,`class`,`extends`,`new`,`async`,`await`,`as`,`of`,`in`],f=RegExp(`('(?:[^'\\\\]|\\\\.)*'|"(?:[^"\\\\]|\\\\.)*"|\`(?:[^\`\\\\]|\\\\.)*\`|\\b(?:${d.join(`|`)})\\b)`,`g`),p=e=>e.split(f).map((e,t)=>{if(!e)return null;let n=/^['"`]/.test(e),r=!n&&d.includes(e);return n?(0,a.jsx)(`span`,{className:u.tokenString,children:e},t):r?(0,a.jsx)(`span`,{className:u.tokenKeyword,children:e},t):(0,a.jsx)(i.default.Fragment,{children:e},t)}),m=({code:e,filename:o,onCopy:s,editable:c=!1,onChange:l,placeholder:d,className:f})=>{let[m,h]=i.default.useState(!1),[g,_]=i.default.useState(e);i.default.useEffect(()=>_(e),[e]);let v=()=>{navigator.clipboard?.writeText(g),s?.(g),h(!0),window.setTimeout(()=>h(!1),1500)},y=e=>{_(e),l?.(e)},b=c?(0,a.jsxs)(`div`,{className:u.editableBody,children:[(0,a.jsx)(`pre`,{className:u.body,"aria-hidden":`true`,children:p(g)}),(0,a.jsx)(`textarea`,{className:u.textarea,value:g,placeholder:d,spellCheck:!1,onChange:e=>y(e.target.value),onKeyDown:e=>{if(e.key!==`Tab`)return;e.preventDefault();let t=e.currentTarget,{selectionStart:n,selectionEnd:r}=t,i=`${g.slice(0,n)} ${g.slice(r)}`;y(i),requestAnimationFrame(()=>{t.selectionStart=t.selectionEnd=n+2})}})]}):(0,a.jsx)(`pre`,{className:u.body,children:p(g)});return o?(0,a.jsxs)(`div`,{className:[u.snippet,f??``].filter(Boolean).join(` `),children:[(0,a.jsxs)(`div`,{className:u.header,children:[(0,a.jsx)(`p`,{className:u.filename,children:o}),(0,a.jsx)(t.Dt,{icon:m?n.M:r.u,variant:`ghost`,size:`sm`,"aria-label":m?`Copied`:`Copy code`,onClick:v})]}),b]}):(0,a.jsx)(`div`,{className:[u.snippet,f??``].filter(Boolean).join(` `),children:b})},h={expenses:`_expenses_1imiq_1`,row:`_row_1imiq_10`,top:`_top_1imiq_18`,left:`_left_1imiq_26`,icon:`_icon_1imiq_32`,label:`_label_1imiq_44`,amount:`_amount_1imiq_55`},g=e=>e.toLocaleString(`en-US`,{style:`currency`,currency:`USD`}),_=({categories:e,variant:n=`default`,formatAmount:r=g,className:i})=>{let o=n===`compact`,s=Math.max(1,...e.map(e=>e.amount));return(0,a.jsx)(`div`,{className:[h.expenses,i??``].filter(Boolean).join(` `),children:e.map((e,n)=>(0,a.jsxs)(`div`,{className:h.row,children:[(0,a.jsxs)(`div`,{className:h.top,children:[(0,a.jsxs)(`div`,{className:h.left,children:[(0,a.jsx)(`span`,{className:h.icon,"aria-hidden":`true`,children:e.icon}),(0,a.jsx)(`p`,{className:h.label,children:e.label})]}),(0,a.jsx)(`p`,{className:h.amount,children:r(e.amount)})]}),!o&&(0,a.jsx)(t.St,{value:e.amount/s*100,size:`lg`,label:`${e.label} spending`})]},e.id??n))})},v={hint:`_hint_49nyi_1`,bar:`_bar_49nyi_9`,"hint--neutral":`_hint--neutral_49nyi_15`,"hint--warning":`_hint--warning_49nyi_16`,icon:`_icon_49nyi_18`,message:`_message_49nyi_24`},y=14,b=({message:e,variant:i=`neutral`,className:o})=>{let s=i===`warning`?n.z:r.l;return(0,a.jsxs)(`div`,{className:[v.hint,v[`hint--${i}`],o??``].filter(Boolean).join(` `),children:[(0,a.jsx)(`span`,{className:v.bar,"aria-hidden":`true`}),(0,a.jsx)(s,{size:y,strokeWidth:t.Pt(y),className:v.icon}),(0,a.jsx)(`p`,{className:v.message,children:e})]})},x={item:`_item_jnz6o_1`,"item--horizontal":`_item--horizontal_jnz6o_6`,"item--vertical":`_item--vertical_jnz6o_11`,"text--single":`_text--single_jnz6o_18`,text:`_text_jnz6o_18`,value:`_value_jnz6o_28`,topRow:`_topRow_jnz6o_43`,connectorHorizontal:`_connectorHorizontal_jnz6o_48`,rail:`_rail_jnz6o_56`,connectorVertical:`_connectorVertical_jnz6o_63`,title:`_title_jnz6o_77`,description:`_description_jnz6o_85`},S=({step:e,title:r,description:i,completed:o=!1,orientation:s=`horizontal`,isLast:c=!1,className:l})=>{let u=s===`vertical`,d=(0,a.jsx)(`span`,{className:x.value,"aria-hidden":`true`,children:o?(0,a.jsx)(n.M,{size:14,strokeWidth:t.Pt(14)}):e}),f=(0,a.jsxs)(`div`,{className:[x.text,i?``:x[`text--single`]].filter(Boolean).join(` `),children:[(0,a.jsx)(`p`,{className:x.title,children:r}),i&&(0,a.jsx)(`p`,{className:x.description,children:i})]});return u?(0,a.jsxs)(`div`,{className:[x.item,x[`item--vertical`],l??``].filter(Boolean).join(` `),children:[(0,a.jsxs)(`div`,{className:x.rail,children:[d,!c&&(0,a.jsx)(`div`,{className:x.connectorVertical})]}),f]}):(0,a.jsxs)(`div`,{className:[x.item,x[`item--horizontal`],l??``].filter(Boolean).join(` `),children:[(0,a.jsxs)(`div`,{className:x.topRow,children:[d,!c&&(0,a.jsx)(`div`,{className:x.connectorHorizontal})]}),f]})},C={separator:`_separator_pcfo8_1`,line:`_line_pcfo8_9`,overline:`_overline_pcfo8_19`,badge:`_badge_pcfo8_31`,iconWrap:`_iconWrap_pcfo8_37`},w=({children:e,label:n,className:r})=>(0,a.jsxs)(`div`,{className:[C.separator,r??``].filter(Boolean).join(` `),role:`separator`,children:[(0,a.jsx)(t.ht,{className:C.line}),e??(n&&(0,a.jsx)(`span`,{className:C.overline,children:n})),(0,a.jsx)(t.ht,{className:C.line})]}),T={row:`_row_5wjem_2`,left:`_left_5wjem_16`,logo:`_logo_5wjem_23`,logoLg:`_logoLg_5wjem_29`,text:`_text_5wjem_36`,symbol:`_symbol_5wjem_42`,name:`_name_5wjem_50`,right:`_right_5wjem_59`,price:`_price_5wjem_65`,changeRow:`_changeRow_5wjem_73`,changeText:`_changeText_5wjem_78`,trendUp:`_trendUp_5wjem_84`,trendDown:`_trendDown_5wjem_85`,card:`_card_5wjem_88`,header:`_header_5wjem_102`,headerIcon:`_headerIcon_5wjem_109`,headerLabel:`_headerLabel_5wjem_110`,tickerRow:`_tickerRow_5wjem_117`,body:`_body_5wjem_125`,priceRow:`_priceRow_5wjem_132`,priceGroup:`_priceGroup_5wjem_139`,priceLg:`_priceLg_5wjem_144`,changeRowLg:`_changeRowLg_5wjem_153`,changeTextLg:`_changeTextLg_5wjem_158`,chart:`_chart_5wjem_165`},E=e=>Math.abs(e).toLocaleString(`en-US`,{style:`currency`,currency:`USD`}),D=({logo:e,symbol:i,name:o,price:s,change:c,formatAmount:l=E,chart:u,periodLabel:d=`Last 6 months`,onPeriodClick:f,className:p})=>{let m=c.amount>=0,h=m?n.P:n.N,g=m?`+`:`-`,_=`${g}${l(c.amount)} (${g}${Math.abs(c.percent)}%)`,v=m?T.trendUp:T.trendDown;return u?(0,a.jsxs)(`div`,{className:[T.card,p??``].filter(Boolean).join(` `),children:[(0,a.jsxs)(`div`,{className:T.header,children:[(0,a.jsx)(r.c,{size:16,strokeWidth:t.Pt(16),className:T.headerIcon}),(0,a.jsx)(`span`,{className:T.headerLabel,children:`Stock market`})]}),(0,a.jsxs)(`div`,{className:T.tickerRow,children:[(0,a.jsx)(`span`,{className:T.logoLg,"aria-hidden":`true`,children:e}),(0,a.jsxs)(`div`,{className:T.text,children:[(0,a.jsx)(`p`,{className:T.symbol,children:i}),(0,a.jsx)(`p`,{className:T.name,children:o})]})]}),(0,a.jsxs)(`div`,{className:T.body,children:[(0,a.jsxs)(`div`,{className:T.priceRow,children:[(0,a.jsxs)(`div`,{className:T.priceGroup,children:[(0,a.jsx)(`p`,{className:T.priceLg,children:l(s)}),(0,a.jsxs)(`div`,{className:T.changeRowLg,children:[(0,a.jsx)(h,{size:24,strokeWidth:t.Pt(24),className:v}),(0,a.jsx)(`span`,{className:[T.changeTextLg,v].join(` `),children:_})]})]}),(0,a.jsx)(t.Et,{variant:`outline`,size:`sm`,rightIcon:(0,a.jsx)(n.A,{size:16,strokeWidth:t.Pt(16)}),onClick:f,children:d})]}),(0,a.jsx)(t.st,{data:u,className:T.chart})]})]}):(0,a.jsxs)(`div`,{className:[T.row,p??``].filter(Boolean).join(` `),children:[(0,a.jsxs)(`div`,{className:T.left,children:[(0,a.jsx)(`span`,{className:T.logo,"aria-hidden":`true`,children:e}),(0,a.jsxs)(`div`,{className:T.text,children:[(0,a.jsx)(`p`,{className:T.symbol,children:i}),(0,a.jsx)(`p`,{className:T.name,children:o})]})]}),(0,a.jsxs)(`div`,{className:T.right,children:[(0,a.jsx)(`p`,{className:T.price,children:l(s)}),(0,a.jsxs)(`div`,{className:T.changeRow,children:[(0,a.jsx)(h,{size:20,strokeWidth:t.Pt(20),className:v}),(0,a.jsx)(`span`,{className:[T.changeText,v].join(` `),children:_})]})]})]})},O={tags:`_tags_bsi1x_1`,remove:`_remove_bsi1x_8`,tag:`_tag_bsi1x_1`,"tag--leaving":`_tag--leaving_bsi1x_22`},k=160,A=({tags:e,onRemove:r,className:o})=>{let[s,c]=i.default.useState(null),l=i.default.useRef(void 0);i.default.useEffect(()=>()=>window.clearTimeout(l.current),[]);let u=(e,t)=>{if(!(!r||s)){if(window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches){r(e,t);return}c(e),l.current=window.setTimeout(()=>{r(e,t),c(null)},k)}};return(0,a.jsx)(`div`,{className:[O.tags,o??``].filter(Boolean).join(` `),children:e.map((e,i)=>(0,a.jsx)(t.ot,{className:[O.tag,s===e?O[`tag--leaving`]:``].filter(Boolean).join(` `),rightIcon:r&&(0,a.jsx)(`button`,{type:`button`,className:O.remove,onClick:()=>u(e,i),"aria-label":`Remove ${e}`,children:(0,a.jsx)(n.R,{size:12,strokeWidth:t.Pt(12)})}),children:e},e))})},j={ticker:`_ticker_6xnxy_1`,track:`_track_6xnxy_9`,"ticker-scroll":`_ticker-scroll_6xnxy_1`,row:`_row_6xnxy_24`,item:`_item_6xnxy_33`,symbol:`_symbol_6xnxy_40`,change:`_change_6xnxy_49`,trendUp:`_trendUp_6xnxy_57`,trendDown:`_trendDown_6xnxy_58`,fadeLeft:`_fadeLeft_6xnxy_60`,fadeRight:`_fadeRight_6xnxy_61`},M=e=>`${e>=0?`+`:``}${e}%`,N=({items:e,formatChange:r,ariaHidden:i})=>(0,a.jsx)(`div`,{className:j.row,"aria-hidden":i,children:e.map((e,i)=>{let o=e.changePercent>=0,s=o?n.P:n.N,c=o?j.trendUp:j.trendDown;return(0,a.jsxs)(`div`,{className:j.item,children:[(0,a.jsx)(`span`,{className:j.symbol,children:e.symbol}),(0,a.jsx)(s,{size:14,strokeWidth:t.Pt(14),className:c}),(0,a.jsx)(`span`,{className:[j.change,c].join(` `),children:r(e.changePercent)})]},`${e.symbol}-${i}`)})}),ee=({items:e,speed:t=40,formatChange:n=M,className:r})=>{let o=i.default.useRef(null),[s,c]=i.default.useState(20);return i.default.useEffect(()=>{let e=o.current;if(!e)return;let n=e.firstElementChild;if(!n)return;let r=()=>{let e=n.scrollWidth;e>0&&c(e/t)};r();let i=new ResizeObserver(r);return i.observe(n),()=>i.disconnect()},[e,t]),(0,a.jsxs)(`div`,{className:[j.ticker,r??``].filter(Boolean).join(` `),children:[(0,a.jsxs)(`div`,{ref:o,className:j.track,style:{"--ticker-duration":`${s}s`},children:[(0,a.jsx)(N,{items:e,formatChange:n}),(0,a.jsx)(N,{items:e,formatChange:n,ariaHidden:!0})]}),(0,a.jsx)(`div`,{className:j.fadeLeft,"aria-hidden":`true`}),(0,a.jsx)(`div`,{className:j.fadeRight,"aria-hidden":`true`})]})},P={list:`_list_ovxee_1`,row:`_row_ovxee_9`,rowLast:`_rowLast_ovxee_18`,left:`_left_ovxee_22`,iconWrap:`_iconWrap_ovxee_29`,info:`_info_ovxee_41`,name:`_name_ovxee_46`,category:`_category_ovxee_54`,amount:`_amount_ovxee_63`,amountUp:`_amountUp_ovxee_71`,amountDown:`_amountDown_ovxee_72`,empty:`_empty_ovxee_75`,emptyIcon:`_emptyIcon_ovxee_86`,emptyTitle:`_emptyTitle_ovxee_89`,emptyDesc:`_emptyDesc_ovxee_96`},F=e=>`${e>=0?`+`:`-`}${Math.abs(e).toLocaleString(`en-US`,{style:`currency`,currency:`USD`})}`,te=({transactions:e,formatAmount:n=F,emptyTitle:i=`No transactions yet`,emptyDescription:o=`Your activity will show up here.`,className:s})=>e.length===0?(0,a.jsxs)(`div`,{className:[P.empty,s??``].filter(Boolean).join(` `),children:[(0,a.jsx)(r.s,{size:24,strokeWidth:t.Pt(24),className:P.emptyIcon}),(0,a.jsx)(`p`,{className:P.emptyTitle,children:i}),(0,a.jsx)(`p`,{className:P.emptyDesc,children:o})]}):(0,a.jsx)(`div`,{className:[P.list,s??``].filter(Boolean).join(` `),children:e.map((t,r)=>{let i=t.amount>=0;return(0,a.jsxs)(`div`,{className:[P.row,r===e.length-1?P.rowLast:``].filter(Boolean).join(` `),children:[(0,a.jsxs)(`div`,{className:P.left,children:[(0,a.jsx)(`span`,{className:P.iconWrap,"aria-hidden":`true`,children:t.icon}),(0,a.jsxs)(`div`,{className:P.info,children:[(0,a.jsx)(`p`,{className:P.name,children:t.name}),(0,a.jsx)(`p`,{className:P.category,children:t.category})]})]}),(0,a.jsx)(`p`,{className:[P.amount,i?P.amountUp:P.amountDown].join(` `),children:n(t.amount)})]},t.id??`${t.name}-${r}`)})}),I={root:`_root_19qxp_1`,rootAttributed:`_rootAttributed_19qxp_10`,rootSimple:`_rootSimple_19qxp_18`,rail:`_rail_19qxp_27`,body:`_body_19qxp_37`,markRow:`_markRow_19qxp_46`,markRowEnd:`_markRowEnd_19qxp_51`,mark:`_mark_19qxp_46`,quoteAttributed:`_quoteAttributed_19qxp_59`,quoteSimple:`_quoteSimple_19qxp_68`,author:`_author_19qxp_77`,authorText:`_authorText_19qxp_83`,authorName:`_authorName_19qxp_91`},ne=({quote:e,author:r,className:i})=>{let o=!!r;return(0,a.jsxs)(`div`,{className:[I.root,o?I.rootAttributed:I.rootSimple,i??``].filter(Boolean).join(` `),children:[(0,a.jsx)(t.ht,{orientation:`vertical`,className:I.rail}),(0,a.jsxs)(`div`,{className:I.body,children:[o&&(0,a.jsx)(`span`,{className:I.markRow,"aria-hidden":`true`,children:(0,a.jsx)(n.w,{size:12,strokeWidth:t.Pt(12),className:I.mark,fill:`currentColor`})}),(0,a.jsx)(`p`,{className:o?I.quoteAttributed:I.quoteSimple,children:o?e:`"${e}"`}),o&&(0,a.jsx)(`span`,{className:[I.markRow,I.markRowEnd].join(` `),"aria-hidden":`true`,children:(0,a.jsx)(n.w,{size:12,strokeWidth:t.Pt(12),className:I.mark,fill:`currentColor`})}),r&&(0,a.jsxs)(`div`,{className:I.author,children:[(0,a.jsx)(t.jt,{size:`sm`,src:r.avatarSrc,alt:r.avatarAlt??r.name}),(0,a.jsxs)(`p`,{className:I.authorText,children:[(0,a.jsx)(`span`,{className:I.authorName,children:r.name}),(0,a.jsxs)(`span`,{className:I.authorRole,children:[`, `,r.role]})]})]})]})]})},L={root:`_root_btuyr_1`,rootLeft:`_rootLeft_btuyr_13`,rootTop:`_rootTop_btuyr_19`,ruleLeft:`_ruleLeft_btuyr_24`,ruleTop:`_ruleTop_btuyr_31`,text:`_text_btuyr_39`},re=({text:e,align:t=`left`,className:n})=>(0,a.jsxs)(`div`,{className:[L.root,t===`top`?L.rootTop:L.rootLeft,n??``].filter(Boolean).join(` `),children:[(0,a.jsx)(`span`,{className:t===`top`?L.ruleTop:L.ruleLeft,"aria-hidden":`true`}),(0,a.jsx)(`p`,{className:L.text,children:e})]}),ie={root:`_root_awxwk_1`,imageWrap:`_imageWrap_awxwk_10`,"root--large":`_root--large_awxwk_27`,"root--small":`_root--small_awxwk_33`,image:`_image_awxwk_10`,caption:`_caption_awxwk_47`},ae=({src:e,alt:t=``,size:n=`large`,caption:r,className:i})=>(0,a.jsxs)(`figure`,{className:[ie.root,ie[`root--${n}`],i??``].filter(Boolean).join(` `),children:[(0,a.jsx)(`span`,{className:ie.imageWrap,children:(0,a.jsx)(`img`,{src:e,alt:t,className:ie.image})}),r&&(0,a.jsx)(`figcaption`,{className:ie.caption,children:r})]}),oe={root:`_root_uc5r9_1`,rootCenter:`_rootCenter_uc5r9_10`,rootLeft:`_rootLeft_uc5r9_15`,title:`_title_uc5r9_20`,description:`_description_uc5r9_30`,ctaRow:`_ctaRow_uc5r9_39`,avatarBlock:`_avatarBlock_uc5r9_45`,avatarsCaption:`_avatarsCaption_uc5r9_57`},se=({title:e,description:n,badgeLabel:i,primaryCta:o,secondaryCta:s,avatars:c,avatarsCaption:l,align:u=`center`,className:d})=>{let f=!!(o||s),p=!!(c&&c.length>0);return(0,a.jsxs)(`div`,{className:[oe.root,u===`left`?oe.rootLeft:oe.rootCenter,d??``].filter(Boolean).join(` `),children:[i&&(0,a.jsx)(t.ot,{variant:`accent`,emphasis:`subtle`,children:i}),(0,a.jsx)(`p`,{className:oe.title,children:e}),n&&(0,a.jsx)(`p`,{className:oe.description,children:n}),f&&(0,a.jsxs)(`div`,{className:oe.ctaRow,children:[o&&(0,a.jsx)(t.Et,{variant:`primary`,onClick:o.onClick,children:o.label}),s&&(0,a.jsx)(t.Et,{variant:`secondary`,leftIcon:(0,a.jsx)(r.o,{size:16,strokeWidth:t.Pt(16),fill:`currentColor`}),onClick:s.onClick,children:s.label})]}),p&&(0,a.jsxs)(`div`,{className:oe.avatarBlock,children:[(0,a.jsx)(t.U,{size:`md`,avatars:c}),l&&(0,a.jsx)(`p`,{className:oe.avatarsCaption,children:l})]})]})},ce={root:`_root_5kajg_1`,item:`_item_5kajg_12`,marker:`_marker_5kajg_18`,dot:`_dot_5kajg_26`,label:`_label_5kajg_34`},R=({items:e,style:i=`check`,className:o})=>(0,a.jsx)(`ul`,{className:[ce.root,o??``].filter(Boolean).join(` `),children:e.map((e,o)=>(0,a.jsxs)(`li`,{className:ce.item,children:[(0,a.jsxs)(`span`,{className:ce.marker,"aria-hidden":`true`,children:[i===`check`&&(0,a.jsx)(n.M,{size:18,strokeWidth:t.Pt(18)}),i===`arrow`&&(0,a.jsx)(r.a,{size:16,strokeWidth:t.Pt(16)}),i===`bullet`&&(0,a.jsx)(`span`,{className:ce.dot})]}),(0,a.jsx)(`span`,{className:ce.label,children:e})]},o))}),z={marquee:`_marquee_1pc4i_1`,track:`_track_1pc4i_13`,row:`_row_1pc4i_19`,item:`_item_1pc4i_25`,fadeLeft:`_fadeLeft_1pc4i_31`,fadeRight:`_fadeRight_1pc4i_32`},le=({items:e,gap:t,ariaHidden:n})=>(0,a.jsx)(`div`,{className:z.row,style:{gap:t,paddingRight:t},"aria-hidden":n,children:e.map((e,t)=>(0,a.jsx)(`div`,{className:z.item,children:e},t))}),B=({items:e,speed:t=40,gap:n,className:r})=>{let o=i.default.useRef(null),s=i.default.useRef(0),c=i.default.useRef(0),l=i.default.useRef(!1);return i.default.useEffect(()=>{let e=o.current?.firstElementChild;if(!e)return;let t=()=>{s.current=e.scrollWidth};t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[e,n]),i.default.useEffect(()=>{let e=o.current;if(!e||window.matchMedia(`(prefers-reduced-motion: reduce)`).matches)return;let n,r=performance.now(),i=()=>{let a=performance.now(),o=(a-r)/1e3;r=a;let u=l.current?t*.2:t,d=s.current;d>0&&(c.current=(c.current+u*o)%d,e.style.transform=`translateX(-${c.current}px)`),n=setTimeout(i,16)};return n=setTimeout(i,16),()=>clearTimeout(n)},[t]),(0,a.jsxs)(`div`,{className:[z.marquee,r??``].filter(Boolean).join(` `),onMouseEnter:()=>{l.current=!0},onMouseLeave:()=>{l.current=!1},children:[(0,a.jsxs)(`div`,{ref:o,className:z.track,children:[(0,a.jsx)(le,{items:e,gap:n}),(0,a.jsx)(le,{items:e,gap:n,ariaHidden:!0})]}),(0,a.jsx)(`div`,{className:z.fadeLeft,"aria-hidden":`true`}),(0,a.jsx)(`div`,{className:z.fadeRight,"aria-hidden":`true`})]})},V={root:`_root_17a1b_1`,numRow:`_numRow_17a1b_9`,value:`_value_17a1b_15`,trend:`_trend_17a1b_25`,trendUp:`_trendUp_17a1b_35`,trendDown:`_trendDown_17a1b_39`,label:`_label_17a1b_43`},ue=({value:e,label:r,trend:i,className:o})=>{let s=i!==void 0,c=s&&i>=0,l=c?n.P:n.N;return(0,a.jsxs)(`div`,{className:[V.root,o??``].filter(Boolean).join(` `),children:[(0,a.jsxs)(`div`,{className:V.numRow,children:[(0,a.jsx)(`p`,{className:V.value,children:e}),s&&(0,a.jsxs)(`span`,{className:[V.trend,c?V.trendUp:V.trendDown].join(` `),children:[(0,a.jsx)(l,{size:24,strokeWidth:t.Pt(24)}),Math.abs(i),`%`]})]}),(0,a.jsx)(`p`,{className:V.label,children:r})]})},H={root:`_root_scbx4_1`,header:`_header_scbx4_13`,label:`_label_scbx4_21`,toggle:`_toggle_scbx4_34`,fullWidth:`_fullWidth_scbx4_48`,collapse:`_collapse_scbx4_67`,collapseOpen:`_collapseOpen_scbx4_74`,collapseInner:`_collapseInner_scbx4_78`,navLinks:`_navLinks_scbx4_91`,navLink:`_navLink_scbx4_91`},de=({label:e,links:r,ctaLabel:o=`Get started`,onCtaClick:s,open:c,defaultOpen:l=!1,onOpenChange:u,className:d})=>{let f=c!==void 0,[p,m]=i.default.useState(l),h=f?c:p,g=()=>{let e=!h;f||m(e),u?.(e)},_=i.default.useRef(null),[v,y]=i.default.useState(0);return i.default.useEffect(()=>{let e=_.current;if(!e)return;let t=()=>y(e.scrollHeight);t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[r,o]),(0,a.jsxs)(`div`,{className:[H.root,d??``].filter(Boolean).join(` `),children:[(0,a.jsxs)(`div`,{className:H.header,children:[(0,a.jsx)(`p`,{className:H.label,children:e}),(0,a.jsx)(`button`,{type:`button`,className:H.toggle,onClick:g,"aria-expanded":h,"aria-label":h?`Close menu`:`Open menu`,children:h?(0,a.jsx)(n.R,{size:16,strokeWidth:t.Pt(16)}):(0,a.jsx)(n.C,{size:16,strokeWidth:t.Pt(16)})})]}),(0,a.jsx)(`div`,{className:[H.collapse,h?H.collapseOpen:``].filter(Boolean).join(` `),style:{maxHeight:h?`${v}px`:`0px`},"aria-hidden":!h,children:(0,a.jsxs)(`div`,{ref:_,className:H.collapseInner,children:[(0,a.jsx)(`nav`,{className:H.navLinks,"aria-label":e,children:r.map(e=>(0,a.jsx)(`a`,{href:e.href,onClick:e.onClick,className:H.navLink,tabIndex:h?void 0:-1,children:e.label},e.label))}),(0,a.jsx)(t.ht,{className:H.fullWidth}),(0,a.jsx)(t.Et,{variant:`primary`,className:H.fullWidth,onClick:s,tabIndex:h?void 0:-1,children:o})]})})]})},U={root:`_root_lrpdp_1`,"root--sm":`_root--sm_lrpdp_14`,"root--md":`_root--md_lrpdp_18`,"root--lg":`_root--lg_lrpdp_22`,defaultMark:`_defaultMark_lrpdp_27`},fe={sm:14,md:16,lg:18},pe=({size:e=`md`,logo:n,label:r,className:o})=>{let s=fe[e],c=i.default.isValidElement(n)?i.default.cloneElement(n,{size:s,strokeWidth:t.Pt(s)}):n??(0,a.jsx)(`span`,{className:U.defaultMark,style:{width:s,height:s},children:(0,a.jsx)(t.B,{size:s})});return(0,a.jsx)(`span`,{className:[U.root,U[`root--${e}`],o??``].filter(Boolean).join(` `),role:`img`,"aria-label":r??`Logo placeholder`,children:c})},me={root:`_root_ibchq_1`,rootCompact:`_rootCompact_ibchq_7`,rootDetailed:`_rootDetailed_ibchq_14`,infoCompact:`_infoCompact_ibchq_21`,infoDetailed:`_infoDetailed_ibchq_27`,name:`_name_ibchq_35`,role:`_role_ibchq_44`,bio:`_bio_ibchq_53`,social:`_social_ibchq_63`,socialBtn:`_socialBtn_ibchq_71`},he=({name:e,role:n,avatarSrc:r,avatarAlt:i,bio:o,socialLinks:s=[],className:c})=>{let l=!!o||s.length>0;return(0,a.jsxs)(`div`,{className:[me.root,l?me.rootDetailed:me.rootCompact,c??``].filter(Boolean).join(` `),children:[(0,a.jsx)(t.jt,{size:`xl`,src:r,alt:i??e}),(0,a.jsxs)(`div`,{className:l?me.infoDetailed:me.infoCompact,children:[(0,a.jsx)(`p`,{className:me.name,children:e}),(0,a.jsx)(`p`,{className:me.role,children:n})]}),l&&o&&(0,a.jsx)(`p`,{className:me.bio,children:o}),l&&s.length>0&&(0,a.jsx)(`div`,{className:me.social,children:s.map((e,t)=>(0,a.jsx)(`a`,{href:e.href,onClick:e.onClick,className:me.socialBtn,"aria-label":e.label,children:e.icon},e.label??t))})]})},ge=({size:e=16})=>(0,a.jsx)(`svg`,{width:e,height:e,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,children:(0,a.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,fill:`currentColor`,d:`M9.48933 6.77467L15.318 0H13.9367L8.876 5.88267L4.834 0H0.172L6.284 8.89533L0.172 16H1.55333L6.89733 9.788L11.166 16H15.828L9.48933 6.77467ZM7.598 8.974L6.97867 8.088L2.05067 1.04H4.172L8.14867 6.728L8.768 7.614L13.9373 15.0073H11.816L7.598 8.974Z`})}),_e=({size:e=16})=>(0,a.jsx)(`svg`,{width:e,height:e,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,children:(0,a.jsx)(`path`,{fill:`currentColor`,stroke:`currentColor`,strokeWidth:`0.5`,d:`M5.2627 14.9109C5.24063 14.9019 5.21825 14.8937 5.19629 14.8845C5.21828 14.8846 5.2404 14.8849 5.2627 14.8845C5.26277 14.8934 5.26262 14.9022 5.2627 14.9109ZM8 0.948C12.0038 0.948 15.25 4.19421 15.25 8.198C15.25 11.2321 13.382 13.8337 10.7119 14.9041C10.7126 14.8154 10.7132 14.7175 10.7139 14.6111C10.7164 14.2289 10.7197 13.7443 10.7197 13.2068C10.7197 12.8702 10.6752 12.5602 10.5967 12.282C11.2251 12.1236 11.8603 11.8618 12.4033 11.407C13.3035 10.6531 13.8291 9.48051 13.8291 7.78003C13.8291 6.87672 13.5529 6.10004 13.0859 5.46265C13.1914 4.97309 13.2464 4.1873 12.8779 3.24292L12.748 2.91089L12.4082 2.80152L12.1885 3.48902C12.4086 2.8019 12.407 2.80174 12.4062 2.80152L12.4053 2.80054L12.3965 2.79761C12.3923 2.79634 12.3874 2.79501 12.3828 2.7937C12.3738 2.79113 12.364 2.78851 12.3535 2.78589C12.3324 2.78061 12.3081 2.77611 12.2812 2.77124C12.2271 2.76146 12.1615 2.75326 12.085 2.74976C11.9315 2.74276 11.7366 2.75416 11.499 2.80445C11.0816 2.8928 10.5376 3.09872 9.85352 3.52808C9.24662 3.38844 8.61824 3.31986 7.99414 3.31616H7.98535C7.36044 3.31984 6.73069 3.3881 6.12305 3.52808C5.43488 3.09865 4.88896 2.89272 4.4707 2.80445C4.23272 2.75425 4.03733 2.74275 3.88379 2.74976C3.80726 2.75325 3.74164 2.76049 3.6875 2.77027C3.66056 2.77514 3.63643 2.78059 3.61523 2.78589C3.60476 2.78851 3.59499 2.79113 3.58594 2.7937C3.58136 2.79501 3.57647 2.79634 3.57227 2.79761L3.56348 2.80054L3.56152 2.80152C3.56163 2.80419 3.57406 2.84531 3.78906 3.51636L3.56055 2.80152L3.2207 2.91089L3.09082 3.24292C2.72472 4.18117 2.77327 4.9675 2.88574 5.46851C2.41945 6.10504 2.14648 6.88031 2.14648 7.78003C2.14649 8.97574 2.40791 9.91025 2.87598 10.6228C2.76692 10.5961 2.65215 10.5747 2.53027 10.5662L2.50879 10.5642H2.46289C2.45155 10.5643 2.43701 10.5646 2.41992 10.5652C2.3862 10.5664 2.33899 10.569 2.28516 10.575C2.20712 10.5835 2.00131 10.6093 1.80762 10.7195C1.70282 10.7791 1.53342 10.9016 1.43457 11.1267C1.42275 11.1537 1.41196 11.181 1.40332 11.2078C0.984401 10.291 0.75 9.27198 0.75 8.198C0.75 4.19409 3.99434 0.948 8 0.948ZM4.51855 11.9919C4.75868 12.0994 5.00485 12.1834 5.25098 12.2517C5.17809 12.2603 5.10423 12.266 5.03125 12.2595C4.87853 12.2459 4.69843 12.1922 4.51855 11.9919Z`})}),ve={heading:`_heading_96cdx_1`,h2:`_h2_96cdx_8`,h3:`_h3_96cdx_14`},ye=({children:e,level:t=`h2`,className:n})=>(0,a.jsx)(t,{className:[ve.heading,ve[t],n??``].filter(Boolean).join(` `),children:e}),be={paragraph:`_paragraph_8pqdi_1`},xe=({children:e,className:t})=>(0,a.jsx)(`p`,{className:[be.paragraph,t??``].filter(Boolean).join(` `),children:e}),Se={rootBordered:`_rootBordered_5cgsj_1`,rail:`_rail_5cgsj_12`,contentHorizontal:`_contentHorizontal_5cgsj_18`,contentVertical:`_contentVertical_5cgsj_25`,textHorizontal:`_textHorizontal_5cgsj_33`,textVertical:`_textVertical_5cgsj_41`,title:`_title_5cgsj_49`,description:`_description_5cgsj_57`},Ce=({icon:e,title:n,description:r,layout:o=`horizontal`,leftBorder:s=!1,className:c})=>{let l=o===`vertical`,u=(0,a.jsxs)(`div`,{className:l?Se.contentVertical:Se.contentHorizontal,children:[(0,a.jsx)(t.W,{icon:e,size:`sm`,variant:`light`}),(0,a.jsxs)(`div`,{className:l?Se.textVertical:Se.textHorizontal,children:[(0,a.jsx)(`p`,{className:Se.title,children:n}),(0,a.jsx)(`p`,{className:Se.description,children:r})]})]});return s?(0,a.jsxs)(`div`,{className:[Se.rootBordered,c??``].filter(Boolean).join(` `),children:[(0,a.jsx)(t.ht,{orientation:`vertical`,className:Se.rail}),u]}):i.default.cloneElement(u,{className:[u.props.className,c??``].filter(Boolean).join(` `)})},we=({size:e=16})=>(0,a.jsx)(`svg`,{width:e,height:e,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,children:(0,a.jsx)(`path`,{d:`M11.6667 4.33333H11.6733M4.66667 1.33333H11.3333C13.1743 1.33333 14.6667 2.82572 14.6667 4.66667V11.3333C14.6667 13.1743 13.1743 14.6667 11.3333 14.6667H4.66667C2.82572 14.6667 1.33333 13.1743 1.33333 11.3333V4.66667C1.33333 2.82572 2.82572 1.33333 4.66667 1.33333ZM10.6666 7.58004C10.7489 8.13487 10.6541 8.70152 10.3958 9.19938C10.1375 9.69725 9.72873 10.101 9.22772 10.3532C8.7267 10.6053 8.15893 10.6931 7.60516 10.604C7.05138 10.5149 6.53981 10.2534 6.14319 9.85681C5.74658 9.4602 5.48512 8.94862 5.39601 8.39485C5.3069 7.84107 5.39468 7.2733 5.64685 6.77229C5.89903 6.27127 6.30276 5.86253 6.80062 5.6042C7.29849 5.34587 7.86514 5.2511 8.41997 5.33337C8.98592 5.41729 9.50987 5.68101 9.91443 6.08558C10.319 6.49014 10.5827 7.01409 10.6666 7.58004Z`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})}),Te=({size:e=16})=>(0,a.jsx)(`svg`,{width:e,height:e,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,children:(0,a.jsx)(`path`,{d:`M12 1.33333H10C9.11594 1.33333 8.2681 1.68452 7.64298 2.30964C7.01786 2.93477 6.66667 3.78261 6.66667 4.66667V6.66667H4.66667V9.33333H6.66667V14.6667H9.33333V9.33333H11.3333L12 6.66667H9.33333V4.66667C9.33333 4.48986 9.40357 4.32029 9.5286 4.19526C9.65362 4.07024 9.82319 4 10 4H12V1.33333Z`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})}),Ee=({size:e=16})=>(0,a.jsxs)(`svg`,{width:e,height:e,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,children:[(0,a.jsx)(`path`,{d:`M10.6667 5.33333C11.7275 5.33333 12.7449 5.75476 13.4951 6.50491C14.2452 7.25505 14.6667 8.27247 14.6667 9.33333V14H12V9.33333C12 8.97971 11.8595 8.64057 11.6095 8.39052C11.3594 8.14048 11.0203 8 10.6667 8C10.313 8 9.97391 8.14048 9.72386 8.39052C9.47381 8.64057 9.33333 8.97971 9.33333 9.33333V14H6.66667V9.33333C6.66667 8.27247 7.08809 7.25505 7.83824 6.50491C8.58838 5.75476 9.6058 5.33333 10.6667 5.33333Z`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,a.jsx)(`path`,{d:`M4 6H1.33333V14H4V6Z`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,a.jsx)(`path`,{d:`M2.66667 4C3.40305 4 4 3.40305 4 2.66667C4 1.93029 3.40305 1.33333 2.66667 1.33333C1.93029 1.33333 1.33333 1.93029 1.33333 2.66667C1.33333 3.40305 1.93029 4 2.66667 4Z`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),De={chart:`_chart_qqaox_2`},Oe={sm:180,md:240,lg:320,xl:420},ke=({data:e,variant:n=`default`,seriesLabels:r=[`Value`,`Value 2`],size:s=`md`,height:c,className:l})=>{let u=i.default.useRef(null),d=t.ut(u),f=d(`--color-chart-5`)??`#dca84f`,p=d(`--color-chart-2`)??`#5b92dd`,m=d(`--color-border-subtle`)??`#e7e5e1`,h=d(`--color-fg-muted`)??`#78716a`,g=e.some(e=>e.value2!==void 0),_=n===`step`?`step`:n===`linear`?`linear`:`monotone`,v=n===`stacked`?`stack`:void 0;return(0,a.jsx)(`div`,{ref:u,className:[De.chart,l??``].filter(Boolean).join(` `),children:(0,a.jsx)(o.ResponsiveContainer,{width:`100%`,height:c??Oe[s],children:(0,a.jsxs)(o.AreaChart,{data:e,margin:{top:8,right:8,bottom:8,left:0},children:[(0,a.jsxs)(`defs`,{children:[(0,a.jsxs)(`linearGradient`,{id:`sakani-area-1`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,a.jsx)(`stop`,{offset:`5%`,stopColor:f,stopOpacity:.35}),(0,a.jsx)(`stop`,{offset:`95%`,stopColor:f,stopOpacity:.02})]}),(0,a.jsxs)(`linearGradient`,{id:`sakani-area-2`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,a.jsx)(`stop`,{offset:`5%`,stopColor:p,stopOpacity:.35}),(0,a.jsx)(`stop`,{offset:`95%`,stopColor:p,stopOpacity:.02})]})]}),(0,a.jsx)(o.CartesianGrid,{strokeDasharray:`3 3`,stroke:m,vertical:!1}),(0,a.jsx)(o.XAxis,{dataKey:`label`,stroke:h,fontSize:12,tickLine:!1,axisLine:!1,interval:0}),(0,a.jsx)(o.Tooltip,{cursor:{stroke:d(`--color-border-default`)??`#dbdad7`,strokeWidth:1},content:(0,a.jsx)(t.ct,{}),wrapperStyle:{zIndex:50}}),g&&(0,a.jsx)(o.Area,{type:_,dataKey:`value2`,name:r[1]??`Value 2`,stackId:v,stroke:p,strokeWidth:2,fill:`url(#sakani-area-2)`,dot:!1,activeDot:{r:4,fill:p,stroke:d(`--color-bg-canvas`),strokeWidth:1.5}}),(0,a.jsx)(o.Area,{type:_,dataKey:`value`,name:r[0]??`Value`,stackId:v,stroke:f,strokeWidth:2,fill:`url(#sakani-area-1)`,dot:!1,activeDot:{r:4,fill:f,stroke:d(`--color-bg-canvas`),strokeWidth:1.5}})]})})})},W={col:`_col_1v24u_2`,col__header:`_col__header_1v24u_11`,col__dot:`_col__dot_1v24u_12`,col__title:`_col__title_1v24u_13`,col__count:`_col__count_1v24u_14`,col__spacer:`_col__spacer_1v24u_15`,col__action:`_col__action_1v24u_16`,col__body:`_col__body_1v24u_24`,col__drop:`_col__drop_1v24u_25`,col__add:`_col__add_1v24u_31`},Ae=({state:e=`default`,title:r,count:i,dotColor:o=`var(--color-chart-1)`,children:s,onAdd:c,onMenu:l,className:u})=>(0,a.jsxs)(`div`,{className:[W.col,u??``].filter(Boolean).join(` `),children:[(0,a.jsxs)(`div`,{className:W.col__header,children:[(0,a.jsx)(`span`,{className:W.col__dot,style:{background:o},"aria-hidden":`true`}),(0,a.jsx)(`span`,{className:W.col__title,children:r}),i!=null&&(0,a.jsx)(`span`,{className:W.col__count,children:i}),(0,a.jsx)(`span`,{className:W.col__spacer}),(0,a.jsx)(`button`,{type:`button`,className:W.col__action,onClick:c,"aria-label":`Add task`,children:(0,a.jsx)(n.O,{size:16,strokeWidth:t.Pt(16)})}),(0,a.jsx)(`button`,{type:`button`,className:W.col__action,onClick:l,"aria-label":`Column options`,children:(0,a.jsx)(n.S,{size:16,strokeWidth:t.Pt(16)})})]}),(0,a.jsx)(`div`,{className:W.col__body,children:e===`empty`?(0,a.jsx)(`div`,{className:W.col__drop,children:`Drop tasks here`}):s}),(0,a.jsxs)(`button`,{type:`button`,className:W.col__add,onClick:c,children:[(0,a.jsx)(n.O,{size:16,strokeWidth:t.Pt(16),"aria-hidden":`true`}),`Add task`]})]}),G={calendar:`_calendar_qvyxg_2`,header:`_header_qvyxg_14`,header__label:`_header__label_qvyxg_15`,navBtn:`_navBtn_qvyxg_16`,weekdays:`_weekdays_qvyxg_27`,weekday:`_weekday_qvyxg_27`,grid:`_grid_qvyxg_34`,day:`_day_qvyxg_35`,"day--default":`_day--default_qvyxg_49`,"day--hover":`_day--hover_qvyxg_50`,"day--selected":`_day--selected_qvyxg_51`,"day--today":`_day--today_qvyxg_52`,"day--in-range":`_day--in-range_qvyxg_53`,"day--outside":`_day--outside_qvyxg_54`,"day--disabled":`_day--disabled_qvyxg_55`,dropdowns:`_dropdowns_qvyxg_58`,dropdown:`_dropdown_qvyxg_58`},je=[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],Me=[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],Ne=(e,t)=>!!e&&!!t&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate(),Pe=e=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),Fe=({mode:e=`single`,value:r,onChange:o,range:s,onRangeChange:c,headerType:l=`arrows`,defaultMonth:u,minDate:d,maxDate:f,className:p})=>{let[m,h]=i.default.useState(()=>{let e=u??r??s?.from??new Date;return new Date(e.getFullYear(),e.getMonth(),1)}),[g,_]=i.default.useState({}),v=t.F(),y=s===void 0?g:s,b=new Date,x=m.getFullYear(),S=m.getMonth(),C=new Date(x,S,1).getDay(),w=new Date(x,S,1-C),T=Array.from({length:42},(e,t)=>new Date(w.getFullYear(),w.getMonth(),w.getDate()+t)),E=e=>d&&e<Pe(d)||f&&e>f,D=e=>{s===void 0&&_(e),c?.(e)},O=t=>{if(e===`single`){o?.(t);return}let{from:n,to:r}=y;D(!n||n&&r?{from:t,to:void 0}:t<n?{from:t,to:n}:{from:n,to:t})},k=t=>{if(E(t))return`disabled`;if(e===`single`){if(Ne(t,r))return`selected`}else{let{from:e,to:n}=y;if(Ne(t,e)||Ne(t,n))return`selected`;if(e&&n&&t>e&&t<n)return`in-range`}return t.getMonth()===S?Ne(t,b)?`today`:`default`:`outside`},A=d?d.getFullYear():x-10,j=f?f.getFullYear():x+10,M=Array.from({length:j-A+1},(e,t)=>A+t);return(0,a.jsxs)(`div`,{className:[G.calendar,p??``].filter(Boolean).join(` `),children:[(0,a.jsxs)(`div`,{className:G.header,children:[(0,a.jsx)(`button`,{type:`button`,className:G.navBtn,onClick:()=>h(new Date(x,S-1,1)),"aria-label":`Previous month`,children:(0,a.jsx)(n.x,{size:16,strokeWidth:t.Pt(16)})}),l===`dropdowns`?(0,a.jsxs)(`span`,{className:G.dropdowns,children:[(0,a.jsx)(`select`,{className:G.dropdown,value:S,onChange:e=>h(new Date(x,Number(e.target.value),1)),"aria-label":`Month`,children:Me.map((e,t)=>(0,a.jsx)(`option`,{value:t,children:e},e))}),(0,a.jsx)(`select`,{className:G.dropdown,value:x,onChange:e=>h(new Date(Number(e.target.value),S,1)),"aria-label":`Year`,children:M.map(e=>(0,a.jsx)(`option`,{value:e,children:e},e))})]}):(0,a.jsxs)(`span`,{className:G.header__label,children:[Me[S],` `,x]}),(0,a.jsx)(`button`,{type:`button`,className:G.navBtn,onClick:()=>h(new Date(x,S+1,1)),"aria-label":`Next month`,children:(0,a.jsx)(n.b,{size:16,strokeWidth:t.Pt(16)})})]}),(0,a.jsx)(`div`,{className:G.weekdays,children:je.map(e=>(0,a.jsx)(`span`,{className:G.weekday,children:e},e))}),(0,a.jsxs)(`div`,{ref:v.ref,...v.groupProps,className:G.grid,children:[v.highlight,T.map((e,t)=>{let n=k(e);return(0,a.jsx)(`button`,{type:`button`,"data-hover-item":``,className:[G.day,G[`day--${n}`]].filter(Boolean).join(` `),disabled:n===`disabled`,"aria-current":n===`today`?`date`:void 0,"aria-selected":n===`selected`,"aria-label":e.toLocaleDateString(void 0,{weekday:`long`,year:`numeric`,month:`long`,day:`numeric`}),onClick:()=>O(e),children:e.getDate()},t)})]})]})},Ie={card:`_card_1qpcc_3`,"card--interactive":`_card--interactive_1qpcc_22`,card__header:`_card__header_1qpcc_30`,card__title:`_card__title_1qpcc_34`,card__description:`_card__description_1qpcc_43`,card__body:`_card__body_1qpcc_53`,card__actions:`_card__actions_1qpcc_57`,"card__actions--split":`_card__actions--split_1qpcc_66`,card__actionsGroup:`_card__actionsGroup_1qpcc_67`},Le=({title:e,description:t,actions:n,leadingAction:r,interactive:i,children:o,className:s})=>(0,a.jsxs)(`div`,{className:[Ie.card,i?Ie[`card--interactive`]:``,s??``].filter(Boolean).join(` `),children:[(e||t)&&(0,a.jsxs)(`div`,{className:Ie.card__header,children:[e&&(0,a.jsx)(`h3`,{className:Ie.card__title,children:e}),t&&(0,a.jsx)(`p`,{className:Ie.card__description,children:t})]}),o&&(0,a.jsx)(`div`,{className:Ie.card__body,children:o}),(n||r)&&(r?(0,a.jsxs)(`div`,{className:[Ie.card__actions,Ie[`card__actions--split`]].join(` `),children:[r,(0,a.jsx)(`div`,{className:Ie.card__actionsGroup,children:n})]}):(0,a.jsx)(`div`,{className:Ie.card__actions,children:n}))]}),K={sr:`_sr_115fu_5`,root:`_root_115fu_17`,header:`_header_115fu_26`,header__icon:`_header__icon_115fu_44`,header__title:`_header__title_115fu_45`,header__chevron:`_header__chevron_115fu_46`,panel:`_panel_115fu_51`,panel__inner:`_panel__inner_115fu_59`,step:`_step_115fu_61`,steps:`_steps_115fu_71`,step__body:`_step__body_115fu_83`,step__row:`_step__row_115fu_115`,step__icon:`_step__icon_115fu_116`,step__content:`_step__content_115fu_117`,step__label:`_step__label_115fu_118`,step__query:`_step__query_115fu_119`,step__count:`_step__count_115fu_129`,"step--done":`_step--done_115fu_136`,"step--active":`_step--active_115fu_137`,"step--pending":`_step--pending_115fu_139`,step__sources:`_step__sources_115fu_145`,"step__sources--button":`_step__sources--button_115fu_157`,step__sourcesLabel:`_step__sourcesLabel_115fu_158`,step__sourcesChevron:`_step__sourcesChevron_115fu_160`,stack:`_stack_115fu_163`,chip:`_chip_115fu_164`,working:`_working_115fu_179`,indicator:`_indicator_115fu_180`,indicator__icon:`_indicator__icon_115fu_181`,indicator__label:`_indicator__label_115fu_182`,indicator__time:`_indicator__time_115fu_183`,"indicator--working":`_indicator--working_115fu_189`,"chain-of-thought-shimmer":`_chain-of-thought-shimmer_115fu_1`,"chain-of-thought-open":`_chain-of-thought-open_115fu_1`,"chain-of-thought-rail-down":`_chain-of-thought-rail-down_115fu_1`,"chain-of-thought-rail-across":`_chain-of-thought-rail-across_115fu_1`,"chain-of-thought-land":`_chain-of-thought-land_115fu_1`,"chain-of-thought-write":`_chain-of-thought-write_115fu_1`,"chain-of-thought-type":`_chain-of-thought-type_115fu_1`,"chain-of-thought-fade-in":`_chain-of-thought-fade-in_115fu_1`,"chain-of-thought-row-open":`_chain-of-thought-row-open_115fu_1`,"chain-of-thought-fan":`_chain-of-thought-fan_115fu_1`,"chain-of-thought-spark-down":`_chain-of-thought-spark-down_115fu_1`,"chain-of-thought-spark-across":`_chain-of-thought-spark-across_115fu_1`,"chain-of-thought-beat":`_chain-of-thought-beat_115fu_1`,spark:`_spark_115fu_289`,spark__big:`_spark__big_115fu_291`,"chain-of-thought-spark-turn":`_chain-of-thought-spark-turn_115fu_1`,spark__top:`_spark__top_115fu_292`,"chain-of-thought-spark-twinkle":`_chain-of-thought-spark-twinkle_115fu_1`,spark__bottom:`_spark__bottom_115fu_293`,"chain-of-thought-sweep":`_chain-of-thought-sweep_115fu_1`,"chain-of-thought-glint":`_chain-of-thought-glint_115fu_1`,"indicator--done":`_indicator--done_115fu_307`,"chain-of-thought-pop":`_chain-of-thought-pop_115fu_1`,"chain-of-thought-check":`_chain-of-thought-check_115fu_1`,"chain-of-thought-rise":`_chain-of-thought-rise_115fu_1`,"chain-of-thought-title":`_chain-of-thought-title_115fu_1`},q=(...e)=>e.filter(Boolean).join(` `),Re=i.default.createContext(!1);function ze(){let e=i.default.useContext(Re),[t]=i.default.useState(e);return t}function Be(e,t=700,n=()=>!0){let[r,a]=i.default.useState(!1),o=i.default.useRef(!0);return i.default.useEffect(()=>{if(o.current){o.current=!1;return}if(!n(e)){a(!1);return}a(!0);let r=setTimeout(()=>a(!1),t);return()=>clearTimeout(r)},[e]),r}var Ve=()=>typeof window<`u`&&!!window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches;function He(e){return e<60?`${e.toFixed(1)}s`:`${Math.floor(e/60)}m ${Math.floor(e%60)}s`}var Ue=({className:e})=>(0,a.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:16,height:16,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:t.Pt(16,1),strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,focusable:`false`,className:q(K.spark,e),children:[(0,a.jsx)(`path`,{className:K.spark__big,d:`M9 18a6 6 0 0 1 6 -6a6 6 0 0 1 -6 -6a6 6 0 0 1 -6 6a6 6 0 0 1 6 6`}),(0,a.jsx)(`path`,{className:K.spark__top,d:`M16 6a2 2 0 0 1 2 2a2 2 0 0 1 2 -2a2 2 0 0 1 -2 -2a2 2 0 0 1 -2 2`}),(0,a.jsx)(`path`,{className:K.spark__bottom,d:`M16 18a2 2 0 0 1 2 2a2 2 0 0 1 2 -2a2 2 0 0 1 -2 -2a2 2 0 0 1 -2 2`})]}),We=({status:e=`working`,label:r,elapsed:o,startedAt:s,className:c})=>{let l=e===`working`,[u,d]=i.default.useState(()=>Date.now());i.default.useEffect(()=>{if(!l||s==null||o!=null)return;d(Date.now());let e=setInterval(()=>d(Date.now()),100);return()=>clearInterval(e)},[l,s,o]);let f=o??(s==null?void 0:Math.max(0,(u-s)/1e3)),p=Be(e,2400);return(0,a.jsxs)(`div`,{className:q(K.indicator,l?K[`indicator--working`]:K[`indicator--done`],c),"data-changed":p||void 0,role:`status`,children:[l?(0,a.jsx)(Ue,{className:K.indicator__icon}):(0,a.jsx)(n.v,{className:K.indicator__icon,size:16,strokeWidth:t.Pt(16),"aria-hidden":`true`}),(0,a.jsx)(`span`,{className:K.indicator__label,children:r??(l?`Working`:`Worked for`)}),f!=null&&(0,a.jsx)(`span`,{className:K.indicator__time,"aria-hidden":l||void 0,children:He(f)})]})};We.displayName=`WorkingIndicator`;var Ge=({sources:e,className:n})=>{let i=ze();return(0,a.jsx)(`ul`,{className:q(K.stack,n),"aria-label":`${e.length} source${e.length===1?``:`s`}`,children:e.map((e,n)=>{let o=e.icon??r.i;return(0,a.jsxs)(`li`,{className:K.chip,title:e.label,"data-fresh":i||void 0,style:{"--i":n},children:[(0,a.jsx)(o,{size:10,strokeWidth:t.Pt(10,1),"aria-hidden":`true`}),(0,a.jsx)(`span`,{className:K.sr,children:e.label})]},`${e.label}-${n}`)})})};Ge.displayName=`SourceStack`;var Ke=({children:e,delay:t})=>{let n=ze(),[r,o]=i.default.useState(null);return i.default.useEffect(()=>{let r=n&&(typeof e==`string`||typeof e==`number`)?/^(\d+)(.*)$/s.exec(String(e)):null,i=r?Number(r[1]):0;if(!r||i<2||Ve())return;let a=r[2],s=Math.max(2,Math.round(i*.25)),c=performance.now()+t,l=Math.min(900,380+i*30),u=0,d=e=>{let t=Math.min(1,Math.max(0,(e-c)/l)),n=1-(1-t)**3;o(t<1?`${Math.round(s+n*(i-s))}${a}`:null),t<1&&(u=requestAnimationFrame(d))};return o(`${s}${a}`),u=requestAnimationFrame(d),()=>cancelAnimationFrame(u)},[]),(0,a.jsx)(`span`,{className:K.step__count,"data-fresh":n||void 0,children:r??e})},qe=({onClick:e,children:t})=>{let n=ze();return e?(0,a.jsx)(`button`,{type:`button`,className:q(K.step__sources,K[`step__sources--button`]),"data-fresh":n||void 0,onClick:e,children:t}):(0,a.jsx)(`div`,{className:K.step__sources,"data-fresh":n||void 0,children:t})},Je={pending:`Pending: `,active:`In progress: `,done:`Done: `},Ye=({status:e=`done`,icon:r,label:o,query:s,count:c,accent:l,sources:u,sourcesLabel:d=`Sources`,onSourcesClick:f,className:p})=>{let m=r??n.y,h=l??m.brandColor??void 0,g=ze(),[_,v]=i.default.useState(g),[y]=i.default.useState(g&&(c!=null||u!=null));i.default.useEffect(()=>{if(!_)return;let e=setTimeout(()=>v(!1),2e3);return()=>clearTimeout(e)},[_]);let b=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(`span`,{className:K.step__sourcesLabel,children:d}),u,f&&(0,a.jsx)(n.A,{className:K.step__sourcesChevron,size:12,strokeWidth:t.Pt(12),"aria-hidden":`true`})]});return(0,a.jsx)(`li`,{className:q(K.step,K[`step--${e}`],p),style:h?{"--cot-spark":h}:void 0,"data-entering":_||void 0,"data-with-results":_&&y||void 0,"aria-current":e===`active`?`step`:void 0,children:(0,a.jsxs)(`div`,{className:K.step__body,children:[(0,a.jsxs)(`div`,{className:K.step__row,children:[(0,a.jsx)(m,{className:K.step__icon,size:16,strokeWidth:t.Pt(16),"aria-hidden":`true`}),(0,a.jsxs)(`span`,{className:K.step__content,children:[(0,a.jsx)(`span`,{className:K.sr,children:Je[e]}),(0,a.jsx)(`span`,{className:K.step__label,children:o}),s&&(0,a.jsx)(`code`,{className:K.step__query,style:{"--chars":Math.max(1,s.length)},children:s})]}),c!=null&&(0,a.jsx)(Ke,{delay:_&&y?760:0,children:c})]}),u&&(0,a.jsx)(qe,{onClick:f,children:b})]})})};Ye.displayName=`ChainOfThoughtStep`;var Xe=({title:e,icon:r,open:o,defaultOpen:s=!0,onOpenChange:c,status:l,elapsed:u,startedAt:d,children:f,className:p})=>{let m=r??n.y,h=i.default.useId(),[g,_]=i.default.useState(!1);i.default.useEffect(()=>{let e=requestAnimationFrame(()=>_(!0));return()=>cancelAnimationFrame(e)},[]);let v=Be(typeof e==`string`?e:void 0,600),[y,b]=i.default.useState(s),x=o??y,S=i.default.useRef(null),[C,w]=i.default.useState(0);i.default.useLayoutEffect(()=>{let e=S.current?Array.from(S.current.children):[];e.forEach((e,t)=>e.style.setProperty(`--step`,String(t))),e.length!==C&&w(e.length)});let T=Be(l,900+C*110,e=>e===`done`),E=Be(x,700+C*45,e=>e===!0);return(0,a.jsxs)(`div`,{className:q(K.root,p),"data-open":x||void 0,"data-finishing":T||void 0,"data-opening":E||void 0,style:{"--steps":C},children:[(0,a.jsxs)(`button`,{type:`button`,className:K.header,"aria-expanded":x,"aria-controls":h,onClick:()=>{let e=!x;o===void 0&&b(e),c?.(e)},children:[(0,a.jsx)(m,{className:K.header__icon,size:16,strokeWidth:t.Pt(16),"aria-hidden":`true`}),(0,a.jsx)(`span`,{className:K.header__title,"data-changed":v||void 0,children:e}),(0,a.jsx)(n.A,{className:K.header__chevron,size:14,strokeWidth:t.Pt(14),"aria-hidden":`true`})]}),(0,a.jsx)(`div`,{id:h,className:K.panel,"aria-hidden":!x||void 0,children:(0,a.jsxs)(`div`,{className:K.panel__inner,children:[(0,a.jsx)(Re.Provider,{value:g,children:f!=null&&(0,a.jsx)(`ol`,{ref:S,className:K.steps,children:f})}),l&&(0,a.jsx)(`div`,{className:K.working,children:(0,a.jsx)(We,{status:l,elapsed:u,startedAt:d})})]})})]})};Xe.displayName=`ChainOfThought`;var Ze={google:{label:`Google`,color:`#4285F4`,path:`M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z`},x:{label:`X`,color:null,path:`M14.234 10.162 22.977 0h-2.072l-7.591 8.824L7.251 0H.258l9.168 13.343L.258 24H2.33l8.016-9.318L16.749 24h6.993zm-2.837 3.299-.929-1.329L3.076 1.56h3.182l5.965 8.532.929 1.329 7.754 11.09h-3.182z`},reddit:{label:`Reddit`,color:`#FF4500`,path:`M12 0C5.373 0 0 5.373 0 12c0 3.314 1.343 6.314 3.515 8.485l-2.286 2.286C.775 23.225 1.097 24 1.738 24H12c6.627 0 12-5.373 12-12S18.627 0 12 0Zm4.388 3.199c1.104 0 1.999.895 1.999 1.999 0 1.105-.895 2-1.999 2-.946 0-1.739-.657-1.947-1.539v.002c-1.147.162-2.032 1.15-2.032 2.341v.007c1.776.067 3.4.567 4.686 1.363.473-.363 1.064-.58 1.707-.58 1.547 0 2.802 1.254 2.802 2.802 0 1.117-.655 2.081-1.601 2.531-.088 3.256-3.637 5.876-7.997 5.876-4.361 0-7.905-2.617-7.998-5.87-.954-.447-1.614-1.415-1.614-2.538 0-1.548 1.255-2.802 2.803-2.802.645 0 1.239.218 1.712.585 1.275-.79 2.881-1.291 4.64-1.365v-.01c0-1.663 1.263-3.034 2.88-3.207.188-.911.993-1.595 1.959-1.595Zm-8.085 8.376c-.784 0-1.459.78-1.506 1.797-.047 1.016.64 1.429 1.426 1.429.786 0 1.371-.369 1.418-1.385.047-1.017-.553-1.841-1.338-1.841Zm7.406 0c-.786 0-1.385.824-1.338 1.841.047 1.017.634 1.385 1.418 1.385.785 0 1.473-.413 1.426-1.429-.046-1.017-.721-1.797-1.506-1.797Zm-3.703 4.013c-.974 0-1.907.048-2.77.135-.147.015-.241.168-.183.305.483 1.154 1.622 1.964 2.953 1.964 1.33 0 2.47-.81 2.953-1.964.057-.137-.037-.29-.184-.305-.863-.087-1.795-.135-2.769-.135Z`},github:{label:`GitHub`,color:null,path:`M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12`},linkedin:{label:`LinkedIn`,color:`#0A66C2`,path:`M17 2a5 5 0 0 1 5 5v10a5 5 0 0 1 -5 5h-10a5 5 0 0 1 -5 -5v-10a5 5 0 0 1 5 -5zm-9 8a1 1 0 0 0 -1 1v5a1 1 0 0 0 2 0v-5a1 1 0 0 0 -1 -1m6 0a3 3 0 0 0 -1.168 .236l-.125 .057a1 1 0 0 0 -1.707 .707v5a1 1 0 0 0 2 0v-3a1 1 0 0 1 2 0v3a1 1 0 0 0 2 0v-3a3 3 0 0 0 -3 -3m-6 -3a1 1 0 0 0 -.993 .883l-.007 .127a1 1 0 0 0 1.993 .117l.007 -.127a1 1 0 0 0 -1 -1`},youtube:{label:`YouTube`,color:`#FF0000`,path:`M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z`},hackernews:{label:`Hacker News`,color:`#FF6600`,path:`M0 24V0h24v24H0zM6.951 5.896l4.112 7.708v5.064h1.583v-4.972l4.148-7.799h-1.749l-2.457 4.875c-.372.745-.688 1.434-.688 1.434s-.297-.708-.651-1.434L8.831 5.896h-1.88z`},wikipedia:{label:`Wikipedia`,color:null,path:`M12.09 13.119c-.936 1.932-2.217 4.548-2.853 5.728-.616 1.074-1.127.931-1.532.029-1.406-3.321-4.293-9.144-5.651-12.409-.251-.601-.441-.987-.619-1.139-.181-.15-.554-.24-1.122-.271C.103 5.033 0 4.982 0 4.898v-.455l.052-.045c.924-.005 5.401 0 5.401 0l.051.045v.434c0 .119-.075.176-.225.176l-.564.031c-.485.029-.727.164-.727.436 0 .135.053.33.166.601 1.082 2.646 4.818 10.521 4.818 10.521l.136.046 2.411-4.81-.482-1.067-1.658-3.264s-.318-.654-.428-.872c-.728-1.443-.712-1.518-1.447-1.617-.207-.023-.313-.05-.313-.149v-.468l.06-.045h4.292l.113.037v.451c0 .105-.076.15-.227.15l-.308.047c-.792.061-.661.381-.136 1.422l1.582 3.252 1.758-3.504c.293-.64.233-.801.111-.947-.07-.084-.305-.22-.812-.24l-.201-.021c-.052 0-.098-.015-.145-.051-.045-.031-.067-.076-.067-.129v-.427l.061-.045c1.247-.008 4.043 0 4.043 0l.059.045v.436c0 .121-.059.178-.193.178-.646.03-.782.095-1.023.439-.12.186-.375.589-.646 1.039l-2.301 4.273-.065.135 2.792 5.712.17.048 4.396-10.438c.154-.422.129-.722-.064-.895-.197-.172-.346-.273-.857-.295l-.42-.016c-.061 0-.105-.014-.152-.045-.043-.029-.072-.075-.072-.119v-.436l.059-.045h4.961l.041.045v.437c0 .119-.074.18-.209.18-.648.03-1.127.18-1.443.421-.314.255-.557.616-.736 1.067 0 0-4.043 9.258-5.426 12.339-.525 1.007-1.053.917-1.503-.031-.571-1.171-1.773-3.786-2.646-5.71l.053-.036z`},stackoverflow:{label:`Stack Overflow`,color:`#F58025`,path:`M15.725 0l-1.72 1.277 6.39 8.588 1.716-1.277L15.725 0zm-3.94 3.418l-1.369 1.644 8.225 6.85 1.369-1.644-8.225-6.85zm-3.15 4.465l-.905 1.94 9.702 4.517.904-1.94-9.701-4.517zm-1.85 4.86l-.44 2.093 10.473 2.201.44-2.092-10.473-2.203zM1.89 15.47V24h19.19v-8.53h-2.133v6.397H4.021v-6.396H1.89zm4.265 2.133v2.13h10.66v-2.13H6.154Z`},producthunt:{label:`Product Hunt`,color:`#DA552F`,path:`M13.604 8.4h-3.405V12h3.405c.995 0 1.801-.806 1.801-1.801 0-.993-.805-1.799-1.801-1.799zM12 0C5.372 0 0 5.372 0 12s5.372 12 12 12 12-5.372 12-12S18.628 0 12 0zm1.604 14.4h-3.405V18H7.801V6h5.804c2.319 0 4.2 1.88 4.2 4.199 0 2.321-1.881 4.201-4.201 4.201z`},medium:{label:`Medium`,color:null,path:`M4.21 0A4.201 4.201 0 0 0 0 4.21v15.58A4.201 4.201 0 0 0 4.21 24h15.58A4.201 4.201 0 0 0 24 19.79v-1.093c-.137.013-.278.02-.422.02-2.577 0-4.027-2.146-4.09-4.832a7.592 7.592 0 0 1 .022-.708c.093-1.186.475-2.241 1.105-3.022a3.885 3.885 0 0 1 1.395-1.1c.468-.237 1.127-.367 1.664-.367h.023c.101 0 .202.004.303.01V4.211A4.201 4.201 0 0 0 19.79 0Zm.198 5.583h4.165l3.588 8.435 3.59-8.435h3.864v.146l-.019.004c-.705.16-1.063.397-1.063 1.254h-.003l.003 10.274c.06.676.424.885 1.063 1.03l.02.004v.145h-4.923v-.145l.019-.005c.639-.144.994-.353 1.054-1.03V7.267l-4.745 11.15h-.261L6.15 7.569v9.445c0 .857.358 1.094 1.063 1.253l.02.004v.147H4.405v-.147l.019-.004c.705-.16 1.065-.397 1.065-1.253V6.987c0-.857-.358-1.094-1.064-1.254l-.018-.004zm19.25 3.668c-1.086.023-1.733 1.323-1.813 3.124H24V9.298a1.378 1.378 0 0 0-.342-.047Zm-1.862 3.632c-.1 1.756.86 3.239 2.204 3.634v-3.634z`},notion:{label:`Notion`,color:null,path:`M4.459 4.208c.746.606 1.026.56 2.428.466l13.215-.793c.28 0 .047-.28-.046-.326L17.86 1.968c-.42-.326-.981-.7-2.055-.607L3.01 2.295c-.466.046-.56.28-.374.466zm.793 3.08v13.904c0 .747.373 1.027 1.214.98l14.523-.84c.841-.046.935-.56.935-1.167V6.354c0-.606-.233-.933-.748-.887l-15.177.887c-.56.047-.747.327-.747.933zm14.337.745c.093.42 0 .84-.42.888l-.7.14v10.264c-.608.327-1.168.514-1.635.514-.748 0-.935-.234-1.495-.933l-4.577-7.186v6.952L12.21 19s0 .84-1.168.84l-3.222.186c-.093-.186 0-.653.327-.746l.84-.233V9.854L7.822 9.76c-.094-.42.14-1.026.793-1.073l3.456-.233 4.764 7.279v-6.44l-1.215-.139c-.093-.514.28-.887.747-.933zM1.936 1.035l13.31-.98c1.634-.14 2.055-.047 3.082.7l4.249 2.986c.7.513.934.653.934 1.213v16.378c0 1.026-.373 1.634-1.68 1.726l-15.458.934c-.98.047-1.448-.093-1.962-.747l-3.129-4.06c-.56-.747-.793-1.306-.793-1.96V2.667c0-.839.374-1.54 1.447-1.632z`},substack:{label:`Substack`,color:`#FF6719`,path:`M22.539 8.242H1.46V5.406h21.08v2.836zM1.46 10.812V24L12 18.11 22.54 24V10.812H1.46zM22.54 0H1.46v2.836h21.08V0z`},arxiv:{label:`arXiv`,color:`#B31B1B`,path:`M3.8423 0a1.0037 1.0037 0 0 0-.922.6078c-.1536.3687-.0438.6275.2938 1.1113l6.9185 8.3597-1.0223 1.1058a1.0393 1.0393 0 0 0 .003 1.4229l1.2292 1.3135-5.4391 6.4444c-.2803.299-.4538.823-.2971 1.1986a1.0253 1.0253 0 0 0 .9585.635.9133.9133 0 0 0 .6891-.3405l5.783-6.126 7.4902 8.0051a.8527.8527 0 0 0 .6835.2597.9575.9575 0 0 0 .8777-.6138c.1577-.377-.017-.7502-.306-1.1407l-7.0518-8.3418 1.0632-1.13a.9626.9626 0 0 0 .0089-1.3165L4.6336.4639s-.3733-.4535-.768-.463zm0 .272h.0166c.2179.0052.4874.2715.5644.3639l.005.006.0052.0055 10.169 10.9905a.6915.6915 0 0 1-.0072.945l-1.0666 1.133-1.4982-1.7724-8.5994-10.39c-.3286-.472-.352-.6183-.2592-.841a.7307.7307 0 0 1 .6704-.4401Zm14.341 1.5701a.877.877 0 0 0-.6554.2418l-5.6962 6.1584 1.6944 1.8319 5.3089-6.5138c.3251-.4335.479-.6603.3247-1.0292a1.1205 1.1205 0 0 0-.9763-.689zm-7.6557 12.2823 1.3186 1.4135-5.7864 6.1295a.6494.6494 0 0 1-.4959.26.7516.7516 0 0 1-.706-.4669c-.1119-.2682.0359-.6864.2442-.9083l.0051-.0055.0047-.0055z`},bluesky:{label:`Bluesky`,color:`#1185FE`,path:`M5.202 2.857C7.954 4.922 10.913 9.11 12 11.358c1.087-2.247 4.046-6.436 6.798-8.501C20.783 1.366 24 .213 24 3.883c0 .732-.42 6.156-.667 7.037-.856 3.061-3.978 3.842-6.755 3.37 4.854.826 6.089 3.562 3.422 6.299-5.065 5.196-7.28-1.304-7.847-2.97-.104-.305-.152-.448-.153-.327 0-.121-.05.022-.153.327-.568 1.666-2.782 8.166-7.847 2.97-2.667-2.737-1.432-5.473 3.422-6.3-2.777.473-5.899-.308-6.755-3.369C.42 10.04 0 4.615 0 3.883c0-3.67 3.217-2.517 5.202-1.026`},perplexity:{label:`Perplexity`,color:`#1FB8CD`,path:`M22.3977 7.0896h-2.3106V.0676l-7.5094 6.3542V.1577h-1.1554v6.1966L4.4904 0v7.0896H1.6023v10.3976h2.8882V24l6.932-6.3591v6.2005h1.1554v-6.0469l6.9318 6.1807v-6.4879h2.8882V7.0896zm-3.4657-4.531v4.531h-5.355l5.355-4.531zm-13.2862.0676 4.8691 4.4634H5.6458V2.6262zM2.7576 16.332V8.245h7.8476l-6.1149 6.1147v1.9723H2.7576zm2.8882 5.0404v-3.8852h.0001v-2.6488l5.7763-5.7764v7.0111l-5.7764 5.2993zm12.7086.0248-5.7766-5.1509V9.0618l5.7766 5.7766v6.5588zm2.8882-5.0652h-1.733v-1.9723L13.3948 8.245h7.8478v8.087z`},duckduckgo:{label:`DuckDuckGo`,color:`#DE5833`,path:`M12 0C5.37 0 0 5.37 0 12s5.37 12 12 12 12-5.37 12-12S18.63 0 12 0zm0 .984C18.083.984 23.016 5.916 23.016 12S18.084 23.016 12 23.016.984 18.084.984 12C.984 5.917 5.916.984 12 .984zm0 .938C6.434 1.922 1.922 6.434 1.922 12c0 4.437 2.867 8.205 6.85 9.55-.237-.82-.776-2.753-1.6-6.052-1.184-4.741-2.064-8.606 2.379-9.813.047-.011.064-.064.03-.093-.514-.467-1.382-.548-2.233-.38a.06.06 0 0 1-.07-.058c0-.011 0-.023.011-.035.205-.286.572-.507.822-.64a1.843 1.843 0 0 0-.607-.335c-.059-.022-.059-.12-.006-.144.006-.006.012-.012.024-.012 1.749-.233 3.586.292 4.49 1.448.011.011.023.017.035.023 2.968.635 3.509 4.837 3.328 5.998a9.607 9.607 0 0 0 2.346-.576c.746-.286 1.008-.222 1.101-.053.1.193-.018.513-.28.81-.496.567-1.393 1.01-2.974 1.137-.546.044-1.029.024-1.445.006-.789-.035-1.339-.059-1.633.39-.192.298-.041.998 1.487 1.22 1.09.157 2.078.047 2.798-.034.643-.07 1.073-.118 1.172.069.21.402-.996 1.207-3.066 1.224-.158 0-.315-.006-.467-.011-1.283-.065-2.227-.414-2.816-.735a.094.094 0 0 1-.035-.017c-.105-.059-.31.045-.188.267.07.134.444.478 1.004.776-.058.466.087 1.184.338 2l.088-.016c.041-.009.087-.019.134-.025.507-.082.775.012.926.175.717-.536 1.913-1.294 2.03-1.154.583.694.66 2.332.53 2.99-.004.012-.017.024-.04.035-.274.117-1.783-.296-1.783-.511-.059-1.075-.26-1.173-.493-1.225h-.156c.006.006.012.018.018.03l.052.12c.093.257.24 1.063.13 1.26-.112.199-.835.297-1.284.303-.443.006-.543-.158-.637-.408-.07-.204-.103-.675-.103-.95a.857.857 0 0 1 .012-.216c-.134.058-.333.193-.397.281-.017.262-.017.682.123 1.149.07.221-1.518 1.164-1.74.99-.227-.181-.634-1.952-.459-2.67-.187.017-.338.075-.42.191-.367.508.093 2.933.582 3.248.257.169 1.54-.553 2.176-1.095.105.145.305.158.553.158.326-.012.782-.06 1.103-.158.192.45.423.972.613 1.388 4.47-1.032 7.803-5.037 7.803-9.82 0-5.566-4.512-10.078-10.078-10.078zm1.791 5.646c-.42 0-.678.146-.795.332-.023.047.047.094.094.07.14-.075.357-.161.701-.156.328.006.516.09.67.159l.023.01c.041.017.088-.03.059-.065-.134-.18-.332-.35-.752-.35zm-5.078.198a1.24 1.24 0 0 0-.522.082c-.454.169-.67.526-.67.76 0 .051.112.057.141.011.081-.123.21-.31.617-.478.408-.17.73-.146.951-.094.047.012.083-.041.041-.07a.989.989 0 0 0-.558-.211zm5.434 1.423a.651.651 0 0 0-.655.647.652.652 0 0 0 1.307 0 .646.646 0 0 0-.652-.647zm.283.262h.008a.17.17 0 0 1 .17.17c0 .093-.077.17-.17.17a.17.17 0 0 1-.17-.17c0-.09.072-.165.162-.17zm-5.358.076a.752.752 0 0 0-.758.758c0 .42.338.758.758.758s.758-.337.758-.758a.756.756 0 0 0-.758-.758zm.328.303h.01c.112 0 .2.089.2.2 0 .11-.088.197-.2.197a.195.195 0 0 1-.197-.198c0-.107.082-.194.187-.199z`}},Qe=i.default.forwardRef(function({name:e,size:t=16,title:n,className:r,...i},o){let s=Ze[e],c=n?{role:`img`,"aria-label":n}:{"aria-hidden":!0,focusable:`false`};return s?(0,a.jsxs)(`svg`,{ref:o,xmlns:`http://www.w3.org/2000/svg`,width:t,height:t,viewBox:`0 0 24 24`,fill:s.color??`currentColor`,className:[`sakani-source-logo`,`sakani-source-logo-${e}`,r].filter(Boolean).join(` `),...c,...i,children:[n?(0,a.jsx)(`title`,{children:n}):null,(0,a.jsx)(`path`,{d:s.path})]}):null});Qe.displayName=`SourceLogo`;var $e=Object.keys(Ze),et=new Map;function tt(e){let t=et.get(e);if(!t){let n=({size:t,className:n,style:r,"aria-hidden":i})=>(0,a.jsx)(Qe,{name:e,size:t,className:n,style:r,"aria-hidden":i});n.displayName=`SourceLogo(${e})`,t=Object.assign(n,{logoName:e,brandColor:Ze[e].color}),et.set(e,t)}return t}var nt={kbd:`_kbd_1yaxs_4`},rt=({children:e,className:t})=>(0,a.jsx)(`kbd`,{className:[nt.kbd,t??``].filter(Boolean).join(` `),children:e}),it={spinner:`_spinner_14r00_3`,"spinner--sm":`_spinner--sm_14r00_12`,"spinner--md":`_spinner--md_14r00_13`,"spinner--lg":`_spinner--lg_14r00_14`,spinner__svg:`_spinner__svg_14r00_17`,"spinner-rotate":`_spinner-rotate_14r00_1`},at=({size:e=`md`,label:t=`Loading...`,className:n})=>(0,a.jsx)(`span`,{role:`status`,"aria-label":t,className:[it.spinner,it[`spinner--${e}`],n??``].filter(Boolean).join(` `),children:(0,a.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2.5,strokeLinecap:`round`,"aria-hidden":`true`,className:it.spinner__svg,children:[(0,a.jsx)(`circle`,{cx:12,cy:12,r:9,opacity:.2}),(0,a.jsx)(`path`,{d:`M12 3a9 9 0 0 1 9 9`,className:it.spinner__arc})]})}),J={sr:`_sr_1soac_5`,backdrop:`_backdrop_1soac_11`,panel:`_panel_1soac_23`,trigger:`_trigger_1soac_27`,"panel--simple":`_panel--simple_1soac_50`,"panel--preview":`_panel--preview_1soac_51`,field:`_field_1soac_54`,field__icon:`_field__icon_1soac_63`,field__content:`_field__content_1soac_64`,input:`_input_1soac_65`,field__clear:`_field__clear_1soac_81`,token:`_token_1soac_89`,token__icon:`_token__icon_1soac_103`,token__remove:`_token__remove_1soac_104`,scopes:`_scopes_1soac_112`,scopes__pill:`_scopes__pill_1soac_122`,"scopes__pill--glide":`_scopes__pill--glide_1soac_129`,scope:`_scope_1soac_112`,"scope--active":`_scope--active_1soac_151`,scope__count:`_scope__count_1soac_152`,scopes__hint:`_scopes__hint_1soac_163`,split:`_split_1soac_173`,body:`_body_1soac_175`,groups:`_groups_1soac_187`,group:`_group_1soac_187`,group__label:`_group__label_1soac_189`,group__action:`_group__action_1soac_201`,item:`_item_1soac_209`,"item--disabled":`_item--disabled_1soac_219`,item__lead:`_item__lead_1soac_220`,"item__lead--ai":`_item__lead--ai_1soac_231`,"item__lead--person":`_item__lead--person_1soac_232`,item__status:`_item__status_1soac_233`,"item__status--online":`_item__status--online_1soac_242`,item__bare:`_item__bare_1soac_243`,item__text:`_item__text_1soac_244`,item__label:`_item__label_1soac_245`,dim:`_dim_1soac_246`,match:`_match_1soac_247`,item__desc:`_item__desc_1soac_248`,item__trail:`_item__trail_1soac_249`,item__meta:`_item__meta_1soac_250`,item__keys:`_item__keys_1soac_251`,item__enter:`_item__enter_1soac_252`,message:`_message_1soac_255`,"message--error":`_message--error_1soac_263`,message__tile:`_message__tile_1soac_264`,message__text:`_message__text_1soac_272`,message__chips:`_message__chips_1soac_276`,message__actions:`_message__actions_1soac_277`,chip:`_chip_1soac_280`,chip__em:`_chip__em_1soac_293`,ghost:`_ghost_1soac_296`,ghost__track:`_ghost__track_1soac_297`,ghost__row:`_ghost__row_1soac_303`,ghost__lens:`_ghost__lens_1soac_320`,ghost__glass:`_ghost__glass_1soac_340`,ghost__zoom:`_ghost__zoom_1soac_351`,loading:`_loading_1soac_361`,skeleton:`_skeleton_1soac_362`,skeleton__lines:`_skeleton__lines_1soac_363`,answerSlot:`_answerSlot_1soac_366`,answer:`_answer_1soac_366`,"answer--glow":`_answer--glow_1soac_389`,"sakani-cmd-card-light":`_sakani-cmd-card-light_1soac_1`,"answer--glowFade":`_answer--glowFade_1soac_390`,answer__header:`_answer__header_1soac_392`,answer__mark:`_answer__mark_1soac_393`,answer__title:`_answer__title_1soac_398`,answer__status:`_answer__status_1soac_399`,answer__copy:`_answer__copy_1soac_400`,answer__body:`_answer__body_1soac_402`,answer__sources:`_answer__sources_1soac_403`,answer__sourcesLabel:`_answer__sourcesLabel_1soac_404`,answer__source:`_answer__source_1soac_403`,answer__footer:`_answer__footer_1soac_413`,answer__openInChat:`_answer__openInChat_1soac_414`,preview__stack:`_preview__stack_1soac_417`,preview__layer:`_preview__layer_1soac_418`,preview__empty:`_preview__empty_1soac_420`,preview__scroll:`_preview__scroll_1soac_421`,preview__actions:`_preview__actions_1soac_422`,preview:`_preview_1soac_417`,footer:`_footer_1soac_433`,footer__workspace:`_footer__workspace_1soac_444`,footer__dot:`_footer__dot_1soac_445`,footer__chevron:`_footer__chevron_1soac_446`,footer__hints:`_footer__hints_1soac_447`,hint:`_hint_1soac_448`,hint__keys:`_hint__keys_1soac_449`,trigger__icon:`_trigger__icon_1soac_474`,trigger__text:`_trigger__text_1soac_475`,trigger__keys:`_trigger__keys_1soac_476`,"backdrop--in":`_backdrop--in_1soac_479`,"sakani-cmd-backdrop-in":`_sakani-cmd-backdrop-in_1soac_1`,"backdrop--out":`_backdrop--out_1soac_480`,"sakani-cmd-backdrop-out":`_sakani-cmd-backdrop-out_1soac_1`,"panel--in":`_panel--in_1soac_481`,"sakani-cmd-panel-in":`_sakani-cmd-panel-in_1soac_1`,"panel--out":`_panel--out_1soac_482`,"sakani-cmd-panel-out":`_sakani-cmd-panel-out_1soac_1`,"message--empty":`_message--empty_1soac_496`,"sakani-cmd-fade":`_sakani-cmd-fade_1soac_1`,"sakani-cmd-feed":`_sakani-cmd-feed_1soac_1`,"sakani-cmd-feed-clear":`_sakani-cmd-feed-clear_1soac_1`,"sakani-cmd-lens-in":`_sakani-cmd-lens-in_1soac_1`,"sakani-cmd-lens-x":`_sakani-cmd-lens-x_1soac_1`,"sakani-cmd-lens-y":`_sakani-cmd-lens-y_1soac_1`,"sakani-cmd-rise":`_sakani-cmd-rise_1soac_1`,answer__word:`_answer__word_1soac_544`,"sakani-cmd-word-in":`_sakani-cmd-word-in_1soac_1`,"answer--stream":`_answer--stream_1soac_545`,"sakani-cmd-answer-in":`_sakani-cmd-answer-in_1soac_1`,"sakani-cmd-answer-mark":`_sakani-cmd-answer-mark_1soac_1`,"sakani-cmd-answer-text":`_sakani-cmd-answer-text_1soac_1`,"sakani-cmd-answer-fan":`_sakani-cmd-answer-fan_1soac_1`},ot=(...e)=>e.filter(Boolean).join(` `),st={page:`pages`,person:`people`,file:`files`,action:`actions`,ai:null},ct={page:n._,action:n.g,file:n._,person:n._,ai:({className:e,style:n})=>(0,a.jsx)(`span`,{className:e,style:{display:`inline-flex`,...n},children:(0,a.jsx)(t.B,{size:24,color:`currentColor`})})},lt=e=>e.scope??(e.type?st[e.type]:null);function ut(){return(0,a.jsxs)(`span`,{className:J.ghost__track,children:[(0,a.jsx)(`span`,{className:J.ghost__row}),(0,a.jsx)(`span`,{className:J.ghost__row}),(0,a.jsx)(`span`,{className:J.ghost__row}),(0,a.jsx)(`span`,{className:J.ghost__row})]})}function dt({text:e,query:t}){let n=t.trim(),r=n?e.toLowerCase().indexOf(n.toLowerCase()):-1;return r<0?(0,a.jsx)(a.Fragment,{children:e}):(0,a.jsxs)(`span`,{className:J.dim,children:[e.slice(0,r),(0,a.jsx)(`mark`,{className:J.match,children:e.slice(r,r+n.length)}),e.slice(r+n.length)]})}var ft=i.default.forwardRef(function({placeholder:e=`Search or jump to…`,shortcut:r=[`⌘`,`K`],className:i,type:o=`button`,...s},c){return(0,a.jsxs)(`button`,{ref:c,type:o,className:ot(J.trigger,i),"aria-haspopup":`dialog`,...s,children:[(0,a.jsx)(n.y,{size:16,strokeWidth:t.Pt(16),"aria-hidden":`true`,className:J.trigger__icon}),(0,a.jsx)(`span`,{className:J.trigger__text,children:e}),(0,a.jsx)(`span`,{className:J.trigger__keys,"aria-hidden":`true`,children:r.map(e=>(0,a.jsx)(rt,{children:e},e))})]})}),pt=()=>typeof window<`u`&&!!window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches,mt=({title:e=`SakaniUI AI`,status:o,children:s,stream:c,onStreamEnd:l,sources:u,onFollowUp:d,onOpenInChat:f,onCopy:p,className:m})=>{let h=typeof s==`string`?s:null,g=!!(c&&h)&&!pt(),_=i.default.useMemo(()=>h?h.split(/(\s+)/):[],[h]),[v,y]=i.default.useState(g?0:_.length),[b,x]=i.default.useState(!g),[S,C]=i.default.useState(g?`on`:`off`);i.default.useEffect(()=>{if(!g){C(`off`);return}if(C(`on`),!b)return;let e=setTimeout(()=>C(`fade`),1e3),t=setTimeout(()=>C(`off`),1700);return()=>{clearTimeout(e),clearTimeout(t)}},[g,b]);let w=i.default.useRef(l);return w.current=l,i.default.useEffect(()=>{if(!g){y(_.length),x(!0),w.current?.();return}let e=0,t,n=()=>{if(e=Math.min(_.length,e+2),y(e),e>=_.length){x(!0),w.current?.();return}let r=_[e-2]??``;t=setTimeout(n,34+Math.round(Math.random()*22)+(/[.!?]$/.test(r)?260:/[,;:]$/.test(r)?110:0))};return t=setTimeout(n,380),()=>clearTimeout(t)},[g,_]),(0,a.jsxs)(`section`,{className:ot(J.answer,g&&J[`answer--stream`],S!==`off`&&J[`answer--glow`],S===`fade`&&J[`answer--glowFade`],m),"aria-label":e,"aria-busy":!b||void 0,children:[(0,a.jsxs)(`header`,{className:J.answer__header,children:[(0,a.jsx)(`span`,{className:J.answer__mark,"aria-hidden":`true`,children:(0,a.jsx)(t.B,{size:24,color:`currentColor`})}),(0,a.jsx)(`span`,{className:J.answer__title,children:e}),o&&b&&(0,a.jsx)(`span`,{className:J.answer__status,children:o}),p&&b&&(0,a.jsx)(`button`,{type:`button`,className:J.answer__copy,onClick:p,"aria-label":`Copy the answer`,children:(0,a.jsx)(r.u,{size:16,strokeWidth:t.Pt(16),"aria-hidden":`true`})})]}),(0,a.jsx)(`div`,{className:J.answer__body,children:g?_.slice(0,v).map((e,t)=>/^\s+$/.test(e)?e:(0,a.jsx)(`span`,{className:J.answer__word,children:e},t)):s}),b&&u&&u.length>0&&(0,a.jsxs)(`div`,{className:J.answer__sources,children:[(0,a.jsx)(`span`,{className:J.answer__sourcesLabel,children:`Sources`}),u.map((e,r)=>{let i=e.icon??n._;return(0,a.jsxs)(`span`,{className:J.answer__source,style:{"--i":r},children:[(0,a.jsx)(i,{size:12,strokeWidth:t.Pt(12),"aria-hidden":`true`}),e.label]},e.label)})]}),b&&(d||f)&&(0,a.jsxs)(`footer`,{className:J.answer__footer,children:[d&&(0,a.jsx)(t.Et,{variant:`secondary`,size:`sm`,onClick:d,children:`Ask a follow-up`}),f&&(0,a.jsxs)(`span`,{className:J.answer__openInChat,children:[`Open in chat `,(0,a.jsx)(rt,{children:`⌘`}),(0,a.jsx)(rt,{children:`↵`})]})]})]})};mt.displayName=`CommandMenuAnswer`;var ht=({open:e,defaultOpen:o=!1,onOpenChange:c,hotkey:l=`k`,variant:u=`default`,query:d,defaultQuery:f=``,onQueryChange:p,placeholder:m=`Search or ask anything…`,groups:h,filter:g=!0,highlightMatches:_=!0,state:v=`ready`,onSelect:y,closeOnSelect:b=!0,scopes:x,scope:S,defaultScope:C,onScopeChange:w,filters:T,onFiltersChange:E,filterKeys:D,onAskAI:O,answer:k,renderPreview:A,previewActions:j,previewEmpty:M=`Nothing to preview for this result`,emptyTitle:N,emptyDescription:ee,suggestions:P,fallbackGroups:F,errorTitle:te=`Search is unavailable`,errorDescription:I=`We couldn’t reach the search index. Your recent items still work.`,onRetry:ne,onReport:L,retryLabel:re=`Try again`,reportLabel:ie=`Report`,workspace:ae,hideFooter:oe=!1,"aria-label":se=`Command menu`,className:ce})=>{let R=u===`simple`,z=i.default.useId(),[le,B]=i.default.useState(o),V=e??le,ue=i.default.useCallback(t=>{e===void 0&&B(t),c?.(t)},[e,c]),[H,de]=i.default.useState(f),U=d??H,fe=e=>{d===void 0&&de(e),p?.(e)},[pe,me]=i.default.useState(C??x?.[0]?.value??`all`),he=S??pe,ge=e=>{S===void 0&&me(e),w?.(e)},[_e,ve]=i.default.useState([]),ye=T??_e,be=e=>{T===void 0&&ve(e),E?.(e)},[xe,Se]=i.default.useState(!1);i.default.useEffect(()=>{V&&Se(!0)},[V]);let Ce=i.default.useRef(!1);i.default.useEffect(()=>{if(xe){Ce.current=!0;return}Ce.current&&(Ce.current=!1,d===void 0&&de(f),T===void 0&&ve([]),S===void 0&&me(C??x?.[0]?.value??`all`))},[xe]),i.default.useEffect(()=>{if(l===!1)return;let e=e=>{(e.metaKey||e.ctrlKey)&&!e.shiftKey&&!e.altKey&&e.key.toLowerCase()===l.toLowerCase()&&(e.preventDefault(),ue(!V))};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[l,V,ue]);let we=U.trim().toLowerCase(),Te=i.default.useCallback(e=>typeof g==`function`?g(e,U):!we||[e.label,e.description,...e.keywords??[]].some(e=>e&&e.toLowerCase().includes(we)),[g,U,we]),Ee=i.default.useCallback(e=>ye.every(t=>!e.tags||e.tags.includes(t.value??t.label)),[ye]),De=g!==!1,Oe=i.default.useMemo(()=>De?h.map(e=>({...e,items:e.items.filter(e=>Te(e)&&Ee(e))})).filter(e=>e.items.length):h,[De,h,Te,Ee]),ke=i.default.useMemo(()=>{let e={};if(!x)return e;let t=Oe.flatMap(e=>e.items);for(let n of x)n.count!==null&&(e[n.value]=n.count??(n.value===`all`?t.length:t.filter(e=>lt(e)===n.value).length));return e},[x,Oe]),W=i.default.useMemo(()=>!De||!x||he===`all`||R?Oe:Oe.map(e=>({...e,items:e.items.filter(e=>lt(e)===he||e.type===`ai`)})).filter(e=>e.items.length),[De,x,he,R,Oe]),Ae=W.reduce((e,t)=>e+t.items.length,0),G=!!we||ye.length>0,je=v===`ready`&&G,Me=v===`ready`&&Ae===0&&G&&!k,Ne=(Me||v===`error`)&&F,Pe=i.default.useMemo(()=>v===`loading`?[]:Ne?F:W,[v,Ne,F,W]),Fe=i.default.useMemo(()=>Pe.flatMap(e=>e.items).filter(e=>!e.disabled),[Pe]),[Ie,Le]=i.default.useState(0),K=Fe.map(e=>e.id).join(`|`);i.default.useEffect(()=>{Le(0)},[K,he]);let q=Fe[Math.min(Ie,Fe.length-1)],Re=e=>`${z}-opt-${e.id}`,ze=t.F(),Be=i.default.useRef(null),Ve=i.default.useRef(null),He=i.default.useRef(new Map),[Ue,We]=i.default.useState(null),[Ge,Ke]=i.default.useState(!1),qe=i.default.useRef(new Map);i.default.useEffect(()=>{if(!V)return;if(!q){ze.showItem(null);return}let e=qe.current.get(q.id);if(e){ze.showItem(e);let t=Be.current;Fe[0]?.id===q.id&&t?t.scrollTop=0:e.scrollIntoView?.({block:`nearest`})}},[V,xe,q?.id,K]);let[Je,Ye]=i.default.useState(null),Xe=q?.id??null;i.default.useEffect(()=>{if(!V||!A){Ye(null);return}if(Je===null){Ye(Xe);return}let e=window.setTimeout(()=>Ye(Xe),100);return()=>window.clearTimeout(e)},[V,Xe,!!A]);let Ze=Je&&Fe.find(e=>e.id===Je)||q,Qe=A&&Ze?A(Ze):null,$e=i.default.useRef(null),et=t.xt($e,V),tt=t.bt($e,V),nt=i.default.useRef(null),it=i.default.useRef(null),st=i.default.useRef(null);i.default.useEffect(()=>{if(V||!xe)return;let e=setTimeout(()=>Se(!1),220);return()=>clearTimeout(e)},[V,xe]),i.default.useEffect(()=>{if(!V)return;st.current=document.activeElement;let e=document.body.style.overflow;return document.body.style.overflow=`hidden`,()=>{document.body.style.overflow=e,st.current?.focus?.()}},[V]),i.default.useEffect(()=>{if(!V||!xe)return;let e=requestAnimationFrame(()=>it.current?.focus());return()=>cancelAnimationFrame(e)},[V,xe]);let ft=e=>{e.disabled||(e.onSelect?.(),y?.(e),b&&ue(!1))},pt=e=>{let t=Fe.length-1;if(e.key===`ArrowDown`)e.preventDefault(),Le(e=>t<0?0:Math.min(e+1,t));else if(e.key===`ArrowUp`)e.preventDefault(),Le(e=>Math.max(e-1,0));else if(e.key===`Home`&&!e.currentTarget.value)e.preventDefault(),Le(0);else if(e.key===`End`&&!e.currentTarget.value)e.preventDefault(),Le(Math.max(t,0));else if(e.key===`Enter`){if(e.preventDefault(),(e.metaKey||e.ctrlKey)&&O){O(U);return}q&&ft(q)}else if(e.key===`Escape`)e.preventDefault(),e.stopPropagation(),U?fe(``):ue(!1);else if(e.key===`Backspace`&&!U&&ye.length)e.preventDefault(),be(ye.slice(0,-1));else if(e.key===`Tab`&&x&&!R){e.preventDefault();let t=x.findIndex(e=>e.value===he);ge(x[(t+(e.shiftKey?-1:1)+x.length)%x.length].value)}else if(e.key===` `&&D?.length){let t=/(?:^|\s)([A-Za-z][\w-]*):(\S+)$/.exec(e.currentTarget.value);if(t&&D.includes(t[1].toLowerCase())){e.preventDefault();let n=t[1].toLowerCase();be([...ye,{id:`${n}:${t[2]}`,label:`${n}: ${t[2]}`,value:t[2]}]),fe(e.currentTarget.value.slice(0,t.index).trim())}}};if(i.default.useLayoutEffect(()=>{let e=Ve.current;if(!V||!xe||!e||!x||R){We(null),Ke(!1);return}let t=()=>{let e=He.current.get(he);We(e?{x:e.offsetLeft,w:e.offsetWidth}:null)};t();let n=requestAnimationFrame(()=>Ke(!0)),r=new ResizeObserver(t);return He.current.forEach(e=>r.observe(e)),()=>{cancelAnimationFrame(n),r.disconnect()}},[V,xe,he,x,R,je]),!xe)return(0,a.jsx)(`span`,{ref:$e,style:{display:`none`},"aria-hidden":`true`});let mt=!!A&&!R,ht=v===`loading`?`Searching`:v===`error`?`Search is unavailable`:Me?`No results`:`${Ae} result${Ae===1?``:`s`}`,Y=(e,n=_)=>{let r=q?.id===e.id,i=e.icon??ct[e.type??`action`],o=e.type===`person`||e.avatar;return(0,a.jsxs)(`div`,{id:Re(e),role:`option`,"aria-selected":r,"aria-disabled":e.disabled||void 0,"data-hover-item":e.disabled?`off`:``,"data-type":e.type,ref:t=>{t?qe.current.set(e.id,t):qe.current.delete(e.id)},className:ot(J.item,r&&J[`item--active`],e.disabled&&J[`item--disabled`]),onMouseMove:()=>{let t=Fe.findIndex(t=>t.id===e.id);t>=0&&t!==Ie&&Le(t)},onClick:()=>ft(e),children:[(!R||o)&&(0,a.jsx)(`span`,{className:ot(J.item__lead,e.type===`ai`&&J[`item__lead--ai`],o&&J[`item__lead--person`]),"aria-hidden":`true`,children:o?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(t.jt,{size:`sm`,src:e.avatar?.src,initials:e.avatar?.initials,alt:e.avatar?.alt??``}),e.avatar?.status&&(0,a.jsx)(`span`,{className:ot(J.item__status,J[`item__status--${e.avatar.status}`])})]}):(0,a.jsx)(i,{size:16,strokeWidth:t.Pt(16)})}),R&&!o&&(0,a.jsx)(i,{size:16,strokeWidth:t.Pt(16),className:J.item__bare,"aria-hidden":`true`}),(0,a.jsxs)(`span`,{className:J.item__text,children:[(0,a.jsx)(`span`,{className:J.item__label,children:n?(0,a.jsx)(dt,{text:e.label,query:U}):e.label}),e.description&&(0,a.jsx)(`span`,{className:J.item__desc,children:e.description})]}),(0,a.jsxs)(`span`,{className:J.item__trail,children:[e.meta&&(0,a.jsx)(`span`,{className:J.item__meta,children:e.meta}),e.shortcut&&(0,a.jsx)(`span`,{className:J.item__keys,"aria-hidden":`true`,children:e.shortcut.map(e=>(0,a.jsx)(rt,{children:e},e))}),r&&!e.shortcut&&e.type!==`ai`&&(0,a.jsx)(`span`,{className:J.item__enter,"aria-hidden":`true`,children:(0,a.jsx)(rt,{children:`↵`})})]})]},e.id)},gt=(e,t)=>(0,a.jsxs)(`div`,{role:`group`,"aria-labelledby":e.label?`${z}-g-${e.id}`:void 0,className:J.group,children:[e.label&&(0,a.jsxs)(`div`,{className:J.group__label,children:[(0,a.jsx)(`span`,{id:`${z}-g-${e.id}`,children:e.label}),e.action&&(0,a.jsx)(`button`,{type:`button`,tabIndex:-1,className:J.group__action,onClick:e.action.onClick,children:e.action.label})]}),e.items.map(e=>Y(e,t))]},e.id),_t=[{keys:[`↑`,`↓`],label:`Navigate`},{keys:[`↵`],label:`Open`},...O&&!R?[{keys:[`⌘`,`↵`],label:`Ask AI`}]:[],{keys:[`esc`],label:`Close`}];return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(`span`,{ref:$e,style:{display:`none`},"aria-hidden":`true`}),(0,s.createPortal)((0,a.jsx)(`div`,{className:ot(J.backdrop,et,V?J[`backdrop--in`]:J[`backdrop--out`]),"data-surface":tt,onMouseDown:e=>{e.target===e.currentTarget&&ue(!1)},children:(0,a.jsxs)(`div`,{ref:nt,role:`dialog`,"aria-modal":`true`,"aria-label":se,className:ot(J.panel,R&&J[`panel--simple`],mt&&J[`panel--preview`],V?J[`panel--in`]:J[`panel--out`],ce),children:[(0,a.jsxs)(`div`,{className:J.field,children:[(0,a.jsx)(n.y,{size:20,strokeWidth:t.Pt(20),className:J.field__icon,"aria-hidden":`true`}),(0,a.jsxs)(`div`,{className:J.field__content,children:[ye.map(e=>{let r=e.icon;return(0,a.jsxs)(`span`,{className:J.token,children:[r&&(0,a.jsx)(r,{size:13,strokeWidth:t.Pt(13),className:J.token__icon,"aria-hidden":`true`}),e.label,(0,a.jsx)(`button`,{type:`button`,tabIndex:-1,className:J.token__remove,onClick:()=>{be(ye.filter(t=>t.id!==e.id)),it.current?.focus()},"aria-label":`Remove ${e.label}`,children:(0,a.jsx)(n.R,{size:12,strokeWidth:t.Pt(12),"aria-hidden":`true`})})]},e.id)}),(0,a.jsx)(`input`,{ref:it,className:J.input,type:`text`,role:`combobox`,"aria-expanded":`true`,"aria-controls":`${z}-list`,"aria-activedescendant":q?Re(q):void 0,"aria-autocomplete":`list`,autoComplete:`off`,autoCorrect:`off`,spellCheck:!1,"aria-label":se,placeholder:m,value:U,onChange:e=>fe(e.target.value),onKeyDown:pt})]}),v===`loading`&&(0,a.jsx)(at,{size:`sm`,label:`Searching`}),U&&v!==`loading`&&(0,a.jsx)(`button`,{type:`button`,tabIndex:-1,className:J.field__clear,onClick:()=>{fe(``),it.current?.focus()},"aria-label":`Clear the search`,children:(0,a.jsx)(r.r,{size:16,strokeWidth:t.Pt(16),"aria-hidden":`true`})}),(0,a.jsx)(rt,{children:`esc`})]}),x&&!R&&(0,a.jsxs)(`div`,{ref:Ve,className:J.scopes,role:`tablist`,"aria-label":`Scope`,children:[(0,a.jsx)(`span`,{className:ot(J.scopes__pill,Ge&&J[`scopes__pill--glide`]),"aria-hidden":`true`,style:Ue?{transform:`translateX(${Ue.x}px)`,width:Ue.w,opacity:1}:void 0}),x.map(e=>(0,a.jsxs)(`button`,{ref:t=>{t?He.current.set(e.value,t):He.current.delete(e.value)},type:`button`,role:`tab`,tabIndex:-1,"aria-selected":e.value===he,className:ot(J.scope,e.value===he&&J[`scope--active`]),onClick:()=>{ge(e.value),it.current?.focus()},children:[e.label,je&&ke[e.value]!=null&&(0,a.jsx)(`span`,{className:J.scope__count,children:ke[e.value]})]},e.value)),(0,a.jsxs)(`span`,{className:J.scopes__hint,"aria-hidden":`true`,children:[`Switch scope `,(0,a.jsx)(rt,{children:`tab`})]})]}),(0,a.jsxs)(`div`,{className:J.split,children:[(0,a.jsxs)(`div`,{ref:e=>{Be.current=e,ze.ref(e)},...ze.groupProps,onMouseLeave:()=>{if(ze.groupProps.onMouseLeave(),q){let e=qe.current.get(q.id);e&&requestAnimationFrame(()=>ze.showItem(e))}},className:J.body,children:[ze.highlight,k&&(0,a.jsx)(`div`,{className:J.answerSlot,children:k}),v===`loading`&&(0,a.jsxs)(`div`,{className:J.loading,"aria-hidden":`true`,children:[(0,a.jsx)(`div`,{className:J.group__label,children:(0,a.jsx)(`span`,{children:`Searching…`})}),[0,1,2,3].map(e=>(0,a.jsxs)(`div`,{className:J.skeleton,children:[(0,a.jsx)(t.j,{variant:`rect`,width:28,height:28}),(0,a.jsxs)(`div`,{className:J.skeleton__lines,children:[(0,a.jsx)(t.j,{variant:`text`,width:e%2?160:220,height:10}),(0,a.jsx)(t.j,{variant:`text`,width:e%2?110:140,height:8})]})]},e))]}),v===`error`&&(0,a.jsxs)(`div`,{className:ot(J.message,J[`message--error`]),children:[(0,a.jsx)(`span`,{className:J.message__tile,"aria-hidden":`true`,children:(0,a.jsx)(n.z,{size:22,strokeWidth:t.Pt(22)})}),(0,a.jsxs)(`div`,{className:J.message__text,children:[(0,a.jsx)(`strong`,{children:te}),(0,a.jsx)(`span`,{children:I})]}),(ne||L)&&(0,a.jsxs)(`div`,{className:J.message__actions,children:[ne&&(0,a.jsx)(t.Et,{variant:`secondary`,size:`sm`,onClick:ne,children:re}),L&&(0,a.jsx)(t.Et,{variant:`ghost`,size:`sm`,onClick:L,children:ie})]})]}),Me&&(0,a.jsxs)(`div`,{className:ot(J.message,J[`message--empty`]),children:[(0,a.jsxs)(`span`,{className:J.ghost,"aria-hidden":`true`,children:[(0,a.jsx)(ut,{}),(0,a.jsx)(`span`,{className:J.ghost__lens,children:(0,a.jsx)(`span`,{className:J.ghost__glass,children:(0,a.jsx)(`span`,{className:J.ghost__zoom,children:(0,a.jsx)(ut,{})})})})]}),(0,a.jsxs)(`div`,{className:J.message__text,children:[(0,a.jsx)(`strong`,{children:N??(0,a.jsxs)(a.Fragment,{children:[`No results for “`,U.trim()||ye.map(e=>e.label).join(`, `),`”`]})}),(0,a.jsx)(`span`,{children:ee??`Check the spelling, or try a broader search.`})]}),P&&P.length>0&&(0,a.jsx)(`div`,{className:J.message__chips,children:P.map(e=>{let n=e.icon,r=e.emphasis?e.label.indexOf(e.emphasis):-1,i=n&&(0,a.jsx)(n,{size:14,strokeWidth:t.Pt(14),"aria-hidden":`true`});return(0,a.jsxs)(`button`,{type:`button`,tabIndex:-1,className:J.chip,onClick:e.onSelect,children:[e.iconPosition!==`end`&&i,(0,a.jsx)(`span`,{children:r<0?e.label:(0,a.jsxs)(a.Fragment,{children:[e.label.slice(0,r),(0,a.jsx)(`strong`,{className:J.chip__em,children:e.emphasis}),e.label.slice(r+e.emphasis.length)]})}),e.iconPosition===`end`&&i]},e.label)})})]}),(0,a.jsx)(`div`,{id:`${z}-list`,role:`listbox`,"aria-label":`Results`,"aria-busy":v===`loading`||void 0,className:J.groups,children:Pe.map(e=>gt(e,_&&!Ne))})]}),mt&&(0,a.jsxs)(`aside`,{className:J.preview,"aria-label":`Preview`,children:[(0,a.jsx)(`div`,{className:J.preview__scroll,children:(0,a.jsx)(`div`,{className:J.preview__stack,children:(0,a.jsx)(`div`,{className:J.preview__layer,children:Qe??(0,a.jsx)(`div`,{className:J.preview__empty,children:M})})})}),Qe&&j&&Ze&&(0,a.jsx)(`div`,{className:J.preview__actions,children:typeof j==`function`?j(Ze):j})]})]}),(0,a.jsx)(`div`,{role:`status`,className:J.sr,children:ht}),!oe&&(0,a.jsxs)(`div`,{className:J.footer,children:[!R&&ae&&(0,a.jsxs)(`span`,{className:J.footer__workspace,children:[(0,a.jsx)(`span`,{className:J.footer__dot,"aria-hidden":`true`}),ae,(0,a.jsx)(n.A,{size:12,strokeWidth:t.Pt(12),className:J.footer__chevron,"aria-hidden":`true`})]}),(0,a.jsx)(`span`,{className:J.footer__hints,"aria-hidden":`true`,children:_t.map(e=>(0,a.jsxs)(`span`,{className:J.hint,children:[(0,a.jsx)(`span`,{className:J.hint__keys,children:e.keys.map(e=>(0,a.jsx)(rt,{children:e},e))}),e.label]},e.label))})]})]})}),document.body)]})};ht.displayName=`CommandMenu`;var Y={field:`_field_1oby0_7`,field__label:`_field__label_1oby0_8`,field__description:`_field__description_1oby0_9`,field__error:`_field__error_1oby0_10`,control:`_control_1oby0_13`,"control--sm":`_control--sm_1oby0_25`,"control--md":`_control--md_1oby0_26`,"control--lg":`_control--lg_1oby0_27`,"control--open":`_control--open_1oby0_30`,"control--error":`_control--error_1oby0_41`,"control--disabled":`_control--disabled_1oby0_46`,control__value:`_control__value_1oby0_52`,"control__value--placeholder":`_control__value--placeholder_1oby0_62`,control__input:`_control__input_1oby0_63`,control__chevron:`_control__chevron_1oby0_83`,"control__chevron--open":`_control__chevron--open_1oby0_84`,chips:`_chips_1oby0_90`,chip:`_chip_1oby0_90`,"chip--leaving":`_chip--leaving_1oby0_102`,"sakani-combobox-chip-out":`_sakani-combobox-chip-out_1oby0_1`,chip__remove:`_chip__remove_1oby0_110`,panel:`_panel_1oby0_121`,"panel--entering":`_panel--entering_1oby0_145`,"sakani-combobox-panel-in":`_sakani-combobox-panel-in_1oby0_1`,"panel--exiting":`_panel--exiting_1oby0_146`,"sakani-combobox-panel-out":`_sakani-combobox-panel-out_1oby0_1`,panel__empty:`_panel__empty_1oby0_156`,option:`_option_1oby0_164`,"option--selected":`_option--selected_1oby0_189`,"option--disabled":`_option--disabled_1oby0_190`,optionHighlight:`_optionHighlight_1oby0_165`,"optionHighlight--animated":`_optionHighlight--animated_1oby0_221`,option__box:`_option__box_1oby0_228`,"option__box--checked":`_option__box--checked_1oby0_245`,option__icon:`_option__icon_1oby0_250`,option__label:`_option__label_1oby0_251`,option__check:`_option__check_1oby0_252`,panel__loading:`_panel__loading_1oby0_255`,panel__spinner:`_panel__spinner_1oby0_259`,"sakani-cb-spin":`_sakani-cb-spin_1oby0_1`},gt=({options:e,mode:n=`single`,size:r=`md`,label:o,description:s,error:c,placeholder:l=`Select...`,disabled:u,loading:d,value:f,onChange:p,className:m})=>{let h=i.default.useId(),[g,_]=i.default.useState(!1),[v,y]=i.default.useState(!1),[b,x]=i.default.useState(0),S=i.default.useRef(null),C=e;i.default.useEffect(()=>{g&&y(!0)},[g]);let w=i.default.useRef({}),T=i.default.useRef(null),[E,D]=i.default.useState(null),[O,k]=i.default.useState(!1);i.default.useLayoutEffect(()=>{let e=w.current[b];if(!e){D(null);return}D({top:e.offsetTop,height:e.offsetHeight})},[b,C.length]),i.default.useLayoutEffect(()=>{if(!v){k(!1);return}k(!1);let e=window.requestAnimationFrame(()=>k(!0));return()=>window.cancelAnimationFrame(e)},[v]),i.default.useEffect(()=>{if(!T.current)return;let e=new ResizeObserver(()=>{let e=w.current[b];e&&D({top:e.offsetTop,height:e.offsetHeight})});return e.observe(T.current),()=>e.disconnect()},[v]);let[A,j]=i.default.useState(n===`multi`?[]:``),M=f===void 0?A:f,N=Array.isArray(M)?M:M?[M]:[],[ee,P]=i.default.useState(()=>N.map(e=>({value:e,leaving:!1}))),F=N.join(`\0`);i.default.useLayoutEffect(()=>{P(e=>{let t=e.map(e=>({value:e.value,leaving:!N.includes(e.value)}));for(let e of N)t.some(t=>t.value===e)||t.push({value:e,leaving:!1});return t})},[F]);let te=e=>P(t=>t.filter(t=>!(t.value===e&&t.leaving))),I=!!c;i.default.useEffect(()=>{let e=e=>{S.current&&!S.current.contains(e.target)&&_(!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[]);let ne=e=>{f===void 0&&j(e),p?.(e)},L=e=>{if(!e.disabled)if(n===`multi`){let t=new Set(N);t.has(e.value)?t.delete(e.value):t.add(e.value),ne([...t])}else ne(e.value),_(!1)},re=t=>e.find(e=>e.value===t)?.label??t,ie=N.length?re(N[0]):``,ae=e=>{u||(e.key===`ArrowDown`?(e.preventDefault(),_(!0),x(e=>Math.min(e+1,C.length-1))):e.key===`ArrowUp`?(e.preventDefault(),x(e=>Math.max(e-1,0))):e.key===`Enter`?(e.preventDefault(),g&&C[b]?L(C[b]):_(!0)):e.key===`Escape`&&_(!1))},oe=u?`disabled`:I?`error`:g?`open`:`default`;return(0,a.jsxs)(`div`,{className:[Y.field,m??``].filter(Boolean).join(` `),ref:S,children:[o&&(0,a.jsx)(`label`,{htmlFor:`${h}-trigger`,className:Y.field__label,children:o}),(0,a.jsxs)(`div`,{id:`${h}-trigger`,role:`combobox`,tabIndex:u?-1:0,"aria-haspopup":`listbox`,"aria-expanded":g,"aria-controls":`${h}-panel`,"aria-invalid":I||void 0,"aria-disabled":u||void 0,"aria-activedescendant":g&&C[b]?`${h}-opt-${b}`:void 0,className:[Y.control,Y[`control--${r}`],Y[`control--${oe}`]].join(` `),onClick:()=>!u&&_(e=>!e),onKeyDown:ae,children:[n===`multi`&&ee.length>0&&(0,a.jsx)(`div`,{className:Y.chips,children:ee.map(({value:t,leaving:n})=>(0,a.jsxs)(`span`,{className:[Y.chip,n?Y[`chip--leaving`]:``].filter(Boolean).join(` `),"aria-hidden":n||void 0,onAnimationEnd:n?()=>te(t):void 0,children:[re(t),(0,a.jsx)(`button`,{type:`button`,className:Y.chip__remove,tabIndex:n?-1:void 0,onClick:n=>{n.stopPropagation(),L(e.find(e=>e.value===t))},"aria-label":`Remove ${re(t)}`,children:`×`})]},t))}),!(n===`multi`&&ee.length>0)&&(0,a.jsx)(`span`,{className:[Y.control__value,n===`single`&&ie?``:Y[`control__value--placeholder`]].filter(Boolean).join(` `),children:n===`single`&&ie?ie:l}),(0,a.jsx)(`span`,{className:[Y.control__chevron,g?Y[`control__chevron--open`]:``].join(` `),"aria-hidden":`true`,children:(0,a.jsx)(`svg`,{width:16,height:16,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:t.Pt(16),strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,a.jsx)(`path`,{d:`m6 9 6 6 6-6`})})})]}),v&&!u&&(0,a.jsx)(`div`,{ref:T,className:[Y.panel,g?Y[`panel--entering`]:Y[`panel--exiting`]].filter(Boolean).join(` `),id:`${h}-panel`,role:`listbox`,"aria-multiselectable":n===`multi`||void 0,"aria-busy":d||void 0,onAnimationEnd:()=>{g||y(!1)},children:d?(0,a.jsxs)(`div`,{className:Y.panel__loading,children:[(0,a.jsx)(`span`,{className:Y.panel__spinner,"aria-hidden":`true`}),`Loading…`]}):C.length===0?(0,a.jsx)(`div`,{className:Y.panel__empty,children:`No options available`}):(0,a.jsxs)(a.Fragment,{children:[E&&(0,a.jsx)(`span`,{"aria-hidden":`true`,className:[Y.optionHighlight,O?Y[`optionHighlight--animated`]:``].filter(Boolean).join(` `),style:{transform:`translateY(${E.top}px)`,height:E.height}}),C.map((e,r)=>{let i=N.includes(e.value);return(0,a.jsxs)(`div`,{ref:e=>{w.current[r]=e},id:`${h}-opt-${r}`,role:`option`,"aria-selected":i,className:[Y.option,i&&n===`single`?Y[`option--selected`]:``,e.disabled?Y[`option--disabled`]:``].filter(Boolean).join(` `),onMouseEnter:()=>{e.disabled||x(r)},onClick:()=>L(e),children:[n===`multi`&&(0,a.jsx)(`span`,{className:[Y.option__box,i?Y[`option__box--checked`]:``].filter(Boolean).join(` `),"aria-hidden":`true`,children:(0,a.jsx)(`svg`,{width:12,height:12,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:t.Pt(12),strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,a.jsx)(`polyline`,{points:`20 6 9 17 4 12`})})}),e.icon&&(0,a.jsx)(`span`,{className:Y.option__icon,"aria-hidden":`true`,children:e.icon}),(0,a.jsx)(`span`,{className:Y.option__label,children:e.label}),i&&n===`single`&&(0,a.jsx)(`span`,{className:Y.option__check,"aria-hidden":`true`,children:(0,a.jsx)(`svg`,{width:16,height:16,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,a.jsx)(`polyline`,{points:`20 6 9 17 4 12`})})})]},e.value)})]})}),(s||c)&&(0,a.jsx)(`span`,{className:I?Y.field__error:Y.field__description,children:c||s})]})},_t={wrap:`_wrap_1j16e_2`,dropzone:`_dropzone_1j16e_4`,"dropzone--dragging":`_dropzone--dragging_1j16e_21`,dropzone__icon:`_dropzone__icon_1j16e_23`,dropzone__label:`_dropzone__label_1j16e_28`,dropzone__link:`_dropzone__link_1j16e_29`,dropzone__hint:`_dropzone__hint_1j16e_30`,input:`_input_1j16e_32`,files:`_files_1j16e_35`,file:`_file_1j16e_35`,file__icon:`_file__icon_1j16e_45`,file__name:`_file__name_1j16e_46`,file__remove:`_file__remove_1j16e_47`},vt=({accept:e,multiple:r,hint:o=`SVG, PNG, JPG or PDF (max. 2MB)`,onFilesChange:s,className:c})=>{let l=i.default.useRef(null),[u,d]=i.default.useState(!1),[f,p]=i.default.useState([]),m=e=>{p(e),s?.(e)},h=e=>{if(!e)return;let t=Array.from(e);m(r?[...f,...t]:t.slice(0,1))},g=e=>m(f.filter((t,n)=>n!==e));return(0,a.jsxs)(`div`,{className:[_t.wrap,c??``].filter(Boolean).join(` `),children:[(0,a.jsxs)(`div`,{className:[_t.dropzone,u?_t[`dropzone--dragging`]:``].filter(Boolean).join(` `),onClick:()=>l.current?.click(),onDragOver:e=>{e.preventDefault(),d(!0)},onDragLeave:()=>d(!1),onDrop:e=>{e.preventDefault(),d(!1),h(e.dataTransfer.files)},role:`button`,tabIndex:0,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&l.current?.click()},children:[(0,a.jsx)(`span`,{className:_t.dropzone__icon,"aria-hidden":`true`,children:(0,a.jsx)(n.c,{size:22,strokeWidth:t.Pt(22)})}),(0,a.jsxs)(`span`,{className:_t.dropzone__label,children:[(0,a.jsx)(`span`,{className:_t.dropzone__link,children:`Click to upload`}),` or drag and drop`]}),(0,a.jsx)(`span`,{className:_t.dropzone__hint,children:o}),(0,a.jsx)(`input`,{ref:l,type:`file`,accept:e,multiple:r,className:_t.input,onChange:e=>h(e.target.files)})]}),f.length>0&&(0,a.jsx)(`ul`,{className:_t.files,children:f.map((e,r)=>(0,a.jsxs)(`li`,{className:_t.file,children:[(0,a.jsx)(`span`,{className:_t.file__icon,"aria-hidden":`true`,children:(0,a.jsx)(n.f,{size:16,strokeWidth:t.Pt(16)})}),(0,a.jsx)(`span`,{className:_t.file__name,children:e.name}),(0,a.jsx)(`button`,{type:`button`,className:_t.file__remove,onClick:()=>g(r),"aria-label":`Remove ${e.name}`,children:(0,a.jsx)(n.R,{size:14,strokeWidth:t.Pt(14)})})]},r))})]})},yt={chart:`_chart_1m9hd_1`,svg:`_svg_1m9hd_7`,segment:`_segment_1m9hd_12`,pctLabel:`_pctLabel_1m9hd_19`,labels:`_labels_1m9hd_27`,labelItem:`_labelItem_1m9hd_31`,tooltip:`_tooltip_1m9hd_41`,tooltip__title:`_tooltip__title_1m9hd_54`,tooltip__row:`_tooltip__row_1m9hd_60`,tooltip__dot:`_tooltip__dot_1m9hd_68`,tooltip__label:`_tooltip__label_1m9hd_74`,tooltip__value:`_tooltip__value_1m9hd_75`},bt={sm:180,md:240,lg:320,xl:420},xt=560,St=.3,Ct=.55,wt=({data:e,size:n=`md`,className:r})=>{let[o,s]=i.default.useState(null),c=i.default.useRef(null),l=t.ut(c),u=l(`--color-chart-1`)??`#ff4700`,d=l(`--color-bg-canvas`)??`#fafaf9`,f=e[0]?.value||1,p=bt[n],m=p*.66,h=m/2+8,g=xt/e.length,_=e[0]?.value||1,v=e=>e/_*m,y=e.map(e=>v(e.value));y.push(v(e[e.length-1]?.value??0)*Ct);let b=t=>e.length<=1?1:St+t/(e.length-1)*(1-St),x=o===null?null:e[o],S=o===null?0:h-y[o]/2,C=o===null?0:o*g+g/2;return(0,a.jsxs)(`div`,{ref:c,className:[yt.chart,r??``].filter(Boolean).join(` `),style:{height:p},children:[(0,a.jsx)(`svg`,{viewBox:`0 0 ${xt} ${p}`,width:`100%`,height:p,className:yt.svg,children:e.map((e,t)=>{let n=t*g,r=(t+1)*g,i=(n+r)/2,c=y[t]/2,l=y[t+1]/2,d=h-c,p=h-l,m=h+c,_=h+l,v=[`M ${n} ${d}`,`C ${i} ${d} ${i} ${p} ${r} ${p}`,`L ${r} ${_}`,`C ${i} ${_} ${i} ${m} ${n} ${m}`,`Z`].join(` `),x=o===null?b(t):t===o?1:.45,S=Math.round(e.value/f*100);return(0,a.jsxs)(`g`,{className:yt.segment,onMouseEnter:()=>s(t),onMouseLeave:()=>s(null),children:[(0,a.jsx)(`path`,{d:v,fill:u,fillOpacity:x}),(0,a.jsxs)(`text`,{x:i,y:h,textAnchor:`middle`,dominantBaseline:`middle`,className:yt.pctLabel,children:[S,`%`]})]},t)})}),(0,a.jsx)(`div`,{className:yt.labels,style:{gridTemplateColumns:`repeat(${e.length}, 1fr)`},children:e.map((e,t)=>(0,a.jsx)(`span`,{className:yt.labelItem,children:e.label},t))}),x&&(0,a.jsxs)(`div`,{className:yt.tooltip,style:{left:`${C/xt*100}%`,top:`${S/p*100}%`,background:d},children:[(0,a.jsx)(`span`,{className:yt.tooltip__title,children:x.label}),(0,a.jsxs)(`div`,{className:yt.tooltip__row,children:[(0,a.jsx)(`span`,{className:yt.tooltip__dot,style:{background:u}}),(0,a.jsx)(`span`,{className:yt.tooltip__label,children:`Share`}),(0,a.jsxs)(`span`,{className:yt.tooltip__value,children:[Math.round(x.value/f*100),`%`]})]})]})]})},Tt={chart:`_chart_1yc8b_1`,grid:`_grid_1yc8b_6`,rowLabel:`_rowLabel_1yc8b_13`,colLabel:`_colLabel_1yc8b_14`,cell:`_cell_1yc8b_29`,"chart--sm":`_chart--sm_1yc8b_38`,"chart--md":`_chart--md_1yc8b_39`,"chart--lg":`_chart--lg_1yc8b_40`,"chart--xl":`_chart--xl_1yc8b_41`,tooltip:`_tooltip_1yc8b_48`,tooltip__title:`_tooltip__title_1yc8b_70`,tooltip__row:`_tooltip__row_1yc8b_76`,tooltip__dot:`_tooltip__dot_1yc8b_84`,tooltip__label:`_tooltip__label_1yc8b_91`,tooltip__value:`_tooltip__value_1yc8b_92`},Et=.12,Dt=.45,Ot=({data:e,rowLabels:n,colLabels:r,valueLabel:o=`Value`,size:s=`md`,className:c})=>{let l=i.default.useRef(null),u=t.ut(l),d=i.default.useRef(null),[f,p]=i.default.useState(null),m=u(`--color-chart-1`)??`#ff4700`,h=Math.max(1,...e.flat()),g=e[0]?.length??0,_=(e,t,n)=>r=>{let i=r.currentTarget.getBoundingClientRect(),a=d.current?.getBoundingClientRect();a&&p({row:e,col:t,value:n,left:i.left-a.left+i.width/2,top:i.top-a.top})};return(0,a.jsx)(`div`,{ref:l,className:[Tt.chart,Tt[`chart--${s}`],c??``].filter(Boolean).join(` `),children:(0,a.jsxs)(`div`,{ref:d,className:Tt.grid,style:{gridTemplateColumns:`auto repeat(${g}, 1fr)`},children:[e.map((e,t)=>(0,a.jsxs)(i.default.Fragment,{children:[(0,a.jsx)(`span`,{className:Tt.rowLabel,children:n?.[t]??``}),e.map((e,n)=>{let r=f?.row===t&&f?.col===n,i=f!==null&&!r,o=r?1:Et+e/h*(1-Et);return(0,a.jsx)(`div`,{className:Tt.cell,style:{background:m,opacity:i?Dt:o},onMouseEnter:_(t,n,e),onMouseLeave:()=>p(null)},n)})]},t)),r&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(`span`,{}),r.map((e,t)=>(0,a.jsx)(`span`,{className:Tt.colLabel,children:e},t))]}),f&&(0,a.jsxs)(`div`,{className:Tt.tooltip,style:{left:f.left,top:f.top},children:[(0,a.jsx)(`span`,{className:Tt.tooltip__title,children:[n?.[f.row],r?.[f.col]].filter(Boolean).join(` · `)||`Row ${f.row+1}, Col ${f.col+1}`}),(0,a.jsxs)(`div`,{className:Tt.tooltip__row,children:[(0,a.jsx)(`span`,{className:Tt.tooltip__dot}),(0,a.jsx)(`span`,{className:Tt.tooltip__label,children:o}),(0,a.jsx)(`span`,{className:Tt.tooltip__value,children:f.value})]})]})]})})},kt={label:`_label_rcdks_3`,label__required:`_label__required_rcdks_17`},At=i.default.forwardRef(({required:e,children:t,className:n,...r},i)=>(0,a.jsxs)(`label`,{ref:i,className:[kt.label,n??``].filter(Boolean).join(` `),...r,children:[t,e&&(0,a.jsx)(`span`,{className:kt.label__required,"aria-hidden":`true`,children:` *`})]}));At.displayName=`Label`;var jt={item:`_item_4gag1_2`,"item--disabled":`_item--disabled_4gag1_22`,"item--selected":`_item--selected_4gag1_26`,item__leading:`_item__leading_4gag1_30`,item__text:`_item__text_4gag1_31`,item__title:`_item__title_4gag1_32`,item__description:`_item__description_4gag1_33`,item__trailing:`_item__trailing_4gag1_34`},Mt=({title:e,description:t,leading:n,trailing:r,selected:i,disabled:o,onClick:s,className:c})=>(0,a.jsxs)(`button`,{type:`button`,"data-hover-item":``,disabled:o,onClick:s,"aria-current":i?`true`:void 0,className:[jt.item,i?jt[`item--selected`]:``,o?jt[`item--disabled`]:``,c??``].filter(Boolean).join(` `),children:[n&&(0,a.jsx)(`span`,{className:jt.item__leading,children:n}),(0,a.jsxs)(`span`,{className:jt.item__text,children:[(0,a.jsx)(`span`,{className:jt.item__title,children:e}),t&&(0,a.jsx)(`span`,{className:jt.item__description,children:t})]}),r&&(0,a.jsx)(`span`,{className:jt.item__trailing,children:r})]}),X={map:`_map_1ogus_2`,tiles:`_tiles_1ogus_25`,tile:`_tile_1ogus_25`,overlay:`_overlay_1ogus_37`,controls:`_controls_1ogus_41`,group:`_group_1ogus_50`,button:`_button_1ogus_59`,divider:`_divider_1ogus_75`,attribution:`_attribution_1ogus_78`,marker:`_marker_1ogus_94`,"marker--selected":`_marker--selected_1ogus_106`,"marker--pin":`_marker--pin_1ogus_110`,pin:`_pin_1ogus_111`,pinShadow:`_pinShadow_1ogus_123`,"marker--dot":`_marker--dot_1ogus_141`,"marker--cluster":`_marker--cluster_1ogus_153`,clusterCount:`_clusterCount_1ogus_166`,popup:`_popup_1ogus_169`,"sakani-map-popup-in":`_sakani-map-popup-in_1ogus_1`,popupHeader:`_popupHeader_1ogus_190`,popupTitle:`_popupTitle_1ogus_191`,popupClose:`_popupClose_1ogus_192`,popupDescription:`_popupDescription_1ogus_207`,popupPointer:`_popupPointer_1ogus_209`},Nt=({icon:e,hovered:n,className:r,onClick:i,disabled:o,...s})=>(0,a.jsx)(`button`,{type:`button`,className:[X.button,r??``].filter(Boolean).join(` `),"data-hovered":n?``:void 0,disabled:o,onClick:i,...s,children:(0,a.jsx)(e,{size:16,strokeWidth:t.Pt(16),"aria-hidden":`true`})});Nt.displayName=`MapControlButton`;var Pt=({onZoomIn:e,onZoomOut:t,zoomInDisabled:i,zoomOutDisabled:o,zoom:s=!0,locate:c=!1,onLocate:l,className:u})=>(0,a.jsxs)(`div`,{className:[X.controls,u??``].filter(Boolean).join(` `),"data-map-ui":``,children:[s&&(0,a.jsxs)(`div`,{className:X.group,children:[(0,a.jsx)(Nt,{icon:n.O,"aria-label":`Zoom in`,disabled:i,onClick:e}),(0,a.jsx)(`span`,{className:X.divider}),(0,a.jsx)(Nt,{icon:n.k,"aria-label":`Zoom out`,disabled:o,onClick:t})]}),c&&(0,a.jsx)(`div`,{className:X.group,children:(0,a.jsx)(Nt,{icon:r.n,"aria-label":`Show my location`,onClick:l})})]});Pt.displayName=`MapControls`;var Ft=`AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH/4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADf//8AAf///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB////D//////n/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/gf/x////////wAAAAAbgAAB4AAAAAAPwAAAAAAAAAAAAAAAAAAAAAAAAAAAf//8A///////+AAAAB/ngAAAAAAAAAAH8AAAAAAAAAAAAAAAAAAAAAAAAcH3Hv/5////////8AAAAA/gAAAAAAAAAAAAD4AAAAAAAAAAAAAAAAAAAAAAcIAAQP/AH///////+AAAAAPCAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAAAAADwDAc+f+AP///////4AAAAAAAAAAAAAB4AAAAB/8AAAAAAAAAAAAAAAAAAAAAH9wc374AAAf/////8AAAAAAAAAAAAH4AAAA////AAAB/gAAAAAAAAAAAAAAAAwAAA/QAAAH/////8AAAAAAAAAAAAOAAAAP///wAAAAAAAAAAAAAAAAAAAAP8AYe+c3AAAD/////4AAAAAAAAAAAA4AAAH////++HgAOAAAAAAAAAAAAAAAfv+4+w/4gAAB/////wAAAAAAAAAAADwAHgH///////4AfgAAAAAgAAAAAAAAPf/4O4//9AAB/////wAAAAAAAAAAADwAPb////////4m//gAAAAAAAf+AAAAAA/+A8f//4AB////8gAAAAAAA/gAAAAAfv/////////////8AAAAAB///+H//H/+PeDwf+AA3////AAAAAAA//4AAAA8fv///////////////P8gAf////////A4CPz4H8AAP///wAAAAAAD///wADH/n3/////////////////8AD////////////34Z/wA///4AAAAAAAP///+M////n/////////////////+4E/////////////gD/8Af//gAAAAAAAf//5+P////f/////////////////fw/////////////6AD8YAf/wAAf8AAAA/8f+D///////////////////////AgEf///////////zw7/AAP/gAAP4AAAB/4/+f//////////////////////8AMAf//////////+DIA/gAH/gAAAAAAAH/z/////////////////////////+AAH///////////8AwgOAAD+AAAAAAAA//H/////////////////////////6AAP///////////wAA/AAAB+AAAAAAAB/+H//////////////////////nP+AAAH//z////////wAA/wAAAOAAAAAAAB//D/////////////////////+A/4AAAA/zAD///////gAA/4wAAAAAAAAAAB//Ab///////////////////+eDgAAAAABwAA///////4AA/94AAAAAAAAAYA5+A///////////////////4AAHAAAAAADcAAD//////4AAf/8AAAAAAAAA8AC+C///////////////////wAAfgAAAAAMAAAA///////wAf/8AAAAAAAAA4AO8H///////////////////AAA/gAAAABgAAAA///////8A///AAAAAAAAA8ANwH//////////////////8AAB/AAAAAEAAAAAf///////z///4AAAAAAAHOAEDv//////////////////+AAA+AAAAAAAAAABH///////x///8AAAAAAAHHAf/////////////////////6AA8AAAAAAAAAAAD///////x///8AAAAAAAGPz//////////////////////6AAwAAAAAAAAAAAD///////9///6AAAAAAAAPj//////////////////////6AAQAAAAAAAAAAAC///////////EAAAAAAAAYf//////////////////////7AAAAAAAAAAAAAABv////////+MNAAAAAAAAD///////////////////////zAAAAAAAAAAAAAAAH////////7gfgAAAAAAAf///////////////////////yAAAAAAAAAAAAAAAL/////////gCgAAAAAAAH///////////////////////iAAAAAAAAAAAAAAAP/////////pAAAAAAAAAD/////uP/x//////////////DAAAAAAAAAAAAAAAP/////////+AAAAAAAAAB//v//Gf/B/////////////+AAAAAAAAAAAAAAAAP////////8wAAAAAAAAAB//H/+AP+P/////////////8CAAAAAAAAAAAAAAAP////////wAAAAAAAAADj/jz/8AD/H/////////////4HgAAAAAAAAAAAAAAP////////gAAAAAAAAAH/4Bw/8AA/B////////////+APAAAAAAAAAAAAAAAP////////gAAAAAAAAAH/wA8f8Ph/g////////////8AAAAAAAAAAAAAAAAAP///////8AAAAAAAAAAH/gMHfJ///x///////////v4AMAAAAAAAAAAAAAAAP///////8AAAAAAAAAAH/AMCOP///h//////////+JwAMAAAAAAAAAAAAAAAH///////4AAAAAAAAAAH/AAAHH///g//////////8BwAIAAAAAAAAAAAAAAAH///////wAAAAAAAAAAH+AAYGH///w//////////+w4A4AAAAAAAAAAAAAAAD///////wAAAAAAAAAAAgf+ACBs//////////////g4D4AAAAAAAAAAAAAAAB///////wAAAAAAAAAAAj/+AAAA//////////////AYf4AAAAAAAAAAAAAAAA///////gAAAAAAAAAAB//8AAAA//////////////Ah2AAAAAAAAAAAAAAAAAP/////+AAAAAAAAAAAD//+AAAB//////////////gDwAAAAAAAAAAAAAAAAAH/////8AAAAAAAAAAAH///4GAB//////////////gDAAAAAAAAAAAAAAAAAAG/////4AAAAAAAAAAAP///8P4h//////////////wCAAAAAAAAAAAAAAAAAACf////4AAAAAAAAAAAP////v////////////////gAAAAAAAAAAAAAAAAAAABP//hgYAAAAAAAAAAAP//////3//P///////////wAAAAAAAAAAAAAAAAAAAAv//AAYAAAAAAAAAAAf//////9//H///////////wAAAAAAAAAAAAAAAAAAAB3/+AAcAAAAAAAAAAB///////4//h///////////gAAAAAAAAAAAAAAAAAAAAR/+AANAAAAAAAAAAD///////8//wH//////////AAAAAAAAAAAAAAAAAAAAAJ/+AAEAAAAAAAAAAH///////+f/0B/////////+AAAAAAAAAAAAAAAAAAAAAI/8AAAAAAAAAAAAAH///////+f/44Af///////+QAAAAAAAAAAAAAAAAAAAAAf8AAAAAAAAAAAAAP////////H//+AP///////4gAAAAAAAAAAAAAAAAAAAAAP8AAuAAAAAAAAAAP////////H///AD///v///ggAAAAAAAAAAAAAAAAAAAAAH+AABgAAAAAAAAAf////////n//+AD//4P//YAAAAAAAAAAAAAAAAAAAAAAAP+A4AYAAAAAAAAAP////////j//+AAf/4H/+AAAAAAAAAAAAAAAAgAAAAAAAH/B4ABwAAAAAAAAP////////h//8AAf/gD/8YAAAAAAAAAAAAAAAAAAAAAAAD/nwAD9AAAAAAAAP////////x//4AAf/AD/8QAAAAAAAAAAAAAAAAAAAAAAAAf/wAAAAAAAAAAAP////////4//gAAf+AD/+AAwAAAAAAAAAAAAAAAAAAAAAAH/wAAAAAAAAAAAf////////4f+AAAf8AD//AAwAAAAAAAAAAAAAAAAAAAAAAAH/AAAAAAAAAAAf////////8f8AAAPwAAP/gAwAAAAAAAAAAAAAAAAAAAAAAAD/gAAAAAAAAAAf////////+fgAAAPwAAP/gAwAAAAAAAAAAAAAAAAAAAAAAAA/AAAAAAAAAAAf/////////eAAAAHwAAP/gAMAAAAAAAAAAAAAAAAAAAAAAAAHgAAAAAAAAAAf/////////gAAAAHwAAM/gACAAAAAAAAAAAAAAAAAAAAAAAADABAAAAAAAAAP/////////gYAAADwAAEfgAJAAAAAAAAAAAAAAAAAAAAAAAADgPfOAAAAAAAH/////////34AAADwAAIOABAAAAAAAAAAAAAAAAAAAAAAAAAAyPf+AAAAAAAD//////////4AAADoAAIEACBAAAAAAAAAAAAAAAAAAAAAAAAA8///AAAAAAAB//////////wAAABIAAMAAAFAAAAAAAAAAAAAAAAAAAAAAAAAE///gAAAAAAB//////////wAAAAMAAEAAALgAAAAAAAAAAAAAAAAAAAAAAAAAf//wAAAAAAAf/////////gAAAAMAADAAMCAAAAAAAAAAAAAAAAAAAAAAAAAA////gAAAAAAP/B///////gAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAf///wAAAAAACAA///////AAAAAAAAxgA+AAAAAAAAAAAAAAAAAAAAAAAAAAAf///4AAAAAAAAAD/////+AAAAAAAAZgB4AAAAAAAAAAAAAAAAAAAAAAAAAAB////4AAAAAAAAAD/////8AAAAAAAAMwH8AAAAAAAAAAAAAAAAAAAAAAAAAAB////8AAAAAAAAAH/////4AAAAAAAAHQf8AIAAAAAAAAAAAAAAAAAAAAAAAAD////8AAAAAAAAAH/////gAAAAAAAAHgf88IAAAAAAAAAAAAAAAAAAAAAAAAD////+AAAAAAAAAH/////AAAAAAAAADwf8AAgAAAAAAAAAAAAAAAAAAAAAAAH/////4AAAAAAAAH/////AAAAAAAAABwP5wBwAAAAAAAAAAAAAAAAAAAAAAAH/////6AAAAAAAAD////+AAAAAAAAAB8P5wATwAAAAAAAAAAAAAAAAAAAAAAD//////4AAAAAAAB////8AAAAAAAAAA8AxQif+AAAAAAAAAAAAAAAAAAAAAAH//////8AAAAAAAB////4AAAAAAAAAAcAAIAD/gAAAAAAAAAAAAAAAAAAAAAH///////gAAAAAAA////4AAAAAAAAAAMAAIAI/ywAAAAAAAAAAAAAAAAAAAAH///////gAAAAAAA////4AAAAAAAAAADgAAAI/8BAAAAAAAAAAAAAAAAAAAAD///////gAAAAAAAf///4AAAAAAAAAAB+AAAA/4AIAAAAAAAAAAAAAAAAAAAB///////gAAAAAAAf///4AAAAAAAAAAAAmogAOMAAAAAAAAAAAAAAAAAAAAAB///////AAAAAAAAf///8AAAAAAAAAAAABCAAAGADAAAAAAAAAAAAAAAAAAAA///////AAAAAAAAf///8AAAAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAAf/////+AAAAAAAAP///8AAAAAAAAAAAAAAAgCAAAAAAAAAAAAAAAAAAAAAAAf/////8AAAAAAAAf///+AQAAAAAAAAAAAAB+CAAAAAAAAAAAAAAAAAAAAAAAP/////4AAAAAAAAf///+AQAAAAAAAAAAAAD8DAAAAAAAAAAAAAAAAAAAAAAAP/////4AAAAAAAA////+AwAAAAAAAAAAAA38DgAAAAAAAAAAAAAAAAAAAAAAH/////4AAAAAAAA////8BwAAAAAAAAAAAD/8DgAAAAAAAAAAAAAAAAAAAAAAB/////4AAAAAAAA////8PwAAAAAAAAAAAD//HwAABABAAAAAAAAAAAAAAAAAAf////4AAAAAAAA////wPgAAAAAAAAAAAP//3wAAAACAAAAAAAAAAAAAAAAAAP////wAAAAAAAA////APgAAAAAAAAAAAP///wAAAAAAAAAAAAAAAAAAAAAAAP////wAAAAAAAAf//+APgAAAAAAAAAAAf///4AAAAAAAAAAAAAAAAAAAAAAAP////wAAAAAAAAf//+APgAAAAAAAAAAD////+AAIAAAAAAAAAAAAAAAAAAAAP////gAAAAAAAAP//+AfAAAAAAAAAAAf////+AAEAAAAAAAAAAAAAAAAAAAAP////AAAAAAAAAP///AfAAAAAAAAAAA//////AAAAAAAAAAAAAAAAAAAAAAAP///4AAAAAAAAAP//+APAAAAAAAAAAA//////gAAAAAAAAAAAAAAAAAAAAAAf///gAAAAAAAAAH//+AOAAAAAAAAAAB//////wAAAAAAAAAAAAAAAAAAAAAAf///AAAAAAAAAAH//4AEAAAAAAAAAAA//////4AAAAAAAAAAAAAAAAAAAAAAf//+AAAAAAAAAAH//4AAAAAAAAAAAAB//////4AAAAAAAAAAAAAAAAAAAAAAf//+AAAAAAAAAAH//4AAAAAAAAAAAAA//////4AAAAAAAAAAAAAAAAAAAAAAf//+AAAAAAAAAAD//wAAAAAAAAAAAAAf/////8AAAAAAAAAAAAAAAAAAAAAAf//8AAAAAAAAAAB//gAAAAAAAAAAAAAf/////4AAAAAAAAAAAAAAAAAAAAAA///8AAAAAAAAAAB//gAAAAAAAAAAAAAf/////4AAAAAAAAAAAAAAAAAAAAAA///4AAAAAAAAAAA//AAAAAAAAAAAAAAP/////4AAAAAAAAAAAAAAAAAAAAAAf//wAAAAAAAAAAA/+AAAAAAAAAAAAAAP/AP//wAAAAAAAAAAAAAAAAAAAAAA///gAAAAAAAAAAA/4AAAAAAAAAAAAAAf8AG//gAAAAAAAAAAAAAAAAAAAAAA//3AAAAAAAAAAAAYAAAAAAAAAAAAAAAOAAF//gAAAAAAAAAAAAAAAAAAAAAB//4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//AAABAAAAAAAAAAAAAAAAAAB//4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/AAAAgAAAAAAAAAAAAAAAAAD//4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/AAAAQAAAAAAAAAAAAAAAAAB//gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABYAAAAcAAAAAAAAAAAAAAAAAB/8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAD/8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAD/gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcAAADQAAAAAAAAAAAAAAAAAD/4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcAAAHAAAAAAAAAAAAAAAAAAB/gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAOAAAAAAAAAAAAAAAAAAD/gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAH+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB4AAAAAAAAAAAAAAAAAAH+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAAAAH/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP8AAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH4BwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAABwAAAAAAAAAAAAAAAAAAH4AAAAAAB4HgAD8AAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAA//AAAD//////////wAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAf///4Af///////////AAAAAAAAAAAAAAAAAAAAAAAz4AAAAAAAAAAAAAAAPz////8B/////////////wAAAAAAAAAAAAAAAAAAAAA78AAAAAAAAAAA8/8///////wf/////////////+AAAAAAAAAAAAAAAAAAAAH9+AAAAAAAAZ////////////w////////////////4AAAAAAAAAAAAAAAAAAAB+AAAAAAAB//////////////////////////////4AAAAAAAAABmAAB8f+HB/+AAAAAAAP//////////////////////////////gAAAAAAAAP/c/oAf/////4AAAAAAAP/////////////////////////////8AAAAAAAD/////////////gAAAAAAB//////////////////////////////wAAAAAAAD////////////wAAAAAAP///////////////////////////////wAAAAAD/////////////4AAAAAAD////////////////////////////////wAAAADh/////////////AAAAB8A/////////////////////////////////+AAAAA4Af///////////gAAAH+AA///////////////////////////////+AAAAAAAAH///////////+A/A/wAA///////////////////////////////8AAAAAAAf//////////////gAAAf////////////////////////////////+AAAAAAAH///////////////h////////////////////////////////////wAAAAAAP/////////////////////////////////////////////////////gA+/gAAH/////////////////////////////////////////////////////8AAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA`,It=85.05112878,Lt=Math.PI/180,Z=(e,t,n)=>Math.min(n,Math.max(t,e)),Rt=e=>((e+180)%360+360)%360-180;function Q([e,t],n){let r=256*2**n,i=Math.sin(Z(e,-85.05112878,It)*Lt);return{x:(t+180)/360*r,y:(.5-Math.log((1+i)/(1-i))/(4*Math.PI))*r}}function zt(e,t,n){let r=256*2**n,i=Math.PI-2*Math.PI*t/r;return[Z(Math.atan(Math.sinh(i))/Lt,-85.05112878,It),Rt(e/r*360-180)]}var Bt=null;function Vt(){if(!Bt){let e=atob(Ft);Bt=new Uint8Array(e.length);for(let t=0;t<e.length;t++)Bt[t]=e.charCodeAt(t)}return Bt}function Ht(e,t){let n=Z(Math.floor(90-e),0,179),r=Z(Math.floor(Rt(t)+180),0,359),i=n*360+r;return(Vt()[i>>3]&128>>(i&7))!=0}function Ut(e){let t=[];for(let n=-90+e/2;n<90;n+=e){let r=Math.max(1,Math.round(360*Math.cos(n*Lt)/e));for(let e=0;e<r;e++){let i=-180+(e+.5)*360/r;t.push({cp:Math.cos(n*Lt),sp:Math.sin(n*Lt),lam:i*Lt,land:Ht(n,i)})}}return t}function Wt(e,t){let n=e*Lt,r=Math.cos(t*Lt),i=Math.sin(t*Lt);return(e,t,a)=>{let o=a-n,s=Math.cos(o);return{x:e*Math.sin(o),y:r*t-i*e*s,z:i*t+r*e*s}}}var Gt=([e,t])=>({cp:Math.cos(e*Lt),sp:Math.sin(e*Lt),lam:t*Lt});function Kt(e,t,n=64,r=.12){let i=e=>{let t=Gt(e);return[t.cp*Math.cos(t.lam),t.cp*Math.sin(t.lam),t.sp]},a=i(e),o=i(t),s=Math.acos(Z(a[0]*o[0]+a[1]*o[1]+a[2]*o[2],-1,1)),c=Math.sin(s)||1e-6,l=[];for(let e=0;e<=n;e++){let t=e/n,i=Math.sin((1-t)*s)/c,u=Math.sin(t*s)/c,d=i*a[0]+u*o[0],f=i*a[1]+u*o[1],p=i*a[2]+u*o[2],m=Math.asin(Z(p/(Math.hypot(d,f,p)||1),-1,1));l.push({cp:Math.cos(m),sp:Math.sin(m),lam:Math.atan2(f,d),h:1+r*Math.sin(Math.PI*t)*Math.min(1,s/1.2)})}return l}var qt=i.default.createContext(null);function Jt(){let e=i.default.useContext(qt);if(!e)throw Error(`MapMarker, MapPopup and MapClusterLayer must be rendered inside <Map>.`);return e}var Yt=()=>typeof window<`u`&&window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches;function Xt(e,t=0){let[n,r]=e,[a,o]=i.default.useState(e),s=i.default.useRef(e);return i.default.useEffect(()=>{if(!t||Yt()){s.current=[n,r],o([n,r]);return}let e=s.current;if(e[0]===n&&e[1]===r)return;let i=(r-e[1]+540)%360-180,a=performance.now(),c=0,l=u=>{let d=Math.min(1,(u-a)/t),f=1-(1-d)**3,p=d===1?[n,r]:[e[0]+(n-e[0])*f,e[1]+i*f];s.current=p,o(p),d<1&&(c=requestAnimationFrame(l))};return c=requestAnimationFrame(l),()=>cancelAnimationFrame(c)},[n,r,t]),t&&!Yt()?a:e}var Zt=`M16 0C7.163 0 0 7.163 0 16c0 11 16 24 16 24s16-13 16-24C32 7.163 24.837 0 16 0Z`,Qt=({position:e,variant:t=`pin`,count:n,selected:r,hovered:i,glide:o,label:s,onClick:c,className:l})=>{let{project:u}=Jt(),d=u(Xt(e,o));if(!d)return null;let f=[X.marker,X[`marker--${t}`],r?X[`marker--selected`]:``,l??``].filter(Boolean).join(` `),p=t===`pin`?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(`span`,{className:X.pinShadow}),(0,a.jsxs)(`svg`,{className:X.pin,viewBox:`-1 -1 34 42`,"aria-hidden":`true`,children:[(0,a.jsx)(`path`,{d:Zt}),(0,a.jsx)(`circle`,{cx:`16`,cy:`16`,r:`6`})]})]}):t===`cluster`?(0,a.jsx)(`span`,{className:X.clusterCount,children:n}):null,m={left:d.x,top:d.y},h=i?``:void 0,g=s??(t===`cluster`&&n!=null?`${n} places`:void 0);return c?(0,a.jsx)(`button`,{type:`button`,className:f,style:m,"aria-label":g,"aria-pressed":r,"data-hovered":h,"data-map-ui":``,onClick:c,children:p}):(0,a.jsx)(`span`,{className:f,style:m,"data-hovered":h,role:g?`img`:void 0,"aria-label":g,"aria-hidden":!g||void 0,children:p})};Qt.displayName=`MapMarker`;var $t=`https://tile.openstreetmap.org/{z}/{x}/{y}.png`,en=(0,a.jsxs)(a.Fragment,{children:[`© `,(0,a.jsx)(`a`,{href:`https://www.openstreetmap.org/copyright`,target:`_blank`,rel:`noreferrer`,children:`OpenStreetMap`}),` contributors`]}),tn=260,nn=()=>typeof window<`u`&&window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches,rn=({center:e=[51.505,-.09],zoom:t=12,minZoom:n=2,maxZoom:r=18,onViewChange:o,tileUrl:s=$t,tileUrlDark:c,theme:l=`auto`,attribution:u=en,controls:d=!0,locate:f=!1,onLocate:p,onLocateError:m,height:h=400,"aria-label":g=`Map`,className:_,children:v})=>{let y=i.default.useRef(null),[b,x]=i.default.useState({w:0,h:0}),[S,C]=i.default.useState({center:e,zoom:Z(t,n,r)}),w=i.default.useRef(S);w.current=S;let T=i.default.useRef(0),[E,D]=i.default.useState(null),[O,k]=i.default.useState(l===`dark`);i.default.useLayoutEffect(()=>{let e=y.current;if(!e)return;let t=()=>k(l===`dark`||!!e.closest(`.dark`));t();let n=new MutationObserver(t);for(let t=e;t;t=t.parentElement)n.observe(t,{attributes:!0,attributeFilter:[`class`]});return()=>n.disconnect()},[l]);let A=O&&!!c,j=A?c:s;i.default.useLayoutEffect(()=>{let e=y.current;if(!e)return;let t=new ResizeObserver(([e])=>x({w:e.contentRect.width,h:e.contentRect.height}));return t.observe(e),()=>t.disconnect()},[]);let M=i.default.useCallback(e=>{let t={center:e.center,zoom:Z(e.zoom,n,r)};w.current=t,C(t),o?.(t)},[n,r,o]),N=i.default.useCallback((e,t)=>{cancelAnimationFrame(T.current);let i=w.current,a={center:e.center,zoom:Z(e.zoom,n,r)};if(nn()){M(a);return}let o=performance.now(),s=e=>{let n=Math.min(1,(e-o)/tn),r=1-(1-n)**3,c=i.zoom+(a.zoom-i.zoom)*r,l;if(t)l=F(P(t,i),t,c);else{let e=Q(i.center,c),t=Q(a.center,c);l=zt(e.x+(t.x-e.x)*r,e.y+(t.y-e.y)*r,c)}M({center:l,zoom:c}),n<1&&(T.current=requestAnimationFrame(s))};T.current=requestAnimationFrame(s)},[M,n,r,b.w,b.h]),ee=i.default.useRef(!0);i.default.useEffect(()=>{if(ee.current){ee.current=!1;return}N({center:e,zoom:t})},[e[0],e[1],t]),i.default.useEffect(()=>()=>cancelAnimationFrame(T.current),[]);let P=(e,t)=>{let n=Q(t.center,t.zoom);return zt(n.x+e.x-b.w/2,n.y+e.y-b.h/2,t.zoom)},F=(e,t,n)=>{let r=Q(e,n);return zt(r.x-(t.x-b.w/2),r.y-(t.y-b.h/2),n)},te=i.default.useRef(null),I=(e,t)=>{let n=w.current,r=Q(n.center,n.zoom);M({center:zt(r.x-e,r.y-t,n.zoom),zoom:n.zoom})},ne=e=>{e.button!==0||e.target.closest(`[data-map-ui]`)||(cancelAnimationFrame(T.current),te.current={id:e.pointerId,x:e.clientX,y:e.clientY,moved:!1,samples:[{x:e.clientX,y:e.clientY,t:performance.now()}]})},L=e=>{let t=te.current;if(!t||t.id!==e.pointerId)return;let n=e.clientX-t.x,r=e.clientY-t.y;!t.moved&&Math.hypot(n,r)<3||(t.moved||(t.moved=!0,y.current?.setPointerCapture(e.pointerId)),t.x=e.clientX,t.y=e.clientY,t.samples.push({x:e.clientX,y:e.clientY,t:performance.now()}),t.samples.length>5&&t.samples.shift(),I(n,r))},re=()=>{let e=te.current;if(te.current=null,!e||!e.moved||nn())return;let t=e.samples[0],n=e.samples[e.samples.length-1],r=Math.max(1,n.t-t.t);if(performance.now()-n.t>80)return;let i=(n.x-t.x)/r*16,a=(n.y-t.y)/r*16,o=()=>{i*=.9,a*=.9,!(Math.hypot(i,a)<.3)&&(I(i,a),T.current=requestAnimationFrame(o))};T.current=requestAnimationFrame(o)};i.default.useEffect(()=>{let e=y.current;if(!e)return;let t=t=>{t.preventDefault(),cancelAnimationFrame(T.current);let i=e.getBoundingClientRect(),a={x:t.clientX-i.left,y:t.clientY-i.top},o=w.current,s=Z(-t.deltaY*(t.ctrlKey?.01:.002),-.5,.5),c=Z(o.zoom+s,n,r),l=Q(o.center,o.zoom),u=Q(zt(l.x+a.x-i.width/2,l.y+a.y-i.height/2,o.zoom),c);M({center:zt(u.x-(a.x-i.width/2),u.y-(a.y-i.height/2),c),zoom:c})};return e.addEventListener(`wheel`,t,{passive:!1}),()=>e.removeEventListener(`wheel`,t)},[M,n,r]);let ie=e=>{if(e.target.closest(`[data-map-ui]`))return;let t=y.current.getBoundingClientRect();N({center:S.center,zoom:Math.round(S.zoom)+1},{x:e.clientX-t.left,y:e.clientY-t.top})},ae=e=>{if(e.target!==e.currentTarget)return;let t=e.key;if(t===`ArrowLeft`)I(80,0);else if(t===`ArrowRight`)I(-80,0);else if(t===`ArrowUp`)I(0,80);else if(t===`ArrowDown`)I(0,-80);else if(t===`+`||t===`=`)N({center:S.center,zoom:Math.round(S.zoom)+1});else if(t===`-`||t===`_`)N({center:S.center,zoom:Math.round(S.zoom)-1});else return;e.preventDefault()},oe=()=>{if(!navigator.geolocation){m?.(Error(`Geolocation is not supported in this browser.`));return}navigator.geolocation.getCurrentPosition(e=>{let t=[e.coords.latitude,e.coords.longitude];D(t),N({center:t,zoom:Math.max(S.zoom,14)}),p?.(t)},e=>m?.(e))},se=i.default.useRef(b);se.current=b;let ce=i.default.useRef(N);ce.current=N;let R=i.default.useCallback((e,t)=>{ce.current({center:e,zoom:t??w.current.zoom})},[]),z=i.default.useCallback((e,t=48)=>{if(!e.length)return;let{w:n,h:r}=se.current,i=e.map(e=>e[0]),a=e.map(t=>e[0][1]+((t[1]-e[0][1]+540)%360-180)),[o,s,c,l]=[Math.min(...i),Math.max(...i),Math.min(...a),Math.max(...a)],u=[(o+s)/2,Rt((c+l)/2)],d=Q([s,c],0),f=Q([o,l],0),p=Math.max(1e-6,Math.abs(f.x-d.x)),m=Math.max(1e-6,Math.abs(f.y-d.y)),h=Math.min(Math.log2(Math.max(1,n-t*2)/p),Math.log2(Math.max(1,r-t*2)/m));ce.current({center:u,zoom:e.length===1||!Number.isFinite(h)?Math.max(w.current.zoom,14):Math.floor(h*4)/4})},[]),le=Z(Math.round(S.zoom),0,r),B=2**(S.zoom-le),V=[];if(b.w&&b.h){let e=Q(S.center,le),t={x:b.w/2/B,y:b.h/2/B},n=2**le,r=Math.floor((e.x-t.x)/256),i=Math.floor((e.x+t.x)/256),a=Math.max(0,Math.floor((e.y-t.y)/256)),o=Math.min(n-1,Math.floor((e.y+t.y)/256));for(let t=a;t<=o;t++)for(let a=r;a<=i;a++){let r=(a%n+n)%n;V.push({key:`${le}/${a}/${t}`,src:j.replace(`{z}`,String(le)).replace(`{x}`,String(r)).replace(`{y}`,String(t)),left:(a*256-e.x)*B+b.w/2,top:(t*256-e.y)*B+b.h/2})}}let ue=256*B,H=i.default.useMemo(()=>{let e=Q(S.center,S.zoom),t=256*2**S.zoom;return{zoom:S.zoom,flyTo:R,fitBounds:z,maxZoom:r,project:n=>{if(!b.w||!b.h)return null;let r=Q(n,S.zoom),i=r.x-e.x;i-=Math.round(i/t)*t;let a=i+b.w/2,o=r.y-e.y+b.h/2;return a<-200||o<-200||a>b.w+200||o>b.h+200?null:{x:a,y:o}}}},[S,b.w,b.h,R,z,r]);return(0,a.jsxs)(`div`,{ref:y,className:[X.map,l===`dark`?`dark`:``,_??``].filter(Boolean).join(` `),"data-own-dark-tiles":A?``:void 0,style:{height:h},role:`region`,"aria-roledescription":`map`,"aria-label":g,tabIndex:0,onPointerDown:ne,onPointerMove:L,onPointerUp:re,onPointerCancel:re,onDoubleClick:ie,onKeyDown:ae,children:[(0,a.jsx)(`div`,{className:X.tiles,"aria-hidden":`true`,children:V.map(e=>(0,a.jsx)(`img`,{src:e.src,alt:``,draggable:!1,className:X.tile,style:{left:e.left,top:e.top,width:ue+.5,height:ue+.5},onLoad:e=>e.currentTarget.setAttribute(`data-loaded`,``)},e.key))}),(0,a.jsx)(qt.Provider,{value:H,children:(0,a.jsxs)(`div`,{className:X.overlay,children:[v,E&&(0,a.jsx)(Qt,{position:E,variant:`dot`,label:`Your location`})]})}),(d||f)&&(0,a.jsx)(Pt,{zoom:d,locate:f,onLocate:oe,zoomInDisabled:S.zoom>=r,zoomOutDisabled:S.zoom<=n,onZoomIn:()=>N({center:S.center,zoom:Math.round(S.zoom)+1}),onZoomOut:()=>N({center:S.center,zoom:Math.round(S.zoom)-1})}),u!=null&&(0,a.jsx)(`div`,{className:X.attribution,"data-map-ui":``,children:u})]})};rn.displayName=`Map`;var an=({position:e,title:r,description:i,onClose:o,offset:s=48,pointer:c=!0,glide:l,children:u,className:d})=>{let{project:f}=Jt(),p=f(Xt(e,l));return p?(0,a.jsxs)(`div`,{className:[X.popup,d??``].filter(Boolean).join(` `),style:{left:p.x,top:p.y-s},role:`dialog`,"aria-label":typeof r==`string`?r:void 0,"data-map-ui":``,onKeyDown:e=>{e.key===`Escape`&&o&&(e.stopPropagation(),o())},children:[(r||o)&&(0,a.jsxs)(`div`,{className:X.popupHeader,children:[r&&(0,a.jsx)(`div`,{className:X.popupTitle,children:r}),o&&(0,a.jsx)(`button`,{type:`button`,className:X.popupClose,"aria-label":`Close`,onClick:o,children:(0,a.jsx)(n.R,{size:14,strokeWidth:t.Pt(14),"aria-hidden":`true`})})]}),i&&(0,a.jsx)(`div`,{className:X.popupDescription,children:i}),u,c&&(0,a.jsx)(`span`,{className:X.popupPointer,"aria-hidden":`true`})]}):null};an.displayName=`MapPopup`;var on={globe:`_globe_w22uh_2`,"globe--draggable":`_globe--draggable_w22uh_10`,canvas:`_canvas_w22uh_12`,srOnly:`_srOnly_w22uh_15`},sn=8,cn=()=>typeof window<`u`&&window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches;function ln(e,t){t.fillStyle=`#000`,t.fillStyle=e;let n=String(t.fillStyle);if(n.startsWith(`#`))return[1,3,5].map(e=>parseInt(n.slice(e,e+2),16)).join(`,`);let r=n.match(/[\d.]+/g);return r?r.slice(0,3).join(`,`):`20,20,20`}var un=({variant:e=`land`,center:n=[15,90],markers:r=[],arcs:o=[],autoRotate:s=!0,rotationSpeed:c=6,draggable:l=!0,atmosphere:u=!0,dotSpacing:d=1.3,theme:f=`auto`,onMarkerClick:p,onMarkerHover:m,"aria-label":h=`Globe`,className:g})=>{let _=i.default.useRef(null),v=i.default.useRef(null),y=t.wt(),b=i.default.useMemo(()=>Ut(d),[d]),x=i.default.useMemo(()=>o.map(e=>Kt(e.from,e.to)),[o]),S=i.default.useRef({rot:n[1],tilt:Z(n[0],-60,60),vr:0,vt:0,dragging:!1,idleUntil:0}),C=i.default.useRef({rgb:`20,20,20`,surface:`255,255,255`,border:`230,230,230`,font:`sans-serif`,visible:!0,size:0,hits:[]}),w=i.default.useRef({markers:r,arcPts:x,variant:e,atmosphere:u,autoRotate:s,rotationSpeed:c});w.current={markers:r,arcPts:x,variant:e,atmosphere:u,autoRotate:s,rotationSpeed:c};let T=i.default.useRef({onMarkerClick:p,onMarkerHover:m});T.current={onMarkerClick:p,onMarkerHover:m};let E=i.default.useRef(null),D=e=>{E.current!==e&&(E.current=e,_.current&&(_.current.style.cursor=e==null?``:`pointer`),T.current.onMarkerHover?.(e))};i.default.useEffect(()=>{let e=v.current;if(!e)return;let t=document.createElement(`canvas`).getContext(`2d`);if(!t)return;let n=getComputedStyle(e),r=(e,r)=>ln(n.getPropertyValue(e).trim()||r,t);C.current.rgb=ln(n.getPropertyValue(`--color-fg-default`).trim()||n.color,t),C.current.surface=r(`--color-bg-surface`,`#ffffff`),C.current.border=r(`--color-border-subtle`,`#e5e5e5`),C.current.font=n.fontFamily||`sans-serif`},[y,f]),i.default.useEffect(()=>{let e=v.current,t=_.current;if(!e||!t)return;let n=e.getContext(`2d`);if(!n)return;let r=0,i=performance.now(),a=i,o=()=>{let r=t.clientWidth,i=Math.min(2,window.devicePixelRatio||1);C.current.size=r,e.width=Math.round(r*i),e.height=Math.round(r*i),e.style.width=`${r}px`,e.style.height=`${r}px`,n.setTransform(i,0,0,i,0,0)},s=new ResizeObserver(o);s.observe(t),o();let c=new IntersectionObserver(([e])=>{C.current.visible=e.isIntersecting});c.observe(t);let l=e=>{let t=C.current.size;if(!t)return;let r=w.current,i=S.current,o=C.current.rgb,s=t*.42,c=t/2,l=t/2,u=t/480,d=Wt(i.rot,i.tilt);if(n.clearRect(0,0,t,t),r.atmosphere){let e=n.createRadialGradient(c,l,s*.9,c,l,s*1.16);e.addColorStop(0,`rgba(${o},0.11)`),e.addColorStop(1,`rgba(${o},0)`),n.fillStyle=e,n.beginPath(),n.arc(c,l,s*1.16,0,Math.PI*2),n.fill()}let f=n.createRadialGradient(c-s*.35,l-s*.4,s*.1,c,l,s);f.addColorStop(0,`rgba(${o},0.07)`),f.addColorStop(1,`rgba(${o},0.02)`),n.fillStyle=f,n.beginPath(),n.arc(c,l,s,0,Math.PI*2),n.fill();let p=Array.from({length:sn},()=>new Path2D),m=new Path2D,h=r.variant===`ocean`;for(let e of b){let t=d(e.cp,e.sp,e.lam);if(t.z<=0)continue;let n=t.z**.55,r=c+s*t.x,i=l-s*t.y;if(h?!e.land:e.land){let e=1.15*u*(.6+.4*n),t=p[Math.min(sn-1,Math.floor(n*sn))];t.moveTo(r+e,i),t.arc(r,i,e,0,Math.PI*2)}else{let e=.8*u*(.6+.4*n);m.moveTo(r+e,i),m.arc(r,i,e,0,Math.PI*2)}}n.fillStyle=`rgba(${o},0.12)`,n.fill(m),p.forEach((e,t)=>{n.fillStyle=`rgba(${o},${.22+.78*((t+.5)/sn)})`,n.fill(e)}),n.lineCap=`round`;let g=(e-a)/1e3;r.arcPts.forEach((e,t)=>{let r=(g/2.6+t*.37)%1*(e.length-1);for(let t=1;t<e.length;t++){let i=e[t-1],a=e[t],f=d(i.cp,i.sp,i.lam),p=d(a.cp,a.sp,a.lam),m=Math.min(f.z,p.z),h=p.x*a.h,g=p.y*a.h;if(m<.04||Math.hypot(h,g)>.995&&m<.35)continue;let _=Math.min(1,(m-.04)/.25),v=Math.max(0,1-Math.abs(t-r)/6);n.strokeStyle=`rgba(${o},${(.28+.4*Math.sin(Math.PI*t/e.length)+.5*v)*_})`,n.lineWidth=(1.1+1.1*v)*u,n.beginPath(),n.moveTo(c+s*f.x*i.h,l-s*f.y*i.h),n.lineTo(c+s*h,l-s*g),n.stroke()}});let _=[],v=[];r.markers.forEach((e,t)=>{let r=Gt(e.position),i=d(r.cp,r.sp,r.lam);if(i.z<=.06)return;let a=c+s*i.x,f=l-s*i.y,p=Math.min(1,(i.z-.06)/.2);_.push({i:t,x:a,y:f});let m=!!e.selected,h=!!e.hovered||E.current===t;if((m||h)&&(n.fillStyle=`rgba(${o},${(m?.2:.14)*p})`,n.beginPath(),n.arc(a,f,(m?15:11)*u,0,Math.PI*2),n.fill(),e.label&&v.push({x:a,y:f,label:e.label,k:p})),e.active){let e=g%2/2;n.strokeStyle=`rgba(${o},${.5*(1-e)*p})`,n.lineWidth=1.5*u,n.beginPath(),n.arc(a,f,(5+14*e)*u,0,Math.PI*2),n.stroke(),n.fillStyle=`rgba(${o},${.16*p})`,n.beginPath(),n.arc(a,f,9*u,0,Math.PI*2),n.fill()}n.globalCompositeOperation=`destination-out`,n.beginPath(),n.arc(a,f,(m?7:h?6.5:5.5)*u,0,Math.PI*2),n.fill(),n.globalCompositeOperation=`source-over`,n.fillStyle=`rgba(${o},${p})`,n.beginPath(),n.arc(a,f,(m?5:h?4.5:3.5)*u,0,Math.PI*2),n.fill()}),C.current.hits=_;for(let e of v){n.font=`500 ${12*u}px ${C.current.font}`;let r=n.measureText(e.label).width+16*u,i=24*u,a=16*u,s=Z(e.x-r/2,4*u,t-r-4*u),c=e.y-a-i<4*u?e.y+a:e.y-a-i;n.save(),n.globalAlpha=e.k,n.shadowColor=`rgba(0,0,0,0.18)`,n.shadowBlur=8*u,n.shadowOffsetY=2*u,n.fillStyle=`rgb(${C.current.surface})`,n.beginPath(),n.roundRect?n.roundRect(s,c,r,i,6*u):n.rect(s,c,r,i),n.fill(),n.shadowColor=`transparent`,n.strokeStyle=`rgb(${C.current.border})`,n.lineWidth=u,n.stroke(),n.fillStyle=`rgb(${o})`,n.textBaseline=`middle`,n.fillText(e.label,s+8*u,c+i/2+u*.5),n.restore()}},u=e=>{let t=Math.min(.05,(e-i)/1e3);i=e;let n=S.current,a=w.current;n.dragging||(n.rot+=n.vr*t,n.tilt=Z(n.tilt+n.vt*t,-60,60),n.vr*=.04**t,n.vt*=.04**t,a.autoRotate&&!cn()&&e>n.idleUntil&&E.current==null&&(n.rot+=a.rotationSpeed*t)),C.current.visible&&l(e),r=requestAnimationFrame(u)};return r=requestAnimationFrame(u),()=>{cancelAnimationFrame(r),s.disconnect(),c.disconnect()}},[b]);let O=(e,t)=>{let n=_.current?.getBoundingClientRect();if(!n)return null;let r=e-n.left,i=t-n.top,a=Math.max(10,C.current.size/480*12),o=null,s=a;for(let e of C.current.hits){let t=Math.hypot(e.x-r,e.y-i);t<=s&&(o=e.i,s=t)}return o},k=i.default.useRef(null),A=i.default.useRef(null),j=e=>{let t=O(e.clientX,e.clientY);A.current={x:e.clientX,y:e.clientY,hit:t},D(t),l&&(e.currentTarget.setPointerCapture(e.pointerId),k.current={x:e.clientX,y:e.clientY,t:performance.now()},S.current.dragging=!0,S.current.vr=0,S.current.vt=0)},M=e=>{let t=A.current;t&&Math.hypot(e.clientX-t.x,e.clientY-t.y)>4&&(t.hit=null);let n=k.current;if(!n){t||D(O(e.clientX,e.clientY));return}let r=S.current,i=180/Math.max(1,C.current.size*.84*Math.PI)*1.6,a=e.clientX-n.x,o=e.clientY-n.y,s=Math.max(1,performance.now()-n.t)/1e3;r.rot-=a*i,r.tilt=Z(r.tilt+o*i,-60,60),r.vr=-a*i/s,r.vt=o*i/s,n.x=e.clientX,n.y=e.clientY,n.t=performance.now()},N=e=>{let t=A.current;if(A.current=null,t&&t.hit!=null&&e.type===`pointerup`&&T.current.onMarkerClick?.(t.hit,w.current.markers[t.hit]),!k.current)return;k.current=null;let n=S.current;n.dragging=!1,n.idleUntil=performance.now()+1500,cn()&&(n.vr=0,n.vt=0)};return(0,a.jsxs)(`div`,{ref:_,className:[on.globe,l?on[`globe--draggable`]:``,f===`dark`?`dark`:``,g??``].filter(Boolean).join(` `),role:p?`group`:`img`,"aria-label":h,onPointerDown:j,onPointerMove:M,onPointerUp:N,onPointerCancel:N,onPointerLeave:()=>{A.current||D(null)},children:[(0,a.jsx)(`canvas`,{ref:v,className:on.canvas,"aria-hidden":p?!0:void 0}),p&&r.map((e,t)=>e.label&&(0,a.jsx)(`button`,{type:`button`,className:on.srOnly,onFocus:()=>D(t),onBlur:()=>D(null),onClick:()=>p(t,e),children:e.label},t))]})};un.displayName=`MapGlobe`;function dn({points:e,renderPoint:t,radius:n=56,clusterMaxZoom:r=16,onClusterClick:o}){let{zoom:s,project:c,fitBounds:l,flyTo:u,maxZoom:d}=Jt(),f=Math.floor(s),p=f<r,m=i.default.useMemo(()=>{if(!p)return e.map(e=>({key:String(e.id),position:e.position,points:[e]}));let t=new Map;for(let r of e){let e=Q(r.position,f),i=`${Math.floor(e.x/n)}:${Math.floor(e.y/n)}`,a=t.get(i);a?a.push(r):t.set(i,[r])}let r=n*.8,i=Array.from(t,([e,t])=>{let n=t.reduce((e,t)=>e+t.position[0],0)/t.length,r=t.reduce((e,t)=>e+t.position[1],0)/t.length;return{k:e,pts:t,lat:n,lng:r,...Q([n,r],f)}}).sort((e,t)=>t.pts.length-e.pts.length),a=[],o=new Map;for(let e of i){let t=Math.floor(e.x/r),n=Math.floor(e.y/r),i;for(let a=-1;a<=1&&!i;a++)for(let s=-1;s<=1&&!i;s++)i=o.get(`${t+a}:${n+s}`)?.find(t=>Math.hypot(t.x-e.x,t.y-e.y)<r);if(i){let t=i.pts.length+e.pts.length;i.lat=(i.lat*i.pts.length+e.lat*e.pts.length)/t,i.lng=(i.lng*i.pts.length+e.lng*e.pts.length)/t,i.pts=i.pts.concat(e.pts),Object.assign(i,Q([i.lat,i.lng],f))}else{a.push(e);let r=`${t}:${n}`;o.set(r,[...o.get(r)??[],e])}}return a.map(e=>({key:e.pts.length===1?String(e.pts[0].id):`c${f}:${e.k}`,position:e.pts.length===1?e.pts[0].position:[e.lat,e.lng],points:e.pts}))},[e,f,n,p]),h=e=>{let t=e.points.map(e=>e.position);t.every(e=>e[0]===t[0][0]&&e[1]===t[0][1])?u(e.position,Math.min(d,f+3)):l(t),o?.(e.points)};return(0,a.jsx)(a.Fragment,{children:m.map(e=>c(e.position)?e.points.length===1?(0,a.jsx)(i.default.Fragment,{children:t(e.points[0])},e.key):(0,a.jsx)(Qt,{variant:`cluster`,position:e.position,count:e.points.length,onClick:()=>h(e)},e.key):null)})}dn.displayName=`MapClusterLayer`;var fn={chart:`_chart_cc7lx_2`,center:`_center_cc7lx_30`,center__value:`_center__value_cc7lx_39`,center__caption:`_center__caption_cc7lx_40`},pn={sm:{h:180,outer:72},md:{h:220,outer:90},lg:{h:280,outer:116},xl:{h:340,outer:142}},mn=new Set([`donut`,`donut-active`,`donut-with-text`,`interactive`]),hn=new Set([`donut-active`]),gn=new Set([`interactive`]),_n=new Set([`donut-with-text`]),vn=Math.PI/180,yn=({data:e,variant:n=`donut`,size:r=`md`,centerValue:s,centerCaption:c,className:l})=>{let u=i.default.useRef(null),d=t.ut(u),[f,p]=i.default.useState(void 0),m=[1,2,3,4,5].map(e=>d(`--color-chart-${e}`)??t.lt[e-1]),h=d(`--color-bg-surface`)??`#ffffff`,g=d(`--color-fg-default`)??`#141414`,_=pn[r],v=mn.has(n),y=hn.has(n),b=gn.has(n),x=v?_.outer*.6:0,S=_n.has(n)&&(s||c),C=f??(y||b?0:void 0),w=e=>{let{cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:s,endAngle:c,fill:l,index:u}=e,d=u===C,f=d&&(y||b)?16:0;return d&&b?(0,a.jsxs)(`g`,{children:[(0,a.jsx)(o.Sector,{cx:t,cy:n,innerRadius:r,outerRadius:i+f,startAngle:s,endAngle:c,fill:l}),(0,a.jsx)(o.Sector,{cx:t,cy:n,innerRadius:i+f+3,outerRadius:i+f+7,startAngle:s,endAngle:c,fill:l})]}):(0,a.jsx)(o.Sector,{cx:t,cy:n,innerRadius:r,outerRadius:i+f,startAngle:s,endAngle:c,fill:l})},T=e=>{let{cx:t,cy:n,midAngle:r,outerRadius:i}=e,a=r??0,o=Math.cos(-a*vn),s=Math.sin(-a*vn),c=t+i*o,l=n+i*s,u=t+(i+16)*o,d=n+(i+16)*s,f=o>=0,p=u+(f?14:-14);return{d:`M ${c} ${l} L ${u} ${d} L ${p} ${d}`,endX:p,endY:d,textAnchor:f?`start`:`end`}},E=e=>{let{value:t,fill:n}=e,{d:r,endX:i,endY:o,textAnchor:s}=T(e),c=i+(s===`start`?4:-4);return(0,a.jsxs)(`g`,{children:[(0,a.jsx)(`path`,{d:r,fill:`none`,stroke:n,strokeWidth:1}),(0,a.jsx)(`text`,{x:c,y:o,textAnchor:s,dominantBaseline:`central`,fill:g,fontSize:12,fontFamily:`var(--font-sans)`,children:t})]})},D=e=>{let{x:t,y:n,textAnchor:r,value:i}=e;return(0,a.jsx)(`text`,{x:t,y:n,textAnchor:r,dominantBaseline:`central`,fill:g,fontSize:20,fontWeight:400,fontFamily:`var(--font-sans)`,children:i})},O=t=>{let{cx:n,cy:r,midAngle:i,innerRadius:o,outerRadius:s,index:c}=t,l=(o+s)/2;return(0,a.jsx)(`text`,{x:n+l*Math.cos(-i*vn),y:r+l*Math.sin(-i*vn),textAnchor:`middle`,dominantBaseline:`central`,fill:`#fff`,fontSize:11,fontWeight:500,fontFamily:`var(--font-sans)`,children:e[c]?.label})};if(n===`stacked`){let n=e=>f!==void 0&&f!==e?.45:1;return(0,a.jsx)(`div`,{ref:u,className:[fn.chart,l??``].filter(Boolean).join(` `),style:{height:_.h},children:(0,a.jsx)(o.ResponsiveContainer,{width:`100%`,height:`100%`,children:(0,a.jsxs)(o.PieChart,{children:[(0,a.jsx)(o.Pie,{data:e,dataKey:`value`,nameKey:`label`,innerRadius:_.outer*.82,outerRadius:_.outer,paddingAngle:0,stroke:`none`,isAnimationActive:!1,onMouseEnter:(e,t)=>p(t),onMouseLeave:()=>p(void 0),children:e.map((e,t)=>(0,a.jsx)(o.Cell,{fill:m[t%m.length],fillOpacity:n(t)},t))}),(0,a.jsx)(o.Pie,{data:e,dataKey:`value`,nameKey:`label`,innerRadius:0,outerRadius:_.outer*.62,paddingAngle:0,stroke:`none`,isAnimationActive:!1,onMouseEnter:(e,t)=>p(t),onMouseLeave:()=>p(void 0),children:e.map((e,t)=>(0,a.jsx)(o.Cell,{fill:m[t%m.length],fillOpacity:n(t)},t))}),(0,a.jsx)(o.Tooltip,{content:(0,a.jsx)(t.ct,{}),wrapperStyle:{zIndex:50}})]})})})}return(0,a.jsxs)(`div`,{ref:u,className:[fn.chart,l??``].filter(Boolean).join(` `),style:{height:_.h},children:[(0,a.jsx)(o.ResponsiveContainer,{width:`100%`,height:`100%`,children:(0,a.jsxs)(o.PieChart,{children:[(0,a.jsx)(o.Pie,{data:e,dataKey:`value`,nameKey:`label`,innerRadius:x,outerRadius:_.outer,paddingAngle:0,stroke:n===`pie`?h:`none`,strokeWidth:n===`pie`?2:0,isAnimationActive:!1,shape:y||b?w:void 0,label:n===`label`?E:n===`custom-label`?D:n===`label-list`?O:void 0,labelLine:!1,onMouseEnter:(e,t)=>p(t),onMouseLeave:()=>p(void 0),children:e.map((e,t)=>(0,a.jsx)(o.Cell,{fill:m[t%m.length]},t))}),(0,a.jsx)(o.Tooltip,{content:(0,a.jsx)(t.ct,{}),wrapperStyle:{zIndex:50}})]})}),S&&(0,a.jsxs)(`div`,{className:fn.center,children:[s&&(0,a.jsx)(`span`,{className:fn.center__value,children:s}),c&&(0,a.jsx)(`span`,{className:fn.center__caption,children:c})]})]})},bn={root:`_root_16f5u_2`,trigger:`_trigger_16f5u_3`,panel:`_panel_16f5u_5`,"panel--bottom":`_panel--bottom_16f5u_22`,"panel--bottom-start":`_panel--bottom-start_16f5u_23`,"panel--bottom-end":`_panel--bottom-end_16f5u_24`,"panel--top":`_panel--top_16f5u_25`,"panel--entering":`_panel--entering_16f5u_39`,"sakani-popover-in":`_sakani-popover-in_16f5u_1`,"panel--exiting":`_panel--exiting_16f5u_40`,"sakani-popover-out":`_sakani-popover-out_16f5u_1`,"sakani-popover-in-up":`_sakani-popover-in-up_16f5u_1`,"sakani-popover-out-up":`_sakani-popover-out-up_16f5u_1`,panel__title:`_panel__title_16f5u_75`,panel__description:`_panel__description_16f5u_76`,panel__body:`_panel__body_16f5u_77`,panel__actions:`_panel__actions_16f5u_78`},xn=({trigger:e,title:t,description:n,actions:r,placement:o=`bottom-start`,children:s,className:c})=>{let[l,u]=i.default.useState(!1),[d,f]=i.default.useState(!1),p=i.default.useRef(null),m=i.default.useRef(null);return i.default.useEffect(()=>{l&&f(!0)},[l]),i.default.useEffect(()=>{if(l||!d)return;let e=setTimeout(()=>f(!1),240);return()=>clearTimeout(e)},[l,d]),i.default.useEffect(()=>{if(!l)return;let e=e=>{p.current&&!p.current.contains(e.target)&&u(!1)},t=e=>{e.key===`Escape`&&u(!1)};return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}},[l]),i.default.useEffect(()=>{!l&&m.current&&(m.current.focus(),m.current=null)},[l]),(0,a.jsxs)(`div`,{className:[bn.root,c??``].filter(Boolean).join(` `),ref:p,children:[(0,a.jsx)(`span`,{className:bn.trigger,onClick:()=>{l||(m.current=document.activeElement),u(e=>!e)},children:e}),d&&(0,a.jsxs)(`div`,{className:[bn.panel,bn[`panel--${o}`],l?bn[`panel--entering`]:bn[`panel--exiting`]].filter(Boolean).join(` `),role:`dialog`,onAnimationEnd:e=>{e.target===e.currentTarget&&!l&&f(!1)},children:[t&&(0,a.jsx)(`div`,{className:bn.panel__title,children:t}),n&&(0,a.jsx)(`div`,{className:bn.panel__description,children:n}),s&&(0,a.jsx)(`div`,{className:bn.panel__body,children:s}),r&&(0,a.jsx)(`div`,{className:bn.panel__actions,children:r})]})]})},Sn={chart:`_chart_q6xhl_2`,circleFillSvg:`_circleFillSvg_q6xhl_17`},Cn={sm:200,md:260,lg:340,xl:420},wn=new Set([`circle-grid`,`circle-grid-no-lines`,`circle-grid-filled`]),Tn=new Set([`default`,`grid-custom`]),En=new Set([`dots-grid-none`]),Dn=new Set([`grid-filled`]),On=e=>e===`circle-grid-filled`,kn=new Set([`default`,`dots`,`dots-grid-none`,`circle-grid`,`circle-grid-no-lines`,`multiple`,`custom-label`,`grid-custom`,`grid-filled`,`circle-grid-filled`]),An=[1,.8,.6,.4,.2],jn=({data:e,variant:n=`default`,size:r=`md`,seriesLabels:s=[`Value`,`Value 2`],className:c})=>{let l=i.default.useRef(null),u=t.ut(l),d=u(`--color-chart-1`)??`#ff4700`,f=u(`--color-chart-2`)??`#5b92dd`,p=u(`--color-border-default`)??`#dbdad7`,m=u(`--color-fg-subtle`)??`#a8a29b`,h=n===`multiple`,g=n===`lines-only`,_=h||n===`custom-label`||g,v=!g,y=n===`dots`||n===`dots-grid-none`||n===`circle-grid`||n===`circle-grid-no-lines`,b=Dn.has(n),x=Tn.has(n),S=En.has(n),C=On(n),[w,T]=i.default.useState(0);i.default.useEffect(()=>{if(!C||!l.current)return;let e=l.current,t=new ResizeObserver(([e])=>T(e.contentRect.width));return t.observe(e),()=>t.disconnect()},[C]);let E=i.default.useMemo(()=>{if(!b)return e;let t=Math.max(1,...e.flatMap(e=>[e.value,e.value2??0]));return e.map(e=>{let n={};return An.forEach((e,r)=>{n[`ring${r}`]=e*t}),{...e,...n}})},[e,b]),D=t=>{let{x:n,y:r,cx:i,cy:o,payload:s,textAnchor:c}=t,l=e.find(e=>e.label===s?.value)??e[s?.index];if(!l)return(0,a.jsx)(`g`,{});let u=n-i,d=r-o,f=l.value2===void 0?`${l.value}`:`${l.value}/${l.value2}`,p=Math.abs(d)>Math.abs(u),h,g;if(p&&d<0)g=r-4-6,h=g-16;else if(p)h=r+4+10,g=h+18;else{let e=r+d/(Math.sqrt(u*u+d*d)||1)*4;h=e-8,g=e+12}let _=p?n:n+u/Math.sqrt(u*u+d*d||1)*4;return(0,a.jsxs)(`g`,{children:[(0,a.jsx)(`text`,{x:_,y:h,textAnchor:c,fill:m,fontSize:15,fontWeight:600,fontFamily:`var(--font-sans)`,children:f}),(0,a.jsx)(`text`,{x:_,y:g,textAnchor:c,fill:m,fontSize:13,fontFamily:`var(--font-sans)`,children:l.label})]})},O=Cn[r],k=(w>0?Math.min(w,O)/2-5:0)*.7;return(0,a.jsxs)(`div`,{ref:l,className:[Sn.chart,c??``].filter(Boolean).join(` `),children:[C&&w>0&&(0,a.jsx)(`svg`,{className:Sn.circleFillSvg,width:w,height:O,children:An.map(e=>(0,a.jsx)(`circle`,{cx:w/2,cy:O/2,r:k*e,fill:f,fillOpacity:.1},e))}),(0,a.jsx)(o.ResponsiveContainer,{width:`100%`,height:O,children:(0,a.jsxs)(o.RadarChart,{data:E,outerRadius:`70%`,children:[!b&&!S&&(0,a.jsx)(o.PolarGrid,{gridType:wn.has(n)?`circle`:`polygon`,radialLines:n!==`circle-grid-no-lines`&&!x,stroke:p}),(0,a.jsx)(o.PolarAngleAxis,{dataKey:`label`,axisLine:!1,tick:n===`custom-label`?D:{fill:m,fontSize:12,fontFamily:`var(--font-sans)`}}),(0,a.jsx)(o.PolarRadiusAxis,{tick:!1,axisLine:!1,tickCount:x?2:void 0}),(0,a.jsx)(o.Tooltip,{content:(0,a.jsx)(t.ct,{}),wrapperStyle:{zIndex:50}}),h&&(0,a.jsx)(o.Legend,{wrapperStyle:{fontSize:12,fontFamily:`var(--font-sans)`}}),b&&An.map((e,t)=>(0,a.jsx)(o.Radar,{dataKey:`ring${t}`,stroke:`none`,fill:f,fillOpacity:.1,isAnimationActive:!1,legendType:`none`},`ring${t}`)),(0,a.jsx)(o.Radar,{name:h?s[0]??`Value`:void 0,dataKey:`value`,stroke:kn.has(n)?`none`:f,fill:v?f:`none`,fillOpacity:v?x?1:_?.45:.5:0,strokeWidth:kn.has(n)?0:2,dot:y?{r:4,fill:f,stroke:`none`}:!1,isAnimationActive:!1}),_&&(0,a.jsx)(o.Radar,{name:h?s[1]??`Value 2`:void 0,dataKey:`value2`,stroke:g?d:`none`,fill:g?`none`:d,fillOpacity:g?0:.8,strokeWidth:g?2:0,dot:y?{r:4,fill:d,stroke:`none`}:!1,isAnimationActive:!1})]})})]})},Mn={chart:`_chart_1ogmh_2`,gridSvg:`_gridSvg_1ogmh_19`,gaugeSvg:`_gaugeSvg_1ogmh_31`,center:`_center_1ogmh_36`,center__value:`_center__value_1ogmh_45`,center__caption:`_center__caption_1ogmh_46`},Nn={sm:180,md:220,lg:280,xl:340},Pn=Math.PI/180,Fn=e=>Math.round(e*1e3)/1e3,In={multi:[`30%`,`100%`],grid:[`30%`,`100%`],"stacked-label":[`30%`,`100%`],text:[`76%`,`100%`]},Ln=({value:e,max:t,color:n,track:r,centerValue:i,centerCaption:o,labelColor:s,captionColor:c})=>{let l=Math.round(Math.min(e,t)/t*40);return(0,a.jsxs)(`svg`,{viewBox:`0 0 200 120`,className:Mn.gaugeSvg,children:[Array.from({length:40}).map((e,t)=>{let i=180+t/39*180;return(0,a.jsx)(`line`,{x1:Fn(100+78*Math.cos(i*Pn)),y1:Fn(100+78*Math.sin(i*Pn)),x2:Fn(100+92*Math.cos(i*Pn)),y2:Fn(100+92*Math.sin(i*Pn)),stroke:t<l?n:r,strokeWidth:2.5,strokeLinecap:`round`},t)}),(i||o)&&(0,a.jsxs)(`g`,{textAnchor:`middle`,fontFamily:`var(--font-sans)`,children:[i&&(0,a.jsx)(`text`,{x:100,y:92,fontSize:22,fontWeight:500,fill:s,children:i}),o&&(0,a.jsx)(`text`,{x:100,y:112,fontSize:12,fill:c,children:o})]})]})},Rn=({rings:e,spokes:t,color:n})=>(0,a.jsxs)(`svg`,{viewBox:`0 0 200 200`,className:Mn.gridSvg,children:[Array.from({length:e}).map((t,r)=>(0,a.jsx)(`circle`,{cx:100,cy:100,r:(r+1)/e*96,fill:`none`,stroke:n,strokeWidth:1},r)),Array.from({length:t}).map((e,r)=>{let i=r/t*360,o=99.5*1.1;return(0,a.jsx)(`line`,{x1:100,y1:100,x2:Fn(100+o*Math.cos(i*Pn)),y2:Fn(100+o*Math.sin(i*Pn)),stroke:n,strokeWidth:1},r)})]}),zn=({data:e,palette:t,track:n,centerValue:r,centerCaption:i,labelColor:s,captionColor:c})=>{let l=e[0]?.max??e.reduce((e,t)=>e+t.value,0),u=210,d=e.map((e,n)=>{let r=l>0?e.value/l*240:0,i=u,a=u-r;return u=a,{segStart:i,segEnd:a,fill:t[n%t.length]}});return(0,a.jsxs)(`svg`,{viewBox:`0 0 200 160`,className:Mn.gaugeSvg,children:[d.map((e,t)=>(0,a.jsx)(o.Sector,{cx:100,cy:100,innerRadius:64,outerRadius:88,startAngle:e.segStart,endAngle:e.segEnd,fill:e.fill,cornerRadius:4},t)),u>-29.5&&(0,a.jsx)(o.Sector,{cx:100,cy:100,innerRadius:64,outerRadius:88,startAngle:u,endAngle:-30,fill:n,cornerRadius:4}),(r||i)&&(0,a.jsxs)(`g`,{textAnchor:`middle`,fontFamily:`var(--font-sans)`,children:[r&&(0,a.jsx)(`text`,{x:100,y:92,fontSize:22,fontWeight:500,fill:s,children:r}),i&&(0,a.jsx)(`text`,{x:100,y:112,fontSize:12,fill:c,children:i})]})]})},Bn=({data:e,variant:n=`multi`,size:r=`md`,centerValue:s,centerCaption:c,className:l})=>{let u=i.default.useRef(null),d=t.ut(u),f=[1,2,3,4,5].map(e=>d(`--color-chart-${e}`)??t.lt[e-1]),p=d(`--color-bg-subtle`)??`#f5f4f2`,m=d(`--color-border-subtle`)??`#e7e5e1`,h=d(`--color-fg-default`)??`#141414`,g=d(`--color-fg-muted`)??`#78716a`,_=Nn[r];if(n===`gauge-tick`){let t=e[0];return(0,a.jsx)(`div`,{ref:u,className:[Mn.chart,l??``].filter(Boolean).join(` `),style:{height:_},children:(0,a.jsx)(Ln,{value:t?.value??0,max:t?.max??100,color:f[0],track:p,centerValue:s,centerCaption:c,labelColor:h,captionColor:g})})}if(n===`shape`||n===`stacked`||n===`stacked-3-layers`)return(0,a.jsx)(`div`,{ref:u,className:[Mn.chart,l??``].filter(Boolean).join(` `),style:{height:_},children:(0,a.jsx)(zn,{data:e,palette:f,track:p,centerValue:s,centerCaption:c,labelColor:h,captionColor:g})});let[v,y]=In[n]??[`30%`,`100%`],b=(n===`stacked-label`||n===`text`)&&(s||c);return(0,a.jsxs)(`div`,{ref:u,className:[Mn.chart,l??``].filter(Boolean).join(` `),style:{height:_},children:[n===`grid`&&(0,a.jsx)(Rn,{rings:8,spokes:12,color:m}),(0,a.jsx)(o.ResponsiveContainer,{width:`100%`,height:`100%`,children:(0,a.jsxs)(o.RadialBarChart,{data:e,innerRadius:v,outerRadius:y,startAngle:90,endAngle:-270,barCategoryGap:`12%`,children:[(0,a.jsx)(o.PolarAngleAxis,{type:`number`,domain:[0,e[0]?.max??100],tick:!1,axisLine:!1}),(0,a.jsx)(o.RadialBar,{dataKey:`value`,background:n!==`grid`&&{fill:p},cornerRadius:8,isAnimationActive:!1,children:e.map((e,t)=>(0,a.jsx)(o.Cell,{fill:f[t%f.length]},t))})]})}),b&&(0,a.jsxs)(`div`,{className:Mn.center,children:[s&&(0,a.jsx)(`span`,{className:Mn.center__value,children:s}),c&&(0,a.jsx)(`span`,{className:Mn.center__caption,children:c})]})]})},Vn={wrapper:`_wrapper_5ueza_3`,"wrapper--disabled":`_wrapper--disabled_5ueza_11`,input:`_input_5ueza_13`,circle:`_circle_5ueza_15`,dot:`_dot_5ueza_31`,text:`_text_5ueza_79`,text__label:`_text__label_5ueza_80`,text__description:`_text__description_5ueza_81`,"wrapper--withDescription":`_wrapper--withDescription_5ueza_85`},Hn=i.default.forwardRef(({label:e,description:t,disabled:n,id:r,className:o,...s},c)=>{let l=i.default.useId(),u=r??l;return(0,a.jsxs)(`label`,{htmlFor:u,className:[Vn.wrapper,t?Vn[`wrapper--withDescription`]:``,n?Vn[`wrapper--disabled`]:``,o??``].filter(Boolean).join(` `),children:[(0,a.jsx)(`input`,{ref:c,id:u,type:`radio`,disabled:n,className:Vn.input,...s}),(0,a.jsx)(`span`,{className:Vn.circle,"aria-hidden":`true`,children:(0,a.jsx)(`span`,{className:Vn.dot})}),(e||t)&&(0,a.jsxs)(`span`,{className:Vn.text,children:[e&&(0,a.jsx)(`span`,{className:Vn.text__label,children:e}),t&&(0,a.jsx)(`span`,{className:Vn.text__description,children:t})]})]})});Hn.displayName=`Radio`;var Un={footer:`_footer_x13xl_4`,"footer--collapsed":`_footer--collapsed_x13xl_12`,footer__text:`_footer__text_x13xl_14`,footer__title:`_footer__title_x13xl_15`,footer__subtitle:`_footer__subtitle_x13xl_16`,footer__menu:`_footer__menu_x13xl_17`,footer__action:`_footer__action_x13xl_29`},Wn=({type:e=`user`,title:i,subtitle:o,avatarSrc:s,avatarInitials:c,collapsed:l,onMenu:u,onSignOut:d})=>{let f=(0,a.jsx)(t.jt,{size:l?`sm`:`md`,src:s,initials:c,alt:i??`User`});return l?(0,a.jsx)(`div`,{className:[Un.footer,Un[`footer--collapsed`]].join(` `),children:f}):e===`actions`?(0,a.jsx)(`div`,{className:Un.footer,children:(0,a.jsxs)(`button`,{type:`button`,"data-hover-item":``,className:Un.footer__action,onClick:d,children:[(0,a.jsx)(r.t,{size:16,strokeWidth:t.Pt(16)}),` Sign out`]})}):(0,a.jsxs)(`div`,{className:Un.footer,children:[f,(0,a.jsxs)(`span`,{className:Un.footer__text,children:[i&&(0,a.jsx)(`span`,{className:Un.footer__title,children:i}),o&&(0,a.jsx)(`span`,{className:Un.footer__subtitle,children:o})]}),e===`user-menu`&&(0,a.jsx)(`button`,{type:`button`,"data-hover-item":``,className:Un.footer__menu,onClick:u,"aria-label":`Open menu`,children:(0,a.jsx)(n.a,{size:16,strokeWidth:t.Pt(16)})})]})},Gn={search:`_search_4878u_2`,search__icon:`_search__icon_4878u_25`,search__input:`_search__input_4878u_26`,search__placeholder:`_search__placeholder_4878u_38`,search__kbd:`_search__kbd_4878u_39`,collapsed:`_collapsed_4878u_53`},Kn=({type:e=`field`,placeholder:r=`Search…`,collapsed:i,value:o,onChange:s,onClick:c})=>i?(0,a.jsx)(`button`,{type:`button`,className:Gn.collapsed,onClick:c,"aria-label":`Search`,children:(0,a.jsx)(n.y,{size:18,strokeWidth:t.Pt(18)})}):e===`command`?(0,a.jsxs)(`button`,{type:`button`,className:Gn.search,onClick:c,children:[(0,a.jsx)(n.y,{size:16,strokeWidth:t.Pt(16),className:Gn.search__icon}),(0,a.jsx)(`span`,{className:Gn.search__placeholder,children:r}),(0,a.jsx)(`kbd`,{className:Gn.search__kbd,children:`⌘K`})]}):(0,a.jsxs)(`div`,{className:Gn.search,children:[(0,a.jsx)(n.y,{size:16,strokeWidth:t.Pt(16),className:Gn.search__icon}),(0,a.jsx)(`input`,{className:Gn.search__input,placeholder:r,value:o,onChange:e=>s?.(e.target.value)})]}),qn={toaster:`_toaster_ma9al_7`,toast:`_toast_ma9al_7`,swipeOutLeft:`_swipeOutLeft_ma9al_1`,swipeOutRight:`_swipeOutRight_ma9al_1`,swipeOutUp:`_swipeOutUp_ma9al_1`,swipeOutDown:`_swipeOutDown_ma9al_1`,icon:`_icon_ma9al_160`,content:`_content_ma9al_173`,title:`_title_ma9al_180`,description:`_description_ma9al_181`,button:`_button_ma9al_183`,cancel:`_cancel_ma9al_202`,close:`_close_ma9al_204`,spinner:`_spinner_ma9al_227`,spinnerBar:`_spinnerBar_ma9al_232`,spinnerFade:`_spinnerFade_ma9al_1`},Jn=0,Yn=[],Xn=new Set;function Zn(e){for(let t of Xn)t(e)}var Qn={subscribe(e){return Xn.add(e),()=>{Xn.delete(e)}},active:()=>Yn,remove(e){Yn=Yn.filter(t=>t.id!==e)}};function $n(e,t,n={}){let r=n.id??`sakani-toast-${++Jn}`,i=Yn.find(e=>e.id===r),a={...i,...n,id:r,type:e,title:t,delete:!1,version:(i?.version??0)+1};return Yn=i?Yn.map(e=>e.id===r?a:e):[a,...Yn],Zn({kind:`upsert`,toast:a}),r}function er(e){return Yn=e===void 0?[]:Yn.filter(t=>t.id!==e),Zn({kind:`dismiss`,id:e}),e}function tr(e,t){let{loading:n,success:r,error:i,finally:a,id:o,...s}=t,c=o??`sakani-toast-${++Jn}`;return n!==void 0&&$n(`loading`,n,{...s,id:c}),(typeof e==`function`?e():e).then(e=>{if(r===void 0){n!==void 0&&er(c);return}$n(`success`,typeof r==`function`?r(e):r,{...s,id:c})},e=>{if(i===void 0){n!==void 0&&er(c);return}$n(`error`,typeof i==`function`?i(e):i,{...s,id:c})}).finally(()=>a?.()),c}var nr=Object.assign((e,t)=>$n(`default`,e,t),{message:(e,t)=>$n(`default`,e,t),success:(e,t)=>$n(`success`,e,t),info:(e,t)=>$n(`info`,e,t),warning:(e,t)=>$n(`warning`,e,t),error:(e,t)=>$n(`error`,e,t),loading:(e,t)=>$n(`loading`,e,t),promise:tr,dismiss:er}),rr=356,ir=45,ar=200,or=e=>typeof e==`number`?`${e}px`:e,sr=(...e)=>e.filter(Boolean).join(` `),cr={success:{viewBox:`0 0 20 20`,d:`M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z`},info:{viewBox:`0 0 20 20`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z`},warning:{viewBox:`0 0 24 24`,d:`M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z`},error:{viewBox:`0 0 20 20`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z`}};function lr({type:e}){if(e===`loading`)return(0,a.jsx)(`span`,{className:qn.spinner,"aria-hidden":`true`,children:Array.from({length:12},(e,t)=>(0,a.jsx)(`span`,{className:qn.spinnerBar,style:{transform:`rotate(${t*30||1e-4}deg) translate(146%)`,animationDelay:`${-1.2+t*.1}s`}},t))});let t=cr[e];return t?(0,a.jsx)(`svg`,{viewBox:t.viewBox,width:16,height:16,fill:`currentColor`,"aria-hidden":`true`,children:(0,a.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:t.d})}):null}var ur=()=>(0,a.jsx)(`svg`,{viewBox:`0 0 12 12`,width:12,height:12,fill:`none`,stroke:`currentColor`,strokeWidth:1.5,strokeLinecap:`round`,"aria-hidden":`true`,children:(0,a.jsx)(`path`,{d:`M9 3L3 9M3 3l6 6`})});function dr({toast:e,index:t,count:n,expanded:r,expandByDefault:o,paused:s,heights:c,setHeights:l,removeToast:u,gap:d,visibleToasts:f,yPosition:p,xPosition:m,closeButton:h,richColors:g,duration:_}){let[v,y]=(0,i.useState)(!1),[b,x]=(0,i.useState)(!1),[S,C]=(0,i.useState)(!1),[w,T]=(0,i.useState)(!1),[E,D]=(0,i.useState)(!1),[O,k]=(0,i.useState)(null),[A,j]=(0,i.useState)(0),[M,N]=(0,i.useState)(0),ee=(0,i.useRef)(null),P=(0,i.useRef)(null),F=(0,i.useRef)(null),te=(0,i.useRef)(0),I=(0,i.useRef)(0),ne=t===0,L=t+1<=f,re=e.dismissible!==!1,ie=e.duration??_,ae=e.richColors??g,oe=(e.closeButton??h)&&e.type!==`loading`,se=c.findIndex(t=>t.id===e.id),ce=(0,i.useMemo)(()=>{let e=c.reduce((e,t,n)=>n>=se?e:e+t.height,0);return Math.max(0,se)*d+e},[c,se,d]),R=(0,i.useRef)(ce);R.current=ce,(0,i.useLayoutEffect)(()=>{let t=ee.current;if(!t)return;let n=t.style.height;t.style.height=`auto`;let r=t.offsetHeight;t.style.height=n,N(r),l(t=>t.some(t=>t.id===e.id)?t.map(t=>t.id===e.id?{...t,height:r}:t):[{id:e.id,height:r},...t])},[e.id,e.version,l]),(0,i.useEffect)(()=>{y(!0)},[]);let z=(0,i.useCallback)(()=>{x(!0),j(R.current),l(t=>t.filter(t=>t.id!==e.id)),window.setTimeout(()=>u(e),ar)},[e,u,l]);(0,i.useEffect)(()=>{e.delete&&!b&&(e.onDismiss?.(e),z())},[e,b,z]),(0,i.useEffect)(()=>{I.current=ie},[e.version,ie]),(0,i.useEffect)(()=>{if(b||s||e.type===`loading`||ie===1/0)return;let t=Date.now(),n=window.setTimeout(()=>{e.onAutoClose?.(e),z()},I.current);return()=>{window.clearTimeout(n),I.current-=Date.now()-t}},[b,s,e,ie,z]);let le=()=>{!re||b||(e.onDismiss?.(e),z())},B=(0,i.useMemo)(()=>{let e=[p];return m!==`center`&&e.push(m),e},[p,m]),V=(e,t)=>{ee.current?.style.setProperty(`--swipe-amount-x`,`${e}px`),ee.current?.style.setProperty(`--swipe-amount-y`,`${t}px`)},ue=e=>{if(!(e.button===2||!re||b)&&!e.target.closest(`button`)){te.current=Date.now(),j(R.current);try{e.currentTarget.setPointerCapture(e.pointerId)}catch{}C(!0),P.current={x:e.clientX,y:e.clientY},F.current=null}},H=e=>{if(!P.current||!re||(window.getSelection()?.toString().length??0)>0)return;let t=e.clientY-P.current.y,n=e.clientX-P.current.x;!F.current&&(Math.abs(n)>1||Math.abs(t)>1)&&(F.current=Math.abs(n)>Math.abs(t)?`x`:`y`);let r=e=>e/(1.5+Math.abs(e)/20),i=0,a=0;F.current===`y`?a=B.includes(`top`)&&t<0||B.includes(`bottom`)&&t>0?t:r(t):F.current===`x`&&(i=B.includes(`left`)&&n<0||B.includes(`right`)&&n>0?n:r(n)),(i!==0||a!==0)&&T(!0),V(i,a)},de=()=>{if(E||!re||!P.current)return;P.current=null;let t=ee.current?.style,n=parseFloat(t?.getPropertyValue(`--swipe-amount-x`)||`0`)||0,r=parseFloat(t?.getPropertyValue(`--swipe-amount-y`)||`0`)||0,i=F.current===`x`?n:r,a=Math.abs(i)/Math.max(1,Date.now()-te.current);if((F.current===`x`?i<0&&B.includes(`left`)||i>0&&B.includes(`right`):i<0&&B.includes(`top`)||i>0&&B.includes(`bottom`))&&(Math.abs(i)>=ir||a>.11)){j(R.current),e.onDismiss?.(e),k(F.current===`x`?n>0?`right`:`left`:r>0?`down`:`up`),z(),D(!0);return}V(0,0),T(!1),C(!1),F.current=null},U=r||o&&v,fe=e.icon===null?null:e.icon??(0,a.jsx)(lr,{type:e.type}),pe=fe!==null&&(e.icon!==void 0||e.type!=="default");return(0,a.jsxs)(`li`,{ref:ee,tabIndex:0,role:`status`,"aria-live":e.important||e.type===`error`?`assertive`:`polite`,"aria-atomic":`true`,className:sr(qn.toast,e.className),"data-mounted":v,"data-removed":b,"data-visible":L,"data-front":ne,"data-expanded":U,"data-y-position":p,"data-x-position":m,"data-type":e.type,"data-rich-colors":ae,"data-dismissible":re,"data-swiping":S,"data-swiped":w,"data-swipe-out":E,"data-swipe-direction":O??void 0,style:{"--index":t,"--toasts-before":t,"--z-index":n-t,"--offset":`${b?A:ce}px`,"--initial-height":o?`auto`:`${M}px`},onPointerDown:ue,onPointerMove:H,onPointerUp:de,onPointerCancel:de,onKeyDown:e=>{(e.key===`Delete`||e.key===`Backspace`)&&le()},children:[oe&&(0,a.jsx)(`button`,{type:`button`,className:qn.close,"aria-label":`Close notification`,disabled:!re,onClick:le,children:(0,a.jsx)(ur,{})}),pe&&(0,a.jsx)(`div`,{className:qn.icon,children:fe}),(0,a.jsxs)(`div`,{className:qn.content,children:[(0,a.jsx)(`div`,{className:qn.title,children:e.title}),e.description&&(0,a.jsx)(`div`,{className:qn.description,children:e.description})]}),e.cancel&&(0,a.jsx)(`button`,{type:`button`,className:sr(qn.button,qn.cancel),onClick:t=>{e.cancel?.onClick?.(t),re&&le()},children:e.cancel.label}),e.action&&(0,a.jsx)(`button`,{type:`button`,className:qn.button,onClick:t=>{e.action?.onClick(t),t.defaultPrevented||z()},children:e.action.label})]})}var fr=({position:e=`bottom-right`,richColors:t=!1,closeButton:n=!1,expand:r=!1,visibleToasts:o=3,duration:s=4e3,gap:c=14,offset:l=24,mobileOffset:u=16,hotkey:d=[`altKey`,`KeyT`],containerAriaLabel:f=`Notifications`,className:p,style:m})=>{let[h,g]=(0,i.useState)(()=>Qn.active()),[_,v]=(0,i.useState)([]),[y,b]=(0,i.useState)(!1),[x,S]=(0,i.useState)(!1),[C,w]=(0,i.useState)(!1),T=(0,i.useRef)(null),[E,D]=e.split(`-`);(0,i.useEffect)(()=>Qn.subscribe(e=>{e.kind===`upsert`?g(t=>t.some(t=>t.id===e.toast.id)?t.map(t=>t.id===e.toast.id?e.toast:t):[e.toast,...t]):g(t=>t.map(t=>e.id===void 0||t.id===e.id?{...t,delete:!0}:t))}),[]);let O=(0,i.useCallback)(e=>{Qn.remove(e.id),g(t=>t.filter(t=>t.id!==e.id))},[]);return(0,i.useEffect)(()=>{h.length<=1&&b(!1)},[h.length]),(0,i.useEffect)(()=>{let e=()=>w(document.hidden);return document.addEventListener(`visibilitychange`,e),()=>document.removeEventListener(`visibilitychange`,e)},[]),(0,i.useEffect)(()=>{let e=e=>{d.length>0&&d.every(t=>e[t]===!0||e.code===t)&&(b(!0),T.current?.focus()),e.key===`Escape`&&T.current&&(document.activeElement===T.current||T.current.contains(document.activeElement))&&(b(!1),document.activeElement?.blur())};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[d]),(0,a.jsx)(`section`,{"aria-label":`${f} ${d.join(`+`).replace(/Key/g,``).replace(/Digit/g,``)}`,tabIndex:-1,"aria-live":`polite`,"aria-relevant":`additions text`,"aria-atomic":`false`,children:h.length>0&&(0,a.jsx)(`ol`,{ref:T,tabIndex:-1,className:sr(qn.toaster,p),"data-y-position":E,"data-x-position":D,style:{"--front-toast-height":`${_[0]?.height??0}px`,"--width":`${rr}px`,"--gap":`${c}px`,"--offset-top":or(l),"--offset-right":or(l),"--offset-bottom":or(l),"--offset-left":or(l),"--mobile-offset-top":or(u),"--mobile-offset-right":or(u),"--mobile-offset-bottom":or(u),"--mobile-offset-left":or(u),...m},onMouseEnter:()=>b(!0),onMouseMove:()=>b(!0),onMouseLeave:()=>{x||b(!1)},onFocus:()=>b(!0),onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||b(!1)},onPointerDown:e=>{e.target.dataset?.dismissible!==`false`&&S(!0)},onPointerUp:()=>S(!1),children:h.map((e,i)=>(0,a.jsx)(dr,{toast:e,index:i,count:h.length,expanded:y,expandByDefault:r,paused:y||x||C,heights:_,setHeights:v,removeToast:O,gap:c,visibleToasts:o,yPosition:E,xPosition:D,closeButton:n,richColors:t,duration:s},e.id))})})},$={stepper:`_stepper_1qhab_3`,"stepper--horizontal":`_stepper--horizontal_1qhab_4`,"stepper--vertical":`_stepper--vertical_1qhab_5`,step:`_step_1qhab_3`,"step--horizontal":`_step--horizontal_1qhab_8`,"step--vertical":`_step--vertical_1qhab_9`,circle:`_circle_1qhab_12`,circle__num:`_circle__num_1qhab_24`,"stepper--animated":`_stepper--animated_1qhab_28`,"circle--completed":`_circle--completed_1qhab_32`,"stepper-check":`_stepper-check_1qhab_1`,"circle--current":`_circle--current_1qhab_39`,"stepper-arrive":`_stepper-arrive_1qhab_1`,"circle--upcoming":`_circle--upcoming_1qhab_57`,step__text:`_step__text_1qhab_64`,step__label:`_step__label_1qhab_65`,"step__label--current":`_step__label--current_1qhab_66`,"step__label--upcoming":`_step__label--upcoming_1qhab_67`,step__desc:`_step__desc_1qhab_68`,connector:`_connector_1qhab_71`,connector__fill:`_connector__fill_1qhab_75`,"connector--vertical":`_connector--vertical_1qhab_82`,"connector--filled":`_connector--filled_1qhab_86`,"connector--horizontal":`_connector--horizontal_1qhab_88`},pr=({index:e,state:r,label:i,description:o,orientation:s=`horizontal`,delay:c=0,fresh:l})=>(0,a.jsxs)(`div`,{className:[$.step,$[`step--${s}`]].join(` `),style:{"--delay":`${c}ms`},children:[(0,a.jsx)(`span`,{className:[$.circle,$[`circle--${r}`]].join(` `),"data-fresh":l||void 0,"aria-hidden":`true`,children:r===`completed`?(0,a.jsx)(n.M,{size:14,strokeWidth:t.Pt(14)}):(0,a.jsx)(`span`,{className:$.circle__num,children:e+1})}),(0,a.jsxs)(`span`,{className:$.step__text,children:[(0,a.jsx)(`span`,{className:[$.step__label,r===`current`?$[`step__label--current`]:``,r===`upcoming`?$[`step__label--upcoming`]:``].filter(Boolean).join(` `),children:i}),o&&(0,a.jsx)(`span`,{className:$.step__desc,children:o})]})]}),mr=457,hr=({steps:e,current:t,orientation:n=`horizontal`,className:r})=>{let o=e=>e<t?`completed`:e===t?`current`:`upcoming`,s=(0,i.useRef)(t),[c,l]=(0,i.useState)(!1);(0,i.useEffect)(()=>{l(!0)},[]),(0,i.useEffect)(()=>{s.current=t},[t]);let u=s.current,d=(e,t)=>e<t?`completed`:e===t?`current`:`upcoming`,f=e=>c&&u!==t&&d(e,u)!==d(e,t),p=t>=u,m=Math.max(1,Math.abs(t-u)),h=Math.min(mr,Math.floor(1430/m)),g=e=>p?e>=u&&e<=t?(e-u)*h:0:e>=t&&e<=u?(u-e)*h:0,_=e=>p?e>=u&&e<t?(e-u)*h:0:e>=t&&e<u?(u-1-e)*h+57:0;return(0,a.jsx)(`div`,{className:[$.stepper,$[`stepper--${n}`],c?$[`stepper--animated`]:``,r??``].filter(Boolean).join(` `),style:{"--fill-ms":`${h}ms`},children:e.map((r,s)=>(0,a.jsxs)(i.default.Fragment,{children:[(0,a.jsx)(pr,{index:s,state:o(s),label:r.label,description:r.description,orientation:n,delay:g(s),fresh:f(s)}),s<e.length-1&&(0,a.jsx)(`span`,{className:[$.connector,$[`connector--${n}`],s<t?$[`connector--filled`]:``].filter(Boolean).join(` `),style:{"--delay":`${_(s)}ms`},"aria-hidden":`true`,children:(0,a.jsx)(`span`,{className:$.connector__fill})})]},s))})},gr={wrapper:`_wrapper_1d89w_3`,"wrapper--disabled":`_wrapper--disabled_1d89w_11`,input:`_input_1d89w_13`,track:`_track_1d89w_15`,thumb:`_thumb_1d89w_28`,"wrapper--stretch":`_wrapper--stretch_1d89w_50`,label:`_label_1d89w_60`,"wrapper--withDescription":`_wrapper--withDescription_1d89w_65`,text:`_text_1d89w_66`,description:`_description_1d89w_68`},_r=16,vr=2,yr=18,br=360,xr=16,Sr=e=>1-(1-e)**3,Cr=.16,wr=i.default.forwardRef(({label:e,description:t,disabled:n,id:r,className:o,onChange:s,variant:c=`default`,...l},u)=>{let d=i.default.useId(),f=r??d,p=i.default.useRef(null);return(0,a.jsxs)(`label`,{htmlFor:f,className:[gr.wrapper,c===`stretch`?gr[`wrapper--stretch`]:``,t?gr[`wrapper--withDescription`]:``,n?gr[`wrapper--disabled`]:``,o??``].filter(Boolean).join(` `),children:[(0,a.jsx)(`input`,{ref:u,id:f,type:`checkbox`,role:`switch`,disabled:n,className:gr.input,onChange:e=>{s?.(e);let t=p.current;if(c!==`stretch`||!t||typeof t.animate!=`function`||window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches)return;let n=e.target.checked,r=getComputedStyle(t),i=parseFloat(r.translate)||0,a=parseFloat(r.width)||_r,o=(n?vr:yr)+i,l=o+a,u=n?yr:vr,d=u+_r;t.getAnimations().forEach(e=>e.cancel());let f=[];for(let e=0;e<=xr;e++){let t=e/xr,r=Sr(t),i=Sr(Math.min(1,Math.max(0,(t-Cr)/(1-Cr)))),a=o+(u-o)*(n?i:r),s=l+(d-l)*(n?r:i);f.push({width:`${s-a}px`,translate:`${a-u}px 0`,offset:t})}t.animate(f,{duration:br,easing:`linear`})},...l}),(0,a.jsx)(`span`,{className:gr.track,"aria-hidden":`true`,children:(0,a.jsx)(`span`,{ref:p,className:gr.thumb})}),t?(0,a.jsxs)(`span`,{className:gr.text,children:[e&&(0,a.jsx)(`span`,{className:gr.label,children:e}),(0,a.jsx)(`span`,{className:gr.description,children:t})]}):e&&(0,a.jsx)(`span`,{className:gr.label,children:e})]})});wr.displayName=`Switch`;var Tr={field:`_field_1423f_6`,field__label:`_field__label_1423f_8`,field__description:`_field__description_1423f_10`,field__error:`_field__error_1423f_11`,textarea:`_textarea_1423f_13`,"textarea--error":`_textarea--error_1423f_37`,"textarea--disabled":`_textarea--disabled_1423f_52`,ai:`_ai_1423f_62`,"ai--error":`_ai--error_1423f_77`,"ai--disabled":`_ai--disabled_1423f_78`,ai__control:`_ai__control_1423f_80`,ai__actions:`_ai__actions_1423f_99`,ai__side:`_ai__side_1423f_100`},Er=24,Dr=i.default.forwardRef(({label:e,description:n,error:r,disabled:o,id:s,className:c,rows:l,variant:u=`default`,glow:d=`pulse`,leading:f,trailing:p,maxRows:m=8,onInput:h,...g},_)=>{let v=i.default.useId(),y=s??v,b=!!r,x=n||r?`${y}-desc`:void 0,S=u===`ai`,C=i.default.useRef(null),w=e=>{C.current=e,typeof _==`function`?_(e):_&&(_.current=e)},T=i.default.useCallback(()=>{let e=C.current;!e||!S||(e.style.height=`auto`,e.style.height=`${Math.min(e.scrollHeight,m*Er)}px`)},[S,m]);i.default.useLayoutEffect(()=>{T()},[T,g.value]);let E=(0,a.jsx)(`textarea`,{ref:w,id:y,rows:S?l??1:l??3,disabled:o,"aria-invalid":b||void 0,"aria-describedby":x,onInput:e=>{T(),h?.(e)},className:[S?Tr.ai__control:Tr.textarea,b&&!S?Tr[`textarea--error`]:``,o&&!S?Tr[`textarea--disabled`]:``].filter(Boolean).join(` `),...g});return(0,a.jsxs)(`div`,{className:[Tr.field,c??``].filter(Boolean).join(` `),children:[e&&(0,a.jsx)(`label`,{htmlFor:y,className:Tr.field__label,children:e}),S?(0,a.jsxs)(`div`,{className:[Tr.ai,b?Tr[`ai--error`]:``,o?Tr[`ai--disabled`]:``].filter(Boolean).join(` `),children:[(0,a.jsx)(t.w,{mode:o?`off`:d}),!b&&!o&&(0,a.jsx)(t.C,{}),E,(f||p)&&(0,a.jsxs)(`div`,{className:Tr.ai__actions,children:[(0,a.jsx)(`span`,{className:Tr.ai__side,children:f}),(0,a.jsx)(`span`,{className:Tr.ai__side,children:p})]})]}):E,(n||r)&&(0,a.jsx)(`span`,{id:x,className:b?Tr.field__error:Tr.field__description,children:r||n})]})});Dr.displayName=`Textarea`;var Or={toast:`_toast_dshlf_3`,toast__icon:`_toast__icon_dshlf_17`,"toast--success":`_toast--success_dshlf_18`,"toast--error":`_toast--error_dshlf_19`,"toast--info":`_toast--info_dshlf_20`,toast__content:`_toast__content_dshlf_22`,toast__title:`_toast__title_dshlf_23`,toast__description:`_toast__description_dshlf_24`,toast__dismiss:`_toast__dismiss_dshlf_26`},kr={success:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(`path`,{d:`M22 11.08V12a10 10 0 1 1-5.93-9.14`}),(0,a.jsx)(`polyline`,{points:`22 4 12 14.01 9 11.01`})]}),error:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,a.jsx)(`line`,{x1:`15`,y1:`9`,x2:`9`,y2:`15`}),(0,a.jsx)(`line`,{x1:`9`,y1:`9`,x2:`15`,y2:`15`})]}),info:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,a.jsx)(`line`,{x1:`12`,y1:`16`,x2:`12`,y2:`12`}),(0,a.jsx)(`line`,{x1:`12`,y1:`8`,x2:`12.01`,y2:`8`})]})},Ar=({status:e=`info`,title:n,description:r,onDismiss:i,className:o})=>(0,a.jsxs)(`div`,{role:e===`error`?`alert`:`status`,"aria-live":e===`error`?`assertive`:`polite`,className:[Or.toast,Or[`toast--${e}`],o??``].filter(Boolean).join(` `),children:[(0,a.jsx)(`span`,{className:Or.toast__icon,"aria-hidden":`true`,children:(0,a.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:t.Pt(18),strokeLinecap:`round`,strokeLinejoin:`round`,width:18,height:18,children:kr[e]})}),(0,a.jsxs)(`div`,{className:Or.toast__content,children:[n&&(0,a.jsx)(`div`,{className:Or.toast__title,children:n}),r&&(0,a.jsx)(`div`,{className:Or.toast__description,children:r})]}),i&&(0,a.jsx)(`button`,{type:`button`,className:Or.toast__dismiss,onClick:i,"aria-label":`Dismiss`,children:(0,a.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:t.Pt(16),strokeLinecap:`round`,strokeLinejoin:`round`,width:16,height:16,children:[(0,a.jsx)(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),(0,a.jsx)(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})]})})]}),jr={bar:`_bar_14cqo_2`,bar__icon:`_bar__icon_14cqo_10`,bar__title:`_bar__title_14cqo_17`,"bar__title--center":`_bar__title--center_14cqo_21`,bar__search:`_bar__search_14cqo_22`},Mr=({type:e=`title`,title:r,trailing:i,search:o,onMenu:s,onAction:c,onClose:l,className:u})=>(0,a.jsxs)(`header`,{className:[jr.bar,u??``].filter(Boolean).join(` `),children:[(0,a.jsx)(`button`,{type:`button`,className:jr.bar__icon,onClick:s,"aria-label":`Open menu`,children:(0,a.jsx)(n.C,{size:18,strokeWidth:t.Pt(18)})}),e===`search`?(0,a.jsx)(`div`,{className:jr.bar__search,children:o}):(0,a.jsx)(`span`,{className:[jr.bar__title,e===`title-centered`?jr[`bar__title--center`]:``].join(` `),children:r}),e===`title-action`&&(0,a.jsx)(`button`,{type:`button`,className:jr.bar__icon,onClick:c,"aria-label":`Add`,children:(0,a.jsx)(n.O,{size:18,strokeWidth:t.Pt(18)})}),e===`search`&&(0,a.jsx)(`button`,{type:`button`,className:jr.bar__icon,onClick:l,"aria-label":`Close search`,children:(0,a.jsx)(n.R,{size:18,strokeWidth:t.Pt(18)})}),(e===`title`||e===`title-centered`)&&i]});exports.Accordion=t.Mt,exports.AccordionItem=t.Nt,exports.ActivityFeed=t.kt,exports.ActivityFeedHighlight=t.At,exports.Alert=t.L,exports.Announcement=l,exports.AreaChart=ke,exports.Avatar=t.jt,exports.AvatarGroup=t.U,exports.AvatarUpload=t.Tt,exports.Badge=t.ot,exports.Balance=t.Ct,exports.BarChart=t.st,exports.BlogBlockquote=ne,exports.BlogFeatureText=re,exports.BlogImage=ae,exports.BlogListingCard=t.K,exports.BlogListingFeaturedCard=t.G,exports.BoardCard=t.I,exports.BoardColumn=Ae,exports.Breadcrumb=t.N,exports.Button=t.Et,exports.Calendar=Fe,exports.Card=Le,exports.CardMetaItem=t.M,exports.CartItem=t.it,exports.ChainOfThought=Xe,exports.ChainOfThoughtStep=Ye,exports.ChatComposer=t.A,exports.Checkbox=t.k,exports.CheckoutSteps=t.nt,exports.CodeSnippet=m,exports.ColorSwatch=t.et,exports.Combobox=gt,exports.CommandMenu=ht,exports.CommandMenuAnswer=mt,exports.CommandMenuTrigger=ft,exports.ConversationItem=t.O,exports.DEFAULT_CHECKOUT_STEPS=t.rt,exports.Divider=t.ht,exports.DonutChart=t.D,exports.EmptyState=t.E,exports.Expenses=_,exports.FacebookIcon=Te,exports.FeaturedIcon=t.W,exports.FileUpload=vt,exports.FilterChip=t.T,exports.FirstPageHeading=se,exports.FunnelChart=wt,exports.GithubIcon=_e,exports.HeatmapChart=Ot,exports.HoverGroup=t.P,exports.IconButton=t.Dt,exports.InlineHint=b,exports.Input=t.S,exports.InstagramIcon=we,exports.JobListing=t.V,exports.Kbd=rt,exports.Label=At,exports.LineChart=t.x,exports.Link=t.Ot,exports.LinkedinIcon=Ee,exports.LiquidBackdrop=t.gt,exports.LiquidGlass=t._t,exports.List=R,exports.ListItem=Mt,exports.LocationDot=t.H,exports.Map=rn,exports.MapClusterLayer=dn,exports.MapControlButton=Nt,exports.MapControls=Pt,exports.MapGlobe=un,exports.MapMarker=Qt,exports.MapPopup=an,exports.Marquee=B,exports.Menu=t.y,exports.MenuDivider=t.b,exports.MenuItem=t.v,exports.MessageBubble=t._,exports.Metric=ue,exports.MobileNavigationMenu=de,exports.Modal=t.mt,exports.NotificationItem=t.pt,exports.Pagination=t.g,exports.PieChart=yn,exports.PlaceholderLogo=pe,exports.Popover=xn,exports.PriceDisplay=t.$,exports.ProductCard=t.Z,exports.ProductGallery=t.X,exports.ProfileCard=he,exports.Progress=t.St,exports.ProgressItem=S,exports.ProgressStat=t.ft,exports.QuantitySelector=t.at,exports.RadarChart=jn,exports.RadialChart=Bn,exports.Radio=Hn,exports.RichSeparator=w,exports.RichTextHeading=ye,exports.RichTextParagraph=xe,exports.SectionHeading=t.z,exports.SegmentedControl=t.h,exports.Select=t.m,exports.Sidebar=t.p,exports.SidebarDivider=t.f,exports.SidebarFooter=Wn,exports.SidebarGroupLabel=t.d,exports.SidebarHeader=t.u,exports.SidebarItem=t.l,exports.SidebarPromo=t.c,exports.SidebarSearch=Kn,exports.SidebarSubItem=t.s,exports.SizeSelector=t.Y,exports.Skeleton=t.j,exports.Slider=t.o,exports.SourceLogo=Qe,exports.SourceStack=Ge,exports.SpendingBalance=t.dt,exports.Spinner=at,exports.StarRating=t.J,exports.StatCard=t.a,exports.Stepper=hr,exports.StepperStep=pr,exports.StockMarket=D,exports.StockStatus=t.q,exports.SubFeature=Ce,exports.Switch=wr,exports.Table=t.i,exports.Tabs=t.r,exports.Tags=A,exports.TeamCard=t.R,exports.Textarea=Dr,exports.Ticker=ee,exports.Toast=Ar,exports.Toaster=fr,exports.Tooltip=t.n,exports.TopBar=t.t,exports.TopBarMobile=Mr,exports.Transactions=te,exports.WishlistButton=t.Q,exports.WorkingIndicator=We,exports.XIcon=ge,exports.getContrastColor=t.tt,exports.iconStrokeWidth=t.Pt,exports.sourceLogo=tt,exports.sourceLogoNames=$e,exports.syncLiquidBackdrop=t.vt,exports.toast=nr,exports.useHoverHighlight=t.F,exports.useLiquidGlass=t.yt,exports.useMapContext=Jt;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-CMqjfN_6.cjs"),t=require("./TopBar-D50mmITH.cjs"),n=require("./help-circle-rtL4juBJ.cjs"),r=require("./logout-pQUABnfO.cjs");let i=require("react");i=e.t(i,1);let a=require("react/jsx-runtime"),o=require("recharts"),s=require("react-dom");var c={announcement:`_announcement_1ba3c_1`,"announcement--neutral":`_announcement--neutral_1ba3c_13`,"announcement--urgent":`_announcement--urgent_1ba3c_16`,content:`_content_1ba3c_20`,icon:`_icon_1ba3c_28`,icon__neutral:`_icon__neutral_1ba3c_32`,message:`_message_1ba3c_36`,link:`_link_1ba3c_52`},l=({message:e,linkLabel:r,linkHref:i,onLinkClick:o,onDismiss:s,variant:l=`neutral`,className:u})=>{let d=l===`urgent`;return(0,a.jsxs)(`div`,{className:[c.announcement,c[`announcement--${l}`],u??``].filter(Boolean).join(` `),children:[(0,a.jsxs)(`div`,{className:c.content,children:[(0,a.jsx)(`span`,{className:c.icon,"aria-hidden":`true`,children:d?(0,a.jsx)(n.z,{size:24,strokeWidth:1.5,style:{fill:`var(--color-info-solid)`,stroke:`var(--color-info-bg)`}}):(0,a.jsx)(n.B,{size:24,strokeWidth:1.5,fill:`currentColor`,stroke:`currentColor`,className:c.icon__neutral})}),(0,a.jsx)(`p`,{className:c.message,children:e}),!d&&r&&(0,a.jsx)(t.Ot,{href:i,onClick:o,className:c.link,style:{color:`var(--color-brand-fg)`,fontSize:16,lineHeight:`24px`},children:r})]}),s&&(0,a.jsx)(t.Dt,{icon:n.R,size:`sm`,variant:`ghost`,"aria-label":`Dismiss`,onClick:s})]})},u={snippet:`_snippet_1ao90_1`,header:`_header_1ao90_12`,filename:`_filename_1ao90_19`,body:`_body_1ao90_31`,tokenKeyword:`_tokenKeyword_1ao90_42`,tokenString:`_tokenString_1ao90_43`,editableBody:`_editableBody_1ao90_50`,textarea:`_textarea_1ao90_55`},d=[`import`,`export`,`from`,`default`,`function`,`return`,`const`,`let`,`var`,`if`,`else`,`for`,`while`,`class`,`extends`,`new`,`async`,`await`,`as`,`of`,`in`],f=RegExp(`('(?:[^'\\\\]|\\\\.)*'|"(?:[^"\\\\]|\\\\.)*"|\`(?:[^\`\\\\]|\\\\.)*\`|\\b(?:${d.join(`|`)})\\b)`,`g`),p=e=>e.split(f).map((e,t)=>{if(!e)return null;let n=/^['"`]/.test(e),r=!n&&d.includes(e);return n?(0,a.jsx)(`span`,{className:u.tokenString,children:e},t):r?(0,a.jsx)(`span`,{className:u.tokenKeyword,children:e},t):(0,a.jsx)(i.default.Fragment,{children:e},t)}),m=({code:e,filename:o,onCopy:s,editable:c=!1,onChange:l,placeholder:d,className:f})=>{let[m,h]=i.default.useState(!1),[g,_]=i.default.useState(e);i.default.useEffect(()=>_(e),[e]);let v=()=>{navigator.clipboard?.writeText(g),s?.(g),h(!0),window.setTimeout(()=>h(!1),1500)},y=e=>{_(e),l?.(e)},b=c?(0,a.jsxs)(`div`,{className:u.editableBody,children:[(0,a.jsx)(`pre`,{className:u.body,"aria-hidden":`true`,children:p(g)}),(0,a.jsx)(`textarea`,{className:u.textarea,value:g,placeholder:d,spellCheck:!1,onChange:e=>y(e.target.value),onKeyDown:e=>{if(e.key!==`Tab`)return;e.preventDefault();let t=e.currentTarget,{selectionStart:n,selectionEnd:r}=t,i=`${g.slice(0,n)} ${g.slice(r)}`;y(i),requestAnimationFrame(()=>{t.selectionStart=t.selectionEnd=n+2})}})]}):(0,a.jsx)(`pre`,{className:u.body,children:p(g)});return o?(0,a.jsxs)(`div`,{className:[u.snippet,f??``].filter(Boolean).join(` `),children:[(0,a.jsxs)(`div`,{className:u.header,children:[(0,a.jsx)(`p`,{className:u.filename,children:o}),(0,a.jsx)(t.Dt,{icon:m?n.M:r.u,variant:`ghost`,size:`sm`,"aria-label":m?`Copied`:`Copy code`,onClick:v})]}),b]}):(0,a.jsx)(`div`,{className:[u.snippet,f??``].filter(Boolean).join(` `),children:b})},h={expenses:`_expenses_1imiq_1`,row:`_row_1imiq_10`,top:`_top_1imiq_18`,left:`_left_1imiq_26`,icon:`_icon_1imiq_32`,label:`_label_1imiq_44`,amount:`_amount_1imiq_55`},g=e=>e.toLocaleString(`en-US`,{style:`currency`,currency:`USD`}),_=({categories:e,variant:n=`default`,formatAmount:r=g,className:i})=>{let o=n===`compact`,s=Math.max(1,...e.map(e=>e.amount));return(0,a.jsx)(`div`,{className:[h.expenses,i??``].filter(Boolean).join(` `),children:e.map((e,n)=>(0,a.jsxs)(`div`,{className:h.row,children:[(0,a.jsxs)(`div`,{className:h.top,children:[(0,a.jsxs)(`div`,{className:h.left,children:[(0,a.jsx)(`span`,{className:h.icon,"aria-hidden":`true`,children:e.icon}),(0,a.jsx)(`p`,{className:h.label,children:e.label})]}),(0,a.jsx)(`p`,{className:h.amount,children:r(e.amount)})]}),!o&&(0,a.jsx)(t.St,{value:e.amount/s*100,size:`lg`,label:`${e.label} spending`})]},e.id??n))})},v={hint:`_hint_49nyi_1`,bar:`_bar_49nyi_9`,"hint--neutral":`_hint--neutral_49nyi_15`,"hint--warning":`_hint--warning_49nyi_16`,icon:`_icon_49nyi_18`,message:`_message_49nyi_24`},y=14,b=({message:e,variant:i=`neutral`,className:o})=>{let s=i===`warning`?n.z:r.l;return(0,a.jsxs)(`div`,{className:[v.hint,v[`hint--${i}`],o??``].filter(Boolean).join(` `),children:[(0,a.jsx)(`span`,{className:v.bar,"aria-hidden":`true`}),(0,a.jsx)(s,{size:y,strokeWidth:t.Pt(y),className:v.icon}),(0,a.jsx)(`p`,{className:v.message,children:e})]})},x={item:`_item_jnz6o_1`,"item--horizontal":`_item--horizontal_jnz6o_6`,"item--vertical":`_item--vertical_jnz6o_11`,"text--single":`_text--single_jnz6o_18`,text:`_text_jnz6o_18`,value:`_value_jnz6o_28`,topRow:`_topRow_jnz6o_43`,connectorHorizontal:`_connectorHorizontal_jnz6o_48`,rail:`_rail_jnz6o_56`,connectorVertical:`_connectorVertical_jnz6o_63`,title:`_title_jnz6o_77`,description:`_description_jnz6o_85`},S=({step:e,title:r,description:i,completed:o=!1,orientation:s=`horizontal`,isLast:c=!1,className:l})=>{let u=s===`vertical`,d=(0,a.jsx)(`span`,{className:x.value,"aria-hidden":`true`,children:o?(0,a.jsx)(n.M,{size:14,strokeWidth:t.Pt(14)}):e}),f=(0,a.jsxs)(`div`,{className:[x.text,i?``:x[`text--single`]].filter(Boolean).join(` `),children:[(0,a.jsx)(`p`,{className:x.title,children:r}),i&&(0,a.jsx)(`p`,{className:x.description,children:i})]});return u?(0,a.jsxs)(`div`,{className:[x.item,x[`item--vertical`],l??``].filter(Boolean).join(` `),children:[(0,a.jsxs)(`div`,{className:x.rail,children:[d,!c&&(0,a.jsx)(`div`,{className:x.connectorVertical})]}),f]}):(0,a.jsxs)(`div`,{className:[x.item,x[`item--horizontal`],l??``].filter(Boolean).join(` `),children:[(0,a.jsxs)(`div`,{className:x.topRow,children:[d,!c&&(0,a.jsx)(`div`,{className:x.connectorHorizontal})]}),f]})},C={separator:`_separator_pcfo8_1`,line:`_line_pcfo8_9`,overline:`_overline_pcfo8_19`,badge:`_badge_pcfo8_31`,iconWrap:`_iconWrap_pcfo8_37`},w=({children:e,label:n,className:r})=>(0,a.jsxs)(`div`,{className:[C.separator,r??``].filter(Boolean).join(` `),role:`separator`,children:[(0,a.jsx)(t.ht,{className:C.line}),e??(n&&(0,a.jsx)(`span`,{className:C.overline,children:n})),(0,a.jsx)(t.ht,{className:C.line})]}),T={row:`_row_5wjem_2`,left:`_left_5wjem_16`,logo:`_logo_5wjem_23`,logoLg:`_logoLg_5wjem_29`,text:`_text_5wjem_36`,symbol:`_symbol_5wjem_42`,name:`_name_5wjem_50`,right:`_right_5wjem_59`,price:`_price_5wjem_65`,changeRow:`_changeRow_5wjem_73`,changeText:`_changeText_5wjem_78`,trendUp:`_trendUp_5wjem_84`,trendDown:`_trendDown_5wjem_85`,card:`_card_5wjem_88`,header:`_header_5wjem_102`,headerIcon:`_headerIcon_5wjem_109`,headerLabel:`_headerLabel_5wjem_110`,tickerRow:`_tickerRow_5wjem_117`,body:`_body_5wjem_125`,priceRow:`_priceRow_5wjem_132`,priceGroup:`_priceGroup_5wjem_139`,priceLg:`_priceLg_5wjem_144`,changeRowLg:`_changeRowLg_5wjem_153`,changeTextLg:`_changeTextLg_5wjem_158`,chart:`_chart_5wjem_165`},E=e=>Math.abs(e).toLocaleString(`en-US`,{style:`currency`,currency:`USD`}),D=({logo:e,symbol:i,name:o,price:s,change:c,formatAmount:l=E,chart:u,periodLabel:d=`Last 6 months`,onPeriodClick:f,className:p})=>{let m=c.amount>=0,h=m?n.P:n.N,g=m?`+`:`-`,_=`${g}${l(c.amount)} (${g}${Math.abs(c.percent)}%)`,v=m?T.trendUp:T.trendDown;return u?(0,a.jsxs)(`div`,{className:[T.card,p??``].filter(Boolean).join(` `),children:[(0,a.jsxs)(`div`,{className:T.header,children:[(0,a.jsx)(r.c,{size:16,strokeWidth:t.Pt(16),className:T.headerIcon}),(0,a.jsx)(`span`,{className:T.headerLabel,children:`Stock market`})]}),(0,a.jsxs)(`div`,{className:T.tickerRow,children:[(0,a.jsx)(`span`,{className:T.logoLg,"aria-hidden":`true`,children:e}),(0,a.jsxs)(`div`,{className:T.text,children:[(0,a.jsx)(`p`,{className:T.symbol,children:i}),(0,a.jsx)(`p`,{className:T.name,children:o})]})]}),(0,a.jsxs)(`div`,{className:T.body,children:[(0,a.jsxs)(`div`,{className:T.priceRow,children:[(0,a.jsxs)(`div`,{className:T.priceGroup,children:[(0,a.jsx)(`p`,{className:T.priceLg,children:l(s)}),(0,a.jsxs)(`div`,{className:T.changeRowLg,children:[(0,a.jsx)(h,{size:24,strokeWidth:t.Pt(24),className:v}),(0,a.jsx)(`span`,{className:[T.changeTextLg,v].join(` `),children:_})]})]}),(0,a.jsx)(t.Et,{variant:`outline`,size:`sm`,rightIcon:(0,a.jsx)(n.A,{size:16,strokeWidth:t.Pt(16)}),onClick:f,children:d})]}),(0,a.jsx)(t.st,{data:u,className:T.chart})]})]}):(0,a.jsxs)(`div`,{className:[T.row,p??``].filter(Boolean).join(` `),children:[(0,a.jsxs)(`div`,{className:T.left,children:[(0,a.jsx)(`span`,{className:T.logo,"aria-hidden":`true`,children:e}),(0,a.jsxs)(`div`,{className:T.text,children:[(0,a.jsx)(`p`,{className:T.symbol,children:i}),(0,a.jsx)(`p`,{className:T.name,children:o})]})]}),(0,a.jsxs)(`div`,{className:T.right,children:[(0,a.jsx)(`p`,{className:T.price,children:l(s)}),(0,a.jsxs)(`div`,{className:T.changeRow,children:[(0,a.jsx)(h,{size:20,strokeWidth:t.Pt(20),className:v}),(0,a.jsx)(`span`,{className:[T.changeText,v].join(` `),children:_})]})]})]})},O={tags:`_tags_bsi1x_1`,remove:`_remove_bsi1x_8`,tag:`_tag_bsi1x_1`,"tag--leaving":`_tag--leaving_bsi1x_22`},k=160,A=({tags:e,onRemove:r,className:o})=>{let[s,c]=i.default.useState(null),l=i.default.useRef(void 0);i.default.useEffect(()=>()=>window.clearTimeout(l.current),[]);let u=(e,t)=>{if(!(!r||s)){if(window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches){r(e,t);return}c(e),l.current=window.setTimeout(()=>{r(e,t),c(null)},k)}};return(0,a.jsx)(`div`,{className:[O.tags,o??``].filter(Boolean).join(` `),children:e.map((e,i)=>(0,a.jsx)(t.ot,{className:[O.tag,s===e?O[`tag--leaving`]:``].filter(Boolean).join(` `),rightIcon:r&&(0,a.jsx)(`button`,{type:`button`,className:O.remove,onClick:()=>u(e,i),"aria-label":`Remove ${e}`,children:(0,a.jsx)(n.R,{size:12,strokeWidth:t.Pt(12)})}),children:e},e))})},j={ticker:`_ticker_6xnxy_1`,track:`_track_6xnxy_9`,"ticker-scroll":`_ticker-scroll_6xnxy_1`,row:`_row_6xnxy_24`,item:`_item_6xnxy_33`,symbol:`_symbol_6xnxy_40`,change:`_change_6xnxy_49`,trendUp:`_trendUp_6xnxy_57`,trendDown:`_trendDown_6xnxy_58`,fadeLeft:`_fadeLeft_6xnxy_60`,fadeRight:`_fadeRight_6xnxy_61`},M=e=>`${e>=0?`+`:``}${e}%`,N=({items:e,formatChange:r,ariaHidden:i})=>(0,a.jsx)(`div`,{className:j.row,"aria-hidden":i,children:e.map((e,i)=>{let o=e.changePercent>=0,s=o?n.P:n.N,c=o?j.trendUp:j.trendDown;return(0,a.jsxs)(`div`,{className:j.item,children:[(0,a.jsx)(`span`,{className:j.symbol,children:e.symbol}),(0,a.jsx)(s,{size:14,strokeWidth:t.Pt(14),className:c}),(0,a.jsx)(`span`,{className:[j.change,c].join(` `),children:r(e.changePercent)})]},`${e.symbol}-${i}`)})}),ee=({items:e,speed:t=40,formatChange:n=M,className:r})=>{let o=i.default.useRef(null),[s,c]=i.default.useState(20);return i.default.useEffect(()=>{let e=o.current;if(!e)return;let n=e.firstElementChild;if(!n)return;let r=()=>{let e=n.scrollWidth;e>0&&c(e/t)};r();let i=new ResizeObserver(r);return i.observe(n),()=>i.disconnect()},[e,t]),(0,a.jsxs)(`div`,{className:[j.ticker,r??``].filter(Boolean).join(` `),children:[(0,a.jsxs)(`div`,{ref:o,className:j.track,style:{"--ticker-duration":`${s}s`},children:[(0,a.jsx)(N,{items:e,formatChange:n}),(0,a.jsx)(N,{items:e,formatChange:n,ariaHidden:!0})]}),(0,a.jsx)(`div`,{className:j.fadeLeft,"aria-hidden":`true`}),(0,a.jsx)(`div`,{className:j.fadeRight,"aria-hidden":`true`})]})},P={list:`_list_ovxee_1`,row:`_row_ovxee_9`,rowLast:`_rowLast_ovxee_18`,left:`_left_ovxee_22`,iconWrap:`_iconWrap_ovxee_29`,info:`_info_ovxee_41`,name:`_name_ovxee_46`,category:`_category_ovxee_54`,amount:`_amount_ovxee_63`,amountUp:`_amountUp_ovxee_71`,amountDown:`_amountDown_ovxee_72`,empty:`_empty_ovxee_75`,emptyIcon:`_emptyIcon_ovxee_86`,emptyTitle:`_emptyTitle_ovxee_89`,emptyDesc:`_emptyDesc_ovxee_96`},F=e=>`${e>=0?`+`:`-`}${Math.abs(e).toLocaleString(`en-US`,{style:`currency`,currency:`USD`})}`,te=({transactions:e,formatAmount:n=F,emptyTitle:i=`No transactions yet`,emptyDescription:o=`Your activity will show up here.`,className:s})=>e.length===0?(0,a.jsxs)(`div`,{className:[P.empty,s??``].filter(Boolean).join(` `),children:[(0,a.jsx)(r.s,{size:24,strokeWidth:t.Pt(24),className:P.emptyIcon}),(0,a.jsx)(`p`,{className:P.emptyTitle,children:i}),(0,a.jsx)(`p`,{className:P.emptyDesc,children:o})]}):(0,a.jsx)(`div`,{className:[P.list,s??``].filter(Boolean).join(` `),children:e.map((t,r)=>{let i=t.amount>=0;return(0,a.jsxs)(`div`,{className:[P.row,r===e.length-1?P.rowLast:``].filter(Boolean).join(` `),children:[(0,a.jsxs)(`div`,{className:P.left,children:[(0,a.jsx)(`span`,{className:P.iconWrap,"aria-hidden":`true`,children:t.icon}),(0,a.jsxs)(`div`,{className:P.info,children:[(0,a.jsx)(`p`,{className:P.name,children:t.name}),(0,a.jsx)(`p`,{className:P.category,children:t.category})]})]}),(0,a.jsx)(`p`,{className:[P.amount,i?P.amountUp:P.amountDown].join(` `),children:n(t.amount)})]},t.id??`${t.name}-${r}`)})}),I={root:`_root_19qxp_1`,rootAttributed:`_rootAttributed_19qxp_10`,rootSimple:`_rootSimple_19qxp_18`,rail:`_rail_19qxp_27`,body:`_body_19qxp_37`,markRow:`_markRow_19qxp_46`,markRowEnd:`_markRowEnd_19qxp_51`,mark:`_mark_19qxp_46`,quoteAttributed:`_quoteAttributed_19qxp_59`,quoteSimple:`_quoteSimple_19qxp_68`,author:`_author_19qxp_77`,authorText:`_authorText_19qxp_83`,authorName:`_authorName_19qxp_91`},ne=({quote:e,author:r,className:i})=>{let o=!!r;return(0,a.jsxs)(`div`,{className:[I.root,o?I.rootAttributed:I.rootSimple,i??``].filter(Boolean).join(` `),children:[(0,a.jsx)(t.ht,{orientation:`vertical`,className:I.rail}),(0,a.jsxs)(`div`,{className:I.body,children:[o&&(0,a.jsx)(`span`,{className:I.markRow,"aria-hidden":`true`,children:(0,a.jsx)(n.w,{size:12,strokeWidth:t.Pt(12),className:I.mark,fill:`currentColor`})}),(0,a.jsx)(`p`,{className:o?I.quoteAttributed:I.quoteSimple,children:o?e:`"${e}"`}),o&&(0,a.jsx)(`span`,{className:[I.markRow,I.markRowEnd].join(` `),"aria-hidden":`true`,children:(0,a.jsx)(n.w,{size:12,strokeWidth:t.Pt(12),className:I.mark,fill:`currentColor`})}),r&&(0,a.jsxs)(`div`,{className:I.author,children:[(0,a.jsx)(t.jt,{size:`sm`,src:r.avatarSrc,alt:r.avatarAlt??r.name}),(0,a.jsxs)(`p`,{className:I.authorText,children:[(0,a.jsx)(`span`,{className:I.authorName,children:r.name}),(0,a.jsxs)(`span`,{className:I.authorRole,children:[`, `,r.role]})]})]})]})]})},L={root:`_root_btuyr_1`,rootLeft:`_rootLeft_btuyr_13`,rootTop:`_rootTop_btuyr_19`,ruleLeft:`_ruleLeft_btuyr_24`,ruleTop:`_ruleTop_btuyr_31`,text:`_text_btuyr_39`},re=({text:e,align:t=`left`,className:n})=>(0,a.jsxs)(`div`,{className:[L.root,t===`top`?L.rootTop:L.rootLeft,n??``].filter(Boolean).join(` `),children:[(0,a.jsx)(`span`,{className:t===`top`?L.ruleTop:L.ruleLeft,"aria-hidden":`true`}),(0,a.jsx)(`p`,{className:L.text,children:e})]}),ie={root:`_root_awxwk_1`,imageWrap:`_imageWrap_awxwk_10`,"root--large":`_root--large_awxwk_27`,"root--small":`_root--small_awxwk_33`,image:`_image_awxwk_10`,caption:`_caption_awxwk_47`},ae=({src:e,alt:t=``,size:n=`large`,caption:r,className:i})=>(0,a.jsxs)(`figure`,{className:[ie.root,ie[`root--${n}`],i??``].filter(Boolean).join(` `),children:[(0,a.jsx)(`span`,{className:ie.imageWrap,children:(0,a.jsx)(`img`,{src:e,alt:t,className:ie.image})}),r&&(0,a.jsx)(`figcaption`,{className:ie.caption,children:r})]}),oe={root:`_root_uc5r9_1`,rootCenter:`_rootCenter_uc5r9_10`,rootLeft:`_rootLeft_uc5r9_15`,title:`_title_uc5r9_20`,description:`_description_uc5r9_30`,ctaRow:`_ctaRow_uc5r9_39`,avatarBlock:`_avatarBlock_uc5r9_45`,avatarsCaption:`_avatarsCaption_uc5r9_57`},se=({title:e,description:n,badgeLabel:i,primaryCta:o,secondaryCta:s,avatars:c,avatarsCaption:l,align:u=`center`,className:d})=>{let f=!!(o||s),p=!!(c&&c.length>0);return(0,a.jsxs)(`div`,{className:[oe.root,u===`left`?oe.rootLeft:oe.rootCenter,d??``].filter(Boolean).join(` `),children:[i&&(0,a.jsx)(t.ot,{variant:`accent`,emphasis:`subtle`,children:i}),(0,a.jsx)(`p`,{className:oe.title,children:e}),n&&(0,a.jsx)(`p`,{className:oe.description,children:n}),f&&(0,a.jsxs)(`div`,{className:oe.ctaRow,children:[o&&(0,a.jsx)(t.Et,{variant:`primary`,onClick:o.onClick,children:o.label}),s&&(0,a.jsx)(t.Et,{variant:`secondary`,leftIcon:(0,a.jsx)(r.o,{size:16,strokeWidth:t.Pt(16),fill:`currentColor`}),onClick:s.onClick,children:s.label})]}),p&&(0,a.jsxs)(`div`,{className:oe.avatarBlock,children:[(0,a.jsx)(t.U,{size:`md`,avatars:c}),l&&(0,a.jsx)(`p`,{className:oe.avatarsCaption,children:l})]})]})},ce={root:`_root_5kajg_1`,item:`_item_5kajg_12`,marker:`_marker_5kajg_18`,dot:`_dot_5kajg_26`,label:`_label_5kajg_34`},R=({items:e,style:i=`check`,className:o})=>(0,a.jsx)(`ul`,{className:[ce.root,o??``].filter(Boolean).join(` `),children:e.map((e,o)=>(0,a.jsxs)(`li`,{className:ce.item,children:[(0,a.jsxs)(`span`,{className:ce.marker,"aria-hidden":`true`,children:[i===`check`&&(0,a.jsx)(n.M,{size:18,strokeWidth:t.Pt(18)}),i===`arrow`&&(0,a.jsx)(r.a,{size:16,strokeWidth:t.Pt(16)}),i===`bullet`&&(0,a.jsx)(`span`,{className:ce.dot})]}),(0,a.jsx)(`span`,{className:ce.label,children:e})]},o))}),z={marquee:`_marquee_1pc4i_1`,track:`_track_1pc4i_13`,row:`_row_1pc4i_19`,item:`_item_1pc4i_25`,fadeLeft:`_fadeLeft_1pc4i_31`,fadeRight:`_fadeRight_1pc4i_32`},le=({items:e,gap:t,ariaHidden:n})=>(0,a.jsx)(`div`,{className:z.row,style:{gap:t,paddingRight:t},"aria-hidden":n,children:e.map((e,t)=>(0,a.jsx)(`div`,{className:z.item,children:e},t))}),B=({items:e,speed:t=40,gap:n,className:r})=>{let o=i.default.useRef(null),s=i.default.useRef(0),c=i.default.useRef(0),l=i.default.useRef(!1);return i.default.useEffect(()=>{let e=o.current?.firstElementChild;if(!e)return;let t=()=>{s.current=e.scrollWidth};t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[e,n]),i.default.useEffect(()=>{let e=o.current;if(!e||window.matchMedia(`(prefers-reduced-motion: reduce)`).matches)return;let n,r=performance.now(),i=()=>{let a=performance.now(),o=(a-r)/1e3;r=a;let u=l.current?t*.2:t,d=s.current;d>0&&(c.current=(c.current+u*o)%d,e.style.transform=`translateX(-${c.current}px)`),n=setTimeout(i,16)};return n=setTimeout(i,16),()=>clearTimeout(n)},[t]),(0,a.jsxs)(`div`,{className:[z.marquee,r??``].filter(Boolean).join(` `),onMouseEnter:()=>{l.current=!0},onMouseLeave:()=>{l.current=!1},children:[(0,a.jsxs)(`div`,{ref:o,className:z.track,children:[(0,a.jsx)(le,{items:e,gap:n}),(0,a.jsx)(le,{items:e,gap:n,ariaHidden:!0})]}),(0,a.jsx)(`div`,{className:z.fadeLeft,"aria-hidden":`true`}),(0,a.jsx)(`div`,{className:z.fadeRight,"aria-hidden":`true`})]})},V={root:`_root_17a1b_1`,numRow:`_numRow_17a1b_9`,value:`_value_17a1b_15`,trend:`_trend_17a1b_25`,trendUp:`_trendUp_17a1b_35`,trendDown:`_trendDown_17a1b_39`,label:`_label_17a1b_43`},ue=({value:e,label:r,trend:i,className:o})=>{let s=i!==void 0,c=s&&i>=0,l=c?n.P:n.N;return(0,a.jsxs)(`div`,{className:[V.root,o??``].filter(Boolean).join(` `),children:[(0,a.jsxs)(`div`,{className:V.numRow,children:[(0,a.jsx)(`p`,{className:V.value,children:e}),s&&(0,a.jsxs)(`span`,{className:[V.trend,c?V.trendUp:V.trendDown].join(` `),children:[(0,a.jsx)(l,{size:24,strokeWidth:t.Pt(24)}),Math.abs(i),`%`]})]}),(0,a.jsx)(`p`,{className:V.label,children:r})]})},H={root:`_root_scbx4_1`,header:`_header_scbx4_13`,label:`_label_scbx4_21`,toggle:`_toggle_scbx4_34`,fullWidth:`_fullWidth_scbx4_48`,collapse:`_collapse_scbx4_67`,collapseOpen:`_collapseOpen_scbx4_74`,collapseInner:`_collapseInner_scbx4_78`,navLinks:`_navLinks_scbx4_91`,navLink:`_navLink_scbx4_91`},de=({label:e,links:r,ctaLabel:o=`Get started`,onCtaClick:s,open:c,defaultOpen:l=!1,onOpenChange:u,className:d})=>{let f=c!==void 0,[p,m]=i.default.useState(l),h=f?c:p,g=()=>{let e=!h;f||m(e),u?.(e)},_=i.default.useRef(null),[v,y]=i.default.useState(0);return i.default.useEffect(()=>{let e=_.current;if(!e)return;let t=()=>y(e.scrollHeight);t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[r,o]),(0,a.jsxs)(`div`,{className:[H.root,d??``].filter(Boolean).join(` `),children:[(0,a.jsxs)(`div`,{className:H.header,children:[(0,a.jsx)(`p`,{className:H.label,children:e}),(0,a.jsx)(`button`,{type:`button`,className:H.toggle,onClick:g,"aria-expanded":h,"aria-label":h?`Close menu`:`Open menu`,children:h?(0,a.jsx)(n.R,{size:16,strokeWidth:t.Pt(16)}):(0,a.jsx)(n.C,{size:16,strokeWidth:t.Pt(16)})})]}),(0,a.jsx)(`div`,{className:[H.collapse,h?H.collapseOpen:``].filter(Boolean).join(` `),style:{maxHeight:h?`${v}px`:`0px`},"aria-hidden":!h,children:(0,a.jsxs)(`div`,{ref:_,className:H.collapseInner,children:[(0,a.jsx)(`nav`,{className:H.navLinks,"aria-label":e,children:r.map(e=>(0,a.jsx)(`a`,{href:e.href,onClick:e.onClick,className:H.navLink,tabIndex:h?void 0:-1,children:e.label},e.label))}),(0,a.jsx)(t.ht,{className:H.fullWidth}),(0,a.jsx)(t.Et,{variant:`primary`,className:H.fullWidth,onClick:s,tabIndex:h?void 0:-1,children:o})]})})]})},U={root:`_root_lrpdp_1`,"root--sm":`_root--sm_lrpdp_14`,"root--md":`_root--md_lrpdp_18`,"root--lg":`_root--lg_lrpdp_22`,defaultMark:`_defaultMark_lrpdp_27`},fe={sm:14,md:16,lg:18},pe=({size:e=`md`,logo:n,label:r,className:o})=>{let s=fe[e],c=i.default.isValidElement(n)?i.default.cloneElement(n,{size:s,strokeWidth:t.Pt(s)}):n??(0,a.jsx)(`span`,{className:U.defaultMark,style:{width:s,height:s},children:(0,a.jsx)(t.B,{size:s})});return(0,a.jsx)(`span`,{className:[U.root,U[`root--${e}`],o??``].filter(Boolean).join(` `),role:`img`,"aria-label":r??`Logo placeholder`,children:c})},me={root:`_root_ibchq_1`,rootCompact:`_rootCompact_ibchq_7`,rootDetailed:`_rootDetailed_ibchq_14`,infoCompact:`_infoCompact_ibchq_21`,infoDetailed:`_infoDetailed_ibchq_27`,name:`_name_ibchq_35`,role:`_role_ibchq_44`,bio:`_bio_ibchq_53`,social:`_social_ibchq_63`,socialBtn:`_socialBtn_ibchq_71`},he=({name:e,role:n,avatarSrc:r,avatarAlt:i,bio:o,socialLinks:s=[],className:c})=>{let l=!!o||s.length>0;return(0,a.jsxs)(`div`,{className:[me.root,l?me.rootDetailed:me.rootCompact,c??``].filter(Boolean).join(` `),children:[(0,a.jsx)(t.jt,{size:`xl`,src:r,alt:i??e}),(0,a.jsxs)(`div`,{className:l?me.infoDetailed:me.infoCompact,children:[(0,a.jsx)(`p`,{className:me.name,children:e}),(0,a.jsx)(`p`,{className:me.role,children:n})]}),l&&o&&(0,a.jsx)(`p`,{className:me.bio,children:o}),l&&s.length>0&&(0,a.jsx)(`div`,{className:me.social,children:s.map((e,t)=>(0,a.jsx)(`a`,{href:e.href,onClick:e.onClick,className:me.socialBtn,"aria-label":e.label,children:e.icon},e.label??t))})]})},ge=({size:e=16})=>(0,a.jsx)(`svg`,{width:e,height:e,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,children:(0,a.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,fill:`currentColor`,d:`M9.48933 6.77467L15.318 0H13.9367L8.876 5.88267L4.834 0H0.172L6.284 8.89533L0.172 16H1.55333L6.89733 9.788L11.166 16H15.828L9.48933 6.77467ZM7.598 8.974L6.97867 8.088L2.05067 1.04H4.172L8.14867 6.728L8.768 7.614L13.9373 15.0073H11.816L7.598 8.974Z`})}),_e=({size:e=16})=>(0,a.jsx)(`svg`,{width:e,height:e,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,children:(0,a.jsx)(`path`,{fill:`currentColor`,stroke:`currentColor`,strokeWidth:`0.5`,d:`M5.2627 14.9109C5.24063 14.9019 5.21825 14.8937 5.19629 14.8845C5.21828 14.8846 5.2404 14.8849 5.2627 14.8845C5.26277 14.8934 5.26262 14.9022 5.2627 14.9109ZM8 0.948C12.0038 0.948 15.25 4.19421 15.25 8.198C15.25 11.2321 13.382 13.8337 10.7119 14.9041C10.7126 14.8154 10.7132 14.7175 10.7139 14.6111C10.7164 14.2289 10.7197 13.7443 10.7197 13.2068C10.7197 12.8702 10.6752 12.5602 10.5967 12.282C11.2251 12.1236 11.8603 11.8618 12.4033 11.407C13.3035 10.6531 13.8291 9.48051 13.8291 7.78003C13.8291 6.87672 13.5529 6.10004 13.0859 5.46265C13.1914 4.97309 13.2464 4.1873 12.8779 3.24292L12.748 2.91089L12.4082 2.80152L12.1885 3.48902C12.4086 2.8019 12.407 2.80174 12.4062 2.80152L12.4053 2.80054L12.3965 2.79761C12.3923 2.79634 12.3874 2.79501 12.3828 2.7937C12.3738 2.79113 12.364 2.78851 12.3535 2.78589C12.3324 2.78061 12.3081 2.77611 12.2812 2.77124C12.2271 2.76146 12.1615 2.75326 12.085 2.74976C11.9315 2.74276 11.7366 2.75416 11.499 2.80445C11.0816 2.8928 10.5376 3.09872 9.85352 3.52808C9.24662 3.38844 8.61824 3.31986 7.99414 3.31616H7.98535C7.36044 3.31984 6.73069 3.3881 6.12305 3.52808C5.43488 3.09865 4.88896 2.89272 4.4707 2.80445C4.23272 2.75425 4.03733 2.74275 3.88379 2.74976C3.80726 2.75325 3.74164 2.76049 3.6875 2.77027C3.66056 2.77514 3.63643 2.78059 3.61523 2.78589C3.60476 2.78851 3.59499 2.79113 3.58594 2.7937C3.58136 2.79501 3.57647 2.79634 3.57227 2.79761L3.56348 2.80054L3.56152 2.80152C3.56163 2.80419 3.57406 2.84531 3.78906 3.51636L3.56055 2.80152L3.2207 2.91089L3.09082 3.24292C2.72472 4.18117 2.77327 4.9675 2.88574 5.46851C2.41945 6.10504 2.14648 6.88031 2.14648 7.78003C2.14649 8.97574 2.40791 9.91025 2.87598 10.6228C2.76692 10.5961 2.65215 10.5747 2.53027 10.5662L2.50879 10.5642H2.46289C2.45155 10.5643 2.43701 10.5646 2.41992 10.5652C2.3862 10.5664 2.33899 10.569 2.28516 10.575C2.20712 10.5835 2.00131 10.6093 1.80762 10.7195C1.70282 10.7791 1.53342 10.9016 1.43457 11.1267C1.42275 11.1537 1.41196 11.181 1.40332 11.2078C0.984401 10.291 0.75 9.27198 0.75 8.198C0.75 4.19409 3.99434 0.948 8 0.948ZM4.51855 11.9919C4.75868 12.0994 5.00485 12.1834 5.25098 12.2517C5.17809 12.2603 5.10423 12.266 5.03125 12.2595C4.87853 12.2459 4.69843 12.1922 4.51855 11.9919Z`})}),ve={heading:`_heading_96cdx_1`,h2:`_h2_96cdx_8`,h3:`_h3_96cdx_14`},ye=({children:e,level:t=`h2`,className:n})=>(0,a.jsx)(t,{className:[ve.heading,ve[t],n??``].filter(Boolean).join(` `),children:e}),be={paragraph:`_paragraph_8pqdi_1`},xe=({children:e,className:t})=>(0,a.jsx)(`p`,{className:[be.paragraph,t??``].filter(Boolean).join(` `),children:e}),Se={rootBordered:`_rootBordered_5cgsj_1`,rail:`_rail_5cgsj_12`,contentHorizontal:`_contentHorizontal_5cgsj_18`,contentVertical:`_contentVertical_5cgsj_25`,textHorizontal:`_textHorizontal_5cgsj_33`,textVertical:`_textVertical_5cgsj_41`,title:`_title_5cgsj_49`,description:`_description_5cgsj_57`},Ce=({icon:e,title:n,description:r,layout:o=`horizontal`,leftBorder:s=!1,className:c})=>{let l=o===`vertical`,u=(0,a.jsxs)(`div`,{className:l?Se.contentVertical:Se.contentHorizontal,children:[(0,a.jsx)(t.W,{icon:e,size:`sm`,variant:`light`}),(0,a.jsxs)(`div`,{className:l?Se.textVertical:Se.textHorizontal,children:[(0,a.jsx)(`p`,{className:Se.title,children:n}),(0,a.jsx)(`p`,{className:Se.description,children:r})]})]});return s?(0,a.jsxs)(`div`,{className:[Se.rootBordered,c??``].filter(Boolean).join(` `),children:[(0,a.jsx)(t.ht,{orientation:`vertical`,className:Se.rail}),u]}):i.default.cloneElement(u,{className:[u.props.className,c??``].filter(Boolean).join(` `)})},we=({size:e=16})=>(0,a.jsx)(`svg`,{width:e,height:e,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,children:(0,a.jsx)(`path`,{d:`M11.6667 4.33333H11.6733M4.66667 1.33333H11.3333C13.1743 1.33333 14.6667 2.82572 14.6667 4.66667V11.3333C14.6667 13.1743 13.1743 14.6667 11.3333 14.6667H4.66667C2.82572 14.6667 1.33333 13.1743 1.33333 11.3333V4.66667C1.33333 2.82572 2.82572 1.33333 4.66667 1.33333ZM10.6666 7.58004C10.7489 8.13487 10.6541 8.70152 10.3958 9.19938C10.1375 9.69725 9.72873 10.101 9.22772 10.3532C8.7267 10.6053 8.15893 10.6931 7.60516 10.604C7.05138 10.5149 6.53981 10.2534 6.14319 9.85681C5.74658 9.4602 5.48512 8.94862 5.39601 8.39485C5.3069 7.84107 5.39468 7.2733 5.64685 6.77229C5.89903 6.27127 6.30276 5.86253 6.80062 5.6042C7.29849 5.34587 7.86514 5.2511 8.41997 5.33337C8.98592 5.41729 9.50987 5.68101 9.91443 6.08558C10.319 6.49014 10.5827 7.01409 10.6666 7.58004Z`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})}),Te=({size:e=16})=>(0,a.jsx)(`svg`,{width:e,height:e,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,children:(0,a.jsx)(`path`,{d:`M12 1.33333H10C9.11594 1.33333 8.2681 1.68452 7.64298 2.30964C7.01786 2.93477 6.66667 3.78261 6.66667 4.66667V6.66667H4.66667V9.33333H6.66667V14.6667H9.33333V9.33333H11.3333L12 6.66667H9.33333V4.66667C9.33333 4.48986 9.40357 4.32029 9.5286 4.19526C9.65362 4.07024 9.82319 4 10 4H12V1.33333Z`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})}),Ee=({size:e=16})=>(0,a.jsxs)(`svg`,{width:e,height:e,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,children:[(0,a.jsx)(`path`,{d:`M10.6667 5.33333C11.7275 5.33333 12.7449 5.75476 13.4951 6.50491C14.2452 7.25505 14.6667 8.27247 14.6667 9.33333V14H12V9.33333C12 8.97971 11.8595 8.64057 11.6095 8.39052C11.3594 8.14048 11.0203 8 10.6667 8C10.313 8 9.97391 8.14048 9.72386 8.39052C9.47381 8.64057 9.33333 8.97971 9.33333 9.33333V14H6.66667V9.33333C6.66667 8.27247 7.08809 7.25505 7.83824 6.50491C8.58838 5.75476 9.6058 5.33333 10.6667 5.33333Z`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,a.jsx)(`path`,{d:`M4 6H1.33333V14H4V6Z`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,a.jsx)(`path`,{d:`M2.66667 4C3.40305 4 4 3.40305 4 2.66667C4 1.93029 3.40305 1.33333 2.66667 1.33333C1.93029 1.33333 1.33333 1.93029 1.33333 2.66667C1.33333 3.40305 1.93029 4 2.66667 4Z`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),De={chart:`_chart_qqaox_2`},Oe={sm:180,md:240,lg:320,xl:420},ke=({data:e,variant:n=`default`,seriesLabels:r=[`Value`,`Value 2`],size:s=`md`,height:c,className:l})=>{let u=i.default.useRef(null),d=t.ut(u),f=d(`--color-chart-5`)??`#dca84f`,p=d(`--color-chart-2`)??`#5b92dd`,m=d(`--color-border-subtle`)??`#e7e5e1`,h=d(`--color-fg-muted`)??`#78716a`,g=e.some(e=>e.value2!==void 0),_=n===`step`?`step`:n===`linear`?`linear`:`monotone`,v=n===`stacked`?`stack`:void 0;return(0,a.jsx)(`div`,{ref:u,className:[De.chart,l??``].filter(Boolean).join(` `),children:(0,a.jsx)(o.ResponsiveContainer,{width:`100%`,height:c??Oe[s],children:(0,a.jsxs)(o.AreaChart,{data:e,margin:{top:8,right:8,bottom:8,left:0},children:[(0,a.jsxs)(`defs`,{children:[(0,a.jsxs)(`linearGradient`,{id:`sakani-area-1`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,a.jsx)(`stop`,{offset:`5%`,stopColor:f,stopOpacity:.35}),(0,a.jsx)(`stop`,{offset:`95%`,stopColor:f,stopOpacity:.02})]}),(0,a.jsxs)(`linearGradient`,{id:`sakani-area-2`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,a.jsx)(`stop`,{offset:`5%`,stopColor:p,stopOpacity:.35}),(0,a.jsx)(`stop`,{offset:`95%`,stopColor:p,stopOpacity:.02})]})]}),(0,a.jsx)(o.CartesianGrid,{strokeDasharray:`3 3`,stroke:m,vertical:!1}),(0,a.jsx)(o.XAxis,{dataKey:`label`,stroke:h,fontSize:12,tickLine:!1,axisLine:!1,interval:0}),(0,a.jsx)(o.Tooltip,{cursor:{stroke:d(`--color-border-default`)??`#dbdad7`,strokeWidth:1},content:(0,a.jsx)(t.ct,{}),wrapperStyle:{zIndex:50}}),g&&(0,a.jsx)(o.Area,{type:_,dataKey:`value2`,name:r[1]??`Value 2`,stackId:v,stroke:p,strokeWidth:2,fill:`url(#sakani-area-2)`,dot:!1,activeDot:{r:4,fill:p,stroke:d(`--color-bg-canvas`),strokeWidth:1.5}}),(0,a.jsx)(o.Area,{type:_,dataKey:`value`,name:r[0]??`Value`,stackId:v,stroke:f,strokeWidth:2,fill:`url(#sakani-area-1)`,dot:!1,activeDot:{r:4,fill:f,stroke:d(`--color-bg-canvas`),strokeWidth:1.5}})]})})})},W={col:`_col_1v24u_2`,col__header:`_col__header_1v24u_11`,col__dot:`_col__dot_1v24u_12`,col__title:`_col__title_1v24u_13`,col__count:`_col__count_1v24u_14`,col__spacer:`_col__spacer_1v24u_15`,col__action:`_col__action_1v24u_16`,col__body:`_col__body_1v24u_24`,col__drop:`_col__drop_1v24u_25`,col__add:`_col__add_1v24u_31`},Ae=({state:e=`default`,title:r,count:i,dotColor:o=`var(--color-chart-1)`,children:s,onAdd:c,onMenu:l,className:u})=>(0,a.jsxs)(`div`,{className:[W.col,u??``].filter(Boolean).join(` `),children:[(0,a.jsxs)(`div`,{className:W.col__header,children:[(0,a.jsx)(`span`,{className:W.col__dot,style:{background:o},"aria-hidden":`true`}),(0,a.jsx)(`span`,{className:W.col__title,children:r}),i!=null&&(0,a.jsx)(`span`,{className:W.col__count,children:i}),(0,a.jsx)(`span`,{className:W.col__spacer}),(0,a.jsx)(`button`,{type:`button`,className:W.col__action,onClick:c,"aria-label":`Add task`,children:(0,a.jsx)(n.O,{size:16,strokeWidth:t.Pt(16)})}),(0,a.jsx)(`button`,{type:`button`,className:W.col__action,onClick:l,"aria-label":`Column options`,children:(0,a.jsx)(n.S,{size:16,strokeWidth:t.Pt(16)})})]}),(0,a.jsx)(`div`,{className:W.col__body,children:e===`empty`?(0,a.jsx)(`div`,{className:W.col__drop,children:`Drop tasks here`}):s}),(0,a.jsxs)(`button`,{type:`button`,className:W.col__add,onClick:c,children:[(0,a.jsx)(n.O,{size:16,strokeWidth:t.Pt(16),"aria-hidden":`true`}),`Add task`]})]}),G={calendar:`_calendar_qvyxg_2`,header:`_header_qvyxg_14`,header__label:`_header__label_qvyxg_15`,navBtn:`_navBtn_qvyxg_16`,weekdays:`_weekdays_qvyxg_27`,weekday:`_weekday_qvyxg_27`,grid:`_grid_qvyxg_34`,day:`_day_qvyxg_35`,"day--default":`_day--default_qvyxg_49`,"day--hover":`_day--hover_qvyxg_50`,"day--selected":`_day--selected_qvyxg_51`,"day--today":`_day--today_qvyxg_52`,"day--in-range":`_day--in-range_qvyxg_53`,"day--outside":`_day--outside_qvyxg_54`,"day--disabled":`_day--disabled_qvyxg_55`,dropdowns:`_dropdowns_qvyxg_58`,dropdown:`_dropdown_qvyxg_58`},je=[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],Me=[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],Ne=(e,t)=>!!e&&!!t&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate(),Pe=e=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),Fe=({mode:e=`single`,value:r,onChange:o,range:s,onRangeChange:c,headerType:l=`arrows`,defaultMonth:u,minDate:d,maxDate:f,className:p})=>{let[m,h]=i.default.useState(()=>{let e=u??r??s?.from??new Date;return new Date(e.getFullYear(),e.getMonth(),1)}),[g,_]=i.default.useState({}),v=t.F(),y=s===void 0?g:s,b=new Date,x=m.getFullYear(),S=m.getMonth(),C=new Date(x,S,1).getDay(),w=new Date(x,S,1-C),T=Array.from({length:42},(e,t)=>new Date(w.getFullYear(),w.getMonth(),w.getDate()+t)),E=e=>d&&e<Pe(d)||f&&e>f,D=e=>{s===void 0&&_(e),c?.(e)},O=t=>{if(e===`single`){o?.(t);return}let{from:n,to:r}=y;D(!n||n&&r?{from:t,to:void 0}:t<n?{from:t,to:n}:{from:n,to:t})},k=t=>{if(E(t))return`disabled`;if(e===`single`){if(Ne(t,r))return`selected`}else{let{from:e,to:n}=y;if(Ne(t,e)||Ne(t,n))return`selected`;if(e&&n&&t>e&&t<n)return`in-range`}return t.getMonth()===S?Ne(t,b)?`today`:`default`:`outside`},A=d?d.getFullYear():x-10,j=f?f.getFullYear():x+10,M=Array.from({length:j-A+1},(e,t)=>A+t);return(0,a.jsxs)(`div`,{className:[G.calendar,p??``].filter(Boolean).join(` `),children:[(0,a.jsxs)(`div`,{className:G.header,children:[(0,a.jsx)(`button`,{type:`button`,className:G.navBtn,onClick:()=>h(new Date(x,S-1,1)),"aria-label":`Previous month`,children:(0,a.jsx)(n.x,{size:16,strokeWidth:t.Pt(16)})}),l===`dropdowns`?(0,a.jsxs)(`span`,{className:G.dropdowns,children:[(0,a.jsx)(`select`,{className:G.dropdown,value:S,onChange:e=>h(new Date(x,Number(e.target.value),1)),"aria-label":`Month`,children:Me.map((e,t)=>(0,a.jsx)(`option`,{value:t,children:e},e))}),(0,a.jsx)(`select`,{className:G.dropdown,value:x,onChange:e=>h(new Date(Number(e.target.value),S,1)),"aria-label":`Year`,children:M.map(e=>(0,a.jsx)(`option`,{value:e,children:e},e))})]}):(0,a.jsxs)(`span`,{className:G.header__label,children:[Me[S],` `,x]}),(0,a.jsx)(`button`,{type:`button`,className:G.navBtn,onClick:()=>h(new Date(x,S+1,1)),"aria-label":`Next month`,children:(0,a.jsx)(n.b,{size:16,strokeWidth:t.Pt(16)})})]}),(0,a.jsx)(`div`,{className:G.weekdays,children:je.map(e=>(0,a.jsx)(`span`,{className:G.weekday,children:e},e))}),(0,a.jsxs)(`div`,{ref:v.ref,...v.groupProps,className:G.grid,children:[v.highlight,T.map((e,t)=>{let n=k(e);return(0,a.jsx)(`button`,{type:`button`,"data-hover-item":``,className:[G.day,G[`day--${n}`]].filter(Boolean).join(` `),disabled:n===`disabled`,"aria-current":n===`today`?`date`:void 0,"aria-selected":n===`selected`,"aria-label":e.toLocaleDateString(void 0,{weekday:`long`,year:`numeric`,month:`long`,day:`numeric`}),onClick:()=>O(e),children:e.getDate()},t)})]})]})},Ie={card:`_card_1qpcc_3`,"card--interactive":`_card--interactive_1qpcc_22`,card__header:`_card__header_1qpcc_30`,card__title:`_card__title_1qpcc_34`,card__description:`_card__description_1qpcc_43`,card__body:`_card__body_1qpcc_53`,card__actions:`_card__actions_1qpcc_57`,"card__actions--split":`_card__actions--split_1qpcc_66`,card__actionsGroup:`_card__actionsGroup_1qpcc_67`},Le=({title:e,description:t,actions:n,leadingAction:r,interactive:i,children:o,className:s})=>(0,a.jsxs)(`div`,{className:[Ie.card,i?Ie[`card--interactive`]:``,s??``].filter(Boolean).join(` `),children:[(e||t)&&(0,a.jsxs)(`div`,{className:Ie.card__header,children:[e&&(0,a.jsx)(`h3`,{className:Ie.card__title,children:e}),t&&(0,a.jsx)(`p`,{className:Ie.card__description,children:t})]}),o&&(0,a.jsx)(`div`,{className:Ie.card__body,children:o}),(n||r)&&(r?(0,a.jsxs)(`div`,{className:[Ie.card__actions,Ie[`card__actions--split`]].join(` `),children:[r,(0,a.jsx)(`div`,{className:Ie.card__actionsGroup,children:n})]}):(0,a.jsx)(`div`,{className:Ie.card__actions,children:n}))]}),K={sr:`_sr_115fu_5`,root:`_root_115fu_17`,header:`_header_115fu_26`,header__icon:`_header__icon_115fu_44`,header__title:`_header__title_115fu_45`,header__chevron:`_header__chevron_115fu_46`,panel:`_panel_115fu_51`,panel__inner:`_panel__inner_115fu_59`,step:`_step_115fu_61`,steps:`_steps_115fu_71`,step__body:`_step__body_115fu_83`,step__row:`_step__row_115fu_115`,step__icon:`_step__icon_115fu_116`,step__content:`_step__content_115fu_117`,step__label:`_step__label_115fu_118`,step__query:`_step__query_115fu_119`,step__count:`_step__count_115fu_129`,"step--done":`_step--done_115fu_136`,"step--active":`_step--active_115fu_137`,"step--pending":`_step--pending_115fu_139`,step__sources:`_step__sources_115fu_145`,"step__sources--button":`_step__sources--button_115fu_157`,step__sourcesLabel:`_step__sourcesLabel_115fu_158`,step__sourcesChevron:`_step__sourcesChevron_115fu_160`,stack:`_stack_115fu_163`,chip:`_chip_115fu_164`,working:`_working_115fu_179`,indicator:`_indicator_115fu_180`,indicator__icon:`_indicator__icon_115fu_181`,indicator__label:`_indicator__label_115fu_182`,indicator__time:`_indicator__time_115fu_183`,"indicator--working":`_indicator--working_115fu_189`,"chain-of-thought-shimmer":`_chain-of-thought-shimmer_115fu_1`,"chain-of-thought-open":`_chain-of-thought-open_115fu_1`,"chain-of-thought-rail-down":`_chain-of-thought-rail-down_115fu_1`,"chain-of-thought-rail-across":`_chain-of-thought-rail-across_115fu_1`,"chain-of-thought-land":`_chain-of-thought-land_115fu_1`,"chain-of-thought-write":`_chain-of-thought-write_115fu_1`,"chain-of-thought-type":`_chain-of-thought-type_115fu_1`,"chain-of-thought-fade-in":`_chain-of-thought-fade-in_115fu_1`,"chain-of-thought-row-open":`_chain-of-thought-row-open_115fu_1`,"chain-of-thought-fan":`_chain-of-thought-fan_115fu_1`,"chain-of-thought-spark-down":`_chain-of-thought-spark-down_115fu_1`,"chain-of-thought-spark-across":`_chain-of-thought-spark-across_115fu_1`,"chain-of-thought-beat":`_chain-of-thought-beat_115fu_1`,spark:`_spark_115fu_289`,spark__big:`_spark__big_115fu_291`,"chain-of-thought-spark-turn":`_chain-of-thought-spark-turn_115fu_1`,spark__top:`_spark__top_115fu_292`,"chain-of-thought-spark-twinkle":`_chain-of-thought-spark-twinkle_115fu_1`,spark__bottom:`_spark__bottom_115fu_293`,"chain-of-thought-sweep":`_chain-of-thought-sweep_115fu_1`,"chain-of-thought-glint":`_chain-of-thought-glint_115fu_1`,"indicator--done":`_indicator--done_115fu_307`,"chain-of-thought-pop":`_chain-of-thought-pop_115fu_1`,"chain-of-thought-check":`_chain-of-thought-check_115fu_1`,"chain-of-thought-rise":`_chain-of-thought-rise_115fu_1`,"chain-of-thought-title":`_chain-of-thought-title_115fu_1`},q=(...e)=>e.filter(Boolean).join(` `),Re=i.default.createContext(!1);function ze(){let e=i.default.useContext(Re),[t]=i.default.useState(e);return t}function Be(e,t=700,n=()=>!0){let[r,a]=i.default.useState(!1),o=i.default.useRef(!0);return i.default.useEffect(()=>{if(o.current){o.current=!1;return}if(!n(e)){a(!1);return}a(!0);let r=setTimeout(()=>a(!1),t);return()=>clearTimeout(r)},[e]),r}var Ve=()=>typeof window<`u`&&!!window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches;function He(e){return e<60?`${e.toFixed(1)}s`:`${Math.floor(e/60)}m ${Math.floor(e%60)}s`}var Ue=({className:e})=>(0,a.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:16,height:16,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:t.Pt(16,1),strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,focusable:`false`,className:q(K.spark,e),children:[(0,a.jsx)(`path`,{className:K.spark__big,d:`M9 18a6 6 0 0 1 6 -6a6 6 0 0 1 -6 -6a6 6 0 0 1 -6 6a6 6 0 0 1 6 6`}),(0,a.jsx)(`path`,{className:K.spark__top,d:`M16 6a2 2 0 0 1 2 2a2 2 0 0 1 2 -2a2 2 0 0 1 -2 -2a2 2 0 0 1 -2 2`}),(0,a.jsx)(`path`,{className:K.spark__bottom,d:`M16 18a2 2 0 0 1 2 2a2 2 0 0 1 2 -2a2 2 0 0 1 -2 -2a2 2 0 0 1 -2 2`})]}),We=({status:e=`working`,label:r,elapsed:o,startedAt:s,className:c})=>{let l=e===`working`,[u,d]=i.default.useState(()=>Date.now());i.default.useEffect(()=>{if(!l||s==null||o!=null)return;d(Date.now());let e=setInterval(()=>d(Date.now()),100);return()=>clearInterval(e)},[l,s,o]);let f=o??(s==null?void 0:Math.max(0,(u-s)/1e3)),p=Be(e,2400);return(0,a.jsxs)(`div`,{className:q(K.indicator,l?K[`indicator--working`]:K[`indicator--done`],c),"data-changed":p||void 0,role:`status`,children:[l?(0,a.jsx)(Ue,{className:K.indicator__icon}):(0,a.jsx)(n.v,{className:K.indicator__icon,size:16,strokeWidth:t.Pt(16),"aria-hidden":`true`}),(0,a.jsx)(`span`,{className:K.indicator__label,children:r??(l?`Working`:`Worked for`)}),f!=null&&(0,a.jsx)(`span`,{className:K.indicator__time,"aria-hidden":l||void 0,children:He(f)})]})};We.displayName=`WorkingIndicator`;var Ge=({sources:e,className:n})=>{let i=ze();return(0,a.jsx)(`ul`,{className:q(K.stack,n),"aria-label":`${e.length} source${e.length===1?``:`s`}`,children:e.map((e,n)=>{let o=e.icon??r.i;return(0,a.jsxs)(`li`,{className:K.chip,title:e.label,"data-fresh":i||void 0,style:{"--i":n},children:[(0,a.jsx)(o,{size:10,strokeWidth:t.Pt(10,1),"aria-hidden":`true`}),(0,a.jsx)(`span`,{className:K.sr,children:e.label})]},`${e.label}-${n}`)})})};Ge.displayName=`SourceStack`;var Ke=({children:e,delay:t})=>{let n=ze(),[r,o]=i.default.useState(null);return i.default.useEffect(()=>{let r=n&&(typeof e==`string`||typeof e==`number`)?/^(\d+)(.*)$/s.exec(String(e)):null,i=r?Number(r[1]):0;if(!r||i<2||Ve())return;let a=r[2],s=Math.max(2,Math.round(i*.25)),c=performance.now()+t,l=Math.min(900,380+i*30),u=0,d=e=>{let t=Math.min(1,Math.max(0,(e-c)/l)),n=1-(1-t)**3;o(t<1?`${Math.round(s+n*(i-s))}${a}`:null),t<1&&(u=requestAnimationFrame(d))};return o(`${s}${a}`),u=requestAnimationFrame(d),()=>cancelAnimationFrame(u)},[]),(0,a.jsx)(`span`,{className:K.step__count,"data-fresh":n||void 0,children:r??e})},qe=({onClick:e,children:t})=>{let n=ze();return e?(0,a.jsx)(`button`,{type:`button`,className:q(K.step__sources,K[`step__sources--button`]),"data-fresh":n||void 0,onClick:e,children:t}):(0,a.jsx)(`div`,{className:K.step__sources,"data-fresh":n||void 0,children:t})},Je={pending:`Pending: `,active:`In progress: `,done:`Done: `},Ye=({status:e=`done`,icon:r,label:o,query:s,count:c,accent:l,sources:u,sourcesLabel:d=`Sources`,onSourcesClick:f,className:p})=>{let m=r??n.y,h=l??m.brandColor??void 0,g=ze(),[_,v]=i.default.useState(g),[y]=i.default.useState(g&&(c!=null||u!=null));i.default.useEffect(()=>{if(!_)return;let e=setTimeout(()=>v(!1),2e3);return()=>clearTimeout(e)},[_]);let b=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(`span`,{className:K.step__sourcesLabel,children:d}),u,f&&(0,a.jsx)(n.A,{className:K.step__sourcesChevron,size:12,strokeWidth:t.Pt(12),"aria-hidden":`true`})]});return(0,a.jsx)(`li`,{className:q(K.step,K[`step--${e}`],p),style:h?{"--cot-spark":h}:void 0,"data-entering":_||void 0,"data-with-results":_&&y||void 0,"aria-current":e===`active`?`step`:void 0,children:(0,a.jsxs)(`div`,{className:K.step__body,children:[(0,a.jsxs)(`div`,{className:K.step__row,children:[(0,a.jsx)(m,{className:K.step__icon,size:16,strokeWidth:t.Pt(16),"aria-hidden":`true`}),(0,a.jsxs)(`span`,{className:K.step__content,children:[(0,a.jsx)(`span`,{className:K.sr,children:Je[e]}),(0,a.jsx)(`span`,{className:K.step__label,children:o}),s&&(0,a.jsx)(`code`,{className:K.step__query,style:{"--chars":Math.max(1,s.length)},children:s})]}),c!=null&&(0,a.jsx)(Ke,{delay:_&&y?760:0,children:c})]}),u&&(0,a.jsx)(qe,{onClick:f,children:b})]})})};Ye.displayName=`ChainOfThoughtStep`;var Xe=({title:e,icon:r,open:o,defaultOpen:s=!0,onOpenChange:c,status:l,elapsed:u,startedAt:d,children:f,className:p})=>{let m=r??n.y,h=i.default.useId(),[g,_]=i.default.useState(!1);i.default.useEffect(()=>{let e=requestAnimationFrame(()=>_(!0));return()=>cancelAnimationFrame(e)},[]);let v=Be(typeof e==`string`?e:void 0,600),[y,b]=i.default.useState(s),x=o??y,S=i.default.useRef(null),[C,w]=i.default.useState(0);i.default.useLayoutEffect(()=>{let e=S.current?Array.from(S.current.children):[];e.forEach((e,t)=>e.style.setProperty(`--step`,String(t))),e.length!==C&&w(e.length)});let T=Be(l,900+C*110,e=>e===`done`),E=Be(x,700+C*45,e=>e===!0);return(0,a.jsxs)(`div`,{className:q(K.root,p),"data-open":x||void 0,"data-finishing":T||void 0,"data-opening":E||void 0,style:{"--steps":C},children:[(0,a.jsxs)(`button`,{type:`button`,className:K.header,"aria-expanded":x,"aria-controls":h,onClick:()=>{let e=!x;o===void 0&&b(e),c?.(e)},children:[(0,a.jsx)(m,{className:K.header__icon,size:16,strokeWidth:t.Pt(16),"aria-hidden":`true`}),(0,a.jsx)(`span`,{className:K.header__title,"data-changed":v||void 0,children:e}),(0,a.jsx)(n.A,{className:K.header__chevron,size:14,strokeWidth:t.Pt(14),"aria-hidden":`true`})]}),(0,a.jsx)(`div`,{id:h,className:K.panel,"aria-hidden":!x||void 0,children:(0,a.jsxs)(`div`,{className:K.panel__inner,children:[(0,a.jsx)(Re.Provider,{value:g,children:f!=null&&(0,a.jsx)(`ol`,{ref:S,className:K.steps,children:f})}),l&&(0,a.jsx)(`div`,{className:K.working,children:(0,a.jsx)(We,{status:l,elapsed:u,startedAt:d})})]})})]})};Xe.displayName=`ChainOfThought`;var Ze={google:{label:`Google`,color:`#4285F4`,path:`M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z`},x:{label:`X`,color:null,path:`M14.234 10.162 22.977 0h-2.072l-7.591 8.824L7.251 0H.258l9.168 13.343L.258 24H2.33l8.016-9.318L16.749 24h6.993zm-2.837 3.299-.929-1.329L3.076 1.56h3.182l5.965 8.532.929 1.329 7.754 11.09h-3.182z`},reddit:{label:`Reddit`,color:`#FF4500`,path:`M12 0C5.373 0 0 5.373 0 12c0 3.314 1.343 6.314 3.515 8.485l-2.286 2.286C.775 23.225 1.097 24 1.738 24H12c6.627 0 12-5.373 12-12S18.627 0 12 0Zm4.388 3.199c1.104 0 1.999.895 1.999 1.999 0 1.105-.895 2-1.999 2-.946 0-1.739-.657-1.947-1.539v.002c-1.147.162-2.032 1.15-2.032 2.341v.007c1.776.067 3.4.567 4.686 1.363.473-.363 1.064-.58 1.707-.58 1.547 0 2.802 1.254 2.802 2.802 0 1.117-.655 2.081-1.601 2.531-.088 3.256-3.637 5.876-7.997 5.876-4.361 0-7.905-2.617-7.998-5.87-.954-.447-1.614-1.415-1.614-2.538 0-1.548 1.255-2.802 2.803-2.802.645 0 1.239.218 1.712.585 1.275-.79 2.881-1.291 4.64-1.365v-.01c0-1.663 1.263-3.034 2.88-3.207.188-.911.993-1.595 1.959-1.595Zm-8.085 8.376c-.784 0-1.459.78-1.506 1.797-.047 1.016.64 1.429 1.426 1.429.786 0 1.371-.369 1.418-1.385.047-1.017-.553-1.841-1.338-1.841Zm7.406 0c-.786 0-1.385.824-1.338 1.841.047 1.017.634 1.385 1.418 1.385.785 0 1.473-.413 1.426-1.429-.046-1.017-.721-1.797-1.506-1.797Zm-3.703 4.013c-.974 0-1.907.048-2.77.135-.147.015-.241.168-.183.305.483 1.154 1.622 1.964 2.953 1.964 1.33 0 2.47-.81 2.953-1.964.057-.137-.037-.29-.184-.305-.863-.087-1.795-.135-2.769-.135Z`},github:{label:`GitHub`,color:null,path:`M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12`},linkedin:{label:`LinkedIn`,color:`#0A66C2`,path:`M17 2a5 5 0 0 1 5 5v10a5 5 0 0 1 -5 5h-10a5 5 0 0 1 -5 -5v-10a5 5 0 0 1 5 -5zm-9 8a1 1 0 0 0 -1 1v5a1 1 0 0 0 2 0v-5a1 1 0 0 0 -1 -1m6 0a3 3 0 0 0 -1.168 .236l-.125 .057a1 1 0 0 0 -1.707 .707v5a1 1 0 0 0 2 0v-3a1 1 0 0 1 2 0v3a1 1 0 0 0 2 0v-3a3 3 0 0 0 -3 -3m-6 -3a1 1 0 0 0 -.993 .883l-.007 .127a1 1 0 0 0 1.993 .117l.007 -.127a1 1 0 0 0 -1 -1`},youtube:{label:`YouTube`,color:`#FF0000`,path:`M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z`},hackernews:{label:`Hacker News`,color:`#FF6600`,path:`M0 24V0h24v24H0zM6.951 5.896l4.112 7.708v5.064h1.583v-4.972l4.148-7.799h-1.749l-2.457 4.875c-.372.745-.688 1.434-.688 1.434s-.297-.708-.651-1.434L8.831 5.896h-1.88z`},wikipedia:{label:`Wikipedia`,color:null,path:`M12.09 13.119c-.936 1.932-2.217 4.548-2.853 5.728-.616 1.074-1.127.931-1.532.029-1.406-3.321-4.293-9.144-5.651-12.409-.251-.601-.441-.987-.619-1.139-.181-.15-.554-.24-1.122-.271C.103 5.033 0 4.982 0 4.898v-.455l.052-.045c.924-.005 5.401 0 5.401 0l.051.045v.434c0 .119-.075.176-.225.176l-.564.031c-.485.029-.727.164-.727.436 0 .135.053.33.166.601 1.082 2.646 4.818 10.521 4.818 10.521l.136.046 2.411-4.81-.482-1.067-1.658-3.264s-.318-.654-.428-.872c-.728-1.443-.712-1.518-1.447-1.617-.207-.023-.313-.05-.313-.149v-.468l.06-.045h4.292l.113.037v.451c0 .105-.076.15-.227.15l-.308.047c-.792.061-.661.381-.136 1.422l1.582 3.252 1.758-3.504c.293-.64.233-.801.111-.947-.07-.084-.305-.22-.812-.24l-.201-.021c-.052 0-.098-.015-.145-.051-.045-.031-.067-.076-.067-.129v-.427l.061-.045c1.247-.008 4.043 0 4.043 0l.059.045v.436c0 .121-.059.178-.193.178-.646.03-.782.095-1.023.439-.12.186-.375.589-.646 1.039l-2.301 4.273-.065.135 2.792 5.712.17.048 4.396-10.438c.154-.422.129-.722-.064-.895-.197-.172-.346-.273-.857-.295l-.42-.016c-.061 0-.105-.014-.152-.045-.043-.029-.072-.075-.072-.119v-.436l.059-.045h4.961l.041.045v.437c0 .119-.074.18-.209.18-.648.03-1.127.18-1.443.421-.314.255-.557.616-.736 1.067 0 0-4.043 9.258-5.426 12.339-.525 1.007-1.053.917-1.503-.031-.571-1.171-1.773-3.786-2.646-5.71l.053-.036z`},stackoverflow:{label:`Stack Overflow`,color:`#F58025`,path:`M15.725 0l-1.72 1.277 6.39 8.588 1.716-1.277L15.725 0zm-3.94 3.418l-1.369 1.644 8.225 6.85 1.369-1.644-8.225-6.85zm-3.15 4.465l-.905 1.94 9.702 4.517.904-1.94-9.701-4.517zm-1.85 4.86l-.44 2.093 10.473 2.201.44-2.092-10.473-2.203zM1.89 15.47V24h19.19v-8.53h-2.133v6.397H4.021v-6.396H1.89zm4.265 2.133v2.13h10.66v-2.13H6.154Z`},producthunt:{label:`Product Hunt`,color:`#DA552F`,path:`M13.604 8.4h-3.405V12h3.405c.995 0 1.801-.806 1.801-1.801 0-.993-.805-1.799-1.801-1.799zM12 0C5.372 0 0 5.372 0 12s5.372 12 12 12 12-5.372 12-12S18.628 0 12 0zm1.604 14.4h-3.405V18H7.801V6h5.804c2.319 0 4.2 1.88 4.2 4.199 0 2.321-1.881 4.201-4.201 4.201z`},medium:{label:`Medium`,color:null,path:`M4.21 0A4.201 4.201 0 0 0 0 4.21v15.58A4.201 4.201 0 0 0 4.21 24h15.58A4.201 4.201 0 0 0 24 19.79v-1.093c-.137.013-.278.02-.422.02-2.577 0-4.027-2.146-4.09-4.832a7.592 7.592 0 0 1 .022-.708c.093-1.186.475-2.241 1.105-3.022a3.885 3.885 0 0 1 1.395-1.1c.468-.237 1.127-.367 1.664-.367h.023c.101 0 .202.004.303.01V4.211A4.201 4.201 0 0 0 19.79 0Zm.198 5.583h4.165l3.588 8.435 3.59-8.435h3.864v.146l-.019.004c-.705.16-1.063.397-1.063 1.254h-.003l.003 10.274c.06.676.424.885 1.063 1.03l.02.004v.145h-4.923v-.145l.019-.005c.639-.144.994-.353 1.054-1.03V7.267l-4.745 11.15h-.261L6.15 7.569v9.445c0 .857.358 1.094 1.063 1.253l.02.004v.147H4.405v-.147l.019-.004c.705-.16 1.065-.397 1.065-1.253V6.987c0-.857-.358-1.094-1.064-1.254l-.018-.004zm19.25 3.668c-1.086.023-1.733 1.323-1.813 3.124H24V9.298a1.378 1.378 0 0 0-.342-.047Zm-1.862 3.632c-.1 1.756.86 3.239 2.204 3.634v-3.634z`},notion:{label:`Notion`,color:null,path:`M4.459 4.208c.746.606 1.026.56 2.428.466l13.215-.793c.28 0 .047-.28-.046-.326L17.86 1.968c-.42-.326-.981-.7-2.055-.607L3.01 2.295c-.466.046-.56.28-.374.466zm.793 3.08v13.904c0 .747.373 1.027 1.214.98l14.523-.84c.841-.046.935-.56.935-1.167V6.354c0-.606-.233-.933-.748-.887l-15.177.887c-.56.047-.747.327-.747.933zm14.337.745c.093.42 0 .84-.42.888l-.7.14v10.264c-.608.327-1.168.514-1.635.514-.748 0-.935-.234-1.495-.933l-4.577-7.186v6.952L12.21 19s0 .84-1.168.84l-3.222.186c-.093-.186 0-.653.327-.746l.84-.233V9.854L7.822 9.76c-.094-.42.14-1.026.793-1.073l3.456-.233 4.764 7.279v-6.44l-1.215-.139c-.093-.514.28-.887.747-.933zM1.936 1.035l13.31-.98c1.634-.14 2.055-.047 3.082.7l4.249 2.986c.7.513.934.653.934 1.213v16.378c0 1.026-.373 1.634-1.68 1.726l-15.458.934c-.98.047-1.448-.093-1.962-.747l-3.129-4.06c-.56-.747-.793-1.306-.793-1.96V2.667c0-.839.374-1.54 1.447-1.632z`},substack:{label:`Substack`,color:`#FF6719`,path:`M22.539 8.242H1.46V5.406h21.08v2.836zM1.46 10.812V24L12 18.11 22.54 24V10.812H1.46zM22.54 0H1.46v2.836h21.08V0z`},arxiv:{label:`arXiv`,color:`#B31B1B`,path:`M3.8423 0a1.0037 1.0037 0 0 0-.922.6078c-.1536.3687-.0438.6275.2938 1.1113l6.9185 8.3597-1.0223 1.1058a1.0393 1.0393 0 0 0 .003 1.4229l1.2292 1.3135-5.4391 6.4444c-.2803.299-.4538.823-.2971 1.1986a1.0253 1.0253 0 0 0 .9585.635.9133.9133 0 0 0 .6891-.3405l5.783-6.126 7.4902 8.0051a.8527.8527 0 0 0 .6835.2597.9575.9575 0 0 0 .8777-.6138c.1577-.377-.017-.7502-.306-1.1407l-7.0518-8.3418 1.0632-1.13a.9626.9626 0 0 0 .0089-1.3165L4.6336.4639s-.3733-.4535-.768-.463zm0 .272h.0166c.2179.0052.4874.2715.5644.3639l.005.006.0052.0055 10.169 10.9905a.6915.6915 0 0 1-.0072.945l-1.0666 1.133-1.4982-1.7724-8.5994-10.39c-.3286-.472-.352-.6183-.2592-.841a.7307.7307 0 0 1 .6704-.4401Zm14.341 1.5701a.877.877 0 0 0-.6554.2418l-5.6962 6.1584 1.6944 1.8319 5.3089-6.5138c.3251-.4335.479-.6603.3247-1.0292a1.1205 1.1205 0 0 0-.9763-.689zm-7.6557 12.2823 1.3186 1.4135-5.7864 6.1295a.6494.6494 0 0 1-.4959.26.7516.7516 0 0 1-.706-.4669c-.1119-.2682.0359-.6864.2442-.9083l.0051-.0055.0047-.0055z`},bluesky:{label:`Bluesky`,color:`#1185FE`,path:`M5.202 2.857C7.954 4.922 10.913 9.11 12 11.358c1.087-2.247 4.046-6.436 6.798-8.501C20.783 1.366 24 .213 24 3.883c0 .732-.42 6.156-.667 7.037-.856 3.061-3.978 3.842-6.755 3.37 4.854.826 6.089 3.562 3.422 6.299-5.065 5.196-7.28-1.304-7.847-2.97-.104-.305-.152-.448-.153-.327 0-.121-.05.022-.153.327-.568 1.666-2.782 8.166-7.847 2.97-2.667-2.737-1.432-5.473 3.422-6.3-2.777.473-5.899-.308-6.755-3.369C.42 10.04 0 4.615 0 3.883c0-3.67 3.217-2.517 5.202-1.026`},perplexity:{label:`Perplexity`,color:`#1FB8CD`,path:`M22.3977 7.0896h-2.3106V.0676l-7.5094 6.3542V.1577h-1.1554v6.1966L4.4904 0v7.0896H1.6023v10.3976h2.8882V24l6.932-6.3591v6.2005h1.1554v-6.0469l6.9318 6.1807v-6.4879h2.8882V7.0896zm-3.4657-4.531v4.531h-5.355l5.355-4.531zm-13.2862.0676 4.8691 4.4634H5.6458V2.6262zM2.7576 16.332V8.245h7.8476l-6.1149 6.1147v1.9723H2.7576zm2.8882 5.0404v-3.8852h.0001v-2.6488l5.7763-5.7764v7.0111l-5.7764 5.2993zm12.7086.0248-5.7766-5.1509V9.0618l5.7766 5.7766v6.5588zm2.8882-5.0652h-1.733v-1.9723L13.3948 8.245h7.8478v8.087z`},duckduckgo:{label:`DuckDuckGo`,color:`#DE5833`,path:`M12 0C5.37 0 0 5.37 0 12s5.37 12 12 12 12-5.37 12-12S18.63 0 12 0zm0 .984C18.083.984 23.016 5.916 23.016 12S18.084 23.016 12 23.016.984 18.084.984 12C.984 5.917 5.916.984 12 .984zm0 .938C6.434 1.922 1.922 6.434 1.922 12c0 4.437 2.867 8.205 6.85 9.55-.237-.82-.776-2.753-1.6-6.052-1.184-4.741-2.064-8.606 2.379-9.813.047-.011.064-.064.03-.093-.514-.467-1.382-.548-2.233-.38a.06.06 0 0 1-.07-.058c0-.011 0-.023.011-.035.205-.286.572-.507.822-.64a1.843 1.843 0 0 0-.607-.335c-.059-.022-.059-.12-.006-.144.006-.006.012-.012.024-.012 1.749-.233 3.586.292 4.49 1.448.011.011.023.017.035.023 2.968.635 3.509 4.837 3.328 5.998a9.607 9.607 0 0 0 2.346-.576c.746-.286 1.008-.222 1.101-.053.1.193-.018.513-.28.81-.496.567-1.393 1.01-2.974 1.137-.546.044-1.029.024-1.445.006-.789-.035-1.339-.059-1.633.39-.192.298-.041.998 1.487 1.22 1.09.157 2.078.047 2.798-.034.643-.07 1.073-.118 1.172.069.21.402-.996 1.207-3.066 1.224-.158 0-.315-.006-.467-.011-1.283-.065-2.227-.414-2.816-.735a.094.094 0 0 1-.035-.017c-.105-.059-.31.045-.188.267.07.134.444.478 1.004.776-.058.466.087 1.184.338 2l.088-.016c.041-.009.087-.019.134-.025.507-.082.775.012.926.175.717-.536 1.913-1.294 2.03-1.154.583.694.66 2.332.53 2.99-.004.012-.017.024-.04.035-.274.117-1.783-.296-1.783-.511-.059-1.075-.26-1.173-.493-1.225h-.156c.006.006.012.018.018.03l.052.12c.093.257.24 1.063.13 1.26-.112.199-.835.297-1.284.303-.443.006-.543-.158-.637-.408-.07-.204-.103-.675-.103-.95a.857.857 0 0 1 .012-.216c-.134.058-.333.193-.397.281-.017.262-.017.682.123 1.149.07.221-1.518 1.164-1.74.99-.227-.181-.634-1.952-.459-2.67-.187.017-.338.075-.42.191-.367.508.093 2.933.582 3.248.257.169 1.54-.553 2.176-1.095.105.145.305.158.553.158.326-.012.782-.06 1.103-.158.192.45.423.972.613 1.388 4.47-1.032 7.803-5.037 7.803-9.82 0-5.566-4.512-10.078-10.078-10.078zm1.791 5.646c-.42 0-.678.146-.795.332-.023.047.047.094.094.07.14-.075.357-.161.701-.156.328.006.516.09.67.159l.023.01c.041.017.088-.03.059-.065-.134-.18-.332-.35-.752-.35zm-5.078.198a1.24 1.24 0 0 0-.522.082c-.454.169-.67.526-.67.76 0 .051.112.057.141.011.081-.123.21-.31.617-.478.408-.17.73-.146.951-.094.047.012.083-.041.041-.07a.989.989 0 0 0-.558-.211zm5.434 1.423a.651.651 0 0 0-.655.647.652.652 0 0 0 1.307 0 .646.646 0 0 0-.652-.647zm.283.262h.008a.17.17 0 0 1 .17.17c0 .093-.077.17-.17.17a.17.17 0 0 1-.17-.17c0-.09.072-.165.162-.17zm-5.358.076a.752.752 0 0 0-.758.758c0 .42.338.758.758.758s.758-.337.758-.758a.756.756 0 0 0-.758-.758zm.328.303h.01c.112 0 .2.089.2.2 0 .11-.088.197-.2.197a.195.195 0 0 1-.197-.198c0-.107.082-.194.187-.199z`}},Qe=i.default.forwardRef(function({name:e,size:t=16,title:n,className:r,...i},o){let s=Ze[e],c=n?{role:`img`,"aria-label":n}:{"aria-hidden":!0,focusable:`false`};return s?(0,a.jsxs)(`svg`,{ref:o,xmlns:`http://www.w3.org/2000/svg`,width:t,height:t,viewBox:`0 0 24 24`,fill:s.color??`currentColor`,className:[`sakani-source-logo`,`sakani-source-logo-${e}`,r].filter(Boolean).join(` `),...c,...i,children:[n?(0,a.jsx)(`title`,{children:n}):null,(0,a.jsx)(`path`,{d:s.path})]}):null});Qe.displayName=`SourceLogo`;var $e=Object.keys(Ze),et=new Map;function tt(e){let t=et.get(e);if(!t){let n=({size:t,className:n,style:r,"aria-hidden":i})=>(0,a.jsx)(Qe,{name:e,size:t,className:n,style:r,"aria-hidden":i});n.displayName=`SourceLogo(${e})`,t=Object.assign(n,{logoName:e,brandColor:Ze[e].color}),et.set(e,t)}return t}var nt={kbd:`_kbd_1yaxs_4`},rt=({children:e,className:t})=>(0,a.jsx)(`kbd`,{className:[nt.kbd,t??``].filter(Boolean).join(` `),children:e}),it={spinner:`_spinner_14r00_3`,"spinner--sm":`_spinner--sm_14r00_12`,"spinner--md":`_spinner--md_14r00_13`,"spinner--lg":`_spinner--lg_14r00_14`,spinner__svg:`_spinner__svg_14r00_17`,"spinner-rotate":`_spinner-rotate_14r00_1`},at=({size:e=`md`,label:t=`Loading...`,className:n})=>(0,a.jsx)(`span`,{role:`status`,"aria-label":t,className:[it.spinner,it[`spinner--${e}`],n??``].filter(Boolean).join(` `),children:(0,a.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2.5,strokeLinecap:`round`,"aria-hidden":`true`,className:it.spinner__svg,children:[(0,a.jsx)(`circle`,{cx:12,cy:12,r:9,opacity:.2}),(0,a.jsx)(`path`,{d:`M12 3a9 9 0 0 1 9 9`,className:it.spinner__arc})]})}),J={sr:`_sr_1soac_5`,backdrop:`_backdrop_1soac_11`,panel:`_panel_1soac_23`,trigger:`_trigger_1soac_27`,"panel--simple":`_panel--simple_1soac_50`,"panel--preview":`_panel--preview_1soac_51`,field:`_field_1soac_54`,field__icon:`_field__icon_1soac_63`,field__content:`_field__content_1soac_64`,input:`_input_1soac_65`,field__clear:`_field__clear_1soac_81`,token:`_token_1soac_89`,token__icon:`_token__icon_1soac_103`,token__remove:`_token__remove_1soac_104`,scopes:`_scopes_1soac_112`,scopes__pill:`_scopes__pill_1soac_122`,"scopes__pill--glide":`_scopes__pill--glide_1soac_129`,scope:`_scope_1soac_112`,"scope--active":`_scope--active_1soac_151`,scope__count:`_scope__count_1soac_152`,scopes__hint:`_scopes__hint_1soac_163`,split:`_split_1soac_173`,body:`_body_1soac_175`,groups:`_groups_1soac_187`,group:`_group_1soac_187`,group__label:`_group__label_1soac_189`,group__action:`_group__action_1soac_201`,item:`_item_1soac_209`,"item--disabled":`_item--disabled_1soac_219`,item__lead:`_item__lead_1soac_220`,"item__lead--ai":`_item__lead--ai_1soac_231`,"item__lead--person":`_item__lead--person_1soac_232`,item__status:`_item__status_1soac_233`,"item__status--online":`_item__status--online_1soac_242`,item__bare:`_item__bare_1soac_243`,item__text:`_item__text_1soac_244`,item__label:`_item__label_1soac_245`,dim:`_dim_1soac_246`,match:`_match_1soac_247`,item__desc:`_item__desc_1soac_248`,item__trail:`_item__trail_1soac_249`,item__meta:`_item__meta_1soac_250`,item__keys:`_item__keys_1soac_251`,item__enter:`_item__enter_1soac_252`,message:`_message_1soac_255`,"message--error":`_message--error_1soac_263`,message__tile:`_message__tile_1soac_264`,message__text:`_message__text_1soac_272`,message__chips:`_message__chips_1soac_276`,message__actions:`_message__actions_1soac_277`,chip:`_chip_1soac_280`,chip__em:`_chip__em_1soac_293`,ghost:`_ghost_1soac_296`,ghost__track:`_ghost__track_1soac_297`,ghost__row:`_ghost__row_1soac_303`,ghost__lens:`_ghost__lens_1soac_320`,ghost__glass:`_ghost__glass_1soac_340`,ghost__zoom:`_ghost__zoom_1soac_351`,loading:`_loading_1soac_361`,skeleton:`_skeleton_1soac_362`,skeleton__lines:`_skeleton__lines_1soac_363`,answerSlot:`_answerSlot_1soac_366`,answer:`_answer_1soac_366`,"answer--glow":`_answer--glow_1soac_389`,"sakani-cmd-card-light":`_sakani-cmd-card-light_1soac_1`,"answer--glowFade":`_answer--glowFade_1soac_390`,answer__header:`_answer__header_1soac_392`,answer__mark:`_answer__mark_1soac_393`,answer__title:`_answer__title_1soac_398`,answer__status:`_answer__status_1soac_399`,answer__copy:`_answer__copy_1soac_400`,answer__body:`_answer__body_1soac_402`,answer__sources:`_answer__sources_1soac_403`,answer__sourcesLabel:`_answer__sourcesLabel_1soac_404`,answer__source:`_answer__source_1soac_403`,answer__footer:`_answer__footer_1soac_413`,answer__openInChat:`_answer__openInChat_1soac_414`,preview__stack:`_preview__stack_1soac_417`,preview__layer:`_preview__layer_1soac_418`,preview__empty:`_preview__empty_1soac_420`,preview__scroll:`_preview__scroll_1soac_421`,preview__actions:`_preview__actions_1soac_422`,preview:`_preview_1soac_417`,footer:`_footer_1soac_433`,footer__workspace:`_footer__workspace_1soac_444`,footer__dot:`_footer__dot_1soac_445`,footer__chevron:`_footer__chevron_1soac_446`,footer__hints:`_footer__hints_1soac_447`,hint:`_hint_1soac_448`,hint__keys:`_hint__keys_1soac_449`,trigger__icon:`_trigger__icon_1soac_474`,trigger__text:`_trigger__text_1soac_475`,trigger__keys:`_trigger__keys_1soac_476`,"backdrop--in":`_backdrop--in_1soac_479`,"sakani-cmd-backdrop-in":`_sakani-cmd-backdrop-in_1soac_1`,"backdrop--out":`_backdrop--out_1soac_480`,"sakani-cmd-backdrop-out":`_sakani-cmd-backdrop-out_1soac_1`,"panel--in":`_panel--in_1soac_481`,"sakani-cmd-panel-in":`_sakani-cmd-panel-in_1soac_1`,"panel--out":`_panel--out_1soac_482`,"sakani-cmd-panel-out":`_sakani-cmd-panel-out_1soac_1`,"message--empty":`_message--empty_1soac_496`,"sakani-cmd-fade":`_sakani-cmd-fade_1soac_1`,"sakani-cmd-feed":`_sakani-cmd-feed_1soac_1`,"sakani-cmd-feed-clear":`_sakani-cmd-feed-clear_1soac_1`,"sakani-cmd-lens-in":`_sakani-cmd-lens-in_1soac_1`,"sakani-cmd-lens-x":`_sakani-cmd-lens-x_1soac_1`,"sakani-cmd-lens-y":`_sakani-cmd-lens-y_1soac_1`,"sakani-cmd-rise":`_sakani-cmd-rise_1soac_1`,answer__word:`_answer__word_1soac_544`,"sakani-cmd-word-in":`_sakani-cmd-word-in_1soac_1`,"answer--stream":`_answer--stream_1soac_545`,"sakani-cmd-answer-in":`_sakani-cmd-answer-in_1soac_1`,"sakani-cmd-answer-mark":`_sakani-cmd-answer-mark_1soac_1`,"sakani-cmd-answer-text":`_sakani-cmd-answer-text_1soac_1`,"sakani-cmd-answer-fan":`_sakani-cmd-answer-fan_1soac_1`},ot=(...e)=>e.filter(Boolean).join(` `),st={page:`pages`,person:`people`,file:`files`,action:`actions`,ai:null},ct={page:n._,action:n.g,file:n._,person:n._,ai:({className:e,style:n})=>(0,a.jsx)(`span`,{className:e,style:{display:`inline-flex`,...n},children:(0,a.jsx)(t.B,{size:24,color:`currentColor`})})},lt=e=>e.scope??(e.type?st[e.type]:null);function ut(){return(0,a.jsxs)(`span`,{className:J.ghost__track,children:[(0,a.jsx)(`span`,{className:J.ghost__row}),(0,a.jsx)(`span`,{className:J.ghost__row}),(0,a.jsx)(`span`,{className:J.ghost__row}),(0,a.jsx)(`span`,{className:J.ghost__row})]})}function dt({text:e,query:t}){let n=t.trim(),r=n?e.toLowerCase().indexOf(n.toLowerCase()):-1;return r<0?(0,a.jsx)(a.Fragment,{children:e}):(0,a.jsxs)(`span`,{className:J.dim,children:[e.slice(0,r),(0,a.jsx)(`mark`,{className:J.match,children:e.slice(r,r+n.length)}),e.slice(r+n.length)]})}var ft=i.default.forwardRef(function({placeholder:e=`Search or jump to…`,shortcut:r=[`⌘`,`K`],className:i,type:o=`button`,...s},c){return(0,a.jsxs)(`button`,{ref:c,type:o,className:ot(J.trigger,i),"aria-haspopup":`dialog`,...s,children:[(0,a.jsx)(n.y,{size:16,strokeWidth:t.Pt(16),"aria-hidden":`true`,className:J.trigger__icon}),(0,a.jsx)(`span`,{className:J.trigger__text,children:e}),(0,a.jsx)(`span`,{className:J.trigger__keys,"aria-hidden":`true`,children:r.map(e=>(0,a.jsx)(rt,{children:e},e))})]})}),pt=()=>typeof window<`u`&&!!window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches,mt=({title:e=`SakaniUI AI`,status:o,children:s,stream:c,onStreamEnd:l,sources:u,onFollowUp:d,onOpenInChat:f,onCopy:p,className:m})=>{let h=typeof s==`string`?s:null,g=!!(c&&h)&&!pt(),_=i.default.useMemo(()=>h?h.split(/(\s+)/):[],[h]),[v,y]=i.default.useState(g?0:_.length),[b,x]=i.default.useState(!g),[S,C]=i.default.useState(g?`on`:`off`);i.default.useEffect(()=>{if(!g){C(`off`);return}if(C(`on`),!b)return;let e=setTimeout(()=>C(`fade`),1e3),t=setTimeout(()=>C(`off`),1700);return()=>{clearTimeout(e),clearTimeout(t)}},[g,b]);let w=i.default.useRef(l);return w.current=l,i.default.useEffect(()=>{if(!g){y(_.length),x(!0),w.current?.();return}let e=0,t,n=()=>{if(e=Math.min(_.length,e+2),y(e),e>=_.length){x(!0),w.current?.();return}let r=_[e-2]??``;t=setTimeout(n,34+Math.round(Math.random()*22)+(/[.!?]$/.test(r)?260:/[,;:]$/.test(r)?110:0))};return t=setTimeout(n,380),()=>clearTimeout(t)},[g,_]),(0,a.jsxs)(`section`,{className:ot(J.answer,g&&J[`answer--stream`],S!==`off`&&J[`answer--glow`],S===`fade`&&J[`answer--glowFade`],m),"aria-label":e,"aria-busy":!b||void 0,children:[(0,a.jsxs)(`header`,{className:J.answer__header,children:[(0,a.jsx)(`span`,{className:J.answer__mark,"aria-hidden":`true`,children:(0,a.jsx)(t.B,{size:24,color:`currentColor`})}),(0,a.jsx)(`span`,{className:J.answer__title,children:e}),o&&b&&(0,a.jsx)(`span`,{className:J.answer__status,children:o}),p&&b&&(0,a.jsx)(`button`,{type:`button`,className:J.answer__copy,onClick:p,"aria-label":`Copy the answer`,children:(0,a.jsx)(r.u,{size:16,strokeWidth:t.Pt(16),"aria-hidden":`true`})})]}),(0,a.jsx)(`div`,{className:J.answer__body,children:g?_.slice(0,v).map((e,t)=>/^\s+$/.test(e)?e:(0,a.jsx)(`span`,{className:J.answer__word,children:e},t)):s}),b&&u&&u.length>0&&(0,a.jsxs)(`div`,{className:J.answer__sources,children:[(0,a.jsx)(`span`,{className:J.answer__sourcesLabel,children:`Sources`}),u.map((e,r)=>{let i=e.icon??n._;return(0,a.jsxs)(`span`,{className:J.answer__source,style:{"--i":r},children:[(0,a.jsx)(i,{size:12,strokeWidth:t.Pt(12),"aria-hidden":`true`}),e.label]},e.label)})]}),b&&(d||f)&&(0,a.jsxs)(`footer`,{className:J.answer__footer,children:[d&&(0,a.jsx)(t.Et,{variant:`secondary`,size:`sm`,onClick:d,children:`Ask a follow-up`}),f&&(0,a.jsxs)(`span`,{className:J.answer__openInChat,children:[`Open in chat `,(0,a.jsx)(rt,{children:`⌘`}),(0,a.jsx)(rt,{children:`↵`})]})]})]})};mt.displayName=`CommandMenuAnswer`;var ht=({open:e,defaultOpen:o=!1,onOpenChange:c,hotkey:l=`k`,variant:u=`default`,query:d,defaultQuery:f=``,onQueryChange:p,placeholder:m=`Search or ask anything…`,groups:h,filter:g=!0,highlightMatches:_=!0,state:v=`ready`,onSelect:y,closeOnSelect:b=!0,scopes:x,scope:S,defaultScope:C,onScopeChange:w,filters:T,onFiltersChange:E,filterKeys:D,onAskAI:O,answer:k,renderPreview:A,previewActions:j,previewEmpty:M=`Nothing to preview for this result`,emptyTitle:N,emptyDescription:ee,suggestions:P,fallbackGroups:F,errorTitle:te=`Search is unavailable`,errorDescription:I=`We couldn’t reach the search index. Your recent items still work.`,onRetry:ne,onReport:L,retryLabel:re=`Try again`,reportLabel:ie=`Report`,workspace:ae,hideFooter:oe=!1,"aria-label":se=`Command menu`,className:ce})=>{let R=u===`simple`,z=i.default.useId(),[le,B]=i.default.useState(o),V=e??le,ue=i.default.useCallback(t=>{e===void 0&&B(t),c?.(t)},[e,c]),[H,de]=i.default.useState(f),U=d??H,fe=e=>{d===void 0&&de(e),p?.(e)},[pe,me]=i.default.useState(C??x?.[0]?.value??`all`),he=S??pe,ge=e=>{S===void 0&&me(e),w?.(e)},[_e,ve]=i.default.useState([]),ye=T??_e,be=e=>{T===void 0&&ve(e),E?.(e)},[xe,Se]=i.default.useState(!1);i.default.useEffect(()=>{V&&Se(!0)},[V]);let Ce=i.default.useRef(!1);i.default.useEffect(()=>{if(xe){Ce.current=!0;return}Ce.current&&(Ce.current=!1,d===void 0&&de(f),T===void 0&&ve([]),S===void 0&&me(C??x?.[0]?.value??`all`))},[xe]),i.default.useEffect(()=>{if(l===!1)return;let e=e=>{(e.metaKey||e.ctrlKey)&&!e.shiftKey&&!e.altKey&&e.key.toLowerCase()===l.toLowerCase()&&(e.preventDefault(),ue(!V))};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[l,V,ue]);let we=U.trim().toLowerCase(),Te=i.default.useCallback(e=>typeof g==`function`?g(e,U):!we||[e.label,e.description,...e.keywords??[]].some(e=>e&&e.toLowerCase().includes(we)),[g,U,we]),Ee=i.default.useCallback(e=>ye.every(t=>!e.tags||e.tags.includes(t.value??t.label)),[ye]),De=g!==!1,Oe=i.default.useMemo(()=>De?h.map(e=>({...e,items:e.items.filter(e=>Te(e)&&Ee(e))})).filter(e=>e.items.length):h,[De,h,Te,Ee]),ke=i.default.useMemo(()=>{let e={};if(!x)return e;let t=Oe.flatMap(e=>e.items);for(let n of x)n.count!==null&&(e[n.value]=n.count??(n.value===`all`?t.length:t.filter(e=>lt(e)===n.value).length));return e},[x,Oe]),W=i.default.useMemo(()=>!De||!x||he===`all`||R?Oe:Oe.map(e=>({...e,items:e.items.filter(e=>lt(e)===he||e.type===`ai`)})).filter(e=>e.items.length),[De,x,he,R,Oe]),Ae=W.reduce((e,t)=>e+t.items.length,0),G=!!we||ye.length>0,je=v===`ready`&&G,Me=v===`ready`&&Ae===0&&G&&!k,Ne=(Me||v===`error`)&&F,Pe=i.default.useMemo(()=>v===`loading`?[]:Ne?F:W,[v,Ne,F,W]),Fe=i.default.useMemo(()=>Pe.flatMap(e=>e.items).filter(e=>!e.disabled),[Pe]),[Ie,Le]=i.default.useState(0),K=Fe.map(e=>e.id).join(`|`);i.default.useEffect(()=>{Le(0)},[K,he]);let q=Fe[Math.min(Ie,Fe.length-1)],Re=e=>`${z}-opt-${e.id}`,ze=t.F(),Be=i.default.useRef(null),Ve=i.default.useRef(null),He=i.default.useRef(new Map),[Ue,We]=i.default.useState(null),[Ge,Ke]=i.default.useState(!1),qe=i.default.useRef(new Map);i.default.useEffect(()=>{if(!V)return;if(!q){ze.showItem(null);return}let e=qe.current.get(q.id);if(e){ze.showItem(e);let t=Be.current;Fe[0]?.id===q.id&&t?t.scrollTop=0:e.scrollIntoView?.({block:`nearest`})}},[V,xe,q?.id,K]);let[Je,Ye]=i.default.useState(null),Xe=q?.id??null;i.default.useEffect(()=>{if(!V||!A){Ye(null);return}if(Je===null){Ye(Xe);return}let e=window.setTimeout(()=>Ye(Xe),100);return()=>window.clearTimeout(e)},[V,Xe,!!A]);let Ze=Je&&Fe.find(e=>e.id===Je)||q,Qe=A&&Ze?A(Ze):null,$e=i.default.useRef(null),et=t.xt($e,V),tt=t.bt($e,V),nt=i.default.useRef(null),it=i.default.useRef(null),st=i.default.useRef(null);i.default.useEffect(()=>{if(V||!xe)return;let e=setTimeout(()=>Se(!1),220);return()=>clearTimeout(e)},[V,xe]),i.default.useEffect(()=>{if(!V)return;st.current=document.activeElement;let e=document.body.style.overflow;return document.body.style.overflow=`hidden`,()=>{document.body.style.overflow=e,st.current?.focus?.()}},[V]),i.default.useEffect(()=>{if(!V||!xe)return;let e=requestAnimationFrame(()=>it.current?.focus());return()=>cancelAnimationFrame(e)},[V,xe]);let ft=e=>{e.disabled||(e.onSelect?.(),y?.(e),b&&ue(!1))},pt=e=>{let t=Fe.length-1;if(e.key===`ArrowDown`)e.preventDefault(),Le(e=>t<0?0:Math.min(e+1,t));else if(e.key===`ArrowUp`)e.preventDefault(),Le(e=>Math.max(e-1,0));else if(e.key===`Home`&&!e.currentTarget.value)e.preventDefault(),Le(0);else if(e.key===`End`&&!e.currentTarget.value)e.preventDefault(),Le(Math.max(t,0));else if(e.key===`Enter`){if(e.preventDefault(),(e.metaKey||e.ctrlKey)&&O){O(U);return}q&&ft(q)}else if(e.key===`Escape`)e.preventDefault(),e.stopPropagation(),U?fe(``):ue(!1);else if(e.key===`Backspace`&&!U&&ye.length)e.preventDefault(),be(ye.slice(0,-1));else if(e.key===`Tab`&&x&&!R){e.preventDefault();let t=x.findIndex(e=>e.value===he);ge(x[(t+(e.shiftKey?-1:1)+x.length)%x.length].value)}else if(e.key===` `&&D?.length){let t=/(?:^|\s)([A-Za-z][\w-]*):(\S+)$/.exec(e.currentTarget.value);if(t&&D.includes(t[1].toLowerCase())){e.preventDefault();let n=t[1].toLowerCase();be([...ye,{id:`${n}:${t[2]}`,label:`${n}: ${t[2]}`,value:t[2]}]),fe(e.currentTarget.value.slice(0,t.index).trim())}}};if(i.default.useLayoutEffect(()=>{let e=Ve.current;if(!V||!xe||!e||!x||R){We(null),Ke(!1);return}let t=()=>{let e=He.current.get(he);We(e?{x:e.offsetLeft,w:e.offsetWidth}:null)};t();let n=requestAnimationFrame(()=>Ke(!0)),r=new ResizeObserver(t);return He.current.forEach(e=>r.observe(e)),()=>{cancelAnimationFrame(n),r.disconnect()}},[V,xe,he,x,R,je]),!xe)return(0,a.jsx)(`span`,{ref:$e,style:{display:`none`},"aria-hidden":`true`});let mt=!!A&&!R,ht=v===`loading`?`Searching`:v===`error`?`Search is unavailable`:Me?`No results`:`${Ae} result${Ae===1?``:`s`}`,Y=(e,n=_)=>{let r=q?.id===e.id,i=e.icon??ct[e.type??`action`],o=e.type===`person`||e.avatar;return(0,a.jsxs)(`div`,{id:Re(e),role:`option`,"aria-selected":r,"aria-disabled":e.disabled||void 0,"data-hover-item":e.disabled?`off`:``,"data-type":e.type,ref:t=>{t?qe.current.set(e.id,t):qe.current.delete(e.id)},className:ot(J.item,r&&J[`item--active`],e.disabled&&J[`item--disabled`]),onMouseMove:()=>{let t=Fe.findIndex(t=>t.id===e.id);t>=0&&t!==Ie&&Le(t)},onClick:()=>ft(e),children:[(!R||o)&&(0,a.jsx)(`span`,{className:ot(J.item__lead,e.type===`ai`&&J[`item__lead--ai`],o&&J[`item__lead--person`]),"aria-hidden":`true`,children:o?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(t.jt,{size:`sm`,src:e.avatar?.src,initials:e.avatar?.initials,alt:e.avatar?.alt??``}),e.avatar?.status&&(0,a.jsx)(`span`,{className:ot(J.item__status,J[`item__status--${e.avatar.status}`])})]}):(0,a.jsx)(i,{size:16,strokeWidth:t.Pt(16)})}),R&&!o&&(0,a.jsx)(i,{size:16,strokeWidth:t.Pt(16),className:J.item__bare,"aria-hidden":`true`}),(0,a.jsxs)(`span`,{className:J.item__text,children:[(0,a.jsx)(`span`,{className:J.item__label,children:n?(0,a.jsx)(dt,{text:e.label,query:U}):e.label}),e.description&&(0,a.jsx)(`span`,{className:J.item__desc,children:e.description})]}),(0,a.jsxs)(`span`,{className:J.item__trail,children:[e.meta&&(0,a.jsx)(`span`,{className:J.item__meta,children:e.meta}),e.shortcut&&(0,a.jsx)(`span`,{className:J.item__keys,"aria-hidden":`true`,children:e.shortcut.map(e=>(0,a.jsx)(rt,{children:e},e))}),r&&!e.shortcut&&e.type!==`ai`&&(0,a.jsx)(`span`,{className:J.item__enter,"aria-hidden":`true`,children:(0,a.jsx)(rt,{children:`↵`})})]})]},e.id)},gt=(e,t)=>(0,a.jsxs)(`div`,{role:`group`,"aria-labelledby":e.label?`${z}-g-${e.id}`:void 0,className:J.group,children:[e.label&&(0,a.jsxs)(`div`,{className:J.group__label,children:[(0,a.jsx)(`span`,{id:`${z}-g-${e.id}`,children:e.label}),e.action&&(0,a.jsx)(`button`,{type:`button`,tabIndex:-1,className:J.group__action,onClick:e.action.onClick,children:e.action.label})]}),e.items.map(e=>Y(e,t))]},e.id),_t=[{keys:[`↑`,`↓`],label:`Navigate`},{keys:[`↵`],label:`Open`},...O&&!R?[{keys:[`⌘`,`↵`],label:`Ask AI`}]:[],{keys:[`esc`],label:`Close`}];return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(`span`,{ref:$e,style:{display:`none`},"aria-hidden":`true`}),(0,s.createPortal)((0,a.jsx)(`div`,{className:ot(J.backdrop,et,V?J[`backdrop--in`]:J[`backdrop--out`]),"data-surface":tt,onMouseDown:e=>{e.target===e.currentTarget&&ue(!1)},children:(0,a.jsxs)(`div`,{ref:nt,role:`dialog`,"aria-modal":`true`,"aria-label":se,className:ot(J.panel,R&&J[`panel--simple`],mt&&J[`panel--preview`],V?J[`panel--in`]:J[`panel--out`],ce),children:[(0,a.jsxs)(`div`,{className:J.field,children:[(0,a.jsx)(n.y,{size:20,strokeWidth:t.Pt(20),className:J.field__icon,"aria-hidden":`true`}),(0,a.jsxs)(`div`,{className:J.field__content,children:[ye.map(e=>{let r=e.icon;return(0,a.jsxs)(`span`,{className:J.token,children:[r&&(0,a.jsx)(r,{size:13,strokeWidth:t.Pt(13),className:J.token__icon,"aria-hidden":`true`}),e.label,(0,a.jsx)(`button`,{type:`button`,tabIndex:-1,className:J.token__remove,onClick:()=>{be(ye.filter(t=>t.id!==e.id)),it.current?.focus()},"aria-label":`Remove ${e.label}`,children:(0,a.jsx)(n.R,{size:12,strokeWidth:t.Pt(12),"aria-hidden":`true`})})]},e.id)}),(0,a.jsx)(`input`,{ref:it,className:J.input,type:`text`,role:`combobox`,"aria-expanded":`true`,"aria-controls":`${z}-list`,"aria-activedescendant":q?Re(q):void 0,"aria-autocomplete":`list`,autoComplete:`off`,autoCorrect:`off`,spellCheck:!1,"aria-label":se,placeholder:m,value:U,onChange:e=>fe(e.target.value),onKeyDown:pt})]}),v===`loading`&&(0,a.jsx)(at,{size:`sm`,label:`Searching`}),U&&v!==`loading`&&(0,a.jsx)(`button`,{type:`button`,tabIndex:-1,className:J.field__clear,onClick:()=>{fe(``),it.current?.focus()},"aria-label":`Clear the search`,children:(0,a.jsx)(r.r,{size:16,strokeWidth:t.Pt(16),"aria-hidden":`true`})}),(0,a.jsx)(rt,{children:`esc`})]}),x&&!R&&(0,a.jsxs)(`div`,{ref:Ve,className:J.scopes,role:`tablist`,"aria-label":`Scope`,children:[(0,a.jsx)(`span`,{className:ot(J.scopes__pill,Ge&&J[`scopes__pill--glide`]),"aria-hidden":`true`,style:Ue?{transform:`translateX(${Ue.x}px)`,width:Ue.w,opacity:1}:void 0}),x.map(e=>(0,a.jsxs)(`button`,{ref:t=>{t?He.current.set(e.value,t):He.current.delete(e.value)},type:`button`,role:`tab`,tabIndex:-1,"aria-selected":e.value===he,className:ot(J.scope,e.value===he&&J[`scope--active`]),onClick:()=>{ge(e.value),it.current?.focus()},children:[e.label,je&&ke[e.value]!=null&&(0,a.jsx)(`span`,{className:J.scope__count,children:ke[e.value]})]},e.value)),(0,a.jsxs)(`span`,{className:J.scopes__hint,"aria-hidden":`true`,children:[`Switch scope `,(0,a.jsx)(rt,{children:`tab`})]})]}),(0,a.jsxs)(`div`,{className:J.split,children:[(0,a.jsxs)(`div`,{ref:e=>{Be.current=e,ze.ref(e)},...ze.groupProps,onMouseLeave:()=>{if(ze.groupProps.onMouseLeave(),q){let e=qe.current.get(q.id);e&&requestAnimationFrame(()=>ze.showItem(e))}},className:J.body,children:[ze.highlight,k&&(0,a.jsx)(`div`,{className:J.answerSlot,children:k}),v===`loading`&&(0,a.jsxs)(`div`,{className:J.loading,"aria-hidden":`true`,children:[(0,a.jsx)(`div`,{className:J.group__label,children:(0,a.jsx)(`span`,{children:`Searching…`})}),[0,1,2,3].map(e=>(0,a.jsxs)(`div`,{className:J.skeleton,children:[(0,a.jsx)(t.j,{variant:`rect`,width:28,height:28}),(0,a.jsxs)(`div`,{className:J.skeleton__lines,children:[(0,a.jsx)(t.j,{variant:`text`,width:e%2?160:220,height:10}),(0,a.jsx)(t.j,{variant:`text`,width:e%2?110:140,height:8})]})]},e))]}),v===`error`&&(0,a.jsxs)(`div`,{className:ot(J.message,J[`message--error`]),children:[(0,a.jsx)(`span`,{className:J.message__tile,"aria-hidden":`true`,children:(0,a.jsx)(n.z,{size:22,strokeWidth:t.Pt(22)})}),(0,a.jsxs)(`div`,{className:J.message__text,children:[(0,a.jsx)(`strong`,{children:te}),(0,a.jsx)(`span`,{children:I})]}),(ne||L)&&(0,a.jsxs)(`div`,{className:J.message__actions,children:[ne&&(0,a.jsx)(t.Et,{variant:`secondary`,size:`sm`,onClick:ne,children:re}),L&&(0,a.jsx)(t.Et,{variant:`ghost`,size:`sm`,onClick:L,children:ie})]})]}),Me&&(0,a.jsxs)(`div`,{className:ot(J.message,J[`message--empty`]),children:[(0,a.jsxs)(`span`,{className:J.ghost,"aria-hidden":`true`,children:[(0,a.jsx)(ut,{}),(0,a.jsx)(`span`,{className:J.ghost__lens,children:(0,a.jsx)(`span`,{className:J.ghost__glass,children:(0,a.jsx)(`span`,{className:J.ghost__zoom,children:(0,a.jsx)(ut,{})})})})]}),(0,a.jsxs)(`div`,{className:J.message__text,children:[(0,a.jsx)(`strong`,{children:N??(0,a.jsxs)(a.Fragment,{children:[`No results for “`,U.trim()||ye.map(e=>e.label).join(`, `),`”`]})}),(0,a.jsx)(`span`,{children:ee??`Check the spelling, or try a broader search.`})]}),P&&P.length>0&&(0,a.jsx)(`div`,{className:J.message__chips,children:P.map(e=>{let n=e.icon,r=e.emphasis?e.label.indexOf(e.emphasis):-1,i=n&&(0,a.jsx)(n,{size:14,strokeWidth:t.Pt(14),"aria-hidden":`true`});return(0,a.jsxs)(`button`,{type:`button`,tabIndex:-1,className:J.chip,onClick:e.onSelect,children:[e.iconPosition!==`end`&&i,(0,a.jsx)(`span`,{children:r<0?e.label:(0,a.jsxs)(a.Fragment,{children:[e.label.slice(0,r),(0,a.jsx)(`strong`,{className:J.chip__em,children:e.emphasis}),e.label.slice(r+e.emphasis.length)]})}),e.iconPosition===`end`&&i]},e.label)})})]}),(0,a.jsx)(`div`,{id:`${z}-list`,role:`listbox`,"aria-label":`Results`,"aria-busy":v===`loading`||void 0,className:J.groups,children:Pe.map(e=>gt(e,_&&!Ne))})]}),mt&&(0,a.jsxs)(`aside`,{className:J.preview,"aria-label":`Preview`,children:[(0,a.jsx)(`div`,{className:J.preview__scroll,children:(0,a.jsx)(`div`,{className:J.preview__stack,children:(0,a.jsx)(`div`,{className:J.preview__layer,children:Qe??(0,a.jsx)(`div`,{className:J.preview__empty,children:M})})})}),Qe&&j&&Ze&&(0,a.jsx)(`div`,{className:J.preview__actions,children:typeof j==`function`?j(Ze):j})]})]}),(0,a.jsx)(`div`,{role:`status`,className:J.sr,children:ht}),!oe&&(0,a.jsxs)(`div`,{className:J.footer,children:[!R&&ae&&(0,a.jsxs)(`span`,{className:J.footer__workspace,children:[(0,a.jsx)(`span`,{className:J.footer__dot,"aria-hidden":`true`}),ae,(0,a.jsx)(n.A,{size:12,strokeWidth:t.Pt(12),className:J.footer__chevron,"aria-hidden":`true`})]}),(0,a.jsx)(`span`,{className:J.footer__hints,"aria-hidden":`true`,children:_t.map(e=>(0,a.jsxs)(`span`,{className:J.hint,children:[(0,a.jsx)(`span`,{className:J.hint__keys,children:e.keys.map(e=>(0,a.jsx)(rt,{children:e},e))}),e.label]},e.label))})]})]})}),document.body)]})};ht.displayName=`CommandMenu`;var Y={field:`_field_1oby0_7`,field__label:`_field__label_1oby0_8`,field__description:`_field__description_1oby0_9`,field__error:`_field__error_1oby0_10`,control:`_control_1oby0_13`,"control--sm":`_control--sm_1oby0_25`,"control--md":`_control--md_1oby0_26`,"control--lg":`_control--lg_1oby0_27`,"control--open":`_control--open_1oby0_30`,"control--error":`_control--error_1oby0_41`,"control--disabled":`_control--disabled_1oby0_46`,control__value:`_control__value_1oby0_52`,"control__value--placeholder":`_control__value--placeholder_1oby0_62`,control__input:`_control__input_1oby0_63`,control__chevron:`_control__chevron_1oby0_83`,"control__chevron--open":`_control__chevron--open_1oby0_84`,chips:`_chips_1oby0_90`,chip:`_chip_1oby0_90`,"chip--leaving":`_chip--leaving_1oby0_102`,"sakani-combobox-chip-out":`_sakani-combobox-chip-out_1oby0_1`,chip__remove:`_chip__remove_1oby0_110`,panel:`_panel_1oby0_121`,"panel--entering":`_panel--entering_1oby0_145`,"sakani-combobox-panel-in":`_sakani-combobox-panel-in_1oby0_1`,"panel--exiting":`_panel--exiting_1oby0_146`,"sakani-combobox-panel-out":`_sakani-combobox-panel-out_1oby0_1`,panel__empty:`_panel__empty_1oby0_156`,option:`_option_1oby0_164`,"option--selected":`_option--selected_1oby0_189`,"option--disabled":`_option--disabled_1oby0_190`,optionHighlight:`_optionHighlight_1oby0_165`,"optionHighlight--animated":`_optionHighlight--animated_1oby0_221`,option__box:`_option__box_1oby0_228`,"option__box--checked":`_option__box--checked_1oby0_245`,option__icon:`_option__icon_1oby0_250`,option__label:`_option__label_1oby0_251`,option__check:`_option__check_1oby0_252`,panel__loading:`_panel__loading_1oby0_255`,panel__spinner:`_panel__spinner_1oby0_259`,"sakani-cb-spin":`_sakani-cb-spin_1oby0_1`},gt=({options:e,mode:n=`single`,size:r=`md`,label:o,description:s,error:c,placeholder:l=`Select...`,disabled:u,loading:d,value:f,onChange:p,className:m})=>{let h=i.default.useId(),[g,_]=i.default.useState(!1),[v,y]=i.default.useState(!1),[b,x]=i.default.useState(0),S=i.default.useRef(null),C=e;i.default.useEffect(()=>{g&&y(!0)},[g]);let w=i.default.useRef({}),T=i.default.useRef(null),[E,D]=i.default.useState(null),[O,k]=i.default.useState(!1);i.default.useLayoutEffect(()=>{let e=w.current[b];if(!e){D(null);return}D({top:e.offsetTop,height:e.offsetHeight})},[b,C.length]),i.default.useLayoutEffect(()=>{if(!v){k(!1);return}k(!1);let e=window.requestAnimationFrame(()=>k(!0));return()=>window.cancelAnimationFrame(e)},[v]),i.default.useEffect(()=>{if(!T.current)return;let e=new ResizeObserver(()=>{let e=w.current[b];e&&D({top:e.offsetTop,height:e.offsetHeight})});return e.observe(T.current),()=>e.disconnect()},[v]);let[A,j]=i.default.useState(n===`multi`?[]:``),M=f===void 0?A:f,N=Array.isArray(M)?M:M?[M]:[],[ee,P]=i.default.useState(()=>N.map(e=>({value:e,leaving:!1}))),F=N.join(`\0`);i.default.useLayoutEffect(()=>{P(e=>{let t=e.map(e=>({value:e.value,leaving:!N.includes(e.value)}));for(let e of N)t.some(t=>t.value===e)||t.push({value:e,leaving:!1});return t})},[F]);let te=e=>P(t=>t.filter(t=>!(t.value===e&&t.leaving))),I=!!c;i.default.useEffect(()=>{let e=e=>{S.current&&!S.current.contains(e.target)&&_(!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[]);let ne=e=>{f===void 0&&j(e),p?.(e)},L=e=>{if(!e.disabled)if(n===`multi`){let t=new Set(N);t.has(e.value)?t.delete(e.value):t.add(e.value),ne([...t])}else ne(e.value),_(!1)},re=t=>e.find(e=>e.value===t)?.label??t,ie=N.length?re(N[0]):``,ae=e=>{u||(e.key===`ArrowDown`?(e.preventDefault(),_(!0),x(e=>Math.min(e+1,C.length-1))):e.key===`ArrowUp`?(e.preventDefault(),x(e=>Math.max(e-1,0))):e.key===`Enter`?(e.preventDefault(),g&&C[b]?L(C[b]):_(!0)):e.key===`Escape`&&_(!1))},oe=u?`disabled`:I?`error`:g?`open`:`default`;return(0,a.jsxs)(`div`,{className:[Y.field,m??``].filter(Boolean).join(` `),ref:S,children:[o&&(0,a.jsx)(`label`,{htmlFor:`${h}-trigger`,className:Y.field__label,children:o}),(0,a.jsxs)(`div`,{id:`${h}-trigger`,role:`combobox`,tabIndex:u?-1:0,"aria-haspopup":`listbox`,"aria-expanded":g,"aria-controls":`${h}-panel`,"aria-invalid":I||void 0,"aria-disabled":u||void 0,"aria-activedescendant":g&&C[b]?`${h}-opt-${b}`:void 0,className:[Y.control,Y[`control--${r}`],Y[`control--${oe}`]].join(` `),onClick:()=>!u&&_(e=>!e),onKeyDown:ae,children:[n===`multi`&&ee.length>0&&(0,a.jsx)(`div`,{className:Y.chips,children:ee.map(({value:t,leaving:n})=>(0,a.jsxs)(`span`,{className:[Y.chip,n?Y[`chip--leaving`]:``].filter(Boolean).join(` `),"aria-hidden":n||void 0,onAnimationEnd:n?()=>te(t):void 0,children:[re(t),(0,a.jsx)(`button`,{type:`button`,className:Y.chip__remove,tabIndex:n?-1:void 0,onClick:n=>{n.stopPropagation(),L(e.find(e=>e.value===t))},"aria-label":`Remove ${re(t)}`,children:`×`})]},t))}),!(n===`multi`&&ee.length>0)&&(0,a.jsx)(`span`,{className:[Y.control__value,n===`single`&&ie?``:Y[`control__value--placeholder`]].filter(Boolean).join(` `),children:n===`single`&&ie?ie:l}),(0,a.jsx)(`span`,{className:[Y.control__chevron,g?Y[`control__chevron--open`]:``].join(` `),"aria-hidden":`true`,children:(0,a.jsx)(`svg`,{width:16,height:16,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:t.Pt(16),strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,a.jsx)(`path`,{d:`m6 9 6 6 6-6`})})})]}),v&&!u&&(0,a.jsx)(`div`,{ref:T,className:[Y.panel,g?Y[`panel--entering`]:Y[`panel--exiting`]].filter(Boolean).join(` `),id:`${h}-panel`,role:`listbox`,"aria-multiselectable":n===`multi`||void 0,"aria-busy":d||void 0,onAnimationEnd:()=>{g||y(!1)},children:d?(0,a.jsxs)(`div`,{className:Y.panel__loading,children:[(0,a.jsx)(`span`,{className:Y.panel__spinner,"aria-hidden":`true`}),`Loading…`]}):C.length===0?(0,a.jsx)(`div`,{className:Y.panel__empty,children:`No options available`}):(0,a.jsxs)(a.Fragment,{children:[E&&(0,a.jsx)(`span`,{"aria-hidden":`true`,className:[Y.optionHighlight,O?Y[`optionHighlight--animated`]:``].filter(Boolean).join(` `),style:{transform:`translateY(${E.top}px)`,height:E.height}}),C.map((e,r)=>{let i=N.includes(e.value);return(0,a.jsxs)(`div`,{ref:e=>{w.current[r]=e},id:`${h}-opt-${r}`,role:`option`,"aria-selected":i,className:[Y.option,i&&n===`single`?Y[`option--selected`]:``,e.disabled?Y[`option--disabled`]:``].filter(Boolean).join(` `),onMouseEnter:()=>{e.disabled||x(r)},onClick:()=>L(e),children:[n===`multi`&&(0,a.jsx)(`span`,{className:[Y.option__box,i?Y[`option__box--checked`]:``].filter(Boolean).join(` `),"aria-hidden":`true`,children:(0,a.jsx)(`svg`,{width:12,height:12,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:t.Pt(12),strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,a.jsx)(`polyline`,{points:`20 6 9 17 4 12`})})}),e.icon&&(0,a.jsx)(`span`,{className:Y.option__icon,"aria-hidden":`true`,children:e.icon}),(0,a.jsx)(`span`,{className:Y.option__label,children:e.label}),i&&n===`single`&&(0,a.jsx)(`span`,{className:Y.option__check,"aria-hidden":`true`,children:(0,a.jsx)(`svg`,{width:16,height:16,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,a.jsx)(`polyline`,{points:`20 6 9 17 4 12`})})})]},e.value)})]})}),(s||c)&&(0,a.jsx)(`span`,{className:I?Y.field__error:Y.field__description,children:c||s})]})},_t={wrap:`_wrap_1j16e_2`,dropzone:`_dropzone_1j16e_4`,"dropzone--dragging":`_dropzone--dragging_1j16e_21`,dropzone__icon:`_dropzone__icon_1j16e_23`,dropzone__label:`_dropzone__label_1j16e_28`,dropzone__link:`_dropzone__link_1j16e_29`,dropzone__hint:`_dropzone__hint_1j16e_30`,input:`_input_1j16e_32`,files:`_files_1j16e_35`,file:`_file_1j16e_35`,file__icon:`_file__icon_1j16e_45`,file__name:`_file__name_1j16e_46`,file__remove:`_file__remove_1j16e_47`},vt=({accept:e,multiple:r,hint:o=`SVG, PNG, JPG or PDF (max. 2MB)`,onFilesChange:s,className:c})=>{let l=i.default.useRef(null),[u,d]=i.default.useState(!1),[f,p]=i.default.useState([]),m=e=>{p(e),s?.(e)},h=e=>{if(!e)return;let t=Array.from(e);m(r?[...f,...t]:t.slice(0,1))},g=e=>m(f.filter((t,n)=>n!==e));return(0,a.jsxs)(`div`,{className:[_t.wrap,c??``].filter(Boolean).join(` `),children:[(0,a.jsxs)(`div`,{className:[_t.dropzone,u?_t[`dropzone--dragging`]:``].filter(Boolean).join(` `),onClick:()=>l.current?.click(),onDragOver:e=>{e.preventDefault(),d(!0)},onDragLeave:()=>d(!1),onDrop:e=>{e.preventDefault(),d(!1),h(e.dataTransfer.files)},role:`button`,tabIndex:0,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&l.current?.click()},children:[(0,a.jsx)(`span`,{className:_t.dropzone__icon,"aria-hidden":`true`,children:(0,a.jsx)(n.c,{size:22,strokeWidth:t.Pt(22)})}),(0,a.jsxs)(`span`,{className:_t.dropzone__label,children:[(0,a.jsx)(`span`,{className:_t.dropzone__link,children:`Click to upload`}),` or drag and drop`]}),(0,a.jsx)(`span`,{className:_t.dropzone__hint,children:o}),(0,a.jsx)(`input`,{ref:l,type:`file`,accept:e,multiple:r,className:_t.input,onChange:e=>h(e.target.files)})]}),f.length>0&&(0,a.jsx)(`ul`,{className:_t.files,children:f.map((e,r)=>(0,a.jsxs)(`li`,{className:_t.file,children:[(0,a.jsx)(`span`,{className:_t.file__icon,"aria-hidden":`true`,children:(0,a.jsx)(n.f,{size:16,strokeWidth:t.Pt(16)})}),(0,a.jsx)(`span`,{className:_t.file__name,children:e.name}),(0,a.jsx)(`button`,{type:`button`,className:_t.file__remove,onClick:()=>g(r),"aria-label":`Remove ${e.name}`,children:(0,a.jsx)(n.R,{size:14,strokeWidth:t.Pt(14)})})]},r))})]})},yt={chart:`_chart_1m9hd_1`,svg:`_svg_1m9hd_7`,segment:`_segment_1m9hd_12`,pctLabel:`_pctLabel_1m9hd_19`,labels:`_labels_1m9hd_27`,labelItem:`_labelItem_1m9hd_31`,tooltip:`_tooltip_1m9hd_41`,tooltip__title:`_tooltip__title_1m9hd_54`,tooltip__row:`_tooltip__row_1m9hd_60`,tooltip__dot:`_tooltip__dot_1m9hd_68`,tooltip__label:`_tooltip__label_1m9hd_74`,tooltip__value:`_tooltip__value_1m9hd_75`},bt={sm:180,md:240,lg:320,xl:420},xt=560,St=.3,Ct=.55,wt=({data:e,size:n=`md`,className:r})=>{let[o,s]=i.default.useState(null),c=i.default.useRef(null),l=t.ut(c),u=l(`--color-chart-1`)??`#ff4700`,d=l(`--color-bg-canvas`)??`#fafaf9`,f=e[0]?.value||1,p=bt[n],m=p*.66,h=m/2+8,g=xt/e.length,_=e[0]?.value||1,v=e=>e/_*m,y=e.map(e=>v(e.value));y.push(v(e[e.length-1]?.value??0)*Ct);let b=t=>e.length<=1?1:St+t/(e.length-1)*(1-St),x=o===null?null:e[o],S=o===null?0:h-y[o]/2,C=o===null?0:o*g+g/2;return(0,a.jsxs)(`div`,{ref:c,className:[yt.chart,r??``].filter(Boolean).join(` `),style:{height:p},children:[(0,a.jsx)(`svg`,{viewBox:`0 0 ${xt} ${p}`,width:`100%`,height:p,className:yt.svg,children:e.map((e,t)=>{let n=t*g,r=(t+1)*g,i=(n+r)/2,c=y[t]/2,l=y[t+1]/2,d=h-c,p=h-l,m=h+c,_=h+l,v=[`M ${n} ${d}`,`C ${i} ${d} ${i} ${p} ${r} ${p}`,`L ${r} ${_}`,`C ${i} ${_} ${i} ${m} ${n} ${m}`,`Z`].join(` `),x=o===null?b(t):t===o?1:.45,S=Math.round(e.value/f*100);return(0,a.jsxs)(`g`,{className:yt.segment,onMouseEnter:()=>s(t),onMouseLeave:()=>s(null),children:[(0,a.jsx)(`path`,{d:v,fill:u,fillOpacity:x}),(0,a.jsxs)(`text`,{x:i,y:h,textAnchor:`middle`,dominantBaseline:`middle`,className:yt.pctLabel,children:[S,`%`]})]},t)})}),(0,a.jsx)(`div`,{className:yt.labels,style:{gridTemplateColumns:`repeat(${e.length}, 1fr)`},children:e.map((e,t)=>(0,a.jsx)(`span`,{className:yt.labelItem,children:e.label},t))}),x&&(0,a.jsxs)(`div`,{className:yt.tooltip,style:{left:`${C/xt*100}%`,top:`${S/p*100}%`,background:d},children:[(0,a.jsx)(`span`,{className:yt.tooltip__title,children:x.label}),(0,a.jsxs)(`div`,{className:yt.tooltip__row,children:[(0,a.jsx)(`span`,{className:yt.tooltip__dot,style:{background:u}}),(0,a.jsx)(`span`,{className:yt.tooltip__label,children:`Share`}),(0,a.jsxs)(`span`,{className:yt.tooltip__value,children:[Math.round(x.value/f*100),`%`]})]})]})]})},Tt={chart:`_chart_1yc8b_1`,grid:`_grid_1yc8b_6`,rowLabel:`_rowLabel_1yc8b_13`,colLabel:`_colLabel_1yc8b_14`,cell:`_cell_1yc8b_29`,"chart--sm":`_chart--sm_1yc8b_38`,"chart--md":`_chart--md_1yc8b_39`,"chart--lg":`_chart--lg_1yc8b_40`,"chart--xl":`_chart--xl_1yc8b_41`,tooltip:`_tooltip_1yc8b_48`,tooltip__title:`_tooltip__title_1yc8b_70`,tooltip__row:`_tooltip__row_1yc8b_76`,tooltip__dot:`_tooltip__dot_1yc8b_84`,tooltip__label:`_tooltip__label_1yc8b_91`,tooltip__value:`_tooltip__value_1yc8b_92`},Et=.12,Dt=.45,Ot=({data:e,rowLabels:n,colLabels:r,valueLabel:o=`Value`,size:s=`md`,className:c})=>{let l=i.default.useRef(null),u=t.ut(l),d=i.default.useRef(null),[f,p]=i.default.useState(null),m=u(`--color-chart-1`)??`#ff4700`,h=Math.max(1,...e.flat()),g=e[0]?.length??0,_=(e,t,n)=>r=>{let i=r.currentTarget.getBoundingClientRect(),a=d.current?.getBoundingClientRect();a&&p({row:e,col:t,value:n,left:i.left-a.left+i.width/2,top:i.top-a.top})};return(0,a.jsx)(`div`,{ref:l,className:[Tt.chart,Tt[`chart--${s}`],c??``].filter(Boolean).join(` `),children:(0,a.jsxs)(`div`,{ref:d,className:Tt.grid,style:{gridTemplateColumns:`auto repeat(${g}, 1fr)`},children:[e.map((e,t)=>(0,a.jsxs)(i.default.Fragment,{children:[(0,a.jsx)(`span`,{className:Tt.rowLabel,children:n?.[t]??``}),e.map((e,n)=>{let r=f?.row===t&&f?.col===n,i=f!==null&&!r,o=r?1:Et+e/h*(1-Et);return(0,a.jsx)(`div`,{className:Tt.cell,style:{background:m,opacity:i?Dt:o},onMouseEnter:_(t,n,e),onMouseLeave:()=>p(null)},n)})]},t)),r&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(`span`,{}),r.map((e,t)=>(0,a.jsx)(`span`,{className:Tt.colLabel,children:e},t))]}),f&&(0,a.jsxs)(`div`,{className:Tt.tooltip,style:{left:f.left,top:f.top},children:[(0,a.jsx)(`span`,{className:Tt.tooltip__title,children:[n?.[f.row],r?.[f.col]].filter(Boolean).join(` · `)||`Row ${f.row+1}, Col ${f.col+1}`}),(0,a.jsxs)(`div`,{className:Tt.tooltip__row,children:[(0,a.jsx)(`span`,{className:Tt.tooltip__dot}),(0,a.jsx)(`span`,{className:Tt.tooltip__label,children:o}),(0,a.jsx)(`span`,{className:Tt.tooltip__value,children:f.value})]})]})]})})},kt={label:`_label_rcdks_3`,label__required:`_label__required_rcdks_17`},At=i.default.forwardRef(({required:e,children:t,className:n,...r},i)=>(0,a.jsxs)(`label`,{ref:i,className:[kt.label,n??``].filter(Boolean).join(` `),...r,children:[t,e&&(0,a.jsx)(`span`,{className:kt.label__required,"aria-hidden":`true`,children:` *`})]}));At.displayName=`Label`;var jt={item:`_item_4gag1_2`,"item--disabled":`_item--disabled_4gag1_22`,"item--selected":`_item--selected_4gag1_26`,item__leading:`_item__leading_4gag1_30`,item__text:`_item__text_4gag1_31`,item__title:`_item__title_4gag1_32`,item__description:`_item__description_4gag1_33`,item__trailing:`_item__trailing_4gag1_34`},Mt=({title:e,description:t,leading:n,trailing:r,selected:i,disabled:o,onClick:s,className:c})=>(0,a.jsxs)(`button`,{type:`button`,"data-hover-item":``,disabled:o,onClick:s,"aria-current":i?`true`:void 0,className:[jt.item,i?jt[`item--selected`]:``,o?jt[`item--disabled`]:``,c??``].filter(Boolean).join(` `),children:[n&&(0,a.jsx)(`span`,{className:jt.item__leading,children:n}),(0,a.jsxs)(`span`,{className:jt.item__text,children:[(0,a.jsx)(`span`,{className:jt.item__title,children:e}),t&&(0,a.jsx)(`span`,{className:jt.item__description,children:t})]}),r&&(0,a.jsx)(`span`,{className:jt.item__trailing,children:r})]}),X={map:`_map_1ogus_2`,tiles:`_tiles_1ogus_25`,tile:`_tile_1ogus_25`,overlay:`_overlay_1ogus_37`,controls:`_controls_1ogus_41`,group:`_group_1ogus_50`,button:`_button_1ogus_59`,divider:`_divider_1ogus_75`,attribution:`_attribution_1ogus_78`,marker:`_marker_1ogus_94`,"marker--selected":`_marker--selected_1ogus_106`,"marker--pin":`_marker--pin_1ogus_110`,pin:`_pin_1ogus_111`,pinShadow:`_pinShadow_1ogus_123`,"marker--dot":`_marker--dot_1ogus_141`,"marker--cluster":`_marker--cluster_1ogus_153`,clusterCount:`_clusterCount_1ogus_166`,popup:`_popup_1ogus_169`,"sakani-map-popup-in":`_sakani-map-popup-in_1ogus_1`,popupHeader:`_popupHeader_1ogus_190`,popupTitle:`_popupTitle_1ogus_191`,popupClose:`_popupClose_1ogus_192`,popupDescription:`_popupDescription_1ogus_207`,popupPointer:`_popupPointer_1ogus_209`},Nt=({icon:e,hovered:n,className:r,onClick:i,disabled:o,...s})=>(0,a.jsx)(`button`,{type:`button`,className:[X.button,r??``].filter(Boolean).join(` `),"data-hovered":n?``:void 0,disabled:o,onClick:i,...s,children:(0,a.jsx)(e,{size:16,strokeWidth:t.Pt(16),"aria-hidden":`true`})});Nt.displayName=`MapControlButton`;var Pt=({onZoomIn:e,onZoomOut:t,zoomInDisabled:i,zoomOutDisabled:o,zoom:s=!0,locate:c=!1,onLocate:l,className:u})=>(0,a.jsxs)(`div`,{className:[X.controls,u??``].filter(Boolean).join(` `),"data-map-ui":``,children:[s&&(0,a.jsxs)(`div`,{className:X.group,children:[(0,a.jsx)(Nt,{icon:n.O,"aria-label":`Zoom in`,disabled:i,onClick:e}),(0,a.jsx)(`span`,{className:X.divider}),(0,a.jsx)(Nt,{icon:n.k,"aria-label":`Zoom out`,disabled:o,onClick:t})]}),c&&(0,a.jsx)(`div`,{className:X.group,children:(0,a.jsx)(Nt,{icon:r.n,"aria-label":`Show my location`,onClick:l})})]});Pt.displayName=`MapControls`;var Ft=`AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH/4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADf//8AAf///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB////D//////n/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/gf/x////////wAAAAAbgAAB4AAAAAAPwAAAAAAAAAAAAAAAAAAAAAAAAAAAf//8A///////+AAAAB/ngAAAAAAAAAAH8AAAAAAAAAAAAAAAAAAAAAAAAcH3Hv/5////////8AAAAA/gAAAAAAAAAAAAD4AAAAAAAAAAAAAAAAAAAAAAcIAAQP/AH///////+AAAAAPCAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAAAAADwDAc+f+AP///////4AAAAAAAAAAAAAB4AAAAB/8AAAAAAAAAAAAAAAAAAAAAH9wc374AAAf/////8AAAAAAAAAAAAH4AAAA////AAAB/gAAAAAAAAAAAAAAAAwAAA/QAAAH/////8AAAAAAAAAAAAOAAAAP///wAAAAAAAAAAAAAAAAAAAAP8AYe+c3AAAD/////4AAAAAAAAAAAA4AAAH////++HgAOAAAAAAAAAAAAAAAfv+4+w/4gAAB/////wAAAAAAAAAAADwAHgH///////4AfgAAAAAgAAAAAAAAPf/4O4//9AAB/////wAAAAAAAAAAADwAPb////////4m//gAAAAAAAf+AAAAAA/+A8f//4AB////8gAAAAAAA/gAAAAAfv/////////////8AAAAAB///+H//H/+PeDwf+AA3////AAAAAAA//4AAAA8fv///////////////P8gAf////////A4CPz4H8AAP///wAAAAAAD///wADH/n3/////////////////8AD////////////34Z/wA///4AAAAAAAP///+M////n/////////////////+4E/////////////gD/8Af//gAAAAAAAf//5+P////f/////////////////fw/////////////6AD8YAf/wAAf8AAAA/8f+D///////////////////////AgEf///////////zw7/AAP/gAAP4AAAB/4/+f//////////////////////8AMAf//////////+DIA/gAH/gAAAAAAAH/z/////////////////////////+AAH///////////8AwgOAAD+AAAAAAAA//H/////////////////////////6AAP///////////wAA/AAAB+AAAAAAAB/+H//////////////////////nP+AAAH//z////////wAA/wAAAOAAAAAAAB//D/////////////////////+A/4AAAA/zAD///////gAA/4wAAAAAAAAAAB//Ab///////////////////+eDgAAAAABwAA///////4AA/94AAAAAAAAAYA5+A///////////////////4AAHAAAAAADcAAD//////4AAf/8AAAAAAAAA8AC+C///////////////////wAAfgAAAAAMAAAA///////wAf/8AAAAAAAAA4AO8H///////////////////AAA/gAAAABgAAAA///////8A///AAAAAAAAA8ANwH//////////////////8AAB/AAAAAEAAAAAf///////z///4AAAAAAAHOAEDv//////////////////+AAA+AAAAAAAAAABH///////x///8AAAAAAAHHAf/////////////////////6AA8AAAAAAAAAAAD///////x///8AAAAAAAGPz//////////////////////6AAwAAAAAAAAAAAD///////9///6AAAAAAAAPj//////////////////////6AAQAAAAAAAAAAAC///////////EAAAAAAAAYf//////////////////////7AAAAAAAAAAAAAABv////////+MNAAAAAAAAD///////////////////////zAAAAAAAAAAAAAAAH////////7gfgAAAAAAAf///////////////////////yAAAAAAAAAAAAAAAL/////////gCgAAAAAAAH///////////////////////iAAAAAAAAAAAAAAAP/////////pAAAAAAAAAD/////uP/x//////////////DAAAAAAAAAAAAAAAP/////////+AAAAAAAAAB//v//Gf/B/////////////+AAAAAAAAAAAAAAAAP////////8wAAAAAAAAAB//H/+AP+P/////////////8CAAAAAAAAAAAAAAAP////////wAAAAAAAAADj/jz/8AD/H/////////////4HgAAAAAAAAAAAAAAP////////gAAAAAAAAAH/4Bw/8AA/B////////////+APAAAAAAAAAAAAAAAP////////gAAAAAAAAAH/wA8f8Ph/g////////////8AAAAAAAAAAAAAAAAAP///////8AAAAAAAAAAH/gMHfJ///x///////////v4AMAAAAAAAAAAAAAAAP///////8AAAAAAAAAAH/AMCOP///h//////////+JwAMAAAAAAAAAAAAAAAH///////4AAAAAAAAAAH/AAAHH///g//////////8BwAIAAAAAAAAAAAAAAAH///////wAAAAAAAAAAH+AAYGH///w//////////+w4A4AAAAAAAAAAAAAAAD///////wAAAAAAAAAAAgf+ACBs//////////////g4D4AAAAAAAAAAAAAAAB///////wAAAAAAAAAAAj/+AAAA//////////////AYf4AAAAAAAAAAAAAAAA///////gAAAAAAAAAAB//8AAAA//////////////Ah2AAAAAAAAAAAAAAAAAP/////+AAAAAAAAAAAD//+AAAB//////////////gDwAAAAAAAAAAAAAAAAAH/////8AAAAAAAAAAAH///4GAB//////////////gDAAAAAAAAAAAAAAAAAAG/////4AAAAAAAAAAAP///8P4h//////////////wCAAAAAAAAAAAAAAAAAACf////4AAAAAAAAAAAP////v////////////////gAAAAAAAAAAAAAAAAAAABP//hgYAAAAAAAAAAAP//////3//P///////////wAAAAAAAAAAAAAAAAAAAAv//AAYAAAAAAAAAAAf//////9//H///////////wAAAAAAAAAAAAAAAAAAAB3/+AAcAAAAAAAAAAB///////4//h///////////gAAAAAAAAAAAAAAAAAAAAR/+AANAAAAAAAAAAD///////8//wH//////////AAAAAAAAAAAAAAAAAAAAAJ/+AAEAAAAAAAAAAH///////+f/0B/////////+AAAAAAAAAAAAAAAAAAAAAI/8AAAAAAAAAAAAAH///////+f/44Af///////+QAAAAAAAAAAAAAAAAAAAAAf8AAAAAAAAAAAAAP////////H//+AP///////4gAAAAAAAAAAAAAAAAAAAAAP8AAuAAAAAAAAAAP////////H///AD///v///ggAAAAAAAAAAAAAAAAAAAAAH+AABgAAAAAAAAAf////////n//+AD//4P//YAAAAAAAAAAAAAAAAAAAAAAAP+A4AYAAAAAAAAAP////////j//+AAf/4H/+AAAAAAAAAAAAAAAAgAAAAAAAH/B4ABwAAAAAAAAP////////h//8AAf/gD/8YAAAAAAAAAAAAAAAAAAAAAAAD/nwAD9AAAAAAAAP////////x//4AAf/AD/8QAAAAAAAAAAAAAAAAAAAAAAAAf/wAAAAAAAAAAAP////////4//gAAf+AD/+AAwAAAAAAAAAAAAAAAAAAAAAAH/wAAAAAAAAAAAf////////4f+AAAf8AD//AAwAAAAAAAAAAAAAAAAAAAAAAAH/AAAAAAAAAAAf////////8f8AAAPwAAP/gAwAAAAAAAAAAAAAAAAAAAAAAAD/gAAAAAAAAAAf////////+fgAAAPwAAP/gAwAAAAAAAAAAAAAAAAAAAAAAAA/AAAAAAAAAAAf/////////eAAAAHwAAP/gAMAAAAAAAAAAAAAAAAAAAAAAAAHgAAAAAAAAAAf/////////gAAAAHwAAM/gACAAAAAAAAAAAAAAAAAAAAAAAADABAAAAAAAAAP/////////gYAAADwAAEfgAJAAAAAAAAAAAAAAAAAAAAAAAADgPfOAAAAAAAH/////////34AAADwAAIOABAAAAAAAAAAAAAAAAAAAAAAAAAAyPf+AAAAAAAD//////////4AAADoAAIEACBAAAAAAAAAAAAAAAAAAAAAAAAA8///AAAAAAAB//////////wAAABIAAMAAAFAAAAAAAAAAAAAAAAAAAAAAAAAE///gAAAAAAB//////////wAAAAMAAEAAALgAAAAAAAAAAAAAAAAAAAAAAAAAf//wAAAAAAAf/////////gAAAAMAADAAMCAAAAAAAAAAAAAAAAAAAAAAAAAA////gAAAAAAP/B///////gAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAf///wAAAAAACAA///////AAAAAAAAxgA+AAAAAAAAAAAAAAAAAAAAAAAAAAAf///4AAAAAAAAAD/////+AAAAAAAAZgB4AAAAAAAAAAAAAAAAAAAAAAAAAAB////4AAAAAAAAAD/////8AAAAAAAAMwH8AAAAAAAAAAAAAAAAAAAAAAAAAAB////8AAAAAAAAAH/////4AAAAAAAAHQf8AIAAAAAAAAAAAAAAAAAAAAAAAAD////8AAAAAAAAAH/////gAAAAAAAAHgf88IAAAAAAAAAAAAAAAAAAAAAAAAD////+AAAAAAAAAH/////AAAAAAAAADwf8AAgAAAAAAAAAAAAAAAAAAAAAAAH/////4AAAAAAAAH/////AAAAAAAAABwP5wBwAAAAAAAAAAAAAAAAAAAAAAAH/////6AAAAAAAAD////+AAAAAAAAAB8P5wATwAAAAAAAAAAAAAAAAAAAAAAD//////4AAAAAAAB////8AAAAAAAAAA8AxQif+AAAAAAAAAAAAAAAAAAAAAAH//////8AAAAAAAB////4AAAAAAAAAAcAAIAD/gAAAAAAAAAAAAAAAAAAAAAH///////gAAAAAAA////4AAAAAAAAAAMAAIAI/ywAAAAAAAAAAAAAAAAAAAAH///////gAAAAAAA////4AAAAAAAAAADgAAAI/8BAAAAAAAAAAAAAAAAAAAAD///////gAAAAAAAf///4AAAAAAAAAAB+AAAA/4AIAAAAAAAAAAAAAAAAAAAB///////gAAAAAAAf///4AAAAAAAAAAAAmogAOMAAAAAAAAAAAAAAAAAAAAAB///////AAAAAAAAf///8AAAAAAAAAAAABCAAAGADAAAAAAAAAAAAAAAAAAAA///////AAAAAAAAf///8AAAAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAAf/////+AAAAAAAAP///8AAAAAAAAAAAAAAAgCAAAAAAAAAAAAAAAAAAAAAAAf/////8AAAAAAAAf///+AQAAAAAAAAAAAAB+CAAAAAAAAAAAAAAAAAAAAAAAP/////4AAAAAAAAf///+AQAAAAAAAAAAAAD8DAAAAAAAAAAAAAAAAAAAAAAAP/////4AAAAAAAA////+AwAAAAAAAAAAAA38DgAAAAAAAAAAAAAAAAAAAAAAH/////4AAAAAAAA////8BwAAAAAAAAAAAD/8DgAAAAAAAAAAAAAAAAAAAAAAB/////4AAAAAAAA////8PwAAAAAAAAAAAD//HwAABABAAAAAAAAAAAAAAAAAAf////4AAAAAAAA////wPgAAAAAAAAAAAP//3wAAAACAAAAAAAAAAAAAAAAAAP////wAAAAAAAA////APgAAAAAAAAAAAP///wAAAAAAAAAAAAAAAAAAAAAAAP////wAAAAAAAAf//+APgAAAAAAAAAAAf///4AAAAAAAAAAAAAAAAAAAAAAAP////wAAAAAAAAf//+APgAAAAAAAAAAD////+AAIAAAAAAAAAAAAAAAAAAAAP////gAAAAAAAAP//+AfAAAAAAAAAAAf////+AAEAAAAAAAAAAAAAAAAAAAAP////AAAAAAAAAP///AfAAAAAAAAAAA//////AAAAAAAAAAAAAAAAAAAAAAAP///4AAAAAAAAAP//+APAAAAAAAAAAA//////gAAAAAAAAAAAAAAAAAAAAAAf///gAAAAAAAAAH//+AOAAAAAAAAAAB//////wAAAAAAAAAAAAAAAAAAAAAAf///AAAAAAAAAAH//4AEAAAAAAAAAAA//////4AAAAAAAAAAAAAAAAAAAAAAf//+AAAAAAAAAAH//4AAAAAAAAAAAAB//////4AAAAAAAAAAAAAAAAAAAAAAf//+AAAAAAAAAAH//4AAAAAAAAAAAAA//////4AAAAAAAAAAAAAAAAAAAAAAf//+AAAAAAAAAAD//wAAAAAAAAAAAAAf/////8AAAAAAAAAAAAAAAAAAAAAAf//8AAAAAAAAAAB//gAAAAAAAAAAAAAf/////4AAAAAAAAAAAAAAAAAAAAAA///8AAAAAAAAAAB//gAAAAAAAAAAAAAf/////4AAAAAAAAAAAAAAAAAAAAAA///4AAAAAAAAAAA//AAAAAAAAAAAAAAP/////4AAAAAAAAAAAAAAAAAAAAAAf//wAAAAAAAAAAA/+AAAAAAAAAAAAAAP/AP//wAAAAAAAAAAAAAAAAAAAAAA///gAAAAAAAAAAA/4AAAAAAAAAAAAAAf8AG//gAAAAAAAAAAAAAAAAAAAAAA//3AAAAAAAAAAAAYAAAAAAAAAAAAAAAOAAF//gAAAAAAAAAAAAAAAAAAAAAB//4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//AAABAAAAAAAAAAAAAAAAAAB//4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/AAAAgAAAAAAAAAAAAAAAAAD//4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/AAAAQAAAAAAAAAAAAAAAAAB//gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABYAAAAcAAAAAAAAAAAAAAAAAB/8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAD/8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAD/gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcAAADQAAAAAAAAAAAAAAAAAD/4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcAAAHAAAAAAAAAAAAAAAAAAB/gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAOAAAAAAAAAAAAAAAAAAD/gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAH+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB4AAAAAAAAAAAAAAAAAAH+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAAAAH/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP8AAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH4BwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAABwAAAAAAAAAAAAAAAAAAH4AAAAAAB4HgAD8AAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAA//AAAD//////////wAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAf///4Af///////////AAAAAAAAAAAAAAAAAAAAAAAz4AAAAAAAAAAAAAAAPz////8B/////////////wAAAAAAAAAAAAAAAAAAAAA78AAAAAAAAAAA8/8///////wf/////////////+AAAAAAAAAAAAAAAAAAAAH9+AAAAAAAAZ////////////w////////////////4AAAAAAAAAAAAAAAAAAAB+AAAAAAAB//////////////////////////////4AAAAAAAAABmAAB8f+HB/+AAAAAAAP//////////////////////////////gAAAAAAAAP/c/oAf/////4AAAAAAAP/////////////////////////////8AAAAAAAD/////////////gAAAAAAB//////////////////////////////wAAAAAAAD////////////wAAAAAAP///////////////////////////////wAAAAAD/////////////4AAAAAAD////////////////////////////////wAAAADh/////////////AAAAB8A/////////////////////////////////+AAAAA4Af///////////gAAAH+AA///////////////////////////////+AAAAAAAAH///////////+A/A/wAA///////////////////////////////8AAAAAAAf//////////////gAAAf////////////////////////////////+AAAAAAAH///////////////h////////////////////////////////////wAAAAAAP/////////////////////////////////////////////////////gA+/gAAH/////////////////////////////////////////////////////8AAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA`,It=85.05112878,Lt=Math.PI/180,Z=(e,t,n)=>Math.min(n,Math.max(t,e)),Rt=e=>((e+180)%360+360)%360-180;function Q([e,t],n){let r=256*2**n,i=Math.sin(Z(e,-85.05112878,It)*Lt);return{x:(t+180)/360*r,y:(.5-Math.log((1+i)/(1-i))/(4*Math.PI))*r}}function zt(e,t,n){let r=256*2**n,i=Math.PI-2*Math.PI*t/r;return[Z(Math.atan(Math.sinh(i))/Lt,-85.05112878,It),Rt(e/r*360-180)]}var Bt=null;function Vt(){if(!Bt){let e=atob(Ft);Bt=new Uint8Array(e.length);for(let t=0;t<e.length;t++)Bt[t]=e.charCodeAt(t)}return Bt}function Ht(e,t){let n=Z(Math.floor(90-e),0,179),r=Z(Math.floor(Rt(t)+180),0,359),i=n*360+r;return(Vt()[i>>3]&128>>(i&7))!=0}function Ut(e){let t=[];for(let n=-90+e/2;n<90;n+=e){let r=Math.max(1,Math.round(360*Math.cos(n*Lt)/e));for(let e=0;e<r;e++){let i=-180+(e+.5)*360/r;t.push({cp:Math.cos(n*Lt),sp:Math.sin(n*Lt),lam:i*Lt,land:Ht(n,i)})}}return t}function Wt(e,t){let n=e*Lt,r=Math.cos(t*Lt),i=Math.sin(t*Lt);return(e,t,a)=>{let o=a-n,s=Math.cos(o);return{x:e*Math.sin(o),y:r*t-i*e*s,z:i*t+r*e*s}}}var Gt=([e,t])=>({cp:Math.cos(e*Lt),sp:Math.sin(e*Lt),lam:t*Lt});function Kt(e,t,n=64,r=.12){let i=e=>{let t=Gt(e);return[t.cp*Math.cos(t.lam),t.cp*Math.sin(t.lam),t.sp]},a=i(e),o=i(t),s=Math.acos(Z(a[0]*o[0]+a[1]*o[1]+a[2]*o[2],-1,1)),c=Math.sin(s)||1e-6,l=[];for(let e=0;e<=n;e++){let t=e/n,i=Math.sin((1-t)*s)/c,u=Math.sin(t*s)/c,d=i*a[0]+u*o[0],f=i*a[1]+u*o[1],p=i*a[2]+u*o[2],m=Math.asin(Z(p/(Math.hypot(d,f,p)||1),-1,1));l.push({cp:Math.cos(m),sp:Math.sin(m),lam:Math.atan2(f,d),h:1+r*Math.sin(Math.PI*t)*Math.min(1,s/1.2)})}return l}var qt=i.default.createContext(null);function Jt(){let e=i.default.useContext(qt);if(!e)throw Error(`MapMarker, MapPopup and MapClusterLayer must be rendered inside <Map>.`);return e}var Yt=()=>typeof window<`u`&&window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches;function Xt(e,t=0){let[n,r]=e,[a,o]=i.default.useState(e),s=i.default.useRef(e);return i.default.useEffect(()=>{if(!t||Yt()){s.current=[n,r],o([n,r]);return}let e=s.current;if(e[0]===n&&e[1]===r)return;let i=(r-e[1]+540)%360-180,a=performance.now(),c=0,l=u=>{let d=Math.min(1,(u-a)/t),f=1-(1-d)**3,p=d===1?[n,r]:[e[0]+(n-e[0])*f,e[1]+i*f];s.current=p,o(p),d<1&&(c=requestAnimationFrame(l))};return c=requestAnimationFrame(l),()=>cancelAnimationFrame(c)},[n,r,t]),t&&!Yt()?a:e}var Zt=`M16 0C7.163 0 0 7.163 0 16c0 11 16 24 16 24s16-13 16-24C32 7.163 24.837 0 16 0Z`,Qt=({position:e,variant:t=`pin`,count:n,selected:r,hovered:i,glide:o,label:s,onClick:c,className:l})=>{let{project:u}=Jt(),d=u(Xt(e,o));if(!d)return null;let f=[X.marker,X[`marker--${t}`],r?X[`marker--selected`]:``,l??``].filter(Boolean).join(` `),p=t===`pin`?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(`span`,{className:X.pinShadow}),(0,a.jsxs)(`svg`,{className:X.pin,viewBox:`-1 -1 34 42`,"aria-hidden":`true`,children:[(0,a.jsx)(`path`,{d:Zt}),(0,a.jsx)(`circle`,{cx:`16`,cy:`16`,r:`6`})]})]}):t===`cluster`?(0,a.jsx)(`span`,{className:X.clusterCount,children:n}):null,m={left:d.x,top:d.y},h=i?``:void 0,g=s??(t===`cluster`&&n!=null?`${n} places`:void 0);return c?(0,a.jsx)(`button`,{type:`button`,className:f,style:m,"aria-label":g,"aria-pressed":r,"data-hovered":h,"data-map-ui":``,onClick:c,children:p}):(0,a.jsx)(`span`,{className:f,style:m,"data-hovered":h,role:g?`img`:void 0,"aria-label":g,"aria-hidden":!g||void 0,children:p})};Qt.displayName=`MapMarker`;var $t=`https://tile.openstreetmap.org/{z}/{x}/{y}.png`,en=(0,a.jsxs)(a.Fragment,{children:[`© `,(0,a.jsx)(`a`,{href:`https://www.openstreetmap.org/copyright`,target:`_blank`,rel:`noreferrer`,children:`OpenStreetMap`}),` contributors`]}),tn=260,nn=()=>typeof window<`u`&&window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches,rn=({center:e=[51.505,-.09],zoom:t=12,minZoom:n=2,maxZoom:r=18,onViewChange:o,tileUrl:s=$t,tileUrlDark:c,theme:l=`auto`,attribution:u=en,controls:d=!0,locate:f=!1,onLocate:p,onLocateError:m,height:h=400,"aria-label":g=`Map`,className:_,children:v})=>{let y=i.default.useRef(null),[b,x]=i.default.useState({w:0,h:0}),[S,C]=i.default.useState({center:e,zoom:Z(t,n,r)}),w=i.default.useRef(S);w.current=S;let T=i.default.useRef(0),[E,D]=i.default.useState(null),[O,k]=i.default.useState(l===`dark`);i.default.useLayoutEffect(()=>{let e=y.current;if(!e)return;let t=()=>k(l===`dark`||!!e.closest(`.dark`));t();let n=new MutationObserver(t);for(let t=e;t;t=t.parentElement)n.observe(t,{attributes:!0,attributeFilter:[`class`]});return()=>n.disconnect()},[l]);let A=O&&!!c,j=A?c:s;i.default.useLayoutEffect(()=>{let e=y.current;if(!e)return;let t=new ResizeObserver(([e])=>x({w:e.contentRect.width,h:e.contentRect.height}));return t.observe(e),()=>t.disconnect()},[]);let M=i.default.useCallback(e=>{let t={center:e.center,zoom:Z(e.zoom,n,r)};w.current=t,C(t),o?.(t)},[n,r,o]),N=i.default.useCallback((e,t)=>{cancelAnimationFrame(T.current);let i=w.current,a={center:e.center,zoom:Z(e.zoom,n,r)};if(nn()){M(a);return}let o=performance.now(),s=e=>{let n=Math.min(1,(e-o)/tn),r=1-(1-n)**3,c=i.zoom+(a.zoom-i.zoom)*r,l;if(t)l=F(P(t,i),t,c);else{let e=Q(i.center,c),t=Q(a.center,c);l=zt(e.x+(t.x-e.x)*r,e.y+(t.y-e.y)*r,c)}M({center:l,zoom:c}),n<1&&(T.current=requestAnimationFrame(s))};T.current=requestAnimationFrame(s)},[M,n,r,b.w,b.h]),ee=i.default.useRef(!0);i.default.useEffect(()=>{if(ee.current){ee.current=!1;return}N({center:e,zoom:t})},[e[0],e[1],t]),i.default.useEffect(()=>()=>cancelAnimationFrame(T.current),[]);let P=(e,t)=>{let n=Q(t.center,t.zoom);return zt(n.x+e.x-b.w/2,n.y+e.y-b.h/2,t.zoom)},F=(e,t,n)=>{let r=Q(e,n);return zt(r.x-(t.x-b.w/2),r.y-(t.y-b.h/2),n)},te=i.default.useRef(null),I=(e,t)=>{let n=w.current,r=Q(n.center,n.zoom);M({center:zt(r.x-e,r.y-t,n.zoom),zoom:n.zoom})},ne=e=>{e.button!==0||e.target.closest(`[data-map-ui]`)||(cancelAnimationFrame(T.current),te.current={id:e.pointerId,x:e.clientX,y:e.clientY,moved:!1,samples:[{x:e.clientX,y:e.clientY,t:performance.now()}]})},L=e=>{let t=te.current;if(!t||t.id!==e.pointerId)return;let n=e.clientX-t.x,r=e.clientY-t.y;!t.moved&&Math.hypot(n,r)<3||(t.moved||(t.moved=!0,y.current?.setPointerCapture(e.pointerId)),t.x=e.clientX,t.y=e.clientY,t.samples.push({x:e.clientX,y:e.clientY,t:performance.now()}),t.samples.length>5&&t.samples.shift(),I(n,r))},re=()=>{let e=te.current;if(te.current=null,!e||!e.moved||nn())return;let t=e.samples[0],n=e.samples[e.samples.length-1],r=Math.max(1,n.t-t.t);if(performance.now()-n.t>80)return;let i=(n.x-t.x)/r*16,a=(n.y-t.y)/r*16,o=()=>{i*=.9,a*=.9,!(Math.hypot(i,a)<.3)&&(I(i,a),T.current=requestAnimationFrame(o))};T.current=requestAnimationFrame(o)};i.default.useEffect(()=>{let e=y.current;if(!e)return;let t=t=>{t.preventDefault(),cancelAnimationFrame(T.current);let i=e.getBoundingClientRect(),a={x:t.clientX-i.left,y:t.clientY-i.top},o=w.current,s=Z(-t.deltaY*(t.ctrlKey?.01:.002),-.5,.5),c=Z(o.zoom+s,n,r),l=Q(o.center,o.zoom),u=Q(zt(l.x+a.x-i.width/2,l.y+a.y-i.height/2,o.zoom),c);M({center:zt(u.x-(a.x-i.width/2),u.y-(a.y-i.height/2),c),zoom:c})};return e.addEventListener(`wheel`,t,{passive:!1}),()=>e.removeEventListener(`wheel`,t)},[M,n,r]);let ie=e=>{if(e.target.closest(`[data-map-ui]`))return;let t=y.current.getBoundingClientRect();N({center:S.center,zoom:Math.round(S.zoom)+1},{x:e.clientX-t.left,y:e.clientY-t.top})},ae=e=>{if(e.target!==e.currentTarget)return;let t=e.key;if(t===`ArrowLeft`)I(80,0);else if(t===`ArrowRight`)I(-80,0);else if(t===`ArrowUp`)I(0,80);else if(t===`ArrowDown`)I(0,-80);else if(t===`+`||t===`=`)N({center:S.center,zoom:Math.round(S.zoom)+1});else if(t===`-`||t===`_`)N({center:S.center,zoom:Math.round(S.zoom)-1});else return;e.preventDefault()},oe=()=>{if(!navigator.geolocation){m?.(Error(`Geolocation is not supported in this browser.`));return}navigator.geolocation.getCurrentPosition(e=>{let t=[e.coords.latitude,e.coords.longitude];D(t),N({center:t,zoom:Math.max(S.zoom,14)}),p?.(t)},e=>m?.(e))},se=i.default.useRef(b);se.current=b;let ce=i.default.useRef(N);ce.current=N;let R=i.default.useCallback((e,t)=>{ce.current({center:e,zoom:t??w.current.zoom})},[]),z=i.default.useCallback((e,t=48)=>{if(!e.length)return;let{w:n,h:r}=se.current,i=e.map(e=>e[0]),a=e.map(t=>e[0][1]+((t[1]-e[0][1]+540)%360-180)),[o,s,c,l]=[Math.min(...i),Math.max(...i),Math.min(...a),Math.max(...a)],u=[(o+s)/2,Rt((c+l)/2)],d=Q([s,c],0),f=Q([o,l],0),p=Math.max(1e-6,Math.abs(f.x-d.x)),m=Math.max(1e-6,Math.abs(f.y-d.y)),h=Math.min(Math.log2(Math.max(1,n-t*2)/p),Math.log2(Math.max(1,r-t*2)/m));ce.current({center:u,zoom:e.length===1||!Number.isFinite(h)?Math.max(w.current.zoom,14):Math.floor(h*4)/4})},[]),le=Z(Math.round(S.zoom),0,r),B=2**(S.zoom-le),V=[];if(b.w&&b.h){let e=Q(S.center,le),t={x:b.w/2/B,y:b.h/2/B},n=2**le,r=Math.floor((e.x-t.x)/256),i=Math.floor((e.x+t.x)/256),a=Math.max(0,Math.floor((e.y-t.y)/256)),o=Math.min(n-1,Math.floor((e.y+t.y)/256));for(let t=a;t<=o;t++)for(let a=r;a<=i;a++){let r=(a%n+n)%n;V.push({key:`${le}/${a}/${t}`,src:j.replace(`{z}`,String(le)).replace(`{x}`,String(r)).replace(`{y}`,String(t)),left:(a*256-e.x)*B+b.w/2,top:(t*256-e.y)*B+b.h/2})}}let ue=256*B,H=i.default.useMemo(()=>{let e=Q(S.center,S.zoom),t=256*2**S.zoom;return{zoom:S.zoom,flyTo:R,fitBounds:z,maxZoom:r,project:n=>{if(!b.w||!b.h)return null;let r=Q(n,S.zoom),i=r.x-e.x;i-=Math.round(i/t)*t;let a=i+b.w/2,o=r.y-e.y+b.h/2;return a<-200||o<-200||a>b.w+200||o>b.h+200?null:{x:a,y:o}}}},[S,b.w,b.h,R,z,r]);return(0,a.jsxs)(`div`,{ref:y,className:[X.map,l===`dark`?`dark`:``,_??``].filter(Boolean).join(` `),"data-own-dark-tiles":A?``:void 0,style:{height:h},role:`region`,"aria-roledescription":`map`,"aria-label":g,tabIndex:0,onPointerDown:ne,onPointerMove:L,onPointerUp:re,onPointerCancel:re,onDoubleClick:ie,onKeyDown:ae,children:[(0,a.jsx)(`div`,{className:X.tiles,"aria-hidden":`true`,children:V.map(e=>(0,a.jsx)(`img`,{src:e.src,alt:``,draggable:!1,className:X.tile,style:{left:e.left,top:e.top,width:ue+.5,height:ue+.5},onLoad:e=>e.currentTarget.setAttribute(`data-loaded`,``)},e.key))}),(0,a.jsx)(qt.Provider,{value:H,children:(0,a.jsxs)(`div`,{className:X.overlay,children:[v,E&&(0,a.jsx)(Qt,{position:E,variant:`dot`,label:`Your location`})]})}),(d||f)&&(0,a.jsx)(Pt,{zoom:d,locate:f,onLocate:oe,zoomInDisabled:S.zoom>=r,zoomOutDisabled:S.zoom<=n,onZoomIn:()=>N({center:S.center,zoom:Math.round(S.zoom)+1}),onZoomOut:()=>N({center:S.center,zoom:Math.round(S.zoom)-1})}),u!=null&&(0,a.jsx)(`div`,{className:X.attribution,"data-map-ui":``,children:u})]})};rn.displayName=`Map`;var an=({position:e,title:r,description:i,onClose:o,offset:s=48,pointer:c=!0,glide:l,children:u,className:d})=>{let{project:f}=Jt(),p=f(Xt(e,l));return p?(0,a.jsxs)(`div`,{className:[X.popup,d??``].filter(Boolean).join(` `),style:{left:p.x,top:p.y-s},role:`dialog`,"aria-label":typeof r==`string`?r:void 0,"data-map-ui":``,onKeyDown:e=>{e.key===`Escape`&&o&&(e.stopPropagation(),o())},children:[(r||o)&&(0,a.jsxs)(`div`,{className:X.popupHeader,children:[r&&(0,a.jsx)(`div`,{className:X.popupTitle,children:r}),o&&(0,a.jsx)(`button`,{type:`button`,className:X.popupClose,"aria-label":`Close`,onClick:o,children:(0,a.jsx)(n.R,{size:14,strokeWidth:t.Pt(14),"aria-hidden":`true`})})]}),i&&(0,a.jsx)(`div`,{className:X.popupDescription,children:i}),u,c&&(0,a.jsx)(`span`,{className:X.popupPointer,"aria-hidden":`true`})]}):null};an.displayName=`MapPopup`;var on={globe:`_globe_w22uh_2`,"globe--draggable":`_globe--draggable_w22uh_10`,canvas:`_canvas_w22uh_12`,srOnly:`_srOnly_w22uh_15`},sn=8,cn=()=>typeof window<`u`&&window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches;function ln(e,t){t.fillStyle=`#000`,t.fillStyle=e;let n=String(t.fillStyle);if(n.startsWith(`#`))return[1,3,5].map(e=>parseInt(n.slice(e,e+2),16)).join(`,`);let r=n.match(/[\d.]+/g);return r?r.slice(0,3).join(`,`):`20,20,20`}var un=({variant:e=`land`,center:n=[15,90],markers:r=[],arcs:o=[],autoRotate:s=!0,rotationSpeed:c=6,draggable:l=!0,atmosphere:u=!0,dotSpacing:d=1.3,theme:f=`auto`,onMarkerClick:p,onMarkerHover:m,"aria-label":h=`Globe`,className:g})=>{let _=i.default.useRef(null),v=i.default.useRef(null),y=t.wt(),b=i.default.useMemo(()=>Ut(d),[d]),x=i.default.useMemo(()=>o.map(e=>Kt(e.from,e.to)),[o]),S=i.default.useRef({rot:n[1],tilt:Z(n[0],-60,60),vr:0,vt:0,dragging:!1,idleUntil:0}),C=i.default.useRef({rgb:`20,20,20`,surface:`255,255,255`,border:`230,230,230`,font:`sans-serif`,visible:!0,size:0,hits:[]}),w=i.default.useRef({markers:r,arcPts:x,variant:e,atmosphere:u,autoRotate:s,rotationSpeed:c});w.current={markers:r,arcPts:x,variant:e,atmosphere:u,autoRotate:s,rotationSpeed:c};let T=i.default.useRef({onMarkerClick:p,onMarkerHover:m});T.current={onMarkerClick:p,onMarkerHover:m};let E=i.default.useRef(null),D=e=>{E.current!==e&&(E.current=e,_.current&&(_.current.style.cursor=e==null?``:`pointer`),T.current.onMarkerHover?.(e))};i.default.useEffect(()=>{let e=v.current;if(!e)return;let t=document.createElement(`canvas`).getContext(`2d`);if(!t)return;let n=getComputedStyle(e),r=(e,r)=>ln(n.getPropertyValue(e).trim()||r,t);C.current.rgb=ln(n.getPropertyValue(`--color-fg-default`).trim()||n.color,t),C.current.surface=r(`--color-bg-surface`,`#ffffff`),C.current.border=r(`--color-border-subtle`,`#e5e5e5`),C.current.font=n.fontFamily||`sans-serif`},[y,f]),i.default.useEffect(()=>{let e=v.current,t=_.current;if(!e||!t)return;let n=e.getContext(`2d`);if(!n)return;let r=0,i=performance.now(),a=i,o=()=>{let r=t.clientWidth,i=Math.min(2,window.devicePixelRatio||1);C.current.size=r,e.width=Math.round(r*i),e.height=Math.round(r*i),e.style.width=`${r}px`,e.style.height=`${r}px`,n.setTransform(i,0,0,i,0,0)},s=new ResizeObserver(o);s.observe(t),o();let c=new IntersectionObserver(([e])=>{C.current.visible=e.isIntersecting});c.observe(t);let l=e=>{let t=C.current.size;if(!t)return;let r=w.current,i=S.current,o=C.current.rgb,s=t*.42,c=t/2,l=t/2,u=t/480,d=Wt(i.rot,i.tilt);if(n.clearRect(0,0,t,t),r.atmosphere){let e=n.createRadialGradient(c,l,s*.9,c,l,s*1.16);e.addColorStop(0,`rgba(${o},0.11)`),e.addColorStop(1,`rgba(${o},0)`),n.fillStyle=e,n.beginPath(),n.arc(c,l,s*1.16,0,Math.PI*2),n.fill()}let f=n.createRadialGradient(c-s*.35,l-s*.4,s*.1,c,l,s);f.addColorStop(0,`rgba(${o},0.07)`),f.addColorStop(1,`rgba(${o},0.02)`),n.fillStyle=f,n.beginPath(),n.arc(c,l,s,0,Math.PI*2),n.fill();let p=Array.from({length:sn},()=>new Path2D),m=new Path2D,h=r.variant===`ocean`;for(let e of b){let t=d(e.cp,e.sp,e.lam);if(t.z<=0)continue;let n=t.z**.55,r=c+s*t.x,i=l-s*t.y;if(h?!e.land:e.land){let e=1.15*u*(.6+.4*n),t=p[Math.min(sn-1,Math.floor(n*sn))];t.moveTo(r+e,i),t.arc(r,i,e,0,Math.PI*2)}else{let e=.8*u*(.6+.4*n);m.moveTo(r+e,i),m.arc(r,i,e,0,Math.PI*2)}}n.fillStyle=`rgba(${o},0.12)`,n.fill(m),p.forEach((e,t)=>{n.fillStyle=`rgba(${o},${.22+.78*((t+.5)/sn)})`,n.fill(e)}),n.lineCap=`round`;let g=(e-a)/1e3;r.arcPts.forEach((e,t)=>{let r=(g/2.6+t*.37)%1*(e.length-1);for(let t=1;t<e.length;t++){let i=e[t-1],a=e[t],f=d(i.cp,i.sp,i.lam),p=d(a.cp,a.sp,a.lam),m=Math.min(f.z,p.z),h=p.x*a.h,g=p.y*a.h;if(m<.04||Math.hypot(h,g)>.995&&m<.35)continue;let _=Math.min(1,(m-.04)/.25),v=Math.max(0,1-Math.abs(t-r)/6);n.strokeStyle=`rgba(${o},${(.28+.4*Math.sin(Math.PI*t/e.length)+.5*v)*_})`,n.lineWidth=(1.1+1.1*v)*u,n.beginPath(),n.moveTo(c+s*f.x*i.h,l-s*f.y*i.h),n.lineTo(c+s*h,l-s*g),n.stroke()}});let _=[],v=[];r.markers.forEach((e,t)=>{let r=Gt(e.position),i=d(r.cp,r.sp,r.lam);if(i.z<=.06)return;let a=c+s*i.x,f=l-s*i.y,p=Math.min(1,(i.z-.06)/.2);_.push({i:t,x:a,y:f});let m=!!e.selected,h=!!e.hovered||E.current===t;if((m||h)&&(n.fillStyle=`rgba(${o},${(m?.2:.14)*p})`,n.beginPath(),n.arc(a,f,(m?15:11)*u,0,Math.PI*2),n.fill(),e.label&&v.push({x:a,y:f,label:e.label,k:p})),e.active){let e=g%2/2;n.strokeStyle=`rgba(${o},${.5*(1-e)*p})`,n.lineWidth=1.5*u,n.beginPath(),n.arc(a,f,(5+14*e)*u,0,Math.PI*2),n.stroke(),n.fillStyle=`rgba(${o},${.16*p})`,n.beginPath(),n.arc(a,f,9*u,0,Math.PI*2),n.fill()}n.globalCompositeOperation=`destination-out`,n.beginPath(),n.arc(a,f,(m?7:h?6.5:5.5)*u,0,Math.PI*2),n.fill(),n.globalCompositeOperation=`source-over`,n.fillStyle=`rgba(${o},${p})`,n.beginPath(),n.arc(a,f,(m?5:h?4.5:3.5)*u,0,Math.PI*2),n.fill()}),C.current.hits=_;for(let e of v){n.font=`500 ${12*u}px ${C.current.font}`;let r=n.measureText(e.label).width+16*u,i=24*u,a=16*u,s=Z(e.x-r/2,4*u,t-r-4*u),c=e.y-a-i<4*u?e.y+a:e.y-a-i;n.save(),n.globalAlpha=e.k,n.shadowColor=`rgba(0,0,0,0.18)`,n.shadowBlur=8*u,n.shadowOffsetY=2*u,n.fillStyle=`rgb(${C.current.surface})`,n.beginPath(),n.roundRect?n.roundRect(s,c,r,i,6*u):n.rect(s,c,r,i),n.fill(),n.shadowColor=`transparent`,n.strokeStyle=`rgb(${C.current.border})`,n.lineWidth=u,n.stroke(),n.fillStyle=`rgb(${o})`,n.textBaseline=`middle`,n.fillText(e.label,s+8*u,c+i/2+u*.5),n.restore()}},u=e=>{let t=Math.min(.05,(e-i)/1e3);i=e;let n=S.current,a=w.current;n.dragging||(n.rot+=n.vr*t,n.tilt=Z(n.tilt+n.vt*t,-60,60),n.vr*=.04**t,n.vt*=.04**t,a.autoRotate&&!cn()&&e>n.idleUntil&&E.current==null&&(n.rot+=a.rotationSpeed*t)),C.current.visible&&l(e),r=requestAnimationFrame(u)};return r=requestAnimationFrame(u),()=>{cancelAnimationFrame(r),s.disconnect(),c.disconnect()}},[b]);let O=(e,t)=>{let n=_.current?.getBoundingClientRect();if(!n)return null;let r=e-n.left,i=t-n.top,a=Math.max(10,C.current.size/480*12),o=null,s=a;for(let e of C.current.hits){let t=Math.hypot(e.x-r,e.y-i);t<=s&&(o=e.i,s=t)}return o},k=i.default.useRef(null),A=i.default.useRef(null),j=e=>{let t=O(e.clientX,e.clientY);A.current={x:e.clientX,y:e.clientY,hit:t},D(t),l&&(e.currentTarget.setPointerCapture(e.pointerId),k.current={x:e.clientX,y:e.clientY,t:performance.now()},S.current.dragging=!0,S.current.vr=0,S.current.vt=0)},M=e=>{let t=A.current;t&&Math.hypot(e.clientX-t.x,e.clientY-t.y)>4&&(t.hit=null);let n=k.current;if(!n){t||D(O(e.clientX,e.clientY));return}let r=S.current,i=180/Math.max(1,C.current.size*.84*Math.PI)*1.6,a=e.clientX-n.x,o=e.clientY-n.y,s=Math.max(1,performance.now()-n.t)/1e3;r.rot-=a*i,r.tilt=Z(r.tilt+o*i,-60,60),r.vr=-a*i/s,r.vt=o*i/s,n.x=e.clientX,n.y=e.clientY,n.t=performance.now()},N=e=>{let t=A.current;if(A.current=null,t&&t.hit!=null&&e.type===`pointerup`&&T.current.onMarkerClick?.(t.hit,w.current.markers[t.hit]),!k.current)return;k.current=null;let n=S.current;n.dragging=!1,n.idleUntil=performance.now()+1500,cn()&&(n.vr=0,n.vt=0)};return(0,a.jsxs)(`div`,{ref:_,className:[on.globe,l?on[`globe--draggable`]:``,f===`dark`?`dark`:``,g??``].filter(Boolean).join(` `),role:p?`group`:`img`,"aria-label":h,onPointerDown:j,onPointerMove:M,onPointerUp:N,onPointerCancel:N,onPointerLeave:()=>{A.current||D(null)},children:[(0,a.jsx)(`canvas`,{ref:v,className:on.canvas,"aria-hidden":p?!0:void 0}),p&&r.map((e,t)=>e.label&&(0,a.jsx)(`button`,{type:`button`,className:on.srOnly,onFocus:()=>D(t),onBlur:()=>D(null),onClick:()=>p(t,e),children:e.label},t))]})};un.displayName=`MapGlobe`;function dn({points:e,renderPoint:t,radius:n=56,clusterMaxZoom:r=16,onClusterClick:o}){let{zoom:s,project:c,fitBounds:l,flyTo:u,maxZoom:d}=Jt(),f=Math.floor(s),p=f<r,m=i.default.useMemo(()=>{if(!p)return e.map(e=>({key:String(e.id),position:e.position,points:[e]}));let t=new Map;for(let r of e){let e=Q(r.position,f),i=`${Math.floor(e.x/n)}:${Math.floor(e.y/n)}`,a=t.get(i);a?a.push(r):t.set(i,[r])}let r=n*.8,i=Array.from(t,([e,t])=>{let n=t.reduce((e,t)=>e+t.position[0],0)/t.length,r=t.reduce((e,t)=>e+t.position[1],0)/t.length;return{k:e,pts:t,lat:n,lng:r,...Q([n,r],f)}}).sort((e,t)=>t.pts.length-e.pts.length),a=[],o=new Map;for(let e of i){let t=Math.floor(e.x/r),n=Math.floor(e.y/r),i;for(let a=-1;a<=1&&!i;a++)for(let s=-1;s<=1&&!i;s++)i=o.get(`${t+a}:${n+s}`)?.find(t=>Math.hypot(t.x-e.x,t.y-e.y)<r);if(i){let t=i.pts.length+e.pts.length;i.lat=(i.lat*i.pts.length+e.lat*e.pts.length)/t,i.lng=(i.lng*i.pts.length+e.lng*e.pts.length)/t,i.pts=i.pts.concat(e.pts),Object.assign(i,Q([i.lat,i.lng],f))}else{a.push(e);let r=`${t}:${n}`;o.set(r,[...o.get(r)??[],e])}}return a.map(e=>({key:e.pts.length===1?String(e.pts[0].id):`c${f}:${e.k}`,position:e.pts.length===1?e.pts[0].position:[e.lat,e.lng],points:e.pts}))},[e,f,n,p]),h=e=>{let t=e.points.map(e=>e.position);t.every(e=>e[0]===t[0][0]&&e[1]===t[0][1])?u(e.position,Math.min(d,f+3)):l(t),o?.(e.points)};return(0,a.jsx)(a.Fragment,{children:m.map(e=>c(e.position)?e.points.length===1?(0,a.jsx)(i.default.Fragment,{children:t(e.points[0])},e.key):(0,a.jsx)(Qt,{variant:`cluster`,position:e.position,count:e.points.length,onClick:()=>h(e)},e.key):null)})}dn.displayName=`MapClusterLayer`;var fn={chart:`_chart_cc7lx_2`,center:`_center_cc7lx_30`,center__value:`_center__value_cc7lx_39`,center__caption:`_center__caption_cc7lx_40`},pn={sm:{h:180,outer:72},md:{h:220,outer:90},lg:{h:280,outer:116},xl:{h:340,outer:142}},mn=new Set([`donut`,`donut-active`,`donut-with-text`,`interactive`]),hn=new Set([`donut-active`]),gn=new Set([`interactive`]),_n=new Set([`donut-with-text`]),vn=Math.PI/180,yn=({data:e,variant:n=`donut`,size:r=`md`,centerValue:s,centerCaption:c,className:l})=>{let u=i.default.useRef(null),d=t.ut(u),[f,p]=i.default.useState(void 0),m=[1,2,3,4,5].map(e=>d(`--color-chart-${e}`)??t.lt[e-1]),h=d(`--color-bg-surface`)??`#ffffff`,g=d(`--color-fg-default`)??`#141414`,_=pn[r],v=mn.has(n),y=hn.has(n),b=gn.has(n),x=v?_.outer*.6:0,S=_n.has(n)&&(s||c),C=f??(y||b?0:void 0),w=e=>{let{cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:s,endAngle:c,fill:l,index:u}=e,d=u===C,f=d&&(y||b)?16:0;return d&&b?(0,a.jsxs)(`g`,{children:[(0,a.jsx)(o.Sector,{cx:t,cy:n,innerRadius:r,outerRadius:i+f,startAngle:s,endAngle:c,fill:l}),(0,a.jsx)(o.Sector,{cx:t,cy:n,innerRadius:i+f+3,outerRadius:i+f+7,startAngle:s,endAngle:c,fill:l})]}):(0,a.jsx)(o.Sector,{cx:t,cy:n,innerRadius:r,outerRadius:i+f,startAngle:s,endAngle:c,fill:l})},T=e=>{let{cx:t,cy:n,midAngle:r,outerRadius:i}=e,a=r??0,o=Math.cos(-a*vn),s=Math.sin(-a*vn),c=t+i*o,l=n+i*s,u=t+(i+16)*o,d=n+(i+16)*s,f=o>=0,p=u+(f?14:-14);return{d:`M ${c} ${l} L ${u} ${d} L ${p} ${d}`,endX:p,endY:d,textAnchor:f?`start`:`end`}},E=e=>{let{value:t,fill:n}=e,{d:r,endX:i,endY:o,textAnchor:s}=T(e),c=i+(s===`start`?4:-4);return(0,a.jsxs)(`g`,{children:[(0,a.jsx)(`path`,{d:r,fill:`none`,stroke:n,strokeWidth:1}),(0,a.jsx)(`text`,{x:c,y:o,textAnchor:s,dominantBaseline:`central`,fill:g,fontSize:12,fontFamily:`var(--font-sans)`,children:t})]})},D=e=>{let{x:t,y:n,textAnchor:r,value:i}=e;return(0,a.jsx)(`text`,{x:t,y:n,textAnchor:r,dominantBaseline:`central`,fill:g,fontSize:20,fontWeight:400,fontFamily:`var(--font-sans)`,children:i})},O=t=>{let{cx:n,cy:r,midAngle:i,innerRadius:o,outerRadius:s,index:c}=t,l=(o+s)/2;return(0,a.jsx)(`text`,{x:n+l*Math.cos(-i*vn),y:r+l*Math.sin(-i*vn),textAnchor:`middle`,dominantBaseline:`central`,fill:`#fff`,fontSize:11,fontWeight:500,fontFamily:`var(--font-sans)`,children:e[c]?.label})};if(n===`stacked`){let n=e=>f!==void 0&&f!==e?.45:1;return(0,a.jsx)(`div`,{ref:u,className:[fn.chart,l??``].filter(Boolean).join(` `),style:{height:_.h},children:(0,a.jsx)(o.ResponsiveContainer,{width:`100%`,height:`100%`,children:(0,a.jsxs)(o.PieChart,{children:[(0,a.jsx)(o.Pie,{data:e,dataKey:`value`,nameKey:`label`,innerRadius:_.outer*.82,outerRadius:_.outer,paddingAngle:0,stroke:`none`,isAnimationActive:!1,onMouseEnter:(e,t)=>p(t),onMouseLeave:()=>p(void 0),children:e.map((e,t)=>(0,a.jsx)(o.Cell,{fill:m[t%m.length],fillOpacity:n(t)},t))}),(0,a.jsx)(o.Pie,{data:e,dataKey:`value`,nameKey:`label`,innerRadius:0,outerRadius:_.outer*.62,paddingAngle:0,stroke:`none`,isAnimationActive:!1,onMouseEnter:(e,t)=>p(t),onMouseLeave:()=>p(void 0),children:e.map((e,t)=>(0,a.jsx)(o.Cell,{fill:m[t%m.length],fillOpacity:n(t)},t))}),(0,a.jsx)(o.Tooltip,{content:(0,a.jsx)(t.ct,{}),wrapperStyle:{zIndex:50}})]})})})}return(0,a.jsxs)(`div`,{ref:u,className:[fn.chart,l??``].filter(Boolean).join(` `),style:{height:_.h},children:[(0,a.jsx)(o.ResponsiveContainer,{width:`100%`,height:`100%`,children:(0,a.jsxs)(o.PieChart,{children:[(0,a.jsx)(o.Pie,{data:e,dataKey:`value`,nameKey:`label`,innerRadius:x,outerRadius:_.outer,paddingAngle:0,stroke:n===`pie`?h:`none`,strokeWidth:n===`pie`?2:0,isAnimationActive:!1,shape:y||b?w:void 0,label:n===`label`?E:n===`custom-label`?D:n===`label-list`?O:void 0,labelLine:!1,onMouseEnter:(e,t)=>p(t),onMouseLeave:()=>p(void 0),children:e.map((e,t)=>(0,a.jsx)(o.Cell,{fill:m[t%m.length]},t))}),(0,a.jsx)(o.Tooltip,{content:(0,a.jsx)(t.ct,{}),wrapperStyle:{zIndex:50}})]})}),S&&(0,a.jsxs)(`div`,{className:fn.center,children:[s&&(0,a.jsx)(`span`,{className:fn.center__value,children:s}),c&&(0,a.jsx)(`span`,{className:fn.center__caption,children:c})]})]})},bn={root:`_root_16f5u_2`,trigger:`_trigger_16f5u_3`,panel:`_panel_16f5u_5`,"panel--bottom":`_panel--bottom_16f5u_22`,"panel--bottom-start":`_panel--bottom-start_16f5u_23`,"panel--bottom-end":`_panel--bottom-end_16f5u_24`,"panel--top":`_panel--top_16f5u_25`,"panel--entering":`_panel--entering_16f5u_39`,"sakani-popover-in":`_sakani-popover-in_16f5u_1`,"panel--exiting":`_panel--exiting_16f5u_40`,"sakani-popover-out":`_sakani-popover-out_16f5u_1`,"sakani-popover-in-up":`_sakani-popover-in-up_16f5u_1`,"sakani-popover-out-up":`_sakani-popover-out-up_16f5u_1`,panel__title:`_panel__title_16f5u_75`,panel__description:`_panel__description_16f5u_76`,panel__body:`_panel__body_16f5u_77`,panel__actions:`_panel__actions_16f5u_78`},xn=({trigger:e,title:t,description:n,actions:r,placement:o=`bottom-start`,children:s,className:c})=>{let[l,u]=i.default.useState(!1),[d,f]=i.default.useState(!1),p=i.default.useRef(null),m=i.default.useRef(null);return i.default.useEffect(()=>{l&&f(!0)},[l]),i.default.useEffect(()=>{if(l||!d)return;let e=setTimeout(()=>f(!1),240);return()=>clearTimeout(e)},[l,d]),i.default.useEffect(()=>{if(!l)return;let e=e=>{p.current&&!p.current.contains(e.target)&&u(!1)},t=e=>{e.key===`Escape`&&u(!1)};return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}},[l]),i.default.useEffect(()=>{!l&&m.current&&(m.current.focus(),m.current=null)},[l]),(0,a.jsxs)(`div`,{className:[bn.root,c??``].filter(Boolean).join(` `),ref:p,children:[(0,a.jsx)(`span`,{className:bn.trigger,onClick:()=>{l||(m.current=document.activeElement),u(e=>!e)},children:e}),d&&(0,a.jsxs)(`div`,{className:[bn.panel,bn[`panel--${o}`],l?bn[`panel--entering`]:bn[`panel--exiting`]].filter(Boolean).join(` `),role:`dialog`,onAnimationEnd:e=>{e.target===e.currentTarget&&!l&&f(!1)},children:[t&&(0,a.jsx)(`div`,{className:bn.panel__title,children:t}),n&&(0,a.jsx)(`div`,{className:bn.panel__description,children:n}),s&&(0,a.jsx)(`div`,{className:bn.panel__body,children:s}),r&&(0,a.jsx)(`div`,{className:bn.panel__actions,children:r})]})]})},Sn={chart:`_chart_q6xhl_2`,circleFillSvg:`_circleFillSvg_q6xhl_17`},Cn={sm:200,md:260,lg:340,xl:420},wn=new Set([`circle-grid`,`circle-grid-no-lines`,`circle-grid-filled`]),Tn=new Set([`default`,`grid-custom`]),En=new Set([`dots-grid-none`]),Dn=new Set([`grid-filled`]),On=e=>e===`circle-grid-filled`,kn=new Set([`default`,`dots`,`dots-grid-none`,`circle-grid`,`circle-grid-no-lines`,`multiple`,`custom-label`,`grid-custom`,`grid-filled`,`circle-grid-filled`]),An=[1,.8,.6,.4,.2],jn=({data:e,variant:n=`default`,size:r=`md`,seriesLabels:s=[`Value`,`Value 2`],className:c})=>{let l=i.default.useRef(null),u=t.ut(l),d=u(`--color-chart-1`)??`#ff4700`,f=u(`--color-chart-2`)??`#5b92dd`,p=u(`--color-border-default`)??`#dbdad7`,m=u(`--color-fg-subtle`)??`#a8a29b`,h=n===`multiple`,g=n===`lines-only`,_=h||n===`custom-label`||g,v=!g,y=n===`dots`||n===`dots-grid-none`||n===`circle-grid`||n===`circle-grid-no-lines`,b=Dn.has(n),x=Tn.has(n),S=En.has(n),C=On(n),[w,T]=i.default.useState(0);i.default.useEffect(()=>{if(!C||!l.current)return;let e=l.current,t=new ResizeObserver(([e])=>T(e.contentRect.width));return t.observe(e),()=>t.disconnect()},[C]);let E=i.default.useMemo(()=>{if(!b)return e;let t=Math.max(1,...e.flatMap(e=>[e.value,e.value2??0]));return e.map(e=>{let n={};return An.forEach((e,r)=>{n[`ring${r}`]=e*t}),{...e,...n}})},[e,b]),D=t=>{let{x:n,y:r,cx:i,cy:o,payload:s,textAnchor:c}=t,l=e.find(e=>e.label===s?.value)??e[s?.index];if(!l)return(0,a.jsx)(`g`,{});let u=n-i,d=r-o,f=l.value2===void 0?`${l.value}`:`${l.value}/${l.value2}`,p=Math.abs(d)>Math.abs(u),h,g;if(p&&d<0)g=r-4-6,h=g-16;else if(p)h=r+4+10,g=h+18;else{let e=r+d/(Math.sqrt(u*u+d*d)||1)*4;h=e-8,g=e+12}let _=p?n:n+u/Math.sqrt(u*u+d*d||1)*4;return(0,a.jsxs)(`g`,{children:[(0,a.jsx)(`text`,{x:_,y:h,textAnchor:c,fill:m,fontSize:15,fontWeight:600,fontFamily:`var(--font-sans)`,children:f}),(0,a.jsx)(`text`,{x:_,y:g,textAnchor:c,fill:m,fontSize:13,fontFamily:`var(--font-sans)`,children:l.label})]})},O=Cn[r],k=(w>0?Math.min(w,O)/2-5:0)*.7;return(0,a.jsxs)(`div`,{ref:l,className:[Sn.chart,c??``].filter(Boolean).join(` `),children:[C&&w>0&&(0,a.jsx)(`svg`,{className:Sn.circleFillSvg,width:w,height:O,children:An.map(e=>(0,a.jsx)(`circle`,{cx:w/2,cy:O/2,r:k*e,fill:f,fillOpacity:.1},e))}),(0,a.jsx)(o.ResponsiveContainer,{width:`100%`,height:O,children:(0,a.jsxs)(o.RadarChart,{data:E,outerRadius:`70%`,children:[!b&&!S&&(0,a.jsx)(o.PolarGrid,{gridType:wn.has(n)?`circle`:`polygon`,radialLines:n!==`circle-grid-no-lines`&&!x,stroke:p}),(0,a.jsx)(o.PolarAngleAxis,{dataKey:`label`,axisLine:!1,tick:n===`custom-label`?D:{fill:m,fontSize:12,fontFamily:`var(--font-sans)`}}),(0,a.jsx)(o.PolarRadiusAxis,{tick:!1,axisLine:!1,tickCount:x?2:void 0}),(0,a.jsx)(o.Tooltip,{content:(0,a.jsx)(t.ct,{}),wrapperStyle:{zIndex:50}}),h&&(0,a.jsx)(o.Legend,{wrapperStyle:{fontSize:12,fontFamily:`var(--font-sans)`}}),b&&An.map((e,t)=>(0,a.jsx)(o.Radar,{dataKey:`ring${t}`,stroke:`none`,fill:f,fillOpacity:.1,isAnimationActive:!1,legendType:`none`},`ring${t}`)),(0,a.jsx)(o.Radar,{name:h?s[0]??`Value`:void 0,dataKey:`value`,stroke:kn.has(n)?`none`:f,fill:v?f:`none`,fillOpacity:v?x?1:_?.45:.5:0,strokeWidth:kn.has(n)?0:2,dot:y?{r:4,fill:f,stroke:`none`}:!1,isAnimationActive:!1}),_&&(0,a.jsx)(o.Radar,{name:h?s[1]??`Value 2`:void 0,dataKey:`value2`,stroke:g?d:`none`,fill:g?`none`:d,fillOpacity:g?0:.8,strokeWidth:g?2:0,dot:y?{r:4,fill:d,stroke:`none`}:!1,isAnimationActive:!1})]})})]})},Mn={chart:`_chart_1ogmh_2`,gridSvg:`_gridSvg_1ogmh_19`,gaugeSvg:`_gaugeSvg_1ogmh_31`,center:`_center_1ogmh_36`,center__value:`_center__value_1ogmh_45`,center__caption:`_center__caption_1ogmh_46`},Nn={sm:180,md:220,lg:280,xl:340},Pn=Math.PI/180,Fn=e=>Math.round(e*1e3)/1e3,In={multi:[`30%`,`100%`],grid:[`30%`,`100%`],"stacked-label":[`30%`,`100%`],text:[`76%`,`100%`]},Ln=({value:e,max:t,color:n,track:r,centerValue:i,centerCaption:o,labelColor:s,captionColor:c})=>{let l=Math.round(Math.min(e,t)/t*40);return(0,a.jsxs)(`svg`,{viewBox:`0 0 200 120`,className:Mn.gaugeSvg,children:[Array.from({length:40}).map((e,t)=>{let i=180+t/39*180;return(0,a.jsx)(`line`,{x1:Fn(100+78*Math.cos(i*Pn)),y1:Fn(100+78*Math.sin(i*Pn)),x2:Fn(100+92*Math.cos(i*Pn)),y2:Fn(100+92*Math.sin(i*Pn)),stroke:t<l?n:r,strokeWidth:2.5,strokeLinecap:`round`},t)}),(i||o)&&(0,a.jsxs)(`g`,{textAnchor:`middle`,fontFamily:`var(--font-sans)`,children:[i&&(0,a.jsx)(`text`,{x:100,y:92,fontSize:22,fontWeight:500,fill:s,children:i}),o&&(0,a.jsx)(`text`,{x:100,y:112,fontSize:12,fill:c,children:o})]})]})},Rn=({rings:e,spokes:t,color:n})=>(0,a.jsxs)(`svg`,{viewBox:`0 0 200 200`,className:Mn.gridSvg,children:[Array.from({length:e}).map((t,r)=>(0,a.jsx)(`circle`,{cx:100,cy:100,r:(r+1)/e*96,fill:`none`,stroke:n,strokeWidth:1},r)),Array.from({length:t}).map((e,r)=>{let i=r/t*360,o=99.5*1.1;return(0,a.jsx)(`line`,{x1:100,y1:100,x2:Fn(100+o*Math.cos(i*Pn)),y2:Fn(100+o*Math.sin(i*Pn)),stroke:n,strokeWidth:1},r)})]}),zn=({data:e,palette:t,track:n,centerValue:r,centerCaption:i,labelColor:s,captionColor:c})=>{let l=e[0]?.max??e.reduce((e,t)=>e+t.value,0),u=210,d=e.map((e,n)=>{let r=l>0?e.value/l*240:0,i=u,a=u-r;return u=a,{segStart:i,segEnd:a,fill:t[n%t.length]}});return(0,a.jsxs)(`svg`,{viewBox:`0 0 200 160`,className:Mn.gaugeSvg,children:[d.map((e,t)=>(0,a.jsx)(o.Sector,{cx:100,cy:100,innerRadius:64,outerRadius:88,startAngle:e.segStart,endAngle:e.segEnd,fill:e.fill,cornerRadius:4},t)),u>-29.5&&(0,a.jsx)(o.Sector,{cx:100,cy:100,innerRadius:64,outerRadius:88,startAngle:u,endAngle:-30,fill:n,cornerRadius:4}),(r||i)&&(0,a.jsxs)(`g`,{textAnchor:`middle`,fontFamily:`var(--font-sans)`,children:[r&&(0,a.jsx)(`text`,{x:100,y:92,fontSize:22,fontWeight:500,fill:s,children:r}),i&&(0,a.jsx)(`text`,{x:100,y:112,fontSize:12,fill:c,children:i})]})]})},Bn=({data:e,variant:n=`multi`,size:r=`md`,centerValue:s,centerCaption:c,className:l})=>{let u=i.default.useRef(null),d=t.ut(u),f=[1,2,3,4,5].map(e=>d(`--color-chart-${e}`)??t.lt[e-1]),p=d(`--color-bg-subtle`)??`#f5f4f2`,m=d(`--color-border-subtle`)??`#e7e5e1`,h=d(`--color-fg-default`)??`#141414`,g=d(`--color-fg-muted`)??`#78716a`,_=Nn[r];if(n===`gauge-tick`){let t=e[0];return(0,a.jsx)(`div`,{ref:u,className:[Mn.chart,l??``].filter(Boolean).join(` `),style:{height:_},children:(0,a.jsx)(Ln,{value:t?.value??0,max:t?.max??100,color:f[0],track:p,centerValue:s,centerCaption:c,labelColor:h,captionColor:g})})}if(n===`shape`||n===`stacked`||n===`stacked-3-layers`)return(0,a.jsx)(`div`,{ref:u,className:[Mn.chart,l??``].filter(Boolean).join(` `),style:{height:_},children:(0,a.jsx)(zn,{data:e,palette:f,track:p,centerValue:s,centerCaption:c,labelColor:h,captionColor:g})});let[v,y]=In[n]??[`30%`,`100%`],b=(n===`stacked-label`||n===`text`)&&(s||c);return(0,a.jsxs)(`div`,{ref:u,className:[Mn.chart,l??``].filter(Boolean).join(` `),style:{height:_},children:[n===`grid`&&(0,a.jsx)(Rn,{rings:8,spokes:12,color:m}),(0,a.jsx)(o.ResponsiveContainer,{width:`100%`,height:`100%`,children:(0,a.jsxs)(o.RadialBarChart,{data:e,innerRadius:v,outerRadius:y,startAngle:90,endAngle:-270,barCategoryGap:`12%`,children:[(0,a.jsx)(o.PolarAngleAxis,{type:`number`,domain:[0,e[0]?.max??100],tick:!1,axisLine:!1}),(0,a.jsx)(o.RadialBar,{dataKey:`value`,background:n!==`grid`&&{fill:p},cornerRadius:8,isAnimationActive:!1,children:e.map((e,t)=>(0,a.jsx)(o.Cell,{fill:f[t%f.length]},t))})]})}),b&&(0,a.jsxs)(`div`,{className:Mn.center,children:[s&&(0,a.jsx)(`span`,{className:Mn.center__value,children:s}),c&&(0,a.jsx)(`span`,{className:Mn.center__caption,children:c})]})]})},Vn={wrapper:`_wrapper_5ueza_3`,"wrapper--disabled":`_wrapper--disabled_5ueza_11`,input:`_input_5ueza_13`,circle:`_circle_5ueza_15`,dot:`_dot_5ueza_31`,text:`_text_5ueza_79`,text__label:`_text__label_5ueza_80`,text__description:`_text__description_5ueza_81`,"wrapper--withDescription":`_wrapper--withDescription_5ueza_85`},Hn=i.default.forwardRef(({label:e,description:t,disabled:n,id:r,className:o,...s},c)=>{let l=i.default.useId(),u=r??l;return(0,a.jsxs)(`label`,{htmlFor:u,className:[Vn.wrapper,t?Vn[`wrapper--withDescription`]:``,n?Vn[`wrapper--disabled`]:``,o??``].filter(Boolean).join(` `),children:[(0,a.jsx)(`input`,{ref:c,id:u,type:`radio`,disabled:n,className:Vn.input,...s}),(0,a.jsx)(`span`,{className:Vn.circle,"aria-hidden":`true`,children:(0,a.jsx)(`span`,{className:Vn.dot})}),(e||t)&&(0,a.jsxs)(`span`,{className:Vn.text,children:[e&&(0,a.jsx)(`span`,{className:Vn.text__label,children:e}),t&&(0,a.jsx)(`span`,{className:Vn.text__description,children:t})]})]})});Hn.displayName=`Radio`;var Un={footer:`_footer_x13xl_4`,"footer--collapsed":`_footer--collapsed_x13xl_12`,footer__text:`_footer__text_x13xl_14`,footer__title:`_footer__title_x13xl_15`,footer__subtitle:`_footer__subtitle_x13xl_16`,footer__menu:`_footer__menu_x13xl_17`,footer__action:`_footer__action_x13xl_29`},Wn=({type:e=`user`,title:i,subtitle:o,avatarSrc:s,avatarInitials:c,collapsed:l,onMenu:u,onSignOut:d})=>{let f=(0,a.jsx)(t.jt,{size:l?`sm`:`md`,src:s,initials:c,alt:i??`User`});return l?(0,a.jsx)(`div`,{className:[Un.footer,Un[`footer--collapsed`]].join(` `),children:f}):e===`actions`?(0,a.jsx)(`div`,{className:Un.footer,children:(0,a.jsxs)(`button`,{type:`button`,"data-hover-item":``,className:Un.footer__action,onClick:d,children:[(0,a.jsx)(r.t,{size:16,strokeWidth:t.Pt(16)}),` Sign out`]})}):(0,a.jsxs)(`div`,{className:Un.footer,children:[f,(0,a.jsxs)(`span`,{className:Un.footer__text,children:[i&&(0,a.jsx)(`span`,{className:Un.footer__title,children:i}),o&&(0,a.jsx)(`span`,{className:Un.footer__subtitle,children:o})]}),e===`user-menu`&&(0,a.jsx)(`button`,{type:`button`,"data-hover-item":``,className:Un.footer__menu,onClick:u,"aria-label":`Open menu`,children:(0,a.jsx)(n.a,{size:16,strokeWidth:t.Pt(16)})})]})},Gn={search:`_search_4878u_2`,search__icon:`_search__icon_4878u_25`,search__input:`_search__input_4878u_26`,search__placeholder:`_search__placeholder_4878u_38`,search__kbd:`_search__kbd_4878u_39`,collapsed:`_collapsed_4878u_53`},Kn=({type:e=`field`,placeholder:r=`Search…`,collapsed:i,value:o,onChange:s,onClick:c})=>i?(0,a.jsx)(`button`,{type:`button`,className:Gn.collapsed,onClick:c,"aria-label":`Search`,children:(0,a.jsx)(n.y,{size:18,strokeWidth:t.Pt(18)})}):e===`command`?(0,a.jsxs)(`button`,{type:`button`,className:Gn.search,onClick:c,children:[(0,a.jsx)(n.y,{size:16,strokeWidth:t.Pt(16),className:Gn.search__icon}),(0,a.jsx)(`span`,{className:Gn.search__placeholder,children:r}),(0,a.jsx)(`kbd`,{className:Gn.search__kbd,children:`⌘K`})]}):(0,a.jsxs)(`div`,{className:Gn.search,children:[(0,a.jsx)(n.y,{size:16,strokeWidth:t.Pt(16),className:Gn.search__icon}),(0,a.jsx)(`input`,{className:Gn.search__input,placeholder:r,value:o,onChange:e=>s?.(e.target.value)})]}),qn={toaster:`_toaster_ma9al_7`,toast:`_toast_ma9al_7`,swipeOutLeft:`_swipeOutLeft_ma9al_1`,swipeOutRight:`_swipeOutRight_ma9al_1`,swipeOutUp:`_swipeOutUp_ma9al_1`,swipeOutDown:`_swipeOutDown_ma9al_1`,icon:`_icon_ma9al_160`,content:`_content_ma9al_173`,title:`_title_ma9al_180`,description:`_description_ma9al_181`,button:`_button_ma9al_183`,cancel:`_cancel_ma9al_202`,close:`_close_ma9al_204`,spinner:`_spinner_ma9al_227`,spinnerBar:`_spinnerBar_ma9al_232`,spinnerFade:`_spinnerFade_ma9al_1`},Jn=0,Yn=[],Xn=new Set;function Zn(e){for(let t of Xn)t(e)}var Qn={subscribe(e){return Xn.add(e),()=>{Xn.delete(e)}},active:()=>Yn,remove(e){Yn=Yn.filter(t=>t.id!==e)}};function $n(e,t,n={}){let r=n.id??`sakani-toast-${++Jn}`,i=Yn.find(e=>e.id===r),a={...i,...n,id:r,type:e,title:t,delete:!1,version:(i?.version??0)+1};return Yn=i?Yn.map(e=>e.id===r?a:e):[a,...Yn],Zn({kind:`upsert`,toast:a}),r}function er(e){return Yn=e===void 0?[]:Yn.filter(t=>t.id!==e),Zn({kind:`dismiss`,id:e}),e}function tr(e,t){let{loading:n,success:r,error:i,finally:a,id:o,...s}=t,c=o??`sakani-toast-${++Jn}`;return n!==void 0&&$n(`loading`,n,{...s,id:c}),(typeof e==`function`?e():e).then(e=>{if(r===void 0){n!==void 0&&er(c);return}$n(`success`,typeof r==`function`?r(e):r,{...s,id:c})},e=>{if(i===void 0){n!==void 0&&er(c);return}$n(`error`,typeof i==`function`?i(e):i,{...s,id:c})}).finally(()=>a?.()),c}var nr=Object.assign((e,t)=>$n(`default`,e,t),{message:(e,t)=>$n(`default`,e,t),success:(e,t)=>$n(`success`,e,t),info:(e,t)=>$n(`info`,e,t),warning:(e,t)=>$n(`warning`,e,t),error:(e,t)=>$n(`error`,e,t),loading:(e,t)=>$n(`loading`,e,t),promise:tr,dismiss:er}),rr=356,ir=45,ar=200,or=e=>typeof e==`number`?`${e}px`:e,sr=(...e)=>e.filter(Boolean).join(` `),cr={success:{viewBox:`0 0 20 20`,d:`M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z`},info:{viewBox:`0 0 20 20`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z`},warning:{viewBox:`0 0 24 24`,d:`M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z`},error:{viewBox:`0 0 20 20`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z`}};function lr({type:e}){if(e===`loading`)return(0,a.jsx)(`span`,{className:qn.spinner,"aria-hidden":`true`,children:Array.from({length:12},(e,t)=>(0,a.jsx)(`span`,{className:qn.spinnerBar,style:{transform:`rotate(${t*30||1e-4}deg) translate(146%)`,animationDelay:`${-1.2+t*.1}s`}},t))});let t=cr[e];return t?(0,a.jsx)(`svg`,{viewBox:t.viewBox,width:16,height:16,fill:`currentColor`,"aria-hidden":`true`,children:(0,a.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:t.d})}):null}var ur=()=>(0,a.jsx)(`svg`,{viewBox:`0 0 12 12`,width:12,height:12,fill:`none`,stroke:`currentColor`,strokeWidth:1.5,strokeLinecap:`round`,"aria-hidden":`true`,children:(0,a.jsx)(`path`,{d:`M9 3L3 9M3 3l6 6`})});function dr({toast:e,index:t,count:n,expanded:r,expandByDefault:o,paused:s,heights:c,setHeights:l,removeToast:u,gap:d,visibleToasts:f,yPosition:p,xPosition:m,closeButton:h,richColors:g,duration:_}){let[v,y]=(0,i.useState)(!1),[b,x]=(0,i.useState)(!1),[S,C]=(0,i.useState)(!1),[w,T]=(0,i.useState)(!1),[E,D]=(0,i.useState)(!1),[O,k]=(0,i.useState)(null),[A,j]=(0,i.useState)(0),[M,N]=(0,i.useState)(0),ee=(0,i.useRef)(null),P=(0,i.useRef)(null),F=(0,i.useRef)(null),te=(0,i.useRef)(0),I=(0,i.useRef)(0),ne=t===0,L=t+1<=f,re=e.dismissible!==!1,ie=e.duration??_,ae=e.richColors??g,oe=(e.closeButton??h)&&e.type!==`loading`,se=c.findIndex(t=>t.id===e.id),ce=(0,i.useMemo)(()=>{let e=c.reduce((e,t,n)=>n>=se?e:e+t.height,0);return Math.max(0,se)*d+e},[c,se,d]),R=(0,i.useRef)(ce);R.current=ce,(0,i.useLayoutEffect)(()=>{let t=ee.current;if(!t)return;let n=t.style.height;t.style.height=`auto`;let r=t.offsetHeight;t.style.height=n,N(r),l(t=>t.some(t=>t.id===e.id)?t.map(t=>t.id===e.id?{...t,height:r}:t):[{id:e.id,height:r},...t])},[e.id,e.version,l]),(0,i.useEffect)(()=>{y(!0)},[]);let z=(0,i.useCallback)(()=>{x(!0),j(R.current),l(t=>t.filter(t=>t.id!==e.id)),window.setTimeout(()=>u(e),ar)},[e,u,l]);(0,i.useEffect)(()=>{e.delete&&!b&&(e.onDismiss?.(e),z())},[e,b,z]),(0,i.useEffect)(()=>{I.current=ie},[e.version,ie]),(0,i.useEffect)(()=>{if(b||s||e.type===`loading`||ie===1/0)return;let t=Date.now(),n=window.setTimeout(()=>{e.onAutoClose?.(e),z()},I.current);return()=>{window.clearTimeout(n),I.current-=Date.now()-t}},[b,s,e,ie,z]);let le=()=>{!re||b||(e.onDismiss?.(e),z())},B=(0,i.useMemo)(()=>{let e=[p];return m!==`center`&&e.push(m),e},[p,m]),V=(e,t)=>{ee.current?.style.setProperty(`--swipe-amount-x`,`${e}px`),ee.current?.style.setProperty(`--swipe-amount-y`,`${t}px`)},ue=e=>{if(!(e.button===2||!re||b)&&!e.target.closest(`button`)){te.current=Date.now(),j(R.current);try{e.currentTarget.setPointerCapture(e.pointerId)}catch{}C(!0),P.current={x:e.clientX,y:e.clientY},F.current=null}},H=e=>{if(!P.current||!re||(window.getSelection()?.toString().length??0)>0)return;let t=e.clientY-P.current.y,n=e.clientX-P.current.x;!F.current&&(Math.abs(n)>1||Math.abs(t)>1)&&(F.current=Math.abs(n)>Math.abs(t)?`x`:`y`);let r=e=>e/(1.5+Math.abs(e)/20),i=0,a=0;F.current===`y`?a=B.includes(`top`)&&t<0||B.includes(`bottom`)&&t>0?t:r(t):F.current===`x`&&(i=B.includes(`left`)&&n<0||B.includes(`right`)&&n>0?n:r(n)),(i!==0||a!==0)&&T(!0),V(i,a)},de=()=>{if(E||!re||!P.current)return;P.current=null;let t=ee.current?.style,n=parseFloat(t?.getPropertyValue(`--swipe-amount-x`)||`0`)||0,r=parseFloat(t?.getPropertyValue(`--swipe-amount-y`)||`0`)||0,i=F.current===`x`?n:r,a=Math.abs(i)/Math.max(1,Date.now()-te.current);if((F.current===`x`?i<0&&B.includes(`left`)||i>0&&B.includes(`right`):i<0&&B.includes(`top`)||i>0&&B.includes(`bottom`))&&(Math.abs(i)>=ir||a>.11)){j(R.current),e.onDismiss?.(e),k(F.current===`x`?n>0?`right`:`left`:r>0?`down`:`up`),z(),D(!0);return}V(0,0),T(!1),C(!1),F.current=null},U=r||o&&v,fe=e.icon===null?null:e.icon??(0,a.jsx)(lr,{type:e.type}),pe=fe!==null&&(e.icon!==void 0||e.type!=="default");return(0,a.jsxs)(`li`,{ref:ee,tabIndex:0,role:`status`,"aria-live":e.important||e.type===`error`?`assertive`:`polite`,"aria-atomic":`true`,className:sr(qn.toast,e.className),"data-mounted":v,"data-removed":b,"data-visible":L,"data-front":ne,"data-expanded":U,"data-y-position":p,"data-x-position":m,"data-type":e.type,"data-rich-colors":ae,"data-dismissible":re,"data-swiping":S,"data-swiped":w,"data-swipe-out":E,"data-swipe-direction":O??void 0,style:{"--index":t,"--toasts-before":t,"--z-index":n-t,"--offset":`${b?A:ce}px`,"--initial-height":o?`auto`:`${M}px`},onPointerDown:ue,onPointerMove:H,onPointerUp:de,onPointerCancel:de,onKeyDown:e=>{(e.key===`Delete`||e.key===`Backspace`)&&le()},children:[oe&&(0,a.jsx)(`button`,{type:`button`,className:qn.close,"aria-label":`Close notification`,disabled:!re,onClick:le,children:(0,a.jsx)(ur,{})}),pe&&(0,a.jsx)(`div`,{className:qn.icon,children:fe}),(0,a.jsxs)(`div`,{className:qn.content,children:[(0,a.jsx)(`div`,{className:qn.title,children:e.title}),e.description&&(0,a.jsx)(`div`,{className:qn.description,children:e.description})]}),e.cancel&&(0,a.jsx)(`button`,{type:`button`,className:sr(qn.button,qn.cancel),onClick:t=>{e.cancel?.onClick?.(t),re&&le()},children:e.cancel.label}),e.action&&(0,a.jsx)(`button`,{type:`button`,className:qn.button,onClick:t=>{e.action?.onClick(t),t.defaultPrevented||z()},children:e.action.label})]})}var fr=({position:e=`bottom-right`,richColors:t=!1,closeButton:n=!1,expand:r=!1,visibleToasts:o=3,duration:s=4e3,gap:c=14,offset:l=24,mobileOffset:u=16,hotkey:d=[`altKey`,`KeyT`],containerAriaLabel:f=`Notifications`,className:p,style:m})=>{let[h,g]=(0,i.useState)(()=>Qn.active()),[_,v]=(0,i.useState)([]),[y,b]=(0,i.useState)(!1),[x,S]=(0,i.useState)(!1),[C,w]=(0,i.useState)(!1),T=(0,i.useRef)(null),[E,D]=e.split(`-`);(0,i.useEffect)(()=>Qn.subscribe(e=>{e.kind===`upsert`?g(t=>t.some(t=>t.id===e.toast.id)?t.map(t=>t.id===e.toast.id?e.toast:t):[e.toast,...t]):g(t=>t.map(t=>e.id===void 0||t.id===e.id?{...t,delete:!0}:t))}),[]);let O=(0,i.useCallback)(e=>{Qn.remove(e.id),g(t=>t.filter(t=>t.id!==e.id))},[]);return(0,i.useEffect)(()=>{h.length<=1&&b(!1)},[h.length]),(0,i.useEffect)(()=>{let e=()=>w(document.hidden);return document.addEventListener(`visibilitychange`,e),()=>document.removeEventListener(`visibilitychange`,e)},[]),(0,i.useEffect)(()=>{let e=e=>{d.length>0&&d.every(t=>e[t]===!0||e.code===t)&&(b(!0),T.current?.focus()),e.key===`Escape`&&T.current&&(document.activeElement===T.current||T.current.contains(document.activeElement))&&(b(!1),document.activeElement?.blur())};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[d]),(0,a.jsx)(`section`,{"aria-label":`${f} ${d.join(`+`).replace(/Key/g,``).replace(/Digit/g,``)}`,tabIndex:-1,"aria-live":`polite`,"aria-relevant":`additions text`,"aria-atomic":`false`,children:h.length>0&&(0,a.jsx)(`ol`,{ref:T,tabIndex:-1,className:sr(qn.toaster,p),"data-y-position":E,"data-x-position":D,style:{"--front-toast-height":`${_[0]?.height??0}px`,"--width":`${rr}px`,"--gap":`${c}px`,"--offset-top":or(l),"--offset-right":or(l),"--offset-bottom":or(l),"--offset-left":or(l),"--mobile-offset-top":or(u),"--mobile-offset-right":or(u),"--mobile-offset-bottom":or(u),"--mobile-offset-left":or(u),...m},onMouseEnter:()=>b(!0),onMouseMove:()=>b(!0),onMouseLeave:()=>{x||b(!1)},onFocus:()=>b(!0),onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||b(!1)},onPointerDown:e=>{e.target.dataset?.dismissible!==`false`&&S(!0)},onPointerUp:()=>S(!1),children:h.map((e,i)=>(0,a.jsx)(dr,{toast:e,index:i,count:h.length,expanded:y,expandByDefault:r,paused:y||x||C,heights:_,setHeights:v,removeToast:O,gap:c,visibleToasts:o,yPosition:E,xPosition:D,closeButton:n,richColors:t,duration:s},e.id))})})},$={stepper:`_stepper_1qhab_3`,"stepper--horizontal":`_stepper--horizontal_1qhab_4`,"stepper--vertical":`_stepper--vertical_1qhab_5`,step:`_step_1qhab_3`,"step--horizontal":`_step--horizontal_1qhab_8`,"step--vertical":`_step--vertical_1qhab_9`,circle:`_circle_1qhab_12`,circle__num:`_circle__num_1qhab_24`,"stepper--animated":`_stepper--animated_1qhab_28`,"circle--completed":`_circle--completed_1qhab_32`,"stepper-check":`_stepper-check_1qhab_1`,"circle--current":`_circle--current_1qhab_39`,"stepper-arrive":`_stepper-arrive_1qhab_1`,"circle--upcoming":`_circle--upcoming_1qhab_57`,step__text:`_step__text_1qhab_64`,step__label:`_step__label_1qhab_65`,"step__label--current":`_step__label--current_1qhab_66`,"step__label--upcoming":`_step__label--upcoming_1qhab_67`,step__desc:`_step__desc_1qhab_68`,connector:`_connector_1qhab_71`,connector__fill:`_connector__fill_1qhab_75`,"connector--vertical":`_connector--vertical_1qhab_82`,"connector--filled":`_connector--filled_1qhab_86`,"connector--horizontal":`_connector--horizontal_1qhab_88`},pr=({index:e,state:r,label:i,description:o,orientation:s=`horizontal`,delay:c=0,fresh:l})=>(0,a.jsxs)(`div`,{className:[$.step,$[`step--${s}`]].join(` `),style:{"--delay":`${c}ms`},children:[(0,a.jsx)(`span`,{className:[$.circle,$[`circle--${r}`]].join(` `),"data-fresh":l||void 0,"aria-hidden":`true`,children:r===`completed`?(0,a.jsx)(n.M,{size:14,strokeWidth:t.Pt(14)}):(0,a.jsx)(`span`,{className:$.circle__num,children:e+1})}),(0,a.jsxs)(`span`,{className:$.step__text,children:[(0,a.jsx)(`span`,{className:[$.step__label,r===`current`?$[`step__label--current`]:``,r===`upcoming`?$[`step__label--upcoming`]:``].filter(Boolean).join(` `),children:i}),o&&(0,a.jsx)(`span`,{className:$.step__desc,children:o})]})]}),mr=457,hr=({steps:e,current:t,orientation:n=`horizontal`,className:r})=>{let o=e=>e<t?`completed`:e===t?`current`:`upcoming`,s=(0,i.useRef)(t),[c,l]=(0,i.useState)(!1);(0,i.useEffect)(()=>{l(!0)},[]),(0,i.useEffect)(()=>{s.current=t},[t]);let u=s.current,d=(e,t)=>e<t?`completed`:e===t?`current`:`upcoming`,f=e=>c&&u!==t&&d(e,u)!==d(e,t),p=t>=u,m=Math.max(1,Math.abs(t-u)),h=Math.min(mr,Math.floor(1430/m)),g=e=>p?e>=u&&e<=t?(e-u)*h:0:e>=t&&e<=u?(u-e)*h:0,_=e=>p?e>=u&&e<t?(e-u)*h:0:e>=t&&e<u?(u-1-e)*h+57:0;return(0,a.jsx)(`div`,{className:[$.stepper,$[`stepper--${n}`],c?$[`stepper--animated`]:``,r??``].filter(Boolean).join(` `),style:{"--fill-ms":`${h}ms`},children:e.map((r,s)=>(0,a.jsxs)(i.default.Fragment,{children:[(0,a.jsx)(pr,{index:s,state:o(s),label:r.label,description:r.description,orientation:n,delay:g(s),fresh:f(s)}),s<e.length-1&&(0,a.jsx)(`span`,{className:[$.connector,$[`connector--${n}`],s<t?$[`connector--filled`]:``].filter(Boolean).join(` `),style:{"--delay":`${_(s)}ms`},"aria-hidden":`true`,children:(0,a.jsx)(`span`,{className:$.connector__fill})})]},s))})},gr={wrapper:`_wrapper_1d89w_3`,"wrapper--disabled":`_wrapper--disabled_1d89w_11`,input:`_input_1d89w_13`,track:`_track_1d89w_15`,thumb:`_thumb_1d89w_28`,"wrapper--stretch":`_wrapper--stretch_1d89w_50`,label:`_label_1d89w_60`,"wrapper--withDescription":`_wrapper--withDescription_1d89w_65`,text:`_text_1d89w_66`,description:`_description_1d89w_68`},_r=16,vr=2,yr=18,br=360,xr=16,Sr=e=>1-(1-e)**3,Cr=.16,wr=i.default.forwardRef(({label:e,description:t,disabled:n,id:r,className:o,onChange:s,variant:c=`default`,...l},u)=>{let d=i.default.useId(),f=r??d,p=i.default.useRef(null);return(0,a.jsxs)(`label`,{htmlFor:f,className:[gr.wrapper,c===`stretch`?gr[`wrapper--stretch`]:``,t?gr[`wrapper--withDescription`]:``,n?gr[`wrapper--disabled`]:``,o??``].filter(Boolean).join(` `),children:[(0,a.jsx)(`input`,{ref:u,id:f,type:`checkbox`,role:`switch`,disabled:n,className:gr.input,onChange:e=>{s?.(e);let t=p.current;if(c!==`stretch`||!t||typeof t.animate!=`function`||window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches)return;let n=e.target.checked,r=getComputedStyle(t),i=parseFloat(r.translate)||0,a=parseFloat(r.width)||_r,o=(n?vr:yr)+i,l=o+a,u=n?yr:vr,d=u+_r;t.getAnimations().forEach(e=>e.cancel());let f=[];for(let e=0;e<=xr;e++){let t=e/xr,r=Sr(t),i=Sr(Math.min(1,Math.max(0,(t-Cr)/(1-Cr)))),a=o+(u-o)*(n?i:r),s=l+(d-l)*(n?r:i);f.push({width:`${s-a}px`,translate:`${a-u}px 0`,offset:t})}t.animate(f,{duration:br,easing:`linear`})},...l}),(0,a.jsx)(`span`,{className:gr.track,"aria-hidden":`true`,children:(0,a.jsx)(`span`,{ref:p,className:gr.thumb})}),t?(0,a.jsxs)(`span`,{className:gr.text,children:[e&&(0,a.jsx)(`span`,{className:gr.label,children:e}),(0,a.jsx)(`span`,{className:gr.description,children:t})]}):e&&(0,a.jsx)(`span`,{className:gr.label,children:e})]})});wr.displayName=`Switch`;var Tr={field:`_field_1423f_6`,field__label:`_field__label_1423f_8`,field__description:`_field__description_1423f_10`,field__error:`_field__error_1423f_11`,textarea:`_textarea_1423f_13`,"textarea--error":`_textarea--error_1423f_37`,"textarea--disabled":`_textarea--disabled_1423f_52`,ai:`_ai_1423f_62`,"ai--error":`_ai--error_1423f_77`,"ai--disabled":`_ai--disabled_1423f_78`,ai__control:`_ai__control_1423f_80`,ai__actions:`_ai__actions_1423f_99`,ai__side:`_ai__side_1423f_100`},Er=24,Dr=i.default.forwardRef(({label:e,description:n,error:r,disabled:o,id:s,className:c,rows:l,variant:u=`default`,glow:d=`pulse`,leading:f,trailing:p,maxRows:m=8,onInput:h,...g},_)=>{let v=i.default.useId(),y=s??v,b=!!r,x=n||r?`${y}-desc`:void 0,S=u===`ai`,C=i.default.useRef(null),w=e=>{C.current=e,typeof _==`function`?_(e):_&&(_.current=e)},T=i.default.useCallback(()=>{let e=C.current;!e||!S||(e.style.height=`auto`,e.style.height=`${Math.min(e.scrollHeight,m*Er)}px`)},[S,m]);i.default.useLayoutEffect(()=>{T()},[T,g.value]);let E=(0,a.jsx)(`textarea`,{ref:w,id:y,rows:S?l??1:l??3,disabled:o,"aria-invalid":b||void 0,"aria-describedby":x,onInput:e=>{T(),h?.(e)},className:[S?Tr.ai__control:Tr.textarea,b&&!S?Tr[`textarea--error`]:``,o&&!S?Tr[`textarea--disabled`]:``].filter(Boolean).join(` `),...g});return(0,a.jsxs)(`div`,{className:[Tr.field,c??``].filter(Boolean).join(` `),children:[e&&(0,a.jsx)(`label`,{htmlFor:y,className:Tr.field__label,children:e}),S?(0,a.jsxs)(`div`,{className:[Tr.ai,b?Tr[`ai--error`]:``,o?Tr[`ai--disabled`]:``].filter(Boolean).join(` `),children:[(0,a.jsx)(t.w,{mode:o?`off`:d}),!b&&!o&&(0,a.jsx)(t.C,{}),E,(f||p)&&(0,a.jsxs)(`div`,{className:Tr.ai__actions,children:[(0,a.jsx)(`span`,{className:Tr.ai__side,children:f}),(0,a.jsx)(`span`,{className:Tr.ai__side,children:p})]})]}):E,(n||r)&&(0,a.jsx)(`span`,{id:x,className:b?Tr.field__error:Tr.field__description,children:r||n})]})});Dr.displayName=`Textarea`;var Or={toast:`_toast_dshlf_3`,toast__icon:`_toast__icon_dshlf_17`,"toast--success":`_toast--success_dshlf_18`,"toast--error":`_toast--error_dshlf_19`,"toast--info":`_toast--info_dshlf_20`,toast__content:`_toast__content_dshlf_22`,toast__title:`_toast__title_dshlf_23`,toast__description:`_toast__description_dshlf_24`,toast__dismiss:`_toast__dismiss_dshlf_26`},kr={success:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(`path`,{d:`M22 11.08V12a10 10 0 1 1-5.93-9.14`}),(0,a.jsx)(`polyline`,{points:`22 4 12 14.01 9 11.01`})]}),error:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,a.jsx)(`line`,{x1:`15`,y1:`9`,x2:`9`,y2:`15`}),(0,a.jsx)(`line`,{x1:`9`,y1:`9`,x2:`15`,y2:`15`})]}),info:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,a.jsx)(`line`,{x1:`12`,y1:`16`,x2:`12`,y2:`12`}),(0,a.jsx)(`line`,{x1:`12`,y1:`8`,x2:`12.01`,y2:`8`})]})},Ar=({status:e=`info`,title:n,description:r,onDismiss:i,className:o})=>(0,a.jsxs)(`div`,{role:e===`error`?`alert`:`status`,"aria-live":e===`error`?`assertive`:`polite`,className:[Or.toast,Or[`toast--${e}`],o??``].filter(Boolean).join(` `),children:[(0,a.jsx)(`span`,{className:Or.toast__icon,"aria-hidden":`true`,children:(0,a.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:t.Pt(18),strokeLinecap:`round`,strokeLinejoin:`round`,width:18,height:18,children:kr[e]})}),(0,a.jsxs)(`div`,{className:Or.toast__content,children:[n&&(0,a.jsx)(`div`,{className:Or.toast__title,children:n}),r&&(0,a.jsx)(`div`,{className:Or.toast__description,children:r})]}),i&&(0,a.jsx)(`button`,{type:`button`,className:Or.toast__dismiss,onClick:i,"aria-label":`Dismiss`,children:(0,a.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:t.Pt(16),strokeLinecap:`round`,strokeLinejoin:`round`,width:16,height:16,children:[(0,a.jsx)(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),(0,a.jsx)(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})]})})]}),jr={bar:`_bar_14cqo_2`,bar__icon:`_bar__icon_14cqo_10`,bar__title:`_bar__title_14cqo_17`,"bar__title--center":`_bar__title--center_14cqo_21`,bar__search:`_bar__search_14cqo_22`},Mr=({type:e=`title`,title:r,trailing:i,search:o,onMenu:s,onAction:c,onClose:l,className:u})=>(0,a.jsxs)(`header`,{className:[jr.bar,u??``].filter(Boolean).join(` `),children:[(0,a.jsx)(`button`,{type:`button`,className:jr.bar__icon,onClick:s,"aria-label":`Open menu`,children:(0,a.jsx)(n.C,{size:18,strokeWidth:t.Pt(18)})}),e===`search`?(0,a.jsx)(`div`,{className:jr.bar__search,children:o}):(0,a.jsx)(`span`,{className:[jr.bar__title,e===`title-centered`?jr[`bar__title--center`]:``].join(` `),children:r}),e===`title-action`&&(0,a.jsx)(`button`,{type:`button`,className:jr.bar__icon,onClick:c,"aria-label":`Add`,children:(0,a.jsx)(n.O,{size:18,strokeWidth:t.Pt(18)})}),e===`search`&&(0,a.jsx)(`button`,{type:`button`,className:jr.bar__icon,onClick:l,"aria-label":`Close search`,children:(0,a.jsx)(n.R,{size:18,strokeWidth:t.Pt(18)})}),(e===`title`||e===`title-centered`)&&i]});exports.Accordion=t.Mt,exports.AccordionItem=t.Nt,exports.ActivityFeed=t.kt,exports.ActivityFeedHighlight=t.At,exports.Alert=t.L,exports.Announcement=l,exports.AreaChart=ke,exports.Avatar=t.jt,exports.AvatarGroup=t.U,exports.AvatarUpload=t.Tt,exports.Badge=t.ot,exports.Balance=t.Ct,exports.BarChart=t.st,exports.BlogBlockquote=ne,exports.BlogFeatureText=re,exports.BlogImage=ae,exports.BlogListingCard=t.K,exports.BlogListingFeaturedCard=t.G,exports.BoardCard=t.I,exports.BoardColumn=Ae,exports.Breadcrumb=t.N,exports.Button=t.Et,exports.Calendar=Fe,exports.Card=Le,exports.CardMetaItem=t.M,exports.CartItem=t.it,exports.ChainOfThought=Xe,exports.ChainOfThoughtStep=Ye,exports.ChatComposer=t.A,exports.Checkbox=t.k,exports.CheckoutSteps=t.nt,exports.CodeSnippet=m,exports.ColorSwatch=t.et,exports.Combobox=gt,exports.CommandMenu=ht,exports.CommandMenuAnswer=mt,exports.CommandMenuTrigger=ft,exports.ConversationItem=t.O,exports.DEFAULT_CHECKOUT_STEPS=t.rt,exports.Divider=t.ht,exports.DonutChart=t.D,exports.EmptyState=t.E,exports.Expenses=_,exports.FacebookIcon=Te,exports.FeaturedIcon=t.W,exports.FileUpload=vt,exports.FilterChip=t.T,exports.FirstPageHeading=se,exports.FunnelChart=wt,exports.GithubIcon=_e,exports.HeatmapChart=Ot,exports.HoverGroup=t.P,exports.IconButton=t.Dt,exports.InlineHint=b,exports.Input=t.S,exports.InstagramIcon=we,exports.JobListing=t.V,exports.Kbd=rt,exports.Label=At,exports.LineChart=t.x,exports.Link=t.Ot,exports.LinkedinIcon=Ee,exports.LiquidBackdrop=t.gt,exports.LiquidGlass=t._t,exports.List=R,exports.ListItem=Mt,exports.LocationDot=t.H,exports.Map=rn,exports.MapClusterLayer=dn,exports.MapControlButton=Nt,exports.MapControls=Pt,exports.MapGlobe=un,exports.MapMarker=Qt,exports.MapPopup=an,exports.Marquee=B,exports.Menu=t.y,exports.MenuDivider=t.b,exports.MenuItem=t.v,exports.MessageBubble=t._,exports.Metric=ue,exports.MobileNavigationMenu=de,exports.Modal=t.mt,exports.NotificationItem=t.pt,exports.Pagination=t.g,exports.PieChart=yn,exports.PlaceholderLogo=pe,exports.Popover=xn,exports.PriceDisplay=t.$,exports.ProductCard=t.Z,exports.ProductGallery=t.X,exports.ProfileCard=he,exports.Progress=t.St,exports.ProgressItem=S,exports.ProgressStat=t.ft,exports.QuantitySelector=t.at,exports.RadarChart=jn,exports.RadialChart=Bn,exports.Radio=Hn,exports.RichSeparator=w,exports.RichTextHeading=ye,exports.RichTextParagraph=xe,exports.SectionHeading=t.z,exports.SegmentedControl=t.h,exports.Select=t.m,exports.Sidebar=t.p,exports.SidebarDivider=t.f,exports.SidebarFooter=Wn,exports.SidebarGroupLabel=t.d,exports.SidebarHeader=t.u,exports.SidebarItem=t.l,exports.SidebarPromo=t.c,exports.SidebarSearch=Kn,exports.SidebarSubItem=t.s,exports.SizeSelector=t.Y,exports.Skeleton=t.j,exports.Slider=t.o,exports.SourceLogo=Qe,exports.SourceStack=Ge,exports.SpendingBalance=t.dt,exports.Spinner=at,exports.StarRating=t.J,exports.StatCard=t.a,exports.Stepper=hr,exports.StepperStep=pr,exports.StockMarket=D,exports.StockStatus=t.q,exports.SubFeature=Ce,exports.Switch=wr,exports.Table=t.i,exports.Tabs=t.r,exports.Tags=A,exports.TeamCard=t.R,exports.Textarea=Dr,exports.Ticker=ee,exports.Toast=Ar,exports.Toaster=fr,exports.Tooltip=t.n,exports.TopBar=t.t,exports.TopBarMobile=Mr,exports.Transactions=te,exports.WishlistButton=t.Q,exports.WorkingIndicator=We,exports.XIcon=ge,exports.getContrastColor=t.tt,exports.iconStrokeWidth=t.Pt,exports.sourceLogo=tt,exports.sourceLogoNames=$e,exports.syncLiquidBackdrop=t.vt,exports.toast=nr,exports.useHoverHighlight=t.F,exports.useLiquidGlass=t.yt,exports.useMapContext=Jt;