@sakaniui/react 0.3.29 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +37 -3
- package/dist/{TopBar-BFua2Hnk.js → TopBar-CqbWhR1n.js} +1751 -831
- package/dist/TopBar-D4DLhfly.cjs +1 -0
- package/dist/blocks/LiquidDashboardBlock/DashboardContent.d.ts +7 -0
- package/dist/blocks/LiquidDashboardBlock/LiquidDashboardBlock.d.ts +14 -0
- package/dist/blocks/LiquidDashboardBlock/index.d.ts +2 -0
- package/dist/blocks/LiquidDashboardBlock/parts/LegendRow.d.ts +9 -0
- package/dist/blocks/LiquidDashboardBlock/parts/Panel.d.ts +18 -0
- package/dist/blocks/LiquidDashboardBlock/parts/PeriodDropdown.d.ts +15 -0
- package/dist/blocks/LiquidDashboardBlock/parts/SearchExpand.d.ts +3 -0
- package/dist/blocks/LiquidDashboardBlock/parts/randomChartData.d.ts +20 -0
- package/dist/blocks/index.d.ts +2 -0
- package/dist/blocks.cjs +2 -1
- package/dist/blocks.mjs +3136 -2166
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.mjs +1132 -1836
- package/dist/style.css +1 -1
- package/dist/tokens.css +200 -0
- package/package.json +14 -3
- package/dist/TopBar-CvreVtZH.cjs +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./TopBar-CvreVtZH.cjs");let t=require("react");t=e.mt(t,1);let n=require("react/jsx-runtime"),r=require("lucide-react"),i=require("recharts");var a={announcement:`_announcement_1ba3c_1`,"announcement--neutral":`_announcement--neutral_1ba3c_13`,"announcement--urgent":`_announcement--urgent_1ba3c_16`,content:`_content_1ba3c_20`,icon:`_icon_1ba3c_28`,icon__neutral:`_icon__neutral_1ba3c_32`,message:`_message_1ba3c_36`,link:`_link_1ba3c_52`},o=({message:t,linkLabel:i,linkHref:o,onLinkClick:s,onDismiss:c,variant:l=`neutral`,className:u})=>{let d=l===`urgent`;return(0,n.jsxs)(`div`,{className:[a.announcement,a[`announcement--${l}`],u??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:a.content,children:[(0,n.jsx)(`span`,{className:a.icon,"aria-hidden":`true`,children:d?(0,n.jsx)(r.TriangleAlert,{size:24,strokeWidth:1.5,style:{fill:`var(--color-info-solid)`,stroke:`var(--color-info-bg)`}}):(0,n.jsx)(r.Sparkles,{size:24,strokeWidth:1.5,fill:`currentColor`,stroke:`currentColor`,className:a.icon__neutral})}),(0,n.jsx)(`p`,{className:a.message,children:t}),!d&&i&&(0,n.jsx)(e.st,{href:o,onClick:s,className:a.link,style:{color:`var(--color-brand-fg)`,fontSize:16,lineHeight:`24px`},children:i})]}),c&&(0,n.jsx)(e.ot,{icon:r.X,size:`sm`,variant:`ghost`,"aria-label":`Dismiss`,onClick:c})]})},s={snippet:`_snippet_1ao90_1`,header:`_header_1ao90_12`,filename:`_filename_1ao90_19`,body:`_body_1ao90_31`,tokenKeyword:`_tokenKeyword_1ao90_42`,tokenString:`_tokenString_1ao90_43`,editableBody:`_editableBody_1ao90_50`,textarea:`_textarea_1ao90_55`},c=[`import`,`export`,`from`,`default`,`function`,`return`,`const`,`let`,`var`,`if`,`else`,`for`,`while`,`class`,`extends`,`new`,`async`,`await`,`as`,`of`,`in`],l=RegExp(`('(?:[^'\\\\]|\\\\.)*'|"(?:[^"\\\\]|\\\\.)*"|\`(?:[^\`\\\\]|\\\\.)*\`|\\b(?:${c.join(`|`)})\\b)`,`g`),u=e=>e.split(l).map((e,r)=>{if(!e)return null;let i=/^['"`]/.test(e),a=!i&&c.includes(e);return i?(0,n.jsx)(`span`,{className:s.tokenString,children:e},r):a?(0,n.jsx)(`span`,{className:s.tokenKeyword,children:e},r):(0,n.jsx)(t.default.Fragment,{children:e},r)}),d=({code:i,filename:a,onCopy:o,editable:c=!1,onChange:l,placeholder:d,className:f})=>{let[p,m]=t.default.useState(!1),[h,g]=t.default.useState(i);t.default.useEffect(()=>g(i),[i]);let _=()=>{navigator.clipboard?.writeText(h),o?.(h),m(!0),window.setTimeout(()=>m(!1),1500)},v=e=>{g(e),l?.(e)},y=c?(0,n.jsxs)(`div`,{className:s.editableBody,children:[(0,n.jsx)(`pre`,{className:s.body,"aria-hidden":`true`,children:u(h)}),(0,n.jsx)(`textarea`,{className:s.textarea,value:h,placeholder:d,spellCheck:!1,onChange:e=>v(e.target.value),onKeyDown:e=>{if(e.key!==`Tab`)return;e.preventDefault();let t=e.currentTarget,{selectionStart:n,selectionEnd:r}=t,i=`${h.slice(0,n)} ${h.slice(r)}`;v(i),requestAnimationFrame(()=>{t.selectionStart=t.selectionEnd=n+2})}})]}):(0,n.jsx)(`pre`,{className:s.body,children:u(h)});return a?(0,n.jsxs)(`div`,{className:[s.snippet,f??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:s.header,children:[(0,n.jsx)(`p`,{className:s.filename,children:a}),(0,n.jsx)(e.ot,{icon:p?r.Check:r.Copy,variant:`ghost`,size:`sm`,"aria-label":p?`Copied`:`Copy code`,onClick:_})]}),y]}):(0,n.jsx)(`div`,{className:[s.snippet,f??``].filter(Boolean).join(` `),children:y})},f={expenses:`_expenses_1imiq_1`,row:`_row_1imiq_10`,top:`_top_1imiq_18`,left:`_left_1imiq_26`,icon:`_icon_1imiq_32`,label:`_label_1imiq_44`,amount:`_amount_1imiq_55`},p=e=>e.toLocaleString(`en-US`,{style:`currency`,currency:`USD`}),m=({categories:t,variant:r=`default`,formatAmount:i=p,className:a})=>{let o=r===`compact`,s=Math.max(1,...t.map(e=>e.amount));return(0,n.jsx)(`div`,{className:[f.expenses,a??``].filter(Boolean).join(` `),children:t.map((t,r)=>(0,n.jsxs)(`div`,{className:f.row,children:[(0,n.jsxs)(`div`,{className:f.top,children:[(0,n.jsxs)(`div`,{className:f.left,children:[(0,n.jsx)(`span`,{className:f.icon,"aria-hidden":`true`,children:t.icon}),(0,n.jsx)(`p`,{className:f.label,children:t.label})]}),(0,n.jsx)(`p`,{className:f.amount,children:i(t.amount)})]}),!o&&(0,n.jsx)(e.nt,{value:t.amount/s*100,size:`lg`,label:`${t.label} spending`})]},t.id??r))})},h={hint:`_hint_49nyi_1`,bar:`_bar_49nyi_9`,"hint--neutral":`_hint--neutral_49nyi_15`,"hint--warning":`_hint--warning_49nyi_16`,icon:`_icon_49nyi_18`,message:`_message_49nyi_24`},g=14,_=({message:t,variant:i=`neutral`,className:a})=>{let o=i===`warning`?r.TriangleAlert:r.Info;return(0,n.jsxs)(`div`,{className:[h.hint,h[`hint--${i}`],a??``].filter(Boolean).join(` `),children:[(0,n.jsx)(`span`,{className:h.bar,"aria-hidden":`true`}),(0,n.jsx)(o,{size:g,strokeWidth:e.pt(g),className:h.icon}),(0,n.jsx)(`p`,{className:h.message,children:t})]})},v={item:`_item_mg6gs_1`,"item--horizontal":`_item--horizontal_mg6gs_6`,"item--vertical":`_item--vertical_mg6gs_11`,value:`_value_mg6gs_16`,topRow:`_topRow_mg6gs_31`,connectorHorizontal:`_connectorHorizontal_mg6gs_36`,rail:`_rail_mg6gs_44`,connectorVertical:`_connectorVertical_mg6gs_51`,text:`_text_mg6gs_59`,title:`_title_mg6gs_65`,description:`_description_mg6gs_73`},y=({step:t,title:i,description:a,completed:o=!1,orientation:s=`horizontal`,isLast:c=!1,className:l})=>{let u=s===`vertical`,d=(0,n.jsx)(`span`,{className:v.value,"aria-hidden":`true`,children:o?(0,n.jsx)(r.Check,{size:14,strokeWidth:e.pt(14)}):t}),f=(0,n.jsxs)(`div`,{className:v.text,children:[(0,n.jsx)(`p`,{className:v.title,children:i}),a&&(0,n.jsx)(`p`,{className:v.description,children:a})]});return u?(0,n.jsxs)(`div`,{className:[v.item,v[`item--vertical`],l??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:v.rail,children:[d,!c&&(0,n.jsx)(`div`,{className:v.connectorVertical})]}),f]}):(0,n.jsxs)(`div`,{className:[v.item,v[`item--horizontal`],l??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:v.topRow,children:[d,!c&&(0,n.jsx)(`div`,{className:v.connectorHorizontal})]}),f]})},b={separator:`_separator_pcfo8_1`,line:`_line_pcfo8_9`,overline:`_overline_pcfo8_19`,badge:`_badge_pcfo8_31`,iconWrap:`_iconWrap_pcfo8_37`},x=({children:t,label:r,className:i})=>(0,n.jsxs)(`div`,{className:[b.separator,i??``].filter(Boolean).join(` `),role:`separator`,children:[(0,n.jsx)(e.tt,{className:b.line}),t??(r&&(0,n.jsx)(`span`,{className:b.overline,children:r})),(0,n.jsx)(e.tt,{className:b.line})]});function S(e){let[,n]=(0,t.useState)(0);return(0,t.useEffect)(()=>{if(typeof document>`u`)return;n(e=>e+1);let t=new MutationObserver(()=>n(e=>e+1)),r=new Set([document.documentElement]);for(let t=e.current;t;t=t.parentElement)r.add(t);return r.forEach(e=>t.observe(e,{attributes:!0,attributeFilter:[`class`]})),()=>t.disconnect()},[e]),t=>{if(typeof window>`u`)return;let n=e.current??document.documentElement;return getComputedStyle(n).getPropertyValue(t).trim()||void 0}}var C=[`#ff4700`,`#5b92dd`,`#47a8a2`,`#9179d6`,`#dca84f`,`#12b76a`],w={tooltip:`_tooltip_ic16u_3`,title:`_title_ic16u_23`,row:`_row_ic16u_27`,dot:`_dot_ic16u_34`,label:`_label_ic16u_41`,value:`_value_ic16u_42`},T=({active:e,payload:t,label:r,formatter:i})=>!e||!t||t.length===0?null:(0,n.jsxs)(`div`,{className:w.tooltip,children:[r!==void 0&&r!==``&&(0,n.jsx)(`span`,{className:w.title,children:r}),t.map((e,t)=>(0,n.jsxs)(`div`,{className:w.row,children:[(0,n.jsx)(`span`,{className:w.dot,style:{background:e.color??e.payload?.fill??e.fill}}),(0,n.jsx)(`span`,{className:w.label,children:e.name}),(0,n.jsx)(`span`,{className:w.value,children:i?i(e.value,e.name):e.value})]},t))]}),E={chart:`_chart_1s6lv_2`,legend:`_legend_1s6lv_31`,legendItem:`_legendItem_1s6lv_41`,legendSwatch:`_legendSwatch_1s6lv_46`},D={sm:180,md:240,lg:320,xl:420},O=6,k=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},A=({data:e,variant:r=`default`,size:a=`md`,seriesLabels:o=[`Value`,`Value 2`],className:s})=>{let[c,l]=t.default.useState(null),[u,d]=t.default.useState(null),f=t.default.useRef(null),p=S(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}`)??C[e-1]),v=p(`--color-border-subtle`)??`#e7e5e1`,y=p(`--color-fg-muted`)??`#78716a`,b=r===`multiple`||r===`stacked`,x=b&&e.some(e=>e.value2!==void 0),w=p(`--color-bg-canvas`)??`#fafaf9`,A=k(Math.max(1,...e.map(e=>Math.abs(e.value)))),j=[-A,-A/2,0,A/2,A],ee=(0,n.jsx)(i.Tooltip,{cursor:!1,content:(0,n.jsx)(T,{}),wrapperStyle:{zIndex:50},position:u?{y:u.y}:void 0}),M=t=>r===`active`?_[t%_.length]:r===`negative`&&e[t].value<0?g:m,N=e=>c!==null&&e!==c?.45:1,te=(e,t,n,r,i,a)=>({x:e?t+r:t+r/2,y:e?n+i/2:a<0?n+i:n}),ne=t=>a=>{let{x:o,y:s,width:c,height:l,fill:u,radius:d}=a,f=Number(e[a.index]?.[t]??0),{x:p,y:h}=te(r===`horizontal`,o,s,c,l,f);return r===`stacked`&&t===`value`?(0,n.jsx)(i.Rectangle,{x:o,y:s,width:c,height:l,fill:u,radius:d}):(0,n.jsxs)(`g`,{children:[(0,n.jsx)(i.Rectangle,{x:o,y:s,width:c,height:l,fill:u,radius:d}),(0,n.jsx)(`circle`,{cx:p,cy:h,r:4,fill:u,stroke:w,strokeWidth:1.5}),r===`stacked`&&t===`value2`&&(0,n.jsx)(`circle`,{cx:o+c/2,cy:s+l,r:4,fill:m,stroke:w,strokeWidth:1.5})]})},P=t=>(n,i)=>{l(i);let a=Number(e[i]?.[t]??0);d(te(r===`horizontal`,n.x,n.y,n.width,n.height,a))},re=()=>{l(null),d(null)};return(0,n.jsx)(`div`,{ref:f,className:[E.chart,s??``].filter(Boolean).join(` `),children:(0,n.jsx)(i.ResponsiveContainer,{width:`100%`,height:D[a],children:(0,n.jsxs)(i.BarChart,{data:e,layout:r===`horizontal`?`vertical`:`horizontal`,margin:{top:8,right:8,bottom:8,left:r===`horizontal`?8:0},children:[(0,n.jsx)(i.CartesianGrid,{strokeDasharray:`3 3`,stroke:v,horizontal:!0,vertical:r===`horizontal`}),r===`horizontal`?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.XAxis,{type:`number`,stroke:y,fontSize:12,tickLine:!1,axisLine:!1}),(0,n.jsx)(i.YAxis,{type:`category`,dataKey:`label`,stroke:y,fontSize:12,tickLine:!1,axisLine:!1,width:64})]}):(0,n.jsx)(i.XAxis,{dataKey:`label`,stroke:y,fontSize:12,tickLine:!1,axisLine:!1,interval:0}),r===`negative`&&(0,n.jsx)(i.YAxis,{hide:!0,domain:[-A,A],ticks:j}),ee,b&&(0,n.jsx)(i.Legend,{content:e=>(0,n.jsx)(`ul`,{className:E.legend,children:e.payload?.map(e=>(0,n.jsxs)(`li`,{className:E.legendItem,children:[(0,n.jsx)(`span`,{className:E.legendSwatch,style:{background:e.color}}),(0,n.jsx)(`span`,{style:{color:e.color},children:e.value})]},e.value))})}),b?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.Bar,{dataKey:`value`,name:o[0]??`Value`,fill:m,stackId:r===`stacked`?`stack`:void 0,radius:r===`stacked`?[0,0,O,O]:[O,O,O,O],isAnimationActive:!1,activeBar:ne(`value`),onMouseEnter:P(`value`),onMouseLeave:re,children:e.map((e,t)=>(0,n.jsx)(i.Cell,{fill:m,fillOpacity:c!==null&&t!==c?.45:1},t))}),x&&(0,n.jsx)(i.Bar,{dataKey:`value2`,name:o[1]??`Value 2`,fill:h,stackId:r===`stacked`?`stack`:void 0,radius:r===`stacked`?[O,O,0,0]:[O,O,O,O],isAnimationActive:!1,activeBar:ne(`value2`),onMouseEnter:P(`value2`),onMouseLeave:re,children:e.map((e,t)=>(0,n.jsx)(i.Cell,{fill:h,fillOpacity:c!==null&&t!==c?.45:1},t))})]}):(0,n.jsx)(i.Bar,{dataKey:`value`,name:`Value`,fill:c===null?m:M(c),radius:[O,O,O,O],isAnimationActive:!1,activeBar:ne(`value`),onMouseEnter:P(`value`),onMouseLeave:re,children:e.map((e,t)=>(0,n.jsx)(i.Cell,{fill:M(t),fillOpacity:N(t)},t))})]})})})},j={row:`_row_5wjem_2`,left:`_left_5wjem_16`,logo:`_logo_5wjem_23`,logoLg:`_logoLg_5wjem_29`,text:`_text_5wjem_36`,symbol:`_symbol_5wjem_42`,name:`_name_5wjem_50`,right:`_right_5wjem_59`,price:`_price_5wjem_65`,changeRow:`_changeRow_5wjem_73`,changeText:`_changeText_5wjem_78`,trendUp:`_trendUp_5wjem_84`,trendDown:`_trendDown_5wjem_85`,card:`_card_5wjem_88`,header:`_header_5wjem_102`,headerIcon:`_headerIcon_5wjem_109`,headerLabel:`_headerLabel_5wjem_110`,tickerRow:`_tickerRow_5wjem_117`,body:`_body_5wjem_125`,priceRow:`_priceRow_5wjem_132`,priceGroup:`_priceGroup_5wjem_139`,priceLg:`_priceLg_5wjem_144`,changeRowLg:`_changeRowLg_5wjem_153`,changeTextLg:`_changeTextLg_5wjem_158`,chart:`_chart_5wjem_165`},ee=e=>Math.abs(e).toLocaleString(`en-US`,{style:`currency`,currency:`USD`}),M=({logo:t,symbol:i,name:a,price:o,change:s,formatAmount:c=ee,chart:l,periodLabel:u=`Last 6 months`,onPeriodClick:d,className:f})=>{let p=s.amount>=0,m=p?r.TrendingUp:r.TrendingDown,h=p?`+`:`-`,g=`${h}${c(s.amount)} (${h}${Math.abs(s.percent)}%)`,_=p?j.trendUp:j.trendDown;return l?(0,n.jsxs)(`div`,{className:[j.card,f??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:j.header,children:[(0,n.jsx)(r.ChartColumn,{size:16,strokeWidth:e.pt(16),className:j.headerIcon}),(0,n.jsx)(`span`,{className:j.headerLabel,children:`Stock market`})]}),(0,n.jsxs)(`div`,{className:j.tickerRow,children:[(0,n.jsx)(`span`,{className:j.logoLg,"aria-hidden":`true`,children:t}),(0,n.jsxs)(`div`,{className:j.text,children:[(0,n.jsx)(`p`,{className:j.symbol,children:i}),(0,n.jsx)(`p`,{className:j.name,children:a})]})]}),(0,n.jsxs)(`div`,{className:j.body,children:[(0,n.jsxs)(`div`,{className:j.priceRow,children:[(0,n.jsxs)(`div`,{className:j.priceGroup,children:[(0,n.jsx)(`p`,{className:j.priceLg,children:c(o)}),(0,n.jsxs)(`div`,{className:j.changeRowLg,children:[(0,n.jsx)(m,{size:24,strokeWidth:e.pt(24),className:_}),(0,n.jsx)(`span`,{className:[j.changeTextLg,_].join(` `),children:g})]})]}),(0,n.jsx)(e.at,{variant:`outline`,size:`sm`,rightIcon:(0,n.jsx)(r.ChevronDown,{size:16,strokeWidth:e.pt(16)}),onClick:d,children:u})]}),(0,n.jsx)(A,{data:l,className:j.chart})]})]}):(0,n.jsxs)(`div`,{className:[j.row,f??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:j.left,children:[(0,n.jsx)(`span`,{className:j.logo,"aria-hidden":`true`,children:t}),(0,n.jsxs)(`div`,{className:j.text,children:[(0,n.jsx)(`p`,{className:j.symbol,children:i}),(0,n.jsx)(`p`,{className:j.name,children:a})]})]}),(0,n.jsxs)(`div`,{className:j.right,children:[(0,n.jsx)(`p`,{className:j.price,children:c(o)}),(0,n.jsxs)(`div`,{className:j.changeRow,children:[(0,n.jsx)(m,{size:20,strokeWidth:e.pt(20),className:_}),(0,n.jsx)(`span`,{className:[j.changeText,_].join(` `),children:g})]})]})]})},N={tags:`_tags_bsi1x_1`,remove:`_remove_bsi1x_8`,tag:`_tag_bsi1x_1`,"tag--leaving":`_tag--leaving_bsi1x_22`},te=160,ne=({tags:i,onRemove:a,className:o})=>{let[s,c]=t.default.useState(null),l=t.default.useRef(void 0);t.default.useEffect(()=>()=>window.clearTimeout(l.current),[]);let u=(e,t)=>{if(!(!a||s)){if(window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches){a(e,t);return}c(e),l.current=window.setTimeout(()=>{a(e,t),c(null)},te)}};return(0,n.jsx)(`div`,{className:[N.tags,o??``].filter(Boolean).join(` `),children:i.map((t,i)=>(0,n.jsx)(e.X,{className:[N.tag,s===t?N[`tag--leaving`]:``].filter(Boolean).join(` `),rightIcon:a&&(0,n.jsx)(`button`,{type:`button`,className:N.remove,onClick:()=>u(t,i),"aria-label":`Remove ${t}`,children:(0,n.jsx)(r.X,{size:12,strokeWidth:e.pt(12)})}),children:t},t))})},P={ticker:`_ticker_6xnxy_1`,track:`_track_6xnxy_9`,"ticker-scroll":`_ticker-scroll_6xnxy_1`,row:`_row_6xnxy_24`,item:`_item_6xnxy_33`,symbol:`_symbol_6xnxy_40`,change:`_change_6xnxy_49`,trendUp:`_trendUp_6xnxy_57`,trendDown:`_trendDown_6xnxy_58`,fadeLeft:`_fadeLeft_6xnxy_60`,fadeRight:`_fadeRight_6xnxy_61`},re=e=>`${e>=0?`+`:``}${e}%`,ie=({items:t,formatChange:i,ariaHidden:a})=>(0,n.jsx)(`div`,{className:P.row,"aria-hidden":a,children:t.map((t,a)=>{let o=t.changePercent>=0,s=o?r.TrendingUp:r.TrendingDown,c=o?P.trendUp:P.trendDown;return(0,n.jsxs)(`div`,{className:P.item,children:[(0,n.jsx)(`span`,{className:P.symbol,children:t.symbol}),(0,n.jsx)(s,{size:14,strokeWidth:e.pt(14),className:c}),(0,n.jsx)(`span`,{className:[P.change,c].join(` `),children:i(t.changePercent)})]},`${t.symbol}-${a}`)})}),ae=({items:e,speed:r=40,formatChange:i=re,className:a})=>{let o=t.default.useRef(null),[s,c]=t.default.useState(20);return t.default.useEffect(()=>{let e=o.current;if(!e)return;let t=e.firstElementChild;if(!t)return;let n=()=>{let e=t.scrollWidth;e>0&&c(e/r)};n();let i=new ResizeObserver(n);return i.observe(t),()=>i.disconnect()},[e,r]),(0,n.jsxs)(`div`,{className:[P.ticker,a??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{ref:o,className:P.track,style:{"--ticker-duration":`${s}s`},children:[(0,n.jsx)(ie,{items:e,formatChange:i}),(0,n.jsx)(ie,{items:e,formatChange:i,ariaHidden:!0})]}),(0,n.jsx)(`div`,{className:P.fadeLeft,"aria-hidden":`true`}),(0,n.jsx)(`div`,{className:P.fadeRight,"aria-hidden":`true`})]})},F={list:`_list_ovxee_1`,row:`_row_ovxee_9`,rowLast:`_rowLast_ovxee_18`,left:`_left_ovxee_22`,iconWrap:`_iconWrap_ovxee_29`,info:`_info_ovxee_41`,name:`_name_ovxee_46`,category:`_category_ovxee_54`,amount:`_amount_ovxee_63`,amountUp:`_amountUp_ovxee_71`,amountDown:`_amountDown_ovxee_72`,empty:`_empty_ovxee_75`,emptyIcon:`_emptyIcon_ovxee_86`,emptyTitle:`_emptyTitle_ovxee_89`,emptyDesc:`_emptyDesc_ovxee_96`},oe=e=>`${e>=0?`+`:`-`}${Math.abs(e).toLocaleString(`en-US`,{style:`currency`,currency:`USD`})}`,se=({transactions:t,formatAmount:i=oe,emptyTitle:a=`No transactions yet`,emptyDescription:o=`Your activity will show up here.`,className:s})=>t.length===0?(0,n.jsxs)(`div`,{className:[F.empty,s??``].filter(Boolean).join(` `),children:[(0,n.jsx)(r.Receipt,{size:24,strokeWidth:e.pt(24),className:F.emptyIcon}),(0,n.jsx)(`p`,{className:F.emptyTitle,children:a}),(0,n.jsx)(`p`,{className:F.emptyDesc,children:o})]}):(0,n.jsx)(`div`,{className:[F.list,s??``].filter(Boolean).join(` `),children:t.map((e,r)=>{let a=e.amount>=0;return(0,n.jsxs)(`div`,{className:[F.row,r===t.length-1?F.rowLast:``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:F.left,children:[(0,n.jsx)(`span`,{className:F.iconWrap,"aria-hidden":`true`,children:e.icon}),(0,n.jsxs)(`div`,{className:F.info,children:[(0,n.jsx)(`p`,{className:F.name,children:e.name}),(0,n.jsx)(`p`,{className:F.category,children:e.category})]})]}),(0,n.jsx)(`p`,{className:[F.amount,a?F.amountUp:F.amountDown].join(` `),children:i(e.amount)})]},e.id??`${e.name}-${r}`)})}),I={root:`_root_19qxp_1`,rootAttributed:`_rootAttributed_19qxp_10`,rootSimple:`_rootSimple_19qxp_18`,rail:`_rail_19qxp_27`,body:`_body_19qxp_37`,markRow:`_markRow_19qxp_46`,markRowEnd:`_markRowEnd_19qxp_51`,mark:`_mark_19qxp_46`,quoteAttributed:`_quoteAttributed_19qxp_59`,quoteSimple:`_quoteSimple_19qxp_68`,author:`_author_19qxp_77`,authorText:`_authorText_19qxp_83`,authorName:`_authorName_19qxp_91`},ce=({quote:t,author:i,className:a})=>{let o=!!i;return(0,n.jsxs)(`div`,{className:[I.root,o?I.rootAttributed:I.rootSimple,a??``].filter(Boolean).join(` `),children:[(0,n.jsx)(e.tt,{orientation:`vertical`,className:I.rail}),(0,n.jsxs)(`div`,{className:I.body,children:[o&&(0,n.jsx)(`span`,{className:I.markRow,"aria-hidden":`true`,children:(0,n.jsx)(r.Quote,{size:12,strokeWidth:e.pt(12),className:I.mark,fill:`currentColor`})}),(0,n.jsx)(`p`,{className:o?I.quoteAttributed:I.quoteSimple,children:o?t:`"${t}"`}),o&&(0,n.jsx)(`span`,{className:[I.markRow,I.markRowEnd].join(` `),"aria-hidden":`true`,children:(0,n.jsx)(r.Quote,{size:12,strokeWidth:e.pt(12),className:I.mark,fill:`currentColor`})}),i&&(0,n.jsxs)(`div`,{className:I.author,children:[(0,n.jsx)(e.ut,{size:`sm`,src:i.avatarSrc,alt:i.avatarAlt??i.name}),(0,n.jsxs)(`p`,{className:I.authorText,children:[(0,n.jsx)(`span`,{className:I.authorName,children:i.name}),(0,n.jsxs)(`span`,{className:I.authorRole,children:[`, `,i.role]})]})]})]})]})},le={root:`_root_btuyr_1`,rootLeft:`_rootLeft_btuyr_13`,rootTop:`_rootTop_btuyr_19`,ruleLeft:`_ruleLeft_btuyr_24`,ruleTop:`_ruleTop_btuyr_31`,text:`_text_btuyr_39`},ue=({text:e,align:t=`left`,className:r})=>(0,n.jsxs)(`div`,{className:[le.root,t===`top`?le.rootTop:le.rootLeft,r??``].filter(Boolean).join(` `),children:[(0,n.jsx)(`span`,{className:t===`top`?le.ruleTop:le.ruleLeft,"aria-hidden":`true`}),(0,n.jsx)(`p`,{className:le.text,children:e})]}),de={root:`_root_awxwk_1`,imageWrap:`_imageWrap_awxwk_10`,"root--large":`_root--large_awxwk_27`,"root--small":`_root--small_awxwk_33`,image:`_image_awxwk_10`,caption:`_caption_awxwk_47`},fe=({src:e,alt:t=``,size:r=`large`,caption:i,className:a})=>(0,n.jsxs)(`figure`,{className:[de.root,de[`root--${r}`],a??``].filter(Boolean).join(` `),children:[(0,n.jsx)(`span`,{className:de.imageWrap,children:(0,n.jsx)(`img`,{src:e,alt:t,className:de.image})}),i&&(0,n.jsx)(`figcaption`,{className:de.caption,children:i})]}),L={root:`_root_uc5r9_1`,rootCenter:`_rootCenter_uc5r9_10`,rootLeft:`_rootLeft_uc5r9_15`,title:`_title_uc5r9_20`,description:`_description_uc5r9_30`,ctaRow:`_ctaRow_uc5r9_39`,avatarBlock:`_avatarBlock_uc5r9_45`,avatarsCaption:`_avatarsCaption_uc5r9_57`},pe=({title:t,description:i,badgeLabel:a,primaryCta:o,secondaryCta:s,avatars:c,avatarsCaption:l,align:u=`center`,className:d})=>{let f=!!(o||s),p=!!(c&&c.length>0);return(0,n.jsxs)(`div`,{className:[L.root,u===`left`?L.rootLeft:L.rootCenter,d??``].filter(Boolean).join(` `),children:[a&&(0,n.jsx)(e.X,{variant:`accent`,emphasis:`subtle`,children:a}),(0,n.jsx)(`p`,{className:L.title,children:t}),i&&(0,n.jsx)(`p`,{className:L.description,children:i}),f&&(0,n.jsxs)(`div`,{className:L.ctaRow,children:[o&&(0,n.jsx)(e.at,{variant:`primary`,onClick:o.onClick,children:o.label}),s&&(0,n.jsx)(e.at,{variant:`secondary`,leftIcon:(0,n.jsx)(r.Play,{size:16,strokeWidth:e.pt(16),fill:`currentColor`}),onClick:s.onClick,children:s.label})]}),p&&(0,n.jsxs)(`div`,{className:L.avatarBlock,children:[(0,n.jsx)(e.N,{size:`md`,avatars:c}),l&&(0,n.jsx)(`p`,{className:L.avatarsCaption,children:l})]})]})},me={root:`_root_5kajg_1`,item:`_item_5kajg_12`,marker:`_marker_5kajg_18`,dot:`_dot_5kajg_26`,label:`_label_5kajg_34`},he=({items:t,style:i=`check`,className:a})=>(0,n.jsx)(`ul`,{className:[me.root,a??``].filter(Boolean).join(` `),children:t.map((t,a)=>(0,n.jsxs)(`li`,{className:me.item,children:[(0,n.jsxs)(`span`,{className:me.marker,"aria-hidden":`true`,children:[i===`check`&&(0,n.jsx)(r.Check,{size:18,strokeWidth:e.pt(18)}),i===`arrow`&&(0,n.jsx)(r.ArrowRight,{size:16,strokeWidth:e.pt(16)}),i===`bullet`&&(0,n.jsx)(`span`,{className:me.dot})]}),(0,n.jsx)(`span`,{className:me.label,children:t})]},a))}),ge={marquee:`_marquee_1pc4i_1`,track:`_track_1pc4i_13`,row:`_row_1pc4i_19`,item:`_item_1pc4i_25`,fadeLeft:`_fadeLeft_1pc4i_31`,fadeRight:`_fadeRight_1pc4i_32`},_e=({items:e,gap:t,ariaHidden:r})=>(0,n.jsx)(`div`,{className:ge.row,style:{gap:t,paddingRight:t},"aria-hidden":r,children:e.map((e,t)=>(0,n.jsx)(`div`,{className:ge.item,children:e},t))}),ve=({items:e,speed:r=40,gap:i,className:a})=>{let o=t.default.useRef(null),s=t.default.useRef(0),c=t.default.useRef(0),l=t.default.useRef(!1);return t.default.useEffect(()=>{let e=o.current?.firstElementChild;if(!e)return;let t=()=>{s.current=e.scrollWidth};t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[e,i]),t.default.useEffect(()=>{let e=o.current;if(!e||window.matchMedia(`(prefers-reduced-motion: reduce)`).matches)return;let t,n=performance.now(),i=()=>{let a=performance.now(),o=(a-n)/1e3;n=a;let u=l.current?r*.2:r,d=s.current;d>0&&(c.current=(c.current+u*o)%d,e.style.transform=`translateX(-${c.current}px)`),t=setTimeout(i,16)};return t=setTimeout(i,16),()=>clearTimeout(t)},[r]),(0,n.jsxs)(`div`,{className:[ge.marquee,a??``].filter(Boolean).join(` `),onMouseEnter:()=>{l.current=!0},onMouseLeave:()=>{l.current=!1},children:[(0,n.jsxs)(`div`,{ref:o,className:ge.track,children:[(0,n.jsx)(_e,{items:e,gap:i}),(0,n.jsx)(_e,{items:e,gap:i,ariaHidden:!0})]}),(0,n.jsx)(`div`,{className:ge.fadeLeft,"aria-hidden":`true`}),(0,n.jsx)(`div`,{className:ge.fadeRight,"aria-hidden":`true`})]})},ye={root:`_root_17a1b_1`,numRow:`_numRow_17a1b_9`,value:`_value_17a1b_15`,trend:`_trend_17a1b_25`,trendUp:`_trendUp_17a1b_35`,trendDown:`_trendDown_17a1b_39`,label:`_label_17a1b_43`},be=({value:t,label:i,trend:a,className:o})=>{let s=a!==void 0,c=s&&a>=0,l=c?r.TrendingUp:r.TrendingDown;return(0,n.jsxs)(`div`,{className:[ye.root,o??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:ye.numRow,children:[(0,n.jsx)(`p`,{className:ye.value,children:t}),s&&(0,n.jsxs)(`span`,{className:[ye.trend,c?ye.trendUp:ye.trendDown].join(` `),children:[(0,n.jsx)(l,{size:24,strokeWidth:e.pt(24)}),Math.abs(a),`%`]})]}),(0,n.jsx)(`p`,{className:ye.label,children:i})]})},R={root:`_root_scbx4_1`,header:`_header_scbx4_13`,label:`_label_scbx4_21`,toggle:`_toggle_scbx4_34`,fullWidth:`_fullWidth_scbx4_48`,collapse:`_collapse_scbx4_67`,collapseOpen:`_collapseOpen_scbx4_74`,collapseInner:`_collapseInner_scbx4_78`,navLinks:`_navLinks_scbx4_91`,navLink:`_navLink_scbx4_91`},xe=({label:i,links:a,ctaLabel:o=`Get started`,onCtaClick:s,open:c,defaultOpen:l=!1,onOpenChange:u,className:d})=>{let f=c!==void 0,[p,m]=t.default.useState(l),h=f?c:p,g=()=>{let e=!h;f||m(e),u?.(e)},_=t.default.useRef(null),[v,y]=t.default.useState(0);return t.default.useEffect(()=>{let e=_.current;if(!e)return;let t=()=>y(e.scrollHeight);t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[a,o]),(0,n.jsxs)(`div`,{className:[R.root,d??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:R.header,children:[(0,n.jsx)(`p`,{className:R.label,children:i}),(0,n.jsx)(`button`,{type:`button`,className:R.toggle,onClick:g,"aria-expanded":h,"aria-label":h?`Close menu`:`Open menu`,children:h?(0,n.jsx)(r.X,{size:16,strokeWidth:e.pt(16)}):(0,n.jsx)(r.Menu,{size:16,strokeWidth:e.pt(16)})})]}),(0,n.jsx)(`div`,{className:[R.collapse,h?R.collapseOpen:``].filter(Boolean).join(` `),style:{maxHeight:h?`${v}px`:`0px`},"aria-hidden":!h,children:(0,n.jsxs)(`div`,{ref:_,className:R.collapseInner,children:[(0,n.jsx)(`nav`,{className:R.navLinks,"aria-label":i,children:a.map(e=>(0,n.jsx)(`a`,{href:e.href,onClick:e.onClick,className:R.navLink,tabIndex:h?void 0:-1,children:e.label},e.label))}),(0,n.jsx)(e.tt,{className:R.fullWidth}),(0,n.jsx)(e.at,{variant:`primary`,className:R.fullWidth,onClick:s,tabIndex:h?void 0:-1,children:o})]})})]})},Se={root:`_root_lrpdp_1`,"root--sm":`_root--sm_lrpdp_14`,"root--md":`_root--md_lrpdp_18`,"root--lg":`_root--lg_lrpdp_22`,defaultMark:`_defaultMark_lrpdp_27`},Ce={sm:14,md:16,lg:18},we=({size:r=`md`,logo:i,label:a,className:o})=>{let s=Ce[r],c=t.default.isValidElement(i)?t.default.cloneElement(i,{size:s,strokeWidth:e.pt(s)}):i??(0,n.jsx)(`img`,{src:`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='28'%20height='28'%20viewBox='0%200%2028%2028'%20fill='none'%3e%3cpath%20d='M0%208C0%203.58172%203.58172%200%208%200H20C24.4183%200%2028%203.58172%2028%208V20C28%2024.4183%2024.4183%2028%2020%2028H8C3.58172%2028%200%2024.4183%200%2020V8Z'%20fill='%23FF4700'/%3e%3cpath%20d='M6.63704%2015.9944L20.6362%2014.491'%20stroke='%23FAFAF9'%20stroke-width='2.5'%20stroke-linecap='round'/%3e%3cpath%20d='M14.208%2022.884C12.848%2022.884%2011.664%2022.636%2010.656%2022.14C9.664%2021.644%208.88%2020.956%208.304%2020.076C7.728%2019.196%207.392%2018.172%207.296%2017.004L9.96%2016.836C10.072%2017.636%2010.304%2018.316%2010.656%2018.876C11.008%2019.42%2011.48%2019.836%2012.072%2020.124C12.68%2020.396%2013.408%2020.532%2014.256%2020.532C14.992%2020.532%2015.616%2020.444%2016.128%2020.268C16.656%2020.076%2017.056%2019.796%2017.328%2019.428C17.6%2019.06%2017.736%2018.612%2017.736%2018.084C17.736%2017.604%2017.616%2017.18%2017.376%2016.812C17.152%2016.428%2016.712%2016.084%2016.056%2015.78C15.416%2015.46%2014.472%2015.148%2013.224%2014.844C11.864%2014.508%2010.776%2014.14%209.96%2013.74C9.144%2013.34%208.552%2012.844%208.184%2012.252C7.832%2011.644%207.656%2010.9%207.656%2010.02C7.656%209.044%207.888%208.188%208.352%207.452C8.832%206.7%209.512%206.116%2010.392%205.7C11.272%205.284%2012.328%205.076%2013.56%205.076C14.856%205.076%2015.96%205.316%2016.872%205.796C17.8%206.276%2018.528%206.932%2019.056%207.764C19.6%208.596%2019.936%209.548%2020.064%2010.62L17.4%2010.764C17.32%2010.108%2017.12%209.532%2016.8%209.036C16.48%208.524%2016.048%208.132%2015.504%207.86C14.96%207.572%2014.296%207.428%2013.512%207.428C12.52%207.428%2011.736%207.66%2011.16%208.124C10.6%208.572%2010.32%209.172%2010.32%209.924C10.32%2010.404%2010.432%2010.812%2010.656%2011.148C10.896%2011.468%2011.312%2011.748%2011.904%2011.988C12.512%2012.228%2013.368%2012.484%2014.472%2012.756C15.944%2013.092%2017.112%2013.508%2017.976%2014.004C18.856%2014.484%2019.48%2015.052%2019.848%2015.708C20.216%2016.364%2020.4%2017.108%2020.4%2017.94C20.4%2018.948%2020.136%2019.828%2019.608%2020.58C19.096%2021.316%2018.376%2021.884%2017.448%2022.284C16.52%2022.684%2015.44%2022.884%2014.208%2022.884Z'%20fill='%23FAFAF9'/%3e%3c/svg%3e`,alt:``,width:s,height:s,className:Se.defaultMark});return(0,n.jsx)(`span`,{className:[Se.root,Se[`root--${r}`],o??``].filter(Boolean).join(` `),role:`img`,"aria-label":a??`Logo placeholder`,children:c})},z={root:`_root_ibchq_1`,rootCompact:`_rootCompact_ibchq_7`,rootDetailed:`_rootDetailed_ibchq_14`,infoCompact:`_infoCompact_ibchq_21`,infoDetailed:`_infoDetailed_ibchq_27`,name:`_name_ibchq_35`,role:`_role_ibchq_44`,bio:`_bio_ibchq_53`,social:`_social_ibchq_63`,socialBtn:`_socialBtn_ibchq_71`},Te=({name:t,role:r,avatarSrc:i,avatarAlt:a,bio:o,socialLinks:s=[],className:c})=>{let l=!!o||s.length>0;return(0,n.jsxs)(`div`,{className:[z.root,l?z.rootDetailed:z.rootCompact,c??``].filter(Boolean).join(` `),children:[(0,n.jsx)(e.ut,{size:`xl`,src:i,alt:a??t}),(0,n.jsxs)(`div`,{className:l?z.infoDetailed:z.infoCompact,children:[(0,n.jsx)(`p`,{className:z.name,children:t}),(0,n.jsx)(`p`,{className:z.role,children:r})]}),l&&o&&(0,n.jsx)(`p`,{className:z.bio,children:o}),l&&s.length>0&&(0,n.jsx)(`div`,{className:z.social,children:s.map((e,t)=>(0,n.jsx)(`a`,{href:e.href,onClick:e.onClick,className:z.socialBtn,"aria-label":e.label,children:e.icon},e.label??t))})]})},Ee={heading:`_heading_96cdx_1`,h2:`_h2_96cdx_8`,h3:`_h3_96cdx_14`},De=({children:e,level:t=`h2`,className:r})=>(0,n.jsx)(t,{className:[Ee.heading,Ee[t],r??``].filter(Boolean).join(` `),children:e}),Oe={paragraph:`_paragraph_8pqdi_1`},ke=({children:e,className:t})=>(0,n.jsx)(`p`,{className:[Oe.paragraph,t??``].filter(Boolean).join(` `),children:e}),Ae={rootBordered:`_rootBordered_5cgsj_1`,rail:`_rail_5cgsj_12`,contentHorizontal:`_contentHorizontal_5cgsj_18`,contentVertical:`_contentVertical_5cgsj_25`,textHorizontal:`_textHorizontal_5cgsj_33`,textVertical:`_textVertical_5cgsj_41`,title:`_title_5cgsj_49`,description:`_description_5cgsj_57`},je=({icon:r,title:i,description:a,layout:o=`horizontal`,leftBorder:s=!1,className:c})=>{let l=o===`vertical`,u=(0,n.jsxs)(`div`,{className:l?Ae.contentVertical:Ae.contentHorizontal,children:[(0,n.jsx)(e.P,{icon:r,size:`sm`,variant:`light`}),(0,n.jsxs)(`div`,{className:l?Ae.textVertical:Ae.textHorizontal,children:[(0,n.jsx)(`p`,{className:Ae.title,children:i}),(0,n.jsx)(`p`,{className:Ae.description,children:a})]})]});return s?(0,n.jsxs)(`div`,{className:[Ae.rootBordered,c??``].filter(Boolean).join(` `),children:[(0,n.jsx)(e.tt,{orientation:`vertical`,className:Ae.rail}),u]}):t.default.cloneElement(u,{className:[u.props.className,c??``].filter(Boolean).join(` `)})},Me={chart:`_chart_qqaox_2`},Ne={sm:180,md:240,lg:320,xl:420},Pe=({data:e,variant:r=`default`,seriesLabels:a=[`Value`,`Value 2`],size:o=`md`,height:s,className:c})=>{let l=t.default.useRef(null),u=S(l),d=u(`--color-chart-5`)??`#dca84f`,f=u(`--color-chart-2`)??`#5b92dd`,p=u(`--color-border-subtle`)??`#e7e5e1`,m=u(`--color-fg-muted`)??`#78716a`,h=e.some(e=>e.value2!==void 0),g=r===`step`?`step`:r===`linear`?`linear`:`monotone`,_=r===`stacked`?`stack`:void 0;return(0,n.jsx)(`div`,{ref:l,className:[Me.chart,c??``].filter(Boolean).join(` `),children:(0,n.jsx)(i.ResponsiveContainer,{width:`100%`,height:s??Ne[o],children:(0,n.jsxs)(i.AreaChart,{data:e,margin:{top:8,right:8,bottom:8,left:0},children:[(0,n.jsxs)(`defs`,{children:[(0,n.jsxs)(`linearGradient`,{id:`sakani-area-1`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,n.jsx)(`stop`,{offset:`5%`,stopColor:d,stopOpacity:.35}),(0,n.jsx)(`stop`,{offset:`95%`,stopColor:d,stopOpacity:.02})]}),(0,n.jsxs)(`linearGradient`,{id:`sakani-area-2`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,n.jsx)(`stop`,{offset:`5%`,stopColor:f,stopOpacity:.35}),(0,n.jsx)(`stop`,{offset:`95%`,stopColor:f,stopOpacity:.02})]})]}),(0,n.jsx)(i.CartesianGrid,{strokeDasharray:`3 3`,stroke:p,vertical:!1}),(0,n.jsx)(i.XAxis,{dataKey:`label`,stroke:m,fontSize:12,tickLine:!1,axisLine:!1,interval:0}),(0,n.jsx)(i.Tooltip,{cursor:{stroke:u(`--color-border-default`)??`#dbdad7`,strokeWidth:1},content:(0,n.jsx)(T,{}),wrapperStyle:{zIndex:50}}),h&&(0,n.jsx)(i.Area,{type:g,dataKey:`value2`,name:a[1]??`Value 2`,stackId:_,stroke:f,strokeWidth:2,fill:`url(#sakani-area-2)`,dot:!1,activeDot:{r:4,fill:f,stroke:u(`--color-bg-canvas`),strokeWidth:1.5}}),(0,n.jsx)(i.Area,{type:g,dataKey:`value`,name:a[0]??`Value`,stackId:_,stroke:d,strokeWidth:2,fill:`url(#sakani-area-1)`,dot:!1,activeDot:{r:4,fill:d,stroke:u(`--color-bg-canvas`),strokeWidth:1.5}})]})})})},B={col:`_col_1v24u_2`,col__header:`_col__header_1v24u_11`,col__dot:`_col__dot_1v24u_12`,col__title:`_col__title_1v24u_13`,col__count:`_col__count_1v24u_14`,col__spacer:`_col__spacer_1v24u_15`,col__action:`_col__action_1v24u_16`,col__body:`_col__body_1v24u_24`,col__drop:`_col__drop_1v24u_25`,col__add:`_col__add_1v24u_31`},Fe=({state:t=`default`,title:i,count:a,dotColor:o=`var(--color-chart-1)`,children:s,onAdd:c,onMenu:l,className:u})=>(0,n.jsxs)(`div`,{className:[B.col,u??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:B.col__header,children:[(0,n.jsx)(`span`,{className:B.col__dot,style:{background:o},"aria-hidden":`true`}),(0,n.jsx)(`span`,{className:B.col__title,children:i}),a!=null&&(0,n.jsx)(`span`,{className:B.col__count,children:a}),(0,n.jsx)(`span`,{className:B.col__spacer}),(0,n.jsx)(`button`,{type:`button`,className:B.col__action,onClick:c,"aria-label":`Add task`,children:(0,n.jsx)(r.Plus,{size:16,strokeWidth:e.pt(16)})}),(0,n.jsx)(`button`,{type:`button`,className:B.col__action,onClick:l,"aria-label":`Column options`,children:(0,n.jsx)(r.MoreHorizontal,{size:16,strokeWidth:e.pt(16)})})]}),(0,n.jsx)(`div`,{className:B.col__body,children:t===`empty`?(0,n.jsx)(`div`,{className:B.col__drop,children:`Drop tasks here`}):s}),(0,n.jsxs)(`button`,{type:`button`,className:B.col__add,onClick:c,children:[(0,n.jsx)(r.Plus,{size:16,strokeWidth:e.pt(16),"aria-hidden":`true`}),`Add task`]})]}),V={calendar:`_calendar_qvyxg_2`,header:`_header_qvyxg_14`,header__label:`_header__label_qvyxg_15`,navBtn:`_navBtn_qvyxg_16`,weekdays:`_weekdays_qvyxg_27`,weekday:`_weekday_qvyxg_27`,grid:`_grid_qvyxg_34`,day:`_day_qvyxg_35`,"day--default":`_day--default_qvyxg_49`,"day--hover":`_day--hover_qvyxg_50`,"day--selected":`_day--selected_qvyxg_51`,"day--today":`_day--today_qvyxg_52`,"day--in-range":`_day--in-range_qvyxg_53`,"day--outside":`_day--outside_qvyxg_54`,"day--disabled":`_day--disabled_qvyxg_55`,dropdowns:`_dropdowns_qvyxg_58`,dropdown:`_dropdown_qvyxg_58`},Ie=[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],Le=[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],Re=(e,t)=>!!e&&!!t&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate(),ze=e=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),Be=({mode:i=`single`,value:a,onChange:o,range:s,onRangeChange:c,headerType:l=`arrows`,defaultMonth:u,minDate:d,maxDate:f,className:p})=>{let[m,h]=t.default.useState(()=>{let e=u??a??s?.from??new Date;return new Date(e.getFullYear(),e.getMonth(),1)}),[g,_]=t.default.useState({}),v=e.E(),y=s===void 0?g:s,b=new Date,x=m.getFullYear(),S=m.getMonth(),C=new Date(x,S,1).getDay(),w=new Date(x,S,1-C),T=Array.from({length:42},(e,t)=>new Date(w.getFullYear(),w.getMonth(),w.getDate()+t)),E=e=>d&&e<ze(d)||f&&e>f,D=e=>{s===void 0&&_(e),c?.(e)},O=e=>{if(i===`single`){o?.(e);return}let{from:t,to:n}=y;D(!t||t&&n?{from:e,to:void 0}:e<t?{from:e,to:t}:{from:t,to:e})},k=e=>{if(E(e))return`disabled`;if(i===`single`){if(Re(e,a))return`selected`}else{let{from:t,to:n}=y;if(Re(e,t)||Re(e,n))return`selected`;if(t&&n&&e>t&&e<n)return`in-range`}return e.getMonth()===S?Re(e,b)?`today`:`default`:`outside`},A=d?d.getFullYear():x-10,j=f?f.getFullYear():x+10,ee=Array.from({length:j-A+1},(e,t)=>A+t);return(0,n.jsxs)(`div`,{className:[V.calendar,p??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:V.header,children:[(0,n.jsx)(`button`,{type:`button`,className:V.navBtn,onClick:()=>h(new Date(x,S-1,1)),"aria-label":`Previous month`,children:(0,n.jsx)(r.ChevronLeft,{size:16,strokeWidth:e.pt(16)})}),l===`dropdowns`?(0,n.jsxs)(`span`,{className:V.dropdowns,children:[(0,n.jsx)(`select`,{className:V.dropdown,value:S,onChange:e=>h(new Date(x,Number(e.target.value),1)),"aria-label":`Month`,children:Le.map((e,t)=>(0,n.jsx)(`option`,{value:t,children:e},e))}),(0,n.jsx)(`select`,{className:V.dropdown,value:x,onChange:e=>h(new Date(Number(e.target.value),S,1)),"aria-label":`Year`,children:ee.map(e=>(0,n.jsx)(`option`,{value:e,children:e},e))})]}):(0,n.jsxs)(`span`,{className:V.header__label,children:[Le[S],` `,x]}),(0,n.jsx)(`button`,{type:`button`,className:V.navBtn,onClick:()=>h(new Date(x,S+1,1)),"aria-label":`Next month`,children:(0,n.jsx)(r.ChevronRight,{size:16,strokeWidth:e.pt(16)})})]}),(0,n.jsx)(`div`,{className:V.weekdays,children:Ie.map(e=>(0,n.jsx)(`span`,{className:V.weekday,children:e},e))}),(0,n.jsxs)(`div`,{ref:v.ref,...v.groupProps,className:V.grid,children:[v.highlight,T.map((e,t)=>{let r=k(e);return(0,n.jsx)(`button`,{type:`button`,"data-hover-item":``,className:[V.day,V[`day--${r}`]].filter(Boolean).join(` `),disabled:r===`disabled`,"aria-current":r===`today`?`date`:void 0,"aria-selected":r===`selected`,"aria-label":e.toLocaleDateString(void 0,{weekday:`long`,year:`numeric`,month:`long`,day:`numeric`}),onClick:()=>O(e),children:e.getDate()},t)})]})]})},H={card:`_card_1567t_3`,"card--interactive":`_card--interactive_1567t_19`,card__header:`_card__header_1567t_27`,card__title:`_card__title_1567t_31`,card__description:`_card__description_1567t_40`,card__body:`_card__body_1567t_50`,card__actions:`_card__actions_1567t_54`,"card__actions--split":`_card__actions--split_1567t_63`,card__actionsGroup:`_card__actionsGroup_1567t_64`},Ve=({title:e,description:t,actions:r,leadingAction:i,interactive:a,children:o,className:s})=>(0,n.jsxs)(`div`,{className:[H.card,a?H[`card--interactive`]:``,s??``].filter(Boolean).join(` `),children:[(e||t)&&(0,n.jsxs)(`div`,{className:H.card__header,children:[e&&(0,n.jsx)(`h3`,{className:H.card__title,children:e}),t&&(0,n.jsx)(`p`,{className:H.card__description,children:t})]}),o&&(0,n.jsx)(`div`,{className:H.card__body,children:o}),(r||i)&&(i?(0,n.jsxs)(`div`,{className:[H.card__actions,H[`card__actions--split`]].join(` `),children:[i,(0,n.jsx)(`div`,{className:H.card__actionsGroup,children:r})]}):(0,n.jsx)(`div`,{className:H.card__actions,children:r}))]}),U={field:`_field_1oby0_7`,field__label:`_field__label_1oby0_8`,field__description:`_field__description_1oby0_9`,field__error:`_field__error_1oby0_10`,control:`_control_1oby0_13`,"control--sm":`_control--sm_1oby0_25`,"control--md":`_control--md_1oby0_26`,"control--lg":`_control--lg_1oby0_27`,"control--open":`_control--open_1oby0_30`,"control--error":`_control--error_1oby0_41`,"control--disabled":`_control--disabled_1oby0_46`,control__value:`_control__value_1oby0_52`,"control__value--placeholder":`_control__value--placeholder_1oby0_62`,control__input:`_control__input_1oby0_63`,control__chevron:`_control__chevron_1oby0_83`,"control__chevron--open":`_control__chevron--open_1oby0_84`,chips:`_chips_1oby0_90`,chip:`_chip_1oby0_90`,"chip--leaving":`_chip--leaving_1oby0_102`,"sakani-combobox-chip-out":`_sakani-combobox-chip-out_1oby0_1`,chip__remove:`_chip__remove_1oby0_110`,panel:`_panel_1oby0_121`,"panel--entering":`_panel--entering_1oby0_145`,"sakani-combobox-panel-in":`_sakani-combobox-panel-in_1oby0_1`,"panel--exiting":`_panel--exiting_1oby0_146`,"sakani-combobox-panel-out":`_sakani-combobox-panel-out_1oby0_1`,panel__empty:`_panel__empty_1oby0_156`,option:`_option_1oby0_164`,"option--selected":`_option--selected_1oby0_189`,"option--disabled":`_option--disabled_1oby0_190`,optionHighlight:`_optionHighlight_1oby0_165`,"optionHighlight--animated":`_optionHighlight--animated_1oby0_221`,option__box:`_option__box_1oby0_228`,"option__box--checked":`_option__box--checked_1oby0_245`,option__icon:`_option__icon_1oby0_250`,option__label:`_option__label_1oby0_251`,option__check:`_option__check_1oby0_252`,panel__loading:`_panel__loading_1oby0_255`,panel__spinner:`_panel__spinner_1oby0_259`,"sakani-cb-spin":`_sakani-cb-spin_1oby0_1`},He=({options:r,mode:i=`single`,size:a=`md`,label:o,description:s,error:c,placeholder:l=`Select...`,disabled:u,loading:d,value:f,onChange:p,className:m})=>{let h=t.default.useId(),[g,_]=t.default.useState(!1),[v,y]=t.default.useState(!1),[b,x]=t.default.useState(0),S=t.default.useRef(null),C=r;t.default.useEffect(()=>{g&&y(!0)},[g]);let w=t.default.useRef({}),T=t.default.useRef(null),[E,D]=t.default.useState(null),[O,k]=t.default.useState(!1);t.default.useLayoutEffect(()=>{let e=w.current[b];if(!e){D(null);return}D({top:e.offsetTop,height:e.offsetHeight})},[b,C.length]),t.default.useLayoutEffect(()=>{if(!v){k(!1);return}k(!1);let e=window.requestAnimationFrame(()=>k(!0));return()=>window.cancelAnimationFrame(e)},[v]),t.default.useEffect(()=>{if(!T.current)return;let e=new ResizeObserver(()=>{let e=w.current[b];e&&D({top:e.offsetTop,height:e.offsetHeight})});return e.observe(T.current),()=>e.disconnect()},[v]);let[A,j]=t.default.useState(i===`multi`?[]:``),ee=f===void 0?A:f,M=Array.isArray(ee)?ee:ee?[ee]:[],[N,te]=t.default.useState(()=>M.map(e=>({value:e,leaving:!1}))),ne=M.join(`\0`);t.default.useLayoutEffect(()=>{te(e=>{let t=e.map(e=>({value:e.value,leaving:!M.includes(e.value)}));for(let e of M)t.some(t=>t.value===e)||t.push({value:e,leaving:!1});return t})},[ne]);let P=e=>te(t=>t.filter(t=>!(t.value===e&&t.leaving))),re=!!c;t.default.useEffect(()=>{let e=e=>{S.current&&!S.current.contains(e.target)&&_(!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[]);let ie=e=>{f===void 0&&j(e),p?.(e)},ae=e=>{if(!e.disabled)if(i===`multi`){let t=new Set(M);t.has(e.value)?t.delete(e.value):t.add(e.value),ie([...t])}else ie(e.value),_(!1)},F=e=>r.find(t=>t.value===e)?.label??e,oe=M.length?F(M[0]):``,se=e=>{u||(e.key===`ArrowDown`?(e.preventDefault(),_(!0),x(e=>Math.min(e+1,C.length-1))):e.key===`ArrowUp`?(e.preventDefault(),x(e=>Math.max(e-1,0))):e.key===`Enter`?(e.preventDefault(),g&&C[b]?ae(C[b]):_(!0)):e.key===`Escape`&&_(!1))},I=u?`disabled`:re?`error`:g?`open`:`default`;return(0,n.jsxs)(`div`,{className:[U.field,m??``].filter(Boolean).join(` `),ref:S,children:[o&&(0,n.jsx)(`label`,{htmlFor:`${h}-trigger`,className:U.field__label,children:o}),(0,n.jsxs)(`div`,{id:`${h}-trigger`,role:`combobox`,tabIndex:u?-1:0,"aria-haspopup":`listbox`,"aria-expanded":g,"aria-controls":`${h}-panel`,"aria-invalid":re||void 0,"aria-disabled":u||void 0,"aria-activedescendant":g&&C[b]?`${h}-opt-${b}`:void 0,className:[U.control,U[`control--${a}`],U[`control--${I}`]].join(` `),onClick:()=>!u&&_(e=>!e),onKeyDown:se,children:[i===`multi`&&N.length>0&&(0,n.jsx)(`div`,{className:U.chips,children:N.map(({value:e,leaving:t})=>(0,n.jsxs)(`span`,{className:[U.chip,t?U[`chip--leaving`]:``].filter(Boolean).join(` `),"aria-hidden":t||void 0,onAnimationEnd:t?()=>P(e):void 0,children:[F(e),(0,n.jsx)(`button`,{type:`button`,className:U.chip__remove,tabIndex:t?-1:void 0,onClick:t=>{t.stopPropagation(),ae(r.find(t=>t.value===e))},"aria-label":`Remove ${F(e)}`,children:`×`})]},e))}),!(i===`multi`&&N.length>0)&&(0,n.jsx)(`span`,{className:[U.control__value,i===`single`&&oe?``:U[`control__value--placeholder`]].filter(Boolean).join(` `),children:i===`single`&&oe?oe:l}),(0,n.jsx)(`span`,{className:[U.control__chevron,g?U[`control__chevron--open`]:``].join(` `),"aria-hidden":`true`,children:(0,n.jsx)(`svg`,{width:16,height:16,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:e.pt(16),strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,n.jsx)(`path`,{d:`m6 9 6 6 6-6`})})})]}),v&&!u&&(0,n.jsx)(`div`,{ref:T,className:[U.panel,g?U[`panel--entering`]:U[`panel--exiting`]].filter(Boolean).join(` `),id:`${h}-panel`,role:`listbox`,"aria-multiselectable":i===`multi`||void 0,"aria-busy":d||void 0,onAnimationEnd:()=>{g||y(!1)},children:d?(0,n.jsxs)(`div`,{className:U.panel__loading,children:[(0,n.jsx)(`span`,{className:U.panel__spinner,"aria-hidden":`true`}),`Loading…`]}):C.length===0?(0,n.jsx)(`div`,{className:U.panel__empty,children:`No options available`}):(0,n.jsxs)(n.Fragment,{children:[E&&(0,n.jsx)(`span`,{"aria-hidden":`true`,className:[U.optionHighlight,O?U[`optionHighlight--animated`]:``].filter(Boolean).join(` `),style:{transform:`translateY(${E.top}px)`,height:E.height}}),C.map((t,r)=>{let a=M.includes(t.value);return(0,n.jsxs)(`div`,{ref:e=>{w.current[r]=e},id:`${h}-opt-${r}`,role:`option`,"aria-selected":a,className:[U.option,a&&i===`single`?U[`option--selected`]:``,t.disabled?U[`option--disabled`]:``].filter(Boolean).join(` `),onMouseEnter:()=>{t.disabled||x(r)},onClick:()=>ae(t),children:[i===`multi`&&(0,n.jsx)(`span`,{className:[U.option__box,a?U[`option__box--checked`]:``].filter(Boolean).join(` `),"aria-hidden":`true`,children:(0,n.jsx)(`svg`,{width:12,height:12,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:e.pt(12),strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,n.jsx)(`polyline`,{points:`20 6 9 17 4 12`})})}),t.icon&&(0,n.jsx)(`span`,{className:U.option__icon,"aria-hidden":`true`,children:t.icon}),(0,n.jsx)(`span`,{className:U.option__label,children:t.label}),a&&i===`single`&&(0,n.jsx)(`span`,{className:U.option__check,"aria-hidden":`true`,children:(0,n.jsx)(`svg`,{width:16,height:16,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,n.jsx)(`polyline`,{points:`20 6 9 17 4 12`})})})]},t.value)})]})}),(s||c)&&(0,n.jsx)(`span`,{className:re?U.field__error:U.field__description,children:c||s})]})},Ue={chart:`_chart_aiboa_2`,center:`_center_aiboa_26`,center__value:`_center__value_aiboa_35`,center__caption:`_center__caption_aiboa_36`},We={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}},Ge=({data:e,size:r=`md`,centerValue:a,centerCaption:o,height:s,className:c})=>{let[l,u]=t.default.useState(null),[d,f]=t.default.useState(null),p=e=>{let t=e.currentTarget.getBoundingClientRect();f({x:e.clientX-t.left,y:e.clientY-t.top})},m=t.default.useRef(null),h=S(m),g=[1,2,3,4,5].map(e=>h(`--color-chart-${e}`)??C[e-1]),_={...We[r],h:s??We[r].h},v=(_.outer-_.inner)/2-7;return(0,n.jsxs)(`div`,{ref:m,className:[Ue.chart,c??``].filter(Boolean).join(` `),style:{height:_.h},onMouseMove:p,children:[(0,n.jsx)(i.ResponsiveContainer,{width:`100%`,height:`100%`,children:(0,n.jsxs)(i.PieChart,{children:[(0,n.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,n.jsx)(i.Cell,{fill:g[t%g.length],fillOpacity:l!==null&&t!==l?.45:1},t))}),(0,n.jsx)(i.Tooltip,{content:(0,n.jsx)(T,{}),wrapperStyle:{zIndex:50},position:d??void 0})]})}),(a||o)&&(0,n.jsxs)(`div`,{className:Ue.center,children:[a&&(0,n.jsx)(`span`,{className:Ue.center__value,children:a}),o&&(0,n.jsx)(`span`,{className:Ue.center__caption,children:o})]})]})},W={wrap:`_wrap_1j16e_2`,dropzone:`_dropzone_1j16e_4`,"dropzone--dragging":`_dropzone--dragging_1j16e_21`,dropzone__icon:`_dropzone__icon_1j16e_23`,dropzone__label:`_dropzone__label_1j16e_28`,dropzone__link:`_dropzone__link_1j16e_29`,dropzone__hint:`_dropzone__hint_1j16e_30`,input:`_input_1j16e_32`,files:`_files_1j16e_35`,file:`_file_1j16e_35`,file__icon:`_file__icon_1j16e_45`,file__name:`_file__name_1j16e_46`,file__remove:`_file__remove_1j16e_47`},Ke=({accept:i,multiple:a,hint:o=`SVG, PNG, JPG or PDF (max. 2MB)`,onFilesChange:s,className:c})=>{let l=t.default.useRef(null),[u,d]=t.default.useState(!1),[f,p]=t.default.useState([]),m=e=>{p(e),s?.(e)},h=e=>{if(!e)return;let t=Array.from(e);m(a?[...f,...t]:t.slice(0,1))},g=e=>m(f.filter((t,n)=>n!==e));return(0,n.jsxs)(`div`,{className:[W.wrap,c??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:[W.dropzone,u?W[`dropzone--dragging`]:``].filter(Boolean).join(` `),onClick:()=>l.current?.click(),onDragOver:e=>{e.preventDefault(),d(!0)},onDragLeave:()=>d(!1),onDrop:e=>{e.preventDefault(),d(!1),h(e.dataTransfer.files)},role:`button`,tabIndex:0,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&l.current?.click()},children:[(0,n.jsx)(`span`,{className:W.dropzone__icon,"aria-hidden":`true`,children:(0,n.jsx)(r.UploadCloud,{size:22,strokeWidth:e.pt(22)})}),(0,n.jsxs)(`span`,{className:W.dropzone__label,children:[(0,n.jsx)(`span`,{className:W.dropzone__link,children:`Click to upload`}),` or drag and drop`]}),(0,n.jsx)(`span`,{className:W.dropzone__hint,children:o}),(0,n.jsx)(`input`,{ref:l,type:`file`,accept:i,multiple:a,className:W.input,onChange:e=>h(e.target.files)})]}),f.length>0&&(0,n.jsx)(`ul`,{className:W.files,children:f.map((t,i)=>(0,n.jsxs)(`li`,{className:W.file,children:[(0,n.jsx)(`span`,{className:W.file__icon,"aria-hidden":`true`,children:(0,n.jsx)(r.File,{size:16,strokeWidth:e.pt(16)})}),(0,n.jsx)(`span`,{className:W.file__name,children:t.name}),(0,n.jsx)(`button`,{type:`button`,className:W.file__remove,onClick:()=>g(i),"aria-label":`Remove ${t.name}`,children:(0,n.jsx)(r.X,{size:14,strokeWidth:e.pt(14)})})]},i))})]})},G={chart:`_chart_1m9hd_1`,svg:`_svg_1m9hd_7`,segment:`_segment_1m9hd_12`,pctLabel:`_pctLabel_1m9hd_19`,labels:`_labels_1m9hd_27`,labelItem:`_labelItem_1m9hd_31`,tooltip:`_tooltip_1m9hd_41`,tooltip__title:`_tooltip__title_1m9hd_54`,tooltip__row:`_tooltip__row_1m9hd_60`,tooltip__dot:`_tooltip__dot_1m9hd_68`,tooltip__label:`_tooltip__label_1m9hd_74`,tooltip__value:`_tooltip__value_1m9hd_75`},qe={sm:180,md:240,lg:320,xl:420},Je=560,Ye=.3,Xe=.55,Ze=({data:e,size:r=`md`,className:i})=>{let[a,o]=t.default.useState(null),s=t.default.useRef(null),c=S(s),l=c(`--color-chart-1`)??`#ff4700`,u=c(`--color-bg-canvas`)??`#fafaf9`,d=e[0]?.value||1,f=qe[r],p=f*.66,m=p/2+8,h=Je/e.length,g=e[0]?.value||1,_=e=>e/g*p,v=e.map(e=>_(e.value));v.push(_(e[e.length-1]?.value??0)*Xe);let y=t=>e.length<=1?1:Ye+t/(e.length-1)*(1-Ye),b=a===null?null:e[a],x=a===null?0:m-v[a]/2,C=a===null?0:a*h+h/2;return(0,n.jsxs)(`div`,{ref:s,className:[G.chart,i??``].filter(Boolean).join(` `),style:{height:f},children:[(0,n.jsx)(`svg`,{viewBox:`0 0 ${Je} ${f}`,width:`100%`,height:f,className:G.svg,children:e.map((e,t)=>{let r=t*h,i=(t+1)*h,s=(r+i)/2,c=v[t]/2,u=v[t+1]/2,f=m-c,p=m-u,g=m+c,_=m+u,b=[`M ${r} ${f}`,`C ${s} ${f} ${s} ${p} ${i} ${p}`,`L ${i} ${_}`,`C ${s} ${_} ${s} ${g} ${r} ${g}`,`Z`].join(` `),x=a===null?y(t):t===a?1:.45,S=Math.round(e.value/d*100);return(0,n.jsxs)(`g`,{className:G.segment,onMouseEnter:()=>o(t),onMouseLeave:()=>o(null),children:[(0,n.jsx)(`path`,{d:b,fill:l,fillOpacity:x}),(0,n.jsxs)(`text`,{x:s,y:m,textAnchor:`middle`,dominantBaseline:`middle`,className:G.pctLabel,children:[S,`%`]})]},t)})}),(0,n.jsx)(`div`,{className:G.labels,style:{gridTemplateColumns:`repeat(${e.length}, 1fr)`},children:e.map((e,t)=>(0,n.jsx)(`span`,{className:G.labelItem,children:e.label},t))}),b&&(0,n.jsxs)(`div`,{className:G.tooltip,style:{left:`${C/Je*100}%`,top:`${x/f*100}%`,background:u},children:[(0,n.jsx)(`span`,{className:G.tooltip__title,children:b.label}),(0,n.jsxs)(`div`,{className:G.tooltip__row,children:[(0,n.jsx)(`span`,{className:G.tooltip__dot,style:{background:l}}),(0,n.jsx)(`span`,{className:G.tooltip__label,children:`Share`}),(0,n.jsxs)(`span`,{className:G.tooltip__value,children:[Math.round(b.value/d*100),`%`]})]})]})]})},K={chart:`_chart_1yc8b_1`,grid:`_grid_1yc8b_6`,rowLabel:`_rowLabel_1yc8b_13`,colLabel:`_colLabel_1yc8b_14`,cell:`_cell_1yc8b_29`,"chart--sm":`_chart--sm_1yc8b_38`,"chart--md":`_chart--md_1yc8b_39`,"chart--lg":`_chart--lg_1yc8b_40`,"chart--xl":`_chart--xl_1yc8b_41`,tooltip:`_tooltip_1yc8b_48`,tooltip__title:`_tooltip__title_1yc8b_70`,tooltip__row:`_tooltip__row_1yc8b_76`,tooltip__dot:`_tooltip__dot_1yc8b_84`,tooltip__label:`_tooltip__label_1yc8b_91`,tooltip__value:`_tooltip__value_1yc8b_92`},Qe=.12,$e=.45,et=({data:e,rowLabels:r,colLabels:i,valueLabel:a=`Value`,size:o=`md`,className:s})=>{let c=t.default.useRef(null),l=S(c),u=t.default.useRef(null),[d,f]=t.default.useState(null),p=l(`--color-chart-1`)??`#ff4700`,m=Math.max(1,...e.flat()),h=e[0]?.length??0,g=(e,t,n)=>r=>{let i=r.currentTarget.getBoundingClientRect(),a=u.current?.getBoundingClientRect();a&&f({row:e,col:t,value:n,left:i.left-a.left+i.width/2,top:i.top-a.top})};return(0,n.jsx)(`div`,{ref:c,className:[K.chart,K[`chart--${o}`],s??``].filter(Boolean).join(` `),children:(0,n.jsxs)(`div`,{ref:u,className:K.grid,style:{gridTemplateColumns:`auto repeat(${h}, 1fr)`},children:[e.map((e,i)=>(0,n.jsxs)(t.default.Fragment,{children:[(0,n.jsx)(`span`,{className:K.rowLabel,children:r?.[i]??``}),e.map((e,t)=>{let r=d?.row===i&&d?.col===t,a=d!==null&&!r,o=r?1:Qe+e/m*(1-Qe);return(0,n.jsx)(`div`,{className:K.cell,style:{background:p,opacity:a?$e:o},onMouseEnter:g(i,t,e),onMouseLeave:()=>f(null)},t)})]},i)),i&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`span`,{}),i.map((e,t)=>(0,n.jsx)(`span`,{className:K.colLabel,children:e},t))]}),d&&(0,n.jsxs)(`div`,{className:K.tooltip,style:{left:d.left,top:d.top},children:[(0,n.jsx)(`span`,{className:K.tooltip__title,children:[r?.[d.row],i?.[d.col]].filter(Boolean).join(` · `)||`Row ${d.row+1}, Col ${d.col+1}`}),(0,n.jsxs)(`div`,{className:K.tooltip__row,children:[(0,n.jsx)(`span`,{className:K.tooltip__dot}),(0,n.jsx)(`span`,{className:K.tooltip__label,children:a}),(0,n.jsx)(`span`,{className:K.tooltip__value,children:d.value})]})]})]})})},tt={kbd:`_kbd_1cz4m_3`},nt=({children:e,className:t})=>(0,n.jsx)(`kbd`,{className:[tt.kbd,t??``].filter(Boolean).join(` `),children:e}),rt={label:`_label_rcdks_3`,label__required:`_label__required_rcdks_17`},it=t.default.forwardRef(({required:e,children:t,className:r,...i},a)=>(0,n.jsxs)(`label`,{ref:a,className:[rt.label,r??``].filter(Boolean).join(` `),...i,children:[t,e&&(0,n.jsx)(`span`,{className:rt.label__required,"aria-hidden":`true`,children:` *`})]}));it.displayName=`Label`;var at={chart:`_chart_18fgd_2`},ot={sm:180,md:240,lg:320,xl:420},st=new Set([`dots`,`custom-dots`,`dots-colors`,`label`,`custom-label`]),ct=({data:e,series:r,xKey:a=`label`,variant:o=`default`,labelKey:s,size:c=`md`,height:l,showLegend:u,className:d})=>{let f=t.default.useRef(null),p=S(f),m=[1,2,3,4,5].map(e=>p(`--color-chart-${e}`)??C[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=st.has(o),w=e=>t=>{let{cx:r,cy:i}=t;return(0,n.jsxs)(`g`,{stroke:e,strokeWidth:2,strokeLinecap:`round`,children:[(0,n.jsx)(`line`,{x1:r,y1:i-3,x2:r,y2:i-3-6}),(0,n.jsx)(`line`,{x1:r,y1:i+3,x2:r,y2:i+3+6}),(0,n.jsx)(`circle`,{cx:r,cy:i,r:3,fill:e,stroke:`none`})]})},E=e=>{let{cx:t,cy:r,index:i}=e,a=m[(i??0)%m.length];return(0,n.jsx)(`circle`,{cx:t,cy:r,r:4,fill:a,stroke:v,strokeWidth:1.5})},D=t=>{let{x:r,y:i,value:a,index:c}=t,l=o===`custom-label`&&s?e[c]?.[s]:a;return l===void 0?(0,n.jsx)(`g`,{}):(0,n.jsx)(`text`,{x:r,y:i-12,textAnchor:`middle`,fill:y,fontSize:12,fontWeight:500,fontFamily:`var(--font-sans)`,children:l})};return(0,n.jsx)(`div`,{ref:f,className:[at.chart,d??``].filter(Boolean).join(` `),children:(0,n.jsx)(i.ResponsiveContainer,{width:`100%`,height:l??ot[c],children:(0,n.jsxs)(i.LineChart,{data:e,margin:{top:8,right:8,bottom:8,left:12},children:[(0,n.jsx)(i.CartesianGrid,{strokeDasharray:`3 3`,stroke:g,vertical:!1}),(0,n.jsx)(i.XAxis,{dataKey:a,stroke:_,fontSize:12,tickLine:!1,axisLine:!1,interval:0}),(0,n.jsx)(i.Tooltip,{cursor:{stroke:p(`--color-border-default`)??`#dbdad7`,strokeWidth:1},content:(0,n.jsx)(T,{}),wrapperStyle:{zIndex:50}}),u&&(0,n.jsx)(i.Legend,{wrapperStyle:{fontSize:12,fontFamily:`var(--font-sans)`}}),r.map((e,t)=>{let r=h[t%h.length],a=x?o===`custom-dots`?w(r):o===`dots-colors`?E:{r:4,fill:r,stroke:v,strokeWidth:1.5}:!1;return(0,n.jsx)(i.Line,{type:b,dataKey:e,stroke:r,strokeWidth:2,dot:a,activeDot:{r:4,fill:r,stroke:v,strokeWidth:1.5},label:o===`label`||o===`custom-label`?D:void 0},e)})]})})})},lt={item:`_item_4gag1_2`,"item--disabled":`_item--disabled_4gag1_22`,"item--selected":`_item--selected_4gag1_26`,item__leading:`_item__leading_4gag1_30`,item__text:`_item__text_4gag1_31`,item__title:`_item__title_4gag1_32`,item__description:`_item__description_4gag1_33`,item__trailing:`_item__trailing_4gag1_34`},ut=({title:e,description:t,leading:r,trailing:i,selected:a,disabled:o,onClick:s,className:c})=>(0,n.jsxs)(`button`,{type:`button`,"data-hover-item":``,disabled:o,onClick:s,"aria-current":a?`true`:void 0,className:[lt.item,a?lt[`item--selected`]:``,o?lt[`item--disabled`]:``,c??``].filter(Boolean).join(` `),children:[r&&(0,n.jsx)(`span`,{className:lt.item__leading,children:r}),(0,n.jsxs)(`span`,{className:lt.item__text,children:[(0,n.jsx)(`span`,{className:lt.item__title,children:e}),t&&(0,n.jsx)(`span`,{className:lt.item__description,children:t})]}),i&&(0,n.jsx)(`span`,{className:lt.item__trailing,children:i})]}),dt={menu:`_menu_tcvhi_2`,divider:`_divider_tcvhi_13`},ft=({children:t,minWidth:r=208,className:i,...a})=>{let o=e.E();return(0,n.jsxs)(`div`,{ref:o.ref,...o.groupProps,role:`menu`,"aria-label":a[`aria-label`],style:{minWidth:r},className:[dt.menu,i??``].filter(Boolean).join(` `),children:[o.highlight,t]})},pt=()=>(0,n.jsx)(`div`,{className:dt.divider,role:`separator`}),mt={item:`_item_1ezjp_2`,item__icon:`_item__icon_1ezjp_27`,item__label:`_item__label_1ezjp_28`,item__shortcut:`_item__shortcut_1ezjp_29`,item__check:`_item__check_1ezjp_36`,"item--checked":`_item--checked_1ezjp_38`,"item--disabled":`_item--disabled_1ezjp_39`,"item--destructive":`_item--destructive_1ezjp_40`},ht=({state:t=`default`,icon:i,shortcut:a,children:o,onSelect:s,className:c})=>{let l=t===`disabled`;return(0,n.jsxs)(`div`,{role:`menuitem`,"data-hover-item":``,"aria-disabled":l||void 0,"aria-checked":t===`checked`||void 0,tabIndex:l?-1:0,onClick:l?void 0:s,onKeyDown:e=>{l||(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),s?.())},className:[mt.item,mt[`item--${t}`],c??``].filter(Boolean).join(` `),children:[i&&(0,n.jsx)(`span`,{className:mt.item__icon,"aria-hidden":`true`,children:i}),(0,n.jsx)(`span`,{className:mt.item__label,children:o}),a&&(0,n.jsx)(`kbd`,{className:mt.item__shortcut,children:a}),t===`checked`&&(0,n.jsx)(r.Check,{size:16,strokeWidth:e.pt(16),className:mt.item__check,"aria-hidden":`true`})]})},gt={chart:`_chart_cc7lx_2`,center:`_center_cc7lx_30`,center__value:`_center__value_cc7lx_39`,center__caption:`_center__caption_cc7lx_40`},_t={sm:{h:180,outer:72},md:{h:220,outer:90},lg:{h:280,outer:116},xl:{h:340,outer:142}},vt=new Set([`donut`,`donut-active`,`donut-with-text`,`interactive`]),yt=new Set([`donut-active`]),bt=new Set([`interactive`]),xt=new Set([`donut-with-text`]),St=Math.PI/180,Ct=({data:e,variant:r=`donut`,size:a=`md`,centerValue:o,centerCaption:s,className:c})=>{let l=t.default.useRef(null),u=S(l),[d,f]=t.default.useState(void 0),p=[1,2,3,4,5].map(e=>u(`--color-chart-${e}`)??C[e-1]),m=u(`--color-bg-surface`)??`#ffffff`,h=u(`--color-fg-default`)??`#141414`,g=_t[a],_=vt.has(r),v=yt.has(r),y=bt.has(r),b=_?g.outer*.6:0,x=xt.has(r)&&(o||s),w=d??(v||y?0:void 0),E=e=>{let{cx:t,cy:r,innerRadius:a,outerRadius:o,startAngle:s,endAngle:c,fill:l,index:u}=e,d=u===w,f=d&&(v||y)?16:0;return d&&y?(0,n.jsxs)(`g`,{children:[(0,n.jsx)(i.Sector,{cx:t,cy:r,innerRadius:a,outerRadius:o+f,startAngle:s,endAngle:c,fill:l}),(0,n.jsx)(i.Sector,{cx:t,cy:r,innerRadius:o+f+3,outerRadius:o+f+7,startAngle:s,endAngle:c,fill:l})]}):(0,n.jsx)(i.Sector,{cx:t,cy:r,innerRadius:a,outerRadius:o+f,startAngle:s,endAngle:c,fill:l})},D=e=>{let{cx:t,cy:n,midAngle:r,outerRadius:i}=e,a=r??0,o=Math.cos(-a*St),s=Math.sin(-a*St),c=t+i*o,l=n+i*s,u=t+(i+16)*o,d=n+(i+16)*s,f=o>=0,p=u+(f?14:-14);return{d:`M ${c} ${l} L ${u} ${d} L ${p} ${d}`,endX:p,endY:d,textAnchor:f?`start`:`end`}},O=e=>{let{value:t,fill:r}=e,{d:i,endX:a,endY:o,textAnchor:s}=D(e),c=a+(s===`start`?4:-4);return(0,n.jsxs)(`g`,{children:[(0,n.jsx)(`path`,{d:i,fill:`none`,stroke:r,strokeWidth:1}),(0,n.jsx)(`text`,{x:c,y:o,textAnchor:s,dominantBaseline:`central`,fill:h,fontSize:12,fontFamily:`var(--font-sans)`,children:t})]})},k=e=>{let{x:t,y:r,textAnchor:i,value:a}=e;return(0,n.jsx)(`text`,{x:t,y:r,textAnchor:i,dominantBaseline:`central`,fill:h,fontSize:20,fontWeight:400,fontFamily:`var(--font-sans)`,children:a})},A=t=>{let{cx:r,cy:i,midAngle:a,innerRadius:o,outerRadius:s,index:c}=t,l=(o+s)/2;return(0,n.jsx)(`text`,{x:r+l*Math.cos(-a*St),y:i+l*Math.sin(-a*St),textAnchor:`middle`,dominantBaseline:`central`,fill:`#fff`,fontSize:11,fontWeight:500,fontFamily:`var(--font-sans)`,children:e[c]?.label})};if(r===`stacked`){let t=e=>d!==void 0&&d!==e?.45:1;return(0,n.jsx)(`div`,{ref:l,className:[gt.chart,c??``].filter(Boolean).join(` `),style:{height:g.h},children:(0,n.jsx)(i.ResponsiveContainer,{width:`100%`,height:`100%`,children:(0,n.jsxs)(i.PieChart,{children:[(0,n.jsx)(i.Pie,{data:e,dataKey:`value`,nameKey:`label`,innerRadius:g.outer*.82,outerRadius:g.outer,paddingAngle:0,stroke:`none`,isAnimationActive:!1,onMouseEnter:(e,t)=>f(t),onMouseLeave:()=>f(void 0),children:e.map((e,r)=>(0,n.jsx)(i.Cell,{fill:p[r%p.length],fillOpacity:t(r)},r))}),(0,n.jsx)(i.Pie,{data:e,dataKey:`value`,nameKey:`label`,innerRadius:0,outerRadius:g.outer*.62,paddingAngle:0,stroke:`none`,isAnimationActive:!1,onMouseEnter:(e,t)=>f(t),onMouseLeave:()=>f(void 0),children:e.map((e,r)=>(0,n.jsx)(i.Cell,{fill:p[r%p.length],fillOpacity:t(r)},r))}),(0,n.jsx)(i.Tooltip,{content:(0,n.jsx)(T,{}),wrapperStyle:{zIndex:50}})]})})})}return(0,n.jsxs)(`div`,{ref:l,className:[gt.chart,c??``].filter(Boolean).join(` `),style:{height:g.h},children:[(0,n.jsx)(i.ResponsiveContainer,{width:`100%`,height:`100%`,children:(0,n.jsxs)(i.PieChart,{children:[(0,n.jsx)(i.Pie,{data:e,dataKey:`value`,nameKey:`label`,innerRadius:b,outerRadius:g.outer,paddingAngle:0,stroke:r===`pie`?m:`none`,strokeWidth:r===`pie`?2:0,isAnimationActive:!1,shape:v||y?E:void 0,label:r===`label`?O:r===`custom-label`?k:r===`label-list`?A:void 0,labelLine:!1,onMouseEnter:(e,t)=>f(t),onMouseLeave:()=>f(void 0),children:e.map((e,t)=>(0,n.jsx)(i.Cell,{fill:p[t%p.length]},t))}),(0,n.jsx)(i.Tooltip,{content:(0,n.jsx)(T,{}),wrapperStyle:{zIndex:50}})]})}),x&&(0,n.jsxs)(`div`,{className:gt.center,children:[o&&(0,n.jsx)(`span`,{className:gt.center__value,children:o}),s&&(0,n.jsx)(`span`,{className:gt.center__caption,children:s})]})]})},q={root:`_root_16f5u_2`,trigger:`_trigger_16f5u_3`,panel:`_panel_16f5u_5`,"panel--bottom":`_panel--bottom_16f5u_22`,"panel--bottom-start":`_panel--bottom-start_16f5u_23`,"panel--bottom-end":`_panel--bottom-end_16f5u_24`,"panel--top":`_panel--top_16f5u_25`,"panel--entering":`_panel--entering_16f5u_39`,"sakani-popover-in":`_sakani-popover-in_16f5u_1`,"panel--exiting":`_panel--exiting_16f5u_40`,"sakani-popover-out":`_sakani-popover-out_16f5u_1`,"sakani-popover-in-up":`_sakani-popover-in-up_16f5u_1`,"sakani-popover-out-up":`_sakani-popover-out-up_16f5u_1`,panel__title:`_panel__title_16f5u_75`,panel__description:`_panel__description_16f5u_76`,panel__body:`_panel__body_16f5u_77`,panel__actions:`_panel__actions_16f5u_78`},wt=({trigger:e,title:r,description:i,actions:a,placement:o=`bottom-start`,children:s,className:c})=>{let[l,u]=t.default.useState(!1),[d,f]=t.default.useState(!1),p=t.default.useRef(null),m=t.default.useRef(null);return t.default.useEffect(()=>{l&&f(!0)},[l]),t.default.useEffect(()=>{if(l||!d)return;let e=setTimeout(()=>f(!1),240);return()=>clearTimeout(e)},[l,d]),t.default.useEffect(()=>{if(!l)return;let e=e=>{p.current&&!p.current.contains(e.target)&&u(!1)},t=e=>{e.key===`Escape`&&u(!1)};return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}},[l]),t.default.useEffect(()=>{!l&&m.current&&(m.current.focus(),m.current=null)},[l]),(0,n.jsxs)(`div`,{className:[q.root,c??``].filter(Boolean).join(` `),ref:p,children:[(0,n.jsx)(`span`,{className:q.trigger,onClick:()=>{l||(m.current=document.activeElement),u(e=>!e)},children:e}),d&&(0,n.jsxs)(`div`,{className:[q.panel,q[`panel--${o}`],l?q[`panel--entering`]:q[`panel--exiting`]].filter(Boolean).join(` `),role:`dialog`,onAnimationEnd:e=>{e.target===e.currentTarget&&!l&&f(!1)},children:[r&&(0,n.jsx)(`div`,{className:q.panel__title,children:r}),i&&(0,n.jsx)(`div`,{className:q.panel__description,children:i}),s&&(0,n.jsx)(`div`,{className:q.panel__body,children:s}),a&&(0,n.jsx)(`div`,{className:q.panel__actions,children:a})]})]})},Tt={chart:`_chart_q6xhl_2`,circleFillSvg:`_circleFillSvg_q6xhl_17`},Et={sm:200,md:260,lg:340,xl:420},Dt=new Set([`circle-grid`,`circle-grid-no-lines`,`circle-grid-filled`]),Ot=new Set([`default`,`grid-custom`]),kt=new Set([`dots-grid-none`]),At=new Set([`grid-filled`]),jt=e=>e===`circle-grid-filled`,Mt=new Set([`default`,`dots`,`dots-grid-none`,`circle-grid`,`circle-grid-no-lines`,`multiple`,`custom-label`,`grid-custom`,`grid-filled`,`circle-grid-filled`]),Nt=[1,.8,.6,.4,.2],Pt=({data:e,variant:r=`default`,size:a=`md`,seriesLabels:o=[`Value`,`Value 2`],className:s})=>{let c=t.default.useRef(null),l=S(c),u=l(`--color-chart-1`)??`#ff4700`,d=l(`--color-chart-2`)??`#5b92dd`,f=l(`--color-border-default`)??`#dbdad7`,p=l(`--color-fg-subtle`)??`#a8a29b`,m=r===`multiple`,h=r===`lines-only`,g=m||r===`custom-label`||h,_=!h,v=r===`dots`||r===`dots-grid-none`||r===`circle-grid`||r===`circle-grid-no-lines`,y=At.has(r),b=Ot.has(r),x=kt.has(r),C=jt(r),[w,E]=t.default.useState(0);t.default.useEffect(()=>{if(!C||!c.current)return;let e=c.current,t=new ResizeObserver(([e])=>E(e.contentRect.width));return t.observe(e),()=>t.disconnect()},[C]);let D=t.default.useMemo(()=>{if(!y)return e;let t=Math.max(1,...e.flatMap(e=>[e.value,e.value2??0]));return e.map(e=>{let n={};return Nt.forEach((e,r)=>{n[`ring${r}`]=e*t}),{...e,...n}})},[e,y]),O=t=>{let{x:r,y:i,cx:a,cy:o,payload:s,textAnchor:c}=t,l=e.find(e=>e.label===s?.value)??e[s?.index];if(!l)return(0,n.jsx)(`g`,{});let u=r-a,d=i-o,f=l.value2===void 0?`${l.value}`:`${l.value}/${l.value2}`,m=Math.abs(d)>Math.abs(u),h,g;if(m&&d<0)g=i-4-6,h=g-16;else if(m)h=i+4+10,g=h+18;else{let e=i+d/(Math.sqrt(u*u+d*d)||1)*4;h=e-8,g=e+12}let _=m?r:r+u/Math.sqrt(u*u+d*d||1)*4;return(0,n.jsxs)(`g`,{children:[(0,n.jsx)(`text`,{x:_,y:h,textAnchor:c,fill:p,fontSize:15,fontWeight:600,fontFamily:`var(--font-sans)`,children:f}),(0,n.jsx)(`text`,{x:_,y:g,textAnchor:c,fill:p,fontSize:13,fontFamily:`var(--font-sans)`,children:l.label})]})},k=Et[a],A=(w>0?Math.min(w,k)/2-5:0)*.7;return(0,n.jsxs)(`div`,{ref:c,className:[Tt.chart,s??``].filter(Boolean).join(` `),children:[C&&w>0&&(0,n.jsx)(`svg`,{className:Tt.circleFillSvg,width:w,height:k,children:Nt.map(e=>(0,n.jsx)(`circle`,{cx:w/2,cy:k/2,r:A*e,fill:d,fillOpacity:.1},e))}),(0,n.jsx)(i.ResponsiveContainer,{width:`100%`,height:k,children:(0,n.jsxs)(i.RadarChart,{data:D,outerRadius:`70%`,children:[!y&&!x&&(0,n.jsx)(i.PolarGrid,{gridType:Dt.has(r)?`circle`:`polygon`,radialLines:r!==`circle-grid-no-lines`&&!b,stroke:f}),(0,n.jsx)(i.PolarAngleAxis,{dataKey:`label`,axisLine:!1,tick:r===`custom-label`?O:{fill:p,fontSize:12,fontFamily:`var(--font-sans)`}}),(0,n.jsx)(i.PolarRadiusAxis,{tick:!1,axisLine:!1,tickCount:b?2:void 0}),(0,n.jsx)(i.Tooltip,{content:(0,n.jsx)(T,{}),wrapperStyle:{zIndex:50}}),m&&(0,n.jsx)(i.Legend,{wrapperStyle:{fontSize:12,fontFamily:`var(--font-sans)`}}),y&&Nt.map((e,t)=>(0,n.jsx)(i.Radar,{dataKey:`ring${t}`,stroke:`none`,fill:d,fillOpacity:.1,isAnimationActive:!1,legendType:`none`},`ring${t}`)),(0,n.jsx)(i.Radar,{name:m?o[0]??`Value`:void 0,dataKey:`value`,stroke:Mt.has(r)?`none`:d,fill:_?d:`none`,fillOpacity:_?b?1:g?.45:.5:0,strokeWidth:Mt.has(r)?0:2,dot:v?{r:4,fill:d,stroke:`none`}:!1,isAnimationActive:!1}),g&&(0,n.jsx)(i.Radar,{name:m?o[1]??`Value 2`:void 0,dataKey:`value2`,stroke:h?u:`none`,fill:h?`none`:u,fillOpacity:h?0:.8,strokeWidth:h?2:0,dot:v?{r:4,fill:u,stroke:`none`}:!1,isAnimationActive:!1})]})})]})},J={chart:`_chart_1ogmh_2`,gridSvg:`_gridSvg_1ogmh_19`,gaugeSvg:`_gaugeSvg_1ogmh_31`,center:`_center_1ogmh_36`,center__value:`_center__value_1ogmh_45`,center__caption:`_center__caption_1ogmh_46`},Ft={sm:180,md:220,lg:280,xl:340},It=Math.PI/180,Lt=e=>Math.round(e*1e3)/1e3,Rt={multi:[`30%`,`100%`],grid:[`30%`,`100%`],"stacked-label":[`30%`,`100%`],text:[`76%`,`100%`]},zt=({value:e,max:t,color:r,track:i,centerValue:a,centerCaption:o,labelColor:s,captionColor:c})=>{let l=Math.round(Math.min(e,t)/t*40);return(0,n.jsxs)(`svg`,{viewBox:`0 0 200 120`,className:J.gaugeSvg,children:[Array.from({length:40}).map((e,t)=>{let a=180+t/39*180;return(0,n.jsx)(`line`,{x1:Lt(100+78*Math.cos(a*It)),y1:Lt(100+78*Math.sin(a*It)),x2:Lt(100+92*Math.cos(a*It)),y2:Lt(100+92*Math.sin(a*It)),stroke:t<l?r:i,strokeWidth:2.5,strokeLinecap:`round`},t)}),(a||o)&&(0,n.jsxs)(`g`,{textAnchor:`middle`,fontFamily:`var(--font-sans)`,children:[a&&(0,n.jsx)(`text`,{x:100,y:92,fontSize:22,fontWeight:500,fill:s,children:a}),o&&(0,n.jsx)(`text`,{x:100,y:112,fontSize:12,fill:c,children:o})]})]})},Bt=({rings:e,spokes:t,color:r})=>(0,n.jsxs)(`svg`,{viewBox:`0 0 200 200`,className:J.gridSvg,children:[Array.from({length:e}).map((t,i)=>(0,n.jsx)(`circle`,{cx:100,cy:100,r:(i+1)/e*96,fill:`none`,stroke:r,strokeWidth:1},i)),Array.from({length:t}).map((e,i)=>{let a=i/t*360,o=99.5*1.1;return(0,n.jsx)(`line`,{x1:100,y1:100,x2:Lt(100+o*Math.cos(a*It)),y2:Lt(100+o*Math.sin(a*It)),stroke:r,strokeWidth:1},i)})]}),Vt=({data:e,palette:t,track:r,centerValue:a,centerCaption:o,labelColor:s,captionColor:c})=>{let l=e[0]?.max??e.reduce((e,t)=>e+t.value,0),u=210,d=e.map((e,n)=>{let r=l>0?e.value/l*240:0,i=u,a=u-r;return u=a,{segStart:i,segEnd:a,fill:t[n%t.length]}});return(0,n.jsxs)(`svg`,{viewBox:`0 0 200 160`,className:J.gaugeSvg,children:[d.map((e,t)=>(0,n.jsx)(i.Sector,{cx:100,cy:100,innerRadius:64,outerRadius:88,startAngle:e.segStart,endAngle:e.segEnd,fill:e.fill,cornerRadius:4},t)),u>-29.5&&(0,n.jsx)(i.Sector,{cx:100,cy:100,innerRadius:64,outerRadius:88,startAngle:u,endAngle:-30,fill:r,cornerRadius:4}),(a||o)&&(0,n.jsxs)(`g`,{textAnchor:`middle`,fontFamily:`var(--font-sans)`,children:[a&&(0,n.jsx)(`text`,{x:100,y:92,fontSize:22,fontWeight:500,fill:s,children:a}),o&&(0,n.jsx)(`text`,{x:100,y:112,fontSize:12,fill:c,children:o})]})]})},Ht=({data:e,variant:r=`multi`,size:a=`md`,centerValue:o,centerCaption:s,className:c})=>{let l=t.default.useRef(null),u=S(l),d=[1,2,3,4,5].map(e=>u(`--color-chart-${e}`)??C[e-1]),f=u(`--color-bg-subtle`)??`#f5f4f2`,p=u(`--color-border-subtle`)??`#e7e5e1`,m=u(`--color-fg-default`)??`#141414`,h=u(`--color-fg-muted`)??`#78716a`,g=Ft[a];if(r===`gauge-tick`){let t=e[0];return(0,n.jsx)(`div`,{ref:l,className:[J.chart,c??``].filter(Boolean).join(` `),style:{height:g},children:(0,n.jsx)(zt,{value:t?.value??0,max:t?.max??100,color:d[0],track:f,centerValue:o,centerCaption:s,labelColor:m,captionColor:h})})}if(r===`shape`||r===`stacked`||r===`stacked-3-layers`)return(0,n.jsx)(`div`,{ref:l,className:[J.chart,c??``].filter(Boolean).join(` `),style:{height:g},children:(0,n.jsx)(Vt,{data:e,palette:d,track:f,centerValue:o,centerCaption:s,labelColor:m,captionColor:h})});let[_,v]=Rt[r]??[`30%`,`100%`],y=(r===`stacked-label`||r===`text`)&&(o||s);return(0,n.jsxs)(`div`,{ref:l,className:[J.chart,c??``].filter(Boolean).join(` `),style:{height:g},children:[r===`grid`&&(0,n.jsx)(Bt,{rings:8,spokes:12,color:p}),(0,n.jsx)(i.ResponsiveContainer,{width:`100%`,height:`100%`,children:(0,n.jsxs)(i.RadialBarChart,{data:e,innerRadius:_,outerRadius:v,startAngle:90,endAngle:-270,barCategoryGap:`12%`,children:[(0,n.jsx)(i.PolarAngleAxis,{type:`number`,domain:[0,e[0]?.max??100],tick:!1,axisLine:!1}),(0,n.jsx)(i.RadialBar,{dataKey:`value`,background:r!==`grid`&&{fill:f},cornerRadius:8,isAnimationActive:!1,children:e.map((e,t)=>(0,n.jsx)(i.Cell,{fill:d[t%d.length]},t))})]})}),y&&(0,n.jsxs)(`div`,{className:J.center,children:[o&&(0,n.jsx)(`span`,{className:J.center__value,children:o}),s&&(0,n.jsx)(`span`,{className:J.center__caption,children:s})]})]})},Y={wrapper:`_wrapper_5ueza_3`,"wrapper--disabled":`_wrapper--disabled_5ueza_11`,input:`_input_5ueza_13`,circle:`_circle_5ueza_15`,dot:`_dot_5ueza_31`,text:`_text_5ueza_79`,text__label:`_text__label_5ueza_80`,text__description:`_text__description_5ueza_81`,"wrapper--withDescription":`_wrapper--withDescription_5ueza_85`},Ut=t.default.forwardRef(({label:e,description:r,disabled:i,id:a,className:o,...s},c)=>{let l=t.default.useId(),u=a??l;return(0,n.jsxs)(`label`,{htmlFor:u,className:[Y.wrapper,r?Y[`wrapper--withDescription`]:``,i?Y[`wrapper--disabled`]:``,o??``].filter(Boolean).join(` `),children:[(0,n.jsx)(`input`,{ref:c,id:u,type:`radio`,disabled:i,className:Y.input,...s}),(0,n.jsx)(`span`,{className:Y.circle,"aria-hidden":`true`,children:(0,n.jsx)(`span`,{className:Y.dot})}),(e||r)&&(0,n.jsxs)(`span`,{className:Y.text,children:[e&&(0,n.jsx)(`span`,{className:Y.text__label,children:e}),r&&(0,n.jsx)(`span`,{className:Y.text__description,children:r})]})]})});Ut.displayName=`Radio`;var X={footer:`_footer_mks3d_4`,"footer--collapsed":`_footer--collapsed_mks3d_12`,footer__text:`_footer__text_mks3d_14`,footer__title:`_footer__title_mks3d_15`,footer__subtitle:`_footer__subtitle_mks3d_16`,footer__menu:`_footer__menu_mks3d_17`,footer__action:`_footer__action_mks3d_29`},Wt=({type:t=`user`,title:i,subtitle:a,avatarSrc:o,avatarInitials:s,collapsed:c,onMenu:l,onSignOut:u})=>{let d=(0,n.jsx)(e.ut,{size:c?`sm`:`md`,src:o,initials:s,alt:i??`User`});return c?(0,n.jsx)(`div`,{className:[X.footer,X[`footer--collapsed`]].join(` `),children:d}):t===`actions`?(0,n.jsx)(`div`,{className:X.footer,children:(0,n.jsxs)(`button`,{type:`button`,"data-hover-item":``,className:X.footer__action,onClick:u,children:[(0,n.jsx)(r.LogOut,{size:16,strokeWidth:e.pt(16)}),` Sign out`]})}):(0,n.jsxs)(`div`,{className:X.footer,children:[d,(0,n.jsxs)(`span`,{className:X.footer__text,children:[i&&(0,n.jsx)(`span`,{className:X.footer__title,children:i}),a&&(0,n.jsx)(`span`,{className:X.footer__subtitle,children:a})]}),t===`user-menu`&&(0,n.jsx)(`button`,{type:`button`,"data-hover-item":``,className:X.footer__menu,onClick:l,"aria-label":`Open menu`,children:(0,n.jsx)(r.ChevronsUpDown,{size:16,strokeWidth:e.pt(16)})})]})},Gt={promo:`_promo_qzdlk_4`,promo__head:`_promo__head_qzdlk_20`,promo__icon:`_promo__icon_qzdlk_21`,promo__title:`_promo__title_qzdlk_22`,promo__dismiss:`_promo__dismiss_qzdlk_23`,promo__desc:`_promo__desc_qzdlk_30`,promo__cta:`_promo__cta_qzdlk_33`},Kt=({type:t=`upgrade`,title:i,description:a,ctaLabel:o,onCta:s,onDismiss:c,icon:l=r.Sparkles})=>(0,n.jsxs)(`div`,{className:[Gt.promo,Gt[`promo--${t}`]].join(` `),children:[(0,n.jsxs)(`div`,{className:Gt.promo__head,children:[(0,n.jsx)(`span`,{className:Gt.promo__icon,"aria-hidden":`true`,children:(0,n.jsx)(l,{size:16,strokeWidth:e.pt(16)})}),(0,n.jsx)(`span`,{className:Gt.promo__title,children:i}),c&&(0,n.jsx)(`button`,{type:`button`,className:Gt.promo__dismiss,onClick:c,"aria-label":`Dismiss`,children:(0,n.jsx)(r.X,{size:14,strokeWidth:e.pt(14)})})]}),a&&(0,n.jsx)(`p`,{className:Gt.promo__desc,children:a}),o&&(0,n.jsx)(`button`,{type:`button`,className:Gt.promo__cta,onClick:s,children:o})]}),qt={search:`_search_1airw_2`,search__icon:`_search__icon_1airw_25`,search__input:`_search__input_1airw_26`,search__placeholder:`_search__placeholder_1airw_38`,search__kbd:`_search__kbd_1airw_39`,collapsed:`_collapsed_1airw_53`},Jt=({type:t=`field`,placeholder:i=`Search…`,collapsed:a,value:o,onChange:s,onClick:c})=>a?(0,n.jsx)(`button`,{type:`button`,className:qt.collapsed,onClick:c,"aria-label":`Search`,children:(0,n.jsx)(r.Search,{size:18,strokeWidth:e.pt(18)})}):t===`command`?(0,n.jsxs)(`button`,{type:`button`,className:qt.search,onClick:c,children:[(0,n.jsx)(r.Search,{size:16,strokeWidth:e.pt(16),className:qt.search__icon}),(0,n.jsx)(`span`,{className:qt.search__placeholder,children:i}),(0,n.jsx)(`kbd`,{className:qt.search__kbd,children:`⌘K`})]}):(0,n.jsxs)(`div`,{className:qt.search,children:[(0,n.jsx)(r.Search,{size:16,strokeWidth:e.pt(16),className:qt.search__icon}),(0,n.jsx)(`input`,{className:qt.search__input,placeholder:i,value:o,onChange:e=>s?.(e.target.value)})]}),Yt={spinner:`_spinner_14r00_3`,"spinner--sm":`_spinner--sm_14r00_12`,"spinner--md":`_spinner--md_14r00_13`,"spinner--lg":`_spinner--lg_14r00_14`,spinner__svg:`_spinner__svg_14r00_17`,"spinner-rotate":`_spinner-rotate_14r00_1`},Xt=({size:e=`md`,label:t=`Loading...`,className:r})=>(0,n.jsx)(`span`,{role:`status`,"aria-label":t,className:[Yt.spinner,Yt[`spinner--${e}`],r??``].filter(Boolean).join(` `),children:(0,n.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2.5,strokeLinecap:`round`,"aria-hidden":`true`,className:Yt.spinner__svg,children:[(0,n.jsx)(`circle`,{cx:12,cy:12,r:9,opacity:.2}),(0,n.jsx)(`path`,{d:`M12 3a9 9 0 0 1 9 9`,className:Yt.spinner__arc})]})}),Z={card:`_card_1qi93_4`,"card--featured":`_card--featured_1qi93_24`,card__head:`_card__head_1qi93_26`,card__icon:`_card__icon_1qi93_27`,card__title:`_card__title_1qi93_41`,card__menu:`_card__menu_1qi93_42`,card__value:`_card__value_1qi93_50`,card__meta:`_card__meta_1qi93_59`,card__sparkline:`_card__sparkline_1qi93_66`,"card--trend-up":`_card--trend-up_1qi93_68`,"card--trend-down":`_card--trend-down_1qi93_69`,card__description:`_card__description_1qi93_72`},Zt={up:r.TrendingUp,down:r.TrendingDown,flat:r.Minus},Qt={up:`success`,down:`danger`,flat:`neutral`},$t=({data:e})=>{if(e.length<2)return null;let t=Math.min(...e),r=Math.max(...e)-t||1,i=e.map((n,i)=>`${i/(e.length-1)*100},${30-(n-t)/r*26}`).join(` `);return(0,n.jsx)(`svg`,{className:en,viewBox:`0 0 100 32`,preserveAspectRatio:`none`,"aria-hidden":`true`,children:(0,n.jsx)(`polyline`,{points:i,fill:`none`,strokeWidth:2,vectorEffect:`non-scaling-stroke`,strokeLinejoin:`round`,strokeLinecap:`round`})})},en=Z.card__sparkline,tn=({title:t,value:i,description:a,sparkline:o,delta:s,trend:c=`up`,badgeVariant:l,variant:u=`minimal`,icon:d,showMenu:f,onMenu:p,className:m})=>{let h=Zt[c],g=(u===`icon`||u===`featured`)&&d;return(0,n.jsxs)(`div`,{className:[Z.card,Z[`card--${u}`],Z[`card--trend-${c}`],m??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:Z.card__head,children:[g&&(0,n.jsx)(`span`,{className:Z.card__icon,"aria-hidden":`true`,children:(0,n.jsx)(d,{size:18,strokeWidth:e.pt(18)})}),(0,n.jsx)(`span`,{className:Z.card__title,children:t}),f&&(0,n.jsx)(`button`,{type:`button`,className:Z.card__menu,onClick:p,"aria-label":`More options`,children:(0,n.jsx)(r.MoreHorizontal,{size:16,strokeWidth:e.pt(16)})})]}),(0,n.jsx)(`div`,{className:Z.card__value,children:i}),o&&(0,n.jsx)($t,{data:o}),(s||a)&&(0,n.jsxs)(`div`,{className:Z.card__meta,children:[s&&(0,n.jsx)(e.X,{variant:l??Qt[c],leftIcon:(0,n.jsx)(h,{size:12,strokeWidth:2}),children:s}),a&&(0,n.jsx)(`p`,{className:Z.card__description,children:a})]})]})},Q={stepper:`_stepper_kxw14_3`,"stepper--horizontal":`_stepper--horizontal_kxw14_4`,"stepper--vertical":`_stepper--vertical_kxw14_5`,step:`_step_kxw14_3`,"step--horizontal":`_step--horizontal_kxw14_8`,"step--vertical":`_step--vertical_kxw14_9`,circle:`_circle_kxw14_12`,circle__num:`_circle__num_kxw14_24`,"circle--completed":`_circle--completed_kxw14_26`,"circle--current":`_circle--current_kxw14_27`,"circle--upcoming":`_circle--upcoming_kxw14_32`,step__text:`_step__text_kxw14_39`,step__label:`_step__label_kxw14_40`,"step__label--current":`_step__label--current_kxw14_41`,"step__label--upcoming":`_step__label--upcoming_kxw14_42`,step__desc:`_step__desc_kxw14_43`,connector:`_connector_kxw14_46`,"connector--horizontal":`_connector--horizontal_kxw14_47`,"connector--vertical":`_connector--vertical_kxw14_48`,"connector--filled":`_connector--filled_kxw14_49`},nn=({index:t,state:i,label:a,description:o,orientation:s=`horizontal`})=>(0,n.jsxs)(`div`,{className:[Q.step,Q[`step--${s}`]].join(` `),children:[(0,n.jsx)(`span`,{className:[Q.circle,Q[`circle--${i}`]].join(` `),"aria-hidden":`true`,children:i===`completed`?(0,n.jsx)(r.Check,{size:14,strokeWidth:e.pt(14)}):(0,n.jsx)(`span`,{className:Q.circle__num,children:t+1})}),(0,n.jsxs)(`span`,{className:Q.step__text,children:[(0,n.jsx)(`span`,{className:[Q.step__label,i===`current`?Q[`step__label--current`]:``,i===`upcoming`?Q[`step__label--upcoming`]:``].filter(Boolean).join(` `),children:a}),o&&(0,n.jsx)(`span`,{className:Q.step__desc,children:o})]})]}),rn=({steps:e,current:r,orientation:i=`horizontal`,className:a})=>{let o=e=>e<r?`completed`:e===r?`current`:`upcoming`;return(0,n.jsx)(`div`,{className:[Q.stepper,Q[`stepper--${i}`],a??``].filter(Boolean).join(` `),children:e.map((a,s)=>(0,n.jsxs)(t.default.Fragment,{children:[(0,n.jsx)(nn,{index:s,state:o(s),label:a.label,description:a.description,orientation:i}),s<e.length-1&&(0,n.jsx)(`span`,{className:[Q.connector,Q[`connector--${i}`],s<r?Q[`connector--filled`]:``].filter(Boolean).join(` `),"aria-hidden":`true`})]},s))})},$={wrapper:`_wrapper_1xxik_3`,"wrapper--disabled":`_wrapper--disabled_1xxik_11`,input:`_input_1xxik_13`,track:`_track_1xxik_15`,thumb:`_thumb_1xxik_28`,label:`_label_1xxik_55`,"wrapper--withDescription":`_wrapper--withDescription_1xxik_60`,text:`_text_1xxik_61`,description:`_description_1xxik_63`},an=t.default.forwardRef(({label:e,description:r,disabled:i,id:a,className:o,...s},c)=>{let l=t.default.useId(),u=a??l;return(0,n.jsxs)(`label`,{htmlFor:u,className:[$.wrapper,r?$[`wrapper--withDescription`]:``,i?$[`wrapper--disabled`]:``,o??``].filter(Boolean).join(` `),children:[(0,n.jsx)(`input`,{ref:c,id:u,type:`checkbox`,role:`switch`,disabled:i,className:$.input,...s}),(0,n.jsx)(`span`,{className:$.track,"aria-hidden":`true`,children:(0,n.jsx)(`span`,{className:$.thumb})}),r?(0,n.jsxs)(`span`,{className:$.text,children:[e&&(0,n.jsx)(`span`,{className:$.label,children:e}),(0,n.jsx)(`span`,{className:$.description,children:r})]}):e&&(0,n.jsx)(`span`,{className:$.label,children:e})]})});an.displayName=`Switch`;var on={field:`_field_53t87_6`,field__label:`_field__label_53t87_8`,field__description:`_field__description_53t87_10`,field__error:`_field__error_53t87_11`,textarea:`_textarea_53t87_13`,"textarea--error":`_textarea--error_53t87_37`,"textarea--disabled":`_textarea--disabled_53t87_52`},sn=t.default.forwardRef(({label:e,description:r,error:i,disabled:a,id:o,className:s,rows:c=3,...l},u)=>{let d=t.default.useId(),f=o??d,p=!!i,m=r||i?`${f}-desc`:void 0;return(0,n.jsxs)(`div`,{className:[on.field,s??``].filter(Boolean).join(` `),children:[e&&(0,n.jsx)(`label`,{htmlFor:f,className:on.field__label,children:e}),(0,n.jsx)(`textarea`,{ref:u,id:f,rows:c,disabled:a,"aria-invalid":p||void 0,"aria-describedby":m,className:[on.textarea,p?on[`textarea--error`]:``,a?on[`textarea--disabled`]:``].filter(Boolean).join(` `),...l}),(r||i)&&(0,n.jsx)(`span`,{id:m,className:p?on.field__error:on.field__description,children:i||r})]})});sn.displayName=`Textarea`;var cn={toast:`_toast_dshlf_3`,toast__icon:`_toast__icon_dshlf_17`,"toast--success":`_toast--success_dshlf_18`,"toast--error":`_toast--error_dshlf_19`,"toast--info":`_toast--info_dshlf_20`,toast__content:`_toast__content_dshlf_22`,toast__title:`_toast__title_dshlf_23`,toast__description:`_toast__description_dshlf_24`,toast__dismiss:`_toast__dismiss_dshlf_26`},ln={success:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`path`,{d:`M22 11.08V12a10 10 0 1 1-5.93-9.14`}),(0,n.jsx)(`polyline`,{points:`22 4 12 14.01 9 11.01`})]}),error:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,n.jsx)(`line`,{x1:`15`,y1:`9`,x2:`9`,y2:`15`}),(0,n.jsx)(`line`,{x1:`9`,y1:`9`,x2:`15`,y2:`15`})]}),info:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,n.jsx)(`line`,{x1:`12`,y1:`16`,x2:`12`,y2:`12`}),(0,n.jsx)(`line`,{x1:`12`,y1:`8`,x2:`12.01`,y2:`8`})]})},un=({status:t=`info`,title:r,description:i,onDismiss:a,className:o})=>(0,n.jsxs)(`div`,{role:t===`error`?`alert`:`status`,"aria-live":t===`error`?`assertive`:`polite`,className:[cn.toast,cn[`toast--${t}`],o??``].filter(Boolean).join(` `),children:[(0,n.jsx)(`span`,{className:cn.toast__icon,"aria-hidden":`true`,children:(0,n.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:e.pt(18),strokeLinecap:`round`,strokeLinejoin:`round`,width:18,height:18,children:ln[t]})}),(0,n.jsxs)(`div`,{className:cn.toast__content,children:[r&&(0,n.jsx)(`div`,{className:cn.toast__title,children:r}),i&&(0,n.jsx)(`div`,{className:cn.toast__description,children:i})]}),a&&(0,n.jsx)(`button`,{type:`button`,className:cn.toast__dismiss,onClick:a,"aria-label":`Dismiss`,children:(0,n.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:e.pt(16),strokeLinecap:`round`,strokeLinejoin:`round`,width:16,height:16,children:[(0,n.jsx)(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),(0,n.jsx)(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})]})})]}),dn={bar:`_bar_14cqo_2`,bar__icon:`_bar__icon_14cqo_10`,bar__title:`_bar__title_14cqo_17`,"bar__title--center":`_bar__title--center_14cqo_21`,bar__search:`_bar__search_14cqo_22`},fn=({type:t=`title`,title:i,trailing:a,search:o,onMenu:s,onAction:c,onClose:l,className:u})=>(0,n.jsxs)(`header`,{className:[dn.bar,u??``].filter(Boolean).join(` `),children:[(0,n.jsx)(`button`,{type:`button`,className:dn.bar__icon,onClick:s,"aria-label":`Open menu`,children:(0,n.jsx)(r.Menu,{size:18,strokeWidth:e.pt(18)})}),t===`search`?(0,n.jsx)(`div`,{className:dn.bar__search,children:o}):(0,n.jsx)(`span`,{className:[dn.bar__title,t===`title-centered`?dn[`bar__title--center`]:``].join(` `),children:i}),t===`title-action`&&(0,n.jsx)(`button`,{type:`button`,className:dn.bar__icon,onClick:c,"aria-label":`Add`,children:(0,n.jsx)(r.Plus,{size:18,strokeWidth:e.pt(18)})}),t===`search`&&(0,n.jsx)(`button`,{type:`button`,className:dn.bar__icon,onClick:l,"aria-label":`Close search`,children:(0,n.jsx)(r.X,{size:18,strokeWidth:e.pt(18)})}),(t===`title`||t===`title-centered`)&&a]});exports.Accordion=e.dt,exports.AccordionItem=e.ft,exports.ActivityFeed=e.ct,exports.ActivityFeedHighlight=e.lt,exports.Alert=e.O,exports.Announcement=o,exports.AreaChart=Pe,exports.Avatar=e.ut,exports.AvatarGroup=e.N,exports.AvatarUpload=e.it,exports.Badge=e.X,exports.Balance=e.rt,exports.BarChart=A,exports.BlogBlockquote=ce,exports.BlogFeatureText=ue,exports.BlogImage=fe,exports.BlogListingCard=e.I,exports.BlogListingFeaturedCard=e.F,exports.BoardCard=e.D,exports.BoardColumn=Fe,exports.Breadcrumb=e.w,exports.Button=e.at,exports.Calendar=Be,exports.Card=Ve,exports.CardMetaItem=e.C,exports.CartItem=e.J,exports.ChatComposer=e.S,exports.Checkbox=e.x,exports.CheckoutSteps=e.K,exports.CodeSnippet=d,exports.ColorSwatch=e.W,exports.Combobox=He,exports.ConversationItem=e.b,exports.DEFAULT_CHECKOUT_STEPS=e.q,exports.Divider=e.tt,exports.DonutChart=Ge,exports.EmptyState=e.y,exports.Expenses=m,exports.FeaturedIcon=e.P,exports.FileUpload=Ke,exports.FilterChip=e.v,exports.FirstPageHeading=pe,exports.FunnelChart=Ze,exports.HeatmapChart=et,exports.HoverGroup=e.T,exports.IconButton=e.ot,exports.InlineHint=_,exports.Input=e._,exports.JobListing=e.j,exports.Kbd=nt,exports.Label=it,exports.LineChart=ct,exports.Link=e.st,exports.List=he,exports.ListItem=ut,exports.LocationDot=e.M,exports.Marquee=ve,exports.Menu=ft,exports.MenuDivider=pt,exports.MenuItem=ht,exports.MessageBubble=e.g,exports.Metric=be,exports.MobileNavigationMenu=xe,exports.Modal=e.et,exports.NotificationItem=e.$,exports.Pagination=e.h,exports.PieChart=Ct,exports.PlaceholderLogo=we,exports.Popover=wt,exports.PriceDisplay=e.U,exports.ProductCard=e.V,exports.ProductGallery=e.B,exports.ProfileCard=Te,exports.Progress=e.nt,exports.ProgressItem=y,exports.ProgressStat=e.Q,exports.QuantitySelector=e.Y,exports.RadarChart=Pt,exports.RadialChart=Ht,exports.Radio=Ut,exports.RichSeparator=x,exports.RichTextHeading=De,exports.RichTextParagraph=ke,exports.SectionHeading=e.A,exports.SegmentedControl=e.m,exports.Select=e.p,exports.Sidebar=e.f,exports.SidebarDivider=e.d,exports.SidebarFooter=Wt,exports.SidebarGroupLabel=e.u,exports.SidebarHeader=e.l,exports.SidebarItem=e.c,exports.SidebarPromo=Kt,exports.SidebarSearch=Jt,exports.SidebarSubItem=e.s,exports.SizeSelector=e.z,exports.Skeleton=e.o,exports.Slider=e.a,exports.SpendingBalance=e.Z,exports.Spinner=Xt,exports.StarRating=e.R,exports.StatCard=tn,exports.Stepper=rn,exports.StepperStep=nn,exports.StockMarket=M,exports.StockStatus=e.L,exports.SubFeature=je,exports.Switch=an,exports.Table=e.i,exports.Tabs=e.r,exports.Tags=ne,exports.TeamCard=e.k,exports.Textarea=sn,exports.Ticker=ae,exports.Toast=un,exports.Tooltip=e.n,exports.TopBar=e.t,exports.TopBarMobile=fn,exports.Transactions=se,exports.WishlistButton=e.H,exports.getContrastColor=e.G,exports.iconStrokeWidth=e.pt,exports.useHoverHighlight=e.E;
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./TopBar-D4DLhfly.cjs");let t=require("react");t=e.Dt(t,1);let n=require("react/jsx-runtime"),r=require("lucide-react"),i=require("recharts");var a={announcement:`_announcement_1ba3c_1`,"announcement--neutral":`_announcement--neutral_1ba3c_13`,"announcement--urgent":`_announcement--urgent_1ba3c_16`,content:`_content_1ba3c_20`,icon:`_icon_1ba3c_28`,icon__neutral:`_icon__neutral_1ba3c_32`,message:`_message_1ba3c_36`,link:`_link_1ba3c_52`},o=({message:t,linkLabel:i,linkHref:o,onLinkClick:s,onDismiss:c,variant:l=`neutral`,className:u})=>{let d=l===`urgent`;return(0,n.jsxs)(`div`,{className:[a.announcement,a[`announcement--${l}`],u??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:a.content,children:[(0,n.jsx)(`span`,{className:a.icon,"aria-hidden":`true`,children:d?(0,n.jsx)(r.TriangleAlert,{size:24,strokeWidth:1.5,style:{fill:`var(--color-info-solid)`,stroke:`var(--color-info-bg)`}}):(0,n.jsx)(r.Sparkles,{size:24,strokeWidth:1.5,fill:`currentColor`,stroke:`currentColor`,className:a.icon__neutral})}),(0,n.jsx)(`p`,{className:a.message,children:t}),!d&&i&&(0,n.jsx)(e.bt,{href:o,onClick:s,className:a.link,style:{color:`var(--color-brand-fg)`,fontSize:16,lineHeight:`24px`},children:i})]}),c&&(0,n.jsx)(e.yt,{icon:r.X,size:`sm`,variant:`ghost`,"aria-label":`Dismiss`,onClick:c})]})},s={snippet:`_snippet_1ao90_1`,header:`_header_1ao90_12`,filename:`_filename_1ao90_19`,body:`_body_1ao90_31`,tokenKeyword:`_tokenKeyword_1ao90_42`,tokenString:`_tokenString_1ao90_43`,editableBody:`_editableBody_1ao90_50`,textarea:`_textarea_1ao90_55`},c=[`import`,`export`,`from`,`default`,`function`,`return`,`const`,`let`,`var`,`if`,`else`,`for`,`while`,`class`,`extends`,`new`,`async`,`await`,`as`,`of`,`in`],l=RegExp(`('(?:[^'\\\\]|\\\\.)*'|"(?:[^"\\\\]|\\\\.)*"|\`(?:[^\`\\\\]|\\\\.)*\`|\\b(?:${c.join(`|`)})\\b)`,`g`),u=e=>e.split(l).map((e,r)=>{if(!e)return null;let i=/^['"`]/.test(e),a=!i&&c.includes(e);return i?(0,n.jsx)(`span`,{className:s.tokenString,children:e},r):a?(0,n.jsx)(`span`,{className:s.tokenKeyword,children:e},r):(0,n.jsx)(t.default.Fragment,{children:e},r)}),d=({code:i,filename:a,onCopy:o,editable:c=!1,onChange:l,placeholder:d,className:f})=>{let[p,m]=t.default.useState(!1),[h,g]=t.default.useState(i);t.default.useEffect(()=>g(i),[i]);let _=()=>{navigator.clipboard?.writeText(h),o?.(h),m(!0),window.setTimeout(()=>m(!1),1500)},v=e=>{g(e),l?.(e)},y=c?(0,n.jsxs)(`div`,{className:s.editableBody,children:[(0,n.jsx)(`pre`,{className:s.body,"aria-hidden":`true`,children:u(h)}),(0,n.jsx)(`textarea`,{className:s.textarea,value:h,placeholder:d,spellCheck:!1,onChange:e=>v(e.target.value),onKeyDown:e=>{if(e.key!==`Tab`)return;e.preventDefault();let t=e.currentTarget,{selectionStart:n,selectionEnd:r}=t,i=`${h.slice(0,n)} ${h.slice(r)}`;v(i),requestAnimationFrame(()=>{t.selectionStart=t.selectionEnd=n+2})}})]}):(0,n.jsx)(`pre`,{className:s.body,children:u(h)});return a?(0,n.jsxs)(`div`,{className:[s.snippet,f??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:s.header,children:[(0,n.jsx)(`p`,{className:s.filename,children:a}),(0,n.jsx)(e.yt,{icon:p?r.Check:r.Copy,variant:`ghost`,size:`sm`,"aria-label":p?`Copied`:`Copy code`,onClick:_})]}),y]}):(0,n.jsx)(`div`,{className:[s.snippet,f??``].filter(Boolean).join(` `),children:y})},f={expenses:`_expenses_1imiq_1`,row:`_row_1imiq_10`,top:`_top_1imiq_18`,left:`_left_1imiq_26`,icon:`_icon_1imiq_32`,label:`_label_1imiq_44`,amount:`_amount_1imiq_55`},p=e=>e.toLocaleString(`en-US`,{style:`currency`,currency:`USD`}),m=({categories:t,variant:r=`default`,formatAmount:i=p,className:a})=>{let o=r===`compact`,s=Math.max(1,...t.map(e=>e.amount));return(0,n.jsx)(`div`,{className:[f.expenses,a??``].filter(Boolean).join(` `),children:t.map((t,r)=>(0,n.jsxs)(`div`,{className:f.row,children:[(0,n.jsxs)(`div`,{className:f.top,children:[(0,n.jsxs)(`div`,{className:f.left,children:[(0,n.jsx)(`span`,{className:f.icon,"aria-hidden":`true`,children:t.icon}),(0,n.jsx)(`p`,{className:f.label,children:t.label})]}),(0,n.jsx)(`p`,{className:f.amount,children:i(t.amount)})]}),!o&&(0,n.jsx)(e.ht,{value:t.amount/s*100,size:`lg`,label:`${t.label} spending`})]},t.id??r))})},h={hint:`_hint_49nyi_1`,bar:`_bar_49nyi_9`,"hint--neutral":`_hint--neutral_49nyi_15`,"hint--warning":`_hint--warning_49nyi_16`,icon:`_icon_49nyi_18`,message:`_message_49nyi_24`},g=14,_=({message:t,variant:i=`neutral`,className:a})=>{let o=i===`warning`?r.TriangleAlert:r.Info;return(0,n.jsxs)(`div`,{className:[h.hint,h[`hint--${i}`],a??``].filter(Boolean).join(` `),children:[(0,n.jsx)(`span`,{className:h.bar,"aria-hidden":`true`}),(0,n.jsx)(o,{size:g,strokeWidth:e.Et(g),className:h.icon}),(0,n.jsx)(`p`,{className:h.message,children:t})]})},v={item:`_item_mg6gs_1`,"item--horizontal":`_item--horizontal_mg6gs_6`,"item--vertical":`_item--vertical_mg6gs_11`,value:`_value_mg6gs_16`,topRow:`_topRow_mg6gs_31`,connectorHorizontal:`_connectorHorizontal_mg6gs_36`,rail:`_rail_mg6gs_44`,connectorVertical:`_connectorVertical_mg6gs_51`,text:`_text_mg6gs_59`,title:`_title_mg6gs_65`,description:`_description_mg6gs_73`},y=({step:t,title:i,description:a,completed:o=!1,orientation:s=`horizontal`,isLast:c=!1,className:l})=>{let u=s===`vertical`,d=(0,n.jsx)(`span`,{className:v.value,"aria-hidden":`true`,children:o?(0,n.jsx)(r.Check,{size:14,strokeWidth:e.Et(14)}):t}),f=(0,n.jsxs)(`div`,{className:v.text,children:[(0,n.jsx)(`p`,{className:v.title,children:i}),a&&(0,n.jsx)(`p`,{className:v.description,children:a})]});return u?(0,n.jsxs)(`div`,{className:[v.item,v[`item--vertical`],l??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:v.rail,children:[d,!c&&(0,n.jsx)(`div`,{className:v.connectorVertical})]}),f]}):(0,n.jsxs)(`div`,{className:[v.item,v[`item--horizontal`],l??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:v.topRow,children:[d,!c&&(0,n.jsx)(`div`,{className:v.connectorHorizontal})]}),f]})},b={separator:`_separator_pcfo8_1`,line:`_line_pcfo8_9`,overline:`_overline_pcfo8_19`,badge:`_badge_pcfo8_31`,iconWrap:`_iconWrap_pcfo8_37`},x=({children:t,label:r,className:i})=>(0,n.jsxs)(`div`,{className:[b.separator,i??``].filter(Boolean).join(` `),role:`separator`,children:[(0,n.jsx)(e.ft,{className:b.line}),t??(r&&(0,n.jsx)(`span`,{className:b.overline,children:r})),(0,n.jsx)(e.ft,{className:b.line})]}),S={row:`_row_5wjem_2`,left:`_left_5wjem_16`,logo:`_logo_5wjem_23`,logoLg:`_logoLg_5wjem_29`,text:`_text_5wjem_36`,symbol:`_symbol_5wjem_42`,name:`_name_5wjem_50`,right:`_right_5wjem_59`,price:`_price_5wjem_65`,changeRow:`_changeRow_5wjem_73`,changeText:`_changeText_5wjem_78`,trendUp:`_trendUp_5wjem_84`,trendDown:`_trendDown_5wjem_85`,card:`_card_5wjem_88`,header:`_header_5wjem_102`,headerIcon:`_headerIcon_5wjem_109`,headerLabel:`_headerLabel_5wjem_110`,tickerRow:`_tickerRow_5wjem_117`,body:`_body_5wjem_125`,priceRow:`_priceRow_5wjem_132`,priceGroup:`_priceGroup_5wjem_139`,priceLg:`_priceLg_5wjem_144`,changeRowLg:`_changeRowLg_5wjem_153`,changeTextLg:`_changeTextLg_5wjem_158`,chart:`_chart_5wjem_165`},C=e=>Math.abs(e).toLocaleString(`en-US`,{style:`currency`,currency:`USD`}),w=({logo:t,symbol:i,name:a,price:o,change:s,formatAmount:c=C,chart:l,periodLabel:u=`Last 6 months`,onPeriodClick:d,className:f})=>{let p=s.amount>=0,m=p?r.TrendingUp:r.TrendingDown,h=p?`+`:`-`,g=`${h}${c(s.amount)} (${h}${Math.abs(s.percent)}%)`,_=p?S.trendUp:S.trendDown;return l?(0,n.jsxs)(`div`,{className:[S.card,f??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:S.header,children:[(0,n.jsx)(r.ChartColumn,{size:16,strokeWidth:e.Et(16),className:S.headerIcon}),(0,n.jsx)(`span`,{className:S.headerLabel,children:`Stock market`})]}),(0,n.jsxs)(`div`,{className:S.tickerRow,children:[(0,n.jsx)(`span`,{className:S.logoLg,"aria-hidden":`true`,children:t}),(0,n.jsxs)(`div`,{className:S.text,children:[(0,n.jsx)(`p`,{className:S.symbol,children:i}),(0,n.jsx)(`p`,{className:S.name,children:a})]})]}),(0,n.jsxs)(`div`,{className:S.body,children:[(0,n.jsxs)(`div`,{className:S.priceRow,children:[(0,n.jsxs)(`div`,{className:S.priceGroup,children:[(0,n.jsx)(`p`,{className:S.priceLg,children:c(o)}),(0,n.jsxs)(`div`,{className:S.changeRowLg,children:[(0,n.jsx)(m,{size:24,strokeWidth:e.Et(24),className:_}),(0,n.jsx)(`span`,{className:[S.changeTextLg,_].join(` `),children:g})]})]}),(0,n.jsx)(e.vt,{variant:`outline`,size:`sm`,rightIcon:(0,n.jsx)(r.ChevronDown,{size:16,strokeWidth:e.Et(16)}),onClick:d,children:u})]}),(0,n.jsx)(e.it,{data:l,className:S.chart})]})]}):(0,n.jsxs)(`div`,{className:[S.row,f??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:S.left,children:[(0,n.jsx)(`span`,{className:S.logo,"aria-hidden":`true`,children:t}),(0,n.jsxs)(`div`,{className:S.text,children:[(0,n.jsx)(`p`,{className:S.symbol,children:i}),(0,n.jsx)(`p`,{className:S.name,children:a})]})]}),(0,n.jsxs)(`div`,{className:S.right,children:[(0,n.jsx)(`p`,{className:S.price,children:c(o)}),(0,n.jsxs)(`div`,{className:S.changeRow,children:[(0,n.jsx)(m,{size:20,strokeWidth:e.Et(20),className:_}),(0,n.jsx)(`span`,{className:[S.changeText,_].join(` `),children:g})]})]})]})},T={tags:`_tags_bsi1x_1`,remove:`_remove_bsi1x_8`,tag:`_tag_bsi1x_1`,"tag--leaving":`_tag--leaving_bsi1x_22`},ee=160,E=({tags:i,onRemove:a,className:o})=>{let[s,c]=t.default.useState(null),l=t.default.useRef(void 0);t.default.useEffect(()=>()=>window.clearTimeout(l.current),[]);let u=(e,t)=>{if(!(!a||s)){if(window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches){a(e,t);return}c(e),l.current=window.setTimeout(()=>{a(e,t),c(null)},ee)}};return(0,n.jsx)(`div`,{className:[T.tags,o??``].filter(Boolean).join(` `),children:i.map((t,i)=>(0,n.jsx)(e.rt,{className:[T.tag,s===t?T[`tag--leaving`]:``].filter(Boolean).join(` `),rightIcon:a&&(0,n.jsx)(`button`,{type:`button`,className:T.remove,onClick:()=>u(t,i),"aria-label":`Remove ${t}`,children:(0,n.jsx)(r.X,{size:12,strokeWidth:e.Et(12)})}),children:t},t))})},D={ticker:`_ticker_6xnxy_1`,track:`_track_6xnxy_9`,"ticker-scroll":`_ticker-scroll_6xnxy_1`,row:`_row_6xnxy_24`,item:`_item_6xnxy_33`,symbol:`_symbol_6xnxy_40`,change:`_change_6xnxy_49`,trendUp:`_trendUp_6xnxy_57`,trendDown:`_trendDown_6xnxy_58`,fadeLeft:`_fadeLeft_6xnxy_60`,fadeRight:`_fadeRight_6xnxy_61`},te=e=>`${e>=0?`+`:``}${e}%`,ne=({items:t,formatChange:i,ariaHidden:a})=>(0,n.jsx)(`div`,{className:D.row,"aria-hidden":a,children:t.map((t,a)=>{let o=t.changePercent>=0,s=o?r.TrendingUp:r.TrendingDown,c=o?D.trendUp:D.trendDown;return(0,n.jsxs)(`div`,{className:D.item,children:[(0,n.jsx)(`span`,{className:D.symbol,children:t.symbol}),(0,n.jsx)(s,{size:14,strokeWidth:e.Et(14),className:c}),(0,n.jsx)(`span`,{className:[D.change,c].join(` `),children:i(t.changePercent)})]},`${t.symbol}-${a}`)})}),re=({items:e,speed:r=40,formatChange:i=te,className:a})=>{let o=t.default.useRef(null),[s,c]=t.default.useState(20);return t.default.useEffect(()=>{let e=o.current;if(!e)return;let t=e.firstElementChild;if(!t)return;let n=()=>{let e=t.scrollWidth;e>0&&c(e/r)};n();let i=new ResizeObserver(n);return i.observe(t),()=>i.disconnect()},[e,r]),(0,n.jsxs)(`div`,{className:[D.ticker,a??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{ref:o,className:D.track,style:{"--ticker-duration":`${s}s`},children:[(0,n.jsx)(ne,{items:e,formatChange:i}),(0,n.jsx)(ne,{items:e,formatChange:i,ariaHidden:!0})]}),(0,n.jsx)(`div`,{className:D.fadeLeft,"aria-hidden":`true`}),(0,n.jsx)(`div`,{className:D.fadeRight,"aria-hidden":`true`})]})},O={list:`_list_ovxee_1`,row:`_row_ovxee_9`,rowLast:`_rowLast_ovxee_18`,left:`_left_ovxee_22`,iconWrap:`_iconWrap_ovxee_29`,info:`_info_ovxee_41`,name:`_name_ovxee_46`,category:`_category_ovxee_54`,amount:`_amount_ovxee_63`,amountUp:`_amountUp_ovxee_71`,amountDown:`_amountDown_ovxee_72`,empty:`_empty_ovxee_75`,emptyIcon:`_emptyIcon_ovxee_86`,emptyTitle:`_emptyTitle_ovxee_89`,emptyDesc:`_emptyDesc_ovxee_96`},k=e=>`${e>=0?`+`:`-`}${Math.abs(e).toLocaleString(`en-US`,{style:`currency`,currency:`USD`})}`,ie=({transactions:t,formatAmount:i=k,emptyTitle:a=`No transactions yet`,emptyDescription:o=`Your activity will show up here.`,className:s})=>t.length===0?(0,n.jsxs)(`div`,{className:[O.empty,s??``].filter(Boolean).join(` `),children:[(0,n.jsx)(r.Receipt,{size:24,strokeWidth:e.Et(24),className:O.emptyIcon}),(0,n.jsx)(`p`,{className:O.emptyTitle,children:a}),(0,n.jsx)(`p`,{className:O.emptyDesc,children:o})]}):(0,n.jsx)(`div`,{className:[O.list,s??``].filter(Boolean).join(` `),children:t.map((e,r)=>{let a=e.amount>=0;return(0,n.jsxs)(`div`,{className:[O.row,r===t.length-1?O.rowLast:``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:O.left,children:[(0,n.jsx)(`span`,{className:O.iconWrap,"aria-hidden":`true`,children:e.icon}),(0,n.jsxs)(`div`,{className:O.info,children:[(0,n.jsx)(`p`,{className:O.name,children:e.name}),(0,n.jsx)(`p`,{className:O.category,children:e.category})]})]}),(0,n.jsx)(`p`,{className:[O.amount,a?O.amountUp:O.amountDown].join(` `),children:i(e.amount)})]},e.id??`${e.name}-${r}`)})}),A={root:`_root_19qxp_1`,rootAttributed:`_rootAttributed_19qxp_10`,rootSimple:`_rootSimple_19qxp_18`,rail:`_rail_19qxp_27`,body:`_body_19qxp_37`,markRow:`_markRow_19qxp_46`,markRowEnd:`_markRowEnd_19qxp_51`,mark:`_mark_19qxp_46`,quoteAttributed:`_quoteAttributed_19qxp_59`,quoteSimple:`_quoteSimple_19qxp_68`,author:`_author_19qxp_77`,authorText:`_authorText_19qxp_83`,authorName:`_authorName_19qxp_91`},ae=({quote:t,author:i,className:a})=>{let o=!!i;return(0,n.jsxs)(`div`,{className:[A.root,o?A.rootAttributed:A.rootSimple,a??``].filter(Boolean).join(` `),children:[(0,n.jsx)(e.ft,{orientation:`vertical`,className:A.rail}),(0,n.jsxs)(`div`,{className:A.body,children:[o&&(0,n.jsx)(`span`,{className:A.markRow,"aria-hidden":`true`,children:(0,n.jsx)(r.Quote,{size:12,strokeWidth:e.Et(12),className:A.mark,fill:`currentColor`})}),(0,n.jsx)(`p`,{className:o?A.quoteAttributed:A.quoteSimple,children:o?t:`"${t}"`}),o&&(0,n.jsx)(`span`,{className:[A.markRow,A.markRowEnd].join(` `),"aria-hidden":`true`,children:(0,n.jsx)(r.Quote,{size:12,strokeWidth:e.Et(12),className:A.mark,fill:`currentColor`})}),i&&(0,n.jsxs)(`div`,{className:A.author,children:[(0,n.jsx)(e.Ct,{size:`sm`,src:i.avatarSrc,alt:i.avatarAlt??i.name}),(0,n.jsxs)(`p`,{className:A.authorText,children:[(0,n.jsx)(`span`,{className:A.authorName,children:i.name}),(0,n.jsxs)(`span`,{className:A.authorRole,children:[`, `,i.role]})]})]})]})]})},j={root:`_root_btuyr_1`,rootLeft:`_rootLeft_btuyr_13`,rootTop:`_rootTop_btuyr_19`,ruleLeft:`_ruleLeft_btuyr_24`,ruleTop:`_ruleTop_btuyr_31`,text:`_text_btuyr_39`},oe=({text:e,align:t=`left`,className:r})=>(0,n.jsxs)(`div`,{className:[j.root,t===`top`?j.rootTop:j.rootLeft,r??``].filter(Boolean).join(` `),children:[(0,n.jsx)(`span`,{className:t===`top`?j.ruleTop:j.ruleLeft,"aria-hidden":`true`}),(0,n.jsx)(`p`,{className:j.text,children:e})]}),M={root:`_root_awxwk_1`,imageWrap:`_imageWrap_awxwk_10`,"root--large":`_root--large_awxwk_27`,"root--small":`_root--small_awxwk_33`,image:`_image_awxwk_10`,caption:`_caption_awxwk_47`},se=({src:e,alt:t=``,size:r=`large`,caption:i,className:a})=>(0,n.jsxs)(`figure`,{className:[M.root,M[`root--${r}`],a??``].filter(Boolean).join(` `),children:[(0,n.jsx)(`span`,{className:M.imageWrap,children:(0,n.jsx)(`img`,{src:e,alt:t,className:M.image})}),i&&(0,n.jsx)(`figcaption`,{className:M.caption,children:i})]}),N={root:`_root_uc5r9_1`,rootCenter:`_rootCenter_uc5r9_10`,rootLeft:`_rootLeft_uc5r9_15`,title:`_title_uc5r9_20`,description:`_description_uc5r9_30`,ctaRow:`_ctaRow_uc5r9_39`,avatarBlock:`_avatarBlock_uc5r9_45`,avatarsCaption:`_avatarsCaption_uc5r9_57`},ce=({title:t,description:i,badgeLabel:a,primaryCta:o,secondaryCta:s,avatars:c,avatarsCaption:l,align:u=`center`,className:d})=>{let f=!!(o||s),p=!!(c&&c.length>0);return(0,n.jsxs)(`div`,{className:[N.root,u===`left`?N.rootLeft:N.rootCenter,d??``].filter(Boolean).join(` `),children:[a&&(0,n.jsx)(e.rt,{variant:`accent`,emphasis:`subtle`,children:a}),(0,n.jsx)(`p`,{className:N.title,children:t}),i&&(0,n.jsx)(`p`,{className:N.description,children:i}),f&&(0,n.jsxs)(`div`,{className:N.ctaRow,children:[o&&(0,n.jsx)(e.vt,{variant:`primary`,onClick:o.onClick,children:o.label}),s&&(0,n.jsx)(e.vt,{variant:`secondary`,leftIcon:(0,n.jsx)(r.Play,{size:16,strokeWidth:e.Et(16),fill:`currentColor`}),onClick:s.onClick,children:s.label})]}),p&&(0,n.jsxs)(`div`,{className:N.avatarBlock,children:[(0,n.jsx)(e.B,{size:`md`,avatars:c}),l&&(0,n.jsx)(`p`,{className:N.avatarsCaption,children:l})]})]})},le={root:`_root_5kajg_1`,item:`_item_5kajg_12`,marker:`_marker_5kajg_18`,dot:`_dot_5kajg_26`,label:`_label_5kajg_34`},ue=({items:t,style:i=`check`,className:a})=>(0,n.jsx)(`ul`,{className:[le.root,a??``].filter(Boolean).join(` `),children:t.map((t,a)=>(0,n.jsxs)(`li`,{className:le.item,children:[(0,n.jsxs)(`span`,{className:le.marker,"aria-hidden":`true`,children:[i===`check`&&(0,n.jsx)(r.Check,{size:18,strokeWidth:e.Et(18)}),i===`arrow`&&(0,n.jsx)(r.ArrowRight,{size:16,strokeWidth:e.Et(16)}),i===`bullet`&&(0,n.jsx)(`span`,{className:le.dot})]}),(0,n.jsx)(`span`,{className:le.label,children:t})]},a))}),de={marquee:`_marquee_1pc4i_1`,track:`_track_1pc4i_13`,row:`_row_1pc4i_19`,item:`_item_1pc4i_25`,fadeLeft:`_fadeLeft_1pc4i_31`,fadeRight:`_fadeRight_1pc4i_32`},fe=({items:e,gap:t,ariaHidden:r})=>(0,n.jsx)(`div`,{className:de.row,style:{gap:t,paddingRight:t},"aria-hidden":r,children:e.map((e,t)=>(0,n.jsx)(`div`,{className:de.item,children:e},t))}),pe=({items:e,speed:r=40,gap:i,className:a})=>{let o=t.default.useRef(null),s=t.default.useRef(0),c=t.default.useRef(0),l=t.default.useRef(!1);return t.default.useEffect(()=>{let e=o.current?.firstElementChild;if(!e)return;let t=()=>{s.current=e.scrollWidth};t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[e,i]),t.default.useEffect(()=>{let e=o.current;if(!e||window.matchMedia(`(prefers-reduced-motion: reduce)`).matches)return;let t,n=performance.now(),i=()=>{let a=performance.now(),o=(a-n)/1e3;n=a;let u=l.current?r*.2:r,d=s.current;d>0&&(c.current=(c.current+u*o)%d,e.style.transform=`translateX(-${c.current}px)`),t=setTimeout(i,16)};return t=setTimeout(i,16),()=>clearTimeout(t)},[r]),(0,n.jsxs)(`div`,{className:[de.marquee,a??``].filter(Boolean).join(` `),onMouseEnter:()=>{l.current=!0},onMouseLeave:()=>{l.current=!1},children:[(0,n.jsxs)(`div`,{ref:o,className:de.track,children:[(0,n.jsx)(fe,{items:e,gap:i}),(0,n.jsx)(fe,{items:e,gap:i,ariaHidden:!0})]}),(0,n.jsx)(`div`,{className:de.fadeLeft,"aria-hidden":`true`}),(0,n.jsx)(`div`,{className:de.fadeRight,"aria-hidden":`true`})]})},P={root:`_root_17a1b_1`,numRow:`_numRow_17a1b_9`,value:`_value_17a1b_15`,trend:`_trend_17a1b_25`,trendUp:`_trendUp_17a1b_35`,trendDown:`_trendDown_17a1b_39`,label:`_label_17a1b_43`},me=({value:t,label:i,trend:a,className:o})=>{let s=a!==void 0,c=s&&a>=0,l=c?r.TrendingUp:r.TrendingDown;return(0,n.jsxs)(`div`,{className:[P.root,o??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:P.numRow,children:[(0,n.jsx)(`p`,{className:P.value,children:t}),s&&(0,n.jsxs)(`span`,{className:[P.trend,c?P.trendUp:P.trendDown].join(` `),children:[(0,n.jsx)(l,{size:24,strokeWidth:e.Et(24)}),Math.abs(a),`%`]})]}),(0,n.jsx)(`p`,{className:P.label,children:i})]})},F={root:`_root_scbx4_1`,header:`_header_scbx4_13`,label:`_label_scbx4_21`,toggle:`_toggle_scbx4_34`,fullWidth:`_fullWidth_scbx4_48`,collapse:`_collapse_scbx4_67`,collapseOpen:`_collapseOpen_scbx4_74`,collapseInner:`_collapseInner_scbx4_78`,navLinks:`_navLinks_scbx4_91`,navLink:`_navLink_scbx4_91`},he=({label:i,links:a,ctaLabel:o=`Get started`,onCtaClick:s,open:c,defaultOpen:l=!1,onOpenChange:u,className:d})=>{let f=c!==void 0,[p,m]=t.default.useState(l),h=f?c:p,g=()=>{let e=!h;f||m(e),u?.(e)},_=t.default.useRef(null),[v,y]=t.default.useState(0);return t.default.useEffect(()=>{let e=_.current;if(!e)return;let t=()=>y(e.scrollHeight);t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[a,o]),(0,n.jsxs)(`div`,{className:[F.root,d??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:F.header,children:[(0,n.jsx)(`p`,{className:F.label,children:i}),(0,n.jsx)(`button`,{type:`button`,className:F.toggle,onClick:g,"aria-expanded":h,"aria-label":h?`Close menu`:`Open menu`,children:h?(0,n.jsx)(r.X,{size:16,strokeWidth:e.Et(16)}):(0,n.jsx)(r.Menu,{size:16,strokeWidth:e.Et(16)})})]}),(0,n.jsx)(`div`,{className:[F.collapse,h?F.collapseOpen:``].filter(Boolean).join(` `),style:{maxHeight:h?`${v}px`:`0px`},"aria-hidden":!h,children:(0,n.jsxs)(`div`,{ref:_,className:F.collapseInner,children:[(0,n.jsx)(`nav`,{className:F.navLinks,"aria-label":i,children:a.map(e=>(0,n.jsx)(`a`,{href:e.href,onClick:e.onClick,className:F.navLink,tabIndex:h?void 0:-1,children:e.label},e.label))}),(0,n.jsx)(e.ft,{className:F.fullWidth}),(0,n.jsx)(e.vt,{variant:`primary`,className:F.fullWidth,onClick:s,tabIndex:h?void 0:-1,children:o})]})})]})},ge={root:`_root_lrpdp_1`,"root--sm":`_root--sm_lrpdp_14`,"root--md":`_root--md_lrpdp_18`,"root--lg":`_root--lg_lrpdp_22`,defaultMark:`_defaultMark_lrpdp_27`},_e={sm:14,md:16,lg:18},ve=({size:r=`md`,logo:i,label:a,className:o})=>{let s=_e[r],c=t.default.isValidElement(i)?t.default.cloneElement(i,{size:s,strokeWidth:e.Et(s)}):i??(0,n.jsx)(`img`,{src:`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='28'%20height='28'%20viewBox='0%200%2028%2028'%20fill='none'%3e%3cpath%20d='M0%208C0%203.58172%203.58172%200%208%200H20C24.4183%200%2028%203.58172%2028%208V20C28%2024.4183%2024.4183%2028%2020%2028H8C3.58172%2028%200%2024.4183%200%2020V8Z'%20fill='%23FF4700'/%3e%3cpath%20d='M6.63704%2015.9944L20.6362%2014.491'%20stroke='%23FAFAF9'%20stroke-width='2.5'%20stroke-linecap='round'/%3e%3cpath%20d='M14.208%2022.884C12.848%2022.884%2011.664%2022.636%2010.656%2022.14C9.664%2021.644%208.88%2020.956%208.304%2020.076C7.728%2019.196%207.392%2018.172%207.296%2017.004L9.96%2016.836C10.072%2017.636%2010.304%2018.316%2010.656%2018.876C11.008%2019.42%2011.48%2019.836%2012.072%2020.124C12.68%2020.396%2013.408%2020.532%2014.256%2020.532C14.992%2020.532%2015.616%2020.444%2016.128%2020.268C16.656%2020.076%2017.056%2019.796%2017.328%2019.428C17.6%2019.06%2017.736%2018.612%2017.736%2018.084C17.736%2017.604%2017.616%2017.18%2017.376%2016.812C17.152%2016.428%2016.712%2016.084%2016.056%2015.78C15.416%2015.46%2014.472%2015.148%2013.224%2014.844C11.864%2014.508%2010.776%2014.14%209.96%2013.74C9.144%2013.34%208.552%2012.844%208.184%2012.252C7.832%2011.644%207.656%2010.9%207.656%2010.02C7.656%209.044%207.888%208.188%208.352%207.452C8.832%206.7%209.512%206.116%2010.392%205.7C11.272%205.284%2012.328%205.076%2013.56%205.076C14.856%205.076%2015.96%205.316%2016.872%205.796C17.8%206.276%2018.528%206.932%2019.056%207.764C19.6%208.596%2019.936%209.548%2020.064%2010.62L17.4%2010.764C17.32%2010.108%2017.12%209.532%2016.8%209.036C16.48%208.524%2016.048%208.132%2015.504%207.86C14.96%207.572%2014.296%207.428%2013.512%207.428C12.52%207.428%2011.736%207.66%2011.16%208.124C10.6%208.572%2010.32%209.172%2010.32%209.924C10.32%2010.404%2010.432%2010.812%2010.656%2011.148C10.896%2011.468%2011.312%2011.748%2011.904%2011.988C12.512%2012.228%2013.368%2012.484%2014.472%2012.756C15.944%2013.092%2017.112%2013.508%2017.976%2014.004C18.856%2014.484%2019.48%2015.052%2019.848%2015.708C20.216%2016.364%2020.4%2017.108%2020.4%2017.94C20.4%2018.948%2020.136%2019.828%2019.608%2020.58C19.096%2021.316%2018.376%2021.884%2017.448%2022.284C16.52%2022.684%2015.44%2022.884%2014.208%2022.884Z'%20fill='%23FAFAF9'/%3e%3c/svg%3e`,alt:``,width:s,height:s,className:ge.defaultMark});return(0,n.jsx)(`span`,{className:[ge.root,ge[`root--${r}`],o??``].filter(Boolean).join(` `),role:`img`,"aria-label":a??`Logo placeholder`,children:c})},I={root:`_root_ibchq_1`,rootCompact:`_rootCompact_ibchq_7`,rootDetailed:`_rootDetailed_ibchq_14`,infoCompact:`_infoCompact_ibchq_21`,infoDetailed:`_infoDetailed_ibchq_27`,name:`_name_ibchq_35`,role:`_role_ibchq_44`,bio:`_bio_ibchq_53`,social:`_social_ibchq_63`,socialBtn:`_socialBtn_ibchq_71`},ye=({name:t,role:r,avatarSrc:i,avatarAlt:a,bio:o,socialLinks:s=[],className:c})=>{let l=!!o||s.length>0;return(0,n.jsxs)(`div`,{className:[I.root,l?I.rootDetailed:I.rootCompact,c??``].filter(Boolean).join(` `),children:[(0,n.jsx)(e.Ct,{size:`xl`,src:i,alt:a??t}),(0,n.jsxs)(`div`,{className:l?I.infoDetailed:I.infoCompact,children:[(0,n.jsx)(`p`,{className:I.name,children:t}),(0,n.jsx)(`p`,{className:I.role,children:r})]}),l&&o&&(0,n.jsx)(`p`,{className:I.bio,children:o}),l&&s.length>0&&(0,n.jsx)(`div`,{className:I.social,children:s.map((e,t)=>(0,n.jsx)(`a`,{href:e.href,onClick:e.onClick,className:I.socialBtn,"aria-label":e.label,children:e.icon},e.label??t))})]})},be={heading:`_heading_96cdx_1`,h2:`_h2_96cdx_8`,h3:`_h3_96cdx_14`},xe=({children:e,level:t=`h2`,className:r})=>(0,n.jsx)(t,{className:[be.heading,be[t],r??``].filter(Boolean).join(` `),children:e}),Se={paragraph:`_paragraph_8pqdi_1`},Ce=({children:e,className:t})=>(0,n.jsx)(`p`,{className:[Se.paragraph,t??``].filter(Boolean).join(` `),children:e}),L={rootBordered:`_rootBordered_5cgsj_1`,rail:`_rail_5cgsj_12`,contentHorizontal:`_contentHorizontal_5cgsj_18`,contentVertical:`_contentVertical_5cgsj_25`,textHorizontal:`_textHorizontal_5cgsj_33`,textVertical:`_textVertical_5cgsj_41`,title:`_title_5cgsj_49`,description:`_description_5cgsj_57`},we=({icon:r,title:i,description:a,layout:o=`horizontal`,leftBorder:s=!1,className:c})=>{let l=o===`vertical`,u=(0,n.jsxs)(`div`,{className:l?L.contentVertical:L.contentHorizontal,children:[(0,n.jsx)(e.V,{icon:r,size:`sm`,variant:`light`}),(0,n.jsxs)(`div`,{className:l?L.textVertical:L.textHorizontal,children:[(0,n.jsx)(`p`,{className:L.title,children:i}),(0,n.jsx)(`p`,{className:L.description,children:a})]})]});return s?(0,n.jsxs)(`div`,{className:[L.rootBordered,c??``].filter(Boolean).join(` `),children:[(0,n.jsx)(e.ft,{orientation:`vertical`,className:L.rail}),u]}):t.default.cloneElement(u,{className:[u.props.className,c??``].filter(Boolean).join(` `)})},Te={chart:`_chart_qqaox_2`},Ee={sm:180,md:240,lg:320,xl:420},De=({data:r,variant:a=`default`,seriesLabels:o=[`Value`,`Value 2`],size:s=`md`,height:c,className:l})=>{let u=t.default.useRef(null),d=e.st(u),f=d(`--color-chart-5`)??`#dca84f`,p=d(`--color-chart-2`)??`#5b92dd`,m=d(`--color-border-subtle`)??`#e7e5e1`,h=d(`--color-fg-muted`)??`#78716a`,g=r.some(e=>e.value2!==void 0),_=a===`step`?`step`:a===`linear`?`linear`:`monotone`,v=a===`stacked`?`stack`:void 0;return(0,n.jsx)(`div`,{ref:u,className:[Te.chart,l??``].filter(Boolean).join(` `),children:(0,n.jsx)(i.ResponsiveContainer,{width:`100%`,height:c??Ee[s],children:(0,n.jsxs)(i.AreaChart,{data:r,margin:{top:8,right:8,bottom:8,left:0},children:[(0,n.jsxs)(`defs`,{children:[(0,n.jsxs)(`linearGradient`,{id:`sakani-area-1`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,n.jsx)(`stop`,{offset:`5%`,stopColor:f,stopOpacity:.35}),(0,n.jsx)(`stop`,{offset:`95%`,stopColor:f,stopOpacity:.02})]}),(0,n.jsxs)(`linearGradient`,{id:`sakani-area-2`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,n.jsx)(`stop`,{offset:`5%`,stopColor:p,stopOpacity:.35}),(0,n.jsx)(`stop`,{offset:`95%`,stopColor:p,stopOpacity:.02})]})]}),(0,n.jsx)(i.CartesianGrid,{strokeDasharray:`3 3`,stroke:m,vertical:!1}),(0,n.jsx)(i.XAxis,{dataKey:`label`,stroke:h,fontSize:12,tickLine:!1,axisLine:!1,interval:0}),(0,n.jsx)(i.Tooltip,{cursor:{stroke:d(`--color-border-default`)??`#dbdad7`,strokeWidth:1},content:(0,n.jsx)(e.at,{}),wrapperStyle:{zIndex:50}}),g&&(0,n.jsx)(i.Area,{type:_,dataKey:`value2`,name:o[1]??`Value 2`,stackId:v,stroke:p,strokeWidth:2,fill:`url(#sakani-area-2)`,dot:!1,activeDot:{r:4,fill:p,stroke:d(`--color-bg-canvas`),strokeWidth:1.5}}),(0,n.jsx)(i.Area,{type:_,dataKey:`value`,name:o[0]??`Value`,stackId:v,stroke:f,strokeWidth:2,fill:`url(#sakani-area-1)`,dot:!1,activeDot:{r:4,fill:f,stroke:d(`--color-bg-canvas`),strokeWidth:1.5}})]})})})},R={col:`_col_1v24u_2`,col__header:`_col__header_1v24u_11`,col__dot:`_col__dot_1v24u_12`,col__title:`_col__title_1v24u_13`,col__count:`_col__count_1v24u_14`,col__spacer:`_col__spacer_1v24u_15`,col__action:`_col__action_1v24u_16`,col__body:`_col__body_1v24u_24`,col__drop:`_col__drop_1v24u_25`,col__add:`_col__add_1v24u_31`},Oe=({state:t=`default`,title:i,count:a,dotColor:o=`var(--color-chart-1)`,children:s,onAdd:c,onMenu:l,className:u})=>(0,n.jsxs)(`div`,{className:[R.col,u??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:R.col__header,children:[(0,n.jsx)(`span`,{className:R.col__dot,style:{background:o},"aria-hidden":`true`}),(0,n.jsx)(`span`,{className:R.col__title,children:i}),a!=null&&(0,n.jsx)(`span`,{className:R.col__count,children:a}),(0,n.jsx)(`span`,{className:R.col__spacer}),(0,n.jsx)(`button`,{type:`button`,className:R.col__action,onClick:c,"aria-label":`Add task`,children:(0,n.jsx)(r.Plus,{size:16,strokeWidth:e.Et(16)})}),(0,n.jsx)(`button`,{type:`button`,className:R.col__action,onClick:l,"aria-label":`Column options`,children:(0,n.jsx)(r.MoreHorizontal,{size:16,strokeWidth:e.Et(16)})})]}),(0,n.jsx)(`div`,{className:R.col__body,children:t===`empty`?(0,n.jsx)(`div`,{className:R.col__drop,children:`Drop tasks here`}):s}),(0,n.jsxs)(`button`,{type:`button`,className:R.col__add,onClick:c,children:[(0,n.jsx)(r.Plus,{size:16,strokeWidth:e.Et(16),"aria-hidden":`true`}),`Add task`]})]}),z={calendar:`_calendar_qvyxg_2`,header:`_header_qvyxg_14`,header__label:`_header__label_qvyxg_15`,navBtn:`_navBtn_qvyxg_16`,weekdays:`_weekdays_qvyxg_27`,weekday:`_weekday_qvyxg_27`,grid:`_grid_qvyxg_34`,day:`_day_qvyxg_35`,"day--default":`_day--default_qvyxg_49`,"day--hover":`_day--hover_qvyxg_50`,"day--selected":`_day--selected_qvyxg_51`,"day--today":`_day--today_qvyxg_52`,"day--in-range":`_day--in-range_qvyxg_53`,"day--outside":`_day--outside_qvyxg_54`,"day--disabled":`_day--disabled_qvyxg_55`,dropdowns:`_dropdowns_qvyxg_58`,dropdown:`_dropdown_qvyxg_58`},ke=[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],Ae=[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],je=(e,t)=>!!e&&!!t&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate(),Me=e=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),Ne=({mode:i=`single`,value:a,onChange:o,range:s,onRangeChange:c,headerType:l=`arrows`,defaultMonth:u,minDate:d,maxDate:f,className:p})=>{let[m,h]=t.default.useState(()=>{let e=u??a??s?.from??new Date;return new Date(e.getFullYear(),e.getMonth(),1)}),[g,_]=t.default.useState({}),v=e.N(),y=s===void 0?g:s,b=new Date,x=m.getFullYear(),S=m.getMonth(),C=new Date(x,S,1).getDay(),w=new Date(x,S,1-C),T=Array.from({length:42},(e,t)=>new Date(w.getFullYear(),w.getMonth(),w.getDate()+t)),ee=e=>d&&e<Me(d)||f&&e>f,E=e=>{s===void 0&&_(e),c?.(e)},D=e=>{if(i===`single`){o?.(e);return}let{from:t,to:n}=y;E(!t||t&&n?{from:e,to:void 0}:e<t?{from:e,to:t}:{from:t,to:e})},te=e=>{if(ee(e))return`disabled`;if(i===`single`){if(je(e,a))return`selected`}else{let{from:t,to:n}=y;if(je(e,t)||je(e,n))return`selected`;if(t&&n&&e>t&&e<n)return`in-range`}return e.getMonth()===S?je(e,b)?`today`:`default`:`outside`},ne=d?d.getFullYear():x-10,re=f?f.getFullYear():x+10,O=Array.from({length:re-ne+1},(e,t)=>ne+t);return(0,n.jsxs)(`div`,{className:[z.calendar,p??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:z.header,children:[(0,n.jsx)(`button`,{type:`button`,className:z.navBtn,onClick:()=>h(new Date(x,S-1,1)),"aria-label":`Previous month`,children:(0,n.jsx)(r.ChevronLeft,{size:16,strokeWidth:e.Et(16)})}),l===`dropdowns`?(0,n.jsxs)(`span`,{className:z.dropdowns,children:[(0,n.jsx)(`select`,{className:z.dropdown,value:S,onChange:e=>h(new Date(x,Number(e.target.value),1)),"aria-label":`Month`,children:Ae.map((e,t)=>(0,n.jsx)(`option`,{value:t,children:e},e))}),(0,n.jsx)(`select`,{className:z.dropdown,value:x,onChange:e=>h(new Date(Number(e.target.value),S,1)),"aria-label":`Year`,children:O.map(e=>(0,n.jsx)(`option`,{value:e,children:e},e))})]}):(0,n.jsxs)(`span`,{className:z.header__label,children:[Ae[S],` `,x]}),(0,n.jsx)(`button`,{type:`button`,className:z.navBtn,onClick:()=>h(new Date(x,S+1,1)),"aria-label":`Next month`,children:(0,n.jsx)(r.ChevronRight,{size:16,strokeWidth:e.Et(16)})})]}),(0,n.jsx)(`div`,{className:z.weekdays,children:ke.map(e=>(0,n.jsx)(`span`,{className:z.weekday,children:e},e))}),(0,n.jsxs)(`div`,{ref:v.ref,...v.groupProps,className:z.grid,children:[v.highlight,T.map((e,t)=>{let r=te(e);return(0,n.jsx)(`button`,{type:`button`,"data-hover-item":``,className:[z.day,z[`day--${r}`]].filter(Boolean).join(` `),disabled:r===`disabled`,"aria-current":r===`today`?`date`:void 0,"aria-selected":r===`selected`,"aria-label":e.toLocaleDateString(void 0,{weekday:`long`,year:`numeric`,month:`long`,day:`numeric`}),onClick:()=>D(e),children:e.getDate()},t)})]})]})},B={card:`_card_1qpcc_3`,"card--interactive":`_card--interactive_1qpcc_22`,card__header:`_card__header_1qpcc_30`,card__title:`_card__title_1qpcc_34`,card__description:`_card__description_1qpcc_43`,card__body:`_card__body_1qpcc_53`,card__actions:`_card__actions_1qpcc_57`,"card__actions--split":`_card__actions--split_1qpcc_66`,card__actionsGroup:`_card__actionsGroup_1qpcc_67`},Pe=({title:e,description:t,actions:r,leadingAction:i,interactive:a,children:o,className:s})=>(0,n.jsxs)(`div`,{className:[B.card,a?B[`card--interactive`]:``,s??``].filter(Boolean).join(` `),children:[(e||t)&&(0,n.jsxs)(`div`,{className:B.card__header,children:[e&&(0,n.jsx)(`h3`,{className:B.card__title,children:e}),t&&(0,n.jsx)(`p`,{className:B.card__description,children:t})]}),o&&(0,n.jsx)(`div`,{className:B.card__body,children:o}),(r||i)&&(i?(0,n.jsxs)(`div`,{className:[B.card__actions,B[`card__actions--split`]].join(` `),children:[i,(0,n.jsx)(`div`,{className:B.card__actionsGroup,children:r})]}):(0,n.jsx)(`div`,{className:B.card__actions,children:r}))]}),V={field:`_field_1oby0_7`,field__label:`_field__label_1oby0_8`,field__description:`_field__description_1oby0_9`,field__error:`_field__error_1oby0_10`,control:`_control_1oby0_13`,"control--sm":`_control--sm_1oby0_25`,"control--md":`_control--md_1oby0_26`,"control--lg":`_control--lg_1oby0_27`,"control--open":`_control--open_1oby0_30`,"control--error":`_control--error_1oby0_41`,"control--disabled":`_control--disabled_1oby0_46`,control__value:`_control__value_1oby0_52`,"control__value--placeholder":`_control__value--placeholder_1oby0_62`,control__input:`_control__input_1oby0_63`,control__chevron:`_control__chevron_1oby0_83`,"control__chevron--open":`_control__chevron--open_1oby0_84`,chips:`_chips_1oby0_90`,chip:`_chip_1oby0_90`,"chip--leaving":`_chip--leaving_1oby0_102`,"sakani-combobox-chip-out":`_sakani-combobox-chip-out_1oby0_1`,chip__remove:`_chip__remove_1oby0_110`,panel:`_panel_1oby0_121`,"panel--entering":`_panel--entering_1oby0_145`,"sakani-combobox-panel-in":`_sakani-combobox-panel-in_1oby0_1`,"panel--exiting":`_panel--exiting_1oby0_146`,"sakani-combobox-panel-out":`_sakani-combobox-panel-out_1oby0_1`,panel__empty:`_panel__empty_1oby0_156`,option:`_option_1oby0_164`,"option--selected":`_option--selected_1oby0_189`,"option--disabled":`_option--disabled_1oby0_190`,optionHighlight:`_optionHighlight_1oby0_165`,"optionHighlight--animated":`_optionHighlight--animated_1oby0_221`,option__box:`_option__box_1oby0_228`,"option__box--checked":`_option__box--checked_1oby0_245`,option__icon:`_option__icon_1oby0_250`,option__label:`_option__label_1oby0_251`,option__check:`_option__check_1oby0_252`,panel__loading:`_panel__loading_1oby0_255`,panel__spinner:`_panel__spinner_1oby0_259`,"sakani-cb-spin":`_sakani-cb-spin_1oby0_1`},Fe=({options:r,mode:i=`single`,size:a=`md`,label:o,description:s,error:c,placeholder:l=`Select...`,disabled:u,loading:d,value:f,onChange:p,className:m})=>{let h=t.default.useId(),[g,_]=t.default.useState(!1),[v,y]=t.default.useState(!1),[b,x]=t.default.useState(0),S=t.default.useRef(null),C=r;t.default.useEffect(()=>{g&&y(!0)},[g]);let w=t.default.useRef({}),T=t.default.useRef(null),[ee,E]=t.default.useState(null),[D,te]=t.default.useState(!1);t.default.useLayoutEffect(()=>{let e=w.current[b];if(!e){E(null);return}E({top:e.offsetTop,height:e.offsetHeight})},[b,C.length]),t.default.useLayoutEffect(()=>{if(!v){te(!1);return}te(!1);let e=window.requestAnimationFrame(()=>te(!0));return()=>window.cancelAnimationFrame(e)},[v]),t.default.useEffect(()=>{if(!T.current)return;let e=new ResizeObserver(()=>{let e=w.current[b];e&&E({top:e.offsetTop,height:e.offsetHeight})});return e.observe(T.current),()=>e.disconnect()},[v]);let[ne,re]=t.default.useState(i===`multi`?[]:``),O=f===void 0?ne:f,k=Array.isArray(O)?O:O?[O]:[],[ie,A]=t.default.useState(()=>k.map(e=>({value:e,leaving:!1}))),ae=k.join(`\0`);t.default.useLayoutEffect(()=>{A(e=>{let t=e.map(e=>({value:e.value,leaving:!k.includes(e.value)}));for(let e of k)t.some(t=>t.value===e)||t.push({value:e,leaving:!1});return t})},[ae]);let j=e=>A(t=>t.filter(t=>!(t.value===e&&t.leaving))),oe=!!c;t.default.useEffect(()=>{let e=e=>{S.current&&!S.current.contains(e.target)&&_(!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[]);let M=e=>{f===void 0&&re(e),p?.(e)},se=e=>{if(!e.disabled)if(i===`multi`){let t=new Set(k);t.has(e.value)?t.delete(e.value):t.add(e.value),M([...t])}else M(e.value),_(!1)},N=e=>r.find(t=>t.value===e)?.label??e,ce=k.length?N(k[0]):``,le=e=>{u||(e.key===`ArrowDown`?(e.preventDefault(),_(!0),x(e=>Math.min(e+1,C.length-1))):e.key===`ArrowUp`?(e.preventDefault(),x(e=>Math.max(e-1,0))):e.key===`Enter`?(e.preventDefault(),g&&C[b]?se(C[b]):_(!0)):e.key===`Escape`&&_(!1))},ue=u?`disabled`:oe?`error`:g?`open`:`default`;return(0,n.jsxs)(`div`,{className:[V.field,m??``].filter(Boolean).join(` `),ref:S,children:[o&&(0,n.jsx)(`label`,{htmlFor:`${h}-trigger`,className:V.field__label,children:o}),(0,n.jsxs)(`div`,{id:`${h}-trigger`,role:`combobox`,tabIndex:u?-1:0,"aria-haspopup":`listbox`,"aria-expanded":g,"aria-controls":`${h}-panel`,"aria-invalid":oe||void 0,"aria-disabled":u||void 0,"aria-activedescendant":g&&C[b]?`${h}-opt-${b}`:void 0,className:[V.control,V[`control--${a}`],V[`control--${ue}`]].join(` `),onClick:()=>!u&&_(e=>!e),onKeyDown:le,children:[i===`multi`&&ie.length>0&&(0,n.jsx)(`div`,{className:V.chips,children:ie.map(({value:e,leaving:t})=>(0,n.jsxs)(`span`,{className:[V.chip,t?V[`chip--leaving`]:``].filter(Boolean).join(` `),"aria-hidden":t||void 0,onAnimationEnd:t?()=>j(e):void 0,children:[N(e),(0,n.jsx)(`button`,{type:`button`,className:V.chip__remove,tabIndex:t?-1:void 0,onClick:t=>{t.stopPropagation(),se(r.find(t=>t.value===e))},"aria-label":`Remove ${N(e)}`,children:`×`})]},e))}),!(i===`multi`&&ie.length>0)&&(0,n.jsx)(`span`,{className:[V.control__value,i===`single`&&ce?``:V[`control__value--placeholder`]].filter(Boolean).join(` `),children:i===`single`&&ce?ce:l}),(0,n.jsx)(`span`,{className:[V.control__chevron,g?V[`control__chevron--open`]:``].join(` `),"aria-hidden":`true`,children:(0,n.jsx)(`svg`,{width:16,height:16,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:e.Et(16),strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,n.jsx)(`path`,{d:`m6 9 6 6 6-6`})})})]}),v&&!u&&(0,n.jsx)(`div`,{ref:T,className:[V.panel,g?V[`panel--entering`]:V[`panel--exiting`]].filter(Boolean).join(` `),id:`${h}-panel`,role:`listbox`,"aria-multiselectable":i===`multi`||void 0,"aria-busy":d||void 0,onAnimationEnd:()=>{g||y(!1)},children:d?(0,n.jsxs)(`div`,{className:V.panel__loading,children:[(0,n.jsx)(`span`,{className:V.panel__spinner,"aria-hidden":`true`}),`Loading…`]}):C.length===0?(0,n.jsx)(`div`,{className:V.panel__empty,children:`No options available`}):(0,n.jsxs)(n.Fragment,{children:[ee&&(0,n.jsx)(`span`,{"aria-hidden":`true`,className:[V.optionHighlight,D?V[`optionHighlight--animated`]:``].filter(Boolean).join(` `),style:{transform:`translateY(${ee.top}px)`,height:ee.height}}),C.map((t,r)=>{let a=k.includes(t.value);return(0,n.jsxs)(`div`,{ref:e=>{w.current[r]=e},id:`${h}-opt-${r}`,role:`option`,"aria-selected":a,className:[V.option,a&&i===`single`?V[`option--selected`]:``,t.disabled?V[`option--disabled`]:``].filter(Boolean).join(` `),onMouseEnter:()=>{t.disabled||x(r)},onClick:()=>se(t),children:[i===`multi`&&(0,n.jsx)(`span`,{className:[V.option__box,a?V[`option__box--checked`]:``].filter(Boolean).join(` `),"aria-hidden":`true`,children:(0,n.jsx)(`svg`,{width:12,height:12,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:e.Et(12),strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,n.jsx)(`polyline`,{points:`20 6 9 17 4 12`})})}),t.icon&&(0,n.jsx)(`span`,{className:V.option__icon,"aria-hidden":`true`,children:t.icon}),(0,n.jsx)(`span`,{className:V.option__label,children:t.label}),a&&i===`single`&&(0,n.jsx)(`span`,{className:V.option__check,"aria-hidden":`true`,children:(0,n.jsx)(`svg`,{width:16,height:16,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,n.jsx)(`polyline`,{points:`20 6 9 17 4 12`})})})]},t.value)})]})}),(s||c)&&(0,n.jsx)(`span`,{className:oe?V.field__error:V.field__description,children:c||s})]})},H={wrap:`_wrap_1j16e_2`,dropzone:`_dropzone_1j16e_4`,"dropzone--dragging":`_dropzone--dragging_1j16e_21`,dropzone__icon:`_dropzone__icon_1j16e_23`,dropzone__label:`_dropzone__label_1j16e_28`,dropzone__link:`_dropzone__link_1j16e_29`,dropzone__hint:`_dropzone__hint_1j16e_30`,input:`_input_1j16e_32`,files:`_files_1j16e_35`,file:`_file_1j16e_35`,file__icon:`_file__icon_1j16e_45`,file__name:`_file__name_1j16e_46`,file__remove:`_file__remove_1j16e_47`},Ie=({accept:i,multiple:a,hint:o=`SVG, PNG, JPG or PDF (max. 2MB)`,onFilesChange:s,className:c})=>{let l=t.default.useRef(null),[u,d]=t.default.useState(!1),[f,p]=t.default.useState([]),m=e=>{p(e),s?.(e)},h=e=>{if(!e)return;let t=Array.from(e);m(a?[...f,...t]:t.slice(0,1))},g=e=>m(f.filter((t,n)=>n!==e));return(0,n.jsxs)(`div`,{className:[H.wrap,c??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`div`,{className:[H.dropzone,u?H[`dropzone--dragging`]:``].filter(Boolean).join(` `),onClick:()=>l.current?.click(),onDragOver:e=>{e.preventDefault(),d(!0)},onDragLeave:()=>d(!1),onDrop:e=>{e.preventDefault(),d(!1),h(e.dataTransfer.files)},role:`button`,tabIndex:0,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&l.current?.click()},children:[(0,n.jsx)(`span`,{className:H.dropzone__icon,"aria-hidden":`true`,children:(0,n.jsx)(r.UploadCloud,{size:22,strokeWidth:e.Et(22)})}),(0,n.jsxs)(`span`,{className:H.dropzone__label,children:[(0,n.jsx)(`span`,{className:H.dropzone__link,children:`Click to upload`}),` or drag and drop`]}),(0,n.jsx)(`span`,{className:H.dropzone__hint,children:o}),(0,n.jsx)(`input`,{ref:l,type:`file`,accept:i,multiple:a,className:H.input,onChange:e=>h(e.target.files)})]}),f.length>0&&(0,n.jsx)(`ul`,{className:H.files,children:f.map((t,i)=>(0,n.jsxs)(`li`,{className:H.file,children:[(0,n.jsx)(`span`,{className:H.file__icon,"aria-hidden":`true`,children:(0,n.jsx)(r.File,{size:16,strokeWidth:e.Et(16)})}),(0,n.jsx)(`span`,{className:H.file__name,children:t.name}),(0,n.jsx)(`button`,{type:`button`,className:H.file__remove,onClick:()=>g(i),"aria-label":`Remove ${t.name}`,children:(0,n.jsx)(r.X,{size:14,strokeWidth:e.Et(14)})})]},i))})]})},U={chart:`_chart_1m9hd_1`,svg:`_svg_1m9hd_7`,segment:`_segment_1m9hd_12`,pctLabel:`_pctLabel_1m9hd_19`,labels:`_labels_1m9hd_27`,labelItem:`_labelItem_1m9hd_31`,tooltip:`_tooltip_1m9hd_41`,tooltip__title:`_tooltip__title_1m9hd_54`,tooltip__row:`_tooltip__row_1m9hd_60`,tooltip__dot:`_tooltip__dot_1m9hd_68`,tooltip__label:`_tooltip__label_1m9hd_74`,tooltip__value:`_tooltip__value_1m9hd_75`},Le={sm:180,md:240,lg:320,xl:420},Re=560,ze=.3,Be=.55,Ve=({data:r,size:i=`md`,className:a})=>{let[o,s]=t.default.useState(null),c=t.default.useRef(null),l=e.st(c),u=l(`--color-chart-1`)??`#ff4700`,d=l(`--color-bg-canvas`)??`#fafaf9`,f=r[0]?.value||1,p=Le[i],m=p*.66,h=m/2+8,g=Re/r.length,_=r[0]?.value||1,v=e=>e/_*m,y=r.map(e=>v(e.value));y.push(v(r[r.length-1]?.value??0)*Be);let b=e=>r.length<=1?1:ze+e/(r.length-1)*(1-ze),x=o===null?null:r[o],S=o===null?0:h-y[o]/2,C=o===null?0:o*g+g/2;return(0,n.jsxs)(`div`,{ref:c,className:[U.chart,a??``].filter(Boolean).join(` `),style:{height:p},children:[(0,n.jsx)(`svg`,{viewBox:`0 0 ${Re} ${p}`,width:`100%`,height:p,className:U.svg,children:r.map((e,t)=>{let r=t*g,i=(t+1)*g,a=(r+i)/2,c=y[t]/2,l=y[t+1]/2,d=h-c,p=h-l,m=h+c,_=h+l,v=[`M ${r} ${d}`,`C ${a} ${d} ${a} ${p} ${i} ${p}`,`L ${i} ${_}`,`C ${a} ${_} ${a} ${m} ${r} ${m}`,`Z`].join(` `),x=o===null?b(t):t===o?1:.45,S=Math.round(e.value/f*100);return(0,n.jsxs)(`g`,{className:U.segment,onMouseEnter:()=>s(t),onMouseLeave:()=>s(null),children:[(0,n.jsx)(`path`,{d:v,fill:u,fillOpacity:x}),(0,n.jsxs)(`text`,{x:a,y:h,textAnchor:`middle`,dominantBaseline:`middle`,className:U.pctLabel,children:[S,`%`]})]},t)})}),(0,n.jsx)(`div`,{className:U.labels,style:{gridTemplateColumns:`repeat(${r.length}, 1fr)`},children:r.map((e,t)=>(0,n.jsx)(`span`,{className:U.labelItem,children:e.label},t))}),x&&(0,n.jsxs)(`div`,{className:U.tooltip,style:{left:`${C/Re*100}%`,top:`${S/p*100}%`,background:d},children:[(0,n.jsx)(`span`,{className:U.tooltip__title,children:x.label}),(0,n.jsxs)(`div`,{className:U.tooltip__row,children:[(0,n.jsx)(`span`,{className:U.tooltip__dot,style:{background:u}}),(0,n.jsx)(`span`,{className:U.tooltip__label,children:`Share`}),(0,n.jsxs)(`span`,{className:U.tooltip__value,children:[Math.round(x.value/f*100),`%`]})]})]})]})},W={chart:`_chart_1yc8b_1`,grid:`_grid_1yc8b_6`,rowLabel:`_rowLabel_1yc8b_13`,colLabel:`_colLabel_1yc8b_14`,cell:`_cell_1yc8b_29`,"chart--sm":`_chart--sm_1yc8b_38`,"chart--md":`_chart--md_1yc8b_39`,"chart--lg":`_chart--lg_1yc8b_40`,"chart--xl":`_chart--xl_1yc8b_41`,tooltip:`_tooltip_1yc8b_48`,tooltip__title:`_tooltip__title_1yc8b_70`,tooltip__row:`_tooltip__row_1yc8b_76`,tooltip__dot:`_tooltip__dot_1yc8b_84`,tooltip__label:`_tooltip__label_1yc8b_91`,tooltip__value:`_tooltip__value_1yc8b_92`},He=.12,Ue=.45,We=({data:r,rowLabels:i,colLabels:a,valueLabel:o=`Value`,size:s=`md`,className:c})=>{let l=t.default.useRef(null),u=e.st(l),d=t.default.useRef(null),[f,p]=t.default.useState(null),m=u(`--color-chart-1`)??`#ff4700`,h=Math.max(1,...r.flat()),g=r[0]?.length??0,_=(e,t,n)=>r=>{let i=r.currentTarget.getBoundingClientRect(),a=d.current?.getBoundingClientRect();a&&p({row:e,col:t,value:n,left:i.left-a.left+i.width/2,top:i.top-a.top})};return(0,n.jsx)(`div`,{ref:l,className:[W.chart,W[`chart--${s}`],c??``].filter(Boolean).join(` `),children:(0,n.jsxs)(`div`,{ref:d,className:W.grid,style:{gridTemplateColumns:`auto repeat(${g}, 1fr)`},children:[r.map((e,r)=>(0,n.jsxs)(t.default.Fragment,{children:[(0,n.jsx)(`span`,{className:W.rowLabel,children:i?.[r]??``}),e.map((e,t)=>{let i=f?.row===r&&f?.col===t,a=f!==null&&!i,o=i?1:He+e/h*(1-He);return(0,n.jsx)(`div`,{className:W.cell,style:{background:m,opacity:a?Ue:o},onMouseEnter:_(r,t,e),onMouseLeave:()=>p(null)},t)})]},r)),a&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`span`,{}),a.map((e,t)=>(0,n.jsx)(`span`,{className:W.colLabel,children:e},t))]}),f&&(0,n.jsxs)(`div`,{className:W.tooltip,style:{left:f.left,top:f.top},children:[(0,n.jsx)(`span`,{className:W.tooltip__title,children:[i?.[f.row],a?.[f.col]].filter(Boolean).join(` · `)||`Row ${f.row+1}, Col ${f.col+1}`}),(0,n.jsxs)(`div`,{className:W.tooltip__row,children:[(0,n.jsx)(`span`,{className:W.tooltip__dot}),(0,n.jsx)(`span`,{className:W.tooltip__label,children:o}),(0,n.jsx)(`span`,{className:W.tooltip__value,children:f.value})]})]})]})})},Ge={kbd:`_kbd_1cz4m_3`},Ke=({children:e,className:t})=>(0,n.jsx)(`kbd`,{className:[Ge.kbd,t??``].filter(Boolean).join(` `),children:e}),qe={label:`_label_rcdks_3`,label__required:`_label__required_rcdks_17`},Je=t.default.forwardRef(({required:e,children:t,className:r,...i},a)=>(0,n.jsxs)(`label`,{ref:a,className:[qe.label,r??``].filter(Boolean).join(` `),...i,children:[t,e&&(0,n.jsx)(`span`,{className:qe.label__required,"aria-hidden":`true`,children:` *`})]}));Je.displayName=`Label`;var G={item:`_item_4gag1_2`,"item--disabled":`_item--disabled_4gag1_22`,"item--selected":`_item--selected_4gag1_26`,item__leading:`_item__leading_4gag1_30`,item__text:`_item__text_4gag1_31`,item__title:`_item__title_4gag1_32`,item__description:`_item__description_4gag1_33`,item__trailing:`_item__trailing_4gag1_34`},Ye=({title:e,description:t,leading:r,trailing:i,selected:a,disabled:o,onClick:s,className:c})=>(0,n.jsxs)(`button`,{type:`button`,"data-hover-item":``,disabled:o,onClick:s,"aria-current":a?`true`:void 0,className:[G.item,a?G[`item--selected`]:``,o?G[`item--disabled`]:``,c??``].filter(Boolean).join(` `),children:[r&&(0,n.jsx)(`span`,{className:G.item__leading,children:r}),(0,n.jsxs)(`span`,{className:G.item__text,children:[(0,n.jsx)(`span`,{className:G.item__title,children:e}),t&&(0,n.jsx)(`span`,{className:G.item__description,children:t})]}),i&&(0,n.jsx)(`span`,{className:G.item__trailing,children:i})]}),Xe={chart:`_chart_cc7lx_2`,center:`_center_cc7lx_30`,center__value:`_center__value_cc7lx_39`,center__caption:`_center__caption_cc7lx_40`},Ze={sm:{h:180,outer:72},md:{h:220,outer:90},lg:{h:280,outer:116},xl:{h:340,outer:142}},Qe=new Set([`donut`,`donut-active`,`donut-with-text`,`interactive`]),$e=new Set([`donut-active`]),et=new Set([`interactive`]),tt=new Set([`donut-with-text`]),nt=Math.PI/180,rt=({data:r,variant:a=`donut`,size:o=`md`,centerValue:s,centerCaption:c,className:l})=>{let u=t.default.useRef(null),d=e.st(u),[f,p]=t.default.useState(void 0),m=[1,2,3,4,5].map(t=>d(`--color-chart-${t}`)??e.ot[t-1]),h=d(`--color-bg-surface`)??`#ffffff`,g=d(`--color-fg-default`)??`#141414`,_=Ze[o],v=Qe.has(a),y=$e.has(a),b=et.has(a),x=v?_.outer*.6:0,S=tt.has(a)&&(s||c),C=f??(y||b?0:void 0),w=e=>{let{cx:t,cy:r,innerRadius:a,outerRadius:o,startAngle:s,endAngle:c,fill:l,index:u}=e,d=u===C,f=d&&(y||b)?16:0;return d&&b?(0,n.jsxs)(`g`,{children:[(0,n.jsx)(i.Sector,{cx:t,cy:r,innerRadius:a,outerRadius:o+f,startAngle:s,endAngle:c,fill:l}),(0,n.jsx)(i.Sector,{cx:t,cy:r,innerRadius:o+f+3,outerRadius:o+f+7,startAngle:s,endAngle:c,fill:l})]}):(0,n.jsx)(i.Sector,{cx:t,cy:r,innerRadius:a,outerRadius:o+f,startAngle:s,endAngle:c,fill:l})},T=e=>{let{cx:t,cy:n,midAngle:r,outerRadius:i}=e,a=r??0,o=Math.cos(-a*nt),s=Math.sin(-a*nt),c=t+i*o,l=n+i*s,u=t+(i+16)*o,d=n+(i+16)*s,f=o>=0,p=u+(f?14:-14);return{d:`M ${c} ${l} L ${u} ${d} L ${p} ${d}`,endX:p,endY:d,textAnchor:f?`start`:`end`}},ee=e=>{let{value:t,fill:r}=e,{d:i,endX:a,endY:o,textAnchor:s}=T(e),c=a+(s===`start`?4:-4);return(0,n.jsxs)(`g`,{children:[(0,n.jsx)(`path`,{d:i,fill:`none`,stroke:r,strokeWidth:1}),(0,n.jsx)(`text`,{x:c,y:o,textAnchor:s,dominantBaseline:`central`,fill:g,fontSize:12,fontFamily:`var(--font-sans)`,children:t})]})},E=e=>{let{x:t,y:r,textAnchor:i,value:a}=e;return(0,n.jsx)(`text`,{x:t,y:r,textAnchor:i,dominantBaseline:`central`,fill:g,fontSize:20,fontWeight:400,fontFamily:`var(--font-sans)`,children:a})},D=e=>{let{cx:t,cy:i,midAngle:a,innerRadius:o,outerRadius:s,index:c}=e,l=(o+s)/2;return(0,n.jsx)(`text`,{x:t+l*Math.cos(-a*nt),y:i+l*Math.sin(-a*nt),textAnchor:`middle`,dominantBaseline:`central`,fill:`#fff`,fontSize:11,fontWeight:500,fontFamily:`var(--font-sans)`,children:r[c]?.label})};if(a===`stacked`){let t=e=>f!==void 0&&f!==e?.45:1;return(0,n.jsx)(`div`,{ref:u,className:[Xe.chart,l??``].filter(Boolean).join(` `),style:{height:_.h},children:(0,n.jsx)(i.ResponsiveContainer,{width:`100%`,height:`100%`,children:(0,n.jsxs)(i.PieChart,{children:[(0,n.jsx)(i.Pie,{data:r,dataKey:`value`,nameKey:`label`,innerRadius:_.outer*.82,outerRadius:_.outer,paddingAngle:0,stroke:`none`,isAnimationActive:!1,onMouseEnter:(e,t)=>p(t),onMouseLeave:()=>p(void 0),children:r.map((e,r)=>(0,n.jsx)(i.Cell,{fill:m[r%m.length],fillOpacity:t(r)},r))}),(0,n.jsx)(i.Pie,{data:r,dataKey:`value`,nameKey:`label`,innerRadius:0,outerRadius:_.outer*.62,paddingAngle:0,stroke:`none`,isAnimationActive:!1,onMouseEnter:(e,t)=>p(t),onMouseLeave:()=>p(void 0),children:r.map((e,r)=>(0,n.jsx)(i.Cell,{fill:m[r%m.length],fillOpacity:t(r)},r))}),(0,n.jsx)(i.Tooltip,{content:(0,n.jsx)(e.at,{}),wrapperStyle:{zIndex:50}})]})})})}return(0,n.jsxs)(`div`,{ref:u,className:[Xe.chart,l??``].filter(Boolean).join(` `),style:{height:_.h},children:[(0,n.jsx)(i.ResponsiveContainer,{width:`100%`,height:`100%`,children:(0,n.jsxs)(i.PieChart,{children:[(0,n.jsx)(i.Pie,{data:r,dataKey:`value`,nameKey:`label`,innerRadius:x,outerRadius:_.outer,paddingAngle:0,stroke:a===`pie`?h:`none`,strokeWidth:a===`pie`?2:0,isAnimationActive:!1,shape:y||b?w:void 0,label:a===`label`?ee:a===`custom-label`?E:a===`label-list`?D:void 0,labelLine:!1,onMouseEnter:(e,t)=>p(t),onMouseLeave:()=>p(void 0),children:r.map((e,t)=>(0,n.jsx)(i.Cell,{fill:m[t%m.length]},t))}),(0,n.jsx)(i.Tooltip,{content:(0,n.jsx)(e.at,{}),wrapperStyle:{zIndex:50}})]})}),S&&(0,n.jsxs)(`div`,{className:Xe.center,children:[s&&(0,n.jsx)(`span`,{className:Xe.center__value,children:s}),c&&(0,n.jsx)(`span`,{className:Xe.center__caption,children:c})]})]})},K={root:`_root_16f5u_2`,trigger:`_trigger_16f5u_3`,panel:`_panel_16f5u_5`,"panel--bottom":`_panel--bottom_16f5u_22`,"panel--bottom-start":`_panel--bottom-start_16f5u_23`,"panel--bottom-end":`_panel--bottom-end_16f5u_24`,"panel--top":`_panel--top_16f5u_25`,"panel--entering":`_panel--entering_16f5u_39`,"sakani-popover-in":`_sakani-popover-in_16f5u_1`,"panel--exiting":`_panel--exiting_16f5u_40`,"sakani-popover-out":`_sakani-popover-out_16f5u_1`,"sakani-popover-in-up":`_sakani-popover-in-up_16f5u_1`,"sakani-popover-out-up":`_sakani-popover-out-up_16f5u_1`,panel__title:`_panel__title_16f5u_75`,panel__description:`_panel__description_16f5u_76`,panel__body:`_panel__body_16f5u_77`,panel__actions:`_panel__actions_16f5u_78`},it=({trigger:e,title:r,description:i,actions:a,placement:o=`bottom-start`,children:s,className:c})=>{let[l,u]=t.default.useState(!1),[d,f]=t.default.useState(!1),p=t.default.useRef(null),m=t.default.useRef(null);return t.default.useEffect(()=>{l&&f(!0)},[l]),t.default.useEffect(()=>{if(l||!d)return;let e=setTimeout(()=>f(!1),240);return()=>clearTimeout(e)},[l,d]),t.default.useEffect(()=>{if(!l)return;let e=e=>{p.current&&!p.current.contains(e.target)&&u(!1)},t=e=>{e.key===`Escape`&&u(!1)};return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}},[l]),t.default.useEffect(()=>{!l&&m.current&&(m.current.focus(),m.current=null)},[l]),(0,n.jsxs)(`div`,{className:[K.root,c??``].filter(Boolean).join(` `),ref:p,children:[(0,n.jsx)(`span`,{className:K.trigger,onClick:()=>{l||(m.current=document.activeElement),u(e=>!e)},children:e}),d&&(0,n.jsxs)(`div`,{className:[K.panel,K[`panel--${o}`],l?K[`panel--entering`]:K[`panel--exiting`]].filter(Boolean).join(` `),role:`dialog`,onAnimationEnd:e=>{e.target===e.currentTarget&&!l&&f(!1)},children:[r&&(0,n.jsx)(`div`,{className:K.panel__title,children:r}),i&&(0,n.jsx)(`div`,{className:K.panel__description,children:i}),s&&(0,n.jsx)(`div`,{className:K.panel__body,children:s}),a&&(0,n.jsx)(`div`,{className:K.panel__actions,children:a})]})]})},at={chart:`_chart_q6xhl_2`,circleFillSvg:`_circleFillSvg_q6xhl_17`},ot={sm:200,md:260,lg:340,xl:420},st=new Set([`circle-grid`,`circle-grid-no-lines`,`circle-grid-filled`]),ct=new Set([`default`,`grid-custom`]),lt=new Set([`dots-grid-none`]),ut=new Set([`grid-filled`]),dt=e=>e===`circle-grid-filled`,ft=new Set([`default`,`dots`,`dots-grid-none`,`circle-grid`,`circle-grid-no-lines`,`multiple`,`custom-label`,`grid-custom`,`grid-filled`,`circle-grid-filled`]),pt=[1,.8,.6,.4,.2],mt=({data:r,variant:a=`default`,size:o=`md`,seriesLabels:s=[`Value`,`Value 2`],className:c})=>{let l=t.default.useRef(null),u=e.st(l),d=u(`--color-chart-1`)??`#ff4700`,f=u(`--color-chart-2`)??`#5b92dd`,p=u(`--color-border-default`)??`#dbdad7`,m=u(`--color-fg-subtle`)??`#a8a29b`,h=a===`multiple`,g=a===`lines-only`,_=h||a===`custom-label`||g,v=!g,y=a===`dots`||a===`dots-grid-none`||a===`circle-grid`||a===`circle-grid-no-lines`,b=ut.has(a),x=ct.has(a),S=lt.has(a),C=dt(a),[w,T]=t.default.useState(0);t.default.useEffect(()=>{if(!C||!l.current)return;let e=l.current,t=new ResizeObserver(([e])=>T(e.contentRect.width));return t.observe(e),()=>t.disconnect()},[C]);let ee=t.default.useMemo(()=>{if(!b)return r;let e=Math.max(1,...r.flatMap(e=>[e.value,e.value2??0]));return r.map(t=>{let n={};return pt.forEach((t,r)=>{n[`ring${r}`]=t*e}),{...t,...n}})},[r,b]),E=e=>{let{x:t,y:i,cx:a,cy:o,payload:s,textAnchor:c}=e,l=r.find(e=>e.label===s?.value)??r[s?.index];if(!l)return(0,n.jsx)(`g`,{});let u=t-a,d=i-o,f=l.value2===void 0?`${l.value}`:`${l.value}/${l.value2}`,p=Math.abs(d)>Math.abs(u),h,g;if(p&&d<0)g=i-4-6,h=g-16;else if(p)h=i+4+10,g=h+18;else{let e=i+d/(Math.sqrt(u*u+d*d)||1)*4;h=e-8,g=e+12}let _=p?t:t+u/Math.sqrt(u*u+d*d||1)*4;return(0,n.jsxs)(`g`,{children:[(0,n.jsx)(`text`,{x:_,y:h,textAnchor:c,fill:m,fontSize:15,fontWeight:600,fontFamily:`var(--font-sans)`,children:f}),(0,n.jsx)(`text`,{x:_,y:g,textAnchor:c,fill:m,fontSize:13,fontFamily:`var(--font-sans)`,children:l.label})]})},D=ot[o],te=(w>0?Math.min(w,D)/2-5:0)*.7;return(0,n.jsxs)(`div`,{ref:l,className:[at.chart,c??``].filter(Boolean).join(` `),children:[C&&w>0&&(0,n.jsx)(`svg`,{className:at.circleFillSvg,width:w,height:D,children:pt.map(e=>(0,n.jsx)(`circle`,{cx:w/2,cy:D/2,r:te*e,fill:f,fillOpacity:.1},e))}),(0,n.jsx)(i.ResponsiveContainer,{width:`100%`,height:D,children:(0,n.jsxs)(i.RadarChart,{data:ee,outerRadius:`70%`,children:[!b&&!S&&(0,n.jsx)(i.PolarGrid,{gridType:st.has(a)?`circle`:`polygon`,radialLines:a!==`circle-grid-no-lines`&&!x,stroke:p}),(0,n.jsx)(i.PolarAngleAxis,{dataKey:`label`,axisLine:!1,tick:a===`custom-label`?E:{fill:m,fontSize:12,fontFamily:`var(--font-sans)`}}),(0,n.jsx)(i.PolarRadiusAxis,{tick:!1,axisLine:!1,tickCount:x?2:void 0}),(0,n.jsx)(i.Tooltip,{content:(0,n.jsx)(e.at,{}),wrapperStyle:{zIndex:50}}),h&&(0,n.jsx)(i.Legend,{wrapperStyle:{fontSize:12,fontFamily:`var(--font-sans)`}}),b&&pt.map((e,t)=>(0,n.jsx)(i.Radar,{dataKey:`ring${t}`,stroke:`none`,fill:f,fillOpacity:.1,isAnimationActive:!1,legendType:`none`},`ring${t}`)),(0,n.jsx)(i.Radar,{name:h?s[0]??`Value`:void 0,dataKey:`value`,stroke:ft.has(a)?`none`:f,fill:v?f:`none`,fillOpacity:v?x?1:_?.45:.5:0,strokeWidth:ft.has(a)?0:2,dot:y?{r:4,fill:f,stroke:`none`}:!1,isAnimationActive:!1}),_&&(0,n.jsx)(i.Radar,{name:h?s[1]??`Value 2`:void 0,dataKey:`value2`,stroke:g?d:`none`,fill:g?`none`:d,fillOpacity:g?0:.8,strokeWidth:g?2:0,dot:y?{r:4,fill:d,stroke:`none`}:!1,isAnimationActive:!1})]})})]})},q={chart:`_chart_1ogmh_2`,gridSvg:`_gridSvg_1ogmh_19`,gaugeSvg:`_gaugeSvg_1ogmh_31`,center:`_center_1ogmh_36`,center__value:`_center__value_1ogmh_45`,center__caption:`_center__caption_1ogmh_46`},ht={sm:180,md:220,lg:280,xl:340},gt=Math.PI/180,_t=e=>Math.round(e*1e3)/1e3,vt={multi:[`30%`,`100%`],grid:[`30%`,`100%`],"stacked-label":[`30%`,`100%`],text:[`76%`,`100%`]},yt=({value:e,max:t,color:r,track:i,centerValue:a,centerCaption:o,labelColor:s,captionColor:c})=>{let l=Math.round(Math.min(e,t)/t*40);return(0,n.jsxs)(`svg`,{viewBox:`0 0 200 120`,className:q.gaugeSvg,children:[Array.from({length:40}).map((e,t)=>{let a=180+t/39*180;return(0,n.jsx)(`line`,{x1:_t(100+78*Math.cos(a*gt)),y1:_t(100+78*Math.sin(a*gt)),x2:_t(100+92*Math.cos(a*gt)),y2:_t(100+92*Math.sin(a*gt)),stroke:t<l?r:i,strokeWidth:2.5,strokeLinecap:`round`},t)}),(a||o)&&(0,n.jsxs)(`g`,{textAnchor:`middle`,fontFamily:`var(--font-sans)`,children:[a&&(0,n.jsx)(`text`,{x:100,y:92,fontSize:22,fontWeight:500,fill:s,children:a}),o&&(0,n.jsx)(`text`,{x:100,y:112,fontSize:12,fill:c,children:o})]})]})},bt=({rings:e,spokes:t,color:r})=>(0,n.jsxs)(`svg`,{viewBox:`0 0 200 200`,className:q.gridSvg,children:[Array.from({length:e}).map((t,i)=>(0,n.jsx)(`circle`,{cx:100,cy:100,r:(i+1)/e*96,fill:`none`,stroke:r,strokeWidth:1},i)),Array.from({length:t}).map((e,i)=>{let a=i/t*360,o=99.5*1.1;return(0,n.jsx)(`line`,{x1:100,y1:100,x2:_t(100+o*Math.cos(a*gt)),y2:_t(100+o*Math.sin(a*gt)),stroke:r,strokeWidth:1},i)})]}),xt=({data:e,palette:t,track:r,centerValue:a,centerCaption:o,labelColor:s,captionColor:c})=>{let l=e[0]?.max??e.reduce((e,t)=>e+t.value,0),u=210,d=e.map((e,n)=>{let r=l>0?e.value/l*240:0,i=u,a=u-r;return u=a,{segStart:i,segEnd:a,fill:t[n%t.length]}});return(0,n.jsxs)(`svg`,{viewBox:`0 0 200 160`,className:q.gaugeSvg,children:[d.map((e,t)=>(0,n.jsx)(i.Sector,{cx:100,cy:100,innerRadius:64,outerRadius:88,startAngle:e.segStart,endAngle:e.segEnd,fill:e.fill,cornerRadius:4},t)),u>-29.5&&(0,n.jsx)(i.Sector,{cx:100,cy:100,innerRadius:64,outerRadius:88,startAngle:u,endAngle:-30,fill:r,cornerRadius:4}),(a||o)&&(0,n.jsxs)(`g`,{textAnchor:`middle`,fontFamily:`var(--font-sans)`,children:[a&&(0,n.jsx)(`text`,{x:100,y:92,fontSize:22,fontWeight:500,fill:s,children:a}),o&&(0,n.jsx)(`text`,{x:100,y:112,fontSize:12,fill:c,children:o})]})]})},St=({data:r,variant:a=`multi`,size:o=`md`,centerValue:s,centerCaption:c,className:l})=>{let u=t.default.useRef(null),d=e.st(u),f=[1,2,3,4,5].map(t=>d(`--color-chart-${t}`)??e.ot[t-1]),p=d(`--color-bg-subtle`)??`#f5f4f2`,m=d(`--color-border-subtle`)??`#e7e5e1`,h=d(`--color-fg-default`)??`#141414`,g=d(`--color-fg-muted`)??`#78716a`,_=ht[o];if(a===`gauge-tick`){let e=r[0];return(0,n.jsx)(`div`,{ref:u,className:[q.chart,l??``].filter(Boolean).join(` `),style:{height:_},children:(0,n.jsx)(yt,{value:e?.value??0,max:e?.max??100,color:f[0],track:p,centerValue:s,centerCaption:c,labelColor:h,captionColor:g})})}if(a===`shape`||a===`stacked`||a===`stacked-3-layers`)return(0,n.jsx)(`div`,{ref:u,className:[q.chart,l??``].filter(Boolean).join(` `),style:{height:_},children:(0,n.jsx)(xt,{data:r,palette:f,track:p,centerValue:s,centerCaption:c,labelColor:h,captionColor:g})});let[v,y]=vt[a]??[`30%`,`100%`],b=(a===`stacked-label`||a===`text`)&&(s||c);return(0,n.jsxs)(`div`,{ref:u,className:[q.chart,l??``].filter(Boolean).join(` `),style:{height:_},children:[a===`grid`&&(0,n.jsx)(bt,{rings:8,spokes:12,color:m}),(0,n.jsx)(i.ResponsiveContainer,{width:`100%`,height:`100%`,children:(0,n.jsxs)(i.RadialBarChart,{data:r,innerRadius:v,outerRadius:y,startAngle:90,endAngle:-270,barCategoryGap:`12%`,children:[(0,n.jsx)(i.PolarAngleAxis,{type:`number`,domain:[0,r[0]?.max??100],tick:!1,axisLine:!1}),(0,n.jsx)(i.RadialBar,{dataKey:`value`,background:a!==`grid`&&{fill:p},cornerRadius:8,isAnimationActive:!1,children:r.map((e,t)=>(0,n.jsx)(i.Cell,{fill:f[t%f.length]},t))})]})}),b&&(0,n.jsxs)(`div`,{className:q.center,children:[s&&(0,n.jsx)(`span`,{className:q.center__value,children:s}),c&&(0,n.jsx)(`span`,{className:q.center__caption,children:c})]})]})},J={wrapper:`_wrapper_5ueza_3`,"wrapper--disabled":`_wrapper--disabled_5ueza_11`,input:`_input_5ueza_13`,circle:`_circle_5ueza_15`,dot:`_dot_5ueza_31`,text:`_text_5ueza_79`,text__label:`_text__label_5ueza_80`,text__description:`_text__description_5ueza_81`,"wrapper--withDescription":`_wrapper--withDescription_5ueza_85`},Ct=t.default.forwardRef(({label:e,description:r,disabled:i,id:a,className:o,...s},c)=>{let l=t.default.useId(),u=a??l;return(0,n.jsxs)(`label`,{htmlFor:u,className:[J.wrapper,r?J[`wrapper--withDescription`]:``,i?J[`wrapper--disabled`]:``,o??``].filter(Boolean).join(` `),children:[(0,n.jsx)(`input`,{ref:c,id:u,type:`radio`,disabled:i,className:J.input,...s}),(0,n.jsx)(`span`,{className:J.circle,"aria-hidden":`true`,children:(0,n.jsx)(`span`,{className:J.dot})}),(e||r)&&(0,n.jsxs)(`span`,{className:J.text,children:[e&&(0,n.jsx)(`span`,{className:J.text__label,children:e}),r&&(0,n.jsx)(`span`,{className:J.text__description,children:r})]})]})});Ct.displayName=`Radio`;var Y={footer:`_footer_mks3d_4`,"footer--collapsed":`_footer--collapsed_mks3d_12`,footer__text:`_footer__text_mks3d_14`,footer__title:`_footer__title_mks3d_15`,footer__subtitle:`_footer__subtitle_mks3d_16`,footer__menu:`_footer__menu_mks3d_17`,footer__action:`_footer__action_mks3d_29`},wt=({type:t=`user`,title:i,subtitle:a,avatarSrc:o,avatarInitials:s,collapsed:c,onMenu:l,onSignOut:u})=>{let d=(0,n.jsx)(e.Ct,{size:c?`sm`:`md`,src:o,initials:s,alt:i??`User`});return c?(0,n.jsx)(`div`,{className:[Y.footer,Y[`footer--collapsed`]].join(` `),children:d}):t===`actions`?(0,n.jsx)(`div`,{className:Y.footer,children:(0,n.jsxs)(`button`,{type:`button`,"data-hover-item":``,className:Y.footer__action,onClick:u,children:[(0,n.jsx)(r.LogOut,{size:16,strokeWidth:e.Et(16)}),` Sign out`]})}):(0,n.jsxs)(`div`,{className:Y.footer,children:[d,(0,n.jsxs)(`span`,{className:Y.footer__text,children:[i&&(0,n.jsx)(`span`,{className:Y.footer__title,children:i}),a&&(0,n.jsx)(`span`,{className:Y.footer__subtitle,children:a})]}),t===`user-menu`&&(0,n.jsx)(`button`,{type:`button`,"data-hover-item":``,className:Y.footer__menu,onClick:l,"aria-label":`Open menu`,children:(0,n.jsx)(r.ChevronsUpDown,{size:16,strokeWidth:e.Et(16)})})]})},X={search:`_search_1fdme_2`,search__icon:`_search__icon_1fdme_25`,search__input:`_search__input_1fdme_26`,search__placeholder:`_search__placeholder_1fdme_38`,search__kbd:`_search__kbd_1fdme_39`,collapsed:`_collapsed_1fdme_53`},Tt=({type:t=`field`,placeholder:i=`Search…`,collapsed:a,value:o,onChange:s,onClick:c})=>a?(0,n.jsx)(`button`,{type:`button`,className:X.collapsed,onClick:c,"aria-label":`Search`,children:(0,n.jsx)(r.Search,{size:18,strokeWidth:e.Et(18)})}):t===`command`?(0,n.jsxs)(`button`,{type:`button`,className:X.search,onClick:c,children:[(0,n.jsx)(r.Search,{size:16,strokeWidth:e.Et(16),className:X.search__icon}),(0,n.jsx)(`span`,{className:X.search__placeholder,children:i}),(0,n.jsx)(`kbd`,{className:X.search__kbd,children:`⌘K`})]}):(0,n.jsxs)(`div`,{className:X.search,children:[(0,n.jsx)(r.Search,{size:16,strokeWidth:e.Et(16),className:X.search__icon}),(0,n.jsx)(`input`,{className:X.search__input,placeholder:i,value:o,onChange:e=>s?.(e.target.value)})]}),Et={spinner:`_spinner_14r00_3`,"spinner--sm":`_spinner--sm_14r00_12`,"spinner--md":`_spinner--md_14r00_13`,"spinner--lg":`_spinner--lg_14r00_14`,spinner__svg:`_spinner__svg_14r00_17`,"spinner-rotate":`_spinner-rotate_14r00_1`},Dt=({size:e=`md`,label:t=`Loading...`,className:r})=>(0,n.jsx)(`span`,{role:`status`,"aria-label":t,className:[Et.spinner,Et[`spinner--${e}`],r??``].filter(Boolean).join(` `),children:(0,n.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2.5,strokeLinecap:`round`,"aria-hidden":`true`,className:Et.spinner__svg,children:[(0,n.jsx)(`circle`,{cx:12,cy:12,r:9,opacity:.2}),(0,n.jsx)(`path`,{d:`M12 3a9 9 0 0 1 9 9`,className:Et.spinner__arc})]})}),Z={stepper:`_stepper_kxw14_3`,"stepper--horizontal":`_stepper--horizontal_kxw14_4`,"stepper--vertical":`_stepper--vertical_kxw14_5`,step:`_step_kxw14_3`,"step--horizontal":`_step--horizontal_kxw14_8`,"step--vertical":`_step--vertical_kxw14_9`,circle:`_circle_kxw14_12`,circle__num:`_circle__num_kxw14_24`,"circle--completed":`_circle--completed_kxw14_26`,"circle--current":`_circle--current_kxw14_27`,"circle--upcoming":`_circle--upcoming_kxw14_32`,step__text:`_step__text_kxw14_39`,step__label:`_step__label_kxw14_40`,"step__label--current":`_step__label--current_kxw14_41`,"step__label--upcoming":`_step__label--upcoming_kxw14_42`,step__desc:`_step__desc_kxw14_43`,connector:`_connector_kxw14_46`,"connector--horizontal":`_connector--horizontal_kxw14_47`,"connector--vertical":`_connector--vertical_kxw14_48`,"connector--filled":`_connector--filled_kxw14_49`},Ot=({index:t,state:i,label:a,description:o,orientation:s=`horizontal`})=>(0,n.jsxs)(`div`,{className:[Z.step,Z[`step--${s}`]].join(` `),children:[(0,n.jsx)(`span`,{className:[Z.circle,Z[`circle--${i}`]].join(` `),"aria-hidden":`true`,children:i===`completed`?(0,n.jsx)(r.Check,{size:14,strokeWidth:e.Et(14)}):(0,n.jsx)(`span`,{className:Z.circle__num,children:t+1})}),(0,n.jsxs)(`span`,{className:Z.step__text,children:[(0,n.jsx)(`span`,{className:[Z.step__label,i===`current`?Z[`step__label--current`]:``,i===`upcoming`?Z[`step__label--upcoming`]:``].filter(Boolean).join(` `),children:a}),o&&(0,n.jsx)(`span`,{className:Z.step__desc,children:o})]})]}),kt=({steps:e,current:r,orientation:i=`horizontal`,className:a})=>{let o=e=>e<r?`completed`:e===r?`current`:`upcoming`;return(0,n.jsx)(`div`,{className:[Z.stepper,Z[`stepper--${i}`],a??``].filter(Boolean).join(` `),children:e.map((a,s)=>(0,n.jsxs)(t.default.Fragment,{children:[(0,n.jsx)(Ot,{index:s,state:o(s),label:a.label,description:a.description,orientation:i}),s<e.length-1&&(0,n.jsx)(`span`,{className:[Z.connector,Z[`connector--${i}`],s<r?Z[`connector--filled`]:``].filter(Boolean).join(` `),"aria-hidden":`true`})]},s))})},Q={wrapper:`_wrapper_1xxik_3`,"wrapper--disabled":`_wrapper--disabled_1xxik_11`,input:`_input_1xxik_13`,track:`_track_1xxik_15`,thumb:`_thumb_1xxik_28`,label:`_label_1xxik_55`,"wrapper--withDescription":`_wrapper--withDescription_1xxik_60`,text:`_text_1xxik_61`,description:`_description_1xxik_63`},At=t.default.forwardRef(({label:e,description:r,disabled:i,id:a,className:o,...s},c)=>{let l=t.default.useId(),u=a??l;return(0,n.jsxs)(`label`,{htmlFor:u,className:[Q.wrapper,r?Q[`wrapper--withDescription`]:``,i?Q[`wrapper--disabled`]:``,o??``].filter(Boolean).join(` `),children:[(0,n.jsx)(`input`,{ref:c,id:u,type:`checkbox`,role:`switch`,disabled:i,className:Q.input,...s}),(0,n.jsx)(`span`,{className:Q.track,"aria-hidden":`true`,children:(0,n.jsx)(`span`,{className:Q.thumb})}),r?(0,n.jsxs)(`span`,{className:Q.text,children:[e&&(0,n.jsx)(`span`,{className:Q.label,children:e}),(0,n.jsx)(`span`,{className:Q.description,children:r})]}):e&&(0,n.jsx)(`span`,{className:Q.label,children:e})]})});At.displayName=`Switch`;var jt={field:`_field_53t87_6`,field__label:`_field__label_53t87_8`,field__description:`_field__description_53t87_10`,field__error:`_field__error_53t87_11`,textarea:`_textarea_53t87_13`,"textarea--error":`_textarea--error_53t87_37`,"textarea--disabled":`_textarea--disabled_53t87_52`},Mt=t.default.forwardRef(({label:e,description:r,error:i,disabled:a,id:o,className:s,rows:c=3,...l},u)=>{let d=t.default.useId(),f=o??d,p=!!i,m=r||i?`${f}-desc`:void 0;return(0,n.jsxs)(`div`,{className:[jt.field,s??``].filter(Boolean).join(` `),children:[e&&(0,n.jsx)(`label`,{htmlFor:f,className:jt.field__label,children:e}),(0,n.jsx)(`textarea`,{ref:u,id:f,rows:c,disabled:a,"aria-invalid":p||void 0,"aria-describedby":m,className:[jt.textarea,p?jt[`textarea--error`]:``,a?jt[`textarea--disabled`]:``].filter(Boolean).join(` `),...l}),(r||i)&&(0,n.jsx)(`span`,{id:m,className:p?jt.field__error:jt.field__description,children:i||r})]})});Mt.displayName=`Textarea`;var Nt={toast:`_toast_dshlf_3`,toast__icon:`_toast__icon_dshlf_17`,"toast--success":`_toast--success_dshlf_18`,"toast--error":`_toast--error_dshlf_19`,"toast--info":`_toast--info_dshlf_20`,toast__content:`_toast__content_dshlf_22`,toast__title:`_toast__title_dshlf_23`,toast__description:`_toast__description_dshlf_24`,toast__dismiss:`_toast__dismiss_dshlf_26`},Pt={success:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`path`,{d:`M22 11.08V12a10 10 0 1 1-5.93-9.14`}),(0,n.jsx)(`polyline`,{points:`22 4 12 14.01 9 11.01`})]}),error:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,n.jsx)(`line`,{x1:`15`,y1:`9`,x2:`9`,y2:`15`}),(0,n.jsx)(`line`,{x1:`9`,y1:`9`,x2:`15`,y2:`15`})]}),info:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,n.jsx)(`line`,{x1:`12`,y1:`16`,x2:`12`,y2:`12`}),(0,n.jsx)(`line`,{x1:`12`,y1:`8`,x2:`12.01`,y2:`8`})]})},Ft=({status:t=`info`,title:r,description:i,onDismiss:a,className:o})=>(0,n.jsxs)(`div`,{role:t===`error`?`alert`:`status`,"aria-live":t===`error`?`assertive`:`polite`,className:[Nt.toast,Nt[`toast--${t}`],o??``].filter(Boolean).join(` `),children:[(0,n.jsx)(`span`,{className:Nt.toast__icon,"aria-hidden":`true`,children:(0,n.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:e.Et(18),strokeLinecap:`round`,strokeLinejoin:`round`,width:18,height:18,children:Pt[t]})}),(0,n.jsxs)(`div`,{className:Nt.toast__content,children:[r&&(0,n.jsx)(`div`,{className:Nt.toast__title,children:r}),i&&(0,n.jsx)(`div`,{className:Nt.toast__description,children:i})]}),a&&(0,n.jsx)(`button`,{type:`button`,className:Nt.toast__dismiss,onClick:a,"aria-label":`Dismiss`,children:(0,n.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:e.Et(16),strokeLinecap:`round`,strokeLinejoin:`round`,width:16,height:16,children:[(0,n.jsx)(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),(0,n.jsx)(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})]})})]}),$={bar:`_bar_14cqo_2`,bar__icon:`_bar__icon_14cqo_10`,bar__title:`_bar__title_14cqo_17`,"bar__title--center":`_bar__title--center_14cqo_21`,bar__search:`_bar__search_14cqo_22`},It=({type:t=`title`,title:i,trailing:a,search:o,onMenu:s,onAction:c,onClose:l,className:u})=>(0,n.jsxs)(`header`,{className:[$.bar,u??``].filter(Boolean).join(` `),children:[(0,n.jsx)(`button`,{type:`button`,className:$.bar__icon,onClick:s,"aria-label":`Open menu`,children:(0,n.jsx)(r.Menu,{size:18,strokeWidth:e.Et(18)})}),t===`search`?(0,n.jsx)(`div`,{className:$.bar__search,children:o}):(0,n.jsx)(`span`,{className:[$.bar__title,t===`title-centered`?$[`bar__title--center`]:``].join(` `),children:i}),t===`title-action`&&(0,n.jsx)(`button`,{type:`button`,className:$.bar__icon,onClick:c,"aria-label":`Add`,children:(0,n.jsx)(r.Plus,{size:18,strokeWidth:e.Et(18)})}),t===`search`&&(0,n.jsx)(`button`,{type:`button`,className:$.bar__icon,onClick:l,"aria-label":`Close search`,children:(0,n.jsx)(r.X,{size:18,strokeWidth:e.Et(18)})}),(t===`title`||t===`title-centered`)&&a]});exports.Accordion=e.wt,exports.AccordionItem=e.Tt,exports.ActivityFeed=e.xt,exports.ActivityFeedHighlight=e.St,exports.Alert=e.F,exports.Announcement=o,exports.AreaChart=De,exports.Avatar=e.Ct,exports.AvatarGroup=e.B,exports.AvatarUpload=e._t,exports.Badge=e.rt,exports.Balance=e.gt,exports.BarChart=e.it,exports.BlogBlockquote=ae,exports.BlogFeatureText=oe,exports.BlogImage=se,exports.BlogListingCard=e.U,exports.BlogListingFeaturedCard=e.H,exports.BoardCard=e.P,exports.BoardColumn=Oe,exports.Breadcrumb=e.j,exports.Button=e.vt,exports.Calendar=Ne,exports.Card=Pe,exports.CardMetaItem=e.A,exports.CartItem=e.tt,exports.ChatComposer=e.k,exports.Checkbox=e.O,exports.CheckoutSteps=e.$,exports.CodeSnippet=d,exports.ColorSwatch=e.Z,exports.Combobox=Fe,exports.ConversationItem=e.D,exports.DEFAULT_CHECKOUT_STEPS=e.et,exports.Divider=e.ft,exports.DonutChart=e.E,exports.EmptyState=e.T,exports.Expenses=m,exports.FeaturedIcon=e.V,exports.FileUpload=Ie,exports.FilterChip=e.w,exports.FirstPageHeading=ce,exports.FunnelChart=Ve,exports.HeatmapChart=We,exports.HoverGroup=e.M,exports.IconButton=e.yt,exports.InlineHint=_,exports.Input=e.C,exports.JobListing=e.R,exports.Kbd=Ke,exports.Label=Je,exports.LineChart=e.S,exports.Link=e.bt,exports.LiquidGlass=e.pt,exports.List=ue,exports.ListItem=Ye,exports.LocationDot=e.z,exports.Marquee=pe,exports.Menu=e.b,exports.MenuDivider=e.x,exports.MenuItem=e.y,exports.MessageBubble=e.v,exports.Metric=me,exports.MobileNavigationMenu=he,exports.Modal=e.dt,exports.NotificationItem=e.ut,exports.Pagination=e._,exports.PieChart=rt,exports.PlaceholderLogo=ve,exports.Popover=it,exports.PriceDisplay=e.X,exports.ProductCard=e.J,exports.ProductGallery=e.q,exports.ProfileCard=ye,exports.Progress=e.ht,exports.ProgressItem=y,exports.ProgressStat=e.lt,exports.QuantitySelector=e.nt,exports.RadarChart=mt,exports.RadialChart=St,exports.Radio=Ct,exports.RichSeparator=x,exports.RichTextHeading=xe,exports.RichTextParagraph=Ce,exports.SectionHeading=e.L,exports.SegmentedControl=e.g,exports.Select=e.h,exports.Sidebar=e.m,exports.SidebarDivider=e.p,exports.SidebarFooter=wt,exports.SidebarGroupLabel=e.f,exports.SidebarHeader=e.d,exports.SidebarItem=e.u,exports.SidebarPromo=e.l,exports.SidebarSearch=Tt,exports.SidebarSubItem=e.c,exports.SizeSelector=e.K,exports.Skeleton=e.s,exports.Slider=e.o,exports.SpendingBalance=e.ct,exports.Spinner=Dt,exports.StarRating=e.G,exports.StatCard=e.a,exports.Stepper=kt,exports.StepperStep=Ot,exports.StockMarket=w,exports.StockStatus=e.W,exports.SubFeature=we,exports.Switch=At,exports.Table=e.i,exports.Tabs=e.r,exports.Tags=E,exports.TeamCard=e.I,exports.Textarea=Mt,exports.Ticker=re,exports.Toast=Ft,exports.Tooltip=e.n,exports.TopBar=e.t,exports.TopBarMobile=It,exports.Transactions=ie,exports.WishlistButton=e.Y,exports.getContrastColor=e.Q,exports.iconStrokeWidth=e.Et,exports.useHoverHighlight=e.N,exports.useLiquidGlass=e.mt;
|
package/dist/index.d.ts
CHANGED
|
@@ -137,3 +137,5 @@ export { getContrastColor } from './lib/getContrastColor';
|
|
|
137
137
|
* MenuItem or their own `data-hover-item` elements can wrap them in one. */
|
|
138
138
|
export { HoverGroup, useHoverHighlight } from './lib/useHoverHighlight';
|
|
139
139
|
export type { HoverGroupProps } from './lib/useHoverHighlight';
|
|
140
|
+
export { LiquidGlass, useLiquidGlass } from './lib/LiquidGlass';
|
|
141
|
+
export type { LiquidGlassProps, LiquidGlassVariant, LiquidGlassTint } from './lib/LiquidGlass';
|