lsp-uikit 1.0.20 → 1.1.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/README.md CHANGED
@@ -1,18 +1,16 @@
1
- # LSP UI KIT
1
+ # LSP-UI
2
2
 
3
- ## Installation
3
+ ## 📦 Installation
4
4
 
5
5
  To install the package, run:
6
6
 
7
7
  ```sh
8
8
  npm install lsp-uikit
9
- # or (if you are using React 19)
10
- npm install lsp-uikit --force
11
9
  ```
12
10
 
13
- ## Usage
11
+ ## 🚀 Usage
14
12
 
15
- ### Importing Components
13
+ ### Components
16
14
 
17
15
  You can import components directly from the package:
18
16
 
@@ -20,61 +18,54 @@ You can import components directly from the package:
20
18
  import { Button } from 'lsp-uikit';
21
19
  ```
22
20
 
23
- ### Importing Hooks
21
+ ### Hooks
24
22
 
25
23
  Hooks can be imported as follows:
26
24
 
27
25
  ```tsx
28
- import { useMobile } from 'lsp-uikit/useMobile';
29
- import { useToast } from 'lsp-uikit/useToast';
26
+ import { useMobile } from 'lsp-uikit/hooks';
30
27
  ```
31
28
 
32
- ### Importing Utility Functions
29
+ ### Utilities
33
30
 
34
31
  Utility functions can be imported as follows:
35
32
 
36
33
  ```tsx
37
- import { cn } from 'lsp-uikit/cn';
34
+ import { cn } from 'lsp-uikit/utils';
38
35
  ```
39
36
 
40
- ## Tailwind Configuration
37
+ ## ⚙️ Tailwind Setup
41
38
 
42
- To use Tailwind with this library, extend your Tailwind config:
39
+ Make sure you have the required PostCSS plugins installed:
43
40
 
44
- 1. Import the package's Tailwind base configuration:
41
+ ```sh
42
+ npm install -D @tailwindcss/postcss autoprefixer tw-animate-css
43
+ ```
45
44
 
46
- ```js
47
- // tailwind.config.js
48
- module.exports = {
49
- ...baseConfig,
50
- content: [
51
- ...,
52
- './node_modules/lsp-uikit/**/*.{js,ts,jsx,tsx}',
53
- ],
54
- presets: [require('lsp-uikit/tailwind-config.js')],
55
- };
56
- ```
45
+ ## 🎨 Global Styles
57
46
 
58
- 2. Ensure you have Tailwind installed in your project:
47
+ To apply global styles, import the package's styles in your main CSS file:
59
48
 
60
- ```sh
61
- npm install tailwindcss postcss autoprefixer -D
62
- ```
49
+ ```css
50
+ /* global.css */
51
+ @import 'lsp-uikit/styles.css';
63
52
 
64
- ## Importing Global Styles
53
+ @layer base {
54
+ ...
55
+ }
56
+ ```
57
+
58
+ ## ✏️ Overriding Styles
65
59
 
66
- To apply global styles, import the CSS files in your main entry file:
60
+ To override the default theme variables, use inline `@theme` declarations:
67
61
 
68
62
  ```css
69
63
  /* global.css */
70
64
  @import 'lsp-uikit/styles.css';
71
65
 
