reactjs-tiptap-editor 1.0.10 → 1.0.12

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.
Files changed (209) hide show
  1. package/lib/{ActionMenuButton-CKTxYtl7.js → ActionMenuButton-BKqin6Kz.js} +17 -13
  2. package/lib/ActionMenuButton-CPPHERbq.cjs +1 -0
  3. package/lib/Attachment.cjs +2 -2
  4. package/lib/Attachment.js +24 -21
  5. package/lib/Blockquote.cjs +2 -2
  6. package/lib/Blockquote.js +7 -5
  7. package/lib/Bold.cjs +1 -1
  8. package/lib/Bold.js +11 -9
  9. package/lib/BulletList.cjs +1 -1
  10. package/lib/BulletList.js +14 -12
  11. package/lib/Clear.cjs +1 -1
  12. package/lib/Clear.js +3 -3
  13. package/lib/Code.cjs +1 -1
  14. package/lib/Code.js +11 -9
  15. package/lib/CodeBlock.cjs +22 -22
  16. package/lib/CodeBlock.js +102 -100
  17. package/lib/CodeView.cjs +1 -1
  18. package/lib/CodeView.js +10 -8
  19. package/lib/Color.cjs +1 -1
  20. package/lib/Color.js +20 -18
  21. package/lib/Column.cjs +1 -1
  22. package/lib/Column.js +7 -5
  23. package/lib/{Drawer-Cfx115up.js → Drawer-DUPsBE0H.js} +10 -9
  24. package/lib/Drawer-fplzqNI6.cjs +1 -0
  25. package/lib/Drawer.cjs +1 -1
  26. package/lib/Drawer.js +3 -3
  27. package/lib/Emoji.cjs +1 -1
  28. package/lib/Emoji.js +11 -9
  29. package/lib/{Excalidraw-CO93Tsmb.js → Excalidraw-BEzpvRLx.js} +20 -19
  30. package/lib/Excalidraw-qjnQspLq.cjs +1 -0
  31. package/lib/Excalidraw.cjs +1 -1
  32. package/lib/Excalidraw.js +2 -2
  33. package/lib/ExportPdf.cjs +2 -2
  34. package/lib/ExportPdf.js +7 -5
  35. package/lib/ExportWord.cjs +1 -1
  36. package/lib/ExportWord.js +7 -5
  37. package/lib/FontFamily.cjs +1 -1
  38. package/lib/FontFamily.js +9 -8
  39. package/lib/FontSize.cjs +1 -1
  40. package/lib/FontSize.js +13 -12
  41. package/lib/Heading.cjs +1 -1
  42. package/lib/Heading.js +25 -24
  43. package/lib/Highlight.cjs +1 -1
  44. package/lib/Highlight.js +9 -7
  45. package/lib/History.cjs +1 -1
  46. package/lib/History.js +18 -15
  47. package/lib/HorizontalRule.cjs +1 -1
  48. package/lib/HorizontalRule.js +7 -5
  49. package/lib/Icon-CiR8RqdQ.cjs +1 -0
  50. package/lib/Icon-ONE1AwKo.js +12 -0
  51. package/lib/{Iframe-DwhclppJ.js → Iframe-CBTnv2mk.js} +41 -39
  52. package/lib/Iframe-DsUNJ2n2.cjs +1 -0
  53. package/lib/Iframe.cjs +1 -1
  54. package/lib/Iframe.js +2 -2
  55. package/lib/Image.cjs +1 -1
  56. package/lib/Image.js +25 -23
  57. package/lib/ImageGif.cjs +1 -1
  58. package/lib/ImageGif.js +53 -51
  59. package/lib/ImportWord.cjs +31 -31
  60. package/lib/ImportWord.js +8 -6
  61. package/lib/{Indent-BOsymiZ7.js → Indent-B00o0P0M.js} +26 -24
  62. package/lib/Indent-CaGP0qTp.cjs +1 -0
  63. package/lib/Indent.cjs +1 -1
  64. package/lib/Indent.js +2 -2
  65. package/lib/Italic.cjs +1 -1
  66. package/lib/Italic.js +12 -10
  67. package/lib/Katex-XsfpKgJU.cjs +4 -0
  68. package/lib/{Katex-BYK-b9X2.js → Katex-x370CSXZ.js} +12 -10
  69. package/lib/Katex.cjs +1 -1
  70. package/lib/Katex.js +2 -2
  71. package/lib/LineHeight.cjs +1 -1
  72. package/lib/LineHeight.js +10 -8
  73. package/lib/Link.cjs +1 -1
  74. package/lib/Link.js +2 -2
  75. package/lib/{LinkEditBlock-DgrLUMsJ.js → LinkEditBlock-C_ipl3EA.js} +23 -21
  76. package/lib/{LinkEditBlock-4-iRXH7m.cjs → LinkEditBlock-xt88G5fb.cjs} +2 -2
  77. package/lib/Mention.cjs +1 -1
  78. package/lib/Mention.js +3 -3
  79. package/lib/Mermaid.cjs +2 -2
  80. package/lib/Mermaid.js +18 -17
  81. package/lib/MoreMark.cjs +1 -1
  82. package/lib/MoreMark.js +25 -22
  83. package/lib/OrderedList.cjs +1 -1
  84. package/lib/OrderedList.js +10 -8
  85. package/lib/SearchAndReplace.cjs +1 -1
  86. package/lib/SearchAndReplace.js +43 -41
  87. package/lib/SlashCommand.cjs +1 -1
  88. package/lib/SlashCommand.js +6 -6
  89. package/lib/SlashCommandNodeView-BT5ystah.cjs +1 -0
  90. package/lib/{SlashCommandNodeView-BpNNU7Sm.js → SlashCommandNodeView-DX6axvLs.js} +75 -66
  91. package/lib/Strike.cjs +1 -1
  92. package/lib/Strike.js +7 -5
  93. package/lib/Table-DSRSwtXx.cjs +9 -0
  94. package/lib/{Table-CT9R9Sdq.js → Table-DidusYID.js} +10 -8
  95. package/lib/Table.cjs +1 -1
  96. package/lib/Table.js +1 -1
  97. package/lib/TaskList.cjs +1 -1
  98. package/lib/TaskList.js +15 -13
  99. package/lib/TextAlign.cjs +1 -1
  100. package/lib/TextAlign.js +20 -17
  101. package/lib/TextDirection.cjs +1 -1
  102. package/lib/TextDirection.js +20 -17
  103. package/lib/TextUnderline.cjs +1 -1
  104. package/lib/TextUnderline.js +7 -5
  105. package/lib/Twitter-CBuVBQM1.cjs +1 -0
  106. package/lib/{Twitter-mowilxRd.js → Twitter-D58T0Zt3.js} +51 -49
  107. package/lib/Twitter.cjs +1 -1
  108. package/lib/Twitter.js +2 -2
  109. package/lib/Video.cjs +1 -1
  110. package/lib/Video.js +13 -11
  111. package/lib/bubble.cjs +4 -4
  112. package/lib/bubble.js +403 -407
  113. package/lib/{button-CBO-WDXK.js → button-9_8t7ca7.js} +4 -3
  114. package/lib/button-Cs9TroWr.cjs +1 -0
  115. package/lib/{checkbox-DUcLSGZD.cjs → checkbox-BQRKTXXr.cjs} +1 -1
  116. package/lib/{checkbox-D1h32VWM.js → checkbox-DnkkV6qo.js} +1 -1
  117. package/lib/{index-BBNITgNi.cjs → clsx-CXbNJWDD.cjs} +13 -13
  118. package/lib/{index-sVScpCFG.js → clsx-DmuN0U_8.js} +228 -228
  119. package/lib/{dialog-DY868Uji.cjs → dialog-BS3zm-T9.cjs} +1 -1
  120. package/lib/{dialog-DSvgtlDI.js → dialog-DhayAPvV.js} +1 -1
  121. package/lib/{dropdown-menu-BripAeGB.cjs → dropdown-menu-CxwWX0yj.cjs} +1 -1
  122. package/lib/{dropdown-menu-B88Qn2KR.js → dropdown-menu-DQqKeZcx.js} +1 -1
  123. package/lib/events.constant-Dq21NPdV.cjs +1 -0
  124. package/lib/events.constant-do95b767.js +21 -0
  125. package/lib/{index-CApXPpjF.cjs → index-BCzvbrf5.cjs} +1 -1
  126. package/lib/{index-0OnGZkVF.js → index-BDX1uE62.js} +78 -312
  127. package/lib/index-CBFmXCcU.cjs +1 -0
  128. package/lib/{index-DmPwbBqm.js → index-CKmT9KAQ.js} +1 -1
  129. package/lib/index-CVFzP1Dc.cjs +1 -0
  130. package/lib/index-CX4pNJlH.cjs +1 -0
  131. package/lib/index-CjhjjJsN.cjs +1 -0
  132. package/lib/index-Cs6cp0Y6.cjs +1 -0
  133. package/lib/{index-9A6-kVBM.js → index-D1jd7elj.js} +1 -1
  134. package/lib/{index-BIqaogQg.js → index-D9JOHlso.js} +449 -1216
  135. package/lib/{index-DRHrDScg.js → index-DdEmgiAA.js} +1 -1
  136. package/lib/{index-DKt5wfAc.js → index-DvvwJvau.js} +23 -23
  137. package/lib/index-EAK64CCA.js +425 -0
  138. package/lib/{index--nUS7Y66.cjs → index-neeeY2o7.cjs} +3 -3
  139. package/lib/index.cjs +9 -2
  140. package/lib/index.js +142 -26
  141. package/lib/{input-BeD5GdMv.cjs → input-BJ7ihMq-.cjs} +1 -1
  142. package/lib/{input-Bx4uo4gO.js → input-YoheBL2D.js} +1 -1
  143. package/lib/{isNumber-Bv1Qhmw8.cjs → isNumber-BTYSVlKo.cjs} +1 -1
  144. package/lib/{isNumber-DF0fU3ob.js → isNumber-DmQXlKp3.js} +1 -1
  145. package/lib/label-C8PLcjFI.js +19 -0
  146. package/lib/label-Y7_hvqf2.cjs +1 -0
  147. package/lib/locale-bundle.cjs +1 -1
  148. package/lib/locale-bundle.js +6 -7
  149. package/lib/locales/index.d.ts +3 -4316
  150. package/lib/{popover-Csk538NC.cjs → popover-BiSrlM4j.cjs} +1 -1
  151. package/lib/{popover-BVX8otO9.js → popover-CWmTzHSy.js} +1 -1
  152. package/lib/react-BEoMZB61.cjs +1 -0
  153. package/lib/react-c9FSfB30.js +27 -0
  154. package/lib/separator-C-DKMYmg.js +329 -0
  155. package/lib/separator-CJ_adziN.cjs +1 -0
  156. package/lib/store/EditorEditableReactive.d.ts +1 -0
  157. package/lib/store/ThemeColorReactive.d.ts +1 -0
  158. package/lib/store/commandList.d.ts +1 -1
  159. package/lib/store/store.d.ts +6 -7
  160. package/lib/store-BKMaw1AW.cjs +1 -0
  161. package/lib/store-DG7cMfET.js +10 -0
  162. package/lib/style.css +1 -1
  163. package/lib/{tabs-DOasUMDU.cjs → tabs-DpHSMyF_.cjs} +1 -1
  164. package/lib/{tabs-BKpr0QQB.js → tabs-DxlKKM-N.js} +1 -1
  165. package/lib/{textarea-Ba9OOzba.js → textarea-D7m-apUh.js} +1 -1
  166. package/lib/{textarea-D9egO4qC.cjs → textarea-DU9RMi6u.cjs} +1 -1
  167. package/lib/theme/theme.d.ts +5 -0
  168. package/lib/theme.cjs +1 -1
  169. package/lib/theme.js +37 -8
  170. package/lib/{throttle-DsowOft0.js → throttle-BRtichEP.js} +1 -1
  171. package/lib/throttle-gTTvqDTW.cjs +1 -0
  172. package/lib/toggle-BYvLnjCL.cjs +1 -0
  173. package/lib/toggle-Bxwwb_Kp.js +99 -0
  174. package/lib/tooltip-BTy5CRrN.js +24 -0
  175. package/lib/tooltip-COvf4_R-.cjs +1 -0
  176. package/lib/{updatePosition-Bbd8ETMv.js → updatePosition-CUukgu-Q.js} +2 -2
  177. package/lib/updatePosition-Cjuj2E26.cjs +1 -0
  178. package/lib/{useButtonProps-C_bqxmHi.js → useButtonProps-CfYtuEnd.js} +48 -36
  179. package/lib/useButtonProps-CydzndG1.cjs +1 -0
  180. package/lib/utils/customEvents/events.constant.d.ts +0 -5
  181. package/package.json +3 -3
  182. package/lib/ActionMenuButton-BPdRqzDX.cjs +0 -1
  183. package/lib/Drawer-hHj4Opkg.cjs +0 -1
  184. package/lib/Excalidraw-8pWJ17Ye.cjs +0 -1
  185. package/lib/Icon-D7GJZzoa.js +0 -10
  186. package/lib/Icon-gtc3g-VK.cjs +0 -1
  187. package/lib/Iframe-BmXO2c65.cjs +0 -1
  188. package/lib/Indent-DPkMWfcv.cjs +0 -1
  189. package/lib/Katex-B1XbT8-X.cjs +0 -4
  190. package/lib/SlashCommandNodeView-CQvMTXys.cjs +0 -1
  191. package/lib/Table-LnWGm2m8.cjs +0 -9
  192. package/lib/Twitter-Bo4JkBTL.cjs +0 -1
  193. package/lib/button-wt49IYwP.cjs +0 -1
  194. package/lib/events.constant-DQYeJpu5.cjs +0 -1
  195. package/lib/events.constant-wrlJ_7JZ.js +0 -26
  196. package/lib/index-BZ6DfR2r.cjs +0 -1
  197. package/lib/index-BvIJKpX1.cjs +0 -8
  198. package/lib/index-Cv9Z6dyV.cjs +0 -1
  199. package/lib/index-FSRjMsxW.cjs +0 -1
  200. package/lib/label--161UPH6.cjs +0 -1
  201. package/lib/label-uKG7RzFU.js +0 -18
  202. package/lib/separator-DLRVddHS.cjs +0 -1
  203. package/lib/separator-DtrEdjAF.js +0 -241
  204. package/lib/store/ProviderUniqueId.d.ts +0 -6
  205. package/lib/store-B8IkVz1J.cjs +0 -1
  206. package/lib/store-CsIFDUKR.js +0 -10
  207. package/lib/throttle-BM3Bmbf_.cjs +0 -1
  208. package/lib/updatePosition-M2IyqkI1.cjs +0 -1
  209. package/lib/useButtonProps-DEtmDVPr.cjs +0 -1
