laif-ds 0.2.21 → 0.2.23

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 (246) hide show
  1. package/dist/_virtual/index4.js +5 -5
  2. package/dist/_virtual/index5.js +5 -5
  3. package/dist/_virtual/index6.js +2 -2
  4. package/dist/_virtual/index7.js +2 -2
  5. package/dist/components/ui/app-select.js +92 -109
  6. package/dist/components/ui/gantt/constants/DimensionsSettings.js +6 -6
  7. package/dist/components/ui/gantt/constants/DragStepOptions.js +9 -9
  8. package/dist/components/ui/message-input.js +23 -23
  9. package/dist/components/ui/sidebar.js +1 -1
  10. package/dist/components/ui/textarea.js +18 -15
  11. package/dist/index.d.ts +6 -7
  12. package/dist/lib/audio-utils.js +2 -2
  13. package/dist/node_modules/@date-fns/tz/date/index.js +2 -7
  14. package/dist/node_modules/@date-fns/tz/date/mini.js +32 -27
  15. package/dist/node_modules/@date-fns/tz/tzName/index.js +12 -0
  16. package/dist/node_modules/@date-fns/tz/tzOffset/index.js +11 -12
  17. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +137 -139
  18. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +238 -235
  19. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +88 -83
  20. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +70 -69
  21. package/dist/node_modules/@lexical/clipboard/LexicalClipboard.prod.js +13 -13
  22. package/dist/node_modules/@lexical/code/LexicalCode.prod.js +3 -3
  23. package/dist/node_modules/@lexical/dragon/LexicalDragon.prod.js +2 -2
  24. package/dist/node_modules/@lexical/history/LexicalHistory.prod.js +9 -9
  25. package/dist/node_modules/@lexical/html/LexicalHtml.prod.js +6 -6
  26. package/dist/node_modules/@lexical/list/LexicalList.prod.js +48 -48
  27. package/dist/node_modules/@lexical/markdown/LexicalMarkdown.prod.js +29 -29
  28. package/dist/node_modules/@lexical/react/LexicalCheckListPlugin.prod.js +1 -1
  29. package/dist/node_modules/@lexical/react/LexicalClearEditorPlugin.prod.js +2 -2
  30. package/dist/node_modules/@lexical/react/LexicalComposer.prod.js +10 -10
  31. package/dist/node_modules/@lexical/react/LexicalComposerContext.prod.js +2 -2
  32. package/dist/node_modules/@lexical/react/LexicalContentEditable.prod.js +17 -17
  33. package/dist/node_modules/@lexical/react/LexicalErrorBoundary.prod.js +4 -4
  34. package/dist/node_modules/@lexical/react/LexicalHistoryPlugin.prod.js +4 -4
  35. package/dist/node_modules/@lexical/react/LexicalListPlugin.prod.js +5 -5
  36. package/dist/node_modules/@lexical/react/LexicalOnChangePlugin.prod.js +4 -4
  37. package/dist/node_modules/@lexical/react/LexicalRichTextPlugin.prod.js +20 -20
  38. package/dist/node_modules/@lexical/react/useLexicalEditable.prod.js +7 -7
  39. package/dist/node_modules/@lexical/rich-text/LexicalRichText.prod.js +43 -43
  40. package/dist/node_modules/@lexical/table/LexicalTable.prod.js +16 -16
  41. package/dist/node_modules/@lexical/utils/LexicalUtils.prod.js +3 -3
  42. package/dist/node_modules/@radix-ui/react-popper/dist/index.js +43 -42
  43. package/dist/node_modules/@radix-ui/react-presence/dist/index.js +1 -1
  44. package/dist/node_modules/@radix-ui/react-scroll-area/dist/index.js +2 -2
  45. package/dist/node_modules/@radix-ui/react-select/dist/index.js +2 -2
  46. package/dist/node_modules/@reduxjs/toolkit/dist/redux-toolkit.modern.js +183 -175
  47. package/dist/node_modules/@shikijs/core/dist/index.js +195 -175
  48. package/dist/node_modules/@shikijs/langs/dist/asciidoc.js +2 -2
  49. package/dist/node_modules/@shikijs/langs/dist/cobol.js +1 -1
  50. package/dist/node_modules/@shikijs/langs/dist/erlang.js +5 -3
  51. package/dist/node_modules/@shikijs/langs/dist/fsharp.js +1 -1
  52. package/dist/node_modules/@shikijs/langs/dist/gdscript.js +1 -1
  53. package/dist/node_modules/@shikijs/langs/dist/go.js +1 -1
  54. package/dist/node_modules/@shikijs/langs/dist/haxe.js +1 -1
  55. package/dist/node_modules/@shikijs/langs/dist/julia.js +1 -1
  56. package/dist/node_modules/@shikijs/langs/dist/latex.js +1 -1
  57. package/dist/node_modules/@shikijs/langs/dist/lean.js +1 -1
  58. package/dist/node_modules/@shikijs/langs/dist/markdown.js +1 -1
  59. package/dist/node_modules/@shikijs/langs/dist/marko.js +5 -5
  60. package/dist/node_modules/@shikijs/langs/dist/mermaid.js +1 -1
  61. package/dist/node_modules/@shikijs/langs/dist/nextflow.js +1 -1
  62. package/dist/node_modules/@shikijs/langs/dist/purescript.js +1 -1
  63. package/dist/node_modules/@shikijs/langs/dist/r.js +1 -1
  64. package/dist/node_modules/@shikijs/langs/dist/sql.js +1 -1
  65. package/dist/node_modules/@shikijs/langs/dist/swift.js +2 -2
  66. package/dist/node_modules/@shikijs/langs/dist/templ.js +1 -1
  67. package/dist/node_modules/@shikijs/langs/dist/tex.js +1 -1
  68. package/dist/node_modules/@shikijs/langs/dist/vue-vine.js +21 -0
  69. package/dist/node_modules/@shikijs/langs/dist/vue.js +1 -1
  70. package/dist/node_modules/@shikijs/langs/dist/zig.js +1 -1
  71. package/dist/node_modules/@shikijs/themes/dist/andromeeda.js +1 -1
  72. package/dist/node_modules/@shikijs/themes/dist/catppuccin-frappe.js +1 -1
  73. package/dist/node_modules/@shikijs/themes/dist/catppuccin-latte.js +1 -1
  74. package/dist/node_modules/@shikijs/themes/dist/catppuccin-macchiato.js +1 -1
  75. package/dist/node_modules/@shikijs/themes/dist/catppuccin-mocha.js +1 -1
  76. package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-hard.js +1 -1
  77. package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-medium.js +1 -1
  78. package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-soft.js +1 -1
  79. package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-hard.js +1 -1
  80. package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-medium.js +1 -1
  81. package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-soft.js +1 -1
  82. package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +215 -208
  83. package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +1 -1
  84. package/dist/node_modules/aria-hidden/dist/es2015/index.js +1 -1
  85. package/dist/node_modules/classnames/index.js +2 -2
  86. package/dist/node_modules/d3-interpolate/src/rgb.js +2 -2
  87. package/dist/node_modules/dayjs/dayjs.min.js +14 -14
  88. package/dist/node_modules/dayjs/locale/it.js +4 -4
  89. package/dist/node_modules/dayjs/plugin/isoWeek.js +4 -4
  90. package/dist/node_modules/dayjs/plugin/localizedFormat.js +10 -10
  91. package/dist/node_modules/decimal.js-light/decimal.js +2 -2
  92. package/dist/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.js +2 -2
  93. package/dist/node_modules/es-toolkit/dist/array/flatten.js +2 -2
  94. package/dist/node_modules/es-toolkit/dist/array/uniqBy.js +2 -2
  95. package/dist/node_modules/es-toolkit/dist/compat/_internal/compareValues.js +2 -2
  96. package/dist/node_modules/es-toolkit/dist/compat/_internal/getSymbols.js +2 -2
  97. package/dist/node_modules/es-toolkit/dist/compat/_internal/getTag.js +2 -2
  98. package/dist/node_modules/es-toolkit/dist/compat/_internal/isDeepKey.js +2 -2
  99. package/dist/node_modules/es-toolkit/dist/compat/_internal/isIndex.js +2 -2
  100. package/dist/node_modules/es-toolkit/dist/compat/_internal/isIterateeCall.js +2 -2
  101. package/dist/node_modules/es-toolkit/dist/compat/_internal/isKey.js +2 -2
  102. package/dist/node_modules/es-toolkit/dist/compat/_internal/tags.js +2 -2
  103. package/dist/node_modules/es-toolkit/dist/compat/_internal/toKey.js +2 -2
  104. package/dist/node_modules/es-toolkit/dist/compat/array/orderBy.js +2 -2
  105. package/dist/node_modules/es-toolkit/dist/compat/array/sortBy.js +2 -2
  106. package/dist/node_modules/es-toolkit/dist/compat/array/uniqBy.js +2 -2
  107. package/dist/node_modules/es-toolkit/dist/compat/function/debounce.js +2 -2
  108. package/dist/node_modules/es-toolkit/dist/compat/function/throttle.js +14 -15
  109. package/dist/node_modules/es-toolkit/dist/compat/math/range.js +2 -2
  110. package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeep.js +2 -2
  111. package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.js +11 -11
  112. package/dist/node_modules/es-toolkit/dist/compat/object/get.js +2 -2
  113. package/dist/node_modules/es-toolkit/dist/compat/object/has.js +2 -2
  114. package/dist/node_modules/es-toolkit/dist/compat/object/property.js +2 -2
  115. package/dist/node_modules/es-toolkit/dist/compat/predicate/isArguments.js +2 -2
  116. package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLike.js +2 -2
  117. package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLikeObject.js +2 -2
  118. package/dist/node_modules/es-toolkit/dist/compat/predicate/isMatch.js +2 -2
  119. package/dist/node_modules/es-toolkit/dist/compat/predicate/isMatchWith.js +2 -2
  120. package/dist/node_modules/es-toolkit/dist/compat/predicate/isObject.js +2 -2
  121. package/dist/node_modules/es-toolkit/dist/compat/predicate/isObjectLike.js +2 -2
  122. package/dist/node_modules/es-toolkit/dist/compat/predicate/isSymbol.js +2 -2
  123. package/dist/node_modules/es-toolkit/dist/compat/predicate/matches.js +2 -2
  124. package/dist/node_modules/es-toolkit/dist/compat/predicate/matchesProperty.js +2 -2
  125. package/dist/node_modules/es-toolkit/dist/compat/util/eq.js +2 -2
  126. package/dist/node_modules/es-toolkit/dist/compat/util/iteratee.js +2 -2
  127. package/dist/node_modules/es-toolkit/dist/compat/util/toFinite.js +2 -2
  128. package/dist/node_modules/es-toolkit/dist/compat/util/toNumber.js +2 -2
  129. package/dist/node_modules/es-toolkit/dist/compat/util/toPath.js +2 -2
  130. package/dist/node_modules/es-toolkit/dist/function/debounce.js +15 -15
  131. package/dist/node_modules/es-toolkit/dist/function/identity.js +2 -2
  132. package/dist/node_modules/es-toolkit/dist/function/noop.js +2 -10
  133. package/dist/node_modules/es-toolkit/dist/object/cloneDeep.js +2 -2
  134. package/dist/node_modules/es-toolkit/dist/object/cloneDeepWith.js +3 -3
  135. package/dist/node_modules/es-toolkit/dist/predicate/isLength.js +2 -2
  136. package/dist/node_modules/es-toolkit/dist/predicate/isPrimitive.js +2 -2
  137. package/dist/node_modules/es-toolkit/dist/predicate/isTypedArray.js +2 -2
  138. package/dist/node_modules/eventemitter3/index2.js +3 -3
  139. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +1 -1
  140. package/dist/node_modules/immer/dist/immer.js +213 -216
  141. package/dist/node_modules/lexical/Lexical.prod.js +212 -212
  142. package/dist/node_modules/lodash/_baseCreate.js +2 -2
  143. package/dist/node_modules/lodash/_cloneBuffer.js +2 -2
  144. package/dist/node_modules/lodash/_defineProperty.js +2 -2
  145. package/dist/node_modules/lodash/_isMasked.js +2 -2
  146. package/dist/node_modules/lodash/_nodeUtil.js +4 -4
  147. package/dist/node_modules/lodash/isArguments.js +2 -2
  148. package/dist/node_modules/lodash/isBuffer.js +2 -2
  149. package/dist/node_modules/lodash/lodash.js +16 -16
  150. package/dist/node_modules/prismjs/components/prism-cpp.js +2 -2
  151. package/dist/node_modules/prismjs/components/prism-java.js +2 -2
  152. package/dist/node_modules/prismjs/components/prism-rust.js +2 -2
  153. package/dist/node_modules/prismjs/components/prism-typescript.js +2 -2
  154. package/dist/node_modules/prismjs/prism.js +8 -8
  155. package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js +183 -164
  156. package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js +14 -14
  157. package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js +10 -7
  158. package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js +6 -6
  159. package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js +30 -30
  160. package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js +1 -1
  161. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js +5 -5
  162. package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js +9 -9
  163. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +1 -1
  164. package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +11 -11
  165. package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js +1 -1
  166. package/dist/node_modules/react-day-picker/dist/esm/labels/index.js +12 -12
  167. package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js +19 -19
  168. package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js +9 -9
  169. package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js +10 -10
  170. package/dist/node_modules/react-hook-form/dist/index.esm.js +150 -117
  171. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +48 -48
  172. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +9 -9
  173. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +43 -39
  174. package/dist/node_modules/react-resizable-panels/dist/react-resizable-panels.browser.js +95 -94
  175. package/dist/node_modules/react-window/dist/index.esm.js +2 -2
  176. package/dist/node_modules/recharts/es6/animation/AnimationManager.js +14 -14
  177. package/dist/node_modules/recharts/es6/animation/JavascriptAnimate.js +49 -0
  178. package/dist/node_modules/recharts/es6/animation/createDefaultAnimationManager.js +9 -0
  179. package/dist/node_modules/recharts/es6/animation/useAnimationManager.js +12 -0
  180. package/dist/node_modules/recharts/es6/component/Cursor.js +5 -5
  181. package/dist/node_modules/recharts/es6/component/DefaultLegendContent.js +55 -58
  182. package/dist/node_modules/recharts/es6/component/Legend.js +32 -27
  183. package/dist/node_modules/recharts/es6/component/ResponsiveContainer.js +44 -40
  184. package/dist/node_modules/recharts/es6/context/chartLayoutContext.js +15 -23
  185. package/dist/node_modules/recharts/es6/context/useTooltipAxis.js +8 -7
  186. package/dist/node_modules/recharts/es6/shape/Curve.js +10 -10
  187. package/dist/node_modules/recharts/es6/shape/Rectangle.js +136 -99
  188. package/dist/node_modules/recharts/es6/shape/Symbols.js +55 -53
  189. package/dist/node_modules/recharts/es6/state/legendSlice.js +5 -4
  190. package/dist/node_modules/recharts/es6/state/selectors/axisSelectors.js +352 -307
  191. package/dist/node_modules/recharts/es6/state/selectors/brushSelectors.js +9 -9
  192. package/dist/node_modules/recharts/es6/state/selectors/combiners/combineDisplayedStackedData.js +26 -0
  193. package/dist/node_modules/recharts/es6/state/selectors/combiners/combineTooltipPayload.js +117 -0
  194. package/dist/node_modules/recharts/es6/state/selectors/dataSelectors.js +4 -4
  195. package/dist/node_modules/recharts/es6/state/selectors/legendSelectors.js +10 -4
  196. package/dist/node_modules/recharts/es6/state/selectors/polarAxisSelectors.js +33 -32
  197. package/dist/node_modules/recharts/es6/state/selectors/selectChartOffsetInternal.js +108 -0
  198. package/dist/node_modules/recharts/es6/state/selectors/selectTooltipAxis.js +13 -0
  199. package/dist/node_modules/recharts/es6/state/selectors/selectTooltipAxisId.js +5 -0
  200. package/dist/node_modules/recharts/es6/state/selectors/selectTooltipAxisType.js +9 -0
  201. package/dist/node_modules/recharts/es6/state/selectors/selectors.js +40 -143
  202. package/dist/node_modules/recharts/es6/state/selectors/tooltipSelectors.js +68 -63
  203. package/dist/node_modules/recharts/es6/state/types/StackedGraphicalItem.js +7 -0
  204. package/dist/node_modules/recharts/es6/util/ChartUtils.js +58 -57
  205. package/dist/node_modules/recharts/es6/util/DataUtils.js +34 -26
  206. package/dist/node_modules/recharts/es6/util/ReactUtils.js +20 -15
  207. package/dist/node_modules/recharts/es6/util/excludeEventProps.js +11 -0
  208. package/dist/node_modules/recharts/es6/util/getSliced.js +7 -0
  209. package/dist/node_modules/recharts/es6/util/scale/getNiceTickValues.js +44 -44
  210. package/dist/node_modules/recharts/es6/util/stacks/getStackSeriesIdentifier.js +7 -0
  211. package/dist/node_modules/recharts/es6/util/svgPropertiesNoEvents.js +328 -0
  212. package/dist/node_modules/recharts/es6/util/types.js +22 -332
  213. package/dist/node_modules/recharts/es6/util/useAnimationId.js +10 -0
  214. package/dist/node_modules/recharts/es6/util/useElementOffset.js +20 -16
  215. package/dist/node_modules/remeda/dist/hasAtLeast-F1Oj_xBB.js +9 -0
  216. package/dist/node_modules/remeda/dist/lazyDataLastImpl-BDhrIOwR.js +8 -0
  217. package/dist/node_modules/remeda/dist/omit-HZOiLuMO.js +19 -0
  218. package/dist/node_modules/remeda/dist/purry-DH9cw9sy.js +11 -0
  219. package/dist/node_modules/shiki/dist/langs.js +225 -220
  220. package/dist/node_modules/shiki/dist/themes.js +60 -60
  221. package/dist/node_modules/sonner/dist/index.js +309 -305
  222. package/dist/node_modules/style-to-object/cjs/index.js +1 -1
  223. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +169 -168
  224. package/dist/node_modules/unified/lib/callable-instance.js +2 -2
  225. package/dist/node_modules/unified/lib/index.js +1 -1
  226. package/dist/node_modules/unist-util-is/lib/index.js +2 -2
  227. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +2 -2
  228. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +2 -2
  229. package/dist/node_modules/vfile-message/lib/index.js +1 -1
  230. package/dist/styles.v3.css +1 -1
  231. package/package.json +1 -1
  232. package/dist/_virtual/isEqual.js +0 -8
  233. package/dist/_virtual/isEqual2.js +0 -5
  234. package/dist/_virtual/isEqualWith.js +0 -5
  235. package/dist/_virtual/isPlainObject.js +0 -5
  236. package/dist/_virtual/noop.js +0 -5
  237. package/dist/node_modules/es-toolkit/compat/isEqual.js +0 -9
  238. package/dist/node_modules/es-toolkit/dist/predicate/isEqual.js +0 -18
  239. package/dist/node_modules/es-toolkit/dist/predicate/isEqualWith.js +0 -139
  240. package/dist/node_modules/es-toolkit/dist/predicate/isPlainObject.js +0 -18
  241. package/dist/node_modules/recharts/es6/animation/Animate.js +0 -270
  242. package/dist/node_modules/recharts/es6/state/selectors/selectChartOffset.js +0 -98
  243. package/dist/node_modules/remeda/dist/chunk-AIG3BDKO.js +0 -9
  244. package/dist/node_modules/remeda/dist/chunk-D6FCK2GA.js +0 -8
  245. package/dist/node_modules/remeda/dist/chunk-KI5X74E2.js +0 -19
  246. package/dist/node_modules/remeda/dist/chunk-WIMGWYZL.js +0 -11
