@inkorange/space-ui 1.3.0 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -3,8 +3,8 @@
3
3
  <!-- badges:start -->
4
4
 
5
5
  [![npm](https://img.shields.io/npm/v/@inkorange/space-ui)](https://www.npmjs.com/package/@inkorange/space-ui)
6
- ![coverage](https://img.shields.io/badge/coverage-80%25-yellowgreen)
7
- ![minzip](https://img.shields.io/badge/minzip-25.4%20kB-blue)
6
+ ![coverage](https://img.shields.io/badge/coverage-78%25-yellowgreen)
7
+ ![minzip](https://img.shields.io/badge/minzip-27.8%20kB-blue)
8
8
  ![dependencies](https://img.shields.io/badge/dependencies-0-blue)
9
9
  [![docs](https://img.shields.io/badge/docs-live%20gallery-0b7dd6)](https://space-components.vercel.app)
10
10
 
@@ -18,7 +18,7 @@ compose and nothing to opt into.
18
18
  resolve against the registry rather than the repository. This sheet is a
19
19
  screenshot of the real components, shot from the gallery — see
20
20
  `pnpm assets`. -->
21
- <img alt="Stickersheet: Button, Badge, Select, TextField, Slider, Progress, IconToggle, RadioGroup, Loader, Tabs, icons, Text, TextArea and Card — plain and with an image — and a Message banner on a dark ground"
21
+ <img alt="Stickersheet: Button, Badge, Select, TextField, Slider, Progress, IconToggle, RadioGroup, Loader, Tabs, icons, Text, TextArea, Card plain and with an image, an open Popover, Pagination and a Message banner on a dark ground"
22
22
  src="https://raw.githubusercontent.com/inkorange/space-ui/main/.github/assets/components.jpg"
23
23
  width="100%">
24
24
 
@@ -162,11 +162,11 @@ it exposes.
162
162
  | | |
163
163
  | --- | --- |
164
164
  | **Typography** | [Text](https://space-components.vercel.app/?story=components--typography--text-sizes) · [Link](https://space-components.vercel.app/?story=components--typography--text-sizes) · [Heading](https://space-components.vercel.app/?story=components--typography--headings) · [Badge](https://space-components.vercel.app/?story=components--typography--badges) · [Separator](https://space-components.vercel.app/?story=components--typography--separator) |
165
- | **Layout** | [Card](https://space-components.vercel.app/?story=components--layout--card) · [Flex](https://space-components.vercel.app/?story=components--layout--flex-and-grid) · [Grid](https://space-components.vercel.app/?story=components--layout--flex-and-grid) · [Box](https://space-components.vercel.app/?story=components--layout--flex-and-grid) |
165
+ | **Layout** | [Card](https://space-components.vercel.app/?story=components--layout--card) · [Flex](https://space-components.vercel.app/?story=components--layout--flex-and-grid) · [Grid](https://space-components.vercel.app/?story=components--layout--flex-and-grid) · [Box](https://space-components.vercel.app/?story=components--layout--flex-and-grid) · [Pagination](https://space-components.vercel.app/?story=components--layout--pagination) |
166
166
  | **Forms** | [Autocomplete](https://space-components.vercel.app/?story=components--forms--autocomplete) · [TextField](https://space-components.vercel.app/?story=components--forms--text-field) · [TextArea](https://space-components.vercel.app/?story=components--forms--text-area) · [Select](https://space-components.vercel.app/?story=components--forms--select) · [Slider](https://space-components.vercel.app/?story=components--forms--slider) · [RadioGroup](https://space-components.vercel.app/?story=components--forms--radio-group) |
167
167
  | **Buttons** | [Button](https://space-components.vercel.app/?story=components--buttons--buttons) · [IconToggle](https://space-components.vercel.app/?story=components--buttons--icon-toggle) |
168
168
  | **Feedback** | [Loader](https://space-components.vercel.app/?story=components--feedback--loader) · [Progress](https://space-components.vercel.app/?story=components--feedback--progress) · [Message](https://space-components.vercel.app/?story=components--feedback--message) |
169
- | **Overlays** | [Dialog](https://space-components.vercel.app/?story=components--overlays--dialog) · [AlertDialog](https://space-components.vercel.app/?story=components--overlays--alert-dialog) · [DropdownMenu](https://space-components.vercel.app/?story=components--overlays--dropdown-menu) · [Tabs](https://space-components.vercel.app/?story=components--overlays--tabs) · [Tooltip](https://space-components.vercel.app/?story=components--overlays--tooltip) |
169
+ | **Overlays** | [Dialog](https://space-components.vercel.app/?story=components--overlays--dialog) · [AlertDialog](https://space-components.vercel.app/?story=components--overlays--alert-dialog) · [DropdownMenu](https://space-components.vercel.app/?story=components--overlays--dropdown-menu) · [Popover](https://space-components.vercel.app/?story=components--overlays--popover) · [Tabs](https://space-components.vercel.app/?story=components--overlays--tabs) · [Tooltip](https://space-components.vercel.app/?story=components--overlays--tooltip) |
170
170
  | **Icons** | [20 icons](https://space-components.vercel.app/?story=components--icons--all-icons) |
171
171
  | **Foundations** | [Color](https://space-components.vercel.app/?story=foundations--color) · [Spacing](https://space-components.vercel.app/?story=foundations--spacing) · [Type scale](https://space-components.vercel.app/?story=foundations--type-scale) · [Motion](https://space-components.vercel.app/?story=foundations--motion) · [Token usage](https://space-components.vercel.app/?story=foundations--token-usage) |
172
172
 
@@ -23,9 +23,10 @@ export interface AutocompleteProps extends Omit<React.InputHTMLAttributes<HTMLIn
23
23
  onValueChange: (value: string) => void;
24
24
  /** The candidate rows, in the order you want them shown. They are narrowed
25
25
  * against what has been typed unless `preFiltered` is set; the order you
26
- * give is always preserved, so ranking stays yours. An empty array with no
27
- * `loading` and no `emptyMessage` shows nothing at all, which is how you
28
- * keep the panel shut until a query is worth answering. */
26
+ * give is always preserved, so ranking stays yours. Nothing is offered
27
+ * until something has been typed. Past that, an empty array with no
28
+ * `loading` and no `emptyMessage` still shows no panel, which is how you
29
+ * hold it shut below a minimum query length. */
29
30
  options: AutocompleteOption[];
30
31
  /** Called when a row is chosen by click or Enter. */
31
32
  onSelect: (value: string, option: AutocompleteOption) => void;
@@ -0,0 +1,64 @@
1
+ import type * as React from "react";
2
+ /**
3
+ * The data Pagination needs, in the shape most APIs return beside a page of
4
+ * results. Pass it as `pagination`. When `onPageClick` reports a page, hand
5
+ * back a copy with only `page` changed — the component works out everything
6
+ * else, including how many pages there are, from these three numbers. With
7
+ * `totalItems` at or below `pageSize` there is only one page, and the
8
+ * component renders nothing.
9
+ */
10
+ export interface PaginationState {
11
+ /** The page being shown, counting from 1. If your API counts from 0, add
12
+ * one before passing it in. A page past either end is clamped to the first
13
+ * or last rather than rejected. */
14
+ page: number;
15
+ /** How many items one page holds — the size you requested, not how many
16
+ * came back on the final page. Must be above zero. */
17
+ pageSize: number;
18
+ /** How many items exist across every page: the full result count, not the
19
+ * length of the page you are showing. Usually the `total` or `count` field
20
+ * of the response. */
21
+ totalItems: number;
22
+ }
23
+ /** How many pages a pagination object describes — never fewer than one. */
24
+ export declare function pageCount({ pageSize, totalItems }: PaginationState): number;
25
+ /**
26
+ * The page numbers to offer, with `null` marking a gap to draw as an ellipsis.
27
+ *
28
+ * Always the same length once there are enough pages to need gaps — first,
29
+ * last, `siblings` either side of the current page, and two slots that are
30
+ * either a gap or the single page a gap would have hidden. A window that grew
31
+ * and shrank as you paged would change the control's width under the cursor,
32
+ * so the next click would land on a different number than the last one did.
33
+ *
34
+ * Exported so a caller rendering its own markup can reuse the arithmetic.
35
+ */
36
+ export declare function pageWindow(page: number, total: number, siblings?: number): (number | null)[];
37
+ export interface PaginationProps extends Omit<React.HTMLAttributes<HTMLElement>, "children"> {
38
+ /** Where the list stands: the current page, the page size, and the total
39
+ * item count. Pass the object your API returns; the page count is derived
40
+ * from it. With one page or fewer nothing renders. */
41
+ pagination: PaginationState;
42
+ /** Called with the page the reader chose — a number, Previous or Next.
43
+ * Not called for the page already showing. Fetch or slice, then hand back
44
+ * an updated `pagination`. */
45
+ onPageClick: (page: number) => void;
46
+ /** Page numbers shown either side of the current one. Default 1. */
47
+ siblings?: number;
48
+ /** Ambient motion: the lit arc orbiting the current page's rim. The glass
49
+ * skin is always applied — only its motion is optional. Default true. */
50
+ animated?: boolean;
51
+ }
52
+ /**
53
+ * Page-by-page navigation for a long list.
54
+ *
55
+ * Holds no state: give it the pagination object you already have and it
56
+ * reports which page was clicked.
57
+ *
58
+ * Every control is the same limb-lit glass as Select and Button, but only the
59
+ * current page's rim orbits. Nine arcs turning in one row would be noise; one
60
+ * turning is where you are. Previous and Next stay in place when they
61
+ * cannot be used, so the numbers never slide sideways on the first and last
62
+ * page.
63
+ */
64
+ export declare function Pagination({ pagination, onPageClick, siblings, animated, className, "aria-label": ariaLabel, ...rest }: PaginationProps): React.JSX.Element | null;
@@ -0,0 +1,43 @@
1
+ import type * as React from "react";
2
+ import { type ReactNode } from "react";
3
+ import { type ButtonProps } from "./Button";
4
+ export interface PopoverProps extends Omit<ButtonProps, "children"> {
5
+ /** What the trigger shows. The trigger is always a Button, so this is its
6
+ * content — text, or an icon with `iconOnly` and an `aria-label`. */
7
+ label: ReactNode;
8
+ /** The panel's contents. Anything: a form, a filter set, a prompt. For a
9
+ * list of actions reach for DropdownMenu; for a line of text, Tooltip. */
10
+ children?: ReactNode;
11
+ /** Controls the panel. Omit both this and `onOpenChange` to let the popover
12
+ * manage itself. */
13
+ open?: boolean;
14
+ /** Called whenever the panel opens or closes, including by Escape or a
15
+ * click elsewhere. */
16
+ onOpenChange?: (open: boolean) => void;
17
+ /** Open on first render when uncontrolled. Focus is left where it is, so a
18
+ * popover shown on arrival never steals the page's focus. */
19
+ defaultOpen?: boolean;
20
+ /** Which side of the trigger the panel prefers. It flips to the other side
21
+ * when there is no room. Default `bottom`. */
22
+ side?: "top" | "bottom";
23
+ /** Which edge of the trigger the panel lines up with. Use `end` for a
24
+ * trigger near the right of the viewport. Default `start`. */
25
+ align?: "start" | "center" | "end";
26
+ /** Merged onto the panel. */
27
+ panelClassName?: string;
28
+ }
29
+ /**
30
+ * A button that opens a floating panel of anything — a small form, a set of
31
+ * filters, a prompt — without leaving the page.
32
+ *
33
+ * It rides the browser's own popover layer, so the panel stacks above
34
+ * everything without a z-index arms race and closes on Escape or a click
35
+ * elsewhere by the platform's rules rather than an approximation of them. It
36
+ * sits next to its trigger, flips above it when there is no room below, and
37
+ * stays attached to it if the page scrolls or the layout around it shifts.
38
+ *
39
+ * Opening moves focus into the panel so a keyboard user lands on its first
40
+ * control; closing with Escape hands focus back to the trigger. The panel is
41
+ * labelled by the trigger, so it announces as what the button said it was.
42
+ */
43
+ export declare function Popover({ label, children, open: openProp, onOpenChange, defaultOpen, side, align, panelClassName, onClick, ...buttonProps }: PopoverProps): React.JSX.Element;
package/dist/index.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),t=require("react/jsx-runtime"),K={0:"0",1:"var(--spacing-xs)",2:"var(--spacing-sm)",3:"var(--spacing-md)",4:"var(--spacing-md)",5:"var(--spacing-lg)",6:"var(--spacing-xl)"};function Z({m:e,mt:n,mb:s,p:o,pb:r},c){const a={...e!==void 0&&{margin:K[e]},...n!==void 0&&{marginTop:K[n]},...s!==void 0&&{marginBottom:K[s]},...o!==void 0&&{padding:K[o]},...r!==void 0&&{paddingBottom:K[r]},...c};return Object.keys(a).length>0?a:void 0}function v(...e){return e.filter(Boolean).join(" ")}const Ae="_text_4vcq4_1",Be="_size1_4vcq4_5",Fe="_size2_4vcq4_11",We="_size3_4vcq4_16",Pe="_size4_4vcq4_21",Ge="_size5_4vcq4_27",Ue="_size6_4vcq4_33",Ke="_medium_4vcq4_39",Xe="_bold_4vcq4_43",Ye="_colorMuted_4vcq4_47",Qe="_colorDanger_4vcq4_51",Je="_colorSuccess_4vcq4_55",et="_colorWarning_4vcq4_59",se={text:Ae,size1:Be,size2:Fe,size3:We,size4:Pe,size5:Ge,size6:Ue,medium:Ke,bold:Xe,colorMuted:Ye,colorDanger:Qe,colorSuccess:Je,colorWarning:et},me=l.forwardRef(function({as:n="span",size:s,weight:o,color:r,className:c,style:a,m:u,mt:f,mb:m,p:i,pb:p,...x},C){return l.createElement(n,{...x,ref:C,className:v(se.text,s&&se[`size${s}`],o&&se[o],r&&se[`color${r[0].toUpperCase()}${r.slice(1)}`],c),style:Z({m:u,mt:f,mb:m,p:i,pb:p},a)})}),tt="_heading_vs4zk_1",nt="_size4_vs4zk_7",st="_size5_vs4zk_13",ot="_size6_vs4zk_19",rt="_size7_vs4zk_25",lt="_size8_vs4zk_31",ct="_size9_vs4zk_37",at="_colorMuted_vs4zk_43",it="_colorDanger_vs4zk_47",ut="_alignCenter_vs4zk_51",X={heading:tt,size4:nt,size5:st,size6:ot,size7:rt,size8:lt,size9:ct,colorMuted:at,colorDanger:it,alignCenter:ut},he=l.forwardRef(function({as:n="h2",size:s,color:o,align:r,className:c,style:a,m:u,mt:f,mb:m,p:i,pb:p,...x},C){return l.createElement(n,{...x,ref:C,className:v(X.heading,s&&X[`size${s}`],o==="muted"&&X.colorMuted,o==="danger"&&X.colorDanger,r==="center"&&X.alignCenter,c),style:Z({m:u,mt:f,mb:m,p:i,pb:p},a)})}),dt="_link_1qa7j_1",ft="_size1_1qa7j_10",_t="_size2_1qa7j_16",Ct="_size3_1qa7j_21",_e={link:dt,size1:ft,size2:_t,size3:Ct},pt=l.forwardRef(function({asChild:n,size:s,className:o,style:r,m:c,mt:a,mb:u,p:f,pb:m,children:i,...p},x){const C=v(_e.link,s&&_e[`size${s}`],o),g=Z({m:c,mt:a,mb:u,p:f,pb:m},r);if(n&&l.isValidElement(i)){const w=i;return l.cloneElement(w,{...p,className:v(C,w.props.className),style:{...g,...w.props.style}})}return t.jsx("a",{...p,ref:x,className:C,style:g,children:i})}),gt="_flex_v4ziu_1",mt="_gap1_v4ziu_5",ht="_gap2_v4ziu_9",vt="_gap3_v4ziu_13",xt="_gap4_v4ziu_17",wt="_gap5_v4ziu_21",bt="_gap6_v4ziu_25",jt="_directionRow_v4ziu_29",yt="_directionColumn_v4ziu_33",kt="_alignStart_v4ziu_37",Rt="_alignCenter_v4ziu_41",Lt="_alignEnd_v4ziu_45",$t="_alignBaseline_v4ziu_49",It="_alignStretch_v4ziu_53",qt="_justifyStart_v4ziu_57",Mt="_justifyCenter_v4ziu_61",zt="_justifyEnd_v4ziu_65",Nt="_justifyBetween_v4ziu_69",Dt="_wrapWrap_v4ziu_73",Et="_wrapNowrap_v4ziu_77",F={flex:gt,gap1:mt,gap2:ht,gap3:vt,gap4:xt,gap5:wt,gap6:bt,directionRow:jt,directionColumn:yt,alignStart:kt,alignCenter:Rt,alignEnd:Lt,alignBaseline:$t,alignStretch:It,justifyStart:qt,justifyCenter:Mt,justifyEnd:zt,justifyBetween:Nt,wrapWrap:Dt,wrapNowrap:Et},oe=e=>e[0].toUpperCase()+e.slice(1),Ht=l.forwardRef(function({asChild:n,gap:s,direction:o,align:r,justify:c,wrap:a,className:u,style:f,m,mt:i,mb:p,p:x,pb:C,children:g,...w},j){const b=v(F.flex,s&&F[`gap${s}`],o&&F[`direction${oe(o)}`],r&&F[`align${oe(r)}`],c&&F[`justify${oe(c)}`],a&&F[`wrap${oe(a)}`],u),R=Z({m,mt:i,mb:p,p:x,pb:C},f);if(n&&l.isValidElement(g)){const q=g;return l.cloneElement(q,{...w,className:v(b,q.props.className),style:{...R,...q.props.style}})}return t.jsx("div",{...w,ref:j,className:b,style:R,children:g})}),St=l.forwardRef(function({style:n,m:s,mt:o,mb:r,p:c,pb:a,...u},f){return t.jsx("div",{...u,ref:f,style:Z({m:s,mt:o,mb:r,p:c,pb:a},n)})}),Tt="_grid_erpqq_1",Zt="_cols1_erpqq_5",Vt="_cols2_erpqq_9",Ot="_cols3_erpqq_13",At="_smCols2_erpqq_18",Bt="_smCols3_erpqq_21",Ft="_mdCols2_erpqq_26",Wt="_mdCols3_erpqq_29",Pt="_gap1_erpqq_33",Gt="_gap2_erpqq_37",Ut="_gap3_erpqq_41",Kt="_gap4_erpqq_45",Xt="_gap5_erpqq_49",Yt="_gap6_erpqq_53",W={grid:Tt,cols1:Zt,cols2:Vt,cols3:Ot,smCols2:At,smCols3:Bt,mdCols2:Ft,mdCols3:Wt,gap1:Pt,gap2:Gt,gap3:Ut,gap4:Kt,gap5:Xt,gap6:Yt},Qt=l.forwardRef(function({columns:n,gap:s,className:o,style:r,m:c,mt:a,mb:u,p:f,pb:m,...i},p){const x=typeof n=="string"?[W[`cols${n}`]]:n?[n.initial&&W[`cols${n.initial}`],n.sm&&W[`smCols${n.sm}`],n.md&&W[`mdCols${n.md}`]]:[];return t.jsx("div",{...i,ref:p,className:v(W.grid,...x,s&&W[`gap${s}`],o),style:Z({m:c,mt:a,mb:u,p:f,pb:m},r)})}),Jt="_badge_1twqf_2",e1="_size1_1twqf_10",t1="_size2_1twqf_19",n1="_colorMuted_1twqf_28",s1="_colorPrimary_1twqf_33",o1="_colorSuccess_1twqf_38",r1="_colorDanger_1twqf_43",l1="_colorWarning_1twqf_48",c1="_colorCyan_1twqf_53",a1="_colorPurple_1twqf_58",i1="_colorOrange_1twqf_63",u1="_colorAccent_1twqf_68",d1="_colorYellow_1twqf_73",f1="_solid_1twqf_81",_1="_wrap_1twqf_89",Y={badge:Jt,size1:e1,size2:t1,colorMuted:n1,colorPrimary:s1,colorSuccess:o1,colorDanger:r1,colorWarning:l1,colorCyan:c1,colorPurple:a1,colorOrange:i1,colorAccent:u1,colorYellow:d1,solid:f1,wrap:_1},C1=e=>e[0].toUpperCase()+e.slice(1),p1=l.forwardRef(function({color:n="primary",variant:s="soft",size:o="1",wrap:r,className:c,style:a,m:u,mt:f,mb:m,p:i,pb:p,...x},C){return t.jsx("span",{...x,ref:C,className:v(Y.badge,Y[`color${C1(n)}`],s==="solid"&&Y.solid,Y[`size${o}`],r&&Y.wrap,c),style:Z({m:u,mt:f,mb:m,p:i,pb:p},a)})}),g1="_separator_vao01_1",m1="_full_vao01_7",Ce={separator:g1,full:m1},h1=l.forwardRef(function({size:n="4",className:s,...o},r){return t.jsx("span",{...o,ref:r,role:"separator",className:v(Ce.separator,n==="4"&&Ce.full,s)})}),v1="_card_1ooot_2",x1="_image_1ooot_14",w1="_hasImage_1ooot_41",ae={card:v1,image:x1,hasImage:w1},b1=l.forwardRef(function({className:n,style:s,image:o,children:r,m:c,mt:a,mb:u,p:f,pb:m,...i},p){return t.jsxs("div",{...i,ref:p,className:v(ae.card,o!=null&&ae.hasImage,n),style:Z({m:c,mt:a,mb:u,p:f,pb:m},s),children:[o!=null&&t.jsx("div",{className:ae.image,children:o}),r]})}),j1="_spaceButton_kjhqx_14",y1="_rimRotate_kjhqx_1",k1="_glintSweep_kjhqx_1",R1="_iconOnly_kjhqx_97",L1="_lg_kjhqx_104",$1="_sm_kjhqx_110",I1="_micro_kjhqx_122",q1="_stars_kjhqx_136",M1="_fullWidth_kjhqx_141",z1="_ember_kjhqx_147",N1="_label_kjhqx_157",D1="_star_kjhqx_136",E1="_twinkle_kjhqx_1",S={spaceButton:j1,rimRotate:y1,glintSweep:k1,iconOnly:R1,lg:L1,sm:$1,micro:I1,stars:q1,fullWidth:M1,ember:z1,label:N1,star:D1,twinkle:E1};function H1(e){return function(){e|=0,e=e+1831565813|0;let n=Math.imul(e^e>>>15,1|e);return n=n+Math.imul(n^n>>>7,61|n)^n,((n^n>>>14)>>>0)/4294967296}}function S1(e){let n=2166136261;for(let s=0;s<e.length;s++)n^=e.charCodeAt(s),n=Math.imul(n,16777619);return n>>>0}const ve=l.forwardRef(function({iconOnly:n,ember:s,size:o="md",fullWidth:r,animated:c=!0,className:a,children:u,...f},m){const i=l.useId(),p=l.useMemo(()=>{const C=H1(S1(i));return Array.from({length:3},()=>({top:`${12+C()*58}%`,left:`${8+C()*80}%`,animationDelay:`${(C()*3.2).toFixed(2)}s`,animationDuration:`${(2.8+C()*1.8).toFixed(2)}s`}))},[i]),x=[S.spaceButton,n?S.iconOnly:"",s?S.ember:"",o!=="md"?S[o]:"",r?S.fullWidth:"",a??""].filter(Boolean).join(" ");return t.jsxs("button",{ref:m,className:x,"data-animated":c?void 0:"false",...f,children:[o!=="micro"&&t.jsx("span",{className:S.stars,"aria-hidden":!0,children:p.map((C,g)=>t.jsx("i",{className:S.star,style:C},g))}),t.jsx("span",{className:S.label,children:u})]})}),T1="_wrap_dwcut_5",Z1="_sm_dwcut_30",V1="_md_dwcut_36",O1="_lg_dwcut_42",A1="_orbit_dwcut_49",B1="_planet_dwcut_58",F1="_moon_dwcut_73",W1="_label_dwcut_92",P={wrap:T1,sm:Z1,md:V1,lg:O1,orbit:A1,planet:B1,"sp-loader-planet-pulse":"_sp-loader-planet-pulse_dwcut_1",moon:F1,"sp-loader-orbit":"_sp-loader-orbit_dwcut_1",label:W1,"sp-loader-reduced-pulse":"_sp-loader-reduced-pulse_dwcut_1"};function P1({size:e="md",label:n,className:s}){return t.jsxs("div",{className:v(P.wrap,P[e],s),role:"status","aria-live":"polite","aria-label":n??"Loading",children:[t.jsxs("span",{className:P.orbit,children:[t.jsx("span",{className:P.planet}),t.jsx("span",{className:P.moon})]}),n&&t.jsx("span",{className:P.label,children:n})]})}const G1="_content_1bxfq_6",U1={content:G1},K1=350,X1=80,re=8,Q=8;function Y1({triggerRef:e,tooltipId:n,show:s,hide:o,children:r}){const c=r.props;return l.cloneElement(r,{ref:e,"aria-describedby":n,onPointerEnter:a=>{var u;(u=c.onPointerEnter)==null||u.call(c,a),a.pointerType==="mouse"&&s()},onPointerLeave:a=>{var u;(u=c.onPointerLeave)==null||u.call(c,a),o()},onFocus:a=>{var u;(u=c.onFocus)==null||u.call(c,a),s(!0)},onBlur:a=>{var u;(u=c.onBlur)==null||u.call(c,a),o()},onClick:a=>{var u;(u=c.onClick)==null||u.call(c,a),o()}})}function xe({label:e,side:n="bottom",children:s}){const o=l.useId(),[r,c]=l.useState(!1),[a,u]=l.useState(null),f=l.useRef(null),m=l.useRef(null),i=l.useRef(null),p=l.useRef(null),x=()=>{i.current&&(clearTimeout(i.current),i.current=null),p.current&&(clearTimeout(p.current),p.current=null)},C=(w=!1)=>{if(x(),w){c(!0);return}i.current=setTimeout(()=>c(!0),K1)},g=()=>{x(),p.current=setTimeout(()=>c(!1),X1)};return l.useEffect(()=>x,[]),l.useLayoutEffect(()=>{const w=m.current;if(!w)return;if(!r){w.matches(":popover-open")&&w.hidePopover();return}w.matches(":popover-open")||w.showPopover();const j=f.current;if(!j)return;const b=j.getBoundingClientRect(),R=w.offsetWidth,q=w.offsetHeight,M=(_,y,I,H)=>Math.min(Math.max(_+y/2-I/2,Q),Math.max(H-I-Q,Q)),$=(_,y,I,H)=>{const A=y+I<=H-Q;return{fitsNear:_>=Q,fitsFar:A}};if(n==="left"||n==="right"){const _=b.right+re,y=b.left-R-re,{fitsNear:I,fitsFar:H}=$(y,_,R,window.innerWidth),A=n==="right"?H||!I?_:y:I||!H?y:_;u({top:M(b.top,b.height,q,window.innerHeight),left:A});return}const E=b.bottom+re,L=b.top-q-re,{fitsNear:z,fitsFar:V}=$(L,E,q,window.innerHeight);u({top:n==="bottom"?V||!z?E:L:z||!V?L:E,left:M(b.left,b.width,R,window.innerWidth)})},[r,n,e]),!e||!l.isValidElement(s)?t.jsx(t.Fragment,{children:s}):t.jsxs(t.Fragment,{children:[t.jsx(Y1,{triggerRef:f,tooltipId:o,show:C,hide:g,children:s}),t.jsx("div",{ref:m,id:o,popover:"auto",role:"tooltip",className:U1.content,style:a?{top:a.top,left:a.left}:void 0,onToggle:w=>{w.nativeEvent.newState==="closed"&&r&&c(!1)},children:e})]})}const Q1="_group_1tdav_4",J1="_segment_1tdav_15",en="_active_1tdav_35",tn="_vertical_1tdav_46",le={group:Q1,segment:J1,active:en,vertical:tn};function nn({options:e,value:n,onValueChange:s,orientation:o="horizontal",className:r=""}){const c=o==="vertical";return t.jsx("div",{className:`${le.group} ${c?le.vertical:""} ${r}`,role:"group",children:e.map(a=>t.jsx(xe,{label:a.label,side:c?"right":"bottom",children:t.jsx("button",{type:"button",className:`${le.segment} ${a.value===n?le.active:""}`,"aria-label":a.label,"aria-pressed":a.value===n,onClick:()=>{a.value!==n&&s(a.value)},children:a.icon})},a.value))})}const sn="_root_1bvtq_2",on="_trigger_1bvtq_7",rn="_labelWrap_1bvtq_30",ln="_sizer_1bvtq_8",cn="_triggerLabel_1bvtq_70",an="_chevron_1bvtq_77",un="_listbox_1bvtq_82",dn="_item_1bvtq_110",T={root:sn,trigger:on,labelWrap:rn,sizer:ln,triggerLabel:cn,chevron:an,listbox:un,item:dn},fn="_spaceControl_4ou97_17",_n="_spaceSlider_4ou97_74",Cn="_spacePanel_4ou97_111",pn="_spaceInput_4ou97_34",gn="_spaceTextArea_4ou97_226",mn={spaceControl:fn,spaceSlider:_n,spacePanel:Cn,spaceInput:pn,spaceTextArea:gn},O=mn,we=l.createContext(null),hn=()=>{const e=l.useContext(we);if(!e)throw new Error("Select.Item must be inside a Select");return e},be=(e,n)=>`${e}-${encodeURIComponent(n)}`;function vn(e){const n=[],s=o=>{l.Children.forEach(o,r=>{if(!l.isValidElement(r))return;const c=r.props;r.type===je&&typeof c.value=="string"?n.push({value:c.value,label:c.children,disabled:c.disabled}):c.children&&s(c.children)})};return s(e),n}function xn({value:e,onValueChange:n,disabled:s,placeholder:o,animated:r=!0,className:c,children:a,...u}){const[f,m]=l.useState(!1),[i,p]=l.useState(null),x=l.useId(),C=l.useRef(null),g=l.useRef(null),w=l.useRef(null),[j,b]=l.useState(null),[R,q]=l.useState(null),M=l.useMemo(()=>vn(a),[a]),$=l.useMemo(()=>M.filter(_=>!_.disabled).map(_=>_.value),[M]),E=l.useMemo(()=>M.map(_=>_.label),[M]),L=l.useCallback(_=>{var y;return((y=M.find(I=>I.value===_))==null?void 0:y.label)??null},[M]);l.useEffect(()=>{if(!f)return;const _=y=>{g.current&&!g.current.contains(y.target)&&m(!1)};return document.addEventListener("mousedown",_),()=>document.removeEventListener("mousedown",_)},[f]),l.useLayoutEffect(()=>{if(!f)return;const _=C.current;if(!_)return;const y=_.getBoundingClientRect();b(_.offsetWidth);const I=window.innerHeight-y.bottom-16;q(Math.min(380,Math.max(120,I)))},[f]),l.useEffect(()=>{var _;f&&((_=w.current)==null||_.focus())},[f]);const z=_=>{p(_??$[0]??null),m(!0)},V=_=>{const y=i?$.indexOf(i):-1,I=Math.min(Math.max(y+_,0),$.length-1);p($[I]??null)},N=e?L(e):null;return t.jsx(we.Provider,{value:{value:e,onValueChange:n,disabled:s,open:f,setOpen:m,highlighted:i,setHighlighted:p,listboxId:x,values:$,labelFor:L,triggerRef:C},children:t.jsxs("div",{ref:g,className:T.root,children:[t.jsxs("button",{type:"button",...u,ref:C,disabled:s,className:v(T.trigger,O.spaceControl,"spSelectTrigger",c),"data-animated":r?void 0:"false","data-state":f?"open":"closed","aria-haspopup":"listbox","aria-expanded":f,"aria-controls":x,onClick:()=>f?m(!1):z(e||null),onKeyDown:_=>{(_.key==="ArrowDown"||_.key==="Enter"||_.key===" ")&&(_.preventDefault(),z(e||null))},children:[t.jsxs("span",{className:T.labelWrap,children:[t.jsxs("span",{className:T.sizer,"data-sizer":"","aria-hidden":"true",children:[E.map((_,y)=>t.jsx("span",{children:_},y)),o&&t.jsx("span",{children:o})]}),t.jsx("span",{className:T.triggerLabel,children:N??o??""})]}),t.jsx("svg",{className:T.chevron,width:"9",height:"9",viewBox:"0 0 9 9","aria-hidden":"true",children:t.jsx("path",{d:"M0.5 3 L4.5 7 L8.5 3",fill:"none",stroke:"currentColor",strokeWidth:"1.2"})})]}),t.jsx("div",{ref:w,id:x,role:"listbox",tabIndex:-1,hidden:!f,"aria-activedescendant":i?be(x,i):void 0,className:v(T.listbox,O.spacePanel),"data-animated":r?void 0:"false",style:j!=null||R!=null?{...j!=null?{"--_select-trigger-width":`${j}px`}:{},...R!=null?{maxHeight:`${R}px`}:{}}:void 0,onKeyDown:_=>{var y,I;_.key==="Escape"?(_.stopPropagation(),m(!1),(y=C.current)==null||y.focus()):_.key==="ArrowDown"?(_.preventDefault(),V(1)):_.key==="ArrowUp"?(_.preventDefault(),V(-1)):_.key==="Home"?(_.preventDefault(),p($[0]??null)):_.key==="End"?(_.preventDefault(),p($[$.length-1]??null)):_.key==="Enter"||_.key===" "?(_.preventDefault(),i&&(n(i),m(!1),(I=C.current)==null||I.focus())):_.key==="Tab"&&m(!1)},children:a})]})})}function je({value:e,disabled:n,children:s}){const o=hn(),r=o.value===e,c=o.highlighted===e;return t.jsx("div",{id:be(o.listboxId,e),role:"option","aria-selected":r,"aria-disabled":n||void 0,"data-highlighted":c?"":void 0,className:v(T.item,"spSelectItem"),onMouseEnter:()=>!n&&o.setHighlighted(e),onClick:()=>{var a;n||(o.onValueChange(e),o.setOpen(!1),(a=o.triggerRef.current)==null||a.focus())},children:s})}const wn=Object.assign(xn,{Item:je}),bn="_root_1lx7y_1",jn="_input_1lx7y_7",yn="_slot_1lx7y_17",ie={root:bn,input:jn,slot:yn},kn=l.forwardRef(function({className:n,style:s,animated:o=!0,children:r,...c},a){return t.jsxs("div",{className:v(ie.root,O.spaceInput,"spTextFieldRoot",n),"data-animated":o?void 0:"false",style:s,children:[r,t.jsx("input",{...c,ref:a,className:v(ie.input,"spTextFieldInput")})]})});function Rn({children:e}){return t.jsx("span",{className:ie.slot,children:e})}const ue=Object.assign(kn,{Slot:Rn}),Ln="_root_1qu6w_1",$n="_textarea_1qu6w_6",pe={root:Ln,textarea:$n},In=l.forwardRef(function({className:n,style:s,animated:o=!0,...r},c){return t.jsx("div",{className:v(pe.root,O.spaceInput,O.spaceTextArea,"spTextFieldRoot",n),"data-animated":o?void 0:"false",style:s,children:t.jsx("textarea",{...r,ref:c,className:v(pe.textarea,"spTextAreaInput")})})}),qn="_wrap_1pkwo_12",Mn="_field_1pkwo_16",zn="_panel_1pkwo_22",Nn="_status_1pkwo_34",Dn="_list_1pkwo_44",En="_option_1pkwo_57",Hn="_active_1pkwo_69",Sn="_label_1pkwo_79",Tn="_meta_1pkwo_86",Zn="_footer_1pkwo_92",D={wrap:qn,field:Mn,panel:zn,status:Nn,list:Dn,option:En,active:Hn,label:Sn,meta:Tn,footer:Zn};function Vn({value:e,onValueChange:n,options:s,onSelect:o,icon:r,caseSensitive:c=!1,preFiltered:a=!1,loading:u=!1,loadingMessage:f="Loading…",emptyMessage:m,footer:i,animated:p=!0,className:x,style:C,...g}){const[w,j]=l.useState(!1),[b,R]=l.useState(0),q=l.useRef(null),M=l.useRef(null),$=l.useId(),E=d=>typeof d.label=="string"?d.label:d.search??d.value,L=l.useMemo(()=>{if(a)return s;const d=c?e:e.toLowerCase();return d===""?s:s.filter(h=>(c?E(h):E(h).toLowerCase()).includes(d))},[s,e,c,a]),z=l.useMemo(()=>L.filter(d=>!d.disabled),[L]),V=L.length>0||u||m!=null,N=w&&V;l.useEffect(()=>R(0),[L]),l.useEffect(()=>{var h;if(!N)return;const d=(h=M.current)==null?void 0:h.querySelector(`[data-index="${b}"]`);d==null||d.scrollIntoView({block:"nearest"})},[b,N]);const _=l.useCallback(()=>j(!1),[]);l.useEffect(()=>{if(!N)return;const d=h=>{const B=q.current;B&&h.target instanceof Node&&!B.contains(h.target)&&_()};return document.addEventListener("pointerdown",d),()=>document.removeEventListener("pointerdown",d)},[N,_]);const y=d=>{d.disabled||(o(d.value,d),j(!1))},I=d=>{if(z.length===0)return;const h=L[b],Oe=((h&&!h.disabled?z.indexOf(h):-1)+d+z.length)%z.length,fe=z[Oe];fe&&R(L.indexOf(fe))},H=d=>{if(d.key==="Escape"){N&&d.stopPropagation(),j(!1);return}if(d.key==="Tab"){j(!1);return}if(!N){d.key==="ArrowDown"&&j(!0);return}if(d.key==="ArrowDown")d.preventDefault(),I(1);else if(d.key==="ArrowUp")d.preventDefault(),I(-1);else if(d.key==="Home"){d.preventDefault();const h=z[0];h&&R(L.indexOf(h))}else if(d.key==="End"){d.preventDefault();const h=z[z.length-1];h&&R(L.indexOf(h))}else if(d.key==="Enter"){const h=L[b];h&&!h.disabled&&(d.preventDefault(),y(h))}},A=N?L[b]:void 0;return t.jsxs("div",{ref:q,className:v(D.wrap,x),style:C,children:[t.jsx(ue,{...g,type:g.type??"text",role:"combobox",animated:p,className:D.field,autoComplete:"off","aria-expanded":N,"aria-controls":$,"aria-autocomplete":"list","aria-activedescendant":A&&!A.disabled?`${$}-${b}`:void 0,value:e,onFocus:d=>{var h;(h=g.onFocus)==null||h.call(g,d),j(!0)},onClick:d=>{var h;(h=g.onClick)==null||h.call(g,d),j(!0)},onKeyDown:d=>{var h;(h=g.onKeyDown)==null||h.call(g,d),H(d)},onChange:d=>{n(d.target.value),j(!0)},children:r!=null&&t.jsx(ue.Slot,{children:r})}),t.jsxs("div",{className:v(D.panel,O.spacePanel),hidden:!N,"data-animated":p?void 0:"false",children:[u&&t.jsx("p",{className:D.status,children:f}),!u&&L.length===0&&m!=null&&t.jsx("p",{className:D.status,children:m}),t.jsx("ul",{ref:M,id:$,role:"listbox",className:D.list,hidden:u||L.length===0,children:L.map((d,h)=>t.jsxs("li",{id:`${$}-${h}`,"data-index":h,role:"option","aria-selected":h===b,"aria-disabled":d.disabled||void 0,className:v(D.option,h===b&&!d.disabled&&D.active,"spAutocompleteOption"),onMouseEnter:()=>!d.disabled&&R(h),onPointerDown:B=>{B.preventDefault(),y(d)},children:[t.jsx("span",{className:D.label,children:d.label}),d.meta!=null&&t.jsx("span",{className:D.meta,children:d.meta})]},d.value))}),i!=null&&t.jsx("div",{className:D.footer,children:i})]})]})}const On="_root_14a1b_1",An="_track_14a1b_12",Bn="_range_14a1b_22",Fn="_thumb_14a1b_28",Wn="_input_14a1b_38",J={root:On,track:An,range:Bn,thumb:Fn,input:Wn},Pn=l.forwardRef(function({value:n,onValueChange:s,min:o,max:r,step:c,disabled:a,className:u,"aria-label":f},m){const i=n[0]??o,p=r===o?0:(i-o)/(r-o)*100;return t.jsxs("span",{className:v(J.root,O.spaceSlider,u),"data-disabled":a||void 0,children:[t.jsx("span",{className:v(J.track,"spSliderTrack"),children:t.jsx("span",{className:v(J.range,"spSliderRange"),style:{width:`${p}%`}})}),t.jsx("span",{className:v(J.thumb,"spSliderThumb"),style:{left:`${p}%`}}),t.jsx("input",{ref:m,type:"range",className:v(J.input,"spSliderInput"),value:i,min:o,max:r,step:c,disabled:a,"aria-label":f,onChange:x=>s([Number(x.target.value)])})]})}),Gn="_root_1qhel_2",Un="_item_1qhel_8",Kn="_selfLabeled_1qhel_15",Xn="_input_1qhel_19",Yn="_orb_1qhel_35",U={root:Gn,item:Un,selfLabeled:Kn,input:Xn,orb:Yn},ye=l.createContext(null);function Qn({value:e,onValueChange:n,disabled:s,className:o,children:r}){const c=l.useId();return t.jsx(ye.Provider,{value:{value:e,onValueChange:n,disabled:s,name:c},children:t.jsx("div",{role:"radiogroup",className:v(U.root,o),children:r})})}function Jn({value:e,disabled:n,children:s}){const o=l.useContext(ye);if(!o)throw new Error("RadioGroup.Item must be inside a RadioGroup");const r=n||o.disabled,c=t.jsxs(t.Fragment,{children:[t.jsx("input",{type:"radio",className:U.input,name:o.name,value:e,checked:o.value===e,disabled:r,onChange:()=>o.onValueChange(e)}),t.jsx("span",{className:v(U.orb,"spRadioOrb"),"aria-hidden":"true"})]});return s==null?t.jsx("span",{className:U.item,children:c}):t.jsxs("label",{className:v(U.item,U.selfLabeled),children:[c,s]})}const es=Object.assign(Qn,{Item:Jn}),ts="_progress_1cre6_16",ns={progress:ts};function ss({value:e,max:n=100,className:s,style:o,...r}){const c=n>0?Math.min(Math.max(e/n*100,0),100):0;return t.jsx("div",{...r,role:"progressbar","aria-valuenow":e,"aria-valuemin":0,"aria-valuemax":n,className:v(ns.progress,s),style:o,children:t.jsx("div",{style:{width:`${c}%`,height:"100%"}})})}const k={width:15,height:15,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0};function os(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M3.5 5.00006C3.22386 5.00006 3 5.22392 3 5.50006L3 11.5001C3 11.7762 3.22386 12.0001 3.5 12.0001L11.5 12.0001C11.7761 12.0001 12 11.7762 12 11.5001L12 5.50006C12 5.22392 11.7761 5.00006 11.5 5.00006L10.25 5.00006C9.97386 5.00006 9.75 4.7762 9.75 4.50006C9.75 4.22392 9.97386 4.00006 10.25 4.00006L11.5 4.00006C12.3284 4.00006 13 4.67163 13 5.50006L13 11.5001C13 12.3285 12.3284 13.0001 11.5 13.0001L3.5 13.0001C2.67157 13.0001 2 12.3285 2 11.5001L2 5.50006C2 4.67163 2.67157 4.00006 3.5 4.00006L4.75 4.00006C5.02614 4.00006 5.25 4.22392 5.25 4.50006C5.25 4.7762 5.02614 5.00006 4.75 5.00006L3.5 5.00006ZM7 1.6364L5.5682 3.0682C5.39246 3.24393 5.10754 3.24393 4.9318 3.0682C4.75607 2.89246 4.75607 2.60754 4.9318 2.4318L7.1818 0.181802C7.26619 0.09741 7.38065 0.049999 7.5 0.049999C7.61935 0.049999 7.73381 0.09741 7.8182 0.181802L10.0682 2.4318C10.2439 2.60754 10.2439 2.89246 10.0682 3.0682C9.89246 3.24393 9.60754 3.24393 9.4318 3.0682L8 1.6364L8 8.5C8 8.77614 7.77614 9 7.5 9C7.22386 9 7 8.77614 7 8.5L7 1.6364Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function rs(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M12.5 3L2.5 3.00002C1.67157 3.00002 1 3.6716 1 4.50002V9.50003C1 10.3285 1.67157 11 2.5 11H7.50003C7.63264 11 7.75982 11.0527 7.85358 11.1465L10 13.2929V11.5C10 11.2239 10.2239 11 10.5 11H12.5C13.3284 11 14 10.3285 14 9.50003V4.5C14 3.67157 13.3284 3 12.5 3ZM2.49999 2.00002L12.5 2C13.8807 2 15 3.11929 15 4.5V9.50003C15 10.8807 13.8807 12 12.5 12H11V14.5C11 14.7022 10.8782 14.8845 10.6913 14.9619C10.5045 15.0393 10.2894 14.9965 10.1464 14.8536L7.29292 12H2.5C1.11929 12 0 10.8807 0 9.50003V4.50002C0 3.11931 1.11928 2.00003 2.49999 2.00002Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function ls(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M8 2.75C8 2.47386 7.77614 2.25 7.5 2.25C7.22386 2.25 7 2.47386 7 2.75V7H2.75C2.47386 7 2.25 7.22386 2.25 7.5C2.25 7.77614 2.47386 8 2.75 8H7V12.25C7 12.5261 7.22386 12.75 7.5 12.75C7.77614 12.75 8 12.5261 8 12.25V8H12.25C12.5261 8 12.75 7.77614 12.75 7.5C12.75 7.22386 12.5261 7 12.25 7H8V2.75Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function cs(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M11.8536 1.14645C11.6583 0.951184 11.3417 0.951184 11.1465 1.14645L3.71455 8.57836C3.62459 8.66832 3.55263 8.77461 3.50251 8.89155L2.04044 12.303C1.9599 12.491 2.00189 12.709 2.14646 12.8536C2.29103 12.9981 2.50905 13.0401 2.69697 12.9596L6.10847 11.4975C6.2254 11.4474 6.3317 11.3754 6.42166 11.2855L13.8536 3.85355C14.0488 3.65829 14.0488 3.34171 13.8536 3.14645L11.8536 1.14645ZM4.42166 9.28547L11.5 2.20711L12.7929 3.5L5.71455 10.5784L4.21924 11.2192L3.78081 10.7808L4.42166 9.28547Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function as(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M1.35248 4.90532C1.35248 2.94498 2.936 1.35248 4.89346 1.35248C6.25769 1.35248 6.86058 1.92336 7.50002 2.93545C8.13946 1.92336 8.74235 1.35248 10.1066 1.35248C12.064 1.35248 13.6476 2.94498 13.6476 4.90532C13.6476 6.74041 12.6013 8.50508 11.4008 9.96927C10.2636 11.3562 8.92194 12.5508 8.00601 13.3664C7.94645 13.4194 7.88869 13.4709 7.83291 13.5206C7.64324 13.6899 7.3568 13.6899 7.16713 13.5206C7.11135 13.4709 7.05359 13.4194 6.99403 13.3664C6.0781 12.5508 4.73641 11.3562 3.59926 9.96927C2.39872 8.50508 1.35248 6.74041 1.35248 4.90532Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function is(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M5.5 2C5.77614 2 6 2.22386 6 2.5V5.5C6 5.77614 5.77614 6 5.5 6H2.5C2.22386 6 2 5.77614 2 5.5C2 5.22386 2.22386 5 2.5 5H5V2.5C5 2.22386 5.22386 2 5.5 2ZM9.5 2C9.77614 2 10 2.22386 10 2.5V5H12.5C12.7761 5 13 5.22386 13 5.5C13 5.77614 12.7761 6 12.5 6H9.5C9.22386 6 9 5.77614 9 5.5V2.5C9 2.22386 9.22386 2 9.5 2ZM2 9.5C2 9.22386 2.22386 9 2.5 9H5.5C5.77614 9 6 9.22386 6 9.5V12.5C6 12.7761 5.77614 13 5.5 13C5.22386 13 5 12.7761 5 12.5V10H2.5C2.22386 10 2 9.77614 2 9.5ZM9 9.5C9 9.22386 9.22386 9 9.5 9H12.5C12.7761 9 13 9.22386 13 9.5C13 9.77614 12.7761 10 12.5 10H10V12.5C10 12.7761 9.77614 13 9.5 13C9.22386 13 9 12.7761 9 12.5V9.5Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function us(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M2 2.5C2 2.22386 2.22386 2 2.5 2H5.5C5.77614 2 6 2.22386 6 2.5C6 2.77614 5.77614 3 5.5 3H3V5.5C3 5.77614 2.77614 6 2.5 6C2.22386 6 2 5.77614 2 5.5V2.5ZM9 2.5C9 2.22386 9.22386 2 9.5 2H12.5C12.7761 2 13 2.22386 13 2.5V5.5C13 5.77614 12.7761 6 12.5 6C12.2239 6 12 5.77614 12 5.5V3H9.5C9.22386 3 9 2.77614 9 2.5ZM2.5 9C2.77614 9 3 9.22386 3 9.5V12H5.5C5.77614 12 6 12.2239 6 12.5C6 12.7761 5.77614 13 5.5 13H2.5C2.22386 13 2 12.7761 2 12.5V9.5C2 9.22386 2.22386 9 2.5 9ZM12.5 9C12.7761 9 13 9.22386 13 9.5V12.5C13 12.7761 12.7761 13 12.5 13H9.5C9.22386 13 9 12.7761 9 12.5C9 12.2239 9.22386 12 9.5 12H12V9.5C12 9.22386 12.2239 9 12.5 9Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function ds(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function fs(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M5.5 1C5.22386 1 5 1.22386 5 1.5C5 1.77614 5.22386 2 5.5 2H9.5C9.77614 2 10 1.77614 10 1.5C10 1.22386 9.77614 1 9.5 1H5.5ZM3 3.5C3 3.22386 3.22386 3 3.5 3H5H10H11.5C11.7761 3 12 3.22386 12 3.5C12 3.77614 11.7761 4 11.5 4H11V12C11 12.5523 10.5523 13 10 13H5C4.44772 13 4 12.5523 4 12V4L3.5 4C3.22386 4 3 3.77614 3 3.5ZM5 4H10V12H5V4Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function _s(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M0.877075 7.49972C0.877075 3.84204 3.84222 0.876892 7.49991 0.876892C11.1576 0.876892 14.1227 3.84204 14.1227 7.49972C14.1227 11.1574 11.1576 14.1226 7.49991 14.1226C3.84222 14.1226 0.877075 11.1574 0.877075 7.49972ZM7.49991 1.82689C4.36689 1.82689 1.82708 4.36671 1.82708 7.49972C1.82708 10.6327 4.36689 13.1726 7.49991 13.1726C10.6329 13.1726 13.1727 10.6327 13.1727 7.49972C13.1727 4.36671 10.6329 1.82689 7.49991 1.82689ZM8.24993 10.5C8.24993 10.9142 7.91414 11.25 7.49993 11.25C7.08571 11.25 6.74993 10.9142 6.74993 10.5C6.74993 10.0858 7.08571 9.75 7.49993 9.75C7.91414 9.75 8.24993 10.0858 8.24993 10.5ZM6.05003 6.25C6.05003 5.57211 6.63511 4.925 7.50003 4.925C8.36496 4.925 8.95003 5.57211 8.95003 6.25C8.95003 6.74118 8.68002 6.99212 8.21447 7.27494C8.16251 7.30651 8.10258 7.34131 8.03847 7.37854L8.03841 7.37858C7.85521 7.48497 7.63788 7.61119 7.47449 7.73849C7.23214 7.92732 6.95003 8.23198 6.95003 8.7C6.95004 9.00376 7.19628 9.25 7.50004 9.25C7.8024 9.25 8.04778 9.00601 8.05002 8.70417L8.05056 8.7033C8.05924 8.6896 8.08493 8.65735 8.15058 8.6062C8.25207 8.52712 8.36508 8.46163 8.51567 8.37436L8.51571 8.37433C8.59422 8.32883 8.68296 8.27741 8.78559 8.21506C9.32004 7.89038 10.05 7.35382 10.05 6.25C10.05 4.92789 8.93511 3.825 7.50003 3.825C6.06496 3.825 4.95003 4.92789 4.95003 6.25C4.95003 6.55376 5.19628 6.8 5.50003 6.8C5.80379 6.8 6.05003 6.55376 6.05003 6.25Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Cs(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M7.5 0.875C5.49797 0.875 3.875 2.49797 3.875 4.5C3.875 6.15288 4.98124 7.54738 6.49373 7.98351C5.2997 8.12901 4.27557 8.55134 3.50407 9.31167C2.52216 10.2794 2.02502 11.72 2.02502 13.5999C2.02502 13.8623 2.23769 14.0749 2.50002 14.0749C2.76236 14.0749 2.97502 13.8623 2.97502 13.5999C2.97502 11.8799 3.42786 10.7206 4.17091 9.9883C4.91536 9.25463 6.02674 8.87499 7.49995 8.87499C8.97317 8.87499 10.0846 9.25463 10.8291 9.98831C11.5721 10.7206 12.025 11.8799 12.025 13.5999C12.025 13.8623 12.2376 14.0749 12.5 14.0749C12.7623 14.075 12.975 13.8623 12.975 13.6C12.975 11.72 12.4778 10.2794 11.4959 9.31166C10.7244 8.55135 9.70025 8.12903 8.50625 7.98352C10.0187 7.5474 11.125 6.15289 11.125 4.5C11.125 2.49797 9.50203 0.875 7.5 0.875ZM4.825 4.5C4.825 3.02264 6.02264 1.825 7.5 1.825C8.97736 1.825 10.175 3.02264 10.175 4.5C10.175 5.97736 8.97736 7.175 7.5 7.175C6.02264 7.175 4.825 5.97736 4.825 4.5Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function ps(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M2.25 7.5C2.25 7.22386 2.47386 7 2.75 7H12.25C12.5261 7 12.75 7.22386 12.75 7.5C12.75 7.77614 12.5261 8 12.25 8H2.75C2.47386 8 2.25 7.77614 2.25 7.5Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function gs(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M10 6.5C10 8.433 8.433 10 6.5 10C4.567 10 3 8.433 3 6.5C3 4.567 4.567 3 6.5 3C8.433 3 10 4.567 10 6.5ZM9.30884 10.0159C8.53901 10.6318 7.56251 11 6.5 11C4.01472 11 2 8.98528 2 6.5C2 4.01472 4.01472 2 6.5 2C8.98528 2 11 4.01472 11 6.5C11 7.56251 10.6318 8.53901 10.0159 9.30884L12.8536 12.1464C13.0488 12.3417 13.0488 12.6583 12.8536 12.8536C12.6583 13.0488 12.3417 13.0488 12.1464 12.8536L9.30884 10.0159Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function ms(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M4.89346 2.35248C3.49195 2.35248 2.35248 3.49359 2.35248 4.90532C2.35248 6.38164 3.20954 7.9168 4.37255 9.33522C5.39396 10.581 6.59464 11.6702 7.50002 12.4778C8.4054 11.6702 9.60608 10.581 10.6275 9.33522C11.7905 7.9168 12.6476 6.38164 12.6476 4.90532C12.6476 3.49359 11.5081 2.35248 10.1066 2.35248C9.27059 2.35248 8.81894 2.64323 8.5397 2.95843C8.27877 3.25295 8.14623 3.58566 8.02501 3.88993C8.00391 3.9429 7.98315 3.99501 7.96211 4.04591C7.88482 4.23294 7.7024 4.35494 7.50002 4.35494C7.29765 4.35494 7.11523 4.23295 7.03793 4.04592C7.01689 3.99501 6.99612 3.94289 6.97502 3.8899C6.8538 3.58564 6.72126 3.25294 6.46034 2.95843C6.18109 2.64323 5.72945 2.35248 4.89346 2.35248ZM1.35248 4.90532C1.35248 2.94498 2.936 1.35248 4.89346 1.35248C6.0084 1.35248 6.73504 1.76049 7.20884 2.2953C7.32062 2.42147 7.41686 2.55382 7.50002 2.68545C7.58318 2.55382 7.67941 2.42147 7.79119 2.2953C8.265 1.76049 8.99164 1.35248 10.1066 1.35248C12.064 1.35248 13.6476 2.94498 13.6476 4.90532C13.6476 6.74041 12.6013 8.50508 11.4008 9.96927C10.2636 11.3562 8.92194 12.5508 8.00601 13.3664C7.94645 13.4194 7.88869 13.4709 7.83291 13.5206C7.64324 13.6899 7.3568 13.6899 7.16713 13.5206C7.11135 13.4709 7.05359 13.4194 6.99403 13.3664C6.0781 12.5508 4.73641 11.3562 3.59926 9.96927C2.39872 8.50508 1.35248 6.74041 1.35248 4.90532Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function hs(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M3.13523 8.84197C3.3241 9.04343 3.64052 9.05363 3.84197 8.86477L7.5 5.43536L11.158 8.86477C11.3595 9.05363 11.6759 9.04343 11.8648 8.84197C12.0536 8.64051 12.0434 8.32409 11.842 8.13523L7.84197 4.38523C7.64964 4.20492 7.35036 4.20492 7.15803 4.38523L3.15803 8.13523C2.95657 8.32409 2.94637 8.64051 3.13523 8.84197Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function vs(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function xs(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M6.1584 3.13508C5.95694 3.32394 5.94673 3.64036 6.13559 3.84182L9.56499 7.49991L6.13559 11.158C5.94673 11.3595 5.95694 11.6759 6.1584 11.8647C6.35986 12.0536 6.67628 12.0434 6.86514 11.8419L10.6151 7.84182C10.7954 7.64946 10.7954 7.35036 10.6151 7.158L6.86514 3.15801C6.67628 2.95655 6.35986 2.94634 6.1584 3.13508Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function ws(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M8.84182 3.13508C9.04328 3.32394 9.05348 3.64036 8.86462 3.84182L5.43523 7.49991L8.86462 11.158C9.05348 11.3595 9.04328 11.6759 8.84182 11.8647C8.64036 12.0536 8.32394 12.0434 8.13508 11.8419L4.38508 7.84182C4.20477 7.64946 4.20477 7.35036 4.38508 7.158L8.13508 3.15801C8.32394 2.95655 8.64036 2.94634 8.84182 3.13508Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function bs(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M3 2.5C3 2.22386 3.22386 2 3.5 2H11.5C11.7761 2 12 2.22386 12 2.5V13.5C12 13.6818 11.9014 13.8492 11.7424 13.9373C11.5834 14.0254 11.3891 14.0203 11.235 13.924L7.5 11.5896L3.765 13.924C3.61087 14.0203 3.41659 14.0254 3.25762 13.9373C3.09864 13.8492 3 13.6818 3 13.5V2.5ZM4 3V12.5979L6.97 10.7416C7.29427 10.539 7.70573 10.539 8.03 10.7416L11 12.5979V3H4Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function ke(e){return t.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",...e,children:t.jsx("path",{d:"M11.8 3.2a.6.6 0 0 0-.85 0L7.5 6.65 4.05 3.2a.6.6 0 1 0-.85.85L6.65 7.5 3.2 10.95a.6.6 0 1 0 .85.85L7.5 8.35l3.45 3.45a.6.6 0 0 0 .85-.85L8.35 7.5l3.45-3.45a.6.6 0 0 0 0-.85Z",fill:"currentColor"})})}function Re(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M7.49991 0.876892C3.84222 0.876892 0.877075 3.84204 0.877075 7.49972C0.877075 11.1574 3.84222 14.1226 7.49991 14.1226C11.1576 14.1226 14.1227 11.1574 14.1227 7.49972C14.1227 3.84204 11.1576 0.876892 7.49991 0.876892ZM1.82707 7.49972C1.82707 4.36671 4.36689 1.82689 7.49991 1.82689C10.6329 1.82689 13.1727 4.36671 13.1727 7.49972C13.1727 10.6327 10.6329 13.1726 7.49991 13.1726C4.36689 13.1726 1.82707 10.6327 1.82707 7.49972ZM8.24992 4.49999C8.24992 4.9142 7.91413 5.24999 7.49992 5.24999C7.08571 5.24999 6.74992 4.9142 6.74992 4.49999C6.74992 4.08577 7.08571 3.74999 7.49992 3.74999C7.91413 3.74999 8.24992 4.08577 8.24992 4.49999ZM6.00003 5.99999H6.50003H7.50003C7.77618 5.99999 8.00003 6.22384 8.00003 6.49999V9.99999H8.50003H9.00003V11H8.50003H7.50003H6.50003H6.00003V9.99999H6.50003H7.00003V6.99999H6.50003H6.00003V5.99999Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Le(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M8.4449 0.608765C8.0183 -0.107015 6.9817 -0.107015 6.55509 0.608766L0.161178 11.3368C-0.275824 12.07 0.252503 13 1.10608 13H13.8939C14.7475 13 15.2758 12.07 14.8388 11.3368L8.4449 0.608765ZM7.4141 1.12073C7.45288 1.05566 7.54712 1.05566 7.5859 1.12073L13.9798 11.8488C14.0196 11.9154 13.9715 12 13.8939 12H1.10608C1.02849 12 0.980454 11.9154 1.02018 11.8488L7.4141 1.12073ZM6.8269 4.48611C6.81221 4.10423 7.11783 3.78663 7.5 3.78663C7.88217 3.78663 8.18778 4.10423 8.1731 4.48612L8.01921 8.48701C8.00848 8.766 7.7792 8.98664 7.5 8.98664C7.2208 8.98664 6.99151 8.766 6.98078 8.48701L6.8269 4.48611ZM8.24989 10.476C8.24989 10.8902 7.9141 11.226 7.49989 11.226C7.08567 11.226 6.74989 10.8902 6.74989 10.476C6.74989 10.0618 7.08567 9.72599 7.49989 9.72599C7.9141 9.72599 8.24989 10.0618 8.24989 10.476Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function $e(e){return t.jsx("svg",{...k,...e,children:t.jsx("path",{d:"M0.877075 7.49988C0.877075 3.84219 3.84222 0.877045 7.49991 0.877045C11.1576 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1576 14.1227 7.49991 14.1227C3.84222 14.1227 0.877075 11.1575 0.877075 7.49988ZM7.49991 1.82704C4.36689 1.82704 1.82708 4.36686 1.82708 7.49988C1.82708 10.6329 4.36689 13.1727 7.49991 13.1727C10.6329 13.1727 13.1727 10.6329 13.1727 7.49988C13.1727 4.36686 10.6329 1.82704 7.49991 1.82704ZM9.85358 5.14644C10.0488 5.3417 10.0488 5.65829 9.85358 5.85355L8.20713 7.49999L9.85358 9.14644C10.0488 9.3417 10.0488 9.65829 9.85358 9.85355C9.65832 10.0488 9.34173 10.0488 9.14647 9.85355L7.50002 8.2071L5.85358 9.85355C5.65832 10.0488 5.34173 10.0488 5.14647 9.85355C4.95121 9.65829 4.95121 9.3417 5.14647 9.14644L6.79292 7.49999L5.14647 5.85355C4.95121 5.65829 4.95121 5.3417 5.14647 5.14644C5.34173 4.95118 5.65832 4.95118 5.85358 5.14644L7.50002 6.79289L9.14647 5.14644C9.34173 4.95118 9.65832 4.95118 9.85358 5.14644Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}const js="_message_1522x_14",ys="_info_1522x_44",ks="_warning_1522x_49",Rs="_alert_1522x_56",Ls="_icon_1522x_63",$s="_body_1522x_74",Is="_title_1522x_83",qs="_text_1522x_90",G={message:js,info:ys,warning:ks,alert:Rs,icon:Ls,body:$s,title:Is,text:qs},Ms={info:t.jsx(Re,{}),warning:t.jsx(Le,{}),alert:t.jsx($e,{})},zs={info:{role:"status",live:"polite"},warning:{role:"status",live:"polite"},alert:{role:"alert"}},Ns=l.forwardRef(function({variant:n="info",title:s,icon:o,className:r,children:c,...a},u){const f=o===void 0?Ms[n]:o,{role:m,live:i}=zs[n];return t.jsxs("div",{...a,ref:u,role:m,"aria-live":i,className:v(G.message,G[n],r),children:[f!=null&&t.jsx("span",{className:G.icon,"aria-hidden":"true",children:f}),t.jsxs("div",{className:G.body,children:[s!=null&&t.jsx("p",{className:G.title,children:s}),c!=null&&t.jsx("div",{className:G.text,children:c})]})]})}),Ds="_dialog_1qqku_2",Es="_inner_1qqku_34",Hs="_size4_1qqku_39",Ss="_title_1qqku_43",Ts="_closeX_1qqku_51",ee={dialog:Ds,inner:Es,size4:Hs,title:Ss,closeX:Ts};let ce=0;const Ie=l.createContext(null),ne=()=>{const e=l.useContext(Ie);if(!e)throw new Error("Dialog parts must be inside a Dialog");return e};function qe(e){return function({open:s,onOpenChange:o,children:r}){const[c,a]=l.useState(!1),u=s!==void 0,f=u?s:c,m=g=>{u||a(g),o==null||o(g)},i=l.useId(),p=l.useId(),[x,C]=l.useState(!1);return t.jsx(Ie.Provider,{value:{open:f,setOpen:m,titleId:i,descId:p,alert:e,hasDesc:x,setHasDesc:C},children:r})}}const Zs=qe(!1),Me=(e,n)=>{if(!l.isValidElement(e))return e;const s=e;return l.cloneElement(s,{onClick:o=>{var r,c;(c=(r=s.props).onClick)==null||c.call(r,o),n()}})};function ze({children:e}){const n=ne();return t.jsx(t.Fragment,{children:Me(e,()=>n.setOpen(!0))})}function de({children:e}){const n=ne();return t.jsx(t.Fragment,{children:Me(e,()=>n.setOpen(!1))})}function Ne({size:e="3",maxWidth:n,className:s,style:o,children:r,...c}){const a=ne(),u=l.useRef(null),f=l.useRef(!1),m=l.useRef(!1);return l.useEffect(()=>{const i=u.current;i&&(a.open&&!i.open?i.showModal():!a.open&&i.open&&i.close())},[a.open]),l.useEffect(()=>{if(a.open)return ce+=1,ce===1&&(document.body.style.overflow="hidden"),()=>{ce-=1,ce===0&&(document.body.style.overflow="")}},[a.open]),t.jsx("dialog",{...c,ref:u,role:a.alert?"alertdialog":void 0,"aria-labelledby":a.titleId,"aria-describedby":a.hasDesc?a.descId:void 0,className:v(ee.dialog,"spDialog",e==="4"&&ee.size4,s),style:{...n?{maxWidth:n}:null,...o},onKeyDownCapture:i=>{var p,x;i.key==="Escape"&&((p=u.current)!=null&&p.querySelector("dialog[open]")||(x=u.current)!=null&&x.querySelector('[role="listbox"]:not([hidden])')&&(f.current=!0))},onCancel:i=>{if(i.preventDefault(),f.current){f.current=!1;return}a.setOpen(!1)},onClose:()=>{a.open&&a.setOpen(!1)},onPointerDown:i=>{m.current=i.target===u.current},onClick:i=>{!a.alert&&i.target===u.current&&m.current&&a.setOpen(!1)},children:t.jsxs("div",{className:ee.inner,children:[!a.alert&&t.jsx("button",{type:"button",className:ee.closeX,"aria-label":"Close",onClick:()=>a.setOpen(!1),children:t.jsx(ke,{width:16,height:16})}),r]})})}function De({className:e,...n}){const s=ne();return t.jsx(he,{as:"h2",size:"5",...n,id:s.titleId,className:v(ee.title,e)})}function Ee(e){const n=ne(),{setHasDesc:s}=n;return l.useLayoutEffect(()=>(s(!0),()=>s(!1)),[s]),t.jsx(me,{as:"p",...e,id:n.descId})}const Vs=Object.assign(Zs,{Trigger:ze,Close:de,Content:Ne,Title:De,Description:Ee}),Os=de,As=de,Bs=Object.assign(qe(!0),{Trigger:ze,Content:Ne,Title:De,Description:Ee,Cancel:Os,Action:As}),Fs="_menu_1hwyv_1",Ws="_label_1hwyv_16",Ps="_item_1hwyv_26",Gs="_danger_1hwyv_45",Us="_separator_1hwyv_49",te={menu:Fs,label:Ws,item:Ps,danger:Gs,separator:Us},He=l.createContext(null),Ks=()=>{const e=l.useContext(He);if(!e)throw new Error("DropdownMenu parts must be inside a DropdownMenu");return e},Se=l.createContext(null),Xs=()=>{const e=l.useContext(Se);if(!e)throw new Error("DropdownMenu parts must be inside a DropdownMenu");return e};function Ys(e){return e.current?(e.current=!1,!0):!1}function ge(e){e.current=!0}function Qs({label:e,align:n="start",children:s,...o}){const[r,c]=l.useState(!1),a=l.useId(),u=l.useRef(null),f=l.useRef(null),m=l.useRef(!1),i=l.useRef(!1),[p,x]=l.useState(null);return l.useLayoutEffect(()=>{var g;const C=f.current;if(C)if(r){const w=u.current;if(w){const j=w.getBoundingClientRect(),b=n==="end"?"auto":j.left,R=n==="end"?window.innerWidth-j.right:"auto";x({top:j.bottom+6,left:b,right:R})}C.showPopover(),(g=C.querySelector('[role="menuitem"]'))==null||g.focus()}else C.matches(":popover-open")&&C.hidePopover()},[r,n]),l.useEffect(()=>{if(!r)return;const C=()=>c(!1);return window.addEventListener("resize",C),()=>window.removeEventListener("resize",C)},[r]),t.jsx(He.Provider,{value:{open:r,setOpen:c,menuId:a},children:t.jsxs(Se.Provider,{value:i,children:[t.jsx(ve,{...o,ref:u,"aria-haspopup":"menu","aria-expanded":r,"aria-controls":a,onClick:C=>{var g;(g=o.onClick)==null||g.call(o,C),!Ys(m)&&c(!r)},children:e}),t.jsx("div",{ref:f,id:a,role:"menu",popover:"auto",className:te.menu,style:p?{top:p.top,left:p.left==="auto"?"auto":p.left,right:p.right==="auto"?"auto":p.right}:void 0,onToggle:C=>{if(C.nativeEvent.newState==="closed"){const g=i.current;i.current=!1,g||(m.current=!0,setTimeout(()=>{m.current=!1},300)),r&&c(!1)}},onKeyDown:C=>{var j,b,R,q,M,$;const g=Array.from(((j=f.current)==null?void 0:j.querySelectorAll('[role="menuitem"]'))??[]),w=g.indexOf(document.activeElement);C.key==="ArrowDown"?(C.preventDefault(),(b=g[Math.min(w+1,g.length-1)])==null||b.focus()):C.key==="ArrowUp"?(C.preventDefault(),(R=g[Math.max(w-1,0)])==null||R.focus()):C.key==="Home"?(C.preventDefault(),(q=g[0])==null||q.focus()):C.key==="End"?(C.preventDefault(),(M=g[g.length-1])==null||M.focus()):C.key==="Escape"&&(c(!1),($=u.current)==null||$.focus())},children:s})]})})}function Js({children:e}){return t.jsx("div",{className:te.label,children:e})}function eo({asChild:e,color:n,onSelect:s,children:o}){const r=Ks(),c=Xs(),a=v(te.item,n==="danger"&&te.danger),u=()=>{ge(c),r.setOpen(!1),s==null||s()};if(e&&l.isValidElement(o)){const f=o,{className:m,onClick:i,children:p,role:x,tabIndex:C,...g}=f.props,w=f.ref;return l.createElement(f.type,{key:f.key,ref:w,role:"menuitem",tabIndex:-1,...g,className:v(a,m),onClick:j=>{i==null||i(j),ge(c),r.setOpen(!1)}},p)}return t.jsx("button",{type:"button",role:"menuitem",tabIndex:-1,className:a,onClick:u,children:o})}function to(){return t.jsx("div",{role:"separator",className:te.separator})}const no=Object.assign(Qs,{Item:eo,Separator:to,Label:Js}),so="_list_1hc3r_19",oo="_trigger_1hc3r_28",Te={list:so,trigger:oo},Ze=l.createContext(null),Ve=()=>{const e=l.useContext(Ze);if(!e)throw new Error("Tabs parts must be inside a Tabs");return e};function ro({value:e,onValueChange:n,className:s,children:o}){const r=l.useId();return t.jsx(Ze.Provider,{value:{value:e,onValueChange:n,id:r},children:t.jsx("div",{className:s,children:o})})}function lo({children:e}){return t.jsx("div",{role:"tablist",className:v(Te.list,"spTabsList"),onKeyDown:n=>{const s=Array.from(n.currentTarget.querySelectorAll('[role="tab"]')),o=s.indexOf(document.activeElement);if(o!==-1){if(n.key==="ArrowRight"){n.preventDefault();const r=s[(o+1)%s.length];r.focus(),r.click()}else if(n.key==="ArrowLeft"){n.preventDefault();const r=s[(o-1+s.length)%s.length];r.focus(),r.click()}else if(n.key==="Home"){n.preventDefault();const r=s[0];r.focus(),r.click()}else if(n.key==="End"){n.preventDefault();const r=s[s.length-1];r.focus(),r.click()}}},children:e})}function co({value:e,className:n,children:s,...o}){const r=Ve(),c=r.value===e;return t.jsx("button",{...o,type:"button",role:"tab",id:`${r.id}-tab-${e}`,"aria-selected":c,"aria-controls":`${r.id}-panel-${e}`,tabIndex:c?0:-1,"data-state":c?"active":"inactive",className:v(Te.trigger,"spTabsTrigger",n),onClick:()=>r.onValueChange(e),children:s})}function ao({value:e,children:n}){const s=Ve();return s.value!==e?null:t.jsx("div",{role:"tabpanel",id:`${s.id}-panel-${e}`,"aria-labelledby":`${s.id}-tab-${e}`,children:n})}const io=Object.assign(ro,{List:lo,Trigger:co,Content:ao});exports.AlertDialog=Bs;exports.Autocomplete=Vn;exports.Badge=p1;exports.BookmarkIcon=bs;exports.Box=St;exports.Button=ve;exports.Card=b1;exports.ChatBubbleIcon=rs;exports.CheckIcon=ds;exports.ChevronDownIcon=vs;exports.ChevronLeftIcon=ws;exports.ChevronRightIcon=xs;exports.ChevronUpIcon=hs;exports.CrossCircledIcon=$e;exports.Dialog=Vs;exports.DropdownMenu=no;exports.EnterFullScreenIcon=us;exports.ExclamationTriangleIcon=Le;exports.ExitFullScreenIcon=is;exports.Flex=Ht;exports.Grid=Qt;exports.Heading=he;exports.HeartFilledIcon=as;exports.HeartIcon=ms;exports.IconToggle=nn;exports.InfoCircledIcon=Re;exports.Link=pt;exports.Loader=P1;exports.MagnifyingGlassIcon=gs;exports.Message=Ns;exports.MinusIcon=ps;exports.Pencil1Icon=cs;exports.PersonIcon=Cs;exports.PlusIcon=ls;exports.Progress=ss;exports.QuestionMarkCircledIcon=_s;exports.RadioGroup=es;exports.Select=wn;exports.Separator=h1;exports.Share2Icon=os;exports.Slider=Pn;exports.Tabs=io;exports.Text=me;exports.TextArea=In;exports.TextField=ue;exports.Tooltip=xe;exports.TrashIcon=fs;exports.XIcon=ke;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react"),t=require("react/jsx-runtime"),ee={0:"0",1:"var(--spacing-xs)",2:"var(--spacing-sm)",3:"var(--spacing-md)",4:"var(--spacing-md)",5:"var(--spacing-lg)",6:"var(--spacing-xl)"};function W({m:e,mt:n,mb:s,p:o,pb:l},a){const c={...e!==void 0&&{margin:ee[e]},...n!==void 0&&{marginTop:ee[n]},...s!==void 0&&{marginBottom:ee[s]},...o!==void 0&&{padding:ee[o]},...l!==void 0&&{paddingBottom:ee[l]},...a};return Object.keys(c).length>0?c:void 0}function h(...e){return e.filter(Boolean).join(" ")}const Je="_text_4vcq4_1",et="_size1_4vcq4_5",tt="_size2_4vcq4_11",nt="_size3_4vcq4_16",st="_size4_4vcq4_21",ot="_size5_4vcq4_27",rt="_size6_4vcq4_33",lt="_medium_4vcq4_39",at="_bold_4vcq4_43",ct="_colorMuted_4vcq4_47",it="_colorDanger_4vcq4_51",ut="_colorSuccess_4vcq4_55",dt="_colorWarning_4vcq4_59",ie={text:Je,size1:et,size2:tt,size3:nt,size4:st,size5:ot,size6:rt,medium:lt,bold:at,colorMuted:ct,colorDanger:it,colorSuccess:ut,colorWarning:dt},Re=r.forwardRef(function({as:n="span",size:s,weight:o,color:l,className:a,style:c,m:d,mt:f,mb:p,p:i,pb:C,...v},_){return r.createElement(n,{...v,ref:_,className:h(ie.text,s&&ie[`size${s}`],o&&ie[o],l&&ie[`color${l[0].toUpperCase()}${l.slice(1)}`],a),style:W({m:d,mt:f,mb:p,p:i,pb:C},c)})}),ft="_heading_vs4zk_1",_t="_size4_vs4zk_7",pt="_size5_vs4zk_13",gt="_size6_vs4zk_19",Ct="_size7_vs4zk_25",mt="_size8_vs4zk_31",ht="_size9_vs4zk_37",xt="_colorMuted_vs4zk_43",vt="_colorDanger_vs4zk_47",wt="_alignCenter_vs4zk_51",te={heading:ft,size4:_t,size5:pt,size6:gt,size7:Ct,size8:mt,size9:ht,colorMuted:xt,colorDanger:vt,alignCenter:wt},$e=r.forwardRef(function({as:n="h2",size:s,color:o,align:l,className:a,style:c,m:d,mt:f,mb:p,p:i,pb:C,...v},_){return r.createElement(n,{...v,ref:_,className:h(te.heading,s&&te[`size${s}`],o==="muted"&&te.colorMuted,o==="danger"&&te.colorDanger,l==="center"&&te.alignCenter,a),style:W({m:d,mt:f,mb:p,p:i,pb:C},c)})}),bt="_link_1qa7j_1",jt="_size1_1qa7j_10",yt="_size2_1qa7j_16",Rt="_size3_1qa7j_21",ve={link:bt,size1:jt,size2:yt,size3:Rt},$t=r.forwardRef(function({asChild:n,size:s,className:o,style:l,m:a,mt:c,mb:d,p:f,pb:p,children:i,...C},v){const _=h(ve.link,s&&ve[`size${s}`],o),m=W({m:a,mt:c,mb:d,p:f,pb:p},l);if(n&&r.isValidElement(i)){const b=i;return r.cloneElement(b,{...C,className:h(_,b.props.className),style:{...m,...b.props.style}})}return t.jsx("a",{...C,ref:v,className:_,style:m,children:i})}),Lt="_flex_v4ziu_1",It="_gap1_v4ziu_5",kt="_gap2_v4ziu_9",Mt="_gap3_v4ziu_13",Nt="_gap4_v4ziu_17",zt="_gap5_v4ziu_21",qt="_gap6_v4ziu_25",Dt="_directionRow_v4ziu_29",Et="_directionColumn_v4ziu_33",St="_alignStart_v4ziu_37",Ht="_alignCenter_v4ziu_41",Tt="_alignEnd_v4ziu_45",Zt="_alignBaseline_v4ziu_49",At="_alignStretch_v4ziu_53",Vt="_justifyStart_v4ziu_57",Bt="_justifyCenter_v4ziu_61",Ot="_justifyEnd_v4ziu_65",Ft="_justifyBetween_v4ziu_69",Wt="_wrapWrap_v4ziu_73",Pt="_wrapNowrap_v4ziu_77",P={flex:Lt,gap1:It,gap2:kt,gap3:Mt,gap4:Nt,gap5:zt,gap6:qt,directionRow:Dt,directionColumn:Et,alignStart:St,alignCenter:Ht,alignEnd:Tt,alignBaseline:Zt,alignStretch:At,justifyStart:Vt,justifyCenter:Bt,justifyEnd:Ot,justifyBetween:Ft,wrapWrap:Wt,wrapNowrap:Pt},ue=e=>e[0].toUpperCase()+e.slice(1),Gt=r.forwardRef(function({asChild:n,gap:s,direction:o,align:l,justify:a,wrap:c,className:d,style:f,m:p,mt:i,mb:C,p:v,pb:_,children:m,...b},R){const L=h(P.flex,s&&P[`gap${s}`],o&&P[`direction${ue(o)}`],l&&P[`align${ue(l)}`],a&&P[`justify${ue(a)}`],c&&P[`wrap${ue(c)}`],d),y=W({m:p,mt:i,mb:C,p:v,pb:_},f);if(n&&r.isValidElement(m)){const E=m;return r.cloneElement(E,{...b,className:h(L,E.props.className),style:{...y,...E.props.style}})}return t.jsx("div",{...b,ref:R,className:L,style:y,children:m})}),Kt=r.forwardRef(function({style:n,m:s,mt:o,mb:l,p:a,pb:c,...d},f){return t.jsx("div",{...d,ref:f,style:W({m:s,mt:o,mb:l,p:a,pb:c},n)})}),Ut="_grid_erpqq_1",Xt="_cols1_erpqq_5",Yt="_cols2_erpqq_9",Qt="_cols3_erpqq_13",Jt="_smCols2_erpqq_18",en="_smCols3_erpqq_21",tn="_mdCols2_erpqq_26",nn="_mdCols3_erpqq_29",sn="_gap1_erpqq_33",on="_gap2_erpqq_37",rn="_gap3_erpqq_41",ln="_gap4_erpqq_45",an="_gap5_erpqq_49",cn="_gap6_erpqq_53",G={grid:Ut,cols1:Xt,cols2:Yt,cols3:Qt,smCols2:Jt,smCols3:en,mdCols2:tn,mdCols3:nn,gap1:sn,gap2:on,gap3:rn,gap4:ln,gap5:an,gap6:cn},un=r.forwardRef(function({columns:n,gap:s,className:o,style:l,m:a,mt:c,mb:d,p:f,pb:p,...i},C){const v=typeof n=="string"?[G[`cols${n}`]]:n?[n.initial&&G[`cols${n.initial}`],n.sm&&G[`smCols${n.sm}`],n.md&&G[`mdCols${n.md}`]]:[];return t.jsx("div",{...i,ref:C,className:h(G.grid,...v,s&&G[`gap${s}`],o),style:W({m:a,mt:c,mb:d,p:f,pb:p},l)})}),dn="_badge_1twqf_2",fn="_size1_1twqf_10",_n="_size2_1twqf_19",pn="_colorMuted_1twqf_28",gn="_colorPrimary_1twqf_33",Cn="_colorSuccess_1twqf_38",mn="_colorDanger_1twqf_43",hn="_colorWarning_1twqf_48",xn="_colorCyan_1twqf_53",vn="_colorPurple_1twqf_58",wn="_colorOrange_1twqf_63",bn="_colorAccent_1twqf_68",jn="_colorYellow_1twqf_73",yn="_solid_1twqf_81",Rn="_wrap_1twqf_89",ne={badge:dn,size1:fn,size2:_n,colorMuted:pn,colorPrimary:gn,colorSuccess:Cn,colorDanger:mn,colorWarning:hn,colorCyan:xn,colorPurple:vn,colorOrange:wn,colorAccent:bn,colorYellow:jn,solid:yn,wrap:Rn},$n=e=>e[0].toUpperCase()+e.slice(1),Ln=r.forwardRef(function({color:n="primary",variant:s="soft",size:o="1",wrap:l,className:a,style:c,m:d,mt:f,mb:p,p:i,pb:C,...v},_){return t.jsx("span",{...v,ref:_,className:h(ne.badge,ne[`color${$n(n)}`],s==="solid"&&ne.solid,ne[`size${o}`],l&&ne.wrap,a),style:W({m:d,mt:f,mb:p,p:i,pb:C},c)})}),In="_separator_vao01_1",kn="_full_vao01_7",we={separator:In,full:kn},Mn=r.forwardRef(function({size:n="4",className:s,...o},l){return t.jsx("span",{...o,ref:l,role:"separator",className:h(we.separator,n==="4"&&we.full,s)})}),Nn="_card_1ooot_2",zn="_image_1ooot_14",qn="_hasImage_1ooot_41",ge={card:Nn,image:zn,hasImage:qn},Dn=r.forwardRef(function({className:n,style:s,image:o,children:l,m:a,mt:c,mb:d,p:f,pb:p,...i},C){return t.jsxs("div",{...i,ref:C,className:h(ge.card,o!=null&&ge.hasImage,n),style:W({m:a,mt:c,mb:d,p:f,pb:p},s),children:[o!=null&&t.jsx("div",{className:ge.image,children:o}),l]})}),M={width:15,height:15,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0};function En(e){return t.jsx("svg",{...M,...e,children:t.jsx("path",{d:"M3.5 5.00006C3.22386 5.00006 3 5.22392 3 5.50006L3 11.5001C3 11.7762 3.22386 12.0001 3.5 12.0001L11.5 12.0001C11.7761 12.0001 12 11.7762 12 11.5001L12 5.50006C12 5.22392 11.7761 5.00006 11.5 5.00006L10.25 5.00006C9.97386 5.00006 9.75 4.7762 9.75 4.50006C9.75 4.22392 9.97386 4.00006 10.25 4.00006L11.5 4.00006C12.3284 4.00006 13 4.67163 13 5.50006L13 11.5001C13 12.3285 12.3284 13.0001 11.5 13.0001L3.5 13.0001C2.67157 13.0001 2 12.3285 2 11.5001L2 5.50006C2 4.67163 2.67157 4.00006 3.5 4.00006L4.75 4.00006C5.02614 4.00006 5.25 4.22392 5.25 4.50006C5.25 4.7762 5.02614 5.00006 4.75 5.00006L3.5 5.00006ZM7 1.6364L5.5682 3.0682C5.39246 3.24393 5.10754 3.24393 4.9318 3.0682C4.75607 2.89246 4.75607 2.60754 4.9318 2.4318L7.1818 0.181802C7.26619 0.09741 7.38065 0.049999 7.5 0.049999C7.61935 0.049999 7.73381 0.09741 7.8182 0.181802L10.0682 2.4318C10.2439 2.60754 10.2439 2.89246 10.0682 3.0682C9.89246 3.24393 9.60754 3.24393 9.4318 3.0682L8 1.6364L8 8.5C8 8.77614 7.77614 9 7.5 9C7.22386 9 7 8.77614 7 8.5L7 1.6364Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Sn(e){return t.jsx("svg",{...M,...e,children:t.jsx("path",{d:"M12.5 3L2.5 3.00002C1.67157 3.00002 1 3.6716 1 4.50002V9.50003C1 10.3285 1.67157 11 2.5 11H7.50003C7.63264 11 7.75982 11.0527 7.85358 11.1465L10 13.2929V11.5C10 11.2239 10.2239 11 10.5 11H12.5C13.3284 11 14 10.3285 14 9.50003V4.5C14 3.67157 13.3284 3 12.5 3ZM2.49999 2.00002L12.5 2C13.8807 2 15 3.11929 15 4.5V9.50003C15 10.8807 13.8807 12 12.5 12H11V14.5C11 14.7022 10.8782 14.8845 10.6913 14.9619C10.5045 15.0393 10.2894 14.9965 10.1464 14.8536L7.29292 12H2.5C1.11929 12 0 10.8807 0 9.50003V4.50002C0 3.11931 1.11928 2.00003 2.49999 2.00002Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Hn(e){return t.jsx("svg",{...M,...e,children:t.jsx("path",{d:"M8 2.75C8 2.47386 7.77614 2.25 7.5 2.25C7.22386 2.25 7 2.47386 7 2.75V7H2.75C2.47386 7 2.25 7.22386 2.25 7.5C2.25 7.77614 2.47386 8 2.75 8H7V12.25C7 12.5261 7.22386 12.75 7.5 12.75C7.77614 12.75 8 12.5261 8 12.25V8H12.25C12.5261 8 12.75 7.77614 12.75 7.5C12.75 7.22386 12.5261 7 12.25 7H8V2.75Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Tn(e){return t.jsx("svg",{...M,...e,children:t.jsx("path",{d:"M11.8536 1.14645C11.6583 0.951184 11.3417 0.951184 11.1465 1.14645L3.71455 8.57836C3.62459 8.66832 3.55263 8.77461 3.50251 8.89155L2.04044 12.303C1.9599 12.491 2.00189 12.709 2.14646 12.8536C2.29103 12.9981 2.50905 13.0401 2.69697 12.9596L6.10847 11.4975C6.2254 11.4474 6.3317 11.3754 6.42166 11.2855L13.8536 3.85355C14.0488 3.65829 14.0488 3.34171 13.8536 3.14645L11.8536 1.14645ZM4.42166 9.28547L11.5 2.20711L12.7929 3.5L5.71455 10.5784L4.21924 11.2192L3.78081 10.7808L4.42166 9.28547Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Zn(e){return t.jsx("svg",{...M,...e,children:t.jsx("path",{d:"M1.35248 4.90532C1.35248 2.94498 2.936 1.35248 4.89346 1.35248C6.25769 1.35248 6.86058 1.92336 7.50002 2.93545C8.13946 1.92336 8.74235 1.35248 10.1066 1.35248C12.064 1.35248 13.6476 2.94498 13.6476 4.90532C13.6476 6.74041 12.6013 8.50508 11.4008 9.96927C10.2636 11.3562 8.92194 12.5508 8.00601 13.3664C7.94645 13.4194 7.88869 13.4709 7.83291 13.5206C7.64324 13.6899 7.3568 13.6899 7.16713 13.5206C7.11135 13.4709 7.05359 13.4194 6.99403 13.3664C6.0781 12.5508 4.73641 11.3562 3.59926 9.96927C2.39872 8.50508 1.35248 6.74041 1.35248 4.90532Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function An(e){return t.jsx("svg",{...M,...e,children:t.jsx("path",{d:"M5.5 2C5.77614 2 6 2.22386 6 2.5V5.5C6 5.77614 5.77614 6 5.5 6H2.5C2.22386 6 2 5.77614 2 5.5C2 5.22386 2.22386 5 2.5 5H5V2.5C5 2.22386 5.22386 2 5.5 2ZM9.5 2C9.77614 2 10 2.22386 10 2.5V5H12.5C12.7761 5 13 5.22386 13 5.5C13 5.77614 12.7761 6 12.5 6H9.5C9.22386 6 9 5.77614 9 5.5V2.5C9 2.22386 9.22386 2 9.5 2ZM2 9.5C2 9.22386 2.22386 9 2.5 9H5.5C5.77614 9 6 9.22386 6 9.5V12.5C6 12.7761 5.77614 13 5.5 13C5.22386 13 5 12.7761 5 12.5V10H2.5C2.22386 10 2 9.77614 2 9.5ZM9 9.5C9 9.22386 9.22386 9 9.5 9H12.5C12.7761 9 13 9.22386 13 9.5C13 9.77614 12.7761 10 12.5 10H10V12.5C10 12.7761 9.77614 13 9.5 13C9.22386 13 9 12.7761 9 12.5V9.5Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Vn(e){return t.jsx("svg",{...M,...e,children:t.jsx("path",{d:"M2 2.5C2 2.22386 2.22386 2 2.5 2H5.5C5.77614 2 6 2.22386 6 2.5C6 2.77614 5.77614 3 5.5 3H3V5.5C3 5.77614 2.77614 6 2.5 6C2.22386 6 2 5.77614 2 5.5V2.5ZM9 2.5C9 2.22386 9.22386 2 9.5 2H12.5C12.7761 2 13 2.22386 13 2.5V5.5C13 5.77614 12.7761 6 12.5 6C12.2239 6 12 5.77614 12 5.5V3H9.5C9.22386 3 9 2.77614 9 2.5ZM2.5 9C2.77614 9 3 9.22386 3 9.5V12H5.5C5.77614 12 6 12.2239 6 12.5C6 12.7761 5.77614 13 5.5 13H2.5C2.22386 13 2 12.7761 2 12.5V9.5C2 9.22386 2.22386 9 2.5 9ZM12.5 9C12.7761 9 13 9.22386 13 9.5V12.5C13 12.7761 12.7761 13 12.5 13H9.5C9.22386 13 9 12.7761 9 12.5C9 12.2239 9.22386 12 9.5 12H12V9.5C12 9.22386 12.2239 9 12.5 9Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Bn(e){return t.jsx("svg",{...M,...e,children:t.jsx("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function On(e){return t.jsx("svg",{...M,...e,children:t.jsx("path",{d:"M5.5 1C5.22386 1 5 1.22386 5 1.5C5 1.77614 5.22386 2 5.5 2H9.5C9.77614 2 10 1.77614 10 1.5C10 1.22386 9.77614 1 9.5 1H5.5ZM3 3.5C3 3.22386 3.22386 3 3.5 3H5H10H11.5C11.7761 3 12 3.22386 12 3.5C12 3.77614 11.7761 4 11.5 4H11V12C11 12.5523 10.5523 13 10 13H5C4.44772 13 4 12.5523 4 12V4L3.5 4C3.22386 4 3 3.77614 3 3.5ZM5 4H10V12H5V4Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Fn(e){return t.jsx("svg",{...M,...e,children:t.jsx("path",{d:"M0.877075 7.49972C0.877075 3.84204 3.84222 0.876892 7.49991 0.876892C11.1576 0.876892 14.1227 3.84204 14.1227 7.49972C14.1227 11.1574 11.1576 14.1226 7.49991 14.1226C3.84222 14.1226 0.877075 11.1574 0.877075 7.49972ZM7.49991 1.82689C4.36689 1.82689 1.82708 4.36671 1.82708 7.49972C1.82708 10.6327 4.36689 13.1726 7.49991 13.1726C10.6329 13.1726 13.1727 10.6327 13.1727 7.49972C13.1727 4.36671 10.6329 1.82689 7.49991 1.82689ZM8.24993 10.5C8.24993 10.9142 7.91414 11.25 7.49993 11.25C7.08571 11.25 6.74993 10.9142 6.74993 10.5C6.74993 10.0858 7.08571 9.75 7.49993 9.75C7.91414 9.75 8.24993 10.0858 8.24993 10.5ZM6.05003 6.25C6.05003 5.57211 6.63511 4.925 7.50003 4.925C8.36496 4.925 8.95003 5.57211 8.95003 6.25C8.95003 6.74118 8.68002 6.99212 8.21447 7.27494C8.16251 7.30651 8.10258 7.34131 8.03847 7.37854L8.03841 7.37858C7.85521 7.48497 7.63788 7.61119 7.47449 7.73849C7.23214 7.92732 6.95003 8.23198 6.95003 8.7C6.95004 9.00376 7.19628 9.25 7.50004 9.25C7.8024 9.25 8.04778 9.00601 8.05002 8.70417L8.05056 8.7033C8.05924 8.6896 8.08493 8.65735 8.15058 8.6062C8.25207 8.52712 8.36508 8.46163 8.51567 8.37436L8.51571 8.37433C8.59422 8.32883 8.68296 8.27741 8.78559 8.21506C9.32004 7.89038 10.05 7.35382 10.05 6.25C10.05 4.92789 8.93511 3.825 7.50003 3.825C6.06496 3.825 4.95003 4.92789 4.95003 6.25C4.95003 6.55376 5.19628 6.8 5.50003 6.8C5.80379 6.8 6.05003 6.55376 6.05003 6.25Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Wn(e){return t.jsx("svg",{...M,...e,children:t.jsx("path",{d:"M7.5 0.875C5.49797 0.875 3.875 2.49797 3.875 4.5C3.875 6.15288 4.98124 7.54738 6.49373 7.98351C5.2997 8.12901 4.27557 8.55134 3.50407 9.31167C2.52216 10.2794 2.02502 11.72 2.02502 13.5999C2.02502 13.8623 2.23769 14.0749 2.50002 14.0749C2.76236 14.0749 2.97502 13.8623 2.97502 13.5999C2.97502 11.8799 3.42786 10.7206 4.17091 9.9883C4.91536 9.25463 6.02674 8.87499 7.49995 8.87499C8.97317 8.87499 10.0846 9.25463 10.8291 9.98831C11.5721 10.7206 12.025 11.8799 12.025 13.5999C12.025 13.8623 12.2376 14.0749 12.5 14.0749C12.7623 14.075 12.975 13.8623 12.975 13.6C12.975 11.72 12.4778 10.2794 11.4959 9.31166C10.7244 8.55135 9.70025 8.12903 8.50625 7.98352C10.0187 7.5474 11.125 6.15289 11.125 4.5C11.125 2.49797 9.50203 0.875 7.5 0.875ZM4.825 4.5C4.825 3.02264 6.02264 1.825 7.5 1.825C8.97736 1.825 10.175 3.02264 10.175 4.5C10.175 5.97736 8.97736 7.175 7.5 7.175C6.02264 7.175 4.825 5.97736 4.825 4.5Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Pn(e){return t.jsx("svg",{...M,...e,children:t.jsx("path",{d:"M2.25 7.5C2.25 7.22386 2.47386 7 2.75 7H12.25C12.5261 7 12.75 7.22386 12.75 7.5C12.75 7.77614 12.5261 8 12.25 8H2.75C2.47386 8 2.25 7.77614 2.25 7.5Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Gn(e){return t.jsx("svg",{...M,...e,children:t.jsx("path",{d:"M10 6.5C10 8.433 8.433 10 6.5 10C4.567 10 3 8.433 3 6.5C3 4.567 4.567 3 6.5 3C8.433 3 10 4.567 10 6.5ZM9.30884 10.0159C8.53901 10.6318 7.56251 11 6.5 11C4.01472 11 2 8.98528 2 6.5C2 4.01472 4.01472 2 6.5 2C8.98528 2 11 4.01472 11 6.5C11 7.56251 10.6318 8.53901 10.0159 9.30884L12.8536 12.1464C13.0488 12.3417 13.0488 12.6583 12.8536 12.8536C12.6583 13.0488 12.3417 13.0488 12.1464 12.8536L9.30884 10.0159Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Kn(e){return t.jsx("svg",{...M,...e,children:t.jsx("path",{d:"M4.89346 2.35248C3.49195 2.35248 2.35248 3.49359 2.35248 4.90532C2.35248 6.38164 3.20954 7.9168 4.37255 9.33522C5.39396 10.581 6.59464 11.6702 7.50002 12.4778C8.4054 11.6702 9.60608 10.581 10.6275 9.33522C11.7905 7.9168 12.6476 6.38164 12.6476 4.90532C12.6476 3.49359 11.5081 2.35248 10.1066 2.35248C9.27059 2.35248 8.81894 2.64323 8.5397 2.95843C8.27877 3.25295 8.14623 3.58566 8.02501 3.88993C8.00391 3.9429 7.98315 3.99501 7.96211 4.04591C7.88482 4.23294 7.7024 4.35494 7.50002 4.35494C7.29765 4.35494 7.11523 4.23295 7.03793 4.04592C7.01689 3.99501 6.99612 3.94289 6.97502 3.8899C6.8538 3.58564 6.72126 3.25294 6.46034 2.95843C6.18109 2.64323 5.72945 2.35248 4.89346 2.35248ZM1.35248 4.90532C1.35248 2.94498 2.936 1.35248 4.89346 1.35248C6.0084 1.35248 6.73504 1.76049 7.20884 2.2953C7.32062 2.42147 7.41686 2.55382 7.50002 2.68545C7.58318 2.55382 7.67941 2.42147 7.79119 2.2953C8.265 1.76049 8.99164 1.35248 10.1066 1.35248C12.064 1.35248 13.6476 2.94498 13.6476 4.90532C13.6476 6.74041 12.6013 8.50508 11.4008 9.96927C10.2636 11.3562 8.92194 12.5508 8.00601 13.3664C7.94645 13.4194 7.88869 13.4709 7.83291 13.5206C7.64324 13.6899 7.3568 13.6899 7.16713 13.5206C7.11135 13.4709 7.05359 13.4194 6.99403 13.3664C6.0781 12.5508 4.73641 11.3562 3.59926 9.96927C2.39872 8.50508 1.35248 6.74041 1.35248 4.90532Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Un(e){return t.jsx("svg",{...M,...e,children:t.jsx("path",{d:"M3.13523 8.84197C3.3241 9.04343 3.64052 9.05363 3.84197 8.86477L7.5 5.43536L11.158 8.86477C11.3595 9.05363 11.6759 9.04343 11.8648 8.84197C12.0536 8.64051 12.0434 8.32409 11.842 8.13523L7.84197 4.38523C7.64964 4.20492 7.35036 4.20492 7.15803 4.38523L3.15803 8.13523C2.95657 8.32409 2.94637 8.64051 3.13523 8.84197Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Xn(e){return t.jsx("svg",{...M,...e,children:t.jsx("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Le(e){return t.jsx("svg",{...M,...e,children:t.jsx("path",{d:"M6.1584 3.13508C5.95694 3.32394 5.94673 3.64036 6.13559 3.84182L9.56499 7.49991L6.13559 11.158C5.94673 11.3595 5.95694 11.6759 6.1584 11.8647C6.35986 12.0536 6.67628 12.0434 6.86514 11.8419L10.6151 7.84182C10.7954 7.64946 10.7954 7.35036 10.6151 7.158L6.86514 3.15801C6.67628 2.95655 6.35986 2.94634 6.1584 3.13508Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Ie(e){return t.jsx("svg",{...M,...e,children:t.jsx("path",{d:"M8.84182 3.13508C9.04328 3.32394 9.05348 3.64036 8.86462 3.84182L5.43523 7.49991L8.86462 11.158C9.05348 11.3595 9.04328 11.6759 8.84182 11.8647C8.64036 12.0536 8.32394 12.0434 8.13508 11.8419L4.38508 7.84182C4.20477 7.64946 4.20477 7.35036 4.38508 7.158L8.13508 3.15801C8.32394 2.95655 8.64036 2.94634 8.84182 3.13508Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Yn(e){return t.jsx("svg",{...M,...e,children:t.jsx("path",{d:"M3 2.5C3 2.22386 3.22386 2 3.5 2H11.5C11.7761 2 12 2.22386 12 2.5V13.5C12 13.6818 11.9014 13.8492 11.7424 13.9373C11.5834 14.0254 11.3891 14.0203 11.235 13.924L7.5 11.5896L3.765 13.924C3.61087 14.0203 3.41659 14.0254 3.25762 13.9373C3.09864 13.8492 3 13.6818 3 13.5V2.5ZM4 3V12.5979L6.97 10.7416C7.29427 10.539 7.70573 10.539 8.03 10.7416L11 12.5979V3H4Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function ke(e){return t.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",...e,children:t.jsx("path",{d:"M11.8 3.2a.6.6 0 0 0-.85 0L7.5 6.65 4.05 3.2a.6.6 0 1 0-.85.85L6.65 7.5 3.2 10.95a.6.6 0 1 0 .85.85L7.5 8.35l3.45 3.45a.6.6 0 0 0 .85-.85L8.35 7.5l3.45-3.45a.6.6 0 0 0 0-.85Z",fill:"currentColor"})})}function Me(e){return t.jsx("svg",{...M,...e,children:t.jsx("path",{d:"M7.49991 0.876892C3.84222 0.876892 0.877075 3.84204 0.877075 7.49972C0.877075 11.1574 3.84222 14.1226 7.49991 14.1226C11.1576 14.1226 14.1227 11.1574 14.1227 7.49972C14.1227 3.84204 11.1576 0.876892 7.49991 0.876892ZM1.82707 7.49972C1.82707 4.36671 4.36689 1.82689 7.49991 1.82689C10.6329 1.82689 13.1727 4.36671 13.1727 7.49972C13.1727 10.6327 10.6329 13.1726 7.49991 13.1726C4.36689 13.1726 1.82707 10.6327 1.82707 7.49972ZM8.24992 4.49999C8.24992 4.9142 7.91413 5.24999 7.49992 5.24999C7.08571 5.24999 6.74992 4.9142 6.74992 4.49999C6.74992 4.08577 7.08571 3.74999 7.49992 3.74999C7.91413 3.74999 8.24992 4.08577 8.24992 4.49999ZM6.00003 5.99999H6.50003H7.50003C7.77618 5.99999 8.00003 6.22384 8.00003 6.49999V9.99999H8.50003H9.00003V11H8.50003H7.50003H6.50003H6.00003V9.99999H6.50003H7.00003V6.99999H6.50003H6.00003V5.99999Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Ne(e){return t.jsx("svg",{...M,...e,children:t.jsx("path",{d:"M8.4449 0.608765C8.0183 -0.107015 6.9817 -0.107015 6.55509 0.608766L0.161178 11.3368C-0.275824 12.07 0.252503 13 1.10608 13H13.8939C14.7475 13 15.2758 12.07 14.8388 11.3368L8.4449 0.608765ZM7.4141 1.12073C7.45288 1.05566 7.54712 1.05566 7.5859 1.12073L13.9798 11.8488C14.0196 11.9154 13.9715 12 13.8939 12H1.10608C1.02849 12 0.980454 11.9154 1.02018 11.8488L7.4141 1.12073ZM6.8269 4.48611C6.81221 4.10423 7.11783 3.78663 7.5 3.78663C7.88217 3.78663 8.18778 4.10423 8.1731 4.48612L8.01921 8.48701C8.00848 8.766 7.7792 8.98664 7.5 8.98664C7.2208 8.98664 6.99151 8.766 6.98078 8.48701L6.8269 4.48611ZM8.24989 10.476C8.24989 10.8902 7.9141 11.226 7.49989 11.226C7.08567 11.226 6.74989 10.8902 6.74989 10.476C6.74989 10.0618 7.08567 9.72599 7.49989 9.72599C7.9141 9.72599 8.24989 10.0618 8.24989 10.476Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function ze(e){return t.jsx("svg",{...M,...e,children:t.jsx("path",{d:"M0.877075 7.49988C0.877075 3.84219 3.84222 0.877045 7.49991 0.877045C11.1576 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1576 14.1227 7.49991 14.1227C3.84222 14.1227 0.877075 11.1575 0.877075 7.49988ZM7.49991 1.82704C4.36689 1.82704 1.82708 4.36686 1.82708 7.49988C1.82708 10.6329 4.36689 13.1727 7.49991 13.1727C10.6329 13.1727 13.1727 10.6329 13.1727 7.49988C13.1727 4.36686 10.6329 1.82704 7.49991 1.82704ZM9.85358 5.14644C10.0488 5.3417 10.0488 5.65829 9.85358 5.85355L8.20713 7.49999L9.85358 9.14644C10.0488 9.3417 10.0488 9.65829 9.85358 9.85355C9.65832 10.0488 9.34173 10.0488 9.14647 9.85355L7.50002 8.2071L5.85358 9.85355C5.65832 10.0488 5.34173 10.0488 5.14647 9.85355C4.95121 9.65829 4.95121 9.3417 5.14647 9.14644L6.79292 7.49999L5.14647 5.85355C4.95121 5.65829 4.95121 5.3417 5.14647 5.14644C5.34173 4.95118 5.65832 4.95118 5.85358 5.14644L7.50002 6.79289L9.14647 5.14644C9.34173 4.95118 9.65832 4.95118 9.85358 5.14644Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}const Qn="_nav_f248a_6",Jn="_pages_f248a_21",es="_item_f248a_30",ts="_current_f248a_48",ns="_page_f248a_21",ss="_gap_f248a_82",os="_stepText_f248a_92",rs="_step_f248a_92",T={nav:Qn,pages:Jn,item:es,current:ts,page:ns,gap:ss,stepText:os,step:rs},ls="_spaceControl_4ou97_17",as="_spaceSlider_4ou97_74",cs="_spacePanel_4ou97_111",is="_spaceInput_4ou97_34",us="_spaceTextArea_4ou97_226",ds={spaceControl:ls,spaceSlider:as,spacePanel:cs,spaceInput:is,spaceTextArea:us},V=ds;function qe({pageSize:e,totalItems:n}){return e<=0?1:Math.max(1,Math.ceil(n/e))}function De(e,n,s=1){const o=(C,v)=>Array.from({length:Math.max(0,v-C+1)},(_,m)=>C+m),l=s*2+5;if(n<=l)return o(1,n);const a=Math.min(Math.max(e,1),n),c=Math.max(a-s,1),d=Math.min(a+s,n),f=c>3,p=d<n-2,i=s*2+3;return f?p?[1,null,...o(c,d),null,n]:[1,null,...o(n-i+1,n)]:[...o(1,i),null,n]}function fs({pagination:e,onPageClick:n,siblings:s=1,animated:o=!0,className:l,"aria-label":a="Pagination",...c}){const d=qe(e);if(d<=1)return null;const f=Math.min(Math.max(e.page,1),d),p=i=>{i!==f&&i>=1&&i<=d&&n(i)};return t.jsxs("nav",{...c,"aria-label":a,className:h(T.nav,l),children:[t.jsxs("button",{type:"button",className:h(V.spaceControl,T.item,T.step),disabled:f<=1,"aria-label":"Previous page",onClick:()=>p(f-1),children:[t.jsx(Ie,{"aria-hidden":"true"}),t.jsx("span",{className:T.stepText,children:"Previous"})]}),t.jsx("ol",{className:T.pages,children:De(f,d,s).map((i,C)=>i===null?t.jsx("li",{className:T.gap,"aria-hidden":"true",children:"…"},`gap-${C}`):t.jsx("li",{children:t.jsx("button",{type:"button",className:h(V.spaceControl,T.item,T.page,i===f&&T.current),"data-animated":i===f&&!o?"false":void 0,"aria-label":`Page ${i}`,"aria-current":i===f?"page":void 0,onClick:()=>p(i),children:i})},i))}),t.jsxs("button",{type:"button",className:h(V.spaceControl,T.item,T.step),disabled:f>=d,"aria-label":"Next page",onClick:()=>p(f+1),children:[t.jsx("span",{className:T.stepText,children:"Next"}),t.jsx(Le,{"aria-hidden":"true"})]})]})}const _s="_spaceButton_kjhqx_14",ps="_rimRotate_kjhqx_1",gs="_glintSweep_kjhqx_1",Cs="_iconOnly_kjhqx_97",ms="_lg_kjhqx_104",hs="_sm_kjhqx_110",xs="_micro_kjhqx_122",vs="_stars_kjhqx_136",ws="_fullWidth_kjhqx_141",bs="_ember_kjhqx_147",js="_label_kjhqx_157",ys="_star_kjhqx_136",Rs="_twinkle_kjhqx_1",O={spaceButton:_s,rimRotate:ps,glintSweep:gs,iconOnly:Cs,lg:ms,sm:hs,micro:xs,stars:vs,fullWidth:ws,ember:bs,label:js,star:ys,twinkle:Rs};function $s(e){return function(){e|=0,e=e+1831565813|0;let n=Math.imul(e^e>>>15,1|e);return n=n+Math.imul(n^n>>>7,61|n)^n,((n^n>>>14)>>>0)/4294967296}}function Ls(e){let n=2166136261;for(let s=0;s<e.length;s++)n^=e.charCodeAt(s),n=Math.imul(n,16777619);return n>>>0}const he=r.forwardRef(function({iconOnly:n,ember:s,size:o="md",fullWidth:l,animated:a=!0,className:c,children:d,...f},p){const i=r.useId(),C=r.useMemo(()=>{const _=$s(Ls(i));return Array.from({length:3},()=>({top:`${12+_()*58}%`,left:`${8+_()*80}%`,animationDelay:`${(_()*3.2).toFixed(2)}s`,animationDuration:`${(2.8+_()*1.8).toFixed(2)}s`}))},[i]),v=[O.spaceButton,n?O.iconOnly:"",s?O.ember:"",o!=="md"?O[o]:"",l?O.fullWidth:"",c??""].filter(Boolean).join(" ");return t.jsxs("button",{ref:p,className:v,"data-animated":a?void 0:"false",...f,children:[o!=="micro"&&t.jsx("span",{className:O.stars,"aria-hidden":!0,children:C.map((_,m)=>t.jsx("i",{className:O.star,style:_},m))}),t.jsx("span",{className:O.label,children:d})]})}),Is="_wrap_dwcut_5",ks="_sm_dwcut_30",Ms="_md_dwcut_36",Ns="_lg_dwcut_42",zs="_orbit_dwcut_49",qs="_planet_dwcut_58",Ds="_moon_dwcut_73",Es="_label_dwcut_92",K={wrap:Is,sm:ks,md:Ms,lg:Ns,orbit:zs,planet:qs,"sp-loader-planet-pulse":"_sp-loader-planet-pulse_dwcut_1",moon:Ds,"sp-loader-orbit":"_sp-loader-orbit_dwcut_1",label:Es,"sp-loader-reduced-pulse":"_sp-loader-reduced-pulse_dwcut_1"};function Ss({size:e="md",label:n,className:s}){return t.jsxs("div",{className:h(K.wrap,K[e],s),role:"status","aria-live":"polite","aria-label":n??"Loading",children:[t.jsxs("span",{className:K.orbit,children:[t.jsx("span",{className:K.planet}),t.jsx("span",{className:K.moon})]}),n&&t.jsx("span",{className:K.label,children:n})]})}const Hs="_content_1efo6_6",Ts={content:Hs};function Ee(e,n){e.matches(":popover-open")||(e.dataset.instant="",e.dataset.measuring="",n(),delete e.dataset.measuring,e.offsetWidth,delete e.dataset.instant,e.offsetWidth,e.showPopover())}const Zs=350,As=80,de=8,se=8;function Vs({triggerRef:e,tooltipId:n,show:s,hide:o,children:l}){const a=l.props;return r.cloneElement(l,{ref:e,"aria-describedby":n,onPointerEnter:c=>{var d;(d=a.onPointerEnter)==null||d.call(a,c),c.pointerType==="mouse"&&s()},onPointerLeave:c=>{var d;(d=a.onPointerLeave)==null||d.call(a,c),o()},onFocus:c=>{var d;(d=a.onFocus)==null||d.call(a,c),s(!0)},onBlur:c=>{var d;(d=a.onBlur)==null||d.call(a,c),o()},onClick:c=>{var d;(d=a.onClick)==null||d.call(a,c),o()}})}function Se({label:e,side:n="bottom",children:s}){const o=r.useId(),[l,a]=r.useState(!1),[c,d]=r.useState(null),f=r.useRef(null),p=r.useRef(null),i=r.useRef(null),C=r.useRef(null),v=()=>{i.current&&(clearTimeout(i.current),i.current=null),C.current&&(clearTimeout(C.current),C.current=null)},_=(b=!1)=>{if(v(),b){a(!0);return}i.current=setTimeout(()=>a(!0),Zs)},m=()=>{v(),C.current=setTimeout(()=>a(!1),As)};return r.useEffect(()=>v,[]),r.useLayoutEffect(()=>{const b=p.current;if(!b)return;if(!l){b.matches(":popover-open")&&b.hidePopover();return}const R=f.current;if(!R)return;const L=()=>{const y=R.getBoundingClientRect(),E=b.offsetWidth,N=b.offsetHeight,I=(j,$,S,D)=>Math.min(Math.max(j+$/2-S/2,se),Math.max(D-S-se,se)),H=(j,$,S,D)=>({fitsNear:j>=se,fitsFar:$+S<=D-se});if(n==="left"||n==="right"){const j=y.right+de,$=y.left-E-de,{fitsNear:S,fitsFar:D}=H($,j,E,window.innerWidth),Z=n==="right"?D||!S?j:$:S||!D?$:j;b.dataset.side=Z===j?"right":"left",d({top:I(y.top,y.height,N,window.innerHeight),left:Z});return}const q=y.bottom+de,k=y.top-N-de,{fitsNear:z,fitsFar:w}=H(k,q,N,window.innerHeight),u=n==="bottom"?w||!z?q:k:z||!w?k:q;b.dataset.side=u===q?"bottom":"top",d({top:u,left:I(y.left,y.width,E,window.innerWidth)})};b.matches(":popover-open")?L():Ee(b,L)},[l,n,e]),!e||!r.isValidElement(s)?t.jsx(t.Fragment,{children:s}):t.jsxs(t.Fragment,{children:[t.jsx(Vs,{triggerRef:f,tooltipId:o,show:_,hide:m,children:s}),t.jsx("div",{ref:p,id:o,popover:"auto",role:"tooltip",className:Ts.content,style:c?{top:c.top,left:c.left}:void 0,onToggle:b=>{b.nativeEvent.newState==="closed"&&l&&a(!1)},children:e})]})}const Bs="_group_1tdav_4",Os="_segment_1tdav_15",Fs="_active_1tdav_35",Ws="_vertical_1tdav_46",fe={group:Bs,segment:Os,active:Fs,vertical:Ws};function Ps({options:e,value:n,onValueChange:s,orientation:o="horizontal",className:l=""}){const a=o==="vertical";return t.jsx("div",{className:`${fe.group} ${a?fe.vertical:""} ${l}`,role:"group",children:e.map(c=>t.jsx(Se,{label:c.label,side:a?"right":"bottom",children:t.jsx("button",{type:"button",className:`${fe.segment} ${c.value===n?fe.active:""}`,"aria-label":c.label,"aria-pressed":c.value===n,onClick:()=>{c.value!==n&&s(c.value)},children:c.icon})},c.value))})}const Gs="_root_32n97_2",Ks="_trigger_32n97_7",Us="_labelWrap_32n97_30",Xs="_sizer_32n97_8",Ys="_triggerLabel_32n97_70",Qs="_chevron_32n97_77",Js="_listbox_32n97_82",eo="_item_32n97_148",F={root:Gs,trigger:Ks,labelWrap:Us,sizer:Xs,triggerLabel:Ys,chevron:Qs,listbox:Js,item:eo},He=r.createContext(null),to=()=>{const e=r.useContext(He);if(!e)throw new Error("Select.Item must be inside a Select");return e},Te=(e,n)=>`${e}-${encodeURIComponent(n)}`;function no(e){const n=[],s=o=>{r.Children.forEach(o,l=>{if(!r.isValidElement(l))return;const a=l.props;l.type===Ze&&typeof a.value=="string"?n.push({value:a.value,label:a.children,disabled:a.disabled}):a.children&&s(a.children)})};return s(e),n}function so({value:e,onValueChange:n,disabled:s,placeholder:o,animated:l=!0,className:a,children:c,...d}){const[f,p]=r.useState(!1),[i,C]=r.useState(null),v=r.useId(),_=r.useRef(null),m=r.useRef(null),b=r.useRef(null),[R,L]=r.useState(null),[y,E]=r.useState(null),N=r.useMemo(()=>no(c),[c]),I=r.useMemo(()=>N.filter(u=>!u.disabled).map(u=>u.value),[N]),H=r.useMemo(()=>N.map(u=>u.label),[N]),q=r.useCallback(u=>{var j;return((j=N.find($=>$.value===u))==null?void 0:j.label)??null},[N]);r.useEffect(()=>{if(!f)return;const u=j=>{m.current&&!m.current.contains(j.target)&&p(!1)};return document.addEventListener("mousedown",u),()=>document.removeEventListener("mousedown",u)},[f]),r.useLayoutEffect(()=>{if(!f)return;const u=_.current;if(!u)return;const j=u.getBoundingClientRect();L(u.offsetWidth);const $=window.innerHeight-j.bottom-16;E(Math.min(380,Math.max(120,$)))},[f]),r.useEffect(()=>{var u;f&&((u=b.current)==null||u.focus())},[f]);const k=u=>{C(u??I[0]??null),p(!0)},z=u=>{const j=i?I.indexOf(i):-1,$=Math.min(Math.max(j+u,0),I.length-1);C(I[$]??null)},w=e?q(e):null;return t.jsx(He.Provider,{value:{value:e,onValueChange:n,disabled:s,open:f,setOpen:p,highlighted:i,setHighlighted:C,listboxId:v,values:I,labelFor:q,triggerRef:_},children:t.jsxs("div",{ref:m,className:F.root,children:[t.jsxs("button",{type:"button",...d,ref:_,disabled:s,className:h(F.trigger,V.spaceControl,"spSelectTrigger",a),"data-animated":l?void 0:"false","data-state":f?"open":"closed","aria-haspopup":"listbox","aria-expanded":f,"aria-controls":v,onClick:()=>f?p(!1):k(e||null),onKeyDown:u=>{(u.key==="ArrowDown"||u.key==="Enter"||u.key===" ")&&(u.preventDefault(),k(e||null))},children:[t.jsxs("span",{className:F.labelWrap,children:[t.jsxs("span",{className:F.sizer,"data-sizer":"","aria-hidden":"true",children:[H.map((u,j)=>t.jsx("span",{children:u},j)),o&&t.jsx("span",{children:o})]}),t.jsx("span",{className:F.triggerLabel,children:w??o??""})]}),t.jsx("svg",{className:F.chevron,width:"9",height:"9",viewBox:"0 0 9 9","aria-hidden":"true",children:t.jsx("path",{d:"M0.5 3 L4.5 7 L8.5 3",fill:"none",stroke:"currentColor",strokeWidth:"1.2"})})]}),t.jsx("div",{ref:b,id:v,role:"listbox",tabIndex:-1,hidden:!f,"aria-activedescendant":i?Te(v,i):void 0,className:h(F.listbox,V.spacePanel),"data-animated":l?void 0:"false",style:R!=null||y!=null?{...R!=null?{"--_select-trigger-width":`${R}px`}:{},...y!=null?{maxHeight:`${y}px`}:{}}:void 0,onKeyDown:u=>{var j,$;u.key==="Escape"?(u.stopPropagation(),p(!1),(j=_.current)==null||j.focus()):u.key==="ArrowDown"?(u.preventDefault(),z(1)):u.key==="ArrowUp"?(u.preventDefault(),z(-1)):u.key==="Home"?(u.preventDefault(),C(I[0]??null)):u.key==="End"?(u.preventDefault(),C(I[I.length-1]??null)):u.key==="Enter"||u.key===" "?(u.preventDefault(),i&&(n(i),p(!1),($=_.current)==null||$.focus())):u.key==="Tab"&&p(!1)},children:c})]})})}function Ze({value:e,disabled:n,children:s}){const o=to(),l=o.value===e,a=o.highlighted===e;return t.jsx("div",{id:Te(o.listboxId,e),role:"option","aria-selected":l,"aria-disabled":n||void 0,"data-highlighted":a?"":void 0,className:h(F.item,"spSelectItem"),onMouseEnter:()=>!n&&o.setHighlighted(e),onClick:()=>{var c;n||(o.onValueChange(e),o.setOpen(!1),(c=o.triggerRef.current)==null||c.focus())},children:s})}const oo=Object.assign(so,{Item:Ze}),ro="_root_1lx7y_1",lo="_input_1lx7y_7",ao="_slot_1lx7y_17",Ce={root:ro,input:lo,slot:ao},co=r.forwardRef(function({className:n,style:s,animated:o=!0,children:l,...a},c){return t.jsxs("div",{className:h(Ce.root,V.spaceInput,"spTextFieldRoot",n),"data-animated":o?void 0:"false",style:s,children:[l,t.jsx("input",{...a,ref:c,className:h(Ce.input,"spTextFieldInput")})]})});function io({children:e}){return t.jsx("span",{className:Ce.slot,children:e})}const me=Object.assign(co,{Slot:io}),uo="_root_1qu6w_1",fo="_textarea_1qu6w_6",be={root:uo,textarea:fo},_o=r.forwardRef(function({className:n,style:s,animated:o=!0,...l},a){return t.jsx("div",{className:h(be.root,V.spaceInput,V.spaceTextArea,"spTextFieldRoot",n),"data-animated":o?void 0:"false",style:s,children:t.jsx("textarea",{...l,ref:a,className:h(be.textarea,"spTextAreaInput")})})}),po="_wrap_1rgfg_12",go="_field_1rgfg_16",Co="_panel_1rgfg_22",mo="_status_1rgfg_73",ho="_list_1rgfg_83",xo="_option_1rgfg_96",vo="_active_1rgfg_108",wo="_label_1rgfg_118",bo="_meta_1rgfg_125",jo="_footer_1rgfg_131",A={wrap:po,field:go,panel:Co,status:mo,list:ho,option:xo,active:vo,label:wo,meta:bo,footer:jo};function yo({value:e,onValueChange:n,options:s,onSelect:o,icon:l,caseSensitive:a=!1,preFiltered:c=!1,loading:d=!1,loadingMessage:f="Loading…",emptyMessage:p,footer:i,animated:C=!0,className:v,style:_,...m}){const[b,R]=r.useState(!1),[L,y]=r.useState(0),E=r.useRef(null),N=r.useRef(null),I=r.useId(),H=g=>typeof g.label=="string"?g.label:g.search??g.value,q=e.trim()!=="",k=r.useMemo(()=>{if(!q)return[];if(c)return s;const g=a?e:e.toLowerCase();return s.filter(x=>(a?H(x):H(x).toLowerCase()).includes(g))},[s,e,a,c,q]),z=r.useMemo(()=>k.filter(g=>!g.disabled),[k]),w=q&&(k.length>0||d||p!=null),u=b&&w;r.useEffect(()=>y(0),[k]),r.useEffect(()=>{var x;if(!u)return;const g=(x=N.current)==null?void 0:x.querySelector(`[data-index="${L}"]`);g==null||g.scrollIntoView({block:"nearest"})},[L,u]);const j=r.useCallback(()=>R(!1),[]);r.useEffect(()=>{if(!u)return;const g=x=>{const B=E.current;B&&x.target instanceof Node&&!B.contains(x.target)&&j()};return document.addEventListener("pointerdown",g),()=>document.removeEventListener("pointerdown",g)},[u,j]);const $=r.useRef(!1),S=g=>{g.disabled||(n(H(g)),o(g.value,g),$.current=!1,R(!1))},D=g=>{if(z.length===0)return;const x=k[L],pe=((x&&!x.disabled?z.indexOf(x):-1)+g+z.length)%z.length,Q=z[pe];Q&&y(k.indexOf(Q))},Z=g=>{if(g.key==="Escape"){u&&g.stopPropagation(),R(!1);return}if(g.key==="Tab"){R(!1);return}if(!u){g.key==="ArrowDown"&&R(!0);return}if(g.key==="ArrowDown")g.preventDefault(),$.current=!0,D(1);else if(g.key==="ArrowUp")g.preventDefault(),$.current=!0,D(-1);else if(g.key==="Home"){g.preventDefault(),$.current=!0;const x=z[0];x&&y(k.indexOf(x))}else if(g.key==="End"){g.preventDefault(),$.current=!0;const x=z[z.length-1];x&&y(k.indexOf(x))}else if(g.key==="Enter"||g.key===" "&&$.current){const x=k[L];x&&!x.disabled&&(g.preventDefault(),S(x))}},Y=u?k[L]:void 0;return t.jsxs("div",{ref:E,className:h(A.wrap,v),style:_,children:[t.jsx(me,{...m,type:m.type??"text",role:"combobox",animated:C,className:A.field,autoComplete:"off","aria-expanded":u,"aria-controls":I,"aria-autocomplete":"list","aria-activedescendant":Y&&!Y.disabled?`${I}-${L}`:void 0,value:e,onFocus:g=>{var x;(x=m.onFocus)==null||x.call(m,g),R(!0)},onClick:g=>{var x;(x=m.onClick)==null||x.call(m,g),R(!0)},onKeyDown:g=>{var x;(x=m.onKeyDown)==null||x.call(m,g),Z(g)},onChange:g=>{$.current=!1,n(g.target.value),R(!0)},children:l!=null&&t.jsx(me.Slot,{children:l})}),t.jsxs("div",{className:h(A.panel,V.spacePanel),hidden:!u,"data-animated":C?void 0:"false",children:[q&&d&&t.jsx("p",{className:A.status,children:f}),q&&!d&&k.length===0&&p!=null&&t.jsx("p",{className:A.status,children:p}),t.jsx("ul",{ref:N,id:I,role:"listbox",className:A.list,hidden:d||k.length===0,children:k.map((g,x)=>t.jsxs("li",{id:`${I}-${x}`,"data-index":x,role:"option","aria-selected":x===L,"aria-disabled":g.disabled||void 0,className:h(A.option,x===L&&!g.disabled&&A.active,"spAutocompleteOption"),onMouseEnter:()=>!g.disabled&&y(x),onPointerDown:B=>{B.preventDefault(),S(g)},children:[t.jsx("span",{className:A.label,children:g.label}),g.meta!=null&&t.jsx("span",{className:A.meta,children:g.meta})]},g.value))}),i!=null&&t.jsx("div",{className:A.footer,children:i})]})]})}const Ro="_root_14a1b_1",$o="_track_14a1b_12",Lo="_range_14a1b_22",Io="_thumb_14a1b_28",ko="_input_14a1b_38",oe={root:Ro,track:$o,range:Lo,thumb:Io,input:ko},Mo=r.forwardRef(function({value:n,onValueChange:s,min:o,max:l,step:a,disabled:c,className:d,"aria-label":f},p){const i=n[0]??o,C=l===o?0:(i-o)/(l-o)*100;return t.jsxs("span",{className:h(oe.root,V.spaceSlider,d),"data-disabled":c||void 0,children:[t.jsx("span",{className:h(oe.track,"spSliderTrack"),children:t.jsx("span",{className:h(oe.range,"spSliderRange"),style:{width:`${C}%`}})}),t.jsx("span",{className:h(oe.thumb,"spSliderThumb"),style:{left:`${C}%`}}),t.jsx("input",{ref:p,type:"range",className:h(oe.input,"spSliderInput"),value:i,min:o,max:l,step:a,disabled:c,"aria-label":f,onChange:v=>s([Number(v.target.value)])})]})}),No="_root_1qhel_2",zo="_item_1qhel_8",qo="_selfLabeled_1qhel_15",Do="_input_1qhel_19",Eo="_orb_1qhel_35",X={root:No,item:zo,selfLabeled:qo,input:Do,orb:Eo},Ae=r.createContext(null);function So({value:e,onValueChange:n,disabled:s,className:o,children:l}){const a=r.useId();return t.jsx(Ae.Provider,{value:{value:e,onValueChange:n,disabled:s,name:a},children:t.jsx("div",{role:"radiogroup",className:h(X.root,o),children:l})})}function Ho({value:e,disabled:n,children:s}){const o=r.useContext(Ae);if(!o)throw new Error("RadioGroup.Item must be inside a RadioGroup");const l=n||o.disabled,a=t.jsxs(t.Fragment,{children:[t.jsx("input",{type:"radio",className:X.input,name:o.name,value:e,checked:o.value===e,disabled:l,onChange:()=>o.onValueChange(e)}),t.jsx("span",{className:h(X.orb,"spRadioOrb"),"aria-hidden":"true"})]});return s==null?t.jsx("span",{className:X.item,children:a}):t.jsxs("label",{className:h(X.item,X.selfLabeled),children:[a,s]})}const To=Object.assign(So,{Item:Ho}),Zo="_progress_1cre6_16",Ao={progress:Zo};function Vo({value:e,max:n=100,className:s,style:o,...l}){const a=n>0?Math.min(Math.max(e/n*100,0),100):0;return t.jsx("div",{...l,role:"progressbar","aria-valuenow":e,"aria-valuemin":0,"aria-valuemax":n,className:h(Ao.progress,s),style:o,children:t.jsx("div",{style:{width:`${a}%`,height:"100%"}})})}const Bo="_message_1522x_14",Oo="_info_1522x_44",Fo="_warning_1522x_49",Wo="_alert_1522x_56",Po="_icon_1522x_63",Go="_body_1522x_74",Ko="_title_1522x_83",Uo="_text_1522x_90",U={message:Bo,info:Oo,warning:Fo,alert:Wo,icon:Po,body:Go,title:Ko,text:Uo},Xo={info:t.jsx(Me,{}),warning:t.jsx(Ne,{}),alert:t.jsx(ze,{})},Yo={info:{role:"status",live:"polite"},warning:{role:"status",live:"polite"},alert:{role:"alert"}},Qo=r.forwardRef(function({variant:n="info",title:s,icon:o,className:l,children:a,...c},d){const f=o===void 0?Xo[n]:o,{role:p,live:i}=Yo[n];return t.jsxs("div",{...c,ref:d,role:p,"aria-live":i,className:h(U.message,U[n],l),children:[f!=null&&t.jsx("span",{className:U.icon,"aria-hidden":"true",children:f}),t.jsxs("div",{className:U.body,children:[s!=null&&t.jsx("p",{className:U.title,children:s}),a!=null&&t.jsx("div",{className:U.text,children:a})]})]})}),Jo="_dialog_zbndh_2",e1="_inner_zbndh_71",t1="_size4_zbndh_76",n1="_title_zbndh_80",s1="_closeX_zbndh_88",le={dialog:Jo,inner:e1,size4:t1,title:n1,closeX:s1};let _e=0;const Ve=r.createContext(null),ce=()=>{const e=r.useContext(Ve);if(!e)throw new Error("Dialog parts must be inside a Dialog");return e};function Be(e){return function({open:s,onOpenChange:o,children:l}){const[a,c]=r.useState(!1),d=s!==void 0,f=d?s:a,p=m=>{d||c(m),o==null||o(m)},i=r.useId(),C=r.useId(),[v,_]=r.useState(!1);return t.jsx(Ve.Provider,{value:{open:f,setOpen:p,titleId:i,descId:C,alert:e,hasDesc:v,setHasDesc:_},children:l})}}const o1=Be(!1),Oe=(e,n)=>{if(!r.isValidElement(e))return e;const s=e;return r.cloneElement(s,{onClick:o=>{var l,a;(a=(l=s.props).onClick)==null||a.call(l,o),n()}})};function Fe({children:e}){const n=ce();return t.jsx(t.Fragment,{children:Oe(e,()=>n.setOpen(!0))})}function xe({children:e}){const n=ce();return t.jsx(t.Fragment,{children:Oe(e,()=>n.setOpen(!1))})}function We({size:e="3",maxWidth:n,className:s,style:o,children:l,...a}){const c=ce(),d=r.useRef(null),f=r.useRef(!1),p=r.useRef(!1);return r.useEffect(()=>{const i=d.current;i&&(c.open&&!i.open?i.showModal():!c.open&&i.open&&i.close())},[c.open]),r.useEffect(()=>{if(c.open)return _e+=1,_e===1&&(document.body.style.overflow="hidden"),()=>{_e-=1,_e===0&&(document.body.style.overflow="")}},[c.open]),t.jsx("dialog",{...a,ref:d,role:c.alert?"alertdialog":void 0,"aria-labelledby":c.titleId,"aria-describedby":c.hasDesc?c.descId:void 0,className:h(le.dialog,"spDialog",e==="4"&&le.size4,s),style:{...n?{maxWidth:n}:null,...o},onKeyDownCapture:i=>{var C,v;i.key==="Escape"&&((C=d.current)!=null&&C.querySelector("dialog[open]")||(v=d.current)!=null&&v.querySelector('[role="listbox"]:not([hidden])')&&(f.current=!0))},onCancel:i=>{if(i.preventDefault(),f.current){f.current=!1;return}c.setOpen(!1)},onClose:()=>{c.open&&c.setOpen(!1)},onPointerDown:i=>{p.current=i.target===d.current},onClick:i=>{!c.alert&&i.target===d.current&&p.current&&c.setOpen(!1)},children:t.jsxs("div",{className:le.inner,children:[!c.alert&&t.jsx("button",{type:"button",className:le.closeX,"aria-label":"Close",onClick:()=>c.setOpen(!1),children:t.jsx(ke,{width:16,height:16})}),l]})})}function Pe({className:e,...n}){const s=ce();return t.jsx($e,{as:"h2",size:"5",...n,id:s.titleId,className:h(le.title,e)})}function Ge(e){const n=ce(),{setHasDesc:s}=n;return r.useLayoutEffect(()=>(s(!0),()=>s(!1)),[s]),t.jsx(Re,{as:"p",...e,id:n.descId})}const r1=Object.assign(o1,{Trigger:Fe,Close:xe,Content:We,Title:Pe,Description:Ge}),l1=xe,a1=xe,c1=Object.assign(Be(!0),{Trigger:Fe,Content:We,Title:Pe,Description:Ge,Cancel:l1,Action:a1}),i1="_menu_11ctg_1",u1="_label_11ctg_51",d1="_item_11ctg_61",f1="_danger_11ctg_80",_1="_separator_11ctg_84",ae={menu:i1,label:u1,item:d1,danger:f1,separator:_1},Ke=r.createContext(null),p1=()=>{const e=r.useContext(Ke);if(!e)throw new Error("DropdownMenu parts must be inside a DropdownMenu");return e},Ue=r.createContext(null),g1=()=>{const e=r.useContext(Ue);if(!e)throw new Error("DropdownMenu parts must be inside a DropdownMenu");return e};function C1(e){return e.current?(e.current=!1,!0):!1}function je(e){e.current=!0}function m1({label:e,align:n="start",children:s,...o}){const[l,a]=r.useState(!1),c=r.useId(),d=r.useRef(null),f=r.useRef(null),p=r.useRef(!1),i=r.useRef(!1),[C,v]=r.useState(null);return r.useLayoutEffect(()=>{var m;const _=f.current;if(_)if(l){const b=d.current;if(b){const R=b.getBoundingClientRect(),L=n==="end"?"auto":R.left,y=n==="end"?window.innerWidth-R.right:"auto";v({top:R.bottom+6,left:L,right:y})}_.showPopover(),(m=_.querySelector('[role="menuitem"]'))==null||m.focus()}else _.matches(":popover-open")&&_.hidePopover()},[l,n]),r.useEffect(()=>{if(!l)return;const _=()=>a(!1);return window.addEventListener("resize",_),()=>window.removeEventListener("resize",_)},[l]),t.jsx(Ke.Provider,{value:{open:l,setOpen:a,menuId:c},children:t.jsxs(Ue.Provider,{value:i,children:[t.jsx(he,{...o,ref:d,"aria-haspopup":"menu","aria-expanded":l,"aria-controls":c,onClick:_=>{var m;(m=o.onClick)==null||m.call(o,_),!C1(p)&&a(!l)},children:e}),t.jsx("div",{ref:f,id:c,role:"menu",popover:"auto",className:ae.menu,style:C?{top:C.top,left:C.left==="auto"?"auto":C.left,right:C.right==="auto"?"auto":C.right}:void 0,onToggle:_=>{if(_.nativeEvent.newState==="closed"){const m=i.current;i.current=!1,m||(p.current=!0,setTimeout(()=>{p.current=!1},300)),l&&a(!1)}},onKeyDown:_=>{var R,L,y,E,N,I;const m=Array.from(((R=f.current)==null?void 0:R.querySelectorAll('[role="menuitem"]'))??[]),b=m.indexOf(document.activeElement);_.key==="ArrowDown"?(_.preventDefault(),(L=m[Math.min(b+1,m.length-1)])==null||L.focus()):_.key==="ArrowUp"?(_.preventDefault(),(y=m[Math.max(b-1,0)])==null||y.focus()):_.key==="Home"?(_.preventDefault(),(E=m[0])==null||E.focus()):_.key==="End"?(_.preventDefault(),(N=m[m.length-1])==null||N.focus()):_.key==="Escape"&&(a(!1),(I=d.current)==null||I.focus())},children:s})]})})}function h1({children:e}){return t.jsx("div",{className:ae.label,children:e})}function x1({asChild:e,color:n,onSelect:s,children:o}){const l=p1(),a=g1(),c=h(ae.item,n==="danger"&&ae.danger),d=()=>{je(a),l.setOpen(!1),s==null||s()};if(e&&r.isValidElement(o)){const f=o,{className:p,onClick:i,children:C,role:v,tabIndex:_,...m}=f.props,b=f.ref;return r.createElement(f.type,{key:f.key,ref:b,role:"menuitem",tabIndex:-1,...m,className:h(c,p),onClick:R=>{i==null||i(R),je(a),l.setOpen(!1)}},C)}return t.jsx("button",{type:"button",role:"menuitem",tabIndex:-1,className:c,onClick:d,children:o})}function v1(){return t.jsx("div",{role:"separator",className:ae.separator})}const w1=Object.assign(m1,{Item:x1,Separator:v1,Label:h1}),b1="_list_1hc3r_19",j1="_trigger_1hc3r_28",Xe={list:b1,trigger:j1},Ye=r.createContext(null),Qe=()=>{const e=r.useContext(Ye);if(!e)throw new Error("Tabs parts must be inside a Tabs");return e};function y1({value:e,onValueChange:n,className:s,children:o}){const l=r.useId();return t.jsx(Ye.Provider,{value:{value:e,onValueChange:n,id:l},children:t.jsx("div",{className:s,children:o})})}function R1({children:e}){return t.jsx("div",{role:"tablist",className:h(Xe.list,"spTabsList"),onKeyDown:n=>{const s=Array.from(n.currentTarget.querySelectorAll('[role="tab"]')),o=s.indexOf(document.activeElement);if(o!==-1){if(n.key==="ArrowRight"){n.preventDefault();const l=s[(o+1)%s.length];l.focus(),l.click()}else if(n.key==="ArrowLeft"){n.preventDefault();const l=s[(o-1+s.length)%s.length];l.focus(),l.click()}else if(n.key==="Home"){n.preventDefault();const l=s[0];l.focus(),l.click()}else if(n.key==="End"){n.preventDefault();const l=s[s.length-1];l.focus(),l.click()}}},children:e})}function $1({value:e,className:n,children:s,...o}){const l=Qe(),a=l.value===e;return t.jsx("button",{...o,type:"button",role:"tab",id:`${l.id}-tab-${e}`,"aria-selected":a,"aria-controls":`${l.id}-panel-${e}`,tabIndex:a?0:-1,"data-state":a?"active":"inactive",className:h(Xe.trigger,"spTabsTrigger",n),onClick:()=>l.onValueChange(e),children:s})}function L1({value:e,children:n}){const s=Qe();return s.value!==e?null:t.jsx("div",{role:"tabpanel",id:`${s.id}-panel-${e}`,"aria-labelledby":`${s.id}-tab-${e}`,children:n})}const I1=Object.assign(y1,{List:R1,Trigger:$1,Content:L1}),k1="_panel_4us94_9",M1={panel:k1},ye=8,re=8,N1='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';function z1({label:e,children:n,open:s,onOpenChange:o,defaultOpen:l=!1,side:a="bottom",align:c="start",panelClassName:d,onClick:f,...p}){const[i,C]=r.useState(l),v=s!==void 0,_=v?s:i,m=r.useId(),b=r.useId(),R=r.useRef(null),L=r.useRef(null),[y,E]=r.useState(null),N=r.useRef(!1),I=r.useRef(!1),H=r.useRef(null),q=r.useRef(_);q.current=_;const k=r.useCallback(w=>{q.current!==w&&(q.current=w,v||C(w),o==null||o(w))},[v,o]),z=r.useCallback(()=>{const w=R.current,u=L.current;if(!w||!u)return;const j=w.getBoundingClientRect(),$=u.offsetWidth,S=u.offsetHeight,D=j.bottom+ye,Z=j.top-S-ye,Y=D+S<=window.innerHeight-re,g=Z>=re,x=a==="bottom"?Y||!g?D:Z:g||!Y?Z:D,B=x===D?"bottom":"top";u.dataset.side=B;const pe=c==="start"?j.left:c==="end"?j.right-$:j.left+j.width/2-$/2,Q=Math.min(Math.max(pe,re),Math.max(window.innerWidth-$-re,re));E(J=>J&&J.top===x&&J.left===Q&&J.placed===B?J:{top:x,left:Q,placed:B})},[a,c]);return r.useLayoutEffect(()=>{const w=L.current;w&&(_?(Ee(w,z),z(),N.current&&(N.current=!1,(w.querySelector(N1)??w).focus({preventScroll:!0}))):w.matches(":popover-open")&&w.hidePopover())},[_,z]),r.useEffect(()=>{if(!_)return;let w=0,u="";const j=()=>{const $=R.current,S=L.current;if($&&S){const D=$.getBoundingClientRect(),Z=`${D.top}|${D.left}|${D.width}|${D.height}|${S.offsetWidth}|${S.offsetHeight}|${window.innerWidth}|${window.innerHeight}`;Z!==u&&(u=Z,z())}w=requestAnimationFrame(j)};return w=requestAnimationFrame(j),()=>cancelAnimationFrame(w)},[_,z]),t.jsxs(t.Fragment,{children:[t.jsx(he,{...p,ref:R,id:m,"aria-haspopup":"dialog","aria-expanded":_,"aria-controls":b,onPointerDown:w=>{var u;(u=p.onPointerDown)==null||u.call(p,w),H.current=!q.current},onKeyDown:w=>{var u;(u=p.onKeyDown)==null||u.call(p,w),(w.key==="Enter"||w.key===" ")&&(H.current=null)},onClick:w=>{f==null||f(w);const u=H.current??!q.current;H.current=null,u&&(N.current=!0),k(u)},children:e}),t.jsx("div",{ref:L,id:b,popover:"auto",role:"dialog","aria-labelledby":m,tabIndex:-1,className:h(M1.panel,V.spacePanel,d),"data-animated":p.animated===!1?"false":void 0,"data-side":(y==null?void 0:y.placed)??a,style:y?{top:y.top,left:y.left}:void 0,onKeyDown:w=>{w.key==="Escape"&&(I.current=!0,w.stopPropagation())},onToggle:w=>{var u;w.nativeEvent.newState==="closed"&&(I.current&&(I.current=!1,(u=R.current)==null||u.focus()),k(!1))},children:n})]})}exports.AlertDialog=c1;exports.Autocomplete=yo;exports.Badge=Ln;exports.BookmarkIcon=Yn;exports.Box=Kt;exports.Button=he;exports.Card=Dn;exports.ChatBubbleIcon=Sn;exports.CheckIcon=Bn;exports.ChevronDownIcon=Xn;exports.ChevronLeftIcon=Ie;exports.ChevronRightIcon=Le;exports.ChevronUpIcon=Un;exports.CrossCircledIcon=ze;exports.Dialog=r1;exports.DropdownMenu=w1;exports.EnterFullScreenIcon=Vn;exports.ExclamationTriangleIcon=Ne;exports.ExitFullScreenIcon=An;exports.Flex=Gt;exports.Grid=un;exports.Heading=$e;exports.HeartFilledIcon=Zn;exports.HeartIcon=Kn;exports.IconToggle=Ps;exports.InfoCircledIcon=Me;exports.Link=$t;exports.Loader=Ss;exports.MagnifyingGlassIcon=Gn;exports.Message=Qo;exports.MinusIcon=Pn;exports.Pagination=fs;exports.Pencil1Icon=Tn;exports.PersonIcon=Wn;exports.PlusIcon=Hn;exports.Popover=z1;exports.Progress=Vo;exports.QuestionMarkCircledIcon=Fn;exports.RadioGroup=To;exports.Select=oo;exports.Separator=Mn;exports.Share2Icon=En;exports.Slider=Mo;exports.Tabs=I1;exports.Text=Re;exports.TextArea=_o;exports.TextField=me;exports.Tooltip=Se;exports.TrashIcon=On;exports.XIcon=ke;exports.pageCount=qe;exports.pageWindow=De;
2
2
  //# sourceMappingURL=index.cjs.map