@@ -1,95 +1,89 @@
1
- import { jsxs as z, jsx as i, Fragment as ne } from "react/jsx-runtime";
2
- import * as N from "react";
3
- import _e, { useCallback as E, useState as Ue, useEffect as T, useRef as te, createContext as Fe, useContext as De, useSyncExternalStore as Xe, memo as qe } from "react";
4
- import { Slot as Je } from "@radix-ui/react-slot";
5
- import { x as Ke, a as Qe } from "./index-0OnGZkVF.js";
6
- import { THEME as fe } from "./theme.js";
7
- import { l as W, E as O } from "./events.constant-wrlJ_7JZ.js";
8
- import * as Me from "@radix-ui/react-toggle";
9
- import * as $ from "@radix-ui/react-tooltip";
10
- import * as v from "@radix-ui/react-select";
11
- import { ExternalLink as Ye, X as Ze, Loader2 as et, WrapText as tt, PencilRuler as rt, FlipHorizontal as ot, FlipVertical as nt, CropIcon as it, ChevronUp as Le, Paperclip as st, Eye as ct, Settings as at, ZoomOut as lt, ZoomIn as dt, BookMarked as ut, Sigma as ht, SmilePlusIcon as mt, Replace as xe, SmilePlus as pt, Frame as gt, Columns2 as be, PanelRight as ft, PanelLeft as xt, Clipboard as bt, Copy as wt, GripVertical as vt, Plus as yt, Columns4 as Ct, Columns3 as St, Heading6 as zt, Heading5 as kt, Heading4 as Mt, Heading3 as Lt, Heading2 as Et, Heading1 as Nt, Pilcrow as At, ChevronsUpDown as Rt, Trash as Tt, Trash2 as Vt, TableCellsSplit as It, TableCellsMerge as Ht, BetweenVerticalEnd as Pt, BetweenVerticalStart as jt, BetweenHorizonalStart as Bt, BetweenHorizonalEnd as Gt, Unlink as Wt, Pencil as Ot, Sparkles as $t, Table as _t, Minimize as Ut, Maximize as Ft, Video as Dt, ImageUp as Xt, Link as qt, ListTodo as Jt, ListOrdered as Kt, List as Qt, IndentDecrease as Yt, IndentIncrease as Zt, Type as er, CodeXml as tr, Code as rr, Superscript as or, Subscript as nr, ChevronDown as ie, Undo2 as ir, Redo2 as sr, PaintRoller as cr, Eraser as ar, Minus as lr, Strikethrough as dr, Quote as ur, Underline as hr, Italic as mr, LoaderCircle as pr, Bold as gr, Check as fr } from "lucide-react";
12
- import { TextAlignRightIcon as xr, TextAlignLeftIcon as br, TextAlignJustifyIcon as wr, TextAlignCenterIcon as vr } from "@radix-ui/react-icons";
13
- import { C as Ee } from "./index-sVScpCFG.js";
14
- const se = "-", yr = (e) => {
15
- const r = Sr(e), {
16
- conflictingClassGroups: t,
1
+ import { jsxs as X, jsx as m } from "react/jsx-runtime";
2
+ import * as E from "react";
3
+ import { createContext as he, useContext as fe, useSyncExternalStore as ge, useRef as re, useCallback as F } from "react";
4
+ import * as b from "@radix-ui/react-select";
5
+ import { ChevronDown as se, ChevronUp as me, Check as xe } from "lucide-react";
6
+ import { B as ye } from "./clsx-DmuN0U_8.js";
7
+ import { c as we } from "./react-c9FSfB30.js";
8
+ const Z = "-", ve = (e) => {
9
+ const t = Se(e), {
10
+ conflictingClassGroups: r,
17
11
  conflictingClassGroupModifiers: o
18
12
  } = e;
19
13
  return {
20
- getClassGroupId: (a) => {
21
- const c = a.split(se);
22
- return c[0] === "" && c.length !== 1 && c.shift(), Ne(c, r) || Cr(a);
14
+ getClassGroupId: (i) => {
15
+ const s = i.split(Z);
16
+ return s[0] === "" && s.length !== 1 && s.shift(), ie(s, t) || Ce(i);
23
17
  },
24
- getConflictingClassGroupIds: (a, c) => {
25
- const u = t[a] || [];
26
- return c && o[a] ? [...u, ...o[a]] : u;
18
+ getConflictingClassGroupIds: (i, s) => {
19
+ const p = r[i] || [];
20
+ return s && o[i] ? [...p, ...o[i]] : p;
27
21
  }
28
22
  };
29
- }, Ne = (e, r) => {
30
- var a;
23
+ }, ie = (e, t) => {
24
+ var i;
31
25
  if (e.length === 0)
32
- return r.classGroupId;
33
- const t = e[0], o = r.nextPart.get(t), s = o ? Ne(e.slice(1), o) : void 0;
34
- if (s)
35
- return s;
36
- if (r.validators.length === 0)
26
+ return t.classGroupId;
27
+ const r = e[0], o = t.nextPart.get(r), a = o ? ie(e.slice(1), o) : void 0;
28
+ if (a)
29
+ return a;
30
+ if (t.validators.length === 0)
37
31
  return;
38
- const n = e.join(se);
39
- return (a = r.validators.find(({
40
- validator: c
41
- }) => c(n))) == null ? void 0 : a.classGroupId;
42
- }, we = /^\[(.+)\]$/, Cr = (e) => {
43
- if (we.test(e)) {
44
- const r = we.exec(e)[1], t = r == null ? void 0 : r.substring(0, r.indexOf(":"));
45
- if (t)
46
- return "arbitrary.." + t;
32
+ const n = e.join(Z);
33
+ return (i = t.validators.find(({
34
+ validator: s
35
+ }) => s(n))) == null ? void 0 : i.classGroupId;
36
+ }, oe = /^\[(.+)\]$/, Ce = (e) => {
37
+ if (oe.test(e)) {
38
+ const t = oe.exec(e)[1], r = t == null ? void 0 : t.substring(0, t.indexOf(":"));
39
+ if (r)
40
+ return "arbitrary.." + r;
47
41
  }
48
- }, Sr = (e) => {
42
+ }, Se = (e) => {
49
43
  const {
50
- theme: r,
51
- prefix: t
44
+ theme: t,
45
+ prefix: r
52
46
  } = e, o = {
53
47
  nextPart: /* @__PURE__ */ new Map(),
54
48
  validators: []
55
49
  };
56
- return kr(Object.entries(e.classGroups), t).forEach(([n, a]) => {
57
- re(a, o, n, r);
50
+ return ze(Object.entries(e.classGroups), r).forEach(([n, i]) => {
51
+ J(i, o, n, t);
58
52
  }), o;
59
- }, re = (e, r, t, o) => {
60
- e.forEach((s) => {
61
- if (typeof s == "string") {
62
- const n = s === "" ? r : ve(r, s);
63
- n.classGroupId = t;
53
+ }, J = (e, t, r, o) => {
54
+ e.forEach((a) => {
55
+ if (typeof a == "string") {
56
+ const n = a === "" ? t : ne(t, a);
57
+ n.classGroupId = r;
64
58
  return;
65
59
  }
66
- if (typeof s == "function") {
67
- if (zr(s)) {
68
- re(s(o), r, t, o);
60
+ if (typeof a == "function") {
61
+ if (ke(a)) {
62
+ J(a(o), t, r, o);
69
63
  return;
70
64
  }
71
- r.validators.push({
72
- validator: s,
73
- classGroupId: t
65
+ t.validators.push({
66
+ validator: a,
67
+ classGroupId: r
74
68
  });
75
69
  return;
76
70
  }
77
- Object.entries(s).forEach(([n, a]) => {
78
- re(a, ve(r, n), t, o);
71
+ Object.entries(a).forEach(([n, i]) => {
72
+ J(i, ne(t, n), r, o);
79
73
  });
80
74
  });
81
- }, ve = (e, r) => {
82
- let t = e;
83
- return r.split(se).forEach((o) => {
84
- t.nextPart.has(o) || t.nextPart.set(o, {
75
+ }, ne = (e, t) => {
76
+ let r = e;
77
+ return t.split(Z).forEach((o) => {
78
+ r.nextPart.has(o) || r.nextPart.set(o, {
85
79
  nextPart: /* @__PURE__ */ new Map(),
86
80
  validators: []
87
- }), t = t.nextPart.get(o);
88
- }), t;
89
- }, zr = (e) => e.isThemeGetter, kr = (e, r) => r ? e.map(([t, o]) => {
90
- const s = o.map((n) => typeof n == "string" ? r + n : typeof n == "object" ? Object.fromEntries(Object.entries(n).map(([a, c]) => [r + a, c])) : n);
91
- return [t, s];
92
- }) : e, Mr = (e) => {
81
+ }), r = r.nextPart.get(o);
82
+ }), r;
83
+ }, ke = (e) => e.isThemeGetter, ze = (e, t) => t ? e.map(([r, o]) => {
84
+ const a = o.map((n) => typeof n == "string" ? t + n : typeof n == "object" ? Object.fromEntries(Object.entries(n).map(([i, s]) => [t + i, s])) : n);
85
+ return [r, a];
86
+ }) : e, Ne = (e) => {
93
87
  if (e < 1)
94
88
  return {
95
89
  get: () => {
@@ -97,179 +91,179 @@ const se = "-", yr = (e) => {
97
91
  set: () => {
98
92
  }
99
93
  };
100
- let r = 0, t = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
101
- const s = (n, a) => {
102
- t.set(n, a), r++, r > e && (r = 0, o = t, t = /* @__PURE__ */ new Map());
94
+ let t = 0, r = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
95
+ const a = (n, i) => {
96
+ r.set(n, i), t++, t > e && (t = 0, o = r, r = /* @__PURE__ */ new Map());
103
97
  };
104
98
  return {
105
99
  get(n) {
106
- let a = t.get(n);
107
- if (a !== void 0)
108
- return a;
109
- if ((a = o.get(n)) !== void 0)
110
- return s(n, a), a;
100
+ let i = r.get(n);
101
+ if (i !== void 0)
102
+ return i;
103
+ if ((i = o.get(n)) !== void 0)
104
+ return a(n, i), i;
111
105
  },
112
- set(n, a) {
113
- t.has(n) ? t.set(n, a) : s(n, a);
106
+ set(n, i) {
107
+ r.has(n) ? r.set(n, i) : a(n, i);
114
108
  }
115
109
  };
116
- }, Ae = "!", Lr = (e) => {
110
+ }, ae = "!", Re = (e) => {
117
111
  const {
118
- separator: r,
119
- experimentalParseClassName: t
120
- } = e, o = r.length === 1, s = r[0], n = r.length, a = (c) => {
121
- const u = [];
122
- let d = 0, m = 0, p;
123
- for (let g = 0; g < c.length; g++) {
124
- let y = c[g];
125
- if (d === 0) {
126
- if (y === s && (o || c.slice(g, g + n) === r)) {
127
- u.push(c.slice(m, g)), m = g + n;
112
+ separator: t,
113
+ experimentalParseClassName: r
114
+ } = e, o = t.length === 1, a = t[0], n = t.length, i = (s) => {
115
+ const p = [];
116
+ let f = 0, h = 0, y;
117
+ for (let u = 0; u < s.length; u++) {
118
+ let x = s[u];
119
+ if (f === 0) {
120
+ if (x === a && (o || s.slice(u, u + n) === t)) {
121
+ p.push(s.slice(h, u)), h = u + n;
128
122
  continue;
129
123
  }
130
- if (y === "/") {
131
- p = g;
124
+ if (x === "/") {
125
+ y = u;
132
126
  continue;
133
127
  }
134
128
  }
135
- y === "[" ? d++ : y === "]" && d--;
129
+ x === "[" ? f++ : x === "]" && f--;
136
130
  }
137
- const l = u.length === 0 ? c : c.substring(m), f = l.startsWith(Ae), C = f ? l.substring(1) : l, b = p && p > m ? p - m : void 0;
131
+ const v = p.length === 0 ? s : s.substring(h), S = v.startsWith(ae), C = S ? v.substring(1) : v, g = y && y > h ? y - h : void 0;
138
132
  return {
139
- modifiers: u,
140
- hasImportantModifier: f,
133
+ modifiers: p,
134
+ hasImportantModifier: S,
141
135
  baseClassName: C,
142
- maybePostfixModifierPosition: b
136
+ maybePostfixModifierPosition: g
143
137
  };
144
138
  };
145
- return t ? (c) => t({
146
- className: c,
147
- parseClassName: a
148
- }) : a;
149
- }, Er = (e) => {
139
+ return r ? (s) => r({
140
+ className: s,
141
+ parseClassName: i
142
+ }) : i;
143
+ }, Ae = (e) => {
150
144
  if (e.length <= 1)
151
145
  return e;
152
- const r = [];
153
- let t = [];
146
+ const t = [];
147
+ let r = [];
154
148
  return e.forEach((o) => {
155
- o[0] === "[" ? (r.push(...t.sort(), o), t = []) : t.push(o);
156
- }), r.push(...t.sort()), r;
157
- }, Nr = (e) => ({
158
- cache: Mr(e.cacheSize),
159
- parseClassName: Lr(e),
160
- ...yr(e)
161
- }), Ar = /\s+/, Rr = (e, r) => {
149
+ o[0] === "[" ? (t.push(...r.sort(), o), r = []) : r.push(o);
150
+ }), t.push(...r.sort()), t;
151
+ }, Me = (e) => ({
152
+ cache: Ne(e.cacheSize),
153
+ parseClassName: Re(e),
154
+ ...ve(e)
155
+ }), Ee = /\s+/, Ie = (e, t) => {
162
156
  const {
163
- parseClassName: t,
157
+ parseClassName: r,
164
158
  getClassGroupId: o,
165
- getConflictingClassGroupIds: s
166
- } = r, n = [], a = e.trim().split(Ar);
167
- let c = "";
168
- for (let u = a.length - 1; u >= 0; u -= 1) {
169
- const d = a[u], {
170
- modifiers: m,
171
- hasImportantModifier: p,
172
- baseClassName: l,
173
- maybePostfixModifierPosition: f
174
- } = t(d);
175
- let C = !!f, b = o(C ? l.substring(0, f) : l);
176
- if (!b) {
159
+ getConflictingClassGroupIds: a
160
+ } = t, n = [], i = e.trim().split(Ee);
161
+ let s = "";
162
+ for (let p = i.length - 1; p >= 0; p -= 1) {
163
+ const f = i[p], {
164
+ modifiers: h,
165
+ hasImportantModifier: y,
166
+ baseClassName: v,
167
+ maybePostfixModifierPosition: S
168
+ } = r(f);
169
+ let C = !!S, g = o(C ? v.substring(0, S) : v);
170
+ if (!g) {
177
171
  if (!C) {
178
- c = d + (c.length > 0 ? " " + c : c);
172
+ s = f + (s.length > 0 ? " " + s : s);
179
173
  continue;
180
174
  }
181
- if (b = o(l), !b) {
182
- c = d + (c.length > 0 ? " " + c : c);
175
+ if (g = o(v), !g) {
176
+ s = f + (s.length > 0 ? " " + s : s);
183
177
  continue;
184
178
  }
185
179
  C = !1;
186
180
  }
187
- const g = Er(m).join(":"), y = p ? g + Ae : g, S = y + b;
188
- if (n.includes(S))
181
+ const u = Ae(h).join(":"), x = y ? u + ae : u, w = x + g;
182
+ if (n.includes(w))
189
183
  continue;
190
- n.push(S);
191
- const P = s(b, C);
192
- for (let V = 0; V < P.length; ++V) {
193
- const _ = P[V];
194
- n.push(y + _);
184
+ n.push(w);
185
+ const P = a(g, C);
186
+ for (let M = 0; M < P.length; ++M) {
187
+ const B = P[M];
188
+ n.push(x + B);
195
189
  }
196
- c = d + (c.length > 0 ? " " + c : c);
190
+ s = f + (s.length > 0 ? " " + s : s);
197
191
  }
198
- return c;
192
+ return s;
199
193
  };
200
- function Tr() {
201
- let e = 0, r, t, o = "";
194
+ function Ge() {
195
+ let e = 0, t, r, o = "";
202
196
  for (; e < arguments.length; )
203
- (r = arguments[e++]) && (t = Re(r)) && (o && (o += " "), o += t);
197
+ (t = arguments[e++]) && (r = le(t)) && (o && (o += " "), o += r);
204
198
  return o;
205
199
  }
206
- const Re = (e) => {
200
+ const le = (e) => {
207
201
  if (typeof e == "string")
208
202
  return e;
209
- let r, t = "";
203
+ let t, r = "";
210
204
  for (let o = 0; o < e.length; o++)
211
- e[o] && (r = Re(e[o])) && (t && (t += " "), t += r);
212
- return t;
205
+ e[o] && (t = le(e[o])) && (r && (r += " "), r += t);
206
+ return r;
213
207
  };
214
- function Vr(e, ...r) {
215
- let t, o, s, n = a;
216
- function a(u) {
217
- const d = r.reduce((m, p) => p(m), e());
218
- return t = Nr(d), o = t.cache.get, s = t.cache.set, n = c, c(u);
208
+ function Pe(e, ...t) {
209
+ let r, o, a, n = i;
210
+ function i(p) {
211
+ const f = t.reduce((h, y) => y(h), e());
212
+ return r = Me(f), o = r.cache.get, a = r.cache.set, n = s, s(p);
219
213
  }
220
- function c(u) {
221
- const d = o(u);
222
- if (d)
223
- return d;
224
- const m = Rr(u, t);
225
- return s(u, m), m;
214
+ function s(p) {
215
+ const f = o(p);
216
+ if (f)
217
+ return f;
218
+ const h = Ie(p, r);
219
+ return a(p, h), h;
226
220
  }
227
221
  return function() {
228
- return n(Tr.apply(null, arguments));
222
+ return n(Ge.apply(null, arguments));
229
223
  };
230
224
  }
231
- const x = (e) => {
232
- const r = (t) => t[e] || [];
233
- return r.isThemeGetter = !0, r;
234
- }, Te = /^\[(?:([a-z-]+):)?(.+)\]$/i, Ir = /^\d+\/\d+$/, Hr = /* @__PURE__ */ new Set(["px", "full", "screen"]), Pr = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, jr = /\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$/, Br = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Gr = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Wr = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, L = (e) => I(e) || Hr.has(e) || Ir.test(e), A = (e) => H(e, "length", qr), I = (e) => !!e && !Number.isNaN(Number(e)), K = (e) => H(e, "number", I), B = (e) => !!e && Number.isInteger(Number(e)), Or = (e) => e.endsWith("%") && I(e.slice(0, -1)), h = (e) => Te.test(e), R = (e) => Pr.test(e), $r = /* @__PURE__ */ new Set(["length", "size", "percentage"]), _r = (e) => H(e, $r, Ve), Ur = (e) => H(e, "position", Ve), Fr = /* @__PURE__ */ new Set(["image", "url"]), Dr = (e) => H(e, Fr, Kr), Xr = (e) => H(e, "", Jr), G = () => !0, H = (e, r, t) => {
235
- const o = Te.exec(e);
236
- return o ? o[1] ? typeof r == "string" ? o[1] === r : r.has(o[1]) : t(o[2]) : !1;
237
- }, qr = (e) => (
225
+ const c = (e) => {
226
+ const t = (r) => r[e] || [];
227
+ return t.isThemeGetter = !0, t;
228
+ }, ce = /^\[(?:([a-z-]+):)?(.+)\]$/i, je = /^\d+\/\d+$/, Te = /* @__PURE__ */ new Set(["px", "full", "screen"]), Le = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Be = /\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$/, Ve = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, We = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Ue = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, z = (e) => I(e) || Te.has(e) || je.test(e), N = (e) => G(e, "length", Ze), I = (e) => !!e && !Number.isNaN(Number(e)), q = (e) => G(e, "number", I), T = (e) => !!e && Number.isInteger(Number(e)), Oe = (e) => e.endsWith("%") && I(e.slice(0, -1)), l = (e) => ce.test(e), R = (e) => Le.test(e), _e = /* @__PURE__ */ new Set(["length", "size", "percentage"]), $e = (e) => G(e, _e, de), Fe = (e) => G(e, "position", de), qe = /* @__PURE__ */ new Set(["image", "url"]), Je = (e) => G(e, qe, Ke), Xe = (e) => G(e, "", He), L = () => !0, G = (e, t, r) => {
229
+ const o = ce.exec(e);
230
+ return o ? o[1] ? typeof t == "string" ? o[1] === t : t.has(o[1]) : r(o[2]) : !1;
231
+ }, Ze = (e) => (
238
232
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
239
233
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
240
234
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
241
- jr.test(e) && !Br.test(e)
242
- ), Ve = () => !1, Jr = (e) => Gr.test(e), Kr = (e) => Wr.test(e), Qr = () => {
243
- const e = x("colors"), r = x("spacing"), t = x("blur"), o = x("brightness"), s = x("borderColor"), n = x("borderRadius"), a = x("borderSpacing"), c = x("borderWidth"), u = x("contrast"), d = x("grayscale"), m = x("hueRotate"), p = x("invert"), l = x("gap"), f = x("gradientColorStops"), C = x("gradientColorStopPositions"), b = x("inset"), g = x("margin"), y = x("opacity"), S = x("padding"), P = x("saturate"), V = x("scale"), _ = x("sepia"), le = x("skew"), de = x("space"), ue = x("translate"), D = () => ["auto", "contain", "none"], X = () => ["auto", "hidden", "clip", "visible", "scroll"], q = () => ["auto", h, r], w = () => [h, r], he = () => ["", L, A], U = () => ["auto", I, h], me = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], F = () => ["solid", "dashed", "dotted", "double", "none"], pe = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], J = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], j = () => ["", "0", h], ge = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], M = () => [I, h];
235
+ Be.test(e) && !Ve.test(e)
236
+ ), de = () => !1, He = (e) => We.test(e), Ke = (e) => Ue.test(e), Qe = () => {
237
+ const e = c("colors"), t = c("spacing"), r = c("blur"), o = c("brightness"), a = c("borderColor"), n = c("borderRadius"), i = c("borderSpacing"), s = c("borderWidth"), p = c("contrast"), f = c("grayscale"), h = c("hueRotate"), y = c("invert"), v = c("gap"), S = c("gradientColorStops"), C = c("gradientColorStopPositions"), g = c("inset"), u = c("margin"), x = c("opacity"), w = c("padding"), P = c("saturate"), M = c("scale"), B = c("sepia"), H = c("skew"), K = c("space"), Q = c("translate"), U = () => ["auto", "contain", "none"], O = () => ["auto", "hidden", "clip", "visible", "scroll"], _ = () => ["auto", l, t], d = () => [l, t], Y = () => ["", z, N], V = () => ["auto", I, l], D = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], W = () => ["solid", "dashed", "dotted", "double", "none"], ee = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], $ = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], j = () => ["", "0", l], te = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], k = () => [I, l];
244
238
  return {
245
239
  cacheSize: 500,
246
240
  separator: ":",
247
241
  theme: {
248
- colors: [G],
249
- spacing: [L, A],
250
- blur: ["none", "", R, h],
251
- brightness: M(),
242
+ colors: [L],
243
+ spacing: [z, N],
244
+ blur: ["none", "", R, l],
245
+ brightness: k(),
252
246
  borderColor: [e],
253
- borderRadius: ["none", "", "full", R, h],
254
- borderSpacing: w(),
255
- borderWidth: he(),
256
- contrast: M(),
247
+ borderRadius: ["none", "", "full", R, l],
248
+ borderSpacing: d(),
249
+ borderWidth: Y(),
250
+ contrast: k(),
257
251
  grayscale: j(),
258
- hueRotate: M(),
252
+ hueRotate: k(),
259
253
  invert: j(),
260
- gap: w(),
254
+ gap: d(),
261
255
  gradientColorStops: [e],
262
- gradientColorStopPositions: [Or, A],
263
- inset: q(),
264
- margin: q(),
265
- opacity: M(),
266
- padding: w(),
267
- saturate: M(),
268
- scale: M(),
256
+ gradientColorStopPositions: [Oe, N],
257
+ inset: _(),
258
+ margin: _(),
259
+ opacity: k(),
260
+ padding: d(),
261
+ saturate: k(),
262
+ scale: k(),
269
263
  sepia: j(),
270
- skew: M(),
271
- space: w(),
272
- translate: w()
264
+ skew: k(),
265
+ space: d(),
266
+ translate: d()
273
267
  },
274
268
  classGroups: {
275
269
  // Layout
@@ -278,7 +272,7 @@ const x = (e) => {
278
272
  * @see https://tailwindcss.com/docs/aspect-ratio
279
273
  */
280
274
  aspect: [{
281
- aspect: ["auto", "square", "video", h]
275
+ aspect: ["auto", "square", "video", l]
282
276
  }],
283
277
  /**
284
278
  * Container
@@ -297,14 +291,14 @@ const x = (e) => {
297
291
  * @see https://tailwindcss.com/docs/break-after
298
292
  */
299
293
  "break-after": [{
300
- "break-after": ge()
294
+ "break-after": te()
301
295
  }],
302
296
  /**
303
297
  * Break Before
304
298
  * @see https://tailwindcss.com/docs/break-before
305
299
  */
306
300
  "break-before": [{
307
- "break-before": ge()
301
+ "break-before": te()
308
302
  }],
309
303
  /**
310
304
  * Break Inside
@@ -363,49 +357,49 @@ const x = (e) => {
363
357
  * @see https://tailwindcss.com/docs/object-position
364
358
  */
365
359
  "object-position": [{
366
- object: [...me(), h]
360
+ object: [...D(), l]
367
361
  }],
368
362
  /**
369
363
  * Overflow
370
364
  * @see https://tailwindcss.com/docs/overflow
371
365
  */
372
366
  overflow: [{
373
- overflow: X()
367
+ overflow: O()
374
368
  }],
375
369
  /**
376
370
  * Overflow X
377
371
  * @see https://tailwindcss.com/docs/overflow
378
372
  */
379
373
  "overflow-x": [{
380
- "overflow-x": X()
374
+ "overflow-x": O()
381
375
  }],
382
376
  /**
383
377
  * Overflow Y
384
378
  * @see https://tailwindcss.com/docs/overflow
385
379
  */
386
380
  "overflow-y": [{
387
- "overflow-y": X()
381
+ "overflow-y": O()
388
382
  }],
389
383
  /**
390
384
  * Overscroll Behavior
391
385
  * @see https://tailwindcss.com/docs/overscroll-behavior
392
386
  */
393
387
  overscroll: [{
394
- overscroll: D()
388
+ overscroll: U()
395
389
  }],
396
390
  /**
397
391
  * Overscroll Behavior X
398
392
  * @see https://tailwindcss.com/docs/overscroll-behavior
399
393
  */
400
394
  "overscroll-x": [{
401
- "overscroll-x": D()
395
+ "overscroll-x": U()
402
396
  }],
403
397
  /**
404
398
  * Overscroll Behavior Y
405
399
  * @see https://tailwindcss.com/docs/overscroll-behavior
406
400
  */
407
401
  "overscroll-y": [{
408
- "overscroll-y": D()
402
+ "overscroll-y": U()
409
403
  }],
410
404
  /**
411
405
  * Position
@@ -417,63 +411,63 @@ const x = (e) => {
417
411
  * @see https://tailwindcss.com/docs/top-right-bottom-left
418
412
  */
419
413
  inset: [{
420
- inset: [b]
414
+ inset: [g]
421
415
  }],
422
416
  /**
423
417
  * Right / Left
424
418
  * @see https://tailwindcss.com/docs/top-right-bottom-left
425
419
  */
426
420
  "inset-x": [{
427
- "inset-x": [b]
421
+ "inset-x": [g]
428
422
  }],
429
423
  /**
430
424
  * Top / Bottom
431
425
  * @see https://tailwindcss.com/docs/top-right-bottom-left
432
426
  */
433
427
  "inset-y": [{
434
- "inset-y": [b]
428
+ "inset-y": [g]
435
429
  }],
436
430
  /**
437
431
  * Start
438
432
  * @see https://tailwindcss.com/docs/top-right-bottom-left
439
433
  */
440
434
  start: [{
441
- start: [b]
435
+ start: [g]
442
436
  }],
443
437
  /**
444
438
  * End
445
439
  * @see https://tailwindcss.com/docs/top-right-bottom-left
446
440
  */
447
441
  end: [{
448
- end: [b]
442
+ end: [g]
449
443
  }],
450
444
  /**
451
445
  * Top
452
446
  * @see https://tailwindcss.com/docs/top-right-bottom-left
453
447
  */
454
448
  top: [{
455
- top: [b]
449
+ top: [g]
456
450
  }],
457
451
  /**
458
452
  * Right
459
453
  * @see https://tailwindcss.com/docs/top-right-bottom-left
460
454
  */
461
455
  right: [{
462
- right: [b]
456
+ right: [g]
463
457
  }],
464
458
  /**
465
459
  * Bottom
466
460
  * @see https://tailwindcss.com/docs/top-right-bottom-left
467
461
  */
468
462
  bottom: [{
469
- bottom: [b]
463
+ bottom: [g]
470
464
  }],
471
465
  /**
472
466
  * Left
473
467
  * @see https://tailwindcss.com/docs/top-right-bottom-left
474
468
  */
475
469
  left: [{
476
- left: [b]
470
+ left: [g]
477
471
  }],
478
472
  /**
479
473
  * Visibility
@@ -485,7 +479,7 @@ const x = (e) => {
485
479
  * @see https://tailwindcss.com/docs/z-index
486
480
  */
487
481
  z: [{
488
- z: ["auto", B, h]
482
+ z: ["auto", T, l]
489
483
  }],
490
484
  // Flexbox and Grid
491
485
  /**
@@ -493,7 +487,7 @@ const x = (e) => {
493
487
  * @see https://tailwindcss.com/docs/flex-basis
494
488
  */
495
489
  basis: [{
496
- basis: q()
490
+ basis: _()
497
491
  }],
498
492
  /**
499
493
  * Flex Direction
@@ -514,7 +508,7 @@ const x = (e) => {
514
508
  * @see https://tailwindcss.com/docs/flex
515
509
  */
516
510
  flex: [{
517
- flex: ["1", "auto", "initial", "none", h]
511
+ flex: ["1", "auto", "initial", "none", l]
518
512
  }],
519
513
  /**
520
514
  * Flex Grow
@@ -535,14 +529,14 @@ const x = (e) => {
535
529
  * @see https://tailwindcss.com/docs/order
536
530
  */
537
531
  order: [{
538
- order: ["first", "last", "none", B, h]
532
+ order: ["first", "last", "none", T, l]
539
533
  }],
540
534
  /**
541
535
  * Grid Template Columns
542
536
  * @see https://tailwindcss.com/docs/grid-template-columns
543
537
  */
544
538
  "grid-cols": [{
545
- "grid-cols": [G]
539
+ "grid-cols": [L]
546
540
  }],
547
541
  /**
548
542
  * Grid Column Start / End
@@ -550,29 +544,29 @@ const x = (e) => {
550
544
  */
551
545
  "col-start-end": [{
552
546
  col: ["auto", {
553
- span: ["full", B, h]
554
- }, h]
547
+ span: ["full", T, l]
548
+ }, l]
555
549
  }],
556
550
  /**
557
551
  * Grid Column Start
558
552
  * @see https://tailwindcss.com/docs/grid-column
559
553
  */
560
554
  "col-start": [{
561
- "col-start": U()
555
+ "col-start": V()
562
556
  }],
563
557
  /**
564
558
  * Grid Column End
565
559
  * @see https://tailwindcss.com/docs/grid-column
566
560
  */
567
561
  "col-end": [{
568
- "col-end": U()
562
+ "col-end": V()
569
563
  }],
570
564
  /**
571
565
  * Grid Template Rows
572
566
  * @see https://tailwindcss.com/docs/grid-template-rows
573
567
  */
574
568
  "grid-rows": [{
575
- "grid-rows": [G]
569
+ "grid-rows": [L]
576
570
  }],
577
571
  /**
578
572
  * Grid Row Start / End
@@ -580,22 +574,22 @@ const x = (e) => {
580
574
  */
581
575
  "row-start-end": [{
582
576
  row: ["auto", {
583
- span: [B, h]
584
- }, h]
577
+ span: [T, l]
578
+ }, l]
585
579
  }],
586
580
  /**
587
581
  * Grid Row Start
588
582
  * @see https://tailwindcss.com/docs/grid-row
589
583
  */
590
584
  "row-start": [{
591
- "row-start": U()
585
+ "row-start": V()
592
586
  }],
593
587
  /**
594
588
  * Grid Row End
595
589
  * @see https://tailwindcss.com/docs/grid-row
596
590
  */
597
591
  "row-end": [{
598
- "row-end": U()
592
+ "row-end": V()
599
593
  }],
600
594
  /**
601
595
  * Grid Auto Flow
@@ -609,42 +603,42 @@ const x = (e) => {
609
603
  * @see https://tailwindcss.com/docs/grid-auto-columns
610
604
  */
611
605
  "auto-cols": [{
612
- "auto-cols": ["auto", "min", "max", "fr", h]
606
+ "auto-cols": ["auto", "min", "max", "fr", l]
613
607
  }],
614
608
  /**
615
609
  * Grid Auto Rows
616
610
  * @see https://tailwindcss.com/docs/grid-auto-rows
617
611
  */
618
612
  "auto-rows": [{
619
- "auto-rows": ["auto", "min", "max", "fr", h]
613
+ "auto-rows": ["auto", "min", "max", "fr", l]
620
614
  }],
621
615
  /**
622
616
  * Gap
623
617
  * @see https://tailwindcss.com/docs/gap
624
618
  */
625
619
  gap: [{
626
- gap: [l]
620
+ gap: [v]
627
621
  }],
628
622
  /**
629
623
  * Gap X
630
624
  * @see https://tailwindcss.com/docs/gap
631
625
  */
632
626
  "gap-x": [{
633
- "gap-x": [l]
627
+ "gap-x": [v]
634
628
  }],
635
629
  /**
636
630
  * Gap Y
637
631
  * @see https://tailwindcss.com/docs/gap
638
632
  */
639
633
  "gap-y": [{
640
- "gap-y": [l]
634
+ "gap-y": [v]
641
635
  }],
642
636
  /**
643
637
  * Justify Content
644
638
  * @see https://tailwindcss.com/docs/justify-content
645
639
  */
646
640
  "justify-content": [{
647
- justify: ["normal", ...J()]
641
+ justify: ["normal", ...$()]
648
642
  }],
649
643
  /**
650
644
  * Justify Items
@@ -665,7 +659,7 @@ const x = (e) => {
665
659
  * @see https://tailwindcss.com/docs/align-content
666
660
  */
667
661
  "align-content": [{
668
- content: ["normal", ...J(), "baseline"]
662
+ content: ["normal", ...$(), "baseline"]
669
663
  }],
670
664
  /**
671
665
  * Align Items
@@ -686,7 +680,7 @@ const x = (e) => {
686
680
  * @see https://tailwindcss.com/docs/place-content
687
681
  */
688
682
  "place-content": [{
689
- "place-content": [...J(), "baseline"]
683
+ "place-content": [...$(), "baseline"]
690
684
  }],
691
685
  /**
692
686
  * Place Items
@@ -708,133 +702,133 @@ const x = (e) => {
708
702
  * @see https://tailwindcss.com/docs/padding
709
703
  */
710
704
  p: [{
711
- p: [S]
705
+ p: [w]
712
706
  }],
713
707
  /**
714
708
  * Padding X
715
709
  * @see https://tailwindcss.com/docs/padding
716
710
  */
717
711
  px: [{
718
- px: [S]
712
+ px: [w]
719
713
  }],
720
714
  /**
721
715
  * Padding Y
722
716
  * @see https://tailwindcss.com/docs/padding
723
717
  */
724
718
  py: [{
725
- py: [S]
719
+ py: [w]
726
720
  }],
727
721
  /**
728
722
  * Padding Start
729
723
  * @see https://tailwindcss.com/docs/padding
730
724
  */
731
725
  ps: [{
732
- ps: [S]
726
+ ps: [w]
733
727
  }],
734
728
  /**
735
729
  * Padding End
736
730
  * @see https://tailwindcss.com/docs/padding
737
731
  */
738
732
  pe: [{
739
- pe: [S]
733
+ pe: [w]
740
734
  }],
741
735
  /**
742
736
  * Padding Top
743
737
  * @see https://tailwindcss.com/docs/padding
744
738
  */
745
739
  pt: [{
746
- pt: [S]
740
+ pt: [w]
747
741
  }],
748
742
  /**
749
743
  * Padding Right
750
744
  * @see https://tailwindcss.com/docs/padding
751
745
  */
752
746
  pr: [{
753
- pr: [S]
747
+ pr: [w]
754
748
  }],
755
749
  /**
756
750
  * Padding Bottom
757
751
  * @see https://tailwindcss.com/docs/padding
758
752
  */
759
753
  pb: [{
760
- pb: [S]
754
+ pb: [w]
761
755
  }],
762
756
  /**
763
757
  * Padding Left
764
758
  * @see https://tailwindcss.com/docs/padding
765
759
  */
766
760
  pl: [{
767
- pl: [S]
761
+ pl: [w]
768
762
  }],
769
763
  /**
770
764
  * Margin
771
765
  * @see https://tailwindcss.com/docs/margin
772
766
  */
773
767
  m: [{
774
- m: [g]
768
+ m: [u]
775
769
  }],
776
770
  /**
777
771
  * Margin X
778
772
  * @see https://tailwindcss.com/docs/margin
779
773
  */
780
774
  mx: [{
781
- mx: [g]
775
+ mx: [u]
782
776
  }],
783
777
  /**
784
778
  * Margin Y
785
779
  * @see https://tailwindcss.com/docs/margin
786
780
  */
787
781
  my: [{
788
- my: [g]
782
+ my: [u]
789
783
  }],
790
784
  /**
791
785
  * Margin Start
792
786
  * @see https://tailwindcss.com/docs/margin
793
787
  */
794
788
  ms: [{
795
- ms: [g]
789
+ ms: [u]
796
790
  }],
797
791
  /**
798
792
  * Margin End
799
793
  * @see https://tailwindcss.com/docs/margin
800
794
  */
801
795
  me: [{
802
- me: [g]
796
+ me: [u]
803
797
  }],
804
798
  /**
805
799
  * Margin Top
806
800
  * @see https://tailwindcss.com/docs/margin
807
801
  */
808
802
  mt: [{
809
- mt: [g]
803
+ mt: [u]
810
804
  }],
811
805
  /**
812
806
  * Margin Right
813
807
  * @see https://tailwindcss.com/docs/margin
814
808
  */
815
809
  mr: [{
816
- mr: [g]
810
+ mr: [u]
817
811
  }],
818
812
  /**
819
813
  * Margin Bottom
820
814
  * @see https://tailwindcss.com/docs/margin
821
815
  */
822
816
  mb: [{
823
- mb: [g]
817
+ mb: [u]
824
818
  }],
825
819
  /**
826
820
  * Margin Left
827
821
  * @see https://tailwindcss.com/docs/margin
828
822
  */
829
823
  ml: [{
830
- ml: [g]
824
+ ml: [u]
831
825
  }],
832
826
  /**
833
827
  * Space Between X
834
828
  * @see https://tailwindcss.com/docs/space
835
829
  */
836
830
  "space-x": [{
837
- "space-x": [de]
831
+ "space-x": [K]
838
832
  }],
839
833
  /**
840
834
  * Space Between X Reverse
@@ -846,7 +840,7 @@ const x = (e) => {
846
840
  * @see https://tailwindcss.com/docs/space
847
841
  */
848
842
  "space-y": [{
849
- "space-y": [de]
843
+ "space-y": [K]
850
844
  }],
851
845
  /**
852
846
  * Space Between Y Reverse
@@ -859,21 +853,21 @@ const x = (e) => {
859
853
  * @see https://tailwindcss.com/docs/width
860
854
  */
861
855
  w: [{
862
- w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", h, r]
856
+ w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", l, t]
863
857
  }],
864
858
  /**
865
859
  * Min-Width
866
860
  * @see https://tailwindcss.com/docs/min-width
867
861
  */
868
862
  "min-w": [{
869
- "min-w": [h, r, "min", "max", "fit"]
863
+ "min-w": [l, t, "min", "max", "fit"]
870
864
  }],
871
865
  /**
872
866
  * Max-Width
873
867
  * @see https://tailwindcss.com/docs/max-width
874
868
  */
875
869
  "max-w": [{
876
- "max-w": [h, r, "none", "full", "min", "max", "fit", "prose", {
870
+ "max-w": [l, t, "none", "full", "min", "max", "fit", "prose", {
877
871
  screen: [R]
878
872
  }, R]
879
873
  }],
@@ -882,28 +876,28 @@ const x = (e) => {
882
876
  * @see https://tailwindcss.com/docs/height
883
877
  */
884
878
  h: [{
885
- h: [h, r, "auto", "min", "max", "fit", "svh", "lvh", "dvh"]
879
+ h: [l, t, "auto", "min", "max", "fit", "svh", "lvh", "dvh"]
886
880
  }],
887
881
  /**
888
882
  * Min-Height
889
883
  * @see https://tailwindcss.com/docs/min-height
890
884
  */
891
885
  "min-h": [{
892
- "min-h": [h, r, "min", "max", "fit", "svh", "lvh", "dvh"]
886
+ "min-h": [l, t, "min", "max", "fit", "svh", "lvh", "dvh"]
893
887
  }],
894
888
  /**
895
889
  * Max-Height
896
890
  * @see https://tailwindcss.com/docs/max-height
897
891
  */
898
892
  "max-h": [{
899
- "max-h": [h, r, "min", "max", "fit", "svh", "lvh", "dvh"]
893
+ "max-h": [l, t, "min", "max", "fit", "svh", "lvh", "dvh"]
900
894
  }],
901
895
  /**
902
896
  * Size
903
897
  * @see https://tailwindcss.com/docs/size
904
898
  */
905
899
  size: [{
906
- size: [h, r, "auto", "min", "max", "fit"]
900
+ size: [l, t, "auto", "min", "max", "fit"]
907
901
  }],
908
902
  // Typography
909
903
  /**
@@ -911,7 +905,7 @@ const x = (e) => {
911
905
  * @see https://tailwindcss.com/docs/font-size
912
906
  */
913
907
  "font-size": [{
914
- text: ["base", R, A]
908
+ text: ["base", R, N]
915
909
  }],
916
910
  /**
917
911
  * Font Smoothing
@@ -928,14 +922,14 @@ const x = (e) => {
928
922
  * @see https://tailwindcss.com/docs/font-weight
929
923
  */
930
924
  "font-weight": [{
931
- font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", K]
925
+ font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", q]
932
926
  }],
933
927
  /**
934
928
  * Font Family
935
929
  * @see https://tailwindcss.com/docs/font-family
936
930
  */
937
931
  "font-family": [{
938
- font: [G]
932
+ font: [L]
939
933
  }],
940
934
  /**
941
935
  * Font Variant Numeric
@@ -972,35 +966,35 @@ const x = (e) => {
972
966
  * @see https://tailwindcss.com/docs/letter-spacing
973
967
  */
974
968
  tracking: [{
975
- tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", h]
969
+ tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", l]
976
970
  }],
977
971
  /**
978
972
  * Line Clamp
979
973
  * @see https://tailwindcss.com/docs/line-clamp
980
974
  */
981
975
  "line-clamp": [{
982
- "line-clamp": ["none", I, K]
976
+ "line-clamp": ["none", I, q]
983
977
  }],
984
978
  /**
985
979
  * Line Height
986
980
  * @see https://tailwindcss.com/docs/line-height
987
981
  */
988
982
  leading: [{
989
- leading: ["none", "tight", "snug", "normal", "relaxed", "loose", L, h]
983
+ leading: ["none", "tight", "snug", "normal", "relaxed", "loose", z, l]
990
984
  }],
991
985
  /**
992
986
  * List Style Image
993
987
  * @see https://tailwindcss.com/docs/list-style-image
994
988
  */
995
989
  "list-image": [{
996
- "list-image": ["none", h]
990
+ "list-image": ["none", l]
997
991
  }],
998
992
  /**
999
993
  * List Style Type
1000
994
  * @see https://tailwindcss.com/docs/list-style-type
1001
995
  */
1002
996
  "list-style-type": [{
1003
- list: ["none", "disc", "decimal", h]
997
+ list: ["none", "disc", "decimal", l]
1004
998
  }],
1005
999
  /**
1006
1000
  * List Style Position
@@ -1022,7 +1016,7 @@ const x = (e) => {
1022
1016
  * @see https://tailwindcss.com/docs/placeholder-opacity
1023
1017
  */
1024
1018
  "placeholder-opacity": [{
1025
- "placeholder-opacity": [y]
1019
+ "placeholder-opacity": [x]
1026
1020
  }],
1027
1021
  /**
1028
1022
  * Text Alignment
@@ -1043,7 +1037,7 @@ const x = (e) => {
1043
1037
  * @see https://tailwindcss.com/docs/text-opacity
1044
1038
  */
1045
1039
  "text-opacity": [{
1046
- "text-opacity": [y]
1040
+ "text-opacity": [x]
1047
1041
  }],
1048
1042
  /**
1049
1043
  * Text Decoration
@@ -1055,21 +1049,21 @@ const x = (e) => {
1055
1049
  * @see https://tailwindcss.com/docs/text-decoration-style
1056
1050
  */
1057
1051
  "text-decoration-style": [{
1058
- decoration: [...F(), "wavy"]
1052
+ decoration: [...W(), "wavy"]
1059
1053
  }],
1060
1054
  /**
1061
1055
  * Text Decoration Thickness
1062
1056
  * @see https://tailwindcss.com/docs/text-decoration-thickness
1063
1057
  */
1064
1058
  "text-decoration-thickness": [{
1065
- decoration: ["auto", "from-font", L, A]
1059
+ decoration: ["auto", "from-font", z, N]
1066
1060
  }],
1067
1061
  /**
1068
1062
  * Text Underline Offset
1069
1063
  * @see https://tailwindcss.com/docs/text-underline-offset
1070
1064
  */
1071
1065
  "underline-offset": [{
1072
- "underline-offset": ["auto", L, h]
1066
+ "underline-offset": ["auto", z, l]
1073
1067
  }],
1074
1068
  /**
1075
1069
  * Text Decoration Color
@@ -1100,14 +1094,14 @@ const x = (e) => {
1100
1094
  * @see https://tailwindcss.com/docs/text-indent
1101
1095
  */
1102
1096
  indent: [{
1103
- indent: w()
1097
+ indent: d()
1104
1098
  }],
1105
1099
  /**
1106
1100
  * Vertical Alignment
1107
1101
  * @see https://tailwindcss.com/docs/vertical-align
1108
1102
  */
1109
1103
  "vertical-align": [{
1110
- align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", h]
1104
+ align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", l]
1111
1105
  }],
1112
1106
  /**
1113
1107
  * Whitespace
@@ -1135,7 +1129,7 @@ const x = (e) => {
1135
1129
  * @see https://tailwindcss.com/docs/content
1136
1130
  */
1137
1131
  content: [{
1138
- content: ["none", h]
1132
+ content: ["none", l]
1139
1133
  }],
1140
1134
  // Backgrounds
1141
1135
  /**
@@ -1158,7 +1152,7 @@ const x = (e) => {
1158
1152
  * @see https://tailwindcss.com/docs/background-opacity
1159
1153
  */
1160
1154
  "bg-opacity": [{
1161
- "bg-opacity": [y]
1155
+ "bg-opacity": [x]
1162
1156
  }],
1163
1157
  /**
1164
1158
  * Background Origin
@@ -1172,7 +1166,7 @@ const x = (e) => {
1172
1166
  * @see https://tailwindcss.com/docs/background-position
1173
1167
  */
1174
1168
  "bg-position": [{
1175
- bg: [...me(), Ur]
1169
+ bg: [...D(), Fe]
1176
1170
  }],
1177
1171
  /**
1178
1172
  * Background Repeat
@@ -1188,7 +1182,7 @@ const x = (e) => {
1188
1182
  * @see https://tailwindcss.com/docs/background-size
1189
1183
  */
1190
1184
  "bg-size": [{
1191
- bg: ["auto", "cover", "contain", _r]
1185
+ bg: ["auto", "cover", "contain", $e]
1192
1186
  }],
1193
1187
  /**
1194
1188
  * Background Image
@@ -1197,7 +1191,7 @@ const x = (e) => {
1197
1191
  "bg-image": [{
1198
1192
  bg: ["none", {
1199
1193
  "gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
1200
- }, Dr]
1194
+ }, Je]
1201
1195
  }],
1202
1196
  /**
1203
1197
  * Background Color
@@ -1232,21 +1226,21 @@ const x = (e) => {
1232
1226
  * @see https://tailwindcss.com/docs/gradient-color-stops
1233
1227
  */
1234
1228
  "gradient-from": [{
1235
- from: [f]
1229
+ from: [S]
1236
1230
  }],
1237
1231
  /**
1238
1232
  * Gradient Color Stops Via
1239
1233
  * @see https://tailwindcss.com/docs/gradient-color-stops
1240
1234
  */
1241
1235
  "gradient-via": [{
1242
- via: [f]
1236
+ via: [S]
1243
1237
  }],
1244
1238
  /**
1245
1239
  * Gradient Color Stops To
1246
1240
  * @see https://tailwindcss.com/docs/gradient-color-stops
1247
1241
  */
1248
1242
  "gradient-to": [{
1249
- to: [f]
1243
+ to: [S]
1250
1244
  }],
1251
1245
  // Borders
1252
1246
  /**
@@ -1359,84 +1353,84 @@ const x = (e) => {
1359
1353
  * @see https://tailwindcss.com/docs/border-width
1360
1354
  */
1361
1355
  "border-w": [{
1362
- border: [c]
1356
+ border: [s]
1363
1357
  }],
1364
1358
  /**
1365
1359
  * Border Width X
1366
1360
  * @see https://tailwindcss.com/docs/border-width
1367
1361
  */
1368
1362
  "border-w-x": [{
1369
- "border-x": [c]
1363
+ "border-x": [s]
1370
1364
  }],
1371
1365
  /**
1372
1366
  * Border Width Y
1373
1367
  * @see https://tailwindcss.com/docs/border-width
1374
1368
  */
1375
1369
  "border-w-y": [{
1376
- "border-y": [c]
1370
+ "border-y": [s]
1377
1371
  }],
1378
1372
  /**
1379
1373
  * Border Width Start
1380
1374
  * @see https://tailwindcss.com/docs/border-width
1381
1375
  */
1382
1376
  "border-w-s": [{
1383
- "border-s": [c]
1377
+ "border-s": [s]
1384
1378
  }],
1385
1379
  /**
1386
1380
  * Border Width End
1387
1381
  * @see https://tailwindcss.com/docs/border-width
1388
1382
  */
1389
1383
  "border-w-e": [{
1390
- "border-e": [c]
1384
+ "border-e": [s]
1391
1385
  }],
1392
1386
  /**
1393
1387
  * Border Width Top
1394
1388
  * @see https://tailwindcss.com/docs/border-width
1395
1389
  */
1396
1390
  "border-w-t": [{
1397
- "border-t": [c]
1391
+ "border-t": [s]
1398
1392
  }],
1399
1393
  /**
1400
1394
  * Border Width Right
1401
1395
  * @see https://tailwindcss.com/docs/border-width
1402
1396
  */
1403
1397
  "border-w-r": [{
1404
- "border-r": [c]
1398
+ "border-r": [s]
1405
1399
  }],
1406
1400
  /**
1407
1401
  * Border Width Bottom
1408
1402
  * @see https://tailwindcss.com/docs/border-width
1409
1403
  */
1410
1404
  "border-w-b": [{
1411
- "border-b": [c]
1405
+ "border-b": [s]
1412
1406
  }],
1413
1407
  /**
1414
1408
  * Border Width Left
1415
1409
  * @see https://tailwindcss.com/docs/border-width
1416
1410
  */
1417
1411
  "border-w-l": [{
1418
- "border-l": [c]
1412
+ "border-l": [s]
1419
1413
  }],
1420
1414
  /**
1421
1415
  * Border Opacity
1422
1416
  * @see https://tailwindcss.com/docs/border-opacity
1423
1417
  */
1424
1418
  "border-opacity": [{
1425
- "border-opacity": [y]
1419
+ "border-opacity": [x]
1426
1420
  }],
1427
1421
  /**
1428
1422
  * Border Style
1429
1423
  * @see https://tailwindcss.com/docs/border-style
1430
1424
  */
1431
1425
  "border-style": [{
1432
- border: [...F(), "hidden"]
1426
+ border: [...W(), "hidden"]
1433
1427
  }],
1434
1428
  /**
1435
1429
  * Divide Width X
1436
1430
  * @see https://tailwindcss.com/docs/divide-width
1437
1431
  */
1438
1432
  "divide-x": [{
1439
- "divide-x": [c]
1433
+ "divide-x": [s]
1440
1434
  }],
1441
1435
  /**
1442
1436
  * Divide Width X Reverse
@@ -1448,7 +1442,7 @@ const x = (e) => {
1448
1442
  * @see https://tailwindcss.com/docs/divide-width
1449
1443
  */
1450
1444
  "divide-y": [{
1451
- "divide-y": [c]
1445
+ "divide-y": [s]
1452
1446
  }],
1453
1447
  /**
1454
1448
  * Divide Width Y Reverse
@@ -1460,105 +1454,105 @@ const x = (e) => {
1460
1454
  * @see https://tailwindcss.com/docs/divide-opacity
1461
1455
  */
1462
1456
  "divide-opacity": [{
1463
- "divide-opacity": [y]
1457
+ "divide-opacity": [x]
1464
1458
  }],
1465
1459
  /**
1466
1460
  * Divide Style
1467
1461
  * @see https://tailwindcss.com/docs/divide-style
1468
1462
  */
1469
1463
  "divide-style": [{
1470
- divide: F()
1464
+ divide: W()
1471
1465
  }],
1472
1466
  /**
1473
1467
  * Border Color
1474
1468
  * @see https://tailwindcss.com/docs/border-color
1475
1469
  */
1476
1470
  "border-color": [{
1477
- border: [s]
1471
+ border: [a]
1478
1472
  }],
1479
1473
  /**
1480
1474
  * Border Color X
1481
1475
  * @see https://tailwindcss.com/docs/border-color
1482
1476
  */
1483
1477
  "border-color-x": [{
1484
- "border-x": [s]
1478
+ "border-x": [a]
1485
1479
  }],
1486
1480
  /**
1487
1481
  * Border Color Y
1488
1482
  * @see https://tailwindcss.com/docs/border-color
1489
1483
  */
1490
1484
  "border-color-y": [{
1491
- "border-y": [s]
1485
+ "border-y": [a]
1492
1486
  }],
1493
1487
  /**
1494
1488
  * Border Color S
1495
1489
  * @see https://tailwindcss.com/docs/border-color
1496
1490
  */
1497
1491
  "border-color-s": [{
1498
- "border-s": [s]
1492
+ "border-s": [a]
1499
1493
  }],
1500
1494
  /**
1501
1495
  * Border Color E
1502
1496
  * @see https://tailwindcss.com/docs/border-color
1503
1497
  */
1504
1498
  "border-color-e": [{
1505
- "border-e": [s]
1499
+ "border-e": [a]
1506
1500
  }],
1507
1501
  /**
1508
1502
  * Border Color Top
1509
1503
  * @see https://tailwindcss.com/docs/border-color
1510
1504
  */
1511
1505
  "border-color-t": [{
1512
- "border-t": [s]
1506
+ "border-t": [a]
1513
1507
  }],
1514
1508
  /**
1515
1509
  * Border Color Right
1516
1510
  * @see https://tailwindcss.com/docs/border-color
1517
1511
  */
1518
1512
  "border-color-r": [{
1519
- "border-r": [s]
1513
+ "border-r": [a]
1520
1514
  }],
1521
1515
  /**
1522
1516
  * Border Color Bottom
1523
1517
  * @see https://tailwindcss.com/docs/border-color
1524
1518
  */
1525
1519
  "border-color-b": [{
1526
- "border-b": [s]
1520
+ "border-b": [a]
1527
1521
  }],
1528
1522
  /**
1529
1523
  * Border Color Left
1530
1524
  * @see https://tailwindcss.com/docs/border-color
1531
1525
  */
1532
1526
  "border-color-l": [{
1533
- "border-l": [s]
1527
+ "border-l": [a]
1534
1528
  }],
1535
1529
  /**
1536
1530
  * Divide Color
1537
1531
  * @see https://tailwindcss.com/docs/divide-color
1538
1532
  */
1539
1533
  "divide-color": [{
1540
- divide: [s]
1534
+ divide: [a]
1541
1535
  }],
1542
1536
  /**
1543
1537
  * Outline Style
1544
1538
  * @see https://tailwindcss.com/docs/outline-style
1545
1539
  */
1546
1540
  "outline-style": [{
1547
- outline: ["", ...F()]
1541
+ outline: ["", ...W()]
1548
1542
  }],
1549
1543
  /**
1550
1544
  * Outline Offset
1551
1545
  * @see https://tailwindcss.com/docs/outline-offset
1552
1546
  */
1553
1547
  "outline-offset": [{
1554
- "outline-offset": [L, h]
1548
+ "outline-offset": [z, l]
1555
1549
  }],
1556
1550
  /**
1557
1551
  * Outline Width
1558
1552
  * @see https://tailwindcss.com/docs/outline-width
1559
1553
  */
1560
1554
  "outline-w": [{
1561
- outline: [L, A]
1555
+ outline: [z, N]
1562
1556
  }],
1563
1557
  /**
1564
1558
  * Outline Color
@@ -1572,7 +1566,7 @@ const x = (e) => {
1572
1566
  * @see https://tailwindcss.com/docs/ring-width
1573
1567
  */
1574
1568
  "ring-w": [{
1575
- ring: he()
1569
+ ring: Y()
1576
1570
  }],
1577
1571
  /**
1578
1572
  * Ring Width Inset
@@ -1591,14 +1585,14 @@ const x = (e) => {
1591
1585
  * @see https://tailwindcss.com/docs/ring-opacity
1592
1586
  */
1593
1587
  "ring-opacity": [{
1594
- "ring-opacity": [y]
1588
+ "ring-opacity": [x]
1595
1589
  }],
1596
1590
  /**
1597
1591
  * Ring Offset Width
1598
1592
  * @see https://tailwindcss.com/docs/ring-offset-width
1599
1593
  */
1600
1594
  "ring-offset-w": [{
1601
- "ring-offset": [L, A]
1595
+ "ring-offset": [z, N]
1602
1596
  }],
1603
1597
  /**
1604
1598
  * Ring Offset Color
@@ -1613,35 +1607,35 @@ const x = (e) => {
1613
1607
  * @see https://tailwindcss.com/docs/box-shadow
1614
1608
  */
1615
1609
  shadow: [{
1616
- shadow: ["", "inner", "none", R, Xr]
1610
+ shadow: ["", "inner", "none", R, Xe]
1617
1611
  }],
1618
1612
  /**
1619
1613
  * Box Shadow Color
1620
1614
  * @see https://tailwindcss.com/docs/box-shadow-color
1621
1615
  */
1622
1616
  "shadow-color": [{
1623
- shadow: [G]
1617
+ shadow: [L]
1624
1618
  }],
1625
1619
  /**
1626
1620
  * Opacity
1627
1621
  * @see https://tailwindcss.com/docs/opacity
1628
1622
  */
1629
1623
  opacity: [{
1630
- opacity: [y]
1624
+ opacity: [x]
1631
1625
  }],
1632
1626
  /**
1633
1627
  * Mix Blend Mode
1634
1628
  * @see https://tailwindcss.com/docs/mix-blend-mode
1635
1629
  */
1636
1630
  "mix-blend": [{
1637
- "mix-blend": [...pe(), "plus-lighter", "plus-darker"]
1631
+ "mix-blend": [...ee(), "plus-lighter", "plus-darker"]
1638
1632
  }],
1639
1633
  /**
1640
1634
  * Background Blend Mode
1641
1635
  * @see https://tailwindcss.com/docs/background-blend-mode
1642
1636
  */
1643
1637
  "bg-blend": [{
1644
- "bg-blend": pe()
1638
+ "bg-blend": ee()
1645
1639
  }],
1646
1640
  // Filters
1647
1641
  /**
@@ -1657,7 +1651,7 @@ const x = (e) => {
1657
1651
  * @see https://tailwindcss.com/docs/blur
1658
1652
  */
1659
1653
  blur: [{
1660
- blur: [t]
1654
+ blur: [r]
1661
1655
  }],
1662
1656
  /**
1663
1657
  * Brightness
@@ -1671,35 +1665,35 @@ const x = (e) => {
1671
1665
  * @see https://tailwindcss.com/docs/contrast
1672
1666
  */
1673
1667
  contrast: [{
1674
- contrast: [u]
1668
+ contrast: [p]
1675
1669
  }],
1676
1670
  /**
1677
1671
  * Drop Shadow
1678
1672
  * @see https://tailwindcss.com/docs/drop-shadow
1679
1673
  */
1680
1674
  "drop-shadow": [{
1681
- "drop-shadow": ["", "none", R, h]
1675
+ "drop-shadow": ["", "none", R, l]
1682
1676
  }],
1683
1677
  /**
1684
1678
  * Grayscale
1685
1679
  * @see https://tailwindcss.com/docs/grayscale
1686
1680
  */
1687
1681
  grayscale: [{
1688
- grayscale: [d]
1682
+ grayscale: [f]
1689
1683
  }],
1690
1684
  /**
1691
1685
  * Hue Rotate
1692
1686
  * @see https://tailwindcss.com/docs/hue-rotate
1693
1687
  */
1694
1688
  "hue-rotate": [{
1695
- "hue-rotate": [m]
1689
+ "hue-rotate": [h]
1696
1690
  }],
1697
1691
  /**
1698
1692
  * Invert
1699
1693
  * @see https://tailwindcss.com/docs/invert
1700
1694
  */
1701
1695
  invert: [{
1702
- invert: [p]
1696
+ invert: [y]
1703
1697
  }],
1704
1698
  /**
1705
1699
  * Saturate
@@ -1713,7 +1707,7 @@ const x = (e) => {
1713
1707
  * @see https://tailwindcss.com/docs/sepia
1714
1708
  */
1715
1709
  sepia: [{
1716
- sepia: [_]
1710
+ sepia: [B]
1717
1711
  }],
1718
1712
  /**
1719
1713
  * Backdrop Filter
@@ -1728,7 +1722,7 @@ const x = (e) => {
1728
1722
  * @see https://tailwindcss.com/docs/backdrop-blur
1729
1723
  */
1730
1724
  "backdrop-blur": [{
1731
- "backdrop-blur": [t]
1725
+ "backdrop-blur": [r]
1732
1726
  }],
1733
1727
  /**
1734
1728
  * Backdrop Brightness
@@ -1742,35 +1736,35 @@ const x = (e) => {
1742
1736
  * @see https://tailwindcss.com/docs/backdrop-contrast
1743
1737
  */
1744
1738
  "backdrop-contrast": [{
1745
- "backdrop-contrast": [u]
1739
+ "backdrop-contrast": [p]
1746
1740
  }],
1747
1741
  /**
1748
1742
  * Backdrop Grayscale
1749
1743
  * @see https://tailwindcss.com/docs/backdrop-grayscale
1750
1744
  */
1751
1745
  "backdrop-grayscale": [{
1752
- "backdrop-grayscale": [d]
1746
+ "backdrop-grayscale": [f]
1753
1747
  }],
1754
1748
  /**
1755
1749
  * Backdrop Hue Rotate
1756
1750
  * @see https://tailwindcss.com/docs/backdrop-hue-rotate
1757
1751
  */
1758
1752
  "backdrop-hue-rotate": [{
1759
- "backdrop-hue-rotate": [m]
1753
+ "backdrop-hue-rotate": [h]
1760
1754
  }],
1761
1755
  /**
1762
1756
  * Backdrop Invert
1763
1757
  * @see https://tailwindcss.com/docs/backdrop-invert
1764
1758
  */
1765
1759
  "backdrop-invert": [{
1766
- "backdrop-invert": [p]
1760
+ "backdrop-invert": [y]
1767
1761
  }],
1768
1762
  /**
1769
1763
  * Backdrop Opacity
1770
1764
  * @see https://tailwindcss.com/docs/backdrop-opacity
1771
1765
  */
1772
1766
  "backdrop-opacity": [{
1773
- "backdrop-opacity": [y]
1767
+ "backdrop-opacity": [x]
1774
1768
  }],
1775
1769
  /**
1776
1770
  * Backdrop Saturate
@@ -1784,7 +1778,7 @@ const x = (e) => {
1784
1778
  * @see https://tailwindcss.com/docs/backdrop-sepia
1785
1779
  */
1786
1780
  "backdrop-sepia": [{
1787
- "backdrop-sepia": [_]
1781
+ "backdrop-sepia": [B]
1788
1782
  }],
1789
1783
  // Tables
1790
1784
  /**
@@ -1799,21 +1793,21 @@ const x = (e) => {
1799
1793
  * @see https://tailwindcss.com/docs/border-spacing
1800
1794
  */
1801
1795
  "border-spacing": [{
1802
- "border-spacing": [a]
1796
+ "border-spacing": [i]
1803
1797
  }],
1804
1798
  /**
1805
1799
  * Border Spacing X
1806
1800
  * @see https://tailwindcss.com/docs/border-spacing
1807
1801
  */
1808
1802
  "border-spacing-x": [{
1809
- "border-spacing-x": [a]
1803
+ "border-spacing-x": [i]
1810
1804
  }],
1811
1805
  /**
1812
1806
  * Border Spacing Y
1813
1807
  * @see https://tailwindcss.com/docs/border-spacing
1814
1808
  */
1815
1809
  "border-spacing-y": [{
1816
- "border-spacing-y": [a]
1810
+ "border-spacing-y": [i]
1817
1811
  }],
1818
1812
  /**
1819
1813
  * Table Layout
@@ -1835,35 +1829,35 @@ const x = (e) => {
1835
1829
  * @see https://tailwindcss.com/docs/transition-property
1836
1830
  */
1837
1831
  transition: [{
1838
- transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", h]
1832
+ transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", l]
1839
1833
  }],
1840
1834
  /**
1841
1835
  * Transition Duration
1842
1836
  * @see https://tailwindcss.com/docs/transition-duration
1843
1837
  */
1844
1838
  duration: [{
1845
- duration: M()
1839
+ duration: k()
1846
1840
  }],
1847
1841
  /**
1848
1842
  * Transition Timing Function
1849
1843
  * @see https://tailwindcss.com/docs/transition-timing-function
1850
1844
  */
1851
1845
  ease: [{
1852
- ease: ["linear", "in", "out", "in-out", h]
1846
+ ease: ["linear", "in", "out", "in-out", l]
1853
1847
  }],
1854
1848
  /**
1855
1849
  * Transition Delay
1856
1850
  * @see https://tailwindcss.com/docs/transition-delay
1857
1851
  */
1858
1852
  delay: [{
1859
- delay: M()
1853
+ delay: k()
1860
1854
  }],
1861
1855
  /**
1862
1856
  * Animation
1863
1857
  * @see https://tailwindcss.com/docs/animation
1864
1858
  */
1865
1859
  animate: [{
1866
- animate: ["none", "spin", "ping", "pulse", "bounce", h]
1860
+ animate: ["none", "spin", "ping", "pulse", "bounce", l]
1867
1861
  }],
1868
1862
  // Transforms
1869
1863
  /**
@@ -1878,63 +1872,63 @@ const x = (e) => {
1878
1872
  * @see https://tailwindcss.com/docs/scale
1879
1873
  */
1880
1874
  scale: [{
1881
- scale: [V]
1875
+ scale: [M]
1882
1876
  }],
1883
1877
  /**
1884
1878
  * Scale X
1885
1879
  * @see https://tailwindcss.com/docs/scale
1886
1880
  */
1887
1881
  "scale-x": [{
1888
- "scale-x": [V]
1882
+ "scale-x": [M]
1889
1883
  }],
1890
1884
  /**
1891
1885
  * Scale Y
1892
1886
  * @see https://tailwindcss.com/docs/scale
1893
1887
  */
1894
1888
  "scale-y": [{
1895
- "scale-y": [V]
1889
+ "scale-y": [M]
1896
1890
  }],
1897
1891
  /**
1898
1892
  * Rotate
1899
1893
  * @see https://tailwindcss.com/docs/rotate
1900
1894
  */
1901
1895
  rotate: [{
1902
- rotate: [B, h]
1896
+ rotate: [T, l]
1903
1897
  }],
1904
1898
  /**
1905
1899
  * Translate X
1906
1900
  * @see https://tailwindcss.com/docs/translate
1907
1901
  */
1908
1902
  "translate-x": [{
1909
- "translate-x": [ue]
1903
+ "translate-x": [Q]
1910
1904
  }],
1911
1905
  /**
1912
1906
  * Translate Y
1913
1907
  * @see https://tailwindcss.com/docs/translate
1914
1908
  */
1915
1909
  "translate-y": [{
1916
- "translate-y": [ue]
1910
+ "translate-y": [Q]
1917
1911
  }],
1918
1912
  /**
1919
1913
  * Skew X
1920
1914
  * @see https://tailwindcss.com/docs/skew
1921
1915
  */
1922
1916
  "skew-x": [{
1923
- "skew-x": [le]
1917
+ "skew-x": [H]
1924
1918
  }],
1925
1919
  /**
1926
1920
  * Skew Y
1927
1921
  * @see https://tailwindcss.com/docs/skew
1928
1922
  */
1929
1923
  "skew-y": [{
1930
- "skew-y": [le]
1924
+ "skew-y": [H]
1931
1925
  }],
1932
1926
  /**
1933
1927
  * Transform Origin
1934
1928
  * @see https://tailwindcss.com/docs/transform-origin
1935
1929
  */
1936
1930
  "transform-origin": [{
1937
- origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", h]
1931
+ origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", l]
1938
1932
  }],
1939
1933
  // Interactivity
1940
1934
  /**
@@ -1956,7 +1950,7 @@ const x = (e) => {
1956
1950
  * @see https://tailwindcss.com/docs/cursor
1957
1951
  */
1958
1952
  cursor: [{
1959
- cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", h]
1953
+ cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", l]
1960
1954
  }],
1961
1955
  /**
1962
1956
  * Caret Color
@@ -1991,126 +1985,126 @@ const x = (e) => {
1991
1985
  * @see https://tailwindcss.com/docs/scroll-margin
1992
1986
  */
1993
1987
  "scroll-m": [{
1994
- "scroll-m": w()
1988
+ "scroll-m": d()
1995
1989
  }],
1996
1990
  /**
1997
1991
  * Scroll Margin X
1998
1992
  * @see https://tailwindcss.com/docs/scroll-margin
1999
1993
  */
2000
1994
  "scroll-mx": [{
2001
- "scroll-mx": w()
1995
+ "scroll-mx": d()
2002
1996
  }],
2003
1997
  /**
2004
1998
  * Scroll Margin Y
2005
1999
  * @see https://tailwindcss.com/docs/scroll-margin
2006
2000
  */
2007
2001
  "scroll-my": [{
2008
- "scroll-my": w()
2002
+ "scroll-my": d()
2009
2003
  }],
2010
2004
  /**
2011
2005
  * Scroll Margin Start
2012
2006
  * @see https://tailwindcss.com/docs/scroll-margin
2013
2007
  */
2014
2008
  "scroll-ms": [{
2015
- "scroll-ms": w()
2009
+ "scroll-ms": d()
2016
2010
  }],
2017
2011
  /**
2018
2012
  * Scroll Margin End
2019
2013
  * @see https://tailwindcss.com/docs/scroll-margin
2020
2014
  */
2021
2015
  "scroll-me": [{
2022
- "scroll-me": w()
2016
+ "scroll-me": d()
2023
2017
  }],
2024
2018
  /**
2025
2019
  * Scroll Margin Top
2026
2020
  * @see https://tailwindcss.com/docs/scroll-margin
2027
2021
  */
2028
2022
  "scroll-mt": [{
2029
- "scroll-mt": w()
2023
+ "scroll-mt": d()
2030
2024
  }],
2031
2025
  /**
2032
2026
  * Scroll Margin Right
2033
2027
  * @see https://tailwindcss.com/docs/scroll-margin
2034
2028
  */
2035
2029
  "scroll-mr": [{
2036
- "scroll-mr": w()
2030
+ "scroll-mr": d()
2037
2031
  }],
2038
2032
  /**
2039
2033
  * Scroll Margin Bottom
2040
2034
  * @see https://tailwindcss.com/docs/scroll-margin
2041
2035
  */
2042
2036
  "scroll-mb": [{
2043
- "scroll-mb": w()
2037
+ "scroll-mb": d()
2044
2038
  }],
2045
2039
  /**
2046
2040
  * Scroll Margin Left
2047
2041
  * @see https://tailwindcss.com/docs/scroll-margin
2048
2042
  */
2049
2043
  "scroll-ml": [{
2050
- "scroll-ml": w()
2044
+ "scroll-ml": d()
2051
2045
  }],
2052
2046
  /**
2053
2047
  * Scroll Padding
2054
2048
  * @see https://tailwindcss.com/docs/scroll-padding
2055
2049
  */
2056
2050
  "scroll-p": [{
2057
- "scroll-p": w()
2051
+ "scroll-p": d()
2058
2052
  }],
2059
2053
  /**
2060
2054
  * Scroll Padding X
2061
2055
  * @see https://tailwindcss.com/docs/scroll-padding
2062
2056
  */
2063
2057
  "scroll-px": [{
2064
- "scroll-px": w()
2058
+ "scroll-px": d()
2065
2059
  }],
2066
2060
  /**
2067
2061
  * Scroll Padding Y
2068
2062
  * @see https://tailwindcss.com/docs/scroll-padding
2069
2063
  */
2070
2064
  "scroll-py": [{
2071
- "scroll-py": w()
2065
+ "scroll-py": d()
2072
2066
  }],
2073
2067
  /**
2074
2068
  * Scroll Padding Start
2075
2069
  * @see https://tailwindcss.com/docs/scroll-padding
2076
2070
  */
2077
2071
  "scroll-ps": [{
2078
- "scroll-ps": w()
2072
+ "scroll-ps": d()
2079
2073
  }],
2080
2074
  /**
2081
2075
  * Scroll Padding End
2082
2076
  * @see https://tailwindcss.com/docs/scroll-padding
2083
2077
  */
2084
2078
  "scroll-pe": [{
2085
- "scroll-pe": w()
2079
+ "scroll-pe": d()
2086
2080
  }],
2087
2081
  /**
2088
2082
  * Scroll Padding Top
2089
2083
  * @see https://tailwindcss.com/docs/scroll-padding
2090
2084
  */
2091
2085
  "scroll-pt": [{
2092
- "scroll-pt": w()
2086
+ "scroll-pt": d()
2093
2087
  }],
2094
2088
  /**
2095
2089
  * Scroll Padding Right
2096
2090
  * @see https://tailwindcss.com/docs/scroll-padding
2097
2091
  */
2098
2092
  "scroll-pr": [{
2099
- "scroll-pr": w()
2093
+ "scroll-pr": d()
2100
2094
  }],
2101
2095
  /**
2102
2096
  * Scroll Padding Bottom
2103
2097
  * @see https://tailwindcss.com/docs/scroll-padding
2104
2098
  */
2105
2099
  "scroll-pb": [{
2106
- "scroll-pb": w()
2100
+ "scroll-pb": d()
2107
2101
  }],
2108
2102
  /**
2109
2103
  * Scroll Padding Left
2110
2104
  * @see https://tailwindcss.com/docs/scroll-padding
2111
2105
  */
2112
2106
  "scroll-pl": [{
2113
- "scroll-pl": w()
2107
+ "scroll-pl": d()
2114
2108
  }],
2115
2109
  /**
2116
2110
  * Scroll Snap Align
@@ -2178,7 +2172,7 @@ const x = (e) => {
2178
2172
  * @see https://tailwindcss.com/docs/will-change
2179
2173
  */
2180
2174
  "will-change": [{
2181
- "will-change": ["auto", "scroll", "contents", "transform", h]
2175
+ "will-change": ["auto", "scroll", "contents", "transform", l]
2182
2176
  }],
2183
2177
  // SVG
2184
2178
  /**
@@ -2193,7 +2187,7 @@ const x = (e) => {
2193
2187
  * @see https://tailwindcss.com/docs/stroke-width
2194
2188
  */
2195
2189
  "stroke-w": [{
2196
- stroke: [L, A, K]
2190
+ stroke: [z, N, q]
2197
2191
  }],
2198
2192
  /**
2199
2193
  * Stroke
@@ -2268,930 +2262,169 @@ const x = (e) => {
2268
2262
  "font-size": ["leading"]
2269
2263
  }
2270
2264
  };
2271
- }, Yr = /* @__PURE__ */ Vr(Qr);
2272
- function k(...e) {
2273
- return Yr(Ee(e));
2274
- }
2275
- let Q;
2276
- function Y() {
2277
- return Q === void 0 && (Q = navigator.platform.includes("Mac")), Q;
2278
- }
2279
- function Zr(e) {
2280
- return `${e}`.toLowerCase() === "mod" ? Y() ? "⌘" : "Ctrl" : `${e}`.toLowerCase() === "alt" ? Y() ? "⌥" : "Alt" : `${e}`.toLowerCase() === "shift" ? Y() ? "⇧" : "Shift" : e;
2281
- }
2282
- function eo(e) {
2283
- return e.map(Zr).join(" ");
2284
- }
2285
- const tn = _e.forwardRef(
2286
- (e, r) => {
2287
- const {
2288
- icon: t = void 0,
2289
- // title = undefined,
2290
- tooltip: o = void 0,
2291
- disabled: s = !1,
2292
- customClass: n = "",
2293
- // color = undefined,
2294
- loading: a = void 0,
2295
- shortcutKeys: c = void 0,
2296
- tooltipOptions: u = {},
2297
- action: d = void 0,
2298
- isActive: m = void 0,
2299
- children: p,
2300
- asChild: l = !1,
2301
- upload: f = !1,
2302
- initialDisplayedColor: C = void 0,
2303
- dataState: b = !1,
2304
- ...g
2305
- } = e, y = Mo[t];
2306
- return /* @__PURE__ */ z(No, { children: [
2307
- /* @__PURE__ */ i(Ao, { asChild: !0, children: /* @__PURE__ */ z(
2308
- l ? Je : Ie,
2309
- {
2310
- className: k("richtext-w-[32px] richtext-h-[32px]", n),
2311
- "data-state": b ? "on" : "off",
2312
- disabled: s,
2313
- onClick: d,
2314
- ref: r,
2315
- size: "sm",
2316
- ...g,
2317
- children: [
2318
- y && /* @__PURE__ */ i(y, { className: "richtext-size-4" }),
2319
- p
2320
- ]
2321
- }
2322
- ) }),
2323
- o && /* @__PURE__ */ i(
2324
- He,
2325
- {
2326
- ...u,
2327
- className: "richtext-tooltip",
2328
- children: /* @__PURE__ */ z("div", { className: "richtext-flex richtext-max-w-24 richtext-flex-col richtext-items-center richtext-text-center", children: [
2329
- /* @__PURE__ */ i("div", { children: o }),
2330
- !!(c != null && c.length) && /* @__PURE__ */ i("span", { children: eo(c) })
2331
- ] })
2332
- }
2333
- )
2334
- ] });
2335
- }
2336
- ), Z = typeof window > "u";
2337
- function ye(e, r, t = window) {
2338
- const o = te(void 0);
2339
- T(() => {
2340
- o.current = r;
2341
- }, [r]), T(() => {
2342
- if (!(t && t.addEventListener)) return;
2343
- const n = (a) => {
2344
- o.current && o.current(a);
2345
- };
2346
- return t.addEventListener(e, n), () => {
2347
- t.removeEventListener(e, n);
2348
- };
2349
- }, [e, t]);
2350
- }
2351
- function ee(e, r, t = {}) {
2352
- const { initializeWithValue: o = !0 } = t, s = E(
2353
- (l) => t.serializer ? t.serializer(l) : JSON.stringify(l),
2354
- [t]
2355
- ), n = E(
2356
- (l) => {
2357
- if (t.deserializer)
2358
- return t.deserializer(l);
2359
- if (l === "undefined")
2360
- return;
2361
- const f = r instanceof Function ? r() : r;
2362
- let C;
2363
- try {
2364
- C = JSON.parse(l);
2365
- } catch (b) {
2366
- return console.error("Error parsing JSON:", b), f;
2367
- }
2368
- return C;
2369
- },
2370
- [t, r]
2371
- ), a = E(() => {
2372
- const l = r instanceof Function ? r() : r;
2373
- if (Z)
2374
- return l;
2375
- try {
2376
- const f = window.localStorage.getItem(e);
2377
- return f ? n(f) : l;
2378
- } catch (f) {
2379
- return console.warn(
2380
- `Error reading localStorage key “${e}”:`,
2381
- f
2382
- ), l;
2383
- }
2384
- }, [r, e, n]), [c, u] = Ue(() => o ? a() : r instanceof Function ? r() : r), d = E((l) => {
2385
- Z && console.warn(
2386
- `Tried setting localStorage key “${e}” even though environment is not a client`
2387
- );
2388
- try {
2389
- const f = l instanceof Function ? l(a()) : l;
2390
- window.localStorage.setItem(e, s(f)), u(f), window.dispatchEvent(
2391
- new StorageEvent("local-storage", {
2392
- key: e
2393
- })
2394
- );
2395
- } catch (f) {
2396
- console.warn(
2397
- `Error setting localStorage key “${e}”:`,
2398
- f
2399
- );
2400
- }
2401
- }, [e, s, a]), m = E(() => {
2402
- Z && console.warn(
2403
- `Tried removing localStorage key “${e}” even though environment is not a client`
2404
- );
2405
- const l = r instanceof Function ? r() : r;
2406
- window.localStorage.removeItem(e), u(l), window.dispatchEvent(
2407
- new StorageEvent("local-storage", {
2408
- key: e
2409
- })
2410
- );
2411
- }, [e, r]);
2412
- T(() => {
2413
- u(a());
2414
- }, [e]);
2415
- const p = E(
2416
- (l) => {
2417
- l.key && l.key !== e || u(a());
2418
- },
2419
- [e, a]
2420
- );
2421
- return ye("storage", p), ye("local-storage", p), [c, d, m];
2422
- }
2423
- function to(e) {
2424
- return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...e, children: /* @__PURE__ */ i(
2425
- "path",
2426
- {
2427
- fill: "currentColor",
2428
- d: "M19 12h-2v3h-3v2h5zM7 9h3V7H5v5h2zm14-6H3a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h18a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2m0 16H3V5h18z"
2429
- }
2430
- ) });
2431
- }
2432
- function ro(e) {
2433
- return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...e, children: /* @__PURE__ */ i(
2434
- "path",
2435
- {
2436
- fill: "none",
2437
- stroke: "currentColor",
2438
- strokeLinecap: "round",
2439
- strokeLinejoin: "round",
2440
- strokeWidth: "2",
2441
- d: "M6 15h15m0 4H6m9-8h6m0-4h-6M9 9h1a1 1 0 1 1-1 1V7.5a2 2 0 0 1 2-2M3 9h1a1 1 0 1 1-1 1V7.5a2 2 0 0 1 2-2"
2442
- }
2443
- ) });
2444
- }
2445
- function oo() {
2446
- return /* @__PURE__ */ i(
2447
- "svg",
2448
- {
2449
- xmlns: "http://www.w3.org/2000/svg",
2450
- xmlnsXlink: "http://www.w3.org/1999/xlink",
2451
- "aria-hidden": "true",
2452
- role: "img",
2453
- className: "richtext-w-4 richtext-h-4",
2454
- width: "1em",
2455
- height: "1em",
2456
- viewBox: "0 0 24 24",
2457
- children: /* @__PURE__ */ i(
2458
- "path",
2459
- {
2460
- fill: "none",
2461
- stroke: "currentColor",
2462
- strokeLinecap: "round",
2463
- strokeLinejoin: "round",
2464
- strokeWidth: "1.5",
2465
- d: "M5.5 3c1.404 0 2.107 0 2.611.38c.219.164.406.375.552.62C9 4.568 9 5.358 9 6.938v10.125c0 1.58 0 2.37-.337 2.937a2.1 2.1 0 0 1-.552.621c-.504.38-1.207.38-2.611.38s-2.107 0-2.611-.38a2.1 2.1 0 0 1-.552-.62C2 19.432 2 18.642 2 17.062V6.938c0-1.58 0-2.37.337-2.938a2.1 2.1 0 0 1 .552-.62C3.393 3 4.096 3 5.5 3M20 11.938v5.124c0 1.58 0 2.37-.337 2.938a2.1 2.1 0 0 1-.552.62c-.504.38-1.207.38-2.611.38s-2.107 0-2.611-.38a2.1 2.1 0 0 1-.552-.62C13 19.433 13 18.642 13 17.063V6.938c0-1.58 0-2.37.337-2.938M22 9l-6-6m6 0l-6 6",
2466
- color: "currentColor"
2467
- }
2468
- )
2469
- }
2470
- );
2471
- }
2472
- function no() {
2473
- return /* @__PURE__ */ i(
2474
- "svg",
2475
- {
2476
- xmlns: "http://www.w3.org/2000/svg",
2477
- xmlnsXlink: "http://www.w3.org/1999/xlink",
2478
- "aria-hidden": "true",
2479
- role: "img",
2480
- className: "richtext-w-4 richtext-h-4",
2481
- width: "1em",
2482
- height: "1em",
2483
- viewBox: "0 0 24 24",
2484
- children: /* @__PURE__ */ i(
2485
- "path",
2486
- {
2487
- fill: "none",
2488
- stroke: "currentColor",
2489
- strokeLinecap: "round",
2490
- strokeLinejoin: "round",
2491
- strokeWidth: "1.5",
2492
- d: "M21 18.5c0 1.404 0 2.107-.38 2.611a2.1 2.1 0 0 1-.62.552c-.567.337-1.358.337-2.937.337H6.938c-1.58 0-2.37 0-2.938-.337a2.1 2.1 0 0 1-.62-.552C3 20.607 3 19.904 3 18.5s0-2.107.38-2.611c.163-.218.374-.406.62-.552C4.567 15 5.357 15 6.938 15h10.125c1.58 0 2.37 0 2.937.337c.246.146.457.334.62.552c.38.504.38 1.207.38 2.611M12.063 4H6.937C5.358 4 4.568 4 4 4.337a2.1 2.1 0 0 0-.62.552C3 5.393 3 6.096 3 7.5s0 2.107.38 2.611c.163.218.374.406.62.552C4.567 11 5.357 11 6.938 11h10.125c1.58 0 2.37 0 2.937-.337M21 8l-6-6m6 0l-6 6",
2493
- color: "currentColor"
2494
- }
2495
- )
2496
- }
2497
- );
2498
- }
2499
- function io(e) {
2500
- return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...e, children: /* @__PURE__ */ i(
2501
- "path",
2502
- {
2503
- fill: "currentColor",
2504
- d: "M14 2H6a2 2 0 0 0-2 2v16c0 1.11.89 2 2 2h12c1.11 0 2-.89 2-2V8zm4 18H6V4h7v5h5zm-.65-10l-2.1 9h-1.4l-1.8-6.79l-1.8 6.79h-1.4l-2.2-9h1.5l1.4 6.81l1.8-6.81h1.3l1.8 6.81l1.4-6.81z"
2505
- }
2506
- ) });
2507
- }
2508
- function so(e) {
2509
- return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...e, children: /* @__PURE__ */ i(
2510
- "path",
2511
- {
2512
- fill: "currentColor",
2513
- d: "M21 22H3v-2h18zm0-18H3V2h18zm-11 9.7h4l-2-5.4zM11.2 6h1.7l4.7 12h-2l-.9-2.6H9.4L8.5 18h-2z"
2514
- }
2515
- ) });
2516
- }
2517
- function co(e) {
2518
- return /* @__PURE__ */ i(
2519
- "svg",
2520
- {
2521
- xmlns: "http://www.w3.org/2000/svg",
2522
- xmlnsXlink: "http://www.w3.org/1999/xlink",
2523
- "aria-hidden": "true",
2524
- role: "img",
2525
- width: "1em",
2526
- height: "1em",
2527
- viewBox: "0 0 48 48",
2528
- ...e,
2529
- children: /* @__PURE__ */ i(
2530
- "path",
2531
- {
2532
- fill: "currentColor",
2533
- stroke: "currentColor",
2534
- strokeLinejoin: "round",
2535
- strokeWidth: 4,
2536
- d: "M36 19L24 31L12 19z"
2537
- }
2538
- )
2539
- }
2540
- );
2541
- }
2542
- function ao(e) {
2543
- return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...e, children: /* @__PURE__ */ i("path", { fill: "currentColor", d: "M9 7v10h6v-2h-4V7z" }) });
2544
- }
2545
- function lo(e) {
2546
- return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...e, children: /* @__PURE__ */ i(
2547
- "path",
2548
- {
2549
- fill: "currentColor",
2550
- d: "M9 7c-1.1 0-2 .9-2 2v8h2V9h2v7h2V9h2v8h2V9a2 2 0 0 0-2-2z"
2551
- }
2552
- ) });
2553
- }
2554
- function uo(e) {
2555
- return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...e, children: /* @__PURE__ */ i(
2556
- "path",
2557
- {
2558
- fill: "currentColor",
2559
- d: "M11 7c-1.1 0-2 .9-2 2v2a2 2 0 0 0 2 2h2v2H9v2h4c1.11 0 2-.89 2-2v-2a2 2 0 0 0-2-2h-2V9h4V7z"
2560
- }
2561
- ) });
2562
- }
2563
- function ho() {
2564
- return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ i(
2565
- "path",
2566
- {
2567
- fill: "currentColor",
2568
- d: "M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6l1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6l-1.4-1.4z"
2569
- }
2570
- ) });
2571
- }
2572
- function mo() {
2573
- return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ i("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M14 4h4a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1m-9 8h4m-2-2v4" }) });
2574
- }
2575
- function po() {
2576
- return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ i("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M6 4h4a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1m9 8h4m-2-2v4" }) });
2577
- }
2578
- function go() {
2579
- return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ i("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M12 21v-4m0-4V9m0-4V3m-2 18h4M8 5v4h11l2-2l-2-2zm6 8v4H6l-2-2l2-2z" }) });
2580
- }
2581
- function fo() {
2582
- return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ i("path", { fill: "currentColor", d: "M23.943 19.806a.2.2 0 0 0-.168-.034c-1.26-1.855-2.873-3.61-4.419-5.315l-.252-.284c-.001-.073-.067-.12-.134-.15l-.084-.084c-.05-.1-.169-.167-.286-.1c-.47.234-.907.585-1.327.919c-.554.434-1.109.87-1.63 1.354a5 5 0 0 0-.588.618c-.084.117-.017.217.084.267c-.37.368-.74.736-1.109 1.12a.2.2 0 0 0-.05.134c0 .05.033.1.067.117l.655.502v.016c.924.92 2.554 2.173 4.285 3.527c.251.201.52.402.773.602c.117.134.234.285.335.418c.05.066.169.084.236.033c.033.034.084.067.118.1a.24.24 0 0 0 .1.034a.15.15 0 0 0 .135-.066a.24.24 0 0 0 .033-.1c.017 0 .017.016.034.016a.2.2 0 0 0 .134-.05l3.058-3.327c.12-.116.014-.267 0-.267m-7.628-.134l-1.546-1.17l-.15-.1c-.035-.017-.068-.05-.102-.067l-.117-.1c.66-.66 1.33-1.308 2-1.956c-.488.484-1.463 1.906-1.261 2.373c.002 0 .018.042.067.084zm4.1 3.126l-1.277-.97a27 27 0 0 0-1.58-1.504c.69.518 1.277.97 1.361 1.053c.673.585.638.485 1.093.87l.554.4c-.074.103-.151.148-.151.151m.336.25l-.034-.016a1 1 0 0 0 .152-.117zM.588 3.476c.033.217.084.435.117.636c.201 1.103.403 2.106.772 2.858l.152.568c.05.217.134.485.219.552a67 67 0 0 0 3.578 2.942a.18.18 0 0 0 .219 0s0 .016.016.016a.15.15 0 0 0 .118.05a.2.2 0 0 0 .134-.05c1.798-1.989 3.142-3.627 4.1-4.998c.068-.066.084-.167.084-.25c.067-.067.118-.151.185-.201c.067-.067.067-.184 0-.235l-.017-.016c0-.033-.017-.084-.05-.1c-.42-.401-.722-.685-1.042-.986a94 94 0 0 1-2.352-2.273c-.017-.017-.034-.034-.067-.034c-.336-.117-1.025-.234-1.882-.385c-1.277-.216-3.008-.517-4.57-.986c0 0-.101 0-.118.017l-.05.05C.05.714.022.707 0 .718c.017.1.017.167.05.284c0 .033.068.301.068.334zm7.19 4.78l-.033.034a.036.036 0 0 1 .033-.034M6.553 2.238c.101.1.521.502.622.585c-.437-.2-1.529-.702-2.034-.869c.505.1 1.194.201 1.412.284M.79 1.403c.252.434.454 1.939.655 3.41c-.118-.469-.201-.936-.302-1.372C.992 2.673.84 1.988.638 1.386c.124 0 .152.021.152.017m-.286-.369c0-.016 0-.033-.017-.033c.085 0 .135.017.202.05c0 .006-.145-.017-.185-.017m23.17-.217c.017-.066-.336-.367-.219-.384c.253-.017.253-.401 0-.401c-.335.017-.688.1-1.008.15c-.587.117-1.192.234-1.78.367a80 80 0 0 0-3.949.937c-.403.117-.857.2-1.243.401c-.135.067-.118.2-.05.284c-.034.017-.051.017-.085.034c-.117.017-.218.034-.335.05c-.102.017-.152.1-.135.2c0 .017.017.05.017.067c-.706.936-1.496 1.923-2.353 2.976c-.84.969-1.73 1.989-2.62 3.042c-2.84 3.31-6.05 7.07-9.594 10.38a.16.16 0 0 0 0 .234c.016.016.033.033.05.033c-.05.05-.101.085-.152.134q-.05.05-.05.1a.4.4 0 0 0-.067.084c-.067.067-.067.184.017.234c.067.066.185.066.235-.017c.017-.017.017-.033.033-.033a.265.265 0 0 1 .37 0c.202.217.404.435.588.618l-.42-.35c-.067-.067-.184-.05-.234.016c-.068.066-.051.184.016.234l4.469 3.727c.034.034.067.034.118.034a.15.15 0 0 0 .117-.05l.101-.1c.017.016.05.016.067.016c.05 0 .084-.016.118-.05c6.049-6.05 10.922-10.614 16.5-14.693c.05-.033.067-.1.067-.15c.067 0 .118-.05.15-.117c1.026-3.125 1.228-5.9 1.295-7.27c0-.059.016-.038.016-.068c.017-.033.017-.05.017-.05a.98.98 0 0 0-.067-.619m-10.82 4.915c.268-.301.537-.619.806-.903c-1.73 2.273-4.603 5.767-8.67 9.929c2.773-3.059 5.562-6.218 7.864-9.026M5.14 23.466c-.016-.017-.016-.017 0-.017zm2.504-2.156c.135-.15.27-.284.42-.434c0 0 0 .016.017.016c-.224.198-.433.418-.437.418m.69-.668c.099-.1.14-.173.284-.318c.992-1.02 2.017-2.04 3.059-3.076l.016-.016c.252-.2.555-.418.824-.619a228 228 0 0 0-4.184 4.029M14.852 3.91c-.554.719-1.176 1.671-1.697 2.423c-1.646 2.374-6.94 8.174-7.057 8.274a1190 1190 0 0 1-4.839 4.597l-.1.1c-.085-.1-.085-.25.016-.334C8.652 11.966 13.19 6.133 15.021 3.576c-.05.116-.084.216-.168.334zm2.906 3.427c-.671-.386-.99-.987-.806-1.572l.05-.2a.8.8 0 0 1 .085-.167a1.9 1.9 0 0 1 .756-.703c.016 0 .033 0 .05-.016c-.017-.034-.017-.084-.017-.134c.017-.1.085-.167.202-.167c.202 0 .824.184 1.059.384c.067.05.134.117.202.184c.084.1.218.268.285.401c.034.017.067.184.118.268c.033.134.067.284.05.418c-.017.016 0 .116-.017.116a1.6 1.6 0 0 1-.218.619c-.03.03.006.012-.05.067a1.2 1.2 0 0 1-.32.334a1.49 1.49 0 0 1-1.26.234a2 2 0 0 0-.169-.066m4.37 1.403c0 .017-.017.05 0 .067c-.034 0-.05.017-.085.034a110 110 0 0 0-3.915 3.025c1.11-.986 2.218-1.989 3.378-2.975c.336-.301.571-.686.638-1.12l.168-1.003v-.033c.085-.201.404-.118.353.1c-.004-.001-.173.795-.537 1.905" }) });
2583
- }
2584
- function xo() {
2585
- return /* @__PURE__ */ z("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 32 32", children: [
2586
- /* @__PURE__ */ i("path", { fill: "currentColor", d: "M30 18v-2h-6v10h2v-4h3v-2h-3v-2zm-11 8h-4V16h4a3.003 3.003 0 0 1 3 3v4a3.003 3.003 0 0 1-3 3m-2-2h2a1 1 0 0 0 1-1v-4a1 1 0 0 0-1-1h-2zm-6-8H6v10h2v-3h3a2.003 2.003 0 0 0 2-2v-3a2 2 0 0 0-2-2m-3 5v-3h3l.001 3z" }),
2587
- /* @__PURE__ */ i("path", { fill: "currentColor", d: "M22 14v-4a.91.91 0 0 0-.3-.7l-7-7A.9.9 0 0 0 14 2H4a2.006 2.006 0 0 0-2 2v24a2 2 0 0 0 2 2h16v-2H4V4h8v6a2.006 2.006 0 0 0 2 2h6v2Zm-8-4V4.4l5.6 5.6Z" })
2588
- ] });
2589
- }
2590
- function bo() {
2591
- return /* @__PURE__ */ z(
2592
- "svg",
2593
- {
2594
- xmlns: "http://www.w3.org/2000/svg",
2595
- width: "1em",
2596
- height: "1em",
2597
- className: "icon",
2598
- viewBox: "0 0 1024 1024",
2599
- children: [
2600
- /* @__PURE__ */ i(
2601
- "path",
2602
- {
2603
- fill: "currentColor",
2604
- d: "M679.253 402.364 618.77 561.015l-60.348-158.651a30.04 30.04 0 0 0-30.447-18.637 29.76 29.76 0 0 0-30.447 18.637l-60.416 158.651-60.416-158.651a30.515 30.515 0 0 0-38.843-17.272 28.945 28.945 0 0 0-17.954 37.547l88.815 233.267c4.369 11.469 15.7 19.115 28.398 19.115a30.31 30.31 0 0 0 28.468-19.115l62.395-163.908 62.396 163.84c4.437 11.605 15.701 19.183 28.4 19.183a30.31 30.31 0 0 0 28.466-19.115l88.747-233.267a28.945 28.945 0 0 0-17.886-37.547 30.447 30.447 0 0 0-38.912 17.272zm219.478 395.605-51.883-29.218c-28.672-16.18-52.224-3.072-52.224 29.082v.273H643.209a29.833 29.833 0 0 0-30.31 29.354c0 16.18 13.584 29.218 30.31 29.218h151.825c1.092 30.516 24.03 43.077 52.224 27.648l51.063-27.989c29.013-15.906 29.15-42.189.41-58.368"
2605
- }
2606
- ),
2607
- /* @__PURE__ */ i(
2608
- "path",
2609
- {
2610
- fill: "currentColor",
2611
- d: "m810.667 913.135-.478.068H201.796c-19.865 0-36.727-11.673-36.727-25.6v-618.36h154.965c51.268 0 92.911-39.39 92.911-87.858v-87.86H810.19c19.797 0 36.522 11.742 36.522 25.669V739.26h61.987V119.262c0-46.421-44.169-84.241-98.51-84.241H328.364l-225.28 194.56v658.09c0 46.285 44.236 84.105 98.713 84.105H810.19c43.759 0 80.554-24.713 93.32-58.573h-92.842zM350.89 94.89v86.562c0 16.11-13.858 29.286-30.925 29.286H216.815L350.959 94.891z"
2612
- }
2613
- )
2614
- ]
2615
- }
2616
- );
2617
- }
2618
- function wo() {
2619
- return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ z("g", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", color: "currentColor", children: [
2620
- /* @__PURE__ */ i("path", { d: "M14.86 22h-4.312c-3.291 0-4.937 0-6.08-.798a4.2 4.2 0 0 1-.863-.805c-.855-1.066-.855-2.6-.855-5.67v-2.545c0-2.963 0-4.445.473-5.628c.761-1.903 2.37-3.403 4.41-4.113C8.9 2 10.49 2 13.667 2c1.816 0 2.723 0 3.448.252c1.166.406 2.085 1.263 2.52 2.35c.27.676.27 1.523.27 3.216V10" }),
2621
- /* @__PURE__ */ i("path", { d: "M2.75 12c0-1.84 1.506-3.333 3.364-3.333c.672 0 1.464.116 2.117-.057a1.67 1.67 0 0 0 1.19-1.179c.174-.647.057-1.432.057-2.098C9.478 3.493 10.984 2 12.84 2m.002 16h2.523m-4.949-4.15c-.126-.8-.281-.801-1.61-.85h-1.01c-.557 0-1.009.448-1.009 1v3c0 .552.452 1 1.01 1h1.816c.39 0 .803-.313.803-.7v-1.1c0-.11-.113-.304-.224-.304H9.068M12.842 13h1.261m0 0h1.262m-1.262 0v4.875M21.251 13h-2.523c-.557 0-1.009.448-1.009 1v1.5m0 0V18m0-2.5h2.523" })
2622
- ] }) });
2265
+ }, Ye = /* @__PURE__ */ Pe(Qe);
2266
+ function A(...e) {
2267
+ return Ye(ye(e));
2623
2268
  }
