@gram-ai/elements 1.18.0 → 1.18.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/elements.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { jsx as g, Fragment as Fn, jsxs as U } from "react/jsx-runtime";
2
- import { c as Ee, a as Kd, T as xm, r as V0, E as B0, b as J0, d as R, u as We, e as po, f as fo, g as Im } from "./index-1qi_Rje5.js";
2
+ import { c as Ee, a as Kd, T as xm, r as V0, E as B0, b as J0, d as R, u as Ke, e as po, f as fo, g as Im } from "./index-1qi_Rje5.js";
3
3
  import { getExternalStoreMessages as ll, unstable_createMessageConverter as W0, useAssistantApi as km, INTERNAL as Em, useRuntimeAdapters as H0, useExternalStoreRuntime as G0, unstable_useCloudThreadListAdapter as K0, unstable_useRemoteThreadListRuntime as Y0, useAssistantState as Tt, makeAssistantTool as Q0, AssistantRuntimeProvider as X0, useScrollLock as eI, MessagePrimitive as pr, ComposerPrimitive as Mt, AttachmentPrimitive as ul, ThreadPrimitive as Wt, ErrorPrimitive as Yd, BranchPickerPrimitive as Tn, ActionBarPrimitive as Un } from "@assistant-ui/react";
4
4
  import * as _ from "react";
5
5
  import Tm, { useRef as Lt, useCallback as $t, useState as Ie, useEffect as kt, useMemo as fr, useSyncExternalStore as Os, useContext as tI, useLayoutEffect as rI, forwardRef as nI, memo as Ql } from "react";
@@ -7810,7 +7810,7 @@ function hr(e, t) {
7810
7810
  inclusive: !1
7811
7811
  });
7812
7812
  }
