@prismicio/editor-ui 0.4.56 → 0.4.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/AnimatedList/AnimatedList.stories.d.ts +1 -1
- package/dist/components/Box/Box.stories.d.ts +35 -35
- package/dist/components/Button/Button.stories.d.ts +2 -2
- package/dist/components/OverflowContainer/OverflowContainer.stories.d.ts +1 -1
- package/dist/components/Skeleton/Skeleton.d.ts +13 -13
- package/dist/components/Video/Video.stories.d.ts +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +1 -0
- package/package.json +2 -2
|
@@ -8,7 +8,7 @@ export default meta;
|
|
|
8
8
|
export declare const Default: {
|
|
9
9
|
render: (args: {
|
|
10
10
|
ariaLabel: string;
|
|
11
|
-
gap?: 0 |
|
|
11
|
+
gap?: 0 | "auto" | "fieldSetGap" | 1 | 2 | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | 120 | undefined;
|
|
12
12
|
direction?: "horizontal" | "vertical" | undefined;
|
|
13
13
|
items: unknown[];
|
|
14
14
|
getItemKey: (item: unknown) => string;
|
|
@@ -13,7 +13,7 @@ declare const meta: {
|
|
|
13
13
|
export default meta;
|
|
14
14
|
export declare const Default: {
|
|
15
15
|
render: (args: {
|
|
16
|
-
as?: "
|
|
16
|
+
as?: "div" | "nav" | "ul" | "ol" | "article" | "header" | "form" | "span" | undefined;
|
|
17
17
|
children?: import("react").ReactNode;
|
|
18
18
|
position?: "fixed" | "absolute" | "relative" | "sticky" | undefined;
|
|
19
19
|
top?: string | number | undefined;
|
|
@@ -35,17 +35,17 @@ export declare const Default: {
|
|
|
35
35
|
duration?: 0 | 100 | 75 | 150 | 200 | 250 | 300 | 400 | undefined;
|
|
36
36
|
} | undefined;
|
|
37
37
|
transition?: {
|
|
38
|
-
property: "
|
|
38
|
+
property: "opacity" | "background-color" | "height";
|
|
39
39
|
duration?: 0 | 100 | 75 | 150 | 200 | 250 | 300 | 400 | undefined;
|
|
40
40
|
delay?: string | undefined;
|
|
41
41
|
} | undefined;
|
|
42
|
-
padding?: (0 |
|
|
43
|
-
block?: 0 |
|
|
44
|
-
inline?: 0 |
|
|
45
|
-
top?: 0 |
|
|
46
|
-
bottom?: 0 |
|
|
47
|
-
left?: 0 |
|
|
48
|
-
right?: 0 |
|
|
42
|
+
padding?: (0 | "auto" | "fieldSetGap" | 1 | 2 | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | 120 | {
|
|
43
|
+
block?: 0 | "auto" | "fieldSetGap" | 1 | 2 | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | 120 | undefined;
|
|
44
|
+
inline?: 0 | "auto" | "fieldSetGap" | 1 | 2 | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | 120 | undefined;
|
|
45
|
+
top?: 0 | "auto" | "fieldSetGap" | 1 | 2 | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | 120 | undefined;
|
|
46
|
+
bottom?: 0 | "auto" | "fieldSetGap" | 1 | 2 | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | 120 | undefined;
|
|
47
|
+
left?: 0 | "auto" | "fieldSetGap" | 1 | 2 | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | 120 | undefined;
|
|
48
|
+
right?: 0 | "auto" | "fieldSetGap" | 1 | 2 | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | 120 | undefined;
|
|
49
49
|
}) | undefined;
|
|
50
50
|
border?: (boolean | {
|
|
51
51
|
top?: boolean | undefined;
|
|
@@ -53,11 +53,11 @@ export declare const Default: {
|
|
|
53
53
|
left?: boolean | undefined;
|
|
54
54
|
right?: boolean | undefined;
|
|
55
55
|
}) | undefined;
|
|
56
|
-
borderRadius?: (0 |
|
|
57
|
-
topLeft?: 0 |
|
|
58
|
-
topRight?: 0 |
|
|
59
|
-
bottomLeft?: 0 |
|
|
60
|
-
bottomRight?: 0 |
|
|
56
|
+
borderRadius?: (0 | "50%" | "100%" | "inherit" | 1 | 2 | 4 | 6 | 8 | 10 | 12 | {
|
|
57
|
+
topLeft?: 0 | "50%" | "100%" | "inherit" | 1 | 2 | 4 | 6 | 8 | 10 | 12 | undefined;
|
|
58
|
+
topRight?: 0 | "50%" | "100%" | "inherit" | 1 | 2 | 4 | 6 | 8 | 10 | 12 | undefined;
|
|
59
|
+
bottomLeft?: 0 | "50%" | "100%" | "inherit" | 1 | 2 | 4 | 6 | 8 | 10 | 12 | undefined;
|
|
60
|
+
bottomRight?: 0 | "50%" | "100%" | "inherit" | 1 | 2 | 4 | 6 | 8 | 10 | 12 | undefined;
|
|
61
61
|
}) | undefined;
|
|
62
62
|
borderStyle?: "none" | "dashed" | "solid" | undefined;
|
|
63
63
|
backgroundColor?: "inherit" | "currentColor" | "transparent" | "white" | "black" | "grey1" | "grey2" | "grey3" | "grey4" | "grey5" | "grey6" | "grey7" | "grey8" | "grey9" | "grey10" | "grey11" | "grey12" | "dark12" | "indigo2" | "indigo4" | "indigo5" | "indigo7" | "indigo8" | "indigo10" | "indigo11" | "indigo12" | "green3" | "green4" | "green9" | "green10" | "green11" | "green12" | "amber3" | "amber4" | "amber9" | "amber10" | "amber11" | "amber12" | "tomato1" | "tomato2" | "tomato3" | "tomato4" | "tomato5" | "tomato6" | "tomato7" | "tomato8" | "tomato9" | "tomato10" | "tomato11" | "tomato12" | "purple1" | "purple2" | "purple3" | "purple4" | "purple5" | "purple6" | "purple7" | "purple8" | "purple9" | "purple10" | "purple11" | "purple12" | "greyAlpha1" | "logoPurple" | "logoBlue" | "logoYellow" | "logoRed" | undefined;
|
|
@@ -68,9 +68,9 @@ export declare const Default: {
|
|
|
68
68
|
gridColumn?: string | undefined;
|
|
69
69
|
gridRow?: string | undefined;
|
|
70
70
|
transform?: import("csstype").Property.Transform | undefined;
|
|
71
|
-
gap?: 0 |
|
|
72
|
-
alignItems?: "
|
|
73
|
-
justifyContent?: "center" | "
|
|
71
|
+
gap?: 0 | "auto" | "fieldSetGap" | 1 | 2 | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | 120 | undefined;
|
|
72
|
+
alignItems?: "flex-start" | "center" | undefined;
|
|
73
|
+
justifyContent?: "center" | "space-between" | "end" | undefined;
|
|
74
74
|
display: "grid";
|
|
75
75
|
gridTemplateColumns?: string | undefined;
|
|
76
76
|
gridTemplateRows?: string | undefined;
|
|
@@ -78,7 +78,7 @@ export declare const Default: {
|
|
|
78
78
|
ref?: import("react").Ref<HTMLElement> | undefined;
|
|
79
79
|
key?: import("react").Key | null | undefined;
|
|
80
80
|
} | {
|
|
81
|
-
as?: "
|
|
81
|
+
as?: "div" | "nav" | "ul" | "ol" | "article" | "header" | "form" | "span" | undefined;
|
|
82
82
|
children?: import("react").ReactNode;
|
|
83
83
|
position?: "fixed" | "absolute" | "relative" | "sticky" | undefined;
|
|
84
84
|
top?: string | number | undefined;
|
|
@@ -100,17 +100,17 @@ export declare const Default: {
|
|
|
100
100
|
duration?: 0 | 100 | 75 | 150 | 200 | 250 | 300 | 400 | undefined;
|
|
101
101
|
} | undefined;
|
|
102
102
|
transition?: {
|
|
103
|
-
property: "
|
|
103
|
+
property: "opacity" | "background-color" | "height";
|
|
104
104
|
duration?: 0 | 100 | 75 | 150 | 200 | 250 | 300 | 400 | undefined;
|
|
105
105
|
delay?: string | undefined;
|
|
106
106
|
} | undefined;
|
|
107
|
-
padding?: (0 |
|
|
108
|
-
block?: 0 |
|
|
109
|
-
inline?: 0 |
|
|
110
|
-
top?: 0 |
|
|
111
|
-
bottom?: 0 |
|
|
112
|
-
left?: 0 |
|
|
113
|
-
right?: 0 |
|
|
107
|
+
padding?: (0 | "auto" | "fieldSetGap" | 1 | 2 | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | 120 | {
|
|
108
|
+
block?: 0 | "auto" | "fieldSetGap" | 1 | 2 | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | 120 | undefined;
|
|
109
|
+
inline?: 0 | "auto" | "fieldSetGap" | 1 | 2 | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | 120 | undefined;
|
|
110
|
+
top?: 0 | "auto" | "fieldSetGap" | 1 | 2 | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | 120 | undefined;
|
|
111
|
+
bottom?: 0 | "auto" | "fieldSetGap" | 1 | 2 | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | 120 | undefined;
|
|
112
|
+
left?: 0 | "auto" | "fieldSetGap" | 1 | 2 | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | 120 | undefined;
|
|
113
|
+
right?: 0 | "auto" | "fieldSetGap" | 1 | 2 | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | 120 | undefined;
|
|
114
114
|
}) | undefined;
|
|
115
115
|
border?: (boolean | {
|
|
116
116
|
top?: boolean | undefined;
|
|
@@ -118,11 +118,11 @@ export declare const Default: {
|
|
|
118
118
|
left?: boolean | undefined;
|
|
119
119
|
right?: boolean | undefined;
|
|
120
120
|
}) | undefined;
|
|
121
|
-
borderRadius?: (0 |
|
|
122
|
-
topLeft?: 0 |
|
|
123
|
-
topRight?: 0 |
|
|
124
|
-
bottomLeft?: 0 |
|
|
125
|
-
bottomRight?: 0 |
|
|
121
|
+
borderRadius?: (0 | "50%" | "100%" | "inherit" | 1 | 2 | 4 | 6 | 8 | 10 | 12 | {
|
|
122
|
+
topLeft?: 0 | "50%" | "100%" | "inherit" | 1 | 2 | 4 | 6 | 8 | 10 | 12 | undefined;
|
|
123
|
+
topRight?: 0 | "50%" | "100%" | "inherit" | 1 | 2 | 4 | 6 | 8 | 10 | 12 | undefined;
|
|
124
|
+
bottomLeft?: 0 | "50%" | "100%" | "inherit" | 1 | 2 | 4 | 6 | 8 | 10 | 12 | undefined;
|
|
125
|
+
bottomRight?: 0 | "50%" | "100%" | "inherit" | 1 | 2 | 4 | 6 | 8 | 10 | 12 | undefined;
|
|
126
126
|
}) | undefined;
|
|
127
127
|
borderStyle?: "none" | "dashed" | "solid" | undefined;
|
|
128
128
|
backgroundColor?: "inherit" | "currentColor" | "transparent" | "white" | "black" | "grey1" | "grey2" | "grey3" | "grey4" | "grey5" | "grey6" | "grey7" | "grey8" | "grey9" | "grey10" | "grey11" | "grey12" | "dark12" | "indigo2" | "indigo4" | "indigo5" | "indigo7" | "indigo8" | "indigo10" | "indigo11" | "indigo12" | "green3" | "green4" | "green9" | "green10" | "green11" | "green12" | "amber3" | "amber4" | "amber9" | "amber10" | "amber11" | "amber12" | "tomato1" | "tomato2" | "tomato3" | "tomato4" | "tomato5" | "tomato6" | "tomato7" | "tomato8" | "tomato9" | "tomato10" | "tomato11" | "tomato12" | "purple1" | "purple2" | "purple3" | "purple4" | "purple5" | "purple6" | "purple7" | "purple8" | "purple9" | "purple10" | "purple11" | "purple12" | "greyAlpha1" | "logoPurple" | "logoBlue" | "logoYellow" | "logoRed" | undefined;
|
|
@@ -133,11 +133,11 @@ export declare const Default: {
|
|
|
133
133
|
gridColumn?: string | undefined;
|
|
134
134
|
gridRow?: string | undefined;
|
|
135
135
|
transform?: import("csstype").Property.Transform | undefined;
|
|
136
|
-
gap?: 0 |
|
|
137
|
-
alignItems?: "
|
|
138
|
-
justifyContent?: "center" | "
|
|
136
|
+
gap?: 0 | "auto" | "fieldSetGap" | 1 | 2 | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | 120 | undefined;
|
|
137
|
+
alignItems?: "flex-start" | "center" | undefined;
|
|
138
|
+
justifyContent?: "center" | "space-between" | "end" | undefined;
|
|
139
139
|
display?: "flex" | "inline-flex" | undefined;
|
|
140
|
-
flexDirection?: "
|
|
140
|
+
flexDirection?: "column" | "row" | undefined;
|
|
141
141
|
gridTemplateColumns?: undefined;
|
|
142
142
|
gridTemplateRows?: undefined;
|
|
143
143
|
ref?: import("react").Ref<HTMLElement> | undefined;
|
|
@@ -26,8 +26,8 @@ export declare const Default: {
|
|
|
26
26
|
textWeight?: "bold" | "normal" | undefined;
|
|
27
27
|
radius?: "normal" | "full" | undefined;
|
|
28
28
|
sx?: import("../../theme").SX | undefined;
|
|
29
|
-
startIcon?: "translate" | "visibility" | "
|
|
30
|
-
endIcon?: "translate" | "visibility" | "
|
|
29
|
+
startIcon?: "search" | "link" | "code" | "translate" | "visibility" | "label" | "title" | "block" | "add" | "image" | "description" | "alert" | "arrowBack" | "arrowDownward" | "arrowDropDown" | "arrowDropDownCircle" | "arrowForward" | "arrowUpward" | "attachFile" | "autoFixHigh" | "biToggle" | "calendarToday" | "centerFocusWeak" | "check" | "checkBox" | "checkBoxOutlinedBlank" | "chevronLeft" | "chevronRight" | "close" | "cloud" | "cloudUpload" | "colorLens" | "contentCopy" | "contentPaste" | "createNewFolder" | "crop" | "cropLandscape" | "cropPortrait" | "dataObject" | "database" | "dateRange" | "delete" | "desktopWindows" | "dragIndicator" | "driveFileMove" | "edit" | "event" | "expandLess" | "expandMore" | "firstPage" | "folder" | "formatBold" | "formatClear" | "formatItalic" | "formatListBulleted" | "formatListNumbered" | "formatTextDirectionRToL" | "hideImage" | "imageSearch" | "insertDriveFile" | "inventory" | "invite" | "javascript" | "json" | "keyboardArrowDown" | "keyboardArrowUp" | "language" | "linkOff" | "lock" | "looks1" | "looks2" | "looks3" | "looks4" | "looks5" | "looks6" | "migrationRelease" | "moreVert" | "multipleStop" | "musicNote" | "notStarted" | "notes" | "openInFull" | "openInNew" | "outbound" | "people" | "phoneIphone" | "photo" | "pin" | "place" | "playCircle" | "preview" | "prismic" | "public" | "refresh" | "save" | "schedule" | "sentimentSatisfied" | "settings" | "settingsEthernet" | "smartDisplay" | "svelte" | "tabletMac" | "tag" | "terminal" | "textFields" | "toggleOff" | "typescript" | "unfoldMore" | "unsplash" | "upload" | "videocam" | "viewDay" | "vue" | "zoomOutMap" | undefined;
|
|
30
|
+
endIcon?: "search" | "link" | "code" | "translate" | "visibility" | "label" | "title" | "block" | "add" | "image" | "description" | "alert" | "arrowBack" | "arrowDownward" | "arrowDropDown" | "arrowDropDownCircle" | "arrowForward" | "arrowUpward" | "attachFile" | "autoFixHigh" | "biToggle" | "calendarToday" | "centerFocusWeak" | "check" | "checkBox" | "checkBoxOutlinedBlank" | "chevronLeft" | "chevronRight" | "close" | "cloud" | "cloudUpload" | "colorLens" | "contentCopy" | "contentPaste" | "createNewFolder" | "crop" | "cropLandscape" | "cropPortrait" | "dataObject" | "database" | "dateRange" | "delete" | "desktopWindows" | "dragIndicator" | "driveFileMove" | "edit" | "event" | "expandLess" | "expandMore" | "firstPage" | "folder" | "formatBold" | "formatClear" | "formatItalic" | "formatListBulleted" | "formatListNumbered" | "formatTextDirectionRToL" | "hideImage" | "imageSearch" | "insertDriveFile" | "inventory" | "invite" | "javascript" | "json" | "keyboardArrowDown" | "keyboardArrowUp" | "language" | "linkOff" | "lock" | "looks1" | "looks2" | "looks3" | "looks4" | "looks5" | "looks6" | "migrationRelease" | "moreVert" | "multipleStop" | "musicNote" | "notStarted" | "notes" | "openInFull" | "openInNew" | "outbound" | "people" | "phoneIphone" | "photo" | "pin" | "place" | "playCircle" | "preview" | "prismic" | "public" | "refresh" | "save" | "schedule" | "sentimentSatisfied" | "settings" | "settingsEthernet" | "smartDisplay" | "svelte" | "tabletMac" | "tag" | "terminal" | "textFields" | "toggleOff" | "typescript" | "unfoldMore" | "unsplash" | "upload" | "videocam" | "viewDay" | "vue" | "zoomOutMap" | undefined;
|
|
31
31
|
renderStartIcon?: ((icon: import("react").ReactNode) => import("react").ReactNode) | undefined;
|
|
32
32
|
renderEndIcon?: ((icon: import("react").ReactNode) => import("react").ReactNode) | undefined;
|
|
33
33
|
hotkeys?: import("react-hotkeys-hook").Keys | undefined;
|
|
@@ -13,7 +13,7 @@ declare const meta: {
|
|
|
13
13
|
};
|
|
14
14
|
decorators: ((Story: import("@storybook/types").PartialStoryFn<import("@storybook/react/dist/types-0a347bb9").R, {
|
|
15
15
|
children: import("react").ReactNode[];
|
|
16
|
-
gap?: (0 |
|
|
16
|
+
gap?: (0 | 1 | 2 | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | 120) | undefined;
|
|
17
17
|
}>) => JSX.Element)[];
|
|
18
18
|
};
|
|
19
19
|
export default meta;
|
|
@@ -31,20 +31,20 @@ export declare function Skeleton(props: Props): import("react").DetailedReactHTM
|
|
|
31
31
|
flexShrink?: 0 | undefined;
|
|
32
32
|
flexBasis?: 0 | undefined;
|
|
33
33
|
flexWrap?: "wrap" | undefined;
|
|
34
|
-
order?: 0 |
|
|
35
|
-
alignSelf?: "center" | "
|
|
36
|
-
justifySelf?: "center" | "
|
|
34
|
+
order?: 0 | 1 | 2 | 3 | undefined;
|
|
35
|
+
alignSelf?: "center" | "end" | "stretch" | "start" | undefined;
|
|
36
|
+
justifySelf?: "center" | "end" | "stretch" | "start" | undefined;
|
|
37
37
|
visibility?: "hidden" | "visible" | undefined;
|
|
38
38
|
position?: "fixed" | "absolute" | "relative" | "sticky" | undefined;
|
|
39
|
-
marginLeft?: 0 |
|
|
40
|
-
marginRight?: 0 |
|
|
41
|
-
marginTop?: 0 |
|
|
42
|
-
marginBottom?: 0 |
|
|
43
|
-
marginInline?: 0 |
|
|
44
|
-
marginBlock?: 0 |
|
|
45
|
-
top?: 0 |
|
|
46
|
-
left?: 0 |
|
|
47
|
-
right?: 0 |
|
|
48
|
-
bottom?: 0 |
|
|
39
|
+
marginLeft?: 0 | "auto" | "fieldSetGap" | 1 | 2 | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | 120 | undefined;
|
|
40
|
+
marginRight?: 0 | "auto" | "fieldSetGap" | 1 | 2 | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | 120 | undefined;
|
|
41
|
+
marginTop?: 0 | "auto" | "fieldSetGap" | 1 | 2 | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | 120 | undefined;
|
|
42
|
+
marginBottom?: 0 | "auto" | "fieldSetGap" | 1 | 2 | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | 120 | undefined;
|
|
43
|
+
marginInline?: 0 | "auto" | "fieldSetGap" | 1 | 2 | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | 120 | undefined;
|
|
44
|
+
marginBlock?: 0 | "auto" | "fieldSetGap" | 1 | 2 | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | 120 | undefined;
|
|
45
|
+
top?: 0 | "auto" | "fieldSetGap" | 1 | 2 | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | 120 | undefined;
|
|
46
|
+
left?: 0 | "auto" | "fieldSetGap" | 1 | 2 | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | 120 | undefined;
|
|
47
|
+
right?: 0 | "auto" | "fieldSetGap" | 1 | 2 | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | 120 | undefined;
|
|
48
|
+
bottom?: 0 | "auto" | "fieldSetGap" | 1 | 2 | 4 | 6 | 8 | 10 | 12 | 16 | 18 | 20 | 24 | 28 | 32 | 40 | 48 | 72 | 80 | 100 | 120 | undefined;
|
|
49
49
|
};
|
|
50
50
|
}, HTMLElement>;
|
|
@@ -22,7 +22,7 @@ export declare const Default: {
|
|
|
22
22
|
src: string;
|
|
23
23
|
loop?: boolean | undefined;
|
|
24
24
|
autoPlay?: boolean | undefined;
|
|
25
|
-
sizing?: "
|
|
25
|
+
sizing?: "none" | "contain" | "cover" | undefined;
|
|
26
26
|
borderRadius?: 0 | 4 | undefined;
|
|
27
27
|
boxShadow?: "3" | undefined;
|
|
28
28
|
animateOnLoad?: boolean | undefined;
|
package/dist/index.cjs.js
CHANGED
|
@@ -566,4 +566,4 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
566
566
|
|
|
567
567
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
568
568
|
|
|
569
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return k.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},UJ="DialogDescriptionWarning",ZJ=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Q8(UJ).contentName}}.`;return k.useEffect(()=>{var a;const o=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},ew=z8,tw=V8,nw=W8,GJ=K8,rw=U8,qJ=G8,ow=J8;const YJ="_overlay_150zl_1",JJ="_container_150zl_23",XJ="_child_150zl_76",QJ="_header_150zl_128",eX="_headerIcon_150zl_142",tX="_closeButton_150zl_147",nX="_content_150zl_153",rX="_actions_150zl_169",It={overlay:YJ,"fade-in":"_fade-in_150zl_1","fade-out":"_fade-out_150zl_1",container:JJ,"container-large":"_container-large_150zl_52","container-small":"_container-small_150zl_57","container-center":"_container-center_150zl_61","position-center-in":"_position-center-in_150zl_1","position-center-out":"_position-center-out_150zl_1",child:XJ,"position-child-center-in":"_position-child-center-in_150zl_1","position-child-center-out":"_position-child-center-out_150zl_1","container-top":"_container-top_150zl_89","position-top-in":"_position-top-in_150zl_1","position-top-out":"_position-top-out_150zl_1","container-bottomRight":"_container-bottomRight_150zl_115","position-bottom-right-in":"_position-bottom-right-in_150zl_1","position-bottom-right-out":"_position-bottom-right-out_150zl_1",header:QJ,headerIcon:eX,closeButton:tX,content:nX,"contentPadding-16":"_contentPadding-16_150zl_161","contentGap-12":"_contentGap-12_150zl_165",actions:rX},oX="_container_1xbd4_1",aX="_fadeIn_1xbd4_1",iX="_fadeOut_1xbd4_1",lX={container:oX,fadeIn:aX,fadeOut:iX};function sX(e){const{trigger:t,children:n,onAnimationEnd:r,onEscapeKeyDown:o,...a}=e;return p.jsxs(ew,{...a,children:[t&&p.jsx(tw,{asChild:!0,children:t}),p.jsx(nw,{children:p.jsx(rw,{className:lX.container,onAnimationEnd:r,onEscapeKeyDown:o,children:n})})]})}function cX(e){const{trigger:t,children:n,renderTooltip:r=v=>v,onAnimationEnd:o,onAnimationStart:a,size:i="large",hasClose:l=!0,modal:s=!0,position:c="top",onPointerDownOutside:u,onOpenChange:d,...f}=e;function h(v){(i==="fullscreen"||s===!1)&&v.preventDefault()}const g=bX(),m=C.useRef(null);if(i==="fullscreen")return p.jsx(sX,{...e,onEscapeKeyDown:h});const b=i==="large"||i==="small",x=b?void 0:i,y=p.jsxs(rw,{style:{...x,top:g},className:W(It.container,It[`container-${c}`],b&&It[`container-${i}`],g&&It.child),onAnimationStart:a,onAnimationEnd:o,onEscapeKeyDown:h,onOpenAutoFocus:h,onCloseAutoFocus:h,onInteractOutside:v=>v.preventDefault(),onPointerDownOutside:u,ref:m,children:[p.jsx(aw.Provider,{value:{parentDialog:m},children:n}),l&&p.jsx("div",{className:It.closeButton,children:p.jsx(ow,{asChild:!0,children:p.jsx(rt,{icon:"close",hiddenLabel:"Close dialog"})})})]});return p.jsxs(ew,{modal:s,onOpenChange:d,...f,children:[r(t&&p.jsx(tw,{asChild:!0,children:t})),p.jsxs(nw,{children:[s&&p.jsx(GJ,{className:It.overlay,onClick:()=>d==null?void 0:d(!1)}),y]})]})}function uX(e){const{icon:t,onIconClick:n,title:r}=e;return p.jsxs("header",{className:It.header,children:[t&&p.jsx(dX,{icon:t,onClick:n}),p.jsx(qJ,{asChild:!0,children:p.jsx(Q,{noSelect:!0,component:"span",variant:"bold",children:r})})]})}function dX(e){const{icon:t,onClick:n}=e;return n?p.jsx(rt,{icon:t,onClick:n}):p.jsx("div",{className:It.headerIcon,children:p.jsx(de,{name:t,size:"medium",color:"grey11"})})}function fX(e){const{children:t,padding:n,gap:r=12,...o}=e;return p.jsx("section",{...o,className:W(It.content,n&&It[`contentPadding-${n}`],r&&It[`contentGap-${r}`]),children:t})}function pX(e){const{children:t}=e;return p.jsx("section",{className:It.actions,children:t})}function hX(e){const{tooltipLabel:t,size:n="large",color:r="purple",children:o,...a}=e;return p.jsx(yl,{visible:!!t,content:t??"",children:p.jsx(_e,{size:n,color:r,...a,children:o})})}function gX(e){const{variant:t="small",children:n,...r}=e;return p.jsx(Q,{variant:t,...r,sx:{flexGrow:1},children:n})}function mX(e){const{size:t="large",color:n="grey",children:r="Cancel",...o}=e;return p.jsx(ow,{asChild:!0,children:p.jsx(_e,{color:n,size:t,...o,children:r})})}const aw=C.createContext({parentDialog:null});function bX(){var o;const{parentDialog:e}=C.useContext(aw),t=(o=e==null?void 0:e.current)==null?void 0:o.getBoundingClientRect();if(!t)return;const{height:n,top:r}=t;return n/2+r}function wu(e){const t=e+"CollectionProvider",[n,r]=Le(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=h=>{const{scope:g,children:m}=h,b=C.useRef(null),x=C.useRef(new Map).current;return p.jsx(o,{scope:g,itemMap:x,collectionRef:b,children:m})};i.displayName=t;const l=e+"CollectionSlot",s=C.forwardRef((h,g)=>{const{scope:m,children:b}=h,x=a(l,m),y=ge(g,x.collectionRef);return p.jsx(sn,{ref:y,children:b})});s.displayName=l;const c=e+"CollectionItemSlot",u="data-radix-collection-item",d=C.forwardRef((h,g)=>{const{scope:m,children:b,...x}=h,y=C.useRef(null),v=ge(g,y),w=a(c,m);return C.useEffect(()=>(w.itemMap.set(y,{ref:y,...x}),()=>void w.itemMap.delete(y))),p.jsx(sn,{[u]:"",ref:v,children:b})});d.displayName=c;function f(h){const g=a(e+"CollectionConsumer",h);return C.useCallback(()=>{const b=g.collectionRef.current;if(!b)return[];const x=Array.from(b.querySelectorAll(`[${u}]`));return Array.from(g.itemMap.values()).sort((w,D)=>x.indexOf(w.ref.current)-x.indexOf(D.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:i,Slot:s,ItemSlot:d},f,r]}var vX=k.createContext(void 0);function Nr(e){const t=k.useContext(vX);return e||t||"ltr"}var If="rovingFocusGroup.onEntryFocus",yX={bubbles:!1,cancelable:!0},ku="RovingFocusGroup",[f1,iw,xX]=wu(ku),[CX,Pn]=Le(ku,[xX]),[wX,kX]=CX(ku),lw=k.forwardRef((e,t)=>p.jsx(f1.Provider,{scope:e.__scopeRovingFocusGroup,children:p.jsx(f1.Slot,{scope:e.__scopeRovingFocusGroup,children:p.jsx(SX,{...e,ref:t})})}));lw.displayName=ku;var SX=k.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:s,onEntryFocus:c,preventScrollOnEntryFocus:u=!1,...d}=e,f=k.useRef(null),h=ge(t,f),g=Nr(a),[m=null,b]=ct({prop:i,defaultProp:l,onChange:s}),[x,y]=k.useState(!1),v=$n(c),w=iw(n),D=k.useRef(!1),[_,M]=k.useState(0);return k.useEffect(()=>{const S=f.current;if(S)return S.addEventListener(If,v),()=>S.removeEventListener(If,v)},[v]),p.jsx(wX,{scope:n,orientation:r,dir:g,loop:o,currentTabStopId:m,onItemFocus:k.useCallback(S=>b(S),[b]),onItemShiftTab:k.useCallback(()=>y(!0),[]),onFocusableItemAdd:k.useCallback(()=>M(S=>S+1),[]),onFocusableItemRemove:k.useCallback(()=>M(S=>S-1),[]),children:p.jsx(ee.div,{tabIndex:x||_===0?-1:0,"data-orientation":r,...d,ref:h,style:{outline:"none",...e.style},onMouseDown:J(e.onMouseDown,()=>{D.current=!0}),onFocus:J(e.onFocus,S=>{const E=!D.current;if(S.target===S.currentTarget&&E&&!x){const P=new CustomEvent(If,yX);if(S.currentTarget.dispatchEvent(P),!P.defaultPrevented){const $=w().filter(B=>B.focusable),R=$.find(B=>B.active),T=$.find(B=>B.id===m),N=[R,T,...$].filter(Boolean).map(B=>B.ref.current);uw(N,u)}}D.current=!1}),onBlur:J(e.onBlur,()=>y(!1))})})}),sw="RovingFocusGroupItem",cw=k.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,...i}=e,l=Lt(),s=a||l,c=kX(sw,n),u=c.currentTabStopId===s,d=iw(n),{onFocusableItemAdd:f,onFocusableItemRemove:h}=c;return k.useEffect(()=>{if(r)return f(),()=>h()},[r,f,h]),p.jsx(f1.ItemSlot,{scope:n,id:s,focusable:r,active:o,children:p.jsx(ee.span,{tabIndex:u?0:-1,"data-orientation":c.orientation,...i,ref:t,onMouseDown:J(e.onMouseDown,g=>{r?c.onItemFocus(s):g.preventDefault()}),onFocus:J(e.onFocus,()=>c.onItemFocus(s)),onKeyDown:J(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){c.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const m=$X(g,c.orientation,c.dir);if(m!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let x=d().filter(y=>y.focusable).map(y=>y.ref.current);if(m==="last")x.reverse();else if(m==="prev"||m==="next"){m==="prev"&&x.reverse();const y=x.indexOf(g.currentTarget);x=c.loop?EX(x,y+1):x.slice(y+1)}setTimeout(()=>uw(x))}})})})});cw.displayName=sw;var DX={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function _X(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function $X(e,t,n){const r=_X(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return DX[r]}function uw(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function EX(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var $l=lw,za=cw,xg="Radio",[MX,dw]=Le(xg),[AX,TX]=MX(xg),fw=k.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:a,disabled:i,value:l="on",onCheck:s,...c}=e,[u,d]=k.useState(null),f=ge(t,m=>d(m)),h=k.useRef(!1),g=u?!!u.closest("form"):!0;return p.jsxs(AX,{scope:n,checked:o,disabled:i,children:[p.jsx(ee.button,{type:"button",role:"radio","aria-checked":o,"data-state":gw(o),"data-disabled":i?"":void 0,disabled:i,value:l,...c,ref:f,onClick:J(e.onClick,m=>{o||s==null||s(),g&&(h.current=m.isPropagationStopped(),h.current||m.stopPropagation())})}),g&&p.jsx(PX,{control:u,bubbles:!h.current,name:r,value:l,checked:o,required:a,disabled:i,style:{transform:"translateX(-100%)"}})]})});fw.displayName=xg;var pw="RadioIndicator",hw=k.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...o}=e,a=TX(pw,n);return p.jsx(pt,{present:r||a.checked,children:p.jsx(ee.span,{"data-state":gw(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t})})});hw.displayName=pw;var PX=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,a=k.useRef(null),i=cl(n),l=il(t);return k.useEffect(()=>{const s=a.current,c=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(c,"checked").set;if(i!==n&&d){const f=new Event("click",{bubbles:r});d.call(s,n),s.dispatchEvent(f)}},[i,n,r]),p.jsx("input",{type:"radio","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:a,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function gw(e){return e?"checked":"unchecked"}var RX=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Cg="RadioGroup",[BX,cse]=Le(Cg,[Pn,dw]),mw=Pn(),bw=dw(),[IX,OX]=BX(Cg),vw=k.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:a,required:i=!1,disabled:l=!1,orientation:s,dir:c,loop:u=!0,onValueChange:d,...f}=e,h=mw(n),g=Nr(c),[m,b]=ct({prop:a,defaultProp:o,onChange:d});return p.jsx(IX,{scope:n,name:r,required:i,disabled:l,value:m,onValueChange:b,children:p.jsx($l,{asChild:!0,...h,orientation:s,dir:g,loop:u,children:p.jsx(ee.div,{role:"radiogroup","aria-required":i,"aria-orientation":s,"data-disabled":l?"":void 0,dir:g,...f,ref:t})})})});vw.displayName=Cg;var yw="RadioGroupItem",xw=k.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...o}=e,a=OX(yw,n),i=a.disabled||r,l=mw(n),s=bw(n),c=k.useRef(null),u=ge(t,c),d=a.value===o.value,f=k.useRef(!1);return k.useEffect(()=>{const h=m=>{RX.includes(m.key)&&(f.current=!0)},g=()=>f.current=!1;return document.addEventListener("keydown",h),document.addEventListener("keyup",g),()=>{document.removeEventListener("keydown",h),document.removeEventListener("keyup",g)}},[]),p.jsx(za,{asChild:!0,...l,focusable:!i,active:d,children:p.jsx(fw,{disabled:i,required:a.required,checked:d,...s,...o,name:a.name,ref:u,onCheck:()=>a.onValueChange(o.value),onKeyDown:J(h=>{h.key==="Enter"&&h.preventDefault()}),onFocus:J(o.onFocus,()=>{var h;f.current&&((h=c.current)==null||h.click())})})})});xw.displayName=yw;var FX="RadioGroupIndicator",Cw=k.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,o=bw(n);return p.jsx(hw,{...o,...r,ref:t})});Cw.displayName=FX;var ww=vw,kw=xw,NX=Cw;const LX="_root_8nb1w_1",zX="_footer_8nb1w_28",jX="_groupRoot_8nb1w_33",VX="_item_8nb1w_40",HX="_uniformPadding_8nb1w_67",WX="_itemIcon_8nb1w_79",KX="_itemTextContainer_8nb1w_90",Qt={root:LX,"width-large":"_width-large_8nb1w_14","width-auto":"_width-auto_8nb1w_17","padding-medium":"_padding-medium_8nb1w_21","padding-small":"_padding-small_8nb1w_24",footer:zX,groupRoot:jX,item:VX,uniformPadding:HX,"inlinePadding-icon":"_inlinePadding-icon_8nb1w_71","inlinePadding-default":"_inlinePadding-default_8nb1w_74",itemIcon:WX,itemTextContainer:KX},UX=({value:e,onValueChange:t,children:n,width:r="large",padding:o="medium",footer:a})=>p.jsxs("aside",{className:Qt.root,children:[p.jsx(ww,{className:W(Qt.groupRoot,Qt[`width-${r}`],Qt[`padding-${o}`]),value:e,onValueChange:t,orientation:"vertical",children:n}),a&&p.jsx("div",{className:W(Qt.footer,Qt[`padding-${o}`]),children:a})]}),ZX=({value:e,icon:t,title:n,subtitle:r})=>{const o=n||r,a=W(Qt.item,Qt[`inlinePadding-${t?"icon":"default"}`],!o&&Qt.uniformPadding);return p.jsxs(kw,{className:a,value:e,children:[t&&p.jsx("div",{className:Qt.itemIcon,children:p.jsx(de,{name:t,size:"medium",color:"grey11"})}),o&&p.jsxs("div",{className:Qt.itemTextContainer,children:[p.jsx(Q,{variant:"bold",color:"grey12",noWrap:!0,children:n}),p.jsx(Q,{variant:"small",color:"grey11",noWrap:!0,children:r})]})]})},GX="_root_15mfy_1",qX="_grey_15mfy_11",YX="_green_15mfy_16",JX="_amber_15mfy_21",XX="_purple_15mfy_26",C4={root:GX,grey:qX,green:YX,amber:JX,purple:XX};function QX(e){const{color:t,role:n="status"}=e;return p.jsx("div",{role:n,className:W(C4.root,C4[t])})}var p1=["Enter"," "],eQ=["ArrowDown","PageUp","Home"],Sw=["ArrowUp","PageDown","End"],tQ=[...eQ,...Sw],nQ={ltr:[...p1,"ArrowRight"],rtl:[...p1,"ArrowLeft"]},rQ={ltr:["ArrowLeft"],rtl:["ArrowRight"]},El="Menu",[el,oQ,aQ]=wu(El),[Bo,Dw]=Le(El,[aQ,Ar,Pn]),Su=Ar(),_w=Pn(),[iQ,Io]=Bo(El),[lQ,Ml]=Bo(El),$w=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:i=!0}=e,l=Su(t),[s,c]=k.useState(null),u=k.useRef(!1),d=$n(a),f=Nr(o);return k.useEffect(()=>{const h=()=>{u.current=!0,document.addEventListener("pointerdown",g,{capture:!0,once:!0}),document.addEventListener("pointermove",g,{capture:!0,once:!0})},g=()=>u.current=!1;return document.addEventListener("keydown",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",g,{capture:!0})}},[]),p.jsx(zc,{...l,children:p.jsx(iQ,{scope:t,open:n,onOpenChange:d,content:s,onContentChange:c,children:p.jsx(lQ,{scope:t,onClose:k.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:f,modal:i,children:r})})})};$w.displayName=El;var sQ="MenuAnchor",wg=k.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Su(n);return p.jsx(ll,{...o,...r,ref:t})});wg.displayName=sQ;var kg="MenuPortal",[cQ,Ew]=Bo(kg,{forceMount:void 0}),Mw=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=Io(kg,t);return p.jsx(cQ,{scope:t,forceMount:n,children:p.jsx(pt,{present:n||a.open,children:p.jsx(Ao,{asChild:!0,container:o,children:r})})})};Mw.displayName=kg;var Wt="MenuContent",[uQ,Sg]=Bo(Wt),Aw=k.forwardRef((e,t)=>{const n=Ew(Wt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=Io(Wt,e.__scopeMenu),i=Ml(Wt,e.__scopeMenu);return p.jsx(el.Provider,{scope:e.__scopeMenu,children:p.jsx(pt,{present:r||a.open,children:p.jsx(el.Slot,{scope:e.__scopeMenu,children:i.modal?p.jsx(dQ,{...o,ref:t}):p.jsx(fQ,{...o,ref:t})})})})}),dQ=k.forwardRef((e,t)=>{const n=Io(Wt,e.__scopeMenu),r=k.useRef(null),o=ge(t,r);return k.useEffect(()=>{const a=r.current;if(a)return Hc(a)},[]),p.jsx(Dg,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:J(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),fQ=k.forwardRef((e,t)=>{const n=Io(Wt,e.__scopeMenu);return p.jsx(Dg,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Dg=k.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:l,onEntryFocus:s,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:h,disableOutsideScroll:g,...m}=e,b=Io(Wt,n),x=Ml(Wt,n),y=Su(n),v=_w(n),w=oQ(n),[D,_]=k.useState(null),M=k.useRef(null),S=ge(t,M,b.onContentChange),E=k.useRef(0),P=k.useRef(""),$=k.useRef(0),R=k.useRef(null),T=k.useRef("right"),I=k.useRef(0),N=g?Kc:k.Fragment,B=g?{as:sn,allowPinchZoom:!0}:void 0,V=j=>{var z,q;const L=P.current+j,O=w().filter(te=>!te.disabled),Z=document.activeElement,re=(z=O.find(te=>te.ref.current===Z))==null?void 0:z.textValue,oe=O.map(te=>te.textValue),ie=SQ(oe,L,re),se=(q=O.find(te=>te.textValue===ie))==null?void 0:q.ref.current;(function te(H){P.current=H,window.clearTimeout(E.current),H!==""&&(E.current=window.setTimeout(()=>te(""),1e3))})(L),se&&setTimeout(()=>se.focus())};k.useEffect(()=>()=>window.clearTimeout(E.current),[]),Fc();const F=k.useCallback(j=>{var O,Z;return T.current===((O=R.current)==null?void 0:O.side)&&_Q(j,(Z=R.current)==null?void 0:Z.area)},[]);return p.jsx(uQ,{scope:n,searchRef:P,onItemEnter:k.useCallback(j=>{F(j)&&j.preventDefault()},[F]),onItemLeave:k.useCallback(j=>{var L;F(j)||((L=M.current)==null||L.focus(),_(null))},[F]),onTriggerLeave:k.useCallback(j=>{F(j)&&j.preventDefault()},[F]),pointerGraceTimerRef:$,onPointerGraceIntentChange:k.useCallback(j=>{R.current=j},[]),children:p.jsx(N,{...B,children:p.jsx(Ba,{asChild:!0,trapped:o,onMountAutoFocus:J(a,j=>{var L;j.preventDefault(),(L=M.current)==null||L.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:p.jsx(al,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:h,children:p.jsx($l,{asChild:!0,...v,dir:x.dir,orientation:"vertical",loop:r,currentTabStopId:D,onCurrentTabStopIdChange:_,onEntryFocus:J(s,j=>{x.isUsingKeyboardRef.current||j.preventDefault()}),preventScrollOnEntryFocus:!0,children:p.jsx(jc,{role:"menu","aria-orientation":"vertical","data-state":Uw(b.open),"data-radix-menu-content":"",dir:x.dir,...y,...m,ref:S,style:{outline:"none",...m.style},onKeyDown:J(m.onKeyDown,j=>{const O=j.target.closest("[data-radix-menu-content]")===j.currentTarget,Z=j.ctrlKey||j.altKey||j.metaKey,re=j.key.length===1;O&&(j.key==="Tab"&&j.preventDefault(),!Z&&re&&V(j.key));const oe=M.current;if(j.target!==oe||!tQ.includes(j.key))return;j.preventDefault();const se=w().filter(z=>!z.disabled).map(z=>z.ref.current);Sw.includes(j.key)&&se.reverse(),wQ(se)}),onBlur:J(e.onBlur,j=>{j.currentTarget.contains(j.target)||(window.clearTimeout(E.current),P.current="")}),onPointerMove:J(e.onPointerMove,tl(j=>{const L=j.target,O=I.current!==j.clientX;if(j.currentTarget.contains(L)&&O){const Z=j.clientX>I.current?"right":"left";T.current=Z,I.current=j.clientX}}))})})})})})})});Aw.displayName=Wt;var pQ="MenuGroup",_g=k.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(ee.div,{role:"group",...r,ref:t})});_g.displayName=pQ;var hQ="MenuLabel",Tw=k.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(ee.div,{...r,ref:t})});Tw.displayName=hQ;var Ec="MenuItem",w4="menu.itemSelect",Du=k.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=k.useRef(null),i=Ml(Ec,e.__scopeMenu),l=Sg(Ec,e.__scopeMenu),s=ge(t,a),c=k.useRef(!1),u=()=>{const d=a.current;if(!n&&d){const f=new CustomEvent(w4,{bubbles:!0,cancelable:!0});d.addEventListener(w4,h=>r==null?void 0:r(h),{once:!0}),mE(d,f),f.defaultPrevented?c.current=!1:i.onClose()}};return p.jsx(Pw,{...o,ref:s,disabled:n,onClick:J(e.onClick,u),onPointerDown:d=>{var f;(f=e.onPointerDown)==null||f.call(e,d),c.current=!0},onPointerUp:J(e.onPointerUp,d=>{var f;c.current||(f=d.currentTarget)==null||f.click()}),onKeyDown:J(e.onKeyDown,d=>{const f=l.searchRef.current!=="";n||f&&d.key===" "||p1.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})});Du.displayName=Ec;var Pw=k.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,i=Sg(Ec,n),l=_w(n),s=k.useRef(null),c=ge(t,s),[u,d]=k.useState(!1),[f,h]=k.useState("");return k.useEffect(()=>{const g=s.current;g&&h((g.textContent??"").trim())},[a.children]),p.jsx(el.ItemSlot,{scope:n,disabled:r,textValue:o??f,children:p.jsx(za,{asChild:!0,...l,focusable:!r,children:p.jsx(ee.div,{role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:c,onPointerMove:J(e.onPointerMove,tl(g=>{r?i.onItemLeave(g):(i.onItemEnter(g),g.defaultPrevented||g.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:J(e.onPointerLeave,tl(g=>i.onItemLeave(g))),onFocus:J(e.onFocus,()=>d(!0)),onBlur:J(e.onBlur,()=>d(!1))})})})}),gQ="MenuCheckboxItem",Rw=k.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return p.jsx(Nw,{scope:e.__scopeMenu,checked:n,children:p.jsx(Du,{role:"menuitemcheckbox","aria-checked":Mc(n)?"mixed":n,...o,ref:t,"data-state":Eg(n),onSelect:J(o.onSelect,()=>r==null?void 0:r(Mc(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Rw.displayName=gQ;var Bw="MenuRadioGroup",[mQ,bQ]=Bo(Bw,{value:void 0,onValueChange:()=>{}}),Iw=k.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,a=$n(r);return p.jsx(mQ,{scope:e.__scopeMenu,value:n,onValueChange:a,children:p.jsx(_g,{...o,ref:t})})});Iw.displayName=Bw;var Ow="MenuRadioItem",Fw=k.forwardRef((e,t)=>{const{value:n,...r}=e,o=bQ(Ow,e.__scopeMenu),a=n===o.value;return p.jsx(Nw,{scope:e.__scopeMenu,checked:a,children:p.jsx(Du,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":Eg(a),onSelect:J(r.onSelect,()=>{var i;return(i=o.onValueChange)==null?void 0:i.call(o,n)},{checkForDefaultPrevented:!1})})})});Fw.displayName=Ow;var $g="MenuItemIndicator",[Nw,vQ]=Bo($g,{checked:!1}),Lw=k.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=vQ($g,n);return p.jsx(pt,{present:r||Mc(a.checked)||a.checked===!0,children:p.jsx(ee.span,{...o,ref:t,"data-state":Eg(a.checked)})})});Lw.displayName=$g;var yQ="MenuSeparator",zw=k.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(ee.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});zw.displayName=yQ;var xQ="MenuArrow",jw=k.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Su(n);return p.jsx(Vc,{...o,...r,ref:t})});jw.displayName=xQ;var CQ="MenuSub",[use,Vw]=Bo(CQ),Ci="MenuSubTrigger",Hw=k.forwardRef((e,t)=>{const n=Io(Ci,e.__scopeMenu),r=Ml(Ci,e.__scopeMenu),o=Vw(Ci,e.__scopeMenu),a=Sg(Ci,e.__scopeMenu),i=k.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:s}=a,c={__scopeMenu:e.__scopeMenu},u=k.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return k.useEffect(()=>u,[u]),k.useEffect(()=>{const d=l.current;return()=>{window.clearTimeout(d),s(null)}},[l,s]),p.jsx(wg,{asChild:!0,...c,children:p.jsx(Pw,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Uw(n.open),...e,ref:Bc(t,o.onTriggerChange),onClick:d=>{var f;(f=e.onClick)==null||f.call(e,d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:J(e.onPointerMove,tl(d=>{a.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!n.open&&!i.current&&(a.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{n.onOpenChange(!0),u()},100))})),onPointerLeave:J(e.onPointerLeave,tl(d=>{var h,g;u();const f=(h=n.content)==null?void 0:h.getBoundingClientRect();if(f){const m=(g=n.content)==null?void 0:g.dataset.side,b=m==="right",x=b?-5:5,y=f[b?"left":"right"],v=f[b?"right":"left"];a.onPointerGraceIntentChange({area:[{x:d.clientX+x,y:d.clientY},{x:y,y:f.top},{x:v,y:f.top},{x:v,y:f.bottom},{x:y,y:f.bottom}],side:m}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(d),d.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:J(e.onKeyDown,d=>{var h;const f=a.searchRef.current!=="";e.disabled||f&&d.key===" "||nQ[r.dir].includes(d.key)&&(n.onOpenChange(!0),(h=n.content)==null||h.focus(),d.preventDefault())})})})});Hw.displayName=Ci;var Ww="MenuSubContent",Kw=k.forwardRef((e,t)=>{const n=Ew(Wt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=Io(Wt,e.__scopeMenu),i=Ml(Wt,e.__scopeMenu),l=Vw(Ww,e.__scopeMenu),s=k.useRef(null),c=ge(t,s);return p.jsx(el.Provider,{scope:e.__scopeMenu,children:p.jsx(pt,{present:r||a.open,children:p.jsx(el.Slot,{scope:e.__scopeMenu,children:p.jsx(Dg,{id:l.contentId,"aria-labelledby":l.triggerId,...o,ref:c,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:u=>{var d;i.isUsingKeyboardRef.current&&((d=s.current)==null||d.focus()),u.preventDefault()},onCloseAutoFocus:u=>u.preventDefault(),onFocusOutside:J(e.onFocusOutside,u=>{u.target!==l.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:J(e.onEscapeKeyDown,u=>{i.onClose(),u.preventDefault()}),onKeyDown:J(e.onKeyDown,u=>{var h;const d=u.currentTarget.contains(u.target),f=rQ[i.dir].includes(u.key);d&&f&&(a.onOpenChange(!1),(h=l.trigger)==null||h.focus(),u.preventDefault())})})})})})});Kw.displayName=Ww;function Uw(e){return e?"open":"closed"}function Mc(e){return e==="indeterminate"}function Eg(e){return Mc(e)?"indeterminate":e?"checked":"unchecked"}function wQ(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function kQ(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function SQ(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let i=kQ(e,Math.max(a,0));o.length===1&&(i=i.filter(c=>c!==n));const s=i.find(c=>c.toLowerCase().startsWith(o.toLowerCase()));return s!==n?s:void 0}function DQ(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const l=t[a].x,s=t[a].y,c=t[i].x,u=t[i].y;s>r!=u>r&&n<(c-l)*(r-s)/(u-s)+l&&(o=!o)}return o}function _Q(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return DQ(n,t)}function tl(e){return t=>t.pointerType==="mouse"?e(t):void 0}var $Q=$w,EQ=wg,MQ=Mw,AQ=Aw,TQ=_g,PQ=Tw,RQ=Du,BQ=Rw,IQ=Iw,OQ=Fw,FQ=Lw,NQ=zw,LQ=jw,zQ=Hw,jQ=Kw,Mg="DropdownMenu",[VQ,dse]=Le(Mg,[Dw]),ht=Dw(),[HQ,Zw]=VQ(Mg),Gw=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:i,modal:l=!0}=e,s=ht(t),c=k.useRef(null),[u=!1,d]=ct({prop:o,defaultProp:a,onChange:i});return p.jsx(HQ,{scope:t,triggerId:Lt(),triggerRef:c,contentId:Lt(),open:u,onOpenChange:d,onOpenToggle:k.useCallback(()=>d(f=>!f),[d]),modal:l,children:p.jsx($Q,{...s,open:u,onOpenChange:d,dir:r,modal:l,children:n})})};Gw.displayName=Mg;var qw="DropdownMenuTrigger",Yw=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=Zw(qw,n),i=ht(n);return p.jsx(EQ,{asChild:!0,...i,children:p.jsx(ee.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:Bc(t,a.triggerRef),onPointerDown:J(e.onPointerDown,l=>{!r&&l.button===0&&l.ctrlKey===!1&&(a.onOpenToggle(),a.open||l.preventDefault())}),onKeyDown:J(e.onKeyDown,l=>{r||(["Enter"," "].includes(l.key)&&a.onOpenToggle(),l.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(l.key)&&l.preventDefault())})})})});Yw.displayName=qw;var WQ="DropdownMenuPortal",Jw=e=>{const{__scopeDropdownMenu:t,...n}=e,r=ht(t);return p.jsx(MQ,{...r,...n})};Jw.displayName=WQ;var Xw="DropdownMenuContent",Qw=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Zw(Xw,n),a=ht(n),i=k.useRef(!1);return p.jsx(AQ,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...r,ref:t,onCloseAutoFocus:J(e.onCloseAutoFocus,l=>{var s;i.current||(s=o.triggerRef.current)==null||s.focus(),i.current=!1,l.preventDefault()}),onInteractOutside:J(e.onInteractOutside,l=>{const s=l.detail.originalEvent,c=s.button===0&&s.ctrlKey===!0,u=s.button===2||c;(!o.modal||u)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Qw.displayName=Xw;var KQ="DropdownMenuGroup",UQ=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return p.jsx(TQ,{...o,...r,ref:t})});UQ.displayName=KQ;var ZQ="DropdownMenuLabel",ek=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return p.jsx(PQ,{...o,...r,ref:t})});ek.displayName=ZQ;var GQ="DropdownMenuItem",tk=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return p.jsx(RQ,{...o,...r,ref:t})});tk.displayName=GQ;var qQ="DropdownMenuCheckboxItem",YQ=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return p.jsx(BQ,{...o,...r,ref:t})});YQ.displayName=qQ;var JQ="DropdownMenuRadioGroup",XQ=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return p.jsx(IQ,{...o,...r,ref:t})});XQ.displayName=JQ;var QQ="DropdownMenuRadioItem",eee=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return p.jsx(OQ,{...o,...r,ref:t})});eee.displayName=QQ;var tee="DropdownMenuItemIndicator",nee=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return p.jsx(FQ,{...o,...r,ref:t})});nee.displayName=tee;var ree="DropdownMenuSeparator",oee=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return p.jsx(NQ,{...o,...r,ref:t})});oee.displayName=ree;var aee="DropdownMenuArrow",iee=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return p.jsx(LQ,{...o,...r,ref:t})});iee.displayName=aee;var lee="DropdownMenuSubTrigger",see=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return p.jsx(zQ,{...o,...r,ref:t})});see.displayName=lee;var cee="DropdownMenuSubContent",uee=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return p.jsx(jQ,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});uee.displayName=cee;var dee=Gw,fee=Yw,pee=Jw,hee=Qw,gee=ek,k4=tk;const mee="_content_1wy7l_1",bee="_border_1wy7l_13",vee="_itemIcon_1wy7l_42",yee="_item_1wy7l_42 _variant-small_3isg4_41 _base_3isg4_12",xee="_itemText_1wy7l_85",Cee="_label_1wy7l_99 _variant-small_3isg4_41 _base_3isg4_12",xn={content:mee,border:bee,"content-height-256":"_content-height-256_1wy7l_20","content-height-400":"_content-height-400_1wy7l_25","content-width-128":"_content-width-128_1wy7l_30","content-width-256":"_content-width-256_1wy7l_34","content-width-full-trigger-width":"_content-width-full-trigger-width_1wy7l_38",itemIcon:vee,item:yee,itemText:xee,"item-color-grey":"_item-color-grey_1wy7l_91","item-color-tomato":"_item-color-tomato_1wy7l_95",label:Cee};function Ag(e){const{open:t,onOpenChange:n,modal:r=!1,children:o}=e;return p.jsx(dee,{modal:r,open:t,onOpenChange:n,children:o})}function Tg(e){const t=Xn(),{disabled:n=t==null?void 0:t.disabled,children:r,...o}=e;return p.jsx(fee,{...o,asChild:!0,disabled:n,children:r})}const Pg=C.forwardRef(function(t,n){const{minWidth:r=128,maxHeight:o,asPortal:a=!0,avoidCollisions:i,collisionPadding:l=0,children:s,align:c,side:u,sideOffset:d,border:f=!0,childrenFocusScope:h=!1,...g}=t,m=p.jsx(Ba,{asChild:!0,loop:!0,trapped:!0,children:s}),b=p.jsx(hee,{...g,className:W(xn.content,xn[`content-width-${r}`],o&&xn[`content-height-${o}`],f&&xn.border),sideOffset:d||parseFloat(Se.space[4]),avoidCollisions:i,collisionPadding:l,align:c,side:u,onWheel:x=>x.stopPropagation(),ref:n,children:h?m:s});return a?p.jsx(pee,{children:b}):b}),wee=C.forwardRef(function(t,n){const{children:r,endIcon:o,startIcon:a,disabled:i,color:l="grey",description:s,onMouseOverChange:c,onSelect:u,textValue:d,readOnly:f=!1,renderTooltip:h=w=>w,endAdornment:g,completed:m,...b}=t,x={disabled:i,...b,onSelect:u,textValue:d,onMouseEnter:c&&(()=>c(!0)),onMouseLeave:c&&(()=>c(!1))},y=C.isValidElement(a)?C.cloneElement(a,{className:W(a.props.className,xn.itemIcon)}):null,v=C.isValidElement(o)?C.cloneElement(o,{className:W(o.props.className,xn.itemIcon)}):null;return s?p.jsx(p.Fragment,{children:h(p.jsx(k4,{...x,ref:n,asChild:!0,children:p.jsx(K4,{color:l,description:s,disabled:i,endAdornment:g,renderStartIcon:y?()=>y:void 0,renderEndIcon:v?()=>v:void 0,completed:m,readOnly:f,children:r})}))}):p.jsx(p.Fragment,{children:h(p.jsxs(k4,{...x,ref:n,className:W(xn.item,xn[`item-color-${l}`]),children:[y,p.jsx("span",{className:xn.itemText,children:p.jsx(Q,{component:"span",color:kee[l],children:r})}),v,g??null]}))})});function nk({children:e}){return p.jsx(gee,{className:xn.label,children:p.jsx(Q,{component:"span",children:e})})}const kee={grey:"grey12",tomato:"tomato11"},See="_root_18b8b_1",Dee="_input_18b8b_5",S4={root:See,input:Dee};function _ee(e){const{"aria-label":t,onChange:n,color:r="grey12",variant:o="normal",...a}=e,i=W(S4.input,bt[`variant-${o}`]);return p.jsx("div",{className:S4.root,children:p.jsx("input",{...a,"aria-label":t,className:i,style:{color:Se.color[r]},onChange:l=>n==null?void 0:n(l.currentTarget.value),inputMode:"text"})})}function $ee(e){const{title:t,description:n,errorImageSrc:r,sx:o}=e,a=C.useContext(vo.ErrorBoundaryContext);return p.jsxs(a5,{sx:o,children:[r&&p.jsx(s5,{children:p.jsx("img",{src:r,alt:"Error"})}),p.jsx(i5,{size:"big",children:t}),p.jsx(l5,{children:n}),p.jsx(c5,{children:p.jsx(_e,{onClick:a==null?void 0:a.reset,children:"Try again"})})]})}let D4=()=>!1;class Eee extends C.Component{constructor(n){super(n);Il(this,"registerRequest",(n,r)=>{var i;const o=vo.argsKey(n,r),a=this.state.requests;a.has(n)||a.set(n,new Map),(i=a.get(n))==null||i.set(o,r)});Il(this,"reset",()=>{var n,r;this.state.requests.forEach((o,a)=>{o.forEach(i=>vo.cache.clear(a,i))}),(r=(n=this.props).onReset)==null||r.call(n),this.setState({error:void 0,handleError:void 0,requests:new Map})});Il(this,"renderChildren",()=>{const{children:n,renderError:r=()=>null}=this.props,{error:o,handleError:a}=this.state;return o?a?r(o,this.reset):null:n});this.state={requests:new Map}}static registerGlobalErrorInterceptor(n){D4=n}static getDerivedStateFromError(n){return{error:n}}componentDidCatch(n){const r=!D4(n,this.reset);this.setState({error:n,handleError:r}),setTimeout(()=>{var o,a;return(a=(o=this.props).onError)==null?void 0:a.call(o,n)})}render(){return p.jsx(Mee,{reset:this.reset,registerRequest:this.registerRequest,children:this.renderChildren()})}}function Mee(e){const{children:t,reset:n,registerRequest:r}=e,o=C.useMemo(()=>({reset:n,registerRequest:r}),[n,r]);return p.jsx(vo.ErrorBoundaryContext.Provider,{value:o,children:t})}var Aee="Label",rk=k.forwardRef((e,t)=>p.jsx(ee.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));rk.displayName=Aee;var Tee=rk;const Pee="_root_kv4z5_1",Ree="_selected_kv4z5_13",Bee="_children_kv4z5_19",Iee="_top_kv4z5_23",Oee="_side_kv4z5_27",Fee="_icon_kv4z5_31",Nee="_label_kv4z5_45",Lee="_control_kv4z5_65",zee="_footer_kv4z5_84",jee="_disabled_kv4z5_90",Dn={root:Pee,selected:Ree,children:Bee,top:Iee,side:Oee,icon:Fee,label:Nee,control:Lee,footer:zee,disabled:jee},Vee=C.forwardRef(function(t,n){const{children:r,labelPosition:o="top",onMouseOverChange:a,footer:i,selected:l,...s}=t;return p.jsxs("div",{className:W(Dn.root,l&&Dn.selected),children:[p.jsx("div",{...s,className:W(Dn.children,Dn[o]),ref:n,onMouseEnter:a&&(()=>a(!0)),onMouseLeave:a&&(()=>a(!1)),children:p.jsx(ok.Provider,{value:{labelPosition:o},children:r})}),i]})});function Hee(e){const{name:t,disabled:n}=e;return p.jsx("div",{className:W(Dn.icon,n&&Dn.disabled),children:p.jsx(de,{name:t,size:"small",color:"grey11"})})}function Wee(e){const{children:t,...n}=e,{labelPosition:r}=Zee(),o=r==="top"?"extraSmall":"normal";return p.jsx(Tee,{...n,className:Dn.label,children:p.jsx(Q,{color:"grey11",component:"span",variant:o,children:t})})}function Kee(e){const{children:t,disabled:n}=e;return p.jsx("div",{className:W(Dn.control,n&&Dn.disabled),children:t})}function Uee(e){const{children:t}=e;return p.jsx("div",{className:Dn.footer,children:t})}const ok=C.createContext(void 0);function Zee(){const e=C.useContext(ok);if(!e)throw new Error("FieldContext is mandatory.");return e}const Gee="_fieldSet_1ama6_1",qee="_fieldSetContent_1ama6_17",Yee="_legend_1ama6_33",vs={fieldSet:Gee,fieldSetContent:qee,"border-normal":"_border-normal_1ama6_24","border-selected":"_border-selected_1ama6_28",legend:Yee};function Jee(e){const{selected:t,children:n,legend:r,id:o,name:a,onFocus:i,header:l}=e;return p.jsxs("fieldset",{className:W(vs.fieldSet,vs[`border-${t?"selected":"normal"}`]),id:o,name:a,onFocus:i,children:[p.jsxs("header",{className:vs.legend,children:[p.jsx(Q,{component:"span",variant:"smallBold",children:r}),l]}),p.jsx("div",{className:vs.fieldSetContent,children:n})]})}const Xee="_root_x856h_1",Qee="_dropTarget_x856h_7",ete="_dropzone_x856h_12",tte="_overlay_x856h_19",nte="_overlayContainer_x856h_25",rte="_fadeIn_x856h_1",ii={root:Xee,dropTarget:Qee,dropzone:ete,overlay:tte,overlayContainer:nte,fadeIn:rte},h1={applicationAll:"application/*",imageAll:"image/*",videoAll:"video/*",audioAll:"audio/*",csv:"text/csv",txt:"text/plain"};function _4(e,t){return t==="image"?e.startsWith($4(h1.imageAll)):Object.values(h1).some(n=>e.startsWith($4(n)))}function $4(e){return e.endsWith("/*")?e.slice(0,-1):e}function ote(e){const{onFilesSelected:t,overlay:n,children:r,assetType:o="all"}=e,[a,i]=C.useState(!1);function l(f){return f.dataTransfer.items?o==="all"?!0:[...f.dataTransfer.items].every(g=>_4(g.type,o)):!1}function s(f){f.preventDefault();const h=l(f);i(h)}function c(f){f.preventDefault();const h=l(f);i(h)}function u(f){f.preventDefault(),i(!1)}async function d(f){f.preventDefault();const h=l(f);if(!f.dataTransfer.items||!h)return;const g=[...f.dataTransfer.items].filter(b=>b.kind==="file"&&(o==="all"?!0:_4(b.type,o))),m=(await Promise.all(g.map(b=>b.getAsFile()))).filter(Rc.isDefined);i(!1),t(m)}return p.jsxs("div",{className:W(ii.root,a&&ii.dropTarget),children:[p.jsx("div",{"aria-label":"dropzone",onDragEnter:s,onDragLeave:u,onDragOver:c,onDrop:d,className:ii.dropzone,children:r}),a&&p.jsx("div",{className:ii.overlayContainer,children:p.jsx("div",{className:ii.overlay,children:n})})]})}function ate(e){const{onFilesSelected:t,disabled:n,assetType:r="all",renderButton:o,...a}=e,i=C.useRef(null),l=r==="all"?"*":[h1.imageAll].toString();function s(){var u;(u=i.current)==null||u.click()}function c(u){const d=u.target.files,f=Array.from(d??[]);u.currentTarget.value="",t(f)}return p.jsxs(p.Fragment,{children:[p.jsx("input",{ref:i,type:"file",onChange:c,disabled:n,accept:l,multiple:!0,style:{display:"none"}}),o?o(s):p.jsx(_e,{disabled:n,...a,onClick:s})]})}const ite="_filterField_7g88y_1",lte="_inputContainer_7g88y_23",ste="_labelContainer_7g88y_30",cte="_tagsContainer_7g88y_37",ute="_input_7g88y_23 _variant-normal_3isg4_16 _base_3isg4_12",dte="_footerWrapper_7g88y_60",fte="_footer_7g88y_60",pte="_optionsContainer_7g88y_83",Yt={filterField:ite,"shadow-open":"_shadow-open_7g88y_9","shadow-closed":"_shadow-closed_7g88y_18",inputContainer:lte,labelContainer:ste,tagsContainer:cte,input:ute,footerWrapper:dte,footer:fte,optionsContainer:pte};function hte(e){const{selectedValues:t,onSelectedValuesChange:n,setOpen:r,fieldRef:o,fixedSelectedValues:a}=e,[i,l]=C.useState(""),s=a.size>0;function c(h){return n(h===-1?ln.slice(t,0,t.size-1):ln.filter(t,g=>g.id!==h.id))}function u(){i===""&&c(-1)}C.useEffect(()=>{function h(g){if(s)return;const m=fe.refContainsTarget(o,g.target);r(m),m||l("")}return document.addEventListener("mousedown",h),()=>{document.removeEventListener("mousedown",h)}},[r,o,s]);function d(h){h.code==="Escape"&&(r(!1),l(""))}function f(){return s?"":t.size+a.size===0?"Empty":"Type something..."}return{deleteItemFromValue:c,onBackspace:u,onKeyDown:d,searchText:i,setSearchText:l,isFieldLocked:s,inputPlaceholder:f()}}function gte(e){const{open:t,setOpen:n,label:r,icon:o,selectedValues:a,fixedSelectedValues:i=new Set,onSelectedValuesChange:l,...s}=e,c=C.useRef(null),{deleteItemFromValue:u,onBackspace:d,onKeyDown:f,setSearchText:h,searchText:g,isFieldLocked:m,inputPlaceholder:b}=hte({fieldRef:c,onSelectedValuesChange:l,selectedValues:a,setOpen:n,fixedSelectedValues:i});return p.jsxs("div",{role:"button",className:W(Yt.filterField,Yt[`shadow-${t?"open":"closed"}`]),ref:c,onKeyDown:f,tabIndex:0,children:[p.jsxs("div",{className:Yt.inputContainer,children:[p.jsxs("div",{className:Yt.labelContainer,children:[p.jsx(de,{name:o,size:"medium",color:"grey11"}),p.jsx(Q,{variant:"emphasized",color:"grey11",children:r})]}),p.jsxs("div",{className:Yt.tagsContainer,children:[ln.map(i,x=>p.jsx(_t,{title:x.label,maxWidth:150,size:"medium",selected:!0,icon:"lock"},x.id)),ln.map(a,x=>p.jsx(_t,{title:x.label,color:"purple",maxWidth:150,size:"medium",onClose:()=>u(x),selected:!0},x.id)),p.jsx("input",{className:Yt.input,style:{color:Se.color[t?"grey12":"grey11"],cursor:Se.cursor[m?"notAllowed":"text"]},disabled:m,inputMode:"text",onFocus:()=>n(!0),placeholder:b,onKeyDown:x=>{x.key==="Backspace"&&d()},value:g,onChange:x=>h(x.currentTarget.value)})]})]}),t&&p.jsx("div",{className:Yt.footerWrapper,children:p.jsx(bte,{label:r,onSelectedValuesChange:l,searchText:g,fixedSelectedValues:i,selectedValues:a,...s})})]})}function mte(e,t,n){function r(a){return!ln.some(t,i=>i.id===a.id)}function o(a,i){return a.label.toLowerCase().includes(i.toLowerCase())}return ln.filter(e,a=>r(a)&&o(a,n))}function bte(e){const{label:t,searchText:n,values:r,selectedValues:o,fixedSelectedValues:a=new Set,onSelectedValuesChange:i,mode:l,onErrorRetry:s,multiple:c=!0}=e;function u(d){if(!(!c&&o.size>0))return i(ln.add(o,d))}return l==="loading"?p.jsx(vte,{}):l==="error"?p.jsx(yte,{label:t,onErrorRetry:s}):p.jsxs("div",{className:Yt.footer,children:[p.jsxs(Q,{color:"grey11",variant:"emphasized",children:["Choose ",t]}),p.jsx("div",{className:Yt.optionsContainer,children:ln.map(mte(r,new Set([...o,...a]),n),d=>p.jsx(_t,{title:d.label,onClick:()=>u(d),size:"medium",maxWidth:150},d.id))})]})}function vte(){return p.jsxs("div",{className:Yt.footer,children:[p.jsx(Oi,{height:24,width:80,borderRadius:6}),p.jsx(Oi,{height:24,width:60,borderRadius:6})]})}function yte(e){const{label:t,onErrorRetry:n}=e;return p.jsx("div",{className:Yt.footer,children:p.jsxs($e,{justifyContent:"space-between",children:[p.jsxs($e,{gap:8,children:[p.jsx(de,{name:"alert",size:"large",color:"tomato11"}),p.jsxs(Q,{color:"tomato11",children:["Failed to load ",t]})]}),n&&p.jsx(_e,{endIcon:"refresh",color:"tomato",onClick:n,invisible:!0,children:"Retry"})]})})}const xte="_root_1lytw_1",Cte={root:xte};function wte(e){const{sx:t}=e;return p.jsx("div",{className:Cte.root,style:t})}function kte(e){const{children:t,itemCount:n,draggable:r}=e,[o,a]=C.useState(),i=fe.useStableCallback((c,u)=>{u?a(c):o===c&&a(void 0)}),l=fe.useStableCallback(e.onAddItem),s=C.useMemo(()=>({itemCount:n,draggable:r,activeItem:o,onActiveItemChange:i,onAddItem:l}),[n,r,o,i,l]);return p.jsx(ak.Provider,{value:s,children:t})}const ak=C.createContext(void 0);function Ste(){const e=C.useContext(ak);if(!e)throw new Error("useGroup must be used within GroupProvider");return e}const Dte="_group_6hhnw_1",_te="_header_6hhnw_19",$te="_footer_6hhnw_34",ys={group:Dte,"border-default":"_border-default_6hhnw_11","border-dragging":"_border-dragging_6hhnw_14",header:_te,footer:$te};function Ete(e){const{title:t,items:n,getItemKey:r,addItemButtonTitle:o,maxItems:a=Number.MAX_SAFE_INTEGER,children:i,dnd:l,onAddItem:s}=e,[c,u]=C.useState(!1),d=n.length<a;return p.jsx(kte,{itemCount:n.length,draggable:!!(l!=null&&l.onReorder),onAddItem:s,children:p.jsxs("article",{className:W(ys.group,ys[`border-${c?"dragging":"default"}`]),children:[p.jsx("header",{className:ys.header,children:p.jsxs(Q,{component:"span",variant:"smallBold",children:[t," ",p.jsxs(Q,{variant:"normal",color:"grey11",children:["• ",n.length]})]})}),p.jsx(P1,{ariaLabel:"Group",items:n,getItemKey:r,dnd:{...l,onDragChange:u},children:i}),p.jsx("footer",{className:ys.footer,children:d&&p.jsx(_e,{size:"large",color:"grey",startIcon:"add",onClick:()=>s==null?void 0:s(n.length),children:o})})]})})}const Mte="_hairlineButton_1guwr_1",Ate="_line_1guwr_36",Tte="_firstLine_1guwr_44",Pte="_secondLine_1guwr_49",Rte="_icon_1guwr_63",bn={hairlineButton:Mte,"mode-normal":"_mode-normal_1guwr_28","mode-drop":"_mode-drop_1guwr_32",line:Ate,firstLine:Tte,secondLine:Pte,"line-mode-normal":"_line-mode-normal_1guwr_54","line-mode-drop":"_line-mode-drop_1guwr_58",icon:Rte,"icon-mode-normal":"_icon-mode-normal_1guwr_75","icon-mode-drop":"_icon-mode-drop_1guwr_81"},ik=C.forwardRef(function(t,n){const{icon:r,dropMode:o,disabled:a=!1,sx:i,...l}=t,s=o?"drop":"normal";return p.jsxs("button",{...l,className:W(bn.hairlineButton,bn[`mode-${s}`]),style:i,disabled:a,ref:n,children:[p.jsx("div",{className:W(bn.line,bn.firstLine,bn[`line-mode-${s}`])}),p.jsx("div",{className:W(bn.icon,bn[`icon-mode-${s}`]),children:p.jsx(de,{name:r,size:"medium",color:"grey2"})}),p.jsx("div",{className:W(bn.line,bn.secondLine,bn[`line-mode-${s}`])})]})}),Bte="_groupItem_hdbn6_1",Ite="_header_hdbn6_9",Ote="_headerIcon_hdbn6_22",Fte="_addButton_hdbn6_29",Nte="_content_hdbn6_35",li={groupItem:Bte,header:Ite,headerIcon:Ote,addButton:Fte,content:Nte};function Lte(e){const{index:t,title:n,onMove:r,onDelete:o,children:a}=e,{itemCount:i,draggable:l,activeItem:s,onActiveItemChange:c,onAddItem:u}=Ste(),d=i>1,f=s!==void 0&&(t===s||t===s+1);function h(){c(t,!0)}function g(){c(t,!1)}function m(b){b.currentTarget.contains(b.relatedTarget)||g()}return p.jsxs("article",{className:li.groupItem,onMouseEnter:h,onFocus:h,onMouseLeave:g,onBlur:m,children:[p.jsxs("header",{className:li.header,draggable:l&&d,children:[p.jsx(de,{className:li.headerIcon,name:"viewDay"}),p.jsx(Q,{color:"grey11",variant:"small",component:"span",children:n}),p.jsxs($r,{sx:{marginLeft:"auto"},size:"small",color:"grey",children:[d&&p.jsxs($r,{density:"compact",children:[p.jsx(_e,{disabled:t===0,startIcon:"arrowUpward",onClick:()=>r==null?void 0:r({index:t,offset:-1})}),p.jsx(_e,{disabled:t===i-1,startIcon:"arrowDownward",onClick:()=>r==null?void 0:r({index:t,offset:1})})]}),p.jsx(_e,{startIcon:"delete",onClick:()=>o==null?void 0:o(t)}),d&&p.jsx(de,{name:"dragIndicator",color:"grey8",size:"small",sx:{alignSelf:"center"}})]}),p.jsx("div",{className:li.addButton,children:p.jsx(ka,{enterDuration:150,exitDuration:100,children:f&&p.jsx(ik,{icon:"add",onClick:()=>u==null?void 0:u(t)})})})]}),p.jsx("section",{className:li.content,children:a})]})}const zte="_root_zp2ei_1",jte="_disabled_zp2ei_13",Vte="_selected_zp2ei_38",Of={root:zte,disabled:jte,selected:Vte};function Hte(e){const{text:t,selected:n,disabled:r=!1,renderLink:o}=e;return p.jsx("div",{className:W(Of.root,r&&Of.disabled,n&&Of.selected),children:o(p.jsx(Q,{component:"span",variant:"emphasized",noSelect:!0,color:"grey11",children:t}))})}const Wte="_kbd_i5ym5_1",Kte="_kbdItem_i5ym5_6",E4={kbd:Wte,kbdItem:Kte};function Ute(e){const{value:t}=e,n=(typeof t=="string"?[t]:t).map(r=>r==="mod"?Zte():r.toUpperCase());return p.jsx("span",{className:E4.kbd,children:n.map(r=>p.jsx("kbd",{className:E4.kbdItem,children:p.jsx(Q,{color:"grey11",children:r})},r))})}function Zte(){return navigator.userAgent.includes("Mac")?"⌘":"Ctrl"}function Gte(e){const{children:t,heightEstimate:n=200,keepLoaded:r=!1,loadWhenSearching:o=!1,gap:a}=e,i=C.useRef(null),{show:l,setShow:s}=qte({ref:i,keepLoaded:r});return X4("mod+F",()=>{o&&s(!0)}),Yte({ref:i,show:l}),p.jsx($e,{ref:i,flexDirection:"column",height:l?"auto":n,gap:a,children:l&&t})}function qte(e){const{ref:t,keepLoaded:n}=e,r=fe.useInView(t,{once:n}),[o,a]=C.useState(r);return C.useLayoutEffect(()=>{if(r)return a(!0);if(!t.current||n)return;let i;const l=an.getScrollableAncestor(t.current);let s=l.scrollTop;function c(){i=window.setTimeout(()=>{if(t.current&&!an.isElementInView(t.current)){if(s==l.scrollTop)return a(!1);s=l.scrollTop,c()}},2e3)}return c(),()=>clearTimeout(i)},[r,t,n]),{show:o,setShow:a}}function Yte(e){const{ref:t,show:n}=e,[r,o]=C.useState({previousHeight:0});fe.useOnChange(n,()=>{var i;const a=(i=t.current)==null?void 0:i.clientHeight;a&&o({previousHeight:a})}),C.useLayoutEffect(()=>{if(r.previousHeight===0||!t.current)return;const a=an.getScrollableAncestor(t.current);if(!a||an.getOffsetTopRelativeTo(t.current,a)>=a.scrollTop)return;const s=t.current.clientHeight-r.previousHeight;a.scrollTop+=s},[r,t])}const Jte="_line_uonvi_1",Xte="_grey_uonvi_14",Qte="_green_uonvi_18",ene="_amber_uonvi_22",tne="_purple_uonvi_26",Ff={line:Jte,"thickness-2":"_thickness-2_uonvi_7","thickness-4":"_thickness-4_uonvi_10",grey:Xte,green:Qte,amber:ene,purple:tne};function nne(e){const{color:t,role:n="status",thickness:r=4,sx:o}=e;return p.jsx("div",{role:n,className:W(Ff.line,Ff[t],Ff[`thickness-${r}`]),style:o})}const rne="_list_ft5vt_1",one="_item_ft5vt_6",g1={list:rne,item:one,"density-regular":"_density-regular_ft5vt_18","density-compact":"_density-compact_ft5vt_22"};function ane(e){const{children:t,density:n="regular",sx:r}=e;return p.jsx("ul",{className:W(g1.list,g1[`density-${n}`]),style:r,children:t})}function ine(e){const{children:t}=e;return p.jsx("li",{className:g1.item,children:p.jsx(Q,{component:"span",children:t})})}const lne="data:image/svg+xml,%3csvg%20width='48'%20height='60'%20viewBox='0%200%2048%2060'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.5%208C0.5%203.85786%203.85786%200.5%208%200.5H33.5931C34.5214%200.5%2035.4116%200.868749%2036.068%201.52513L46.4749%2011.932C47.1313%2012.5884%2047.5%2013.4786%2047.5%2014.4069V52C47.5%2056.1421%2044.1421%2059.5%2040%2059.5H8C3.85787%2059.5%200.5%2056.1421%200.5%2052V8Z'%20fill='%23F5F2FF'%20stroke='%23AA99EC'/%3e%3cpath%20d='M47.5%2012.913L47.5%2013L40.5%2013C37.4624%2013%2035%2010.5376%2035%207.5L35%200.500001L35.087%200.500001L47.5%2012.913Z'%20fill='%23D7CFF9'%20stroke='%23AA99EC'/%3e%3cpath%20d='M21%2039C19.9%2039%2018.9583%2038.6083%2018.175%2037.825C17.3917%2037.0417%2017%2036.1%2017%2035C17%2033.9%2017.3917%2032.9583%2018.175%2032.175C18.9583%2031.3917%2019.9%2031%2021%2031C21.3833%2031%2021.7375%2031.0458%2022.0625%2031.1375C22.3875%2031.2292%2022.7%2031.3667%2023%2031.55V21H29V25H25V35C25%2036.1%2024.6083%2037.0417%2023.825%2037.825C23.0417%2038.6083%2022.1%2039%2021%2039Z'%20fill='%235746AF'/%3e%3c/svg%3e",sne="data:image/svg+xml,%3csvg%20width='48'%20height='60'%20viewBox='0%200%2048%2060'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.5%208C0.5%203.85786%203.85786%200.5%208%200.5H33.5931C34.5214%200.5%2035.4116%200.868749%2036.068%201.52513L46.4749%2011.932C47.1313%2012.5884%2047.5%2013.4786%2047.5%2014.4069V52C47.5%2056.1421%2044.1421%2059.5%2040%2059.5H8C3.85787%2059.5%200.5%2056.1421%200.5%2052V8Z'%20fill='%23F5F2FF'%20stroke='%23AA99EC'/%3e%3cpath%20d='M47.5%2012.913L47.5%2013L40.5%2013C37.4624%2013%2035%2010.5376%2035%207.5L35%200.500001L35.087%200.500001L47.5%2012.913Z'%20fill='%23D7CFF9'%20stroke='%23AA99EC'/%3e%3cpath%20d='M30%2033.75C30%2035.4833%2029.3917%2036.9583%2028.175%2038.175C26.9583%2039.3917%2025.4833%2040%2023.75%2040C22.0167%2040%2020.5417%2039.3917%2019.325%2038.175C18.1083%2036.9583%2017.5%2035.4833%2017.5%2033.75V24.5C17.5%2023.25%2017.9375%2022.1875%2018.8125%2021.3125C19.6875%2020.4375%2020.75%2020%2022%2020C23.25%2020%2024.3125%2020.4375%2025.1875%2021.3125C26.0625%2022.1875%2026.5%2023.25%2026.5%2024.5V33.25C26.5%2034.0167%2026.2333%2034.6667%2025.7%2035.2C25.1667%2035.7333%2024.5167%2036%2023.75%2036C22.9833%2036%2022.3333%2035.7333%2021.8%2035.2C21.2667%2034.6667%2021%2034.0167%2021%2033.25V24H23V33.25C23%2033.4667%2023.0708%2033.6458%2023.2125%2033.7875C23.3542%2033.9292%2023.5333%2034%2023.75%2034C23.9667%2034%2024.1458%2033.9292%2024.2875%2033.7875C24.4292%2033.6458%2024.5%2033.4667%2024.5%2033.25V24.5C24.4833%2023.8%2024.2375%2023.2083%2023.7625%2022.725C23.2875%2022.2417%2022.7%2022%2022%2022C21.3%2022%2020.7083%2022.2417%2020.225%2022.725C19.7417%2023.2083%2019.5%2023.8%2019.5%2024.5V33.75C19.4833%2034.9333%2019.8917%2035.9375%2020.725%2036.7625C21.5583%2037.5875%2022.5667%2038%2023.75%2038C24.9167%2038%2025.9083%2037.5875%2026.725%2036.7625C27.5417%2035.9375%2027.9667%2034.9333%2028%2033.75V24H30V33.75Z'%20fill='%235746AF'/%3e%3c/svg%3e",cne="data:image/svg+xml,%3csvg%20width='48'%20height='60'%20viewBox='0%200%2048%2060'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.5%208C0.5%203.85786%203.85786%200.5%208%200.5H33.5931C34.5214%200.5%2035.4116%200.868749%2036.068%201.52513L46.4749%2011.932C47.1313%2012.5884%2047.5%2013.4786%2047.5%2014.4069V52C47.5%2056.1421%2044.1421%2059.5%2040%2059.5H8C3.85787%2059.5%200.5%2056.1421%200.5%2052V8Z'%20fill='%23F5F2FF'%20stroke='%23AA99EC'/%3e%3cpath%20d='M16%2022L18%2026H21L19%2022H21L23%2026H26L24%2022H26L28%2026H31L29%2022H32C32.55%2022%2033.0208%2022.1958%2033.4125%2022.5875C33.8042%2022.9792%2034%2023.45%2034%2024V36C34%2036.55%2033.8042%2037.0208%2033.4125%2037.4125C33.0208%2037.8042%2032.55%2038%2032%2038H16C15.45%2038%2014.9792%2037.8042%2014.5875%2037.4125C14.1958%2037.0208%2014%2036.55%2014%2036V24C14%2023.45%2014.1958%2022.9792%2014.5875%2022.5875C14.9792%2022.1958%2015.45%2022%2016%2022ZM16%2028V36H32V28H16Z'%20fill='%235746AF'/%3e%3cpath%20d='M47.5%2012.913L47.5%2013L40.5%2013C37.4624%2013%2035%2010.5376%2035%207.5L35%200.500001L35.087%200.500001L47.5%2012.913Z'%20fill='%23D7CFF9'%20stroke='%23AA99EC'/%3e%3c/svg%3e",une="_overflowContainer_1fq3x_1",dne="_overflowItem_1fq3x_8",fne="_invisibleItemContainer_1fq3x_18",pne="_invisibleAdornmentContainer_1fq3x_26";const lk=C.createContext({numberOfVisibleItems:0});function sk(e){const{children:t,gap:n=8}=e,{numberOfVisibleItems:r,invisibleItemsContainerRef:o,adornmentsContainerRef:a,items:i,adornments:l}=hne(t,n),s=r<i.length,c=i.slice(0,r),u=C.useMemo(()=>({numberOfVisibleItems:r}),[r]);return p.jsx("div",{style:{"--OverflowContainer-gap":Se.space[n]},className:une,children:p.jsxs(lk.Provider,{value:u,children:[p.jsx("div",{ref:o,"aria-hidden":!0,className:fne,children:i}),p.jsx("div",{ref:a,"aria-hidden":!0,className:pne,children:l}),p.jsxs($e,{overflow:"hidden",width:"100%",children:[c,s&&l]})]})})}function Rg(e){const{children:t}=e;return p.jsx("div",{className:dne,children:t})}function Bg(e){const{adornment:t}=e,{numberOfVisibleItems:n}=C.useContext(lk);return p.jsx($e,{flexShrink:0,children:t({numberOfVisibleItems:n})})}function hne(e,t){const n=C.Children.toArray(e),r=n.filter(u=>fe.isComponentOfType(u,Rg)),o=n.filter(u=>fe.isComponentOfType(u,Bg)),a=C.useRef(null),i=C.useRef(null),[l,s]=C.useState(r.length),c=fe.useStableCallback(()=>{const u=a.current;if(!u)throw new Error("invisible items container ref not assigned");const d=i.current;if(!d)throw new Error("adornment container ref not assigned");let f=u.clientWidth;const h=Array.from(u.children).map(b=>b.clientWidth),g=d.clientWidth;let m=0;for(const[b,x]of h.entries()){if(f-=x,m=b+1,f>=0&&b===h.length-1)break;if(f<=0){for(g>0?f-=g:b!==h.length-1&&(f+=t);f<0&&m!==0;)f+=h[m-1]||0,m--;break}}l!==m&&s(m)});return C.useLayoutEffect(()=>{const u=a.current;if(!u)throw new Error("invisible items container ref not assigned");const d=new ResizeObserver(c);return d.observe(u),()=>{d.unobserve(u),d.disconnect()}},[c]),C.useLayoutEffect(c,[C.Children.count(e),c]),{numberOfVisibleItems:l,items:r,adornments:o,invisibleItemsContainerRef:a,adornmentsContainerRef:i}}const gne="_root_wwckm_1",mne="_indicator_wwckm_7",bne="_slowTransition_wwckm_14",vne="_progress_wwckm_20",yne="_collapsed_wwckm_35",xne="_large_wwckm_56",Jo={root:gne,indicator:mne,slowTransition:bne,progress:vne,collapsed:yne,large:xne};function ck(e){const{value:t,max:n=100,getValueLabel:r,displayLabel:o=!1,color:a="green9",backgroundColor:i="grey4",labelColor:l="grey11",height:s="normal",transition:c="fast",sx:u}=e;return p.jsxs("div",{className:Jo.root,style:u,children:[p.jsx(ab,{className:W(Jo.progress,{[Jo.collapsed]:s==="collapsed",[Jo.large]:s==="large"}),style:{backgroundColor:Se.color[i]},value:t,max:n,getValueLabel:r,children:p.jsx(ib,{className:W(Jo.indicator,{[Jo.slowTransition]:c==="slow"}),style:{transform:`translateX(-${100-t/n*100}%)`,backgroundColor:s!=="collapsed"?Se.color[a]:void 0}})}),o&&r&&p.jsx(Q,{variant:"small",color:l,children:r(t,n)})]})}const Cne="_root_1sacx_1",wne="_uploadStatusWrapper_1sacx_28",kne="_checkboxWrapper_1sacx_36",Sne="_textContainer_1sacx_55",Dne="_selected_1sacx_59",Ws={root:Cne,uploadStatusWrapper:wne,checkboxWrapper:kne,textContainer:Sne,selected:Dne},Nf=186;function _ne(e){const{["aria-label"]:t,url:n,filename:r,filenameHighlight:o,selected:a=!1,loading:i=!1,status:l="idle",extension:s,tags:c,onAddTag:u,width:d,height:f,size:h,kind:g,alt:m,onCheckedChange:b,onCardClick:x,onAddTagClick:y}=e;function v(){return g!=="image"&&h?nD.formatBytes(h):d&&f?`${d}×${f}`:""}function w($){i||x==null||x($)}function D($){($.code==="Enter"||$.code==="Space")&&($.preventDefault(),w($))}const _=o??r,{value:M,color:S,height:E,transition:P}=fk(l);return p.jsxs($e,{"aria-label":t,children:[p.jsxs("div",{role:"button",tabIndex:0,onKeyDown:D,onClick:w,className:W(Ws.root,a&&Ws.selected),children:[p.jsx($e,{flexDirection:"column",width:"100%",children:p.jsx($ne,{extension:s,url:n,filename:r,loading:i,kind:g,alt:m})}),p.jsxs($e,{flexDirection:"column",width:"100%",alignItems:"flex-start",opacity:i?.3:1,children:[p.jsx(A8,{content:_,contentVersion:_,decorations:{em:"highlight",p:"emphasized"},readOnly:!0}),p.jsx(Q,{variant:"small",color:"grey11",sx:{height:16},children:v()}),p.jsx("div",{className:Ws.uploadStatusWrapper,children:p.jsx(ck,{value:M,color:S,height:E,transition:P})}),p.jsxs($e,{width:"100%",alignItems:"center",gap:8,children:[p.jsx(Mne,{extension:s}),y&&!(c!=null&&c.length)&&p.jsx(_t,{title:"Add a tag",color:"purple",size:"medium",icon:"add",onClick:$=>{$==null||$.stopPropagation(),!(i||l==="error"||l==="uploading")&&y()}}),p.jsx(Ene,{tags:c,onAddTag:u})]})]})]}),p.jsx(Ane,{checked:a,onCheckedChange:b,disabled:i})]})}function $ne(e){const{url:t,filename:n,loading:r,kind:o,alt:a}=e,i=dk(o),l=r?.3:1;if(i)return p.jsx($e,{width:"100%",height:Nf,backgroundColor:"purple2",justifyContent:"center",alignItems:"center",opacity:l,children:p.jsx(uk,{kind:o,filename:n})});const s=new URL(t);return s.searchParams.set("h",Nf.toString()),s.searchParams.set("dpr",Math.max(1,Math.min(window.devicePixelRatio,3)).toString()),p.jsx(Y1,{children:p.jsx($e,{flexDirection:"column",alignItems:"center",justifyContent:"center",position:"relative",height:Nf,width:"100%",opacity:l,children:p.jsx(Uc,{src:s.toString(),alt:a||n,sizing:"contain"})})})}function uk(e){const{kind:t,filename:n}=e,r=dk(t);return p.jsx("img",{src:r,alt:n})}function dk(e){if(!(e!=null&&e.startsWith("image")))return e!=null&&e.startsWith("audio")?lne:e!=null&&e.startsWith("video")?cne:sne}function Ene(e){const{tags:t,onAddTag:n}=e;function r(i){i==null||i.stopPropagation(),n==null||n()}const o=15,a=!t||t.length===0;return!n&&a?null:a?p.jsx(_t,{title:"Add a tag +",color:"purple",onClick:r}):p.jsxs(sk,{children:[t.slice(0,o).map(({name:i,id:l})=>p.jsx(Rg,{children:p.jsx(_t,{title:i,color:"purple",size:"medium"})},l)),p.jsx(Bg,{adornment:({numberOfVisibleItems:i})=>p.jsx(_t,{title:`+${t.length-i}`,color:"purple",size:"medium"})})]})}function Mne(e){const{extension:t}=e;return t?p.jsx(_t,{size:"medium",title:(t==null?void 0:t.toUpperCase())??"",selected:!0}):null}function Ane(e){const{checked:t,disabled:n,onCheckedChange:r}=e;function o(i){n||r==null||r(!t,i)}function a(i){(i.code==="Enter"||i.code==="Space")&&(i.preventDefault(),o(i))}return p.jsx(yl,{content:t?"Unselect":"Select",delayDuration:500,children:p.jsx("div",{role:"presentation",className:Ws.checkboxWrapper,onClick:o,onKeyDown:a,children:p.jsx(m5,{onCheckedChange:r,checked:t,onClick:i=>i.stopPropagation(),disabled:n})})})}function fk(e){switch(e){case"idle":return{value:0,height:"collapsed",color:"grey4"};case"uploading":return{value:90,transition:"slow",color:"purple9"};case"success":return{value:100,height:"collapsed",color:"purple9"};case"error":return{value:100,color:"tomato11"}}}function Tne(e){const{max:t,min:n,onValueChange:r,value:o,...a}=e,[i,l]=C.useState(),s=String(i??o??"");function c(d){Bne(d)&&l(d)}function u(){if(i===void 0)return;if(l(void 0),i==="")return r==null?void 0:r(void 0);const d=Number(i.replace(",","."));if(Number.isNaN(d))return;const f=N4.clamp(d,{min:n,max:t});f!==o&&(r==null||r(f))}return p.jsx(xl,{...a,endAdornment:p.jsx(Pne,{min:n,max:t}),inputMode:"decimal",onBlur:u,onValueChange:c,value:s})}function Pne(e){const{min:t,max:n}=e;if(t===void 0&&n===void 0)return null;const r=[t!==void 0?`Min: ${t}`:"",n!==void 0?`Max: ${n}`:""].filter(Rc.isDefined).join(" ");return p.jsx(_t,{title:r,maxWidth:150})}const Rne=/^[-+]?[0-9]*[.,]?[0-9]*$/;function Bne(e){return Rne.test(e)}function Ine(e){return p.jsx(_A,{...e})}const One="_radioItem_1hyjm_1",Fne="_radioBigCard_wlj7j_3",Nne="_iconContainer_wlj7j_32",Lne="_texts_wlj7j_46",zne="_title_wlj7j_52",xs={radioItem:One,radioBigCard:Fne,iconContainer:Nne,texts:Lne,title:zne},jne="_root_inbrr_1",Vne={root:jne};function Hne(e){const{values:t,selectedValue:n,disabled:r=!1,evenItemSize:o=!1,sx:a,renderItem:i,onChange:l}=e;return p.jsx(ww,{className:Vne.root,style:a,disabled:r,value:n,onValueChange:l,children:t.map(s=>p.jsx(pk.Provider,{value:{value:s,isSelected:s===n,evenItemSize:o},children:i(s)},s))})}const pk=C.createContext(void 0);function hk(){const e=C.useContext(pk);if(!e)throw new Error("useRadioItem must be used within a RadioGroup");return e}const Wne="_radioItem_1hyjm_1",Kne="_evenSize_1hyjm_5",M4={radioItem:Wne,evenSize:Kne};function Ig(e){const{disabled:t,children:n}=e,{value:r,evenItemSize:o}=hk();return p.jsx(kw,{value:r,disabled:t,className:W(M4.radioItem,o&&M4.evenSize),children:n})}function Une(e){const{icon:t,title:n,badge:r,description:o,disabled:a=!1}=e,{isSelected:i}=hk();return p.jsx(Ig,{disabled:a,children:p.jsxs("div",{className:xs.radioBigCard,children:[p.jsx("div",{className:xs.iconContainer,children:p.jsx(de,{name:t,size:"large",color:i?"purple9":"grey9"})}),p.jsxs("div",{className:xs.texts,children:[p.jsxs("div",{className:xs.title,children:[p.jsx(Q,{variant:"h4",color:i?"purple12":"grey12",children:n}),r&&p.jsx(_t,{size:"medium",color:"green",icon:r.icon,title:r.title})]}),p.jsx(Q,{variant:"normal",color:i?"purple12":"grey11",children:o})]})]})})}const Zne="_radioItem_1hyjm_1",Gne="_root_3e6j3_3",qne="_root_194ix_4",Yne="_circle_194ix_18",Jne="_indicator_194ix_52",Lf={radioItem:Zne,radioCard:Gne,root:qne,circle:Yne,indicator:Jne};function gk(e){const{label:t,disabled:n=!1,decorative:r=!1}=e;function o(a){return r?a:p.jsx(Ig,{disabled:n,children:a})}return o(p.jsxs("div",{className:Lf.root,children:[p.jsx("div",{className:Lf.circle,children:p.jsx(NX,{className:Lf.indicator})}),t&&p.jsx(Q,{children:t})]}))}const Xne="_radioItem_1hyjm_1",Qne="_root_3e6j3_3",ere={radioItem:Xne,root:Qne};function tre(e){const{title:t,disabled:n=!1}=e;return p.jsx(Ig,{disabled:n,children:p.jsxs("div",{className:ere.root,children:[p.jsx(gk,{decorative:!0}),p.jsx(Q,{variant:"h4",children:t})]})})}const nre="_root_e1s96_1",rre="_horizontal_e1s96_33",ore="_spacing_e1s96_37",are="_vertical_e1s96_43",ire="_content_e1s96_54",lre="_gradient_e1s96_66",gr={root:nre,horizontal:rre,spacing:ore,vertical:are,content:ire,gradient:lre},Cs=Se.size.scrollbar;function sre(e){const t=e==="vertical";return{icon:{start:t?"expandLess":"chevronLeft",end:t?"expandMore":"chevronRight"},placement:{start:{top:0,left:0,right:t?Cs:void 0,bottom:t?void 0:Cs},end:{bottom:t?0:Cs,right:t?Cs:0,top:t?void 0:0,left:t?0:void 0}},clientSize:t?"clientHeight":"clientWidth",scrollSize:t?"scrollHeight":"scrollWidth",scrollPosition:t?"scrollTop":"scrollLeft"}}function cre(e){const{children:t,scrollAreaRef:n,direction:r="vertical"}=e,{clientSize:o,scrollPosition:a,scrollSize:i,icon:l,placement:s}=sre(r),[c,u]=C.useState(!1),[d,f]=C.useState(!1),h=C.useRef(!1);function g(y){h.current=y}C.useEffect(()=>{if(!n.current)return;const y=n.current,v=y[i]>y[o],w=y[a]>=y[i]-y[o];f(v&&!w);const D=y[a]>0;u(D)},[n,t,o,a,i]);function m(y){h.current&&(b(y),requestAnimationFrame(()=>m(y)))}function b(y){if(!n.current)return;const v=n.current,w=2;switch(y){case"start":v[a]-=w;break;case"end":v[a]+=w;break}}function x(y){const v=y.currentTarget.children[0];if(!v)return;const w=v[a],D=w>0,_=w>=v[i]-v[o];u(D),f(!_),(!D||_)&&g(!1)}return p.jsxs($e,{overflow:"hidden",position:"relative",width:"100%",flexDirection:r==="vertical"?"row":"column",children:[p.jsx("div",{onScrollCapture:x,style:{width:"100%",overflowX:"auto"},children:t}),p.jsx(ka,{animation:{name:"fade"},children:c&&p.jsx($e,{position:"absolute",backgroundColor:"grey2",alignItems:"center",...s.start,children:p.jsx("div",{className:gr.gradient,children:p.jsx(rt,{icon:l.start,onMouseDown:()=>{g(!0),m("start")},onMouseUp:()=>g(!1)})})})}),p.jsx(ka,{animation:{name:"fade"},children:d&&p.jsx($e,{position:"absolute",backgroundColor:"grey2",alignItems:"center",...s.end,children:p.jsx("div",{className:gr.gradient,children:p.jsx(rt,{icon:l.end,onMouseDown:()=>{g(!0),m("end")},onMouseUp:()=>g(!1)})})})})]})}const mk=C.forwardRef(function(t,n){const{["aria-label"]:r,children:o,direction:a="vertical",onScrollToBottom:i,controls:l=!1,threshold:s,className:c,style:u}=t,[d,f]=C.useState(!1),h=C.useRef(null),{width:g,height:m}=ure();function b(y){if(!i)return;const v=an.isScrolledToBottom(y.currentTarget,s);if(d!==v)return v&&i(),f(v)}const x=p.jsx("div",{"aria-label":r,ref:fe.composeRefs(n,h),onScroll:b,className:W(gr.root,gr[a],(g===0||m===0)&&gr.spacing,c),children:p.jsx("div",{className:W(gr.content,gr[a]),style:u,children:o})});return l?p.jsx(cre,{scrollAreaRef:h,direction:a,children:x}):x});function ure(){var l;const e=C.useRef(!1),t=C.useRef(0),n=C.useRef(0);if(e.current)return{width:t.current,height:n.current};const r=document.createElement("div");r.classList.add(gr.root),r.style.visibility="hidden",r.style.overflow="scroll",document.body.appendChild(r);const o=document.createElement("div");r.appendChild(o);const a=r.offsetWidth-o.offsetWidth,i=r.offsetHeight-o.offsetHeight;return(l=r.parentNode)==null||l.removeChild(r),e.current=!0,t.current=a,n.current=i,{width:a,height:i}}function Ac(e,[t,n]){return Math.min(n,Math.max(t,e))}var dre=[" ","Enter","ArrowUp","ArrowDown"],fre=[" ","Enter"],Al="Select",[_u,$u,pre]=wu(Al),[ja,fse]=Le(Al,[pre,Ar]),Eu=Ar(),[hre,Lr]=ja(Al),[gre,mre]=ja(Al),bk=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:a,value:i,defaultValue:l,onValueChange:s,dir:c,name:u,autoComplete:d,disabled:f,required:h}=e,g=Eu(t),[m,b]=k.useState(null),[x,y]=k.useState(null),[v,w]=k.useState(!1),D=Nr(c),[_=!1,M]=ct({prop:r,defaultProp:o,onChange:a}),[S,E]=ct({prop:i,defaultProp:l,onChange:s}),P=k.useRef(null),$=m?!!m.closest("form"):!0,[R,T]=k.useState(new Set),I=Array.from(R).map(N=>N.props.value).join(";");return p.jsx(zc,{...g,children:p.jsxs(hre,{required:h,scope:t,trigger:m,onTriggerChange:b,valueNode:x,onValueNodeChange:y,valueNodeHasChildren:v,onValueNodeHasChildrenChange:w,contentId:Lt(),value:S,onValueChange:E,open:_,onOpenChange:M,dir:D,triggerPointerDownPosRef:P,disabled:f,children:[p.jsx(_u.Provider,{scope:t,children:p.jsx(gre,{scope:e.__scopeSelect,onNativeOptionAdd:k.useCallback(N=>{T(B=>new Set(B).add(N))},[]),onNativeOptionRemove:k.useCallback(N=>{T(B=>{const V=new Set(B);return V.delete(N),V})},[]),children:n})}),$?p.jsxs(zk,{"aria-hidden":!0,required:h,tabIndex:-1,name:u,autoComplete:d,value:S,onChange:N=>E(N.target.value),disabled:f,children:[S===void 0?p.jsx("option",{value:""}):null,Array.from(R)]},I):null]})})};bk.displayName=Al;var vk="SelectTrigger",yk=k.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=Eu(n),i=Lr(vk,n),l=i.disabled||r,s=ge(t,i.onTriggerChange),c=$u(n),[u,d,f]=jk(g=>{const m=c().filter(y=>!y.disabled),b=m.find(y=>y.value===i.value),x=Vk(m,g,b);x!==void 0&&i.onValueChange(x.value)}),h=()=>{l||(i.onOpenChange(!0),f())};return p.jsx(ll,{asChild:!0,...a,children:p.jsx(ee.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":Lk(i.value)?"":void 0,...o,ref:s,onClick:J(o.onClick,g=>{g.currentTarget.focus()}),onPointerDown:J(o.onPointerDown,g=>{const m=g.target;m.hasPointerCapture(g.pointerId)&&m.releasePointerCapture(g.pointerId),g.button===0&&g.ctrlKey===!1&&(h(),i.triggerPointerDownPosRef.current={x:Math.round(g.pageX),y:Math.round(g.pageY)},g.preventDefault())}),onKeyDown:J(o.onKeyDown,g=>{const m=u.current!=="";!(g.ctrlKey||g.altKey||g.metaKey)&&g.key.length===1&&d(g.key),!(m&&g.key===" ")&&dre.includes(g.key)&&(h(),g.preventDefault())})})})});yk.displayName=vk;var xk="SelectValue",Ck=k.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:a,placeholder:i="",...l}=e,s=Lr(xk,n),{onValueNodeHasChildrenChange:c}=s,u=a!==void 0,d=ge(t,s.onValueNodeChange);return Ze(()=>{c(u)},[c,u]),p.jsx(ee.span,{...l,ref:d,style:{pointerEvents:"none"},children:Lk(s.value)?p.jsx(p.Fragment,{children:i}):a})});Ck.displayName=xk;var bre="SelectIcon",wk=k.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return p.jsx(ee.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});wk.displayName=bre;var vre="SelectPortal",kk=e=>p.jsx(Ao,{asChild:!0,...e});kk.displayName=vre;var Eo="SelectContent",Sk=k.forwardRef((e,t)=>{const n=Lr(Eo,e.__scopeSelect),[r,o]=k.useState();if(Ze(()=>{o(new DocumentFragment)},[]),!n.open){const a=r;return a?rl.createPortal(p.jsx(Dk,{scope:e.__scopeSelect,children:p.jsx(_u.Slot,{scope:e.__scopeSelect,children:p.jsx("div",{children:e.children})})}),a):null}return p.jsx(_k,{...e,ref:t})});Sk.displayName=Eo;var Ln=10,[Dk,zr]=ja(Eo),yre="SelectContentImpl",_k=k.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:i,side:l,sideOffset:s,align:c,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:h,sticky:g,hideWhenDetached:m,avoidCollisions:b,...x}=e,y=Lr(Eo,n),[v,w]=k.useState(null),[D,_]=k.useState(null),M=ge(t,z=>w(z)),[S,E]=k.useState(null),[P,$]=k.useState(null),R=$u(n),[T,I]=k.useState(!1),N=k.useRef(!1);k.useEffect(()=>{if(v)return Hc(v)},[v]),Fc();const B=k.useCallback(z=>{const[q,...te]=R().map(ve=>ve.ref.current),[H]=te.slice(-1),ce=document.activeElement;for(const ve of z)if(ve===ce||(ve==null||ve.scrollIntoView({block:"nearest"}),ve===q&&D&&(D.scrollTop=0),ve===H&&D&&(D.scrollTop=D.scrollHeight),ve==null||ve.focus(),document.activeElement!==ce))return},[R,D]),V=k.useCallback(()=>B([S,v]),[B,S,v]);k.useEffect(()=>{T&&V()},[T,V]);const{onOpenChange:F,triggerPointerDownPosRef:j}=y;k.useEffect(()=>{if(v){let z={x:0,y:0};const q=H=>{var ce,ve;z={x:Math.abs(Math.round(H.pageX)-(((ce=j.current)==null?void 0:ce.x)??0)),y:Math.abs(Math.round(H.pageY)-(((ve=j.current)==null?void 0:ve.y)??0))}},te=H=>{z.x<=10&&z.y<=10?H.preventDefault():v.contains(H.target)||F(!1),document.removeEventListener("pointermove",q),j.current=null};return j.current!==null&&(document.addEventListener("pointermove",q),document.addEventListener("pointerup",te,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",q),document.removeEventListener("pointerup",te,{capture:!0})}}},[v,F,j]),k.useEffect(()=>{const z=()=>F(!1);return window.addEventListener("blur",z),window.addEventListener("resize",z),()=>{window.removeEventListener("blur",z),window.removeEventListener("resize",z)}},[F]);const[L,O]=jk(z=>{const q=R().filter(ce=>!ce.disabled),te=q.find(ce=>ce.ref.current===document.activeElement),H=Vk(q,z,te);H&&setTimeout(()=>H.ref.current.focus())}),Z=k.useCallback((z,q,te)=>{const H=!N.current&&!te;(y.value!==void 0&&y.value===q||H)&&(E(z),H&&(N.current=!0))},[y.value]),re=k.useCallback(()=>v==null?void 0:v.focus(),[v]),oe=k.useCallback((z,q,te)=>{const H=!N.current&&!te;(y.value!==void 0&&y.value===q||H)&&$(z)},[y.value]),ie=r==="popper"?m1:$k,se=ie===m1?{side:l,sideOffset:s,align:c,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:h,sticky:g,hideWhenDetached:m,avoidCollisions:b}:{};return p.jsx(Dk,{scope:n,content:v,viewport:D,onViewportChange:_,itemRefCallback:Z,selectedItem:S,onItemLeave:re,itemTextRefCallback:oe,focusSelectedItem:V,selectedItemText:P,position:r,isPositioned:T,searchRef:L,children:p.jsx(Kc,{as:sn,allowPinchZoom:!0,children:p.jsx(Ba,{asChild:!0,trapped:y.open,onMountAutoFocus:z=>{z.preventDefault()},onUnmountAutoFocus:J(o,z=>{var q;(q=y.trigger)==null||q.focus({preventScroll:!0}),z.preventDefault()}),children:p.jsx(al,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:z=>z.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:p.jsx(ie,{role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:z=>z.preventDefault(),...x,...se,onPlaced:()=>I(!0),ref:M,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:J(x.onKeyDown,z=>{const q=z.ctrlKey||z.altKey||z.metaKey;if(z.key==="Tab"&&z.preventDefault(),!q&&z.key.length===1&&O(z.key),["ArrowUp","ArrowDown","Home","End"].includes(z.key)){let H=R().filter(ce=>!ce.disabled).map(ce=>ce.ref.current);if(["ArrowUp","End"].includes(z.key)&&(H=H.slice().reverse()),["ArrowUp","ArrowDown"].includes(z.key)){const ce=z.target,ve=H.indexOf(ce);H=H.slice(ve+1)}setTimeout(()=>B(H)),z.preventDefault()}})})})})})})});_k.displayName=yre;var xre="SelectItemAlignedPosition",$k=k.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,a=Lr(Eo,n),i=zr(Eo,n),[l,s]=k.useState(null),[c,u]=k.useState(null),d=ge(t,M=>u(M)),f=$u(n),h=k.useRef(!1),g=k.useRef(!0),{viewport:m,selectedItem:b,selectedItemText:x,focusSelectedItem:y}=i,v=k.useCallback(()=>{if(a.trigger&&a.valueNode&&l&&c&&m&&b&&x){const M=a.trigger.getBoundingClientRect(),S=c.getBoundingClientRect(),E=a.valueNode.getBoundingClientRect(),P=x.getBoundingClientRect();if(a.dir!=="rtl"){const ce=P.left-S.left,ve=E.left-ce,Ae=M.left-ve,at=M.width+Ae,St=Math.max(at,S.width),Et=window.innerWidth-Ln,gn=Ac(ve,[Ln,Et-St]);l.style.minWidth=at+"px",l.style.left=gn+"px"}else{const ce=S.right-P.right,ve=window.innerWidth-E.right-ce,Ae=window.innerWidth-M.right-ve,at=M.width+Ae,St=Math.max(at,S.width),Et=window.innerWidth-Ln,gn=Ac(ve,[Ln,Et-St]);l.style.minWidth=at+"px",l.style.right=gn+"px"}const $=f(),R=window.innerHeight-Ln*2,T=m.scrollHeight,I=window.getComputedStyle(c),N=parseInt(I.borderTopWidth,10),B=parseInt(I.paddingTop,10),V=parseInt(I.borderBottomWidth,10),F=parseInt(I.paddingBottom,10),j=N+B+T+F+V,L=Math.min(b.offsetHeight*5,j),O=window.getComputedStyle(m),Z=parseInt(O.paddingTop,10),re=parseInt(O.paddingBottom,10),oe=M.top+M.height/2-Ln,ie=R-oe,se=b.offsetHeight/2,z=b.offsetTop+se,q=N+B+z,te=j-q;if(q<=oe){const ce=b===$[$.length-1].ref.current;l.style.bottom="0px";const ve=c.clientHeight-m.offsetTop-m.offsetHeight,Ae=Math.max(ie,se+(ce?re:0)+ve+V),at=q+Ae;l.style.height=at+"px"}else{const ce=b===$[0].ref.current;l.style.top="0px";const Ae=Math.max(oe,N+m.offsetTop+(ce?Z:0)+se)+te;l.style.height=Ae+"px",m.scrollTop=q-oe+m.offsetTop}l.style.margin=`${Ln}px 0`,l.style.minHeight=L+"px",l.style.maxHeight=R+"px",r==null||r(),requestAnimationFrame(()=>h.current=!0)}},[f,a.trigger,a.valueNode,l,c,m,b,x,a.dir,r]);Ze(()=>v(),[v]);const[w,D]=k.useState();Ze(()=>{c&&D(window.getComputedStyle(c).zIndex)},[c]);const _=k.useCallback(M=>{M&&g.current===!0&&(v(),y==null||y(),g.current=!1)},[v,y]);return p.jsx(wre,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:h,onScrollButtonChange:_,children:p.jsx("div",{ref:s,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:w},children:p.jsx(ee.div,{...o,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});$k.displayName=xre;var Cre="SelectPopperPosition",m1=k.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Ln,...a}=e,i=Eu(n);return p.jsx(jc,{...i,...a,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});m1.displayName=Cre;var[wre,Og]=ja(Eo,{}),b1="SelectViewport",Ek=k.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,a=zr(b1,n),i=Og(b1,n),l=ge(t,a.onViewportChange),s=k.useRef(0);return p.jsxs(p.Fragment,{children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),p.jsx(_u.Slot,{scope:n,children:p.jsx(ee.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:l,style:{position:"relative",flex:1,overflow:"auto",...o.style},onScroll:J(o.onScroll,c=>{const u=c.currentTarget,{contentWrapper:d,shouldExpandOnScrollRef:f}=i;if(f!=null&&f.current&&d){const h=Math.abs(s.current-u.scrollTop);if(h>0){const g=window.innerHeight-Ln*2,m=parseFloat(d.style.minHeight),b=parseFloat(d.style.height),x=Math.max(m,b);if(x<g){const y=x+h,v=Math.min(g,y),w=y-v;d.style.height=v+"px",d.style.bottom==="0px"&&(u.scrollTop=w>0?w:0,d.style.justifyContent="flex-end")}}}s.current=u.scrollTop})})})]})});Ek.displayName=b1;var Mk="SelectGroup",[kre,Sre]=ja(Mk),Dre=k.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Lt();return p.jsx(kre,{scope:n,id:o,children:p.jsx(ee.div,{role:"group","aria-labelledby":o,...r,ref:t})})});Dre.displayName=Mk;var Ak="SelectLabel",_re=k.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Sre(Ak,n);return p.jsx(ee.div,{id:o.id,...r,ref:t})});_re.displayName=Ak;var Tc="SelectItem",[$re,Tk]=ja(Tc),Pk=k.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...i}=e,l=Lr(Tc,n),s=zr(Tc,n),c=l.value===r,[u,d]=k.useState(a??""),[f,h]=k.useState(!1),g=ge(t,x=>{var y;return(y=s.itemRefCallback)==null?void 0:y.call(s,x,r,o)}),m=Lt(),b=()=>{o||(l.onValueChange(r),l.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return p.jsx($re,{scope:n,value:r,disabled:o,textId:m,isSelected:c,onItemTextChange:k.useCallback(x=>{d(y=>y||((x==null?void 0:x.textContent)??"").trim())},[]),children:p.jsx(_u.ItemSlot,{scope:n,value:r,disabled:o,textValue:u,children:p.jsx(ee.div,{role:"option","aria-labelledby":m,"data-highlighted":f?"":void 0,"aria-selected":c&&f,"data-state":c?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...i,ref:g,onFocus:J(i.onFocus,()=>h(!0)),onBlur:J(i.onBlur,()=>h(!1)),onPointerUp:J(i.onPointerUp,b),onPointerMove:J(i.onPointerMove,x=>{var y;o?(y=s.onItemLeave)==null||y.call(s):x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:J(i.onPointerLeave,x=>{var y;x.currentTarget===document.activeElement&&((y=s.onItemLeave)==null||y.call(s))}),onKeyDown:J(i.onKeyDown,x=>{var v;((v=s.searchRef)==null?void 0:v.current)!==""&&x.key===" "||(fre.includes(x.key)&&b(),x.key===" "&&x.preventDefault())})})})})});Pk.displayName=Tc;var wi="SelectItemText",Rk=k.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,i=Lr(wi,n),l=zr(wi,n),s=Tk(wi,n),c=mre(wi,n),[u,d]=k.useState(null),f=ge(t,x=>d(x),s.onItemTextChange,x=>{var y;return(y=l.itemTextRefCallback)==null?void 0:y.call(l,x,s.value,s.disabled)}),h=u==null?void 0:u.textContent,g=k.useMemo(()=>p.jsx("option",{value:s.value,disabled:s.disabled,children:h},s.value),[s.disabled,s.value,h]),{onNativeOptionAdd:m,onNativeOptionRemove:b}=c;return Ze(()=>(m(g),()=>b(g)),[m,b,g]),p.jsxs(p.Fragment,{children:[p.jsx(ee.span,{id:s.textId,...a,ref:f}),s.isSelected&&i.valueNode&&!i.valueNodeHasChildren?rl.createPortal(a.children,i.valueNode):null]})});Rk.displayName=wi;var Bk="SelectItemIndicator",Ik=k.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Tk(Bk,n).isSelected?p.jsx(ee.span,{"aria-hidden":!0,...r,ref:t}):null});Ik.displayName=Bk;var v1="SelectScrollUpButton",Ok=k.forwardRef((e,t)=>{const n=zr(v1,e.__scopeSelect),r=Og(v1,e.__scopeSelect),[o,a]=k.useState(!1),i=ge(t,r.onScrollButtonChange);return Ze(()=>{if(n.viewport&&n.isPositioned){let l=function(){const c=s.scrollTop>0;a(c)};const s=n.viewport;return l(),s.addEventListener("scroll",l),()=>s.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),o?p.jsx(Nk,{...e,ref:i,onAutoScroll:()=>{const{viewport:l,selectedItem:s}=n;l&&s&&(l.scrollTop=l.scrollTop-s.offsetHeight)}}):null});Ok.displayName=v1;var y1="SelectScrollDownButton",Fk=k.forwardRef((e,t)=>{const n=zr(y1,e.__scopeSelect),r=Og(y1,e.__scopeSelect),[o,a]=k.useState(!1),i=ge(t,r.onScrollButtonChange);return Ze(()=>{if(n.viewport&&n.isPositioned){let l=function(){const c=s.scrollHeight-s.clientHeight,u=Math.ceil(s.scrollTop)<c;a(u)};const s=n.viewport;return l(),s.addEventListener("scroll",l),()=>s.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),o?p.jsx(Nk,{...e,ref:i,onAutoScroll:()=>{const{viewport:l,selectedItem:s}=n;l&&s&&(l.scrollTop=l.scrollTop+s.offsetHeight)}}):null});Fk.displayName=y1;var Nk=k.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,a=zr("SelectScrollButton",n),i=k.useRef(null),l=$u(n),s=k.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return k.useEffect(()=>()=>s(),[s]),Ze(()=>{var u;const c=l().find(d=>d.ref.current===document.activeElement);(u=c==null?void 0:c.ref.current)==null||u.scrollIntoView({block:"nearest"})},[l]),p.jsx(ee.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:J(o.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(r,50))}),onPointerMove:J(o.onPointerMove,()=>{var c;(c=a.onItemLeave)==null||c.call(a),i.current===null&&(i.current=window.setInterval(r,50))}),onPointerLeave:J(o.onPointerLeave,()=>{s()})})}),Ere="SelectSeparator",Mre=k.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return p.jsx(ee.div,{"aria-hidden":!0,...r,ref:t})});Mre.displayName=Ere;var x1="SelectArrow",Are=k.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Eu(n),a=Lr(x1,n),i=zr(x1,n);return a.open&&i.position==="popper"?p.jsx(Vc,{...o,...r,ref:t}):null});Are.displayName=x1;function Lk(e){return e===""||e===void 0}var zk=k.forwardRef((e,t)=>{const{value:n,...r}=e,o=k.useRef(null),a=ge(t,o),i=cl(n);return k.useEffect(()=>{const l=o.current,s=window.HTMLSelectElement.prototype,u=Object.getOwnPropertyDescriptor(s,"value").set;if(i!==n&&u){const d=new Event("change",{bubbles:!0});u.call(l,n),l.dispatchEvent(d)}},[i,n]),p.jsx(Ic,{asChild:!0,children:p.jsx("select",{...r,ref:a,defaultValue:n})})});zk.displayName="BubbleSelect";function jk(e){const t=$n(e),n=k.useRef(""),r=k.useRef(0),o=k.useCallback(i=>{const l=n.current+i;t(l),function s(c){n.current=c,window.clearTimeout(r.current),c!==""&&(r.current=window.setTimeout(()=>s(""),1e3))}(l)},[t]),a=k.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return k.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,a]}function Vk(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let i=Tre(e,Math.max(a,0));o.length===1&&(i=i.filter(c=>c!==n));const s=i.find(c=>c.textValue.toLowerCase().startsWith(o.toLowerCase()));return s!==n?s:void 0}function Tre(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Pre=bk,Hk=yk,C1=Ck,Rre=wk,Bre=kk,Ire=Sk,Ore=Ek,Fre=Pk,Nre=Rk,Lre=Ik,zre=Ok,jre=Fk;const Vre="_content_8taay_1",Hre="_constrainContentWidth_8taay_17",Wre="_contentChild_8taay_21",Kre="_scrollButton_8taay_33 _contentChild_8taay_21",Ure="_scrollUpButton_8taay_44 _scrollButton_8taay_33 _contentChild_8taay_21",Zre="_scrollDownButton_8taay_58 _scrollButton_8taay_33 _contentChild_8taay_21",Gre="_scrollButtonIcon_8taay_72",qre="_item_8taay_76 _contentChild_8taay_21",Yre="_itemIndicator_8taay_105",Jre="_itemText_8taay_116",qt={content:Vre,constrainContentWidth:Hre,contentChild:Wre,scrollButton:Kre,scrollUpButton:Ure,scrollDownButton:Zre,scrollButtonIcon:Gre,item:qre,"itemPadding-small":"_itemPadding-small_8taay_92","itemPadding-medium":"_itemPadding-medium_8taay_96","itemPadding-large":"_itemPadding-large_8taay_100",itemIndicator:Yre,itemText:Jre};function Wk(e){const t=Xn(),{children:n,disabled:r=(t==null?void 0:t.disabled)??!1,id:o,placeholder:a,color:i=(t==null?void 0:t.color)??"purple",size:l=(t==null?void 0:t.size)??"medium",renderTrigger:s=({button:$})=>$,startIcon:c,renderStartIcon:u,endIcon:d="arrowDropDown",onlyStartIcon:f=!1,constrainContentWidth:h,side:g,sideOffset:m,flexContent:b,boldTriggerText:x=!1,sx:y,name:v,autoComplete:w,value:D,onValueChange:_}=e,M=e.position??(h?"popper":"item-aligned"),E={sx:y,startIcon:c,renderStartIcon:u,endIcon:f?void 0:d,renderEndIcon:Xre,size:l,color:i,textColor:!D&&i==="grey"?"placeholder":void 0,textWeight:x?"bold":"normal",disabled:r,flexContent:b},P=p.jsx(Hk,{asChild:!0,disabled:r,id:o,children:f?p.jsx(C1,{asChild:!0,children:p.jsx(_e,{...E})}):p.jsx(_e,{...E,children:p.jsx(C1,{placeholder:a})})});return p.jsxs(Pre,{name:v,autoComplete:w,value:D,onValueChange:_,children:[s({button:P,disabled:r}),p.jsx(Bre,{children:p.jsxs(Ire,{collisionPadding:parseFloat(Se.space[16]),position:M,side:g,sideOffset:m,className:W(qt.content,h&&qt.constrainContentWidth),children:[p.jsx(Ore,{children:n}),p.jsx(zre,{className:W(qt.scrollButton,qt.scrollUpButton),children:p.jsx(de,{className:qt.scrollButtonIcon,name:"keyboardArrowUp",size:"large"})}),p.jsx(jre,{className:W(qt.scrollButton,qt.scrollDownButton),children:p.jsx(de,{className:qt.scrollButtonIcon,name:"keyboardArrowDown",size:"large"})})]})})]})}function Kk(e){const{children:t,icon:n,renderStartIcon:r=l=>l,size:o="medium",value:a,...i}=e;return p.jsxs(Fre,{...i,value:a,className:W(qt.item,qt[`itemPadding-${o}`]),children:[r(n&&p.jsx(de,{name:n,size:"small"})),p.jsx(Q,{component:"span",noWrap:!0,sx:{flexGrow:1,order:1},children:p.jsx(Nre,{children:t})}),p.jsx(Lre,{asChild:!0,className:qt.itemIndicator,children:p.jsx(de,{name:"check"})})]})}function Xre(e){return p.jsx(Rre,{asChild:!0,children:e})}const Qre="_root_1aoi1_1",eoe={root:Qre};function toe(e){const{id:t,disabled:n,placeholder:r}=e;return p.jsx(Hk,{asChild:!0,disabled:n,id:t,children:p.jsxs("button",{className:eoe.root,disabled:n,children:[p.jsx(Q,{children:p.jsx(C1,{placeholder:r})}),p.jsx(de,{name:"unfoldMore",color:"grey11",size:"small"})]})})}const noe="_cardBase_188x2_1",A4={cardBase:noe,"card-default":"_card-default_188x2_16","card-selected":"_card-selected_188x2_29"};function roe(e){const{selected:t,onSelect:n,children:r,asChild:o}=e,a=o?sn:"button";return p.jsx(a,{className:W(A4.cardBase,A4[`card-${t?"selected":"default"}`]),role:"menuitemradio","aria-checked":t,onClick:n,children:r})}var ooe="Separator",T4="horizontal",aoe=["horizontal","vertical"],Uk=k.forwardRef((e,t)=>{const{decorative:n,orientation:r=T4,...o}=e,a=ioe(r)?r:T4,l=n?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return p.jsx(ee.div,{"data-orientation":a,...l,...o,ref:t})});Uk.displayName=ooe;function ioe(e){return aoe.includes(e)}var Zk=Uk;const loe="_root_fry4n_1",soe="_horizontal_fry4n_20",coe="_vertical_fry4n_26",uoe="_solid_fry4n_32",doe="_dashed_fry4n_36",ws={root:loe,"color-grey":"_color-grey_fry4n_8","color-purple":"_color-purple_fry4n_12","color-tomato":"_color-tomato_fry4n_16",horizontal:soe,vertical:coe,solid:uoe,dashed:doe},Gk=C.forwardRef(function(t,n){const{sx:r,color:o="grey",orientation:a="horizontal",decorative:i=!1,style:l="solid",...s}=t;return p.jsx(Zk,{...s,ref:n,orientation:a,decorative:i,className:W(ws.root,ws[`color-${o}`],ws[a],ws[l]),style:r})}),foe="_root_92kll_1",poe="_card_92kll_7",hoe="_outerContent_92kll_46",goe="_main_92kll_55",moe="_footer_92kll_63",boe="_texts_92kll_69",lr={root:foe,card:poe,"state-normal":"_state-normal_92kll_21","state-selected":"_state-selected_92kll_40",outerContent:hoe,main:goe,footer:moe,texts:boe};function voe(e){const{id:t,title:n,subTitle:r,index:o,children:a,menuItems:i,canMove:l=!1,selected:s=!1,onSelect:c}=e,u=W(lr.card,lr[`state-${s?"selected":"normal"}`]);function d(h){c==null||c(h)}function f(h){(h.code==="Enter"||h.code==="Space")&&(c==null||c(h))}return p.jsxs("section",{id:t,className:lr.root,children:[p.jsxs("div",{className:u,draggable:l,onClick:d,onKeyDown:f,children:[p.jsx("div",{className:lr.outerContent,children:p.jsx(Q,{variant:"smallBold",color:"grey9",children:o})}),p.jsx("div",{className:lr.main,children:a}),p.jsx("div",{className:lr.outerContent,children:l&&p.jsx(de,{name:"dragIndicator",color:"grey8",size:"small"})})]}),p.jsxs("div",{className:lr.footer,children:[p.jsxs("div",{className:lr.texts,children:[p.jsx(Q,{variant:"smallBold",color:"grey11",noWrap:!0,children:n}),p.jsx(Q,{variant:"small",color:"grey11",noWrap:!0,children:r})]}),i&&p.jsxs(Ag,{modal:!0,children:[p.jsx(Tg,{children:p.jsx(rt,{icon:"moreVert",size:"small"})}),p.jsxs(Pg,{align:"end",children:[p.jsx(nk,{children:"Slice options"}),i]})]})]})]})}const yoe="_card_p53i7_1",xoe="_innerContent_p53i7_31",Coe="_innerContentFixedHeight_p53i7_43",woe="_text_p53i7_47",koe="_children_p53i7_51",Soe="_childrenFixedHeight_p53i7_61",Doe="_plusIcon_p53i7_67",Kr={card:yoe,innerContent:xoe,innerContentFixedHeight:Coe,text:woe,children:koe,childrenFixedHeight:Soe,plusIcon:Doe};function _oe(e){const{label:t,variation:n,children:r,fixedHeight:o=!0,onClick:a,disabled:i}=e,l=W(Kr.innerContent,o&&Kr.innerContentFixedHeight),s=W(Kr.children,o&&Kr.childrenFixedHeight);return p.jsxs("button",{disabled:i,className:Kr.card,onClick:a,children:[p.jsxs("div",{className:l,children:[p.jsx("div",{className:s,children:r}),!i&&p.jsx("div",{className:Kr.plusIcon,children:p.jsx(de,{name:"add",color:"grey1",size:"medium"})})]}),p.jsx("div",{className:Kr.text,children:p.jsxs(Q,{variant:"smallBold",color:"grey11",noWrap:!0,children:[t,n&&p.jsx(Q,{variant:"smallBold",color:"grey12",children:` > ${n}`})]})})]})}var qk=["PageUp","PageDown"],Yk=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Jk={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Va="Slider",[w1,$oe,Eoe]=wu(Va),[Xk,pse]=Le(Va,[Eoe]),[Moe,Mu]=Xk(Va),Qk=k.forwardRef((e,t)=>{const{name:n,min:r=0,max:o=100,step:a=1,orientation:i="horizontal",disabled:l=!1,minStepsBetweenThumbs:s=0,defaultValue:c=[r],value:u,onValueChange:d=()=>{},onValueCommit:f=()=>{},inverted:h=!1,...g}=e,m=k.useRef(new Set),b=k.useRef(0),y=i==="horizontal"?Aoe:Toe,[v=[],w]=ct({prop:u,defaultProp:c,onChange:P=>{var R;(R=[...m.current][b.current])==null||R.focus(),d(P)}}),D=k.useRef(v);function _(P){const $=Ooe(v,P);E(P,$)}function M(P){E(P,b.current)}function S(){const P=D.current[b.current];v[b.current]!==P&&f(v)}function E(P,$,{commit:R}={commit:!1}){const T=zoe(a),I=joe(Math.round((P-r)/a)*a+r,T),N=Ac(I,[r,o]);w((B=[])=>{const V=Boe(B,N,$);if(Loe(V,s*a)){b.current=V.indexOf(N);const F=String(V)!==String(B);return F&&R&&f(V),F?V:B}else return B})}return p.jsx(Moe,{scope:e.__scopeSlider,name:n,disabled:l,min:r,max:o,valueIndexToChangeRef:b,thumbs:m.current,values:v,orientation:i,children:p.jsx(w1.Provider,{scope:e.__scopeSlider,children:p.jsx(w1.Slot,{scope:e.__scopeSlider,children:p.jsx(y,{"aria-disabled":l,"data-disabled":l?"":void 0,...g,ref:t,onPointerDown:J(g.onPointerDown,()=>{l||(D.current=v)}),min:r,max:o,inverted:h,onSlideStart:l?void 0:_,onSlideMove:l?void 0:M,onSlideEnd:l?void 0:S,onHomeKeyDown:()=>!l&&E(r,0,{commit:!0}),onEndKeyDown:()=>!l&&E(o,v.length-1,{commit:!0}),onStepKeyDown:({event:P,direction:$})=>{if(!l){const I=qk.includes(P.key)||P.shiftKey&&Yk.includes(P.key)?10:1,N=b.current,B=v[N],V=a*I*$;E(B+V,N,{commit:!0})}}})})})})});Qk.displayName=Va;var[eS,tS]=Xk(Va,{startEdge:"left",endEdge:"right",size:"width",direction:1}),Aoe=k.forwardRef((e,t)=>{const{min:n,max:r,dir:o,inverted:a,onSlideStart:i,onSlideMove:l,onSlideEnd:s,onStepKeyDown:c,...u}=e,[d,f]=k.useState(null),h=ge(t,v=>f(v)),g=k.useRef(),m=Nr(o),b=m==="ltr",x=b&&!a||!b&&a;function y(v){const w=g.current||d.getBoundingClientRect(),D=[0,w.width],M=Fg(D,x?[n,r]:[r,n]);return g.current=w,M(v-w.left)}return p.jsx(eS,{scope:e.__scopeSlider,startEdge:x?"left":"right",endEdge:x?"right":"left",direction:x?1:-1,size:"width",children:p.jsx(nS,{dir:m,"data-orientation":"horizontal",...u,ref:h,style:{...u.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:v=>{const w=y(v.clientX);i==null||i(w)},onSlideMove:v=>{const w=y(v.clientX);l==null||l(w)},onSlideEnd:()=>{g.current=void 0,s==null||s()},onStepKeyDown:v=>{const D=Jk[x?"from-left":"from-right"].includes(v.key);c==null||c({event:v,direction:D?-1:1})}})})}),Toe=k.forwardRef((e,t)=>{const{min:n,max:r,inverted:o,onSlideStart:a,onSlideMove:i,onSlideEnd:l,onStepKeyDown:s,...c}=e,u=k.useRef(null),d=ge(t,u),f=k.useRef(),h=!o;function g(m){const b=f.current||u.current.getBoundingClientRect(),x=[0,b.height],v=Fg(x,h?[r,n]:[n,r]);return f.current=b,v(m-b.top)}return p.jsx(eS,{scope:e.__scopeSlider,startEdge:h?"bottom":"top",endEdge:h?"top":"bottom",size:"height",direction:h?1:-1,children:p.jsx(nS,{"data-orientation":"vertical",...c,ref:d,style:{...c.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:m=>{const b=g(m.clientY);a==null||a(b)},onSlideMove:m=>{const b=g(m.clientY);i==null||i(b)},onSlideEnd:()=>{f.current=void 0,l==null||l()},onStepKeyDown:m=>{const x=Jk[h?"from-bottom":"from-top"].includes(m.key);s==null||s({event:m,direction:x?-1:1})}})})}),nS=k.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:a,onHomeKeyDown:i,onEndKeyDown:l,onStepKeyDown:s,...c}=e,u=Mu(Va,n);return p.jsx(ee.span,{...c,ref:t,onKeyDown:J(e.onKeyDown,d=>{d.key==="Home"?(i(d),d.preventDefault()):d.key==="End"?(l(d),d.preventDefault()):qk.concat(Yk).includes(d.key)&&(s(d),d.preventDefault())}),onPointerDown:J(e.onPointerDown,d=>{const f=d.target;f.setPointerCapture(d.pointerId),d.preventDefault(),u.thumbs.has(f)?f.focus():r(d)}),onPointerMove:J(e.onPointerMove,d=>{d.target.hasPointerCapture(d.pointerId)&&o(d)}),onPointerUp:J(e.onPointerUp,d=>{const f=d.target;f.hasPointerCapture(d.pointerId)&&(f.releasePointerCapture(d.pointerId),a(d))})})}),rS="SliderTrack",oS=k.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=Mu(rS,n);return p.jsx(ee.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...r,ref:t})});oS.displayName=rS;var k1="SliderRange",aS=k.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=Mu(k1,n),a=tS(k1,n),i=k.useRef(null),l=ge(t,i),s=o.values.length,c=o.values.map(f=>lS(f,o.min,o.max)),u=s>1?Math.min(...c):0,d=100-Math.max(...c);return p.jsx(ee.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...r,ref:l,style:{...e.style,[a.startEdge]:u+"%",[a.endEdge]:d+"%"}})});aS.displayName=k1;var S1="SliderThumb",iS=k.forwardRef((e,t)=>{const n=$oe(e.__scopeSlider),[r,o]=k.useState(null),a=ge(t,l=>o(l)),i=k.useMemo(()=>r?n().findIndex(l=>l.ref.current===r):-1,[n,r]);return p.jsx(Poe,{...e,ref:a,index:i})}),Poe=k.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,name:o,...a}=e,i=Mu(S1,n),l=tS(S1,n),[s,c]=k.useState(null),u=ge(t,y=>c(y)),d=s?!!s.closest("form"):!0,f=il(s),h=i.values[r],g=h===void 0?0:lS(h,i.min,i.max),m=Ioe(r,i.values.length),b=f==null?void 0:f[l.size],x=b?Foe(b,g,l.direction):0;return k.useEffect(()=>{if(s)return i.thumbs.add(s),()=>{i.thumbs.delete(s)}},[s,i.thumbs]),p.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[l.startEdge]:`calc(${g}% + ${x}px)`},children:[p.jsx(w1.ItemSlot,{scope:e.__scopeSlider,children:p.jsx(ee.span,{role:"slider","aria-label":e["aria-label"]||m,"aria-valuemin":i.min,"aria-valuenow":h,"aria-valuemax":i.max,"aria-orientation":i.orientation,"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,tabIndex:i.disabled?void 0:0,...a,ref:u,style:h===void 0?{display:"none"}:e.style,onFocus:J(e.onFocus,()=>{i.valueIndexToChangeRef.current=r})})}),d&&p.jsx(Roe,{name:o??(i.name?i.name+(i.values.length>1?"[]":""):void 0),value:h},r)]})});iS.displayName=S1;var Roe=e=>{const{value:t,...n}=e,r=k.useRef(null),o=cl(t);return k.useEffect(()=>{const a=r.current,i=window.HTMLInputElement.prototype,s=Object.getOwnPropertyDescriptor(i,"value").set;if(o!==t&&s){const c=new Event("input",{bubbles:!0});s.call(a,t),a.dispatchEvent(c)}},[o,t]),p.jsx("input",{style:{display:"none"},...n,ref:r,defaultValue:t})};function Boe(e=[],t,n){const r=[...e];return r[n]=t,r.sort((o,a)=>o-a)}function lS(e,t,n){const a=100/(n-t)*(e-t);return Ac(a,[0,100])}function Ioe(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function Ooe(e,t){if(e.length===1)return 0;const n=e.map(o=>Math.abs(o-t)),r=Math.min(...n);return n.indexOf(r)}function Foe(e,t,n){const r=e/2,a=Fg([0,50],[0,r]);return(r-a(t)*n)*n}function Noe(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function Loe(e,t){if(t>0){const n=Noe(e);return Math.min(...n)>=t}return!0}function Fg(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function zoe(e){return(String(e).split(".")[1]||"").length}function joe(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var Voe=Qk,Hoe=oS,Woe=aS,Koe=iS;const Uoe="_root_1hdzt_1",Zoe="_track_1hdzt_10",Goe="_range_1hdzt_20",qoe="_thumb_1hdzt_28",ks={root:Uoe,track:Zoe,range:Goe,thumb:qoe},Yoe=({value:e,...t})=>p.jsxs(Voe,{...t,className:ks.root,value:e,children:[p.jsx(Hoe,{className:ks.track,children:p.jsx(Woe,{className:ks.range})}),e==null?void 0:e.map((n,r)=>p.jsx(Koe,{className:ks.thumb},r))]}),Joe="_animatedSuspenseWrapper_12uvc_1",Xoe="_fadeIn_12uvc_1",Qoe={animatedSuspenseWrapper:Joe,fadeIn:Xoe};function eae(e){const{children:t,fallback:n,animationDuration:r=150}=e;return p.jsx(C.Suspense,{fallback:n,children:p.jsx("div",{className:Qoe.animatedSuspenseWrapper,style:{animationDuration:`${r}ms`},children:t})})}var Ng="Switch",[tae,hse]=Le(Ng),[nae,rae]=tae(Ng),sS=k.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:a,required:i,disabled:l,value:s="on",onCheckedChange:c,...u}=e,[d,f]=k.useState(null),h=ge(t,y=>f(y)),g=k.useRef(!1),m=d?!!d.closest("form"):!0,[b=!1,x]=ct({prop:o,defaultProp:a,onChange:c});return p.jsxs(nae,{scope:n,checked:b,disabled:l,children:[p.jsx(ee.button,{type:"button",role:"switch","aria-checked":b,"aria-required":i,"data-state":dS(b),"data-disabled":l?"":void 0,disabled:l,value:s,...u,ref:h,onClick:J(e.onClick,y=>{x(v=>!v),m&&(g.current=y.isPropagationStopped(),g.current||y.stopPropagation())})}),m&&p.jsx(oae,{control:d,bubbles:!g.current,name:r,value:s,checked:b,required:i,disabled:l,style:{transform:"translateX(-100%)"}})]})});sS.displayName=Ng;var cS="SwitchThumb",uS=k.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=rae(cS,n);return p.jsx(ee.span,{"data-state":dS(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});uS.displayName=cS;var oae=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,a=k.useRef(null),i=cl(n),l=il(t);return k.useEffect(()=>{const s=a.current,c=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(c,"checked").set;if(i!==n&&d){const f=new Event("click",{bubbles:r});d.call(s,n),s.dispatchEvent(f)}},[i,n,r]),p.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:a,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function dS(e){return e?"checked":"unchecked"}var aae=sS,iae=uS;const lae="_root_1xldo_1",sae="_small_1xldo_39",cae="_medium_1xldo_45",uae="_thumb_1xldo_52",Ss={root:lae,small:sae,medium:cae,thumb:uae};function dae(e){const{size:t="medium",sx:n,...r}=e;return p.jsx(aae,{...r,style:n,className:W(Ss.root,Ss[t]),children:p.jsx(iae,{className:W(Ss.thumb,Ss[t])})})}const fae="_tab_jq7dc_1",pae="_selected_jq7dc_28",hae="_unselected_jq7dc_32",gae="_transparent_jq7dc_36",mae="_outline_jq7dc_40",bae="_noWrap_jq7dc_46",Xo={tab:fae,selected:pae,unselected:hae,transparent:gae,outline:mae,noWrap:bae};function vae(e){const{children:t,asChild:n,outline:r,selected:o=!1,transparent:a=!1,noWrap:i=!1,sx:l,onClick:s}=e,c=n?sn:"button",u=W(Xo.tab,o?Xo.selected:Xo.unselected,a&&Xo.transparent,r&&Xo.outline,i&&Xo.noWrap);return p.jsx(Q,{display:"inline-flex",component:"span",variant:"bold",color:o?"purple9":"grey11",sx:l,children:p.jsx(c,{className:u,onClick:s,children:t})})}const yae="_root_z4m21_1",xae="_radius_z4m21_11",Cae="_border_z4m21_15",wae="_header_z4m21_22",kae="_bodyRowBackground_z4m21_28",Sae="_interactive_z4m21_38",Dae="_onClickBodyRow_z4m21_47 _bodyRowBackground_z4m21_28",_ae="_linkElementWrapper_z4m21_52 _bodyRowBackground_z4m21_28 _interactive_z4m21_38",$ae="_staticBodyRow_z4m21_67 _bodyRowBackground_z4m21_28",Eae="_bodyRow_z4m21_28",Mae="_disabledRow_z4m21_82",Aae="_disablePointerEvents_z4m21_87",Tae="_headerCell_z4m21_91",Pae="_bodyCell_z4m21_95",Rae="_loadingCell_z4m21_99",Bae="_cell_z4m21_103",Iae="_overflow_z4m21_120",Oae="_linkedRowContainer_z4m21_126",Fae="_link_z4m21_52",Ne={root:yae,radius:xae,border:Cae,header:wae,bodyRowBackground:kae,interactive:Sae,onClickBodyRow:Dae,linkElementWrapper:_ae,staticBodyRow:$ae,bodyRow:Eae,disabledRow:Mae,disablePointerEvents:Aae,headerCell:Tae,bodyCell:Pae,loadingCell:Rae,cell:Bae,overflow:Iae,linkedRowContainer:Oae,link:Fae,"align-center":"_align-center_z4m21_135","align-end":"_align-end_z4m21_139"};function Nae(e){const{children:t,columnLayout:n,isLoading:r=!1,isInteractive:o=!0,radius:a=!0,border:i=!0}=e;return p.jsx("div",{className:W(Ne.root,i&&Ne.border,a&&Ne.radius),children:p.jsx(fS.Provider,{value:{columnLayout:n,isLoading:r,isInteractive:o},children:t})})}const fS=C.createContext({columnLayout:"1fr",isLoading:!1,isInteractive:!0});function Lg(){return C.useContext(fS)}const zg=C.createContext("body");function pS(){return C.useContext(zg)}function Lae(e){return p.jsx(zg.Provider,{value:"head",children:e.children})}function zae(e){return p.jsx(zg.Provider,{value:"body",children:e.children})}function jae(e){const{renderLink:t}=e,{rowContent:n}=Hae(e),{isLoading:r}=Lg();if(!t||r)return n;const o=p.jsx("div",{className:Ne.link});return p.jsxs("div",{className:Ne.linkedRowContainer,children:[p.jsx("div",{className:Ne.linkElementWrapper,children:t(o)}),n]})}function Vae(e){const{children:t,align:n,interactive:r=!1}=e,o=pS(),{isLoading:a}=Lg(),i=W(Ne.cell,Ne.overflow,o==="body"?Ne.bodyCell:Ne.headerCell,a&&o==="body"&&Ne.loadingCell,n&&Ne[`align-${n}`]);return p.jsx("div",{className:i,style:{pointerEvents:r?"auto":void 0},children:t})}function Hae(e){const{children:t,onClick:n,renderLink:r,disabled:o}=e,a=pS(),{columnLayout:i,isLoading:l,isInteractive:s}=Lg();function c(g){const m=g.target;if(!n||!g.currentTarget.contains(m))return;const b=an.findFocusableAncestor(m);((b==null?void 0:b.contains(g.currentTarget))??!0)&&n()}function u(g){(g.code==="Enter"||g.code==="Space")&&(n==null||n())}const d=!n&&!r||l,f=W(a==="body"?Ne.bodyRow:Ne.header,s&&Ne.interactive,!!n&&Ne.onClickBodyRow,!!r&&Ne.disablePointerEvents,d&&a==="body"&&Ne.staticBodyRow,o&&Ne.disabledRow);return{rowContent:p.jsx("div",{className:f,style:{gridTemplateColumns:i},onClick:c,role:n?"button":void 0,tabIndex:n?0:-1,onKeyDown:u,children:t})}}const Wae="_tag_75zlj_1",Kae="_normal_75zlj_14",Uae="_active_75zlj_18",P4={tag:Wae,normal:Kae,active:Uae};function Zae(e){const{title:t,label:n,active:r=!1,onClose:o}=e,a=W(P4.tag,P4[r?"active":"normal"]);return p.jsxs("div",{className:a,children:[n&&p.jsxs(Q,{variant:"small",color:"grey12",children:[n,":"]}),p.jsx(Q,{variant:"smallBold",color:"grey12",children:t}),o&&p.jsx(rt,{icon:"close",size:"small",onClick:o,hasPadding:!1})]})}const Gae="_tagField_gjz9d_1",qae="_footer_gjz9d_28",Yae="_footerTitle_gjz9d_42",Jae="_optionsContainer_gjz9d_48",Xae="_tagsSkeleton_gjz9d_58",Qae="_footerButton_gjz9d_64",eie="_tagErrorContainer_gjz9d_84",tie="_tagErrorLeft_gjz9d_93",nie="_loadingTags_gjz9d_100",pn={tagField:Gae,"overlayMode-open":"_overlayMode-open_gjz9d_11","overlayMode-closed":"_overlayMode-closed_gjz9d_20",footer:qae,footerTitle:Yae,optionsContainer:Jae,tagsSkeleton:Xae,footerButton:Qae,tagErrorContainer:eie,tagErrorLeft:tie,loadingTags:nie,"overlay-open":"_overlay-open_gjz9d_106","fade-in":"_fade-in_gjz9d_1","overlay-closed":"_overlay-closed_gjz9d_122","fade-out":"_fade-out_gjz9d_1"},rie="_inputContainer_5ks68_1",oie="_invisibleBorder_5ks68_11",aie="_input_5ks68_1",iie="_extraTagContainer_5ks68_25",Ks={inputContainer:rie,invisibleBorder:oie,input:aie,extraTagContainer:iie},lie=8,sie=225;function cie(e){const{selectedValues:t,tagsContainerRef:n,open:r,onSelectedValuesChange:o}=e,[a,i]=C.useState(t),l=fe.useStableCallback(d=>{const f=d.clientWidth,h=Array.from(d.children||[]),g=f-sie,{displayedTags:m}=uie({tagList:h,maxTagsContainerWidth:g});i(new Set(m))});C.useLayoutEffect(()=>{n.current&&l(n.current)},[t,l,n]);const s=t.size-a.size,c=r?t:a;function u(d){if(d===-1){const h=ln.slice(t,0,t.size-1);return o(h)}const f=ln.filter(t,h=>h!==d);return o(f)}return{removeSelectedValue:u,displayedSelectedValues:c,extraTags:s}}function uie(e){const{tagList:t,maxTagsContainerWidth:n}=e;return t.reduce(({displayedTags:r,tagsContainerWidth:o},a)=>{var l;if(!(a instanceof HTMLDivElement)||!a.textContent)return{displayedTags:r,tagsContainerWidth:o};const i=o+a.offsetWidth+lie;return a.dataset.marker==="badge"&&i<=n?{displayedTags:[...r,(l=a.textContent)==null?void 0:l.trim()],tagsContainerWidth:i}:{displayedTags:r,tagsContainerWidth:o}},{displayedTags:[],tagsContainerWidth:0})}function die(e){const{inputRef:t,searchText:n,onCreateTag:r,setOpen:o,removeSelectedValue:a,setSearchText:i}=e;function l(){n===""&&a(-1)}function s(c){var u;c.code==="Escape"&&((u=t.current)==null||u.blur(),o(!1),i("")),c.key==="Backspace"&&l(),c.key==="Enter"&&n!==""&&r()}return{onKeyDown:s}}function fie(e){const t=C.useRef(null),n=C.useRef(null),{selectedValues:r,searchText:o,setSearchText:a,open:i,setOpen:l,isDisabled:s,onCreateTag:c,onSelectedValuesChange:u}=e,{displayedSelectedValues:d,extraTags:f,removeSelectedValue:h}=cie({selectedValues:r,tagsContainerRef:t,open:i,onSelectedValuesChange:u}),{onKeyDown:g}=die({inputRef:n,searchText:o,setSearchText:a,setOpen:l,onCreateTag:c,removeSelectedValue:h});return p.jsxs("div",{className:W(Ks.inputContainer,i&&Ks.invisibleBorder),ref:t,children:[p.jsx(pie,{displayedTags:Array.from(d),extraTags:i?0:f,removeSelectedValue:h,open:i}),p.jsx("div",{className:Ks.input,children:p.jsx(xl,{ref:n,inputMode:"text",onFocus:()=>l(!0),placeholder:"Add new tag here",value:o,onKeyDown:g,onValueChange:m=>a(m),disabled:s})})]})}function pie({displayedTags:e,extraTags:t,removeSelectedValue:n,open:r}){return p.jsxs(p.Fragment,{children:[e==null?void 0:e.map(o=>p.jsx(_t,{title:o,color:"purple",size:"medium",maxWidth:r?void 0:150,onClose:()=>n(o),selected:!0},o)),t>0&&p.jsx("div",{className:Ks.extraTagContainer,children:p.jsx(Q,{color:"grey11",variant:"small",children:`+ ${t}`})})]})}function hie(e){const{selectedValues:t,setOpen:n,fieldRef:r,onSelectedValuesChange:o}=e,[a,i]=C.useState("");C.useEffect(()=>{function c(u){const d=fe.refContainsTarget(r,u.target);n(d),d||i("")}return document.addEventListener("mousedown",c),()=>{document.removeEventListener("mousedown",c)}});function l(c){const u=ln.add(t,c);return i(""),o(u)}function s(){l(a),i("")}return{searchText:a,setSearchText:i,onCreateTag:s,addItemToSelectedValues:l}}function gie(e){const{open:t,values:n=new Set([]),error:r,loading:o}=e,a=C.useRef(null),{searchText:i,setSearchText:l,onCreateTag:s,addItemToSelectedValues:c}=hie({...e,fieldRef:a}),u=t?"open":"closed";return p.jsxs("div",{className:pn.tagField,children:[p.jsx(xie,{openState:u}),p.jsxs("div",{role:"button",className:W(pn[`overlayMode-${u}`]),ref:a,children:[p.jsx(fie,{...e,isDisabled:o||r,searchText:i,fieldRef:a,setSearchText:l,onCreateTag:s}),t&&p.jsx(mie,{...e,values:n,searchText:i,addItemToSelectedValues:c,onCreateTag:s})]})]})}function mie(e){return p.jsx(b7,{children:p.jsxs("div",{className:pn.footer,children:[p.jsx("div",{className:pn.footerTitle,children:p.jsx(Q,{color:"grey11",variant:"smallBold",children:"Select an existing tag or create a new one"})}),p.jsx(bie,{...e})]})})}function bie(e){const{values:t,selectedValues:n,addItemToSelectedValues:r,searchText:o,onCreateTag:a}=e;return e.loading?p.jsx(yie,{}):e.error?p.jsx(vie,{}):p.jsxs(p.Fragment,{children:[p.jsx(mk,{children:p.jsx("div",{className:pn.optionsContainer,children:Cie(t,new Set([...n]),o).map(i=>p.jsx("div",{children:p.jsx(_t,{title:i,color:"purple",onClick:()=>r(i),size:"medium"},i)},i))})}),o!==""&&p.jsxs("button",{className:pn.footerButton,onClick:a,children:[p.jsx(de,{name:"add",color:"grey11",size:"small"}),p.jsx(Q,{color:"grey12",children:`Create "${o}"`})]})]})}function vie(){const e=C.useContext(vo.ErrorBoundaryContext);return p.jsxs("div",{className:pn.tagErrorContainer,children:[p.jsxs("div",{className:pn.tagErrorLeft,children:[p.jsx(de,{name:"alert",size:"large",color:"tomato11"}),p.jsx(Q,{variant:"normal",color:"tomato11",children:"Failed to load the tags."})]}),e&&p.jsx(_e,{endIcon:"refresh",color:"tomato",onClick:e==null?void 0:e.reset,invisible:!0,children:"Retry"})]})}function yie(){return p.jsx("div",{className:pn.optionsContainer,children:p.jsx("div",{className:pn.tagsSkeleton,children:p.jsx(Oi,{height:"100%",width:"100%"})})})}function xie(e){const{openState:t}=e;return p.jsx("div",{className:pn[`overlay-${t}`]})}function Cie(e,t,n){function r(a){return!t.has(a)}function o(a,i){return a.toLowerCase().includes(i.toLowerCase())}return Array.from(e).filter(a=>r(a)&&o(a,n))}const wie="_root_12r1j_1",kie="_common_12r1j_9 _variant-normal_3isg4_16 _base_3isg4_12",Sie="_textarea_12r1j_26 _common_12r1j_9 _variant-normal_3isg4_16 _base_3isg4_12",Die="_autoGrow_12r1j_41 _common_12r1j_9 _variant-normal_3isg4_16 _base_3isg4_12",zf={root:wie,common:kie,textarea:Sie,autoGrow:Die};function _ie(e){const{onChange:t,value:n,sx:r,paddingLeft:o=8,paddingRight:a=8,placeholder:i,...l}=e,s=C.useRef(null);function c(d){n===void 0&&s.current!==null&&(s.current.textContent=R4(d.target.value)),t==null||t(d.target.value)}const u={paddingLeft:o,paddingRight:a};return p.jsxs("div",{className:zf.root,style:r,children:[p.jsx("textarea",{...l,className:zf.textarea,style:u,onChange:c,placeholder:i,value:n}),p.jsx("div",{className:zf.autoGrow,style:u,ref:s,children:R4(n||i)})]})}function R4(e){return(e??"").concat(" ")}const $ie=C.forwardRef(function(t,n){const{inputMode:r="text",...o}=t;return p.jsx(xl,{...o,ref:n,inputMode:r})}),Eie="_textOverflow_1f74w_1";function Mie(e){const{children:t}=e;return p.jsx("span",{className:Eie,children:t})}const Aie="_lightTheme_16yz3_1",Tie="_darkTheme_16yz3_5",D1={lightTheme:Aie,darkTheme:Tie},Au=Object.values(V4).flatMap(e=>Object.entries(e));function Pie(e){Au.forEach(([t,n])=>{ol(n)||e.style.setProperty(`--${t}`,n)})}function Rie(e){Au.forEach(([t,n])=>{ol(n)||e.style.setProperty(`--${t}`,null)})}function B4(e,t){e.classList.add(D1[`${t}Theme`]),Au.forEach(([n,r])=>{ol(r)&&e.style.setProperty(`--${n}`,r[t])})}function jf(e){e.classList.remove(D1.darkTheme),e.classList.remove(D1.lightTheme),Au.forEach(([t,n])=>{ol(n)&&e.style.setProperty(`--${t}`,null)})}function Bie(e){const{children:t,mode:n="system"}=e;return C.useInsertionEffect(()=>(Pie(document.body),()=>Rie(document.body)),[]),C.useInsertionEffect(()=>{if(n==="dark"||n==="light")return B4(document.body,n),()=>jf(document.body);function r(i){o(i.matches)}function o(i){jf(document.body),B4(document.body,i?"dark":"light")}const a=window.matchMedia("(prefers-color-scheme: dark)");return o(a.matches),a.addEventListener("change",r),()=>{a.removeEventListener("change",r),jf(document.body)}},[n]),p.jsx(p.Fragment,{children:t})}const Iie="_toast_1e6xe_1",Oie="_inline_1e6xe_11 _toast_1e6xe_1",Fie="_content_1e6xe_21",Nie="_separator_1e6xe_28",Lie="_button_1e6xe_34 _variant-bold_3isg4_24 _base_3isg4_12",zie="_card_1e6xe_48 _toast_1e6xe_1",jie="_closeButton_1e6xe_61",ca={toast:Iie,inline:Oie,content:Fie,separator:Nie,button:Lie,card:zie,closeButton:jie};function hS(e){const{anchor:t,open:n,title:r,seconds:o,action:a,cancel:i,onOpenChange:l}=e,s=fe.useStableCallback(l);return C.useEffect(()=>{if(!n||!o)return;const c=setTimeout(()=>{s(!1)},o*1e3);return()=>clearTimeout(c)},[o,n,s]),p.jsx(Oa,{anchor:t,open:n,focusOnEnter:!1,onOpenChange:l,onInteractOutside:c=>c.preventDefault(),onEscapeKeyDown:c=>{a&&c.preventDefault()},children:e.variant==="card"?p.jsx(Hie,{title:r,subtitle:e.subtitle,action:a,cancel:i,onOpenChange:l}):p.jsx(Vie,{icon:e.icon,loadingIndicator:e.loadingIndicator,title:r,action:a,cancel:i,onOpenChange:l})})}function Vie(e){const{icon:t,loadingIndicator:n,title:r,action:o,cancel:a,onOpenChange:i}=e;return p.jsxs("div",{className:ca.inline,children:[p.jsxs("div",{className:ca.content,children:[!!t&&p.jsx(de,{name:t,color:"grey11",size:"medium"}),n&&p.jsx(Oc,{color:"dark12"}),p.jsx(Q,{variant:"normal",color:"white",children:r})]}),(o||a)&&p.jsxs(p.Fragment,{children:[p.jsx("div",{className:ca.separator}),o&&p.jsx("button",{className:ca.button,onClick:()=>{i==null||i(!1),o.onClick()},children:o.title}),a&&p.jsx(rt,{icon:"close",size:"medium",hasPadding:!1,onClick:a.onClick})]})]})}function Hie(e){const{title:t,subtitle:n,action:r,onOpenChange:o,cancel:a}=e;function i(){a==null||a.onClick(),o==null||o(!1)}return p.jsxs("div",{className:ca.card,children:[p.jsx("div",{className:ca.closeButton,children:p.jsx(rt,{icon:"close",size:"medium",hasPadding:!1,onClick:i})}),n?p.jsxs($e,{flexDirection:"column",alignItems:"flex-start",children:[p.jsx(Q,{variant:"bold",children:t}),p.jsx(Q,{children:n})]}):p.jsx(Q,{variant:"normal",children:t}),r&&p.jsx(_e,{size:"medium",onClick:()=>{o==null||o(!1),r.onClick()},children:r.title})]})}function Wie(e){const{children:t}=e,[n,r]=C.useState({title:"",key:0}),[o,a]=C.useState(!1),{key:i,variant:l="inline",title:s,subtitle:c,seconds:u,action:d,icon:f="check",anchor:h=p.jsx($e,{position:"fixed",bottom:24,width:"100%"})}=n,g=C.useMemo(()=>({showToast:m=>{r({...Kie,...m,key:Date.now()}),a(!0)}}),[]);return p.jsxs(p.Fragment,{children:[p.jsx(hS,{variant:l,anchor:h,open:o,icon:f,title:s,subtitle:c,seconds:u,action:d,onOpenChange:a},i),p.jsx(gS.Provider,{value:g,children:t})]})}const Kie={seconds:5};function Uie(){const e=C.useContext(gS);if(e===void 0)throw new Error("useToast must be used within a ToastProvider");return e}const gS=C.createContext({showToast:()=>{}});var Ha="ToggleGroup",[mS,bS]=Le(Ha,[Pn]),vS=Pn(),jg=C.forwardRef((e,t)=>{const{type:n,...r}=e;if(n==="single"){const o=r;return p.jsx(Zie,{...o,ref:t})}if(n==="multiple"){const o=r;return p.jsx(Gie,{...o,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${Ha}\``)});jg.displayName=Ha;var[yS,xS]=mS(Ha),Zie=C.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i,l]=ct({prop:n,defaultProp:r,onChange:o});return p.jsx(yS,{scope:e.__scopeToggleGroup,type:"single",value:i?[i]:[],onItemActivate:l,onItemDeactivate:C.useCallback(()=>l(""),[l]),children:p.jsx(CS,{...a,ref:t})})}),Gie=C.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i=[],l]=ct({prop:n,defaultProp:r,onChange:o}),s=C.useCallback(u=>l((d=[])=>[...d,u]),[l]),c=C.useCallback(u=>l((d=[])=>d.filter(f=>f!==u)),[l]);return p.jsx(yS,{scope:e.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:s,onItemDeactivate:c,children:p.jsx(CS,{...a,ref:t})})});jg.displayName=Ha;var[qie,Yie]=mS(Ha),CS=C.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:o=!0,orientation:a,dir:i,loop:l=!0,...s}=e,c=vS(n),u=Nr(i),d={role:"group",dir:u,...s};return p.jsx(qie,{scope:n,rovingFocus:o,disabled:r,children:o?p.jsx($l,{asChild:!0,...c,orientation:a,dir:u,loop:l,children:p.jsx(ee.div,{...d,ref:t})}):p.jsx(ee.div,{...d,ref:t})})}),Pc="ToggleGroupItem",wS=C.forwardRef((e,t)=>{const n=xS(Pc,e.__scopeToggleGroup),r=Yie(Pc,e.__scopeToggleGroup),o=vS(e.__scopeToggleGroup),a=n.value.includes(e.value),i=r.disabled||e.disabled,l={...e,pressed:a,disabled:i},s=C.useRef(null);return r.rovingFocus?p.jsx(za,{asChild:!0,...o,focusable:!i,active:a,ref:s,children:p.jsx(I4,{...l,ref:t})}):p.jsx(I4,{...l,ref:t})});wS.displayName=Pc;var I4=C.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:r,...o}=e,a=xS(Pc,n),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},l=a.type==="single"?i:void 0;return p.jsx(Hh,{...l,...o,ref:t,onPressedChange:s=>{s?a.onItemActivate(r):a.onItemDeactivate(r)}})}),kS=jg,SS=wS;function Jie(e){const t=Xn(),{children:n,density:r="regular",disabled:o=t==null?void 0:t.disabled,size:a=(t==null?void 0:t.size)??"medium",color:i=(t==null?void 0:t.color)??"purple",...l}=e;return p.jsx(kS,{...l,asChild:!0,disabled:o,children:p.jsx($r,{density:r,size:a,color:i,children:n})})}function Xie(e){const t=Xn(),{children:n,startIcon:r,endIcon:o,...a}=e,i=(t==null?void 0:t.color)??"purple",l=(t==null?void 0:t.size)??"medium";return p.jsx(SS,{...a,asChild:!0,children:p.jsx(_e,{size:l,color:i,startIcon:r,endIcon:o,children:n})})}var Vg="Toolbar",[Qie,gse]=Le(Vg,[Pn,bS]),Hg=Pn(),DS=bS(),[ele,_S]=Qie(Vg),$S=k.forwardRef((e,t)=>{const{__scopeToolbar:n,orientation:r="horizontal",dir:o,loop:a=!0,...i}=e,l=Hg(n),s=Nr(o);return p.jsx(ele,{scope:n,orientation:r,dir:s,children:p.jsx($l,{asChild:!0,...l,orientation:r,dir:s,loop:a,children:p.jsx(ee.div,{role:"toolbar","aria-orientation":r,dir:s,...i,ref:t})})})});$S.displayName=Vg;var ES="ToolbarSeparator",MS=k.forwardRef((e,t)=>{const{__scopeToolbar:n,...r}=e,o=_S(ES,n);return p.jsx(Zk,{orientation:o.orientation==="horizontal"?"vertical":"horizontal",...r,ref:t})});MS.displayName=ES;var tle="ToolbarButton",Wg=k.forwardRef((e,t)=>{const{__scopeToolbar:n,...r}=e,o=Hg(n);return p.jsx(za,{asChild:!0,...o,focusable:!e.disabled,children:p.jsx(ee.button,{type:"button",...r,ref:t})})});Wg.displayName=tle;var nle="ToolbarLink",rle=k.forwardRef((e,t)=>{const{__scopeToolbar:n,...r}=e,o=Hg(n);return p.jsx(za,{asChild:!0,...o,focusable:!0,children:p.jsx(ee.a,{...r,ref:t,onKeyDown:J(e.onKeyDown,a=>{a.key===" "&&a.currentTarget.click()})})})});rle.displayName=nle;var AS="ToolbarToggleGroup",TS=k.forwardRef((e,t)=>{const{__scopeToolbar:n,...r}=e,o=_S(AS,n),a=DS(n);return p.jsx(kS,{"data-orientation":o.orientation,dir:o.dir,...a,...r,ref:t,rovingFocus:!1})});TS.displayName=AS;var ole="ToolbarToggleItem",PS=k.forwardRef((e,t)=>{const{__scopeToolbar:n,...r}=e,o=DS(n),a={__scopeToolbar:e.__scopeToolbar};return p.jsx(Wg,{asChild:!0,...a,children:p.jsx(SS,{...o,...r,ref:t})})});PS.displayName=ole;var ale=$S,ile=MS,Kg=Wg,lle=TS,sle=PS;const cle="_toolbar_stii4_1",ule={toolbar:cle};function dle(e){const{sx:t,...n}=e;return p.jsx(ale,{...n,className:ule.toolbar,style:t})}const fle=C.forwardRef(function(t,n){const r=Xn(),{children:o,disabled:a=r==null?void 0:r.disabled,...i}=t;return p.jsx(Kg,{...i,asChild:!0,disabled:a,ref:n,children:p.jsx(_e,{size:"small",color:"grey",children:o})})});function ple(e){return p.jsx($r,{...e})}function hle(e){return p.jsx(Wk,{...e,size:"small",color:"grey",renderTrigger:({button:t,disabled:n})=>p.jsx(Kg,{asChild:!0,disabled:n,children:t})})}function gle(e){return p.jsx(Kk,{...e})}function mle(){return p.jsx(ile,{asChild:!0,children:p.jsx(Gk,{orientation:"vertical"})})}function ble(e){const t=Xn(),{children:n,disabled:r=t==null?void 0:t.disabled,...o}=e;return p.jsx(Kg,{...o,asChild:!0,disabled:r,children:p.jsx(Wh,{size:"small",color:"grey",children:n})})}function vle(e){const{children:t,density:n,...r}=e;return p.jsx(lle,{...r,asChild:!0,children:p.jsx($r,{density:n,children:t})})}function yle(e){const{children:t,...n}=e;return p.jsx(sle,{...n,asChild:!0,children:p.jsx(_e,{size:"small",color:"grey",children:t})})}const xle="_loading_1dges_1",Cle="_loaded_1dges_5",wle="_fadeIn_1dges_1",Vf={loading:xle,loaded:Cle,fadeIn:wle,"sizing-none":"_sizing-none_1dges_11","sizing-contain":"_sizing-contain_1dges_15","sizing-cover":"_sizing-cover_1dges_21","borderRadius-0":"_borderRadius-0_1dges_27","borderRadius-4":"_borderRadius-4_1dges_31"};function kle(e){const{src:t,onLoad:n,sizing:r="none",borderRadius:o=0,boxShadow:a,withControls:i=!0,animateOnLoad:l=!0,sx:s,...c}=e,u=C.useRef(null),[d,f]=C.useState(!1);C.useEffect(()=>{var b;(b=u.current)==null||b.load()},[t]);function h(){if(l)return d?"loaded":"loading"}const g=h();function m(){f(!0),n==null||n()}return p.jsxs("video",{...c,ref:u,controls:i,className:W(Vf[`sizing-${r}`],Vf[`borderRadius-${o}`],g&&Vf[g]),style:{...s,boxShadow:a&&Se.boxShadow[a]},onLoadedData:m,children:[p.jsx("source",{src:t,type:"video/mp4"}),p.jsx("track",{kind:"captions"})]})}var Ug="Tabs",[Sle,mse]=Le(Ug,[Pn]),RS=Pn(),[Dle,Zg]=Sle(Ug),BS=k.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:a,orientation:i="horizontal",dir:l,activationMode:s="automatic",...c}=e,u=Nr(l),[d,f]=ct({prop:r,onChange:o,defaultProp:a});return p.jsx(Dle,{scope:n,baseId:Lt(),value:d,onValueChange:f,orientation:i,dir:u,activationMode:s,children:p.jsx(ee.div,{dir:u,"data-orientation":i,...c,ref:t})})});BS.displayName=Ug;var IS="TabsList",OS=k.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,a=Zg(IS,n),i=RS(n);return p.jsx($l,{asChild:!0,...i,orientation:a.orientation,dir:a.dir,loop:r,children:p.jsx(ee.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});OS.displayName=IS;var FS="TabsTrigger",NS=k.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...a}=e,i=Zg(FS,n),l=RS(n),s=jS(i.baseId,r),c=VS(i.baseId,r),u=r===i.value;return p.jsx(za,{asChild:!0,...l,focusable:!o,active:u,children:p.jsx(ee.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":c,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:s,...a,ref:t,onMouseDown:J(e.onMouseDown,d=>{!o&&d.button===0&&d.ctrlKey===!1?i.onValueChange(r):d.preventDefault()}),onKeyDown:J(e.onKeyDown,d=>{[" ","Enter"].includes(d.key)&&i.onValueChange(r)}),onFocus:J(e.onFocus,()=>{const d=i.activationMode!=="manual";!u&&!o&&d&&i.onValueChange(r)})})})});NS.displayName=FS;var LS="TabsContent",zS=k.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:a,...i}=e,l=Zg(LS,n),s=jS(l.baseId,r),c=VS(l.baseId,r),u=r===l.value,d=k.useRef(u);return k.useEffect(()=>{const f=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(f)},[]),p.jsx(pt,{present:o||u,children:({present:f})=>p.jsx(ee.div,{"data-state":u?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":s,hidden:!f,id:c,tabIndex:0,...i,ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0},children:f&&a})})});zS.displayName=LS;function jS(e,t){return`${e}-trigger-${t}`}function VS(e,t){return`${e}-content-${t}`}var _le=BS,$le=OS,Ele=NS,Mle=zS;const Ale="_darkTheme_16yz3_5",Tle="_window_19zhx_3",Ple="_frame_19zhx_14",Rle="_windowToolbarSection_19zhx_22",Ble="_windowTitleSection_19zhx_23",Ile="_windowSidebarSection_19zhx_24",Ole="_windowControls_19zhx_47",Fle="_windowControl_19zhx_47",Nle="_tabs_19zhx_61",Lle="_tabsList_19zhx_67",zle="_tabsListChild_19zhx_90",jle="_tabsTrigger_19zhx_107 _tabsListChild_19zhx_90",Vle="_tabsTriggerMenu_19zhx_144",Hle="_newTabButton_19zhx_156 _tabsListChild_19zhx_90",Wle="_tabsContent_19zhx_171",st={darkTheme:Ale,window:Tle,frame:Ple,windowToolbarSection:Rle,windowTitleSection:Ble,windowSidebarSection:Ile,windowControls:Ole,windowControl:Fle,tabs:Nle,tabsList:Lle,tabsListChild:zle,tabsTrigger:jle,tabsTriggerMenu:Vle,newTabButton:Hle,tabsContent:Wle};function Kle(e){const{sx:t,...n}=e;return p.jsx("div",{...n,style:t,className:st.window})}function Ule({title:e}){return p.jsxs("header",{className:st.frame,children:[p.jsx("div",{className:st.windowToolbarSection,children:p.jsxs("div",{className:st.windowControls,children:[p.jsx("span",{className:st.windowControl}),p.jsx("span",{className:st.windowControl}),p.jsx("span",{className:st.windowControl})]})}),p.jsx("div",{className:st.windowTitleSection,children:e}),p.jsx("div",{className:st.windowSidebarSection})]})}function Zle(e){return p.jsx(_le,{...e,activationMode:"manual",className:st.tabs})}function Gle(e){const{children:t,onAddNewTab:n,...r}=e;return p.jsxs($le,{...r,className:st.tabsList,children:[t,p.jsx("div",{className:st.newTabButton,children:p.jsx(rt,{icon:"add",onClick:n,hiddenLabel:"Add new tab"})})]})}function qle(e){const{children:t,menu:n,value:r,...o}=e;return p.jsx(Ele,{...o,"aria-label":r,asChild:!0,onMouseDown:a=>{const i=a.target,l=an.findFocusableAncestor(i);l!==a.currentTarget&&l!==a.currentTarget.parentElement&&a.preventDefault(),i===a.currentTarget&&i.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})},value:r,children:p.jsxs("div",{className:st.tabsTrigger,children:[p.jsx(Q,{color:"inherit",component:"span",noWrap:!0,variant:"emphasized",sx:{flexGrow:1,position:"relative"},children:t}),n?p.jsx("div",{className:st.tabsTriggerMenu,children:p.jsxs(Ag,{children:[p.jsx(Tg,{children:p.jsx(rt,{icon:"moreVert",hiddenLabel:`tab-${r}-menu-button`})}),p.jsx(Pg,{align:"start",children:n})]})}):void 0]})})}function Yle(e){return p.jsx(Mle,{...e,className:st.tabsContent})}const Jle="data:image/svg+xml,%3csvg%20width='204'%20height='200'%20viewBox='0%200%20204%20200'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M101.647%20200C156.876%20200%20201.647%20155.228%20201.647%20100C201.647%2044.7715%20156.876%200%20101.647%200C46.419%200%201.64746%2044.7715%201.64746%20100C1.64746%20155.228%2046.419%20200%20101.647%20200Z'%20fill='%23E9E8EA'/%3e%3cg%20filter='url(%23filter0_d_3577_14997)'%3e%3crect%20x='2'%20y='26'%20width='200'%20height='147'%20rx='4'%20fill='white'/%3e%3c/g%3e%3ccircle%20cx='18.0073'%20cy='38'%20r='4'%20fill='%23F1EEFE'/%3e%3ccircle%20cx='30.0073'%20cy='38'%20r='4'%20fill='%23F1EEFE'/%3e%3ccircle%20cx='42.0073'%20cy='38'%20r='4'%20fill='%23F1EEFE'/%3e%3crect%20x='14'%20y='50'%20width='53'%20height='113'%20rx='2'%20fill='%23F1EEFE'/%3e%3crect%20x='76'%20y='51'%20width='113'%20height='111'%20rx='1'%20stroke='%23F1EEFE'%20stroke-width='2'/%3e%3cpath%20d='M154.373%20128H110.943C109.134%20128%20107.686%20126.636%20107.686%20125C107.686%20123.364%20109.134%20122%20110.943%20122H154.373C156.183%20122%20157.631%20123.364%20157.631%20125C157.993%20126.636%20156.545%20128%20154.373%20128Z'%20fill='%239E8CFC'/%3e%3cpath%20d='M128.029%2089.941L109.604%20108.367C108.836%20109.135%20107.418%20108.945%20106.454%20107.981C105.49%20107.017%20105.3%20105.599%20106.068%20104.831L124.494%2086.4054C125.201%2085.6979%20126.461%2085.8032%20127.409%2086.5788C127.572%2086.7122%20127.734%2086.8488%20127.888%2086.9919C128.784%2087.8205%20128.879%2089.0917%20128.029%2089.941Z'%20fill='%239E8CFC'/%3e%3cpath%20d='M123.808%20108.343L105.382%2089.9175C104.614%2089.1497%20104.804%2087.732%20105.768%2086.7678C106.732%2085.8035%20108.15%2085.6142%20108.918%2086.3819L127.343%20104.808C128.051%20105.515%20127.946%20106.775%20127.17%20107.723C127.037%20107.886%20126.9%20108.048%20126.757%20108.202C125.928%20109.098%20124.657%20109.193%20123.808%20108.343Z'%20fill='%239E8CFC'/%3e%3cpath%20d='M160.029%2089.941L141.604%20108.367C140.836%20109.135%20139.418%20108.945%20138.454%20107.981C137.49%20107.017%20137.3%20105.599%20138.068%20104.831L156.494%2086.4054C157.201%2085.6979%20158.461%2085.8032%20159.409%2086.5788C159.572%2086.7122%20159.734%2086.8488%20159.888%2086.9919C160.784%2087.8205%20160.879%2089.0917%20160.029%2089.941Z'%20fill='%239E8CFC'/%3e%3cpath%20d='M155.808%20108.343L137.382%2089.9175C136.614%2089.1497%20136.804%2087.732%20137.768%2086.7678C138.732%2085.8035%20140.15%2085.6142%20140.918%2086.3819L159.343%20104.808C160.051%20105.515%20159.946%20106.775%20159.17%20107.723C159.037%20107.886%20158.9%20108.048%20158.757%20108.202C157.928%20109.098%20156.657%20109.193%20155.808%20108.343Z'%20fill='%239E8CFC'/%3e%3cdefs%3e%3cfilter%20id='filter0_d_3577_14997'%20x='0'%20y='26'%20width='204'%20height='151'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dy='2'/%3e%3cfeGaussianBlur%20stdDeviation='1'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.422529%200%200%200%200%200.397708%200%200%200%200%200.575%200%200%200%200.18%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_3577_14997'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_3577_14997'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e";exports.ActionList=K$;exports.ActionListItem=K4;exports.ActionListLabel=U$;exports.Alert=lb;exports.AlertProvider=ST;exports.AnimatedElement=ka;exports.AnimatedList=P1;exports.AnimatedSuspense=eae;exports.Avatar=qT;exports.Badge=_t;exports.BlankSlate=a5;exports.BlankSlateActions=c5;exports.BlankSlateDescription=l5;exports.BlankSlateIcon=sP;exports.BlankSlateImage=s5;exports.BlankSlateTitle=i5;exports.Box=$e;exports.Button=_e;exports.ButtonGroup=$r;exports.Card=G1;exports.CardContent=q1;exports.CardFooter=RP;exports.CardHeader=MP;exports.CardHeaderActions=TP;exports.CardHeaderTitle=AP;exports.CardImage=PP;exports.Carousel=YP;exports.CarouselItem=oR;exports.Checkbox=m5;exports.CheckerBoard=Y1;exports.CircleIcon=mR;exports.CodeBlock=J5;exports.ColorInput=EV;exports.ComboBox=aK;exports.ComboBoxContent=iK;exports.ComboBoxInput=sK;exports.ComboBoxItem=lK;exports.ComboboxAction=Rp;exports.ConjoinedIcons=gK;exports.ContentEditable=A8;exports.Cropper=TJ;exports.DateInput=D9;exports.DatePicker=FJ;exports.DefaultErrorMessage=$ee;exports.Dialog=cX;exports.DialogActionButton=hX;exports.DialogActionLink=gX;exports.DialogActions=pX;exports.DialogCancelButton=mX;exports.DialogContent=fX;exports.DialogHeader=uX;exports.DialogOptions=UX;exports.DialogOptionsItem=ZX;exports.Dot=QX;exports.DropdownMenu=Ag;exports.DropdownMenuContent=Pg;exports.DropdownMenuItem=wee;exports.DropdownMenuLabel=nk;exports.DropdownMenuTrigger=Tg;exports.EditableText=_ee;exports.ErrorBoundary=Eee;exports.Field=Vee;exports.FieldControl=Kee;exports.FieldFooter=Uee;exports.FieldIcon=Hee;exports.FieldLabel=Wee;exports.FieldSet=Jee;exports.FileDropZone=ote;exports.FileUploadButton=ate;exports.FilterField=gte;exports.Form=KV;exports.FormDateInput=aW;exports.FormField=_9;exports.FormInput=LW;exports.FormInputField=ou;exports.FormSearchInput=O9;exports.Gradient=wte;exports.Group=Ete;exports.GroupItem=Lte;exports.HairlineButton=ik;exports.HeaderTabLink=Hte;exports.Icon=de;exports.IconButton=rt;exports.Image=Uc;exports.InlineLabel=UW;exports.Kbd=Ute;exports.LazyCodeBlock=hL;exports.LazyRender=Gte;exports.Line=nne;exports.ListItem=ine;exports.MediaCard=_ne;exports.MediaCardPlaceholder=uk;exports.NumberInput=Tne;exports.OverflowContainer=sk;exports.OverflowEndAdornment=Bg;exports.OverflowItem=Rg;exports.Popover=Oa;exports.Portal=Ine;exports.PreviewCard=VP;exports.PreviewContent=WP;exports.PreviewImage=HP;exports.PrismicLogo=H4;exports.ProgressBar=ck;exports.ProgressCircle=Oc;exports.RadioBigCard=Une;exports.RadioButton=gk;exports.RadioCard=tre;exports.RadioGroup=Hne;exports.ScrollArea=mk;exports.SearchInput=Zh;exports.Select=Wk;exports.SelectCard=roe;exports.SelectGhostTrigger=toe;exports.SelectItem=Kk;exports.Separator=Gk;exports.Skeleton=Oi;exports.SliceCard=voe;exports.SliceSelectCard=_oe;exports.Slider=Yoe;exports.SuspenseImage=Z1;exports.Switch=dae;exports.Tab=vae;exports.Table=Nae;exports.TableBody=zae;exports.TableCell=Vae;exports.TableHead=Lae;exports.TableRow=jae;exports.Tag=Zae;exports.TagField=gie;exports.Text=Q;exports.TextArea=_ie;exports.TextInput=$ie;exports.TextOverflow=Mie;exports.ThemeProvider=Bie;exports.Toast=hS;exports.ToastProvider=Wie;exports.ToggleButton=Wh;exports.ToggleButtonGroup=Jie;exports.ToggleButtonGroupItem=Xie;exports.Toolbar=dle;exports.ToolbarButton=fle;exports.ToolbarButtonGroup=ple;exports.ToolbarSelect=hle;exports.ToolbarSelectItem=gle;exports.ToolbarSeparator=mle;exports.ToolbarToggleButton=ble;exports.ToolbarToggleButtonGroup=vle;exports.ToolbarToggleButtonGroupItem=yle;exports.Tooltip=yl;exports.TooltipProvider=EW;exports.UnorderedList=ane;exports.Video=kle;exports.Window=Kle;exports.WindowFrame=Ule;exports.WindowTabs=Zle;exports.WindowTabsContent=Yle;exports.WindowTabsList=Gle;exports.WindowTabsTrigger=qle;exports.contentEditableClass=QY;exports.contentEditableMultilinePlaceholderClass=tJ;exports.contentEditablePlaceholderClass=eJ;exports.cssTheme=g$;exports.dialogErrorImage=Jle;exports.getProgressPropsFromMediaStatus=fk;exports.handleEditorFlushSyncError=XY;exports.theme=Se;exports.useAlert=DT;exports.useEditor=M8;exports.useMediaQuery=m$;exports.useToast=Uie;
|
|
569
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return k.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},UJ="DialogDescriptionWarning",ZJ=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Q8(UJ).contentName}}.`;return k.useEffect(()=>{var a;const o=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},ew=z8,tw=V8,nw=W8,GJ=K8,rw=U8,qJ=G8,ow=J8;const YJ="_overlay_150zl_1",JJ="_container_150zl_23",XJ="_child_150zl_76",QJ="_header_150zl_128",eX="_headerIcon_150zl_142",tX="_closeButton_150zl_147",nX="_content_150zl_153",rX="_actions_150zl_169",It={overlay:YJ,"fade-in":"_fade-in_150zl_1","fade-out":"_fade-out_150zl_1",container:JJ,"container-large":"_container-large_150zl_52","container-small":"_container-small_150zl_57","container-center":"_container-center_150zl_61","position-center-in":"_position-center-in_150zl_1","position-center-out":"_position-center-out_150zl_1",child:XJ,"position-child-center-in":"_position-child-center-in_150zl_1","position-child-center-out":"_position-child-center-out_150zl_1","container-top":"_container-top_150zl_89","position-top-in":"_position-top-in_150zl_1","position-top-out":"_position-top-out_150zl_1","container-bottomRight":"_container-bottomRight_150zl_115","position-bottom-right-in":"_position-bottom-right-in_150zl_1","position-bottom-right-out":"_position-bottom-right-out_150zl_1",header:QJ,headerIcon:eX,closeButton:tX,content:nX,"contentPadding-16":"_contentPadding-16_150zl_161","contentGap-12":"_contentGap-12_150zl_165",actions:rX},oX="_container_1xbd4_1",aX="_fadeIn_1xbd4_1",iX="_fadeOut_1xbd4_1",lX={container:oX,fadeIn:aX,fadeOut:iX};function sX(e){const{trigger:t,children:n,onAnimationEnd:r,onEscapeKeyDown:o,...a}=e;return p.jsxs(ew,{...a,children:[t&&p.jsx(tw,{asChild:!0,children:t}),p.jsx(nw,{children:p.jsx(rw,{className:lX.container,onAnimationEnd:r,onEscapeKeyDown:o,children:n})})]})}function cX(e){const{trigger:t,children:n,renderTooltip:r=v=>v,onAnimationEnd:o,onAnimationStart:a,size:i="large",hasClose:l=!0,modal:s=!0,position:c="top",onPointerDownOutside:u,onOpenChange:d,...f}=e;function h(v){(i==="fullscreen"||s===!1)&&v.preventDefault()}const g=bX(),m=C.useRef(null);if(i==="fullscreen")return p.jsx(sX,{...e,onEscapeKeyDown:h});const b=i==="large"||i==="small",x=b?void 0:i,y=p.jsxs(rw,{style:{...x,top:g},className:W(It.container,It[`container-${c}`],b&&It[`container-${i}`],g&&It.child),onAnimationStart:a,onAnimationEnd:o,onEscapeKeyDown:h,onOpenAutoFocus:h,onCloseAutoFocus:h,onInteractOutside:v=>v.preventDefault(),onPointerDownOutside:u,ref:m,children:[p.jsx(aw.Provider,{value:{parentDialog:m},children:n}),l&&p.jsx("div",{className:It.closeButton,children:p.jsx(ow,{asChild:!0,children:p.jsx(rt,{icon:"close",hiddenLabel:"Close dialog"})})})]});return p.jsxs(ew,{modal:s,onOpenChange:d,...f,children:[r(t&&p.jsx(tw,{asChild:!0,children:t})),p.jsxs(nw,{children:[s&&p.jsx(GJ,{className:It.overlay,onClick:()=>d==null?void 0:d(!1)}),y]})]})}function uX(e){const{icon:t,onIconClick:n,title:r}=e;return p.jsxs("header",{className:It.header,children:[t&&p.jsx(dX,{icon:t,onClick:n}),p.jsx(qJ,{asChild:!0,children:p.jsx(Q,{noSelect:!0,component:"span",variant:"bold",children:r})})]})}function dX(e){const{icon:t,onClick:n}=e;return n?p.jsx(rt,{icon:t,onClick:n}):p.jsx("div",{className:It.headerIcon,children:p.jsx(de,{name:t,size:"medium",color:"grey11"})})}function fX(e){const{children:t,padding:n,gap:r=12,...o}=e;return p.jsx("section",{...o,className:W(It.content,n&&It[`contentPadding-${n}`],r&&It[`contentGap-${r}`]),children:t})}function pX(e){const{children:t}=e;return p.jsx("section",{className:It.actions,children:t})}function hX(e){const{tooltipLabel:t,size:n="large",color:r="purple",children:o,...a}=e;return p.jsx(yl,{visible:!!t,content:t??"",children:p.jsx(_e,{size:n,color:r,...a,children:o})})}function gX(e){const{variant:t="small",children:n,...r}=e;return p.jsx(Q,{variant:t,...r,sx:{flexGrow:1},children:n})}function mX(e){const{size:t="large",color:n="grey",children:r="Cancel",...o}=e;return p.jsx(ow,{asChild:!0,children:p.jsx(_e,{color:n,size:t,...o,children:r})})}const aw=C.createContext({parentDialog:null});function bX(){var o;const{parentDialog:e}=C.useContext(aw),t=(o=e==null?void 0:e.current)==null?void 0:o.getBoundingClientRect();if(!t)return;const{height:n,top:r}=t;return n/2+r}function wu(e){const t=e+"CollectionProvider",[n,r]=Le(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=h=>{const{scope:g,children:m}=h,b=C.useRef(null),x=C.useRef(new Map).current;return p.jsx(o,{scope:g,itemMap:x,collectionRef:b,children:m})};i.displayName=t;const l=e+"CollectionSlot",s=C.forwardRef((h,g)=>{const{scope:m,children:b}=h,x=a(l,m),y=ge(g,x.collectionRef);return p.jsx(sn,{ref:y,children:b})});s.displayName=l;const c=e+"CollectionItemSlot",u="data-radix-collection-item",d=C.forwardRef((h,g)=>{const{scope:m,children:b,...x}=h,y=C.useRef(null),v=ge(g,y),w=a(c,m);return C.useEffect(()=>(w.itemMap.set(y,{ref:y,...x}),()=>void w.itemMap.delete(y))),p.jsx(sn,{[u]:"",ref:v,children:b})});d.displayName=c;function f(h){const g=a(e+"CollectionConsumer",h);return C.useCallback(()=>{const b=g.collectionRef.current;if(!b)return[];const x=Array.from(b.querySelectorAll(`[${u}]`));return Array.from(g.itemMap.values()).sort((w,D)=>x.indexOf(w.ref.current)-x.indexOf(D.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:i,Slot:s,ItemSlot:d},f,r]}var vX=k.createContext(void 0);function Nr(e){const t=k.useContext(vX);return e||t||"ltr"}var If="rovingFocusGroup.onEntryFocus",yX={bubbles:!1,cancelable:!0},ku="RovingFocusGroup",[f1,iw,xX]=wu(ku),[CX,Pn]=Le(ku,[xX]),[wX,kX]=CX(ku),lw=k.forwardRef((e,t)=>p.jsx(f1.Provider,{scope:e.__scopeRovingFocusGroup,children:p.jsx(f1.Slot,{scope:e.__scopeRovingFocusGroup,children:p.jsx(SX,{...e,ref:t})})}));lw.displayName=ku;var SX=k.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:s,onEntryFocus:c,preventScrollOnEntryFocus:u=!1,...d}=e,f=k.useRef(null),h=ge(t,f),g=Nr(a),[m=null,b]=ct({prop:i,defaultProp:l,onChange:s}),[x,y]=k.useState(!1),v=$n(c),w=iw(n),D=k.useRef(!1),[_,M]=k.useState(0);return k.useEffect(()=>{const S=f.current;if(S)return S.addEventListener(If,v),()=>S.removeEventListener(If,v)},[v]),p.jsx(wX,{scope:n,orientation:r,dir:g,loop:o,currentTabStopId:m,onItemFocus:k.useCallback(S=>b(S),[b]),onItemShiftTab:k.useCallback(()=>y(!0),[]),onFocusableItemAdd:k.useCallback(()=>M(S=>S+1),[]),onFocusableItemRemove:k.useCallback(()=>M(S=>S-1),[]),children:p.jsx(ee.div,{tabIndex:x||_===0?-1:0,"data-orientation":r,...d,ref:h,style:{outline:"none",...e.style},onMouseDown:J(e.onMouseDown,()=>{D.current=!0}),onFocus:J(e.onFocus,S=>{const E=!D.current;if(S.target===S.currentTarget&&E&&!x){const P=new CustomEvent(If,yX);if(S.currentTarget.dispatchEvent(P),!P.defaultPrevented){const $=w().filter(B=>B.focusable),R=$.find(B=>B.active),T=$.find(B=>B.id===m),N=[R,T,...$].filter(Boolean).map(B=>B.ref.current);uw(N,u)}}D.current=!1}),onBlur:J(e.onBlur,()=>y(!1))})})}),sw="RovingFocusGroupItem",cw=k.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,...i}=e,l=Lt(),s=a||l,c=kX(sw,n),u=c.currentTabStopId===s,d=iw(n),{onFocusableItemAdd:f,onFocusableItemRemove:h}=c;return k.useEffect(()=>{if(r)return f(),()=>h()},[r,f,h]),p.jsx(f1.ItemSlot,{scope:n,id:s,focusable:r,active:o,children:p.jsx(ee.span,{tabIndex:u?0:-1,"data-orientation":c.orientation,...i,ref:t,onMouseDown:J(e.onMouseDown,g=>{r?c.onItemFocus(s):g.preventDefault()}),onFocus:J(e.onFocus,()=>c.onItemFocus(s)),onKeyDown:J(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){c.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const m=$X(g,c.orientation,c.dir);if(m!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let x=d().filter(y=>y.focusable).map(y=>y.ref.current);if(m==="last")x.reverse();else if(m==="prev"||m==="next"){m==="prev"&&x.reverse();const y=x.indexOf(g.currentTarget);x=c.loop?EX(x,y+1):x.slice(y+1)}setTimeout(()=>uw(x))}})})})});cw.displayName=sw;var DX={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function _X(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function $X(e,t,n){const r=_X(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return DX[r]}function uw(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function EX(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var $l=lw,za=cw,xg="Radio",[MX,dw]=Le(xg),[AX,TX]=MX(xg),fw=k.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:a,disabled:i,value:l="on",onCheck:s,...c}=e,[u,d]=k.useState(null),f=ge(t,m=>d(m)),h=k.useRef(!1),g=u?!!u.closest("form"):!0;return p.jsxs(AX,{scope:n,checked:o,disabled:i,children:[p.jsx(ee.button,{type:"button",role:"radio","aria-checked":o,"data-state":gw(o),"data-disabled":i?"":void 0,disabled:i,value:l,...c,ref:f,onClick:J(e.onClick,m=>{o||s==null||s(),g&&(h.current=m.isPropagationStopped(),h.current||m.stopPropagation())})}),g&&p.jsx(PX,{control:u,bubbles:!h.current,name:r,value:l,checked:o,required:a,disabled:i,style:{transform:"translateX(-100%)"}})]})});fw.displayName=xg;var pw="RadioIndicator",hw=k.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...o}=e,a=TX(pw,n);return p.jsx(pt,{present:r||a.checked,children:p.jsx(ee.span,{"data-state":gw(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t})})});hw.displayName=pw;var PX=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,a=k.useRef(null),i=cl(n),l=il(t);return k.useEffect(()=>{const s=a.current,c=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(c,"checked").set;if(i!==n&&d){const f=new Event("click",{bubbles:r});d.call(s,n),s.dispatchEvent(f)}},[i,n,r]),p.jsx("input",{type:"radio","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:a,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function gw(e){return e?"checked":"unchecked"}var RX=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Cg="RadioGroup",[BX,cse]=Le(Cg,[Pn,dw]),mw=Pn(),bw=dw(),[IX,OX]=BX(Cg),vw=k.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:a,required:i=!1,disabled:l=!1,orientation:s,dir:c,loop:u=!0,onValueChange:d,...f}=e,h=mw(n),g=Nr(c),[m,b]=ct({prop:a,defaultProp:o,onChange:d});return p.jsx(IX,{scope:n,name:r,required:i,disabled:l,value:m,onValueChange:b,children:p.jsx($l,{asChild:!0,...h,orientation:s,dir:g,loop:u,children:p.jsx(ee.div,{role:"radiogroup","aria-required":i,"aria-orientation":s,"data-disabled":l?"":void 0,dir:g,...f,ref:t})})})});vw.displayName=Cg;var yw="RadioGroupItem",xw=k.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...o}=e,a=OX(yw,n),i=a.disabled||r,l=mw(n),s=bw(n),c=k.useRef(null),u=ge(t,c),d=a.value===o.value,f=k.useRef(!1);return k.useEffect(()=>{const h=m=>{RX.includes(m.key)&&(f.current=!0)},g=()=>f.current=!1;return document.addEventListener("keydown",h),document.addEventListener("keyup",g),()=>{document.removeEventListener("keydown",h),document.removeEventListener("keyup",g)}},[]),p.jsx(za,{asChild:!0,...l,focusable:!i,active:d,children:p.jsx(fw,{disabled:i,required:a.required,checked:d,...s,...o,name:a.name,ref:u,onCheck:()=>a.onValueChange(o.value),onKeyDown:J(h=>{h.key==="Enter"&&h.preventDefault()}),onFocus:J(o.onFocus,()=>{var h;f.current&&((h=c.current)==null||h.click())})})})});xw.displayName=yw;var FX="RadioGroupIndicator",Cw=k.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,o=bw(n);return p.jsx(hw,{...o,...r,ref:t})});Cw.displayName=FX;var ww=vw,kw=xw,NX=Cw;const LX="_root_8nb1w_1",zX="_footer_8nb1w_28",jX="_groupRoot_8nb1w_33",VX="_item_8nb1w_40",HX="_uniformPadding_8nb1w_67",WX="_itemIcon_8nb1w_79",KX="_itemTextContainer_8nb1w_90",Qt={root:LX,"width-large":"_width-large_8nb1w_14","width-auto":"_width-auto_8nb1w_17","padding-medium":"_padding-medium_8nb1w_21","padding-small":"_padding-small_8nb1w_24",footer:zX,groupRoot:jX,item:VX,uniformPadding:HX,"inlinePadding-icon":"_inlinePadding-icon_8nb1w_71","inlinePadding-default":"_inlinePadding-default_8nb1w_74",itemIcon:WX,itemTextContainer:KX},UX=({value:e,onValueChange:t,children:n,width:r="large",padding:o="medium",footer:a})=>p.jsxs("aside",{className:Qt.root,children:[p.jsx(ww,{className:W(Qt.groupRoot,Qt[`width-${r}`],Qt[`padding-${o}`]),value:e,onValueChange:t,orientation:"vertical",children:n}),a&&p.jsx("div",{className:W(Qt.footer,Qt[`padding-${o}`]),children:a})]}),ZX=({value:e,icon:t,title:n,subtitle:r})=>{const o=n||r,a=W(Qt.item,Qt[`inlinePadding-${t?"icon":"default"}`],!o&&Qt.uniformPadding);return p.jsxs(kw,{className:a,value:e,children:[t&&p.jsx("div",{className:Qt.itemIcon,children:p.jsx(de,{name:t,size:"medium",color:"grey11"})}),o&&p.jsxs("div",{className:Qt.itemTextContainer,children:[p.jsx(Q,{variant:"bold",color:"grey12",noWrap:!0,children:n}),p.jsx(Q,{variant:"small",color:"grey11",noWrap:!0,children:r})]})]})},GX="_root_15mfy_1",qX="_grey_15mfy_11",YX="_green_15mfy_16",JX="_amber_15mfy_21",XX="_purple_15mfy_26",C4={root:GX,grey:qX,green:YX,amber:JX,purple:XX};function QX(e){const{color:t,role:n="status"}=e;return p.jsx("div",{role:n,className:W(C4.root,C4[t])})}var p1=["Enter"," "],eQ=["ArrowDown","PageUp","Home"],Sw=["ArrowUp","PageDown","End"],tQ=[...eQ,...Sw],nQ={ltr:[...p1,"ArrowRight"],rtl:[...p1,"ArrowLeft"]},rQ={ltr:["ArrowLeft"],rtl:["ArrowRight"]},El="Menu",[el,oQ,aQ]=wu(El),[Bo,Dw]=Le(El,[aQ,Ar,Pn]),Su=Ar(),_w=Pn(),[iQ,Io]=Bo(El),[lQ,Ml]=Bo(El),$w=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:i=!0}=e,l=Su(t),[s,c]=k.useState(null),u=k.useRef(!1),d=$n(a),f=Nr(o);return k.useEffect(()=>{const h=()=>{u.current=!0,document.addEventListener("pointerdown",g,{capture:!0,once:!0}),document.addEventListener("pointermove",g,{capture:!0,once:!0})},g=()=>u.current=!1;return document.addEventListener("keydown",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",g,{capture:!0})}},[]),p.jsx(zc,{...l,children:p.jsx(iQ,{scope:t,open:n,onOpenChange:d,content:s,onContentChange:c,children:p.jsx(lQ,{scope:t,onClose:k.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:f,modal:i,children:r})})})};$w.displayName=El;var sQ="MenuAnchor",wg=k.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Su(n);return p.jsx(ll,{...o,...r,ref:t})});wg.displayName=sQ;var kg="MenuPortal",[cQ,Ew]=Bo(kg,{forceMount:void 0}),Mw=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=Io(kg,t);return p.jsx(cQ,{scope:t,forceMount:n,children:p.jsx(pt,{present:n||a.open,children:p.jsx(Ao,{asChild:!0,container:o,children:r})})})};Mw.displayName=kg;var Wt="MenuContent",[uQ,Sg]=Bo(Wt),Aw=k.forwardRef((e,t)=>{const n=Ew(Wt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=Io(Wt,e.__scopeMenu),i=Ml(Wt,e.__scopeMenu);return p.jsx(el.Provider,{scope:e.__scopeMenu,children:p.jsx(pt,{present:r||a.open,children:p.jsx(el.Slot,{scope:e.__scopeMenu,children:i.modal?p.jsx(dQ,{...o,ref:t}):p.jsx(fQ,{...o,ref:t})})})})}),dQ=k.forwardRef((e,t)=>{const n=Io(Wt,e.__scopeMenu),r=k.useRef(null),o=ge(t,r);return k.useEffect(()=>{const a=r.current;if(a)return Hc(a)},[]),p.jsx(Dg,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:J(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),fQ=k.forwardRef((e,t)=>{const n=Io(Wt,e.__scopeMenu);return p.jsx(Dg,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Dg=k.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:l,onEntryFocus:s,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:h,disableOutsideScroll:g,...m}=e,b=Io(Wt,n),x=Ml(Wt,n),y=Su(n),v=_w(n),w=oQ(n),[D,_]=k.useState(null),M=k.useRef(null),S=ge(t,M,b.onContentChange),E=k.useRef(0),P=k.useRef(""),$=k.useRef(0),R=k.useRef(null),T=k.useRef("right"),I=k.useRef(0),N=g?Kc:k.Fragment,B=g?{as:sn,allowPinchZoom:!0}:void 0,V=j=>{var z,q;const L=P.current+j,O=w().filter(te=>!te.disabled),Z=document.activeElement,re=(z=O.find(te=>te.ref.current===Z))==null?void 0:z.textValue,oe=O.map(te=>te.textValue),ie=SQ(oe,L,re),se=(q=O.find(te=>te.textValue===ie))==null?void 0:q.ref.current;(function te(H){P.current=H,window.clearTimeout(E.current),H!==""&&(E.current=window.setTimeout(()=>te(""),1e3))})(L),se&&setTimeout(()=>se.focus())};k.useEffect(()=>()=>window.clearTimeout(E.current),[]),Fc();const F=k.useCallback(j=>{var O,Z;return T.current===((O=R.current)==null?void 0:O.side)&&_Q(j,(Z=R.current)==null?void 0:Z.area)},[]);return p.jsx(uQ,{scope:n,searchRef:P,onItemEnter:k.useCallback(j=>{F(j)&&j.preventDefault()},[F]),onItemLeave:k.useCallback(j=>{var L;F(j)||((L=M.current)==null||L.focus(),_(null))},[F]),onTriggerLeave:k.useCallback(j=>{F(j)&&j.preventDefault()},[F]),pointerGraceTimerRef:$,onPointerGraceIntentChange:k.useCallback(j=>{R.current=j},[]),children:p.jsx(N,{...B,children:p.jsx(Ba,{asChild:!0,trapped:o,onMountAutoFocus:J(a,j=>{var L;j.preventDefault(),(L=M.current)==null||L.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:p.jsx(al,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:h,children:p.jsx($l,{asChild:!0,...v,dir:x.dir,orientation:"vertical",loop:r,currentTabStopId:D,onCurrentTabStopIdChange:_,onEntryFocus:J(s,j=>{x.isUsingKeyboardRef.current||j.preventDefault()}),preventScrollOnEntryFocus:!0,children:p.jsx(jc,{role:"menu","aria-orientation":"vertical","data-state":Uw(b.open),"data-radix-menu-content":"",dir:x.dir,...y,...m,ref:S,style:{outline:"none",...m.style},onKeyDown:J(m.onKeyDown,j=>{const O=j.target.closest("[data-radix-menu-content]")===j.currentTarget,Z=j.ctrlKey||j.altKey||j.metaKey,re=j.key.length===1;O&&(j.key==="Tab"&&j.preventDefault(),!Z&&re&&V(j.key));const oe=M.current;if(j.target!==oe||!tQ.includes(j.key))return;j.preventDefault();const se=w().filter(z=>!z.disabled).map(z=>z.ref.current);Sw.includes(j.key)&&se.reverse(),wQ(se)}),onBlur:J(e.onBlur,j=>{j.currentTarget.contains(j.target)||(window.clearTimeout(E.current),P.current="")}),onPointerMove:J(e.onPointerMove,tl(j=>{const L=j.target,O=I.current!==j.clientX;if(j.currentTarget.contains(L)&&O){const Z=j.clientX>I.current?"right":"left";T.current=Z,I.current=j.clientX}}))})})})})})})});Aw.displayName=Wt;var pQ="MenuGroup",_g=k.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(ee.div,{role:"group",...r,ref:t})});_g.displayName=pQ;var hQ="MenuLabel",Tw=k.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(ee.div,{...r,ref:t})});Tw.displayName=hQ;var Ec="MenuItem",w4="menu.itemSelect",Du=k.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=k.useRef(null),i=Ml(Ec,e.__scopeMenu),l=Sg(Ec,e.__scopeMenu),s=ge(t,a),c=k.useRef(!1),u=()=>{const d=a.current;if(!n&&d){const f=new CustomEvent(w4,{bubbles:!0,cancelable:!0});d.addEventListener(w4,h=>r==null?void 0:r(h),{once:!0}),mE(d,f),f.defaultPrevented?c.current=!1:i.onClose()}};return p.jsx(Pw,{...o,ref:s,disabled:n,onClick:J(e.onClick,u),onPointerDown:d=>{var f;(f=e.onPointerDown)==null||f.call(e,d),c.current=!0},onPointerUp:J(e.onPointerUp,d=>{var f;c.current||(f=d.currentTarget)==null||f.click()}),onKeyDown:J(e.onKeyDown,d=>{const f=l.searchRef.current!=="";n||f&&d.key===" "||p1.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})});Du.displayName=Ec;var Pw=k.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,i=Sg(Ec,n),l=_w(n),s=k.useRef(null),c=ge(t,s),[u,d]=k.useState(!1),[f,h]=k.useState("");return k.useEffect(()=>{const g=s.current;g&&h((g.textContent??"").trim())},[a.children]),p.jsx(el.ItemSlot,{scope:n,disabled:r,textValue:o??f,children:p.jsx(za,{asChild:!0,...l,focusable:!r,children:p.jsx(ee.div,{role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:c,onPointerMove:J(e.onPointerMove,tl(g=>{r?i.onItemLeave(g):(i.onItemEnter(g),g.defaultPrevented||g.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:J(e.onPointerLeave,tl(g=>i.onItemLeave(g))),onFocus:J(e.onFocus,()=>d(!0)),onBlur:J(e.onBlur,()=>d(!1))})})})}),gQ="MenuCheckboxItem",Rw=k.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return p.jsx(Nw,{scope:e.__scopeMenu,checked:n,children:p.jsx(Du,{role:"menuitemcheckbox","aria-checked":Mc(n)?"mixed":n,...o,ref:t,"data-state":Eg(n),onSelect:J(o.onSelect,()=>r==null?void 0:r(Mc(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Rw.displayName=gQ;var Bw="MenuRadioGroup",[mQ,bQ]=Bo(Bw,{value:void 0,onValueChange:()=>{}}),Iw=k.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,a=$n(r);return p.jsx(mQ,{scope:e.__scopeMenu,value:n,onValueChange:a,children:p.jsx(_g,{...o,ref:t})})});Iw.displayName=Bw;var Ow="MenuRadioItem",Fw=k.forwardRef((e,t)=>{const{value:n,...r}=e,o=bQ(Ow,e.__scopeMenu),a=n===o.value;return p.jsx(Nw,{scope:e.__scopeMenu,checked:a,children:p.jsx(Du,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":Eg(a),onSelect:J(r.onSelect,()=>{var i;return(i=o.onValueChange)==null?void 0:i.call(o,n)},{checkForDefaultPrevented:!1})})})});Fw.displayName=Ow;var $g="MenuItemIndicator",[Nw,vQ]=Bo($g,{checked:!1}),Lw=k.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=vQ($g,n);return p.jsx(pt,{present:r||Mc(a.checked)||a.checked===!0,children:p.jsx(ee.span,{...o,ref:t,"data-state":Eg(a.checked)})})});Lw.displayName=$g;var yQ="MenuSeparator",zw=k.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(ee.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});zw.displayName=yQ;var xQ="MenuArrow",jw=k.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Su(n);return p.jsx(Vc,{...o,...r,ref:t})});jw.displayName=xQ;var CQ="MenuSub",[use,Vw]=Bo(CQ),Ci="MenuSubTrigger",Hw=k.forwardRef((e,t)=>{const n=Io(Ci,e.__scopeMenu),r=Ml(Ci,e.__scopeMenu),o=Vw(Ci,e.__scopeMenu),a=Sg(Ci,e.__scopeMenu),i=k.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:s}=a,c={__scopeMenu:e.__scopeMenu},u=k.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return k.useEffect(()=>u,[u]),k.useEffect(()=>{const d=l.current;return()=>{window.clearTimeout(d),s(null)}},[l,s]),p.jsx(wg,{asChild:!0,...c,children:p.jsx(Pw,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Uw(n.open),...e,ref:Bc(t,o.onTriggerChange),onClick:d=>{var f;(f=e.onClick)==null||f.call(e,d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:J(e.onPointerMove,tl(d=>{a.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!n.open&&!i.current&&(a.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{n.onOpenChange(!0),u()},100))})),onPointerLeave:J(e.onPointerLeave,tl(d=>{var h,g;u();const f=(h=n.content)==null?void 0:h.getBoundingClientRect();if(f){const m=(g=n.content)==null?void 0:g.dataset.side,b=m==="right",x=b?-5:5,y=f[b?"left":"right"],v=f[b?"right":"left"];a.onPointerGraceIntentChange({area:[{x:d.clientX+x,y:d.clientY},{x:y,y:f.top},{x:v,y:f.top},{x:v,y:f.bottom},{x:y,y:f.bottom}],side:m}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(d),d.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:J(e.onKeyDown,d=>{var h;const f=a.searchRef.current!=="";e.disabled||f&&d.key===" "||nQ[r.dir].includes(d.key)&&(n.onOpenChange(!0),(h=n.content)==null||h.focus(),d.preventDefault())})})})});Hw.displayName=Ci;var Ww="MenuSubContent",Kw=k.forwardRef((e,t)=>{const n=Ew(Wt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=Io(Wt,e.__scopeMenu),i=Ml(Wt,e.__scopeMenu),l=Vw(Ww,e.__scopeMenu),s=k.useRef(null),c=ge(t,s);return p.jsx(el.Provider,{scope:e.__scopeMenu,children:p.jsx(pt,{present:r||a.open,children:p.jsx(el.Slot,{scope:e.__scopeMenu,children:p.jsx(Dg,{id:l.contentId,"aria-labelledby":l.triggerId,...o,ref:c,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:u=>{var d;i.isUsingKeyboardRef.current&&((d=s.current)==null||d.focus()),u.preventDefault()},onCloseAutoFocus:u=>u.preventDefault(),onFocusOutside:J(e.onFocusOutside,u=>{u.target!==l.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:J(e.onEscapeKeyDown,u=>{i.onClose(),u.preventDefault()}),onKeyDown:J(e.onKeyDown,u=>{var h;const d=u.currentTarget.contains(u.target),f=rQ[i.dir].includes(u.key);d&&f&&(a.onOpenChange(!1),(h=l.trigger)==null||h.focus(),u.preventDefault())})})})})})});Kw.displayName=Ww;function Uw(e){return e?"open":"closed"}function Mc(e){return e==="indeterminate"}function Eg(e){return Mc(e)?"indeterminate":e?"checked":"unchecked"}function wQ(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function kQ(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function SQ(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let i=kQ(e,Math.max(a,0));o.length===1&&(i=i.filter(c=>c!==n));const s=i.find(c=>c.toLowerCase().startsWith(o.toLowerCase()));return s!==n?s:void 0}function DQ(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const l=t[a].x,s=t[a].y,c=t[i].x,u=t[i].y;s>r!=u>r&&n<(c-l)*(r-s)/(u-s)+l&&(o=!o)}return o}function _Q(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return DQ(n,t)}function tl(e){return t=>t.pointerType==="mouse"?e(t):void 0}var $Q=$w,EQ=wg,MQ=Mw,AQ=Aw,TQ=_g,PQ=Tw,RQ=Du,BQ=Rw,IQ=Iw,OQ=Fw,FQ=Lw,NQ=zw,LQ=jw,zQ=Hw,jQ=Kw,Mg="DropdownMenu",[VQ,dse]=Le(Mg,[Dw]),ht=Dw(),[HQ,Zw]=VQ(Mg),Gw=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:i,modal:l=!0}=e,s=ht(t),c=k.useRef(null),[u=!1,d]=ct({prop:o,defaultProp:a,onChange:i});return p.jsx(HQ,{scope:t,triggerId:Lt(),triggerRef:c,contentId:Lt(),open:u,onOpenChange:d,onOpenToggle:k.useCallback(()=>d(f=>!f),[d]),modal:l,children:p.jsx($Q,{...s,open:u,onOpenChange:d,dir:r,modal:l,children:n})})};Gw.displayName=Mg;var qw="DropdownMenuTrigger",Yw=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=Zw(qw,n),i=ht(n);return p.jsx(EQ,{asChild:!0,...i,children:p.jsx(ee.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:Bc(t,a.triggerRef),onPointerDown:J(e.onPointerDown,l=>{!r&&l.button===0&&l.ctrlKey===!1&&(a.onOpenToggle(),a.open||l.preventDefault())}),onKeyDown:J(e.onKeyDown,l=>{r||(["Enter"," "].includes(l.key)&&a.onOpenToggle(),l.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(l.key)&&l.preventDefault())})})})});Yw.displayName=qw;var WQ="DropdownMenuPortal",Jw=e=>{const{__scopeDropdownMenu:t,...n}=e,r=ht(t);return p.jsx(MQ,{...r,...n})};Jw.displayName=WQ;var Xw="DropdownMenuContent",Qw=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Zw(Xw,n),a=ht(n),i=k.useRef(!1);return p.jsx(AQ,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...r,ref:t,onCloseAutoFocus:J(e.onCloseAutoFocus,l=>{var s;i.current||(s=o.triggerRef.current)==null||s.focus(),i.current=!1,l.preventDefault()}),onInteractOutside:J(e.onInteractOutside,l=>{const s=l.detail.originalEvent,c=s.button===0&&s.ctrlKey===!0,u=s.button===2||c;(!o.modal||u)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Qw.displayName=Xw;var KQ="DropdownMenuGroup",UQ=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return p.jsx(TQ,{...o,...r,ref:t})});UQ.displayName=KQ;var ZQ="DropdownMenuLabel",ek=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return p.jsx(PQ,{...o,...r,ref:t})});ek.displayName=ZQ;var GQ="DropdownMenuItem",tk=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return p.jsx(RQ,{...o,...r,ref:t})});tk.displayName=GQ;var qQ="DropdownMenuCheckboxItem",YQ=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return p.jsx(BQ,{...o,...r,ref:t})});YQ.displayName=qQ;var JQ="DropdownMenuRadioGroup",XQ=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return p.jsx(IQ,{...o,...r,ref:t})});XQ.displayName=JQ;var QQ="DropdownMenuRadioItem",eee=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return p.jsx(OQ,{...o,...r,ref:t})});eee.displayName=QQ;var tee="DropdownMenuItemIndicator",nee=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return p.jsx(FQ,{...o,...r,ref:t})});nee.displayName=tee;var ree="DropdownMenuSeparator",oee=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return p.jsx(NQ,{...o,...r,ref:t})});oee.displayName=ree;var aee="DropdownMenuArrow",iee=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return p.jsx(LQ,{...o,...r,ref:t})});iee.displayName=aee;var lee="DropdownMenuSubTrigger",see=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return p.jsx(zQ,{...o,...r,ref:t})});see.displayName=lee;var cee="DropdownMenuSubContent",uee=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ht(n);return p.jsx(jQ,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});uee.displayName=cee;var dee=Gw,fee=Yw,pee=Jw,hee=Qw,gee=ek,k4=tk;const mee="_content_1wy7l_1",bee="_border_1wy7l_13",vee="_itemIcon_1wy7l_42",yee="_item_1wy7l_42 _variant-small_3isg4_41 _base_3isg4_12",xee="_itemText_1wy7l_85",Cee="_label_1wy7l_99 _variant-small_3isg4_41 _base_3isg4_12",xn={content:mee,border:bee,"content-height-256":"_content-height-256_1wy7l_20","content-height-400":"_content-height-400_1wy7l_25","content-width-128":"_content-width-128_1wy7l_30","content-width-256":"_content-width-256_1wy7l_34","content-width-full-trigger-width":"_content-width-full-trigger-width_1wy7l_38",itemIcon:vee,item:yee,itemText:xee,"item-color-grey":"_item-color-grey_1wy7l_91","item-color-tomato":"_item-color-tomato_1wy7l_95",label:Cee};function Ag(e){const{open:t,onOpenChange:n,modal:r=!1,children:o}=e;return p.jsx(dee,{modal:r,open:t,onOpenChange:n,children:o})}function Tg(e){const t=Xn(),{disabled:n=t==null?void 0:t.disabled,children:r,...o}=e;return p.jsx(fee,{...o,asChild:!0,disabled:n,children:r})}const Pg=C.forwardRef(function(t,n){const{minWidth:r=128,maxHeight:o,asPortal:a=!0,avoidCollisions:i,collisionPadding:l=0,children:s,align:c,side:u,sideOffset:d,border:f=!0,childrenFocusScope:h=!1,...g}=t,m=p.jsx(Ba,{asChild:!0,loop:!0,trapped:!0,children:s}),b=p.jsx(hee,{...g,className:W(xn.content,xn[`content-width-${r}`],o&&xn[`content-height-${o}`],f&&xn.border),sideOffset:d||parseFloat(Se.space[4]),avoidCollisions:i,collisionPadding:l,align:c,side:u,onWheel:x=>x.stopPropagation(),ref:n,children:h?m:s});return a?p.jsx(pee,{children:b}):b}),wee=C.forwardRef(function(t,n){const{children:r,endIcon:o,startIcon:a,disabled:i,color:l="grey",description:s,onMouseOverChange:c,onSelect:u,textValue:d,readOnly:f=!1,renderTooltip:h=w=>w,endAdornment:g,completed:m,...b}=t,x={disabled:i,...b,onSelect:u,textValue:d,onMouseEnter:c&&(()=>c(!0)),onMouseLeave:c&&(()=>c(!1))},y=C.isValidElement(a)?C.cloneElement(a,{className:W(a.props.className,xn.itemIcon)}):null,v=C.isValidElement(o)?C.cloneElement(o,{className:W(o.props.className,xn.itemIcon)}):null;return s?p.jsx(p.Fragment,{children:h(p.jsx(k4,{...x,ref:n,asChild:!0,children:p.jsx(K4,{color:l,description:s,disabled:i,endAdornment:g,renderStartIcon:y?()=>y:void 0,renderEndIcon:v?()=>v:void 0,completed:m,readOnly:f,textVariant:"bold",children:r})}))}):p.jsx(p.Fragment,{children:h(p.jsxs(k4,{...x,ref:n,className:W(xn.item,xn[`item-color-${l}`]),children:[y,p.jsx("span",{className:xn.itemText,children:p.jsx(Q,{component:"span",color:kee[l],children:r})}),v,g??null]}))})});function nk({children:e}){return p.jsx(gee,{className:xn.label,children:p.jsx(Q,{component:"span",children:e})})}const kee={grey:"grey12",tomato:"tomato11"},See="_root_18b8b_1",Dee="_input_18b8b_5",S4={root:See,input:Dee};function _ee(e){const{"aria-label":t,onChange:n,color:r="grey12",variant:o="normal",...a}=e,i=W(S4.input,bt[`variant-${o}`]);return p.jsx("div",{className:S4.root,children:p.jsx("input",{...a,"aria-label":t,className:i,style:{color:Se.color[r]},onChange:l=>n==null?void 0:n(l.currentTarget.value),inputMode:"text"})})}function $ee(e){const{title:t,description:n,errorImageSrc:r,sx:o}=e,a=C.useContext(vo.ErrorBoundaryContext);return p.jsxs(a5,{sx:o,children:[r&&p.jsx(s5,{children:p.jsx("img",{src:r,alt:"Error"})}),p.jsx(i5,{size:"big",children:t}),p.jsx(l5,{children:n}),p.jsx(c5,{children:p.jsx(_e,{onClick:a==null?void 0:a.reset,children:"Try again"})})]})}let D4=()=>!1;class Eee extends C.Component{constructor(n){super(n);Il(this,"registerRequest",(n,r)=>{var i;const o=vo.argsKey(n,r),a=this.state.requests;a.has(n)||a.set(n,new Map),(i=a.get(n))==null||i.set(o,r)});Il(this,"reset",()=>{var n,r;this.state.requests.forEach((o,a)=>{o.forEach(i=>vo.cache.clear(a,i))}),(r=(n=this.props).onReset)==null||r.call(n),this.setState({error:void 0,handleError:void 0,requests:new Map})});Il(this,"renderChildren",()=>{const{children:n,renderError:r=()=>null}=this.props,{error:o,handleError:a}=this.state;return o?a?r(o,this.reset):null:n});this.state={requests:new Map}}static registerGlobalErrorInterceptor(n){D4=n}static getDerivedStateFromError(n){return{error:n}}componentDidCatch(n){const r=!D4(n,this.reset);this.setState({error:n,handleError:r}),setTimeout(()=>{var o,a;return(a=(o=this.props).onError)==null?void 0:a.call(o,n)})}render(){return p.jsx(Mee,{reset:this.reset,registerRequest:this.registerRequest,children:this.renderChildren()})}}function Mee(e){const{children:t,reset:n,registerRequest:r}=e,o=C.useMemo(()=>({reset:n,registerRequest:r}),[n,r]);return p.jsx(vo.ErrorBoundaryContext.Provider,{value:o,children:t})}var Aee="Label",rk=k.forwardRef((e,t)=>p.jsx(ee.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));rk.displayName=Aee;var Tee=rk;const Pee="_root_kv4z5_1",Ree="_selected_kv4z5_13",Bee="_children_kv4z5_19",Iee="_top_kv4z5_23",Oee="_side_kv4z5_27",Fee="_icon_kv4z5_31",Nee="_label_kv4z5_45",Lee="_control_kv4z5_65",zee="_footer_kv4z5_84",jee="_disabled_kv4z5_90",Dn={root:Pee,selected:Ree,children:Bee,top:Iee,side:Oee,icon:Fee,label:Nee,control:Lee,footer:zee,disabled:jee},Vee=C.forwardRef(function(t,n){const{children:r,labelPosition:o="top",onMouseOverChange:a,footer:i,selected:l,...s}=t;return p.jsxs("div",{className:W(Dn.root,l&&Dn.selected),children:[p.jsx("div",{...s,className:W(Dn.children,Dn[o]),ref:n,onMouseEnter:a&&(()=>a(!0)),onMouseLeave:a&&(()=>a(!1)),children:p.jsx(ok.Provider,{value:{labelPosition:o},children:r})}),i]})});function Hee(e){const{name:t,disabled:n}=e;return p.jsx("div",{className:W(Dn.icon,n&&Dn.disabled),children:p.jsx(de,{name:t,size:"small",color:"grey11"})})}function Wee(e){const{children:t,...n}=e,{labelPosition:r}=Zee(),o=r==="top"?"extraSmall":"normal";return p.jsx(Tee,{...n,className:Dn.label,children:p.jsx(Q,{color:"grey11",component:"span",variant:o,children:t})})}function Kee(e){const{children:t,disabled:n}=e;return p.jsx("div",{className:W(Dn.control,n&&Dn.disabled),children:t})}function Uee(e){const{children:t}=e;return p.jsx("div",{className:Dn.footer,children:t})}const ok=C.createContext(void 0);function Zee(){const e=C.useContext(ok);if(!e)throw new Error("FieldContext is mandatory.");return e}const Gee="_fieldSet_1ama6_1",qee="_fieldSetContent_1ama6_17",Yee="_legend_1ama6_33",vs={fieldSet:Gee,fieldSetContent:qee,"border-normal":"_border-normal_1ama6_24","border-selected":"_border-selected_1ama6_28",legend:Yee};function Jee(e){const{selected:t,children:n,legend:r,id:o,name:a,onFocus:i,header:l}=e;return p.jsxs("fieldset",{className:W(vs.fieldSet,vs[`border-${t?"selected":"normal"}`]),id:o,name:a,onFocus:i,children:[p.jsxs("header",{className:vs.legend,children:[p.jsx(Q,{component:"span",variant:"smallBold",children:r}),l]}),p.jsx("div",{className:vs.fieldSetContent,children:n})]})}const Xee="_root_x856h_1",Qee="_dropTarget_x856h_7",ete="_dropzone_x856h_12",tte="_overlay_x856h_19",nte="_overlayContainer_x856h_25",rte="_fadeIn_x856h_1",ii={root:Xee,dropTarget:Qee,dropzone:ete,overlay:tte,overlayContainer:nte,fadeIn:rte},h1={applicationAll:"application/*",imageAll:"image/*",videoAll:"video/*",audioAll:"audio/*",csv:"text/csv",txt:"text/plain"};function _4(e,t){return t==="image"?e.startsWith($4(h1.imageAll)):Object.values(h1).some(n=>e.startsWith($4(n)))}function $4(e){return e.endsWith("/*")?e.slice(0,-1):e}function ote(e){const{onFilesSelected:t,overlay:n,children:r,assetType:o="all"}=e,[a,i]=C.useState(!1);function l(f){return f.dataTransfer.items?o==="all"?!0:[...f.dataTransfer.items].every(g=>_4(g.type,o)):!1}function s(f){f.preventDefault();const h=l(f);i(h)}function c(f){f.preventDefault();const h=l(f);i(h)}function u(f){f.preventDefault(),i(!1)}async function d(f){f.preventDefault();const h=l(f);if(!f.dataTransfer.items||!h)return;const g=[...f.dataTransfer.items].filter(b=>b.kind==="file"&&(o==="all"?!0:_4(b.type,o))),m=(await Promise.all(g.map(b=>b.getAsFile()))).filter(Rc.isDefined);i(!1),t(m)}return p.jsxs("div",{className:W(ii.root,a&&ii.dropTarget),children:[p.jsx("div",{"aria-label":"dropzone",onDragEnter:s,onDragLeave:u,onDragOver:c,onDrop:d,className:ii.dropzone,children:r}),a&&p.jsx("div",{className:ii.overlayContainer,children:p.jsx("div",{className:ii.overlay,children:n})})]})}function ate(e){const{onFilesSelected:t,disabled:n,assetType:r="all",renderButton:o,...a}=e,i=C.useRef(null),l=r==="all"?"*":[h1.imageAll].toString();function s(){var u;(u=i.current)==null||u.click()}function c(u){const d=u.target.files,f=Array.from(d??[]);u.currentTarget.value="",t(f)}return p.jsxs(p.Fragment,{children:[p.jsx("input",{ref:i,type:"file",onChange:c,disabled:n,accept:l,multiple:!0,style:{display:"none"}}),o?o(s):p.jsx(_e,{disabled:n,...a,onClick:s})]})}const ite="_filterField_7g88y_1",lte="_inputContainer_7g88y_23",ste="_labelContainer_7g88y_30",cte="_tagsContainer_7g88y_37",ute="_input_7g88y_23 _variant-normal_3isg4_16 _base_3isg4_12",dte="_footerWrapper_7g88y_60",fte="_footer_7g88y_60",pte="_optionsContainer_7g88y_83",Yt={filterField:ite,"shadow-open":"_shadow-open_7g88y_9","shadow-closed":"_shadow-closed_7g88y_18",inputContainer:lte,labelContainer:ste,tagsContainer:cte,input:ute,footerWrapper:dte,footer:fte,optionsContainer:pte};function hte(e){const{selectedValues:t,onSelectedValuesChange:n,setOpen:r,fieldRef:o,fixedSelectedValues:a}=e,[i,l]=C.useState(""),s=a.size>0;function c(h){return n(h===-1?ln.slice(t,0,t.size-1):ln.filter(t,g=>g.id!==h.id))}function u(){i===""&&c(-1)}C.useEffect(()=>{function h(g){if(s)return;const m=fe.refContainsTarget(o,g.target);r(m),m||l("")}return document.addEventListener("mousedown",h),()=>{document.removeEventListener("mousedown",h)}},[r,o,s]);function d(h){h.code==="Escape"&&(r(!1),l(""))}function f(){return s?"":t.size+a.size===0?"Empty":"Type something..."}return{deleteItemFromValue:c,onBackspace:u,onKeyDown:d,searchText:i,setSearchText:l,isFieldLocked:s,inputPlaceholder:f()}}function gte(e){const{open:t,setOpen:n,label:r,icon:o,selectedValues:a,fixedSelectedValues:i=new Set,onSelectedValuesChange:l,...s}=e,c=C.useRef(null),{deleteItemFromValue:u,onBackspace:d,onKeyDown:f,setSearchText:h,searchText:g,isFieldLocked:m,inputPlaceholder:b}=hte({fieldRef:c,onSelectedValuesChange:l,selectedValues:a,setOpen:n,fixedSelectedValues:i});return p.jsxs("div",{role:"button",className:W(Yt.filterField,Yt[`shadow-${t?"open":"closed"}`]),ref:c,onKeyDown:f,tabIndex:0,children:[p.jsxs("div",{className:Yt.inputContainer,children:[p.jsxs("div",{className:Yt.labelContainer,children:[p.jsx(de,{name:o,size:"medium",color:"grey11"}),p.jsx(Q,{variant:"emphasized",color:"grey11",children:r})]}),p.jsxs("div",{className:Yt.tagsContainer,children:[ln.map(i,x=>p.jsx(_t,{title:x.label,maxWidth:150,size:"medium",selected:!0,icon:"lock"},x.id)),ln.map(a,x=>p.jsx(_t,{title:x.label,color:"purple",maxWidth:150,size:"medium",onClose:()=>u(x),selected:!0},x.id)),p.jsx("input",{className:Yt.input,style:{color:Se.color[t?"grey12":"grey11"],cursor:Se.cursor[m?"notAllowed":"text"]},disabled:m,inputMode:"text",onFocus:()=>n(!0),placeholder:b,onKeyDown:x=>{x.key==="Backspace"&&d()},value:g,onChange:x=>h(x.currentTarget.value)})]})]}),t&&p.jsx("div",{className:Yt.footerWrapper,children:p.jsx(bte,{label:r,onSelectedValuesChange:l,searchText:g,fixedSelectedValues:i,selectedValues:a,...s})})]})}function mte(e,t,n){function r(a){return!ln.some(t,i=>i.id===a.id)}function o(a,i){return a.label.toLowerCase().includes(i.toLowerCase())}return ln.filter(e,a=>r(a)&&o(a,n))}function bte(e){const{label:t,searchText:n,values:r,selectedValues:o,fixedSelectedValues:a=new Set,onSelectedValuesChange:i,mode:l,onErrorRetry:s,multiple:c=!0}=e;function u(d){if(!(!c&&o.size>0))return i(ln.add(o,d))}return l==="loading"?p.jsx(vte,{}):l==="error"?p.jsx(yte,{label:t,onErrorRetry:s}):p.jsxs("div",{className:Yt.footer,children:[p.jsxs(Q,{color:"grey11",variant:"emphasized",children:["Choose ",t]}),p.jsx("div",{className:Yt.optionsContainer,children:ln.map(mte(r,new Set([...o,...a]),n),d=>p.jsx(_t,{title:d.label,onClick:()=>u(d),size:"medium",maxWidth:150},d.id))})]})}function vte(){return p.jsxs("div",{className:Yt.footer,children:[p.jsx(Oi,{height:24,width:80,borderRadius:6}),p.jsx(Oi,{height:24,width:60,borderRadius:6})]})}function yte(e){const{label:t,onErrorRetry:n}=e;return p.jsx("div",{className:Yt.footer,children:p.jsxs($e,{justifyContent:"space-between",children:[p.jsxs($e,{gap:8,children:[p.jsx(de,{name:"alert",size:"large",color:"tomato11"}),p.jsxs(Q,{color:"tomato11",children:["Failed to load ",t]})]}),n&&p.jsx(_e,{endIcon:"refresh",color:"tomato",onClick:n,invisible:!0,children:"Retry"})]})})}const xte="_root_1lytw_1",Cte={root:xte};function wte(e){const{sx:t}=e;return p.jsx("div",{className:Cte.root,style:t})}function kte(e){const{children:t,itemCount:n,draggable:r}=e,[o,a]=C.useState(),i=fe.useStableCallback((c,u)=>{u?a(c):o===c&&a(void 0)}),l=fe.useStableCallback(e.onAddItem),s=C.useMemo(()=>({itemCount:n,draggable:r,activeItem:o,onActiveItemChange:i,onAddItem:l}),[n,r,o,i,l]);return p.jsx(ak.Provider,{value:s,children:t})}const ak=C.createContext(void 0);function Ste(){const e=C.useContext(ak);if(!e)throw new Error("useGroup must be used within GroupProvider");return e}const Dte="_group_6hhnw_1",_te="_header_6hhnw_19",$te="_footer_6hhnw_34",ys={group:Dte,"border-default":"_border-default_6hhnw_11","border-dragging":"_border-dragging_6hhnw_14",header:_te,footer:$te};function Ete(e){const{title:t,items:n,getItemKey:r,addItemButtonTitle:o,maxItems:a=Number.MAX_SAFE_INTEGER,children:i,dnd:l,onAddItem:s}=e,[c,u]=C.useState(!1),d=n.length<a;return p.jsx(kte,{itemCount:n.length,draggable:!!(l!=null&&l.onReorder),onAddItem:s,children:p.jsxs("article",{className:W(ys.group,ys[`border-${c?"dragging":"default"}`]),children:[p.jsx("header",{className:ys.header,children:p.jsxs(Q,{component:"span",variant:"smallBold",children:[t," ",p.jsxs(Q,{variant:"normal",color:"grey11",children:["• ",n.length]})]})}),p.jsx(P1,{ariaLabel:"Group",items:n,getItemKey:r,dnd:{...l,onDragChange:u},children:i}),p.jsx("footer",{className:ys.footer,children:d&&p.jsx(_e,{size:"large",color:"grey",startIcon:"add",onClick:()=>s==null?void 0:s(n.length),children:o})})]})})}const Mte="_hairlineButton_1guwr_1",Ate="_line_1guwr_36",Tte="_firstLine_1guwr_44",Pte="_secondLine_1guwr_49",Rte="_icon_1guwr_63",bn={hairlineButton:Mte,"mode-normal":"_mode-normal_1guwr_28","mode-drop":"_mode-drop_1guwr_32",line:Ate,firstLine:Tte,secondLine:Pte,"line-mode-normal":"_line-mode-normal_1guwr_54","line-mode-drop":"_line-mode-drop_1guwr_58",icon:Rte,"icon-mode-normal":"_icon-mode-normal_1guwr_75","icon-mode-drop":"_icon-mode-drop_1guwr_81"},ik=C.forwardRef(function(t,n){const{icon:r,dropMode:o,disabled:a=!1,sx:i,...l}=t,s=o?"drop":"normal";return p.jsxs("button",{...l,className:W(bn.hairlineButton,bn[`mode-${s}`]),style:i,disabled:a,ref:n,children:[p.jsx("div",{className:W(bn.line,bn.firstLine,bn[`line-mode-${s}`])}),p.jsx("div",{className:W(bn.icon,bn[`icon-mode-${s}`]),children:p.jsx(de,{name:r,size:"medium",color:"grey2"})}),p.jsx("div",{className:W(bn.line,bn.secondLine,bn[`line-mode-${s}`])})]})}),Bte="_groupItem_hdbn6_1",Ite="_header_hdbn6_9",Ote="_headerIcon_hdbn6_22",Fte="_addButton_hdbn6_29",Nte="_content_hdbn6_35",li={groupItem:Bte,header:Ite,headerIcon:Ote,addButton:Fte,content:Nte};function Lte(e){const{index:t,title:n,onMove:r,onDelete:o,children:a}=e,{itemCount:i,draggable:l,activeItem:s,onActiveItemChange:c,onAddItem:u}=Ste(),d=i>1,f=s!==void 0&&(t===s||t===s+1);function h(){c(t,!0)}function g(){c(t,!1)}function m(b){b.currentTarget.contains(b.relatedTarget)||g()}return p.jsxs("article",{className:li.groupItem,onMouseEnter:h,onFocus:h,onMouseLeave:g,onBlur:m,children:[p.jsxs("header",{className:li.header,draggable:l&&d,children:[p.jsx(de,{className:li.headerIcon,name:"viewDay"}),p.jsx(Q,{color:"grey11",variant:"small",component:"span",children:n}),p.jsxs($r,{sx:{marginLeft:"auto"},size:"small",color:"grey",children:[d&&p.jsxs($r,{density:"compact",children:[p.jsx(_e,{disabled:t===0,startIcon:"arrowUpward",onClick:()=>r==null?void 0:r({index:t,offset:-1})}),p.jsx(_e,{disabled:t===i-1,startIcon:"arrowDownward",onClick:()=>r==null?void 0:r({index:t,offset:1})})]}),p.jsx(_e,{startIcon:"delete",onClick:()=>o==null?void 0:o(t)}),d&&p.jsx(de,{name:"dragIndicator",color:"grey8",size:"small",sx:{alignSelf:"center"}})]}),p.jsx("div",{className:li.addButton,children:p.jsx(ka,{enterDuration:150,exitDuration:100,children:f&&p.jsx(ik,{icon:"add",onClick:()=>u==null?void 0:u(t)})})})]}),p.jsx("section",{className:li.content,children:a})]})}const zte="_root_zp2ei_1",jte="_disabled_zp2ei_13",Vte="_selected_zp2ei_38",Of={root:zte,disabled:jte,selected:Vte};function Hte(e){const{text:t,selected:n,disabled:r=!1,renderLink:o}=e;return p.jsx("div",{className:W(Of.root,r&&Of.disabled,n&&Of.selected),children:o(p.jsx(Q,{component:"span",variant:"emphasized",noSelect:!0,color:"grey11",children:t}))})}const Wte="_kbd_i5ym5_1",Kte="_kbdItem_i5ym5_6",E4={kbd:Wte,kbdItem:Kte};function Ute(e){const{value:t}=e,n=(typeof t=="string"?[t]:t).map(r=>r==="mod"?Zte():r.toUpperCase());return p.jsx("span",{className:E4.kbd,children:n.map(r=>p.jsx("kbd",{className:E4.kbdItem,children:p.jsx(Q,{color:"grey11",children:r})},r))})}function Zte(){return navigator.userAgent.includes("Mac")?"⌘":"Ctrl"}function Gte(e){const{children:t,heightEstimate:n=200,keepLoaded:r=!1,loadWhenSearching:o=!1,gap:a}=e,i=C.useRef(null),{show:l,setShow:s}=qte({ref:i,keepLoaded:r});return X4("mod+F",()=>{o&&s(!0)}),Yte({ref:i,show:l}),p.jsx($e,{ref:i,flexDirection:"column",height:l?"auto":n,gap:a,children:l&&t})}function qte(e){const{ref:t,keepLoaded:n}=e,r=fe.useInView(t,{once:n}),[o,a]=C.useState(r);return C.useLayoutEffect(()=>{if(r)return a(!0);if(!t.current||n)return;let i;const l=an.getScrollableAncestor(t.current);let s=l.scrollTop;function c(){i=window.setTimeout(()=>{if(t.current&&!an.isElementInView(t.current)){if(s==l.scrollTop)return a(!1);s=l.scrollTop,c()}},2e3)}return c(),()=>clearTimeout(i)},[r,t,n]),{show:o,setShow:a}}function Yte(e){const{ref:t,show:n}=e,[r,o]=C.useState({previousHeight:0});fe.useOnChange(n,()=>{var i;const a=(i=t.current)==null?void 0:i.clientHeight;a&&o({previousHeight:a})}),C.useLayoutEffect(()=>{if(r.previousHeight===0||!t.current)return;const a=an.getScrollableAncestor(t.current);if(!a||an.getOffsetTopRelativeTo(t.current,a)>=a.scrollTop)return;const s=t.current.clientHeight-r.previousHeight;a.scrollTop+=s},[r,t])}const Jte="_line_uonvi_1",Xte="_grey_uonvi_14",Qte="_green_uonvi_18",ene="_amber_uonvi_22",tne="_purple_uonvi_26",Ff={line:Jte,"thickness-2":"_thickness-2_uonvi_7","thickness-4":"_thickness-4_uonvi_10",grey:Xte,green:Qte,amber:ene,purple:tne};function nne(e){const{color:t,role:n="status",thickness:r=4,sx:o}=e;return p.jsx("div",{role:n,className:W(Ff.line,Ff[t],Ff[`thickness-${r}`]),style:o})}const rne="_list_ft5vt_1",one="_item_ft5vt_6",g1={list:rne,item:one,"density-regular":"_density-regular_ft5vt_18","density-compact":"_density-compact_ft5vt_22"};function ane(e){const{children:t,density:n="regular",sx:r}=e;return p.jsx("ul",{className:W(g1.list,g1[`density-${n}`]),style:r,children:t})}function ine(e){const{children:t}=e;return p.jsx("li",{className:g1.item,children:p.jsx(Q,{component:"span",children:t})})}const lne="data:image/svg+xml,%3csvg%20width='48'%20height='60'%20viewBox='0%200%2048%2060'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.5%208C0.5%203.85786%203.85786%200.5%208%200.5H33.5931C34.5214%200.5%2035.4116%200.868749%2036.068%201.52513L46.4749%2011.932C47.1313%2012.5884%2047.5%2013.4786%2047.5%2014.4069V52C47.5%2056.1421%2044.1421%2059.5%2040%2059.5H8C3.85787%2059.5%200.5%2056.1421%200.5%2052V8Z'%20fill='%23F5F2FF'%20stroke='%23AA99EC'/%3e%3cpath%20d='M47.5%2012.913L47.5%2013L40.5%2013C37.4624%2013%2035%2010.5376%2035%207.5L35%200.500001L35.087%200.500001L47.5%2012.913Z'%20fill='%23D7CFF9'%20stroke='%23AA99EC'/%3e%3cpath%20d='M21%2039C19.9%2039%2018.9583%2038.6083%2018.175%2037.825C17.3917%2037.0417%2017%2036.1%2017%2035C17%2033.9%2017.3917%2032.9583%2018.175%2032.175C18.9583%2031.3917%2019.9%2031%2021%2031C21.3833%2031%2021.7375%2031.0458%2022.0625%2031.1375C22.3875%2031.2292%2022.7%2031.3667%2023%2031.55V21H29V25H25V35C25%2036.1%2024.6083%2037.0417%2023.825%2037.825C23.0417%2038.6083%2022.1%2039%2021%2039Z'%20fill='%235746AF'/%3e%3c/svg%3e",sne="data:image/svg+xml,%3csvg%20width='48'%20height='60'%20viewBox='0%200%2048%2060'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.5%208C0.5%203.85786%203.85786%200.5%208%200.5H33.5931C34.5214%200.5%2035.4116%200.868749%2036.068%201.52513L46.4749%2011.932C47.1313%2012.5884%2047.5%2013.4786%2047.5%2014.4069V52C47.5%2056.1421%2044.1421%2059.5%2040%2059.5H8C3.85787%2059.5%200.5%2056.1421%200.5%2052V8Z'%20fill='%23F5F2FF'%20stroke='%23AA99EC'/%3e%3cpath%20d='M47.5%2012.913L47.5%2013L40.5%2013C37.4624%2013%2035%2010.5376%2035%207.5L35%200.500001L35.087%200.500001L47.5%2012.913Z'%20fill='%23D7CFF9'%20stroke='%23AA99EC'/%3e%3cpath%20d='M30%2033.75C30%2035.4833%2029.3917%2036.9583%2028.175%2038.175C26.9583%2039.3917%2025.4833%2040%2023.75%2040C22.0167%2040%2020.5417%2039.3917%2019.325%2038.175C18.1083%2036.9583%2017.5%2035.4833%2017.5%2033.75V24.5C17.5%2023.25%2017.9375%2022.1875%2018.8125%2021.3125C19.6875%2020.4375%2020.75%2020%2022%2020C23.25%2020%2024.3125%2020.4375%2025.1875%2021.3125C26.0625%2022.1875%2026.5%2023.25%2026.5%2024.5V33.25C26.5%2034.0167%2026.2333%2034.6667%2025.7%2035.2C25.1667%2035.7333%2024.5167%2036%2023.75%2036C22.9833%2036%2022.3333%2035.7333%2021.8%2035.2C21.2667%2034.6667%2021%2034.0167%2021%2033.25V24H23V33.25C23%2033.4667%2023.0708%2033.6458%2023.2125%2033.7875C23.3542%2033.9292%2023.5333%2034%2023.75%2034C23.9667%2034%2024.1458%2033.9292%2024.2875%2033.7875C24.4292%2033.6458%2024.5%2033.4667%2024.5%2033.25V24.5C24.4833%2023.8%2024.2375%2023.2083%2023.7625%2022.725C23.2875%2022.2417%2022.7%2022%2022%2022C21.3%2022%2020.7083%2022.2417%2020.225%2022.725C19.7417%2023.2083%2019.5%2023.8%2019.5%2024.5V33.75C19.4833%2034.9333%2019.8917%2035.9375%2020.725%2036.7625C21.5583%2037.5875%2022.5667%2038%2023.75%2038C24.9167%2038%2025.9083%2037.5875%2026.725%2036.7625C27.5417%2035.9375%2027.9667%2034.9333%2028%2033.75V24H30V33.75Z'%20fill='%235746AF'/%3e%3c/svg%3e",cne="data:image/svg+xml,%3csvg%20width='48'%20height='60'%20viewBox='0%200%2048%2060'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.5%208C0.5%203.85786%203.85786%200.5%208%200.5H33.5931C34.5214%200.5%2035.4116%200.868749%2036.068%201.52513L46.4749%2011.932C47.1313%2012.5884%2047.5%2013.4786%2047.5%2014.4069V52C47.5%2056.1421%2044.1421%2059.5%2040%2059.5H8C3.85787%2059.5%200.5%2056.1421%200.5%2052V8Z'%20fill='%23F5F2FF'%20stroke='%23AA99EC'/%3e%3cpath%20d='M16%2022L18%2026H21L19%2022H21L23%2026H26L24%2022H26L28%2026H31L29%2022H32C32.55%2022%2033.0208%2022.1958%2033.4125%2022.5875C33.8042%2022.9792%2034%2023.45%2034%2024V36C34%2036.55%2033.8042%2037.0208%2033.4125%2037.4125C33.0208%2037.8042%2032.55%2038%2032%2038H16C15.45%2038%2014.9792%2037.8042%2014.5875%2037.4125C14.1958%2037.0208%2014%2036.55%2014%2036V24C14%2023.45%2014.1958%2022.9792%2014.5875%2022.5875C14.9792%2022.1958%2015.45%2022%2016%2022ZM16%2028V36H32V28H16Z'%20fill='%235746AF'/%3e%3cpath%20d='M47.5%2012.913L47.5%2013L40.5%2013C37.4624%2013%2035%2010.5376%2035%207.5L35%200.500001L35.087%200.500001L47.5%2012.913Z'%20fill='%23D7CFF9'%20stroke='%23AA99EC'/%3e%3c/svg%3e",une="_overflowContainer_1fq3x_1",dne="_overflowItem_1fq3x_8",fne="_invisibleItemContainer_1fq3x_18",pne="_invisibleAdornmentContainer_1fq3x_26";const lk=C.createContext({numberOfVisibleItems:0});function sk(e){const{children:t,gap:n=8}=e,{numberOfVisibleItems:r,invisibleItemsContainerRef:o,adornmentsContainerRef:a,items:i,adornments:l}=hne(t,n),s=r<i.length,c=i.slice(0,r),u=C.useMemo(()=>({numberOfVisibleItems:r}),[r]);return p.jsx("div",{style:{"--OverflowContainer-gap":Se.space[n]},className:une,children:p.jsxs(lk.Provider,{value:u,children:[p.jsx("div",{ref:o,"aria-hidden":!0,className:fne,children:i}),p.jsx("div",{ref:a,"aria-hidden":!0,className:pne,children:l}),p.jsxs($e,{overflow:"hidden",width:"100%",children:[c,s&&l]})]})})}function Rg(e){const{children:t}=e;return p.jsx("div",{className:dne,children:t})}function Bg(e){const{adornment:t}=e,{numberOfVisibleItems:n}=C.useContext(lk);return p.jsx($e,{flexShrink:0,children:t({numberOfVisibleItems:n})})}function hne(e,t){const n=C.Children.toArray(e),r=n.filter(u=>fe.isComponentOfType(u,Rg)),o=n.filter(u=>fe.isComponentOfType(u,Bg)),a=C.useRef(null),i=C.useRef(null),[l,s]=C.useState(r.length),c=fe.useStableCallback(()=>{const u=a.current;if(!u)throw new Error("invisible items container ref not assigned");const d=i.current;if(!d)throw new Error("adornment container ref not assigned");let f=u.clientWidth;const h=Array.from(u.children).map(b=>b.clientWidth),g=d.clientWidth;let m=0;for(const[b,x]of h.entries()){if(f-=x,m=b+1,f>=0&&b===h.length-1)break;if(f<=0){for(g>0?f-=g:b!==h.length-1&&(f+=t);f<0&&m!==0;)f+=h[m-1]||0,m--;break}}l!==m&&s(m)});return C.useLayoutEffect(()=>{const u=a.current;if(!u)throw new Error("invisible items container ref not assigned");const d=new ResizeObserver(c);return d.observe(u),()=>{d.unobserve(u),d.disconnect()}},[c]),C.useLayoutEffect(c,[C.Children.count(e),c]),{numberOfVisibleItems:l,items:r,adornments:o,invisibleItemsContainerRef:a,adornmentsContainerRef:i}}const gne="_root_wwckm_1",mne="_indicator_wwckm_7",bne="_slowTransition_wwckm_14",vne="_progress_wwckm_20",yne="_collapsed_wwckm_35",xne="_large_wwckm_56",Jo={root:gne,indicator:mne,slowTransition:bne,progress:vne,collapsed:yne,large:xne};function ck(e){const{value:t,max:n=100,getValueLabel:r,displayLabel:o=!1,color:a="green9",backgroundColor:i="grey4",labelColor:l="grey11",height:s="normal",transition:c="fast",sx:u}=e;return p.jsxs("div",{className:Jo.root,style:u,children:[p.jsx(ab,{className:W(Jo.progress,{[Jo.collapsed]:s==="collapsed",[Jo.large]:s==="large"}),style:{backgroundColor:Se.color[i]},value:t,max:n,getValueLabel:r,children:p.jsx(ib,{className:W(Jo.indicator,{[Jo.slowTransition]:c==="slow"}),style:{transform:`translateX(-${100-t/n*100}%)`,backgroundColor:s!=="collapsed"?Se.color[a]:void 0}})}),o&&r&&p.jsx(Q,{variant:"small",color:l,children:r(t,n)})]})}const Cne="_root_1sacx_1",wne="_uploadStatusWrapper_1sacx_28",kne="_checkboxWrapper_1sacx_36",Sne="_textContainer_1sacx_55",Dne="_selected_1sacx_59",Ws={root:Cne,uploadStatusWrapper:wne,checkboxWrapper:kne,textContainer:Sne,selected:Dne},Nf=186;function _ne(e){const{["aria-label"]:t,url:n,filename:r,filenameHighlight:o,selected:a=!1,loading:i=!1,status:l="idle",extension:s,tags:c,onAddTag:u,width:d,height:f,size:h,kind:g,alt:m,onCheckedChange:b,onCardClick:x,onAddTagClick:y}=e;function v(){return g!=="image"&&h?nD.formatBytes(h):d&&f?`${d}×${f}`:""}function w($){i||x==null||x($)}function D($){($.code==="Enter"||$.code==="Space")&&($.preventDefault(),w($))}const _=o??r,{value:M,color:S,height:E,transition:P}=fk(l);return p.jsxs($e,{"aria-label":t,children:[p.jsxs("div",{role:"button",tabIndex:0,onKeyDown:D,onClick:w,className:W(Ws.root,a&&Ws.selected),children:[p.jsx($e,{flexDirection:"column",width:"100%",children:p.jsx($ne,{extension:s,url:n,filename:r,loading:i,kind:g,alt:m})}),p.jsxs($e,{flexDirection:"column",width:"100%",alignItems:"flex-start",opacity:i?.3:1,children:[p.jsx(A8,{content:_,contentVersion:_,decorations:{em:"highlight",p:"emphasized"},readOnly:!0}),p.jsx(Q,{variant:"small",color:"grey11",sx:{height:16},children:v()}),p.jsx("div",{className:Ws.uploadStatusWrapper,children:p.jsx(ck,{value:M,color:S,height:E,transition:P})}),p.jsxs($e,{width:"100%",alignItems:"center",gap:8,children:[p.jsx(Mne,{extension:s}),y&&!(c!=null&&c.length)&&p.jsx(_t,{title:"Add a tag",color:"purple",size:"medium",icon:"add",onClick:$=>{$==null||$.stopPropagation(),!(i||l==="error"||l==="uploading")&&y()}}),p.jsx(Ene,{tags:c,onAddTag:u})]})]})]}),p.jsx(Ane,{checked:a,onCheckedChange:b,disabled:i})]})}function $ne(e){const{url:t,filename:n,loading:r,kind:o,alt:a}=e,i=dk(o),l=r?.3:1;if(i)return p.jsx($e,{width:"100%",height:Nf,backgroundColor:"purple2",justifyContent:"center",alignItems:"center",opacity:l,children:p.jsx(uk,{kind:o,filename:n})});const s=new URL(t);return s.searchParams.set("h",Nf.toString()),s.searchParams.set("dpr",Math.max(1,Math.min(window.devicePixelRatio,3)).toString()),p.jsx(Y1,{children:p.jsx($e,{flexDirection:"column",alignItems:"center",justifyContent:"center",position:"relative",height:Nf,width:"100%",opacity:l,children:p.jsx(Uc,{src:s.toString(),alt:a||n,sizing:"contain"})})})}function uk(e){const{kind:t,filename:n}=e,r=dk(t);return p.jsx("img",{src:r,alt:n})}function dk(e){if(!(e!=null&&e.startsWith("image")))return e!=null&&e.startsWith("audio")?lne:e!=null&&e.startsWith("video")?cne:sne}function Ene(e){const{tags:t,onAddTag:n}=e;function r(i){i==null||i.stopPropagation(),n==null||n()}const o=15,a=!t||t.length===0;return!n&&a?null:a?p.jsx(_t,{title:"Add a tag +",color:"purple",onClick:r}):p.jsxs(sk,{children:[t.slice(0,o).map(({name:i,id:l})=>p.jsx(Rg,{children:p.jsx(_t,{title:i,color:"purple",size:"medium"})},l)),p.jsx(Bg,{adornment:({numberOfVisibleItems:i})=>p.jsx(_t,{title:`+${t.length-i}`,color:"purple",size:"medium"})})]})}function Mne(e){const{extension:t}=e;return t?p.jsx(_t,{size:"medium",title:(t==null?void 0:t.toUpperCase())??"",selected:!0}):null}function Ane(e){const{checked:t,disabled:n,onCheckedChange:r}=e;function o(i){n||r==null||r(!t,i)}function a(i){(i.code==="Enter"||i.code==="Space")&&(i.preventDefault(),o(i))}return p.jsx(yl,{content:t?"Unselect":"Select",delayDuration:500,children:p.jsx("div",{role:"presentation",className:Ws.checkboxWrapper,onClick:o,onKeyDown:a,children:p.jsx(m5,{onCheckedChange:r,checked:t,onClick:i=>i.stopPropagation(),disabled:n})})})}function fk(e){switch(e){case"idle":return{value:0,height:"collapsed",color:"grey4"};case"uploading":return{value:90,transition:"slow",color:"purple9"};case"success":return{value:100,height:"collapsed",color:"purple9"};case"error":return{value:100,color:"tomato11"}}}function Tne(e){const{max:t,min:n,onValueChange:r,value:o,...a}=e,[i,l]=C.useState(),s=String(i??o??"");function c(d){Bne(d)&&l(d)}function u(){if(i===void 0)return;if(l(void 0),i==="")return r==null?void 0:r(void 0);const d=Number(i.replace(",","."));if(Number.isNaN(d))return;const f=N4.clamp(d,{min:n,max:t});f!==o&&(r==null||r(f))}return p.jsx(xl,{...a,endAdornment:p.jsx(Pne,{min:n,max:t}),inputMode:"decimal",onBlur:u,onValueChange:c,value:s})}function Pne(e){const{min:t,max:n}=e;if(t===void 0&&n===void 0)return null;const r=[t!==void 0?`Min: ${t}`:"",n!==void 0?`Max: ${n}`:""].filter(Rc.isDefined).join(" ");return p.jsx(_t,{title:r,maxWidth:150})}const Rne=/^[-+]?[0-9]*[.,]?[0-9]*$/;function Bne(e){return Rne.test(e)}function Ine(e){return p.jsx(_A,{...e})}const One="_radioItem_1hyjm_1",Fne="_radioBigCard_wlj7j_3",Nne="_iconContainer_wlj7j_32",Lne="_texts_wlj7j_46",zne="_title_wlj7j_52",xs={radioItem:One,radioBigCard:Fne,iconContainer:Nne,texts:Lne,title:zne},jne="_root_inbrr_1",Vne={root:jne};function Hne(e){const{values:t,selectedValue:n,disabled:r=!1,evenItemSize:o=!1,sx:a,renderItem:i,onChange:l}=e;return p.jsx(ww,{className:Vne.root,style:a,disabled:r,value:n,onValueChange:l,children:t.map(s=>p.jsx(pk.Provider,{value:{value:s,isSelected:s===n,evenItemSize:o},children:i(s)},s))})}const pk=C.createContext(void 0);function hk(){const e=C.useContext(pk);if(!e)throw new Error("useRadioItem must be used within a RadioGroup");return e}const Wne="_radioItem_1hyjm_1",Kne="_evenSize_1hyjm_5",M4={radioItem:Wne,evenSize:Kne};function Ig(e){const{disabled:t,children:n}=e,{value:r,evenItemSize:o}=hk();return p.jsx(kw,{value:r,disabled:t,className:W(M4.radioItem,o&&M4.evenSize),children:n})}function Une(e){const{icon:t,title:n,badge:r,description:o,disabled:a=!1}=e,{isSelected:i}=hk();return p.jsx(Ig,{disabled:a,children:p.jsxs("div",{className:xs.radioBigCard,children:[p.jsx("div",{className:xs.iconContainer,children:p.jsx(de,{name:t,size:"large",color:i?"purple9":"grey9"})}),p.jsxs("div",{className:xs.texts,children:[p.jsxs("div",{className:xs.title,children:[p.jsx(Q,{variant:"h4",color:i?"purple12":"grey12",children:n}),r&&p.jsx(_t,{size:"medium",color:"green",icon:r.icon,title:r.title})]}),p.jsx(Q,{variant:"normal",color:i?"purple12":"grey11",children:o})]})]})})}const Zne="_radioItem_1hyjm_1",Gne="_root_3e6j3_3",qne="_root_194ix_4",Yne="_circle_194ix_18",Jne="_indicator_194ix_52",Lf={radioItem:Zne,radioCard:Gne,root:qne,circle:Yne,indicator:Jne};function gk(e){const{label:t,disabled:n=!1,decorative:r=!1}=e;function o(a){return r?a:p.jsx(Ig,{disabled:n,children:a})}return o(p.jsxs("div",{className:Lf.root,children:[p.jsx("div",{className:Lf.circle,children:p.jsx(NX,{className:Lf.indicator})}),t&&p.jsx(Q,{children:t})]}))}const Xne="_radioItem_1hyjm_1",Qne="_root_3e6j3_3",ere={radioItem:Xne,root:Qne};function tre(e){const{title:t,disabled:n=!1}=e;return p.jsx(Ig,{disabled:n,children:p.jsxs("div",{className:ere.root,children:[p.jsx(gk,{decorative:!0}),p.jsx(Q,{variant:"h4",children:t})]})})}const nre="_root_e1s96_1",rre="_horizontal_e1s96_33",ore="_spacing_e1s96_37",are="_vertical_e1s96_43",ire="_content_e1s96_54",lre="_gradient_e1s96_66",gr={root:nre,horizontal:rre,spacing:ore,vertical:are,content:ire,gradient:lre},Cs=Se.size.scrollbar;function sre(e){const t=e==="vertical";return{icon:{start:t?"expandLess":"chevronLeft",end:t?"expandMore":"chevronRight"},placement:{start:{top:0,left:0,right:t?Cs:void 0,bottom:t?void 0:Cs},end:{bottom:t?0:Cs,right:t?Cs:0,top:t?void 0:0,left:t?0:void 0}},clientSize:t?"clientHeight":"clientWidth",scrollSize:t?"scrollHeight":"scrollWidth",scrollPosition:t?"scrollTop":"scrollLeft"}}function cre(e){const{children:t,scrollAreaRef:n,direction:r="vertical"}=e,{clientSize:o,scrollPosition:a,scrollSize:i,icon:l,placement:s}=sre(r),[c,u]=C.useState(!1),[d,f]=C.useState(!1),h=C.useRef(!1);function g(y){h.current=y}C.useEffect(()=>{if(!n.current)return;const y=n.current,v=y[i]>y[o],w=y[a]>=y[i]-y[o];f(v&&!w);const D=y[a]>0;u(D)},[n,t,o,a,i]);function m(y){h.current&&(b(y),requestAnimationFrame(()=>m(y)))}function b(y){if(!n.current)return;const v=n.current,w=2;switch(y){case"start":v[a]-=w;break;case"end":v[a]+=w;break}}function x(y){const v=y.currentTarget.children[0];if(!v)return;const w=v[a],D=w>0,_=w>=v[i]-v[o];u(D),f(!_),(!D||_)&&g(!1)}return p.jsxs($e,{overflow:"hidden",position:"relative",width:"100%",flexDirection:r==="vertical"?"row":"column",children:[p.jsx("div",{onScrollCapture:x,style:{width:"100%",overflowX:"auto"},children:t}),p.jsx(ka,{animation:{name:"fade"},children:c&&p.jsx($e,{position:"absolute",backgroundColor:"grey2",alignItems:"center",...s.start,children:p.jsx("div",{className:gr.gradient,children:p.jsx(rt,{icon:l.start,onMouseDown:()=>{g(!0),m("start")},onMouseUp:()=>g(!1)})})})}),p.jsx(ka,{animation:{name:"fade"},children:d&&p.jsx($e,{position:"absolute",backgroundColor:"grey2",alignItems:"center",...s.end,children:p.jsx("div",{className:gr.gradient,children:p.jsx(rt,{icon:l.end,onMouseDown:()=>{g(!0),m("end")},onMouseUp:()=>g(!1)})})})})]})}const mk=C.forwardRef(function(t,n){const{["aria-label"]:r,children:o,direction:a="vertical",onScrollToBottom:i,controls:l=!1,threshold:s,className:c,style:u}=t,[d,f]=C.useState(!1),h=C.useRef(null),{width:g,height:m}=ure();function b(y){if(!i)return;const v=an.isScrolledToBottom(y.currentTarget,s);if(d!==v)return v&&i(),f(v)}const x=p.jsx("div",{"aria-label":r,ref:fe.composeRefs(n,h),onScroll:b,className:W(gr.root,gr[a],(g===0||m===0)&&gr.spacing,c),children:p.jsx("div",{className:W(gr.content,gr[a]),style:u,children:o})});return l?p.jsx(cre,{scrollAreaRef:h,direction:a,children:x}):x});function ure(){var l;const e=C.useRef(!1),t=C.useRef(0),n=C.useRef(0);if(e.current)return{width:t.current,height:n.current};const r=document.createElement("div");r.classList.add(gr.root),r.style.visibility="hidden",r.style.overflow="scroll",document.body.appendChild(r);const o=document.createElement("div");r.appendChild(o);const a=r.offsetWidth-o.offsetWidth,i=r.offsetHeight-o.offsetHeight;return(l=r.parentNode)==null||l.removeChild(r),e.current=!0,t.current=a,n.current=i,{width:a,height:i}}function Ac(e,[t,n]){return Math.min(n,Math.max(t,e))}var dre=[" ","Enter","ArrowUp","ArrowDown"],fre=[" ","Enter"],Al="Select",[_u,$u,pre]=wu(Al),[ja,fse]=Le(Al,[pre,Ar]),Eu=Ar(),[hre,Lr]=ja(Al),[gre,mre]=ja(Al),bk=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:a,value:i,defaultValue:l,onValueChange:s,dir:c,name:u,autoComplete:d,disabled:f,required:h}=e,g=Eu(t),[m,b]=k.useState(null),[x,y]=k.useState(null),[v,w]=k.useState(!1),D=Nr(c),[_=!1,M]=ct({prop:r,defaultProp:o,onChange:a}),[S,E]=ct({prop:i,defaultProp:l,onChange:s}),P=k.useRef(null),$=m?!!m.closest("form"):!0,[R,T]=k.useState(new Set),I=Array.from(R).map(N=>N.props.value).join(";");return p.jsx(zc,{...g,children:p.jsxs(hre,{required:h,scope:t,trigger:m,onTriggerChange:b,valueNode:x,onValueNodeChange:y,valueNodeHasChildren:v,onValueNodeHasChildrenChange:w,contentId:Lt(),value:S,onValueChange:E,open:_,onOpenChange:M,dir:D,triggerPointerDownPosRef:P,disabled:f,children:[p.jsx(_u.Provider,{scope:t,children:p.jsx(gre,{scope:e.__scopeSelect,onNativeOptionAdd:k.useCallback(N=>{T(B=>new Set(B).add(N))},[]),onNativeOptionRemove:k.useCallback(N=>{T(B=>{const V=new Set(B);return V.delete(N),V})},[]),children:n})}),$?p.jsxs(zk,{"aria-hidden":!0,required:h,tabIndex:-1,name:u,autoComplete:d,value:S,onChange:N=>E(N.target.value),disabled:f,children:[S===void 0?p.jsx("option",{value:""}):null,Array.from(R)]},I):null]})})};bk.displayName=Al;var vk="SelectTrigger",yk=k.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=Eu(n),i=Lr(vk,n),l=i.disabled||r,s=ge(t,i.onTriggerChange),c=$u(n),[u,d,f]=jk(g=>{const m=c().filter(y=>!y.disabled),b=m.find(y=>y.value===i.value),x=Vk(m,g,b);x!==void 0&&i.onValueChange(x.value)}),h=()=>{l||(i.onOpenChange(!0),f())};return p.jsx(ll,{asChild:!0,...a,children:p.jsx(ee.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":Lk(i.value)?"":void 0,...o,ref:s,onClick:J(o.onClick,g=>{g.currentTarget.focus()}),onPointerDown:J(o.onPointerDown,g=>{const m=g.target;m.hasPointerCapture(g.pointerId)&&m.releasePointerCapture(g.pointerId),g.button===0&&g.ctrlKey===!1&&(h(),i.triggerPointerDownPosRef.current={x:Math.round(g.pageX),y:Math.round(g.pageY)},g.preventDefault())}),onKeyDown:J(o.onKeyDown,g=>{const m=u.current!=="";!(g.ctrlKey||g.altKey||g.metaKey)&&g.key.length===1&&d(g.key),!(m&&g.key===" ")&&dre.includes(g.key)&&(h(),g.preventDefault())})})})});yk.displayName=vk;var xk="SelectValue",Ck=k.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:a,placeholder:i="",...l}=e,s=Lr(xk,n),{onValueNodeHasChildrenChange:c}=s,u=a!==void 0,d=ge(t,s.onValueNodeChange);return Ze(()=>{c(u)},[c,u]),p.jsx(ee.span,{...l,ref:d,style:{pointerEvents:"none"},children:Lk(s.value)?p.jsx(p.Fragment,{children:i}):a})});Ck.displayName=xk;var bre="SelectIcon",wk=k.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return p.jsx(ee.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});wk.displayName=bre;var vre="SelectPortal",kk=e=>p.jsx(Ao,{asChild:!0,...e});kk.displayName=vre;var Eo="SelectContent",Sk=k.forwardRef((e,t)=>{const n=Lr(Eo,e.__scopeSelect),[r,o]=k.useState();if(Ze(()=>{o(new DocumentFragment)},[]),!n.open){const a=r;return a?rl.createPortal(p.jsx(Dk,{scope:e.__scopeSelect,children:p.jsx(_u.Slot,{scope:e.__scopeSelect,children:p.jsx("div",{children:e.children})})}),a):null}return p.jsx(_k,{...e,ref:t})});Sk.displayName=Eo;var Ln=10,[Dk,zr]=ja(Eo),yre="SelectContentImpl",_k=k.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:i,side:l,sideOffset:s,align:c,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:h,sticky:g,hideWhenDetached:m,avoidCollisions:b,...x}=e,y=Lr(Eo,n),[v,w]=k.useState(null),[D,_]=k.useState(null),M=ge(t,z=>w(z)),[S,E]=k.useState(null),[P,$]=k.useState(null),R=$u(n),[T,I]=k.useState(!1),N=k.useRef(!1);k.useEffect(()=>{if(v)return Hc(v)},[v]),Fc();const B=k.useCallback(z=>{const[q,...te]=R().map(ve=>ve.ref.current),[H]=te.slice(-1),ce=document.activeElement;for(const ve of z)if(ve===ce||(ve==null||ve.scrollIntoView({block:"nearest"}),ve===q&&D&&(D.scrollTop=0),ve===H&&D&&(D.scrollTop=D.scrollHeight),ve==null||ve.focus(),document.activeElement!==ce))return},[R,D]),V=k.useCallback(()=>B([S,v]),[B,S,v]);k.useEffect(()=>{T&&V()},[T,V]);const{onOpenChange:F,triggerPointerDownPosRef:j}=y;k.useEffect(()=>{if(v){let z={x:0,y:0};const q=H=>{var ce,ve;z={x:Math.abs(Math.round(H.pageX)-(((ce=j.current)==null?void 0:ce.x)??0)),y:Math.abs(Math.round(H.pageY)-(((ve=j.current)==null?void 0:ve.y)??0))}},te=H=>{z.x<=10&&z.y<=10?H.preventDefault():v.contains(H.target)||F(!1),document.removeEventListener("pointermove",q),j.current=null};return j.current!==null&&(document.addEventListener("pointermove",q),document.addEventListener("pointerup",te,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",q),document.removeEventListener("pointerup",te,{capture:!0})}}},[v,F,j]),k.useEffect(()=>{const z=()=>F(!1);return window.addEventListener("blur",z),window.addEventListener("resize",z),()=>{window.removeEventListener("blur",z),window.removeEventListener("resize",z)}},[F]);const[L,O]=jk(z=>{const q=R().filter(ce=>!ce.disabled),te=q.find(ce=>ce.ref.current===document.activeElement),H=Vk(q,z,te);H&&setTimeout(()=>H.ref.current.focus())}),Z=k.useCallback((z,q,te)=>{const H=!N.current&&!te;(y.value!==void 0&&y.value===q||H)&&(E(z),H&&(N.current=!0))},[y.value]),re=k.useCallback(()=>v==null?void 0:v.focus(),[v]),oe=k.useCallback((z,q,te)=>{const H=!N.current&&!te;(y.value!==void 0&&y.value===q||H)&&$(z)},[y.value]),ie=r==="popper"?m1:$k,se=ie===m1?{side:l,sideOffset:s,align:c,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:h,sticky:g,hideWhenDetached:m,avoidCollisions:b}:{};return p.jsx(Dk,{scope:n,content:v,viewport:D,onViewportChange:_,itemRefCallback:Z,selectedItem:S,onItemLeave:re,itemTextRefCallback:oe,focusSelectedItem:V,selectedItemText:P,position:r,isPositioned:T,searchRef:L,children:p.jsx(Kc,{as:sn,allowPinchZoom:!0,children:p.jsx(Ba,{asChild:!0,trapped:y.open,onMountAutoFocus:z=>{z.preventDefault()},onUnmountAutoFocus:J(o,z=>{var q;(q=y.trigger)==null||q.focus({preventScroll:!0}),z.preventDefault()}),children:p.jsx(al,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:z=>z.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:p.jsx(ie,{role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:z=>z.preventDefault(),...x,...se,onPlaced:()=>I(!0),ref:M,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:J(x.onKeyDown,z=>{const q=z.ctrlKey||z.altKey||z.metaKey;if(z.key==="Tab"&&z.preventDefault(),!q&&z.key.length===1&&O(z.key),["ArrowUp","ArrowDown","Home","End"].includes(z.key)){let H=R().filter(ce=>!ce.disabled).map(ce=>ce.ref.current);if(["ArrowUp","End"].includes(z.key)&&(H=H.slice().reverse()),["ArrowUp","ArrowDown"].includes(z.key)){const ce=z.target,ve=H.indexOf(ce);H=H.slice(ve+1)}setTimeout(()=>B(H)),z.preventDefault()}})})})})})})});_k.displayName=yre;var xre="SelectItemAlignedPosition",$k=k.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,a=Lr(Eo,n),i=zr(Eo,n),[l,s]=k.useState(null),[c,u]=k.useState(null),d=ge(t,M=>u(M)),f=$u(n),h=k.useRef(!1),g=k.useRef(!0),{viewport:m,selectedItem:b,selectedItemText:x,focusSelectedItem:y}=i,v=k.useCallback(()=>{if(a.trigger&&a.valueNode&&l&&c&&m&&b&&x){const M=a.trigger.getBoundingClientRect(),S=c.getBoundingClientRect(),E=a.valueNode.getBoundingClientRect(),P=x.getBoundingClientRect();if(a.dir!=="rtl"){const ce=P.left-S.left,ve=E.left-ce,Ae=M.left-ve,at=M.width+Ae,St=Math.max(at,S.width),Et=window.innerWidth-Ln,gn=Ac(ve,[Ln,Et-St]);l.style.minWidth=at+"px",l.style.left=gn+"px"}else{const ce=S.right-P.right,ve=window.innerWidth-E.right-ce,Ae=window.innerWidth-M.right-ve,at=M.width+Ae,St=Math.max(at,S.width),Et=window.innerWidth-Ln,gn=Ac(ve,[Ln,Et-St]);l.style.minWidth=at+"px",l.style.right=gn+"px"}const $=f(),R=window.innerHeight-Ln*2,T=m.scrollHeight,I=window.getComputedStyle(c),N=parseInt(I.borderTopWidth,10),B=parseInt(I.paddingTop,10),V=parseInt(I.borderBottomWidth,10),F=parseInt(I.paddingBottom,10),j=N+B+T+F+V,L=Math.min(b.offsetHeight*5,j),O=window.getComputedStyle(m),Z=parseInt(O.paddingTop,10),re=parseInt(O.paddingBottom,10),oe=M.top+M.height/2-Ln,ie=R-oe,se=b.offsetHeight/2,z=b.offsetTop+se,q=N+B+z,te=j-q;if(q<=oe){const ce=b===$[$.length-1].ref.current;l.style.bottom="0px";const ve=c.clientHeight-m.offsetTop-m.offsetHeight,Ae=Math.max(ie,se+(ce?re:0)+ve+V),at=q+Ae;l.style.height=at+"px"}else{const ce=b===$[0].ref.current;l.style.top="0px";const Ae=Math.max(oe,N+m.offsetTop+(ce?Z:0)+se)+te;l.style.height=Ae+"px",m.scrollTop=q-oe+m.offsetTop}l.style.margin=`${Ln}px 0`,l.style.minHeight=L+"px",l.style.maxHeight=R+"px",r==null||r(),requestAnimationFrame(()=>h.current=!0)}},[f,a.trigger,a.valueNode,l,c,m,b,x,a.dir,r]);Ze(()=>v(),[v]);const[w,D]=k.useState();Ze(()=>{c&&D(window.getComputedStyle(c).zIndex)},[c]);const _=k.useCallback(M=>{M&&g.current===!0&&(v(),y==null||y(),g.current=!1)},[v,y]);return p.jsx(wre,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:h,onScrollButtonChange:_,children:p.jsx("div",{ref:s,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:w},children:p.jsx(ee.div,{...o,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});$k.displayName=xre;var Cre="SelectPopperPosition",m1=k.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Ln,...a}=e,i=Eu(n);return p.jsx(jc,{...i,...a,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});m1.displayName=Cre;var[wre,Og]=ja(Eo,{}),b1="SelectViewport",Ek=k.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,a=zr(b1,n),i=Og(b1,n),l=ge(t,a.onViewportChange),s=k.useRef(0);return p.jsxs(p.Fragment,{children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),p.jsx(_u.Slot,{scope:n,children:p.jsx(ee.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:l,style:{position:"relative",flex:1,overflow:"auto",...o.style},onScroll:J(o.onScroll,c=>{const u=c.currentTarget,{contentWrapper:d,shouldExpandOnScrollRef:f}=i;if(f!=null&&f.current&&d){const h=Math.abs(s.current-u.scrollTop);if(h>0){const g=window.innerHeight-Ln*2,m=parseFloat(d.style.minHeight),b=parseFloat(d.style.height),x=Math.max(m,b);if(x<g){const y=x+h,v=Math.min(g,y),w=y-v;d.style.height=v+"px",d.style.bottom==="0px"&&(u.scrollTop=w>0?w:0,d.style.justifyContent="flex-end")}}}s.current=u.scrollTop})})})]})});Ek.displayName=b1;var Mk="SelectGroup",[kre,Sre]=ja(Mk),Dre=k.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Lt();return p.jsx(kre,{scope:n,id:o,children:p.jsx(ee.div,{role:"group","aria-labelledby":o,...r,ref:t})})});Dre.displayName=Mk;var Ak="SelectLabel",_re=k.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Sre(Ak,n);return p.jsx(ee.div,{id:o.id,...r,ref:t})});_re.displayName=Ak;var Tc="SelectItem",[$re,Tk]=ja(Tc),Pk=k.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...i}=e,l=Lr(Tc,n),s=zr(Tc,n),c=l.value===r,[u,d]=k.useState(a??""),[f,h]=k.useState(!1),g=ge(t,x=>{var y;return(y=s.itemRefCallback)==null?void 0:y.call(s,x,r,o)}),m=Lt(),b=()=>{o||(l.onValueChange(r),l.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return p.jsx($re,{scope:n,value:r,disabled:o,textId:m,isSelected:c,onItemTextChange:k.useCallback(x=>{d(y=>y||((x==null?void 0:x.textContent)??"").trim())},[]),children:p.jsx(_u.ItemSlot,{scope:n,value:r,disabled:o,textValue:u,children:p.jsx(ee.div,{role:"option","aria-labelledby":m,"data-highlighted":f?"":void 0,"aria-selected":c&&f,"data-state":c?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...i,ref:g,onFocus:J(i.onFocus,()=>h(!0)),onBlur:J(i.onBlur,()=>h(!1)),onPointerUp:J(i.onPointerUp,b),onPointerMove:J(i.onPointerMove,x=>{var y;o?(y=s.onItemLeave)==null||y.call(s):x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:J(i.onPointerLeave,x=>{var y;x.currentTarget===document.activeElement&&((y=s.onItemLeave)==null||y.call(s))}),onKeyDown:J(i.onKeyDown,x=>{var v;((v=s.searchRef)==null?void 0:v.current)!==""&&x.key===" "||(fre.includes(x.key)&&b(),x.key===" "&&x.preventDefault())})})})})});Pk.displayName=Tc;var wi="SelectItemText",Rk=k.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,i=Lr(wi,n),l=zr(wi,n),s=Tk(wi,n),c=mre(wi,n),[u,d]=k.useState(null),f=ge(t,x=>d(x),s.onItemTextChange,x=>{var y;return(y=l.itemTextRefCallback)==null?void 0:y.call(l,x,s.value,s.disabled)}),h=u==null?void 0:u.textContent,g=k.useMemo(()=>p.jsx("option",{value:s.value,disabled:s.disabled,children:h},s.value),[s.disabled,s.value,h]),{onNativeOptionAdd:m,onNativeOptionRemove:b}=c;return Ze(()=>(m(g),()=>b(g)),[m,b,g]),p.jsxs(p.Fragment,{children:[p.jsx(ee.span,{id:s.textId,...a,ref:f}),s.isSelected&&i.valueNode&&!i.valueNodeHasChildren?rl.createPortal(a.children,i.valueNode):null]})});Rk.displayName=wi;var Bk="SelectItemIndicator",Ik=k.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Tk(Bk,n).isSelected?p.jsx(ee.span,{"aria-hidden":!0,...r,ref:t}):null});Ik.displayName=Bk;var v1="SelectScrollUpButton",Ok=k.forwardRef((e,t)=>{const n=zr(v1,e.__scopeSelect),r=Og(v1,e.__scopeSelect),[o,a]=k.useState(!1),i=ge(t,r.onScrollButtonChange);return Ze(()=>{if(n.viewport&&n.isPositioned){let l=function(){const c=s.scrollTop>0;a(c)};const s=n.viewport;return l(),s.addEventListener("scroll",l),()=>s.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),o?p.jsx(Nk,{...e,ref:i,onAutoScroll:()=>{const{viewport:l,selectedItem:s}=n;l&&s&&(l.scrollTop=l.scrollTop-s.offsetHeight)}}):null});Ok.displayName=v1;var y1="SelectScrollDownButton",Fk=k.forwardRef((e,t)=>{const n=zr(y1,e.__scopeSelect),r=Og(y1,e.__scopeSelect),[o,a]=k.useState(!1),i=ge(t,r.onScrollButtonChange);return Ze(()=>{if(n.viewport&&n.isPositioned){let l=function(){const c=s.scrollHeight-s.clientHeight,u=Math.ceil(s.scrollTop)<c;a(u)};const s=n.viewport;return l(),s.addEventListener("scroll",l),()=>s.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),o?p.jsx(Nk,{...e,ref:i,onAutoScroll:()=>{const{viewport:l,selectedItem:s}=n;l&&s&&(l.scrollTop=l.scrollTop+s.offsetHeight)}}):null});Fk.displayName=y1;var Nk=k.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,a=zr("SelectScrollButton",n),i=k.useRef(null),l=$u(n),s=k.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return k.useEffect(()=>()=>s(),[s]),Ze(()=>{var u;const c=l().find(d=>d.ref.current===document.activeElement);(u=c==null?void 0:c.ref.current)==null||u.scrollIntoView({block:"nearest"})},[l]),p.jsx(ee.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:J(o.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(r,50))}),onPointerMove:J(o.onPointerMove,()=>{var c;(c=a.onItemLeave)==null||c.call(a),i.current===null&&(i.current=window.setInterval(r,50))}),onPointerLeave:J(o.onPointerLeave,()=>{s()})})}),Ere="SelectSeparator",Mre=k.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return p.jsx(ee.div,{"aria-hidden":!0,...r,ref:t})});Mre.displayName=Ere;var x1="SelectArrow",Are=k.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Eu(n),a=Lr(x1,n),i=zr(x1,n);return a.open&&i.position==="popper"?p.jsx(Vc,{...o,...r,ref:t}):null});Are.displayName=x1;function Lk(e){return e===""||e===void 0}var zk=k.forwardRef((e,t)=>{const{value:n,...r}=e,o=k.useRef(null),a=ge(t,o),i=cl(n);return k.useEffect(()=>{const l=o.current,s=window.HTMLSelectElement.prototype,u=Object.getOwnPropertyDescriptor(s,"value").set;if(i!==n&&u){const d=new Event("change",{bubbles:!0});u.call(l,n),l.dispatchEvent(d)}},[i,n]),p.jsx(Ic,{asChild:!0,children:p.jsx("select",{...r,ref:a,defaultValue:n})})});zk.displayName="BubbleSelect";function jk(e){const t=$n(e),n=k.useRef(""),r=k.useRef(0),o=k.useCallback(i=>{const l=n.current+i;t(l),function s(c){n.current=c,window.clearTimeout(r.current),c!==""&&(r.current=window.setTimeout(()=>s(""),1e3))}(l)},[t]),a=k.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return k.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,a]}function Vk(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let i=Tre(e,Math.max(a,0));o.length===1&&(i=i.filter(c=>c!==n));const s=i.find(c=>c.textValue.toLowerCase().startsWith(o.toLowerCase()));return s!==n?s:void 0}function Tre(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Pre=bk,Hk=yk,C1=Ck,Rre=wk,Bre=kk,Ire=Sk,Ore=Ek,Fre=Pk,Nre=Rk,Lre=Ik,zre=Ok,jre=Fk;const Vre="_content_8taay_1",Hre="_constrainContentWidth_8taay_17",Wre="_contentChild_8taay_21",Kre="_scrollButton_8taay_33 _contentChild_8taay_21",Ure="_scrollUpButton_8taay_44 _scrollButton_8taay_33 _contentChild_8taay_21",Zre="_scrollDownButton_8taay_58 _scrollButton_8taay_33 _contentChild_8taay_21",Gre="_scrollButtonIcon_8taay_72",qre="_item_8taay_76 _contentChild_8taay_21",Yre="_itemIndicator_8taay_105",Jre="_itemText_8taay_116",qt={content:Vre,constrainContentWidth:Hre,contentChild:Wre,scrollButton:Kre,scrollUpButton:Ure,scrollDownButton:Zre,scrollButtonIcon:Gre,item:qre,"itemPadding-small":"_itemPadding-small_8taay_92","itemPadding-medium":"_itemPadding-medium_8taay_96","itemPadding-large":"_itemPadding-large_8taay_100",itemIndicator:Yre,itemText:Jre};function Wk(e){const t=Xn(),{children:n,disabled:r=(t==null?void 0:t.disabled)??!1,id:o,placeholder:a,color:i=(t==null?void 0:t.color)??"purple",size:l=(t==null?void 0:t.size)??"medium",renderTrigger:s=({button:$})=>$,startIcon:c,renderStartIcon:u,endIcon:d="arrowDropDown",onlyStartIcon:f=!1,constrainContentWidth:h,side:g,sideOffset:m,flexContent:b,boldTriggerText:x=!1,sx:y,name:v,autoComplete:w,value:D,onValueChange:_}=e,M=e.position??(h?"popper":"item-aligned"),E={sx:y,startIcon:c,renderStartIcon:u,endIcon:f?void 0:d,renderEndIcon:Xre,size:l,color:i,textColor:!D&&i==="grey"?"placeholder":void 0,textWeight:x?"bold":"normal",disabled:r,flexContent:b},P=p.jsx(Hk,{asChild:!0,disabled:r,id:o,children:f?p.jsx(C1,{asChild:!0,children:p.jsx(_e,{...E})}):p.jsx(_e,{...E,children:p.jsx(C1,{placeholder:a})})});return p.jsxs(Pre,{name:v,autoComplete:w,value:D,onValueChange:_,children:[s({button:P,disabled:r}),p.jsx(Bre,{children:p.jsxs(Ire,{collisionPadding:parseFloat(Se.space[16]),position:M,side:g,sideOffset:m,className:W(qt.content,h&&qt.constrainContentWidth),children:[p.jsx(Ore,{children:n}),p.jsx(zre,{className:W(qt.scrollButton,qt.scrollUpButton),children:p.jsx(de,{className:qt.scrollButtonIcon,name:"keyboardArrowUp",size:"large"})}),p.jsx(jre,{className:W(qt.scrollButton,qt.scrollDownButton),children:p.jsx(de,{className:qt.scrollButtonIcon,name:"keyboardArrowDown",size:"large"})})]})})]})}function Kk(e){const{children:t,icon:n,renderStartIcon:r=l=>l,size:o="medium",value:a,...i}=e;return p.jsxs(Fre,{...i,value:a,className:W(qt.item,qt[`itemPadding-${o}`]),children:[r(n&&p.jsx(de,{name:n,size:"small"})),p.jsx(Q,{component:"span",noWrap:!0,sx:{flexGrow:1,order:1},children:p.jsx(Nre,{children:t})}),p.jsx(Lre,{asChild:!0,className:qt.itemIndicator,children:p.jsx(de,{name:"check"})})]})}function Xre(e){return p.jsx(Rre,{asChild:!0,children:e})}const Qre="_root_1aoi1_1",eoe={root:Qre};function toe(e){const{id:t,disabled:n,placeholder:r}=e;return p.jsx(Hk,{asChild:!0,disabled:n,id:t,children:p.jsxs("button",{className:eoe.root,disabled:n,children:[p.jsx(Q,{children:p.jsx(C1,{placeholder:r})}),p.jsx(de,{name:"unfoldMore",color:"grey11",size:"small"})]})})}const noe="_cardBase_188x2_1",A4={cardBase:noe,"card-default":"_card-default_188x2_16","card-selected":"_card-selected_188x2_29"};function roe(e){const{selected:t,onSelect:n,children:r,asChild:o}=e,a=o?sn:"button";return p.jsx(a,{className:W(A4.cardBase,A4[`card-${t?"selected":"default"}`]),role:"menuitemradio","aria-checked":t,onClick:n,children:r})}var ooe="Separator",T4="horizontal",aoe=["horizontal","vertical"],Uk=k.forwardRef((e,t)=>{const{decorative:n,orientation:r=T4,...o}=e,a=ioe(r)?r:T4,l=n?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return p.jsx(ee.div,{"data-orientation":a,...l,...o,ref:t})});Uk.displayName=ooe;function ioe(e){return aoe.includes(e)}var Zk=Uk;const loe="_root_fry4n_1",soe="_horizontal_fry4n_20",coe="_vertical_fry4n_26",uoe="_solid_fry4n_32",doe="_dashed_fry4n_36",ws={root:loe,"color-grey":"_color-grey_fry4n_8","color-purple":"_color-purple_fry4n_12","color-tomato":"_color-tomato_fry4n_16",horizontal:soe,vertical:coe,solid:uoe,dashed:doe},Gk=C.forwardRef(function(t,n){const{sx:r,color:o="grey",orientation:a="horizontal",decorative:i=!1,style:l="solid",...s}=t;return p.jsx(Zk,{...s,ref:n,orientation:a,decorative:i,className:W(ws.root,ws[`color-${o}`],ws[a],ws[l]),style:r})}),foe="_root_92kll_1",poe="_card_92kll_7",hoe="_outerContent_92kll_46",goe="_main_92kll_55",moe="_footer_92kll_63",boe="_texts_92kll_69",lr={root:foe,card:poe,"state-normal":"_state-normal_92kll_21","state-selected":"_state-selected_92kll_40",outerContent:hoe,main:goe,footer:moe,texts:boe};function voe(e){const{id:t,title:n,subTitle:r,index:o,children:a,menuItems:i,canMove:l=!1,selected:s=!1,onSelect:c}=e,u=W(lr.card,lr[`state-${s?"selected":"normal"}`]);function d(h){c==null||c(h)}function f(h){(h.code==="Enter"||h.code==="Space")&&(c==null||c(h))}return p.jsxs("section",{id:t,className:lr.root,children:[p.jsxs("div",{className:u,draggable:l,onClick:d,onKeyDown:f,children:[p.jsx("div",{className:lr.outerContent,children:p.jsx(Q,{variant:"smallBold",color:"grey9",children:o})}),p.jsx("div",{className:lr.main,children:a}),p.jsx("div",{className:lr.outerContent,children:l&&p.jsx(de,{name:"dragIndicator",color:"grey8",size:"small"})})]}),p.jsxs("div",{className:lr.footer,children:[p.jsxs("div",{className:lr.texts,children:[p.jsx(Q,{variant:"smallBold",color:"grey11",noWrap:!0,children:n}),p.jsx(Q,{variant:"small",color:"grey11",noWrap:!0,children:r})]}),i&&p.jsxs(Ag,{modal:!0,children:[p.jsx(Tg,{children:p.jsx(rt,{icon:"moreVert",size:"small"})}),p.jsxs(Pg,{align:"end",children:[p.jsx(nk,{children:"Slice options"}),i]})]})]})]})}const yoe="_card_p53i7_1",xoe="_innerContent_p53i7_31",Coe="_innerContentFixedHeight_p53i7_43",woe="_text_p53i7_47",koe="_children_p53i7_51",Soe="_childrenFixedHeight_p53i7_61",Doe="_plusIcon_p53i7_67",Kr={card:yoe,innerContent:xoe,innerContentFixedHeight:Coe,text:woe,children:koe,childrenFixedHeight:Soe,plusIcon:Doe};function _oe(e){const{label:t,variation:n,children:r,fixedHeight:o=!0,onClick:a,disabled:i}=e,l=W(Kr.innerContent,o&&Kr.innerContentFixedHeight),s=W(Kr.children,o&&Kr.childrenFixedHeight);return p.jsxs("button",{disabled:i,className:Kr.card,onClick:a,children:[p.jsxs("div",{className:l,children:[p.jsx("div",{className:s,children:r}),!i&&p.jsx("div",{className:Kr.plusIcon,children:p.jsx(de,{name:"add",color:"grey1",size:"medium"})})]}),p.jsx("div",{className:Kr.text,children:p.jsxs(Q,{variant:"smallBold",color:"grey11",noWrap:!0,children:[t,n&&p.jsx(Q,{variant:"smallBold",color:"grey12",children:` > ${n}`})]})})]})}var qk=["PageUp","PageDown"],Yk=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Jk={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Va="Slider",[w1,$oe,Eoe]=wu(Va),[Xk,pse]=Le(Va,[Eoe]),[Moe,Mu]=Xk(Va),Qk=k.forwardRef((e,t)=>{const{name:n,min:r=0,max:o=100,step:a=1,orientation:i="horizontal",disabled:l=!1,minStepsBetweenThumbs:s=0,defaultValue:c=[r],value:u,onValueChange:d=()=>{},onValueCommit:f=()=>{},inverted:h=!1,...g}=e,m=k.useRef(new Set),b=k.useRef(0),y=i==="horizontal"?Aoe:Toe,[v=[],w]=ct({prop:u,defaultProp:c,onChange:P=>{var R;(R=[...m.current][b.current])==null||R.focus(),d(P)}}),D=k.useRef(v);function _(P){const $=Ooe(v,P);E(P,$)}function M(P){E(P,b.current)}function S(){const P=D.current[b.current];v[b.current]!==P&&f(v)}function E(P,$,{commit:R}={commit:!1}){const T=zoe(a),I=joe(Math.round((P-r)/a)*a+r,T),N=Ac(I,[r,o]);w((B=[])=>{const V=Boe(B,N,$);if(Loe(V,s*a)){b.current=V.indexOf(N);const F=String(V)!==String(B);return F&&R&&f(V),F?V:B}else return B})}return p.jsx(Moe,{scope:e.__scopeSlider,name:n,disabled:l,min:r,max:o,valueIndexToChangeRef:b,thumbs:m.current,values:v,orientation:i,children:p.jsx(w1.Provider,{scope:e.__scopeSlider,children:p.jsx(w1.Slot,{scope:e.__scopeSlider,children:p.jsx(y,{"aria-disabled":l,"data-disabled":l?"":void 0,...g,ref:t,onPointerDown:J(g.onPointerDown,()=>{l||(D.current=v)}),min:r,max:o,inverted:h,onSlideStart:l?void 0:_,onSlideMove:l?void 0:M,onSlideEnd:l?void 0:S,onHomeKeyDown:()=>!l&&E(r,0,{commit:!0}),onEndKeyDown:()=>!l&&E(o,v.length-1,{commit:!0}),onStepKeyDown:({event:P,direction:$})=>{if(!l){const I=qk.includes(P.key)||P.shiftKey&&Yk.includes(P.key)?10:1,N=b.current,B=v[N],V=a*I*$;E(B+V,N,{commit:!0})}}})})})})});Qk.displayName=Va;var[eS,tS]=Xk(Va,{startEdge:"left",endEdge:"right",size:"width",direction:1}),Aoe=k.forwardRef((e,t)=>{const{min:n,max:r,dir:o,inverted:a,onSlideStart:i,onSlideMove:l,onSlideEnd:s,onStepKeyDown:c,...u}=e,[d,f]=k.useState(null),h=ge(t,v=>f(v)),g=k.useRef(),m=Nr(o),b=m==="ltr",x=b&&!a||!b&&a;function y(v){const w=g.current||d.getBoundingClientRect(),D=[0,w.width],M=Fg(D,x?[n,r]:[r,n]);return g.current=w,M(v-w.left)}return p.jsx(eS,{scope:e.__scopeSlider,startEdge:x?"left":"right",endEdge:x?"right":"left",direction:x?1:-1,size:"width",children:p.jsx(nS,{dir:m,"data-orientation":"horizontal",...u,ref:h,style:{...u.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:v=>{const w=y(v.clientX);i==null||i(w)},onSlideMove:v=>{const w=y(v.clientX);l==null||l(w)},onSlideEnd:()=>{g.current=void 0,s==null||s()},onStepKeyDown:v=>{const D=Jk[x?"from-left":"from-right"].includes(v.key);c==null||c({event:v,direction:D?-1:1})}})})}),Toe=k.forwardRef((e,t)=>{const{min:n,max:r,inverted:o,onSlideStart:a,onSlideMove:i,onSlideEnd:l,onStepKeyDown:s,...c}=e,u=k.useRef(null),d=ge(t,u),f=k.useRef(),h=!o;function g(m){const b=f.current||u.current.getBoundingClientRect(),x=[0,b.height],v=Fg(x,h?[r,n]:[n,r]);return f.current=b,v(m-b.top)}return p.jsx(eS,{scope:e.__scopeSlider,startEdge:h?"bottom":"top",endEdge:h?"top":"bottom",size:"height",direction:h?1:-1,children:p.jsx(nS,{"data-orientation":"vertical",...c,ref:d,style:{...c.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:m=>{const b=g(m.clientY);a==null||a(b)},onSlideMove:m=>{const b=g(m.clientY);i==null||i(b)},onSlideEnd:()=>{f.current=void 0,l==null||l()},onStepKeyDown:m=>{const x=Jk[h?"from-bottom":"from-top"].includes(m.key);s==null||s({event:m,direction:x?-1:1})}})})}),nS=k.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:a,onHomeKeyDown:i,onEndKeyDown:l,onStepKeyDown:s,...c}=e,u=Mu(Va,n);return p.jsx(ee.span,{...c,ref:t,onKeyDown:J(e.onKeyDown,d=>{d.key==="Home"?(i(d),d.preventDefault()):d.key==="End"?(l(d),d.preventDefault()):qk.concat(Yk).includes(d.key)&&(s(d),d.preventDefault())}),onPointerDown:J(e.onPointerDown,d=>{const f=d.target;f.setPointerCapture(d.pointerId),d.preventDefault(),u.thumbs.has(f)?f.focus():r(d)}),onPointerMove:J(e.onPointerMove,d=>{d.target.hasPointerCapture(d.pointerId)&&o(d)}),onPointerUp:J(e.onPointerUp,d=>{const f=d.target;f.hasPointerCapture(d.pointerId)&&(f.releasePointerCapture(d.pointerId),a(d))})})}),rS="SliderTrack",oS=k.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=Mu(rS,n);return p.jsx(ee.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...r,ref:t})});oS.displayName=rS;var k1="SliderRange",aS=k.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=Mu(k1,n),a=tS(k1,n),i=k.useRef(null),l=ge(t,i),s=o.values.length,c=o.values.map(f=>lS(f,o.min,o.max)),u=s>1?Math.min(...c):0,d=100-Math.max(...c);return p.jsx(ee.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...r,ref:l,style:{...e.style,[a.startEdge]:u+"%",[a.endEdge]:d+"%"}})});aS.displayName=k1;var S1="SliderThumb",iS=k.forwardRef((e,t)=>{const n=$oe(e.__scopeSlider),[r,o]=k.useState(null),a=ge(t,l=>o(l)),i=k.useMemo(()=>r?n().findIndex(l=>l.ref.current===r):-1,[n,r]);return p.jsx(Poe,{...e,ref:a,index:i})}),Poe=k.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,name:o,...a}=e,i=Mu(S1,n),l=tS(S1,n),[s,c]=k.useState(null),u=ge(t,y=>c(y)),d=s?!!s.closest("form"):!0,f=il(s),h=i.values[r],g=h===void 0?0:lS(h,i.min,i.max),m=Ioe(r,i.values.length),b=f==null?void 0:f[l.size],x=b?Foe(b,g,l.direction):0;return k.useEffect(()=>{if(s)return i.thumbs.add(s),()=>{i.thumbs.delete(s)}},[s,i.thumbs]),p.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[l.startEdge]:`calc(${g}% + ${x}px)`},children:[p.jsx(w1.ItemSlot,{scope:e.__scopeSlider,children:p.jsx(ee.span,{role:"slider","aria-label":e["aria-label"]||m,"aria-valuemin":i.min,"aria-valuenow":h,"aria-valuemax":i.max,"aria-orientation":i.orientation,"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,tabIndex:i.disabled?void 0:0,...a,ref:u,style:h===void 0?{display:"none"}:e.style,onFocus:J(e.onFocus,()=>{i.valueIndexToChangeRef.current=r})})}),d&&p.jsx(Roe,{name:o??(i.name?i.name+(i.values.length>1?"[]":""):void 0),value:h},r)]})});iS.displayName=S1;var Roe=e=>{const{value:t,...n}=e,r=k.useRef(null),o=cl(t);return k.useEffect(()=>{const a=r.current,i=window.HTMLInputElement.prototype,s=Object.getOwnPropertyDescriptor(i,"value").set;if(o!==t&&s){const c=new Event("input",{bubbles:!0});s.call(a,t),a.dispatchEvent(c)}},[o,t]),p.jsx("input",{style:{display:"none"},...n,ref:r,defaultValue:t})};function Boe(e=[],t,n){const r=[...e];return r[n]=t,r.sort((o,a)=>o-a)}function lS(e,t,n){const a=100/(n-t)*(e-t);return Ac(a,[0,100])}function Ioe(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function Ooe(e,t){if(e.length===1)return 0;const n=e.map(o=>Math.abs(o-t)),r=Math.min(...n);return n.indexOf(r)}function Foe(e,t,n){const r=e/2,a=Fg([0,50],[0,r]);return(r-a(t)*n)*n}function Noe(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function Loe(e,t){if(t>0){const n=Noe(e);return Math.min(...n)>=t}return!0}function Fg(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function zoe(e){return(String(e).split(".")[1]||"").length}function joe(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var Voe=Qk,Hoe=oS,Woe=aS,Koe=iS;const Uoe="_root_1hdzt_1",Zoe="_track_1hdzt_10",Goe="_range_1hdzt_20",qoe="_thumb_1hdzt_28",ks={root:Uoe,track:Zoe,range:Goe,thumb:qoe},Yoe=({value:e,...t})=>p.jsxs(Voe,{...t,className:ks.root,value:e,children:[p.jsx(Hoe,{className:ks.track,children:p.jsx(Woe,{className:ks.range})}),e==null?void 0:e.map((n,r)=>p.jsx(Koe,{className:ks.thumb},r))]}),Joe="_animatedSuspenseWrapper_12uvc_1",Xoe="_fadeIn_12uvc_1",Qoe={animatedSuspenseWrapper:Joe,fadeIn:Xoe};function eae(e){const{children:t,fallback:n,animationDuration:r=150}=e;return p.jsx(C.Suspense,{fallback:n,children:p.jsx("div",{className:Qoe.animatedSuspenseWrapper,style:{animationDuration:`${r}ms`},children:t})})}var Ng="Switch",[tae,hse]=Le(Ng),[nae,rae]=tae(Ng),sS=k.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:a,required:i,disabled:l,value:s="on",onCheckedChange:c,...u}=e,[d,f]=k.useState(null),h=ge(t,y=>f(y)),g=k.useRef(!1),m=d?!!d.closest("form"):!0,[b=!1,x]=ct({prop:o,defaultProp:a,onChange:c});return p.jsxs(nae,{scope:n,checked:b,disabled:l,children:[p.jsx(ee.button,{type:"button",role:"switch","aria-checked":b,"aria-required":i,"data-state":dS(b),"data-disabled":l?"":void 0,disabled:l,value:s,...u,ref:h,onClick:J(e.onClick,y=>{x(v=>!v),m&&(g.current=y.isPropagationStopped(),g.current||y.stopPropagation())})}),m&&p.jsx(oae,{control:d,bubbles:!g.current,name:r,value:s,checked:b,required:i,disabled:l,style:{transform:"translateX(-100%)"}})]})});sS.displayName=Ng;var cS="SwitchThumb",uS=k.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=rae(cS,n);return p.jsx(ee.span,{"data-state":dS(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});uS.displayName=cS;var oae=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,a=k.useRef(null),i=cl(n),l=il(t);return k.useEffect(()=>{const s=a.current,c=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(c,"checked").set;if(i!==n&&d){const f=new Event("click",{bubbles:r});d.call(s,n),s.dispatchEvent(f)}},[i,n,r]),p.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:a,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function dS(e){return e?"checked":"unchecked"}var aae=sS,iae=uS;const lae="_root_1xldo_1",sae="_small_1xldo_39",cae="_medium_1xldo_45",uae="_thumb_1xldo_52",Ss={root:lae,small:sae,medium:cae,thumb:uae};function dae(e){const{size:t="medium",sx:n,...r}=e;return p.jsx(aae,{...r,style:n,className:W(Ss.root,Ss[t]),children:p.jsx(iae,{className:W(Ss.thumb,Ss[t])})})}const fae="_tab_jq7dc_1",pae="_selected_jq7dc_28",hae="_unselected_jq7dc_32",gae="_transparent_jq7dc_36",mae="_outline_jq7dc_40",bae="_noWrap_jq7dc_46",Xo={tab:fae,selected:pae,unselected:hae,transparent:gae,outline:mae,noWrap:bae};function vae(e){const{children:t,asChild:n,outline:r,selected:o=!1,transparent:a=!1,noWrap:i=!1,sx:l,onClick:s}=e,c=n?sn:"button",u=W(Xo.tab,o?Xo.selected:Xo.unselected,a&&Xo.transparent,r&&Xo.outline,i&&Xo.noWrap);return p.jsx(Q,{display:"inline-flex",component:"span",variant:"bold",color:o?"purple9":"grey11",sx:l,children:p.jsx(c,{className:u,onClick:s,children:t})})}const yae="_root_z4m21_1",xae="_radius_z4m21_11",Cae="_border_z4m21_15",wae="_header_z4m21_22",kae="_bodyRowBackground_z4m21_28",Sae="_interactive_z4m21_38",Dae="_onClickBodyRow_z4m21_47 _bodyRowBackground_z4m21_28",_ae="_linkElementWrapper_z4m21_52 _bodyRowBackground_z4m21_28 _interactive_z4m21_38",$ae="_staticBodyRow_z4m21_67 _bodyRowBackground_z4m21_28",Eae="_bodyRow_z4m21_28",Mae="_disabledRow_z4m21_82",Aae="_disablePointerEvents_z4m21_87",Tae="_headerCell_z4m21_91",Pae="_bodyCell_z4m21_95",Rae="_loadingCell_z4m21_99",Bae="_cell_z4m21_103",Iae="_overflow_z4m21_120",Oae="_linkedRowContainer_z4m21_126",Fae="_link_z4m21_52",Ne={root:yae,radius:xae,border:Cae,header:wae,bodyRowBackground:kae,interactive:Sae,onClickBodyRow:Dae,linkElementWrapper:_ae,staticBodyRow:$ae,bodyRow:Eae,disabledRow:Mae,disablePointerEvents:Aae,headerCell:Tae,bodyCell:Pae,loadingCell:Rae,cell:Bae,overflow:Iae,linkedRowContainer:Oae,link:Fae,"align-center":"_align-center_z4m21_135","align-end":"_align-end_z4m21_139"};function Nae(e){const{children:t,columnLayout:n,isLoading:r=!1,isInteractive:o=!0,radius:a=!0,border:i=!0}=e;return p.jsx("div",{className:W(Ne.root,i&&Ne.border,a&&Ne.radius),children:p.jsx(fS.Provider,{value:{columnLayout:n,isLoading:r,isInteractive:o},children:t})})}const fS=C.createContext({columnLayout:"1fr",isLoading:!1,isInteractive:!0});function Lg(){return C.useContext(fS)}const zg=C.createContext("body");function pS(){return C.useContext(zg)}function Lae(e){return p.jsx(zg.Provider,{value:"head",children:e.children})}function zae(e){return p.jsx(zg.Provider,{value:"body",children:e.children})}function jae(e){const{renderLink:t}=e,{rowContent:n}=Hae(e),{isLoading:r}=Lg();if(!t||r)return n;const o=p.jsx("div",{className:Ne.link});return p.jsxs("div",{className:Ne.linkedRowContainer,children:[p.jsx("div",{className:Ne.linkElementWrapper,children:t(o)}),n]})}function Vae(e){const{children:t,align:n,interactive:r=!1}=e,o=pS(),{isLoading:a}=Lg(),i=W(Ne.cell,Ne.overflow,o==="body"?Ne.bodyCell:Ne.headerCell,a&&o==="body"&&Ne.loadingCell,n&&Ne[`align-${n}`]);return p.jsx("div",{className:i,style:{pointerEvents:r?"auto":void 0},children:t})}function Hae(e){const{children:t,onClick:n,renderLink:r,disabled:o}=e,a=pS(),{columnLayout:i,isLoading:l,isInteractive:s}=Lg();function c(g){const m=g.target;if(!n||!g.currentTarget.contains(m))return;const b=an.findFocusableAncestor(m);((b==null?void 0:b.contains(g.currentTarget))??!0)&&n()}function u(g){(g.code==="Enter"||g.code==="Space")&&(n==null||n())}const d=!n&&!r||l,f=W(a==="body"?Ne.bodyRow:Ne.header,s&&Ne.interactive,!!n&&Ne.onClickBodyRow,!!r&&Ne.disablePointerEvents,d&&a==="body"&&Ne.staticBodyRow,o&&Ne.disabledRow);return{rowContent:p.jsx("div",{className:f,style:{gridTemplateColumns:i},onClick:c,role:n?"button":void 0,tabIndex:n?0:-1,onKeyDown:u,children:t})}}const Wae="_tag_75zlj_1",Kae="_normal_75zlj_14",Uae="_active_75zlj_18",P4={tag:Wae,normal:Kae,active:Uae};function Zae(e){const{title:t,label:n,active:r=!1,onClose:o}=e,a=W(P4.tag,P4[r?"active":"normal"]);return p.jsxs("div",{className:a,children:[n&&p.jsxs(Q,{variant:"small",color:"grey12",children:[n,":"]}),p.jsx(Q,{variant:"smallBold",color:"grey12",children:t}),o&&p.jsx(rt,{icon:"close",size:"small",onClick:o,hasPadding:!1})]})}const Gae="_tagField_gjz9d_1",qae="_footer_gjz9d_28",Yae="_footerTitle_gjz9d_42",Jae="_optionsContainer_gjz9d_48",Xae="_tagsSkeleton_gjz9d_58",Qae="_footerButton_gjz9d_64",eie="_tagErrorContainer_gjz9d_84",tie="_tagErrorLeft_gjz9d_93",nie="_loadingTags_gjz9d_100",pn={tagField:Gae,"overlayMode-open":"_overlayMode-open_gjz9d_11","overlayMode-closed":"_overlayMode-closed_gjz9d_20",footer:qae,footerTitle:Yae,optionsContainer:Jae,tagsSkeleton:Xae,footerButton:Qae,tagErrorContainer:eie,tagErrorLeft:tie,loadingTags:nie,"overlay-open":"_overlay-open_gjz9d_106","fade-in":"_fade-in_gjz9d_1","overlay-closed":"_overlay-closed_gjz9d_122","fade-out":"_fade-out_gjz9d_1"},rie="_inputContainer_5ks68_1",oie="_invisibleBorder_5ks68_11",aie="_input_5ks68_1",iie="_extraTagContainer_5ks68_25",Ks={inputContainer:rie,invisibleBorder:oie,input:aie,extraTagContainer:iie},lie=8,sie=225;function cie(e){const{selectedValues:t,tagsContainerRef:n,open:r,onSelectedValuesChange:o}=e,[a,i]=C.useState(t),l=fe.useStableCallback(d=>{const f=d.clientWidth,h=Array.from(d.children||[]),g=f-sie,{displayedTags:m}=uie({tagList:h,maxTagsContainerWidth:g});i(new Set(m))});C.useLayoutEffect(()=>{n.current&&l(n.current)},[t,l,n]);const s=t.size-a.size,c=r?t:a;function u(d){if(d===-1){const h=ln.slice(t,0,t.size-1);return o(h)}const f=ln.filter(t,h=>h!==d);return o(f)}return{removeSelectedValue:u,displayedSelectedValues:c,extraTags:s}}function uie(e){const{tagList:t,maxTagsContainerWidth:n}=e;return t.reduce(({displayedTags:r,tagsContainerWidth:o},a)=>{var l;if(!(a instanceof HTMLDivElement)||!a.textContent)return{displayedTags:r,tagsContainerWidth:o};const i=o+a.offsetWidth+lie;return a.dataset.marker==="badge"&&i<=n?{displayedTags:[...r,(l=a.textContent)==null?void 0:l.trim()],tagsContainerWidth:i}:{displayedTags:r,tagsContainerWidth:o}},{displayedTags:[],tagsContainerWidth:0})}function die(e){const{inputRef:t,searchText:n,onCreateTag:r,setOpen:o,removeSelectedValue:a,setSearchText:i}=e;function l(){n===""&&a(-1)}function s(c){var u;c.code==="Escape"&&((u=t.current)==null||u.blur(),o(!1),i("")),c.key==="Backspace"&&l(),c.key==="Enter"&&n!==""&&r()}return{onKeyDown:s}}function fie(e){const t=C.useRef(null),n=C.useRef(null),{selectedValues:r,searchText:o,setSearchText:a,open:i,setOpen:l,isDisabled:s,onCreateTag:c,onSelectedValuesChange:u}=e,{displayedSelectedValues:d,extraTags:f,removeSelectedValue:h}=cie({selectedValues:r,tagsContainerRef:t,open:i,onSelectedValuesChange:u}),{onKeyDown:g}=die({inputRef:n,searchText:o,setSearchText:a,setOpen:l,onCreateTag:c,removeSelectedValue:h});return p.jsxs("div",{className:W(Ks.inputContainer,i&&Ks.invisibleBorder),ref:t,children:[p.jsx(pie,{displayedTags:Array.from(d),extraTags:i?0:f,removeSelectedValue:h,open:i}),p.jsx("div",{className:Ks.input,children:p.jsx(xl,{ref:n,inputMode:"text",onFocus:()=>l(!0),placeholder:"Add new tag here",value:o,onKeyDown:g,onValueChange:m=>a(m),disabled:s})})]})}function pie({displayedTags:e,extraTags:t,removeSelectedValue:n,open:r}){return p.jsxs(p.Fragment,{children:[e==null?void 0:e.map(o=>p.jsx(_t,{title:o,color:"purple",size:"medium",maxWidth:r?void 0:150,onClose:()=>n(o),selected:!0},o)),t>0&&p.jsx("div",{className:Ks.extraTagContainer,children:p.jsx(Q,{color:"grey11",variant:"small",children:`+ ${t}`})})]})}function hie(e){const{selectedValues:t,setOpen:n,fieldRef:r,onSelectedValuesChange:o}=e,[a,i]=C.useState("");C.useEffect(()=>{function c(u){const d=fe.refContainsTarget(r,u.target);n(d),d||i("")}return document.addEventListener("mousedown",c),()=>{document.removeEventListener("mousedown",c)}});function l(c){const u=ln.add(t,c);return i(""),o(u)}function s(){l(a),i("")}return{searchText:a,setSearchText:i,onCreateTag:s,addItemToSelectedValues:l}}function gie(e){const{open:t,values:n=new Set([]),error:r,loading:o}=e,a=C.useRef(null),{searchText:i,setSearchText:l,onCreateTag:s,addItemToSelectedValues:c}=hie({...e,fieldRef:a}),u=t?"open":"closed";return p.jsxs("div",{className:pn.tagField,children:[p.jsx(xie,{openState:u}),p.jsxs("div",{role:"button",className:W(pn[`overlayMode-${u}`]),ref:a,children:[p.jsx(fie,{...e,isDisabled:o||r,searchText:i,fieldRef:a,setSearchText:l,onCreateTag:s}),t&&p.jsx(mie,{...e,values:n,searchText:i,addItemToSelectedValues:c,onCreateTag:s})]})]})}function mie(e){return p.jsx(b7,{children:p.jsxs("div",{className:pn.footer,children:[p.jsx("div",{className:pn.footerTitle,children:p.jsx(Q,{color:"grey11",variant:"smallBold",children:"Select an existing tag or create a new one"})}),p.jsx(bie,{...e})]})})}function bie(e){const{values:t,selectedValues:n,addItemToSelectedValues:r,searchText:o,onCreateTag:a}=e;return e.loading?p.jsx(yie,{}):e.error?p.jsx(vie,{}):p.jsxs(p.Fragment,{children:[p.jsx(mk,{children:p.jsx("div",{className:pn.optionsContainer,children:Cie(t,new Set([...n]),o).map(i=>p.jsx("div",{children:p.jsx(_t,{title:i,color:"purple",onClick:()=>r(i),size:"medium"},i)},i))})}),o!==""&&p.jsxs("button",{className:pn.footerButton,onClick:a,children:[p.jsx(de,{name:"add",color:"grey11",size:"small"}),p.jsx(Q,{color:"grey12",children:`Create "${o}"`})]})]})}function vie(){const e=C.useContext(vo.ErrorBoundaryContext);return p.jsxs("div",{className:pn.tagErrorContainer,children:[p.jsxs("div",{className:pn.tagErrorLeft,children:[p.jsx(de,{name:"alert",size:"large",color:"tomato11"}),p.jsx(Q,{variant:"normal",color:"tomato11",children:"Failed to load the tags."})]}),e&&p.jsx(_e,{endIcon:"refresh",color:"tomato",onClick:e==null?void 0:e.reset,invisible:!0,children:"Retry"})]})}function yie(){return p.jsx("div",{className:pn.optionsContainer,children:p.jsx("div",{className:pn.tagsSkeleton,children:p.jsx(Oi,{height:"100%",width:"100%"})})})}function xie(e){const{openState:t}=e;return p.jsx("div",{className:pn[`overlay-${t}`]})}function Cie(e,t,n){function r(a){return!t.has(a)}function o(a,i){return a.toLowerCase().includes(i.toLowerCase())}return Array.from(e).filter(a=>r(a)&&o(a,n))}const wie="_root_12r1j_1",kie="_common_12r1j_9 _variant-normal_3isg4_16 _base_3isg4_12",Sie="_textarea_12r1j_26 _common_12r1j_9 _variant-normal_3isg4_16 _base_3isg4_12",Die="_autoGrow_12r1j_41 _common_12r1j_9 _variant-normal_3isg4_16 _base_3isg4_12",zf={root:wie,common:kie,textarea:Sie,autoGrow:Die};function _ie(e){const{onChange:t,value:n,sx:r,paddingLeft:o=8,paddingRight:a=8,placeholder:i,...l}=e,s=C.useRef(null);function c(d){n===void 0&&s.current!==null&&(s.current.textContent=R4(d.target.value)),t==null||t(d.target.value)}const u={paddingLeft:o,paddingRight:a};return p.jsxs("div",{className:zf.root,style:r,children:[p.jsx("textarea",{...l,className:zf.textarea,style:u,onChange:c,placeholder:i,value:n}),p.jsx("div",{className:zf.autoGrow,style:u,ref:s,children:R4(n||i)})]})}function R4(e){return(e??"").concat(" ")}const $ie=C.forwardRef(function(t,n){const{inputMode:r="text",...o}=t;return p.jsx(xl,{...o,ref:n,inputMode:r})}),Eie="_textOverflow_1f74w_1";function Mie(e){const{children:t}=e;return p.jsx("span",{className:Eie,children:t})}const Aie="_lightTheme_16yz3_1",Tie="_darkTheme_16yz3_5",D1={lightTheme:Aie,darkTheme:Tie},Au=Object.values(V4).flatMap(e=>Object.entries(e));function Pie(e){Au.forEach(([t,n])=>{ol(n)||e.style.setProperty(`--${t}`,n)})}function Rie(e){Au.forEach(([t,n])=>{ol(n)||e.style.setProperty(`--${t}`,null)})}function B4(e,t){e.classList.add(D1[`${t}Theme`]),Au.forEach(([n,r])=>{ol(r)&&e.style.setProperty(`--${n}`,r[t])})}function jf(e){e.classList.remove(D1.darkTheme),e.classList.remove(D1.lightTheme),Au.forEach(([t,n])=>{ol(n)&&e.style.setProperty(`--${t}`,null)})}function Bie(e){const{children:t,mode:n="system"}=e;return C.useInsertionEffect(()=>(Pie(document.body),()=>Rie(document.body)),[]),C.useInsertionEffect(()=>{if(n==="dark"||n==="light")return B4(document.body,n),()=>jf(document.body);function r(i){o(i.matches)}function o(i){jf(document.body),B4(document.body,i?"dark":"light")}const a=window.matchMedia("(prefers-color-scheme: dark)");return o(a.matches),a.addEventListener("change",r),()=>{a.removeEventListener("change",r),jf(document.body)}},[n]),p.jsx(p.Fragment,{children:t})}const Iie="_toast_1e6xe_1",Oie="_inline_1e6xe_11 _toast_1e6xe_1",Fie="_content_1e6xe_21",Nie="_separator_1e6xe_28",Lie="_button_1e6xe_34 _variant-bold_3isg4_24 _base_3isg4_12",zie="_card_1e6xe_48 _toast_1e6xe_1",jie="_closeButton_1e6xe_61",ca={toast:Iie,inline:Oie,content:Fie,separator:Nie,button:Lie,card:zie,closeButton:jie};function hS(e){const{anchor:t,open:n,title:r,seconds:o,action:a,cancel:i,onOpenChange:l}=e,s=fe.useStableCallback(l);return C.useEffect(()=>{if(!n||!o)return;const c=setTimeout(()=>{s(!1)},o*1e3);return()=>clearTimeout(c)},[o,n,s]),p.jsx(Oa,{anchor:t,open:n,focusOnEnter:!1,onOpenChange:l,onInteractOutside:c=>c.preventDefault(),onEscapeKeyDown:c=>{a&&c.preventDefault()},children:e.variant==="card"?p.jsx(Hie,{title:r,subtitle:e.subtitle,action:a,cancel:i,onOpenChange:l}):p.jsx(Vie,{icon:e.icon,loadingIndicator:e.loadingIndicator,title:r,action:a,cancel:i,onOpenChange:l})})}function Vie(e){const{icon:t,loadingIndicator:n,title:r,action:o,cancel:a,onOpenChange:i}=e;return p.jsxs("div",{className:ca.inline,children:[p.jsxs("div",{className:ca.content,children:[!!t&&p.jsx(de,{name:t,color:"grey11",size:"medium"}),n&&p.jsx(Oc,{color:"dark12"}),p.jsx(Q,{variant:"normal",color:"white",children:r})]}),(o||a)&&p.jsxs(p.Fragment,{children:[p.jsx("div",{className:ca.separator}),o&&p.jsx("button",{className:ca.button,onClick:()=>{i==null||i(!1),o.onClick()},children:o.title}),a&&p.jsx(rt,{icon:"close",size:"medium",hasPadding:!1,onClick:a.onClick})]})]})}function Hie(e){const{title:t,subtitle:n,action:r,onOpenChange:o,cancel:a}=e;function i(){a==null||a.onClick(),o==null||o(!1)}return p.jsxs("div",{className:ca.card,children:[p.jsx("div",{className:ca.closeButton,children:p.jsx(rt,{icon:"close",size:"medium",hasPadding:!1,onClick:i})}),n?p.jsxs($e,{flexDirection:"column",alignItems:"flex-start",children:[p.jsx(Q,{variant:"bold",children:t}),p.jsx(Q,{children:n})]}):p.jsx(Q,{variant:"normal",children:t}),r&&p.jsx(_e,{size:"medium",onClick:()=>{o==null||o(!1),r.onClick()},children:r.title})]})}function Wie(e){const{children:t}=e,[n,r]=C.useState({title:"",key:0}),[o,a]=C.useState(!1),{key:i,variant:l="inline",title:s,subtitle:c,seconds:u,action:d,icon:f="check",anchor:h=p.jsx($e,{position:"fixed",bottom:24,width:"100%"})}=n,g=C.useMemo(()=>({showToast:m=>{r({...Kie,...m,key:Date.now()}),a(!0)}}),[]);return p.jsxs(p.Fragment,{children:[p.jsx(hS,{variant:l,anchor:h,open:o,icon:f,title:s,subtitle:c,seconds:u,action:d,onOpenChange:a},i),p.jsx(gS.Provider,{value:g,children:t})]})}const Kie={seconds:5};function Uie(){const e=C.useContext(gS);if(e===void 0)throw new Error("useToast must be used within a ToastProvider");return e}const gS=C.createContext({showToast:()=>{}});var Ha="ToggleGroup",[mS,bS]=Le(Ha,[Pn]),vS=Pn(),jg=C.forwardRef((e,t)=>{const{type:n,...r}=e;if(n==="single"){const o=r;return p.jsx(Zie,{...o,ref:t})}if(n==="multiple"){const o=r;return p.jsx(Gie,{...o,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${Ha}\``)});jg.displayName=Ha;var[yS,xS]=mS(Ha),Zie=C.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i,l]=ct({prop:n,defaultProp:r,onChange:o});return p.jsx(yS,{scope:e.__scopeToggleGroup,type:"single",value:i?[i]:[],onItemActivate:l,onItemDeactivate:C.useCallback(()=>l(""),[l]),children:p.jsx(CS,{...a,ref:t})})}),Gie=C.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[i=[],l]=ct({prop:n,defaultProp:r,onChange:o}),s=C.useCallback(u=>l((d=[])=>[...d,u]),[l]),c=C.useCallback(u=>l((d=[])=>d.filter(f=>f!==u)),[l]);return p.jsx(yS,{scope:e.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:s,onItemDeactivate:c,children:p.jsx(CS,{...a,ref:t})})});jg.displayName=Ha;var[qie,Yie]=mS(Ha),CS=C.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:o=!0,orientation:a,dir:i,loop:l=!0,...s}=e,c=vS(n),u=Nr(i),d={role:"group",dir:u,...s};return p.jsx(qie,{scope:n,rovingFocus:o,disabled:r,children:o?p.jsx($l,{asChild:!0,...c,orientation:a,dir:u,loop:l,children:p.jsx(ee.div,{...d,ref:t})}):p.jsx(ee.div,{...d,ref:t})})}),Pc="ToggleGroupItem",wS=C.forwardRef((e,t)=>{const n=xS(Pc,e.__scopeToggleGroup),r=Yie(Pc,e.__scopeToggleGroup),o=vS(e.__scopeToggleGroup),a=n.value.includes(e.value),i=r.disabled||e.disabled,l={...e,pressed:a,disabled:i},s=C.useRef(null);return r.rovingFocus?p.jsx(za,{asChild:!0,...o,focusable:!i,active:a,ref:s,children:p.jsx(I4,{...l,ref:t})}):p.jsx(I4,{...l,ref:t})});wS.displayName=Pc;var I4=C.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:r,...o}=e,a=xS(Pc,n),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},l=a.type==="single"?i:void 0;return p.jsx(Hh,{...l,...o,ref:t,onPressedChange:s=>{s?a.onItemActivate(r):a.onItemDeactivate(r)}})}),kS=jg,SS=wS;function Jie(e){const t=Xn(),{children:n,density:r="regular",disabled:o=t==null?void 0:t.disabled,size:a=(t==null?void 0:t.size)??"medium",color:i=(t==null?void 0:t.color)??"purple",...l}=e;return p.jsx(kS,{...l,asChild:!0,disabled:o,children:p.jsx($r,{density:r,size:a,color:i,children:n})})}function Xie(e){const t=Xn(),{children:n,startIcon:r,endIcon:o,...a}=e,i=(t==null?void 0:t.color)??"purple",l=(t==null?void 0:t.size)??"medium";return p.jsx(SS,{...a,asChild:!0,children:p.jsx(_e,{size:l,color:i,startIcon:r,endIcon:o,children:n})})}var Vg="Toolbar",[Qie,gse]=Le(Vg,[Pn,bS]),Hg=Pn(),DS=bS(),[ele,_S]=Qie(Vg),$S=k.forwardRef((e,t)=>{const{__scopeToolbar:n,orientation:r="horizontal",dir:o,loop:a=!0,...i}=e,l=Hg(n),s=Nr(o);return p.jsx(ele,{scope:n,orientation:r,dir:s,children:p.jsx($l,{asChild:!0,...l,orientation:r,dir:s,loop:a,children:p.jsx(ee.div,{role:"toolbar","aria-orientation":r,dir:s,...i,ref:t})})})});$S.displayName=Vg;var ES="ToolbarSeparator",MS=k.forwardRef((e,t)=>{const{__scopeToolbar:n,...r}=e,o=_S(ES,n);return p.jsx(Zk,{orientation:o.orientation==="horizontal"?"vertical":"horizontal",...r,ref:t})});MS.displayName=ES;var tle="ToolbarButton",Wg=k.forwardRef((e,t)=>{const{__scopeToolbar:n,...r}=e,o=Hg(n);return p.jsx(za,{asChild:!0,...o,focusable:!e.disabled,children:p.jsx(ee.button,{type:"button",...r,ref:t})})});Wg.displayName=tle;var nle="ToolbarLink",rle=k.forwardRef((e,t)=>{const{__scopeToolbar:n,...r}=e,o=Hg(n);return p.jsx(za,{asChild:!0,...o,focusable:!0,children:p.jsx(ee.a,{...r,ref:t,onKeyDown:J(e.onKeyDown,a=>{a.key===" "&&a.currentTarget.click()})})})});rle.displayName=nle;var AS="ToolbarToggleGroup",TS=k.forwardRef((e,t)=>{const{__scopeToolbar:n,...r}=e,o=_S(AS,n),a=DS(n);return p.jsx(kS,{"data-orientation":o.orientation,dir:o.dir,...a,...r,ref:t,rovingFocus:!1})});TS.displayName=AS;var ole="ToolbarToggleItem",PS=k.forwardRef((e,t)=>{const{__scopeToolbar:n,...r}=e,o=DS(n),a={__scopeToolbar:e.__scopeToolbar};return p.jsx(Wg,{asChild:!0,...a,children:p.jsx(SS,{...o,...r,ref:t})})});PS.displayName=ole;var ale=$S,ile=MS,Kg=Wg,lle=TS,sle=PS;const cle="_toolbar_stii4_1",ule={toolbar:cle};function dle(e){const{sx:t,...n}=e;return p.jsx(ale,{...n,className:ule.toolbar,style:t})}const fle=C.forwardRef(function(t,n){const r=Xn(),{children:o,disabled:a=r==null?void 0:r.disabled,...i}=t;return p.jsx(Kg,{...i,asChild:!0,disabled:a,ref:n,children:p.jsx(_e,{size:"small",color:"grey",children:o})})});function ple(e){return p.jsx($r,{...e})}function hle(e){return p.jsx(Wk,{...e,size:"small",color:"grey",renderTrigger:({button:t,disabled:n})=>p.jsx(Kg,{asChild:!0,disabled:n,children:t})})}function gle(e){return p.jsx(Kk,{...e})}function mle(){return p.jsx(ile,{asChild:!0,children:p.jsx(Gk,{orientation:"vertical"})})}function ble(e){const t=Xn(),{children:n,disabled:r=t==null?void 0:t.disabled,...o}=e;return p.jsx(Kg,{...o,asChild:!0,disabled:r,children:p.jsx(Wh,{size:"small",color:"grey",children:n})})}function vle(e){const{children:t,density:n,...r}=e;return p.jsx(lle,{...r,asChild:!0,children:p.jsx($r,{density:n,children:t})})}function yle(e){const{children:t,...n}=e;return p.jsx(sle,{...n,asChild:!0,children:p.jsx(_e,{size:"small",color:"grey",children:t})})}const xle="_loading_1dges_1",Cle="_loaded_1dges_5",wle="_fadeIn_1dges_1",Vf={loading:xle,loaded:Cle,fadeIn:wle,"sizing-none":"_sizing-none_1dges_11","sizing-contain":"_sizing-contain_1dges_15","sizing-cover":"_sizing-cover_1dges_21","borderRadius-0":"_borderRadius-0_1dges_27","borderRadius-4":"_borderRadius-4_1dges_31"};function kle(e){const{src:t,onLoad:n,sizing:r="none",borderRadius:o=0,boxShadow:a,withControls:i=!0,animateOnLoad:l=!0,sx:s,...c}=e,u=C.useRef(null),[d,f]=C.useState(!1);C.useEffect(()=>{var b;(b=u.current)==null||b.load()},[t]);function h(){if(l)return d?"loaded":"loading"}const g=h();function m(){f(!0),n==null||n()}return p.jsxs("video",{...c,ref:u,controls:i,className:W(Vf[`sizing-${r}`],Vf[`borderRadius-${o}`],g&&Vf[g]),style:{...s,boxShadow:a&&Se.boxShadow[a]},onLoadedData:m,children:[p.jsx("source",{src:t,type:"video/mp4"}),p.jsx("track",{kind:"captions"})]})}var Ug="Tabs",[Sle,mse]=Le(Ug,[Pn]),RS=Pn(),[Dle,Zg]=Sle(Ug),BS=k.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:a,orientation:i="horizontal",dir:l,activationMode:s="automatic",...c}=e,u=Nr(l),[d,f]=ct({prop:r,onChange:o,defaultProp:a});return p.jsx(Dle,{scope:n,baseId:Lt(),value:d,onValueChange:f,orientation:i,dir:u,activationMode:s,children:p.jsx(ee.div,{dir:u,"data-orientation":i,...c,ref:t})})});BS.displayName=Ug;var IS="TabsList",OS=k.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,a=Zg(IS,n),i=RS(n);return p.jsx($l,{asChild:!0,...i,orientation:a.orientation,dir:a.dir,loop:r,children:p.jsx(ee.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});OS.displayName=IS;var FS="TabsTrigger",NS=k.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...a}=e,i=Zg(FS,n),l=RS(n),s=jS(i.baseId,r),c=VS(i.baseId,r),u=r===i.value;return p.jsx(za,{asChild:!0,...l,focusable:!o,active:u,children:p.jsx(ee.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":c,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:s,...a,ref:t,onMouseDown:J(e.onMouseDown,d=>{!o&&d.button===0&&d.ctrlKey===!1?i.onValueChange(r):d.preventDefault()}),onKeyDown:J(e.onKeyDown,d=>{[" ","Enter"].includes(d.key)&&i.onValueChange(r)}),onFocus:J(e.onFocus,()=>{const d=i.activationMode!=="manual";!u&&!o&&d&&i.onValueChange(r)})})})});NS.displayName=FS;var LS="TabsContent",zS=k.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:a,...i}=e,l=Zg(LS,n),s=jS(l.baseId,r),c=VS(l.baseId,r),u=r===l.value,d=k.useRef(u);return k.useEffect(()=>{const f=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(f)},[]),p.jsx(pt,{present:o||u,children:({present:f})=>p.jsx(ee.div,{"data-state":u?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":s,hidden:!f,id:c,tabIndex:0,...i,ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0},children:f&&a})})});zS.displayName=LS;function jS(e,t){return`${e}-trigger-${t}`}function VS(e,t){return`${e}-content-${t}`}var _le=BS,$le=OS,Ele=NS,Mle=zS;const Ale="_darkTheme_16yz3_5",Tle="_window_19zhx_3",Ple="_frame_19zhx_14",Rle="_windowToolbarSection_19zhx_22",Ble="_windowTitleSection_19zhx_23",Ile="_windowSidebarSection_19zhx_24",Ole="_windowControls_19zhx_47",Fle="_windowControl_19zhx_47",Nle="_tabs_19zhx_61",Lle="_tabsList_19zhx_67",zle="_tabsListChild_19zhx_90",jle="_tabsTrigger_19zhx_107 _tabsListChild_19zhx_90",Vle="_tabsTriggerMenu_19zhx_144",Hle="_newTabButton_19zhx_156 _tabsListChild_19zhx_90",Wle="_tabsContent_19zhx_171",st={darkTheme:Ale,window:Tle,frame:Ple,windowToolbarSection:Rle,windowTitleSection:Ble,windowSidebarSection:Ile,windowControls:Ole,windowControl:Fle,tabs:Nle,tabsList:Lle,tabsListChild:zle,tabsTrigger:jle,tabsTriggerMenu:Vle,newTabButton:Hle,tabsContent:Wle};function Kle(e){const{sx:t,...n}=e;return p.jsx("div",{...n,style:t,className:st.window})}function Ule({title:e}){return p.jsxs("header",{className:st.frame,children:[p.jsx("div",{className:st.windowToolbarSection,children:p.jsxs("div",{className:st.windowControls,children:[p.jsx("span",{className:st.windowControl}),p.jsx("span",{className:st.windowControl}),p.jsx("span",{className:st.windowControl})]})}),p.jsx("div",{className:st.windowTitleSection,children:e}),p.jsx("div",{className:st.windowSidebarSection})]})}function Zle(e){return p.jsx(_le,{...e,activationMode:"manual",className:st.tabs})}function Gle(e){const{children:t,onAddNewTab:n,...r}=e;return p.jsxs($le,{...r,className:st.tabsList,children:[t,p.jsx("div",{className:st.newTabButton,children:p.jsx(rt,{icon:"add",onClick:n,hiddenLabel:"Add new tab"})})]})}function qle(e){const{children:t,menu:n,value:r,...o}=e;return p.jsx(Ele,{...o,"aria-label":r,asChild:!0,onMouseDown:a=>{const i=a.target,l=an.findFocusableAncestor(i);l!==a.currentTarget&&l!==a.currentTarget.parentElement&&a.preventDefault(),i===a.currentTarget&&i.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})},value:r,children:p.jsxs("div",{className:st.tabsTrigger,children:[p.jsx(Q,{color:"inherit",component:"span",noWrap:!0,variant:"emphasized",sx:{flexGrow:1,position:"relative"},children:t}),n?p.jsx("div",{className:st.tabsTriggerMenu,children:p.jsxs(Ag,{children:[p.jsx(Tg,{children:p.jsx(rt,{icon:"moreVert",hiddenLabel:`tab-${r}-menu-button`})}),p.jsx(Pg,{align:"start",children:n})]})}):void 0]})})}function Yle(e){return p.jsx(Mle,{...e,className:st.tabsContent})}const Jle="data:image/svg+xml,%3csvg%20width='204'%20height='200'%20viewBox='0%200%20204%20200'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M101.647%20200C156.876%20200%20201.647%20155.228%20201.647%20100C201.647%2044.7715%20156.876%200%20101.647%200C46.419%200%201.64746%2044.7715%201.64746%20100C1.64746%20155.228%2046.419%20200%20101.647%20200Z'%20fill='%23E9E8EA'/%3e%3cg%20filter='url(%23filter0_d_3577_14997)'%3e%3crect%20x='2'%20y='26'%20width='200'%20height='147'%20rx='4'%20fill='white'/%3e%3c/g%3e%3ccircle%20cx='18.0073'%20cy='38'%20r='4'%20fill='%23F1EEFE'/%3e%3ccircle%20cx='30.0073'%20cy='38'%20r='4'%20fill='%23F1EEFE'/%3e%3ccircle%20cx='42.0073'%20cy='38'%20r='4'%20fill='%23F1EEFE'/%3e%3crect%20x='14'%20y='50'%20width='53'%20height='113'%20rx='2'%20fill='%23F1EEFE'/%3e%3crect%20x='76'%20y='51'%20width='113'%20height='111'%20rx='1'%20stroke='%23F1EEFE'%20stroke-width='2'/%3e%3cpath%20d='M154.373%20128H110.943C109.134%20128%20107.686%20126.636%20107.686%20125C107.686%20123.364%20109.134%20122%20110.943%20122H154.373C156.183%20122%20157.631%20123.364%20157.631%20125C157.993%20126.636%20156.545%20128%20154.373%20128Z'%20fill='%239E8CFC'/%3e%3cpath%20d='M128.029%2089.941L109.604%20108.367C108.836%20109.135%20107.418%20108.945%20106.454%20107.981C105.49%20107.017%20105.3%20105.599%20106.068%20104.831L124.494%2086.4054C125.201%2085.6979%20126.461%2085.8032%20127.409%2086.5788C127.572%2086.7122%20127.734%2086.8488%20127.888%2086.9919C128.784%2087.8205%20128.879%2089.0917%20128.029%2089.941Z'%20fill='%239E8CFC'/%3e%3cpath%20d='M123.808%20108.343L105.382%2089.9175C104.614%2089.1497%20104.804%2087.732%20105.768%2086.7678C106.732%2085.8035%20108.15%2085.6142%20108.918%2086.3819L127.343%20104.808C128.051%20105.515%20127.946%20106.775%20127.17%20107.723C127.037%20107.886%20126.9%20108.048%20126.757%20108.202C125.928%20109.098%20124.657%20109.193%20123.808%20108.343Z'%20fill='%239E8CFC'/%3e%3cpath%20d='M160.029%2089.941L141.604%20108.367C140.836%20109.135%20139.418%20108.945%20138.454%20107.981C137.49%20107.017%20137.3%20105.599%20138.068%20104.831L156.494%2086.4054C157.201%2085.6979%20158.461%2085.8032%20159.409%2086.5788C159.572%2086.7122%20159.734%2086.8488%20159.888%2086.9919C160.784%2087.8205%20160.879%2089.0917%20160.029%2089.941Z'%20fill='%239E8CFC'/%3e%3cpath%20d='M155.808%20108.343L137.382%2089.9175C136.614%2089.1497%20136.804%2087.732%20137.768%2086.7678C138.732%2085.8035%20140.15%2085.6142%20140.918%2086.3819L159.343%20104.808C160.051%20105.515%20159.946%20106.775%20159.17%20107.723C159.037%20107.886%20158.9%20108.048%20158.757%20108.202C157.928%20109.098%20156.657%20109.193%20155.808%20108.343Z'%20fill='%239E8CFC'/%3e%3cdefs%3e%3cfilter%20id='filter0_d_3577_14997'%20x='0'%20y='26'%20width='204'%20height='151'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dy='2'/%3e%3cfeGaussianBlur%20stdDeviation='1'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.422529%200%200%200%200%200.397708%200%200%200%200%200.575%200%200%200%200.18%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_3577_14997'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_3577_14997'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e";exports.ActionList=K$;exports.ActionListItem=K4;exports.ActionListLabel=U$;exports.Alert=lb;exports.AlertProvider=ST;exports.AnimatedElement=ka;exports.AnimatedList=P1;exports.AnimatedSuspense=eae;exports.Avatar=qT;exports.Badge=_t;exports.BlankSlate=a5;exports.BlankSlateActions=c5;exports.BlankSlateDescription=l5;exports.BlankSlateIcon=sP;exports.BlankSlateImage=s5;exports.BlankSlateTitle=i5;exports.Box=$e;exports.Button=_e;exports.ButtonGroup=$r;exports.Card=G1;exports.CardContent=q1;exports.CardFooter=RP;exports.CardHeader=MP;exports.CardHeaderActions=TP;exports.CardHeaderTitle=AP;exports.CardImage=PP;exports.Carousel=YP;exports.CarouselItem=oR;exports.Checkbox=m5;exports.CheckerBoard=Y1;exports.CircleIcon=mR;exports.CodeBlock=J5;exports.ColorInput=EV;exports.ComboBox=aK;exports.ComboBoxContent=iK;exports.ComboBoxInput=sK;exports.ComboBoxItem=lK;exports.ComboboxAction=Rp;exports.ConjoinedIcons=gK;exports.ContentEditable=A8;exports.Cropper=TJ;exports.DateInput=D9;exports.DatePicker=FJ;exports.DefaultErrorMessage=$ee;exports.Dialog=cX;exports.DialogActionButton=hX;exports.DialogActionLink=gX;exports.DialogActions=pX;exports.DialogCancelButton=mX;exports.DialogContent=fX;exports.DialogHeader=uX;exports.DialogOptions=UX;exports.DialogOptionsItem=ZX;exports.Dot=QX;exports.DropdownMenu=Ag;exports.DropdownMenuContent=Pg;exports.DropdownMenuItem=wee;exports.DropdownMenuLabel=nk;exports.DropdownMenuTrigger=Tg;exports.EditableText=_ee;exports.ErrorBoundary=Eee;exports.Field=Vee;exports.FieldControl=Kee;exports.FieldFooter=Uee;exports.FieldIcon=Hee;exports.FieldLabel=Wee;exports.FieldSet=Jee;exports.FileDropZone=ote;exports.FileUploadButton=ate;exports.FilterField=gte;exports.Form=KV;exports.FormDateInput=aW;exports.FormField=_9;exports.FormInput=LW;exports.FormInputField=ou;exports.FormSearchInput=O9;exports.Gradient=wte;exports.Group=Ete;exports.GroupItem=Lte;exports.HairlineButton=ik;exports.HeaderTabLink=Hte;exports.Icon=de;exports.IconButton=rt;exports.Image=Uc;exports.InlineLabel=UW;exports.Kbd=Ute;exports.LazyCodeBlock=hL;exports.LazyRender=Gte;exports.Line=nne;exports.ListItem=ine;exports.MediaCard=_ne;exports.MediaCardPlaceholder=uk;exports.NumberInput=Tne;exports.OverflowContainer=sk;exports.OverflowEndAdornment=Bg;exports.OverflowItem=Rg;exports.Popover=Oa;exports.Portal=Ine;exports.PreviewCard=VP;exports.PreviewContent=WP;exports.PreviewImage=HP;exports.PrismicLogo=H4;exports.ProgressBar=ck;exports.ProgressCircle=Oc;exports.RadioBigCard=Une;exports.RadioButton=gk;exports.RadioCard=tre;exports.RadioGroup=Hne;exports.ScrollArea=mk;exports.SearchInput=Zh;exports.Select=Wk;exports.SelectCard=roe;exports.SelectGhostTrigger=toe;exports.SelectItem=Kk;exports.Separator=Gk;exports.Skeleton=Oi;exports.SliceCard=voe;exports.SliceSelectCard=_oe;exports.Slider=Yoe;exports.SuspenseImage=Z1;exports.Switch=dae;exports.Tab=vae;exports.Table=Nae;exports.TableBody=zae;exports.TableCell=Vae;exports.TableHead=Lae;exports.TableRow=jae;exports.Tag=Zae;exports.TagField=gie;exports.Text=Q;exports.TextArea=_ie;exports.TextInput=$ie;exports.TextOverflow=Mie;exports.ThemeProvider=Bie;exports.Toast=hS;exports.ToastProvider=Wie;exports.ToggleButton=Wh;exports.ToggleButtonGroup=Jie;exports.ToggleButtonGroupItem=Xie;exports.Toolbar=dle;exports.ToolbarButton=fle;exports.ToolbarButtonGroup=ple;exports.ToolbarSelect=hle;exports.ToolbarSelectItem=gle;exports.ToolbarSeparator=mle;exports.ToolbarToggleButton=ble;exports.ToolbarToggleButtonGroup=vle;exports.ToolbarToggleButtonGroupItem=yle;exports.Tooltip=yl;exports.TooltipProvider=EW;exports.UnorderedList=ane;exports.Video=kle;exports.Window=Kle;exports.WindowFrame=Ule;exports.WindowTabs=Zle;exports.WindowTabsContent=Yle;exports.WindowTabsList=Gle;exports.WindowTabsTrigger=qle;exports.contentEditableClass=QY;exports.contentEditableMultilinePlaceholderClass=tJ;exports.contentEditablePlaceholderClass=eJ;exports.cssTheme=g$;exports.dialogErrorImage=Jle;exports.getProgressPropsFromMediaStatus=fk;exports.handleEditorFlushSyncError=XY;exports.theme=Se;exports.useAlert=DT;exports.useEditor=M8;exports.useMediaQuery=m$;exports.useToast=Uie;
|
package/dist/index.es.js
CHANGED
|
@@ -48646,6 +48646,7 @@ const sk = ye(function(t, n) {
|
|
|
48646
48646
|
renderEndIcon: v ? () => v : void 0,
|
|
48647
48647
|
completed: m,
|
|
48648
48648
|
readOnly: f,
|
|
48649
|
+
textVariant: "bold",
|
|
48649
48650
|
children: r
|
|
48650
48651
|
}
|
|
48651
48652
|
)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
3
|
"@internationalized/date": "3.5.5",
|
|
4
|
-
"@prismicio/editor-support": "0.4.
|
|
4
|
+
"@prismicio/editor-support": "0.4.57",
|
|
5
5
|
"@radix-ui/react-avatar": "1.1.0",
|
|
6
6
|
"@radix-ui/react-checkbox": "1.1.1",
|
|
7
7
|
"@radix-ui/react-dialog": "1.1.1",
|
|
@@ -119,5 +119,5 @@
|
|
|
119
119
|
"sideEffects": false,
|
|
120
120
|
"stableVersion": "0.0.0",
|
|
121
121
|
"types": "./dist/index.d.ts",
|
|
122
|
-
"version": "0.4.
|
|
122
|
+
"version": "0.4.57"
|
|
123
123
|
}
|