@alxxsck/ai-assistant 2.10.0 → 2.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
- import { jsxs as N, jsx as x, Fragment as o0 } from "react/jsx-runtime";
2
- import * as q from "react";
3
- import ue, { useRef as S, useCallback as P, useEffect as H, useState as V, useMemo as Se, useLayoutEffect as xu, useContext as xe, createContext as He, forwardRef as Ft, Fragment as Nu, isValidElement as i0, cloneElement as a0, createElement as Iu, useId as At, memo as Sn } from "react";
4
- import { P as oe, u as le, a as ku, b as ju, c as Dt, d as c0, e as Ue, C as se, N as Ru, f as au, V as s0, M as Oe, g as Tt, h as l0, i as d0, j as f0, k as h0, l as p0, m as b0, n as m0, o as g0, p as x0, q as k0, r as C0, t as v0, s as St, v as y0, w as Ye, x as _0, y as w0, z as E0, A as F0, B as A0, D as D0, E as T0, F as S0, R as $0, G as nu, H as Wt } from "./index-9a_TIQZV.js";
5
- const M0 = (e) => /* @__PURE__ */ q.createElement("svg", { width: 15, height: 22, viewBox: "0 0 15 22", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ q.createElement("path", { d: "M3 10.5V4.5C3 3.30653 3.47411 2.16193 4.31802 1.31802C5.16193 0.474106 6.30653 0 7.5 0C8.69347 0 9.83807 0.474106 10.682 1.31802C11.5259 2.16193 12 3.30653 12 4.5V10.5C12 11.6935 11.5259 12.8381 10.682 13.682C9.83807 14.5259 8.69347 15 7.5 15C6.30653 15 5.16193 14.5259 4.31802 13.682C3.47411 12.8381 3 11.6935 3 10.5ZM15 10.5C15 10.3011 14.921 10.1103 14.7803 9.96967C14.6397 9.82902 14.4489 9.75 14.25 9.75C14.0511 9.75 13.8603 9.82902 13.7197 9.96967C13.579 10.1103 13.5 10.3011 13.5 10.5C13.5 12.0913 12.8679 13.6174 11.7426 14.7426C10.6174 15.8679 9.0913 16.5 7.5 16.5C5.9087 16.5 4.38258 15.8679 3.25736 14.7426C2.13214 13.6174 1.5 12.0913 1.5 10.5C1.5 10.3011 1.42098 10.1103 1.28033 9.96967C1.13968 9.82902 0.948912 9.75 0.75 9.75C0.551088 9.75 0.360322 9.82902 0.21967 9.96967C0.0790178 10.1103 0 10.3011 0 10.5C0.00228386 12.3586 0.693677 14.1504 1.94048 15.5288C3.18728 16.9072 4.90091 17.7743 6.75 17.9625V21C6.75 21.1989 6.82902 21.3897 6.96967 21.5303C7.11032 21.671 7.30109 21.75 7.5 21.75C7.69891 21.75 7.88968 21.671 8.03033 21.5303C8.17098 21.3897 8.25 21.1989 8.25 21V17.9625C10.0991 17.7743 11.8127 16.9072 13.0595 15.5288C14.3063 14.1504 14.9977 12.3586 15 10.5Z", fill: "white" })), L0 = (e) => /* @__PURE__ */ q.createElement("svg", { width: 17, height: 22, viewBox: "0 0 17 22", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ q.createElement("path", { d: "M16.2483 20.05C16.1011 20.1838 15.9068 20.2536 15.7082 20.2441C15.5095 20.2346 15.3227 20.1466 15.189 19.9994L12.2902 16.8119C11.2986 17.4511 10.1683 17.8436 8.99395 17.9566V20.995C8.99395 21.1939 8.91494 21.3847 8.77428 21.5253C8.63363 21.666 8.44287 21.745 8.24395 21.745C8.04504 21.745 7.85428 21.666 7.71362 21.5253C7.57297 21.3847 7.49395 21.1939 7.49395 20.995V17.9575C5.64487 17.7694 3.93123 16.9022 2.68443 15.5238C1.43763 14.1454 0.746237 12.3536 0.743953 10.495C0.743953 10.2961 0.822971 10.1053 0.963623 9.96468C1.10428 9.82403 1.29504 9.74501 1.49395 9.74501C1.69287 9.74501 1.88363 9.82403 2.02428 9.96468C2.16494 10.1053 2.24395 10.2961 2.24395 10.495C2.24569 12.0858 2.87839 13.6109 4.00323 14.7357C5.12807 15.8606 6.65319 16.4933 8.24395 16.495C9.3051 16.4981 10.3477 16.2172 11.2636 15.6813L10.223 14.5375C9.53688 14.8735 8.77649 15.0293 8.01351 14.9902C7.25052 14.951 6.51006 14.7183 5.86189 14.3139C5.21372 13.9095 4.67918 13.3467 4.30864 12.6786C3.93811 12.0105 3.74377 11.259 3.74395 10.495V7.4097L0.188953 3.49939C0.0579834 3.35175 -0.00951799 3.15845 0.00108397 2.96138C0.0116859 2.76431 0.0995364 2.57936 0.245589 2.44663C0.391643 2.3139 0.584126 2.24408 0.781309 2.25232C0.978492 2.26056 1.16448 2.34619 1.29895 2.49064L16.299 18.9906C16.4327 19.1378 16.5025 19.3321 16.493 19.5308C16.4835 19.7295 16.3955 19.9162 16.2483 20.05ZM13.9805 14.1316C14.0828 14.1823 14.1954 14.2086 14.3096 14.2085C14.4501 14.2085 14.5878 14.169 14.7069 14.0946C14.8261 14.0202 14.922 13.9138 14.9836 13.7875C15.4869 12.7631 15.7471 11.6364 15.744 10.495C15.744 10.2961 15.6649 10.1053 15.5243 9.96468C15.3836 9.82403 15.1929 9.74501 14.994 9.74501C14.795 9.74501 14.6043 9.82403 14.4636 9.96468C14.323 10.1053 14.244 10.2961 14.244 10.495C14.2466 11.4079 14.0387 12.309 13.6365 13.1285C13.5491 13.3071 13.5363 13.5131 13.6008 13.7013C13.6653 13.8894 13.8019 14.0442 13.9805 14.1316ZM11.4183 11.3922C11.5158 11.4995 11.6422 11.5762 11.7824 11.6131C11.9225 11.65 12.0703 11.6456 12.208 11.6002C12.3456 11.5549 12.4672 11.4707 12.558 11.3577C12.6488 11.2448 12.7049 11.1079 12.7196 10.9638C12.7356 10.808 12.7437 10.6516 12.744 10.495V4.49501C12.7428 3.46146 12.3859 2.45981 11.7333 1.6584C11.0806 0.85698 10.172 0.304654 9.16007 0.0942441C8.14816 -0.116166 7.09467 0.0281652 6.17664 0.502981C5.25861 0.977798 4.53201 1.75415 4.11895 2.70158C4.06128 2.834 4.04308 2.98027 4.06652 3.1228C4.08997 3.26532 4.15408 3.39804 4.25114 3.50501L11.4183 11.3922Z" })), N0 = (e) => /* @__PURE__ */ q.createElement("svg", { width: 19, height: 17, viewBox: "0 0 19 17", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ q.createElement("path", { d: "M12.5227 3.81607C11.8966 2.45748 10.8252 1.35355 9.48597 0.687157C8.14671 0.0207681 6.61998 -0.168078 5.15872 0.151907C3.69745 0.471891 2.38936 1.2815 1.45116 2.4466C0.512966 3.6117 0.000969112 5.06237 0 6.55826V11.5583C0 11.9727 0.16462 12.3701 0.457646 12.6631C0.750671 12.9561 1.1481 13.1208 1.5625 13.1208H5.63281C6.16643 14.2418 7.00649 15.1889 8.05583 15.8525C9.10517 16.5161 10.3209 16.8692 11.5625 16.8708H16.5625C16.9769 16.8708 17.3743 16.7061 17.6674 16.4131C17.9604 16.1201 18.125 15.7227 18.125 15.3083V10.3083C18.1251 8.73409 17.5593 7.21234 16.5309 6.02056C15.5024 4.82878 14.0799 4.04638 12.5227 3.81607ZM1.875 6.55826C1.875 5.63116 2.14992 4.72488 2.66499 3.95402C3.18006 3.18317 3.91214 2.58236 4.76867 2.22757C5.6252 1.87278 6.5677 1.77996 7.47699 1.96082C8.38627 2.14169 9.2215 2.58813 9.87706 3.24369C10.5326 3.89925 10.9791 4.73448 11.1599 5.64377C11.3408 6.55306 11.248 7.49556 10.8932 8.35209C10.5384 9.20861 9.93759 9.9407 9.16674 10.4558C8.39588 10.9708 7.4896 11.2458 6.5625 11.2458H1.875V6.55826ZM16.25 14.9958H11.5625C10.8125 14.9949 10.0737 14.8145 9.40771 14.4697C8.74173 14.1249 8.16796 13.6256 7.73438 13.0137C9.36318 12.7195 10.8205 11.8202 11.8138 10.4962C12.8071 9.17219 13.2629 7.52154 13.0898 5.87544C14.0125 6.19342 14.8129 6.79144 15.3794 7.58608C15.9459 8.38072 16.2502 9.33236 16.25 10.3083V14.9958Z" }));
1
+ import { jsxs as L, jsx as x, Fragment as o0 } from "react/jsx-runtime";
2
+ import * as O from "react";
3
+ import te, { useRef as S, useCallback as R, useEffect as H, useState as V, useMemo as Se, useLayoutEffect as ku, useContext as xe, createContext as Ve, forwardRef as Ft, Fragment as Nu, isValidElement as i0, cloneElement as a0, createElement as Iu, useId as At, memo as Sn } from "react";
4
+ import { P as ae, u as fe, a as Cu, b as ju, c as Dt, d as c0, e as Ge, C as de, N as Ru, f as cu, V as s0, M as qe, g as Tt, h as l0, i as d0, j as f0, k as h0, l as p0, m as b0, n as m0, o as g0, p as x0, q as k0, r as C0, t as v0, s as St, v as y0, w as Je, x as _0, y as w0, z as E0, A as F0, B as A0, D as D0, E as T0, F as S0, R as $0, G as ru, H as Wt } from "./index-QN5JqsSX.js";
5
+ const M0 = (e) => /* @__PURE__ */ O.createElement("svg", { width: 15, height: 22, viewBox: "0 0 15 22", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ O.createElement("path", { d: "M3 10.5V4.5C3 3.30653 3.47411 2.16193 4.31802 1.31802C5.16193 0.474106 6.30653 0 7.5 0C8.69347 0 9.83807 0.474106 10.682 1.31802C11.5259 2.16193 12 3.30653 12 4.5V10.5C12 11.6935 11.5259 12.8381 10.682 13.682C9.83807 14.5259 8.69347 15 7.5 15C6.30653 15 5.16193 14.5259 4.31802 13.682C3.47411 12.8381 3 11.6935 3 10.5ZM15 10.5C15 10.3011 14.921 10.1103 14.7803 9.96967C14.6397 9.82902 14.4489 9.75 14.25 9.75C14.0511 9.75 13.8603 9.82902 13.7197 9.96967C13.579 10.1103 13.5 10.3011 13.5 10.5C13.5 12.0913 12.8679 13.6174 11.7426 14.7426C10.6174 15.8679 9.0913 16.5 7.5 16.5C5.9087 16.5 4.38258 15.8679 3.25736 14.7426C2.13214 13.6174 1.5 12.0913 1.5 10.5C1.5 10.3011 1.42098 10.1103 1.28033 9.96967C1.13968 9.82902 0.948912 9.75 0.75 9.75C0.551088 9.75 0.360322 9.82902 0.21967 9.96967C0.0790178 10.1103 0 10.3011 0 10.5C0.00228386 12.3586 0.693677 14.1504 1.94048 15.5288C3.18728 16.9072 4.90091 17.7743 6.75 17.9625V21C6.75 21.1989 6.82902 21.3897 6.96967 21.5303C7.11032 21.671 7.30109 21.75 7.5 21.75C7.69891 21.75 7.88968 21.671 8.03033 21.5303C8.17098 21.3897 8.25 21.1989 8.25 21V17.9625C10.0991 17.7743 11.8127 16.9072 13.0595 15.5288C14.3063 14.1504 14.9977 12.3586 15 10.5Z", fill: "white" })), L0 = (e) => /* @__PURE__ */ O.createElement("svg", { width: 17, height: 22, viewBox: "0 0 17 22", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ O.createElement("path", { d: "M16.2483 20.05C16.1011 20.1838 15.9068 20.2536 15.7082 20.2441C15.5095 20.2346 15.3227 20.1466 15.189 19.9994L12.2902 16.8119C11.2986 17.4511 10.1683 17.8436 8.99395 17.9566V20.995C8.99395 21.1939 8.91494 21.3847 8.77428 21.5253C8.63363 21.666 8.44287 21.745 8.24395 21.745C8.04504 21.745 7.85428 21.666 7.71362 21.5253C7.57297 21.3847 7.49395 21.1939 7.49395 20.995V17.9575C5.64487 17.7694 3.93123 16.9022 2.68443 15.5238C1.43763 14.1454 0.746237 12.3536 0.743953 10.495C0.743953 10.2961 0.822971 10.1053 0.963623 9.96468C1.10428 9.82403 1.29504 9.74501 1.49395 9.74501C1.69287 9.74501 1.88363 9.82403 2.02428 9.96468C2.16494 10.1053 2.24395 10.2961 2.24395 10.495C2.24569 12.0858 2.87839 13.6109 4.00323 14.7357C5.12807 15.8606 6.65319 16.4933 8.24395 16.495C9.3051 16.4981 10.3477 16.2172 11.2636 15.6813L10.223 14.5375C9.53688 14.8735 8.77649 15.0293 8.01351 14.9902C7.25052 14.951 6.51006 14.7183 5.86189 14.3139C5.21372 13.9095 4.67918 13.3467 4.30864 12.6786C3.93811 12.0105 3.74377 11.259 3.74395 10.495V7.4097L0.188953 3.49939C0.0579834 3.35175 -0.00951799 3.15845 0.00108397 2.96138C0.0116859 2.76431 0.0995364 2.57936 0.245589 2.44663C0.391643 2.3139 0.584126 2.24408 0.781309 2.25232C0.978492 2.26056 1.16448 2.34619 1.29895 2.49064L16.299 18.9906C16.4327 19.1378 16.5025 19.3321 16.493 19.5308C16.4835 19.7295 16.3955 19.9162 16.2483 20.05ZM13.9805 14.1316C14.0828 14.1823 14.1954 14.2086 14.3096 14.2085C14.4501 14.2085 14.5878 14.169 14.7069 14.0946C14.8261 14.0202 14.922 13.9138 14.9836 13.7875C15.4869 12.7631 15.7471 11.6364 15.744 10.495C15.744 10.2961 15.6649 10.1053 15.5243 9.96468C15.3836 9.82403 15.1929 9.74501 14.994 9.74501C14.795 9.74501 14.6043 9.82403 14.4636 9.96468C14.323 10.1053 14.244 10.2961 14.244 10.495C14.2466 11.4079 14.0387 12.309 13.6365 13.1285C13.5491 13.3071 13.5363 13.5131 13.6008 13.7013C13.6653 13.8894 13.8019 14.0442 13.9805 14.1316ZM11.4183 11.3922C11.5158 11.4995 11.6422 11.5762 11.7824 11.6131C11.9225 11.65 12.0703 11.6456 12.208 11.6002C12.3456 11.5549 12.4672 11.4707 12.558 11.3577C12.6488 11.2448 12.7049 11.1079 12.7196 10.9638C12.7356 10.808 12.7437 10.6516 12.744 10.495V4.49501C12.7428 3.46146 12.3859 2.45981 11.7333 1.6584C11.0806 0.85698 10.172 0.304654 9.16007 0.0942441C8.14816 -0.116166 7.09467 0.0281652 6.17664 0.502981C5.25861 0.977798 4.53201 1.75415 4.11895 2.70158C4.06128 2.834 4.04308 2.98027 4.06652 3.1228C4.08997 3.26532 4.15408 3.39804 4.25114 3.50501L11.4183 11.3922Z" })), N0 = (e) => /* @__PURE__ */ O.createElement("svg", { width: 19, height: 17, viewBox: "0 0 19 17", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ O.createElement("path", { d: "M12.5227 3.81607C11.8966 2.45748 10.8252 1.35355 9.48597 0.687157C8.14671 0.0207681 6.61998 -0.168078 5.15872 0.151907C3.69745 0.471891 2.38936 1.2815 1.45116 2.4466C0.512966 3.6117 0.000969112 5.06237 0 6.55826V11.5583C0 11.9727 0.16462 12.3701 0.457646 12.6631C0.750671 12.9561 1.1481 13.1208 1.5625 13.1208H5.63281C6.16643 14.2418 7.00649 15.1889 8.05583 15.8525C9.10517 16.5161 10.3209 16.8692 11.5625 16.8708H16.5625C16.9769 16.8708 17.3743 16.7061 17.6674 16.4131C17.9604 16.1201 18.125 15.7227 18.125 15.3083V10.3083C18.1251 8.73409 17.5593 7.21234 16.5309 6.02056C15.5024 4.82878 14.0799 4.04638 12.5227 3.81607ZM1.875 6.55826C1.875 5.63116 2.14992 4.72488 2.66499 3.95402C3.18006 3.18317 3.91214 2.58236 4.76867 2.22757C5.6252 1.87278 6.5677 1.77996 7.47699 1.96082C8.38627 2.14169 9.2215 2.58813 9.87706 3.24369C10.5326 3.89925 10.9791 4.73448 11.1599 5.64377C11.3408 6.55306 11.248 7.49556 10.8932 8.35209C10.5384 9.20861 9.93759 9.9407 9.16674 10.4558C8.39588 10.9708 7.4896 11.2458 6.5625 11.2458H1.875V6.55826ZM16.25 14.9958H11.5625C10.8125 14.9949 10.0737 14.8145 9.40771 14.4697C8.74173 14.1249 8.16796 13.6256 7.73438 13.0137C9.36318 12.7195 10.8205 11.8202 11.8138 10.4962C12.8071 9.17219 13.2629 7.52154 13.0898 5.87544C14.0125 6.19342 14.8129 6.79144 15.3794 7.58608C15.9459 8.38072 16.2502 9.33236 16.25 10.3083V14.9958Z" }));
6
6
  function $n(e) {
7
7
  var u, t, n = "";
8
8
  if (typeof e == "string" || typeof e == "number") n += e;
@@ -255,9 +255,9 @@ const R0 = (e, u) => {
255
255
  continue;
256
256
  i.push(v);
257
257
  const _ = r(C, b);
258
- for (let E = 0; E < _.length; ++E) {
259
- const w = _[E];
260
- i.push(k + w);
258
+ for (let w = 0; w < _.length; ++w) {
259
+ const E = _[w];
260
+ i.push(k + E);
261
261
  }
262
262
  c = l + (c.length > 0 ? " " + c : c);
263
263
  }
@@ -287,22 +287,22 @@ const R0 = (e, u) => {
287
287
  return r(c, l), l;
288
288
  };
289
289
  return o = i, (...c) => o(uo(...c));
290
- }, no = [], Z = (e) => {
290
+ }, no = [], K = (e) => {
291
291
  const u = (t) => t[e] || no;
292
292
  return u.isThemeGetter = !0, u;
293
- }, Rn = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, zn = /^\((?:(\w[\w-]*):)?(.+)\)$/i, ro = /^\d+\/\d+$/, oo = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, io = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, ao = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, co = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, so = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ge = (e) => ro.test(e), L = (e) => !!e && !Number.isNaN(Number(e)), Ee = (e) => !!e && Number.isInteger(Number(e)), rt = (e) => e.endsWith("%") && L(e.slice(0, -1)), ve = (e) => oo.test(e), lo = () => !0, fo = (e) => (
293
+ }, Rn = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, zn = /^\((?:(\w[\w-]*):)?(.+)\)$/i, ro = /^\d+\/\d+$/, oo = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, io = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, ao = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, co = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, so = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ze = (e) => ro.test(e), M = (e) => !!e && !Number.isNaN(Number(e)), Ee = (e) => !!e && Number.isInteger(Number(e)), rt = (e) => e.endsWith("%") && M(e.slice(0, -1)), ve = (e) => oo.test(e), lo = () => !0, fo = (e) => (
294
294
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
295
295
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
296
296
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
297
297
  io.test(e) && !ao.test(e)
298
- ), Pn = () => !1, ho = (e) => co.test(e), po = (e) => so.test(e), bo = (e) => !F(e) && !A(e), mo = (e) => Xe(e, qn, Pn), F = (e) => Rn.test(e), Ie = (e) => Xe(e, jn, fo), ot = (e) => Xe(e, vo, L), Qt = (e) => Xe(e, Bn, Pn), go = (e) => Xe(e, On, po), Fu = (e) => Xe(e, Hn, ho), A = (e) => zn.test(e), ru = (e) => eu(e, jn), xo = (e) => eu(e, yo), Xt = (e) => eu(e, Bn), ko = (e) => eu(e, qn), Co = (e) => eu(e, On), Au = (e) => eu(e, Hn, !0), Xe = (e, u, t) => {
298
+ ), Pn = () => !1, ho = (e) => co.test(e), po = (e) => so.test(e), bo = (e) => !F(e) && !A(e), mo = (e) => eu(e, qn, Pn), F = (e) => Rn.test(e), Re = (e) => eu(e, jn, fo), ot = (e) => eu(e, vo, M), Qt = (e) => eu(e, Bn, Pn), go = (e) => eu(e, On, po), Fu = (e) => eu(e, Hn, ho), A = (e) => zn.test(e), ou = (e) => uu(e, jn), xo = (e) => uu(e, yo), Xt = (e) => uu(e, Bn), ko = (e) => uu(e, qn), Co = (e) => uu(e, On), Au = (e) => uu(e, Hn, !0), eu = (e, u, t) => {
299
299
  const n = Rn.exec(e);
300
300
  return n ? n[1] ? u(n[1]) : t(n[2]) : !1;
301
- }, eu = (e, u, t = !1) => {
301
+ }, uu = (e, u, t = !1) => {
302
302
  const n = zn.exec(e);
303
303
  return n ? n[1] ? u(n[1]) : t : !1;
304
304
  }, Bn = (e) => e === "position" || e === "percentage", On = (e) => e === "image" || e === "url", qn = (e) => e === "length" || e === "size" || e === "bg-size", jn = (e) => e === "length", vo = (e) => e === "number", yo = (e) => e === "family-name", Hn = (e) => e === "shadow", _o = () => {
305
- const e = Z("color"), u = Z("font"), t = Z("text"), n = Z("font-weight"), r = Z("tracking"), o = Z("leading"), i = Z("breakpoint"), a = Z("container"), c = Z("spacing"), s = Z("radius"), l = Z("shadow"), d = Z("inset-shadow"), p = Z("text-shadow"), h = Z("drop-shadow"), f = Z("blur"), m = Z("perspective"), b = Z("aspect"), C = Z("ease"), g = Z("animate"), k = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], v = () => [
305
+ const e = K("color"), u = K("font"), t = K("text"), n = K("font-weight"), r = K("tracking"), o = K("leading"), i = K("breakpoint"), a = K("container"), c = K("spacing"), s = K("radius"), l = K("shadow"), d = K("inset-shadow"), p = K("text-shadow"), h = K("drop-shadow"), f = K("blur"), m = K("perspective"), b = K("aspect"), C = K("ease"), g = K("animate"), k = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], v = () => [
306
306
  "center",
307
307
  "top",
308
308
  "bottom",
@@ -320,15 +320,15 @@ const R0 = (e, u) => {
320
320
  "bottom-left",
321
321
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
322
322
  "left-bottom"
323
- ], _ = () => [...v(), A, F], E = () => ["auto", "hidden", "clip", "visible", "scroll"], w = () => ["auto", "contain", "none"], y = () => [A, F, c], I = () => [Ge, "full", "auto", ...y()], $ = () => [Ee, "none", "subgrid", A, F], M = () => ["auto", {
323
+ ], _ = () => [...v(), A, F], w = () => ["auto", "hidden", "clip", "visible", "scroll"], E = () => ["auto", "contain", "none"], y = () => [A, F, c], I = () => [Ze, "full", "auto", ...y()], P = () => [Ee, "none", "subgrid", A, F], N = () => ["auto", {
324
324
  span: ["full", Ee, A, F]
325
- }, Ee, A, F], Q = () => [Ee, "auto", A, F], X = () => ["auto", "min", "max", "fr", A, F], Y = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], O = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], G = () => ["auto", ...y()], ee = () => [Ge, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...y()], D = () => [e, A, F], fe = () => [...v(), Xt, Qt, {
325
+ }, Ee, A, F], j = () => [Ee, "auto", A, F], U = () => ["auto", "min", "max", "fr", A, F], ee = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], B = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], G = () => ["auto", ...y()], re = () => [Ze, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...y()], D = () => [e, A, F], pe = () => [...v(), Xt, Qt, {
326
326
  position: [A, F]
327
327
  }], Le = () => ["no-repeat", {
328
328
  repeat: ["", "x", "y", "space", "round"]
329
- }], Ne = () => ["auto", "cover", "contain", ko, mo, {
329
+ }], we = () => ["auto", "cover", "contain", ko, mo, {
330
330
  size: [A, F]
331
- }], we = () => [rt, ru, Ie], z = () => [
331
+ }], Ne = () => [rt, ou, Re], z = () => [
332
332
  // Deprecated since Tailwind CSS v4.0.0
333
333
  "",
334
334
  "none",
@@ -336,14 +336,14 @@ const R0 = (e, u) => {
336
336
  s,
337
337
  A,
338
338
  F
339
- ], T = () => ["", L, ru, Ie], B = () => ["solid", "dashed", "dotted", "double"], re = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], R = () => [L, rt, Xt, Qt], he = () => [
339
+ ], Y = () => ["", M, ou, Re], oe = () => ["solid", "dashed", "dotted", "double"], $ = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], T = () => [M, rt, Xt, Qt], J = () => [
340
340
  // Deprecated since Tailwind CSS v4.0.0
341
341
  "",
342
342
  "none",
343
343
  f,
344
344
  A,
345
345
  F
346
- ], pe = () => ["none", L, A, F], wu = () => ["none", L, A, F], nt = () => [L, A, F], Eu = () => [Ge, "full", ...y()];
346
+ ], W = () => ["none", M, A, F], Ie = () => ["none", M, A, F], nt = () => [M, A, F], Eu = () => [Ze, "full", ...y()];
347
347
  return {
348
348
  cacheSize: 500,
349
349
  theme: {
@@ -362,7 +362,7 @@ const R0 = (e, u) => {
362
362
  perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
363
363
  radius: [ve],
364
364
  shadow: [ve],
365
- spacing: ["px", L],
365
+ spacing: ["px", M],
366
366
  text: [ve],
367
367
  "text-shadow": [ve],
368
368
  tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
@@ -376,7 +376,7 @@ const R0 = (e, u) => {
376
376
  * @see https://tailwindcss.com/docs/aspect-ratio
377
377
  */
378
378
  aspect: [{
379
- aspect: ["auto", "square", Ge, F, A, b]
379
+ aspect: ["auto", "square", Ze, F, A, b]
380
380
  }],
381
381
  /**
382
382
  * Container
@@ -389,7 +389,7 @@ const R0 = (e, u) => {
389
389
  * @see https://tailwindcss.com/docs/columns
390
390
  */
391
391
  columns: [{
392
- columns: [L, F, A, a]
392
+ columns: [M, F, A, a]
393
393
  }],
394
394
  /**
395
395
  * Break After
@@ -474,42 +474,42 @@ const R0 = (e, u) => {
474
474
  * @see https://tailwindcss.com/docs/overflow
475
475
  */
476
476
  overflow: [{
477
- overflow: E()
477
+ overflow: w()
478
478
  }],
479
479
  /**
480
480
  * Overflow X
481
481
  * @see https://tailwindcss.com/docs/overflow
482
482
  */
483
483
  "overflow-x": [{
484
- "overflow-x": E()
484
+ "overflow-x": w()
485
485
  }],
486
486
  /**
487
487
  * Overflow Y
488
488
  * @see https://tailwindcss.com/docs/overflow
489
489
  */
490
490
  "overflow-y": [{
491
- "overflow-y": E()
491
+ "overflow-y": w()
492
492
  }],
493
493
  /**
494
494
  * Overscroll Behavior
495
495
  * @see https://tailwindcss.com/docs/overscroll-behavior
496
496
  */
497
497
  overscroll: [{
498
- overscroll: w()
498
+ overscroll: E()
499
499
  }],
500
500
  /**
501
501
  * Overscroll Behavior X
502
502
  * @see https://tailwindcss.com/docs/overscroll-behavior
503
503
  */
504
504
  "overscroll-x": [{
505
- "overscroll-x": w()
505
+ "overscroll-x": E()
506
506
  }],
507
507
  /**
508
508
  * Overscroll Behavior Y
509
509
  * @see https://tailwindcss.com/docs/overscroll-behavior
510
510
  */
511
511
  "overscroll-y": [{
512
- "overscroll-y": w()
512
+ "overscroll-y": E()
513
513
  }],
514
514
  /**
515
515
  * Position
@@ -599,7 +599,7 @@ const R0 = (e, u) => {
599
599
  * @see https://tailwindcss.com/docs/flex-basis
600
600
  */
601
601
  basis: [{
602
- basis: [Ge, "full", "auto", a, ...y()]
602
+ basis: [Ze, "full", "auto", a, ...y()]
603
603
  }],
604
604
  /**
605
605
  * Flex Direction
@@ -620,21 +620,21 @@ const R0 = (e, u) => {
620
620
  * @see https://tailwindcss.com/docs/flex
621
621
  */
622
622
  flex: [{
623
- flex: [L, Ge, "auto", "initial", "none", F]
623
+ flex: [M, Ze, "auto", "initial", "none", F]
624
624
  }],
625
625
  /**
626
626
  * Flex Grow
627
627
  * @see https://tailwindcss.com/docs/flex-grow
628
628
  */
629
629
  grow: [{
630
- grow: ["", L, A, F]
630
+ grow: ["", M, A, F]
631
631
  }],
632
632
  /**
633
633
  * Flex Shrink
634
634
  * @see https://tailwindcss.com/docs/flex-shrink
635
635
  */
636
636
  shrink: [{
637
- shrink: ["", L, A, F]
637
+ shrink: ["", M, A, F]
638
638
  }],
639
639
  /**
640
640
  * Order
@@ -648,56 +648,56 @@ const R0 = (e, u) => {
648
648
  * @see https://tailwindcss.com/docs/grid-template-columns
649
649
  */
650
650
  "grid-cols": [{
651
- "grid-cols": $()
651
+ "grid-cols": P()
652
652
  }],
653
653
  /**
654
654
  * Grid Column Start / End
655
655
  * @see https://tailwindcss.com/docs/grid-column
656
656
  */
657
657
  "col-start-end": [{
658
- col: M()
658
+ col: N()
659
659
  }],
660
660
  /**
661
661
  * Grid Column Start
662
662
  * @see https://tailwindcss.com/docs/grid-column
663
663
  */
664
664
  "col-start": [{
665
- "col-start": Q()
665
+ "col-start": j()
666
666
  }],
667
667
  /**
668
668
  * Grid Column End
669
669
  * @see https://tailwindcss.com/docs/grid-column
670
670
  */
671
671
  "col-end": [{
672
- "col-end": Q()
672
+ "col-end": j()
673
673
  }],
674
674
  /**
675
675
  * Grid Template Rows
676
676
  * @see https://tailwindcss.com/docs/grid-template-rows
677
677
  */
678
678
  "grid-rows": [{
679
- "grid-rows": $()
679
+ "grid-rows": P()
680
680
  }],
681
681
  /**
682
682
  * Grid Row Start / End
683
683
  * @see https://tailwindcss.com/docs/grid-row
684
684
  */
685
685
  "row-start-end": [{
686
- row: M()
686
+ row: N()
687
687
  }],
688
688
  /**
689
689
  * Grid Row Start
690
690
  * @see https://tailwindcss.com/docs/grid-row
691
691
  */
692
692
  "row-start": [{
693
- "row-start": Q()
693
+ "row-start": j()
694
694
  }],
695
695
  /**
696
696
  * Grid Row End
697
697
  * @see https://tailwindcss.com/docs/grid-row
698
698
  */
699
699
  "row-end": [{
700
- "row-end": Q()
700
+ "row-end": j()
701
701
  }],
702
702
  /**
703
703
  * Grid Auto Flow
@@ -711,14 +711,14 @@ const R0 = (e, u) => {
711
711
  * @see https://tailwindcss.com/docs/grid-auto-columns
712
712
  */
713
713
  "auto-cols": [{
714
- "auto-cols": X()
714
+ "auto-cols": U()
715
715
  }],
716
716
  /**
717
717
  * Grid Auto Rows
718
718
  * @see https://tailwindcss.com/docs/grid-auto-rows
719
719
  */
720
720
  "auto-rows": [{
721
- "auto-rows": X()
721
+ "auto-rows": U()
722
722
  }],
723
723
  /**
724
724
  * Gap
@@ -746,35 +746,35 @@ const R0 = (e, u) => {
746
746
  * @see https://tailwindcss.com/docs/justify-content
747
747
  */
748
748
  "justify-content": [{
749
- justify: [...Y(), "normal"]
749
+ justify: [...ee(), "normal"]
750
750
  }],
751
751
  /**
752
752
  * Justify Items
753
753
  * @see https://tailwindcss.com/docs/justify-items
754
754
  */
755
755
  "justify-items": [{
756
- "justify-items": [...O(), "normal"]
756
+ "justify-items": [...B(), "normal"]
757
757
  }],
758
758
  /**
759
759
  * Justify Self
760
760
  * @see https://tailwindcss.com/docs/justify-self
761
761
  */
762
762
  "justify-self": [{
763
- "justify-self": ["auto", ...O()]
763
+ "justify-self": ["auto", ...B()]
764
764
  }],
765
765
  /**
766
766
  * Align Content
767
767
  * @see https://tailwindcss.com/docs/align-content
768
768
  */
769
769
  "align-content": [{
770
- content: ["normal", ...Y()]
770
+ content: ["normal", ...ee()]
771
771
  }],
772
772
  /**
773
773
  * Align Items
774
774
  * @see https://tailwindcss.com/docs/align-items
775
775
  */
776
776
  "align-items": [{
777
- items: [...O(), {
777
+ items: [...B(), {
778
778
  baseline: ["", "last"]
779
779
  }]
780
780
  }],
@@ -783,7 +783,7 @@ const R0 = (e, u) => {
783
783
  * @see https://tailwindcss.com/docs/align-self
784
784
  */
785
785
  "align-self": [{
786
- self: ["auto", ...O(), {
786
+ self: ["auto", ...B(), {
787
787
  baseline: ["", "last"]
788
788
  }]
789
789
  }],
@@ -792,21 +792,21 @@ const R0 = (e, u) => {
792
792
  * @see https://tailwindcss.com/docs/place-content
793
793
  */
794
794
  "place-content": [{
795
- "place-content": Y()
795
+ "place-content": ee()
796
796
  }],
797
797
  /**
798
798
  * Place Items
799
799
  * @see https://tailwindcss.com/docs/place-items
800
800
  */
801
801
  "place-items": [{
802
- "place-items": [...O(), "baseline"]
802
+ "place-items": [...B(), "baseline"]
803
803
  }],
804
804
  /**
805
805
  * Place Self
806
806
  * @see https://tailwindcss.com/docs/place-self
807
807
  */
808
808
  "place-self": [{
809
- "place-self": ["auto", ...O()]
809
+ "place-self": ["auto", ...B()]
810
810
  }],
811
811
  // Spacing
812
812
  /**
@@ -967,14 +967,14 @@ const R0 = (e, u) => {
967
967
  * @see https://tailwindcss.com/docs/width#setting-both-width-and-height
968
968
  */
969
969
  size: [{
970
- size: ee()
970
+ size: re()
971
971
  }],
972
972
  /**
973
973
  * Width
974
974
  * @see https://tailwindcss.com/docs/width
975
975
  */
976
976
  w: [{
977
- w: [a, "screen", ...ee()]
977
+ w: [a, "screen", ...re()]
978
978
  }],
979
979
  /**
980
980
  * Min-Width
@@ -986,7 +986,7 @@ const R0 = (e, u) => {
986
986
  "screen",
987
987
  /** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
988
988
  "none",
989
- ...ee()
989
+ ...re()
990
990
  ]
991
991
  }],
992
992
  /**
@@ -1004,7 +1004,7 @@ const R0 = (e, u) => {
1004
1004
  {
1005
1005
  screen: [i]
1006
1006
  },
1007
- ...ee()
1007
+ ...re()
1008
1008
  ]
1009
1009
  }],
1010
1010
  /**
@@ -1012,21 +1012,21 @@ const R0 = (e, u) => {
1012
1012
  * @see https://tailwindcss.com/docs/height
1013
1013
  */
1014
1014
  h: [{
1015
- h: ["screen", "lh", ...ee()]
1015
+ h: ["screen", "lh", ...re()]
1016
1016
  }],
1017
1017
  /**
1018
1018
  * Min-Height
1019
1019
  * @see https://tailwindcss.com/docs/min-height
1020
1020
  */
1021
1021
  "min-h": [{
1022
- "min-h": ["screen", "lh", "none", ...ee()]
1022
+ "min-h": ["screen", "lh", "none", ...re()]
1023
1023
  }],
1024
1024
  /**
1025
1025
  * Max-Height
1026
1026
  * @see https://tailwindcss.com/docs/max-height
1027
1027
  */
1028
1028
  "max-h": [{
1029
- "max-h": ["screen", "lh", ...ee()]
1029
+ "max-h": ["screen", "lh", ...re()]
1030
1030
  }],
1031
1031
  // ------------------
1032
1032
  // --- Typography ---
@@ -1036,7 +1036,7 @@ const R0 = (e, u) => {
1036
1036
  * @see https://tailwindcss.com/docs/font-size
1037
1037
  */
1038
1038
  "font-size": [{
1039
- text: ["base", t, ru, Ie]
1039
+ text: ["base", t, ou, Re]
1040
1040
  }],
1041
1041
  /**
1042
1042
  * Font Smoothing
@@ -1111,7 +1111,7 @@ const R0 = (e, u) => {
1111
1111
  * @see https://tailwindcss.com/docs/line-clamp
1112
1112
  */
1113
1113
  "line-clamp": [{
1114
- "line-clamp": [L, "none", A, ot]
1114
+ "line-clamp": [M, "none", A, ot]
1115
1115
  }],
1116
1116
  /**
1117
1117
  * Line Height
@@ -1177,14 +1177,14 @@ const R0 = (e, u) => {
1177
1177
  * @see https://tailwindcss.com/docs/text-decoration-style
1178
1178
  */
1179
1179
  "text-decoration-style": [{
1180
- decoration: [...B(), "wavy"]
1180
+ decoration: [...oe(), "wavy"]
1181
1181
  }],
1182
1182
  /**
1183
1183
  * Text Decoration Thickness
1184
1184
  * @see https://tailwindcss.com/docs/text-decoration-thickness
1185
1185
  */
1186
1186
  "text-decoration-thickness": [{
1187
- decoration: [L, "from-font", "auto", A, Ie]
1187
+ decoration: [M, "from-font", "auto", A, Re]
1188
1188
  }],
1189
1189
  /**
1190
1190
  * Text Decoration Color
@@ -1198,7 +1198,7 @@ const R0 = (e, u) => {
1198
1198
  * @see https://tailwindcss.com/docs/text-underline-offset
1199
1199
  */
1200
1200
  "underline-offset": [{
1201
- "underline-offset": [L, "auto", A, F]
1201
+ "underline-offset": [M, "auto", A, F]
1202
1202
  }],
1203
1203
  /**
1204
1204
  * Text Transform
@@ -1295,7 +1295,7 @@ const R0 = (e, u) => {
1295
1295
  * @see https://tailwindcss.com/docs/background-position
1296
1296
  */
1297
1297
  "bg-position": [{
1298
- bg: fe()
1298
+ bg: pe()
1299
1299
  }],
1300
1300
  /**
1301
1301
  * Background Repeat
@@ -1309,7 +1309,7 @@ const R0 = (e, u) => {
1309
1309
  * @see https://tailwindcss.com/docs/background-size
1310
1310
  */
1311
1311
  "bg-size": [{
1312
- bg: Ne()
1312
+ bg: we()
1313
1313
  }],
1314
1314
  /**
1315
1315
  * Background Image
@@ -1336,21 +1336,21 @@ const R0 = (e, u) => {
1336
1336
  * @see https://tailwindcss.com/docs/gradient-color-stops
1337
1337
  */
1338
1338
  "gradient-from-pos": [{
1339
- from: we()
1339
+ from: Ne()
1340
1340
  }],
1341
1341
  /**
1342
1342
  * Gradient Color Stops Via Position
1343
1343
  * @see https://tailwindcss.com/docs/gradient-color-stops
1344
1344
  */
1345
1345
  "gradient-via-pos": [{
1346
- via: we()
1346
+ via: Ne()
1347
1347
  }],
1348
1348
  /**
1349
1349
  * Gradient Color Stops To Position
1350
1350
  * @see https://tailwindcss.com/docs/gradient-color-stops
1351
1351
  */
1352
1352
  "gradient-to-pos": [{
1353
- to: we()
1353
+ to: Ne()
1354
1354
  }],
1355
1355
  /**
1356
1356
  * Gradient Color Stops From
@@ -1486,70 +1486,70 @@ const R0 = (e, u) => {
1486
1486
  * @see https://tailwindcss.com/docs/border-width
1487
1487
  */
1488
1488
  "border-w": [{
1489
- border: T()
1489
+ border: Y()
1490
1490
  }],
1491
1491
  /**
1492
1492
  * Border Width X
1493
1493
  * @see https://tailwindcss.com/docs/border-width
1494
1494
  */
1495
1495
  "border-w-x": [{
1496
- "border-x": T()
1496
+ "border-x": Y()
1497
1497
  }],
1498
1498
  /**
1499
1499
  * Border Width Y
1500
1500
  * @see https://tailwindcss.com/docs/border-width
1501
1501
  */
1502
1502
  "border-w-y": [{
1503
- "border-y": T()
1503
+ "border-y": Y()
1504
1504
  }],
1505
1505
  /**
1506
1506
  * Border Width Start
1507
1507
  * @see https://tailwindcss.com/docs/border-width
1508
1508
  */
1509
1509
  "border-w-s": [{
1510
- "border-s": T()
1510
+ "border-s": Y()
1511
1511
  }],
1512
1512
  /**
1513
1513
  * Border Width End
1514
1514
  * @see https://tailwindcss.com/docs/border-width
1515
1515
  */
1516
1516
  "border-w-e": [{
1517
- "border-e": T()
1517
+ "border-e": Y()
1518
1518
  }],
1519
1519
  /**
1520
1520
  * Border Width Top
1521
1521
  * @see https://tailwindcss.com/docs/border-width
1522
1522
  */
1523
1523
  "border-w-t": [{
1524
- "border-t": T()
1524
+ "border-t": Y()
1525
1525
  }],
1526
1526
  /**
1527
1527
  * Border Width Right
1528
1528
  * @see https://tailwindcss.com/docs/border-width
1529
1529
  */
1530
1530
  "border-w-r": [{
1531
- "border-r": T()
1531
+ "border-r": Y()
1532
1532
  }],
1533
1533
  /**
1534
1534
  * Border Width Bottom
1535
1535
  * @see https://tailwindcss.com/docs/border-width
1536
1536
  */
1537
1537
  "border-w-b": [{
1538
- "border-b": T()
1538
+ "border-b": Y()
1539
1539
  }],
1540
1540
  /**
1541
1541
  * Border Width Left
1542
1542
  * @see https://tailwindcss.com/docs/border-width
1543
1543
  */
1544
1544
  "border-w-l": [{
1545
- "border-l": T()
1545
+ "border-l": Y()
1546
1546
  }],
1547
1547
  /**
1548
1548
  * Divide Width X
1549
1549
  * @see https://tailwindcss.com/docs/border-width#between-children
1550
1550
  */
1551
1551
  "divide-x": [{
1552
- "divide-x": T()
1552
+ "divide-x": Y()
1553
1553
  }],
1554
1554
  /**
1555
1555
  * Divide Width X Reverse
@@ -1561,7 +1561,7 @@ const R0 = (e, u) => {
1561
1561
  * @see https://tailwindcss.com/docs/border-width#between-children
1562
1562
  */
1563
1563
  "divide-y": [{
1564
- "divide-y": T()
1564
+ "divide-y": Y()
1565
1565
  }],
1566
1566
  /**
1567
1567
  * Divide Width Y Reverse
@@ -1573,14 +1573,14 @@ const R0 = (e, u) => {
1573
1573
  * @see https://tailwindcss.com/docs/border-style
1574
1574
  */
1575
1575
  "border-style": [{
1576
- border: [...B(), "hidden", "none"]
1576
+ border: [...oe(), "hidden", "none"]
1577
1577
  }],
1578
1578
  /**
1579
1579
  * Divide Style
1580
1580
  * @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
1581
1581
  */
1582
1582
  "divide-style": [{
1583
- divide: [...B(), "hidden", "none"]
1583
+ divide: [...oe(), "hidden", "none"]
1584
1584
  }],
1585
1585
  /**
1586
1586
  * Border Color
@@ -1657,21 +1657,21 @@ const R0 = (e, u) => {
1657
1657
  * @see https://tailwindcss.com/docs/outline-style
1658
1658
  */
1659
1659
  "outline-style": [{
1660
- outline: [...B(), "none", "hidden"]
1660
+ outline: [...oe(), "none", "hidden"]
1661
1661
  }],
1662
1662
  /**
1663
1663
  * Outline Offset
1664
1664
  * @see https://tailwindcss.com/docs/outline-offset
1665
1665
  */
1666
1666
  "outline-offset": [{
1667
- "outline-offset": [L, A, F]
1667
+ "outline-offset": [M, A, F]
1668
1668
  }],
1669
1669
  /**
1670
1670
  * Outline Width
1671
1671
  * @see https://tailwindcss.com/docs/outline-width
1672
1672
  */
1673
1673
  "outline-w": [{
1674
- outline: ["", L, ru, Ie]
1674
+ outline: ["", M, ou, Re]
1675
1675
  }],
1676
1676
  /**
1677
1677
  * Outline Color
@@ -1723,7 +1723,7 @@ const R0 = (e, u) => {
1723
1723
  * @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
1724
1724
  */
1725
1725
  "ring-w": [{
1726
- ring: T()
1726
+ ring: Y()
1727
1727
  }],
1728
1728
  /**
1729
1729
  * Ring Width Inset
@@ -1746,7 +1746,7 @@ const R0 = (e, u) => {
1746
1746
  * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
1747
1747
  */
1748
1748
  "ring-offset-w": [{
1749
- "ring-offset": [L, Ie]
1749
+ "ring-offset": [M, Re]
1750
1750
  }],
1751
1751
  /**
1752
1752
  * Ring Offset Color
@@ -1762,7 +1762,7 @@ const R0 = (e, u) => {
1762
1762
  * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
1763
1763
  */
1764
1764
  "inset-ring-w": [{
1765
- "inset-ring": T()
1765
+ "inset-ring": Y()
1766
1766
  }],
1767
1767
  /**
1768
1768
  * Inset Ring Color
@@ -1790,21 +1790,21 @@ const R0 = (e, u) => {
1790
1790
  * @see https://tailwindcss.com/docs/opacity
1791
1791
  */
1792
1792
  opacity: [{
1793
- opacity: [L, A, F]
1793
+ opacity: [M, A, F]
1794
1794
  }],
1795
1795
  /**
1796
1796
  * Mix Blend Mode
1797
1797
  * @see https://tailwindcss.com/docs/mix-blend-mode
1798
1798
  */
1799
1799
  "mix-blend": [{
1800
- "mix-blend": [...re(), "plus-darker", "plus-lighter"]
1800
+ "mix-blend": [...$(), "plus-darker", "plus-lighter"]
1801
1801
  }],
1802
1802
  /**
1803
1803
  * Background Blend Mode
1804
1804
  * @see https://tailwindcss.com/docs/background-blend-mode
1805
1805
  */
1806
1806
  "bg-blend": [{
1807
- "bg-blend": re()
1807
+ "bg-blend": $()
1808
1808
  }],
1809
1809
  /**
1810
1810
  * Mask Clip
@@ -1825,13 +1825,13 @@ const R0 = (e, u) => {
1825
1825
  * @see https://tailwindcss.com/docs/mask-image
1826
1826
  */
1827
1827
  "mask-image-linear-pos": [{
1828
- "mask-linear": [L]
1828
+ "mask-linear": [M]
1829
1829
  }],
1830
1830
  "mask-image-linear-from-pos": [{
1831
- "mask-linear-from": R()
1831
+ "mask-linear-from": T()
1832
1832
  }],
1833
1833
  "mask-image-linear-to-pos": [{
1834
- "mask-linear-to": R()
1834
+ "mask-linear-to": T()
1835
1835
  }],
1836
1836
  "mask-image-linear-from-color": [{
1837
1837
  "mask-linear-from": D()
@@ -1840,10 +1840,10 @@ const R0 = (e, u) => {
1840
1840
  "mask-linear-to": D()
1841
1841
  }],
1842
1842
  "mask-image-t-from-pos": [{
1843
- "mask-t-from": R()
1843
+ "mask-t-from": T()
1844
1844
  }],
1845
1845
  "mask-image-t-to-pos": [{
1846
- "mask-t-to": R()
1846
+ "mask-t-to": T()
1847
1847
  }],
1848
1848
  "mask-image-t-from-color": [{
1849
1849
  "mask-t-from": D()
@@ -1852,10 +1852,10 @@ const R0 = (e, u) => {
1852
1852
  "mask-t-to": D()
1853
1853
  }],
1854
1854
  "mask-image-r-from-pos": [{
1855
- "mask-r-from": R()
1855
+ "mask-r-from": T()
1856
1856
  }],
1857
1857
  "mask-image-r-to-pos": [{
1858
- "mask-r-to": R()
1858
+ "mask-r-to": T()
1859
1859
  }],
1860
1860
  "mask-image-r-from-color": [{
1861
1861
  "mask-r-from": D()
@@ -1864,10 +1864,10 @@ const R0 = (e, u) => {
1864
1864
  "mask-r-to": D()
1865
1865
  }],
1866
1866
  "mask-image-b-from-pos": [{
1867
- "mask-b-from": R()
1867
+ "mask-b-from": T()
1868
1868
  }],
1869
1869
  "mask-image-b-to-pos": [{
1870
- "mask-b-to": R()
1870
+ "mask-b-to": T()
1871
1871
  }],
1872
1872
  "mask-image-b-from-color": [{
1873
1873
  "mask-b-from": D()
@@ -1876,10 +1876,10 @@ const R0 = (e, u) => {
1876
1876
  "mask-b-to": D()
1877
1877
  }],
1878
1878
  "mask-image-l-from-pos": [{
1879
- "mask-l-from": R()
1879
+ "mask-l-from": T()
1880
1880
  }],
1881
1881
  "mask-image-l-to-pos": [{
1882
- "mask-l-to": R()
1882
+ "mask-l-to": T()
1883
1883
  }],
1884
1884
  "mask-image-l-from-color": [{
1885
1885
  "mask-l-from": D()
@@ -1888,10 +1888,10 @@ const R0 = (e, u) => {
1888
1888
  "mask-l-to": D()
1889
1889
  }],
1890
1890
  "mask-image-x-from-pos": [{
1891
- "mask-x-from": R()
1891
+ "mask-x-from": T()
1892
1892
  }],
1893
1893
  "mask-image-x-to-pos": [{
1894
- "mask-x-to": R()
1894
+ "mask-x-to": T()
1895
1895
  }],
1896
1896
  "mask-image-x-from-color": [{
1897
1897
  "mask-x-from": D()
@@ -1900,10 +1900,10 @@ const R0 = (e, u) => {
1900
1900
  "mask-x-to": D()
1901
1901
  }],
1902
1902
  "mask-image-y-from-pos": [{
1903
- "mask-y-from": R()
1903
+ "mask-y-from": T()
1904
1904
  }],
1905
1905
  "mask-image-y-to-pos": [{
1906
- "mask-y-to": R()
1906
+ "mask-y-to": T()
1907
1907
  }],
1908
1908
  "mask-image-y-from-color": [{
1909
1909
  "mask-y-from": D()
@@ -1915,10 +1915,10 @@ const R0 = (e, u) => {
1915
1915
  "mask-radial": [A, F]
1916
1916
  }],
1917
1917
  "mask-image-radial-from-pos": [{
1918
- "mask-radial-from": R()
1918
+ "mask-radial-from": T()
1919
1919
  }],
1920
1920
  "mask-image-radial-to-pos": [{
1921
- "mask-radial-to": R()
1921
+ "mask-radial-to": T()
1922
1922
  }],
1923
1923
  "mask-image-radial-from-color": [{
1924
1924
  "mask-radial-from": D()
@@ -1939,13 +1939,13 @@ const R0 = (e, u) => {
1939
1939
  "mask-radial-at": v()
1940
1940
  }],
1941
1941
  "mask-image-conic-pos": [{
1942
- "mask-conic": [L]
1942
+ "mask-conic": [M]
1943
1943
  }],
1944
1944
  "mask-image-conic-from-pos": [{
1945
- "mask-conic-from": R()
1945
+ "mask-conic-from": T()
1946
1946
  }],
1947
1947
  "mask-image-conic-to-pos": [{
1948
- "mask-conic-to": R()
1948
+ "mask-conic-to": T()
1949
1949
  }],
1950
1950
  "mask-image-conic-from-color": [{
1951
1951
  "mask-conic-from": D()
@@ -1972,7 +1972,7 @@ const R0 = (e, u) => {
1972
1972
  * @see https://tailwindcss.com/docs/mask-position
1973
1973
  */
1974
1974
  "mask-position": [{
1975
- mask: fe()
1975
+ mask: pe()
1976
1976
  }],
1977
1977
  /**
1978
1978
  * Mask Repeat
@@ -1986,7 +1986,7 @@ const R0 = (e, u) => {
1986
1986
  * @see https://tailwindcss.com/docs/mask-size
1987
1987
  */
1988
1988
  "mask-size": [{
1989
- mask: Ne()
1989
+ mask: we()
1990
1990
  }],
1991
1991
  /**
1992
1992
  * Mask Type
@@ -2023,21 +2023,21 @@ const R0 = (e, u) => {
2023
2023
  * @see https://tailwindcss.com/docs/blur
2024
2024
  */
2025
2025
  blur: [{
2026
- blur: he()
2026
+ blur: J()
2027
2027
  }],
2028
2028
  /**
2029
2029
  * Brightness
2030
2030
  * @see https://tailwindcss.com/docs/brightness
2031
2031
  */
2032
2032
  brightness: [{
2033
- brightness: [L, A, F]
2033
+ brightness: [M, A, F]
2034
2034
  }],
2035
2035
  /**
2036
2036
  * Contrast
2037
2037
  * @see https://tailwindcss.com/docs/contrast
2038
2038
  */
2039
2039
  contrast: [{
2040
- contrast: [L, A, F]
2040
+ contrast: [M, A, F]
2041
2041
  }],
2042
2042
  /**
2043
2043
  * Drop Shadow
@@ -2065,35 +2065,35 @@ const R0 = (e, u) => {
2065
2065
  * @see https://tailwindcss.com/docs/grayscale
2066
2066
  */
2067
2067
  grayscale: [{
2068
- grayscale: ["", L, A, F]
2068
+ grayscale: ["", M, A, F]
2069
2069
  }],
2070
2070
  /**
2071
2071
  * Hue Rotate
2072
2072
  * @see https://tailwindcss.com/docs/hue-rotate
2073
2073
  */
2074
2074
  "hue-rotate": [{
2075
- "hue-rotate": [L, A, F]
2075
+ "hue-rotate": [M, A, F]
2076
2076
  }],
2077
2077
  /**
2078
2078
  * Invert
2079
2079
  * @see https://tailwindcss.com/docs/invert
2080
2080
  */
2081
2081
  invert: [{
2082
- invert: ["", L, A, F]
2082
+ invert: ["", M, A, F]
2083
2083
  }],
2084
2084
  /**
2085
2085
  * Saturate
2086
2086
  * @see https://tailwindcss.com/docs/saturate
2087
2087
  */
2088
2088
  saturate: [{
2089
- saturate: [L, A, F]
2089
+ saturate: [M, A, F]
2090
2090
  }],
2091
2091
  /**
2092
2092
  * Sepia
2093
2093
  * @see https://tailwindcss.com/docs/sepia
2094
2094
  */
2095
2095
  sepia: [{
2096
- sepia: ["", L, A, F]
2096
+ sepia: ["", M, A, F]
2097
2097
  }],
2098
2098
  /**
2099
2099
  * Backdrop Filter
@@ -2113,63 +2113,63 @@ const R0 = (e, u) => {
2113
2113
  * @see https://tailwindcss.com/docs/backdrop-blur
2114
2114
  */
2115
2115
  "backdrop-blur": [{
2116
- "backdrop-blur": he()
2116
+ "backdrop-blur": J()
2117
2117
  }],
2118
2118
  /**
2119
2119
  * Backdrop Brightness
2120
2120
  * @see https://tailwindcss.com/docs/backdrop-brightness
2121
2121
  */
2122
2122
  "backdrop-brightness": [{
2123
- "backdrop-brightness": [L, A, F]
2123
+ "backdrop-brightness": [M, A, F]
2124
2124
  }],
2125
2125
  /**
2126
2126
  * Backdrop Contrast
2127
2127
  * @see https://tailwindcss.com/docs/backdrop-contrast
2128
2128
  */
2129
2129
  "backdrop-contrast": [{
2130
- "backdrop-contrast": [L, A, F]
2130
+ "backdrop-contrast": [M, A, F]
2131
2131
  }],
2132
2132
  /**
2133
2133
  * Backdrop Grayscale
2134
2134
  * @see https://tailwindcss.com/docs/backdrop-grayscale
2135
2135
  */
2136
2136
  "backdrop-grayscale": [{
2137
- "backdrop-grayscale": ["", L, A, F]
2137
+ "backdrop-grayscale": ["", M, A, F]
2138
2138
  }],
2139
2139
  /**
2140
2140
  * Backdrop Hue Rotate
2141
2141
  * @see https://tailwindcss.com/docs/backdrop-hue-rotate
2142
2142
  */
2143
2143
  "backdrop-hue-rotate": [{
2144
- "backdrop-hue-rotate": [L, A, F]
2144
+ "backdrop-hue-rotate": [M, A, F]
2145
2145
  }],
2146
2146
  /**
2147
2147
  * Backdrop Invert
2148
2148
  * @see https://tailwindcss.com/docs/backdrop-invert
2149
2149
  */
2150
2150
  "backdrop-invert": [{
2151
- "backdrop-invert": ["", L, A, F]
2151
+ "backdrop-invert": ["", M, A, F]
2152
2152
  }],
2153
2153
  /**
2154
2154
  * Backdrop Opacity
2155
2155
  * @see https://tailwindcss.com/docs/backdrop-opacity
2156
2156
  */
2157
2157
  "backdrop-opacity": [{
2158
- "backdrop-opacity": [L, A, F]
2158
+ "backdrop-opacity": [M, A, F]
2159
2159
  }],
2160
2160
  /**
2161
2161
  * Backdrop Saturate
2162
2162
  * @see https://tailwindcss.com/docs/backdrop-saturate
2163
2163
  */
2164
2164
  "backdrop-saturate": [{
2165
- "backdrop-saturate": [L, A, F]
2165
+ "backdrop-saturate": [M, A, F]
2166
2166
  }],
2167
2167
  /**
2168
2168
  * Backdrop Sepia
2169
2169
  * @see https://tailwindcss.com/docs/backdrop-sepia
2170
2170
  */
2171
2171
  "backdrop-sepia": [{
2172
- "backdrop-sepia": ["", L, A, F]
2172
+ "backdrop-sepia": ["", M, A, F]
2173
2173
  }],
2174
2174
  // --------------
2175
2175
  // --- Tables ---
@@ -2238,7 +2238,7 @@ const R0 = (e, u) => {
2238
2238
  * @see https://tailwindcss.com/docs/transition-duration
2239
2239
  */
2240
2240
  duration: [{
2241
- duration: [L, "initial", A, F]
2241
+ duration: [M, "initial", A, F]
2242
2242
  }],
2243
2243
  /**
2244
2244
  * Transition Timing Function
@@ -2252,7 +2252,7 @@ const R0 = (e, u) => {
2252
2252
  * @see https://tailwindcss.com/docs/transition-delay
2253
2253
  */
2254
2254
  delay: [{
2255
- delay: [L, A, F]
2255
+ delay: [M, A, F]
2256
2256
  }],
2257
2257
  /**
2258
2258
  * Animation
@@ -2290,56 +2290,56 @@ const R0 = (e, u) => {
2290
2290
  * @see https://tailwindcss.com/docs/rotate
2291
2291
  */
2292
2292
  rotate: [{
2293
- rotate: pe()
2293
+ rotate: W()
2294
2294
  }],
2295
2295
  /**
2296
2296
  * Rotate X
2297
2297
  * @see https://tailwindcss.com/docs/rotate
2298
2298
  */
2299
2299
  "rotate-x": [{
2300
- "rotate-x": pe()
2300
+ "rotate-x": W()
2301
2301
  }],
2302
2302
  /**
2303
2303
  * Rotate Y
2304
2304
  * @see https://tailwindcss.com/docs/rotate
2305
2305
  */
2306
2306
  "rotate-y": [{
2307
- "rotate-y": pe()
2307
+ "rotate-y": W()
2308
2308
  }],
2309
2309
  /**
2310
2310
  * Rotate Z
2311
2311
  * @see https://tailwindcss.com/docs/rotate
2312
2312
  */
2313
2313
  "rotate-z": [{
2314
- "rotate-z": pe()
2314
+ "rotate-z": W()
2315
2315
  }],
2316
2316
  /**
2317
2317
  * Scale
2318
2318
  * @see https://tailwindcss.com/docs/scale
2319
2319
  */
2320
2320
  scale: [{
2321
- scale: wu()
2321
+ scale: Ie()
2322
2322
  }],
2323
2323
  /**
2324
2324
  * Scale X
2325
2325
  * @see https://tailwindcss.com/docs/scale
2326
2326
  */
2327
2327
  "scale-x": [{
2328
- "scale-x": wu()
2328
+ "scale-x": Ie()
2329
2329
  }],
2330
2330
  /**
2331
2331
  * Scale Y
2332
2332
  * @see https://tailwindcss.com/docs/scale
2333
2333
  */
2334
2334
  "scale-y": [{
2335
- "scale-y": wu()
2335
+ "scale-y": Ie()
2336
2336
  }],
2337
2337
  /**
2338
2338
  * Scale Z
2339
2339
  * @see https://tailwindcss.com/docs/scale
2340
2340
  */
2341
2341
  "scale-z": [{
2342
- "scale-z": wu()
2342
+ "scale-z": Ie()
2343
2343
  }],
2344
2344
  /**
2345
2345
  * Scale 3D
@@ -2696,7 +2696,7 @@ const R0 = (e, u) => {
2696
2696
  * @see https://tailwindcss.com/docs/stroke-width
2697
2697
  */
2698
2698
  "stroke-w": [{
2699
- stroke: [L, ru, Ie, ot]
2699
+ stroke: [M, ou, Re, ot]
2700
2700
  }],
2701
2701
  /**
2702
2702
  * Stroke
@@ -2772,14 +2772,14 @@ const R0 = (e, u) => {
2772
2772
  orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
2773
2773
  };
2774
2774
  }, wo = /* @__PURE__ */ to(_o);
2775
- function U(...e) {
2775
+ function Z(...e) {
2776
2776
  return wo(I0(e));
2777
2777
  }
2778
- const Eo = typeof document < "u" ? ue.useLayoutEffect : () => {
2778
+ const Eo = typeof document < "u" ? te.useLayoutEffect : () => {
2779
2779
  }, Me = (e) => {
2780
2780
  var u;
2781
2781
  return (u = e?.ownerDocument) !== null && u !== void 0 ? u : document;
2782
- }, Pe = (e) => e && "window" in e && e.window === e ? e : Me(e).defaultView || window;
2782
+ }, Be = (e) => e && "window" in e && e.window === e ? e : Me(e).defaultView || window;
2783
2783
  function Fo(e) {
2784
2784
  return e !== null && typeof e == "object" && "nodeType" in e && typeof e.nodeType == "number";
2785
2785
  }
@@ -2867,18 +2867,18 @@ function _e(e) {
2867
2867
  let u = null;
2868
2868
  return () => (u == null && (u = e()), u);
2869
2869
  }
2870
- const du = _e(function() {
2870
+ const fu = _e(function() {
2871
2871
  return Lt(/^Mac/i);
2872
2872
  }), Lo = _e(function() {
2873
2873
  return Lt(/^iPhone/i);
2874
2874
  }), Gn = _e(function() {
2875
2875
  return Lt(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
2876
- du() && navigator.maxTouchPoints > 1;
2876
+ fu() && navigator.maxTouchPoints > 1;
2877
2877
  }), No = _e(function() {
2878
2878
  return Lo() || Gn();
2879
2879
  });
2880
2880
  _e(function() {
2881
- return du() || No();
2881
+ return fu() || No();
2882
2882
  });
2883
2883
  const Io = _e(function() {
2884
2884
  return Hu(/AppleWebKit/i) && !Ro();
@@ -2889,11 +2889,11 @@ const Io = _e(function() {
2889
2889
  }), Po = _e(function() {
2890
2890
  return Hu(/Firefox/i);
2891
2891
  });
2892
- function fu(e, u, t = !0) {
2892
+ function hu(e, u, t = !0) {
2893
2893
  var n, r;
2894
2894
  let { metaKey: o, ctrlKey: i, altKey: a, shiftKey: c } = u;
2895
- Po() && (!((r = window.event) === null || r === void 0 || (n = r.type) === null || n === void 0) && n.startsWith("key")) && e.target === "_blank" && (du() ? o = !0 : i = !0);
2896
- let s = Io() && du() && !Gn() && process.env.NODE_ENV !== "test" ? new KeyboardEvent("keydown", {
2895
+ Po() && (!((r = window.event) === null || r === void 0 || (n = r.type) === null || n === void 0) && n.startsWith("key")) && e.target === "_blank" && (fu() ? o = !0 : i = !0);
2896
+ let s = Io() && fu() && !Gn() && process.env.NODE_ENV !== "test" ? new KeyboardEvent("keydown", {
2897
2897
  keyIdentifier: "Enter",
2898
2898
  metaKey: o,
2899
2899
  ctrlKey: i,
@@ -2908,11 +2908,11 @@ function fu(e, u, t = !0) {
2908
2908
  bubbles: !0,
2909
2909
  cancelable: !0
2910
2910
  });
2911
- fu.isOpening = t, To(e), e.dispatchEvent(s), fu.isOpening = !1;
2911
+ hu.isOpening = t, To(e), e.dispatchEvent(s), hu.isOpening = !1;
2912
2912
  }
2913
- fu.isOpening = !1;
2913
+ hu.isOpening = !1;
2914
2914
  function Zn() {
2915
- let e = S(/* @__PURE__ */ new Map()), u = P((r, o, i, a) => {
2915
+ let e = S(/* @__PURE__ */ new Map()), u = R((r, o, i, a) => {
2916
2916
  let c = a?.once ? (...s) => {
2917
2917
  e.current.delete(i), i(...s);
2918
2918
  } : i;
@@ -2922,11 +2922,11 @@ function Zn() {
2922
2922
  fn: c,
2923
2923
  options: a
2924
2924
  }), r.addEventListener(o, c, a);
2925
- }, []), t = P((r, o, i, a) => {
2925
+ }, []), t = R((r, o, i, a) => {
2926
2926
  var c;
2927
2927
  let s = ((c = e.current.get(i)) === null || c === void 0 ? void 0 : c.fn) || i;
2928
2928
  r.removeEventListener(o, s, a), e.current.delete(i);
2929
- }, []), n = P(() => {
2929
+ }, []), n = R(() => {
2930
2930
  e.current.forEach((r, o) => {
2931
2931
  t(r.eventTarget, r.type, o, r.options);
2932
2932
  });
@@ -2966,7 +2966,7 @@ function Kn(e) {
2966
2966
  return () => {
2967
2967
  t.observer && (t.observer.disconnect(), t.observer = null);
2968
2968
  };
2969
- }, []), P((t) => {
2969
+ }, []), R((t) => {
2970
2970
  if (t.target instanceof HTMLButtonElement || t.target instanceof HTMLInputElement || t.target instanceof HTMLTextAreaElement || t.target instanceof HTMLSelectElement) {
2971
2971
  u.current.isFocused = !0;
2972
2972
  let n = t.target, r = (o) => {
@@ -3001,7 +3001,7 @@ function Kn(e) {
3001
3001
  e
3002
3002
  ]);
3003
3003
  }
3004
- let qo = !1, Cu = null, gt = /* @__PURE__ */ new Set(), cu = /* @__PURE__ */ new Map(), qe = !1, xt = !1;
3004
+ let qo = !1, vu = null, gt = /* @__PURE__ */ new Set(), su = /* @__PURE__ */ new Map(), je = !1, xt = !1;
3005
3005
  const jo = {
3006
3006
  Tab: !0,
3007
3007
  Escape: !0
@@ -3010,40 +3010,40 @@ function Nt(e, u) {
3010
3010
  for (let t of gt) t(e, u);
3011
3011
  }
3012
3012
  function Ho(e) {
3013
- return !(e.metaKey || !du() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
3013
+ return !(e.metaKey || !fu() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
3014
3014
  }
3015
3015
  function Pu(e) {
3016
- qe = !0, !fu.isOpening && Ho(e) && (Cu = "keyboard", Nt("keyboard", e));
3016
+ je = !0, !hu.isOpening && Ho(e) && (vu = "keyboard", Nt("keyboard", e));
3017
3017
  }
3018
- function ie(e) {
3019
- Cu = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (qe = !0, Nt("pointer", e));
3018
+ function ce(e) {
3019
+ vu = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (je = !0, Nt("pointer", e));
3020
3020
  }
3021
3021
  function Yn(e) {
3022
- !fu.isOpening && Bo(e) && (qe = !0, Cu = "virtual");
3022
+ !hu.isOpening && Bo(e) && (je = !0, vu = "virtual");
3023
3023
  }
3024
3024
  function Jn(e) {
3025
- e.target === window || e.target === document || qo || !e.isTrusted || (!qe && !xt && (Cu = "virtual", Nt("virtual", e)), qe = !1, xt = !1);
3025
+ e.target === window || e.target === document || qo || !e.isTrusted || (!je && !xt && (vu = "virtual", Nt("virtual", e)), je = !1, xt = !1);
3026
3026
  }
3027
3027
  function Qn() {
3028
- qe = !1, xt = !0;
3028
+ je = !1, xt = !0;
3029
3029
  }
3030
3030
  function kt(e) {
3031
- if (typeof window > "u" || typeof document > "u" || cu.get(Pe(e))) return;
3032
- const u = Pe(e), t = Me(e);
3031
+ if (typeof window > "u" || typeof document > "u" || su.get(Be(e))) return;
3032
+ const u = Be(e), t = Me(e);
3033
3033
  let n = u.HTMLElement.prototype.focus;
3034
3034
  u.HTMLElement.prototype.focus = function() {
3035
- qe = !0, n.apply(this, arguments);
3036
- }, t.addEventListener("keydown", Pu, !0), t.addEventListener("keyup", Pu, !0), t.addEventListener("click", Yn, !0), u.addEventListener("focus", Jn, !0), u.addEventListener("blur", Qn, !1), typeof PointerEvent < "u" ? (t.addEventListener("pointerdown", ie, !0), t.addEventListener("pointermove", ie, !0), t.addEventListener("pointerup", ie, !0)) : process.env.NODE_ENV === "test" && (t.addEventListener("mousedown", ie, !0), t.addEventListener("mousemove", ie, !0), t.addEventListener("mouseup", ie, !0)), u.addEventListener("beforeunload", () => {
3035
+ je = !0, n.apply(this, arguments);
3036
+ }, t.addEventListener("keydown", Pu, !0), t.addEventListener("keyup", Pu, !0), t.addEventListener("click", Yn, !0), u.addEventListener("focus", Jn, !0), u.addEventListener("blur", Qn, !1), typeof PointerEvent < "u" ? (t.addEventListener("pointerdown", ce, !0), t.addEventListener("pointermove", ce, !0), t.addEventListener("pointerup", ce, !0)) : process.env.NODE_ENV === "test" && (t.addEventListener("mousedown", ce, !0), t.addEventListener("mousemove", ce, !0), t.addEventListener("mouseup", ce, !0)), u.addEventListener("beforeunload", () => {
3037
3037
  Xn(e);
3038
3038
  }, {
3039
3039
  once: !0
3040
- }), cu.set(u, {
3040
+ }), su.set(u, {
3041
3041
  focus: n
3042
3042
  });
3043
3043
  }
3044
3044
  const Xn = (e, u) => {
3045
- const t = Pe(e), n = Me(e);
3046
- u && n.removeEventListener("DOMContentLoaded", u), cu.has(t) && (t.HTMLElement.prototype.focus = cu.get(t).focus, n.removeEventListener("keydown", Pu, !0), n.removeEventListener("keyup", Pu, !0), n.removeEventListener("click", Yn, !0), t.removeEventListener("focus", Jn, !0), t.removeEventListener("blur", Qn, !1), typeof PointerEvent < "u" ? (n.removeEventListener("pointerdown", ie, !0), n.removeEventListener("pointermove", ie, !0), n.removeEventListener("pointerup", ie, !0)) : process.env.NODE_ENV === "test" && (n.removeEventListener("mousedown", ie, !0), n.removeEventListener("mousemove", ie, !0), n.removeEventListener("mouseup", ie, !0)), cu.delete(t));
3045
+ const t = Be(e), n = Me(e);
3046
+ u && n.removeEventListener("DOMContentLoaded", u), su.has(t) && (t.HTMLElement.prototype.focus = su.get(t).focus, n.removeEventListener("keydown", Pu, !0), n.removeEventListener("keyup", Pu, !0), n.removeEventListener("click", Yn, !0), t.removeEventListener("focus", Jn, !0), t.removeEventListener("blur", Qn, !1), typeof PointerEvent < "u" ? (n.removeEventListener("pointerdown", ce, !0), n.removeEventListener("pointermove", ce, !0), n.removeEventListener("pointerup", ce, !0)) : process.env.NODE_ENV === "test" && (n.removeEventListener("mousedown", ce, !0), n.removeEventListener("mousemove", ce, !0), n.removeEventListener("mouseup", ce, !0)), su.delete(t));
3047
3047
  };
3048
3048
  function Vo(e) {
3049
3049
  const u = Me(e);
@@ -3054,7 +3054,7 @@ function Vo(e) {
3054
3054
  }
3055
3055
  typeof document < "u" && Vo();
3056
3056
  function er() {
3057
- return Cu !== "pointer";
3057
+ return vu !== "pointer";
3058
3058
  }
3059
3059
  const Uo = /* @__PURE__ */ new Set([
3060
3060
  "checkbox",
@@ -3069,7 +3069,7 @@ const Uo = /* @__PURE__ */ new Set([
3069
3069
  ]);
3070
3070
  function Go(e, u, t) {
3071
3071
  let n = Me(t?.target);
3072
- const r = typeof window < "u" ? Pe(t?.target).HTMLInputElement : HTMLInputElement, o = typeof window < "u" ? Pe(t?.target).HTMLTextAreaElement : HTMLTextAreaElement, i = typeof window < "u" ? Pe(t?.target).HTMLElement : HTMLElement, a = typeof window < "u" ? Pe(t?.target).KeyboardEvent : KeyboardEvent;
3072
+ const r = typeof window < "u" ? Be(t?.target).HTMLInputElement : HTMLInputElement, o = typeof window < "u" ? Be(t?.target).HTMLTextAreaElement : HTMLTextAreaElement, i = typeof window < "u" ? Be(t?.target).HTMLElement : HTMLElement, a = typeof window < "u" ? Be(t?.target).KeyboardEvent : KeyboardEvent;
3073
3073
  return e = e || n.activeElement instanceof r && !Uo.has(n.activeElement.type) || n.activeElement instanceof o || n.activeElement instanceof i && n.activeElement.isContentEditable, !(e && u === "keyboard" && t instanceof a && !jo[t.key]);
3074
3074
  }
3075
3075
  function Zo(e, u, t) {
@@ -3084,13 +3084,13 @@ function Zo(e, u, t) {
3084
3084
  }
3085
3085
  function Wo(e) {
3086
3086
  let { isDisabled: u, onFocus: t, onBlur: n, onFocusChange: r } = e;
3087
- const o = P((c) => {
3087
+ const o = R((c) => {
3088
3088
  if (c.target === c.currentTarget)
3089
3089
  return n && n(c), r && r(!1), !0;
3090
3090
  }, [
3091
3091
  n,
3092
3092
  r
3093
- ]), i = Kn(o), a = P((c) => {
3093
+ ]), i = Kn(o), a = R((c) => {
3094
3094
  const s = Me(c.target), l = s ? mt(s) : mt();
3095
3095
  c.target === c.currentTarget && l === Un(c.nativeEvent) && (t && t(c), r && r(!0), i(c));
3096
3096
  }, [
@@ -3108,14 +3108,14 @@ function Wo(e) {
3108
3108
  function Ko(e) {
3109
3109
  let { isDisabled: u, onBlurWithin: t, onFocusWithin: n, onFocusWithinChange: r } = e, o = S({
3110
3110
  isFocusWithin: !1
3111
- }), { addGlobalListener: i, removeAllGlobalListeners: a } = Zn(), c = P((d) => {
3111
+ }), { addGlobalListener: i, removeAllGlobalListeners: a } = Zn(), c = R((d) => {
3112
3112
  d.currentTarget.contains(d.target) && o.current.isFocusWithin && !d.currentTarget.contains(d.relatedTarget) && (o.current.isFocusWithin = !1, a(), t && t(d), r && r(!1));
3113
3113
  }, [
3114
3114
  t,
3115
3115
  r,
3116
3116
  o,
3117
3117
  a
3118
- ]), s = Kn(c), l = P((d) => {
3118
+ ]), s = Kn(c), l = R((d) => {
3119
3119
  if (!d.currentTarget.contains(d.target)) return;
3120
3120
  const p = Me(d.target), h = mt(p);
3121
3121
  if (!o.current.isFocusWithin && h === Un(d.nativeEvent)) {
@@ -3237,7 +3237,7 @@ function tr(e = {}) {
3237
3237
  let { autoFocus: u = !1, isTextInput: t, within: n } = e, r = S({
3238
3238
  isFocused: !1,
3239
3239
  isFocusVisible: u || er()
3240
- }), [o, i] = V(!1), [a, c] = V(() => r.current.isFocused && r.current.isFocusVisible), s = P(() => c(r.current.isFocused && r.current.isFocusVisible), []), l = P((h) => {
3240
+ }), [o, i] = V(!1), [a, c] = V(() => r.current.isFocused && r.current.isFocusVisible), s = R(() => c(r.current.isFocused && r.current.isFocusVisible), []), l = R((h) => {
3241
3241
  r.current.isFocused = h, i(h), s();
3242
3242
  }, [
3243
3243
  s
@@ -3289,10 +3289,10 @@ let Xo = class {
3289
3289
  get isHandoffComplete() {
3290
3290
  return this.handoffState === "complete";
3291
3291
  }
3292
- }, su = new Xo();
3292
+ }, lu = new Xo();
3293
3293
  function ei(e) {
3294
3294
  var u;
3295
- return su.isServer ? null : e == null ? document : (u = e?.ownerDocument) != null ? u : document;
3295
+ return lu.isServer ? null : e == null ? document : (u = e?.ownerDocument) != null ? u : document;
3296
3296
  }
3297
3297
  function ui(e) {
3298
3298
  typeof queueMicrotask == "function" ? queueMicrotask(e) : Promise.resolve().then(e).catch((u) => setTimeout(() => {
@@ -3340,7 +3340,7 @@ function It() {
3340
3340
  return H(() => () => e.dispose(), [e]), e;
3341
3341
  }
3342
3342
  let ge = (e, u) => {
3343
- su.isServer ? H(e, u) : xu(e, u);
3343
+ lu.isServer ? H(e, u) : ku(e, u);
3344
3344
  };
3345
3345
  function nr(e) {
3346
3346
  let u = S(e);
@@ -3348,9 +3348,9 @@ function nr(e) {
3348
3348
  u.current = e;
3349
3349
  }, [e]), u;
3350
3350
  }
3351
- let ae = function(e) {
3351
+ let se = function(e) {
3352
3352
  let u = nr(e);
3353
- return ue.useCallback((...t) => u.current(...t), [u]);
3353
+ return te.useCallback((...t) => u.current(...t), [u]);
3354
3354
  };
3355
3355
  function ti(e) {
3356
3356
  let u = e.width / 2, t = e.height / 2;
@@ -3360,9 +3360,9 @@ function ni(e, u) {
3360
3360
  return !(!e || !u || e.right < u.left || e.left > u.right || e.bottom < u.top || e.top > u.bottom);
3361
3361
  }
3362
3362
  function ri({ disabled: e = !1 } = {}) {
3363
- let u = S(null), [t, n] = V(!1), r = It(), o = ae(() => {
3363
+ let u = S(null), [t, n] = V(!1), r = It(), o = se(() => {
3364
3364
  u.current = null, n(!1), r.dispose();
3365
- }), i = ae((a) => {
3365
+ }), i = se((a) => {
3366
3366
  if (r.dispose(), u.current === null) {
3367
3367
  u.current = a.currentTarget, n(!0);
3368
3368
  {
@@ -3381,7 +3381,7 @@ function ri({ disabled: e = !1 } = {}) {
3381
3381
  function Uu(e) {
3382
3382
  return Se(() => e, Object.values(e));
3383
3383
  }
3384
- let oi = He(void 0);
3384
+ let oi = Ve(void 0);
3385
3385
  function Gu() {
3386
3386
  return xe(oi);
3387
3387
  }
@@ -3397,9 +3397,9 @@ function Zu(e, u, ...t) {
3397
3397
  throw Error.captureStackTrace && Error.captureStackTrace(n, Zu), n;
3398
3398
  }
3399
3399
  var rr = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(rr || {}), De = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(De || {});
3400
- function uu() {
3400
+ function tu() {
3401
3401
  let e = ai();
3402
- return P((u) => ii({ mergeRefs: e, ...u }), [e]);
3402
+ return R((u) => ii({ mergeRefs: e, ...u }), [e]);
3403
3403
  }
3404
3404
  function ii({ ourProps: e, theirProps: u, slot: t, defaultTag: n, features: r, visible: o = !0, name: i, mergeRefs: a }) {
3405
3405
  a = a ?? ci;
@@ -3432,20 +3432,20 @@ function Su(e, u = {}, t, n, r) {
3432
3432
  for (let f of h) d[`data-${f}`] = "";
3433
3433
  }
3434
3434
  }
3435
- if (lu(o) && (Object.keys(ze(c)).length > 0 || Object.keys(ze(d)).length > 0)) if (!i0(l) || Array.isArray(l) && l.length > 1 || li(l)) {
3436
- if (Object.keys(ze(c)).length > 0) throw new Error(['Passing props on "Fragment"!', "", `The current component <${n} /> is rendering a "Fragment".`, "However we need to passthrough the following props:", Object.keys(ze(c)).concat(Object.keys(ze(d))).map((p) => ` - ${p}`).join(`
3435
+ if (du(o) && (Object.keys(Pe(c)).length > 0 || Object.keys(Pe(d)).length > 0)) if (!i0(l) || Array.isArray(l) && l.length > 1 || li(l)) {
3436
+ if (Object.keys(Pe(c)).length > 0) throw new Error(['Passing props on "Fragment"!', "", `The current component <${n} /> is rendering a "Fragment".`, "However we need to passthrough the following props:", Object.keys(Pe(c)).concat(Object.keys(Pe(d))).map((p) => ` - ${p}`).join(`
3437
3437
  `), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".', "Render a single element as the child so that we can forward the props onto that element."].map((p) => ` - ${p}`).join(`
3438
3438
  `)].join(`
3439
3439
  `));
3440
3440
  } else {
3441
- let p = l.props, h = p?.className, f = typeof h == "function" ? (...C) => vt(h(...C), c.className) : vt(h, c.className), m = f ? { className: f } : {}, b = or(l.props, ze(at(c, ["ref"])));
3441
+ let p = l.props, h = p?.className, f = typeof h == "function" ? (...C) => vt(h(...C), c.className) : vt(h, c.className), m = f ? { className: f } : {}, b = or(l.props, Pe(at(c, ["ref"])));
3442
3442
  for (let C in d) C in b && delete d[C];
3443
3443
  return a0(l, Object.assign({}, b, d, s, { ref: r(si(l), s.ref) }, m));
3444
3444
  }
3445
- return Iu(o, Object.assign({}, at(c, ["ref"]), !lu(o) && s, !lu(o) && d), l);
3445
+ return Iu(o, Object.assign({}, at(c, ["ref"]), !du(o) && s, !du(o) && d), l);
3446
3446
  }
3447
3447
  function ai() {
3448
- let e = S([]), u = P((t) => {
3448
+ let e = S([]), u = R((t) => {
3449
3449
  for (let n of e.current) n != null && (typeof n == "function" ? n(t) : n.current = t);
3450
3450
  }, []);
3451
3451
  return (...t) => {
@@ -3486,11 +3486,11 @@ function ir(...e) {
3486
3486
  } });
3487
3487
  return u;
3488
3488
  }
3489
- function Ve(e) {
3489
+ function Ue(e) {
3490
3490
  var u;
3491
3491
  return Object.assign(Ft(e), { displayName: (u = e.displayName) != null ? u : e.name });
3492
3492
  }
3493
- function ze(e) {
3493
+ function Pe(e) {
3494
3494
  let u = Object.assign({}, e);
3495
3495
  for (let t in u) u[t] === void 0 && delete u[t];
3496
3496
  return u;
@@ -3501,21 +3501,21 @@ function at(e, u = []) {
3501
3501
  return t;
3502
3502
  }
3503
3503
  function si(e) {
3504
- return ue.version.split(".")[0] >= "19" ? e.props.ref : e.ref;
3504
+ return te.version.split(".")[0] >= "19" ? e.props.ref : e.ref;
3505
3505
  }
3506
- function lu(e) {
3506
+ function du(e) {
3507
3507
  return e === Nu || e === /* @__PURE__ */ Symbol.for("react.fragment");
3508
3508
  }
3509
3509
  function li(e) {
3510
- return lu(e.type);
3510
+ return du(e.type);
3511
3511
  }
3512
3512
  let di = "button";
3513
3513
  function fi(e, u) {
3514
3514
  var t;
3515
3515
  let n = Gu(), { disabled: r = n || !1, autoFocus: o = !1, ...i } = e, { isFocusVisible: a, focusProps: c } = tr({ autoFocus: o }), { isHovered: s, hoverProps: l } = ur({ isDisabled: r }), { pressed: d, pressProps: p } = ri({ disabled: r }), h = ir({ ref: u, type: (t = i.type) != null ? t : "button", disabled: r || void 0, autoFocus: o }, c, l, p), f = Uu({ disabled: r, hover: s, focus: a, active: d, autofocus: o });
3516
- return uu()({ ourProps: h, theirProps: i, slot: f, defaultTag: di, name: "Button" });
3516
+ return tu()({ ourProps: h, theirProps: i, slot: f, defaultTag: di, name: "Button" });
3517
3517
  }
3518
- let J = Ve(fi), hi = He(void 0);
3518
+ let ue = Ue(fi), hi = Ve(void 0);
3519
3519
  function ar() {
3520
3520
  return xe(hi);
3521
3521
  }
@@ -3543,12 +3543,12 @@ function Wu(...e) {
3543
3543
  H(() => {
3544
3544
  u.current = e;
3545
3545
  }, [e]);
3546
- let t = ae((n) => {
3546
+ let t = se((n) => {
3547
3547
  for (let r of u.current) r != null && (typeof r == "function" ? r(n) : r.current = n);
3548
3548
  });
3549
3549
  return e.every((n) => n == null || n?.[gi]) ? void 0 : t;
3550
3550
  }
3551
- let Rt = He(null);
3551
+ let Rt = Ve(null);
3552
3552
  Rt.displayName = "DescriptionContext";
3553
3553
  function lr() {
3554
3554
  let e = xe(Rt);
@@ -3567,11 +3567,11 @@ function Ci(e, u) {
3567
3567
  let t = At(), n = Gu(), { id: r = `headlessui-description-${t}`, ...o } = e, i = lr(), a = Wu(u);
3568
3568
  ge(() => i.register(r), [r, i.register]);
3569
3569
  let c = Uu({ ...i.slot, disabled: n || !1 }), s = { ref: a, ...i.props, id: r };
3570
- return uu()({ ourProps: s, theirProps: o, slot: c, defaultTag: ki, name: i.name || "Description" });
3570
+ return tu()({ ourProps: s, theirProps: o, slot: c, defaultTag: ki, name: i.name || "Description" });
3571
3571
  }
3572
- let vi = Ve(Ci);
3572
+ let vi = Ue(Ci);
3573
3573
  Object.assign(vi, {});
3574
- let zt = He(null);
3574
+ let zt = Ve(null);
3575
3575
  zt.displayName = "LabelContext";
3576
3576
  function dr() {
3577
3577
  let e = xe(zt);
@@ -3591,7 +3591,7 @@ function wi(e, u) {
3591
3591
  var t;
3592
3592
  let n = At(), r = dr(), o = ar(), i = Gu(), { id: a = `headlessui-label-${n}`, htmlFor: c = o ?? ((t = r.props) == null ? void 0 : t.htmlFor), passive: s = !1, ...l } = e, d = Wu(u);
3593
3593
  ge(() => r.register(a), [a, r.register]);
3594
- let p = ae((m) => {
3594
+ let p = se((m) => {
3595
3595
  let b = m.currentTarget;
3596
3596
  if (!(m.target !== m.currentTarget && mi(m.target)) && (un(b) && m.preventDefault(), r.props && "onClick" in r.props && typeof r.props.onClick == "function" && r.props.onClick(m), un(b))) {
3597
3597
  let C = document.getElementById(b.htmlFor);
@@ -3604,12 +3604,12 @@ function wi(e, u) {
3604
3604
  }
3605
3605
  }
3606
3606
  }), h = Uu({ ...r.slot, disabled: i || !1 }), f = { ref: d, ...r.props, id: a, htmlFor: c, onClick: p };
3607
- return s && ("onClick" in f && (delete f.htmlFor, delete f.onClick), "onClick" in l && delete l.onClick), uu()({ ourProps: f, theirProps: l, slot: h, defaultTag: c ? _i : "div", name: r.name || "Label" });
3607
+ return s && ("onClick" in f && (delete f.htmlFor, delete f.onClick), "onClick" in l && delete l.onClick), tu()({ ourProps: f, theirProps: l, slot: h, defaultTag: c ? _i : "div", name: r.name || "Label" });
3608
3608
  }
3609
- let Ei = Ve(wi);
3609
+ let Ei = Ue(wi);
3610
3610
  Object.assign(Ei, {});
3611
3611
  function Fi(e = 0) {
3612
- let [u, t] = V(e), n = P((c) => t(c), []), r = P((c) => t((s) => s | c), []), o = P((c) => (u & c) === c, [u]), i = P((c) => t((s) => s & ~c), []), a = P((c) => t((s) => s ^ c), []);
3612
+ let [u, t] = V(e), n = R((c) => t(c), []), r = R((c) => t((s) => s | c), []), o = R((c) => (u & c) === c, [u]), i = R((c) => t((s) => s & ~c), []), a = R((c) => t((s) => s ^ c), []);
3613
3613
  return { flags: u, setFlag: n, addFlag: r, hasFlag: o, removeFlag: i, toggleFlag: a };
3614
3614
  }
3615
3615
  var tn, nn;
@@ -3676,25 +3676,25 @@ function Li(e) {
3676
3676
  var u, t;
3677
3677
  return ((t = (u = e.getAnimations) == null ? void 0 : u.call(e)) != null ? t : []).some((n) => n instanceof CSSTransition && n.playState !== "finished");
3678
3678
  }
3679
- let Pt = He(null);
3679
+ let Pt = Ve(null);
3680
3680
  Pt.displayName = "OpenClosedContext";
3681
- var Be = ((e) => (e[e.Open = 1] = "Open", e[e.Closed = 2] = "Closed", e[e.Closing = 4] = "Closing", e[e.Opening = 8] = "Opening", e))(Be || {});
3681
+ var Oe = ((e) => (e[e.Open = 1] = "Open", e[e.Closed = 2] = "Closed", e[e.Closing = 4] = "Closing", e[e.Opening = 8] = "Opening", e))(Oe || {});
3682
3682
  function fr() {
3683
3683
  return xe(Pt);
3684
3684
  }
3685
3685
  function Ni({ value: e, children: u }) {
3686
- return ue.createElement(Pt.Provider, { value: e }, u);
3686
+ return te.createElement(Pt.Provider, { value: e }, u);
3687
3687
  }
3688
3688
  function Ii() {
3689
3689
  let e = typeof document > "u";
3690
- return "useSyncExternalStore" in q ? ((u) => u.useSyncExternalStore)(q)(() => () => {
3690
+ return "useSyncExternalStore" in O ? ((u) => u.useSyncExternalStore)(O)(() => () => {
3691
3691
  }, () => !1, () => !e) : !1;
3692
3692
  }
3693
3693
  function hr() {
3694
- let e = Ii(), [u, t] = q.useState(su.isHandoffComplete);
3695
- return u && su.isHandoffComplete === !1 && t(!1), q.useEffect(() => {
3694
+ let e = Ii(), [u, t] = O.useState(lu.isHandoffComplete);
3695
+ return u && lu.isHandoffComplete === !1 && t(!1), O.useEffect(() => {
3696
3696
  u !== !0 && t(!0);
3697
- }, [u]), q.useEffect(() => su.handoff(), []), e ? !1 : u;
3697
+ }, [u]), O.useEffect(() => lu.handoff(), []), e ? !1 : u;
3698
3698
  }
3699
3699
  function Ri() {
3700
3700
  let e = S(!1);
@@ -3704,9 +3704,9 @@ function Ri() {
3704
3704
  }
3705
3705
  function pr(e) {
3706
3706
  var u;
3707
- return !!(e.enter || e.enterFrom || e.enterTo || e.leave || e.leaveFrom || e.leaveTo) || !lu((u = e.as) != null ? u : mr) || ue.Children.count(e.children) === 1;
3707
+ return !!(e.enter || e.enterFrom || e.enterTo || e.leave || e.leaveFrom || e.leaveTo) || !du((u = e.as) != null ? u : mr) || te.Children.count(e.children) === 1;
3708
3708
  }
3709
- let Ku = He(null);
3709
+ let Ku = Ve(null);
3710
3710
  Ku.displayName = "TransitionContext";
3711
3711
  var zi = ((e) => (e.Visible = "visible", e.Hidden = "hidden", e))(zi || {});
3712
3712
  function Pi() {
@@ -3719,13 +3719,13 @@ function Bi() {
3719
3719
  if (e === null) throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
3720
3720
  return e;
3721
3721
  }
3722
- let Yu = He(null);
3722
+ let Yu = Ve(null);
3723
3723
  Yu.displayName = "NestingContext";
3724
3724
  function Ju(e) {
3725
3725
  return "children" in e ? Ju(e.children) : e.current.filter(({ el: u }) => u.current !== null).filter(({ state: u }) => u === "visible").length > 0;
3726
3726
  }
3727
3727
  function br(e, u) {
3728
- let t = nr(e), n = S([]), r = Ri(), o = It(), i = ae((h, f = De.Hidden) => {
3728
+ let t = nr(e), n = S([]), r = Ri(), o = It(), i = se((h, f = De.Hidden) => {
3729
3729
  let m = n.current.findIndex(({ el: b }) => b === h);
3730
3730
  m !== -1 && (Zu(f, { [De.Unmount]() {
3731
3731
  n.current.splice(m, 1);
@@ -3735,16 +3735,16 @@ function br(e, u) {
3735
3735
  var b;
3736
3736
  !Ju(n) && r.current && ((b = t.current) == null || b.call(t));
3737
3737
  }));
3738
- }), a = ae((h) => {
3738
+ }), a = se((h) => {
3739
3739
  let f = n.current.find(({ el: m }) => m === h);
3740
3740
  return f ? f.state !== "visible" && (f.state = "visible") : n.current.push({ el: h, state: "visible" }), () => i(h, De.Unmount);
3741
- }), c = S([]), s = S(Promise.resolve()), l = S({ enter: [], leave: [] }), d = ae((h, f, m) => {
3741
+ }), c = S([]), s = S(Promise.resolve()), l = S({ enter: [], leave: [] }), d = se((h, f, m) => {
3742
3742
  c.current.splice(0), u && (u.chains.current[f] = u.chains.current[f].filter(([b]) => b !== h)), u?.chains.current[f].push([h, new Promise((b) => {
3743
3743
  c.current.push(b);
3744
3744
  })]), u?.chains.current[f].push([h, new Promise((b) => {
3745
3745
  Promise.all(l.current[f].map(([C, g]) => g)).then(() => b());
3746
3746
  })]), f === "enter" ? s.current = s.current.then(() => u?.wait.current).then(() => m(f)) : m(f);
3747
- }), p = ae((h, f, m) => {
3747
+ }), p = se((h, f, m) => {
3748
3748
  Promise.all(l.current[f].splice(0).map(([b, C]) => C)).then(() => {
3749
3749
  var b;
3750
3750
  (b = c.current.shift()) == null || b();
@@ -3755,47 +3755,47 @@ function br(e, u) {
3755
3755
  let mr = Nu, gr = rr.RenderStrategy;
3756
3756
  function Oi(e, u) {
3757
3757
  var t, n;
3758
- let { transition: r = !0, beforeEnter: o, afterEnter: i, beforeLeave: a, afterLeave: c, enter: s, enterFrom: l, enterTo: d, entered: p, leave: h, leaveFrom: f, leaveTo: m, ...b } = e, [C, g] = V(null), k = S(null), v = pr(e), _ = Wu(...v ? [k, u, g] : u === null ? [] : [u]), E = (t = b.unmount) == null || t ? De.Unmount : De.Hidden, { show: w, appear: y, initial: I } = Pi(), [$, M] = V(w ? "visible" : "hidden"), Q = Bi(), { register: X, unregister: Y } = Q;
3759
- ge(() => X(k), [X, k]), ge(() => {
3760
- if (E === De.Hidden && k.current) {
3761
- if (w && $ !== "visible") {
3762
- M("visible");
3758
+ let { transition: r = !0, beforeEnter: o, afterEnter: i, beforeLeave: a, afterLeave: c, enter: s, enterFrom: l, enterTo: d, entered: p, leave: h, leaveFrom: f, leaveTo: m, ...b } = e, [C, g] = V(null), k = S(null), v = pr(e), _ = Wu(...v ? [k, u, g] : u === null ? [] : [u]), w = (t = b.unmount) == null || t ? De.Unmount : De.Hidden, { show: E, appear: y, initial: I } = Pi(), [P, N] = V(E ? "visible" : "hidden"), j = Bi(), { register: U, unregister: ee } = j;
3759
+ ge(() => U(k), [U, k]), ge(() => {
3760
+ if (w === De.Hidden && k.current) {
3761
+ if (E && P !== "visible") {
3762
+ N("visible");
3763
3763
  return;
3764
3764
  }
3765
- return Zu($, { hidden: () => Y(k), visible: () => X(k) });
3765
+ return Zu(P, { hidden: () => ee(k), visible: () => U(k) });
3766
3766
  }
3767
- }, [$, k, X, Y, w, E]);
3768
- let O = hr();
3767
+ }, [P, k, U, ee, E, w]);
3768
+ let B = hr();
3769
3769
  ge(() => {
3770
- if (v && O && $ === "visible" && k.current === null) throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
3771
- }, [k, $, O, v]);
3772
- let G = I && !y, ee = y && w && I, D = S(!1), fe = br(() => {
3773
- D.current || (M("hidden"), Y(k));
3774
- }, Q), Le = ae((R) => {
3770
+ if (v && B && P === "visible" && k.current === null) throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
3771
+ }, [k, P, B, v]);
3772
+ let G = I && !y, re = y && E && I, D = S(!1), pe = br(() => {
3773
+ D.current || (N("hidden"), ee(k));
3774
+ }, j), Le = se((T) => {
3775
3775
  D.current = !0;
3776
- let he = R ? "enter" : "leave";
3777
- fe.onStart(k, he, (pe) => {
3778
- pe === "enter" ? o?.() : pe === "leave" && a?.();
3776
+ let J = T ? "enter" : "leave";
3777
+ pe.onStart(k, J, (W) => {
3778
+ W === "enter" ? o?.() : W === "leave" && a?.();
3779
3779
  });
3780
- }), Ne = ae((R) => {
3781
- let he = R ? "enter" : "leave";
3782
- D.current = !1, fe.onStop(k, he, (pe) => {
3783
- pe === "enter" ? i?.() : pe === "leave" && c?.();
3784
- }), he === "leave" && !Ju(fe) && (M("hidden"), Y(k));
3780
+ }), we = se((T) => {
3781
+ let J = T ? "enter" : "leave";
3782
+ D.current = !1, pe.onStop(k, J, (W) => {
3783
+ W === "enter" ? i?.() : W === "leave" && c?.();
3784
+ }), J === "leave" && !Ju(pe) && (N("hidden"), ee(k));
3785
3785
  });
3786
3786
  H(() => {
3787
- v && r || (Le(w), Ne(w));
3788
- }, [w, v, r]);
3789
- let we = !(!r || !v || !O || G), [, z] = Ti(we, C, w, { start: Le, end: Ne }), T = ze({ ref: _, className: ((n = vt(b.className, ee && s, ee && l, z.enter && s, z.enter && z.closed && l, z.enter && !z.closed && d, z.leave && h, z.leave && !z.closed && f, z.leave && z.closed && m, !z.transition && w && p)) == null ? void 0 : n.trim()) || void 0, ...Di(z) }), B = 0;
3790
- $ === "visible" && (B |= Be.Open), $ === "hidden" && (B |= Be.Closed), w && $ === "hidden" && (B |= Be.Opening), !w && $ === "visible" && (B |= Be.Closing);
3791
- let re = uu();
3792
- return ue.createElement(Yu.Provider, { value: fe }, ue.createElement(Ni, { value: B }, re({ ourProps: T, theirProps: b, defaultTag: mr, features: gr, visible: $ === "visible", name: "Transition.Child" })));
3787
+ v && r || (Le(E), we(E));
3788
+ }, [E, v, r]);
3789
+ let Ne = !(!r || !v || !B || G), [, z] = Ti(Ne, C, E, { start: Le, end: we }), Y = Pe({ ref: _, className: ((n = vt(b.className, re && s, re && l, z.enter && s, z.enter && z.closed && l, z.enter && !z.closed && d, z.leave && h, z.leave && !z.closed && f, z.leave && z.closed && m, !z.transition && E && p)) == null ? void 0 : n.trim()) || void 0, ...Di(z) }), oe = 0;
3790
+ P === "visible" && (oe |= Oe.Open), P === "hidden" && (oe |= Oe.Closed), E && P === "hidden" && (oe |= Oe.Opening), !E && P === "visible" && (oe |= Oe.Closing);
3791
+ let $ = tu();
3792
+ return te.createElement(Yu.Provider, { value: pe }, te.createElement(Ni, { value: oe }, $({ ourProps: Y, theirProps: b, defaultTag: mr, features: gr, visible: P === "visible", name: "Transition.Child" })));
3793
3793
  }
3794
3794
  function qi(e, u) {
3795
3795
  let { show: t, appear: n = !1, unmount: r = !0, ...o } = e, i = S(null), a = pr(e), c = Wu(...a ? [i, u] : u === null ? [] : [u]);
3796
3796
  hr();
3797
3797
  let s = fr();
3798
- if (t === void 0 && s !== null && (t = (s & Be.Open) === Be.Open), t === void 0) throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");
3798
+ if (t === void 0 && s !== null && (t = (s & Oe.Open) === Oe.Open), t === void 0) throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");
3799
3799
  let [l, d] = V(t ? "visible" : "hidden"), p = br(() => {
3800
3800
  t || d("hidden");
3801
3801
  }), [h, f] = V(!0), m = S([t]);
@@ -3806,36 +3806,36 @@ function qi(e, u) {
3806
3806
  ge(() => {
3807
3807
  t ? d("visible") : !Ju(p) && i.current !== null && d("hidden");
3808
3808
  }, [t, p]);
3809
- let C = { unmount: r }, g = ae(() => {
3809
+ let C = { unmount: r }, g = se(() => {
3810
3810
  var _;
3811
3811
  h && f(!1), (_ = e.beforeEnter) == null || _.call(e);
3812
- }), k = ae(() => {
3812
+ }), k = se(() => {
3813
3813
  var _;
3814
3814
  h && f(!1), (_ = e.beforeLeave) == null || _.call(e);
3815
- }), v = uu();
3816
- return ue.createElement(Yu.Provider, { value: p }, ue.createElement(Ku.Provider, { value: b }, v({ ourProps: { ...C, as: Nu, children: ue.createElement(xr, { ref: c, ...C, ...o, beforeEnter: g, beforeLeave: k }) }, theirProps: {}, defaultTag: Nu, features: gr, visible: l === "visible", name: "Transition" })));
3815
+ }), v = tu();
3816
+ return te.createElement(Yu.Provider, { value: p }, te.createElement(Ku.Provider, { value: b }, v({ ourProps: { ...C, as: Nu, children: te.createElement(xr, { ref: c, ...C, ...o, beforeEnter: g, beforeLeave: k }) }, theirProps: {}, defaultTag: Nu, features: gr, visible: l === "visible", name: "Transition" })));
3817
3817
  }
3818
3818
  function ji(e, u) {
3819
3819
  let t = xe(Ku) !== null, n = fr() !== null;
3820
- return ue.createElement(ue.Fragment, null, !t && n ? ue.createElement(yt, { ref: u, ...e }) : ue.createElement(xr, { ref: u, ...e }));
3820
+ return te.createElement(te.Fragment, null, !t && n ? te.createElement(yt, { ref: u, ...e }) : te.createElement(xr, { ref: u, ...e }));
3821
3821
  }
3822
- let yt = Ve(qi), xr = Ve(Oi), Hi = Ve(ji), rn = Object.assign(yt, { Child: Hi, Root: yt }), Vi = "textarea";
3822
+ let yt = Ue(qi), xr = Ue(Oi), Hi = Ue(ji), rn = Object.assign(yt, { Child: Hi, Root: yt }), Vi = "textarea";
3823
3823
  function Ui(e, u) {
3824
3824
  let t = At(), n = ar(), r = Gu(), { id: o = n || `headlessui-textarea-${t}`, disabled: i = r || !1, autoFocus: a = !1, invalid: c = !1, ...s } = e, l = yi(), d = xi(), { isFocused: p, focusProps: h } = tr({ autoFocus: a }), { isHovered: f, hoverProps: m } = ur({ isDisabled: i }), b = ir({ ref: u, id: o, "aria-labelledby": l, "aria-describedby": d, "aria-invalid": c ? "true" : void 0, disabled: i || void 0, autoFocus: a }, h, m), C = Uu({ disabled: i, invalid: c, hover: f, focus: p, autofocus: a });
3825
- return uu()({ ourProps: b, theirProps: s, slot: C, defaultTag: Vi, name: "Textarea" });
3825
+ return tu()({ ourProps: b, theirProps: s, slot: C, defaultTag: Vi, name: "Textarea" });
3826
3826
  }
3827
- let Gi = Ve(Ui);
3828
- const Zi = (e) => /* @__PURE__ */ q.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ q.createElement("path", { d: "M8 1.25C6.66498 1.25 5.35994 1.64588 4.2499 2.38758C3.13987 3.12928 2.27471 4.18349 1.76382 5.41689C1.25292 6.65029 1.11925 8.00749 1.3797 9.31686C1.64015 10.6262 2.28303 11.829 3.22703 12.773C4.17104 13.717 5.37377 14.3598 6.68314 14.6203C7.99252 14.8808 9.34971 14.7471 10.5831 14.2362C11.8165 13.7253 12.8707 12.8601 13.6124 11.7501C14.3541 10.6401 14.75 9.33502 14.75 8C14.748 6.2104 14.0362 4.49466 12.7708 3.22922C11.5053 1.96378 9.78961 1.25199 8 1.25ZM8 13.25C6.96165 13.25 5.94662 12.9421 5.08326 12.3652C4.2199 11.7883 3.547 10.9684 3.14964 10.0091C2.75228 9.04978 2.64831 7.99418 2.85088 6.97578C3.05345 5.95738 3.55347 5.02191 4.28769 4.28769C5.02192 3.55346 5.95738 3.05345 6.97578 2.85088C7.99418 2.6483 9.04978 2.75227 10.0091 3.14963C10.9684 3.54699 11.7883 4.2199 12.3652 5.08326C12.9421 5.94661 13.25 6.96165 13.25 8C13.2485 9.39193 12.6949 10.7264 11.7107 11.7107C10.7264 12.6949 9.39193 13.2485 8 13.25ZM7.25 8.25V5C7.25 4.80109 7.32902 4.61032 7.46967 4.46967C7.61032 4.32902 7.80109 4.25 8 4.25C8.19892 4.25 8.38968 4.32902 8.53033 4.46967C8.67098 4.61032 8.75 4.80109 8.75 5V8.25C8.75 8.44891 8.67098 8.63968 8.53033 8.78033C8.38968 8.92098 8.19892 9 8 9C7.80109 9 7.61032 8.92098 7.46967 8.78033C7.32902 8.63968 7.25 8.44891 7.25 8.25ZM9 10.75C9 10.9478 8.94135 11.1411 8.83147 11.3056C8.72159 11.47 8.56541 11.5982 8.38269 11.6739C8.19996 11.7496 7.99889 11.7694 7.80491 11.7308C7.61093 11.6922 7.43275 11.597 7.2929 11.4571C7.15304 11.3173 7.0578 11.1391 7.01922 10.9451C6.98063 10.7511 7.00044 10.55 7.07612 10.3673C7.15181 10.1846 7.27998 10.0284 7.44443 9.91853C7.60888 9.80865 7.80222 9.75 8 9.75C8.26522 9.75 8.51957 9.85536 8.70711 10.0429C8.89465 10.2304 9 10.4848 9 10.75Z", fill: "currentColor" }));
3827
+ let Gi = Ue(Ui);
3828
+ const Zi = (e) => /* @__PURE__ */ O.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ O.createElement("path", { d: "M8 1.25C6.66498 1.25 5.35994 1.64588 4.2499 2.38758C3.13987 3.12928 2.27471 4.18349 1.76382 5.41689C1.25292 6.65029 1.11925 8.00749 1.3797 9.31686C1.64015 10.6262 2.28303 11.829 3.22703 12.773C4.17104 13.717 5.37377 14.3598 6.68314 14.6203C7.99252 14.8808 9.34971 14.7471 10.5831 14.2362C11.8165 13.7253 12.8707 12.8601 13.6124 11.7501C14.3541 10.6401 14.75 9.33502 14.75 8C14.748 6.2104 14.0362 4.49466 12.7708 3.22922C11.5053 1.96378 9.78961 1.25199 8 1.25ZM8 13.25C6.96165 13.25 5.94662 12.9421 5.08326 12.3652C4.2199 11.7883 3.547 10.9684 3.14964 10.0091C2.75228 9.04978 2.64831 7.99418 2.85088 6.97578C3.05345 5.95738 3.55347 5.02191 4.28769 4.28769C5.02192 3.55346 5.95738 3.05345 6.97578 2.85088C7.99418 2.6483 9.04978 2.75227 10.0091 3.14963C10.9684 3.54699 11.7883 4.2199 12.3652 5.08326C12.9421 5.94661 13.25 6.96165 13.25 8C13.2485 9.39193 12.6949 10.7264 11.7107 11.7107C10.7264 12.6949 9.39193 13.2485 8 13.25ZM7.25 8.25V5C7.25 4.80109 7.32902 4.61032 7.46967 4.46967C7.61032 4.32902 7.80109 4.25 8 4.25C8.19892 4.25 8.38968 4.32902 8.53033 4.46967C8.67098 4.61032 8.75 4.80109 8.75 5V8.25C8.75 8.44891 8.67098 8.63968 8.53033 8.78033C8.38968 8.92098 8.19892 9 8 9C7.80109 9 7.61032 8.92098 7.46967 8.78033C7.32902 8.63968 7.25 8.44891 7.25 8.25ZM9 10.75C9 10.9478 8.94135 11.1411 8.83147 11.3056C8.72159 11.47 8.56541 11.5982 8.38269 11.6739C8.19996 11.7496 7.99889 11.7694 7.80491 11.7308C7.61093 11.6922 7.43275 11.597 7.2929 11.4571C7.15304 11.3173 7.0578 11.1391 7.01922 10.9451C6.98063 10.7511 7.00044 10.55 7.07612 10.3673C7.15181 10.1846 7.27998 10.0284 7.44443 9.91853C7.60888 9.80865 7.80222 9.75 8 9.75C8.26522 9.75 8.51957 9.85536 8.70711 10.0429C8.89465 10.2304 9 10.4848 9 10.75Z", fill: "currentColor" }));
3829
3829
  function kr({
3830
3830
  message: e,
3831
3831
  className: u,
3832
3832
  ...t
3833
3833
  }) {
3834
- return /* @__PURE__ */ N(
3834
+ return /* @__PURE__ */ L(
3835
3835
  "div",
3836
3836
  {
3837
3837
  ...t,
3838
- className: U(
3838
+ className: Z(
3839
3839
  "message flex h-fit min-h-9 w-fit max-w-70 flex-row items-center justify-center gap-1 bg-black",
3840
3840
  u
3841
3841
  ),
@@ -3857,13 +3857,13 @@ function Wi({
3857
3857
  "div",
3858
3858
  {
3859
3859
  ...n,
3860
- "data-author": u === oe.Customer ? "customer" : "agent",
3861
- className: U(
3860
+ "data-author": u === ae.Customer ? "customer" : "agent",
3861
+ className: Z(
3862
3862
  "message flex h-fit min-h-8 w-fit max-w-[86%] items-center justify-center text-start",
3863
3863
  {
3864
- "ms-2 self-start rounded-es-[5px]": u === oe.Agent,
3864
+ "ms-2 self-start rounded-es-[5px]": u === ae.Agent,
3865
3865
  "ms-2 self-center rounded-es-[5px]": u === "REACTION_MESSAGE",
3866
- "me-2 self-end rounded-ee-[5px]": u === oe.Customer
3866
+ "me-2 self-end rounded-ee-[5px]": u === ae.Customer
3867
3867
  },
3868
3868
  t
3869
3869
  ),
@@ -3872,7 +3872,7 @@ function Wi({
3872
3872
  );
3873
3873
  }
3874
3874
  function vr({ className: e }) {
3875
- const { t: u } = le(), {
3875
+ const { t: u } = fe(), {
3876
3876
  cta: t,
3877
3877
  ctaBusy: n,
3878
3878
  ctaButtonLabel: r,
@@ -3882,23 +3882,23 @@ function vr({ className: e }) {
3882
3882
  ctaManualCommand: c,
3883
3883
  executeCta: s,
3884
3884
  dismissCta: l
3885
- } = ku();
3886
- return t ? /* @__PURE__ */ N("div", { className: U("flex max-w-full flex-col gap-1.5", e), children: [
3887
- /* @__PURE__ */ N("div", { className: "flex items-center gap-2", children: [
3885
+ } = Cu();
3886
+ return t ? /* @__PURE__ */ L("div", { className: Z("flex max-w-full flex-col gap-1.5", e), children: [
3887
+ /* @__PURE__ */ L("div", { className: "flex items-center gap-2", children: [
3888
3888
  /* @__PURE__ */ x(
3889
- J,
3889
+ ue,
3890
3890
  {
3891
3891
  type: "button",
3892
3892
  disabled: n,
3893
3893
  onClick: () => {
3894
3894
  s();
3895
3895
  },
3896
- className: "chat-cta-primary data-disabled:opacity-50",
3896
+ className: "chat-cta-primary chat-cta-action data-disabled:opacity-50",
3897
3897
  children: r
3898
3898
  }
3899
3899
  ),
3900
3900
  /* @__PURE__ */ x(
3901
- J,
3901
+ ue,
3902
3902
  {
3903
3903
  type: "button",
3904
3904
  disabled: n,
@@ -3920,7 +3920,7 @@ function vr({ className: e }) {
3920
3920
  children: u("cta.openTelegram", { username: i })
3921
3921
  }
3922
3922
  ),
3923
- c && /* @__PURE__ */ N("p", { className: "max-w-72 text-xs text-white/65", children: [
3923
+ c && /* @__PURE__ */ L("p", { className: "max-w-72 text-xs text-white/65", children: [
3924
3924
  u("cta.manualCommand"),
3925
3925
  " ",
3926
3926
  /* @__PURE__ */ x("code", { className: "break-all", dir: "ltr", children: c })
@@ -3928,26 +3928,26 @@ function vr({ className: e }) {
3928
3928
  ] }) : null;
3929
3929
  }
3930
3930
  function Ki({ className: e }) {
3931
- const { t: u } = le(), { config: t, api: n, reactionMessage: r } = ku(), o = ju(), { networkStatus: i } = Dt(), {
3931
+ const { t: u } = fe(), { config: t, api: n, reactionMessage: r } = Cu(), o = ju(), { networkStatus: i } = Dt(), {
3932
3932
  startListening: a,
3933
3933
  stopListening: c,
3934
3934
  endVoiceChat: s,
3935
3935
  acceptConversation: l,
3936
3936
  declineConversation: d
3937
- } = c0(), p = Ue((M) => M.pendingInvitation), h = Ue((M) => M.status), f = Ue((M) => M.errorMessage), m = Ue((M) => M.errorCode), b = Ue((M) => M.microphoneEnabled), C = Ue(
3938
- (M) => M.assistantResponseInProgress
3939
- ), [g, k] = V(!1), v = P(async () => {
3937
+ } = c0(), p = Ge((N) => N.pendingInvitation), h = Ge((N) => N.status), f = Ge((N) => N.errorMessage), m = Ge((N) => N.errorCode), b = Ge((N) => N.microphoneEnabled), C = Ge(
3938
+ (N) => N.assistantResponseInProgress
3939
+ ), [g, k] = V(!1), v = R(async () => {
3940
3940
  k(!0);
3941
3941
  try {
3942
3942
  await l(t, n);
3943
- } catch (M) {
3944
- console.error("voice invitation failed", M);
3943
+ } catch (N) {
3944
+ console.error("voice invitation failed", N);
3945
3945
  } finally {
3946
3946
  k(!1);
3947
3947
  }
3948
- }, [l, n, t]), _ = P(async () => {
3949
- await d(t, n), o(se.text);
3950
- }, [n, t, d, o]), E = P(async () => {
3948
+ }, [l, n, t]), _ = R(async () => {
3949
+ await d(t, n), o(de.text);
3950
+ }, [n, t, d, o]), w = R(async () => {
3951
3951
  if (p) {
3952
3952
  await v();
3953
3953
  return;
@@ -3958,8 +3958,8 @@ function Ki({ className: e }) {
3958
3958
  }
3959
3959
  try {
3960
3960
  await a(t, n);
3961
- } catch (M) {
3962
- console.error("voice init error", M);
3961
+ } catch (N) {
3962
+ console.error("voice init error", N);
3963
3963
  }
3964
3964
  }, [
3965
3965
  v,
@@ -3969,23 +3969,23 @@ function Ki({ className: e }) {
3969
3969
  p,
3970
3970
  a,
3971
3971
  c
3972
- ]), w = P(async () => {
3973
- await s(), o(se.text);
3972
+ ]), E = R(async () => {
3973
+ await s(), o(de.text);
3974
3974
  }, [s, o]);
3975
3975
  H(() => () => {
3976
3976
  s();
3977
3977
  }, [s]);
3978
- const y = Se(() => i === Ru.Unavailable ? u(au.connectionFailed) : i === Ru.Offline ? u(au.offline) : m ? u(s0[m]) : f || null, [i, u, m, f]), I = Se(() => u(h === "connecting" ? "voice.connecting" : h === "speaking" || C ? "voice.speaking" : p ? "voice.incoming" : b ? "voice.startTalking" : "voice.muted"), [
3978
+ const y = Se(() => i === Ru.Unavailable ? u(cu.connectionFailed) : i === Ru.Offline ? u(cu.offline) : m ? u(s0[m]) : f || null, [i, u, m, f]), I = Se(() => u(h === "connecting" ? "voice.connecting" : h === "speaking" || C ? "voice.speaking" : p ? "voice.incoming" : b ? "voice.startTalking" : "voice.muted"), [
3979
3979
  C,
3980
3980
  b,
3981
3981
  p,
3982
3982
  u,
3983
3983
  h
3984
- ]), $ = !r && y;
3985
- return /* @__PURE__ */ N(
3984
+ ]), P = !r && y;
3985
+ return /* @__PURE__ */ L(
3986
3986
  "div",
3987
3987
  {
3988
- className: U(
3988
+ className: Z(
3989
3989
  "z-1 flex min-h-0 flex-1 flex-col items-center justify-end px-4 pb-3",
3990
3990
  e
3991
3991
  ),
@@ -3998,13 +3998,13 @@ function Ki({ className: e }) {
3998
3998
  source: Cr.ReactionMessage
3999
3999
  }
4000
4000
  ),
4001
- p && !r && /* @__PURE__ */ N("div", { className: "chat-voice-card mb-5 flex max-w-70 flex-col items-center gap-2.5 p-4 text-center text-white", children: [
4001
+ p && !r && /* @__PURE__ */ L("div", { className: "chat-voice-card mb-5 flex max-w-70 flex-col items-center gap-2.5 p-4 text-center text-white", children: [
4002
4002
  /* @__PURE__ */ x("p", { className: "text-sm font-semibold", children: u("voice.calling") }),
4003
4003
  /* @__PURE__ */ x("p", { className: "text-[13px] leading-5 text-white/80", children: p.text }),
4004
4004
  /* @__PURE__ */ x("p", { className: "text-xs text-white/70", children: u("voice.aiDisclosure") }),
4005
- /* @__PURE__ */ N("div", { className: "flex gap-2", children: [
4005
+ /* @__PURE__ */ L("div", { className: "flex gap-2", children: [
4006
4006
  /* @__PURE__ */ x(
4007
- J,
4007
+ ue,
4008
4008
  {
4009
4009
  type: "button",
4010
4010
  disabled: g,
@@ -4016,7 +4016,7 @@ function Ki({ className: e }) {
4016
4016
  }
4017
4017
  ),
4018
4018
  /* @__PURE__ */ x(
4019
- J,
4019
+ ue,
4020
4020
  {
4021
4021
  type: "button",
4022
4022
  disabled: g,
@@ -4029,10 +4029,10 @@ function Ki({ className: e }) {
4029
4029
  )
4030
4030
  ] })
4031
4031
  ] }),
4032
- $ && /* @__PURE__ */ x(kr, { className: "mb-5", message: y }),
4032
+ P && /* @__PURE__ */ x(kr, { className: "mb-5", message: y }),
4033
4033
  /* @__PURE__ */ x(vr, { className: "mb-5 items-center text-center" }),
4034
- /* @__PURE__ */ N("div", { className: "flex flex-col items-center gap-3", children: [
4035
- /* @__PURE__ */ N("div", { className: "flex flex-col items-center gap-2.5 text-white", children: [
4034
+ /* @__PURE__ */ L("div", { className: "flex flex-col items-center gap-3", children: [
4035
+ /* @__PURE__ */ L("div", { className: "flex flex-col items-center gap-2.5 text-white", children: [
4036
4036
  /* @__PURE__ */ x(
4037
4037
  "span",
4038
4038
  {
@@ -4042,23 +4042,23 @@ function Ki({ className: e }) {
4042
4042
  }
4043
4043
  ),
4044
4044
  /* @__PURE__ */ x(
4045
- J,
4045
+ ue,
4046
4046
  {
4047
4047
  "aria-label": u(b ? "voice.muteMicrophone" : "voice.unmuteMicrophone"),
4048
- className: U(
4048
+ className: Z(
4049
4049
  "chat-microphone-button",
4050
4050
  b && "chat-microphone-button_active"
4051
4051
  ),
4052
- onClick: E,
4052
+ onClick: w,
4053
4053
  disabled: g || h === "connecting",
4054
4054
  children: b ? /* @__PURE__ */ x(M0, {}) : /* @__PURE__ */ x(L0, {})
4055
4055
  }
4056
4056
  )
4057
4057
  ] }),
4058
4058
  /* @__PURE__ */ x(
4059
- J,
4059
+ ue,
4060
4060
  {
4061
- onClick: w,
4061
+ onClick: E,
4062
4062
  "aria-label": u("voice.switchToText"),
4063
4063
  className: "chat-icon-button h-9 w-9",
4064
4064
  children: /* @__PURE__ */ x(N0, { className: "h-4 w-4" })
@@ -4069,7 +4069,7 @@ function Ki({ className: e }) {
4069
4069
  }
4070
4070
  );
4071
4071
  }
4072
- const Yi = (e) => /* @__PURE__ */ q.createElement("svg", { width: 15, height: 17, viewBox: "0 0 15 17", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ q.createElement("path", { d: "M1.875 5.9375V10.9375C1.875 11.1861 1.77623 11.4246 1.60041 11.6004C1.4246 11.7762 1.18614 11.875 0.9375 11.875C0.68886 11.875 0.450403 11.7762 0.274587 11.6004C0.0987719 11.4246 0 11.1861 0 10.9375V5.9375C0 5.68886 0.0987719 5.4504 0.274587 5.27459C0.450403 5.09877 0.68886 5 0.9375 5C1.18614 5 1.4246 5.09877 1.60041 5.27459C1.77623 5.4504 1.875 5.68886 1.875 5.9375ZM4.0625 0C3.81386 0 3.5754 0.0987721 3.39959 0.274587C3.22377 0.450403 3.125 0.68886 3.125 0.9375V15.9375C3.125 16.1861 3.22377 16.4246 3.39959 16.6004C3.5754 16.7762 3.81386 16.875 4.0625 16.875C4.31114 16.875 4.5496 16.7762 4.72541 16.6004C4.90123 16.4246 5 16.1861 5 15.9375V0.9375C5 0.68886 4.90123 0.450403 4.72541 0.274587C4.5496 0.0987721 4.31114 0 4.0625 0ZM7.1875 2.5C6.93886 2.5 6.7004 2.59877 6.52459 2.77459C6.34877 2.9504 6.25 3.18886 6.25 3.4375V13.4375C6.25 13.6861 6.34877 13.9246 6.52459 14.1004C6.7004 14.2762 6.93886 14.375 7.1875 14.375C7.43614 14.375 7.6746 14.2762 7.85041 14.1004C8.02623 13.9246 8.125 13.6861 8.125 13.4375V3.4375C8.125 3.18886 8.02623 2.9504 7.85041 2.77459C7.6746 2.59877 7.43614 2.5 7.1875 2.5ZM10.3125 5C10.0639 5 9.8254 5.09877 9.64959 5.27459C9.47377 5.4504 9.375 5.68886 9.375 5.9375V10.9375C9.375 11.1861 9.47377 11.4246 9.64959 11.6004C9.8254 11.7762 10.0639 11.875 10.3125 11.875C10.5611 11.875 10.7996 11.7762 10.9754 11.6004C11.1512 11.4246 11.25 11.1861 11.25 10.9375V5.9375C11.25 5.68886 11.1512 5.4504 10.9754 5.27459C10.7996 5.09877 10.5611 5 10.3125 5ZM13.4375 3.75C13.1889 3.75 12.9504 3.84877 12.7746 4.02459C12.5988 4.2004 12.5 4.43886 12.5 4.6875V12.1875C12.5 12.4361 12.5988 12.6746 12.7746 12.8504C12.9504 13.0262 13.1889 13.125 13.4375 13.125C13.6861 13.125 13.9246 13.0262 14.1004 12.8504C14.2762 12.6746 14.375 12.4361 14.375 12.1875V4.6875C14.375 4.43886 14.2762 4.2004 14.1004 4.02459C13.9246 3.84877 13.6861 3.75 13.4375 3.75Z" })), Ji = (e) => /* @__PURE__ */ q.createElement("svg", { width: 22, height: 22, viewBox: "0 0 22 22", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ q.createElement("path", { d: "M21.1996 0.549377C20.9639 0.313669 20.6697 0.14503 20.3472 0.0608259C20.0248 -0.0233778 19.6857 -0.0201025 19.3649 0.0703145L19.3443 0.076877L1.35269 5.53125C0.987805 5.63709 0.663677 5.85127 0.423239 6.14544C0.182802 6.43961 0.0374012 6.79987 0.00629592 7.17853C-0.0248094 7.55718 0.0598483 7.93634 0.249056 8.26581C0.438264 8.59527 0.723094 8.85948 1.06582 9.02344L8.90519 12.8438L12.7218 20.6859C12.8723 21.006 13.111 21.2764 13.41 21.4654C13.7089 21.6544 14.0556 21.7541 14.4093 21.7528C14.4627 21.7528 14.5171 21.7528 14.5714 21.7463C14.9511 21.717 15.3126 21.5719 15.6071 21.3304C15.9015 21.0889 16.1147 20.7628 16.2177 20.3963L21.6721 2.40469C21.6748 2.398 21.677 2.39111 21.6786 2.38406C21.769 2.06327 21.7723 1.72418 21.6881 1.4017C21.6039 1.07922 21.4353 0.785013 21.1996 0.549377ZM14.3343 18.8503L11.1121 12.2278L15.4246 7.92C15.5292 7.81536 15.6122 7.69112 15.6689 7.55439C15.7255 7.41767 15.7546 7.27112 15.7546 7.12313C15.7546 6.97513 15.7255 6.82859 15.6689 6.69186C15.6122 6.55513 15.5292 6.4309 15.4246 6.32625C15.3199 6.22161 15.1957 6.13859 15.059 6.08196C14.9222 6.02533 14.7757 5.99618 14.6277 5.99618C14.4797 5.99618 14.3332 6.02533 14.1964 6.08196C14.0597 6.13859 13.9355 6.22161 13.8308 6.32625L9.51832 10.6388L2.89863 7.41469L19.3114 2.4375L14.3343 18.8503Z" })), Qi = (e) => /* @__PURE__ */ q.createElement("svg", { width: 21, height: 21, viewBox: "0 0 21 21", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ q.createElement("path", { d: "M20.9437 1.90279C20.9437 1.90279 20.9437 1.91216 20.9437 1.91685L15.4874 19.9112C15.4048 20.2035 15.2348 20.4635 15.0002 20.6564C14.7656 20.8493 14.4776 20.9658 14.1749 20.9903C14.1318 20.994 14.0887 20.9959 14.0455 20.9959C13.7619 20.9968 13.4838 20.9165 13.2443 20.7645C13.0048 20.6125 12.8137 20.3952 12.6937 20.1381L9.28117 13.135C9.24703 13.0648 9.23563 12.9857 9.24857 12.9087C9.26151 12.8318 9.29814 12.7608 9.35336 12.7056L14.7834 7.2756C14.9181 7.1338 14.9921 6.94499 14.9896 6.74942C14.9871 6.55385 14.9083 6.36699 14.77 6.22869C14.6317 6.09039 14.4448 6.01158 14.2492 6.00908C14.0537 6.00658 13.8648 6.08057 13.723 6.21529L8.29024 11.6453C8.23508 11.7005 8.16407 11.7371 8.0871 11.7501C8.01013 11.763 7.93104 11.7516 7.86086 11.7175L0.851173 8.30591C0.577067 8.17441 0.34939 7.96272 0.198314 7.69889C0.047238 7.43506 -0.0201046 7.13156 0.00521012 6.8286C0.0305249 6.52563 0.147302 6.23751 0.340066 6.00242C0.53283 5.76732 0.792481 5.59635 1.08461 5.51216L19.079 0.0559103H19.093C19.3493 -0.0160696 19.62 -0.018593 19.8775 0.0485989C20.135 0.115791 20.37 0.250279 20.5583 0.438265C20.7467 0.626251 20.8817 0.860966 20.9494 1.11833C21.0171 1.37569 21.0151 1.64644 20.9437 1.90279Z" }));
4072
+ const Yi = (e) => /* @__PURE__ */ O.createElement("svg", { width: 15, height: 17, viewBox: "0 0 15 17", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ O.createElement("path", { d: "M1.875 5.9375V10.9375C1.875 11.1861 1.77623 11.4246 1.60041 11.6004C1.4246 11.7762 1.18614 11.875 0.9375 11.875C0.68886 11.875 0.450403 11.7762 0.274587 11.6004C0.0987719 11.4246 0 11.1861 0 10.9375V5.9375C0 5.68886 0.0987719 5.4504 0.274587 5.27459C0.450403 5.09877 0.68886 5 0.9375 5C1.18614 5 1.4246 5.09877 1.60041 5.27459C1.77623 5.4504 1.875 5.68886 1.875 5.9375ZM4.0625 0C3.81386 0 3.5754 0.0987721 3.39959 0.274587C3.22377 0.450403 3.125 0.68886 3.125 0.9375V15.9375C3.125 16.1861 3.22377 16.4246 3.39959 16.6004C3.5754 16.7762 3.81386 16.875 4.0625 16.875C4.31114 16.875 4.5496 16.7762 4.72541 16.6004C4.90123 16.4246 5 16.1861 5 15.9375V0.9375C5 0.68886 4.90123 0.450403 4.72541 0.274587C4.5496 0.0987721 4.31114 0 4.0625 0ZM7.1875 2.5C6.93886 2.5 6.7004 2.59877 6.52459 2.77459C6.34877 2.9504 6.25 3.18886 6.25 3.4375V13.4375C6.25 13.6861 6.34877 13.9246 6.52459 14.1004C6.7004 14.2762 6.93886 14.375 7.1875 14.375C7.43614 14.375 7.6746 14.2762 7.85041 14.1004C8.02623 13.9246 8.125 13.6861 8.125 13.4375V3.4375C8.125 3.18886 8.02623 2.9504 7.85041 2.77459C7.6746 2.59877 7.43614 2.5 7.1875 2.5ZM10.3125 5C10.0639 5 9.8254 5.09877 9.64959 5.27459C9.47377 5.4504 9.375 5.68886 9.375 5.9375V10.9375C9.375 11.1861 9.47377 11.4246 9.64959 11.6004C9.8254 11.7762 10.0639 11.875 10.3125 11.875C10.5611 11.875 10.7996 11.7762 10.9754 11.6004C11.1512 11.4246 11.25 11.1861 11.25 10.9375V5.9375C11.25 5.68886 11.1512 5.4504 10.9754 5.27459C10.7996 5.09877 10.5611 5 10.3125 5ZM13.4375 3.75C13.1889 3.75 12.9504 3.84877 12.7746 4.02459C12.5988 4.2004 12.5 4.43886 12.5 4.6875V12.1875C12.5 12.4361 12.5988 12.6746 12.7746 12.8504C12.9504 13.0262 13.1889 13.125 13.4375 13.125C13.6861 13.125 13.9246 13.0262 14.1004 12.8504C14.2762 12.6746 14.375 12.4361 14.375 12.1875V4.6875C14.375 4.43886 14.2762 4.2004 14.1004 4.02459C13.9246 3.84877 13.6861 3.75 13.4375 3.75Z" })), Ji = (e) => /* @__PURE__ */ O.createElement("svg", { width: 22, height: 22, viewBox: "0 0 22 22", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ O.createElement("path", { d: "M21.1996 0.549377C20.9639 0.313669 20.6697 0.14503 20.3472 0.0608259C20.0248 -0.0233778 19.6857 -0.0201025 19.3649 0.0703145L19.3443 0.076877L1.35269 5.53125C0.987805 5.63709 0.663677 5.85127 0.423239 6.14544C0.182802 6.43961 0.0374012 6.79987 0.00629592 7.17853C-0.0248094 7.55718 0.0598483 7.93634 0.249056 8.26581C0.438264 8.59527 0.723094 8.85948 1.06582 9.02344L8.90519 12.8438L12.7218 20.6859C12.8723 21.006 13.111 21.2764 13.41 21.4654C13.7089 21.6544 14.0556 21.7541 14.4093 21.7528C14.4627 21.7528 14.5171 21.7528 14.5714 21.7463C14.9511 21.717 15.3126 21.5719 15.6071 21.3304C15.9015 21.0889 16.1147 20.7628 16.2177 20.3963L21.6721 2.40469C21.6748 2.398 21.677 2.39111 21.6786 2.38406C21.769 2.06327 21.7723 1.72418 21.6881 1.4017C21.6039 1.07922 21.4353 0.785013 21.1996 0.549377ZM14.3343 18.8503L11.1121 12.2278L15.4246 7.92C15.5292 7.81536 15.6122 7.69112 15.6689 7.55439C15.7255 7.41767 15.7546 7.27112 15.7546 7.12313C15.7546 6.97513 15.7255 6.82859 15.6689 6.69186C15.6122 6.55513 15.5292 6.4309 15.4246 6.32625C15.3199 6.22161 15.1957 6.13859 15.059 6.08196C14.9222 6.02533 14.7757 5.99618 14.6277 5.99618C14.4797 5.99618 14.3332 6.02533 14.1964 6.08196C14.0597 6.13859 13.9355 6.22161 13.8308 6.32625L9.51832 10.6388L2.89863 7.41469L19.3114 2.4375L14.3343 18.8503Z" })), Qi = (e) => /* @__PURE__ */ O.createElement("svg", { width: 21, height: 21, viewBox: "0 0 21 21", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ O.createElement("path", { d: "M20.9437 1.90279C20.9437 1.90279 20.9437 1.91216 20.9437 1.91685L15.4874 19.9112C15.4048 20.2035 15.2348 20.4635 15.0002 20.6564C14.7656 20.8493 14.4776 20.9658 14.1749 20.9903C14.1318 20.994 14.0887 20.9959 14.0455 20.9959C13.7619 20.9968 13.4838 20.9165 13.2443 20.7645C13.0048 20.6125 12.8137 20.3952 12.6937 20.1381L9.28117 13.135C9.24703 13.0648 9.23563 12.9857 9.24857 12.9087C9.26151 12.8318 9.29814 12.7608 9.35336 12.7056L14.7834 7.2756C14.9181 7.1338 14.9921 6.94499 14.9896 6.74942C14.9871 6.55385 14.9083 6.36699 14.77 6.22869C14.6317 6.09039 14.4448 6.01158 14.2492 6.00908C14.0537 6.00658 13.8648 6.08057 13.723 6.21529L8.29024 11.6453C8.23508 11.7005 8.16407 11.7371 8.0871 11.7501C8.01013 11.763 7.93104 11.7516 7.86086 11.7175L0.851173 8.30591C0.577067 8.17441 0.34939 7.96272 0.198314 7.69889C0.047238 7.43506 -0.0201046 7.13156 0.00521012 6.8286C0.0305249 6.52563 0.147302 6.23751 0.340066 6.00242C0.53283 5.76732 0.792481 5.59635 1.08461 5.51216L19.079 0.0559103H19.093C19.3493 -0.0160696 19.62 -0.018593 19.8775 0.0485989C20.135 0.115791 20.37 0.250279 20.5583 0.438265C20.7467 0.626251 20.8817 0.860966 20.9494 1.11833C21.0171 1.37569 21.0151 1.64644 20.9437 1.90279Z" }));
4073
4073
  function Xi(e, {
4074
4074
  nodeMapping: u,
4075
4075
  markMapping: t,
@@ -4134,7 +4134,7 @@ function on(e) {
4134
4134
  const u = Object.entries(e || {}).filter(([, t]) => t != null).map(([t, n]) => `${t.split(" ").at(-1)}="${ua(String(n))}"`).join(" ");
4135
4135
  return u ? ` ${u}` : "";
4136
4136
  }
4137
- function We(e) {
4137
+ function Ke(e) {
4138
4138
  return [].concat(e || "").filter(Boolean).join("");
4139
4139
  }
4140
4140
  const an = {};
@@ -4153,8 +4153,8 @@ function ta(e) {
4153
4153
  }
4154
4154
  return u;
4155
4155
  }
4156
- function Je(e, u) {
4157
- typeof u != "string" && (u = Je.defaultChars);
4156
+ function Qe(e, u) {
4157
+ typeof u != "string" && (u = Qe.defaultChars);
4158
4158
  const t = ta(u);
4159
4159
  return e.replace(/(%[a-f0-9]{2})+/gi, function(n) {
4160
4160
  let r = "";
@@ -4193,8 +4193,8 @@ function Je(e, u) {
4193
4193
  return r;
4194
4194
  });
4195
4195
  }
4196
- Je.defaultChars = ";/?:@&=+$,#";
4197
- Je.componentChars = "";
4196
+ Qe.defaultChars = ";/?:@&=+$,#";
4197
+ Qe.componentChars = "";
4198
4198
  const cn = {};
4199
4199
  function na(e) {
4200
4200
  let u = cn[e];
@@ -4209,8 +4209,8 @@ function na(e) {
4209
4209
  u[e.charCodeAt(t)] = e[t];
4210
4210
  return u;
4211
4211
  }
4212
- function vu(e, u, t) {
4213
- typeof u != "string" && (t = u, u = vu.defaultChars), typeof t > "u" && (t = !0);
4212
+ function yu(e, u, t) {
4213
+ typeof u != "string" && (t = u, u = yu.defaultChars), typeof t > "u" && (t = !0);
4214
4214
  const n = na(u);
4215
4215
  let r = "";
4216
4216
  for (let o = 0, i = e.length; o < i; o++) {
@@ -4238,8 +4238,8 @@ function vu(e, u, t) {
4238
4238
  }
4239
4239
  return r;
4240
4240
  }
4241
- vu.defaultChars = ";/?:@&=+$,-_.!~*'()#";
4242
- vu.componentChars = "-_.!~*'()";
4241
+ yu.defaultChars = ";/?:@&=+$,-_.!~*'()#";
4242
+ yu.componentChars = "-_.!~*'()";
4243
4243
  function Bt(e) {
4244
4244
  let u = "";
4245
4245
  return u += e.protocol || "", u += e.slashes ? "//" : "", u += e.auth ? e.auth + "@" : "", e.hostname && e.hostname.indexOf(":") !== -1 ? u += "[" + e.hostname + "]" : u += e.hostname || "", u += e.port ? ":" + e.port : "", u += e.pathname || "", u += e.search || "", u += e.hash || "", u;
@@ -4317,8 +4317,8 @@ Ou.prototype.parseHost = function(e) {
4317
4317
  };
4318
4318
  const fa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4319
4319
  __proto__: null,
4320
- decode: Je,
4321
- encode: vu,
4320
+ decode: Qe,
4321
+ encode: yu,
4322
4322
  format: Bt,
4323
4323
  parse: Ot
4324
4324
  }, Symbol.toStringTag, { value: "Module" })), yr = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, _r = /[\0-\x1F\x7F-\x9F]/, ha = /[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/, qt = /[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/, wr = /[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/, Er = /[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
@@ -4378,42 +4378,42 @@ function ka(e) {
4378
4378
  var u;
4379
4379
  return e >= 55296 && e <= 57343 || e > 1114111 ? 65533 : (u = ga.get(e)) !== null && u !== void 0 ? u : e;
4380
4380
  }
4381
- var K;
4381
+ var X;
4382
4382
  (function(e) {
4383
4383
  e[e.NUM = 35] = "NUM", e[e.SEMI = 59] = "SEMI", e[e.EQUALS = 61] = "EQUALS", e[e.ZERO = 48] = "ZERO", e[e.NINE = 57] = "NINE", e[e.LOWER_A = 97] = "LOWER_A", e[e.LOWER_F = 102] = "LOWER_F", e[e.LOWER_X = 120] = "LOWER_X", e[e.LOWER_Z = 122] = "LOWER_Z", e[e.UPPER_A = 65] = "UPPER_A", e[e.UPPER_F = 70] = "UPPER_F", e[e.UPPER_Z = 90] = "UPPER_Z";
4384
- })(K || (K = {}));
4384
+ })(X || (X = {}));
4385
4385
  const Ca = 32;
4386
4386
  var Te;
4387
4387
  (function(e) {
4388
4388
  e[e.VALUE_LENGTH = 49152] = "VALUE_LENGTH", e[e.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", e[e.JUMP_TABLE = 127] = "JUMP_TABLE";
4389
4389
  })(Te || (Te = {}));
4390
4390
  function wt(e) {
4391
- return e >= K.ZERO && e <= K.NINE;
4391
+ return e >= X.ZERO && e <= X.NINE;
4392
4392
  }
4393
4393
  function va(e) {
4394
- return e >= K.UPPER_A && e <= K.UPPER_F || e >= K.LOWER_A && e <= K.LOWER_F;
4394
+ return e >= X.UPPER_A && e <= X.UPPER_F || e >= X.LOWER_A && e <= X.LOWER_F;
4395
4395
  }
4396
4396
  function ya(e) {
4397
- return e >= K.UPPER_A && e <= K.UPPER_Z || e >= K.LOWER_A && e <= K.LOWER_Z || wt(e);
4397
+ return e >= X.UPPER_A && e <= X.UPPER_Z || e >= X.LOWER_A && e <= X.LOWER_Z || wt(e);
4398
4398
  }
4399
4399
  function _a(e) {
4400
- return e === K.EQUALS || ya(e);
4400
+ return e === X.EQUALS || ya(e);
4401
4401
  }
4402
- var W;
4402
+ var Q;
4403
4403
  (function(e) {
4404
4404
  e[e.EntityStart = 0] = "EntityStart", e[e.NumericStart = 1] = "NumericStart", e[e.NumericDecimal = 2] = "NumericDecimal", e[e.NumericHex = 3] = "NumericHex", e[e.NamedEntity = 4] = "NamedEntity";
4405
- })(W || (W = {}));
4405
+ })(Q || (Q = {}));
4406
4406
  var ye;
4407
4407
  (function(e) {
4408
4408
  e[e.Legacy = 0] = "Legacy", e[e.Strict = 1] = "Strict", e[e.Attribute = 2] = "Attribute";
4409
4409
  })(ye || (ye = {}));
4410
4410
  class wa {
4411
4411
  constructor(u, t, n) {
4412
- this.decodeTree = u, this.emitCodePoint = t, this.errors = n, this.state = W.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = ye.Strict;
4412
+ this.decodeTree = u, this.emitCodePoint = t, this.errors = n, this.state = Q.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = ye.Strict;
4413
4413
  }
4414
4414
  /** Resets the instance to make it reusable. */
4415
4415
  startEntity(u) {
4416
- this.decodeMode = u, this.state = W.EntityStart, this.result = 0, this.treeIndex = 0, this.excess = 1, this.consumed = 1;
4416
+ this.decodeMode = u, this.state = Q.EntityStart, this.result = 0, this.treeIndex = 0, this.excess = 1, this.consumed = 1;
4417
4417
  }
4418
4418
  /**
4419
4419
  * Write an entity to the decoder. This can be called multiple times with partial entities.
@@ -4428,15 +4428,15 @@ class wa {
4428
4428
  */
4429
4429
  write(u, t) {
4430
4430
  switch (this.state) {
4431
- case W.EntityStart:
4432
- return u.charCodeAt(t) === K.NUM ? (this.state = W.NumericStart, this.consumed += 1, this.stateNumericStart(u, t + 1)) : (this.state = W.NamedEntity, this.stateNamedEntity(u, t));
4433
- case W.NumericStart:
4431
+ case Q.EntityStart:
4432
+ return u.charCodeAt(t) === X.NUM ? (this.state = Q.NumericStart, this.consumed += 1, this.stateNumericStart(u, t + 1)) : (this.state = Q.NamedEntity, this.stateNamedEntity(u, t));
4433
+ case Q.NumericStart:
4434
4434
  return this.stateNumericStart(u, t);
4435
- case W.NumericDecimal:
4435
+ case Q.NumericDecimal:
4436
4436
  return this.stateNumericDecimal(u, t);
4437
- case W.NumericHex:
4437
+ case Q.NumericHex:
4438
4438
  return this.stateNumericHex(u, t);
4439
- case W.NamedEntity:
4439
+ case Q.NamedEntity:
4440
4440
  return this.stateNamedEntity(u, t);
4441
4441
  }
4442
4442
  }
@@ -4450,7 +4450,7 @@ class wa {
4450
4450
  * @returns The number of characters that were consumed, or -1 if the entity is incomplete.
4451
4451
  */
4452
4452
  stateNumericStart(u, t) {
4453
- return t >= u.length ? -1 : (u.charCodeAt(t) | Ca) === K.LOWER_X ? (this.state = W.NumericHex, this.consumed += 1, this.stateNumericHex(u, t + 1)) : (this.state = W.NumericDecimal, this.stateNumericDecimal(u, t));
4453
+ return t >= u.length ? -1 : (u.charCodeAt(t) | Ca) === X.LOWER_X ? (this.state = Q.NumericHex, this.consumed += 1, this.stateNumericHex(u, t + 1)) : (this.state = Q.NumericDecimal, this.stateNumericDecimal(u, t));
4454
4454
  }
4455
4455
  addToNumericResult(u, t, n, r) {
4456
4456
  if (t !== n) {
@@ -4515,11 +4515,11 @@ class wa {
4515
4515
  var n;
4516
4516
  if (this.consumed <= t)
4517
4517
  return (n = this.errors) === null || n === void 0 || n.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
4518
- if (u === K.SEMI)
4518
+ if (u === X.SEMI)
4519
4519
  this.consumed += 1;
4520
4520
  else if (this.decodeMode === ye.Strict)
4521
4521
  return 0;
4522
- return this.emitCodePoint(ka(this.result), this.consumed), this.errors && (u !== K.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
4522
+ return this.emitCodePoint(ka(this.result), this.consumed), this.errors && (u !== X.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
4523
4523
  }
4524
4524
  /**
4525
4525
  * Parses a named entity.
@@ -4541,7 +4541,7 @@ class wa {
4541
4541
  (o === 0 || // And there should be no invalid characters.
4542
4542
  _a(i)) ? 0 : this.emitNotTerminatedNamedEntity();
4543
4543
  if (r = n[this.treeIndex], o = (r & Te.VALUE_LENGTH) >> 14, o !== 0) {
4544
- if (i === K.SEMI)
4544
+ if (i === X.SEMI)
4545
4545
  return this.emitNamedEntityData(this.treeIndex, o, this.consumed + this.excess);
4546
4546
  this.decodeMode !== ye.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
4547
4547
  }
@@ -4581,16 +4581,16 @@ class wa {
4581
4581
  end() {
4582
4582
  var u;
4583
4583
  switch (this.state) {
4584
- case W.NamedEntity:
4584
+ case Q.NamedEntity:
4585
4585
  return this.result !== 0 && (this.decodeMode !== ye.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
4586
4586
  // Otherwise, emit a numeric entity if we have one.
4587
- case W.NumericDecimal:
4587
+ case Q.NumericDecimal:
4588
4588
  return this.emitNumericEntity(0, 2);
4589
- case W.NumericHex:
4589
+ case Q.NumericHex:
4590
4590
  return this.emitNumericEntity(0, 3);
4591
- case W.NumericStart:
4591
+ case Q.NumericStart:
4592
4592
  return (u = this.errors) === null || u === void 0 || u.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
4593
- case W.EntityStart:
4593
+ case Q.EntityStart:
4594
4594
  return 0;
4595
4595
  }
4596
4596
  }
@@ -4672,7 +4672,7 @@ function Dr(e, u, t) {
4672
4672
  function Ht(e) {
4673
4673
  return !(e >= 55296 && e <= 57343 || e >= 64976 && e <= 65007 || (e & 65535) === 65535 || (e & 65535) === 65534 || e >= 0 && e <= 8 || e === 11 || e >= 14 && e <= 31 || e >= 127 && e <= 159 || e > 1114111);
4674
4674
  }
4675
- function hu(e) {
4675
+ function pu(e) {
4676
4676
  if (e > 65535) {
4677
4677
  e -= 65536;
4678
4678
  const u = 55296 + (e >> 10), t = 56320 + (e & 1023);
@@ -4684,7 +4684,7 @@ const Tr = /\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g, $a = /&([a-z#][a-z0-9]{
4684
4684
  function Na(e, u) {
4685
4685
  if (u.charCodeAt(0) === 35 && La.test(u)) {
4686
4686
  const n = u[1].toLowerCase() === "x" ? parseInt(u.slice(2), 16) : parseInt(u.slice(1), 10);
4687
- return Ht(n) ? hu(n) : e;
4687
+ return Ht(n) ? pu(n) : e;
4688
4688
  }
4689
4689
  const t = Fa(e);
4690
4690
  return t !== e ? t : e;
@@ -4692,7 +4692,7 @@ function Na(e, u) {
4692
4692
  function Ia(e) {
4693
4693
  return e.indexOf("\\") < 0 ? e : e.replace(Tr, "$1");
4694
4694
  }
4695
- function Qe(e) {
4695
+ function Xe(e) {
4696
4696
  return e.indexOf("\\") < 0 && e.indexOf("&") < 0 ? e : e.replace(Ma, function(u, t, n) {
4697
4697
  return t || Na(u, n);
4698
4698
  });
@@ -4713,7 +4713,7 @@ const Oa = /[.?*+^$[\]\\(){}|-]/g;
4713
4713
  function qa(e) {
4714
4714
  return e.replace(Oa, "\\$&");
4715
4715
  }
4716
- function j(e) {
4716
+ function q(e) {
4717
4717
  switch (e) {
4718
4718
  case 9:
4719
4719
  case 32:
@@ -4721,7 +4721,7 @@ function j(e) {
4721
4721
  }
4722
4722
  return !1;
4723
4723
  }
4724
- function pu(e) {
4724
+ function bu(e) {
4725
4725
  if (e >= 8192 && e <= 8202)
4726
4726
  return !0;
4727
4727
  switch (e) {
@@ -4748,10 +4748,10 @@ function pu(e) {
4748
4748
  function Sr(e) {
4749
4749
  return qt.test(e) || wr.test(e);
4750
4750
  }
4751
- function bu(e) {
4752
- return Sr(hu(e));
4753
- }
4754
4751
  function mu(e) {
4752
+ return Sr(pu(e));
4753
+ }
4754
+ function gu(e) {
4755
4755
  switch (e) {
4756
4756
  case 33:
4757
4757
  case 34:
@@ -4812,18 +4812,18 @@ const ja = { mdurl: fa, ucmicro: pa }, Ha = /* @__PURE__ */ Object.freeze(/* @__
4812
4812
  assign: Qu,
4813
4813
  escapeHtml: $e,
4814
4814
  escapeRE: qa,
4815
- fromCodePoint: hu,
4815
+ fromCodePoint: pu,
4816
4816
  has: Sa,
4817
- isMdAsciiPunct: mu,
4817
+ isMdAsciiPunct: gu,
4818
4818
  isPunctChar: Sr,
4819
- isPunctCharCode: bu,
4820
- isSpace: j,
4819
+ isPunctCharCode: mu,
4820
+ isSpace: q,
4821
4821
  isString: jt,
4822
4822
  isValidEntityCode: Ht,
4823
- isWhiteSpace: pu,
4823
+ isWhiteSpace: bu,
4824
4824
  lib: ja,
4825
4825
  normalizeReference: Xu,
4826
- unescapeAll: Qe,
4826
+ unescapeAll: Xe,
4827
4827
  unescapeMd: Ia
4828
4828
  }, Symbol.toStringTag, { value: "Module" }));
4829
4829
  function Va(e, u, t) {
@@ -4856,7 +4856,7 @@ function Ua(e, u, t) {
4856
4856
  if (n = e.charCodeAt(r), n === 10 || n === 60)
4857
4857
  return o;
4858
4858
  if (n === 62)
4859
- return o.pos = r + 1, o.str = Qe(e.slice(u + 1, r)), o.ok = !0, o;
4859
+ return o.pos = r + 1, o.str = Xe(e.slice(u + 1, r)), o.ok = !0, o;
4860
4860
  if (n === 92 && r + 1 < t) {
4861
4861
  r += 2;
4862
4862
  continue;
@@ -4882,7 +4882,7 @@ function Ua(e, u, t) {
4882
4882
  }
4883
4883
  r++;
4884
4884
  }
4885
- return u === r || i !== 0 || (o.str = Qe(e.slice(u, r)), o.pos = r, o.ok = !0), o;
4885
+ return u === r || i !== 0 || (o.str = Xe(e.slice(u, r)), o.pos = r, o.ok = !0), o;
4886
4886
  }
4887
4887
  function Ga(e, u, t, n) {
4888
4888
  let r, o = u;
@@ -4910,12 +4910,12 @@ function Ga(e, u, t, n) {
4910
4910
  }
4911
4911
  for (; o < t; ) {
4912
4912
  if (r = e.charCodeAt(o), r === i.marker)
4913
- return i.pos = o + 1, i.str += Qe(e.slice(u, o)), i.ok = !0, i;
4913
+ return i.pos = o + 1, i.str += Xe(e.slice(u, o)), i.ok = !0, i;
4914
4914
  if (r === 40 && i.marker === 41)
4915
4915
  return i;
4916
4916
  r === 92 && o + 1 < t && o++, o++;
4917
4917
  }
4918
- return i.can_continue = !0, i.str += Qe(e.slice(u, o)), i;
4918
+ return i.can_continue = !0, i.str += Xe(e.slice(u, o)), i;
4919
4919
  }
4920
4920
  const Za = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4921
4921
  __proto__: null,
@@ -4933,7 +4933,7 @@ ke.code_block = function(e, u, t, n, r) {
4933
4933
  `;
4934
4934
  };
4935
4935
  ke.fence = function(e, u, t, n, r) {
4936
- const o = e[u], i = o.info ? Qe(o.info).trim() : "";
4936
+ const o = e[u], i = o.info ? Xe(o.info).trim() : "";
4937
4937
  let a = "", c = "";
4938
4938
  if (i) {
4939
4939
  const l = i.split(/(\s+)/g);
@@ -4979,10 +4979,10 @@ ke.html_block = function(e, u) {
4979
4979
  ke.html_inline = function(e, u) {
4980
4980
  return e[u].content;
4981
4981
  };
4982
- function tu() {
4982
+ function nu() {
4983
4983
  this.rules = Qu({}, ke);
4984
4984
  }
4985
- tu.prototype.renderAttrs = function(u) {
4985
+ nu.prototype.renderAttrs = function(u) {
4986
4986
  let t, n, r;
4987
4987
  if (!u.attrs)
4988
4988
  return "";
@@ -4990,7 +4990,7 @@ tu.prototype.renderAttrs = function(u) {
4990
4990
  r += " " + $e(u.attrs[t][0]) + '="' + $e(u.attrs[t][1]) + '"';
4991
4991
  return r;
4992
4992
  };
4993
- tu.prototype.renderToken = function(u, t, n) {
4993
+ nu.prototype.renderToken = function(u, t, n) {
4994
4994
  const r = u[t];
4995
4995
  let o = "";
4996
4996
  if (r.hidden)
@@ -5005,7 +5005,7 @@ tu.prototype.renderToken = function(u, t, n) {
5005
5005
  return o += i ? `>
5006
5006
  ` : ">", o;
5007
5007
  };
5008
- tu.prototype.renderInline = function(e, u, t) {
5008
+ nu.prototype.renderInline = function(e, u, t) {
5009
5009
  let n = "";
5010
5010
  const r = this.rules;
5011
5011
  for (let o = 0, i = e.length; o < i; o++) {
@@ -5014,7 +5014,7 @@ tu.prototype.renderInline = function(e, u, t) {
5014
5014
  }
5015
5015
  return n;
5016
5016
  };
5017
- tu.prototype.renderInlineAsText = function(e, u, t) {
5017
+ nu.prototype.renderInlineAsText = function(e, u, t) {
5018
5018
  let n = "";
5019
5019
  for (let r = 0, o = e.length; r < o; r++)
5020
5020
  switch (e[r].type) {
@@ -5036,7 +5036,7 @@ tu.prototype.renderInlineAsText = function(e, u, t) {
5036
5036
  }
5037
5037
  return n;
5038
5038
  };
5039
- tu.prototype.render = function(e, u, t) {
5039
+ nu.prototype.render = function(e, u, t) {
5040
5040
  let n = "";
5041
5041
  const r = this.rules;
5042
5042
  for (let o = 0, i = e.length; o < i; o++) {
@@ -5045,16 +5045,16 @@ tu.prototype.render = function(e, u, t) {
5045
5045
  }
5046
5046
  return n;
5047
5047
  };
5048
- function te() {
5048
+ function ne() {
5049
5049
  this.__rules__ = [], this.__cache__ = null;
5050
5050
  }
5051
- te.prototype.__find__ = function(e) {
5051
+ ne.prototype.__find__ = function(e) {
5052
5052
  for (let u = 0; u < this.__rules__.length; u++)
5053
5053
  if (this.__rules__[u].name === e)
5054
5054
  return u;
5055
5055
  return -1;
5056
5056
  };
5057
- te.prototype.__compile__ = function() {
5057
+ ne.prototype.__compile__ = function() {
5058
5058
  const e = this, u = [""];
5059
5059
  e.__rules__.forEach(function(t) {
5060
5060
  t.enabled && t.alt.forEach(function(n) {
@@ -5066,13 +5066,13 @@ te.prototype.__compile__ = function() {
5066
5066
  });
5067
5067
  });
5068
5068
  };
5069
- te.prototype.at = function(e, u, t) {
5069
+ ne.prototype.at = function(e, u, t) {
5070
5070
  const n = this.__find__(e), r = t || {};
5071
5071
  if (n === -1)
5072
5072
  throw new Error("Parser rule not found: " + e);
5073
5073
  this.__rules__[n].fn = u, this.__rules__[n].alt = r.alt || [], this.__cache__ = null;
5074
5074
  };
5075
- te.prototype.before = function(e, u, t, n) {
5075
+ ne.prototype.before = function(e, u, t, n) {
5076
5076
  const r = this.__find__(e), o = n || {};
5077
5077
  if (r === -1)
5078
5078
  throw new Error("Parser rule not found: " + e);
@@ -5083,7 +5083,7 @@ te.prototype.before = function(e, u, t, n) {
5083
5083
  alt: o.alt || []
5084
5084
  }), this.__cache__ = null;
5085
5085
  };
5086
- te.prototype.after = function(e, u, t, n) {
5086
+ ne.prototype.after = function(e, u, t, n) {
5087
5087
  const r = this.__find__(e), o = n || {};
5088
5088
  if (r === -1)
5089
5089
  throw new Error("Parser rule not found: " + e);
@@ -5094,7 +5094,7 @@ te.prototype.after = function(e, u, t, n) {
5094
5094
  alt: o.alt || []
5095
5095
  }), this.__cache__ = null;
5096
5096
  };
5097
- te.prototype.push = function(e, u, t) {
5097
+ ne.prototype.push = function(e, u, t) {
5098
5098
  const n = t || {};
5099
5099
  this.__rules__.push({
5100
5100
  name: e,
@@ -5103,7 +5103,7 @@ te.prototype.push = function(e, u, t) {
5103
5103
  alt: n.alt || []
5104
5104
  }), this.__cache__ = null;
5105
5105
  };
5106
- te.prototype.enable = function(e, u) {
5106
+ ne.prototype.enable = function(e, u) {
5107
5107
  Array.isArray(e) || (e = [e]);
5108
5108
  const t = [];
5109
5109
  return e.forEach(function(n) {
@@ -5116,12 +5116,12 @@ te.prototype.enable = function(e, u) {
5116
5116
  this.__rules__[r].enabled = !0, t.push(n);
5117
5117
  }, this), this.__cache__ = null, t;
5118
5118
  };
5119
- te.prototype.enableOnly = function(e, u) {
5119
+ ne.prototype.enableOnly = function(e, u) {
5120
5120
  Array.isArray(e) || (e = [e]), this.__rules__.forEach(function(t) {
5121
5121
  t.enabled = !1;
5122
5122
  }), this.enable(e, u);
5123
5123
  };
5124
- te.prototype.disable = function(e, u) {
5124
+ ne.prototype.disable = function(e, u) {
5125
5125
  Array.isArray(e) || (e = [e]);
5126
5126
  const t = [];
5127
5127
  return e.forEach(function(n) {
@@ -5134,13 +5134,13 @@ te.prototype.disable = function(e, u) {
5134
5134
  this.__rules__[r].enabled = !1, t.push(n);
5135
5135
  }, this), this.__cache__ = null, t;
5136
5136
  };
5137
- te.prototype.getRules = function(e) {
5137
+ ne.prototype.getRules = function(e) {
5138
5138
  return this.__cache__ === null && this.__compile__(), this.__cache__[e] || [];
5139
5139
  };
5140
- function de(e, u, t) {
5140
+ function he(e, u, t) {
5141
5141
  this.type = e, this.tag = u, this.attrs = null, this.map = null, this.nesting = t, this.level = 0, this.children = null, this.content = "", this.markup = "", this.info = "", this.meta = null, this.block = !1, this.hidden = !1;
5142
5142
  }
5143
- de.prototype.attrIndex = function(u) {
5143
+ he.prototype.attrIndex = function(u) {
5144
5144
  if (!this.attrs)
5145
5145
  return -1;
5146
5146
  const t = this.attrs;
@@ -5149,26 +5149,26 @@ de.prototype.attrIndex = function(u) {
5149
5149
  return n;
5150
5150
  return -1;
5151
5151
  };
5152
- de.prototype.attrPush = function(u) {
5152
+ he.prototype.attrPush = function(u) {
5153
5153
  this.attrs ? this.attrs.push(u) : this.attrs = [u];
5154
5154
  };
5155
- de.prototype.attrSet = function(u, t) {
5155
+ he.prototype.attrSet = function(u, t) {
5156
5156
  const n = this.attrIndex(u), r = [u, t];
5157
5157
  n < 0 ? this.attrPush(r) : this.attrs[n] = r;
5158
5158
  };
5159
- de.prototype.attrGet = function(u) {
5159
+ he.prototype.attrGet = function(u) {
5160
5160
  const t = this.attrIndex(u);
5161
5161
  let n = null;
5162
5162
  return t >= 0 && (n = this.attrs[t][1]), n;
5163
5163
  };
5164
- de.prototype.attrJoin = function(u, t) {
5164
+ he.prototype.attrJoin = function(u, t) {
5165
5165
  const n = this.attrIndex(u);
5166
5166
  n < 0 ? this.attrPush([u, t]) : this.attrs[n][1] = this.attrs[n][1] + " " + t;
5167
5167
  };
5168
5168
  function $r(e, u, t) {
5169
5169
  this.src = e, this.env = t, this.tokens = [], this.inlineMode = !1, this.md = u;
5170
5170
  }
5171
- $r.prototype.Token = de;
5171
+ $r.prototype.Token = he;
5172
5172
  const Wa = /\r\n?|\n/g, Ka = /\0/g;
5173
5173
  function Ya(e) {
5174
5174
  let u;
@@ -5319,7 +5319,7 @@ function dc(e, u) {
5319
5319
  b = e[t].content.charCodeAt(0);
5320
5320
  break;
5321
5321
  }
5322
- const C = mu(m) || bu(m), g = mu(b) || bu(b), k = pu(m), v = pu(b);
5322
+ const C = gu(m) || mu(m), g = gu(b) || mu(b), k = bu(m), v = bu(b);
5323
5323
  if (v ? p = !1 : g && (k || C || (p = !1)), k ? h = !1 : C && (v || g || (h = !1)), b === 34 && d[0] === '"' && m >= 48 && m <= 57 && (h = p = !1), p && h && (p = C, h = g), !p && !h) {
5324
5324
  f && $u(r, o, d.index, mn);
5325
5325
  continue;
@@ -5331,8 +5331,8 @@ function dc(e, u) {
5331
5331
  break;
5332
5332
  if (_.single === f && n[t].level === a) {
5333
5333
  _ = n[t];
5334
- let E, w;
5335
- f ? (E = u.md.options.quotes[2], w = u.md.options.quotes[3]) : (E = u.md.options.quotes[0], w = u.md.options.quotes[1]), $u(r, o, d.index, w), $u(r, _.token, _.pos, E), n.length = t;
5334
+ let w, E;
5335
+ f ? (w = u.md.options.quotes[2], E = u.md.options.quotes[3]) : (w = u.md.options.quotes[0], E = u.md.options.quotes[1]), $u(r, o, d.index, E), $u(r, _.token, _.pos, w), n.length = t;
5336
5336
  continue e;
5337
5337
  }
5338
5338
  }
@@ -5378,7 +5378,7 @@ const st = [
5378
5378
  ["text_join", hc]
5379
5379
  ];
5380
5380
  function Vt() {
5381
- this.ruler = new te();
5381
+ this.ruler = new ne();
5382
5382
  for (let e = 0; e < st.length; e++)
5383
5383
  this.ruler.push(st[e][0], st[e][1]);
5384
5384
  }
@@ -5394,7 +5394,7 @@ function Ce(e, u, t, n) {
5394
5394
  for (let o = 0, i = 0, a = 0, c = 0, s = r.length, l = !1; i < s; i++) {
5395
5395
  const d = r.charCodeAt(i);
5396
5396
  if (!l)
5397
- if (j(d)) {
5397
+ if (q(d)) {
5398
5398
  a++, d === 9 ? c += 4 - c % 4 : c++;
5399
5399
  continue;
5400
5400
  } else
@@ -5404,7 +5404,7 @@ function Ce(e, u, t, n) {
5404
5404
  this.bMarks.push(r.length), this.eMarks.push(r.length), this.tShift.push(0), this.sCount.push(0), this.bsCount.push(0), this.lineMax = this.bMarks.length - 1;
5405
5405
  }
5406
5406
  Ce.prototype.push = function(e, u, t) {
5407
- const n = new de(e, u, t);
5407
+ const n = new he(e, u, t);
5408
5408
  return n.block = !0, t < 0 && this.level--, n.level = this.level, t > 0 && this.level++, this.tokens.push(n), n;
5409
5409
  };
5410
5410
  Ce.prototype.isEmpty = function(u) {
@@ -5418,7 +5418,7 @@ Ce.prototype.skipEmptyLines = function(u) {
5418
5418
  Ce.prototype.skipSpaces = function(u) {
5419
5419
  for (let t = this.src.length; u < t; u++) {
5420
5420
  const n = this.src.charCodeAt(u);
5421
- if (!j(n))
5421
+ if (!q(n))
5422
5422
  break;
5423
5423
  }
5424
5424
  return u;
@@ -5427,7 +5427,7 @@ Ce.prototype.skipSpacesBack = function(u, t) {
5427
5427
  if (u <= t)
5428
5428
  return u;
5429
5429
  for (; u > t; )
5430
- if (!j(this.src.charCodeAt(--u)))
5430
+ if (!q(this.src.charCodeAt(--u)))
5431
5431
  return u + 1;
5432
5432
  return u;
5433
5433
  };
@@ -5454,7 +5454,7 @@ Ce.prototype.getLines = function(u, t, n, r) {
5454
5454
  let l = s, d;
5455
5455
  for (a + 1 < t || r ? d = this.eMarks[a] + 1 : d = this.eMarks[a]; l < d && c < n; ) {
5456
5456
  const p = this.src.charCodeAt(l);
5457
- if (j(p))
5457
+ if (q(p))
5458
5458
  p === 9 ? c += 4 - (c + this.bsCount[a]) % 4 : c++;
5459
5459
  else if (l - s < this.tShift[a])
5460
5460
  c++;
@@ -5466,7 +5466,7 @@ Ce.prototype.getLines = function(u, t, n, r) {
5466
5466
  }
5467
5467
  return o.join("");
5468
5468
  };
5469
- Ce.prototype.Token = de;
5469
+ Ce.prototype.Token = he;
5470
5470
  const pc = 65536;
5471
5471
  function lt(e, u) {
5472
5472
  const t = e.bMarks[u] + e.tShift[u], n = e.eMarks[u];
@@ -5492,11 +5492,11 @@ function bc(e, u, t, n) {
5492
5492
  if (i !== 124 && i !== 45 && i !== 58 || o >= e.eMarks[r])
5493
5493
  return !1;
5494
5494
  const a = e.src.charCodeAt(o++);
5495
- if (a !== 124 && a !== 45 && a !== 58 && !j(a) || i === 45 && j(a))
5495
+ if (a !== 124 && a !== 45 && a !== 58 && !q(a) || i === 45 && q(a))
5496
5496
  return !1;
5497
5497
  for (; o < e.eMarks[r]; ) {
5498
5498
  const v = e.src.charCodeAt(o);
5499
- if (v !== 124 && v !== 45 && v !== 58 && !j(v))
5499
+ if (v !== 124 && v !== 45 && v !== 58 && !q(v))
5500
5500
  return !1;
5501
5501
  o++;
5502
5502
  }
@@ -5532,31 +5532,31 @@ function bc(e, u, t, n) {
5532
5532
  for (let v = 0; v < s.length; v++) {
5533
5533
  const _ = e.push("th_open", "th", 1);
5534
5534
  l[v] && (_.attrs = [["style", "text-align:" + l[v]]]);
5535
- const E = e.push("inline", "", 0);
5536
- E.content = s[v].trim(), E.children = [], e.push("th_close", "th", -1);
5535
+ const w = e.push("inline", "", 0);
5536
+ w.content = s[v].trim(), w.children = [], e.push("th_close", "th", -1);
5537
5537
  }
5538
5538
  e.push("tr_close", "tr", -1), e.push("thead_close", "thead", -1);
5539
5539
  let g, k = 0;
5540
5540
  for (r = u + 2; r < t && !(e.sCount[r] < e.blkIndent); r++) {
5541
5541
  let v = !1;
5542
- for (let E = 0, w = h.length; E < w; E++)
5543
- if (h[E](e, r, t, !0)) {
5542
+ for (let w = 0, E = h.length; w < E; w++)
5543
+ if (h[w](e, r, t, !0)) {
5544
5544
  v = !0;
5545
5545
  break;
5546
5546
  }
5547
5547
  if (v || (c = lt(e, r).trim(), !c) || e.sCount[r] - e.blkIndent >= 4 || (s = gn(c), s.length && s[0] === "" && s.shift(), s.length && s[s.length - 1] === "" && s.pop(), k += d - s.length, k > pc))
5548
5548
  break;
5549
5549
  if (r === u + 2) {
5550
- const E = e.push("tbody_open", "tbody", 1);
5551
- E.map = g = [u + 2, 0];
5550
+ const w = e.push("tbody_open", "tbody", 1);
5551
+ w.map = g = [u + 2, 0];
5552
5552
  }
5553
5553
  const _ = e.push("tr_open", "tr", 1);
5554
5554
  _.map = [r, r + 1];
5555
- for (let E = 0; E < d; E++) {
5556
- const w = e.push("td_open", "td", 1);
5557
- l[E] && (w.attrs = [["style", "text-align:" + l[E]]]);
5555
+ for (let w = 0; w < d; w++) {
5556
+ const E = e.push("td_open", "td", 1);
5557
+ l[w] && (E.attrs = [["style", "text-align:" + l[w]]]);
5558
5558
  const y = e.push("inline", "", 0);
5559
- y.content = s[E] ? s[E].trim() : "", y.children = [], e.push("td_close", "td", -1);
5559
+ y.content = s[w] ? s[w].trim() : "", y.children = [], e.push("td_close", "td", -1);
5560
5560
  }
5561
5561
  e.push("tr_close", "tr", -1);
5562
5562
  }
@@ -5624,24 +5624,24 @@ function xc(e, u, t, n) {
5624
5624
  if (r = e.bMarks[f] + e.tShift[f], o = e.eMarks[f], r >= o)
5625
5625
  break;
5626
5626
  if (e.src.charCodeAt(r++) === 62 && !k) {
5627
- let _ = e.sCount[f] + 1, E, w;
5628
- e.src.charCodeAt(r) === 32 ? (r++, _++, w = !1, E = !0) : e.src.charCodeAt(r) === 9 ? (E = !0, (e.bsCount[f] + _) % 4 === 3 ? (r++, _++, w = !1) : w = !0) : E = !1;
5627
+ let _ = e.sCount[f] + 1, w, E;
5628
+ e.src.charCodeAt(r) === 32 ? (r++, _++, E = !1, w = !0) : e.src.charCodeAt(r) === 9 ? (w = !0, (e.bsCount[f] + _) % 4 === 3 ? (r++, _++, E = !1) : E = !0) : w = !1;
5629
5629
  let y = _;
5630
5630
  for (a.push(e.bMarks[f]), e.bMarks[f] = r; r < o; ) {
5631
5631
  const I = e.src.charCodeAt(r);
5632
- if (j(I))
5633
- I === 9 ? y += 4 - (y + e.bsCount[f] + (w ? 1 : 0)) % 4 : y++;
5632
+ if (q(I))
5633
+ I === 9 ? y += 4 - (y + e.bsCount[f] + (E ? 1 : 0)) % 4 : y++;
5634
5634
  else
5635
5635
  break;
5636
5636
  r++;
5637
5637
  }
5638
- h = r >= o, c.push(e.bsCount[f]), e.bsCount[f] = e.sCount[f] + 1 + (E ? 1 : 0), s.push(e.sCount[f]), e.sCount[f] = y - _, l.push(e.tShift[f]), e.tShift[f] = r - e.bMarks[f];
5638
+ h = r >= o, c.push(e.bsCount[f]), e.bsCount[f] = e.sCount[f] + 1 + (w ? 1 : 0), s.push(e.sCount[f]), e.sCount[f] = y - _, l.push(e.tShift[f]), e.tShift[f] = r - e.bMarks[f];
5639
5639
  continue;
5640
5640
  }
5641
5641
  if (h)
5642
5642
  break;
5643
5643
  let v = !1;
5644
- for (let _ = 0, E = d.length; _ < E; _++)
5644
+ for (let _ = 0, w = d.length; _ < w; _++)
5645
5645
  if (d[_](e, f, t, !0)) {
5646
5646
  v = !0;
5647
5647
  break;
@@ -5675,7 +5675,7 @@ function kc(e, u, t, n) {
5675
5675
  let a = 1;
5676
5676
  for (; o < r; ) {
5677
5677
  const s = e.src.charCodeAt(o++);
5678
- if (s !== i && !j(s))
5678
+ if (s !== i && !q(s))
5679
5679
  return !1;
5680
5680
  s === i && a++;
5681
5681
  }
@@ -5695,7 +5695,7 @@ function xn(e, u) {
5695
5695
  return -1;
5696
5696
  if (n < t) {
5697
5697
  const o = e.src.charCodeAt(n);
5698
- if (!j(o))
5698
+ if (!q(o))
5699
5699
  return -1;
5700
5700
  }
5701
5701
  return n;
@@ -5720,7 +5720,7 @@ function kn(e, u) {
5720
5720
  break;
5721
5721
  return -1;
5722
5722
  }
5723
- return r < n && (o = e.src.charCodeAt(r), !j(o)) ? -1 : r;
5723
+ return r < n && (o = e.src.charCodeAt(r), !q(o)) ? -1 : r;
5724
5724
  }
5725
5725
  function Cc(e, u) {
5726
5726
  const t = e.level + 2;
@@ -5755,32 +5755,32 @@ function vc(e, u, t, n) {
5755
5755
  const v = e.sCount[c] + h - (e.bMarks[c] + e.tShift[c]);
5756
5756
  let _ = v;
5757
5757
  for (; o < r; ) {
5758
- const O = e.src.charCodeAt(o);
5759
- if (O === 9)
5758
+ const B = e.src.charCodeAt(o);
5759
+ if (B === 9)
5760
5760
  _ += 4 - (_ + e.bsCount[c]) % 4;
5761
- else if (O === 32)
5761
+ else if (B === 32)
5762
5762
  _++;
5763
5763
  else
5764
5764
  break;
5765
5765
  o++;
5766
5766
  }
5767
- const E = o;
5768
- let w;
5769
- E >= r ? w = 1 : w = _ - v, w > 4 && (w = 1);
5770
- const y = v + w;
5767
+ const w = o;
5768
+ let E;
5769
+ w >= r ? E = 1 : E = _ - v, E > 4 && (E = 1);
5770
+ const y = v + E;
5771
5771
  a = e.push("list_item_open", "li", 1), a.markup = String.fromCharCode(f);
5772
5772
  const I = [c, 0];
5773
5773
  a.map = I, d && (a.info = e.src.slice(i, h - 1));
5774
- const $ = e.tight, M = e.tShift[c], Q = e.sCount[c], X = e.listIndent;
5775
- if (e.listIndent = e.blkIndent, e.blkIndent = y, e.tight = !0, e.tShift[c] = E - e.bMarks[c], e.sCount[c] = _, E >= r && e.isEmpty(c + 1) ? e.line = Math.min(e.line + 2, t) : e.md.block.tokenize(e, c, t, !0), (!e.tight || C) && (s = !1), C = e.line - c > 1 && e.isEmpty(e.line - 1), e.blkIndent = e.listIndent, e.listIndent = X, e.tShift[c] = M, e.sCount[c] = Q, e.tight = $, a = e.push("list_item_close", "li", -1), a.markup = String.fromCharCode(f), c = e.line, I[1] = c, c >= t || e.sCount[c] < e.blkIndent || e.sCount[c] - e.blkIndent >= 4)
5774
+ const P = e.tight, N = e.tShift[c], j = e.sCount[c], U = e.listIndent;
5775
+ if (e.listIndent = e.blkIndent, e.blkIndent = y, e.tight = !0, e.tShift[c] = w - e.bMarks[c], e.sCount[c] = _, w >= r && e.isEmpty(c + 1) ? e.line = Math.min(e.line + 2, t) : e.md.block.tokenize(e, c, t, !0), (!e.tight || C) && (s = !1), C = e.line - c > 1 && e.isEmpty(e.line - 1), e.blkIndent = e.listIndent, e.listIndent = U, e.tShift[c] = N, e.sCount[c] = j, e.tight = P, a = e.push("list_item_close", "li", -1), a.markup = String.fromCharCode(f), c = e.line, I[1] = c, c >= t || e.sCount[c] < e.blkIndent || e.sCount[c] - e.blkIndent >= 4)
5776
5776
  break;
5777
- let Y = !1;
5778
- for (let O = 0, G = g.length; O < G; O++)
5779
- if (g[O](e, c, t, !0)) {
5780
- Y = !0;
5777
+ let ee = !1;
5778
+ for (let B = 0, G = g.length; B < G; B++)
5779
+ if (g[B](e, c, t, !0)) {
5780
+ ee = !0;
5781
5781
  break;
5782
5782
  }
5783
- if (Y)
5783
+ if (ee)
5784
5784
  break;
5785
5785
  if (d) {
5786
5786
  if (h = kn(e, c), h < 0)
@@ -5803,19 +5803,19 @@ function yc(e, u, t, n) {
5803
5803
  return null;
5804
5804
  let v = !1;
5805
5805
  if (e.sCount[g] - e.blkIndent > 3 && (v = !0), e.sCount[g] < 0 && (v = !0), !v) {
5806
- const w = e.md.block.ruler.getRules("reference"), y = e.parentType;
5806
+ const E = e.md.block.ruler.getRules("reference"), y = e.parentType;
5807
5807
  e.parentType = "reference";
5808
5808
  let I = !1;
5809
- for (let $ = 0, M = w.length; $ < M; $++)
5810
- if (w[$](e, g, k, !0)) {
5809
+ for (let P = 0, N = E.length; P < N; P++)
5810
+ if (E[P](e, g, k, !0)) {
5811
5811
  I = !0;
5812
5812
  break;
5813
5813
  }
5814
5814
  if (e.parentType = y, I)
5815
5815
  return null;
5816
5816
  }
5817
- const _ = e.bMarks[g] + e.tShift[g], E = e.eMarks[g];
5818
- return e.src.slice(_, E + 1);
5817
+ const _ = e.bMarks[g] + e.tShift[g], w = e.eMarks[g];
5818
+ return e.src.slice(_, w + 1);
5819
5819
  }
5820
5820
  let c = e.src.slice(r, o + 1);
5821
5821
  o = c.length;
@@ -5842,7 +5842,7 @@ function yc(e, u, t, n) {
5842
5842
  if (g === 10) {
5843
5843
  const k = a(i);
5844
5844
  k !== null && (c += k, o = c.length, i++);
5845
- } else if (!j(g)) break;
5845
+ } else if (!q(g)) break;
5846
5846
  }
5847
5847
  const l = e.md.helpers.parseLinkDestination(c, r, o);
5848
5848
  if (!l.ok)
@@ -5857,7 +5857,7 @@ function yc(e, u, t, n) {
5857
5857
  if (g === 10) {
5858
5858
  const k = a(i);
5859
5859
  k !== null && (c += k, o = c.length, i++);
5860
- } else if (!j(g)) break;
5860
+ } else if (!q(g)) break;
5861
5861
  }
5862
5862
  let m = e.md.helpers.parseLinkTitle(c, r, o);
5863
5863
  for (; m.can_continue; ) {
@@ -5868,14 +5868,14 @@ function yc(e, u, t, n) {
5868
5868
  let b;
5869
5869
  for (r < o && f !== r && m.ok ? (b = m.str, r = m.pos) : (b = "", r = p, i = h); r < o; ) {
5870
5870
  const g = c.charCodeAt(r);
5871
- if (!j(g))
5871
+ if (!q(g))
5872
5872
  break;
5873
5873
  r++;
5874
5874
  }
5875
5875
  if (r < o && c.charCodeAt(r) !== 10 && b)
5876
5876
  for (b = "", r = p, i = h; r < o; ) {
5877
5877
  const g = c.charCodeAt(r);
5878
- if (!j(g))
5878
+ if (!q(g))
5879
5879
  break;
5880
5880
  r++;
5881
5881
  }
@@ -5947,7 +5947,7 @@ const _c = [
5947
5947
  "tr",
5948
5948
  "track",
5949
5949
  "ul"
5950
- ], wc = "[a-zA-Z_:][a-zA-Z0-9:._-]*", Ec = "[^\"'=<>`\\x00-\\x20]+", Fc = "'[^']*'", Ac = '"[^"]*"', Dc = "(?:" + Ec + "|" + Fc + "|" + Ac + ")", Tc = "(?:\\s+" + wc + "(?:\\s*=\\s*" + Dc + ")?)", Lr = "<[A-Za-z][A-Za-z0-9\\-]*" + Tc + "*\\s*\\/?>", Nr = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", Sc = "<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->", $c = "<[?][\\s\\S]*?[?]>", Mc = "<![A-Za-z][^>]*>", Lc = "<!\\[CDATA\\[[\\s\\S]*?\\]\\]>", Nc = new RegExp("^(?:" + Lr + "|" + Nr + "|" + Sc + "|" + $c + "|" + Mc + "|" + Lc + ")"), Ic = new RegExp("^(?:" + Lr + "|" + Nr + ")"), Re = [
5950
+ ], wc = "[a-zA-Z_:][a-zA-Z0-9:._-]*", Ec = "[^\"'=<>`\\x00-\\x20]+", Fc = "'[^']*'", Ac = '"[^"]*"', Dc = "(?:" + Ec + "|" + Fc + "|" + Ac + ")", Tc = "(?:\\s+" + wc + "(?:\\s*=\\s*" + Dc + ")?)", Lr = "<[A-Za-z][A-Za-z0-9\\-]*" + Tc + "*\\s*\\/?>", Nr = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", Sc = "<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->", $c = "<[?][\\s\\S]*?[?]>", Mc = "<![A-Za-z][^>]*>", Lc = "<!\\[CDATA\\[[\\s\\S]*?\\]\\]>", Nc = new RegExp("^(?:" + Lr + "|" + Nr + "|" + Sc + "|" + $c + "|" + Mc + "|" + Lc + ")"), Ic = new RegExp("^(?:" + Lr + "|" + Nr + ")"), ze = [
5951
5951
  [/^<(script|pre|style|textarea)(?=(\s|>|$))/i, /<\/(script|pre|style|textarea)>/i, !0],
5952
5952
  [/^<!--/, /-->/, !0],
5953
5953
  [/^<\?/, /\?>/, !0],
@@ -5961,17 +5961,17 @@ function Rc(e, u, t, n) {
5961
5961
  if (e.sCount[u] - e.blkIndent >= 4 || !e.md.options.html || e.src.charCodeAt(r) !== 60)
5962
5962
  return !1;
5963
5963
  let i = e.src.slice(r, o), a = 0;
5964
- for (; a < Re.length && !Re[a][0].test(i); a++)
5964
+ for (; a < ze.length && !ze[a][0].test(i); a++)
5965
5965
  ;
5966
- if (a === Re.length)
5966
+ if (a === ze.length)
5967
5967
  return !1;
5968
5968
  if (n)
5969
- return Re[a][2];
5969
+ return ze[a][2];
5970
5970
  let c = u + 1;
5971
- const s = Re[a][1].test("");
5972
- if (!Re[a][1].test(i)) {
5971
+ const s = ze[a][1].test("");
5972
+ if (!ze[a][1].test(i)) {
5973
5973
  for (; c < t && !(e.sCount[c] < e.blkIndent && (s || !e.isEmpty(c))); c++)
5974
- if (r = e.bMarks[c] + e.tShift[c], o = e.eMarks[c], i = e.src.slice(r, o), Re[a][1].test(i)) {
5974
+ if (r = e.bMarks[c] + e.tShift[c], o = e.eMarks[c], i = e.src.slice(r, o), ze[a][1].test(i)) {
5975
5975
  i.length !== 0 && c++;
5976
5976
  break;
5977
5977
  }
@@ -5990,13 +5990,13 @@ function zc(e, u, t, n) {
5990
5990
  let a = 1;
5991
5991
  for (i = e.src.charCodeAt(++r); i === 35 && r < o && a <= 6; )
5992
5992
  a++, i = e.src.charCodeAt(++r);
5993
- if (a > 6 || r < o && !j(i))
5993
+ if (a > 6 || r < o && !q(i))
5994
5994
  return !1;
5995
5995
  if (n)
5996
5996
  return !0;
5997
5997
  o = e.skipSpacesBack(o, r);
5998
5998
  const c = e.skipCharsBack(o, 35, r);
5999
- c > r && j(e.src.charCodeAt(c - 1)) && (o = c), e.line = u + 1;
5999
+ c > r && q(e.src.charCodeAt(c - 1)) && (o = c), e.line = u + 1;
6000
6000
  const s = e.push("heading_open", "h" + String(a), 1);
6001
6001
  s.markup = "########".slice(0, a), s.map = [u, e.line];
6002
6002
  const l = e.push("inline", "", 0);
@@ -6082,7 +6082,7 @@ const Mu = [
6082
6082
  ["paragraph", Bc]
6083
6083
  ];
6084
6084
  function ut() {
6085
- this.ruler = new te();
6085
+ this.ruler = new ne();
6086
6086
  for (let e = 0; e < Mu.length; e++)
6087
6087
  this.ruler.push(Mu[e][0], Mu[e][1], { alt: (Mu[e][2] || []).slice() });
6088
6088
  }
@@ -6113,20 +6113,20 @@ ut.prototype.parse = function(e, u, t, n) {
6113
6113
  this.tokenize(r, r.line, r.lineMax);
6114
6114
  };
6115
6115
  ut.prototype.State = Ce;
6116
- function yu(e, u, t, n) {
6116
+ function _u(e, u, t, n) {
6117
6117
  this.src = e, this.env = t, this.md = u, this.tokens = n, this.tokens_meta = Array(n.length), this.pos = 0, this.posMax = this.src.length, this.level = 0, this.pending = "", this.pendingLevel = 0, this.cache = {}, this.delimiters = [], this._prev_delimiters = [], this.backticks = {}, this.backticksScanned = !1, this.linkLevel = 0;
6118
6118
  }
6119
- yu.prototype.pushPending = function() {
6120
- const e = new de("text", "", 0);
6119
+ _u.prototype.pushPending = function() {
6120
+ const e = new he("text", "", 0);
6121
6121
  return e.content = this.pending, e.level = this.pendingLevel, this.tokens.push(e), this.pending = "", e;
6122
6122
  };
6123
- yu.prototype.push = function(e, u, t) {
6123
+ _u.prototype.push = function(e, u, t) {
6124
6124
  this.pending && this.pushPending();
6125
- const n = new de(e, u, t);
6125
+ const n = new he(e, u, t);
6126
6126
  let r = null;
6127
6127
  return t < 0 && (this.level--, this.delimiters = this._prev_delimiters.pop()), n.level = this.level, t > 0 && (this.level++, this._prev_delimiters.push(this.delimiters), this.delimiters = [], r = { delimiters: this.delimiters }), this.pendingLevel = this.level, this.tokens.push(n), this.tokens_meta.push(r), n;
6128
6128
  };
6129
- yu.prototype.scanDelims = function(e, u) {
6129
+ _u.prototype.scanDelims = function(e, u) {
6130
6130
  const t = this.posMax, n = this.src.charCodeAt(e);
6131
6131
  let r;
6132
6132
  if (e === 0)
@@ -6146,10 +6146,10 @@ yu.prototype.scanDelims = function(e, u) {
6146
6146
  const b = this.src.charCodeAt(o + 1);
6147
6147
  a = (b & 64512) === 56320 ? 65536 + (a - 55296 << 10) + (b - 56320) : 65533;
6148
6148
  } else (a & 64512) === 56320 && (a = 65533);
6149
- const c = mu(r) || bu(r), s = mu(a) || bu(a), l = pu(r), d = pu(a), p = !d && (!s || l || c), h = !l && (!c || d || s);
6149
+ const c = gu(r) || mu(r), s = gu(a) || mu(a), l = bu(r), d = bu(a), p = !d && (!s || l || c), h = !l && (!c || d || s);
6150
6150
  return { can_open: p && (u || !h || c), can_close: h && (u || !p || s), length: i };
6151
6151
  };
6152
- yu.prototype.Token = de;
6152
+ _u.prototype.Token = he;
6153
6153
  function Oc(e) {
6154
6154
  switch (e) {
6155
6155
  case 10:
@@ -6229,7 +6229,7 @@ function Vc(e, u) {
6229
6229
  e.pending = e.pending.slice(0, -1), e.push("softbreak", "br", 0);
6230
6230
  else
6231
6231
  e.push("softbreak", "br", 0);
6232
- for (t++; t < r && j(e.src.charCodeAt(t)); )
6232
+ for (t++; t < r && q(e.src.charCodeAt(t)); )
6233
6233
  t++;
6234
6234
  return e.pos = t, !0;
6235
6235
  }
@@ -6245,7 +6245,7 @@ function Uc(e, u) {
6245
6245
  if (e.src.charCodeAt(t) !== 92 || (t++, t >= n)) return !1;
6246
6246
  let r = e.src.charCodeAt(t);
6247
6247
  if (r === 10) {
6248
- for (u || e.push("hardbreak", "br", 0), t++; t < n && (r = e.src.charCodeAt(t), !!j(r)); )
6248
+ for (u || e.push("hardbreak", "br", 0), t++; t < n && (r = e.src.charCodeAt(t), !!q(r)); )
6249
6249
  t++;
6250
6250
  return e.pos = t, !0;
6251
6251
  }
@@ -6410,15 +6410,15 @@ function Jc(e, u) {
6410
6410
  return !1;
6411
6411
  let f = h + 1;
6412
6412
  if (f < d && e.src.charCodeAt(f) === 40) {
6413
- for (s = !1, f++; f < d && (t = e.src.charCodeAt(f), !(!j(t) && t !== 10)); f++)
6413
+ for (s = !1, f++; f < d && (t = e.src.charCodeAt(f), !(!q(t) && t !== 10)); f++)
6414
6414
  ;
6415
6415
  if (f >= d)
6416
6416
  return !1;
6417
6417
  if (c = f, r = e.md.helpers.parseLinkDestination(e.src, f, e.posMax), r.ok) {
6418
- for (i = e.md.normalizeLink(r.str), e.md.validateLink(i) ? f = r.pos : i = "", c = f; f < d && (t = e.src.charCodeAt(f), !(!j(t) && t !== 10)); f++)
6418
+ for (i = e.md.normalizeLink(r.str), e.md.validateLink(i) ? f = r.pos : i = "", c = f; f < d && (t = e.src.charCodeAt(f), !(!q(t) && t !== 10)); f++)
6419
6419
  ;
6420
6420
  if (r = e.md.helpers.parseLinkTitle(e.src, f, e.posMax), f < d && c !== f && r.ok)
6421
- for (a = r.str, f = r.pos; f < d && (t = e.src.charCodeAt(f), !(!j(t) && t !== 10)); f++)
6421
+ for (a = r.str, f = r.pos; f < d && (t = e.src.charCodeAt(f), !(!q(t) && t !== 10)); f++)
6422
6422
  ;
6423
6423
  }
6424
6424
  (f >= d || e.src.charCodeAt(f) !== 41) && (s = !0), f++;
@@ -6446,14 +6446,14 @@ function Qc(e, u) {
6446
6446
  if (f < 0)
6447
6447
  return !1;
6448
6448
  if (o = f + 1, o < p && e.src.charCodeAt(o) === 40) {
6449
- for (o++; o < p && (t = e.src.charCodeAt(o), !(!j(t) && t !== 10)); o++)
6449
+ for (o++; o < p && (t = e.src.charCodeAt(o), !(!q(t) && t !== 10)); o++)
6450
6450
  ;
6451
6451
  if (o >= p)
6452
6452
  return !1;
6453
- for (s = o, a = e.md.helpers.parseLinkDestination(e.src, o, e.posMax), a.ok && (l = e.md.normalizeLink(a.str), e.md.validateLink(l) ? o = a.pos : l = ""), s = o; o < p && (t = e.src.charCodeAt(o), !(!j(t) && t !== 10)); o++)
6453
+ for (s = o, a = e.md.helpers.parseLinkDestination(e.src, o, e.posMax), a.ok && (l = e.md.normalizeLink(a.str), e.md.validateLink(l) ? o = a.pos : l = ""), s = o; o < p && (t = e.src.charCodeAt(o), !(!q(t) && t !== 10)); o++)
6454
6454
  ;
6455
6455
  if (a = e.md.helpers.parseLinkTitle(e.src, o, e.posMax), o < p && s !== o && a.ok)
6456
- for (c = a.str, o = a.pos; o < p && (t = e.src.charCodeAt(o), !(!j(t) && t !== 10)); o++)
6456
+ for (c = a.str, o = a.pos; o < p && (t = e.src.charCodeAt(o), !(!q(t) && t !== 10)); o++)
6457
6457
  ;
6458
6458
  else
6459
6459
  c = "";
@@ -6561,7 +6561,7 @@ function cs(e, u) {
6561
6561
  if (o) {
6562
6562
  if (!u) {
6563
6563
  const i = o[1][0].toLowerCase() === "x" ? parseInt(o[1].slice(1), 16) : parseInt(o[1], 10), a = e.push("text_special", "", 0);
6564
- a.content = Ht(i) ? hu(i) : hu(65533), a.markup = o[0], a.info = "entity";
6564
+ a.content = Ht(i) ? pu(i) : pu(65533), a.markup = o[0], a.info = "entity";
6565
6565
  }
6566
6566
  return e.pos += o[0].length, !0;
6567
6567
  }
@@ -6639,15 +6639,15 @@ const dt = [
6639
6639
  // rule below merges unused segments back with the rest of the text
6640
6640
  ["fragments_join", ls]
6641
6641
  ];
6642
- function _u() {
6643
- this.ruler = new te();
6642
+ function wu() {
6643
+ this.ruler = new ne();
6644
6644
  for (let e = 0; e < dt.length; e++)
6645
6645
  this.ruler.push(dt[e][0], dt[e][1]);
6646
- this.ruler2 = new te();
6646
+ this.ruler2 = new ne();
6647
6647
  for (let e = 0; e < ft.length; e++)
6648
6648
  this.ruler2.push(ft[e][0], ft[e][1]);
6649
6649
  }
6650
- _u.prototype.skipToken = function(e) {
6650
+ wu.prototype.skipToken = function(e) {
6651
6651
  const u = e.pos, t = this.ruler.getRules(""), n = t.length, r = e.md.options.maxNesting, o = e.cache;
6652
6652
  if (typeof o[u] < "u") {
6653
6653
  e.pos = o[u];
@@ -6665,7 +6665,7 @@ _u.prototype.skipToken = function(e) {
6665
6665
  e.pos = e.posMax;
6666
6666
  i || e.pos++, o[u] = e.pos;
6667
6667
  };
6668
- _u.prototype.tokenize = function(e) {
6668
+ wu.prototype.tokenize = function(e) {
6669
6669
  const u = this.ruler.getRules(""), t = u.length, n = e.posMax, r = e.md.options.maxNesting;
6670
6670
  for (; e.pos < n; ) {
6671
6671
  const o = e.pos;
@@ -6687,14 +6687,14 @@ _u.prototype.tokenize = function(e) {
6687
6687
  }
6688
6688
  e.pending && e.pushPending();
6689
6689
  };
6690
- _u.prototype.parse = function(e, u, t, n) {
6690
+ wu.prototype.parse = function(e, u, t, n) {
6691
6691
  const r = new this.State(e, u, t, n);
6692
6692
  this.tokenize(r);
6693
6693
  const o = this.ruler2.getRules(""), i = o.length;
6694
6694
  for (let a = 0; a < i; a++)
6695
6695
  o[a](r);
6696
6696
  };
6697
- _u.prototype.State = yu;
6697
+ wu.prototype.State = _u;
6698
6698
  function ds(e) {
6699
6699
  const u = {};
6700
6700
  e = e || {}, u.src_Any = yr.source, u.src_Cc = _r.source, u.src_Z = Er.source, u.src_P = qt.source, u.src_ZPCc = [u.src_Z, u.src_P, u.src_Cc].join("|"), u.src_ZCc = [u.src_Z, u.src_Cc].join("|");
@@ -6827,18 +6827,18 @@ function Pr(e, u, t, n) {
6827
6827
  const r = e.slice(t, n);
6828
6828
  this.schema = u.toLowerCase(), this.index = t, this.lastIndex = n, this.raw = r, this.text = r, this.url = r;
6829
6829
  }
6830
- function ne(e, u) {
6831
- if (!(this instanceof ne))
6832
- return new ne(e, u);
6830
+ function ie(e, u) {
6831
+ if (!(this instanceof ie))
6832
+ return new ie(e, u);
6833
6833
  u || ms(e) && (u = e, e = {}), this.__opts__ = Et({}, zr, u), this.__schemas__ = Et({}, gs, e), this.__compiled__ = {}, this.__tlds__ = ks, this.__tlds_replaced__ = !1, this.re = {}, qu(this);
6834
6834
  }
6835
- ne.prototype.add = function(u, t) {
6835
+ ie.prototype.add = function(u, t) {
6836
6836
  return this.__schemas__[u] = t, qu(this), this;
6837
6837
  };
6838
- ne.prototype.set = function(u) {
6838
+ ie.prototype.set = function(u) {
6839
6839
  return this.__opts__ = Et(this.__opts__, u), this;
6840
6840
  };
6841
- ne.prototype.test = function(u) {
6841
+ ie.prototype.test = function(u) {
6842
6842
  if (!u.length)
6843
6843
  return !1;
6844
6844
  let t, n;
@@ -6849,13 +6849,13 @@ ne.prototype.test = function(u) {
6849
6849
  }
6850
6850
  return !!(this.__opts__.fuzzyLink && this.__compiled__["http:"] && u.search(this.re.host_fuzzy_test) >= 0 && u.match(this.__opts__.fuzzyIP ? this.re.link_fuzzy : this.re.link_no_ip_fuzzy) !== null || this.__opts__.fuzzyEmail && this.__compiled__["mailto:"] && u.indexOf("@") >= 0 && u.match(this.re.email_fuzzy) !== null);
6851
6851
  };
6852
- ne.prototype.pretest = function(u) {
6852
+ ie.prototype.pretest = function(u) {
6853
6853
  return this.re.pretest.test(u);
6854
6854
  };
6855
- ne.prototype.testSchemaAt = function(u, t, n) {
6855
+ ie.prototype.testSchemaAt = function(u, t, n) {
6856
6856
  return this.__compiled__[t.toLowerCase()] ? this.__compiled__[t.toLowerCase()].validate(u, n, this) : 0;
6857
6857
  };
6858
- ne.prototype.match = function(u) {
6858
+ ie.prototype.match = function(u) {
6859
6859
  const t = [], n = [], r = [], o = [];
6860
6860
  let i, a, c;
6861
6861
  function s(p, h) {
@@ -6901,7 +6901,7 @@ ne.prototype.match = function(u) {
6901
6901
  }
6902
6902
  return t.length ? t : null;
6903
6903
  };
6904
- ne.prototype.matchAtStart = function(u) {
6904
+ ie.prototype.matchAtStart = function(u) {
6905
6905
  if (!u.length) return null;
6906
6906
  const t = this.re.schema_at_start.exec(u);
6907
6907
  if (!t) return null;
@@ -6910,17 +6910,17 @@ ne.prototype.matchAtStart = function(u) {
6910
6910
  const r = new Pr(u, t[2], t.index + t[1].length, t.index + t[0].length + n);
6911
6911
  return this.__compiled__[r.schema].normalize(r, this), r;
6912
6912
  };
6913
- ne.prototype.tlds = function(u, t) {
6913
+ ie.prototype.tlds = function(u, t) {
6914
6914
  return u = Array.isArray(u) ? u : [u], t ? (this.__tlds__ = this.__tlds__.concat(u).sort().filter(function(n, r, o) {
6915
6915
  return n !== o[r - 1];
6916
6916
  }).reverse(), qu(this), this) : (this.__tlds__ = u.slice(), this.__tlds_replaced__ = !0, qu(this), this);
6917
6917
  };
6918
- ne.prototype.normalize = function(u) {
6918
+ ie.prototype.normalize = function(u) {
6919
6919
  u.schema || (u.url = `http://${u.url}`), u.schema === "mailto:" && !/^mailto:/i.test(u.url) && (u.url = `mailto:${u.url}`);
6920
6920
  };
6921
- ne.prototype.onCompile = function() {
6921
+ ie.prototype.onCompile = function() {
6922
6922
  };
6923
- const Ke = 2147483647, be = 36, Gt = 1, gu = 26, vs = 38, ys = 700, Br = 72, Or = 128, qr = "-", _s = /^xn--/, ws = /[^\0-\x7F]/, Es = /[\x2E\u3002\uFF0E\uFF61]/g, Fs = {
6923
+ const Ye = 2147483647, be = 36, Gt = 1, xu = 26, vs = 38, ys = 700, Br = 72, Or = 128, qr = "-", _s = /^xn--/, ws = /[^\0-\x7F]/, Es = /[\x2E\u3002\uFF0E\uFF61]/g, Fs = {
6924
6924
  overflow: "Overflow: input needs wider integers to process",
6925
6925
  "not-basic": "Illegal input >= 0x80 (not a basic code point)",
6926
6926
  "invalid-input": "Invalid input"
@@ -6962,7 +6962,7 @@ const Ds = (e) => String.fromCodePoint(...e), Ts = function(e) {
6962
6962
  return e + 22 + 75 * (e < 26) - ((u != 0) << 5);
6963
6963
  }, Vr = function(e, u, t) {
6964
6964
  let n = 0;
6965
- for (e = t ? me(e / ys) : e >> 1, e += me(e / u); e > ht * gu >> 1; n += be)
6965
+ for (e = t ? me(e / ys) : e >> 1, e += me(e / u); e > ht * xu >> 1; n += be)
6966
6966
  e = me(e / ht);
6967
6967
  return me(n + (ht + 1) * e / (e + vs));
6968
6968
  }, Ur = function(e) {
@@ -6976,15 +6976,15 @@ const Ds = (e) => String.fromCodePoint(...e), Ts = function(e) {
6976
6976
  for (let l = 1, d = be; ; d += be) {
6977
6977
  a >= t && Ae("invalid-input");
6978
6978
  const p = Ts(e.charCodeAt(a++));
6979
- p >= be && Ae("invalid-input"), p > me((Ke - n) / l) && Ae("overflow"), n += p * l;
6980
- const h = d <= o ? Gt : d >= o + gu ? gu : d - o;
6979
+ p >= be && Ae("invalid-input"), p > me((Ye - n) / l) && Ae("overflow"), n += p * l;
6980
+ const h = d <= o ? Gt : d >= o + xu ? xu : d - o;
6981
6981
  if (p < h)
6982
6982
  break;
6983
6983
  const f = be - h;
6984
- l > me(Ke / f) && Ae("overflow"), l *= f;
6984
+ l > me(Ye / f) && Ae("overflow"), l *= f;
6985
6985
  }
6986
6986
  const s = u.length + 1;
6987
- o = Vr(n - c, s, c == 0), me(n / s) > Ke - r && Ae("overflow"), r += me(n / s), n %= s, u.splice(n++, 0, r);
6987
+ o = Vr(n - c, s, c == 0), me(n / s) > Ye - r && Ae("overflow"), r += me(n / s), n %= s, u.splice(n++, 0, r);
6988
6988
  }
6989
6989
  return String.fromCodePoint(...u);
6990
6990
  }, Gr = function(e) {
@@ -6997,16 +6997,16 @@ const Ds = (e) => String.fromCodePoint(...e), Ts = function(e) {
6997
6997
  const i = u.length;
6998
6998
  let a = i;
6999
6999
  for (i && u.push(qr); a < t; ) {
7000
- let c = Ke;
7000
+ let c = Ye;
7001
7001
  for (const l of e)
7002
7002
  l >= n && l < c && (c = l);
7003
7003
  const s = a + 1;
7004
- c - n > me((Ke - r) / s) && Ae("overflow"), r += (c - n) * s, n = c;
7004
+ c - n > me((Ye - r) / s) && Ae("overflow"), r += (c - n) * s, n = c;
7005
7005
  for (const l of e)
7006
- if (l < n && ++r > Ke && Ae("overflow"), l === n) {
7006
+ if (l < n && ++r > Ye && Ae("overflow"), l === n) {
7007
7007
  let d = r;
7008
7008
  for (let p = be; ; p += be) {
7009
- const h = p <= o ? Gt : p >= o + gu ? gu : p - o;
7009
+ const h = p <= o ? Gt : p >= o + xu ? xu : p - o;
7010
7010
  if (d < h)
7011
7011
  break;
7012
7012
  const f = d - h, m = be - h;
@@ -7231,7 +7231,7 @@ function Bs(e) {
7231
7231
  u.hostname = Zr.toASCII(u.hostname);
7232
7232
  } catch {
7233
7233
  }
7234
- return vu(Bt(u));
7234
+ return yu(Bt(u));
7235
7235
  }
7236
7236
  function Os(e) {
7237
7237
  const u = Ot(e, !0);
@@ -7240,17 +7240,17 @@ function Os(e) {
7240
7240
  u.hostname = Zr.toUnicode(u.hostname);
7241
7241
  } catch {
7242
7242
  }
7243
- return Je(Bt(u), Je.defaultChars + "%");
7243
+ return Qe(Bt(u), Qe.defaultChars + "%");
7244
7244
  }
7245
- function ce(e, u) {
7246
- if (!(this instanceof ce))
7247
- return new ce(e, u);
7248
- u || jt(e) || (u = e || {}, e = "default"), this.inline = new _u(), this.block = new ut(), this.core = new Vt(), this.renderer = new tu(), this.linkify = new ne(), this.validateLink = Ps, this.normalizeLink = Bs, this.normalizeLinkText = Os, this.utils = Ha, this.helpers = Qu({}, Za), this.options = {}, this.configure(e), u && this.set(u);
7245
+ function le(e, u) {
7246
+ if (!(this instanceof le))
7247
+ return new le(e, u);
7248
+ u || jt(e) || (u = e || {}, e = "default"), this.inline = new wu(), this.block = new ut(), this.core = new Vt(), this.renderer = new nu(), this.linkify = new ie(), this.validateLink = Ps, this.normalizeLink = Bs, this.normalizeLinkText = Os, this.utils = Ha, this.helpers = Qu({}, Za), this.options = {}, this.configure(e), u && this.set(u);
7249
7249
  }
7250
- ce.prototype.set = function(e) {
7250
+ le.prototype.set = function(e) {
7251
7251
  return Qu(this.options, e), this;
7252
7252
  };
7253
- ce.prototype.configure = function(e) {
7253
+ le.prototype.configure = function(e) {
7254
7254
  const u = this;
7255
7255
  if (jt(e)) {
7256
7256
  const t = e;
@@ -7263,7 +7263,7 @@ ce.prototype.configure = function(e) {
7263
7263
  e.components[t].rules && u[t].ruler.enableOnly(e.components[t].rules), e.components[t].rules2 && u[t].ruler2.enableOnly(e.components[t].rules2);
7264
7264
  }), this;
7265
7265
  };
7266
- ce.prototype.enable = function(e, u) {
7266
+ le.prototype.enable = function(e, u) {
7267
7267
  let t = [];
7268
7268
  Array.isArray(e) || (e = [e]), ["core", "block", "inline"].forEach(function(r) {
7269
7269
  t = t.concat(this[r].ruler.enable(e, !0));
@@ -7275,7 +7275,7 @@ ce.prototype.enable = function(e, u) {
7275
7275
  throw new Error("MarkdownIt. Failed to enable unknown rule(s): " + n);
7276
7276
  return this;
7277
7277
  };
7278
- ce.prototype.disable = function(e, u) {
7278
+ le.prototype.disable = function(e, u) {
7279
7279
  let t = [];
7280
7280
  Array.isArray(e) || (e = [e]), ["core", "block", "inline"].forEach(function(r) {
7281
7281
  t = t.concat(this[r].ruler.disable(e, !0));
@@ -7287,24 +7287,24 @@ ce.prototype.disable = function(e, u) {
7287
7287
  throw new Error("MarkdownIt. Failed to disable unknown rule(s): " + n);
7288
7288
  return this;
7289
7289
  };
7290
- ce.prototype.use = function(e) {
7290
+ le.prototype.use = function(e) {
7291
7291
  const u = [this].concat(Array.prototype.slice.call(arguments, 1));
7292
7292
  return e.apply(e, u), this;
7293
7293
  };
7294
- ce.prototype.parse = function(e, u) {
7294
+ le.prototype.parse = function(e, u) {
7295
7295
  if (typeof e != "string")
7296
7296
  throw new Error("Input data should be a String");
7297
7297
  const t = new this.core.State(e, this, u);
7298
7298
  return this.core.process(t), t.tokens;
7299
7299
  };
7300
- ce.prototype.render = function(e, u) {
7300
+ le.prototype.render = function(e, u) {
7301
7301
  return u = u || {}, this.renderer.render(this.parse(e, u), this.options, u);
7302
7302
  };
7303
- ce.prototype.parseInline = function(e, u) {
7303
+ le.prototype.parseInline = function(e, u) {
7304
7304
  const t = new this.core.State(e, this, u);
7305
7305
  return t.inlineMode = !0, this.core.process(t), t.tokens;
7306
7306
  };
7307
- ce.prototype.renderInline = function(e, u) {
7307
+ le.prototype.renderInline = function(e, u) {
7308
7308
  return u = u || {}, this.renderer.render(this.parseInline(e, u), this.options, u);
7309
7309
  };
7310
7310
  const qs = /\[\[(\d{1,3})\]\][ \t]*(?:\r?\n[ \t]*)?\([ \t]*(https?:\/\/[^\s)]+)[ \t]*\)/giu;
@@ -7327,35 +7327,35 @@ function Yr(e, u) {
7327
7327
  const t = e[u].type === "link_open" ? u + 1 : u - 1;
7328
7328
  return /^\[\d{1,3}\]$/u.test(e[t]?.content ?? "");
7329
7329
  }
7330
- const je = new ce({
7330
+ const He = new le({
7331
7331
  breaks: !0,
7332
7332
  html: !1,
7333
7333
  linkify: !1,
7334
7334
  typographer: !1
7335
7335
  });
7336
- je.validateLink = (e) => Kr(e) !== null;
7337
- je.renderer.rules.image = (e, u) => je.utils.escapeHtml(e[u].content);
7338
- je.renderer.rules.link_open = (e, u, t, n, r) => {
7336
+ He.validateLink = (e) => Kr(e) !== null;
7337
+ He.renderer.rules.image = (e, u) => He.utils.escapeHtml(e[u].content);
7338
+ He.renderer.rules.link_open = (e, u, t, n, r) => {
7339
7339
  const o = e[u];
7340
7340
  o.attrSet("target", "_blank"), o.attrSet("rel", "noopener noreferrer nofollow"), o.attrJoin("class", "chat-message-link");
7341
7341
  const i = r.renderToken(e, u, t);
7342
7342
  return Yr(e, u) ? `<sup class="chat-citation">${i}` : i;
7343
7343
  };
7344
- je.renderer.rules.link_close = (e, u, t, n, r) => {
7344
+ He.renderer.rules.link_close = (e, u, t, n, r) => {
7345
7345
  const o = r.renderToken(e, u, t);
7346
7346
  return Yr(e, u) ? `${o}</sup>` : o;
7347
7347
  };
7348
7348
  function Hs(e) {
7349
- return je.renderInline(js(e));
7349
+ return He.renderInline(js(e));
7350
7350
  }
7351
7351
  function Vs(e) {
7352
- return je.utils.escapeHtml(e).replace(/\r\n?|\n/gu, "<br>");
7353
- }
7354
- function ou(e) {
7355
- return ({ children: u }) => `<${e}>${We(u)}</${e}>`;
7352
+ return He.utils.escapeHtml(e).replace(/\r\n?|\n/gu, "<br>");
7356
7353
  }
7357
7354
  function iu(e) {
7358
- return ({ children: u }) => `<${e}>${We(u)}</${e}>`;
7355
+ return ({ children: u }) => `<${e}>${Ke(u)}</${e}>`;
7356
+ }
7357
+ function au(e) {
7358
+ return ({ children: u }) => `<${e}>${Ke(u)}</${e}>`;
7359
7359
  }
7360
7360
  function Jr(e) {
7361
7361
  return e.type === "hardBreak" ? `
@@ -7363,17 +7363,17 @@ function Jr(e) {
7363
7363
  }
7364
7364
  const Us = ea({
7365
7365
  nodeMapping: {
7366
- doc: ({ children: e }) => We(e),
7367
- paragraph: ou("p"),
7366
+ doc: ({ children: e }) => Ke(e),
7367
+ paragraph: iu("p"),
7368
7368
  text: ({ node: e }) => e.marks?.length ? _t(e.text ?? "") : Hs(e.text ?? ""),
7369
7369
  heading: ({ node: e, children: u }) => {
7370
7370
  const t = Number(e.attrs?.level ?? 1), n = `h${Number.isInteger(t) && t >= 1 && t <= 6 ? t : 1}`;
7371
- return `<${n}>${We(u)}</${n}>`;
7371
+ return `<${n}>${Ke(u)}</${n}>`;
7372
7372
  },
7373
- blockquote: ou("blockquote"),
7374
- bulletList: ou("ul"),
7375
- orderedList: ou("ol"),
7376
- listItem: ou("li"),
7373
+ blockquote: iu("blockquote"),
7374
+ bulletList: iu("ul"),
7375
+ orderedList: iu("ol"),
7376
+ listItem: iu("li"),
7377
7377
  codeBlock: ({ node: e }) => {
7378
7378
  const u = e.attrs?.language, t = typeof u == "string" && u ? { class: `language-${u}` } : void 0;
7379
7379
  return `<pre><code${on(t)}>${_t(Jr(e))}</code></pre>`;
@@ -7382,14 +7382,14 @@ const Us = ea({
7382
7382
  horizontalRule: () => "<hr>"
7383
7383
  },
7384
7384
  markMapping: {
7385
- bold: iu("strong"),
7386
- italic: iu("em"),
7387
- strike: iu("s"),
7388
- underline: iu("u"),
7389
- code: iu("code"),
7385
+ bold: au("strong"),
7386
+ italic: au("em"),
7387
+ strike: au("s"),
7388
+ underline: au("u"),
7389
+ code: au("code"),
7390
7390
  link: ({ mark: e, children: u }) => {
7391
7391
  const t = Kr(e.attrs?.href);
7392
- if (!t) return We(u);
7392
+ if (!t) return Ke(u);
7393
7393
  const n = {
7394
7394
  href: t,
7395
7395
  target: "_blank",
@@ -7397,7 +7397,7 @@ const Us = ea({
7397
7397
  class: "chat-message-link",
7398
7398
  ...e.attrs?.title ? { title: String(e.attrs.title) } : {}
7399
7399
  };
7400
- return `<a${on(n)}>${We(u)}</a>`;
7400
+ return `<a${on(n)}>${Ke(u)}</a>`;
7401
7401
  }
7402
7402
  },
7403
7403
  unhandledNode: () => "",
@@ -7431,10 +7431,10 @@ function Ws(e, u = 60) {
7431
7431
  return r.length <= u ? r : `${r.slice(0, u).trim()}…`;
7432
7432
  }
7433
7433
  function Zt(e) {
7434
- if (e.author.type === oe.Customer) return e.content;
7435
- if (e.status === Oe.Failed) return null;
7434
+ if (e.author.type === ae.Customer) return e.content;
7435
+ if (e.status === qe.Failed) return null;
7436
7436
  const u = e.agenticSteps?.filter((t) => t.text).map((t) => t.text);
7437
- return e.status === Oe.Completed && u?.length ? { content: u.reduce(
7437
+ return e.status === qe.Completed && u?.length ? { content: u.reduce(
7438
7438
  (n, r) => [
7439
7439
  ...n,
7440
7440
  ...Array.isArray(r.content) ? r.content : []
@@ -7451,13 +7451,13 @@ function Xr({
7451
7451
  label: u,
7452
7452
  ...t
7453
7453
  }) {
7454
- const { t: n } = le();
7455
- return /* @__PURE__ */ N(
7454
+ const { t: n } = fe();
7455
+ return /* @__PURE__ */ L(
7456
7456
  "div",
7457
7457
  {
7458
7458
  ...t,
7459
7459
  role: "status",
7460
- className: U("chat-typing-indicator", e),
7460
+ className: Z("chat-typing-indicator", e),
7461
7461
  children: [
7462
7462
  /* @__PURE__ */ x("span", { className: "sr-only", children: u ?? n("chat.thinking") }),
7463
7463
  /* @__PURE__ */ x(
@@ -7494,16 +7494,16 @@ const rl = (e) => e ? [e] : [], ol = (e) => typeof Intl.Segmenter != "function"
7494
7494
  for (; t < e.length && t < u.length && e[t] === u[t]; )
7495
7495
  t += 1;
7496
7496
  return t;
7497
- }, Ze = (e) => /\s/u.test(e), il = (e, u, t) => {
7497
+ }, We = (e) => /\s/u.test(e), il = (e, u, t) => {
7498
7498
  let n = Math.min(u + t, e.length);
7499
7499
  if (n === e.length) return n - u;
7500
7500
  const r = Math.min(n + el, e.length);
7501
- for (; n < r && !Ze(e[n - 1]) && !Ze(e[n]); )
7501
+ for (; n < r && !We(e[n - 1]) && !We(e[n]); )
7502
7502
  n += 1;
7503
- for (; n < e.length && Ze(e[n]); ) n += 1;
7504
- if (e.slice(u, n).every(Ze)) {
7505
- for (; n < e.length && !Ze(e[n]); ) n += 1;
7506
- for (; n < e.length && Ze(e[n]); ) n += 1;
7503
+ for (; n < e.length && We(e[n]); ) n += 1;
7504
+ if (e.slice(u, n).every(We)) {
7505
+ for (; n < e.length && !We(e[n]); ) n += 1;
7506
+ for (; n < e.length && We(e[n]); ) n += 1;
7507
7507
  }
7508
7508
  return n - u;
7509
7509
  }, al = ({
@@ -7559,8 +7559,8 @@ const rl = (e) => e ? [e] : [], ol = (e) => typeof Intl.Segmenter != "function"
7559
7559
  if (l) {
7560
7560
  if (l.firstTimestamp ??= b, b - l.firstTimestamp < nl)
7561
7561
  return null;
7562
- const I = l.target, $ = l.text;
7563
- l = null, m(I, $);
7562
+ const I = l.target, P = l.text;
7563
+ l = null, m(I, P);
7564
7564
  }
7565
7565
  if (f()) return null;
7566
7566
  if (s)
@@ -7573,9 +7573,9 @@ const rl = (e) => e ? [e] : [], ol = (e) => typeof Intl.Segmenter != "function"
7573
7573
  tl
7574
7574
  );
7575
7575
  if (a = b, i = Math.min(ul, i + v / k), Math.floor(i) < 1) return null;
7576
- const E = g ? Math.ceil(C / c) : 1, w = g ? il(t, r.length, E) : E, y = t.slice(
7576
+ const w = g ? Math.ceil(C / c) : 1, E = g ? il(t, r.length, w) : w, y = t.slice(
7577
7577
  r.length,
7578
- r.length + w
7578
+ r.length + E
7579
7579
  );
7580
7580
  return r = r.concat(y), i = Math.max(0, i - 1), g && (c -= 1), r.length === t.length && (i = 0, a = null, c = 0), h(y);
7581
7581
  },
@@ -7658,7 +7658,7 @@ function dl({
7658
7658
  const d = (p, h) => {
7659
7659
  p.target === p.currentTarget && h === i.revision && (a.current = h, r && i.isSettled && l());
7660
7660
  };
7661
- return /* @__PURE__ */ N("span", { children: [
7661
+ return /* @__PURE__ */ L("span", { children: [
7662
7662
  i.stableText,
7663
7663
  i.animatedFragments.map((p) => /* @__PURE__ */ x(
7664
7664
  "span",
@@ -7692,19 +7692,19 @@ const fl = /* @__PURE__ */ new Set([
7692
7692
  className: t,
7693
7693
  ...n
7694
7694
  }) {
7695
- const { t: r } = le(), { anycableService: o } = Dt(), { settleMessageStream: i } = Tt(), a = hl(u), [c, s] = V("idle"), [l, d] = V(), [p, h] = V(), [f, m] = V(a), b = S(void 0), C = S(void 0), { author: g } = u, k = l0(u.id), v = u.status === Oe.Failed, _ = u.status === Oe.Completed || v, E = d0(u), w = g.type === oe.Agent;
7696
- w && k && (C.current = k);
7697
- const y = w ? k ?? C.current : void 0, $ = (_ ? a : "") || y?.text || "", M = !!(y && (y.done || _)), Q = !!(y && $ && (!M || p !== y.sequence)), X = Q ? "" : Ks(u);
7695
+ const { t: r } = fe(), { anycableService: o } = Dt(), { settleMessageStream: i } = Tt(), a = hl(u), [c, s] = V("idle"), [l, d] = V(), [p, h] = V(), [f, m] = V(a), b = S(void 0), C = S(void 0), { author: g } = u, k = l0(u.id), v = u.status === qe.Failed, _ = u.status === qe.Completed || v, w = d0(u), E = g.type === ae.Agent;
7696
+ E && k && (C.current = k);
7697
+ const y = E ? k ?? C.current : void 0, P = (_ ? a : "") || y?.text || "", N = !!(y && (y.done || _)), j = !!(y && P && (!N || p !== y.sequence)), U = j ? "" : Ks(u);
7698
7698
  H(() => {
7699
7699
  y || m(a);
7700
7700
  }, [y, a]);
7701
- const Y = async (O) => {
7702
- if (!(!E || !o || c === "submitting") && !(l && l !== O)) {
7703
- d(O), s("submitting"), b.current ??= crypto.randomUUID();
7701
+ const ee = async (B) => {
7702
+ if (!(!w || !o || c === "submitting") && !(l && l !== B)) {
7703
+ d(B), s("submitting"), b.current ??= crypto.randomUUID();
7704
7704
  try {
7705
7705
  await o.submitScenarioChoice({
7706
- inputRequestId: E.inputRequestId,
7707
- optionId: O,
7706
+ inputRequestId: w.inputRequestId,
7707
+ optionId: B,
7708
7708
  clientEventId: b.current
7709
7709
  }), s("submitted");
7710
7710
  } catch {
@@ -7712,80 +7712,80 @@ const fl = /* @__PURE__ */ new Set([
7712
7712
  }
7713
7713
  }
7714
7714
  };
7715
- return v ? null : /* @__PURE__ */ N(
7715
+ return v ? null : /* @__PURE__ */ L(
7716
7716
  "div",
7717
7717
  {
7718
7718
  ...n,
7719
- "data-author": w ? "agent" : "customer",
7720
- className: U(
7719
+ "data-author": E ? "agent" : "customer",
7720
+ className: Z(
7721
7721
  "chat-message-row flex w-fit max-w-[86%] flex-col gap-2",
7722
- g.type === oe.Agent ? "self-start" : "self-end",
7722
+ g.type === ae.Agent ? "self-start" : "self-end",
7723
7723
  t
7724
7724
  ),
7725
7725
  children: [
7726
7726
  /* @__PURE__ */ x(
7727
7727
  "div",
7728
7728
  {
7729
- className: U(
7729
+ className: Z(
7730
7730
  "message flex h-fit min-h-8 w-fit max-w-full items-center justify-center text-start",
7731
7731
  {
7732
- "rounded-es-[5px]": g.type === oe.Agent,
7733
- "self-start": g.type === oe.Agent,
7734
- "rounded-ee-[5px]": g.type === oe.Customer,
7735
- "self-end": g.type === oe.Customer
7732
+ "rounded-es-[5px]": g.type === ae.Agent,
7733
+ "self-start": g.type === ae.Agent,
7734
+ "rounded-ee-[5px]": g.type === ae.Customer,
7735
+ "self-end": g.type === ae.Customer
7736
7736
  }
7737
7737
  ),
7738
- children: Q && y ? /* @__PURE__ */ x("div", { className: "chat-message-content w-full min-w-0 break-words whitespace-pre-wrap", children: /* @__PURE__ */ x(
7738
+ children: j && y ? /* @__PURE__ */ x("div", { className: "chat-message-content w-full min-w-0 break-words whitespace-pre-wrap", children: /* @__PURE__ */ x(
7739
7739
  dl,
7740
7740
  {
7741
7741
  stableText: y.stableText,
7742
7742
  incomingText: y.incomingText,
7743
7743
  sequence: y.sequence,
7744
7744
  initialText: f,
7745
- targetText: $,
7746
- finished: M,
7745
+ targetText: P,
7746
+ finished: N,
7747
7747
  onSettled: () => {
7748
7748
  h(y.sequence), i(u.id);
7749
7749
  }
7750
7750
  }
7751
- ) }) : X || _ ? /* @__PURE__ */ x(
7751
+ ) }) : U || _ ? /* @__PURE__ */ x(
7752
7752
  "div",
7753
7753
  {
7754
- className: U(
7754
+ className: Z(
7755
7755
  "chat-message-content w-full min-w-0 break-words",
7756
- !w && "whitespace-pre-wrap"
7756
+ !E && "whitespace-pre-wrap"
7757
7757
  ),
7758
- dangerouslySetInnerHTML: { __html: X }
7758
+ dangerouslySetInnerHTML: { __html: U }
7759
7759
  }
7760
7760
  ) : /* @__PURE__ */ x(Xr, {})
7761
7761
  }
7762
7762
  ),
7763
- E && /* @__PURE__ */ N(
7763
+ w && /* @__PURE__ */ L(
7764
7764
  "div",
7765
7765
  {
7766
7766
  className: "flex flex-wrap gap-2 self-start",
7767
7767
  role: "group",
7768
7768
  "aria-label": r("chat.chooseAnswer"),
7769
7769
  children: [
7770
- E.options.map((O) => {
7771
- const G = l === O.id;
7770
+ w.options.map((B) => {
7771
+ const G = l === B.id;
7772
7772
  return /* @__PURE__ */ x(
7773
- J,
7773
+ ue,
7774
7774
  {
7775
7775
  type: "button",
7776
7776
  disabled: c === "submitting" || c === "submitted" || !!(l && !G),
7777
7777
  "aria-pressed": G,
7778
7778
  onClick: () => {
7779
- Y(O.id);
7779
+ ee(B.id);
7780
7780
  },
7781
- className: U(
7781
+ className: Z(
7782
7782
  "rounded-full border border-white/16 bg-black/28 px-3 py-1.5 text-xs font-medium text-white/90 backdrop-blur-xl transition-colors",
7783
7783
  "data-disabled:cursor-not-allowed data-disabled:opacity-45 data-hover:border-[#68d8ff]/55 data-hover:bg-white/10",
7784
7784
  G && "border-[#68d8ff]/65 bg-[#68d8ff]/12"
7785
7785
  ),
7786
- children: O.label
7786
+ children: B.label
7787
7787
  },
7788
- O.id
7788
+ B.id
7789
7789
  );
7790
7790
  }),
7791
7791
  c === "submitted" && /* @__PURE__ */ x("span", { className: "self-center text-xs text-white/70", children: r("chat.answerSent") }),
@@ -7805,23 +7805,23 @@ function gl({
7805
7805
  threadId: r,
7806
7806
  threshold: o = 80
7807
7807
  }) {
7808
- const i = S(!0), a = S(!1), c = S(null), s = S(null), l = S(n), d = S(t), p = S(r), h = P(() => {
7808
+ const i = S(!0), a = S(!1), c = S(null), s = S(null), l = S(n), d = S(t), p = S(r), h = R(() => {
7809
7809
  c.current !== null && (window.cancelAnimationFrame(c.current), c.current = null);
7810
- }, []), f = P(() => {
7810
+ }, []), f = R(() => {
7811
7811
  s.current !== null && (window.clearTimeout(s.current), s.current = null);
7812
- }, []), m = P(() => {
7812
+ }, []), m = R(() => {
7813
7813
  if (!a.current) return;
7814
7814
  a.current = !1, f();
7815
7815
  const g = e.current;
7816
7816
  !g || !i.current || (h(), g.scrollTo({ top: g.scrollHeight, behavior: "auto" }));
7817
- }, [h, f, e]), b = P(() => {
7817
+ }, [h, f, e]), b = R(() => {
7818
7818
  if (!a.current) return;
7819
7819
  a.current = !1, f();
7820
7820
  const g = e.current;
7821
7821
  if (!g) return;
7822
7822
  const k = g.scrollHeight - g.scrollTop - g.clientHeight;
7823
7823
  i.current = k <= o;
7824
- }, [f, e, o]), C = P(
7824
+ }, [f, e, o]), C = R(
7825
7825
  (g) => {
7826
7826
  if (a.current) return;
7827
7827
  const k = g.currentTarget, v = k.scrollHeight - k.scrollTop - k.clientHeight;
@@ -7829,21 +7829,21 @@ function gl({
7829
7829
  },
7830
7830
  [o]
7831
7831
  );
7832
- return xu(() => {
7832
+ return ku(() => {
7833
7833
  const g = e.current;
7834
7834
  if (!g) return;
7835
- const k = l.current, v = p.current !== r, _ = n > k, E = _ && !v && d.current !== void 0 && d.current !== t;
7836
- if (v && (i.current = !0), E)
7835
+ const k = l.current, v = p.current !== r, _ = n > k, w = _ && !v && d.current !== void 0 && d.current !== t;
7836
+ if (v && (i.current = !0), w)
7837
7837
  h(), f(), a.current = !1;
7838
7838
  else if (i.current) {
7839
7839
  h(), f();
7840
- const w = _ && k > 0 && !ml();
7841
- a.current = w, w && (s.current = window.setTimeout(
7840
+ const E = _ && k > 0 && !ml();
7841
+ a.current = E, E && (s.current = window.setTimeout(
7842
7842
  m,
7843
7843
  bl
7844
7844
  )), g.scrollTo({
7845
7845
  top: g.scrollHeight,
7846
- behavior: w ? "smooth" : "auto"
7846
+ behavior: E ? "smooth" : "auto"
7847
7847
  });
7848
7848
  }
7849
7849
  l.current = n, d.current = t, p.current = r;
@@ -7891,7 +7891,7 @@ function xl({
7891
7891
  {
7892
7892
  ...t,
7893
7893
  "data-author": "agent",
7894
- className: U(
7894
+ className: Z(
7895
7895
  "chat-message-row chat-pending-assistant-message flex w-fit max-w-[86%] flex-col gap-2 self-start",
7896
7896
  e
7897
7897
  ),
@@ -7977,7 +7977,7 @@ const Cl = [
7977
7977
  }
7978
7978
  ];
7979
7979
  function vl() {
7980
- const { t: e } = le();
7980
+ const { t: e } = fe();
7981
7981
  return /* @__PURE__ */ x(
7982
7982
  "div",
7983
7983
  {
@@ -8006,21 +8006,21 @@ function vl() {
8006
8006
  }
8007
8007
  const u0 = ["-320ms", "-160ms", "0ms"];
8008
8008
  function yl() {
8009
- const { t: e } = le();
8009
+ const { t: e } = fe();
8010
8010
  return /* @__PURE__ */ x(
8011
8011
  "div",
8012
8012
  {
8013
8013
  role: "status",
8014
8014
  "aria-label": e("chat.loadingOlder"),
8015
8015
  className: "flex flex-col gap-2 px-2 py-3",
8016
- children: /* @__PURE__ */ x("div", { "aria-hidden": "true", className: "flex flex-col gap-2", children: u0.map((u) => /* @__PURE__ */ N(
8016
+ children: /* @__PURE__ */ x("div", { "aria-hidden": "true", className: "flex flex-col gap-2", children: u0.map((u) => /* @__PURE__ */ L(
8017
8017
  "div",
8018
8018
  {
8019
8019
  style: { "--chat-skeleton-delay": u },
8020
8020
  className: "chat-list-pagination-skeleton chat-message-skeleton-bubble flex h-14 items-center gap-3 rounded-2xl border border-white/[0.05] bg-white/[0.035] px-3",
8021
8021
  children: [
8022
8022
  /* @__PURE__ */ x("span", { className: "h-8 w-8 shrink-0 rounded-full bg-[#68d8ff]/[0.1]" }),
8023
- /* @__PURE__ */ N("span", { className: "flex flex-1 flex-col gap-2", children: [
8023
+ /* @__PURE__ */ L("span", { className: "flex flex-1 flex-col gap-2", children: [
8024
8024
  /* @__PURE__ */ x("span", { className: "h-2 w-[42%] rounded-full bg-white/[0.11]" }),
8025
8025
  /* @__PURE__ */ x("span", { className: "h-2 w-[76%] rounded-full bg-white/[0.07]" })
8026
8026
  ] })
@@ -8032,14 +8032,14 @@ function yl() {
8032
8032
  );
8033
8033
  }
8034
8034
  function _l() {
8035
- const { t: e } = le();
8035
+ const { t: e } = fe();
8036
8036
  return /* @__PURE__ */ x(
8037
8037
  "div",
8038
8038
  {
8039
8039
  role: "status",
8040
8040
  "aria-label": e("chat.loadingOlderMessages"),
8041
8041
  className: "flex w-full flex-col gap-2 py-2",
8042
- children: /* @__PURE__ */ x("div", { "aria-hidden": "true", className: "flex flex-col gap-2", children: u0.map((u, t) => /* @__PURE__ */ N(
8042
+ children: /* @__PURE__ */ x("div", { "aria-hidden": "true", className: "flex flex-col gap-2", children: u0.map((u, t) => /* @__PURE__ */ L(
8043
8043
  "div",
8044
8044
  {
8045
8045
  style: { "--chat-skeleton-delay": u },
@@ -8062,7 +8062,7 @@ function t0({
8062
8062
  resetKey: r,
8063
8063
  rootMargin: o = "160px 0px"
8064
8064
  }) {
8065
- const i = S(null), a = S(!1), c = S(0), s = S(!0), [l, d] = V(null), p = P(async () => {
8065
+ const i = S(null), a = S(!1), c = S(0), s = S(!0), [l, d] = V(null), p = R(async () => {
8066
8066
  if (!u || t || a.current) return;
8067
8067
  const h = c.current;
8068
8068
  a.current = !0, d(null);
@@ -8103,9 +8103,9 @@ function wl({
8103
8103
  isLoading: n,
8104
8104
  itemCount: r
8105
8105
  }) {
8106
- const o = S(null), i = S(null), [a, c] = V(0), s = P(() => {
8106
+ const o = S(null), i = S(null), [a, c] = V(0), s = R(() => {
8107
8107
  o.current = null, i.current?.(), i.current = null;
8108
- }, []), l = P(() => {
8108
+ }, []), l = R(() => {
8109
8109
  const d = e.current;
8110
8110
  if (!d || !u) return;
8111
8111
  const p = d.getBoundingClientRect(), h = Lu(d).find((f) => {
@@ -8120,7 +8120,7 @@ function wl({
8120
8120
  top: h.getBoundingClientRect().top
8121
8121
  }, c((f) => f + 1));
8122
8122
  }, [e, u, t, r]);
8123
- return xu(() => {
8123
+ return ku(() => {
8124
8124
  const d = o.current;
8125
8125
  if (!d || n) return;
8126
8126
  if (d.contextId !== u) {
@@ -8142,23 +8142,23 @@ function wl({
8142
8142
  let h = null, f = p.scrollTop;
8143
8143
  const m = () => {
8144
8144
  h = null;
8145
- const E = o.current;
8146
- if (!E) return;
8147
- const w = Lu(p).find(
8148
- (y) => y.dataset.chatMessageId === E.itemId
8145
+ const w = o.current;
8146
+ if (!w) return;
8147
+ const E = Lu(p).find(
8148
+ (y) => y.dataset.chatMessageId === w.itemId
8149
8149
  );
8150
- if (!w) {
8150
+ if (!E) {
8151
8151
  s();
8152
8152
  return;
8153
8153
  }
8154
- f = p.scrollTop + w.getBoundingClientRect().top - E.top, p.scrollTop = f;
8154
+ f = p.scrollTop + E.getBoundingClientRect().top - w.top, p.scrollTop = f;
8155
8155
  }, b = typeof ResizeObserver > "u" ? null : new ResizeObserver(() => {
8156
8156
  h === null && (h = window.requestAnimationFrame(m));
8157
8157
  }), C = Lu(p), g = C.findIndex(
8158
- (E) => E.dataset.chatMessageId === d.itemId
8158
+ (w) => w.dataset.chatMessageId === d.itemId
8159
8159
  );
8160
- for (const E of C.slice(0, g + 1))
8161
- b?.observe(E);
8160
+ for (const w of C.slice(0, g + 1))
8161
+ b?.observe(w);
8162
8162
  const k = () => s(), v = () => {
8163
8163
  Math.abs(p.scrollTop - f) > 1 && s();
8164
8164
  };
@@ -8192,134 +8192,145 @@ function El(e, u) {
8192
8192
  );
8193
8193
  }
8194
8194
  function Fl() {
8195
- const { direction: e, t: u } = le(), t = u("chat.talk"), { open: n } = ku(), r = ju(), [o, i] = V(""), [a, c] = V(!1), s = S(null), l = S(null), d = S(null), p = S(null), h = S(null), f = S(null), {
8196
- cancelThreadMessagesRequest: m,
8197
- fetchOlderThreadMessages: b,
8198
- sendMessage: C,
8199
- setLatestReadMessageDate: g
8200
- } = Tt(), k = f0(), v = h0(), _ = p0(), E = b0(), w = m0(), y = g0(), I = x0(), $ = k0(), M = C0(), { networkStatus: Q } = Dt();
8201
- xu(() => {
8202
- const T = l.current, B = d.current;
8203
- if (!T || !B) return;
8204
- let re = !0;
8205
- const R = () => {
8206
- re && El(T, B);
8195
+ const { direction: e, t: u } = fe(), t = u("chat.talk"), { open: n, cta: r, ctaAfterMessageId: o } = Cu(), i = ju(), [a, c] = V(""), [s, l] = V(!1), d = S(null), p = S(null), h = S(null), f = S(null), m = S(null), b = S(null), {
8196
+ cancelThreadMessagesRequest: C,
8197
+ fetchOlderThreadMessages: g,
8198
+ sendMessage: k,
8199
+ setLatestReadMessageDate: v
8200
+ } = Tt(), _ = f0(), w = h0(), E = p0(), y = b0(), I = m0(), P = g0(), N = x0(), j = k0(), U = C0(), { networkStatus: ee } = Dt();
8201
+ ku(() => {
8202
+ const $ = p.current, T = h.current;
8203
+ if (!$ || !T) return;
8204
+ let J = !0;
8205
+ const W = () => {
8206
+ J && El($, T);
8207
8207
  };
8208
- R();
8209
- const he = typeof ResizeObserver == "function" ? new ResizeObserver(R) : null;
8210
- return he?.observe(B), document.fonts?.ready.then(R), () => {
8211
- re = !1, he?.disconnect();
8208
+ W();
8209
+ const Ie = typeof ResizeObserver == "function" ? new ResizeObserver(W) : null;
8210
+ return Ie?.observe(T), document.fonts?.ready.then(W), () => {
8211
+ J = !1, Ie?.disconnect();
8212
8212
  };
8213
8213
  }, [t]);
8214
- const X = Se(() => {
8215
- const T = $.map((R) => ({
8214
+ const B = Se(() => {
8215
+ const $ = j.map((T) => ({
8216
8216
  type: "canonical",
8217
- message: R
8217
+ message: T
8218
8218
  }));
8219
- if (!I) return T;
8220
- const B = I.afterMessageId ? $.findIndex(
8221
- ({ id: R }) => R === I.afterMessageId
8222
- ) : -1, re = I.afterMessageId ? B >= 0 ? B + 1 : T.length : 0;
8223
- return T.splice(re, 0, {
8224
- type: "optimistic",
8225
- message: I
8226
- }), T;
8227
- }, [I, $]), Y = _ && X.length === 0, O = gl({
8228
- containerRef: h,
8229
- contentRef: f,
8230
- firstMessageId: $[0]?.id,
8231
- messageCount: $.length + +!!I + Number(v),
8232
- threadId: M
8233
- }), { captureAnchor: G, clearAnchor: ee } = wl({
8234
- containerRef: h,
8235
- contextId: M,
8236
- firstItemId: $[0]?.id,
8237
- isLoading: w,
8238
- itemCount: $.length
8239
- }), D = P(async () => {
8240
- if (M) {
8241
- G();
8219
+ if (N) {
8220
+ const T = N.afterMessageId ? j.findIndex(
8221
+ ({ id: W }) => W === N.afterMessageId
8222
+ ) : -1, J = N.afterMessageId ? T >= 0 ? T + 1 : $.length : 0;
8223
+ $.splice(J, 0, {
8224
+ type: "optimistic",
8225
+ message: N
8226
+ });
8227
+ }
8228
+ if (r) {
8229
+ const T = o ? $.findIndex(
8230
+ (J) => J.type !== "cta" && J.message.id === o
8231
+ ) : -1;
8232
+ $.splice(T + 1, 0, {
8233
+ type: "cta",
8234
+ commandId: r.commandId
8235
+ });
8236
+ }
8237
+ return $;
8238
+ }, [r, o, N, j]), G = E && B.length === 0, re = gl({
8239
+ containerRef: m,
8240
+ contentRef: b,
8241
+ firstMessageId: j[0]?.id,
8242
+ messageCount: j.length + +!!N + Number(w) + +!!r,
8243
+ threadId: U
8244
+ }), { captureAnchor: D, clearAnchor: pe } = wl({
8245
+ containerRef: m,
8246
+ contextId: U,
8247
+ firstItemId: j[0]?.id,
8248
+ isLoading: I,
8249
+ itemCount: j.length
8250
+ }), Le = R(async () => {
8251
+ if (U) {
8252
+ D();
8242
8253
  try {
8243
- await b(M);
8244
- } catch (T) {
8245
- throw ee(), T;
8254
+ await g(U);
8255
+ } catch ($) {
8256
+ throw pe(), $;
8246
8257
  }
8247
8258
  }
8248
- }, [G, ee, M, b]), {
8249
- error: fe,
8250
- loadMore: Le,
8251
- sentinelRef: Ne
8259
+ }, [D, pe, U, g]), {
8260
+ error: we,
8261
+ loadMore: Ne,
8262
+ sentinelRef: z
8252
8263
  } = t0({
8253
- rootRef: h,
8254
- enabled: E,
8255
- isLoading: w,
8256
- onLoad: D,
8257
- resetKey: M
8264
+ rootRef: m,
8265
+ enabled: y,
8266
+ isLoading: I,
8267
+ onLoad: Le,
8268
+ resetKey: U
8258
8269
  });
8259
8270
  H(
8260
8271
  () => () => {
8261
- p.current !== null && window.clearTimeout(p.current);
8272
+ f.current !== null && window.clearTimeout(f.current);
8262
8273
  },
8263
8274
  []
8264
8275
  ), H(
8265
8276
  () => () => {
8266
- M && m(M);
8277
+ U && C(U);
8267
8278
  },
8268
- [m, M]
8279
+ [C, U]
8269
8280
  ), H(() => {
8270
- if (n && $.length > 0) {
8271
- const T = $.findLast(
8272
- (B) => B.author.type === oe.Customer || B.status === Oe.Completed || B.status === Oe.Failed
8281
+ if (n && j.length > 0) {
8282
+ const $ = j.findLast(
8283
+ (T) => T.author.type === ae.Customer || T.status === qe.Completed || T.status === qe.Failed
8273
8284
  );
8274
- T && g(T.updatedAt);
8285
+ $ && v($.updatedAt);
8275
8286
  }
8276
- }, [$, n, g]);
8277
- const we = Se(() => k ? v0(k, u) : $.some((B) => B.author.type === oe.Agent && B.status === Oe.Failed) ? u(au.agentResponseFailed) : Q === Ru.Unavailable ? u(au.connectionFailed) : Q === Ru.Offline ? u(au.offline) : null, [Q, k, u, $]), z = () => {
8278
- const T = o.trim();
8279
- !T || y || (p.current !== null && (window.clearTimeout(p.current), p.current = null), i(""), s.current && (s.current.style.height = "auto"), C(T));
8287
+ }, [j, n, v]);
8288
+ const Y = Se(() => _ ? v0(_, u) : j.some((T) => T.author.type === ae.Agent && T.status === qe.Failed) ? u(cu.agentResponseFailed) : ee === Ru.Unavailable ? u(cu.connectionFailed) : ee === Ru.Offline ? u(cu.offline) : null, [ee, _, u, j]), oe = () => {
8289
+ const $ = a.trim();
8290
+ !$ || P || (f.current !== null && (window.clearTimeout(f.current), f.current = null), c(""), d.current && (d.current.style.height = "auto"), k($));
8280
8291
  };
8281
- return /* @__PURE__ */ N("div", { className: "z-1 flex min-h-0 flex-1 flex-col overflow-hidden px-3 pb-2", children: [
8292
+ return /* @__PURE__ */ L("div", { className: "z-1 flex min-h-0 flex-1 flex-col overflow-hidden px-3 pb-2", children: [
8282
8293
  /* @__PURE__ */ x(
8283
8294
  "div",
8284
8295
  {
8285
- ref: h,
8286
- onScroll: O,
8296
+ ref: m,
8297
+ onScroll: re,
8287
8298
  className: "chat-scrollbar flex h-0 min-h-0 flex-1 flex-col overflow-y-auto px-1 [overflow-anchor:none]",
8288
- children: /* @__PURE__ */ N(
8299
+ children: /* @__PURE__ */ L(
8289
8300
  "div",
8290
8301
  {
8291
- ref: f,
8292
- "aria-busy": Y || w,
8302
+ ref: b,
8303
+ "aria-busy": G || I,
8293
8304
  className: "chat-timeline relative z-1 flex min-h-full shrink-0 flex-col justify-end gap-2 pt-3 pb-3",
8294
8305
  children: [
8295
- (E || w) && /* @__PURE__ */ N("div", { className: "relative flex h-7 shrink-0 items-center justify-center", children: [
8306
+ (y || I) && /* @__PURE__ */ L("div", { className: "relative flex h-7 shrink-0 items-center justify-center", children: [
8296
8307
  /* @__PURE__ */ x(
8297
8308
  "div",
8298
8309
  {
8299
- ref: Ne,
8310
+ ref: z,
8300
8311
  "aria-hidden": "true",
8301
8312
  className: "absolute top-0 h-px w-full"
8302
8313
  }
8303
8314
  ),
8304
- w ? /* @__PURE__ */ x("div", { className: "pointer-events-none absolute top-0 right-0 left-0 z-10", children: /* @__PURE__ */ x(_l, {}) }) : /* @__PURE__ */ x(
8305
- J,
8315
+ I ? /* @__PURE__ */ x("div", { className: "pointer-events-none absolute top-0 right-0 left-0 z-10", children: /* @__PURE__ */ x(_l, {}) }) : /* @__PURE__ */ x(
8316
+ ue,
8306
8317
  {
8307
8318
  type: "button",
8308
8319
  "aria-label": u("chat.loadPreviousMessages"),
8309
8320
  onClick: () => {
8310
- Le();
8321
+ Ne();
8311
8322
  },
8312
8323
  className: "rounded-full border border-white/10 bg-black/20 px-3 py-1 text-[11px] text-white/65 transition-colors hover:border-[#68d8ff]/30 hover:text-white/90",
8313
- children: u(fe ? "chat.retryPreviousMessages" : "chat.loadPreviousMessages")
8324
+ children: u(we ? "chat.retryPreviousMessages" : "chat.loadPreviousMessages")
8314
8325
  }
8315
8326
  )
8316
8327
  ] }),
8317
- fe && /* @__PURE__ */ x("p", { role: "alert", className: "text-center text-xs text-red-200", children: u("chat.previousLoadFailed") }),
8318
- /* @__PURE__ */ N("div", { className: "relative w-full", children: [
8328
+ we && /* @__PURE__ */ x("p", { role: "alert", className: "text-center text-xs text-red-200", children: u("chat.previousLoadFailed") }),
8329
+ /* @__PURE__ */ L("div", { className: "relative w-full", children: [
8319
8330
  /* @__PURE__ */ x(
8320
8331
  rn,
8321
8332
  {
8322
- show: Y,
8333
+ show: G,
8323
8334
  enter: "transition-[opacity,transform] duration-[220ms] ease-out motion-reduce:transition-none",
8324
8335
  enterFrom: "translate-y-1.5 opacity-0 motion-reduce:translate-y-0",
8325
8336
  enterTo: "translate-y-0 opacity-100",
@@ -8332,60 +8343,65 @@ function Fl() {
8332
8343
  /* @__PURE__ */ x(
8333
8344
  rn,
8334
8345
  {
8335
- show: !Y,
8346
+ show: !G,
8336
8347
  enter: "transition-[opacity,transform] delay-75 duration-[220ms] ease-out motion-reduce:transition-none motion-reduce:delay-0",
8337
8348
  enterFrom: "translate-y-2 opacity-0 motion-reduce:translate-y-0",
8338
8349
  enterTo: "translate-y-0 opacity-100",
8339
8350
  leave: "transition-opacity duration-100 ease-out motion-reduce:transition-none",
8340
8351
  leaveFrom: "opacity-100",
8341
8352
  leaveTo: "opacity-0",
8342
- children: /* @__PURE__ */ x("div", { className: "flex w-full flex-col gap-2", children: X.map(
8343
- (T) => T.type === "canonical" ? /* @__PURE__ */ x(
8353
+ children: /* @__PURE__ */ x("div", { className: "flex w-full flex-col gap-2", children: B.map(
8354
+ ($) => $.type === "canonical" ? /* @__PURE__ */ x(
8344
8355
  pl,
8345
8356
  {
8346
- "data-chat-message-id": T.message.id,
8347
- message: T.message
8357
+ "data-chat-message-id": $.message.id,
8358
+ message: $.message
8348
8359
  },
8349
- T.message.id
8350
- ) : /* @__PURE__ */ x(
8360
+ $.message.id
8361
+ ) : $.type === "optimistic" ? /* @__PURE__ */ x(
8351
8362
  kl,
8352
8363
  {
8353
- message: T.message
8364
+ message: $.message
8365
+ },
8366
+ $.message.id
8367
+ ) : /* @__PURE__ */ x(
8368
+ vr,
8369
+ {
8370
+ className: "self-start"
8354
8371
  },
8355
- T.message.id
8372
+ `cta:${$.commandId}`
8356
8373
  )
8357
8374
  ) })
8358
8375
  }
8359
8376
  )
8360
8377
  ] }),
8361
- v && /* @__PURE__ */ x(xl, {}),
8362
- /* @__PURE__ */ x(vr, { className: "self-start" }),
8363
- we && /* @__PURE__ */ x(kr, { message: we, className: "mt-2" })
8378
+ w && /* @__PURE__ */ x(xl, {}),
8379
+ Y && /* @__PURE__ */ x(kr, { message: Y, className: "mt-2" })
8364
8380
  ]
8365
8381
  }
8366
8382
  )
8367
8383
  }
8368
8384
  ),
8369
- /* @__PURE__ */ N(
8385
+ /* @__PURE__ */ L(
8370
8386
  "div",
8371
8387
  {
8372
- ref: l,
8388
+ ref: p,
8373
8389
  className: "chat-composer flex w-full shrink-0 flex-row items-center gap-1 p-1",
8374
8390
  children: [
8375
- /* @__PURE__ */ N("div", { className: "chat-composer-main flex min-w-0 flex-1 flex-row items-center gap-1", children: [
8391
+ /* @__PURE__ */ L("div", { className: "chat-composer-main flex min-w-0 flex-1 flex-row items-center gap-1", children: [
8376
8392
  /* @__PURE__ */ x(
8377
- J,
8393
+ ue,
8378
8394
  {
8379
8395
  "aria-label": u("chat.switchToVoice"),
8380
- "data-compact": a,
8396
+ "data-compact": s,
8381
8397
  className: "chat-composer-button chat-talk-button relative h-8 shrink-0 overflow-hidden text-[12px] leading-4 font-medium text-white",
8382
- onClick: () => r(se.voice),
8383
- children: /* @__PURE__ */ N("span", { className: "chat-talk-button__content", children: [
8398
+ onClick: () => i(de.voice),
8399
+ children: /* @__PURE__ */ L("span", { className: "chat-talk-button__content", children: [
8384
8400
  /* @__PURE__ */ x(Yi, { className: "chat-talk-button__icon h-3.5 w-3.5 shrink-0 text-[#68d8ff]" }),
8385
8401
  /* @__PURE__ */ x(
8386
8402
  "span",
8387
8403
  {
8388
- ref: d,
8404
+ ref: h,
8389
8405
  className: "chat-talk-button__label whitespace-nowrap",
8390
8406
  children: t
8391
8407
  }
@@ -8396,43 +8412,43 @@ function Fl() {
8396
8412
  /* @__PURE__ */ x("div", { className: "flex min-w-0 flex-1 items-center", children: /* @__PURE__ */ x(
8397
8413
  Gi,
8398
8414
  {
8399
- ref: s,
8400
- value: o,
8415
+ ref: d,
8416
+ value: a,
8401
8417
  rows: 1,
8402
8418
  "aria-label": u("chat.messageLabel"),
8403
8419
  placeholder: u("chat.messagePlaceholder"),
8404
- onFocus: () => c(!0),
8405
- onBlur: () => c(!1),
8406
- onChange: (T) => i(T.target.value),
8407
- onInput: (T) => {
8408
- const B = T.currentTarget;
8409
- p.current !== null && window.clearTimeout(p.current), p.current = null;
8410
- const re = B.clientHeight + "px";
8411
- B.style.height = "auto";
8412
- const R = Math.min(B.scrollHeight, 160) + "px";
8413
- B.style.height = re, re !== R && (p.current = window.setTimeout(() => {
8414
- B.style.height = R, p.current = null;
8420
+ onFocus: () => l(!0),
8421
+ onBlur: () => l(!1),
8422
+ onChange: ($) => c($.target.value),
8423
+ onInput: ($) => {
8424
+ const T = $.currentTarget;
8425
+ f.current !== null && window.clearTimeout(f.current), f.current = null;
8426
+ const J = T.clientHeight + "px";
8427
+ T.style.height = "auto";
8428
+ const W = Math.min(T.scrollHeight, 160) + "px";
8429
+ T.style.height = J, J !== W && (f.current = window.setTimeout(() => {
8430
+ T.style.height = W, f.current = null;
8415
8431
  }));
8416
8432
  },
8417
- onKeyDown: (T) => {
8418
- T.key === "Enter" && !T.nativeEvent.isComposing && (T.preventDefault(), z());
8433
+ onKeyDown: ($) => {
8434
+ $.key === "Enter" && !$.nativeEvent.isComposing && ($.preventDefault(), oe());
8419
8435
  },
8420
8436
  className: "no-scrollbar block h-8 min-h-8 w-full resize-none overflow-y-auto border-none bg-transparent px-2 py-1.5 text-[13px] leading-[18px] font-normal text-white transition-[height] duration-200 outline-none placeholder:text-white/38"
8421
8437
  }
8422
8438
  ) })
8423
8439
  ] }),
8424
- /* @__PURE__ */ N(
8425
- J,
8440
+ /* @__PURE__ */ L(
8441
+ ue,
8426
8442
  {
8427
- disabled: !o.trim() || y,
8443
+ disabled: !a.trim() || P,
8428
8444
  "aria-label": u("chat.send"),
8429
- className: `${o && "group"} chat-send-button`,
8430
- onClick: z,
8445
+ className: `${a && "group"} chat-send-button`,
8446
+ onClick: oe,
8431
8447
  children: [
8432
8448
  /* @__PURE__ */ x(
8433
8449
  Ji,
8434
8450
  {
8435
- className: U(
8451
+ className: Z(
8436
8452
  "h-3.5 w-3.5 group-hover:hidden",
8437
8453
  e === "rtl" && "-scale-x-100"
8438
8454
  )
@@ -8441,7 +8457,7 @@ function Fl() {
8441
8457
  /* @__PURE__ */ x(
8442
8458
  Qi,
8443
8459
  {
8444
- className: U(
8460
+ className: Z(
8445
8461
  "hidden h-3.5 w-3.5 group-hover:block",
8446
8462
  e === "rtl" && "-scale-x-100"
8447
8463
  )
@@ -8455,9 +8471,9 @@ function Fl() {
8455
8471
  )
8456
8472
  ] });
8457
8473
  }
8458
- const Al = (e) => /* @__PURE__ */ q.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ q.createElement("path", { d: "M15.4238 13.8329C15.6352 14.0442 15.7539 14.3309 15.7539 14.6298C15.7539 14.9286 15.6352 15.2153 15.4238 15.4266C15.2125 15.638 14.9258 15.7567 14.627 15.7567C14.3281 15.7567 14.0414 15.638 13.8301 15.4266L7.87789 9.47258L1.92383 15.4248C1.71248 15.6361 1.42584 15.7548 1.12695 15.7548C0.828065 15.7548 0.541421 15.6361 0.330077 15.4248C0.118732 15.2134 4.45375e-09 14.9268 0 14.6279C-4.45375e-09 14.329 0.118732 14.0424 0.330077 13.831L6.28414 7.87883L0.331951 1.92476C0.120607 1.71342 0.00187504 1.42677 0.00187504 1.12789C0.00187505 0.829003 0.120607 0.542358 0.331951 0.331014C0.543296 0.11967 0.82994 0.000937346 1.12883 0.000937343C1.42771 0.00093734 1.71436 0.11967 1.9257 0.331014L7.87789 6.28508L13.832 0.330076C14.0433 0.118732 14.3299 -4.97944e-09 14.6288 0C14.9277 4.97944e-09 15.2144 0.118732 15.4257 0.330076C15.637 0.541421 15.7558 0.828065 15.7558 1.12695C15.7558 1.42584 15.637 1.71248 15.4257 1.92383L9.47164 7.87883L15.4238 13.8329Z" })), Dl = (e) => /* @__PURE__ */ q.createElement("svg", { width: 16, height: 3, viewBox: "0 0 16 3", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ q.createElement("path", { d: "M9.375 1.5C9.375 1.79667 9.28703 2.08668 9.1222 2.33336C8.95738 2.58003 8.72312 2.77229 8.44903 2.88582C8.17494 2.99935 7.87334 3.02906 7.58237 2.97118C7.29139 2.9133 7.02412 2.77044 6.81434 2.56066C6.60456 2.35088 6.4617 2.08361 6.40382 1.79264C6.34594 1.50166 6.37565 1.20006 6.48918 0.925975C6.60271 0.651886 6.79497 0.417618 7.04165 0.252796C7.28832 0.0879736 7.57833 0 7.875 0C8.27283 0 8.65436 0.158036 8.93566 0.43934C9.21696 0.720645 9.375 1.10218 9.375 1.5ZM1.5 0C1.20333 0 0.913319 0.0879736 0.666646 0.252796C0.419972 0.417618 0.227713 0.651886 0.114181 0.925975C0.000649922 1.20006 -0.0290551 1.50166 0.0288228 1.79264C0.0867006 2.08361 0.229562 2.35088 0.439341 2.56066C0.649119 2.77044 0.916394 2.9133 1.20737 2.97118C1.49834 3.02906 1.79994 2.99935 2.07403 2.88582C2.34811 2.77229 2.58238 2.58003 2.74721 2.33336C2.91203 2.08668 3 1.79667 3 1.5C3 1.10218 2.84197 0.720645 2.56066 0.43934C2.27936 0.158036 1.89783 0 1.5 0ZM14.25 0C13.9533 0 13.6633 0.0879736 13.4166 0.252796C13.17 0.417618 12.9777 0.651886 12.8642 0.925975C12.7507 1.20006 12.7209 1.50166 12.7788 1.79264C12.8367 2.08361 12.9796 2.35088 13.1893 2.56066C13.3991 2.77044 13.6664 2.9133 13.9574 2.97118C14.2483 3.02906 14.5499 2.99935 14.824 2.88582C15.0981 2.77229 15.3324 2.58003 15.4972 2.33336C15.662 2.08668 15.75 1.79667 15.75 1.5C15.75 1.10218 15.592 0.720645 15.3107 0.43934C15.0294 0.158036 14.6478 0 14.25 0Z", fill: "white" }));
8474
+ const Al = (e) => /* @__PURE__ */ O.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ O.createElement("path", { d: "M15.4238 13.8329C15.6352 14.0442 15.7539 14.3309 15.7539 14.6298C15.7539 14.9286 15.6352 15.2153 15.4238 15.4266C15.2125 15.638 14.9258 15.7567 14.627 15.7567C14.3281 15.7567 14.0414 15.638 13.8301 15.4266L7.87789 9.47258L1.92383 15.4248C1.71248 15.6361 1.42584 15.7548 1.12695 15.7548C0.828065 15.7548 0.541421 15.6361 0.330077 15.4248C0.118732 15.2134 4.45375e-09 14.9268 0 14.6279C-4.45375e-09 14.329 0.118732 14.0424 0.330077 13.831L6.28414 7.87883L0.331951 1.92476C0.120607 1.71342 0.00187504 1.42677 0.00187504 1.12789C0.00187505 0.829003 0.120607 0.542358 0.331951 0.331014C0.543296 0.11967 0.82994 0.000937346 1.12883 0.000937343C1.42771 0.00093734 1.71436 0.11967 1.9257 0.331014L7.87789 6.28508L13.832 0.330076C14.0433 0.118732 14.3299 -4.97944e-09 14.6288 0C14.9277 4.97944e-09 15.2144 0.118732 15.4257 0.330076C15.637 0.541421 15.7558 0.828065 15.7558 1.12695C15.7558 1.42584 15.637 1.71248 15.4257 1.92383L9.47164 7.87883L15.4238 13.8329Z" })), Dl = (e) => /* @__PURE__ */ O.createElement("svg", { width: 16, height: 3, viewBox: "0 0 16 3", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ O.createElement("path", { d: "M9.375 1.5C9.375 1.79667 9.28703 2.08668 9.1222 2.33336C8.95738 2.58003 8.72312 2.77229 8.44903 2.88582C8.17494 2.99935 7.87334 3.02906 7.58237 2.97118C7.29139 2.9133 7.02412 2.77044 6.81434 2.56066C6.60456 2.35088 6.4617 2.08361 6.40382 1.79264C6.34594 1.50166 6.37565 1.20006 6.48918 0.925975C6.60271 0.651886 6.79497 0.417618 7.04165 0.252796C7.28832 0.0879736 7.57833 0 7.875 0C8.27283 0 8.65436 0.158036 8.93566 0.43934C9.21696 0.720645 9.375 1.10218 9.375 1.5ZM1.5 0C1.20333 0 0.913319 0.0879736 0.666646 0.252796C0.419972 0.417618 0.227713 0.651886 0.114181 0.925975C0.000649922 1.20006 -0.0290551 1.50166 0.0288228 1.79264C0.0867006 2.08361 0.229562 2.35088 0.439341 2.56066C0.649119 2.77044 0.916394 2.9133 1.20737 2.97118C1.49834 3.02906 1.79994 2.99935 2.07403 2.88582C2.34811 2.77229 2.58238 2.58003 2.74721 2.33336C2.91203 2.08668 3 1.79667 3 1.5C3 1.10218 2.84197 0.720645 2.56066 0.43934C2.27936 0.158036 1.89783 0 1.5 0ZM14.25 0C13.9533 0 13.6633 0.0879736 13.4166 0.252796C13.17 0.417618 12.9777 0.651886 12.8642 0.925975C12.7507 1.20006 12.7209 1.50166 12.7788 1.79264C12.8367 2.08361 12.9796 2.35088 13.1893 2.56066C13.3991 2.77044 13.6664 2.9133 13.9574 2.97118C14.2483 3.02906 14.5499 2.99935 14.824 2.88582C15.0981 2.77229 15.3324 2.58003 15.4972 2.33336C15.662 2.08668 15.75 1.79667 15.75 1.5C15.75 1.10218 15.592 0.720645 15.3107 0.43934C15.0294 0.158036 14.6478 0 14.25 0Z", fill: "white" }));
8459
8475
  function Tl({ className: e }) {
8460
- return /* @__PURE__ */ N("div", { className: U("tob-blur-parent transition-opacity", e), children: [
8476
+ return /* @__PURE__ */ L("div", { className: Z("tob-blur-parent transition-opacity", e), children: [
8461
8477
  /* @__PURE__ */ x(
8462
8478
  "div",
8463
8479
  {
@@ -8556,26 +8572,26 @@ function Bl({
8556
8572
  className: e,
8557
8573
  ...u
8558
8574
  }) {
8559
- const { isFullscreen: t, isMobile: n, setFullscreen: r, setOpen: o } = ku(), { t: i } = le(), a = ju(), c = St(), s = y0(c.pathname);
8560
- return /* @__PURE__ */ N(
8575
+ const { isFullscreen: t, isMobile: n, setFullscreen: r, setOpen: o } = Cu(), { t: i } = fe(), a = ju(), c = St(), s = y0(c.pathname);
8576
+ return /* @__PURE__ */ L(
8561
8577
  "div",
8562
8578
  {
8563
8579
  ...u,
8564
- className: U("chat-top-controls relative z-10", e),
8580
+ className: Z("chat-top-controls relative z-10", e),
8565
8581
  children: [
8566
8582
  /* @__PURE__ */ x(
8567
8583
  Tl,
8568
8584
  {
8569
- className: U(
8585
+ className: Z(
8570
8586
  "pointer-events-none absolute h-20 w-full",
8571
- s === Ye.Text ? "opacity-100" : "opacity-0"
8587
+ s === Je.Text ? "opacity-100" : "opacity-0"
8572
8588
  )
8573
8589
  }
8574
8590
  ),
8575
- /* @__PURE__ */ N("div", { className: "relative flex h-16 flex-row items-center justify-between px-4 pt-1", children: [
8576
- /* @__PURE__ */ N("div", { className: "flex items-center gap-2", children: [
8591
+ /* @__PURE__ */ L("div", { className: "relative flex h-16 flex-row items-center justify-between px-4 pt-1", children: [
8592
+ /* @__PURE__ */ L("div", { className: "flex items-center gap-2", children: [
8577
8593
  /* @__PURE__ */ x(
8578
- J,
8594
+ ue,
8579
8595
  {
8580
8596
  "aria-label": i("controls.close"),
8581
8597
  className: "chat-icon-button",
@@ -8584,7 +8600,7 @@ function Bl({
8584
8600
  }
8585
8601
  ),
8586
8602
  !t && /* @__PURE__ */ x(
8587
- J,
8603
+ ue,
8588
8604
  {
8589
8605
  "aria-label": i("controls.move"),
8590
8606
  "data-lola-drag-handle": !0,
@@ -8599,9 +8615,9 @@ function Bl({
8599
8615
  }
8600
8616
  )
8601
8617
  ] }),
8602
- /* @__PURE__ */ N("div", { className: "flex items-center gap-2", children: [
8618
+ /* @__PURE__ */ L("div", { className: "flex items-center gap-2", children: [
8603
8619
  n && /* @__PURE__ */ x(
8604
- J,
8620
+ ue,
8605
8621
  {
8606
8622
  type: "button",
8607
8623
  "aria-label": i(t ? "controls.exitFullscreen" : "controls.enterFullscreen"),
@@ -8612,9 +8628,9 @@ function Bl({
8612
8628
  }
8613
8629
  ),
8614
8630
  /* @__PURE__ */ x(
8615
- J,
8631
+ ue,
8616
8632
  {
8617
- onClick: () => a(se.list, {
8633
+ onClick: () => a(de.list, {
8618
8634
  state: { chatMode: s }
8619
8635
  }),
8620
8636
  "aria-label": i("controls.openChatList"),
@@ -8631,10 +8647,10 @@ function Bl({
8631
8647
  function Ol({
8632
8648
  className: e
8633
8649
  }) {
8634
- return /* @__PURE__ */ N(
8650
+ return /* @__PURE__ */ L(
8635
8651
  "div",
8636
8652
  {
8637
- className: U(
8653
+ className: Z(
8638
8654
  "absolute bottom-0 h-24 w-full transition-opacity",
8639
8655
  e
8640
8656
  ),
@@ -8661,14 +8677,14 @@ function ql({ className: e }) {
8661
8677
  return /* @__PURE__ */ x(
8662
8678
  "div",
8663
8679
  {
8664
- className: U(
8680
+ className: Z(
8665
8681
  "absolute top-0 h-full w-full bg-[#090b10]/58 transition-opacity",
8666
8682
  e
8667
8683
  )
8668
8684
  }
8669
8685
  );
8670
8686
  }
8671
- const jl = (e) => /* @__PURE__ */ q.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ q.createElement("path", { d: "M15 18L9 12L15 6", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), Hl = (e) => /* @__PURE__ */ q.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ q.createElement("path", { d: "M12 5V19M5 12H19", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), Fe = (e) => e < 10 ? `0${e}` : String(e);
8687
+ const jl = (e) => /* @__PURE__ */ O.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ O.createElement("path", { d: "M15 18L9 12L15 6", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), Hl = (e) => /* @__PURE__ */ O.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ O.createElement("path", { d: "M12 5V19M5 12H19", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), Fe = (e) => e < 10 ? `0${e}` : String(e);
8672
8688
  function Vl(e, u) {
8673
8689
  const t = new Date(e), n = /* @__PURE__ */ new Date(), r = n.getTime() - t.getTime(), o = Math.floor(r / 6e4), i = typeof Intl < "u" && typeof Intl.DateTimeFormat == "function" ? Intl.DateTimeFormat : null, a = typeof Intl < "u" && typeof Intl.RelativeTimeFormat == "function" ? new Intl.RelativeTimeFormat(u, {
8674
8690
  numeric: "auto",
@@ -8711,14 +8727,14 @@ const Ul = Sn(function({
8711
8727
  isSelected: n,
8712
8728
  onSelect: r
8713
8729
  }) {
8714
- const { locale: o } = le(), i = Ws(t);
8715
- return /* @__PURE__ */ N(
8730
+ const { locale: o } = fe(), i = Ws(t);
8731
+ return /* @__PURE__ */ L(
8716
8732
  "button",
8717
8733
  {
8718
8734
  type: "button",
8719
8735
  onClick: () => r(u),
8720
8736
  "aria-current": n ? "page" : void 0,
8721
- className: U(
8737
+ className: Z(
8722
8738
  "group relative flex min-h-16 w-full flex-row items-center gap-3 rounded-2xl px-3 py-2.5 text-start transition-[background-color,transform] duration-100 ease-out",
8723
8739
  "hover:bg-white/6 active:scale-[0.992] active:bg-white/8",
8724
8740
  n && "chat-list-item_selected"
@@ -8732,7 +8748,7 @@ const Ul = Sn(function({
8732
8748
  className: "h-10 w-10 rounded-full bg-[#17131b] object-contain"
8733
8749
  }
8734
8750
  ) }),
8735
- /* @__PURE__ */ N("div", { className: "min-w-0 flex-1", children: [
8751
+ /* @__PURE__ */ L("div", { className: "min-w-0 flex-1", children: [
8736
8752
  /* @__PURE__ */ x("p", { className: "truncate text-[14px] leading-5 font-medium tracking-[-0.005em] text-white/90", children: i }),
8737
8753
  /* @__PURE__ */ x("p", { className: "mt-0.5 text-xs leading-4 text-white/42", children: Vl(t.updatedAt, o) })
8738
8754
  ] }),
@@ -8751,25 +8767,25 @@ function Gl({
8751
8767
  className: e,
8752
8768
  ...u
8753
8769
  }) {
8754
- const { direction: t, t: n } = le(), r = ju(), o = St(), i = S(null), a = w0(), {
8770
+ const { direction: t, t: n } = fe(), r = ju(), o = St(), i = S(null), a = w0(), {
8755
8771
  cancelConversationPagination: c,
8756
8772
  createNewConversation: s,
8757
8773
  fetchMoreConversations: l,
8758
8774
  setCurrentThread: d
8759
- } = Tt(), p = E0(), h = F0(), f = A0(), b = D0(o.state) !== Ye.Text ? se.voice : se.text;
8775
+ } = Tt(), p = E0(), h = F0(), f = A0(), b = D0(o.state) !== Je.Text ? de.voice : de.text;
8760
8776
  function C() {
8761
8777
  r(-1);
8762
8778
  }
8763
8779
  async function g() {
8764
8780
  try {
8765
8781
  await s(), r(b);
8766
- } catch (w) {
8767
- console.error("Failed to create conversation", w);
8782
+ } catch (E) {
8783
+ console.error("Failed to create conversation", E);
8768
8784
  }
8769
8785
  }
8770
- const k = P(
8771
- (w) => {
8772
- const y = d(w);
8786
+ const k = R(
8787
+ (E) => {
8788
+ const y = d(E);
8773
8789
  r(b), y.catch((I) => {
8774
8790
  console.error("Failed to select conversation", I);
8775
8791
  });
@@ -8778,7 +8794,7 @@ function Gl({
8778
8794
  ), {
8779
8795
  error: v,
8780
8796
  loadMore: _,
8781
- sentinelRef: E
8797
+ sentinelRef: w
8782
8798
  } = t0({
8783
8799
  rootRef: i,
8784
8800
  enabled: h,
@@ -8790,18 +8806,18 @@ function Gl({
8790
8806
  c();
8791
8807
  },
8792
8808
  [c]
8793
- ), /* @__PURE__ */ N(
8809
+ ), /* @__PURE__ */ L(
8794
8810
  "div",
8795
8811
  {
8796
8812
  ...u,
8797
- className: U(
8813
+ className: Z(
8798
8814
  "chat-list-surface z-51 flex h-full flex-col rounded-[inherit]",
8799
8815
  e
8800
8816
  ),
8801
8817
  children: [
8802
- /* @__PURE__ */ N("header", { className: "relative flex h-16 shrink-0 items-center justify-between gap-4 border-b border-white/8 px-4 pt-1", children: [
8818
+ /* @__PURE__ */ L("header", { className: "relative flex h-16 shrink-0 items-center justify-between gap-4 border-b border-white/8 px-4 pt-1", children: [
8803
8819
  /* @__PURE__ */ x(
8804
- J,
8820
+ ue,
8805
8821
  {
8806
8822
  onClick: C,
8807
8823
  "aria-label": n("chat.back"),
@@ -8809,14 +8825,14 @@ function Gl({
8809
8825
  children: /* @__PURE__ */ x(
8810
8826
  jl,
8811
8827
  {
8812
- className: U("h-5 w-5", t === "rtl" && "rotate-180")
8828
+ className: Z("h-5 w-5", t === "rtl" && "rotate-180")
8813
8829
  }
8814
8830
  )
8815
8831
  }
8816
8832
  ),
8817
8833
  /* @__PURE__ */ x("h1", { className: "text-[15px] leading-5 font-semibold tracking-[-0.01em] text-white/95", children: n("chat.listTitle") }),
8818
8834
  /* @__PURE__ */ x(
8819
- J,
8835
+ ue,
8820
8836
  {
8821
8837
  onClick: () => {
8822
8838
  g();
@@ -8827,26 +8843,26 @@ function Gl({
8827
8843
  }
8828
8844
  )
8829
8845
  ] }),
8830
- /* @__PURE__ */ N(
8846
+ /* @__PURE__ */ L(
8831
8847
  "div",
8832
8848
  {
8833
8849
  ref: i,
8834
8850
  "aria-busy": f,
8835
8851
  className: "chat-scrollbar flex flex-1 flex-col overflow-y-auto p-2",
8836
8852
  children: [
8837
- p.map((w) => /* @__PURE__ */ x("div", { className: "chat-list-entry", children: /* @__PURE__ */ x(
8853
+ p.map((E) => /* @__PURE__ */ x("div", { className: "chat-list-entry", children: /* @__PURE__ */ x(
8838
8854
  Ul,
8839
8855
  {
8840
- threadId: w.threadId,
8841
- message: w.lastMessage,
8842
- isSelected: a === w.threadId,
8856
+ threadId: E.threadId,
8857
+ message: E.lastMessage,
8858
+ isSelected: a === E.threadId,
8843
8859
  onSelect: k
8844
8860
  }
8845
- ) }, w.threadId)),
8861
+ ) }, E.threadId)),
8846
8862
  f && /* @__PURE__ */ x(yl, {}),
8847
- /* @__PURE__ */ x("div", { ref: E, "aria-hidden": "true", className: "h-px shrink-0" }),
8863
+ /* @__PURE__ */ x("div", { ref: w, "aria-hidden": "true", className: "h-px shrink-0" }),
8848
8864
  h && !f && /* @__PURE__ */ x(
8849
- J,
8865
+ ue,
8850
8866
  {
8851
8867
  type: "button",
8852
8868
  "aria-label": n("chat.loadOlder"),
@@ -8873,9 +8889,9 @@ function Gl({
8873
8889
  );
8874
8890
  }
8875
8891
  function Tn({ mode: e }) {
8876
- const u = e === Ye.Text;
8877
- return /* @__PURE__ */ N(o0, { children: [
8878
- /* @__PURE__ */ N("div", { className: "pointer-events-none absolute inset-0", children: [
8892
+ const u = e === Je.Text;
8893
+ return /* @__PURE__ */ L(o0, { children: [
8894
+ /* @__PURE__ */ L("div", { className: "pointer-events-none absolute inset-0", children: [
8879
8895
  /* @__PURE__ */ x(
8880
8896
  Ol,
8881
8897
  {
@@ -8884,29 +8900,29 @@ function Tn({ mode: e }) {
8884
8900
  ),
8885
8901
  /* @__PURE__ */ x(ql, { className: u ? "opacity-100" : "opacity-0" })
8886
8902
  ] }),
8887
- /* @__PURE__ */ N("div", { className: "relative z-5 flex h-full min-h-0 w-full flex-col", children: [
8903
+ /* @__PURE__ */ L("div", { className: "relative z-5 flex h-full min-h-0 w-full flex-col", children: [
8888
8904
  /* @__PURE__ */ x(Bl, { className: "shrink-0" }),
8889
- /* @__PURE__ */ x("div", { className: "flex min-h-0 flex-1 flex-col justify-end", children: e === Ye.Voice ? /* @__PURE__ */ x(Ki, {}) : /* @__PURE__ */ x(Fl, {}) })
8905
+ /* @__PURE__ */ x("div", { className: "flex min-h-0 flex-1 flex-col justify-end", children: e === Je.Voice ? /* @__PURE__ */ x(Ki, {}) : /* @__PURE__ */ x(Fl, {}) })
8890
8906
  ] })
8891
8907
  ] });
8892
8908
  }
8893
8909
  function Zl({ location: e }) {
8894
- return /* @__PURE__ */ N($0, { location: e, children: [
8910
+ return /* @__PURE__ */ L($0, { location: e, children: [
8895
8911
  /* @__PURE__ */ x(
8896
- nu,
8912
+ ru,
8897
8913
  {
8898
- path: se.list,
8914
+ path: de.list,
8899
8915
  element: /* @__PURE__ */ x(Gl, { className: "h-full w-full" })
8900
8916
  }
8901
8917
  ),
8902
- /* @__PURE__ */ x(nu, { path: se.voice, element: /* @__PURE__ */ x(Tn, { mode: Ye.Voice }) }),
8903
- /* @__PURE__ */ x(nu, { path: se.text, element: /* @__PURE__ */ x(Tn, { mode: Ye.Text }) }),
8904
- /* @__PURE__ */ x(nu, { path: "/", element: /* @__PURE__ */ x(Wt, { to: se.voice, replace: !0 }) }),
8905
- /* @__PURE__ */ x(nu, { path: "*", element: /* @__PURE__ */ x(Wt, { to: se.voice, replace: !0 }) })
8918
+ /* @__PURE__ */ x(ru, { path: de.voice, element: /* @__PURE__ */ x(Tn, { mode: Je.Voice }) }),
8919
+ /* @__PURE__ */ x(ru, { path: de.text, element: /* @__PURE__ */ x(Tn, { mode: Je.Text }) }),
8920
+ /* @__PURE__ */ x(ru, { path: "/", element: /* @__PURE__ */ x(Wt, { to: de.voice, replace: !0 }) }),
8921
+ /* @__PURE__ */ x(ru, { path: "*", element: /* @__PURE__ */ x(Wt, { to: de.voice, replace: !0 }) })
8906
8922
  ] });
8907
8923
  }
8908
8924
  function Ql() {
8909
- const { setAvatarCoveredByChatList: e } = ku(), u = St(), [t, n] = V(() => ({ location: u, transition: null }));
8925
+ const { setAvatarCoveredByChatList: e } = Cu(), u = St(), [t, n] = V(() => ({ location: u, transition: null }));
8910
8926
  if (u.key !== t.location.key) {
8911
8927
  const c = t.transition?.to ?? t.location, s = T0(
8912
8928
  c.pathname,
@@ -8918,7 +8934,7 @@ function Ql() {
8918
8934
  });
8919
8935
  }
8920
8936
  const { location: r, transition: o } = t, i = o ? [o.from, o.to] : [r];
8921
- xu(() => {
8937
+ ku(() => {
8922
8938
  e(
8923
8939
  !o && S0(r.pathname)
8924
8940
  );