7813
- function Ge(e, t) {
7813
+ function He(e, t) {
7814
7814
  return new yu({
7815
7815
  check: "greater_than",
7816
7816
  ...N(t),
@@ -7828,7 +7828,7 @@ function Hu(e) {
7828
7828
  return ut(0, e);
7829
7829
  }
7830
7830
  function Gu(e) {
7831
- return Ge(0, e);
7831
+ return He(0, e);
7832
7832
  }
7833
7833
  function an(e, t) {
7834
7834
  return new cg({
@@ -8930,7 +8930,7 @@ const _O = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8930
8930
  _float32: sy,
8931
8931
  _float64: ly,
8932
8932
  _gt: hr,
8933
- _gte: Ge,
8933
+ _gte: He,
8934
8934
  _guid: Ti,
8935
8935
  _includes: ga,
8936
8936
  _int: ay,
@@ -8957,7 +8957,7 @@ const _O = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8957
8957
  _maxLength: Io,
8958
8958
  _maxSize: xo,
8959
8959
  _mime: ba,
8960
- _min: Ge,
8960
+ _min: He,
8961
8961
  _minLength: Tr,
8962
8962
  _minSize: sn,
8963
8963
  _multipleOf: an,
@@ -9064,7 +9064,7 @@ const _O = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9064
9064
  __proto__: null,
9065
9065
  endsWith: ya,
9066
9066
  gt: hr,
9067
- gte: Ge,
9067
+ gte: He,
9068
9068
  includes: ga,
9069
9069
  length: ko,
9070
9070
  lowercase: ma,
@@ -9346,7 +9346,7 @@ function c_(e, t) {
9346
9346
  return Eo(vn, o, r, t);
9347
9347
  }
9348
9348
  const No = /* @__PURE__ */ x("ZodNumber", (e, t) => {
9349
- _u.init(e, t), te.init(e, t), e._zod.processJSONSchema = (o, r, i) => Dy(e, o, r), e.gt = (o, r) => e.check(hr(o, r)), e.gte = (o, r) => e.check(Ge(o, r)), e.min = (o, r) => e.check(Ge(o, r)), e.lt = (o, r) => e.check(mr(o, r)), e.lte = (o, r) => e.check(ut(o, r)), e.max = (o, r) => e.check(ut(o, r)), e.int = (o) => e.check(Oi(o)), e.safe = (o) => e.check(Oi(o)), e.positive = (o) => e.check(hr(0, o)), e.nonnegative = (o) => e.check(Ge(0, o)), e.negative = (o) => e.check(mr(0, o)), e.nonpositive = (o) => e.check(ut(0, o)), e.multipleOf = (o, r) => e.check(an(o, r)), e.step = (o, r) => e.check(an(o, r)), e.finite = () => e;
9349
+ _u.init(e, t), te.init(e, t), e._zod.processJSONSchema = (o, r, i) => Dy(e, o, r), e.gt = (o, r) => e.check(hr(o, r)), e.gte = (o, r) => e.check(He(o, r)), e.min = (o, r) => e.check(He(o, r)), e.lt = (o, r) => e.check(mr(o, r)), e.lte = (o, r) => e.check(ut(o, r)), e.max = (o, r) => e.check(ut(o, r)), e.int = (o) => e.check(Oi(o)), e.safe = (o) => e.check(Oi(o)), e.positive = (o) => e.check(hr(0, o)), e.nonnegative = (o) => e.check(He(0, o)), e.negative = (o) => e.check(mr(0, o)), e.nonpositive = (o) => e.check(ut(0, o)), e.multipleOf = (o, r) => e.check(an(o, r)), e.step = (o, r) => e.check(an(o, r)), e.finite = () => e;
9350
9350
  const n = e._zod.bag;
9351
9351
  e.minValue = Math.max(n.minimum ?? Number.NEGATIVE_INFINITY, n.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null, e.maxValue = Math.min(n.maximum ?? Number.POSITIVE_INFINITY, n.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null, e.isInt = (n.format ?? "").includes("int") || Number.isSafeInteger(n.multipleOf ?? 0.5), e.isFinite = !0, e.format = n.format ?? null;
9352
9352
  });
@@ -9378,7 +9378,7 @@ function de(e) {
9378
9378
  return dy(Po, e);
9379
9379
  }
9380
9380
  const Co = /* @__PURE__ */ x("ZodBigInt", (e, t) => {
9381
- $u.init(e, t), te.init(e, t), e._zod.processJSONSchema = (o, r, i) => Ly(e, o), e.gte = (o, r) => e.check(Ge(o, r)), e.min = (o, r) => e.check(Ge(o, r)), e.gt = (o, r) => e.check(hr(o, r)), e.gte = (o, r) => e.check(Ge(o, r)), e.min = (o, r) => e.check(Ge(o, r)), e.lt = (o, r) => e.check(mr(o, r)), e.lte = (o, r) => e.check(ut(o, r)), e.max = (o, r) => e.check(ut(o, r)), e.positive = (o) => e.check(hr(BigInt(0), o)), e.negative = (o) => e.check(mr(BigInt(0), o)), e.nonpositive = (o) => e.check(ut(BigInt(0), o)), e.nonnegative = (o) => e.check(Ge(BigInt(0), o)), e.multipleOf = (o, r) => e.check(an(o, r));
9381
+ $u.init(e, t), te.init(e, t), e._zod.processJSONSchema = (o, r, i) => Ly(e, o), e.gte = (o, r) => e.check(He(o, r)), e.min = (o, r) => e.check(He(o, r)), e.gt = (o, r) => e.check(hr(o, r)), e.gte = (o, r) => e.check(He(o, r)), e.min = (o, r) => e.check(He(o, r)), e.lt = (o, r) => e.check(mr(o, r)), e.lte = (o, r) => e.check(ut(o, r)), e.max = (o, r) => e.check(ut(o, r)), e.positive = (o) => e.check(hr(BigInt(0), o)), e.negative = (o) => e.check(mr(BigInt(0), o)), e.nonpositive = (o) => e.check(ut(BigInt(0), o)), e.nonnegative = (o) => e.check(He(BigInt(0), o)), e.multipleOf = (o, r) => e.check(an(o, r));
9382
9382
  const n = e._zod.bag;
9383
9383
  e.minValue = n.minimum ?? null, e.maxValue = n.maximum ?? null, e.format = n.format ?? null;
9384
9384
  });
@@ -9437,7 +9437,7 @@ function __(e) {
9437
9437
  return Sy(uc, e);
9438
9438
  }
9439
9439
  const Wa = /* @__PURE__ */ x("ZodDate", (e, t) => {
9440
- pv.init(e, t), te.init(e, t), e._zod.processJSONSchema = (o, r, i) => Hy(e, o), e.min = (o, r) => e.check(Ge(o, r)), e.max = (o, r) => e.check(ut(o, r));
9440
+ pv.init(e, t), te.init(e, t), e._zod.processJSONSchema = (o, r, i) => Hy(e, o), e.min = (o, r) => e.check(He(o, r)), e.max = (o, r) => e.check(ut(o, r));
9441
9441
  const n = e._zod.bag;
9442
9442
  e.minDate = n.minimum ? new Date(n.minimum) : null, e.maxDate = n.maximum ? new Date(n.maximum) : null;
9443
9443
  });
@@ -10409,7 +10409,7 @@ const Pi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10409
10409
  getErrorMap: kO,
10410
10410
  globalRegistry: xt,
10411
10411
  gt: hr,
10412
- gte: Ge,
10412
+ gte: He,
10413
10413
  guid: Ub,
10414
10414
  hash: c_,
10415
10415
  hex: u_,
@@ -22997,7 +22997,7 @@ function tj(e, t) {
22997
22997
  function rj() {
22998
22998
  qi = null;
22999
22999
  }
23000
- const FL = (e, t) => Q0({
23000
+ const ZL = (e, t) => Q0({
23001
23001
  ...e,
23002
23002
  execute: async (n, o) => {
23003
23003
  if (qi?.toolsRequiringApproval.has(t)) {
@@ -23117,7 +23117,7 @@ function aj(e) {
23117
23117
  setTimeout(e, 0);
23118
23118
  }
23119
23119
  var Cr = typeof window > "u" || "Deno" in globalThis;
23120
- function He() {
23120
+ function We() {
23121
23121
  }
23122
23122
  function sj(e, t) {
23123
23123
  return typeof e == "function" ? e(t) : e;
@@ -23545,7 +23545,7 @@ var wS = class {
23545
23545
  }
23546
23546
  cancel(e) {
23547
23547
  const t = this.#n?.promise;
23548
- return this.#n?.cancel(e), t ? t.then(He).catch(He) : Promise.resolve();
23548
+ return this.#n?.cancel(e), t ? t.then(We).catch(We) : Promise.resolve();
23549
23549
  }
23550
23550
  destroy() {
23551
23551
  super.destroy(), this.cancel({ silent: !0 });
@@ -23914,7 +23914,7 @@ var bj = class extends qo {
23914
23914
  this.options,
23915
23915
  e
23916
23916
  );
23917
- return e?.throwOnError || (t = t.catch(He)), t;
23917
+ return e?.throwOnError || (t = t.catch(We)), t;
23918
23918
  }
23919
23919
  #g() {
23920
23920
  this.#_();
@@ -24469,7 +24469,7 @@ var Ij = class extends qo {
24469
24469
  const e = this.getAll().filter((t) => t.state.isPaused);
24470
24470
  return Me.batch(
24471
24471
  () => Promise.all(
24472
- e.map((t) => t.continue().catch(He))
24472
+ e.map((t) => t.continue().catch(We))
24473
24473
  )
24474
24474
  );
24475
24475
  }
@@ -24642,7 +24642,7 @@ var kj = class extends qo {
24642
24642
  const n = { revert: !0, ...t }, o = Me.batch(
24643
24643
  () => this.#e.findAll(e).map((r) => r.cancel(n))
24644
24644
  );
24645
- return Promise.all(o).then(He).catch(He);
24645
+ return Promise.all(o).then(We).catch(We);
24646
24646
  }
24647
24647
  invalidateQueries(e, t = {}) {
24648
24648
  return Me.batch(() => (this.#e.findAll(e).forEach((n) => {
@@ -24662,10 +24662,10 @@ var kj = class extends qo {
24662
24662
  }, o = Me.batch(
24663
24663
  () => this.#e.findAll(e).filter((r) => !r.isDisabled() && !r.isStatic()).map((r) => {
24664
24664
  let i = r.fetch(void 0, n);
24665
- return n.throwOnError || (i = i.catch(He)), r.state.fetchStatus === "paused" ? Promise.resolve() : i;
24665
+ return n.throwOnError || (i = i.catch(We)), r.state.fetchStatus === "paused" ? Promise.resolve() : i;
24666
24666
  })
24667
24667
  );
24668
- return Promise.all(o).then(He);
24668
+ return Promise.all(o).then(We);
24669
24669
  }
24670
24670
  fetchQuery(e) {
24671
24671
  const t = this.defaultQueryOptions(e);
@@ -24676,13 +24676,13 @@ var kj = class extends qo {
24676
24676
  ) ? n.fetch(t) : Promise.resolve(n.state.data);
24677
24677
  }
24678
24678
  prefetchQuery(e) {
24679
- return this.fetchQuery(e).then(He).catch(He);
24679
+ return this.fetchQuery(e).then(We).catch(We);
24680
24680
  }
24681
24681
  fetchInfiniteQuery(e) {
24682
24682
  return e.behavior = Lf(e.pages), this.fetchQuery(e);
24683
24683
  }
24684
24684
  prefetchInfiniteQuery(e) {
24685
- return this.fetchInfiniteQuery(e).then(He).catch(He);
24685
+ return this.fetchInfiniteQuery(e).then(We).catch(We);
24686
24686
  }
24687
24687
  ensureInfiniteQueryData(e) {
24688
24688
  return e.behavior = Lf(e.pages), this.ensureQueryData(e);
@@ -24820,7 +24820,7 @@ function Uj(e, t, n) {
24820
24820
  if (_.useSyncExternalStore(
24821
24821
  _.useCallback(
24822
24822
  (d) => {
24823
- const f = c ? u.subscribe(Me.batchCalls(d)) : He;
24823
+ const f = c ? u.subscribe(Me.batchCalls(d)) : We;
24824
24824
  return u.updateResult(), f;
24825
24825
  },
24826
24826
  [u, c]
@@ -24848,7 +24848,7 @@ function Uj(e, t, n) {
24848
24848
  ) : (
24849
24849
  // subscribe to the "cache promise" so that we can finalize the currentThenable once data comes in
24850
24850
  i.getQueryCache().get(a.queryHash)?.promise
24851
- ))?.catch(He).finally(() => {
24851
+ ))?.catch(We).finally(() => {
24852
24852
  u.updateResult();
24853
24853
  }), a.notifyOnChangeProps ? l : u.trackResult(l);
24854
24854
  }
@@ -25168,7 +25168,7 @@ var r4 = Yt.extend({
25168
25168
  expires_in: q().optional(),
25169
25169
  scope: w().optional(),
25170
25170
  refresh_token: w().optional()
25171
- }).strip(), Ke = w().url().superRefine((e, t) => {
25171
+ }).strip(), Ge = w().url().superRefine((e, t) => {
25172
25172
  if (!URL.canParse(e))
25173
25173
  return t.addIssue({
25174
25174
  code: F_.custom,
@@ -25183,7 +25183,7 @@ var r4 = Yt.extend({
25183
25183
  { message: "URL cannot use javascript:, data:, or vbscript: scheme" }
25184
25184
  ), $4 = E({
25185
25185
  resource: w().url(),
25186
- authorization_servers: z(Ke).optional(),
25186
+ authorization_servers: z(Ge).optional(),
25187
25187
  jwks_uri: w().url().optional(),
25188
25188
  scopes_supported: z(w()).optional(),
25189
25189
  bearer_methods_supported: z(w()).optional(),
@@ -25198,9 +25198,9 @@ var r4 = Yt.extend({
25198
25198
  dpop_bound_access_tokens_required: de().optional()
25199
25199
  }).passthrough(), ZS = E({
25200
25200
  issuer: w(),
25201
- authorization_endpoint: Ke,
25202
- token_endpoint: Ke,
25203
- registration_endpoint: Ke.optional(),
25201
+ authorization_endpoint: Ge,
25202
+ token_endpoint: Ge,
25203
+ registration_endpoint: Ge.optional(),
25204
25204
  scopes_supported: z(w()).optional(),
25205
25205
  response_types_supported: z(w()),
25206
25206
  grant_types_supported: z(w()).optional(),
@@ -25209,11 +25209,11 @@ var r4 = Yt.extend({
25209
25209
  token_endpoint_auth_signing_alg_values_supported: z(w()).optional()
25210
25210
  }).passthrough(), S4 = E({
25211
25211
  issuer: w(),
25212
- authorization_endpoint: Ke,
25213
- token_endpoint: Ke,
25214
- userinfo_endpoint: Ke.optional(),
25215
- jwks_uri: Ke,
25216
- registration_endpoint: Ke.optional(),
25212
+ authorization_endpoint: Ge,
25213
+ token_endpoint: Ge,
25214
+ userinfo_endpoint: Ge.optional(),
25215
+ jwks_uri: Ge,
25216
+ registration_endpoint: Ge.optional(),
25217
25217
  scopes_supported: z(w()).optional(),
25218
25218
  response_types_supported: z(w()),
25219
25219
  grant_types_supported: z(w()).optional(),
@@ -25231,18 +25231,18 @@ var r4 = Yt.extend({
25231
25231
  client_id_issued_at: q().optional(),
25232
25232
  client_secret_expires_at: q().optional()
25233
25233
  }).strip(), k4 = E({
25234
- redirect_uris: z(Ke),
25234
+ redirect_uris: z(Ge),
25235
25235
  token_endpoint_auth_method: w().optional(),
25236
25236
  grant_types: z(w()).optional(),
25237
25237
  response_types: z(w()).optional(),
25238
25238
  client_name: w().optional(),
25239
- client_uri: Ke.optional(),
25240
- logo_uri: Ke.optional(),
25239
+ client_uri: Ge.optional(),
25240
+ logo_uri: Ge.optional(),
25241
25241
  scope: w().optional(),
25242
25242
  contacts: z(w()).optional(),
25243
- tos_uri: Ke.optional(),
25243
+ tos_uri: Ge.optional(),
25244
25244
  policy_uri: w().optional(),
25245
- jwks_uri: Ke.optional(),
25245
+ jwks_uri: Ge.optional(),
25246
25246
  jwks: Ce().optional(),
25247
25247
  software_id: w().optional(),
25248
25248
  software_version: w().optional(),
@@ -26687,10 +26687,10 @@ const BS = () => {
26687
26687
  "useToolApproval must be used within a ToolApprovalProvider"
26688
26688
  );
26689
26689
  return e;
26690
- }, oM = "https://app.getgram.ai", iM = "You are a helpful assistant that can answer questions and help with tasks.";
26691
- function aM(e, t) {
26690
+ }, oM = "You are a helpful assistant that can answer questions and help with tasks.";
26691
+ function iM(e, t) {
26692
26692
  return `
26693
- ${iM}
26693
+ ${oM}
26694
26694
 
26695
26695
  User-provided System Prompt:
26696
26696
  ${e ?? "None provided"}
@@ -26699,7 +26699,7 @@ function aM(e, t) {
26699
26699
  ${t.map((n) => `- ${n.language}: ${n.prompt}`).join(`
26700
26700
  `)}`;
26701
26701
  }
26702
- async function sM(e) {
26702
+ async function aM(e) {
26703
26703
  return (await (await fetch("/chat/session", {
26704
26704
  method: "POST",
26705
26705
  headers: {
@@ -26707,16 +26707,16 @@ async function sM(e) {
26707
26707
  }
26708
26708
  })).json()).client_token;
26709
26709
  }
26710
- const lM = ({
26710
+ const sM = ({
26711
26711
  children: e,
26712
26712
  config: t,
26713
- getSession: n = sM
26713
+ getSession: n = aM
26714
26714
  }) => {
26715
26715
  const o = ES({ getSession: n, projectSlug: t.projectSlug }), r = BS(), [i, a] = Ie(
26716
26716
  t.model?.defaultModel ?? Cm[0]
26717
26717
  ), [s, u] = Ie(
26718
26718
  t.modal?.defaultExpanded ?? !1
26719
- ), [l, c] = Ie(t.modal?.defaultOpen), d = t.plugins ?? V0, f = aM(
26719
+ ), [l, c] = Ie(t.modal?.defaultOpen), d = t.plugins ?? V0, f = iM(
26720
26720
  t.systemPrompt,
26721
26721
  d
26722
26722
  ), { data: p, isLoading: h } = tM({
@@ -26724,27 +26724,29 @@ const lM = ({
26724
26724
  projectSlug: t.projectSlug,
26725
26725
  mcp: t.mcp,
26726
26726
  environment: t.environment ?? {}
26727
- }), m = !p || h, b = Lt({
26727
+ }), m = Lt({
26728
26728
  requestApproval: r.requestApproval,
26729
26729
  isToolApproved: r.isToolApproved,
26730
26730
  whitelistTool: r.whitelistTool
26731
26731
  });
26732
- b.current = {
26732
+ m.current = {
26733
26733
  requestApproval: r.requestApproval,
26734
26734
  isToolApproved: r.isToolApproved,
26735
26735
  whitelistTool: r.whitelistTool
26736
26736
  };
26737
- const y = $t(() => ({
26738
- requestApproval: (...v) => b.current.requestApproval(...v),
26739
- isToolApproved: (...v) => b.current.isToolApproved(...v),
26740
- whitelistTool: (...v) => b.current.whitelistTool(...v)
26737
+ const b = $t(() => ({
26738
+ requestApproval: (...v) => m.current.requestApproval(...v),
26739
+ isToolApproved: (...v) => m.current.isToolApproved(...v),
26740
+ whitelistTool: (...v) => m.current.whitelistTool(...v)
26741
26741
  }), []);
26742
26742
  kt(() => (t.tools?.toolsRequiringApproval?.length && tj(
26743
- y(),
26743
+ b(),
26744
26744
  t.tools.toolsRequiringApproval
26745
26745
  ), () => {
26746
26746
  rj();
26747
- }), [t.tools?.toolsRequiringApproval, y]);
26747
+ }), [t.tools?.toolsRequiringApproval, b]);
26748
+ let y = "https://localhost:8080";
26749
+ y = y.replace(/\/+$/, "");
26748
26750
  const $ = fr(
26749
26751
  () => ({
26750
26752
  sendMessages: async ({ messages: v, abortSignal: k }) => {
@@ -26756,7 +26758,7 @@ const lM = ({
26756
26758
  const I = S.thread.getModelContext(), T = Xz(
26757
26759
  ej(I?.tools ?? {})
26758
26760
  ), j = O ? null : r$({
26759
- baseURL: oM,
26761
+ baseURL: y,
26760
26762
  apiKey: "unused, but must be set",
26761
26763
  headers: {
26762
26764
  "Gram-Project": t.projectSlug,
@@ -26770,7 +26772,7 @@ const lM = ({
26770
26772
  }, ee = nj(
26771
26773
  Z,
26772
26774
  t.tools?.toolsRequiringApproval,
26773
- y()
26775
+ b()
26774
26776
  ), ue = t.languageModel ? t.languageModel : j.chat(i);
26775
26777
  try {
26776
26778
  return Vz({
@@ -26801,6 +26803,7 @@ const lM = ({
26801
26803
  o,
26802
26804
  p,
26803
26805
  h,
26806
+ b,
26804
26807
  y
26805
26808
  ]
26806
26809
  ), S = m1({
@@ -26817,8 +26820,7 @@ const lM = ({
26817
26820
  setIsExpanded: u,
26818
26821
  isOpen: l ?? !1,
26819
26822
  setIsOpen: c,
26820
- plugins: d,
26821
- isLoadingMCPTools: m
26823
+ plugins: d
26822
26824
  },
26823
26825
  children: [
26824
26826
  e,
@@ -26826,9 +26828,9 @@ const lM = ({
26826
26828
  ]
26827
26829
  }
26828
26830
  ) });
26829
- }, qL = (e) => {
26831
+ }, FL = (e) => {
26830
26832
  const t = new Ej();
26831
- return /* @__PURE__ */ g(Tj, { client: t, children: /* @__PURE__ */ g(nM, { children: /* @__PURE__ */ g(lM, { ...e }) }) });
26833
+ return /* @__PURE__ */ g(Tj, { client: t, children: /* @__PURE__ */ g(nM, { children: /* @__PURE__ */ g(sM, { ...e }) }) });
26832
26834
  };
26833
26835
  function Kf(e, t) {
26834
26836
  if (typeof e == "function")
@@ -26854,19 +26856,19 @@ function cd(...e) {
26854
26856
  function Ye(...e) {
26855
26857
  return _.useCallback(cd(...e), e);
26856
26858
  }
26857
- var uM = Symbol.for("react.lazy"), Qi = _[" use ".trim().toString()];
26858
- function cM(e) {
26859
+ var lM = Symbol.for("react.lazy"), Qi = _[" use ".trim().toString()];
26860
+ function uM(e) {
26859
26861
  return typeof e == "object" && e !== null && "then" in e;
26860
26862
  }
26861
26863
  function JS(e) {
26862
- return e != null && typeof e == "object" && "$$typeof" in e && e.$$typeof === uM && "_payload" in e && cM(e._payload);
26864
+ return e != null && typeof e == "object" && "$$typeof" in e && e.$$typeof === lM && "_payload" in e && uM(e._payload);
26863
26865
  }
26864
26866
  // @__NO_SIDE_EFFECTS__
26865
26867
  function WS(e) {
26866
- const t = /* @__PURE__ */ pM(e), n = _.forwardRef((o, r) => {
26868
+ const t = /* @__PURE__ */ dM(e), n = _.forwardRef((o, r) => {
26867
26869
  let { children: i, ...a } = o;
26868
26870
  JS(i) && typeof Qi == "function" && (i = Qi(i._payload));
26869
- const s = _.Children.toArray(i), u = s.find(hM);
26871
+ const s = _.Children.toArray(i), u = s.find(mM);
26870
26872
  if (u) {
26871
26873
  const l = u.props.children, c = s.map((d) => d === u ? _.Children.count(l) > 1 ? _.Children.only(null) : _.isValidElement(l) ? l.props.children : null : d);
26872
26874
  return /* @__PURE__ */ g(t, { ...a, ref: r, children: _.isValidElement(l) ? _.cloneElement(l, void 0, c) : null });
@@ -26875,13 +26877,13 @@ function WS(e) {
26875
26877
  });
26876
26878
  return n.displayName = `${e}.Slot`, n;
26877
26879
  }
26878
- var dM = /* @__PURE__ */ WS("Slot");
26880
+ var cM = /* @__PURE__ */ WS("Slot");
26879
26881
  // @__NO_SIDE_EFFECTS__
26880
- function pM(e) {
26882
+ function dM(e) {
26881
26883
  const t = _.forwardRef((n, o) => {
26882
26884
  let { children: r, ...i } = n;
26883
26885
  if (JS(r) && typeof Qi == "function" && (r = Qi(r._payload)), _.isValidElement(r)) {
26884
- const a = vM(r), s = gM(i, r.props);
26886
+ const a = gM(r), s = hM(i, r.props);
26885
26887
  return r.type !== _.Fragment && (s.ref = o ? cd(o, a) : a), _.cloneElement(r, s);
26886
26888
  }
26887
26889
  return _.Children.count(r) > 1 ? _.Children.only(null) : null;
@@ -26890,15 +26892,15 @@ function pM(e) {
26890
26892
  }
26891
26893
  var HS = Symbol("radix.slottable");
26892
26894
  // @__NO_SIDE_EFFECTS__
26893
- function fM(e) {
26895
+ function pM(e) {
26894
26896
  const t = ({ children: n }) => /* @__PURE__ */ g(Fn, { children: n });
26895
26897
  return t.displayName = `${e}.Slottable`, t.__radixId = HS, t;
26896
26898
  }
26897
- var mM = /* @__PURE__ */ fM("Slottable");
26898
- function hM(e) {
26899
+ var fM = /* @__PURE__ */ pM("Slottable");
26900
+ function mM(e) {
26899
26901
  return _.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === HS;
26900
26902
  }
26901
- function gM(e, t) {
26903
+ function hM(e, t) {
26902
26904
  const n = { ...t };
26903
26905
  for (const o in t) {
26904
26906
  const r = e[o], i = t[o];
@@ -26909,7 +26911,7 @@ function gM(e, t) {
26909
26911
  }
26910
26912
  return { ...e, ...n };
26911
26913
  }
26912
- function vM(e) {
26914
+ function gM(e) {
26913
26915
  let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
26914
26916
  return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
26915
26917
  }
@@ -26942,7 +26944,7 @@ const Yf = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qf = J0, G
26942
26944
  ] : l;
26943
26945
  }, []);
26944
26946
  return Qf(e, a, u, n?.class, n?.className);
26945
- }, yM = GS(
26947
+ }, vM = GS(
26946
26948
  "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
26947
26949
  {
26948
26950
  variants: {
@@ -26969,10 +26971,10 @@ const Yf = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qf = J0, G
26969
26971
  }
26970
26972
  }
26971
26973
  ), Et = _.forwardRef(({ className: e, variant: t, size: n, asChild: o = !1, ...r }, i) => /* @__PURE__ */ g(
26972
- o ? dM : "button",
26974
+ o ? cM : "button",
26973
26975
  {
26974
26976
  "data-slot": "button",
26975
- className: R(yM({ variant: t, size: n, className: e })),
26977
+ className: R(vM({ variant: t, size: n, className: e })),
26976
26978
  ref: i,
26977
26979
  ...r
26978
26980
  }
@@ -26984,7 +26986,7 @@ function Ne(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
26984
26986
  return t?.(r);
26985
26987
  };
26986
26988
  }
26987
- function bM(e, t) {
26989
+ function yM(e, t) {
26988
26990
  const n = _.createContext(t), o = (i) => {
26989
26991
  const { children: a, ...s } = i, u = _.useMemo(() => s, Object.values(s));
26990
26992
  return /* @__PURE__ */ g(n.Provider, { value: u, children: a });
@@ -27026,9 +27028,9 @@ function Bo(e, t = []) {
27026
27028
  );
27027
27029
  };
27028
27030
  };
27029
- return r.scopeName = e, [o, _M(r, ...t)];
27031
+ return r.scopeName = e, [o, bM(r, ...t)];
27030
27032
  }
27031
- function _M(...e) {
27033
+ function bM(...e) {
27032
27034
  const t = e[0];
27033
27035
  if (e.length === 1) return t;
27034
27036
  const n = () => {
@@ -27048,8 +27050,8 @@ function _M(...e) {
27048
27050
  }
27049
27051
  // @__NO_SIDE_EFFECTS__
27050
27052
  function dd(e) {
27051
- const t = /* @__PURE__ */ wM(e), n = _.forwardRef((o, r) => {
27052
- const { children: i, ...a } = o, s = _.Children.toArray(i), u = s.find(SM);
27053
+ const t = /* @__PURE__ */ _M(e), n = _.forwardRef((o, r) => {
27054
+ const { children: i, ...a } = o, s = _.Children.toArray(i), u = s.find($M);
27053
27055
  if (u) {
27054
27056
  const l = u.props.children, c = s.map((d) => d === u ? _.Children.count(l) > 1 ? _.Children.only(null) : _.isValidElement(l) ? l.props.children : null : d);
27055
27057
  return /* @__PURE__ */ g(t, { ...a, ref: r, children: _.isValidElement(l) ? _.cloneElement(l, void 0, c) : null });
@@ -27059,11 +27061,11 @@ function dd(e) {
27059
27061
  return n.displayName = `${e}.Slot`, n;
27060
27062
  }
27061
27063
  // @__NO_SIDE_EFFECTS__
27062
- function wM(e) {
27064
+ function _M(e) {
27063
27065
  const t = _.forwardRef((n, o) => {
27064
27066
  const { children: r, ...i } = n;
27065
27067
  if (_.isValidElement(r)) {
27066
- const a = IM(r), s = xM(i, r.props);
27068
+ const a = xM(r), s = SM(i, r.props);
27067
27069
  return r.type !== _.Fragment && (s.ref = o ? cd(o, a) : a), _.cloneElement(r, s);
27068
27070
  }
27069
27071
  return _.Children.count(r) > 1 ? _.Children.only(null) : null;
@@ -27072,14 +27074,14 @@ function wM(e) {
27072
27074
  }
27073
27075
  var KS = Symbol("radix.slottable");
27074
27076
  // @__NO_SIDE_EFFECTS__
27075
- function $M(e) {
27077
+ function wM(e) {
27076
27078
  const t = ({ children: n }) => /* @__PURE__ */ g(Fn, { children: n });
27077
27079
  return t.displayName = `${e}.Slottable`, t.__radixId = KS, t;
27078
27080
  }
27079
- function SM(e) {
27081
+ function $M(e) {
27080
27082
  return _.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === KS;
27081
27083
  }
27082
- function xM(e, t) {
27084
+ function SM(e, t) {
27083
27085
  const n = { ...t };
27084
27086
  for (const o in t) {
27085
27087
  const r = e[o], i = t[o];
@@ -27090,11 +27092,11 @@ function xM(e, t) {
27090
27092
  }
27091
27093
  return { ...e, ...n };
27092
27094
  }
27093
- function IM(e) {
27095
+ function xM(e) {
27094
27096
  let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
27095
27097
  return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
27096
27098
  }
27097
- var kM = [
27099
+ var IM = [
27098
27100
  "a",
27099
27101
  "button",
27100
27102
  "div",
@@ -27112,14 +27114,14 @@ var kM = [
27112
27114
  "span",
27113
27115
  "svg",
27114
27116
  "ul"
27115
- ], Ae = kM.reduce((e, t) => {
27117
+ ], Ae = IM.reduce((e, t) => {
27116
27118
  const n = /* @__PURE__ */ dd(`Primitive.${t}`), o = _.forwardRef((r, i) => {
27117
27119
  const { asChild: a, ...s } = r, u = a ? n : t;
27118
27120
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ g(u, { ...s, ref: i });
27119
27121
  });
27120
27122
  return o.displayName = `Primitive.${t}`, { ...e, [t]: o };
27121
27123
  }, {});
27122
- function EM(e, t) {
27124
+ function kM(e, t) {
27123
27125
  e && Pm.flushSync(() => e.dispatchEvent(t));
27124
27126
  }
27125
27127
  function Ar(e) {
@@ -27128,7 +27130,7 @@ function Ar(e) {
27128
27130
  t.current = e;
27129
27131
  }), _.useMemo(() => (...n) => t.current?.(...n), []);
27130
27132
  }
27131
- function TM(e, t = globalThis?.document) {
27133
+ function EM(e, t = globalThis?.document) {
27132
27134
  const n = Ar(e);
27133
27135
  _.useEffect(() => {
27134
27136
  const o = (r) => {
@@ -27137,7 +27139,7 @@ function TM(e, t = globalThis?.document) {
27137
27139
  return t.addEventListener("keydown", o, { capture: !0 }), () => t.removeEventListener("keydown", o, { capture: !0 });
27138
27140
  }, [n, t]);
27139
27141
  }
27140
- var OM = "DismissableLayer", Bl = "dismissableLayer.update", NM = "dismissableLayer.pointerDownOutside", PM = "dismissableLayer.focusOutside", Xf, YS = _.createContext({
27142
+ var TM = "DismissableLayer", Bl = "dismissableLayer.update", OM = "dismissableLayer.pointerDownOutside", NM = "dismissableLayer.focusOutside", Xf, YS = _.createContext({
27141
27143
  layers: /* @__PURE__ */ new Set(),
27142
27144
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
27143
27145
  branches: /* @__PURE__ */ new Set()
@@ -27151,14 +27153,14 @@ var OM = "DismissableLayer", Bl = "dismissableLayer.update", NM = "dismissableLa
27151
27153
  onInteractOutside: a,
27152
27154
  onDismiss: s,
27153
27155
  ...u
27154
- } = e, l = _.useContext(YS), [c, d] = _.useState(null), f = c?.ownerDocument ?? globalThis?.document, [, p] = _.useState({}), h = Ye(t, (I) => d(I)), m = Array.from(l.layers), [b] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), y = m.indexOf(b), $ = c ? m.indexOf(c) : -1, S = l.layersWithOutsidePointerEventsDisabled.size > 0, v = $ >= y, k = RM((I) => {
27156
+ } = e, l = _.useContext(YS), [c, d] = _.useState(null), f = c?.ownerDocument ?? globalThis?.document, [, p] = _.useState({}), h = Ye(t, (I) => d(I)), m = Array.from(l.layers), [b] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), y = m.indexOf(b), $ = c ? m.indexOf(c) : -1, S = l.layersWithOutsidePointerEventsDisabled.size > 0, v = $ >= y, k = AM((I) => {
27155
27157
  const T = I.target, j = [...l.branches].some((Z) => Z.contains(T));
27156
27158
  !v || j || (r?.(I), a?.(I), I.defaultPrevented || s?.());
27157
- }, f), O = zM((I) => {
27159
+ }, f), O = RM((I) => {
27158
27160
  const T = I.target;
27159
27161
  [...l.branches].some((Z) => Z.contains(T)) || (i?.(I), a?.(I), I.defaultPrevented || s?.());
27160
27162
  }, f);
27161
- return TM((I) => {
27163
+ return EM((I) => {
27162
27164
  $ === l.layers.size - 1 && (o?.(I), !I.defaultPrevented && s && (I.preventDefault(), s()));
27163
27165
  }, f), _.useEffect(() => {
27164
27166
  if (c)
@@ -27189,8 +27191,8 @@ var OM = "DismissableLayer", Bl = "dismissableLayer.update", NM = "dismissableLa
27189
27191
  );
27190
27192
  }
27191
27193
  );
27192
- ls.displayName = OM;
27193
- var CM = "DismissableLayerBranch", AM = _.forwardRef((e, t) => {
27194
+ ls.displayName = TM;
27195
+ var PM = "DismissableLayerBranch", CM = _.forwardRef((e, t) => {
27194
27196
  const n = _.useContext(YS), o = _.useRef(null), r = Ye(t, o);
27195
27197
  return _.useEffect(() => {
27196
27198
  const i = o.current;
@@ -27200,8 +27202,8 @@ var CM = "DismissableLayerBranch", AM = _.forwardRef((e, t) => {
27200
27202
  };
27201
27203
  }, [n.branches]), /* @__PURE__ */ g(Ae.div, { ...e, ref: r });
27202
27204
  });
27203
- AM.displayName = CM;
27204
- function RM(e, t = globalThis?.document) {
27205
+ CM.displayName = PM;
27206
+ function AM(e, t = globalThis?.document) {
27205
27207
  const n = Ar(e), o = _.useRef(!1), r = _.useRef(() => {
27206
27208
  });
27207
27209
  return _.useEffect(() => {
@@ -27209,7 +27211,7 @@ function RM(e, t = globalThis?.document) {
27209
27211
  if (s.target && !o.current) {
27210
27212
  let u = function() {
27211
27213
  QS(
27212
- NM,
27214
+ OM,
27213
27215
  n,
27214
27216
  l,
27215
27217
  { discrete: !0 }
@@ -27231,11 +27233,11 @@ function RM(e, t = globalThis?.document) {
27231
27233
  onPointerDownCapture: () => o.current = !0
27232
27234
  };
27233
27235
  }
27234
- function zM(e, t = globalThis?.document) {
27236
+ function RM(e, t = globalThis?.document) {
27235
27237
  const n = Ar(e), o = _.useRef(!1);
27236
27238
  return _.useEffect(() => {
27237
27239
  const r = (i) => {
27238
- i.target && !o.current && QS(PM, n, { originalEvent: i }, {
27240
+ i.target && !o.current && QS(NM, n, { originalEvent: i }, {
27239
27241
  discrete: !1
27240
27242
  });
27241
27243
  };
@@ -27251,26 +27253,26 @@ function em() {
27251
27253
  }
27252
27254
  function QS(e, t, n, { discrete: o }) {
27253
27255
  const r = n.originalEvent.target, i = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
27254
- t && r.addEventListener(e, t, { once: !0 }), o ? EM(r, i) : r.dispatchEvent(i);
27256
+ t && r.addEventListener(e, t, { once: !0 }), o ? kM(r, i) : r.dispatchEvent(i);
27255
27257
  }
27256
27258
  var dt = globalThis?.document ? _.useLayoutEffect : () => {
27257
- }, jM = _[" useId ".trim().toString()] || (() => {
27258
- }), MM = 0;
27259
+ }, zM = _[" useId ".trim().toString()] || (() => {
27260
+ }), jM = 0;
27259
27261
  function Qr(e) {
27260
- const [t, n] = _.useState(jM());
27262
+ const [t, n] = _.useState(zM());
27261
27263
  return dt(() => {
27262
- n((o) => o ?? String(MM++));
27264
+ n((o) => o ?? String(jM++));
27263
27265
  }, [e]), t ? `radix-${t}` : "";
27264
27266
  }
27265
- const DM = ["top", "right", "bottom", "left"], vr = Math.min, Xe = Math.max, Xi = Math.round, ui = Math.floor, Zt = (e) => ({
27267
+ const MM = ["top", "right", "bottom", "left"], vr = Math.min, Xe = Math.max, Xi = Math.round, ui = Math.floor, Zt = (e) => ({
27266
27268
  x: e,
27267
27269
  y: e
27268
- }), UM = {
27270
+ }), DM = {
27269
27271
  left: "right",
27270
27272
  right: "left",
27271
27273
  bottom: "top",
27272
27274
  top: "bottom"
27273
- }, LM = {
27275
+ }, UM = {
27274
27276
  start: "end",
27275
27277
  end: "start"
27276
27278
  };
@@ -27292,48 +27294,48 @@ function pd(e) {
27292
27294
  function fd(e) {
27293
27295
  return e === "y" ? "height" : "width";
27294
27296
  }
27295
- const ZM = /* @__PURE__ */ new Set(["top", "bottom"]);
27297
+ const LM = /* @__PURE__ */ new Set(["top", "bottom"]);
27296
27298
  function Ut(e) {
27297
- return ZM.has(Xt(e)) ? "y" : "x";
27299
+ return LM.has(Xt(e)) ? "y" : "x";
27298
27300
  }
27299
27301
  function md(e) {
27300
27302
  return pd(Ut(e));
27301
27303
  }
27302
- function FM(e, t, n) {
27304
+ function ZM(e, t, n) {
27303
27305
  n === void 0 && (n = !1);
27304
27306
  const o = _n(e), r = md(e), i = fd(r);
27305
27307
  let a = r === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
27306
27308
  return t.reference[i] > t.floating[i] && (a = ea(a)), [a, ea(a)];
27307
27309
  }
27308
- function qM(e) {
27310
+ function FM(e) {
27309
27311
  const t = ea(e);
27310
27312
  return [Wl(e), t, Wl(t)];
27311
27313
  }
27312
27314
  function Wl(e) {
27313
- return e.replace(/start|end/g, (t) => LM[t]);
27315
+ return e.replace(/start|end/g, (t) => UM[t]);
27314
27316
  }
27315
- const tm = ["left", "right"], rm = ["right", "left"], VM = ["top", "bottom"], BM = ["bottom", "top"];
27316
- function JM(e, t, n) {
27317
+ const tm = ["left", "right"], rm = ["right", "left"], qM = ["top", "bottom"], VM = ["bottom", "top"];
27318
+ function BM(e, t, n) {
27317
27319
  switch (e) {
27318
27320
  case "top":
27319
27321
  case "bottom":
27320
27322
  return n ? t ? rm : tm : t ? tm : rm;
27321
27323
  case "left":
27322
27324
  case "right":
27323
- return t ? VM : BM;
27325
+ return t ? qM : VM;
27324
27326
  default:
27325
27327
  return [];
27326
27328
  }
27327
27329
  }
27328
- function WM(e, t, n, o) {
27330
+ function JM(e, t, n, o) {
27329
27331
  const r = _n(e);
27330
- let i = JM(Xt(e), n === "start", o);
27332
+ let i = BM(Xt(e), n === "start", o);
27331
27333
  return r && (i = i.map((a) => a + "-" + r), t && (i = i.concat(i.map(Wl)))), i;
27332
27334
  }
27333
27335
  function ea(e) {
27334
- return e.replace(/left|right|bottom|top/g, (t) => UM[t]);
27336
+ return e.replace(/left|right|bottom|top/g, (t) => DM[t]);
27335
27337
  }
27336
- function HM(e) {
27338
+ function WM(e) {
27337
27339
  return {
27338
27340
  top: 0,
27339
27341
  right: 0,
@@ -27343,7 +27345,7 @@ function HM(e) {
27343
27345
  };
27344
27346
  }
27345
27347
  function XS(e) {
27346
- return typeof e != "number" ? HM(e) : {
27348
+ return typeof e != "number" ? WM(e) : {
27347
27349
  top: e,
27348
27350
  right: e,
27349
27351
  bottom: e,
@@ -27416,7 +27418,7 @@ function nm(e, t, n) {
27416
27418
  }
27417
27419
  return p;
27418
27420
  }
27419
- const GM = async (e, t, n) => {
27421
+ const HM = async (e, t, n) => {
27420
27422
  const {
27421
27423
  placement: o = "bottom",
27422
27424
  strategy: r = "absolute",
@@ -27522,7 +27524,7 @@ async function lo(e, t) {
27522
27524
  right: (k.right - y.right + h.right) / v.x
27523
27525
  };
27524
27526
  }
27525
- const KM = (e) => ({
27527
+ const GM = (e) => ({
27526
27528
  name: "arrow",
27527
27529
  options: e,
27528
27530
  async fn(t) {
@@ -27559,7 +27561,7 @@ const KM = (e) => ({
27559
27561
  reset: ne
27560
27562
  };
27561
27563
  }
27562
- }), YM = function(e) {
27564
+ }), KM = function(e) {
27563
27565
  return e === void 0 && (e = {}), {
27564
27566
  name: "flip",
27565
27567
  options: e,
@@ -27583,12 +27585,12 @@ const KM = (e) => ({
27583
27585
  } = Qt(e, t);
27584
27586
  if ((n = i.arrow) != null && n.alignmentOffset)
27585
27587
  return {};
27586
- const y = Xt(r), $ = Ut(s), S = Xt(s) === s, v = await (u.isRTL == null ? void 0 : u.isRTL(l.floating)), k = f || (S || !m ? [ea(s)] : qM(s)), O = h !== "none";
27587
- !f && O && k.push(...WM(s, m, h, v));
27588
+ const y = Xt(r), $ = Ut(s), S = Xt(s) === s, v = await (u.isRTL == null ? void 0 : u.isRTL(l.floating)), k = f || (S || !m ? [ea(s)] : FM(s)), O = h !== "none";
27589
+ !f && O && k.push(...JM(s, m, h, v));
27588
27590
  const I = [s, ...k], T = await lo(t, b), j = [];
27589
27591
  let Z = ((o = i.flip) == null ? void 0 : o.overflows) || [];
27590
27592
  if (c && j.push(T[y]), d) {
27591
- const F = FM(r, a, v);
27593
+ const F = ZM(r, a, v);
27592
27594
  j.push(T[F[0]], T[F[1]]);
27593
27595
  }
27594
27596
  if (Z = [...Z, {
@@ -27650,9 +27652,9 @@ function om(e, t) {
27650
27652
  };
27651
27653
  }
27652
27654
  function im(e) {
27653
- return DM.some((t) => e[t] >= 0);
27655
+ return MM.some((t) => e[t] >= 0);
27654
27656
  }
27655
- const QM = function(e) {
27657
+ const YM = function(e) {
27656
27658
  return e === void 0 && (e = {}), {
27657
27659
  name: "hide",
27658
27660
  options: e,
@@ -27694,7 +27696,7 @@ const QM = function(e) {
27694
27696
  }
27695
27697
  };
27696
27698
  }, ex = /* @__PURE__ */ new Set(["left", "top"]);
27697
- async function XM(e, t) {
27699
+ async function QM(e, t) {
27698
27700
  const {
27699
27701
  placement: n,
27700
27702
  platform: o,
@@ -27721,7 +27723,7 @@ async function XM(e, t) {
27721
27723
  y: p * c
27722
27724
  };
27723
27725
  }
27724
- const eD = function(e) {
27726
+ const XM = function(e) {
27725
27727
  return e === void 0 && (e = 0), {
27726
27728
  name: "offset",
27727
27729
  options: e,
@@ -27732,7 +27734,7 @@ const eD = function(e) {
27732
27734
  y: i,
27733
27735
  placement: a,
27734
27736
  middlewareData: s
27735
- } = t, u = await XM(t, e);
27737
+ } = t, u = await QM(t, e);
27736
27738
  return a === ((n = s.offset) == null ? void 0 : n.placement) && (o = s.arrow) != null && o.alignmentOffset ? {} : {
27737
27739
  x: r + u.x,
27738
27740
  y: i + u.y,
@@ -27743,7 +27745,7 @@ const eD = function(e) {
27743
27745
  };
27744
27746
  }
27745
27747
  };
27746
- }, tD = function(e) {
27748
+ }, eD = function(e) {
27747
27749
  return e === void 0 && (e = {}), {
27748
27750
  name: "shift",
27749
27751
  options: e,
@@ -27799,7 +27801,7 @@ const eD = function(e) {
27799
27801
  };
27800
27802
  }
27801
27803
  };
27802
- }, rD = function(e) {
27804
+ }, tD = function(e) {
27803
27805
  return e === void 0 && (e = {}), {
27804
27806
  options: e,
27805
27807
  fn(t) {
@@ -27841,7 +27843,7 @@ const eD = function(e) {
27841
27843
  };
27842
27844
  }
27843
27845
  };
27844
- }, nD = function(e) {
27846
+ }, rD = function(e) {
27845
27847
  return e === void 0 && (e = {}), {
27846
27848
  name: "size",
27847
27849
  options: e,
@@ -27908,7 +27910,7 @@ function qt(e) {
27908
27910
  function am(e) {
27909
27911
  return !us() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof et(e).ShadowRoot;
27910
27912
  }
27911
- const oD = /* @__PURE__ */ new Set(["inline", "contents"]);
27913
+ const nD = /* @__PURE__ */ new Set(["inline", "contents"]);
27912
27914
  function Jo(e) {
27913
27915
  const {
27914
27916
  overflow: t,
@@ -27916,15 +27918,15 @@ function Jo(e) {
27916
27918
  overflowY: o,
27917
27919
  display: r
27918
27920
  } = Nt(e);
27919
- return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !oD.has(r);
27921
+ return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !nD.has(r);
27920
27922
  }
27921
- const iD = /* @__PURE__ */ new Set(["table", "td", "th"]);
27922
- function aD(e) {
27923
- return iD.has(wn(e));
27923
+ const oD = /* @__PURE__ */ new Set(["table", "td", "th"]);
27924
+ function iD(e) {
27925
+ return oD.has(wn(e));
27924
27926
  }
27925
- const sD = [":popover-open", ":modal"];
27927
+ const aD = [":popover-open", ":modal"];
27926
27928
  function cs(e) {
27927
- return sD.some((t) => {
27929
+ return aD.some((t) => {
27928
27930
  try {
27929
27931
  return e.matches(t);
27930
27932
  } catch {
@@ -27932,12 +27934,12 @@ function cs(e) {
27932
27934
  }
27933
27935
  });
27934
27936
  }
27935
- const lD = ["transform", "translate", "scale", "rotate", "perspective"], uD = ["transform", "translate", "scale", "rotate", "perspective", "filter"], cD = ["paint", "layout", "strict", "content"];
27937
+ const sD = ["transform", "translate", "scale", "rotate", "perspective"], lD = ["transform", "translate", "scale", "rotate", "perspective", "filter"], uD = ["paint", "layout", "strict", "content"];
27936
27938
  function hd(e) {
27937
27939
  const t = gd(), n = Ot(e) ? Nt(e) : e;
27938
- return lD.some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || uD.some((o) => (n.willChange || "").includes(o)) || cD.some((o) => (n.contain || "").includes(o));
27940
+ return sD.some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || lD.some((o) => (n.willChange || "").includes(o)) || uD.some((o) => (n.contain || "").includes(o));
27939
27941
  }
27940
- function dD(e) {
27942
+ function cD(e) {
27941
27943
  let t = yr(e);
27942
27944
  for (; qt(t) && !fn(t); ) {
27943
27945
  if (hd(t))
@@ -27951,9 +27953,9 @@ function dD(e) {
27951
27953
  function gd() {
27952
27954
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
27953
27955
  }
27954
- const pD = /* @__PURE__ */ new Set(["html", "body", "#document"]);
27956
+ const dD = /* @__PURE__ */ new Set(["html", "body", "#document"]);
27955
27957
  function fn(e) {
27956
- return pD.has(wn(e));
27958
+ return dD.has(wn(e));
27957
27959
  }
27958
27960
  function Nt(e) {
27959
27961
  return et(e).getComputedStyle(e);
@@ -28024,15 +28026,15 @@ function Xr(e) {
28024
28026
  y: s
28025
28027
  };
28026
28028
  }
28027
- const fD = /* @__PURE__ */ Zt(0);
28029
+ const pD = /* @__PURE__ */ Zt(0);
28028
28030
  function ox(e) {
28029
28031
  const t = et(e);
28030
- return !gd() || !t.visualViewport ? fD : {
28032
+ return !gd() || !t.visualViewport ? pD : {
28031
28033
  x: t.visualViewport.offsetLeft,
28032
28034
  y: t.visualViewport.offsetTop
28033
28035
  };
28034
28036
  }
28035
- function mD(e, t, n) {
28037
+ function fD(e, t, n) {
28036
28038
  return t === void 0 && (t = !1), !n || t && n !== et(e) ? !1 : t;
28037
28039
  }
28038
28040
  function Rr(e, t, n, o) {
@@ -28040,7 +28042,7 @@ function Rr(e, t, n, o) {
28040
28042
  const r = e.getBoundingClientRect(), i = vd(e);
28041
28043
  let a = Zt(1);
28042
28044
  t && (o ? Ot(o) && (a = Xr(o)) : a = Xr(e));
28043
- const s = mD(i, n, o) ? ox(i) : Zt(0);
28045
+ const s = fD(i, n, o) ? ox(i) : Zt(0);
28044
28046
  let u = (r.left + s.x) / a.x, l = (r.top + s.y) / a.y, c = r.width / a.x, d = r.height / a.y;
28045
28047
  if (i) {
28046
28048
  const f = et(i), p = o && Ot(o) ? et(o) : o;
@@ -28072,7 +28074,7 @@ function ix(e, t, n) {
28072
28074
  y: i
28073
28075
  };
28074
28076
  }
28075
- function hD(e) {
28077
+ function mD(e) {
28076
28078
  let {
28077
28079
  elements: t,
28078
28080
  rect: n,
@@ -28099,10 +28101,10 @@ function hD(e) {
28099
28101
  y: n.y * l.y - u.scrollTop * l.y + c.y + f.y
28100
28102
  };
28101
28103
  }
28102
- function gD(e) {
28104
+ function hD(e) {
28103
28105
  return Array.from(e.getClientRects());
28104
28106
  }
28105
- function vD(e) {
28107
+ function gD(e) {
28106
28108
  const t = Bt(e), n = ds(e), o = e.ownerDocument.body, r = Xe(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), i = Xe(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
28107
28109
  let a = -n.scrollLeft + yd(e);
28108
28110
  const s = -n.scrollTop;
@@ -28113,7 +28115,7 @@ function vD(e) {
28113
28115
  y: s
28114
28116
  };
28115
28117
  }
28116
- function yD(e, t) {
28118
+ function vD(e, t) {
28117
28119
  const n = et(e), o = Bt(e), r = n.visualViewport;
28118
28120
  let i = o.clientWidth, a = o.clientHeight, s = 0, u = 0;
28119
28121
  if (r) {
@@ -28128,8 +28130,8 @@ function yD(e, t) {
28128
28130
  y: u
28129
28131
  };
28130
28132
  }
28131
- const bD = /* @__PURE__ */ new Set(["absolute", "fixed"]);
28132
- function _D(e, t) {
28133
+ const yD = /* @__PURE__ */ new Set(["absolute", "fixed"]);
28134
+ function bD(e, t) {
28133
28135
  const n = Rr(e, !0, t === "fixed"), o = n.top + e.clientTop, r = n.left + e.clientLeft, i = qt(e) ? Xr(e) : Zt(1), a = e.clientWidth * i.x, s = e.clientHeight * i.y, u = r * i.x, l = o * i.y;
28134
28136
  return {
28135
28137
  width: a,
@@ -28141,11 +28143,11 @@ function _D(e, t) {
28141
28143
  function sm(e, t, n) {
28142
28144
  let o;
28143
28145
  if (t === "viewport")
28144
- o = yD(e, n);
28146
+ o = vD(e, n);
28145
28147
  else if (t === "document")
28146
- o = vD(Bt(e));
28148
+ o = gD(Bt(e));
28147
28149
  else if (Ot(t))
28148
- o = _D(t, n);
28150
+ o = bD(t, n);
28149
28151
  else {
28150
28152
  const r = ox(e);
28151
28153
  o = {
@@ -28161,7 +28163,7 @@ function ax(e, t) {
28161
28163
  const n = yr(e);
28162
28164
  return n === t || !Ot(n) || fn(n) ? !1 : Nt(n).position === "fixed" || ax(n, t);
28163
28165
  }
28164
- function wD(e, t) {
28166
+ function _D(e, t) {
28165
28167
  const n = t.get(e);
28166
28168
  if (n)
28167
28169
  return n;
@@ -28170,18 +28172,18 @@ function wD(e, t) {
28170
28172
  let a = i ? yr(e) : e;
28171
28173
  for (; Ot(a) && !fn(a); ) {
28172
28174
  const s = Nt(a), u = hd(a);
28173
- !u && s.position === "fixed" && (r = null), (i ? !u && !r : !u && s.position === "static" && !!r && bD.has(r.position) || Jo(a) && !u && ax(e, a)) ? o = o.filter((c) => c !== a) : r = s, a = yr(a);
28175
+ !u && s.position === "fixed" && (r = null), (i ? !u && !r : !u && s.position === "static" && !!r && yD.has(r.position) || Jo(a) && !u && ax(e, a)) ? o = o.filter((c) => c !== a) : r = s, a = yr(a);
28174
28176
  }
28175
28177
  return t.set(e, o), o;
28176
28178
  }
28177
- function $D(e) {
28179
+ function wD(e) {
28178
28180
  let {
28179
28181
  element: t,
28180
28182
  boundary: n,
28181
28183
  rootBoundary: o,
28182
28184
  strategy: r
28183
28185
  } = e;
28184
- const a = [...n === "clippingAncestors" ? cs(t) ? [] : wD(t, this._c) : [].concat(n), o], s = a[0], u = a.reduce((l, c) => {
28186
+ const a = [...n === "clippingAncestors" ? cs(t) ? [] : _D(t, this._c) : [].concat(n), o], s = a[0], u = a.reduce((l, c) => {
28185
28187
  const d = sm(t, c, r);
28186
28188
  return l.top = Xe(d.top, l.top), l.right = vr(d.right, l.right), l.bottom = vr(d.bottom, l.bottom), l.left = Xe(d.left, l.left), l;
28187
28189
  }, sm(t, s, r));
@@ -28192,7 +28194,7 @@ function $D(e) {
28192
28194
  y: u.top
28193
28195
  };
28194
28196
  }
28195
- function SD(e) {
28197
+ function $D(e) {
28196
28198
  const {
28197
28199
  width: t,
28198
28200
  height: n
@@ -28202,7 +28204,7 @@ function SD(e) {
28202
28204
  height: n
28203
28205
  };
28204
28206
  }
28205
- function xD(e, t, n) {
28207
+ function SD(e, t, n) {
28206
28208
  const o = qt(t), r = Bt(t), i = n === "fixed", a = Rr(e, !0, i, t);
28207
28209
  let s = {
28208
28210
  scrollLeft: 0,
@@ -28251,14 +28253,14 @@ function sx(e, t) {
28251
28253
  return n;
28252
28254
  }
28253
28255
  let o = lm(e, t);
28254
- for (; o && aD(o) && Xs(o); )
28256
+ for (; o && iD(o) && Xs(o); )
28255
28257
  o = lm(o, t);
28256
- return o && fn(o) && Xs(o) && !hd(o) ? n : o || dD(e) || n;
28258
+ return o && fn(o) && Xs(o) && !hd(o) ? n : o || cD(e) || n;
28257
28259
  }
28258
- const ID = async function(e) {
28260
+ const xD = async function(e) {
28259
28261
  const t = this.getOffsetParent || sx, n = this.getDimensions, o = await n(e.floating);
28260
28262
  return {
28261
- reference: xD(e.reference, await t(e.floating), e.strategy),
28263
+ reference: SD(e.reference, await t(e.floating), e.strategy),
28262
28264
  floating: {
28263
28265
  x: 0,
28264
28266
  y: 0,
@@ -28267,25 +28269,25 @@ const ID = async function(e) {
28267
28269
  }
28268
28270
  };
28269
28271
  };
28270
- function kD(e) {
28272
+ function ID(e) {
28271
28273
  return Nt(e).direction === "rtl";
28272
28274
  }
28273
- const ED = {
28274
- convertOffsetParentRelativeRectToViewportRelativeRect: hD,
28275
+ const kD = {
28276
+ convertOffsetParentRelativeRectToViewportRelativeRect: mD,
28275
28277
  getDocumentElement: Bt,
28276
- getClippingRect: $D,
28278
+ getClippingRect: wD,
28277
28279
  getOffsetParent: sx,
28278
- getElementRects: ID,
28279
- getClientRects: gD,
28280
- getDimensions: SD,
28280
+ getElementRects: xD,
28281
+ getClientRects: hD,
28282
+ getDimensions: $D,
28281
28283
  getScale: Xr,
28282
28284
  isElement: Ot,
28283
- isRTL: kD
28285
+ isRTL: ID
28284
28286
  };
28285
28287
  function lx(e, t) {
28286
28288
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
28287
28289
  }
28288
- function TD(e, t) {
28290
+ function ED(e, t) {
28289
28291
  let n = null, o;
28290
28292
  const r = Bt(e);
28291
28293
  function i() {
@@ -28331,7 +28333,7 @@ function TD(e, t) {
28331
28333
  }
28332
28334
  return a(!0), i;
28333
28335
  }
28334
- function OD(e, t, n, o) {
28336
+ function TD(e, t, n, o) {
28335
28337
  o === void 0 && (o = {});
28336
28338
  const {
28337
28339
  ancestorScroll: r = !0,
@@ -28345,7 +28347,7 @@ function OD(e, t, n, o) {
28345
28347
  passive: !0
28346
28348
  }), i && y.addEventListener("resize", n);
28347
28349
  });
28348
- const d = l && s ? TD(l, n) : null;
28350
+ const d = l && s ? ED(l, n) : null;
28349
28351
  let f = -1, p = null;
28350
28352
  a && (p = new ResizeObserver((y) => {
28351
28353
  let [$] = y;
@@ -28367,21 +28369,21 @@ function OD(e, t, n, o) {
28367
28369
  }), d?.(), (y = p) == null || y.disconnect(), p = null, u && cancelAnimationFrame(h);
28368
28370
  };
28369
28371
  }
28370
- const ND = eD, PD = tD, CD = YM, AD = nD, RD = QM, um = KM, zD = rD, jD = (e, t, n) => {
28372
+ const OD = XM, ND = eD, PD = KM, CD = rD, AD = YM, um = GM, RD = tD, zD = (e, t, n) => {
28371
28373
  const o = /* @__PURE__ */ new Map(), r = {
28372
- platform: ED,
28374
+ platform: kD,
28373
28375
  ...n
28374
28376
  }, i = {
28375
28377
  ...r.platform,
28376
28378
  _c: o
28377
28379
  };
28378
- return GM(e, t, {
28380
+ return HM(e, t, {
28379
28381
  ...r,
28380
28382
  platform: i
28381
28383
  });
28382
28384
  };
28383
- var MD = typeof document < "u", DD = function() {
28384
- }, _i = MD ? rI : DD;
28385
+ var jD = typeof document < "u", MD = function() {
28386
+ }, _i = jD ? rI : MD;
28385
28387
  function ra(e, t) {
28386
28388
  if (e === t)
28387
28389
  return !0;
@@ -28425,7 +28427,7 @@ function el(e) {
28425
28427
  t.current = e;
28426
28428
  }), t;
28427
28429
  }
28428
- function UD(e) {
28430
+ function DD(e) {
28429
28431
  e === void 0 && (e = {});
28430
28432
  const {
28431
28433
  placement: t = "bottom",
@@ -28460,7 +28462,7 @@ function UD(e) {
28460
28462
  strategy: n,
28461
28463
  middleware: f
28462
28464
  };
28463
- ee.current && (G.platform = ee.current), jD(O.current, I.current, G).then((pe) => {
28465
+ ee.current && (G.platform = ee.current), zD(O.current, I.current, G).then((pe) => {
28464
28466
  const B = {
28465
28467
  ...pe,
28466
28468
  // The floating element's position may be recomputed while it's closed
@@ -28527,7 +28529,7 @@ function UD(e) {
28527
28529
  floatingStyles: ce
28528
28530
  }), [c, V, _e, ne, ce]);
28529
28531
  }
28530
- const LD = (e) => {
28532
+ const UD = (e) => {
28531
28533
  function t(n) {
28532
28534
  return {}.hasOwnProperty.call(n, "current");
28533
28535
  }
@@ -28548,14 +28550,17 @@ const LD = (e) => {
28548
28550
  }).fn(n) : {};
28549
28551
  }
28550
28552
  };
28551
- }, ZD = (e, t) => ({
28553
+ }, LD = (e, t) => ({
28554
+ ...OD(e),
28555
+ options: [e, t]
28556
+ }), ZD = (e, t) => ({
28552
28557
  ...ND(e),
28553
28558
  options: [e, t]
28554
28559
  }), FD = (e, t) => ({
28555
- ...PD(e),
28560
+ ...RD(e),
28556
28561
  options: [e, t]
28557
28562
  }), qD = (e, t) => ({
28558
- ...zD(e),
28563
+ ...PD(e),
28559
28564
  options: [e, t]
28560
28565
  }), VD = (e, t) => ({
28561
28566
  ...CD(e),
@@ -28564,13 +28569,10 @@ const LD = (e) => {
28564
28569
  ...AD(e),
28565
28570
  options: [e, t]
28566
28571
  }), JD = (e, t) => ({
28567
- ...RD(e),
28568
- options: [e, t]
28569
- }), WD = (e, t) => ({
28570
- ...LD(e),
28572
+ ...UD(e),
28571
28573
  options: [e, t]
28572
28574
  });
28573
- var HD = "Arrow", cx = _.forwardRef((e, t) => {
28575
+ var WD = "Arrow", cx = _.forwardRef((e, t) => {
28574
28576
  const { children: n, width: o = 10, height: r = 5, ...i } = e;
28575
28577
  return /* @__PURE__ */ g(
28576
28578
  Ae.svg,
@@ -28585,9 +28587,9 @@ var HD = "Arrow", cx = _.forwardRef((e, t) => {
28585
28587
  }
28586
28588
  );
28587
28589
  });
28588
- cx.displayName = HD;
28589
- var GD = cx;
28590
- function KD(e) {
28590
+ cx.displayName = WD;
28591
+ var HD = cx;
28592
+ function GD(e) {
28591
28593
  const [t, n] = _.useState(void 0);
28592
28594
  return dt(() => {
28593
28595
  if (e) {
@@ -28609,9 +28611,9 @@ function KD(e) {
28609
28611
  n(void 0);
28610
28612
  }, [e]), t;
28611
28613
  }
28612
- var bd = "Popper", [dx, ps] = Bo(bd), [YD, px] = dx(bd), fx = (e) => {
28614
+ var bd = "Popper", [dx, ps] = Bo(bd), [KD, px] = dx(bd), fx = (e) => {
28613
28615
  const { __scopePopper: t, children: n } = e, [o, r] = _.useState(null);
28614
- return /* @__PURE__ */ g(YD, { scope: t, anchor: o, onAnchorChange: r, children: n });
28616
+ return /* @__PURE__ */ g(KD, { scope: t, anchor: o, onAnchorChange: r, children: n });
28615
28617
  };
28616
28618
  fx.displayName = bd;
28617
28619
  var mx = "PopperAnchor", hx = _.forwardRef(
@@ -28624,7 +28626,7 @@ var mx = "PopperAnchor", hx = _.forwardRef(
28624
28626
  }
28625
28627
  );
28626
28628
  hx.displayName = mx;
28627
- var _d = "PopperContent", [QD, XD] = dx(_d), gx = _.forwardRef(
28629
+ var _d = "PopperContent", [YD, QD] = dx(_d), gx = _.forwardRef(
28628
28630
  (e, t) => {
28629
28631
  const {
28630
28632
  __scopePopper: n,
@@ -28641,40 +28643,40 @@ var _d = "PopperContent", [QD, XD] = dx(_d), gx = _.forwardRef(
28641
28643
  updatePositionStrategy: p = "optimized",
28642
28644
  onPlaced: h,
28643
28645
  ...m
28644
- } = e, b = px(_d, n), [y, $] = _.useState(null), S = Ye(t, (we) => $(we)), [v, k] = _.useState(null), O = KD(v), I = O?.width ?? 0, T = O?.height ?? 0, j = o + (i !== "center" ? "-" + i : ""), Z = typeof c == "number" ? c : { top: 0, right: 0, bottom: 0, left: 0, ...c }, ee = Array.isArray(l) ? l : [l], ue = ee.length > 0, V = {
28646
+ } = e, b = px(_d, n), [y, $] = _.useState(null), S = Ye(t, (we) => $(we)), [v, k] = _.useState(null), O = GD(v), I = O?.width ?? 0, T = O?.height ?? 0, j = o + (i !== "center" ? "-" + i : ""), Z = typeof c == "number" ? c : { top: 0, right: 0, bottom: 0, left: 0, ...c }, ee = Array.isArray(l) ? l : [l], ue = ee.length > 0, V = {
28645
28647
  padding: Z,
28646
- boundary: ee.filter(tU),
28648
+ boundary: ee.filter(eU),
28647
28649
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
28648
28650
  altBoundary: ue
28649
- }, { refs: F, floatingStyles: _e, placement: ne, isPositioned: ce, middlewareData: G } = UD({
28651
+ }, { refs: F, floatingStyles: _e, placement: ne, isPositioned: ce, middlewareData: G } = DD({
28650
28652
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
28651
28653
  strategy: "fixed",
28652
28654
  placement: j,
28653
- whileElementsMounted: (...we) => OD(...we, {
28655
+ whileElementsMounted: (...we) => TD(...we, {
28654
28656
  animationFrame: p === "always"
28655
28657
  }),
28656
28658
  elements: {
28657
28659
  reference: b.anchor
28658
28660
  },
28659
28661
  middleware: [
28660
- ZD({ mainAxis: r + T, alignmentAxis: a }),
28661
- u && FD({
28662
+ LD({ mainAxis: r + T, alignmentAxis: a }),
28663
+ u && ZD({
28662
28664
  mainAxis: !0,
28663
28665
  crossAxis: !1,
28664
- limiter: d === "partial" ? qD() : void 0,
28666
+ limiter: d === "partial" ? FD() : void 0,
28665
28667
  ...V
28666
28668
  }),
28667
- u && VD({ ...V }),
28668
- BD({
28669
+ u && qD({ ...V }),
28670
+ VD({
28669
28671
  ...V,
28670
28672
  apply: ({ elements: we, rects: Go, availableWidth: ws, availableHeight: $n }) => {
28671
28673
  const { width: mt, height: Ko } = Go.reference, Re = we.floating.style;
28672
28674
  Re.setProperty("--radix-popper-available-width", `${ws}px`), Re.setProperty("--radix-popper-available-height", `${$n}px`), Re.setProperty("--radix-popper-anchor-width", `${mt}px`), Re.setProperty("--radix-popper-anchor-height", `${Ko}px`);
28673
28675
  }
28674
28676
  }),
28675
- v && WD({ element: v, padding: s }),
28676
- rU({ arrowWidth: I, arrowHeight: T }),
28677
- f && JD({ strategy: "referenceHidden", ...V })
28677
+ v && JD({ element: v, padding: s }),
28678
+ tU({ arrowWidth: I, arrowHeight: T }),
28679
+ f && BD({ strategy: "referenceHidden", ...V })
28678
28680
  ]
28679
28681
  }), [pe, B] = bx(ne), Le = Ar(h);
28680
28682
  dt(() => {
@@ -28708,7 +28710,7 @@ var _d = "PopperContent", [QD, XD] = dx(_d), gx = _.forwardRef(
28708
28710
  },
28709
28711
  dir: e.dir,
28710
28712
  children: /* @__PURE__ */ g(
28711
- QD,
28713
+ YD,
28712
28714
  {
28713
28715
  scope: n,
28714
28716
  placedSide: pe,
@@ -28738,13 +28740,13 @@ var _d = "PopperContent", [QD, XD] = dx(_d), gx = _.forwardRef(
28738
28740
  }
28739
28741
  );
28740
28742
  gx.displayName = _d;
28741
- var vx = "PopperArrow", eU = {
28743
+ var vx = "PopperArrow", XD = {
28742
28744
  top: "bottom",
28743
28745
  right: "left",
28744
28746
  bottom: "top",
28745
28747
  left: "right"
28746
28748
  }, yx = _.forwardRef(function(t, n) {
28747
- const { __scopePopper: o, ...r } = t, i = XD(vx, o), a = eU[i.placedSide];
28749
+ const { __scopePopper: o, ...r } = t, i = QD(vx, o), a = XD[i.placedSide];
28748
28750
  return (
28749
28751
  // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
28750
28752
  // doesn't report size as we'd expect on SVG elements.
@@ -28773,7 +28775,7 @@ var vx = "PopperArrow", eU = {
28773
28775
  visibility: i.shouldHideArrow ? "hidden" : void 0
28774
28776
  },
28775
28777
  children: /* @__PURE__ */ g(
28776
- GD,
28778
+ HD,
28777
28779
  {
28778
28780
  ...r,
28779
28781
  ref: n,
@@ -28789,10 +28791,10 @@ var vx = "PopperArrow", eU = {
28789
28791
  );
28790
28792
  });
28791
28793
  yx.displayName = vx;
28792
- function tU(e) {
28794
+ function eU(e) {
28793
28795
  return e !== null;
28794
28796
  }
28795
- var rU = (e) => ({
28797
+ var tU = (e) => ({
28796
28798
  name: "transformOrigin",
28797
28799
  options: e,
28798
28800
  fn(t) {
@@ -28805,23 +28807,23 @@ function bx(e) {
28805
28807
  const [t, n = "center"] = e.split("-");
28806
28808
  return [t, n];
28807
28809
  }
28808
- var _x = fx, wd = hx, wx = gx, $x = yx, nU = "Portal", fs = _.forwardRef((e, t) => {
28810
+ var _x = fx, wd = hx, wx = gx, $x = yx, rU = "Portal", fs = _.forwardRef((e, t) => {
28809
28811
  const { container: n, ...o } = e, [r, i] = _.useState(!1);
28810
28812
  dt(() => i(!0), []);
28811
28813
  const a = n || r && globalThis?.document?.body;
28812
28814
  return a ? cI.createPortal(/* @__PURE__ */ g(Ae.div, { ...o, ref: t }), a) : null;
28813
28815
  });
28814
- fs.displayName = nU;
28815
- function oU(e, t) {
28816
+ fs.displayName = rU;
28817
+ function nU(e, t) {
28816
28818
  return _.useReducer((n, o) => t[n][o] ?? n, e);
28817
28819
  }
28818
28820
  var rr = (e) => {
28819
- const { present: t, children: n } = e, o = iU(t), r = typeof n == "function" ? n({ present: o.isPresent }) : _.Children.only(n), i = Ye(o.ref, aU(r));
28821
+ const { present: t, children: n } = e, o = oU(t), r = typeof n == "function" ? n({ present: o.isPresent }) : _.Children.only(n), i = Ye(o.ref, iU(r));
28820
28822
  return typeof n == "function" || o.isPresent ? _.cloneElement(r, { ref: i }) : null;
28821
28823
  };
28822
28824
  rr.displayName = "Presence";
28823
- function iU(e) {
28824
- const [t, n] = _.useState(), o = _.useRef(null), r = _.useRef(e), i = _.useRef("none"), a = e ? "mounted" : "unmounted", [s, u] = oU(a, {
28825
+ function oU(e) {
28826
+ const [t, n] = _.useState(), o = _.useRef(null), r = _.useRef(e), i = _.useRef("none"), a = e ? "mounted" : "unmounted", [s, u] = nU(a, {
28825
28827
  mounted: {
28826
28828
  UNMOUNT: "unmounted",
28827
28829
  ANIMATION_OUT: "unmountSuspended"
@@ -28872,11 +28874,11 @@ function iU(e) {
28872
28874
  function ci(e) {
28873
28875
  return e?.animationName || "none";
28874
28876
  }
28875
- function aU(e) {
28877
+ function iU(e) {
28876
28878
  let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
28877
28879
  return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
28878
28880
  }
28879
- var sU = _[" useInsertionEffect ".trim().toString()] || dt;
28881
+ var aU = _[" useInsertionEffect ".trim().toString()] || dt;
28880
28882
  function ms({
28881
28883
  prop: e,
28882
28884
  defaultProp: t,
@@ -28884,7 +28886,7 @@ function ms({
28884
28886
  },
28885
28887
  caller: o
28886
28888
  }) {
28887
- const [r, i, a] = lU({
28889
+ const [r, i, a] = sU({
28888
28890
  defaultProp: t,
28889
28891
  onChange: n
28890
28892
  }), s = e !== void 0, u = s ? e : r;
@@ -28900,7 +28902,7 @@ function ms({
28900
28902
  const l = _.useCallback(
28901
28903
  (c) => {
28902
28904
  if (s) {
28903
- const d = uU(c) ? c(e) : c;
28905
+ const d = lU(c) ? c(e) : c;
28904
28906
  d !== e && a.current?.(d);
28905
28907
  } else
28906
28908
  i(c);
@@ -28909,21 +28911,21 @@ function ms({
28909
28911
  );
28910
28912
  return [u, l];
28911
28913
  }
28912
- function lU({
28914
+ function sU({
28913
28915
  defaultProp: e,
28914
28916
  onChange: t
28915
28917
  }) {
28916
28918
  const [n, o] = _.useState(e), r = _.useRef(n), i = _.useRef(t);
28917
- return sU(() => {
28919
+ return aU(() => {
28918
28920
  i.current = t;
28919
28921
  }, [t]), _.useEffect(() => {
28920
28922
  r.current !== n && (i.current?.(n), r.current = n);
28921
28923
  }, [n, r]), [n, o, i];
28922
28924
  }
28923
- function uU(e) {
28925
+ function lU(e) {
28924
28926
  return typeof e == "function";
28925
28927
  }
28926
- var cU = Object.freeze({
28928
+ var uU = Object.freeze({
28927
28929
  // See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
28928
28930
  position: "absolute",
28929
28931
  border: 0,
@@ -28935,23 +28937,23 @@ var cU = Object.freeze({
28935
28937
  clip: "rect(0, 0, 0, 0)",
28936
28938
  whiteSpace: "nowrap",
28937
28939
  wordWrap: "normal"
28938
- }), dU = "VisuallyHidden", Sx = _.forwardRef(
28940
+ }), cU = "VisuallyHidden", Sx = _.forwardRef(
28939
28941
  (e, t) => /* @__PURE__ */ g(
28940
28942
  Ae.span,
28941
28943
  {
28942
28944
  ...e,
28943
28945
  ref: t,
28944
- style: { ...cU, ...e.style }
28946
+ style: { ...uU, ...e.style }
28945
28947
  }
28946
28948
  )
28947
28949
  );
28948
- Sx.displayName = dU;
28949
- var pU = Sx, [hs] = Bo("Tooltip", [
28950
+ Sx.displayName = cU;
28951
+ var dU = Sx, [hs] = Bo("Tooltip", [
28950
28952
  ps
28951
- ]), gs = ps(), xx = "TooltipProvider", fU = 700, Gl = "tooltip.open", [mU, $d] = hs(xx), Ix = (e) => {
28953
+ ]), gs = ps(), xx = "TooltipProvider", pU = 700, Gl = "tooltip.open", [fU, $d] = hs(xx), Ix = (e) => {
28952
28954
  const {
28953
28955
  __scopeTooltip: t,
28954
- delayDuration: n = fU,
28956
+ delayDuration: n = pU,
28955
28957
  skipDelayDuration: o = 300,
28956
28958
  disableHoverableContent: r = !1,
28957
28959
  children: i
@@ -28960,7 +28962,7 @@ var pU = Sx, [hs] = Bo("Tooltip", [
28960
28962
  const l = u.current;
28961
28963
  return () => window.clearTimeout(l);
28962
28964
  }, []), /* @__PURE__ */ g(
28963
- mU,
28965
+ fU,
28964
28966
  {
28965
28967
  scope: t,
28966
28968
  isOpenDelayedRef: a,
@@ -28984,7 +28986,7 @@ var pU = Sx, [hs] = Bo("Tooltip", [
28984
28986
  );
28985
28987
  };
28986
28988
  Ix.displayName = xx;
28987
- var co = "Tooltip", [hU, Wo] = hs(co), kx = (e) => {
28989
+ var co = "Tooltip", [mU, Wo] = hs(co), kx = (e) => {
28988
28990
  const {
28989
28991
  __scopeTooltip: t,
28990
28992
  children: n,
@@ -29012,7 +29014,7 @@ var co = "Tooltip", [hU, Wo] = hs(co), kx = (e) => {
29012
29014
  return _.useEffect(() => () => {
29013
29015
  p.current && (window.clearTimeout(p.current), p.current = 0);
29014
29016
  }, []), /* @__PURE__ */ g(_x, { ...l, children: /* @__PURE__ */ g(
29015
- hU,
29017
+ mU,
29016
29018
  {
29017
29019
  scope: t,
29018
29020
  contentId: f,
@@ -29063,24 +29065,24 @@ var Kl = "TooltipTrigger", Ex = _.forwardRef(
29063
29065
  }
29064
29066
  );
29065
29067
  Ex.displayName = Kl;
29066
- var Sd = "TooltipPortal", [gU, vU] = hs(Sd, {
29068
+ var Sd = "TooltipPortal", [hU, gU] = hs(Sd, {
29067
29069
  forceMount: void 0
29068
29070
  }), Tx = (e) => {
29069
29071
  const { __scopeTooltip: t, forceMount: n, children: o, container: r } = e, i = Wo(Sd, t);
29070
- return /* @__PURE__ */ g(gU, { scope: t, forceMount: n, children: /* @__PURE__ */ g(rr, { present: n || i.open, children: /* @__PURE__ */ g(fs, { asChild: !0, container: r, children: o }) }) });
29072
+ return /* @__PURE__ */ g(hU, { scope: t, forceMount: n, children: /* @__PURE__ */ g(rr, { present: n || i.open, children: /* @__PURE__ */ g(fs, { asChild: !0, container: r, children: o }) }) });
29071
29073
  };
29072
29074
  Tx.displayName = Sd;
29073
29075
  var mn = "TooltipContent", Ox = _.forwardRef(
29074
29076
  (e, t) => {
29075
- const n = vU(mn, e.__scopeTooltip), { forceMount: o = n.forceMount, side: r = "top", ...i } = e, a = Wo(mn, e.__scopeTooltip);
29076
- return /* @__PURE__ */ g(rr, { present: o || a.open, children: a.disableHoverableContent ? /* @__PURE__ */ g(Nx, { side: r, ...i, ref: t }) : /* @__PURE__ */ g(yU, { side: r, ...i, ref: t }) });
29077
+ const n = gU(mn, e.__scopeTooltip), { forceMount: o = n.forceMount, side: r = "top", ...i } = e, a = Wo(mn, e.__scopeTooltip);
29078
+ return /* @__PURE__ */ g(rr, { present: o || a.open, children: a.disableHoverableContent ? /* @__PURE__ */ g(Nx, { side: r, ...i, ref: t }) : /* @__PURE__ */ g(vU, { side: r, ...i, ref: t }) });
29077
29079
  }
29078
- ), yU = _.forwardRef((e, t) => {
29080
+ ), vU = _.forwardRef((e, t) => {
29079
29081
  const n = Wo(mn, e.__scopeTooltip), o = $d(mn, e.__scopeTooltip), r = _.useRef(null), i = Ye(t, r), [a, s] = _.useState(null), { trigger: u, onClose: l } = n, c = r.current, { onPointerInTransitChange: d } = o, f = _.useCallback(() => {
29080
29082
  s(null), d(!1);
29081
29083
  }, [d]), p = _.useCallback(
29082
29084
  (h, m) => {
29083
- const b = h.currentTarget, y = { x: h.clientX, y: h.clientY }, $ = $U(y, b.getBoundingClientRect()), S = SU(y, $), v = xU(m.getBoundingClientRect()), k = kU([...S, ...v]);
29085
+ const b = h.currentTarget, y = { x: h.clientX, y: h.clientY }, $ = wU(y, b.getBoundingClientRect()), S = $U(y, $), v = SU(m.getBoundingClientRect()), k = IU([...S, ...v]);
29084
29086
  s(k), d(!0);
29085
29087
  },
29086
29088
  [d]
@@ -29095,13 +29097,13 @@ var mn = "TooltipContent", Ox = _.forwardRef(
29095
29097
  }, [u, c, p, f]), _.useEffect(() => {
29096
29098
  if (a) {
29097
29099
  const h = (m) => {
29098
- const b = m.target, y = { x: m.clientX, y: m.clientY }, $ = u?.contains(b) || c?.contains(b), S = !IU(y, a);
29100
+ const b = m.target, y = { x: m.clientX, y: m.clientY }, $ = u?.contains(b) || c?.contains(b), S = !xU(y, a);
29099
29101
  $ ? f() : S && (f(), l());
29100
29102
  };
29101
29103
  return document.addEventListener("pointermove", h), () => document.removeEventListener("pointermove", h);
29102
29104
  }
29103
29105
  }, [u, c, a, l, f]), /* @__PURE__ */ g(Nx, { ...e, ref: i });
29104
- }), [bU, _U] = hs(co, { isInside: !1 }), wU = /* @__PURE__ */ $M("TooltipContent"), Nx = _.forwardRef(
29106
+ }), [yU, bU] = hs(co, { isInside: !1 }), _U = /* @__PURE__ */ wM("TooltipContent"), Nx = _.forwardRef(
29105
29107
  (e, t) => {
29106
29108
  const {
29107
29109
  __scopeTooltip: n,
@@ -29143,8 +29145,8 @@ var mn = "TooltipContent", Ox = _.forwardRef(
29143
29145
  "--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
29144
29146
  },
29145
29147
  children: [
29146
- /* @__PURE__ */ g(wU, { children: o }),
29147
- /* @__PURE__ */ g(bU, { scope: n, isInside: !0, children: /* @__PURE__ */ g(pU, { id: u.contentId, role: "tooltip", children: r || o }) })
29148
+ /* @__PURE__ */ g(_U, { children: o }),
29149
+ /* @__PURE__ */ g(yU, { scope: n, isInside: !0, children: /* @__PURE__ */ g(dU, { id: u.contentId, role: "tooltip", children: r || o }) })
29148
29150
  ]
29149
29151
  }
29150
29152
  )
@@ -29156,14 +29158,14 @@ Ox.displayName = mn;
29156
29158
  var Px = "TooltipArrow", Cx = _.forwardRef(
29157
29159
  (e, t) => {
29158
29160
  const { __scopeTooltip: n, ...o } = e, r = gs(n);
29159
- return _U(
29161
+ return bU(
29160
29162
  Px,
29161
29163
  n
29162
29164
  ).isInside ? null : /* @__PURE__ */ g($x, { ...r, ...o, ref: t });
29163
29165
  }
29164
29166
  );
29165
29167
  Cx.displayName = Px;
29166
- function $U(e, t) {
29168
+ function wU(e, t) {
29167
29169
  const n = Math.abs(t.top - e.y), o = Math.abs(t.bottom - e.y), r = Math.abs(t.right - e.x), i = Math.abs(t.left - e.x);
29168
29170
  switch (Math.min(n, o, r, i)) {
29169
29171
  case i:
@@ -29178,7 +29180,7 @@ function $U(e, t) {
29178
29180
  throw new Error("unreachable");
29179
29181
  }
29180
29182
  }
29181
- function SU(e, t, n = 5) {
29183
+ function $U(e, t, n = 5) {
29182
29184
  const o = [];
29183
29185
  switch (t) {
29184
29186
  case "top":
@@ -29208,7 +29210,7 @@ function SU(e, t, n = 5) {
29208
29210
  }
29209
29211
  return o;
29210
29212
  }
29211
- function xU(e) {
29213
+ function SU(e) {
29212
29214
  const { top: t, right: n, bottom: o, left: r } = e;
29213
29215
  return [
29214
29216
  { x: r, y: t },
@@ -29217,7 +29219,7 @@ function xU(e) {
29217
29219
  { x: r, y: o }
29218
29220
  ];
29219
29221
  }
29220
- function IU(e, t) {
29222
+ function xU(e, t) {
29221
29223
  const { x: n, y: o } = e;
29222
29224
  let r = !1;
29223
29225
  for (let i = 0, a = t.length - 1; i < t.length; a = i++) {
@@ -29226,11 +29228,11 @@ function IU(e, t) {
29226
29228
  }
29227
29229
  return r;
29228
29230
  }
29229
- function kU(e) {
29231
+ function IU(e) {
29230
29232
  const t = e.slice();
29231
- return t.sort((n, o) => n.x < o.x ? -1 : n.x > o.x ? 1 : n.y < o.y ? -1 : n.y > o.y ? 1 : 0), EU(t);
29233
+ return t.sort((n, o) => n.x < o.x ? -1 : n.x > o.x ? 1 : n.y < o.y ? -1 : n.y > o.y ? 1 : 0), kU(t);
29232
29234
  }
29233
- function EU(e) {
29235
+ function kU(e) {
29234
29236
  if (e.length <= 1) return e.slice();
29235
29237
  const t = [];
29236
29238
  for (let o = 0; o < e.length; o++) {
@@ -29255,13 +29257,13 @@ function EU(e) {
29255
29257
  }
29256
29258
  return n.pop(), t.length === 1 && n.length === 1 && t[0].x === n[0].x && t[0].y === n[0].y ? t : t.concat(n);
29257
29259
  }
29258
- var TU = Ix, OU = kx, NU = Ex, PU = Tx, CU = Ox, AU = Cx;
29260
+ var EU = Ix, TU = kx, OU = Ex, NU = Tx, PU = Ox, CU = Cx;
29259
29261
  function Ax({
29260
29262
  delayDuration: e = 0,
29261
29263
  ...t
29262
29264
  }) {
29263
29265
  return /* @__PURE__ */ g(
29264
- TU,
29266
+ EU,
29265
29267
  {
29266
29268
  "data-slot": "tooltip-provider",
29267
29269
  delayDuration: e,
@@ -29272,12 +29274,12 @@ function Ax({
29272
29274
  function xd({
29273
29275
  ...e
29274
29276
  }) {
29275
- return /* @__PURE__ */ g(Ax, { children: /* @__PURE__ */ g(OU, { "data-slot": "tooltip", ...e }) });
29277
+ return /* @__PURE__ */ g(Ax, { children: /* @__PURE__ */ g(TU, { "data-slot": "tooltip", ...e }) });
29276
29278
  }
29277
29279
  function Id({
29278
29280
  ...e
29279
29281
  }) {
29280
- return /* @__PURE__ */ g(NU, { "data-slot": "tooltip-trigger", ...e });
29282
+ return /* @__PURE__ */ g(OU, { "data-slot": "tooltip-trigger", ...e });
29281
29283
  }
29282
29284
  function kd({
29283
29285
  className: e,
@@ -29285,8 +29287,8 @@ function kd({
29285
29287
  children: n,
29286
29288
  ...o
29287
29289
  }) {
29288
- return /* @__PURE__ */ g(PU, { children: /* @__PURE__ */ U(
29289
- CU,
29290
+ return /* @__PURE__ */ g(NU, { children: /* @__PURE__ */ U(
29291
+ PU,
29290
29292
  {
29291
29293
  "data-slot": "tooltip-content",
29292
29294
  sideOffset: t,
@@ -29297,7 +29299,7 @@ function kd({
29297
29299
  ...o,
29298
29300
  children: [
29299
29301
  n,
29300
- /* @__PURE__ */ g(AU, { className: "bg-foreground fill-foreground z-20 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px]" })
29302
+ /* @__PURE__ */ g(CU, { className: "bg-foreground fill-foreground z-20 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px]" })
29301
29303
  ]
29302
29304
  }
29303
29305
  ) });
@@ -29320,7 +29322,7 @@ const pt = nI(
29320
29322
  className: R("aui-button-icon size-6 p-1", r),
29321
29323
  ref: a,
29322
29324
  children: [
29323
- /* @__PURE__ */ g(mM, { children: e }),
29325
+ /* @__PURE__ */ g(fM, { children: e }),
29324
29326
  /* @__PURE__ */ g("span", { className: "aui-sr-only sr-only", children: t })
29325
29327
  ]
29326
29328
  }
@@ -29329,7 +29331,7 @@ const pt = nI(
29329
29331
  ] })
29330
29332
  );
29331
29333
  pt.displayName = "TooltipIconButton";
29332
- function RU(e) {
29334
+ function AU(e) {
29333
29335
  return fr(() => e.reduce((t, n) => (t?.[n.language] && !n.overrideExisting || (t = {
29334
29336
  ...t,
29335
29337
  [n.language]: {
@@ -29338,19 +29340,19 @@ function RU(e) {
29338
29340
  }
29339
29341
  }), t), {}), [e]);
29340
29342
  }
29341
- const zU = () => {
29342
- const { plugins: e } = We(), t = RU(e);
29343
+ const RU = () => {
29344
+ const { plugins: e } = Ke(), t = AU(e);
29343
29345
  return /* @__PURE__ */ g(
29344
29346
  lI,
29345
29347
  {
29346
29348
  remarkPlugins: [uI],
29347
29349
  className: "aui-md",
29348
- components: DU,
29350
+ components: MU,
29349
29351
  componentsByLanguage: t
29350
29352
  }
29351
29353
  );
29352
- }, Rx = Ql(zU), jU = ({ language: e, code: t }) => {
29353
- const o = Tt(({ message: s }) => s).status?.type === "complete", { isCopied: r, copyToClipboard: i } = MU(), a = () => {
29354
+ }, Rx = Ql(RU), zU = ({ language: e, code: t }) => {
29355
+ const o = Tt(({ message: s }) => s).status?.type === "complete", { isCopied: r, copyToClipboard: i } = jU(), a = () => {
29354
29356
  !t || r || i(t);
29355
29357
  };
29356
29358
  return o ? /* @__PURE__ */ U("div", { className: "aui-code-header-root bg-muted-foreground/15 text-foreground dark:bg-muted-foreground/20 mt-4 flex items-center justify-between gap-4 rounded-t-lg px-4 py-2 text-sm font-semibold", children: [
@@ -29360,7 +29362,7 @@ const zU = () => {
29360
29362
  r && /* @__PURE__ */ g(ur, {})
29361
29363
  ] })
29362
29364
  ] }) : null;
29363
- }, MU = ({
29365
+ }, jU = ({
29364
29366
  copiedDuration: e = 3e3
29365
29367
  } = {}) => {
29366
29368
  const [t, n] = Ie(!1);
@@ -29369,7 +29371,7 @@ const zU = () => {
29369
29371
  n(!0), setTimeout(() => n(!1), e);
29370
29372
  });
29371
29373
  } };
29372
- }, DU = aI({
29374
+ }, MU = aI({
29373
29375
  h1: ({ className: e, ...t }) => /* @__PURE__ */ g(
29374
29376
  "h1",
29375
29377
  {
@@ -29542,7 +29544,7 @@ const zU = () => {
29542
29544
  }
29543
29545
  );
29544
29546
  },
29545
- CodeHeader: jU
29547
+ CodeHeader: zU
29546
29548
  });
29547
29549
  var tl = 0;
29548
29550
  function zx() {
@@ -29557,7 +29559,7 @@ function dm() {
29557
29559
  const e = document.createElement("span");
29558
29560
  return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
29559
29561
  }
29560
- var rl = "focusScope.autoFocusOnMount", nl = "focusScope.autoFocusOnUnmount", pm = { bubbles: !1, cancelable: !0 }, UU = "FocusScope", Ed = _.forwardRef((e, t) => {
29562
+ var rl = "focusScope.autoFocusOnMount", nl = "focusScope.autoFocusOnUnmount", pm = { bubbles: !1, cancelable: !0 }, DU = "FocusScope", Ed = _.forwardRef((e, t) => {
29561
29563
  const {
29562
29564
  loop: n = !1,
29563
29565
  trapped: o = !1,
@@ -29600,7 +29602,7 @@ var rl = "focusScope.autoFocusOnMount", nl = "focusScope.autoFocusOnUnmount", pm
29600
29602
  const m = document.activeElement;
29601
29603
  if (!s.contains(m)) {
29602
29604
  const y = new CustomEvent(rl, pm);
29603
- s.addEventListener(rl, l), s.dispatchEvent(y), y.defaultPrevented || (LU(BU(jx(s)), { select: !0 }), document.activeElement === m && ir(s));
29605
+ s.addEventListener(rl, l), s.dispatchEvent(y), y.defaultPrevented || (UU(VU(jx(s)), { select: !0 }), document.activeElement === m && ir(s));
29604
29606
  }
29605
29607
  return () => {
29606
29608
  s.removeEventListener(rl, l), setTimeout(() => {
@@ -29615,7 +29617,7 @@ var rl = "focusScope.autoFocusOnMount", nl = "focusScope.autoFocusOnUnmount", pm
29615
29617
  if (!n && !o || p.paused) return;
29616
29618
  const b = m.key === "Tab" && !m.altKey && !m.ctrlKey && !m.metaKey, y = document.activeElement;
29617
29619
  if (b && y) {
29618
- const $ = m.currentTarget, [S, v] = ZU($);
29620
+ const $ = m.currentTarget, [S, v] = LU($);
29619
29621
  S && v ? !m.shiftKey && y === v ? (m.preventDefault(), n && ir(S, { select: !0 })) : m.shiftKey && y === S && (m.preventDefault(), n && ir(v, { select: !0 })) : y === $ && m.preventDefault();
29620
29622
  }
29621
29623
  },
@@ -29623,13 +29625,13 @@ var rl = "focusScope.autoFocusOnMount", nl = "focusScope.autoFocusOnUnmount", pm
29623
29625
  );
29624
29626
  return /* @__PURE__ */ g(Ae.div, { tabIndex: -1, ...a, ref: f, onKeyDown: h });
29625
29627
  });
29626
- Ed.displayName = UU;
29627
- function LU(e, { select: t = !1 } = {}) {
29628
+ Ed.displayName = DU;
29629
+ function UU(e, { select: t = !1 } = {}) {
29628
29630
  const n = document.activeElement;
29629
29631
  for (const o of e)
29630
29632
  if (ir(o, { select: t }), document.activeElement !== n) return;
29631
29633
  }
29632
- function ZU(e) {
29634
+ function LU(e) {
29633
29635
  const t = jx(e), n = fm(t, e), o = fm(t.reverse(), e);
29634
29636
  return [n, o];
29635
29637
  }
@@ -29645,9 +29647,9 @@ function jx(e) {
29645
29647
  }
29646
29648
  function fm(e, t) {
29647
29649
  for (const n of e)
29648
- if (!FU(n, { upTo: t })) return n;
29650
+ if (!ZU(n, { upTo: t })) return n;
29649
29651
  }
29650
- function FU(e, { upTo: t }) {
29652
+ function ZU(e, { upTo: t }) {
29651
29653
  if (getComputedStyle(e).visibility === "hidden") return !0;
29652
29654
  for (; e; ) {
29653
29655
  if (t !== void 0 && e === t) return !1;
@@ -29656,17 +29658,17 @@ function FU(e, { upTo: t }) {
29656
29658
  }
29657
29659
  return !1;
29658
29660
  }
29659
- function qU(e) {
29661
+ function FU(e) {
29660
29662
  return e instanceof HTMLInputElement && "select" in e;
29661
29663
  }
29662
29664
  function ir(e, { select: t = !1 } = {}) {
29663
29665
  if (e && e.focus) {
29664
29666
  const n = document.activeElement;
29665
- e.focus({ preventScroll: !0 }), e !== n && qU(e) && t && e.select();
29667
+ e.focus({ preventScroll: !0 }), e !== n && FU(e) && t && e.select();
29666
29668
  }
29667
29669
  }
29668
- var mm = VU();
29669
- function VU() {
29670
+ var mm = qU();
29671
+ function qU() {
29670
29672
  let e = [];
29671
29673
  return {
29672
29674
  add(t) {
@@ -29682,17 +29684,17 @@ function hm(e, t) {
29682
29684
  const n = [...e], o = n.indexOf(t);
29683
29685
  return o !== -1 && n.splice(o, 1), n;
29684
29686
  }
29685
- function BU(e) {
29687
+ function VU(e) {
29686
29688
  return e.filter((t) => t.tagName !== "A");
29687
29689
  }
29688
- var JU = function(e) {
29690
+ var BU = function(e) {
29689
29691
  if (typeof document > "u")
29690
29692
  return null;
29691
29693
  var t = Array.isArray(e) ? e[0] : e;
29692
29694
  return t.ownerDocument.body;
29693
29695
  }, Vr = /* @__PURE__ */ new WeakMap(), di = /* @__PURE__ */ new WeakMap(), pi = {}, ol = 0, Mx = function(e) {
29694
29696
  return e && (e.host || Mx(e.parentNode));
29695
- }, WU = function(e, t) {
29697
+ }, JU = function(e, t) {
29696
29698
  return t.map(function(n) {
29697
29699
  if (e.contains(n))
29698
29700
  return n;
@@ -29701,8 +29703,8 @@ var JU = function(e) {
29701
29703
  }).filter(function(n) {
29702
29704
  return !!n;
29703
29705
  });
29704
- }, HU = function(e, t, n, o) {
29705
- var r = WU(t, Array.isArray(e) ? e : [e]);
29706
+ }, WU = function(e, t, n, o) {
29707
+ var r = JU(t, Array.isArray(e) ? e : [e]);
29706
29708
  pi[n] || (pi[n] = /* @__PURE__ */ new WeakMap());
29707
29709
  var i = pi[n], a = [], s = /* @__PURE__ */ new Set(), u = new Set(r), l = function(d) {
29708
29710
  !d || s.has(d) || (s.add(d), l(d.parentNode));
@@ -29729,8 +29731,8 @@ var JU = function(e) {
29729
29731
  };
29730
29732
  }, Dx = function(e, t, n) {
29731
29733
  n === void 0 && (n = "data-aria-hidden");
29732
- var o = Array.from(Array.isArray(e) ? e : [e]), r = JU(e);
29733
- return r ? (o.push.apply(o, Array.from(r.querySelectorAll("[aria-live], script"))), HU(o, r, n, "aria-hidden")) : function() {
29734
+ var o = Array.from(Array.isArray(e) ? e : [e]), r = BU(e);
29735
+ return r ? (o.push.apply(o, Array.from(r.querySelectorAll("[aria-live], script"))), WU(o, r, n, "aria-hidden")) : function() {
29734
29736
  return null;
29735
29737
  };
29736
29738
  }, jt = function() {
@@ -29750,16 +29752,16 @@ function Ux(e, t) {
29750
29752
  t.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (n[o[r]] = e[o[r]]);
29751
29753
  return n;
29752
29754
  }
29753
- function GU(e, t, n) {
29755
+ function HU(e, t, n) {
29754
29756
  if (n || arguments.length === 2) for (var o = 0, r = t.length, i; o < r; o++)
29755
29757
  (i || !(o in t)) && (i || (i = Array.prototype.slice.call(t, 0, o)), i[o] = t[o]);
29756
29758
  return e.concat(i || Array.prototype.slice.call(t));
29757
29759
  }
29758
- var wi = "right-scroll-bar-position", $i = "width-before-scroll-bar", KU = "with-scroll-bars-hidden", YU = "--removed-body-scroll-bar-size";
29760
+ var wi = "right-scroll-bar-position", $i = "width-before-scroll-bar", GU = "with-scroll-bars-hidden", KU = "--removed-body-scroll-bar-size";
29759
29761
  function il(e, t) {
29760
29762
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
29761
29763
  }
29762
- function QU(e, t) {
29764
+ function YU(e, t) {
29763
29765
  var n = Ie(function() {
29764
29766
  return {
29765
29767
  // value
@@ -29780,14 +29782,14 @@ function QU(e, t) {
29780
29782
  })[0];
29781
29783
  return n.callback = t, n.facade;
29782
29784
  }
29783
- var XU = typeof window < "u" ? _.useLayoutEffect : _.useEffect, gm = /* @__PURE__ */ new WeakMap();
29784
- function e6(e, t) {
29785
- var n = QU(null, function(o) {
29785
+ var QU = typeof window < "u" ? _.useLayoutEffect : _.useEffect, gm = /* @__PURE__ */ new WeakMap();
29786
+ function XU(e, t) {
29787
+ var n = YU(null, function(o) {
29786
29788
  return e.forEach(function(r) {
29787
29789
  return il(r, o);
29788
29790
  });
29789
29791
  });
29790
- return XU(function() {
29792
+ return QU(function() {
29791
29793
  var o = gm.get(n);
29792
29794
  if (o) {
29793
29795
  var r = new Set(o), i = new Set(e), a = n.current;
@@ -29800,11 +29802,11 @@ function e6(e, t) {
29800
29802
  gm.set(n, e);
29801
29803
  }, [e]), n;
29802
29804
  }
29803
- function t6(e) {
29805
+ function e6(e) {
29804
29806
  return e;
29805
29807
  }
29806
- function r6(e, t) {
29807
- t === void 0 && (t = t6);
29808
+ function t6(e, t) {
29809
+ t === void 0 && (t = e6);
29808
29810
  var n = [], o = !1, r = {
29809
29811
  read: function() {
29810
29812
  if (o)
@@ -29858,9 +29860,9 @@ function r6(e, t) {
29858
29860
  };
29859
29861
  return r;
29860
29862
  }
29861
- function n6(e) {
29863
+ function r6(e) {
29862
29864
  e === void 0 && (e = {});
29863
- var t = r6(null);
29865
+ var t = t6(null);
29864
29866
  return t.options = jt({ async: !0, ssr: !1 }, e), t;
29865
29867
  }
29866
29868
  var Lx = function(e) {
@@ -29873,16 +29875,16 @@ var Lx = function(e) {
29873
29875
  return _.createElement(o, jt({}, n));
29874
29876
  };
29875
29877
  Lx.isSideCarExport = !0;
29876
- function o6(e, t) {
29878
+ function n6(e, t) {
29877
29879
  return e.useMedium(t), Lx;
29878
29880
  }
29879
- var Zx = n6(), al = function() {
29881
+ var Zx = r6(), al = function() {
29880
29882
  }, vs = _.forwardRef(function(e, t) {
29881
29883
  var n = _.useRef(null), o = _.useState({
29882
29884
  onScrollCapture: al,
29883
29885
  onWheelCapture: al,
29884
29886
  onTouchMoveCapture: al
29885
- }), r = o[0], i = o[1], a = e.forwardProps, s = e.children, u = e.className, l = e.removeScrollBar, c = e.enabled, d = e.shards, f = e.sideCar, p = e.noRelative, h = e.noIsolation, m = e.inert, b = e.allowPinchZoom, y = e.as, $ = y === void 0 ? "div" : y, S = e.gapMode, v = Ux(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), k = f, O = e6([n, t]), I = jt(jt({}, v), r);
29887
+ }), r = o[0], i = o[1], a = e.forwardProps, s = e.children, u = e.className, l = e.removeScrollBar, c = e.enabled, d = e.shards, f = e.sideCar, p = e.noRelative, h = e.noIsolation, m = e.inert, b = e.allowPinchZoom, y = e.as, $ = y === void 0 ? "div" : y, S = e.gapMode, v = Ux(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), k = f, O = XU([n, t]), I = jt(jt({}, v), r);
29886
29888
  return _.createElement(
29887
29889
  _.Fragment,
29888
29890
  null,
@@ -29899,37 +29901,37 @@ vs.classNames = {
29899
29901
  fullWidth: $i,
29900
29902
  zeroRight: wi
29901
29903
  };
29902
- var i6 = function() {
29904
+ var o6 = function() {
29903
29905
  if (typeof __webpack_nonce__ < "u")
29904
29906
  return __webpack_nonce__;
29905
29907
  };
29906
- function a6() {
29908
+ function i6() {
29907
29909
  if (!document)
29908
29910
  return null;
29909
29911
  var e = document.createElement("style");
29910
29912
  e.type = "text/css";
29911
- var t = i6();
29913
+ var t = o6();
29912
29914
  return t && e.setAttribute("nonce", t), e;
29913
29915
  }
29914
- function s6(e, t) {
29916
+ function a6(e, t) {
29915
29917
  e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
29916
29918
  }
29917
- function l6(e) {
29919
+ function s6(e) {
29918
29920
  var t = document.head || document.getElementsByTagName("head")[0];
29919
29921
  t.appendChild(e);
29920
29922
  }
29921
- var u6 = function() {
29923
+ var l6 = function() {
29922
29924
  var e = 0, t = null;
29923
29925
  return {
29924
29926
  add: function(n) {
29925
- e == 0 && (t = a6()) && (s6(t, n), l6(t)), e++;
29927
+ e == 0 && (t = i6()) && (a6(t, n), s6(t)), e++;
29926
29928
  },
29927
29929
  remove: function() {
29928
29930
  e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
29929
29931
  }
29930
29932
  };
29931
- }, c6 = function() {
29932
- var e = u6();
29933
+ }, u6 = function() {
29934
+ var e = l6();
29933
29935
  return function(t, n) {
29934
29936
  _.useEffect(function() {
29935
29937
  return e.add(t), function() {
@@ -29938,35 +29940,35 @@ var u6 = function() {
29938
29940
  }, [t && n]);
29939
29941
  };
29940
29942
  }, Fx = function() {
29941
- var e = c6(), t = function(n) {
29943
+ var e = u6(), t = function(n) {
29942
29944
  var o = n.styles, r = n.dynamic;
29943
29945
  return e(o, r), null;
29944
29946
  };
29945
29947
  return t;
29946
- }, d6 = {
29948
+ }, c6 = {
29947
29949
  left: 0,
29948
29950
  top: 0,
29949
29951
  right: 0,
29950
29952
  gap: 0
29951
29953
  }, sl = function(e) {
29952
29954
  return parseInt(e || "", 10) || 0;
29953
- }, p6 = function(e) {
29955
+ }, d6 = function(e) {
29954
29956
  var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], o = t[e === "padding" ? "paddingTop" : "marginTop"], r = t[e === "padding" ? "paddingRight" : "marginRight"];
29955
29957
  return [sl(n), sl(o), sl(r)];
29956
- }, f6 = function(e) {
29958
+ }, p6 = function(e) {
29957
29959
  if (e === void 0 && (e = "margin"), typeof window > "u")
29958
- return d6;
29959
- var t = p6(e), n = document.documentElement.clientWidth, o = window.innerWidth;
29960
+ return c6;
29961
+ var t = d6(e), n = document.documentElement.clientWidth, o = window.innerWidth;
29960
29962
  return {
29961
29963
  left: t[0],
29962
29964
  top: t[1],
29963
29965
  right: t[2],
29964
29966
  gap: Math.max(0, o - n + t[2] - t[0])
29965
29967
  };
29966
- }, m6 = Fx(), en = "data-scroll-locked", h6 = function(e, t, n, o) {
29968
+ }, f6 = Fx(), en = "data-scroll-locked", m6 = function(e, t, n, o) {
29967
29969
  var r = e.left, i = e.top, a = e.right, s = e.gap;
29968
29970
  return n === void 0 && (n = "margin"), `
29969
- .`.concat(KU, ` {
29971
+ .`.concat(GU, ` {
29970
29972
  overflow: hidden `).concat(o, `;
29971
29973
  padding-right: `).concat(s, "px ").concat(o, `;
29972
29974
  }
@@ -30004,26 +30006,26 @@ var u6 = function() {
30004
30006
  }
30005
30007
 
30006
30008
  body[`).concat(en, `] {
30007
- `).concat(YU, ": ").concat(s, `px;
30009
+ `).concat(KU, ": ").concat(s, `px;
30008
30010
  }
30009
30011
  `);
30010
30012
  }, vm = function() {
30011
30013
  var e = parseInt(document.body.getAttribute(en) || "0", 10);
30012
30014
  return isFinite(e) ? e : 0;
30013
- }, g6 = function() {
30015
+ }, h6 = function() {
30014
30016
  _.useEffect(function() {
30015
30017
  return document.body.setAttribute(en, (vm() + 1).toString()), function() {
30016
30018
  var e = vm() - 1;
30017
30019
  e <= 0 ? document.body.removeAttribute(en) : document.body.setAttribute(en, e.toString());
30018
30020
  };
30019
30021
  }, []);
30020
- }, v6 = function(e) {
30022
+ }, g6 = function(e) {
30021
30023
  var t = e.noRelative, n = e.noImportant, o = e.gapMode, r = o === void 0 ? "margin" : o;
30022
- g6();
30024
+ h6();
30023
30025
  var i = _.useMemo(function() {
30024
- return f6(r);
30026
+ return p6(r);
30025
30027
  }, [r]);
30026
- return _.createElement(m6, { styles: h6(i, !t, r, n ? "" : "!important") });
30028
+ return _.createElement(f6, { styles: m6(i, !t, r, n ? "" : "!important") });
30027
30029
  }, Yl = !1;
30028
30030
  if (typeof window < "u")
30029
30031
  try {
@@ -30036,7 +30038,7 @@ if (typeof window < "u")
30036
30038
  } catch {
30037
30039
  Yl = !1;
30038
30040
  }
30039
- var Br = Yl ? { passive: !1 } : !1, y6 = function(e) {
30041
+ var Br = Yl ? { passive: !1 } : !1, v6 = function(e) {
30040
30042
  return e.tagName === "TEXTAREA";
30041
30043
  }, qx = function(e, t) {
30042
30044
  if (!(e instanceof Element))
@@ -30045,11 +30047,11 @@ var Br = Yl ? { passive: !1 } : !1, y6 = function(e) {
30045
30047
  return (
30046
30048
  // not-not-scrollable
30047
30049
  n[t] !== "hidden" && // contains scroll inside self
30048
- !(n.overflowY === n.overflowX && !y6(e) && n[t] === "visible")
30050
+ !(n.overflowY === n.overflowX && !v6(e) && n[t] === "visible")
30049
30051
  );
30050
- }, b6 = function(e) {
30052
+ }, y6 = function(e) {
30051
30053
  return qx(e, "overflowY");
30052
- }, _6 = function(e) {
30054
+ }, b6 = function(e) {
30053
30055
  return qx(e, "overflowX");
30054
30056
  }, ym = function(e, t) {
30055
30057
  var n = t.ownerDocument, o = t;
@@ -30064,14 +30066,14 @@ var Br = Yl ? { passive: !1 } : !1, y6 = function(e) {
30064
30066
  o = o.parentNode;
30065
30067
  } while (o && o !== n.body);
30066
30068
  return !1;
30067
- }, w6 = function(e) {
30069
+ }, _6 = function(e) {
30068
30070
  var t = e.scrollTop, n = e.scrollHeight, o = e.clientHeight;
30069
30071
  return [
30070
30072
  t,
30071
30073
  n,
30072
30074
  o
30073
30075
  ];
30074
- }, $6 = function(e) {
30076
+ }, w6 = function(e) {
30075
30077
  var t = e.scrollLeft, n = e.scrollWidth, o = e.clientWidth;
30076
30078
  return [
30077
30079
  t,
@@ -30079,13 +30081,13 @@ var Br = Yl ? { passive: !1 } : !1, y6 = function(e) {
30079
30081
  o
30080
30082
  ];
30081
30083
  }, Vx = function(e, t) {
30082
- return e === "v" ? b6(t) : _6(t);
30084
+ return e === "v" ? y6(t) : b6(t);
30083
30085
  }, Bx = function(e, t) {
30084
- return e === "v" ? w6(t) : $6(t);
30085
- }, S6 = function(e, t) {
30086
+ return e === "v" ? _6(t) : w6(t);
30087
+ }, $6 = function(e, t) {
30086
30088
  return e === "h" && t === "rtl" ? -1 : 1;
30087
- }, x6 = function(e, t, n, o, r) {
30088
- var i = S6(e, window.getComputedStyle(t).direction), a = i * o, s = n.target, u = t.contains(s), l = !1, c = a > 0, d = 0, f = 0;
30089
+ }, S6 = function(e, t, n, o, r) {
30090
+ var i = $6(e, window.getComputedStyle(t).direction), a = i * o, s = n.target, u = t.contains(s), l = !1, c = a > 0, d = 0, f = 0;
30089
30091
  do {
30090
30092
  if (!s)
30091
30093
  break;
@@ -30105,22 +30107,22 @@ var Br = Yl ? { passive: !1 } : !1, y6 = function(e) {
30105
30107
  return [e.deltaX, e.deltaY];
30106
30108
  }, _m = function(e) {
30107
30109
  return e && "current" in e ? e.current : e;
30108
- }, I6 = function(e, t) {
30110
+ }, x6 = function(e, t) {
30109
30111
  return e[0] === t[0] && e[1] === t[1];
30110
- }, k6 = function(e) {
30112
+ }, I6 = function(e) {
30111
30113
  return `
30112
30114
  .block-interactivity-`.concat(e, ` {pointer-events: none;}
30113
30115
  .allow-interactivity-`).concat(e, ` {pointer-events: all;}
30114
30116
  `);
30115
- }, E6 = 0, Jr = [];
30116
- function T6(e) {
30117
- var t = _.useRef([]), n = _.useRef([0, 0]), o = _.useRef(), r = _.useState(E6++)[0], i = _.useState(Fx)[0], a = _.useRef(e);
30117
+ }, k6 = 0, Jr = [];
30118
+ function E6(e) {
30119
+ var t = _.useRef([]), n = _.useRef([0, 0]), o = _.useRef(), r = _.useState(k6++)[0], i = _.useState(Fx)[0], a = _.useRef(e);
30118
30120
  _.useEffect(function() {
30119
30121
  a.current = e;
30120
30122
  }, [e]), _.useEffect(function() {
30121
30123
  if (e.inert) {
30122
30124
  document.body.classList.add("block-interactivity-".concat(r));
30123
- var m = GU([e.lockRef.current], (e.shards || []).map(_m), !0).filter(Boolean);
30125
+ var m = HU([e.lockRef.current], (e.shards || []).map(_m), !0).filter(Boolean);
30124
30126
  return m.forEach(function(b) {
30125
30127
  return b.classList.add("allow-interactivity-".concat(r));
30126
30128
  }), function() {
@@ -30144,12 +30146,12 @@ function T6(e) {
30144
30146
  if (!o.current && "changedTouches" in m && (S || v) && (o.current = k), !k)
30145
30147
  return !0;
30146
30148
  var j = o.current || k;
30147
- return x6(j, b, m, j === "h" ? S : v);
30149
+ return S6(j, b, m, j === "h" ? S : v);
30148
30150
  }, []), u = _.useCallback(function(m) {
30149
30151
  var b = m;
30150
30152
  if (!(!Jr.length || Jr[Jr.length - 1] !== i)) {
30151
30153
  var y = "deltaY" in b ? bm(b) : mi(b), $ = t.current.filter(function(k) {
30152
- return k.name === b.type && (k.target === b.target || b.target === k.shadowParent) && I6(k.delta, y);
30154
+ return k.name === b.type && (k.target === b.target || b.target === k.shadowParent) && x6(k.delta, y);
30153
30155
  })[0];
30154
30156
  if ($ && $.should) {
30155
30157
  b.cancelable && b.preventDefault();
@@ -30163,7 +30165,7 @@ function T6(e) {
30163
30165
  }
30164
30166
  }
30165
30167
  }, []), l = _.useCallback(function(m, b, y, $) {
30166
- var S = { name: m, delta: b, target: y, should: $, shadowParent: O6(y) };
30168
+ var S = { name: m, delta: b, target: y, should: $, shadowParent: T6(y) };
30167
30169
  t.current.push(S), setTimeout(function() {
30168
30170
  t.current = t.current.filter(function(v) {
30169
30171
  return v !== S;
@@ -30191,23 +30193,23 @@ function T6(e) {
30191
30193
  return _.createElement(
30192
30194
  _.Fragment,
30193
30195
  null,
30194
- h ? _.createElement(i, { styles: k6(r) }) : null,
30195
- p ? _.createElement(v6, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
30196
+ h ? _.createElement(i, { styles: I6(r) }) : null,
30197
+ p ? _.createElement(g6, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
30196
30198
  );
30197
30199
  }
30198
- function O6(e) {
30200
+ function T6(e) {
30199
30201
  for (var t = null; e !== null; )
30200
30202
  e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
30201
30203
  return t;
30202
30204
  }
30203
- const N6 = o6(Zx, T6);
30205
+ const O6 = n6(Zx, E6);
30204
30206
  var Td = _.forwardRef(function(e, t) {
30205
- return _.createElement(vs, jt({}, e, { ref: t, sideCar: N6 }));
30207
+ return _.createElement(vs, jt({}, e, { ref: t, sideCar: O6 }));
30206
30208
  });
30207
30209
  Td.classNames = vs.classNames;
30208
30210
  var ys = "Popover", [Jx] = Bo(ys, [
30209
30211
  ps
30210
- ]), Ho = ps(), [P6, wr] = Jx(ys), Wx = (e) => {
30212
+ ]), Ho = ps(), [N6, wr] = Jx(ys), Wx = (e) => {
30211
30213
  const {
30212
30214
  __scopePopover: t,
30213
30215
  children: n,
@@ -30222,7 +30224,7 @@ var ys = "Popover", [Jx] = Bo(ys, [
30222
30224
  caller: ys
30223
30225
  });
30224
30226
  return /* @__PURE__ */ g(_x, { ...s, children: /* @__PURE__ */ g(
30225
- P6,
30227
+ N6,
30226
30228
  {
30227
30229
  scope: t,
30228
30230
  contentId: Qr(),
@@ -30239,13 +30241,13 @@ var ys = "Popover", [Jx] = Bo(ys, [
30239
30241
  ) });
30240
30242
  };
30241
30243
  Wx.displayName = ys;
30242
- var Hx = "PopoverAnchor", C6 = _.forwardRef(
30244
+ var Hx = "PopoverAnchor", P6 = _.forwardRef(
30243
30245
  (e, t) => {
30244
30246
  const { __scopePopover: n, ...o } = e, r = wr(Hx, n), i = Ho(n), { onCustomAnchorAdd: a, onCustomAnchorRemove: s } = r;
30245
30247
  return _.useEffect(() => (a(), () => s()), [a, s]), /* @__PURE__ */ g(wd, { ...i, ...o, ref: t });
30246
30248
  }
30247
30249
  );
30248
- C6.displayName = Hx;
30250
+ P6.displayName = Hx;
30249
30251
  var Gx = "PopoverTrigger", Kx = _.forwardRef(
30250
30252
  (e, t) => {
30251
30253
  const { __scopePopover: n, ...o } = e, r = wr(Gx, n), i = Ho(n), a = Ye(t, r.triggerRef), s = /* @__PURE__ */ g(
@@ -30265,27 +30267,27 @@ var Gx = "PopoverTrigger", Kx = _.forwardRef(
30265
30267
  }
30266
30268
  );
30267
30269
  Kx.displayName = Gx;
30268
- var Od = "PopoverPortal", [A6, R6] = Jx(Od, {
30270
+ var Od = "PopoverPortal", [C6, A6] = Jx(Od, {
30269
30271
  forceMount: void 0
30270
30272
  }), Yx = (e) => {
30271
30273
  const { __scopePopover: t, forceMount: n, children: o, container: r } = e, i = wr(Od, t);
30272
- return /* @__PURE__ */ g(A6, { scope: t, forceMount: n, children: /* @__PURE__ */ g(rr, { present: n || i.open, children: /* @__PURE__ */ g(fs, { asChild: !0, container: r, children: o }) }) });
30274
+ return /* @__PURE__ */ g(C6, { scope: t, forceMount: n, children: /* @__PURE__ */ g(rr, { present: n || i.open, children: /* @__PURE__ */ g(fs, { asChild: !0, container: r, children: o }) }) });
30273
30275
  };
30274
30276
  Yx.displayName = Od;
30275
30277
  var hn = "PopoverContent", Qx = _.forwardRef(
30276
30278
  (e, t) => {
30277
- const n = R6(hn, e.__scopePopover), { forceMount: o = n.forceMount, ...r } = e, i = wr(hn, e.__scopePopover);
30278
- return /* @__PURE__ */ g(rr, { present: o || i.open, children: i.modal ? /* @__PURE__ */ g(j6, { ...r, ref: t }) : /* @__PURE__ */ g(M6, { ...r, ref: t }) });
30279
+ const n = A6(hn, e.__scopePopover), { forceMount: o = n.forceMount, ...r } = e, i = wr(hn, e.__scopePopover);
30280
+ return /* @__PURE__ */ g(rr, { present: o || i.open, children: i.modal ? /* @__PURE__ */ g(z6, { ...r, ref: t }) : /* @__PURE__ */ g(j6, { ...r, ref: t }) });
30279
30281
  }
30280
30282
  );
30281
30283
  Qx.displayName = hn;
30282
- var z6 = /* @__PURE__ */ dd("PopoverContent.RemoveScroll"), j6 = _.forwardRef(
30284
+ var R6 = /* @__PURE__ */ dd("PopoverContent.RemoveScroll"), z6 = _.forwardRef(
30283
30285
  (e, t) => {
30284
30286
  const n = wr(hn, e.__scopePopover), o = _.useRef(null), r = Ye(t, o), i = _.useRef(!1);
30285
30287
  return _.useEffect(() => {
30286
30288
  const a = o.current;
30287
30289
  if (a) return Dx(a);
30288
- }, []), /* @__PURE__ */ g(Td, { as: z6, allowPinchZoom: !0, children: /* @__PURE__ */ g(
30290
+ }, []), /* @__PURE__ */ g(Td, { as: R6, allowPinchZoom: !0, children: /* @__PURE__ */ g(
30289
30291
  Xx,
30290
30292
  {
30291
30293
  ...e,
@@ -30311,7 +30313,7 @@ var z6 = /* @__PURE__ */ dd("PopoverContent.RemoveScroll"), j6 = _.forwardRef(
30311
30313
  }
30312
30314
  ) });
30313
30315
  }
30314
- ), M6 = _.forwardRef(
30316
+ ), j6 = _.forwardRef(
30315
30317
  (e, t) => {
30316
30318
  const n = wr(hn, e.__scopePopover), o = _.useRef(!1), r = _.useRef(!1);
30317
30319
  return /* @__PURE__ */ g(
@@ -30388,7 +30390,7 @@ var z6 = /* @__PURE__ */ dd("PopoverContent.RemoveScroll"), j6 = _.forwardRef(
30388
30390
  }
30389
30391
  );
30390
30392
  }
30391
- ), e0 = "PopoverClose", D6 = _.forwardRef(
30393
+ ), e0 = "PopoverClose", M6 = _.forwardRef(
30392
30394
  (e, t) => {
30393
30395
  const { __scopePopover: n, ...o } = e, r = wr(e0, n);
30394
30396
  return /* @__PURE__ */ g(
@@ -30402,27 +30404,27 @@ var z6 = /* @__PURE__ */ dd("PopoverContent.RemoveScroll"), j6 = _.forwardRef(
30402
30404
  );
30403
30405
  }
30404
30406
  );
30405
- D6.displayName = e0;
30406
- var U6 = "PopoverArrow", L6 = _.forwardRef(
30407
+ M6.displayName = e0;
30408
+ var D6 = "PopoverArrow", U6 = _.forwardRef(
30407
30409
  (e, t) => {
30408
30410
  const { __scopePopover: n, ...o } = e, r = Ho(n);
30409
30411
  return /* @__PURE__ */ g($x, { ...r, ...o, ref: t });
30410
30412
  }
30411
30413
  );
30412
- L6.displayName = U6;
30414
+ U6.displayName = D6;
30413
30415
  function t0(e) {
30414
30416
  return e ? "open" : "closed";
30415
30417
  }
30416
- var Z6 = Wx, F6 = Kx, q6 = Yx, V6 = Qx;
30418
+ var L6 = Wx, Z6 = Kx, F6 = Yx, q6 = Qx;
30417
30419
  function r0({
30418
30420
  ...e
30419
30421
  }) {
30420
- return /* @__PURE__ */ g(Z6, { "data-slot": "popover", ...e });
30422
+ return /* @__PURE__ */ g(L6, { "data-slot": "popover", ...e });
30421
30423
  }
30422
30424
  function n0({
30423
30425
  ...e
30424
30426
  }) {
30425
- return /* @__PURE__ */ g(F6, { "data-slot": "popover-trigger", ...e });
30427
+ return /* @__PURE__ */ g(Z6, { "data-slot": "popover-trigger", ...e });
30426
30428
  }
30427
30429
  function o0({
30428
30430
  className: e,
@@ -30430,8 +30432,8 @@ function o0({
30430
30432
  sideOffset: n = 4,
30431
30433
  ...o
30432
30434
  }) {
30433
- return /* @__PURE__ */ g(q6, { children: /* @__PURE__ */ g(
30434
- V6,
30435
+ return /* @__PURE__ */ g(F6, { children: /* @__PURE__ */ g(
30436
+ q6,
30435
30437
  {
30436
30438
  "data-slot": "popover-content",
30437
30439
  align: t,
@@ -30444,7 +30446,7 @@ function o0({
30444
30446
  }
30445
30447
  ) });
30446
30448
  }
30447
- const B6 = GS(
30449
+ const V6 = GS(
30448
30450
  "flex size-5 items-center justify-center rounded-full",
30449
30451
  {
30450
30452
  variants: {
@@ -30461,7 +30463,7 @@ const B6 = GS(
30461
30463
  }
30462
30464
  }
30463
30465
  );
30464
- function J6(e) {
30466
+ function B6(e) {
30465
30467
  switch (e) {
30466
30468
  case "text/markdown":
30467
30469
  return "markdown";
@@ -30481,7 +30483,7 @@ function J6(e) {
30481
30483
  return;
30482
30484
  }
30483
30485
  }
30484
- function W6(e, t) {
30486
+ function J6(e, t) {
30485
30487
  if (t === "json")
30486
30488
  try {
30487
30489
  return JSON.stringify(JSON.parse(e), null, 2);
@@ -30490,11 +30492,11 @@ function W6(e, t) {
30490
30492
  }
30491
30493
  return e;
30492
30494
  }
30493
- function H6(e) {
30495
+ function W6(e) {
30494
30496
  return typeof e == "object" && e !== null && "content" in e && Array.isArray(e.content);
30495
30497
  }
30496
30498
  function i0({ status: e }) {
30497
- return /* @__PURE__ */ U("div", { className: R(B6({ status: e })), children: [
30499
+ return /* @__PURE__ */ U("div", { className: R(V6({ status: e })), children: [
30498
30500
  e === "pending" && null,
30499
30501
  e === "running" && /* @__PURE__ */ g(cl, { className: "size-4 animate-spin" }),
30500
30502
  e === "complete" && /* @__PURE__ */ g(ur, { className: "size-4" }),
@@ -30502,7 +30504,7 @@ function i0({ status: e }) {
30502
30504
  e === "approval" && /* @__PURE__ */ g(cl, { className: "text-muted-foreground size-4 animate-spin" })
30503
30505
  ] });
30504
30506
  }
30505
- function G6({ content: e }) {
30507
+ function H6({ content: e }) {
30506
30508
  const [t, n] = Ie(!1);
30507
30509
  return /* @__PURE__ */ g(
30508
30510
  "button",
@@ -30552,7 +30554,7 @@ function a0({
30552
30554
  }
30553
30555
  );
30554
30556
  }
30555
- function K6({ data: e }) {
30557
+ function G6({ data: e }) {
30556
30558
  const t = `data:image/png;base64,${e}`;
30557
30559
  return /* @__PURE__ */ g(
30558
30560
  "div",
@@ -30570,15 +30572,15 @@ function K6({ data: e }) {
30570
30572
  }
30571
30573
  );
30572
30574
  }
30573
- function Y6({
30575
+ function K6({
30574
30576
  content: e
30575
30577
  }) {
30576
30578
  return /* @__PURE__ */ g("div", { className: "w-full", children: e.content.map((t, n) => {
30577
30579
  switch (t.type) {
30578
30580
  case "text": {
30579
- const o = J6(
30581
+ const o = B6(
30580
30582
  t._meta?.["getgram.ai/mime-type"] ?? "text/plain"
30581
- ), r = W6(t.text, o);
30583
+ ), r = J6(t.text, o);
30582
30584
  return /* @__PURE__ */ g(
30583
30585
  a0,
30584
30586
  {
@@ -30589,7 +30591,7 @@ function Y6({
30589
30591
  );
30590
30592
  }
30591
30593
  case "image":
30592
- return /* @__PURE__ */ g(K6, { data: t.data }, n);
30594
+ return /* @__PURE__ */ g(G6, { data: t.data }, n);
30593
30595
  default:
30594
30596
  return /* @__PURE__ */ g(
30595
30597
  "pre",
@@ -30609,7 +30611,7 @@ function wm({
30609
30611
  highlightSyntax: o = !0,
30610
30612
  language: r = "json"
30611
30613
  }) {
30612
- const [i, a] = Ie(n), s = H6(t), u = s ? JSON.stringify(t, null, 2) : typeof t == "string" ? t : JSON.stringify(t, null, 2);
30614
+ const [i, a] = Ie(n), s = W6(t), u = s ? JSON.stringify(t, null, 2) : typeof t == "string" ? t : JSON.stringify(t, null, 2);
30613
30615
  return /* @__PURE__ */ U("div", { "data-slot": "tool-ui-section", className: "border-border border-t", children: [
30614
30616
  /* @__PURE__ */ U(
30615
30617
  "button",
@@ -30619,7 +30621,7 @@ function wm({
30619
30621
  children: [
30620
30622
  /* @__PURE__ */ g("span", { className: "text-muted-foreground text-sm", children: e }),
30621
30623
  /* @__PURE__ */ U("div", { className: "flex items-center gap-1", children: [
30622
- /* @__PURE__ */ g(G6, { content: u }),
30624
+ /* @__PURE__ */ g(H6, { content: u }),
30623
30625
  /* @__PURE__ */ g(
30624
30626
  Am,
30625
30627
  {
@@ -30633,10 +30635,10 @@ function wm({
30633
30635
  ]
30634
30636
  }
30635
30637
  ),
30636
- i && /* @__PURE__ */ g("div", { className: "border-border border-t", children: s ? /* @__PURE__ */ g(Y6, { content: t }) : o ? /* @__PURE__ */ g(a0, { text: u, language: r }) : /* @__PURE__ */ g("pre", { className: "text-foreground overflow-x-auto px-4 py-3 text-sm whitespace-pre-wrap", children: u }) })
30638
+ i && /* @__PURE__ */ g("div", { className: "border-border border-t", children: s ? /* @__PURE__ */ g(K6, { content: t }) : o ? /* @__PURE__ */ g(a0, { text: u, language: r }) : /* @__PURE__ */ g("pre", { className: "text-foreground overflow-x-auto px-4 py-3 text-sm whitespace-pre-wrap", children: u }) })
30637
30639
  ] });
30638
30640
  }
30639
- function Q6({
30641
+ function Y6({
30640
30642
  name: e,
30641
30643
  icon: t,
30642
30644
  provider: n,
@@ -30836,7 +30838,7 @@ function Q6({
30836
30838
  }
30837
30839
  );
30838
30840
  }
30839
- function X6({
30841
+ function Q6({
30840
30842
  title: e,
30841
30843
  icon: t,
30842
30844
  status: n = "complete",
@@ -30900,7 +30902,7 @@ function X6({
30900
30902
  }
30901
30903
  );
30902
30904
  }
30903
- const e2 = ({
30905
+ const X6 = ({
30904
30906
  toolName: e,
30905
30907
  toolCallId: t,
30906
30908
  status: n,
@@ -30932,7 +30934,7 @@ const e2 = ({
30932
30934
  f !== -1 && f !== d.length - 1 && "border-b"
30933
30935
  ),
30934
30936
  children: /* @__PURE__ */ g(
30935
- Q6,
30937
+ Y6,
30936
30938
  {
30937
30939
  name: e,
30938
30940
  status: b(),
@@ -30947,7 +30949,7 @@ const e2 = ({
30947
30949
  }
30948
30950
  );
30949
30951
  };
30950
- var bs = "Collapsible", [t2] = Bo(bs), [r2, Nd] = t2(bs), s0 = _.forwardRef(
30952
+ var bs = "Collapsible", [e2] = Bo(bs), [t2, Nd] = e2(bs), s0 = _.forwardRef(
30951
30953
  (e, t) => {
30952
30954
  const {
30953
30955
  __scopeCollapsible: n,
@@ -30963,7 +30965,7 @@ var bs = "Collapsible", [t2] = Bo(bs), [r2, Nd] = t2(bs), s0 = _.forwardRef(
30963
30965
  caller: bs
30964
30966
  });
30965
30967
  return /* @__PURE__ */ g(
30966
- r2,
30968
+ t2,
30967
30969
  {
30968
30970
  scope: n,
30969
30971
  disabled: i,
@@ -31007,11 +31009,11 @@ u0.displayName = l0;
31007
31009
  var Pd = "CollapsibleContent", c0 = _.forwardRef(
31008
31010
  (e, t) => {
31009
31011
  const { forceMount: n, ...o } = e, r = Nd(Pd, e.__scopeCollapsible);
31010
- return /* @__PURE__ */ g(rr, { present: n || r.open, children: ({ present: i }) => /* @__PURE__ */ g(n2, { ...o, ref: t, present: i }) });
31012
+ return /* @__PURE__ */ g(rr, { present: n || r.open, children: ({ present: i }) => /* @__PURE__ */ g(r2, { ...o, ref: t, present: i }) });
31011
31013
  }
31012
31014
  );
31013
31015
  c0.displayName = Pd;
31014
- var n2 = _.forwardRef((e, t) => {
31016
+ var r2 = _.forwardRef((e, t) => {
31015
31017
  const { __scopeCollapsible: n, present: o, children: r, ...i } = e, a = Nd(Pd, n), [s, u] = _.useState(o), l = _.useRef(null), c = Ye(t, l), d = _.useRef(0), f = d.current, p = _.useRef(0), h = p.current, m = a.open || s, b = _.useRef(m), y = _.useRef(void 0);
31016
31018
  return _.useEffect(() => {
31017
31019
  const $ = requestAnimationFrame(() => b.current = !1);
@@ -31047,13 +31049,13 @@ var n2 = _.forwardRef((e, t) => {
31047
31049
  function Cd(e) {
31048
31050
  return e ? "open" : "closed";
31049
31051
  }
31050
- var o2 = s0;
31051
- function i2({
31052
+ var n2 = s0;
31053
+ function o2({
31052
31054
  ...e
31053
31055
  }) {
31054
- return /* @__PURE__ */ g(o2, { "data-slot": "collapsible", ...e });
31056
+ return /* @__PURE__ */ g(n2, { "data-slot": "collapsible", ...e });
31055
31057
  }
31056
- function a2({
31058
+ function i2({
31057
31059
  ...e
31058
31060
  }) {
31059
31061
  return /* @__PURE__ */ g(
@@ -31064,7 +31066,7 @@ function a2({
31064
31066
  }
31065
31067
  );
31066
31068
  }
31067
- function s2({
31069
+ function a2({
31068
31070
  ...e
31069
31071
  }) {
31070
31072
  return /* @__PURE__ */ g(
@@ -31083,7 +31085,7 @@ const $m = 200, d0 = ({ className: e, children: t }) => {
31083
31085
  [i]
31084
31086
  );
31085
31087
  return /* @__PURE__ */ g(
31086
- i2,
31088
+ o2,
31087
31089
  {
31088
31090
  ref: n,
31089
31091
  open: o,
@@ -31097,7 +31099,7 @@ const $m = 200, d0 = ({ className: e, children: t }) => {
31097
31099
  );
31098
31100
  };
31099
31101
  d0.displayName = "ReasoningRoot";
31100
- const l2 = ({ className: e }) => /* @__PURE__ */ g(
31102
+ const s2 = ({ className: e }) => /* @__PURE__ */ g(
31101
31103
  "div",
31102
31104
  {
31103
31105
  className: R(
@@ -31114,11 +31116,11 @@ const l2 = ({ className: e }) => /* @__PURE__ */ g(
31114
31116
  e
31115
31117
  )
31116
31118
  }
31117
- ), u2 = ({
31119
+ ), l2 = ({
31118
31120
  active: e,
31119
31121
  className: t
31120
31122
  }) => /* @__PURE__ */ U(
31121
- a2,
31123
+ i2,
31122
31124
  {
31123
31125
  className: R(
31124
31126
  "aui-reasoning-trigger group/trigger text-muted-foreground hover:text-foreground -mb-2 flex max-w-[75%] items-center gap-2 py-2 text-sm transition-colors",
@@ -31152,7 +31154,7 @@ const l2 = ({ className: e }) => /* @__PURE__ */ g(
31152
31154
  ]
31153
31155
  }
31154
31156
  ), p0 = ({ className: e, children: t, "aria-busy": n }) => /* @__PURE__ */ U(
31155
- s2,
31157
+ a2,
31156
31158
  {
31157
31159
  className: R(
31158
31160
  "aui-reasoning-content text-muted-foreground relative overflow-hidden text-sm outline-none",
@@ -31168,7 +31170,7 @@ const l2 = ({ className: e }) => /* @__PURE__ */ g(
31168
31170
  "aria-busy": n,
31169
31171
  children: [
31170
31172
  t,
31171
- /* @__PURE__ */ g(l2, {})
31173
+ /* @__PURE__ */ g(s2, {})
31172
31174
  ]
31173
31175
  }
31174
31176
  );
@@ -31194,7 +31196,7 @@ const f0 = ({ className: e, children: t }) => /* @__PURE__ */ g(
31194
31196
  }
31195
31197
  );
31196
31198
  f0.displayName = "ReasoningText";
31197
- const c2 = () => /* @__PURE__ */ g(Rx, {}), d2 = ({
31199
+ const u2 = () => /* @__PURE__ */ g(Rx, {}), c2 = ({
31198
31200
  children: e,
31199
31201
  startIndex: t,
31200
31202
  endIndex: n
@@ -31205,14 +31207,14 @@ const c2 = () => /* @__PURE__ */ g(Rx, {}), d2 = ({
31205
31207
  return i < 0 || r.parts[i]?.type !== "reasoning" ? !1 : i >= t && i <= n;
31206
31208
  });
31207
31209
  return /* @__PURE__ */ U(d0, { children: [
31208
- /* @__PURE__ */ g(u2, { active: o }),
31210
+ /* @__PURE__ */ g(l2, { active: o }),
31209
31211
  /* @__PURE__ */ g(p0, { "aria-busy": o, children: /* @__PURE__ */ g(f0, { children: e }) })
31210
31212
  ] });
31211
- }, m0 = Ql(c2);
31213
+ }, m0 = Ql(u2);
31212
31214
  m0.displayName = "Reasoning";
31213
- const h0 = Ql(d2);
31215
+ const h0 = Ql(c2);
31214
31216
  h0.displayName = "ReasoningGroup";
31215
- var _s = "Dialog", [g0] = Bo(_s), [p2, Pt] = g0(_s), v0 = (e) => {
31217
+ var _s = "Dialog", [g0] = Bo(_s), [d2, Pt] = g0(_s), v0 = (e) => {
31216
31218
  const {
31217
31219
  __scopeDialog: t,
31218
31220
  children: n,
@@ -31227,7 +31229,7 @@ var _s = "Dialog", [g0] = Bo(_s), [p2, Pt] = g0(_s), v0 = (e) => {
31227
31229
  caller: _s
31228
31230
  });
31229
31231
  return /* @__PURE__ */ g(
31230
- p2,
31232
+ d2,
31231
31233
  {
31232
31234
  scope: t,
31233
31235
  triggerRef: s,
@@ -31263,27 +31265,27 @@ var y0 = "DialogTrigger", b0 = _.forwardRef(
31263
31265
  }
31264
31266
  );
31265
31267
  b0.displayName = y0;
31266
- var Ad = "DialogPortal", [f2, _0] = g0(Ad, {
31268
+ var Ad = "DialogPortal", [p2, _0] = g0(Ad, {
31267
31269
  forceMount: void 0
31268
31270
  }), w0 = (e) => {
31269
31271
  const { __scopeDialog: t, forceMount: n, children: o, container: r } = e, i = Pt(Ad, t);
31270
- return /* @__PURE__ */ g(f2, { scope: t, forceMount: n, children: _.Children.map(o, (a) => /* @__PURE__ */ g(rr, { present: n || i.open, children: /* @__PURE__ */ g(fs, { asChild: !0, container: r, children: a }) })) });
31272
+ return /* @__PURE__ */ g(p2, { scope: t, forceMount: n, children: _.Children.map(o, (a) => /* @__PURE__ */ g(rr, { present: n || i.open, children: /* @__PURE__ */ g(fs, { asChild: !0, container: r, children: a }) })) });
31271
31273
  };
31272
31274
  w0.displayName = Ad;
31273
31275
  var na = "DialogOverlay", $0 = _.forwardRef(
31274
31276
  (e, t) => {
31275
31277
  const n = _0(na, e.__scopeDialog), { forceMount: o = n.forceMount, ...r } = e, i = Pt(na, e.__scopeDialog);
31276
- return i.modal ? /* @__PURE__ */ g(rr, { present: o || i.open, children: /* @__PURE__ */ g(h2, { ...r, ref: t }) }) : null;
31278
+ return i.modal ? /* @__PURE__ */ g(rr, { present: o || i.open, children: /* @__PURE__ */ g(m2, { ...r, ref: t }) }) : null;
31277
31279
  }
31278
31280
  );
31279
31281
  $0.displayName = na;
31280
- var m2 = /* @__PURE__ */ dd("DialogOverlay.RemoveScroll"), h2 = _.forwardRef(
31282
+ var f2 = /* @__PURE__ */ dd("DialogOverlay.RemoveScroll"), m2 = _.forwardRef(
31281
31283
  (e, t) => {
31282
31284
  const { __scopeDialog: n, ...o } = e, r = Pt(na, n);
31283
31285
  return (
31284
31286
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
31285
31287
  // ie. when `Overlay` and `Content` are siblings
31286
- /* @__PURE__ */ g(Td, { as: m2, allowPinchZoom: !0, shards: [r.contentRef], children: /* @__PURE__ */ g(
31288
+ /* @__PURE__ */ g(Td, { as: f2, allowPinchZoom: !0, shards: [r.contentRef], children: /* @__PURE__ */ g(
31287
31289
  Ae.div,
31288
31290
  {
31289
31291
  "data-state": zd(r.open),
@@ -31297,11 +31299,11 @@ var m2 = /* @__PURE__ */ dd("DialogOverlay.RemoveScroll"), h2 = _.forwardRef(
31297
31299
  ), zr = "DialogContent", S0 = _.forwardRef(
31298
31300
  (e, t) => {
31299
31301
  const n = _0(zr, e.__scopeDialog), { forceMount: o = n.forceMount, ...r } = e, i = Pt(zr, e.__scopeDialog);
31300
- return /* @__PURE__ */ g(rr, { present: o || i.open, children: i.modal ? /* @__PURE__ */ g(g2, { ...r, ref: t }) : /* @__PURE__ */ g(v2, { ...r, ref: t }) });
31302
+ return /* @__PURE__ */ g(rr, { present: o || i.open, children: i.modal ? /* @__PURE__ */ g(h2, { ...r, ref: t }) : /* @__PURE__ */ g(g2, { ...r, ref: t }) });
31301
31303
  }
31302
31304
  );
31303
31305
  S0.displayName = zr;
31304
- var g2 = _.forwardRef(
31306
+ var h2 = _.forwardRef(
31305
31307
  (e, t) => {
31306
31308
  const n = Pt(zr, e.__scopeDialog), o = _.useRef(null), r = Ye(t, n.contentRef, o);
31307
31309
  return _.useEffect(() => {
@@ -31328,7 +31330,7 @@ var g2 = _.forwardRef(
31328
31330
  }
31329
31331
  );
31330
31332
  }
31331
- ), v2 = _.forwardRef(
31333
+ ), g2 = _.forwardRef(
31332
31334
  (e, t) => {
31333
31335
  const n = Pt(zr, e.__scopeDialog), o = _.useRef(!1), r = _.useRef(!1);
31334
31336
  return /* @__PURE__ */ g(
@@ -31377,8 +31379,8 @@ var g2 = _.forwardRef(
31377
31379
  }
31378
31380
  ),
31379
31381
  /* @__PURE__ */ U(Fn, { children: [
31380
- /* @__PURE__ */ g(b2, { titleId: s.titleId }),
31381
- /* @__PURE__ */ g(w2, { contentRef: u, descriptionId: s.descriptionId })
31382
+ /* @__PURE__ */ g(y2, { titleId: s.titleId }),
31383
+ /* @__PURE__ */ g(_2, { contentRef: u, descriptionId: s.descriptionId })
31382
31384
  ] })
31383
31385
  ] });
31384
31386
  }
@@ -31389,13 +31391,13 @@ var g2 = _.forwardRef(
31389
31391
  }
31390
31392
  );
31391
31393
  I0.displayName = Rd;
31392
- var k0 = "DialogDescription", y2 = _.forwardRef(
31394
+ var k0 = "DialogDescription", v2 = _.forwardRef(
31393
31395
  (e, t) => {
31394
31396
  const { __scopeDialog: n, ...o } = e, r = Pt(k0, n);
31395
31397
  return /* @__PURE__ */ g(Ae.p, { id: r.descriptionId, ...o, ref: t });
31396
31398
  }
31397
31399
  );
31398
- y2.displayName = k0;
31400
+ v2.displayName = k0;
31399
31401
  var E0 = "DialogClose", T0 = _.forwardRef(
31400
31402
  (e, t) => {
31401
31403
  const { __scopeDialog: n, ...o } = e, r = Pt(E0, n);
@@ -31414,11 +31416,11 @@ T0.displayName = E0;
31414
31416
  function zd(e) {
31415
31417
  return e ? "open" : "closed";
31416
31418
  }
31417
- var O0 = "DialogTitleWarning", [VL, N0] = bM(O0, {
31419
+ var O0 = "DialogTitleWarning", [qL, N0] = yM(O0, {
31418
31420
  contentName: zr,
31419
31421
  titleName: Rd,
31420
31422
  docsSlug: "dialog"
31421
- }), b2 = ({ titleId: e }) => {
31423
+ }), y2 = ({ titleId: e }) => {
31422
31424
  const t = N0(O0), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
31423
31425
 
31424
31426
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
@@ -31427,34 +31429,34 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
31427
31429
  return _.useEffect(() => {
31428
31430
  e && (document.getElementById(e) || console.error(n));
31429
31431
  }, [n, e]), null;
31430
- }, _2 = "DialogDescriptionWarning", w2 = ({ contentRef: e, descriptionId: t }) => {
31431
- const o = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${N0(_2).contentName}}.`;
31432
+ }, b2 = "DialogDescriptionWarning", _2 = ({ contentRef: e, descriptionId: t }) => {
31433
+ const o = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${N0(b2).contentName}}.`;
31432
31434
  return _.useEffect(() => {
31433
31435
  const r = e.current?.getAttribute("aria-describedby");
31434
31436
  t && r && (document.getElementById(t) || console.warn(o));
31435
31437
  }, [o, e, t]), null;
31436
- }, $2 = v0, S2 = b0, x2 = w0, I2 = $0, k2 = S0, E2 = I0, T2 = T0;
31437
- function O2({
31438
+ }, w2 = v0, $2 = b0, S2 = w0, x2 = $0, I2 = S0, k2 = I0, E2 = T0;
31439
+ function T2({
31438
31440
  ...e
31439
31441
  }) {
31440
- return /* @__PURE__ */ g($2, { "data-slot": "dialog", ...e });
31442
+ return /* @__PURE__ */ g(w2, { "data-slot": "dialog", ...e });
31441
31443
  }
31442
- function N2({
31444
+ function O2({
31443
31445
  ...e
31444
31446
  }) {
31445
- return /* @__PURE__ */ g(S2, { "data-slot": "dialog-trigger", ...e });
31447
+ return /* @__PURE__ */ g($2, { "data-slot": "dialog-trigger", ...e });
31446
31448
  }
31447
- function P2({
31449
+ function N2({
31448
31450
  ...e
31449
31451
  }) {
31450
- return /* @__PURE__ */ g(x2, { "data-slot": "dialog-portal", ...e });
31452
+ return /* @__PURE__ */ g(S2, { "data-slot": "dialog-portal", ...e });
31451
31453
  }
31452
- function C2({
31454
+ function P2({
31453
31455
  className: e,
31454
31456
  ...t
31455
31457
  }) {
31456
31458
  return /* @__PURE__ */ g(
31457
- I2,
31459
+ x2,
31458
31460
  {
31459
31461
  "data-slot": "dialog-overlay",
31460
31462
  className: R(
@@ -31465,16 +31467,16 @@ function C2({
31465
31467
  }
31466
31468
  );
31467
31469
  }
31468
- function A2({
31470
+ function C2({
31469
31471
  className: e,
31470
31472
  children: t,
31471
31473
  showCloseButton: n = !0,
31472
31474
  ...o
31473
31475
  }) {
31474
- return /* @__PURE__ */ U(P2, { "data-slot": "dialog-portal", children: [
31475
- /* @__PURE__ */ g(C2, {}),
31476
+ return /* @__PURE__ */ U(N2, { "data-slot": "dialog-portal", children: [
31477
+ /* @__PURE__ */ g(P2, {}),
31476
31478
  /* @__PURE__ */ U(
31477
- k2,
31479
+ I2,
31478
31480
  {
31479
31481
  "data-slot": "dialog-content",
31480
31482
  className: R(
@@ -31485,7 +31487,7 @@ function A2({
31485
31487
  children: [
31486
31488
  t,
31487
31489
  n && /* @__PURE__ */ U(
31488
- T2,
31490
+ E2,
31489
31491
  {
31490
31492
  "data-slot": "dialog-close",
31491
31493
  className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
@@ -31500,12 +31502,12 @@ function A2({
31500
31502
  )
31501
31503
  ] });
31502
31504
  }
31503
- function R2({
31505
+ function A2({
31504
31506
  className: e,
31505
31507
  ...t
31506
31508
  }) {
31507
31509
  return /* @__PURE__ */ g(
31508
- E2,
31510
+ k2,
31509
31511
  {
31510
31512
  "data-slot": "dialog-title",
31511
31513
  className: R("text-lg leading-none font-semibold", e),
@@ -31513,7 +31515,7 @@ function R2({
31513
31515
  }
31514
31516
  );
31515
31517
  }
31516
- function z2(e, t = []) {
31518
+ function R2(e, t = []) {
31517
31519
  let n = [];
31518
31520
  function o(i, a) {
31519
31521
  const s = _.createContext(a);
@@ -31543,9 +31545,9 @@ function z2(e, t = []) {
31543
31545
  );
31544
31546
  };
31545
31547
  };
31546
- return r.scopeName = e, [o, j2(r, ...t)];
31548
+ return r.scopeName = e, [o, z2(r, ...t)];
31547
31549
  }
31548
- function j2(...e) {
31550
+ function z2(...e) {
31549
31551
  const t = e[0];
31550
31552
  if (e.length === 1) return t;
31551
31553
  const n = () => {
@@ -31563,7 +31565,7 @@ function j2(...e) {
31563
31565
  };
31564
31566
  return n.scopeName = t.scopeName, n;
31565
31567
  }
31566
- var M2 = [
31568
+ var j2 = [
31567
31569
  "a",
31568
31570
  "button",
31569
31571
  "div",
@@ -31581,29 +31583,29 @@ var M2 = [
31581
31583
  "span",
31582
31584
  "svg",
31583
31585
  "ul"
31584
- ], jd = M2.reduce((e, t) => {
31586
+ ], jd = j2.reduce((e, t) => {
31585
31587
  const n = /* @__PURE__ */ WS(`Primitive.${t}`), o = _.forwardRef((r, i) => {
31586
31588
  const { asChild: a, ...s } = r, u = a ? n : t;
31587
31589
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ g(u, { ...s, ref: i });
31588
31590
  });
31589
31591
  return o.displayName = `Primitive.${t}`, { ...e, [t]: o };
31590
31592
  }, {});
31591
- function D2() {
31593
+ function M2() {
31592
31594
  return a1.useSyncExternalStore(
31593
- U2,
31595
+ D2,
31594
31596
  () => !0,
31595
31597
  () => !1
31596
31598
  );
31597
31599
  }
31598
- function U2() {
31600
+ function D2() {
31599
31601
  return () => {
31600
31602
  };
31601
31603
  }
31602
- var Md = "Avatar", [L2] = z2(Md), [Z2, P0] = L2(Md), C0 = _.forwardRef(
31604
+ var Md = "Avatar", [U2] = R2(Md), [L2, P0] = U2(Md), C0 = _.forwardRef(
31603
31605
  (e, t) => {
31604
31606
  const { __scopeAvatar: n, ...o } = e, [r, i] = _.useState("idle");
31605
31607
  return /* @__PURE__ */ g(
31606
- Z2,
31608
+ L2,
31607
31609
  {
31608
31610
  scope: n,
31609
31611
  imageLoadingStatus: r,
@@ -31617,7 +31619,7 @@ C0.displayName = Md;
31617
31619
  var A0 = "AvatarImage", R0 = _.forwardRef(
31618
31620
  (e, t) => {
31619
31621
  const { __scopeAvatar: n, src: o, onLoadingStatusChange: r = () => {
31620
- }, ...i } = e, a = P0(A0, n), s = F2(o, i), u = Ar((l) => {
31622
+ }, ...i } = e, a = P0(A0, n), s = Z2(o, i), u = Ar((l) => {
31621
31623
  r(l), a.onImageLoadingStatusChange(l);
31622
31624
  });
31623
31625
  return dt(() => {
@@ -31641,8 +31643,8 @@ j0.displayName = z0;
31641
31643
  function Sm(e, t) {
31642
31644
  return e ? t ? (e.src !== t && (e.src = t), e.complete && e.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
31643
31645
  }
31644
- function F2(e, { referrerPolicy: t, crossOrigin: n }) {
31645
- const o = D2(), r = _.useRef(null), i = o ? (r.current || (r.current = new window.Image()), r.current) : null, [a, s] = _.useState(
31646
+ function Z2(e, { referrerPolicy: t, crossOrigin: n }) {
31647
+ const o = M2(), r = _.useRef(null), i = o ? (r.current || (r.current = new window.Image()), r.current) : null, [a, s] = _.useState(
31646
31648
  () => Sm(i, e)
31647
31649
  );
31648
31650
  return dt(() => {
@@ -31658,13 +31660,13 @@ function F2(e, { referrerPolicy: t, crossOrigin: n }) {
31658
31660
  };
31659
31661
  }, [i, n, t]), a;
31660
31662
  }
31661
- var q2 = C0, V2 = R0, B2 = j0;
31662
- function J2({
31663
+ var F2 = C0, q2 = R0, V2 = j0;
31664
+ function B2({
31663
31665
  className: e,
31664
31666
  ...t
31665
31667
  }) {
31666
31668
  return /* @__PURE__ */ g(
31667
- q2,
31669
+ F2,
31668
31670
  {
31669
31671
  "data-slot": "avatar",
31670
31672
  className: R(
@@ -31675,12 +31677,12 @@ function J2({
31675
31677
  }
31676
31678
  );
31677
31679
  }
31678
- function W2({
31680
+ function J2({
31679
31681
  className: e,
31680
31682
  ...t
31681
31683
  }) {
31682
31684
  return /* @__PURE__ */ g(
31683
- V2,
31685
+ q2,
31684
31686
  {
31685
31687
  "data-slot": "avatar-image",
31686
31688
  className: R("aspect-square size-full", e),
@@ -31688,12 +31690,12 @@ function W2({
31688
31690
  }
31689
31691
  );
31690
31692
  }
31691
- function H2({
31693
+ function W2({
31692
31694
  className: e,
31693
31695
  ...t
31694
31696
  }) {
31695
31697
  return /* @__PURE__ */ g(
31696
- B2,
31698
+ V2,
31697
31699
  {
31698
31700
  "data-slot": "avatar-fallback",
31699
31701
  className: R(
@@ -31704,7 +31706,7 @@ function H2({
31704
31706
  }
31705
31707
  );
31706
31708
  }
31707
- const G2 = (e) => {
31709
+ const H2 = (e) => {
31708
31710
  const [t, n] = Ie(void 0);
31709
31711
  return kt(() => {
31710
31712
  if (!e) {
@@ -31725,8 +31727,8 @@ const G2 = (e) => {
31725
31727
  return o ? { src: o } : {};
31726
31728
  })
31727
31729
  );
31728
- return G2(e) ?? t;
31729
- }, K2 = ({ src: e }) => {
31730
+ return H2(e) ?? t;
31731
+ }, G2 = ({ src: e }) => {
31730
31732
  const [t, n] = Ie(!1);
31731
31733
  return /* @__PURE__ */ g(
31732
31734
  "img",
@@ -31737,36 +31739,36 @@ const G2 = (e) => {
31737
31739
  onLoad: () => n(!0)
31738
31740
  }
31739
31741
  );
31740
- }, Y2 = ({ children: e }) => {
31742
+ }, K2 = ({ children: e }) => {
31741
31743
  const t = M0();
31742
- return t ? /* @__PURE__ */ U(O2, { children: [
31744
+ return t ? /* @__PURE__ */ U(T2, { children: [
31743
31745
  /* @__PURE__ */ g(
31744
- N2,
31746
+ O2,
31745
31747
  {
31746
31748
  className: "aui-attachment-preview-trigger hover:bg-accent/50 cursor-pointer transition-colors",
31747
31749
  asChild: !0,
31748
31750
  children: e
31749
31751
  }
31750
31752
  ),
31751
- /* @__PURE__ */ U(A2, { className: "aui-attachment-preview-dialog-content [&_svg]:text-background [&>button]:bg-foreground/60 [&>button]:hover:[&_svg]:text-destructive p-2 sm:max-w-3xl [&>button]:rounded-full [&>button]:p-1 [&>button]:opacity-100 [&>button]:!ring-0", children: [
31752
- /* @__PURE__ */ g(R2, { className: "aui-sr-only sr-only", children: "Image Attachment Preview" }),
31753
- /* @__PURE__ */ g("div", { className: "aui-attachment-preview bg-background relative mx-auto flex max-h-[80dvh] w-full items-center justify-center overflow-hidden", children: /* @__PURE__ */ g(K2, { src: t }) })
31753
+ /* @__PURE__ */ U(C2, { className: "aui-attachment-preview-dialog-content [&_svg]:text-background [&>button]:bg-foreground/60 [&>button]:hover:[&_svg]:text-destructive p-2 sm:max-w-3xl [&>button]:rounded-full [&>button]:p-1 [&>button]:opacity-100 [&>button]:!ring-0", children: [
31754
+ /* @__PURE__ */ g(A2, { className: "aui-sr-only sr-only", children: "Image Attachment Preview" }),
31755
+ /* @__PURE__ */ g("div", { className: "aui-attachment-preview bg-background relative mx-auto flex max-h-[80dvh] w-full items-center justify-center overflow-hidden", children: /* @__PURE__ */ g(G2, { src: t }) })
31754
31756
  ] })
31755
31757
  ] }) : e;
31756
- }, Q2 = () => {
31758
+ }, Y2 = () => {
31757
31759
  const e = Tt(
31758
31760
  ({ attachment: n }) => n.type === "image"
31759
31761
  ), t = M0();
31760
- return /* @__PURE__ */ U(J2, { className: "aui-attachment-tile-avatar h-full w-full rounded-none", children: [
31762
+ return /* @__PURE__ */ U(B2, { className: "aui-attachment-tile-avatar h-full w-full rounded-none", children: [
31761
31763
  /* @__PURE__ */ g(
31762
- W2,
31764
+ J2,
31763
31765
  {
31764
31766
  src: t,
31765
31767
  alt: "Attachment preview",
31766
31768
  className: "aui-attachment-tile-image object-cover"
31767
31769
  }
31768
31770
  ),
31769
- /* @__PURE__ */ g(H2, { delayMs: e ? 200 : 0, children: /* @__PURE__ */ g(EI, { className: "aui-attachment-tile-fallback-icon text-muted-foreground size-8" }) })
31771
+ /* @__PURE__ */ g(W2, { delayMs: e ? 200 : 0, children: /* @__PURE__ */ g(EI, { className: "aui-attachment-tile-fallback-icon text-muted-foreground size-8" }) })
31770
31772
  ] });
31771
31773
  }, D0 = () => {
31772
31774
  const t = km().attachment.source === "composer", n = Tt(
@@ -31795,7 +31797,7 @@ const G2 = (e) => {
31795
31797
  n && "aui-attachment-root-composer only:[&>#attachment-tile]:size-24"
31796
31798
  ),
31797
31799
  children: [
31798
- /* @__PURE__ */ g(Y2, { children: /* @__PURE__ */ g(Id, { asChild: !0, children: /* @__PURE__ */ g(
31800
+ /* @__PURE__ */ g(K2, { children: /* @__PURE__ */ g(Id, { asChild: !0, children: /* @__PURE__ */ g(
31799
31801
  "div",
31800
31802
  {
31801
31803
  className: R(
@@ -31805,16 +31807,16 @@ const G2 = (e) => {
31805
31807
  role: "button",
31806
31808
  id: "attachment-tile",
31807
31809
  "aria-label": `${o} attachment`,
31808
- children: /* @__PURE__ */ g(Q2, {})
31810
+ children: /* @__PURE__ */ g(Y2, {})
31809
31811
  }
31810
31812
  ) }) }),
31811
- t && /* @__PURE__ */ g(X2, {})
31813
+ t && /* @__PURE__ */ g(Q2, {})
31812
31814
  ]
31813
31815
  }
31814
31816
  ),
31815
31817
  /* @__PURE__ */ g(kd, { side: "top", children: /* @__PURE__ */ g(ul.Name, {}) })
31816
31818
  ] });
31817
- }, X2 = () => /* @__PURE__ */ g(ul.Remove, { asChild: !0, children: /* @__PURE__ */ g(
31819
+ }, Q2 = () => /* @__PURE__ */ g(ul.Remove, { asChild: !0, children: /* @__PURE__ */ g(
31818
31820
  pt,
31819
31821
  {
31820
31822
  tooltip: "Remove file",
@@ -31822,12 +31824,12 @@ const G2 = (e) => {
31822
31824
  side: "top",
31823
31825
  children: /* @__PURE__ */ g(mo, { className: "aui-attachment-remove-icon size-3 dark:stroke-[2.5px]" })
31824
31826
  }
31825
- ) }), eL = () => /* @__PURE__ */ g("div", { className: "aui-user-message-attachments-end col-span-full col-start-1 row-start-1 flex w-full flex-row justify-end gap-2", children: /* @__PURE__ */ g(pr.Attachments, { components: { Attachment: D0 } }) }), tL = () => /* @__PURE__ */ g("div", { className: "aui-composer-attachments mb-2 flex w-full flex-row items-center gap-2 overflow-x-auto px-1.5 pt-0.5 pb-1 empty:hidden", children: /* @__PURE__ */ g(
31827
+ ) }), X2 = () => /* @__PURE__ */ g("div", { className: "aui-user-message-attachments-end col-span-full col-start-1 row-start-1 flex w-full flex-row justify-end gap-2", children: /* @__PURE__ */ g(pr.Attachments, { components: { Attachment: D0 } }) }), eL = () => /* @__PURE__ */ g("div", { className: "aui-composer-attachments mb-2 flex w-full flex-row items-center gap-2 overflow-x-auto px-1.5 pt-0.5 pb-1 empty:hidden", children: /* @__PURE__ */ g(
31826
31828
  Mt.Attachments,
31827
31829
  {
31828
31830
  components: { Attachment: D0 }
31829
31831
  }
31830
- ) }), rL = () => /* @__PURE__ */ g(Mt.AddAttachment, { asChild: !0, children: /* @__PURE__ */ g(
31832
+ ) }), tL = () => /* @__PURE__ */ g(Mt.AddAttachment, { asChild: !0, children: /* @__PURE__ */ g(
31831
31833
  pt,
31832
31834
  {
31833
31835
  tooltip: "Add Attachment",
@@ -31840,7 +31842,7 @@ const G2 = (e) => {
31840
31842
  children: /* @__PURE__ */ g(FI, { className: "aui-attachment-add-icon size-5 stroke-[1.5px]" })
31841
31843
  }
31842
31844
  ) }), Dd = () => {
31843
- const { config: e } = We(), t = e.theme ?? {};
31845
+ const { config: e } = Ke(), t = e.theme ?? {};
31844
31846
  return fr(() => {
31845
31847
  const { colorScheme: n = "light" } = t;
31846
31848
  return {
@@ -31848,18 +31850,18 @@ const G2 = (e) => {
31848
31850
  };
31849
31851
  }, [t]);
31850
31852
  }, dr = [0.23, 1, 0.32, 1];
31851
- function nL(e) {
31853
+ function rL(e) {
31852
31854
  return e.replace(/[-_]/g, " ").split(/(?=[A-Z])/).join(" ").split(/\s+/).map((t) => t.charAt(0).toUpperCase() + t.slice(1).toLowerCase()).join(" ");
31853
31855
  }
31854
- const oL = ({ children: e }) => {
31856
+ const nL = ({ children: e }) => {
31855
31857
  const t = Tt(({ message: s }) => s).parts, n = t.filter((s) => s.type === "tool-call"), o = n.some(
31856
31858
  (s) => s.status?.type === "running"
31857
- ), { config: r } = We(), i = r.tools?.expandToolGroupsByDefault ?? !1, a = fr(() => {
31859
+ ), { config: r } = Ke(), i = r.tools?.expandToolGroupsByDefault ?? !1, a = fr(() => {
31858
31860
  const s = t.filter((u) => u.type === "tool-call");
31859
- return s.length === 0 ? "No tools called" : s.length === 1 ? `Calling ${nL(s[0].toolName)}...` : o ? `Calling ${s.length} tools...` : `Executed ${s.length} tools`;
31861
+ return s.length === 0 ? "No tools called" : s.length === 1 ? `Calling ${rL(s[0].toolName)}...` : o ? `Calling ${s.length} tools...` : `Executed ${s.length} tools`;
31860
31862
  }, [t, o]);
31861
31863
  return r.tools?.components?.[n[0]?.toolName] ? e : n.length === 1 ? /* @__PURE__ */ g("div", { className: R("my-4 w-full max-w-xl"), children: /* @__PURE__ */ g("div", { className: "border-border bg-card overflow-hidden rounded-lg border", children: e }) }) : /* @__PURE__ */ g("div", { className: "my-4 w-full max-w-xl", children: /* @__PURE__ */ g(
31862
- X6,
31864
+ Q6,
31863
31865
  {
31864
31866
  title: a,
31865
31867
  status: o ? "running" : "complete",
@@ -31868,7 +31870,7 @@ const oL = ({ children: e }) => {
31868
31870
  }
31869
31871
  ) });
31870
31872
  }, Ud = () => {
31871
- const e = Dd(), t = po(), { config: n } = We(), o = n.components ?? {};
31873
+ const e = Dd(), t = po(), { config: n } = Ke(), o = n.components ?? {};
31872
31874
  return /* @__PURE__ */ g(Xl, { features: oI, children: /* @__PURE__ */ g(Om, { reducedMotion: "user", children: /* @__PURE__ */ g(
31873
31875
  Wt.Root,
31874
31876
  {
@@ -31884,25 +31886,25 @@ const oL = ({ children: e }) => {
31884
31886
  t("p-lg")
31885
31887
  ),
31886
31888
  children: [
31887
- /* @__PURE__ */ g(Wt.If, { empty: !0, children: o.ThreadWelcome ? /* @__PURE__ */ g(o.ThreadWelcome, {}) : /* @__PURE__ */ g(aL, {}) }),
31889
+ /* @__PURE__ */ g(Wt.If, { empty: !0, children: o.ThreadWelcome ? /* @__PURE__ */ g(o.ThreadWelcome, {}) : /* @__PURE__ */ g(iL, {}) }),
31888
31890
  /* @__PURE__ */ g(
31889
31891
  Wt.Messages,
31890
31892
  {
31891
31893
  components: {
31892
- UserMessage: o.UserMessage ?? hL,
31893
- EditComposer: o.EditComposer ?? vL,
31894
- AssistantMessage: o.AssistantMessage ?? pL
31894
+ UserMessage: o.UserMessage ?? mL,
31895
+ EditComposer: o.EditComposer ?? gL,
31896
+ AssistantMessage: o.AssistantMessage ?? dL
31895
31897
  }
31896
31898
  }
31897
31899
  ),
31898
31900
  /* @__PURE__ */ g(Wt.If, { empty: !1, children: /* @__PURE__ */ g("div", { className: "aui-thread-viewport-spacer min-h-8 grow" }) }),
31899
- /* @__PURE__ */ g(lL, {})
31901
+ /* @__PURE__ */ g(sL, {})
31900
31902
  ]
31901
31903
  }
31902
31904
  )
31903
31905
  }
31904
31906
  ) }) });
31905
- }, iL = () => /* @__PURE__ */ g(Wt.ScrollToBottom, { asChild: !0, children: /* @__PURE__ */ g(
31907
+ }, oL = () => /* @__PURE__ */ g(Wt.ScrollToBottom, { asChild: !0, children: /* @__PURE__ */ g(
31906
31908
  pt,
31907
31909
  {
31908
31910
  tooltip: "Scroll to bottom",
@@ -31910,8 +31912,8 @@ const oL = ({ children: e }) => {
31910
31912
  className: "aui-thread-scroll-to-bottom dark:bg-background dark:hover:bg-accent absolute -top-12 z-10 self-center rounded-full p-4 disabled:invisible",
31911
31913
  children: /* @__PURE__ */ g(hI, {})
31912
31914
  }
31913
- ) }), aL = () => {
31914
- const { config: e } = We(), t = po(), { title: n, subtitle: o } = e.welcome ?? {}, r = e.variant === "standalone";
31915
+ ) }), iL = () => {
31916
+ const { config: e } = Ke(), t = po(), { title: n, subtitle: o } = e.welcome ?? {}, r = e.variant === "standalone";
31915
31917
  return /* @__PURE__ */ U(
31916
31918
  "div",
31917
31919
  {
@@ -31945,7 +31947,7 @@ const oL = ({ children: e }) => {
31945
31947
  exit: { opacity: 0, y: 10 },
31946
31948
  transition: { duration: 0.25, ease: dr },
31947
31949
  className: R(
31948
- "aui-thread-welcome-message-motion-1 font-semibold",
31950
+ "aui-thread-welcome-message-motion-1 text-foreground font-semibold",
31949
31951
  t("text-title")
31950
31952
  ),
31951
31953
  children: n
@@ -31970,22 +31972,22 @@ const oL = ({ children: e }) => {
31970
31972
  )
31971
31973
  }
31972
31974
  ),
31973
- /* @__PURE__ */ g(sL, {})
31975
+ /* @__PURE__ */ g(aL, {})
31974
31976
  ]
31975
31977
  }
31976
31978
  );
31977
- }, sL = () => {
31978
- const { config: e, isLoadingMCPTools: t } = We(), n = fo(), o = po(), r = e.welcome?.suggestions ?? [], i = e.variant === "standalone";
31979
- return r.length === 0 ? null : /* @__PURE__ */ g(
31979
+ }, aL = () => {
31980
+ const { config: e } = Ke(), t = fo(), n = po(), o = e.welcome?.suggestions ?? [], r = e.variant === "standalone";
31981
+ return o.length === 0 ? null : /* @__PURE__ */ g(
31980
31982
  "div",
31981
31983
  {
31982
31984
  className: R(
31983
31985
  "aui-thread-welcome-suggestions w-full",
31984
- o("gap-md"),
31985
- o("py-lg"),
31986
- i ? "flex flex-wrap items-center justify-center" : r.length === 1 ? "flex" : "grid max-w-fit @md:grid-cols-2"
31986
+ n("gap-md"),
31987
+ n("py-lg"),
31988
+ r ? "flex flex-wrap items-center justify-center" : o.length === 1 ? "flex" : "grid max-w-fit @md:grid-cols-2"
31987
31989
  ),
31988
- children: r.map((a, s) => /* @__PURE__ */ g(
31990
+ children: o.map((i, a) => /* @__PURE__ */ g(
31989
31991
  Ht.div,
31990
31992
  {
31991
31993
  initial: { opacity: 0, y: 20 },
@@ -31993,48 +31995,39 @@ const oL = ({ children: e }) => {
31993
31995
  exit: { opacity: 0, y: 20 },
31994
31996
  transition: {
31995
31997
  duration: 0.25,
31996
- delay: 0.03 * s,
31998
+ delay: 0.03 * a,
31997
31999
  ease: dr
31998
32000
  },
31999
32001
  className: R(
32000
32002
  "aui-thread-welcome-suggestion-display",
32001
- !i && "nth-[n+3]:hidden @md:nth-[n+3]:block"
32003
+ !r && "nth-[n+3]:hidden @md:nth-[n+3]:block"
32002
32004
  ),
32003
- children: /* @__PURE__ */ g(
32004
- Wt.Suggestion,
32005
+ children: /* @__PURE__ */ g(Wt.Suggestion, { prompt: i.action, send: !0, asChild: !0, children: /* @__PURE__ */ U(
32006
+ Et,
32005
32007
  {
32006
- disabled: t,
32007
- prompt: a.action,
32008
- send: !0,
32009
- asChild: !0,
32010
- children: /* @__PURE__ */ U(
32011
- Et,
32012
- {
32013
- variant: "ghost",
32014
- className: R(
32015
- "aui-thread-welcome-suggestion dark:hover:bg-accent/60 h-auto w-full border text-left whitespace-break-spaces",
32016
- o("text-base"),
32017
- i ? `flex-row items-center ${o("gap-sm")} ${o("px-md")} ${o("py-sm")} ${n("full")}` : `w-full flex-1 flex-col flex-wrap items-start justify-start ${o("gap-sm")} ${o("px-lg")} ${o("py-md")} ${n("xl")}`
32018
- ),
32019
- "aria-label": a.action,
32020
- children: [
32021
- /* @__PURE__ */ g("span", { className: "aui-thread-welcome-suggestion-text-1 text-sm font-medium", children: a.title }),
32022
- /* @__PURE__ */ g("span", { className: "aui-thread-welcome-suggestion-text-2 text-muted-foreground text-sm", children: a.label })
32023
- ]
32024
- }
32025
- )
32008
+ variant: "ghost",
32009
+ className: R(
32010
+ "aui-thread-welcome-suggestion dark:hover:bg-accent/60 h-auto w-full border text-left whitespace-break-spaces",
32011
+ n("text-base"),
32012
+ r ? `flex-row items-center ${n("gap-sm")} ${n("px-md")} ${n("py-sm")} ${t("full")}` : `w-full flex-1 flex-col flex-wrap items-start justify-start ${n("gap-sm")} ${n("px-lg")} ${n("py-md")} ${t("xl")}`
32013
+ ),
32014
+ "aria-label": i.action,
32015
+ children: [
32016
+ /* @__PURE__ */ g("span", { className: "aui-thread-welcome-suggestion-text-1 text-foreground text-sm font-medium", children: i.title }),
32017
+ /* @__PURE__ */ g("span", { className: "aui-thread-welcome-suggestion-text-2 text-muted-foreground text-sm", children: i.label })
32018
+ ]
32026
32019
  }
32027
- )
32020
+ ) })
32028
32021
  },
32029
- `suggested-action-${a.title}-${s}`
32022
+ `suggested-action-${i.title}-${a}`
32030
32023
  ))
32031
32024
  }
32032
32025
  );
32033
- }, lL = () => {
32034
- const { config: e } = We(), t = fo(), n = po(), o = e.composer ?? {
32026
+ }, sL = () => {
32027
+ const { config: e } = Ke(), t = fo(), n = po(), o = e.composer ?? {
32035
32028
  placeholder: "Send a message...",
32036
32029
  attachments: !0
32037
- }, r = e.components ?? {}, { isLoadingMCPTools: i } = We();
32030
+ }, r = e.components ?? {};
32038
32031
  return r.Composer ? /* @__PURE__ */ g(r.Composer, {}) : /* @__PURE__ */ U(
32039
32032
  "div",
32040
32033
  {
@@ -32045,7 +32038,7 @@ const oL = ({ children: e }) => {
32045
32038
  t("xl")
32046
32039
  ),
32047
32040
  children: [
32048
- /* @__PURE__ */ g(iL, {}),
32041
+ /* @__PURE__ */ g(oL, {}),
32049
32042
  /* @__PURE__ */ U(
32050
32043
  Mt.Root,
32051
32044
  {
@@ -32054,7 +32047,7 @@ const oL = ({ children: e }) => {
32054
32047
  t("xl")
32055
32048
  ),
32056
32049
  children: [
32057
- o.attachments && /* @__PURE__ */ g(tL, {}),
32050
+ o.attachments && /* @__PURE__ */ g(eL, {}),
32058
32051
  /* @__PURE__ */ g(
32059
32052
  Mt.Input,
32060
32053
  {
@@ -32066,19 +32059,18 @@ const oL = ({ children: e }) => {
32066
32059
  ),
32067
32060
  rows: 1,
32068
32061
  autoFocus: !0,
32069
- disabled: i,
32070
32062
  "aria-label": "Message input"
32071
32063
  }
32072
32064
  ),
32073
- /* @__PURE__ */ g(cL, {})
32065
+ /* @__PURE__ */ g(uL, {})
32074
32066
  ]
32075
32067
  }
32076
32068
  )
32077
32069
  ]
32078
32070
  }
32079
32071
  );
32080
- }, uL = () => {
32081
- const { model: e, setModel: t } = We(), [n, o] = Ie(!1), [r, i] = Ie(!1), a = Lt(null), s = Lt(0), u = Lt(!1);
32072
+ }, lL = () => {
32073
+ const { model: e, setModel: t } = Ke(), [n, o] = Ie(!1), [r, i] = Ie(!1), a = Lt(null), s = Lt(0), u = Lt(!1);
32082
32074
  return kt(() => {
32083
32075
  n && !u.current && requestAnimationFrame(() => {
32084
32076
  const c = a.current;
@@ -32135,12 +32127,12 @@ const oL = ({ children: e }) => {
32135
32127
  ] }),
32136
32128
  /* @__PURE__ */ g(kd, { side: "bottom", align: "start", children: "Model Settings" })
32137
32129
  ] }) });
32138
- }, cL = () => {
32139
- const { config: e } = We(), t = fo(), n = e.composer ?? { attachments: !0 };
32130
+ }, uL = () => {
32131
+ const { config: e } = Ke(), t = fo(), n = e.composer ?? { attachments: !0 };
32140
32132
  return /* @__PURE__ */ U("div", { className: "aui-composer-action-wrapper relative mx-1 mt-2 mb-2 flex items-center justify-between", children: [
32141
32133
  /* @__PURE__ */ U("div", { className: "aui-composer-action-wrapper-inner flex items-center", children: [
32142
- n.attachments ? /* @__PURE__ */ g(rL, {}) : /* @__PURE__ */ g("div", { className: "aui-composer-add-attachment-placeholder" }),
32143
- e.model?.showModelPicker && !e.languageModel && /* @__PURE__ */ g(uL, {})
32134
+ n.attachments ? /* @__PURE__ */ g(tL, {}) : /* @__PURE__ */ g("div", { className: "aui-composer-add-attachment-placeholder" }),
32135
+ e.model?.showModelPicker && !e.languageModel && /* @__PURE__ */ g(lL, {})
32144
32136
  ] }),
32145
32137
  /* @__PURE__ */ g(Wt.If, { running: !1, children: /* @__PURE__ */ g(Mt.Send, { asChild: !0, children: /* @__PURE__ */ g(
32146
32138
  pt,
@@ -32170,8 +32162,8 @@ const oL = ({ children: e }) => {
32170
32162
  }
32171
32163
  ) }) })
32172
32164
  ] });
32173
- }, dL = () => /* @__PURE__ */ g(pr.Error, { children: /* @__PURE__ */ g(Yd.Root, { className: "aui-message-error-root border-destructive bg-destructive/10 text-destructive dark:bg-destructive/5 mt-2 rounded-md border p-3 text-sm dark:text-red-200", children: /* @__PURE__ */ g(Yd.Message, { className: "aui-message-error-message line-clamp-2" }) }) }), pL = () => {
32174
- const { config: e } = We(), t = e.tools ?? {}, n = e.components ?? {};
32165
+ }, cL = () => /* @__PURE__ */ g(pr.Error, { children: /* @__PURE__ */ g(Yd.Root, { className: "aui-message-error-root border-destructive bg-destructive/10 text-destructive dark:bg-destructive/5 mt-2 rounded-md border p-3 text-sm dark:text-red-200", children: /* @__PURE__ */ g(Yd.Message, { className: "aui-message-error-message line-clamp-2" }) }) }), dL = () => {
32166
+ const { config: e } = Ke(), t = e.tools ?? {}, n = e.components ?? {};
32175
32167
  return /* @__PURE__ */ g(pr.Root, { asChild: !0, children: /* @__PURE__ */ U(
32176
32168
  "div",
32177
32169
  {
@@ -32184,27 +32176,27 @@ const oL = ({ children: e }) => {
32184
32176
  {
32185
32177
  components: {
32186
32178
  Text: n.Text ?? Rx,
32187
- Image: n.Image ?? fL,
32179
+ Image: n.Image ?? pL,
32188
32180
  tools: {
32189
32181
  by_name: t.components,
32190
- Fallback: n.ToolFallback ?? e2
32182
+ Fallback: n.ToolFallback ?? X6
32191
32183
  },
32192
32184
  Reasoning: n.Reasoning ?? m0,
32193
32185
  ReasoningGroup: n.ReasoningGroup ?? h0,
32194
- ToolGroup: n.ToolGroup ?? oL
32186
+ ToolGroup: n.ToolGroup ?? nL
32195
32187
  }
32196
32188
  }
32197
32189
  ),
32198
- /* @__PURE__ */ g(dL, {})
32190
+ /* @__PURE__ */ g(cL, {})
32199
32191
  ] }),
32200
32192
  /* @__PURE__ */ U("div", { className: "aui-assistant-message-footer mt-2 ml-2 flex", children: [
32201
32193
  /* @__PURE__ */ g(U0, {}),
32202
- /* @__PURE__ */ g(mL, {})
32194
+ /* @__PURE__ */ g(fL, {})
32203
32195
  ] })
32204
32196
  ]
32205
32197
  }
32206
32198
  ) });
32207
- }, fL = (e) => /* @__PURE__ */ g("img", { src: e.image }), mL = () => /* @__PURE__ */ U(
32199
+ }, pL = (e) => /* @__PURE__ */ g("img", { src: e.image }), fL = () => /* @__PURE__ */ U(
32208
32200
  Un.Root,
32209
32201
  {
32210
32202
  hideWhenRunning: !0,
@@ -32219,7 +32211,7 @@ const oL = ({ children: e }) => {
32219
32211
  /* @__PURE__ */ g(Un.Reload, { asChild: !0, children: /* @__PURE__ */ g(pt, { tooltip: "Refresh", children: /* @__PURE__ */ g(VI, {}) }) })
32220
32212
  ]
32221
32213
  }
32222
- ), hL = () => {
32214
+ ), mL = () => {
32223
32215
  const e = fo();
32224
32216
  return /* @__PURE__ */ g(pr.Root, { asChild: !0, children: /* @__PURE__ */ U(
32225
32217
  "div",
@@ -32227,7 +32219,7 @@ const oL = ({ children: e }) => {
32227
32219
  className: "aui-user-message-root animate-in fade-in slide-in-from-bottom-1 mx-auto grid w-full auto-rows-auto grid-cols-[minmax(72px,1fr)_auto] gap-y-2 px-2 py-4 duration-150 ease-out first:mt-3 last:mb-5 [&:where(>*)]:col-start-2",
32228
32220
  "data-role": "user",
32229
32221
  children: [
32230
- /* @__PURE__ */ g(eL, {}),
32222
+ /* @__PURE__ */ g(X2, {}),
32231
32223
  /* @__PURE__ */ U("div", { className: "aui-user-message-content-wrapper relative col-start-2 min-w-0", children: [
32232
32224
  /* @__PURE__ */ g(
32233
32225
  "div",
@@ -32239,13 +32231,13 @@ const oL = ({ children: e }) => {
32239
32231
  children: /* @__PURE__ */ g(pr.Parts, {})
32240
32232
  }
32241
32233
  ),
32242
- /* @__PURE__ */ g("div", { className: "aui-user-action-bar-wrapper absolute top-1/2 left-0 -translate-x-full -translate-y-1/2 pr-2", children: /* @__PURE__ */ g(gL, {}) })
32234
+ /* @__PURE__ */ g("div", { className: "aui-user-action-bar-wrapper absolute top-1/2 left-0 -translate-x-full -translate-y-1/2 pr-2", children: /* @__PURE__ */ g(hL, {}) })
32243
32235
  ] }),
32244
32236
  /* @__PURE__ */ g(U0, { className: "aui-user-branch-picker col-span-full col-start-1 row-start-3 -mr-1 justify-end" })
32245
32237
  ]
32246
32238
  }
32247
32239
  ) });
32248
- }, gL = () => /* @__PURE__ */ g(
32240
+ }, hL = () => /* @__PURE__ */ g(
32249
32241
  Un.Root,
32250
32242
  {
32251
32243
  hideWhenRunning: !0,
@@ -32253,7 +32245,7 @@ const oL = ({ children: e }) => {
32253
32245
  className: "aui-user-action-bar-root flex flex-col items-end",
32254
32246
  children: /* @__PURE__ */ g(Un.Edit, { asChild: !0, children: /* @__PURE__ */ g(pt, { tooltip: "Edit", className: "aui-user-action-edit p-4", children: /* @__PURE__ */ g(LI, {}) }) })
32255
32247
  }
32256
- ), vL = () => /* @__PURE__ */ g("div", { className: "aui-edit-composer-wrapper mx-auto flex w-full flex-col gap-4 px-2 first:mt-4", children: /* @__PURE__ */ U(Mt.Root, { className: "aui-edit-composer-root bg-muted ml-auto flex w-full max-w-7/8 flex-col rounded-xl", children: [
32248
+ ), gL = () => /* @__PURE__ */ g("div", { className: "aui-edit-composer-wrapper mx-auto flex w-full flex-col gap-4 px-2 first:mt-4", children: /* @__PURE__ */ U(Mt.Root, { className: "aui-edit-composer-root bg-muted ml-auto flex w-full max-w-7/8 flex-col rounded-xl", children: [
32257
32249
  /* @__PURE__ */ g(
32258
32250
  Mt.Input,
32259
32251
  {
@@ -32288,20 +32280,20 @@ const oL = ({ children: e }) => {
32288
32280
  ]
32289
32281
  }
32290
32282
  ), L0 = () => {
32291
- const { config: e, isExpanded: t, setIsExpanded: n } = We(), o = e.modal?.defaultExpanded ?? !1;
32283
+ const { config: e, isExpanded: t, setIsExpanded: n } = Ke(), o = e.modal?.defaultExpanded ?? !1;
32292
32284
  return {
32293
32285
  expandable: e.modal?.expandable ?? !1,
32294
32286
  isExpanded: t,
32295
32287
  setIsExpanded: n,
32296
32288
  defaultExpanded: o
32297
32289
  };
32298
- }, yL = {
32290
+ }, vL = {
32299
32291
  layout: {
32300
32292
  duration: 0.25,
32301
32293
  ease: dr
32302
32294
  }
32303
- }, bL = () => {
32304
- const { config: e } = We(), t = Dd(), n = fo(), o = po(), [r, i] = Ie(e.modal?.defaultOpen ?? !1), { expandable: a, isExpanded: s, setIsExpanded: u } = L0(), l = e.modal?.title, c = e.modal?.icon, d = e.modal?.position ?? "bottom-right", f = _L(d), p = fr(
32295
+ }, yL = () => {
32296
+ const { config: e } = Ke(), t = Dd(), n = fo(), o = po(), [r, i] = Ie(e.modal?.defaultOpen ?? !1), { expandable: a, isExpanded: s, setIsExpanded: u } = L0(), l = e.modal?.title, c = e.modal?.icon, d = e.modal?.position ?? "bottom-right", f = bL(d), p = fr(
32305
32297
  () => e.modal?.dimensions?.default ?? {
32306
32298
  width: "500px",
32307
32299
  height: "600px",
@@ -32317,7 +32309,7 @@ const oL = ({ children: e }) => {
32317
32309
  ), b = Tt(({ thread: v }) => v).messages.some(
32318
32310
  (v) => v.status?.type === "running"
32319
32311
  ), y = s ? h.width : p.width, $ = s ? h.height : p.height, S = p.maxHeight;
32320
- return /* @__PURE__ */ g(Xl, { features: Nm, children: /* @__PURE__ */ g(Om, { reducedMotion: "user", transition: yL, children: /* @__PURE__ */ g(
32312
+ return /* @__PURE__ */ g(Xl, { features: Nm, children: /* @__PURE__ */ g(Om, { reducedMotion: "user", transition: vL, children: /* @__PURE__ */ g(
32321
32313
  "div",
32322
32314
  {
32323
32315
  className: R(
@@ -32468,7 +32460,7 @@ const oL = ({ children: e }) => {
32468
32460
  }
32469
32461
  ) }) });
32470
32462
  };
32471
- function _L(e) {
32463
+ function bL(e) {
32472
32464
  switch (e) {
32473
32465
  case "bottom-left":
32474
32466
  return "left-4 bottom-4";
@@ -32482,8 +32474,8 @@ function _L(e) {
32482
32474
  Im(e);
32483
32475
  }
32484
32476
  }
32485
- const wL = () => {
32486
- const { config: e } = We(), t = Dd(), n = e.sidecar ?? {}, { title: o, dimensions: r } = n, { isExpanded: i, setIsExpanded: a } = L0(), u = Tt(({ thread: l }) => l).messages.some(
32477
+ const _L = () => {
32478
+ const { config: e } = Ke(), t = Dd(), n = e.sidecar ?? {}, { title: o, dimensions: r } = n, { isExpanded: i, setIsExpanded: a } = L0(), u = Tt(({ thread: l }) => l).messages.some(
32487
32479
  (l) => l.status?.type === "running"
32488
32480
  );
32489
32481
  return /* @__PURE__ */ g(Xl, { features: Nm, children: /* @__PURE__ */ U(
@@ -32529,23 +32521,23 @@ const wL = () => {
32529
32521
  ]
32530
32522
  }
32531
32523
  ) });
32532
- }, BL = () => {
32533
- const { config: e } = We();
32524
+ }, VL = () => {
32525
+ const { config: e } = Ke();
32534
32526
  switch (e.variant) {
32535
32527
  case "standalone":
32536
32528
  return /* @__PURE__ */ g(Ud, {});
32537
32529
  case "sidecar":
32538
- return /* @__PURE__ */ g(wL, {});
32530
+ return /* @__PURE__ */ g(_L, {});
32539
32531
  case "widget":
32540
- return /* @__PURE__ */ g(bL, {});
32532
+ return /* @__PURE__ */ g(yL, {});
32541
32533
  default:
32542
32534
  Im(e.variant);
32543
32535
  }
32544
32536
  };
32545
32537
  export {
32546
- BL as Chat,
32547
- qL as GramElementsProvider,
32538
+ VL as Chat,
32539
+ FL as GramElementsProvider,
32548
32540
  Cm as MODELS,
32549
- FL as defineFrontendTool,
32550
- We as useGramElements
32541
+ ZL as defineFrontendTool,
32542
+ Ke as useGramElements
32551
32543
  };