@uva-glass/component-library 3.50.6 → 3.50.7

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 (57) hide show
  1. package/dist/{Lexical.prod-DBU6xTBY.js → Lexical.prod-BAE-wnll.js} +873 -863
  2. package/dist/Lexical.prod-BAE-wnll.js.map +1 -0
  3. package/dist/LexicalClipboard.prod-BS4qAkmJ.js +263 -0
  4. package/dist/LexicalClipboard.prod-BS4qAkmJ.js.map +1 -0
  5. package/dist/{LexicalLink.prod-DV9kT537.js → LexicalLink.prod-C6Or2Yo6.js} +97 -97
  6. package/dist/{LexicalLink.prod-DV9kT537.js.map → LexicalLink.prod-C6Or2Yo6.js.map} +1 -1
  7. package/dist/{LexicalList.prod-2UfLUgO1.js → LexicalList.prod-rTq41CO0.js} +24 -24
  8. package/dist/{LexicalList.prod-2UfLUgO1.js.map → LexicalList.prod-rTq41CO0.js.map} +1 -1
  9. package/dist/LexicalSelection.prod-fLzEGOT_.js +116 -0
  10. package/dist/LexicalSelection.prod-fLzEGOT_.js.map +1 -0
  11. package/dist/{LexicalTable.prod-CZ1mYUR-.js → LexicalTable.prod-BBI7yaOy.js} +118 -118
  12. package/dist/LexicalTable.prod-BBI7yaOy.js.map +1 -0
  13. package/dist/{LexicalUtils.prod-C3vvQk50.js → LexicalUtils.prod-D8DAKg7O.js} +36 -36
  14. package/dist/{LexicalUtils.prod-C3vvQk50.js.map → LexicalUtils.prod-D8DAKg7O.js.map} +1 -1
  15. package/dist/{TableCellResizerPlugin-CxFy7dbe.js → TableCellResizerPlugin-HPo4ZkHo.js} +39 -39
  16. package/dist/{TableCellResizerPlugin-CxFy7dbe.js.map → TableCellResizerPlugin-HPo4ZkHo.js.map} +1 -1
  17. package/dist/{TablePlugin-8TKXJMYE.js → TablePlugin-CeZO4BR1.js} +70 -70
  18. package/dist/{TablePlugin-8TKXJMYE.js.map → TablePlugin-CeZO4BR1.js.map} +1 -1
  19. package/dist/components/CheckboxTree/CheckboxTree.js +1 -1
  20. package/dist/components/FormInput/FormInput.js +1 -1
  21. package/dist/components/InputField/InputField.stories.js +1 -1
  22. package/dist/components/MultiSelect/MultiSelect.js +1 -1
  23. package/dist/components/MultiSelect/MultiSelect.stories.js +1 -1
  24. package/dist/components/MultiSelect/components/MultiSelectHeader.js +1 -1
  25. package/dist/components/MultiSelect/index.js +1 -1
  26. package/dist/components/PeriodSelector/PeriodSelector.js +1 -1
  27. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +1 -1
  28. package/dist/components/RadioTabSelector/RadioTabSelector.js +1 -1
  29. package/dist/components/RteEditor/EditorHeader/EditorHeader.js +1 -1
  30. package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +7 -7
  31. package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +2 -2
  32. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +1 -1
  33. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +41 -41
  34. package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
  35. package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +14 -14
  36. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +5 -5
  37. package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/TableCellResizerPlugin.js +4 -4
  38. package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/index.js +1 -1
  39. package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +1 -1
  40. package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +4 -4
  41. package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +12 -12
  42. package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
  43. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +16 -16
  44. package/dist/components/RteEditor/Plugins/index.js +2 -2
  45. package/dist/components/RteEditor/RteEditor.js +219 -219
  46. package/dist/components/RteEditor/RteEditor.js.map +1 -1
  47. package/dist/components/RteEditor/helpers.js +4 -4
  48. package/dist/components/RteEditor/nodes/TableWrapperNode/TableWrapperNode.js +15 -15
  49. package/dist/components/index.js +1 -1
  50. package/dist/index.js +1 -1
  51. package/package.json +5 -5
  52. package/dist/Lexical.prod-DBU6xTBY.js.map +0 -1
  53. package/dist/LexicalClipboard.prod-CzGBnMdD.js +0 -272
  54. package/dist/LexicalClipboard.prod-CzGBnMdD.js.map +0 -1
  55. package/dist/LexicalSelection.prod-C1JYA_go.js +0 -114
  56. package/dist/LexicalSelection.prod-C1JYA_go.js.map +0 -1
  57. package/dist/LexicalTable.prod-CZ1mYUR-.js.map +0 -1
