@agentatom/design-system 1.4.84 → 1.4.86

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/index.es.js CHANGED
@@ -1,14 +1,14 @@
1
- import X, { useMemo as ut, useContext as ae, createContext as De, useState as L, useRef as I, useEffect as z, useLayoutEffect as ft, forwardRef as rt, useCallback as de } from "react";
2
- import { Check as Le, X as te, ChevronDown as we, Minus as mt, Plus as pt, XCircle as Pe, AlertTriangle as Me, CheckCircle as ze, Info as Fe, ChevronUp as ht, ChevronsUpDown as xt, ChevronLeft as vt, ChevronRight as bt, Copy as _t, Brain as jt, Loader as Nt, Paperclip as He, Square as gt, ArrowUp as wt, Zap as yt, Cpu as Ye, FileText as kt, ThumbsUp as Et, ThumbsDown as Tt } from "lucide-react";
3
- import oe from "react-dom";
4
- const U = {
1
+ import X, { useMemo as ht, useContext as ie, createContext as Le, useState as P, useRef as B, useEffect as F, useLayoutEffect as it, useId as xt, useCallback as te, forwardRef as lt } from "react";
2
+ import { Check as Pe, X as se, ChevronDown as we, Minus as vt, Plus as _t, XCircle as Me, AlertTriangle as ze, CheckCircle as Fe, Info as We, ChevronUp as bt, ChevronsUpDown as jt, ChevronLeft as gt, ChevronRight as Nt, Copy as wt, Brain as yt, Loader as kt, Paperclip as Ye, Square as Et, ArrowUp as Tt, Zap as $t, Cpu as qe, FileText as Rt, ThumbsUp as St, ThumbsDown as At } from "lucide-react";
3
+ import re from "react-dom";
4
+ const q = {
5
5
  1: 16,
6
6
  2: 20,
7
7
  3: 24,
8
8
  4: 28,
9
9
  5: 48
10
10
  };
11
- var Ie = { exports: {} }, Ne = {};
11
+ var Be = { exports: {} }, ge = {};
12
12
  /**
13
13
  * @license React
14
14
  * react-jsx-runtime.production.js
@@ -18,10 +18,10 @@ var Ie = { exports: {} }, Ne = {};
18
18
  * This source code is licensed under the MIT license found in the
19
19
  * LICENSE file in the root directory of this source tree.
20
20
  */
21
- var qe;
22
- function $t() {
23
- if (qe) return Ne;
24
- qe = 1;
21
+ var Ge;
22
+ function It() {
23
+ if (Ge) return ge;
24
+ Ge = 1;
25
25
  var t = Symbol.for("react.transitional.element"), s = Symbol.for("react.fragment");
26
26
  function n(a, r, o) {
27
27
  var i = null;
@@ -38,9 +38,9 @@ function $t() {
38
38
  props: o
39
39
  };
40
40
  }
41
- return Ne.Fragment = s, Ne.jsx = n, Ne.jsxs = n, Ne;
41
+ return ge.Fragment = s, ge.jsx = n, ge.jsxs = n, ge;
42
42
  }
43
- var ge = {};
43
+ var Ne = {};
44
44
  /**
45
45
  * @license React
46
46
  * react-jsx-runtime.development.js
@@ -50,16 +50,16 @@ var ge = {};
50
50
  * This source code is licensed under the MIT license found in the
51
51
  * LICENSE file in the root directory of this source tree.
52
52
  */
53
- var Ge;
54
- function Rt() {
55
- return Ge || (Ge = 1, process.env.NODE_ENV !== "production" && function() {
53
+ var Ke;
54
+ function Bt() {
55
+ return Ke || (Ke = 1, process.env.NODE_ENV !== "production" && function() {
56
56
  function t(m) {
57
57
  if (m == null) return null;
58
58
  if (typeof m == "function")
59
- return m.$$typeof === P ? null : m.displayName || m.name || null;
59
+ return m.$$typeof === L ? null : m.displayName || m.name || null;
60
60
  if (typeof m == "string") return m;
61
61
  switch (m) {
62
- case g:
62
+ case N:
63
63
  return "Fragment";
64
64
  case y:
65
65
  return "Profiler";
@@ -67,27 +67,27 @@ function Rt() {
67
67
  return "StrictMode";
68
68
  case S:
69
69
  return "Suspense";
70
- case B:
70
+ case A:
71
71
  return "SuspenseList";
72
- case E:
72
+ case k:
73
73
  return "Activity";
74
74
  }
75
75
  if (typeof m == "object")
76
76
  switch (typeof m.tag == "number" && console.error(
77
77
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
78
78
  ), m.$$typeof) {
79
- case N:
80
- return "Portal";
81
79
  case j:
80
+ return "Portal";
81
+ case g:
82
82
  return m.displayName || "Context";
83
- case k:
83
+ case E:
84
84
  return (m._context.displayName || "Context") + ".Consumer";
85
85
  case b:
86
86
  var x = m.render;
87
87
  return m = m.displayName, m || (m = x.displayName || x.name || "", m = m !== "" ? "ForwardRef(" + m + ")" : "ForwardRef"), m;
88
88
  case D:
89
89
  return x = m.displayName || null, x !== null ? x : t(m.type) || "Memo";
90
- case W:
90
+ case C:
91
91
  x = m._payload, m = m._init;
92
92
  try {
93
93
  return t(m(x));
@@ -108,17 +108,17 @@ function Rt() {
108
108
  }
109
109
  if (x) {
110
110
  x = console;
111
- var R = x.error, F = typeof Symbol == "function" && Symbol.toStringTag && m[Symbol.toStringTag] || m.constructor.name || "Object";
112
- return R.call(
111
+ var I = x.error, U = typeof Symbol == "function" && Symbol.toStringTag && m[Symbol.toStringTag] || m.constructor.name || "Object";
112
+ return I.call(
113
113
  x,
114
114
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
115
- F
115
+ U
116
116
  ), s(m);
117
117
  }
118
118
  }
119
119
  function a(m) {
120
- if (m === g) return "<>";
121
- if (typeof m == "object" && m !== null && m.$$typeof === W)
120
+ if (m === N) return "<>";
121
+ if (typeof m == "object" && m !== null && m.$$typeof === C)
122
122
  return "<...>";
123
123
  try {
124
124
  var x = t(m);
@@ -135,39 +135,39 @@ function Rt() {
135
135
  return Error("react-stack-top-frame");
136
136
  }
137
137
  function i(m) {
138
- if (G.call(m, "key")) {
138
+ if (W.call(m, "key")) {
139
139
  var x = Object.getOwnPropertyDescriptor(m, "key").get;
140
140
  if (x && x.isReactWarning) return !1;
141
141
  }
142
142
  return m.key !== void 0;
143
143
  }
144
144
  function l(m, x) {
145
- function R() {
146
- A || (A = !0, console.error(
145
+ function I() {
146
+ $ || ($ = !0, console.error(
147
147
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
148
148
  x
149
149
  ));
150
150
  }
151
- R.isReactWarning = !0, Object.defineProperty(m, "key", {
152
- get: R,
151
+ I.isReactWarning = !0, Object.defineProperty(m, "key", {
152
+ get: I,
153
153
  configurable: !0
154
154
  });
155
155
  }
156
156
  function c() {
157
157
  var m = t(this.type);
158
- return $[m] || ($[m] = !0, console.error(
158
+ return R[m] || (R[m] = !0, console.error(
159
159
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
160
160
  )), m = this.props.ref, m !== void 0 ? m : null;
161
161
  }
162
- function u(m, x, R, F, ee, ie) {
163
- var H = R.ref;
162
+ function f(m, x, I, U, ee, le) {
163
+ var G = I.ref;
164
164
  return m = {
165
165
  $$typeof: v,
166
166
  type: m,
167
167
  key: x,
168
- props: R,
169
- _owner: F
170
- }, (H !== void 0 ? H : null) !== null ? Object.defineProperty(m, "ref", {
168
+ props: I,
169
+ _owner: U
170
+ }, (G !== void 0 ? G : null) !== null ? Object.defineProperty(m, "ref", {
171
171
  enumerable: !1,
172
172
  get: c
173
173
  }) : Object.defineProperty(m, "ref", { enumerable: !1, value: null }), m._store = {}, Object.defineProperty(m._store, "validated", {
@@ -189,101 +189,101 @@ function Rt() {
189
189
  configurable: !1,
190
190
  enumerable: !1,
191
191
  writable: !0,
192
- value: ie
192
+ value: le
193
193
  }), Object.freeze && (Object.freeze(m.props), Object.freeze(m)), m;
194
194
  }
195
- function d(m, x, R, F, ee, ie) {
196
- var H = x.children;
197
- if (H !== void 0)
198
- if (F)
199
- if (Y(H)) {
200
- for (F = 0; F < H.length; F++)
201
- p(H[F]);
202
- Object.freeze && Object.freeze(H);
195
+ function d(m, x, I, U, ee, le) {
196
+ var G = x.children;
197
+ if (G !== void 0)
198
+ if (U)
199
+ if (M(G)) {
200
+ for (U = 0; U < G.length; U++)
201
+ p(G[U]);
202
+ Object.freeze && Object.freeze(G);
203
203
  } else
204
204
  console.error(
205
205
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
206
206
  );
207
- else p(H);
208
- if (G.call(x, "key")) {
209
- H = t(m);
210
- var Z = Object.keys(x).filter(function(_e) {
211
- return _e !== "key";
207
+ else p(G);
208
+ if (W.call(x, "key")) {
209
+ G = t(m);
210
+ var Z = Object.keys(x).filter(function(be) {
211
+ return be !== "key";
212
212
  });
213
- F = 0 < Z.length ? "{key: someKey, " + Z.join(": ..., ") + ": ...}" : "{key: someKey}", C[H + F] || (Z = 0 < Z.length ? "{" + Z.join(": ..., ") + ": ...}" : "{}", console.error(
213
+ U = 0 < Z.length ? "{key: someKey, " + Z.join(": ..., ") + ": ...}" : "{key: someKey}", Y[G + U] || (Z = 0 < Z.length ? "{" + Z.join(": ..., ") + ": ...}" : "{}", console.error(
214
214
  `A props object containing a "key" prop is being spread into JSX:
215
215
  let props = %s;
216
216
  <%s {...props} />
217
217
  React keys must be passed directly to JSX without using spread:
218
218
  let props = %s;
219
219
  <%s key={someKey} {...props} />`,
220
- F,
221
- H,
220
+ U,
221
+ G,
222
222
  Z,
223
- H
224
- ), C[H + F] = !0);
223
+ G
224
+ ), Y[G + U] = !0);
225
225
  }
226
- if (H = null, R !== void 0 && (n(R), H = "" + R), i(x) && (n(x.key), H = "" + x.key), "key" in x) {
227
- R = {};
226
+ if (G = null, I !== void 0 && (n(I), G = "" + I), i(x) && (n(x.key), G = "" + x.key), "key" in x) {
227
+ I = {};
228
228
  for (var fe in x)
229
- fe !== "key" && (R[fe] = x[fe]);
230
- } else R = x;
231
- return H && l(
232
- R,
229
+ fe !== "key" && (I[fe] = x[fe]);
230
+ } else I = x;
231
+ return G && l(
232
+ I,
233
233
  typeof m == "function" ? m.displayName || m.name || "Unknown" : m
234
- ), u(
234
+ ), f(
235
235
  m,
236
- H,
237
- R,
236
+ G,
237
+ I,
238
238
  r(),
239
239
  ee,
240
- ie
240
+ le
241
241
  );
242
242
  }
243
243
  function p(m) {
244
- h(m) ? m._store && (m._store.validated = 1) : typeof m == "object" && m !== null && m.$$typeof === W && (m._payload.status === "fulfilled" ? h(m._payload.value) && m._payload.value._store && (m._payload.value._store.validated = 1) : m._store && (m._store.validated = 1));
244
+ h(m) ? m._store && (m._store.validated = 1) : typeof m == "object" && m !== null && m.$$typeof === C && (m._payload.status === "fulfilled" ? h(m._payload.value) && m._payload.value._store && (m._payload.value._store.validated = 1) : m._store && (m._store.validated = 1));
245
245
  }
246
246
  function h(m) {
247
247
  return typeof m == "object" && m !== null && m.$$typeof === v;
248
248
  }
249
- var f = X, v = Symbol.for("react.transitional.element"), N = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), w = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), k = Symbol.for("react.consumer"), j = Symbol.for("react.context"), b = Symbol.for("react.forward_ref"), S = Symbol.for("react.suspense"), B = Symbol.for("react.suspense_list"), D = Symbol.for("react.memo"), W = Symbol.for("react.lazy"), E = Symbol.for("react.activity"), P = Symbol.for("react.client.reference"), O = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, G = Object.prototype.hasOwnProperty, Y = Array.isArray, _ = console.createTask ? console.createTask : function() {
249
+ var u = X, v = Symbol.for("react.transitional.element"), j = Symbol.for("react.portal"), N = Symbol.for("react.fragment"), w = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), E = Symbol.for("react.consumer"), g = Symbol.for("react.context"), b = Symbol.for("react.forward_ref"), S = Symbol.for("react.suspense"), A = Symbol.for("react.suspense_list"), D = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), k = Symbol.for("react.activity"), L = Symbol.for("react.client.reference"), O = u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, W = Object.prototype.hasOwnProperty, M = Array.isArray, _ = console.createTask ? console.createTask : function() {
250
250
  return null;
251
251
  };
252
- f = {
252
+ u = {
253
253
  react_stack_bottom_frame: function(m) {
254
254
  return m();
255
255
  }
256
256
  };
257
- var A, $ = {}, q = f.react_stack_bottom_frame.bind(
258
- f,
257
+ var $, R = {}, V = u.react_stack_bottom_frame.bind(
258
+ u,
259
259
  o
260
- )(), V = _(a(o)), C = {};
261
- ge.Fragment = g, ge.jsx = function(m, x, R) {
262
- var F = 1e4 > O.recentlyCreatedOwnerStacks++;
260
+ )(), H = _(a(o)), Y = {};
261
+ Ne.Fragment = N, Ne.jsx = function(m, x, I) {
262
+ var U = 1e4 > O.recentlyCreatedOwnerStacks++;
263
263
  return d(
264
264
  m,
265
265
  x,
266
- R,
266
+ I,
267
267
  !1,
268
- F ? Error("react-stack-top-frame") : q,
269
- F ? _(a(m)) : V
268
+ U ? Error("react-stack-top-frame") : V,
269
+ U ? _(a(m)) : H
270
270
  );
271
- }, ge.jsxs = function(m, x, R) {
272
- var F = 1e4 > O.recentlyCreatedOwnerStacks++;
271
+ }, Ne.jsxs = function(m, x, I) {
272
+ var U = 1e4 > O.recentlyCreatedOwnerStacks++;
273
273
  return d(
274
274
  m,
275
275
  x,
276
- R,
276
+ I,
277
277
  !0,
278
- F ? Error("react-stack-top-frame") : q,
279
- F ? _(a(m)) : V
278
+ U ? Error("react-stack-top-frame") : V,
279
+ U ? _(a(m)) : H
280
280
  );
281
281
  };
282
- }()), ge;
282
+ }()), Ne;
283
283
  }
284
- process.env.NODE_ENV === "production" ? Ie.exports = $t() : Ie.exports = Rt();
285
- var e = Ie.exports;
286
- const Te = {
284
+ process.env.NODE_ENV === "production" ? Be.exports = It() : Be.exports = Bt();
285
+ var e = Be.exports;
286
+ const $e = {
287
287
  // Close / dismiss
288
288
  close: "Close",
289
289
  closeModal: "Close modal",
@@ -332,33 +332,33 @@ const Te = {
332
332
  uploading: "Uploading...",
333
333
  removeAttachment: "Remove attachment"
334
334
  };
335
- function at(t, s = {}) {
335
+ function ct(t, s = {}) {
336
336
  return typeof t == "function" ? t(s) : typeof t != "string" ? "" : t.replace(
337
337
  /\{(\w+)\}/g,
338
338
  (n, a) => s[a] !== void 0 && s[a] !== null ? String(s[a]) : ""
339
339
  );
340
340
  }
341
- const We = De({
342
- strings: Te,
343
- t: (t, s) => at(Te[t] ?? t, s)
341
+ const Ce = Le({
342
+ strings: $e,
343
+ t: (t, s) => ct($e[t] ?? t, s)
344
344
  });
345
- function bs({ strings: t, children: s }) {
346
- const n = ut(() => {
347
- const a = { ...Te, ...t };
345
+ function ws({ strings: t, children: s }) {
346
+ const n = ht(() => {
347
+ const a = { ...$e, ...t };
348
348
  return {
349
349
  strings: a,
350
- t: (r, o) => at(a[r] ?? Te[r] ?? r, o)
350
+ t: (r, o) => ct(a[r] ?? $e[r] ?? r, o)
351
351
  };
352
352
  }, [t]);
353
- return /* @__PURE__ */ e.jsx(We.Provider, { value: n, children: s });
353
+ return /* @__PURE__ */ e.jsx(Ce.Provider, { value: n, children: s });
354
354
  }
355
355
  function ye() {
356
- return ae(We);
356
+ return ie(Ce);
357
357
  }
358
358
  function K() {
359
- return ae(We).strings;
359
+ return ie(Ce).strings;
360
360
  }
361
- function St({ size: t = "m", color: s = "default", className: n = "", "aria-label": a, ...r }) {
361
+ function Dt({ size: t = "m", color: s = "default", className: n = "", "aria-label": a, ...r }) {
362
362
  const o = K();
363
363
  return /* @__PURE__ */ e.jsx(
364
364
  "span",
@@ -370,8 +370,8 @@ function St({ size: t = "m", color: s = "default", className: n = "", "aria-labe
370
370
  }
371
371
  );
372
372
  }
373
- const At = { xs: 12, s: 14, m: 16, l: 20 };
374
- function ce({
373
+ const Lt = { xs: 12, s: 14, m: 16, l: 20 };
374
+ function de({
375
375
  children: t,
376
376
  variant: s = "primary",
377
377
  size: n = "m",
@@ -387,47 +387,47 @@ function ce({
387
387
  active: l = !1,
388
388
  /** Alias of `active` — same toggle-on style. */
389
389
  pressed: c = !1,
390
- onClick: u,
390
+ onClick: f,
391
391
  type: d = "button",
392
392
  href: p,
393
393
  "aria-label": h,
394
- "aria-pressed": f,
394
+ "aria-pressed": u,
395
395
  className: v = "",
396
- ...N
396
+ ...j
397
397
  }) {
398
- const g = r && !t, w = i === "loading", y = i === "success", k = i === "error", j = w || y || k, b = !!(l || c), S = n === "xs" ? "s" : "m", B = s === "danger" ? "on-accent" : "default", D = At[n] ?? 16, W = w ? /* @__PURE__ */ e.jsx(St, { size: S, color: B }) : y ? /* @__PURE__ */ e.jsx("span", { className: "ds-button__icon", "aria-hidden": "true", children: /* @__PURE__ */ e.jsx(Le, { size: D, strokeWidth: 2.5 }) }) : k ? /* @__PURE__ */ e.jsx("span", { className: "ds-button__icon", "aria-hidden": "true", children: /* @__PURE__ */ e.jsx(te, { size: D, strokeWidth: 2.5 }) }) : null, E = [
398
+ const N = r && !t, w = i === "loading", y = i === "success", E = i === "error", g = w || y || E, b = !!(l || c), S = n === "xs" ? "s" : "m", A = s === "danger" ? "on-accent" : "default", D = Lt[n] ?? 16, C = w ? /* @__PURE__ */ e.jsx(Dt, { size: S, color: A }) : y ? /* @__PURE__ */ e.jsx("span", { className: "ds-button__icon", "aria-hidden": "true", children: /* @__PURE__ */ e.jsx(Pe, { size: D, strokeWidth: 2.5 }) }) : E ? /* @__PURE__ */ e.jsx("span", { className: "ds-button__icon", "aria-hidden": "true", children: /* @__PURE__ */ e.jsx(se, { size: D, strokeWidth: 2.5 }) }) : null, k = [
399
399
  "ds-button",
400
400
  `ds-button--${s}`,
401
401
  `ds-button--${n}`,
402
402
  a && "ds-button--full",
403
- g && "ds-button--icon-only",
403
+ N && "ds-button--icon-only",
404
404
  v
405
- ].filter(Boolean).join(" "), P = i !== "idle" ? i : void 0, O = f !== void 0 ? f : b ? !0 : void 0, G = /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
406
- j ? W : r && /* @__PURE__ */ e.jsx("span", { className: "ds-button__icon", "aria-hidden": "true", children: r }),
405
+ ].filter(Boolean).join(" "), L = i !== "idle" ? i : void 0, O = u !== void 0 ? u : b ? !0 : void 0, W = /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
406
+ g ? C : r && /* @__PURE__ */ e.jsx("span", { className: "ds-button__icon", "aria-hidden": "true", children: r }),
407
407
  t
408
408
  ] });
409
409
  if (p) {
410
- const Y = (_) => {
410
+ const M = (_) => {
411
411
  if (o || w) {
412
412
  _.preventDefault();
413
413
  return;
414
414
  }
415
- _.metaKey || _.ctrlKey || _.button === 1 || (_.preventDefault(), u == null || u(_));
415
+ _.metaKey || _.ctrlKey || _.button === 1 || (_.preventDefault(), f == null || f(_));
416
416
  };
417
417
  return /* @__PURE__ */ e.jsx(
418
418
  "a",
419
419
  {
420
- className: E,
420
+ className: k,
421
421
  href: o || w ? void 0 : p,
422
- onClick: Y,
422
+ onClick: M,
423
423
  "aria-label": h,
424
424
  "aria-disabled": o || w ? "true" : void 0,
425
425
  "aria-busy": w ? "true" : void 0,
426
426
  "aria-pressed": O,
427
- "data-state": P,
427
+ "data-state": L,
428
428
  "data-active": b ? "true" : void 0,
429
- ...N,
430
- children: G
429
+ ...j,
430
+ children: W
431
431
  }
432
432
  );
433
433
  }
@@ -435,20 +435,20 @@ function ce({
435
435
  "button",
436
436
  {
437
437
  type: d,
438
- className: E,
438
+ className: k,
439
439
  disabled: o,
440
- onClick: w ? void 0 : u,
440
+ onClick: w ? void 0 : f,
441
441
  "aria-label": h,
442
442
  "aria-busy": w ? "true" : void 0,
443
443
  "aria-pressed": O,
444
- "data-state": P,
444
+ "data-state": L,
445
445
  "data-active": b ? "true" : void 0,
446
- ...N,
447
- children: G
446
+ ...j,
447
+ children: W
448
448
  }
449
449
  );
450
450
  }
451
- function _s({
451
+ function ys({
452
452
  label: t,
453
453
  error: s,
454
454
  hint: n,
@@ -458,23 +458,23 @@ function _s({
458
458
  onIconRightClick: i,
459
459
  size: l = "m",
460
460
  disabled: c,
461
- id: u,
461
+ id: f,
462
462
  iconRightLabel: d,
463
463
  ...p
464
464
  }) {
465
- const h = K(), f = u || `input-${X.useId()}`, v = n ? `${f}-hint` : void 0, N = s ? `${f}-error` : void 0, g = N || v;
465
+ const h = K(), u = f || `input-${X.useId()}`, v = n ? `${u}-hint` : void 0, j = s ? `${u}-error` : void 0, N = j || v;
466
466
  return /* @__PURE__ */ e.jsxs("div", { className: `ds-input-wrapper ${a ? "ds-input-wrapper--full" : ""} ${c ? "ds-input-wrapper--disabled" : ""} ${s ? "ds-input-wrapper--error" : ""}`, children: [
467
- t && /* @__PURE__ */ e.jsx("label", { className: "ds-input-label", htmlFor: f, children: t }),
467
+ t && /* @__PURE__ */ e.jsx("label", { className: "ds-input-label", htmlFor: u, children: t }),
468
468
  /* @__PURE__ */ e.jsxs("div", { className: "ds-input-container", children: [
469
469
  r && /* @__PURE__ */ e.jsx("span", { className: `ds-input-icon ds-input-icon--${l}`, "aria-hidden": "true", children: r }),
470
470
  /* @__PURE__ */ e.jsx(
471
471
  "input",
472
472
  {
473
- id: f,
473
+ id: u,
474
474
  className: `ds-input ds-input--${l} ${r ? "ds-input--with-icon" : ""} ${o ? "ds-input--with-icon-right" : ""} ${s ? "ds-input--error" : ""}`,
475
475
  disabled: c,
476
476
  "aria-invalid": s ? "true" : "false",
477
- "aria-describedby": g,
477
+ "aria-describedby": N,
478
478
  ...p
479
479
  }
480
480
  ),
@@ -491,10 +491,10 @@ function _s({
491
491
  )
492
492
  ] }),
493
493
  n && !s && /* @__PURE__ */ e.jsx("span", { id: v, className: "ds-input-hint", children: n }),
494
- /* @__PURE__ */ e.jsx("div", { className: "ds-input-error-wrap", children: /* @__PURE__ */ e.jsx("div", { className: "ds-input-error-inner", children: s && /* @__PURE__ */ e.jsx("span", { id: N, className: "ds-input-error", role: "alert", children: s }) }) })
494
+ /* @__PURE__ */ e.jsx("div", { className: "ds-input-error-wrap", children: /* @__PURE__ */ e.jsx("div", { className: "ds-input-error-inner", children: s && /* @__PURE__ */ e.jsx("span", { id: j, className: "ds-input-error", role: "alert", children: s }) }) })
495
495
  ] });
496
496
  }
497
- function js({
497
+ function ks({
498
498
  label: t,
499
499
  error: s,
500
500
  hint: n,
@@ -504,9 +504,9 @@ function js({
504
504
  id: i,
505
505
  resize: l = !0,
506
506
  rows: c = 3,
507
- ...u
507
+ ...f
508
508
  }) {
509
- const d = i || `textarea-${X.useId()}`, p = n ? `${d}-hint` : void 0, h = s ? `${d}-error` : void 0, f = h || p;
509
+ const d = i || `textarea-${X.useId()}`, p = n ? `${d}-hint` : void 0, h = s ? `${d}-error` : void 0, u = h || p;
510
510
  return /* @__PURE__ */ e.jsxs("div", { className: `ds-textarea-wrapper ${a ? "ds-textarea-wrapper--full" : ""} ${o ? "ds-textarea-wrapper--disabled" : ""}`, children: [
511
511
  t && /* @__PURE__ */ e.jsx("label", { className: "ds-textarea-label", htmlFor: d, children: t }),
512
512
  /* @__PURE__ */ e.jsx(
@@ -516,16 +516,16 @@ function js({
516
516
  className: `ds-textarea ds-textarea--${r} ${s ? "ds-textarea--error" : ""} ${l ? "" : "ds-textarea--no-resize"}`,
517
517
  disabled: o,
518
518
  "aria-invalid": s ? "true" : "false",
519
- "aria-describedby": f,
519
+ "aria-describedby": u,
520
520
  rows: c,
521
- ...u
521
+ ...f
522
522
  }
523
523
  ),
524
524
  n && !s && /* @__PURE__ */ e.jsx("span", { id: p, className: "ds-textarea-hint", children: n }),
525
525
  s && /* @__PURE__ */ e.jsx("span", { id: h, className: "ds-textarea-error", role: "alert", children: s })
526
526
  ] });
527
527
  }
528
- function Ns({
528
+ function Es({
529
529
  label: t,
530
530
  value: s,
531
531
  onChange: n,
@@ -535,70 +535,70 @@ function Ns({
535
535
  fullWidth: i = !0,
536
536
  size: l = "m",
537
537
  disabled: c = !1,
538
- id: u,
538
+ id: f,
539
539
  ...d
540
540
  }) {
541
- const p = K(), h = r ?? p.selectOption, [f, v] = L(!1), [N, g] = L(!1), [w, y] = L({}), [k, j] = L("down"), [b, S] = L(-1), B = I(null), D = I(null), W = I(null), E = I(null), P = u || `select-${X.useId()}`, O = `${P}-label`, G = o ? `${P}-error` : void 0, Y = 150, _ = (x = !1) => {
542
- N || (g(!0), S(-1), E.current = setTimeout(() => {
543
- var R;
544
- v(!1), g(!1), x && ((R = W.current) == null || R.focus());
545
- }, Y));
546
- }, A = (x) => {
547
- clearTimeout(E.current), g(!1);
548
- const R = x !== void 0 ? x : Math.max(a.findIndex((F) => F.value === s), 0);
549
- S(R), v(!0);
541
+ const p = K(), h = r ?? p.selectOption, [u, v] = P(!1), [j, N] = P(!1), [w, y] = P({}), [E, g] = P("down"), [b, S] = P(-1), A = B(null), D = B(null), C = B(null), k = B(null), L = f || `select-${X.useId()}`, O = `${L}-label`, W = o ? `${L}-error` : void 0, M = 150, _ = (x = !1) => {
542
+ j || (N(!0), S(-1), k.current = setTimeout(() => {
543
+ var I;
544
+ v(!1), N(!1), x && ((I = C.current) == null || I.focus());
545
+ }, M));
546
+ }, $ = (x) => {
547
+ clearTimeout(k.current), N(!1);
548
+ const I = x !== void 0 ? x : Math.max(a.findIndex((U) => U.value === s), 0);
549
+ S(I), v(!0);
550
550
  };
551
- z(() => () => clearTimeout(E.current), []);
552
- const $ = () => {
551
+ F(() => () => clearTimeout(k.current), []);
552
+ const R = () => {
553
553
  var Z;
554
- const x = (Z = B.current) == null ? void 0 : Z.getBoundingClientRect();
554
+ const x = (Z = A.current) == null ? void 0 : Z.getBoundingClientRect();
555
555
  if (!x) return;
556
- const R = window.innerHeight, F = R - x.bottom, ee = x.top, H = F < 300 && ee > F;
557
- j(H ? "up" : "down"), y(
558
- H ? { bottom: R - x.top + 4, left: x.left, width: x.width } : { top: x.bottom + 4, left: x.left, width: x.width }
556
+ const I = window.innerHeight, U = I - x.bottom, ee = x.top, G = U < 300 && ee > U;
557
+ g(G ? "up" : "down"), y(
558
+ G ? { bottom: I - x.top + 4, left: x.left, width: x.width } : { top: x.bottom + 4, left: x.left, width: x.width }
559
559
  );
560
560
  };
561
- z(() => {
562
- if (f)
563
- return $(), window.addEventListener("scroll", $, !0), window.addEventListener("resize", $), () => {
564
- window.removeEventListener("scroll", $, !0), window.removeEventListener("resize", $);
561
+ F(() => {
562
+ if (u)
563
+ return R(), window.addEventListener("scroll", R, !0), window.addEventListener("resize", R), () => {
564
+ window.removeEventListener("scroll", R, !0), window.removeEventListener("resize", R);
565
565
  };
566
- }, [f]), z(() => {
567
- const x = (R) => {
568
- B.current && !B.current.contains(R.target) && D.current && !D.current.contains(R.target) && _();
566
+ }, [u]), F(() => {
567
+ const x = (I) => {
568
+ A.current && !A.current.contains(I.target) && D.current && !D.current.contains(I.target) && _();
569
569
  };
570
570
  return document.addEventListener("mousedown", x), () => document.removeEventListener("mousedown", x);
571
- }, [N]), z(() => {
572
- var R;
573
- if (!f || b < 0 || !D.current) return;
574
- (R = D.current.querySelectorAll(".ds-select-option")[b]) == null || R.scrollIntoView({ block: "nearest" });
575
- }, [b, f]);
576
- const q = (x) => {
571
+ }, [j]), F(() => {
572
+ var I;
573
+ if (!u || b < 0 || !D.current) return;
574
+ (I = D.current.querySelectorAll(".ds-select-option")[b]) == null || I.scrollIntoView({ block: "nearest" });
575
+ }, [b, u]);
576
+ const V = (x) => {
577
577
  switch (x.key) {
578
578
  case "ArrowDown":
579
- x.preventDefault(), f ? S((R) => Math.min(R + 1, a.length - 1)) : A();
579
+ x.preventDefault(), u ? S((I) => Math.min(I + 1, a.length - 1)) : $();
580
580
  break;
581
581
  case "ArrowUp":
582
- x.preventDefault(), f ? S((R) => Math.max(R - 1, 0)) : A(a.length - 1);
582
+ x.preventDefault(), u ? S((I) => Math.max(I - 1, 0)) : $(a.length - 1);
583
583
  break;
584
584
  case "Home":
585
- f && (x.preventDefault(), S(0));
585
+ u && (x.preventDefault(), S(0));
586
586
  break;
587
587
  case "End":
588
- f && (x.preventDefault(), S(a.length - 1));
588
+ u && (x.preventDefault(), S(a.length - 1));
589
589
  break;
590
590
  case "Enter":
591
591
  case " ":
592
- x.preventDefault(), f ? b >= 0 && (n == null || n(a[b].value), _(!0)) : A();
592
+ x.preventDefault(), u ? b >= 0 && (n == null || n(a[b].value), _(!0)) : $();
593
593
  break;
594
594
  case "Escape":
595
- f && (x.preventDefault(), _(!0));
595
+ u && (x.preventDefault(), _(!0));
596
596
  break;
597
597
  case "Tab":
598
- f && _(!1);
598
+ u && _(!1);
599
599
  break;
600
600
  }
601
- }, V = a.find((x) => x.value === s), C = l === "xs" ? U[1] : l === "small" ? U[2] : U[3], m = f && /* @__PURE__ */ e.jsx(
601
+ }, H = a.find((x) => x.value === s), Y = l === "xs" ? q[1] : l === "small" ? q[2] : q[3], m = u && /* @__PURE__ */ e.jsx(
602
602
  "div",
603
603
  {
604
604
  ref: D,
@@ -609,14 +609,14 @@ function Ns({
609
609
  className: [
610
610
  "ds-select-dropdown ds-scrollable",
611
611
  `ds-select-dropdown--${l}`,
612
- `ds-select-dropdown--${k}`,
613
- N && "ds-select-dropdown--closing"
612
+ `ds-select-dropdown--${E}`,
613
+ j && "ds-select-dropdown--closing"
614
614
  ].filter(Boolean).join(" "),
615
615
  style: w,
616
- children: a.map((x, R) => /* @__PURE__ */ e.jsx(
616
+ children: a.map((x, I) => /* @__PURE__ */ e.jsx(
617
617
  "button",
618
618
  {
619
- id: `${P}-opt-${R}`,
619
+ id: `${L}-opt-${I}`,
620
620
  type: "button",
621
621
  role: "option",
622
622
  tabIndex: -1,
@@ -625,7 +625,7 @@ function Ns({
625
625
  "ds-select-option",
626
626
  `ds-select-option--${l}`,
627
627
  s === x.value && "ds-select-option--selected",
628
- R === b && "ds-select-option--active"
628
+ I === b && "ds-select-option--active"
629
629
  ].filter(Boolean).join(" "),
630
630
  onClick: () => {
631
631
  n == null || n(x.value), _(!0);
@@ -638,45 +638,45 @@ function Ns({
638
638
  );
639
639
  return /* @__PURE__ */ e.jsxs("div", { className: `ds-select-wrapper ${i ? "ds-select-wrapper--full" : ""} ${c ? "ds-select-wrapper--disabled" : ""}`, children: [
640
640
  t && /* @__PURE__ */ e.jsx("label", { id: O, className: "ds-select-label", children: t }),
641
- /* @__PURE__ */ e.jsx("div", { className: "ds-select-container", ref: B, children: /* @__PURE__ */ e.jsxs(
641
+ /* @__PURE__ */ e.jsx("div", { className: "ds-select-container", ref: A, children: /* @__PURE__ */ e.jsxs(
642
642
  "button",
643
643
  {
644
- ref: W,
644
+ ref: C,
645
645
  type: "button",
646
- id: P,
646
+ id: L,
647
647
  role: "combobox",
648
648
  "aria-haspopup": "listbox",
649
- "aria-expanded": f,
650
- "aria-activedescendant": f && b >= 0 ? `${P}-opt-${b}` : void 0,
649
+ "aria-expanded": u,
650
+ "aria-activedescendant": u && b >= 0 ? `${L}-opt-${b}` : void 0,
651
651
  "aria-labelledby": t ? O : void 0,
652
652
  "aria-invalid": o ? "true" : "false",
653
- "aria-describedby": G,
653
+ "aria-describedby": W,
654
654
  className: `ds-select-trigger ds-select-trigger--${l} ${o ? "ds-select-trigger--error" : ""}`,
655
655
  onClick: () => {
656
- c || (f ? _() : A());
656
+ c || (u ? _() : $());
657
657
  },
658
- onKeyDown: q,
658
+ onKeyDown: V,
659
659
  disabled: c,
660
660
  ...d,
661
661
  children: [
662
- /* @__PURE__ */ e.jsx("span", { className: V ? "" : "ds-select-placeholder", children: (V == null ? void 0 : V.label) || h }),
662
+ /* @__PURE__ */ e.jsx("span", { className: H ? "" : "ds-select-placeholder", children: (H == null ? void 0 : H.label) || h }),
663
663
  /* @__PURE__ */ e.jsx(
664
664
  we,
665
665
  {
666
- size: C,
666
+ size: Y,
667
667
  strokeWidth: 1.5,
668
- className: `ds-select-icon ${f && k === "down" ? "ds-select-icon--open" : ""} ${f && k === "up" ? "ds-select-icon--up" : ""}`,
668
+ className: `ds-select-icon ${u && E === "down" ? "ds-select-icon--open" : ""} ${u && E === "up" ? "ds-select-icon--up" : ""}`,
669
669
  "aria-hidden": "true"
670
670
  }
671
671
  )
672
672
  ]
673
673
  }
674
674
  ) }),
675
- o && /* @__PURE__ */ e.jsx("span", { id: G, className: "ds-select-error", role: "alert", children: o }),
676
- typeof document < "u" && oe.createPortal(m, document.body)
675
+ o && /* @__PURE__ */ e.jsx("span", { id: W, className: "ds-select-error", role: "alert", children: o }),
676
+ typeof document < "u" && re.createPortal(m, document.body)
677
677
  ] });
678
678
  }
679
- function gs({
679
+ function Ts({
680
680
  label: t,
681
681
  value: s = 0,
682
682
  onChange: n,
@@ -686,40 +686,40 @@ function gs({
686
686
  size: i = "m",
687
687
  disabled: l = !1,
688
688
  hint: c,
689
- error: u,
689
+ error: f,
690
690
  decreaseLabel: d,
691
691
  increaseLabel: p,
692
692
  ...h
693
693
  }) {
694
- const f = K(), v = () => {
694
+ const u = K(), v = () => {
695
695
  if (l) return;
696
- const j = Math.min(Number(s) + o, r);
697
- n == null || n(j);
698
- }, N = () => {
696
+ const g = Math.min(Number(s) + o, r);
697
+ n == null || n(g);
698
+ }, j = () => {
699
699
  if (l) return;
700
- const j = Math.max(Number(s) - o, a);
701
- n == null || n(j);
702
- }, g = (j) => {
700
+ const g = Math.max(Number(s) - o, a);
701
+ n == null || n(g);
702
+ }, N = (g) => {
703
703
  if (l) return;
704
- const b = j.target.value;
704
+ const b = g.target.value;
705
705
  if (b === "") {
706
706
  n == null || n(a);
707
707
  return;
708
708
  }
709
709
  const S = Number(b);
710
710
  if (!isNaN(S)) {
711
- const B = Math.min(Math.max(S, a), r);
712
- n == null || n(B);
711
+ const A = Math.min(Math.max(S, a), r);
712
+ n == null || n(A);
713
713
  }
714
714
  }, w = [
715
715
  "ds-stepper-wrapper",
716
716
  l && "ds-stepper-wrapper--disabled",
717
- u && "ds-stepper-wrapper--error"
717
+ f && "ds-stepper-wrapper--error"
718
718
  ].filter(Boolean).join(" "), y = [
719
719
  "ds-stepper",
720
720
  `ds-stepper--${i}`,
721
721
  l && "ds-stepper--disabled"
722
- ].filter(Boolean).join(" "), k = i === "xs" ? U[1] : i === "small" ? U[2] : U[3];
722
+ ].filter(Boolean).join(" "), E = i === "xs" ? q[1] : i === "small" ? q[2] : q[3];
723
723
  return /* @__PURE__ */ e.jsxs("div", { className: w, children: [
724
724
  t && /* @__PURE__ */ e.jsx("label", { className: "ds-stepper-label", children: t }),
725
725
  /* @__PURE__ */ e.jsxs("div", { className: y, children: [
@@ -728,10 +728,10 @@ function gs({
728
728
  {
729
729
  type: "button",
730
730
  className: "ds-stepper-button ds-stepper-button--minus",
731
- onClick: N,
731
+ onClick: j,
732
732
  disabled: l || s <= a,
733
- "aria-label": d ?? f.decrease,
734
- children: /* @__PURE__ */ e.jsx(mt, { size: k, strokeWidth: 1.5 })
733
+ "aria-label": d ?? u.decrease,
734
+ children: /* @__PURE__ */ e.jsx(vt, { size: E, strokeWidth: 1.5 })
735
735
  }
736
736
  ),
737
737
  /* @__PURE__ */ e.jsx(
@@ -740,7 +740,7 @@ function gs({
740
740
  type: "number",
741
741
  className: "ds-stepper-input",
742
742
  value: s,
743
- onChange: g,
743
+ onChange: N,
744
744
  min: a,
745
745
  max: r,
746
746
  step: o,
@@ -755,16 +755,16 @@ function gs({
755
755
  className: "ds-stepper-button ds-stepper-button--plus",
756
756
  onClick: v,
757
757
  disabled: l || s >= r,
758
- "aria-label": p ?? f.increase,
759
- children: /* @__PURE__ */ e.jsx(pt, { size: k, strokeWidth: 1.5 })
758
+ "aria-label": p ?? u.increase,
759
+ children: /* @__PURE__ */ e.jsx(_t, { size: E, strokeWidth: 1.5 })
760
760
  }
761
761
  )
762
762
  ] }),
763
- c && !u && /* @__PURE__ */ e.jsx("div", { className: "ds-stepper-hint", children: c }),
764
- u && /* @__PURE__ */ e.jsx("div", { className: "ds-stepper-error", children: u })
763
+ c && !f && /* @__PURE__ */ e.jsx("div", { className: "ds-stepper-hint", children: c }),
764
+ f && /* @__PURE__ */ e.jsx("div", { className: "ds-stepper-error", children: f })
765
765
  ] });
766
766
  }
767
- function ws({
767
+ function $s({
768
768
  children: t,
769
769
  padding: s = "m",
770
770
  variant: n = "default",
@@ -783,12 +783,12 @@ function ws({
783
783
  l
784
784
  ].filter(Boolean).join(" ");
785
785
  if (o) {
786
- const v = (N) => {
786
+ const v = (j) => {
787
787
  if (i) {
788
- N.preventDefault();
788
+ j.preventDefault();
789
789
  return;
790
790
  }
791
- N.metaKey || N.ctrlKey || N.button === 1 || (N.preventDefault(), r == null || r(N));
791
+ j.metaKey || j.ctrlKey || j.button === 1 || (j.preventDefault(), r == null || r(j));
792
792
  };
793
793
  return /* @__PURE__ */ e.jsx(
794
794
  "a",
@@ -802,7 +802,7 @@ function ws({
802
802
  }
803
803
  );
804
804
  }
805
- const h = d && r ? "button" : "div", f = d && r ? {
805
+ const h = d && r ? "button" : "div", u = d && r ? {
806
806
  type: "button",
807
807
  onClick: r,
808
808
  disabled: i
@@ -812,31 +812,31 @@ function ws({
812
812
  {
813
813
  className: p,
814
814
  role: d && !r ? "article" : void 0,
815
- ...f,
815
+ ...u,
816
816
  ...c,
817
817
  children: t
818
818
  }
819
819
  );
820
820
  }
821
- function ys({ children: t, ...s }) {
821
+ function Rs({ children: t, ...s }) {
822
822
  return /* @__PURE__ */ e.jsx("h1", { className: "ds-h1", ...s, children: t });
823
823
  }
824
- function ks({ children: t, ...s }) {
824
+ function Ss({ children: t, ...s }) {
825
825
  return /* @__PURE__ */ e.jsx("h2", { className: "ds-h2", ...s, children: t });
826
826
  }
827
- function Es({ children: t, ...s }) {
827
+ function As({ children: t, ...s }) {
828
828
  return /* @__PURE__ */ e.jsx("h3", { className: "ds-h3", ...s, children: t });
829
829
  }
830
- function Ts({ children: t, ...s }) {
830
+ function Is({ children: t, ...s }) {
831
831
  return /* @__PURE__ */ e.jsx("h4", { className: "ds-h4", ...s, children: t });
832
832
  }
833
- function $s({ children: t, secondary: s = !1, ...n }) {
833
+ function Bs({ children: t, secondary: s = !1, ...n }) {
834
834
  return /* @__PURE__ */ e.jsx("p", { className: `ds-p1 ${s ? "ds-p1--secondary" : ""}`, ...n, children: t });
835
835
  }
836
- function It({ children: t, secondary: s = !1, ...n }) {
836
+ function Pt({ children: t, secondary: s = !1, ...n }) {
837
837
  return /* @__PURE__ */ e.jsx("p", { className: `ds-p2 ${s ? "ds-p2--secondary" : ""}`, ...n, children: t });
838
838
  }
839
- function ot({ children: t, secondary: s = !1, ...n }) {
839
+ function dt({ children: t, secondary: s = !1, ...n }) {
840
840
  return /* @__PURE__ */ e.jsx("p", { className: `ds-p3 ${s ? "ds-p3--secondary" : ""}`, ...n, children: t });
841
841
  }
842
842
  function he({
@@ -853,12 +853,12 @@ function he({
853
853
  ].filter(Boolean).join(" "), i = a || (["info", "success", "warning", "error"].includes(s) ? "status" : void 0);
854
854
  return /* @__PURE__ */ e.jsx("span", { className: o, role: i, ...r, children: t });
855
855
  }
856
- const Bt = {
857
- info: Fe,
858
- success: ze,
859
- warning: Me,
860
- error: Pe
861
- }, Rs = X.forwardRef(function({
856
+ const Mt = {
857
+ info: We,
858
+ success: Fe,
859
+ warning: ze,
860
+ error: Me
861
+ }, Ds = X.forwardRef(function({
862
862
  children: s,
863
863
  variant: n = "info",
864
864
  title: a,
@@ -867,9 +867,9 @@ const Bt = {
867
867
  closeLabel: i,
868
868
  ...l
869
869
  }, c) {
870
- const u = K(), d = Bt[n], p = o || (n === "error" ? "alert" : "status");
870
+ const f = K(), d = Mt[n], p = o || (n === "error" ? "alert" : "status");
871
871
  return /* @__PURE__ */ e.jsxs("div", { ref: c, className: `ds-alert ds-alert--${n} ${a ? "" : "ds-alert--no-title"}`, role: p, ...l, children: [
872
- d && /* @__PURE__ */ e.jsx("div", { className: "ds-alert__icon", children: /* @__PURE__ */ e.jsx(d, { size: U[3], strokeWidth: 1.5 }) }),
872
+ d && /* @__PURE__ */ e.jsx("div", { className: "ds-alert__icon", children: /* @__PURE__ */ e.jsx(d, { size: q[3], strokeWidth: 1.5 }) }),
873
873
  /* @__PURE__ */ e.jsxs("div", { className: "ds-alert__content", children: [
874
874
  a && /* @__PURE__ */ e.jsx("div", { className: "ds-alert__title", children: a }),
875
875
  s && /* @__PURE__ */ e.jsx("div", { className: "ds-alert__message", children: s })
@@ -880,13 +880,13 @@ const Bt = {
880
880
  type: "button",
881
881
  className: "ds-alert__close",
882
882
  onClick: r,
883
- "aria-label": i ?? u.closeAlert,
884
- children: /* @__PURE__ */ e.jsx(te, { size: U[3], strokeWidth: 1.5 })
883
+ "aria-label": i ?? f.closeAlert,
884
+ children: /* @__PURE__ */ e.jsx(se, { size: q[3], strokeWidth: 1.5 })
885
885
  }
886
886
  )
887
887
  ] });
888
- }), Dt = 200;
889
- function Ss({
888
+ }), zt = 200;
889
+ function Ls({
890
890
  children: t,
891
891
  title: s,
892
892
  onClose: n,
@@ -896,40 +896,40 @@ function Ss({
896
896
  closeLabel: i,
897
897
  ...l
898
898
  }) {
899
- const c = K(), u = I(null), d = X.useId(), [p, h] = L(!1), f = () => {
899
+ const c = K(), f = B(null), d = X.useId(), [p, h] = P(!1), u = () => {
900
900
  !n || p || (h(!0), setTimeout(() => {
901
901
  h(!1), n();
902
- }, Dt));
902
+ }, zt));
903
903
  };
904
- z(() => {
905
- const y = (j) => {
906
- j.key === "Escape" && f();
907
- }, k = (j) => {
908
- var S, B, D;
909
- const b = ((B = (S = j.composedPath) == null ? void 0 : S.call(j)) == null ? void 0 : B[0]) ?? j.target;
910
- u.current && !u.current.contains(b) && !((D = b.closest) != null && D.call(b, "[data-ds-portal]")) && f();
904
+ F(() => {
905
+ const y = (g) => {
906
+ g.key === "Escape" && u();
907
+ }, E = (g) => {
908
+ var S, A, D;
909
+ const b = ((A = (S = g.composedPath) == null ? void 0 : S.call(g)) == null ? void 0 : A[0]) ?? g.target;
910
+ f.current && !f.current.contains(b) && !((D = b.closest) != null && D.call(b, "[data-ds-portal]")) && u();
911
911
  };
912
- return document.addEventListener("keydown", y), document.addEventListener("mousedown", k), () => {
913
- document.removeEventListener("keydown", y), document.removeEventListener("mousedown", k);
912
+ return document.addEventListener("keydown", y), document.addEventListener("mousedown", E), () => {
913
+ document.removeEventListener("keydown", y), document.removeEventListener("mousedown", E);
914
914
  };
915
915
  }, [n, p]);
916
- const v = X.Children.toArray(t), N = v.find((y) => (y == null ? void 0 : y.type) === xe), g = v.filter((y) => (y == null ? void 0 : y.type) !== xe), w = /* @__PURE__ */ e.jsx("div", { className: ["ds-modal-overlay", p && "ds-modal-overlay--closing"].filter(Boolean).join(" "), ...l, children: /* @__PURE__ */ e.jsxs(
916
+ const v = X.Children.toArray(t), j = v.find((y) => (y == null ? void 0 : y.type) === xe), N = v.filter((y) => (y == null ? void 0 : y.type) !== xe), w = /* @__PURE__ */ e.jsx("div", { className: ["ds-modal-overlay", p && "ds-modal-overlay--closing"].filter(Boolean).join(" "), ...l, children: /* @__PURE__ */ e.jsxs(
917
917
  "div",
918
918
  {
919
919
  className: [`ds-modal ds-modal--${a}`, r && "ds-modal--scrollable"].filter(Boolean).join(" "),
920
- ref: u,
920
+ ref: f,
921
921
  role: "dialog",
922
922
  "aria-modal": "true",
923
923
  "aria-labelledby": s ? d : void 0,
924
924
  children: [
925
925
  n && /* @__PURE__ */ e.jsx(
926
- ce,
926
+ de,
927
927
  {
928
928
  className: "ds-modal__close",
929
929
  variant: "ghost",
930
930
  size: "small",
931
- icon: /* @__PURE__ */ e.jsx(te, { size: U[2], strokeWidth: 1.5 }),
932
- onClick: f,
931
+ icon: /* @__PURE__ */ e.jsx(se, { size: q[2], strokeWidth: 1.5 }),
932
+ onClick: u,
933
933
  "aria-label": i ?? c.closeModal
934
934
  }
935
935
  ),
@@ -937,18 +937,18 @@ function Ss({
937
937
  s && /* @__PURE__ */ e.jsx("h3", { id: d, className: "ds-modal__title", children: s }),
938
938
  o && /* @__PURE__ */ e.jsx("div", { className: "ds-modal__subheader", children: o })
939
939
  ] }),
940
- /* @__PURE__ */ e.jsx("div", { className: "ds-modal__body ds-scrollable", children: g }),
941
- N
940
+ /* @__PURE__ */ e.jsx("div", { className: "ds-modal__body ds-scrollable", children: N }),
941
+ j
942
942
  ]
943
943
  }
944
944
  ) });
945
- return typeof document > "u" ? w : oe.createPortal(w, document.body);
945
+ return typeof document > "u" ? w : re.createPortal(w, document.body);
946
946
  }
947
947
  function xe({ children: t }) {
948
948
  return !t || X.Children.count(t) === 0 ? null : /* @__PURE__ */ e.jsx("div", { className: "ds-modal__footer", children: t });
949
949
  }
950
- const Lt = 320;
951
- function As({
950
+ const Ft = 320;
951
+ function Ps({
952
952
  children: t,
953
953
  title: s,
954
954
  onClose: n,
@@ -956,45 +956,45 @@ function As({
956
956
  closeLabel: r,
957
957
  ...o
958
958
  }) {
959
- const i = K(), l = I(null), c = X.useId(), [u, d] = L(!1), p = () => {
960
- !n || u || (d(!0), setTimeout(() => {
959
+ const i = K(), l = B(null), c = X.useId(), [f, d] = P(!1), p = () => {
960
+ !n || f || (d(!0), setTimeout(() => {
961
961
  d(!1), n();
962
- }, Lt));
962
+ }, Ft));
963
963
  };
964
- z(() => {
965
- const g = (y) => {
964
+ F(() => {
965
+ const N = (y) => {
966
966
  y.key === "Escape" && p();
967
967
  }, w = (y) => {
968
- var j, b, S;
969
- const k = ((b = (j = y.composedPath) == null ? void 0 : j.call(y)) == null ? void 0 : b[0]) ?? y.target;
970
- l.current && !l.current.contains(k) && !((S = k.closest) != null && S.call(k, "[data-ds-portal]")) && p();
968
+ var g, b, S;
969
+ const E = ((b = (g = y.composedPath) == null ? void 0 : g.call(y)) == null ? void 0 : b[0]) ?? y.target;
970
+ l.current && !l.current.contains(E) && !((S = E.closest) != null && S.call(E, "[data-ds-portal]")) && p();
971
971
  };
972
- return document.addEventListener("keydown", g), document.addEventListener("mousedown", w), () => {
973
- document.removeEventListener("keydown", g), document.removeEventListener("mousedown", w);
972
+ return document.addEventListener("keydown", N), document.addEventListener("mousedown", w), () => {
973
+ document.removeEventListener("keydown", N), document.removeEventListener("mousedown", w);
974
974
  };
975
- }, [n, u]);
976
- const h = X.Children.toArray(t), f = h.find((g) => (g == null ? void 0 : g.type) === xe), v = h.filter((g) => (g == null ? void 0 : g.type) !== xe), N = /* @__PURE__ */ e.jsx(
975
+ }, [n, f]);
976
+ const h = X.Children.toArray(t), u = h.find((N) => (N == null ? void 0 : N.type) === xe), v = h.filter((N) => (N == null ? void 0 : N.type) !== xe), j = /* @__PURE__ */ e.jsx(
977
977
  "div",
978
978
  {
979
- className: ["ds-bottom-sheet-overlay", u && "ds-bottom-sheet-overlay--closing"].filter(Boolean).join(" "),
979
+ className: ["ds-bottom-sheet-overlay", f && "ds-bottom-sheet-overlay--closing"].filter(Boolean).join(" "),
980
980
  ...o,
981
981
  children: /* @__PURE__ */ e.jsxs(
982
982
  "div",
983
983
  {
984
984
  ref: l,
985
- className: ["ds-bottom-sheet", u && "ds-bottom-sheet--closing"].filter(Boolean).join(" "),
985
+ className: ["ds-bottom-sheet", f && "ds-bottom-sheet--closing"].filter(Boolean).join(" "),
986
986
  role: "dialog",
987
987
  "aria-modal": "true",
988
988
  "aria-labelledby": s ? c : void 0,
989
989
  children: [
990
990
  /* @__PURE__ */ e.jsx("div", { className: "ds-bottom-sheet__handle", "aria-hidden": "true" }),
991
991
  n && /* @__PURE__ */ e.jsx(
992
- ce,
992
+ de,
993
993
  {
994
994
  className: "ds-bottom-sheet__close",
995
995
  variant: "ghost",
996
996
  size: "small",
997
- icon: /* @__PURE__ */ e.jsx(te, { size: U[2], strokeWidth: 1.5 }),
997
+ icon: /* @__PURE__ */ e.jsx(se, { size: q[2], strokeWidth: 1.5 }),
998
998
  onClick: p,
999
999
  "aria-label": r ?? i.close
1000
1000
  }
@@ -1004,15 +1004,15 @@ function As({
1004
1004
  a && /* @__PURE__ */ e.jsx("div", { className: "ds-bottom-sheet__subheader", children: a })
1005
1005
  ] }),
1006
1006
  /* @__PURE__ */ e.jsx("div", { className: "ds-bottom-sheet__body ds-scrollable", children: v }),
1007
- f
1007
+ u
1008
1008
  ]
1009
1009
  }
1010
1010
  )
1011
1011
  }
1012
1012
  );
1013
- return typeof document > "u" ? N : oe.createPortal(N, document.body);
1013
+ return typeof document > "u" ? j : re.createPortal(j, document.body);
1014
1014
  }
1015
- function Pt({
1015
+ function Wt({
1016
1016
  children: t,
1017
1017
  title: s,
1018
1018
  defaultExpanded: n = !1,
@@ -1022,30 +1022,30 @@ function Pt({
1022
1022
  className: i = "",
1023
1023
  ...l
1024
1024
  }) {
1025
- const c = K(), u = s ?? c.code, [d, p] = L(n), h = a !== void 0, f = h ? a : d, v = () => {
1026
- h ? r == null || r(!a) : p((g) => !g);
1027
- }, N = [
1025
+ const c = K(), f = s ?? c.code, [d, p] = P(n), h = a !== void 0, u = h ? a : d, v = () => {
1026
+ h ? r == null || r(!a) : p((N) => !N);
1027
+ }, j = [
1028
1028
  "ds-code-accordion",
1029
1029
  `ds-code-accordion--${o}`,
1030
- f && "ds-code-accordion--expanded",
1030
+ u && "ds-code-accordion--expanded",
1031
1031
  i
1032
1032
  ].filter(Boolean).join(" ");
1033
- return /* @__PURE__ */ e.jsxs("div", { className: N, ...l, children: [
1033
+ return /* @__PURE__ */ e.jsxs("div", { className: j, ...l, children: [
1034
1034
  /* @__PURE__ */ e.jsxs(
1035
1035
  "button",
1036
1036
  {
1037
1037
  type: "button",
1038
1038
  className: "ds-code-accordion__header",
1039
1039
  onClick: v,
1040
- "aria-expanded": f,
1040
+ "aria-expanded": u,
1041
1041
  children: [
1042
- /* @__PURE__ */ e.jsx("span", { className: "ds-code-accordion__title", children: u }),
1042
+ /* @__PURE__ */ e.jsx("span", { className: "ds-code-accordion__title", children: f }),
1043
1043
  /* @__PURE__ */ e.jsx(
1044
1044
  we,
1045
1045
  {
1046
- size: U[2],
1046
+ size: q[2],
1047
1047
  strokeWidth: 1.5,
1048
- className: `ds-code-accordion__icon ${f ? "ds-code-accordion__icon--expanded" : ""}`
1048
+ className: `ds-code-accordion__icon ${u ? "ds-code-accordion__icon--expanded" : ""}`
1049
1049
  }
1050
1050
  )
1051
1051
  ]
@@ -1054,11 +1054,11 @@ function Pt({
1054
1054
  /* @__PURE__ */ e.jsx("div", { className: "ds-code-accordion__content", children: /* @__PURE__ */ e.jsx("div", { className: "ds-code-accordion__inner", children: /* @__PURE__ */ e.jsx("pre", { className: "ds-code-accordion__pre ds-scrollable", children: /* @__PURE__ */ e.jsx("code", { children: t }) }) }) })
1055
1055
  ] });
1056
1056
  }
1057
- function Is({ children: t, block: s = !1, collapsible: n = !1, title: a, defaultExpanded: r = !1, ...o }) {
1057
+ function Ms({ children: t, block: s = !1, collapsible: n = !1, title: a, defaultExpanded: r = !1, ...o }) {
1058
1058
  const i = K(), l = a ?? i.code;
1059
- return s ? n ? /* @__PURE__ */ e.jsx(Pt, { title: l, defaultExpanded: r, ...o, children: t }) : /* @__PURE__ */ e.jsx("pre", { className: "ds-code-block ds-scrollable", ...o, children: /* @__PURE__ */ e.jsx("code", { children: t }) }) : /* @__PURE__ */ e.jsx("code", { className: "ds-code-inline", ...o, children: t });
1059
+ return s ? n ? /* @__PURE__ */ e.jsx(Wt, { title: l, defaultExpanded: r, ...o, children: t }) : /* @__PURE__ */ e.jsx("pre", { className: "ds-code-block ds-scrollable", ...o, children: /* @__PURE__ */ e.jsx("code", { children: t }) }) : /* @__PURE__ */ e.jsx("code", { className: "ds-code-inline", ...o, children: t });
1060
1060
  }
1061
- function Bs({ href: t, children: s, onClick: n, target: a, rel: r, ...o }) {
1061
+ function zs({ href: t, children: s, onClick: n, target: a, rel: r, ...o }) {
1062
1062
  const l = a === "_blank" ? r ? `${r} noopener noreferrer` : "noopener noreferrer" : r;
1063
1063
  return /* @__PURE__ */ e.jsx(
1064
1064
  "a",
@@ -1073,27 +1073,27 @@ function Bs({ href: t, children: s, onClick: n, target: a, rel: r, ...o }) {
1073
1073
  }
1074
1074
  );
1075
1075
  }
1076
- function Ds({ children: t, size: s = "m", variant: n = "ghost", ...a }) {
1076
+ function Fs({ children: t, size: s = "m", variant: n = "ghost", ...a }) {
1077
1077
  return /* @__PURE__ */ e.jsx("div", { className: "ds-tabs", role: "tablist", ...a, children: X.Children.map(t, (r) => X.isValidElement(r) ? X.cloneElement(r, { size: s, variant: n }) : r) });
1078
1078
  }
1079
- function Ls({ children: t, selected: s = !1, onClick: n, size: a = "m", variant: r = "ghost", disabled: o = !1, icon: i, href: l, ...c }) {
1080
- const u = i && !t, d = [
1079
+ function Ws({ children: t, selected: s = !1, onClick: n, size: a = "m", variant: r = "ghost", disabled: o = !1, icon: i, href: l, ...c }) {
1080
+ const f = i && !t, d = [
1081
1081
  "ds-tab",
1082
1082
  `ds-tab--${a}`,
1083
1083
  `ds-tab--${r}`,
1084
1084
  s && "ds-tab--selected",
1085
- u && "ds-tab--icon-only"
1085
+ f && "ds-tab--icon-only"
1086
1086
  ].filter(Boolean).join(" "), p = /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1087
1087
  i && /* @__PURE__ */ e.jsx("span", { className: "ds-tab-icon", children: i }),
1088
1088
  t
1089
1089
  ] });
1090
1090
  if (l) {
1091
- const h = (f) => {
1091
+ const h = (u) => {
1092
1092
  if (o) {
1093
- f.preventDefault();
1093
+ u.preventDefault();
1094
1094
  return;
1095
1095
  }
1096
- f.metaKey || f.ctrlKey || f.button === 1 || (f.preventDefault(), n == null || n(f));
1096
+ u.metaKey || u.ctrlKey || u.button === 1 || (u.preventDefault(), n == null || n(u));
1097
1097
  };
1098
1098
  return /* @__PURE__ */ e.jsx(
1099
1099
  "a",
@@ -1122,29 +1122,29 @@ function Ls({ children: t, selected: s = !1, onClick: n, size: a = "m", variant:
1122
1122
  }
1123
1123
  );
1124
1124
  }
1125
- function Ps({ options: t, value: s, onChange: n, size: a = "m", disabled: r = !1 }) {
1126
- const o = I(null), i = I(null), [l, c] = L(!1), u = I(!1), d = I(null), p = I(null), h = () => {
1125
+ function Cs({ options: t, value: s, onChange: n, size: a = "m", disabled: r = !1 }) {
1126
+ const o = B(null), i = B(null), [l, c] = P(!1), f = B(!1), d = B(null), p = B(null), h = () => {
1127
1127
  if (!o.current) return;
1128
- const f = o.current.querySelector(`[data-value="${s}"]`);
1129
- if (!f) return;
1130
- const v = o.current.getBoundingClientRect(), N = f.getBoundingClientRect(), g = N.left - v.left, w = N.width;
1131
- i.current ? (i.current.style.transition = u.current ? "left var(--transition-normal), width var(--transition-normal)" : "none", i.current.style.left = g + "px", i.current.style.width = w + "px", u.current = !1) : (c(!0), requestAnimationFrame(() => {
1128
+ const u = o.current.querySelector(`[data-value="${s}"]`);
1129
+ if (!u) return;
1130
+ const v = o.current.getBoundingClientRect(), j = u.getBoundingClientRect(), N = j.left - v.left, w = j.width;
1131
+ i.current ? (i.current.style.transition = f.current ? "left var(--transition-normal), width var(--transition-normal)" : "none", i.current.style.left = N + "px", i.current.style.width = w + "px", f.current = !1) : (c(!0), requestAnimationFrame(() => {
1132
1132
  if (!i.current || !o.current) return;
1133
1133
  const y = o.current.querySelector(`[data-value="${s}"]`);
1134
1134
  if (!y) return;
1135
- const k = o.current.getBoundingClientRect(), j = y.getBoundingClientRect();
1136
- i.current.style.transition = "none", i.current.style.left = j.left - k.left + "px", i.current.style.width = j.width + "px";
1135
+ const E = o.current.getBoundingClientRect(), g = y.getBoundingClientRect();
1136
+ i.current.style.transition = "none", i.current.style.left = g.left - E.left + "px", i.current.style.width = g.width + "px";
1137
1137
  }));
1138
1138
  };
1139
- return p.current = h, ft(() => {
1140
- const f = d.current !== s;
1141
- d.current = s, u.current = l && f, h();
1142
- }), z(() => {
1139
+ return p.current = h, it(() => {
1140
+ const u = d.current !== s;
1141
+ d.current = s, f.current = l && u, h();
1142
+ }), F(() => {
1143
1143
  if (!o.current) return;
1144
- const f = new ResizeObserver(() => {
1145
- u.current = !1, p.current();
1144
+ const u = new ResizeObserver(() => {
1145
+ f.current = !1, p.current();
1146
1146
  });
1147
- return f.observe(o.current), () => f.disconnect();
1147
+ return u.observe(o.current), () => u.disconnect();
1148
1148
  }, []), /* @__PURE__ */ e.jsxs(
1149
1149
  "div",
1150
1150
  {
@@ -1164,21 +1164,21 @@ function Ps({ options: t, value: s, onChange: n, size: a = "m", disabled: r = !1
1164
1164
  "aria-hidden": "true"
1165
1165
  }
1166
1166
  ),
1167
- t.map((f) => /* @__PURE__ */ e.jsxs(
1167
+ t.map((u) => /* @__PURE__ */ e.jsxs(
1168
1168
  "button",
1169
1169
  {
1170
1170
  type: "button",
1171
- "data-value": f.value,
1172
- className: ["ds-seg__btn", s === f.value && "ds-seg__btn--active"].filter(Boolean).join(" "),
1173
- onClick: () => !r && n(f.value),
1174
- "aria-pressed": s === f.value,
1171
+ "data-value": u.value,
1172
+ className: ["ds-seg__btn", s === u.value && "ds-seg__btn--active"].filter(Boolean).join(" "),
1173
+ onClick: () => !r && n(u.value),
1174
+ "aria-pressed": s === u.value,
1175
1175
  disabled: r,
1176
1176
  children: [
1177
- f.icon && /* @__PURE__ */ e.jsx("span", { className: "ds-seg__btn-icon", "aria-hidden": "true", children: f.icon }),
1178
- f.label
1177
+ u.icon && /* @__PURE__ */ e.jsx("span", { className: "ds-seg__btn-icon", "aria-hidden": "true", children: u.icon }),
1178
+ u.label
1179
1179
  ]
1180
1180
  },
1181
- f.value
1181
+ u.value
1182
1182
  ))
1183
1183
  ]
1184
1184
  }
@@ -1193,8 +1193,8 @@ function Oe({
1193
1193
  padding: o = "m",
1194
1194
  ...i
1195
1195
  }) {
1196
- const [l, c] = L(n), u = a !== void 0, d = u ? a : l, p = () => {
1197
- u ? r == null || r(!a) : c((f) => !f);
1196
+ const [l, c] = P(n), f = a !== void 0, d = f ? a : l, p = () => {
1197
+ f ? r == null || r(!a) : c((u) => !u);
1198
1198
  }, h = [
1199
1199
  "ds-accordion",
1200
1200
  `ds-accordion--${o}`,
@@ -1213,7 +1213,7 @@ function Oe({
1213
1213
  /* @__PURE__ */ e.jsx(
1214
1214
  we,
1215
1215
  {
1216
- size: U[2],
1216
+ size: q[2],
1217
1217
  strokeWidth: 1.5,
1218
1218
  className: `ds-accordion__icon ${d ? "ds-accordion__icon--expanded" : ""}`
1219
1219
  }
@@ -1224,63 +1224,63 @@ function Oe({
1224
1224
  /* @__PURE__ */ e.jsx("div", { className: "ds-accordion__content", children: /* @__PURE__ */ e.jsx("div", { className: "ds-accordion__content-inner", children: /* @__PURE__ */ e.jsx("div", { className: "ds-accordion__content-body", children: t }) }) })
1225
1225
  ] });
1226
1226
  }
1227
- const le = 8, pe = 8;
1228
- function Mt(t, s, n) {
1227
+ const ce = 8, pe = 8;
1228
+ function Ct(t, s, n) {
1229
1229
  const a = window.innerWidth;
1230
1230
  let r, o;
1231
1231
  switch (t) {
1232
1232
  case "top":
1233
- r = s.top - n.height - le, o = s.left + s.width / 2 - n.width / 2;
1233
+ r = s.top - n.height - ce, o = s.left + s.width / 2 - n.width / 2;
1234
1234
  break;
1235
1235
  case "bottom":
1236
- r = s.bottom + le, o = s.left + s.width / 2 - n.width / 2;
1236
+ r = s.bottom + ce, o = s.left + s.width / 2 - n.width / 2;
1237
1237
  break;
1238
1238
  case "left":
1239
- r = s.top + s.height / 2 - n.height / 2, o = s.left - n.width - le;
1239
+ r = s.top + s.height / 2 - n.height / 2, o = s.left - n.width - ce;
1240
1240
  break;
1241
1241
  case "right":
1242
- r = s.top + s.height / 2 - n.height / 2, o = s.right + le;
1242
+ r = s.top + s.height / 2 - n.height / 2, o = s.right + ce;
1243
1243
  break;
1244
1244
  default:
1245
- r = s.bottom + le, o = s.left;
1245
+ r = s.bottom + ce, o = s.left;
1246
1246
  }
1247
1247
  const i = Math.max(pe, Math.min(a - n.width - pe, o)), l = o - i;
1248
1248
  return { top: r, left: i, arrowOffset: l };
1249
1249
  }
1250
- function zt(t, s, n) {
1250
+ function Ot(t, s, n) {
1251
1251
  const a = window.innerWidth, r = window.innerHeight;
1252
- if (t.top >= s + le + pe) return "top";
1253
- if (r - t.bottom >= s + le + pe) return "bottom";
1254
- if (a - t.right >= n + le + pe) return "right";
1255
- if (t.left >= n + le + pe) return "left";
1252
+ if (t.top >= s + ce + pe) return "top";
1253
+ if (r - t.bottom >= s + ce + pe) return "bottom";
1254
+ if (a - t.right >= n + ce + pe) return "right";
1255
+ if (t.left >= n + ce + pe) return "left";
1256
1256
  const o = Math.max(t.top, r - t.bottom, t.left, a - t.right);
1257
1257
  return o === t.top ? "top" : o === r - t.bottom ? "bottom" : o === a - t.right ? "right" : "left";
1258
1258
  }
1259
- function Ce({ children: t, content: s, position: n, ...a }) {
1260
- const [r, o] = L(!1), [i, l] = L({ visibility: "hidden" }), [c, u] = L(n || "top"), d = I(null), p = I(null), h = I(!1), f = () => {
1259
+ function Ue({ children: t, content: s, position: n, ...a }) {
1260
+ const [r, o] = P(!1), [i, l] = P({ visibility: "hidden" }), [c, f] = P(n || "top"), d = B(null), p = B(null), h = B(!1), u = () => {
1261
1261
  if (!d.current || !p.current) return;
1262
- const N = d.current.getBoundingClientRect(), g = p.current.getBoundingClientRect(), w = n || zt(N, g.height, g.width), { top: y, left: k, arrowOffset: j } = Mt(w, N, g);
1263
- u(w), l({
1262
+ const j = d.current.getBoundingClientRect(), N = p.current.getBoundingClientRect(), w = n || Ot(j, N.height, N.width), { top: y, left: E, arrowOffset: g } = Ct(w, j, N);
1263
+ f(w), l({
1264
1264
  position: "fixed",
1265
1265
  top: y,
1266
- left: k,
1266
+ left: E,
1267
1267
  visibility: "visible",
1268
- "--arrow-offset": `${j}px`
1268
+ "--arrow-offset": `${g}px`
1269
1269
  });
1270
1270
  };
1271
- if (z(() => {
1271
+ if (F(() => {
1272
1272
  if (!r) return;
1273
1273
  l({ position: "fixed", visibility: "hidden" });
1274
- const N = requestAnimationFrame(f);
1275
- return window.addEventListener("scroll", f, !0), window.addEventListener("resize", f), () => {
1276
- cancelAnimationFrame(N), window.removeEventListener("scroll", f, !0), window.removeEventListener("resize", f);
1274
+ const j = requestAnimationFrame(u);
1275
+ return window.addEventListener("scroll", u, !0), window.addEventListener("resize", u), () => {
1276
+ cancelAnimationFrame(j), window.removeEventListener("scroll", u, !0), window.removeEventListener("resize", u);
1277
1277
  };
1278
- }, [r, n]), z(() => {
1278
+ }, [r, n]), F(() => {
1279
1279
  if (!r) return;
1280
- const N = (g) => {
1281
- d.current && !d.current.contains(g.target) && o(!1);
1280
+ const j = (N) => {
1281
+ d.current && !d.current.contains(N.target) && o(!1);
1282
1282
  };
1283
- return document.addEventListener("touchstart", N), () => document.removeEventListener("touchstart", N);
1283
+ return document.addEventListener("touchstart", j), () => document.removeEventListener("touchstart", j);
1284
1284
  }, [r]), !s) return t;
1285
1285
  const v = r && /* @__PURE__ */ e.jsx(
1286
1286
  "div",
@@ -1305,17 +1305,126 @@ function Ce({ children: t, content: s, position: n, ...a }) {
1305
1305
  h.current || o(!1);
1306
1306
  },
1307
1307
  onTouchStart: () => {
1308
- h.current = !0, o((N) => !N);
1308
+ h.current = !0, o((j) => !j);
1309
1309
  },
1310
1310
  ...a,
1311
1311
  children: [
1312
1312
  t,
1313
- typeof document < "u" && oe.createPortal(v, document.body)
1313
+ typeof document < "u" && re.createPortal(v, document.body)
1314
1314
  ]
1315
1315
  }
1316
1316
  );
1317
1317
  }
1318
- function Ms({
1318
+ const Xe = 8, Ee = 8, Ut = 140;
1319
+ function Je(t) {
1320
+ const s = String(t ?? "").replace(/^@/, "").trim();
1321
+ return s ? `@${s}` : "";
1322
+ }
1323
+ function Os({
1324
+ label: t,
1325
+ children: s,
1326
+ mode: n = "click",
1327
+ avatar: a,
1328
+ name: r,
1329
+ handle: o,
1330
+ description: i,
1331
+ actions: l,
1332
+ className: c = "",
1333
+ popoverClassName: f = "",
1334
+ ...d
1335
+ }) {
1336
+ const p = xt(), h = B(null), u = B(null), v = B(null), [j, N] = P(!1), [w, y] = P(null), E = s != null, g = r || t || "", b = Je(t || r), S = Je(o), A = te(() => {
1337
+ v.current != null && (window.clearTimeout(v.current), v.current = null);
1338
+ }, []), D = te(() => {
1339
+ A(), N(!0);
1340
+ }, [A]), C = te(() => {
1341
+ A(), v.current = window.setTimeout(() => N(!1), Ut);
1342
+ }, [A]), k = te(() => {
1343
+ const W = h.current, M = u.current;
1344
+ if (!W) return;
1345
+ const _ = W.getBoundingClientRect(), $ = (M == null ? void 0 : M.offsetHeight) ?? 160, R = (M == null ? void 0 : M.offsetWidth) ?? 260;
1346
+ let V = _.bottom + Xe;
1347
+ V + $ > window.innerHeight - Ee && (V = Math.max(Ee, _.top - $ - Xe));
1348
+ const H = Math.max(Ee, Math.min(_.left, window.innerWidth - R - Ee));
1349
+ y({ top: V, left: H });
1350
+ }, []);
1351
+ it(() => {
1352
+ j && k();
1353
+ }, [j, k]), F(() => {
1354
+ if (!j) return;
1355
+ const W = () => k(), M = ($) => {
1356
+ $.key === "Escape" && N(!1);
1357
+ }, _ = ($) => {
1358
+ var V, H;
1359
+ if (n === "hover") return;
1360
+ const R = $.target;
1361
+ (V = u.current) != null && V.contains(R) || (H = h.current) != null && H.contains(R) || N(!1);
1362
+ };
1363
+ return window.addEventListener("scroll", W, !0), window.addEventListener("resize", W), document.addEventListener("keydown", M), document.addEventListener("mousedown", _), () => {
1364
+ window.removeEventListener("scroll", W, !0), window.removeEventListener("resize", W), document.removeEventListener("keydown", M), document.removeEventListener("mousedown", _);
1365
+ };
1366
+ }, [j, k, n]), F(() => () => A(), [A]);
1367
+ const L = n === "hover" ? { onMouseEnter: D, onMouseLeave: C } : {}, O = j ? re.createPortal(
1368
+ /* @__PURE__ */ e.jsxs(
1369
+ "div",
1370
+ {
1371
+ ref: u,
1372
+ id: p,
1373
+ role: "dialog",
1374
+ "aria-label": g || b || "Mention",
1375
+ "data-ds-portal": "",
1376
+ className: ["ds-mention__popover", f].filter(Boolean).join(" "),
1377
+ style: w ? { top: w.top, left: w.left } : { top: -9999, left: -9999, visibility: "hidden" },
1378
+ ...L,
1379
+ children: [
1380
+ (a || g || S) && /* @__PURE__ */ e.jsxs("div", { className: "ds-mention__head", children: [
1381
+ a,
1382
+ (g || S) && /* @__PURE__ */ e.jsxs("div", { className: "ds-mention__meta", children: [
1383
+ g ? /* @__PURE__ */ e.jsx("span", { className: "ds-mention__name", children: g }) : null,
1384
+ S ? /* @__PURE__ */ e.jsx("span", { className: "ds-mention__handle", children: S }) : null
1385
+ ] })
1386
+ ] }),
1387
+ i ? /* @__PURE__ */ e.jsx("p", { className: "ds-mention__desc", children: i }) : null,
1388
+ l ? /* @__PURE__ */ e.jsx("div", { className: "ds-mention__actions", onClick: () => N(!1), children: l }) : null
1389
+ ]
1390
+ }
1391
+ ),
1392
+ document.body
1393
+ ) : null;
1394
+ return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1395
+ /* @__PURE__ */ e.jsx(
1396
+ "button",
1397
+ {
1398
+ ...d,
1399
+ ref: h,
1400
+ type: "button",
1401
+ className: [
1402
+ "ds-mention",
1403
+ E && "ds-mention--custom",
1404
+ c
1405
+ ].filter(Boolean).join(" "),
1406
+ "aria-expanded": j,
1407
+ "aria-haspopup": "dialog",
1408
+ "aria-label": E && (b || g) || void 0,
1409
+ "aria-controls": j ? p : void 0,
1410
+ onClick: (W) => {
1411
+ var M;
1412
+ if ((M = d.onClick) == null || M.call(d, W), !W.defaultPrevented) {
1413
+ if (W.preventDefault(), W.stopPropagation(), n === "hover") {
1414
+ D();
1415
+ return;
1416
+ }
1417
+ N((_) => !_);
1418
+ }
1419
+ },
1420
+ ...L,
1421
+ children: E ? s : b
1422
+ }
1423
+ ),
1424
+ typeof document < "u" ? O : null
1425
+ ] });
1426
+ }
1427
+ function Us({
1319
1428
  checked: t = !1,
1320
1429
  onChange: s,
1321
1430
  size: n = "m",
@@ -1337,7 +1446,7 @@ function Ms({
1337
1446
  id: l,
1338
1447
  className: "ds-toggle__input",
1339
1448
  checked: t,
1340
- onChange: (u) => s == null ? void 0 : s(u.target.checked),
1449
+ onChange: (f) => s == null ? void 0 : s(f.target.checked),
1341
1450
  disabled: a,
1342
1451
  ...i
1343
1452
  }
@@ -1346,7 +1455,7 @@ function Ms({
1346
1455
  r && /* @__PURE__ */ e.jsx("span", { className: "ds-toggle__label", children: r })
1347
1456
  ] });
1348
1457
  }
1349
- function zs({
1458
+ function Hs({
1350
1459
  checked: t = !1,
1351
1460
  onChange: s,
1352
1461
  size: n = "m",
@@ -1359,7 +1468,7 @@ function zs({
1359
1468
  "ds-checkbox",
1360
1469
  `ds-checkbox--${n}`,
1361
1470
  a && "ds-checkbox--disabled"
1362
- ].filter(Boolean).join(" "), u = n === "xs" ? 10 : n === "small" ? 14 : n === "large" ? 20 : 16;
1471
+ ].filter(Boolean).join(" "), f = n === "xs" ? 10 : n === "small" ? 14 : n === "large" ? 20 : 16;
1363
1472
  return /* @__PURE__ */ e.jsxs("label", { className: c, htmlFor: l, children: [
1364
1473
  /* @__PURE__ */ e.jsx(
1365
1474
  "input",
@@ -1374,9 +1483,9 @@ function zs({
1374
1483
  }
1375
1484
  ),
1376
1485
  /* @__PURE__ */ e.jsx("span", { className: "ds-checkbox__box", children: t && /* @__PURE__ */ e.jsx(
1377
- Le,
1486
+ Pe,
1378
1487
  {
1379
- size: u,
1488
+ size: f,
1380
1489
  strokeWidth: 2.5,
1381
1490
  className: "ds-checkbox__icon"
1382
1491
  }
@@ -1384,7 +1493,7 @@ function zs({
1384
1493
  r && /* @__PURE__ */ e.jsx("span", { className: "ds-checkbox__label", children: r })
1385
1494
  ] });
1386
1495
  }
1387
- function Fs({
1496
+ function Vs({
1388
1497
  checked: t = !1,
1389
1498
  onChange: s,
1390
1499
  size: n = "m",
@@ -1395,17 +1504,17 @@ function Fs({
1395
1504
  id: l,
1396
1505
  ...c
1397
1506
  }) {
1398
- const u = l || `radio-${X.useId()}`, d = [
1507
+ const f = l || `radio-${X.useId()}`, d = [
1399
1508
  "ds-radio",
1400
1509
  `ds-radio--${n}`,
1401
1510
  a && "ds-radio--disabled"
1402
1511
  ].filter(Boolean).join(" ");
1403
- return /* @__PURE__ */ e.jsxs("label", { className: d, htmlFor: u, children: [
1512
+ return /* @__PURE__ */ e.jsxs("label", { className: d, htmlFor: f, children: [
1404
1513
  /* @__PURE__ */ e.jsx(
1405
1514
  "input",
1406
1515
  {
1407
1516
  type: "radio",
1408
- id: u,
1517
+ id: f,
1409
1518
  className: "ds-radio__input",
1410
1519
  checked: t,
1411
1520
  onChange: (p) => s == null ? void 0 : s(p.target.checked),
@@ -1419,7 +1528,7 @@ function Fs({
1419
1528
  r && /* @__PURE__ */ e.jsx("span", { className: "ds-radio__label", children: r })
1420
1529
  ] });
1421
1530
  }
1422
- function Ft({ width: t, height: s, shape: n = "rect", aspectRatio: a, className: r = "", style: o = {}, ...i }) {
1531
+ function Ht({ width: t, height: s, shape: n = "rect", aspectRatio: a, className: r = "", style: o = {}, ...i }) {
1423
1532
  return /* @__PURE__ */ e.jsx(
1424
1533
  "span",
1425
1534
  {
@@ -1430,7 +1539,7 @@ function Ft({ width: t, height: s, shape: n = "rect", aspectRatio: a, className:
1430
1539
  }
1431
1540
  );
1432
1541
  }
1433
- function Wt({ lines: t = 1, lastLineWidth: s = "70%", gap: n, className: a = "", style: r = {}, ...o }) {
1542
+ function Vt({ lines: t = 1, lastLineWidth: s = "70%", gap: n, className: a = "", style: r = {}, ...o }) {
1434
1543
  return /* @__PURE__ */ e.jsx(
1435
1544
  "span",
1436
1545
  {
@@ -1449,20 +1558,20 @@ function Wt({ lines: t = 1, lastLineWidth: s = "70%", gap: n, className: a = "",
1449
1558
  }
1450
1559
  );
1451
1560
  }
1452
- Ft.Text = Wt;
1453
- function Ot(t) {
1561
+ Ht.Text = Vt;
1562
+ function Yt(t) {
1454
1563
  let s = 2166136261;
1455
1564
  for (let n = 0; n < t.length; n++)
1456
1565
  s ^= t.charCodeAt(n), s = Math.imul(s, 16777619) >>> 0;
1457
1566
  return s % 360;
1458
1567
  }
1459
- function Ct(t) {
1568
+ function qt(t) {
1460
1569
  if (!t) return "";
1461
1570
  const s = t.trim().split(/\s+/);
1462
1571
  return s.length >= 2 ? (s[0][0] + s[1][0]).toUpperCase() : t[0].toUpperCase();
1463
1572
  }
1464
- function Ws({ seed: t, icon: s, src: n, size: a = 32, className: r = "", style: o = {}, ...i }) {
1465
- const l = Ot(t ?? ""), [c, u] = L(!1), d = s ?? /* @__PURE__ */ e.jsx("span", { className: "ds-avatar__initials", children: Ct(t) });
1573
+ function Ys({ seed: t, icon: s, src: n, size: a = 32, className: r = "", style: o = {}, ...i }) {
1574
+ const l = Yt(t ?? ""), [c, f] = P(!1), d = s ?? /* @__PURE__ */ e.jsx("span", { className: "ds-avatar__initials", children: qt(t) });
1466
1575
  return /* @__PURE__ */ e.jsx(
1467
1576
  "div",
1468
1577
  {
@@ -1470,11 +1579,11 @@ function Ws({ seed: t, icon: s, src: n, size: a = 32, className: r = "", style:
1470
1579
  style: { width: a, height: a, "--ds-avatar-h": l, ...o },
1471
1580
  "aria-hidden": "true",
1472
1581
  ...i,
1473
- children: n && !c ? /* @__PURE__ */ e.jsx("img", { src: n, alt: "", onError: () => u(!0) }) : d
1582
+ children: n && !c ? /* @__PURE__ */ e.jsx("img", { src: n, alt: "", onError: () => f(!0) }) : d
1474
1583
  }
1475
1584
  );
1476
1585
  }
1477
- function Os({
1586
+ function qs({
1478
1587
  children: t,
1479
1588
  size: s = "compact",
1480
1589
  stickyTop: n,
@@ -1504,13 +1613,13 @@ function Os({
1504
1613
  }
1505
1614
  );
1506
1615
  }
1507
- function Cs({ children: t, ...s }) {
1616
+ function Gs({ children: t, ...s }) {
1508
1617
  return /* @__PURE__ */ e.jsx("thead", { ...s, children: t });
1509
1618
  }
1510
- function Us({ children: t, ...s }) {
1619
+ function Ks({ children: t, ...s }) {
1511
1620
  return /* @__PURE__ */ e.jsx("tbody", { ...s, children: t });
1512
1621
  }
1513
- function Vs({ children: t, interactive: s, selected: n, subheader: a, exiting: r, updated: o, className: i = "", onClick: l, ...c }) {
1622
+ function Xs({ children: t, interactive: s, selected: n, subheader: a, exiting: r, updated: o, className: i = "", onClick: l, ...c }) {
1514
1623
  return /* @__PURE__ */ e.jsx(
1515
1624
  "tr",
1516
1625
  {
@@ -1529,11 +1638,11 @@ function Vs({ children: t, interactive: s, selected: n, subheader: a, exiting: r
1529
1638
  }
1530
1639
  );
1531
1640
  }
1532
- function Hs({ children: t, colSpan: s = 999, ...n }) {
1641
+ function Js({ children: t, colSpan: s = 999, ...n }) {
1533
1642
  return /* @__PURE__ */ e.jsx("tr", { className: "ds-table-row ds-table-row--subheader", ...n, children: /* @__PURE__ */ e.jsx("td", { colSpan: s, children: t }) });
1534
1643
  }
1535
- function Ys({ children: t, align: s = "left", sortDir: n, onSort: a, width: r, className: o = "", style: i = {}, ...l }) {
1536
- const c = !!a || n !== void 0, u = n === "asc" ? ht : n === "desc" ? we : xt;
1644
+ function Zs({ children: t, align: s = "left", sortDir: n, onSort: a, width: r, className: o = "", style: i = {}, ...l }) {
1645
+ const c = !!a || n !== void 0, f = n === "asc" ? bt : n === "desc" ? we : jt;
1537
1646
  return /* @__PURE__ */ e.jsx(
1538
1647
  "th",
1539
1648
  {
@@ -1549,12 +1658,12 @@ function Ys({ children: t, align: s = "left", sortDir: n, onSort: a, width: r, c
1549
1658
  ...l,
1550
1659
  children: c ? /* @__PURE__ */ e.jsxs("span", { className: "ds-th__inner", children: [
1551
1660
  t,
1552
- /* @__PURE__ */ e.jsx("span", { className: "ds-th__sort-icon", children: /* @__PURE__ */ e.jsx(u, { size: 11, strokeWidth: 2.5 }) })
1661
+ /* @__PURE__ */ e.jsx("span", { className: "ds-th__sort-icon", children: /* @__PURE__ */ e.jsx(f, { size: 11, strokeWidth: 2.5 }) })
1553
1662
  ] }) : t
1554
1663
  }
1555
1664
  );
1556
1665
  }
1557
- function qs({ children: t, align: s = "left", secondary: n, muted: a, truncate: r, nowrap: o, className: i = "", ...l }) {
1666
+ function Qs({ children: t, align: s = "left", secondary: n, muted: a, truncate: r, nowrap: o, className: i = "", ...l }) {
1558
1667
  return /* @__PURE__ */ e.jsx(
1559
1668
  "td",
1560
1669
  {
@@ -1572,7 +1681,7 @@ function qs({ children: t, align: s = "left", secondary: n, muted: a, truncate:
1572
1681
  }
1573
1682
  );
1574
1683
  }
1575
- function Gs({
1684
+ function en({
1576
1685
  icon: t,
1577
1686
  title: s,
1578
1687
  description: n,
@@ -1595,7 +1704,7 @@ function Gs({
1595
1704
  }
1596
1705
  );
1597
1706
  }
1598
- function Ks({
1707
+ function tn({
1599
1708
  label: t,
1600
1709
  hint: s,
1601
1710
  error: n,
@@ -1605,9 +1714,9 @@ function Ks({
1605
1714
  children: i,
1606
1715
  className: l = "",
1607
1716
  style: c,
1608
- ...u
1717
+ ...f
1609
1718
  }) {
1610
- const d = X.useId(), p = o ?? d, h = `${p}-hint`, f = `${p}-error`;
1719
+ const d = X.useId(), p = o ?? d, h = `${p}-hint`, u = `${p}-error`;
1611
1720
  return /* @__PURE__ */ e.jsxs(
1612
1721
  "div",
1613
1722
  {
@@ -1616,17 +1725,17 @@ function Ks({
1616
1725
  "data-required": a ? "" : void 0,
1617
1726
  "data-disabled": r ? "" : void 0,
1618
1727
  style: c,
1619
- ...u,
1728
+ ...f,
1620
1729
  children: [
1621
1730
  t && /* @__PURE__ */ e.jsx("label", { className: "ds-field-label", htmlFor: p, children: t }),
1622
1731
  /* @__PURE__ */ e.jsx("div", { className: "ds-field-control", children: i }),
1623
1732
  s && !n && /* @__PURE__ */ e.jsx("p", { className: "ds-field-hint", id: h, children: s }),
1624
- n && /* @__PURE__ */ e.jsx("p", { className: "ds-field-error", id: f, role: "alert", children: n })
1733
+ n && /* @__PURE__ */ e.jsx("p", { className: "ds-field-error", id: u, role: "alert", children: n })
1625
1734
  ]
1626
1735
  }
1627
1736
  );
1628
1737
  }
1629
- function Xs({ label: t, value: s, delta: n, size: a = "m", inline: r = !1, className: o = "", style: i, ...l }) {
1738
+ function sn({ label: t, value: s, delta: n, size: a = "m", inline: r = !1, className: o = "", style: i, ...l }) {
1630
1739
  const c = n != null && n.startsWith("+") ? "up" : n != null && n.startsWith("-") ? "down" : "neutral";
1631
1740
  return /* @__PURE__ */ e.jsxs(
1632
1741
  "div",
@@ -1647,7 +1756,7 @@ function Xs({ label: t, value: s, delta: n, size: a = "m", inline: r = !1, class
1647
1756
  }
1648
1757
  );
1649
1758
  }
1650
- function Js({
1759
+ function nn({
1651
1760
  children: t,
1652
1761
  separator: s = "/",
1653
1762
  "aria-label": n,
@@ -1663,14 +1772,14 @@ function Js({
1663
1772
  "aria-label": n ?? i.breadcrumb,
1664
1773
  style: r,
1665
1774
  ...o,
1666
- children: /* @__PURE__ */ e.jsx("ol", { className: "ds-breadcrumb-list", children: l.map((c, u) => /* @__PURE__ */ e.jsxs("li", { className: "ds-breadcrumb-item", children: [
1775
+ children: /* @__PURE__ */ e.jsx("ol", { className: "ds-breadcrumb-list", children: l.map((c, f) => /* @__PURE__ */ e.jsxs("li", { className: "ds-breadcrumb-item", children: [
1667
1776
  c,
1668
- u < l.length - 1 && /* @__PURE__ */ e.jsx("span", { className: "ds-breadcrumb-sep", "aria-hidden": "true", children: s })
1669
- ] }, u)) })
1777
+ f < l.length - 1 && /* @__PURE__ */ e.jsx("span", { className: "ds-breadcrumb-sep", "aria-hidden": "true", children: s })
1778
+ ] }, f)) })
1670
1779
  }
1671
1780
  );
1672
1781
  }
1673
- function Zs({
1782
+ function rn({
1674
1783
  page: t,
1675
1784
  total: s,
1676
1785
  onChange: n,
@@ -1680,16 +1789,16 @@ function Zs({
1680
1789
  nextLabel: i,
1681
1790
  className: l = "",
1682
1791
  style: c,
1683
- ...u
1792
+ ...f
1684
1793
  }) {
1685
- const d = K(), { t: p } = ye(), h = Ut(t, s, a);
1794
+ const d = K(), { t: p } = ye(), h = Gt(t, s, a);
1686
1795
  return /* @__PURE__ */ e.jsxs(
1687
1796
  "nav",
1688
1797
  {
1689
1798
  className: `ds-pagination${l ? ` ${l}` : ""}`,
1690
1799
  "aria-label": r ?? d.pagination,
1691
1800
  style: c,
1692
- ...u,
1801
+ ...f,
1693
1802
  children: [
1694
1803
  /* @__PURE__ */ e.jsx(
1695
1804
  "button",
@@ -1698,20 +1807,20 @@ function Zs({
1698
1807
  onClick: () => n == null ? void 0 : n(t - 1),
1699
1808
  disabled: t <= 1,
1700
1809
  "aria-label": o ?? d.previousPage,
1701
- children: /* @__PURE__ */ e.jsx(vt, { size: 16 })
1810
+ children: /* @__PURE__ */ e.jsx(gt, { size: 16 })
1702
1811
  }
1703
1812
  ),
1704
1813
  h.map(
1705
- (f, v) => f === "…" ? /* @__PURE__ */ e.jsx("span", { className: "ds-pagination-gap", "aria-hidden": "true", children: "…" }, `gap-${v}`) : /* @__PURE__ */ e.jsx(
1814
+ (u, v) => u === "…" ? /* @__PURE__ */ e.jsx("span", { className: "ds-pagination-gap", "aria-hidden": "true", children: "…" }, `gap-${v}`) : /* @__PURE__ */ e.jsx(
1706
1815
  "button",
1707
1816
  {
1708
- className: `ds-pagination-page${f === t ? " ds-pagination-page--current" : ""}`,
1709
- onClick: () => f !== t && (n == null ? void 0 : n(f)),
1710
- "aria-current": f === t ? "page" : void 0,
1711
- "aria-label": p("pageN", { n: f }),
1712
- children: f
1817
+ className: `ds-pagination-page${u === t ? " ds-pagination-page--current" : ""}`,
1818
+ onClick: () => u !== t && (n == null ? void 0 : n(u)),
1819
+ "aria-current": u === t ? "page" : void 0,
1820
+ "aria-label": p("pageN", { n: u }),
1821
+ children: u
1713
1822
  },
1714
- f
1823
+ u
1715
1824
  )
1716
1825
  ),
1717
1826
  /* @__PURE__ */ e.jsx(
@@ -1721,22 +1830,22 @@ function Zs({
1721
1830
  onClick: () => n == null ? void 0 : n(t + 1),
1722
1831
  disabled: t >= s,
1723
1832
  "aria-label": i ?? d.nextPage,
1724
- children: /* @__PURE__ */ e.jsx(bt, { size: 16 })
1833
+ children: /* @__PURE__ */ e.jsx(Nt, { size: 16 })
1725
1834
  }
1726
1835
  )
1727
1836
  ]
1728
1837
  }
1729
1838
  );
1730
1839
  }
1731
- function Ut(t, s, n) {
1840
+ function Gt(t, s, n) {
1732
1841
  if (s <= 7) return Array.from({ length: s }, (i, l) => l + 1);
1733
1842
  const a = Math.max(2, t - n), r = Math.min(s - 1, t + n), o = [1];
1734
1843
  a > 2 && o.push("…");
1735
1844
  for (let i = a; i <= r; i++) o.push(i);
1736
1845
  return r < s - 1 && o.push("…"), o.push(s), o;
1737
1846
  }
1738
- const Vt = 300;
1739
- function Qs({
1847
+ const Kt = 300;
1848
+ function an({
1740
1849
  children: t,
1741
1850
  title: s,
1742
1851
  onClose: n,
@@ -1746,27 +1855,27 @@ function Qs({
1746
1855
  offsetLeft: i = 0,
1747
1856
  offsetRight: l = 0,
1748
1857
  keepOpenRef: c,
1749
- closeLabel: u,
1858
+ closeLabel: f,
1750
1859
  ...d
1751
1860
  }) {
1752
- const p = K(), h = I(null), f = X.useId(), [v, N] = L(!1), g = () => {
1753
- !n || v || (N(!0), setTimeout(() => {
1754
- N(!1), n();
1755
- }, Vt));
1861
+ const p = K(), h = B(null), u = X.useId(), [v, j] = P(!1), N = () => {
1862
+ !n || v || (j(!0), setTimeout(() => {
1863
+ j(!1), n();
1864
+ }, Kt));
1756
1865
  };
1757
- z(() => {
1758
- const b = (B) => {
1759
- B.key === "Escape" && g();
1760
- }, S = (B) => {
1761
- var W, E, P, O;
1762
- const D = ((E = (W = B.composedPath) == null ? void 0 : W.call(B)) == null ? void 0 : E[0]) ?? B.target;
1763
- (P = c == null ? void 0 : c.current) != null && P.contains(D) || h.current && !h.current.contains(D) && !((O = D.closest) != null && O.call(D, "[data-ds-portal]")) && g();
1866
+ F(() => {
1867
+ const b = (A) => {
1868
+ A.key === "Escape" && N();
1869
+ }, S = (A) => {
1870
+ var C, k, L, O;
1871
+ const D = ((k = (C = A.composedPath) == null ? void 0 : C.call(A)) == null ? void 0 : k[0]) ?? A.target;
1872
+ (L = c == null ? void 0 : c.current) != null && L.contains(D) || h.current && !h.current.contains(D) && !((O = D.closest) != null && O.call(D, "[data-ds-portal]")) && N();
1764
1873
  };
1765
1874
  return document.addEventListener("keydown", b), document.addEventListener("mousedown", S), () => {
1766
1875
  document.removeEventListener("keydown", b), document.removeEventListener("mousedown", S);
1767
1876
  };
1768
1877
  }, [n, v, c]);
1769
- const w = X.Children.toArray(t), y = w.find((b) => (b == null ? void 0 : b.type) === Ke || (b == null ? void 0 : b.type) === xe), k = w.filter((b) => (b == null ? void 0 : b.type) !== Ke && (b == null ? void 0 : b.type) !== xe), j = /* @__PURE__ */ e.jsx(
1878
+ const w = X.Children.toArray(t), y = w.find((b) => (b == null ? void 0 : b.type) === Ze || (b == null ? void 0 : b.type) === xe), E = w.filter((b) => (b == null ? void 0 : b.type) !== Ze && (b == null ? void 0 : b.type) !== xe), g = /* @__PURE__ */ e.jsx(
1770
1879
  "div",
1771
1880
  {
1772
1881
  className: ["ds-side-page-overlay", v && "ds-side-page-overlay--closing"].filter(Boolean).join(" "),
@@ -1782,36 +1891,36 @@ function Qs({
1782
1891
  "data-size": o,
1783
1892
  role: "dialog",
1784
1893
  "aria-modal": "true",
1785
- "aria-labelledby": s ? f : void 0,
1894
+ "aria-labelledby": s ? u : void 0,
1786
1895
  children: [
1787
1896
  n && /* @__PURE__ */ e.jsx(
1788
- ce,
1897
+ de,
1789
1898
  {
1790
1899
  className: "ds-side-page__close",
1791
1900
  variant: "ghost",
1792
1901
  size: "small",
1793
- icon: /* @__PURE__ */ e.jsx(te, { size: U[2], strokeWidth: 1.5 }),
1794
- onClick: g,
1795
- "aria-label": u ?? p.close
1902
+ icon: /* @__PURE__ */ e.jsx(se, { size: q[2], strokeWidth: 1.5 }),
1903
+ onClick: N,
1904
+ "aria-label": f ?? p.close
1796
1905
  }
1797
1906
  ),
1798
1907
  (s || a) && /* @__PURE__ */ e.jsxs("div", { className: "ds-side-page__header", children: [
1799
- s && /* @__PURE__ */ e.jsx("h3", { id: f, className: "ds-side-page__title", children: s }),
1908
+ s && /* @__PURE__ */ e.jsx("h3", { id: u, className: "ds-side-page__title", children: s }),
1800
1909
  a && /* @__PURE__ */ e.jsx("div", { className: "ds-side-page__subheader", children: a })
1801
1910
  ] }),
1802
- /* @__PURE__ */ e.jsx("div", { className: "ds-side-page__body ds-scrollable", children: k }),
1911
+ /* @__PURE__ */ e.jsx("div", { className: "ds-side-page__body ds-scrollable", children: E }),
1803
1912
  y
1804
1913
  ]
1805
1914
  }
1806
1915
  )
1807
1916
  }
1808
1917
  );
1809
- return typeof document > "u" ? j : oe.createPortal(j, document.body);
1918
+ return typeof document > "u" ? g : re.createPortal(g, document.body);
1810
1919
  }
1811
- function Ke({ children: t }) {
1920
+ function Ze({ children: t }) {
1812
1921
  return !t || X.Children.count(t) === 0 ? null : /* @__PURE__ */ e.jsx("div", { className: "ds-side-page__footer", children: t });
1813
1922
  }
1814
- const be = De({ collapsed: !1, side: "left" }), $e = De(!1), en = rt(function({
1923
+ const _e = Le({ collapsed: !1, side: "left" }), Re = Le(!1), on = lt(function({
1815
1924
  children: s,
1816
1925
  collapsed: n = !1,
1817
1926
  side: a = "left",
@@ -1820,12 +1929,12 @@ const be = De({ collapsed: !1, side: "left" }), $e = De(!1), en = rt(function({
1820
1929
  className: i = "",
1821
1930
  ...l
1822
1931
  }, c) {
1823
- const u = [
1932
+ const f = [
1824
1933
  "ds-nav-rail",
1825
1934
  n && "ds-nav-rail--collapsed",
1826
1935
  `ds-nav-rail--${a}`,
1827
1936
  i
1828
- ].filter(Boolean).join(" "), d = de((p) => {
1937
+ ].filter(Boolean).join(" "), d = te((p) => {
1829
1938
  if (!p.target.closest('button, a, input, select, textarea, [role="button"], [tabindex]')) {
1830
1939
  if (n && r) {
1831
1940
  r();
@@ -1834,11 +1943,11 @@ const be = De({ collapsed: !1, side: "left" }), $e = De(!1), en = rt(function({
1834
1943
  !n && o && o();
1835
1944
  }
1836
1945
  }, [n, r, o]);
1837
- return /* @__PURE__ */ e.jsx(be.Provider, { value: { collapsed: n, side: a }, children: /* @__PURE__ */ e.jsx(
1946
+ return /* @__PURE__ */ e.jsx(_e.Provider, { value: { collapsed: n, side: a }, children: /* @__PURE__ */ e.jsx(
1838
1947
  "nav",
1839
1948
  {
1840
1949
  ref: c,
1841
- className: u,
1950
+ className: f,
1842
1951
  onClick: d,
1843
1952
  "data-expandable": n && r ? "" : void 0,
1844
1953
  "data-collapsible": !n && o ? "" : void 0,
@@ -1847,7 +1956,7 @@ const be = De({ collapsed: !1, side: "left" }), $e = De(!1), en = rt(function({
1847
1956
  }
1848
1957
  ) });
1849
1958
  });
1850
- function tn({
1959
+ function ln({
1851
1960
  icon: t,
1852
1961
  label: s,
1853
1962
  selected: n = !1,
@@ -1857,11 +1966,11 @@ function tn({
1857
1966
  count: i,
1858
1967
  updated: l = !1,
1859
1968
  open: c = !1,
1860
- onboarding: u = !1,
1969
+ onboarding: f = !1,
1861
1970
  className: d = "",
1862
1971
  ...p
1863
1972
  }) {
1864
- const { collapsed: h, side: f } = ae(be), v = ae($e), w = {
1973
+ const { collapsed: h, side: u } = ie(_e), v = ie(Re), w = {
1865
1974
  className: [
1866
1975
  "ds-nav-rail__item",
1867
1976
  d
@@ -1875,10 +1984,10 @@ function tn({
1875
1984
  "data-selected": n || void 0,
1876
1985
  "data-disabled": a || void 0,
1877
1986
  "data-open": c || void 0,
1878
- "data-onboarding": u || void 0
1987
+ "data-onboarding": f || void 0
1879
1988
  },
1880
1989
  ...p
1881
- }, y = i != null, k = f === "left" ? "right" : "left", j = /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1990
+ }, y = i != null, E = u === "left" ? "right" : "left", g = /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1882
1991
  /* @__PURE__ */ e.jsx("span", { className: "ds-nav-rail__icon", "aria-hidden": "true", children: t }),
1883
1992
  !h && /* @__PURE__ */ e.jsx("span", { className: "ds-nav-rail__label", children: s }),
1884
1993
  !h && y && /* @__PURE__ */ e.jsx(
@@ -1892,30 +2001,30 @@ function tn({
1892
2001
  !h && l && (!y || i === 0) && /* @__PURE__ */ e.jsx("span", { className: "ds-nav-rail__dot ds-nav-rail__dot--inline", "aria-hidden": "true" }),
1893
2002
  h && y && i !== 0 && /* @__PURE__ */ e.jsx("span", { className: "ds-nav-rail__count-collapsed", "data-updated": l || void 0, children: i > 99 ? "99+" : i }),
1894
2003
  h && l && (!y || i === 0) && /* @__PURE__ */ e.jsx("span", { className: "ds-nav-rail__dot", "aria-hidden": "true" })
1895
- ] }), b = r ? /* @__PURE__ */ e.jsx("a", { href: a ? void 0 : r, ...w, children: j }) : /* @__PURE__ */ e.jsx("button", { type: "button", ...w, children: j });
1896
- return h && !v ? /* @__PURE__ */ e.jsx(Ce, { content: s, position: k, children: b }) : b;
2004
+ ] }), b = r ? /* @__PURE__ */ e.jsx("a", { href: a ? void 0 : r, ...w, children: g }) : /* @__PURE__ */ e.jsx("button", { type: "button", ...w, children: g });
2005
+ return h && !v ? /* @__PURE__ */ e.jsx(Ue, { content: s, position: E, children: b }) : b;
1897
2006
  }
1898
- function sn({ children: t, className: s = "", ...n }) {
2007
+ function cn({ children: t, className: s = "", ...n }) {
1899
2008
  return /* @__PURE__ */ e.jsx("div", { className: ["ds-nav-rail__body", "ds-scrollable", s].filter(Boolean).join(" "), ...n, children: t });
1900
2009
  }
1901
- function nn({ children: t, className: s = "", ...n }) {
2010
+ function dn({ children: t, className: s = "", ...n }) {
1902
2011
  return /* @__PURE__ */ e.jsx("div", { className: ["ds-nav-rail__header", s].filter(Boolean).join(" "), ...n, children: t });
1903
2012
  }
1904
- function rn({ children: t, className: s = "", ...n }) {
2013
+ function un({ children: t, className: s = "", ...n }) {
1905
2014
  return /* @__PURE__ */ e.jsx("div", { className: ["ds-nav-rail__footer", s].filter(Boolean).join(" "), ...n, children: t });
1906
2015
  }
1907
- function an({ className: t = "", ...s }) {
2016
+ function fn({ className: t = "", ...s }) {
1908
2017
  return /* @__PURE__ */ e.jsx("hr", { className: ["ds-nav-rail__divider", t].filter(Boolean).join(" "), ...s });
1909
2018
  }
1910
- function on({ children: t, label: s, defaultOpen: n = !0, className: a = "", ...r }) {
1911
- const { collapsed: o } = ae(be), i = K(), l = s ?? i.recents, [c, u] = L(n);
2019
+ function mn({ children: t, label: s, defaultOpen: n = !0, className: a = "", ...r }) {
2020
+ const { collapsed: o } = ie(_e), i = K(), l = s ?? i.recents, [c, f] = P(n);
1912
2021
  return /* @__PURE__ */ e.jsxs("div", { className: ["ds-nav-rail__recents", a].filter(Boolean).join(" "), ...r, children: [
1913
2022
  !o && /* @__PURE__ */ e.jsxs(
1914
2023
  "button",
1915
2024
  {
1916
2025
  type: "button",
1917
2026
  className: ["ds-nav-rail__recents-toggle", !c && "ds-nav-rail__recents-toggle--closed"].filter(Boolean).join(" "),
1918
- onClick: () => u((d) => !d),
2027
+ onClick: () => f((d) => !d),
1919
2028
  "aria-expanded": c,
1920
2029
  children: [
1921
2030
  /* @__PURE__ */ e.jsx("span", { className: "ds-nav-rail__recents-label", children: l }),
@@ -1926,21 +2035,21 @@ function on({ children: t, label: s, defaultOpen: n = !0, className: a = "", ...
1926
2035
  (c || o) && /* @__PURE__ */ e.jsx("div", { className: "ds-nav-rail__recents-body", children: t })
1927
2036
  ] });
1928
2037
  }
1929
- const ln = rt(function({
2038
+ const pn = lt(function({
1930
2039
  as: s = "button",
1931
2040
  avatar: n,
1932
2041
  label: a,
1933
2042
  className: r = "",
1934
2043
  ...o
1935
2044
  }, i) {
1936
- const { collapsed: l, side: c } = ae(be), u = ae($e), d = c === "left" ? "right" : "left", p = [
2045
+ const { collapsed: l, side: c } = ie(_e), f = ie(Re), d = c === "left" ? "right" : "left", p = [
1937
2046
  "ds-nav-rail__item",
1938
2047
  "ds-nav-rail__agent",
1939
2048
  r
1940
2049
  ].filter(Boolean).join(" "), h = /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1941
2050
  /* @__PURE__ */ e.jsx("span", { className: "ds-nav-rail__icon", "aria-hidden": "true", children: n }),
1942
2051
  !l && /* @__PURE__ */ e.jsx("span", { className: "ds-nav-rail__label", children: a })
1943
- ] }), f = /* @__PURE__ */ e.jsx(
2052
+ ] }), u = /* @__PURE__ */ e.jsx(
1944
2053
  s,
1945
2054
  {
1946
2055
  ref: i,
@@ -1951,10 +2060,10 @@ const ln = rt(function({
1951
2060
  children: h
1952
2061
  }
1953
2062
  );
1954
- return l && !u ? /* @__PURE__ */ e.jsx(Ce, { content: a, position: d, children: f }) : f;
2063
+ return l && !f ? /* @__PURE__ */ e.jsx(Ue, { content: a, position: d, children: u }) : u;
1955
2064
  });
1956
- function cn({ avatar: t, label: s, selected: n = !1, disabled: a = !1, href: r, onClick: o, className: i = "", ...l }) {
1957
- const { collapsed: c, side: u } = ae(be), d = ae($e), f = {
2065
+ function hn({ avatar: t, label: s, selected: n = !1, disabled: a = !1, href: r, onClick: o, className: i = "", ...l }) {
2066
+ const { collapsed: c, side: f } = ie(_e), d = ie(Re), u = {
1958
2067
  className: [
1959
2068
  "ds-nav-rail__item",
1960
2069
  "ds-nav-rail__agent",
@@ -1972,11 +2081,11 @@ function cn({ avatar: t, label: s, selected: n = !1, disabled: a = !1, href: r,
1972
2081
  }, v = /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1973
2082
  /* @__PURE__ */ e.jsx("span", { className: "ds-nav-rail__icon", "aria-hidden": "true", children: t }),
1974
2083
  !c && /* @__PURE__ */ e.jsx("span", { className: "ds-nav-rail__label", children: s })
1975
- ] }), N = u === "left" ? "right" : "left", g = r ? /* @__PURE__ */ e.jsx("a", { href: a ? void 0 : r, ...f, children: v }) : /* @__PURE__ */ e.jsx("button", { type: "button", ...f, children: v });
1976
- return c && !d ? /* @__PURE__ */ e.jsx(Ce, { content: s, position: N, children: g }) : g;
2084
+ ] }), j = f === "left" ? "right" : "left", N = r ? /* @__PURE__ */ e.jsx("a", { href: a ? void 0 : r, ...u, children: v }) : /* @__PURE__ */ e.jsx("button", { type: "button", ...u, children: v });
2085
+ return c && !d ? /* @__PURE__ */ e.jsx(Ue, { content: s, position: j, children: N }) : N;
1977
2086
  }
1978
- const Xe = 240, Je = 6, Ze = 8;
1979
- function dn({
2087
+ const Qe = 240, et = 6, tt = 8;
2088
+ function xn({
1980
2089
  trigger: t,
1981
2090
  title: s,
1982
2091
  children: n,
@@ -1985,28 +2094,28 @@ function dn({
1985
2094
  defaultOpen: o = !1,
1986
2095
  closeLabel: i
1987
2096
  }) {
1988
- const l = K(), { side: c } = ae(be), [u, d] = L(o), p = a !== void 0, h = p ? a : u, [f, v] = L(!1), N = I(null), g = I(null), [w, y] = L({}), k = de(() => {
2097
+ const l = K(), { side: c } = ie(_e), [f, d] = P(o), p = a !== void 0, h = p ? a : f, [u, v] = P(!1), j = B(null), N = B(null), [w, y] = P({}), E = te(() => {
1989
2098
  p ? r == null || r(!0) : d(!0);
1990
- }, [p, r]), j = de(() => {
2099
+ }, [p, r]), g = te(() => {
1991
2100
  p ? r == null || r(!1) : d(!1);
1992
- }, [p, r]), b = de(() => h ? j() : k(), [h, k, j]), S = de(() => {
1993
- var G;
1994
- const D = N.current;
2101
+ }, [p, r]), b = te(() => h ? g() : E(), [h, E, g]), S = te(() => {
2102
+ var W;
2103
+ const D = j.current;
1995
2104
  if (!D) return;
1996
- const W = D.getBoundingClientRect(), E = window.innerHeight, P = ((G = g.current) == null ? void 0 : G.offsetHeight) ?? 300, O = Math.max(Ze, Math.min(E - P - Ze, W.top));
2105
+ const C = D.getBoundingClientRect(), k = window.innerHeight, L = ((W = N.current) == null ? void 0 : W.offsetHeight) ?? 300, O = Math.max(tt, Math.min(k - L - tt, C.top));
1997
2106
  y(c === "right" ? {
1998
2107
  position: "fixed",
1999
2108
  top: O,
2000
- right: window.innerWidth - W.left + Je,
2001
- width: Xe
2109
+ right: window.innerWidth - C.left + et,
2110
+ width: Qe
2002
2111
  } : {
2003
2112
  position: "fixed",
2004
2113
  top: O,
2005
- left: W.right + Je,
2006
- width: Xe
2114
+ left: C.right + et,
2115
+ width: Qe
2007
2116
  });
2008
2117
  }, [c]);
2009
- z(() => {
2118
+ F(() => {
2010
2119
  if (!h) {
2011
2120
  v(!1);
2012
2121
  return;
@@ -2014,26 +2123,26 @@ function dn({
2014
2123
  return S(), requestAnimationFrame(() => v(!0)), window.addEventListener("scroll", S, !0), window.addEventListener("resize", S), () => {
2015
2124
  window.removeEventListener("scroll", S, !0), window.removeEventListener("resize", S);
2016
2125
  };
2017
- }, [h, S]), z(() => {
2126
+ }, [h, S]), F(() => {
2018
2127
  if (!h) return;
2019
- const D = (E) => {
2020
- var P, O;
2021
- !((P = g.current) != null && P.contains(E.target)) && !((O = N.current) != null && O.contains(E.target)) && j();
2022
- }, W = (E) => {
2023
- E.key === "Escape" && j();
2128
+ const D = (k) => {
2129
+ var L, O;
2130
+ !((L = N.current) != null && L.contains(k.target)) && !((O = j.current) != null && O.contains(k.target)) && g();
2131
+ }, C = (k) => {
2132
+ k.key === "Escape" && g();
2024
2133
  };
2025
- return document.addEventListener("mousedown", D), document.addEventListener("keydown", W), () => {
2026
- document.removeEventListener("mousedown", D), document.removeEventListener("keydown", W);
2134
+ return document.addEventListener("mousedown", D), document.addEventListener("keydown", C), () => {
2135
+ document.removeEventListener("mousedown", D), document.removeEventListener("keydown", C);
2027
2136
  };
2028
- }, [h, j]);
2029
- const B = h && /* @__PURE__ */ e.jsxs(
2137
+ }, [h, g]);
2138
+ const A = h && /* @__PURE__ */ e.jsxs(
2030
2139
  "div",
2031
2140
  {
2032
- ref: g,
2141
+ ref: N,
2033
2142
  className: [
2034
2143
  "ds-nav-rail-flyout",
2035
2144
  `ds-nav-rail-flyout--${c}`,
2036
- f && "ds-nav-rail-flyout--visible"
2145
+ u && "ds-nav-rail-flyout--visible"
2037
2146
  ].filter(Boolean).join(" "),
2038
2147
  style: w,
2039
2148
  "data-ds-portal": "",
@@ -2047,9 +2156,9 @@ function dn({
2047
2156
  {
2048
2157
  type: "button",
2049
2158
  className: "ds-nav-rail-flyout__close",
2050
- onClick: j,
2159
+ onClick: g,
2051
2160
  "aria-label": i ?? l.close,
2052
- children: /* @__PURE__ */ e.jsx(te, { size: 16, strokeWidth: 2 })
2161
+ children: /* @__PURE__ */ e.jsx(se, { size: 16, strokeWidth: 2 })
2053
2162
  }
2054
2163
  )
2055
2164
  ] }),
@@ -2058,17 +2167,17 @@ function dn({
2058
2167
  }
2059
2168
  );
2060
2169
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
2061
- /* @__PURE__ */ e.jsx($e.Provider, { value: h, children: /* @__PURE__ */ e.jsx("div", { ref: N, onClick: b, style: { display: "flex", flexDirection: "column", width: "100%" }, children: t }) }),
2062
- typeof document < "u" && oe.createPortal(B, document.body)
2170
+ /* @__PURE__ */ e.jsx(Re.Provider, { value: h, children: /* @__PURE__ */ e.jsx("div", { ref: j, onClick: b, style: { display: "flex", flexDirection: "column", width: "100%" }, children: t }) }),
2171
+ typeof document < "u" && re.createPortal(A, document.body)
2063
2172
  ] });
2064
2173
  }
2065
- const Ht = {
2066
- info: Fe,
2067
- success: ze,
2068
- warning: Me,
2069
- error: Pe
2174
+ const Xt = {
2175
+ info: We,
2176
+ success: Fe,
2177
+ warning: ze,
2178
+ error: Me
2070
2179
  };
2071
- function un({
2180
+ function vn({
2072
2181
  children: t,
2073
2182
  variant: s = "info",
2074
2183
  action: n,
@@ -2078,7 +2187,7 @@ function un({
2078
2187
  dismissLabel: i,
2079
2188
  ...l
2080
2189
  }) {
2081
- const c = K(), u = Ht[s], d = o || (s === "error" ? "alert" : "status");
2190
+ const c = K(), f = Xt[s], d = o || (s === "error" ? "alert" : "status");
2082
2191
  return /* @__PURE__ */ e.jsxs(
2083
2192
  "div",
2084
2193
  {
@@ -2086,7 +2195,7 @@ function un({
2086
2195
  role: d,
2087
2196
  ...l,
2088
2197
  children: [
2089
- u && /* @__PURE__ */ e.jsx("span", { className: "ds-banner-icon", "aria-hidden": "true", children: /* @__PURE__ */ e.jsx(u, { size: U[2], strokeWidth: 1.5 }) }),
2198
+ f && /* @__PURE__ */ e.jsx("span", { className: "ds-banner-icon", "aria-hidden": "true", children: /* @__PURE__ */ e.jsx(f, { size: q[2], strokeWidth: 1.5 }) }),
2090
2199
  /* @__PURE__ */ e.jsx("span", { className: "ds-banner-text", children: t }),
2091
2200
  n && /* @__PURE__ */ e.jsx(
2092
2201
  "button",
@@ -2104,14 +2213,14 @@ function un({
2104
2213
  className: "ds-banner-dismiss",
2105
2214
  onClick: r,
2106
2215
  "aria-label": i ?? c.dismiss,
2107
- children: /* @__PURE__ */ e.jsx(te, { size: U[2], strokeWidth: 1.5 })
2216
+ children: /* @__PURE__ */ e.jsx(se, { size: q[2], strokeWidth: 1.5 })
2108
2217
  }
2109
2218
  )
2110
2219
  ]
2111
2220
  }
2112
2221
  );
2113
2222
  }
2114
- function fn({
2223
+ function _n({
2115
2224
  trigger: t,
2116
2225
  items: s = [],
2117
2226
  open: n,
@@ -2122,8 +2231,8 @@ function fn({
2122
2231
  style: l,
2123
2232
  ...c
2124
2233
  }) {
2125
- const [u, d] = L(!1), [p, h] = L(!1), f = n !== void 0, v = f ? n : u, N = I(null), g = I(null), w = I(null), y = I(null), [k, j] = L({}), b = I(null), S = 150, B = () => {
2126
- if (f)
2234
+ const [f, d] = P(!1), [p, h] = P(!1), u = n !== void 0, v = u ? n : f, j = B(null), N = B(null), w = B(null), y = B(null), [E, g] = P({}), b = B(null), S = 150, A = () => {
2235
+ if (u)
2127
2236
  a == null || a(!1);
2128
2237
  else {
2129
2238
  if (p) return;
@@ -2133,85 +2242,85 @@ function fn({
2133
2242
  }
2134
2243
  }, D = () => {
2135
2244
  const _ = !v;
2136
- f ? a == null || a(_) : _ ? (clearTimeout(b.current), h(!1), d(!0)) : B();
2137
- }, W = () => {
2138
- v || (f ? a == null || a(!0) : (clearTimeout(b.current), h(!1), d(!0)));
2245
+ u ? a == null || a(_) : _ ? (clearTimeout(b.current), h(!1), d(!0)) : A();
2246
+ }, C = () => {
2247
+ v || (u ? a == null || a(!0) : (clearTimeout(b.current), h(!1), d(!0)));
2139
2248
  };
2140
- z(() => () => clearTimeout(b.current), []), z(() => {
2249
+ F(() => () => clearTimeout(b.current), []), F(() => {
2141
2250
  if (!v) return;
2142
- const _ = 300, A = () => {
2143
- var C;
2144
- const $ = (C = N.current) == null ? void 0 : C.getBoundingClientRect();
2145
- if (!$) return;
2146
- const q = window.innerHeight - $.bottom, V = q < _ + 8 && $.top > q;
2147
- j(
2148
- r === "right" ? V ? { bottom: window.innerHeight - $.top + 4, top: "auto", right: window.innerWidth - $.right } : { top: $.bottom + 4, bottom: "auto", right: window.innerWidth - $.right } : V ? { bottom: window.innerHeight - $.top + 4, top: "auto", left: $.left } : { top: $.bottom + 4, bottom: "auto", left: $.left }
2251
+ const _ = 300, $ = () => {
2252
+ var Y;
2253
+ const R = (Y = j.current) == null ? void 0 : Y.getBoundingClientRect();
2254
+ if (!R) return;
2255
+ const V = window.innerHeight - R.bottom, H = V < _ + 8 && R.top > V;
2256
+ g(
2257
+ r === "right" ? H ? { bottom: window.innerHeight - R.top + 4, top: "auto", right: window.innerWidth - R.right } : { top: R.bottom + 4, bottom: "auto", right: window.innerWidth - R.right } : H ? { bottom: window.innerHeight - R.top + 4, top: "auto", left: R.left } : { top: R.bottom + 4, bottom: "auto", left: R.left }
2149
2258
  );
2150
2259
  };
2151
- return A(), window.addEventListener("scroll", A, !0), window.addEventListener("resize", A), () => {
2152
- window.removeEventListener("scroll", A, !0), window.removeEventListener("resize", A);
2260
+ return $(), window.addEventListener("scroll", $, !0), window.addEventListener("resize", $), () => {
2261
+ window.removeEventListener("scroll", $, !0), window.removeEventListener("resize", $);
2153
2262
  };
2154
2263
  }, [v, r]);
2155
- const E = () => {
2156
- var A;
2157
- const _ = (A = w.current) == null ? void 0 : A.querySelector(
2264
+ const k = () => {
2265
+ var $;
2266
+ const _ = ($ = w.current) == null ? void 0 : $.querySelector(
2158
2267
  'button:not([disabled]), [href], [tabindex]:not([tabindex="-1"]), input, select, textarea'
2159
2268
  );
2160
2269
  _ == null || _.focus();
2161
2270
  };
2162
- z(() => {
2271
+ F(() => {
2163
2272
  if (!v) return;
2164
- const _ = ($) => {
2165
- var q, V;
2166
- !((q = N.current) != null && q.contains($.target)) && !((V = g.current) != null && V.contains($.target)) && B();
2167
- }, A = ($) => {
2168
- $.key === "Escape" && (B(), E());
2273
+ const _ = (R) => {
2274
+ var V, H;
2275
+ !((V = j.current) != null && V.contains(R.target)) && !((H = N.current) != null && H.contains(R.target)) && A();
2276
+ }, $ = (R) => {
2277
+ R.key === "Escape" && (A(), k());
2169
2278
  };
2170
- return document.addEventListener("mousedown", _), document.addEventListener("keydown", A), () => {
2171
- document.removeEventListener("mousedown", _), document.removeEventListener("keydown", A);
2279
+ return document.addEventListener("mousedown", _), document.addEventListener("keydown", $), () => {
2280
+ document.removeEventListener("mousedown", _), document.removeEventListener("keydown", $);
2172
2281
  };
2173
- }, [v]), z(() => {
2174
- if (!v || !y.current || !g.current) return;
2175
- const _ = P(), A = y.current === "last" ? _[_.length - 1] : _[0];
2176
- A == null || A.focus(), y.current = null;
2282
+ }, [v]), F(() => {
2283
+ if (!v || !y.current || !N.current) return;
2284
+ const _ = L(), $ = y.current === "last" ? _[_.length - 1] : _[0];
2285
+ $ == null || $.focus(), y.current = null;
2177
2286
  }, [v]);
2178
- const P = () => g.current ? [...g.current.querySelectorAll(
2287
+ const L = () => N.current ? [...N.current.querySelectorAll(
2179
2288
  'button:not([disabled]), a[href]:not([aria-disabled="true"]), [tabindex]:not([tabindex="-1"])'
2180
2289
  )] : [], O = (_) => {
2181
- var A, $;
2290
+ var $, R;
2182
2291
  if (_.key === "ArrowDown")
2183
- _.preventDefault(), v ? (A = P()[0]) == null || A.focus() : (y.current = "first", W());
2292
+ _.preventDefault(), v ? ($ = L()[0]) == null || $.focus() : (y.current = "first", C());
2184
2293
  else if (_.key === "ArrowUp")
2185
2294
  if (_.preventDefault(), !v)
2186
- y.current = "last", W();
2295
+ y.current = "last", C();
2187
2296
  else {
2188
- const q = P();
2189
- ($ = q[q.length - 1]) == null || $.focus();
2297
+ const V = L();
2298
+ (R = V[V.length - 1]) == null || R.focus();
2190
2299
  }
2191
- }, G = (_) => {
2192
- var q, V, C, m;
2193
- const A = P(), $ = A.findIndex((x) => x === document.activeElement);
2300
+ }, W = (_) => {
2301
+ var V, H, Y, m;
2302
+ const $ = L(), R = $.findIndex((x) => x === document.activeElement);
2194
2303
  switch (_.key) {
2195
2304
  case "ArrowDown":
2196
- _.preventDefault(), (q = A[Math.min($ + 1, A.length - 1)]) == null || q.focus();
2305
+ _.preventDefault(), (V = $[Math.min(R + 1, $.length - 1)]) == null || V.focus();
2197
2306
  break;
2198
2307
  case "ArrowUp":
2199
- _.preventDefault(), $ <= 0 ? E() : (V = A[$ - 1]) == null || V.focus();
2308
+ _.preventDefault(), R <= 0 ? k() : (H = $[R - 1]) == null || H.focus();
2200
2309
  break;
2201
2310
  case "Home":
2202
- _.preventDefault(), (C = A[0]) == null || C.focus();
2311
+ _.preventDefault(), (Y = $[0]) == null || Y.focus();
2203
2312
  break;
2204
2313
  case "End":
2205
- _.preventDefault(), (m = A[A.length - 1]) == null || m.focus();
2314
+ _.preventDefault(), (m = $[$.length - 1]) == null || m.focus();
2206
2315
  break;
2207
2316
  case "Tab":
2208
- B();
2317
+ A();
2209
2318
  break;
2210
2319
  }
2211
- }, Y = v && /* @__PURE__ */ e.jsx(
2320
+ }, M = v && /* @__PURE__ */ e.jsx(
2212
2321
  "div",
2213
2322
  {
2214
- ref: g,
2323
+ ref: N,
2215
2324
  role: "menu",
2216
2325
  "data-ds-portal": "",
2217
2326
  className: [
@@ -2219,29 +2328,29 @@ function fn({
2219
2328
  `ds-dropdown__menu--${r}`,
2220
2329
  p && "ds-dropdown__menu--closing"
2221
2330
  ].filter(Boolean).join(" "),
2222
- style: k,
2223
- onKeyDown: G,
2224
- children: s.map((_, A) => {
2331
+ style: E,
2332
+ onKeyDown: W,
2333
+ children: s.map((_, $) => {
2225
2334
  if (_.separator)
2226
- return /* @__PURE__ */ e.jsx("div", { className: "ds-dropdown__separator" }, A);
2335
+ return /* @__PURE__ */ e.jsx("div", { className: "ds-dropdown__separator" }, $);
2227
2336
  if (_.type === "section")
2228
2337
  return /* @__PURE__ */ e.jsxs("div", { className: "ds-dropdown__section", children: [
2229
2338
  _.label && /* @__PURE__ */ e.jsx("div", { className: "ds-dropdown__section-label", children: _.label }),
2230
2339
  /* @__PURE__ */ e.jsx("div", { className: "ds-dropdown__section-content", children: _.content })
2231
- ] }, A);
2232
- const $ = !!_.href, q = $ ? "a" : "button", V = $ ? { href: _.disabled ? void 0 : _.href, "aria-disabled": _.disabled ? "true" : void 0 } : { type: "button", disabled: _.disabled };
2340
+ ] }, $);
2341
+ const R = !!_.href, V = R ? "a" : "button", H = R ? { href: _.disabled ? void 0 : _.href, "aria-disabled": _.disabled ? "true" : void 0 } : { type: "button", disabled: _.disabled };
2233
2342
  return /* @__PURE__ */ e.jsxs(
2234
- q,
2343
+ V,
2235
2344
  {
2236
2345
  role: "menuitem",
2237
2346
  className: [
2238
2347
  "ds-dropdown__item",
2239
2348
  _.danger && "ds-dropdown__item--danger"
2240
2349
  ].filter(Boolean).join(" "),
2241
- ...V,
2350
+ ...H,
2242
2351
  onClick: () => {
2243
- var C;
2244
- (C = _.onClick) == null || C.call(_), B();
2352
+ var Y;
2353
+ (Y = _.onClick) == null || Y.call(_), A();
2245
2354
  },
2246
2355
  children: [
2247
2356
  _.icon && /* @__PURE__ */ e.jsx("span", { className: "ds-dropdown__item-icon", children: _.icon }),
@@ -2249,7 +2358,7 @@ function fn({
2249
2358
  _.shortcut && /* @__PURE__ */ e.jsx("span", { className: "ds-dropdown__item-shortcut", children: _.shortcut })
2250
2359
  ]
2251
2360
  },
2252
- A
2361
+ $
2253
2362
  );
2254
2363
  })
2255
2364
  }
@@ -2257,7 +2366,7 @@ function fn({
2257
2366
  return /* @__PURE__ */ e.jsxs(
2258
2367
  "div",
2259
2368
  {
2260
- ref: N,
2369
+ ref: j,
2261
2370
  className: ["ds-dropdown", o && "ds-dropdown--full-width", i].filter(Boolean).join(" "),
2262
2371
  style: l,
2263
2372
  ...c,
@@ -2272,12 +2381,12 @@ function fn({
2272
2381
  children: t
2273
2382
  }
2274
2383
  ),
2275
- typeof document < "u" && oe.createPortal(Y, document.body)
2384
+ typeof document < "u" && re.createPortal(M, document.body)
2276
2385
  ]
2277
2386
  }
2278
2387
  );
2279
2388
  }
2280
- function mn({
2389
+ function bn({
2281
2390
  value: t = 0,
2282
2391
  size: s = "m",
2283
2392
  variant: n = "default",
@@ -2314,38 +2423,38 @@ function mn({
2314
2423
  }
2315
2424
  );
2316
2425
  }
2317
- const Yt = (t) => 1 - Math.pow(1 - t, 3), qt = () => typeof window < "u" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
2318
- function Gt(t, { duration: s = 600 } = {}) {
2319
- const [n, a] = L(t), r = I(t), o = I(null);
2320
- return z(() => {
2321
- if (qt()) {
2426
+ const Jt = (t) => 1 - Math.pow(1 - t, 3), Zt = () => typeof window < "u" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
2427
+ function Qt(t, { duration: s = 600 } = {}) {
2428
+ const [n, a] = P(t), r = B(t), o = B(null);
2429
+ return F(() => {
2430
+ if (Zt()) {
2322
2431
  a(t), r.current = t;
2323
2432
  return;
2324
2433
  }
2325
2434
  const i = r.current, l = t - i;
2326
2435
  if (l === 0) return;
2327
2436
  let c = null;
2328
- const u = (d) => {
2437
+ const f = (d) => {
2329
2438
  c || (c = d);
2330
2439
  const p = Math.min((d - c) / s, 1);
2331
- a(i + l * Yt(p)), p < 1 ? o.current = requestAnimationFrame(u) : r.current = t;
2440
+ a(i + l * Jt(p)), p < 1 ? o.current = requestAnimationFrame(f) : r.current = t;
2332
2441
  };
2333
- return o.current = requestAnimationFrame(u), () => cancelAnimationFrame(o.current);
2442
+ return o.current = requestAnimationFrame(f), () => cancelAnimationFrame(o.current);
2334
2443
  }, [t, s]), n;
2335
2444
  }
2336
- function pn({
2445
+ function jn({
2337
2446
  value: t,
2338
2447
  duration: s = 600,
2339
2448
  decimals: n = 0,
2340
2449
  prefix: a = "",
2341
2450
  suffix: r = ""
2342
2451
  }) {
2343
- const i = Gt(t, { duration: s }).toFixed(n);
2452
+ const i = Qt(t, { duration: s }).toFixed(n);
2344
2453
  return `${a}${i}${r}`;
2345
2454
  }
2346
- function Kt({ threshold: t = 0.1, rootMargin: s = "0px", once: n = !1 } = {}) {
2347
- const a = I(null), [r, o] = L(!1);
2348
- return z(() => {
2455
+ function es({ threshold: t = 0.1, rootMargin: s = "0px", once: n = !1 } = {}) {
2456
+ const a = B(null), [r, o] = P(!1);
2457
+ return F(() => {
2349
2458
  const i = a.current;
2350
2459
  if (!i) return;
2351
2460
  const l = new IntersectionObserver(
@@ -2357,7 +2466,7 @@ function Kt({ threshold: t = 0.1, rootMargin: s = "0px", once: n = !1 } = {}) {
2357
2466
  return l.observe(i), () => l.disconnect();
2358
2467
  }, [t, s, n]), { ref: a, inView: r };
2359
2468
  }
2360
- function hn({
2469
+ function gn({
2361
2470
  children: t,
2362
2471
  as: s = "div",
2363
2472
  once: n = !1,
@@ -2367,31 +2476,31 @@ function hn({
2367
2476
  onLeave: i,
2368
2477
  ...l
2369
2478
  }) {
2370
- const { ref: c, inView: u } = Kt({ threshold: a, rootMargin: r, once: n }), d = I(!1);
2371
- return z(() => {
2372
- u && !d.current && (o == null || o()), !u && d.current && (i == null || i()), d.current = u;
2373
- }, [u]), /* @__PURE__ */ e.jsx(s, { ref: c, ...l, children: typeof t == "function" ? t(u) : t });
2374
- }
2375
- const Qe = {
2376
- default: Fe,
2377
- success: ze,
2378
- warning: Me,
2379
- error: Pe
2479
+ const { ref: c, inView: f } = es({ threshold: a, rootMargin: r, once: n }), d = B(!1);
2480
+ return F(() => {
2481
+ f && !d.current && (o == null || o()), !f && d.current && (i == null || i()), d.current = f;
2482
+ }, [f]), /* @__PURE__ */ e.jsx(s, { ref: c, ...l, children: typeof t == "function" ? t(f) : t });
2483
+ }
2484
+ const st = {
2485
+ default: We,
2486
+ success: Fe,
2487
+ warning: ze,
2488
+ error: Me
2380
2489
  };
2381
2490
  let ve = [];
2382
- const Be = /* @__PURE__ */ new Set();
2383
- function it() {
2384
- Be.forEach((t) => t([...ve]));
2491
+ const De = /* @__PURE__ */ new Set();
2492
+ function ut() {
2493
+ De.forEach((t) => t([...ve]));
2385
2494
  }
2386
- function Xt(t) {
2387
- ve = [...ve, t], it();
2495
+ function ts(t) {
2496
+ ve = [...ve, t], ut();
2388
2497
  }
2389
- function Jt(t) {
2390
- ve = ve.filter((s) => s.id !== t), it();
2498
+ function ss(t) {
2499
+ ve = ve.filter((s) => s.id !== t), ut();
2391
2500
  }
2392
- function xn() {
2501
+ function Nn() {
2393
2502
  const t = (s, n = {}) => {
2394
- Xt({
2503
+ ts({
2395
2504
  id: `${Date.now()}-${Math.random()}`,
2396
2505
  message: s,
2397
2506
  type: "default",
@@ -2401,13 +2510,13 @@ function xn() {
2401
2510
  };
2402
2511
  return t.success = (s, n) => t(s, { ...n, type: "success" }), t.error = (s, n) => t(s, { ...n, type: "error" }), t.warning = (s, n) => t(s, { ...n, type: "warning" }), { toast: t };
2403
2512
  }
2404
- function Zt({ data: t, onDismiss: s }) {
2405
- const n = K(), [a, r] = L(!1), o = I(null);
2406
- z(() => (requestAnimationFrame(() => r(!0)), t.duration > 0 && (o.current = setTimeout(() => i(), t.duration)), () => clearTimeout(o.current)), []);
2513
+ function ns({ data: t, onDismiss: s }) {
2514
+ const n = K(), [a, r] = P(!1), o = B(null);
2515
+ F(() => (requestAnimationFrame(() => r(!0)), t.duration > 0 && (o.current = setTimeout(() => i(), t.duration)), () => clearTimeout(o.current)), []);
2407
2516
  function i() {
2408
2517
  r(!1), setTimeout(() => s(t.id), 250);
2409
2518
  }
2410
- const l = Qe[t.type] ?? Qe.default;
2519
+ const l = st[t.type] ?? st.default;
2411
2520
  return /* @__PURE__ */ e.jsxs(
2412
2521
  "div",
2413
2522
  {
@@ -2419,7 +2528,7 @@ function Zt({ data: t, onDismiss: s }) {
2419
2528
  role: t.type === "error" ? "alert" : "status",
2420
2529
  "aria-live": "polite",
2421
2530
  children: [
2422
- /* @__PURE__ */ e.jsx("div", { className: "ds-toast__icon", children: /* @__PURE__ */ e.jsx(l, { size: U[3], strokeWidth: 1.5 }) }),
2531
+ /* @__PURE__ */ e.jsx("div", { className: "ds-toast__icon", children: /* @__PURE__ */ e.jsx(l, { size: q[3], strokeWidth: 1.5 }) }),
2423
2532
  /* @__PURE__ */ e.jsx("span", { className: "ds-toast__message", children: t.message }),
2424
2533
  /* @__PURE__ */ e.jsx(
2425
2534
  "button",
@@ -2427,26 +2536,26 @@ function Zt({ data: t, onDismiss: s }) {
2427
2536
  className: "ds-toast__close",
2428
2537
  onClick: i,
2429
2538
  "aria-label": n.close,
2430
- children: /* @__PURE__ */ e.jsx(te, { size: U[3], strokeWidth: 1.5 })
2539
+ children: /* @__PURE__ */ e.jsx(se, { size: q[3], strokeWidth: 1.5 })
2431
2540
  }
2432
2541
  )
2433
2542
  ]
2434
2543
  }
2435
2544
  );
2436
2545
  }
2437
- function vn({ position: t = "bottom-right" }) {
2438
- const [s, n] = L(() => [...ve]);
2439
- return z(() => (Be.add(n), () => Be.delete(n)), []), !s.length || typeof document > "u" ? null : oe.createPortal(
2440
- /* @__PURE__ */ e.jsx("div", { "data-ds-portal": "", className: ["ds-toast-container", `ds-toast-container--${t}`].join(" "), children: s.map((a) => /* @__PURE__ */ e.jsx(Zt, { data: a, onDismiss: Jt }, a.id)) }),
2546
+ function wn({ position: t = "bottom-right" }) {
2547
+ const [s, n] = P(() => [...ve]);
2548
+ return F(() => (De.add(n), () => De.delete(n)), []), !s.length || typeof document > "u" ? null : re.createPortal(
2549
+ /* @__PURE__ */ e.jsx("div", { "data-ds-portal": "", className: ["ds-toast-container", `ds-toast-container--${t}`].join(" "), children: s.map((a) => /* @__PURE__ */ e.jsx(ns, { data: a, onDismiss: ss }, a.id)) }),
2441
2550
  document.body
2442
2551
  );
2443
2552
  }
2444
- const Qt = {
2553
+ const rs = {
2445
2554
  running: /* @__PURE__ */ e.jsx(he, { size: "xs", variant: "info", children: "Running..." }),
2446
2555
  success: /* @__PURE__ */ e.jsx(he, { size: "xs", variant: "success", children: "Done" }),
2447
2556
  error: /* @__PURE__ */ e.jsx(he, { size: "xs", variant: "error", children: "Error" })
2448
2557
  };
2449
- function bn({
2558
+ function yn({
2450
2559
  label: t,
2451
2560
  status: s = "idle",
2452
2561
  icon: n,
@@ -2456,19 +2565,19 @@ function bn({
2456
2565
  onToggle: i,
2457
2566
  children: l,
2458
2567
  className: c = "",
2459
- ...u
2568
+ ...f
2460
2569
  }) {
2461
2570
  const d = s === "running", p = /* @__PURE__ */ e.jsxs("span", { className: "ds-tool-card__title-row", children: [
2462
2571
  n && /* @__PURE__ */ e.jsx("span", { className: "ds-tool-card__icon", children: n }),
2463
2572
  /* @__PURE__ */ e.jsx("span", { className: "ds-tool-card__label", children: t }),
2464
- Qt[s],
2573
+ rs[s],
2465
2574
  a
2466
2575
  ] });
2467
2576
  return l ? /* @__PURE__ */ e.jsx(
2468
2577
  "div",
2469
2578
  {
2470
2579
  className: ["ds-tool-card", d && "ds-tool-card--running", c].filter(Boolean).join(" "),
2471
- ...u,
2580
+ ...f,
2472
2581
  children: /* @__PURE__ */ e.jsx(
2473
2582
  Oe,
2474
2583
  {
@@ -2485,39 +2594,39 @@ function bn({
2485
2594
  "div",
2486
2595
  {
2487
2596
  className: ["ds-tool-card", "ds-tool-card--bubble", c].filter(Boolean).join(" "),
2488
- ...u,
2597
+ ...f,
2489
2598
  children: p
2490
2599
  }
2491
2600
  );
2492
2601
  }
2493
- function es({
2602
+ function as({
2494
2603
  text: t,
2495
2604
  size: s = "xs",
2496
2605
  timeout: n = 800,
2497
2606
  "aria-label": a,
2498
2607
  ...r
2499
2608
  }) {
2500
- const o = K(), [i, l] = L(!1), c = (u) => {
2501
- u.currentTarget.blur(), navigator.clipboard.writeText(t).then(() => {
2609
+ const o = K(), [i, l] = P(!1), c = (f) => {
2610
+ f.currentTarget.blur(), navigator.clipboard.writeText(t).then(() => {
2502
2611
  l(!0), setTimeout(() => l(!1), n);
2503
2612
  });
2504
2613
  };
2505
2614
  return /* @__PURE__ */ e.jsx(
2506
- ce,
2615
+ de,
2507
2616
  {
2508
2617
  variant: "ghost",
2509
2618
  size: s,
2510
2619
  state: i ? "success" : "idle",
2511
- icon: /* @__PURE__ */ e.jsx(_t, { size: U[1], strokeWidth: 1.5 }),
2620
+ icon: /* @__PURE__ */ e.jsx(wt, { size: q[1], strokeWidth: 1.5 }),
2512
2621
  "aria-label": a ?? o.copyToClipboard,
2513
2622
  onClick: c,
2514
2623
  ...r
2515
2624
  }
2516
2625
  );
2517
2626
  }
2518
- function _n({ content: t, streaming: s = !1, ...n }) {
2519
- const [a, r] = L(s);
2520
- return z(() => {
2627
+ function kn({ content: t, streaming: s = !1, ...n }) {
2628
+ const [a, r] = P(s);
2629
+ return F(() => {
2521
2630
  r(!!s);
2522
2631
  }, [s]), /* @__PURE__ */ e.jsx(
2523
2632
  Oe,
@@ -2526,18 +2635,18 @@ function _n({ content: t, streaming: s = !1, ...n }) {
2526
2635
  onToggle: r,
2527
2636
  padding: "s",
2528
2637
  title: /* @__PURE__ */ e.jsxs("div", { className: "ds-reasoning__title", children: [
2529
- /* @__PURE__ */ e.jsx(jt, { size: U[1], strokeWidth: 1.5, className: "ds-reasoning__icon" }),
2530
- /* @__PURE__ */ e.jsx(It, { secondary: !0, children: "Thinking" })
2638
+ /* @__PURE__ */ e.jsx(yt, { size: q[1], strokeWidth: 1.5, className: "ds-reasoning__icon" }),
2639
+ /* @__PURE__ */ e.jsx(Pt, { secondary: !0, children: "Thinking" })
2531
2640
  ] }),
2532
2641
  ...n,
2533
- children: /* @__PURE__ */ e.jsxs(ot, { secondary: !0, style: { whiteSpace: "pre-wrap" }, children: [
2642
+ children: /* @__PURE__ */ e.jsxs(dt, { secondary: !0, style: { whiteSpace: "pre-wrap" }, children: [
2534
2643
  t,
2535
2644
  s && /* @__PURE__ */ e.jsx("span", { className: "ds-cursor ds-cursor--line" })
2536
2645
  ] })
2537
2646
  }
2538
2647
  );
2539
2648
  }
2540
- function jn({
2649
+ function En({
2541
2650
  count: t,
2542
2651
  current: s = 0,
2543
2652
  done: n = [],
@@ -2547,37 +2656,37 @@ function jn({
2547
2656
  "aria-label": i,
2548
2657
  ...l
2549
2658
  }) {
2550
- const c = K(), { t: u } = ye();
2659
+ const c = K(), { t: f } = ye();
2551
2660
  return /* @__PURE__ */ e.jsxs("div", { className: ["ds-step-indicator", o].filter(Boolean).join(" "), ...l, children: [
2552
2661
  /* @__PURE__ */ e.jsx("div", { className: "ds-step-indicator__dots", role: "tablist", "aria-label": i ?? c.steps, children: Array.from({ length: t }, (d, p) => {
2553
- const h = p === s, f = n.includes(p) && !h, v = a && (p <= s || n.includes(p)), N = [
2662
+ const h = p === s, u = n.includes(p) && !h, v = a && (p <= s || n.includes(p)), j = [
2554
2663
  "ds-step-indicator__dot",
2555
2664
  h && "ds-step-indicator__dot--active",
2556
- f && "ds-step-indicator__dot--done"
2665
+ u && "ds-step-indicator__dot--done"
2557
2666
  ].filter(Boolean).join(" ");
2558
2667
  return /* @__PURE__ */ e.jsx(
2559
2668
  "button",
2560
2669
  {
2561
2670
  type: "button",
2562
- className: N,
2671
+ className: j,
2563
2672
  role: "tab",
2564
2673
  "aria-selected": h,
2565
- "aria-label": u("stepN", { n: p + 1 }),
2674
+ "aria-label": f("stepN", { n: p + 1 }),
2566
2675
  disabled: !v || p === s,
2567
2676
  onClick: () => a == null ? void 0 : a(p),
2568
- children: f ? /* @__PURE__ */ e.jsx(Le, { size: 8, strokeWidth: 3 }) : null
2677
+ children: u ? /* @__PURE__ */ e.jsx(Pe, { size: 8, strokeWidth: 3 }) : null
2569
2678
  },
2570
2679
  p
2571
2680
  );
2572
2681
  }) }),
2573
- r && /* @__PURE__ */ e.jsxs(ot, { secondary: !0, className: "ds-step-indicator__counter", children: [
2682
+ r && /* @__PURE__ */ e.jsxs(dt, { secondary: !0, className: "ds-step-indicator__counter", children: [
2574
2683
  s + 1,
2575
2684
  " / ",
2576
2685
  t
2577
2686
  ] })
2578
2687
  ] });
2579
2688
  }
2580
- function Nn({
2689
+ function Tn({
2581
2690
  content: t,
2582
2691
  isStreaming: s = !1,
2583
2692
  cursor: n = "line",
@@ -2585,15 +2694,15 @@ function Nn({
2585
2694
  className: r = "",
2586
2695
  ...o
2587
2696
  }) {
2588
- const i = I(t);
2589
- return z(() => {
2697
+ const i = B(t);
2698
+ return F(() => {
2590
2699
  t !== i.current && (a == null || a(t), i.current = t);
2591
2700
  }, [t, a]), /* @__PURE__ */ e.jsxs("span", { className: ["ds-streaming-text", r].filter(Boolean).join(" "), ...o, children: [
2592
2701
  t,
2593
2702
  s && n !== "none" && /* @__PURE__ */ e.jsx("span", { className: `ds-cursor ds-cursor--${n}`, "aria-hidden": "true" })
2594
2703
  ] });
2595
2704
  }
2596
- function gn({
2705
+ function $n({
2597
2706
  role: t = "assistant",
2598
2707
  header: s,
2599
2708
  footer: n,
@@ -2620,9 +2729,9 @@ function gn({
2620
2729
  n && /* @__PURE__ */ e.jsx("div", { className: "ds-chat-message__footer", children: n })
2621
2730
  ] });
2622
2731
  }
2623
- function wn(t, { containerRef: s, smartPause: n = !0 } = {}) {
2624
- const a = I(!1), r = I(0);
2625
- z(() => {
2732
+ function Rn(t, { containerRef: s, smartPause: n = !0 } = {}) {
2733
+ const a = B(!1), r = B(0);
2734
+ F(() => {
2626
2735
  const o = s == null ? void 0 : s.current;
2627
2736
  if (!o) return;
2628
2737
  const i = () => {
@@ -2630,12 +2739,12 @@ function wn(t, { containerRef: s, smartPause: n = !0 } = {}) {
2630
2739
  !l && o.scrollTop < r.current && (a.current = !0), l && (a.current = !1), r.current = o.scrollTop;
2631
2740
  };
2632
2741
  return o.addEventListener("scroll", i, { passive: !0 }), () => o.removeEventListener("scroll", i);
2633
- }, [s]), z(() => {
2742
+ }, [s]), F(() => {
2634
2743
  const o = s == null ? void 0 : s.current;
2635
2744
  o && (n && a.current || (o.scrollTop = o.scrollHeight));
2636
2745
  }, t);
2637
2746
  }
2638
- function ts({
2747
+ function os({
2639
2748
  prompts: t,
2640
2749
  enabled: s,
2641
2750
  typingSpeed: n = 38,
@@ -2644,36 +2753,36 @@ function ts({
2644
2753
  betweenTime: o = 380,
2645
2754
  manualPauseMs: i = 5e3
2646
2755
  }) {
2647
- const [l, c] = L(0), [u, d] = L(""), p = I("typing"), h = I(0), f = I(0), v = I(null), N = I(0);
2648
- z(() => {
2649
- f.current = l;
2650
- }, [l]), z(() => {
2756
+ const [l, c] = P(0), [f, d] = P(""), p = B("typing"), h = B(0), u = B(0), v = B(null), j = B(0);
2757
+ F(() => {
2758
+ u.current = l;
2759
+ }, [l]), F(() => {
2651
2760
  if (v.current && (clearTimeout(v.current), v.current = null), !s || t.length === 0) {
2652
2761
  d(""), h.current = 0, p.current = "typing";
2653
2762
  return;
2654
2763
  }
2655
- const j = () => {
2764
+ const g = () => {
2656
2765
  const b = Date.now();
2657
- if (N.current > b) {
2658
- v.current = setTimeout(j, N.current - b);
2766
+ if (j.current > b) {
2767
+ v.current = setTimeout(g, j.current - b);
2659
2768
  return;
2660
2769
  }
2661
- const S = t[f.current % t.length] ?? "";
2662
- p.current === "typing" ? (h.current += 1, d(S.slice(0, h.current)), h.current >= S.length ? (p.current = "holding", v.current = setTimeout(j, r)) : v.current = setTimeout(j, n + Math.random() * 28)) : p.current === "holding" ? (p.current = "erasing", v.current = setTimeout(j, a)) : (h.current = Math.max(0, h.current - 1), d(S.slice(0, h.current)), h.current <= 0 ? (p.current = "typing", f.current = (f.current + 1) % t.length, c(f.current), v.current = setTimeout(j, o)) : v.current = setTimeout(j, a));
2770
+ const S = t[u.current % t.length] ?? "";
2771
+ p.current === "typing" ? (h.current += 1, d(S.slice(0, h.current)), h.current >= S.length ? (p.current = "holding", v.current = setTimeout(g, r)) : v.current = setTimeout(g, n + Math.random() * 28)) : p.current === "holding" ? (p.current = "erasing", v.current = setTimeout(g, a)) : (h.current = Math.max(0, h.current - 1), d(S.slice(0, h.current)), h.current <= 0 ? (p.current = "typing", u.current = (u.current + 1) % t.length, c(u.current), v.current = setTimeout(g, o)) : v.current = setTimeout(g, a));
2663
2772
  };
2664
- return v.current = setTimeout(j, 260), () => {
2773
+ return v.current = setTimeout(g, 260), () => {
2665
2774
  v.current && clearTimeout(v.current);
2666
2775
  };
2667
2776
  }, [s, t, n, a, r, o]);
2668
- const g = (j) => {
2777
+ const N = (g) => {
2669
2778
  if (t.length === 0) return;
2670
- const b = (j % t.length + t.length) % t.length, S = t[b];
2671
- f.current = b, h.current = S.length, p.current = "holding", N.current = Date.now() + i, c(b), d(S);
2672
- }, w = () => g(f.current + 1), y = () => g(f.current - 1), k = t[l % t.length] ?? "";
2673
- return { displayed: u, currentPrompt: k, index: l, next: w, prev: y };
2779
+ const b = (g % t.length + t.length) % t.length, S = t[b];
2780
+ u.current = b, h.current = S.length, p.current = "holding", j.current = Date.now() + i, c(b), d(S);
2781
+ }, w = () => N(u.current + 1), y = () => N(u.current - 1), E = t[l % t.length] ?? "";
2782
+ return { displayed: f, currentPrompt: E, index: l, next: w, prev: y };
2674
2783
  }
2675
- let ss = 0;
2676
- function yn({
2784
+ let is = 0;
2785
+ function Sn({
2677
2786
  value: t = "",
2678
2787
  onChange: s,
2679
2788
  onSubmit: n,
@@ -2683,79 +2792,79 @@ function yn({
2683
2792
  disabled: i = !1,
2684
2793
  placeholder: l,
2685
2794
  animatedPlaceholders: c,
2686
- attachments: u,
2795
+ attachments: f,
2687
2796
  images: d,
2688
2797
  onAttachFiles: p,
2689
2798
  onAttachImages: h,
2690
- onRemoveAttachment: f,
2799
+ onRemoveAttachment: u,
2691
2800
  onRemoveImage: v,
2692
- acceptImage: N,
2693
- acceptFile: g,
2801
+ acceptImage: j,
2802
+ acceptFile: N,
2694
2803
  maxImages: w,
2695
2804
  maxImageSize: y,
2696
- leftSlot: k,
2697
- rightSlot: j,
2805
+ leftSlot: E,
2806
+ rightSlot: g,
2698
2807
  className: b = "",
2699
2808
  ...S
2700
2809
  }) {
2701
- const B = K(), { t: D } = ye(), W = I(null), E = I(null), P = I(0), [O, G] = L(!1), [Y, _] = L([]), A = l ?? B.promptPlaceholder, $ = (T) => {
2702
- const M = ++ss;
2703
- _((J) => [...J, { id: M, msg: T }]), setTimeout(() => _((J) => J.filter((Q) => Q.id !== M)), 6e3);
2704
- }, q = (T) => _((M) => M.filter((J) => J.id !== T)), V = (T) => T.type.startsWith("image/"), C = () => !0, m = N ?? V, x = g ?? C, R = (T) => {
2705
- const M = [], J = [], Q = [], se = [];
2706
- let ne = 0, me = w != null ? w - ((d == null ? void 0 : d.length) ?? 0) : 1 / 0;
2707
- for (const re of T)
2708
- m(re) ? y && re.size > y ? Q.push(re.name) : me > 0 ? (M.push(re), me--) : ne++ : x(re) ? J.push(re) : se.push(re.name);
2709
- return { imageFiles: M, docFiles: J, tooLarge: Q, skipped: se, limitExceeded: ne };
2710
- }, F = (T) => {
2711
- const M = y ? D("fileTooLargeMaxHint", { maxMb: y / 1024 / 1024 }) : "";
2712
- $(D("fileTooLarge", { maxHint: M, names: T.join(", ") }));
2810
+ const A = K(), { t: D } = ye(), C = B(null), k = B(null), L = B(0), [O, W] = P(!1), [M, _] = P([]), $ = l ?? A.promptPlaceholder, R = (T) => {
2811
+ const z = ++is;
2812
+ _((J) => [...J, { id: z, msg: T }]), setTimeout(() => _((J) => J.filter((Q) => Q.id !== z)), 6e3);
2813
+ }, V = (T) => _((z) => z.filter((J) => J.id !== T)), H = (T) => T.type.startsWith("image/"), Y = () => !0, m = j ?? H, x = N ?? Y, I = (T) => {
2814
+ const z = [], J = [], Q = [], ne = [];
2815
+ let ae = 0, me = w != null ? w - ((d == null ? void 0 : d.length) ?? 0) : 1 / 0;
2816
+ for (const oe of T)
2817
+ m(oe) ? y && oe.size > y ? Q.push(oe.name) : me > 0 ? (z.push(oe), me--) : ae++ : x(oe) ? J.push(oe) : ne.push(oe.name);
2818
+ return { imageFiles: z, docFiles: J, tooLarge: Q, skipped: ne, limitExceeded: ae };
2819
+ }, U = (T) => {
2820
+ const z = y ? D("fileTooLargeMaxHint", { maxMb: y / 1024 / 1024 }) : "";
2821
+ R(D("fileTooLarge", { maxHint: z, names: T.join(", ") }));
2713
2822
  }, ee = (T) => {
2714
- const { imageFiles: M, docFiles: J, tooLarge: Q, skipped: se, limitExceeded: ne } = R(T);
2715
- Q.length && F(Q), se.length && $(D("filesSkipped", { names: se.join(", ") })), ne && $(D("maxImages", { n: w })), h && M.length && h(M);
2716
- const me = J.concat(h ? [] : M);
2823
+ const { imageFiles: z, docFiles: J, tooLarge: Q, skipped: ne, limitExceeded: ae } = I(T);
2824
+ Q.length && U(Q), ne.length && R(D("filesSkipped", { names: ne.join(", ") })), ae && R(D("maxImages", { n: w })), h && z.length && h(z);
2825
+ const me = J.concat(h ? [] : z);
2717
2826
  p && me.length && p(me);
2718
2827
  };
2719
- z(() => {
2720
- const T = E.current;
2828
+ F(() => {
2829
+ const T = k.current;
2721
2830
  T && (T.style.height = "auto", T.style.height = `${Math.min(T.scrollHeight, 200)}px`);
2722
- }, [t]), z(() => {
2723
- const T = (M) => {
2724
- var Q, se, ne;
2831
+ }, [t]), F(() => {
2832
+ const T = (z) => {
2833
+ var Q, ne, ae;
2725
2834
  if (o || i) return;
2726
- const J = (Q = M.target) == null ? void 0 : Q.tagName;
2727
- J === "INPUT" || J === "TEXTAREA" || J === "SELECT" || (se = M.target) != null && se.isContentEditable || M.ctrlKey || M.metaKey || M.altKey || M.key.length !== 1 && M.key !== "Backspace" && M.key !== "Delete" || (ne = E.current) == null || ne.focus();
2835
+ const J = (Q = z.target) == null ? void 0 : Q.tagName;
2836
+ J === "INPUT" || J === "TEXTAREA" || J === "SELECT" || (ne = z.target) != null && ne.isContentEditable || z.ctrlKey || z.metaKey || z.altKey || z.key.length !== 1 && z.key !== "Backspace" && z.key !== "Delete" || (ae = k.current) == null || ae.focus();
2728
2837
  };
2729
2838
  return document.addEventListener("keydown", T), () => document.removeEventListener("keydown", T);
2730
2839
  }, [o, i]);
2731
- const ie = (T) => {
2732
- T.preventDefault(), P.current++, T.dataTransfer.types.includes("Files") && G(!0);
2733
- }, H = (T) => {
2734
- T.preventDefault(), P.current--, P.current === 0 && G(!1);
2840
+ const le = (T) => {
2841
+ T.preventDefault(), L.current++, T.dataTransfer.types.includes("Files") && W(!0);
2842
+ }, G = (T) => {
2843
+ T.preventDefault(), L.current--, L.current === 0 && W(!1);
2735
2844
  }, Z = (T) => T.preventDefault(), fe = (T) => {
2736
- T.preventDefault(), P.current = 0, G(!1);
2737
- const M = Array.from(T.dataTransfer.files);
2738
- M.length && ee(M);
2739
- }, _e = (T) => {
2740
- const M = Array.from(T.target.files || []);
2741
- W.current && (W.current.value = ""), M.length && ee(M);
2742
- }, Re = (T) => {
2743
- var re;
2845
+ T.preventDefault(), L.current = 0, W(!1);
2846
+ const z = Array.from(T.dataTransfer.files);
2847
+ z.length && ee(z);
2848
+ }, be = (T) => {
2849
+ const z = Array.from(T.target.files || []);
2850
+ C.current && (C.current.value = ""), z.length && ee(z);
2851
+ }, Se = (T) => {
2852
+ var oe;
2744
2853
  if (!h) return;
2745
- const M = (re = T.clipboardData) == null ? void 0 : re.items;
2746
- if (!M) return;
2854
+ const z = (oe = T.clipboardData) == null ? void 0 : oe.items;
2855
+ if (!z) return;
2747
2856
  const J = [];
2748
- for (const dt of M) {
2749
- const Ve = dt.getAsFile();
2857
+ for (const pt of z) {
2858
+ const Ve = pt.getAsFile();
2750
2859
  Ve && J.push(Ve);
2751
2860
  }
2752
2861
  if (J.length === 0) return;
2753
- const { imageFiles: Q, tooLarge: se, skipped: ne, limitExceeded: me } = R(J);
2754
- se.length && F(se), ne.length && $(D("filesSkipped", { names: ne.join(", ") })), me && $(D("maxImages", { n: w })), Q.length && (T.preventDefault(), h(Q));
2755
- }, je = !o && !i && !!(c != null && c.length) && t.length === 0, ke = ts({
2862
+ const { imageFiles: Q, tooLarge: ne, skipped: ae, limitExceeded: me } = I(J);
2863
+ ne.length && U(ne), ae.length && R(D("filesSkipped", { names: ae.join(", ") })), me && R(D("maxImages", { n: w })), Q.length && (T.preventDefault(), h(Q));
2864
+ }, je = !o && !i && !!(c != null && c.length) && t.length === 0, ke = os({
2756
2865
  prompts: c ?? [],
2757
2866
  enabled: je
2758
- }), lt = (T) => {
2867
+ }), ft = (T) => {
2759
2868
  if (je) {
2760
2869
  if (T.key === "ArrowDown" || T.key === "ArrowRight") {
2761
2870
  T.preventDefault(), ke.next();
@@ -2771,38 +2880,38 @@ function yn({
2771
2880
  }
2772
2881
  }
2773
2882
  r == null || r(T);
2774
- }, ct = (t.trim() || (d == null ? void 0 : d.length) > 0 || (u == null ? void 0 : u.length) > 0) && !i, Ue = p || h;
2883
+ }, mt = (t.trim() || (d == null ? void 0 : d.length) > 0 || (f == null ? void 0 : f.length) > 0) && !i, He = p || h;
2775
2884
  return /* @__PURE__ */ e.jsxs("div", { className: ["ds-prompt-input", b].filter(Boolean).join(" "), ...S, children: [
2776
- Ue && /* @__PURE__ */ e.jsx(
2885
+ He && /* @__PURE__ */ e.jsx(
2777
2886
  "input",
2778
2887
  {
2779
- ref: W,
2888
+ ref: C,
2780
2889
  type: "file",
2781
2890
  multiple: !0,
2782
2891
  accept: "*/*",
2783
2892
  className: "ds-prompt-input__file-input",
2784
- onChange: _e
2893
+ onChange: be
2785
2894
  }
2786
2895
  ),
2787
2896
  /* @__PURE__ */ e.jsxs(
2788
2897
  "div",
2789
2898
  {
2790
2899
  className: ["ds-prompt-input__box", O && "ds-prompt-input__box--dragging"].filter(Boolean).join(" "),
2791
- onDragEnter: ie,
2792
- onDragLeave: H,
2900
+ onDragEnter: le,
2901
+ onDragLeave: G,
2793
2902
  onDragOver: Z,
2794
2903
  onDrop: fe,
2795
2904
  children: [
2796
- O && /* @__PURE__ */ e.jsx("div", { className: "ds-prompt-input__drag-overlay", children: B.dropFilesHere }),
2905
+ O && /* @__PURE__ */ e.jsx("div", { className: "ds-prompt-input__drag-overlay", children: A.dropFilesHere }),
2797
2906
  /* @__PURE__ */ e.jsx(
2798
2907
  "textarea",
2799
2908
  {
2800
- ref: E,
2909
+ ref: k,
2801
2910
  value: t,
2802
2911
  onChange: (T) => s == null ? void 0 : s(T.target.value),
2803
- onKeyDown: lt,
2804
- onPaste: Re,
2805
- placeholder: je ? "" : A,
2912
+ onKeyDown: ft,
2913
+ onPaste: Se,
2914
+ placeholder: je ? "" : $,
2806
2915
  disabled: o || i,
2807
2916
  rows: 1,
2808
2917
  className: ["ds-prompt-input__textarea", je && "ds-prompt-input__textarea--anim"].filter(Boolean).join(" ")
@@ -2812,81 +2921,81 @@ function yn({
2812
2921
  /* @__PURE__ */ e.jsx("span", { className: "ds-prompt-input__anim-text", children: ke.displayed }),
2813
2922
  /* @__PURE__ */ e.jsx("span", { className: "ds-prompt-input__anim-cursor" })
2814
2923
  ] }),
2815
- d && d.length > 0 && /* @__PURE__ */ e.jsx("div", { className: "ds-prompt-input__images", children: d.map((T, M) => /* @__PURE__ */ e.jsxs("div", { className: "ds-prompt-input__image-thumb", children: [
2924
+ d && d.length > 0 && /* @__PURE__ */ e.jsx("div", { className: "ds-prompt-input__images", children: d.map((T, z) => /* @__PURE__ */ e.jsxs("div", { className: "ds-prompt-input__image-thumb", children: [
2816
2925
  /* @__PURE__ */ e.jsx("img", { src: T.preview, alt: "" }),
2817
2926
  /* @__PURE__ */ e.jsx(
2818
2927
  "button",
2819
2928
  {
2820
2929
  className: "ds-prompt-input__image-remove",
2821
- onClick: () => v == null ? void 0 : v(M),
2822
- "aria-label": B.removeImage,
2930
+ onClick: () => v == null ? void 0 : v(z),
2931
+ "aria-label": A.removeImage,
2823
2932
  type: "button",
2824
- children: /* @__PURE__ */ e.jsx(te, { size: 12, strokeWidth: 2 })
2933
+ children: /* @__PURE__ */ e.jsx(se, { size: 12, strokeWidth: 2 })
2825
2934
  }
2826
2935
  )
2827
- ] }, M)) }),
2828
- Y.length > 0 && /* @__PURE__ */ e.jsx("div", { className: "ds-prompt-input__warnings", children: Y.map((T) => /* @__PURE__ */ e.jsxs("div", { className: "ds-prompt-input__warning", role: "alert", children: [
2936
+ ] }, z)) }),
2937
+ M.length > 0 && /* @__PURE__ */ e.jsx("div", { className: "ds-prompt-input__warnings", children: M.map((T) => /* @__PURE__ */ e.jsxs("div", { className: "ds-prompt-input__warning", role: "alert", children: [
2829
2938
  /* @__PURE__ */ e.jsx("span", { children: T.msg }),
2830
2939
  /* @__PURE__ */ e.jsx(
2831
2940
  "button",
2832
2941
  {
2833
2942
  type: "button",
2834
2943
  className: "ds-prompt-input__warning-close",
2835
- onClick: () => q(T.id),
2836
- "aria-label": B.dismiss,
2837
- children: /* @__PURE__ */ e.jsx(te, { size: U[1], strokeWidth: 1.5 })
2944
+ onClick: () => V(T.id),
2945
+ "aria-label": A.dismiss,
2946
+ children: /* @__PURE__ */ e.jsx(se, { size: q[1], strokeWidth: 1.5 })
2838
2947
  }
2839
2948
  )
2840
2949
  ] }, T.id)) }),
2841
- u && u.length > 0 && /* @__PURE__ */ e.jsx("div", { className: "ds-prompt-input__attachments", children: u.map((T, M) => /* @__PURE__ */ e.jsx(he, { size: "xs", children: /* @__PURE__ */ e.jsxs("span", { className: "ds-prompt-input__badge-content", children: [
2842
- T.uploading ? /* @__PURE__ */ e.jsx(Nt, { size: U[1], strokeWidth: 1.5, className: "spin" }) : /* @__PURE__ */ e.jsx(He, { size: U[1], strokeWidth: 1.5 }),
2950
+ f && f.length > 0 && /* @__PURE__ */ e.jsx("div", { className: "ds-prompt-input__attachments", children: f.map((T, z) => /* @__PURE__ */ e.jsx(he, { size: "xs", children: /* @__PURE__ */ e.jsxs("span", { className: "ds-prompt-input__badge-content", children: [
2951
+ T.uploading ? /* @__PURE__ */ e.jsx(kt, { size: q[1], strokeWidth: 1.5, className: "spin" }) : /* @__PURE__ */ e.jsx(Ye, { size: q[1], strokeWidth: 1.5 }),
2843
2952
  T.filename,
2844
- T.uploading ? /* @__PURE__ */ e.jsx("span", { className: "ds-prompt-input__uploading", children: B.uploading }) : /* @__PURE__ */ e.jsx(
2953
+ T.uploading ? /* @__PURE__ */ e.jsx("span", { className: "ds-prompt-input__uploading", children: A.uploading }) : /* @__PURE__ */ e.jsx(
2845
2954
  "button",
2846
2955
  {
2847
2956
  type: "button",
2848
2957
  className: "ds-prompt-input__remove-btn",
2849
- onClick: () => f == null ? void 0 : f(M),
2850
- "aria-label": B.removeAttachment,
2851
- children: /* @__PURE__ */ e.jsx(te, { size: U[1], strokeWidth: 1.5 })
2958
+ onClick: () => u == null ? void 0 : u(z),
2959
+ "aria-label": A.removeAttachment,
2960
+ children: /* @__PURE__ */ e.jsx(se, { size: q[1], strokeWidth: 1.5 })
2852
2961
  }
2853
2962
  )
2854
- ] }) }, M)) }),
2963
+ ] }) }, z)) }),
2855
2964
  /* @__PURE__ */ e.jsxs("div", { className: "ds-prompt-input__toolbar", children: [
2856
- Ue && /* @__PURE__ */ e.jsx(
2857
- ce,
2965
+ He && /* @__PURE__ */ e.jsx(
2966
+ de,
2858
2967
  {
2859
2968
  variant: "ghost",
2860
2969
  size: "xs",
2861
- icon: /* @__PURE__ */ e.jsx(He, { size: U[2], strokeWidth: 1.5 }),
2862
- "aria-label": B.attachFiles,
2970
+ icon: /* @__PURE__ */ e.jsx(Ye, { size: q[2], strokeWidth: 1.5 }),
2971
+ "aria-label": A.attachFiles,
2863
2972
  onClick: () => {
2864
2973
  var T;
2865
- return (T = W.current) == null ? void 0 : T.click();
2974
+ return (T = C.current) == null ? void 0 : T.click();
2866
2975
  }
2867
2976
  }
2868
2977
  ),
2869
- k,
2870
- j,
2978
+ E,
2979
+ g,
2871
2980
  /* @__PURE__ */ e.jsx("div", { className: "ds-prompt-input__spacer" }),
2872
2981
  o ? /* @__PURE__ */ e.jsx(
2873
- ce,
2982
+ de,
2874
2983
  {
2875
2984
  variant: "primary",
2876
2985
  size: "xs",
2877
- icon: /* @__PURE__ */ e.jsx(gt, { size: U[2], strokeWidth: 1.5 }),
2986
+ icon: /* @__PURE__ */ e.jsx(Et, { size: q[2], strokeWidth: 1.5 }),
2878
2987
  onClick: a,
2879
- "aria-label": B.stop
2988
+ "aria-label": A.stop
2880
2989
  }
2881
2990
  ) : /* @__PURE__ */ e.jsx(
2882
- ce,
2991
+ de,
2883
2992
  {
2884
2993
  variant: "primary",
2885
2994
  size: "xs",
2886
- icon: /* @__PURE__ */ e.jsx(wt, { size: U[2], strokeWidth: 1.5 }),
2995
+ icon: /* @__PURE__ */ e.jsx(Tt, { size: q[2], strokeWidth: 1.5 }),
2887
2996
  onClick: n,
2888
- disabled: !ct,
2889
- "aria-label": B.send
2997
+ disabled: !mt,
2998
+ "aria-label": A.send
2890
2999
  }
2891
3000
  )
2892
3001
  ] })
@@ -2895,8 +3004,8 @@ function yn({
2895
3004
  )
2896
3005
  ] });
2897
3006
  }
2898
- const et = { fast: 0, standard: 1, premium: 2 }, tt = { fast: "data-5", standard: "data-3", premium: "data-6" };
2899
- function kn({
3007
+ const nt = { fast: 0, standard: 1, premium: 2 }, rt = { fast: "data-5", standard: "data-3", premium: "data-6" };
3008
+ function An({
2900
3009
  models: t = [],
2901
3010
  value: s,
2902
3011
  onChange: n,
@@ -2907,57 +3016,57 @@ function kn({
2907
3016
  className: l = "",
2908
3017
  ...c
2909
3018
  }) {
2910
- const [u, d] = L(!1), p = I(null), h = I(null), f = I(null), [v, N] = L({}), g = t.filter((E) => !r || E.name === "auto" ? !0 : (et[E.tier] ?? 1) >= (et[r] ?? 1)), w = g.find((E) => E.name === "auto"), y = g.filter((E) => E.name !== "auto"), k = t.find((E) => E.name === s), b = new Set(y.map((E) => E.tier).filter(Boolean)).size > 1;
2911
- z(() => {
2912
- if (!u) return;
2913
- const E = 320, P = () => {
2914
- var $;
2915
- const Y = ($ = h.current) == null ? void 0 : $.getBoundingClientRect();
2916
- if (!Y) return;
2917
- const _ = window.innerHeight - Y.bottom, A = _ < E + 8 && Y.top > _;
2918
- N({
3019
+ const [f, d] = P(!1), p = B(null), h = B(null), u = B(null), [v, j] = P({}), N = t.filter((k) => !r || k.name === "auto" ? !0 : (nt[k.tier] ?? 1) >= (nt[r] ?? 1)), w = N.find((k) => k.name === "auto"), y = N.filter((k) => k.name !== "auto"), E = t.find((k) => k.name === s), b = new Set(y.map((k) => k.tier).filter(Boolean)).size > 1;
3020
+ F(() => {
3021
+ if (!f) return;
3022
+ const k = 320, L = () => {
3023
+ var R;
3024
+ const M = (R = h.current) == null ? void 0 : R.getBoundingClientRect();
3025
+ if (!M) return;
3026
+ const _ = window.innerHeight - M.bottom, $ = _ < k + 8 && M.top > _;
3027
+ j({
2919
3028
  position: "fixed",
2920
3029
  zIndex: "var(--z-dropdown, 500)",
2921
- left: Y.left,
2922
- ...A ? { bottom: window.innerHeight - Y.top + 4, top: "auto" } : { top: Y.bottom + 4, bottom: "auto" }
3030
+ left: M.left,
3031
+ ...$ ? { bottom: window.innerHeight - M.top + 4, top: "auto" } : { top: M.bottom + 4, bottom: "auto" }
2923
3032
  });
2924
3033
  };
2925
- P(), window.addEventListener("scroll", P, !0), window.addEventListener("resize", P);
2926
- const O = (Y) => {
2927
- var _, A;
2928
- !((_ = p.current) != null && _.contains(Y.target)) && !((A = f.current) != null && A.contains(Y.target)) && d(!1);
2929
- }, G = (Y) => {
2930
- Y.key === "Escape" && d(!1);
3034
+ L(), window.addEventListener("scroll", L, !0), window.addEventListener("resize", L);
3035
+ const O = (M) => {
3036
+ var _, $;
3037
+ !((_ = p.current) != null && _.contains(M.target)) && !(($ = u.current) != null && $.contains(M.target)) && d(!1);
3038
+ }, W = (M) => {
3039
+ M.key === "Escape" && d(!1);
2931
3040
  };
2932
- return document.addEventListener("mousedown", O), document.addEventListener("keydown", G), () => {
2933
- window.removeEventListener("scroll", P, !0), window.removeEventListener("resize", P), document.removeEventListener("mousedown", O), document.removeEventListener("keydown", G);
3041
+ return document.addEventListener("mousedown", O), document.addEventListener("keydown", W), () => {
3042
+ window.removeEventListener("scroll", L, !0), window.removeEventListener("resize", L), document.removeEventListener("mousedown", O), document.removeEventListener("keydown", W);
2934
3043
  };
2935
- }, [u]);
2936
- const S = (E) => {
2937
- n == null || n(E), d(!1);
2938
- }, B = (E) => /* @__PURE__ */ e.jsxs(
3044
+ }, [f]);
3045
+ const S = (k) => {
3046
+ n == null || n(k), d(!1);
3047
+ }, A = (k) => /* @__PURE__ */ e.jsxs(
2939
3048
  "button",
2940
3049
  {
2941
3050
  type: "button",
2942
3051
  className: [
2943
3052
  "ds-model-picker__item",
2944
- E.name === s && "ds-model-picker__item--active"
3053
+ k.name === s && "ds-model-picker__item--active"
2945
3054
  ].filter(Boolean).join(" "),
2946
- onClick: () => S(E.name),
3055
+ onClick: () => S(k.name),
2947
3056
  children: [
2948
- E.icon ? /* @__PURE__ */ e.jsx("span", { className: "ds-model-picker__item-icon", children: E.icon }) : /* @__PURE__ */ e.jsx(Ye, { size: 12, strokeWidth: 1.5, className: "ds-model-picker__item-icon" }),
2949
- /* @__PURE__ */ e.jsx("span", { className: "ds-model-picker__item-name", children: E.displayName || E.name }),
2950
- b && E.tier && /* @__PURE__ */ e.jsx(he, { size: "xs", variant: tt[E.tier] || "default", children: E.tier })
3057
+ k.icon ? /* @__PURE__ */ e.jsx("span", { className: "ds-model-picker__item-icon", children: k.icon }) : /* @__PURE__ */ e.jsx(qe, { size: 12, strokeWidth: 1.5, className: "ds-model-picker__item-icon" }),
3058
+ /* @__PURE__ */ e.jsx("span", { className: "ds-model-picker__item-name", children: k.displayName || k.name }),
3059
+ b && k.tier && /* @__PURE__ */ e.jsx(he, { size: "xs", variant: rt[k.tier] || "default", children: k.tier })
2951
3060
  ]
2952
3061
  },
2953
- E.name
2954
- ), D = () => !i || !b ? y.map(B) : ["fast", "standard", "premium"].flatMap((E) => {
2955
- const P = y.filter((O) => O.tier === E);
2956
- return P.length ? [
2957
- /* @__PURE__ */ e.jsx("div", { className: "ds-model-picker__group-label", "data-tier": E, children: E.charAt(0).toUpperCase() + E.slice(1) }, `lbl-${E}`),
2958
- ...P.map(B)
3062
+ k.name
3063
+ ), D = () => !i || !b ? y.map(A) : ["fast", "standard", "premium"].flatMap((k) => {
3064
+ const L = y.filter((O) => O.tier === k);
3065
+ return L.length ? [
3066
+ /* @__PURE__ */ e.jsx("div", { className: "ds-model-picker__group-label", "data-tier": k, children: k.charAt(0).toUpperCase() + k.slice(1) }, `lbl-${k}`),
3067
+ ...L.map(A)
2959
3068
  ] : [];
2960
- }), W = u && /* @__PURE__ */ e.jsxs("div", { ref: f, className: "ds-model-picker__menu ds-scrollable", "data-ds-portal": "", style: v, children: [
3069
+ }), C = f && /* @__PURE__ */ e.jsxs("div", { ref: u, className: "ds-model-picker__menu ds-scrollable", "data-ds-portal": "", style: v, children: [
2961
3070
  o && w && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
2962
3071
  /* @__PURE__ */ e.jsxs(
2963
3072
  "button",
@@ -2970,7 +3079,7 @@ function kn({
2970
3079
  ].filter(Boolean).join(" "),
2971
3080
  onClick: () => S("auto"),
2972
3081
  children: [
2973
- /* @__PURE__ */ e.jsx(yt, { size: 12, strokeWidth: 1.5, className: "ds-model-picker__item-icon" }),
3082
+ /* @__PURE__ */ e.jsx($t, { size: 12, strokeWidth: 1.5, className: "ds-model-picker__item-icon" }),
2974
3083
  /* @__PURE__ */ e.jsx("span", { className: "ds-model-picker__item-name", children: "Auto (smart routing)" })
2975
3084
  ]
2976
3085
  }
@@ -2992,71 +3101,71 @@ function kn({
2992
3101
  ref: h,
2993
3102
  type: "button",
2994
3103
  className: "ds-model-picker__trigger",
2995
- onClick: () => d((E) => !E),
3104
+ onClick: () => d((k) => !k),
2996
3105
  "aria-haspopup": "listbox",
2997
- "aria-expanded": u,
3106
+ "aria-expanded": f,
2998
3107
  children: [
2999
- k != null && k.icon ? /* @__PURE__ */ e.jsx("span", { children: k.icon }) : /* @__PURE__ */ e.jsx(Ye, { size: 12, strokeWidth: 1.5 }),
3000
- /* @__PURE__ */ e.jsx("span", { className: "ds-model-picker__trigger-name", children: (k == null ? void 0 : k.displayName) || (k == null ? void 0 : k.name) || s }),
3001
- b && (k == null ? void 0 : k.tier) && /* @__PURE__ */ e.jsx(he, { size: "xs", variant: tt[k.tier] || "default", children: k.tier })
3108
+ E != null && E.icon ? /* @__PURE__ */ e.jsx("span", { children: E.icon }) : /* @__PURE__ */ e.jsx(qe, { size: 12, strokeWidth: 1.5 }),
3109
+ /* @__PURE__ */ e.jsx("span", { className: "ds-model-picker__trigger-name", children: (E == null ? void 0 : E.displayName) || (E == null ? void 0 : E.name) || s }),
3110
+ b && (E == null ? void 0 : E.tier) && /* @__PURE__ */ e.jsx(he, { size: "xs", variant: rt[E.tier] || "default", children: E.tier })
3002
3111
  ]
3003
3112
  }
3004
3113
  ),
3005
- typeof document < "u" && oe.createPortal(W, document.body)
3114
+ typeof document < "u" && re.createPortal(C, document.body)
3006
3115
  ]
3007
3116
  }
3008
3117
  );
3009
3118
  }
3010
- const ns = ({ filename: t, pagesLabel: s }) => /* @__PURE__ */ e.jsxs("span", { style: { display: "flex", alignItems: "center", gap: "var(--space-2)", minWidth: 0 }, children: [
3119
+ const ls = ({ filename: t, pagesLabel: s }) => /* @__PURE__ */ e.jsxs("span", { style: { display: "flex", alignItems: "center", gap: "var(--space-2)", minWidth: 0 }, children: [
3011
3120
  /* @__PURE__ */ e.jsx("span", { className: "ds-sources-panel__filename", children: t }),
3012
3121
  s && /* @__PURE__ */ e.jsx("span", { className: "ds-sources-panel__pages", children: s })
3013
3122
  ] });
3014
- function rs(t) {
3123
+ function cs(t) {
3015
3124
  const s = /* @__PURE__ */ new Map();
3016
3125
  for (const n of t)
3017
3126
  s.has(n.filename) || s.set(n.filename, { filename: n.filename, url: n.url, items: [] }), s.get(n.filename).items.push(n);
3018
3127
  return [...s.values()];
3019
3128
  }
3020
- function En({
3129
+ function In({
3021
3130
  sources: t = [],
3022
3131
  layout: s = "list",
3023
3132
  title: n,
3024
3133
  maxVisible: a = 5,
3025
3134
  onSourceClick: r
3026
3135
  }) {
3027
- const o = K(), { t: i } = ye(), l = n ?? o.sources, [c, u] = L(!1), d = rs(t), p = d.length > a, h = c ? d : d.slice(0, a), f = t.some((w) => w.snippet), v = (w) => w != null && w.length ? i("pageAbbrev", { pages: w.join(", ") }) : null, N = i("moreSources", { n: d.length - a }), g = ["ds-sources-panel", s === "compact" && "ds-sources-panel--compact"].filter(Boolean).join(" ");
3028
- return s === "compact" ? /* @__PURE__ */ e.jsxs("div", { className: g, children: [
3136
+ const o = K(), { t: i } = ye(), l = n ?? o.sources, [c, f] = P(!1), d = cs(t), p = d.length > a, h = c ? d : d.slice(0, a), u = t.some((w) => w.snippet), v = (w) => w != null && w.length ? i("pageAbbrev", { pages: w.join(", ") }) : null, j = i("moreSources", { n: d.length - a }), N = ["ds-sources-panel", s === "compact" && "ds-sources-panel--compact"].filter(Boolean).join(" ");
3137
+ return s === "compact" ? /* @__PURE__ */ e.jsxs("div", { className: N, children: [
3029
3138
  h.map((w) => {
3030
- const y = w.items.map((b) => b.page).filter(Boolean), k = v(y), j = !!r;
3139
+ const y = w.items.map((b) => b.page).filter(Boolean), E = v(y), g = !!r;
3031
3140
  return /* @__PURE__ */ e.jsxs(
3032
3141
  "div",
3033
3142
  {
3034
- className: `ds-sources-panel__compact-row${j ? " ds-sources-panel__compact-row--clickable" : ""}`,
3035
- onClick: j ? () => r(w.items[0]) : void 0,
3143
+ className: `ds-sources-panel__compact-row${g ? " ds-sources-panel__compact-row--clickable" : ""}`,
3144
+ onClick: g ? () => r(w.items[0]) : void 0,
3036
3145
  children: [
3037
- /* @__PURE__ */ e.jsx(kt, { size: U[1], strokeWidth: 1.5, className: "ds-sources-panel__compact-icon" }),
3146
+ /* @__PURE__ */ e.jsx(Rt, { size: q[1], strokeWidth: 1.5, className: "ds-sources-panel__compact-icon" }),
3038
3147
  /* @__PURE__ */ e.jsx("span", { className: "ds-sources-panel__filename", children: w.filename }),
3039
- k && /* @__PURE__ */ e.jsx("span", { className: "ds-sources-panel__pages", children: k })
3148
+ E && /* @__PURE__ */ e.jsx("span", { className: "ds-sources-panel__pages", children: E })
3040
3149
  ]
3041
3150
  },
3042
3151
  w.filename
3043
3152
  );
3044
3153
  }),
3045
- p && !c && /* @__PURE__ */ e.jsx("button", { className: "ds-sources-panel__more", onClick: () => u(!0), children: N })
3046
- ] }) : /* @__PURE__ */ e.jsxs("div", { className: g, children: [
3154
+ p && !c && /* @__PURE__ */ e.jsx("button", { className: "ds-sources-panel__more", onClick: () => f(!0), children: j })
3155
+ ] }) : /* @__PURE__ */ e.jsxs("div", { className: N, children: [
3047
3156
  l && /* @__PURE__ */ e.jsx("div", { className: "ds-sources-panel__title", children: l }),
3048
3157
  h.map((w) => {
3049
- const y = w.items.map((b) => b.page).filter(Boolean), k = v(y), j = !!r;
3050
- return f ? /* @__PURE__ */ e.jsx(
3158
+ const y = w.items.map((b) => b.page).filter(Boolean), E = v(y), g = !!r;
3159
+ return u ? /* @__PURE__ */ e.jsx(
3051
3160
  Oe,
3052
3161
  {
3053
- title: /* @__PURE__ */ e.jsx(ns, { filename: w.filename, pagesLabel: k }),
3162
+ title: /* @__PURE__ */ e.jsx(ls, { filename: w.filename, pagesLabel: E }),
3054
3163
  padding: "s",
3055
3164
  children: w.items.map((b, S) => /* @__PURE__ */ e.jsx(
3056
3165
  "div",
3057
3166
  {
3058
- className: `ds-sources-panel__snippet${j ? " ds-sources-panel__snippet--clickable" : ""}`,
3059
- onClick: j ? () => r(b) : void 0,
3167
+ className: `ds-sources-panel__snippet${g ? " ds-sources-panel__snippet--clickable" : ""}`,
3168
+ onClick: g ? () => r(b) : void 0,
3060
3169
  children: b.snippet ?? i("pageAbbrev", { pages: b.page })
3061
3170
  },
3062
3171
  S
@@ -3066,23 +3175,23 @@ function En({
3066
3175
  ) : /* @__PURE__ */ e.jsxs(
3067
3176
  "div",
3068
3177
  {
3069
- className: `ds-sources-panel__row${j ? " ds-sources-panel__row--clickable" : ""}`,
3070
- onClick: j ? () => r(w.items[0]) : void 0,
3178
+ className: `ds-sources-panel__row${g ? " ds-sources-panel__row--clickable" : ""}`,
3179
+ onClick: g ? () => r(w.items[0]) : void 0,
3071
3180
  children: [
3072
3181
  /* @__PURE__ */ e.jsx("span", { className: "ds-sources-panel__filename", children: w.filename }),
3073
- k && /* @__PURE__ */ e.jsx("span", { className: "ds-sources-panel__pages", children: k })
3182
+ E && /* @__PURE__ */ e.jsx("span", { className: "ds-sources-panel__pages", children: E })
3074
3183
  ]
3075
3184
  },
3076
3185
  w.filename
3077
3186
  );
3078
3187
  }),
3079
- p && !c && /* @__PURE__ */ e.jsx("button", { className: "ds-sources-panel__more", onClick: () => u(!0), children: N })
3188
+ p && !c && /* @__PURE__ */ e.jsx("button", { className: "ds-sources-panel__more", onClick: () => f(!0), children: j })
3080
3189
  ] });
3081
3190
  }
3082
- function st(t) {
3191
+ function at(t) {
3083
3192
  return t >= 1e6 ? (t / 1e6).toFixed(1).replace(/\.0$/, "") + "M" : t >= 1e3 ? (t / 1e3).toFixed(1).replace(/\.0$/, "") + "K" : String(t);
3084
3193
  }
3085
- function Tn({
3194
+ function Bn({
3086
3195
  used: t,
3087
3196
  limit: s,
3088
3197
  size: n = "s",
@@ -3091,7 +3200,7 @@ function Tn({
3091
3200
  warningThreshold: o = 0.8,
3092
3201
  errorThreshold: i = 1
3093
3202
  }) {
3094
- const l = s > 0 ? t / s : 0, c = Math.min(l * 100, 100), u = l >= i ? "error" : l >= o ? "warning" : "normal";
3203
+ const l = s > 0 ? t / s : 0, c = Math.min(l * 100, 100), f = l >= i ? "error" : l >= o ? "warning" : "normal";
3095
3204
  return /* @__PURE__ */ e.jsxs(
3096
3205
  "div",
3097
3206
  {
@@ -3103,15 +3212,15 @@ function Tn({
3103
3212
  /* @__PURE__ */ e.jsx("div", { className: "ds-token-counter__track", children: /* @__PURE__ */ e.jsx(
3104
3213
  "div",
3105
3214
  {
3106
- className: `ds-token-counter__fill ds-token-counter__fill--${u}`,
3215
+ className: `ds-token-counter__fill ds-token-counter__fill--${f}`,
3107
3216
  style: { width: `${c}%` }
3108
3217
  }
3109
3218
  ) }),
3110
- (a || r) && /* @__PURE__ */ e.jsxs("div", { className: `ds-token-counter__label ds-token-counter__label--${u}`, children: [
3219
+ (a || r) && /* @__PURE__ */ e.jsxs("div", { className: `ds-token-counter__label ds-token-counter__label--${f}`, children: [
3111
3220
  a && /* @__PURE__ */ e.jsxs("span", { children: [
3112
- st(t),
3221
+ at(t),
3113
3222
  " / ",
3114
- st(s)
3223
+ at(s)
3115
3224
  ] }),
3116
3225
  r && /* @__PURE__ */ e.jsxs("span", { style: { marginLeft: "auto" }, children: [
3117
3226
  Math.round(l * 100),
@@ -3122,24 +3231,24 @@ function Tn({
3122
3231
  }
3123
3232
  );
3124
3233
  }
3125
- const nt = 5;
3126
- function as(t) {
3234
+ const ot = 5;
3235
+ function ds(t) {
3127
3236
  return t < 0.34 ? "low" : t < 0.67 ? "medium" : "high";
3128
3237
  }
3129
- function $n({
3238
+ function Dn({
3130
3239
  value: t = 0,
3131
3240
  size: s = "xs",
3132
3241
  showLabel: n = "none",
3133
3242
  layout: a = "inline"
3134
3243
  }) {
3135
- const r = Math.max(0, Math.min(1, t)), o = Math.round(r * nt), i = as(r);
3244
+ const r = Math.max(0, Math.min(1, t)), o = Math.round(r * ot), i = ds(r);
3136
3245
  return /* @__PURE__ */ e.jsxs("div", { className: [
3137
3246
  "ds-confidence-bar",
3138
3247
  `ds-confidence-bar--${s}`,
3139
3248
  `ds-confidence-bar--${i}`,
3140
3249
  a === "block" && "ds-confidence-bar--block"
3141
3250
  ].filter(Boolean).join(" "), children: [
3142
- /* @__PURE__ */ e.jsx("div", { className: "ds-confidence-bar__segments", "aria-hidden": "true", children: Array.from({ length: nt }, (l, c) => /* @__PURE__ */ e.jsx(
3251
+ /* @__PURE__ */ e.jsx("div", { className: "ds-confidence-bar__segments", "aria-hidden": "true", children: Array.from({ length: ot }, (l, c) => /* @__PURE__ */ e.jsx(
3143
3252
  "div",
3144
3253
  {
3145
3254
  className: `ds-confidence-bar__seg${c < o ? " ds-confidence-bar__seg--filled" : ""}`
@@ -3149,15 +3258,15 @@ function $n({
3149
3258
  n === "text" && /* @__PURE__ */ e.jsx("span", { className: "ds-confidence-bar__label", children: i })
3150
3259
  ] });
3151
3260
  }
3152
- const os = { add: "+", remove: "-", context: " " };
3153
- function Se({ line: t, lineNumbers: s }) {
3261
+ const us = { add: "+", remove: "-", context: " " };
3262
+ function Ae({ line: t, lineNumbers: s }) {
3154
3263
  return /* @__PURE__ */ e.jsxs("div", { className: `ds-diff-view__line ds-diff-view__line--${t.type}`, children: [
3155
3264
  s && t.lineNo != null && /* @__PURE__ */ e.jsx("span", { className: "ds-diff-view__lineno", children: t.lineNo }),
3156
- /* @__PURE__ */ e.jsx("span", { className: "ds-diff-view__prefix", children: os[t.type] }),
3265
+ /* @__PURE__ */ e.jsx("span", { className: "ds-diff-view__prefix", children: us[t.type] }),
3157
3266
  /* @__PURE__ */ e.jsx("span", { className: "ds-diff-view__text", children: t.text })
3158
3267
  ] });
3159
3268
  }
3160
- function Rn({
3269
+ function Ln({
3161
3270
  lines: t = [],
3162
3271
  layout: s = "inline",
3163
3272
  wordWrap: n = !1,
@@ -3171,21 +3280,21 @@ function Rn({
3171
3280
  n && "ds-diff-view--wrap"
3172
3281
  ].filter(Boolean).join(" "), l = r ? { maxHeight: r, overflowY: "auto" } : void 0;
3173
3282
  if (s === "split") {
3174
- const c = t.filter((d) => d.type === "remove" || d.type === "context"), u = t.filter((d) => d.type === "add" || d.type === "context");
3283
+ const c = t.filter((d) => d.type === "remove" || d.type === "context"), f = t.filter((d) => d.type === "add" || d.type === "context");
3175
3284
  return /* @__PURE__ */ e.jsxs("div", { className: i, children: [
3176
3285
  o && /* @__PURE__ */ e.jsx("div", { className: "ds-diff-view__title", children: o }),
3177
3286
  /* @__PURE__ */ e.jsxs("div", { className: "ds-diff-view__body ds-scrollable", style: l, children: [
3178
- /* @__PURE__ */ e.jsx("div", { className: "ds-diff-view__split-col ds-scrollable", children: c.map((d, p) => /* @__PURE__ */ e.jsx(Se, { line: d, lineNumbers: a }, p)) }),
3179
- /* @__PURE__ */ e.jsx("div", { className: "ds-diff-view__split-col ds-scrollable", children: u.map((d, p) => /* @__PURE__ */ e.jsx(Se, { line: d, lineNumbers: a }, p)) })
3287
+ /* @__PURE__ */ e.jsx("div", { className: "ds-diff-view__split-col ds-scrollable", children: c.map((d, p) => /* @__PURE__ */ e.jsx(Ae, { line: d, lineNumbers: a }, p)) }),
3288
+ /* @__PURE__ */ e.jsx("div", { className: "ds-diff-view__split-col ds-scrollable", children: f.map((d, p) => /* @__PURE__ */ e.jsx(Ae, { line: d, lineNumbers: a }, p)) })
3180
3289
  ] })
3181
3290
  ] });
3182
3291
  }
3183
3292
  return /* @__PURE__ */ e.jsxs("div", { className: i, children: [
3184
3293
  o && /* @__PURE__ */ e.jsx("div", { className: "ds-diff-view__title", children: o }),
3185
- /* @__PURE__ */ e.jsx("div", { className: "ds-diff-view__body ds-scrollable", style: l, children: t.map((c, u) => /* @__PURE__ */ e.jsx(Se, { line: c, lineNumbers: a }, u)) })
3294
+ /* @__PURE__ */ e.jsx("div", { className: "ds-diff-view__body ds-scrollable", style: l, children: t.map((c, f) => /* @__PURE__ */ e.jsx(Ae, { line: c, lineNumbers: a }, f)) })
3186
3295
  ] });
3187
3296
  }
3188
- function is({
3297
+ function fs({
3189
3298
  value: t = "idle",
3190
3299
  onLike: s,
3191
3300
  onDislike: n,
@@ -3217,9 +3326,9 @@ function is({
3217
3326
  "aria-label": r ?? l.like,
3218
3327
  "aria-pressed": t === "liked",
3219
3328
  children: /* @__PURE__ */ e.jsx(
3220
- Et,
3329
+ St,
3221
3330
  {
3222
- size: U[1],
3331
+ size: q[1],
3223
3332
  strokeWidth: 1.5,
3224
3333
  fill: t === "liked" ? "currentColor" : "none"
3225
3334
  }
@@ -3238,9 +3347,9 @@ function is({
3238
3347
  "aria-label": o ?? l.dislike,
3239
3348
  "aria-pressed": t === "disliked",
3240
3349
  children: /* @__PURE__ */ e.jsx(
3241
- Tt,
3350
+ At,
3242
3351
  {
3243
- size: U[1],
3352
+ size: q[1],
3244
3353
  strokeWidth: 1.5,
3245
3354
  fill: t === "disliked" ? "currentColor" : "none"
3246
3355
  }
@@ -3251,7 +3360,7 @@ function is({
3251
3360
  }
3252
3361
  );
3253
3362
  }
3254
- function ls(t) {
3363
+ function ms(t) {
3255
3364
  const s = t instanceof Date ? t : new Date(t);
3256
3365
  if (isNaN(s)) return null;
3257
3366
  const n = /* @__PURE__ */ new Date(), a = s.toLocaleTimeString([], { hour: "2-digit", minute: "2-digit", hour12: !1 }), r = new Date(n.getFullYear(), n.getMonth(), n.getDate()), o = new Date(r - 864e5);
@@ -3260,7 +3369,7 @@ function ls(t) {
3260
3369
  const i = s.getDate(), l = s.toLocaleString([], { month: "short" });
3261
3370
  return `${i} ${l} ${a}`;
3262
3371
  }
3263
- function Sn({
3372
+ function Pn({
3264
3373
  role: t = "assistant",
3265
3374
  text: s,
3266
3375
  timestamp: n,
@@ -3270,28 +3379,28 @@ function Sn({
3270
3379
  className: i = "",
3271
3380
  ...l
3272
3381
  }) {
3273
- const c = t === "assistant" && (r || o), u = !!s, d = n ? ls(n) : null;
3274
- return !c && !u && !d ? null : /* @__PURE__ */ e.jsxs(
3382
+ const c = t === "assistant" && (r || o), f = !!s, d = n ? ms(n) : null;
3383
+ return !c && !f && !d ? null : /* @__PURE__ */ e.jsxs(
3275
3384
  "div",
3276
3385
  {
3277
3386
  className: ["ds-message-footer", `ds-message-footer--${t}`, i].filter(Boolean).join(" "),
3278
3387
  ...l,
3279
3388
  children: [
3280
3389
  t === "user" && d && /* @__PURE__ */ e.jsx("span", { className: "ds-message-footer__timestamp ds-message-action", children: d }),
3281
- c && /* @__PURE__ */ e.jsx(is, { className: "ds-message-action", value: a, onLike: r, onDislike: o }),
3282
- u && /* @__PURE__ */ e.jsx(es, { className: "ds-message-action", text: s }),
3390
+ c && /* @__PURE__ */ e.jsx(fs, { className: "ds-message-action", value: a, onLike: r, onDislike: o }),
3391
+ f && /* @__PURE__ */ e.jsx(as, { className: "ds-message-action", text: s }),
3283
3392
  t === "assistant" && d && /* @__PURE__ */ e.jsx("span", { className: "ds-message-footer__timestamp ds-message-action", children: d })
3284
3393
  ]
3285
3394
  }
3286
3395
  );
3287
3396
  }
3288
- function An({ label: t, className: s = "", ...n }) {
3397
+ function Mn({ label: t, className: s = "", ...n }) {
3289
3398
  return /* @__PURE__ */ e.jsxs("span", { className: ["ds-thinking-dot", s].filter(Boolean).join(" "), ...n, children: [
3290
3399
  /* @__PURE__ */ e.jsx("span", { className: "ds-thinking-dot__pulse" }),
3291
3400
  t && /* @__PURE__ */ e.jsx("span", { className: "ds-thinking-dot__label", children: t })
3292
3401
  ] });
3293
3402
  }
3294
- function In({ variant: t = "light", glow: s, mask: n = !0, style: a, ...r }) {
3403
+ function zn({ variant: t = "light", glow: s, mask: n = !0, style: a, ...r }) {
3295
3404
  const o = t === "dark", i = s ?? o, l = o ? "rgba(255,250,250,0.05)" : "var(--color-border-light)", c = o ? "rgba(255,250,250,0.025)" : "color-mix(in srgb, var(--color-border-light) 50%, transparent)";
3296
3405
  return /* @__PURE__ */ e.jsx(
3297
3406
  "div",
@@ -3332,7 +3441,7 @@ function In({ variant: t = "light", glow: s, mask: n = !0, style: a, ...r }) {
3332
3441
  }
3333
3442
  );
3334
3443
  }
3335
- function Bn({ children: t, axis: s = "y", style: n, className: a = "", ...r }) {
3444
+ function Fn({ children: t, axis: s = "y", style: n, className: a = "", ...r }) {
3336
3445
  const o = s === "x" ? { overflowX: "auto", overflowY: "hidden" } : s === "both" ? { overflow: "auto" } : { overflowY: "auto", overflowX: "hidden" };
3337
3446
  return /* @__PURE__ */ e.jsx(
3338
3447
  "div",
@@ -3344,11 +3453,11 @@ function Bn({ children: t, axis: s = "y", style: n, className: a = "", ...r }) {
3344
3453
  }
3345
3454
  );
3346
3455
  }
3347
- const Ae = 280, cs = 22, ds = 14, ue = 8, Ee = 6, us = 200;
3348
- function fs(t) {
3456
+ const Ie = 280, ps = 22, hs = 14, ue = 8, Te = 6, xs = 200;
3457
+ function vs(t) {
3349
3458
  return t ? typeof t == "function" ? t() : typeof t == "string" ? document.querySelector(t) : null : null;
3350
3459
  }
3351
- function ms(t, s, n, a) {
3460
+ function _s(t, s, n, a) {
3352
3461
  const r = window.innerWidth, o = window.innerHeight;
3353
3462
  if (o - t.bottom >= s + a + ue) return "bottom";
3354
3463
  if (t.top >= s + a + ue) return "top";
@@ -3357,7 +3466,7 @@ function ms(t, s, n, a) {
3357
3466
  const i = Math.max(t.top, o - t.bottom, r - t.right, t.left);
3358
3467
  return i === o - t.bottom ? "bottom" : i === t.top ? "top" : i === r - t.right ? "right" : "left";
3359
3468
  }
3360
- function ps(t, s, n, a, r) {
3469
+ function bs(t, s, n, a, r) {
3361
3470
  const o = window.innerWidth, i = window.innerHeight;
3362
3471
  let l, c;
3363
3472
  switch (t) {
@@ -3373,10 +3482,10 @@ function ps(t, s, n, a, r) {
3373
3482
  default:
3374
3483
  l = s.top + s.height / 2 - n / 2, c = s.right + r;
3375
3484
  }
3376
- const u = Math.max(ue, Math.min(o - a - ue, c)), d = Math.max(ue, Math.min(i - n - ue, l));
3377
- return { top: d, left: u, arrowOffset: c - u, arrowOffsetY: l - d };
3485
+ const f = Math.max(ue, Math.min(o - a - ue, c)), d = Math.max(ue, Math.min(i - n - ue, l));
3486
+ return { top: d, left: f, arrowOffset: c - f, arrowOffsetY: l - d };
3378
3487
  }
3379
- function Dn({
3488
+ function Wn({
3380
3489
  steps: t,
3381
3490
  currentStep: s,
3382
3491
  onNext: n,
@@ -3386,74 +3495,74 @@ function Dn({
3386
3495
  overlay: i = !0,
3387
3496
  ring: l = !0,
3388
3497
  labelNext: c,
3389
- labelBack: u,
3498
+ labelBack: f,
3390
3499
  labelSkip: d,
3391
3500
  labelFinish: p,
3392
3501
  statePrimary: h = "idle",
3393
- stateBack: f = "idle"
3502
+ stateBack: u = "idle"
3394
3503
  }) {
3395
- const v = K(), { t: N } = ye(), g = c ?? v.next, w = u ?? v.back, y = d ?? v.skipTour, k = p ?? v.done, j = I(null), b = I(t), S = I(s), B = I(l);
3396
- b.current = t, S.current = s, B.current = l;
3397
- const [D, W] = L(!1), [E, P] = L({ position: "fixed", visibility: "hidden", width: Ae }), [O, G] = L("bottom"), [Y, _] = L(null), A = I(!1), $ = t[s], q = s === t.length - 1, V = de(() => {
3398
- const C = b.current[S.current];
3399
- if (!C || !j.current) return;
3400
- const m = fs(C.target);
3504
+ const v = K(), { t: j } = ye(), N = c ?? v.next, w = f ?? v.back, y = d ?? v.skipTour, E = p ?? v.done, g = B(null), b = B(t), S = B(s), A = B(l);
3505
+ b.current = t, S.current = s, A.current = l;
3506
+ const [D, C] = P(!1), [k, L] = P({ position: "fixed", visibility: "hidden", width: Ie }), [O, W] = P("bottom"), [M, _] = P(null), $ = B(!1), R = t[s], V = s === t.length - 1, H = te(() => {
3507
+ const Y = b.current[S.current];
3508
+ if (!Y || !g.current) return;
3509
+ const m = vs(Y.target);
3401
3510
  if (!m) return;
3402
- const x = m.getBoundingClientRect(), F = j.current.getBoundingClientRect().height || 160, ee = Ae, ie = B.current ? cs : ds, H = C.position || ms(x, F, ee, ie), { top: Z, left: fe, arrowOffset: _e, arrowOffsetY: Re } = ps(H, x, F, ee, ie);
3403
- G(H), P({
3511
+ const x = m.getBoundingClientRect(), U = g.current.getBoundingClientRect().height || 160, ee = Ie, le = A.current ? ps : hs, G = Y.position || _s(x, U, ee, le), { top: Z, left: fe, arrowOffset: be, arrowOffsetY: Se } = bs(G, x, U, ee, le);
3512
+ W(G), L({
3404
3513
  position: "fixed",
3405
3514
  top: Z,
3406
3515
  left: fe,
3407
- width: Ae,
3516
+ width: Ie,
3408
3517
  visibility: "visible",
3409
- "--arrow-offset": `${_e}px`,
3410
- "--arrow-offset-y": `${Re}px`
3518
+ "--arrow-offset": `${be}px`,
3519
+ "--arrow-offset-y": `${Se}px`
3411
3520
  }), _({
3412
- top: x.top - Ee,
3413
- left: x.left - Ee,
3414
- width: x.width + Ee * 2,
3415
- height: x.height + Ee * 2
3521
+ top: x.top - Te,
3522
+ left: x.left - Te,
3523
+ width: x.width + Te * 2,
3524
+ height: x.height + Te * 2
3416
3525
  });
3417
3526
  }, []);
3418
- return z(() => {
3419
- window.addEventListener("scroll", V, !0), window.addEventListener("resize", V);
3420
- const C = requestAnimationFrame(() => {
3421
- V(), W(!0), A.current = !0;
3527
+ return F(() => {
3528
+ window.addEventListener("scroll", H, !0), window.addEventListener("resize", H);
3529
+ const Y = requestAnimationFrame(() => {
3530
+ H(), C(!0), $.current = !0;
3422
3531
  });
3423
3532
  return () => {
3424
- cancelAnimationFrame(C), window.removeEventListener("scroll", V, !0), window.removeEventListener("resize", V);
3533
+ cancelAnimationFrame(Y), window.removeEventListener("scroll", H, !0), window.removeEventListener("resize", H);
3425
3534
  };
3426
- }, []), z(() => {
3427
- if (!A.current) return;
3428
- W(!1);
3429
- const C = setTimeout(() => {
3430
- P((m) => ({ ...m, visibility: "hidden" })), requestAnimationFrame(() => {
3431
- V(), W(!0);
3535
+ }, []), F(() => {
3536
+ if (!$.current) return;
3537
+ C(!1);
3538
+ const Y = setTimeout(() => {
3539
+ L((m) => ({ ...m, visibility: "hidden" })), requestAnimationFrame(() => {
3540
+ H(), C(!0);
3432
3541
  });
3433
- }, us + 20);
3434
- return () => clearTimeout(C);
3435
- }, [s]), z(() => {
3436
- D && j.current && j.current.focus({ preventScroll: !0 });
3437
- }, [D]), z(() => {
3438
- const C = (m) => {
3542
+ }, xs + 20);
3543
+ return () => clearTimeout(Y);
3544
+ }, [s]), F(() => {
3545
+ D && g.current && g.current.focus({ preventScroll: !0 });
3546
+ }, [D]), F(() => {
3547
+ const Y = (m) => {
3439
3548
  m.key === "Escape" && r();
3440
3549
  };
3441
- return document.addEventListener("keydown", C), () => document.removeEventListener("keydown", C);
3442
- }, [r]), z(() => {
3550
+ return document.addEventListener("keydown", Y), () => document.removeEventListener("keydown", Y);
3551
+ }, [r]), F(() => {
3443
3552
  if (!D) return;
3444
- const C = (m) => {
3445
- if (m.key !== "Tab" || !j.current) return;
3553
+ const Y = (m) => {
3554
+ if (m.key !== "Tab" || !g.current) return;
3446
3555
  const x = Array.from(
3447
- j.current.querySelectorAll('button:not([disabled]), [href], [tabindex]:not([tabindex="-1"])')
3556
+ g.current.querySelectorAll('button:not([disabled]), [href], [tabindex]:not([tabindex="-1"])')
3448
3557
  );
3449
3558
  if (!x.length) return;
3450
- const R = x[0], F = x[x.length - 1];
3451
- m.shiftKey && document.activeElement === R ? (m.preventDefault(), F.focus()) : !m.shiftKey && document.activeElement === F && (m.preventDefault(), R.focus());
3559
+ const I = x[0], U = x[x.length - 1];
3560
+ m.shiftKey && document.activeElement === I ? (m.preventDefault(), U.focus()) : !m.shiftKey && document.activeElement === U && (m.preventDefault(), I.focus());
3452
3561
  };
3453
- return document.addEventListener("keydown", C), () => document.removeEventListener("keydown", C);
3454
- }, [D]), !$ || typeof document > "u" ? null : oe.createPortal(
3562
+ return document.addEventListener("keydown", Y), () => document.removeEventListener("keydown", Y);
3563
+ }, [D]), !R || typeof document > "u" ? null : re.createPortal(
3455
3564
  /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
3456
- Y && /* @__PURE__ */ e.jsx(
3565
+ M && /* @__PURE__ */ e.jsx(
3457
3566
  "div",
3458
3567
  {
3459
3568
  className: [
@@ -3462,25 +3571,25 @@ function Dn({
3462
3571
  !l && "ds-coachmark__spotlight--no-ring",
3463
3572
  D && "ds-coachmark__spotlight--visible"
3464
3573
  ].filter(Boolean).join(" "),
3465
- style: Y,
3574
+ style: M,
3466
3575
  "aria-hidden": "true"
3467
3576
  }
3468
3577
  ),
3469
3578
  /* @__PURE__ */ e.jsxs(
3470
3579
  "div",
3471
3580
  {
3472
- ref: j,
3581
+ ref: g,
3473
3582
  "data-ds-portal": "",
3474
3583
  role: "dialog",
3475
3584
  "aria-modal": "false",
3476
3585
  "aria-live": "polite",
3477
- "aria-label": $.title ?? N("stepOf", { current: s + 1, total: t.length }),
3586
+ "aria-label": R.title ?? j("stepOf", { current: s + 1, total: t.length }),
3478
3587
  className: [
3479
3588
  "ds-coachmark__bubble",
3480
3589
  `ds-coachmark__bubble--${O}`,
3481
3590
  D && "ds-coachmark__bubble--visible"
3482
3591
  ].filter(Boolean).join(" "),
3483
- style: E,
3592
+ style: k,
3484
3593
  tabIndex: -1,
3485
3594
  children: [
3486
3595
  /* @__PURE__ */ e.jsx(
@@ -3490,11 +3599,11 @@ function Dn({
3490
3599
  className: "ds-coachmark__close",
3491
3600
  onClick: r,
3492
3601
  "aria-label": y,
3493
- children: /* @__PURE__ */ e.jsx(te, { size: 16, strokeWidth: 2 })
3602
+ children: /* @__PURE__ */ e.jsx(se, { size: 16, strokeWidth: 2 })
3494
3603
  }
3495
3604
  ),
3496
- $.title && /* @__PURE__ */ e.jsx("div", { className: "ds-coachmark__title", children: $.title }),
3497
- /* @__PURE__ */ e.jsx("div", { className: "ds-coachmark__body", children: $.content }),
3605
+ R.title && /* @__PURE__ */ e.jsx("div", { className: "ds-coachmark__title", children: R.title }),
3606
+ /* @__PURE__ */ e.jsx("div", { className: "ds-coachmark__body", children: R.content }),
3498
3607
  /* @__PURE__ */ e.jsxs("div", { className: "ds-coachmark__footer", children: [
3499
3608
  t.length > 1 && /* @__PURE__ */ e.jsxs("span", { className: "ds-coachmark__counter", children: [
3500
3609
  s + 1,
@@ -3502,8 +3611,8 @@ function Dn({
3502
3611
  t.length
3503
3612
  ] }),
3504
3613
  /* @__PURE__ */ e.jsxs("div", { className: "ds-coachmark__footer-nav", children: [
3505
- s > 0 && /* @__PURE__ */ e.jsx(ce, { variant: "secondary", size: "s", state: f, onClick: a, children: w }),
3506
- /* @__PURE__ */ e.jsx(ce, { variant: "primary", size: "s", state: h, onClick: q ? o : n, children: q ? k : g })
3614
+ s > 0 && /* @__PURE__ */ e.jsx(de, { variant: "secondary", size: "s", state: u, onClick: a, children: w }),
3615
+ /* @__PURE__ */ e.jsx(de, { variant: "primary", size: "s", state: h, onClick: V ? o : n, children: V ? E : N })
3507
3616
  ] })
3508
3617
  ] })
3509
3618
  ]
@@ -3513,8 +3622,8 @@ function Dn({
3513
3622
  document.body
3514
3623
  );
3515
3624
  }
3516
- function Ln(t, s = {}) {
3517
- const { storageKey: n } = s, [a, r] = L(0), [o, i] = L(!1), l = () => n && typeof localStorage < "u" && localStorage.getItem(n) === "done", c = de(() => {
3625
+ function Cn(t, s = {}) {
3626
+ const { storageKey: n } = s, [a, r] = P(0), [o, i] = P(!1), l = () => n && typeof localStorage < "u" && localStorage.getItem(n) === "done", c = te(() => {
3518
3627
  i(!1), n && typeof localStorage < "u" && localStorage.setItem(n, "done");
3519
3628
  }, [n]);
3520
3629
  return {
@@ -3523,14 +3632,14 @@ function Ln(t, s = {}) {
3523
3632
  start: () => {
3524
3633
  l() || (r(0), i(!0));
3525
3634
  },
3526
- next: () => r((u) => Math.min(u + 1, t.length - 1)),
3527
- back: () => r((u) => Math.max(u - 1, 0)),
3635
+ next: () => r((f) => Math.min(f + 1, t.length - 1)),
3636
+ back: () => r((f) => Math.max(f - 1, 0)),
3528
3637
  skip: c,
3529
3638
  finish: c
3530
3639
  };
3531
3640
  }
3532
- function Pn() {
3533
- const t = I(null), s = de(() => {
3641
+ function On() {
3642
+ const t = B(null), s = te(() => {
3534
3643
  const n = t.current;
3535
3644
  if (!n) return;
3536
3645
  n.classList.remove("ds-shake"), n.offsetWidth, n.classList.add("ds-shake");
@@ -3543,97 +3652,98 @@ function Pn() {
3543
3652
  }
3544
3653
  export {
3545
3654
  Oe as Accordion,
3546
- Rs as Alert,
3547
- pn as AnimatedNumber,
3548
- Ws as Avatar,
3655
+ Ds as Alert,
3656
+ jn as AnimatedNumber,
3657
+ Ys as Avatar,
3549
3658
  he as Badge,
3550
- un as Banner,
3551
- As as BottomSheet,
3552
- Js as Breadcrumb,
3553
- ce as Button,
3554
- ws as Card,
3555
- gn as ChatMessage,
3556
- zs as Checkbox,
3557
- Dn as Coachmark,
3558
- Is as Code,
3559
- Pt as CodeAccordion,
3560
- $n as ConfidenceBar,
3561
- es as CopyButton,
3562
- Rn as DiffView,
3563
- fn as Dropdown,
3564
- Gs as EmptyState,
3565
- In as EngineerGrid,
3566
- Ks as FormField,
3567
- ys as H1,
3568
- ks as H2,
3569
- Es as H3,
3570
- Ts as H4,
3571
- hn as InView,
3572
- _s as Input,
3573
- Bs as Link,
3574
- bs as LocaleProvider,
3575
- is as MessageFeedback,
3576
- Sn as MessageFooter,
3577
- Ss as Modal,
3659
+ vn as Banner,
3660
+ Ps as BottomSheet,
3661
+ nn as Breadcrumb,
3662
+ de as Button,
3663
+ $s as Card,
3664
+ $n as ChatMessage,
3665
+ Hs as Checkbox,
3666
+ Wn as Coachmark,
3667
+ Ms as Code,
3668
+ Wt as CodeAccordion,
3669
+ Dn as ConfidenceBar,
3670
+ as as CopyButton,
3671
+ Ln as DiffView,
3672
+ _n as Dropdown,
3673
+ en as EmptyState,
3674
+ zn as EngineerGrid,
3675
+ tn as FormField,
3676
+ Rs as H1,
3677
+ Ss as H2,
3678
+ As as H3,
3679
+ Is as H4,
3680
+ gn as InView,
3681
+ ys as Input,
3682
+ zs as Link,
3683
+ ws as LocaleProvider,
3684
+ Os as Mention,
3685
+ fs as MessageFeedback,
3686
+ Pn as MessageFooter,
3687
+ Ls as Modal,
3578
3688
  xe as ModalFooter,
3579
- kn as ModelPicker,
3580
- en as NavRail,
3581
- cn as NavRailAgent,
3582
- sn as NavRailBody,
3583
- ln as NavRailCustomItem,
3584
- an as NavRailDivider,
3585
- dn as NavRailFlyout,
3586
- rn as NavRailFooter,
3587
- nn as NavRailHeader,
3588
- tn as NavRailItem,
3589
- on as NavRailRecents,
3590
- $s as P1,
3591
- It as P2,
3592
- ot as P3,
3593
- Zs as Pagination,
3594
- mn as ProgressBar,
3595
- yn as PromptInput,
3596
- Fs as Radio,
3597
- _n as ReasoningBlock,
3598
- Bn as Scrollable,
3599
- Ps as SegmentedControl,
3600
- Ns as Select,
3601
- Qs as SidePage,
3602
- Ke as SidePageFooter,
3603
- Ft as Skeleton,
3604
- En as SourcesPanel,
3605
- St as Spinner,
3606
- Xs as Stat,
3607
- jn as StepIndicator,
3608
- gs as Stepper,
3609
- Nn as StreamingText,
3610
- Ls as Tab,
3611
- Os as Table,
3612
- Us as TableBody,
3613
- Cs as TableHead,
3614
- Vs as TableRow,
3615
- Hs as TableSubheaderRow,
3616
- Ds as Tabs,
3617
- qs as Td,
3618
- js as Textarea,
3619
- Ys as Th,
3620
- An as ThinkingDot,
3621
- vn as ToastContainer,
3622
- Ms as Toggle,
3623
- Tn as TokenCounter,
3624
- bn as ToolCallBubble,
3625
- bn as ToolCallCard,
3626
- Ce as Tooltip,
3627
- Te as defaultStrings,
3628
- at as formatString,
3629
- U as iconSizes,
3630
- Gt as useAnimatedNumber,
3631
- ts as useAnimatedPlaceholder,
3632
- Ln as useCoachmark,
3633
- Kt as useInView,
3689
+ An as ModelPicker,
3690
+ on as NavRail,
3691
+ hn as NavRailAgent,
3692
+ cn as NavRailBody,
3693
+ pn as NavRailCustomItem,
3694
+ fn as NavRailDivider,
3695
+ xn as NavRailFlyout,
3696
+ un as NavRailFooter,
3697
+ dn as NavRailHeader,
3698
+ ln as NavRailItem,
3699
+ mn as NavRailRecents,
3700
+ Bs as P1,
3701
+ Pt as P2,
3702
+ dt as P3,
3703
+ rn as Pagination,
3704
+ bn as ProgressBar,
3705
+ Sn as PromptInput,
3706
+ Vs as Radio,
3707
+ kn as ReasoningBlock,
3708
+ Fn as Scrollable,
3709
+ Cs as SegmentedControl,
3710
+ Es as Select,
3711
+ an as SidePage,
3712
+ Ze as SidePageFooter,
3713
+ Ht as Skeleton,
3714
+ In as SourcesPanel,
3715
+ Dt as Spinner,
3716
+ sn as Stat,
3717
+ En as StepIndicator,
3718
+ Ts as Stepper,
3719
+ Tn as StreamingText,
3720
+ Ws as Tab,
3721
+ qs as Table,
3722
+ Ks as TableBody,
3723
+ Gs as TableHead,
3724
+ Xs as TableRow,
3725
+ Js as TableSubheaderRow,
3726
+ Fs as Tabs,
3727
+ Qs as Td,
3728
+ ks as Textarea,
3729
+ Zs as Th,
3730
+ Mn as ThinkingDot,
3731
+ wn as ToastContainer,
3732
+ Us as Toggle,
3733
+ Bn as TokenCounter,
3734
+ yn as ToolCallBubble,
3735
+ yn as ToolCallCard,
3736
+ Ue as Tooltip,
3737
+ $e as defaultStrings,
3738
+ ct as formatString,
3739
+ q as iconSizes,
3740
+ Qt as useAnimatedNumber,
3741
+ os as useAnimatedPlaceholder,
3742
+ Cn as useCoachmark,
3743
+ es as useInView,
3634
3744
  ye as useLocale,
3635
- Pn as useShake,
3636
- wn as useStreamScroll,
3745
+ On as useShake,
3746
+ Rn as useStreamScroll,
3637
3747
  K as useStrings,
3638
- xn as useToast
3748
+ Nn as useToast
3639
3749
  };