@@ -57,13 +57,13 @@ function Di(n, e, t) {
57
57
  Wn = !0;
58
58
  const r = performance.now() - ur > Vs;
59
59
  try {
60
- te(n, () => {
61
- const i = I() || function(f) {
62
- return f.getEditorState().read(() => {
60
+ te(n, (() => {
61
+ const i = I() || (function(f) {
62
+ return f.getEditorState().read((() => {
63
63
  const g = I();
64
64
  return g !== null ? g.clone() : null;
65
- });
66
- }(n), s = /* @__PURE__ */ new Map(), o = n.getRootElement(), l = n._editorState, a = n._blockCursorElement;
65
+ }));
66
+ })(n), s = /* @__PURE__ */ new Map(), o = n.getRootElement(), l = n._editorState, a = n._blockCursorElement;
67
67
  let c = !1, u = "";
68
68
  for (let f = 0; f < e.length; f++) {
69
69
  const g = e[f], d = g.type, _ = g.target, p = Qs(_, n, l, o);
@@ -107,7 +107,7 @@ function Di(n, e, t) {
107
107
  t.takeRecords();
108
108
  }
109
109
  i !== null && (c && ie(i), ze && Ts(n) && i.insertRawText(u));
110
- });
110
+ }));
111
111
  } finally {
112
112
  Wn = !1;
113
113
  }
@@ -119,21 +119,21 @@ function Pi(n) {
119
119
  function Li(n) {
120
120
  (function(e) {
121
121
  ur === 0 && se(e).addEventListener("textInput", js, !0);
122
- })(n), n._observer = new MutationObserver((e, t) => {
122
+ })(n), n._observer = new MutationObserver(((e, t) => {
123
123
  Di(n, e, t);
124
- });
124
+ }));
125
125
  }
126
126
  class fr {
127
127
  constructor(e, t = /* @__PURE__ */ new Map(), r = void 0, i = /* @__PURE__ */ new Map(), s = void 0) {
128
128
  this.node = e, this.sharedConfigMap = t, this.unknownState = r, this.knownState = i;
129
- const o = s !== void 0 ? s : function(l, a, c) {
129
+ const o = s !== void 0 ? s : (function(l, a, c) {
130
130
  let u = c.size;
131
131
  if (a) for (const h in a) {
132
132
  const f = l.get(h);
133
133
  f && c.has(f) || u++;
134
134
  }
135
135
  return u;
136
- }(t, r, i);
136
+ })(t, r, i);
137
137
  this.size = o;
138
138
  }
139
139
  getValue(e) {
@@ -188,7 +188,7 @@ function Zs(n) {
188
188
  }
189
189
  function Ir(n, e) {
190
190
  const t = n.__mode, r = n.__format, i = n.__style, s = e.__mode, o = e.__format, l = e.__style, a = n.__state, c = e.__state;
191
- return (t === null || t === s) && (r === null || r === o) && (i === null || i === l) && (n.__state === null || a === c || function(u, h) {
191
+ return (t === null || t === s) && (r === null || r === o) && (i === null || i === l) && (n.__state === null || a === c || (function(u, h) {
192
192
  if (u === h) return !0;
193
193
  if (u && h && u.size !== h.size) return !1;
194
194
  const f = /* @__PURE__ */ new Set(), g = (_, p) => {
@@ -207,7 +207,7 @@ function Ir(n, e) {
207
207
  return !1;
208
208
  };
209
209
  return !(u && g(u, h) || h && g(h, u) || u && d(u, h) || h && d(h, u));
210
- }(a, c));
210
+ })(a, c));
211
211
  }
212
212
  function Fr(n, e) {
213
213
  const t = n.mergeWithSibling(e), r = z()._normalizedNodes;
@@ -294,13 +294,13 @@ function en(n, e) {
294
294
  const t = oe.get(n);
295
295
  t === void 0 && v(60);
296
296
  const r = t.createDOM(Ae, Q);
297
- if (function(i, s, o) {
297
+ if ((function(i, s, o) {
298
298
  const l = o._keyToDOMMap;
299
299
  (function(a, c, u) {
300
300
  const h = `__lexicalKey_${c._key}`;
301
301
  a[h] = u;
302
302
  })(s, o, i), l.set(i, s);
303
- }(n, r, Q), O(t) ? r.setAttribute("data-lexical-text", "true") : K(t) && r.setAttribute("data-lexical-decorator", "true"), N(t)) {
303
+ })(n, r, Q), O(t) ? r.setAttribute("data-lexical-text", "true") : K(t) && r.setAttribute("data-lexical-decorator", "true"), N(t)) {
304
304
  const i = t.__indent, s = t.__size;
305
305
  if (i !== 0 && Fi(r, i), s !== 0) {
306
306
  const l = s - 1;
@@ -350,9 +350,9 @@ function Ki(n, e, t) {
350
350
  function Bi(n, e) {
351
351
  const t = e.__lexicalDirTextContent || "", r = e.__lexicalDir || "";
352
352
  if (t !== X || r !== $t) {
353
- const i = X === "", s = i ? $t : function(o) {
353
+ const i = X === "", s = i ? $t : (function(o) {
354
354
  return Ws.test(o) ? "rtl" : $s.test(o) ? "ltr" : null;
355
- }(X);
355
+ })(X);
356
356
  if (s !== r) {
357
357
  const o = e.classList, l = Ae.theme;
358
358
  let a = r !== null ? l[r] : void 0, c = s !== null ? l[s] : void 0;
@@ -382,7 +382,7 @@ function Bi(n, e) {
382
382
  function to(n, e, t) {
383
383
  const r = X;
384
384
  var i;
385
- X = "", ae = null, ce = "", function(s, o, l) {
385
+ X = "", ae = null, ce = "", (function(s, o, l) {
386
386
  const a = $, c = s.__size, u = o.__size;
387
387
  $ = "";
388
388
  const h = l.element;
@@ -438,9 +438,9 @@ function to(n, e, t) {
438
438
  })(o, f, g, c, u, l);
439
439
  }
440
440
  Sn(o) && ($ += Ne), h.__lexicalTextContent = $, $ = a + $;
441
- }(n, e, e.getDOMSlot(t)), Bi(e, t), i = e, ae == null || ae === i.__textFormat || Nt || i.setTextFormat(ae), function(s) {
441
+ })(n, e, e.getDOMSlot(t)), Bi(e, t), i = e, ae == null || ae === i.__textFormat || Nt || i.setTextFormat(ae), (function(s) {
442
442
  ce === "" || ce === s.__textStyle || Nt || s.setTextStyle(ce);
443
- }(e), X = r;
443
+ })(e), X = r;
444
444
  }
445
445
  function tn(n, e) {
446
446
  const t = [];
@@ -518,87 +518,87 @@ function D(n) {
518
518
  }
519
519
  const Wi = D("SELECTION_CHANGE_COMMAND"), ml = D("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"), ro = D("CLICK_COMMAND"), nn = D("DELETE_CHARACTER_COMMAND"), Ut = D("INSERT_LINE_BREAK_COMMAND"), zr = D("INSERT_PARAGRAPH_COMMAND"), gt = D("CONTROLLED_TEXT_INSERTION_COMMAND"), $i = D("PASTE_COMMAND"), Wr = D("REMOVE_TEXT_COMMAND"), rn = D("DELETE_WORD_COMMAND"), sn = D("DELETE_LINE_COMMAND"), Fe = D("FORMAT_TEXT_COMMAND"), Ui = D("UNDO_COMMAND"), Yi = D("REDO_COMMAND"), io = D("KEYDOWN_COMMAND"), so = D("KEY_ARROW_RIGHT_COMMAND"), oo = D("MOVE_TO_END"), lo = D("KEY_ARROW_LEFT_COMMAND"), ao = D("MOVE_TO_START"), co = D("KEY_ARROW_UP_COMMAND"), uo = D("KEY_ARROW_DOWN_COMMAND"), jn = D("KEY_ENTER_COMMAND"), fo = D("KEY_SPACE_COMMAND"), ho = D("KEY_BACKSPACE_COMMAND"), go = D("KEY_ESCAPE_COMMAND"), _o = D("KEY_DELETE_COMMAND"), po = D("KEY_TAB_COMMAND"), Cl = D("INSERT_TAB_COMMAND"), xl = D("INDENT_CONTENT_COMMAND"), Sl = D("OUTDENT_CONTENT_COMMAND"), yo = D("DROP_COMMAND"), Nl = D("FORMAT_ELEMENT_COMMAND"), mo = D("DRAGSTART_COMMAND"), Co = D("DRAGOVER_COMMAND"), xo = D("DRAGEND_COMMAND"), Ji = D("COPY_COMMAND"), Hi = D("CUT_COMMAND"), $r = D("SELECT_ALL_COMMAND"), Tl = D("CLEAR_EDITOR_COMMAND"), vl = D("CLEAR_HISTORY_COMMAND"), kl = D("CAN_REDO_COMMAND"), El = D("CAN_UNDO_COMMAND"), So = D("FOCUS_COMMAND"), No = D("BLUR_COMMAND"), To = D("KEY_MODIFIER_COMMAND"), pe = Object.freeze({}), qn = 30, Xn = [["keydown", function(n, e) {
520
520
  if (_t = n.timeStamp, Gi = n.key, !e.isComposing() && !M(e, io, n) && n.key != null) {
521
- if (On && yi(n)) return te(e, () => {
521
+ if (On && yi(n)) return te(e, (() => {
522
522
  Rt(e, An);
523
- }), On = !1, void (An = "");
524
- if (function(t) {
523
+ })), On = !1, void (An = "");
524
+ if ((function(t) {
525
525
  return F(t, "ArrowRight", { shiftKey: "any" });
526
- }(n)) M(e, so, n);
527
- else if (function(t) {
526
+ })(n)) M(e, so, n);
527
+ else if ((function(t) {
528
528
  return F(t, "ArrowRight", me);
529
- }(n)) M(e, oo, n);
530
- else if (function(t) {
529
+ })(n)) M(e, oo, n);
530
+ else if ((function(t) {
531
531
  return F(t, "ArrowLeft", { shiftKey: "any" });
532
- }(n)) M(e, lo, n);
533
- else if (function(t) {
532
+ })(n)) M(e, lo, n);
533
+ else if ((function(t) {
534
534
  return F(t, "ArrowLeft", me);
535
- }(n)) M(e, ao, n);
536
- else if (function(t) {
535
+ })(n)) M(e, ao, n);
536
+ else if ((function(t) {
537
537
  return F(t, "ArrowUp", { altKey: "any", shiftKey: "any" });
538
- }(n)) M(e, co, n);
539
- else if (function(t) {
538
+ })(n)) M(e, co, n);
539
+ else if ((function(t) {
540
540
  return F(t, "ArrowDown", { altKey: "any", shiftKey: "any" });
541
- }(n)) M(e, uo, n);
542
- else if (function(t) {
541
+ })(n)) M(e, uo, n);
542
+ else if ((function(t) {
543
543
  return F(t, "Enter", { altKey: "any", ctrlKey: "any", metaKey: "any", shiftKey: !0 });
544
- }(n)) pt = !0, M(e, jn, n);
545
- else if (function(t) {
544
+ })(n)) pt = !0, M(e, jn, n);
545
+ else if ((function(t) {
546
546
  return t.key === " ";
547
- }(n)) M(e, fo, n);
548
- else if (function(t) {
547
+ })(n)) M(e, fo, n);
548
+ else if ((function(t) {
549
549
  return ue && F(t, "o", { ctrlKey: !0 });
550
- }(n)) n.preventDefault(), pt = !0, M(e, Ut, !0);
551
- else if (function(t) {
550
+ })(n)) n.preventDefault(), pt = !0, M(e, Ut, !0);
551
+ else if ((function(t) {
552
552
  return F(t, "Enter", { altKey: "any", ctrlKey: "any", metaKey: "any" });
553
- }(n)) pt = !1, M(e, jn, n);
554
- else if (function(t) {
553
+ })(n)) pt = !1, M(e, jn, n);
554
+ else if ((function(t) {
555
555
  return F(t, "Backspace", { shiftKey: "any" }) || ue && F(t, "h", { ctrlKey: !0 });
556
- }(n)) yi(n) ? M(e, ho, n) : (n.preventDefault(), M(e, nn, !0));
557
- else if (function(t) {
556
+ })(n)) yi(n) ? M(e, ho, n) : (n.preventDefault(), M(e, nn, !0));
557
+ else if ((function(t) {
558
558
  return t.key === "Escape";
559
- }(n)) M(e, go, n);
560
- else if (function(t) {
559
+ })(n)) M(e, go, n);
560
+ else if ((function(t) {
561
561
  return F(t, "Delete", {}) || ue && F(t, "d", { ctrlKey: !0 });
562
- }(n)) (function(t) {
562
+ })(n)) (function(t) {
563
563
  return t.key === "Delete";
564
564
  })(n) ? M(e, _o, n) : (n.preventDefault(), M(e, nn, !1));
565
- else if (function(t) {
565
+ else if ((function(t) {
566
566
  return F(t, "Backspace", pi);
567
- }(n)) n.preventDefault(), M(e, rn, !0);
568
- else if (function(t) {
567
+ })(n)) n.preventDefault(), M(e, rn, !0);
568
+ else if ((function(t) {
569
569
  return F(t, "Delete", pi);
570
- }(n)) n.preventDefault(), M(e, rn, !1);
571
- else if (function(t) {
570
+ })(n)) n.preventDefault(), M(e, rn, !1);
571
+ else if ((function(t) {
572
572
  return ue && F(t, "Backspace", { metaKey: !0 });
573
- }(n)) n.preventDefault(), M(e, sn, !0);
574
- else if (function(t) {
573
+ })(n)) n.preventDefault(), M(e, sn, !0);
574
+ else if ((function(t) {
575
575
  return ue && (F(t, "Delete", { metaKey: !0 }) || F(t, "k", { ctrlKey: !0 }));
576
- }(n)) n.preventDefault(), M(e, sn, !1);
577
- else if (function(t) {
576
+ })(n)) n.preventDefault(), M(e, sn, !1);
577
+ else if ((function(t) {
578
578
  return F(t, "b", me);
579
- }(n)) n.preventDefault(), M(e, Fe, "bold");
580
- else if (function(t) {
579
+ })(n)) n.preventDefault(), M(e, Fe, "bold");
580
+ else if ((function(t) {
581
581
  return F(t, "u", me);
582
- }(n)) n.preventDefault(), M(e, Fe, "underline");
583
- else if (function(t) {
582
+ })(n)) n.preventDefault(), M(e, Fe, "underline");
583
+ else if ((function(t) {
584
584
  return F(t, "i", me);
585
- }(n)) n.preventDefault(), M(e, Fe, "italic");
586
- else if (function(t) {
585
+ })(n)) n.preventDefault(), M(e, Fe, "italic");
586
+ else if ((function(t) {
587
587
  return F(t, "Tab", { shiftKey: "any" });
588
- }(n)) M(e, po, n);
589
- else if (function(t) {
588
+ })(n)) M(e, po, n);
589
+ else if ((function(t) {
590
590
  return F(t, "z", me);
591
- }(n)) n.preventDefault(), M(e, Ui, void 0);
592
- else if (function(t) {
591
+ })(n)) n.preventDefault(), M(e, Ui, void 0);
592
+ else if ((function(t) {
593
593
  return ue ? F(t, "z", { metaKey: !0, shiftKey: !0 }) : F(t, "y", { ctrlKey: !0 }) || F(t, "z", { ctrlKey: !0, shiftKey: !0 });
594
- }(n)) n.preventDefault(), M(e, Yi, void 0);
594
+ })(n)) n.preventDefault(), M(e, Yi, void 0);
595
595
  else {
596
596
  const t = e._editorState._selection;
597
- t === null || w(t) ? mi(n) && (n.preventDefault(), M(e, $r, n)) : function(r) {
597
+ t === null || w(t) ? mi(n) && (n.preventDefault(), M(e, $r, n)) : (function(r) {
598
598
  return F(r, "c", me);
599
- }(n) ? (n.preventDefault(), M(e, Ji, n)) : function(r) {
599
+ })(n) ? (n.preventDefault(), M(e, Ji, n)) : (function(r) {
600
600
  return F(r, "x", me);
601
- }(n) ? (n.preventDefault(), M(e, Hi, n)) : mi(n) && (n.preventDefault(), M(e, $r, n));
601
+ })(n) ? (n.preventDefault(), M(e, Hi, n)) : mi(n) && (n.preventDefault(), M(e, $r, n));
602
602
  }
603
603
  (function(t) {
604
604
  return t.ctrlKey || t.shiftKey || t.altKey || t.metaKey;
@@ -606,23 +606,23 @@ const Wi = D("SELECTION_CHANGE_COMMAND"), ml = D("SELECTION_INSERT_CLIPBOARD_NOD
606
606
  }
607
607
  }], ["pointerdown", function(n, e) {
608
608
  const t = n.target, r = n.pointerType;
609
- Dt(t) && r !== "touch" && r !== "pen" && n.button === 0 && te(e, () => {
609
+ Dt(t) && r !== "touch" && r !== "pen" && n.button === 0 && te(e, (() => {
610
610
  hi(t) || (Zn = !0);
611
- });
611
+ }));
612
612
  }], ["compositionstart", function(n, e) {
613
- te(e, () => {
613
+ te(e, (() => {
614
614
  const t = I();
615
615
  if (w(t) && !e.isComposing()) {
616
616
  const r = t.anchor, i = t.anchor.getNode();
617
617
  V(r.key), (n.timeStamp < _t + qn || r.type === "element" || !t.isCollapsed() || i.getFormat() !== t.format || O(i) && i.getStyle() !== t.style) && M(e, gt, zs);
618
618
  }
619
- });
619
+ }));
620
620
  }], ["compositionend", function(n, e) {
621
- ze ? dt = !0 : tt || !Ct && !jt ? te(e, () => {
621
+ ze ? dt = !0 : tt || !Ct && !jt ? te(e, (() => {
622
622
  Rt(e, n.data);
623
- }) : (On = !0, An = n.data);
623
+ })) : (On = !0, An = n.data);
624
624
  }], ["input", function(n, e) {
625
- n.stopPropagation(), te(e, () => {
625
+ n.stopPropagation(), te(e, (() => {
626
626
  if (ee(n.target) && hi(n.target)) return;
627
627
  const t = I(), r = n.data, i = Qi(n);
628
628
  if (r != null && w(t) && qi(t, i, r, n.timeStamp, !1)) {
@@ -640,23 +640,23 @@ const Wi = D("SELECTION_CHANGE_COMMAND"), ml = D("SELECTION_INSERT_CLIPBOARD_NOD
640
640
  const s = z();
641
641
  Pi(s);
642
642
  })();
643
- }, { event: n }), qe = null;
643
+ }), { event: n }), qe = null;
644
644
  }], ["click", function(n, e) {
645
- te(e, () => {
645
+ te(e, (() => {
646
646
  const t = I(), r = Te(se(e)), i = at();
647
647
  if (r) {
648
648
  if (w(t)) {
649
649
  const s = t.anchor, o = s.getNode();
650
650
  if (s.type === "element" && s.offset === 0 && t.isCollapsed() && !ne(o) && re().getChildrenSize() === 1 && o.getTopLevelElementOrThrow().isEmpty() && i !== null && t.is(i)) r.removeAllRanges(), t.dirty = !0;
651
651
  else if (n.detail === 3 && !t.isCollapsed() && o !== t.focus.getNode()) {
652
- const l = function(a, c) {
652
+ const l = (function(a, c) {
653
653
  let u = a;
654
654
  for (; u !== re() && u != null; ) {
655
655
  if (c(u)) return u;
656
656
  u = u.getParent();
657
657
  }
658
658
  return null;
659
- }(o, (a) => N(a) && !a.isInline());
659
+ })(o, ((a) => N(a) && !a.isInline()));
660
660
  N(l) && l.select(0);
661
661
  }
662
662
  } else if (n.pointerType === "touch" || n.pointerType === "pen") {
@@ -665,11 +665,11 @@ const Wi = D("SELECTION_CHANGE_COMMAND"), ml = D("SELECTION_INSERT_CLIPBOARD_NOD
665
665
  }
666
666
  }
667
667
  M(e, ro, n);
668
- });
668
+ }));
669
669
  }], ["cut", pe], ["copy", pe], ["dragstart", pe], ["dragover", pe], ["dragend", pe], ["paste", pe], ["focus", pe], ["blur", pe], ["drop", pe]];
670
- Vt && Xn.push(["beforeinput", (n, e) => function(t, r) {
670
+ Vt && Xn.push(["beforeinput", (n, e) => (function(t, r) {
671
671
  const i = t.inputType, s = Qi(t);
672
- i === "deleteCompositionText" || ze && Ts(r) || i !== "insertCompositionText" && te(r, () => {
672
+ i === "deleteCompositionText" || ze && Ts(r) || i !== "insertCompositionText" && te(r, (() => {
673
673
  const o = I();
674
674
  if (i === "deleteContentBackward") {
675
675
  if (o === null) {
@@ -680,11 +680,11 @@ Vt && Xn.push(["beforeinput", (n, e) => function(t, r) {
680
680
  if (w(o)) {
681
681
  const g = o.anchor.key === o.focus.key;
682
682
  if (l = t.timeStamp, Gi === "MediaLast" && l < _t + qn && r.isComposing() && g) {
683
- if (V(null), _t = 0, setTimeout(() => {
684
- te(r, () => {
683
+ if (V(null), _t = 0, setTimeout((() => {
684
+ te(r, (() => {
685
685
  V(null);
686
- });
687
- }, qn), w(o)) {
686
+ }));
687
+ }), qn), w(o)) {
688
688
  const d = o.anchor.getNode();
689
689
  d.markDirty(), O(d) || v(142), Xi(o, d);
690
690
  }
@@ -695,7 +695,7 @@ Vt && Xn.push(["beforeinput", (n, e) => function(t, r) {
695
695
  if (y && o.isCollapsed() && (y = !K(Vo(o.anchor, !0))), !y) {
696
696
  M(r, nn, !0);
697
697
  const m = I();
698
- Pr && w(m) && m.isCollapsed() && (Ie = m, setTimeout(() => Ie = null));
698
+ Pr && w(m) && m.isCollapsed() && (Ie = m, setTimeout((() => Ie = null)));
699
699
  }
700
700
  }
701
701
  return;
@@ -780,29 +780,29 @@ Vt && Xn.push(["beforeinput", (n, e) => function(t, r) {
780
780
  } else a != null && qi(o, s, a, t.timeStamp, !0) ? (t.preventDefault(), M(r, gt, a)) : qe = a;
781
781
  Vi = t.timeStamp;
782
782
  }
783
- });
784
- }(n, e)]);
783
+ }));
784
+ })(n, e)]);
785
785
  let _t = 0, Gi = null, Vi = 0, qe = null;
786
786
  const on = /* @__PURE__ */ new WeakMap();
787
787
  let Qn = !1, Zn = !1, pt = !1, dt = !1, On = !1, An = "", Ie = null, ji = [0, "", 0, "root", 0];
788
788
  function qi(n, e, t, r, i) {
789
789
  const s = n.anchor, o = n.focus, l = s.getNode(), a = z(), c = Te(se(a)), u = c !== null ? c.anchorNode : null, h = s.key, f = a.getElementByKey(h), g = t.length;
790
- return h !== o.key || !O(l) || (!i && (!Vt || Vi < r + 50) || l.isDirty() && g < 2 || xs(t)) && s.offset !== o.offset && !l.isComposing() || Ee(l) || l.isDirty() && g > 1 || (i || !Vt) && f !== null && !l.isComposing() && u !== rt(f) || c !== null && e !== null && (!e.collapsed || e.startContainer !== c.anchorNode || e.startOffset !== c.anchorOffset) || l.getFormat() !== n.format || l.getStyle() !== n.style || function(d, _) {
790
+ return h !== o.key || !O(l) || (!i && (!Vt || Vi < r + 50) || l.isDirty() && g < 2 || xs(t)) && s.offset !== o.offset && !l.isComposing() || Ee(l) || l.isDirty() && g > 1 || (i || !Vt) && f !== null && !l.isComposing() && u !== rt(f) || c !== null && e !== null && (!e.collapsed || e.startContainer !== c.anchorNode || e.startOffset !== c.anchorOffset) || l.getFormat() !== n.format || l.getStyle() !== n.style || (function(d, _) {
791
791
  if (_.isSegmented()) return !0;
792
792
  if (!d.isCollapsed()) return !1;
793
793
  const p = d.anchor.offset, C = _.getParentOrThrow(), y = Re(_);
794
- return p === 0 ? !_.canInsertTextBefore() || !C.canInsertTextBefore() && !_.isComposing() || y || function(m) {
794
+ return p === 0 ? !_.canInsertTextBefore() || !C.canInsertTextBefore() && !_.isComposing() || y || (function(m) {
795
795
  const k = m.getPreviousSibling();
796
796
  return (O(k) || N(k) && k.isInline()) && !k.canInsertTextAfter();
797
- }(_) : p === _.getTextContentSize() && (!_.canInsertTextAfter() || !C.canInsertTextAfter() && !_.isComposing() || y);
798
- }(n, l);
797
+ })(_) : p === _.getTextContentSize() && (!_.canInsertTextAfter() || !C.canInsertTextAfter() && !_.isComposing() || y);
798
+ })(n, l);
799
799
  }
800
800
  function Ur(n, e) {
801
801
  return ve(n) && n.nodeValue !== null && e !== 0 && e !== n.nodeValue.length;
802
802
  }
803
803
  function Yr(n, e, t) {
804
804
  const { anchorNode: r, anchorOffset: i, focusNode: s, focusOffset: o } = n;
805
- Qn && (Qn = !1, Ur(r, i) && Ur(s, o) && !Ie) || te(e, () => {
805
+ Qn && (Qn = !1, Ur(r, i) && Ur(s, o) && !Ie) || te(e, (() => {
806
806
  if (!t) return void ie(null);
807
807
  if (!mn(e, r, s)) return;
808
808
  let l = I();
@@ -820,10 +820,10 @@ function Yr(n, e, t) {
820
820
  else if (a.type === "element" && !y) {
821
821
  N(c) || v(259);
822
822
  const m = a.getNode();
823
- m.isEmpty() ? function(k, E) {
823
+ m.isEmpty() ? (function(k, E) {
824
824
  const x = E.getTextFormat(), b = E.getTextStyle();
825
825
  Yt(k, x, b);
826
- }(l, m) : Yt(l, 0, "");
826
+ })(l, m) : Yt(l, 0, "");
827
827
  }
828
828
  } else {
829
829
  const u = a.key, h = l.focus.key, f = l.getNodes(), g = f.length, d = l.isBackward(), _ = d ? o : i, p = d ? i : o, C = d ? h : u, y = d ? u : h;
@@ -836,7 +836,7 @@ function Yr(n, e, t) {
836
836
  }
837
837
  }
838
838
  M(e, Wi, void 0);
839
- });
839
+ }));
840
840
  }
841
841
  function Yt(n, e, t) {
842
842
  n.format === e && n.style === t || (n.format = e, n.style = t, n.dirty = !0);
@@ -877,10 +877,10 @@ function es(n) {
877
877
  if (e === null) return;
878
878
  const t = ps(e.anchorNode);
879
879
  if (t === null) return;
880
- Zn && (Zn = !1, te(t, () => {
880
+ Zn && (Zn = !1, te(t, (() => {
881
881
  const a = at(), c = e.anchorNode;
882
882
  (ee(c) || ve(c)) && ie(_r(a, e, t, n));
883
- }));
883
+ })));
884
884
  const r = Sr(t), i = r[r.length - 1], s = i._key, o = Qe.get(s), l = o || i;
885
885
  l !== t && Yr(e, l, !1), Yr(e, t, !0), t !== i ? Qe.set(s, t) : o && Qe.delete(s);
886
886
  }
@@ -896,12 +896,12 @@ function vo(n) {
896
896
  const r = t - 1;
897
897
  r >= 0 || v(164), on.set(e, r), r === 0 && e.removeEventListener("selectionchange", es);
898
898
  const i = Cn(n);
899
- Cr(i) ? (function(o) {
899
+ Cr(i) ? ((function(o) {
900
900
  if (o._parentEditor !== null) {
901
901
  const l = Sr(o), a = l[l.length - 1]._key;
902
902
  Qe.get(a) === o && Qe.delete(a);
903
903
  } else Qe.delete(o._key);
904
- }(i), n.__lexicalEditor = null) : i && v(198);
904
+ })(i), n.__lexicalEditor = null) : i && v(198);
905
905
  const s = Zi(n);
906
906
  for (let o = 0; o < s.length; o++) s[o]();
907
907
  n.__lexicalEventHandles = [];
@@ -910,12 +910,12 @@ function er(n, e, t) {
910
910
  j();
911
911
  const r = n.__key, i = n.getParent();
912
912
  if (i === null) return;
913
- const s = function(l) {
913
+ const s = (function(l) {
914
914
  const a = I();
915
915
  if (!w(a) || !N(l)) return a;
916
916
  const { anchor: c, focus: u } = a, h = c.getNode(), f = u.getNode();
917
917
  return tr(h, l) && c.set(l.__key, 0, "element"), tr(f, l) && u.set(l.__key, 0, "element"), a;
918
- }(n);
918
+ })(n);
919
919
  let o = !1;
920
920
  if (w(s) && e) {
921
921
  const l = s.anchor, a = s.focus;
@@ -959,7 +959,7 @@ class hn {
959
959
  isSelected(e) {
960
960
  const t = e || I();
961
961
  if (t == null) return !1;
962
- const r = t.getNodes().some((i) => i.__key === this.__key);
962
+ const r = t.getNodes().some(((i) => i.__key === this.__key));
963
963
  if (O(this)) return r;
964
964
  if (w(t) && t.anchor.type === "element" && t.focus.type === "element") {
965
965
  if (t.isCollapsed()) return !1;
@@ -1118,10 +1118,10 @@ class hn {
1118
1118
  v(18, this.name);
1119
1119
  }
1120
1120
  updateFromJSON(e) {
1121
- return function(t, r) {
1121
+ return (function(t, r) {
1122
1122
  const i = t.getWritable();
1123
1123
  return (r || i.__state) && Zs(t).updateFromJSON(r), i;
1124
- }(this, e.$);
1124
+ })(this, e.$);
1125
1125
  }
1126
1126
  static transform() {
1127
1127
  return null;
@@ -1136,9 +1136,9 @@ class hn {
1136
1136
  const i = this.getLatest(), s = this.__key, o = e.__key, l = e.getWritable(), a = this.getParentOrThrow().getWritable(), c = a.__size;
1137
1137
  Ke(l);
1138
1138
  const u = i.getPreviousSibling(), h = i.getNextSibling(), f = i.__prev, g = i.__next, d = i.__parent;
1139
- if (er(i, !1, !0), u === null ? a.__first = o : u.getWritable().__next = o, l.__prev = f, h === null ? a.__last = o : h.getWritable().__prev = o, l.__next = g, l.__parent = d, a.__size = c, t && (N(this) && N(l) || v(139), this.getChildren().forEach((_) => {
1139
+ if (er(i, !1, !0), u === null ? a.__first = o : u.getWritable().__next = o, l.__prev = f, h === null ? a.__last = o : h.getWritable().__prev = o, l.__next = g, l.__parent = d, a.__size = c, t && (N(this) && N(l) || v(139), this.getChildren().forEach(((_) => {
1140
1140
  l.append(_);
1141
- })), w(r)) {
1141
+ }))), w(r)) {
1142
1142
  ie(r);
1143
1143
  const _ = r.anchor, p = r.focus;
1144
1144
  _.key === s && qr(_, l), p.key === s && qr(p, l);
@@ -1239,7 +1239,7 @@ class Et extends hn {
1239
1239
  return !0;
1240
1240
  }
1241
1241
  static importDOM() {
1242
- return { br: (e) => function(t) {
1242
+ return { br: (e) => (function(t) {
1243
1243
  const r = t.parentElement;
1244
1244
  if (r !== null && xi(r)) {
1245
1245
  const i = r.firstChild;
@@ -1249,7 +1249,7 @@ class Et extends hn {
1249
1249
  }
1250
1250
  }
1251
1251
  return !1;
1252
- }(e) || function(t) {
1252
+ })(e) || (function(t) {
1253
1253
  const r = t.parentElement;
1254
1254
  if (r !== null && xi(r)) {
1255
1255
  const i = r.firstChild;
@@ -1258,7 +1258,7 @@ class Et extends hn {
1258
1258
  if (s === t || s.previousSibling === t && Kt(s)) return !0;
1259
1259
  }
1260
1260
  return !1;
1261
- }(e) ? null : { conversion: ko, priority: 0 } };
1261
+ })(e) ? null : { conversion: ko, priority: 0 } };
1262
1262
  }
1263
1263
  static importJSON(e) {
1264
1264
  return Tt().updateFromJSON(e);
@@ -1306,13 +1306,13 @@ function ns(n, e, t) {
1306
1306
  else {
1307
1307
  const o = r.nodeValue;
1308
1308
  if (o !== s) if (i || ze) {
1309
- const [l, a, c] = function(u, h) {
1309
+ const [l, a, c] = (function(u, h) {
1310
1310
  const f = u.length, g = h.length;
1311
1311
  let d = 0, _ = 0;
1312
1312
  for (; d < f && d < g && u[d] === h[d]; ) d++;
1313
1313
  for (; _ + d < f && _ + d < g && u[f - _ - 1] === h[g - _ - 1]; ) _++;
1314
1314
  return [d, f - d - _, h.slice(d, g - _)];
1315
- }(o, s);
1315
+ })(o, s);
1316
1316
  a !== 0 && r.deleteData(l, a), r.insertData(l, c);
1317
1317
  } else r.nodeValue = s;
1318
1318
  }
@@ -1507,7 +1507,7 @@ class lt extends hn {
1507
1507
  const t = this.getLatest(), r = t.getTextContent();
1508
1508
  if (r === "") return [];
1509
1509
  const i = t.__key, s = Me(), o = r.length;
1510
- e.sort((T, S) => T - S), e.push(o);
1510
+ e.sort(((T, S) => T - S)), e.push(o);
1511
1511
  const l = [], a = e.length;
1512
1512
  for (let T = 0, S = 0; T < o && S <= a; S++) {
1513
1513
  const A = e[S];
@@ -1590,14 +1590,14 @@ function Oo(n) {
1590
1590
  const e = n;
1591
1591
  n.parentElement === null && v(129);
1592
1592
  let t = e.textContent || "";
1593
- if (function(r) {
1593
+ if ((function(r) {
1594
1594
  let i, s = r.parentNode;
1595
1595
  const o = [r];
1596
1596
  for (; s !== null && (i = Vr.get(s)) === void 0 && !Mo(s); ) o.push(s), s = s.parentNode;
1597
1597
  const l = i === void 0 ? s : i;
1598
1598
  for (let a = 0; a < o.length; a++) Vr.set(o[a], l);
1599
1599
  return l;
1600
- }(e) !== null) {
1600
+ })(e) !== null) {
1601
1601
  const r = t.split(/(\r?\n|\t)/), i = [], s = r.length;
1602
1602
  for (let o = 0; o < s; o++) {
1603
1603
  const l = r[o];
@@ -1766,7 +1766,7 @@ class gn {
1766
1766
  is(e) {
1767
1767
  if (!gr(e)) return !1;
1768
1768
  const t = this._nodes, r = e._nodes;
1769
- return t.size === r.size && Array.from(t).every((i) => r.has(i));
1769
+ return t.size === r.size && Array.from(t).every(((i) => r.has(i)));
1770
1770
  }
1771
1771
  isCollapsed() {
1772
1772
  return !1;
@@ -1857,7 +1857,7 @@ class je {
1857
1857
  getNodes() {
1858
1858
  const e = this._cachedNodes;
1859
1859
  if (e !== null) return e;
1860
- const t = function(r) {
1860
+ const t = (function(r) {
1861
1861
  const i = [], [s, o] = r.getTextSlices();
1862
1862
  s && i.push(s.caret.origin);
1863
1863
  const l = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Set();
@@ -1879,7 +1879,7 @@ class je {
1879
1879
  i.push(f);
1880
1880
  }
1881
1881
  return i;
1882
- }(Os(ki(this), "next"));
1882
+ })(Os(ki(this), "next"));
1883
1883
  return Mt() || (this._cachedNodes = t), t;
1884
1884
  }
1885
1885
  setTextNodeRange(e, t, r, i) {
@@ -1934,10 +1934,10 @@ class je {
1934
1934
  insertText(e) {
1935
1935
  const t = this.anchor, r = this.focus, i = this.format, s = this.style;
1936
1936
  let o = t, l = r;
1937
- !this.isCollapsed() && r.isBefore(t) && (o = r, l = t), o.type === "element" && function(p, C, y, m) {
1937
+ !this.isCollapsed() && r.isBefore(t) && (o = r, l = t), o.type === "element" && (function(p, C, y, m) {
1938
1938
  const k = p.getNode(), E = k.getChildAtIndex(p.offset), x = G(), b = ne(k) ? Oe().append(x) : x;
1939
1939
  x.setFormat(y), x.setStyle(m), E === null ? k.append(b) : E.insertBefore(b), p.is(C) && C.set(x.__key, 0, "text"), p.set(x.__key, 0, "text");
1940
- }(o, l, i, s), l.type === "element" && kt(l, fe(Ve(l, "next")));
1940
+ })(o, l, i, s), l.type === "element" && kt(l, fe(Ve(l, "next")));
1941
1941
  const a = o.offset;
1942
1942
  let c = l.offset;
1943
1943
  const u = this.getNodes(), h = u.length;
@@ -2034,12 +2034,12 @@ class je {
2034
2034
  const r = this.getNodes(), i = [];
2035
2035
  for (const k of r) O(k) && i.push(k);
2036
2036
  const s = (k) => {
2037
- r.forEach((E) => {
2037
+ r.forEach(((E) => {
2038
2038
  if (N(E)) {
2039
2039
  const x = E.getFormatFlags(e, k);
2040
2040
  E.setTextFormat(x);
2041
2041
  }
2042
- });
2042
+ }));
2043
2043
  }, o = i.length;
2044
2044
  if (o === 0) return this.toggleFormat(e), V(null), void s(t);
2045
2045
  const l = this.anchor, a = this.focus, c = this.isBackward(), u = c ? a : l, h = c ? l : a;
@@ -2084,12 +2084,12 @@ class je {
2084
2084
  }
2085
2085
  return;
2086
2086
  }
2087
- if (!e.some((d) => (N(d) || K(d)) && !d.isInline())) {
2087
+ if (!e.some(((d) => (N(d) || K(d)) && !d.isInline()))) {
2088
2088
  N(r) || v(211, t.constructor.name, t.getType());
2089
2089
  const d = Ln(this);
2090
2090
  return r.splice(d, 0, e), void i.selectEnd();
2091
2091
  }
2092
- const s = function(d) {
2092
+ const s = (function(d) {
2093
2093
  const _ = Oe();
2094
2094
  let p = null;
2095
2095
  for (let C = 0; C < d.length; C++) {
@@ -2100,17 +2100,17 @@ class je {
2100
2100
  } else _.append(y), p = null;
2101
2101
  }
2102
2102
  return _;
2103
- }(e), o = s.getLastDescendant(), l = s.getChildren(), a = !N(r) || !r.isEmpty() ? this.insertParagraph() : null, c = l[l.length - 1];
2103
+ })(e), o = s.getLastDescendant(), l = s.getChildren(), a = !N(r) || !r.isEmpty() ? this.insertParagraph() : null, c = l[l.length - 1];
2104
2104
  let u = l[0];
2105
2105
  var h;
2106
- N(h = u) && be(h) && !h.isEmpty() && N(r) && (!r.isEmpty() || r.canMergeWhenEmpty()) && (N(r) || v(211, t.constructor.name, t.getType()), r.append(...u.getChildren()), u = l[1]), u && (r === null && v(212, t.constructor.name, t.getType()), function(d, _, p) {
2106
+ N(h = u) && be(h) && !h.isEmpty() && N(r) && (!r.isEmpty() || r.canMergeWhenEmpty()) && (N(r) || v(211, t.constructor.name, t.getType()), r.append(...u.getChildren()), u = l[1]), u && (r === null && v(212, t.constructor.name, t.getType()), (function(d, _, p) {
2107
2107
  const C = _.getParentOrThrow().getLastChild();
2108
2108
  let y = _;
2109
2109
  const m = [_];
2110
2110
  for (; y !== C; ) y.getNextSibling() || v(140), y = y.getNextSibling(), m.push(y);
2111
2111
  let k = d;
2112
2112
  for (const E of m) k = k.insertAfter(E);
2113
- }(r, u));
2113
+ })(r, u));
2114
2114
  const f = Bn(o, be);
2115
2115
  a && N(f) && (a.canMergeWhenEmpty() || be(c)) && (f.append(...a.getChildren()), a.remove()), N(r) && r.isEmpty() && r.remove(), o.selectEnd();
2116
2116
  const g = N(r) ? r.getLastChild() : null;
@@ -2165,9 +2165,9 @@ class je {
2165
2165
  let u = it(s, this.anchor.key), h = it(s, this.focus.key);
2166
2166
  this.anchor.type === "text" && (u = rt(u)), this.focus.type === "text" && (h = rt(h)), u && h && as(o, u, this.anchor.offset, h, this.focus.offset);
2167
2167
  }
2168
- if (function(u, h, f, g) {
2168
+ if ((function(u, h, f, g) {
2169
2169
  u.modify(h, f, g);
2170
- }(o, e, t ? "backward" : "forward", r), o.rangeCount > 0) {
2170
+ })(o, e, t ? "backward" : "forward", r), o.rangeCount > 0) {
2171
2171
  const u = o.getRangeAt(0), h = this.anchor.getNode(), f = ne(h) ? h : Xo(h);
2172
2172
  if (this.applyDOMRange(u), this.dirty = !0, !i) {
2173
2173
  const g = this.getNodes(), d = [];
@@ -2183,10 +2183,10 @@ class je {
2183
2183
  const p = d[d.length - 1];
2184
2184
  N(p) ? p.selectEnd() : p.getParentOrThrow().selectEnd();
2185
2185
  }
2186
- o.anchorNode === u.startContainer && o.anchorOffset === u.startOffset || function(p) {
2186
+ o.anchorNode === u.startContainer && o.anchorOffset === u.startOffset || (function(p) {
2187
2187
  const C = p.focus, y = p.anchor, m = y.key, k = y.offset, E = y.type;
2188
2188
  y.set(C.key, C.offset, C.type, !0), C.set(m, k, E, !0);
2189
- }(this);
2189
+ })(this);
2190
2190
  }
2191
2191
  }
2192
2192
  r === "lineboundary" && si(this, e, t, r, "decorators");
@@ -2205,7 +2205,7 @@ class je {
2205
2205
  let i = r.getNode();
2206
2206
  if (this.forwardDeletion(r, i, e)) return;
2207
2207
  const s = ks(Ve(r, e ? "previous" : "next"));
2208
- if (s.getTextSlices().every((l) => l === null || l.distance === 0)) {
2208
+ if (s.getTextSlices().every(((l) => l === null || l.distance === 0))) {
2209
2209
  let l = { type: "initial" };
2210
2210
  for (const a of s.iterNodeCarets("shadowRoot")) if (Se(a)) {
2211
2211
  if (!a.origin.isInline()) {
@@ -2260,9 +2260,9 @@ class je {
2260
2260
  const u = a.anchor, h = a.focus, f = u.getNode(), g = h.getNode();
2261
2261
  if (f === g && u.type === "text" && h.type === "text") {
2262
2262
  const d = u.offset, _ = h.offset, p = d < _, C = p ? d : _, y = p ? _ : d, m = y - 1;
2263
- C !== m && function(k) {
2263
+ C !== m && (function(k) {
2264
2264
  return !(xs(k) || Do(k));
2265
- }(f.getTextContent().slice(C, y)) && (c ? h.set(h.key, m, h.type) : u.set(u.key, m, u.type));
2265
+ })(f.getTextContent().slice(C, y)) && (c ? h.set(h.key, m, h.type) : u.set(u.key, m, u.type));
2266
2266
  }
2267
2267
  })(this, e);
2268
2268
  }
@@ -2356,10 +2356,10 @@ function ti(n, e, t, r) {
2356
2356
  const g = r.getElementByKey(f.getKey());
2357
2357
  g === null && v(214), [f, s] = f.getDOMSlot(g).resolveChildIndex(f, g, n, e), N(f) || v(215), o && s >= f.getChildrenSize() && (s = Math.max(0, f.getChildrenSize() - 1));
2358
2358
  let _ = f.getChildAtIndex(s);
2359
- if (N(_) && function(p, C, y) {
2359
+ if (N(_) && (function(p, C, y) {
2360
2360
  const m = p.getParent();
2361
2361
  return y === null || m === null || !m.canBeEmpty() || m !== y.getNode();
2362
- }(_, 0, t)) {
2362
+ })(_, 0, t)) {
2363
2363
  const p = o ? _.getLastDescendant() : _.getFirstDescendant();
2364
2364
  p === null ? f = _ : (_ = p, f = N(_) ? _ : _.getParentOrThrow()), s = 0;
2365
2365
  }
@@ -2660,10 +2660,10 @@ function Fo() {
2660
2660
  return Y;
2661
2661
  }
2662
2662
  function li(n, e, t) {
2663
- const r = e.__type, i = function(l, a) {
2663
+ const r = e.__type, i = (function(l, a) {
2664
2664
  const c = l._nodes.get(a);
2665
2665
  return c === void 0 && v(30, a), c;
2666
- }(n, r);
2666
+ })(n, r);
2667
2667
  let s = t.get(r);
2668
2668
  s === void 0 && (s = Array.from(i.transforms), t.set(r, s));
2669
2669
  const o = s.length;
@@ -2722,13 +2722,13 @@ function xe(n, e) {
2722
2722
  }
2723
2723
  t._readOnly || (t._readOnly = !0);
2724
2724
  const _ = n._dirtyLeaves, p = n._dirtyElements, C = n._normalizedNodes, y = n._updateTags, m = n._deferred;
2725
- a && (n._dirtyType = We, n._cloneNotNeeded.clear(), n._dirtyLeaves = /* @__PURE__ */ new Set(), n._dirtyElements = /* @__PURE__ */ new Map(), n._normalizedNodes = /* @__PURE__ */ new Set(), n._updateTags = /* @__PURE__ */ new Set()), function(x, b) {
2725
+ a && (n._dirtyType = We, n._cloneNotNeeded.clear(), n._dirtyLeaves = /* @__PURE__ */ new Set(), n._dirtyElements = /* @__PURE__ */ new Map(), n._normalizedNodes = /* @__PURE__ */ new Set(), n._updateTags = /* @__PURE__ */ new Set()), (function(x, b) {
2726
2726
  const T = x._decorators;
2727
2727
  let S = x._pendingDecorators || T;
2728
2728
  const A = b._nodeMap;
2729
2729
  let L;
2730
2730
  for (L in S) A.has(L) || (S === T && (S = ms(x)), delete S[L]);
2731
- }(n, t);
2731
+ })(n, t);
2732
2732
  const k = i ? null : Te(se(n));
2733
2733
  if (n._editable && k !== null && (a || l === null || l.dirty) && r !== null && !y.has(zo)) {
2734
2734
  Y = n, U = t;
@@ -2753,7 +2753,7 @@ function xe(n, e) {
2753
2753
  }
2754
2754
  if (R) {
2755
2755
  const B = x.getElementByKey(L.__key);
2756
- return S === null && (x._blockCursorElement = S = function(H) {
2756
+ return S === null && (x._blockCursorElement = S = (function(H) {
2757
2757
  const he = H.theme, ge = document.createElement("div");
2758
2758
  ge.contentEditable = "false", ge.setAttribute("data-lexical-cursor", "true");
2759
2759
  let _e = he.blockCursor;
@@ -2765,7 +2765,7 @@ function xe(n, e) {
2765
2765
  _e !== void 0 && ge.classList.add(..._e);
2766
2766
  }
2767
2767
  return ge;
2768
- }(x._config)), b.style.caretColor = "transparent", void (P === null ? B.appendChild(S) : B.insertBefore(S, P));
2768
+ })(x._config)), b.style.caretColor = "transparent", void (P === null ? B.appendChild(S) : B.insertBefore(S, P));
2769
2769
  }
2770
2770
  }
2771
2771
  S !== null && nr(S, x, b);
@@ -2774,18 +2774,18 @@ function xe(n, e) {
2774
2774
  g !== null && g.observe(r, oi), Y = h, U = c;
2775
2775
  }
2776
2776
  }
2777
- d !== null && function(x, b, T, S, A) {
2777
+ d !== null && (function(x, b, T, S, A) {
2778
2778
  const L = Array.from(x._listeners.mutation), W = L.length;
2779
2779
  for (let R = 0; R < W; R++) {
2780
2780
  const [P, B] = L[R], H = b.get(B);
2781
2781
  H !== void 0 && P(H, { dirtyLeaves: S, prevEditorState: A, updateTags: T });
2782
2782
  }
2783
- }(n, d, y, _, s), w(l) || l === null || o !== null && o.is(l) || n.dispatchCommand(Wi, void 0);
2783
+ })(n, d, y, _, s), w(l) || l === null || o !== null && o.is(l) || n.dispatchCommand(Wi, void 0);
2784
2784
  const E = n._pendingDecorators;
2785
- E !== null && (n._decorators = E, n._pendingDecorators = null, yt("decorator", n, !0, E)), function(x, b, T) {
2785
+ E !== null && (n._decorators = E, n._pendingDecorators = null, yt("decorator", n, !0, E)), (function(x, b, T) {
2786
2786
  const S = gi(b), A = gi(T);
2787
2787
  S !== A && yt("textcontent", x, !0, A);
2788
- }(n, e || s, t), yt("update", n, !0, { dirtyElements: p, dirtyLeaves: _, editorState: t, mutatedNodes: d, normalizedNodes: C, prevEditorState: e || s, tags: y }), function(x, b) {
2788
+ })(n, e || s, t), yt("update", n, !0, { dirtyElements: p, dirtyLeaves: _, editorState: t, mutatedNodes: d, normalizedNodes: C, prevEditorState: e || s, tags: y }), (function(x, b) {
2789
2789
  if (x._deferred = [], b.length !== 0) {
2790
2790
  const T = x._updating;
2791
2791
  x._updating = !0;
@@ -2795,7 +2795,7 @@ function xe(n, e) {
2795
2795
  x._updating = T;
2796
2796
  }
2797
2797
  }
2798
- }(n, m), function(x) {
2798
+ })(n, m), (function(x) {
2799
2799
  const b = x._updates;
2800
2800
  if (b.length !== 0) {
2801
2801
  const T = b.shift();
@@ -2804,7 +2804,7 @@ function xe(n, e) {
2804
2804
  yr(x, S, A);
2805
2805
  }
2806
2806
  }
2807
- }(n);
2807
+ })(n);
2808
2808
  }
2809
2809
  function yt(n, e, t, ...r) {
2810
2810
  const i = e._updating;
@@ -2847,12 +2847,12 @@ function yr(n, e, t) {
2847
2847
  U = a, Z = !1, n._updating = !0, Y = n;
2848
2848
  const d = n._headless || n.getRootElement() === null;
2849
2849
  try {
2850
- c && (d ? l._selection !== null && (a._selection = l._selection.clone()) : a._selection = function(y, m) {
2850
+ c && (d ? l._selection !== null && (a._selection = l._selection.clone()) : a._selection = (function(y, m) {
2851
2851
  const k = y.getEditorState()._selection, E = Te(se(y));
2852
2852
  return w(k) || k == null ? _r(k, E, y, m) : k.clone();
2853
- }(n, t && t.event || null));
2853
+ })(n, t && t.event || null));
2854
2854
  const p = n._compositionKey;
2855
- e(), s = ui(n, s), function(y, m) {
2855
+ e(), s = ui(n, s), (function(y, m) {
2856
2856
  const k = m.getEditorState()._selection, E = y._selection;
2857
2857
  if (w(E)) {
2858
2858
  const x = E.anchor, b = E.focus;
@@ -2862,13 +2862,13 @@ function yr(n, e, t) {
2862
2862
  T !== S && S.selectionTransform(k, E);
2863
2863
  }
2864
2864
  }
2865
- }(a, n), n._dirtyType !== We && (s ? function(y, m) {
2865
+ })(a, n), n._dirtyType !== We && (s ? (function(y, m) {
2866
2866
  const k = m._dirtyLeaves, E = y._nodeMap;
2867
2867
  for (const x of k) {
2868
2868
  const b = E.get(x);
2869
2869
  O(b) && b.isAttached() && b.isSimpleText() && !b.isUnmergeable() && Rr(b);
2870
2870
  }
2871
- }(a, n) : function(y, m) {
2871
+ })(a, n) : (function(y, m) {
2872
2872
  const k = m._dirtyLeaves, E = m._dirtyElements, x = y._nodeMap, b = Me(), T = /* @__PURE__ */ new Map();
2873
2873
  let S = k, A = S.size, L = E, W = L.size;
2874
2874
  for (; A > 0 || W > 0; ) {
@@ -2893,7 +2893,7 @@ function yr(n, e, t) {
2893
2893
  S = m._dirtyLeaves, A = S.size, L = m._dirtyElements, W = L.size, Jt++;
2894
2894
  }
2895
2895
  m._dirtyLeaves = k, m._dirtyElements = E;
2896
- }(a, n), ui(n), function(y, m, k, E) {
2896
+ })(a, n), ui(n), (function(y, m, k, E) {
2897
2897
  const x = y._nodeMap, b = m._nodeMap, T = [];
2898
2898
  for (const [S] of E) {
2899
2899
  const A = b.get(S);
@@ -2904,7 +2904,7 @@ function yr(n, e, t) {
2904
2904
  const A = b.get(S);
2905
2905
  A === void 0 || A.isAttached() || (x.has(S) || k.delete(S), b.delete(S));
2906
2906
  }
2907
- }(l, a, n._dirtyLeaves, n._dirtyElements)), p !== n._compositionKey && (a._flushSync = !0);
2907
+ })(l, a, n._dirtyLeaves, n._dirtyElements)), p !== n._compositionKey && (a._flushSync = !0);
2908
2908
  const C = a._selection;
2909
2909
  if (w(C)) {
2910
2910
  const y = a._nodeMap, m = C.anchor.key, k = C.focus.key;
@@ -2915,15 +2915,15 @@ function yr(n, e, t) {
2915
2915
  } finally {
2916
2916
  U = u, Z = h, Y = f, n._updating = g, Jt = 0;
2917
2917
  }
2918
- n._dirtyType !== We || n._deferred.length > 0 || function(p, C) {
2918
+ n._dirtyType !== We || n._deferred.length > 0 || (function(p, C) {
2919
2919
  const y = C.getEditorState()._selection, m = p._selection;
2920
2920
  if (m !== null) {
2921
2921
  if (m.dirty || !m.is(y)) return !0;
2922
2922
  } else if (y !== null) return !0;
2923
2923
  return !1;
2924
- }(a, n) ? a._flushSync ? (a._flushSync = !1, xe(n)) : c && Yo(() => {
2924
+ })(a, n) ? a._flushSync ? (a._flushSync = !1, xe(n)) : c && Yo((() => {
2925
2925
  xe(n);
2926
- }) : (a._flushSync = !1, c && (r.clear(), n._deferred = [], n._pendingEditorState = null));
2926
+ })) : (a._flushSync = !1, c && (r.clear(), n._deferred = [], n._pendingEditorState = null));
2927
2927
  }
2928
2928
  function te(n, e, t) {
2929
2929
  Y === n && t === void 0 ? e() : yr(n, e, t);
@@ -3205,7 +3205,7 @@ class _n extends hn {
3205
3205
  }
3206
3206
  clear() {
3207
3207
  const e = this.getWritable();
3208
- return this.getChildren().forEach((t) => t.remove()), e;
3208
+ return this.getChildren().forEach(((t) => t.remove())), e;
3209
3209
  }
3210
3210
  append(...e) {
3211
3211
  return this.splice(this.getChildrenSize(), 0, e);
@@ -3461,7 +3461,7 @@ class pn {
3461
3461
  return t._readOnly = !0, t;
3462
3462
  }
3463
3463
  toJSON() {
3464
- return ci(null, this, () => ({ root: hs(re()) }));
3464
+ return ci(null, this, (() => ({ root: hs(re()) })));
3465
3465
  }
3466
3466
  }
3467
3467
  const Al = "historic", wl = "history-push", Fn = "history-merge", Dl = "paste", Ko = "collaboration", Bo = "skip-scroll-into-view", zo = "skip-dom-selection";
@@ -3553,21 +3553,21 @@ function Rl(n) {
3553
3553
  k !== null && E.add(k), g.set(m, { exportDOM: h && h.export ? h.export.get(p) : void 0, klass: p, replace: C, replaceWithKlass: y, transforms: E });
3554
3554
  }
3555
3555
  }
3556
- const d = new yn(o, i, g, { disableEvents: s, namespace: l, theme: r }, u || console.error, function(_, p) {
3556
+ const d = new yn(o, i, g, { disableEvents: s, namespace: l, theme: r }, u || console.error, (function(_, p) {
3557
3557
  const C = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Set(), m = (k) => {
3558
- Object.keys(k).forEach((E) => {
3558
+ Object.keys(k).forEach(((E) => {
3559
3559
  let x = C.get(E);
3560
3560
  x === void 0 && (x = [], C.set(E, x)), x.push(k[E]);
3561
- });
3561
+ }));
3562
3562
  };
3563
- return _.forEach((k) => {
3563
+ return _.forEach(((k) => {
3564
3564
  const E = k.klass.importDOM;
3565
3565
  if (E == null || y.has(E)) return;
3566
3566
  y.add(E);
3567
3567
  const x = E.call(k.klass);
3568
3568
  x !== null && m(x);
3569
- }), p && m(p), C;
3570
- }(g, h ? h.import : void 0), f, n);
3569
+ })), p && m(p), C;
3570
+ })(g, h ? h.import : void 0), f, n);
3571
3571
  return a !== void 0 && (d._pendingEditorState = a, d._dirtyType = nt), d;
3572
3572
  }
3573
3573
  class yn {
@@ -3615,7 +3615,7 @@ class yn {
3615
3615
  s === void 0 && v(36, String(e));
3616
3616
  const o = s[r];
3617
3617
  return o.add(t), () => {
3618
- o.delete(t), s.every((l) => l.size === 0) && i.delete(e);
3618
+ o.delete(t), s.every(((l) => l.size === 0)) && i.delete(e);
3619
3619
  };
3620
3620
  }
3621
3621
  registerMutationListener(e, t, r) {
@@ -3651,20 +3651,20 @@ class yn {
3651
3651
  const o = this.registerNodeTransformToKlass(s, t);
3652
3652
  i.push(o);
3653
3653
  }
3654
- return function(o, l) {
3654
+ return (function(o, l) {
3655
3655
  const a = Ni(o.getEditorState()), c = [];
3656
3656
  for (const u of l) {
3657
3657
  const h = a.get(u);
3658
3658
  h && c.push(h);
3659
3659
  }
3660
- c.length !== 0 && o.update(() => {
3660
+ c.length !== 0 && o.update((() => {
3661
3661
  for (const u of c) for (const h of u.keys()) {
3662
3662
  const f = J(h);
3663
3663
  f && f.markDirty();
3664
3664
  }
3665
- }, o._pendingEditorState === null ? { tag: Fn } : void 0);
3666
- }(this, i.map((o) => o.klass.getType())), () => {
3667
- i.forEach((o) => o.transforms.delete(t));
3665
+ }), o._pendingEditorState === null ? { tag: Fn } : void 0);
3666
+ })(this, i.map(((o) => o.klass.getType()))), () => {
3667
+ i.forEach(((o) => o.transforms.delete(t)));
3668
3668
  };
3669
3669
  }
3670
3670
  hasNode(e) {
@@ -3691,7 +3691,7 @@ class yn {
3691
3691
  const r = et(this._config.theme, "root"), i = this._pendingEditorState || this._editorState;
3692
3692
  if (this._rootElement = e, gs(this, t, e, i), t !== null && (this._config.disableEvents || vo(t), r != null && t.classList.remove(...r)), e !== null) {
3693
3693
  const s = kr(e), o = e.style;
3694
- o.userSelect = "text", o.whiteSpace = "pre-wrap", o.wordBreak = "break-word", e.setAttribute("data-lexical-editor", "true"), this._window = s, this._dirtyType = nt, Li(this), this._updateTags.add(Fn), xe(this), this._config.disableEvents || function(l, a) {
3694
+ o.userSelect = "text", o.whiteSpace = "pre-wrap", o.wordBreak = "break-word", e.setAttribute("data-lexical-editor", "true"), this._window = s, this._dirtyType = nt, Li(this), this._updateTags.add(Fn), xe(this), this._config.disableEvents || (function(l, a) {
3695
3695
  const c = l.ownerDocument, u = on.get(c);
3696
3696
  (u === void 0 || u < 1) && c.addEventListener("selectionchange", es), on.set(c, (u || 0) + 1), l.__lexicalEditor = a;
3697
3697
  const h = Zi(l);
@@ -3723,11 +3723,11 @@ class yn {
3723
3723
  return C && M(a, yo, p);
3724
3724
  }
3725
3725
  };
3726
- l.addEventListener(g, _), h.push(() => {
3726
+ l.addEventListener(g, _), h.push((() => {
3727
3727
  l.removeEventListener(g, _);
3728
- });
3728
+ }));
3729
3729
  }
3730
- }(e, this), r != null && e.classList.add(...r);
3730
+ })(e, this), r != null && e.classList.add(...r);
3731
3731
  } else this._window = null, this._updateTags.add(Fn), xe(this);
3732
3732
  yt("root", this, !1, e, t);
3733
3733
  }
@@ -3746,7 +3746,7 @@ class yn {
3746
3746
  i === null || i.isEmpty() || (o != null && s.add(o), xe(this)), this._pendingEditorState = r, this._dirtyType = nt, this._dirtyElements.set("root", !1), this._compositionKey = null, o != null && s.add(o), this._updating || xe(this);
3747
3747
  }
3748
3748
  parseEditorState(e, t) {
3749
- return function(r, i, s) {
3749
+ return (function(r, i, s) {
3750
3750
  const o = mr(), l = U, a = Z, c = Y, u = i._dirtyElements, h = i._dirtyLeaves, f = i._cloneNotNeeded, g = i._dirtyType;
3751
3751
  i._dirtyElements = /* @__PURE__ */ new Map(), i._dirtyLeaves = /* @__PURE__ */ new Set(), i._cloneNotNeeded = /* @__PURE__ */ new Set(), i._dirtyType = 0, U = o, Z = !1, Y = i;
3752
3752
  try {
@@ -3758,7 +3758,7 @@ class yn {
3758
3758
  i._dirtyElements = u, i._dirtyLeaves = h, i._cloneNotNeeded = f, i._dirtyType = g, U = l, Z = a, Y = c;
3759
3759
  }
3760
3760
  return o;
3761
- }(typeof e == "string" ? JSON.parse(e) : e, this, t);
3761
+ })(typeof e == "string" ? JSON.parse(e) : e, this, t);
3762
3762
  }
3763
3763
  read(e) {
3764
3764
  return xe(this), this.getEditorState().read(e, { editor: this });
@@ -3770,12 +3770,12 @@ class yn {
3770
3770
  }
3771
3771
  focus(e, t = {}) {
3772
3772
  const r = this._rootElement;
3773
- r !== null && (r.setAttribute("autocapitalize", "off"), te(this, () => {
3773
+ r !== null && (r.setAttribute("autocapitalize", "off"), te(this, (() => {
3774
3774
  const i = I(), s = re();
3775
- i !== null ? i.dirty || ie(i.clone()) : s.getChildrenSize() !== 0 && (t.defaultSelection === "rootStart" ? s.selectStart() : s.selectEnd()), jo("focus"), qo(() => {
3775
+ i !== null ? i.dirty || ie(i.clone()) : s.getChildrenSize() !== 0 && (t.defaultSelection === "rootStart" ? s.selectStart() : s.selectEnd()), jo("focus"), qo((() => {
3776
3776
  r.removeAttribute("autocapitalize"), e && e();
3777
- });
3778
- }), this._pendingEditorState === null && r.removeAttribute("autocapitalize"));
3777
+ }));
3778
+ })), this._pendingEditorState === null && r.removeAttribute("autocapitalize"));
3779
3779
  }
3780
3780
  blur() {
3781
3781
  const e = this._rootElement;
@@ -3875,7 +3875,7 @@ function Ke(n) {
3875
3875
  function un(n) {
3876
3876
  cs();
3877
3877
  const e = n.getLatest(), t = e.__parent, r = De(), i = z(), s = r._nodeMap, o = i._dirtyElements;
3878
- t !== null && function(a, c, u) {
3878
+ t !== null && (function(a, c, u) {
3879
3879
  let h = a;
3880
3880
  for (; h !== null; ) {
3881
3881
  if (u.has(h)) return;
@@ -3883,7 +3883,7 @@ function un(n) {
3883
3883
  if (f === void 0) break;
3884
3884
  u.set(h, !1), h = f.__parent;
3885
3885
  }
3886
- }(t, s, o);
3886
+ })(t, s, o);
3887
3887
  const l = e.__key;
3888
3888
  i._dirtyType = Mi, N(n) ? o.set(l, !0) : i._dirtyLeaves.add(l);
3889
3889
  }
@@ -3929,7 +3929,7 @@ function ms(n) {
3929
3929
  return n._pendingDecorators = t, t;
3930
3930
  }
3931
3931
  function gi(n) {
3932
- return n.read(() => re().getTextContent());
3932
+ return n.read((() => re().getTextContent()));
3933
3933
  }
3934
3934
  function re() {
3935
3935
  return Cs(De());
@@ -3943,7 +3943,7 @@ function ie(n) {
3943
3943
  n !== null && (n.dirty = !0, n.setCachedNodes(null)), e._selection = n;
3944
3944
  }
3945
3945
  function Xe(n) {
3946
- const e = z(), t = function(r, i) {
3946
+ const e = z(), t = (function(r, i) {
3947
3947
  let s = r;
3948
3948
  for (; s != null; ) {
3949
3949
  const o = xn(s, i);
@@ -3951,7 +3951,7 @@ function Xe(n) {
3951
3951
  s = wt(s);
3952
3952
  }
3953
3953
  return null;
3954
- }(n, e);
3954
+ })(n, e);
3955
3955
  return t === null ? n === e.getRootElement() ? J("root") : null : J(t);
3956
3956
  }
3957
3957
  function _i(n, e) {
@@ -4001,11 +4001,11 @@ function Tr(n, e, t, r, i) {
4001
4001
  if (V(null), Ct || tt || jt) s.remove();
4002
4002
  else {
4003
4003
  const _ = z();
4004
- setTimeout(() => {
4005
- _.update(() => {
4004
+ setTimeout((() => {
4005
+ _.update((() => {
4006
4006
  s.isAttached() && s.remove();
4007
- });
4008
- }, 20);
4007
+ }));
4008
+ }), 20);
4009
4009
  }
4010
4010
  return;
4011
4011
  }
@@ -4093,7 +4093,7 @@ function Ts(n) {
4093
4093
  return t === "insertFromPaste" || t === "insertFromPasteAsQuotation";
4094
4094
  }
4095
4095
  function M(n, e, t) {
4096
- return function(r, i, s) {
4096
+ return (function(r, i, s) {
4097
4097
  const o = Sr(r);
4098
4098
  for (let l = 4; l >= 0; l--) for (let a = 0; a < o.length; a++) {
4099
4099
  const c = o[a], u = c._commands.get(i);
@@ -4102,14 +4102,14 @@ function M(n, e, t) {
4102
4102
  if (h !== void 0) {
4103
4103
  const f = Array.from(h), g = f.length;
4104
4104
  let d = !1;
4105
- if (te(c, () => {
4105
+ if (te(c, (() => {
4106
4106
  for (let _ = 0; _ < g; _++) if (f[_](s, r)) return void (d = !0);
4107
- }), d) return d;
4107
+ })), d) return d;
4108
4108
  }
4109
4109
  }
4110
4110
  }
4111
4111
  return !1;
4112
- }(n, e, t);
4112
+ })(n, e, t);
4113
4113
  }
4114
4114
  function Sn(n) {
4115
4115
  return !ne(n) && !n.isLastChild() && !n.isInline();
@@ -4232,7 +4232,7 @@ function Ni(n) {
4232
4232
  if (!n._readOnly && n.isEmpty()) return nl;
4233
4233
  n._readOnly || v(192);
4234
4234
  let e = Si.get(n);
4235
- return e || (e = function(t) {
4235
+ return e || (e = (function(t) {
4236
4236
  const r = /* @__PURE__ */ new Map();
4237
4237
  for (const [i, s] of t._nodeMap) {
4238
4238
  const o = s.__type;
@@ -4240,7 +4240,7 @@ function Ni(n) {
4240
4240
  l || (l = /* @__PURE__ */ new Map(), r.set(o, l)), l.set(i, s);
4241
4241
  }
4242
4242
  return r;
4243
- }(n), Si.set(n, e)), e;
4243
+ })(n), Si.set(n, e)), e;
4244
4244
  }
4245
4245
  function rl(n) {
4246
4246
  const e = n.constructor.clone(n);
@@ -4462,12 +4462,12 @@ function He(n, e, t) {
4462
4462
  function Tn(n, e) {
4463
4463
  const t = n.getTextContentSize();
4464
4464
  let r = e === "next" ? t : e === "previous" ? 0 : e;
4465
- return (r < 0 || r > t) && (function(i, ...s) {
4465
+ return (r < 0 || r > t) && ((function(i, ...s) {
4466
4466
  const o = new URL("https://lexical.dev/docs/error"), l = new URLSearchParams();
4467
4467
  l.append("code", i);
4468
4468
  for (const a of s) l.append("v", a);
4469
4469
  o.search = l.toString(), console.warn(`Minified Lexical warning #${i}; visit ${o.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`);
4470
- }(284, String(e), String(t), n.getKey()), r = r < 0 ? 0 : t), r;
4470
+ })(284, String(e), String(t), n.getKey()), r = r < 0 ? 0 : t), r;
4471
4471
  }
4472
4472
  function Ti(n, e) {
4473
4473
  return new dl(n, e);
@@ -4496,10 +4496,10 @@ class Or {
4496
4496
  getTextSlices() {
4497
4497
  const e = (i) => {
4498
4498
  const s = this[i].getLatest();
4499
- return Be(s) ? function(o, l) {
4499
+ return Be(s) ? (function(o, l) {
4500
4500
  const { direction: a, origin: c } = o, u = Tn(c, l === "focus" ? ct(a) : a);
4501
4501
  return Ti(o, u - o.offset);
4502
- }(s, i) : null;
4502
+ })(s, i) : null;
4503
4503
  }, t = e("anchor"), r = e("focus");
4504
4504
  if (t && r) {
4505
4505
  const { caret: i } = t, { caret: s } = r;
@@ -4561,9 +4561,9 @@ function bs(n, e) {
4561
4561
  switch (t === null && v(275, n.origin.getKey(), e.origin.getKey()), t.type) {
4562
4562
  case "same": {
4563
4563
  const r = n.type === "text", i = e.type === "text";
4564
- return r && i ? function(s, o) {
4564
+ return r && i ? (function(s, o) {
4565
4565
  return Math.sign(s - o);
4566
- }(n.offset, e.offset) : n.type === e.type ? 0 : r ? -1 : i ? 1 : n.type === "child" ? -1 : 1;
4566
+ })(n.offset, e.offset) : n.type === e.type ? 0 : r ? -1 : i ? 1 : n.type === "child" ? -1 : 1;
4567
4567
  }
4568
4568
  case "ancestor":
4569
4569
  return n.type === "child" ? -1 : 1;
@@ -4664,7 +4664,7 @@ function _l(n, e = "removeEmptySlices") {
4664
4664
  h = fe(d);
4665
4665
  break;
4666
4666
  }
4667
- const f = function(d, _, p) {
4667
+ const f = (function(d, _, p) {
4668
4668
  if (!d || !_) return null;
4669
4669
  const C = d.getParentAtCaret(), y = _.getParentAtCaret();
4670
4670
  if (!C || !y) return null;
@@ -4683,9 +4683,9 @@ function _l(n, e = "removeEmptySlices") {
4683
4683
  !W && L(P) && (W = P);
4684
4684
  }
4685
4685
  return W;
4686
- }, T = b(m, be), S = T && b(k, (A) => p.has(A.getKey()) && be(A));
4686
+ }, T = b(m, be), S = T && b(k, ((A) => p.has(A.getKey()) && be(A)));
4687
4687
  return T && S ? [T, S] : null;
4688
- }(u, h, a);
4688
+ })(u, h, a);
4689
4689
  if (f) {
4690
4690
  const [d, _] = f;
4691
4691
  we(d, "previous").splice(0, _.getChildren()), _.remove();
@@ -4693,10 +4693,10 @@ function _l(n, e = "removeEmptySlices") {
4693
4693
  const g = [u, h, ...o, ...l].find(zn);
4694
4694
  if (g)
4695
4695
  return hl(ot(fe(g), n.direction));
4696
- v(269, JSON.stringify(o.map((d) => d.origin.__key)));
4696
+ v(269, JSON.stringify(o.map(((d) => d.origin.__key))));
4697
4697
  }
4698
4698
  function fe(n) {
4699
- const e = function(i) {
4699
+ const e = (function(i) {
4700
4700
  let s = i;
4701
4701
  for (; Se(s); ) {
4702
4702
  const o = Mr(s);
@@ -4704,7 +4704,7 @@ function fe(n) {
4704
4704
  s = o;
4705
4705
  }
4706
4706
  return s;
4707
- }(n.getLatest()), { direction: t } = e;
4707
+ })(n.getLatest()), { direction: t } = e;
4708
4708
  if (O(e.origin)) return Be(e) ? e : He(e.origin, t, t);
4709
4709
  const r = e.getAdjacentCaret();
4710
4710
  return st(r) && O(r.origin) ? He(r.origin, t, ct(t)) : e;