@texturehq/edges 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/server.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- export { A as ActionItem, b as ActionMenuProps, e as AppShell, d as AppShellProps, g as Avatar, f as AvatarProps, i as Badge, h as BadgeProps, B as BaseDataPoint, k as Card, X as ChartMargin, l as CodeEditorProps, m as CodeLanguage, n as CodeTheme, D as DateFieldProps, F as FileUploadProps, H as Heading, s as InteractiveMapProps, L as Loader, r as Logo, M as MapPoint, x as Meter, w as MeterProps, R as RichTextEditorProps, E as SegmentOption, z as SegmentedControlProps, N as SideNav, J as SideNavItem, K as SideNavProps, S as StaticMapProps, O as TextLink, T as TooltipData, U as TooltipSeries, Q as TopNav, P as TopNavProps, a1 as YFormatSettings, Y as YFormatType, a2 as clearColorCache, a3 as createCategoryColorMap, Z as createXScale, _ as createYScale, $ as defaultMargin, a4 as getContrastingTextColor, a5 as getDefaultChartColor, a6 as getDefaultColors, a7 as getResolvedColor, a8 as getThemeCategoricalColors, a0 as getYFormatSettings, a9 as isLightColor } from './server-DkP8PI1p.cjs';
1
+ export { A as ActionItem, b as ActionMenuProps, e as AppShell, d as AppShellProps, g as Avatar, f as AvatarProps, i as Badge, h as BadgeProps, B as BaseDataPoint, k as Card, X as ChartMargin, l as CodeEditorProps, m as CodeLanguage, n as CodeTheme, D as DateFieldProps, F as FileUploadProps, H as Heading, s as InteractiveMapProps, L as Loader, r as Logo, M as MapPoint, x as Meter, w as MeterProps, R as RichTextEditorProps, E as SegmentOption, z as SegmentedControlProps, N as SideNav, J as SideNavItem, K as SideNavProps, S as StaticMapProps, O as TextLink, T as TooltipData, U as TooltipSeries, Q as TopNav, P as TopNavProps, a1 as YFormatSettings, Y as YFormatType, a2 as clearColorCache, a3 as createCategoryColorMap, Z as createXScale, _ as createYScale, $ as defaultMargin, a4 as getContrastingTextColor, a5 as getDefaultChartColor, a6 as getDefaultColors, a7 as getResolvedColor, a8 as getThemeCategoricalColors, a0 as getYFormatSettings, a9 as isLightColor } from './server-C1hypeJ9.cjs';
2
2
  export { BreadcrumbProps, BreadcrumbsProps } from 'react-aria-components';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
package/dist/server.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { A as ActionItem, b as ActionMenuProps, e as AppShell, d as AppShellProps, g as Avatar, f as AvatarProps, i as Badge, h as BadgeProps, B as BaseDataPoint, k as Card, X as ChartMargin, l as CodeEditorProps, m as CodeLanguage, n as CodeTheme, D as DateFieldProps, F as FileUploadProps, H as Heading, s as InteractiveMapProps, L as Loader, r as Logo, M as MapPoint, x as Meter, w as MeterProps, R as RichTextEditorProps, E as SegmentOption, z as SegmentedControlProps, N as SideNav, J as SideNavItem, K as SideNavProps, S as StaticMapProps, O as TextLink, T as TooltipData, U as TooltipSeries, Q as TopNav, P as TopNavProps, a1 as YFormatSettings, Y as YFormatType, a2 as clearColorCache, a3 as createCategoryColorMap, Z as createXScale, _ as createYScale, $ as defaultMargin, a4 as getContrastingTextColor, a5 as getDefaultChartColor, a6 as getDefaultColors, a7 as getResolvedColor, a8 as getThemeCategoricalColors, a0 as getYFormatSettings, a9 as isLightColor } from './server-DkP8PI1p.js';
1
+ export { A as ActionItem, b as ActionMenuProps, e as AppShell, d as AppShellProps, g as Avatar, f as AvatarProps, i as Badge, h as BadgeProps, B as BaseDataPoint, k as Card, X as ChartMargin, l as CodeEditorProps, m as CodeLanguage, n as CodeTheme, D as DateFieldProps, F as FileUploadProps, H as Heading, s as InteractiveMapProps, L as Loader, r as Logo, M as MapPoint, x as Meter, w as MeterProps, R as RichTextEditorProps, E as SegmentOption, z as SegmentedControlProps, N as SideNav, J as SideNavItem, K as SideNavProps, S as StaticMapProps, O as TextLink, T as TooltipData, U as TooltipSeries, Q as TopNav, P as TopNavProps, a1 as YFormatSettings, Y as YFormatType, a2 as clearColorCache, a3 as createCategoryColorMap, Z as createXScale, _ as createYScale, $ as defaultMargin, a4 as getContrastingTextColor, a5 as getDefaultChartColor, a6 as getDefaultColors, a7 as getResolvedColor, a8 as getThemeCategoricalColors, a0 as getYFormatSettings, a9 as isLightColor } from './server-C1hypeJ9.js';
2
2
  export { BreadcrumbProps, BreadcrumbsProps } from 'react-aria-components';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
package/dist/server.js CHANGED
@@ -61,5 +61,5 @@ import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {AlertTriangle,User,Bui
61
61
  });
62
62
  }
63
63
  })();
