import * as o from "react";
import L from "react";
import { S as ke, y as G, a as re, c as Ve, u as M, P as E, b as T, g as K, V as lo, h as co } from "./index.need7dF0.js";
import { p as io } from "./text.BDw3-ubI.js";
import { o as je, s as uo, a as qe, v as ge, b as Ze, r as po, c as Xe } from "./radius.prop.Kearsnsi.js";
import { o as fo, s as mo, e as vo, t as be, u as ho } from "./index.ChhKNKNO.js";
import { c as Se, R as Je, u as Ce, A as Le, P as Qe, a as et, D as tt, C as ot, b as rt, I as nt, d as at, H as go } from "./theme.D9Tdai7i.js";
import { h as st, R as lt, u as ct, F as it, a as dt, d as ut, I as So, e as Co, c as wo, b as Ke, i as Po, f as yo, V as xo, S as Io, T as No, t as Ro } from "./index.Bt87Vuzi.js";
import { jsx as d, jsxs as me, Fragment as Ge } from "react/jsx-runtime";
import * as pt from "react-dom";
import { u as ft } from "./use-editor.BroT97uF.js";
const To = ["1", "2", "3"], Eo = ["soft", "surface", "outline"], Ue = { ...qe, size: { type: "enum", className: "rt-r-size", values: To, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Eo, default: "soft" }, ...uo, ...je }, mt = o.createContext({}), bo = o.forwardRef((e, r) => {
  const { size: t = Ue.size.default } = e, { asChild: n, children: a, className: c, color: l, ...s } = ge(e, Ue, Ze);
  return o.createElement(n ? ke : "div", { "data-accent-color": l, ...s, className: G("rt-CalloutRoot", c), ref: r }, o.createElement(mt.Provider, { value: o.useMemo(() => ({ size: t }), [t]) }, a));
});
bo.displayName = "Callout.Root";
const _o = o.forwardRef(({ className: e, ...r }, t) => o.createElement("div", { ...r, className: G("rt-CalloutIcon", e), ref: t }));
_o.displayName = "Callout.Icon";
const Ao = o.forwardRef(({ className: e, ...r }, t) => {
  const { size: n } = o.useContext(mt);
  return o.createElement(io, { as: "p", size: fo(n, mo), ...r, asChild: !1, ref: t, className: G("rt-CalloutText", e) });
});
Ao.displayName = "Callout.Text";
var Fe = "Popover", [vt, rn] = Ve(Fe, [
  Se
]), de = Se(), [Oo, U] = vt(Fe), ht = (e) => {
  const {
    __scopePopover: r,
    children: t,
    open: n,
    defaultOpen: a,
    onOpenChange: c,
    modal: l = !1
  } = e, s = de(r), i = o.useRef(null), [u, m] = o.useState(!1), [h = !1, C] = re({
    prop: n,
    defaultProp: a,
    onChange: c
  });
  return /* @__PURE__ */ d(Je, { ...s, children: /* @__PURE__ */ d(
    Oo,
    {
      scope: r,
      contentId: Ce(),
      triggerRef: i,
      open: h,
      onOpenChange: C,
      onOpenToggle: o.useCallback(() => C((x) => !x), [C]),
      hasCustomAnchor: u,
      onCustomAnchorAdd: o.useCallback(() => m(!0), []),
      onCustomAnchorRemove: o.useCallback(() => m(!1), []),
      modal: l,
      children: t
    }
  ) });
};
ht.displayName = Fe;
var gt = "PopoverAnchor", St = o.forwardRef(
  (e, r) => {
    const { __scopePopover: t, ...n } = e, a = U(gt, t), c = de(t), { onCustomAnchorAdd: l, onCustomAnchorRemove: s } = a;
    return o.useEffect(() => (l(), () => s()), [l, s]), /* @__PURE__ */ d(Le, { ...c, ...n, ref: r });
  }
);
St.displayName = gt;
var Ct = "PopoverTrigger", wt = o.forwardRef(
  (e, r) => {
    const { __scopePopover: t, ...n } = e, a = U(Ct, t), c = de(t), l = M(r, a.triggerRef), s = /* @__PURE__ */ d(
      E.button,
      {
        type: "button",
        "aria-haspopup": "dialog",
        "aria-expanded": a.open,
        "aria-controls": a.contentId,
        "data-state": Rt(a.open),
        ...n,
        ref: l,
        onClick: T(e.onClick, a.onOpenToggle)
      }
    );
    return a.hasCustomAnchor ? s : /* @__PURE__ */ d(Le, { asChild: !0, ...c, children: s });
  }
);
wt.displayName = Ct;
var $e = "PopoverPortal", [Mo, Do] = vt($e, {
  forceMount: void 0
}), Pt = (e) => {
  const { __scopePopover: r, forceMount: t, children: n, container: a } = e, c = U($e, r);
  return /* @__PURE__ */ d(Mo, { scope: r, forceMount: t, children: /* @__PURE__ */ d(Qe, { present: t || c.open, children: /* @__PURE__ */ d(et, { asChild: !0, container: a, children: n }) }) });
};
Pt.displayName = $e;
var ne = "PopoverContent", yt = o.forwardRef(
  (e, r) => {
    const t = Do(ne, e.__scopePopover), { forceMount: n = t.forceMount, ...a } = e, c = U(ne, e.__scopePopover);
    return /* @__PURE__ */ d(Qe, { present: n || c.open, children: c.modal ? /* @__PURE__ */ d(ko, { ...a, ref: r }) : /* @__PURE__ */ d(Vo, { ...a, ref: r }) });
  }
);
yt.displayName = ne;
var ko = o.forwardRef(
  (e, r) => {
    const t = U(ne, e.__scopePopover), n = o.useRef(null), a = M(r, n), c = o.useRef(!1);
    return o.useEffect(() => {
      const l = n.current;
      if (l) return st(l);
    }, []), /* @__PURE__ */ d(lt, { as: ke, allowPinchZoom: !0, children: /* @__PURE__ */ d(
      xt,
      {
        ...e,
        ref: a,
        trapFocus: t.open,
        disableOutsidePointerEvents: !0,
        onCloseAutoFocus: T(e.onCloseAutoFocus, (l) => {
          var s;
          l.preventDefault(), c.current || (s = t.triggerRef.current) == null || s.focus();
        }),
        onPointerDownOutside: T(
          e.onPointerDownOutside,
          (l) => {
            const s = l.detail.originalEvent, i = s.button === 0 && s.ctrlKey === !0, u = s.button === 2 || i;
            c.current = u;
          },
          { checkForDefaultPrevented: !1 }
        ),
        onFocusOutside: T(
          e.onFocusOutside,
          (l) => l.preventDefault(),
          { checkForDefaultPrevented: !1 }
        )
      }
    ) });
  }
), Vo = o.forwardRef(
  (e, r) => {
    const t = U(ne, e.__scopePopover), n = o.useRef(!1), a = o.useRef(!1);
    return /* @__PURE__ */ d(
      xt,
      {
        ...e,
        ref: r,
        trapFocus: !1,
        disableOutsidePointerEvents: !1,
        onCloseAutoFocus: (c) => {
          var l, s;
          (l = e.onCloseAutoFocus) == null || l.call(e, c), c.defaultPrevented || (n.current || (s = t.triggerRef.current) == null || s.focus(), c.preventDefault()), n.current = !1, a.current = !1;
        },
        onInteractOutside: (c) => {
          var i, u;
          (i = e.onInteractOutside) == null || i.call(e, c), c.defaultPrevented || (n.current = !0, c.detail.originalEvent.type === "pointerdown" && (a.current = !0));
          const l = c.target;
          ((u = t.triggerRef.current) == null ? void 0 : u.contains(l)) && c.preventDefault(), c.detail.originalEvent.type === "focusin" && a.current && c.preventDefault();
        }
      }
    );
  }
), xt = o.forwardRef(
  (e, r) => {
    const {
      __scopePopover: t,
      trapFocus: n,
      onOpenAutoFocus: a,
      onCloseAutoFocus: c,
      disableOutsidePointerEvents: l,
      onEscapeKeyDown: s,
      onPointerDownOutside: i,
      onFocusOutside: u,
      onInteractOutside: m,
      ...h
    } = e, C = U(ne, t), x = de(t);
    return ct(), /* @__PURE__ */ d(
      it,
      {
        asChild: !0,
        loop: !0,
        trapped: n,
        onMountAutoFocus: a,
        onUnmountAutoFocus: c,
        children: /* @__PURE__ */ d(
          tt,
          {
            asChild: !0,
            disableOutsidePointerEvents: l,
            onInteractOutside: m,
            onEscapeKeyDown: s,
            onPointerDownOutside: i,
            onFocusOutside: u,
            onDismiss: () => C.onOpenChange(!1),
            children: /* @__PURE__ */ d(
              ot,
              {
                "data-state": Rt(C.open),
                role: "dialog",
                id: C.contentId,
                ...x,
                ...h,
                ref: r,
                style: {
                  ...h.style,
                  "--radix-popover-content-transform-origin": "var(--radix-popper-transform-origin)",
                  "--radix-popover-content-available-width": "var(--radix-popper-available-width)",
                  "--radix-popover-content-available-height": "var(--radix-popper-available-height)",
                  "--radix-popover-trigger-width": "var(--radix-popper-anchor-width)",
                  "--radix-popover-trigger-height": "var(--radix-popper-anchor-height)"
                }
              }
            )
          }
        )
      }
    );
  }
), It = "PopoverClose", Nt = o.forwardRef(
  (e, r) => {
    const { __scopePopover: t, ...n } = e, a = U(It, t);
    return /* @__PURE__ */ d(
      E.button,
      {
        type: "button",
        ...n,
        ref: r,
        onClick: T(e.onClick, () => a.onOpenChange(!1))
      }
    );
  }
);
Nt.displayName = It;
var Lo = "PopoverArrow", Go = o.forwardRef(
  (e, r) => {
    const { __scopePopover: t, ...n } = e, a = de(t);
    return /* @__PURE__ */ d(rt, { ...a, ...n, ref: r });
  }
);
Go.displayName = Lo;
function Rt(e) {
  return e ? "open" : "closed";
}
var Fo = ht, $o = St, Ho = wt, Bo = Pt, zo = yt, Wo = Nt;
const Ko = ["1", "2", "3", "4"], Uo = { ...qe, size: { type: "enum", className: "rt-r-size", values: Ko, default: "2", responsive: !0 }, width: be.width, minWidth: be.minWidth, maxWidth: { ...be.maxWidth, default: "480px" }, ...vo }, Yo = (e) => o.createElement(Fo, { ...e });
Yo.displayName = "Popover.Root";
const jo = o.forwardRef(({ children: e, ...r }, t) => o.createElement(Ho, { ...r, ref: t, asChild: !0 }, dt(e)));
jo.displayName = "Popover.Trigger";
const qo = o.forwardRef((e, r) => {
  const { className: t, forceMount: n, container: a, ...c } = ge(e, Uo);
  return o.createElement(Bo, { container: a, forceMount: n }, o.createElement(nt, { asChild: !0 }, o.createElement(zo, { align: "start", sideOffset: 8, collisionPadding: 10, ...c, ref: r, className: G("rt-PopperContent", "rt-PopoverContent", t) })));
});
qo.displayName = "Popover.Content";
const Zo = o.forwardRef(({ children: e, ...r }, t) => o.createElement(Wo, { ...r, ref: t, asChild: !0 }, dt(e)));
Zo.displayName = "Popover.Close";
const Xo = o.forwardRef(({ children: e, ...r }, t) => o.createElement($o, { ...r, ref: t }));
Xo.displayName = "Popover.Anchor";
var Jo = "Toggle", Tt = o.forwardRef((e, r) => {
  const { pressed: t, defaultPressed: n = !1, onPressedChange: a, ...c } = e, [l = !1, s] = re({
    prop: t,
    onChange: a,
    defaultProp: n
  });
  return /* @__PURE__ */ d(
    E.button,
    {
      type: "button",
      "aria-pressed": l,
      "data-state": l ? "on" : "off",
      "data-disabled": e.disabled ? "" : void 0,
      ...c,
      ref: r,
      onClick: T(e.onClick, () => {
        e.disabled || s(!l);
      })
    }
  );
});
Tt.displayName = Jo;
var ae = "ToggleGroup", [Et, nn] = Ve(ae, [
  ut
]), bt = ut(), He = L.forwardRef((e, r) => {
  const { type: t, ...n } = e;
  if (t === "single")
    return /* @__PURE__ */ d(Qo, { ...n, ref: r });
  if (t === "multiple")
    return /* @__PURE__ */ d(er, { ...n, ref: r });
  throw new Error(`Missing prop \`type\` expected on \`${ae}\``);
});
He.displayName = ae;
var [_t, At] = Et(ae), Qo = L.forwardRef((e, r) => {
  const {
    value: t,
    defaultValue: n,
    onValueChange: a = () => {
    },
    ...c
  } = e, [l, s] = re({
    prop: t,
    defaultProp: n,
    onChange: a
  });
  return /* @__PURE__ */ d(
    _t,
    {
      scope: e.__scopeToggleGroup,
      type: "single",
      value: l ? [l] : [],
      onItemActivate: s,
      onItemDeactivate: L.useCallback(() => s(""), [s]),
      children: /* @__PURE__ */ d(Ot, { ...c, ref: r })
    }
  );
}), er = L.forwardRef((e, r) => {
  const {
    value: t,
    defaultValue: n,
    onValueChange: a = () => {
    },
    ...c
  } = e, [l = [], s] = re({
    prop: t,
    defaultProp: n,
    onChange: a
  }), i = L.useCallback(
    (m) => s((h = []) => [...h, m]),
    [s]
  ), u = L.useCallback(
    (m) => s((h = []) => h.filter((C) => C !== m)),
    [s]
  );
  return /* @__PURE__ */ d(
    _t,
    {
      scope: e.__scopeToggleGroup,
      type: "multiple",
      value: l,
      onItemActivate: i,
      onItemDeactivate: u,
      children: /* @__PURE__ */ d(Ot, { ...c, ref: r })
    }
  );
});
He.displayName = ae;
var [tr, or] = Et(ae), Ot = L.forwardRef(
  (e, r) => {
    const {
      __scopeToggleGroup: t,
      disabled: n = !1,
      rovingFocus: a = !0,
      orientation: c,
      dir: l,
      loop: s = !0,
      ...i
    } = e, u = bt(t), m = at(l), h = { role: "group", dir: m, ...i };
    return /* @__PURE__ */ d(tr, { scope: t, rovingFocus: a, disabled: n, children: a ? /* @__PURE__ */ d(
      Co,
      {
        asChild: !0,
        ...u,
        orientation: c,
        dir: m,
        loop: s,
        children: /* @__PURE__ */ d(E.div, { ...h, ref: r })
      }
    ) : /* @__PURE__ */ d(E.div, { ...h, ref: r }) });
  }
), ve = "ToggleGroupItem", Mt = L.forwardRef(
  (e, r) => {
    const t = At(ve, e.__scopeToggleGroup), n = or(ve, e.__scopeToggleGroup), a = bt(e.__scopeToggleGroup), c = t.value.includes(e.value), l = n.disabled || e.disabled, s = { ...e, pressed: c, disabled: l }, i = L.useRef(null);
    return n.rovingFocus ? /* @__PURE__ */ d(
      So,
      {
        asChild: !0,
        ...a,
        focusable: !l,
        active: c,
        ref: i,
        children: /* @__PURE__ */ d(Ye, { ...s, ref: r })
      }
    ) : /* @__PURE__ */ d(Ye, { ...s, ref: r });
  }
);
Mt.displayName = ve;
var Ye = L.forwardRef(
  (e, r) => {
    const { __scopeToggleGroup: t, value: n, ...a } = e, c = At(ve, t), l = { role: "radio", "aria-checked": e.pressed, "aria-pressed": void 0 }, s = c.type === "single" ? l : void 0;
    return /* @__PURE__ */ d(
      Tt,
      {
        ...s,
        ...a,
        ref: r,
        onPressedChange: (i) => {
          i ? c.onItemActivate(n) : c.onItemDeactivate(n);
        }
      }
    );
  }
), an = He, sn = Mt, rr = [" ", "Enter", "ArrowUp", "ArrowDown"], nr = [" ", "Enter"], ue = "Select", [we, Pe, ar] = wo(ue), [se, ln] = Ve(ue, [
  ar,
  Se
]), ye = Se(), [sr, Y] = se(ue), [lr, cr] = se(ue), Dt = (e) => {
  const {
    __scopeSelect: r,
    children: t,
    open: n,
    defaultOpen: a,
    onOpenChange: c,
    value: l,
    defaultValue: s,
    onValueChange: i,
    dir: u,
    name: m,
    autoComplete: h,
    disabled: C,
    required: x
  } = e, v = ye(r), [S, N] = o.useState(null), [g, p] = o.useState(null), [w, H] = o.useState(!1), D = at(u), [le = !1, _] = re({
    prop: n,
    defaultProp: a,
    onChange: c
  }), [O, q] = re({
    prop: l,
    defaultProp: s,
    onChange: i
  }), ee = o.useRef(null), Z = S ? !!S.closest("form") : !0, [k, B] = o.useState(/* @__PURE__ */ new Set()), z = Array.from(k).map((b) => b.props.value).join(";");
  return /* @__PURE__ */ d(Je, { ...v, children: /* @__PURE__ */ me(
    sr,
    {
      required: x,
      scope: r,
      trigger: S,
      onTriggerChange: N,
      valueNode: g,
      onValueNodeChange: p,
      valueNodeHasChildren: w,
      onValueNodeHasChildrenChange: H,
      contentId: Ce(),
      value: O,
      onValueChange: q,
      open: le,
      onOpenChange: _,
      dir: D,
      triggerPointerDownPosRef: ee,
      disabled: C,
      children: [
        /* @__PURE__ */ d(we.Provider, { scope: r, children: /* @__PURE__ */ d(
          lr,
          {
            scope: e.__scopeSelect,
            onNativeOptionAdd: o.useCallback((b) => {
              B((V) => new Set(V).add(b));
            }, []),
            onNativeOptionRemove: o.useCallback((b) => {
              B((V) => {
                const F = new Set(V);
                return F.delete(b), F;
              });
            }, []),
            children: t
          }
        ) }),
        Z ? /* @__PURE__ */ me(
          no,
          {
            "aria-hidden": !0,
            required: x,
            tabIndex: -1,
            name: m,
            autoComplete: h,
            value: O,
            onChange: (b) => q(b.target.value),
            disabled: C,
            children: [
              O === void 0 ? /* @__PURE__ */ d("option", { value: "" }) : null,
              Array.from(k)
            ]
          },
          z
        ) : null
      ]
    }
  ) });
};
Dt.displayName = ue;
var kt = "SelectTrigger", Vt = o.forwardRef(
  (e, r) => {
    const { __scopeSelect: t, disabled: n = !1, ...a } = e, c = ye(t), l = Y(kt, t), s = l.disabled || n, i = M(r, l.onTriggerChange), u = Pe(t), [m, h, C] = ao((v) => {
      const S = u().filter((p) => !p.disabled), N = S.find((p) => p.value === l.value), g = so(S, v, N);
      g !== void 0 && l.onValueChange(g.value);
    }), x = () => {
      s || (l.onOpenChange(!0), C());
    };
    return /* @__PURE__ */ d(Le, { asChild: !0, ...c, children: /* @__PURE__ */ d(
      E.button,
      {
        type: "button",
        role: "combobox",
        "aria-controls": l.contentId,
        "aria-expanded": l.open,
        "aria-required": l.required,
        "aria-autocomplete": "none",
        dir: l.dir,
        "data-state": l.open ? "open" : "closed",
        disabled: s,
        "data-disabled": s ? "" : void 0,
        "data-placeholder": ro(l.value) ? "" : void 0,
        ...a,
        ref: i,
        onClick: T(a.onClick, (v) => {
          v.currentTarget.focus();
        }),
        onPointerDown: T(a.onPointerDown, (v) => {
          const S = v.target;
          S.hasPointerCapture(v.pointerId) && S.releasePointerCapture(v.pointerId), v.button === 0 && v.ctrlKey === !1 && (x(), l.triggerPointerDownPosRef.current = {
            x: Math.round(v.pageX),
            y: Math.round(v.pageY)
          }, v.preventDefault());
        }),
        onKeyDown: T(a.onKeyDown, (v) => {
          const S = m.current !== "";
          !(v.ctrlKey || v.altKey || v.metaKey) && v.key.length === 1 && h(v.key), !(S && v.key === " ") && rr.includes(v.key) && (x(), v.preventDefault());
        })
      }
    ) });
  }
);
Vt.displayName = kt;
var Lt = "SelectValue", Gt = o.forwardRef(
  (e, r) => {
    const { __scopeSelect: t, className: n, style: a, children: c, placeholder: l = "", ...s } = e, i = Y(Lt, t), { onValueNodeHasChildrenChange: u } = i, m = c !== void 0, h = M(r, i.onValueNodeChange);
    return K(() => {
      u(m);
    }, [u, m]), /* @__PURE__ */ d(
      E.span,
      {
        ...s,
        ref: h,
        style: { pointerEvents: "none" },
        children: ro(i.value) ? /* @__PURE__ */ d(Ge, { children: l }) : c
      }
    );
  }
);
Gt.displayName = Lt;
var ir = "SelectIcon", Ft = o.forwardRef(
  (e, r) => {
    const { __scopeSelect: t, children: n, ...a } = e;
    return /* @__PURE__ */ d(E.span, { "aria-hidden": !0, ...a, ref: r, children: n || "▼" });
  }
);
Ft.displayName = ir;
var dr = "SelectPortal", $t = (e) => /* @__PURE__ */ d(et, { asChild: !0, ...e });
$t.displayName = dr;
var Q = "SelectContent", Ht = o.forwardRef(
  (e, r) => {
    const t = Y(Q, e.__scopeSelect), [n, a] = o.useState();
    if (K(() => {
      a(new DocumentFragment());
    }, []), !t.open) {
      const c = n;
      return c ? pt.createPortal(
        /* @__PURE__ */ d(Bt, { scope: e.__scopeSelect, children: /* @__PURE__ */ d(we.Slot, { scope: e.__scopeSelect, children: /* @__PURE__ */ d("div", { children: e.children }) }) }),
        c
      ) : null;
    }
    return /* @__PURE__ */ d(zt, { ...e, ref: r });
  }
);
Ht.displayName = Q;
var $ = 10, [Bt, j] = se(Q), ur = "SelectContentImpl", zt = o.forwardRef(
  (e, r) => {
    const {
      __scopeSelect: t,
      position: n = "item-aligned",
      onCloseAutoFocus: a,
      onEscapeKeyDown: c,
      onPointerDownOutside: l,
      //
      // PopperContent props
      side: s,
      sideOffset: i,
      align: u,
      alignOffset: m,
      arrowPadding: h,
      collisionBoundary: C,
      collisionPadding: x,
      sticky: v,
      hideWhenDetached: S,
      avoidCollisions: N,
      //
      ...g
    } = e, p = Y(Q, t), [w, H] = o.useState(null), [D, le] = o.useState(null), _ = M(r, (f) => H(f)), [O, q] = o.useState(null), [ee, Z] = o.useState(
      null
    ), k = Pe(t), [B, z] = o.useState(!1), b = o.useRef(!1);
    o.useEffect(() => {
      if (w) return st(w);
    }, [w]), ct();
    const V = o.useCallback(
      (f) => {
        const [R, ...A] = k().map((y) => y.ref.current), [I] = A.slice(-1), P = document.activeElement;
        for (const y of f)
          if (y === P || (y == null || y.scrollIntoView({ block: "nearest" }), y === R && D && (D.scrollTop = 0), y === I && D && (D.scrollTop = D.scrollHeight), y == null || y.focus(), document.activeElement !== P)) return;
      },
      [k, D]
    ), F = o.useCallback(
      () => V([O, w]),
      [V, O, w]
    );
    o.useEffect(() => {
      B && F();
    }, [B, F]);
    const { onOpenChange: te, triggerPointerDownPosRef: W } = p;
    o.useEffect(() => {
      if (w) {
        let f = { x: 0, y: 0 };
        const R = (I) => {
          var P, y;
          f = {
            x: Math.abs(Math.round(I.pageX) - (((P = W.current) == null ? void 0 : P.x) ?? 0)),
            y: Math.abs(Math.round(I.pageY) - (((y = W.current) == null ? void 0 : y.y) ?? 0))
          };
        }, A = (I) => {
          f.x <= 10 && f.y <= 10 ? I.preventDefault() : w.contains(I.target) || te(!1), document.removeEventListener("pointermove", R), W.current = null;
        };
        return W.current !== null && (document.addEventListener("pointermove", R), document.addEventListener("pointerup", A, { capture: !0, once: !0 })), () => {
          document.removeEventListener("pointermove", R), document.removeEventListener("pointerup", A, { capture: !0 });
        };
      }
    }, [w, te, W]), o.useEffect(() => {
      const f = () => te(!1);
      return window.addEventListener("blur", f), window.addEventListener("resize", f), () => {
        window.removeEventListener("blur", f), window.removeEventListener("resize", f);
      };
    }, [te]);
    const [xe, pe] = ao((f) => {
      const R = k().filter((P) => !P.disabled), A = R.find((P) => P.ref.current === document.activeElement), I = so(R, f, A);
      I && setTimeout(() => I.ref.current.focus());
    }), Ie = o.useCallback(
      (f, R, A) => {
        const I = !b.current && !A;
        (p.value !== void 0 && p.value === R || I) && (q(f), I && (b.current = !0));
      },
      [p.value]
    ), Ne = o.useCallback(() => w == null ? void 0 : w.focus(), [w]), oe = o.useCallback(
      (f, R, A) => {
        const I = !b.current && !A;
        (p.value !== void 0 && p.value === R || I) && Z(f);
      },
      [p.value]
    ), fe = n === "popper" ? _e : Wt, ce = fe === _e ? {
      side: s,
      sideOffset: i,
      align: u,
      alignOffset: m,
      arrowPadding: h,
      collisionBoundary: C,
      collisionPadding: x,
      sticky: v,
      hideWhenDetached: S,
      avoidCollisions: N
    } : {};
    return /* @__PURE__ */ d(
      Bt,
      {
        scope: t,
        content: w,
        viewport: D,
        onViewportChange: le,
        itemRefCallback: Ie,
        selectedItem: O,
        onItemLeave: Ne,
        itemTextRefCallback: oe,
        focusSelectedItem: F,
        selectedItemText: ee,
        position: n,
        isPositioned: B,
        searchRef: xe,
        children: /* @__PURE__ */ d(lt, { as: ke, allowPinchZoom: !0, children: /* @__PURE__ */ d(
          it,
          {
            asChild: !0,
            trapped: p.open,
            onMountAutoFocus: (f) => {
              f.preventDefault();
            },
            onUnmountAutoFocus: T(a, (f) => {
              var R;
              (R = p.trigger) == null || R.focus({ preventScroll: !0 }), f.preventDefault();
            }),
            children: /* @__PURE__ */ d(
              tt,
              {
                asChild: !0,
                disableOutsidePointerEvents: !0,
                onEscapeKeyDown: c,
                onPointerDownOutside: l,
                onFocusOutside: (f) => f.preventDefault(),
                onDismiss: () => p.onOpenChange(!1),
                children: /* @__PURE__ */ d(
                  fe,
                  {
                    role: "listbox",
                    id: p.contentId,
                    "data-state": p.open ? "open" : "closed",
                    dir: p.dir,
                    onContextMenu: (f) => f.preventDefault(),
                    ...g,
                    ...ce,
                    onPlaced: () => z(!0),
                    ref: _,
                    style: {
                      // flex layout so we can place the scroll buttons properly
                      display: "flex",
                      flexDirection: "column",
                      // reset the outline by default as the content MAY get focused
                      outline: "none",
                      ...g.style
                    },
                    onKeyDown: T(g.onKeyDown, (f) => {
                      const R = f.ctrlKey || f.altKey || f.metaKey;
                      if (f.key === "Tab" && f.preventDefault(), !R && f.key.length === 1 && pe(f.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(f.key)) {
                        let I = k().filter((P) => !P.disabled).map((P) => P.ref.current);
                        if (["ArrowUp", "End"].includes(f.key) && (I = I.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(f.key)) {
                          const P = f.target, y = I.indexOf(P);
                          I = I.slice(y + 1);
                        }
                        setTimeout(() => V(I)), f.preventDefault();
                      }
                    })
                  }
                )
              }
            )
          }
        ) })
      }
    );
  }
);
zt.displayName = ur;
var pr = "SelectItemAlignedPosition", Wt = o.forwardRef((e, r) => {
  const { __scopeSelect: t, onPlaced: n, ...a } = e, c = Y(Q, t), l = j(Q, t), [s, i] = o.useState(null), [u, m] = o.useState(null), h = M(r, (_) => m(_)), C = Pe(t), x = o.useRef(!1), v = o.useRef(!0), { viewport: S, selectedItem: N, selectedItemText: g, focusSelectedItem: p } = l, w = o.useCallback(() => {
    if (c.trigger && c.valueNode && s && u && S && N && g) {
      const _ = c.trigger.getBoundingClientRect(), O = u.getBoundingClientRect(), q = c.valueNode.getBoundingClientRect(), ee = g.getBoundingClientRect();
      if (c.dir !== "rtl") {
        const P = ee.left - O.left, y = q.left - P, X = _.left - y, J = _.width + X, Re = Math.max(J, O.width), Te = window.innerWidth - $, Ee = Ke(y, [$, Te - Re]);
        s.style.minWidth = J + "px", s.style.left = Ee + "px";
      } else {
        const P = O.right - ee.right, y = window.innerWidth - q.right - P, X = window.innerWidth - _.right - y, J = _.width + X, Re = Math.max(J, O.width), Te = window.innerWidth - $, Ee = Ke(y, [$, Te - Re]);
        s.style.minWidth = J + "px", s.style.right = Ee + "px";
      }
      const Z = C(), k = window.innerHeight - $ * 2, B = S.scrollHeight, z = window.getComputedStyle(u), b = parseInt(z.borderTopWidth, 10), V = parseInt(z.paddingTop, 10), F = parseInt(z.borderBottomWidth, 10), te = parseInt(z.paddingBottom, 10), W = b + V + B + te + F, xe = Math.min(N.offsetHeight * 5, W), pe = window.getComputedStyle(S), Ie = parseInt(pe.paddingTop, 10), Ne = parseInt(pe.paddingBottom, 10), oe = _.top + _.height / 2 - $, fe = k - oe, ce = N.offsetHeight / 2, f = N.offsetTop + ce, R = b + V + f, A = W - R;
      if (R <= oe) {
        const P = N === Z[Z.length - 1].ref.current;
        s.style.bottom = "0px";
        const y = u.clientHeight - S.offsetTop - S.offsetHeight, X = Math.max(
          fe,
          ce + // viewport might have padding bottom, include it to avoid a scrollable viewport
          (P ? Ne : 0) + y + F
        ), J = R + X;
        s.style.height = J + "px";
      } else {
        const P = N === Z[0].ref.current;
        s.style.top = "0px";
        const X = Math.max(
          oe,
          b + S.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
          (P ? Ie : 0) + ce
        ) + A;
        s.style.height = X + "px", S.scrollTop = R - oe + S.offsetTop;
      }
      s.style.margin = `${$}px 0`, s.style.minHeight = xe + "px", s.style.maxHeight = k + "px", n == null || n(), requestAnimationFrame(() => x.current = !0);
    }
  }, [
    C,
    c.trigger,
    c.valueNode,
    s,
    u,
    S,
    N,
    g,
    c.dir,
    n
  ]);
  K(() => w(), [w]);
  const [H, D] = o.useState();
  K(() => {
    u && D(window.getComputedStyle(u).zIndex);
  }, [u]);
  const le = o.useCallback(
    (_) => {
      _ && v.current === !0 && (w(), p == null || p(), v.current = !1);
    },
    [w, p]
  );
  return /* @__PURE__ */ d(
    mr,
    {
      scope: t,
      contentWrapper: s,
      shouldExpandOnScrollRef: x,
      onScrollButtonChange: le,
      children: /* @__PURE__ */ d(
        "div",
        {
          ref: i,
          style: {
            display: "flex",
            flexDirection: "column",
            position: "fixed",
            zIndex: H
          },
          children: /* @__PURE__ */ d(
            E.div,
            {
              ...a,
              ref: h,
              style: {
                // When we get the height of the content, it includes borders. If we were to set
                // the height without having `boxSizing: 'border-box'` it would be too big.
                boxSizing: "border-box",
                // We need to ensure the content doesn't get taller than the wrapper
                maxHeight: "100%",
                ...a.style
              }
            }
          )
        }
      )
    }
  );
});
Wt.displayName = pr;
var fr = "SelectPopperPosition", _e = o.forwardRef((e, r) => {
  const {
    __scopeSelect: t,
    align: n = "start",
    collisionPadding: a = $,
    ...c
  } = e, l = ye(t);
  return /* @__PURE__ */ d(
    ot,
    {
      ...l,
      ...c,
      ref: r,
      align: n,
      collisionPadding: a,
      style: {
        // Ensure border-box for floating-ui calculations
        boxSizing: "border-box",
        ...c.style,
        "--radix-select-content-transform-origin": "var(--radix-popper-transform-origin)",
        "--radix-select-content-available-width": "var(--radix-popper-available-width)",
        "--radix-select-content-available-height": "var(--radix-popper-available-height)",
        "--radix-select-trigger-width": "var(--radix-popper-anchor-width)",
        "--radix-select-trigger-height": "var(--radix-popper-anchor-height)"
      }
    }
  );
});
_e.displayName = fr;
var [mr, Be] = se(Q, {}), Ae = "SelectViewport", Kt = o.forwardRef(
  (e, r) => {
    const { __scopeSelect: t, nonce: n, ...a } = e, c = j(Ae, t), l = Be(Ae, t), s = M(r, c.onViewportChange), i = o.useRef(0);
    return /* @__PURE__ */ me(Ge, { children: [
      /* @__PURE__ */ d(
        "style",
        {
          dangerouslySetInnerHTML: {
            __html: "[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"
          },
          nonce: n
        }
      ),
      /* @__PURE__ */ d(we.Slot, { scope: t, children: /* @__PURE__ */ d(
        E.div,
        {
          "data-radix-select-viewport": "",
          role: "presentation",
          ...a,
          ref: s,
          style: {
            // we use position: 'relative' here on the `viewport` so that when we call
            // `selectedItem.offsetTop` in calculations, the offset is relative to the viewport
            // (independent of the scrollUpButton).
            position: "relative",
            flex: 1,
            overflow: "auto",
            ...a.style
          },
          onScroll: T(a.onScroll, (u) => {
            const m = u.currentTarget, { contentWrapper: h, shouldExpandOnScrollRef: C } = l;
            if (C != null && C.current && h) {
              const x = Math.abs(i.current - m.scrollTop);
              if (x > 0) {
                const v = window.innerHeight - $ * 2, S = parseFloat(h.style.minHeight), N = parseFloat(h.style.height), g = Math.max(S, N);
                if (g < v) {
                  const p = g + x, w = Math.min(v, p), H = p - w;
                  h.style.height = w + "px", h.style.bottom === "0px" && (m.scrollTop = H > 0 ? H : 0, h.style.justifyContent = "flex-end");
                }
              }
            }
            i.current = m.scrollTop;
          })
        }
      ) })
    ] });
  }
);
Kt.displayName = Ae;
var Ut = "SelectGroup", [vr, hr] = se(Ut), Yt = o.forwardRef(
  (e, r) => {
    const { __scopeSelect: t, ...n } = e, a = Ce();
    return /* @__PURE__ */ d(vr, { scope: t, id: a, children: /* @__PURE__ */ d(E.div, { role: "group", "aria-labelledby": a, ...n, ref: r }) });
  }
);
Yt.displayName = Ut;
var jt = "SelectLabel", qt = o.forwardRef(
  (e, r) => {
    const { __scopeSelect: t, ...n } = e, a = hr(jt, t);
    return /* @__PURE__ */ d(E.div, { id: a.id, ...n, ref: r });
  }
);
qt.displayName = jt;
var he = "SelectItem", [gr, Zt] = se(he), Xt = o.forwardRef(
  (e, r) => {
    const {
      __scopeSelect: t,
      value: n,
      disabled: a = !1,
      textValue: c,
      ...l
    } = e, s = Y(he, t), i = j(he, t), u = s.value === n, [m, h] = o.useState(c ?? ""), [C, x] = o.useState(!1), v = M(
      r,
      (g) => {
        var p;
        return (p = i.itemRefCallback) == null ? void 0 : p.call(i, g, n, a);
      }
    ), S = Ce(), N = () => {
      a || (s.onValueChange(n), s.onOpenChange(!1));
    };
    if (n === "")
      throw new Error(
        "A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder."
      );
    return /* @__PURE__ */ d(
      gr,
      {
        scope: t,
        value: n,
        disabled: a,
        textId: S,
        isSelected: u,
        onItemTextChange: o.useCallback((g) => {
          h((p) => p || ((g == null ? void 0 : g.textContent) ?? "").trim());
        }, []),
        children: /* @__PURE__ */ d(
          we.ItemSlot,
          {
            scope: t,
            value: n,
            disabled: a,
            textValue: m,
            children: /* @__PURE__ */ d(
              E.div,
              {
                role: "option",
                "aria-labelledby": S,
                "data-highlighted": C ? "" : void 0,
                "aria-selected": u && C,
                "data-state": u ? "checked" : "unchecked",
                "aria-disabled": a || void 0,
                "data-disabled": a ? "" : void 0,
                tabIndex: a ? void 0 : -1,
                ...l,
                ref: v,
                onFocus: T(l.onFocus, () => x(!0)),
                onBlur: T(l.onBlur, () => x(!1)),
                onPointerUp: T(l.onPointerUp, N),
                onPointerMove: T(l.onPointerMove, (g) => {
                  var p;
                  a ? (p = i.onItemLeave) == null || p.call(i) : g.currentTarget.focus({ preventScroll: !0 });
                }),
                onPointerLeave: T(l.onPointerLeave, (g) => {
                  var p;
                  g.currentTarget === document.activeElement && ((p = i.onItemLeave) == null || p.call(i));
                }),
                onKeyDown: T(l.onKeyDown, (g) => {
                  var w;
                  ((w = i.searchRef) == null ? void 0 : w.current) !== "" && g.key === " " || (nr.includes(g.key) && N(), g.key === " " && g.preventDefault());
                })
              }
            )
          }
        )
      }
    );
  }
);
Xt.displayName = he;
var ie = "SelectItemText", Jt = o.forwardRef(
  (e, r) => {
    const { __scopeSelect: t, className: n, style: a, ...c } = e, l = Y(ie, t), s = j(ie, t), i = Zt(ie, t), u = cr(ie, t), [m, h] = o.useState(null), C = M(
      r,
      (g) => h(g),
      i.onItemTextChange,
      (g) => {
        var p;
        return (p = s.itemTextRefCallback) == null ? void 0 : p.call(s, g, i.value, i.disabled);
      }
    ), x = m == null ? void 0 : m.textContent, v = o.useMemo(
      () => /* @__PURE__ */ d("option", { value: i.value, disabled: i.disabled, children: x }, i.value),
      [i.disabled, i.value, x]
    ), { onNativeOptionAdd: S, onNativeOptionRemove: N } = u;
    return K(() => (S(v), () => N(v)), [S, N, v]), /* @__PURE__ */ me(Ge, { children: [
      /* @__PURE__ */ d(E.span, { id: i.textId, ...c, ref: C }),
      i.isSelected && l.valueNode && !l.valueNodeHasChildren ? pt.createPortal(c.children, l.valueNode) : null
    ] });
  }
);
Jt.displayName = ie;
var Qt = "SelectItemIndicator", eo = o.forwardRef(
  (e, r) => {
    const { __scopeSelect: t, ...n } = e;
    return Zt(Qt, t).isSelected ? /* @__PURE__ */ d(E.span, { "aria-hidden": !0, ...n, ref: r }) : null;
  }
);
eo.displayName = Qt;
var Oe = "SelectScrollUpButton", Sr = o.forwardRef((e, r) => {
  const t = j(Oe, e.__scopeSelect), n = Be(Oe, e.__scopeSelect), [a, c] = o.useState(!1), l = M(r, n.onScrollButtonChange);
  return K(() => {
    if (t.viewport && t.isPositioned) {
      let s = function() {
        const u = i.scrollTop > 0;
        c(u);
      };
      const i = t.viewport;
      return s(), i.addEventListener("scroll", s), () => i.removeEventListener("scroll", s);
    }
  }, [t.viewport, t.isPositioned]), a ? /* @__PURE__ */ d(
    to,
    {
      ...e,
      ref: l,
      onAutoScroll: () => {
        const { viewport: s, selectedItem: i } = t;
        s && i && (s.scrollTop = s.scrollTop - i.offsetHeight);
      }
    }
  ) : null;
});
Sr.displayName = Oe;
var Me = "SelectScrollDownButton", Cr = o.forwardRef((e, r) => {
  const t = j(Me, e.__scopeSelect), n = Be(Me, e.__scopeSelect), [a, c] = o.useState(!1), l = M(r, n.onScrollButtonChange);
  return K(() => {
    if (t.viewport && t.isPositioned) {
      let s = function() {
        const u = i.scrollHeight - i.clientHeight, m = Math.ceil(i.scrollTop) < u;
        c(m);
      };
      const i = t.viewport;
      return s(), i.addEventListener("scroll", s), () => i.removeEventListener("scroll", s);
    }
  }, [t.viewport, t.isPositioned]), a ? /* @__PURE__ */ d(
    to,
    {
      ...e,
      ref: l,
      onAutoScroll: () => {
        const { viewport: s, selectedItem: i } = t;
        s && i && (s.scrollTop = s.scrollTop + i.offsetHeight);
      }
    }
  ) : null;
});
Cr.displayName = Me;
var to = o.forwardRef((e, r) => {
  const { __scopeSelect: t, onAutoScroll: n, ...a } = e, c = j("SelectScrollButton", t), l = o.useRef(null), s = Pe(t), i = o.useCallback(() => {
    l.current !== null && (window.clearInterval(l.current), l.current = null);
  }, []);
  return o.useEffect(() => () => i(), [i]), K(() => {
    var m;
    const u = s().find((h) => h.ref.current === document.activeElement);
    (m = u == null ? void 0 : u.ref.current) == null || m.scrollIntoView({ block: "nearest" });
  }, [s]), /* @__PURE__ */ d(
    E.div,
    {
      "aria-hidden": !0,
      ...a,
      ref: r,
      style: { flexShrink: 0, ...a.style },
      onPointerDown: T(a.onPointerDown, () => {
        l.current === null && (l.current = window.setInterval(n, 50));
      }),
      onPointerMove: T(a.onPointerMove, () => {
        var u;
        (u = c.onItemLeave) == null || u.call(c), l.current === null && (l.current = window.setInterval(n, 50));
      }),
      onPointerLeave: T(a.onPointerLeave, () => {
        i();
      })
    }
  );
}), wr = "SelectSeparator", oo = o.forwardRef(
  (e, r) => {
    const { __scopeSelect: t, ...n } = e;
    return /* @__PURE__ */ d(E.div, { "aria-hidden": !0, ...n, ref: r });
  }
);
oo.displayName = wr;
var De = "SelectArrow", Pr = o.forwardRef(
  (e, r) => {
    const { __scopeSelect: t, ...n } = e, a = ye(t), c = Y(De, t), l = j(De, t);
    return c.open && l.position === "popper" ? /* @__PURE__ */ d(rt, { ...a, ...n, ref: r }) : null;
  }
);
Pr.displayName = De;
function ro(e) {
  return e === "" || e === void 0;
}
var no = o.forwardRef(
  (e, r) => {
    const { value: t, ...n } = e, a = o.useRef(null), c = M(r, a), l = ho(t);
    return o.useEffect(() => {
      const s = a.current, i = window.HTMLSelectElement.prototype, m = Object.getOwnPropertyDescriptor(
        i,
        "value"
      ).set;
      if (l !== t && m) {
        const h = new Event("change", { bubbles: !0 });
        m.call(s, t), s.dispatchEvent(h);
      }
    }, [l, t]), /* @__PURE__ */ d(lo, { asChild: !0, children: /* @__PURE__ */ d("select", { ...n, ref: c, defaultValue: t }) });
  }
);
no.displayName = "BubbleSelect";
function ao(e) {
  const r = co(e), t = o.useRef(""), n = o.useRef(0), a = o.useCallback(
    (l) => {
      const s = t.current + l;
      r(s), function i(u) {
        t.current = u, window.clearTimeout(n.current), u !== "" && (n.current = window.setTimeout(() => i(""), 1e3));
      }(s);
    },
    [r]
  ), c = o.useCallback(() => {
    t.current = "", window.clearTimeout(n.current);
  }, []);
  return o.useEffect(() => () => window.clearTimeout(n.current), []), [t, a, c];
}
function so(e, r, t) {
  const a = r.length > 1 && Array.from(r).every((u) => u === r[0]) ? r[0] : r, c = t ? e.indexOf(t) : -1;
  let l = yr(e, Math.max(c, 0));
  a.length === 1 && (l = l.filter((u) => u !== t));
  const i = l.find(
    (u) => u.textValue.toLowerCase().startsWith(a.toLowerCase())
  );
  return i !== t ? i : void 0;
}
function yr(e, r) {
  return e.map((t, n) => e[(r + n) % e.length]);
}
var xr = Dt, Ir = Vt, Nr = Gt, Rr = Ft, Tr = $t, Er = Ht, br = Kt, _r = Yt, Ar = qt, Or = Xt, Mr = Jt, Dr = eo, kr = oo;
const Vr = ["1", "2", "3"], ze = { size: { type: "enum", className: "rt-r-size", values: Vr, default: "2", responsive: !0 } }, Lr = ["classic", "surface", "soft", "ghost"], Gr = { variant: { type: "enum", className: "rt-variant", values: Lr, default: "surface" }, ...Xe, ...po, placeholder: { type: "string" } }, Fr = ["solid", "soft"], $r = { variant: { type: "enum", className: "rt-variant", values: Fr, default: "solid" }, ...Xe, ...je }, We = o.createContext({}), Hr = (e) => {
  const { children: r, size: t = ze.size.default, ...n } = e;
  return o.createElement(xr, { ...n }, o.createElement(We.Provider, { value: o.useMemo(() => ({ size: t }), [t]) }, r));
};
Hr.displayName = "Select.Root";
const Br = o.forwardRef((e, r) => {
  const t = o.useContext(We), { children: n, className: a, color: c, radius: l, placeholder: s, ...i } = ge({ size: t == null ? void 0 : t.size, ...e }, { size: ze.size }, Gr, Ze);
  return o.createElement(Ir, { asChild: !0 }, o.createElement("button", { "data-accent-color": c, "data-radius": l, ...i, ref: r, className: G("rt-reset", "rt-SelectTrigger", a) }, o.createElement("span", { className: "rt-SelectTriggerInner" }, o.createElement(Nr, { placeholder: s }, n)), o.createElement(Rr, { asChild: !0 }, o.createElement(Po, { className: "rt-SelectIcon" }))));
});
Br.displayName = "Select.Trigger";
const zr = o.forwardRef((e, r) => {
  const t = o.useContext(We), { className: n, children: a, color: c, container: l, ...s } = ge({ size: t == null ? void 0 : t.size, ...e }, { size: ze.size }, $r), i = go(), u = c || i.accentColor;
  return o.createElement(Tr, { container: l }, o.createElement(nt, { asChild: !0 }, o.createElement(Er, { "data-accent-color": u, sideOffset: 4, ...s, asChild: !1, ref: r, className: G({ "rt-PopperContent": s.position === "popper" }, "rt-SelectContent", n) }, o.createElement(yo, { type: "auto", className: "rt-ScrollAreaRoot" }, o.createElement(br, { asChild: !0, className: "rt-SelectViewport" }, o.createElement(xo, { className: "rt-ScrollAreaViewport", style: { overflowY: void 0 } }, a)), o.createElement(Io, { className: "rt-ScrollAreaScrollbar rt-r-size-1", orientation: "vertical" }, o.createElement(No, { className: "rt-ScrollAreaThumb" }))))));
});
zr.displayName = "Select.Content";
const Wr = o.forwardRef((e, r) => {
  const { className: t, children: n, ...a } = e;
  return o.createElement(Or, { ...a, asChild: !1, ref: r, className: G("rt-SelectItem", t) }, o.createElement(Dr, { className: "rt-SelectItemIndicator" }, o.createElement(Ro, { className: "rt-SelectItemIndicatorIcon" })), o.createElement(Mr, null, n));
});
Wr.displayName = "Select.Item";
const Kr = o.forwardRef(({ className: e, ...r }, t) => o.createElement(_r, { ...r, asChild: !1, ref: t, className: G("rt-SelectGroup", e) }));
Kr.displayName = "Select.Group";
const Ur = o.forwardRef(({ className: e, ...r }, t) => o.createElement(Ar, { ...r, asChild: !1, ref: t, className: G("rt-SelectLabel", e) }));
Ur.displayName = "Select.Label";
const Yr = o.forwardRef(({ className: e, ...r }, t) => o.createElement(kr, { ...r, asChild: !1, ref: t, className: G("rt-SelectSeparator", e) }));
Yr.displayName = "Select.Separator";
function cn(e) {
  return ft().datasources.find((n) => n.id === e);
}
function dn() {
  return ft().datasources;
}
export {
  Ao as C,
  sn as I,
  Yo as P,
  an as R,
  Hr as a,
  dn as b,
  cn as c,
  zr as g,
  Ur as h,
  qo as i,
  _o as m,
  bo as n,
  jo as s,
  Br as u,
  Kr as v,
  Wr as y
};
//# sourceMappingURL=use-datasource.lNgAx4eG.js.map
