@uva-glass/component-library 3.57.4 → 3.57.5

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 (183) hide show
  1. package/dist/{DataTable-Guuh0GZc.js → DataTable-UslvEf3c.js} +3 -3
  2. package/dist/{DataTable-Guuh0GZc.js.map → DataTable-UslvEf3c.js.map} +1 -1
  3. package/dist/{Lexical.prod-Dy5aDppc.js → Lexical.prod-BlUfEvo-.js} +1461 -1476
  4. package/dist/{Lexical.prod-Dy5aDppc.js.map → Lexical.prod-BlUfEvo-.js.map} +1 -1
  5. package/dist/{LexicalClipboard.prod-CS8a49uL.js → LexicalClipboard.prod-DQbm50C_.js} +132 -131
  6. package/dist/LexicalClipboard.prod-DQbm50C_.js.map +1 -0
  7. package/dist/LexicalHtml.prod-Czkg35Fe.js +1129 -0
  8. package/dist/LexicalHtml.prod-Czkg35Fe.js.map +1 -0
  9. package/dist/{LexicalLink.prod-DzgwWhQM.js → LexicalLink.prod-6gI2ABQo.js} +141 -141
  10. package/dist/{LexicalLink.prod-DzgwWhQM.js.map → LexicalLink.prod-6gI2ABQo.js.map} +1 -1
  11. package/dist/{LexicalList.prod-icY8mpm6.js → LexicalList.prod-CMGvSM1c.js} +265 -265
  12. package/dist/{LexicalList.prod-icY8mpm6.js.map → LexicalList.prod-CMGvSM1c.js.map} +1 -1
  13. package/dist/LexicalSelection.prod-DS_R6Cl1.js +99 -0
  14. package/dist/LexicalSelection.prod-DS_R6Cl1.js.map +1 -0
  15. package/dist/{LexicalTable.prod-Bf0is-op.js → LexicalTable.prod-D3FUVxbr.js} +582 -582
  16. package/dist/LexicalTable.prod-D3FUVxbr.js.map +1 -0
  17. package/dist/LexicalUtils.prod-CNWf_0sq.js +164 -0
  18. package/dist/LexicalUtils.prod-CNWf_0sq.js.map +1 -0
  19. package/dist/{LinkContextMenu-C8ehPbP8.js → LinkContextMenu-59-rbxa2.js} +2 -2
  20. package/dist/{LinkContextMenu-C8ehPbP8.js.map → LinkContextMenu-59-rbxa2.js.map} +1 -1
  21. package/dist/{PasteHandlerPlugin-CSo_lOE8.js → PasteHandlerPlugin-CTzYRyAx.js} +9 -9
  22. package/dist/{PasteHandlerPlugin-CSo_lOE8.js.map → PasteHandlerPlugin-CTzYRyAx.js.map} +1 -1
  23. package/dist/{Slider-Czd2xAGf.js → Slider-CqYFsgRL.js} +3 -3
  24. package/dist/{Slider-Czd2xAGf.js.map → Slider-CqYFsgRL.js.map} +1 -1
  25. package/dist/{TableCellResizerPlugin-Bb2blXnq.js → TableCellResizerPlugin-D-fX5I3p.js} +12 -5
  26. package/dist/{TableCellResizerPlugin-Bb2blXnq.js.map → TableCellResizerPlugin-D-fX5I3p.js.map} +1 -1
  27. package/dist/{chunk-5WKL7XVT-CvOIS3NE.js → chunk-SNLGT2ZI--XVeLAcq.js} +2540 -2881
  28. package/dist/chunk-SNLGT2ZI--XVeLAcq.js.map +1 -0
  29. package/dist/{client-CXlG3hNo.js → client-CTHUtwUP.js} +4 -4
  30. package/dist/{client-CXlG3hNo.js.map → client-CTHUtwUP.js.map} +1 -1
  31. package/dist/components/Accordion/Accordion.test.js +15 -14
  32. package/dist/components/Accordion/Accordion.test.js.map +1 -1
  33. package/dist/components/AccordionCard/AccordionCard.test.js +20 -19
  34. package/dist/components/AccordionCard/AccordionCard.test.js.map +1 -1
  35. package/dist/components/ActionList/ActionList.test.js +26 -25
  36. package/dist/components/ActionList/ActionList.test.js.map +1 -1
  37. package/dist/components/AppStatusBar/AppStatusBar.test.js +6 -5
  38. package/dist/components/AppStatusBar/AppStatusBar.test.js.map +1 -1
  39. package/dist/components/Attention/Attention.test.js +5 -4
  40. package/dist/components/Attention/Attention.test.js.map +1 -1
  41. package/dist/components/Backdrop/Backdrop.test.js +5 -4
  42. package/dist/components/Backdrop/Backdrop.test.js.map +1 -1
  43. package/dist/components/Buttons/Button.stories.js +1 -1
  44. package/dist/components/Buttons/Button.test.js +20 -19
  45. package/dist/components/Buttons/Button.test.js.map +1 -1
  46. package/dist/components/Buttons/LinkButton.stories.js +1 -1
  47. package/dist/components/Buttons/LinkButton.test.js +22 -21
  48. package/dist/components/Buttons/LinkButton.test.js.map +1 -1
  49. package/dist/components/Buttons/MenuButton.stories.js +1 -1
  50. package/dist/components/Buttons/MenuButton.test.js +20 -19
  51. package/dist/components/Buttons/MenuButton.test.js.map +1 -1
  52. package/dist/components/Card/Card.test.js +5 -4
  53. package/dist/components/Card/Card.test.js.map +1 -1
  54. package/dist/components/Checkbox/Checkbox.stories.js +1 -1
  55. package/dist/components/Checkbox/Checkbox.test.js +9 -8
  56. package/dist/components/Checkbox/Checkbox.test.js.map +1 -1
  57. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +1 -1
  58. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js +16 -15
  59. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js.map +1 -1
  60. package/dist/components/CheckboxTree/CheckboxTree.js +1 -1
  61. package/dist/components/CheckboxTree/CheckboxTree.stories.js +3 -3
  62. package/dist/components/CheckboxTree/index.js +1 -1
  63. package/dist/components/Chip/Chip.stories.js +1 -1
  64. package/dist/components/ControlsButton/ControlsButton.stories.js +1 -1
  65. package/dist/components/DataTable/DataTable.js +1 -1
  66. package/dist/components/DataTable/DataTable.stories.js +1 -1
  67. package/dist/components/DataTable/index.js +1 -1
  68. package/dist/components/Drawer/Drawer.stories.js +1 -1
  69. package/dist/components/FeedbackBar/FeedbackBar.test.js +8 -7
  70. package/dist/components/FeedbackBar/FeedbackBar.test.js.map +1 -1
  71. package/dist/components/FormInput/FormInput.js +1 -1
  72. package/dist/components/FormInput/FormInput.stories.js +2 -2
  73. package/dist/components/FormInput/index.js +1 -1
  74. package/dist/components/IconButton/IconButton.stories.js +1 -1
  75. package/dist/components/InputField/InputField.stories.js +1 -1
  76. package/dist/components/Label/Label.test.js +12 -11
  77. package/dist/components/Label/Label.test.js.map +1 -1
  78. package/dist/components/MetaDataBar/MetaDataBar.test.js +5 -4
  79. package/dist/components/MetaDataBar/MetaDataBar.test.js.map +1 -1
  80. package/dist/components/ModalDialog/ModalDialog.stories.js +1 -1
  81. package/dist/components/MultiSelect/MultiSelect.js +1 -1
  82. package/dist/components/MultiSelect/MultiSelect.stories.js +2 -2
  83. package/dist/components/MultiSelect/components/MultiSelectHeader.js +1 -1
  84. package/dist/components/MultiSelect/index.js +1 -1
  85. package/dist/components/MultiSelectBox/MultiSelectBox.stories.js +1 -1
  86. package/dist/components/MultiSelectBox/MultiSelectBox.test.js +12 -11
  87. package/dist/components/MultiSelectBox/MultiSelectBox.test.js.map +1 -1
  88. package/dist/components/Notification/Notification.stories.js +1 -1
  89. package/dist/components/Notification/Notification.test.js +8 -7
  90. package/dist/components/Notification/Notification.test.js.map +1 -1
  91. package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +1 -1
  92. package/dist/components/PeriodSelector/PeriodSelector.js +1 -1
  93. package/dist/components/PeriodSelector/PeriodSelector.stories.js +2 -2
  94. package/dist/components/PeriodSelector/index.js +1 -1
  95. package/dist/components/RadioGroup/RadioGroup.stories.js +1 -1
  96. package/dist/components/RadioGroup/Radiogroup.test.js +10 -9
  97. package/dist/components/RadioGroup/Radiogroup.test.js.map +1 -1
  98. package/dist/components/RadioTabSelector/RadioTabSelector.js +1 -1
  99. package/dist/components/RadioTabSelector/RadioTabSelector.stories.js +2 -2
  100. package/dist/components/RadioTabSelector/index.js +1 -1
  101. package/dist/components/RteEditor/EditorHeader/EditorHeader.js +1 -1
  102. package/dist/components/RteEditor/EditorHeader/index.js +1 -1
  103. package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +4 -4
  104. package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/CourseCataloguePlugin.js +20 -20
  105. package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +1 -1
  106. package/dist/components/RteEditor/Plugins/HistoryPlugin/index.js +1 -1
  107. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +1 -1
  108. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +1 -1
  109. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +1 -1
  110. package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +7 -2
  111. package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js.map +1 -0
  112. package/dist/components/RteEditor/Plugins/LinkPlugin/index.js +1 -1
  113. package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +12 -12
  114. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +1 -1
  115. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/index.js +1 -1
  116. package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/TableCellResizerPlugin.js +1 -1
  117. package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/index.js +1 -1
  118. package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +1 -1
  119. package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +1 -1
  120. package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +2 -2
  121. package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
  122. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +1 -1
  123. package/dist/components/RteEditor/Plugins/ToolbarPlugin/index.js +1 -1
  124. package/dist/components/RteEditor/Plugins/index.js +3 -3
  125. package/dist/components/RteEditor/RteEditor.js +1 -1
  126. package/dist/components/RteEditor/RteEditor.stories.js +1 -1
  127. package/dist/components/RteEditor/helpers.js +5 -5
  128. package/dist/components/RteEditor/index.js +1 -1
  129. package/dist/components/RteEditor/nodes/CourseCatalogueNode/CourseCatalogueNode.js +14 -14
  130. package/dist/components/RteEditor/nodes/TableWrapperNode/TableWrapperNode.js +20 -19
  131. package/dist/components/RteEditor/nodes/TableWrapperNode/TableWrapperNode.js.map +1 -1
  132. package/dist/components/SelectListbox/SelectListBox.stories.js +1 -1
  133. package/dist/components/SelectListbox/SelectProvider.js +2 -1
  134. package/dist/components/SelectListbox/SelectProvider.js.map +1 -1
  135. package/dist/components/Slider/Slider.js +1 -1
  136. package/dist/components/Slider/Slider.stories.js +1 -1
  137. package/dist/components/Slider/index.js +1 -1
  138. package/dist/components/Sortable/Sortable.stories.js +1 -1
  139. package/dist/components/Sortable/components/SortableItem.js +2 -2
  140. package/dist/components/Sortable/components/SortableItem.js.map +1 -1
  141. package/dist/components/StatusBadge/StatusBadge.test.js +7 -6
  142. package/dist/components/StatusBadge/StatusBadge.test.js.map +1 -1
  143. package/dist/components/TextArea/TextArea.stories.js +1 -1
  144. package/dist/components/TextArea/TextArea.test.js +14 -13
  145. package/dist/components/TextArea/TextArea.test.js.map +1 -1
  146. package/dist/components/ToggleSwitch/ToggleSwitch.stories.js +1 -1
  147. package/dist/components/VarIndicator/VarIndicator.stories.js +1 -1
  148. package/dist/components/VarIndicator/VarIndicator.test.js +26 -25
  149. package/dist/components/VarIndicator/VarIndicator.test.js.map +1 -1
  150. package/dist/components/hooks/useResponsive.js +1 -1
  151. package/dist/components/hooks/useResponsive.js.map +1 -1
  152. package/dist/components/index.js +3 -3
  153. package/dist/{components-CgBF6db6.js → components-D2rPfyIW.js} +438 -408
  154. package/dist/components-D2rPfyIW.js.map +1 -0
  155. package/dist/{dist-oLwM--0y.js → dist-CuwCMU7Y.js} +4 -4
  156. package/dist/{dist-oLwM--0y.js.map → dist-CuwCMU7Y.js.map} +1 -1
  157. package/dist/{react.esm-DwWzhs9e.js → dom.esm-S0SD0DBW.js} +938 -1029
  158. package/dist/dom.esm-S0SD0DBW.js.map +1 -0
  159. package/dist/{esm-BXzGXYWZ.js → esm-Bfz5h0_d.js} +5 -5
  160. package/dist/{esm-BXzGXYWZ.js.map → esm-Bfz5h0_d.js.map} +1 -1
  161. package/dist/index.js +3 -3
  162. package/dist/{react-18-BwdnKC48.js → react-18-yf-KbRra.js} +3 -3
  163. package/dist/{react-18-BwdnKC48.js.map → react-18-yf-KbRra.js.map} +1 -1
  164. package/dist/react.esm-D50lAl1F.js +226 -0
  165. package/dist/react.esm-D50lAl1F.js.map +1 -0
  166. package/dist/setupTests.js +1 -1
  167. package/dist/storybook__react.d.js +22 -22
  168. package/dist/storybook__react.d.js.map +1 -1
  169. package/dist/{test-Gtly6H2f.js → test-BjtC-Q32.js} +3684 -6919
  170. package/dist/test-BjtC-Q32.js.map +1 -0
  171. package/package.json +13 -13
  172. package/dist/LexicalClipboard.prod-CS8a49uL.js.map +0 -1
  173. package/dist/LexicalHtml.prod-BtzosUOH.js +0 -1611
  174. package/dist/LexicalHtml.prod-BtzosUOH.js.map +0 -1
  175. package/dist/LexicalTable.prod-Bf0is-op.js.map +0 -1
  176. package/dist/LexicalUtils.prod-CjGUKarD.js +0 -259
  177. package/dist/LexicalUtils.prod-CjGUKarD.js.map +0 -1
  178. package/dist/chunk-5WKL7XVT-CvOIS3NE.js.map +0 -1
  179. package/dist/components-CgBF6db6.js.map +0 -1
  180. package/dist/helpers-MMNO9vlK.js +0 -34
  181. package/dist/helpers-MMNO9vlK.js.map +0 -1
  182. package/dist/react.esm-DwWzhs9e.js.map +0 -1
  183. package/dist/test-Gtly6H2f.js.map +0 -1