64
- `}})]})}function ne({src:r,alt:n,firstName:o,lastName:t,fullName:e,onClick:a,size:i="md",shape:l="circle",variant:d="user",className:u,status:b,bordered:x=false}){let s={xs:"h-6 w-6 text-xs",sm:"h-8 w-8 text-sm",md:"h-10 w-10 text-base",lg:"h-12 w-12 text-lg",xl:"h-16 w-16 text-xl"},f={xs:"h-1.5 w-1.5",sm:"h-2 w-2",md:"h-2.5 w-2.5",lg:"h-3 w-3",xl:"h-4 w-4"},h={xs:"bottom-0 right-0",sm:"bottom-0 right-0",md:"bottom-0 right-0",lg:"bottom-0.5 right-0.5",xl:"bottom-1 right-1"},w={online:"bg-feedback-success-background border-feedback-success-border",offline:"bg-text-muted border-border-muted",away:"bg-feedback-warning-background border-feedback-warning-border",busy:"bg-feedback-error-background border-feedback-error-border"},S={user:"bg-action-primary/10 text-action-primary",team:"bg-feedback-info-background text-feedback-info-text",organization:"bg-feedback-success-background text-feedback-success-text"},P=l==="circle"?"rounded-full":"rounded-md",H=twMerge("relative inline-flex items-center justify-center overflow-hidden transition-opacity",s[i],P,a&&"cursor-pointer hover:opacity-80",x&&"ring-2 ring-background-surface",u),R=(()=>{if(o||t){let N=o?.[0]||"",T=t?.[0]||"";return (N+T).toUpperCase()}if(e){let N=e.split(" "),T=N[0]?.[0]||"",te=N[N.length-1]?.[0]||"";return T===te?T.toUpperCase():(T+te).toUpperCase()}return ""})(),C=()=>{let N={xs:14,sm:16,md:20,lg:24,xl:32}[i];switch(d){case "team":return jsx(Users,{size:N});case "organization":return jsx(Building2,{size:N});default:return jsx(User,{size:N})}},$=()=>r?jsxs(Fragment,{children:[jsx("img",{src:r,alt:n||e||"Avatar",className:"h-full w-full object-cover",style:{fontSize:0}}),jsx("div",{className:"absolute inset-0 flex items-center justify-center -z-10",children:R?jsx("span",{className:"font-semibold",children:R}):C()})]}):R?jsx("span",{className:"font-semibold",children:R}):C();return jsxs("div",{className:"relative inline-block",children:[jsx("div",{className:twMerge(H,r?"":S[d]),onClick:a,role:a?"button":void 0,tabIndex:a?0:void 0,children:$()}),b&&jsx("span",{className:twMerge("absolute border-2 border-background-surface",P,f[i],h[i],w[b]),"aria-label":`Status: ${b}`})]})}var Ie={default:"bg-feedback-info-background text-feedback-info-text",success:"bg-feedback-success-background text-feedback-success-text",error:"bg-feedback-error-background text-feedback-error-text",warning:"bg-feedback-warning-background text-feedback-warning-text",info:"bg-feedback-info-background text-feedback-info-text",primary:"bg-action-primary/10 text-action-primary",secondary:"bg-action-secondary/10 text-action-secondary",neutral:"bg-background-muted text-text-muted"},Ve={sm:"px-2 py-1.5 text-xs",md:"px-3 py-2 text-sm",lg:"px-3.5 py-2.5 text-base"},$e={pill:"rounded-full",rounded:"rounded-lg",square:"rounded-sm"},Te={sm:"w-1.5 h-1.5",md:"w-2 h-2",lg:"w-2.5 h-2.5"};function ie({children:r,variant:n="default",size:o="sm",shape:t="square",dot:e=false,dotPosition:a="left",className:i}){let l=e&&jsx("span",{className:twMerge("rounded-full bg-current opacity-75",Te[o]),"aria-hidden":"true"});return jsxs("span",{className:twMerge("inline-flex items-center gap-1.5 font-medium",Ve[o],$e[t],Ie[n],i),children:[e&&a==="left"&&l,r,e&&a==="right"&&l]})}var Ee={xs:"text-lg font-semibold",sm:"text-xl font-semibold",md:"text-2xl font-semibold",lg:"text-3xl font-semibold",xl:"text-4xl font-semibold"},Ae={page:"h-16 leading-[62px]"};function j({tag:r="h1",size:n="lg",height:o,className:t="",children:e}){let a=Ee[n],i=o?Ae[o]:"";return jsx(r,{className:twMerge(a,i,t),children:e})}var y=({width:r,height:n,variant:o="rect",animation:t="pulse",gradient:e=false,flex:a=false,stack:i,responsive:l,delay:d=0,adjustAnimationSpeedBasedOnWidth:u=false,ariaLabel:b,className:x,"data-testid":s})=>{let[f,h]=useState(d===0);if(useEffect(()=>{if(d>0){let C=setTimeout(()=>h(true),d);return ()=>clearTimeout(C)}},[d]),!f)return null;let w=e?"bg-gradient-to-r from-[var(--skeleton-base)] via-[var(--skeleton-highlight)] to-[var(--skeleton-base)]":"bg-[var(--skeleton-base)]",S=u&&r?(()=>{let C=typeof r=="number"?r:parseFloat(String(r));return isNaN(C)?"":`animation-duration-[${Math.max(.8,C/100)}s]`})():"",P=t==="pulse"?`animate-pulse ${S}`:t==="wave"?`relative overflow-hidden before:absolute before:inset-0 before:bg-gradient-to-r before:from-transparent before:via-[var(--skeleton-wave)] before:to-transparent before:animate-wave ${S}`:"",H="rounded-sm";o==="circle"&&(H="rounded-full"),o==="text"&&(H="h-4 w-full rounded-sm");let _=a?"flex-1 min-w-0":"",R=l?Object.entries(l).map(([C,$])=>`${C}:w-[${$}]`).join(" "):"";return i?jsx("div",{className:"space-y-2","data-testid":s,children:i.map((C,$)=>jsx("div",{className:twMerge(w,P,H,_,R,x),style:{width:C,height:n}},$))}):jsx("div",{className:twMerge(w,P,H,_,R,x),style:{width:r,height:n},role:"presentation","aria-hidden":!b,"aria-label":b??void 0,"data-testid":s})};var Ye={outlined:"bg-background-surface border border-border-default",elevated:"bg-background-surface border-0 shadow-md",filled:"bg-background-muted border-0",ghost:"bg-transparent border-0 shadow-none"},qe="rounded-lg",J={square:"aspect-square",video:"aspect-video",wide:"aspect-[2/1]",auto:""},_e={start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between"};function I({variant:r="outlined",className:n,children:o,isLoading:t=false}){return jsx("div",{className:twMerge("w-full overflow-hidden",Ye[r],qe,n),"data-testid":"card",children:t?jsx("div",{className:"p-6",children:jsx(y,{width:"100%",height:200})}):o})}function le({title:r,subtitle:n,actions:o,className:t,isLoading:e=false}){return e?jsxs("div",{className:twMerge("p-6 pb-4",t),children:[jsxs("div",{className:"flex justify-between items-start mb-1",children:[jsx(y,{width:120,height:20}),jsx(y,{width:24,height:24})]}),n&&jsx(y,{width:200,height:16})]}):!r&&!n&&!o?null:jsx("div",{className:twMerge("p-6 pb-4",t),children:jsxs("div",{className:"flex justify-between items-start gap-4",children:[jsxs("div",{className:"min-w-0 flex-1",children:[r&&jsx("div",{className:"mb-1",children:typeof r=="string"?jsx(j,{tag:"h3",size:"sm",className:"text-text-heading",children:r}):r}),n&&jsx("div",{className:"text-sm text-text-muted",children:n})]}),o&&jsx("div",{className:"flex-shrink-0",children:o})]})})}function de({src:r,alt:n,aspectRatio:o="auto",className:t,children:e,isLoading:a=false}){return a?jsx("div",{className:twMerge("bg-background-muted",J[o],t),children:jsx(y,{width:"100%",height:"100%"})}):e?jsx("div",{className:twMerge("overflow-hidden",J[o],t),children:e}):r?jsx("div",{className:twMerge("overflow-hidden",J[o],t),children:jsx("img",{src:r,alt:n||"",className:"w-full h-full object-cover",loading:"lazy"})}):null}function ce({className:r,children:n,isLoading:o=false}){return o?jsx("div",{className:twMerge("px-6 py-4",r),children:jsxs("div",{className:"space-y-2",children:[jsx(y,{width:"100%",height:16}),jsx(y,{width:"80%",height:16}),jsx(y,{width:"60%",height:16})]})}):n?jsx("div",{className:twMerge("px-6 py-4 text-text-body",r),children:n}):null}function pe({className:r,children:n,align:o="end",isLoading:t=false}){return t?jsxs("div",{className:twMerge("px-6 py-4 flex gap-2 justify-end",r),children:[jsx(y,{width:80,height:32}),jsx(y,{width:60,height:32})]}):n?jsx("div",{className:twMerge("px-6 py-4 flex items-center gap-2",_e[o],r),children:n}):null}I.Header=le;I.Media=de;I.Content=ce;I.Footer=pe;var me=({className:r,size:n=24,color:o="text-action-primary"})=>jsx("div",{className:twMerge("inline-block animate-spin rounded-full border-2 border-solid border-current border-r-transparent",o,r),style:{width:n,height:n},role:"status","aria-label":"loading",children:jsx("span",{className:"sr-only",children:"Loading..."})});function fe(r,n){return composeRenderProps(r,o=>twMerge(n,o))}var ge={sm:{text:"text-[length:var(--control-text-sm)]",height:"h-[var(--control-sm-height)]",padding:"px-[var(--control-padding-sm)]",gap:"gap-[var(--control-gap-sm)]"},md:{text:"text-[length:var(--control-text-md)]",height:"h-[var(--control-md-height)]",padding:"px-[var(--control-padding-md)]",gap:"gap-[var(--control-gap-md)]"},lg:{text:"text-[length:var(--control-text-lg)]",height:"h-[var(--control-lg-height)]",padding:"px-[var(--control-padding-lg)]",gap:"gap-[var(--control-gap-lg)]"},xl:{text:"text-[length:var(--control-text-xl)]",height:"h-[var(--control-xl-height)]",padding:"px-[var(--control-padding-xl)]",gap:"gap-[var(--control-gap-xl)]"}};var V={xs:16,sm:20,md:24,lg:32,xl:40,"2xl":48},Y=memo(({name:r,size:n="md",color:o,weight:t="regular",className:e,ariaLabel:a,...i})=>{let l=Xe[r];if(!l)return process.env.NODE_ENV==="development"&&console.error(`Icon "${r}" not found in @phosphor-icons/react`),null;let d=typeof n=="string"&&n in V?V[n]:n,u=twMerge("inline-block flex-shrink-0",!o&&"text-current",e);return jsx(l,{...i,size:d,color:o,weight:t,className:u,"aria-label":a||`${r} icon`,"data-testid":`icon-${r}`})});Y.displayName="Icon";var Je=memo(({variant:r="subtle",shape:n="square",containerSize:o,containerClassName:t,size:e="md",className:a,name:i,color:l,weight:d,ariaLabel:u,ref:b,...x})=>{let s=typeof e=="string"&&e in V?V[e]:e,f=o?typeof o=="string"&&o in V?V[o]:o:s*1.75,h=twMerge("inline-flex items-center justify-center flex-shrink-0",n==="circle"?"rounded-full":"rounded-lg",r==="subtle"&&"bg-gray-100 dark:bg-gray-800",r==="solid"&&"bg-brand text-white",r==="outline"&&"border-2 border-current",t);return jsx("div",{className:h,style:{width:f,height:f},children:jsx(Y,{...x,name:i,size:e,color:l,weight:d,className:a,ariaLabel:u})})});Je.displayName="IconWithContainer";function xe({children:r,size:n="md",tooltip:o,isRequired:t,className:e,htmlFor:a}){return jsxs("label",{htmlFor:a,className:twMerge(ge[n].text,"!text-text-caption flex items-center gap-1",e),children:[r,t&&jsx("span",{children:"*"}),o&&jsx("span",{className:"text-text-muted",children:jsx(Y,{name:"Info",size:n==="sm"?16:20})})]})}var ot={sm:{bar:"h-1.5 w-48",text:"text-xs",icon:"h-3 w-3"},md:{bar:"h-2 w-64",text:"text-sm",icon:"h-4 w-4"},lg:{bar:"h-3 w-80",text:"text-base",icon:"h-5 w-5"}};function ve({label:r,size:n="md",variant:o="default",showWarningIndicator:t=true,warningThreshold:e=80,className:a,...i}){let l=ot[n];return jsx(Meter,{...i,className:fe(a,"flex flex-col gap-1"),children:({percentage:d,valueText:u})=>{let b=t&&d>=e,x=o==="default"?rt(d):o;return jsxs(Fragment,{children:[jsxs("div",{className:"flex justify-between gap-2",children:[r&&jsx(xe,{children:r}),jsxs("span",{className:twMerge(l.text,b?"text-feedback-error-text":"text-text-muted"),children:[b&&jsx(AlertTriangle,{"aria-label":"Warning: High value",className:twMerge("inline-block align-text-bottom mr-1",l.icon)}),u]})]}),jsx("div",{className:twMerge("relative rounded-full bg-background-muted","ring-1 ring-inset ring-border-muted",l.bar),children:jsx("div",{className:twMerge("absolute left-0 top-0 h-full rounded-full transition-all duration-300","forced-colors:bg-[Highlight]",nt(x)),style:{width:`${Math.min(100,Math.max(0,d))}%`},role:"presentation","aria-hidden":"true"})})]})}})}function rt(r){return r<50?"success":r<70?"info":r<90?"warning":"error"}function nt(r){switch(r){case "success":return "bg-feedback-success-text";case "warning":return "bg-feedback-warning-text";case "error":return "bg-feedback-error-text";case "info":return "bg-feedback-info-text";default:return "bg-action-primary-background"}}var it=({href:r,children:n,className:o="",external:t=false,title:e,variant:a="default",onClick:i,asButton:l=false,onPress:d,showArrow:u=false})=>{let b=t?{target:"_blank",rel:"noopener noreferrer"}:{},f=`hover:underline hover:decoration-1 hover:underline-offset-4 cursor-pointer ${{default:"text-text-link-default hover:text-text-link-hover visited:text-text-link-default",primary:"text-action-primary hover:text-action-primary-hover visited:text-action-primary",muted:"text-text-muted hover:text-text-muted visited:text-text-muted"}[a]} ${o}`,h=jsxs(Fragment,{children:[n,u&&jsxs("span",{children:["\xA0","\u2192"]})]});return l?jsx("button",{type:"button",className:f,onClick:d,title:e,children:h}):jsx("a",{href:r||"#",className:f,...b,title:e,onClick:i,children:h})};var z=new Map,E=(r,n="#000000")=>{if(typeof window>"u")return n;let o=r.startsWith("var(")?r.slice(4,-1):r.startsWith("--")?r:`--${r}`;if(z.has(o))return z.get(o);try{let t=document.documentElement,a=getComputedStyle(t).getPropertyValue(o).trim();if(a)return z.set(o,a),a;let i=document.createElement("div");i.style.color=`var(${o})`,document.body.appendChild(i);let l=getComputedStyle(i).color;return document.body.removeChild(i),l&&l!=="rgb(0, 0, 0)"?(z.set(o,l),l):n}catch(t){return console.warn(`Failed to resolve color for ${r}:`,t),n}},lt=()=>{z.clear();},ke=()=>{let r=[];for(let n=1;n<=10;n++){let o=E(`--data-categorical-${n}`);o&&r.push(o);}return r.length===0?we():r},we=()=>["#444ae1","#10b981","#f59e0b","#ef4444","#8b5cf6","#06b6d4","#ec4899","#f97316","#14b8a6","#6366f1"],dt=()=>E("--data-default","#444ae1"),ct=(r,n)=>{let o={},t=ke();return r.forEach((e,a)=>{n&&n[e]?o[e]=n[e]:o[e]=t[a%t.length];}),o},Ne=r=>{let n=r.match(/\d+/g);if(!n||n.length<3)return true;let[o,t,e]=n.map(Number);return (.299*o+.587*t+.114*e)/255>.5},pt=r=>Ne(r)?E("--text-body","#333333"):E("--neutral-white","#ffffff");var A={top:20,right:20,bottom:50,left:60};function Me(r,n="$"){let o=(t,e)=>t==null?"-":e(t);switch(r){case "number":return {format:t=>o(t,e=>e.toLocaleString()),tickFormat:t=>o(t,e=>e.toLocaleString())};case "percent":return {format:t=>o(t,e=>`${e.toFixed(1)}%`),tickFormat:t=>o(t,e=>`${e.toFixed(0)}%`),min:0,max:100,tickInterval:20};case "kWh":return {format:t=>o(t,e=>`${(e/1e3).toFixed(1)} kWh`),tickFormat:t=>o(t,e=>`${(e/1e3).toFixed(1)}`)};case "kW":return {format:t=>o(t,e=>`${(e/1e3).toFixed(1)} kW`),tickFormat:t=>o(t,e=>`${(e/1e3).toFixed(1)}`)};case "amperes":return {format:t=>o(t,e=>`${e.toFixed(1)} A`),tickFormat:t=>o(t,e=>`${e.toFixed(1)} A`)};case "temperature":return {format:t=>o(t,e=>`${e.toFixed(1)}\xB0`),tickFormat:t=>o(t,e=>`${e.toFixed(0)}\xB0`)};case "percentageChange":return {format:t=>o(t,e=>`${e>0?"+":""}${(e*100).toFixed(1)}%`),tickFormat:t=>o(t,e=>`${e>0?"+":""}${(e*100).toFixed(0)}%`),min:-100,max:100};case "decimal":return {format:t=>o(t,e=>e.toFixed(2)),tickFormat:t=>o(t,e=>e.toFixed(1))};case "currency":return {format:t=>o(t,e=>`${n}${e.toLocaleString()}`),tickFormat:t=>o(t,e=>`${n}${e.toLocaleString()}`)};case "scientific":return {format:t=>o(t,e=>e.toExponential(2)),tickFormat:t=>o(t,e=>e.toExponential(1))};case "integer":return {format:t=>o(t,e=>Math.round(e).toLocaleString()),tickFormat:t=>o(t,e=>Math.round(e).toLocaleString())};case "logarithmic":return {format:t=>o(t,e=>e.toExponential(1)),tickFormat:t=>o(t,e=>e.toExponential(0)),min:1,tickInterval:10};case "timeDuration":return {format:t=>o(t,e=>`${Math.floor(e/60)}:${(e%60).toString().padStart(2,"0")} min`),tickFormat:t=>o(t,e=>`${Math.floor(e/60)}m`),min:0};case "compact":return {format:t=>o(t,e=>new Intl.NumberFormat("en",{notation:"compact"}).format(e)),tickFormat:t=>o(t,e=>new Intl.NumberFormat("en",{notation:"compact"}).format(e))};case "si":return {format:t=>o(t,e=>new Intl.NumberFormat("en",{notation:"compact",maximumFractionDigits:2}).format(e)),tickFormat:t=>o(t,e=>new Intl.NumberFormat("en",{notation:"compact",maximumFractionDigits:1}).format(e))};case "bytes":return {format:t=>o(t,e=>{let a=["B","KB","MB","GB","TB"],i=0,l=e;for(;l>=1024&&i<a.length-1;)l/=1024,i++;return `${l.toFixed(1)} ${a[i]}`}),tickFormat:t=>o(t,e=>{let a=["B","KB","MB","GB","TB"],i=0,l=e;for(;l>=1024&&i<a.length-1;)l/=1024,i++;return `${l.toFixed(0)} ${a[i]}`}),min:0};case "rate":return {format:t=>o(t,e=>`${e.toFixed(1)} req/sec`),tickFormat:t=>o(t,e=>`${e.toFixed(0)}/s`)};case "ordinal":return {format:t=>o(t,e=>{let a=["th","st","nd","rd"],i=e%100;return e+(a[(i-20)%10]||a[i]||a[0])}),tickFormat:t=>o(t,e=>e.toString()),min:1};case "date":return {format:t=>o(t,e=>new Intl.DateTimeFormat("en",{dateStyle:"medium"}).format(new Date(e))),tickFormat:t=>o(t,e=>new Intl.DateTimeFormat("en",{dateStyle:"short"}).format(new Date(e))),min:0};case "largeCurrency":return {format:t=>o(t,e=>`${n}${(e/1e6).toFixed(2)}M`),tickFormat:t=>o(t,e=>`${n}${(e/1e6).toFixed(0)}M`)};case "coordinates":return {format:t=>o(t,e=>`${Math.abs(e).toFixed(3)}\xB0 ${e>=0?"N":"S"}`),tickFormat:t=>o(t,e=>`${Math.abs(e).toFixed(1)}\xB0 ${e>=0?"N":"S"}`),min:-90,max:90};case "ranked":return {format:t=>o(t,e=>`Rank: ${e}`),tickFormat:t=>o(t,e=>e.toString()),min:1};default:return {format:t=>o(t,e=>e.toLocaleString()),tickFormat:t=>o(t,e=>e.toLocaleString())}}}var bt=(r,n)=>{let o=extent(r,t=>t.xValue);return scaleTime({range:[A.left,n-A.right],domain:o,nice:true})},xt=(r,n,o)=>{let t=Me(o),e=min(r,d=>d.yValue)||0,a=max(r,d=>d.yValue)||0,i=t.min!==void 0?t.min:e>=0?0:e*1.1,l=t.max!==void 0?t.max:a<=0?0:a*1.1;return scaleLinear({range:[n-A.bottom,A.top],domain:[i,l],nice:true})};export{Pe as AppShell,ne as Avatar,ie as Badge,I as Card,j as Heading,me as Loader,D as Logo,ve as Meter,W as SideNav,it as TextLink,B as TopNav,lt as clearColorCache,ct as createCategoryColorMap,bt as createXScale,xt as createYScale,A as defaultMargin,pt as getContrastingTextColor,dt as getDefaultChartColor,we as getDefaultColors,E as getResolvedColor,ke as getThemeCategoricalColors,Me as getYFormatSettings,Ne as isLightColor};//# sourceMappingURL=server.js.map
64
+ `}})]})}function ne({src:r,alt:n,firstName:o,lastName:t,fullName:e,onClick:a,size:i="md",shape:l="circle",variant:d="user",className:u,status:b,bordered:x=false}){let s={xs:"h-6 w-6 text-xs",sm:"h-8 w-8 text-sm",md:"h-10 w-10 text-base",lg:"h-12 w-12 text-lg",xl:"h-16 w-16 text-xl"},f={xs:"h-1.5 w-1.5",sm:"h-2 w-2",md:"h-2.5 w-2.5",lg:"h-3 w-3",xl:"h-4 w-4"},h={xs:"bottom-0 right-0",sm:"bottom-0 right-0",md:"bottom-0 right-0",lg:"bottom-0.5 right-0.5",xl:"bottom-1 right-1"},w={online:"bg-feedback-success-background border-feedback-success-border",offline:"bg-text-muted border-border-muted",away:"bg-feedback-warning-background border-feedback-warning-border",busy:"bg-feedback-error-background border-feedback-error-border"},S={user:"bg-action-primary/10 text-action-primary",team:"bg-feedback-info-background text-feedback-info-text",organization:"bg-feedback-success-background text-feedback-success-text"},P=l==="circle"?"rounded-full":"rounded-md",H=twMerge("relative inline-flex items-center justify-center overflow-hidden transition-opacity",s[i],P,a&&"cursor-pointer hover:opacity-80",x&&"ring-2 ring-background-surface",u),R=(()=>{if(o||t){let N=o?.[0]||"",T=t?.[0]||"";return (N+T).toUpperCase()}if(e){let N=e.split(" "),T=N[0]?.[0]||"",te=N[N.length-1]?.[0]||"";return T===te?T.toUpperCase():(T+te).toUpperCase()}return ""})(),C=()=>{let N={xs:14,sm:16,md:20,lg:24,xl:32}[i];switch(d){case "team":return jsx(Users,{size:N});case "organization":return jsx(Building2,{size:N});default:return jsx(User,{size:N})}},$=()=>r?jsxs(Fragment,{children:[jsx("img",{src:r,alt:n||e||"Avatar",className:"h-full w-full object-cover",style:{fontSize:0}}),jsx("div",{className:"absolute inset-0 flex items-center justify-center -z-10",children:R?jsx("span",{className:"font-semibold",children:R}):C()})]}):R?jsx("span",{className:"font-semibold",children:R}):C();return jsxs("div",{className:"relative inline-block",children:[jsx("div",{className:twMerge(H,r?"":S[d]),onClick:a,role:a?"button":void 0,tabIndex:a?0:void 0,children:$()}),b&&jsx("span",{className:twMerge("absolute border-2 border-background-surface",P,f[i],h[i],w[b]),"aria-label":`Status: ${b}`})]})}var Ie={default:"bg-feedback-info-background text-feedback-info-text",success:"bg-feedback-success-background text-feedback-success-text",error:"bg-feedback-error-background text-feedback-error-text",warning:"bg-feedback-warning-background text-feedback-warning-text",info:"bg-feedback-info-background text-feedback-info-text",primary:"bg-action-primary/10 text-action-primary",secondary:"bg-action-secondary/10 text-action-secondary",neutral:"bg-background-muted text-text-muted"},Ve={sm:"px-2 py-1.5 text-xs",md:"px-3 py-2 text-sm",lg:"px-3.5 py-2.5 text-base"},$e={pill:"rounded-full",rounded:"rounded-lg",square:"rounded-sm"},Te={sm:"w-1.5 h-1.5",md:"w-2 h-2",lg:"w-2.5 h-2.5"};function ie({children:r,variant:n="default",size:o="sm",shape:t="square",dot:e=false,dotPosition:a="left",className:i}){let l=e&&jsx("span",{className:twMerge("rounded-full bg-current opacity-75",Te[o]),"aria-hidden":"true"});return jsxs("span",{className:twMerge("inline-flex items-center gap-1.5 font-medium",Ve[o],$e[t],Ie[n],i),children:[e&&a==="left"&&l,r,e&&a==="right"&&l]})}var Ee={xs:"text-lg font-semibold",sm:"text-xl font-semibold",md:"text-2xl font-semibold",lg:"text-3xl font-semibold",xl:"text-4xl font-semibold"},Ae={page:"h-16 leading-[62px]"};function j({tag:r="h1",size:n="lg",height:o,className:t="",children:e}){let a=Ee[n],i=o?Ae[o]:"";return jsx(r,{className:twMerge(a,i,t),children:e})}var y=({width:r,height:n,variant:o="rect",animation:t="pulse",gradient:e=false,flex:a=false,stack:i,responsive:l,delay:d=0,adjustAnimationSpeedBasedOnWidth:u=false,ariaLabel:b,className:x,"data-testid":s})=>{let[f,h]=useState(d===0);if(useEffect(()=>{if(d>0){let C=setTimeout(()=>h(true),d);return ()=>clearTimeout(C)}},[d]),!f)return null;let w=e?"bg-gradient-to-r from-[var(--skeleton-base)] via-[var(--skeleton-highlight)] to-[var(--skeleton-base)]":"bg-[var(--skeleton-base)]",S=u&&r?(()=>{let C=typeof r=="number"?r:parseFloat(String(r));return isNaN(C)?"":`animation-duration-[${Math.max(.8,C/100)}s]`})():"",P=t==="pulse"?`animate-pulse ${S}`:t==="wave"?`relative overflow-hidden before:absolute before:inset-0 before:bg-gradient-to-r before:from-transparent before:via-[var(--skeleton-wave)] before:to-transparent before:animate-wave ${S}`:"",H="rounded-sm";o==="circle"&&(H="rounded-full"),o==="text"&&(H="h-4 w-full rounded-sm");let O=a?"flex-1 min-w-0":"",R=l?Object.entries(l).map(([C,$])=>`${C}:w-[${$}]`).join(" "):"";return i?jsx("div",{className:"space-y-2","data-testid":s,children:i.map((C,$)=>jsx("div",{className:twMerge(w,P,H,O,R,x),style:{width:C,height:n}},$))}):jsx("div",{className:twMerge(w,P,H,O,R,x),style:{width:r,height:n},role:"presentation","aria-hidden":!b,"aria-label":b??void 0,"data-testid":s})};var Ye={outlined:"bg-background-surface border border-border-default",elevated:"bg-background-surface border-0 shadow-md",filled:"bg-background-muted border-0",ghost:"bg-transparent border-0 shadow-none"},qe="rounded-lg",J={square:"aspect-square",video:"aspect-video",wide:"aspect-[2/1]",auto:""},Oe={start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between"};function I({variant:r="outlined",className:n,children:o,isLoading:t=false}){return jsx("div",{className:twMerge("w-full overflow-hidden",Ye[r],qe,n),"data-testid":"card",children:t?jsx("div",{className:"p-6",children:jsx(y,{width:"100%",height:200})}):o})}function le({title:r,subtitle:n,actions:o,className:t,isLoading:e=false}){return e?jsxs("div",{className:twMerge("p-6 pb-4",t),children:[jsxs("div",{className:"flex justify-between items-start mb-1",children:[jsx(y,{width:120,height:20}),jsx(y,{width:24,height:24})]}),n&&jsx(y,{width:200,height:16})]}):!r&&!n&&!o?null:jsx("div",{className:twMerge("p-6 pb-4",t),children:jsxs("div",{className:"flex justify-between items-start gap-4",children:[jsxs("div",{className:"min-w-0 flex-1",children:[r&&jsx("div",{className:"mb-1",children:typeof r=="string"?jsx(j,{tag:"h3",size:"sm",className:"text-text-heading",children:r}):r}),n&&jsx("div",{className:"text-sm text-text-muted",children:n})]}),o&&jsx("div",{className:"flex-shrink-0",children:o})]})})}function de({src:r,alt:n,aspectRatio:o="auto",className:t,children:e,isLoading:a=false}){return a?jsx("div",{className:twMerge("bg-background-muted",J[o],t),children:jsx(y,{width:"100%",height:"100%"})}):e?jsx("div",{className:twMerge("overflow-hidden",J[o],t),children:e}):r?jsx("div",{className:twMerge("overflow-hidden",J[o],t),children:jsx("img",{src:r,alt:n||"",className:"w-full h-full object-cover",loading:"lazy"})}):null}function ce({className:r,children:n,isLoading:o=false}){return o?jsx("div",{className:twMerge("px-6 py-4",r),children:jsxs("div",{className:"space-y-2",children:[jsx(y,{width:"100%",height:16}),jsx(y,{width:"80%",height:16}),jsx(y,{width:"60%",height:16})]})}):n?jsx("div",{className:twMerge("px-6 py-4 text-text-body",r),children:n}):null}function pe({className:r,children:n,align:o="end",isLoading:t=false}){return t?jsxs("div",{className:twMerge("px-6 py-4 flex gap-2 justify-end",r),children:[jsx(y,{width:80,height:32}),jsx(y,{width:60,height:32})]}):n?jsx("div",{className:twMerge("px-6 py-4 flex items-center gap-2",Oe[o],r),children:n}):null}I.Header=le;I.Media=de;I.Content=ce;I.Footer=pe;var me=({className:r,size:n=24,color:o="text-action-primary"})=>jsx("div",{className:twMerge("inline-block animate-spin rounded-full border-2 border-solid border-current border-r-transparent",o,r),style:{width:n,height:n},role:"status","aria-label":"loading",children:jsx("span",{className:"sr-only",children:"Loading..."})});function fe(r,n){return composeRenderProps(r,o=>twMerge(n,o))}var ge={sm:{text:"text-[length:var(--control-text-sm)]",height:"h-[var(--control-sm-height)]",padding:"px-[var(--control-padding-sm)]",gap:"gap-[var(--control-gap-sm)]"},md:{text:"text-[length:var(--control-text-md)]",height:"h-[var(--control-md-height)]",padding:"px-[var(--control-padding-md)]",gap:"gap-[var(--control-gap-md)]"},lg:{text:"text-[length:var(--control-text-lg)]",height:"h-[var(--control-lg-height)]",padding:"px-[var(--control-padding-lg)]",gap:"gap-[var(--control-gap-lg)]"},xl:{text:"text-[length:var(--control-text-xl)]",height:"h-[var(--control-xl-height)]",padding:"px-[var(--control-padding-xl)]",gap:"gap-[var(--control-gap-xl)]"}};var V={xs:16,sm:20,md:24,lg:32,xl:40,"2xl":48},Y=memo(({name:r,size:n="md",color:o,weight:t="regular",className:e,ariaLabel:a,...i})=>{let l=Xe[r];if(!l)return process.env.NODE_ENV==="development"&&console.error(`Icon "${r}" not found in @phosphor-icons/react`),null;let d=typeof n=="string"&&n in V?V[n]:n,u=twMerge("inline-block flex-shrink-0",!o&&"text-current",e);return jsx(l,{...i,size:d,color:o,weight:t,className:u,"aria-label":a||`${r} icon`,"data-testid":`icon-${r}`})});Y.displayName="Icon";var Je=memo(({variant:r="subtle",shape:n="square",containerSize:o,containerClassName:t,size:e="md",className:a,name:i,color:l,weight:d,ariaLabel:u,ref:b,...x})=>{let s=typeof e=="string"&&e in V?V[e]:e,f=o?typeof o=="string"&&o in V?V[o]:o:s*1.75,h=twMerge("inline-flex items-center justify-center flex-shrink-0",n==="circle"?"rounded-full":"rounded-lg",r==="subtle"&&"bg-gray-100 dark:bg-gray-800",r==="solid"&&"bg-brand text-white",r==="outline"&&"border-2 border-current",t);return jsx("div",{className:h,style:{width:f,height:f},children:jsx(Y,{...x,name:i,size:e,color:l,weight:d,className:a,ariaLabel:u})})});Je.displayName="IconWithContainer";function xe({children:r,size:n="md",tooltip:o,isRequired:t,className:e,htmlFor:a}){return jsxs("label",{htmlFor:a,className:twMerge(ge[n].text,"!text-text-caption flex items-center gap-1",e),children:[r,t&&jsx("span",{children:"*"}),o&&jsx("span",{className:"text-text-muted",children:jsx(Y,{name:"Info",size:n==="sm"?16:20})})]})}var ot={sm:{bar:"h-1.5 w-48",text:"text-xs",icon:"h-3 w-3"},md:{bar:"h-2 w-64",text:"text-sm",icon:"h-4 w-4"},lg:{bar:"h-3 w-80",text:"text-base",icon:"h-5 w-5"}};function ve({label:r,size:n="md",variant:o="default",showWarningIndicator:t=true,warningThreshold:e=80,className:a,...i}){let l=ot[n];return jsx(Meter,{...i,className:fe(a,"flex flex-col gap-1"),children:({percentage:d,valueText:u})=>{let b=t&&d>=e,x=o==="default"?rt(d):o;return jsxs(Fragment,{children:[jsxs("div",{className:"flex justify-between gap-2",children:[r&&jsx(xe,{children:r}),jsxs("span",{className:twMerge(l.text,b?"text-feedback-error-text":"text-text-muted"),children:[b&&jsx(AlertTriangle,{"aria-label":"Warning: High value",className:twMerge("inline-block align-text-bottom mr-1",l.icon)}),u]})]}),jsx("div",{className:twMerge("relative rounded-full bg-background-muted","ring-1 ring-inset ring-border-muted",l.bar),children:jsx("div",{className:twMerge("absolute left-0 top-0 h-full rounded-full transition-all duration-300","forced-colors:bg-[Highlight]",nt(x)),style:{width:`${Math.min(100,Math.max(0,d))}%`},role:"presentation","aria-hidden":"true"})})]})}})}function rt(r){return r<50?"success":r<70?"info":r<90?"warning":"error"}function nt(r){switch(r){case "success":return "bg-feedback-success-text";case "warning":return "bg-feedback-warning-text";case "error":return "bg-feedback-error-text";case "info":return "bg-feedback-info-text";default:return "bg-action-primary-background"}}var it=({href:r,children:n,className:o="",external:t=false,title:e,variant:a="default",onClick:i,asButton:l=false,onPress:d,showArrow:u=false})=>{let b=t?{target:"_blank",rel:"noopener noreferrer"}:{},f=`hover:underline hover:decoration-1 hover:underline-offset-4 cursor-pointer ${{default:"text-text-link-default hover:text-text-link-hover visited:text-text-link-default",primary:"text-action-primary hover:text-action-primary-hover visited:text-action-primary",muted:"text-text-muted hover:text-text-muted visited:text-text-muted"}[a]} ${o}`,h=jsxs(Fragment,{children:[n,u&&jsxs("span",{children:["\xA0","\u2192"]})]});return l?jsx("button",{type:"button",className:f,onClick:d,title:e,children:h}):jsx("a",{href:r||"#",className:f,...b,title:e,onClick:i,children:h})};var z=new Map,E=(r,n="#000000")=>{if(typeof window>"u")return n;let o=r.startsWith("var(")?r.slice(4,-1):r.startsWith("--")?r:`--${r}`;if(z.has(o))return z.get(o);try{let t=document.documentElement,a=getComputedStyle(t).getPropertyValue(o).trim();if(a)return z.set(o,a),a;let i=document.createElement("div");i.style.color=`var(${o})`,document.body.appendChild(i);let l=getComputedStyle(i).color;return document.body.removeChild(i),l&&l!=="rgb(0, 0, 0)"?(z.set(o,l),l):n}catch(t){return console.warn(`Failed to resolve color for ${r}:`,t),n}},lt=()=>{z.clear();},ke=()=>{let r=[];for(let n=1;n<=6;n++){let o=E(`--color-data-categorical-${n}`);o&&r.push(o);}return r.length===0?we():r},we=()=>["#444ae1","#10b981","#f59e0b","#ef4444","#8b5cf6","#06b6d4","#ec4899","#f97316","#14b8a6","#6366f1"],dt=()=>E("--color-data-default","#444ae1");var ct=(r,n)=>{let o={},t=ke();return r.forEach((e,a)=>{n&&n[e]?o[e]=n[e]:o[e]=t[a%t.length];}),o};var Ne=r=>{let n=r.match(/\d+/g);if(!n||n.length<3)return true;let[o,t,e]=n.map(Number);return (.299*o+.587*t+.114*e)/255>.5},pt=r=>Ne(r)?E("--text-body","#333333"):E("--neutral-white","#ffffff");var A={top:20,right:20,bottom:50,left:60};function Me(r,n="$"){let o=(t,e)=>t==null?"-":e(t);switch(r){case "number":return {format:t=>o(t,e=>e.toLocaleString()),tickFormat:t=>o(t,e=>e.toLocaleString())};case "percent":return {format:t=>o(t,e=>`${e.toFixed(1)}%`),tickFormat:t=>o(t,e=>`${e.toFixed(0)}%`),min:0,max:100,tickInterval:20};case "kWh":return {format:t=>o(t,e=>`${(e/1e3).toFixed(1)} kWh`),tickFormat:t=>o(t,e=>`${(e/1e3).toFixed(1)}`)};case "kW":return {format:t=>o(t,e=>`${(e/1e3).toFixed(1)} kW`),tickFormat:t=>o(t,e=>`${(e/1e3).toFixed(1)}`)};case "amperes":return {format:t=>o(t,e=>`${e.toFixed(1)} A`),tickFormat:t=>o(t,e=>`${e.toFixed(1)} A`)};case "temperature":return {format:t=>o(t,e=>`${e.toFixed(1)}\xB0`),tickFormat:t=>o(t,e=>`${e.toFixed(0)}\xB0`)};case "percentageChange":return {format:t=>o(t,e=>`${e>0?"+":""}${(e*100).toFixed(1)}%`),tickFormat:t=>o(t,e=>`${e>0?"+":""}${(e*100).toFixed(0)}%`),min:-100,max:100};case "decimal":return {format:t=>o(t,e=>e.toFixed(2)),tickFormat:t=>o(t,e=>e.toFixed(1))};case "currency":return {format:t=>o(t,e=>`${n}${e.toLocaleString()}`),tickFormat:t=>o(t,e=>`${n}${e.toLocaleString()}`)};case "scientific":return {format:t=>o(t,e=>e.toExponential(2)),tickFormat:t=>o(t,e=>e.toExponential(1))};case "integer":return {format:t=>o(t,e=>Math.round(e).toLocaleString()),tickFormat:t=>o(t,e=>Math.round(e).toLocaleString())};case "logarithmic":return {format:t=>o(t,e=>e.toExponential(1)),tickFormat:t=>o(t,e=>e.toExponential(0)),min:1,tickInterval:10};case "timeDuration":return {format:t=>o(t,e=>`${Math.floor(e/60)}:${(e%60).toString().padStart(2,"0")} min`),tickFormat:t=>o(t,e=>`${Math.floor(e/60)}m`),min:0};case "compact":return {format:t=>o(t,e=>new Intl.NumberFormat("en",{notation:"compact"}).format(e)),tickFormat:t=>o(t,e=>new Intl.NumberFormat("en",{notation:"compact"}).format(e))};case "si":return {format:t=>o(t,e=>new Intl.NumberFormat("en",{notation:"compact",maximumFractionDigits:2}).format(e)),tickFormat:t=>o(t,e=>new Intl.NumberFormat("en",{notation:"compact",maximumFractionDigits:1}).format(e))};case "bytes":return {format:t=>o(t,e=>{let a=["B","KB","MB","GB","TB"],i=0,l=e;for(;l>=1024&&i<a.length-1;)l/=1024,i++;return `${l.toFixed(1)} ${a[i]}`}),tickFormat:t=>o(t,e=>{let a=["B","KB","MB","GB","TB"],i=0,l=e;for(;l>=1024&&i<a.length-1;)l/=1024,i++;return `${l.toFixed(0)} ${a[i]}`}),min:0};case "rate":return {format:t=>o(t,e=>`${e.toFixed(1)} req/sec`),tickFormat:t=>o(t,e=>`${e.toFixed(0)}/s`)};case "ordinal":return {format:t=>o(t,e=>{let a=["th","st","nd","rd"],i=e%100;return e+(a[(i-20)%10]||a[i]||a[0])}),tickFormat:t=>o(t,e=>e.toString()),min:1};case "date":return {format:t=>o(t,e=>new Intl.DateTimeFormat("en",{dateStyle:"medium"}).format(new Date(e))),tickFormat:t=>o(t,e=>new Intl.DateTimeFormat("en",{dateStyle:"short"}).format(new Date(e))),min:0};case "largeCurrency":return {format:t=>o(t,e=>`${n}${(e/1e6).toFixed(2)}M`),tickFormat:t=>o(t,e=>`${n}${(e/1e6).toFixed(0)}M`)};case "coordinates":return {format:t=>o(t,e=>`${Math.abs(e).toFixed(3)}\xB0 ${e>=0?"N":"S"}`),tickFormat:t=>o(t,e=>`${Math.abs(e).toFixed(1)}\xB0 ${e>=0?"N":"S"}`),min:-90,max:90};case "ranked":return {format:t=>o(t,e=>`Rank: ${e}`),tickFormat:t=>o(t,e=>e.toString()),min:1};default:return {format:t=>o(t,e=>e.toLocaleString()),tickFormat:t=>o(t,e=>e.toLocaleString())}}}var bt=(r,n)=>{let o=extent(r,t=>t.xValue);return scaleTime({range:[A.left,n-A.right],domain:o,nice:true})},xt=(r,n,o)=>{let t=Me(o),e=min(r,d=>d.yValue)||0,a=max(r,d=>d.yValue)||0,i=t.min!==void 0?t.min:e>=0?0:e*1.1,l=t.max!==void 0?t.max:a<=0?0:a*1.1;return scaleLinear({range:[n-A.bottom,A.top],domain:[i,l],nice:true})};export{Pe as AppShell,ne as Avatar,ie as Badge,I as Card,j as Heading,me as Loader,D as Logo,ve as Meter,W as SideNav,it as TextLink,B as TopNav,lt as clearColorCache,ct as createCategoryColorMap,bt as createXScale,xt as createYScale,A as defaultMargin,pt as getContrastingTextColor,dt as getDefaultChartColor,we as getDefaultColors,E as getResolvedColor,ke as getThemeCategoricalColors,Me as getYFormatSettings,Ne as isLightColor};//# sourceMappingURL=server.js.map
65
65
  //# sourceMappingURL=server.js.map