2624
- function vo() {
2625
- return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ z("g", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", children: [
2626
- /* @__PURE__ */ i("path", { d: "M18 11c0-.818 0-1.57-.152-1.937s-.441-.657-1.02-1.235l-4.736-4.736c-.499-.499-.748-.748-1.058-.896a2 2 0 0 0-.197-.082C10.514 2 10.161 2 9.456 2c-3.245 0-4.868 0-5.967.886a4 4 0 0 0-.603.603C2 4.59 2 6.211 2 9.456V14c0 3.771 0 5.657 1.172 6.828S6.229 22 10 22h8M11 2.5V3c0 2.828 0 4.243.879 5.121C12.757 9 14.172 9 17 9h.5" }),
2627
- /* @__PURE__ */ i("path", { d: "M5 14v2.5M5 19v-2.5M8 14v2.5M8 19v-2.5m-3 0h3m2-2.5h1.25m1.25 0h-1.25m0 0v5m3.25 0v-5l1.75 2.5L18 14v5m2-5v5h2" })
2628
- ] }) });
2629
- }
2630
- function yo() {
2631
- return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 20 20", children: /* @__PURE__ */ i("path", { fill: "currentColor", d: "M6.5 3a.75.75 0 0 1 .697.471l3 7.5a.75.75 0 0 1-1.393.557L7.992 9.5H5.008l-.811 2.028a.75.75 0 0 1-1.393-.556l3-7.5A.75.75 0 0 1 6.5 3m0 2.77L5.608 8h1.784zm8.28-1.55a.75.75 0 1 0-1.06 1.06l.72.72h-3.69a.75.75 0 0 0 0 1.5h3.69l-.72.72a.75.75 0 0 0 1.06 1.06l2-2a.75.75 0 0 0 0-1.06zm0 7.5a.75.75 0 1 0-1.06 1.06l.72.72H3.75a.75.75 0 0 0 0 1.5h10.69l-.72.72a.75.75 0 1 0 1.06 1.06l2-2a.75.75 0 0 0 0-1.06z" }) });
2632
- }
2633
- function Co() {
2634
- return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 48 48", children: /* @__PURE__ */ z("g", { fill: "none", stroke: "currentColor", strokeWidth: "4", children: [
2635
- /* @__PURE__ */ i("circle", { cx: "10", cy: "24", r: "4" }),
2636
- /* @__PURE__ */ i("circle", { cx: "38", cy: "10", r: "4" }),
2637
- /* @__PURE__ */ i("circle", { cx: "38", cy: "24", r: "4" }),
2638
- /* @__PURE__ */ i("circle", { cx: "38", cy: "38", r: "4" }),
2639
- /* @__PURE__ */ i("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M34 38H22V10h12M14 24h20" })
2640
- ] }) });
2641
- }
2642
- function So() {
2643
- return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 20 20", children: /* @__PURE__ */ i("path", { fill: "currentColor", d: "M13.5 3a.75.75 0 0 0-.697.471l-3 7.5a.75.75 0 0 0 1.393.557l.812-2.028h2.984l.811 2.028a.75.75 0 0 0 1.393-.556l-3-7.5A.75.75 0 0 0 13.5 3m0 2.77L14.392 8h-1.784zM5.22 4.22a.75.75 0 0 1 1.06 1.06L5.56 6h3.69a.75.75 0 0 1 0 1.5H5.56l.72.72a.75.75 0 0 1-1.06 1.06l-2-2a.75.75 0 0 1 0-1.06zm0 7.5a.75.75 0 0 1 1.06 1.06l-.72.72h10.69a.75.75 0 0 1 0 1.5H5.56l.72.72a.75.75 0 1 1-1.06 1.06l-2-2a.75.75 0 0 1 0-1.06z" }) });
2644
- }
2645
- function zo() {
2646
- return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ i("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "m3 21l7.548-7.548M21 3l-7.548 7.548m0 0L8 3H3l7.548 10.452m2.904-2.904L21 21h-5l-5.452-7.548", color: "currentColor" }) });
2647
- }
2648
- function ko() {
2649
- return /* @__PURE__ */ i(
2650
- "svg",
2651
- {
2652
- xmlns: "http://www.w3.org/2000/svg",
2653
- xmlnsXlink: "http://www.w3.org/1999/xlink",
2654
- "aria-hidden": "true",
2655
- role: "img",
2656
- width: "1em",
2657
- height: "1em",
2658
- viewBox: "0 0 24 24",
2659
- children: /* @__PURE__ */ i(
2660
- "path",
2661
- {
2662
- fill: "currentColor",
2663
- d: "M14 2H6a2 2 0 0 0-2 2v16c0 1.11.89 2 2 2h12c1.11 0 2-.89 2-2V8zm4 18H6V4h7v5h5zm-.65-10l-2.1 9h-1.4l-1.8-6.79l-1.8 6.79h-1.4l-2.2-9h1.5l1.4 6.81l1.8-6.81h1.3l1.8 6.81l1.4-6.81z"
2664
- }
2665
- )
2666
- }
2667
- );
2668
- }
2669
- const Mo = {
2670
- Bold: gr,
2671
- LoaderCircle: pr,
2672
- Italic: mr,
2673
- Underline: hr,
2674
- Quote: ur,
2675
- TextQuote: ro,
2676
- Strikethrough: dr,
2677
- Minus: lr,
2678
- Eraser: ar,
2679
- PaintRoller: cr,
2680
- Redo2: sr,
2681
- Undo2: ir,
2682
- AlignCenter: vr,
2683
- AlignJustify: wr,
2684
- AlignLeft: br,
2685
- AlignRight: xr,
2686
- ChevronDown: ie,
2687
- Subscript: nr,
2688
- Superscript: or,
2689
- Code: rr,
2690
- Code2: tr,
2691
- Type: er,
2692
- IndentIncrease: Zt,
2693
- IndentDecrease: Yt,
2694
- List: Qt,
2695
- ListOrdered: Kt,
2696
- ListTodo: Jt,
2697
- Link: qt,
2698
- ImageUp: Xt,
2699
- Video: Dt,
2700
- Maximize: Ft,
2701
- Minimize: Ut,
2702
- Table: _t,
2703
- Sparkles: $t,
2704
- Pencil: Ot,
2705
- Unlink: Wt,
2706
- BetweenHorizonalEnd: Gt,
2707
- BetweenHorizonalStart: Bt,
2708
- BetweenVerticalStart: jt,
2709
- BetweenVerticalEnd: Pt,
2710
- TableCellsMerge: Ht,
2711
- TableCellsSplit: It,
2712
- Trash2: Vt,
2713
- Trash: Tt,
2714
- Replace: xe,
2715
- ChevronsUpDown: Rt,
2716
- LineHeight: so,
2717
- Word: io,
2718
- HeadingParagraph: At,
2719
- Heading1: Nt,
2720
- Heading2: Et,
2721
- Heading3: Lt,
2722
- Heading4: Mt,
2723
- Heading5: kt,
2724
- Heading6: zt,
2725
- Columns2: be,
2726
- Columns3: St,
2727
- Columns4: Ct,
2728
- Plus: yt,
2729
- Grip: vt,
2730
- Copy: wt,
2731
- Clipboard: bt,
2732
- PanelLeft: xt,
2733
- PanelRight: ft,
2734
- Columns: be,
2735
- Iframe: gt,
2736
- MenuDown: co,
2737
- SizeS: uo,
2738
- SizeM: lo,
2739
- SizeL: ao,
2740
- AspectRatio: to,
2741
- Emoji: pt,
2742
- DeleteColumn: oo,
2743
- DeleteRow: no,
2744
- SearchAndReplace: xe,
2745
- EmojiIcon: mt,
2746
- KatexIcon: ht,
2747
- ExportPdf: xo,
2748
- ExportWord: bo,
2749
- ImportWord: ko,
2750
- ColumnAddLeft: mo,
2751
- ColumnAddRight: po,
2752
- BookMarked: ut,
2753
- Excalidraw: fo,
2754
- ZoomIn: dt,
2755
- ZoomOut: lt,
2756
- Settings: at,
2757
- Eye: ct,
2758
- TextDirection: go,
2759
- LeftToRight: yo,
2760
- RightToLeft: So,
2761
- Attachment: st,
2762
- GifIcon: wo,
2763
- ChevronUp: Le,
2764
- Crop: it,
2765
- Mermaid: Co,
2766
- Twitter: zo,
2767
- CodeView: ho,
2768
- FlipX: nt,
2769
- FlipY: ot,
2770
- PencilRuler: rt,
2771
- WrapText: tt,
2772
- Loader: et,
2773
- X: Ze,
2774
- Html: vo,
2775
- ExternalLink: Ye
2776
- }, Ce = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Se = Ee, Lo = (e, r) => (t) => {
2777
- var o;
2778
- if ((r == null ? void 0 : r.variants) == null) return Se(e, t == null ? void 0 : t.class, t == null ? void 0 : t.className);
2779
- const { variants: s, defaultVariants: n } = r, a = Object.keys(s).map((d) => {
2780
- const m = t == null ? void 0 : t[d], p = n == null ? void 0 : n[d];
2781
- if (m === null) return null;
2782
- const l = Ce(m) || Ce(p);
2783
- return s[d][l];
2784
- }), c = t && Object.entries(t).reduce((d, m) => {
2785
- let [p, l] = m;
2786
- return l === void 0 || (d[p] = l), d;
2787
- }, {}), u = r == null || (o = r.compoundVariants) === null || o === void 0 ? void 0 : o.reduce((d, m) => {
2788
- let { class: p, className: l, ...f } = m;
2789
- return Object.entries(f).every((C) => {
2790
- let [b, g] = C;
2791
- return Array.isArray(g) ? g.includes({
2792
- ...n,
2793
- ...c
2794
- }[b]) : {
2795
- ...n,
2796
- ...c
2797
- }[b] === g;
2798
- }) ? [
2799
- ...d,
2800
- p,
2801
- l
2802
- ] : d;
2803
- }, []);
2804
- return Se(e, a, u, t == null ? void 0 : t.class, t == null ? void 0 : t.className);
2805
- }, Eo = Lo(
2806
- "richtext-inline-flex richtext-items-center richtext-justify-center richtext-rounded-md richtext-text-sm richtext-font-medium richtext-ring-offset-background richtext-transition-colors hover:richtext-bg-muted hover:richtext-text-muted-foreground focus-visible:richtext-outline-none focus-visible:richtext-ring-2 focus-visible:richtext-ring-ring focus-visible:richtext-ring-offset-1 disabled:richtext-pointer-events-none disabled:richtext-opacity-50 data-[state=on]:richtext-bg-accent data-[state=on]:richtext-text-accent-foreground",
2807
- {
2808
- variants: {
2809
- variant: {
2810
- default: "richtext-bg-transparent",
2811
- outline: "richtext-border richtext-border-input richtext-bg-transparent hover:richtext-bg-accent hover:richtext-text-accent-foreground"
2812
- },
2813
- size: {
2814
- default: "richtext-h-10 richtext-px-3",
2815
- sm: "richtext-h-9 richtext-px-2",
2816
- lg: "richtext-h-11 richtext-px-5"
2817
- }
2818
- },
2819
- defaultVariants: {
2820
- variant: "default",
2821
- size: "default"
2822
- }
2823
- }
2824
- ), Ie = N.forwardRef(({ className: e, variant: r, size: t, ...o }, s) => /* @__PURE__ */ i(
2825
- Me.Root,
2826
- {
2827
- ref: s,
2828
- className: k(Eo({ variant: r, size: t, className: e })),
2829
- ...o
2830
- }
2831
- ));
2832
- Ie.displayName = Me.Root.displayName;
2833
- const rn = $.Provider, No = $.Root, Ao = $.Trigger, He = N.forwardRef(({ className: e, sideOffset: r = 4, ...t }, o) => /* @__PURE__ */ i(
2834
- $.Content,
2269
+ const dt = b.Root, pt = b.Value, De = E.forwardRef(({ className: e, children: t, ...r }, o) => /* @__PURE__ */ X(
2270
+ b.Trigger,
2835
2271
  {
2836
- "data-richtext-portal": !0,
2837
2272
  ref: o,
2838
- sideOffset: r,
2839
- className: k(
2840
- "richtext-z-50 richtext-overflow-hidden richtext-rounded-md richtext-bg-primary richtext-px-3 richtext-py-1.5 richtext-text-sm richtext-text-primary-foreground richtext-shadow-md richtext-animate-in richtext-fade-in-0 richtext-zoom-in-95 data-[side=bottom]:richtext-slide-in-from-top-2 data-[side=left]:richtext-slide-in-from-right-2 data-[side=right]:richtext-slide-in-from-left-2 data-[side=top]:richtext-slide-in-from-bottom-2 !richtext-border-none",
2841
- e
2842
- ),
2843
- ...t
2844
- }
2845
- ));
2846
- He.displayName = $.Content.displayName;
2847
- const on = v.Root, nn = v.Value, Ro = N.forwardRef(({ className: e, children: r, ...t }, o) => /* @__PURE__ */ z(
2848
- v.Trigger,
2849
- {
2850
- ref: o,
2851
- className: k(
2273
+ className: A(
2852
2274
  "richtext-flex richtext-h-10 richtext-w-full richtext-items-center richtext-justify-between richtext-rounded-md richtext-border richtext-border-input richtext-bg-background richtext-px-3 richtext-py-2 richtext-text-sm richtext-ring-offset-background placeholder:richtext-text-muted-foreground focus:richtext-outline-none focus:richtext-ring-2 focus:richtext-ring-ring focus:richtext-ring-offset-1 disabled:richtext-cursor-not-allowed disabled:richtext-opacity-50 [&>span]:richtext-line-clamp-1",
2853
2275
  e
2854
2276
  ),
2855
- ...t,
2277
+ ...r,
2856
2278
  children: [
2857
- r,
2858
- /* @__PURE__ */ i(v.Icon, { asChild: !0, children: /* @__PURE__ */ i(ie, { className: "richtext-size-4 richtext-opacity-50" }) })
2279
+ t,
2280
+ /* @__PURE__ */ m(b.Icon, { asChild: !0, children: /* @__PURE__ */ m(se, { className: "richtext-size-4 richtext-opacity-50" }) })
2859
2281
  ]
2860
2282
  }
2861
2283
  ));
2862
- Ro.displayName = v.Trigger.displayName;
2863
- const Pe = N.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ i(
2864
- v.ScrollUpButton,
2284
+ De.displayName = b.Trigger.displayName;
2285
+ const pe = E.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ m(
2286
+ b.ScrollUpButton,
2865
2287
  {
2866
- ref: t,
2867
- className: k(
2288
+ ref: r,
2289
+ className: A(
2868
2290
  "richtext-flex richtext-cursor-default richtext-items-center richtext-justify-center richtext-py-1",
2869
2291
  e
2870
2292
  ),
2871
- ...r,
2872
- children: /* @__PURE__ */ i(Le, { className: "richtext-size-4" })
2293
+ ...t,
2294
+ children: /* @__PURE__ */ m(me, { className: "richtext-size-4" })
2873
2295
  }
2874
2296
  ));
2875
- Pe.displayName = v.ScrollUpButton.displayName;
2876
- const je = N.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ i(
2877
- v.ScrollDownButton,
2297
+ pe.displayName = b.ScrollUpButton.displayName;
2298
+ const ue = E.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ m(
2299
+ b.ScrollDownButton,
2878
2300
  {
2879
- ref: t,
2880
- className: k(
2301
+ ref: r,
2302
+ className: A(
2881
2303
  "richtext-flex richtext-cursor-default richtext-items-center richtext-justify-center richtext-py-1",
2882
2304
  e
2883
2305
  ),
2884
- ...r,
2885
- children: /* @__PURE__ */ i(ie, { className: "richtext-size-4" })
2306
+ ...t,
2307
+ children: /* @__PURE__ */ m(se, { className: "richtext-size-4" })
2886
2308
  }
2887
2309
  ));
2888
- je.displayName = v.ScrollDownButton.displayName;
2889
- const To = N.forwardRef(({ className: e, children: r, position: t = "popper", ...o }, s) => /* @__PURE__ */ i(v.Portal, { children: /* @__PURE__ */ z(
2890
- v.Content,
2310
+ ue.displayName = b.ScrollDownButton.displayName;
2311
+ const et = E.forwardRef(({ className: e, children: t, position: r = "popper", ...o }, a) => /* @__PURE__ */ m(b.Portal, { children: /* @__PURE__ */ X(
2312
+ b.Content,
2891
2313
  {
2892
2314
  "data-richtext-portal": !0,
2893
- position: t,
2894
- ref: s,
2895
- className: k(
2315
+ position: r,
2316
+ ref: a,
2317
+ className: A(
2896
2318
  "richtext-relative richtext-z-50 richtext-max-h-60 richtext-overflow-y-auto richtext-min-w-[8rem] richtext-overflow-hidden richtext-rounded-md richtext-border !richtext-border-border richtext-bg-popover richtext-text-popover-foreground richtext-shadow-md data-[state=open]:richtext-animate-in data-[state=closed]:richtext-animate-out data-[state=closed]:richtext-fade-out-0 data-[state=open]:richtext-fade-in-0 data-[state=closed]:richtext-zoom-out-95 data-[state=open]:richtext-zoom-in-95 data-[side=bottom]:richtext-slide-in-from-top-2 data-[side=left]:richtext-slide-in-from-right-2 data-[side=right]:richtext-slide-in-from-left-2 data-[side=top]:richtext-slide-in-from-bottom-2",
2897
- t === "popper" && "data-[side=bottom]:richtext-translate-y-1 data-[side=left]:richtext--translate-x-1 data-[side=right]:richtext-translate-x-1 data-[side=top]:richtext--translate-y-1",
2319
+ r === "popper" && "data-[side=bottom]:richtext-translate-y-1 data-[side=left]:richtext--translate-x-1 data-[side=right]:richtext-translate-x-1 data-[side=top]:richtext--translate-y-1",
2898
2320
  e
2899
2321
  ),
2900
2322
  ...o,
2901
2323
  children: [
2902
- /* @__PURE__ */ i(Pe, {}),
2903
- /* @__PURE__ */ i(
2904
- v.Viewport,
2324
+ /* @__PURE__ */ m(pe, {}),
2325
+ /* @__PURE__ */ m(
2326
+ b.Viewport,
2905
2327
  {
2906
- className: k(
2328
+ className: A(
2907
2329
  "richtext-p-1",
2908
- t === "popper" && "richtext-h-[var(--radix-select-trigger-height)] richtext-w-full richtext-min-w-[var(--radix-select-trigger-width)]"
2330
+ r === "popper" && "richtext-h-[var(--radix-select-trigger-height)] richtext-w-full richtext-min-w-[var(--radix-select-trigger-width)]"
2909
2331
  ),
2910
- children: r
2332
+ children: t
2911
2333
  }
2912
2334
  ),
2913
- /* @__PURE__ */ i(je, {})
2335
+ /* @__PURE__ */ m(ue, {})
2914
2336
  ]
2915
2337
  }
2916
2338
  ) }));
2917
- To.displayName = v.Content.displayName;
2918
- const Vo = N.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ i(
2919
- v.Label,
2339
+ et.displayName = b.Content.displayName;
2340
+ const tt = E.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ m(
2341
+ b.Label,
2920
2342
  {
2921
- className: k("richtext-py-1.5 richtext-pl-8 richtext-pr-2 richtext-text-sm richtext-font-semibold", e),
2922
- ref: t,
2923
- ...r
2343
+ className: A("richtext-py-1.5 richtext-pl-8 richtext-pr-2 richtext-text-sm richtext-font-semibold", e),
2344
+ ref: r,
2345
+ ...t
2924
2346
  }
2925
2347
  ));
2926
- Vo.displayName = v.Label.displayName;
2927
- const Io = N.forwardRef(({ className: e, children: r, ...t }, o) => /* @__PURE__ */ z(
2928
- v.Item,
2348
+ tt.displayName = b.Label.displayName;
2349
+ const rt = E.forwardRef(({ className: e, children: t, ...r }, o) => /* @__PURE__ */ X(
2350
+ b.Item,
2929
2351
  {
2930
2352
  ref: o,
2931
- className: k(
2353
+ className: A(
2932
2354
  "richtext-relative richtext-flex richtext-w-full richtext-cursor-default richtext-select-none richtext-items-center richtext-rounded-sm richtext-py-1.5 richtext-pl-8 richtext-pr-2 richtext-text-sm richtext-outline-none focus:richtext-bg-accent focus:richtext-text-accent-foreground data-[disabled]:richtext-pointer-events-none data-[disabled]:richtext-opacity-50",
2933
2355
  e
2934
2356
  ),
2935
- ...t,
2357
+ ...r,
2936
2358
  children: [
2937
- /* @__PURE__ */ i("span", { className: "richtext-absolute richtext-left-2 richtext-flex richtext-size-3.5 richtext-items-center richtext-justify-center", children: /* @__PURE__ */ i(v.ItemIndicator, { children: /* @__PURE__ */ i(fr, { className: "richtext-size-4" }) }) }),
2938
- /* @__PURE__ */ i(v.ItemText, { children: r })
2359
+ /* @__PURE__ */ m("span", { className: "richtext-absolute richtext-left-2 richtext-flex richtext-size-3.5 richtext-items-center richtext-justify-center", children: /* @__PURE__ */ m(b.ItemIndicator, { children: /* @__PURE__ */ m(xe, { className: "richtext-size-4" }) }) }),
2360
+ /* @__PURE__ */ m(b.ItemText, { children: t })
2939
2361
  ]
2940
2362
  }
2941
2363
  ));
2942
- Io.displayName = v.Item.displayName;
2943
- const Ho = N.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ i(
2944
- v.Separator,
2364
+ rt.displayName = b.Item.displayName;
2365
+ const ot = E.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ m(
2366
+ b.Separator,
2945
2367
  {
2946
- className: k("richtext--mx-1 richtext-my-1 richtext-h-px richtext-bg-muted", e),
2947
- ref: t,
2948
- ...r
2368
+ className: A("richtext--mx-1 richtext-my-1 richtext-h-px richtext-bg-muted", e),
2369
+ ref: r,
2370
+ ...t
2949
2371
  }
2950
2372
  ));
2951
- Ho.displayName = v.Separator.displayName;
2952
- function ce(e) {
2953
- function r() {
2954
- const n = te(e), a = E(() => n.current, []), c = te(/* @__PURE__ */ new Set()), u = E((m) => {
2955
- n.current = { ...n.current, ...m }, c.current.forEach((p) => p());
2956
- }, []), d = E((m) => (c.current.add(m), () => c.current.delete(m)), []);
2373
+ ot.displayName = b.Separator.displayName;
2374
+ function be(e) {
2375
+ function t() {
2376
+ const n = re(e), i = F(() => n.current, []), s = re(/* @__PURE__ */ new Set()), p = F((h) => {
2377
+ n.current = { ...n.current, ...h }, s.current.forEach((y) => y());
2378
+ }, []), f = F((h) => (s.current.add(h), () => s.current.delete(h)), []);
2957
2379
  return {
2958
- get: a,
2959
- set: u,
2960
- subscribe: d
2380
+ get: i,
2381
+ set: p,
2382
+ subscribe: f
2961
2383
  };
2962
2384
  }
2963
- const t = Fe(null);
2385
+ const r = he(null);
2964
2386
  function o({ children: n }) {
2965
- return /* @__PURE__ */ i(t.Provider, { value: r(), children: n });
2387
+ return /* @__PURE__ */ m(r.Provider, { value: t(), children: n });
2966
2388
  }
2967
- function s(n) {
2968
- const a = De(t);
2969
- if (!a)
2389
+ function a(n) {
2390
+ const i = fe(r);
2391
+ if (!i)
2970
2392
  throw new Error("Store not found");
2971
- return [Xe(
2972
- a.subscribe,
2973
- () => n(a.get()),
2393
+ return [ge(
2394
+ i.subscribe,
2395
+ () => n(i.get()),
2974
2396
  () => n(e)
2975
- ), a.set];
2397
+ ), i.set];
2976
2398
  }
2977
2399
  return {
2978
2400
  Provider: o,
2979
- useStore: s
2401
+ useStore: a
2980
2402
  };
2981
2403
  }
2982
- ce({
2404
+ be({
2983
2405
  value: !1
2984
2406
  });
2985
- ce({
2407
+ be({
2986
2408
  value: !1
2987
2409
  });
2988
- const { Provider: Po, useStore: Be } = ce({
2989
- value: !1
2990
- });
2991
- function sn() {
2992
- const [e] = Be((r) => r.value);
2993
- return e;
2994
- }
2995
- const ze = "data-rc-order", ke = "data-rc-priority", jo = "rc-util-key", oe = /* @__PURE__ */ new Map();
2996
- function Bo(e, r) {
2997
- if (!e)
2998
- return !1;
2999
- if (e.contains)
3000
- return e.contains(r);
3001
- let t = r;
3002
- for (; t; ) {
3003
- if (t === e)
3004
- return !0;
3005
- t = t.parentNode;
3006
- }
3007
- return !1;
3008
- }
3009
- function Ge({ mark: e } = {}) {
3010
- return e ? e.startsWith("data-") ? e : `data-${e}` : jo;
3011
- }
3012
- function ae(e) {
3013
- return e.attachTo ? e.attachTo : document.querySelector("head") || document.body;
3014
- }
3015
- function Go(e) {
3016
- return e === "queue" ? "prependQueue" : e ? "prepend" : "append";
3017
- }
3018
- function We(e) {
3019
- return [...(oe.get(e) || e).children].filter(
3020
- (r) => r.tagName === "STYLE"
3021
- );
3022
- }
3023
- function Oe(e, r = {}) {
3024
- const { csp: t, prepend: o, priority: s = 0 } = r, n = Go(o), a = n === "prependQueue", c = document.createElement("style");
3025
- c.setAttribute(ze, n), a && s && c.setAttribute(ke, `${s}`), t != null && t.nonce && (c.nonce = t == null ? void 0 : t.nonce), c.innerHTML = e;
3026
- const u = ae(r), { firstChild: d } = u;
3027
- if (o) {
3028
- if (a) {
3029
- const m = We(u).filter((p) => {
3030
- if (!["prepend", "prependQueue"].includes(p.getAttribute(ze)))
3031
- return !1;
3032
- const l = Number(p.getAttribute(ke) || 0);
3033
- return s >= l;
3034
- });
3035
- if (m.length > 0)
3036
- return u.insertBefore(c, m.at(-1).nextSibling), c;
3037
- }
3038
- d.before(c);
3039
- } else
3040
- u.append(c);
3041
- return c;
3042
- }
3043
- function $e(e, r = {}) {
3044
- const t = ae(r);
3045
- return We(t).find((o) => o.getAttribute(Ge(r)) === e);
3046
- }
3047
- function Wo(e, r = {}) {
3048
- const t = $e(e, r);
3049
- t && t.remove();
3050
- }
3051
- function Oo(e, r) {
3052
- const t = oe.get(e);
3053
- if (!t || !Bo(document, t)) {
3054
- const o = Oe("", r), { parentNode: s } = o;
3055
- oe.set(e, s), o.remove();
3056
- }
3057
- }
3058
- function $o(e, r, t = {}) {
3059
- var a, c, u;
3060
- const o = ae(t);
3061
- Oo(o, t);
3062
- const s = $e(r, t);
3063
- if (s)
3064
- return (a = t.csp) != null && a.nonce && s.nonce !== ((c = t.csp) == null ? void 0 : c.nonce) && (s.nonce = (u = t.csp) == null ? void 0 : u.nonce), s.innerHTML !== e && (s.innerHTML = e), s;
3065
- const n = Oe(e, t);
3066
- return n.setAttribute(Ge(t), r), n;
3067
- }
3068
- const _o = qe(({ editor: e, children: r }) => {
3069
- const [, t] = Be((s) => s.value);
3070
- T(() => {
3071
- t({
3072
- value: e == null ? void 0 : e.isEditable
3073
- });
3074
- }, [e == null ? void 0 : e.isEditable]);
3075
- const o = () => {
3076
- t({
3077
- value: e == null ? void 0 : e.isEditable
3078
- });
3079
- };
3080
- return T(() => (e && e.on("update", o), () => {
3081
- e && e.off("update", o);
3082
- }), [e]), /* @__PURE__ */ i(ne, { children: r });
3083
- });
3084
- function Uo() {
3085
- const [, e] = Ke(Qe), r = (o) => {
3086
- e((s) => ({
3087
- ...s,
3088
- currentLang: o.detail
2410
+ const nt = we((e) => ({
2411
+ value: !1,
2412
+ setEditable: (t) => {
2413
+ e(() => ({
2414
+ value: t.value
3089
2415
  }));
3090
- }, t = (o) => {
3091
- const { lang: s, messages: n } = o.detail;
3092
- e((a) => {
3093
- if (a.message[s]) {
3094
- const c = {
3095
- ...a.message[s],
3096
- ...n
3097
- };
3098
- return {
3099
- currentLang: a.currentLang,
3100
- message: {
3101
- ...a.message,
3102
- [s]: c
3103
- }
3104
- };
3105
- } else
3106
- return {
3107
- currentLang: a.currentLang,
3108
- message: {
3109
- ...a.message,
3110
- [s]: n
3111
- }
3112
- };
3113
- });
3114
- };
3115
- return T(() => {
3116
- const o = W(O.CHANGE_LANGUAGE, r), s = W(O.MODIFY_LANGUAGE, t);
3117
- return () => {
3118
- o(), s();
3119
- };
3120
- }, []), /* @__PURE__ */ i(ne, {});
3121
- }
3122
- function Fo() {
3123
- const [e, r] = ee("richtext-theme", "light"), [t, o] = ee("richtext-color", "default"), [s, n] = ee("richtext-border-radius", "0.65rem");
3124
- T(() => {
3125
- const d = e || "light", m = t || "default";
3126
- let p = fe[d][m];
3127
- if (!p) {
3128
- p = fe.light.default;
3129
- return;
3130
- }
3131
- return $o(`
3132
- .reactjs-tiptap-editor, .reactjs-tiptap-editor *,
3133
- .reactjs-tiptap-editor-theme, .reactjs-tiptap-editor-theme *,
3134
- div[data-richtext-portal], div[data-richtext-portal] * {
3135
- ${Object.entries(p).map(([l, f]) => typeof s == "string" && l === "radius" ? `--${l}: ${s};` : `--${l}: ${f};`).join(`
3136
- `)}
3137
- }
3138
- `, "richtext-theme", {
3139
- priority: 50
3140
- }), () => {
3141
- Wo("richtext-theme");
3142
- };
3143
- }, [e, t, s]);
3144
- const a = (d) => {
3145
- r(d.detail);
3146
- }, c = (d) => {
3147
- o(d.detail);
3148
- }, u = (d) => {
3149
- n(d.detail);
3150
- };
3151
- return T(() => {
3152
- const d = W(O.CHANGE_THEME, a), m = W(O.CHANGE_COLOR, c), p = W(O.CHANGE_BORDER_RADIUS, u);
3153
- return () => {
3154
- d(), m(), p();
3155
- };
3156
- }, []), /* @__PURE__ */ i(ne, {});
3157
- }
3158
- function cn({ editor: e, children: r, id: t }) {
3159
- return /* @__PURE__ */ z(Po, { children: [
3160
- /* @__PURE__ */ i(
3161
- _o,
3162
- {
3163
- editor: e,
3164
- id: t,
3165
- children: r
3166
- }
3167
- ),
3168
- /* @__PURE__ */ i(Uo, {}),
3169
- /* @__PURE__ */ i(Fo, {})
3170
- ] });
2416
+ }
2417
+ }));
2418
+ function ut() {
2419
+ return nt((t) => t.value);
3171
2420
  }
3172
2421
  export {
3173
- tn as A,
3174
- bo as E,
3175
- co as M,
3176
- cn as P,
3177
- on as S,
3178
- No as T,
3179
- Ao as a,
3180
- He as b,
3181
- k as c,
3182
- Lo as d,
3183
- rn as e,
3184
- Ie as f,
3185
- eo as g,
3186
- Zr as h,
3187
- Mo as i,
3188
- ee as j,
3189
- sn as k,
3190
- xo as l,
3191
- Ro as m,
3192
- nn as n,
3193
- To as o,
3194
- Io as p,
3195
- Wo as r,
3196
- $o as u
2422
+ dt as S,
2423
+ ut as a,
2424
+ De as b,
2425
+ A as c,
2426
+ pt as d,
2427
+ et as e,
2428
+ rt as f,
2429
+ nt as u
3197
2430
  };