@financedistrict/apps-ui 0.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/LICENSE +19 -0
- package/README.md +119 -0
- package/dist/Radio-BYWz1n7p.d.cts +32 -0
- package/dist/Radio-BYWz1n7p.d.ts +32 -0
- package/dist/SelectTrigger-By0iPBI3.d.cts +78 -0
- package/dist/SelectTrigger-By0iPBI3.d.ts +78 -0
- package/dist/accordion.cjs +322 -0
- package/dist/accordion.d.cts +156 -0
- package/dist/accordion.d.ts +156 -0
- package/dist/accordion.js +2 -0
- package/dist/apps-ui.umd.js +1 -0
- package/dist/button.cjs +366 -0
- package/dist/button.d.cts +52 -0
- package/dist/button.d.ts +52 -0
- package/dist/button.js +3 -0
- package/dist/checkbox.cjs +74 -0
- package/dist/checkbox.d.cts +63 -0
- package/dist/checkbox.d.ts +63 -0
- package/dist/checkbox.js +2 -0
- package/dist/chunk-3RU7JMFE.js +27 -0
- package/dist/chunk-5TWRK4NW.js +783 -0
- package/dist/chunk-7EOSDFS3.js +9 -0
- package/dist/chunk-AIQ4UOGK.js +142 -0
- package/dist/chunk-B3MMGTPV.js +200 -0
- package/dist/chunk-DAHQYLUI.js +146 -0
- package/dist/chunk-DGBXADSS.js +1 -0
- package/dist/chunk-E6KPNTWW.js +295 -0
- package/dist/chunk-EOAB6G2D.js +149 -0
- package/dist/chunk-FAOVKDVM.js +32 -0
- package/dist/chunk-FV76Z4Z2.js +78 -0
- package/dist/chunk-GLTLBUZ7.js +285 -0
- package/dist/chunk-GTZFV43T.js +154 -0
- package/dist/chunk-HRGZNL4A.js +88 -0
- package/dist/chunk-IEVN3J2F.js +98 -0
- package/dist/chunk-IRS3T6LF.js +352 -0
- package/dist/chunk-IYYHCQXG.js +146 -0
- package/dist/chunk-JIXW3455.js +89 -0
- package/dist/chunk-N4VAP2GB.js +77 -0
- package/dist/chunk-SJ2ZRYVV.js +167 -0
- package/dist/chunk-SNU4YXOR.js +66 -0
- package/dist/chunk-TT6JQATV.js +99 -0
- package/dist/chunk-UPQ3ZPCO.js +66 -0
- package/dist/chunk-UVUSVFOH.js +264 -0
- package/dist/chunk-WJFPGGJB.js +255 -0
- package/dist/chunk-WXEBQA7A.js +371 -0
- package/dist/chunk-Y2O4YYZQ.js +184 -0
- package/dist/cut-corner.cjs +111 -0
- package/dist/cut-corner.d.cts +49 -0
- package/dist/cut-corner.d.ts +49 -0
- package/dist/cut-corner.js +1 -0
- package/dist/dialog.cjs +441 -0
- package/dist/dialog.d.cts +240 -0
- package/dist/dialog.d.ts +240 -0
- package/dist/dialog.js +3 -0
- package/dist/feature-card.cjs +182 -0
- package/dist/feature-card.d.cts +54 -0
- package/dist/feature-card.d.ts +54 -0
- package/dist/feature-card.js +2 -0
- package/dist/filter.cjs +873 -0
- package/dist/filter.d.cts +129 -0
- package/dist/filter.d.ts +129 -0
- package/dist/filter.js +6 -0
- package/dist/index.cjs +4583 -0
- package/dist/index.d.cts +29 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.js +27 -0
- package/dist/inline-select.cjs +856 -0
- package/dist/inline-select.d.cts +92 -0
- package/dist/inline-select.d.ts +92 -0
- package/dist/inline-select.js +6 -0
- package/dist/input.cjs +263 -0
- package/dist/input.d.cts +157 -0
- package/dist/input.d.ts +157 -0
- package/dist/input.js +4 -0
- package/dist/panel.cjs +185 -0
- package/dist/panel.d.cts +103 -0
- package/dist/panel.d.ts +103 -0
- package/dist/panel.js +2 -0
- package/dist/property-grid.cjs +110 -0
- package/dist/property-grid.d.cts +56 -0
- package/dist/property-grid.d.ts +56 -0
- package/dist/property-grid.js +2 -0
- package/dist/radio.cjs +74 -0
- package/dist/radio.d.cts +39 -0
- package/dist/radio.d.ts +39 -0
- package/dist/radio.js +2 -0
- package/dist/scrollbar.cjs +34 -0
- package/dist/scrollbar.d.cts +35 -0
- package/dist/scrollbar.d.ts +35 -0
- package/dist/scrollbar.js +1 -0
- package/dist/search-bar.cjs +408 -0
- package/dist/search-bar.d.cts +42 -0
- package/dist/search-bar.d.ts +42 -0
- package/dist/search-bar.js +4 -0
- package/dist/select.cjs +998 -0
- package/dist/select.d.cts +357 -0
- package/dist/select.d.ts +357 -0
- package/dist/select.js +5 -0
- package/dist/selectable-feature-card.cjs +159 -0
- package/dist/selectable-feature-card.d.cts +74 -0
- package/dist/selectable-feature-card.d.ts +74 -0
- package/dist/selectable-feature-card.js +3 -0
- package/dist/sidebar-item.cjs +175 -0
- package/dist/sidebar-item.d.cts +75 -0
- package/dist/sidebar-item.d.ts +75 -0
- package/dist/sidebar-item.js +2 -0
- package/dist/switch.cjs +86 -0
- package/dist/switch.d.cts +72 -0
- package/dist/switch.d.ts +72 -0
- package/dist/switch.js +2 -0
- package/dist/table-cell.cjs +196 -0
- package/dist/table-cell.d.cts +76 -0
- package/dist/table-cell.d.ts +76 -0
- package/dist/table-cell.js +2 -0
- package/dist/table-title.cjs +34 -0
- package/dist/table-title.d.cts +16 -0
- package/dist/table-title.d.ts +16 -0
- package/dist/table-title.js +2 -0
- package/dist/tabs.cjs +299 -0
- package/dist/tabs.d.cts +116 -0
- package/dist/tabs.d.ts +116 -0
- package/dist/tabs.js +2 -0
- package/dist/toast.cjs +87 -0
- package/dist/toast.d.cts +48 -0
- package/dist/toast.d.ts +48 -0
- package/dist/toast.js +2 -0
- package/dist/token-input.cjs +415 -0
- package/dist/token-input.d.cts +90 -0
- package/dist/token-input.d.ts +90 -0
- package/dist/token-input.js +3 -0
- package/dist/tooltip.cjs +384 -0
- package/dist/tooltip.d.cts +142 -0
- package/dist/tooltip.d.ts +142 -0
- package/dist/tooltip.js +2 -0
- package/package.json +200 -0
- package/src/fonts.css +33 -0
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
|
+
|
|
4
|
+
/** Open model in `single` mode: the open item's value, or `null` for none. */
|
|
5
|
+
type AccordionSingleValue = string | null;
|
|
6
|
+
/** Open model in `multiple` mode: the set of open item values. */
|
|
7
|
+
type AccordionMultipleValue = string[];
|
|
8
|
+
/** The open model — a `string | null` in `single`, a `string[]` in `multiple`. */
|
|
9
|
+
type AccordionValue = AccordionSingleValue | AccordionMultipleValue;
|
|
10
|
+
interface AccordionRootProps extends Omit<React.ComponentProps<"div">, "defaultValue"> {
|
|
11
|
+
/**
|
|
12
|
+
* Selection mode. `single` = at most one item open (opening one closes the
|
|
13
|
+
* previously open item); `multiple` = each item toggles independently.
|
|
14
|
+
* Default `"single"`.
|
|
15
|
+
*/
|
|
16
|
+
type?: "single" | "multiple";
|
|
17
|
+
/**
|
|
18
|
+
* Controlled open model. `string | null` in `single` mode; `string[]` in
|
|
19
|
+
* `multiple`. When provided, the component is controlled — pair with
|
|
20
|
+
* `onValueChange`.
|
|
21
|
+
*/
|
|
22
|
+
value?: AccordionValue;
|
|
23
|
+
/**
|
|
24
|
+
* Uncontrolled initial open model (same shape rule as `value`). Ignored when
|
|
25
|
+
* `value` is provided. Defaults to `null` (single) / `[]` (multiple).
|
|
26
|
+
*/
|
|
27
|
+
defaultValue?: AccordionValue;
|
|
28
|
+
/** Called with the next open model whenever an item toggles. */
|
|
29
|
+
onValueChange?: (value: AccordionValue) => void;
|
|
30
|
+
/**
|
|
31
|
+
* `single` mode only: when `true` (default) the open item can be re-triggered
|
|
32
|
+
* to close, leaving nothing open. Ignored in `multiple` mode (always
|
|
33
|
+
* collapsible).
|
|
34
|
+
*/
|
|
35
|
+
collapsible?: boolean;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* State owner + context provider for the compound `Accordion`. Renders a plain
|
|
39
|
+
* `<div>` (no landmark role — an accordion is not itself a landmark). Owns the
|
|
40
|
+
* open-item model (controlled via `value`/`onValueChange`, or uncontrolled via
|
|
41
|
+
* `defaultValue`) and the arrow-key roving over its triggers. Forwards `ref` to
|
|
42
|
+
* the container.
|
|
43
|
+
*/
|
|
44
|
+
declare function AccordionRoot({ type, value: valueProp, defaultValue, onValueChange, collapsible, className, children, ref, ...props }: AccordionRootProps): React.JSX.Element;
|
|
45
|
+
interface AccordionItemProps extends React.ComponentProps<"div"> {
|
|
46
|
+
/** Required — identifies the item in the root open model. */
|
|
47
|
+
value: string;
|
|
48
|
+
/** Dims the row and makes the trigger inert. */
|
|
49
|
+
disabled?: boolean;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* One accordion row. Renders a `<div>` with the Figma bottom divider and a
|
|
53
|
+
* `data-state="open" | "closed"` styling hook. Reads the root context for its
|
|
54
|
+
* open flag and publishes the shared trigger/content ids so the ARIA wiring
|
|
55
|
+
* cannot drift. Forwards `ref` to the row element.
|
|
56
|
+
*/
|
|
57
|
+
declare function AccordionItem({ value, disabled, className, children, ref, ...props }: AccordionItemProps): React.JSX.Element;
|
|
58
|
+
interface AccordionTriggerProps extends React.ComponentProps<"button"> {
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* The interactive header — a native `<button type="button">` (no heading
|
|
62
|
+
* wrapper; the flat Figma structure and `aria-expanded` carry the semantics).
|
|
63
|
+
* Children are the title text; the Plus/Minus icon is appended by the component.
|
|
64
|
+
* `aria-expanded`/`aria-controls`/`id` wire it to its content, and it registers
|
|
65
|
+
* with the root for arrow-key roving. Composes the consumer's `onClick` (the
|
|
66
|
+
* toggle runs unless the handler calls `preventDefault`). Forwards `ref` to the
|
|
67
|
+
* button.
|
|
68
|
+
*/
|
|
69
|
+
declare function AccordionTrigger({ className, children, onClick, onKeyDown, ref, ...props }: AccordionTriggerProps): React.JSX.Element;
|
|
70
|
+
interface AccordionContentProps extends React.ComponentProps<"div"> {
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* The collapsible region — a `<div role="region">` labelled by its trigger.
|
|
74
|
+
* Show/hide is **instant**: when the item is closed it is not rendered at all,
|
|
75
|
+
* so its content leaves the a11y tree and tab order. Default text is `body-03`
|
|
76
|
+
* muted; the slot accepts arbitrary children. Forwards `ref` to the region.
|
|
77
|
+
*/
|
|
78
|
+
declare function AccordionContent({ className, children, ref, ...props }: AccordionContentProps): React.JSX.Element | null;
|
|
79
|
+
/**
|
|
80
|
+
* Compound accordion — a vertically stacked set of collapsible sections.
|
|
81
|
+
* Assemble from its namespaced parts:
|
|
82
|
+
*
|
|
83
|
+
* ```tsx
|
|
84
|
+
* <Accordion.Root type="single" defaultValue="a">
|
|
85
|
+
* <Accordion.Item value="a">
|
|
86
|
+
* <Accordion.Trigger>Title</Accordion.Trigger>
|
|
87
|
+
* <Accordion.Content>Description</Accordion.Content>
|
|
88
|
+
* </Accordion.Item>
|
|
89
|
+
* <Accordion.Item value="b">
|
|
90
|
+
* <Accordion.Trigger>Title</Accordion.Trigger>
|
|
91
|
+
* <Accordion.Content>Description</Accordion.Content>
|
|
92
|
+
* </Accordion.Item>
|
|
93
|
+
* </Accordion.Root>
|
|
94
|
+
* ```
|
|
95
|
+
*/
|
|
96
|
+
declare const Accordion: {
|
|
97
|
+
Root: typeof AccordionRoot;
|
|
98
|
+
Item: typeof AccordionItem;
|
|
99
|
+
Trigger: typeof AccordionTrigger;
|
|
100
|
+
Content: typeof AccordionContent;
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Accordion styling — the Figma `Accordion` item (node `4887:150988`), shown in
|
|
105
|
+
* Collapsed / Hover / Expanded. Binds ONLY to the `card-*` semantic token layer
|
|
106
|
+
* (never primitives, never mode plumbing); theme switching is automatic via
|
|
107
|
+
* `.dark`, so no `dark:` variants are needed.
|
|
108
|
+
*
|
|
109
|
+
* Accordion is presentation-neutral (no `variation`/`size` axes). The only style
|
|
110
|
+
* axis is open-vs-closed, which drives the trigger's bottom padding so the
|
|
111
|
+
* Figma spacing holds in both states (see `accordionTriggerVariants`).
|
|
112
|
+
*/
|
|
113
|
+
/** Root container — a plain vertical stack; the card chrome belongs to the consumer. */
|
|
114
|
+
declare const accordionRootVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
115
|
+
/**
|
|
116
|
+
* One item row. `border-b border-card-border` is the Figma divider (present on
|
|
117
|
+
* every item, including the last). `disabled` dims the whole row (matching the
|
|
118
|
+
* `has-[:disabled]:opacity-60` precedent in SelectableFeatureCard).
|
|
119
|
+
*/
|
|
120
|
+
declare const accordionItemVariants: (props?: ({
|
|
121
|
+
disabled?: boolean | null | undefined;
|
|
122
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
123
|
+
/**
|
|
124
|
+
* The trigger button — the full-width clickable header row (`flex gap-4
|
|
125
|
+
* items-start`, `pt-3` = spacing/3). It is a `group` so the trailing icon can
|
|
126
|
+
* darken on row hover (see `accordionTriggerIconVariants`).
|
|
127
|
+
*
|
|
128
|
+
* Bottom padding is the `open` axis, reproducing the Figma spacing exactly:
|
|
129
|
+
* - closed → `pb-3` (12px), so the collapsed row reads as `py-3`.
|
|
130
|
+
* - open → `pb-2` (8px), which becomes the `gap-2` between the title and the
|
|
131
|
+
* description in `Accordion.Content` (the content carries the row's `pb-3`).
|
|
132
|
+
*
|
|
133
|
+
* Focus ring uses the repo TW4 pattern (`outline-solid` is required — see
|
|
134
|
+
* Panel/Select and ADR-0010).
|
|
135
|
+
*/
|
|
136
|
+
declare const accordionTriggerVariants: (props?: ({
|
|
137
|
+
open?: boolean | null | undefined;
|
|
138
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
139
|
+
/** Title slot — `body-02-medium` foreground, takes the row's free width. */
|
|
140
|
+
declare const accordionTriggerTitleVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
141
|
+
/**
|
|
142
|
+
* Trailing 16px icon slot (`aria-hidden` on the element). Muted by default,
|
|
143
|
+
* darkening to foreground on row `:hover` (the Figma "Hover" state — driven by
|
|
144
|
+
* the trigger `group`, done in CSS, not a prop). `shrink-0` keeps it from
|
|
145
|
+
* collapsing.
|
|
146
|
+
*/
|
|
147
|
+
declare const accordionTriggerIconVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
148
|
+
/**
|
|
149
|
+
* The collapsible region. `pb-3` (12px) matches the Figma row's bottom padding;
|
|
150
|
+
* top spacing comes from the trigger's `pb-2` so title→description reads as
|
|
151
|
+
* `gap-2`. Default text style is `body-03` muted (overridable — the slot accepts
|
|
152
|
+
* arbitrary children).
|
|
153
|
+
*/
|
|
154
|
+
declare const accordionContentVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
155
|
+
|
|
156
|
+
export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionMultipleValue, AccordionRoot, type AccordionRootProps, type AccordionSingleValue, AccordionTrigger, type AccordionTriggerProps, type AccordionValue, accordionContentVariants, accordionItemVariants, accordionRootVariants, accordionTriggerIconVariants, accordionTriggerTitleVariants, accordionTriggerVariants };
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
|
+
|
|
4
|
+
/** Open model in `single` mode: the open item's value, or `null` for none. */
|
|
5
|
+
type AccordionSingleValue = string | null;
|
|
6
|
+
/** Open model in `multiple` mode: the set of open item values. */
|
|
7
|
+
type AccordionMultipleValue = string[];
|
|
8
|
+
/** The open model — a `string | null` in `single`, a `string[]` in `multiple`. */
|
|
9
|
+
type AccordionValue = AccordionSingleValue | AccordionMultipleValue;
|
|
10
|
+
interface AccordionRootProps extends Omit<React.ComponentProps<"div">, "defaultValue"> {
|
|
11
|
+
/**
|
|
12
|
+
* Selection mode. `single` = at most one item open (opening one closes the
|
|
13
|
+
* previously open item); `multiple` = each item toggles independently.
|
|
14
|
+
* Default `"single"`.
|
|
15
|
+
*/
|
|
16
|
+
type?: "single" | "multiple";
|
|
17
|
+
/**
|
|
18
|
+
* Controlled open model. `string | null` in `single` mode; `string[]` in
|
|
19
|
+
* `multiple`. When provided, the component is controlled — pair with
|
|
20
|
+
* `onValueChange`.
|
|
21
|
+
*/
|
|
22
|
+
value?: AccordionValue;
|
|
23
|
+
/**
|
|
24
|
+
* Uncontrolled initial open model (same shape rule as `value`). Ignored when
|
|
25
|
+
* `value` is provided. Defaults to `null` (single) / `[]` (multiple).
|
|
26
|
+
*/
|
|
27
|
+
defaultValue?: AccordionValue;
|
|
28
|
+
/** Called with the next open model whenever an item toggles. */
|
|
29
|
+
onValueChange?: (value: AccordionValue) => void;
|
|
30
|
+
/**
|
|
31
|
+
* `single` mode only: when `true` (default) the open item can be re-triggered
|
|
32
|
+
* to close, leaving nothing open. Ignored in `multiple` mode (always
|
|
33
|
+
* collapsible).
|
|
34
|
+
*/
|
|
35
|
+
collapsible?: boolean;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* State owner + context provider for the compound `Accordion`. Renders a plain
|
|
39
|
+
* `<div>` (no landmark role — an accordion is not itself a landmark). Owns the
|
|
40
|
+
* open-item model (controlled via `value`/`onValueChange`, or uncontrolled via
|
|
41
|
+
* `defaultValue`) and the arrow-key roving over its triggers. Forwards `ref` to
|
|
42
|
+
* the container.
|
|
43
|
+
*/
|
|
44
|
+
declare function AccordionRoot({ type, value: valueProp, defaultValue, onValueChange, collapsible, className, children, ref, ...props }: AccordionRootProps): React.JSX.Element;
|
|
45
|
+
interface AccordionItemProps extends React.ComponentProps<"div"> {
|
|
46
|
+
/** Required — identifies the item in the root open model. */
|
|
47
|
+
value: string;
|
|
48
|
+
/** Dims the row and makes the trigger inert. */
|
|
49
|
+
disabled?: boolean;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* One accordion row. Renders a `<div>` with the Figma bottom divider and a
|
|
53
|
+
* `data-state="open" | "closed"` styling hook. Reads the root context for its
|
|
54
|
+
* open flag and publishes the shared trigger/content ids so the ARIA wiring
|
|
55
|
+
* cannot drift. Forwards `ref` to the row element.
|
|
56
|
+
*/
|
|
57
|
+
declare function AccordionItem({ value, disabled, className, children, ref, ...props }: AccordionItemProps): React.JSX.Element;
|
|
58
|
+
interface AccordionTriggerProps extends React.ComponentProps<"button"> {
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* The interactive header — a native `<button type="button">` (no heading
|
|
62
|
+
* wrapper; the flat Figma structure and `aria-expanded` carry the semantics).
|
|
63
|
+
* Children are the title text; the Plus/Minus icon is appended by the component.
|
|
64
|
+
* `aria-expanded`/`aria-controls`/`id` wire it to its content, and it registers
|
|
65
|
+
* with the root for arrow-key roving. Composes the consumer's `onClick` (the
|
|
66
|
+
* toggle runs unless the handler calls `preventDefault`). Forwards `ref` to the
|
|
67
|
+
* button.
|
|
68
|
+
*/
|
|
69
|
+
declare function AccordionTrigger({ className, children, onClick, onKeyDown, ref, ...props }: AccordionTriggerProps): React.JSX.Element;
|
|
70
|
+
interface AccordionContentProps extends React.ComponentProps<"div"> {
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* The collapsible region — a `<div role="region">` labelled by its trigger.
|
|
74
|
+
* Show/hide is **instant**: when the item is closed it is not rendered at all,
|
|
75
|
+
* so its content leaves the a11y tree and tab order. Default text is `body-03`
|
|
76
|
+
* muted; the slot accepts arbitrary children. Forwards `ref` to the region.
|
|
77
|
+
*/
|
|
78
|
+
declare function AccordionContent({ className, children, ref, ...props }: AccordionContentProps): React.JSX.Element | null;
|
|
79
|
+
/**
|
|
80
|
+
* Compound accordion — a vertically stacked set of collapsible sections.
|
|
81
|
+
* Assemble from its namespaced parts:
|
|
82
|
+
*
|
|
83
|
+
* ```tsx
|
|
84
|
+
* <Accordion.Root type="single" defaultValue="a">
|
|
85
|
+
* <Accordion.Item value="a">
|
|
86
|
+
* <Accordion.Trigger>Title</Accordion.Trigger>
|
|
87
|
+
* <Accordion.Content>Description</Accordion.Content>
|
|
88
|
+
* </Accordion.Item>
|
|
89
|
+
* <Accordion.Item value="b">
|
|
90
|
+
* <Accordion.Trigger>Title</Accordion.Trigger>
|
|
91
|
+
* <Accordion.Content>Description</Accordion.Content>
|
|
92
|
+
* </Accordion.Item>
|
|
93
|
+
* </Accordion.Root>
|
|
94
|
+
* ```
|
|
95
|
+
*/
|
|
96
|
+
declare const Accordion: {
|
|
97
|
+
Root: typeof AccordionRoot;
|
|
98
|
+
Item: typeof AccordionItem;
|
|
99
|
+
Trigger: typeof AccordionTrigger;
|
|
100
|
+
Content: typeof AccordionContent;
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Accordion styling — the Figma `Accordion` item (node `4887:150988`), shown in
|
|
105
|
+
* Collapsed / Hover / Expanded. Binds ONLY to the `card-*` semantic token layer
|
|
106
|
+
* (never primitives, never mode plumbing); theme switching is automatic via
|
|
107
|
+
* `.dark`, so no `dark:` variants are needed.
|
|
108
|
+
*
|
|
109
|
+
* Accordion is presentation-neutral (no `variation`/`size` axes). The only style
|
|
110
|
+
* axis is open-vs-closed, which drives the trigger's bottom padding so the
|
|
111
|
+
* Figma spacing holds in both states (see `accordionTriggerVariants`).
|
|
112
|
+
*/
|
|
113
|
+
/** Root container — a plain vertical stack; the card chrome belongs to the consumer. */
|
|
114
|
+
declare const accordionRootVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
115
|
+
/**
|
|
116
|
+
* One item row. `border-b border-card-border` is the Figma divider (present on
|
|
117
|
+
* every item, including the last). `disabled` dims the whole row (matching the
|
|
118
|
+
* `has-[:disabled]:opacity-60` precedent in SelectableFeatureCard).
|
|
119
|
+
*/
|
|
120
|
+
declare const accordionItemVariants: (props?: ({
|
|
121
|
+
disabled?: boolean | null | undefined;
|
|
122
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
123
|
+
/**
|
|
124
|
+
* The trigger button — the full-width clickable header row (`flex gap-4
|
|
125
|
+
* items-start`, `pt-3` = spacing/3). It is a `group` so the trailing icon can
|
|
126
|
+
* darken on row hover (see `accordionTriggerIconVariants`).
|
|
127
|
+
*
|
|
128
|
+
* Bottom padding is the `open` axis, reproducing the Figma spacing exactly:
|
|
129
|
+
* - closed → `pb-3` (12px), so the collapsed row reads as `py-3`.
|
|
130
|
+
* - open → `pb-2` (8px), which becomes the `gap-2` between the title and the
|
|
131
|
+
* description in `Accordion.Content` (the content carries the row's `pb-3`).
|
|
132
|
+
*
|
|
133
|
+
* Focus ring uses the repo TW4 pattern (`outline-solid` is required — see
|
|
134
|
+
* Panel/Select and ADR-0010).
|
|
135
|
+
*/
|
|
136
|
+
declare const accordionTriggerVariants: (props?: ({
|
|
137
|
+
open?: boolean | null | undefined;
|
|
138
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
139
|
+
/** Title slot — `body-02-medium` foreground, takes the row's free width. */
|
|
140
|
+
declare const accordionTriggerTitleVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
141
|
+
/**
|
|
142
|
+
* Trailing 16px icon slot (`aria-hidden` on the element). Muted by default,
|
|
143
|
+
* darkening to foreground on row `:hover` (the Figma "Hover" state — driven by
|
|
144
|
+
* the trigger `group`, done in CSS, not a prop). `shrink-0` keeps it from
|
|
145
|
+
* collapsing.
|
|
146
|
+
*/
|
|
147
|
+
declare const accordionTriggerIconVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
148
|
+
/**
|
|
149
|
+
* The collapsible region. `pb-3` (12px) matches the Figma row's bottom padding;
|
|
150
|
+
* top spacing comes from the trigger's `pb-2` so title→description reads as
|
|
151
|
+
* `gap-2`. Default text style is `body-03` muted (overridable — the slot accepts
|
|
152
|
+
* arbitrary children).
|
|
153
|
+
*/
|
|
154
|
+
declare const accordionContentVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
155
|
+
|
|
156
|
+
export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionMultipleValue, AccordionRoot, type AccordionRootProps, type AccordionSingleValue, AccordionTrigger, type AccordionTriggerProps, type AccordionValue, accordionContentVariants, accordionItemVariants, accordionRootVariants, accordionTriggerIconVariants, accordionTriggerTitleVariants, accordionTriggerVariants };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionRoot, AccordionTrigger, accordionContentVariants, accordionItemVariants, accordionRootVariants, accordionTriggerIconVariants, accordionTriggerTitleVariants, accordionTriggerVariants } from './chunk-GLTLBUZ7.js';
|
|
2
|
+
import './chunk-7EOSDFS3.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(e,t){var n=Object.create,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,c=(e,t)=>{let n={};for(var i in e)r(n,i,{get:e[i],enumerable:!0});return t||r(n,Symbol.toStringTag,{value:`Module`}),n},l=(e,t,n,o)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=a(t),l=0,u=c.length,d;l<u;l++)d=c[l],!s.call(e,d)&&d!==n&&r(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(o=i(t,d))||o.enumerable});return e};e=((e,t,i)=>(i=e==null?{}:n(o(e)),l(t||!e||!e.__esModule?r(i,`default`,{value:e,enumerable:!0}):i,e)))(e,1);var u=new Map([[`bold`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z`}))],[`duotone`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M208,96l-80,80L48,96Z`,opacity:`0.2`}),e.createElement(`path`,{d:`M215.39,92.94A8,8,0,0,0,208,88H48a8,8,0,0,0-5.66,13.66l80,80a8,8,0,0,0,11.32,0l80-80A8,8,0,0,0,215.39,92.94ZM128,164.69,67.31,104H188.69Z`}))],[`fill`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,48,88H208a8,8,0,0,1,5.66,13.66Z`}))],[`light`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z`}))],[`regular`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z`}))],[`thin`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M210.83,98.83l-80,80a4,4,0,0,1-5.66,0l-80-80a4,4,0,0,1,5.66-5.66L128,170.34l77.17-77.17a4,4,0,1,1,5.66,5.66Z`}))]]),d=new Map([[`bold`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z`}))],[`duotone`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M176,128,96,208V48Z`,opacity:`0.2`}),e.createElement(`path`,{d:`M181.66,122.34l-80-80A8,8,0,0,0,88,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,181.66,122.34ZM104,188.69V67.31L164.69,128Z`}))],[`fill`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M181.66,133.66l-80,80A8,8,0,0,1,88,208V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,181.66,133.66Z`}))],[`light`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M180.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L167.51,128,91.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,180.24,132.24Z`}))],[`regular`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z`}))],[`thin`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M178.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L170.34,128,93.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,178.83,130.83Z`}))]]),f=new Map([[`bold`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M216.49,168.49a12,12,0,0,1-17,0L128,97,56.49,168.49a12,12,0,0,1-17-17l80-80a12,12,0,0,1,17,0l80,80A12,12,0,0,1,216.49,168.49Z`}))],[`duotone`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M208,160H48l80-80Z`,opacity:`0.2`}),e.createElement(`path`,{d:`M213.66,154.34l-80-80a8,8,0,0,0-11.32,0l-80,80A8,8,0,0,0,48,168H208a8,8,0,0,0,5.66-13.66ZM67.31,152,128,91.31,188.69,152Z`}))],[`fill`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M215.39,163.06A8,8,0,0,1,208,168H48a8,8,0,0,1-5.66-13.66l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,215.39,163.06Z`}))],[`light`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M212.24,164.24a6,6,0,0,1-8.48,0L128,88.49,52.24,164.24a6,6,0,0,1-8.48-8.48l80-80a6,6,0,0,1,8.48,0l80,80A6,6,0,0,1,212.24,164.24Z`}))],[`regular`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M213.66,165.66a8,8,0,0,1-11.32,0L128,91.31,53.66,165.66a8,8,0,0,1-11.32-11.32l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,213.66,165.66Z`}))],[`thin`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M210.83,162.83a4,4,0,0,1-5.66,0L128,85.66,50.83,162.83a4,4,0,0,1-5.66-5.66l80-80a4,4,0,0,1,5.66,0l80,80A4,4,0,0,1,210.83,162.83Z`}))]]),p=new Map([[`bold`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z`}))],[`duotone`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Z`,opacity:`0.2`}),e.createElement(`path`,{d:`M205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z`}))],[`fill`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z`}))],[`light`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M228.24,76.24l-128,128a6,6,0,0,1-8.48,0l-56-56a6,6,0,0,1,8.48-8.48L96,191.51,219.76,67.76a6,6,0,0,1,8.48,8.48Z`}))],[`regular`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z`}))],[`thin`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M226.83,74.83l-128,128a4,4,0,0,1-5.66,0l-56-56a4,4,0,0,1,5.66-5.66L96,194.34,221.17,69.17a4,4,0,1,1,5.66,5.66Z`}))]]),m=new Map([[`bold`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M176.49,95.51a12,12,0,0,1,0,17l-56,56a12,12,0,0,1-17,0l-24-24a12,12,0,1,1,17-17L112,143l47.51-47.52A12,12,0,0,1,176.49,95.51ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z`}))],[`duotone`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z`,opacity:`0.2`}),e.createElement(`path`,{d:`M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z`}))],[`fill`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm45.66,85.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z`}))],[`light`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M172.24,99.76a6,6,0,0,1,0,8.48l-56,56a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L112,151.51l51.76-51.75A6,6,0,0,1,172.24,99.76ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z`}))],[`regular`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z`}))],[`thin`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M170.83,101.17a4,4,0,0,1,0,5.66l-56,56a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L112,154.34l53.17-53.17A4,4,0,0,1,170.83,101.17ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z`}))]]),h=new Map([[`bold`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Z`}))],[`duotone`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z`,opacity:`0.2`}),e.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Z`}))],[`fill`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M232,128A104,104,0,1,1,128,24,104.13,104.13,0,0,1,232,128Z`}))],[`light`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Z`}))],[`regular`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Z`}))],[`thin`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Z`}))]]),g=new Map([[`bold`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M236,128a108,108,0,0,1-216,0c0-42.52,24.73-81.34,63-98.9A12,12,0,1,1,93,50.91C63.24,64.57,44,94.83,44,128a84,84,0,0,0,168,0c0-33.17-19.24-63.43-49-77.09A12,12,0,1,1,173,29.1C211.27,46.66,236,85.48,236,128Z`}))],[`duotone`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z`,opacity:`0.2`}),e.createElement(`path`,{d:`M232,128a104,104,0,0,1-208,0c0-41,23.81-78.36,60.66-95.27a8,8,0,0,1,6.68,14.54C60.15,61.59,40,93.27,40,128a88,88,0,0,0,176,0c0-34.73-20.15-66.41-51.34-80.73a8,8,0,0,1,6.68-14.54C208.19,49.64,232,87,232,128Z`}))],[`fill`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,176A72,72,0,0,1,92,65.64a8,8,0,0,1,8,13.85,56,56,0,1,0,56,0,8,8,0,0,1,8-13.85A72,72,0,0,1,128,200Z`}))],[`light`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M230,128a102,102,0,0,1-204,0c0-40.18,23.35-76.86,59.5-93.45a6,6,0,0,1,5,10.9C58.61,60.09,38,92.49,38,128a90,90,0,0,0,180,0c0-35.51-20.61-67.91-52.5-82.55a6,6,0,0,1,5-10.9C206.65,51.14,230,87.82,230,128Z`}))],[`regular`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M232,128a104,104,0,0,1-208,0c0-41,23.81-78.36,60.66-95.27a8,8,0,0,1,6.68,14.54C60.15,61.59,40,93.27,40,128a88,88,0,0,0,176,0c0-34.73-20.15-66.41-51.34-80.73a8,8,0,0,1,6.68-14.54C208.19,49.64,232,87,232,128Z`}))],[`thin`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M228,128a100,100,0,0,1-200,0c0-39.4,22.9-75.37,58.33-91.63a4,4,0,1,1,3.34,7.27C57.07,58.6,36,91.71,36,128a92,92,0,0,0,184,0c0-36.29-21.07-69.4-53.67-84.36a4,4,0,1,1,3.34-7.27C205.1,52.63,228,88.6,228,128Z`}))]]),_=new Map([[`bold`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M108,84a16,16,0,1,1,16,16A16,16,0,0,1,108,84Zm128,44A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Zm-72,36.68V132a20,20,0,0,0-20-20,12,12,0,0,0-4,23.32V168a20,20,0,0,0,20,20,12,12,0,0,0,4-23.32Z`}))],[`duotone`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z`,opacity:`0.2`}),e.createElement(`path`,{d:`M144,176a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176Zm88-48A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128ZM124,96a12,12,0,1,0-12-12A12,12,0,0,0,124,96Z`}))],[`fill`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-4,48a12,12,0,1,1-12,12A12,12,0,0,1,124,72Zm12,112a16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40a8,8,0,0,1,0,16Z`}))],[`light`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M142,176a6,6,0,0,1-6,6,14,14,0,0,1-14-14V128a2,2,0,0,0-2-2,6,6,0,0,1,0-12,14,14,0,0,1,14,14v40a2,2,0,0,0,2,2A6,6,0,0,1,142,176ZM124,94a10,10,0,1,0-10-10A10,10,0,0,0,124,94Zm106,34A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z`}))],[`regular`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z`}))],[`thin`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M140,176a4,4,0,0,1-4,4,12,12,0,0,1-12-12V128a4,4,0,0,0-4-4,4,4,0,0,1,0-8,12,12,0,0,1,12,12v40a4,4,0,0,0,4,4A4,4,0,0,1,140,176ZM124,92a8,8,0,1,0-8-8A8,8,0,0,0,124,92Zm104,36A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z`}))]]),v=new Map([[`bold`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M232.49,215.51,185,168a92.12,92.12,0,1,0-17,17l47.53,47.54a12,12,0,0,0,17-17ZM44,112a68,68,0,1,1,68,68A68.07,68.07,0,0,1,44,112Z`}))],[`duotone`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z`,opacity:`0.2`}),e.createElement(`path`,{d:`M229.66,218.34,179.6,168.28a88.21,88.21,0,1,0-11.32,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z`}))],[`fill`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M168,112a56,56,0,1,1-56-56A56,56,0,0,1,168,112Zm61.66,117.66a8,8,0,0,1-11.32,0l-50.06-50.07a88,88,0,1,1,11.32-11.31l50.06,50.06A8,8,0,0,1,229.66,229.66ZM112,184a72,72,0,1,0-72-72A72.08,72.08,0,0,0,112,184Z`}))],[`light`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M228.24,219.76l-51.38-51.38a86.15,86.15,0,1,0-8.48,8.48l51.38,51.38a6,6,0,0,0,8.48-8.48ZM38,112a74,74,0,1,1,74,74A74.09,74.09,0,0,1,38,112Z`}))],[`regular`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z`}))],[`thin`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M226.83,221.17l-52.7-52.7a84.1,84.1,0,1,0-5.66,5.66l52.7,52.7a4,4,0,0,0,5.66-5.66ZM36,112a76,76,0,1,1,76,76A76.08,76.08,0,0,1,36,112Z`}))]]),y=new Map([[`bold`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M228,128a12,12,0,0,1-12,12H40a12,12,0,0,1,0-24H216A12,12,0,0,1,228,128Z`}))],[`duotone`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z`,opacity:`0.2`}),e.createElement(`path`,{d:`M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128Z`}))],[`fill`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM184,136H72a8,8,0,0,1,0-16H184a8,8,0,0,1,0,16Z`}))],[`light`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M222,128a6,6,0,0,1-6,6H40a6,6,0,0,1,0-12H216A6,6,0,0,1,222,128Z`}))],[`regular`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128Z`}))],[`thin`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M220,128a4,4,0,0,1-4,4H40a4,4,0,0,1,0-8H216A4,4,0,0,1,220,128Z`}))]]),b=new Map([[`bold`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M228,128a12,12,0,0,1-12,12H140v76a12,12,0,0,1-24,0V140H40a12,12,0,0,1,0-24h76V40a12,12,0,0,1,24,0v76h76A12,12,0,0,1,228,128Z`}))],[`duotone`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z`,opacity:`0.2`}),e.createElement(`path`,{d:`M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z`}))],[`fill`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM184,136H136v48a8,8,0,0,1-16,0V136H72a8,8,0,0,1,0-16h48V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z`}))],[`light`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M222,128a6,6,0,0,1-6,6H134v82a6,6,0,0,1-12,0V134H40a6,6,0,0,1,0-12h82V40a6,6,0,0,1,12,0v82h82A6,6,0,0,1,222,128Z`}))],[`regular`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z`}))],[`thin`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M220,128a4,4,0,0,1-4,4H132v84a4,4,0,0,1-8,0V132H40a4,4,0,0,1,0-8h84V40a4,4,0,0,1,8,0v84h84A4,4,0,0,1,220,128Z`}))]]),x=new Map([[`bold`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M240.26,186.1,152.81,34.23h0a28.74,28.74,0,0,0-49.62,0L15.74,186.1a27.45,27.45,0,0,0,0,27.71A28.31,28.31,0,0,0,40.55,228h174.9a28.31,28.31,0,0,0,24.79-14.19A27.45,27.45,0,0,0,240.26,186.1Zm-20.8,15.7a4.46,4.46,0,0,1-4,2.2H40.55a4.46,4.46,0,0,1-4-2.2,3.56,3.56,0,0,1,0-3.73L124,46.2a4.77,4.77,0,0,1,8,0l87.44,151.87A3.56,3.56,0,0,1,219.46,201.8ZM116,136V104a12,12,0,0,1,24,0v32a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,176Z`}))],[`duotone`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M215.46,216H40.54C27.92,216,20,202.79,26.13,192.09L113.59,40.22c6.3-11,22.52-11,28.82,0l87.46,151.87C236,202.79,228.08,216,215.46,216Z`,opacity:`0.2`}),e.createElement(`path`,{d:`M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z`}))],[`fill`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM120,104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm8,88a12,12,0,1,1,12-12A12,12,0,0,1,128,192Z`}))],[`light`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M235.07,189.09,147.61,37.22h0a22.75,22.75,0,0,0-39.22,0L20.93,189.09a21.53,21.53,0,0,0,0,21.72A22.35,22.35,0,0,0,40.55,222h174.9a22.35,22.35,0,0,0,19.6-11.19A21.53,21.53,0,0,0,235.07,189.09ZM224.66,204.8a10.46,10.46,0,0,1-9.21,5.2H40.55a10.46,10.46,0,0,1-9.21-5.2,9.51,9.51,0,0,1,0-9.72L118.79,43.21a10.75,10.75,0,0,1,18.42,0l87.46,151.87A9.51,9.51,0,0,1,224.66,204.8ZM122,144V104a6,6,0,0,1,12,0v40a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,180Z`}))],[`regular`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z`}))],[`thin`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M233.34,190.09,145.88,38.22h0a20.75,20.75,0,0,0-35.76,0L22.66,190.09a19.52,19.52,0,0,0,0,19.71A20.36,20.36,0,0,0,40.54,220H215.46a20.36,20.36,0,0,0,17.86-10.2A19.52,19.52,0,0,0,233.34,190.09ZM226.4,205.8a12.47,12.47,0,0,1-10.94,6.2H40.54a12.47,12.47,0,0,1-10.94-6.2,11.45,11.45,0,0,1,0-11.72L117.05,42.21a12.76,12.76,0,0,1,21.9,0L226.4,194.08A11.45,11.45,0,0,1,226.4,205.8ZM124,144V104a4,4,0,0,1,8,0v40a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,180Z`}))]]),S=new Map([[`bold`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z`}))],[`duotone`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z`,opacity:`0.2`}),e.createElement(`path`,{d:`M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z`}))],[`fill`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z`}))],[`light`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z`}))],[`regular`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z`}))],[`thin`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z`}))]]),C=new Map([[`bold`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M168.49,104.49,145,128l23.52,23.51a12,12,0,0,1-17,17L128,145l-23.51,23.52a12,12,0,0,1-17-17L111,128,87.51,104.49a12,12,0,0,1,17-17L128,111l23.51-23.52a12,12,0,0,1,17,17ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z`}))],[`duotone`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z`,opacity:`0.2`}),e.createElement(`path`,{d:`M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z`}))],[`fill`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm37.66,130.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32L139.31,128Z`}))],[`light`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M164.24,100.24,136.48,128l27.76,27.76a6,6,0,1,1-8.48,8.48L128,136.48l-27.76,27.76a6,6,0,0,1-8.48-8.48L119.52,128,91.76,100.24a6,6,0,0,1,8.48-8.48L128,119.52l27.76-27.76a6,6,0,0,1,8.48,8.48ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z`}))],[`regular`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z`}))],[`thin`,e.createElement(e.Fragment,null,e.createElement(`path`,{d:`M162.83,98.83,133.66,128l29.17,29.17a4,4,0,0,1-5.66,5.66L128,133.66,98.83,162.83a4,4,0,0,1-5.66-5.66L122.34,128,93.17,98.83a4,4,0,0,1,5.66-5.66L128,122.34l29.17-29.17a4,4,0,1,1,5.66,5.66ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z`}))]]),w=(0,e.createContext)({color:`currentColor`,size:`1em`,weight:`regular`,mirrored:!1}),T=e.forwardRef((t,n)=>{let{alt:r,color:i,size:a,weight:o,mirrored:s,children:c,weights:l,...u}=t,{color:d=`currentColor`,size:f,weight:p=`regular`,mirrored:m=!1,...h}=e.useContext(w);return e.createElement(`svg`,{ref:n,xmlns:`http://www.w3.org/2000/svg`,width:a??f,height:a??f,fill:i??d,viewBox:`0 0 256 256`,transform:s||m?`scale(-1, 1)`:void 0,...h,...u},!!r&&e.createElement(`title`,null,r),c,l.get(o??p))});T.displayName=`IconBase`;var E=e.forwardRef((t,n)=>e.createElement(T,{ref:n,...t,weights:u}));E.displayName=`CaretDownIcon`;var D=e.forwardRef((t,n)=>e.createElement(T,{ref:n,...t,weights:d}));D.displayName=`CaretRightIcon`;var O=e.forwardRef((t,n)=>e.createElement(T,{ref:n,...t,weights:f}));O.displayName=`CaretUpIcon`;var k=e.forwardRef((t,n)=>e.createElement(T,{ref:n,...t,weights:p}));k.displayName=`CheckIcon`;var A=e.forwardRef((t,n)=>e.createElement(T,{ref:n,...t,weights:m}));A.displayName=`CheckCircleIcon`;var j=e.forwardRef((t,n)=>e.createElement(T,{ref:n,...t,weights:h}));j.displayName=`CircleIcon`;var M=e.forwardRef((t,n)=>e.createElement(T,{ref:n,...t,weights:g}));M.displayName=`CircleNotchIcon`;var N=e.forwardRef((t,n)=>e.createElement(T,{ref:n,...t,weights:_}));N.displayName=`InfoIcon`;var P=e.forwardRef((t,n)=>e.createElement(T,{ref:n,...t,weights:v}));P.displayName=`MagnifyingGlassIcon`;var F=e.forwardRef((t,n)=>e.createElement(T,{ref:n,...t,weights:y}));F.displayName=`MinusIcon`;var I=e.forwardRef((t,n)=>e.createElement(T,{ref:n,...t,weights:b}));I.displayName=`PlusIcon`;var ee=e.forwardRef((t,n)=>e.createElement(T,{ref:n,...t,weights:x}));ee.displayName=`WarningIcon`;var L=e.forwardRef((t,n)=>e.createElement(T,{ref:n,...t,weights:S}));L.displayName=`XIcon`;var te=e.forwardRef((t,n)=>e.createElement(T,{ref:n,...t,weights:C}));te.displayName=`XCircleIcon`;function ne(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=ne(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function R(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=ne(e))&&(r&&(r+=` `),r+=t);return r}var z=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},re=(e,t)=>({classGroupId:e,validator:t}),ie=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),B=`-`,ae=[],oe=`arbitrary..`,se=e=>{let t=ue(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return le(e);let n=e.split(B);return ce(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?z(i,t):t:i||ae}return n[e]||ae}}},ce=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=ce(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(B):e.slice(t).join(B),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},le=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?oe+r:void 0})(),ue=e=>{let{theme:t,classGroups:n}=e;return de(n,t)},de=(e,t)=>{let n=ie();for(let r in e){let i=e[r];fe(i,n,r,t)}return n},fe=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];pe(i,t,n,r)}},pe=(e,t,n,r)=>{if(typeof e==`string`){me(e,t,n);return}if(typeof e==`function`){he(e,t,n,r);return}ge(e,t,n,r)},me=(e,t,n)=>{let r=e===``?t:_e(t,e);r.classGroupId=n},he=(e,t,n,r)=>{if(ve(e)){fe(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(re(n,e))},ge=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];fe(o,_e(t,a),n,r)}},_e=(e,t)=>{let n=e,r=t.split(B),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=ie(),n.nextPart.set(t,i)),n=i}return n},ve=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,ye=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},be=`!`,xe=`:`,Se=[],Ce=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),we=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===xe){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(be)?(c=s.slice(0,-1),l=!0):s.startsWith(be)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return Ce(t,l,c,u)};if(t){let e=t+xe,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):Ce(Se,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},Te=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},Ee=e=>({cache:ye(e.cacheSize),parseClassName:we(e),sortModifiers:Te(e),postfixLookupClassGroupIds:De(e),...se(e)}),De=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},Oe=/\s+/,ke=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(Oe),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+be:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},Ae=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=je(n))&&(i&&(i+=` `),i+=r);return i},je=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=je(e[r]))&&(n&&(n+=` `),n+=t);return n},Me=(e,...t)=>{let n,r,i,a,o=o=>(n=Ee(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=ke(e,n);return i(e,a),a};return a=o,(...e)=>a(Ae(...e))},Ne=[],V=e=>{let t=t=>t[e]||Ne;return t.isThemeGetter=!0,t},Pe=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Fe=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ie=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Le=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Re=/\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$/,ze=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Be=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ve=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,H=e=>Ie.test(e),U=e=>!!e&&!Number.isNaN(Number(e)),W=e=>!!e&&Number.isInteger(Number(e)),He=e=>e.endsWith(`%`)&&U(e.slice(0,-1)),G=e=>Le.test(e),Ue=()=>!0,We=e=>Re.test(e)&&!ze.test(e),Ge=()=>!1,Ke=e=>Be.test(e),qe=e=>Ve.test(e),Je=e=>!K(e)&&!J(e),Ye=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),Xe=e=>Y(e,ft,Ge),K=e=>Pe.test(e),q=e=>Y(e,pt,We),Ze=e=>Y(e,mt,U),Qe=e=>Y(e,gt,Ue),$e=e=>Y(e,ht,Ge),et=e=>Y(e,ut,Ge),tt=e=>Y(e,dt,qe),nt=e=>Y(e,_t,Ke),J=e=>Fe.test(e),rt=e=>X(e,pt),it=e=>X(e,ht),at=e=>X(e,ut),ot=e=>X(e,ft),st=e=>X(e,dt),ct=e=>X(e,_t,!0),lt=e=>X(e,gt,!0),Y=(e,t,n)=>{let r=Pe.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},X=(e,t,n=!1)=>{let r=Fe.exec(e);return r?r[1]?t(r[1]):n:!1},ut=e=>e===`position`||e===`percentage`,dt=e=>e===`image`||e===`url`,ft=e=>e===`length`||e===`size`||e===`bg-size`,pt=e=>e===`length`,mt=e=>e===`number`,ht=e=>e===`family-name`,gt=e=>e===`number`||e===`weight`,_t=e=>e===`shadow`,vt=Me(()=>{let e=V(`color`),t=V(`font`),n=V(`text`),r=V(`font-weight`),i=V(`tracking`),a=V(`leading`),o=V(`breakpoint`),s=V(`container`),c=V(`spacing`),l=V(`radius`),u=V(`shadow`),d=V(`inset-shadow`),f=V(`text-shadow`),p=V(`drop-shadow`),m=V(`blur`),h=V(`perspective`),g=V(`aspect`),_=V(`ease`),v=V(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),J,K],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[J,K,c],T=()=>[H,`full`,`auto`,...w()],E=()=>[W,`none`,`subgrid`,J,K],D=()=>[`auto`,{span:[`full`,W,J,K]},W,J,K],O=()=>[W,`auto`,J,K],k=()=>[`auto`,`min`,`max`,`fr`,J,K],A=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],j=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],M=()=>[`auto`,...w()],N=()=>[H,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],P=()=>[H,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],F=()=>[H,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],I=()=>[e,J,K],ee=()=>[...b(),at,et,{position:[J,K]}],L=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],te=()=>[`auto`,`cover`,`contain`,ot,Xe,{size:[J,K]}],ne=()=>[He,rt,q],R=()=>[``,`none`,`full`,l,J,K],z=()=>[``,U,rt,q],re=()=>[`solid`,`dashed`,`dotted`,`double`],ie=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],B=()=>[U,He,at,et],ae=()=>[``,`none`,m,J,K],oe=()=>[`none`,U,J,K],se=()=>[`none`,U,J,K],ce=()=>[U,J,K],le=()=>[H,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[G],breakpoint:[G],color:[Ue],container:[G],"drop-shadow":[G],ease:[`in`,`out`,`in-out`],font:[Je],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[G],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[G],shadow:[G],spacing:[`px`,U],text:[G],"text-shadow":[G],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,H,K,J,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,J,K]}],"container-named":[Ye],columns:[{columns:[U,K,J,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"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:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[W,`auto`,J,K]}],basis:[{basis:[H,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[U,H,`auto`,`initial`,`none`,K]}],grow:[{grow:[``,U,J,K]}],shrink:[{shrink:[``,U,J,K]}],order:[{order:[W,`first`,`last`,`none`,J,K]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":k()}],"auto-rows":[{"auto-rows":k()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...A(),`normal`]}],"justify-items":[{"justify-items":[...j(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...j()]}],"align-content":[{content:[`normal`,...A()]}],"align-items":[{items:[...j(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...j(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":A()}],"place-items":[{"place-items":[...j(),`baseline`]}],"place-self":[{"place-self":[`auto`,...j()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mbs:[{mbs:M()}],mbe:[{mbe:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:N()}],"inline-size":[{inline:[`auto`,...P()]}],"min-inline-size":[{"min-inline":[`auto`,...P()]}],"max-inline-size":[{"max-inline":[`none`,...P()]}],"block-size":[{block:[`auto`,...F()]}],"min-block-size":[{"min-block":[`auto`,...F()]}],"max-block-size":[{"max-block":[`none`,...F()]}],w:[{w:[s,`screen`,...N()]}],"min-w":[{"min-w":[s,`screen`,`none`,...N()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...N()]}],h:[{h:[`screen`,`lh`,...N()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...N()]}],"max-h":[{"max-h":[`screen`,`lh`,...N()]}],"font-size":[{text:[`base`,n,rt,q]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,lt,Qe]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,He,K]}],"font-family":[{font:[it,$e,t]}],"font-features":[{"font-features":[K]}],"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:[i,J,K]}],"line-clamp":[{"line-clamp":[U,`none`,J,Ze]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,J,K]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,J,K]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:I()}],"text-color":[{text:I()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...re(),`wavy`]}],"text-decoration-thickness":[{decoration:[U,`from-font`,`auto`,J,q]}],"text-decoration-color":[{decoration:I()}],"underline-offset":[{"underline-offset":[U,`auto`,J,K]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[W,J,K]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,J,K]}],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`,J,K]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:ee()}],"bg-repeat":[{bg:L()}],"bg-size":[{bg:te()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},W,J,K],radial:[``,J,K],conic:[W,J,K]},st,tt]}],"bg-color":[{bg:I()}],"gradient-from-pos":[{from:ne()}],"gradient-via-pos":[{via:ne()}],"gradient-to-pos":[{to:ne()}],"gradient-from":[{from:I()}],"gradient-via":[{via:I()}],"gradient-to":[{to:I()}],rounded:[{rounded:R()}],"rounded-s":[{"rounded-s":R()}],"rounded-e":[{"rounded-e":R()}],"rounded-t":[{"rounded-t":R()}],"rounded-r":[{"rounded-r":R()}],"rounded-b":[{"rounded-b":R()}],"rounded-l":[{"rounded-l":R()}],"rounded-ss":[{"rounded-ss":R()}],"rounded-se":[{"rounded-se":R()}],"rounded-ee":[{"rounded-ee":R()}],"rounded-es":[{"rounded-es":R()}],"rounded-tl":[{"rounded-tl":R()}],"rounded-tr":[{"rounded-tr":R()}],"rounded-br":[{"rounded-br":R()}],"rounded-bl":[{"rounded-bl":R()}],"border-w":[{border:z()}],"border-w-x":[{"border-x":z()}],"border-w-y":[{"border-y":z()}],"border-w-s":[{"border-s":z()}],"border-w-e":[{"border-e":z()}],"border-w-bs":[{"border-bs":z()}],"border-w-be":[{"border-be":z()}],"border-w-t":[{"border-t":z()}],"border-w-r":[{"border-r":z()}],"border-w-b":[{"border-b":z()}],"border-w-l":[{"border-l":z()}],"divide-x":[{"divide-x":z()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":z()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...re(),`hidden`,`none`]}],"divide-style":[{divide:[...re(),`hidden`,`none`]}],"border-color":[{border:I()}],"border-color-x":[{"border-x":I()}],"border-color-y":[{"border-y":I()}],"border-color-s":[{"border-s":I()}],"border-color-e":[{"border-e":I()}],"border-color-bs":[{"border-bs":I()}],"border-color-be":[{"border-be":I()}],"border-color-t":[{"border-t":I()}],"border-color-r":[{"border-r":I()}],"border-color-b":[{"border-b":I()}],"border-color-l":[{"border-l":I()}],"divide-color":[{divide:I()}],"outline-style":[{outline:[...re(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[U,J,K]}],"outline-w":[{outline:[``,U,rt,q]}],"outline-color":[{outline:I()}],shadow:[{shadow:[``,`none`,u,ct,nt]}],"shadow-color":[{shadow:I()}],"inset-shadow":[{"inset-shadow":[`none`,d,ct,nt]}],"inset-shadow-color":[{"inset-shadow":I()}],"ring-w":[{ring:z()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:I()}],"ring-offset-w":[{"ring-offset":[U,q]}],"ring-offset-color":[{"ring-offset":I()}],"inset-ring-w":[{"inset-ring":z()}],"inset-ring-color":[{"inset-ring":I()}],"text-shadow":[{"text-shadow":[`none`,f,ct,nt]}],"text-shadow-color":[{"text-shadow":I()}],opacity:[{opacity:[U,J,K]}],"mix-blend":[{"mix-blend":[...ie(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":ie()}],"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":[U]}],"mask-image-linear-from-pos":[{"mask-linear-from":B()}],"mask-image-linear-to-pos":[{"mask-linear-to":B()}],"mask-image-linear-from-color":[{"mask-linear-from":I()}],"mask-image-linear-to-color":[{"mask-linear-to":I()}],"mask-image-t-from-pos":[{"mask-t-from":B()}],"mask-image-t-to-pos":[{"mask-t-to":B()}],"mask-image-t-from-color":[{"mask-t-from":I()}],"mask-image-t-to-color":[{"mask-t-to":I()}],"mask-image-r-from-pos":[{"mask-r-from":B()}],"mask-image-r-to-pos":[{"mask-r-to":B()}],"mask-image-r-from-color":[{"mask-r-from":I()}],"mask-image-r-to-color":[{"mask-r-to":I()}],"mask-image-b-from-pos":[{"mask-b-from":B()}],"mask-image-b-to-pos":[{"mask-b-to":B()}],"mask-image-b-from-color":[{"mask-b-from":I()}],"mask-image-b-to-color":[{"mask-b-to":I()}],"mask-image-l-from-pos":[{"mask-l-from":B()}],"mask-image-l-to-pos":[{"mask-l-to":B()}],"mask-image-l-from-color":[{"mask-l-from":I()}],"mask-image-l-to-color":[{"mask-l-to":I()}],"mask-image-x-from-pos":[{"mask-x-from":B()}],"mask-image-x-to-pos":[{"mask-x-to":B()}],"mask-image-x-from-color":[{"mask-x-from":I()}],"mask-image-x-to-color":[{"mask-x-to":I()}],"mask-image-y-from-pos":[{"mask-y-from":B()}],"mask-image-y-to-pos":[{"mask-y-to":B()}],"mask-image-y-from-color":[{"mask-y-from":I()}],"mask-image-y-to-color":[{"mask-y-to":I()}],"mask-image-radial":[{"mask-radial":[J,K]}],"mask-image-radial-from-pos":[{"mask-radial-from":B()}],"mask-image-radial-to-pos":[{"mask-radial-to":B()}],"mask-image-radial-from-color":[{"mask-radial-from":I()}],"mask-image-radial-to-color":[{"mask-radial-to":I()}],"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":b()}],"mask-image-conic-pos":[{"mask-conic":[U]}],"mask-image-conic-from-pos":[{"mask-conic-from":B()}],"mask-image-conic-to-pos":[{"mask-conic-to":B()}],"mask-image-conic-from-color":[{"mask-conic-from":I()}],"mask-image-conic-to-color":[{"mask-conic-to":I()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:ee()}],"mask-repeat":[{mask:L()}],"mask-size":[{mask:te()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,J,K]}],filter:[{filter:[``,`none`,J,K]}],blur:[{blur:ae()}],brightness:[{brightness:[U,J,K]}],contrast:[{contrast:[U,J,K]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,ct,nt]}],"drop-shadow-color":[{"drop-shadow":I()}],grayscale:[{grayscale:[``,U,J,K]}],"hue-rotate":[{"hue-rotate":[U,J,K]}],invert:[{invert:[``,U,J,K]}],saturate:[{saturate:[U,J,K]}],sepia:[{sepia:[``,U,J,K]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,J,K]}],"backdrop-blur":[{"backdrop-blur":ae()}],"backdrop-brightness":[{"backdrop-brightness":[U,J,K]}],"backdrop-contrast":[{"backdrop-contrast":[U,J,K]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,U,J,K]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[U,J,K]}],"backdrop-invert":[{"backdrop-invert":[``,U,J,K]}],"backdrop-opacity":[{"backdrop-opacity":[U,J,K]}],"backdrop-saturate":[{"backdrop-saturate":[U,J,K]}],"backdrop-sepia":[{"backdrop-sepia":[``,U,J,K]}],"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`,J,K]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[U,`initial`,J,K]}],ease:[{ease:[`linear`,`initial`,_,J,K]}],delay:[{delay:[U,J,K]}],animate:[{animate:[`none`,v,J,K]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,J,K]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:oe()}],"rotate-x":[{"rotate-x":oe()}],"rotate-y":[{"rotate-y":oe()}],"rotate-z":[{"rotate-z":oe()}],scale:[{scale:se()}],"scale-x":[{"scale-x":se()}],"scale-y":[{"scale-y":se()}],"scale-z":[{"scale-z":se()}],"scale-3d":[`scale-3d`],skew:[{skew:ce()}],"skew-x":[{"skew-x":ce()}],"skew-y":[{"skew-y":ce()}],transform:[{transform:[J,K,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"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`],zoom:[{zoom:[W,J,K]}],accent:[{accent:I()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:I()}],"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`,J,K]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":I()}],"scrollbar-track-color":[{"scrollbar-track":I()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"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-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":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-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":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`,J,K]}],fill:[{fill:[`none`,...I()]}],"stroke-w":[{stroke:[U,rt,q,Ze]}],stroke:[{stroke:[`none`,...I()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`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`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`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-bs`,`border-w-be`,`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-bs`,`border-color-be`,`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-mbs`,`scroll-mbe`,`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-pbs`,`scroll-pbe`,`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`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function Z(...e){return vt(R(e))}var yt=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,bt=R,Q=(e,t)=>n=>{if(t?.variants==null)return bt(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=yt(t)||yt(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return bt(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},xt=Q([`flex flex-col`]),St=Q([`border-b border-card-border`],{variants:{disabled:{true:`opacity-60`,false:``}},defaultVariants:{disabled:!1}}),Ct=Q([`group flex w-full cursor-pointer items-start gap-4 pt-3 text-left`,`outline-none focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus`,`disabled:cursor-not-allowed`],{variants:{open:{true:`pb-2`,false:`pb-3`}},defaultVariants:{open:!1}}),wt=Q([`body-02-medium min-w-0 flex-1 break-words text-card-foreground`]),Tt=Q([`flex shrink-0 items-center text-card-foreground-muted transition-colors`,`group-hover:text-card-foreground`,`[&_svg]:size-4 [&_svg]:shrink-0`]),Et=Q([`body-03 pb-3 text-card-foreground-muted`]),Dt=e.createContext(null);function Ot(t){let n=e.useContext(Dt);if(n===null)throw Error(`${t} must be used within <Accordion.Root>`);return n}var kt=e.createContext(null);function At(t){let n=e.useContext(kt);if(n===null)throw Error(`${t} must be used within <Accordion.Item>`);return n}function jt(e,t){typeof e==`function`?e(t):e&&(e.current=t)}function Mt({type:t=`single`,value:n,defaultValue:r,onValueChange:i,collapsible:a=!0,className:o,children:s,ref:c,...l}){let u=t===`multiple`,d=n!==void 0,[f,p]=e.useState(()=>r===void 0?u?[]:null:r),m=d?n:f,h=e=>{d||p(e),i?.(e)},g=e=>u?Array.isArray(m)&&m.includes(e):m===e,_=e=>{if(u){let t=Array.isArray(m)?m:[];h(t.includes(e)?t.filter(t=>t!==e):[...t,e]);return}h((Array.isArray(m)?null:m)===e&&a?null:e)},v=e.useRef(new Set),y={type:t,isOpen:g,toggle:_,registerTrigger:e.useCallback(e=>{v.current.add(e)},[]),unregisterTrigger:e.useCallback(e=>{v.current.delete(e)},[]),onTriggerKeyDown:e=>{if(![`ArrowDown`,`ArrowUp`,`Home`,`End`].includes(e.key))return;let t=Array.from(v.current).filter(e=>!e.disabled).sort((e,t)=>e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1);if(t.length===0)return;let n=t.indexOf(e.currentTarget);if(n===-1)return;e.preventDefault();let r=n;switch(e.key){case`ArrowDown`:r=(n+1)%t.length;break;case`ArrowUp`:r=(n-1+t.length)%t.length;break;case`Home`:r=0;break;case`End`:r=t.length-1;break}t[r]?.focus()}};return e.createElement(Dt.Provider,{value:y},e.createElement(`div`,{ref:c,"data-slot":`accordion`,className:Z(xt(),o),...l},s))}function Nt({value:t,disabled:n=!1,className:r,children:i,ref:a,...o}){let{isOpen:s}=Ot(`Accordion.Item`),c=s(t),l=e.useId(),u={value:t,open:c,disabled:n,triggerId:`${l}-trigger`,contentId:`${l}-content`};return e.createElement(kt.Provider,{value:u},e.createElement(`div`,{ref:a,"data-slot":`accordion-item`,"data-state":c?`open`:`closed`,"data-disabled":n||void 0,className:Z(St({disabled:n}),r),...o},i))}function Pt({className:t,children:n,onClick:r,onKeyDown:i,ref:a,...o}){let{toggle:s,registerTrigger:c,unregisterTrigger:l,onTriggerKeyDown:u}=Ot(`Accordion.Trigger`),{value:d,open:f,disabled:p,triggerId:m,contentId:h}=At(`Accordion.Trigger`),g=e.useRef(null),_=e=>{g.current=e,jt(a,e)};return e.useEffect(()=>{let e=g.current;if(e)return c(e),()=>l(e)},[c,l]),e.createElement(`button`,{...o,ref:_,type:`button`,id:m,"data-slot":`accordion-trigger`,"aria-expanded":f,"aria-controls":f?h:void 0,disabled:p,className:Z(Ct({open:f}),t),onClick:e=>{r?.(e),e.defaultPrevented||s(d)},onKeyDown:e=>{i?.(e),e.defaultPrevented||u(e)}},e.createElement(`span`,{"data-slot":`accordion-trigger-title`,className:wt()},n),e.createElement(`span`,{"data-slot":`accordion-trigger-icon`,"aria-hidden":`true`,className:Tt()},f?e.createElement(F,null):e.createElement(I,null)))}function Ft({className:t,children:n,ref:r,...i}){let{open:a,triggerId:o,contentId:s}=At(`Accordion.Content`);return a?e.createElement(`div`,{ref:r,role:`region`,id:s,"aria-labelledby":o,"data-slot":`accordion-content`,"data-state":`open`,className:Z(Et(),t),...i},n):null}var It={Root:Mt,Item:Nt,Trigger:Pt,Content:Ft};function Lt({W:e,H:t,cut:n,rTR:r,rBL:i,rCut:a,ox:o=0,oy:s=0}){let c=a/Math.SQRT2,l=e=>e+o,u=e=>e+s;return[`M ${l(n+a)} ${u(0)}`,`L ${l(e-r)} ${u(0)}`,`Q ${l(e)} ${u(0)} ${l(e)} ${u(r)}`,`L ${l(e)} ${u(t-n-a)}`,`Q ${l(e)} ${u(t-n)} ${l(e-c)} ${u(t-n+c)}`,`L ${l(e-n+c)} ${u(t-c)}`,`Q ${l(e-n)} ${u(t)} ${l(e-n-a)} ${u(t)}`,`L ${l(i)} ${u(t)}`,`Q ${l(0)} ${u(t)} ${l(0)} ${u(t-i)}`,`L ${l(0)} ${u(n+a)}`,`Q ${l(0)} ${u(n)} ${l(c)} ${u(n-c)}`,`L ${l(n-c)} ${u(c)}`,`Q ${l(n)} ${u(0)} ${l(n+a)} ${u(0)}`,`Z`].join(` `)}function Rt(t,{radius:n=2,radiusCuts:r,radiusTopRight:i,radiusBottomLeft:a,outset:o}={}){let s=e.useRef(null),[c,l]=e.useState(),[u,d]=e.useState(),[f,p]=e.useState();return e.useLayoutEffect(()=>{let e=s.current;if(!e)return;let c=i??n,u=a??n,f=r??n;function m(e,n){let r=Lt({W:e,H:n,cut:t,rTR:c,rBL:u,rCut:f});if(l(`path('${r}')`),d(r),o!=null){let r=o;p(Lt({W:e+2*r,H:n+2*r,cut:t+(2-Math.SQRT2)*r,rTR:c+r,rBL:u+r,rCut:f+r,ox:-r,oy:-r}))}}let h=e.getBoundingClientRect();m(h.width,h.height);let g=new ResizeObserver(t=>{let n=t[t.length-1]?.borderBoxSize?.[0];if(n)m(n.inlineSize,n.blockSize);else{let t=e.getBoundingClientRect();m(t.width,t.height)}});return g.observe(e),()=>g.disconnect()},[t,n,r,i,a,o]),{ref:s,clipPath:c,pathD:u,outsetPathD:f}}var zt={cut:8,radius:2,radiusCuts:0},Bt=Q([`inline-flex shrink-0 items-center justify-center gap-1`,`button-01`,`rounded-none`,`transition-colors cursor-pointer`,`outline-none`,`disabled:pointer-events-none disabled:cursor-not-allowed`,`[&_svg]:pointer-events-none [&_svg]:shrink-0`],{variants:{variation:{primary:[`bg-button-primary-background text-button-primary-foreground`,`hover:bg-button-primary-accent active:bg-button-primary-accent`,`disabled:bg-button-primary-muted disabled:text-button-primary-foreground-muted`],brand:[`bg-button-brand-primary-background text-button-brand-primary-foreground`,`hover:bg-button-brand-primary-accent active:bg-button-brand-primary-accent`,`disabled:bg-button-primary-muted disabled:text-button-primary-foreground-muted`],destructive:[`bg-button-destructive-background text-button-destructive-primary-foreground`,`hover:bg-button-destructive-accent active:bg-button-destructive-accent`,`disabled:bg-button-primary-muted disabled:text-button-primary-foreground-muted`],secondary:[`bg-button-secondary-background text-button-secondary-foreground`,`hover:text-button-secondary-foreground-accent active:text-button-secondary-foreground-accent`,`disabled:text-button-secondary-foreground-muted`],ghost:[`bg-transparent text-button-secondary-foreground`,`hover:text-button-secondary-foreground-accent active:text-button-secondary-foreground-accent`,`disabled:text-button-secondary-foreground-muted`,`rounded-xs focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus`]},size:{sm:`h-8 px-2.5 [&_svg:not([class*='size-'])]:size-4`,md:`h-10 px-2.5 [&_svg:not([class*='size-'])]:size-4`,lg:`h-12 px-3 [&_svg:not([class*='size-'])]:size-4`},iconOnly:{true:``,false:``}},compoundVariants:[{iconOnly:!0,size:`sm`,className:`w-8 px-0`},{iconOnly:!0,size:`md`,className:`w-10 px-0`},{iconOnly:!0,size:`lg`,className:`w-12 px-0`},{variation:`ghost`,iconOnly:!1,className:`px-0`}],defaultVariants:{variation:`primary`,size:`md`,iconOnly:!1}}),Vt=3,Ht=2;function Ut(e,t){typeof e==`function`?e(t):e&&(e.current=t)}function Wt({className:t,variation:n=`primary`,size:r=`md`,iconOnly:i=!1,asChild:a=!1,loading:o=!1,leftSlot:s,rightSlot:c,wrapperClassName:l,disabled:u,style:d,children:f,onClick:p,ref:m,...h}){let{ref:g,clipPath:_,pathD:v,outsetPathD:y}=Rt(zt.cut,{radius:zt.radius,radiusCuts:zt.radiusCuts,outset:Vt}),b=e.useCallback(e=>{g.current=e,Ut(m,e)},[g,m]),x=u,S=n!==`ghost`,C=n===`secondary`,w=o?e=>{e.preventDefault(),e.stopPropagation()}:p,T=Z(Bt({variation:n,size:r,iconOnly:i}),C&&`border-0`,o&&`pointer-events-none`,t),E=S?{...d,clipPath:_}:d,D=e.createElement(e.Fragment,null,o?e.createElement(M,{className:`animate-spin`,"aria-hidden":`true`}):s,!i&&f,i&&!o&&f,!i&&c),O;if(a){if(!e.isValidElement(f))throw Error("Button: `asChild` requires a single React element child");let t=f,n=t.props,r=n.onClick;O=e.cloneElement(t,{...h,...n,"data-slot":`button`,"data-loading":o||void 0,"aria-busy":o||void 0,"aria-disabled":o||void 0,onClick:o?e=>{e.preventDefault(),e.stopPropagation()}:e=>{p?.(e),r?.(e)},ref:e=>{b(e),Ut(n.ref,e)},className:Z(T,n.className),style:{...E,...n.style}},o?e.createElement(M,{className:`animate-spin`,"aria-hidden":`true`}):null,n.children)}else O=e.createElement(`button`,{"data-slot":`button`,"data-loading":o||void 0,"aria-busy":o||void 0,"aria-disabled":o||void 0,className:T,style:E,disabled:x,...h,onClick:w,ref:b},D);return S?e.createElement(`span`,{className:Z(`group relative inline-block`,l)},O,y&&e.createElement(`svg`,{className:`pointer-events-none absolute inset-0 h-full w-full overflow-visible opacity-0 group-has-[:focus-visible]:opacity-100`,"aria-hidden":`true`},e.createElement(`path`,{d:y,fill:`none`,strokeWidth:Ht,className:`stroke-focus`})),C&&v&&e.createElement(`svg`,{className:`pointer-events-none absolute inset-0 h-full w-full overflow-visible`,"aria-hidden":`true`},e.createElement(`path`,{d:v,fill:`none`,strokeWidth:1,className:Z(x?`stroke-button-secondary-border-muted`:[`stroke-button-secondary-border`,`group-hover:stroke-button-secondary-border-accent group-active:stroke-button-secondary-border-accent`])}))):O}var Gt=Q([`peer size-5 shrink-0 appearance-none rounded-xs border`,`cursor-pointer transition-colors`,`bg-background border-border`,`hover:border-border-accent`,`outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-solid focus-visible:outline-focus`,`checked:bg-brand-primary-background checked:border-brand-primary-border`,`checked:hover:bg-brand-primary-accent checked:hover:border-brand-primary-border`,`checked:focus-visible:bg-brand-primary-accent checked:focus-visible:border-brand-primary-border`,`disabled:pointer-events-none disabled:cursor-not-allowed disabled:border-border-muted`,`checked:disabled:bg-background checked:disabled:border-border-muted`]);function Kt({className:t,wrapperClassName:n,onChange:r,onCheckedChange:i,...a}){let o=e=>{r?.(e),i?.(e.currentTarget.checked)};return e.createElement(`span`,{className:Z(`relative inline-flex shrink-0`,n)},e.createElement(`input`,{type:`checkbox`,"data-slot":`checkbox`,className:Z(Gt(),t),...a,onChange:o}),e.createElement(k,{"aria-hidden":`true`,weight:`regular`,"data-slot":`checkbox-indicator`,className:Z(`pointer-events-none invisible absolute inset-0 m-auto size-4`,`text-brand-primary-foreground`,`peer-checked:visible peer-disabled:text-foreground-muted`)}))}var qt=Q([`[scrollbar-width:thin]`,`[scrollbar-color:var(--color-card-foreground-muted)_transparent]`,`[&::-webkit-scrollbar]:w-3 [&::-webkit-scrollbar]:h-3`,`[&::-webkit-scrollbar-thumb]:rounded-full`,`[&::-webkit-scrollbar-thumb]:border-4 [&::-webkit-scrollbar-thumb]:border-solid [&::-webkit-scrollbar-thumb]:border-transparent`,`[&::-webkit-scrollbar-thumb]:bg-clip-content`,`[&::-webkit-scrollbar-thumb]:bg-card-foreground-muted`,`[&::-webkit-scrollbar-track]:bg-transparent`],{variants:{stroke:{true:`[&::-webkit-scrollbar-track]:border-l [&::-webkit-scrollbar-track]:border-card-border`,false:``}},defaultVariants:{stroke:!0}}),Jt=[`a[href]`,`button:not([disabled])`,`textarea:not([disabled])`,`input:not([disabled])`,`select:not([disabled])`,`[tabindex]:not([tabindex="-1"])`].join(`,`);function Yt(e){return Array.from(e.querySelectorAll(Jt))}function Xt({active:t,containerRef:n}){e.useEffect(()=>{if(!t)return;let e=n.current;if(!e)return;let r=document.activeElement;(Yt(e)[0]??e).focus();let i=document.body,a=i.style.overflow;i.style.overflow=`hidden`;let o=t=>{if(t.key!==`Tab`)return;let n=Yt(e);if(n.length===0){t.preventDefault(),e.focus();return}let r=n[0],i=n[n.length-1],a=document.activeElement;t.shiftKey?(a===r||!e.contains(a))&&(t.preventDefault(),i.focus()):(a===i||!e.contains(a))&&(t.preventDefault(),r.focus())};return document.addEventListener(`keydown`,o,!0),()=>{document.removeEventListener(`keydown`,o,!0),i.style.overflow=a,r?.focus?.()}},[t,n])}var Zt=Q([`fixed inset-0 z-50 flex items-center justify-center p-4`,`bg-overlay`]),Qt=Q([`relative flex w-[438px] max-w-[calc(100vw-2rem)] max-h-[calc(100vh-2rem)] flex-col gap-6`,`rounded-md border border-border bg-card-background p-6 shadow-s`,`outline-none`]),$t=Q([`flex shrink-0 flex-col items-start gap-4`]),en=Q([`flex items-center text-foreground [&_svg]:size-8 [&_svg]:shrink-0`]),tn=Q([`flex w-full flex-col gap-2`]),nn=Q([`absolute right-6 top-6 flex cursor-pointer items-center justify-center rounded-xs`,`text-foreground-muted transition-colors hover:text-foreground`,`[&_svg]:size-4 [&_svg]:shrink-0`,`outline-none focus-visible:text-foreground focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus`]),rn=Q([`min-h-0 flex-1 overflow-y-auto text-foreground`]),an=Q([`flex w-full shrink-0 gap-2 [&>*]:flex-1 [&_button]:w-full`]),on=e.createContext(null);function sn(t){let n=e.useContext(on);if(n===null)throw Error(`${t} must be used within <Dialog.Root>`);return n}function cn({open:t,defaultOpen:n=!1,onOpenChange:r,dismissable:i=!0,children:a}){let[o,s]=e.useState(n),[c,l]=e.useState(!1),u=t!==void 0,d=u?t:o,f=e.useId(),p=`${f}-title`,m=`${f}-description`,h={open:d,setOpen:e.useCallback(e=>{u||s(e),r?.(e)},[u,r]),dismissable:i,titleId:p,descriptionId:m,hasDescription:c,setHasDescription:l};return e.createElement(on.Provider,{value:h},a)}function ln(e,t){typeof e==`function`?e(t):e&&(e.current=t)}function un({asChild:t=!1,onActivate:n,dataSlot:r,children:i,className:a,type:o,...s}){if(t){if(!e.isValidElement(i))throw Error(`${r}: \`asChild\` requires a single React element child`);let t=i,o=t.props,c=o.onClick;return e.cloneElement(t,{...s,...o,"data-slot":r,onClick:e=>{c?.(e),e.defaultPrevented||n()},className:Z(a,o.className),ref:e=>{ln(o.ref,e)}})}return e.createElement(`button`,{type:o??`button`,"data-slot":r,className:a,onClick:()=>n(),...s},i)}function dn({asChild:t=!1,...n}){let{open:r,setOpen:i}=sn(`Dialog.Trigger`);return e.createElement(un,{asChild:t,dataSlot:`dialog-trigger`,onActivate:()=>i(!0),"aria-haspopup":`dialog`,"aria-expanded":r,...n})}function fn({asChild:t=!1,...n}){let{setOpen:r}=sn(`Dialog.Close`);return e.createElement(un,{asChild:t,dataSlot:`dialog-close`,onActivate:()=>r(!1),...n})}function pn({className:n,children:r,ref:i,onKeyDown:a,...o}){let{open:s,setOpen:c,dismissable:l,titleId:u,descriptionId:d,hasDescription:f}=sn(`Dialog.Content`),p=e.useRef(null);return Xt({active:s,containerRef:p}),e.useEffect(()=>{if(!s||!l)return;let e=e=>{e.key===`Escape`&&(e.stopPropagation(),c(!1))};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[s,l,c]),s?(0,t.createPortal)(e.createElement(`div`,{"data-slot":`dialog-overlay`,className:Zt(),onClick:e=>{l&&e.target===e.currentTarget&&c(!1)}},e.createElement(`div`,{ref:e=>{p.current=e,ln(i,e)},role:`dialog`,"aria-modal":`true`,"aria-labelledby":u,"aria-describedby":f?d:void 0,tabIndex:-1,"data-slot":`dialog-content`,className:Z(Qt(),n),onKeyDown:a,...o},r)),document.body):null}function mn({icon:t,title:n,description:r,showClose:i=!0,className:a,ref:o,...s}){let{titleId:c,descriptionId:l,setHasDescription:u,setOpen:d}=sn(`Dialog.Header`),f=r!=null;return e.useEffect(()=>{if(f)return u(!0),()=>u(!1)},[f,u]),e.createElement(`div`,{ref:o,"data-slot":`dialog-header`,className:Z($t(),a),...s},t!=null&&e.createElement(`span`,{"data-slot":`dialog-header-icon`,"aria-hidden":`true`,className:en()},e.createElement(w.Provider,{value:{weight:`fill`}},t)),e.createElement(`div`,{className:Z(tn(),i&&t==null&&`pr-8`)},e.createElement(`h2`,{id:c,className:`display-04 text-foreground`},n),f&&e.createElement(`p`,{id:l,className:`body-03 text-foreground-muted`},r)),i&&e.createElement(`button`,{type:`button`,"data-slot":`dialog-header-close`,"aria-label":`Close`,className:nn(),onClick:()=>d(!1)},e.createElement(L,{weight:`regular`})))}function hn({className:t,children:n,ref:r,...i}){return e.createElement(`div`,{ref:r,"data-slot":`dialog-body`,className:Z(rn(),qt(),t),...i},n)}function gn({className:t,children:n,ref:r,...i}){return e.createElement(`div`,{ref:r,"data-slot":`dialog-footer`,className:Z(an(),t),...i},n)}var _n={Root:cn,Trigger:dn,Content:pn,Header:mn,Body:hn,Footer:gn,Close:fn},vn=Q(`flex h-16 items-center gap-3 px-4 py-3 bg-card-background no-underline`,{variants:{interactive:{true:[`cursor-pointer transition-colors hover:bg-card-accent`,`outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-solid focus-visible:outline-focus`],false:``}},defaultVariants:{interactive:!1}}),yn=Q(`flex shrink-0 items-center text-card-foreground [&_svg]:size-6 [&_svg]:shrink-0`),bn=Q(`flex shrink-0 items-center text-card-foreground-muted [&_svg]:size-6 [&_svg]:shrink-0`),xn=Q(`flex min-w-0 flex-1 flex-col`),Sn=Q(`flex min-w-0 items-center gap-0.5`),Cn=Q(`flex shrink-0 items-center text-card-foreground-muted [&_svg]:size-4 [&_svg]:shrink-0`);function wn(e,t){typeof e==`function`?e(t):e&&(e.current=t)}function Tn({title:t,subtitle:n,leading:r,trailing:i,caret:a=!0,asChild:o=!1,href:s,className:c,children:l,ref:u,...d}){let f=o||s!=null,p=e.createElement(e.Fragment,null,r!=null&&e.createElement(`span`,{"data-slot":`feature-card-leading`,"aria-hidden":`true`,className:yn()},r),e.createElement(`span`,{"data-slot":`feature-card-text`,className:xn()},e.createElement(`span`,{className:Sn()},e.createElement(`span`,{className:`body-02-medium truncate text-card-foreground`},t),a&&e.createElement(`span`,{"data-slot":`feature-card-caret`,"aria-hidden":`true`,className:Cn()},e.createElement(D,null))),n!=null&&e.createElement(`span`,{className:`body-03 truncate text-card-foreground-muted`},n)),i!=null&&e.createElement(`span`,{"data-slot":`feature-card-trailing`,"aria-hidden":`true`,className:bn()},i)),m=Z(vn({interactive:f}),c);if(o){if(!e.isValidElement(l))throw Error("FeatureCard: `asChild` requires a single React element child");let t=l,n=t.props;return e.cloneElement(t,{...d,...n,"data-slot":`feature-card`,ref:e=>{wn(u,e),wn(n.ref,e)},className:Z(m,n.className),onClick:e=>{d.onClick?.(e),n.onClick?.(e)},style:{...d.style,...n.style}},p,n.children)}return s==null?e.createElement(`div`,{"data-slot":`feature-card`,className:m,ref:u,...d},p):e.createElement(`a`,{"data-slot":`feature-card`,href:s,className:m,ref:u,...d},p)}var En=Q([`flex flex-col`,`bg-card-background border border-card-border rounded-sm shadow-s`,`py-1`,`overflow-y-auto`,`outline-none`]),Dn=Q([`flex flex-col min-h-0`,`bg-card-background border border-card-border rounded-sm shadow-s`,`overflow-hidden`,`outline-none`]),On=Q([`flex flex-col min-h-0 flex-1`,`py-1`,`overflow-y-auto`,`outline-none`]),kn=Q([`shrink-0`,`border-t border-t-card-border`,`px-3 py-1`]),An=Q([`body-03`,`flex w-full items-center gap-2`,`px-3 py-2`,`cursor-pointer select-none`,`transition-colors`,`border-l-3`,`border-r-3 border-r-transparent`],{variants:{active:{true:``,false:``},selected:{true:``,false:``},multiple:{true:``,false:``},disabled:{true:`cursor-not-allowed`,false:``}},compoundVariants:[{disabled:!0,className:`text-foreground-muted`},{disabled:!1,selected:!1,className:`text-foreground`},{disabled:!1,selected:!0,multiple:!0,className:`text-foreground`},{disabled:!1,selected:!0,multiple:!1,className:`text-card-brand-foreground`},{selected:!1,className:`border-l-transparent`},{selected:!0,multiple:!0,className:`border-l-transparent`},{selected:!0,multiple:!1,className:`border-l-card-brand-border-accent`},{active:!0,selected:!1,className:`bg-card-accent`},{active:!0,selected:!0,multiple:!0,className:`bg-card-accent`},{selected:!0,multiple:!1,className:`bg-card-brand-accent`}],defaultVariants:{active:!1,selected:!1,multiple:!1,disabled:!1}}),jn=4,Mn=8,Nn=208;function Pn(e,t,n){let r=e.bottom+t>n&&e.top>t;return{left:e.left,width:e.width,top:r?e.top-t:e.bottom,placement:r?`top`:`bottom`}}function Fn(e,t,n,r,i){if(t===`trigger`)return{left:e.left,width:e.width};let a=r-2*i,o=r-i-n;return{left:Math.max(i,Math.min(e.left,o)),minWidth:e.width,maxWidth:a}}function In({id:n,options:r,selected:i,multiple:a,activeIndex:o,anchorRect:s,widthMode:c=`trigger`,onSelect:l,onActiveChange:u,footer:d,"aria-label":f,"aria-labelledby":p}){let m=e.useRef(null),h=e.useRef(null),g=d!=null,[_,v]=e.useState(null);e.useLayoutEffect(()=>{if(s==null){v(null);return}let e=g?h.current:m.current,t=e?e.offsetHeight:0,n=Pn(s,Math.min(t||Nn,Nn),window.innerHeight),r=Fn(s,c,e?e.offsetWidth:0,window.innerWidth,Mn);v({position:`absolute`,top:n.top+window.scrollY+(n.placement===`bottom`?jn:-4),left:r.left+window.scrollX,...c===`trigger`?{width:r.width}:{width:`max-content`,minWidth:r.minWidth,maxWidth:r.maxWidth},maxHeight:`var(--container-4xs)`,zIndex:50})},[s,c,g]),e.useLayoutEffect(()=>{o<0||(m.current?.querySelector(`#${CSS.escape(`${n}-opt-${o}`)}`))?.scrollIntoView?.({block:`nearest`})},[o,n]);let y=_??(c===`auto`?{position:`absolute`,visibility:`hidden`,width:`max-content`}:{position:`absolute`,visibility:`hidden`}),b=e.createElement(e.Fragment,null,r.map((t,r)=>{let s=i.includes(t.value),c=r===o,d=t.disabled===!0,f=s&&!a?`text-card-brand-foreground`:`text-foreground-muted`;return e.createElement(`li`,{key:t.value,id:`${n}-opt-${r}`,role:`option`,"aria-selected":s,"aria-disabled":d||void 0,"data-slot":`select-option`,"data-active":c||void 0,className:An({active:c,selected:s,multiple:a,disabled:d}),onMouseEnter:()=>{d||u(r)},onMouseDown:e=>{e.preventDefault(),d||l(t.value)}},a&&e.createElement(Kt,{checked:s,disabled:!0,tabIndex:-1,"aria-hidden":`true`,"data-slot":`select-option-checkbox`,className:Z(`pointer-events-none disabled:border-border`,`checked:disabled:bg-brand-primary-background checked:disabled:border-brand-primary-border`),wrapperClassName:`[&_[data-slot=checkbox-indicator]]:text-brand-primary-foreground`}),t.leadingSlot!=null&&e.createElement(`span`,{"data-slot":`select-option-leading`,"aria-hidden":`true`,className:Z(`flex shrink-0 items-center [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0`,f)},t.leadingSlot),e.createElement(`span`,{className:`min-w-0 flex-1 truncate`},t.label),t.trailingSlot!=null&&e.createElement(`span`,{"data-slot":`select-option-trailing`,"aria-hidden":`true`,className:Z(`flex shrink-0 items-center [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0`,f)},t.trailingSlot))}));return g?(0,t.createPortal)(e.createElement(`div`,{ref:h,"data-slot":`select-listbox-panel`,className:Dn(),style:y},e.createElement(`ul`,{ref:m,id:n,role:`listbox`,"aria-multiselectable":a||void 0,"aria-label":f,"aria-labelledby":p,"data-slot":`select-listbox`,className:Z(On(),qt())},b),e.createElement(`div`,{"data-slot":`select-listbox-footer`,className:kn()},d)),document.body):(0,t.createPortal)(e.createElement(`ul`,{ref:m,id:n,role:`listbox`,"aria-multiselectable":a||void 0,"aria-label":f,"aria-labelledby":p,"data-slot":`select-listbox`,className:Z(En(),qt()),style:y},b),document.body)}var Ln=Q([`flex w-full items-center`,`transition-colors`,`cursor-text`,`has-[:disabled]:cursor-not-allowed`],{variants:{variation:{field:[`bg-input-background border border-input-border rounded-sm`,`focus-within:border-input-border-accent`],line:[`border-b border-input-border`,`focus-within:border-input-border-accent`]},size:{sm:`h-8 gap-1`,lg:`h-10 gap-2`},error:{true:`border-input-destructive-foreground-accent focus-within:border-input-destructive-foreground-accent`,false:``},showBottomLine:{true:``,false:``}},compoundVariants:[{variation:`field`,size:`lg`,className:`px-3 py-2`},{variation:`field`,size:`sm`,className:`px-2 py-2`},{variation:`line`,size:`lg`,className:`py-2`},{variation:`line`,size:`sm`,className:`py-2.5`},{variation:`line`,showBottomLine:!1,error:!1,className:`border-transparent`}],defaultVariants:{variation:`field`,size:`lg`,error:!1,showBottomLine:!0}});function Rn(e,t,n){if(t.length===0)return{text:n,isPlaceholder:!0};if(t.length===1){let r=e.find(e=>e.value===t[0]);return{text:r?.label??n,isPlaceholder:r==null}}return{text:`${t.length} selected`,isPlaceholder:!1}}function zn({variation:t=`field`,error:n=!1,showBottomLine:r=!0,open:i=!1,displayText:a,isPlaceholder:o,label:s,hint:c,leadingSlot:l,id:u,hintId:d,disabled:f,className:p,wrapperClassName:m,fieldClassName:h,ref:g,..._}){let v=Z(n?`text-input-destructive-foreground-accent`:`text-input-foreground`,f&&`text-input-foreground-muted`),y=n?ee:N;return e.createElement(`div`,{className:Z(`flex flex-col gap-1.5`,m)},s!=null&&e.createElement(`label`,{htmlFor:u,"data-slot":`select-label`,className:Z(`caption-03-medium uppercase`,n?`text-input-destructive-foreground-accent`:`text-input-foreground`,f&&`text-input-foreground-muted`)},s),e.createElement(`button`,{type:`button`,id:u,ref:g,role:`combobox`,"data-slot":`select-trigger`,"data-variation":t,"data-error":n||void 0,disabled:f,"aria-invalid":n||void 0,"aria-describedby":d,className:Z(Ln({variation:t,size:`lg`,error:n,showBottomLine:r}),`cursor-pointer disabled:cursor-not-allowed`,`outline-none`,`text-left`,`[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,v,h,p),..._},l!=null&&e.createElement(`span`,{"data-slot":`select-leading`,"aria-hidden":`true`,className:`flex items-center`},l),e.createElement(`span`,{"data-slot":`select-value`,className:Z(`body-03 w-full min-w-0 truncate`,o?`text-input-foreground-muted`:`text-input-foreground-accent`,f&&`text-input-foreground-muted`)},a),e.createElement(`span`,{"data-slot":`select-trailing`,"aria-hidden":`true`,className:`flex items-center`},e.createElement(E,{weight:`fill`,className:Z(`size-3 transition-transform`,i&&`rotate-180`)}))),c!=null&&e.createElement(`p`,{id:d,"data-slot":`select-hint`,className:Z(`body-04 flex items-center gap-1`,n?`text-input-destructive-foreground-accent`:`text-input-foreground`,f&&`text-input-foreground-muted`)},e.createElement(y,{"aria-hidden":`true`,weight:`regular`,className:`size-4 shrink-0`}),c))}var Bn=500;function Vn(e,t,n){for(let r=t+n;r>=0&&r<e.length;r+=n)if(!e[r].disabled)return r;return t}function Hn(e){return e.findIndex(e=>!e.disabled)}function Un(e){return e==null?[]:Array.isArray(e)?e:[e]}function Wn(t){let{options:n,value:r,defaultValue:i,onValueChange:a,multiple:o=!1,disabled:s=!1,closeOnSelect:c=!0,id:l,ref:u,placeholder:d=`Select`}=t,f=`${l}-listbox`,p=r!==void 0,[m,h]=e.useState(()=>Un(i)),g=p?Un(r):m,[_,v]=e.useState(!1),[y,b]=e.useState(-1),[x,S]=e.useState(null),C=e.useRef(null),w=e.useCallback(e=>{C.current=e,typeof u==`function`?u(e):u!=null&&(u.current=e)},[u]),T=e.useRef({buffer:``,at:0}),E=e=>{p||h(e),a?.(o?e:e[0]??``)},D=e.useCallback(()=>{let e=C.current;e&&S(e.getBoundingClientRect())},[]),O=e.useCallback(()=>{D();let e=n.findIndex(e=>g.includes(e.value));b(e>=0?e:Hn(n)),v(!0)},[D,n,g]),k=e.useCallback(e=>{v(!1),b(-1),S(null),e&&C.current?.focus()},[]),A=e=>{if(o){let t=g.includes(e)?g.filter(t=>t!==e):[...g,e];E(t);let r=n.findIndex(t=>t.value===e);r>=0&&b(r)}else if(E([e]),c)k(!0);else{let t=n.findIndex(t=>t.value===e);t>=0&&b(t)}},j=()=>{E([])};e.useEffect(()=>{if(!_)return;let e=()=>D();return window.addEventListener(`scroll`,e,!0),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`scroll`,e,!0),window.removeEventListener(`resize`,e)}},[_,D]),e.useEffect(()=>{if(!_)return;let e=e=>{let t=e.target,n=C.current,r=document.getElementById(f),i=r?.closest(`[data-slot=select-listbox-panel]`)??r;n?.contains(t)||i?.contains(t)||k(!1)};return document.addEventListener(`pointerdown`,e),()=>document.removeEventListener(`pointerdown`,e)},[_,f,k]);let M=e=>{if(!s)switch(e.key){case`ArrowDown`:e.preventDefault(),_?b(e=>Vn(n,e<0?-1:e,1)):O();return;case`ArrowUp`:e.preventDefault(),_?b(e=>e<0?Hn(n):Vn(n,e,-1)):O();return;case`Home`:if(!_)return;e.preventDefault(),b(Hn(n));return;case`End`:if(!_)return;e.preventDefault(),b(Vn(n,n.length,-1));return;case`Enter`:case` `:e.preventDefault(),_?y>=0&&!n[y]?.disabled&&A(n[y].value):O();return;case`Escape`:_&&(e.preventDefault(),k(!0));return;case`Tab`:_&&k(!1);return;default:if(e.key.length===1&&!e.metaKey&&!e.ctrlKey&&!e.altKey){_||O();let t=typeof performance<`u`?performance.now():Date.now(),r=T.current;r.buffer=t-r.at>Bn?e.key:r.buffer+e.key,r.at=t;let i=r.buffer.toLowerCase(),a=n.findIndex(e=>!e.disabled&&e.label.toLowerCase().startsWith(i));a>=0&&b(a)}}},N=()=>{s||(_?k(!0):O())},{text:P,isPlaceholder:F}=Rn(n,g,d),I=_&&y>=0?`${f}-opt-${y}`:void 0;return{selected:g,open:_,setTriggerRef:w,listboxId:f,activeId:I,triggerProps:{onClick:N,onKeyDown:M,"aria-haspopup":`listbox`,"aria-expanded":_,"aria-controls":_?f:void 0,"aria-activedescendant":I},listboxProps:{id:f,options:n,selected:g,multiple:o,activeIndex:y,anchorRect:x,onSelect:A,onActiveChange:b},closeListbox:k,text:P,isPlaceholder:F,reset:j}}function Gn({options:t,value:n,defaultValue:r,onValueChange:i,multiple:a=!1,variation:o=`field`,placeholder:s=`Select`,label:c,error:l=!1,hint:u,leadingSlot:d,showBottomLine:f=!0,disabled:p,id:m,className:h,wrapperClassName:g,fieldClassName:_,ref:v,...y}){let b=e.useId(),x=m??b,S=u==null?void 0:`${x}-hint`,{open:C,setTriggerRef:w,triggerProps:T,listboxProps:E,text:D,isPlaceholder:O}=Wn({options:t,value:n,defaultValue:r,onValueChange:i,multiple:a,disabled:p,id:x,ref:v,placeholder:s});return e.createElement(e.Fragment,null,e.createElement(zn,{ref:w,id:x,variation:o,error:l,showBottomLine:f,open:C,displayText:D,isPlaceholder:O,label:c,hint:u,hintId:S,leadingSlot:d,disabled:p,className:h,wrapperClassName:g,fieldClassName:_,...T,...y}),C&&e.createElement(In,{...E,"aria-labelledby":c==null?void 0:x,"aria-label":c==null?y[`aria-label`]:void 0}))}var Kn=Q([`inline-flex h-10 w-fit shrink-0 items-center gap-1.5`,`rounded-sm px-3`,`cursor-pointer text-left align-middle transition-colors`,`bg-card-primary-background border border-card-primary-border`,`outline-none`,`focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus`,`[&_svg]:pointer-events-none [&_svg]:shrink-0`],{variants:{disabled:{true:`cursor-not-allowed focus-visible:outline-none`,false:``}},defaultVariants:{disabled:!1}}),qn=Q([`inline-flex h-5 min-w-5 items-center justify-center px-0.5`,`rounded-xs bg-brand-primary-background`,`body-04 text-brand-primary-foreground`]);function Jn({displayText:t,count:n=0,open:r=!1,disabled:i=!1,id:a,className:o,ref:s,...c}){let l=r?O:E,u=i?`text-card-primary-foreground-muted`:r?`text-card-primary-foreground`:`text-card-primary-foreground-muted group-hover:text-card-primary-foreground`;return e.createElement(`button`,{type:`button`,id:a,ref:s,role:`combobox`,"data-slot":`filter-trigger`,"data-open":r||void 0,disabled:i,className:Z(`group`,Kn({disabled:i}),o),...c},e.createElement(`span`,{"data-slot":`filter-label`,className:Z(`body-03 truncate`,i?`text-card-primary-foreground-muted`:`text-card-primary-foreground`)},t),n>0&&e.createElement(`span`,{"data-slot":`filter-count`,"aria-hidden":`true`,className:qn()},n),e.createElement(`span`,{"data-slot":`filter-caret`,"aria-hidden":`true`,className:`flex items-center`},e.createElement(l,{weight:`fill`,className:Z(`size-3 transition-transform`,u)})))}function Yn({options:t,value:n,defaultValue:r,onValueChange:i,multiple:a=!1,label:o,disabled:s,id:c,className:l,ref:u,...d}){let f=e.useId(),p=c??f,{selected:m,open:h,setTriggerRef:g,triggerProps:_,listboxProps:v,reset:y,text:b}=Wn({options:t,value:n,defaultValue:r,onValueChange:i,multiple:a,disabled:s,closeOnSelect:!1,id:p,ref:u,placeholder:o}),x=a?o:b,S=a?m.length:0,C=m.length>0;return e.createElement(e.Fragment,null,e.createElement(Jn,{ref:g,id:p,displayText:x,count:S,open:h,disabled:s,"aria-label":o,className:l,..._,...d}),h&&e.createElement(In,{...v,widthMode:`auto`,"aria-label":o,footer:e.createElement(`button`,{type:`button`,"data-slot":`filter-reset`,disabled:!C,onClick:()=>{C&&y()},className:Z(`button-01 inline-flex h-8 items-center rounded-xs bg-transparent`,`outline-none transition-colors`,`focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus`,C?`cursor-pointer text-button-secondary-foreground hover:text-button-secondary-foreground-accent`:`cursor-not-allowed text-button-secondary-foreground-muted`)},`Reset`)}))}var Xn=Q([`inline-flex w-fit items-center gap-1`,`cursor-pointer bg-transparent p-0 text-left align-middle`,`transition-colors`,`rounded-xs outline-none`,`focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus`,`[&_svg]:pointer-events-none [&_svg]:shrink-0`],{variants:{variation:{primary:``,secondary:``},disabled:{true:`cursor-not-allowed focus-visible:outline-none`,false:``}},defaultVariants:{variation:`primary`,disabled:!1}});function Zn({variation:t=`primary`,disabled:n=!1,displayText:r,isPlaceholder:i,open:a=!1,leadingSlot:o,className:s,ref:c,...l}){let u=t===`secondary`?`text-card-brand-secondary-foreground`:`text-card-primary-foreground`,d=t===`secondary`?`text-card-brand-secondary-foreground-muted`:`text-card-primary-foreground-muted`,f=n||i?d:u;return e.createElement(`button`,{type:`button`,ref:c,role:`combobox`,"data-slot":`inline-select-trigger`,"data-variation":t,disabled:n,className:Z(Xn({variation:t,disabled:n}),s),...l},o!=null&&e.createElement(`span`,{"data-slot":`inline-select-leading`,"aria-hidden":`true`,className:Z(`flex items-center [&_svg:not([class*='size-'])]:size-4`,f)},o),e.createElement(`span`,{"data-slot":`inline-select-value`,className:Z(`body-03 truncate`,f)},r),e.createElement(`span`,{"data-slot":`inline-select-caret`,"aria-hidden":`true`,className:`flex items-center`},e.createElement(E,{weight:`fill`,className:Z(`size-3 transition-transform`,d,a&&`rotate-180`)})))}function Qn({options:t,value:n,defaultValue:r,onValueChange:i,variation:a=`primary`,placeholder:o=`Select`,leadingSlot:s,disabled:c,name:l,id:u,className:d,ref:f,...p}){let m=e.useId(),h=u??m,{selected:g,open:_,setTriggerRef:v,triggerProps:y,listboxProps:b,text:x,isPlaceholder:S}=Wn({options:t,value:n,defaultValue:r,onValueChange:i?e=>i(Array.isArray(e)?e[0]??``:e):void 0,multiple:!1,disabled:c,id:h,ref:f,placeholder:o});return e.createElement(e.Fragment,null,e.createElement(Zn,{ref:v,id:h,variation:a,open:_,displayText:x,isPlaceholder:S,leadingSlot:s,disabled:c,className:d,...y,...p}),l!=null&&e.createElement(`input`,{type:`hidden`,name:l,value:g[0]??``}),_&&e.createElement(In,{...b,widthMode:`auto`,"aria-label":p[`aria-label`]}))}function $n({className:t,fieldClassName:n,wrapperClassName:r,variation:i=`field`,size:a=`lg`,error:o=!1,showBottomLine:s=!0,label:c,optional:l=!1,hint:u,leftSlot:d,rightSlot:f,disabled:p,id:m,ref:h,...g}){let _=e.useId(),v=m??_,y=u?`${v}-hint`:void 0,b=Z(o?`text-input-destructive-foreground-accent`:`text-input-foreground`,p&&`text-input-foreground-muted`),x=o?ee:N;return e.createElement(`div`,{className:Z(`flex flex-col gap-1.5`,r)},c!=null&&e.createElement(`div`,{className:`flex items-center justify-between`},e.createElement(`label`,{htmlFor:v,"data-slot":`input-label`,className:Z(`caption-03-medium uppercase`,o?`text-input-destructive-foreground-accent`:`text-input-foreground`,p&&`text-input-foreground-muted`)},c),l&&e.createElement(`span`,{"data-slot":`input-optional`,className:`body-04 text-input-foreground-muted`},`Optional`)),e.createElement(`div`,{"data-slot":`input-field`,"data-variation":i,"data-error":o||void 0,className:Z(Ln({variation:i,size:a,error:o,showBottomLine:s}),`[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,b,n)},d!=null&&e.createElement(`span`,{"data-slot":`input-leading`,"aria-hidden":`true`,className:`flex items-center`},d),e.createElement(`input`,{id:v,"data-slot":`input`,disabled:p,"aria-invalid":o||void 0,"aria-describedby":y,className:Z(`body-03 w-full min-w-0 bg-transparent outline-none`,`text-input-foreground-accent caret-input-foreground-accent`,`placeholder:text-input-foreground-muted`,`disabled:cursor-not-allowed disabled:text-input-foreground-muted`,t),ref:h,...g}),f!=null&&e.createElement(`span`,{"data-slot":`input-trailing`,className:`flex items-center`},f)),u!=null&&e.createElement(`p`,{id:y,"data-slot":`input-hint`,className:Z(`body-04 flex items-center gap-1`,o?`text-input-destructive-foreground-accent`:`text-input-foreground`,p&&`text-input-foreground-muted`)},e.createElement(x,{"aria-hidden":`true`,weight:`regular`,className:`size-4 shrink-0`}),u))}var er=Q([`flex w-80 flex-col gap-4 rounded-md border border-card-border bg-card-background p-5`]),tr=Q([`flex items-start gap-4`]),nr=Q([`flex min-w-0 flex-1 items-center gap-3`]),rr=Q([`flex items-center text-card-foreground [&_svg]:size-6 [&_svg]:shrink-0`]),ir=Q([`flex min-w-0 flex-col`]),ar=Q([`flex shrink-0 cursor-pointer items-center justify-center rounded-xs`,`text-card-foreground-muted transition-colors hover:text-card-foreground`,`[&_svg]:size-4 [&_svg]:shrink-0`,`outline-none focus-visible:text-card-foreground focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus`]),or=Q([`text-card-foreground`]),sr=Q([`flex items-start gap-2`]),cr=e.createContext(null);function lr(){return e.useContext(cr)}function ur({className:t,children:n,ref:r,"aria-label":i,"aria-labelledby":a,...o}){let s=`${e.useId()}-title`,[c,l]=e.useState(!1),u=c?s:a,d=!!(u||i),f={titleId:s,setHasTitle:l};return e.createElement(cr.Provider,{value:f},e.createElement(`div`,{ref:r,role:d?`region`:void 0,"aria-label":i,"aria-labelledby":u,"data-slot":`panel`,className:Z(er(),t),...o},n))}function dr({icon:t,title:n,description:r,showClose:i=!0,onClose:a,className:o,ref:s,...c}){let l=lr(),u=l?.titleId,d=l?.setHasTitle,f=r!=null;return e.useEffect(()=>{if(d)return d(!0),()=>d(!1)},[d]),e.createElement(`div`,{ref:s,"data-slot":`panel-header`,className:Z(tr(),o),...c},e.createElement(`div`,{className:nr()},t!=null&&e.createElement(`span`,{"data-slot":`panel-header-icon`,"aria-hidden":`true`,className:rr()},t),e.createElement(`div`,{className:ir()},e.createElement(`p`,{id:u,className:`body-02-medium text-card-foreground`},n),f&&e.createElement(`p`,{className:`body-03 text-card-foreground-muted`},r))),i&&e.createElement(`button`,{type:`button`,"data-slot":`panel-header-close`,"aria-label":`Close`,className:ar(),onClick:()=>a?.()},e.createElement(L,{weight:`regular`})))}function fr({className:t,children:n,ref:r,...i}){return e.createElement(`div`,{ref:r,"data-slot":`panel-body`,className:Z(or(),t),...i},n)}function pr({className:t,children:n,ref:r,...i}){return e.createElement(`div`,{ref:r,"data-slot":`panel-footer`,className:Z(sr(),t),...i},n)}var mr={Root:ur,Header:dr,Body:fr,Footer:pr},hr=Q([`flex h-10 min-w-0 items-center gap-1 py-3`,`body-03`],{variants:{variant:{title:`justify-start text-card-foreground-muted`,content:`justify-end text-card-foreground`}},defaultVariants:{variant:`title`}}),gr=Q([`grid grid-cols-2`],{variants:{last:{false:`border-b border-card-border`,true:``}},defaultVariants:{last:!1}});function _r({className:t,last:n=!1,children:r,ref:i,...a}){return e.createElement(`div`,{"data-slot":`property-grid-item`,className:Z(gr({last:n}),t),ref:i,...a},r)}function vr({variant:t,className:n,leading:r,trailing:i,children:a,ref:o,...s}){let c=`flex shrink-0 items-center text-card-foreground-muted [&_svg]:size-4`;return e.createElement(`div`,{"data-slot":`property-grid-${t}`,className:Z(hr({variant:t}),n),ref:o,...s},r!=null&&e.createElement(`span`,{"data-slot":`property-grid-${t}-leading`,className:c},r),a!=null&&e.createElement(`span`,{className:`min-w-0 truncate`},a),i!=null&&e.createElement(`span`,{"data-slot":`property-grid-${t}-trailing`,className:c},i))}function yr(e){return React.createElement(vr,{variant:`title`,...e})}function br(e){return React.createElement(vr,{variant:`content`,...e})}var xr=Q([`peer size-5 shrink-0 appearance-none rounded-full border`,`cursor-pointer transition-colors`,`bg-background border-border`,`hover:border-border-accent`,`outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-solid focus-visible:outline-focus`,`checked:bg-brand-primary-background checked:border-brand-primary-border`,`checked:hover:bg-brand-primary-accent checked:hover:border-brand-primary-border`,`checked:focus-visible:bg-brand-primary-accent checked:focus-visible:border-brand-primary-border`,`disabled:pointer-events-none disabled:cursor-not-allowed disabled:border-border-muted`,`checked:disabled:bg-background checked:disabled:border-border-muted`]);function Sr({className:t,wrapperClassName:n,onChange:r,onCheckedChange:i,...a}){let o=e=>{r?.(e),i?.(e.currentTarget.checked)};return e.createElement(`span`,{className:Z(`relative inline-flex shrink-0`,n)},e.createElement(`input`,{type:`radio`,"data-slot":`radio`,className:Z(xr(),t),...a,onChange:o}),e.createElement(j,{"aria-hidden":`true`,weight:`fill`,"data-slot":`radio-indicator`,className:Z(`pointer-events-none invisible absolute inset-0 m-auto size-3`,`text-brand-primary-foreground`,`peer-checked:visible peer-disabled:text-foreground-muted`)}))}function Cr(t,n){let r=e.useRef(t),i=e.useRef(n);r.current=t,i.current=n;let a=e.useRef(null),o=e.useMemo(()=>{let e=()=>{a.current!==null&&(clearTimeout(a.current),a.current=null)},t=(...t)=>{e(),a.current=setTimeout(()=>{a.current=null,r.current(...t)},i.current)};return t.cancel=e,t.flush=(...t)=>{e(),r.current(...t)},t},[]);return e.useEffect(()=>()=>{a.current!==null&&(clearTimeout(a.current),a.current=null)},[]),o}var wr=300;function Tr({onSearch:t,debounceMs:n=wr,hint:r,wrapperClassName:i,fieldClassName:a,className:o,disabled:s,value:c,defaultValue:l,onChange:u,onKeyDown:d,ref:f,...p}){let m=c!==void 0,h=e.useRef(null),g=e.useCallback(e=>{h.current=e,typeof f==`function`?f(e):f&&(f.current=e)},[f]),[_,v]=e.useState(()=>String(c??l??``).length>0),y=m?String(c??``).length>0:_,b=Cr(e=>{t?.(e)},n),x=e=>{u?.(e),m||v(e.currentTarget.value.length>0),b(e.currentTarget.value)},S=e=>{d?.(e),e.key===`Enter`&&b.flush(e.currentTarget.value)},C=()=>{let e=h.current;e&&((Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,`value`)?.set)?.call(e,``),e.dispatchEvent(new Event(`input`,{bubbles:!0})),m||v(!1),b.cancel(),t?.(``),e.focus())},w=y&&!s;return e.createElement($n,{type:`search`,variation:`field`,size:`lg`,ref:g,disabled:s,hint:r,value:c,defaultValue:l,onChange:x,onKeyDown:S,className:Z(`[&::-webkit-search-cancel-button]:hidden`,o),wrapperClassName:i,fieldClassName:a,leftSlot:e.createElement(P,{weight:`regular`}),rightSlot:w?e.createElement(`button`,{type:`button`,"aria-label":`Clear search`,onClick:C,"data-slot":`search-clear`,className:Z(`inline-flex cursor-pointer items-center justify-center rounded-xs bg-transparent p-0 text-current`,`outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-solid focus-visible:outline-focus`)},e.createElement(L,{weight:`regular`,"aria-hidden":`true`})):void 0,...p})}var Er=Q([`group flex h-9 w-full items-center rounded-xs border-l-2 border-transparent px-3`,`no-underline transition-colors outline-none`],{variants:{active:{true:`bg-brand-background border-brand-border`,false:``},interactive:{true:[`cursor-pointer`,`focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-solid focus-visible:outline-focus`],false:``}},compoundVariants:[{active:!1,interactive:!0,class:`hover:bg-background`}],defaultVariants:{active:!1,interactive:!1}}),Dr=Q([`button-01 min-w-0 flex-1 truncate`],{variants:{active:{true:`text-brand-foreground`,false:`text-foreground-muted`},interactive:{true:``,false:``}},compoundVariants:[{active:!1,interactive:!0,class:`group-hover:text-foreground`}],defaultVariants:{active:!1,interactive:!1}});function Or(e,t){typeof e==`function`?e(t):e&&(e.current=t)}function kr({active:t=!1,asChild:n=!1,href:r,className:i,children:a,ref:o,...s}){let c=n||r!=null,l=Z(Er({active:t,interactive:c}),i),u=n=>e.createElement(`span`,{"data-slot":`sidebar-item-label`,className:Dr({active:t,interactive:c})},n),d=t?`active`:void 0,f=t?`page`:void 0;if(n){if(!e.isValidElement(a))throw Error("SidebarItem: `asChild` requires a single React element child");let t=a,n=t.props;return e.cloneElement(t,{...s,...n,"data-slot":`sidebar-item`,"data-state":d,"aria-current":f,className:Z(l,n.className),ref:e=>{Or(o,e),Or(n.ref,e)},onClick:e=>{s.onClick?.(e),n.onClick?.(e)},style:{...s.style,...n.style}},u(n.children))}return r==null?e.createElement(`div`,{"data-slot":`sidebar-item`,"data-state":d,"aria-current":f,className:l,ref:o,...s},u(a)):e.createElement(`a`,{"data-slot":`sidebar-item`,"data-state":d,"aria-current":f,href:r,className:l,ref:o,...s},u(a))}var Ar=Q([`group overflow-hidden rounded-md border border-border bg-card-background`,`has-[:checked]:border-brand-primary-border`,`has-[:disabled]:opacity-60`]),jr=Q([`flex h-16 items-center gap-3 bg-card-background px-4 py-3`,`cursor-pointer has-[:disabled]:cursor-not-allowed`],{variants:{editable:{true:`group-has-[:checked]:border-b group-has-[:checked]:border-border`,false:``}},defaultVariants:{editable:!1}}),Mr=Q(`flex min-w-0 flex-1 flex-col`),Nr=Q(`flex shrink-0 items-center text-card-foreground-muted [&_svg]:size-6 [&_svg]:shrink-0`),Pr=Q(`hidden bg-card-accent p-4 group-has-[:checked]:block`);function Fr({title:t,subtitle:n,trailing:r,variation:i=`basic`,children:a,className:o,ref:s,...c}){let l=i===`editable`;return e.createElement(`div`,{"data-slot":`selectable-feature-card`,className:Z(Ar(),o)},e.createElement(`label`,{className:jr({editable:l})},e.createElement(Sr,{ref:s,...c}),e.createElement(`span`,{"data-slot":`selectable-feature-card-text`,className:Mr()},e.createElement(`span`,{className:`body-02-medium truncate text-card-foreground`},t),n!=null&&e.createElement(`span`,{className:`body-03 truncate text-card-foreground-muted`},n)),r!=null&&e.createElement(`span`,{"data-slot":`selectable-feature-card-trailing`,"aria-hidden":`true`,className:Nr()},r)),l&&e.createElement(`div`,{"data-slot":`selectable-feature-card-bottom`,className:Pr()},a))}var Ir=Q([`peer inline-flex h-6 w-14 shrink-0 items-center rounded-full border p-1`,`appearance-none cursor-pointer transition-colors`,`bg-button-secondary-background border-button-secondary-border`,`hover:border-button-secondary-border-accent`,`outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-solid focus-visible:outline-focus`,`checked:bg-brand-primary-background checked:border-transparent`,`checked:hover:bg-brand-primary-accent`,`disabled:pointer-events-none disabled:cursor-not-allowed disabled:border-button-secondary-border-muted`,`checked:disabled:bg-button-primary-muted checked:disabled:border-transparent`]);function Lr({className:t,wrapperClassName:n,onChange:r,onCheckedChange:i,...a}){let o=e=>{r?.(e),i?.(e.currentTarget.checked)};return e.createElement(`span`,{className:Z(`relative inline-flex shrink-0 items-center`,n)},e.createElement(`input`,{type:`checkbox`,role:`switch`,"data-slot":`switch`,className:Z(Ir(),t),...a,onChange:o}),e.createElement(`span`,{"aria-hidden":`true`,"data-slot":`switch-thumb`,className:Z(`pointer-events-none absolute left-1 h-4 w-6 rounded-full transition-transform`,`bg-button-secondary-foreground opacity-90`,`peer-checked:translate-x-5.5 peer-checked:bg-brand-primary-foreground peer-checked:opacity-100`,`peer-disabled:bg-button-secondary-foreground-muted peer-disabled:opacity-100`,`peer-checked:peer-disabled:bg-button-primary-foreground-muted`)}))}var Rr=Q([`group`,`flex h-14 w-full items-center gap-3 overflow-hidden px-2 py-4`,`appearance-none bg-transparent outline-none transition-colors`,`hover:bg-card-brand-accent focus-visible:bg-card-brand-accent data-[state=active]:bg-card-brand-accent`],{variants:{last:{false:[`border-b border-card-border`,`hover:border-card-brand-border-accent focus-visible:border-card-brand-border-accent data-[state=active]:border-card-brand-border-accent`],true:``}},defaultVariants:{last:!1}});function zr(e,t){typeof e==`function`?e(t):e&&(e.current=t)}function Br({className:t,last:n=!1,leading:r,trailing:i,active:a=!1,asChild:o=!1,children:s,ref:c,...l}){let u=Z(Rr({last:n}),t),d=a?`active`:void 0,f=r==null?null:e.createElement(`span`,{"data-slot":`table-cell-leading`,className:`flex shrink-0 items-center`},r),p=i==null?null:e.createElement(`span`,{"data-slot":`table-cell-trailing`,className:`flex shrink-0 items-center`},i),m=t=>t==null?null:e.createElement(`span`,{"data-slot":`table-cell-middle`,className:`flex min-w-0 flex-1 flex-col`},t);if(o){if(!e.isValidElement(s))throw Error("TableCell: `asChild` requires a single React element child");let t=s,n=t.props;return e.cloneElement(t,{...l,...n,"data-slot":`table-cell`,"data-state":d,className:Z(u,n.className),ref:e=>{zr(c,e),zr(n.ref,e)}},f,m(n.children),p)}return e.createElement(`div`,{"data-slot":`table-cell`,"data-state":d,className:u,ref:c,...l},f,m(s),p)}function Vr({label:t,meta:n,className:r,...i}){let a=Array.isArray(n)&&n.length>0;return e.createElement(`div`,{"data-slot":`cell-text`,className:Z(`flex min-w-0 flex-col gap-0.5`,r),...i},e.createElement(`span`,{"data-slot":`cell-text-label`,className:Z(`body-03 min-w-0 truncate`,`text-card-foreground`,`group-hover:text-card-brand-foreground group-focus-visible:text-card-brand-foreground group-data-[state=active]:text-card-brand-foreground`)},t),a&&e.createElement(`div`,{"data-slot":`cell-text-meta`,className:Z(`flex min-w-0 items-center gap-1`,`body-mono-04`,`text-card-foreground-muted`,`group-hover:text-card-brand-foreground-muted group-focus-visible:text-card-brand-foreground-muted group-data-[state=active]:text-card-brand-foreground-muted`)},n.map((t,n)=>e.createElement(e.Fragment,{key:n},n>0&&e.createElement(`span`,{"aria-hidden":`true`,className:`size-0.5 shrink-0 rounded-full bg-current`}),e.createElement(`span`,{className:`truncate`},t)))))}function Hr({className:t,children:n,ref:r,...i}){return e.createElement(`div`,{"data-slot":`table-title`,className:Z(`flex h-8 w-full items-center overflow-hidden border-b border-card-border px-2 py-1.5`,t),ref:r,...i},n!=null&&e.createElement(`p`,{"data-slot":`table-title-label`,className:`caption-03-medium min-w-0 truncate uppercase text-card-foreground-muted`},n))}var Ur=Q([`flex flex-col`]),Wr=Q([`inline-flex items-center`]),Gr=Q([`group inline-flex cursor-pointer items-center justify-center gap-1 px-2 py-2.5`,`body-03-medium border-b-2 transition-colors`,`outline-none focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus`,`[&_svg]:size-4 [&_svg]:shrink-0`,`disabled:cursor-not-allowed`],{variants:{selected:{true:`border-card-brand-border-accent text-foreground-accent`,false:`border-transparent text-foreground`},disabled:{true:`text-foreground-muted`,false:``}},compoundVariants:[{selected:!1,disabled:!1,className:`hover:border-card-brand-border active:border-card-brand-border-accent active:text-foreground-accent`},{selected:!0,disabled:!0,className:`border-card-brand-border`}],defaultVariants:{selected:!1,disabled:!1}}),Kr=Q([`outline-none focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus`]),qr=e.createContext(null);function Jr(t){let n=e.useContext(qr);if(n===null)throw Error(`${t} must be used within <Tabs.Root>`);return n}function Yr(e,t){typeof e==`function`?e(t):e&&(e.current=t)}function Xr({value:t,defaultValue:n,onValueChange:r,className:i,children:a,ref:o,...s}){let c=t!==void 0,[l,u]=e.useState(n),d=c?t:l,f=e=>{c||u(e),r?.(e)},p=e.useId(),m=e=>`${p}-tab-${e}`,h=e=>`${p}-panel-${e}`,[g,_]=e.useState([]),v=e.useCallback(e=>{_(t=>{let n=t.findIndex(t=>t.value===e.value);if(n===-1)return[...t,e];let r=[...t];return r[n]=e,r})},[]),y=e.useCallback(e=>{_(t=>t.filter(t=>t.value!==e))},[]),b=[...g].sort((e,t)=>e.node.compareDocumentPosition(t.node)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1),x=b.find(e=>!e.disabled)?.value,S={value:d,select:f,tabStopValue:d??x,registerTrigger:v,unregisterTrigger:y,onTriggerKeyDown:e=>{if(![`ArrowRight`,`ArrowLeft`,`Home`,`End`].includes(e.key))return;let t=b.filter(e=>!e.disabled);if(t.length===0)return;let n=t.findIndex(t=>t.node===e.currentTarget);if(n===-1)return;e.preventDefault();let r=n;switch(e.key){case`ArrowRight`:r=(n+1)%t.length;break;case`ArrowLeft`:r=(n-1+t.length)%t.length;break;case`Home`:r=0;break;case`End`:r=t.length-1;break}let i=t[r];i&&(i.node.focus(),f(i.value))},getTriggerId:m,getPanelId:h};return e.createElement(qr.Provider,{value:S},e.createElement(`div`,{ref:o,"data-slot":`tabs`,className:Z(Ur(),i),...s},a))}function Zr({className:t,children:n,ref:r,...i}){return Jr(`Tabs.List`),e.createElement(`div`,{ref:r,role:`tablist`,"data-slot":`tabs-list`,className:Z(Wr(),t),...i},n)}function Qr({value:t,disabled:n=!1,className:r,children:i,onClick:a,onKeyDown:o,ref:s,...c}){let{value:l,select:u,tabStopValue:d,registerTrigger:f,unregisterTrigger:p,onTriggerKeyDown:m,getTriggerId:h,getPanelId:g}=Jr(`Tabs.Trigger`),_=t===l,v=h(t),y=g(t),b=e.useRef(null),x=e=>{b.current=e,Yr(s,e)};return e.useEffect(()=>{let e=b.current;if(e)return f({value:t,disabled:n,node:e}),()=>p(t)},[f,p,t,n]),e.createElement(`button`,{...c,ref:x,type:`button`,role:`tab`,id:v,"data-slot":`tabs-trigger`,"data-state":_?`active`:`inactive`,"data-disabled":n||void 0,"aria-selected":_,"aria-controls":_?y:void 0,tabIndex:t===d?0:-1,disabled:n,className:Z(Gr({selected:_,disabled:n}),r),onClick:e=>{a?.(e),e.defaultPrevented||u(t)},onKeyDown:e=>{o?.(e),e.defaultPrevented||m(e)}},i)}function $r({value:t,className:n,children:r,ref:i,...a}){let{value:o,getTriggerId:s,getPanelId:c}=Jr(`Tabs.Content`);return t===o?e.createElement(`div`,{ref:i,role:`tabpanel`,id:c(t),"aria-labelledby":s(t),"data-slot":`tabs-content`,"data-state":`active`,tabIndex:0,className:Z(Kr(),n),...a},r):null}var ei={Root:Xr,List:Zr,Trigger:Qr,Content:$r},ti=Q(`flex items-center gap-4 rounded-sm bg-card-reversed-background px-5 py-4`),ni=Q(`flex shrink-0 items-center [&_svg]:size-5 [&_svg]:shrink-0`,{variants:{variation:{success:`text-success-primary-foreground`,error:`text-destructive-primary-foreground`}},defaultVariants:{variation:`success`}}),ri=Q([`flex shrink-0 cursor-pointer items-center rounded-xs text-card-reversed-foreground-muted`,`transition-colors hover:text-card-reversed-foreground`,`[&_svg]:size-5 [&_svg]:shrink-0`,`outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-solid focus-visible:outline-focus`]),ii={success:A,error:te};function ai({variation:t=`success`,children:n,onClose:r,className:i,ref:a,...o}){let s=ii[t];return e.createElement(`div`,{"data-slot":`toast`,role:t===`error`?`alert`:`status`,className:Z(ti(),i),ref:a,...o},e.createElement(`span`,{className:`flex min-w-0 flex-1 items-center gap-2`},e.createElement(`span`,{"data-slot":`toast-icon`,"aria-hidden":`true`,className:ni({variation:t})},e.createElement(s,{weight:`fill`})),e.createElement(`span`,{className:`body-03 min-w-0 flex-1 text-card-reversed-foreground`},n)),r&&e.createElement(`button`,{type:`button`,"data-slot":`toast-close`,"aria-label":`Dismiss`,className:ri(),onClick:r},e.createElement(L,{weight:`regular`})))}function oi({value:t,invalid:n=!1,disabled:r=!1,onRemove:i}){return e.createElement(`span`,{"data-slot":`token`,"data-invalid":n||void 0,tabIndex:r?void 0:0,onKeyDown:r?void 0:e=>{(e.key===`Delete`||e.key===`Backspace`)&&(e.preventDefault(),i(`keyboard`))},className:Z(`group inline-flex items-center gap-1 min-w-5 rounded-sm border px-1`,n?`border-input-destructive-border bg-card-background`:`border-card-border bg-card-background`,!r&&`cursor-default hover:bg-card-accent focus-visible:bg-card-accent outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-solid focus-visible:outline-focus`)},e.createElement(`span`,{"data-slot":`token-label`,className:Z(`body-03`,r?`text-card-foreground-muted`:n?`text-input-destructive-foreground-accent`:`text-card-foreground`)},t),e.createElement(`button`,{type:`button`,"aria-label":`Remove ${t}`,onClick:()=>i(`pointer`),disabled:r,tabIndex:-1,"data-slot":`token-remove`,className:Z(`inline-flex cursor-pointer items-center justify-center rounded-xs bg-transparent p-0`,r?`text-card-foreground-muted`:n?`text-input-destructive-foreground-accent`:`text-card-foreground-muted group-hover:text-card-foreground group-focus-visible:text-card-foreground`,`disabled:cursor-not-allowed`)},e.createElement(L,{weight:`regular`,"aria-hidden":`true`,className:`size-4`})))}function si(e,t){if(t.length===0)return[e];let n=t.map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(``);return e.split(RegExp(`[${n}]`))}function ci({className:t,fieldClassName:n,wrapperClassName:r,value:i,defaultValue:a,onChange:o,separators:s=[`,`],commitOnBlur:c=!1,validate:l,label:u,optional:d=!1,hint:f,error:p=!1,disabled:m,placeholder:h,id:g,onKeyDown:_,onBlur:v,onInput:y,ref:b,...x}){let S=i!==void 0,[C,w]=e.useState(()=>a??[]),T=S?i:C,E=e.useRef(null),D=e.useCallback(e=>{E.current=e,typeof b==`function`?b(e):b&&(b.current=e)},[b]),O=e.useId(),k=g??O,A=f?`${k}-hint`:void 0,j=e=>{S||w(e),o?.(e)},M=e=>{let t=[...T],n=new Set(t.map(e=>e.toLowerCase())),r=!1;for(let i of e){let e=i.trim();if(e===``)continue;let a=e.toLowerCase();n.has(a)||(n.add(a),t.push(e),r=!0)}r&&j(t)},P=(e,t)=>{j(T.filter((t,n)=>n!==e)),t===`keyboard`&&E.current?.focus()},F=e=>{y?.(e);let t=e.currentTarget,n=t.value;s.some(e=>n.includes(e))&&(M(si(n,s)),t.value=``)},I=e=>{_?.(e),e.key===`Backspace`&&e.currentTarget.value===``&&T.length>0&&(e.preventDefault(),P(T.length-1))},L=e=>{if(v?.(e),c){let t=e.currentTarget;t.value.trim()!==``&&(M([t.value]),t.value=``)}},te=e=>{let t=e.target;t.closest(`[data-slot=token]`)||t!==E.current&&(e.preventDefault(),E.current?.focus())},ne=Z(p?`text-input-destructive-foreground-accent`:`text-input-foreground`,m&&`text-input-foreground-muted`),R=p?ee:N;return e.createElement(`div`,{className:Z(`flex flex-col gap-1.5`,r)},u!=null&&e.createElement(`div`,{className:`flex items-center justify-between`},e.createElement(`label`,{htmlFor:k,"data-slot":`input-label`,className:Z(`caption-03-medium uppercase`,p?`text-input-destructive-foreground-accent`:`text-input-foreground`,m&&`text-input-foreground-muted`)},u),d&&e.createElement(`span`,{"data-slot":`input-optional`,className:`body-04 text-input-foreground-muted`},`Optional`)),e.createElement(`div`,{"data-slot":`token-input-field`,"data-error":p||void 0,onMouseDown:te,className:Z(Ln({variation:`field`,size:`lg`,error:p}),`h-auto min-h-10 flex-wrap gap-1 p-2`,ne,n)},T.map((t,n)=>e.createElement(oi,{key:`${t}-${n}`,value:t,invalid:l?!l(t):!1,disabled:m,onRemove:e=>P(n,e)})),e.createElement(`input`,{id:k,"data-slot":`token-input`,disabled:m,placeholder:T.length===0?h:void 0,"aria-invalid":p||void 0,"aria-describedby":A,className:Z(`body-03 w-0 min-w-16 flex-1 bg-transparent outline-none`,`text-input-foreground-accent caret-input-foreground-accent`,`placeholder:text-input-foreground-muted`,`disabled:cursor-not-allowed disabled:text-input-foreground-muted`,t),ref:D,onInput:F,onKeyDown:I,onBlur:L,...x})),f!=null&&e.createElement(`p`,{id:A,"data-slot":`input-hint`,className:Z(`body-04 flex items-center gap-1`,p?`text-input-destructive-foreground-accent`:`text-input-foreground`,m&&`text-input-foreground-muted`)},e.createElement(R,{"aria-hidden":`true`,weight:`regular`,className:`size-4 shrink-0`}),f))}var li=Q([`pointer-events-none max-w-[244px] rounded-sm bg-card-reversed-background px-1.5 py-1`,`body-04 text-center text-card-reversed-foreground shadow-xs`]),$=6,ui=8,di={top:`bottom`,bottom:`top`,left:`right`,right:`left`};function fi(e,t,n,r){switch(n){case`top`:return e.top-$-t.height>=0;case`bottom`:return e.top+e.height+$+t.height<=r.height;case`left`:return e.left-$-t.width>=0;case`right`:return e.left+e.width+$+t.width<=r.width}}function pi(e,t,n,r){switch(r){case`start`:return e;case`center`:return e+t/2-n/2;case`end`:return e+t-n}}function mi(e,t,n){return Math.max(t,Math.min(e,Math.max(t,n)))}function hi(e,t,n,r,i){let a=fi(e,t,n,i)||!fi(e,t,di[n],i)?n:di[n],o=a===`top`||a===`bottom`,s,c;return o?(s=a===`top`?e.top-$-t.height:e.top+e.height+$,c=pi(e.left,e.width,t.width,r),c=mi(c,ui,i.width-t.width-ui)):(c=a===`left`?e.left-$-t.width:e.left+e.width+$,s=pi(e.top,e.height,t.height,r),s=mi(s,ui,i.height-t.height-ui)),{top:s,left:c,side:a}}var gi=e.createContext(null);function _i(t){let n=e.useContext(gi);if(n===null)throw Error(`${t} must be used within <Tooltip.Root>`);return n}function vi(e,t){typeof e==`function`?e(t):e&&(e.current=t)}function yi({open:t,defaultOpen:n=!1,onOpenChange:r,delayDuration:i=600,side:a=`top`,align:o=`center`,disabled:s=!1,children:c}){let[l,u]=e.useState(n),d=t!==void 0,f=s?!1:d?t:l,p=`${e.useId()}-tooltip`,m=e.useRef(null),[h,g]=e.useState(null),_=e.useRef(null),v=e.useCallback(e=>{d||u(e),r?.(e)},[d,r]),y=e.useCallback(()=>{_.current!==null&&(clearTimeout(_.current),_.current=null)},[]);e.useEffect(()=>y,[y]);let b=()=>{s||(y(),_.current=setTimeout(()=>v(!0),i))},x=()=>{y(),v(!1)},S=()=>{s||(y(),v(!0))},C=()=>{y(),v(!1)};e.useLayoutEffect(()=>{if(!f){g(null);return}let e=()=>{let e=m.current;e&&g(e.getBoundingClientRect())};return e(),window.addEventListener(`scroll`,e,!0),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`scroll`,e,!0),window.removeEventListener(`resize`,e)}},[f]),e.useEffect(()=>{if(!f)return;let e=e=>{e.key===`Escape`&&(y(),v(!1))};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[f,v,y]);let w={open:f,setOpen:v,disabled:s,contentId:p,side:a,align:o,anchorRef:m,anchorRect:h,onTriggerPointerEnter:b,onTriggerPointerLeave:x,onTriggerFocus:S,onTriggerBlur:C};return e.createElement(gi.Provider,{value:w},c)}function bi({asChild:t=!1,className:n,children:r,ref:i,onPointerEnter:a,onPointerLeave:o,onFocus:s,onBlur:c,...l}){let{open:u,disabled:d,contentId:f,anchorRef:p,onTriggerPointerEnter:m,onTriggerPointerLeave:h,onTriggerFocus:g,onTriggerBlur:_}=_i(`Tooltip.Trigger`),v=!d&&u?f:void 0,y=e=>{a?.(e),m()},b=e=>{o?.(e),h()},x=e=>{s?.(e),g()},S=e=>{c?.(e),_()};if(t){if(!e.isValidElement(r))throw Error("Tooltip.Trigger: `asChild` requires a single React element child");let t=r,u=t.props,d=u;return e.cloneElement(t,{...l,...u,"data-slot":`tooltip-trigger`,"aria-describedby":v,onPointerEnter:e=>{d.onPointerEnter?.(e),a?.(e),m()},onPointerLeave:e=>{d.onPointerLeave?.(e),o?.(e),h()},onFocus:e=>{d.onFocus?.(e),s?.(e),g()},onBlur:e=>{d.onBlur?.(e),c?.(e),_()},className:Z(n,d.className),ref:e=>{p.current=e,vi(i,e),vi(d.ref,e)}},u.children)}return e.createElement(`button`,{...l,type:l.type??`button`,"data-slot":`tooltip-trigger`,"aria-describedby":v,className:n,onPointerEnter:y,onPointerLeave:b,onFocus:x,onBlur:S,ref:e=>{p.current=e,vi(i,e)}},r)}function xi({className:n,children:r,style:i,ref:a,...o}){let{open:s,contentId:c,side:l,align:u,anchorRect:d}=_i(`Tooltip.Content`),f=e.useRef(null),[p,m]=e.useState(null);if(e.useLayoutEffect(()=>{if(!s||d==null){m(null);return}let e=f.current;if(!e)return;let t=e.getBoundingClientRect();m(hi(d,{width:t.width,height:t.height},l,u,{width:window.innerWidth,height:window.innerHeight}))},[s,d,l,u]),!s)return null;let h=p!==null,g=h?{position:`absolute`,top:p.top+window.scrollY,left:p.left+window.scrollX,zIndex:50,...i}:{position:`absolute`,top:0,left:0,visibility:`hidden`,zIndex:50,...i},_=e=>{f.current=e,vi(a,e)};return(0,t.createPortal)(e.createElement(`div`,{...o,ref:_,role:`tooltip`,id:c,"data-slot":`tooltip-content`,"data-side":h?p.side:l,"data-align":u,className:Z(li(),n),style:g},r),document.body)}var Si={Root:yi,Trigger:bi,Content:xi};globalThis.FDAppsUI={...c({Accordion:()=>It,AccordionContent:()=>Ft,AccordionItem:()=>Nt,AccordionRoot:()=>Mt,AccordionTrigger:()=>Pt,BUTTON_CUT:()=>zt,Button:()=>Wt,CellText:()=>Vr,Checkbox:()=>Kt,Dialog:()=>_n,DialogBody:()=>hn,DialogClose:()=>fn,DialogContent:()=>pn,DialogFooter:()=>gn,DialogHeader:()=>mn,DialogRoot:()=>cn,DialogTrigger:()=>dn,FeatureCard:()=>Tn,Filter:()=>Yn,FilterTrigger:()=>Jn,InlineSelect:()=>Qn,InlineSelectTrigger:()=>Zn,Input:()=>$n,Panel:()=>mr,PanelBody:()=>fr,PanelFooter:()=>pr,PanelHeader:()=>dr,PanelRoot:()=>ur,PropertyGridContent:()=>br,PropertyGridItem:()=>_r,PropertyGridTitle:()=>yr,Radio:()=>Sr,SearchBar:()=>Tr,Select:()=>Gn,SelectListbox:()=>In,SelectTrigger:()=>zn,SelectableFeatureCard:()=>Fr,SidebarItem:()=>kr,Switch:()=>Lr,TableCell:()=>Br,TableTitle:()=>Hr,Tabs:()=>ei,TabsContent:()=>$r,TabsList:()=>Zr,TabsRoot:()=>Xr,TabsTrigger:()=>Qr,Toast:()=>ai,TokenInput:()=>ci,Tooltip:()=>Si,TooltipContent:()=>xi,TooltipRoot:()=>yi,TooltipTrigger:()=>bi,accordionContentVariants:()=>Et,accordionItemVariants:()=>St,accordionRootVariants:()=>xt,accordionTriggerIconVariants:()=>Tt,accordionTriggerTitleVariants:()=>wt,accordionTriggerVariants:()=>Ct,buttonVariants:()=>Bt,checkboxVariants:()=>Gt,computeListboxHorizontal:()=>Fn,computeListboxPosition:()=>Pn,computeTooltipPosition:()=>hi,dialogBodyVariants:()=>rn,dialogCloseButtonVariants:()=>nn,dialogContentVariants:()=>Qt,dialogFooterVariants:()=>an,dialogHeaderIconVariants:()=>en,dialogHeaderTextVariants:()=>tn,dialogHeaderVariants:()=>$t,dialogOverlayVariants:()=>Zt,featureCardCaretVariants:()=>Cn,featureCardLeadingVariants:()=>yn,featureCardTextVariants:()=>xn,featureCardTitleRowVariants:()=>Sn,featureCardTrailingVariants:()=>bn,featureCardVariants:()=>vn,filterCountBadgeVariants:()=>qn,filterTriggerVariants:()=>Kn,getFocusableElements:()=>Yt,inlineSelectVariants:()=>Xn,inputVariants:()=>Ln,nextEnabledIndex:()=>Vn,panelBodyVariants:()=>or,panelCloseButtonVariants:()=>ar,panelFooterVariants:()=>sr,panelHeaderContentVariants:()=>nr,panelHeaderIconVariants:()=>rr,panelHeaderTextVariants:()=>ir,panelHeaderVariants:()=>tr,panelVariants:()=>er,propertyGridCellVariants:()=>hr,propertyGridItemVariants:()=>gr,radioVariants:()=>xr,scrollbarVariants:()=>qt,selectListboxFooterVariants:()=>kn,selectListboxPanelVariants:()=>Dn,selectListboxScrollVariants:()=>On,selectListboxVariants:()=>En,selectOptionVariants:()=>An,selectTriggerLabel:()=>Rn,selectableFeatureCardBottomVariants:()=>Pr,selectableFeatureCardRowVariants:()=>jr,selectableFeatureCardTextVariants:()=>Mr,selectableFeatureCardTrailingVariants:()=>Nr,selectableFeatureCardVariants:()=>Ar,sidebarItemLabelVariants:()=>Dr,sidebarItemVariants:()=>Er,switchVariants:()=>Ir,tableCellVariants:()=>Rr,tabsContentVariants:()=>Kr,tabsListVariants:()=>Wr,tabsRootVariants:()=>Ur,tabsTriggerVariants:()=>Gr,toastCloseVariants:()=>ri,toastIconVariants:()=>ni,toastVariants:()=>ti,tooltipVariants:()=>li,useCutCornerClipPath:()=>Rt,useFocusTrap:()=>Xt,useSelectListbox:()=>Wn})}})(React,ReactDOM);
|