@@ -1,272 +0,0 @@
1
- import { A as E, $ as U } from "./LexicalSelection.prod-C1JYA_go.js";
2
- import { aw as j, ax as P, ay as O, ah as b, c as q, az as T, aA as D, aB as M, _ as g, aC as R, e as x, aD as G, d as Y, aE as L, M as K, f as C, a as v, aF as Q, a2 as H, aG as V, N as X, s as Z, a6 as ee, am as te, aH as ne, H as oe, aI as re, aJ as le, m as se } from "./Lexical.prod-DBU6xTBY.js";
3
- import { L as ie } from "./LexicalUtils.prod-C3vvQk50.js";
4
- function ae(t, e) {
5
- const l = j(e) ? e.body.childNodes : e.childNodes;
6
- let o = [];
7
- const s = [];
8
- for (const c of l) if (!$.has(c.nodeName)) {
9
- const r = k(c, t, s, !1);
10
- r !== null && (o = o.concat(r));
11
- }
12
- return (function(c) {
13
- for (const r of c) r.getNextSibling() instanceof P && r.insertAfter(O());
14
- for (const r of c) {
15
- const n = r.getChildren();
16
- for (const a of n) r.insertBefore(a);
17
- r.remove();
18
- }
19
- })(s), o;
20
- }
21
- function ce(t, e) {
22
- if (typeof document > "u" || typeof window > "u" && global.window === void 0) throw new Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");
23
- const l = document.createElement("div"), o = b().getChildren();
24
- for (let s = 0; s < o.length; s++)
25
- J(t, o[s], l, e);
26
- return l.innerHTML;
27
- }
28
- function J(t, e, l, o = null) {
29
- let s = o === null || e.isSelected(o);
30
- const c = g(e) && e.excludeFromCopy("html");
31
- let r = e;
32
- if (o !== null) {
33
- let p = R(e);
34
- p = x(p) && o !== null ? E(o, p) : p, r = p;
35
- }
36
- const n = g(r) ? r.getChildren() : [], a = G(t, r.getType());
37
- let i;
38
- i = a && a.exportDOM !== void 0 ? a.exportDOM(t, r) : r.exportDOM(t);
39
- const { element: u, after: h } = i;
40
- if (!u) return !1;
41
- const d = document.createDocumentFragment();
42
- for (let p = 0; p < n.length; p++) {
43
- const f = n[p], y = J(t, f, d, o);
44
- !s && g(e) && y && e.extractWithChild(f, o, "html") && (s = !0);
45
- }
46
- if (s && !c) {
47
- if ((Y(u) || L(u)) && u.append(d), l.append(u), h) {
48
- const p = h.call(r, u);
49
- p && (L(u) ? u.replaceChildren(p) : u.replaceWith(p));
50
- }
51
- } else l.append(d);
52
- return s;
53
- }
54
- const $ = /* @__PURE__ */ new Set(["STYLE", "SCRIPT"]);
55
- function k(t, e, l, o, s = /* @__PURE__ */ new Map(), c) {
56
- let r = [];
57
- if ($.has(t.nodeName)) return r;
58
- let n = null;
59
- const a = (function(f, y) {
60
- const { nodeName: W } = f, A = y._htmlConversions.get(W.toLowerCase());
61
- let w = null;
62
- if (A !== void 0) for (const B of A) {
63
- const S = B(f);
64
- S !== null && (w === null || (w.priority || 0) <= (S.priority || 0)) && (w = S);
65
- }
66
- return w !== null ? w.conversion : null;
67
- })(t, e), i = a ? a(t) : null;
68
- let u = null;
69
- if (i !== null) {
70
- u = i.after;
71
- const f = i.node;
72
- if (n = Array.isArray(f) ? f[f.length - 1] : f, n !== null) {
73
- for (const [, y] of s) if (n = y(n, c), !n) break;
74
- n && r.push(...Array.isArray(f) ? f : [n]);
75
- }
76
- i.forChild != null && s.set(t.nodeName, i.forChild);
77
- }
78
- const h = t.childNodes;
79
- let d = [];
80
- const p = (n == null || !q(n)) && (n != null && T(n) || o);
81
- for (let f = 0; f < h.length; f++) d.push(...k(h[f], e, l, p, new Map(s), n));
82
- return u != null && (d = u(d)), D(t) && (d = ue(t, d, p ? () => {
83
- const f = new P();
84
- return l.push(f), f;
85
- } : K)), n == null ? d.length > 0 ? r = r.concat(d) : D(t) && (function(f) {
86
- return f.nextSibling == null || f.previousSibling == null ? !1 : M(f.nextSibling) && M(f.previousSibling);
87
- })(t) && (r = r.concat(O())) : g(n) && n.append(...d), r;
88
- }
89
- function ue(t, e, l) {
90
- const o = t.style.textAlign, s = [];
91
- let c = [];
92
- for (let r = 0; r < e.length; r++) {
93
- const n = e[r];
94
- if (T(n)) o && !n.getFormat() && n.setFormat(o), s.push(n);
95
- else if (c.push(n), r === e.length - 1 || r < e.length - 1 && T(e[r + 1])) {
96
- const a = l();
97
- a.setFormat(o), a.append(...c), s.push(a), c = [];
98
- }
99
- }
100
- return s;
101
- }
102
- function N(t, ...e) {
103
- const l = new URL("https://lexical.dev/docs/error"), o = new URLSearchParams();
104
- o.append("code", t);
105
- for (const s of e) o.append("v", s);
106
- throw l.search = o.toString(), Error(`Minified Lexical error #${t}; visit ${l.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`);
107
- }
108
- function fe(t, e = v()) {
109
- return e == null && N(166), C(e) && e.isCollapsed() || e.getNodes().length === 0 ? "" : ce(t, e);
110
- }
111
- function de(t, e = v()) {
112
- return e == null && N(166), C(e) && e.isCollapsed() || e.getNodes().length === 0 ? null : JSON.stringify(pe(t, e));
113
- }
114
- function Ce(t, e, l) {
115
- const o = t.getData("application/x-lexical-editor");
116
- if (o) try {
117
- const n = JSON.parse(o);
118
- if (n.namespace === l._config.namespace && Array.isArray(n.nodes))
119
- return F(l, he(n.nodes), e);
120
- } catch {
121
- }
122
- const s = t.getData("text/html"), c = t.getData("text/plain");
123
- if (s && c !== s) try {
124
- const n = new DOMParser().parseFromString((function(a) {
125
- return window.trustedTypes && window.trustedTypes.createPolicy ? window.trustedTypes.createPolicy("lexical", { createHTML: (i) => i }).createHTML(a) : a;
126
- })(s), "text/html");
127
- return F(l, ae(l, n), e);
128
- } catch {
129
- }
130
- const r = c || t.getData("text/uri-list");
131
- if (r != null) if (C(e)) {
132
- const n = r.split(/(\r?\n|\t)/);
133
- n[n.length - 1] === "" && n.pop();
134
- for (let a = 0; a < n.length; a++) {
135
- const i = v();
136
- if (C(i)) {
137
- const u = n[a];
138
- u === `
139
- ` || u === `\r
140
- ` ? i.insertParagraph() : u === " " ? i.insertNodes([Q()]) : i.insertText(u);
141
- }
142
- }
143
- } else e.insertRawText(r);
144
- }
145
- function F(t, e, l) {
146
- t.dispatchCommand(Z, { nodes: e, selection: l }) || (l.insertNodes(e), (function(o) {
147
- if (C(o) && o.isCollapsed()) {
148
- const s = o.anchor;
149
- let c = null;
150
- const r = ee(s, "previous");
151
- if (r) if (te(r)) c = r.origin;
152
- else {
153
- const n = ne(r, oe(b(), "next").getFlipped());
154
- for (const a of n) {
155
- if (x(a.origin)) {
156
- c = a.origin;
157
- break;
158
- }
159
- if (g(a.origin) && !a.origin.isInline()) break;
160
- }
161
- }
162
- if (c && x(c)) {
163
- const n = c.getFormat(), a = c.getStyle();
164
- o.format === n && o.style === a || (o.format = n, o.style = a, o.dirty = !0);
165
- }
166
- }
167
- })(l));
168
- }
169
- function I(t, e, l, o = []) {
170
- let s = e === null || l.isSelected(e);
171
- const c = g(l) && l.excludeFromCopy("html");
172
- let r = l;
173
- if (e !== null) {
174
- let i = R(l);
175
- i = x(i) && e !== null ? E(e, i) : i, r = i;
176
- }
177
- const n = g(r) ? r.getChildren() : [], a = (function(i) {
178
- const u = i.exportJSON(), h = i.constructor;
179
- if (u.type !== h.getType() && N(58, h.name), g(i)) {
180
- const d = u.children;
181
- Array.isArray(d) || N(59, h.name);
182
- }
183
- return u;
184
- })(r);
185
- if (x(r)) {
186
- const i = r.__text;
187
- i.length > 0 ? a.text = i : s = !1;
188
- }
189
- for (let i = 0; i < n.length; i++) {
190
- const u = n[i], h = I(t, e, u, a.children);
191
- !s && g(l) && h && l.extractWithChild(u, e, "clone") && (s = !0);
192
- }
193
- if (s && !c) o.push(a);
194
- else if (Array.isArray(a.children)) for (let i = 0; i < a.children.length; i++) {
195
- const u = a.children[i];
196
- o.push(u);
197
- }
198
- return s;
199
- }
200
- function pe(t, e) {
201
- const l = [], o = b().getChildren();
202
- for (let s = 0; s < o.length; s++)
203
- I(t, e, o[s], l);
204
- return { namespace: t._config.namespace, nodes: l };
205
- }
206
- function he(t) {
207
- const e = [];
208
- for (let l = 0; l < t.length; l++) {
209
- const o = t[l], s = re(o);
210
- x(s) && U(s), e.push(s);
211
- }
212
- return e;
213
- }
214
- let m = null;
215
- async function ve(t, e, l) {
216
- if (m !== null) return !1;
217
- if (e !== null) return new Promise((i, u) => {
218
- t.update(() => {
219
- i(_(t, e, l));
220
- });
221
- });
222
- const o = t.getRootElement(), s = t._window || window, c = s.document, r = H(s);
223
- if (o === null || r === null) return !1;
224
- const n = c.createElement("span");
225
- n.style.cssText = "position: fixed; top: -1000px;", n.append(c.createTextNode("#")), o.append(n);
226
- const a = new Range();
227
- return a.setStart(n, 0), a.setEnd(n, 1), r.removeAllRanges(), r.addRange(a), new Promise((i, u) => {
228
- const h = t.registerCommand(V, (d) => (ie(d, ClipboardEvent) && (h(), m !== null && (s.clearTimeout(m), m = null), i(_(t, d, l))), !0), X);
229
- m = s.setTimeout(() => {
230
- h(), m = null, i(!1);
231
- }, 50), c.execCommand("copy"), n.remove();
232
- });
233
- }
234
- function _(t, e, l) {
235
- if (l === void 0) {
236
- const s = H(t._window), c = v();
237
- if (!c || c.isCollapsed() || !s) return !1;
238
- const r = s.anchorNode, n = s.focusNode;
239
- if (r !== null && n !== null && !le(t, r, n)) return !1;
240
- l = ge(c);
241
- }
242
- e.preventDefault();
243
- const o = e.clipboardData;
244
- return o !== null && (me(o, l), !0);
245
- }
246
- const z = [["text/html", fe], ["application/x-lexical-editor", de]];
247
- function ge(t = v()) {
248
- const e = { "text/plain": t ? t.getTextContent() : "" };
249
- if (t) {
250
- const l = se();
251
- for (const [o, s] of z) {
252
- const c = s(l, t);
253
- c !== null && (e[o] = c);
254
- }
255
- }
256
- return e;
257
- }
258
- function me(t, e) {
259
- for (const [l] of z) e[l] === void 0 && t.setData(l, "");
260
- for (const l in e) {
261
- const o = e[l];
262
- o !== void 0 && t.setData(l, o);
263
- }
264
- }
265
- export {
266
- Ce as A,
267
- ve as F,
268
- ge as J,
269
- ae as g,
270
- ce as x
271
- };
272
- //# sourceMappingURL=LexicalClipboard.prod-CzGBnMdD.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LexicalClipboard.prod-CzGBnMdD.js","sources":["../node_modules/@lexical/html/LexicalHtml.prod.mjs","../node_modules/@lexical/clipboard/LexicalClipboard.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{$sliceSelectedTextNodeContent as e}from\"@lexical/selection\";import{isHTMLElement as n,isBlockDomNode as t}from\"@lexical/utils\";import{isDOMDocumentNode as o,$getRoot as l,$isElementNode as r,$cloneWithProperties as i,$isTextNode as s,getRegisteredNode as c,isDocumentFragment as u,$isRootOrShadowRoot as f,$isBlockElementNode as a,$createLineBreakNode as d,ArtificialNode__DO_NOT_USE as p,isInlineDomNode as h,$createParagraphNode as m}from\"lexical\";function g(e,n){const t=o(n)?n.body.childNodes:n.childNodes;let l=[];const r=[];for(const n of t)if(!y.has(n.nodeName)){const t=C(n,e,r,!1);null!==t&&(l=l.concat(t))}return function(e){for(const n of e)n.getNextSibling()instanceof p&&n.insertAfter(d());for(const n of e){const e=n.getChildren();for(const t of e)n.insertBefore(t);n.remove()}}(r),l}function x(e,n){if(\"undefined\"==typeof document||\"undefined\"==typeof window&&void 0===global.window)throw new Error(\"To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.\");const t=document.createElement(\"div\"),o=l().getChildren();for(let l=0;l<o.length;l++){w(e,o[l],t,n)}return t.innerHTML}function w(t,o,l,f=null){let a=null===f||o.isSelected(f);const d=r(o)&&o.excludeFromCopy(\"html\");let p=o;if(null!==f){let n=i(o);n=s(n)&&null!==f?e(f,n):n,p=n}const h=r(p)?p.getChildren():[],m=c(t,p.getType());let g;g=m&&void 0!==m.exportDOM?m.exportDOM(t,p):p.exportDOM(t);const{element:x,after:y}=g;if(!x)return!1;const C=document.createDocumentFragment();for(let e=0;e<h.length;e++){const n=h[e],l=w(t,n,C,f);!a&&r(o)&&l&&o.extractWithChild(n,f,\"html\")&&(a=!0)}if(a&&!d){if((n(x)||u(x))&&x.append(C),l.append(x),y){const e=y.call(p,x);e&&(u(x)?x.replaceChildren(e):x.replaceWith(e))}}else l.append(C);return a}const y=new Set([\"STYLE\",\"SCRIPT\"]);function C(e,n,o,l,i=new Map,s){let c=[];if(y.has(e.nodeName))return c;let u=null;const g=function(e,n){const{nodeName:t}=e,o=n._htmlConversions.get(t.toLowerCase());let l=null;if(void 0!==o)for(const n of o){const t=n(e);null!==t&&(null===l||(l.priority||0)<=(t.priority||0))&&(l=t)}return null!==l?l.conversion:null}(e,n),x=g?g(e):null;let w=null;if(null!==x){w=x.after;const n=x.node;if(u=Array.isArray(n)?n[n.length-1]:n,null!==u){for(const[,e]of i)if(u=e(u,s),!u)break;u&&c.push(...Array.isArray(n)?n:[u])}null!=x.forChild&&i.set(e.nodeName,x.forChild)}const S=e.childNodes;let v=[];const N=(null==u||!f(u))&&(null!=u&&a(u)||l);for(let e=0;e<S.length;e++)v.push(...C(S[e],n,o,N,new Map(i),u));return null!=w&&(v=w(v)),t(e)&&(v=b(e,v,N?()=>{const e=new p;return o.push(e),e}:m)),null==u?v.length>0?c=c.concat(v):t(e)&&function(e){if(null==e.nextSibling||null==e.previousSibling)return!1;return h(e.nextSibling)&&h(e.previousSibling)}(e)&&(c=c.concat(d())):r(u)&&u.append(...v),c}function b(e,n,t){const o=e.style.textAlign,l=[];let r=[];for(let e=0;e<n.length;e++){const i=n[e];if(a(i))o&&!i.getFormat()&&i.setFormat(o),l.push(i);else if(r.push(i),e===n.length-1||e<n.length-1&&a(n[e+1])){const e=t();e.setFormat(o),e.append(...r),l.push(e),r=[]}}return l}export{x as $generateHtmlFromNodes,g as $generateNodesFromDOM};\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{$generateHtmlFromNodes as t,$generateNodesFromDOM as e}from\"@lexical/html\";import{$addNodeStyle as n,$sliceSelectedTextNodeContent as o}from\"@lexical/selection\";import{objectKlassEquals as r}from\"@lexical/utils\";import{$getSelection as i,$isRangeSelection as l,$createTabNode as s,SELECTION_INSERT_CLIPBOARD_NODES_COMMAND as c,$caretFromPoint as a,$isTextPointCaret as u,$getCaretRange as f,$getChildCaret as d,$getRoot as p,$isTextNode as g,$isElementNode as m,$parseSerializedNode as h,getDOMSelection as x,COPY_COMMAND as y,COMMAND_PRIORITY_CRITICAL as w,isSelectionWithinEditor as T,$getEditor as v,$cloneWithProperties as C}from\"lexical\";function D(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 N(e,n=i()){return null==n&&D(166),l(n)&&n.isCollapsed()||0===n.getNodes().length?\"\":t(e,n)}function S(t,e=i()){return null==e&&D(166),l(e)&&e.isCollapsed()||0===e.getNodes().length?null:JSON.stringify(E(t,e))}function R(t,e){const n=t.getData(\"text/plain\")||t.getData(\"text/uri-list\");null!=n&&e.insertRawText(n)}function A(t,n,o){const r=t.getData(\"application/x-lexical-editor\");if(r)try{const t=JSON.parse(r);if(t.namespace===o._config.namespace&&Array.isArray(t.nodes)){return P(o,L(t.nodes),n)}}catch(t){}const c=t.getData(\"text/html\"),a=t.getData(\"text/plain\");if(c&&a!==c)try{const t=(new DOMParser).parseFromString(function(t){if(window.trustedTypes&&window.trustedTypes.createPolicy){return window.trustedTypes.createPolicy(\"lexical\",{createHTML:t=>t}).createHTML(t)}return t}(c),\"text/html\");return P(o,e(o,t),n)}catch(t){}const u=a||t.getData(\"text/uri-list\");if(null!=u)if(l(n)){const t=u.split(/(\\r?\\n|\\t)/);\"\"===t[t.length-1]&&t.pop();for(let e=0;e<t.length;e++){const n=i();if(l(n)){const o=t[e];\"\\n\"===o||\"\\r\\n\"===o?n.insertParagraph():\"\\t\"===o?n.insertNodes([s()]):n.insertText(o)}}}else n.insertRawText(u)}function P(t,e,n){t.dispatchCommand(c,{nodes:e,selection:n})||(n.insertNodes(e),function(t){if(l(t)&&t.isCollapsed()){const e=t.anchor;let n=null;const o=a(e,\"previous\");if(o)if(u(o))n=o.origin;else{const t=f(o,d(p(),\"next\").getFlipped());for(const e of t){if(g(e.origin)){n=e.origin;break}if(m(e.origin)&&!e.origin.isInline())break}}if(n&&g(n)){const e=n.getFormat(),o=n.getStyle();t.format===e&&t.style===o||(t.format=e,t.style=o,t.dirty=!0)}}}(n))}function _(t,e,n,r=[]){let i=null===e||n.isSelected(e);const l=m(n)&&n.excludeFromCopy(\"html\");let s=n;if(null!==e){let t=C(n);t=g(t)&&null!==e?o(e,t):t,s=t}const c=m(s)?s.getChildren():[],a=function(t){const e=t.exportJSON(),n=t.constructor;if(e.type!==n.getType()&&D(58,n.name),m(t)){const t=e.children;Array.isArray(t)||D(59,n.name)}return e}(s);if(g(s)){const t=s.__text;t.length>0?a.text=t:i=!1}for(let o=0;o<c.length;o++){const r=c[o],l=_(t,e,r,a.children);!i&&m(n)&&l&&n.extractWithChild(r,e,\"clone\")&&(i=!0)}if(i&&!l)r.push(a);else if(Array.isArray(a.children))for(let t=0;t<a.children.length;t++){const e=a.children[t];r.push(e)}return i}function E(t,e){const n=[],o=p().getChildren();for(let r=0;r<o.length;r++){_(t,e,o[r],n)}return{namespace:t._config.namespace,nodes:n}}function L(t){const e=[];for(let o=0;o<t.length;o++){const r=t[o],i=h(r);g(i)&&n(i),e.push(i)}return e}let b=null;async function F(t,e,n){if(null!==b)return!1;if(null!==e)return new Promise((o,r)=>{t.update(()=>{o(M(t,e,n))})});const o=t.getRootElement(),i=t._window||window,l=i.document,s=x(i);if(null===o||null===s)return!1;const c=l.createElement(\"span\");c.style.cssText=\"position: fixed; top: -1000px;\",c.append(l.createTextNode(\"#\")),o.append(c);const a=new Range;return a.setStart(c,0),a.setEnd(c,1),s.removeAllRanges(),s.addRange(a),new Promise((e,o)=>{const s=t.registerCommand(y,o=>(r(o,ClipboardEvent)&&(s(),null!==b&&(i.clearTimeout(b),b=null),e(M(t,o,n))),!0),w);b=i.setTimeout(()=>{s(),b=null,e(!1)},50),l.execCommand(\"copy\"),c.remove()})}function M(t,e,n){if(void 0===n){const e=x(t._window),o=i();if(!o||o.isCollapsed())return!1;if(!e)return!1;const r=e.anchorNode,l=e.focusNode;if(null!==r&&null!==l&&!T(t,r,l))return!1;n=J(o)}e.preventDefault();const o=e.clipboardData;return null!==o&&(k(o,n),!0)}const O=[[\"text/html\",N],[\"application/x-lexical-editor\",S]];function J(t=i()){const e={\"text/plain\":t?t.getTextContent():\"\"};if(t){const n=v();for(const[o,r]of O){const i=r(n,t);null!==i&&(e[o]=i)}}return e}function k(t,e){for(const[n]of O)void 0===e[n]&&t.setData(n,\"\");for(const n in e){const o=e[n];void 0!==o&&t.setData(n,o)}}export{E as $generateJSONFromSelectedNodes,L as $generateNodesFromSerializedNodes,J as $getClipboardDataFromSelection,N as $getHtmlContent,S as $getLexicalContent,R as $insertDataTransferForPlainText,A as $insertDataTransferForRichText,P as $insertGeneratedNodes,F as copyToClipboard,k as setLexicalClipboardDataTransfer};\n"],"names":["g","e","n","t","o","l","r","y","C","p","d","x","w","f","a","i","s","h","m","c","u","S","v","N","b","D","E","A","P","L","_","F","M","T","J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GAAE5B,CAAC,EAAE;AAAS,IAAAH,IAAEgC,GAAE9B,CAAC;AAAA,EAAC;AAAC,IAAE,eAAc;AAAG,QAAM,IAAE,EAAE;AAAc,SAAc,MAAP,SAAW+B,GAAE,GAAEjC,CAAC,GAAE;AAAG;AAAC,MAAMkC,IAAE,CAAC,CAAC,aAAYb,EAAC,GAAE,CAAC,gCAA+BF,EAAC,CAAC;AAAE,SAASa,GAAE,IAAEnB,EAAC,GAAG;AAAC,QAAM,IAAE,EAAC,cAAa,IAAE,EAAE,eAAc,IAAG,GAAE;AAAE,MAAG,GAAE;AAAC,UAAMb,IAAEoB,GAAC;AAAG,eAAS,CAAC,GAAEhB,CAAC,KAAI8B,GAAE;AAAC,YAAMrB,IAAET,EAAEJ,GAAE,CAAC;AAAE,MAAOa,MAAP,SAAW,EAAE,CAAC,IAAEA;AAAA,IAAE;AAAA,EAAC;AAAC,SAAO;AAAC;AAAC,SAASoB,GAAE,GAAE,GAAE;AAAC,aAAS,CAACjC,CAAC,KAAIkC,EAAE,CAAS,EAAElC,CAAC,MAAZ,UAAe,EAAE,QAAQA,GAAE,EAAE;AAAE,aAAUA,KAAK,GAAE;AAAC,UAAM,IAAE,EAAEA,CAAC;AAAE,IAAS,MAAT,UAAY,EAAE,QAAQA,GAAE,CAAC;AAAA,EAAC;AAAC;","x_google_ignoreList":[0,1]}
@@ -1,114 +0,0 @@
1
- import { a6 as F, a7 as I, a8 as B, aa as C, _ as a, an as E, a5 as P, ao as T, ap as b, m as O, a4 as V, b as m, aq as p, a as Z, a1 as q } from "./Lexical.prod-DBU6xTBY.js";
2
- const K = /* @__PURE__ */ new Map();
3
- function h(e) {
4
- const t = {};
5
- if (!e) return t;
6
- const n = e.split(";");
7
- for (const s of n) if (s !== "") {
8
- const [r, o] = s.split(/:([^]+)/);
9
- r && o && (t[r.trim()] = o.trim());
10
- }
11
- return t;
12
- }
13
- function H(e) {
14
- let t = K.get(e);
15
- return t === void 0 && (t = h(e), K.set(e, t)), t;
16
- }
17
- function w(e) {
18
- const t = O().getElementByKey(e.getKey());
19
- if (t === null) return null;
20
- const n = t.ownerDocument.defaultView;
21
- return n === null ? null : n.getComputedStyle(t);
22
- }
23
- function N(e) {
24
- return w(P(e) ? e : e.getParentOrThrow());
25
- }
26
- function J(e) {
27
- const t = N(e);
28
- return t !== null && t.direction === "rtl";
29
- }
30
- function Q(e, t) {
31
- const n = e.getStartEndPoints();
32
- if (t.isSelected(e) && !T(t) && n !== null) {
33
- const [s, r] = n, o = e.isBackward(), i = s.getNode(), c = r.getNode(), f = t.is(i), g = t.is(c);
34
- if (f || g) {
35
- const [u, l] = b(e), v = i.is(c), M = t.is(o ? c : i), S = t.is(o ? i : c);
36
- let y, d = 0;
37
- v ? (d = u > l ? l : u, y = u > l ? u : l) : M ? (d = o ? l : u, y = void 0) : S && (d = 0, y = o ? u : l), t.__text = t.__text.slice(d, y);
38
- }
39
- }
40
- return t;
41
- }
42
- function R(e) {
43
- const t = e.getStyle(), n = h(t);
44
- K.set(t, n);
45
- }
46
- function z(e, t) {
47
- const n = e.getFormatType(), s = e.getIndent();
48
- n !== t.getFormatType() && t.setFormat(n), s !== t.getIndent() && t.setIndent(s);
49
- }
50
- function W(e, t, n = z) {
51
- if (e === null) return;
52
- const s = e.getStartEndPoints(), r = /* @__PURE__ */ new Map();
53
- let o = null;
54
- if (s) {
55
- const [i, c] = s;
56
- o = V(), o.anchor.set(i.key, i.offset, i.type), o.focus.set(c.key, c.offset, c.type);
57
- const f = m(i.getNode(), p), g = m(c.getNode(), p);
58
- a(f) && r.set(f.getKey(), f), a(g) && r.set(g.getKey(), g);
59
- }
60
- for (const i of e.getNodes()) if (a(i) && p(i)) r.set(i.getKey(), i);
61
- else if (s === null) {
62
- const c = m(i, p);
63
- a(c) && r.set(c.getKey(), c);
64
- }
65
- for (const [i, c] of r) {
66
- const f = t();
67
- n(c, f), c.replace(f, !0), o && (i === o.anchor.key && o.anchor.set(f.getKey(), o.anchor.offset, o.anchor.type), i === o.focus.key && o.focus.set(f.getKey(), o.focus.offset, o.focus.type));
68
- }
69
- o && e.is(Z()) && q(o);
70
- }
71
- function _(e) {
72
- const t = k(e);
73
- return t !== null && t.writingMode === "vertical-rl";
74
- }
75
- function k(e) {
76
- const t = e.anchor.getNode();
77
- return a(t) ? w(t) : N(t);
78
- }
79
- function Y(e, t) {
80
- let n = _(e) ? !t : t;
81
- x(e) && (n = !n);
82
- const s = F(e.focus, n ? "previous" : "next");
83
- if (I(s)) return !1;
84
- for (const r of B(s)) {
85
- if (C(r)) return !r.origin.isInline();
86
- if (!a(r.origin)) {
87
- if (E(r.origin)) return !0;
88
- break;
89
- }
90
- }
91
- return !1;
92
- }
93
- function A(e, t, n, s) {
94
- e.modify(t ? "extend" : "move", n, s);
95
- }
96
- function x(e) {
97
- const t = k(e);
98
- return t !== null && t.direction === "rtl";
99
- }
100
- function $(e, t, n) {
101
- const s = x(e);
102
- let r;
103
- r = _(e) || s ? !n : n, A(e, t, r, "character");
104
- }
105
- export {
106
- R as $,
107
- Q as A,
108
- H as F,
109
- W as V,
110
- Y,
111
- $ as t,
112
- J as z
113
- };
114
- //# sourceMappingURL=LexicalSelection.prod-C1JYA_go.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LexicalSelection.prod-C1JYA_go.js","sources":["../node_modules/@lexical/selection/LexicalSelection.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{$isTextNode as e,$getEditor as t,$isRootNode as n,$isElementNode as o,$getNodeByKey as l,$getPreviousSelection as r,$createTextNode as s,$isRangeSelection as i,$getSelection as c,$caretRangeFromSelection as f,$isTokenOrSegmented as u,$getCharacterOffsets as g,$createRangeSelection as a,$findMatchingParent as d,INTERNAL_$isBlock as p,$setSelection as h,$caretFromPoint as y,$isExtendableTextPointCaret as m,$extendCaretToRange as S,$isChildCaret as x,$isDecoratorNode as T,$isRootOrShadowRoot as w,$hasAncestor as v,$isLeafNode as N}from\"lexical\";export{$cloneWithProperties,$selectAll}from\"lexical\";function C(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.`)}const K=new Map;function P(e){let t=e;for(;null!=t;){if(t.nodeType===Node.TEXT_NODE)return t;t=t.firstChild}return null}function E(e){const t=e.parentNode;if(null==t)throw new Error(\"Should never happen\");return[t,Array.from(t.childNodes).indexOf(e)]}function k(t,n,o,l,r){const s=n.getKey(),i=l.getKey(),c=document.createRange();let f=t.getElementByKey(s),u=t.getElementByKey(i),g=o,a=r;if(e(n)&&(f=P(f)),e(l)&&(u=P(u)),void 0===n||void 0===l||null===f||null===u)return null;\"BR\"===f.nodeName&&([f,g]=E(f)),\"BR\"===u.nodeName&&([u,a]=E(u));const d=f.firstChild;f===u&&null!=d&&\"BR\"===d.nodeName&&0===g&&0===a&&(a=1);try{c.setStart(f,g),c.setEnd(u,a)}catch(e){return null}return!c.collapsed||g===a&&s===i||(c.setStart(u,a),c.setEnd(f,g)),c}function I(e,t){const n=e.getRootElement();if(null===n)return[];const o=n.getBoundingClientRect(),l=getComputedStyle(n),r=parseFloat(l.paddingLeft)+parseFloat(l.paddingRight),s=Array.from(t.getClientRects());let i,c=s.length;s.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=s[e],n=i&&i.top<=t.top&&i.top+i.height>t.top&&i.left+i.width>t.left,l=t.width+r===o.width;n||l?(s.splice(e--,1),c--):i=t}return s}function B(e){const t={};if(!e)return t;const n=e.split(\";\");for(const e of n)if(\"\"!==e){const[n,o]=e.split(/:([^]+)/);n&&o&&(t[n.trim()]=o.trim())}return t}function F(e){let t=K.get(e);return void 0===t&&(t=B(e),K.set(e,t)),t}function b(e){let t=\"\";for(const n in e)n&&(t+=`${n}: ${e[n]};`);return t}function R(e){const n=t().getElementByKey(e.getKey());if(null===n)return null;const o=n.ownerDocument.defaultView;return null===o?null:o.getComputedStyle(n)}function O(e){return R(n(e)?e:e.getParentOrThrow())}function z(e){const t=O(e);return null!==t&&\"rtl\"===t.direction}function A(e,t){const n=e.getStartEndPoints();if(t.isSelected(e)&&!u(t)&&null!==n){const[o,l]=n,r=e.isBackward(),s=o.getNode(),i=l.getNode(),c=t.is(s),f=t.is(i);if(c||f){const[n,o]=g(e),l=s.is(i),c=t.is(r?i:s),f=t.is(r?s:i);let u,a=0;if(l)a=n>o?o:n,u=n>o?n:o;else if(c){a=r?o:n,u=void 0}else if(f){a=0,u=r?n:o}t.__text=t.__text.slice(a,u)}}return t}function M(e){if(\"text\"===e.type)return e.offset===e.getNode().getTextContentSize();const t=e.getNode();return o(t)||C(177),e.offset===t.getChildrenSize()}function L(t,c,f){let u=c.getNode(),g=f;if(o(u)){const e=u.getDescendantByIndex(c.offset);null!==e&&(u=e)}for(;g>0&&null!==u;){if(o(u)){const e=u.getLastDescendant();null!==e&&(u=e)}let f=u.getPreviousSibling(),a=0;if(null===f){let e=u.getParentOrThrow(),t=e.getPreviousSibling();for(;null===t;){if(e=e.getParent(),null===e){f=null;break}t=e.getPreviousSibling()}null!==e&&(a=e.isInline()?0:2,f=t)}let d=u.getTextContent();\"\"===d&&o(u)&&!u.isInline()&&(d=\"\\n\\n\");const p=d.length;if(!e(u)||g>=p){const e=u.getParent();u.remove(),null==e||0!==e.getChildrenSize()||n(e)||e.remove(),g-=p+a,u=f}else{const n=u.getKey(),o=t.getEditorState().read(()=>{const t=l(n);return e(t)&&t.isSimpleText()?t.getTextContent():null}),f=p-g,a=d.slice(0,f);if(null!==o&&o!==d){const e=r();let t=u;if(u.isSimpleText())u.setTextContent(o);else{const e=s(o);u.replace(e),t=e}if(i(e)&&e.isCollapsed()){const n=e.anchor.offset;t.select(n,n)}}else if(u.isSimpleText()){const e=c.key===n;let t=c.offset;t<g&&(t=p);const o=e?t-g:0,l=e?t:f;if(e&&0===o){const[e]=u.splitText(o,l);e.remove()}else{const[,e]=u.splitText(o,l);e.remove()}}else{const e=s(a);u.replace(e)}g=0}}}function $(e){const t=e.getStyle(),n=B(t);K.set(t,n)}function _(t,n){(i(t)?t.isCollapsed():e(t)||o(t))||C(280);const l=F(i(t)?t.style:e(t)?t.getStyle():t.getTextStyle()),r=Object.entries(n).reduce((e,[n,o])=>(\"function\"==typeof o?e[n]=o(l[n],t):null===o?delete e[n]:e[n]=o,e),{...l}),s=b(r);i(t)||e(t)?t.setStyle(s):t.setTextStyle(s),K.set(s,r)}function D(e,t){if(i(e)&&e.isCollapsed()){_(e,t);const n=e.anchor.getNode();o(n)&&n.isEmpty()&&_(n,t)}U(e=>{_(e,t)})}function U(t){const n=c();if(!n)return;const o=new Map,l=e=>o.get(e.getKey())||[0,e.getTextContentSize()];if(i(n))for(const e of f(n).getTextSlices())e&&o.set(e.caret.origin.getKey(),e.getSliceIndices());const r=n.getNodes();for(const n of r){if(!e(n)||!n.canHaveFormat())continue;const[o,r]=l(n);if(r!==o)if(u(n)||0===o&&r===n.getTextContentSize())t(n);else{t(n.splitText(o,r)[0===o?0:1])}}i(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 H(e,t){const n=e.getFormatType(),o=e.getIndent();n!==t.getFormatType()&&t.setFormat(n),o!==t.getIndent()&&t.setIndent(o)}function V(e,t,n=H){if(null===e)return;const l=e.getStartEndPoints(),r=new Map;let s=null;if(l){const[e,t]=l;s=a(),s.anchor.set(e.key,e.offset,e.type),s.focus.set(t.key,t.offset,t.type);const n=d(e.getNode(),p),i=d(t.getNode(),p);o(n)&&r.set(n.getKey(),n),o(i)&&r.set(i.getKey(),i)}for(const t of e.getNodes())if(o(t)&&p(t))r.set(t.getKey(),t);else if(null===l){const e=d(t,p);o(e)&&r.set(e.getKey(),e)}for(const[e,o]of r){const l=t();n(o,l),o.replace(l,!0),s&&(e===s.anchor.key&&s.anchor.set(l.getKey(),s.anchor.offset,s.anchor.type),e===s.focus.key&&s.focus.set(l.getKey(),s.focus.offset,s.focus.type))}s&&e.is(c())&&h(s)}function W(e){return e.getNode().isAttached()}function X(e){let t=e;for(;null!==t&&!w(t);){const e=t.getLatest(),n=t.getParent();0===e.getChildrenSize()&&t.remove(!0),t=n}}function q(e,t,n=null){const o=e.getStartEndPoints(),l=o?o[0]:null,r=e.getNodes(),s=r.length;if(null!==l&&(0===s||1===s&&\"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 i=null,c=[];for(let o=0;o<s;o++){const l=r[o];w(l)?(G(e,c,c.length,t,n),c=[],i=l):null===i||null!==i&&v(l,i)?c.push(l):(G(e,c,c.length,t,n),c=[l])}G(e,c,c.length,t,n)}function G(e,t,n,l,s=null){if(0===t.length)return;const c=t[0],f=new Map,u=[];let g=o(c)?c:c.getParentOrThrow();g.isInline()&&(g=g.getParentOrThrow());let a=!1;for(;null!==g;){const e=g.getPreviousSibling();if(null!==e){g=e,a=!0;break}if(g=g.getParentOrThrow(),w(g))break}const d=new Set;for(let e=0;e<n;e++){const n=t[e];o(n)&&0===n.getChildrenSize()&&d.add(n.getKey())}const p=new Set;for(let e=0;e<n;e++){const n=t[e];let r=n.getParent();if(null!==r&&r.isInline()&&(r=r.getParent()),null!==r&&N(n)&&!p.has(n.getKey())){const e=r.getKey();if(void 0===f.get(e)){const t=l();t.setFormat(r.getFormatType()),t.setIndent(r.getIndent()),u.push(t),f.set(e,t),r.getChildren().forEach(e=>{t.append(e),p.add(e.getKey()),o(e)&&e.getChildrenKeys().forEach(e=>p.add(e))}),X(r)}}else if(d.has(n.getKey())){o(n)||C(179);const e=l();e.setFormat(n.getFormatType()),e.setIndent(n.getIndent()),u.push(e),n.remove(!0)}}if(null!==s)for(let e=0;e<u.length;e++){const t=u[e];s.append(t)}let y=null;if(w(g))if(a)if(null!==s)g.insertAfter(s);else for(let e=u.length-1;e>=0;e--){const t=u[e];g.insertAfter(t)}else{const e=g.getFirstChild();if(o(e)&&(g=e),null===e)if(s)g.append(s);else for(let e=0;e<u.length;e++){const t=u[e];g.append(t),y=t}else if(null!==s)e.insertBefore(s);else for(let t=0;t<u.length;t++){const n=u[t];e.insertBefore(n),y=n}}else if(s)g.insertAfter(s);else for(let e=u.length-1;e>=0;e--){const t=u[e];g.insertAfter(t),y=t}const m=r();i(m)&&W(m.anchor)&&W(m.focus)?h(m.clone()):null!==y?y.selectEnd():e.dirty=!0}function J(e){const t=Q(e);return null!==t&&\"vertical-rl\"===t.writingMode}function Q(e){const t=e.anchor.getNode();return o(t)?R(t):O(t)}function Y(e,t){let n=J(e)?!t:t;ee(e)&&(n=!n);const l=y(e.focus,n?\"previous\":\"next\");if(m(l))return!1;for(const e of S(l)){if(x(e))return!e.origin.isInline();if(!o(e.origin)){if(T(e.origin))return!0;break}}return!1}function Z(e,t,n,o){e.modify(t?\"extend\":\"move\",n,o)}function ee(e){const t=Q(e);return null!==t&&\"rtl\"===t.direction}function te(e,t,n){const o=ee(e);let l;l=J(e)||o?!n:n,Z(e,t,l,\"character\")}function ne(e,t,n){const o=F(e.getStyle());return null!==o&&o[t]||n}function oe(t,n,o=\"\"){let l=null;const r=t.getNodes(),s=t.anchor,c=t.focus,f=t.isBackward(),u=f?c.offset:s.offset,g=f?c.getNode():s.getNode();if(i(t)&&t.isCollapsed()&&\"\"!==t.style){const e=F(t.style);if(null!==e&&n in e)return e[n]}for(let t=0;t<r.length;t++){const s=r[t];if((0===t||0!==u||!s.is(g))&&e(s)){const e=ne(s,n,o);if(null===l)l=e;else if(l!==e){l=\"\";break}}}return null===l?o:l}const le=L;export{$ as $addNodeStyle,H as $copyBlockFormatIndent,j as $ensureForwardRangeSelection,U as $forEachSelectedTextNode,R as $getComputedStyleForElement,O as $getComputedStyleForParent,oe as $getSelectionStyleValueForProperty,M as $isAtNodeEnd,ee as $isParentElementRTL,z as $isParentRTL,Z as $moveCaretSelection,te as $moveCharacter,D as $patchStyleText,V as $setBlocksType,Y as $shouldOverrideDefaultCharacterSelection,A as $sliceSelectedTextNodeContent,L as $trimTextContentFromAnchor,q as $wrapNodes,k as createDOMRange,I as createRectsFromDOMRange,b as getCSSFromStyleObject,F as getStyleObjectFromCSS,le as trimTextContentFromAnchor};\n"],"names":["B","e","n","F","R","t","o","O","z","A","u","l","r","s","i","c","f","g","a","$","H","V","d","p","h","J","Q","ee","y","m","S","x","T","Z","te"],"mappings":";AAQs7B,MAAM,IAAE,oBAAI;AAAkqC,SAASA,EAAE,GAAE;AAAC,QAAM,IAAE,CAAA;AAAG,MAAG,CAAC,EAAE,QAAO;AAAE,QAAM,IAAE,EAAE,MAAM,GAAG;AAAE,aAAUC,KAAK,EAAE,KAAQA,MAAL,IAAO;AAAC,UAAK,CAACC,GAAE,CAAC,IAAED,EAAE,MAAM,SAAS;AAAE,IAAAC,KAAG,MAAI,EAAEA,EAAE,KAAI,CAAE,IAAE,EAAE,KAAI;AAAA,EAAG;AAAC,SAAO;AAAC;AAAC,SAASC,EAAE,GAAE;AAAC,MAAI,IAAE,EAAE,IAAI,CAAC;AAAE,SAAgB,MAAT,WAAa,IAAEH,EAAE,CAAC,GAAE,EAAE,IAAI,GAAE,CAAC,IAAG;AAAC;AAA2E,SAASI,EAAE,GAAE;AAAC,QAAMF,IAAEG,EAAC,EAAG,gBAAgB,EAAE,OAAM,CAAE;AAAE,MAAUH,MAAP,KAAS,QAAO;AAAK,QAAMI,IAAEJ,EAAE,cAAc;AAAY,SAAcI,MAAP,OAAS,OAAKA,EAAE,iBAA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