@sakaniui/react 0.16.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +6 -1
- package/CHANGELOG.md +24 -0
- package/dist/{TopBar-PpauzgVl.js → TopBar-BGg5THg1.js} +2234 -1812
- package/dist/TopBar-CXA2RJsK.cjs +1 -0
- package/dist/blocks.cjs +2 -2
- package/dist/blocks.mjs +1671 -1671
- package/dist/components/AreaChart/AreaChart.d.ts +5 -0
- package/dist/components/BarChart/BarChart.d.ts +5 -0
- package/dist/components/BarChart/index.d.ts +1 -1
- package/dist/components/DonutChart/DonutChart.d.ts +5 -0
- package/dist/components/FunnelChart/FunnelChart.d.ts +9 -0
- package/dist/components/HeatmapChart/HeatmapChart.d.ts +5 -0
- package/dist/components/LineChart/LineChart.d.ts +5 -0
- package/dist/components/PieChart/PieChart.d.ts +5 -0
- package/dist/components/RadarChart/RadarChart.d.ts +11 -0
- package/dist/components/RadialChart/RadialChart.d.ts +5 -0
- package/dist/emoji-index.json +1 -1
- package/dist/icon-index.json +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +2923 -2399
- package/dist/lib/ChartLoading.d.ts +15 -0
- package/dist/lib/ChartTooltip.d.ts +18 -0
- package/dist/lib/useChartEntrance.d.ts +9 -0
- package/dist/lib/useReducedMotion.d.ts +6 -0
- package/dist/manifest.json +212 -10
- package/dist/style.css +1 -1
- package/package.json +3 -2
- package/dist/TopBar-BgW6DlPo.cjs +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sakaniui/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"description": "SakaniUI — token-driven React components and blocks with light & dark modes, plus built-in glass and Apple-style liquid glass surfaces.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -82,7 +82,8 @@
|
|
|
82
82
|
"preview": "vite preview",
|
|
83
83
|
"storybook": "storybook dev -p 6006",
|
|
84
84
|
"build-storybook": "storybook build",
|
|
85
|
-
"chromatic": "npx chromatic"
|
|
85
|
+
"chromatic": "npx chromatic",
|
|
86
|
+
"release": "node scripts/release.mjs"
|
|
86
87
|
},
|
|
87
88
|
"peerDependencies": {
|
|
88
89
|
"react": "^19.0.0",
|
package/dist/TopBar-BgW6DlPo.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./rolldown-runtime-CMqjfN_6.cjs"),t=require("./help-circle-BKFYrUSW.cjs");let n=require("react");n=e.t(n,1);let r=require("react/jsx-runtime"),i=require("recharts"),a=require("react-dom");a=e.t(a,1);var o=(e,t=1.5)=>24/e*t,s={accordion:`_accordion_ydu7v_3`,item:`_item_ydu7v_10`,item__header:`_item__header_ydu7v_12`,item__title:`_item__title_ydu7v_31`,item__chevron:`_item__chevron_ydu7v_38`,"item__chevron--open":`_item__chevron--open_ydu7v_44`,item__panelWrap:`_item__panelWrap_ydu7v_47`,"item__panelWrap--open":`_item__panelWrap--open_ydu7v_52`,item__panel:`_item__panel_ydu7v_47`,item__panelInner:`_item__panelInner_ydu7v_55`},c=({title:e,children:t,open:i,defaultOpen:a=!1,className:c})=>{let l=i!==void 0,[u,d]=n.default.useState(a),f=l?i:u;return(0,r.jsxs)(`div`,{className:[s.item,c??``].filter(Boolean).join(` `),children:[(0,r.jsxs)(`button`,{type:`button`,className:s.item__header,"aria-expanded":f,onClick:()=>!l&&d(e=>!e),children:[(0,r.jsx)(`span`,{className:s.item__title,children:e}),(0,r.jsx)(`span`,{className:[s.item__chevron,f?s[`item__chevron--open`]:``].join(` `),"aria-hidden":`true`,children:(0,r.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:o(18),strokeLinecap:`round`,strokeLinejoin:`round`,width:18,height:18,children:(0,r.jsx)(`path`,{d:`m6 9 6 6 6-6`})})})]}),(0,r.jsx)(`div`,{className:[s.item__panelWrap,f?s[`item__panelWrap--open`]:``].join(` `),children:(0,r.jsx)(`div`,{className:s.item__panel,children:(0,r.jsx)(`div`,{className:s.item__panelInner,children:t})})})]})},l=({children:e,className:t})=>(0,r.jsx)(`div`,{className:[s.accordion,t??``].filter(Boolean).join(` `),children:e}),u={orb:`_orb_dvyo3_3`,eyes:`_eyes_dvyo3_24`,eye:`_eye_dvyo3_24`,"orb-think":`_orb-think_dvyo3_1`},d=.13,f=.07,p=4,m=.12,h=.025,g=1400,_=800,v=.12,y=1.6,b=({size:e=28,look:t=!0,blink:i=!0,thinking:a=!1,glance:o=!1,lookAt:s=null,squintOnHover:c=!0,label:l,className:b,style:x})=>{let S=n.default.useRef(null),C=n.default.useRef(null),[w,T]=n.default.useState(!1);n.default.useEffect(()=>{if(!o||s||typeof window>`u`||window.matchMedia(`(prefers-reduced-motion: reduce)`).matches)return;T(!0);let e=window.setTimeout(()=>T(!1),g);return()=>{window.clearTimeout(e),T(!1)}},[o,s]),n.default.useEffect(()=>{let e=C.current;if(!(!e||!w))return e.style.setProperty(`--ox`,String(m)),e.style.setProperty(`--oy`,String(h)),()=>{e.style.removeProperty(`--ox`),e.style.removeProperty(`--oy`)}},[w]),n.default.useEffect(()=>{let e=S.current,t=C.current;if(!s||!e||!t)return;let n=typeof window<`u`&&window.matchMedia(`(prefers-reduced-motion: reduce)`).matches,r=performance.now(),i=0,a=()=>{let e=document.createRange();e.selectNodeContents(s);let t=e.getBoundingClientRect();return t.width>0?t:s.getBoundingClientRect()},o=()=>{i=0;let s=n?1:Math.min(1,(performance.now()-r)/_),c=1-(1-s)**2,l=e.getBoundingClientRect(),u=a(),p=u.left+6-(l.left+l.width/2),m=u.top+u.height/2-(l.top+l.height/2),h=Math.max(-1,Math.min(1,p/(l.width*3))),g=Math.max(-1,Math.min(1,m/(l.width*1.2)));t.style.setProperty(`--ox`,(h*d+(c-.5)*v).toFixed(4)),t.style.setProperty(`--oy`,(g*f*y).toFixed(4)),t.style.setProperty(`--squeeze`,(1-Math.abs(h)*.1).toFixed(3)),s<1&&(i=requestAnimationFrame(o))},c=()=>{i||=requestAnimationFrame(o)};o();let l=[450,900,1500].map(e=>window.setTimeout(c,e)),u=typeof ResizeObserver<`u`?new ResizeObserver(c):null;return u?.observe(s),u?.observe(e),window.addEventListener(`scroll`,c,!0),window.addEventListener(`resize`,c),()=>{l.forEach(window.clearTimeout),u?.disconnect(),window.removeEventListener(`scroll`,c,!0),window.removeEventListener(`resize`,c),i&&cancelAnimationFrame(i),t.style.removeProperty(`--ox`),t.style.removeProperty(`--oy`),t.style.removeProperty(`--squeeze`)}},[s]);let[E,D]=n.default.useState(!1);n.default.useEffect(()=>{let e=S.current,n=C.current;if(!t||a||w||s||!e||!n||typeof window>`u`||window.matchMedia(`(prefers-reduced-motion: reduce)`).matches)return;let r=0,i=null,o=()=>{if(r=0,!i)return;let t=e.getBoundingClientRect(),a=i.x-(t.left+t.width/2),o=i.y-(t.top+t.height/2),s=Math.hypot(a,o)||1,c=Math.min(1,s/(t.width*p)),l=a/s*c,u=o/s*c;n.style.setProperty(`--ox`,`${(l*d).toFixed(4)}`),n.style.setProperty(`--oy`,`${(u*f).toFixed(4)}`),n.style.setProperty(`--squeeze`,`${(1-Math.abs(l)*.1).toFixed(3)}`)},c=e=>{e.pointerType!==`touch`&&(i={x:e.clientX,y:e.clientY},r||=requestAnimationFrame(o))},l=()=>{i=null,n.style.removeProperty(`--ox`),n.style.removeProperty(`--oy`),n.style.removeProperty(`--squeeze`)};return window.addEventListener(`pointermove`,c,{passive:!0}),document.documentElement.addEventListener(`pointerleave`,l),()=>{window.removeEventListener(`pointermove`,c),document.documentElement.removeEventListener(`pointerleave`,l),r&&cancelAnimationFrame(r)}},[t,a,w,s]);let[O,k]=n.default.useState(!1);return n.default.useEffect(()=>{if(!i||typeof window>`u`||window.matchMedia(`(prefers-reduced-motion: reduce)`).matches)return;let e,t=()=>{e=window.setTimeout(()=>{k(!0),e=window.setTimeout(()=>{k(!1),Math.random()<.2?e=window.setTimeout(()=>{k(!0),e=window.setTimeout(()=>{k(!1),t()},120)},160):t()},140)},3e3+Math.random()*3e3)};return t(),()=>window.clearTimeout(e)},[i]),(0,r.jsx)(`span`,{ref:S,className:[u.orb,b??``].filter(Boolean).join(` `),style:{width:e,height:e,...x},onPointerEnter:c?e=>{e.pointerType!==`touch`&&D(!0)}:void 0,onPointerLeave:c?()=>D(!1):void 0,...l?{role:`img`,"aria-label":l}:{"aria-hidden":!0},children:(0,r.jsxs)(`span`,{ref:C,className:u.eyes,"data-closed":O||void 0,"data-thinking":a||void 0,"data-glancing":w||void 0,"data-gazing":s?!0:void 0,"data-squint":E||void 0,children:[(0,r.jsx)(`span`,{className:u.eye}),(0,r.jsx)(`span`,{className:u.eye})]})})},x={button:`_button_1klsi_2`,"button--sm":`_button--sm_1klsi_26`,"button--md":`_button--md_1klsi_27`,"button--lg":`_button--lg_1klsi_28`,"button--primary":`_button--primary_1klsi_31`,"button--secondary":`_button--secondary_1klsi_40`,"button--outline":`_button--outline_1klsi_47`,"button--ghost":`_button--ghost_1klsi_54`,"button--destructive":`_button--destructive_1klsi_61`},S={sm:16,md:18,lg:20},C=n.default.forwardRef(({icon:e,variant:t=`primary`,size:n=`md`,disabled:i,className:a,...s},c)=>(0,r.jsx)(`button`,{ref:c,disabled:i,className:[x.button,x[`button--${t}`],x[`button--${n}`],a??``].filter(Boolean).join(` `),...s,children:(0,r.jsx)(e,{size:S[n],strokeWidth:o(S[n]),"aria-hidden":`true`})}));C.displayName=`IconButton`;var w={assistant:`_assistant_w0bsf_3`,avatar:`_avatar_w0bsf_11`,content:`_content_w0bsf_16`,text:`_text_w0bsf_17`,actions:`_actions_w0bsf_20`,"assistant--streaming":`_assistant--streaming_w0bsf_23`,caret:`_caret_w0bsf_1`,user:`_user_w0bsf_36`,bubble:`_bubble_w0bsf_37`},T=({role:e=`assistant`,streaming:i,children:a,actions:o=!0,onCopy:s,onRegenerate:c,onFeedback:l,className:u})=>{if(e===`user`)return(0,r.jsx)(`div`,{className:[w.user,u??``].filter(Boolean).join(` `),children:(0,r.jsx)(`div`,{className:w.bubble,children:a})});let d=n.default.Children.count(a)>0,f=n.default.Children.toArray(a).map((e,t)=>typeof e==`string`||typeof e==`number`?(0,r.jsx)(`p`,{children:e},t):e);return(0,r.jsxs)(`div`,{className:[w.assistant,i?w[`assistant--streaming`]:``,u??``].filter(Boolean).join(` `),children:[(0,r.jsx)(`span`,{className:w.avatar,"aria-hidden":`true`,children:(0,r.jsx)(b,{size:28,thinking:i&&!d,glance:i&&d})}),(0,r.jsxs)(`div`,{className:w.content,children:[(0,r.jsx)(`div`,{className:w.text,"aria-live":i?`polite`:void 0,"aria-busy":i||void 0,children:f}),!i&&o!==!1&&(o===!0||o===void 0?(0,r.jsxs)(`div`,{className:w.actions,role:`group`,"aria-label":`Message actions`,children:[(0,r.jsx)(C,{icon:t.X,variant:`ghost`,size:`sm`,"aria-label":`Copy`,onClick:s}),(0,r.jsx)(C,{icon:t.Y,variant:`ghost`,size:`sm`,"aria-label":`Regenerate`,onClick:c}),(0,r.jsx)(C,{icon:t.J,variant:`ghost`,size:`sm`,"aria-label":`Good response`,onClick:()=>l?.(`up`)}),(0,r.jsx)(C,{icon:t.q,variant:`ghost`,size:`sm`,"aria-label":`Bad response`,onClick:()=>l?.(`down`)})]}):o)]})]})},E={avatar:`_avatar_1igqs_3`,"avatar--sm":`_avatar--sm_1igqs_17`,"avatar--md":`_avatar--md_1igqs_18`,"avatar--lg":`_avatar--lg_1igqs_19`,"avatar--xl":`_avatar--xl_1igqs_20`,"avatar--bordered":`_avatar--bordered_1igqs_25`,avatar__image:`_avatar__image_1igqs_31`,avatar__initials:`_avatar__initials_1igqs_39`,avatar__icon:`_avatar__icon_1igqs_46`},D={sm:14,md:18,lg:22,xl:26},O=({px:e})=>(0,r.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:o(e),strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,r.jsx)(`path`,{d:`M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2`}),(0,r.jsx)(`circle`,{cx:`12`,cy:`7`,r:`4`})]}),k=({size:e=`md`,src:t,alt:i=``,initials:a,icon:s,className:c})=>{let l=[E.avatar,E[`avatar--${e}`],c??``].filter(Boolean).join(` `);if(t)return(0,r.jsx)(`span`,{className:[l,E[`avatar--bordered`]].join(` `),children:(0,r.jsx)(`img`,{src:t,alt:i,className:E.avatar__image})});if(a)return(0,r.jsx)(`span`,{className:l,role:`img`,"aria-label":i||a,children:(0,r.jsx)(`span`,{className:E.avatar__initials,children:a.slice(0,2).toUpperCase()})});let u=D[e],d=n.default.isValidElement(s)?n.default.cloneElement(s,{size:u,strokeWidth:o(u)}):s??(0,r.jsx)(O,{px:u});return(0,r.jsx)(`span`,{className:l,role:`img`,"aria-label":i||`avatar`,children:(0,r.jsx)(`span`,{className:E.avatar__icon,children:d})})},A={feed:`_feed_1pvgl_1`,"feed--compact":`_feed--compact_1pvgl_8`,"row--default":`_row--default_1pvgl_13`,rail:`_rail_1pvgl_19`,dot:`_dot_1pvgl_26`,connector:`_connector_1pvgl_42`,content:`_content_1pvgl_49`,"content--spaced":`_content--spaced_1pvgl_56`,"row--compact":`_row--compact_1pvgl_61`,compactLeft:`_compactLeft_1pvgl_68`,text:`_text_1pvgl_74`,actor:`_actor_1pvgl_88`,highlight:`_highlight_1pvgl_89`,timestamp:`_timestamp_1pvgl_92`},ee=({children:e})=>(0,r.jsx)(`span`,{className:A.highlight,children:e}),te=16,ne=e=>n.default.isValidElement(e)?n.default.cloneElement(e,{size:te,strokeWidth:o(te)}):e,re=({items:e,variant:t=`default`,className:n})=>{let i=t===`compact`;return(0,r.jsx)(`div`,{className:[A.feed,i?A[`feed--compact`]:``,n??``].filter(Boolean).join(` `),children:e.map((t,n)=>{let a=n===e.length-1,o=t.id??n;return i?(0,r.jsxs)(`div`,{className:A[`row--compact`],children:[(0,r.jsxs)(`div`,{className:A.compactLeft,children:[(0,r.jsx)(k,{size:`sm`,src:t.avatarSrc,alt:t.avatarAlt??t.actor}),(0,r.jsxs)(`p`,{className:A.text,children:[(0,r.jsx)(`span`,{className:A.actor,children:t.actor}),` `,t.description]})]}),(0,r.jsx)(`span`,{className:A.timestamp,children:t.timestamp})]},o):(0,r.jsxs)(`div`,{className:A[`row--default`],children:[(0,r.jsxs)(`div`,{className:A.rail,children:[(0,r.jsx)(`div`,{className:A.dot,children:ne(t.icon)}),!a&&(0,r.jsx)(`div`,{className:A.connector})]}),(0,r.jsxs)(`div`,{className:[A.content,a?``:A[`content--spaced`]].filter(Boolean).join(` `),children:[(0,r.jsxs)(`p`,{className:A.text,children:[(0,r.jsx)(`span`,{className:A.actor,children:t.actor}),` `,t.description]}),(0,r.jsx)(`span`,{className:A.timestamp,children:t.timestamp})]})]},o)})})},ie={link:`_link_1i8ma_3`,link__external:`_link__external_1i8ma_36`},ae=n.default.forwardRef(({external:e,children:t,className:n,href:i,...a},s)=>(0,r.jsxs)(`a`,{ref:s,href:i,className:[ie.link,n??``].filter(Boolean).join(` `),target:e?`_blank`:a.target,rel:e?`noopener noreferrer`:a.rel,...a,children:[t,e&&(0,r.jsx)(`span`,{className:ie.link__external,"aria-label":`(opens in new tab)`,children:(0,r.jsxs)(`svg`,{width:12,height:12,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:o(12),strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,r.jsx)(`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`}),(0,r.jsx)(`polyline`,{points:`15 3 21 3 21 9`}),(0,r.jsx)(`line`,{x1:`10`,y1:`14`,x2:`21`,y2:`3`})]})})]}));ae.displayName=`Link`;var j={button:`_button_wcl0g_21`,"button--primary":`_button--primary_wcl0g_106`,"button--secondary":`_button--secondary_wcl0g_135`,"button--outline":`_button--outline_wcl0g_160`,"button--ghost":`_button--ghost_wcl0g_184`,"button--destructive":`_button--destructive_wcl0g_210`,"button--sm":`_button--sm_wcl0g_236`,"button--md":`_button--md_wcl0g_246`,"button--lg":`_button--lg_wcl0g_256`,"button--hasLeftIcon":`_button--hasLeftIcon_wcl0g_267`,"button--hasRightIcon":`_button--hasRightIcon_wcl0g_268`,button__icon:`_button__icon_wcl0g_280`,button__label:`_button__label_wcl0g_287`,"button--loading":`_button--loading_wcl0g_297`,button__spinner:`_button__spinner_wcl0g_301`,"sakani-btn-spin":`_sakani-btn-spin_wcl0g_1`},M=n.default.forwardRef(({variant:e=`primary`,size:t=`md`,leftIcon:n,rightIcon:i,loading:a=!1,disabled:o,children:s,className:c,...l},u)=>{let d=o||a;return(0,r.jsxs)(`button`,{ref:u,className:[j.button,j[`button--${e}`],j[`button--${t}`],a?j[`button--loading`]:``,n&&!a?j[`button--hasLeftIcon`]:``,i&&!a?j[`button--hasRightIcon`]:``,c??``].filter(Boolean).join(` `),disabled:d,"aria-busy":a,...l,children:[a&&(0,r.jsx)(`span`,{className:[j.button__icon,j.button__spinner].join(` `),"aria-hidden":`true`,children:(0,r.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2.5,strokeLinecap:`round`,children:(0,r.jsx)(`path`,{d:`M12 3a9 9 0 1 1-6.36 2.64`})})}),n&&!a&&(0,r.jsx)(`span`,{className:j.button__icon,"aria-hidden":`true`,children:n}),(0,r.jsx)(`span`,{className:j.button__label,children:s}),i&&!a&&(0,r.jsx)(`span`,{className:j.button__icon,"aria-hidden":`true`,children:i})]})});M.displayName=`Button`;var N={wrap:`_wrap_3mj75_1`,"wrap--vertical":`_wrap--vertical_3mj75_7`,"wrap--horizontal":`_wrap--horizontal_3mj75_11`,circleWrap:`_circleWrap_3mj75_21`,bigAvatar:`_bigAvatar_3mj75_26`,badge:`_badge_3mj75_31`,horizontalContent:`_horizontalContent_3mj75_53`,textStack:`_textStack_3mj75_60`,"textStack--center":`_textStack--center_3mj75_66`,title:`_title_3mj75_71`,hint:`_hint_3mj75_79`,link:`_link_3mj75_88`,input:`_input_3mj75_92`},oe=({src:e,alt:i,orientation:a=`vertical`,accept:s=`image/jpeg,image/png`,title:c=`Upload a photo`,hint:l=`JPG or PNG, max 5MB.`,onFileSelect:u,onRemove:d,className:f})=>{let p=n.default.useRef(null),m=e!==void 0,[h,g]=n.default.useState(void 0),_=m?e:h,v=a===`horizontal`,y=!!_,b=()=>p.current?.click(),x=()=>{d?.(),m||g(void 0)},S=(0,r.jsxs)(`div`,{className:[N.textStack,v?``:N[`textStack--center`]].filter(Boolean).join(` `),children:[(0,r.jsx)(`p`,{className:N.title,children:c}),(0,r.jsx)(`p`,{className:N.hint,children:l})]});return(0,r.jsxs)(`div`,{className:[N.wrap,N[`wrap--${a}`],f??``].filter(Boolean).join(` `),children:[(0,r.jsxs)(`div`,{className:N.circleWrap,children:[(0,r.jsx)(k,{size:v?`lg`:`xl`,src:_,alt:i,className:v?void 0:N.bigAvatar}),!v&&(0,r.jsx)(`button`,{type:`button`,className:N.badge,onClick:b,"aria-label":`Change photo`,children:(0,r.jsx)(t.U,{size:16,strokeWidth:o(16)})})]}),v&&(0,r.jsxs)(`div`,{className:N.horizontalContent,children:[S,y?(0,r.jsx)(M,{variant:`outline`,size:`sm`,onClick:x,style:{color:`var(--color-danger-fg)`,borderColor:`var(--color-danger-border)`},children:`Remove`}):(0,r.jsx)(M,{variant:`outline`,size:`sm`,onClick:b,children:`Upload`})]}),!v&&(y?(0,r.jsx)(ae,{href:`#`,onClick:e=>{e.preventDefault(),b()},className:N.link,style:{color:`var(--color-brand-fg)`,fontSize:16,lineHeight:`24px`},children:`Change photo`}):S),(0,r.jsx)(`input`,{ref:p,type:`file`,accept:s,className:N.input,onChange:e=>{let t=e.target.files?.[0];t&&(u?.(t),m||g(URL.createObjectURL(t))),e.target.value=``}})]})};function se(){let[e,t]=(0,n.useState)(0);return(0,n.useEffect)(()=>{if(typeof document>`u`)return;t(e=>e+1);let e=new MutationObserver(()=>t(e=>e+1));return e.observe(document.documentElement,{attributes:!0,attributeFilter:[`class`]}),()=>e.disconnect()},[]),e}var P={balance:`_balance_u4g7n_1`,"balance--progress":`_balance--progress_u4g7n_8`,content:`_content_u4g7n_17`,labelRow:`_labelRow_u4g7n_33`,label:`_label_u4g7n_33`,hideToggle:`_hideToggle_u4g7n_50`,value:`_value_u4g7n_73`,"value--hidden":`_value--hidden_u4g7n_85`,"value--glitching":`_value--glitching_u4g7n_92`,"balance-glitch":`_balance-glitch_u4g7n_1`,changeRow:`_changeRow_u4g7n_103`,trendIcon__up:`_trendIcon__up_u4g7n_110`,trendIcon__down:`_trendIcon__down_u4g7n_111`,changeValue__up:`_changeValue__up_u4g7n_112`,changeValue__down:`_changeValue__down_u4g7n_119`,changeLabel:`_changeLabel_u4g7n_126`,ringCard:`_ringCard_u4g7n_134`},ce=`ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789`,le=8,ue=6,de=90,fe=e=>{let t=Math.min(e,le);return Array.from({length:t},()=>ce[Math.floor(Math.random()*36)]).join(``)},pe=e=>typeof window<`u`&&getComputedStyle(document.documentElement).getPropertyValue(e).trim()||void 0,me=({progress:e})=>{se();let t=pe(`--color-chart-1`)??`#ff4700`,n=pe(`--color-bg-subtle`)??`#f5f4f2`,a=[{value:Math.max(0,Math.min(100,e))}];return(0,r.jsx)(`div`,{className:P.ringCard,children:(0,r.jsx)(i.ResponsiveContainer,{width:64,height:64,children:(0,r.jsxs)(i.RadialBarChart,{data:a,startAngle:90,endAngle:-270,innerRadius:`72%`,outerRadius:`100%`,barSize:10,children:[(0,r.jsx)(i.PolarAngleAxis,{type:`number`,domain:[0,100],tick:!1,axisLine:!1}),(0,r.jsx)(i.RadialBar,{dataKey:`value`,cornerRadius:5,fill:t,background:{fill:n},isAnimationActive:!1})]})})})},he=({label:e=`Available balance`,value:i,change:a,progress:s,hidden:c,onToggleHidden:l,className:u})=>{let d=c!==void 0,[f,p]=n.default.useState(!1),m=d?c:f,h=s!==void 0,g=a?.direction??`up`,_=g===`up`?t.B:t.z,v=()=>{let e=!m;l?.(e),d||p(e)},[y,b]=n.default.useState(!1),[x,S]=n.default.useState(0),C=n.default.useRef(!1);n.default.useEffect(()=>{if(m&&!C.current){b(!0);let e=0,t=setInterval(()=>{e+=1,S(e=>e+1),e>=ue&&(clearInterval(t),b(!1))},de);return C.current=!0,()=>clearInterval(t)}C.current=m},[m]);let w=n.default.useMemo(()=>fe(i.length),[i,x]),T=n.default.useMemo(()=>a?fe(a.value.length):``,[a?.value,x]),E=(0,r.jsxs)(`div`,{className:P.content,children:[(0,r.jsxs)(`div`,{className:P.labelRow,children:[(0,r.jsx)(`p`,{className:P.label,children:e}),(0,r.jsx)(`button`,{type:`button`,className:P.hideToggle,"aria-label":m?`Show balance`:`Hide balance`,onClick:v,children:m?(0,r.jsx)(t.V,{size:16,strokeWidth:o(16)}):(0,r.jsx)(t.H,{size:16,strokeWidth:o(16)})})]}),(0,r.jsx)(`p`,{className:[P.value,m?P[`value--hidden`]:``,y?P[`value--glitching`]:``].filter(Boolean).join(` `),children:m?w:i}),a&&(0,r.jsxs)(`div`,{className:P.changeRow,children:[(0,r.jsx)(_,{size:24,strokeWidth:1.5,className:g===`up`?P.trendIcon__up:P.trendIcon__down}),(0,r.jsx)(`span`,{className:[g===`up`?P.changeValue__up:P.changeValue__down,y?P[`value--glitching`]:``].filter(Boolean).join(` `),children:m?T:a.value}),(0,r.jsx)(`span`,{className:P.changeLabel,children:a.label??`this month`})]})]});return(0,r.jsxs)(`div`,{className:[P.balance,h?P[`balance--progress`]:``,u??``].filter(Boolean).join(` `),children:[h&&(0,r.jsx)(me,{progress:s}),E]})},ge={progress:`_progress_1qaz4_11`,"progress--sm":`_progress--sm_1qaz4_20`,"progress--md":`_progress--md_1qaz4_21`,"progress--lg":`_progress--lg_1qaz4_22`,progress__fill:`_progress__fill_1qaz4_25`,"progress__fill--indeterminate":`_progress__fill--indeterminate_1qaz4_33`,"progress-scan":`_progress-scan_1qaz4_1`},_e=({value:e,size:t=`md`,label:n=`Progress`,className:i})=>{let a=e===void 0,o=Math.min(100,Math.max(0,e??0));return(0,r.jsx)(`div`,{role:`progressbar`,"aria-label":n,"aria-valuenow":a?void 0:o,"aria-valuemin":0,"aria-valuemax":100,className:[ge.progress,ge[`progress--${t}`],i??``].filter(Boolean).join(` `),children:(0,r.jsx)(`div`,{className:[ge.progress__fill,a?ge[`progress__fill--indeterminate`]:``].filter(Boolean).join(` `),style:a?void 0:{width:`${o}%`}})})},ve=[`dark`,`force-light`];function ye(e,t){let[r,i]=(0,n.useState)(``);return(0,n.useEffect)(()=>{if(!t||typeof document>`u`)return;let n=e.current;if(!n)return;let r=n.closest(ve.map(e=>`.${e}`).join(`, `)),a=r?ve.find(e=>r.classList.contains(e))??``:``;i(a)},[e,t]),r}function be(e,t){let[r,i]=(0,n.useState)(void 0);return(0,n.useEffect)(()=>{if(!t||typeof document>`u`)return;let n=e.current;n&&i(n.closest(`[data-surface]`)?.getAttribute(`data-surface`)??void 0)},[e,t]),r}var F={liquid:`_liquid_6m0r2_6`,regular:`_regular_6m0r2_6`,clear:`_clear_6m0r2_14`,"tint-regular":`_tint-regular_6m0r2_34`,"tint-clear":`_tint-clear_6m0r2_35`,"tint-subtle":`_tint-subtle_6m0r2_36`,"tint-none":`_tint-none_6m0r2_37`,sourceClip:`_sourceClip_6m0r2_47`,source:`_source_6m0r2_47`,sourceImage:`_sourceImage_6m0r2_56`,sourceCanvas:`_sourceCanvas_6m0r2_63`,probe:`_probe_6m0r2_64`,fill:`_fill_6m0r2_65`,interactive:`_interactive_6m0r2_120`,defs:`_defs_6m0r2_122`};function xe(){return typeof navigator>`u`?!1:!!(navigator.userAgentData?.brands)?.some(e=>/Chromium/i.test(e.brand))}var Se=new Map;function Ce(e){let{w:t,h:n,radius:r,bezel:i,intensity:a,reach:o,lx:s,ly:c}=e,l=`${t}x${n}:${r}:${i}:${a}:${o}:${s.toFixed(3)}:${c.toFixed(3)}`,u=Se.get(l);if(u)return u;let d=()=>{let e=document.createElement(`canvas`);return e.width=t,e.height=n,e},f=d(),p=d(),m=f.getContext(`2d`),h=p.getContext(`2d`);if(!m||!h)return{map:``,light:``};let g=m.createImageData(t,n),_=h.createImageData(t,n),v=g.data,y=_.data,b=Math.min(r,t/2,n/2),x=t/2,S=n/2,C=Math.max(i,a>0?o:0,1);new Uint32Array(v.buffer).fill(4286611584),new Uint32Array(y.buffer).fill(4286611584);let w=Math.ceil(C+b+2);for(let e=0;e<n;e++){let r=e<w||e>=n-w;for(let l=0;l<t&&!(!r&&l===w&&(l=Math.max(w,t-w),l>=t));l++){let r=l+.5,u=e+.5,d=Math.abs(r-x)-(t/2-b),f=Math.abs(u-S)-(n/2-b),p=Math.max(d,0),m=Math.max(f,0),h=Math.hypot(p,m),g=-(h+Math.min(Math.max(d,f),0)-b),_=0,w=0,T=0;if(g>-1&&g<C){let e=0,t=0;if(d>0&&f>0&&h>0?(e=p/h,t=m/h):d>f?e=1:t=1,e*=Math.sign(r-x)||1,t*=Math.sign(u-S)||1,g>=0&&g<i){let n=1-Math.min(i,g<1?g+1:g)/i,r=(1-Math.sqrt(1-n*n))*(g<1?.5:1);_=-e*r,w=-t*r}if(a>0){let n=e*s+t*c,r=Math.abs(n);g<1?T=a*(n>0?106*r**.86:101*r**1.45):o>0&&(T=(n>0?-14:11.6)*a*r*Math.max(0,1-(g-.5)/o))}}if(_===0&&w===0&&T===0)continue;let E=(e*t+l)*4;v[E]=128+_*127,v[E+1]=128+w*127;let D=Math.max(0,Math.min(255,Math.round(128+T)));y[E]=D,y[E+1]=D,y[E+2]=D}}m.putImageData(g,0,0),h.putImageData(_,0,0);let T={map:f.toDataURL(),light:p.toDataURL()};return Se.set(l,T),T}var we=n.default.createContext(null),Te=`linear-gradient(180deg, #4d5a6b 0%, #6b6d66 55%, #474e3d 100%)`,Ee=n.default.forwardRef(({src:e,position:t=`center`,veil:i,placeholder:a=Te,style:o,children:s,...c},l)=>{let u=n.default.useRef(null),d=e=>{u.current=e,typeof l==`function`?l(e):l&&(l.current=e)},f=/gradient\(|url\(/.test(a)?a:`linear-gradient(${a}, ${a})`,p=(i?`linear-gradient(${i}, ${i}), `:``)+`url("${e}"), ${f}`,m=(i?`100% 100%, `:``)+`cover, cover`,h=n.default.useMemo(()=>({src:e,veil:i,image:p,size:m,position:t,rootRef:u}),[e,i,p,m,t]);return(0,r.jsx)(`div`,{ref:d,...c,style:{backgroundImage:p,backgroundSize:m,backgroundPosition:t,backgroundRepeat:`no-repeat`,...o},children:(0,r.jsx)(we.Provider,{value:h,children:s})})});Ee.displayName=`LiquidBackdrop`;var De=new Set,Oe=0,ke=0,Ae=()=>{let e=!1;De.forEach(t=>{t()&&(e=!0)}),ke=e?0:ke+1,Oe=De.size&&ke<24?requestAnimationFrame(Ae):0},je=()=>{ke=0,!Oe&&De.size&&(Oe=requestAnimationFrame(Ae))},Me=!1;function Ne(e){if(!Me&&typeof window<`u`){Me=!0,window.addEventListener(`scroll`,je,{capture:!0,passive:!0}),window.addEventListener(`resize`,je);for(let e of[`transitionrun`,`transitionend`,`animationstart`,`animationend`,`pointerdown`,`pointerup`])document.addEventListener(e,je,!0);new MutationObserver(je).observe(document.documentElement,{attributes:!0,attributeFilter:[`class`,`data-theme`],subtree:!0})}return De.add(e),e(),je(),()=>{De.delete(e)}}function Pe(){De.forEach(e=>e()),je()}var Fe=new Map;function Ie(e){let t=Fe.get(e);return t||(t=new Promise((t,n)=>{let r=new Image;r.decoding=`async`,r.onload=()=>t(r),r.onerror=n,r.src=e}),Fe.set(e,t)),t}function Le(e){let t={left:0,top:0,center:.5,right:1,bottom:1},n=e.trim().split(/\s+/),r=e=>e===void 0?.5:e in t?t[e]:e.endsWith(`%`)?parseFloat(e)/100:.5;return n.length===1&&(n[0]===`top`||n[0]===`bottom`)?[.5,r(n[0])]:[r(n[0]),r(n[1])]}var Re=300*300,ze=(e,t,n)=>{let r=parseFloat(getComputedStyle(e).getPropertyValue(t));return Number.isFinite(r)?r:n};function Be(e,{enabled:t=!0,refraction:i=`auto`,watch:a=``,source:o=!0,bake:s=`auto`}={}){let c=`liquid-${n.default.useId().replace(/[^a-zA-Z0-9_-]/g,``)}`,[l,u]=n.default.useState(null),d=t&&i!==`off`&&xe(),f=n.default.useContext(we),p=d&&o&&!!f,m=n.default.useRef(null);n.default.useEffect(()=>{let t=e.current;if(!t||!d){u(null);return}let n=()=>{let e=Math.round(t.offsetWidth),n=Math.round(t.offsetHeight);if(!e||!n)return;let r=parseFloat(getComputedStyle(t).borderTopLeftRadius)||0,i=ze(t,`--liquid-refraction`,.8),a=Math.max(0,ze(t,`--liquid-depth`,20)),o=ze(t,`--liquid-dispersion`,0),s=Math.max(0,ze(t,`--liquid-frost`,0)),c=Math.max(0,ze(t,`--liquid-light-intensity`,0)),l=ze(t,`--liquid-light-angle`,-45)*Math.PI/180,d=.8*a,f=Math.max(1,Math.round(Math.min(d,Math.min(e,n)/2))),p=d>0?f/d:0,m={w:e,h:n,radius:r,bezel:f,bend:i*(10.9+1.1*a)*p,spread:.11*o,frost:Math.max(.65,Math.hypot(.47,.45*s)),intensity:c,reach:.75*a*(p||1),lx:Math.sin(l),ly:-Math.cos(l)};u(e=>e&&Object.keys(m).every(t=>e[t]===m[t])?e:m)};n();let r=0,i=new ResizeObserver(()=>{t.offsetWidth*t.offsetHeight>Re?(window.clearTimeout(r),r=window.setTimeout(()=>{n(),je()},90)):(n(),je())});return i.observe(t),()=>{window.clearTimeout(r),i.disconnect()}},[e,d,a]);let h=l?Ce(l):null,g=n.default.useCallback(e=>{let t=e.currentTarget,n=t.getBoundingClientRect();t.style.setProperty(`--mx`,`${e.clientX-n.left}px`),t.style.setProperty(`--my`,`${e.clientY-n.top}px`)},[]),_=d&&!!l&&!!h?.map,v=p&&!!l&&(s===`auto`?l.w*l.h>Re:s),y=n.default.useRef(null),b=n.default.useRef(null),x=n.default.useRef(0);n.default.useLayoutEffect(()=>{let t=e.current;if(!p||!_||!t||!f||!l||!h)return;let n=``,r=0,i=0,a=0,o=(e,t,n,r,i)=>{let a=++x.current;Ie(f.src).then(o=>{let s=y.current,u=document.getElementById(`${c}-bake`);if(a!==x.current||!s||!u)return;let d=Math.min(2,window.devicePixelRatio||1),p=Math.round(l.w*d),m=Math.round(l.h*d),h=document.createElement(`canvas`);h.width=p,h.height=m;let g=h.getContext(`2d`),_=s.getContext(`2d`);if(!g||!_)return;g.scale(d,d),g.translate(e,t);let v=Math.max(n/o.naturalWidth,r/o.naturalHeight),b=o.naturalWidth*v,S=o.naturalHeight*v,[C,w]=Le(f.position);g.drawImage(o,(n-b)*C,(r-S)*w,b,S),i&&i!==`rgba(0, 0, 0, 0)`&&i!==`transparent`&&(g.fillStyle=i,g.fillRect(0,0,n,r)),s.width=p,s.height=m,_.filter=`url(#${c}-bake)`,_.drawImage(h,0,0),_.filter=`none`}).catch(()=>{})};return Ne(()=>{let e=f.rootRef.current,s=m.current;if(!e||!v&&!s||v&&!y.current)return++r<120;let c=t.getBoundingClientRect(),l=e.getBoundingClientRect(),u=t.offsetWidth?c.width/t.offsetWidth:1,d=t.offsetHeight?c.height/t.offsetHeight:1,p=(l.left-c.left)/u,h=(l.top-c.top)/d,g=l.width/u,_=l.height/d,x=``;v&&f.veil&&b.current&&(b.current.style.backgroundColor=f.veil,x=getComputedStyle(b.current).backgroundColor);let S=`${p.toFixed(2)},${h.toFixed(2)},${g.toFixed(2)},${_.toFixed(2)},${x}`;if(S===n)return!1;if(n=S,v){let e=performance.now();clearTimeout(a),e-i>120?(i=e,o(p,h,g,_,x)):a=window.setTimeout(()=>{i=performance.now(),o(p,h,g,_,x)},130)}else s&&(s.style.width=`${g}px`,s.style.height=`${_}px`,s.style.transform=`translate3d(${p}px, ${h}px, 0)`);return!0})},[p,_,f,e,v,l,h,c]);let S=e=>{let t=Array(20).fill(0);return t[e*5+e]=1,t[18]=1,t.join(` `)},C=_&&l&&h?(0,r.jsx)(`svg`,{className:F.defs,width:`0`,height:`0`,"aria-hidden":`true`,focusable:`false`,children:(0,r.jsxs)(`filter`,{id:c,x:`0`,y:`0`,width:l.w,height:l.h,filterUnits:`userSpaceOnUse`,primitiveUnits:`userSpaceOnUse`,colorInterpolationFilters:`sRGB`,children:[(0,r.jsx)(`feImage`,{href:h.map,x:`0`,y:`0`,width:l.w,height:l.h,preserveAspectRatio:`none`,result:`map`}),(0,r.jsx)(`feGaussianBlur`,{in:`SourceGraphic`,stdDeviation:l.frost,edgeMode:`duplicate`,result:`frost`}),[0,1,2].map(e=>(0,r.jsxs)(n.default.Fragment,{children:[(0,r.jsx)(`feDisplacementMap`,{in:`frost`,in2:`map`,scale:2*l.bend*(1+(1-e)*l.spread),xChannelSelector:`R`,yChannelSelector:`G`,result:`d${e}`}),(0,r.jsx)(`feColorMatrix`,{in:`d${e}`,type:`matrix`,values:S(e),result:`c${e}`})]},e)),(0,r.jsx)(`feBlend`,{in:`c0`,in2:`c1`,mode:`screen`,result:`c01`}),(0,r.jsx)(`feBlend`,{in:`c01`,in2:`c2`,mode:`screen`,result:`bent`}),l.intensity>0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`feImage`,{href:h.light,x:`0`,y:`0`,width:l.w,height:l.h,preserveAspectRatio:`none`,result:`light`}),(0,r.jsx)(`feComposite`,{in:`bent`,in2:`light`,operator:`arithmetic`,k1:0,k2:1,k3:1,k4:-128/255})]})]})}):null,w=typeof window<`u`?Math.min(2,window.devicePixelRatio||1):1,T=v&&l&&h?(()=>{let e=Math.round(l.w*w),t=Math.round(l.h*w);return(0,r.jsx)(`svg`,{className:F.defs,width:`0`,height:`0`,"aria-hidden":`true`,focusable:`false`,children:(0,r.jsxs)(`filter`,{id:`${c}-bake`,x:`0`,y:`0`,width:e,height:t,filterUnits:`userSpaceOnUse`,primitiveUnits:`userSpaceOnUse`,colorInterpolationFilters:`sRGB`,children:[(0,r.jsx)(`feImage`,{href:h.map,x:`0`,y:`0`,width:e,height:t,preserveAspectRatio:`none`,result:`map`}),(0,r.jsx)(`feGaussianBlur`,{in:`SourceGraphic`,stdDeviation:l.frost*w,edgeMode:`duplicate`,result:`frost`}),[0,1,2].map(e=>(0,r.jsxs)(n.default.Fragment,{children:[(0,r.jsx)(`feDisplacementMap`,{in:`frost`,in2:`map`,scale:2*l.bend*w*(1+(1-e)*l.spread),xChannelSelector:`R`,yChannelSelector:`G`,result:`d${e}`}),(0,r.jsx)(`feColorMatrix`,{in:`d${e}`,type:`matrix`,values:S(e),result:`c${e}`})]},e)),(0,r.jsx)(`feBlend`,{in:`c0`,in2:`c1`,mode:`screen`,result:`c01`}),(0,r.jsx)(`feBlend`,{in:`c01`,in2:`c2`,mode:`screen`,result:`bent`}),l.intensity>0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`feImage`,{href:h.light,x:`0`,y:`0`,width:e,height:t,preserveAspectRatio:`none`,result:`light`}),(0,r.jsx)(`feComposite`,{in:`bent`,in2:`light`,operator:`arithmetic`,k1:0,k2:1,k3:1,k4:-128/255})]})]})})})():null;return{filter:_&&p&&f?v?(0,r.jsxs)(r.Fragment,{children:[T,(0,r.jsxs)(`span`,{className:F.sourceClip,"aria-hidden":`true`,children:[(0,r.jsx)(`canvas`,{ref:y,className:F.sourceCanvas}),(0,r.jsx)(`span`,{ref:b,className:F.probe})]}),(0,r.jsx)(`span`,{className:F.fill,"aria-hidden":`true`})]}):(0,r.jsxs)(r.Fragment,{children:[C,(0,r.jsx)(`span`,{className:F.sourceClip,"aria-hidden":`true`,children:(0,r.jsx)(`span`,{className:F.source,style:{filter:`url(#${c})`},children:(0,r.jsx)(`span`,{ref:m,className:F.sourceImage,style:{backgroundImage:f.image,backgroundSize:f.size,backgroundPosition:f.position}})})}),(0,r.jsx)(`span`,{className:F.fill,"aria-hidden":`true`})]}):C,refracting:_,props:{"data-surface":`liquid`,"data-refraction":_?p?`source`:`on`:`off`,style:_&&!p?{backdropFilter:`url(#${c})`}:void 0,onPointerMove:g}}}var Ve=e=>{if(!e)return{};let t={};return e.refraction!==void 0&&(t[`--liquid-refraction`]=e.refraction),e.depth!==void 0&&(t[`--liquid-depth`]=e.depth),e.dispersion!==void 0&&(t[`--liquid-dispersion`]=e.dispersion),e.frost!==void 0&&(t[`--liquid-frost`]=e.frost),e.lightIntensity!==void 0&&(t[`--liquid-light-intensity`]=e.lightIntensity),e.lightAngle!==void 0&&(t[`--liquid-light-angle`]=e.lightAngle),t},He=n.default.forwardRef(({variant:e=`regular`,tint:t=`auto`,radius:i=20,refraction:a=`auto`,effect:o,source:s=!0,bake:c=`auto`,interactive:l,reducedTransparency:u=`respect`,className:d,style:f,children:p,onPointerMove:m,...h},g)=>{let _=n.default.useRef(null),v=e=>{_.current=e,typeof g==`function`?g(e):g&&(g.current=e)},y=Be(_,{refraction:a,source:s,bake:c,watch:o?JSON.stringify(o):``});return(0,r.jsxs)(`div`,{ref:v,...h,...y.props,"data-bare":p==null||p===!1?``:void 0,"data-reduced-transparency":u===`ignore`?`ignore`:void 0,className:[F.liquid,F[e],t===`auto`?``:F[`tint-${t}`],l?F.interactive:``,d??``].filter(Boolean).join(` `),style:{borderRadius:i,...Ve(o),...y.props.style,...f},onPointerMove:e=>{y.props.onPointerMove(e),m?.(e)},children:[y.filter,p]})});He.displayName=`LiquidGlass`;var Ue=(e=`regular`,t=`auto`)=>[F.liquid,F[e],t===`auto`?``:F[`tint-${t}`]].filter(Boolean).join(` `),We={"divider--horizontal":`_divider--horizontal_nem37_4`,"divider--labeled":`_divider--labeled_nem37_13`,"divider--vertical":`_divider--vertical_nem37_27`,divider__label:`_divider__label_nem37_38`},Ge=({orientation:e=`horizontal`,label:t,className:n})=>(0,r.jsx)(`div`,{role:`separator`,"aria-orientation":e,className:[We.divider,We[`divider--${e}`],t?We[`divider--labeled`]:``,n??``].filter(Boolean).join(` `),children:t&&e===`horizontal`&&(0,r.jsx)(`span`,{className:We.divider__label,children:t})}),I={backdrop:`_backdrop_13dud_1`,card:`_card_13dud_12`,header:`_header_13dud_34`,titleGroup:`_titleGroup_13dud_42`,iconWrap:`_iconWrap_13dud_49`,icon:`_icon_13dud_49`,title:`_title_13dud_42`,description:`_description_13dud_75`,footer:`_footer_13dud_83`,"footer--between":`_footer--between_13dud_94`,"backdrop--entering":`_backdrop--entering_13dud_112`,"sakani-modal-backdrop-in":`_sakani-modal-backdrop-in_13dud_1`,"backdrop--exiting":`_backdrop--exiting_13dud_113`,"sakani-modal-backdrop-out":`_sakani-modal-backdrop-out_13dud_1`,"card--entering":`_card--entering_13dud_114`,"sakani-modal-card-in":`_sakani-modal-card-in_13dud_1`,"card--exiting":`_card--exiting_13dud_115`,"sakani-modal-card-out":`_sakani-modal-card-out_13dud_1`},Ke=({open:e,onClose:i,title:s,description:c,variant:l=`default`,icon:u,cancelLabel:d=`Cancel`,confirmLabel:f,onCancel:p,onConfirm:m,confirmLoading:h,closeOnEscape:g=!0,closeOnBackdropClick:_=!0,children:v,hideHeader:y=!1,hideFooterDivider:b=!1,footerJustify:x=`end`,className:S})=>{let w=l===`destructive`,T=n.default.useRef(null),E=n.default.useRef(null),D=n.default.useRef(null),O=ye(D,e),k=be(D,e),A=k===`liquid`,ee=Be(T,{enabled:A,source:!1}),[te,ne]=n.default.useState(!1);n.default.useEffect(()=>{e&&ne(!0)},[e]),n.default.useEffect(()=>{if(e||!te)return;let t=setTimeout(()=>ne(!1),240);return()=>clearTimeout(t)},[e,te]),n.default.useEffect(()=>{if(!e)return;let t=e=>{if(g&&e.key===`Escape`){i();return}if(e.key!==`Tab`||!T.current)return;let t=T.current.querySelectorAll(`button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])`);if(t.length===0)return;let n=t[0],r=t[t.length-1];e.shiftKey&&document.activeElement===n?(e.preventDefault(),r.focus()):!e.shiftKey&&document.activeElement===r&&(e.preventDefault(),n.focus())};return document.addEventListener(`keydown`,t),()=>document.removeEventListener(`keydown`,t)},[e,g,i]),n.default.useEffect(()=>{if(!e)return;E.current=document.activeElement;let t=document.body.style.overflow;return document.body.style.overflow=`hidden`,T.current?.focus(),()=>{document.body.style.overflow=t,E.current?.focus()}},[e]);let re=()=>(p??i)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`span`,{ref:D,style:{display:`none`},"aria-hidden":`true`}),te&&(0,a.createPortal)((0,r.jsx)(`div`,{className:[I.backdrop,O,e?I[`backdrop--entering`]:I[`backdrop--exiting`]].filter(Boolean).join(` `),"data-surface":k,onMouseDown:e=>{_&&e.target===e.currentTarget&&i()},children:(0,r.jsxs)(`div`,{ref:T,role:`alertdialog`,"aria-modal":`true`,"aria-labelledby":y?void 0:`modal-title`,"aria-label":y?s:void 0,tabIndex:-1,className:[I.card,A?Ue(`regular`):``,e?I[`card--entering`]:I[`card--exiting`],S??``].filter(Boolean).join(` `),...A?ee.props:{},onAnimationEnd:t=>{t.target===t.currentTarget&&!e&&ne(!1)},children:[A&&ee.filter,!y&&(0,r.jsxs)(`div`,{className:I.header,children:[(0,r.jsxs)(`div`,{className:I.titleGroup,children:[w&&(0,r.jsx)(`span`,{className:I.iconWrap,"aria-hidden":`true`,children:u??(0,r.jsx)(t.G,{size:24,strokeWidth:o(24),className:I.icon})}),(0,r.jsx)(`p`,{id:`modal-title`,className:I.title,children:s})]}),(0,r.jsx)(C,{icon:t.W,variant:`ghost`,size:`lg`,"aria-label":`Close`,onClick:i})]}),c&&(0,r.jsx)(`p`,{className:I.description,children:c}),v,!b&&(0,r.jsx)(Ge,{}),(0,r.jsxs)(`div`,{className:[I.footer,x===`between`?I[`footer--between`]:``].filter(Boolean).join(` `),children:[(0,r.jsx)(M,{variant:`secondary`,onClick:re,style:{borderColor:`transparent`},children:d}),(0,r.jsx)(M,{variant:w?`destructive`:`primary`,onClick:m,loading:h,children:f??(w?`Delete`:`Confirm`)})]})]})}),document.body)]})},L={row:`_row_88l3n_2`,"row--unread":`_row--unread_88l3n_12`,iconWrapSurface:`_iconWrapSurface_88l3n_17`,iconWrapCanvas:`_iconWrapCanvas_88l3n_18`,content:`_content_88l3n_31`,titleBold:`_titleBold_88l3n_39`,titleMuted:`_titleMuted_88l3n_46`,timestamp:`_timestamp_88l3n_53`,dot:`_dot_88l3n_62`,card:`_card_88l3n_71`,cardTop:`_cardTop_88l3n_87`,description:`_description_88l3n_94`,actions:`_actions_88l3n_102`},qe=({icon:e,title:n,timestamp:i,read:a=!1,description:s,onDismiss:c,dismissLabel:l=`Dismiss`,actionLabel:u,onAction:d,className:f})=>{let p=s!==void 0,m=!a&&!p,h=e??(0,r.jsx)(t.L,{size:24,strokeWidth:o(24)});return p?(0,r.jsxs)(`div`,{className:[L.card,f??``].filter(Boolean).join(` `),children:[(0,r.jsxs)(`div`,{className:L.cardTop,children:[(0,r.jsx)(`span`,{className:L.iconWrapCanvas,"aria-hidden":`true`,children:h}),(0,r.jsxs)(`div`,{className:L.content,children:[(0,r.jsx)(`p`,{className:L.titleBold,children:n}),(0,r.jsx)(`p`,{className:L.description,children:s})]}),c&&(0,r.jsx)(C,{icon:t.W,variant:`ghost`,size:`sm`,"aria-label":`Close`,onClick:c})]}),(0,r.jsxs)(`div`,{className:L.actions,children:[c&&(0,r.jsx)(M,{variant:`ghost`,size:`sm`,onClick:c,children:l}),u&&(0,r.jsx)(M,{variant:`secondary`,size:`sm`,onClick:d,style:{borderColor:`transparent`},children:u})]})]}):(0,r.jsxs)(`div`,{className:[L.row,m?L[`row--unread`]:``].filter(Boolean).join(` `),children:[(0,r.jsx)(`span`,{className:L.iconWrapSurface,"aria-hidden":`true`,children:h}),(0,r.jsxs)(`div`,{className:L.content,children:[(0,r.jsx)(`p`,{className:m?L.titleBold:L.titleMuted,children:n}),i&&(0,r.jsx)(`p`,{className:L.timestamp,children:i})]}),m&&(0,r.jsx)(`span`,{className:L.dot,"aria-hidden":`true`})]})},Je={stat:`_stat_krs8c_1`,labelRow:`_labelRow_krs8c_10`,label:`_label_krs8c_10`,value:`_value_krs8c_27`},Ye=({label:e,value:t,progress:n,className:i})=>(0,r.jsxs)(`div`,{className:[Je.stat,i??``].filter(Boolean).join(` `),children:[(0,r.jsxs)(`div`,{className:Je.labelRow,children:[(0,r.jsx)(`p`,{className:Je.label,children:e}),(0,r.jsx)(`p`,{className:Je.value,children:t})]}),(0,r.jsx)(_e,{value:n,size:`lg`,label:e})]}),Xe={balance:`_balance_5gcu5_1`,label:`_label_5gcu5_10`,amountRow:`_amountRow_5gcu5_19`,amount:`_amount_5gcu5_19`,limit:`_limit_5gcu5_34`,track:`_track_5gcu5_43`,fill:`_fill_5gcu5_50`,"fill--over":`_fill--over_5gcu5_57`,footer:`_footer_5gcu5_61`},Ze=e=>e.toLocaleString(`en-US`,{style:`currency`,currency:`USD`}),Qe=({label:e=`Spent this month`,spent:t,limit:n,formatAmount:i=Ze,className:a})=>{let o=t>n,s=o?100:n>0?t/n*100:0,c=o?`${i(t-n)} over your limit`:`${i(n-t)} remaining`;return(0,r.jsxs)(`div`,{className:[Xe.balance,a??``].filter(Boolean).join(` `),children:[(0,r.jsx)(`p`,{className:Xe.label,children:e}),(0,r.jsxs)(`div`,{className:Xe.amountRow,children:[(0,r.jsx)(`p`,{className:Xe.amount,children:i(t)}),(0,r.jsxs)(`p`,{className:Xe.limit,children:[`of `,i(n),` limit`]})]}),(0,r.jsx)(`div`,{className:Xe.track,role:`progressbar`,"aria-label":e,"aria-valuenow":Math.round(s),"aria-valuemin":0,"aria-valuemax":100,children:(0,r.jsx)(`div`,{className:[Xe.fill,o?Xe[`fill--over`]:``].filter(Boolean).join(` `),style:{width:`${s}%`}})}),(0,r.jsx)(`p`,{className:Xe.footer,children:c})]})};function $e(e){let[,t]=(0,n.useState)(0);return(0,n.useEffect)(()=>{if(typeof document>`u`)return;t(e=>e+1);let n=new MutationObserver(()=>t(e=>e+1)),r=new Set([document.documentElement]);for(let t=e.current;t;t=t.parentElement)r.add(t);return r.forEach(e=>n.observe(e,{attributes:!0,attributeFilter:[`class`]})),()=>n.disconnect()},[e]),t=>{if(typeof window>`u`)return;let n=e.current??document.documentElement;return getComputedStyle(n).getPropertyValue(t).trim()||void 0}}var et=[`#ff4700`,`#5b92dd`,`#47a8a2`,`#9179d6`,`#dca84f`,`#12b76a`],tt={tooltip:`_tooltip_ic16u_3`,title:`_title_ic16u_23`,row:`_row_ic16u_27`,dot:`_dot_ic16u_34`,label:`_label_ic16u_41`,value:`_value_ic16u_42`},nt=({active:e,payload:t,label:n,formatter:i})=>!e||!t||t.length===0?null:(0,r.jsxs)(`div`,{className:tt.tooltip,children:[n!==void 0&&n!==``&&(0,r.jsx)(`span`,{className:tt.title,children:n}),t.map((e,t)=>(0,r.jsxs)(`div`,{className:tt.row,children:[(0,r.jsx)(`span`,{className:tt.dot,style:{background:e.color??e.payload?.fill??e.fill}}),(0,r.jsx)(`span`,{className:tt.label,children:e.name}),(0,r.jsx)(`span`,{className:tt.value,children:i?i(e.value,e.name):e.value})]},t))]}),rt={chart:`_chart_1s6lv_2`,legend:`_legend_1s6lv_31`,legendItem:`_legendItem_1s6lv_41`,legendSwatch:`_legendSwatch_1s6lv_46`},it={sm:180,md:240,lg:320,xl:420},R=6,at=e=>{if(e<=0)return 1;let t=10**Math.floor(Math.log10(e)),n=e/t;return(n<=1?1:n<=2?2:n<=5?5:10)*t},ot=({data:e,variant:t=`default`,size:a=`md`,seriesLabels:o=[`Value`,`Value 2`],className:s})=>{let[c,l]=n.default.useState(null),[u,d]=n.default.useState(null),f=n.default.useRef(null),p=$e(f),m=p(`--color-chart-2`)??`#5b92dd`,h=p(`--color-chart-5`)??`#dca84f`,g=p(`--color-chart-1`)??`#ff4700`,_=[1,2,3,4,5,6].map(e=>p(`--color-chart-${e}`)??et[e-1]),v=p(`--color-border-subtle`)??`#e7e5e1`,y=p(`--color-fg-muted`)??`#78716a`,b=t===`multiple`||t===`stacked`,x=b&&e.some(e=>e.value2!==void 0),S=p(`--color-bg-canvas`)??`#fafaf9`,C=at(Math.max(1,...e.map(e=>Math.abs(e.value)))),w=[-C,-C/2,0,C/2,C],T=(0,r.jsx)(i.Tooltip,{cursor:!1,content:(0,r.jsx)(nt,{}),wrapperStyle:{zIndex:50},position:u?{y:u.y}:void 0}),E=n=>t===`active`?_[n%_.length]:t===`negative`&&e[n].value<0?g:m,D=e=>c!==null&&e!==c?.45:1,O=(e,t,n,r,i,a)=>({x:e?t+r:t+r/2,y:e?n+i/2:a<0?n+i:n}),k=n=>a=>{let{x:o,y:s,width:c,height:l,fill:u,radius:d}=a,f=Number(e[a.index]?.[n]??0),{x:p,y:h}=O(t===`horizontal`,o,s,c,l,f);return t===`stacked`&&n===`value`?(0,r.jsx)(i.Rectangle,{x:o,y:s,width:c,height:l,fill:u,radius:d}):(0,r.jsxs)(`g`,{children:[(0,r.jsx)(i.Rectangle,{x:o,y:s,width:c,height:l,fill:u,radius:d}),(0,r.jsx)(`circle`,{cx:p,cy:h,r:4,fill:u,stroke:S,strokeWidth:1.5}),t===`stacked`&&n===`value2`&&(0,r.jsx)(`circle`,{cx:o+c/2,cy:s+l,r:4,fill:m,stroke:S,strokeWidth:1.5})]})},A=n=>(r,i)=>{l(i);let a=Number(e[i]?.[n]??0);d(O(t===`horizontal`,r.x,r.y,r.width,r.height,a))},ee=()=>{l(null),d(null)};return(0,r.jsx)(`div`,{ref:f,className:[rt.chart,s??``].filter(Boolean).join(` `),children:(0,r.jsx)(i.ResponsiveContainer,{width:`100%`,height:it[a],children:(0,r.jsxs)(i.BarChart,{data:e,layout:t===`horizontal`?`vertical`:`horizontal`,margin:{top:8,right:8,bottom:8,left:t===`horizontal`?8:0},children:[(0,r.jsx)(i.CartesianGrid,{strokeDasharray:`3 3`,stroke:v,horizontal:!0,vertical:t===`horizontal`}),t===`horizontal`?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.XAxis,{type:`number`,stroke:y,fontSize:12,tickLine:!1,axisLine:!1}),(0,r.jsx)(i.YAxis,{type:`category`,dataKey:`label`,stroke:y,fontSize:12,tickLine:!1,axisLine:!1,width:64})]}):(0,r.jsx)(i.XAxis,{dataKey:`label`,stroke:y,fontSize:12,tickLine:!1,axisLine:!1,interval:0}),t===`negative`&&(0,r.jsx)(i.YAxis,{hide:!0,domain:[-C,C],ticks:w}),T,b&&(0,r.jsx)(i.Legend,{content:e=>(0,r.jsx)(`ul`,{className:rt.legend,children:e.payload?.map(e=>(0,r.jsxs)(`li`,{className:rt.legendItem,children:[(0,r.jsx)(`span`,{className:rt.legendSwatch,style:{background:e.color}}),(0,r.jsx)(`span`,{style:{color:e.color},children:e.value})]},e.value))})}),b?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.Bar,{dataKey:`value`,name:o[0]??`Value`,fill:m,stackId:t===`stacked`?`stack`:void 0,radius:t===`stacked`?[0,0,R,R]:[R,R,R,R],isAnimationActive:!1,activeBar:k(`value`),onMouseEnter:A(`value`),onMouseLeave:ee,children:e.map((e,t)=>(0,r.jsx)(i.Cell,{fill:m,fillOpacity:c!==null&&t!==c?.45:1},t))}),x&&(0,r.jsx)(i.Bar,{dataKey:`value2`,name:o[1]??`Value 2`,fill:h,stackId:t===`stacked`?`stack`:void 0,radius:t===`stacked`?[R,R,0,0]:[R,R,R,R],isAnimationActive:!1,activeBar:k(`value2`),onMouseEnter:A(`value2`),onMouseLeave:ee,children:e.map((e,t)=>(0,r.jsx)(i.Cell,{fill:h,fillOpacity:c!==null&&t!==c?.45:1},t))})]}):(0,r.jsx)(i.Bar,{dataKey:`value`,name:`Value`,fill:c===null?m:E(c),radius:[R,R,R,R],isAnimationActive:!1,activeBar:k(`value`),onMouseEnter:A(`value`),onMouseLeave:ee,children:e.map((e,t)=>(0,r.jsx)(i.Cell,{fill:E(t),fillOpacity:D(t)},t))})]})})})},st={badge:`_badge_a5a38_6`,"badge--neutral-subtle":`_badge--neutral-subtle_a5a38_20`,"badge--neutral-solid":`_badge--neutral-solid_a5a38_21`,"badge--accent-subtle":`_badge--accent-subtle_a5a38_24`,"badge--accent-solid":`_badge--accent-solid_a5a38_25`,"badge--success-subtle":`_badge--success-subtle_a5a38_28`,"badge--success-solid":`_badge--success-solid_a5a38_29`,"badge--warning-subtle":`_badge--warning-subtle_a5a38_32`,"badge--warning-solid":`_badge--warning-solid_a5a38_33`,"badge--danger-subtle":`_badge--danger-subtle_a5a38_36`,"badge--danger-solid":`_badge--danger-solid_a5a38_37`,"badge--info-subtle":`_badge--info-subtle_a5a38_40`,"badge--info-solid":`_badge--info-solid_a5a38_41`,badge__icon:`_badge__icon_a5a38_44`,badge__label:`_badge__label_a5a38_45`},ct=({variant:e=`neutral`,emphasis:t=`subtle`,leftIcon:n,rightIcon:i,children:a,className:o})=>(0,r.jsxs)(`span`,{className:[st.badge,st[`badge--${e}-${t}`],o??``].filter(Boolean).join(` `),children:[n&&(0,r.jsx)(`span`,{className:st.badge__icon,"aria-hidden":`true`,children:n}),(0,r.jsx)(`span`,{className:st.badge__label,children:a}),i&&(0,r.jsx)(`span`,{className:st.badge__icon,"aria-hidden":`true`,children:i})]}),z={stepper:`_stepper_fjzlj_1`,stepBtn:`_stepBtn_fjzlj_10`,stepDivider:`_stepDivider_fjzlj_27`,stepValue:`_stepValue_fjzlj_39`,stepInput:`_stepInput_fjzlj_61`,stepInputResting:`_stepInputResting_fjzlj_75`,rollOverlay:`_rollOverlay_fjzlj_58`,rollOverlayHidden:`_rollOverlayHidden_fjzlj_92`,roll:`_roll_fjzlj_35`,rollNum:`_rollNum_fjzlj_35`,rollOutUp:`_rollOutUp_fjzlj_130`,"roll-out-up":`_roll-out-up_fjzlj_1`,rollInUp:`_rollInUp_fjzlj_131`,"roll-in-up":`_roll-in-up_fjzlj_1`,rollOutDown:`_rollOutDown_fjzlj_132`,"roll-out-down":`_roll-out-down_fjzlj_1`,rollInDown:`_rollInDown_fjzlj_133`,"roll-in-down":`_roll-in-down_fjzlj_1`},lt=({value:e})=>{let t=n.default.useRef(e),[i,a]=n.default.useState(null);return e!==t.current&&(a({value:t.current,direction:e>t.current?`up`:`down`}),t.current=e),n.default.useEffect(()=>{if(!i)return;let e=setTimeout(()=>a(null),260);return()=>clearTimeout(e)},[i]),(0,r.jsxs)(`span`,{className:z.roll,children:[i&&(0,r.jsx)(`span`,{className:[z.rollNum,i.direction===`up`?z.rollOutUp:z.rollOutDown].join(` `),"aria-hidden":`true`,children:i.value},`out-${i.value}`),(0,r.jsx)(`span`,{className:[z.rollNum,i?i.direction===`up`?z.rollInUp:z.rollInDown:``].filter(Boolean).join(` `),onAnimationEnd:()=>a(null),children:e},`in-${e}`)]})},ut=({quantity:e,onQuantityChange:i,min:a=1,max:s,label:c=`Quantity`,className:l})=>{let u=e>a,d=s===void 0||e<s,f=n.default.useRef(null),[p,m]=n.default.useState(!1),[h,g]=n.default.useState(String(e)),_=e=>{let t=e;return a!==void 0&&(t=Math.max(a,t)),s!==void 0&&(t=Math.min(s,t)),t};return(0,r.jsxs)(`div`,{className:[z.stepper,l??``].filter(Boolean).join(` `),role:`group`,"aria-label":c,children:[(0,r.jsx)(`button`,{type:`button`,className:z.stepBtn,disabled:!u,onClick:()=>i?.(Math.max(a,e-1)),"aria-label":`Decrease quantity`,children:(0,r.jsx)(t.P,{size:14,strokeWidth:o(14)})}),(0,r.jsx)(`span`,{className:z.stepDivider,"aria-hidden":`true`}),(0,r.jsxs)(`span`,{className:z.stepValue,children:[(0,r.jsx)(`input`,{ref:f,type:`text`,inputMode:`numeric`,size:Math.max((p?h:String(e)).length,1),className:[z.stepInput,p?``:z.stepInputResting].filter(Boolean).join(` `),value:p?h:String(e),"aria-label":c,onFocus:t=>{g(String(e)),m(!0),t.target.select()},onChange:e=>g(e.target.value.replace(/\D/g,``)),onBlur:()=>{m(!1);let t=Number.parseInt(h,10);if(!Number.isNaN(t)){let n=_(t);n!==e&&i?.(n)}},onKeyDown:t=>{t.key===`Enter`&&(t.preventDefault(),f.current?.blur()),t.key===`Escape`&&(g(String(e)),f.current?.blur())}}),(0,r.jsx)(`span`,{className:[z.rollOverlay,p?z.rollOverlayHidden:``].filter(Boolean).join(` `),"aria-hidden":`true`,children:(0,r.jsx)(lt,{value:e})})]}),(0,r.jsx)(`span`,{className:z.stepDivider,"aria-hidden":`true`}),(0,r.jsx)(`button`,{type:`button`,className:z.stepBtn,disabled:!d,onClick:()=>i?.(s===void 0?e+1:Math.min(s,e+1)),"aria-label":`Increase quantity`,children:(0,r.jsx)(t.N,{size:14,strokeWidth:o(14)})})]})},dt={item:`_item_15jww_1`,thumb:`_thumb_15jww_11`,info:`_info_15jww_19`,name:`_name_15jww_28`,variant:`_variant_15jww_40`,right:`_right_15jww_50`,price:`_price_15jww_58`,priceRow:`_priceRow_15jww_67`,priceOriginal:`_priceOriginal_15jww_75`,priceSale:`_priceSale_15jww_80`},ft=e=>e.toLocaleString(`en-US`,{style:`currency`,currency:`USD`}),pt=({image:e,imageAlt:n,name:i,variant:a,price:o,compareAtPrice:s,quantity:c,onQuantityChange:l,minQuantity:u=1,maxQuantity:d,onRemove:f,removeLabel:p=`Remove item`,formatPrice:m=ft,className:h})=>{let g=s!==void 0;return(0,r.jsxs)(`div`,{className:[dt.item,h??``].filter(Boolean).join(` `),children:[(0,r.jsx)(`img`,{src:e,alt:n??i,className:dt.thumb}),(0,r.jsxs)(`div`,{className:dt.info,children:[(0,r.jsx)(`p`,{className:dt.name,children:i}),a&&(0,r.jsx)(`p`,{className:dt.variant,children:a}),(0,r.jsx)(ut,{quantity:c,onQuantityChange:l,min:u,max:d,label:`Quantity for ${i}`})]}),(0,r.jsxs)(`div`,{className:dt.right,children:[g?(0,r.jsxs)(`div`,{className:dt.priceRow,children:[(0,r.jsx)(`span`,{className:dt.priceOriginal,children:m(s)}),(0,r.jsx)(`span`,{className:dt.priceSale,children:m(o)})]}):(0,r.jsx)(`p`,{className:dt.price,children:m(o)}),(0,r.jsx)(C,{icon:t.P,variant:`outline`,size:`sm`,"aria-label":p,onClick:f})]})]})},mt={steps:`_steps_1wqa0_1`,step:`_step_1wqa0_1`,connector:`_connector_1wqa0_22`,circle:`_circle_1wqa0_30`,circleCompleted:`_circleCompleted_1wqa0_41`,circleActive:`_circleActive_1wqa0_45`,circleUpcoming:`_circleUpcoming_1wqa0_50`,label:`_label_1wqa0_56`,labelActive:`_labelActive_1wqa0_63`,labelUpcoming:`_labelUpcoming_1wqa0_66`},ht=[`Cart`,`Shipping`,`Payment`,`Confirmation`],gt=({steps:e=ht,currentStep:i,className:a})=>(0,r.jsx)(`div`,{className:[mt.steps,a??``].filter(Boolean).join(` `),role:`list`,children:e.map((a,s)=>{let c=s<i?`completed`:s===i?`active`:`upcoming`,l=s===e.length-1;return(0,r.jsxs)(n.default.Fragment,{children:[(0,r.jsxs)(`div`,{className:mt.step,role:`listitem`,"aria-current":c===`active`?`step`:void 0,children:[(0,r.jsx)(`span`,{className:[mt.circle,c===`completed`?mt.circleCompleted:``,c===`active`?mt.circleActive:``,c===`upcoming`?mt.circleUpcoming:``].filter(Boolean).join(` `),"aria-hidden":`true`,children:(0,r.jsx)(t.R,{size:14,strokeWidth:o(14)})}),(0,r.jsx)(`span`,{className:[mt.label,c===`active`?mt.labelActive:``,c===`upcoming`?mt.labelUpcoming:``].filter(Boolean).join(` `),children:a})]}),!l&&(0,r.jsx)(`span`,{className:mt.connector,"aria-hidden":`true`})]},a)})}),_t=`#fafaf9`,vt=`#141414`,yt=(e,t,n)=>{let r=e=>{let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};return .2126*r(e)+.7152*r(t)+.0722*r(n)},bt=(e,t)=>{let n=Math.max(e,t),r=Math.min(e,t);return(n+.05)/(r+.05)},xt=e=>{let t=e.trim().toLowerCase(),n=/^#([0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.exec(t);if(n){let e=n[1];return e.length<=4&&(e=e.split(``).map(e=>e+e).join(``)),[0,2,4].map(t=>parseInt(e.slice(t,t+2),16))}let r=/^rgba?\(\s*(\d+(?:\.\d+)?)[\s,]+(\d+(?:\.\d+)?)[\s,]+(\d+(?:\.\d+)?)/.exec(t);return r?[Number(r[1]),Number(r[2]),Number(r[3])]:null},St=(e,t,n)=>{let r=yt(e,t,n),i=bt(r,yt(20,20,20));return bt(r,yt(250,250,249))>=i?_t:vt},Ct=null,wt=e=>{let t=xt(e);if(t)return St(...t);if(typeof document>`u`)return _t;Ct??=document.createElement(`canvas`),Ct.width=1,Ct.height=1;let n=Ct.getContext(`2d`,{willReadFrequently:!0});if(!n)return _t;n.clearRect(0,0,1,1),n.fillStyle=e,n.fillRect(0,0,1,1);let[r,i,a]=n.getImageData(0,0,1,1).data;return St(r,i,a)},Tt={swatch:`_swatch_1ykgu_1`,circle:`_circle_1ykgu_24`,circleUnavailable:`_circleUnavailable_1ykgu_34`,ring:`_ring_1ykgu_41`,check:`_check_1ykgu_57`,strike:`_strike_1ykgu_70`},Et=({color:e,label:i,selected:a=!1,available:s=!0,onSelect:c,className:l})=>{let u=n.default.useMemo(()=>wt(e),[e]);return(0,r.jsxs)(`button`,{type:`button`,className:[Tt.swatch,l??``].filter(Boolean).join(` `),style:{"--swatch-color":e},disabled:!s,"aria-pressed":s?a:void 0,"aria-label":s?i:`${i} (out of stock)`,onClick:c,children:[a&&s&&(0,r.jsx)(`span`,{className:Tt.ring,"aria-hidden":`true`}),(0,r.jsx)(`span`,{className:[Tt.circle,s?``:Tt.circleUnavailable].filter(Boolean).join(` `),"aria-hidden":`true`}),a&&s&&(0,r.jsx)(t.R,{size:14,strokeWidth:o(14),className:Tt.check,style:{color:u},"aria-hidden":`true`}),!s&&(0,r.jsx)(`span`,{className:Tt.strike,style:{background:u},"aria-hidden":`true`})]})},Dt={row:`_row_1r4ef_1`,original:`_original_1r4ef_8`,price:`_price_1r4ef_17`,priceSale:`_priceSale_1r4ef_24`},Ot=e=>e.toLocaleString(`en-US`,{style:`currency`,currency:`USD`}),kt=({price:e,compareAtPrice:t,showBadge:n=!1,formatPrice:i=Ot,className:a})=>{let o=t!==void 0,s=o?Math.ceil((1-e/t)*100):0;return(0,r.jsxs)(`div`,{className:[Dt.row,a??``].filter(Boolean).join(` `),children:[o&&(0,r.jsx)(`span`,{className:Dt.original,children:i(t)}),(0,r.jsx)(`span`,{className:[Dt.price,o?Dt.priceSale:``].filter(Boolean).join(` `),children:i(e)}),o&&n&&(0,r.jsxs)(ct,{variant:`danger`,emphasis:`solid`,children:[`Save `,s,`%`]})]})},At={button:`_button_eaoe3_1`,icon:`_icon_eaoe3_26`,iconSaved:`_iconSaved_eaoe3_29`,bounce:`_bounce_eaoe3_42`,"wishlist-bounce":`_wishlist-bounce_eaoe3_1`},jt=({saved:e=!1,onToggle:i,label:a=`item`,className:s})=>{let[c,l]=n.default.useState(!1);return(0,r.jsx)(`button`,{type:`button`,className:[At.button,s??``].filter(Boolean).join(` `),"aria-pressed":e,"aria-label":e?`Remove ${a} from wishlist`:`Add ${a} to wishlist`,onClick:()=>{e||l(!0),i?.(!e)},children:(0,r.jsx)(t.j,{size:16,strokeWidth:o(16),className:[e?At.iconSaved:At.icon,c?At.bounce:``].filter(Boolean).join(` `),fill:e?`currentColor`:`none`,onAnimationEnd:()=>l(!1)})})},B={card:`_card_r8iyr_1`,imageWrap:`_imageWrap_r8iyr_16`,image:`_image_r8iyr_16`,imageDimmed:`_imageDimmed_r8iyr_35`,saleBadge:`_saleBadge_r8iyr_39`,wishlistBtn:`_wishlistBtn_r8iyr_45`,outOfStockLabel:`_outOfStockLabel_r8iyr_51`,body:`_body_r8iyr_64`,rating:`_rating_r8iyr_75`,starFilled:`_starFilled_r8iyr_80`,starEmpty:`_starEmpty_r8iyr_81`,titleRow:`_titleRow_r8iyr_83`,name:`_name_r8iyr_90`,priceRow:`_priceRow_r8iyr_103`,priceOriginal:`_priceOriginal_r8iyr_109`,price:`_price_r8iyr_103`,description:`_description_r8iyr_125`,swatches:`_swatches_r8iyr_138`,addButton:`_addButton_r8iyr_146`},Mt=e=>e.toLocaleString(`en-US`,{style:`currency`,currency:`USD`}),Nt=({image:e,imageAlt:n,name:i,description:a,price:s,compareAtPrice:c,rating:l,reviewCount:u,colors:d=[],onColorSelect:f,inStock:p=!0,wishlisted:m=!1,onWishlistToggle:h,onAddItem:g,addItemLabel:_=`Add Item`,formatPrice:v=Mt,className:y})=>{let b=c!==void 0,x=b?Math.ceil((1-s/c)*100):0,S=l===void 0?0:Math.round(l);return(0,r.jsxs)(`div`,{className:[B.card,y??``].filter(Boolean).join(` `),children:[(0,r.jsxs)(`div`,{className:B.imageWrap,children:[(0,r.jsx)(`img`,{src:e,alt:n??i,className:[B.image,p?``:B.imageDimmed].filter(Boolean).join(` `)}),b&&p&&(0,r.jsxs)(ct,{variant:`danger`,emphasis:`solid`,className:B.saleBadge,children:[`-`,x,`%`]}),p&&(0,r.jsx)(jt,{saved:m,label:i,className:B.wishlistBtn,onToggle:h}),!p&&(0,r.jsx)(`span`,{className:B.outOfStockLabel,children:`Out of stock`})]}),(0,r.jsxs)(`div`,{className:B.body,children:[l!==void 0&&(0,r.jsx)(`div`,{className:B.rating,role:`img`,"aria-label":`Rated ${l} out of 5${u?` (${u} reviews)`:``}`,children:Array.from({length:5}).map((e,n)=>(0,r.jsx)(t.M,{size:16,strokeWidth:o(16),className:n<S?B.starFilled:B.starEmpty,fill:n<S?`currentColor`:`none`},n))}),(0,r.jsxs)(`div`,{className:B.titleRow,children:[(0,r.jsx)(`p`,{className:B.name,children:i}),(0,r.jsxs)(`div`,{className:B.priceRow,children:[b&&(0,r.jsx)(`span`,{className:B.priceOriginal,children:v(c)}),(0,r.jsx)(`span`,{className:B.price,children:v(s)})]})]}),a&&(0,r.jsx)(`p`,{className:B.description,children:a}),d.length>0&&(0,r.jsx)(`div`,{className:B.swatches,role:`group`,"aria-label":`Color`,children:d.map(e=>(0,r.jsx)(Et,{...e,onSelect:()=>f?.(e.id??e.label)},e.id??e.label))}),(0,r.jsx)(M,{variant:`primary`,size:`md`,disabled:!p,className:B.addButton,onClick:g,children:p?_:`Out of stock`})]})]})},V={gallery:`_gallery_1ib10_1`,galleryBottom:`_galleryBottom_1ib10_5`,galleryLeft:`_galleryLeft_1ib10_10`,mainImage:`_mainImage_1ib10_16`,mainBottom:`_mainBottom_1ib10_23`,mainLeft:`_mainLeft_1ib10_31`,thumbs:`_thumbs_1ib10_41`,thumbsBottom:`_thumbsBottom_1ib10_45`,thumbsLeft:`_thumbsLeft_1ib10_53`,thumb:`_thumb_1ib10_41`,thumbBottom:`_thumbBottom_1ib10_68`,thumbLeft:`_thumbLeft_1ib10_78`,thumbActive:`_thumbActive_1ib10_83`,thumbImage:`_thumbImage_1ib10_87`},Pt=({images:e,thumbsPosition:t=`bottom`,activeIndex:i,defaultActiveIndex:a=0,onActiveIndexChange:o,className:s})=>{let c=i!==void 0,[l,u]=n.default.useState(a),d=c?i:l,f=e=>{c||u(e),o?.(e)},p=e[d]??e[0],m=t===`left`,h=(0,r.jsx)(`div`,{className:[V.thumbs,m?V.thumbsLeft:V.thumbsBottom].filter(Boolean).join(` `),role:`tablist`,"aria-label":`Product images`,children:e.map((e,t)=>(0,r.jsx)(`button`,{type:`button`,role:`tab`,"aria-selected":t===d,"aria-label":e.alt??`Image ${t+1}`,className:[V.thumb,m?V.thumbLeft:V.thumbBottom,t===d?V.thumbActive:``].filter(Boolean).join(` `),onClick:()=>f(t),children:(0,r.jsx)(`img`,{src:e.src,alt:``,className:V.thumbImage})},e.src+t))});return(0,r.jsxs)(`div`,{className:[V.gallery,m?V.galleryLeft:V.galleryBottom,s??``].filter(Boolean).join(` `),children:[!m&&p&&(0,r.jsx)(`div`,{className:V.mainBottom,children:(0,r.jsx)(`img`,{src:p.src,alt:p.alt??``,className:V.mainImage})}),h,m&&p&&(0,r.jsx)(`div`,{className:V.mainLeft,children:(0,r.jsx)(`img`,{src:p.src,alt:p.alt??``,className:V.mainImage})})]})},Ft={button:`_button_vr0et_1`,unselected:`_unselected_vr0et_23`,selected:`_selected_vr0et_34`,unavailable:`_unavailable_vr0et_39`,label:`_label_vr0et_46`,strike:`_strike_vr0et_57`},It=({size:e,selected:t=!1,available:n=!0,onSelect:i,className:a})=>(0,r.jsxs)(`button`,{type:`button`,className:[Ft.button,n?t?Ft.selected:Ft.unselected:Ft.unavailable,a??``].filter(Boolean).join(` `),disabled:!n,"aria-pressed":n?t:void 0,"aria-label":n?`Size ${e}`:`Size ${e} (out of stock)`,onClick:i,children:[(0,r.jsx)(`span`,{className:Ft.label,children:e}),!n&&(0,r.jsx)(`span`,{className:Ft.strike,"aria-hidden":`true`})]}),Lt={row:`_row_1snsi_1`,rowVertical:`_rowVertical_1snsi_8`,stars:`_stars_1snsi_13`,starFull:`_starFull_1snsi_19`,starEmpty:`_starEmpty_1snsi_24`,label:`_label_1snsi_29`,value:`_value_1snsi_38`,count:`_count_1snsi_43`},Rt=e=>e.toLocaleString(`en-US`),zt=({rating:e,reviewCount:n,showLabel:i=!0,orientation:a=`horizontal`,formatReviewCount:s=Rt,className:c})=>{let l=Math.max(0,Math.min(5,e)),u=Math.round(l*2)/2,d=Math.floor(u),f=u-d===.5,p=5-d-!!f,m=(0,r.jsxs)(`div`,{className:Lt.stars,role:`img`,"aria-label":`${l} out of 5 stars`,children:[Array.from({length:d},(e,n)=>(0,r.jsx)(t.M,{size:24,strokeWidth:o(24),className:Lt.starFull,fill:`currentColor`,"aria-hidden":`true`},`full-${n}`)),f&&(0,r.jsx)(t.A,{size:24,strokeWidth:o(24),className:Lt.starFull,fill:`currentColor`,"aria-hidden":`true`}),Array.from({length:p},(e,n)=>(0,r.jsx)(t.M,{size:24,strokeWidth:o(24),className:Lt.starEmpty,"aria-hidden":`true`},`empty-${n}`))]}),h=i&&(0,r.jsxs)(`div`,{className:Lt.label,children:[(0,r.jsx)(`span`,{className:Lt.value,children:l.toFixed(1)}),n!==void 0&&(0,r.jsxs)(`span`,{className:Lt.count,children:[`(`,s(n),` reviews)`]})]}),g=[Lt.row,a===`vertical`?Lt.rowVertical:``,c??``].filter(Boolean).join(` `);return a===`horizontal-reverse`?(0,r.jsxs)(`div`,{className:g,children:[h,m]}):(0,r.jsxs)(`div`,{className:g,children:[m,h]})},Bt=({quantity:e,lowStockThreshold:t=5,label:n,className:i})=>{let a=e<=0,o=!a&&e<=t,s=a?`danger`:o?`warning`:`success`,c=a?`Out of stock`:o?`Only ${e} left`:`In stock`;return(0,r.jsx)(ct,{variant:s,emphasis:`subtle`,className:i,children:n??c})},H={card:`_card_1w9hp_1`,cardDefault:`_cardDefault_1w9hp_8`,imageDefault:`_imageDefault_1w9hp_19`,bodyDefault:`_bodyDefault_1w9hp_27`,cardHorizontal:`_cardHorizontal_1w9hp_53`,imageWrapHorizontal:`_imageWrapHorizontal_1w9hp_61`,image:`_image_1w9hp_19`,bodyHorizontal:`_bodyHorizontal_1w9hp_77`,metaRow:`_metaRow_1w9hp_89`,readTime:`_readTime_1w9hp_96`,title:`_title_1w9hp_105`,excerpt:`_excerpt_1w9hp_114`,author:`_author_1w9hp_123`,authorText:`_authorText_1w9hp_130`},Vt=({image:e,imageAlt:t,category:n,readTime:i,title:a,excerpt:o,author:s,layout:c=`default`,className:l})=>{let u=c===`horizontal`;return(0,r.jsxs)(`div`,{className:[H.card,u?H.cardHorizontal:H.cardDefault,l??``].filter(Boolean).join(` `),children:[u?(0,r.jsx)(`span`,{className:H.imageWrapHorizontal,children:(0,r.jsx)(`img`,{src:e,alt:t??``,className:H.image})}):(0,r.jsx)(`img`,{src:e,alt:t??``,className:H.imageDefault}),(0,r.jsxs)(`div`,{className:u?H.bodyHorizontal:H.bodyDefault,children:[(0,r.jsxs)(`div`,{className:H.metaRow,children:[(0,r.jsx)(ct,{variant:`accent`,emphasis:`subtle`,children:n}),(0,r.jsx)(`span`,{className:H.readTime,children:i})]}),(0,r.jsx)(`p`,{className:H.title,children:a}),(0,r.jsx)(`p`,{className:H.excerpt,children:o}),(0,r.jsxs)(`div`,{className:H.author,children:[(0,r.jsx)(k,{size:`sm`,src:s.avatarSrc,alt:s.avatarAlt??s.name}),(0,r.jsxs)(`p`,{className:H.authorText,children:[s.name,` · `,s.date]})]})]})]})},U={frame:`_frame_a9ah9_4`,frameHorizontal:`_frameHorizontal_a9ah9_5`,frameVertical:`_frameVertical_a9ah9_6`,card:`_card_a9ah9_8`,cardHorizontal:`_cardHorizontal_a9ah9_19`,cardVertical:`_cardVertical_a9ah9_26`,image:`_image_a9ah9_37`,bodyHorizontal:`_bodyHorizontal_a9ah9_48`,bodyVertical:`_bodyVertical_a9ah9_61`,title:`_title_a9ah9_72`,excerpt:`_excerpt_a9ah9_82`,footer:`_footer_a9ah9_91`,author:`_author_a9ah9_99`,authorText:`_authorText_a9ah9_106`},Ht=({image:e,imageAlt:t,badgeLabel:n=`Featured`,title:i,excerpt:a,author:o,ctaLabel:s=`Read article`,onCtaClick:c,orientation:l=`horizontal`,className:u})=>{let d=l===`vertical`;return(0,r.jsx)(`div`,{className:[U.frame,d?U.frameVertical:U.frameHorizontal,u??``].filter(Boolean).join(` `),children:(0,r.jsxs)(`div`,{className:[U.card,d?U.cardVertical:U.cardHorizontal].join(` `),children:[(0,r.jsx)(`img`,{src:e,alt:t??``,className:U.image}),(0,r.jsxs)(`div`,{className:d?U.bodyVertical:U.bodyHorizontal,children:[(0,r.jsx)(ct,{variant:`accent`,emphasis:`subtle`,children:n}),(0,r.jsx)(`p`,{className:U.title,children:i}),(0,r.jsx)(`p`,{className:U.excerpt,children:a}),(0,r.jsxs)(`div`,{className:U.footer,children:[(0,r.jsxs)(`div`,{className:U.author,children:[(0,r.jsx)(k,{size:`md`,src:o.avatarSrc,alt:o.avatarAlt??o.name,initials:o.initials}),(0,r.jsxs)(`p`,{className:U.authorText,children:[o.name,` · `,o.date]})]}),(0,r.jsx)(M,{variant:`secondary`,size:`sm`,onClick:c,children:s})]})]})]})})},Ut={chip:`_chip_scl8l_1`,"chip--sm":`_chip--sm_scl8l_11`,"chip--md":`_chip--md_scl8l_17`,"chip--lg":`_chip--lg_scl8l_23`,"chip--light":`_chip--light_scl8l_31`,"chip--outline":`_chip--outline_scl8l_35`,"chip--solid":`_chip--solid_scl8l_39`,"chip--subtle":`_chip--subtle_scl8l_43`},Wt={sm:16,md:20,lg:24},Gt=({icon:e,size:t=`md`,variant:i=`light`,className:a})=>{let s=Wt[t],c=n.default.isValidElement(e)?n.default.cloneElement(e,{size:s,strokeWidth:o(s)}):e;return(0,r.jsx)(`div`,{className:[Ut.chip,Ut[`chip--${t}`],Ut[`chip--${i}`],a??``].filter(Boolean).join(` `),"aria-hidden":`true`,children:c})},Kt={group:`_group_mvlh4_3`,group__item:`_group__item_mvlh4_6`,"group--sm":`_group--sm_mvlh4_9`,"group--lg":`_group--lg_mvlh4_10`,"group--xl":`_group--xl_mvlh4_11`,overflow:`_overflow_mvlh4_14`,"overflow--sm":`_overflow--sm_mvlh4_25`,"overflow--md":`_overflow--md_mvlh4_26`,"overflow--lg":`_overflow--lg_mvlh4_27`,"overflow--xl":`_overflow--xl_mvlh4_28`},qt=({size:e=`md`,max:t=4,avatars:n,className:i})=>{let a=n.slice(0,t),o=n.length-a.length;return(0,r.jsxs)(`div`,{className:[Kt.group,Kt[`group--${e}`],i??``].filter(Boolean).join(` `),children:[a.map((t,n)=>(0,r.jsx)(`span`,{className:Kt.group__item,children:(0,r.jsx)(k,{size:e,src:t.src,initials:t.initials,alt:t.alt})},n)),o>0&&(0,r.jsx)(`span`,{className:Kt.group__item,children:(0,r.jsxs)(`span`,{className:[Kt.overflow,Kt[`overflow--${e}`]].join(` `),children:[`+`,o]})})]})},Jt={root:`_root_165je_1`,dot:`_dot_165je_13`,dotActive:`_dotActive_165je_21`,dotRemote:`_dotRemote_165je_25`},Yt=({location:e,status:t=`active`,className:n})=>(0,r.jsxs)(`span`,{className:[Jt.root,n??``].filter(Boolean).join(` `),children:[(0,r.jsx)(`span`,{className:[Jt.dot,t===`active`?Jt.dotActive:Jt.dotRemote].join(` `),"aria-hidden":`true`}),e]}),Xt={root:`_root_15jaa_1`,rootCard:`_rootCard_15jaa_9`,rootRow:`_rootRow_15jaa_21`,rowLeft:`_rowLeft_15jaa_27`,titleGroup:`_titleGroup_15jaa_36`,title:`_title_15jaa_36`,description:`_description_15jaa_56`,metaRow:`_metaRow_15jaa_65`,applyBtn:`_applyBtn_15jaa_72`},Zt=({title:e,description:t,department:n,employmentType:i,location:a,locationStatus:o=`remote`,onApply:s,applyLabel:c=`Apply now`,layout:l=`card`,className:u})=>{let d=l===`row`,f=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(`div`,{className:Xt.titleGroup,children:[(0,r.jsx)(`p`,{className:Xt.title,children:e}),(0,r.jsx)(`p`,{className:Xt.description,children:t})]}),(0,r.jsxs)(`div`,{className:Xt.metaRow,children:[(0,r.jsx)(ct,{variant:`accent`,emphasis:`subtle`,children:n}),(0,r.jsx)(ct,{variant:`neutral`,emphasis:`subtle`,children:i}),(0,r.jsx)(Yt,{location:a,status:o})]})]});return d?(0,r.jsxs)(`div`,{className:[Xt.root,Xt.rootRow,u??``].filter(Boolean).join(` `),children:[(0,r.jsx)(`div`,{className:Xt.rowLeft,children:f}),(0,r.jsx)(M,{variant:`secondary`,size:`sm`,className:Xt.applyBtn,onClick:s,children:c})]}):(0,r.jsxs)(`div`,{className:[Xt.root,Xt.rootCard,u??``].filter(Boolean).join(` `),children:[f,(0,r.jsx)(M,{variant:`secondary`,size:`sm`,onClick:s,children:c})]})},Qt=[`M1.42578 22.5264C23.2117 23.2619 40.7366 40.7874 41.4727 62.5732C38.4791 63.4997 35.298 64 32 64C31.158 64 30.3237 63.9662 29.498 63.9023C29.4455 47.6871 16.3121 34.553 0.0966797 34.501C0.0328793 33.6757 0 32.8417 0 32C0 28.7018 0.499182 25.5201 1.42578 22.5264Z`,`M0.889648 39.5176C13.7129 39.9753 24.0232 50.2863 24.4814 63.1094C12.8474 60.3077 3.69089 51.1518 0.889648 39.5176Z`,`M32 0C49.6731 0 64 14.3269 64 32C64 44.5026 56.8286 55.3282 46.376 60.5938C44.7132 37.6274 26.3718 19.2853 3.40527 17.623C8.6709 7.17063 19.4975 0 32 0Z`],$t=({size:e,color:t})=>(0,r.jsx)(`svg`,{width:e??`100%`,height:e??`100%`,viewBox:`0 0 64 64`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,"data-sakani-logo":``,children:Qt.map(e=>(0,r.jsx)(`path`,{d:e,fill:t??`var(--color-fg-default)`},e))}),en={root:`_root_3bf2n_1`,rootCenter:`_rootCenter_3bf2n_9`,rootLeft:`_rootLeft_3bf2n_14`,title:`_title_3bf2n_19`,subtitle:`_subtitle_3bf2n_28`},tn=({eyebrow:e,title:t,subtitle:n,align:i=`center`,titleAs:a=`h2`,className:o})=>(0,r.jsxs)(`div`,{className:[en.root,i===`left`?en.rootLeft:en.rootCenter,o??``].filter(Boolean).join(` `),children:[e&&(0,r.jsx)(ct,{variant:`accent`,emphasis:`subtle`,children:e}),(0,r.jsx)(a,{className:en.title,children:t}),n&&(0,r.jsx)(`p`,{className:en.subtitle,children:n})]}),nn={card:`_card_mouc6_1`,imageWrap:`_imageWrap_mouc6_19`,image:`_image_mouc6_19`,locationBar:`_locationBar_mouc6_39`,locationDot:`_locationDot_mouc6_59`,info:`_info_mouc6_66`,metaRow:`_metaRow_mouc6_77`,identity:`_identity_mouc6_85`,name:`_name_mouc6_93`,role:`_role_mouc6_102`,social:`_social_mouc6_111`,bio:`_bio_mouc6_119`},rn=({image:e,imageAlt:t,name:n,role:i,location:a,locationStatus:o=`active`,bio:s,socialLinks:c=[],className:l})=>(0,r.jsxs)(`div`,{className:[nn.card,l??``].filter(Boolean).join(` `),children:[(0,r.jsxs)(`div`,{className:nn.imageWrap,children:[(0,r.jsx)(`img`,{src:e,alt:t??n,className:nn.image}),(0,r.jsx)(`div`,{className:nn.locationBar,children:(0,r.jsx)(Yt,{location:a,status:o,className:nn.locationDot})})]}),(0,r.jsxs)(`div`,{className:nn.info,children:[(0,r.jsxs)(`div`,{className:nn.metaRow,children:[(0,r.jsxs)(`div`,{className:nn.identity,children:[(0,r.jsx)(`p`,{className:nn.name,children:n}),(0,r.jsx)(`p`,{className:nn.role,children:i})]}),c.length>0&&(0,r.jsx)(`div`,{className:nn.social,children:c.map((e,t)=>(0,r.jsx)(`a`,{href:e.href,onClick:e.onClick,"aria-label":e.label,children:(0,r.jsx)(Gt,{icon:e.icon,size:`sm`,variant:`subtle`})},e.label??t))})]}),s&&(0,r.jsx)(`p`,{className:nn.bio,children:s})]})]}),an={alert:`_alert_1hjs5_3`,alert__icon:`_alert__icon_1hjs5_12`,alert__content:`_alert__content_1hjs5_13`,alert__title:`_alert__title_1hjs5_14`,alert__description:`_alert__description_1hjs5_15`,"alert--info":`_alert--info_1hjs5_18`,"alert--success":`_alert--success_1hjs5_21`,"alert--warning":`_alert--warning_1hjs5_24`,"alert--danger":`_alert--danger_1hjs5_27`,"alert--neutral":`_alert--neutral_1hjs5_30`},on={info:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,r.jsx)(`line`,{x1:`12`,y1:`16`,x2:`12`,y2:`12`}),(0,r.jsx)(`line`,{x1:`12`,y1:`8`,x2:`12.01`,y2:`8`})]}),success:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`path`,{d:`M22 11.08V12a10 10 0 1 1-5.93-9.14`}),(0,r.jsx)(`polyline`,{points:`22 4 12 14.01 9 11.01`})]}),warning:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`path`,{d:`M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z`}),(0,r.jsx)(`line`,{x1:`12`,y1:`9`,x2:`12`,y2:`13`}),(0,r.jsx)(`line`,{x1:`12`,y1:`17`,x2:`12.01`,y2:`17`})]}),danger:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,r.jsx)(`line`,{x1:`15`,y1:`9`,x2:`9`,y2:`15`}),(0,r.jsx)(`line`,{x1:`9`,y1:`9`,x2:`15`,y2:`15`})]}),neutral:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,r.jsx)(`line`,{x1:`12`,y1:`16`,x2:`12`,y2:`12`}),(0,r.jsx)(`line`,{x1:`12`,y1:`8`,x2:`12.01`,y2:`8`})]})},sn=({color:e=`info`,title:t,description:n,icon:i,className:a})=>(0,r.jsxs)(`div`,{role:`alert`,className:[an.alert,an[`alert--${e}`],a??``].filter(Boolean).join(` `),children:[(0,r.jsx)(`span`,{className:an.alert__icon,"aria-hidden":`true`,children:(0,r.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:o(18),strokeLinecap:`round`,strokeLinejoin:`round`,width:18,height:18,children:i??on[e]})}),(0,r.jsxs)(`div`,{className:an.alert__content,children:[t&&(0,r.jsx)(`div`,{className:an.alert__title,children:t}),n&&(0,r.jsx)(`div`,{className:an.alert__description,children:n})]})]}),W={card:`_card_1j85e_2`,"card--hover":`_card--hover_1j85e_15`,"card--selected":`_card--selected_1j85e_16`,"card--dragging":`_card--dragging_1j85e_17`,"card--done":`_card--done_1j85e_18`,card__cover:`_card__cover_1j85e_20`,card__header:`_card__header_1j85e_26`,card__leading:`_card__leading_1j85e_27`,card__title:`_card__title_1j85e_28`,card__trailing:`_card__trailing_1j85e_37`,card__desc:`_card__desc_1j85e_38`,card__tags:`_card__tags_1j85e_45`,card__divider:`_card__divider_1j85e_46`,card__footer:`_card__footer_1j85e_47`,card__meta:`_card__meta_1j85e_48`,card__assignees:`_card__assignees_1j85e_49`},cn=({type:e=`default`,state:t=`default`,cover:n,leading:i,title:a,trailing:o,description:s,tags:c,meta:l,assignees:u,onClick:d,className:f})=>{let p=e!==`compact`,m=l||u;return(0,r.jsxs)(`div`,{onClick:d,"aria-selected":t===`selected`||void 0,className:[W.card,W[`card--${e}`],W[`card--${t}`],f??``].filter(Boolean).join(` `),children:[e===`cover`&&(0,r.jsx)(`div`,{className:W.card__cover,children:n}),(0,r.jsxs)(`div`,{className:W.card__header,children:[i&&(0,r.jsx)(`span`,{className:W.card__leading,children:i}),(0,r.jsx)(`span`,{className:W.card__title,children:a}),o&&(0,r.jsx)(`span`,{className:W.card__trailing,children:o})]}),p&&s&&(0,r.jsx)(`p`,{className:W.card__desc,children:s}),p&&c&&(0,r.jsx)(`div`,{className:W.card__tags,children:c}),m&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`div`,{className:W.card__divider}),(0,r.jsxs)(`div`,{className:W.card__footer,children:[l&&(0,r.jsx)(`div`,{className:W.card__meta,children:l}),u&&(0,r.jsx)(`div`,{className:W.card__assignees,children:u})]})]})]})},ln={breadcrumb:`_breadcrumb_zps6n_3`,list:`_list_zps6n_5`,item:`_item_zps6n_15`,crumb:`_crumb_zps6n_17`,current:`_current_zps6n_28`,separator:`_separator_zps6n_35`,"list--button":`_list--button_zps6n_40`,chip:`_chip_zps6n_43`},un={highlight:`_highlight_2b588_15`,visible:`_visible_2b588_24`,glide:`_glide_2b588_28`,track:`_track_2b588_39`},dn=/height|width|grid-template|padding|margin|^(top|bottom|left|right|inset)|gap|flex/,fn=e=>e.getAttribute(`data-hover-item`)===`off`||e.getAttribute(`aria-disabled`)===`true`||e.disabled===!0;function pn(e,t){let n=0,r=0,i=e;for(;i&&i!==t;){n+=i.offsetLeft,r+=i.offsetTop;let e=i.offsetParent;if(!e)break;e!==t&&(n+=e.clientLeft,r+=e.clientTop),i=e}for(let i=e.parentElement;i&&i!==t;i=i.parentElement)n-=i.scrollLeft,r-=i.scrollTop;let a=getComputedStyle(e);return{x:n,y:r,w:e.offsetWidth,h:e.offsetHeight,radius:a.borderRadius,tone:a.getPropertyValue(`--hover-tone`).trim()}}function mn(){let e=n.default.useRef(null),[t,i]=n.default.useState(null),a=n.default.useCallback(t=>{e.current=t,i(t)},[]),o=n.default.useRef(null),s=n.default.useRef(!1),c=n.default.useRef(null),l=n.default.useRef(!1),u=n.default.useRef(null),[d,f]=n.default.useState(null),[p,m]=n.default.useState(!1),[h,g]=n.default.useState(!1),_=n.default.useCallback(()=>{s.current=!1,o.current=null,l.current=!1,m(!1)},[]),v=n.default.useCallback(t=>{let n=e.current;if(!n)return;n!==u.current&&(u.current=n,s.current=!1),o.current=t;let r=pn(t,n);if(s.current){f(r);return}s.current=!0,l.current=!0,g(!1),f(r),m(!0)},[]);n.default.useLayoutEffect(()=>{!l.current||h||!p||(l.current=!1,c.current&&getComputedStyle(c.current).transform,g(!0))},[d,p,h]);let y=n.default.useCallback(t=>{if(t.pointerType===`touch`)return;let n=e.current;if(!n)return;let r=t.target.closest(`[data-hover-item]`);if(!(!r||r.closest(`[data-hover-group]`)!==n)){if(fn(r)){_();return}r!==o.current&&v(r)}},[_,v]);n.default.useEffect(()=>{let e=t;if(!e)return;let n=()=>{let t=o.current;if(!(!t||!s.current)){if(!e.contains(t)){_();return}f(pn(t,e))}},r=new ResizeObserver(n);r.observe(e),e.addEventListener(`scroll`,n,!0);let i=0,a=0,l=()=>{a=0;let t=o.current,n=c.current;if(!t||!n||!s.current||!e.contains(t)){n?.classList.remove(un.track);return}let r=pn(t,e);if(n.style.transform=`translate(${r.x}px, ${r.y}px)`,n.style.width=`${r.w}px`,n.style.height=`${r.h}px`,performance.now()<i){a=requestAnimationFrame(l);return}n.classList.remove(un.track),f(r)},u=e=>Math.max(0,...e.split(`,`).map(e=>(e.trim().endsWith(`ms`)?parseFloat(e):parseFloat(e)*1e3)||0)),d=(e,t)=>{e===c.current||!s.current||(i=Math.max(i,performance.now()+t+60),a||=(c.current?.classList.add(un.track),requestAnimationFrame(l)))},p=e=>{let t=e;if(!dn.test(t.propertyName))return;let n=getComputedStyle(t.target);d(t.target,u(n.transitionDuration)+u(n.transitionDelay))},m=e=>{let t=getComputedStyle(e.target);t.animationIterationCount.includes(`infinite`)||d(e.target,u(t.animationDuration)+u(t.animationDelay))};return e.addEventListener(`transitionrun`,p),e.addEventListener(`animationstart`,m),()=>{r.disconnect(),e.removeEventListener(`scroll`,n,!0),e.removeEventListener(`transitionrun`,p),e.removeEventListener(`animationstart`,m),a&&cancelAnimationFrame(a)}},[t,_]);let b=(0,r.jsx)(`span`,{ref:c,"aria-hidden":`true`,className:[un.highlight,p?un.visible:``,h?un.glide:``].filter(Boolean).join(` `),style:d?{transform:`translate(${d.x}px, ${d.y}px)`,width:d.w,height:d.h,borderRadius:d.radius,background:d.tone||void 0}:void 0}),x=n.default.useCallback(e=>{e&&!fn(e)?v(e):_()},[_,v]);return{ref:a,groupProps:{"data-hover-group":``,onPointerOver:y,onPointerLeave:_},highlight:b,showItem:x}}var hn=({children:e,style:t,...n})=>{let{ref:i,groupProps:a,highlight:o}=mn();return(0,r.jsxs)(`div`,{ref:i,...n,...a,style:{position:`relative`,...t},children:[o,e]})},gn=({size:e})=>(0,r.jsx)(`span`,{className:ln.separator,"aria-hidden":`true`,children:(0,r.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:o(e),strokeLinecap:`round`,strokeLinejoin:`round`,width:e,height:e,children:(0,r.jsx)(`path`,{d:`m9 18 6-6-6-6`})})}),_n=({items:e,variant:t=`text`,className:n})=>{let i=t===`button`,a=mn();return(0,r.jsx)(`nav`,{"aria-label":`Breadcrumb`,className:[ln.breadcrumb,n??``].filter(Boolean).join(` `),children:(0,r.jsxs)(`ol`,{ref:a.ref,...i?a.groupProps:{},className:[ln.list,i?ln[`list--button`]:``].filter(Boolean).join(` `),children:[i&&(0,r.jsx)(`li`,{"aria-hidden":`true`,style:{display:`contents`},children:a.highlight}),e.map((t,n)=>{let a=n===e.length-1,o=i?ln.chip:a?ln.current:ln.crumb;return(0,r.jsxs)(`li`,{className:ln.item,children:[a||!t.href?(0,r.jsx)(`span`,{className:o,"data-hover-item":i?`off`:void 0,"aria-current":a?`page`:void 0,children:t.label}):(0,r.jsx)(`a`,{href:t.href,"data-hover-item":``,className:o,children:t.label}),!a&&(0,r.jsx)(gn,{size:i?14:16})]},n)})]})})},vn={meta:`_meta_g1mpv_2`,meta__icon:`_meta__icon_g1mpv_3`,meta__label:`_meta__label_g1mpv_4`},yn=({icon:e,children:t,className:n})=>(0,r.jsxs)(`span`,{className:[vn.meta,n??``].filter(Boolean).join(` `),children:[(0,r.jsx)(`span`,{className:vn.meta__icon,"aria-hidden":`true`,children:e}),(0,r.jsx)(`span`,{className:vn.meta__label,children:t})]}),bn={skeleton:`_skeleton_10w4d_9`,"skeleton-shimmer":`_skeleton-shimmer_10w4d_1`,"skeleton--text":`_skeleton--text_10w4d_23`,"skeleton--rect":`_skeleton--rect_10w4d_30`,"skeleton--circle":`_skeleton--circle_10w4d_36`},xn=({variant:e=`text`,width:t,height:n,className:i})=>{let a={};return t!==void 0&&(a.width=typeof t==`number`?`${t}px`:t),n!==void 0&&(a.height=typeof n==`number`?`${n}px`:n),(0,r.jsx)(`span`,{"aria-hidden":`true`,className:[bn.skeleton,bn[`skeleton--${e}`],i??``].filter(Boolean).join(` `),style:a})},Sn={composer:`_composer_12nu9_2`,"composer--typing":`_composer--typing_12nu9_15`,input:`_input_12nu9_22`,"composer--disabled":`_composer--disabled_12nu9_23`,upload:`_upload_12nu9_25`,upload__icon:`_upload__icon_12nu9_30`,upload__body:`_upload__body_12nu9_31`,upload__name:`_upload__name_12nu9_32`,upload__track:`_upload__track_12nu9_33`,upload__fill:`_upload__fill_12nu9_34`,row:`_row_12nu9_36`,icon:`_icon_12nu9_37`,send:`_send_12nu9_55`},Cn=({state:e=`default`,value:i,placeholder:s=`Message...`,onChange:c,onSend:l,onAttachmentsChange:u,uploadName:d,uploadProgress:f=0,onCancelUpload:p,className:m})=>{let h=e===`disabled`,[g,_]=n.default.useState(``),[v,y]=n.default.useState(!1),[b,x]=n.default.useState({top:0,right:0}),[S,w]=n.default.useState([]),T=n.default.useRef(null),E=n.default.useRef(null),D=n.default.useRef(null),O=n.default.useRef(null),k=i===void 0?g:i,A=!h&&(k.trim().length>0||e===`typing`||S.length>0),ee=()=>{E.current?.click()},te=e=>{let t=e.target.files;t&&(Array.from(t).forEach(e=>{if(e.type.startsWith(`image/`)||e.type.startsWith(`video/`)){let t=new FileReader;t.onload=t=>{let n=t.target?.result;w(t=>[...t,{name:e.name,type:e.type,dataUrl:n}])},t.readAsDataURL(e)}}),e.target.value=``)},ne=e=>{w(t=>t.filter((t,n)=>n!==e))},re=()=>{if(!v&&T.current){let e=T.current.getBoundingClientRect();x({top:e.top-104-4,right:20})}y(!v)},ie=e=>{if(T.current){let t=T.current.selectionStart||k.length,n=k.slice(0,t)+e+k.slice(t);_(n),c?.(n),T.current.focus(),T.current.setSelectionRange(t+e.length,t+e.length)}y(!1)};return n.default.useEffect(()=>{let e=e=>{O.current&&!O.current.contains(e.target)&&D.current&&!D.current.contains(e.target)&&y(!1)};return v&&document.addEventListener(`mousedown`,e),()=>{document.removeEventListener(`mousedown`,e)}},[v]),n.default.useEffect(()=>{u?.(S)},[S,u]),(0,r.jsxs)(`div`,{className:[Sn.composer,Sn[`composer--${e}`],m??``].filter(Boolean).join(` `),children:[e===`uploading`&&(0,r.jsxs)(`div`,{className:Sn.upload,children:[(0,r.jsx)(t.g,{size:16,strokeWidth:o(16),className:Sn.upload__icon,"aria-hidden":`true`}),(0,r.jsxs)(`div`,{className:Sn.upload__body,children:[(0,r.jsx)(`span`,{className:Sn.upload__name,children:d}),(0,r.jsx)(`div`,{className:Sn.upload__track,children:(0,r.jsx)(`div`,{className:Sn.upload__fill,style:{width:`${f}%`}})})]}),(0,r.jsx)(C,{icon:t.W,variant:`ghost`,size:`md`,onClick:p,"aria-label":`Cancel upload`})]}),S.length>0&&(0,r.jsx)(`div`,{style:{display:`flex`,flexWrap:`wrap`,gap:`8px`,padding:`8px`,backgroundColor:`var(--color-bg-subtle)`,borderRadius:`8px`},children:S.map((e,n)=>(0,r.jsxs)(`div`,{style:{position:`relative`,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,width:`80px`,height:`80px`,borderRadius:`8px`,overflow:`hidden`,backgroundColor:`var(--color-bg-muted)`,border:`1px solid var(--color-border-default)`},children:[e.type.startsWith(`image/`)?(0,r.jsx)(`img`,{src:e.dataUrl,alt:e.name,style:{width:`100%`,height:`100%`,objectFit:`cover`}}):(0,r.jsxs)(`div`,{style:{textAlign:`center`,padding:`8px`},children:[(0,r.jsx)(t.g,{size:24,strokeWidth:1.5}),(0,r.jsx)(`div`,{style:{fontSize:`10px`,marginTop:`4px`,color:`var(--color-fg-muted)`},children:e.name.split(`.`).pop()?.toUpperCase()})]}),(0,r.jsx)(`button`,{type:`button`,onClick:()=>ne(n),style:{position:`absolute`,top:`-8px`,right:`-8px`,width:`24px`,height:`24px`,borderRadius:`50%`,background:`var(--color-accent-default)`,border:`none`,color:`white`,cursor:`pointer`,display:`flex`,alignItems:`center`,justifyContent:`center`,fontSize:`16px`,lineHeight:`1`},"aria-label":`Remove file`,children:`x`})]},n))}),(0,r.jsx)(`input`,{ref:E,type:`file`,multiple:!0,accept:`image/*,video/*`,onChange:te,style:{display:`none`}}),(0,r.jsxs)(`div`,{className:Sn.row,children:[(0,r.jsx)(C,{icon:t.y,variant:`ghost`,size:`sm`,onClick:ee,disabled:h,"aria-label":`Attach file`}),(0,r.jsx)(`input`,{ref:T,type:`text`,className:Sn.input,value:k,placeholder:h?`You can't reply to this conversation`:s,disabled:h,onChange:e=>{i===void 0&&_(e.target.value),c?.(e.target.value)},onKeyDown:e=>{e.key===`Enter`&&A&&(e.preventDefault(),l?.())}}),(0,r.jsx)(C,{ref:D,icon:t.v,variant:`ghost`,size:`sm`,onClick:re,disabled:h,"aria-label":`Add emoji`}),v&&!h&&a.default.createPortal((0,r.jsx)(`div`,{ref:O,style:{position:`fixed`,top:`${b.top}px`,right:`${b.right}px`,zIndex:1e4,boxShadow:`0 4px 20px rgba(0, 0, 0, 0.15)`,borderRadius:`8px`,backgroundColor:`var(--color-bg-surface)`,border:`1px solid var(--color-border-default)`,padding:`12px`,display:`grid`,gridTemplateColumns:`repeat(8, 1fr)`,gap:`4px`,width:`280px`},children:[`😀`,`😂`,`❤️`,`👍`,`🎉`,`✨`,`😍`,`🤔`,`👏`,`🚀`,`🔥`,`💯`,`😢`,`😱`,`🤗`,`😎`].map(e=>(0,r.jsx)(`button`,{onClick:()=>ie(e),style:{background:`none`,border:`none`,fontSize:`24px`,cursor:`pointer`,padding:`4px`,borderRadius:`4px`,transition:`background-color 0.2s`},onMouseEnter:e=>{e.currentTarget.style.backgroundColor=`var(--color-bg-subtle)`},onMouseLeave:e=>{e.currentTarget.style.backgroundColor=`transparent`},children:e},e))}),document.body),(0,r.jsx)(C,{icon:t._,variant:`primary`,size:`sm`,onClick:l,disabled:!A,"aria-label":`Send message`})]})]})},wn={wrapper:`_wrapper_17ebk_3`,"wrapper--disabled":`_wrapper--disabled_17ebk_11`,input:`_input_17ebk_14`,box:`_box_17ebk_21`,check:`_check_17ebk_42`,dash:`_dash_17ebk_53`,text:`_text_17ebk_71`,text__label:`_text__label_17ebk_72`,text__description:`_text__description_17ebk_73`,checkbox:`_checkbox_17ebk_78`,"wrapper--withDescription":`_wrapper--withDescription_17ebk_83`},Tn=n.default.forwardRef(({label:e,description:t,indeterminate:i,disabled:a,id:o,className:s,...c},l)=>{let u=n.default.useId(),d=o??u,f=n.default.useRef(null);return n.default.useImperativeHandle(l,()=>f.current),n.default.useEffect(()=>{f.current&&(f.current.indeterminate=!!i)},[i]),(0,r.jsxs)(`label`,{htmlFor:d,className:[wn.wrapper,t?wn[`wrapper--withDescription`]:``,a?wn[`wrapper--disabled`]:``,s??``].filter(Boolean).join(` `),children:[(0,r.jsx)(`input`,{ref:f,id:d,type:`checkbox`,disabled:a,className:wn.input,...c}),(0,r.jsxs)(`span`,{className:wn.box,"aria-hidden":`true`,children:[(0,r.jsx)(`svg`,{className:wn.check,width:12,height:12,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:3,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,r.jsx)(`polyline`,{points:`20 6 9 17 4 12`})}),(0,r.jsx)(`span`,{className:wn.dash})]}),(e||t)&&(0,r.jsxs)(`span`,{className:wn.text,children:[e&&(0,r.jsx)(`span`,{className:wn.text__label,children:e}),t&&(0,r.jsx)(`span`,{className:wn.text__description,children:t})]})]})});Tn.displayName=`Checkbox`;var En={item:`_item_17t2p_2`,"item--hover":`_item--hover_17t2p_12`,"item--active":`_item--active_17t2p_13`,item__avatar:`_item__avatar_17t2p_16`,item__presence:`_item__presence_17t2p_17`,item__body:`_item__body_17t2p_22`,item__row:`_item__row_17t2p_23`,item__name:`_item__name_17t2p_24`,"item--unread":`_item--unread_17t2p_28`,item__mute:`_item__mute_17t2p_29`,item__time:`_item__time_17t2p_30`,item__preview:`_item__preview_17t2p_31`,item__typing:`_item__typing_17t2p_36`,item__badge:`_item__badge_17t2p_37`},Dn=({state:e=`default`,avatar:n,name:i,timestamp:a,preview:s,unreadCount:c,onClick:l,className:u})=>(0,r.jsxs)(`div`,{role:`button`,"data-hover-item":``,tabIndex:0,onClick:l,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),l?.())},"aria-current":e===`active`||void 0,className:[En.item,En[`item--${e}`],u??``].filter(Boolean).join(` `),children:[(0,r.jsxs)(`span`,{className:En.item__avatar,children:[n,e!==`muted`&&(0,r.jsx)(`span`,{className:En.item__presence,"aria-hidden":`true`})]}),(0,r.jsxs)(`span`,{className:En.item__body,children:[(0,r.jsxs)(`span`,{className:En.item__row,children:[(0,r.jsx)(`span`,{className:En.item__name,children:i}),e===`muted`&&(0,r.jsx)(t.h,{size:12,strokeWidth:o(12),className:En.item__mute,"aria-hidden":`true`}),a&&(0,r.jsx)(`span`,{className:En.item__time,children:a})]}),(0,r.jsxs)(`span`,{className:En.item__row,children:[e===`typing`?(0,r.jsx)(`span`,{className:En.item__typing,children:`typing...`}):(0,r.jsx)(`span`,{className:En.item__preview,children:s}),e===`unread`&&c!=null&&(0,r.jsx)(`span`,{className:En.item__badge,children:c})]})]})]}),On={chart:`_chart_aiboa_2`,center:`_center_aiboa_26`,center__value:`_center__value_aiboa_35`,center__caption:`_center__caption_aiboa_36`},kn={sm:{h:180,inner:50,outer:72},md:{h:220,inner:62,outer:90},lg:{h:280,inner:80,outer:116},xl:{h:340,inner:98,outer:142}},An=({data:e,size:t=`md`,centerValue:a,centerCaption:o,height:s,className:c})=>{let[l,u]=n.default.useState(null),[d,f]=n.default.useState(null),p=e=>{let t=e.currentTarget.getBoundingClientRect();f({x:e.clientX-t.left,y:e.clientY-t.top})},m=n.default.useRef(null),h=$e(m),g=[1,2,3,4,5].map(e=>h(`--color-chart-${e}`)??et[e-1]),_={...kn[t],h:s??kn[t].h},v=(_.outer-_.inner)/2-7;return(0,r.jsxs)(`div`,{ref:m,className:[On.chart,c??``].filter(Boolean).join(` `),style:{height:_.h},onMouseMove:p,children:[(0,r.jsx)(i.ResponsiveContainer,{width:`100%`,height:`100%`,children:(0,r.jsxs)(i.PieChart,{children:[(0,r.jsx)(i.Pie,{data:e,dataKey:`value`,nameKey:`label`,innerRadius:_.inner,outerRadius:_.outer,cornerRadius:v,paddingAngle:2,stroke:`none`,isAnimationActive:!1,onMouseEnter:(e,t)=>u(t),onMouseLeave:()=>{u(null),f(null)},children:e.map((e,t)=>(0,r.jsx)(i.Cell,{fill:g[t%g.length],fillOpacity:l!==null&&t!==l?.45:1},t))}),(0,r.jsx)(i.Tooltip,{content:(0,r.jsx)(nt,{}),wrapperStyle:{zIndex:50},position:d??void 0})]})}),(a||o)&&(0,r.jsxs)(`div`,{className:On.center,children:[a&&(0,r.jsx)(`span`,{className:On.center__value,children:a}),o&&(0,r.jsx)(`span`,{className:On.center__caption,children:o})]})]})},jn={empty:`_empty_1mj0f_2`,empty__chip:`_empty__chip_1mj0f_12`,"empty__chip--error":`_empty__chip--error_1mj0f_22`,empty__title:`_empty__title_1mj0f_23`,empty__desc:`_empty__desc_1mj0f_31`,empty__action:`_empty__action_1mj0f_39`},Mn={"no-data":{icon:(0,r.jsx)(t.m,{size:18,strokeWidth:o(18)}),title:`No data yet`,description:`Records will appear here once they are added.`},"no-results":{icon:(0,r.jsx)(t.C,{size:18,strokeWidth:o(18)}),title:`No results found`,description:`Try adjusting your search or removing filters.`},error:{icon:(0,r.jsx)(t.p,{size:18,strokeWidth:o(18)}),title:`Couldn't load data`,description:`Something went wrong while fetching records.`}},Nn=({type:e=`no-data`,title:t,description:n,actionLabel:i,onAction:a,icon:o,className:s})=>{let c=Mn[e];return(0,r.jsxs)(`div`,{className:[jn.empty,s??``].filter(Boolean).join(` `),role:`status`,children:[(0,r.jsx)(`span`,{className:[jn.empty__chip,jn[`empty__chip--${e}`]].join(` `),"aria-hidden":`true`,children:o??c.icon}),(0,r.jsx)(`p`,{className:jn.empty__title,children:t??c.title}),(0,r.jsx)(`p`,{className:jn.empty__desc,children:n??c.description}),i&&(0,r.jsx)(M,{variant:`outline`,size:`sm`,className:jn.empty__action,onClick:a,children:i})]})},Pn={chip:`_chip_ytg3p_2`,chip__lead:`_chip__lead_ytg3p_20`,chip__trail:`_chip__trail_ytg3p_20`,"chip--active":`_chip--active_ytg3p_22`,chip__remove:`_chip__remove_ytg3p_29`,"chip--add":`_chip--add_ytg3p_40`,"chip--leaving":`_chip--leaving_ytg3p_47`},Fn=160,In=()=>typeof window<`u`&&window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches,Ln=({type:e=`default`,children:i,onClick:a,onRemove:s,className:c})=>{let[l,u]=n.default.useState(!1),d=n.default.useRef(void 0);n.default.useEffect(()=>()=>window.clearTimeout(d.current),[]);let f=()=>{if(!l){if(In()){s?.();return}u(!0),d.current=window.setTimeout(()=>{s?.(),u(!1)},Fn)}};return(0,r.jsxs)(`button`,{type:`button`,onClick:a,className:[Pn.chip,Pn[`chip--${e}`],l?Pn[`chip--leaving`]:``,c??``].filter(Boolean).join(` `),children:[e===`add`&&(0,r.jsx)(t.N,{size:14,strokeWidth:o(14),className:Pn.chip__lead,"aria-hidden":`true`}),(0,r.jsx)(`span`,{className:Pn.chip__label,children:i}),e==="default"&&(0,r.jsx)(t.I,{size:14,strokeWidth:o(14),className:Pn.chip__trail,"aria-hidden":`true`}),e===`active`&&(0,r.jsx)(`span`,{role:`button`,"aria-label":`Remove filter`,className:Pn.chip__remove,onClick:e=>{e.stopPropagation(),f()},children:(0,r.jsx)(t.W,{size:14,strokeWidth:o(14),"aria-hidden":`true`})})]})},Rn={glow:`_glow_1ufrf_6`,ring:`_ring_1ufrf_7`,glow__line:`_glow__line_1ufrf_30`,glow__bloom:`_glow__bloom_1ufrf_31`,glow__ring:`_glow__ring_1ufrf_35`,glow__light:`_glow__light_1ufrf_62`,"glow--once":`_glow--once_1ufrf_105`,"ai-glow-once":`_ai-glow-once_1ufrf_1`,"glow--pulse":`_glow--pulse_1ufrf_107`,"ai-glow-pulse":`_ai-glow-pulse_1ufrf_1`,"glow--focus":`_glow--focus_1ufrf_110`},zn=[0,1,2,3,4,5,6,7,8];function Bn(){return(0,r.jsx)(r.Fragment,{children:zn.map(e=>(0,r.jsx)(`span`,{className:Rn.glow__light,style:{"--i":e}},e))})}var Vn=({mode:e})=>e===`off`?null:(0,r.jsxs)(`span`,{className:`${Rn.glow} ${Rn[`glow--${e}`]}`,"aria-hidden":`true`,children:[(0,r.jsx)(`span`,{className:Rn.glow__bloom,children:(0,r.jsx)(`span`,{className:Rn.glow__ring,children:(0,r.jsx)(Bn,{})})}),(0,r.jsx)(`span`,{className:Rn.glow__line,children:(0,r.jsx)(`span`,{className:Rn.glow__ring,children:(0,r.jsx)(Bn,{})})})]}),Hn=()=>(0,r.jsx)(`span`,{className:Rn.ring,"aria-hidden":`true`}),G={field:`_field_lst4f_10`,field__label:`_field__label_lst4f_18`,field__description:`_field__description_lst4f_26`,field__error:`_field__error_lst4f_31`,input:`_input_lst4f_38`,"input--sm":`_input--sm_lst4f_52`,"input--md":`_input--md_lst4f_53`,"input--lg":`_input--lg_lst4f_54`,"input--error":`_input--error_lst4f_68`,"input--disabled":`_input--disabled_lst4f_75`,input__control:`_input__control_lst4f_82`,input__icon:`_input__icon_lst4f_111`,"input--unstyled":`_input--unstyled_lst4f_121`,"input--ai":`_input--ai_lst4f_135`,"input--aiLeading":`_input--aiLeading_lst4f_148`,input__actions:`_input__actions_lst4f_149`},Un=16,Wn=e=>n.default.isValidElement(e)?n.default.cloneElement(e,{size:Un,strokeWidth:o(Un)}):e,Gn=n.default.forwardRef(({label:e,description:t,error:i,size:a=`md`,unstyled:o,leadingIcon:s,trailingIcon:c,variant:l=`default`,glow:u=`once`,leading:d,trailing:f,disabled:p,id:m,className:h,...g},_)=>{let v=n.default.useId(),y=m??v,b=!!i,x=l===`ai`,S=n.default.useRef(null),C=n.default.useCallback(e=>{S.current=e,typeof _==`function`?_(e):_&&(_.current=e)},[_]);return(0,r.jsxs)(`div`,{className:[G.field,h??``].filter(Boolean).join(` `),children:[e&&(0,r.jsx)(`label`,{htmlFor:y,className:G.field__label,children:e}),(0,r.jsxs)(`div`,{className:[G.input,G[`input--${a}`],x?G[`input--ai`]:``,x&&d?G[`input--aiLeading`]:``,b?G[`input--error`]:``,p?G[`input--disabled`]:``].filter(Boolean).join(` `),onClick:e=>{let t=e.target;p||t===S.current||t.closest(`button, a, input, select, textarea, [role="button"]`)||S.current?.focus()},children:[x&&(0,r.jsx)(Vn,{mode:p?`off`:u}),x&&d&&(0,r.jsx)(`span`,{className:G.input__actions,children:d}),s&&(0,r.jsx)(`span`,{className:G.input__icon,"aria-hidden":`true`,children:Wn(s)}),(0,r.jsx)(`input`,{ref:C,id:y,className:G.input__control,disabled:p,"aria-invalid":b||void 0,"aria-describedby":t||i?`${y}-desc`:void 0,...g}),c&&(0,r.jsx)(`span`,{className:G.input__icon,"aria-hidden":`true`,children:Wn(c)}),x&&f&&(0,r.jsx)(`span`,{className:G.input__actions,children:f})]}),(t||i)&&(0,r.jsx)(`span`,{id:`${y}-desc`,className:b?G.field__error:G.field__description,children:i||t})]})});Gn.displayName=`Input`;var Kn={chart:`_chart_18fgd_2`},qn={sm:180,md:240,lg:320,xl:420},Jn=new Set([`dots`,`custom-dots`,`dots-colors`,`label`,`custom-label`]),Yn=({data:e,series:t,xKey:a=`label`,variant:o=`default`,labelKey:s,size:c=`md`,height:l,showLegend:u,className:d})=>{let f=n.default.useRef(null),p=$e(f),m=[1,2,3,4,5].map(e=>p(`--color-chart-${e}`)??et[e-1]),h=[m[1],m[0],...m.slice(2)],g=p(`--color-border-subtle`)??`#e7e5e1`,_=p(`--color-fg-muted`)??`#78716a`,v=p(`--color-bg-canvas`)??`#fafaf9`,y=p(`--color-fg-default`)??`#141414`,b=o===`linear`?`linear`:o===`step`?`step`:`monotone`,x=Jn.has(o),S=e=>t=>{let{cx:n,cy:i}=t;return(0,r.jsxs)(`g`,{stroke:e,strokeWidth:2,strokeLinecap:`round`,children:[(0,r.jsx)(`line`,{x1:n,y1:i-3,x2:n,y2:i-3-6}),(0,r.jsx)(`line`,{x1:n,y1:i+3,x2:n,y2:i+3+6}),(0,r.jsx)(`circle`,{cx:n,cy:i,r:3,fill:e,stroke:`none`})]})},C=e=>{let{cx:t,cy:n,index:i}=e,a=m[(i??0)%m.length];return(0,r.jsx)(`circle`,{cx:t,cy:n,r:4,fill:a,stroke:v,strokeWidth:1.5})},w=t=>{let{x:n,y:i,value:a,index:c}=t,l=o===`custom-label`&&s?e[c]?.[s]:a;return l===void 0?(0,r.jsx)(`g`,{}):(0,r.jsx)(`text`,{x:n,y:i-12,textAnchor:`middle`,fill:y,fontSize:12,fontWeight:500,fontFamily:`var(--font-sans)`,children:l})};return(0,r.jsx)(`div`,{ref:f,className:[Kn.chart,d??``].filter(Boolean).join(` `),children:(0,r.jsx)(i.ResponsiveContainer,{width:`100%`,height:l??qn[c],children:(0,r.jsxs)(i.LineChart,{data:e,margin:{top:8,right:8,bottom:8,left:12},children:[(0,r.jsx)(i.CartesianGrid,{strokeDasharray:`3 3`,stroke:g,vertical:!1}),(0,r.jsx)(i.XAxis,{dataKey:a,stroke:_,fontSize:12,tickLine:!1,axisLine:!1,interval:0}),(0,r.jsx)(i.Tooltip,{cursor:{stroke:p(`--color-border-default`)??`#dbdad7`,strokeWidth:1},content:(0,r.jsx)(nt,{}),wrapperStyle:{zIndex:50}}),u&&(0,r.jsx)(i.Legend,{wrapperStyle:{fontSize:12,fontFamily:`var(--font-sans)`}}),t.map((e,t)=>{let n=h[t%h.length],a=x?o===`custom-dots`?S(n):o===`dots-colors`?C:{r:4,fill:n,stroke:v,strokeWidth:1.5}:!1;return(0,r.jsx)(i.Line,{type:b,dataKey:e,stroke:n,strokeWidth:2,dot:a,activeDot:{r:4,fill:n,stroke:v,strokeWidth:1.5},label:o===`label`||o===`custom-label`?w:void 0},e)})]})})})},Xn={menu:`_menu_1cx61_2`,divider:`_divider_1cx61_26`},Zn=({children:e,minWidth:t=208,className:n,...i})=>{let a=mn();return(0,r.jsxs)(`div`,{ref:a.ref,...a.groupProps,role:`menu`,"aria-label":i[`aria-label`],style:{minWidth:t},className:[Xn.menu,n??``].filter(Boolean).join(` `),children:[a.highlight,e]})},Qn=()=>(0,r.jsx)(`div`,{className:Xn.divider,role:`separator`}),$n={item:`_item_14ene_2`,item__icon:`_item__icon_14ene_29`,item__label:`_item__label_14ene_30`,item__shortcut:`_item__shortcut_14ene_31`,item__check:`_item__check_14ene_38`,"item--checked":`_item--checked_14ene_40`,"item--disabled":`_item--disabled_14ene_41`,"item--destructive":`_item--destructive_14ene_42`},er=({state:e=`default`,icon:n,shortcut:i,children:a,onSelect:s,className:c})=>{let l=e===`disabled`;return(0,r.jsxs)(`div`,{role:`menuitem`,"data-hover-item":``,"aria-disabled":l||void 0,"aria-checked":e===`checked`||void 0,tabIndex:l?-1:0,onClick:l?void 0:s,onKeyDown:e=>{l||(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),s?.())},className:[$n.item,$n[`item--${e}`],c??``].filter(Boolean).join(` `),children:[n&&(0,r.jsx)(`span`,{className:$n.item__icon,"aria-hidden":`true`,children:n}),(0,r.jsx)(`span`,{className:$n.item__label,children:a}),i&&(0,r.jsx)(`kbd`,{className:$n.item__shortcut,children:i}),e===`checked`&&(0,r.jsx)(t.R,{size:16,strokeWidth:o(16),className:$n.item__check,"aria-hidden":`true`})]})},K={row:`_row_1q1m5_2`,"row--sent":`_row--sent_1q1m5_3`,row__avatar:`_row__avatar_1q1m5_4`,col:`_col_1q1m5_5`,meta:`_meta_1q1m5_7`,meta__name:`_meta__name_1q1m5_8`,meta__time:`_meta__time_1q1m5_9`,bubble:`_bubble_1q1m5_11`,"bubble--received":`_bubble--received_1q1m5_17`,"bubble--sent":`_bubble--sent_1q1m5_18`,bubble__text:`_bubble__text_1q1m5_19`,bubble__image:`_bubble__image_1q1m5_20`,file:`_file_1q1m5_23`,file__icon:`_file__icon_1q1m5_24`,file__meta:`_file__meta_1q1m5_25`,file__name:`_file__name_1q1m5_26`,file__size:`_file__size_1q1m5_27`,file__dl:`_file__dl_1q1m5_28`,foot:`_foot_1q1m5_30`,foot__time:`_foot__time_1q1m5_31`,foot__receipt:`_foot__receipt_1q1m5_32`,system:`_system_1q1m5_34`,system__pill:`_system__pill_1q1m5_35`},tr=({type:e=`received`,content:n=`text`,avatar:i,authorName:a,timestamp:s,children:c,image:l,fileName:u,fileSize:d,reactions:f,read:p,className:m})=>{if(e===`system`)return(0,r.jsx)(`div`,{className:[K.system,m??``].filter(Boolean).join(` `),children:(0,r.jsx)(`span`,{className:K.system__pill,children:c})});let h=e===`sent`;return(0,r.jsxs)(`div`,{className:[K.row,h?K[`row--sent`]:K[`row--received`],m??``].filter(Boolean).join(` `),children:[!h&&i&&(0,r.jsx)(`span`,{className:K.row__avatar,children:i}),(0,r.jsxs)(`div`,{className:K.col,children:[!h&&(a||s)&&(0,r.jsxs)(`div`,{className:K.meta,children:[a&&(0,r.jsx)(`span`,{className:K.meta__name,children:a}),s&&(0,r.jsx)(`span`,{className:K.meta__time,children:s})]}),(0,r.jsxs)(`div`,{className:[K.bubble,h?K[`bubble--sent`]:K[`bubble--received`]].join(` `),children:[n===`image`&&(0,r.jsx)(`div`,{className:K.bubble__image,children:l}),n===`file`&&(0,r.jsxs)(`div`,{className:K.file,children:[(0,r.jsx)(t.g,{size:18,strokeWidth:o(18),className:K.file__icon,"aria-hidden":`true`}),(0,r.jsxs)(`span`,{className:K.file__meta,children:[(0,r.jsx)(`span`,{className:K.file__name,children:u}),(0,r.jsx)(`span`,{className:K.file__size,children:d})]}),(0,r.jsx)(t.u,{size:16,strokeWidth:o(16),className:K.file__dl,"aria-hidden":`true`})]}),c&&(0,r.jsx)(`span`,{className:K.bubble__text,children:c})]}),(0,r.jsxs)(`div`,{className:K.foot,children:[!h&&f,h&&(0,r.jsxs)(r.Fragment,{children:[s&&(0,r.jsx)(`span`,{className:K.foot__time,children:s}),p&&(0,r.jsx)(t.d,{size:13,strokeWidth:o(13),className:K.foot__receipt,"aria-hidden":`true`})]})]})]})]})},nr={pagination:`_pagination_130ig_2`,page:`_page_130ig_9`,arrow:`_arrow_130ig_9`,"page--active":`_page--active_130ig_27`,ellipsis:`_ellipsis_130ig_43`},rr=(e,t)=>Array.from({length:t-e+1},(t,n)=>e+n);function ir(e,t,n){let r=n*2+5;if(e<=r)return rr(1,e);let i=r-2,a=n*2+1;if(t<=i)return[...rr(1,i),`end-ellipsis`,e];let o=i+1+Math.floor((t-i-1)/a)*a,s=o+a-1;return s<=e-3?[1,`start-ellipsis`,...rr(o,s),`end-ellipsis`,e]:[1,`start-ellipsis`,...rr(e-i+1,e)]}var ar=({total:e,page:i,onPageChange:a,siblings:s=1,className:c})=>{let l=n.default.useRef(null);if(e<1)return null;let u=Math.min(Math.max(i,1),e),d=Math.max(0,s),f=ir(e,u,d),p=l.current;if(p&&p.total===e&&p.siblings===d){let t=p.tokens,n=t.includes(u),r=u===1&&t[1]===`start-ellipsis`||u===e&&t[t.length-2]===`end-ellipsis`;n&&!r&&(f=t)}return l.current={total:e,siblings:d,tokens:f},(0,r.jsxs)(`nav`,{className:[nr.pagination,c??``].filter(Boolean).join(` `),"aria-label":`Pagination`,children:[(0,r.jsx)(`button`,{type:`button`,className:nr.arrow,disabled:u<=1,onClick:()=>a(u-1),"aria-label":`Previous page`,children:(0,r.jsx)(t.T,{size:16,strokeWidth:o(16)})}),f.map(e=>typeof e==`number`?(0,r.jsx)(`button`,{type:`button`,className:[nr.page,e===u?nr[`page--active`]:``].filter(Boolean).join(` `),"aria-current":e===u?`page`:void 0,"aria-label":`Page ${e}`,onClick:()=>e!==u&&a(e),children:e},e):(0,r.jsx)(`span`,{className:nr.ellipsis,"aria-hidden":`true`,children:`…`},e)),(0,r.jsx)(`button`,{type:`button`,className:nr.arrow,disabled:u>=e,onClick:()=>a(u+1),"aria-label":`Next page`,children:(0,r.jsx)(t.w,{size:16,strokeWidth:o(16)})})]})},q={root:`_root_q8atw_4`,"root--attached":`_root--attached_q8atw_21`,"root--disabled":`_root--disabled_q8atw_23`,attachments:`_attachments_q8atw_25`,field:`_field_q8atw_27`,actions:`_actions_q8atw_47`,left:`_left_q8atw_48`,right:`_right_q8atw_48`,attach:`_attach_q8atw_25`,voice:`_voice_q8atw_52`,send:`_send_q8atw_52`,"send--on":`_send--on_q8atw_66`,send__icon:`_send__icon_q8atw_72`,"send__icon--out":`_send__icon--out_q8atw_73`,stop:`_stop_q8atw_74`},or=24,sr=n.default.forwardRef(({value:e,defaultValue:i=``,onValueChange:a,placeholder:s=`Ask anything, or type / for skills`,status:c=`idle`,onSubmit:l,onStop:u,onAttach:d,onVoice:f,attachments:p,actions:m,maxRows:h=8,glow:g=`once`,disabled:_,autoFocus:v,"aria-label":y=`Message`,className:b},x)=>{let[S,C]=n.default.useState(i),w=e===void 0?S:e,T=n.default.useRef(null),E=e=>{T.current=e,typeof x==`function`?x(e):x&&(x.current=e)},D=c===`streaming`,O=!_&&!D&&w.trim().length>0;n.default.useLayoutEffect(()=>{let e=T.current;e&&(e.style.height=`auto`,e.style.height=`${Math.min(e.scrollHeight,h*or)}px`,e.style.overflowY=e.scrollHeight>h*or?`auto`:`hidden`)},[w,h]);let k=t=>{e===void 0&&C(t),a?.(t)},A=()=>{O&&(l?.(w.trim()),e===void 0&&C(``))};return(0,r.jsxs)(`div`,{className:[q.root,p?q[`root--attached`]:``,_?q[`root--disabled`]:``,b??``].filter(Boolean).join(` `),children:[p&&(0,r.jsx)(`div`,{className:q.attachments,children:p}),(0,r.jsx)(`textarea`,{ref:E,className:q.field,rows:1,value:w,placeholder:s,disabled:_,autoFocus:v,"aria-label":y,onChange:e=>k(e.target.value),onKeyDown:e=>{e.key===`Enter`&&!e.shiftKey&&!e.nativeEvent.isComposing&&(e.preventDefault(),A())}}),(0,r.jsxs)(`div`,{className:q.actions,children:[(0,r.jsxs)(`div`,{className:q.left,children:[d&&(0,r.jsx)(`button`,{type:`button`,className:q.attach,onClick:d,disabled:_,"aria-label":`Attach files`,children:(0,r.jsx)(t.N,{size:16,strokeWidth:o(16)})}),m]}),(0,r.jsxs)(`div`,{className:q.right,children:[f&&(0,r.jsx)(`button`,{type:`button`,className:q.voice,onClick:f,disabled:_,"aria-label":`Dictate`,children:(0,r.jsx)(t.l,{size:16,strokeWidth:o(16)})}),(0,r.jsxs)(`button`,{type:`button`,className:[q.send,O||D?q[`send--on`]:``].filter(Boolean).join(` `),onClick:D?u:A,disabled:_||!D&&!O,"aria-label":D?`Stop generating`:`Send message`,children:[(0,r.jsx)(`span`,{className:[q.send__icon,D?q[`send__icon--out`]:``].filter(Boolean).join(` `),children:(0,r.jsx)(t.c,{size:16,strokeWidth:o(16)})}),(0,r.jsx)(`span`,{className:[q.send__icon,D?``:q[`send__icon--out`]].filter(Boolean).join(` `),children:(0,r.jsx)(`span`,{className:q.stop})})]})]})]}),(0,r.jsx)(Vn,{mode:_?`off`:g}),(0,r.jsx)(Hn,{})]})});sr.displayName=`PromptComposer`;var cr={rays:`_rays_lx20j_3`,ray:`_ray_lx20j_3`,"ray--head":`_ray--head_lx20j_5`,"rays--beat":`_rays--beat_lx20j_14`,beat:`_beat_lx20j_1`},lr=[0,1,2,3,4,5,6,7],ur=[0,1,2,3,4,5,6],dr=e=>{let t=e*Math.PI/4,[n,r]=e%2?[4.1,6.4]:[3.6,6.4];return{x1:8+n*Math.sin(t),y1:8-n*Math.cos(t),x2:8+r*Math.sin(t),y2:8-r*Math.cos(t)}},fr=({size:e=16,className:t,beat:i})=>{let a=`ray-grad-${n.default.useId().replace(/[^a-zA-Z0-9_-]/g,``)}`;return(0,r.jsxs)(`svg`,{className:[cr.rays,i?cr[`rays--beat`]:``,t??``].filter(Boolean).join(` `),width:e,height:e,viewBox:`0 0 16 16`,fill:`none`,"aria-hidden":`true`,children:[(0,r.jsx)(`defs`,{children:(0,r.jsx)(`linearGradient`,{id:a,gradientUnits:`userSpaceOnUse`,x1:`1.6`,y1:`0`,x2:`14.4`,y2:`0`,children:ur.map(e=>(0,r.jsx)(`stop`,{offset:e/6,style:{stopColor:`var(--ai-ember-${e})`}},e))})}),lr.map(e=>(0,r.jsx)(`line`,{className:[cr.ray,e===0?cr[`ray--head`]:``].filter(Boolean).join(` `),style:{"--i":e},...dr(e),stroke:`url(#${a})`,strokeWidth:`1.5`,strokeLinecap:`round`},e))]})},J={root:`_root_1tje8_3`,header:`_header_1tje8_4`,label:`_label_1tje8_11`,icon:`_icon_1tje8_12`,title:`_title_1tje8_13`,elapsed:`_elapsed_1tje8_14`,summary:`_summary_1tje8_15`,chevron:`_chevron_1tje8_16`,"title--shimmer":`_title--shimmer_1tje8_24`,shimmer:`_shimmer_1tje8_1`,panel:`_panel_1tje8_34`,panel__inner:`_panel__inner_1tje8_36`,body:`_body_1tje8_39`,rail:`_rail_1tje8_40`,lines:`_lines_1tje8_43`,viewport:`_viewport_1tje8_52`,"root--windowed":`_root--windowed_1tje8_53`,"root--streaming":`_root--streaming_1tje8_62`,word:`_word_1tje8_66`,"word-in":`_word-in_1tje8_1`,"word-ink":`_word-ink_1tje8_1`},pr=100,mr=26,hr=e=>e===void 0?``:`${Math.max(0,Math.floor(e))}s`,gr=e=>{if(typeof e==`string`||typeof e==`number`)return String(e);if(n.default.isValidElement(e)&&e.type===`p`){let t=n.default.Children.toArray(e.props.children);if(t.every(e=>typeof e==`string`||typeof e==`number`))return t.join(``)}return null},_r=({delay:e,children:t})=>{let[i]=n.default.useState(e);return(0,r.jsx)(`span`,{className:J.word,style:i?{animationDelay:`${i}ms`}:void 0,children:t})},vr=({text:e})=>{let t=n.default.useRef(0),i=t.current,a=e.split(/(\s+)/).filter(Boolean),o=0,s=a.map((e,t)=>{if(/^\s+$/.test(e))return e;let n=o++;return(0,r.jsx)(_r,{delay:Math.max(0,n-i)*mr,children:e},t)});return n.default.useLayoutEffect(()=>{t.current=o}),(0,r.jsx)(`p`,{children:s})},yr=({status:e=`done`,elapsed:i,summary:a,children:s,open:c,defaultOpen:l=!1,onOpenChange:u,className:d})=>{let[f,p]=n.default.useState(l),m=e===`streaming`,h=m?!0:c===void 0?f:c,g=()=>{if(m)return;let e=!h;c===void 0&&p(e),u?.(e)},_=n.default.useId(),v=n.default.Children.toArray(s),y=v.map((e,t)=>{let n=gr(e);return n===null?e:(0,r.jsx)(vr,{text:n},t)}),b=n.default.useRef(null),[x,S]=n.default.useState(0);n.default.useLayoutEffect(()=>{let e=b.current;if(!e)return;let t=()=>S(e.offsetHeight);t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[]);let C=m||!h,w=C?Math.max(0,x-pr):0,T=C?{height:Math.min(x,pr)}:void 0,E=C?{transform:`translateY(${-w}px)`}:void 0;return(0,r.jsxs)(`div`,{className:[J.root,m?J[`root--streaming`]:``,C?J[`root--windowed`]:``,d??``].filter(Boolean).join(` `),"data-open":h||void 0,"data-empty":v.length===0||void 0,children:[(0,r.jsxs)(`button`,{type:`button`,className:J.header,onClick:g,"aria-expanded":h,"aria-controls":_,disabled:m,children:[(0,r.jsxs)(`span`,{className:J.label,children:[(0,r.jsx)(`span`,{className:J.icon,children:m?(0,r.jsx)(fr,{size:16,beat:!0}):(0,r.jsx)(t.s,{size:16,strokeWidth:o(16),"aria-hidden":`true`})}),(0,r.jsx)(`span`,{className:[J.title,m?J[`title--shimmer`]:``].filter(Boolean).join(` `),children:m?`Thinking`:`Thought${i===void 0?``:` for ${hr(i)}`}`}),m&&i!==void 0&&(0,r.jsx)(`span`,{className:J.elapsed,children:hr(i)}),!m&&!h&&a&&(0,r.jsx)(`span`,{className:J.summary,children:a})]}),!m&&(0,r.jsx)(`span`,{className:J.chevron,"aria-hidden":`true`,children:h?(0,r.jsx)(t.I,{size:16,strokeWidth:o(16)}):(0,r.jsx)(t.w,{size:16,strokeWidth:o(16)})})]}),(0,r.jsx)(`div`,{id:_,className:J.panel,role:`region`,"aria-label":`Reasoning`,"aria-live":m?`polite`:void 0,children:(0,r.jsx)(`div`,{className:J.panel__inner,children:(0,r.jsxs)(`div`,{className:J.body,children:[(0,r.jsx)(`span`,{className:J.rail,"aria-hidden":`true`}),(0,r.jsx)(`div`,{className:J.viewport,style:T,"data-overflow":w>0||void 0,children:(0,r.jsx)(`div`,{ref:b,className:J.lines,style:E,children:y})})]})})})]})},br={track:`_track_qk9yd_2`,segment:`_segment_qk9yd_14`,"segment--active":`_segment--active_qk9yd_43`,thumb:`_thumb_qk9yd_50`,"thumb--animated":`_thumb--animated_qk9yd_68`,"track--fullWidth":`_track--fullWidth_qk9yd_74`},xr=({options:e,value:t,defaultValue:i,onChange:a,fullWidth:o,className:s})=>{let c=t!==void 0,[l,u]=n.default.useState(i??e[0]?.value),d=c?t:l,f=e=>{c||u(e),a?.(e)},p=n.default.useRef(null),m=n.default.useRef({}),[h,g]=n.default.useState(null),[_,v]=n.default.useState(!1);return n.default.useLayoutEffect(()=>{let e=()=>{let e=m.current[d],t=p.current;!e||!t||g({left:e.offsetLeft,width:e.offsetWidth})};e();let t=window.requestAnimationFrame(()=>v(!0)),n=new ResizeObserver(e);return p.current&&n.observe(p.current),()=>{window.cancelAnimationFrame(t),n.disconnect()}},[d,e]),(0,r.jsxs)(`div`,{ref:p,role:`tablist`,className:[br.track,o?br[`track--fullWidth`]:``,s??``].filter(Boolean).join(` `),children:[h&&(0,r.jsx)(`span`,{"aria-hidden":`true`,className:[br.thumb,_?br[`thumb--animated`]:``].filter(Boolean).join(` `),style:{transform:`translateX(${h.left}px)`,width:h.width}}),e.map(e=>{let t=e.value===d;return(0,r.jsx)(`button`,{ref:t=>{m.current[e.value]=t},role:`tab`,type:`button`,"aria-selected":t,className:[br.segment,t?br[`segment--active`]:``].filter(Boolean).join(` `),onClick:()=>f(e.value),children:e.label},e.value)})]})},Y={field:`_field_1b512_6`,field__label:`_field__label_1b512_8`,field__description:`_field__description_1b512_9`,field__error:`_field__error_1b512_10`,select:`_select_1b512_12`,"select--sm":`_select--sm_1b512_23`,"select--md":`_select--md_1b512_24`,"select--lg":`_select--lg_1b512_25`,"select--open":`_select--open_1b512_28`,"select--error":`_select--error_1b512_38`,"select--disabled":`_select--disabled_1b512_47`,select__control:`_select__control_1b512_54`,select__chevron:`_select__chevron_1b512_75`,anchor:`_anchor_1b512_86`,select__value:`_select__value_1b512_90`,"select__value--placeholder":`_select__value--placeholder_1b512_100`,"select__chevron--open":`_select__chevron--open_1b512_103`,panel:`_panel_1b512_114`,"panel--entering":`_panel--entering_1b512_139`,"sakani-select-panel-in":`_sakani-select-panel-in_1b512_1`,"panel--exiting":`_panel--exiting_1b512_140`,"sakani-select-panel-out":`_sakani-select-panel-out_1b512_1`,option:`_option_1b512_151`,"option--selected":`_option--selected_1b512_176`,"option--disabled":`_option--disabled_1b512_177`,option__label:`_option__label_1b512_178`,option__check:`_option__check_1b512_179`,optionHighlight:`_optionHighlight_1b512_151`,"optionHighlight--animated":`_optionHighlight--animated_1b512_201`},Sr=({label:e,description:t,error:i,size:s=`md`,placeholder:c=`Select an option`,options:l,value:u,defaultValue:d,onChange:f,disabled:p,id:m,className:h})=>{let g=n.default.useId(),_=`${m??g}-trigger`,v=`${m??g}-panel`,y=!!i,[b,x]=n.default.useState(d),S=u===void 0?b:u,C=l.find(e=>e.value===S),[w,T]=n.default.useState(!1),[E,D]=n.default.useState(!1),[O,k]=n.default.useState(0),A=n.default.useRef(null),ee=n.default.useRef(null),te=n.default.useRef(null),ne=n.default.useRef({}),[re,ie]=n.default.useState(null),[ae,j]=n.default.useState(!1);n.default.useLayoutEffect(()=>{let e=ne.current[O];if(!e){ie(null);return}ie({top:e.offsetTop,height:e.offsetHeight})},[O,l.length]),n.default.useLayoutEffect(()=>{if(!E){j(!1);return}j(!1);let e=window.requestAnimationFrame(()=>j(!0));return()=>window.cancelAnimationFrame(e)},[E]),n.default.useEffect(()=>{if(!te.current)return;let e=new ResizeObserver(()=>{let e=ne.current[O];e&&ie({top:e.offsetTop,height:e.offsetHeight})});return e.observe(te.current),()=>e.disconnect()},[E]);let M=ye(A,E),[N,oe]=n.default.useState(null);n.default.useEffect(()=>{w&&D(!0)},[w]),n.default.useLayoutEffect(()=>{if(!w)return;let e=()=>{let e=ee.current;if(!e)return;let t=e.getBoundingClientRect();oe({top:t.bottom+4,left:t.left,width:t.width})};return e(),window.addEventListener(`scroll`,e,!0),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`scroll`,e,!0),window.removeEventListener(`resize`,e)}},[w]),n.default.useEffect(()=>{if(!w)return;let e=e=>{let t=e.target;A.current?.contains(t)||te.current?.contains(t)||T(!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[w]),n.default.useEffect(()=>{if(!w)return;let e=l.findIndex(e=>e.value===S);k(e>=0?e:0)},[w,l,S]);let se=e=>{e.disabled||(u===void 0&&x(e.value),f?.(e.value),T(!1))},P=e=>{k(t=>{let n=t;for(let t=0;t<l.length;t+=1)if(n=(n+e+l.length)%l.length,!l[n]?.disabled)return n;return t})};return(0,r.jsxs)(`div`,{className:[Y.field,h??``].filter(Boolean).join(` `),ref:A,children:[e&&(0,r.jsx)(`label`,{htmlFor:_,className:Y.field__label,children:e}),(0,r.jsxs)(`div`,{className:Y.anchor,children:[(0,r.jsxs)(`div`,{ref:ee,id:_,role:`combobox`,tabIndex:p?-1:0,"aria-haspopup":`listbox`,"aria-expanded":w,"aria-controls":v,"aria-invalid":y||void 0,"aria-disabled":p||void 0,"aria-activedescendant":w?`${v}-opt-${O}`:void 0,onClick:()=>!p&&T(e=>!e),onKeyDown:e=>{if(!p){if(!w&&(e.key===`Enter`||e.key===` `||e.key===`ArrowDown`)){e.preventDefault(),T(!0);return}if(w)if(e.key===`ArrowDown`)e.preventDefault(),P(1);else if(e.key===`ArrowUp`)e.preventDefault(),P(-1);else if(e.key===`Home`)e.preventDefault(),k(0);else if(e.key===`End`)e.preventDefault(),k(l.length-1);else if(e.key===`Enter`||e.key===` `){e.preventDefault();let t=l[O];t&&se(t)}else e.key===`Escape`&&(e.preventDefault(),T(!1))}},className:[Y.select,Y[`select--${s}`],w?Y[`select--open`]:``,y?Y[`select--error`]:``,p?Y[`select--disabled`]:``].filter(Boolean).join(` `),children:[(0,r.jsx)(`span`,{className:[Y.select__value,C?``:Y[`select__value--placeholder`]].filter(Boolean).join(` `),children:C?C.label:c}),(0,r.jsx)(`span`,{className:[Y.select__chevron,w?Y[`select__chevron--open`]:``].filter(Boolean).join(` `),"aria-hidden":`true`,children:(0,r.jsx)(`svg`,{width:16,height:16,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:o(16),strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,r.jsx)(`path`,{d:`m6 9 6 6 6-6`})})})]}),E&&N&&(0,a.createPortal)((0,r.jsxs)(`div`,{ref:te,id:v,role:`listbox`,className:[M,Y.panel,w?Y[`panel--entering`]:Y[`panel--exiting`]].filter(Boolean).join(` `),style:{position:`fixed`,top:N.top,left:N.left,width:N.width},onAnimationEnd:()=>{w||D(!1)},children:[re&&(0,r.jsx)(`span`,{"aria-hidden":`true`,className:[Y.optionHighlight,ae?Y[`optionHighlight--animated`]:``].filter(Boolean).join(` `),style:{transform:`translateY(${re.top}px)`,height:re.height}}),l.map((e,t)=>(0,r.jsxs)(`div`,{ref:e=>{ne.current[t]=e},id:`${v}-opt-${t}`,role:`option`,"aria-selected":e.value===S,"aria-disabled":e.disabled||void 0,onMouseEnter:()=>!e.disabled&&k(t),onClick:()=>se(e),className:[Y.option,e.value===S?Y[`option--selected`]:``,e.disabled?Y[`option--disabled`]:``].filter(Boolean).join(` `),children:[(0,r.jsx)(`span`,{className:Y.option__label,children:e.label}),e.value===S&&(0,r.jsx)(`span`,{className:Y.option__check,"aria-hidden":`true`,children:(0,r.jsx)(`svg`,{width:16,height:16,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,r.jsx)(`path`,{d:`M20 6 9 17l-5-5`})})})]},e.value))]}),document.body)]}),(t||i)&&(0,r.jsx)(`span`,{className:y?Y.field__error:Y.field__description,children:i||t})]})},Cr={sidebar:`_sidebar_alxv4_4`,"sidebar--collapsed":`_sidebar--collapsed_alxv4_23`},wr=({collapsed:e=!1,children:t,className:n})=>{let i=mn();return(0,r.jsxs)(`nav`,{ref:i.ref,...i.groupProps,className:[Cr.sidebar,e?Cr[`sidebar--collapsed`]:``,n??``].filter(Boolean).join(` `),"data-collapsed":e,children:[i.highlight,t]})},Tr={divider:`_divider_1oof5_1`},Er=()=>(0,r.jsx)(`div`,{className:Tr.divider,role:`separator`}),Dr={footer:`_footer_fj366_4`,"footer--collapsed":`_footer--collapsed_fj366_12`,footer__text:`_footer__text_fj366_14`,footer__title:`_footer__title_fj366_15`,footer__subtitle:`_footer__subtitle_fj366_16`,footer__menu:`_footer__menu_fj366_17`,footer__action:`_footer__action_fj366_31`},Or=({type:e=`user`,title:n,subtitle:i,avatarSrc:a,avatarInitials:s,collapsed:c,onMenu:l,onSignOut:u})=>{let d=(0,r.jsx)(k,{size:c?`sm`:`md`,src:a,initials:s,alt:n??`User`});return c?(0,r.jsx)(`div`,{className:[Dr.footer,Dr[`footer--collapsed`]].join(` `),children:d}):e===`actions`?(0,r.jsx)(`div`,{className:Dr.footer,children:(0,r.jsxs)(`button`,{type:`button`,"data-hover-item":``,className:Dr.footer__action,onClick:u,children:[(0,r.jsx)(t.o,{size:16,strokeWidth:o(16)}),` Sign out`]})}):(0,r.jsxs)(`div`,{className:Dr.footer,children:[d,(0,r.jsxs)(`span`,{className:Dr.footer__text,children:[n&&(0,r.jsx)(`span`,{className:Dr.footer__title,children:n}),i&&(0,r.jsx)(`span`,{className:Dr.footer__subtitle,children:i})]}),e===`user-menu`&&(0,r.jsx)(`button`,{type:`button`,"data-hover-item":``,className:Dr.footer__menu,onClick:l,"aria-label":`Open menu`,children:(0,r.jsx)(t.a,{size:16,strokeWidth:o(16)})})]})},kr={groupLabel:`_groupLabel_62q1j_2`},Ar=({children:e})=>(0,r.jsx)(`div`,{className:kr.groupLabel,children:e}),X={header:`_header_1guvs_2`,"header--collapsed":`_header--collapsed_1guvs_12`,"header--workspace":`_header--workspace_1guvs_15`,header__subtitle:`_header__subtitle_1guvs_20`,header__switch:`_header__switch_1guvs_21`,header__logoWrap:`_header__logoWrap_1guvs_24`,header__logo:`_header__logo_1guvs_23`,header__logoContent:`_header__logoContent_1guvs_55`,header__logoIcon:`_header__logoIcon_1guvs_56`,header__text:`_header__text_1guvs_62`,"header__text--collapsed":`_header__text--collapsed_1guvs_73`,header__title:`_header__title_1guvs_77`,header__toggle:`_header__toggle_1guvs_79`},jr=({type:e=`brand`,title:n,subtitle:i,logo:a,collapsed:s,onToggle:c,toggleIcon:l=t.i})=>(0,r.jsxs)(`div`,{className:[X.header,e===`workspace`?X[`header--workspace`]:``,s?X[`header--collapsed`]:``].filter(Boolean).join(` `),children:[a&&(s&&e===`brand-toggle`&&c?(0,r.jsx)(`button`,{type:`button`,className:X.header__logoWrap,onClick:c,"aria-label":`Expand sidebar`,children:(0,r.jsxs)(`span`,{className:X.header__logo,children:[(0,r.jsx)(`span`,{className:X.header__logoContent,children:a}),(0,r.jsx)(`span`,{className:X.header__logoIcon,"aria-hidden":`true`,children:(0,r.jsx)(l,{size:16,strokeWidth:o(16)})})]})}):(0,r.jsx)(`span`,{className:X.header__logoWrap,"aria-hidden":`true`,children:(0,r.jsx)(`span`,{className:X.header__logo,children:a})})),(0,r.jsxs)(`span`,{className:[X.header__text,s?X[`header__text--collapsed`]:``].filter(Boolean).join(` `),children:[(0,r.jsx)(`span`,{className:X.header__title,children:n}),(e===`workspace`||i)&&i&&(0,r.jsx)(`span`,{className:X.header__subtitle,children:i})]}),!s&&e===`workspace`&&(0,r.jsx)(`span`,{className:X.header__switch,"aria-hidden":`true`,children:(0,r.jsx)(t.a,{size:16,strokeWidth:o(16)})}),!s&&e===`brand-toggle`&&(0,r.jsx)(`button`,{type:`button`,className:X.header__toggle,onClick:c,"aria-label":`Collapse sidebar`,children:(0,r.jsx)(l,{size:18,strokeWidth:o(18)})})]}),Mr={item:`_item_1vb1j_5`,"item--disabled":`_item--disabled_1vb1j_38`,"item--active":`_item--active_1vb1j_38`,"item--active-flat":`_item--active-flat_1vb1j_38`,item__icon:`_item__icon_1vb1j_41`,item__bar:`_item__bar_1vb1j_53`,item__chevron:`_item__chevron_1vb1j_88`,item__badge:`_item__badge_1vb1j_90`,"item--collapsed":`_item--collapsed_1vb1j_112`,item__label:`_item__label_1vb1j_152`,"item__label--collapsed":`_item__label--collapsed_1vb1j_161`,"item__chevron--expanded":`_item__chevron--expanded_1vb1j_184`},Nr=({icon:e,label:n,active:i,activeIndicator:a=!0,disabled:s,badge:c,hasSubmenu:l,collapsed:u,expanded:d,onClick:f,href:p,nativeTooltip:m=!0})=>{let h=i&&a,g=i&&!a,_=[Mr.item,h?Mr[`item--active`]:``,g?Mr[`item--active-flat`]:``,s?Mr[`item--disabled`]:``,u?Mr[`item--collapsed`]:``].filter(Boolean).join(` `),v=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`span`,{className:Mr.item__bar,"aria-hidden":`true`}),e&&(0,r.jsx)(`span`,{className:Mr.item__icon,"aria-hidden":`true`,children:(0,r.jsx)(e,{size:18,strokeWidth:o(18)})}),(0,r.jsx)(`span`,{className:[Mr.item__label,u?Mr[`item__label--collapsed`]:``].filter(Boolean).join(` `),children:n}),!u&&c&&(0,r.jsx)(`span`,{className:Mr.item__badge,children:c}),!u&&l&&(0,r.jsx)(`span`,{className:[Mr.item__chevron,d?Mr[`item__chevron--expanded`]:``].filter(Boolean).join(` `),"aria-hidden":`true`,children:(0,r.jsx)(t.w,{size:16,strokeWidth:o(16)})})]}),y={className:_,"data-hover-item":``,title:u&&m?n:void 0,"aria-label":u?n:void 0,"aria-current":i?`page`:void 0,"aria-expanded":l&&d!==void 0?d:void 0};return p&&!s?(0,r.jsx)(`a`,{href:p,...y,children:v}):(0,r.jsx)(`button`,{type:`button`,disabled:s,onClick:f,...y,children:v})},Pr={promo:`_promo_6aber_4`,promo__head:`_promo__head_6aber_20`,promo__icon:`_promo__icon_6aber_21`,promo__title:`_promo__title_6aber_22`,promo__dismiss:`_promo__dismiss_6aber_23`,promo__desc:`_promo__desc_6aber_32`,promo__cta:`_promo__cta_6aber_35`},Fr=({type:e=`upgrade`,title:n,description:i,ctaLabel:a,onCta:s,onDismiss:c,icon:l=t.K})=>(0,r.jsxs)(`div`,{className:[Pr.promo,Pr[`promo--${e}`]].join(` `),children:[(0,r.jsxs)(`div`,{className:Pr.promo__head,children:[(0,r.jsx)(`span`,{className:Pr.promo__icon,"aria-hidden":`true`,children:(0,r.jsx)(l,{size:16,strokeWidth:o(16)})}),(0,r.jsx)(`span`,{className:Pr.promo__title,children:n}),c&&(0,r.jsx)(`button`,{type:`button`,className:Pr.promo__dismiss,onClick:c,"aria-label":`Dismiss`,children:(0,r.jsx)(t.W,{size:14,strokeWidth:o(14)})})]}),i&&(0,r.jsx)(`p`,{className:Pr.promo__desc,children:i}),a&&(0,r.jsx)(M,{variant:`primary`,size:`sm`,className:Pr.promo__cta,onClick:s,children:a})]}),Ir={subItem:`_subItem_175e3_2`,"subItem--disabled":`_subItem--disabled_175e3_27`,"subItem--active":`_subItem--active_175e3_29`,subItem__dot:`_subItem__dot_175e3_33`,subItem__label:`_subItem__label_175e3_43`},Lr=({label:e,active:t,disabled:n,onClick:i,href:a})=>{let o={className:[Ir.subItem,t?Ir[`subItem--active`]:``,n?Ir[`subItem--disabled`]:``].filter(Boolean).join(` `),"data-hover-item":``,"aria-current":t?`page`:void 0},s=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(`span`,{className:Ir.subItem__dot,"aria-hidden":`true`}),(0,r.jsx)(`span`,{className:Ir.subItem__label,children:e})]});return a&&!n?(0,r.jsx)(`a`,{href:a,...o,children:s}):(0,r.jsx)(`button`,{type:`button`,disabled:n,onClick:i,...o,children:s})},Rr={field:`_field_nlrnq_3`,header:`_header_nlrnq_4`,label:`_label_nlrnq_5`,value:`_value_nlrnq_6`,slider:`_slider_nlrnq_8`,"sakani-slider-bounce":`_sakani-slider-bounce_nlrnq_1`},zr=1.2,Br=460,Vr=n.default.forwardRef(({label:e,showValue:t,min:i=0,max:a=100,value:o,defaultValue:s,disabled:c,id:l,className:u,onChange:d,...f},p)=>{let m=n.default.useId(),h=l??m,g=Number(o??s??i),[_,v]=n.default.useState(g),y=o===void 0?_:Number(o),b=(y-i)/(a-i)*100,x=n.default.useRef(null),S=e=>{x.current=e,typeof p==`function`?p(e):p&&(p.current=e)},C=n.default.useRef(null),w=n.default.useRef(void 0);n.default.useEffect(()=>()=>window.clearTimeout(w.current),[]);let T=e=>{let t=x.current;t&&(t.removeAttribute(`data-bounce`),t.offsetWidth,t.style.setProperty(`--bounce-dir`,String(e)),t.setAttribute(`data-bounce`,``),window.clearTimeout(w.current),w.current=window.setTimeout(()=>t.removeAttribute(`data-bounce`),Br))};return(0,r.jsxs)(`div`,{className:[Rr.field,u??``].filter(Boolean).join(` `),children:[(e||t)&&(0,r.jsxs)(`div`,{className:Rr.header,children:[e&&(0,r.jsx)(`label`,{htmlFor:h,className:Rr.label,children:e}),t&&(0,r.jsx)(`span`,{className:Rr.value,children:y})]}),(0,r.jsx)(`input`,{ref:S,id:h,type:`range`,min:i,max:a,value:o,defaultValue:o===void 0?s:void 0,disabled:c,onChange:e=>{let t=Number(e.target.value),n=performance.now(),r=C.current;r&&(t===a||t===i)&&r.v!==t&&Math.abs(t-r.v)/(a-i)/Math.max((n-r.t)/1e3,.001)>=zr&&T(t===a?1:-1),C.current={v:t,t:n},o===void 0&&v(t),d?.(e)},className:Rr.slider,style:{"--pct":`${b}%`},...f})]})});Vr.displayName=`Slider`;var Hr={card:`_card_dglik_4`,"card--featured":`_card--featured_dglik_24`,card__head:`_card__head_dglik_26`,card__icon:`_card__icon_dglik_27`,card__title:`_card__title_dglik_41`,card__menu:`_card__menu_dglik_42`,card__value:`_card__value_dglik_52`,card__meta:`_card__meta_dglik_61`,card__sparkline:`_card__sparkline_dglik_68`,"card--trend-up":`_card--trend-up_dglik_70`,"card--trend-down":`_card--trend-down_dglik_71`,card__description:`_card__description_dglik_74`},Ur={up:t.B,down:t.z,flat:t.P},Wr={up:`success`,down:`danger`,flat:`neutral`},Gr=({data:e})=>{if(e.length<2)return null;let t=Math.min(...e),n=Math.max(...e)-t||1,i=e.map((r,i)=>`${i/(e.length-1)*100},${30-(r-t)/n*26}`).join(` `);return(0,r.jsx)(`svg`,{className:Kr,viewBox:`0 0 100 32`,preserveAspectRatio:`none`,"aria-hidden":`true`,children:(0,r.jsx)(`polyline`,{points:i,fill:`none`,strokeWidth:2,vectorEffect:`non-scaling-stroke`,strokeLinejoin:`round`,strokeLinecap:`round`})})},Kr=Hr.card__sparkline,qr=({title:e,value:n,description:i,sparkline:a,delta:s,trend:c=`up`,badgeVariant:l,variant:u=`minimal`,icon:d,showMenu:f,onMenu:p,className:m})=>{let h=Ur[c],g=(u===`icon`||u===`featured`)&&d;return(0,r.jsxs)(`div`,{className:[Hr.card,Hr[`card--${u}`],Hr[`card--trend-${c}`],m??``].filter(Boolean).join(` `),children:[(0,r.jsxs)(`div`,{className:Hr.card__head,children:[g&&(0,r.jsx)(`span`,{className:Hr.card__icon,"aria-hidden":`true`,children:(0,r.jsx)(d,{size:18,strokeWidth:o(18)})}),(0,r.jsx)(`span`,{className:Hr.card__title,children:e}),f&&(0,r.jsx)(`button`,{type:`button`,className:Hr.card__menu,onClick:p,"aria-label":`More options`,children:(0,r.jsx)(t.E,{size:16,strokeWidth:o(16)})})]}),(0,r.jsx)(`div`,{className:Hr.card__value,children:n}),a&&(0,r.jsx)(Gr,{data:a}),(s||i)&&(0,r.jsxs)(`div`,{className:Hr.card__meta,children:[s&&(0,r.jsx)(ct,{variant:l??Wr[c],leftIcon:(0,r.jsx)(h,{size:12,strokeWidth:2}),children:s}),i&&(0,r.jsx)(`p`,{className:Hr.card__description,children:i})]})]})},Jr={chip:`_chip_4ud55_4`,"chip--starter":`_chip--starter_4ud55_22`,"chip--follow-up":`_chip--follow-up_4ud55_23`,tile:`_tile_4ud55_25`,arrow:`_arrow_4ud55_34`,text:`_text_4ud55_36`,label:`_label_4ud55_37`,hint:`_hint_4ud55_38`,"chip-rise":`_chip-rise_4ud55_1`},Yr=n.default.forwardRef(({variant:e=`follow-up`,label:n,hint:i,icon:a,index:s=0,className:c,style:l,type:u=`button`,...d},f)=>{let p=a??(e===`follow-up`?t.O:void 0);return(0,r.jsx)(`button`,{ref:f,type:u,className:[Jr.chip,Jr[`chip--${e}`],c??``].filter(Boolean).join(` `),style:{"--chip-i":s,...l},...d,children:e===`starter`?(0,r.jsxs)(r.Fragment,{children:[p&&(0,r.jsx)(`span`,{className:Jr.tile,"aria-hidden":`true`,children:(0,r.jsx)(p,{size:16,strokeWidth:o(16)})}),(0,r.jsxs)(`span`,{className:Jr.text,children:[(0,r.jsx)(`span`,{className:Jr.label,children:n}),i&&(0,r.jsx)(`span`,{className:Jr.hint,children:i})]})]}):(0,r.jsxs)(r.Fragment,{children:[p&&(0,r.jsx)(`span`,{className:Jr.arrow,"aria-hidden":`true`,children:(0,r.jsx)(p,{size:14,strokeWidth:o(14)})}),(0,r.jsx)(`span`,{className:Jr.label,children:n})]})})});Yr.displayName=`SuggestionChip`;var Z={wrap:`_wrap_zhm3w_6`,"wrap--bordered":`_wrap--bordered_zhm3w_20`,table:`_table_zhm3w_25`,headerRow:`_headerRow_zhm3w_47`,headerCell:`_headerCell_zhm3w_48`,bodyRow:`_bodyRow_zhm3w_64`,"bodyRow--selectable":`_bodyRow--selectable_zhm3w_80`,"bodyRow--selected":`_bodyRow--selected_zhm3w_81`,bodyCell:`_bodyCell_zhm3w_85`,checkCell:`_checkCell_zhm3w_97`,checkbox:`_checkbox_zhm3w_121`,checkbox__input:`_checkbox__input_zhm3w_128`,checkbox__box:`_checkbox__box_zhm3w_130`,checkbox__check:`_checkbox__check_zhm3w_151`,checkbox__dash:`_checkbox__dash_zhm3w_158`,stackedList:`_stackedList_zhm3w_177`,card:`_card_zhm3w_184`,"card--selectable":`_card--selectable_zhm3w_193`,"card--selected":`_card--selected_zhm3w_195`,card__field:`_card__field_zhm3w_197`,card__label:`_card__label_zhm3w_205`,card__value:`_card__value_zhm3w_211`,card__selectRow:`_card__selectRow_zhm3w_221`,"bodyRow--dragging":`_bodyRow--dragging_zhm3w_231`,"bodyRow--dropTarget":`_bodyRow--dropTarget_zhm3w_232`,dragCell:`_dragCell_zhm3w_239`,dragHandle:`_dragHandle_zhm3w_255`},Xr=640;function Zr(e){let[t,r]=n.default.useState(!1);return n.default.useEffect(()=>{if(e!==`auto`)return;let t=window.matchMedia(`(max-width: ${Xr}px)`);r(t.matches);let n=e=>r(e.matches);return t.addEventListener(`change`,n),()=>t.removeEventListener(`change`,n)},[e]),e==="default"?`default`:e===`stacked`||t?`stacked`:`default`}var Qr=({checked:e,indeterminate:t,onChange:i,label:a})=>{let o=n.default.useRef(null);return n.default.useEffect(()=>{o.current&&(o.current.indeterminate=!!t)},[t]),(0,r.jsxs)(`label`,{className:Z.checkbox,children:[(0,r.jsx)(`input`,{ref:o,type:`checkbox`,checked:e,onChange:i,className:Z.checkbox__input,"aria-label":a}),(0,r.jsxs)(`span`,{className:Z.checkbox__box,"aria-hidden":`true`,children:[(0,r.jsx)(`svg`,{className:Z.checkbox__check,width:12,height:12,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:3,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,r.jsx)(`polyline`,{points:`20 6 9 17 4 12`})}),(0,r.jsx)(`span`,{className:Z.checkbox__dash})]})]})};function $r({columns:e,rows:i,selectable:a,selectedRows:o,onSelectionChange:s,rowKey:c,reorderable:l,onReorder:u,bordered:d=!0,responsive:f=`auto`,className:p}){let m=Zr(f),h=o!==void 0,[g,_]=n.default.useState([]),v=h?o:g,y=e=>{h||_(e),s?.(e)},b=i.length>0&&v.length===i.length,x=v.length>0&&!b,[S,C]=n.default.useState(null),[w,T]=n.default.useState(null),E=mn(),D=()=>{if(S===null||w===null||S===w){C(null),T(null);return}let e=[...i],[t]=e.splice(S,1);e.splice(w,0,t),u?.(e),C(null),T(null)},O=()=>y(b?[]:i.map((e,t)=>t)),k=e=>y(v.includes(e)?v.filter(t=>t!==e):[...v,e]),A=e=>t=>{t.target.closest(`a, button, input, select, textarea, label, [role="button"], [draggable="true"]`)||window.getSelection()?.isCollapsed&&k(e)};return m===`stacked`?(0,r.jsx)(`div`,{className:[Z.stackedList,p??``].filter(Boolean).join(` `),role:`list`,children:i.map((t,n)=>{let i=v.includes(n);return(0,r.jsxs)(`div`,{role:`listitem`,onClick:a?A(n):void 0,className:[Z.card,i?Z[`card--selected`]:``,a?Z[`card--selectable`]:``].filter(Boolean).join(` `),children:[a&&(0,r.jsx)(`div`,{className:Z.card__selectRow,children:(0,r.jsx)(Qr,{checked:i,onChange:()=>k(n),label:`Select row ${n+1}`})}),e.map(e=>(0,r.jsxs)(`div`,{className:Z.card__field,children:[(0,r.jsx)(`span`,{className:Z.card__label,children:e.header}),(0,r.jsx)(`span`,{className:Z.card__value,children:e.render?e.render(t):String(t[e.key]??``)})]},e.key))]},c?c(t,n):n)})}):(0,r.jsxs)(`div`,{ref:E.ref,...E.groupProps,className:[Z.wrap,d?Z[`wrap--bordered`]:``,p??``].filter(Boolean).join(` `),children:[E.highlight,(0,r.jsxs)(`table`,{className:Z.table,children:[(0,r.jsx)(`thead`,{children:(0,r.jsxs)(`tr`,{className:Z.headerRow,children:[l&&(0,r.jsx)(`th`,{className:Z.dragCell,"aria-hidden":`true`}),a&&(0,r.jsx)(`th`,{className:Z.checkCell,children:(0,r.jsx)(Qr,{checked:b,indeterminate:x,onChange:O,label:`Select all rows`})}),e.map(e=>(0,r.jsx)(`th`,{className:Z.headerCell,style:{textAlign:e.align??`left`,width:e.width},children:e.header},e.key))]})}),(0,r.jsx)(`tbody`,{children:i.map((n,i)=>{let o=v.includes(i);return(0,r.jsxs)(`tr`,{"data-hover-item":``,onClick:a?A(i):void 0,onDragOver:l?e=>{e.preventDefault(),T(i)}:void 0,onDrop:l?D:void 0,onDragEnd:l?()=>{C(null),T(null)}:void 0,className:[Z.bodyRow,a?Z[`bodyRow--selectable`]:``,o?Z[`bodyRow--selected`]:``,w===i&&S!==null&&S!==i?Z[`bodyRow--dropTarget`]:``,S===i?Z[`bodyRow--dragging`]:``].filter(Boolean).join(` `),children:[l&&(0,r.jsx)(`td`,{className:Z.dragCell,children:(0,r.jsx)(`span`,{className:Z.dragHandle,draggable:!0,onDragStart:e=>{e.dataTransfer.setDragImage(e.currentTarget.closest(`tr`),0,0),C(i)},"aria-hidden":`true`,children:(0,r.jsx)(t.r,{size:14,strokeWidth:1.5})})}),a&&(0,r.jsx)(`td`,{className:Z.checkCell,children:(0,r.jsx)(Qr,{checked:o,onChange:()=>k(i),label:`Select row ${i+1}`})}),e.map(e=>(0,r.jsx)(`td`,{className:Z.bodyCell,style:{textAlign:e.align??`left`},children:e.render?e.render(n):String(n[e.key]??``)},e.key))]},c?c(n,i):i)})})]})]})}var ei={tabs:`_tabs_sv2qu_3`,"tabs--borderless":`_tabs--borderless_sv2qu_16`,"tabs--fill":`_tabs--fill_sv2qu_21`,tab:`_tab_sv2qu_3`,"tab--disabled":`_tab--disabled_sv2qu_62`,"tab--active":`_tab--active_sv2qu_65`,indicator:`_indicator_sv2qu_76`,"indicator--animated":`_indicator--animated_sv2qu_90`},ti=({items:e,value:t,defaultValue:i,onChange:a,bordered:s=!0,fill:c=!1,className:l})=>{let u=t!==void 0,[d,f]=n.default.useState(i??e[0]?.value),p=u?t:d,m=e=>{u||f(e),a?.(e)},h=n.default.useRef(null),g=n.default.useRef({}),[_,v]=n.default.useState(null),[y,b]=n.default.useState(!1);return n.default.useLayoutEffect(()=>{let e=()=>{let e=g.current[p];!e||!h.current||v({left:e.offsetLeft,width:e.offsetWidth})};e();let t=window.requestAnimationFrame(()=>b(!0)),n=new ResizeObserver(e);return h.current&&n.observe(h.current),()=>{window.cancelAnimationFrame(t),n.disconnect()}},[p,e]),(0,r.jsxs)(`div`,{ref:h,role:`tablist`,className:[ei.tabs,s?``:ei[`tabs--borderless`],c?ei[`tabs--fill`]:``,l??``].filter(Boolean).join(` `),children:[e.map(e=>{let t=e.value===p,n=e.icon;return(0,r.jsxs)(`button`,{ref:t=>{g.current[e.value]=t},role:`tab`,type:`button`,"aria-selected":t,disabled:e.disabled,className:[ei.tab,t?ei[`tab--active`]:``,e.disabled?ei[`tab--disabled`]:``].filter(Boolean).join(` `),onClick:()=>m(e.value),children:[n&&(0,r.jsx)(n,{size:16,strokeWidth:o(16),"aria-hidden":`true`}),e.label]},e.value)}),_&&(0,r.jsx)(`span`,{"aria-hidden":`true`,className:[ei.indicator,y?ei[`indicator--animated`]:``].filter(Boolean).join(` `),style:{transform:`translateX(${_.left}px)`,width:_.width}})]})},ni={root:`_root_sn5o3_4`,text:`_text_sn5o3_13`,label:`_label_sn5o3_14`,shimmer:`_shimmer_sn5o3_1`,"label-in":`_label-in_sn5o3_1`},ri=1600,ii=({label:e=`Thinking`,className:t})=>{let i=n.default.useRef(null),a=n.default.useRef(null),o=n.default.useCallback(e=>{if(i.current=e,!e)return;let t=performance.now();a.current===null&&(a.current=t),e.style.animationDelay=`${-((t-a.current)%ri)}ms, 0ms`},[]),[s,c]=n.default.useState(void 0);return n.default.useLayoutEffect(()=>{i.current&&c(i.current.offsetWidth)},[e]),(0,r.jsxs)(`div`,{className:[ni.root,t??``].filter(Boolean).join(` `),role:`status`,"aria-live":`polite`,children:[(0,r.jsx)(fr,{size:16,beat:!0}),(0,r.jsx)(`span`,{className:ni.text,style:s===void 0?void 0:{width:s},children:(0,r.jsx)(`span`,{ref:o,className:ni.label,children:e},e)})]})},Q={root:`_root_1jby6_5`,"root--error":`_root--error_1jby6_12`,header:`_header_1jby6_14`,call:`_call_1jby6_21`,status:`_status_1jby6_22`,"root--done":`_root--done_1jby6_23`,signature:`_signature_1jby6_25`,name:`_name_1jby6_26`,args:`_args_1jby6_27`,meta:`_meta_1jby6_28`,duration:`_duration_1jby6_29`,chevron:`_chevron_1jby6_30`,panel:`_panel_1jby6_33`,panel__inner:`_panel__inner_1jby6_35`,details:`_details_1jby6_36`,section:`_section_1jby6_37`,overline:`_overline_1jby6_38`,code:`_code_1jby6_39`,"code--wait":`_code--wait_1jby6_44`,"code--error":`_code--error_1jby6_45`},ai=e=>typeof e==`string`?e:JSON.stringify(e,null,2),oi=({status:e=`done`,name:i,args:a,duration:s,input:c,output:l,open:u,defaultOpen:d=!1,onOpenChange:f,className:p})=>{let[m,h]=n.default.useState(d),g=u===void 0?m:u,_=()=>{let e=!g;u===void 0&&h(e),f?.(e)},v=n.default.useId(),y=c!==void 0||l!==void 0||e===`running`,b=e===`running`?`running`:e===`error`?`failed`:`done`;return(0,r.jsxs)(`div`,{className:[Q.root,Q[`root--${e}`],p??``].filter(Boolean).join(` `),"data-open":g||void 0,children:[(0,r.jsxs)(`button`,{type:`button`,className:Q.header,onClick:_,"aria-expanded":g,"aria-controls":v,disabled:!y,children:[(0,r.jsxs)(`span`,{className:Q.call,children:[(0,r.jsx)(`span`,{className:Q.status,role:`img`,"aria-label":b,children:e===`running`?(0,r.jsx)(fr,{size:16}):e===`error`?(0,r.jsx)(t.x,{size:16,strokeWidth:o(16)}):(0,r.jsx)(t.S,{size:16,strokeWidth:o(16)})}),(0,r.jsxs)(`span`,{className:Q.signature,children:[(0,r.jsx)(`span`,{className:Q.name,children:i}),a&&(0,r.jsx)(`span`,{className:Q.args,children:a})]})]}),(0,r.jsxs)(`span`,{className:Q.meta,children:[s&&(0,r.jsx)(`span`,{className:Q.duration,children:s}),y&&(0,r.jsx)(`span`,{className:Q.chevron,"aria-hidden":`true`,children:(0,r.jsx)(t.w,{size:16,strokeWidth:o(16)})})]})]}),y&&(0,r.jsx)(`div`,{id:v,className:Q.panel,role:`region`,"aria-label":`${i} details`,children:(0,r.jsx)(`div`,{className:Q.panel__inner,children:(0,r.jsxs)(`div`,{className:Q.details,children:[c!==void 0&&(0,r.jsxs)(`div`,{className:Q.section,children:[(0,r.jsx)(`span`,{className:Q.overline,children:`Input`}),(0,r.jsx)(`pre`,{className:Q.code,children:ai(c)})]}),(0,r.jsxs)(`div`,{className:Q.section,children:[(0,r.jsx)(`span`,{className:Q.overline,children:`Output`}),(0,r.jsx)(`pre`,{className:[Q.code,e===`error`?Q[`code--error`]:``,l===void 0?Q[`code--wait`]:``].filter(Boolean).join(` `),children:l===void 0?e===`running`?`Waiting for the result…`:`No output`:ai(l)})]})]})})})]})},si={wrapper:`_wrapper_es18h_8`,bubble:`_bubble_es18h_8`,bubble__title:`_bubble__title_es18h_46`,bubble__subtitle:`_bubble__subtitle_es18h_53`,caret:`_caret_es18h_66`,"bubble--top-left":`_bubble--top-left_es18h_69`,"bubble--top-center":`_bubble--top-center_es18h_70`,"bubble--top-right":`_bubble--top-right_es18h_71`,"caret--top-left":`_caret--top-left_es18h_80`,"caret--top-center":`_caret--top-center_es18h_81`,"caret--top-right":`_caret--top-right_es18h_82`,"bubble--bottom-left":`_bubble--bottom-left_es18h_93`,"bubble--bottom-center":`_bubble--bottom-center_es18h_94`,"bubble--bottom-right":`_bubble--bottom-right_es18h_95`,"caret--bottom-left":`_caret--bottom-left_es18h_104`,"caret--bottom-center":`_caret--bottom-center_es18h_105`,"caret--bottom-right":`_caret--bottom-right_es18h_106`,"bubble--center-left":`_bubble--center-left_es18h_117`,"caret--center-left":`_caret--center-left_es18h_127`,"bubble--center-right":`_bubble--center-right_es18h_137`,"caret--center-right":`_caret--center-right_es18h_147`},ci=({title:e,subtitle:t,pointer:i=`top-center`,children:a,className:o})=>{let[s,c]=n.default.useState(!1);return n.default.useEffect(()=>{let e=e=>{e.key===`Escape`&&c(!0)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[]),(0,r.jsxs)(`span`,{className:[si.wrapper,o??``].filter(Boolean).join(` `),"data-dismissed":s||void 0,onMouseLeave:()=>c(!1),onBlur:()=>c(!1),children:[a,(0,r.jsxs)(`span`,{role:`tooltip`,className:[si.bubble,si[`bubble--${i}`]].join(` `),children:[(0,r.jsx)(`span`,{className:si.bubble__title,children:e}),t&&(0,r.jsx)(`span`,{className:si.bubble__subtitle,children:t}),(0,r.jsx)(`span`,{className:[si.caret,si[`caret--${i}`]].join(` `),"aria-hidden":`true`})]})]})},$={bar:`_bar_179qu_2`,"bar--md":`_bar--md_179qu_11`,"bar--sm":`_bar--sm_179qu_12`,bar__leftGroup:`_bar__leftGroup_179qu_20`,bar__left:`_bar__left_179qu_20`,bar__spacer:`_bar__spacer_179qu_27`,bar__right:`_bar__right_179qu_30`,bar__icon:`_bar__icon_179qu_36`,bar__iconGroup:`_bar__iconGroup_179qu_44`,bar__bell:`_bar__bell_179qu_50`,bar__dot:`_bar__dot_179qu_51`,bar__divider:`_bar__divider_179qu_56`,bar__account:`_bar__account_179qu_57`,"bar--chat":`_bar--chat_179qu_63`,bar__chatAvatar:`_bar__chatAvatar_179qu_71`,bar__chatMeta:`_bar__chatMeta_179qu_72`,bar__chatTitle:`_bar__chatTitle_179qu_73`,bar__chatSubtitle:`_bar__chatSubtitle_179qu_78`,bar__chatActions:`_bar__chatActions_179qu_82`,"bar__left--search":`_bar__left--search_179qu_86`,bar__accountChevron:`_bar__accountChevron_179qu_100`,"bar__accountChevron--open":`_bar__accountChevron--open_179qu_106`},li=({type:e=`search`,density:n=`md`,left:i,showToggle:a=!0,onToggle:s,toggleIcon:c=t.n,showActions:l=!0,showHelp:u=!0,hasUnread:d=!1,rightSlot:f,account:p,accountOpen:m=!1,avatar:h,title:g,subtitle:_,actions:v,className:y})=>{let b=mn(),x=mn(),S=n===`md`?20:18,C=o(S);return(0,r.jsx)(`header`,{className:[$.bar,$[`bar--${n}`],$[`bar--${e}`],y??``].filter(Boolean).join(` `),children:e===`chat`?(0,r.jsxs)(r.Fragment,{children:[h&&(0,r.jsx)(`span`,{className:$.bar__chatAvatar,children:h}),(0,r.jsxs)(`span`,{className:$.bar__chatMeta,children:[g&&(0,r.jsx)(`span`,{className:$.bar__chatTitle,children:g}),_&&(0,r.jsx)(`span`,{className:$.bar__chatSubtitle,children:_})]}),(0,r.jsx)(`div`,{className:$.bar__spacer}),v&&(0,r.jsxs)(`div`,{ref:x.ref,...x.groupProps,className:$.bar__chatActions,children:[x.highlight,v]})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(`div`,{className:$.bar__leftGroup,children:[a&&(0,r.jsx)(`button`,{type:`button`,className:$.bar__icon,onClick:s,"aria-label":`Toggle sidebar`,children:(0,r.jsx)(c,{size:S,strokeWidth:C})}),(0,r.jsx)(`div`,{className:[$.bar__left,e===`search`?$[`bar__left--search`]:``].filter(Boolean).join(` `),"data-type":e,children:i})]}),(0,r.jsx)(`div`,{className:$.bar__spacer}),(0,r.jsxs)(`div`,{className:$.bar__right,children:[f,l&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(`span`,{ref:b.ref,...b.groupProps,className:$.bar__iconGroup,children:[b.highlight,u&&(0,r.jsx)(`button`,{type:`button`,"data-hover-item":``,className:$.bar__icon,"aria-label":`Help`,children:(0,r.jsx)(t.t,{size:S,strokeWidth:C})}),(0,r.jsx)(`button`,{type:`button`,"data-hover-item":``,className:$.bar__icon,"aria-label":`Notifications`,children:(0,r.jsxs)(`span`,{className:$.bar__bell,children:[(0,r.jsx)(t.L,{size:S,strokeWidth:C}),d&&(0,r.jsx)(`span`,{className:$.bar__dot,"aria-hidden":`true`})]})})]}),(0,r.jsx)(`span`,{className:$.bar__divider})]}),p&&(0,r.jsxs)(`div`,{className:$.bar__account,children:[p,(0,r.jsx)(t.I,{size:16,strokeWidth:o(16),className:[$.bar__accountChevron,m?$[`bar__accountChevron--open`]:``].filter(Boolean).join(` `)})]})]})]})})};Object.defineProperty(exports,"$",{enumerable:!0,get:function(){return Bt}}),Object.defineProperty(exports,"A",{enumerable:!0,get:function(){return Vn}}),Object.defineProperty(exports,"At",{enumerable:!0,get:function(){return se}}),Object.defineProperty(exports,"B",{enumerable:!0,get:function(){return hn}}),Object.defineProperty(exports,"Bt",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"C",{enumerable:!0,get:function(){return tr}}),Object.defineProperty(exports,"Ct",{enumerable:!0,get:function(){return He}}),Object.defineProperty(exports,"D",{enumerable:!0,get:function(){return Yn}}),Object.defineProperty(exports,"Dt",{enumerable:!0,get:function(){return ye}}),Object.defineProperty(exports,"E",{enumerable:!0,get:function(){return Qn}}),Object.defineProperty(exports,"Et",{enumerable:!0,get:function(){return be}}),Object.defineProperty(exports,"F",{enumerable:!0,get:function(){return Tn}}),Object.defineProperty(exports,"Ft",{enumerable:!0,get:function(){return ee}}),Object.defineProperty(exports,"G",{enumerable:!0,get:function(){return tn}}),Object.defineProperty(exports,"H",{enumerable:!0,get:function(){return cn}}),Object.defineProperty(exports,"Ht",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"I",{enumerable:!0,get:function(){return Cn}}),Object.defineProperty(exports,"It",{enumerable:!0,get:function(){return k}}),Object.defineProperty(exports,"J",{enumerable:!0,get:function(){return Yt}}),Object.defineProperty(exports,"K",{enumerable:!0,get:function(){return $t}}),Object.defineProperty(exports,"L",{enumerable:!0,get:function(){return xn}}),Object.defineProperty(exports,"Lt",{enumerable:!0,get:function(){return T}}),Object.defineProperty(exports,"M",{enumerable:!0,get:function(){return Nn}}),Object.defineProperty(exports,"Mt",{enumerable:!0,get:function(){return M}}),Object.defineProperty(exports,"N",{enumerable:!0,get:function(){return An}}),Object.defineProperty(exports,"Nt",{enumerable:!0,get:function(){return ae}}),Object.defineProperty(exports,"O",{enumerable:!0,get:function(){return Gn}}),Object.defineProperty(exports,"Ot",{enumerable:!0,get:function(){return _e}}),Object.defineProperty(exports,"P",{enumerable:!0,get:function(){return Dn}}),Object.defineProperty(exports,"Pt",{enumerable:!0,get:function(){return re}}),Object.defineProperty(exports,"Q",{enumerable:!0,get:function(){return Vt}}),Object.defineProperty(exports,"R",{enumerable:!0,get:function(){return yn}}),Object.defineProperty(exports,"Rt",{enumerable:!0,get:function(){return C}}),Object.defineProperty(exports,"S",{enumerable:!0,get:function(){return ar}}),Object.defineProperty(exports,"St",{enumerable:!0,get:function(){return Ee}}),Object.defineProperty(exports,"T",{enumerable:!0,get:function(){return Zn}}),Object.defineProperty(exports,"Tt",{enumerable:!0,get:function(){return Be}}),Object.defineProperty(exports,"U",{enumerable:!0,get:function(){return sn}}),Object.defineProperty(exports,"V",{enumerable:!0,get:function(){return mn}}),Object.defineProperty(exports,"Vt",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"W",{enumerable:!0,get:function(){return rn}}),Object.defineProperty(exports,"X",{enumerable:!0,get:function(){return Gt}}),Object.defineProperty(exports,"Y",{enumerable:!0,get:function(){return qt}}),Object.defineProperty(exports,"Z",{enumerable:!0,get:function(){return Ht}}),Object.defineProperty(exports,"_",{enumerable:!0,get:function(){return wr}}),Object.defineProperty(exports,"_t",{enumerable:!0,get:function(){return Qe}}),Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return ti}}),Object.defineProperty(exports,"at",{enumerable:!0,get:function(){return kt}}),Object.defineProperty(exports,"b",{enumerable:!0,get:function(){return yr}}),Object.defineProperty(exports,"bt",{enumerable:!0,get:function(){return Ke}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return qr}}),Object.defineProperty(exports,"ct",{enumerable:!0,get:function(){return gt}}),Object.defineProperty(exports,"d",{enumerable:!0,get:function(){return Fr}}),Object.defineProperty(exports,"dt",{enumerable:!0,get:function(){return ut}}),Object.defineProperty(exports,"et",{enumerable:!0,get:function(){return zt}}),Object.defineProperty(exports,"f",{enumerable:!0,get:function(){return Nr}}),Object.defineProperty(exports,"ft",{enumerable:!0,get:function(){return ct}}),Object.defineProperty(exports,"g",{enumerable:!0,get:function(){return Er}}),Object.defineProperty(exports,"gt",{enumerable:!0,get:function(){return $e}}),Object.defineProperty(exports,"h",{enumerable:!0,get:function(){return Or}}),Object.defineProperty(exports,"ht",{enumerable:!0,get:function(){return et}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return ii}}),Object.defineProperty(exports,"it",{enumerable:!0,get:function(){return jt}}),Object.defineProperty(exports,"j",{enumerable:!0,get:function(){return Ln}}),Object.defineProperty(exports,"jt",{enumerable:!0,get:function(){return oe}}),Object.defineProperty(exports,"k",{enumerable:!0,get:function(){return Hn}}),Object.defineProperty(exports,"kt",{enumerable:!0,get:function(){return he}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return Vr}}),Object.defineProperty(exports,"lt",{enumerable:!0,get:function(){return ht}}),Object.defineProperty(exports,"m",{enumerable:!0,get:function(){return Ar}}),Object.defineProperty(exports,"mt",{enumerable:!0,get:function(){return nt}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return ci}}),Object.defineProperty(exports,"nt",{enumerable:!0,get:function(){return Pt}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return $r}}),Object.defineProperty(exports,"ot",{enumerable:!0,get:function(){return Et}}),Object.defineProperty(exports,"p",{enumerable:!0,get:function(){return jr}}),Object.defineProperty(exports,"pt",{enumerable:!0,get:function(){return ot}}),Object.defineProperty(exports,"q",{enumerable:!0,get:function(){return Zt}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return oi}}),Object.defineProperty(exports,"rt",{enumerable:!0,get:function(){return Nt}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return Yr}}),Object.defineProperty(exports,"st",{enumerable:!0,get:function(){return wt}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return li}}),Object.defineProperty(exports,"tt",{enumerable:!0,get:function(){return It}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return Lr}}),Object.defineProperty(exports,"ut",{enumerable:!0,get:function(){return pt}}),Object.defineProperty(exports,"v",{enumerable:!0,get:function(){return Sr}}),Object.defineProperty(exports,"vt",{enumerable:!0,get:function(){return Ye}}),Object.defineProperty(exports,"w",{enumerable:!0,get:function(){return er}}),Object.defineProperty(exports,"wt",{enumerable:!0,get:function(){return Pe}}),Object.defineProperty(exports,"x",{enumerable:!0,get:function(){return sr}}),Object.defineProperty(exports,"xt",{enumerable:!0,get:function(){return Ge}}),Object.defineProperty(exports,"y",{enumerable:!0,get:function(){return xr}}),Object.defineProperty(exports,"yt",{enumerable:!0,get:function(){return qe}}),Object.defineProperty(exports,"z",{enumerable:!0,get:function(){return _n}}),Object.defineProperty(exports,"zt",{enumerable:!0,get:function(){return b}});
|