@motiadev/plugin-observability 0.13.0-beta.162-415452 → 0.13.0-beta.162-016792

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.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import * as m from "react";
2
- import Pe, { forwardRef as Kt, createElement as kt, memo as V, useState as G, useEffect as _e, useCallback as de, useMemo as z, useLayoutEffect as Ho, createContext as Bo, useContext as Ce, isValidElement as zo, useRef as Qt, Fragment as pr } from "react";
3
- import { Input as Vo, cn as De, Button as ct, LevelDot as Uo, Sidebar as Yo, Badge as hr } from "@motiadev/ui";
4
- import { useStreamItem as Go, useStreamGroup as gr } from "@motiadev/stream-client-react";
2
+ import Pe, { forwardRef as en, createElement as Mt, memo as V, useState as G, useRef as mt, useEffect as _e, useCallback as de, useMemo as z, useLayoutEffect as Ho, createContext as Bo, useContext as Ce, isValidElement as zo, Fragment as hr } from "react";
3
+ import { Input as Vo, cn as De, Button as ct, LevelDot as Uo, Sidebar as Yo, Badge as gr } from "@motiadev/ui";
4
+ import { useStreamGroup as _t } from "@motiadev/stream-client-react";
5
5
  import * as vr from "react-dom";
6
- import Zo from "react-dom";
6
+ import Go from "react-dom";
7
7
  var qe = { exports: {} }, We = {};
8
8
  /**
9
9
  * @license React
@@ -14,10 +14,10 @@ var qe = { exports: {} }, We = {};
14
14
  * This source code is licensed under the MIT license found in the
15
15
  * LICENSE file in the root directory of this source tree.
16
16
  */
