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
@@ -183,7 +183,7 @@ function Oe(n) {
183
183
  else if (n.is(s)) t.insertAfter(n), e.isEmpty() && t.remove();
184
184
  else {
185
185
  const i = e.getListType(), o = m(), a = p(i);
186
- o.append(a), n.getPreviousSiblings().forEach((d) => a.append(d));
186
+ o.append(a), n.getPreviousSiblings().forEach(((d) => a.append(d)));
187
187
  const l = m(), c = p(i);
188
188
  l.append(c), N(c, n.getNextSiblings()), t.insertBefore(o), t.insertAfter(l), t.replace(n);
189
189
  }
@@ -213,7 +213,7 @@ function xe() {
213
213
  } else i.insertAfter(a);
214
214
  a.append(...o);
215
215
  }
216
- return function(a) {
216
+ return (function(a) {
217
217
  let l = a;
218
218
  for (; l.getNextSibling() == null && l.getPreviousSibling() == null; ) {
219
219
  const c = l.getParent();
@@ -221,7 +221,7 @@ function xe() {
221
221
  l = c;
222
222
  }
223
223
  l.remove();
224
- }(e), !0;
224
+ })(e), !0;
225
225
  }
226
226
  function F(...n) {
227
227
  const e = [];
@@ -244,9 +244,9 @@ class O extends se {
244
244
  }
245
245
  updateListItemDOM(e, t, r) {
246
246
  const s = this.getParent();
247
- u(s) && s.getListType() === "check" && function(a, l, c, d) {
247
+ u(s) && s.getListType() === "check" && (function(a, l, c, d) {
248
248
  u(l.getFirstChild()) ? (a.removeAttribute("role"), a.removeAttribute("tabIndex"), a.removeAttribute("aria-checked")) : (a.setAttribute("role", "checkbox"), a.setAttribute("tabIndex", "-1"), c && l.__checked === c.__checked || a.setAttribute("aria-checked", l.getChecked() ? "true" : "false"));
249
- }(t, this, e), t.value = this.__value, function(a, l, c) {
249
+ })(t, this, e), t.value = this.__value, (function(a, l, c) {
250
250
  const d = [], h = [], f = l.list, x = f ? f.listitem : void 0;
251
251
  let _;
252
252
  if (f && f.nested && (_ = f.nested.listitem), x !== void 0 && d.push(...F(x)), f) {
@@ -255,16 +255,16 @@ class O extends se {
255
255
  }
256
256
  if (_ !== void 0) {
257
257
  const k = F(_);
258
- c.getChildren().some((b) => u(b)) ? d.push(...k) : h.push(...k);
258
+ c.getChildren().some(((b) => u(b))) ? d.push(...k) : h.push(...k);
259
259
  }
260
260
  h.length > 0 && ee(a, ...h), d.length > 0 && te(a, ...d);
261
- }(t, r.theme, this);
261
+ })(t, r.theme, this);
262
262
  const i = e ? e.__style : "", o = this.__style;
263
- i !== o && (o === "" ? t.removeAttribute("style") : t.style.cssText = o), function(a, l, c) {
263
+ i !== o && (o === "" ? t.removeAttribute("style") : t.style.cssText = o), (function(a, l, c) {
264
264
  const d = z(l.__textStyle);
265
265
  for (const h in d) a.style.setProperty(`--listitem-marker-${h}`, d[h]);
266
266
  if (c) for (const h in z(c.__textStyle)) h in d || a.style.removeProperty(`--listitem-marker-${h}`);
267
- }(t, this, e);
267
+ })(t, this, e);
268
268
  }
269
269
  updateDOM(e, t, r) {
270
270
  const s = t;
@@ -321,9 +321,9 @@ class O extends se {
321
321
  }
322
322
  r.insertAfter(e), e.insertAfter(s);
323
323
  }
324
- return t && (v(e) || y(139), this.getChildren().forEach((s) => {
324
+ return t && (v(e) || y(139), this.getChildren().forEach(((s) => {
325
325
  e.append(s);
326
- })), this.remove(), r.getChildrenSize() === 0 && r.remove(), e;
326
+ }))), this.remove(), r.getChildrenSize() === 0 && r.remove(), e;
327
327
  }
328
328
  insertAfter(e, t = !0) {
329
329
  const r = this.getParentOrThrow();
@@ -331,7 +331,7 @@ class O extends se {
331
331
  const s = this.getNextSiblings();
332
332
  if (r.insertAfter(e, t), s.length !== 0) {
333
333
  const i = p(r.getListType());
334
- s.forEach((o) => i.append(o)), e.insertAfter(i, t);
334
+ s.forEach(((o) => i.append(o))), e.insertAfter(i, t);
335
335
  }
336
336
  return e;
337
337
  }
@@ -345,7 +345,7 @@ class O extends se {
345
345
  }
346
346
  collapseAtStart(e) {
347
347
  const t = M();
348
- this.getChildren().forEach((o) => t.append(o));
348
+ this.getChildren().forEach(((o) => t.append(o)));
349
349
  const r = this.getParentOrThrow(), s = r.getParentOrThrow(), i = g(s);
350
350
  if (r.getChildrenSize() === 1) if (i) r.remove(), s.select();
351
351
  else {
@@ -469,14 +469,14 @@ class E extends se {
469
469
  }
470
470
  static transform() {
471
471
  return (e) => {
472
- u(e) || y(163), function(t) {
472
+ u(e) || y(163), (function(t) {
473
473
  const r = t.getNextSibling();
474
474
  u(r) && t.getListType() === r.getListType() && J(t, r);
475
- }(e), function(t) {
475
+ })(e), (function(t) {
476
476
  const r = t.getListType() !== "check";
477
477
  let s = t.getStart();
478
478
  for (const i of t.getChildren()) g(i) && (i.getValue() !== s && i.setValue(s), r && i.getLatest().__checked != null && i.setChecked(void 0), u(i.getFirstChild()) || s++);
479
- }(e);
479
+ })(e);
480
480
  };
481
481
  }
482
482
  static importDOM() {
@@ -537,9 +537,9 @@ function Pe(n) {
537
537
  if (g(r)) {
538
538
  e.push(r);
539
539
  const s = r.getChildren();
540
- s.length > 1 && s.forEach((i) => {
540
+ s.length > 1 && s.forEach(((i) => {
541
541
  u(i) && e.push(Y(i));
542
- });
542
+ }));
543
543
  } else e.push(Y(r));
544
544
  }
545
545
  return e;
@@ -547,11 +547,11 @@ function Pe(n) {
547
547
  function X(n) {
548
548
  const e = n.nodeName.toLowerCase();
549
549
  let t = null;
550
- return e === "ol" ? t = p("number", n.start) : e === "ul" && (t = function(r) {
550
+ return e === "ol" ? t = p("number", n.start) : e === "ul" && (t = (function(r) {
551
551
  if (r.getAttribute("__lexicallisttype") === "check" || r.classList.contains("contains-task-list")) return !0;
552
552
  for (const s of r.childNodes) if (S(s) && s.hasAttribute("aria-checked")) return !0;
553
553
  return !1;
554
- }(n) ? p("check") : p("bullet")), { after: Pe, node: t };
554
+ })(n) ? p("check") : p("bullet")), { after: Pe, node: t };
555
555
  }
556
556
  const j = { ol: "number", ul: "bullet" };
557
557
  function p(n = "number", e = 1) {
@@ -562,24 +562,24 @@ function u(n) {
562
562
  }
563
563
  const Ee = D("INSERT_CHECK_LIST_COMMAND");
564
564
  function we(n) {
565
- return re(n.registerCommand(Ee, () => ($("check"), !0), C), n.registerCommand(Ne, (e) => Z(e, n, !1), C), n.registerCommand(Te, (e) => Z(e, n, !0), C), n.registerCommand(ye, () => {
565
+ return re(n.registerCommand(Ee, (() => ($("check"), !0)), C), n.registerCommand(Ne, ((e) => Z(e, n, !1)), C), n.registerCommand(Te, ((e) => Z(e, n, !0)), C), n.registerCommand(ye, (() => {
566
566
  if (K() != null) {
567
567
  const e = n.getRootElement();
568
568
  return e?.focus(), !0;
569
569
  }
570
570
  return !1;
571
- }, C), n.registerCommand(Ce, (e) => {
571
+ }), C), n.registerCommand(Ce, ((e) => {
572
572
  const t = K();
573
- return !(t == null || !n.isEditable()) && (n.update(() => {
573
+ return !(t == null || !n.isEditable()) && (n.update((() => {
574
574
  const r = W(t);
575
575
  g(r) && (e.preventDefault(), r.toggleChecked());
576
- }), !0);
577
- }, C), n.registerCommand(_e, (e) => n.getEditorState().read(() => {
576
+ })), !0);
577
+ }), C), n.registerCommand(_e, ((e) => n.getEditorState().read((() => {
578
578
  const t = P();
579
579
  if (L(t) && t.isCollapsed()) {
580
580
  const { anchor: r } = t, s = r.type === "element";
581
581
  if (s || r.offset === 0) {
582
- const i = r.getNode(), o = ne(i, (a) => v(a) && !a.isInline());
582
+ const i = r.getNode(), o = ne(i, ((a) => v(a) && !a.isInline()));
583
583
  if (g(o)) {
584
584
  const a = o.getParent();
585
585
  if (u(a) && a.getListType() === "check" && (s || o.getFirstDescendant() === i)) {
@@ -590,9 +590,9 @@ function we(n) {
590
590
  }
591
591
  }
592
592
  return !1;
593
- }), C), n.registerRootListener((e, t) => {
593
+ }))), C), n.registerRootListener(((e, t) => {
594
594
  e !== null && (e.addEventListener("click", q), e.addEventListener("pointerdown", Q)), t !== null && (t.removeEventListener("click", q), t.removeEventListener("pointerdown", Q));
595
- }));
595
+ })));
596
596
  }
597
597
  function ce(n, e) {
598
598
  const t = n.target;
@@ -605,20 +605,20 @@ function ce(n, e) {
605
605
  (t.dir === "rtl" ? o < i.right && o > i.right - l : o > i.left && o < i.left + l) && e();
606
606
  }
607
607
  function q(n) {
608
- ce(n, () => {
608
+ ce(n, (() => {
609
609
  if (S(n.target)) {
610
610
  const e = n.target, t = Se(e);
611
- t != null && t.isEditable() && t.update(() => {
611
+ t != null && t.isEditable() && t.update((() => {
612
612
  const r = W(e);
613
613
  g(r) && (e.focus(), r.toggleChecked());
614
- });
614
+ }));
615
615
  }
616
- });
616
+ }));
617
617
  }
618
618
  function Q(n) {
619
- ce(n, () => {
619
+ ce(n, (() => {
620
620
  n.preventDefault();
621
- });
621
+ }));
622
622
  }
623
623
  function K() {
624
624
  const n = document.activeElement;
@@ -626,10 +626,10 @@ function K() {
626
626
  }
627
627
  function Z(n, e, t) {
628
628
  const r = K();
629
- return r != null && e.update(() => {
629
+ return r != null && e.update((() => {
630
630
  const s = W(r);
631
631
  if (!g(s)) return;
632
- const i = function(o, a) {
632
+ const i = (function(o, a) {
633
633
  let l = a ? o.getPreviousSibling() : o.getNextSibling(), c = o;
634
634
  for (; l == null && g(c); ) c = c.getParentOrThrow().getParent(), c != null && (l = a ? c.getPreviousSibling() : c.getNextSibling());
635
635
  for (; g(l); ) {
@@ -638,19 +638,19 @@ function Z(n, e, t) {
638
638
  l = a ? d.getLastChild() : d.getFirstChild();
639
639
  }
640
640
  return null;
641
- }(s, t);
641
+ })(s, t);
642
642
  if (i != null) {
643
643
  i.selectStart();
644
644
  const o = e.getElementByKey(i.__key);
645
- o != null && (n.preventDefault(), setTimeout(() => {
645
+ o != null && (n.preventDefault(), setTimeout((() => {
646
646
  o.focus();
647
- }, 0));
647
+ }), 0));
648
648
  }
649
- }), !1;
649
+ })), !1;
650
650
  }
651
651
  const Ae = D("INSERT_UNORDERED_LIST_COMMAND"), Fe = D("INSERT_ORDERED_LIST_COMMAND"), Me = D("REMOVE_LIST_COMMAND");
652
652
  function $e(n) {
653
- return re(n.registerCommand(Fe, () => ($("number"), !0), C), n.registerCommand(Ae, () => ($("bullet"), !0), C), n.registerCommand(Me, () => (ve(), !0), C), n.registerCommand(me, () => xe(), C), n.registerNodeTransform(O, (e) => {
653
+ return re(n.registerCommand(Fe, (() => ($("number"), !0)), C), n.registerCommand(Ae, (() => ($("bullet"), !0)), C), n.registerCommand(Me, (() => (ve(), !0)), C), n.registerCommand(me, (() => xe()), C), n.registerNodeTransform(O, ((e) => {
654
654
  const t = e.getFirstChild();
655
655
  if (t) {
656
656
  if (pe(t)) {
@@ -661,24 +661,24 @@ function $e(n) {
661
661
  const r = P();
662
662
  L(r) && (r.style !== e.getTextStyle() || r.format !== e.getTextFormat()) && r.isCollapsed() && e.is(r.anchor.getNode()) && e.setTextStyle(r.style).setTextFormat(r.format);
663
663
  }
664
- }), n.registerNodeTransform(fe, (e) => {
664
+ })), n.registerNodeTransform(fe, ((e) => {
665
665
  const t = e.getParent();
666
666
  if (g(t) && e.is(t.getFirstChild())) {
667
667
  const r = e.getStyle(), s = e.getFormat();
668
668
  r === t.getTextStyle() && s === t.getTextFormat() || t.setTextStyle(r).setTextFormat(s);
669
669
  }
670
- }));
670
+ })));
671
671
  }
672
672
  function Ke(n) {
673
673
  const e = (t) => {
674
674
  const r = t.getParent();
675
675
  if (u(t.getFirstChild()) || !u(r)) return;
676
- const s = ne(t, (i) => g(i) && u(i.getParent()) && g(i.getPreviousSibling()));
676
+ const s = ne(t, ((i) => g(i) && u(i.getParent()) && g(i.getPreviousSibling())));
677
677
  if (s === null && t.getIndent() > 0) t.setIndent(0);
678
678
  else if (g(s)) {
679
679
  const i = s.getPreviousSibling();
680
680
  if (g(i)) {
681
- const o = function(l) {
681
+ const o = (function(l) {
682
682
  let c = l, d = c.getFirstChild();
683
683
  for (; u(d); ) {
684
684
  const h = d.getLastChild();
@@ -686,7 +686,7 @@ function Ke(n) {
686
686
  c = h, d = c.getFirstChild();
687
687
  }
688
688
  return c;
689
- }(i), a = o.getParent();
689
+ })(i), a = o.getParent();
690
690
  if (u(a)) {
691
691
  const l = R(a);
692
692
  l + 1 < R(r) && t.setIndent(l);
@@ -694,7 +694,7 @@ function Ke(n) {
694
694
  }
695
695
  }
696
696
  };
697
- return n.registerNodeTransform(E, (t) => {
697
+ return n.registerNodeTransform(E, ((t) => {
698
698
  const r = [t];
699
699
  for (; r.length > 0; ) {
700
700
  const s = r.shift();
@@ -706,7 +706,7 @@ function Ke(n) {
706
706
  }
707
707
  }
708
708
  }
709
- });
709
+ }));
710
710
  }
711
711
  export {
712
712
  m as $createListItemNode,
@@ -14,7 +14,7 @@ function gt(t, e) {
14
14
  return r;
15
15
  }
16
16
  function H(t) {
17
- const e = gt(t, (r) => r.type);
17
+ const e = gt(t, ((r) => r.type));
18
18
  return { element: e.element || [], multilineElement: e["multiline-element"] || [], textFormat: e["text-format"] || [], textMatch: e["text-match"] || [] };
19
19
  }
20
20
  const v = /[!-/:-@[-`{-~\s]/, pt = /^\s{0,3}$/;
@@ -26,7 +26,7 @@ function b(t) {
26
26
  function mt(t, e, r, s) {
27
27
  for (const n of e) {
28
28
  if (!n.export) continue;
29
- const f = n.export(t, (o) => C(o, r, s));
29
+ const f = n.export(t, ((o) => C(o, r, s)));
30
30
  if (f != null) return f;
31
31
  }
32
32
  return I(t) ? C(t, r, s) : B(t) ? t.getTextContent() : null;
@@ -37,7 +37,7 @@ function C(t, e, r, s, n) {
37
37
  t: for (const a of o) {
38
38
  for (const u of r) {
39
39
  if (!u.export) continue;
40
- const c = u.export(a, (i) => C(i, e, r, s, [...n, ...s]), (i, g) => F(i, g, e, s, n));
40
+ const c = u.export(a, ((i) => C(i, e, r, s, [...n, ...s])), ((i, g) => F(i, g, e, s, n)));
41
41
  if (c != null) {
42
42
  f.push(c);
43
43
  continue t;
@@ -49,15 +49,15 @@ function C(t, e, r, s, n) {
49
49
  return f.join("");
50
50
  }
51
51
  function F(t, e, r, s, n) {
52
- let f = t.getFormat() === 0 ? e : function(l) {
53
- return l.replace(/^\s+|\s+$/g, (d) => [...d].map((p) => "&#" + p.codePointAt(0) + ";").join(""));
54
- }(e);
52
+ let f = t.getFormat() === 0 ? e : (function(l) {
53
+ return l.replace(/^\s+|\s+$/g, ((d) => [...d].map(((p) => "&#" + p.codePointAt(0) + ";")).join("")));
54
+ })(e);
55
55
  t.hasFormat("code") || (f = f.replace(/([*_`~\\])/g, "\\$1"));
56
56
  let o = "", a = "", u = "";
57
57
  const c = M(t, !0), i = M(t, !1), g = /* @__PURE__ */ new Set();
58
58
  for (const l of r) {
59
59
  const d = l.format[0], p = l.tag;
60
- S(t, d) && !g.has(d) && (g.add(d), S(c, d) && s.find((m) => m.tag === p) || (s.push({ format: d, tag: p }), o += p));
60
+ S(t, d) && !g.has(d) && (g.add(d), S(c, d) && s.find(((m) => m.tag === p)) || (s.push({ format: d, tag: p }), o += p));
61
61
  }
62
62
  for (let l = 0; l < s.length; l++) {
63
63
  const d = S(t, s[l].format), p = S(i, s[l].format);
@@ -65,7 +65,7 @@ function F(t, e, r, s, n) {
65
65
  const m = [...s];
66
66
  for (; m.length > l; ) {
67
67
  const h = m.pop();
68
- n && h && n.find((T) => T.tag === h.tag) || (h && typeof h.tag == "string" && (d ? p || (u += h.tag) : a += h.tag), s.pop());
68
+ n && h && n.find(((T) => T.tag === h.tag)) || (h && typeof h.tag == "string" && (d ? p || (u += h.tag) : a += h.tag), s.pop());
69
69
  }
70
70
  break;
71
71
  }
@@ -93,7 +93,7 @@ function S(t, e) {
93
93
  return N(t) && t.hasFormat(e);
94
94
  }
95
95
  function ht(t, e) {
96
- const r = function(n, f) {
96
+ const r = (function(n, f) {
97
97
  const o = n.match(f.openTagsRegExp);
98
98
  if (o == null) return null;
99
99
  for (const a of o) {
@@ -107,7 +107,7 @@ function ht(t, e) {
107
107
  }
108
108
  }
109
109
  return null;
110
- }(t.getTextContent(), e);
110
+ })(t.getTextContent(), e);
111
111
  if (!r) return null;
112
112
  const s = r.index || 0;
113
113
  return { endIndex: s + r[0].length, match: r, startIndex: s, transformer: e.transformersByTag[r[1]] };
@@ -116,7 +116,7 @@ function E(t) {
116
116
  return N(t) && !t.hasFormat("code");
117
117
  }
118
118
  function x(t, e, r) {
119
- let s = ht(t, e), n = function(o, a) {
119
+ let s = ht(t, e), n = (function(o, a) {
120
120
  const u = o;
121
121
  let c, i, g, l;
122
122
  for (const d of a) {
@@ -127,28 +127,28 @@ function x(t, e, r) {
127
127
  h !== !1 && (c === void 0 || i === void 0 || m < c && h > i) && (c = m, i = h, g = d, l = p);
128
128
  }
129
129
  return c === void 0 || i === void 0 || g === void 0 || l === void 0 ? null : { endIndex: i, match: l, startIndex: c, transformer: g };
130
- }(t, r);
130
+ })(t, r);
131
131
  if (s && n && (s.startIndex <= n.startIndex && s.endIndex >= n.endIndex ? n = null : s = null), s) {
132
- const o = function(a, u, c, i, g) {
132
+ const o = (function(a, u, c, i, g) {
133
133
  const l = a.getTextContent();
134
134
  let d, p, m;
135
135
  if (g[0] === l ? d = a : u === 0 ? [d, p] = a.splitText(c) : [m, d, p] = a.splitText(u, c), d.setTextContent(g[2]), i) for (const h of i.format) d.hasFormat(h) || d.toggleFormat(h);
136
136
  return { nodeAfter: p, nodeBefore: m, transformedNode: d };
137
- }(t, s.startIndex, s.endIndex, s.transformer, s.match);
137
+ })(t, s.startIndex, s.endIndex, s.transformer, s.match);
138
138
  E(o.nodeAfter) && x(o.nodeAfter, e, r), E(o.nodeBefore) && x(o.nodeBefore, e, r), E(o.transformedNode) && x(o.transformedNode, e, r);
139
139
  } else if (n) {
140
- const o = function(a, u, c, i, g) {
140
+ const o = (function(a, u, c, i, g) {
141
141
  let l, d, p;
142
142
  return u === 0 ? [l, d] = a.splitText(c) : [p, l, d] = a.splitText(u, c), i.replace ? { nodeAfter: d, nodeBefore: p, transformedNode: i.replace(l, g) || void 0 } : null;
143
- }(t, n.startIndex, n.endIndex, n.transformer, n.match);
143
+ })(t, n.startIndex, n.endIndex, n.transformer, n.match);
144
144
  if (!o) return;
145
145
  E(o.nodeAfter) && x(o.nodeAfter, e, r), E(o.nodeBefore) && x(o.nodeBefore, e, r), E(o.transformedNode) && x(o.transformedNode, e, r);
146
146
  }
147
- const f = t.getTextContent().replace(/\\([*_`~\\])/g, "$1").replace(/&#(\d+);/g, (o, a) => String.fromCodePoint(a));
147
+ const f = t.getTextContent().replace(/\\([*_`~\\])/g, "$1").replace(/&#(\d+);/g, ((o, a) => String.fromCodePoint(a)));
148
148
  t.setTextContent(f);
149
149
  }
150
150
  function xt(t, e = !1) {
151
- const r = H(t), s = function(n) {
151
+ const r = H(t), s = (function(n) {
152
152
  const f = {}, o = {}, a = [], u = "(?<![\\\\])";
153
153
  for (const c of n) {
154
154
  const { tag: i } = c;
@@ -157,7 +157,7 @@ function xt(t, e = !1) {
157
157
  a.push(g), i.length === 1 ? o[i] = new RegExp(`(?<![\\\\${g}])(${g})((\\\\${g})?.*?[^${g}\\s](\\\\${g})?)((?<!\\\\)|(?<=\\\\\\\\))(${g})(?![\\\\${g}])`) : o[i] = new RegExp(`(?<!\\\\)(${g})((\\\\${g})?.*?[^\\s](\\\\${g})?)((?<!\\\\)|(?<=\\\\\\\\))(${g})(?!\\\\)`);
158
158
  }
159
159
  return { fullMatchRegExpByTag: o, openTagsRegExp: new RegExp(`${u}(${a.join("|")})`, "g"), transformersByTag: f };
160
- }(r.textFormat);
160
+ })(r.textFormat);
161
161
  return (n, f) => {
162
162
  const o = n.split(`
163
163
  `), a = o.length, u = f || O();
@@ -241,11 +241,11 @@ const U = /^(\s*)(\d{1,})\.\s/, z = /^(\s*)[-*+]\s/, Nt = /^(\s*)(?:-\s)?\s?(\[(
241
241
  c.append(a), e.replace(c);
242
242
  }
243
243
  a.append(...r), n || a.select(0, 0);
244
- const u = function(c) {
244
+ const u = (function(c) {
245
245
  const i = c.match(/\t/g), g = c.match(/ /g);
246
246
  let l = 0;
247
247
  return i && (l += i.length), g && (l += Math.floor(g.length / 4)), l;
248
- }(s[1]);
248
+ })(s[1]);
249
249
  u && a.setIndent(u);
250
250
  }, A = (t, e, r) => {
251
251
  const s = [], n = t.getChildren();
@@ -267,10 +267,10 @@ const U = /^(\s*)(\d{1,})\.\s/, z = /^(\s*)[-*+]\s/, Nt = /^(\s*)(?:-\s)?\s?(\[(
267
267
  if (!ot(t)) return null;
268
268
  const r = Number(t.getTag().slice(1));
269
269
  return "#".repeat(r) + " " + e(t);
270
- }, regExp: _, replace: X((t) => {
270
+ }, regExp: _, replace: X(((t) => {
271
271
  const e = "h" + t[1].length;
272
272
  return st(e);
273
- }), type: "element" }, Ct = { dependencies: [nt], export: (t, e) => {
273
+ })), type: "element" }, Ct = { dependencies: [nt], export: (t, e) => {
274
274
  if (!L(t)) return null;
275
275
  const r = e(t).split(`
276
276
  `), s = [];
@@ -302,7 +302,7 @@ const U = /^(\s*)(\d{1,})\.\s/, z = /^(\s*)[-*+]\s/, Nt = /^(\s*)(?:-\s)?\s?(\[(
302
302
  }
303
303
  const u = y(a);
304
304
  o.append(u), t.append(o);
305
- } else e && X((u) => R(u ? u[1] : void 0))(t, e, r, f);
305
+ } else e && X(((u) => R(u ? u[1] : void 0)))(t, e, r, f);
306
306
  }, type: "multiline-element" }, bt = { dependencies: [w, P], export: (t, e) => $(t) ? A(t, e, 0) : null, regExp: z, replace: W("bullet"), type: "element" }, _t = { dependencies: [w, P], export: (t, e) => $(t) ? A(t, e, 0) : null, regExp: U, replace: W("number"), type: "element" }, yt = { format: ["code"], tag: "`", type: "text-format" }, At = { format: ["highlight"], tag: "==", type: "text-format" }, vt = { format: ["bold", "italic"], tag: "***", type: "text-format" }, Ft = { format: ["bold", "italic"], intraword: !1, tag: "___", type: "text-format" }, Mt = { format: ["bold"], tag: "**", type: "text-format" }, Ot = { format: ["bold"], intraword: !1, tag: "__", type: "text-format" }, Dt = { format: ["strikethrough"], tag: "~~", type: "text-format" }, Bt = { format: ["italic"], tag: "*", type: "text-format" }, kt = { format: ["italic"], intraword: !1, tag: "_", type: "text-format" }, wt = { dependencies: [ct], export: (t, e, r) => {
307
307
  if (!ut(t) || dt(t)) return null;
308
308
  const s = t.getTitle(), n = e(t);
@@ -312,7 +312,7 @@ const U = /^(\s*)(\d{1,})\.\s/, z = /^(\s*)[-*+]\s/, Nt = /^(\s*)(?:-\s)?\s?(\[(
312
312
  return o.setFormat(t.getFormat()), f.append(o), t.replace(f), o;
313
313
  }, trigger: ")", type: "text-match" }, Pt = [It, Ct, bt, _t], jt = [Lt], Ht = [yt, vt, Ft, Mt, Ot, At, Bt, kt, Dt], Ut = [wt], q = [...Pt, ...jt, ...Ht, ...Ut];
314
314
  function qt(t, e = q, r, s = !1, n = !1) {
315
- const f = s ? t : function(o, a = !1) {
315
+ const f = s ? t : (function(o, a = !1) {
316
316
  const u = o.split(`
317
317
  `);
318
318
  let c = !1;
@@ -323,12 +323,12 @@ function qt(t, e = q, r, s = !1, n = !1) {
323
323
  }
324
324
  return i.join(`
325
325
  `);
326
- }(t, n);
326
+ })(t, n);
327
327
  return xt(e, s)(f, r);
328
328
  }
329
329
  function Jt(t = q, e, r = !1) {
330
- return function(n, f = !1) {
331
- const o = H(n), a = [...o.multilineElement, ...o.element], u = !f, c = o.textFormat.filter((i) => i.format.length === 1).sort((i, g) => Number(i.format.includes("code")) - Number(g.format.includes("code")));
330
+ return (function(n, f = !1) {
331
+ const o = H(n), a = [...o.multilineElement, ...o.element], u = !f, c = o.textFormat.filter(((i) => i.format.length === 1)).sort(((i, g) => Number(i.format.includes("code")) - Number(g.format.includes("code"))));
332
332
  return (i) => {
333
333
  const g = [], l = (i || O()).getChildren();
334
334
  for (let d = 0; d < l.length; d++) {
@@ -339,7 +339,7 @@ function Jt(t = q, e, r = !1) {
339
339
  return g.join(`
340
340
  `);
341
341
  };
342
- }(t, r)(e);
342
+ })(t, r)(e);
343
343
  }
344
344
  export {
345
345
  qt as $convertFromMarkdownString,
@@ -4,7 +4,7 @@ import { useLexicalComposerContext as o } from "./LexicalComposerContext.prod.js
4
4
  import { useEffect as r } from "react";
5
5
  function n() {
6
6
  const [e] = o();
7
- return r(() => t(e), [e]), null;
7
+ return r((() => t(e)), [e]), null;
8
8
  }
9
9
  export {
10
10
  n as CheckListPlugin
@@ -5,12 +5,12 @@ import { useLayoutEffect as m, useEffect as f } from "react";
5
5
  const p = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? m : f;
6
6
  function w({ onClear: e }) {
7
7
  const [o] = r();
8
- return p(() => o.registerCommand(i, (C) => (o.update(() => {
8
+ return p((() => o.registerCommand(i, ((C) => (o.update((() => {
9
9
  if (e == null) {
10
10
  const n = s(), t = l(), a = u();
11
11
  n.clear(), n.append(a), t !== null && a.select(), c(t) && (t.format = 0);
12
12
  } else e();
13
- }), !0), d), [o, e]), null;
13
+ })), !0)), d)), [o, e]), null;
14
14
  }
15
15
  export {
16
16
  w as ClearEditorPlugin
@@ -5,11 +5,11 @@ import { useMemo as L, useLayoutEffect as R, useEffect as $ } from "react";
5
5
  import { jsx as P } from "react/jsx-runtime";
6
6
  const u = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, T = u ? R : $, i = { tag: y };
7
7
  function N({ initialConfig: r, children: p }) {
8
- const c = L(() => {
8
+ const c = L((() => {
9
9
  const { theme: o, namespace: s, nodes: f, onError: E, editorState: h, html: b } = r, g = v(null, o), a = x({ editable: r.editable, html: b, namespace: s, nodes: f, onError: (e) => E(e, a), theme: o });
10
- return function(e, t) {
10
+ return (function(e, t) {
11
11
  if (t !== null) {
12
- if (t === void 0) e.update(() => {
12
+ if (t === void 0) e.update((() => {
13
13
  const n = m();
14
14
  if (n.isEmpty()) {
15
15
  const l = C();
@@ -17,7 +17,7 @@ function N({ initialConfig: r, children: p }) {
17
17
  const d = u ? document.activeElement : null;
18
18
  (S() !== null || d !== null && d === e.getRootElement()) && l.select();
19
19
  }
20
- }, i);
20
+ }), i);
21
21
  else if (t !== null) switch (typeof t) {
22
22
  case "string": {
23
23
  const n = e.parseEditorState(t);
@@ -28,17 +28,17 @@ function N({ initialConfig: r, children: p }) {
28
28
  e.setEditorState(t, i);
29
29
  break;
30
30
  case "function":
31
- e.update(() => {
31
+ e.update((() => {
32
32
  m().isEmpty() && t(e);
33
- }, i);
33
+ }), i);
34
34
  }
35
35
  }
36
- }(a, h), [a, g];
37
- }, []);
38
- return T(() => {
36
+ })(a, h), [a, g];
37
+ }), []);
38
+ return T((() => {
39
39
  const o = r.editable, [s] = c;
40
40
  s.setEditable(o === void 0 || o);
41
- }, []), P(w.Provider, { value: c, children: p });
41
+ }), []), P(w.Provider, { value: c, children: p });
42
42
  }
43
43
  export {
44
44
  N as LexicalComposer
@@ -8,12 +8,12 @@ function u(n, e) {
8
8
  }
9
9
  function f() {
10
10
  const n = l(a);
11
- return n == null && function(e, ...r) {
11
+ return n == null && (function(e, ...r) {
12
12
  const o = new URL("https://lexical.dev/docs/error"), t = new URLSearchParams();
13
13
  t.append("code", e);
14
14
  for (const i of r) t.append("v", i);
15
15
  throw o.search = t.toString(), Error(`Minified Lexical error #${e}; visit ${o.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`);
16
- }(8), n;
16
+ })(8), n;
17
17
  }
18
18
  export {
19
19
  a as LexicalComposerContext,
@@ -6,18 +6,18 @@ import { $canShowPlaceholderCurry as $ } from "../text/LexicalText.prod.js";
6
6
  import { mergeRegister as G } from "../utils/LexicalUtils.prod.js";
7
7
  const L = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? h : F;
8
8
  function H({ editor: e, ariaActiveDescendant: t, ariaAutoComplete: l, ariaControls: d, ariaDescribedBy: n, ariaErrorMessage: o, ariaExpanded: a, ariaInvalid: u, ariaLabel: f, ariaLabelledBy: s, ariaMultiline: b, ariaOwns: k, ariaRequired: D, autoCapitalize: R, className: j, id: q, role: E = "textbox", spellCheck: z = !0, style: A, tabIndex: I, "data-testid": M, ...S }, v) {
9
- const [r, w] = p(e.isEditable()), x = O((i) => {
9
+ const [r, w] = p(e.isEditable()), x = O(((i) => {
10
10
  i && i.ownerDocument && i.ownerDocument.defaultView ? e.setRootElement(i) : e.setRootElement(null);
11
- }, [e]), B = P(() => /* @__PURE__ */ function(...i) {
11
+ }), [e]), B = P((() => /* @__PURE__ */ (function(...i) {
12
12
  return (g) => {
13
- i.forEach((c) => {
13
+ i.forEach(((c) => {
14
14
  typeof c == "function" ? c(g) : c != null && (c.current = g);
15
- });
15
+ }));
16
16
  };
17
- }(v, x), [x, v]);
18
- return L(() => (w(e.isEditable()), e.registerEditableListener((i) => {
17
+ })(v, x)), [x, v]);
18
+ return L((() => (w(e.isEditable()), e.registerEditableListener(((i) => {
19
19
  w(i);
20
- })), [e]), m("div", { "aria-activedescendant": r ? t : void 0, "aria-autocomplete": r ? l : "none", "aria-controls": r ? d : void 0, "aria-describedby": n, ...o != null ? { "aria-errormessage": o } : {}, "aria-expanded": r && E === "combobox" ? !!a : void 0, ...u != null ? { "aria-invalid": u } : {}, "aria-label": f, "aria-labelledby": s, "aria-multiline": b, "aria-owns": r ? k : void 0, "aria-readonly": !r || void 0, "aria-required": D, autoCapitalize: R, className: j, contentEditable: r, "data-testid": M, id: q, ref: B, role: r ? E : void 0, spellCheck: z, style: A, tabIndex: I, ...S });
20
+ })))), [e]), m("div", { "aria-activedescendant": r ? t : void 0, "aria-autocomplete": r ? l : "none", "aria-controls": r ? d : void 0, "aria-describedby": n, ...o != null ? { "aria-errormessage": o } : {}, "aria-expanded": r && E === "combobox" ? !!a : void 0, ...u != null ? { "aria-invalid": u } : {}, "aria-label": f, "aria-labelledby": s, "aria-multiline": b, "aria-owns": r ? k : void 0, "aria-readonly": !r || void 0, "aria-required": D, autoCapitalize: R, className: j, contentEditable: r, "data-testid": M, id: q, ref: B, role: r ? E : void 0, spellCheck: z, style: A, tabIndex: I, ...S });
21
21
  }
22
22
  const J = C(H);
23
23
  function y(e) {
@@ -29,23 +29,23 @@ function K(e, t) {
29
29
  return U(V, { children: [m(J, { editor: n, ...d, ref: t }), l != null && m(Q, { editor: n, content: l })] });
30
30
  }
31
31
  function Q({ content: e, editor: t }) {
32
- const l = function(a) {
33
- const [u, f] = p(() => y(a));
34
- return L(() => {
32
+ const l = (function(a) {
33
+ const [u, f] = p((() => y(a)));
34
+ return L((() => {
35
35
  function s() {
36
36
  const b = y(a);
37
37
  f(b);
38
38
  }
39
- return s(), G(a.registerUpdateListener(() => {
39
+ return s(), G(a.registerUpdateListener((() => {
40
40
  s();
41
- }), a.registerEditableListener(() => {
41
+ })), a.registerEditableListener((() => {
42
42
  s();
43
- }));
44
- }, [a]), u;
45
- }(t), [d, n] = p(t.isEditable());
46
- if (h(() => (n(t.isEditable()), t.registerEditableListener((a) => {
43
+ })));
44
+ }), [a]), u;
45
+ })(t), [d, n] = p(t.isEditable());
46
+ if (h((() => (n(t.isEditable()), t.registerEditableListener(((a) => {
47
47
  n(a);
48
- })), [t]), !l) return null;
48
+ })))), [t]), !l) return null;
49
49
  let o = null;
50
50
  return typeof e == "function" ? o = e(d) : e !== null && (o = e), o === null ? null : m("div", { "aria-hidden": !0, children: o });
51
51
  }