@@ -1,259 +0,0 @@
1
- import { C as e, Ct as t, En as n, Gt as r, H as i, K as a, Kn as o, Ln as s, N as c, Or as l, Qn as u, Tn as d, Vn as f, Vt as p, W as m, Wn as h, X as ee, _ as g, b as te, en as _, g as v, gn as y, gr as ne, ht as re, j as b, l as x, ln as S, mr as C, n as w, on as T, p as E, pr as D, rt as O, sr as k, t as A, tn as j } from "./Lexical.prod-Dy5aDppc.js";
2
- //#region node_modules/.pnpm/@lexical+selection@0.46.0_typescript@5.9.3/node_modules/@lexical/selection/dist/LexicalSelection.prod.mjs
3
- function M(e) {
4
- let t = l().getElementByKey(e.getKey());
5
- if (t === null) return null;
6
- let n = t.ownerDocument.defaultView;
7
- return n === null ? null : n.getComputedStyle(t);
8
- }
9
- function N(e) {
10
- return M(i(e) ? e : e.getParentOrThrow());
11
- }
12
- function P(e) {
13
- let t = N(e);
14
- return t !== null && t.direction === "rtl";
15
- }
16
- function F(e, t, n = "self") {
17
- let r = e.getStartEndPoints();
18
- if (t.isSelected(e) && !ee(t) && r !== null) {
19
- let [i, a] = r, o = e.isBackward(), c = i.getNode(), l = a.getNode(), u = t.is(c), d = t.is(l);
20
- if (u || d) {
21
- let [r, i] = s(e), a = c.is(l), u = t.is(o ? l : c), d = t.is(o ? c : l), f, p = 0;
22
- a ? (p = r > i ? i : r, f = r > i ? r : i) : u ? (p = o ? i : r, f = void 0) : d && (p = 0, f = o ? r : i);
23
- let m = t.__text.slice(p, f);
24
- m !== t.__text && (n === "clone" && (t = g(t)), t.__text = m);
25
- }
26
- }
27
- return t;
28
- }
29
- function I(e, t) {
30
- let n = e.getFormatType(), r = e.getIndent();
31
- n !== t.getFormatType() && t.setFormat(n), r !== t.getIndent() && t.setIndent(r);
32
- }
33
- function L(e, t, n = I) {
34
- if (!e) return;
35
- let r = e.getStartEndPoints(), i = !1, a = null, s = /* @__PURE__ */ new Map();
36
- if (r) {
37
- let [e, t] = r, n = w(e.getNode(), o);
38
- a = w(t.getNode(), o), i = v(a) && !a.is(n) && function(e, t) {
39
- if (e.offset !== 0) return !1;
40
- let n = e.getNode();
41
- if (v(n) && n.isEmpty()) return !1;
42
- for (; !n.is(t);) {
43
- if (n.getPreviousSibling() !== null) return !1;
44
- let e = n.getParent();
45
- if (e === null) return !1;
46
- n = e;
47
- }
48
- return !0;
49
- }(t, a), v(n) && s.set(n.getKey(), n), v(a) && !i && s.set(a.getKey(), a);
50
- }
51
- for (let t of e.getNodes()) if (v(t) && o(t)) {
52
- if (i && t.is(a)) continue;
53
- s.set(t.getKey(), t);
54
- } else if (!r) {
55
- let e = w(t, o);
56
- v(e) && s.set(e.getKey(), e);
57
- }
58
- for (let e of s.values()) {
59
- let r = t();
60
- n(e, r), e.replace(r, !0);
61
- }
62
- }
63
- function R(e) {
64
- let t = z(e);
65
- return t !== null && t.writingMode === "vertical-rl";
66
- }
67
- function z(e) {
68
- let t = e.anchor.getNode();
69
- return v(t) ? M(t) : N(t);
70
- }
71
- function B(e, t) {
72
- let n = R(e) ? !t : t;
73
- H(e) && (n = !n);
74
- let r = u(e.focus, n ? "previous" : "next");
75
- if (d(r)) return !1;
76
- for (let e of x(r)) {
77
- if (_(e)) return !e.origin.isInline();
78
- if (!v(e.origin)) {
79
- if (c(e.origin)) return !0;
80
- break;
81
- }
82
- }
83
- return !1;
84
- }
85
- function V(e, t, n, r) {
86
- e.modify(t ? "extend" : "move", n, r);
87
- }
88
- function H(e) {
89
- let t = z(e);
90
- return t !== null && t.direction === "rtl";
91
- }
92
- function U(e, t, n) {
93
- let r = H(e), i;
94
- i = R(e) || r ? !n : n, V(e, t, i, "character");
95
- }
96
- //#endregion
97
- //#region node_modules/.pnpm/@lexical+utils@0.46.0_typescript@5.9.3/node_modules/@lexical/utils/dist/LexicalUtils.prod.mjs
98
- function W(e, ...t) {
99
- let n = new URL("https://lexical.dev/docs/error"), r = new URLSearchParams();
100
- r.append("code", e);
101
- for (let e of t) r.append("v", e);
102
- throw n.search = r.toString(), Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`);
103
- }
104
- function G(e, t) {
105
- return Array.from(K(e, t));
106
- }
107
- function* K(e, t) {
108
- for (let i of Y("next", e, t)) {
109
- yield i;
110
- let { node: e, depth: a } = i;
111
- if (n(e) && !e.is(t)) for (let t of r(e)) {
112
- let n = D(e, t);
113
- n !== null && (yield* q(n, a + 1));
114
- }
115
- }
116
- }
117
- function* q(e, t) {
118
- yield {
119
- depth: t,
120
- node: e
121
- };
122
- let i = t + 1;
123
- if (n(e)) for (let t of r(e)) {
124
- let n = D(e, t);
125
- n !== null && (yield* q(n, i));
126
- }
127
- if (v(e)) for (let t of e.getChildren()) yield* q(t, i);
128
- }
129
- function J(e, t) {
130
- let n = T(O(e, t));
131
- return n && n[0];
132
- }
133
- function Y(e, t, n) {
134
- let r = C(), i = t || r, a = v(i) ? E(i, e) : O(i, e), o = ie(i), s = n ? m(te(O(n, e))) || J(n, e) : J(i, e), c = o;
135
- return A({
136
- hasNext: (e) => e !== null,
137
- initial: a,
138
- map: (e) => ({
139
- depth: c,
140
- node: e.origin
141
- }),
142
- step: (e) => {
143
- if (e.isSameNodeCaret(s)) return null;
144
- _(e) && c++;
145
- let t = T(e);
146
- return !t || t[0].isSameNodeCaret(s) ? null : (c += t[1], t[0]);
147
- }
148
- });
149
- }
150
- function ie(e) {
151
- let t = -1;
152
- for (let n = e; n !== null; n = n.getParent() ?? p(n)) t++;
153
- return t;
154
- }
155
- function ae(e, t) {
156
- let n = e;
157
- for (; n != null;) {
158
- if (n instanceof t) return n;
159
- n = n.getParent();
160
- }
161
- return null;
162
- }
163
- function oe(e) {
164
- let t = w(e, (e) => v(e) && !e.isInline());
165
- return v(t) || W(4, e.__key), t;
166
- }
167
- function se(t) {
168
- let n = a() || b(), r;
169
- if (y(n)) r = u(n.focus, "next");
170
- else {
171
- if (n != null) {
172
- let e = n.getNodes(), t = e[e.length - 1];
173
- t && (r = O(t, "next"));
174
- }
175
- r ||= E(C(), "previous").getFlipped().insert(ne());
176
- }
177
- let i = S(t, r), o = m(i);
178
- return e(re(_(o) ? k(o) : i)), t.getLatest();
179
- }
180
- function X(e, t) {
181
- return e !== null && Object.getPrototypeOf(e).constructor.name === t.name;
182
- }
183
- function ce(e) {
184
- let t = null;
185
- if (X(e, DragEvent) ? t = e.dataTransfer : X(e, ClipboardEvent) && (t = e.clipboardData), t === null) return [
186
- !1,
187
- [],
188
- !1
189
- ];
190
- let n = t.types, r = n.includes("Files"), i = n.includes("text/html") || n.includes("text/plain");
191
- return [
192
- r,
193
- Array.from(t.files),
194
- i
195
- ];
196
- }
197
- function le(e) {
198
- let t = a();
199
- if (!y(t)) return !1;
200
- let n = /* @__PURE__ */ new Set(), r = t.getNodes();
201
- for (let t = 0; t < r.length; t++) {
202
- let i = r[t], a = i.getKey();
203
- if (n.has(a)) continue;
204
- let o = w(i, (e) => v(e) && !e.isInline());
205
- if (o === null) continue;
206
- let s = o.getKey();
207
- o.canIndent() && !n.has(s) && (n.add(s), e(o));
208
- }
209
- return n.size > 0;
210
- }
211
- function ue(e, t) {
212
- E(e, "next").insert(t);
213
- }
214
- var Z = !(h || !f) && void 0;
215
- function de(e, t = !1) {
216
- let n = 1;
217
- if (function() {
218
- if (Z === void 0) {
219
- let e = document.createElement("div");
220
- e.style.position = "absolute", e.style.opacity = "0", e.style.width = "100px", e.style.left = "-1000px", document.body.appendChild(e);
221
- let t = e.getBoundingClientRect();
222
- e.style.setProperty("zoom", "2"), Z = e.getBoundingClientRect().width === t.width, document.body.removeChild(e);
223
- }
224
- return Z;
225
- }() || t) {
226
- let t = e && e.ownerDocument.defaultView || window;
227
- for (; e;) n *= Number(t.getComputedStyle(e).getPropertyValue("zoom")), e = j(e);
228
- }
229
- return n;
230
- }
231
- function fe(e, t) {
232
- return Q(e, t, null);
233
- }
234
- function Q(e, t, n) {
235
- let r = !1;
236
- for (let i of $(e)) t(i) ? n !== null && n(i) : (r = !0, v(i) && Q(i, t, n || ((e) => i.insertAfter(e))), i.remove());
237
- return r;
238
- }
239
- function pe(e, t) {
240
- let n = [], r = Array.from(e).reverse();
241
- for (let e = r.pop(); e !== void 0; e = r.pop()) if (t(e)) n.push(e);
242
- else if (v(e)) for (let t of $(e)) r.push(t);
243
- return n;
244
- }
245
- function $(e) {
246
- return me(E(e, "previous"));
247
- }
248
- function me(e) {
249
- return A({
250
- hasNext: t,
251
- initial: e.getAdjacentCaret(),
252
- map: (e) => e.origin.getLatest(),
253
- step: (e) => e.getAdjacentCaret()
254
- });
255
- }
256
- //#endregion
257
- export { X as a, oe as c, pe as d, L as f, U as g, P as h, le as i, ae as l, B as m, se as n, ce as o, F as p, ue as r, fe as s, de as t, G as u };
258
-
259
- //# sourceMappingURL=LexicalUtils.prod-CjGUKarD.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LexicalUtils.prod-CjGUKarD.js","names":["n","o","s","f","u","h","y","c","J","m","S","x","N","T","g","p","h","l","C","w","I","m","O","E","V","y","v","r","L","i","D","P","B","_","M","T","F","Y","q","a","W"],"sources":["../node_modules/.pnpm/@lexical+selection@0.46.0_typescript@5.9.3/node_modules/@lexical/selection/dist/LexicalSelection.prod.mjs","../node_modules/.pnpm/@lexical+utils@0.46.0_typescript@5.9.3/node_modules/@lexical/utils/dist/LexicalUtils.prod.mjs"],"sourcesContent":["/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport{getRootOwnerDocument as e,$isTextNode as t,$getEditor as n,$isRootNode as o,$getSelection as l,$isRangeSelection as r,$caretRangeFromSelection as i,$isTokenOrSegmented as s,$isElementNode as c,$getCharacterOffsets as f,$cloneWithPropertiesEphemeral as u,$getNodeByKey as g,$getPreviousSelection as d,$createTextNode as a,getStyleObjectFromCSS as p,$findMatchingParent as h,INTERNAL_$isBlock as y,$caretFromPoint as m,$isExtendableTextPointCaret as S,$extendCaretToRange as x,$isChildCaret as N,$isDecoratorNode as T,$isRootOrShadowRoot as C,$hasAncestor as v,$isLeafNode as w,$setSelection as P}from\"lexical\";export{$cloneWithProperties,$selectAll}from\"lexical\";function K(e,...t){const n=new URL(\"https://lexical.dev/docs/error\"),o=new URLSearchParams;o.append(\"code\",e);for(const e of t)o.append(\"v\",e);throw n.search=o.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}\n/*@__INLINE__*/function E(e){let t=e;for(;null!=t;){if(t.nodeType===Node.TEXT_NODE)return t;t=t.firstChild}return null}function I(e){const t=e.parentNode;if(null==t)throw new Error(\"Should never happen\");return[t,Array.from(t.childNodes).indexOf(e)]}function B(n,o,l,r,i){const s=o.getKey(),c=r.getKey(),f=e(n.getRootElement()).createRange();let u=n.getElementByKey(s),g=n.getElementByKey(c),d=l,a=i;if(t(o)&&(u=E(u)),t(r)&&(g=E(g)),void 0===o||void 0===r||null===u||null===g)return null;\"BR\"===u.nodeName&&([u,d]=I(u)),\"BR\"===g.nodeName&&([g,a]=I(g));const p=u.firstChild;u===g&&null!=p&&\"BR\"===p.nodeName&&0===d&&0===a&&(a=1);try{f.setStart(u,d),f.setEnd(g,a)}catch(e){return null}return!f.collapsed||d===a&&s===c||(f.setStart(g,a),f.setEnd(u,d)),f}function F(e,t){const n=e.getRootElement();if(null===n)return[];const o=n.getBoundingClientRect(),l=getComputedStyle(n),r=parseFloat(l.paddingLeft)+parseFloat(l.paddingRight),i=Array.from(t.getClientRects());let s,c=i.length;i.sort((e,t)=>{const n=e.top-t.top;return Math.abs(n)<=3?e.left-t.left:n});for(let e=0;e<c;e++){const t=i[e],n=s&&s.top<=t.top&&s.top+s.height>t.top&&s.left+s.width>t.left,l=t.width+r===o.width;n||l?(i.splice(e--,1),c--):s=t}return i}function b(e){let t=\"\";for(const n in e)n&&(t+=`${n}: ${e[n]};`);return t}function k(e){const t=n().getElementByKey(e.getKey());if(null===t)return null;const o=t.ownerDocument.defaultView;return null===o?null:o.getComputedStyle(t)}function z(e){return k(o(e)?e:e.getParentOrThrow())}function R(e){const t=z(e);return null!==t&&\"rtl\"===t.direction}function O(e,t,n=\"self\"){const o=e.getStartEndPoints();if(t.isSelected(e)&&!s(t)&&null!==o){const[l,r]=o,i=e.isBackward(),s=l.getNode(),c=r.getNode(),g=t.is(s),d=t.is(c);if(g||d){const[o,l]=f(e),r=s.is(c),g=t.is(i?c:s),d=t.is(i?s:c);let a,p=0;if(r)p=o>l?l:o,a=o>l?o:l;else if(g){p=i?l:o,a=void 0}else if(d){p=0,a=i?o:l}const h=t.__text.slice(p,a);h!==t.__text&&(\"clone\"===n&&(t=u(t)),t.__text=h)}}return t}function A(e){if(\"text\"===e.type)return e.offset===e.getNode().getTextContentSize();const t=e.getNode();return c(t)||K(177),e.offset===t.getChildrenSize()}function _(e,n,l){let i=n.getNode(),s=l;if(c(i)){const e=i.getDescendantByIndex(n.offset);null!==e&&(i=e)}for(;s>0&&null!==i;){if(c(i)){const e=i.getLastDescendant();null!==e&&(i=e)}let l=i.getPreviousSibling(),f=0;if(null===l){let e=i.getParentOrThrow(),t=e.getPreviousSibling();for(;null===t;){if(e=e.getParent(),null===e){l=null;break}t=e.getPreviousSibling()}null!==e&&(f=e.isInline()?0:2,l=t)}let u=i.getTextContent();\"\"===u&&c(i)&&!i.isInline()&&(u=\"\\n\\n\");const p=u.length;if(!t(i)||s>=p){const e=i.getParent();i.remove(),null==e||0!==e.getChildrenSize()||o(e)||e.remove(),s-=p+f,i=l}else{const o=i.getKey(),l=e.read(\"latest\",()=>{const e=g(o);return t(e)&&e.isSimpleText()?e.getTextContent():null}),c=p-s,f=u.slice(0,c);if(null!==l&&l!==u){const e=d();let t=i;if(i.isSimpleText())i.setTextContent(l);else{const e=a(l);i.replace(e),t=e}if(r(e)&&e.isCollapsed()){const n=e.anchor.offset;t.select(n,n)}}else if(i.isSimpleText()){const e=n.key===o;let t=n.offset;t<s&&(t=p);const l=e?t-s:0,r=e?t:c;if(e&&0===l){const[e]=i.splitText(l,r);e.remove()}else{const[,e]=i.splitText(l,r);e.remove()}}else{const e=a(f);i.replace(e)}s=0}}}const L=()=>{};function M(e,n){(r(e)?e.isCollapsed():t(e)||c(e))||K(280);const o=p(r(e)?e.style:t(e)?e.getStyle():e.getTextStyle()),l=b(Object.entries(n).reduce((t,[n,l])=>(\"function\"==typeof l?t[n]=l(o[n],e):null===l?delete t[n]:t[n]=l,t),{...o}));r(e)||t(e)?e.setStyle(l):e.setTextStyle(l)}function $(e,t){if(r(e)&&e.isCollapsed()){M(e,t);const n=e.anchor.getNode();c(n)&&n.isEmpty()&&M(n,t)}D(e=>{M(e,t)});const n=e.getNodes();if(n.length>0){const e=new Set;for(const o of n){if(!c(o)||!o.canBeEmpty()||0!==o.getChildrenSize())continue;const n=o.getKey();e.has(n)||(e.add(n),M(o,t))}}}function D(e){const n=l();if(!n)return;const o=new Map,c=e=>o.get(e.getKey())||[0,e.getTextContentSize()];if(r(n))for(const e of i(n).getTextSlices())e&&o.set(e.caret.origin.getKey(),e.getSliceIndices());const f=n.getNodes();for(const n of f){if(!t(n)||!n.canHaveFormat())continue;const[o,l]=c(n);if(l!==o)if(s(n)||0===o&&l===n.getTextContentSize())e(n);else{e(n.splitText(o,l)[0===o?0:1])}}r(n)&&\"text\"===n.anchor.type&&\"text\"===n.focus.type&&n.anchor.key===n.focus.key&&j(n)}function j(e){if(e.isBackward()){const{anchor:t,focus:n}=e,{key:o,offset:l,type:r}=t;t.set(n.key,n.offset,n.type),n.set(o,l,r)}}function U(e,t){const n=e.getFormatType(),o=e.getIndent();n!==t.getFormatType()&&t.setFormat(n),o!==t.getIndent()&&t.setIndent(o)}function H(e,t,n=U){if(!e)return;const o=e.getStartEndPoints();let l=!1,r=null;const i=new Map;if(o){const[e,t]=o,n=h(e.getNode(),y);r=h(t.getNode(),y),l=c(r)&&!r.is(n)&&function(e,t){if(0!==e.offset)return!1;let n=e.getNode();if(c(n)&&n.isEmpty())return!1;for(;!n.is(t);){if(null!==n.getPreviousSibling())return!1;const e=n.getParent();if(null===e)return!1;n=e}return!0}(t,r),c(n)&&i.set(n.getKey(),n),c(r)&&!l&&i.set(r.getKey(),r)}for(const t of e.getNodes())if(c(t)&&y(t)){if(l&&t.is(r))continue;i.set(t.getKey(),t)}else if(!o){const e=h(t,y);c(e)&&i.set(e.getKey(),e)}for(const e of i.values()){const o=t();n(e,o),e.replace(o,!0)}}function V(e){return e.getNode().isAttached()}function W(e){let t=e;for(;null!==t&&!C(t);){const e=t.getLatest(),n=t.getParent();0===e.getChildrenSize()&&t.remove(!0),t=n}}function X(e,t,n=null){const o=e.getStartEndPoints(),l=o?o[0]:null,r=e.getNodes(),i=r.length;if(null!==l&&(0===i||1===i&&\"element\"===l.type&&0===l.getNode().getChildrenSize())){const e=\"text\"===l.type?l.getNode().getParentOrThrow():l.getNode(),o=e.getChildren();let r=t();return r.setFormat(e.getFormatType()),r.setIndent(e.getIndent()),o.forEach(e=>r.append(e)),n&&(r=n.append(r)),void e.replace(r)}let s=null,c=[];for(let o=0;o<i;o++){const l=r[o];C(l)?(q(e,c,c.length,t,n),c=[],s=l):null===s||null!==s&&v(l,s)?c.push(l):(q(e,c,c.length,t,n),c=[l])}q(e,c,c.length,t,n)}function q(e,t,n,o,l=null){if(0===t.length)return;const i=t[0],s=new Map,f=[],u=c(i)?i:i.getParentOrThrow();let g=u.isInline()?u.getParentOrThrow():u,a=!1;for(;null!==g;){const e=g.getPreviousSibling();if(null!==e){g=e,a=!0;break}if(g=g.getParentOrThrow(),C(g))break}const p=new Set;for(let e=0;e<n;e++){const n=t[e];c(n)&&0===n.getChildrenSize()&&p.add(n.getKey())}const h=new Set;for(let e=0;e<n;e++){const n=t[e];let l=n.getParent();if(null!==l&&l.isInline()&&(l=l.getParent()),null!==l&&w(n)&&!h.has(n.getKey())){const e=l.getKey();if(void 0===s.get(e)){const t=o();t.setFormat(l.getFormatType()),t.setIndent(l.getIndent()),f.push(t),s.set(e,t);const n=l.getChildren();t.splice(t.getChildrenSize(),0,n);for(const e of n)if(h.add(e.getKey()),c(e))for(const t of e.getChildrenKeys())h.add(t);W(l)}}else if(p.has(n.getKey())){c(n)||K(179);const e=o();e.setFormat(n.getFormatType()),e.setIndent(n.getIndent()),f.push(e),n.remove(!0)}}if(null!==l)for(let e=0;e<f.length;e++){const t=f[e];l.append(t)}let y=null;if(C(g))if(a)if(null!==l)g.insertAfter(l);else for(let e=f.length-1;e>=0;e--){const t=f[e];g.insertAfter(t)}else{const e=g,t=e.getFirstChild();if(c(t)&&(g=t),null===t)if(l)e.append(l);else for(let t=0;t<f.length;t++){const n=f[t];e.append(n),y=n}else if(null!==l)t.insertBefore(l);else for(let e=0;e<f.length;e++){const n=f[e];t.insertBefore(n),y=n}}else if(l)g.insertAfter(l);else for(let e=f.length-1;e>=0;e--){const t=f[e];g.insertAfter(t),y=t}const m=d();r(m)&&V(m.anchor)&&V(m.focus)?P(m.clone()):null!==y?y.selectEnd():e.dirty=!0}function G(e){const t=J(e);return null!==t&&\"vertical-rl\"===t.writingMode}function J(e){const t=e.anchor.getNode();return c(t)?k(t):z(t)}function Q(e,t){let n=G(e)?!t:t;Z(e)&&(n=!n);const o=m(e.focus,n?\"previous\":\"next\");if(S(o))return!1;for(const e of x(o)){if(N(e))return!e.origin.isInline();if(!c(e.origin)){if(T(e.origin))return!0;break}}return!1}function Y(e,t,n,o){e.modify(t?\"extend\":\"move\",n,o)}function Z(e){const t=J(e);return null!==t&&\"rtl\"===t.direction}function ee(e,t,n){const o=Z(e);let l;l=G(e)||o?!n:n,Y(e,t,l,\"character\")}function te(e,t,n){const o=e.getStyle(),l=p(o);return null!==l&&l[t]||n}function ne(e,n,o=\"\"){let l=null;const i=e.getNodes();let s,c;if(r(e)){if(e.isCollapsed()&&\"\"!==e.style){const t=p(e.style);if(null!==t&&n in t)return t[n]}const{anchor:o,focus:l}=e,r=e.isBackward(),i=r?l.getNode():o.getNode(),f=r?o.getNode():l.getNode(),u=r?l.offset:o.offset,g=r?o.offset:l.offset;t(i)&&u===i.getTextContentSize()&&(s=i),0===g&&(c=f)}for(let e=0;e<i.length;e++){const r=i[e];if(t(r)&&!r.is(0===e?s:c)){const e=te(r,n,o);if(null===l)l=e;else if(l!==e){l=\"\";break}}}return null===l?o:l}const oe=p,le=_;export{L as $addNodeStyle,U as $copyBlockFormatIndent,j as $ensureForwardRangeSelection,D as $forEachSelectedTextNode,k as $getComputedStyleForElement,z as $getComputedStyleForParent,ne as $getSelectionStyleValueForProperty,A as $isAtNodeEnd,Z as $isParentElementRTL,R as $isParentRTL,Y as $moveCaretSelection,ee as $moveCharacter,$ as $patchStyleText,H as $setBlocksType,Q as $shouldOverrideDefaultCharacterSelection,O as $sliceSelectedTextNodeContent,_ as $trimTextContentFromAnchor,X as $wrapNodes,B as createDOMRange,F as createRectsFromDOMRange,b as getCSSFromStyleObject,oe as getStyleObjectFromCSS,le as trimTextContentFromAnchor};\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport{createRectsFromDOMRange as t,$isAtNodeEnd as e}from\"@lexical/selection\";import{isHTMLElement as n,mergeRegister as o,$getSelection as r,$isRangeSelection as i,$isElementNode as l,$isTextNode as s,$getDOMTextNode as u,getDOMTextNode as c,$getDOMSlot as f,getDOMSelectionPoints as d,getParentElement as a,$isSlotHost as g,$getSlotNames as p,$getSlot as h,$getChildCaret as m,$getSlotHost as y,$findMatchingParent as v,$getChildCaretOrSelf as E,$getSiblingCaret as w,$getAdjacentSiblingOrParentSiblingCaret as C,$caretRangeFromSelection as S,$getCaretRangeInDirection as x,$removeTextFromCaretRange as N,$isTextPointCaret as A,$splitAtPointCaretNext as b,$setSelectionFromCaretRange as _,$getCaretRange as R,$getPreviousSelection as L,$caretFromPoint as D,$getRoot as I,$createParagraphNode as P,$insertNodeToNearestRootAtCaret as B,$getAdjacentChildCaret as O,$isChildCaret as T,$normalizeCaret as F,$getCollapsedCaretRange as M,$getSlotFrame as K,$getCaretInDirection as $,$comparePointCaretNext as H,$cloneWithProperties as k,$fullReconcile as U,$setSelection as j,$rewindSiblingCaret as z,makeStepwiseIterator as V,$isSiblingCaret as W,$getState as X,$setState as G,IS_FIREFOX as Y,CAN_USE_DOM as q}from\"lexical\";export{$findMatchingParent,$getAdjacentSiblingOrParentSiblingCaret,$insertNodeToNearestRootAtCaret,$splitNode,CAN_USE_BEFORE_INPUT,CAN_USE_DOM,IS_ANDROID,IS_ANDROID_CHROME,IS_APPLE,IS_APPLE_WEBKIT,IS_CHROME,IS_FIREFOX,IS_IOS,IS_SAFARI,addClassNamesToElement,isBlockDomNode,isHTMLAnchorElement,isHTMLElement,isInlineDomNode,mergeRegister,removeClassNamesFromElement}from\"lexical\";function J(t,...e){const n=new URL(\"https://lexical.dev/docs/error\"),o=new URLSearchParams;o.append(\"code\",t);for(const t of e)o.append(\"v\",t);throw n.search=o.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Q(t){const e=(t,e)=>e.left>=t.left-1&&e.top>=t.top-1&&e.right<=t.right+1&&e.bottom<=t.bottom+1,n=[];for(const o of Array.from(t))if(!(o.width<.5||o.height<.5||n.some(t=>e(o,t)))){for(let t=n.length-1;t>=0;t--)e(n[t],o)&&n.splice(t,1);n.push(o)}return n}function Z(t){return`${t}px`}const tt={attributes:!0,characterData:!0,childList:!0,subtree:!0};function et(e,o,r){let i=null,l=null,s=null,u=[];const c=document.createElement(\"div\");function f(){null===i&&J(182),null===l&&J(183);const{left:n,top:s}=l.getBoundingClientRect(),f=Q(t(e,o));var d,a;c.isConnected||(a=c,(d=l).insertBefore(a,d.firstChild));let g=!1;for(let t=0;t<f.length;t++){const e=f[t],o=u[t]||document.createElement(\"div\"),r=o.style;\"absolute\"!==r.position&&(r.position=\"absolute\",g=!0);const i=Z(e.left-n);r.left!==i&&(r.left=i,g=!0);const l=Z(e.top-s);r.top!==l&&(o.style.top=l,g=!0);const d=Z(e.width);r.width!==d&&(o.style.width=d,g=!0);const a=Z(e.height);r.height!==a&&(o.style.height=a,g=!0),o.parentNode!==c&&(c.append(o),g=!0),u[t]=o}for(;u.length>f.length;)u.pop();g&&r(u)}function d(){l=null,i=null,null!==s&&s.disconnect(),s=null,c.remove();for(const t of u)t.remove();u=[]}c.style.position=\"relative\";const a=e.registerRootListener(function t(){const o=e.getRootElement();if(null===o)return d();const r=o.parentElement;if(!n(r))return d();d(),i=o,l=r,s=new MutationObserver(n=>{const o=e.getRootElement(),r=o&&o.parentElement;if(o!==i||r!==l)return t();for(const t of n)if(!c.contains(t.target))return f()}),s.observe(r,tt),f()});return()=>{a(),d()}}function nt(t,e,n,o){if(\"text\"!==e.type&&l(n)){const r=f(n,o,t);return[r.element,r.getFirstChildOffset()+e.offset]}return[(s(n)?u(n,o,t):c(o))||o,e.offset]}function ot(t){for(const e of t){const t=e.style;\"Highlight\"!==t.background&&(t.background=\"Highlight\"),\"HighlightText\"!==t.color&&(t.color=\"HighlightText\"),t.marginTop!==Z(-1.5)&&(t.marginTop=Z(-1.5)),t.paddingTop!==Z(4)&&(t.paddingTop=Z(4)),t.paddingBottom!==Z(0)&&(t.paddingBottom=Z(0))}}function rt(t,e=ot){let n=null,l=null,s=null,u=null,c=null,f=null,d=()=>{};function a(o){o.read(()=>{const o=r();if(!i(o))return n=null,s=null,u=null,f=null,d(),void(d=()=>{});const[a,g]=function(t){const e=t.getStartEndPoints();return t.isBackward()?[e[1],e[0]]:e}(o),p=a.getNode(),h=p.getKey(),m=a.offset,y=g.getNode(),v=y.getKey(),E=g.offset,w=t.getElementByKey(h),C=t.getElementByKey(v),S=null===n||w!==l||m!==s||h!==n.getKey(),x=null===u||C!==c||E!==f||v!==u.getKey();if((S||x)&&null!==w&&null!==C){const n=function(t,e,n,o,r,i,l){const s=(t._window?t._window.document:document).createRange();return s.setStart(...nt(t,e,n,o)),s.setEnd(...nt(t,r,i,l)),s}(t,a,p,w,g,y,C);d(),d=et(t,n,e)}n=p,l=w,s=m,u=y,c=C,f=E},{editor:t})}return a(t.getEditorState()),o(t.registerUpdateListener(({editorState:t})=>a(t)),()=>{d()})}function it(t,e){let n=null;const o=()=>{const o=t.getRootElement(),r=null!==o?o.ownerDocument.defaultView:null,i=null!==r?r.getSelection():null,l=null!==i?d(i,o).anchorNode:null;null!==l&&null!==o&&o.contains(l)?null!==n&&(n(),n=null):null===n&&(n=rt(t,e))};return t.registerRootListener(t=>{if(t){const e=t.ownerDocument;return e.addEventListener(\"selectionchange\",o),o(),()=>{null!==n&&n(),e.removeEventListener(\"selectionchange\",o)}}})}function lt(t,e){const n=t.ownerDocument,o=n.defaultView||window;let r=o.getComputedStyle(t);const i=\"absolute\"===r.position,l=e?/(auto|scroll|hidden)/:/(auto|scroll)/;if(\"fixed\"===r.position)return n.body;for(let e=t;e=a(e);)if(r=o.getComputedStyle(e),(!i||\"static\"!==r.position)&&l.test(r.overflow+r.overflowY+r.overflowX))return e;return n.body}function st(t,e){for(const n of e)if(t.type.startsWith(n))return!0;return!1}function ut(t,e){const n=t[Symbol.iterator]();return new Promise((t,o)=>{const r=[],i=()=>{const{done:l,value:s}=n.next();if(l)return t(r);const u=new FileReader;u.addEventListener(\"error\",o),u.addEventListener(\"load\",()=>{const t=u.result;\"string\"==typeof t&&r.push({file:s,result:t}),i()}),st(s,e)?u.readAsDataURL(s):i()};i()})}function ct(t,e){return Array.from(at(t,e))}function ft(t){return t?t.getAdjacentCaret():null}function dt(t,e){return Array.from(Ct(t,e))}function at(t,e){return yt(\"next\",t,e)}function gt(t,e){return Array.from(pt(t,e))}function*pt(t,e){for(const n of yt(\"next\",t,e)){yield n;const{node:t,depth:o}=n;if(g(t)&&!t.is(e))for(const e of p(t)){const n=h(t,e);null!==n&&(yield*ht(n,o+1))}}}function*ht(t,e){yield{depth:e,node:t};const n=e+1;if(g(t))for(const e of p(t)){const o=h(t,e);null!==o&&(yield*ht(o,n))}if(l(t))for(const e of t.getChildren())yield*ht(e,n)}function mt(t,e){const n=C(w(t,e));return n&&n[0]}function yt(t,e,n){const o=I(),r=e||o,i=l(r)?m(r,t):w(r,t),s=Et(r),u=n?O(E(w(n,t)))||mt(n,t):mt(r,t);let c=s;return V({hasNext:t=>null!==t,initial:i,map:t=>({depth:c,node:t.origin}),step:t=>{if(t.isSameNodeCaret(u))return null;T(t)&&c++;const e=C(t);return!e||e[0].isSameNodeCaret(u)?null:(c+=e[1],e[0])}})}function vt(t){const e=C(w(t,\"next\"));return e&&[e[0].origin,e[1]]}function Et(t){let e=-1;for(let n=t;null!==n;n=n.getParent()??y(n))e++;return e}function wt(t){const e=E(w(t,\"previous\")),n=C(e,\"root\");return n&&n[0].origin}function Ct(t,e){return yt(\"previous\",t,e)}function St(t,e){return Array.from(xt(t,e))}function*xt(t,e){const n=[];for(const o of yt(\"previous\",t,e)){for(;n.length>0&&o.depth<=n[n.length-1].depth;){const t=n.pop();yield*Nt(t.node,t.depth+1)}yield o;const{node:t,depth:r}=o;g(t)&&p(t).length>0&&!t.is(e)&&n.push({depth:r,node:t})}for(;n.length>0;){const t=n.pop();yield*Nt(t.node,t.depth+1)}}function*Nt(t,e){const n=p(t);for(let o=n.length-1;o>=0;o--){const r=h(t,n[o]);null!==r&&(yield*At(r,e))}}function*At(t,e){yield{depth:e,node:t};const n=e+1;if(l(t)){const e=t.getChildren();for(let t=e.length-1;t>=0;t--)yield*At(e[t],n)}g(t)&&(yield*Nt(t,n))}function bt(t,e){let n=t;for(;null!=n;){if(n instanceof e)return n;n=n.getParent()}return null}function _t(t){const e=v(t,t=>l(t)&&!t.isInline());return l(e)||J(4,t.__key),e}function Rt(t,e){const n=x(i(e)?S(e):e,\"next\"),o=K(n.anchor.origin),r=K(t.getLatest());if(null===o?null!==r:!o.is(r))return!1;const l=F(m(t,\"next\")),s=$(F(m(t,\"previous\")),\"next\");return H(n.anchor,l)<=0&&H(n.focus,s)>=0}function Lt(t,e,n,o){const r=t=>t instanceof e;return t.registerNodeTransform(e,t=>{const e=(t=>{const e=t.getChildren();for(let t=0;t<e.length;t++){const n=e[t];if(r(n))return null}let n=t,o=t;for(;null!==n;)if(o=n,n=n.getParent(),r(n))return{child:o,parent:n};return null})(t);if(null!==e){const{child:r,parent:i}=e;if(r.is(t)){o(i,t);const e=r.getNextSiblings(),l=e.length;if(i.insertAfter(r),0!==l){const t=n(i);r.insertAfter(t);for(let n=0;n<l;n++)t.append(e[n])}i.canBeEmpty()||0!==i.getChildrenSize()||i.remove()}}})}function Dt(t,e){const n=new Map,o=t._pendingEditorState;for(const[t,o]of e._nodeMap)n.set(t,k(o));o&&(o._nodeMap=n),U();const r=e._selection;j(null===r?null:r.clone())}function It(t){const e=r()||L();let n;if(i(e))n=D(e.focus,\"next\");else{if(null!=e){const t=e.getNodes(),o=t[t.length-1];o&&(n=w(o,\"next\"))}n=n||m(I(),\"previous\").getFlipped().insert(P())}const o=B(t,n),l=O(o),s=T(l)?F(l):o;return _(M(s)),t.getLatest()}function Pt(t){const e=r();if(!i(e))return void(e&&e.insertNodes([t]));const n=S(e);let o=x(N(n),\"next\").anchor;if(A(o)){const t=b(o);if(!t)return;o=t}const l=o.getFlipped();l.insert(t),_(R(l,l))}function Bt(t,e){const n=e();return t.replace(n),n.append(t),n}function Ot(t,e){return null!==t&&Object.getPrototypeOf(t).constructor.name===e.name}function Tt(t){let e=null;if(Ot(t,DragEvent)?e=t.dataTransfer:Ot(t,ClipboardEvent)&&(e=t.clipboardData),null===e)return[!1,[],!1];const n=e.types,o=n.includes(\"Files\"),r=n.includes(\"text/html\")||n.includes(\"text/plain\");return[o,Array.from(e.files),r]}function Ft(t,e){const n=[];for(let o=0;o<t.length;o++){const r=e(t[o]);null!==r&&n.push(r)}return n}function Mt(t){const e=r();if(!i(e))return!1;const n=new Set,o=e.getNodes();for(let e=0;e<o.length;e++){const r=o[e],i=r.getKey();if(n.has(i))continue;const s=v(r,t=>l(t)&&!t.isInline());if(null===s)continue;const u=s.getKey();s.canIndent()&&!n.has(u)&&(n.add(u),t(s))}return n.size>0}function Kt(t,e){m(t,\"next\").insert(e)}let $t=!(Y||!q)&&void 0;function Ht(t,e=!1){let n=1;if(function(){if(void 0===$t){const t=document.createElement(\"div\");t.style.position=\"absolute\",t.style.opacity=\"0\",t.style.width=\"100px\",t.style.left=\"-1000px\",document.body.appendChild(t);const e=t.getBoundingClientRect();t.style.setProperty(\"zoom\",\"2\"),$t=t.getBoundingClientRect().width===e.width,document.body.removeChild(t)}return $t}()||e){const e=t&&t.ownerDocument.defaultView||window;for(;t;)n*=Number(e.getComputedStyle(t).getPropertyValue(\"zoom\")),t=a(t)}return n}function kt(t){return null!==t._parentEditor}function Ut(t,e){return jt(t,e,null)}function jt(t,e,n){let o=!1;for(const r of Wt(t))e(r)?null!==n&&n(r):(o=!0,l(r)&&jt(r,e,n||(t=>r.insertAfter(t))),r.remove());return o}function zt(t,e){const n=[],o=Array.from(t).reverse();for(let t=o.pop();void 0!==t;t=o.pop())if(e(t))n.push(t);else if(l(t))for(const e of Wt(t))o.push(e);return n}function Vt(t){return Xt(m(t,\"next\"))}function Wt(t){return Xt(m(t,\"previous\"))}function Xt(t){return V({hasNext:W,initial:t.getAdjacentCaret(),map:t=>t.origin.getLatest(),step:t=>t.getAdjacentCaret()})}function Gt(t){z(w(t,\"next\")).splice(1,t.getChildren())}function Yt(t){const e=e=>X(e,t),n=(e,n)=>G(e,t,n);return{$get:e,$set:n,accessors:[e,n],makeGetterMethod:()=>function(){return e(this)},makeSetterMethod:()=>function(t){return n(this,t)},stateConfig:t}}function qt(t,e){const n=r();if(i(n)&&n.isCollapsed()){const o=v(n.anchor.getNode(),t);if(o){const t=o.getParent();if(null!==t&&t.getFirstChild()===o&&Qt(n.anchor,o))return o.insertBefore(P()).selectEnd(),e&&e.preventDefault(),!0}}return!1}function Jt(t,e){const n=r();if(i(n)&&n.isCollapsed()){const o=v(n.anchor.getNode(),t);if(o){const t=o.getParent();if(null!==t&&t.getLastChild()===o&&Zt(n.anchor,o))return o.insertAfter(P()).selectEnd(),e&&e.preventDefault(),!0}}return!1}function Qt(t,e){if(0!==t.offset)return!1;const n=e.getFirstDescendant()??e,o=t.getNode();return o===n||l(o)&&o.getFirstDescendant()===n}function Zt(t,n){if(!e(t))return!1;const o=n.getLastDescendant()??n,r=t.getNode();return r===o||l(r)&&r.getLastDescendant()===o}export{zt as $descendantsMatching,ct as $dfs,at as $dfsIterator,gt as $dfsWithSlots,pt as $dfsWithSlotsIterator,Ft as $filter,Vt as $firstToLastIterator,ft as $getAdjacentCaret,Et as $getDepth,_t as $getNearestBlockElementAncestorOrThrow,bt as $getNearestNodeOfType,wt as $getNextRightPreorderNode,vt as $getNextSiblingOrParentSibling,Mt as $handleIndentAndOutdent,Kt as $insertFirst,Pt as $insertNodeIntoLeaf,It as $insertNodeToNearestRoot,Zt as $isAtEndOfNode,Qt as $isAtStartOfNode,Rt as $isBlockFullySelected,kt as $isEditorIsNestedEditor,Wt as $lastToFirstIterator,Jt as $onEscapeDown,qt as $onEscapeUp,Dt as $restoreEditorState,dt as $reverseDfs,Ct as $reverseDfsIterator,St as $reverseDfsWithSlots,xt as $reverseDfsWithSlotsIterator,Ut as $unwrapAndFilterDescendants,Gt as $unwrapNode,Bt as $wrapNodeInElement,Ht as calculateZoomLevel,Q as dedupeSelectionRects,Tt as eventFiles,lt as getScrollParent,st as isMimeType,Yt as makeStateWrapper,rt as markSelection,ut as mediaFileReader,Ot as objectKlassEquals,et as positionNodeOnRange,Lt as registerNestedElementResolver,it as selectionAlwaysOnDisplay};\n"],"x_google_ignoreList":[0,1],"mappings":";;AASowC,SAAS,EAAE,GAAE;CAAC,IAAM,IAAEA,EAAE,CAAC,CAAC,gBAAgB,EAAE,OAAO,CAAC;CAAE,IAAU,MAAP,MAAS,OAAO;CAAK,IAAM,IAAE,EAAE,cAAc;CAAY,OAAc,MAAP,OAAS,OAAK,EAAE,iBAAiB,CAAC;AAAC;AAAC,SAAS,EAAE,GAAE;CAAC,OAAO,EAAEC,EAAE,CAAC,IAAE,IAAE,EAAE,iBAAiB,CAAC;AAAC;AAAC,SAAS,EAAE,GAAE;CAAC,IAAM,IAAE,EAAE,CAAC;CAAE,OAAc,MAAP,QAAkB,EAAE,cAAV;AAAmB;AAAC,SAAS,EAAE,GAAE,GAAE,IAAE,QAAO;CAAC,IAAM,IAAE,EAAE,kBAAkB;CAAE,IAAG,EAAE,WAAW,CAAC,KAAG,CAACC,GAAE,CAAC,KAAU,MAAP,MAAS;EAAC,IAAK,CAAC,GAAE,KAAG,GAAE,IAAE,EAAE,WAAW,GAAE,IAAE,EAAE,QAAQ,GAAE,IAAE,EAAE,QAAQ,GAAE,IAAE,EAAE,GAAG,CAAC,GAAE,IA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