72
- @tailwind base;
73
- @tailwind components;
74
- @tailwind utilities;
75
-
76
- @layer base {
77
- ...
66
+ @theme inline {
67
+ --color-background: #fff;
68
+ /* Add your custom variables here */
78
69
  }
79
70
  ```
80
71
 
package/dist/chart.d.ts CHANGED
@@ -1,7 +1,3 @@
1
- import * as recharts_types_util_payload_getUniqPayload from 'recharts/types/util/payload/getUniqPayload';
2
- import * as recharts_types_component_Tooltip from 'recharts/types/component/Tooltip';
3
- import * as recharts_types_util_types from 'recharts/types/util/types';
4
- import * as recharts_types_component_DefaultTooltipContent from 'recharts/types/component/DefaultTooltipContent';
5
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
6
2
  import * as React from 'react';
7
3
  import * as RechartsPrimitive from 'recharts';
@@ -22,50 +18,27 @@ type ChartConfig = {
22
18
  theme: Record<keyof typeof THEMES, string>;
23
19
  });
24
20
  };
25
- declare const ChartContainer: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
21
+ declare function ChartContainer({ id, className, children, config, ...props }: React.ComponentProps<'div'> & {
26
22
  config: ChartConfig;
27
- containerHeight: number;
28
- children: React.ComponentProps<typeof RechartsPrimitive.ResponsiveContainer>["children"];
29
- }, "ref"> & React.RefAttributes<HTMLDivElement>>;
23
+ children: React.ComponentProps<typeof RechartsPrimitive.ResponsiveContainer>['children'];
24
+ }): react_jsx_runtime.JSX.Element;
30
25
  declare const ChartStyle: ({ id, config }: {
31
26
  id: string;
32
27
  config: ChartConfig;
33
28
  }) => react_jsx_runtime.JSX.Element | null;
34
29
  declare const ChartTooltip: typeof RechartsPrimitive.Tooltip;
35
- declare const ChartTooltipContent: React.ForwardRefExoticComponent<Omit<RechartsPrimitive.DefaultTooltipContentProps<recharts_types_component_DefaultTooltipContent.ValueType, recharts_types_component_DefaultTooltipContent.NameType> & {
36
- accessibilityLayer?: boolean;
37
- active?: boolean | undefined;
38
- includeHidden?: boolean | undefined;
39
- allowEscapeViewBox?: recharts_types_util_types.AllowInDimension;
40
- animationDuration?: recharts_types_util_types.AnimationDuration;
41
- animationEasing?: recharts_types_util_types.AnimationTiming;
42
- content?: recharts_types_component_Tooltip.ContentType<recharts_types_component_DefaultTooltipContent.ValueType, recharts_types_component_DefaultTooltipContent.NameType> | undefined;
43
- coordinate?: Partial<recharts_types_util_types.Coordinate>;
44
- cursor?: boolean | React.ReactElement | React.SVGProps<SVGElement>;
45
- filterNull?: boolean;
46
- defaultIndex?: number;
47
- isAnimationActive?: boolean;
48
- offset?: number;
49
- payloadUniqBy?: recharts_types_util_payload_getUniqPayload.UniqueOption<recharts_types_component_DefaultTooltipContent.Payload<recharts_types_component_DefaultTooltipContent.ValueType, recharts_types_component_DefaultTooltipContent.NameType>> | undefined;
50
- position?: Partial<recharts_types_util_types.Coordinate>;
51
- reverseDirection?: recharts_types_util_types.AllowInDimension;
52
- shared?: boolean;
53
- trigger?: "hover" | "click";
54
- useTranslate3d?: boolean;
55
- viewBox?: recharts_types_util_types.CartesianViewBox;
56
- wrapperStyle?: React.CSSProperties;
57
- } & React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
30
+ declare function ChartTooltipContent({ active, payload, className, indicator, hideLabel, hideIndicator, label, labelFormatter, labelClassName, formatter, color, nameKey, labelKey, }: RechartsPrimitive.TooltipContentProps<any, any> & React.ComponentProps<'div'> & {
58
31
  hideLabel?: boolean;
59
32
  hideIndicator?: boolean;
60
- indicator?: "line" | "dot" | "dashed";
33
+ indicator?: 'line' | 'dot' | 'dashed';
61
34
  nameKey?: string;
62
35
  labelKey?: string;
63
- tooltipVariant?: "default" | "area-chart";
64
- }, "ref"> & React.RefAttributes<HTMLDivElement>>;
36
+ }): react_jsx_runtime.JSX.Element | null;
65
37
  declare const ChartLegend: typeof RechartsPrimitive.Legend;
66
- declare const ChartLegendContent: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Pick<RechartsPrimitive.LegendProps, "payload" | "verticalAlign"> & {
38
+ declare function ChartLegendContent({ className, hideIcon, payload, verticalAlign, nameKey, }: React.ComponentProps<'div'> & Pick<RechartsPrimitive.DefaultLegendContentProps, 'payload' | 'verticalAlign'> & {
67
39
  hideIcon?: boolean;
68
40
  nameKey?: string;
69
- }, "ref"> & React.RefAttributes<HTMLDivElement>>;
41
+ }): react_jsx_runtime.JSX.Element | null;
70
42
 
71
- export { type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent };
43
+ export { ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent };
44
+ export type { ChartConfig };
package/dist/chart.js CHANGED
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- import{jsx as e,jsxs as r,Fragment as o}from"react/jsx-runtime";import*as t from"react";import*as n from"recharts";import{clsx as l}from"clsx";const a=e=>{const r=c(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:t}=e;return{getClassGroupId:e=>{const o=e.split("-");return""===o[0]&&1!==o.length&&o.shift(),s(o,r)||d(e)},getConflictingClassGroupIds:(e,r)=>{const n=o[e]||[];return r&&t[e]?[...n,...t[e]]:n}}},s=(e,r)=>{if(0===e.length)return r.classGroupId;const o=e[0],t=r.nextPart.get(o),n=t?s(e.slice(1),t):void 0;if(n)return n;if(0===r.validators.length)return;const l=e.join("-");return r.validators.find((({validator:e})=>e(l)))?.classGroupId},i=/^\[(.+)\]$/,d=e=>{if(i.test(e)){const r=i.exec(e)[1],o=r?.substring(0,r.indexOf(":"));if(o)return"arbitrary.."+o}},c=e=>{const{theme:r,prefix:o}=e,t={nextPart:new Map,validators:[]};return m(Object.entries(e.classGroups),o).forEach((([e,o])=>{p(o,t,e,r)})),t},p=(e,r,o,t)=>{e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return b(e)?void p(e(t),r,o,t):void r.validators.push({validator:e,classGroupId:o});Object.entries(e).forEach((([e,n])=>{p(n,u(r,e),o,t)}))}else{(""===e?r:u(r,e)).classGroupId=o}}))},u=(e,r)=>{let o=e;return r.split("-").forEach((e=>{o.nextPart.has(e)||o.nextPart.set(e,{nextPart:new Map,validators:[]}),o=o.nextPart.get(e)})),o},b=e=>e.isThemeGetter,m=(e,r)=>r?e.map((([e,o])=>[e,o.map((e=>"string"==typeof e?r+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((([e,o])=>[r+e,o]))):e))])):e,f=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,o=new Map,t=new Map;const n=(n,l)=>{o.set(n,l),r++,r>e&&(r=0,t=o,o=new Map)};return{get(e){let r=o.get(e);return void 0!==r?r:void 0!==(r=t.get(e))?(n(e,r),r):void 0},set(e,r){o.has(e)?o.set(e,r):n(e,r)}}},g=e=>{const{separator:r,experimentalParseClassName:o}=e,t=1===r.length,n=r[0],l=r.length,a=e=>{const o=[];let a,s=0,i=0;for(let d=0;d<e.length;d++){let c=e[d];if(0===s){if(c===n&&(t||e.slice(d,d+l)===r)){o.push(e.slice(i,d)),i=d+l;continue}if("/"===c){a=d;continue}}"["===c?s++:"]"===c&&s--}const d=0===o.length?e:e.substring(i),c=d.startsWith("!");return{modifiers:o,hasImportantModifier:c,baseClassName:c?d.substring(1):d,maybePostfixModifierPosition:a&&a>i?a-i:void 0}};return o?e=>o({className:e,parseClassName:a}):a},h=e=>{if(e.length<=1)return e;const r=[];let o=[];return e.forEach((e=>{"["===e[0]?(r.push(...o.sort(),e),o=[]):o.push(e)})),r.push(...o.sort()),r},x=/\s+/;function v(){let e,r,o=0,t="";for(;o<arguments.length;)(e=arguments[o++])&&(r=y(e))&&(t&&(t+=" "),t+=r);return t}const y=e=>{if("string"==typeof e)return e;let r,o="";for(let t=0;t<e.length;t++)e[t]&&(r=y(e[t]))&&(o&&(o+=" "),o+=r);return o};function w(e,...r){let o,t,n,l=function(i){const d=r.reduce(((e,r)=>r(e)),e());return o=(e=>({cache:f(e.cacheSize),parseClassName:g(e),...a(e)}))(d),t=o.cache.get,n=o.cache.set,l=s,s(i)};function s(e){const r=t(e);if(r)return r;const l=((e,r)=>{const{parseClassName:o,getClassGroupId:t,getConflictingClassGroupIds:n}=r,l=[],a=e.trim().split(x);let s="";for(let e=a.length-1;e>=0;e-=1){const r=a[e],{modifiers:i,hasImportantModifier:d,baseClassName:c,maybePostfixModifierPosition:p}=o(r);let u=Boolean(p),b=t(u?c.substring(0,p):c);if(!b){if(!u){s=r+(s.length>0?" "+s:s);continue}if(b=t(c),!b){s=r+(s.length>0?" "+s:s);continue}u=!1}const m=h(i).join(":"),f=d?m+"!":m,g=f+b;if(l.includes(g))continue;l.push(g);const x=n(b,u);for(let e=0;e<x.length;++e){const r=x[e];l.push(f+r)}s=r+(s.length>0?" "+s:s)}return s})(e,o);return n(e,l),l}return function(){return l(v.apply(null,arguments))}}const k=e=>{const r=r=>r[e]||[];return r.isThemeGetter=!0,r},z=/^\[(?:([a-z-]+):)?(.+)\]$/i,N=/^\d+\/\d+$/,C=new Set(["px","full","screen"]),j=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,_=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,G=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,$=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,I=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,P=e=>M(e)||C.has(e)||N.test(e),S=e=>V(e,"length",D),M=e=>Boolean(e)&&!Number.isNaN(Number(e)),R=e=>V(e,"number",M),E=e=>Boolean(e)&&Number.isInteger(Number(e)),K=e=>e.endsWith("%")&&M(e.slice(0,-1)),O=e=>z.test(e),L=e=>j.test(e),T=new Set(["length","size","percentage"]),W=e=>V(e,T,J),B=e=>V(e,"position",J),q=new Set(["image","url"]),H=e=>V(e,q,U),A=e=>V(e,"",Q),F=()=>!0,V=(e,r,o)=>{const t=z.exec(e);return!!t&&(t[1]?"string"==typeof r?t[1]===r:r.has(t[1]):o(t[2]))},D=e=>_.test(e)&&!G.test(e),J=()=>!1,Q=e=>$.test(e),U=e=>I.test(e),X=w((()=>{const e=k("colors"),r=k("spacing"),o=k("blur"),t=k("brightness"),n=k("borderColor"),l=k("borderRadius"),a=k("borderSpacing"),s=k("borderWidth"),i=k("contrast"),d=k("grayscale"),c=k("hueRotate"),p=k("invert"),u=k("gap"),b=k("gradientColorStops"),m=k("gradientColorStopPositions"),f=k("inset"),g=k("margin"),h=k("opacity"),x=k("padding"),v=k("saturate"),y=k("scale"),w=k("sepia"),z=k("skew"),N=k("space"),C=k("translate"),j=()=>["auto",O,r],_=()=>[O,r],G=()=>["",P,S],$=()=>["auto",M,O],I=()=>["","0",O],T=()=>[M,O];return{cacheSize:500,separator:":",theme:{colors:[F],spacing:[P,S],blur:["none","",L,O],brightness:T(),borderColor:[e],borderRadius:["none","","full",L,O],borderSpacing:_(),borderWidth:G(),contrast:T(),grayscale:I(),hueRotate:T(),invert:I(),gap:_(),gradientColorStops:[e],gradientColorStopPositions:[K,S],inset:j(),margin:j(),opacity:T(),padding:_(),saturate:T(),scale:T(),sepia:I(),skew:T(),space:_(),translate:_()},classGroups:{aspect:[{aspect:["auto","square","video",O]}],container:["container"],columns:[{columns:[L]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",O]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[f]}],"inset-x":[{"inset-x":[f]}],"inset-y":[{"inset-y":[f]}],start:[{start:[f]}],end:[{end:[f]}],top:[{top:[f]}],right:[{right:[f]}],bottom:[{bottom:[f]}],left:[{left:[f]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",E,O]}],basis:[{basis:j()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",O]}],grow:[{grow:I()}],shrink:[{shrink:I()}],order:[{order:["first","last","none",E,O]}],"grid-cols":[{"grid-cols":[F]}],"col-start-end":[{col:["auto",{span:["full",E,O]},O]}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":[F]}],"row-start-end":[{row:["auto",{span:[E,O]},O]}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",O]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",O]}],gap:[{gap:[u]}],"gap-x":[{"gap-x":[u]}],"gap-y":[{"gap-y":[u]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[N]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[N]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",O,r]}],"min-w":[{"min-w":[O,r,"min","max","fit"]}],"max-w":[{"max-w":[O,r,"none","full","min","max","fit","prose",{screen:[L]},L]}],h:[{h:[O,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[O,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[O,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[O,r,"auto","min","max","fit"]}],"font-size":[{text:["base",L,S]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",R]}],"font-family":[{font:[F]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",O]}],"line-clamp":[{"line-clamp":["none",M,R]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",P,O]}],"list-image":[{"list-image":["none",O]}],"list-style-type":[{list:["none","disc","decimal",O]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[h]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",P,S]}],"underline-offset":[{"underline-offset":["auto",P,O]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:_()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",O]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",O]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[h]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",B]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",W]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},H]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[b]}],"gradient-via":[{via:[b]}],"gradient-to":[{to:[b]}],rounded:[{rounded:[l]}],"rounded-s":[{"rounded-s":[l]}],"rounded-e":[{"rounded-e":[l]}],"rounded-t":[{"rounded-t":[l]}],"rounded-r":[{"rounded-r":[l]}],"rounded-b":[{"rounded-b":[l]}],"rounded-l":[{"rounded-l":[l]}],"rounded-ss":[{"rounded-ss":[l]}],"rounded-se":[{"rounded-se":[l]}],"rounded-ee":[{"rounded-ee":[l]}],"rounded-es":[{"rounded-es":[l]}],"rounded-tl":[{"rounded-tl":[l]}],"rounded-tr":[{"rounded-tr":[l]}],"rounded-br":[{"rounded-br":[l]}],"rounded-bl":[{"rounded-bl":[l]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[h]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[h]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[P,O]}],"outline-w":[{outline:[P,S]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[h]}],"ring-offset-w":[{"ring-offset":[P,S]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",L,A]}],"shadow-color":[{shadow:[F]}],opacity:[{opacity:[h]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[t]}],contrast:[{contrast:[i]}],"drop-shadow":[{"drop-shadow":["","none",L,O]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[p]}],saturate:[{saturate:[v]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[t]}],"backdrop-contrast":[{"backdrop-contrast":[i]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[h]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",O]}],duration:[{duration:T()}],ease:[{ease:["linear","in","out","in-out",O]}],delay:[{delay:T()}],animate:[{animate:["none","spin","ping","pulse","bounce",O]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[y]}],"scale-x":[{"scale-x":[y]}],"scale-y":[{"scale-y":[y]}],rotate:[{rotate:[E,O]}],"translate-x":[{"translate-x":[C]}],"translate-y":[{"translate-y":[C]}],"skew-x":[{"skew-x":[z]}],"skew-y":[{"skew-y":[z]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",O]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",O]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",O]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[P,S,R]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}));function Y(...e){return X(l(e))}const Z={light:"",dark:".dark"},ee=t.createContext(null);function re(){const e=t.useContext(ee);if(!e)throw new Error("useChart must be used within a <ChartContainer />");return e}const oe=t.forwardRef((({id:o,className:l,children:a,config:s,containerHeight:i,...d},c)=>{const p=t.useId(),u=`chart-${o||p.replace(/:/g,"")}`;return e(ee.Provider,{value:{config:s},children:r("div",{"data-chart":u,ref:c,className:Y("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",l),...d,children:[e(te,{id:u,config:s}),e(n.ResponsiveContainer,{width:"100%",height:i,children:a})]})})}));oe.displayName="Chart";const te=({id:r,config:o})=>{const t=Object.entries(o).filter((([,e])=>e.theme||e.color));return t.length?e("style",{dangerouslySetInnerHTML:{__html:Object.entries(Z).map((([e,o])=>`\n${o} [data-chart=${r}] {\n${t.map((([r,o])=>{const t=o.theme?.[e]||o.color;return t?` --color-${r}: ${t};`:null})).join("\n")}\n}\n`)).join("\n")}}):null},ne=n.Tooltip,le=t.forwardRef((({active:n,payload:l,className:a,indicator:s="dot",hideLabel:i=!1,hideIndicator:d=!1,tooltipVariant:c="default",label:p,labelFormatter:u,labelClassName:b,formatter:m,color:f,nameKey:g,labelKey:h},x)=>{const{config:v}=re(),y=t.useMemo((()=>{if(i||!l?.length)return null;const[r]=l,o=`${h||r.dataKey||r.name||"value"}`,t=ie(v,r,o),n=h||"string"!=typeof p?t?.label:v[p]?.label||p;return u?e("div",{className:Y("font-medium",b),children:u(n,l)}):n?e("div",{className:Y("font-medium",b),children:n}):null}),[p,u,l,i,b,v,h]);if(!n||!l?.length)return null;const w=1===l.length&&"dot"!==s;return r("div",{ref:x,className:Y("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 font-inter text-sm shadow-xl","area-chart"===c&&"px-5 py-3",a),children:[w?null:y,e("div",{className:Y("grid gap-2","area-chart"===c&&"mt-3"),children:l.map(((t,n)=>{const l=`${g||t.name||t.dataKey||"value"}`,a=ie(v,t,l),i=f||t.payload.fill||t.color;return e("div",{className:Y("flex w-full flex-wrap items-start gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground"),children:m&&void 0!==t?.value&&t.name?m(t.value,t.name,t,n,t.payload):r(o,{children:[a?.icon?e(a.icon,{}):!d&&e("div",{className:Y("mt-[2px] shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":"dot"===s,"w-1":"line"===s,"w-0 border-[1.5px] border-dashed bg-transparent":"dashed"===s,"my-0.5":w&&"dashed"===s}),style:{"--color-bg":i,"--color-border":i}}),"area-chart"===c&&r("div",{className:Y("flex flex-1 flex-col items-start gap-1 leading-none"),children:[r("div",{className:"grid gap-1.5",children:[w?y:null,e("span",{className:"text-muted-foreground",children:a?.label||t.name})]}),t.value&&e("span",{className:"text-lg font-semibold tabular-nums text-foreground",children:t.value.toLocaleString()})]}),"default"===c&&r("div",{className:Y("flex flex-1 justify-between gap-3 leading-none",w?"items-end":"items-center"),children:[r("div",{className:"grid gap-1.5",children:[w?y:null,e("span",{className:"text-muted-foreground",children:a?.label||t.name})]}),t.value&&e("span",{className:"font-medium tabular-nums text-foreground",children:t.value.toLocaleString()})]})]})},t.dataKey)}))})]})}));le.displayName="ChartTooltip";const ae=n.Legend,se=t.forwardRef((({className:o,hideIcon:t=!1,payload:n,verticalAlign:l="bottom",nameKey:a},s)=>{const{config:i}=re();return n?.length?e("div",{ref:s,className:Y("flex flex-wrap items-center justify-center gap-x-4 gap-y-2","top"===l?"pb-3":"pt-3",o),children:n.map((o=>{const n=`${a||o.dataKey||"value"}`,l=ie(i,o,n);return r("div",{className:Y("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),children:[l?.icon&&!t?e(l.icon,{}):e("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:o.color}}),l?.label]},o.value)}))}):null}));function ie(e,r,o){if("object"!=typeof r||null===r)return;const t="payload"in r&&"object"==typeof r.payload&&null!==r.payload?r.payload:void 0;let n=o;return o in r&&"string"==typeof r[o]?n=r[o]:t&&o in t&&"string"==typeof t[o]&&(n=t[o]),n in e?e[n]:e[o]}se.displayName="ChartLegend";export{oe as ChartContainer,ae as ChartLegend,se as ChartLegendContent,te as ChartStyle,ne as ChartTooltip,le as ChartTooltipContent};
2
+ import{jsx as e,jsxs as r,Fragment as o}from"react/jsx-runtime";import*as t from"react";import*as a from"recharts";import{clsx as n}from"clsx";const s=e=>{const r=d(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:t}=e;return{getClassGroupId:e=>{const o=e.split("-");return""===o[0]&&1!==o.length&&o.shift(),l(o,r)||c(e)},getConflictingClassGroupIds:(e,r)=>{const a=o[e]||[];return r&&t[e]?[...a,...t[e]]:a}}},l=(e,r)=>{if(0===e.length)return r.classGroupId;const o=e[0],t=r.nextPart.get(o),a=t?l(e.slice(1),t):void 0;if(a)return a;if(0===r.validators.length)return;const n=e.join("-");return r.validators.find(({validator:e})=>e(n))?.classGroupId},i=/^\[(.+)\]$/,c=e=>{if(i.test(e)){const r=i.exec(e)[1],o=r?.substring(0,r.indexOf(":"));if(o)return"arbitrary.."+o}},d=e=>{const{theme:r,classGroups:o}=e,t={nextPart:new Map,validators:[]};for(const e in o)m(o[e],t,e,r);return t},m=(e,r,o,t)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?r:p(r,e)).classGroupId=o)}if("function"==typeof e)return u(e)?void m(e(t),r,o,t):void r.validators.push({validator:e,classGroupId:o});Object.entries(e).forEach(([e,a])=>{m(a,p(r,e),o,t)})})},p=(e,r)=>{let o=e;return r.split("-").forEach(e=>{o.nextPart.has(e)||o.nextPart.set(e,{nextPart:new Map,validators:[]}),o=o.nextPart.get(e)}),o},u=e=>e.isThemeGetter,f=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,o=new Map,t=new Map;const a=(a,n)=>{o.set(a,n),r++,r>e&&(r=0,t=o,o=new Map)};return{get(e){let r=o.get(e);return void 0!==r?r:void 0!==(r=t.get(e))?(a(e,r),r):void 0},set(e,r){o.has(e)?o.set(e,r):a(e,r)}}},b=e=>{const{prefix:r,experimentalParseClassName:o}=e;let t=e=>{const r=[];let o,t=0,a=0,n=0;for(let s=0;s<e.length;s++){let l=e[s];if(0===t&&0===a){if(":"===l){r.push(e.slice(n,s)),n=s+1;continue}if("/"===l){o=s;continue}}"["===l?t++:"]"===l?t--:"("===l?a++:")"===l&&a--}const s=0===r.length?e:e.substring(n),l=g(s);return{modifiers:r,hasImportantModifier:l!==s,baseClassName:l,maybePostfixModifierPosition:o&&o>n?o-n:void 0}};if(r){const e=r+":",o=t;t=r=>r.startsWith(e)?o(r.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:r,maybePostfixModifierPosition:void 0}}if(o){const e=t;t=r=>o({className:r,parseClassName:e})}return t},g=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,h=e=>{const r=Object.fromEntries(e.orderSensitiveModifiers.map(e=>[e,!0]));return e=>{if(e.length<=1)return e;const o=[];let t=[];return e.forEach(e=>{"["===e[0]||r[e]?(o.push(...t.sort(),e),t=[]):t.push(e)}),o.push(...t.sort()),o}},x=/\s+/;function k(){let e,r,o=0,t="";for(;o<arguments.length;)(e=arguments[o++])&&(r=w(e))&&(t&&(t+=" "),t+=r);return t}const w=e=>{if("string"==typeof e)return e;let r,o="";for(let t=0;t<e.length;t++)e[t]&&(r=w(e[t]))&&(o&&(o+=" "),o+=r);return o};function v(e,...r){let o,t,a,n=function(i){const c=r.reduce((e,r)=>r(e),e());return o=(e=>({cache:f(e.cacheSize),parseClassName:b(e),sortModifiers:h(e),...s(e)}))(c),t=o.cache.get,a=o.cache.set,n=l,l(i)};function l(e){const r=t(e);if(r)return r;const n=((e,r)=>{const{parseClassName:o,getClassGroupId:t,getConflictingClassGroupIds:a,sortModifiers:n}=r,s=[],l=e.trim().split(x);let i="";for(let e=l.length-1;e>=0;e-=1){const r=l[e],{isExternal:c,modifiers:d,hasImportantModifier:m,baseClassName:p,maybePostfixModifierPosition:u}=o(r);if(c){i=r+(i.length>0?" "+i:i);continue}let f=!!u,b=t(f?p.substring(0,u):p);if(!b){if(!f){i=r+(i.length>0?" "+i:i);continue}if(b=t(p),!b){i=r+(i.length>0?" "+i:i);continue}f=!1}const g=n(d).join(":"),h=m?g+"!":g,x=h+b;if(s.includes(x))continue;s.push(x);const k=a(b,f);for(let e=0;e<k.length;++e){const r=k[e];s.push(h+r)}i=r+(i.length>0?" "+i:i)}return i})(e,o);return a(e,n),n}return function(){return n(k.apply(null,arguments))}}const y=e=>{const r=r=>r[e]||[];return r.isThemeGetter=!0,r},z=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,N=/^\((?:(\w[\w-]*):)?(.+)\)$/i,j=/^\d+\/\d+$/,C=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,_=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,M=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,$=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,G=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,I=e=>j.test(e),P=e=>!!e&&!Number.isNaN(Number(e)),E=e=>!!e&&Number.isInteger(Number(e)),K=e=>e.endsWith("%")&&P(e.slice(0,-1)),S=e=>C.test(e),O=()=>!0,L=e=>_.test(e)&&!M.test(e),T=()=>!1,W=e=>$.test(e),q=e=>G.test(e),A=e=>!H(e)&&!U(e),F=e=>oe(e,se,T),H=e=>z.test(e),R=e=>oe(e,le,L),B=e=>oe(e,ie,P),D=e=>oe(e,ae,T),J=e=>oe(e,ne,q),Q=e=>oe(e,de,W),U=e=>N.test(e),V=e=>te(e,le),X=e=>te(e,ce),Y=e=>te(e,ae),Z=e=>te(e,se),ee=e=>te(e,ne),re=e=>te(e,de,!0),oe=(e,r,o)=>{const t=z.exec(e);return!!t&&(t[1]?r(t[1]):o(t[2]))},te=(e,r,o=!1)=>{const t=N.exec(e);return!!t&&(t[1]?r(t[1]):o)},ae=e=>"position"===e||"percentage"===e,ne=e=>"image"===e||"url"===e,se=e=>"length"===e||"size"===e||"bg-size"===e,le=e=>"length"===e,ie=e=>"number"===e,ce=e=>"family-name"===e,de=e=>"shadow"===e,me=v(()=>{const e=y("color"),r=y("font"),o=y("text"),t=y("font-weight"),a=y("tracking"),n=y("leading"),s=y("breakpoint"),l=y("container"),i=y("spacing"),c=y("radius"),d=y("shadow"),m=y("inset-shadow"),p=y("text-shadow"),u=y("drop-shadow"),f=y("blur"),b=y("perspective"),g=y("aspect"),h=y("ease"),x=y("animate"),k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",U,H],w=()=>[U,H,i],v=()=>[I,"full","auto",...w()],z=()=>[E,"none","subgrid",U,H],N=()=>["auto",{span:["full",E,U,H]},E,U,H],j=()=>[E,"auto",U,H],C=()=>["auto","min","max","fr",U,H],_=()=>["auto",...w()],M=()=>[I,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...w()],$=()=>[e,U,H],G=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Y,D,{position:[U,H]}],L=()=>["auto","cover","contain",Z,F,{size:[U,H]}],T=()=>[K,V,R],W=()=>["","none","full",c,U,H],q=()=>["",P,V,R],oe=()=>[P,K,Y,D],te=()=>["","none",f,U,H],ae=()=>["none",P,U,H],ne=()=>["none",P,U,H],se=()=>[P,U,H],le=()=>[I,"full",...w()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[S],breakpoint:[S],color:[O],container:[S],"drop-shadow":[S],ease:["in","out","in-out"],font:[A],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[S],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[S],shadow:[S],spacing:["px",P],text:[S],"text-shadow":[S],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",I,H,U,g]}],container:["container"],columns:[{columns:[P,H,U,l]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:k()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:v()}],"inset-x":[{"inset-x":v()}],"inset-y":[{"inset-y":v()}],start:[{start:v()}],end:[{end:v()}],top:[{top:v()}],right:[{right:v()}],bottom:[{bottom:v()}],left:[{left:v()}],visibility:["visible","invisible","collapse"],z:[{z:[E,"auto",U,H]}],basis:[{basis:[I,"full","auto",l,...w()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[P,I,"auto","initial","none",H]}],grow:[{grow:["",P,U,H]}],shrink:[{shrink:["",P,U,H]}],order:[{order:[E,"first","last","none",U,H]}],"grid-cols":[{"grid-cols":z()}],"col-start-end":[{col:N()}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":z()}],"row-start-end":[{row:N()}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":C()}],"auto-rows":[{"auto-rows":C()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:_()}],mx:[{mx:_()}],my:[{my:_()}],ms:[{ms:_()}],me:[{me:_()}],mt:[{mt:_()}],mr:[{mr:_()}],mb:[{mb:_()}],ml:[{ml:_()}],"space-x":[{"space-x":w()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":w()}],"space-y-reverse":["space-y-reverse"],size:[{size:M()}],w:[{w:[l,"screen",...M()]}],"min-w":[{"min-w":[l,"screen","none",...M()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[s]},...M()]}],h:[{h:["screen","lh",...M()]}],"min-h":[{"min-h":["screen","lh","none",...M()]}],"max-h":[{"max-h":["screen","lh",...M()]}],"font-size":[{text:["base",o,V,R]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[t,U,B]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",K,H]}],"font-family":[{font:[X,H,r]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,U,H]}],"line-clamp":[{"line-clamp":[P,"none",U,B]}],leading:[{leading:[n,...w()]}],"list-image":[{"list-image":["none",U,H]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",U,H]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:$()}],"text-color":[{text:$()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[P,"from-font","auto",U,R]}],"text-decoration-color":[{decoration:$()}],"underline-offset":[{"underline-offset":[P,"auto",U,H]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",U,H]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",U,H]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:G()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:L()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},E,U,H],radial:["",U,H],conic:[E,U,H]},ee,J]}],"bg-color":[{bg:$()}],"gradient-from-pos":[{from:T()}],"gradient-via-pos":[{via:T()}],"gradient-to-pos":[{to:T()}],"gradient-from":[{from:$()}],"gradient-via":[{via:$()}],"gradient-to":[{to:$()}],rounded:[{rounded:W()}],"rounded-s":[{"rounded-s":W()}],"rounded-e":[{"rounded-e":W()}],"rounded-t":[{"rounded-t":W()}],"rounded-r":[{"rounded-r":W()}],"rounded-b":[{"rounded-b":W()}],"rounded-l":[{"rounded-l":W()}],"rounded-ss":[{"rounded-ss":W()}],"rounded-se":[{"rounded-se":W()}],"rounded-ee":[{"rounded-ee":W()}],"rounded-es":[{"rounded-es":W()}],"rounded-tl":[{"rounded-tl":W()}],"rounded-tr":[{"rounded-tr":W()}],"rounded-br":[{"rounded-br":W()}],"rounded-bl":[{"rounded-bl":W()}],"border-w":[{border:q()}],"border-w-x":[{"border-x":q()}],"border-w-y":[{"border-y":q()}],"border-w-s":[{"border-s":q()}],"border-w-e":[{"border-e":q()}],"border-w-t":[{"border-t":q()}],"border-w-r":[{"border-r":q()}],"border-w-b":[{"border-b":q()}],"border-w-l":[{"border-l":q()}],"divide-x":[{"divide-x":q()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":q()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:$()}],"border-color-x":[{"border-x":$()}],"border-color-y":[{"border-y":$()}],"border-color-s":[{"border-s":$()}],"border-color-e":[{"border-e":$()}],"border-color-t":[{"border-t":$()}],"border-color-r":[{"border-r":$()}],"border-color-b":[{"border-b":$()}],"border-color-l":[{"border-l":$()}],"divide-color":[{divide:$()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[P,U,H]}],"outline-w":[{outline:["",P,V,R]}],"outline-color":[{outline:$()}],shadow:[{shadow:["","none",d,re,Q]}],"shadow-color":[{shadow:$()}],"inset-shadow":[{"inset-shadow":["none",m,re,Q]}],"inset-shadow-color":[{"inset-shadow":$()}],"ring-w":[{ring:q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:$()}],"ring-offset-w":[{"ring-offset":[P,R]}],"ring-offset-color":[{"ring-offset":$()}],"inset-ring-w":[{"inset-ring":q()}],"inset-ring-color":[{"inset-ring":$()}],"text-shadow":[{"text-shadow":["none",p,re,Q]}],"text-shadow-color":[{"text-shadow":$()}],opacity:[{opacity:[P,U,H]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[P]}],"mask-image-linear-from-pos":[{"mask-linear-from":oe()}],"mask-image-linear-to-pos":[{"mask-linear-to":oe()}],"mask-image-linear-from-color":[{"mask-linear-from":$()}],"mask-image-linear-to-color":[{"mask-linear-to":$()}],"mask-image-t-from-pos":[{"mask-t-from":oe()}],"mask-image-t-to-pos":[{"mask-t-to":oe()}],"mask-image-t-from-color":[{"mask-t-from":$()}],"mask-image-t-to-color":[{"mask-t-to":$()}],"mask-image-r-from-pos":[{"mask-r-from":oe()}],"mask-image-r-to-pos":[{"mask-r-to":oe()}],"mask-image-r-from-color":[{"mask-r-from":$()}],"mask-image-r-to-color":[{"mask-r-to":$()}],"mask-image-b-from-pos":[{"mask-b-from":oe()}],"mask-image-b-to-pos":[{"mask-b-to":oe()}],"mask-image-b-from-color":[{"mask-b-from":$()}],"mask-image-b-to-color":[{"mask-b-to":$()}],"mask-image-l-from-pos":[{"mask-l-from":oe()}],"mask-image-l-to-pos":[{"mask-l-to":oe()}],"mask-image-l-from-color":[{"mask-l-from":$()}],"mask-image-l-to-color":[{"mask-l-to":$()}],"mask-image-x-from-pos":[{"mask-x-from":oe()}],"mask-image-x-to-pos":[{"mask-x-to":oe()}],"mask-image-x-from-color":[{"mask-x-from":$()}],"mask-image-x-to-color":[{"mask-x-to":$()}],"mask-image-y-from-pos":[{"mask-y-from":oe()}],"mask-image-y-to-pos":[{"mask-y-to":oe()}],"mask-image-y-from-color":[{"mask-y-from":$()}],"mask-image-y-to-color":[{"mask-y-to":$()}],"mask-image-radial":[{"mask-radial":[U,H]}],"mask-image-radial-from-pos":[{"mask-radial-from":oe()}],"mask-image-radial-to-pos":[{"mask-radial-to":oe()}],"mask-image-radial-from-color":[{"mask-radial-from":$()}],"mask-image-radial-to-color":[{"mask-radial-to":$()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[P]}],"mask-image-conic-from-pos":[{"mask-conic-from":oe()}],"mask-image-conic-to-pos":[{"mask-conic-to":oe()}],"mask-image-conic-from-color":[{"mask-conic-from":$()}],"mask-image-conic-to-color":[{"mask-conic-to":$()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:G()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:L()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",U,H]}],filter:[{filter:["","none",U,H]}],blur:[{blur:te()}],brightness:[{brightness:[P,U,H]}],contrast:[{contrast:[P,U,H]}],"drop-shadow":[{"drop-shadow":["","none",u,re,Q]}],"drop-shadow-color":[{"drop-shadow":$()}],grayscale:[{grayscale:["",P,U,H]}],"hue-rotate":[{"hue-rotate":[P,U,H]}],invert:[{invert:["",P,U,H]}],saturate:[{saturate:[P,U,H]}],sepia:[{sepia:["",P,U,H]}],"backdrop-filter":[{"backdrop-filter":["","none",U,H]}],"backdrop-blur":[{"backdrop-blur":te()}],"backdrop-brightness":[{"backdrop-brightness":[P,U,H]}],"backdrop-contrast":[{"backdrop-contrast":[P,U,H]}],"backdrop-grayscale":[{"backdrop-grayscale":["",P,U,H]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[P,U,H]}],"backdrop-invert":[{"backdrop-invert":["",P,U,H]}],"backdrop-opacity":[{"backdrop-opacity":[P,U,H]}],"backdrop-saturate":[{"backdrop-saturate":[P,U,H]}],"backdrop-sepia":[{"backdrop-sepia":["",P,U,H]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",U,H]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[P,"initial",U,H]}],ease:[{ease:["linear","initial",h,U,H]}],delay:[{delay:[P,U,H]}],animate:[{animate:["none",x,U,H]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,U,H]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:ae()}],"rotate-x":[{"rotate-x":ae()}],"rotate-y":[{"rotate-y":ae()}],"rotate-z":[{"rotate-z":ae()}],scale:[{scale:ne()}],"scale-x":[{"scale-x":ne()}],"scale-y":[{"scale-y":ne()}],"scale-z":[{"scale-z":ne()}],"scale-3d":["scale-3d"],skew:[{skew:se()}],"skew-x":[{"skew-x":se()}],"skew-y":[{"skew-y":se()}],transform:[{transform:[U,H,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:le()}],"translate-x":[{"translate-x":le()}],"translate-y":[{"translate-y":le()}],"translate-z":[{"translate-z":le()}],"translate-none":["translate-none"],accent:[{accent:$()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:$()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",U,H]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",U,H]}],fill:[{fill:["none",...$()]}],"stroke-w":[{stroke:[P,V,R,B]}],stroke:[{stroke:["none",...$()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function pe(...e){return me(n(e))}const ue={light:"",dark:".dark"},fe=t.createContext(null);function be(){const e=t.useContext(fe);if(!e)throw new Error("useChart must be used within a <ChartContainer />");return e}function ge({id:o,className:n,children:s,config:l,...i}){const c=t.useId(),d=`chart-${o||c.replace(/:/g,"")}`;return e(fe.Provider,{value:{config:l},children:r("div",{"data-slot":"chart","data-chart":d,className:pe("[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border flex aspect-video justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden",n),...i,children:[e(he,{id:d,config:l}),e(a.ResponsiveContainer,{children:s})]})})}const he=({id:r,config:o})=>{const t=Object.entries(o).filter(([,e])=>e.theme||e.color);return t.length?e("style",{dangerouslySetInnerHTML:{__html:Object.entries(ue).map(([e,o])=>`\n${o} [data-chart=${r}] {\n${t.map(([r,o])=>{const t=o.theme?.[e]||o.color;return t?` --color-${r}: ${t};`:null}).join("\n")}\n}\n`).join("\n")}}):null},xe=a.Tooltip;function ke({active:a,payload:n,className:s,indicator:l="dot",hideLabel:i=!1,hideIndicator:c=!1,label:d,labelFormatter:m,labelClassName:p,formatter:u,color:f,nameKey:b,labelKey:g}){const{config:h}=be(),x=t.useMemo(()=>{if(i||!n?.length)return null;const[r]=n,o=ye(h,r,`${g||r?.dataKey||r?.name||"value"}`),t=g||"string"!=typeof d?o?.label:h[d]?.label||d;return m?e("div",{className:pe("font-medium",p),children:m(t,n)}):t?e("div",{className:pe("font-medium",p),children:t}):null},[d,m,n,i,p,h,g]);if(!a||!n?.length)return null;const k=1===n.length&&"dot"!==l;return r("div",{className:pe("border-border/50 bg-background grid min-w-[8rem] items-start gap-1.5 rounded-lg border px-2.5 py-1.5 text-xs shadow-xl",s),children:[k?null:x,e("div",{className:"grid gap-1.5",children:n.map((t,a)=>{const n=`${b||t.name||t.dataKey||"value"}`,s=ye(h,t,n),i=f||t.payload.fill||t.color;return e("div",{className:pe("[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5","dot"===l&&"items-center"),children:u&&void 0!==t?.value&&t.name?u(t.value,t.name,t,a,t.payload):r(o,{children:[s?.icon?e(s.icon,{}):!c&&e("div",{className:pe("shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)",{"h-2.5 w-2.5":"dot"===l,"w-1":"line"===l,"w-0 border-[1.5px] border-dashed bg-transparent":"dashed"===l,"my-0.5":k&&"dashed"===l}),style:{"--color-bg":i,"--color-border":i}}),r("div",{className:pe("flex flex-1 justify-between leading-none",k?"items-end":"items-center"),children:[r("div",{className:"grid gap-1.5",children:[k?x:null,e("span",{className:"text-muted-foreground",children:s?.label||t.name})]}),t.value&&e("span",{className:"text-foreground font-mono font-medium tabular-nums",children:t.value.toLocaleString()})]})]})},t.dataKey)})})]})}const we=a.Legend;function ve({className:o,hideIcon:t=!1,payload:a,verticalAlign:n="bottom",nameKey:s}){const{config:l}=be();return a?.length?e("div",{className:pe("flex items-center justify-center gap-4","top"===n?"pb-3":"pt-3",o),children:a.map(o=>{const a=`${s||o.dataKey||"value"}`,n=ye(l,o,a);return r("div",{className:pe("[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3"),children:[n?.icon&&!t?e(n.icon,{}):e("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:o.color}}),n?.label]},o.value)})}):null}function ye(e,r,o){if("object"!=typeof r||null===r)return;const t="payload"in r&&"object"==typeof r.payload&&null!==r.payload?r.payload:void 0;let a=o;return o in r&&"string"==typeof r[o]?a=r[o]:t&&o in t&&"string"==typeof t[o]&&(a=t[o]),a in e?e[a]:e[o]}export{ge as ChartContainer,we as ChartLegend,ve as ChartLegendContent,he as ChartStyle,xe as ChartTooltip,ke as ChartTooltipContent};
3
3
  //# sourceMappingURL=chart.js.map