17
- var xn;
18
- function Xo() {
19
- if (xn) return We;
20
- xn = 1;
17
+ var bn;
18
+ function Zo() {
19
+ if (bn) return We;
20
+ bn = 1;
21
21
  var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
22
22
  function n(r, o, s) {
23
23
  var a = null;
@@ -46,16 +46,16 @@ var He = {};
46
46
  * This source code is licensed under the MIT license found in the
47
47
  * LICENSE file in the root directory of this source tree.
48
48
  */
49
- var bn;
50
- function qo() {
51
- return bn || (bn = 1, process.env.NODE_ENV !== "production" && function() {
49
+ var wn;
50
+ function Xo() {
51
+ return wn || (wn = 1, process.env.NODE_ENV !== "production" && function() {
52
52
  function e(y) {
53
53
  if (y == null) return null;
54
54
  if (typeof y == "function")
55
55
  return y.$$typeof === L ? null : y.displayName || y.name || null;
56
56
  if (typeof y == "string") return y;
57
57
  switch (y) {
58
- case g:
58
+ case h:
59
59
  return "Fragment";
60
60
  case b:
61
61
  return "Profiler";
@@ -113,7 +113,7 @@ function qo() {
113
113
  }
114
114
  }
115
115
  function r(y) {
116
- if (y === g) return "<>";
116
+ if (y === h) return "<>";
117
117
  if (typeof y == "object" && y !== null && y.$$typeof === T)
118
118
  return "<...>";
119
119
  try {
@@ -157,7 +157,7 @@ function qo() {
157
157
  }
158
158
  function l(y, N, $, P, F, Z, Ie, se) {
159
159
  return $ = Z.ref, y = {
160
- $$typeof: p,
160
+ $$typeof: g,
161
161
  type: y,
162
162
  key: N,
163
163
  props: Z,
@@ -202,8 +202,8 @@ function qo() {
202
202
  else d(U);
203
203
  if (H.call(N, "key")) {
204
204
  U = e(y);
205
- var le = Object.keys(N).filter(function(wt) {
206
- return wt !== "key";
205
+ var le = Object.keys(N).filter(function(jt) {
206
+ return jt !== "key";
207
207
  });
208
208
  P = 0 < le.length ? "{key: someKey, " + le.join(": ..., ") + ": ...}" : "{key: someKey}", B[U + P] || (le = 0 < le.length ? "{" + le.join(": ..., ") + ": ...}" : "{}", console.error(
209
209
  `A props object containing a "key" prop is being spread into JSX:
@@ -238,21 +238,21 @@ React keys must be passed directly to JSX without using spread:
238
238
  );
239
239
  }
240
240
  function d(y) {
241
- typeof y == "object" && y !== null && y.$$typeof === p && y._store && (y._store.validated = 1);
241
+ typeof y == "object" && y !== null && y.$$typeof === g && y._store && (y._store.validated = 1);
242
242
  }
243
- var h = Pe, p = Symbol.for("react.transitional.element"), v = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), x = Symbol.for("react.strict_mode"), b = Symbol.for("react.profiler"), S = Symbol.for("react.consumer"), E = Symbol.for("react.context"), w = Symbol.for("react.forward_ref"), j = Symbol.for("react.suspense"), A = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), k = Symbol.for("react.activity"), L = Symbol.for("react.client.reference"), W = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, H = Object.prototype.hasOwnProperty, I = Array.isArray, M = console.createTask ? console.createTask : function() {
243
+ var p = Pe, g = Symbol.for("react.transitional.element"), v = Symbol.for("react.portal"), h = Symbol.for("react.fragment"), x = Symbol.for("react.strict_mode"), b = Symbol.for("react.profiler"), S = Symbol.for("react.consumer"), E = Symbol.for("react.context"), w = Symbol.for("react.forward_ref"), j = Symbol.for("react.suspense"), A = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), k = Symbol.for("react.activity"), L = Symbol.for("react.client.reference"), W = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, H = Object.prototype.hasOwnProperty, I = Array.isArray, M = console.createTask ? console.createTask : function() {
244
244
  return null;
245
245
  };
246
- h = {
246
+ p = {
247
247
  react_stack_bottom_frame: function(y) {
248
248
  return y();
249
249
  }
250
250
  };
251
- var _, D = {}, R = h.react_stack_bottom_frame.bind(
252
- h,
251
+ var _, D = {}, O = p.react_stack_bottom_frame.bind(
252
+ p,
253
253
  s
254
- )(), O = M(r(s)), B = {};
255
- He.Fragment = g, He.jsx = function(y, N, $, P, F) {
254
+ )(), R = M(r(s)), B = {};
255
+ He.Fragment = h, He.jsx = function(y, N, $, P, F) {
256
256
  var Z = 1e4 > W.recentlyCreatedOwnerStacks++;
257
257
  return f(
258
258
  y,
@@ -261,8 +261,8 @@ React keys must be passed directly to JSX without using spread:
261
261
  !1,
262
262
  P,
263
263
  F,
264
- Z ? Error("react-stack-top-frame") : R,
265
- Z ? M(r(y)) : O
264
+ Z ? Error("react-stack-top-frame") : O,
265
+ Z ? M(r(y)) : R
266
266
  );
267
267
  }, He.jsxs = function(y, N, $, P, F) {
268
268
  var Z = 1e4 > W.recentlyCreatedOwnerStacks++;
@@ -273,30 +273,30 @@ React keys must be passed directly to JSX without using spread:
273
273
  !0,
274
274
  P,
275
275
  F,
276
- Z ? Error("react-stack-top-frame") : R,
277
- Z ? M(r(y)) : O
276
+ Z ? Error("react-stack-top-frame") : O,
277
+ Z ? M(r(y)) : R
278
278
  );
279
279
  };
280
280
  }()), He;
281
281
  }
282
- var wn;
283
- function Jo() {
284
- return wn || (wn = 1, process.env.NODE_ENV === "production" ? qe.exports = Xo() : qe.exports = qo()), qe.exports;
282
+ var jn;
283
+ function qo() {
284
+ return jn || (jn = 1, process.env.NODE_ENV === "production" ? qe.exports = Zo() : qe.exports = Xo()), qe.exports;
285
285
  }
286
- var c = Jo();
286
+ var c = qo();
287
287
  /**
288
288
  * @license lucide-react v0.545.0 - ISC
289
289
  *
290
290
  * This source code is licensed under the ISC license.
291
291
  * See the LICENSE file in the root directory of this source tree.
292
292
  */
293
- const Ko = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Qo = (e) => e.replace(
293
+ const Jo = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Ko = (e) => e.replace(
294
294
  /^([A-Z])|[\s-_]+(\w)/g,
295
295
  (t, n, r) => r ? r.toUpperCase() : n.toLowerCase()
296
- ), jn = (e) => {
297
- const t = Qo(e);
296
+ ), Cn = (e) => {
297
+ const t = Ko(e);
298
298
  return t.charAt(0).toUpperCase() + t.slice(1);
299
- }, yr = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim(), es = (e) => {
299
+ }, yr = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim(), Qo = (e) => {
300
300
  for (const t in e)
301
301
  if (t.startsWith("aria-") || t === "role" || t === "title")
302
302
  return !0;
@@ -307,7 +307,7 @@ const Ko = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Qo = (
307
307
  * This source code is licensed under the ISC license.
308
308
  * See the LICENSE file in the root directory of this source tree.
309
309
  */
310
- var ts = {
310
+ var es = {
311
311
  xmlns: "http://www.w3.org/2000/svg",
312
312
  width: 24,
313
313
  height: 24,
@@ -324,7 +324,7 @@ var ts = {
324
324
  * This source code is licensed under the ISC license.
325
325
  * See the LICENSE file in the root directory of this source tree.
326
326
  */
327
- const ns = Kt(
327
+ const ts = en(
328
328
  ({
329
329
  color: e = "currentColor",
330
330
  size: t = 24,
@@ -334,21 +334,21 @@ const ns = Kt(
334
334
  children: s,
335
335
  iconNode: a,
336
336
  ...i
337
- }, u) => kt(
337
+ }, u) => Mt(
338
338
  "svg",
339
339
  {
340
340
  ref: u,
341
- ...ts,
341
+ ...es,
342
342
  width: t,
343
343
  height: t,
344
344
  stroke: e,
345
345
  strokeWidth: r ? Number(n) * 24 / Number(t) : n,
346
346
  className: yr("lucide", o),
347
- ...!s && !es(i) && { "aria-hidden": "true" },
347
+ ...!s && !Qo(i) && { "aria-hidden": "true" },
348
348
  ...i
349
349
  },
350
350
  [
351
- ...a.map(([l, f]) => kt(l, f)),
351
+ ...a.map(([l, f]) => Mt(l, f)),
352
352
  ...Array.isArray(s) ? s : [s]
353
353
  ]
354
354
  )
@@ -360,19 +360,19 @@ const ns = Kt(
360
360
  * See the LICENSE file in the root directory of this source tree.
361
361
  */
362
362
  const J = (e, t) => {
363
- const n = Kt(
364
- ({ className: r, ...o }, s) => kt(ns, {
363
+ const n = en(
364
+ ({ className: r, ...o }, s) => Mt(ts, {
365
365
  ref: s,
366
366
  iconNode: t,
367
367
  className: yr(
368
- `lucide-${Ko(jn(e))}`,
368
+ `lucide-${Jo(Cn(e))}`,
369
369
  `lucide-${e}`,
370
370
  r
371
371
  ),
372
372
  ...o
373
373
  })
374
374
  );
375
- return n.displayName = jn(e), n;
375
+ return n.displayName = Cn(e), n;
376
376
  };
377
377
  /**
378
378
  * @license lucide-react v0.545.0 - ISC
@@ -380,42 +380,42 @@ const J = (e, t) => {
380
380
  * This source code is licensed under the ISC license.
381
381
  * See the LICENSE file in the root directory of this source tree.
382
382
  */
383
- const rs = [
383
+ const ns = [
384
384
  ["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
385
385
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
386
- ], os = J("search", rs);
386
+ ], rs = J("search", ns);
387
387
  /**
388
388
  * @license lucide-react v0.545.0 - ISC
389
389
  *
390
390
  * This source code is licensed under the ISC license.
391
391
  * See the LICENSE file in the root directory of this source tree.
392
392
  */
393
- const ss = [
393
+ const os = [
394
394
  ["path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6", key: "miytrc" }],
395
395
  ["path", { d: "M3 6h18", key: "d0wm0j" }],
396
396
  ["path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2", key: "e791ji" }]
397
- ], as = J("trash", ss);
397
+ ], ss = J("trash", os);
398
398
  /**
399
399
  * @license lucide-react v0.545.0 - ISC
400
400
  *
401
401
  * This source code is licensed under the ISC license.
402
402
  * See the LICENSE file in the root directory of this source tree.
403
403
  */
404
- const is = [
404
+ const as = [
405
405
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
406
406
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
407
- ], xr = J("x", is), Cn = (e) => {
407
+ ], xr = J("x", as), En = (e) => {
408
408
  let t;
409
409
  const n = /* @__PURE__ */ new Set(), r = (l, f) => {
410
410
  const d = typeof l == "function" ? l(t) : l;
411
411
  if (!Object.is(d, t)) {
412
- const h = t;
413
- t = f ?? (typeof d != "object" || d === null) ? d : Object.assign({}, t, d), n.forEach((p) => p(t, h));
412
+ const p = t;
413
+ t = f ?? (typeof d != "object" || d === null) ? d : Object.assign({}, t, d), n.forEach((g) => g(t, p));
414
414
  }
415
415
  }, o = () => t, i = { setState: r, getState: o, getInitialState: () => u, subscribe: (l) => (n.add(l), () => n.delete(l)) }, u = t = e(r, o, i);
416
416
  return i;
417
- }, cs = (e) => e ? Cn(e) : Cn, ls = (e) => e;
418
- function us(e, t = ls) {
417
+ }, is = (e) => e ? En(e) : En, cs = (e) => e;
418
+ function ls(e, t = cs) {
419
419
  const n = Pe.useSyncExternalStore(
420
420
  e.subscribe,
421
421
  Pe.useCallback(() => t(e.getState()), [e, t]),
@@ -423,10 +423,10 @@ function us(e, t = ls) {
423
423
  );
424
424
  return Pe.useDebugValue(n), n;
425
425
  }
426
- const fs = (e) => {
427
- const t = cs(e), n = (r) => us(t, r);
426
+ const us = (e) => {
427
+ const t = is(e), n = (r) => ls(t, r);
428
428
  return Object.assign(n, t), n;
429
- }, ds = (e) => fs, K = ds()((e) => ({
429
+ }, fs = (e) => us, K = fs()((e) => ({
430
430
  selectedTraceGroupId: "",
431
431
  selectedTraceId: void 0,
432
432
  search: "",
@@ -450,7 +450,7 @@ const fs = (e) => {
450
450
  placeholder: "Search by Trace ID or Step Name"
451
451
  }
452
452
  ),
453
- /* @__PURE__ */ c.jsx(os, { className: "absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground/50" }),
453
+ /* @__PURE__ */ c.jsx(rs, { className: "absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground/50" }),
454
454
  /* @__PURE__ */ c.jsx(
455
455
  xr,
456
456
  {
@@ -466,7 +466,7 @@ const fs = (e) => {
466
466
  )
467
467
  ] }),
468
468
  /* @__PURE__ */ c.jsxs(ct, { variant: "default", onClick: n, className: "h-[34px]", children: [
469
- /* @__PURE__ */ c.jsx(as, {}),
469
+ /* @__PURE__ */ c.jsx(ss, {}),
470
470
  " Clear"
471
471
  ] })
472
472
  ] });
@@ -480,23 +480,22 @@ wr.displayName = "TraceEmptyState";
480
480
  * This source code is licensed under the ISC license.
481
481
  * See the LICENSE file in the root directory of this source tree.
482
482
  */
483
- const ms = [["path", { d: "M5 12h14", key: "1ays0h" }]], ps = J("minus", ms);
483
+ const ds = [["path", { d: "M5 12h14", key: "1ays0h" }]], ms = J("minus", ds);
484
484
  /**
485
485
  * @license lucide-react v0.545.0 - ISC
486
486
  *
487
487
  * This source code is licensed under the ISC license.
488
488
  * See the LICENSE file in the root directory of this source tree.
489
489
  */
490
- const hs = [
490
+ const ps = [
491
491
  ["path", { d: "M5 12h14", key: "1ays0h" }],
492
492
  ["path", { d: "M12 5v14", key: "s699le" }]
493
- ], gs = J("plus", hs), vs = (e) => {
494
- const t = e?.endTime, [n, r] = G(() => t || Date.now());
495
- return _e(() => {
496
- let o;
497
- return t ? t !== n && r(t) : o = setInterval(() => r(Date.now()), 100), () => clearInterval(o);
498
- }, [t, n]), n;
499
- }, we = (e) => e == null ? "N/A" : e < 1e3 ? `${e}ms` : e < 6e4 ? `${(e / 1e3).toFixed(1)}s` : e < 36e5 ? `${(e / 6e4).toFixed(1)}min` : `${(e / 36e5).toFixed(1)}h`, ys = {
493
+ ], hs = J("plus", ps), gs = (e) => {
494
+ const t = e?.endTime, [n, r] = G(() => t || Date.now()), o = mt(null);
495
+ return _e(() => (o.current && (clearInterval(o.current), o.current = null), t ? r(t) : o.current = setInterval(() => r(Date.now()), 100), () => {
496
+ o.current && (clearInterval(o.current), o.current = null);
497
+ }), [t]), n;
498
+ }, we = (e) => e == null ? "N/A" : e < 1e3 ? `${e}ms` : e < 6e4 ? `${(e / 1e3).toFixed(1)}s` : e < 36e5 ? `${(e / 6e4).toFixed(1)}min` : `${(e / 36e5).toFixed(1)}h`, vs = {
500
499
  running: "bg-[repeating-linear-gradient(140deg,#BEFE29,#BEFE29_8px,#ABE625_8px,#ABE625_16px)]",
501
500
  completed: "bg-[repeating-linear-gradient(140deg,#2862FE,#2862FE_8px,#2358E5_8px,#2358E5_16px)]",
502
501
  failed: "bg-[repeating-linear-gradient(140deg,#EA2069,#EA2069_8px,#D41E60_8px,#D41E60_16px)]"
@@ -505,7 +504,7 @@ const hs = [
505
504
  const u = de(() => {
506
505
  i(e);
507
506
  }, [i, e]), l = z(
508
- () => De("h-[24px] rounded-[4px] hover:opacity-80 transition-all duration-200", ys[n]),
507
+ () => De("h-[24px] rounded-[4px] hover:opacity-80 transition-all duration-200", vs[n]),
509
508
  [n]
510
509
  ), f = z(
511
510
  () => ({
@@ -535,7 +534,7 @@ jr.displayName = "TraceItem";
535
534
  * This source code is licensed under the ISC license.
536
535
  * See the LICENSE file in the root directory of this source tree.
537
536
  */
538
- const xs = [
537
+ const ys = [
539
538
  [
540
539
  "path",
541
540
  {
@@ -543,14 +542,14 @@ const xs = [
543
542
  key: "1sd12s"
544
543
  }
545
544
  ]
546
- ], bs = J("message-circle", xs);
545
+ ], xs = J("message-circle", ys);
547
546
  /**
548
547
  * @license lucide-react v0.545.0 - ISC
549
548
  *
550
549
  * This source code is licensed under the ISC license.
551
550
  * See the LICENSE file in the root directory of this source tree.
552
551
  */
553
- const ws = [
552
+ const bs = [
554
553
  [
555
554
  "path",
556
555
  {
@@ -561,27 +560,27 @@ const ws = [
561
560
  ["path", { d: "M12 22V12", key: "d0xqtd" }],
562
561
  ["polyline", { points: "3.29 7 12 12 20.71 7", key: "ousv84" }],
563
562
  ["path", { d: "m7.5 4.27 9 5.15", key: "1c824w" }]
564
- ], js = J("package", ws);
563
+ ], ws = J("package", bs);
565
564
  /**
566
565
  * @license lucide-react v0.545.0 - ISC
567
566
  *
568
567
  * This source code is licensed under the ISC license.
569
568
  * See the LICENSE file in the root directory of this source tree.
570
569
  */
571
- const Cs = [
570
+ const js = [
572
571
  ["path", { d: "M16.247 7.761a6 6 0 0 1 0 8.478", key: "1fwjs5" }],
573
572
  ["path", { d: "M19.075 4.933a10 10 0 0 1 0 14.134", key: "ehdyv1" }],
574
573
  ["path", { d: "M4.925 19.067a10 10 0 0 1 0-14.134", key: "1q22gi" }],
575
574
  ["path", { d: "M7.753 16.239a6 6 0 0 1 0-8.478", key: "r2q7qm" }],
576
575
  ["circle", { cx: "12", cy: "12", r: "2", key: "1c9p78" }]
577
- ], Es = J("radio", Cs);
576
+ ], Cs = J("radio", js);
578
577
  /**
579
578
  * @license lucide-react v0.545.0 - ISC
580
579
  *
581
580
  * This source code is licensed under the ISC license.
582
581
  * See the LICENSE file in the root directory of this source tree.
583
582
  */
584
- const Ss = [
583
+ const Es = [
585
584
  ["path", { d: "M15 12h-5", key: "r7krc0" }],
586
585
  ["path", { d: "M15 8h-5", key: "1khuty" }],
587
586
  ["path", { d: "M19 17V5a2 2 0 0 0-2-2H4", key: "zz82l3" }],
@@ -592,15 +591,15 @@ const Ss = [
592
591
  key: "1ph1d7"
593
592
  }
594
593
  ]
595
- ], As = J("scroll-text", Ss), Ps = ({ event: e }) => {
594
+ ], Ss = J("scroll-text", Es), As = ({ event: e }) => {
596
595
  if (e.type === "log")
597
- return /* @__PURE__ */ c.jsx(As, { className: "w-4 h-4 text-muted-foreground" });
596
+ return /* @__PURE__ */ c.jsx(Ss, { className: "w-4 h-4 text-muted-foreground" });
598
597
  if (e.type === "emit")
599
- return /* @__PURE__ */ c.jsx(bs, { className: "w-4 h-4 text-muted-foreground" });
598
+ return /* @__PURE__ */ c.jsx(xs, { className: "w-4 h-4 text-muted-foreground" });
600
599
  if (e.type === "state")
601
- return /* @__PURE__ */ c.jsx(js, { className: "w-4 h-4 text-muted-foreground" });
600
+ return /* @__PURE__ */ c.jsx(ws, { className: "w-4 h-4 text-muted-foreground" });
602
601
  if (e.type === "stream")
603
- return /* @__PURE__ */ c.jsx(Es, { className: "w-4 h-4 text-muted-foreground" });
602
+ return /* @__PURE__ */ c.jsx(Cs, { className: "w-4 h-4 text-muted-foreground" });
604
603
  };
605
604
  /**
606
605
  * @license lucide-react v0.545.0 - ISC
@@ -608,7 +607,7 @@ const Ss = [
608
607
  * This source code is licensed under the ISC license.
609
608
  * See the LICENSE file in the root directory of this source tree.
610
609
  */
611
- const Ns = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], Os = J("check", Ns);
610
+ const Ps = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], Ns = J("check", Ps);
612
611
  /**
613
612
  * @license lucide-react v0.545.0 - ISC
614
613
  *
@@ -618,7 +617,7 @@ const Ns = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], Os = J("check",
618
617
  const Rs = [
619
618
  ["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
620
619
  ["path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2", key: "zix9uf" }]
621
- ], Ts = J("copy", Rs), Mt = ({ textToCopy: e, className: t, title: n }) => {
620
+ ], Os = J("copy", Rs), Dt = ({ textToCopy: e, className: t, title: n }) => {
622
621
  const [r, o] = G(!1), s = de(async () => {
623
622
  try {
624
623
  await navigator.clipboard.writeText(e), o(!0), setTimeout(() => o(!1), 2e3);
@@ -634,7 +633,7 @@ const Rs = [
634
633
  onClick: s,
635
634
  className: De("cursor-pointer p-3 rounded-full", t),
636
635
  title: n ?? (r ? "Copied!" : "Copy"),
637
- children: r ? /* @__PURE__ */ c.jsx(Os, { className: "w-4 h-4 text-green-500" }) : /* @__PURE__ */ c.jsx(Ts, { className: "w-4 h-4 text-gray-400" })
636
+ children: r ? /* @__PURE__ */ c.jsx(Ns, { className: "w-4 h-4 text-green-500" }) : /* @__PURE__ */ c.jsx(Os, { className: "w-4 h-4 text-gray-400" })
638
637
  }
639
638
  );
640
639
  };
@@ -644,7 +643,7 @@ function fe(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
644
643
  return t?.(o);
645
644
  };
646
645
  }
647
- function En(e, t) {
646
+ function Sn(e, t) {
648
647
  if (typeof e == "function")
649
648
  return e(t);
650
649
  e != null && (e.current = t);
@@ -653,14 +652,14 @@ function Cr(...e) {
653
652
  return (t) => {
654
653
  let n = !1;
655
654
  const r = e.map((o) => {
656
- const s = En(o, t);
655
+ const s = Sn(o, t);
657
656
  return !n && typeof s == "function" && (n = !0), s;
658
657
  });
659
658
  if (n)
660
659
  return () => {
661
660
  for (let o = 0; o < r.length; o++) {
662
661
  const s = r[o];
663
- typeof s == "function" ? s() : En(e[o], null);
662
+ typeof s == "function" ? s() : Sn(e[o], null);
664
663
  }
665
664
  };
666
665
  };
@@ -674,12 +673,12 @@ function Er(e, t = []) {
674
673
  const i = m.createContext(a), u = n.length;
675
674
  n = [...n, a];
676
675
  const l = (d) => {
677
- const { scope: h, children: p, ...v } = d, g = h?.[e]?.[u] || i, x = m.useMemo(() => v, Object.values(v));
678
- return /* @__PURE__ */ c.jsx(g.Provider, { value: x, children: p });
676
+ const { scope: p, children: g, ...v } = d, h = p?.[e]?.[u] || i, x = m.useMemo(() => v, Object.values(v));
677
+ return /* @__PURE__ */ c.jsx(h.Provider, { value: x, children: g });
679
678
  };
680
679
  l.displayName = s + "Provider";
681
- function f(d, h) {
682
- const p = h?.[e]?.[u] || i, v = m.useContext(p);
680
+ function f(d, p) {
681
+ const g = p?.[e]?.[u] || i, v = m.useContext(g);
683
682
  if (v) return v;
684
683
  if (a !== void 0) return a;
685
684
  throw new Error(`\`${d}\` must be used within \`${s}\``);
@@ -696,9 +695,9 @@ function Er(e, t = []) {
696
695
  );
697
696
  };
698
697
  };
699
- return o.scopeName = e, [r, ks(o, ...t)];
698
+ return o.scopeName = e, [r, Ts(o, ...t)];
700
699
  }
701
- function ks(...e) {
700
+ function Ts(...e) {
702
701
  const t = e[0];
703
702
  if (e.length === 1) return t;
704
703
  const n = () => {
@@ -718,8 +717,8 @@ function ks(...e) {
718
717
  }
719
718
  // @__NO_SIDE_EFFECTS__
720
719
  function Sr(e) {
721
- const t = /* @__PURE__ */ Ms(e), n = m.forwardRef((r, o) => {
722
- const { children: s, ...a } = r, i = m.Children.toArray(s), u = i.find(Ds);
720
+ const t = /* @__PURE__ */ ks(e), n = m.forwardRef((r, o) => {
721
+ const { children: s, ...a } = r, i = m.Children.toArray(s), u = i.find(_s);
723
722
  if (u) {
724
723
  const l = u.props.children, f = i.map((d) => d === u ? m.Children.count(l) > 1 ? m.Children.only(null) : m.isValidElement(l) ? l.props.children : null : d);
725
724
  return /* @__PURE__ */ c.jsx(t, { ...a, ref: o, children: m.isValidElement(l) ? m.cloneElement(l, void 0, f) : null });
@@ -729,22 +728,22 @@ function Sr(e) {
729
728
  return n.displayName = `${e}.Slot`, n;
730
729
  }
731
730
  // @__NO_SIDE_EFFECTS__
732
- function Ms(e) {
731
+ function ks(e) {
733
732
  const t = m.forwardRef((n, r) => {
734
733
  const { children: o, ...s } = n;
735
734
  if (m.isValidElement(o)) {
736
- const a = Ls(o), i = Fs(s, o.props);
735
+ const a = Fs(o), i = Ds(s, o.props);
737
736
  return o.type !== m.Fragment && (i.ref = r ? Cr(r, a) : a), m.cloneElement(o, i);
738
737
  }
739
738
  return m.Children.count(o) > 1 ? m.Children.only(null) : null;
740
739
  });
741
740
  return t.displayName = `${e}.SlotClone`, t;
742
741
  }
743
- var _s = Symbol("radix.slottable");
744
- function Ds(e) {
745
- return m.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === _s;
742
+ var Ms = Symbol("radix.slottable");
743
+ function _s(e) {
744
+ return m.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Ms;
746
745
  }
747
- function Fs(e, t) {
746
+ function Ds(e, t) {
748
747
  const n = { ...t };
749
748
  for (const r in t) {
750
749
  const o = e[r], s = t[r];
@@ -755,11 +754,11 @@ function Fs(e, t) {
755
754
  }
756
755
  return { ...e, ...n };
757
756
  }
758
- function Ls(e) {
757
+ function Fs(e) {
759
758
  let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
760
759
  return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
761
760
  }
762
- var Is = [
761
+ var Ls = [
763
762
  "a",
764
763
  "button",
765
764
  "div",
@@ -777,14 +776,14 @@ var Is = [
777
776
  "span",
778
777
  "svg",
779
778
  "ul"
780
- ], ce = Is.reduce((e, t) => {
779
+ ], ce = Ls.reduce((e, t) => {
781
780
  const n = /* @__PURE__ */ Sr(`Primitive.${t}`), r = m.forwardRef((o, s) => {
782
781
  const { asChild: a, ...i } = o, u = a ? n : t;
783
782
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ c.jsx(u, { ...i, ref: s });
784
783
  });
785
784
  return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
786
785
  }, {});
787
- function $s(e, t) {
786
+ function Is(e, t) {
788
787
  e && vr.flushSync(() => e.dispatchEvent(t));
789
788
  }
790
789
  function Te(e) {
@@ -793,7 +792,7 @@ function Te(e) {
793
792
  t.current = e;
794
793
  }), m.useMemo(() => (...n) => t.current?.(...n), []);
795
794
  }
796
- function Ws(e, t = globalThis?.document) {
795
+ function $s(e, t = globalThis?.document) {
797
796
  const n = Te(e);
798
797
  m.useEffect(() => {
799
798
  const r = (o) => {
@@ -802,7 +801,7 @@ function Ws(e, t = globalThis?.document) {
802
801
  return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
803
802
  }, [n, t]);
804
803
  }
805
- var Hs = "DismissableLayer", _t = "dismissableLayer.update", Bs = "dismissableLayer.pointerDownOutside", zs = "dismissableLayer.focusOutside", Sn, Ar = m.createContext({
804
+ var Ws = "DismissableLayer", Ft = "dismissableLayer.update", Hs = "dismissableLayer.pointerDownOutside", Bs = "dismissableLayer.focusOutside", An, Ar = m.createContext({
806
805
  layers: /* @__PURE__ */ new Set(),
807
806
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
808
807
  branches: /* @__PURE__ */ new Set()
@@ -816,25 +815,25 @@ var Hs = "DismissableLayer", _t = "dismissableLayer.update", Bs = "dismissableLa
816
815
  onInteractOutside: a,
817
816
  onDismiss: i,
818
817
  ...u
819
- } = e, l = m.useContext(Ar), [f, d] = m.useState(null), h = f?.ownerDocument ?? globalThis?.document, [, p] = m.useState({}), v = ve(t, (C) => d(C)), g = Array.from(l.layers), [x] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), b = g.indexOf(x), S = f ? g.indexOf(f) : -1, E = l.layersWithOutsidePointerEventsDisabled.size > 0, w = S >= b, j = Ys((C) => {
818
+ } = e, l = m.useContext(Ar), [f, d] = m.useState(null), p = f?.ownerDocument ?? globalThis?.document, [, g] = m.useState({}), v = ve(t, (C) => d(C)), h = Array.from(l.layers), [x] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), b = h.indexOf(x), S = f ? h.indexOf(f) : -1, E = l.layersWithOutsidePointerEventsDisabled.size > 0, w = S >= b, j = Us((C) => {
820
819
  const T = C.target, k = [...l.branches].some((L) => L.contains(T));
821
820
  !w || k || (o?.(C), a?.(C), C.defaultPrevented || i?.());
822
- }, h), A = Gs((C) => {
821
+ }, p), A = Ys((C) => {
823
822
  const T = C.target;
824
823
  [...l.branches].some((L) => L.contains(T)) || (s?.(C), a?.(C), C.defaultPrevented || i?.());
825
- }, h);
826
- return Ws((C) => {
824
+ }, p);
825
+ return $s((C) => {
827
826
  S === l.layers.size - 1 && (r?.(C), !C.defaultPrevented && i && (C.preventDefault(), i()));
828
- }, h), m.useEffect(() => {
827
+ }, p), m.useEffect(() => {
829
828
  if (f)
830
- return n && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (Sn = h.body.style.pointerEvents, h.body.style.pointerEvents = "none"), l.layersWithOutsidePointerEventsDisabled.add(f)), l.layers.add(f), An(), () => {
831
- n && l.layersWithOutsidePointerEventsDisabled.size === 1 && (h.body.style.pointerEvents = Sn);
829
+ return n && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (An = p.body.style.pointerEvents, p.body.style.pointerEvents = "none"), l.layersWithOutsidePointerEventsDisabled.add(f)), l.layers.add(f), Pn(), () => {
830
+ n && l.layersWithOutsidePointerEventsDisabled.size === 1 && (p.body.style.pointerEvents = An);
832
831
  };
833
- }, [f, h, n, l]), m.useEffect(() => () => {
834
- f && (l.layers.delete(f), l.layersWithOutsidePointerEventsDisabled.delete(f), An());
832
+ }, [f, p, n, l]), m.useEffect(() => () => {
833
+ f && (l.layers.delete(f), l.layersWithOutsidePointerEventsDisabled.delete(f), Pn());
835
834
  }, [f, l]), m.useEffect(() => {
836
- const C = () => p({});
837
- return document.addEventListener(_t, C), () => document.removeEventListener(_t, C);
835
+ const C = () => g({});
836
+ return document.addEventListener(Ft, C), () => document.removeEventListener(Ft, C);
838
837
  }, []), /* @__PURE__ */ c.jsx(
839
838
  ce.div,
840
839
  {
@@ -854,8 +853,8 @@ var Hs = "DismissableLayer", _t = "dismissableLayer.update", Bs = "dismissableLa
854
853
  );
855
854
  }
856
855
  );
857
- Pr.displayName = Hs;
858
- var Vs = "DismissableLayerBranch", Us = m.forwardRef((e, t) => {
856
+ Pr.displayName = Ws;
857
+ var zs = "DismissableLayerBranch", Vs = m.forwardRef((e, t) => {
859
858
  const n = m.useContext(Ar), r = m.useRef(null), o = ve(t, r);
860
859
  return m.useEffect(() => {
861
860
  const s = r.current;
@@ -865,8 +864,8 @@ var Vs = "DismissableLayerBranch", Us = m.forwardRef((e, t) => {
865
864
  };
866
865
  }, [n.branches]), /* @__PURE__ */ c.jsx(ce.div, { ...e, ref: o });
867
866
  });
868
- Us.displayName = Vs;
869
- function Ys(e, t = globalThis?.document) {
867
+ Vs.displayName = zs;
868
+ function Us(e, t = globalThis?.document) {
870
869
  const n = Te(e), r = m.useRef(!1), o = m.useRef(() => {
871
870
  });
872
871
  return m.useEffect(() => {
@@ -874,7 +873,7 @@ function Ys(e, t = globalThis?.document) {
874
873
  if (i.target && !r.current) {
875
874
  let u = function() {
876
875
  Nr(
877
- Bs,
876
+ Hs,
878
877
  n,
879
878
  l,
880
879
  { discrete: !0 }
@@ -896,11 +895,11 @@ function Ys(e, t = globalThis?.document) {
896
895
  onPointerDownCapture: () => r.current = !0
897
896
  };
898
897
  }
899
- function Gs(e, t = globalThis?.document) {
898
+ function Ys(e, t = globalThis?.document) {
900
899
  const n = Te(e), r = m.useRef(!1);
901
900
  return m.useEffect(() => {
902
901
  const o = (s) => {
903
- s.target && !r.current && Nr(zs, n, { originalEvent: s }, {
902
+ s.target && !r.current && Nr(Bs, n, { originalEvent: s }, {
904
903
  discrete: !1
905
904
  });
906
905
  };
@@ -910,35 +909,35 @@ function Gs(e, t = globalThis?.document) {
910
909
  onBlurCapture: () => r.current = !1
911
910
  };
912
911
  }
913
- function An() {
914
- const e = new CustomEvent(_t);
912
+ function Pn() {
913
+ const e = new CustomEvent(Ft);
915
914
  document.dispatchEvent(e);
916
915
  }
917
916
  function Nr(e, t, n, { discrete: r }) {
918
917
  const o = n.originalEvent.target, s = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
919
- t && o.addEventListener(e, t, { once: !0 }), r ? $s(o, s) : o.dispatchEvent(s);
918
+ t && o.addEventListener(e, t, { once: !0 }), r ? Is(o, s) : o.dispatchEvent(s);
920
919
  }
921
- var jt = 0;
922
- function Zs() {
920
+ var Ct = 0;
921
+ function Gs() {
923
922
  m.useEffect(() => {
924
923
  const e = document.querySelectorAll("[data-radix-focus-guard]");
925
- return document.body.insertAdjacentElement("afterbegin", e[0] ?? Pn()), document.body.insertAdjacentElement("beforeend", e[1] ?? Pn()), jt++, () => {
926
- jt === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), jt--;
924
+ return document.body.insertAdjacentElement("afterbegin", e[0] ?? Nn()), document.body.insertAdjacentElement("beforeend", e[1] ?? Nn()), Ct++, () => {
925
+ Ct === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), Ct--;
927
926
  };
928
927
  }, []);
929
928
  }
930
- function Pn() {
929
+ function Nn() {
931
930
  const e = document.createElement("span");
932
931
  return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
933
932
  }
934
- var Ct = "focusScope.autoFocusOnMount", Et = "focusScope.autoFocusOnUnmount", Nn = { bubbles: !1, cancelable: !0 }, Xs = "FocusScope", Or = m.forwardRef((e, t) => {
933
+ var Et = "focusScope.autoFocusOnMount", St = "focusScope.autoFocusOnUnmount", Rn = { bubbles: !1, cancelable: !0 }, Zs = "FocusScope", Rr = m.forwardRef((e, t) => {
935
934
  const {
936
935
  loop: n = !1,
937
936
  trapped: r = !1,
938
937
  onMountAutoFocus: o,
939
938
  onUnmountAutoFocus: s,
940
939
  ...a
941
- } = e, [i, u] = m.useState(null), l = Te(o), f = Te(s), d = m.useRef(null), h = ve(t, (g) => u(g)), p = m.useRef({
940
+ } = e, [i, u] = m.useState(null), l = Te(o), f = Te(s), d = m.useRef(null), p = ve(t, (h) => u(h)), g = m.useRef({
942
941
  paused: !1,
943
942
  pause() {
944
943
  this.paused = !0;
@@ -949,12 +948,12 @@ var Ct = "focusScope.autoFocusOnMount", Et = "focusScope.autoFocusOnUnmount", Nn
949
948
  }).current;
950
949
  m.useEffect(() => {
951
950
  if (r) {
952
- let g = function(E) {
953
- if (p.paused || !i) return;
951
+ let h = function(E) {
952
+ if (g.paused || !i) return;
954
953
  const w = E.target;
955
954
  i.contains(w) ? d.current = w : ue(d.current, { select: !0 });
956
955
  }, x = function(E) {
957
- if (p.paused || !i) return;
956
+ if (g.paused || !i) return;
958
957
  const w = E.relatedTarget;
959
958
  w !== null && (i.contains(w) || ue(d.current, { select: !0 }));
960
959
  }, b = function(E) {
@@ -962,52 +961,52 @@ var Ct = "focusScope.autoFocusOnMount", Et = "focusScope.autoFocusOnUnmount", Nn
962
961
  for (const j of E)
963
962
  j.removedNodes.length > 0 && ue(i);
964
963
  };
965
- document.addEventListener("focusin", g), document.addEventListener("focusout", x);
964
+ document.addEventListener("focusin", h), document.addEventListener("focusout", x);
966
965
  const S = new MutationObserver(b);
967
966
  return i && S.observe(i, { childList: !0, subtree: !0 }), () => {
968
- document.removeEventListener("focusin", g), document.removeEventListener("focusout", x), S.disconnect();
967
+ document.removeEventListener("focusin", h), document.removeEventListener("focusout", x), S.disconnect();
969
968
  };
970
969
  }
971
- }, [r, i, p.paused]), m.useEffect(() => {
970
+ }, [r, i, g.paused]), m.useEffect(() => {
972
971
  if (i) {
973
- Rn.add(p);
974
- const g = document.activeElement;
975
- if (!i.contains(g)) {
976
- const b = new CustomEvent(Ct, Nn);
977
- i.addEventListener(Ct, l), i.dispatchEvent(b), b.defaultPrevented || (qs(ta(Rr(i)), { select: !0 }), document.activeElement === g && ue(i));
972
+ Tn.add(g);
973
+ const h = document.activeElement;
974
+ if (!i.contains(h)) {
975
+ const b = new CustomEvent(Et, Rn);
976
+ i.addEventListener(Et, l), i.dispatchEvent(b), b.defaultPrevented || (Xs(ea(Or(i)), { select: !0 }), document.activeElement === h && ue(i));
978
977
  }
979
978
  return () => {
980
- i.removeEventListener(Ct, l), setTimeout(() => {
981
- const b = new CustomEvent(Et, Nn);
982
- i.addEventListener(Et, f), i.dispatchEvent(b), b.defaultPrevented || ue(g ?? document.body, { select: !0 }), i.removeEventListener(Et, f), Rn.remove(p);
979
+ i.removeEventListener(Et, l), setTimeout(() => {
980
+ const b = new CustomEvent(St, Rn);
981
+ i.addEventListener(St, f), i.dispatchEvent(b), b.defaultPrevented || ue(h ?? document.body, { select: !0 }), i.removeEventListener(St, f), Tn.remove(g);
983
982
  }, 0);
984
983
  };
985
984
  }
986
- }, [i, l, f, p]);
985
+ }, [i, l, f, g]);
987
986
  const v = m.useCallback(
988
- (g) => {
989
- if (!n && !r || p.paused) return;
990
- const x = g.key === "Tab" && !g.altKey && !g.ctrlKey && !g.metaKey, b = document.activeElement;
987
+ (h) => {
988
+ if (!n && !r || g.paused) return;
989
+ const x = h.key === "Tab" && !h.altKey && !h.ctrlKey && !h.metaKey, b = document.activeElement;
991
990
  if (x && b) {
992
- const S = g.currentTarget, [E, w] = Js(S);
993
- E && w ? !g.shiftKey && b === w ? (g.preventDefault(), n && ue(E, { select: !0 })) : g.shiftKey && b === E && (g.preventDefault(), n && ue(w, { select: !0 })) : b === S && g.preventDefault();
991
+ const S = h.currentTarget, [E, w] = qs(S);
992
+ E && w ? !h.shiftKey && b === w ? (h.preventDefault(), n && ue(E, { select: !0 })) : h.shiftKey && b === E && (h.preventDefault(), n && ue(w, { select: !0 })) : b === S && h.preventDefault();
994
993
  }
995
994
  },
996
- [n, r, p.paused]
995
+ [n, r, g.paused]
997
996
  );
998
- return /* @__PURE__ */ c.jsx(ce.div, { tabIndex: -1, ...a, ref: h, onKeyDown: v });
997
+ return /* @__PURE__ */ c.jsx(ce.div, { tabIndex: -1, ...a, ref: p, onKeyDown: v });
999
998
  });
1000
- Or.displayName = Xs;
1001
- function qs(e, { select: t = !1 } = {}) {
999
+ Rr.displayName = Zs;
1000
+ function Xs(e, { select: t = !1 } = {}) {
1002
1001
  const n = document.activeElement;
1003
1002
  for (const r of e)
1004
1003
  if (ue(r, { select: t }), document.activeElement !== n) return;
1005
1004
  }
1006
- function Js(e) {
1007
- const t = Rr(e), n = On(t, e), r = On(t.reverse(), e);
1005
+ function qs(e) {
1006
+ const t = Or(e), n = On(t, e), r = On(t.reverse(), e);
1008
1007
  return [n, r];
1009
1008
  }
1010
- function Rr(e) {
1009
+ function Or(e) {
1011
1010
  const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
1012
1011
  acceptNode: (r) => {
1013
1012
  const o = r.tagName === "INPUT" && r.type === "hidden";
@@ -1019,9 +1018,9 @@ function Rr(e) {
1019
1018
  }
1020
1019
  function On(e, t) {
1021
1020
  for (const n of e)
1022
- if (!Ks(n, { upTo: t })) return n;
1021
+ if (!Js(n, { upTo: t })) return n;
1023
1022
  }
1024
- function Ks(e, { upTo: t }) {
1023
+ function Js(e, { upTo: t }) {
1025
1024
  if (getComputedStyle(e).visibility === "hidden") return !0;
1026
1025
  for (; e; ) {
1027
1026
  if (t !== void 0 && e === t) return !1;
@@ -1030,57 +1029,57 @@ function Ks(e, { upTo: t }) {
1030
1029
  }
1031
1030
  return !1;
1032
1031
  }
1033
- function Qs(e) {
1032
+ function Ks(e) {
1034
1033
  return e instanceof HTMLInputElement && "select" in e;
1035
1034
  }
1036
1035
  function ue(e, { select: t = !1 } = {}) {
1037
1036
  if (e && e.focus) {
1038
1037
  const n = document.activeElement;
1039
- e.focus({ preventScroll: !0 }), e !== n && Qs(e) && t && e.select();
1038
+ e.focus({ preventScroll: !0 }), e !== n && Ks(e) && t && e.select();
1040
1039
  }
1041
1040
  }
1042
- var Rn = ea();
1043
- function ea() {
1041
+ var Tn = Qs();
1042
+ function Qs() {
1044
1043
  let e = [];
1045
1044
  return {
1046
1045
  add(t) {
1047
1046
  const n = e[0];
1048
- t !== n && n?.pause(), e = Tn(e, t), e.unshift(t);
1047
+ t !== n && n?.pause(), e = kn(e, t), e.unshift(t);
1049
1048
  },
1050
1049
  remove(t) {
1051
- e = Tn(e, t), e[0]?.resume();
1050
+ e = kn(e, t), e[0]?.resume();
1052
1051
  }
1053
1052
  };
1054
1053
  }
1055
- function Tn(e, t) {
1054
+ function kn(e, t) {
1056
1055
  const n = [...e], r = n.indexOf(t);
1057
1056
  return r !== -1 && n.splice(r, 1), n;
1058
1057
  }
1059
- function ta(e) {
1058
+ function ea(e) {
1060
1059
  return e.filter((t) => t.tagName !== "A");
1061
1060
  }
1062
1061
  var me = globalThis?.document ? m.useLayoutEffect : () => {
1063
- }, na = m[" useId ".trim().toString()] || (() => {
1064
- }), ra = 0;
1065
- function oa(e) {
1066
- const [t, n] = m.useState(na());
1062
+ }, ta = m[" useId ".trim().toString()] || (() => {
1063
+ }), na = 0;
1064
+ function ra(e) {
1065
+ const [t, n] = m.useState(ta());
1067
1066
  return me(() => {
1068
- n((r) => r ?? String(ra++));
1067
+ n((r) => r ?? String(na++));
1069
1068
  }, [e]), e || (t ? `radix-${t}` : "");
1070
1069
  }
1071
- const sa = ["top", "right", "bottom", "left"], pe = Math.min, X = Math.max, lt = Math.round, Je = Math.floor, ne = (e) => ({
1070
+ const oa = ["top", "right", "bottom", "left"], pe = Math.min, X = Math.max, lt = Math.round, Je = Math.floor, ne = (e) => ({
1072
1071
  x: e,
1073
1072
  y: e
1074
- }), aa = {
1073
+ }), sa = {
1075
1074
  left: "right",
1076
1075
  right: "left",
1077
1076
  bottom: "top",
1078
1077
  top: "bottom"
1079
- }, ia = {
1078
+ }, aa = {
1080
1079
  start: "end",
1081
1080
  end: "start"
1082
1081
  };
1083
- function Dt(e, t, n) {
1082
+ function Lt(e, t, n) {
1084
1083
  return X(e, pe(t, n));
1085
1084
  }
1086
1085
  function ae(e, t) {
@@ -1092,32 +1091,32 @@ function ie(e) {
1092
1091
  function Fe(e) {
1093
1092
  return e.split("-")[1];
1094
1093
  }
1095
- function en(e) {
1094
+ function tn(e) {
1096
1095
  return e === "x" ? "y" : "x";
1097
1096
  }
1098
- function tn(e) {
1097
+ function nn(e) {
1099
1098
  return e === "y" ? "height" : "width";
1100
1099
  }
1101
1100
  function he(e) {
1102
1101
  return ["top", "bottom"].includes(ie(e)) ? "y" : "x";
1103
1102
  }
1104
- function nn(e) {
1105
- return en(he(e));
1103
+ function rn(e) {
1104
+ return tn(he(e));
1106
1105
  }
1107
- function ca(e, t, n) {
1106
+ function ia(e, t, n) {
1108
1107
  n === void 0 && (n = !1);
1109
- const r = Fe(e), o = nn(e), s = tn(o);
1108
+ const r = Fe(e), o = rn(e), s = nn(o);
1110
1109
  let a = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
1111
1110
  return t.reference[s] > t.floating[s] && (a = ut(a)), [a, ut(a)];
1112
1111
  }
1113
- function la(e) {
1112
+ function ca(e) {
1114
1113
  const t = ut(e);
1115
- return [Ft(e), t, Ft(t)];
1114
+ return [It(e), t, It(t)];
1116
1115
  }
1117
- function Ft(e) {
1118
- return e.replace(/start|end/g, (t) => ia[t]);
1116
+ function It(e) {
1117
+ return e.replace(/start|end/g, (t) => aa[t]);
1119
1118
  }
1120
- function ua(e, t, n) {
1119
+ function la(e, t, n) {
1121
1120
  const r = ["left", "right"], o = ["right", "left"], s = ["top", "bottom"], a = ["bottom", "top"];
1122
1121
  switch (e) {
1123
1122
  case "top":
@@ -1130,15 +1129,15 @@ function ua(e, t, n) {
1130
1129
  return [];
1131
1130
  }
1132
1131
  }
1133
- function fa(e, t, n, r) {
1132
+ function ua(e, t, n, r) {
1134
1133
  const o = Fe(e);
1135
- let s = ua(ie(e), n === "start", r);
1136
- return o && (s = s.map((a) => a + "-" + o), t && (s = s.concat(s.map(Ft)))), s;
1134
+ let s = la(ie(e), n === "start", r);
1135
+ return o && (s = s.map((a) => a + "-" + o), t && (s = s.concat(s.map(It)))), s;
1137
1136
  }
1138
1137
  function ut(e) {
1139
- return e.replace(/left|right|bottom|top/g, (t) => aa[t]);
1138
+ return e.replace(/left|right|bottom|top/g, (t) => sa[t]);
1140
1139
  }
1141
- function da(e) {
1140
+ function fa(e) {
1142
1141
  return {
1143
1142
  top: 0,
1144
1143
  right: 0,
@@ -1148,7 +1147,7 @@ function da(e) {
1148
1147
  };
1149
1148
  }
1150
1149
  function Tr(e) {
1151
- return typeof e != "number" ? da(e) : {
1150
+ return typeof e != "number" ? fa(e) : {
1152
1151
  top: e,
1153
1152
  right: e,
1154
1153
  bottom: e,
@@ -1173,55 +1172,55 @@ function ft(e) {
1173
1172
  y: n
1174
1173
  };
1175
1174
  }
1176
- function kn(e, t, n) {
1175
+ function Mn(e, t, n) {
1177
1176
  let {
1178
1177
  reference: r,
1179
1178
  floating: o
1180
1179
  } = e;
1181
- const s = he(t), a = nn(t), i = tn(a), u = ie(t), l = s === "y", f = r.x + r.width / 2 - o.width / 2, d = r.y + r.height / 2 - o.height / 2, h = r[i] / 2 - o[i] / 2;
1182
- let p;
1180
+ const s = he(t), a = rn(t), i = nn(a), u = ie(t), l = s === "y", f = r.x + r.width / 2 - o.width / 2, d = r.y + r.height / 2 - o.height / 2, p = r[i] / 2 - o[i] / 2;
1181
+ let g;
1183
1182
  switch (u) {
1184
1183
  case "top":
1185
- p = {
1184
+ g = {
1186
1185
  x: f,
1187
1186
  y: r.y - o.height
1188
1187
  };
1189
1188
  break;
1190
1189
  case "bottom":
1191
- p = {
1190
+ g = {
1192
1191
  x: f,
1193
1192
  y: r.y + r.height
1194
1193
  };
1195
1194
  break;
1196
1195
  case "right":
1197
- p = {
1196
+ g = {
1198
1197
  x: r.x + r.width,
1199
1198
  y: d
1200
1199
  };
1201
1200
  break;
1202
1201
  case "left":
1203
- p = {
1202
+ g = {
1204
1203
  x: r.x - o.width,
1205
1204
  y: d
1206
1205
  };
1207
1206
  break;
1208
1207
  default:
1209
- p = {
1208
+ g = {
1210
1209
  x: r.x,
1211
1210
  y: r.y
1212
1211
  };
1213
1212
  }
1214
1213
  switch (Fe(t)) {
1215
1214
  case "start":
1216
- p[a] -= h * (n && l ? -1 : 1);
1215
+ g[a] -= p * (n && l ? -1 : 1);
1217
1216
  break;
1218
1217
  case "end":
1219
- p[a] += h * (n && l ? -1 : 1);
1218
+ g[a] += p * (n && l ? -1 : 1);
1220
1219
  break;
1221
1220
  }
1222
- return p;
1221
+ return g;
1223
1222
  }
1224
- const ma = async (e, t, n) => {
1223
+ const da = async (e, t, n) => {
1225
1224
  const {
1226
1225
  placement: r = "bottom",
1227
1226
  strategy: o = "absolute",
@@ -1235,12 +1234,12 @@ const ma = async (e, t, n) => {
1235
1234
  }), {
1236
1235
  x: f,
1237
1236
  y: d
1238
- } = kn(l, r, u), h = r, p = {}, v = 0;
1239
- for (let g = 0; g < i.length; g++) {
1237
+ } = Mn(l, r, u), p = r, g = {}, v = 0;
1238
+ for (let h = 0; h < i.length; h++) {
1240
1239
  const {
1241
1240
  name: x,
1242
1241
  fn: b
1243
- } = i[g], {
1242
+ } = i[h], {
1244
1243
  x: S,
1245
1244
  y: E,
1246
1245
  data: w,
@@ -1249,9 +1248,9 @@ const ma = async (e, t, n) => {
1249
1248
  x: f,
1250
1249
  y: d,
1251
1250
  initialPlacement: r,
1252
- placement: h,
1251
+ placement: p,
1253
1252
  strategy: o,
1254
- middlewareData: p,
1253
+ middlewareData: g,
1255
1254
  rects: l,
1256
1255
  platform: a,
1257
1256
  elements: {
@@ -1259,27 +1258,27 @@ const ma = async (e, t, n) => {
1259
1258
  floating: t
1260
1259
  }
1261
1260
  });
1262
- f = S ?? f, d = E ?? d, p = {
1263
- ...p,
1261
+ f = S ?? f, d = E ?? d, g = {
1262
+ ...g,
1264
1263
  [x]: {
1265
- ...p[x],
1264
+ ...g[x],
1266
1265
  ...w
1267
1266
  }
1268
- }, j && v <= 50 && (v++, typeof j == "object" && (j.placement && (h = j.placement), j.rects && (l = j.rects === !0 ? await a.getElementRects({
1267
+ }, j && v <= 50 && (v++, typeof j == "object" && (j.placement && (p = j.placement), j.rects && (l = j.rects === !0 ? await a.getElementRects({
1269
1268
  reference: e,
1270
1269
  floating: t,
1271
1270
  strategy: o
1272
1271
  }) : j.rects), {
1273
1272
  x: f,
1274
1273
  y: d
1275
- } = kn(l, h, u)), g = -1);
1274
+ } = Mn(l, p, u)), h = -1);
1276
1275
  }
1277
1276
  return {
1278
1277
  x: f,
1279
1278
  y: d,
1280
- placement: h,
1279
+ placement: p,
1281
1280
  strategy: o,
1282
- middlewareData: p
1281
+ middlewareData: g
1283
1282
  };
1284
1283
  };
1285
1284
  async function Ue(e, t) {
@@ -1296,9 +1295,9 @@ async function Ue(e, t) {
1296
1295
  boundary: l = "clippingAncestors",
1297
1296
  rootBoundary: f = "viewport",
1298
1297
  elementContext: d = "floating",
1299
- altBoundary: h = !1,
1300
- padding: p = 0
1301
- } = ae(t, e), v = Tr(p), x = i[h ? d === "floating" ? "reference" : "floating" : d], b = ft(await s.getClippingRect({
1298
+ altBoundary: p = !1,
1299
+ padding: g = 0
1300
+ } = ae(t, e), v = Tr(g), x = i[p ? d === "floating" ? "reference" : "floating" : d], b = ft(await s.getClippingRect({
1302
1301
  element: (n = await (s.isElement == null ? void 0 : s.isElement(x))) == null || n ? x : x.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(i.floating)),
1303
1302
  boundary: l,
1304
1303
  rootBoundary: f,
@@ -1327,7 +1326,7 @@ async function Ue(e, t) {
1327
1326
  right: (j.right - b.right + v.right) / w.x
1328
1327
  };
1329
1328
  }
1330
- const pa = (e) => ({
1329
+ const ma = (e) => ({
1331
1330
  name: "arrow",
1332
1331
  options: e,
1333
1332
  async fn(t) {
@@ -1345,26 +1344,26 @@ const pa = (e) => ({
1345
1344
  } = ae(e, t) || {};
1346
1345
  if (l == null)
1347
1346
  return {};
1348
- const d = Tr(f), h = {
1347
+ const d = Tr(f), p = {
1349
1348
  x: n,
1350
1349
  y: r
1351
- }, p = nn(o), v = tn(p), g = await a.getDimensions(l), x = p === "y", b = x ? "top" : "left", S = x ? "bottom" : "right", E = x ? "clientHeight" : "clientWidth", w = s.reference[v] + s.reference[p] - h[p] - s.floating[v], j = h[p] - s.reference[p], A = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(l));
1350
+ }, g = rn(o), v = nn(g), h = await a.getDimensions(l), x = g === "y", b = x ? "top" : "left", S = x ? "bottom" : "right", E = x ? "clientHeight" : "clientWidth", w = s.reference[v] + s.reference[g] - p[g] - s.floating[v], j = p[g] - s.reference[g], A = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(l));
1352
1351
  let C = A ? A[E] : 0;
1353
1352
  (!C || !await (a.isElement == null ? void 0 : a.isElement(A))) && (C = i.floating[E] || s.floating[v]);
1354
- const T = w / 2 - j / 2, k = C / 2 - g[v] / 2 - 1, L = pe(d[b], k), W = pe(d[S], k), H = L, I = C - g[v] - W, M = C / 2 - g[v] / 2 + T, _ = Dt(H, M, I), D = !u.arrow && Fe(o) != null && M !== _ && s.reference[v] / 2 - (M < H ? L : W) - g[v] / 2 < 0, R = D ? M < H ? M - H : M - I : 0;
1353
+ const T = w / 2 - j / 2, k = C / 2 - h[v] / 2 - 1, L = pe(d[b], k), W = pe(d[S], k), H = L, I = C - h[v] - W, M = C / 2 - h[v] / 2 + T, _ = Lt(H, M, I), D = !u.arrow && Fe(o) != null && M !== _ && s.reference[v] / 2 - (M < H ? L : W) - h[v] / 2 < 0, O = D ? M < H ? M - H : M - I : 0;
1355
1354
  return {
1356
- [p]: h[p] + R,
1355
+ [g]: p[g] + O,
1357
1356
  data: {
1358
- [p]: _,
1359
- centerOffset: M - _ - R,
1357
+ [g]: _,
1358
+ centerOffset: M - _ - O,
1360
1359
  ...D && {
1361
- alignmentOffset: R
1360
+ alignmentOffset: O
1362
1361
  }
1363
1362
  },
1364
1363
  reset: D
1365
1364
  };
1366
1365
  }
1367
- }), ha = function(e) {
1366
+ }), pa = function(e) {
1368
1367
  return e === void 0 && (e = {}), {
1369
1368
  name: "flip",
1370
1369
  options: e,
@@ -1380,20 +1379,20 @@ const pa = (e) => ({
1380
1379
  } = t, {
1381
1380
  mainAxis: f = !0,
1382
1381
  crossAxis: d = !0,
1383
- fallbackPlacements: h,
1384
- fallbackStrategy: p = "bestFit",
1382
+ fallbackPlacements: p,
1383
+ fallbackStrategy: g = "bestFit",
1385
1384
  fallbackAxisSideDirection: v = "none",
1386
- flipAlignment: g = !0,
1385
+ flipAlignment: h = !0,
1387
1386
  ...x
1388
1387
  } = ae(e, t);
1389
1388
  if ((n = s.arrow) != null && n.alignmentOffset)
1390
1389
  return {};
1391
- const b = ie(o), S = he(i), E = ie(i) === i, w = await (u.isRTL == null ? void 0 : u.isRTL(l.floating)), j = h || (E || !g ? [ut(i)] : la(i)), A = v !== "none";
1392
- !h && A && j.push(...fa(i, g, v, w));
1390
+ const b = ie(o), S = he(i), E = ie(i) === i, w = await (u.isRTL == null ? void 0 : u.isRTL(l.floating)), j = p || (E || !h ? [ut(i)] : ca(i)), A = v !== "none";
1391
+ !p && A && j.push(...ua(i, h, v, w));
1393
1392
  const C = [i, ...j], T = await Ue(t, x), k = [];
1394
1393
  let L = ((r = s.flip) == null ? void 0 : r.overflows) || [];
1395
1394
  if (f && k.push(T[b]), d) {
1396
- const M = ca(o, a, w);
1395
+ const M = ia(o, a, w);
1397
1396
  k.push(T[M[0]], T[M[1]]);
1398
1397
  }
1399
1398
  if (L = [...L, {
@@ -1412,21 +1411,21 @@ const pa = (e) => ({
1412
1411
  placement: _
1413
1412
  }
1414
1413
  };
1415
- let D = (H = L.filter((R) => R.overflows[0] <= 0).sort((R, O) => R.overflows[1] - O.overflows[1])[0]) == null ? void 0 : H.placement;
1414
+ let D = (H = L.filter((O) => O.overflows[0] <= 0).sort((O, R) => O.overflows[1] - R.overflows[1])[0]) == null ? void 0 : H.placement;
1416
1415
  if (!D)
1417
- switch (p) {
1416
+ switch (g) {
1418
1417
  case "bestFit": {
1419
1418
  var I;
1420
- const R = (I = L.filter((O) => {
1419
+ const O = (I = L.filter((R) => {
1421
1420
  if (A) {
1422
- const B = he(O.placement);
1421
+ const B = he(R.placement);
1423
1422
  return B === S || // Create a bias to the `y` side axis due to horizontal
1424
1423
  // reading directions favoring greater width.
1425
1424
  B === "y";
1426
1425
  }
1427
1426
  return !0;
1428
- }).map((O) => [O.placement, O.overflows.filter((B) => B > 0).reduce((B, y) => B + y, 0)]).sort((O, B) => O[1] - B[1])[0]) == null ? void 0 : I[0];
1429
- R && (D = R);
1427
+ }).map((R) => [R.placement, R.overflows.filter((B) => B > 0).reduce((B, y) => B + y, 0)]).sort((R, B) => R[1] - B[1])[0]) == null ? void 0 : I[0];
1428
+ O && (D = O);
1430
1429
  break;
1431
1430
  }
1432
1431
  case "initialPlacement":
@@ -1444,7 +1443,7 @@ const pa = (e) => ({
1444
1443
  }
1445
1444
  };
1446
1445
  };
1447
- function Mn(e, t) {
1446
+ function _n(e, t) {
1448
1447
  return {
1449
1448
  top: e.top - t.height,
1450
1449
  right: e.right - t.width,
@@ -1452,10 +1451,10 @@ function Mn(e, t) {
1452
1451
  left: e.left - t.width
1453
1452
  };
1454
1453
  }
1455
- function _n(e) {
1456
- return sa.some((t) => e[t] >= 0);
1454
+ function Dn(e) {
1455
+ return oa.some((t) => e[t] >= 0);
1457
1456
  }
1458
- const ga = function(e) {
1457
+ const ha = function(e) {
1459
1458
  return e === void 0 && (e = {}), {
1460
1459
  name: "hide",
1461
1460
  options: e,
@@ -1471,11 +1470,11 @@ const ga = function(e) {
1471
1470
  const s = await Ue(t, {
1472
1471
  ...o,
1473
1472
  elementContext: "reference"
1474
- }), a = Mn(s, n.reference);
1473
+ }), a = _n(s, n.reference);
1475
1474
  return {
1476
1475
  data: {
1477
1476
  referenceHiddenOffsets: a,
1478
- referenceHidden: _n(a)
1477
+ referenceHidden: Dn(a)
1479
1478
  }
1480
1479
  };
1481
1480
  }
@@ -1483,11 +1482,11 @@ const ga = function(e) {
1483
1482
  const s = await Ue(t, {
1484
1483
  ...o,
1485
1484
  altBoundary: !0
1486
- }), a = Mn(s, n.floating);
1485
+ }), a = _n(s, n.floating);
1487
1486
  return {
1488
1487
  data: {
1489
1488
  escapedOffsets: a,
1490
- escaped: _n(a)
1489
+ escaped: Dn(a)
1491
1490
  }
1492
1491
  };
1493
1492
  }
@@ -1497,15 +1496,15 @@ const ga = function(e) {
1497
1496
  }
1498
1497
  };
1499
1498
  };
1500
- async function va(e, t) {
1499
+ async function ga(e, t) {
1501
1500
  const {
1502
1501
  placement: n,
1503
1502
  platform: r,
1504
1503
  elements: o
1505
1504
  } = e, s = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), a = ie(n), i = Fe(n), u = he(n) === "y", l = ["left", "top"].includes(a) ? -1 : 1, f = s && u ? -1 : 1, d = ae(t, e);
1506
1505
  let {
1507
- mainAxis: h,
1508
- crossAxis: p,
1506
+ mainAxis: p,
1507
+ crossAxis: g,
1509
1508
  alignmentAxis: v
1510
1509
  } = typeof d == "number" ? {
1511
1510
  mainAxis: d,
@@ -1516,15 +1515,15 @@ async function va(e, t) {
1516
1515
  crossAxis: d.crossAxis || 0,
1517
1516
  alignmentAxis: d.alignmentAxis
1518
1517
  };
1519
- return i && typeof v == "number" && (p = i === "end" ? v * -1 : v), u ? {
1520
- x: p * f,
1521
- y: h * l
1518
+ return i && typeof v == "number" && (g = i === "end" ? v * -1 : v), u ? {
1519
+ x: g * f,
1520
+ y: p * l
1522
1521
  } : {
1523
- x: h * l,
1524
- y: p * f
1522
+ x: p * l,
1523
+ y: g * f
1525
1524
  };
1526
1525
  }
1527
- const ya = function(e) {
1526
+ const va = function(e) {
1528
1527
  return e === void 0 && (e = 0), {
1529
1528
  name: "offset",
1530
1529
  options: e,
@@ -1535,7 +1534,7 @@ const ya = function(e) {
1535
1534
  y: s,
1536
1535
  placement: a,
1537
1536
  middlewareData: i
1538
- } = t, u = await va(t, e);
1537
+ } = t, u = await ga(t, e);
1539
1538
  return a === ((n = i.offset) == null ? void 0 : n.placement) && (r = i.arrow) != null && r.alignmentOffset ? {} : {
1540
1539
  x: o + u.x,
1541
1540
  y: s + u.y,
@@ -1546,7 +1545,7 @@ const ya = function(e) {
1546
1545
  };
1547
1546
  }
1548
1547
  };
1549
- }, xa = function(e) {
1548
+ }, ya = function(e) {
1550
1549
  return e === void 0 && (e = {}), {
1551
1550
  name: "shift",
1552
1551
  options: e,
@@ -1574,35 +1573,35 @@ const ya = function(e) {
1574
1573
  } = ae(e, t), l = {
1575
1574
  x: n,
1576
1575
  y: r
1577
- }, f = await Ue(t, u), d = he(ie(o)), h = en(d);
1578
- let p = l[h], v = l[d];
1576
+ }, f = await Ue(t, u), d = he(ie(o)), p = tn(d);
1577
+ let g = l[p], v = l[d];
1579
1578
  if (s) {
1580
- const x = h === "y" ? "top" : "left", b = h === "y" ? "bottom" : "right", S = p + f[x], E = p - f[b];
1581
- p = Dt(S, p, E);
1579
+ const x = p === "y" ? "top" : "left", b = p === "y" ? "bottom" : "right", S = g + f[x], E = g - f[b];
1580
+ g = Lt(S, g, E);
1582
1581
  }
1583
1582
  if (a) {
1584
1583
  const x = d === "y" ? "top" : "left", b = d === "y" ? "bottom" : "right", S = v + f[x], E = v - f[b];
1585
- v = Dt(S, v, E);
1584
+ v = Lt(S, v, E);
1586
1585
  }
1587
- const g = i.fn({
1586
+ const h = i.fn({
1588
1587
  ...t,
1589
- [h]: p,
1588
+ [p]: g,
1590
1589
  [d]: v
1591
1590
  });
1592
1591
  return {
1593
- ...g,
1592
+ ...h,
1594
1593
  data: {
1595
- x: g.x - n,
1596
- y: g.y - r,
1594
+ x: h.x - n,
1595
+ y: h.y - r,
1597
1596
  enabled: {
1598
- [h]: s,
1597
+ [p]: s,
1599
1598
  [d]: a
1600
1599
  }
1601
1600
  }
1602
1601
  };
1603
1602
  }
1604
1603
  };
1605
- }, ba = function(e) {
1604
+ }, xa = function(e) {
1606
1605
  return e === void 0 && (e = {}), {
1607
1606
  options: e,
1608
1607
  fn(t) {
@@ -1619,32 +1618,32 @@ const ya = function(e) {
1619
1618
  } = ae(e, t), f = {
1620
1619
  x: n,
1621
1620
  y: r
1622
- }, d = he(o), h = en(d);
1623
- let p = f[h], v = f[d];
1624
- const g = ae(i, t), x = typeof g == "number" ? {
1625
- mainAxis: g,
1621
+ }, d = he(o), p = tn(d);
1622
+ let g = f[p], v = f[d];
1623
+ const h = ae(i, t), x = typeof h == "number" ? {
1624
+ mainAxis: h,
1626
1625
  crossAxis: 0
1627
1626
  } : {
1628
1627
  mainAxis: 0,
1629
1628
  crossAxis: 0,
1630
- ...g
1629
+ ...h
1631
1630
  };
1632
1631
  if (u) {
1633
- const E = h === "y" ? "height" : "width", w = s.reference[h] - s.floating[E] + x.mainAxis, j = s.reference[h] + s.reference[E] - x.mainAxis;
1634
- p < w ? p = w : p > j && (p = j);
1632
+ const E = p === "y" ? "height" : "width", w = s.reference[p] - s.floating[E] + x.mainAxis, j = s.reference[p] + s.reference[E] - x.mainAxis;
1633
+ g < w ? g = w : g > j && (g = j);
1635
1634
  }
1636
1635
  if (l) {
1637
1636
  var b, S;
1638
- const E = h === "y" ? "width" : "height", w = ["top", "left"].includes(ie(o)), j = s.reference[d] - s.floating[E] + (w && ((b = a.offset) == null ? void 0 : b[d]) || 0) + (w ? 0 : x.crossAxis), A = s.reference[d] + s.reference[E] + (w ? 0 : ((S = a.offset) == null ? void 0 : S[d]) || 0) - (w ? x.crossAxis : 0);
1637
+ const E = p === "y" ? "width" : "height", w = ["top", "left"].includes(ie(o)), j = s.reference[d] - s.floating[E] + (w && ((b = a.offset) == null ? void 0 : b[d]) || 0) + (w ? 0 : x.crossAxis), A = s.reference[d] + s.reference[E] + (w ? 0 : ((S = a.offset) == null ? void 0 : S[d]) || 0) - (w ? x.crossAxis : 0);
1639
1638
  v < j ? v = j : v > A && (v = A);
1640
1639
  }
1641
1640
  return {
1642
- [h]: p,
1641
+ [p]: g,
1643
1642
  [d]: v
1644
1643
  };
1645
1644
  }
1646
1645
  };
1647
- }, wa = function(e) {
1646
+ }, ba = function(e) {
1648
1647
  return e === void 0 && (e = {}), {
1649
1648
  name: "size",
1650
1649
  options: e,
@@ -1659,17 +1658,17 @@ const ya = function(e) {
1659
1658
  apply: u = () => {
1660
1659
  },
1661
1660
  ...l
1662
- } = ae(e, t), f = await Ue(t, l), d = ie(o), h = Fe(o), p = he(o) === "y", {
1661
+ } = ae(e, t), f = await Ue(t, l), d = ie(o), p = Fe(o), g = he(o) === "y", {
1663
1662
  width: v,
1664
- height: g
1663
+ height: h
1665
1664
  } = s.floating;
1666
1665
  let x, b;
1667
- d === "top" || d === "bottom" ? (x = d, b = h === (await (a.isRTL == null ? void 0 : a.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (b = d, x = h === "end" ? "top" : "bottom");
1668
- const S = g - f.top - f.bottom, E = v - f.left - f.right, w = pe(g - f[x], S), j = pe(v - f[b], E), A = !t.middlewareData.shift;
1666
+ d === "top" || d === "bottom" ? (x = d, b = p === (await (a.isRTL == null ? void 0 : a.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (b = d, x = p === "end" ? "top" : "bottom");
1667
+ const S = h - f.top - f.bottom, E = v - f.left - f.right, w = pe(h - f[x], S), j = pe(v - f[b], E), A = !t.middlewareData.shift;
1669
1668
  let C = w, T = j;
1670
- if ((n = t.middlewareData.shift) != null && n.enabled.x && (T = E), (r = t.middlewareData.shift) != null && r.enabled.y && (C = S), A && !h) {
1669
+ if ((n = t.middlewareData.shift) != null && n.enabled.x && (T = E), (r = t.middlewareData.shift) != null && r.enabled.y && (C = S), A && !p) {
1671
1670
  const L = X(f.left, 0), W = X(f.right, 0), H = X(f.top, 0), I = X(f.bottom, 0);
1672
- p ? T = v - 2 * (L !== 0 || W !== 0 ? L + W : X(f.left, f.right)) : C = g - 2 * (H !== 0 || I !== 0 ? H + I : X(f.top, f.bottom));
1671
+ g ? T = v - 2 * (L !== 0 || W !== 0 ? L + W : X(f.left, f.right)) : C = h - 2 * (H !== 0 || I !== 0 ? H + I : X(f.top, f.bottom));
1673
1672
  }
1674
1673
  await u({
1675
1674
  ...t,
@@ -1677,7 +1676,7 @@ const ya = function(e) {
1677
1676
  availableHeight: C
1678
1677
  });
1679
1678
  const k = await a.getDimensions(i.floating);
1680
- return v !== k.width || g !== k.height ? {
1679
+ return v !== k.width || h !== k.height ? {
1681
1680
  reset: {
1682
1681
  rects: !0
1683
1682
  }
@@ -1685,7 +1684,7 @@ const ya = function(e) {
1685
1684
  }
1686
1685
  };
1687
1686
  };
1688
- function mt() {
1687
+ function pt() {
1689
1688
  return typeof window < "u";
1690
1689
  }
1691
1690
  function Le(e) {
@@ -1700,16 +1699,16 @@ function oe(e) {
1700
1699
  return (t = (kr(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
1701
1700
  }
1702
1701
  function kr(e) {
1703
- return mt() ? e instanceof Node || e instanceof q(e).Node : !1;
1702
+ return pt() ? e instanceof Node || e instanceof q(e).Node : !1;
1704
1703
  }
1705
1704
  function Q(e) {
1706
- return mt() ? e instanceof Element || e instanceof q(e).Element : !1;
1705
+ return pt() ? e instanceof Element || e instanceof q(e).Element : !1;
1707
1706
  }
1708
1707
  function re(e) {
1709
- return mt() ? e instanceof HTMLElement || e instanceof q(e).HTMLElement : !1;
1708
+ return pt() ? e instanceof HTMLElement || e instanceof q(e).HTMLElement : !1;
1710
1709
  }
1711
- function Dn(e) {
1712
- return !mt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof q(e).ShadowRoot;
1710
+ function Fn(e) {
1711
+ return !pt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof q(e).ShadowRoot;
1713
1712
  }
1714
1713
  function Ge(e) {
1715
1714
  const {
@@ -1720,10 +1719,10 @@ function Ge(e) {
1720
1719
  } = ee(e);
1721
1720
  return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(o);
1722
1721
  }
1723
- function ja(e) {
1722
+ function wa(e) {
1724
1723
  return ["table", "td", "th"].includes(Le(e));
1725
1724
  }
1726
- function pt(e) {
1725
+ function ht(e) {
1727
1726
  return [":popover-open", ":modal"].some((t) => {
1728
1727
  try {
1729
1728
  return e.matches(t);
@@ -1732,22 +1731,22 @@ function pt(e) {
1732
1731
  }
1733
1732
  });
1734
1733
  }
1735
- function rn(e) {
1736
- const t = on(), n = Q(e) ? ee(e) : e;
1734
+ function on(e) {
1735
+ const t = sn(), n = Q(e) ? ee(e) : e;
1737
1736
  return ["transform", "translate", "scale", "rotate", "perspective"].some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((r) => (n.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some((r) => (n.contain || "").includes(r));
1738
1737
  }
1739
- function Ca(e) {
1738
+ function ja(e) {
1740
1739
  let t = ge(e);
1741
1740
  for (; re(t) && !ke(t); ) {
1742
- if (rn(t))
1741
+ if (on(t))
1743
1742
  return t;
1744
- if (pt(t))
1743
+ if (ht(t))
1745
1744
  return null;
1746
1745
  t = ge(t);
1747
1746
  }
1748
1747
  return null;
1749
1748
  }
1750
- function on() {
1749
+ function sn() {
1751
1750
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
1752
1751
  }
1753
1752
  function ke(e) {
@@ -1756,7 +1755,7 @@ function ke(e) {
1756
1755
  function ee(e) {
1757
1756
  return q(e).getComputedStyle(e);
1758
1757
  }
1759
- function ht(e) {
1758
+ function gt(e) {
1760
1759
  return Q(e) ? {
1761
1760
  scrollLeft: e.scrollLeft,
1762
1761
  scrollTop: e.scrollTop
@@ -1772,10 +1771,10 @@ function ge(e) {
1772
1771
  // Step into the shadow DOM of the parent of a slotted node.
1773
1772
  e.assignedSlot || // DOM Element detected.
1774
1773
  e.parentNode || // ShadowRoot detected.
1775
- Dn(e) && e.host || // Fallback.
1774
+ Fn(e) && e.host || // Fallback.
1776
1775
  oe(e)
1777
1776
  );
1778
- return Dn(t) ? t.host : t;
1777
+ return Fn(t) ? t.host : t;
1779
1778
  }
1780
1779
  function Mr(e) {
1781
1780
  const t = ge(e);
@@ -1786,12 +1785,12 @@ function Ye(e, t, n) {
1786
1785
  t === void 0 && (t = []), n === void 0 && (n = !0);
1787
1786
  const o = Mr(e), s = o === ((r = e.ownerDocument) == null ? void 0 : r.body), a = q(o);
1788
1787
  if (s) {
1789
- const i = Lt(a);
1788
+ const i = $t(a);
1790
1789
  return t.concat(a, a.visualViewport || [], Ge(o) ? o : [], i && n ? Ye(i) : []);
1791
1790
  }
1792
1791
  return t.concat(o, Ye(o, [], n));
1793
1792
  }
1794
- function Lt(e) {
1793
+ function $t(e) {
1795
1794
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
1796
1795
  }
1797
1796
  function _r(e) {
@@ -1804,11 +1803,11 @@ function _r(e) {
1804
1803
  $: i
1805
1804
  };
1806
1805
  }
1807
- function sn(e) {
1806
+ function an(e) {
1808
1807
  return Q(e) ? e : e.contextElement;
1809
1808
  }
1810
1809
  function Ne(e) {
1811
- const t = sn(e);
1810
+ const t = an(e);
1812
1811
  if (!re(t))
1813
1812
  return ne(1);
1814
1813
  const n = t.getBoundingClientRect(), {
@@ -1822,30 +1821,30 @@ function Ne(e) {
1822
1821
  y: i
1823
1822
  };
1824
1823
  }
1825
- const Ea = /* @__PURE__ */ ne(0);
1824
+ const Ca = /* @__PURE__ */ ne(0);
1826
1825
  function Dr(e) {
1827
1826
  const t = q(e);
1828
- return !on() || !t.visualViewport ? Ea : {
1827
+ return !sn() || !t.visualViewport ? Ca : {
1829
1828
  x: t.visualViewport.offsetLeft,
1830
1829
  y: t.visualViewport.offsetTop
1831
1830
  };
1832
1831
  }
1833
- function Sa(e, t, n) {
1832
+ function Ea(e, t, n) {
1834
1833
  return t === void 0 && (t = !1), !n || t && n !== q(e) ? !1 : t;
1835
1834
  }
1836
1835
  function je(e, t, n, r) {
1837
1836
  t === void 0 && (t = !1), n === void 0 && (n = !1);
1838
- const o = e.getBoundingClientRect(), s = sn(e);
1837
+ const o = e.getBoundingClientRect(), s = an(e);
1839
1838
  let a = ne(1);
1840
1839
  t && (r ? Q(r) && (a = Ne(r)) : a = Ne(e));
1841
- const i = Sa(s, n, r) ? Dr(s) : ne(0);
1840
+ const i = Ea(s, n, r) ? Dr(s) : ne(0);
1842
1841
  let u = (o.left + i.x) / a.x, l = (o.top + i.y) / a.y, f = o.width / a.x, d = o.height / a.y;
1843
1842
  if (s) {
1844
- const h = q(s), p = r && Q(r) ? q(r) : r;
1845
- let v = h, g = Lt(v);
1846
- for (; g && r && p !== v; ) {
1847
- const x = Ne(g), b = g.getBoundingClientRect(), S = ee(g), E = b.left + (g.clientLeft + parseFloat(S.paddingLeft)) * x.x, w = b.top + (g.clientTop + parseFloat(S.paddingTop)) * x.y;
1848
- u *= x.x, l *= x.y, f *= x.x, d *= x.y, u += E, l += w, v = q(g), g = Lt(v);
1843
+ const p = q(s), g = r && Q(r) ? q(r) : r;
1844
+ let v = p, h = $t(v);
1845
+ for (; h && r && g !== v; ) {
1846
+ const x = Ne(h), b = h.getBoundingClientRect(), S = ee(h), E = b.left + (h.clientLeft + parseFloat(S.paddingLeft)) * x.x, w = b.top + (h.clientTop + parseFloat(S.paddingTop)) * x.y;
1847
+ u *= x.x, l *= x.y, f *= x.x, d *= x.y, u += E, l += w, v = q(h), h = $t(v);
1849
1848
  }
1850
1849
  }
1851
1850
  return ft({
@@ -1855,29 +1854,29 @@ function je(e, t, n, r) {
1855
1854
  y: l
1856
1855
  });
1857
1856
  }
1858
- function an(e, t) {
1859
- const n = ht(e).scrollLeft;
1857
+ function cn(e, t) {
1858
+ const n = gt(e).scrollLeft;
1860
1859
  return t ? t.left + n : je(oe(e)).left + n;
1861
1860
  }
1862
1861
  function Fr(e, t, n) {
1863
1862
  n === void 0 && (n = !1);
1864
1863
  const r = e.getBoundingClientRect(), o = r.left + t.scrollLeft - (n ? 0 : (
1865
1864
  // RTL <body> scrollbar.
1866
- an(e, r)
1865
+ cn(e, r)
1867
1866
  )), s = r.top + t.scrollTop;
1868
1867
  return {
1869
1868
  x: o,
1870
1869
  y: s
1871
1870
  };
1872
1871
  }
1873
- function Aa(e) {
1872
+ function Sa(e) {
1874
1873
  let {
1875
1874
  elements: t,
1876
1875
  rect: n,
1877
1876
  offsetParent: r,
1878
1877
  strategy: o
1879
1878
  } = e;
1880
- const s = o === "fixed", a = oe(r), i = t ? pt(t.floating) : !1;
1879
+ const s = o === "fixed", a = oe(r), i = t ? ht(t.floating) : !1;
1881
1880
  if (r === a || i && s)
1882
1881
  return n;
1883
1882
  let u = {
@@ -1885,24 +1884,24 @@ function Aa(e) {
1885
1884
  scrollTop: 0
1886
1885
  }, l = ne(1);
1887
1886
  const f = ne(0), d = re(r);
1888
- if ((d || !d && !s) && ((Le(r) !== "body" || Ge(a)) && (u = ht(r)), re(r))) {
1889
- const p = je(r);
1890
- l = Ne(r), f.x = p.x + r.clientLeft, f.y = p.y + r.clientTop;
1887
+ if ((d || !d && !s) && ((Le(r) !== "body" || Ge(a)) && (u = gt(r)), re(r))) {
1888
+ const g = je(r);
1889
+ l = Ne(r), f.x = g.x + r.clientLeft, f.y = g.y + r.clientTop;
1891
1890
  }
1892
- const h = a && !d && !s ? Fr(a, u, !0) : ne(0);
1891
+ const p = a && !d && !s ? Fr(a, u, !0) : ne(0);
1893
1892
  return {
1894
1893
  width: n.width * l.x,
1895
1894
  height: n.height * l.y,
1896
- x: n.x * l.x - u.scrollLeft * l.x + f.x + h.x,
1897
- y: n.y * l.y - u.scrollTop * l.y + f.y + h.y
1895
+ x: n.x * l.x - u.scrollLeft * l.x + f.x + p.x,
1896
+ y: n.y * l.y - u.scrollTop * l.y + f.y + p.y
1898
1897
  };
1899
1898
  }
1900
- function Pa(e) {
1899
+ function Aa(e) {
1901
1900
  return Array.from(e.getClientRects());
1902
1901
  }
1903
- function Na(e) {
1904
- const t = oe(e), n = ht(e), r = e.ownerDocument.body, o = X(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), s = X(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
1905
- let a = -n.scrollLeft + an(e);
1902
+ function Pa(e) {
1903
+ const t = oe(e), n = gt(e), r = e.ownerDocument.body, o = X(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), s = X(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
1904
+ let a = -n.scrollLeft + cn(e);
1906
1905
  const i = -n.scrollTop;
1907
1906
  return ee(r).direction === "rtl" && (a += X(t.clientWidth, r.clientWidth) - o), {
1908
1907
  width: o,
@@ -1911,12 +1910,12 @@ function Na(e) {
1911
1910
  y: i
1912
1911
  };
1913
1912
  }
1914
- function Oa(e, t) {
1913
+ function Na(e, t) {
1915
1914
  const n = q(e), r = oe(e), o = n.visualViewport;
1916
1915
  let s = r.clientWidth, a = r.clientHeight, i = 0, u = 0;
1917
1916
  if (o) {
1918
1917
  s = o.width, a = o.height;
1919
- const l = on();
1918
+ const l = sn();
1920
1919
  (!l || l && t === "fixed") && (i = o.offsetLeft, u = o.offsetTop);
1921
1920
  }
1922
1921
  return {
@@ -1935,12 +1934,12 @@ function Ra(e, t) {
1935
1934
  y: l
1936
1935
  };
1937
1936
  }
1938
- function Fn(e, t, n) {
1937
+ function Ln(e, t, n) {
1939
1938
  let r;
1940
1939
  if (t === "viewport")
1941
- r = Oa(e, n);
1940
+ r = Na(e, n);
1942
1941
  else if (t === "document")
1943
- r = Na(oe(e));
1942
+ r = Pa(oe(e));
1944
1943
  else if (Q(t))
1945
1944
  r = Ra(t, n);
1946
1945
  else {
@@ -1958,7 +1957,7 @@ function Lr(e, t) {
1958
1957
  const n = ge(e);
1959
1958
  return n === t || !Q(n) || ke(n) ? !1 : ee(n).position === "fixed" || Lr(n, t);
1960
1959
  }
1961
- function Ta(e, t) {
1960
+ function Oa(e, t) {
1962
1961
  const n = t.get(e);
1963
1962
  if (n)
1964
1963
  return n;
@@ -1966,22 +1965,22 @@ function Ta(e, t) {
1966
1965
  const s = ee(e).position === "fixed";
1967
1966
  let a = s ? ge(e) : e;
1968
1967
  for (; Q(a) && !ke(a); ) {
1969
- const i = ee(a), u = rn(a);
1968
+ const i = ee(a), u = on(a);
1970
1969
  !u && i.position === "fixed" && (o = null), (s ? !u && !o : !u && i.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || Ge(a) && !u && Lr(e, a)) ? r = r.filter((f) => f !== a) : o = i, a = ge(a);
1971
1970
  }
1972
1971
  return t.set(e, r), r;
1973
1972
  }
1974
- function ka(e) {
1973
+ function Ta(e) {
1975
1974
  let {
1976
1975
  element: t,
1977
1976
  boundary: n,
1978
1977
  rootBoundary: r,
1979
1978
  strategy: o
1980
1979
  } = e;
1981
- const a = [...n === "clippingAncestors" ? pt(t) ? [] : Ta(t, this._c) : [].concat(n), r], i = a[0], u = a.reduce((l, f) => {
1982
- const d = Fn(t, f, o);
1980
+ const a = [...n === "clippingAncestors" ? ht(t) ? [] : Oa(t, this._c) : [].concat(n), r], i = a[0], u = a.reduce((l, f) => {
1981
+ const d = Ln(t, f, o);
1983
1982
  return l.top = X(d.top, l.top), l.right = pe(d.right, l.right), l.bottom = pe(d.bottom, l.bottom), l.left = X(d.left, l.left), l;
1984
- }, Fn(t, i, o));
1983
+ }, Ln(t, i, o));
1985
1984
  return {
1986
1985
  width: u.right - u.left,
1987
1986
  height: u.bottom - u.top,
@@ -1989,7 +1988,7 @@ function ka(e) {
1989
1988
  y: u.top
1990
1989
  };
1991
1990
  }
1992
- function Ma(e) {
1991
+ function ka(e) {
1993
1992
  const {
1994
1993
  width: t,
1995
1994
  height: n
@@ -1999,7 +1998,7 @@ function Ma(e) {
1999
1998
  height: n
2000
1999
  };
2001
2000
  }
2002
- function _a(e, t, n) {
2001
+ function Ma(e, t, n) {
2003
2002
  const r = re(t), o = oe(t), s = n === "fixed", a = je(e, !0, s, t);
2004
2003
  let i = {
2005
2004
  scrollLeft: 0,
@@ -2007,10 +2006,10 @@ function _a(e, t, n) {
2007
2006
  };
2008
2007
  const u = ne(0);
2009
2008
  if (r || !r && !s)
2010
- if ((Le(t) !== "body" || Ge(o)) && (i = ht(t)), r) {
2011
- const h = je(t, !0, s, t);
2012
- u.x = h.x + t.clientLeft, u.y = h.y + t.clientTop;
2013
- } else o && (u.x = an(o));
2009
+ if ((Le(t) !== "body" || Ge(o)) && (i = gt(t)), r) {
2010
+ const p = je(t, !0, s, t);
2011
+ u.x = p.x + t.clientLeft, u.y = p.y + t.clientTop;
2012
+ } else o && (u.x = cn(o));
2014
2013
  const l = o && !r && !s ? Fr(o, i) : ne(0), f = a.left + i.scrollLeft - u.x - l.x, d = a.top + i.scrollTop - u.y - l.y;
2015
2014
  return {
2016
2015
  x: f,
@@ -2019,10 +2018,10 @@ function _a(e, t, n) {
2019
2018
  height: a.height
2020
2019
  };
2021
2020
  }
2022
- function St(e) {
2021
+ function At(e) {
2023
2022
  return ee(e).position === "static";
2024
2023
  }
2025
- function Ln(e, t) {
2024
+ function In(e, t) {
2026
2025
  if (!re(e) || ee(e).position === "fixed")
2027
2026
  return null;
2028
2027
  if (t)
@@ -2032,26 +2031,26 @@ function Ln(e, t) {
2032
2031
  }
2033
2032
  function Ir(e, t) {
2034
2033
  const n = q(e);
2035
- if (pt(e))
2034
+ if (ht(e))
2036
2035
  return n;
2037
2036
  if (!re(e)) {
2038
2037
  let o = ge(e);
2039
2038
  for (; o && !ke(o); ) {
2040
- if (Q(o) && !St(o))
2039
+ if (Q(o) && !At(o))
2041
2040
  return o;
2042
2041
  o = ge(o);
2043
2042
  }
2044
2043
  return n;
2045
2044
  }
2046
- let r = Ln(e, t);
2047
- for (; r && ja(r) && St(r); )
2048
- r = Ln(r, t);
2049
- return r && ke(r) && St(r) && !rn(r) ? n : r || Ca(e) || n;
2045
+ let r = In(e, t);
2046
+ for (; r && wa(r) && At(r); )
2047
+ r = In(r, t);
2048
+ return r && ke(r) && At(r) && !on(r) ? n : r || ja(e) || n;
2050
2049
  }
2051
- const Da = async function(e) {
2050
+ const _a = async function(e) {
2052
2051
  const t = this.getOffsetParent || Ir, n = this.getDimensions, r = await n(e.floating);
2053
2052
  return {
2054
- reference: _a(e.reference, await t(e.floating), e.strategy),
2053
+ reference: Ma(e.reference, await t(e.floating), e.strategy),
2055
2054
  floating: {
2056
2055
  x: 0,
2057
2056
  y: 0,
@@ -2060,25 +2059,25 @@ const Da = async function(e) {
2060
2059
  }
2061
2060
  };
2062
2061
  };
2063
- function Fa(e) {
2062
+ function Da(e) {
2064
2063
  return ee(e).direction === "rtl";
2065
2064
  }
2066
- const La = {
2067
- convertOffsetParentRelativeRectToViewportRelativeRect: Aa,
2065
+ const Fa = {
2066
+ convertOffsetParentRelativeRectToViewportRelativeRect: Sa,
2068
2067
  getDocumentElement: oe,
2069
- getClippingRect: ka,
2068
+ getClippingRect: Ta,
2070
2069
  getOffsetParent: Ir,
2071
- getElementRects: Da,
2072
- getClientRects: Pa,
2073
- getDimensions: Ma,
2070
+ getElementRects: _a,
2071
+ getClientRects: Aa,
2072
+ getDimensions: ka,
2074
2073
  getScale: Ne,
2075
2074
  isElement: Q,
2076
- isRTL: Fa
2075
+ isRTL: Da
2077
2076
  };
2078
2077
  function $r(e, t) {
2079
2078
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
2080
2079
  }
2081
- function Ia(e, t) {
2080
+ function La(e, t) {
2082
2081
  let n = null, r;
2083
2082
  const o = oe(e);
2084
2083
  function s() {
@@ -2090,13 +2089,13 @@ function Ia(e, t) {
2090
2089
  const l = e.getBoundingClientRect(), {
2091
2090
  left: f,
2092
2091
  top: d,
2093
- width: h,
2094
- height: p
2092
+ width: p,
2093
+ height: g
2095
2094
  } = l;
2096
- if (i || t(), !h || !p)
2095
+ if (i || t(), !p || !g)
2097
2096
  return;
2098
- const v = Je(d), g = Je(o.clientWidth - (f + h)), x = Je(o.clientHeight - (d + p)), b = Je(f), E = {
2099
- rootMargin: -v + "px " + -g + "px " + -x + "px " + -b + "px",
2097
+ const v = Je(d), h = Je(o.clientWidth - (f + p)), x = Je(o.clientHeight - (d + g)), b = Je(f), E = {
2098
+ rootMargin: -v + "px " + -h + "px " + -x + "px " + -b + "px",
2100
2099
  threshold: X(0, pe(1, u)) || 1
2101
2100
  };
2102
2101
  let w = !0;
@@ -2124,7 +2123,7 @@ function Ia(e, t) {
2124
2123
  }
2125
2124
  return a(!0), s;
2126
2125
  }
2127
- function $a(e, t, n, r) {
2126
+ function Ia(e, t, n, r) {
2128
2127
  r === void 0 && (r = {});
2129
2128
  const {
2130
2129
  ancestorScroll: o = !0,
@@ -2132,43 +2131,43 @@ function $a(e, t, n, r) {
2132
2131
  elementResize: a = typeof ResizeObserver == "function",
2133
2132
  layoutShift: i = typeof IntersectionObserver == "function",
2134
2133
  animationFrame: u = !1
2135
- } = r, l = sn(e), f = o || s ? [...l ? Ye(l) : [], ...Ye(t)] : [];
2134
+ } = r, l = an(e), f = o || s ? [...l ? Ye(l) : [], ...Ye(t)] : [];
2136
2135
  f.forEach((b) => {
2137
2136
  o && b.addEventListener("scroll", n, {
2138
2137
  passive: !0
2139
2138
  }), s && b.addEventListener("resize", n);
2140
2139
  });
2141
- const d = l && i ? Ia(l, n) : null;
2142
- let h = -1, p = null;
2143
- a && (p = new ResizeObserver((b) => {
2140
+ const d = l && i ? La(l, n) : null;
2141
+ let p = -1, g = null;
2142
+ a && (g = new ResizeObserver((b) => {
2144
2143
  let [S] = b;
2145
- S && S.target === l && p && (p.unobserve(t), cancelAnimationFrame(h), h = requestAnimationFrame(() => {
2144
+ S && S.target === l && g && (g.unobserve(t), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
2146
2145
  var E;
2147
- (E = p) == null || E.observe(t);
2146
+ (E = g) == null || E.observe(t);
2148
2147
  })), n();
2149
- }), l && !u && p.observe(l), p.observe(t));
2150
- let v, g = u ? je(e) : null;
2148
+ }), l && !u && g.observe(l), g.observe(t));
2149
+ let v, h = u ? je(e) : null;
2151
2150
  u && x();
2152
2151
  function x() {
2153
2152
  const b = je(e);
2154
- g && !$r(g, b) && n(), g = b, v = requestAnimationFrame(x);
2153
+ h && !$r(h, b) && n(), h = b, v = requestAnimationFrame(x);
2155
2154
  }
2156
2155
  return n(), () => {
2157
2156
  var b;
2158
2157
  f.forEach((S) => {
2159
2158
  o && S.removeEventListener("scroll", n), s && S.removeEventListener("resize", n);
2160
- }), d?.(), (b = p) == null || b.disconnect(), p = null, u && cancelAnimationFrame(v);
2159
+ }), d?.(), (b = g) == null || b.disconnect(), g = null, u && cancelAnimationFrame(v);
2161
2160
  };
2162
2161
  }
2163
- const Wa = ya, Ha = xa, Ba = ha, za = wa, Va = ga, In = pa, Ua = ba, Ya = (e, t, n) => {
2162
+ const $a = va, Wa = ya, Ha = pa, Ba = ba, za = ha, $n = ma, Va = xa, Ua = (e, t, n) => {
2164
2163
  const r = /* @__PURE__ */ new Map(), o = {
2165
- platform: La,
2164
+ platform: Fa,
2166
2165
  ...n
2167
2166
  }, s = {
2168
2167
  ...o.platform,
2169
2168
  _c: r
2170
2169
  };
2171
- return ma(e, t, {
2170
+ return da(e, t, {
2172
2171
  ...o,
2173
2172
  platform: s
2174
2173
  });
@@ -2207,17 +2206,17 @@ function dt(e, t) {
2207
2206
  function Wr(e) {
2208
2207
  return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
2209
2208
  }
2210
- function $n(e, t) {
2209
+ function Wn(e, t) {
2211
2210
  const n = Wr(e);
2212
2211
  return Math.round(t * n) / n;
2213
2212
  }
2214
- function At(e) {
2213
+ function Pt(e) {
2215
2214
  const t = m.useRef(e);
2216
2215
  return ot(() => {
2217
2216
  t.current = e;
2218
2217
  }), t;
2219
2218
  }
2220
- function Ga(e) {
2219
+ function Ya(e) {
2221
2220
  e === void 0 && (e = {});
2222
2221
  const {
2223
2222
  placement: t = "bottom",
@@ -2238,21 +2237,21 @@ function Ga(e) {
2238
2237
  placement: t,
2239
2238
  middlewareData: {},
2240
2239
  isPositioned: !1
2241
- }), [h, p] = m.useState(r);
2242
- dt(h, r) || p(r);
2243
- const [v, g] = m.useState(null), [x, b] = m.useState(null), S = m.useCallback((O) => {
2244
- O !== A.current && (A.current = O, g(O));
2245
- }, []), E = m.useCallback((O) => {
2246
- O !== C.current && (C.current = O, b(O));
2247
- }, []), w = s || v, j = a || x, A = m.useRef(null), C = m.useRef(null), T = m.useRef(f), k = u != null, L = At(u), W = At(o), H = At(l), I = m.useCallback(() => {
2240
+ }), [p, g] = m.useState(r);
2241
+ dt(p, r) || g(r);
2242
+ const [v, h] = m.useState(null), [x, b] = m.useState(null), S = m.useCallback((R) => {
2243
+ R !== A.current && (A.current = R, h(R));
2244
+ }, []), E = m.useCallback((R) => {
2245
+ R !== C.current && (C.current = R, b(R));
2246
+ }, []), w = s || v, j = a || x, A = m.useRef(null), C = m.useRef(null), T = m.useRef(f), k = u != null, L = Pt(u), W = Pt(o), H = Pt(l), I = m.useCallback(() => {
2248
2247
  if (!A.current || !C.current)
2249
2248
  return;
2250
- const O = {
2249
+ const R = {
2251
2250
  placement: t,
2252
2251
  strategy: n,
2253
- middleware: h
2252
+ middleware: p
2254
2253
  };
2255
- W.current && (O.platform = W.current), Ya(A.current, C.current, O).then((B) => {
2254
+ W.current && (R.platform = W.current), Ua(A.current, C.current, R).then((B) => {
2256
2255
  const y = {
2257
2256
  ...B,
2258
2257
  // The floating element's position may be recomputed while it's closed
@@ -2265,10 +2264,10 @@ function Ga(e) {
2265
2264
  d(y);
2266
2265
  }));
2267
2266
  });
2268
- }, [h, t, n, W, H]);
2267
+ }, [p, t, n, W, H]);
2269
2268
  ot(() => {
2270
- l === !1 && T.current.isPositioned && (T.current.isPositioned = !1, d((O) => ({
2271
- ...O,
2269
+ l === !1 && T.current.isPositioned && (T.current.isPositioned = !1, d((R) => ({
2270
+ ...R,
2272
2271
  isPositioned: !1
2273
2272
  })));
2274
2273
  }, [l]);
@@ -2290,17 +2289,17 @@ function Ga(e) {
2290
2289
  }), [S, E]), D = m.useMemo(() => ({
2291
2290
  reference: w,
2292
2291
  floating: j
2293
- }), [w, j]), R = m.useMemo(() => {
2294
- const O = {
2292
+ }), [w, j]), O = m.useMemo(() => {
2293
+ const R = {
2295
2294
  position: n,
2296
2295
  left: 0,
2297
2296
  top: 0
2298
2297
  };
2299
2298
  if (!D.floating)
2300
- return O;
2301
- const B = $n(D.floating, f.x), y = $n(D.floating, f.y);
2299
+ return R;
2300
+ const B = Wn(D.floating, f.x), y = Wn(D.floating, f.y);
2302
2301
  return i ? {
2303
- ...O,
2302
+ ...R,
2304
2303
  transform: "translate(" + B + "px, " + y + "px)",
2305
2304
  ...Wr(D.floating) >= 1.5 && {
2306
2305
  willChange: "transform"
@@ -2316,10 +2315,10 @@ function Ga(e) {
2316
2315
  update: I,
2317
2316
  refs: _,
2318
2317
  elements: D,
2319
- floatingStyles: R
2320
- }), [f, I, _, D, R]);
2318
+ floatingStyles: O
2319
+ }), [f, I, _, D, O]);
2321
2320
  }
2322
- const Za = (e) => {
2321
+ const Ga = (e) => {
2323
2322
  function t(n) {
2324
2323
  return {}.hasOwnProperty.call(n, "current");
2325
2324
  }
@@ -2331,23 +2330,26 @@ const Za = (e) => {
2331
2330
  element: r,
2332
2331
  padding: o
2333
2332
  } = typeof e == "function" ? e(n) : e;
2334
- return r && t(r) ? r.current != null ? In({
2333
+ return r && t(r) ? r.current != null ? $n({
2335
2334
  element: r.current,
2336
2335
  padding: o
2337
- }).fn(n) : {} : r ? In({
2336
+ }).fn(n) : {} : r ? $n({
2338
2337
  element: r,
2339
2338
  padding: o
2340
2339
  }).fn(n) : {};
2341
2340
  }
2342
2341
  };
2343
- }, Xa = (e, t) => ({
2342
+ }, Za = (e, t) => ({
2343
+ ...$a(e),
2344
+ options: [e, t]
2345
+ }), Xa = (e, t) => ({
2344
2346
  ...Wa(e),
2345
2347
  options: [e, t]
2346
2348
  }), qa = (e, t) => ({
2347
- ...Ha(e),
2349
+ ...Va(e),
2348
2350
  options: [e, t]
2349
2351
  }), Ja = (e, t) => ({
2350
- ...Ua(e),
2352
+ ...Ha(e),
2351
2353
  options: [e, t]
2352
2354
  }), Ka = (e, t) => ({
2353
2355
  ...Ba(e),
@@ -2356,13 +2358,10 @@ const Za = (e) => {
2356
2358
  ...za(e),
2357
2359
  options: [e, t]
2358
2360
  }), ei = (e, t) => ({
2359
- ...Va(e),
2360
- options: [e, t]
2361
- }), ti = (e, t) => ({
2362
- ...Za(e),
2361
+ ...Ga(e),
2363
2362
  options: [e, t]
2364
2363
  });
2365
- var ni = "Arrow", Hr = m.forwardRef((e, t) => {
2364
+ var ti = "Arrow", Hr = m.forwardRef((e, t) => {
2366
2365
  const { children: n, width: r = 10, height: o = 5, ...s } = e;
2367
2366
  return /* @__PURE__ */ c.jsx(
2368
2367
  ce.svg,
@@ -2377,9 +2376,9 @@ var ni = "Arrow", Hr = m.forwardRef((e, t) => {
2377
2376
  }
2378
2377
  );
2379
2378
  });
2380
- Hr.displayName = ni;
2381
- var ri = Hr;
2382
- function oi(e) {
2379
+ Hr.displayName = ti;
2380
+ var ni = Hr;
2381
+ function ri(e) {
2383
2382
  const [t, n] = m.useState(void 0);
2384
2383
  return me(() => {
2385
2384
  if (e) {
@@ -2401,11 +2400,11 @@ function oi(e) {
2401
2400
  n(void 0);
2402
2401
  }, [e]), t;
2403
2402
  }
2404
- var cn = "Popper", [Br, zr] = Er(cn), [si, Vr] = Br(cn), Ur = (e) => {
2403
+ var ln = "Popper", [Br, zr] = Er(ln), [oi, Vr] = Br(ln), Ur = (e) => {
2405
2404
  const { __scopePopper: t, children: n } = e, [r, o] = m.useState(null);
2406
- return /* @__PURE__ */ c.jsx(si, { scope: t, anchor: r, onAnchorChange: o, children: n });
2405
+ return /* @__PURE__ */ c.jsx(oi, { scope: t, anchor: r, onAnchorChange: o, children: n });
2407
2406
  };
2408
- Ur.displayName = cn;
2407
+ Ur.displayName = ln;
2409
2408
  var Yr = "PopperAnchor", Gr = m.forwardRef(
2410
2409
  (e, t) => {
2411
2410
  const { __scopePopper: n, virtualRef: r, ...o } = e, s = Vr(Yr, n), a = m.useRef(null), i = ve(t, a), u = m.useRef(null);
@@ -2416,7 +2415,7 @@ var Yr = "PopperAnchor", Gr = m.forwardRef(
2416
2415
  }
2417
2416
  );
2418
2417
  Gr.displayName = Yr;
2419
- var ln = "PopperContent", [ai, ii] = Br(ln), Zr = m.forwardRef(
2418
+ var un = "PopperContent", [si, ai] = Br(un), Zr = m.forwardRef(
2420
2419
  (e, t) => {
2421
2420
  const {
2422
2421
  __scopePopper: n,
@@ -2429,50 +2428,50 @@ var ln = "PopperContent", [ai, ii] = Br(ln), Zr = m.forwardRef(
2429
2428
  collisionBoundary: l = [],
2430
2429
  collisionPadding: f = 0,
2431
2430
  sticky: d = "partial",
2432
- hideWhenDetached: h = !1,
2433
- updatePositionStrategy: p = "optimized",
2431
+ hideWhenDetached: p = !1,
2432
+ updatePositionStrategy: g = "optimized",
2434
2433
  onPlaced: v,
2435
- ...g
2436
- } = e, x = Vr(ln, n), [b, S] = m.useState(null), E = ve(t, (se) => S(se)), [w, j] = m.useState(null), A = oi(w), C = A?.width ?? 0, T = A?.height ?? 0, k = r + (s !== "center" ? "-" + s : ""), L = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, W = Array.isArray(l) ? l : [l], H = W.length > 0, I = {
2434
+ ...h
2435
+ } = e, x = Vr(un, n), [b, S] = m.useState(null), E = ve(t, (se) => S(se)), [w, j] = m.useState(null), A = ri(w), C = A?.width ?? 0, T = A?.height ?? 0, k = r + (s !== "center" ? "-" + s : ""), L = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, W = Array.isArray(l) ? l : [l], H = W.length > 0, I = {
2437
2436
  padding: L,
2438
- boundary: W.filter(li),
2437
+ boundary: W.filter(ci),
2439
2438
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
2440
2439
  altBoundary: H
2441
- }, { refs: M, floatingStyles: _, placement: D, isPositioned: R, middlewareData: O } = Ga({
2440
+ }, { refs: M, floatingStyles: _, placement: D, isPositioned: O, middlewareData: R } = Ya({
2442
2441
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
2443
2442
  strategy: "fixed",
2444
2443
  placement: k,
2445
- whileElementsMounted: (...se) => $a(...se, {
2446
- animationFrame: p === "always"
2444
+ whileElementsMounted: (...se) => Ia(...se, {
2445
+ animationFrame: g === "always"
2447
2446
  }),
2448
2447
  elements: {
2449
2448
  reference: x.anchor
2450
2449
  },
2451
2450
  middleware: [
2452
- Xa({ mainAxis: o + T, alignmentAxis: a }),
2453
- u && qa({
2451
+ Za({ mainAxis: o + T, alignmentAxis: a }),
2452
+ u && Xa({
2454
2453
  mainAxis: !0,
2455
2454
  crossAxis: !1,
2456
- limiter: d === "partial" ? Ja() : void 0,
2455
+ limiter: d === "partial" ? qa() : void 0,
2457
2456
  ...I
2458
2457
  }),
2459
- u && Ka({ ...I }),
2460
- Qa({
2458
+ u && Ja({ ...I }),
2459
+ Ka({
2461
2460
  ...I,
2462
2461
  apply: ({ elements: se, rects: U, availableWidth: le, availableHeight: $e }) => {
2463
- const { width: wt, height: Wo } = U.reference, Xe = se.floating.style;
2464
- Xe.setProperty("--radix-popper-available-width", `${le}px`), Xe.setProperty("--radix-popper-available-height", `${$e}px`), Xe.setProperty("--radix-popper-anchor-width", `${wt}px`), Xe.setProperty("--radix-popper-anchor-height", `${Wo}px`);
2462
+ const { width: jt, height: Wo } = U.reference, Xe = se.floating.style;
2463
+ Xe.setProperty("--radix-popper-available-width", `${le}px`), Xe.setProperty("--radix-popper-available-height", `${$e}px`), Xe.setProperty("--radix-popper-anchor-width", `${jt}px`), Xe.setProperty("--radix-popper-anchor-height", `${Wo}px`);
2465
2464
  }
2466
2465
  }),
2467
- w && ti({ element: w, padding: i }),
2468
- ui({ arrowWidth: C, arrowHeight: T }),
2469
- h && ei({ strategy: "referenceHidden", ...I })
2466
+ w && ei({ element: w, padding: i }),
2467
+ li({ arrowWidth: C, arrowHeight: T }),
2468
+ p && Qa({ strategy: "referenceHidden", ...I })
2470
2469
  ]
2471
2470
  }), [B, y] = Jr(D), N = Te(v);
2472
2471
  me(() => {
2473
- R && N?.();
2474
- }, [R, N]);
2475
- const $ = O.arrow?.x, P = O.arrow?.y, F = O.arrow?.centerOffset !== 0, [Z, Ie] = m.useState();
2472
+ O && N?.();
2473
+ }, [O, N]);
2474
+ const $ = R.arrow?.x, P = R.arrow?.y, F = R.arrow?.centerOffset !== 0, [Z, Ie] = m.useState();
2476
2475
  return me(() => {
2477
2476
  b && Ie(window.getComputedStyle(b).zIndex);
2478
2477
  }, [b]), /* @__PURE__ */ c.jsx(
@@ -2482,25 +2481,25 @@ var ln = "PopperContent", [ai, ii] = Br(ln), Zr = m.forwardRef(
2482
2481
  "data-radix-popper-content-wrapper": "",
2483
2482
  style: {
2484
2483
  ..._,
2485
- transform: R ? _.transform : "translate(0, -200%)",
2484
+ transform: O ? _.transform : "translate(0, -200%)",
2486
2485
  // keep off the page when measuring
2487
2486
  minWidth: "max-content",
2488
2487
  zIndex: Z,
2489
2488
  "--radix-popper-transform-origin": [
2490
- O.transformOrigin?.x,
2491
- O.transformOrigin?.y
2489
+ R.transformOrigin?.x,
2490
+ R.transformOrigin?.y
2492
2491
  ].join(" "),
2493
2492
  // hide the content if using the hide middleware and should be hidden
2494
2493
  // set visibility to hidden and disable pointer events so the UI behaves
2495
2494
  // as if the PopperContent isn't there at all
2496
- ...O.hide?.referenceHidden && {
2495
+ ...R.hide?.referenceHidden && {
2497
2496
  visibility: "hidden",
2498
2497
  pointerEvents: "none"
2499
2498
  }
2500
2499
  },
2501
2500
  dir: e.dir,
2502
2501
  children: /* @__PURE__ */ c.jsx(
2503
- ai,
2502
+ si,
2504
2503
  {
2505
2504
  scope: n,
2506
2505
  placedSide: B,
@@ -2513,13 +2512,13 @@ var ln = "PopperContent", [ai, ii] = Br(ln), Zr = m.forwardRef(
2513
2512
  {
2514
2513
  "data-side": B,
2515
2514
  "data-align": y,
2516
- ...g,
2515
+ ...h,
2517
2516
  ref: E,
2518
2517
  style: {
2519
- ...g.style,
2518
+ ...h.style,
2520
2519
  // if the PopperContent hasn't been placed yet (not all measurements done)
2521
2520
  // we prevent animations so that users's animation don't kick in too early referring wrong sides
2522
- animation: R ? void 0 : "none"
2521
+ animation: O ? void 0 : "none"
2523
2522
  }
2524
2523
  }
2525
2524
  )
@@ -2529,14 +2528,14 @@ var ln = "PopperContent", [ai, ii] = Br(ln), Zr = m.forwardRef(
2529
2528
  );
2530
2529
  }
2531
2530
  );
2532
- Zr.displayName = ln;
2533
- var Xr = "PopperArrow", ci = {
2531
+ Zr.displayName = un;
2532
+ var Xr = "PopperArrow", ii = {
2534
2533
  top: "bottom",
2535
2534
  right: "left",
2536
2535
  bottom: "top",
2537
2536
  left: "right"
2538
2537
  }, qr = m.forwardRef(function(t, n) {
2539
- const { __scopePopper: r, ...o } = t, s = ii(Xr, r), a = ci[s.placedSide];
2538
+ const { __scopePopper: r, ...o } = t, s = ai(Xr, r), a = ii[s.placedSide];
2540
2539
  return (
2541
2540
  // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
2542
2541
  // doesn't report size as we'd expect on SVG elements.
@@ -2565,7 +2564,7 @@ var Xr = "PopperArrow", ci = {
2565
2564
  visibility: s.shouldHideArrow ? "hidden" : void 0
2566
2565
  },
2567
2566
  children: /* @__PURE__ */ c.jsx(
2568
- ri,
2567
+ ni,
2569
2568
  {
2570
2569
  ...o,
2571
2570
  ref: n,
@@ -2581,39 +2580,39 @@ var Xr = "PopperArrow", ci = {
2581
2580
  );
2582
2581
  });
2583
2582
  qr.displayName = Xr;
2584
- function li(e) {
2583
+ function ci(e) {
2585
2584
  return e !== null;
2586
2585
  }
2587
- var ui = (e) => ({
2586
+ var li = (e) => ({
2588
2587
  name: "transformOrigin",
2589
2588
  options: e,
2590
2589
  fn(t) {
2591
- const { placement: n, rects: r, middlewareData: o } = t, a = o.arrow?.centerOffset !== 0, i = a ? 0 : e.arrowWidth, u = a ? 0 : e.arrowHeight, [l, f] = Jr(n), d = { start: "0%", center: "50%", end: "100%" }[f], h = (o.arrow?.x ?? 0) + i / 2, p = (o.arrow?.y ?? 0) + u / 2;
2592
- let v = "", g = "";
2593
- return l === "bottom" ? (v = a ? d : `${h}px`, g = `${-u}px`) : l === "top" ? (v = a ? d : `${h}px`, g = `${r.floating.height + u}px`) : l === "right" ? (v = `${-u}px`, g = a ? d : `${p}px`) : l === "left" && (v = `${r.floating.width + u}px`, g = a ? d : `${p}px`), { data: { x: v, y: g } };
2590
+ const { placement: n, rects: r, middlewareData: o } = t, a = o.arrow?.centerOffset !== 0, i = a ? 0 : e.arrowWidth, u = a ? 0 : e.arrowHeight, [l, f] = Jr(n), d = { start: "0%", center: "50%", end: "100%" }[f], p = (o.arrow?.x ?? 0) + i / 2, g = (o.arrow?.y ?? 0) + u / 2;
2591
+ let v = "", h = "";
2592
+ return l === "bottom" ? (v = a ? d : `${p}px`, h = `${-u}px`) : l === "top" ? (v = a ? d : `${p}px`, h = `${r.floating.height + u}px`) : l === "right" ? (v = `${-u}px`, h = a ? d : `${g}px`) : l === "left" && (v = `${r.floating.width + u}px`, h = a ? d : `${g}px`), { data: { x: v, y: h } };
2594
2593
  }
2595
2594
  });
2596
2595
  function Jr(e) {
2597
2596
  const [t, n = "center"] = e.split("-");
2598
2597
  return [t, n];
2599
2598
  }
2600
- var fi = Ur, Kr = Gr, di = Zr, mi = qr, pi = "Portal", Qr = m.forwardRef((e, t) => {
2599
+ var ui = Ur, Kr = Gr, fi = Zr, di = qr, mi = "Portal", Qr = m.forwardRef((e, t) => {
2601
2600
  const { container: n, ...r } = e, [o, s] = m.useState(!1);
2602
2601
  me(() => s(!0), []);
2603
2602
  const a = n || o && globalThis?.document?.body;
2604
- return a ? Zo.createPortal(/* @__PURE__ */ c.jsx(ce.div, { ...r, ref: t }), a) : null;
2603
+ return a ? Go.createPortal(/* @__PURE__ */ c.jsx(ce.div, { ...r, ref: t }), a) : null;
2605
2604
  });
2606
- Qr.displayName = pi;
2607
- function hi(e, t) {
2605
+ Qr.displayName = mi;
2606
+ function pi(e, t) {
2608
2607
  return m.useReducer((n, r) => t[n][r] ?? n, e);
2609
2608
  }
2610
- var un = (e) => {
2611
- const { present: t, children: n } = e, r = gi(t), o = typeof n == "function" ? n({ present: r.isPresent }) : m.Children.only(n), s = ve(r.ref, vi(o));
2609
+ var fn = (e) => {
2610
+ const { present: t, children: n } = e, r = hi(t), o = typeof n == "function" ? n({ present: r.isPresent }) : m.Children.only(n), s = ve(r.ref, gi(o));
2612
2611
  return typeof n == "function" || r.isPresent ? m.cloneElement(o, { ref: s }) : null;
2613
2612
  };
2614
- un.displayName = "Presence";
2615
- function gi(e) {
2616
- const [t, n] = m.useState(), r = m.useRef(null), o = m.useRef(e), s = m.useRef("none"), a = e ? "mounted" : "unmounted", [i, u] = hi(a, {
2613
+ fn.displayName = "Presence";
2614
+ function hi(e) {
2615
+ const [t, n] = m.useState(), r = m.useRef(null), o = m.useRef(e), s = m.useRef("none"), a = e ? "mounted" : "unmounted", [i, u] = pi(a, {
2617
2616
  mounted: {
2618
2617
  UNMOUNT: "unmounted",
2619
2618
  ANIMATION_OUT: "unmountSuspended"
@@ -2632,25 +2631,25 @@ function gi(e) {
2632
2631
  }, [i]), me(() => {
2633
2632
  const l = r.current, f = o.current;
2634
2633
  if (f !== e) {
2635
- const h = s.current, p = Ke(l);
2636
- e ? u("MOUNT") : p === "none" || l?.display === "none" ? u("UNMOUNT") : u(f && h !== p ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
2634
+ const p = s.current, g = Ke(l);
2635
+ e ? u("MOUNT") : g === "none" || l?.display === "none" ? u("UNMOUNT") : u(f && p !== g ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
2637
2636
  }
2638
2637
  }, [e, u]), me(() => {
2639
2638
  if (t) {
2640
2639
  let l;
2641
- const f = t.ownerDocument.defaultView ?? window, d = (p) => {
2642
- const g = Ke(r.current).includes(CSS.escape(p.animationName));
2643
- if (p.target === t && g && (u("ANIMATION_END"), !o.current)) {
2640
+ const f = t.ownerDocument.defaultView ?? window, d = (g) => {
2641
+ const h = Ke(r.current).includes(CSS.escape(g.animationName));
2642
+ if (g.target === t && h && (u("ANIMATION_END"), !o.current)) {
2644
2643
  const x = t.style.animationFillMode;
2645
2644
  t.style.animationFillMode = "forwards", l = f.setTimeout(() => {
2646
2645
  t.style.animationFillMode === "forwards" && (t.style.animationFillMode = x);
2647
2646
  });
2648
2647
  }
2649
- }, h = (p) => {
2650
- p.target === t && (s.current = Ke(r.current));
2648
+ }, p = (g) => {
2649
+ g.target === t && (s.current = Ke(r.current));
2651
2650
  };
2652
- return t.addEventListener("animationstart", h), t.addEventListener("animationcancel", d), t.addEventListener("animationend", d), () => {
2653
- f.clearTimeout(l), t.removeEventListener("animationstart", h), t.removeEventListener("animationcancel", d), t.removeEventListener("animationend", d);
2651
+ return t.addEventListener("animationstart", p), t.addEventListener("animationcancel", d), t.addEventListener("animationend", d), () => {
2652
+ f.clearTimeout(l), t.removeEventListener("animationstart", p), t.removeEventListener("animationcancel", d), t.removeEventListener("animationend", d);
2654
2653
  };
2655
2654
  } else
2656
2655
  u("ANIMATION_END");
@@ -2664,19 +2663,19 @@ function gi(e) {
2664
2663
  function Ke(e) {
2665
2664
  return e?.animationName || "none";
2666
2665
  }
2667
- function vi(e) {
2666
+ function gi(e) {
2668
2667
  let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
2669
2668
  return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
2670
2669
  }
2671
- var yi = m[" useInsertionEffect ".trim().toString()] || me;
2672
- function xi({
2670
+ var vi = m[" useInsertionEffect ".trim().toString()] || me;
2671
+ function yi({
2673
2672
  prop: e,
2674
2673
  defaultProp: t,
2675
2674
  onChange: n = () => {
2676
2675
  },
2677
2676
  caller: r
2678
2677
  }) {
2679
- const [o, s, a] = bi({
2678
+ const [o, s, a] = xi({
2680
2679
  defaultProp: t,
2681
2680
  onChange: n
2682
2681
  }), i = e !== void 0, u = i ? e : o;
@@ -2692,7 +2691,7 @@ function xi({
2692
2691
  const l = m.useCallback(
2693
2692
  (f) => {
2694
2693
  if (i) {
2695
- const d = wi(f) ? f(e) : f;
2694
+ const d = bi(f) ? f(e) : f;
2696
2695
  d !== e && a.current?.(d);
2697
2696
  } else
2698
2697
  s(f);
@@ -2701,28 +2700,28 @@ function xi({
2701
2700
  );
2702
2701
  return [u, l];
2703
2702
  }
2704
- function bi({
2703
+ function xi({
2705
2704
  defaultProp: e,
2706
2705
  onChange: t
2707
2706
  }) {
2708
2707
  const [n, r] = m.useState(e), o = m.useRef(n), s = m.useRef(t);
2709
- return yi(() => {
2708
+ return vi(() => {
2710
2709
  s.current = t;
2711
2710
  }, [t]), m.useEffect(() => {
2712
2711
  o.current !== n && (s.current?.(n), o.current = n);
2713
2712
  }, [n, o]), [n, r, s];
2714
2713
  }
2715
- function wi(e) {
2714
+ function bi(e) {
2716
2715
  return typeof e == "function";
2717
2716
  }
2718
- var ji = function(e) {
2717
+ var wi = function(e) {
2719
2718
  if (typeof document > "u")
2720
2719
  return null;
2721
2720
  var t = Array.isArray(e) ? e[0] : e;
2722
2721
  return t.ownerDocument.body;
2723
- }, Ee = /* @__PURE__ */ new WeakMap(), Qe = /* @__PURE__ */ new WeakMap(), et = {}, Pt = 0, eo = function(e) {
2722
+ }, Ee = /* @__PURE__ */ new WeakMap(), Qe = /* @__PURE__ */ new WeakMap(), et = {}, Nt = 0, eo = function(e) {
2724
2723
  return e && (e.host || eo(e.parentNode));
2725
- }, Ci = function(e, t) {
2724
+ }, ji = function(e, t) {
2726
2725
  return t.map(function(n) {
2727
2726
  if (e.contains(n))
2728
2727
  return n;
@@ -2731,36 +2730,36 @@ var ji = function(e) {
2731
2730
  }).filter(function(n) {
2732
2731
  return !!n;
2733
2732
  });
2734
- }, Ei = function(e, t, n, r) {
2735
- var o = Ci(t, Array.isArray(e) ? e : [e]);
2733
+ }, Ci = function(e, t, n, r) {
2734
+ var o = ji(t, Array.isArray(e) ? e : [e]);
2736
2735
  et[n] || (et[n] = /* @__PURE__ */ new WeakMap());
2737
2736
  var s = et[n], a = [], i = /* @__PURE__ */ new Set(), u = new Set(o), l = function(d) {
2738
2737
  !d || i.has(d) || (i.add(d), l(d.parentNode));
2739
2738
  };
2740
2739
  o.forEach(l);
2741
2740
  var f = function(d) {
2742
- !d || u.has(d) || Array.prototype.forEach.call(d.children, function(h) {
2743
- if (i.has(h))
2744
- f(h);
2741
+ !d || u.has(d) || Array.prototype.forEach.call(d.children, function(p) {
2742
+ if (i.has(p))
2743
+ f(p);
2745
2744
  else
2746
2745
  try {
2747
- var p = h.getAttribute(r), v = p !== null && p !== "false", g = (Ee.get(h) || 0) + 1, x = (s.get(h) || 0) + 1;
2748
- Ee.set(h, g), s.set(h, x), a.push(h), g === 1 && v && Qe.set(h, !0), x === 1 && h.setAttribute(n, "true"), v || h.setAttribute(r, "true");
2746
+ var g = p.getAttribute(r), v = g !== null && g !== "false", h = (Ee.get(p) || 0) + 1, x = (s.get(p) || 0) + 1;
2747
+ Ee.set(p, h), s.set(p, x), a.push(p), h === 1 && v && Qe.set(p, !0), x === 1 && p.setAttribute(n, "true"), v || p.setAttribute(r, "true");
2749
2748
  } catch (b) {
2750
- console.error("aria-hidden: cannot operate on ", h, b);
2749
+ console.error("aria-hidden: cannot operate on ", p, b);
2751
2750
  }
2752
2751
  });
2753
2752
  };
2754
- return f(t), i.clear(), Pt++, function() {
2753
+ return f(t), i.clear(), Nt++, function() {
2755
2754
  a.forEach(function(d) {
2756
- var h = Ee.get(d) - 1, p = s.get(d) - 1;
2757
- Ee.set(d, h), s.set(d, p), h || (Qe.has(d) || d.removeAttribute(r), Qe.delete(d)), p || d.removeAttribute(n);
2758
- }), Pt--, Pt || (Ee = /* @__PURE__ */ new WeakMap(), Ee = /* @__PURE__ */ new WeakMap(), Qe = /* @__PURE__ */ new WeakMap(), et = {});
2755
+ var p = Ee.get(d) - 1, g = s.get(d) - 1;
2756
+ Ee.set(d, p), s.set(d, g), p || (Qe.has(d) || d.removeAttribute(r), Qe.delete(d)), g || d.removeAttribute(n);
2757
+ }), Nt--, Nt || (Ee = /* @__PURE__ */ new WeakMap(), Ee = /* @__PURE__ */ new WeakMap(), Qe = /* @__PURE__ */ new WeakMap(), et = {});
2759
2758
  };
2760
- }, Si = function(e, t, n) {
2759
+ }, Ei = function(e, t, n) {
2761
2760
  n === void 0 && (n = "data-aria-hidden");
2762
- var r = Array.from(Array.isArray(e) ? e : [e]), o = ji(e);
2763
- return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live]"))), Ei(r, o, n, "aria-hidden")) : function() {
2761
+ var r = Array.from(Array.isArray(e) ? e : [e]), o = wi(e);
2762
+ return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live]"))), Ci(r, o, n, "aria-hidden")) : function() {
2764
2763
  return null;
2765
2764
  };
2766
2765
  }, te = function() {
@@ -2780,16 +2779,16 @@ function to(e, t) {
2780
2779
  t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
2781
2780
  return n;
2782
2781
  }
2783
- function Ai(e, t, n) {
2782
+ function Si(e, t, n) {
2784
2783
  if (n || arguments.length === 2) for (var r = 0, o = t.length, s; r < o; r++)
2785
2784
  (s || !(r in t)) && (s || (s = Array.prototype.slice.call(t, 0, r)), s[r] = t[r]);
2786
2785
  return e.concat(s || Array.prototype.slice.call(t));
2787
2786
  }
2788
- var st = "right-scroll-bar-position", at = "width-before-scroll-bar", Pi = "with-scroll-bars-hidden", Ni = "--removed-body-scroll-bar-size";
2789
- function Nt(e, t) {
2787
+ var st = "right-scroll-bar-position", at = "width-before-scroll-bar", Ai = "with-scroll-bars-hidden", Pi = "--removed-body-scroll-bar-size";
2788
+ function Rt(e, t) {
2790
2789
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
2791
2790
  }
2792
- function Oi(e, t) {
2791
+ function Ni(e, t) {
2793
2792
  var n = G(function() {
2794
2793
  return {
2795
2794
  // value
@@ -2810,31 +2809,31 @@ function Oi(e, t) {
2810
2809
  })[0];
2811
2810
  return n.callback = t, n.facade;
2812
2811
  }
2813
- var Ri = typeof window < "u" ? m.useLayoutEffect : m.useEffect, Wn = /* @__PURE__ */ new WeakMap();
2814
- function Ti(e, t) {
2815
- var n = Oi(null, function(r) {
2812
+ var Ri = typeof window < "u" ? m.useLayoutEffect : m.useEffect, Hn = /* @__PURE__ */ new WeakMap();
2813
+ function Oi(e, t) {
2814
+ var n = Ni(null, function(r) {
2816
2815
  return e.forEach(function(o) {
2817
- return Nt(o, r);
2816
+ return Rt(o, r);
2818
2817
  });
2819
2818
  });
2820
2819
  return Ri(function() {
2821
- var r = Wn.get(n);
2820
+ var r = Hn.get(n);
2822
2821
  if (r) {
2823
2822
  var o = new Set(r), s = new Set(e), a = n.current;
2824
2823
  o.forEach(function(i) {
2825
- s.has(i) || Nt(i, null);
2824
+ s.has(i) || Rt(i, null);
2826
2825
  }), s.forEach(function(i) {
2827
- o.has(i) || Nt(i, a);
2826
+ o.has(i) || Rt(i, a);
2828
2827
  });
2829
2828
  }
2830
- Wn.set(n, e);
2829
+ Hn.set(n, e);
2831
2830
  }, [e]), n;
2832
2831
  }
2833
- function ki(e) {
2832
+ function Ti(e) {
2834
2833
  return e;
2835
2834
  }
2836
- function Mi(e, t) {
2837
- t === void 0 && (t = ki);
2835
+ function ki(e, t) {
2836
+ t === void 0 && (t = Ti);
2838
2837
  var n = [], r = !1, o = {
2839
2838
  read: function() {
2840
2839
  if (r)
@@ -2888,9 +2887,9 @@ function Mi(e, t) {
2888
2887
  };
2889
2888
  return o;
2890
2889
  }
2891
- function _i(e) {
2890
+ function Mi(e) {
2892
2891
  e === void 0 && (e = {});
2893
- var t = Mi(null);
2892
+ var t = ki(null);
2894
2893
  return t.options = te({ async: !0, ssr: !1 }, e), t;
2895
2894
  }
2896
2895
  var no = function(e) {
@@ -2903,63 +2902,63 @@ var no = function(e) {
2903
2902
  return m.createElement(r, te({}, n));
2904
2903
  };
2905
2904
  no.isSideCarExport = !0;
2906
- function Di(e, t) {
2905
+ function _i(e, t) {
2907
2906
  return e.useMedium(t), no;
2908
2907
  }
2909
- var ro = _i(), Ot = function() {
2910
- }, gt = m.forwardRef(function(e, t) {
2908
+ var ro = Mi(), Ot = function() {
2909
+ }, vt = m.forwardRef(function(e, t) {
2911
2910
  var n = m.useRef(null), r = m.useState({
2912
2911
  onScrollCapture: Ot,
2913
2912
  onWheelCapture: Ot,
2914
2913
  onTouchMoveCapture: Ot
2915
- }), o = r[0], s = r[1], a = e.forwardProps, i = e.children, u = e.className, l = e.removeScrollBar, f = e.enabled, d = e.shards, h = e.sideCar, p = e.noIsolation, v = e.inert, g = e.allowPinchZoom, x = e.as, b = x === void 0 ? "div" : x, S = e.gapMode, E = to(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), w = h, j = Ti([n, t]), A = te(te({}, E), o);
2914
+ }), o = r[0], s = r[1], a = e.forwardProps, i = e.children, u = e.className, l = e.removeScrollBar, f = e.enabled, d = e.shards, p = e.sideCar, g = e.noIsolation, v = e.inert, h = e.allowPinchZoom, x = e.as, b = x === void 0 ? "div" : x, S = e.gapMode, E = to(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), w = p, j = Oi([n, t]), A = te(te({}, E), o);
2916
2915
  return m.createElement(
2917
2916
  m.Fragment,
2918
2917
  null,
2919
- f && m.createElement(w, { sideCar: ro, removeScrollBar: l, shards: d, noIsolation: p, inert: v, setCallbacks: s, allowPinchZoom: !!g, lockRef: n, gapMode: S }),
2918
+ f && m.createElement(w, { sideCar: ro, removeScrollBar: l, shards: d, noIsolation: g, inert: v, setCallbacks: s, allowPinchZoom: !!h, lockRef: n, gapMode: S }),
2920
2919
  a ? m.cloneElement(m.Children.only(i), te(te({}, A), { ref: j })) : m.createElement(b, te({}, A, { className: u, ref: j }), i)
2921
2920
  );
2922
2921
  });
2923
- gt.defaultProps = {
2922
+ vt.defaultProps = {
2924
2923
  enabled: !0,
2925
2924
  removeScrollBar: !0,
2926
2925
  inert: !1
2927
2926
  };
2928
- gt.classNames = {
2927
+ vt.classNames = {
2929
2928
  fullWidth: at,
2930
2929
  zeroRight: st
2931
2930
  };
2932
- var Fi = function() {
2931
+ var Di = function() {
2933
2932
  if (typeof __webpack_nonce__ < "u")
2934
2933
  return __webpack_nonce__;
2935
2934
  };
2936
- function Li() {
2935
+ function Fi() {
2937
2936
  if (!document)
2938
2937
  return null;
2939
2938
  var e = document.createElement("style");
2940
2939
  e.type = "text/css";
2941
- var t = Fi();
2940
+ var t = Di();
2942
2941
  return t && e.setAttribute("nonce", t), e;
2943
2942
  }
2944
- function Ii(e, t) {
2943
+ function Li(e, t) {
2945
2944
  e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
2946
2945
  }
2947
- function $i(e) {
2946
+ function Ii(e) {
2948
2947
  var t = document.head || document.getElementsByTagName("head")[0];
2949
2948
  t.appendChild(e);
2950
2949
  }
2951
- var Wi = function() {
2950
+ var $i = function() {
2952
2951
  var e = 0, t = null;
2953
2952
  return {
2954
2953
  add: function(n) {
2955
- e == 0 && (t = Li()) && (Ii(t, n), $i(t)), e++;
2954
+ e == 0 && (t = Fi()) && (Li(t, n), Ii(t)), e++;
2956
2955
  },
2957
2956
  remove: function() {
2958
2957
  e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
2959
2958
  }
2960
2959
  };
2961
- }, Hi = function() {
2962
- var e = Wi();
2960
+ }, Wi = function() {
2961
+ var e = $i();
2963
2962
  return function(t, n) {
2964
2963
  m.useEffect(function() {
2965
2964
  return e.add(t), function() {
@@ -2968,39 +2967,39 @@ var Wi = function() {
2968
2967
  }, [t && n]);
2969
2968
  };
2970
2969
  }, oo = function() {
2971
- var e = Hi(), t = function(n) {
2970
+ var e = Wi(), t = function(n) {
2972
2971
  var r = n.styles, o = n.dynamic;
2973
2972
  return e(r, o), null;
2974
2973
  };
2975
2974
  return t;
2976
- }, Bi = {
2975
+ }, Hi = {
2977
2976
  left: 0,
2978
2977
  top: 0,
2979
2978
  right: 0,
2980
2979
  gap: 0
2981
- }, Rt = function(e) {
2980
+ }, Tt = function(e) {
2982
2981
  return parseInt(e || "", 10) || 0;
2983
- }, zi = function(e) {
2982
+ }, Bi = function(e) {
2984
2983
  var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
2985
- return [Rt(n), Rt(r), Rt(o)];
2986
- }, Vi = function(e) {
2984
+ return [Tt(n), Tt(r), Tt(o)];
2985
+ }, zi = function(e) {
2987
2986
  if (e === void 0 && (e = "margin"), typeof window > "u")
2988
- return Bi;
2989
- var t = zi(e), n = document.documentElement.clientWidth, r = window.innerWidth;
2987
+ return Hi;
2988
+ var t = Bi(e), n = document.documentElement.clientWidth, r = window.innerWidth;
2990
2989
  return {
2991
2990
  left: t[0],
2992
2991
  top: t[1],
2993
2992
  right: t[2],
2994
2993
  gap: Math.max(0, r - n + t[2] - t[0])
2995
2994
  };
2996
- }, Ui = oo(), Oe = "data-scroll-locked", Yi = function(e, t, n, r) {
2995
+ }, Vi = oo(), Re = "data-scroll-locked", Ui = function(e, t, n, r) {
2997
2996
  var o = e.left, s = e.top, a = e.right, i = e.gap;
2998
2997
  return n === void 0 && (n = "margin"), `
2999
- .`.concat(Pi, ` {
2998
+ .`.concat(Ai, ` {
3000
2999
  overflow: hidden `).concat(r, `;
3001
3000
  padding-right: `).concat(i, "px ").concat(r, `;
3002
3001
  }
3003
- body[`).concat(Oe, `] {
3002
+ body[`).concat(Re, `] {
3004
3003
  overflow: hidden `).concat(r, `;
3005
3004
  overscroll-behavior: contain;
3006
3005
  `).concat([
@@ -3033,40 +3032,40 @@ var Wi = function() {
3033
3032
  margin-right: 0 `).concat(r, `;
3034
3033
  }
3035
3034
 
3036
- body[`).concat(Oe, `] {
3037
- `).concat(Ni, ": ").concat(i, `px;
3035
+ body[`).concat(Re, `] {
3036
+ `).concat(Pi, ": ").concat(i, `px;
3038
3037
  }
3039
3038
  `);
3040
- }, Hn = function() {
3041
- var e = parseInt(document.body.getAttribute(Oe) || "0", 10);
3039
+ }, Bn = function() {
3040
+ var e = parseInt(document.body.getAttribute(Re) || "0", 10);
3042
3041
  return isFinite(e) ? e : 0;
3043
- }, Gi = function() {
3042
+ }, Yi = function() {
3044
3043
  m.useEffect(function() {
3045
- return document.body.setAttribute(Oe, (Hn() + 1).toString()), function() {
3046
- var e = Hn() - 1;
3047
- e <= 0 ? document.body.removeAttribute(Oe) : document.body.setAttribute(Oe, e.toString());
3044
+ return document.body.setAttribute(Re, (Bn() + 1).toString()), function() {
3045
+ var e = Bn() - 1;
3046
+ e <= 0 ? document.body.removeAttribute(Re) : document.body.setAttribute(Re, e.toString());
3048
3047
  };
3049
3048
  }, []);
3050
- }, Zi = function(e) {
3049
+ }, Gi = function(e) {
3051
3050
  var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
3052
- Gi();
3051
+ Yi();
3053
3052
  var s = m.useMemo(function() {
3054
- return Vi(o);
3053
+ return zi(o);
3055
3054
  }, [o]);
3056
- return m.createElement(Ui, { styles: Yi(s, !t, o, n ? "" : "!important") });
3057
- }, It = !1;
3055
+ return m.createElement(Vi, { styles: Ui(s, !t, o, n ? "" : "!important") });
3056
+ }, Wt = !1;
3058
3057
  if (typeof window < "u")
3059
3058
  try {
3060
3059
  var tt = Object.defineProperty({}, "passive", {
3061
3060
  get: function() {
3062
- return It = !0, !0;
3061
+ return Wt = !0, !0;
3063
3062
  }
3064
3063
  });
3065
3064
  window.addEventListener("test", tt, tt), window.removeEventListener("test", tt, tt);
3066
3065
  } catch {
3067
- It = !1;
3066
+ Wt = !1;
3068
3067
  }
3069
- var Se = It ? { passive: !1 } : !1, Xi = function(e) {
3068
+ var Se = Wt ? { passive: !1 } : !1, Zi = function(e) {
3070
3069
  return e.tagName === "TEXTAREA";
3071
3070
  }, so = function(e, t) {
3072
3071
  if (!(e instanceof Element))
@@ -3075,13 +3074,13 @@ var Se = It ? { passive: !1 } : !1, Xi = function(e) {
3075
3074
  return (
3076
3075
  // not-not-scrollable
3077
3076
  n[t] !== "hidden" && // contains scroll inside self
3078
- !(n.overflowY === n.overflowX && !Xi(e) && n[t] === "visible")
3077
+ !(n.overflowY === n.overflowX && !Zi(e) && n[t] === "visible")
3079
3078
  );
3080
- }, qi = function(e) {
3079
+ }, Xi = function(e) {
3081
3080
  return so(e, "overflowY");
3082
- }, Ji = function(e) {
3081
+ }, qi = function(e) {
3083
3082
  return so(e, "overflowX");
3084
- }, Bn = function(e, t) {
3083
+ }, zn = function(e, t) {
3085
3084
  var n = t.ownerDocument, r = t;
3086
3085
  do {
3087
3086
  typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
@@ -3094,14 +3093,14 @@ var Se = It ? { passive: !1 } : !1, Xi = function(e) {
3094
3093
  r = r.parentNode;
3095
3094
  } while (r && r !== n.body);
3096
3095
  return !1;
3097
- }, Ki = function(e) {
3096
+ }, Ji = function(e) {
3098
3097
  var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
3099
3098
  return [
3100
3099
  t,
3101
3100
  n,
3102
3101
  r
3103
3102
  ];
3104
- }, Qi = function(e) {
3103
+ }, Ki = function(e) {
3105
3104
  var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
3106
3105
  return [
3107
3106
  t,
@@ -3109,131 +3108,131 @@ var Se = It ? { passive: !1 } : !1, Xi = function(e) {
3109
3108
  r
3110
3109
  ];
3111
3110
  }, ao = function(e, t) {
3112
- return e === "v" ? qi(t) : Ji(t);
3111
+ return e === "v" ? Xi(t) : qi(t);
3113
3112
  }, io = function(e, t) {
3114
- return e === "v" ? Ki(t) : Qi(t);
3115
- }, ec = function(e, t) {
3113
+ return e === "v" ? Ji(t) : Ki(t);
3114
+ }, Qi = function(e, t) {
3116
3115
  return e === "h" && t === "rtl" ? -1 : 1;
3117
- }, tc = function(e, t, n, r, o) {
3118
- var s = ec(e, window.getComputedStyle(t).direction), a = s * r, i = n.target, u = t.contains(i), l = !1, f = a > 0, d = 0, h = 0;
3116
+ }, ec = function(e, t, n, r, o) {
3117
+ var s = Qi(e, window.getComputedStyle(t).direction), a = s * r, i = n.target, u = t.contains(i), l = !1, f = a > 0, d = 0, p = 0;
3119
3118
  do {
3120
- var p = io(e, i), v = p[0], g = p[1], x = p[2], b = g - x - s * v;
3121
- (v || b) && ao(e, i) && (d += b, h += v), i instanceof ShadowRoot ? i = i.host : i = i.parentNode;
3119
+ var g = io(e, i), v = g[0], h = g[1], x = g[2], b = h - x - s * v;
3120
+ (v || b) && ao(e, i) && (d += b, p += v), i instanceof ShadowRoot ? i = i.host : i = i.parentNode;
3122
3121
  } while (
3123
3122
  // portaled content
3124
3123
  !u && i !== document.body || // self content
3125
3124
  u && (t.contains(i) || t === i)
3126
3125
  );
3127
- return (f && Math.abs(d) < 1 || !f && Math.abs(h) < 1) && (l = !0), l;
3126
+ return (f && Math.abs(d) < 1 || !f && Math.abs(p) < 1) && (l = !0), l;
3128
3127
  }, nt = function(e) {
3129
3128
  return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
3130
- }, zn = function(e) {
3131
- return [e.deltaX, e.deltaY];
3132
3129
  }, Vn = function(e) {
3130
+ return [e.deltaX, e.deltaY];
3131
+ }, Un = function(e) {
3133
3132
  return e && "current" in e ? e.current : e;
3134
- }, nc = function(e, t) {
3133
+ }, tc = function(e, t) {
3135
3134
  return e[0] === t[0] && e[1] === t[1];
3136
- }, rc = function(e) {
3135
+ }, nc = function(e) {
3137
3136
  return `
3138
3137
  .block-interactivity-`.concat(e, ` {pointer-events: none;}
3139
3138
  .allow-interactivity-`).concat(e, ` {pointer-events: all;}
3140
3139
  `);
3141
- }, oc = 0, Ae = [];
3142
- function sc(e) {
3143
- var t = m.useRef([]), n = m.useRef([0, 0]), r = m.useRef(), o = m.useState(oc++)[0], s = m.useState(oo)[0], a = m.useRef(e);
3140
+ }, rc = 0, Ae = [];
3141
+ function oc(e) {
3142
+ var t = m.useRef([]), n = m.useRef([0, 0]), r = m.useRef(), o = m.useState(rc++)[0], s = m.useState(oo)[0], a = m.useRef(e);
3144
3143
  m.useEffect(function() {
3145
3144
  a.current = e;
3146
3145
  }, [e]), m.useEffect(function() {
3147
3146
  if (e.inert) {
3148
3147
  document.body.classList.add("block-interactivity-".concat(o));
3149
- var g = Ai([e.lockRef.current], (e.shards || []).map(Vn), !0).filter(Boolean);
3150
- return g.forEach(function(x) {
3148
+ var h = Si([e.lockRef.current], (e.shards || []).map(Un), !0).filter(Boolean);
3149
+ return h.forEach(function(x) {
3151
3150
  return x.classList.add("allow-interactivity-".concat(o));
3152
3151
  }), function() {
3153
- document.body.classList.remove("block-interactivity-".concat(o)), g.forEach(function(x) {
3152
+ document.body.classList.remove("block-interactivity-".concat(o)), h.forEach(function(x) {
3154
3153
  return x.classList.remove("allow-interactivity-".concat(o));
3155
3154
  });
3156
3155
  };
3157
3156
  }
3158
3157
  }, [e.inert, e.lockRef.current, e.shards]);
3159
- var i = m.useCallback(function(g, x) {
3160
- if ("touches" in g && g.touches.length === 2 || g.type === "wheel" && g.ctrlKey)
3158
+ var i = m.useCallback(function(h, x) {
3159
+ if ("touches" in h && h.touches.length === 2 || h.type === "wheel" && h.ctrlKey)
3161
3160
  return !a.current.allowPinchZoom;
3162
- var b = nt(g), S = n.current, E = "deltaX" in g ? g.deltaX : S[0] - b[0], w = "deltaY" in g ? g.deltaY : S[1] - b[1], j, A = g.target, C = Math.abs(E) > Math.abs(w) ? "h" : "v";
3163
- if ("touches" in g && C === "h" && A.type === "range")
3161
+ var b = nt(h), S = n.current, E = "deltaX" in h ? h.deltaX : S[0] - b[0], w = "deltaY" in h ? h.deltaY : S[1] - b[1], j, A = h.target, C = Math.abs(E) > Math.abs(w) ? "h" : "v";
3162
+ if ("touches" in h && C === "h" && A.type === "range")
3164
3163
  return !1;
3165
- var T = Bn(C, A);
3164
+ var T = zn(C, A);
3166
3165
  if (!T)
3167
3166
  return !0;
3168
- if (T ? j = C : (j = C === "v" ? "h" : "v", T = Bn(C, A)), !T)
3167
+ if (T ? j = C : (j = C === "v" ? "h" : "v", T = zn(C, A)), !T)
3169
3168
  return !1;
3170
- if (!r.current && "changedTouches" in g && (E || w) && (r.current = j), !j)
3169
+ if (!r.current && "changedTouches" in h && (E || w) && (r.current = j), !j)
3171
3170
  return !0;
3172
3171
  var k = r.current || j;
3173
- return tc(k, x, g, k === "h" ? E : w);
3174
- }, []), u = m.useCallback(function(g) {
3175
- var x = g;
3172
+ return ec(k, x, h, k === "h" ? E : w);
3173
+ }, []), u = m.useCallback(function(h) {
3174
+ var x = h;
3176
3175
  if (!(!Ae.length || Ae[Ae.length - 1] !== s)) {
3177
- var b = "deltaY" in x ? zn(x) : nt(x), S = t.current.filter(function(j) {
3178
- return j.name === x.type && (j.target === x.target || x.target === j.shadowParent) && nc(j.delta, b);
3176
+ var b = "deltaY" in x ? Vn(x) : nt(x), S = t.current.filter(function(j) {
3177
+ return j.name === x.type && (j.target === x.target || x.target === j.shadowParent) && tc(j.delta, b);
3179
3178
  })[0];
3180
3179
  if (S && S.should) {
3181
3180
  x.cancelable && x.preventDefault();
3182
3181
  return;
3183
3182
  }
3184
3183
  if (!S) {
3185
- var E = (a.current.shards || []).map(Vn).filter(Boolean).filter(function(j) {
3184
+ var E = (a.current.shards || []).map(Un).filter(Boolean).filter(function(j) {
3186
3185
  return j.contains(x.target);
3187
3186
  }), w = E.length > 0 ? i(x, E[0]) : !a.current.noIsolation;
3188
3187
  w && x.cancelable && x.preventDefault();
3189
3188
  }
3190
3189
  }
3191
- }, []), l = m.useCallback(function(g, x, b, S) {
3192
- var E = { name: g, delta: x, target: b, should: S, shadowParent: ac(b) };
3190
+ }, []), l = m.useCallback(function(h, x, b, S) {
3191
+ var E = { name: h, delta: x, target: b, should: S, shadowParent: sc(b) };
3193
3192
  t.current.push(E), setTimeout(function() {
3194
3193
  t.current = t.current.filter(function(w) {
3195
3194
  return w !== E;
3196
3195
  });
3197
3196
  }, 1);
3198
- }, []), f = m.useCallback(function(g) {
3199
- n.current = nt(g), r.current = void 0;
3200
- }, []), d = m.useCallback(function(g) {
3201
- l(g.type, zn(g), g.target, i(g, e.lockRef.current));
3202
- }, []), h = m.useCallback(function(g) {
3203
- l(g.type, nt(g), g.target, i(g, e.lockRef.current));
3197
+ }, []), f = m.useCallback(function(h) {
3198
+ n.current = nt(h), r.current = void 0;
3199
+ }, []), d = m.useCallback(function(h) {
3200
+ l(h.type, Vn(h), h.target, i(h, e.lockRef.current));
3201
+ }, []), p = m.useCallback(function(h) {
3202
+ l(h.type, nt(h), h.target, i(h, e.lockRef.current));
3204
3203
  }, []);
3205
3204
  m.useEffect(function() {
3206
3205
  return Ae.push(s), e.setCallbacks({
3207
3206
  onScrollCapture: d,
3208
3207
  onWheelCapture: d,
3209
- onTouchMoveCapture: h
3208
+ onTouchMoveCapture: p
3210
3209
  }), document.addEventListener("wheel", u, Se), document.addEventListener("touchmove", u, Se), document.addEventListener("touchstart", f, Se), function() {
3211
- Ae = Ae.filter(function(g) {
3212
- return g !== s;
3210
+ Ae = Ae.filter(function(h) {
3211
+ return h !== s;
3213
3212
  }), document.removeEventListener("wheel", u, Se), document.removeEventListener("touchmove", u, Se), document.removeEventListener("touchstart", f, Se);
3214
3213
  };
3215
3214
  }, []);
3216
- var p = e.removeScrollBar, v = e.inert;
3215
+ var g = e.removeScrollBar, v = e.inert;
3217
3216
  return m.createElement(
3218
3217
  m.Fragment,
3219
3218
  null,
3220
- v ? m.createElement(s, { styles: rc(o) }) : null,
3221
- p ? m.createElement(Zi, { gapMode: e.gapMode }) : null
3219
+ v ? m.createElement(s, { styles: nc(o) }) : null,
3220
+ g ? m.createElement(Gi, { gapMode: e.gapMode }) : null
3222
3221
  );
3223
3222
  }
3224
- function ac(e) {
3223
+ function sc(e) {
3225
3224
  for (var t = null; e !== null; )
3226
3225
  e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
3227
3226
  return t;
3228
3227
  }
3229
- const ic = Di(ro, sc);
3228
+ const ac = _i(ro, oc);
3230
3229
  var co = m.forwardRef(function(e, t) {
3231
- return m.createElement(gt, te({}, e, { ref: t, sideCar: ic }));
3230
+ return m.createElement(vt, te({}, e, { ref: t, sideCar: ac }));
3232
3231
  });
3233
- co.classNames = gt.classNames;
3234
- var vt = "Popover", [lo] = Er(vt, [
3232
+ co.classNames = vt.classNames;
3233
+ var yt = "Popover", [lo] = Er(yt, [
3235
3234
  zr
3236
- ]), Ze = zr(), [cc, ye] = lo(vt), uo = (e) => {
3235
+ ]), Ze = zr(), [ic, ye] = lo(yt), uo = (e) => {
3237
3236
  const {
3238
3237
  __scopePopover: t,
3239
3238
  children: n,
@@ -3241,21 +3240,21 @@ var vt = "Popover", [lo] = Er(vt, [
3241
3240
  defaultOpen: o,
3242
3241
  onOpenChange: s,
3243
3242
  modal: a = !1
3244
- } = e, i = Ze(t), u = m.useRef(null), [l, f] = m.useState(!1), [d, h] = xi({
3243
+ } = e, i = Ze(t), u = m.useRef(null), [l, f] = m.useState(!1), [d, p] = yi({
3245
3244
  prop: r,
3246
3245
  defaultProp: o ?? !1,
3247
3246
  onChange: s,
3248
- caller: vt
3247
+ caller: yt
3249
3248
  });
3250
- return /* @__PURE__ */ c.jsx(fi, { ...i, children: /* @__PURE__ */ c.jsx(
3251
- cc,
3249
+ return /* @__PURE__ */ c.jsx(ui, { ...i, children: /* @__PURE__ */ c.jsx(
3250
+ ic,
3252
3251
  {
3253
3252
  scope: t,
3254
- contentId: oa(),
3253
+ contentId: ra(),
3255
3254
  triggerRef: u,
3256
3255
  open: d,
3257
- onOpenChange: h,
3258
- onOpenToggle: m.useCallback(() => h((p) => !p), [h]),
3256
+ onOpenChange: p,
3257
+ onOpenToggle: m.useCallback(() => p((g) => !g), [p]),
3259
3258
  hasCustomAnchor: l,
3260
3259
  onCustomAnchorAdd: m.useCallback(() => f(!0), []),
3261
3260
  onCustomAnchorRemove: m.useCallback(() => f(!1), []),
@@ -3264,14 +3263,14 @@ var vt = "Popover", [lo] = Er(vt, [
3264
3263
  }
3265
3264
  ) });
3266
3265
  };
3267
- uo.displayName = vt;
3268
- var fo = "PopoverAnchor", lc = m.forwardRef(
3266
+ uo.displayName = yt;
3267
+ var fo = "PopoverAnchor", cc = m.forwardRef(
3269
3268
  (e, t) => {
3270
3269
  const { __scopePopover: n, ...r } = e, o = ye(fo, n), s = Ze(n), { onCustomAnchorAdd: a, onCustomAnchorRemove: i } = o;
3271
3270
  return m.useEffect(() => (a(), () => i()), [a, i]), /* @__PURE__ */ c.jsx(Kr, { ...s, ...r, ref: t });
3272
3271
  }
3273
3272
  );
3274
- lc.displayName = fo;
3273
+ cc.displayName = fo;
3275
3274
  var mo = "PopoverTrigger", po = m.forwardRef(
3276
3275
  (e, t) => {
3277
3276
  const { __scopePopover: n, ...r } = e, o = ye(mo, n), s = Ze(n), a = ve(t, o.triggerRef), i = /* @__PURE__ */ c.jsx(
@@ -3291,27 +3290,27 @@ var mo = "PopoverTrigger", po = m.forwardRef(
3291
3290
  }
3292
3291
  );
3293
3292
  po.displayName = mo;
3294
- var fn = "PopoverPortal", [uc, fc] = lo(fn, {
3293
+ var dn = "PopoverPortal", [lc, uc] = lo(dn, {
3295
3294
  forceMount: void 0
3296
3295
  }), ho = (e) => {
3297
- const { __scopePopover: t, forceMount: n, children: r, container: o } = e, s = ye(fn, t);
3298
- return /* @__PURE__ */ c.jsx(uc, { scope: t, forceMount: n, children: /* @__PURE__ */ c.jsx(un, { present: n || s.open, children: /* @__PURE__ */ c.jsx(Qr, { asChild: !0, container: o, children: r }) }) });
3296
+ const { __scopePopover: t, forceMount: n, children: r, container: o } = e, s = ye(dn, t);
3297
+ return /* @__PURE__ */ c.jsx(lc, { scope: t, forceMount: n, children: /* @__PURE__ */ c.jsx(fn, { present: n || s.open, children: /* @__PURE__ */ c.jsx(Qr, { asChild: !0, container: o, children: r }) }) });
3299
3298
  };
3300
- ho.displayName = fn;
3299
+ ho.displayName = dn;
3301
3300
  var Me = "PopoverContent", go = m.forwardRef(
3302
3301
  (e, t) => {
3303
- const n = fc(Me, e.__scopePopover), { forceMount: r = n.forceMount, ...o } = e, s = ye(Me, e.__scopePopover);
3304
- return /* @__PURE__ */ c.jsx(un, { present: r || s.open, children: s.modal ? /* @__PURE__ */ c.jsx(mc, { ...o, ref: t }) : /* @__PURE__ */ c.jsx(pc, { ...o, ref: t }) });
3302
+ const n = uc(Me, e.__scopePopover), { forceMount: r = n.forceMount, ...o } = e, s = ye(Me, e.__scopePopover);
3303
+ return /* @__PURE__ */ c.jsx(fn, { present: r || s.open, children: s.modal ? /* @__PURE__ */ c.jsx(dc, { ...o, ref: t }) : /* @__PURE__ */ c.jsx(mc, { ...o, ref: t }) });
3305
3304
  }
3306
3305
  );
3307
3306
  go.displayName = Me;
3308
- var dc = /* @__PURE__ */ Sr("PopoverContent.RemoveScroll"), mc = m.forwardRef(
3307
+ var fc = /* @__PURE__ */ Sr("PopoverContent.RemoveScroll"), dc = m.forwardRef(
3309
3308
  (e, t) => {
3310
3309
  const n = ye(Me, e.__scopePopover), r = m.useRef(null), o = ve(t, r), s = m.useRef(!1);
3311
3310
  return m.useEffect(() => {
3312
3311
  const a = r.current;
3313
- if (a) return Si(a);
3314
- }, []), /* @__PURE__ */ c.jsx(co, { as: dc, allowPinchZoom: !0, children: /* @__PURE__ */ c.jsx(
3312
+ if (a) return Ei(a);
3313
+ }, []), /* @__PURE__ */ c.jsx(co, { as: fc, allowPinchZoom: !0, children: /* @__PURE__ */ c.jsx(
3315
3314
  vo,
3316
3315
  {
3317
3316
  ...e,
@@ -3337,7 +3336,7 @@ var dc = /* @__PURE__ */ Sr("PopoverContent.RemoveScroll"), mc = m.forwardRef(
3337
3336
  }
3338
3337
  ) });
3339
3338
  }
3340
- ), pc = m.forwardRef(
3339
+ ), mc = m.forwardRef(
3341
3340
  (e, t) => {
3342
3341
  const n = ye(Me, e.__scopePopover), r = m.useRef(!1), o = m.useRef(!1);
3343
3342
  return /* @__PURE__ */ c.jsx(
@@ -3371,9 +3370,9 @@ var dc = /* @__PURE__ */ Sr("PopoverContent.RemoveScroll"), mc = m.forwardRef(
3371
3370
  onFocusOutside: l,
3372
3371
  onInteractOutside: f,
3373
3372
  ...d
3374
- } = e, h = ye(Me, n), p = Ze(n);
3375
- return Zs(), /* @__PURE__ */ c.jsx(
3376
- Or,
3373
+ } = e, p = ye(Me, n), g = Ze(n);
3374
+ return Gs(), /* @__PURE__ */ c.jsx(
3375
+ Rr,
3377
3376
  {
3378
3377
  asChild: !0,
3379
3378
  loop: !0,
@@ -3389,14 +3388,14 @@ var dc = /* @__PURE__ */ Sr("PopoverContent.RemoveScroll"), mc = m.forwardRef(
3389
3388
  onEscapeKeyDown: i,
3390
3389
  onPointerDownOutside: u,
3391
3390
  onFocusOutside: l,
3392
- onDismiss: () => h.onOpenChange(!1),
3391
+ onDismiss: () => p.onOpenChange(!1),
3393
3392
  children: /* @__PURE__ */ c.jsx(
3394
- di,
3393
+ fi,
3395
3394
  {
3396
- "data-state": xo(h.open),
3395
+ "data-state": xo(p.open),
3397
3396
  role: "dialog",
3398
- id: h.contentId,
3399
- ...p,
3397
+ id: p.contentId,
3398
+ ...g,
3400
3399
  ...d,
3401
3400
  ref: t,
3402
3401
  style: {
@@ -3414,7 +3413,7 @@ var dc = /* @__PURE__ */ Sr("PopoverContent.RemoveScroll"), mc = m.forwardRef(
3414
3413
  }
3415
3414
  );
3416
3415
  }
3417
- ), yo = "PopoverClose", hc = m.forwardRef(
3416
+ ), yo = "PopoverClose", pc = m.forwardRef(
3418
3417
  (e, t) => {
3419
3418
  const { __scopePopover: n, ...r } = e, o = ye(yo, n);
3420
3419
  return /* @__PURE__ */ c.jsx(
@@ -3428,25 +3427,25 @@ var dc = /* @__PURE__ */ Sr("PopoverContent.RemoveScroll"), mc = m.forwardRef(
3428
3427
  );
3429
3428
  }
3430
3429
  );
3431
- hc.displayName = yo;
3432
- var gc = "PopoverArrow", vc = m.forwardRef(
3430
+ pc.displayName = yo;
3431
+ var hc = "PopoverArrow", gc = m.forwardRef(
3433
3432
  (e, t) => {
3434
3433
  const { __scopePopover: n, ...r } = e, o = Ze(n);
3435
- return /* @__PURE__ */ c.jsx(mi, { ...o, ...r, ref: t });
3434
+ return /* @__PURE__ */ c.jsx(di, { ...o, ...r, ref: t });
3436
3435
  }
3437
3436
  );
3438
- vc.displayName = gc;
3437
+ gc.displayName = hc;
3439
3438
  function xo(e) {
3440
3439
  return e ? "open" : "closed";
3441
3440
  }
3442
- var yc = uo, xc = po, bc = ho, wc = go;
3443
- const bo = ({ ...e }) => /* @__PURE__ */ c.jsx(yc, { "data-slot": "popover", ...e }), wo = ({ ...e }) => /* @__PURE__ */ c.jsx(xc, { "data-slot": "popover-trigger", ...e }), jo = ({
3441
+ var vc = uo, yc = po, xc = ho, bc = go;
3442
+ const bo = ({ ...e }) => /* @__PURE__ */ c.jsx(vc, { "data-slot": "popover", ...e }), wo = ({ ...e }) => /* @__PURE__ */ c.jsx(yc, { "data-slot": "popover-trigger", ...e }), jo = ({
3444
3443
  className: e,
3445
3444
  align: t = "center",
3446
3445
  sideOffset: n = 4,
3447
3446
  ...r
3448
- }) => /* @__PURE__ */ c.jsx(bc, { children: /* @__PURE__ */ c.jsx(
3449
- wc,
3447
+ }) => /* @__PURE__ */ c.jsx(xc, { children: /* @__PURE__ */ c.jsx(
3448
+ bc,
3450
3449
  {
3451
3450
  "data-slot": "popover-content",
3452
3451
  align: t,
@@ -3458,7 +3457,7 @@ const bo = ({ ...e }) => /* @__PURE__ */ c.jsx(yc, { "data-slot": "popover", ...
3458
3457
  ...r
3459
3458
  }
3460
3459
  ) });
3461
- function jc(e, t, n, r) {
3460
+ function wc(e, t, n, r) {
3462
3461
  function o(s) {
3463
3462
  return s instanceof n ? s : new n(function(a) {
3464
3463
  a(s);
@@ -3485,7 +3484,7 @@ function jc(e, t, n, r) {
3485
3484
  l((r = r.apply(e, [])).next());
3486
3485
  });
3487
3486
  }
3488
- var Cc = function() {
3487
+ var jc = function() {
3489
3488
  var e = document.getSelection();
3490
3489
  if (!e.rangeCount)
3491
3490
  return function() {
@@ -3507,24 +3506,24 @@ var Cc = function() {
3507
3506
  e.addRange(o);
3508
3507
  }), t && t.focus();
3509
3508
  };
3510
- }, Ec = Cc, Un = {
3509
+ }, Cc = jc, Yn = {
3511
3510
  "text/plain": "Text",
3512
3511
  "text/html": "Url",
3513
3512
  default: "Text"
3514
- }, Sc = "Copy to clipboard: #{key}, Enter";
3515
- function Ac(e) {
3513
+ }, Ec = "Copy to clipboard: #{key}, Enter";
3514
+ function Sc(e) {
3516
3515
  var t = (/mac os x/i.test(navigator.userAgent) ? "⌘" : "Ctrl") + "+C";
3517
3516
  return e.replace(/#{\s*key\s*}/g, t);
3518
3517
  }
3519
- function Pc(e, t) {
3518
+ function Ac(e, t) {
3520
3519
  var n, r, o, s, a, i, u = !1;
3521
3520
  t || (t = {}), n = t.debug || !1;
3522
3521
  try {
3523
- o = Ec(), s = document.createRange(), a = document.getSelection(), i = document.createElement("span"), i.textContent = e, i.ariaHidden = "true", i.style.all = "unset", i.style.position = "fixed", i.style.top = 0, i.style.clip = "rect(0, 0, 0, 0)", i.style.whiteSpace = "pre", i.style.webkitUserSelect = "text", i.style.MozUserSelect = "text", i.style.msUserSelect = "text", i.style.userSelect = "text", i.addEventListener("copy", function(f) {
3522
+ o = Cc(), s = document.createRange(), a = document.getSelection(), i = document.createElement("span"), i.textContent = e, i.ariaHidden = "true", i.style.all = "unset", i.style.position = "fixed", i.style.top = 0, i.style.clip = "rect(0, 0, 0, 0)", i.style.whiteSpace = "pre", i.style.webkitUserSelect = "text", i.style.MozUserSelect = "text", i.style.msUserSelect = "text", i.style.userSelect = "text", i.addEventListener("copy", function(f) {
3524
3523
  if (f.stopPropagation(), t.format)
3525
3524
  if (f.preventDefault(), typeof f.clipboardData > "u") {
3526
3525
  n && console.warn("unable to use e.clipboardData"), n && console.warn("trying IE specific stuff"), window.clipboardData.clearData();
3527
- var d = Un[t.format] || Un.default;
3526
+ var d = Yn[t.format] || Yn.default;
3528
3527
  window.clipboardData.setData(d, e);
3529
3528
  } else
3530
3529
  f.clipboardData.clearData(), f.clipboardData.setData(t.format, e);
@@ -3539,21 +3538,21 @@ function Pc(e, t) {
3539
3538
  try {
3540
3539
  window.clipboardData.setData(t.format || "text", e), t.onCopy && t.onCopy(window.clipboardData), u = !0;
3541
3540
  } catch (d) {
3542
- n && console.error("unable to copy using clipboardData: ", d), n && console.error("falling back to prompt"), r = Ac("message" in t ? t.message : Sc), window.prompt(r, e);
3541
+ n && console.error("unable to copy using clipboardData: ", d), n && console.error("falling back to prompt"), r = Sc("message" in t ? t.message : Ec), window.prompt(r, e);
3543
3542
  }
3544
3543
  } finally {
3545
3544
  a && (typeof a.removeRange == "function" ? a.removeRange(s) : a.removeAllRanges()), i && document.body.removeChild(i), o();
3546
3545
  }
3547
3546
  return u;
3548
3547
  }
3549
- var Nc = Pc;
3548
+ var Pc = Ac;
3550
3549
  function xe(e) {
3551
3550
  return Object.prototype.toString.call(e) === "[object Object]";
3552
3551
  }
3553
3552
  function Ve(e) {
3554
3553
  return Array.isArray(e) ? e.length : xe(e) ? Object.keys(e).length : 0;
3555
3554
  }
3556
- function Oc(e, t) {
3555
+ function Nc(e, t) {
3557
3556
  if (typeof e == "string")
3558
3557
  return e;
3559
3558
  try {
@@ -3575,15 +3574,15 @@ function Oc(e, t) {
3575
3574
  }
3576
3575
  }
3577
3576
  function Rc(e) {
3578
- return jc(this, void 0, void 0, function* () {
3577
+ return wc(this, void 0, void 0, function* () {
3579
3578
  try {
3580
3579
  yield navigator.clipboard.writeText(e);
3581
3580
  } catch {
3582
- Nc(e);
3581
+ Pc(e);
3583
3582
  }
3584
3583
  });
3585
3584
  }
3586
- function Yn(e, t, n, r, o, s) {
3585
+ function Gn(e, t, n, r, o, s) {
3587
3586
  if (s && s.collapsed !== void 0)
3588
3587
  return !!s.collapsed;
3589
3588
  if (typeof r == "boolean")
@@ -3592,13 +3591,13 @@ function Yn(e, t, n, r, o, s) {
3592
3591
  return !0;
3593
3592
  const a = Ve(e);
3594
3593
  if (typeof r == "function") {
3595
- const i = dn(r, [{ node: e, depth: t, indexOrName: n, size: a }]);
3594
+ const i = mn(r, [{ node: e, depth: t, indexOrName: n, size: a }]);
3596
3595
  if (typeof i == "boolean")
3597
3596
  return i;
3598
3597
  }
3599
3598
  return !!(Array.isArray(e) && a > o || xe(e) && a > o);
3600
3599
  }
3601
- function Gn(e, t, n, r, o, s) {
3600
+ function Zn(e, t, n, r, o, s) {
3602
3601
  if (s && s.collapsed !== void 0)
3603
3602
  return !!s.collapsed;
3604
3603
  if (typeof r == "boolean")
@@ -3607,16 +3606,16 @@ function Gn(e, t, n, r, o, s) {
3607
3606
  return !0;
3608
3607
  const a = Math.ceil(e.length / 100);
3609
3608
  if (typeof r == "function") {
3610
- const i = dn(r, [{ node: e, depth: t, indexOrName: n, size: a }]);
3609
+ const i = mn(r, [{ node: e, depth: t, indexOrName: n, size: a }]);
3611
3610
  if (typeof i == "boolean")
3612
3611
  return i;
3613
3612
  }
3614
3613
  return !!(Array.isArray(e) && a > o || xe(e) && a > o);
3615
3614
  }
3616
- function Re(e, t, n) {
3615
+ function Oe(e, t, n) {
3617
3616
  return typeof e == "boolean" ? e : !!(typeof e == "number" && t > e || e === "collapsed" && n || e === "expanded" && !n);
3618
3617
  }
3619
- function dn(e, t) {
3618
+ function mn(e, t) {
3620
3619
  try {
3621
3620
  return e(...t);
3622
3621
  } catch (n) {
@@ -3627,220 +3626,220 @@ function Co(e) {
3627
3626
  if (e === !0 || xe(e) && e.add === !0)
3628
3627
  return !0;
3629
3628
  }
3630
- function Zn(e) {
3629
+ function Xn(e) {
3631
3630
  if (e === !0 || xe(e) && e.edit === !0)
3632
3631
  return !0;
3633
3632
  }
3634
- function mn(e) {
3633
+ function pn(e) {
3635
3634
  if (e === !0 || xe(e) && e.delete === !0)
3636
3635
  return !0;
3637
3636
  }
3638
- function Tc(e) {
3637
+ function Oc(e) {
3639
3638
  return typeof e == "function";
3640
3639
  }
3641
3640
  function Eo(e) {
3642
3641
  return !e || e.add === void 0 || !!e.add;
3643
3642
  }
3644
- function Xn(e) {
3643
+ function qn(e) {
3645
3644
  return !e || e.edit === void 0 || !!e.edit;
3646
3645
  }
3647
- function pn(e) {
3646
+ function hn(e) {
3648
3647
  return !e || e.delete === void 0 || !!e.delete;
3649
3648
  }
3650
- function yt(e) {
3649
+ function xt(e) {
3651
3650
  return !e || e.enableClipboard === void 0 || !!e.enableClipboard;
3652
3651
  }
3653
- function kc(e) {
3652
+ function Tc(e) {
3654
3653
  return !e || e.matchesURL === void 0 || !!e.matchesURL;
3655
3654
  }
3656
- function Mc(e, t) {
3655
+ function kc(e, t) {
3657
3656
  return e === "string" ? t.trim().replace(/^\"([\s\S]+?)\"$/, "$1") : t;
3658
3657
  }
3659
- var qn;
3660
- function $t() {
3661
- return $t = Object.assign ? Object.assign.bind() : function(e) {
3658
+ var Jn;
3659
+ function Ht() {
3660
+ return Ht = Object.assign ? Object.assign.bind() : function(e) {
3662
3661
  for (var t = 1; t < arguments.length; t++) {
3663
3662
  var n = arguments[t];
3664
3663
  for (var r in n)
3665
3664
  Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
3666
3665
  }
3667
3666
  return e;
3668
- }, $t.apply(this, arguments);
3667
+ }, Ht.apply(this, arguments);
3669
3668
  }
3670
- var hn = function(t) {
3671
- return /* @__PURE__ */ m.createElement("svg", $t({
3669
+ var gn = function(t) {
3670
+ return /* @__PURE__ */ m.createElement("svg", Ht({
3672
3671
  xmlns: "http://www.w3.org/2000/svg",
3673
3672
  width: 16,
3674
3673
  height: 16,
3675
3674
  fill: "none",
3676
3675
  viewBox: "0 0 16 16"
3677
- }, t), qn || (qn = /* @__PURE__ */ m.createElement("path", {
3676
+ }, t), Jn || (Jn = /* @__PURE__ */ m.createElement("path", {
3678
3677
  fill: "currentColor",
3679
3678
  d: "M12.473 5.806a.666.666 0 0 0-.946 0L8.473 8.86a.667.667 0 0 1-.946 0L4.473 5.806a.667.667 0 1 0-.946.94l3.06 3.06a2 2 0 0 0 2.826 0l3.06-3.06a.667.667 0 0 0 0-.94Z"
3680
3679
  })));
3681
- }, Jn;
3682
- function Wt() {
3683
- return Wt = Object.assign ? Object.assign.bind() : function(e) {
3680
+ }, Kn;
3681
+ function Bt() {
3682
+ return Bt = Object.assign ? Object.assign.bind() : function(e) {
3684
3683
  for (var t = 1; t < arguments.length; t++) {
3685
3684
  var n = arguments[t];
3686
3685
  for (var r in n)
3687
3686
  Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
3688
3687
  }
3689
3688
  return e;
3690
- }, Wt.apply(this, arguments);
3689
+ }, Bt.apply(this, arguments);
3691
3690
  }
3692
- var _c = function(t) {
3693
- return /* @__PURE__ */ m.createElement("svg", Wt({
3691
+ var Mc = function(t) {
3692
+ return /* @__PURE__ */ m.createElement("svg", Bt({
3694
3693
  xmlns: "http://www.w3.org/2000/svg",
3695
3694
  width: 24,
3696
3695
  height: 24,
3697
3696
  fill: "none",
3698
3697
  viewBox: "0 0 24 24"
3699
- }, t), Jn || (Jn = /* @__PURE__ */ m.createElement("path", {
3698
+ }, t), Kn || (Kn = /* @__PURE__ */ m.createElement("path", {
3700
3699
  fill: "currentColor",
3701
3700
  d: "M17.542 2.5h-4.75a3.963 3.963 0 0 0-3.959 3.958v4.75a3.963 3.963 0 0 0 3.959 3.959h4.75a3.963 3.963 0 0 0 3.958-3.959v-4.75A3.963 3.963 0 0 0 17.542 2.5Zm2.375 8.708a2.378 2.378 0 0 1-2.375 2.375h-4.75a2.378 2.378 0 0 1-2.375-2.375v-4.75a2.378 2.378 0 0 1 2.375-2.375h4.75a2.378 2.378 0 0 1 2.375 2.375v4.75Zm-4.75 6.334a3.963 3.963 0 0 1-3.959 3.958h-4.75A3.963 3.963 0 0 1 2.5 17.542v-4.75a3.963 3.963 0 0 1 3.958-3.959.791.791 0 1 1 0 1.584 2.378 2.378 0 0 0-2.375 2.375v4.75a2.378 2.378 0 0 0 2.375 2.375h4.75a2.378 2.378 0 0 0 2.375-2.375.792.792 0 1 1 1.584 0Z"
3702
3701
  })));
3703
- }, Kn, Qn;
3704
- function Ht() {
3705
- return Ht = Object.assign ? Object.assign.bind() : function(e) {
3702
+ }, Qn, er;
3703
+ function zt() {
3704
+ return zt = Object.assign ? Object.assign.bind() : function(e) {
3706
3705
  for (var t = 1; t < arguments.length; t++) {
3707
3706
  var n = arguments[t];
3708
3707
  for (var r in n)
3709
3708
  Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
3710
3709
  }
3711
3710
  return e;
3712
- }, Ht.apply(this, arguments);
3711
+ }, zt.apply(this, arguments);
3713
3712
  }
3714
- var Dc = function(t) {
3715
- return /* @__PURE__ */ m.createElement("svg", Ht({
3713
+ var _c = function(t) {
3714
+ return /* @__PURE__ */ m.createElement("svg", zt({
3716
3715
  xmlns: "http://www.w3.org/2000/svg",
3717
3716
  width: 24,
3718
3717
  height: 24,
3719
3718
  fill: "none",
3720
3719
  viewBox: "0 0 24 24"
3721
- }, t), Kn || (Kn = /* @__PURE__ */ m.createElement("path", {
3720
+ }, t), Qn || (Qn = /* @__PURE__ */ m.createElement("path", {
3722
3721
  fill: "currentColor",
3723
3722
  d: "M17.25 3H6.75A3.755 3.755 0 0 0 3 6.75v10.5A3.754 3.754 0 0 0 6.75 21h10.5A3.754 3.754 0 0 0 21 17.25V6.75A3.755 3.755 0 0 0 17.25 3Zm2.25 14.25a2.25 2.25 0 0 1-2.25 2.25H6.75a2.25 2.25 0 0 1-2.25-2.25V6.75A2.25 2.25 0 0 1 6.75 4.5h10.5a2.25 2.25 0 0 1 2.25 2.25v10.5Z"
3724
- })), Qn || (Qn = /* @__PURE__ */ m.createElement("path", {
3723
+ })), er || (er = /* @__PURE__ */ m.createElement("path", {
3725
3724
  fill: "#14C786",
3726
3725
  d: "M10.312 14.45 7.83 11.906a.625.625 0 0 0-.896 0 .659.659 0 0 0 0 .918l2.481 2.546a1.264 1.264 0 0 0 .896.381 1.237 1.237 0 0 0 .895-.38l5.858-6.011a.658.658 0 0 0 0-.919.625.625 0 0 0-.896 0l-5.857 6.01Z"
3727
3726
  })));
3728
3727
  };
3729
- function xt({ node: e, nodeMeta: t }) {
3728
+ function bt({ node: e, nodeMeta: t }) {
3730
3729
  const { customizeCopy: n, CopyComponent: r, CopiedComponent: o } = Ce(be), [s, a] = G(!1), i = (u) => {
3731
3730
  u.stopPropagation();
3732
3731
  const l = n(e, t);
3733
3732
  typeof l == "string" && l && Rc(l), a(!0), setTimeout(() => a(!1), 3e3);
3734
3733
  };
3735
- return s ? typeof o == "function" ? c.jsx(o, { className: "json-view--copy", style: { display: "inline-block" } }) : c.jsx(Dc, { className: "json-view--copy", style: { display: "inline-block" } }) : typeof r == "function" ? c.jsx(r, { onClick: i, className: "json-view--copy" }) : c.jsx(_c, { onClick: i, className: "json-view--copy" });
3734
+ return s ? typeof o == "function" ? c.jsx(o, { className: "json-view--copy", style: { display: "inline-block" } }) : c.jsx(_c, { className: "json-view--copy", style: { display: "inline-block" } }) : typeof r == "function" ? c.jsx(r, { onClick: i, className: "json-view--copy" }) : c.jsx(Mc, { onClick: i, className: "json-view--copy" });
3736
3735
  }
3737
- function Bt({ indexOrName: e, value: t, depth: n, deleteHandle: r, editHandle: o, parent: s, parentPath: a }) {
3736
+ function Vt({ indexOrName: e, value: t, depth: n, deleteHandle: r, editHandle: o, parent: s, parentPath: a }) {
3738
3737
  const { displayArrayIndex: i } = Ce(be), u = Array.isArray(s);
3739
- return c.jsxs("div", Object.assign({ className: "json-view--pair" }, { children: [!u || u && i ? c.jsxs(c.Fragment, { children: [c.jsx("span", Object.assign({ className: typeof e == "number" ? "json-view--index" : "json-view--property" }, { children: e })), ":", " "] }) : c.jsx(c.Fragment, {}), c.jsx(Ao, { node: t, depth: n + 1, deleteHandle: (l, f) => r(l, f), editHandle: (l, f, d, h) => o(l, f, d, h), parent: s, indexOrName: e, parentPath: a })] }));
3738
+ return c.jsxs("div", Object.assign({ className: "json-view--pair" }, { children: [!u || u && i ? c.jsxs(c.Fragment, { children: [c.jsx("span", Object.assign({ className: typeof e == "number" ? "json-view--index" : "json-view--property" }, { children: e })), ":", " "] }) : c.jsx(c.Fragment, {}), c.jsx(Ao, { node: t, depth: n + 1, deleteHandle: (l, f) => r(l, f), editHandle: (l, f, d, p) => o(l, f, d, p), parent: s, indexOrName: e, parentPath: a })] }));
3740
3739
  }
3741
- var er, tr;
3742
- function zt() {
3743
- return zt = Object.assign ? Object.assign.bind() : function(e) {
3740
+ var tr, nr;
3741
+ function Ut() {
3742
+ return Ut = Object.assign ? Object.assign.bind() : function(e) {
3744
3743
  for (var t = 1; t < arguments.length; t++) {
3745
3744
  var n = arguments[t];
3746
3745
  for (var r in n)
3747
3746
  Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
3748
3747
  }
3749
3748
  return e;
3750
- }, zt.apply(this, arguments);
3749
+ }, Ut.apply(this, arguments);
3751
3750
  }
3752
- var gn = function(t) {
3753
- return /* @__PURE__ */ m.createElement("svg", zt({
3751
+ var vn = function(t) {
3752
+ return /* @__PURE__ */ m.createElement("svg", Ut({
3754
3753
  xmlns: "http://www.w3.org/2000/svg",
3755
3754
  width: 24,
3756
3755
  height: 24,
3757
3756
  fill: "none",
3758
3757
  viewBox: "0 0 24 24"
3759
- }, t), er || (er = /* @__PURE__ */ m.createElement("path", {
3758
+ }, t), tr || (tr = /* @__PURE__ */ m.createElement("path", {
3760
3759
  fill: "currentColor",
3761
3760
  d: "M18.75 6h-2.325a3.757 3.757 0 0 0-3.675-3h-1.5a3.757 3.757 0 0 0-3.675 3H5.25a.75.75 0 0 0 0 1.5H6v9.75A3.754 3.754 0 0 0 9.75 21h4.5A3.754 3.754 0 0 0 18 17.25V7.5h.75a.75.75 0 1 0 0-1.5Zm-7.5-1.5h1.5A2.255 2.255 0 0 1 14.872 6H9.128a2.255 2.255 0 0 1 2.122-1.5Zm5.25 12.75a2.25 2.25 0 0 1-2.25 2.25h-4.5a2.25 2.25 0 0 1-2.25-2.25V7.5h9v9.75Z"
3762
- })), tr || (tr = /* @__PURE__ */ m.createElement("path", {
3761
+ })), nr || (nr = /* @__PURE__ */ m.createElement("path", {
3763
3762
  fill: "#DA0000",
3764
3763
  d: "M10.5 16.5a.75.75 0 0 0 .75-.75v-4.5a.75.75 0 1 0-1.5 0v4.5a.75.75 0 0 0 .75.75ZM13.5 16.5a.75.75 0 0 0 .75-.75v-4.5a.75.75 0 1 0-1.5 0v4.5a.75.75 0 0 0 .75.75Z"
3765
3764
  })));
3766
- }, nr, rr;
3767
- function Vt() {
3768
- return Vt = Object.assign ? Object.assign.bind() : function(e) {
3765
+ }, rr, or;
3766
+ function Yt() {
3767
+ return Yt = Object.assign ? Object.assign.bind() : function(e) {
3769
3768
  for (var t = 1; t < arguments.length; t++) {
3770
3769
  var n = arguments[t];
3771
3770
  for (var r in n)
3772
3771
  Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
3773
3772
  }
3774
3773
  return e;
3775
- }, Vt.apply(this, arguments);
3774
+ }, Yt.apply(this, arguments);
3776
3775
  }
3777
3776
  var So = function(t) {
3778
- return /* @__PURE__ */ m.createElement("svg", Vt({
3777
+ return /* @__PURE__ */ m.createElement("svg", Yt({
3779
3778
  xmlns: "http://www.w3.org/2000/svg",
3780
3779
  width: 24,
3781
3780
  height: 24,
3782
3781
  fill: "none",
3783
3782
  viewBox: "0 0 24 24"
3784
- }, t), nr || (nr = /* @__PURE__ */ m.createElement("path", {
3783
+ }, t), rr || (rr = /* @__PURE__ */ m.createElement("path", {
3785
3784
  fill: "currentColor",
3786
3785
  d: "M21 6.75v10.5A3.754 3.754 0 0 1 17.25 21H6.75A3.754 3.754 0 0 1 3 17.25V6.75A3.754 3.754 0 0 1 6.75 3h10.5A3.754 3.754 0 0 1 21 6.75Zm-1.5 0c0-1.24-1.01-2.25-2.25-2.25H6.75C5.51 4.5 4.5 5.51 4.5 6.75v10.5c0 1.24 1.01 2.25 2.25 2.25h10.5c1.24 0 2.25-1.01 2.25-2.25V6.75Z"
3787
- })), rr || (rr = /* @__PURE__ */ m.createElement("path", {
3786
+ })), or || (or = /* @__PURE__ */ m.createElement("path", {
3788
3787
  fill: "#14C786",
3789
3788
  d: "M15 12.75a.75.75 0 1 0 0-1.5h-2.25V9a.75.75 0 1 0-1.5 0v2.25H9a.75.75 0 1 0 0 1.5h2.25V15a.75.75 0 1 0 1.5 0v-2.25H15Z"
3790
3789
  })));
3791
- }, or, sr;
3792
- function Ut() {
3793
- return Ut = Object.assign ? Object.assign.bind() : function(e) {
3790
+ }, sr, ar;
3791
+ function Gt() {
3792
+ return Gt = Object.assign ? Object.assign.bind() : function(e) {
3794
3793
  for (var t = 1; t < arguments.length; t++) {
3795
3794
  var n = arguments[t];
3796
3795
  for (var r in n)
3797
3796
  Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
3798
3797
  }
3799
3798
  return e;
3800
- }, Ut.apply(this, arguments);
3799
+ }, Gt.apply(this, arguments);
3801
3800
  }
3802
- var vn = function(t) {
3803
- return /* @__PURE__ */ m.createElement("svg", Ut({
3801
+ var yn = function(t) {
3802
+ return /* @__PURE__ */ m.createElement("svg", Gt({
3804
3803
  xmlns: "http://www.w3.org/2000/svg",
3805
3804
  width: 24,
3806
3805
  height: 24,
3807
3806
  fill: "none",
3808
3807
  viewBox: "0 0 24 24"
3809
- }, t), or || (or = /* @__PURE__ */ m.createElement("path", {
3808
+ }, t), sr || (sr = /* @__PURE__ */ m.createElement("path", {
3810
3809
  fill: "currentColor",
3811
3810
  d: "M12 3a9 9 0 1 0 9 9 9.01 9.01 0 0 0-9-9Zm0 16.5a7.5 7.5 0 1 1 7.5-7.5 7.509 7.509 0 0 1-7.5 7.5Z"
3812
- })), sr || (sr = /* @__PURE__ */ m.createElement("path", {
3811
+ })), ar || (ar = /* @__PURE__ */ m.createElement("path", {
3813
3812
  fill: "#14C786",
3814
3813
  d: "m10.85 13.96-1.986-2.036a.5.5 0 0 0-.716 0 .527.527 0 0 0 0 .735l1.985 2.036a1.01 1.01 0 0 0 .717.305.99.99 0 0 0 .716-.305l4.686-4.808a.526.526 0 0 0 0-.735.5.5 0 0 0-.716 0l-4.687 4.809Z"
3815
3814
  })));
3816
- }, ar, ir;
3817
- function Yt() {
3818
- return Yt = Object.assign ? Object.assign.bind() : function(e) {
3815
+ }, ir, cr;
3816
+ function Zt() {
3817
+ return Zt = Object.assign ? Object.assign.bind() : function(e) {
3819
3818
  for (var t = 1; t < arguments.length; t++) {
3820
3819
  var n = arguments[t];
3821
3820
  for (var r in n)
3822
3821
  Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
3823
3822
  }
3824
3823
  return e;
3825
- }, Yt.apply(this, arguments);
3824
+ }, Zt.apply(this, arguments);
3826
3825
  }
3827
- var yn = function(t) {
3828
- return /* @__PURE__ */ m.createElement("svg", Yt({
3826
+ var xn = function(t) {
3827
+ return /* @__PURE__ */ m.createElement("svg", Zt({
3829
3828
  xmlns: "http://www.w3.org/2000/svg",
3830
3829
  width: 24,
3831
3830
  height: 24,
3832
3831
  fill: "none",
3833
3832
  viewBox: "0 0 24 24"
3834
- }, t), ar || (ar = /* @__PURE__ */ m.createElement("path", {
3833
+ }, t), ir || (ir = /* @__PURE__ */ m.createElement("path", {
3835
3834
  fill: "#DA0000",
3836
3835
  d: "M15 9a.75.75 0 0 0-1.06 0L12 10.94 10.06 9A.75.75 0 0 0 9 10.06L10.94 12 9 13.94A.75.75 0 0 0 10.06 15L12 13.06 13.94 15A.75.75 0 0 0 15 13.94L13.06 12 15 10.06A.75.75 0 0 0 15 9Z"
3837
- })), ir || (ir = /* @__PURE__ */ m.createElement("path", {
3836
+ })), cr || (cr = /* @__PURE__ */ m.createElement("path", {
3838
3837
  fill: "currentColor",
3839
3838
  d: "M12 3a9 9 0 1 0 9 9 9.01 9.01 0 0 0-9-9Zm0 16.5a7.5 7.5 0 1 1 7.5-7.5 7.509 7.509 0 0 1-7.5 7.5Z"
3840
3839
  })));
3841
3840
  };
3842
- function Fc({ originNode: e, node: t, depth: n, index: r, deleteHandle: o, customOptions: s, startIndex: a, parent: i, parentPath: u }) {
3843
- const { enableClipboard: l, src: f, onEdit: d, onChange: h, forceUpdate: p, displaySize: v, CustomOperation: g } = Ce(be), x = [...u, String(r)], [b, S] = G(!0), E = de((A, C, T) => {
3841
+ function Dc({ originNode: e, node: t, depth: n, index: r, deleteHandle: o, customOptions: s, startIndex: a, parent: i, parentPath: u }) {
3842
+ const { enableClipboard: l, src: f, onEdit: d, onChange: p, forceUpdate: g, displaySize: v, CustomOperation: h } = Ce(be), x = [...u, String(r)], [b, S] = G(!0), E = de((A, C, T) => {
3844
3843
  e[A] = C, d && d({
3845
3844
  newValue: C,
3846
3845
  oldValue: T,
@@ -3849,22 +3848,22 @@ function Fc({ originNode: e, node: t, depth: n, index: r, deleteHandle: o, custo
3849
3848
  indexOrName: A,
3850
3849
  parentType: "array",
3851
3850
  parentPath: u
3852
- }), h && h({ type: "edit", depth: n, src: f, indexOrName: A, parentType: "array", parentPath: u }), p();
3853
- }, [t, d, h, p]), w = (A) => {
3854
- e.splice(A, 1), o && o(A, u), p();
3855
- }, j = c.jsxs(c.Fragment, { children: [!b && c.jsxs("span", Object.assign({ onClick: () => S(!0), className: "jv-size-chevron" }, { children: [Re(v, n, b) && c.jsxs("span", Object.assign({ className: "jv-size" }, { children: [Ve(t), " Items"] })), c.jsx(hn, { className: "jv-chevron" })] })), !b && l && yt(s) && c.jsx(xt, { node: t, nodeMeta: { depth: n, indexOrName: r, parent: i, parentPath: u, currentPath: x } }), typeof g == "function" ? c.jsx(g, { node: t }) : null] });
3856
- return c.jsxs("div", { children: [c.jsx("span", { children: "[" }), j, b ? c.jsxs("button", Object.assign({ onClick: () => S(!1), className: "jv-button" }, { children: [a, " ... ", a + t.length - 1] })) : c.jsx("div", Object.assign({ className: "jv-indent" }, { children: t.map((A, C) => c.jsx(Bt, { indexOrName: C + a, value: A, depth: n, parent: t, deleteHandle: w, editHandle: E, parentPath: u }, String(r) + String(C))) })), c.jsx("span", { children: "]" })] });
3851
+ }), p && p({ type: "edit", depth: n, src: f, indexOrName: A, parentType: "array", parentPath: u }), g();
3852
+ }, [t, d, p, g]), w = (A) => {
3853
+ e.splice(A, 1), o && o(A, u), g();
3854
+ }, j = c.jsxs(c.Fragment, { children: [!b && c.jsxs("span", Object.assign({ onClick: () => S(!0), className: "jv-size-chevron" }, { children: [Oe(v, n, b) && c.jsxs("span", Object.assign({ className: "jv-size" }, { children: [Ve(t), " Items"] })), c.jsx(gn, { className: "jv-chevron" })] })), !b && l && xt(s) && c.jsx(bt, { node: t, nodeMeta: { depth: n, indexOrName: r, parent: i, parentPath: u, currentPath: x } }), typeof h == "function" ? c.jsx(h, { node: t }) : null] });
3855
+ return c.jsxs("div", { children: [c.jsx("span", { children: "[" }), j, b ? c.jsxs("button", Object.assign({ onClick: () => S(!1), className: "jv-button" }, { children: [a, " ... ", a + t.length - 1] })) : c.jsx("div", Object.assign({ className: "jv-indent" }, { children: t.map((A, C) => c.jsx(Vt, { indexOrName: C + a, value: A, depth: n, parent: t, deleteHandle: w, editHandle: E, parentPath: u }, String(r) + String(C))) })), c.jsx("span", { children: "]" })] });
3857
3856
  }
3858
- function Lc({ node: e, depth: t, deleteHandle: n, indexOrName: r, customOptions: o, parent: s, parentPath: a }) {
3857
+ function Fc({ node: e, depth: t, deleteHandle: n, indexOrName: r, customOptions: o, parent: s, parentPath: a }) {
3859
3858
  const i = typeof r < "u" ? [...a, String(r)] : a, u = [];
3860
3859
  for (let _ = 0; _ < e.length; _ += 100)
3861
3860
  u.push(e.slice(_, _ + 100));
3862
- const { collapsed: l, enableClipboard: f, collapseObjectsAfterLength: d, editable: h, onDelete: p, src: v, onAdd: g, CustomOperation: x, onChange: b, forceUpdate: S, displaySize: E } = Ce(be), [w, j] = G(Gn(e, t, r, l, d, o));
3861
+ const { collapsed: l, enableClipboard: f, collapseObjectsAfterLength: d, editable: p, onDelete: g, src: v, onAdd: h, CustomOperation: x, onChange: b, forceUpdate: S, displaySize: E } = Ce(be), [w, j] = G(Zn(e, t, r, l, d, o));
3863
3862
  _e(() => {
3864
- j(Gn(e, t, r, l, d, o));
3863
+ j(Zn(e, t, r, l, d, o));
3865
3864
  }, [l, d]);
3866
3865
  const [A, C] = G(!1), T = () => {
3867
- C(!1), n && n(r, a), p && p({ value: e, depth: t, src: v, indexOrName: r, parentType: "array", parentPath: a }), b && b({
3866
+ C(!1), n && n(r, a), g && g({ value: e, depth: t, src: v, indexOrName: r, parentType: "array", parentPath: a }), b && b({
3868
3867
  type: "delete",
3869
3868
  depth: t,
3870
3869
  src: v,
@@ -3874,23 +3873,23 @@ function Lc({ node: e, depth: t, deleteHandle: n, indexOrName: r, customOptions:
3874
3873
  });
3875
3874
  }, [k, L] = G(!1), W = () => {
3876
3875
  const _ = e;
3877
- _.push(null), g && g({ indexOrName: _.length - 1, depth: t, src: v, parentType: "array", parentPath: a }), b && b({ type: "add", indexOrName: _.length - 1, depth: t, src: v, parentType: "array", parentPath: a }), S();
3876
+ _.push(null), h && h({ indexOrName: _.length - 1, depth: t, src: v, parentType: "array", parentPath: a }), b && b({ type: "add", indexOrName: _.length - 1, depth: t, src: v, parentType: "array", parentPath: a }), S();
3878
3877
  }, H = A || k, I = () => {
3879
3878
  C(!1), L(!1);
3880
- }, M = c.jsxs(c.Fragment, { children: [!w && !H && c.jsxs("span", Object.assign({ onClick: () => j(!0), className: "jv-size-chevron" }, { children: [Re(E, t, w) && c.jsxs("span", Object.assign({ className: "jv-size" }, { children: [e.length, " Items"] })), c.jsx(hn, { className: "jv-chevron" })] })), H && c.jsx(vn, { className: "json-view--edit", style: { display: "inline-block" }, onClick: k ? W : T }), H && c.jsx(yn, { className: "json-view--edit", style: { display: "inline-block" }, onClick: I }), !w && !H && f && yt(o) && c.jsx(xt, { node: e, nodeMeta: { depth: t, indexOrName: r, parent: s, parentPath: a, currentPath: i } }), !w && !H && Co(h) && Eo(o) && c.jsx(So, { className: "json-view--edit", onClick: () => {
3879
+ }, M = c.jsxs(c.Fragment, { children: [!w && !H && c.jsxs("span", Object.assign({ onClick: () => j(!0), className: "jv-size-chevron" }, { children: [Oe(E, t, w) && c.jsxs("span", Object.assign({ className: "jv-size" }, { children: [e.length, " Items"] })), c.jsx(gn, { className: "jv-chevron" })] })), H && c.jsx(yn, { className: "json-view--edit", style: { display: "inline-block" }, onClick: k ? W : T }), H && c.jsx(xn, { className: "json-view--edit", style: { display: "inline-block" }, onClick: I }), !w && !H && f && xt(o) && c.jsx(bt, { node: e, nodeMeta: { depth: t, indexOrName: r, parent: s, parentPath: a, currentPath: i } }), !w && !H && Co(p) && Eo(o) && c.jsx(So, { className: "json-view--edit", onClick: () => {
3881
3880
  W();
3882
- } }), !w && !H && mn(h) && pn(o) && n && c.jsx(gn, { className: "json-view--edit", onClick: () => C(!0) }), typeof x == "function" ? c.jsx(x, { node: e }) : null] });
3883
- return c.jsxs(c.Fragment, { children: [c.jsx("span", { children: "[" }), M, w ? c.jsx("button", Object.assign({ onClick: () => j(!1), className: "jv-button" }, { children: "..." })) : c.jsx("div", Object.assign({ className: "jv-indent" }, { children: u.map((_, D) => c.jsx(Fc, { originNode: e, node: _, depth: t, index: D, startIndex: D * 100, deleteHandle: n, customOptions: o, parentPath: a }, String(r) + String(D))) })), c.jsx("span", { children: "]" }), w && Re(E, t, w) && c.jsxs("span", Object.assign({ onClick: () => j(!1), className: "jv-size" }, { children: [e.length, " Items"] }))] });
3881
+ } }), !w && !H && pn(p) && hn(o) && n && c.jsx(vn, { className: "json-view--edit", onClick: () => C(!0) }), typeof x == "function" ? c.jsx(x, { node: e }) : null] });
3882
+ return c.jsxs(c.Fragment, { children: [c.jsx("span", { children: "[" }), M, w ? c.jsx("button", Object.assign({ onClick: () => j(!1), className: "jv-button" }, { children: "..." })) : c.jsx("div", Object.assign({ className: "jv-indent" }, { children: u.map((_, D) => c.jsx(Dc, { originNode: e, node: _, depth: t, index: D, startIndex: D * 100, deleteHandle: n, customOptions: o, parentPath: a }, String(r) + String(D))) })), c.jsx("span", { children: "]" }), w && Oe(E, t, w) && c.jsxs("span", Object.assign({ onClick: () => j(!1), className: "jv-size" }, { children: [e.length, " Items"] }))] });
3884
3883
  }
3885
- function Ic({ node: e, depth: t, indexOrName: n, deleteHandle: r, customOptions: o, parent: s, parentPath: a }) {
3886
- const { collapsed: i, onCollapse: u, enableClipboard: l, ignoreLargeArray: f, collapseObjectsAfterLength: d, editable: h, onDelete: p, src: v, onAdd: g, onEdit: x, onChange: b, forceUpdate: S, displaySize: E, CustomOperation: w } = Ce(be), j = typeof n < "u" ? [...a, String(n)] : a;
3884
+ function Lc({ node: e, depth: t, indexOrName: n, deleteHandle: r, customOptions: o, parent: s, parentPath: a }) {
3885
+ const { collapsed: i, onCollapse: u, enableClipboard: l, ignoreLargeArray: f, collapseObjectsAfterLength: d, editable: p, onDelete: g, src: v, onAdd: h, onEdit: x, onChange: b, forceUpdate: S, displaySize: E, CustomOperation: w } = Ce(be), j = typeof n < "u" ? [...a, String(n)] : a;
3887
3886
  if (!f && Array.isArray(e) && e.length > 100)
3888
- return c.jsx(Lc, { node: e, depth: t, indexOrName: n, deleteHandle: r, customOptions: o, parentPath: j });
3889
- const A = xe(e), [C, T] = G(Yn(e, t, n, i, d, o)), k = (P) => {
3887
+ return c.jsx(Fc, { node: e, depth: t, indexOrName: n, deleteHandle: r, customOptions: o, parentPath: j });
3888
+ const A = xe(e), [C, T] = G(Gn(e, t, n, i, d, o)), k = (P) => {
3890
3889
  u?.({ isCollapsing: !P, node: e, depth: t, indexOrName: n }), T(P);
3891
3890
  };
3892
3891
  _e(() => {
3893
- k(Yn(e, t, n, i, d, o));
3892
+ k(Gn(e, t, n, i, d, o));
3894
3893
  }, [i, d]);
3895
3894
  const L = de((P, F, Z) => {
3896
3895
  Array.isArray(e) ? e[+P] = F : e && (e[P] = F), x && x({
@@ -3905,7 +3904,7 @@ function Ic({ node: e, depth: t, indexOrName: n, deleteHandle: r, customOptions:
3905
3904
  }, [e, x, b, S]), W = (P) => {
3906
3905
  Array.isArray(e) ? e.splice(+P, 1) : e && delete e[P], S();
3907
3906
  }, [H, I] = G(!1), M = () => {
3908
- I(!1), r && r(n, j), p && p({ value: e, depth: t, src: v, indexOrName: n, parentType: A ? "object" : "array", parentPath: j }), b && b({
3907
+ I(!1), r && r(n, j), g && g({ value: e, depth: t, src: v, indexOrName: n, parentType: A ? "object" : "array", parentPath: j }), b && b({
3909
3908
  type: "delete",
3910
3909
  depth: t,
3911
3910
  src: v,
@@ -3913,39 +3912,39 @@ function Ic({ node: e, depth: t, indexOrName: n, deleteHandle: r, customOptions:
3913
3912
  parentType: A ? "object" : "array",
3914
3913
  parentPath: j
3915
3914
  });
3916
- }, [_, D] = G(!1), R = Qt(null), O = () => {
3915
+ }, [_, D] = G(!1), O = mt(null), R = () => {
3917
3916
  var P;
3918
3917
  if (A) {
3919
- const F = (P = R.current) === null || P === void 0 ? void 0 : P.value;
3920
- F && (e[F] = null, R.current && (R.current.value = ""), D(!1), g && g({ indexOrName: F, depth: t, src: v, parentType: "object", parentPath: j }), b && b({ type: "add", indexOrName: F, depth: t, src: v, parentType: "object", parentPath: j }));
3918
+ const F = (P = O.current) === null || P === void 0 ? void 0 : P.value;
3919
+ F && (e[F] = null, O.current && (O.current.value = ""), D(!1), h && h({ indexOrName: F, depth: t, src: v, parentType: "object", parentPath: j }), b && b({ type: "add", indexOrName: F, depth: t, src: v, parentType: "object", parentPath: j }));
3921
3920
  } else if (Array.isArray(e)) {
3922
3921
  const F = e;
3923
- F.push(null), g && g({ indexOrName: F.length - 1, depth: t, src: v, parentType: "array", parentPath: j }), b && b({ type: "add", indexOrName: F.length - 1, depth: t, src: v, parentType: "array", parentPath: j });
3922
+ F.push(null), h && h({ indexOrName: F.length - 1, depth: t, src: v, parentType: "array", parentPath: j }), b && b({ type: "add", indexOrName: F.length - 1, depth: t, src: v, parentType: "array", parentPath: j });
3924
3923
  }
3925
3924
  S();
3926
3925
  }, B = (P) => {
3927
- P.key === "Enter" ? (P.preventDefault(), O()) : P.key === "Escape" && N();
3926
+ P.key === "Enter" ? (P.preventDefault(), R()) : P.key === "Escape" && N();
3928
3927
  }, y = H || _, N = () => {
3929
3928
  I(!1), D(!1);
3930
- }, $ = c.jsxs(c.Fragment, { children: [!C && !y && c.jsxs("span", Object.assign({ onClick: () => k(!0), className: "jv-size-chevron" }, { children: [Re(E, t, C) && c.jsxs("span", Object.assign({ className: "jv-size" }, { children: [Ve(e), " Items"] })), c.jsx(hn, { className: "jv-chevron" })] })), _ && A && c.jsx("input", { className: "json-view--input", placeholder: "property", ref: R, onKeyDown: B }), y && c.jsx(vn, { className: "json-view--edit", style: { display: "inline-block" }, onClick: _ ? O : M }), y && c.jsx(yn, { className: "json-view--edit", style: { display: "inline-block" }, onClick: N }), !C && !y && l && yt(o) && c.jsx(xt, { node: e, nodeMeta: { depth: t, indexOrName: n, parent: s, parentPath: a, currentPath: j } }), !C && !y && Co(h) && Eo(o) && c.jsx(So, { className: "json-view--edit", onClick: () => {
3929
+ }, $ = c.jsxs(c.Fragment, { children: [!C && !y && c.jsxs("span", Object.assign({ onClick: () => k(!0), className: "jv-size-chevron" }, { children: [Oe(E, t, C) && c.jsxs("span", Object.assign({ className: "jv-size" }, { children: [Ve(e), " Items"] })), c.jsx(gn, { className: "jv-chevron" })] })), _ && A && c.jsx("input", { className: "json-view--input", placeholder: "property", ref: O, onKeyDown: B }), y && c.jsx(yn, { className: "json-view--edit", style: { display: "inline-block" }, onClick: _ ? R : M }), y && c.jsx(xn, { className: "json-view--edit", style: { display: "inline-block" }, onClick: N }), !C && !y && l && xt(o) && c.jsx(bt, { node: e, nodeMeta: { depth: t, indexOrName: n, parent: s, parentPath: a, currentPath: j } }), !C && !y && Co(p) && Eo(o) && c.jsx(So, { className: "json-view--edit", onClick: () => {
3931
3930
  A ? (D(!0), setTimeout(() => {
3932
3931
  var P;
3933
- return (P = R.current) === null || P === void 0 ? void 0 : P.focus();
3934
- })) : O();
3935
- } }), !C && !y && mn(h) && pn(o) && r && c.jsx(gn, { className: "json-view--edit", onClick: () => I(!0) }), typeof w == "function" ? c.jsx(w, { node: e }) : null] });
3936
- return Array.isArray(e) ? c.jsxs(c.Fragment, { children: [c.jsx("span", { children: "[" }), $, C ? c.jsx("button", Object.assign({ onClick: () => k(!1), className: "jv-button" }, { children: "..." })) : c.jsx("div", Object.assign({ className: "jv-indent" }, { children: e.map((P, F) => c.jsx(Bt, { indexOrName: F, value: P, depth: t, parent: e, deleteHandle: W, editHandle: L, parentPath: j }, String(n) + String(F))) })), c.jsx("span", { children: "]" }), C && Re(E, t, C) && c.jsxs("span", Object.assign({ onClick: () => k(!1), className: "jv-size" }, { children: [Ve(e), " Items"] }))] }) : A ? c.jsxs(c.Fragment, { children: [c.jsx("span", { children: "{" }), $, C ? c.jsx("button", Object.assign({ onClick: () => k(!1), className: "jv-button" }, { children: "..." })) : c.jsx("div", Object.assign({ className: "jv-indent" }, { children: Object.entries(e).map(([P, F]) => c.jsx(Bt, { indexOrName: P, value: F, depth: t, parent: e, deleteHandle: W, editHandle: L, parentPath: j }, String(n) + String(P))) })), c.jsx("span", { children: "}" }), C && Re(E, t, C) && c.jsxs("span", Object.assign({ onClick: () => k(!1), className: "jv-size" }, { children: [Ve(e), " Items"] }))] }) : c.jsx("span", { children: String(e) });
3932
+ return (P = O.current) === null || P === void 0 ? void 0 : P.focus();
3933
+ })) : R();
3934
+ } }), !C && !y && pn(p) && hn(o) && r && c.jsx(vn, { className: "json-view--edit", onClick: () => I(!0) }), typeof w == "function" ? c.jsx(w, { node: e }) : null] });
3935
+ return Array.isArray(e) ? c.jsxs(c.Fragment, { children: [c.jsx("span", { children: "[" }), $, C ? c.jsx("button", Object.assign({ onClick: () => k(!1), className: "jv-button" }, { children: "..." })) : c.jsx("div", Object.assign({ className: "jv-indent" }, { children: e.map((P, F) => c.jsx(Vt, { indexOrName: F, value: P, depth: t, parent: e, deleteHandle: W, editHandle: L, parentPath: j }, String(n) + String(F))) })), c.jsx("span", { children: "]" }), C && Oe(E, t, C) && c.jsxs("span", Object.assign({ onClick: () => k(!1), className: "jv-size" }, { children: [Ve(e), " Items"] }))] }) : A ? c.jsxs(c.Fragment, { children: [c.jsx("span", { children: "{" }), $, C ? c.jsx("button", Object.assign({ onClick: () => k(!1), className: "jv-button" }, { children: "..." })) : c.jsx("div", Object.assign({ className: "jv-indent" }, { children: Object.entries(e).map(([P, F]) => c.jsx(Vt, { indexOrName: P, value: F, depth: t, parent: e, deleteHandle: W, editHandle: L, parentPath: j }, String(n) + String(P))) })), c.jsx("span", { children: "}" }), C && Oe(E, t, C) && c.jsxs("span", Object.assign({ onClick: () => k(!1), className: "jv-size" }, { children: [Ve(e), " Items"] }))] }) : c.jsx("span", { children: String(e) });
3937
3936
  }
3938
- const $c = Pe.forwardRef(({ str: e, className: t, ctrlClick: n }, r) => {
3937
+ const Ic = Pe.forwardRef(({ str: e, className: t, ctrlClick: n }, r) => {
3939
3938
  let { collapseStringMode: o, collapseStringsAfterLength: s, customizeCollapseStringUI: a } = Ce(be);
3940
- const [i, u] = G(!0), l = Qt(null);
3939
+ const [i, u] = G(!0), l = mt(null);
3941
3940
  s = s > 0 ? s : 0;
3942
- const f = e.replace(/\s+/g, " "), d = typeof a == "function" ? a(f, i) : typeof a == "string" ? a : "...", h = (p) => {
3941
+ const f = e.replace(/\s+/g, " "), d = typeof a == "function" ? a(f, i) : typeof a == "string" ? a : "...", p = (g) => {
3943
3942
  var v;
3944
- if ((p.ctrlKey || p.metaKey) && n)
3945
- n(p);
3943
+ if ((g.ctrlKey || g.metaKey) && n)
3944
+ n(g);
3946
3945
  else {
3947
- const g = window.getSelection();
3948
- if (g && g.anchorOffset !== g.focusOffset && ((v = g.anchorNode) === null || v === void 0 ? void 0 : v.parentElement) === l.current)
3946
+ const h = window.getSelection();
3947
+ if (h && h.anchorOffset !== h.focusOffset && ((v = h.anchorNode) === null || v === void 0 ? void 0 : v.parentElement) === l.current)
3949
3948
  return;
3950
3949
  u(!i);
3951
3950
  }
@@ -3953,93 +3952,93 @@ const $c = Pe.forwardRef(({ str: e, className: t, ctrlClick: n }, r) => {
3953
3952
  if (e.length <= s)
3954
3953
  return c.jsxs("span", Object.assign({ ref: l, className: t, onClick: n }, { children: ['"', e, '"'] }));
3955
3954
  if (o === "address")
3956
- return e.length <= 10 ? c.jsxs("span", Object.assign({ ref: l, className: t, onClick: n }, { children: ['"', e, '"'] })) : c.jsxs("span", Object.assign({ ref: l, onClick: h, className: t + " cursor-pointer" }, { children: ['"', i ? [f.slice(0, 6), d, f.slice(-4)] : e, '"'] }));
3955
+ return e.length <= 10 ? c.jsxs("span", Object.assign({ ref: l, className: t, onClick: n }, { children: ['"', e, '"'] })) : c.jsxs("span", Object.assign({ ref: l, onClick: p, className: t + " cursor-pointer" }, { children: ['"', i ? [f.slice(0, 6), d, f.slice(-4)] : e, '"'] }));
3957
3956
  if (o === "directly")
3958
- return c.jsxs("span", Object.assign({ ref: l, onClick: h, className: t + " cursor-pointer" }, { children: ['"', i ? [f.slice(0, s), d] : e, '"'] }));
3957
+ return c.jsxs("span", Object.assign({ ref: l, onClick: p, className: t + " cursor-pointer" }, { children: ['"', i ? [f.slice(0, s), d] : e, '"'] }));
3959
3958
  if (o === "word") {
3960
- let p = s, v = s + 1, g = f, x = 1;
3959
+ let g = s, v = s + 1, h = f, x = 1;
3961
3960
  for (; ; ) {
3962
- if (/\W/.test(e[p])) {
3963
- g = e.slice(0, p);
3961
+ if (/\W/.test(e[g])) {
3962
+ h = e.slice(0, g);
3964
3963
  break;
3965
3964
  }
3966
3965
  if (/\W/.test(e[v])) {
3967
- g = e.slice(0, v);
3966
+ h = e.slice(0, v);
3968
3967
  break;
3969
3968
  }
3970
3969
  if (x === 6) {
3971
- g = e.slice(0, s);
3970
+ h = e.slice(0, s);
3972
3971
  break;
3973
3972
  }
3974
- x++, p--, v++;
3973
+ x++, g--, v++;
3975
3974
  }
3976
- return c.jsxs("span", Object.assign({ ref: l, onClick: h, className: t + " cursor-pointer" }, { children: ['"', i ? [g, d] : e, '"'] }));
3975
+ return c.jsxs("span", Object.assign({ ref: l, onClick: p, className: t + " cursor-pointer" }, { children: ['"', i ? [h, d] : e, '"'] }));
3977
3976
  }
3978
3977
  return c.jsxs("span", Object.assign({ ref: l, className: t }, { children: ['"', e, '"'] }));
3979
3978
  });
3980
- var cr;
3981
- function Gt() {
3982
- return Gt = Object.assign ? Object.assign.bind() : function(e) {
3979
+ var lr;
3980
+ function Xt() {
3981
+ return Xt = Object.assign ? Object.assign.bind() : function(e) {
3983
3982
  for (var t = 1; t < arguments.length; t++) {
3984
3983
  var n = arguments[t];
3985
3984
  for (var r in n)
3986
3985
  Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
3987
3986
  }
3988
3987
  return e;
3989
- }, Gt.apply(this, arguments);
3988
+ }, Xt.apply(this, arguments);
3990
3989
  }
3991
- var Wc = function(t) {
3992
- return /* @__PURE__ */ m.createElement("svg", Gt({
3990
+ var $c = function(t) {
3991
+ return /* @__PURE__ */ m.createElement("svg", Xt({
3993
3992
  xmlns: "http://www.w3.org/2000/svg",
3994
3993
  width: 24,
3995
3994
  height: 24,
3996
3995
  fill: "none",
3997
3996
  viewBox: "0 0 24 24"
3998
- }, t), cr || (cr = /* @__PURE__ */ m.createElement("path", {
3997
+ }, t), lr || (lr = /* @__PURE__ */ m.createElement("path", {
3999
3998
  fill: "currentColor",
4000
3999
  d: "M17.25 3H6.75A3.754 3.754 0 0 0 3 6.75v10.5A3.754 3.754 0 0 0 6.75 21h10.5A3.754 3.754 0 0 0 21 17.25V6.75A3.754 3.754 0 0 0 17.25 3Zm2.25 14.25c0 1.24-1.01 2.25-2.25 2.25H6.75c-1.24 0-2.25-1.01-2.25-2.25V6.75c0-1.24 1.01-2.25 2.25-2.25h10.5c1.24 0 2.25 1.01 2.25 2.25v10.5Zm-6.09-9.466-5.031 5.03a2.981 2.981 0 0 0-.879 2.121v1.19c0 .415.336.75.75.75h1.19c.8 0 1.554-.312 2.12-.879l5.03-5.03a2.252 2.252 0 0 0 0-3.182c-.85-.85-2.331-.85-3.18 0Zm-2.91 7.151c-.28.28-.666.44-1.06.44H9v-.44c0-.4.156-.777.44-1.06l3.187-3.188 1.06 1.061-3.187 3.188Zm5.03-5.03-.782.783-1.06-1.061.782-.782a.766.766 0 0 1 1.06 0 .75.75 0 0 1 0 1.06Z"
4001
4000
  })));
4002
- }, lr, ur;
4003
- function Zt() {
4004
- return Zt = Object.assign ? Object.assign.bind() : function(e) {
4001
+ }, ur, fr;
4002
+ function qt() {
4003
+ return qt = Object.assign ? Object.assign.bind() : function(e) {
4005
4004
  for (var t = 1; t < arguments.length; t++) {
4006
4005
  var n = arguments[t];
4007
4006
  for (var r in n)
4008
4007
  Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
4009
4008
  }
4010
4009
  return e;
4011
- }, Zt.apply(this, arguments);
4010
+ }, qt.apply(this, arguments);
4012
4011
  }
4013
- var Hc = function(t) {
4014
- return /* @__PURE__ */ m.createElement("svg", Zt({
4012
+ var Wc = function(t) {
4013
+ return /* @__PURE__ */ m.createElement("svg", qt({
4015
4014
  xmlns: "http://www.w3.org/2000/svg",
4016
4015
  width: 24,
4017
4016
  height: 24,
4018
4017
  fill: "none",
4019
4018
  viewBox: "0 0 24 24"
4020
- }, t), lr || (lr = /* @__PURE__ */ m.createElement("path", {
4019
+ }, t), ur || (ur = /* @__PURE__ */ m.createElement("path", {
4021
4020
  fill: "currentColor",
4022
4021
  d: "M6.75 3h5.5v1.5h-5.5C5.51 4.5 4.5 5.51 4.5 6.75v10.5c0 1.24 1.01 2.25 2.25 2.25h10.5c1.24 0 2.25-1.01 2.25-2.25v-5.5H21v5.5A3.754 3.754 0 0 1 17.25 21H6.75A3.754 3.754 0 0 1 3 17.25V6.75A3.754 3.754 0 0 1 6.75 3Z"
4023
- })), ur || (ur = /* @__PURE__ */ m.createElement("path", {
4022
+ })), fr || (fr = /* @__PURE__ */ m.createElement("path", {
4024
4023
  fill: "currentColor",
4025
4024
  d: "M20.013 3h-3.946a.987.987 0 0 0 0 1.973h1.564l-6.342 6.342a1.004 1.004 0 0 0 0 1.396 1.004 1.004 0 0 0 1.396 0l6.342-6.342v1.564a.987.987 0 0 0 1.973 0V3.987A.987.987 0 0 0 20.013 3Z"
4026
4025
  })));
4027
4026
  };
4028
4027
  function Ao({ node: e, depth: t, deleteHandle: n, indexOrName: r, parent: o, editHandle: s, parentPath: a }) {
4029
- const { collapseStringsAfterLength: i, enableClipboard: u, editable: l, src: f, onDelete: d, onChange: h, customizeNode: p, matchesURL: v, urlRegExp: g, EditComponent: x, DoneComponent: b, CancelComponent: S, CustomOperation: E } = Ce(be);
4028
+ const { collapseStringsAfterLength: i, enableClipboard: u, editable: l, src: f, onDelete: d, onChange: p, customizeNode: g, matchesURL: v, urlRegExp: h, EditComponent: x, DoneComponent: b, CancelComponent: S, CustomOperation: E } = Ce(be);
4030
4029
  let w;
4031
- if (typeof p == "function" && (w = dn(p, [{ node: e, depth: t, indexOrName: r }])), w) {
4030
+ if (typeof g == "function" && (w = mn(g, [{ node: e, depth: t, indexOrName: r }])), w) {
4032
4031
  if (zo(w))
4033
4032
  return w;
4034
- if (Tc(w)) {
4033
+ if (Oc(w)) {
4035
4034
  const j = w;
4036
4035
  return c.jsx(j, { node: e, depth: t, indexOrName: r });
4037
4036
  }
4038
4037
  }
4039
4038
  if (Array.isArray(e) || xe(e))
4040
- return c.jsx(Ic, { parent: o, node: e, depth: t, indexOrName: r, deleteHandle: n, parentPath: a, customOptions: typeof w == "object" ? w : void 0 });
4039
+ return c.jsx(Lc, { parent: o, node: e, depth: t, indexOrName: r, deleteHandle: n, parentPath: a, customOptions: typeof w == "object" ? w : void 0 });
4041
4040
  {
4042
- const j = typeof e, A = typeof r < "u" ? [...a, String(r)] : a, [C, T] = G(!1), [k, L] = G(!1), W = Qt(null), H = () => {
4041
+ const j = typeof e, A = typeof r < "u" ? [...a, String(r)] : a, [C, T] = G(!1), [k, L] = G(!1), W = mt(null), H = () => {
4043
4042
  T(!0), setTimeout(() => {
4044
4043
  var P, F;
4045
4044
  (P = window.getSelection()) === null || P === void 0 || P.selectAllChildren(W.current), (F = W.current) === null || F === void 0 || F.focus();
@@ -4050,7 +4049,7 @@ function Ao({ node: e, depth: t, deleteHandle: n, indexOrName: r, parent: o, edi
4050
4049
  const F = JSON.parse(P);
4051
4050
  s && s(r, F, e, a);
4052
4051
  } catch {
4053
- const Z = Mc(j, P);
4052
+ const Z = kc(j, P);
4054
4053
  s && s(r, Z, e, a);
4055
4054
  }
4056
4055
  T(!1);
@@ -4064,7 +4063,7 @@ function Ao({ node: e, depth: t, deleteHandle: n, indexOrName: r, parent: o, edi
4064
4063
  indexOrName: r,
4065
4064
  parentType: Array.isArray(o) ? "array" : "object",
4066
4065
  parentPath: a
4067
- }), h && h({
4066
+ }), p && p({
4068
4067
  depth: t,
4069
4068
  src: f,
4070
4069
  indexOrName: r,
@@ -4074,9 +4073,9 @@ function Ao({ node: e, depth: t, deleteHandle: n, indexOrName: r, parent: o, edi
4074
4073
  });
4075
4074
  }, D = de((P) => {
4076
4075
  P.key === "Enter" ? (P.preventDefault(), I()) : P.key === "Escape" && M();
4077
- }, [I]), R = C || k, O = !R && Zn(l) && Xn(w) && s ? (P) => {
4076
+ }, [I]), O = C || k, R = !O && Xn(l) && qn(w) && s ? (P) => {
4078
4077
  (P.ctrlKey || P.metaKey) && H();
4079
- } : void 0, B = c.jsxs(c.Fragment, { children: [R && (typeof b == "function" ? c.jsx(b, { className: "json-view--edit", style: { display: "inline-block" }, onClick: k ? _ : I }) : c.jsx(vn, { className: "json-view--edit", style: { display: "inline-block" }, onClick: k ? _ : I })), R && (typeof S == "function" ? c.jsx(S, { className: "json-view--edit", style: { display: "inline-block" }, onClick: M }) : c.jsx(yn, { className: "json-view--edit", style: { display: "inline-block" }, onClick: M })), !R && u && yt(w) && c.jsx(xt, { node: e, nodeMeta: { depth: t, indexOrName: r, parent: o, parentPath: a, currentPath: A } }), !R && v && j === "string" && g.test(e) && kc(w) && c.jsx("a", Object.assign({ href: e, target: "_blank", className: "json-view--link" }, { children: c.jsx(Hc, {}) })), !R && Zn(l) && Xn(w) && s && (typeof x == "function" ? c.jsx(x, { className: "json-view--edit", onClick: H }) : c.jsx(Wc, { className: "json-view--edit", onClick: H })), !R && mn(l) && pn(w) && n && c.jsx(gn, { className: "json-view--edit", onClick: () => L(!0) }), typeof E == "function" ? c.jsx(E, { node: e }) : null] });
4078
+ } : void 0, B = c.jsxs(c.Fragment, { children: [O && (typeof b == "function" ? c.jsx(b, { className: "json-view--edit", style: { display: "inline-block" }, onClick: k ? _ : I }) : c.jsx(yn, { className: "json-view--edit", style: { display: "inline-block" }, onClick: k ? _ : I })), O && (typeof S == "function" ? c.jsx(S, { className: "json-view--edit", style: { display: "inline-block" }, onClick: M }) : c.jsx(xn, { className: "json-view--edit", style: { display: "inline-block" }, onClick: M })), !O && u && xt(w) && c.jsx(bt, { node: e, nodeMeta: { depth: t, indexOrName: r, parent: o, parentPath: a, currentPath: A } }), !O && v && j === "string" && h.test(e) && Tc(w) && c.jsx("a", Object.assign({ href: e, target: "_blank", className: "json-view--link" }, { children: c.jsx(Wc, {}) })), !O && Xn(l) && qn(w) && s && (typeof x == "function" ? c.jsx(x, { className: "json-view--edit", onClick: H }) : c.jsx($c, { className: "json-view--edit", onClick: H })), !O && pn(l) && hn(w) && n && c.jsx(vn, { className: "json-view--edit", onClick: () => L(!0) }), typeof E == "function" ? c.jsx(E, { node: e }) : null] });
4080
4079
  let y = "json-view--string";
4081
4080
  switch (j) {
4082
4081
  case "number":
@@ -4094,7 +4093,7 @@ function Ao({ node: e, depth: t, deleteHandle: n, indexOrName: r, parent: o, edi
4094
4093
  let N = String(e);
4095
4094
  j === "bigint" && (N += "n");
4096
4095
  const $ = z(() => c.jsx("span", { contentEditable: !0, className: y, dangerouslySetInnerHTML: { __html: j === "string" ? `"${N}"` : N }, ref: W, onKeyDown: D }), [N, j, D]);
4097
- return j === "string" ? c.jsxs(c.Fragment, { children: [C ? $ : e.length > i ? c.jsx($c, { str: e, ref: W, className: y, ctrlClick: O }) : c.jsxs("span", Object.assign({ className: y, onClick: O }, { children: ['"', N, '"'] })), B] }) : c.jsxs(c.Fragment, { children: [C ? $ : c.jsx("span", Object.assign({ className: y, onClick: O }, { children: N })), B] });
4096
+ return j === "string" ? c.jsxs(c.Fragment, { children: [C ? $ : e.length > i ? c.jsx(Ic, { str: e, ref: W, className: y, ctrlClick: R }) : c.jsxs("span", Object.assign({ className: y, onClick: R }, { children: ['"', N, '"'] })), B] }) : c.jsxs(c.Fragment, { children: [C ? $ : c.jsx("span", Object.assign({ className: y, onClick: R }, { children: N })), B] });
4098
4097
  }
4099
4098
  }
4100
4099
  const Po = /^(((ht|f)tps?):\/\/)?([^!@#$%^&*?.\s-]([^!@#$%^&*?.\s]{0,63}[^!@#$%^&*?.\s])?\.)+[a-z]{2,6}\/?/, be = Bo({
@@ -4128,10 +4127,10 @@ const Po = /^(((ht|f)tps?):\/\/)?([^!@#$%^&*?.\s-]([^!@#$%^&*?.\s]{0,63}[^!@#$%^
4128
4127
  DoneComponent: void 0,
4129
4128
  CustomOperation: void 0
4130
4129
  });
4131
- function fr({ src: e, collapseStringsAfterLength: t = 99, collapseStringMode: n = "directly", customizeCollapseStringUI: r, collapseObjectsAfterLength: o = 99, collapsed: s, onCollapse: a, enableClipboard: i = !0, editable: u = !1, onEdit: l, onDelete: f, onAdd: d, onChange: h, dark: p = !1, theme: v = "default", customizeNode: g, customizeCopy: x = (M) => Oc(M), displaySize: b, displayArrayIndex: S = !0, style: E, className: w, matchesURL: j = !1, urlRegExp: A = Po, ignoreLargeArray: C = !1, CopyComponent: T, CopiedComponent: k, EditComponent: L, CancelComponent: W, DoneComponent: H, CustomOperation: I }) {
4132
- const [M, _] = G(0), D = de(() => _((B) => ++B), []), [R, O] = G(e);
4133
- return _e(() => O(e), [e]), c.jsx(be.Provider, Object.assign({ value: {
4134
- src: R,
4130
+ function dr({ src: e, collapseStringsAfterLength: t = 99, collapseStringMode: n = "directly", customizeCollapseStringUI: r, collapseObjectsAfterLength: o = 99, collapsed: s, onCollapse: a, enableClipboard: i = !0, editable: u = !1, onEdit: l, onDelete: f, onAdd: d, onChange: p, dark: g = !1, theme: v = "default", customizeNode: h, customizeCopy: x = (M) => Nc(M), displaySize: b, displayArrayIndex: S = !0, style: E, className: w, matchesURL: j = !1, urlRegExp: A = Po, ignoreLargeArray: C = !1, CopyComponent: T, CopiedComponent: k, EditComponent: L, CancelComponent: W, DoneComponent: H, CustomOperation: I }) {
4131
+ const [M, _] = G(0), D = de(() => _((B) => ++B), []), [O, R] = G(e);
4132
+ return _e(() => R(e), [e]), c.jsx(be.Provider, Object.assign({ value: {
4133
+ src: O,
4135
4134
  collapseStringsAfterLength: t,
4136
4135
  collapseStringMode: n,
4137
4136
  customizeCollapseStringUI: r,
@@ -4143,9 +4142,9 @@ function fr({ src: e, collapseStringsAfterLength: t = 99, collapseStringMode: n
4143
4142
  onEdit: l,
4144
4143
  onDelete: f,
4145
4144
  onAdd: d,
4146
- onChange: h,
4145
+ onChange: p,
4147
4146
  forceUpdate: D,
4148
- customizeNode: g,
4147
+ customizeNode: h,
4149
4148
  customizeCopy: x,
4150
4149
  displaySize: b,
4151
4150
  displayArrayIndex: S,
@@ -4158,27 +4157,27 @@ function fr({ src: e, collapseStringsAfterLength: t = 99, collapseStringMode: n
4158
4157
  CancelComponent: W,
4159
4158
  DoneComponent: H,
4160
4159
  CustomOperation: I
4161
- } }, { children: c.jsx("code", Object.assign({ className: "json-view" + (p ? " dark" : "") + (v && v !== "default" ? " json-view_" + v : "") + (w ? " " + w : ""), style: E }, { children: c.jsx(Ao, { node: R, depth: 1, editHandle: (B, y, N, $) => {
4162
- O(y), l && l({
4160
+ } }, { children: c.jsx("code", Object.assign({ className: "json-view" + (g ? " dark" : "") + (v && v !== "default" ? " json-view_" + v : "") + (w ? " " + w : ""), style: E }, { children: c.jsx(Ao, { node: O, depth: 1, editHandle: (B, y, N, $) => {
4161
+ R(y), l && l({
4163
4162
  newValue: y,
4164
4163
  oldValue: N,
4165
4164
  depth: 1,
4166
- src: R,
4165
+ src: O,
4167
4166
  indexOrName: B,
4168
4167
  parentType: null,
4169
4168
  parentPath: $
4170
- }), h && h({ type: "edit", depth: 1, src: R, indexOrName: B, parentType: null, parentPath: $ });
4169
+ }), p && p({ type: "edit", depth: 1, src: O, indexOrName: B, parentType: null, parentPath: $ });
4171
4170
  }, deleteHandle: (B, y) => {
4172
- O(void 0), f && f({
4173
- value: R,
4171
+ R(void 0), f && f({
4172
+ value: O,
4174
4173
  depth: 1,
4175
- src: R,
4174
+ src: O,
4176
4175
  indexOrName: B,
4177
4176
  parentType: null,
4178
4177
  parentPath: y
4179
- }), h && h({
4178
+ }), p && p({
4180
4179
  depth: 1,
4181
- src: R,
4180
+ src: O,
4182
4181
  indexOrName: B,
4183
4182
  parentType: null,
4184
4183
  type: "delete",
@@ -4186,8 +4185,8 @@ function fr({ src: e, collapseStringsAfterLength: t = 99, collapseStringMode: n
4186
4185
  });
4187
4186
  }, parentPath: [] }) })) }));
4188
4187
  }
4189
- const Bc = (e) => typeof e == "object" && e !== null ? JSON.stringify(e, null, 1) : e === null ? "null" : e.toString(), Xt = V(({ arg: e, popover: t = !0 }) => {
4190
- const n = z(() => typeof e == "object" && e !== null, [e]), r = z(() => Bc(e), [e]), o = z(() => JSON.stringify(e, null, 2), [e]);
4188
+ const Hc = (e) => typeof e == "object" && e !== null ? JSON.stringify(e, null, 1) : e === null ? "null" : e.toString(), Jt = V(({ arg: e, popover: t = !0 }) => {
4189
+ const n = z(() => typeof e == "object" && e !== null, [e]), r = z(() => Hc(e), [e]), o = z(() => JSON.stringify(e, null, 2), [e]);
4191
4190
  return t ? /* @__PURE__ */ c.jsxs(bo, { children: [
4192
4191
  /* @__PURE__ */ c.jsx(wo, { asChild: !0, children: /* @__PURE__ */ c.jsx("span", { className: "truncate font-mono text-blue-500 cursor-pointer inline-block", children: r }) }),
4193
4192
  /* @__PURE__ */ c.jsx(
@@ -4196,18 +4195,18 @@ const Bc = (e) => typeof e == "object" && e !== null ? JSON.stringify(e, null, 1
4196
4195
  className: "backdrop-blur-md w-auto max-w-2xl relative max-h-[50vh] overflow-y-auto",
4197
4196
  hideWhenDetached: !0,
4198
4197
  children: n ? /* @__PURE__ */ c.jsxs("div", { children: [
4199
- /* @__PURE__ */ c.jsx(Mt, { textToCopy: o, className: "absolute top-4 right-4", title: "Copy JSON" }),
4200
- /* @__PURE__ */ c.jsx(fr, { src: e, theme: "default", enableClipboard: !1, style: { padding: 0 } })
4198
+ /* @__PURE__ */ c.jsx(Dt, { textToCopy: o, className: "absolute top-4 right-4", title: "Copy JSON" }),
4199
+ /* @__PURE__ */ c.jsx(dr, { src: e, theme: "default", enableClipboard: !1, style: { padding: 0 } })
4201
4200
  ] }) : /* @__PURE__ */ c.jsxs("div", { className: "flex items-center justify-between", children: [
4202
4201
  /* @__PURE__ */ c.jsx("span", { children: r }),
4203
- /* @__PURE__ */ c.jsx(Mt, { textToCopy: o, className: "ml-2", title: "Copy JSON" })
4202
+ /* @__PURE__ */ c.jsx(Dt, { textToCopy: o, className: "ml-2", title: "Copy JSON" })
4204
4203
  ] })
4205
4204
  }
4206
4205
  )
4207
- ] }) : /* @__PURE__ */ c.jsx(c.Fragment, { children: n ? /* @__PURE__ */ c.jsx(fr, { src: e, theme: "default", enableClipboard: !1, style: { padding: 0 } }) : /* @__PURE__ */ c.jsx("span", { className: "font-mono text-blue-500", children: r }) });
4206
+ ] }) : /* @__PURE__ */ c.jsx(c.Fragment, { children: n ? /* @__PURE__ */ c.jsx(dr, { src: e, theme: "default", enableClipboard: !1, style: { padding: 0 } }) : /* @__PURE__ */ c.jsx("span", { className: "font-mono text-blue-500", children: r }) });
4208
4207
  });
4209
- Xt.displayName = "Argument";
4210
- const qt = V(({ callsQuantity: e, noQuantity: t = !1 }) => {
4208
+ Jt.displayName = "Argument";
4209
+ const Kt = V(({ callsQuantity: e, noQuantity: t = !1 }) => {
4211
4210
  const n = e && e > 1;
4212
4211
  return /* @__PURE__ */ c.jsxs("div", { className: "flex items-center", children: [
4213
4212
  /* @__PURE__ */ c.jsx("span", { className: "font-mono text-emerald-500", children: ")" }),
@@ -4217,8 +4216,8 @@ const qt = V(({ callsQuantity: e, noQuantity: t = !1 }) => {
4217
4216
  ] })
4218
4217
  ] });
4219
4218
  });
4220
- qt.displayName = "ClosingParenthesis";
4221
- const Jt = Kt(
4219
+ Kt.displayName = "ClosingParenthesis";
4220
+ const Qt = en(
4222
4221
  ({ topLevelClassName: e, objectName: t, functionName: n, className: r, ...o }, s) => /* @__PURE__ */ c.jsxs("div", { ref: s, className: De("flex items-center", r), ...o, children: [
4223
4222
  e && /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
4224
4223
  /* @__PURE__ */ c.jsx("span", { className: "font-mono text-pink-500", children: e }),
@@ -4232,8 +4231,8 @@ const Jt = Kt(
4232
4231
  /* @__PURE__ */ c.jsx("span", { className: "font-mono text-emerald-500", children: "(" })
4233
4232
  ] })
4234
4233
  );
4235
- Jt.displayName = "FunctionCallContent";
4236
- const zc = { gridTemplateColumns: "max-content 1fr max-content" }, bt = V(
4234
+ Qt.displayName = "FunctionCallContent";
4235
+ const Bc = { gridTemplateColumns: "max-content 1fr max-content" }, wt = V(
4237
4236
  ({ topLevelClassName: e, objectName: t, functionName: n, args: r, callsQuantity: o }) => {
4238
4237
  const s = z(() => r.filter((u) => u !== void 0), [r]), a = z(
4239
4238
  () => ({ gridTemplateColumns: `repeat(${s.length * 2}, minmax(0, auto))` }),
@@ -4242,10 +4241,10 @@ const zc = { gridTemplateColumns: "max-content 1fr max-content" }, bt = V(
4242
4241
  const u = [e, t].filter(Boolean).join("."), l = u ? `${u}.` : "", f = s.map((d) => typeof d == "object" && d !== null ? JSON.stringify(d, null, 2) : d === null ? "null" : typeof d == "string" ? `'${d}'` : String(d)).join(", ");
4243
4242
  return `${l}${n}(${f})`;
4244
4243
  }, [e, t, n, s]);
4245
- return /* @__PURE__ */ c.jsxs("div", { className: "grid overflow-hidden items-center", style: zc, children: [
4244
+ return /* @__PURE__ */ c.jsxs("div", { className: "grid overflow-hidden items-center", style: Bc, children: [
4246
4245
  /* @__PURE__ */ c.jsxs(bo, { children: [
4247
4246
  /* @__PURE__ */ c.jsx(wo, { asChild: !0, children: /* @__PURE__ */ c.jsx(
4248
- Jt,
4247
+ Qt,
4249
4248
  {
4250
4249
  className: "cursor-pointer",
4251
4250
  functionName: n,
@@ -4261,56 +4260,56 @@ const zc = { gridTemplateColumns: "max-content 1fr max-content" }, bt = V(
4261
4260
  children: [
4262
4261
  /* @__PURE__ */ c.jsxs("div", { className: "flex items-center justify-between gap-2", children: [
4263
4262
  /* @__PURE__ */ c.jsx(
4264
- Jt,
4263
+ Qt,
4265
4264
  {
4266
4265
  functionName: n,
4267
4266
  topLevelClassName: e,
4268
4267
  objectName: t
4269
4268
  }
4270
4269
  ),
4271
- /* @__PURE__ */ c.jsx(Mt, { textToCopy: i })
4270
+ /* @__PURE__ */ c.jsx(Dt, { textToCopy: i })
4272
4271
  ] }),
4273
4272
  s.map((u, l) => /* @__PURE__ */ c.jsxs("div", { className: "grid grid-cols-[auto_1fr] items-center pl-4", children: [
4274
- /* @__PURE__ */ c.jsx(Xt, { arg: u, popover: !1 }),
4273
+ /* @__PURE__ */ c.jsx(Jt, { arg: u, popover: !1 }),
4275
4274
  l < s.length - 1 && /* @__PURE__ */ c.jsx("span", { children: ", " })
4276
4275
  ] }, l)),
4277
- /* @__PURE__ */ c.jsx(qt, { callsQuantity: o, noQuantity: !0 })
4276
+ /* @__PURE__ */ c.jsx(Kt, { callsQuantity: o, noQuantity: !0 })
4278
4277
  ]
4279
4278
  }
4280
4279
  )
4281
4280
  ] }),
4282
- /* @__PURE__ */ c.jsx("div", { className: "grid items-center min-w-0", style: a, children: s.map((u, l) => /* @__PURE__ */ c.jsxs(pr, { children: [
4283
- /* @__PURE__ */ c.jsx(Xt, { arg: u }),
4281
+ /* @__PURE__ */ c.jsx("div", { className: "grid items-center min-w-0", style: a, children: s.map((u, l) => /* @__PURE__ */ c.jsxs(hr, { children: [
4282
+ /* @__PURE__ */ c.jsx(Jt, { arg: u }),
4284
4283
  l < s.length - 1 && /* @__PURE__ */ c.jsx("span", { children: ", " })
4285
4284
  ] }, l)) }),
4286
- /* @__PURE__ */ c.jsx(qt, { callsQuantity: o })
4285
+ /* @__PURE__ */ c.jsx(Kt, { callsQuantity: o })
4287
4286
  ] });
4288
4287
  }
4289
4288
  );
4290
- bt.displayName = "FunctionCall";
4289
+ wt.displayName = "FunctionCall";
4291
4290
  const No = V(({ event: e }) => {
4292
4291
  const t = z(() => [{ topic: e.topic, data: e.data }], [e]);
4293
- return /* @__PURE__ */ c.jsx(bt, { functionName: "emit", args: t });
4292
+ return /* @__PURE__ */ c.jsx(wt, { functionName: "emit", args: t });
4294
4293
  });
4295
4294
  No.displayName = "TraceEmitEvent";
4296
- const Oo = V(({ event: e }) => /* @__PURE__ */ c.jsxs("div", { className: "flex items-center gap-2", children: [
4295
+ const Ro = V(({ event: e }) => /* @__PURE__ */ c.jsxs("div", { className: "flex items-center gap-2", children: [
4297
4296
  /* @__PURE__ */ c.jsx(Uo, { level: e.level }),
4298
4297
  " ",
4299
4298
  e.message
4300
4299
  ] }));
4301
- Oo.displayName = "TraceLogEvent";
4302
- const Ro = V(({ event: e }) => {
4300
+ Ro.displayName = "TraceLogEvent";
4301
+ const Oo = V(({ event: e }) => {
4303
4302
  const t = z(() => [e.data.traceId, e.data.key, e.data.value], [e]);
4304
- return /* @__PURE__ */ c.jsx(bt, { objectName: "state", functionName: e.operation, args: t });
4303
+ return /* @__PURE__ */ c.jsx(wt, { objectName: "state", functionName: e.operation, args: t });
4305
4304
  });
4306
- Ro.displayName = "TraceStateEvent";
4305
+ Oo.displayName = "TraceStateEvent";
4307
4306
  const To = V(({ event: e }) => {
4308
4307
  const t = z(
4309
4308
  () => [e.data.groupId, e.data.id, e.data.data],
4310
4309
  [e]
4311
4310
  );
4312
4311
  return /* @__PURE__ */ c.jsx(
4313
- bt,
4312
+ wt,
4314
4313
  {
4315
4314
  topLevelClassName: "streams",
4316
4315
  objectName: e.streamName,
@@ -4323,18 +4322,18 @@ const To = V(({ event: e }) => {
4323
4322
  To.displayName = "TraceStreamEvent";
4324
4323
  const ko = V(({ event: e }) => {
4325
4324
  if (e.type === "log")
4326
- return /* @__PURE__ */ c.jsx(Oo, { event: e });
4325
+ return /* @__PURE__ */ c.jsx(Ro, { event: e });
4327
4326
  if (e.type === "emit")
4328
4327
  return /* @__PURE__ */ c.jsx(No, { event: e });
4329
4328
  if (e.type === "state")
4330
- return /* @__PURE__ */ c.jsx(Ro, { event: e });
4329
+ return /* @__PURE__ */ c.jsx(Oo, { event: e });
4331
4330
  if (e.type === "stream")
4332
4331
  return /* @__PURE__ */ c.jsx(To, { event: e });
4333
4332
  });
4334
4333
  ko.displayName = "TraceEvent";
4335
- const Mo = V(({ event: e, traceStartTime: t }) => /* @__PURE__ */ c.jsxs(pr, { children: [
4334
+ const Mo = V(({ event: e, traceStartTime: t }) => /* @__PURE__ */ c.jsxs(hr, { children: [
4336
4335
  /* @__PURE__ */ c.jsx("div", { className: "grid place-items-center", children: /* @__PURE__ */ c.jsx("div", { className: "w-1 h-1 rounded-full bg-emerald-500 outline outline-2 outline-emerald-500/50 -ml-[26px]" }) }),
4337
- /* @__PURE__ */ c.jsx("div", { className: "grid place-items-center", children: /* @__PURE__ */ c.jsx(Ps, { event: e }) }),
4336
+ /* @__PURE__ */ c.jsx("div", { className: "grid place-items-center", children: /* @__PURE__ */ c.jsx(As, { event: e }) }),
4338
4337
  /* @__PURE__ */ c.jsx("div", { className: "grid place-items-center", children: /* @__PURE__ */ c.jsxs("span", { className: "text-sm font-mono text-muted-foreground", children: [
4339
4338
  "+",
4340
4339
  we(Math.floor(e.timestamp - t))
@@ -4360,7 +4359,7 @@ const _o = V(({ trace: e, onClose: t }) => {
4360
4359
  we(e.endTime - e.startTime)
4361
4360
  ] }),
4362
4361
  /* @__PURE__ */ c.jsx("div", { className: "bg-blue-500 font-bold text-xs px-[4px] py-[2px] rounded-sm text-blue-100", children: e.entryPoint.type }),
4363
- e.correlationId && /* @__PURE__ */ c.jsxs(hr, { variant: "outline", children: [
4362
+ e.correlationId && /* @__PURE__ */ c.jsxs(gr, { variant: "outline", children: [
4364
4363
  "Correlated: ",
4365
4364
  e.correlationId
4366
4365
  ] })
@@ -4382,50 +4381,47 @@ const Do = V(() => {
4382
4381
  });
4383
4382
  Do.displayName = "TraceTimeline";
4384
4383
  const Fo = V(({ groupId: e }) => {
4385
- const t = z(
4386
- () => ({ streamName: "motia-trace-group", groupId: "default", id: e }),
4387
- [e]
4388
- ), { data: n } = Go(t), r = z(() => ({ streamName: "motia-trace", groupId: e }), [e]), { data: o } = gr(r), s = vs(n), [a, i] = G(100), u = K((p) => p.selectedTraceId), l = K((p) => p.selectTraceId), f = z(() => o?.find((p) => p.id === u), [o, u]), d = () => a > 100 && i((p) => p - 10), h = () => a < 200 && i((p) => p + 10);
4389
- return n ? /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
4390
- /* @__PURE__ */ c.jsx("div", { className: "flex flex-col flex-1 relative min-h-full min-w-[1000px]", children: /* @__PURE__ */ c.jsxs("div", { className: "flex flex-col", style: { width: `${a}%` }, children: [
4391
- /* @__PURE__ */ c.jsxs("div", { className: "flex flex-1 bg-background", style: { width: `${a}%` }, children: [
4384
+ const t = z(() => ({ streamName: "motia-trace-group", groupId: "default" }), []), { data: n } = _t(t), r = z(() => n.find((v) => v.id === e), [n, e]), o = z(() => ({ streamName: "motia-trace", groupId: e }), [e]), { data: s } = _t(o), a = gs(r), [i, u] = G(100), l = K((v) => v.selectedTraceId), f = K((v) => v.selectTraceId), d = z(() => s?.find((v) => v.id === l), [s, l]), p = () => i > 100 && u((v) => v - 10), g = () => i < 200 && u((v) => v + 10);
4385
+ return r ? /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
4386
+ /* @__PURE__ */ c.jsx("div", { className: "flex flex-col flex-1 relative min-h-full min-w-[1000px]", children: /* @__PURE__ */ c.jsxs("div", { className: "flex flex-col", style: { width: `${i}%` }, children: [
4387
+ /* @__PURE__ */ c.jsxs("div", { className: "flex flex-1 bg-background", style: { width: `${i}%` }, children: [
4392
4388
  /* @__PURE__ */ c.jsxs("div", { className: "shrink-0 w-[200px] h-[37px] flex items-center justify-center gap-2 sticky left-0 top-0 z-10 bg-card backdrop-blur-xs backdrop-filter", children: [
4393
- /* @__PURE__ */ c.jsx(ct, { variant: "icon", size: "sm", className: "px-2", onClick: d, disabled: a <= 100, children: /* @__PURE__ */ c.jsx(ps, { className: "w-4 h-4 cursor-pointer" }) }),
4389
+ /* @__PURE__ */ c.jsx(ct, { variant: "icon", size: "sm", className: "px-2", onClick: p, disabled: i <= 100, children: /* @__PURE__ */ c.jsx(ms, { className: "w-4 h-4 cursor-pointer" }) }),
4394
4390
  /* @__PURE__ */ c.jsxs("span", { className: "min-w-12 text-center select-none text-sm font-bold text-muted-foreground", children: [
4395
- a,
4391
+ i,
4396
4392
  "%"
4397
4393
  ] }),
4398
- /* @__PURE__ */ c.jsx(ct, { variant: "icon", size: "sm", className: "px-2", onClick: h, disabled: a >= 200, children: /* @__PURE__ */ c.jsx(gs, { className: "w-4 h-4 cursor-pointer" }) })
4394
+ /* @__PURE__ */ c.jsx(ct, { variant: "icon", size: "sm", className: "px-2", onClick: g, disabled: i >= 200, children: /* @__PURE__ */ c.jsx(hs, { className: "w-4 h-4 cursor-pointer" }) })
4399
4395
  ] }),
4400
4396
  /* @__PURE__ */ c.jsxs("div", { className: "flex justify-between font-mono p-2 w-full text-xs text-muted-foreground bg-card", children: [
4401
4397
  /* @__PURE__ */ c.jsx("span", { children: "0ms" }),
4402
- /* @__PURE__ */ c.jsx("span", { children: we(Math.floor((s - n.startTime) * 0.25)) }),
4403
- /* @__PURE__ */ c.jsx("span", { children: we(Math.floor((s - n.startTime) * 0.5)) }),
4404
- /* @__PURE__ */ c.jsx("span", { children: we(Math.floor((s - n.startTime) * 0.75)) }),
4405
- /* @__PURE__ */ c.jsx("span", { children: we(Math.floor(s - n.startTime)) })
4398
+ /* @__PURE__ */ c.jsx("span", { children: we(Math.floor((a - r.startTime) * 0.25)) }),
4399
+ /* @__PURE__ */ c.jsx("span", { children: we(Math.floor((a - r.startTime) * 0.5)) }),
4400
+ /* @__PURE__ */ c.jsx("span", { children: we(Math.floor((a - r.startTime) * 0.75)) }),
4401
+ /* @__PURE__ */ c.jsx("span", { children: we(Math.floor(a - r.startTime)) })
4406
4402
  ] })
4407
4403
  ] }),
4408
- /* @__PURE__ */ c.jsx("div", { className: "flex flex-col h-full", style: { width: `${a}%` }, children: o?.map((p) => /* @__PURE__ */ c.jsx(
4404
+ /* @__PURE__ */ c.jsx("div", { className: "flex flex-col h-full", style: { width: `${i}%` }, children: s?.map((v) => /* @__PURE__ */ c.jsx(
4409
4405
  jr,
4410
4406
  {
4411
- traceId: p.id,
4412
- traceName: p.name,
4413
- traceStatus: p.status,
4414
- traceStartTime: p.startTime,
4415
- traceEndTime: p.endTime,
4416
- groupStartTime: n.startTime,
4417
- groupEndTime: s,
4418
- onExpand: l
4407
+ traceId: v.id,
4408
+ traceName: v.name,
4409
+ traceStatus: v.status,
4410
+ traceStartTime: v.startTime,
4411
+ traceEndTime: v.endTime,
4412
+ groupStartTime: r.startTime,
4413
+ groupEndTime: a,
4414
+ onExpand: f
4419
4415
  },
4420
- p.id
4416
+ v.id
4421
4417
  )) })
4422
4418
  ] }) }),
4423
- f && /* @__PURE__ */ c.jsx(_o, { trace: f, onClose: () => l(void 0) })
4419
+ d && /* @__PURE__ */ c.jsx(_o, { trace: d, onClose: () => f(void 0) })
4424
4420
  ] }) : null;
4425
4421
  });
4426
4422
  Fo.displayName = "TraceTimelineComponent";
4427
- const Vc = () => {
4428
- const e = z(() => ({ streamName: "motia-trace-group", groupId: "default" }), []), { data: t } = gr(e), n = K((r) => r.search);
4423
+ const zc = () => {
4424
+ const e = z(() => ({ streamName: "motia-trace-group", groupId: "default" }), []), { data: t } = _t(e), n = K((r) => r.search);
4429
4425
  return z(
4430
4426
  () => t?.filter(
4431
4427
  (r) => r.name.toLowerCase().includes(n.toLowerCase()) || r.id.toLowerCase().includes(n.toLowerCase())
@@ -4437,15 +4433,15 @@ function Y(e) {
4437
4433
  const t = Object.prototype.toString.call(e);
4438
4434
  return e instanceof Date || typeof e == "object" && t === "[object Date]" ? new e.constructor(+e) : typeof e == "number" || t === "[object Number]" || typeof e == "string" || t === "[object String]" ? new Date(e) : /* @__PURE__ */ new Date(NaN);
4439
4435
  }
4440
- function Uc(e, t) {
4436
+ function Vc(e, t) {
4441
4437
  return e instanceof Date ? new e.constructor(t) : new Date(t);
4442
4438
  }
4443
- const rt = 43200, dr = 1440;
4444
- let Yc = {};
4445
- function Gc() {
4446
- return Yc;
4439
+ const rt = 43200, mr = 1440;
4440
+ let Uc = {};
4441
+ function Yc() {
4442
+ return Uc;
4447
4443
  }
4448
- function mr(e) {
4444
+ function pr(e) {
4449
4445
  const t = Y(e), n = new Date(
4450
4446
  Date.UTC(
4451
4447
  t.getFullYear(),
@@ -4463,37 +4459,37 @@ function it(e, t) {
4463
4459
  const n = Y(e), r = Y(t), o = n.getTime() - r.getTime();
4464
4460
  return o < 0 ? -1 : o > 0 ? 1 : o;
4465
4461
  }
4466
- function Zc(e) {
4467
- return Uc(e, Date.now());
4462
+ function Gc(e) {
4463
+ return Vc(e, Date.now());
4468
4464
  }
4469
- function Xc(e, t) {
4465
+ function Zc(e, t) {
4470
4466
  const n = Y(e), r = Y(t), o = n.getFullYear() - r.getFullYear(), s = n.getMonth() - r.getMonth();
4471
4467
  return o * 12 + s;
4472
4468
  }
4473
- function qc(e) {
4469
+ function Xc(e) {
4474
4470
  return (t) => {
4475
4471
  const n = Math.trunc, r = n(t);
4476
4472
  return r === 0 ? 0 : r;
4477
4473
  };
4478
4474
  }
4479
- function Jc(e, t) {
4475
+ function qc(e, t) {
4480
4476
  return +Y(e) - +Y(t);
4481
4477
  }
4482
- function Kc(e) {
4478
+ function Jc(e) {
4483
4479
  const t = Y(e);
4484
4480
  return t.setHours(23, 59, 59, 999), t;
4485
4481
  }
4486
- function Qc(e) {
4482
+ function Kc(e) {
4487
4483
  const t = Y(e), n = t.getMonth();
4488
4484
  return t.setFullYear(t.getFullYear(), n + 1, 0), t.setHours(23, 59, 59, 999), t;
4489
4485
  }
4490
- function el(e) {
4486
+ function Qc(e) {
4491
4487
  const t = Y(e);
4492
- return +Kc(t) == +Qc(t);
4488
+ return +Jc(t) == +Kc(t);
4493
4489
  }
4494
- function tl(e, t) {
4490
+ function el(e, t) {
4495
4491
  const n = Y(e), r = Y(t), o = it(n, r), s = Math.abs(
4496
- Xc(n, r)
4492
+ Zc(n, r)
4497
4493
  );
4498
4494
  let a;
4499
4495
  if (s < 1)
@@ -4501,15 +4497,15 @@ function tl(e, t) {
4501
4497
  else {
4502
4498
  n.getMonth() === 1 && n.getDate() > 27 && n.setDate(30), n.setMonth(n.getMonth() - o * s);
4503
4499
  let i = it(n, r) === -o;
4504
- el(Y(e)) && s === 1 && it(e, r) === 1 && (i = !1), a = o * (s - Number(i));
4500
+ Qc(Y(e)) && s === 1 && it(e, r) === 1 && (i = !1), a = o * (s - Number(i));
4505
4501
  }
4506
4502
  return a === 0 ? 0 : a;
4507
4503
  }
4508
- function nl(e, t, n) {
4509
- const r = Jc(e, t) / 1e3;
4510
- return qc()(r);
4504
+ function tl(e, t, n) {
4505
+ const r = qc(e, t) / 1e3;
4506
+ return Xc()(r);
4511
4507
  }
4512
- const rl = {
4508
+ const nl = {
4513
4509
  lessThanXSeconds: {
4514
4510
  one: "less than a second",
4515
4511
  other: "less than {{count}} seconds"
@@ -4571,53 +4567,53 @@ const rl = {
4571
4567
  one: "almost 1 year",
4572
4568
  other: "almost {{count}} years"
4573
4569
  }
4574
- }, ol = (e, t, n) => {
4570
+ }, rl = (e, t, n) => {
4575
4571
  let r;
4576
- const o = rl[e];
4572
+ const o = nl[e];
4577
4573
  return typeof o == "string" ? r = o : t === 1 ? r = o.one : r = o.other.replace("{{count}}", t.toString()), n?.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
4578
4574
  };
4579
- function Tt(e) {
4575
+ function kt(e) {
4580
4576
  return (t = {}) => {
4581
4577
  const n = t.width ? String(t.width) : e.defaultWidth;
4582
4578
  return e.formats[n] || e.formats[e.defaultWidth];
4583
4579
  };
4584
4580
  }
4585
- const sl = {
4581
+ const ol = {
4586
4582
  full: "EEEE, MMMM do, y",
4587
4583
  long: "MMMM do, y",
4588
4584
  medium: "MMM d, y",
4589
4585
  short: "MM/dd/yyyy"
4590
- }, al = {
4586
+ }, sl = {
4591
4587
  full: "h:mm:ss a zzzz",
4592
4588
  long: "h:mm:ss a z",
4593
4589
  medium: "h:mm:ss a",
4594
4590
  short: "h:mm a"
4595
- }, il = {
4591
+ }, al = {
4596
4592
  full: "{{date}} 'at' {{time}}",
4597
4593
  long: "{{date}} 'at' {{time}}",
4598
4594
  medium: "{{date}}, {{time}}",
4599
4595
  short: "{{date}}, {{time}}"
4600
- }, cl = {
4601
- date: Tt({
4602
- formats: sl,
4596
+ }, il = {
4597
+ date: kt({
4598
+ formats: ol,
4603
4599
  defaultWidth: "full"
4604
4600
  }),
4605
- time: Tt({
4606
- formats: al,
4601
+ time: kt({
4602
+ formats: sl,
4607
4603
  defaultWidth: "full"
4608
4604
  }),
4609
- dateTime: Tt({
4610
- formats: il,
4605
+ dateTime: kt({
4606
+ formats: al,
4611
4607
  defaultWidth: "full"
4612
4608
  })
4613
- }, ll = {
4609
+ }, cl = {
4614
4610
  lastWeek: "'last' eeee 'at' p",
4615
4611
  yesterday: "'yesterday at' p",
4616
4612
  today: "'today at' p",
4617
4613
  tomorrow: "'tomorrow at' p",
4618
4614
  nextWeek: "eeee 'at' p",
4619
4615
  other: "P"
4620
- }, ul = (e, t, n, r) => ll[e];
4616
+ }, ll = (e, t, n, r) => cl[e];
4621
4617
  function Be(e) {
4622
4618
  return (t, n) => {
4623
4619
  const r = n?.context ? String(n.context) : "standalone";
@@ -4633,15 +4629,15 @@ function Be(e) {
4633
4629
  return o[s];
4634
4630
  };
4635
4631
  }
4636
- const fl = {
4632
+ const ul = {
4637
4633
  narrow: ["B", "A"],
4638
4634
  abbreviated: ["BC", "AD"],
4639
4635
  wide: ["Before Christ", "Anno Domini"]
4640
- }, dl = {
4636
+ }, fl = {
4641
4637
  narrow: ["1", "2", "3", "4"],
4642
4638
  abbreviated: ["Q1", "Q2", "Q3", "Q4"],
4643
4639
  wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
4644
- }, ml = {
4640
+ }, dl = {
4645
4641
  narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
4646
4642
  abbreviated: [
4647
4643
  "Jan",
@@ -4671,7 +4667,7 @@ const fl = {
4671
4667
  "November",
4672
4668
  "December"
4673
4669
  ]
4674
- }, pl = {
4670
+ }, ml = {
4675
4671
  narrow: ["S", "M", "T", "W", "T", "F", "S"],
4676
4672
  short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
4677
4673
  abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
@@ -4684,7 +4680,7 @@ const fl = {
4684
4680
  "Friday",
4685
4681
  "Saturday"
4686
4682
  ]
4687
- }, hl = {
4683
+ }, pl = {
4688
4684
  narrow: {
4689
4685
  am: "a",
4690
4686
  pm: "p",
@@ -4715,7 +4711,7 @@ const fl = {
4715
4711
  evening: "evening",
4716
4712
  night: "night"
4717
4713
  }
4718
- }, gl = {
4714
+ }, hl = {
4719
4715
  narrow: {
4720
4716
  am: "a",
4721
4717
  pm: "p",
@@ -4746,7 +4742,7 @@ const fl = {
4746
4742
  evening: "in the evening",
4747
4743
  night: "at night"
4748
4744
  }
4749
- }, vl = (e, t) => {
4745
+ }, gl = (e, t) => {
4750
4746
  const n = Number(e), r = n % 100;
4751
4747
  if (r > 20 || r < 10)
4752
4748
  switch (r % 10) {
@@ -4758,29 +4754,29 @@ const fl = {
4758
4754
  return n + "rd";
4759
4755
  }
4760
4756
  return n + "th";
4761
- }, yl = {
4762
- ordinalNumber: vl,
4757
+ }, vl = {
4758
+ ordinalNumber: gl,
4763
4759
  era: Be({
4764
- values: fl,
4760
+ values: ul,
4765
4761
  defaultWidth: "wide"
4766
4762
  }),
4767
4763
  quarter: Be({
4768
- values: dl,
4764
+ values: fl,
4769
4765
  defaultWidth: "wide",
4770
4766
  argumentCallback: (e) => e - 1
4771
4767
  }),
4772
4768
  month: Be({
4773
- values: ml,
4769
+ values: dl,
4774
4770
  defaultWidth: "wide"
4775
4771
  }),
4776
4772
  day: Be({
4777
- values: pl,
4773
+ values: ml,
4778
4774
  defaultWidth: "wide"
4779
4775
  }),
4780
4776
  dayPeriod: Be({
4781
- values: hl,
4777
+ values: pl,
4782
4778
  defaultWidth: "wide",
4783
- formattingValues: gl,
4779
+ formattingValues: hl,
4784
4780
  defaultFormattingWidth: "wide"
4785
4781
  })
4786
4782
  };
@@ -4789,9 +4785,9 @@ function ze(e) {
4789
4785
  const r = n.width, o = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], s = t.match(o);
4790
4786
  if (!s)
4791
4787
  return null;
4792
- const a = s[0], i = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], u = Array.isArray(i) ? bl(i, (d) => d.test(a)) : (
4788
+ const a = s[0], i = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], u = Array.isArray(i) ? xl(i, (d) => d.test(a)) : (
4793
4789
  // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
4794
- xl(i, (d) => d.test(a))
4790
+ yl(i, (d) => d.test(a))
4795
4791
  );
4796
4792
  let l;
4797
4793
  l = e.valueCallback ? e.valueCallback(u) : u, l = n.valueCallback ? (
@@ -4802,17 +4798,17 @@ function ze(e) {
4802
4798
  return { value: l, rest: f };
4803
4799
  };
4804
4800
  }
4805
- function xl(e, t) {
4801
+ function yl(e, t) {
4806
4802
  for (const n in e)
4807
4803
  if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n]))
4808
4804
  return n;
4809
4805
  }
4810
- function bl(e, t) {
4806
+ function xl(e, t) {
4811
4807
  for (let n = 0; n < e.length; n++)
4812
4808
  if (t(e[n]))
4813
4809
  return n;
4814
4810
  }
4815
- function wl(e) {
4811
+ function bl(e) {
4816
4812
  return (t, n = {}) => {
4817
4813
  const r = t.match(e.matchPattern);
4818
4814
  if (!r) return null;
@@ -4824,23 +4820,23 @@ function wl(e) {
4824
4820
  return { value: a, rest: i };
4825
4821
  };
4826
4822
  }
4827
- const jl = /^(\d+)(th|st|nd|rd)?/i, Cl = /\d+/i, El = {
4823
+ const wl = /^(\d+)(th|st|nd|rd)?/i, jl = /\d+/i, Cl = {
4828
4824
  narrow: /^(b|a)/i,
4829
4825
  abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
4830
4826
  wide: /^(before christ|before common era|anno domini|common era)/i
4831
- }, Sl = {
4827
+ }, El = {
4832
4828
  any: [/^b/i, /^(a|c)/i]
4833
- }, Al = {
4829
+ }, Sl = {
4834
4830
  narrow: /^[1234]/i,
4835
4831
  abbreviated: /^q[1234]/i,
4836
4832
  wide: /^[1234](th|st|nd|rd)? quarter/i
4837
- }, Pl = {
4833
+ }, Al = {
4838
4834
  any: [/1/i, /2/i, /3/i, /4/i]
4839
- }, Nl = {
4835
+ }, Pl = {
4840
4836
  narrow: /^[jfmasond]/i,
4841
4837
  abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
4842
4838
  wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
4843
- }, Ol = {
4839
+ }, Nl = {
4844
4840
  narrow: [
4845
4841
  /^j/i,
4846
4842
  /^f/i,
@@ -4874,13 +4870,13 @@ const jl = /^(\d+)(th|st|nd|rd)?/i, Cl = /\d+/i, El = {
4874
4870
  short: /^(su|mo|tu|we|th|fr|sa)/i,
4875
4871
  abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
4876
4872
  wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
4877
- }, Tl = {
4873
+ }, Ol = {
4878
4874
  narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
4879
4875
  any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
4880
- }, kl = {
4876
+ }, Tl = {
4881
4877
  narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
4882
4878
  any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
4883
- }, Ml = {
4879
+ }, kl = {
4884
4880
  any: {
4885
4881
  am: /^a/i,
4886
4882
  pm: /^p/i,
@@ -4891,57 +4887,57 @@ const jl = /^(\d+)(th|st|nd|rd)?/i, Cl = /\d+/i, El = {
4891
4887
  evening: /evening/i,
4892
4888
  night: /night/i
4893
4889
  }
4894
- }, _l = {
4895
- ordinalNumber: wl({
4896
- matchPattern: jl,
4897
- parsePattern: Cl,
4890
+ }, Ml = {
4891
+ ordinalNumber: bl({
4892
+ matchPattern: wl,
4893
+ parsePattern: jl,
4898
4894
  valueCallback: (e) => parseInt(e, 10)
4899
4895
  }),
4900
4896
  era: ze({
4901
- matchPatterns: El,
4897
+ matchPatterns: Cl,
4902
4898
  defaultMatchWidth: "wide",
4903
- parsePatterns: Sl,
4899
+ parsePatterns: El,
4904
4900
  defaultParseWidth: "any"
4905
4901
  }),
4906
4902
  quarter: ze({
4907
- matchPatterns: Al,
4903
+ matchPatterns: Sl,
4908
4904
  defaultMatchWidth: "wide",
4909
- parsePatterns: Pl,
4905
+ parsePatterns: Al,
4910
4906
  defaultParseWidth: "any",
4911
4907
  valueCallback: (e) => e + 1
4912
4908
  }),
4913
4909
  month: ze({
4914
- matchPatterns: Nl,
4910
+ matchPatterns: Pl,
4915
4911
  defaultMatchWidth: "wide",
4916
- parsePatterns: Ol,
4912
+ parsePatterns: Nl,
4917
4913
  defaultParseWidth: "any"
4918
4914
  }),
4919
4915
  day: ze({
4920
4916
  matchPatterns: Rl,
4921
4917
  defaultMatchWidth: "wide",
4922
- parsePatterns: Tl,
4918
+ parsePatterns: Ol,
4923
4919
  defaultParseWidth: "any"
4924
4920
  }),
4925
4921
  dayPeriod: ze({
4926
- matchPatterns: kl,
4922
+ matchPatterns: Tl,
4927
4923
  defaultMatchWidth: "any",
4928
- parsePatterns: Ml,
4924
+ parsePatterns: kl,
4929
4925
  defaultParseWidth: "any"
4930
4926
  })
4931
- }, Dl = {
4927
+ }, _l = {
4932
4928
  code: "en-US",
4933
- formatDistance: ol,
4934
- formatLong: cl,
4935
- formatRelative: ul,
4936
- localize: yl,
4937
- match: _l,
4929
+ formatDistance: rl,
4930
+ formatLong: il,
4931
+ formatRelative: ll,
4932
+ localize: vl,
4933
+ match: Ml,
4938
4934
  options: {
4939
4935
  weekStartsOn: 0,
4940
4936
  firstWeekContainsDate: 1
4941
4937
  }
4942
4938
  };
4943
- function Fl(e, t, n) {
4944
- const r = Gc(), o = n?.locale ?? r.locale ?? Dl, s = 2520, a = it(e, t);
4939
+ function Dl(e, t, n) {
4940
+ const r = Yc(), o = n?.locale ?? r.locale ?? _l, s = 2520, a = it(e, t);
4945
4941
  if (isNaN(a))
4946
4942
  throw new RangeError("Invalid time value");
4947
4943
  const i = Object.assign({}, n, {
@@ -4950,43 +4946,43 @@ function Fl(e, t, n) {
4950
4946
  });
4951
4947
  let u, l;
4952
4948
  a > 0 ? (u = Y(t), l = Y(e)) : (u = Y(e), l = Y(t));
4953
- const f = nl(l, u), d = (mr(l) - mr(u)) / 1e3, h = Math.round((f - d) / 60);
4954
- let p;
4955
- if (h < 2)
4956
- return h === 0 ? o.formatDistance("lessThanXMinutes", 1, i) : o.formatDistance("xMinutes", h, i);
4957
- if (h < 45)
4958
- return o.formatDistance("xMinutes", h, i);
4959
- if (h < 90)
4949
+ const f = tl(l, u), d = (pr(l) - pr(u)) / 1e3, p = Math.round((f - d) / 60);
4950
+ let g;
4951
+ if (p < 2)
4952
+ return p === 0 ? o.formatDistance("lessThanXMinutes", 1, i) : o.formatDistance("xMinutes", p, i);
4953
+ if (p < 45)
4954
+ return o.formatDistance("xMinutes", p, i);
4955
+ if (p < 90)
4960
4956
  return o.formatDistance("aboutXHours", 1, i);
4961
- if (h < dr) {
4962
- const v = Math.round(h / 60);
4957
+ if (p < mr) {
4958
+ const v = Math.round(p / 60);
4963
4959
  return o.formatDistance("aboutXHours", v, i);
4964
4960
  } else {
4965
- if (h < s)
4961
+ if (p < s)
4966
4962
  return o.formatDistance("xDays", 1, i);
4967
- if (h < rt) {
4968
- const v = Math.round(h / dr);
4963
+ if (p < rt) {
4964
+ const v = Math.round(p / mr);
4969
4965
  return o.formatDistance("xDays", v, i);
4970
- } else if (h < rt * 2)
4971
- return p = Math.round(h / rt), o.formatDistance("aboutXMonths", p, i);
4966
+ } else if (p < rt * 2)
4967
+ return g = Math.round(p / rt), o.formatDistance("aboutXMonths", g, i);
4972
4968
  }
4973
- if (p = tl(l, u), p < 12) {
4974
- const v = Math.round(h / rt);
4969
+ if (g = el(l, u), g < 12) {
4970
+ const v = Math.round(p / rt);
4975
4971
  return o.formatDistance("xMonths", v, i);
4976
4972
  } else {
4977
- const v = p % 12, g = Math.trunc(p / 12);
4978
- return v < 3 ? o.formatDistance("aboutXYears", g, i) : v < 9 ? o.formatDistance("overXYears", g, i) : o.formatDistance("almostXYears", g + 1, i);
4973
+ const v = g % 12, h = Math.trunc(g / 12);
4974
+ return v < 3 ? o.formatDistance("aboutXYears", h, i) : v < 9 ? o.formatDistance("overXYears", h, i) : o.formatDistance("almostXYears", h + 1, i);
4979
4975
  }
4980
4976
  }
4981
- function Ll(e, t) {
4982
- return Fl(e, Zc(e), t);
4977
+ function Fl(e, t) {
4978
+ return Dl(e, Gc(e), t);
4983
4979
  }
4984
- const Il = {
4980
+ const Ll = {
4985
4981
  running: "info",
4986
4982
  completed: "success",
4987
4983
  failed: "error",
4988
4984
  default: "default"
4989
- }, Lo = V(({ status: e, duration: t }) => /* @__PURE__ */ c.jsx(hr, { variant: Il[e], children: t && e !== "failed" ? t : e }));
4985
+ }, Lo = V(({ status: e, duration: t }) => /* @__PURE__ */ c.jsx(gr, { variant: Ll[e], children: t && e !== "failed" ? t : e }));
4990
4986
  Lo.displayName = "TraceStatusBadge";
4991
4987
  const Io = V(
4992
4988
  ({ groupId: e, groupName: t, groupStatus: n, groupStartTime: r, groupEndTime: o, totalSteps: s, activeSteps: a, isSelected: i }) => {
@@ -5020,7 +5016,7 @@ const Io = V(
5020
5016
  ] })
5021
5017
  ] }),
5022
5018
  /* @__PURE__ */ c.jsxs("div", { className: "flex justify-between", children: [
5023
- Ll(r),
5019
+ Fl(r),
5024
5020
  " ago"
5025
5021
  ] }),
5026
5022
  a > 0 && /* @__PURE__ */ c.jsxs("div", { className: "text-blue-600", children: [
@@ -5036,7 +5032,7 @@ const Io = V(
5036
5032
  );
5037
5033
  Io.displayName = "TraceGroupItem";
5038
5034
  const $o = V(() => {
5039
- const e = Vc(), t = K((a) => a.selectedTraceGroupId), n = K((a) => a.selectTraceGroupId), r = z(() => e?.length || 0, [e]), o = z(() => {
5035
+ const e = zc(), t = K((a) => a.selectedTraceGroupId), n = K((a) => a.selectTraceGroupId), r = z(() => e?.length || 0, [e]), o = z(() => {
5040
5036
  if (!e || e.length === 0) return "";
5041
5037
  const a = e[e.length - 1];
5042
5038
  return a?.status === "running" ? a.id : "";
@@ -5061,7 +5057,7 @@ const $o = V(() => {
5061
5057
  )) });
5062
5058
  });
5063
5059
  $o.displayName = "TracesGroups";
5064
- const $l = V(() => /* @__PURE__ */ c.jsxs("div", { className: "grid grid-rows-[auto_1fr] h-full", children: [
5060
+ const Il = V(() => /* @__PURE__ */ c.jsxs("div", { className: "grid grid-rows-[auto_1fr] h-full", children: [
5065
5061
  /* @__PURE__ */ c.jsx(br, {}),
5066
5062
  /* @__PURE__ */ c.jsxs("div", { className: "grid grid-cols-[300px_1fr] overflow-hidden", children: [
5067
5063
  /* @__PURE__ */ c.jsx("div", { className: "w-[300px] border-r border-border overflow-auto h-full", "data-testid": "traces-container", children: /* @__PURE__ */ c.jsx($o, {}) }),
@@ -5071,23 +5067,23 @@ const $l = V(() => /* @__PURE__ */ c.jsxs("div", { className: "grid grid-rows-[a
5071
5067
  ] })
5072
5068
  ] })
5073
5069
  ] }));
5074
- $l.displayName = "ObservabilityPage";
5070
+ Il.displayName = "ObservabilityPage";
5075
5071
  /**
5076
5072
  * @license lucide-react v0.545.0 - ISC
5077
5073
  *
5078
5074
  * This source code is licensed under the ISC license.
5079
5075
  * See the LICENSE file in the root directory of this source tree.
5080
5076
  */
5081
- const Wl = [
5077
+ const $l = [
5082
5078
  ["path", { d: "M6 5h12", key: "fvfigv" }],
5083
5079
  ["path", { d: "M4 12h10", key: "oujl3d" }],
5084
5080
  ["path", { d: "M12 19h8", key: "baeox8" }]
5085
- ], Hl = J("chart-no-axes-gantt", Wl), Bl = V(() => /* @__PURE__ */ c.jsxs("div", { "data-testid": "observability-link", children: [
5086
- /* @__PURE__ */ c.jsx(Hl, { "aria-hidden": "true" }),
5081
+ ], Wl = J("chart-no-axes-gantt", $l), Hl = V(() => /* @__PURE__ */ c.jsxs("div", { "data-testid": "observability-link", children: [
5082
+ /* @__PURE__ */ c.jsx(Wl, { "aria-hidden": "true" }),
5087
5083
  /* @__PURE__ */ c.jsx("span", { children: "Tracing" })
5088
5084
  ] }));
5089
- Bl.displayName = "ObservabilityTabLabel";
5085
+ Hl.displayName = "ObservabilityTabLabel";
5090
5086
  export {
5091
- $l as ObservabilityPage,
5092
- Bl as ObservabilityTabLabel
5087
+ Il as ObservabilityPage,
5088
+ Hl as ObservabilityTabLabel
5093
5089
  };