@pareto-engineering/design-system 5.3.0 → 5.4.0

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 (1546) hide show
  1. package/README.md +54 -0
  2. package/dist/DatePicker-DHuh_8q6.js +1305 -0
  3. package/dist/ExposePlainTextPlugin-DeW6mVaE.js +33 -0
  4. package/dist/FormBuilder-653sa2uJ.js +28728 -0
  5. package/dist/Lexical-BIl3XjnU.js +8899 -0
  6. package/dist/LexicalComposerContext-D_q7RDyF.js +56 -0
  7. package/dist/TreeViewPlugin-BqY3Z-6y.js +2412 -0
  8. package/dist/YAxis-C5dCrcDo.js +1116 -0
  9. package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
  10. package/dist/assets/AnimatedBlobs.css +1 -0
  11. package/dist/assets/AreaChart.css +1 -0
  12. package/dist/assets/BarChart.css +1 -0
  13. package/dist/assets/BlurOverlay.css +1 -0
  14. package/dist/assets/CustomLegend.css +1 -0
  15. package/dist/assets/CustomTooltipContent.css +1 -0
  16. package/dist/assets/DatePicker.css +1 -0
  17. package/dist/assets/Description.css +1 -0
  18. package/dist/assets/DotInfo.css +1 -0
  19. package/dist/assets/DragAndDrop.css +1 -0
  20. package/dist/assets/DraggableItem.css +1 -0
  21. package/dist/assets/Figure.css +1 -0
  22. package/dist/assets/FormBuilder.css +1 -0
  23. package/dist/assets/Group.css +1 -0
  24. package/dist/assets/HamburgerButton.css +1 -0
  25. package/dist/assets/IconList.css +1 -0
  26. package/dist/assets/Label.css +1 -0
  27. package/dist/assets/Label2.css +1 -0
  28. package/dist/assets/LoadingCircle.css +1 -0
  29. package/dist/assets/MetaCard.css +1 -0
  30. package/dist/assets/People.css +1 -0
  31. package/dist/assets/PieChart.css +1 -0
  32. package/dist/assets/Popover.css +1 -0
  33. package/dist/assets/ProgressBar.css +1 -0
  34. package/dist/assets/Quote.css +1 -0
  35. package/dist/assets/RadioInput.css +1 -0
  36. package/dist/assets/Removable.css +1 -0
  37. package/dist/assets/SVG.css +1 -0
  38. package/dist/assets/SnapScroller.css +1 -0
  39. package/dist/assets/SocialMediaShareButton.css +1 -0
  40. package/dist/assets/Spinner.css +1 -0
  41. package/dist/assets/TextSteps.css +1 -0
  42. package/dist/assets/ThroughPutIndicator.css +1 -0
  43. package/dist/assets/Timestamp.css +1 -0
  44. package/dist/assets/Tip.css +1 -0
  45. package/dist/assets/ToggleSwitch.css +1 -0
  46. package/dist/assets/Tooltip.css +1 -0
  47. package/dist/assets/XMLEditor.css +1 -0
  48. package/dist/assets/YlabelsDropDown.css +1 -0
  49. package/dist/assets/exports.css +0 -0
  50. package/dist/debounce-Cm69Z_cF.js +209 -0
  51. package/dist/exports.module-DmUnHWIJ.js +20 -0
  52. package/dist/generateCategoricalChart-BBPxYd_a.js +15749 -0
  53. package/dist/index-BUor0nOw.js +12623 -0
  54. package/dist/index-C_b9PQD8.js +1360 -0
  55. package/dist/index-CxkFVI6N.js +667 -0
  56. package/dist/index.js +137 -0
  57. package/dist/stories/StyleGuide/helpers.js +132 -0
  58. package/dist/stories/a/AppContext.stories.js +85 -0
  59. package/dist/stories/a/AreaChart.stories.js +182 -0
  60. package/dist/stories/a/BarChart.stories.js +173 -0
  61. package/dist/stories/a/BlurOverlay.stories.js +79 -0
  62. package/dist/stories/a/ContentTree.stories.js +112 -0
  63. package/dist/stories/a/Conversation.stories.js +113 -0
  64. package/dist/stories/a/DatePicker.stories.js +128 -0
  65. package/dist/stories/a/DotInfo.stories.js +73 -0
  66. package/dist/stories/a/Figure.stories.js +69 -0
  67. package/dist/stories/a/HamburgerButton.stories.js +65 -0
  68. package/dist/stories/a/IconList.stories.js +85 -0
  69. package/dist/stories/a/Label.stories.js +79 -0
  70. package/dist/stories/a/LoadingCircle.stories.js +69 -0
  71. package/dist/stories/a/MetaCard.stories.js +67 -0
  72. package/dist/stories/a/Notification.stories.js +124 -0
  73. package/dist/stories/a/NotificationStack.stories.js +102 -0
  74. package/dist/stories/a/People.stories.js +96 -0
  75. package/dist/stories/a/PieChart.stories.js +79 -0
  76. package/dist/stories/a/Popover.stories.js +147 -0
  77. package/dist/stories/a/ProgressBar.stories.js +86 -0
  78. package/dist/stories/a/Quote.stories.js +87 -0
  79. package/dist/stories/a/Removable.stories.js +62 -0
  80. package/dist/stories/a/SVG.stories.js +155 -0
  81. package/dist/stories/a/SnapScroller.stories.js +105 -0
  82. package/dist/stories/a/Spinner.stories.js +62 -0
  83. package/dist/stories/a/TextSteps.stories.js +57 -0
  84. package/dist/stories/a/Timestamp.stories.js +92 -0
  85. package/dist/stories/a/Tip.stories.js +67 -0
  86. package/dist/stories/a/ToggleSwitch.stories.js +67 -0
  87. package/dist/stories/a/Tooltip.stories.js +107 -0
  88. package/dist/stories/a/XMLEditor.stories.js +59 -0
  89. package/dist/stories/b/Button/Button.stories.js +154 -0
  90. package/dist/stories/b/Button/Group.stories.js +59 -0
  91. package/dist/stories/b/Card/Card.stories.js +85 -0
  92. package/dist/stories/b/Card/Group.stories.js +83 -0
  93. package/dist/stories/b/Logo.stories.js +69 -0
  94. package/dist/stories/b/Page.stories.js +94 -0
  95. package/dist/stories/b/SocialMediaButton.stories.js +95 -0
  96. package/dist/stories/b/ThemeSelector.stories.js +86 -0
  97. package/dist/stories/b/Title.stories.js +82 -0
  98. package/dist/stories/c/Modal.stories.js +76 -0
  99. package/dist/stories/c/Shortener.stories.js +73 -0
  100. package/dist/stories/c/SocialMediaShareButton.stories.js +72 -0
  101. package/dist/stories/colors.js +63 -0
  102. package/dist/stories/f/Checkbox.stories.js +133 -0
  103. package/dist/stories/f/ChoicesInput.stories.js +167 -0
  104. package/dist/stories/f/Description.stories.js +75 -0
  105. package/dist/stories/f/EditorInput.stories.js +104 -0
  106. package/dist/stories/f/FileUpload.stories.js +100 -0
  107. package/dist/stories/f/Label.stories.js +66 -0
  108. package/dist/stories/f/LinkInput.stories.js +121 -0
  109. package/dist/stories/f/RadioInput.stories.js +74 -0
  110. package/dist/stories/f/RatingsInput.stories.js +116 -0
  111. package/dist/stories/f/SelectInput.stories.js +160 -0
  112. package/dist/stories/f/TextInput.stories.js +148 -0
  113. package/dist/stories/f/TextareaInput.stories.js +138 -0
  114. package/dist/stories/g/DragAndDrop.stories.js +150 -0
  115. package/dist/stories/g/ExpandableLexicalPreview.stories.js +68 -0
  116. package/dist/stories/g/FormBuilder.stories.js +140 -0
  117. package/dist/stories/utils/Router.js +12 -0
  118. package/dist/stories/utils/generateNodeId.js +7 -0
  119. package/dist/stories/utils/lorem.js +18 -0
  120. package/dist/stories/utils/testData.js +66 -0
  121. package/dist/throttle-BCrS-Wew.js +24 -0
  122. package/dist/ui/a/AnimatedBlobs/AnimatedBlobs.js +75 -0
  123. package/dist/ui/a/AnimatedBlobs/index.js +4 -0
  124. package/dist/ui/a/AnimatedGradient/AnimatedGradient.js +41 -0
  125. package/dist/ui/a/AnimatedGradient/index.js +4 -0
  126. package/dist/ui/a/AnimatedGradient/webGIRenderer.js +814 -0
  127. package/dist/ui/a/AppContext/Context.js +5 -0
  128. package/dist/ui/a/AppContext/ContextProvider.js +73 -0
  129. package/dist/ui/a/AppContext/index.js +10 -0
  130. package/dist/ui/a/AppContext/useApp.js +6 -0
  131. package/dist/ui/a/AppContext/useTheme.js +25 -0
  132. package/dist/ui/a/BlurOverlay/BlurOverlay.js +53 -0
  133. package/dist/ui/a/BlurOverlay/index.js +4 -0
  134. package/dist/ui/a/Charts/AreaChart/AreaChart.js +697 -0
  135. package/dist/ui/a/Charts/AreaChart/index.js +4 -0
  136. package/dist/ui/a/Charts/BarChart/BarChart.js +165 -0
  137. package/dist/ui/a/Charts/BarChart/index.js +4 -0
  138. package/dist/ui/a/Charts/Common/CustomLegend/CustomLegend.js +96 -0
  139. package/dist/ui/a/Charts/Common/CustomLegend/index.js +4 -0
  140. package/dist/ui/a/Charts/Common/CustomTooltipContent/CustomTooltipContent.js +137 -0
  141. package/dist/ui/a/Charts/Common/CustomTooltipContent/index.js +4 -0
  142. package/dist/ui/a/Charts/Common/YLabelsDropDown/YlabelsDropDown.js +107 -0
  143. package/dist/ui/a/Charts/Common/YLabelsDropDown/index.js +4 -0
  144. package/dist/ui/a/Charts/Common/index.js +8 -0
  145. package/dist/ui/a/Charts/PieChart/PieChart.js +1227 -0
  146. package/dist/ui/a/Charts/PieChart/index.js +4 -0
  147. package/dist/ui/a/Charts/index.js +8 -0
  148. package/dist/ui/a/ContentTree/ContentTree.js +10 -0
  149. package/dist/ui/a/ContentTree/common/Tree/Tree.js +51 -0
  150. package/dist/ui/a/ContentTree/common/Tree/index.js +4 -0
  151. package/dist/ui/a/ContentTree/common/index.js +8 -0
  152. package/dist/ui/a/ContentTree/common/useContentTree.js +44 -0
  153. package/dist/ui/a/ContentTree/common/useFirstVisibleNode.js +20 -0
  154. package/dist/ui/a/ContentTree/index.js +4 -0
  155. package/dist/ui/a/Conversation/Context.js +5 -0
  156. package/dist/ui/a/Conversation/Conversation.js +51 -0
  157. package/dist/ui/a/Conversation/common/Message/Message.js +97 -0
  158. package/dist/ui/a/Conversation/common/Message/index.js +4 -0
  159. package/dist/ui/a/Conversation/common/index.js +4 -0
  160. package/dist/ui/a/Conversation/index.js +8 -0
  161. package/dist/ui/a/Conversation/useConversation.js +6 -0
  162. package/dist/ui/a/DatePicker/DatePicker.js +9 -0
  163. package/dist/ui/a/DatePicker/index.js +4 -0
  164. package/dist/ui/a/DotInfo/DotInfo.js +76 -0
  165. package/dist/ui/a/DotInfo/index.js +4 -0
  166. package/dist/ui/a/Figure/Figure.js +59 -0
  167. package/dist/ui/a/Figure/index.js +4 -0
  168. package/dist/ui/a/HamburgerButton/HamburgerButton.js +71 -0
  169. package/dist/ui/a/HamburgerButton/index.js +4 -0
  170. package/dist/ui/a/IconList/IconList.js +64 -0
  171. package/dist/ui/a/IconList/common/Item/Item.js +58 -0
  172. package/dist/ui/a/IconList/common/Item/index.js +4 -0
  173. package/dist/ui/a/IconList/common/index.js +4 -0
  174. package/dist/ui/a/IconList/index.js +4 -0
  175. package/dist/ui/a/Label/Label.js +72 -0
  176. package/dist/ui/a/Label/index.js +4 -0
  177. package/dist/ui/a/LoadingCircle/LoadingCircle.js +96 -0
  178. package/dist/ui/a/LoadingCircle/index.js +4 -0
  179. package/dist/ui/a/MetaCard/MetaCard.js +54 -0
  180. package/dist/ui/a/MetaCard/index.js +4 -0
  181. package/dist/ui/a/Notification/Notification.js +50 -0
  182. package/dist/ui/a/Notification/index.js +4 -0
  183. package/dist/ui/a/NotificationStack/NotificationStack.js +8 -0
  184. package/dist/ui/a/NotificationStack/index.js +4 -0
  185. package/dist/ui/a/People/People.js +65 -0
  186. package/dist/ui/a/People/common/Person/Person.js +82 -0
  187. package/dist/ui/a/People/common/Person/index.js +4 -0
  188. package/dist/ui/a/People/common/index.js +4 -0
  189. package/dist/ui/a/People/index.js +4 -0
  190. package/dist/ui/a/Popover/Popover.js +124 -0
  191. package/dist/ui/a/Popover/index.js +4 -0
  192. package/dist/ui/a/ProgressBar/ProgressBar.js +70 -0
  193. package/dist/ui/a/ProgressBar/index.js +4 -0
  194. package/dist/ui/a/Quote/Quote.js +73 -0
  195. package/dist/ui/a/Quote/index.js +4 -0
  196. package/dist/ui/a/Removable/Removable.js +55 -0
  197. package/dist/ui/a/Removable/index.js +4 -0
  198. package/dist/ui/a/SVG/SVG.js +152 -0
  199. package/dist/ui/a/SVG/common/UseSVG/UseSVG.js +59 -0
  200. package/dist/ui/a/SVG/common/UseSVG/index.js +4 -0
  201. package/dist/ui/a/SVG/common/index.js +4 -0
  202. package/dist/ui/a/SVG/index.js +4 -0
  203. package/dist/ui/a/SnapScroller/SnapScroller.js +72 -0
  204. package/dist/ui/a/SnapScroller/index.js +4 -0
  205. package/dist/ui/a/Spinner/Spinner.js +48 -0
  206. package/dist/ui/a/Spinner/index.js +4 -0
  207. package/dist/ui/a/TextSteps/TextSteps.js +58 -0
  208. package/dist/ui/a/TextSteps/index.js +4 -0
  209. package/dist/ui/a/ThroughPutIndicator/ThroughPutIndicator.js +57 -0
  210. package/dist/ui/a/ThroughPutIndicator/index.js +4 -0
  211. package/dist/ui/a/Timestamp/Timestamp.js +250 -0
  212. package/dist/ui/a/Timestamp/index.js +4 -0
  213. package/dist/ui/a/Tip/Tip.js +74 -0
  214. package/dist/ui/a/Tip/index.js +4 -0
  215. package/dist/ui/a/ToggleSwitch/ToggleSwitch.js +77 -0
  216. package/dist/ui/a/ToggleSwitch/index.js +4 -0
  217. package/dist/ui/a/Tooltip/Tooltip.js +101 -0
  218. package/dist/ui/a/Tooltip/index.js +4 -0
  219. package/dist/ui/a/XMLEditor/XMLEditor.js +2447 -0
  220. package/dist/ui/a/XMLEditor/common/index.js +4 -0
  221. package/dist/ui/a/XMLEditor/common/theme.js +4 -0
  222. package/dist/ui/a/XMLEditor/index.js +4 -0
  223. package/dist/ui/a/index.js +74 -0
  224. package/dist/ui/b/Button/Button.js +51 -0
  225. package/dist/ui/b/Button/common/Group/Group.js +48 -0
  226. package/dist/ui/b/Button/common/Group/index.js +4 -0
  227. package/dist/ui/b/Button/common/index.js +4 -0
  228. package/dist/ui/b/Button/index.js +4 -0
  229. package/dist/ui/b/Card/Card.js +51 -0
  230. package/dist/ui/b/Card/common/Group/Group.js +50 -0
  231. package/dist/ui/b/Card/common/Group/index.js +4 -0
  232. package/dist/ui/b/Card/common/Section/Section.js +54 -0
  233. package/dist/ui/b/Card/common/Section/index.js +4 -0
  234. package/dist/ui/b/Card/common/index.js +6 -0
  235. package/dist/ui/b/Card/index.js +4 -0
  236. package/dist/ui/b/Logo/Logo.js +39 -0
  237. package/dist/ui/b/Logo/index.js +4 -0
  238. package/dist/ui/b/Page/Context.js +5 -0
  239. package/dist/ui/b/Page/Page.js +42 -0
  240. package/dist/ui/b/Page/common/PageHelmet/PageHelmet.js +40 -0
  241. package/dist/ui/b/Page/common/PageHelmet/index.js +4 -0
  242. package/dist/ui/b/Page/common/Section/Section.js +67 -0
  243. package/dist/ui/b/Page/common/Section/index.js +4 -0
  244. package/dist/ui/b/Page/common/index.js +6 -0
  245. package/dist/ui/b/Page/index.js +8 -0
  246. package/dist/ui/b/Page/usePage.js +6 -0
  247. package/dist/ui/b/SocialMediaButton/SocialMediaButton.js +40 -0
  248. package/dist/ui/b/SocialMediaButton/index.js +4 -0
  249. package/dist/ui/b/ThemeSelector/ThemeSelector.js +40 -0
  250. package/dist/ui/b/ThemeSelector/index.js +4 -0
  251. package/dist/ui/b/Title/Title.js +126 -0
  252. package/dist/ui/b/Title/index.js +4 -0
  253. package/dist/ui/b/index.js +13 -0
  254. package/dist/ui/c/Modal/Modal.js +8 -0
  255. package/dist/ui/c/Modal/common/ModalHeader/ModalHeader.js +50 -0
  256. package/dist/ui/c/Modal/common/ModalHeader/index.js +4 -0
  257. package/dist/ui/c/Modal/common/index.js +4 -0
  258. package/dist/ui/c/Modal/index.js +4 -0
  259. package/dist/ui/c/Shortener/Shortener.js +10 -0
  260. package/dist/ui/c/Shortener/index.js +4 -0
  261. package/dist/ui/c/SocialMediaShareButton/SocialMediaShareButton.js +80 -0
  262. package/dist/ui/c/SocialMediaShareButton/index.js +4 -0
  263. package/dist/ui/c/index.js +7 -0
  264. package/dist/ui/d/index.js +1 -0
  265. package/dist/ui/f/FormInput/FormInput.js +9 -0
  266. package/dist/ui/f/FormInput/index.js +4 -0
  267. package/dist/ui/f/common/Debugger/Debugger.js +10 -0
  268. package/dist/ui/f/common/Debugger/index.js +4 -0
  269. package/dist/ui/f/common/Description/Description.js +62 -0
  270. package/dist/ui/f/common/Description/index.js +4 -0
  271. package/dist/ui/f/common/Label/Label.js +74 -0
  272. package/dist/ui/f/common/Label/index.js +4 -0
  273. package/dist/ui/f/common/index.js +12 -0
  274. package/dist/ui/f/common/utils/index.js +6 -0
  275. package/dist/ui/f/common/utils/lookUpInputValueFromFetchedOptions.js +1039 -0
  276. package/dist/ui/f/common/utils/validators.js +7 -0
  277. package/dist/ui/f/fields/Checkbox/Checkbox.js +11 -0
  278. package/dist/ui/f/fields/Checkbox/index.js +4 -0
  279. package/dist/ui/f/fields/ChoicesInput/ChoicesInput.js +11 -0
  280. package/dist/ui/f/fields/ChoicesInput/common/Choice/Choice.js +112 -0
  281. package/dist/ui/f/fields/ChoicesInput/common/Choice/index.js +4 -0
  282. package/dist/ui/f/fields/ChoicesInput/common/index.js +4 -0
  283. package/dist/ui/f/fields/ChoicesInput/index.js +4 -0
  284. package/dist/ui/f/fields/EditorInput/EditorInput.js +15 -0
  285. package/dist/ui/f/fields/EditorInput/common/BlockFormatDropDown/BlockFormatDropDown.js +44 -0
  286. package/dist/ui/f/fields/EditorInput/common/BlockFormatDropDown/index.js +4 -0
  287. package/dist/ui/f/fields/EditorInput/common/ColorPicker/ColorPicker.js +43 -0
  288. package/dist/ui/f/fields/EditorInput/common/ColorPicker/index.js +4 -0
  289. package/dist/ui/f/fields/EditorInput/common/ExposePlainTextPlugin.js +7 -0
  290. package/dist/ui/f/fields/EditorInput/common/FontSizeDropDown/FontSizeDropDown.js +44 -0
  291. package/dist/ui/f/fields/EditorInput/common/FontSizeDropDown/index.js +4 -0
  292. package/dist/ui/f/fields/EditorInput/common/StopPropagationPlugin.js +18 -0
  293. package/dist/ui/f/fields/EditorInput/common/ToolbarPlugin/ToolbarPlugin.js +11 -0
  294. package/dist/ui/f/fields/EditorInput/common/ToolbarPlugin/index.js +4 -0
  295. package/dist/ui/f/fields/EditorInput/common/TreeViewPlugin.js +7 -0
  296. package/dist/ui/f/fields/EditorInput/common/index.js +13 -0
  297. package/dist/ui/f/fields/EditorInput/index.js +4 -0
  298. package/dist/ui/f/fields/FileUpload/FileUpload.js +11 -0
  299. package/dist/ui/f/fields/FileUpload/common/Preview/Preview.js +42 -0
  300. package/dist/ui/f/fields/FileUpload/common/Preview/index.js +4 -0
  301. package/dist/ui/f/fields/FileUpload/common/index.js +4 -0
  302. package/dist/ui/f/fields/FileUpload/index.js +8 -0
  303. package/dist/ui/f/fields/FileUpload/utils.js +48 -0
  304. package/dist/ui/f/fields/LatexPreviewInput/LatexPreviewInput.js +10 -0
  305. package/dist/ui/f/fields/LatexPreviewInput/convertLatexToHtml.js +51108 -0
  306. package/dist/ui/f/fields/LatexPreviewInput/index.js +6 -0
  307. package/dist/ui/f/fields/LinkInput/LinkInput.js +11 -0
  308. package/dist/ui/f/fields/LinkInput/index.js +4 -0
  309. package/dist/ui/f/fields/QueryChoices/QueryChoices.js +8 -0
  310. package/dist/ui/f/fields/QueryChoices/index.js +4 -0
  311. package/dist/ui/f/fields/QueryCombobox/QueryCombobox.js +9 -0
  312. package/dist/ui/f/fields/QueryCombobox/common/Combobox/Combobox.js +47 -0
  313. package/dist/ui/f/fields/QueryCombobox/common/Combobox/index.js +4 -0
  314. package/dist/ui/f/fields/QueryCombobox/common/Menu/Menu.js +78 -0
  315. package/dist/ui/f/fields/QueryCombobox/common/Menu/index.js +4 -0
  316. package/dist/ui/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +47 -0
  317. package/dist/ui/f/fields/QueryCombobox/common/MultipleCombobox/index.js +4 -0
  318. package/dist/ui/f/fields/QueryCombobox/common/index.js +7 -0
  319. package/dist/ui/f/fields/QueryCombobox/index.js +4 -0
  320. package/dist/ui/f/fields/QuerySelect/QuerySelect.js +12 -0
  321. package/dist/ui/f/fields/QuerySelect/index.js +4 -0
  322. package/dist/ui/f/fields/RadioInput/RadioInput.js +78 -0
  323. package/dist/ui/f/fields/RadioInput/index.js +4 -0
  324. package/dist/ui/f/fields/RatingsInput/RatingsInput.js +11 -0
  325. package/dist/ui/f/fields/RatingsInput/common/Rating/Rating.js +127 -0
  326. package/dist/ui/f/fields/RatingsInput/common/Rating/index.js +4 -0
  327. package/dist/ui/f/fields/RatingsInput/common/index.js +4 -0
  328. package/dist/ui/f/fields/RatingsInput/index.js +4 -0
  329. package/dist/ui/f/fields/SelectInput/SelectInput.js +9 -0
  330. package/dist/ui/f/fields/SelectInput/common/Menu/Menu.js +79 -0
  331. package/dist/ui/f/fields/SelectInput/common/Menu/index.js +4 -0
  332. package/dist/ui/f/fields/SelectInput/common/Multiple/Multiple.js +47 -0
  333. package/dist/ui/f/fields/SelectInput/common/Multiple/index.js +4 -0
  334. package/dist/ui/f/fields/SelectInput/common/Single/Single.js +44 -0
  335. package/dist/ui/f/fields/SelectInput/common/Single/index.js +4 -0
  336. package/dist/ui/f/fields/SelectInput/common/index.js +7 -0
  337. package/dist/ui/f/fields/SelectInput/index.js +4 -0
  338. package/dist/ui/f/fields/TextInput/TextInput.js +11 -0
  339. package/dist/ui/f/fields/TextInput/index.js +4 -0
  340. package/dist/ui/f/fields/TextareaInput/TextareaInput.js +11 -0
  341. package/dist/ui/f/fields/TextareaInput/index.js +4 -0
  342. package/dist/ui/f/fields/ToggleInput/ToggleInput.js +42 -0
  343. package/dist/ui/f/fields/ToggleInput/index.js +4 -0
  344. package/dist/ui/f/fields/index.js +25 -0
  345. package/dist/ui/f/index.js +35 -0
  346. package/dist/ui/g/DragAndDrop/DragAndDrop.js +89 -0
  347. package/dist/ui/g/DragAndDrop/common/DraggableItem/DraggableItem.js +64 -0
  348. package/dist/ui/g/DragAndDrop/common/DraggableItem/index.js +4 -0
  349. package/dist/ui/g/DragAndDrop/common/index.js +4 -0
  350. package/dist/ui/g/DragAndDrop/index.js +4 -0
  351. package/dist/ui/g/ExpandableLexicalPreview/ExpandableLexicalPreview.js +15 -0
  352. package/dist/ui/g/ExpandableLexicalPreview/common/NewWindowPortal/NewWindowPortal.js +40 -0
  353. package/dist/ui/g/ExpandableLexicalPreview/common/NewWindowPortal/index.js +4 -0
  354. package/dist/ui/g/ExpandableLexicalPreview/common/index.js +4 -0
  355. package/dist/ui/g/ExpandableLexicalPreview/index.js +4 -0
  356. package/dist/ui/g/FormBuilder/FormBuilder.js +8 -0
  357. package/dist/ui/g/FormBuilder/common/Builder/Builder.js +13 -0
  358. package/dist/ui/g/FormBuilder/common/Builder/common/ActionsContainer/ActionsContainer.js +43 -0
  359. package/dist/ui/g/FormBuilder/common/Builder/common/ActionsContainer/index.js +4 -0
  360. package/dist/ui/g/FormBuilder/common/Builder/common/InputBuilder/InputBuilder.js +46 -0
  361. package/dist/ui/g/FormBuilder/common/Builder/common/InputBuilder/index.js +4 -0
  362. package/dist/ui/g/FormBuilder/common/Builder/common/Section/Section.js +14 -0
  363. package/dist/ui/g/FormBuilder/common/Builder/common/Section/index.js +4 -0
  364. package/dist/ui/g/FormBuilder/common/Builder/common/index.js +6 -0
  365. package/dist/ui/g/FormBuilder/common/Builder/index.js +4 -0
  366. package/dist/ui/g/FormBuilder/common/Renderer/Renderer.js +15 -0
  367. package/dist/ui/g/FormBuilder/common/Renderer/common/Section/Section.js +14 -0
  368. package/dist/ui/g/FormBuilder/common/Renderer/common/Section/index.js +4 -0
  369. package/dist/ui/g/FormBuilder/common/Renderer/common/index.js +4 -0
  370. package/dist/ui/g/FormBuilder/common/Renderer/index.js +4 -0
  371. package/dist/ui/g/FormBuilder/common/index.js +5 -0
  372. package/dist/ui/g/FormBuilder/index.js +4 -0
  373. package/dist/ui/g/index.js +7 -0
  374. package/dist/ui/index.js +137 -0
  375. package/dist/ui/utils/applyCharacterLimit.js +31 -0
  376. package/dist/ui/utils/formatting.js +90 -0
  377. package/dist/ui/utils/hooks/index.js +8 -0
  378. package/dist/ui/utils/hooks/useDynamicPosition.js +61 -0
  379. package/dist/ui/utils/hooks/useOutsideClick.js +14 -0
  380. package/dist/ui/utils/hooks/useWindowSize.js +16 -0
  381. package/dist/ui/utils/index.js +16 -0
  382. package/dist/vite.svg +1 -0
  383. package/package.json +44 -36
  384. package/.eslintrc.js +0 -3
  385. package/.storybook/main.js +0 -32
  386. package/.storybook/preview.js +0 -45
  387. package/.storybook/webpackFinal.js +0 -68
  388. package/babel.config.js +0 -55
  389. package/dist/cjs/a/AnimatedBlobs/AnimatedBlobs.js +0 -89
  390. package/dist/cjs/a/AnimatedBlobs/index.js +0 -13
  391. package/dist/cjs/a/AnimatedBlobs/styles.scss +0 -87
  392. package/dist/cjs/a/AnimatedGradient/AnimatedGradient.js +0 -59
  393. package/dist/cjs/a/AnimatedGradient/index.js +0 -13
  394. package/dist/cjs/a/AnimatedGradient/styles.scss +0 -15
  395. package/dist/cjs/a/AnimatedGradient/webGIRenderer.js +0 -527
  396. package/dist/cjs/a/AppContext/Context.js +0 -10
  397. package/dist/cjs/a/AppContext/ContextProvider.js +0 -87
  398. package/dist/cjs/a/AppContext/index.js +0 -34
  399. package/dist/cjs/a/AppContext/useApp.js +0 -11
  400. package/dist/cjs/a/AppContext/useTheme.js +0 -38
  401. package/dist/cjs/a/BlurOverlay/BlurOverlay.js +0 -58
  402. package/dist/cjs/a/BlurOverlay/index.js +0 -13
  403. package/dist/cjs/a/BlurOverlay/styles.scss +0 -33
  404. package/dist/cjs/a/Charts/AreaChart/AreaChart.js +0 -256
  405. package/dist/cjs/a/Charts/AreaChart/index.js +0 -13
  406. package/dist/cjs/a/Charts/AreaChart/styles.scss +0 -70
  407. package/dist/cjs/a/Charts/BarChart/BarChart.js +0 -138
  408. package/dist/cjs/a/Charts/BarChart/index.js +0 -13
  409. package/dist/cjs/a/Charts/BarChart/styles.scss +0 -48
  410. package/dist/cjs/a/Charts/Common/CustomLegend/CustomLegend.js +0 -106
  411. package/dist/cjs/a/Charts/Common/CustomLegend/index.js +0 -13
  412. package/dist/cjs/a/Charts/Common/CustomLegend/styles.scss +0 -75
  413. package/dist/cjs/a/Charts/Common/CustomTooltipContent/CustomTooltipContent.js +0 -194
  414. package/dist/cjs/a/Charts/Common/CustomTooltipContent/index.js +0 -13
  415. package/dist/cjs/a/Charts/Common/CustomTooltipContent/styles.scss +0 -26
  416. package/dist/cjs/a/Charts/Common/YLabelsDropDown/YlabelsDropDown.js +0 -97
  417. package/dist/cjs/a/Charts/Common/YLabelsDropDown/index.js +0 -13
  418. package/dist/cjs/a/Charts/Common/YLabelsDropDown/styles.scss +0 -89
  419. package/dist/cjs/a/Charts/Common/index.js +0 -26
  420. package/dist/cjs/a/Charts/PieChart/PieChart.js +0 -130
  421. package/dist/cjs/a/Charts/PieChart/index.js +0 -13
  422. package/dist/cjs/a/Charts/PieChart/styles.scss +0 -136
  423. package/dist/cjs/a/Charts/index.js +0 -26
  424. package/dist/cjs/a/ContentTree/ContentTree.js +0 -77
  425. package/dist/cjs/a/ContentTree/common/Tree/Tree.js +0 -111
  426. package/dist/cjs/a/ContentTree/common/Tree/index.js +0 -13
  427. package/dist/cjs/a/ContentTree/common/index.js +0 -27
  428. package/dist/cjs/a/ContentTree/common/useContentTree.js +0 -79
  429. package/dist/cjs/a/ContentTree/common/useFirstVisibleNode.js +0 -61
  430. package/dist/cjs/a/ContentTree/index.js +0 -13
  431. package/dist/cjs/a/ContentTree/styles.scss +0 -56
  432. package/dist/cjs/a/Conversation/Context.js +0 -10
  433. package/dist/cjs/a/Conversation/Conversation.js +0 -85
  434. package/dist/cjs/a/Conversation/common/Message/Message.js +0 -103
  435. package/dist/cjs/a/Conversation/common/Message/index.js +0 -13
  436. package/dist/cjs/a/Conversation/common/index.js +0 -12
  437. package/dist/cjs/a/Conversation/index.js +0 -27
  438. package/dist/cjs/a/Conversation/styles.scss +0 -86
  439. package/dist/cjs/a/Conversation/useConversation.js +0 -11
  440. package/dist/cjs/a/DatePicker/DatePicker.js +0 -162
  441. package/dist/cjs/a/DatePicker/index.js +0 -13
  442. package/dist/cjs/a/DatePicker/styles.scss +0 -380
  443. package/dist/cjs/a/DotInfo/DotInfo.js +0 -86
  444. package/dist/cjs/a/DotInfo/index.js +0 -13
  445. package/dist/cjs/a/DotInfo/styles.scss +0 -20
  446. package/dist/cjs/a/Figure/Figure.js +0 -72
  447. package/dist/cjs/a/Figure/index.js +0 -13
  448. package/dist/cjs/a/Figure/styles.scss +0 -19
  449. package/dist/cjs/a/HamburgerButton/HamburgerButton.js +0 -82
  450. package/dist/cjs/a/HamburgerButton/index.js +0 -13
  451. package/dist/cjs/a/HamburgerButton/styles.scss +0 -183
  452. package/dist/cjs/a/IconList/IconList.js +0 -74
  453. package/dist/cjs/a/IconList/common/Item/Item.js +0 -72
  454. package/dist/cjs/a/IconList/common/Item/index.js +0 -13
  455. package/dist/cjs/a/IconList/common/index.js +0 -12
  456. package/dist/cjs/a/IconList/index.js +0 -13
  457. package/dist/cjs/a/IconList/styles.scss +0 -37
  458. package/dist/cjs/a/Label/Label.js +0 -79
  459. package/dist/cjs/a/Label/index.js +0 -13
  460. package/dist/cjs/a/Label/styles.scss +0 -35
  461. package/dist/cjs/a/LoadingCircle/LoadingCircle.js +0 -102
  462. package/dist/cjs/a/LoadingCircle/index.js +0 -13
  463. package/dist/cjs/a/LoadingCircle/styles.scss +0 -47
  464. package/dist/cjs/a/MetaCard/MetaCard.js +0 -64
  465. package/dist/cjs/a/MetaCard/index.js +0 -13
  466. package/dist/cjs/a/MetaCard/styles.scss +0 -45
  467. package/dist/cjs/a/Notification/Notification.js +0 -113
  468. package/dist/cjs/a/Notification/index.js +0 -13
  469. package/dist/cjs/a/Notification/styles.scss +0 -67
  470. package/dist/cjs/a/NotificationStack/NotificationStack.js +0 -68
  471. package/dist/cjs/a/NotificationStack/index.js +0 -13
  472. package/dist/cjs/a/NotificationStack/styles.scss +0 -23
  473. package/dist/cjs/a/People/People.js +0 -77
  474. package/dist/cjs/a/People/common/Person/Person.js +0 -88
  475. package/dist/cjs/a/People/common/Person/index.js +0 -13
  476. package/dist/cjs/a/People/common/index.js +0 -12
  477. package/dist/cjs/a/People/index.js +0 -13
  478. package/dist/cjs/a/People/styles.scss +0 -60
  479. package/dist/cjs/a/Popover/Popover.js +0 -117
  480. package/dist/cjs/a/Popover/index.js +0 -13
  481. package/dist/cjs/a/Popover/styles.scss +0 -34
  482. package/dist/cjs/a/ProgressBar/ProgressBar.js +0 -81
  483. package/dist/cjs/a/ProgressBar/index.js +0 -13
  484. package/dist/cjs/a/ProgressBar/styles.scss +0 -47
  485. package/dist/cjs/a/Quote/Quote.js +0 -92
  486. package/dist/cjs/a/Quote/index.js +0 -13
  487. package/dist/cjs/a/Quote/styles.scss +0 -35
  488. package/dist/cjs/a/Removable/Removable.js +0 -71
  489. package/dist/cjs/a/Removable/index.js +0 -13
  490. package/dist/cjs/a/Removable/styles.scss +0 -33
  491. package/dist/cjs/a/SVG/SVG.js +0 -133
  492. package/dist/cjs/a/SVG/common/UseSVG/UseSVG.js +0 -71
  493. package/dist/cjs/a/SVG/common/UseSVG/index.js +0 -13
  494. package/dist/cjs/a/SVG/common/index.js +0 -12
  495. package/dist/cjs/a/SVG/index.js +0 -13
  496. package/dist/cjs/a/SVG/styles.scss +0 -57
  497. package/dist/cjs/a/SnapScroller/SnapScroller.js +0 -92
  498. package/dist/cjs/a/SnapScroller/index.js +0 -13
  499. package/dist/cjs/a/SnapScroller/styles.scss +0 -77
  500. package/dist/cjs/a/Spinner/Spinner.js +0 -62
  501. package/dist/cjs/a/Spinner/index.js +0 -13
  502. package/dist/cjs/a/Spinner/styles.scss +0 -23
  503. package/dist/cjs/a/TextSteps/TextSteps.js +0 -67
  504. package/dist/cjs/a/TextSteps/index.js +0 -13
  505. package/dist/cjs/a/TextSteps/styles.scss +0 -29
  506. package/dist/cjs/a/ThroughPutIndicator/ThroughPutIndicator.js +0 -78
  507. package/dist/cjs/a/ThroughPutIndicator/index.js +0 -13
  508. package/dist/cjs/a/ThroughPutIndicator/styles.scss +0 -35
  509. package/dist/cjs/a/Timestamp/Timestamp.js +0 -122
  510. package/dist/cjs/a/Timestamp/index.js +0 -13
  511. package/dist/cjs/a/Timestamp/styles.scss +0 -7
  512. package/dist/cjs/a/Tip/Tip.js +0 -85
  513. package/dist/cjs/a/Tip/index.js +0 -13
  514. package/dist/cjs/a/Tip/styles.scss +0 -16
  515. package/dist/cjs/a/ToggleSwitch/ToggleSwitch.js +0 -87
  516. package/dist/cjs/a/ToggleSwitch/index.js +0 -13
  517. package/dist/cjs/a/ToggleSwitch/styles.scss +0 -58
  518. package/dist/cjs/a/Tooltip/Tooltip.js +0 -104
  519. package/dist/cjs/a/Tooltip/index.js +0 -13
  520. package/dist/cjs/a/Tooltip/styles.scss +0 -89
  521. package/dist/cjs/a/XMLEditor/XMLEditor.js +0 -128
  522. package/dist/cjs/a/XMLEditor/common/index.js +0 -13
  523. package/dist/cjs/a/XMLEditor/common/theme.js +0 -186
  524. package/dist/cjs/a/XMLEditor/index.js +0 -13
  525. package/dist/cjs/a/XMLEditor/styles.scss +0 -24
  526. package/dist/cjs/a/index.js +0 -259
  527. package/dist/cjs/b/Button/Button.js +0 -111
  528. package/dist/cjs/b/Button/common/Group/Group.js +0 -54
  529. package/dist/cjs/b/Button/common/Group/index.js +0 -13
  530. package/dist/cjs/b/Button/common/Group/styles.scss +0 -11
  531. package/dist/cjs/b/Button/common/index.js +0 -12
  532. package/dist/cjs/b/Button/index.js +0 -13
  533. package/dist/cjs/b/Button/styles.scss +0 -173
  534. package/dist/cjs/b/Card/Card.js +0 -73
  535. package/dist/cjs/b/Card/common/Group/Group.js +0 -70
  536. package/dist/cjs/b/Card/common/Group/index.js +0 -13
  537. package/dist/cjs/b/Card/common/Group/styles.scss +0 -35
  538. package/dist/cjs/b/Card/common/Section/Section.js +0 -58
  539. package/dist/cjs/b/Card/common/Section/index.js +0 -13
  540. package/dist/cjs/b/Card/common/index.js +0 -19
  541. package/dist/cjs/b/Card/index.js +0 -13
  542. package/dist/cjs/b/Card/styles.scss +0 -57
  543. package/dist/cjs/b/Logo/Logo.js +0 -123
  544. package/dist/cjs/b/Logo/index.js +0 -13
  545. package/dist/cjs/b/Logo/styles.scss +0 -11
  546. package/dist/cjs/b/Page/Context.js +0 -10
  547. package/dist/cjs/b/Page/Page.js +0 -106
  548. package/dist/cjs/b/Page/common/PageHelmet/PageHelmet.js +0 -186
  549. package/dist/cjs/b/Page/common/PageHelmet/index.js +0 -13
  550. package/dist/cjs/b/Page/common/Section/Section.js +0 -66
  551. package/dist/cjs/b/Page/common/Section/index.js +0 -13
  552. package/dist/cjs/b/Page/common/index.js +0 -19
  553. package/dist/cjs/b/Page/index.js +0 -27
  554. package/dist/cjs/b/Page/styles.scss +0 -38
  555. package/dist/cjs/b/Page/usePage.js +0 -11
  556. package/dist/cjs/b/SocialMediaButton/SocialMediaButton.js +0 -116
  557. package/dist/cjs/b/SocialMediaButton/index.js +0 -13
  558. package/dist/cjs/b/SocialMediaButton/styles.scss +0 -35
  559. package/dist/cjs/b/ThemeSelector/ThemeSelector.js +0 -74
  560. package/dist/cjs/b/ThemeSelector/index.js +0 -13
  561. package/dist/cjs/b/ThemeSelector/styles.scss +0 -52
  562. package/dist/cjs/b/Title/Title.js +0 -110
  563. package/dist/cjs/b/Title/index.js +0 -13
  564. package/dist/cjs/b/index.js +0 -54
  565. package/dist/cjs/c/Modal/Modal.js +0 -82
  566. package/dist/cjs/c/Modal/common/ModalHeader/ModalHeader.js +0 -76
  567. package/dist/cjs/c/Modal/common/ModalHeader/index.js +0 -13
  568. package/dist/cjs/c/Modal/common/index.js +0 -12
  569. package/dist/cjs/c/Modal/index.js +0 -13
  570. package/dist/cjs/c/Modal/styles.scss +0 -44
  571. package/dist/cjs/c/Shortener/Shortener.js +0 -102
  572. package/dist/cjs/c/Shortener/index.js +0 -13
  573. package/dist/cjs/c/Shortener/styles.scss +0 -7
  574. package/dist/cjs/c/SocialMediaShareButton/SocialMediaShareButton.js +0 -102
  575. package/dist/cjs/c/SocialMediaShareButton/index.js +0 -13
  576. package/dist/cjs/c/SocialMediaShareButton/styles.scss +0 -39
  577. package/dist/cjs/c/index.js +0 -26
  578. package/dist/cjs/d/index.js +0 -2
  579. package/dist/cjs/f/FormInput/FormInput.js +0 -154
  580. package/dist/cjs/f/FormInput/index.js +0 -13
  581. package/dist/cjs/f/FormInput/styles.scss +0 -11
  582. package/dist/cjs/f/common/Debugger/Debugger.js +0 -68
  583. package/dist/cjs/f/common/Debugger/index.js +0 -13
  584. package/dist/cjs/f/common/Debugger/styles.scss +0 -12
  585. package/dist/cjs/f/common/Description/Description.js +0 -75
  586. package/dist/cjs/f/common/Description/index.js +0 -13
  587. package/dist/cjs/f/common/Description/styles.scss +0 -9
  588. package/dist/cjs/f/common/Label/Label.js +0 -82
  589. package/dist/cjs/f/common/Label/index.js +0 -13
  590. package/dist/cjs/f/common/Label/styles.scss +0 -9
  591. package/dist/cjs/f/common/index.js +0 -43
  592. package/dist/cjs/f/common/utils/index.js +0 -19
  593. package/dist/cjs/f/common/utils/lookUpInputValueFromFetchedOptions.js +0 -29
  594. package/dist/cjs/f/common/utils/validators.js +0 -17
  595. package/dist/cjs/f/fields/Checkbox/Checkbox.js +0 -117
  596. package/dist/cjs/f/fields/Checkbox/index.js +0 -13
  597. package/dist/cjs/f/fields/Checkbox/styles.scss +0 -16
  598. package/dist/cjs/f/fields/ChoicesInput/ChoicesInput.js +0 -151
  599. package/dist/cjs/f/fields/ChoicesInput/common/Choice/Choice.js +0 -105
  600. package/dist/cjs/f/fields/ChoicesInput/common/Choice/index.js +0 -13
  601. package/dist/cjs/f/fields/ChoicesInput/common/index.js +0 -12
  602. package/dist/cjs/f/fields/ChoicesInput/index.js +0 -13
  603. package/dist/cjs/f/fields/ChoicesInput/styles.scss +0 -79
  604. package/dist/cjs/f/fields/EditorInput/EditorInput.js +0 -238
  605. package/dist/cjs/f/fields/EditorInput/common/BlockFormatDropDown/BlockFormatDropDown.js +0 -256
  606. package/dist/cjs/f/fields/EditorInput/common/BlockFormatDropDown/index.js +0 -13
  607. package/dist/cjs/f/fields/EditorInput/common/BlockFormatDropDown/styles.scss +0 -55
  608. package/dist/cjs/f/fields/EditorInput/common/ColorPicker/ColorPicker.js +0 -98
  609. package/dist/cjs/f/fields/EditorInput/common/ColorPicker/index.js +0 -13
  610. package/dist/cjs/f/fields/EditorInput/common/ColorPicker/styles.scss +0 -36
  611. package/dist/cjs/f/fields/EditorInput/common/ExposePlainTextPlugin.js +0 -47
  612. package/dist/cjs/f/fields/EditorInput/common/FontSizeDropDown/FontSizeDropDown.js +0 -94
  613. package/dist/cjs/f/fields/EditorInput/common/FontSizeDropDown/index.js +0 -13
  614. package/dist/cjs/f/fields/EditorInput/common/FontSizeDropDown/styles.scss +0 -55
  615. package/dist/cjs/f/fields/EditorInput/common/StopPropagationPlugin.js +0 -25
  616. package/dist/cjs/f/fields/EditorInput/common/ToolbarPlugin/ToolbarPlugin.js +0 -289
  617. package/dist/cjs/f/fields/EditorInput/common/ToolbarPlugin/index.js +0 -13
  618. package/dist/cjs/f/fields/EditorInput/common/ToolbarPlugin/styles.scss +0 -56
  619. package/dist/cjs/f/fields/EditorInput/common/TreeViewPlugin.js +0 -18
  620. package/dist/cjs/f/fields/EditorInput/common/index.js +0 -55
  621. package/dist/cjs/f/fields/EditorInput/index.js +0 -13
  622. package/dist/cjs/f/fields/EditorInput/styles.scss +0 -240
  623. package/dist/cjs/f/fields/FileUpload/FileUpload.js +0 -248
  624. package/dist/cjs/f/fields/FileUpload/common/Preview/Preview.js +0 -135
  625. package/dist/cjs/f/fields/FileUpload/common/Preview/index.js +0 -13
  626. package/dist/cjs/f/fields/FileUpload/common/Preview/styles.scss +0 -96
  627. package/dist/cjs/f/fields/FileUpload/common/index.js +0 -12
  628. package/dist/cjs/f/fields/FileUpload/index.js +0 -32
  629. package/dist/cjs/f/fields/FileUpload/styles.scss +0 -73
  630. package/dist/cjs/f/fields/FileUpload/utils.js +0 -48
  631. package/dist/cjs/f/fields/LatexPreviewInput/LatexPreviewInput.js +0 -78
  632. package/dist/cjs/f/fields/LatexPreviewInput/convertLatexToHtml.js +0 -46
  633. package/dist/cjs/f/fields/LatexPreviewInput/index.js +0 -20
  634. package/dist/cjs/f/fields/LatexPreviewInput/styles.scss +0 -25
  635. package/dist/cjs/f/fields/LinkInput/LinkInput.js +0 -152
  636. package/dist/cjs/f/fields/LinkInput/index.js +0 -13
  637. package/dist/cjs/f/fields/LinkInput/styles.scss +0 -90
  638. package/dist/cjs/f/fields/QueryChoices/QueryChoices.js +0 -137
  639. package/dist/cjs/f/fields/QueryChoices/index.js +0 -13
  640. package/dist/cjs/f/fields/QueryCombobox/QueryCombobox.js +0 -241
  641. package/dist/cjs/f/fields/QueryCombobox/common/Combobox/Combobox.js +0 -238
  642. package/dist/cjs/f/fields/QueryCombobox/common/Combobox/index.js +0 -13
  643. package/dist/cjs/f/fields/QueryCombobox/common/Menu/Menu.js +0 -83
  644. package/dist/cjs/f/fields/QueryCombobox/common/Menu/index.js +0 -13
  645. package/dist/cjs/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +0 -331
  646. package/dist/cjs/f/fields/QueryCombobox/common/MultipleCombobox/index.js +0 -13
  647. package/dist/cjs/f/fields/QueryCombobox/common/index.js +0 -26
  648. package/dist/cjs/f/fields/QueryCombobox/index.js +0 -13
  649. package/dist/cjs/f/fields/QueryCombobox/styles.scss +0 -134
  650. package/dist/cjs/f/fields/QuerySelect/QuerySelect.js +0 -198
  651. package/dist/cjs/f/fields/QuerySelect/index.js +0 -13
  652. package/dist/cjs/f/fields/RatingsInput/RatingsInput.js +0 -132
  653. package/dist/cjs/f/fields/RatingsInput/common/Rating/Rating.js +0 -117
  654. package/dist/cjs/f/fields/RatingsInput/common/Rating/index.js +0 -13
  655. package/dist/cjs/f/fields/RatingsInput/common/index.js +0 -12
  656. package/dist/cjs/f/fields/RatingsInput/index.js +0 -13
  657. package/dist/cjs/f/fields/RatingsInput/styles.scss +0 -48
  658. package/dist/cjs/f/fields/SelectInput/SelectInput.js +0 -149
  659. package/dist/cjs/f/fields/SelectInput/common/Menu/Menu.js +0 -83
  660. package/dist/cjs/f/fields/SelectInput/common/Menu/index.js +0 -13
  661. package/dist/cjs/f/fields/SelectInput/common/Multiple/Multiple.js +0 -242
  662. package/dist/cjs/f/fields/SelectInput/common/Multiple/index.js +0 -13
  663. package/dist/cjs/f/fields/SelectInput/common/Single/Single.js +0 -115
  664. package/dist/cjs/f/fields/SelectInput/common/Single/index.js +0 -13
  665. package/dist/cjs/f/fields/SelectInput/common/index.js +0 -26
  666. package/dist/cjs/f/fields/SelectInput/index.js +0 -13
  667. package/dist/cjs/f/fields/SelectInput/styles.scss +0 -191
  668. package/dist/cjs/f/fields/TextInput/TextInput.js +0 -150
  669. package/dist/cjs/f/fields/TextInput/index.js +0 -13
  670. package/dist/cjs/f/fields/TextInput/styles.scss +0 -81
  671. package/dist/cjs/f/fields/TextareaInput/TextareaInput.js +0 -151
  672. package/dist/cjs/f/fields/TextareaInput/index.js +0 -13
  673. package/dist/cjs/f/fields/TextareaInput/styles.scss +0 -53
  674. package/dist/cjs/f/fields/ToggleInput/ToggleInput.js +0 -126
  675. package/dist/cjs/f/fields/ToggleInput/index.js +0 -13
  676. package/dist/cjs/f/fields/ToggleInput/styles.scss +0 -22
  677. package/dist/cjs/f/fields/index.js +0 -127
  678. package/dist/cjs/f/index.js +0 -39
  679. package/dist/cjs/form-reset.scss +0 -86
  680. package/dist/cjs/form.scss +0 -34
  681. package/dist/cjs/g/DragAndDrop/DragAndDrop.js +0 -104
  682. package/dist/cjs/g/DragAndDrop/common/DraggableItem/DraggableItem.js +0 -76
  683. package/dist/cjs/g/DragAndDrop/common/DraggableItem/index.js +0 -13
  684. package/dist/cjs/g/DragAndDrop/common/DraggableItem/styles.scss +0 -12
  685. package/dist/cjs/g/DragAndDrop/common/index.js +0 -12
  686. package/dist/cjs/g/DragAndDrop/index.js +0 -13
  687. package/dist/cjs/g/DragAndDrop/styles.scss +0 -8
  688. package/dist/cjs/g/ExpandableLexicalPreview/ExpandableLexicalPreview.js +0 -139
  689. package/dist/cjs/g/ExpandableLexicalPreview/common/NewWindowPortal/NewWindowPortal.js +0 -79
  690. package/dist/cjs/g/ExpandableLexicalPreview/common/NewWindowPortal/index.js +0 -13
  691. package/dist/cjs/g/ExpandableLexicalPreview/common/NewWindowPortal/styles.scss +0 -9
  692. package/dist/cjs/g/ExpandableLexicalPreview/common/index.js +0 -12
  693. package/dist/cjs/g/ExpandableLexicalPreview/index.js +0 -13
  694. package/dist/cjs/g/ExpandableLexicalPreview/styles.scss +0 -33
  695. package/dist/cjs/g/FormBuilder/FormBuilder.js +0 -127
  696. package/dist/cjs/g/FormBuilder/common/Builder/Builder.js +0 -193
  697. package/dist/cjs/g/FormBuilder/common/Builder/common/ActionsContainer/ActionsContainer.js +0 -80
  698. package/dist/cjs/g/FormBuilder/common/Builder/common/ActionsContainer/index.js +0 -13
  699. package/dist/cjs/g/FormBuilder/common/Builder/common/ActionsContainer/styles.scss +0 -59
  700. package/dist/cjs/g/FormBuilder/common/Builder/common/InputBuilder/InputBuilder.js +0 -254
  701. package/dist/cjs/g/FormBuilder/common/Builder/common/InputBuilder/index.js +0 -13
  702. package/dist/cjs/g/FormBuilder/common/Builder/common/InputBuilder/styles.scss +0 -169
  703. package/dist/cjs/g/FormBuilder/common/Builder/common/Section/Section.js +0 -148
  704. package/dist/cjs/g/FormBuilder/common/Builder/common/Section/index.js +0 -13
  705. package/dist/cjs/g/FormBuilder/common/Builder/common/Section/styles.scss +0 -71
  706. package/dist/cjs/g/FormBuilder/common/Builder/common/index.js +0 -26
  707. package/dist/cjs/g/FormBuilder/common/Builder/index.js +0 -13
  708. package/dist/cjs/g/FormBuilder/common/Builder/styles.scss +0 -63
  709. package/dist/cjs/g/FormBuilder/common/Renderer/Renderer.js +0 -194
  710. package/dist/cjs/g/FormBuilder/common/Renderer/common/Section/Section.js +0 -95
  711. package/dist/cjs/g/FormBuilder/common/Renderer/common/Section/index.js +0 -13
  712. package/dist/cjs/g/FormBuilder/common/Renderer/common/index.js +0 -12
  713. package/dist/cjs/g/FormBuilder/common/Renderer/index.js +0 -13
  714. package/dist/cjs/g/FormBuilder/common/Renderer/styles.scss +0 -30
  715. package/dist/cjs/g/FormBuilder/common/index.js +0 -19
  716. package/dist/cjs/g/FormBuilder/index.js +0 -13
  717. package/dist/cjs/g/FormBuilder/styles.scss +0 -25
  718. package/dist/cjs/g/index.js +0 -26
  719. package/dist/cjs/index.js +0 -93
  720. package/dist/cjs/test/QueryLoader/QueryLoader.js +0 -36
  721. package/dist/cjs/test/QueryLoader/__generated__/QueryLoaderHelloQuery.graphql.js +0 -63
  722. package/dist/cjs/test/QueryLoader/common/PreloadedTestData/PreloadedTestData.js +0 -40
  723. package/dist/cjs/test/QueryLoader/common/PreloadedTestData/index.js +0 -13
  724. package/dist/cjs/test/QueryLoader/common/index.js +0 -12
  725. package/dist/cjs/test/QueryLoader/index.js +0 -13
  726. package/dist/cjs/test/index.js +0 -12
  727. package/dist/cjs/utils/applyCharacterLimit.js +0 -75
  728. package/dist/cjs/utils/formatting.js +0 -128
  729. package/dist/cjs/utils/hooks/index.js +0 -27
  730. package/dist/cjs/utils/hooks/useDynamicPosition.js +0 -91
  731. package/dist/cjs/utils/hooks/useOutsideClick.js +0 -25
  732. package/dist/cjs/utils/hooks/useWindowSize.js +0 -30
  733. package/dist/cjs/utils/index.js +0 -62
  734. package/dist/es/a/AnimatedBlobs/AnimatedBlobs.js +0 -77
  735. package/dist/es/a/AnimatedBlobs/index.js +0 -1
  736. package/dist/es/a/AnimatedBlobs/styles.scss +0 -87
  737. package/dist/es/a/AnimatedGradient/AnimatedGradient.js +0 -49
  738. package/dist/es/a/AnimatedGradient/index.js +0 -1
  739. package/dist/es/a/AnimatedGradient/styles.scss +0 -15
  740. package/dist/es/a/AnimatedGradient/webGIRenderer.js +0 -491
  741. package/dist/es/a/AppContext/Context.js +0 -2
  742. package/dist/es/a/AppContext/ContextProvider.js +0 -77
  743. package/dist/es/a/AppContext/index.js +0 -5
  744. package/dist/es/a/AppContext/useApp.js +0 -3
  745. package/dist/es/a/AppContext/useTheme.js +0 -31
  746. package/dist/es/a/BlurOverlay/BlurOverlay.js +0 -45
  747. package/dist/es/a/BlurOverlay/index.js +0 -2
  748. package/dist/es/a/BlurOverlay/styles.scss +0 -33
  749. package/dist/es/a/Charts/AreaChart/AreaChart.js +0 -246
  750. package/dist/es/a/Charts/AreaChart/index.js +0 -1
  751. package/dist/es/a/Charts/AreaChart/styles.scss +0 -70
  752. package/dist/es/a/Charts/BarChart/BarChart.js +0 -129
  753. package/dist/es/a/Charts/BarChart/index.js +0 -1
  754. package/dist/es/a/Charts/BarChart/styles.scss +0 -48
  755. package/dist/es/a/Charts/Common/CustomLegend/CustomLegend.js +0 -94
  756. package/dist/es/a/Charts/Common/CustomLegend/index.js +0 -1
  757. package/dist/es/a/Charts/Common/CustomLegend/styles.scss +0 -75
  758. package/dist/es/a/Charts/Common/CustomTooltipContent/CustomTooltipContent.js +0 -175
  759. package/dist/es/a/Charts/Common/CustomTooltipContent/index.js +0 -1
  760. package/dist/es/a/Charts/Common/CustomTooltipContent/styles.scss +0 -26
  761. package/dist/es/a/Charts/Common/YLabelsDropDown/YlabelsDropDown.js +0 -86
  762. package/dist/es/a/Charts/Common/YLabelsDropDown/index.js +0 -1
  763. package/dist/es/a/Charts/Common/YLabelsDropDown/styles.scss +0 -89
  764. package/dist/es/a/Charts/Common/index.js +0 -3
  765. package/dist/es/a/Charts/PieChart/PieChart.js +0 -120
  766. package/dist/es/a/Charts/PieChart/index.js +0 -1
  767. package/dist/es/a/Charts/PieChart/styles.scss +0 -136
  768. package/dist/es/a/Charts/index.js +0 -3
  769. package/dist/es/a/ContentTree/ContentTree.js +0 -66
  770. package/dist/es/a/ContentTree/common/Tree/Tree.js +0 -101
  771. package/dist/es/a/ContentTree/common/Tree/index.js +0 -2
  772. package/dist/es/a/ContentTree/common/index.js +0 -3
  773. package/dist/es/a/ContentTree/common/useContentTree.js +0 -73
  774. package/dist/es/a/ContentTree/common/useFirstVisibleNode.js +0 -54
  775. package/dist/es/a/ContentTree/index.js +0 -2
  776. package/dist/es/a/ContentTree/styles.scss +0 -56
  777. package/dist/es/a/Conversation/Context.js +0 -2
  778. package/dist/es/a/Conversation/Conversation.js +0 -73
  779. package/dist/es/a/Conversation/common/Message/Message.js +0 -93
  780. package/dist/es/a/Conversation/common/Message/index.js +0 -2
  781. package/dist/es/a/Conversation/common/index.js +0 -1
  782. package/dist/es/a/Conversation/index.js +0 -4
  783. package/dist/es/a/Conversation/styles.scss +0 -86
  784. package/dist/es/a/Conversation/useConversation.js +0 -3
  785. package/dist/es/a/DatePicker/DatePicker.js +0 -154
  786. package/dist/es/a/DatePicker/index.js +0 -2
  787. package/dist/es/a/DatePicker/styles.scss +0 -380
  788. package/dist/es/a/DotInfo/DotInfo.js +0 -74
  789. package/dist/es/a/DotInfo/index.js +0 -2
  790. package/dist/es/a/DotInfo/styles.scss +0 -20
  791. package/dist/es/a/Figure/Figure.js +0 -60
  792. package/dist/es/a/Figure/index.js +0 -2
  793. package/dist/es/a/Figure/styles.scss +0 -19
  794. package/dist/es/a/HamburgerButton/HamburgerButton.js +0 -72
  795. package/dist/es/a/HamburgerButton/index.js +0 -2
  796. package/dist/es/a/HamburgerButton/styles.scss +0 -183
  797. package/dist/es/a/IconList/IconList.js +0 -64
  798. package/dist/es/a/IconList/common/Item/Item.js +0 -63
  799. package/dist/es/a/IconList/common/Item/index.js +0 -2
  800. package/dist/es/a/IconList/common/index.js +0 -1
  801. package/dist/es/a/IconList/index.js +0 -2
  802. package/dist/es/a/IconList/styles.scss +0 -37
  803. package/dist/es/a/Label/Label.js +0 -69
  804. package/dist/es/a/Label/index.js +0 -2
  805. package/dist/es/a/Label/styles.scss +0 -35
  806. package/dist/es/a/LoadingCircle/LoadingCircle.js +0 -90
  807. package/dist/es/a/LoadingCircle/index.js +0 -2
  808. package/dist/es/a/LoadingCircle/styles.scss +0 -47
  809. package/dist/es/a/MetaCard/MetaCard.js +0 -52
  810. package/dist/es/a/MetaCard/index.js +0 -1
  811. package/dist/es/a/MetaCard/styles.scss +0 -45
  812. package/dist/es/a/Notification/Notification.js +0 -107
  813. package/dist/es/a/Notification/index.js +0 -1
  814. package/dist/es/a/Notification/styles.scss +0 -67
  815. package/dist/es/a/NotificationStack/NotificationStack.js +0 -62
  816. package/dist/es/a/NotificationStack/index.js +0 -1
  817. package/dist/es/a/NotificationStack/styles.scss +0 -23
  818. package/dist/es/a/People/People.js +0 -65
  819. package/dist/es/a/People/common/Person/Person.js +0 -78
  820. package/dist/es/a/People/common/Person/index.js +0 -2
  821. package/dist/es/a/People/common/index.js +0 -1
  822. package/dist/es/a/People/index.js +0 -2
  823. package/dist/es/a/People/styles.scss +0 -60
  824. package/dist/es/a/Popover/Popover.js +0 -106
  825. package/dist/es/a/Popover/index.js +0 -2
  826. package/dist/es/a/Popover/styles.scss +0 -34
  827. package/dist/es/a/ProgressBar/ProgressBar.js +0 -69
  828. package/dist/es/a/ProgressBar/index.js +0 -2
  829. package/dist/es/a/ProgressBar/styles.scss +0 -47
  830. package/dist/es/a/Quote/Quote.js +0 -80
  831. package/dist/es/a/Quote/index.js +0 -2
  832. package/dist/es/a/Quote/styles.scss +0 -35
  833. package/dist/es/a/Removable/Removable.js +0 -59
  834. package/dist/es/a/Removable/index.js +0 -2
  835. package/dist/es/a/Removable/styles.scss +0 -33
  836. package/dist/es/a/SVG/SVG.js +0 -125
  837. package/dist/es/a/SVG/common/UseSVG/UseSVG.js +0 -59
  838. package/dist/es/a/SVG/common/UseSVG/index.js +0 -2
  839. package/dist/es/a/SVG/common/index.js +0 -1
  840. package/dist/es/a/SVG/index.js +0 -2
  841. package/dist/es/a/SVG/styles.scss +0 -57
  842. package/dist/es/a/SnapScroller/SnapScroller.js +0 -82
  843. package/dist/es/a/SnapScroller/index.js +0 -2
  844. package/dist/es/a/SnapScroller/styles.scss +0 -77
  845. package/dist/es/a/Spinner/Spinner.js +0 -50
  846. package/dist/es/a/Spinner/index.js +0 -2
  847. package/dist/es/a/Spinner/styles.scss +0 -23
  848. package/dist/es/a/TextSteps/TextSteps.js +0 -56
  849. package/dist/es/a/TextSteps/index.js +0 -1
  850. package/dist/es/a/TextSteps/styles.scss +0 -29
  851. package/dist/es/a/ThroughPutIndicator/ThroughPutIndicator.js +0 -66
  852. package/dist/es/a/ThroughPutIndicator/index.js +0 -2
  853. package/dist/es/a/ThroughPutIndicator/styles.scss +0 -35
  854. package/dist/es/a/Timestamp/Timestamp.js +0 -112
  855. package/dist/es/a/Timestamp/index.js +0 -2
  856. package/dist/es/a/Timestamp/styles.scss +0 -7
  857. package/dist/es/a/Tip/Tip.js +0 -73
  858. package/dist/es/a/Tip/index.js +0 -2
  859. package/dist/es/a/Tip/styles.scss +0 -16
  860. package/dist/es/a/ToggleSwitch/ToggleSwitch.js +0 -75
  861. package/dist/es/a/ToggleSwitch/index.js +0 -2
  862. package/dist/es/a/ToggleSwitch/styles.scss +0 -58
  863. package/dist/es/a/Tooltip/Tooltip.js +0 -94
  864. package/dist/es/a/Tooltip/index.js +0 -2
  865. package/dist/es/a/Tooltip/styles.scss +0 -89
  866. package/dist/es/a/XMLEditor/XMLEditor.js +0 -117
  867. package/dist/es/a/XMLEditor/common/index.js +0 -1
  868. package/dist/es/a/XMLEditor/common/theme.js +0 -180
  869. package/dist/es/a/XMLEditor/index.js +0 -1
  870. package/dist/es/a/XMLEditor/styles.scss +0 -24
  871. package/dist/es/a/index.js +0 -32
  872. package/dist/es/b/Button/Button.js +0 -105
  873. package/dist/es/b/Button/common/Group/Group.js +0 -44
  874. package/dist/es/b/Button/common/Group/index.js +0 -1
  875. package/dist/es/b/Button/common/Group/styles.scss +0 -11
  876. package/dist/es/b/Button/common/index.js +0 -1
  877. package/dist/es/b/Button/index.js +0 -2
  878. package/dist/es/b/Button/styles.scss +0 -173
  879. package/dist/es/b/Card/Card.js +0 -61
  880. package/dist/es/b/Card/common/Group/Group.js +0 -62
  881. package/dist/es/b/Card/common/Group/index.js +0 -1
  882. package/dist/es/b/Card/common/Group/styles.scss +0 -35
  883. package/dist/es/b/Card/common/Section/Section.js +0 -48
  884. package/dist/es/b/Card/common/Section/index.js +0 -1
  885. package/dist/es/b/Card/common/index.js +0 -2
  886. package/dist/es/b/Card/index.js +0 -1
  887. package/dist/es/b/Card/styles.scss +0 -57
  888. package/dist/es/b/Logo/Logo.js +0 -113
  889. package/dist/es/b/Logo/index.js +0 -2
  890. package/dist/es/b/Logo/styles.scss +0 -11
  891. package/dist/es/b/Page/Context.js +0 -2
  892. package/dist/es/b/Page/Page.js +0 -100
  893. package/dist/es/b/Page/common/PageHelmet/PageHelmet.js +0 -174
  894. package/dist/es/b/Page/common/PageHelmet/index.js +0 -2
  895. package/dist/es/b/Page/common/Section/Section.js +0 -59
  896. package/dist/es/b/Page/common/Section/index.js +0 -2
  897. package/dist/es/b/Page/common/index.js +0 -2
  898. package/dist/es/b/Page/index.js +0 -4
  899. package/dist/es/b/Page/styles.scss +0 -38
  900. package/dist/es/b/Page/usePage.js +0 -3
  901. package/dist/es/b/SocialMediaButton/SocialMediaButton.js +0 -108
  902. package/dist/es/b/SocialMediaButton/index.js +0 -2
  903. package/dist/es/b/SocialMediaButton/styles.scss +0 -35
  904. package/dist/es/b/ThemeSelector/ThemeSelector.js +0 -64
  905. package/dist/es/b/ThemeSelector/index.js +0 -2
  906. package/dist/es/b/ThemeSelector/styles.scss +0 -52
  907. package/dist/es/b/Title/Title.js +0 -102
  908. package/dist/es/b/Title/index.js +0 -2
  909. package/dist/es/b/index.js +0 -7
  910. package/dist/es/c/Modal/Modal.js +0 -70
  911. package/dist/es/c/Modal/common/ModalHeader/ModalHeader.js +0 -64
  912. package/dist/es/c/Modal/common/ModalHeader/index.js +0 -1
  913. package/dist/es/c/Modal/common/index.js +0 -1
  914. package/dist/es/c/Modal/index.js +0 -2
  915. package/dist/es/c/Modal/styles.scss +0 -44
  916. package/dist/es/c/Shortener/Shortener.js +0 -91
  917. package/dist/es/c/Shortener/index.js +0 -2
  918. package/dist/es/c/Shortener/styles.scss +0 -7
  919. package/dist/es/c/SocialMediaShareButton/SocialMediaShareButton.js +0 -92
  920. package/dist/es/c/SocialMediaShareButton/index.js +0 -2
  921. package/dist/es/c/SocialMediaShareButton/styles.scss +0 -39
  922. package/dist/es/c/index.js +0 -3
  923. package/dist/es/d/index.js +0 -1
  924. package/dist/es/f/FormInput/FormInput.js +0 -146
  925. package/dist/es/f/FormInput/index.js +0 -2
  926. package/dist/es/f/FormInput/styles.scss +0 -11
  927. package/dist/es/f/common/Debugger/Debugger.js +0 -58
  928. package/dist/es/f/common/Debugger/index.js +0 -2
  929. package/dist/es/f/common/Debugger/styles.scss +0 -12
  930. package/dist/es/f/common/Description/Description.js +0 -65
  931. package/dist/es/f/common/Description/index.js +0 -2
  932. package/dist/es/f/common/Description/styles.scss +0 -9
  933. package/dist/es/f/common/Label/Label.js +0 -69
  934. package/dist/es/f/common/Label/index.js +0 -2
  935. package/dist/es/f/common/Label/styles.scss +0 -9
  936. package/dist/es/f/common/index.js +0 -4
  937. package/dist/es/f/common/utils/index.js +0 -2
  938. package/dist/es/f/common/utils/lookUpInputValueFromFetchedOptions.js +0 -20
  939. package/dist/es/f/common/utils/validators.js +0 -10
  940. package/dist/es/f/fields/Checkbox/Checkbox.js +0 -110
  941. package/dist/es/f/fields/Checkbox/index.js +0 -2
  942. package/dist/es/f/fields/Checkbox/styles.scss +0 -16
  943. package/dist/es/f/fields/ChoicesInput/ChoicesInput.js +0 -143
  944. package/dist/es/f/fields/ChoicesInput/common/Choice/Choice.js +0 -98
  945. package/dist/es/f/fields/ChoicesInput/common/Choice/index.js +0 -2
  946. package/dist/es/f/fields/ChoicesInput/common/index.js +0 -1
  947. package/dist/es/f/fields/ChoicesInput/index.js +0 -2
  948. package/dist/es/f/fields/ChoicesInput/styles.scss +0 -79
  949. package/dist/es/f/fields/EditorInput/EditorInput.js +0 -227
  950. package/dist/es/f/fields/EditorInput/common/BlockFormatDropDown/BlockFormatDropDown.js +0 -246
  951. package/dist/es/f/fields/EditorInput/common/BlockFormatDropDown/index.js +0 -2
  952. package/dist/es/f/fields/EditorInput/common/BlockFormatDropDown/styles.scss +0 -55
  953. package/dist/es/f/fields/EditorInput/common/ColorPicker/ColorPicker.js +0 -87
  954. package/dist/es/f/fields/EditorInput/common/ColorPicker/index.js +0 -2
  955. package/dist/es/f/fields/EditorInput/common/ColorPicker/styles.scss +0 -36
  956. package/dist/es/f/fields/EditorInput/common/ExposePlainTextPlugin.js +0 -39
  957. package/dist/es/f/fields/EditorInput/common/FontSizeDropDown/FontSizeDropDown.js +0 -81
  958. package/dist/es/f/fields/EditorInput/common/FontSizeDropDown/index.js +0 -2
  959. package/dist/es/f/fields/EditorInput/common/FontSizeDropDown/styles.scss +0 -55
  960. package/dist/es/f/fields/EditorInput/common/StopPropagationPlugin.js +0 -19
  961. package/dist/es/f/fields/EditorInput/common/ToolbarPlugin/ToolbarPlugin.js +0 -277
  962. package/dist/es/f/fields/EditorInput/common/ToolbarPlugin/index.js +0 -2
  963. package/dist/es/f/fields/EditorInput/common/ToolbarPlugin/styles.scss +0 -56
  964. package/dist/es/f/fields/EditorInput/common/TreeViewPlugin.js +0 -11
  965. package/dist/es/f/fields/EditorInput/common/index.js +0 -7
  966. package/dist/es/f/fields/EditorInput/index.js +0 -2
  967. package/dist/es/f/fields/EditorInput/styles.scss +0 -240
  968. package/dist/es/f/fields/FileUpload/FileUpload.js +0 -237
  969. package/dist/es/f/fields/FileUpload/common/Preview/Preview.js +0 -125
  970. package/dist/es/f/fields/FileUpload/common/Preview/index.js +0 -2
  971. package/dist/es/f/fields/FileUpload/common/Preview/styles.scss +0 -96
  972. package/dist/es/f/fields/FileUpload/common/index.js +0 -2
  973. package/dist/es/f/fields/FileUpload/index.js +0 -3
  974. package/dist/es/f/fields/FileUpload/styles.scss +0 -73
  975. package/dist/es/f/fields/FileUpload/utils.js +0 -40
  976. package/dist/es/f/fields/LatexPreviewInput/LatexPreviewInput.js +0 -70
  977. package/dist/es/f/fields/LatexPreviewInput/convertLatexToHtml.js +0 -31
  978. package/dist/es/f/fields/LatexPreviewInput/index.js +0 -3
  979. package/dist/es/f/fields/LatexPreviewInput/styles.scss +0 -25
  980. package/dist/es/f/fields/LinkInput/LinkInput.js +0 -146
  981. package/dist/es/f/fields/LinkInput/index.js +0 -2
  982. package/dist/es/f/fields/LinkInput/styles.scss +0 -90
  983. package/dist/es/f/fields/QueryChoices/QueryChoices.js +0 -126
  984. package/dist/es/f/fields/QueryChoices/index.js +0 -2
  985. package/dist/es/f/fields/QueryCombobox/QueryCombobox.js +0 -229
  986. package/dist/es/f/fields/QueryCombobox/common/Combobox/Combobox.js +0 -231
  987. package/dist/es/f/fields/QueryCombobox/common/Combobox/index.js +0 -2
  988. package/dist/es/f/fields/QueryCombobox/common/Menu/Menu.js +0 -73
  989. package/dist/es/f/fields/QueryCombobox/common/Menu/index.js +0 -2
  990. package/dist/es/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +0 -324
  991. package/dist/es/f/fields/QueryCombobox/common/MultipleCombobox/index.js +0 -2
  992. package/dist/es/f/fields/QueryCombobox/common/index.js +0 -3
  993. package/dist/es/f/fields/QueryCombobox/index.js +0 -2
  994. package/dist/es/f/fields/QueryCombobox/styles.scss +0 -134
  995. package/dist/es/f/fields/QuerySelect/QuerySelect.js +0 -186
  996. package/dist/es/f/fields/QuerySelect/index.js +0 -2
  997. package/dist/es/f/fields/RatingsInput/RatingsInput.js +0 -121
  998. package/dist/es/f/fields/RatingsInput/common/Rating/Rating.js +0 -109
  999. package/dist/es/f/fields/RatingsInput/common/Rating/index.js +0 -2
  1000. package/dist/es/f/fields/RatingsInput/common/index.js +0 -1
  1001. package/dist/es/f/fields/RatingsInput/index.js +0 -2
  1002. package/dist/es/f/fields/RatingsInput/styles.scss +0 -48
  1003. package/dist/es/f/fields/SelectInput/SelectInput.js +0 -141
  1004. package/dist/es/f/fields/SelectInput/common/Menu/Menu.js +0 -73
  1005. package/dist/es/f/fields/SelectInput/common/Menu/index.js +0 -2
  1006. package/dist/es/f/fields/SelectInput/common/Multiple/Multiple.js +0 -233
  1007. package/dist/es/f/fields/SelectInput/common/Multiple/index.js +0 -2
  1008. package/dist/es/f/fields/SelectInput/common/Single/Single.js +0 -107
  1009. package/dist/es/f/fields/SelectInput/common/Single/index.js +0 -2
  1010. package/dist/es/f/fields/SelectInput/common/index.js +0 -3
  1011. package/dist/es/f/fields/SelectInput/index.js +0 -2
  1012. package/dist/es/f/fields/SelectInput/styles.scss +0 -191
  1013. package/dist/es/f/fields/TextInput/TextInput.js +0 -144
  1014. package/dist/es/f/fields/TextInput/index.js +0 -2
  1015. package/dist/es/f/fields/TextInput/styles.scss +0 -81
  1016. package/dist/es/f/fields/TextareaInput/TextareaInput.js +0 -145
  1017. package/dist/es/f/fields/TextareaInput/index.js +0 -2
  1018. package/dist/es/f/fields/TextareaInput/styles.scss +0 -53
  1019. package/dist/es/f/fields/ToggleInput/ToggleInput.js +0 -116
  1020. package/dist/es/f/fields/ToggleInput/index.js +0 -2
  1021. package/dist/es/f/fields/ToggleInput/styles.scss +0 -22
  1022. package/dist/es/f/fields/index.js +0 -14
  1023. package/dist/es/f/index.js +0 -3
  1024. package/dist/es/form-reset.scss +0 -86
  1025. package/dist/es/form.scss +0 -34
  1026. package/dist/es/g/DragAndDrop/DragAndDrop.js +0 -95
  1027. package/dist/es/g/DragAndDrop/common/DraggableItem/DraggableItem.js +0 -68
  1028. package/dist/es/g/DragAndDrop/common/DraggableItem/index.js +0 -2
  1029. package/dist/es/g/DragAndDrop/common/DraggableItem/styles.scss +0 -12
  1030. package/dist/es/g/DragAndDrop/common/index.js +0 -1
  1031. package/dist/es/g/DragAndDrop/index.js +0 -2
  1032. package/dist/es/g/DragAndDrop/styles.scss +0 -8
  1033. package/dist/es/g/ExpandableLexicalPreview/ExpandableLexicalPreview.js +0 -128
  1034. package/dist/es/g/ExpandableLexicalPreview/common/NewWindowPortal/NewWindowPortal.js +0 -70
  1035. package/dist/es/g/ExpandableLexicalPreview/common/NewWindowPortal/index.js +0 -2
  1036. package/dist/es/g/ExpandableLexicalPreview/common/NewWindowPortal/styles.scss +0 -9
  1037. package/dist/es/g/ExpandableLexicalPreview/common/index.js +0 -1
  1038. package/dist/es/g/ExpandableLexicalPreview/index.js +0 -2
  1039. package/dist/es/g/ExpandableLexicalPreview/styles.scss +0 -33
  1040. package/dist/es/g/FormBuilder/FormBuilder.js +0 -117
  1041. package/dist/es/g/FormBuilder/common/Builder/Builder.js +0 -178
  1042. package/dist/es/g/FormBuilder/common/Builder/common/ActionsContainer/ActionsContainer.js +0 -70
  1043. package/dist/es/g/FormBuilder/common/Builder/common/ActionsContainer/index.js +0 -2
  1044. package/dist/es/g/FormBuilder/common/Builder/common/ActionsContainer/styles.scss +0 -59
  1045. package/dist/es/g/FormBuilder/common/Builder/common/InputBuilder/InputBuilder.js +0 -241
  1046. package/dist/es/g/FormBuilder/common/Builder/common/InputBuilder/index.js +0 -2
  1047. package/dist/es/g/FormBuilder/common/Builder/common/InputBuilder/styles.scss +0 -169
  1048. package/dist/es/g/FormBuilder/common/Builder/common/Section/Section.js +0 -135
  1049. package/dist/es/g/FormBuilder/common/Builder/common/Section/index.js +0 -2
  1050. package/dist/es/g/FormBuilder/common/Builder/common/Section/styles.scss +0 -71
  1051. package/dist/es/g/FormBuilder/common/Builder/common/index.js +0 -3
  1052. package/dist/es/g/FormBuilder/common/Builder/index.js +0 -2
  1053. package/dist/es/g/FormBuilder/common/Builder/styles.scss +0 -63
  1054. package/dist/es/g/FormBuilder/common/Renderer/Renderer.js +0 -187
  1055. package/dist/es/g/FormBuilder/common/Renderer/common/Section/Section.js +0 -88
  1056. package/dist/es/g/FormBuilder/common/Renderer/common/Section/index.js +0 -2
  1057. package/dist/es/g/FormBuilder/common/Renderer/common/index.js +0 -1
  1058. package/dist/es/g/FormBuilder/common/Renderer/index.js +0 -2
  1059. package/dist/es/g/FormBuilder/common/Renderer/styles.scss +0 -30
  1060. package/dist/es/g/FormBuilder/common/index.js +0 -2
  1061. package/dist/es/g/FormBuilder/index.js +0 -2
  1062. package/dist/es/g/FormBuilder/styles.scss +0 -25
  1063. package/dist/es/g/index.js +0 -3
  1064. package/dist/es/index.js +0 -8
  1065. package/dist/es/test/QueryLoader/QueryLoader.js +0 -30
  1066. package/dist/es/test/QueryLoader/__generated__/QueryLoaderHelloQuery.graphql.js +0 -63
  1067. package/dist/es/test/QueryLoader/common/PreloadedTestData/PreloadedTestData.js +0 -30
  1068. package/dist/es/test/QueryLoader/common/PreloadedTestData/index.js +0 -2
  1069. package/dist/es/test/QueryLoader/common/index.js +0 -1
  1070. package/dist/es/test/QueryLoader/index.js +0 -2
  1071. package/dist/es/test/index.js +0 -1
  1072. package/dist/es/utils/applyCharacterLimit.js +0 -67
  1073. package/dist/es/utils/formatting.js +0 -117
  1074. package/dist/es/utils/hooks/index.js +0 -3
  1075. package/dist/es/utils/hooks/useDynamicPosition.js +0 -83
  1076. package/dist/es/utils/hooks/useOutsideClick.js +0 -19
  1077. package/dist/es/utils/hooks/useWindowSize.js +0 -22
  1078. package/dist/es/utils/index.js +0 -3
  1079. package/jest.config.js +0 -28
  1080. package/src/stories/Introduction.stories.mdx +0 -193
  1081. package/src/stories/StyleGuide/Sprites.stories.mdx +0 -25
  1082. package/src/stories/StyleGuide/ai-icons.stories.mdx +0 -27
  1083. package/src/stories/StyleGuide/colors.stories.mdx +0 -73
  1084. package/src/stories/StyleGuide/cssClasses.stories.mdx +0 -16
  1085. package/src/stories/StyleGuide/helpers.js +0 -64
  1086. package/src/stories/StyleGuide/icons.stories.mdx +0 -29
  1087. package/src/stories/StyleGuide/typography.stories.mdx +0 -55
  1088. package/src/stories/a/AppContext.stories.jsx +0 -44
  1089. package/src/stories/a/AreaChart.stories.jsx +0 -118
  1090. package/src/stories/a/BarChart.stories.jsx +0 -89
  1091. package/src/stories/a/BlurOverlay.stories.jsx +0 -39
  1092. package/src/stories/a/ContentTree.stories.jsx +0 -662
  1093. package/src/stories/a/Conversation.stories.jsx +0 -92
  1094. package/src/stories/a/DatePicker.stories.jsx +0 -96
  1095. package/src/stories/a/DotInfo.stories.jsx +0 -33
  1096. package/src/stories/a/Figure.stories.jsx +0 -26
  1097. package/src/stories/a/HamburgerButton.stories.jsx +0 -27
  1098. package/src/stories/a/IconList.stories.jsx +0 -51
  1099. package/src/stories/a/Label.stories.jsx +0 -49
  1100. package/src/stories/a/LoadingCircle.stories.jsx +0 -28
  1101. package/src/stories/a/MetaCard.stories.jsx +0 -35
  1102. package/src/stories/a/Notification.stories.jsx +0 -86
  1103. package/src/stories/a/NotificationStack.stories.jsx +0 -59
  1104. package/src/stories/a/People.stories.jsx +0 -92
  1105. package/src/stories/a/PieChart.stories.jsx +0 -53
  1106. package/src/stories/a/Popover.stories.jsx +0 -106
  1107. package/src/stories/a/ProgressBar.stories.jsx +0 -84
  1108. package/src/stories/a/Quote.stories.jsx +0 -49
  1109. package/src/stories/a/Removable.stories.jsx +0 -22
  1110. package/src/stories/a/SVG.stories.jsx +0 -97
  1111. package/src/stories/a/SnapScroller.stories.jsx +0 -98
  1112. package/src/stories/a/Spinner.stories.jsx +0 -25
  1113. package/src/stories/a/TextSteps.stories.jsx +0 -19
  1114. package/src/stories/a/Timestamp.stories.jsx +0 -98
  1115. package/src/stories/a/Tip.stories.jsx +0 -29
  1116. package/src/stories/a/ToggleSwitch.stories.jsx +0 -28
  1117. package/src/stories/a/Tooltip.stories.jsx +0 -75
  1118. package/src/stories/a/XMLEditor.stories.jsx +0 -26
  1119. package/src/stories/assets/code-brackets.svg +0 -1
  1120. package/src/stories/assets/colors.svg +0 -1
  1121. package/src/stories/assets/comments.svg +0 -1
  1122. package/src/stories/assets/direction.svg +0 -1
  1123. package/src/stories/assets/flow.svg +0 -1
  1124. package/src/stories/assets/plugin.svg +0 -1
  1125. package/src/stories/assets/repo.svg +0 -1
  1126. package/src/stories/assets/stackalt.svg +0 -1
  1127. package/src/stories/b/Button/Button.stories.jsx +0 -125
  1128. package/src/stories/b/Button/Group.stories.jsx +0 -35
  1129. package/src/stories/b/Card/Card.stories.jsx +0 -59
  1130. package/src/stories/b/Card/Group.stories.jsx +0 -59
  1131. package/src/stories/b/Logo.stories.jsx +0 -46
  1132. package/src/stories/b/Page.stories.jsx +0 -76
  1133. package/src/stories/b/SocialMediaButton.stories.jsx +0 -58
  1134. package/src/stories/b/ThemeSelector.stories.jsx +0 -49
  1135. package/src/stories/b/Title.stories.jsx +0 -47
  1136. package/src/stories/c/Modal.stories.jsx +0 -49
  1137. package/src/stories/c/Shortener.stories.jsx +0 -34
  1138. package/src/stories/c/SocialMediaShareButton.stories.jsx +0 -33
  1139. package/src/stories/colors.js +0 -74
  1140. package/src/stories/f/Checkbox.stories.jsx +0 -102
  1141. package/src/stories/f/ChoicesInput.stories.jsx +0 -139
  1142. package/src/stories/f/Description.stories.jsx +0 -40
  1143. package/src/stories/f/EditorInput.stories.jsx +0 -81
  1144. package/src/stories/f/FileUpload.stories.jsx +0 -68
  1145. package/src/stories/f/FormInput.stories.jsx +0 -451
  1146. package/src/stories/f/Label.stories.jsx +0 -27
  1147. package/src/stories/f/LinkInput.stories.jsx +0 -93
  1148. package/src/stories/f/QueryChoices.stories.jsx +0 -144
  1149. package/src/stories/f/QueryCombobox.stories.jsx +0 -323
  1150. package/src/stories/f/QuerySelect.stories.jsx +0 -150
  1151. package/src/stories/f/RatingsInput.stories.jsx +0 -77
  1152. package/src/stories/f/SelectInput.stories.jsx +0 -126
  1153. package/src/stories/f/TextInput.stories.jsx +0 -120
  1154. package/src/stories/f/TextareaInput.stories.jsx +0 -107
  1155. package/src/stories/f/__generated__/FormInputAllTaskStatusesQuery.graphql.js +0 -122
  1156. package/src/stories/f/__generated__/FormInputAllTeamsQuery.graphql.js +0 -139
  1157. package/src/stories/f/__generated__/QueryChoicesAllTaskStatusesQuery.graphql.js +0 -122
  1158. package/src/stories/f/__generated__/QueryComboboxAllTeamsQuery.graphql.js +0 -139
  1159. package/src/stories/f/__generated__/QuerySelectAllTaskStatusesQuery.graphql.js +0 -122
  1160. package/src/stories/g/DragAndDrop.stories.jsx +0 -114
  1161. package/src/stories/g/ExpandableLexicalPreview.stories.jsx +0 -37
  1162. package/src/stories/g/FormBuilder.stories.jsx +0 -114
  1163. package/src/stories/original/Button.jsx +0 -55
  1164. package/src/stories/original/Button.stories.js +0 -39
  1165. package/src/stories/original/Header.jsx +0 -64
  1166. package/src/stories/original/Header.stories.js +0 -22
  1167. package/src/stories/original/Introduction.mdx +0 -211
  1168. package/src/stories/original/Page.jsx +0 -76
  1169. package/src/stories/original/Page.stories.js +0 -26
  1170. package/src/stories/original/assets/code-brackets.svg +0 -1
  1171. package/src/stories/original/assets/colors.svg +0 -1
  1172. package/src/stories/original/assets/comments.svg +0 -1
  1173. package/src/stories/original/assets/direction.svg +0 -1
  1174. package/src/stories/original/assets/flow.svg +0 -1
  1175. package/src/stories/original/assets/plugin.svg +0 -1
  1176. package/src/stories/original/assets/repo.svg +0 -1
  1177. package/src/stories/original/assets/stackalt.svg +0 -1
  1178. package/src/stories/original/button.css +0 -30
  1179. package/src/stories/original/header.css +0 -32
  1180. package/src/stories/original/page.css +0 -69
  1181. package/src/stories/r/PrivateRoute.stories.jsx +0 -16
  1182. package/src/stories/r/SwitchRouteMap.stories.jsx +0 -14
  1183. package/src/stories/test/QueryLoader.stories.jsx +0 -36
  1184. package/src/stories/utils/Router.jsx +0 -20
  1185. package/src/stories/utils/generateNodeId.js +0 -12
  1186. package/src/stories/utils/lorem.js +0 -15
  1187. package/src/stories/utils/relay/EnvironmentProvider.jsx +0 -14
  1188. package/src/stories/utils/relay/environment.js +0 -5
  1189. package/src/stories/utils/relay/index.js +0 -4
  1190. package/src/stories/utils/relay/mockRelayOperation.js +0 -14
  1191. package/src/stories/utils/relay/mockResolvers.js +0 -299
  1192. package/src/stories/utils/testData.js +0 -63
  1193. package/src/ui/a/AnimatedBlobs/AnimatedBlobs.jsx +0 -96
  1194. package/src/ui/a/AnimatedBlobs/index.js +0 -1
  1195. package/src/ui/a/AnimatedBlobs/styles.scss +0 -87
  1196. package/src/ui/a/AnimatedGradient/AnimatedGradient.jsx +0 -70
  1197. package/src/ui/a/AnimatedGradient/index.js +0 -1
  1198. package/src/ui/a/AnimatedGradient/styles.scss +0 -15
  1199. package/src/ui/a/AnimatedGradient/webGIRenderer.js +0 -541
  1200. package/src/ui/a/AppContext/Context.js +0 -3
  1201. package/src/ui/a/AppContext/ContextProvider.jsx +0 -90
  1202. package/src/ui/a/AppContext/index.js +0 -5
  1203. package/src/ui/a/AppContext/useApp.js +0 -4
  1204. package/src/ui/a/AppContext/useTheme.js +0 -43
  1205. package/src/ui/a/BlurOverlay/BlurOverlay.jsx +0 -69
  1206. package/src/ui/a/BlurOverlay/index.js +0 -2
  1207. package/src/ui/a/BlurOverlay/styles.scss +0 -33
  1208. package/src/ui/a/Charts/AreaChart/AreaChart.jsx +0 -306
  1209. package/src/ui/a/Charts/AreaChart/index.js +0 -1
  1210. package/src/ui/a/Charts/AreaChart/styles.scss +0 -70
  1211. package/src/ui/a/Charts/BarChart/BarChart.jsx +0 -168
  1212. package/src/ui/a/Charts/BarChart/index.js +0 -1
  1213. package/src/ui/a/Charts/BarChart/styles.scss +0 -48
  1214. package/src/ui/a/Charts/Common/CustomLegend/CustomLegend.jsx +0 -132
  1215. package/src/ui/a/Charts/Common/CustomLegend/index.js +0 -1
  1216. package/src/ui/a/Charts/Common/CustomLegend/styles.scss +0 -75
  1217. package/src/ui/a/Charts/Common/CustomTooltipContent/CustomTooltipContent.jsx +0 -201
  1218. package/src/ui/a/Charts/Common/CustomTooltipContent/index.js +0 -1
  1219. package/src/ui/a/Charts/Common/CustomTooltipContent/styles.scss +0 -26
  1220. package/src/ui/a/Charts/Common/YLabelsDropDown/YlabelsDropDown.jsx +0 -121
  1221. package/src/ui/a/Charts/Common/YLabelsDropDown/index.js +0 -1
  1222. package/src/ui/a/Charts/Common/YLabelsDropDown/styles.scss +0 -89
  1223. package/src/ui/a/Charts/Common/index.js +0 -3
  1224. package/src/ui/a/Charts/PieChart/PieChart.jsx +0 -163
  1225. package/src/ui/a/Charts/PieChart/index.js +0 -1
  1226. package/src/ui/a/Charts/PieChart/styles.scss +0 -136
  1227. package/src/ui/a/Charts/index.js +0 -3
  1228. package/src/ui/a/ContentTree/ContentTree.jsx +0 -88
  1229. package/src/ui/a/ContentTree/common/Tree/Tree.jsx +0 -150
  1230. package/src/ui/a/ContentTree/common/Tree/index.js +0 -2
  1231. package/src/ui/a/ContentTree/common/index.js +0 -3
  1232. package/src/ui/a/ContentTree/common/useContentTree.js +0 -83
  1233. package/src/ui/a/ContentTree/common/useFirstVisibleNode.js +0 -59
  1234. package/src/ui/a/ContentTree/index.js +0 -2
  1235. package/src/ui/a/ContentTree/styles.scss +0 -56
  1236. package/src/ui/a/Conversation/Context.js +0 -3
  1237. package/src/ui/a/Conversation/Conversation.jsx +0 -105
  1238. package/src/ui/a/Conversation/common/Message/Message.jsx +0 -129
  1239. package/src/ui/a/Conversation/common/Message/index.js +0 -2
  1240. package/src/ui/a/Conversation/common/index.js +0 -1
  1241. package/src/ui/a/Conversation/index.js +0 -4
  1242. package/src/ui/a/Conversation/styles.scss +0 -86
  1243. package/src/ui/a/Conversation/useConversation.js +0 -4
  1244. package/src/ui/a/DatePicker/DatePicker.jsx +0 -201
  1245. package/src/ui/a/DatePicker/index.js +0 -2
  1246. package/src/ui/a/DatePicker/styles.scss +0 -380
  1247. package/src/ui/a/DotInfo/DotInfo.jsx +0 -101
  1248. package/src/ui/a/DotInfo/index.js +0 -2
  1249. package/src/ui/a/DotInfo/styles.scss +0 -20
  1250. package/src/ui/a/Figure/Figure.jsx +0 -82
  1251. package/src/ui/a/Figure/index.js +0 -2
  1252. package/src/ui/a/Figure/styles.scss +0 -19
  1253. package/src/ui/a/HamburgerButton/HamburgerButton.jsx +0 -97
  1254. package/src/ui/a/HamburgerButton/index.js +0 -2
  1255. package/src/ui/a/HamburgerButton/styles.scss +0 -183
  1256. package/src/ui/a/IconList/IconList.jsx +0 -89
  1257. package/src/ui/a/IconList/common/Item/Item.jsx +0 -81
  1258. package/src/ui/a/IconList/common/Item/index.js +0 -2
  1259. package/src/ui/a/IconList/common/index.js +0 -1
  1260. package/src/ui/a/IconList/index.js +0 -2
  1261. package/src/ui/a/IconList/styles.scss +0 -37
  1262. package/src/ui/a/Label/Label.jsx +0 -96
  1263. package/src/ui/a/Label/index.js +0 -2
  1264. package/src/ui/a/Label/styles.scss +0 -35
  1265. package/src/ui/a/LoadingCircle/LoadingCircle.jsx +0 -118
  1266. package/src/ui/a/LoadingCircle/index.js +0 -2
  1267. package/src/ui/a/LoadingCircle/styles.scss +0 -47
  1268. package/src/ui/a/MetaCard/MetaCard.jsx +0 -75
  1269. package/src/ui/a/MetaCard/index.js +0 -1
  1270. package/src/ui/a/MetaCard/styles.scss +0 -45
  1271. package/src/ui/a/Notification/Notification.jsx +0 -142
  1272. package/src/ui/a/Notification/index.js +0 -1
  1273. package/src/ui/a/Notification/styles.scss +0 -67
  1274. package/src/ui/a/NotificationStack/NotificationStack.jsx +0 -89
  1275. package/src/ui/a/NotificationStack/index.js +0 -1
  1276. package/src/ui/a/NotificationStack/styles.scss +0 -23
  1277. package/src/ui/a/People/People.jsx +0 -92
  1278. package/src/ui/a/People/common/Person/Person.jsx +0 -99
  1279. package/src/ui/a/People/common/Person/index.js +0 -2
  1280. package/src/ui/a/People/common/index.js +0 -1
  1281. package/src/ui/a/People/index.js +0 -2
  1282. package/src/ui/a/People/styles.scss +0 -60
  1283. package/src/ui/a/Popover/Popover.jsx +0 -155
  1284. package/src/ui/a/Popover/index.js +0 -2
  1285. package/src/ui/a/Popover/styles.scss +0 -34
  1286. package/src/ui/a/ProgressBar/ProgressBar.jsx +0 -95
  1287. package/src/ui/a/ProgressBar/index.js +0 -2
  1288. package/src/ui/a/ProgressBar/styles.scss +0 -47
  1289. package/src/ui/a/Quote/Quote.jsx +0 -97
  1290. package/src/ui/a/Quote/index.js +0 -2
  1291. package/src/ui/a/Quote/styles.scss +0 -35
  1292. package/src/ui/a/Removable/Removable.jsx +0 -78
  1293. package/src/ui/a/Removable/index.js +0 -2
  1294. package/src/ui/a/Removable/styles.scss +0 -33
  1295. package/src/ui/a/SVG/SVG.jsx +0 -183
  1296. package/src/ui/a/SVG/common/UseSVG/UseSVG.jsx +0 -74
  1297. package/src/ui/a/SVG/common/UseSVG/index.js +0 -2
  1298. package/src/ui/a/SVG/common/index.js +0 -1
  1299. package/src/ui/a/SVG/index.js +0 -2
  1300. package/src/ui/a/SVG/styles.scss +0 -57
  1301. package/src/ui/a/SnapScroller/SnapScroller.jsx +0 -105
  1302. package/src/ui/a/SnapScroller/index.js +0 -2
  1303. package/src/ui/a/SnapScroller/styles.scss +0 -77
  1304. package/src/ui/a/Spinner/Spinner.jsx +0 -69
  1305. package/src/ui/a/Spinner/index.js +0 -2
  1306. package/src/ui/a/Spinner/styles.scss +0 -23
  1307. package/src/ui/a/TextSteps/TextSteps.jsx +0 -80
  1308. package/src/ui/a/TextSteps/index.js +0 -1
  1309. package/src/ui/a/TextSteps/styles.scss +0 -29
  1310. package/src/ui/a/ThroughPutIndicator/ThroughPutIndicator.jsx +0 -90
  1311. package/src/ui/a/ThroughPutIndicator/index.js +0 -2
  1312. package/src/ui/a/ThroughPutIndicator/styles.scss +0 -35
  1313. package/src/ui/a/Timestamp/Timestamp.jsx +0 -166
  1314. package/src/ui/a/Timestamp/index.js +0 -2
  1315. package/src/ui/a/Timestamp/styles.scss +0 -7
  1316. package/src/ui/a/Tip/Tip.jsx +0 -99
  1317. package/src/ui/a/Tip/index.js +0 -2
  1318. package/src/ui/a/Tip/styles.scss +0 -16
  1319. package/src/ui/a/ToggleSwitch/ToggleSwitch.jsx +0 -99
  1320. package/src/ui/a/ToggleSwitch/index.js +0 -2
  1321. package/src/ui/a/ToggleSwitch/styles.scss +0 -58
  1322. package/src/ui/a/Tooltip/Tooltip.jsx +0 -135
  1323. package/src/ui/a/Tooltip/index.js +0 -2
  1324. package/src/ui/a/Tooltip/styles.scss +0 -89
  1325. package/src/ui/a/XMLEditor/XMLEditor.jsx +0 -202
  1326. package/src/ui/a/XMLEditor/common/index.js +0 -1
  1327. package/src/ui/a/XMLEditor/common/theme.jsx +0 -184
  1328. package/src/ui/a/XMLEditor/index.js +0 -1
  1329. package/src/ui/a/XMLEditor/styles.scss +0 -24
  1330. package/src/ui/a/index.js +0 -34
  1331. package/src/ui/b/Button/Button.jsx +0 -139
  1332. package/src/ui/b/Button/common/Group/Group.jsx +0 -65
  1333. package/src/ui/b/Button/common/Group/index.js +0 -1
  1334. package/src/ui/b/Button/common/Group/styles.scss +0 -11
  1335. package/src/ui/b/Button/common/index.js +0 -1
  1336. package/src/ui/b/Button/index.js +0 -2
  1337. package/src/ui/b/Button/styles.scss +0 -173
  1338. package/src/ui/b/Card/Card.jsx +0 -88
  1339. package/src/ui/b/Card/common/Group/Group.jsx +0 -88
  1340. package/src/ui/b/Card/common/Group/index.js +0 -1
  1341. package/src/ui/b/Card/common/Group/styles.scss +0 -35
  1342. package/src/ui/b/Card/common/Section/Section.jsx +0 -70
  1343. package/src/ui/b/Card/common/Section/index.js +0 -1
  1344. package/src/ui/b/Card/common/index.js +0 -2
  1345. package/src/ui/b/Card/index.js +0 -1
  1346. package/src/ui/b/Card/styles.scss +0 -57
  1347. package/src/ui/b/Logo/Logo.jsx +0 -150
  1348. package/src/ui/b/Logo/index.js +0 -2
  1349. package/src/ui/b/Logo/styles.scss +0 -11
  1350. package/src/ui/b/Page/Context.js +0 -3
  1351. package/src/ui/b/Page/Page.jsx +0 -127
  1352. package/src/ui/b/Page/common/PageHelmet/PageHelmet.jsx +0 -289
  1353. package/src/ui/b/Page/common/PageHelmet/index.js +0 -2
  1354. package/src/ui/b/Page/common/Section/Section.jsx +0 -83
  1355. package/src/ui/b/Page/common/Section/index.js +0 -2
  1356. package/src/ui/b/Page/common/index.js +0 -2
  1357. package/src/ui/b/Page/index.js +0 -4
  1358. package/src/ui/b/Page/styles.scss +0 -38
  1359. package/src/ui/b/Page/usePage.js +0 -4
  1360. package/src/ui/b/SocialMediaButton/SocialMediaButton.jsx +0 -136
  1361. package/src/ui/b/SocialMediaButton/index.js +0 -2
  1362. package/src/ui/b/SocialMediaButton/styles.scss +0 -35
  1363. package/src/ui/b/ThemeSelector/ThemeSelector.jsx +0 -85
  1364. package/src/ui/b/ThemeSelector/index.js +0 -2
  1365. package/src/ui/b/ThemeSelector/styles.scss +0 -52
  1366. package/src/ui/b/Title/Title.jsx +0 -149
  1367. package/src/ui/b/Title/index.js +0 -2
  1368. package/src/ui/b/index.js +0 -7
  1369. package/src/ui/c/Modal/Modal.jsx +0 -95
  1370. package/src/ui/c/Modal/common/ModalHeader/ModalHeader.jsx +0 -89
  1371. package/src/ui/c/Modal/common/ModalHeader/index.js +0 -1
  1372. package/src/ui/c/Modal/common/index.js +0 -1
  1373. package/src/ui/c/Modal/index.js +0 -2
  1374. package/src/ui/c/Modal/styles.scss +0 -44
  1375. package/src/ui/c/Shortener/Shortener.jsx +0 -140
  1376. package/src/ui/c/Shortener/index.js +0 -2
  1377. package/src/ui/c/Shortener/styles.scss +0 -7
  1378. package/src/ui/c/SocialMediaShareButton/SocialMediaShareButton.jsx +0 -117
  1379. package/src/ui/c/SocialMediaShareButton/index.js +0 -2
  1380. package/src/ui/c/SocialMediaShareButton/styles.scss +0 -39
  1381. package/src/ui/c/index.js +0 -3
  1382. package/src/ui/d/index.js +0 -1
  1383. package/src/ui/f/FormInput/FormInput.jsx +0 -249
  1384. package/src/ui/f/FormInput/index.js +0 -2
  1385. package/src/ui/f/FormInput/styles.scss +0 -11
  1386. package/src/ui/f/common/Debugger/Debugger.jsx +0 -83
  1387. package/src/ui/f/common/Debugger/index.js +0 -2
  1388. package/src/ui/f/common/Debugger/styles.scss +0 -12
  1389. package/src/ui/f/common/Description/Description.jsx +0 -90
  1390. package/src/ui/f/common/Description/index.js +0 -2
  1391. package/src/ui/f/common/Description/styles.scss +0 -9
  1392. package/src/ui/f/common/Label/Label.jsx +0 -94
  1393. package/src/ui/f/common/Label/index.js +0 -2
  1394. package/src/ui/f/common/Label/styles.scss +0 -9
  1395. package/src/ui/f/common/index.js +0 -4
  1396. package/src/ui/f/common/utils/index.js +0 -2
  1397. package/src/ui/f/common/utils/lookUpInputValueFromFetchedOptions.js +0 -23
  1398. package/src/ui/f/common/utils/validators.js +0 -10
  1399. package/src/ui/f/fields/Checkbox/Checkbox.jsx +0 -141
  1400. package/src/ui/f/fields/Checkbox/index.js +0 -2
  1401. package/src/ui/f/fields/Checkbox/styles.scss +0 -16
  1402. package/src/ui/f/fields/ChoicesInput/ChoicesInput.jsx +0 -178
  1403. package/src/ui/f/fields/ChoicesInput/common/Choice/Choice.jsx +0 -127
  1404. package/src/ui/f/fields/ChoicesInput/common/Choice/index.js +0 -2
  1405. package/src/ui/f/fields/ChoicesInput/common/index.js +0 -1
  1406. package/src/ui/f/fields/ChoicesInput/index.js +0 -2
  1407. package/src/ui/f/fields/ChoicesInput/styles.scss +0 -79
  1408. package/src/ui/f/fields/EditorInput/EditorInput.jsx +0 -295
  1409. package/src/ui/f/fields/EditorInput/common/BlockFormatDropDown/BlockFormatDropDown.jsx +0 -292
  1410. package/src/ui/f/fields/EditorInput/common/BlockFormatDropDown/index.js +0 -2
  1411. package/src/ui/f/fields/EditorInput/common/BlockFormatDropDown/styles.scss +0 -55
  1412. package/src/ui/f/fields/EditorInput/common/ColorPicker/ColorPicker.jsx +0 -115
  1413. package/src/ui/f/fields/EditorInput/common/ColorPicker/index.js +0 -2
  1414. package/src/ui/f/fields/EditorInput/common/ColorPicker/styles.scss +0 -36
  1415. package/src/ui/f/fields/EditorInput/common/ExposePlainTextPlugin.jsx +0 -50
  1416. package/src/ui/f/fields/EditorInput/common/FontSizeDropDown/FontSizeDropDown.jsx +0 -134
  1417. package/src/ui/f/fields/EditorInput/common/FontSizeDropDown/index.js +0 -2
  1418. package/src/ui/f/fields/EditorInput/common/FontSizeDropDown/styles.scss +0 -55
  1419. package/src/ui/f/fields/EditorInput/common/StopPropagationPlugin.jsx +0 -25
  1420. package/src/ui/f/fields/EditorInput/common/ToolbarPlugin/ToolbarPlugin.jsx +0 -417
  1421. package/src/ui/f/fields/EditorInput/common/ToolbarPlugin/index.js +0 -2
  1422. package/src/ui/f/fields/EditorInput/common/ToolbarPlugin/styles.scss +0 -56
  1423. package/src/ui/f/fields/EditorInput/common/TreeViewPlugin.jsx +0 -16
  1424. package/src/ui/f/fields/EditorInput/common/index.js +0 -7
  1425. package/src/ui/f/fields/EditorInput/index.js +0 -2
  1426. package/src/ui/f/fields/EditorInput/styles.scss +0 -240
  1427. package/src/ui/f/fields/FileUpload/FileUpload.jsx +0 -300
  1428. package/src/ui/f/fields/FileUpload/common/Preview/Preview.jsx +0 -198
  1429. package/src/ui/f/fields/FileUpload/common/Preview/index.js +0 -2
  1430. package/src/ui/f/fields/FileUpload/common/Preview/styles.scss +0 -96
  1431. package/src/ui/f/fields/FileUpload/common/index.js +0 -2
  1432. package/src/ui/f/fields/FileUpload/index.js +0 -3
  1433. package/src/ui/f/fields/FileUpload/styles.scss +0 -73
  1434. package/src/ui/f/fields/FileUpload/utils.js +0 -52
  1435. package/src/ui/f/fields/LatexPreviewInput/LatexPreviewInput.jsx +0 -92
  1436. package/src/ui/f/fields/LatexPreviewInput/convertLatexToHtml.jsx +0 -38
  1437. package/src/ui/f/fields/LatexPreviewInput/index.js +0 -3
  1438. package/src/ui/f/fields/LatexPreviewInput/styles.scss +0 -25
  1439. package/src/ui/f/fields/LinkInput/LinkInput.jsx +0 -185
  1440. package/src/ui/f/fields/LinkInput/index.js +0 -2
  1441. package/src/ui/f/fields/LinkInput/styles.scss +0 -90
  1442. package/src/ui/f/fields/QueryChoices/QueryChoices.jsx +0 -153
  1443. package/src/ui/f/fields/QueryChoices/index.js +0 -2
  1444. package/src/ui/f/fields/QueryCombobox/QueryCombobox.jsx +0 -264
  1445. package/src/ui/f/fields/QueryCombobox/common/Combobox/Combobox.jsx +0 -278
  1446. package/src/ui/f/fields/QueryCombobox/common/Combobox/index.js +0 -2
  1447. package/src/ui/f/fields/QueryCombobox/common/Menu/Menu.jsx +0 -103
  1448. package/src/ui/f/fields/QueryCombobox/common/Menu/index.js +0 -2
  1449. package/src/ui/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.jsx +0 -402
  1450. package/src/ui/f/fields/QueryCombobox/common/MultipleCombobox/index.js +0 -2
  1451. package/src/ui/f/fields/QueryCombobox/common/index.js +0 -3
  1452. package/src/ui/f/fields/QueryCombobox/index.js +0 -2
  1453. package/src/ui/f/fields/QueryCombobox/styles.scss +0 -134
  1454. package/src/ui/f/fields/QuerySelect/QuerySelect.jsx +0 -220
  1455. package/src/ui/f/fields/QuerySelect/index.js +0 -2
  1456. package/src/ui/f/fields/RatingsInput/RatingsInput.jsx +0 -149
  1457. package/src/ui/f/fields/RatingsInput/common/Rating/Rating.jsx +0 -142
  1458. package/src/ui/f/fields/RatingsInput/common/Rating/index.js +0 -2
  1459. package/src/ui/f/fields/RatingsInput/common/index.js +0 -1
  1460. package/src/ui/f/fields/RatingsInput/index.js +0 -2
  1461. package/src/ui/f/fields/RatingsInput/styles.scss +0 -48
  1462. package/src/ui/f/fields/SelectInput/SelectInput.jsx +0 -183
  1463. package/src/ui/f/fields/SelectInput/common/Menu/Menu.jsx +0 -104
  1464. package/src/ui/f/fields/SelectInput/common/Menu/index.js +0 -2
  1465. package/src/ui/f/fields/SelectInput/common/Multiple/Multiple.jsx +0 -288
  1466. package/src/ui/f/fields/SelectInput/common/Multiple/index.js +0 -2
  1467. package/src/ui/f/fields/SelectInput/common/Single/Single.jsx +0 -140
  1468. package/src/ui/f/fields/SelectInput/common/Single/index.js +0 -2
  1469. package/src/ui/f/fields/SelectInput/common/index.js +0 -3
  1470. package/src/ui/f/fields/SelectInput/index.js +0 -2
  1471. package/src/ui/f/fields/SelectInput/styles.scss +0 -191
  1472. package/src/ui/f/fields/TextInput/TextInput.jsx +0 -191
  1473. package/src/ui/f/fields/TextInput/index.js +0 -2
  1474. package/src/ui/f/fields/TextInput/styles.scss +0 -81
  1475. package/src/ui/f/fields/TextareaInput/TextareaInput.jsx +0 -180
  1476. package/src/ui/f/fields/TextareaInput/index.js +0 -2
  1477. package/src/ui/f/fields/TextareaInput/styles.scss +0 -53
  1478. package/src/ui/f/fields/ToggleInput/ToggleInput.jsx +0 -140
  1479. package/src/ui/f/fields/ToggleInput/index.js +0 -2
  1480. package/src/ui/f/fields/ToggleInput/styles.scss +0 -22
  1481. package/src/ui/f/fields/index.js +0 -22
  1482. package/src/ui/f/index.js +0 -3
  1483. package/src/ui/form-reset.scss +0 -86
  1484. package/src/ui/form.scss +0 -34
  1485. package/src/ui/g/DragAndDrop/DragAndDrop.jsx +0 -125
  1486. package/src/ui/g/DragAndDrop/common/DraggableItem/DraggableItem.jsx +0 -93
  1487. package/src/ui/g/DragAndDrop/common/DraggableItem/index.js +0 -2
  1488. package/src/ui/g/DragAndDrop/common/DraggableItem/styles.scss +0 -12
  1489. package/src/ui/g/DragAndDrop/common/index.js +0 -1
  1490. package/src/ui/g/DragAndDrop/index.js +0 -2
  1491. package/src/ui/g/DragAndDrop/styles.scss +0 -8
  1492. package/src/ui/g/ExpandableLexicalPreview/ExpandableLexicalPreview.jsx +0 -180
  1493. package/src/ui/g/ExpandableLexicalPreview/common/NewWindowPortal/NewWindowPortal.jsx +0 -80
  1494. package/src/ui/g/ExpandableLexicalPreview/common/NewWindowPortal/index.js +0 -2
  1495. package/src/ui/g/ExpandableLexicalPreview/common/NewWindowPortal/styles.scss +0 -9
  1496. package/src/ui/g/ExpandableLexicalPreview/common/index.js +0 -1
  1497. package/src/ui/g/ExpandableLexicalPreview/index.js +0 -2
  1498. package/src/ui/g/ExpandableLexicalPreview/styles.scss +0 -33
  1499. package/src/ui/g/FormBuilder/FormBuilder.jsx +0 -157
  1500. package/src/ui/g/FormBuilder/common/Builder/Builder.jsx +0 -213
  1501. package/src/ui/g/FormBuilder/common/Builder/common/ActionsContainer/ActionsContainer.jsx +0 -97
  1502. package/src/ui/g/FormBuilder/common/Builder/common/ActionsContainer/index.js +0 -2
  1503. package/src/ui/g/FormBuilder/common/Builder/common/ActionsContainer/styles.scss +0 -59
  1504. package/src/ui/g/FormBuilder/common/Builder/common/InputBuilder/InputBuilder.jsx +0 -321
  1505. package/src/ui/g/FormBuilder/common/Builder/common/InputBuilder/index.js +0 -2
  1506. package/src/ui/g/FormBuilder/common/Builder/common/InputBuilder/styles.scss +0 -169
  1507. package/src/ui/g/FormBuilder/common/Builder/common/Section/Section.jsx +0 -186
  1508. package/src/ui/g/FormBuilder/common/Builder/common/Section/index.js +0 -2
  1509. package/src/ui/g/FormBuilder/common/Builder/common/Section/styles.scss +0 -71
  1510. package/src/ui/g/FormBuilder/common/Builder/common/index.js +0 -3
  1511. package/src/ui/g/FormBuilder/common/Builder/index.js +0 -2
  1512. package/src/ui/g/FormBuilder/common/Builder/styles.scss +0 -63
  1513. package/src/ui/g/FormBuilder/common/Renderer/Renderer.jsx +0 -240
  1514. package/src/ui/g/FormBuilder/common/Renderer/common/Section/Section.jsx +0 -114
  1515. package/src/ui/g/FormBuilder/common/Renderer/common/Section/index.js +0 -2
  1516. package/src/ui/g/FormBuilder/common/Renderer/common/index.js +0 -1
  1517. package/src/ui/g/FormBuilder/common/Renderer/index.js +0 -2
  1518. package/src/ui/g/FormBuilder/common/Renderer/styles.scss +0 -30
  1519. package/src/ui/g/FormBuilder/common/index.js +0 -2
  1520. package/src/ui/g/FormBuilder/index.js +0 -2
  1521. package/src/ui/g/FormBuilder/styles.scss +0 -25
  1522. package/src/ui/g/index.js +0 -3
  1523. package/src/ui/index.js +0 -8
  1524. package/src/ui/test/QueryLoader/QueryLoader.jsx +0 -41
  1525. package/src/ui/test/QueryLoader/__generated__/QueryLoaderHelloQuery.graphql.js +0 -68
  1526. package/src/ui/test/QueryLoader/common/PreloadedTestData/PreloadedTestData.jsx +0 -51
  1527. package/src/ui/test/QueryLoader/common/PreloadedTestData/index.js +0 -2
  1528. package/src/ui/test/QueryLoader/common/index.js +0 -1
  1529. package/src/ui/test/QueryLoader/index.js +0 -2
  1530. package/src/ui/test/index.js +0 -1
  1531. package/src/ui/utils/applyCharacterLimit.js +0 -80
  1532. package/src/ui/utils/formatting.js +0 -142
  1533. package/src/ui/utils/hooks/index.js +0 -3
  1534. package/src/ui/utils/hooks/useDynamicPosition.js +0 -104
  1535. package/src/ui/utils/hooks/useOutsideClick.js +0 -23
  1536. package/src/ui/utils/hooks/useWindowSize.js +0 -32
  1537. package/src/ui/utils/index.js +0 -5
  1538. package/stylelint.config.js +0 -3
  1539. package/tests/Storyshots.test.js +0 -3
  1540. package/tests/__snapshots__/Storyshots.test.js.snap +0 -36169
  1541. package/tests/emptyMock.js +0 -3
  1542. package/tests/global-setup.js +0 -3
  1543. package/tests/mockResizeObserver.js +0 -9
  1544. package/tests/mockTextEncoder.js +0 -7
  1545. package/tests/staticStub.js +0 -1
  1546. package/tests/test-setup.js +0 -25
@@ -0,0 +1,2412 @@
1
+ import { jsx as rt } from "react/jsx-runtime";
2
+ import Xe from "react";
3
+ import { L as it } from "./LexicalComposerContext-D_q7RDyF.js";
4
+ import { r as le } from "./Lexical-BIl3XjnU.js";
5
+ var Q = {}, te = {}, Ae;
6
+ function lt() {
7
+ if (Ae) return te;
8
+ Ae = 1;
9
+ var f = le();
10
+ const k = /* @__PURE__ */ new Map();
11
+ function W(h) {
12
+ let T = h;
13
+ for (; T != null; ) {
14
+ if (T.nodeType === Node.TEXT_NODE)
15
+ return T;
16
+ T = T.firstChild;
17
+ }
18
+ return null;
19
+ }
20
+ function q(h) {
21
+ const T = h.parentNode;
22
+ if (T == null)
23
+ throw new Error("Should never happen");
24
+ return [T, Array.from(T.childNodes).indexOf(h)];
25
+ }
26
+ function j(h, T, o, m, L) {
27
+ const R = T.getKey(), w = m.getKey(), O = document.createRange();
28
+ let v = h.getElementByKey(R), C = h.getElementByKey(w), A = o, F = L;
29
+ if (f.$isTextNode(T) && (v = W(v)), f.$isTextNode(m) && (C = W(C)), T === void 0 || m === void 0 || v === null || C === null)
30
+ return null;
31
+ v.nodeName === "BR" && ([v, A] = q(v)), C.nodeName === "BR" && ([C, F] = q(C));
32
+ const K = v.firstChild;
33
+ v === C && K != null && K.nodeName === "BR" && A === 0 && F === 0 && (F = 1);
34
+ try {
35
+ O.setStart(v, A), O.setEnd(C, F);
36
+ } catch {
37
+ return null;
38
+ }
39
+ return O.collapsed && (A !== F || R !== w) && (O.setStart(C, F), O.setEnd(v, A)), O;
40
+ }
41
+ function l(h, T) {
42
+ const o = h.getRootElement();
43
+ if (o === null)
44
+ return [];
45
+ const m = o.getBoundingClientRect(), L = getComputedStyle(o), R = parseFloat(L.paddingLeft) + parseFloat(L.paddingRight), w = Array.from(T.getClientRects());
46
+ let O = w.length;
47
+ w.sort((C, A) => {
48
+ const F = C.top - A.top;
49
+ return Math.abs(F) <= 3 ? C.left - A.left : F;
50
+ });
51
+ let v;
52
+ for (let C = 0; C < O; C++) {
53
+ const A = w[C], F = v && v.top <= A.top && v.top + v.height > A.top && v.left + v.width > A.left, K = A.width + R === m.width;
54
+ if (F || K) {
55
+ w.splice(C--, 1), O--;
56
+ continue;
57
+ }
58
+ v = A;
59
+ }
60
+ return w;
61
+ }
62
+ function a(h) {
63
+ const T = {}, o = h.split(";");
64
+ for (const m of o)
65
+ if (m !== "") {
66
+ const [L, R] = m.split(/:([^]+)/);
67
+ T[L.trim()] = R.trim();
68
+ }
69
+ return T;
70
+ }
71
+ function g(h) {
72
+ let T = k.get(h);
73
+ return T === void 0 && (T = a(h), k.set(h, T)), Object.freeze(T), T;
74
+ }
75
+ function y(h) {
76
+ let T = "";
77
+ for (const o in h)
78
+ o && (T += `${o}: ${h[o]};`);
79
+ return T;
80
+ }
81
+ function _(h, T) {
82
+ return h.__first = T.__first, h.__last = T.__last, h.__size = T.__size, h.__format = T.__format, h.__indent = T.__indent, h.__dir = T.__dir, h;
83
+ }
84
+ function $(h, T) {
85
+ return h.__format = T.__format, h.__style = T.__style, h.__mode = T.__mode, h.__detail = T.__detail, h;
86
+ }
87
+ function x(h) {
88
+ const o = h.constructor.clone(h);
89
+ return o.__parent = h.__parent, o.__next = h.__next, o.__prev = h.__prev, f.$isElementNode(h) && f.$isElementNode(o) ? _(o, h) : f.$isTextNode(h) && f.$isTextNode(o) ? $(o, h) : o;
90
+ }
91
+ function u(h, T) {
92
+ if (T.isSelected() && !T.isSegmented() && !T.isToken() && (f.$isRangeSelection(h) || f.DEPRECATED_$isGridSelection(h))) {
93
+ const o = h.anchor.getNode(), m = h.focus.getNode(), L = T.is(o), R = T.is(m);
94
+ if (L || R) {
95
+ const w = h.isBackward(), [O, v] = h.getCharacterOffsets(), C = o.is(m), A = T.is(w ? m : o), F = T.is(w ? o : m);
96
+ let K = 0, B;
97
+ if (C)
98
+ K = O > v ? v : O, B = O > v ? O : v;
99
+ else if (A)
100
+ K = w ? v : O, B = void 0;
101
+ else if (F) {
102
+ const b = w ? O : v;
103
+ K = 0, B = b;
104
+ }
105
+ return T.__text = T.__text.slice(K, B), T;
106
+ }
107
+ }
108
+ return T;
109
+ }
110
+ function e(h) {
111
+ return h.type === "text" ? h.offset === h.getNode().getTextContentSize() : h.offset === h.getNode().getChildrenSize();
112
+ }
113
+ function n(h, T, o) {
114
+ let m = T.getNode(), L = o;
115
+ if (f.$isElementNode(m)) {
116
+ const R = m.getDescendantByIndex(T.offset);
117
+ R !== null && (m = R);
118
+ }
119
+ for (; L > 0 && m !== null; ) {
120
+ let R = m.getPreviousSibling(), w = 0;
121
+ if (R === null) {
122
+ let C = m.getParentOrThrow(), A = C.getPreviousSibling();
123
+ for (; A === null; ) {
124
+ if (C = C.getParent(), C === null) {
125
+ R = null;
126
+ break;
127
+ }
128
+ A = C.getPreviousSibling();
129
+ }
130
+ C !== null && (w = C.isInline() ? 0 : 2, f.$isElementNode(A) ? R = A.getLastDescendant() : R = A);
131
+ }
132
+ let O = m.getTextContent();
133
+ O === "" && f.$isElementNode(m) && !m.isInline() && (O = `
134
+
135
+ `);
136
+ const v = O.length;
137
+ if (!f.$isTextNode(m) || L >= v) {
138
+ const C = m.getParent();
139
+ m.remove(), C != null && C.getChildrenSize() === 0 && !f.$isRootNode(C) && C.remove(), L -= v + w, m = R;
140
+ } else {
141
+ const C = m.getKey(), A = h.getEditorState().read(() => {
142
+ const B = f.$getNodeByKey(C);
143
+ return f.$isTextNode(B) && B.isSimpleText() ? B.getTextContent() : null;
144
+ }), F = v - L, K = O.slice(0, F);
145
+ if (A !== null && A !== O) {
146
+ const B = f.$getPreviousSelection();
147
+ let b = m;
148
+ if (m.isSimpleText())
149
+ m.setTextContent(A);
150
+ else {
151
+ const M = f.$createTextNode(A);
152
+ m.replace(M), b = M;
153
+ }
154
+ if (f.$isRangeSelection(B) && B.isCollapsed()) {
155
+ const M = B.anchor.offset;
156
+ b.select(M, M);
157
+ }
158
+ } else if (m.isSimpleText()) {
159
+ const B = T.key === C;
160
+ let b = T.offset;
161
+ b < L && (b = v);
162
+ const M = B ? b - L : 0, G = B ? b : F;
163
+ if (B && M === 0) {
164
+ const [Y] = m.splitText(M, G);
165
+ Y.remove();
166
+ } else {
167
+ const [, Y] = m.splitText(M, G);
168
+ Y.remove();
169
+ }
170
+ } else {
171
+ const B = f.$createTextNode(K);
172
+ m.replace(B);
173
+ }
174
+ L = 0;
175
+ }
176
+ }
177
+ }
178
+ function t(h) {
179
+ const T = h.getStyle(), o = a(T);
180
+ k.set(T, o);
181
+ }
182
+ function r(h, T) {
183
+ const o = g("getStyle" in h ? h.getStyle() : h.style), m = Object.entries(T).reduce((R, [w, O]) => (O === null ? delete R[w] : R[w] = O, R), {
184
+ ...o
185
+ }), L = y(m);
186
+ h.setStyle(L), k.set(L, m);
187
+ }
188
+ function s(h, T) {
189
+ const o = h.getNodes(), m = o.length;
190
+ if (f.DEPRECATED_$isGridSelection(h)) {
191
+ const H = f.$createRangeSelection(), J = H.anchor, re = H.focus;
192
+ for (let ie = 0; ie < m; ie++) {
193
+ const fe = o[ie];
194
+ f.DEPRECATED_$isGridCellNode(fe) && (J.set(fe.getKey(), 0, "element"), re.set(fe.getKey(), fe.getChildrenSize(), "element"), s(f.$normalizeSelection__EXPERIMENTAL(H), T));
195
+ }
196
+ f.$setSelection(h);
197
+ return;
198
+ }
199
+ const L = m - 1;
200
+ let R = o[0], w = o[L];
201
+ if (h.isCollapsed()) {
202
+ r(h, T);
203
+ return;
204
+ }
205
+ const O = h.anchor, v = h.focus, A = R.getTextContent().length, F = v.offset;
206
+ let K = O.offset;
207
+ const B = O.isBefore(v);
208
+ let b = B ? K : F, M = B ? F : K;
209
+ const G = B ? O.type : v.type, Y = B ? v.type : O.type, ee = B ? v.key : O.key;
210
+ if (f.$isTextNode(R) && b === A) {
211
+ const H = R.getNextSibling();
212
+ f.$isTextNode(H) && (K = 0, b = 0, R = H);
213
+ }
214
+ if (o.length === 1) {
215
+ if (f.$isTextNode(R)) {
216
+ if (b = G === "element" ? 0 : K > F ? F : K, M = Y === "element" ? A : K > F ? K : F, b === M)
217
+ return;
218
+ if (b === 0 && M === A)
219
+ r(R, T), R.select(b, M);
220
+ else {
221
+ const H = R.splitText(b, M), J = b === 0 ? H[0] : H[1];
222
+ r(J, T), J.select(0, M - b);
223
+ }
224
+ }
225
+ } else {
226
+ if (f.$isTextNode(R) && b < R.getTextContentSize() && (b !== 0 && (R = R.splitText(b)[1], b = 0), r(R, T)), f.$isTextNode(w)) {
227
+ const J = w.getTextContent().length;
228
+ w.__key !== ee && M !== 0 && (M = J), M !== J && ([w] = w.splitText(M)), M !== 0 && r(w, T);
229
+ }
230
+ for (let H = 1; H < L; H++) {
231
+ const J = o[H], re = J.getKey();
232
+ f.$isTextNode(J) && re !== R.getKey() && re !== w.getKey() && !J.isToken() && r(J, T);
233
+ }
234
+ }
235
+ }
236
+ function p(h, T) {
237
+ if (h.anchor.key === "root") {
238
+ const L = T(), R = f.$getRoot(), w = R.getFirstChild();
239
+ w ? w.replace(L, !0) : R.append(L);
240
+ return;
241
+ }
242
+ const o = h.getNodes();
243
+ let m = h.anchor.getNode().getParentOrThrow();
244
+ o.indexOf(m) === -1 && o.push(m), m.isInline() && (m = m.getParentOrThrow(), o.indexOf(m) === -1 && o.push(m));
245
+ for (let L = 0; L < o.length; L++) {
246
+ const R = o[L];
247
+ if (!c(R))
248
+ continue;
249
+ const w = T();
250
+ w.setFormat(R.getFormatType()), w.setIndent(R.getIndent()), R.replace(w, !0);
251
+ }
252
+ }
253
+ function c(h) {
254
+ if (!f.$isElementNode(h) || f.$isRootOrShadowRoot(h))
255
+ return !1;
256
+ const T = h.getFirstChild(), o = T === null || f.$isLineBreakNode(T) || f.$isTextNode(T) || T.isInline();
257
+ return !h.isInline() && h.canBeEmpty() !== !1 && o;
258
+ }
259
+ function i(h) {
260
+ return h.getNode().isAttached();
261
+ }
262
+ function N(h) {
263
+ let T = h;
264
+ for (; T !== null && !f.$isRootOrShadowRoot(T); ) {
265
+ const o = T.getLatest(), m = T.getParent();
266
+ o.getChildrenSize() === 0 && T.remove(!0), T = m;
267
+ }
268
+ }
269
+ function d(h, T, o = null) {
270
+ const m = h.getNodes(), L = m.length, R = h.anchor;
271
+ if (L === 0 || L === 1 && R.type === "element" && R.getNode().getChildrenSize() === 0) {
272
+ const v = R.type === "text" ? R.getNode().getParentOrThrow() : R.getNode(), C = v.getChildren();
273
+ let A = T();
274
+ A.setFormat(v.getFormatType()), A.setIndent(v.getIndent()), C.forEach((F) => A.append(F)), o && (A = o.append(A)), v.replace(A);
275
+ return;
276
+ }
277
+ let w = null, O = [];
278
+ for (let v = 0; v < L; v++) {
279
+ const C = m[v];
280
+ f.$isRootOrShadowRoot(C) ? (E(h, O, O.length, T, o), O = [], w = C) : w === null || w !== null && f.$hasAncestor(C, w) ? O.push(C) : (E(h, O, O.length, T, o), O = [C]);
281
+ }
282
+ E(h, O, O.length, T, o);
283
+ }
284
+ function E(h, T, o, m, L = null) {
285
+ if (T.length === 0)
286
+ return;
287
+ const R = T[0], w = /* @__PURE__ */ new Map(), O = [];
288
+ let v = f.$isElementNode(R) ? R : R.getParentOrThrow();
289
+ v.isInline() && (v = v.getParentOrThrow());
290
+ let C = !1;
291
+ for (; v !== null; ) {
292
+ const b = v.getPreviousSibling();
293
+ if (b !== null) {
294
+ v = b, C = !0;
295
+ break;
296
+ }
297
+ if (v = v.getParentOrThrow(), f.$isRootOrShadowRoot(v))
298
+ break;
299
+ }
300
+ const A = /* @__PURE__ */ new Set();
301
+ for (let b = 0; b < o; b++) {
302
+ const M = T[b];
303
+ f.$isElementNode(M) && M.getChildrenSize() === 0 && A.add(M.getKey());
304
+ }
305
+ const F = /* @__PURE__ */ new Set();
306
+ for (let b = 0; b < o; b++) {
307
+ const M = T[b];
308
+ let G = M.getParent();
309
+ if (G !== null && G.isInline() && (G = G.getParent()), G !== null && f.$isLeafNode(M) && !F.has(M.getKey())) {
310
+ const Y = G.getKey();
311
+ if (w.get(Y) === void 0) {
312
+ const ee = m();
313
+ ee.setFormat(G.getFormatType()), ee.setIndent(G.getIndent()), O.push(ee), w.set(Y, ee), G.getChildren().forEach((H) => {
314
+ ee.append(H), F.add(H.getKey()), f.$isElementNode(H) && H.getChildrenKeys().forEach((J) => F.add(J));
315
+ }), N(G);
316
+ }
317
+ } else if (A.has(M.getKey())) {
318
+ const Y = m();
319
+ Y.setFormat(M.getFormatType()), Y.setIndent(M.getIndent()), O.push(Y), M.remove(!0);
320
+ }
321
+ }
322
+ if (L !== null)
323
+ for (let b = 0; b < O.length; b++) {
324
+ const M = O[b];
325
+ L.append(M);
326
+ }
327
+ let K = null;
328
+ if (f.$isRootOrShadowRoot(v))
329
+ if (C)
330
+ if (L !== null)
331
+ v.insertAfter(L);
332
+ else
333
+ for (let b = O.length - 1; b >= 0; b--) {
334
+ const M = O[b];
335
+ v.insertAfter(M);
336
+ }
337
+ else {
338
+ const b = v.getFirstChild();
339
+ if (f.$isElementNode(b) && (v = b), b === null)
340
+ if (L)
341
+ v.append(L);
342
+ else
343
+ for (let M = 0; M < O.length; M++) {
344
+ const G = O[M];
345
+ v.append(G), K = G;
346
+ }
347
+ else if (L !== null)
348
+ b.insertBefore(L);
349
+ else
350
+ for (let M = 0; M < O.length; M++) {
351
+ const G = O[M];
352
+ b.insertBefore(G), K = G;
353
+ }
354
+ }
355
+ else if (L)
356
+ v.insertAfter(L);
357
+ else
358
+ for (let b = O.length - 1; b >= 0; b--) {
359
+ const M = O[b];
360
+ v.insertAfter(M), K = M;
361
+ }
362
+ const B = f.$getPreviousSelection();
363
+ f.$isRangeSelection(B) && i(B.anchor) && i(B.focus) ? f.$setSelection(B.clone()) : K !== null ? K.selectEnd() : h.dirty = !0;
364
+ }
365
+ function S(h, T) {
366
+ const o = f.$getAdjacentNode(h.focus, T);
367
+ return f.$isDecoratorNode(o) && !o.isIsolated() || f.$isElementNode(o) && !o.isInline() && !o.canBeEmpty();
368
+ }
369
+ function I(h, T, o, m) {
370
+ h.modify(T ? "extend" : "move", o, m);
371
+ }
372
+ function P(h) {
373
+ const T = h.anchor.getNode();
374
+ return (f.$isRootNode(T) ? T : T.getParentOrThrow()).getDirection() === "rtl";
375
+ }
376
+ function z(h, T, o) {
377
+ const m = P(h);
378
+ I(h, T, o ? !m : m, "character");
379
+ }
380
+ function D(h) {
381
+ const T = h.anchor, o = h.focus, R = T.getNode().getTopLevelElementOrThrow().getParentOrThrow();
382
+ let w = R.getFirstDescendant(), O = R.getLastDescendant(), v = "element", C = "element", A = 0;
383
+ f.$isTextNode(w) ? v = "text" : !f.$isElementNode(w) && w !== null && (w = w.getParentOrThrow()), f.$isTextNode(O) ? (C = "text", A = O.getTextContentSize()) : !f.$isElementNode(O) && O !== null && (O = O.getParentOrThrow()), w && O && (T.set(w.getKey(), 0, v), o.set(O.getKey(), A, C));
384
+ }
385
+ function U(h, T, o) {
386
+ const m = h.getStyle(), L = g(m);
387
+ return L !== null && L[T] || o;
388
+ }
389
+ function V(h, T, o = "") {
390
+ let m = null;
391
+ const L = h.getNodes(), R = h.anchor, w = h.focus, O = h.isBackward(), v = O ? w.offset : R.offset, C = O ? w.getNode() : R.getNode();
392
+ if (h.style !== "") {
393
+ const A = h.style, F = g(A);
394
+ if (F !== null && T in F)
395
+ return F[T];
396
+ }
397
+ for (let A = 0; A < L.length; A++) {
398
+ const F = L[A];
399
+ if (!(A !== 0 && v === 0 && F.is(C)) && f.$isTextNode(F)) {
400
+ const K = U(F, T, o);
401
+ if (m === null)
402
+ m = K;
403
+ else if (m !== K) {
404
+ m = "";
405
+ break;
406
+ }
407
+ }
408
+ }
409
+ return m === null ? o : m;
410
+ }
411
+ return te.$addNodeStyle = t, te.$cloneWithProperties = x, te.$getSelectionStyleValueForProperty = V, te.$isAtNodeEnd = e, te.$isParentElementRTL = P, te.$moveCaretSelection = I, te.$moveCharacter = z, te.$patchStyleText = s, te.$selectAll = D, te.$setBlocksType = p, te.$shouldOverrideDefaultCharacterSelection = S, te.$sliceSelectedTextNodeContent = u, te.$wrapNodes = d, te.createDOMRange = j, te.createRectsFromDOMRange = l, te.getStyleObjectFromCSS = g, te.trimTextContentFromAnchor = n, te;
412
+ }
413
+ var ne = {}, De;
414
+ function ot() {
415
+ if (De) return ne;
416
+ De = 1;
417
+ var f = le();
418
+ let k = /* @__PURE__ */ new Map();
419
+ function W(e) {
420
+ for (; e != null; ) {
421
+ if (e.nodeType === Node.TEXT_NODE) return e;
422
+ e = e.firstChild;
423
+ }
424
+ return null;
425
+ }
426
+ function q(e) {
427
+ let n = e.parentNode;
428
+ if (n == null) throw Error("Should never happen");
429
+ return [n, Array.from(n.childNodes).indexOf(e)];
430
+ }
431
+ function j(e) {
432
+ let n = {};
433
+ e = e.split(";");
434
+ for (let t of e) if (t !== "") {
435
+ let [r, s] = t.split(/:([^]+)/);
436
+ n[r.trim()] = s.trim();
437
+ }
438
+ return n;
439
+ }
440
+ function l(e) {
441
+ let n = k.get(e);
442
+ return n === void 0 && (n = j(e), k.set(e, n)), n;
443
+ }
444
+ function a(e) {
445
+ let n = "";
446
+ for (let t in e) t && (n += `${t}: ${e[t]};`);
447
+ return n;
448
+ }
449
+ function g(e, n) {
450
+ var t = l("getStyle" in e ? e.getStyle() : e.style);
451
+ n = Object.entries(n).reduce((r, [s, p]) => (p === null ? delete r[s] : r[s] = p, r), { ...t }), t = a(n), e.setStyle(t), k.set(t, n);
452
+ }
453
+ function y(e, n) {
454
+ var t = e.getNodes(), r = t.length;
455
+ if (f.DEPRECATED_$isGridSelection(e)) {
456
+ for (var s = f.$createRangeSelection(), p = s.anchor, c = s.focus, i = 0; i < r; i++) {
457
+ var N = t[i];
458
+ f.DEPRECATED_$isGridCellNode(N) && (p.set(N.getKey(), 0, "element"), c.set(N.getKey(), N.getChildrenSize(), "element"), y(f.$normalizeSelection__EXPERIMENTAL(s), n));
459
+ }
460
+ f.$setSelection(e);
461
+ } else if (--r, s = t[0], p = t[r], e.isCollapsed()) g(e, n);
462
+ else {
463
+ var d = e.anchor, E = e.focus;
464
+ i = s.getTextContent().length, N = E.offset;
465
+ var S = d.offset, I = d.isBefore(E);
466
+ c = I ? S : N, e = I ? N : S;
467
+ var P = I ? d.type : E.type, z = I ? E.type : d.type;
468
+ if (d = I ? E.key : d.key, f.$isTextNode(s) && c === i && (E = s.getNextSibling(), f.$isTextNode(E) && (c = S = 0, s = E)), t.length === 1) f.$isTextNode(s) && (c = P === "element" ? 0 : S > N ? N : S, e = z === "element" ? i : S > N ? S : N, c !== e && (c === 0 && e === i ? (g(s, n), s.select(c, e)) : (t = s.splitText(c, e), t = c === 0 ? t[0] : t[1], g(t, n), t.select(0, e - c))));
469
+ else for (f.$isTextNode(s) && c < s.getTextContentSize() && (c !== 0 && (s = s.splitText(c)[1]), g(s, n)), f.$isTextNode(p) && (c = p.getTextContent().length, p.__key !== d && e !== 0 && (e = c), e !== c && ([p] = p.splitText(e)), e !== 0 && g(p, n)), e = 1; e < r; e++) c = t[e], i = c.getKey(), f.$isTextNode(c) && i !== s.getKey() && i !== p.getKey() && !c.isToken() && g(c, n);
470
+ }
471
+ }
472
+ function _(e) {
473
+ for (; e !== null && !f.$isRootOrShadowRoot(e); ) {
474
+ let n = e.getLatest(), t = e.getParent();
475
+ n.getChildrenSize() === 0 && e.remove(!0), e = t;
476
+ }
477
+ }
478
+ function $(e, n, t, r, s = null) {
479
+ if (n.length !== 0) {
480
+ var p = n[0], c = /* @__PURE__ */ new Map(), i = [];
481
+ p = f.$isElementNode(p) ? p : p.getParentOrThrow(), p.isInline() && (p = p.getParentOrThrow());
482
+ for (var N = !1; p !== null; ) {
483
+ var d = p.getPreviousSibling();
484
+ if (d !== null) {
485
+ p = d, N = !0;
486
+ break;
487
+ }
488
+ if (p = p.getParentOrThrow(), f.$isRootOrShadowRoot(p)) break;
489
+ }
490
+ d = /* @__PURE__ */ new Set();
491
+ for (var E = 0; E < t; E++) {
492
+ var S = n[E];
493
+ f.$isElementNode(S) && S.getChildrenSize() === 0 && d.add(S.getKey());
494
+ }
495
+ var I = /* @__PURE__ */ new Set();
496
+ for (E = 0; E < t; E++) {
497
+ S = n[E];
498
+ var P = S.getParent();
499
+ if (P !== null && P.isInline() && (P = P.getParent()), P !== null && f.$isLeafNode(S) && !I.has(S.getKey())) {
500
+ if (S = P.getKey(), c.get(S) === void 0) {
501
+ let z = r();
502
+ z.setFormat(P.getFormatType()), z.setIndent(P.getIndent()), i.push(z), c.set(S, z), P.getChildren().forEach((D) => {
503
+ z.append(D), I.add(D.getKey()), f.$isElementNode(D) && D.getChildrenKeys().forEach((U) => I.add(U));
504
+ }), _(P);
505
+ }
506
+ } else d.has(S.getKey()) && (P = r(), P.setFormat(S.getFormatType()), P.setIndent(S.getIndent()), i.push(P), S.remove(!0));
507
+ }
508
+ if (s !== null) for (n = 0; n < i.length; n++) s.append(i[n]);
509
+ if (n = null, f.$isRootOrShadowRoot(p)) if (N) if (s !== null) p.insertAfter(s);
510
+ else for (s = i.length - 1; 0 <= s; s--) p.insertAfter(i[s]);
511
+ else if (N = p.getFirstChild(), f.$isElementNode(N) && (p = N), N === null) if (s) p.append(s);
512
+ else for (s = 0; s < i.length; s++) N = i[s], p.append(N), n = N;
513
+ else if (s !== null) N.insertBefore(s);
514
+ else for (p = 0; p < i.length; p++) s = i[p], N.insertBefore(s), n = s;
515
+ else if (s) p.insertAfter(s);
516
+ else for (s = i.length - 1; 0 <= s; s--) N = i[s], p.insertAfter(N), n = N;
517
+ i = f.$getPreviousSelection(), f.$isRangeSelection(i) && i.anchor.getNode().isAttached() && i.focus.getNode().isAttached() ? f.$setSelection(i.clone()) : n !== null ? n.selectEnd() : e.dirty = !0;
518
+ }
519
+ }
520
+ function x(e, n, t, r) {
521
+ e.modify(n ? "extend" : "move", t, r);
522
+ }
523
+ function u(e) {
524
+ return e = e.anchor.getNode(), (f.$isRootNode(e) ? e : e.getParentOrThrow()).getDirection() === "rtl";
525
+ }
526
+ return ne.$addNodeStyle = function(e) {
527
+ e = e.getStyle();
528
+ let n = j(e);
529
+ k.set(e, n);
530
+ }, ne.$cloneWithProperties = function(e) {
531
+ let n = e.constructor.clone(e);
532
+ return n.__parent = e.__parent, n.__next = e.__next, n.__prev = e.__prev, f.$isElementNode(e) && f.$isElementNode(n) ? (n.__first = e.__first, n.__last = e.__last, n.__size = e.__size, n.__format = e.__format, n.__indent = e.__indent, n.__dir = e.__dir, n) : (f.$isTextNode(e) && f.$isTextNode(n) && (n.__format = e.__format, n.__style = e.__style, n.__mode = e.__mode, n.__detail = e.__detail), n);
533
+ }, ne.$getSelectionStyleValueForProperty = function(e, n, t = "") {
534
+ let r = null, s = e.getNodes();
535
+ var p = e.anchor, c = e.focus, i = e.isBackward();
536
+ let N = i ? c.offset : p.offset;
537
+ if (p = i ? c.getNode() : p.getNode(), e.style !== "" && (e = l(e.style), e !== null && n in e)) return e[n];
538
+ for (e = 0; e < s.length; e++) {
539
+ var d = s[e];
540
+ if ((e === 0 || N !== 0 || !d.is(p)) && f.$isTextNode(d)) {
541
+ if (c = n, i = t, d = d.getStyle(), d = l(d), c = d !== null && d[c] || i, r === null) r = c;
542
+ else if (r !== c) {
543
+ r = "";
544
+ break;
545
+ }
546
+ }
547
+ }
548
+ return r === null ? t : r;
549
+ }, ne.$isAtNodeEnd = function(e) {
550
+ return e.type === "text" ? e.offset === e.getNode().getTextContentSize() : e.offset === e.getNode().getChildrenSize();
551
+ }, ne.$isParentElementRTL = u, ne.$moveCaretSelection = x, ne.$moveCharacter = function(e, n, t) {
552
+ let r = u(e);
553
+ x(e, n, t ? !r : r, "character");
554
+ }, ne.$patchStyleText = y, ne.$selectAll = function(e) {
555
+ let n = e.anchor;
556
+ e = e.focus;
557
+ var t = n.getNode().getTopLevelElementOrThrow().getParentOrThrow();
558
+ let r = t.getFirstDescendant();
559
+ t = t.getLastDescendant();
560
+ let s = "element", p = "element", c = 0;
561
+ f.$isTextNode(r) ? s = "text" : f.$isElementNode(r) || r === null || (r = r.getParentOrThrow()), f.$isTextNode(t) ? (p = "text", c = t.getTextContentSize()) : f.$isElementNode(t) || t === null || (t = t.getParentOrThrow()), r && t && (n.set(r.getKey(), 0, s), e.set(t.getKey(), c, p));
562
+ }, ne.$setBlocksType = function(e, n) {
563
+ if (e.anchor.key === "root") {
564
+ n = n();
565
+ var t = f.$getRoot();
566
+ (e = t.getFirstChild()) ? e.replace(n, !0) : t.append(n);
567
+ } else for (t = e.getNodes(), e = e.anchor.getNode().getParentOrThrow(), t.indexOf(e) === -1 && t.push(e), e.isInline() && (e = e.getParentOrThrow(), t.indexOf(e) === -1 && t.push(e)), e = 0; e < t.length; e++) {
568
+ let p = t[e];
569
+ var r = p;
570
+ if (!f.$isElementNode(r) || f.$isRootOrShadowRoot(r)) r = !1;
571
+ else {
572
+ var s = r.getFirstChild();
573
+ s = s === null || f.$isLineBreakNode(s) || f.$isTextNode(s) || s.isInline(), r = !r.isInline() && r.canBeEmpty() !== !1 && s;
574
+ }
575
+ r && (r = n(), r.setFormat(p.getFormatType()), r.setIndent(p.getIndent()), p.replace(r, !0));
576
+ }
577
+ }, ne.$shouldOverrideDefaultCharacterSelection = function(e, n) {
578
+ return e = f.$getAdjacentNode(e.focus, n), f.$isDecoratorNode(e) && !e.isIsolated() || f.$isElementNode(e) && !e.isInline() && !e.canBeEmpty();
579
+ }, ne.$sliceSelectedTextNodeContent = function(e, n) {
580
+ if (n.isSelected() && !n.isSegmented() && !n.isToken() && (f.$isRangeSelection(e) || f.DEPRECATED_$isGridSelection(e))) {
581
+ var t = e.anchor.getNode(), r = e.focus.getNode(), s = n.is(t), p = n.is(r);
582
+ if (s || p) {
583
+ s = e.isBackward();
584
+ let [c, i] = e.getCharacterOffsets();
585
+ e = t.is(r), p = n.is(s ? r : t), r = n.is(s ? t : r), t = 0;
586
+ let N;
587
+ e ? (t = c > i ? i : c, N = c > i ? c : i) : p ? (t = s ? i : c, N = void 0) : r && (s = s ? c : i, t = 0, N = s), n.__text = n.__text.slice(t, N);
588
+ }
589
+ }
590
+ return n;
591
+ }, ne.$wrapNodes = function(e, n, t = null) {
592
+ var r = e.getNodes();
593
+ let s = r.length;
594
+ var p = e.anchor;
595
+ if (s === 0 || s === 1 && p.type === "element" && p.getNode().getChildrenSize() === 0) {
596
+ e = p.type === "text" ? p.getNode().getParentOrThrow() : p.getNode(), r = e.getChildren();
597
+ let i = n();
598
+ i.setFormat(e.getFormatType()), i.setIndent(e.getIndent()), r.forEach((N) => i.append(N)), t && (i = t.append(i)), e.replace(i);
599
+ } else {
600
+ p = null;
601
+ var c = [];
602
+ for (let i = 0; i < s; i++) {
603
+ let N = r[i];
604
+ f.$isRootOrShadowRoot(N) ? ($(e, c, c.length, n, t), c = [], p = N) : p === null || p !== null && f.$hasAncestor(
605
+ N,
606
+ p
607
+ ) ? c.push(N) : ($(e, c, c.length, n, t), c = [N]);
608
+ }
609
+ $(e, c, c.length, n, t);
610
+ }
611
+ }, ne.createDOMRange = function(e, n, t, r, s) {
612
+ let p = n.getKey(), c = r.getKey(), i = document.createRange(), N = e.getElementByKey(p);
613
+ if (e = e.getElementByKey(c), f.$isTextNode(n) && (N = W(N)), f.$isTextNode(r) && (e = W(e)), n === void 0 || r === void 0 || N === null || e === null) return null;
614
+ N.nodeName === "BR" && ([N, t] = q(N)), e.nodeName === "BR" && ([e, s] = q(e)), n = N.firstChild, N === e && n != null && n.nodeName === "BR" && t === 0 && s === 0 && (s = 1);
615
+ try {
616
+ i.setStart(N, t), i.setEnd(e, s);
617
+ } catch {
618
+ return null;
619
+ }
620
+ return !i.collapsed || t === s && p === c || (i.setStart(e, s), i.setEnd(
621
+ N,
622
+ t
623
+ )), i;
624
+ }, ne.createRectsFromDOMRange = function(e, n) {
625
+ var t = e.getRootElement();
626
+ if (t === null) return [];
627
+ e = t.getBoundingClientRect(), t = getComputedStyle(t), t = parseFloat(t.paddingLeft) + parseFloat(t.paddingRight), n = Array.from(n.getClientRects());
628
+ let r = n.length;
629
+ n.sort((p, c) => {
630
+ let i = p.top - c.top;
631
+ return 3 >= Math.abs(i) ? p.left - c.left : i;
632
+ });
633
+ let s;
634
+ for (let p = 0; p < r; p++) {
635
+ let c = n[p], i = c.width + t === e.width;
636
+ s && s.top <= c.top && s.top + s.height > c.top && s.left + s.width > c.left || i ? (n.splice(p--, 1), r--) : s = c;
637
+ }
638
+ return n;
639
+ }, ne.getStyleObjectFromCSS = l, ne.trimTextContentFromAnchor = function(e, n, t) {
640
+ let r = n.getNode();
641
+ if (f.$isElementNode(r)) {
642
+ var s = r.getDescendantByIndex(n.offset);
643
+ s !== null && (r = s);
644
+ }
645
+ for (; 0 < t && r !== null; ) {
646
+ var p = r.getPreviousSibling(), c = 0;
647
+ if (p === null) {
648
+ s = r.getParentOrThrow();
649
+ for (var i = s.getPreviousSibling(); i === null; ) {
650
+ if (s = s.getParent(), s === null) {
651
+ p = null;
652
+ break;
653
+ }
654
+ i = s.getPreviousSibling();
655
+ }
656
+ s !== null && (c = s.isInline() ? 0 : 2, p = f.$isElementNode(i) ? i.getLastDescendant() : i);
657
+ }
658
+ if (i = r.getTextContent(), i === "" && f.$isElementNode(r) && !r.isInline() && (i = `
659
+
660
+ `), s = i.length, !f.$isTextNode(r) || t >= s) i = r.getParent(), r.remove(), i == null || i.getChildrenSize() !== 0 || f.$isRootNode(i) || i.remove(), t -= s + c, r = p;
661
+ else {
662
+ let N = r.getKey();
663
+ c = e.getEditorState().read(() => {
664
+ const E = f.$getNodeByKey(N);
665
+ return f.$isTextNode(E) && E.isSimpleText() ? E.getTextContent() : null;
666
+ }), p = s - t;
667
+ let d = i.slice(0, p);
668
+ c !== null && c !== i ? (t = f.$getPreviousSelection(), s = r, r.isSimpleText() ? r.setTextContent(c) : (s = f.$createTextNode(c), r.replace(s)), f.$isRangeSelection(t) && t.isCollapsed() && (t = t.anchor.offset, s.select(
669
+ t,
670
+ t
671
+ ))) : r.isSimpleText() ? (c = n.key === N, i = n.offset, i < t && (i = s), t = c ? i - t : 0, s = c ? i : p, c && t === 0 ? ([t] = r.splitText(t, s), t.remove()) : ([, t] = r.splitText(t, s), t.remove())) : (t = f.$createTextNode(d), r.replace(t)), t = 0;
672
+ }
673
+ }
674
+ }, ne;
675
+ }
676
+ var ye, Ie;
677
+ function Te() {
678
+ return Ie || (Ie = 1, ye = process.env.NODE_ENV === "development" ? lt() : ot()), ye;
679
+ }
680
+ var Me;
681
+ function st() {
682
+ if (Me) return Q;
683
+ Me = 1;
684
+ var f = Te(), k = le();
685
+ function W(c, ...i) {
686
+ i.forEach((N) => {
687
+ if (typeof N == "string") {
688
+ const d = N.split(" ").filter((E) => E !== "");
689
+ c.classList.add(...d);
690
+ }
691
+ });
692
+ }
693
+ function q(c, ...i) {
694
+ i.forEach((N) => {
695
+ typeof N == "string" && c.classList.remove(...N.split(" "));
696
+ });
697
+ }
698
+ function j(c, i) {
699
+ for (const N of i)
700
+ if (c.type.startsWith(N))
701
+ return !0;
702
+ return !1;
703
+ }
704
+ function l(c, i) {
705
+ const N = c[Symbol.iterator]();
706
+ return new Promise((d, E) => {
707
+ const S = [], I = () => {
708
+ const {
709
+ done: P,
710
+ value: z
711
+ } = N.next();
712
+ if (P)
713
+ return d(S);
714
+ const D = new FileReader();
715
+ D.addEventListener("error", E), D.addEventListener("load", () => {
716
+ const U = D.result;
717
+ typeof U == "string" && S.push({
718
+ file: z,
719
+ result: U
720
+ }), I();
721
+ }), j(z, i) ? D.readAsDataURL(z) : I();
722
+ };
723
+ I();
724
+ });
725
+ }
726
+ function a(c, i) {
727
+ const N = [], d = (c || k.$getRoot()).getLatest(), E = i || (k.$isElementNode(d) ? d.getLastDescendant() : d);
728
+ let S = d, I = g(S);
729
+ for (; S !== null && !S.is(E); )
730
+ if (N.push({
731
+ depth: I,
732
+ node: S
733
+ }), k.$isElementNode(S) && S.getChildrenSize() > 0)
734
+ S = S.getFirstChild(), I++;
735
+ else {
736
+ let P = null;
737
+ for (; P === null && S !== null; )
738
+ P = S.getNextSibling(), P === null ? (S = S.getParent(), I--) : S = P;
739
+ }
740
+ return S !== null && S.is(E) && N.push({
741
+ depth: I,
742
+ node: S
743
+ }), N;
744
+ }
745
+ function g(c) {
746
+ let i = c, N = 0;
747
+ for (; (i = i.getParent()) !== null; )
748
+ N++;
749
+ return N;
750
+ }
751
+ function y(c, i) {
752
+ let N = c;
753
+ for (; N != null; ) {
754
+ if (N instanceof i)
755
+ return N;
756
+ N = N.getParent();
757
+ }
758
+ return null;
759
+ }
760
+ function _(c) {
761
+ const i = $(c, (N) => k.$isElementNode(N) && !N.isInline());
762
+ if (!k.$isElementNode(i))
763
+ throw Error(`Expected node ${c.__key} to have closest block element node.`);
764
+ return i;
765
+ }
766
+ function $(c, i) {
767
+ let N = c;
768
+ for (; N !== k.$getRoot() && N != null; ) {
769
+ if (i(N))
770
+ return N;
771
+ N = N.getParent();
772
+ }
773
+ return null;
774
+ }
775
+ function x(...c) {
776
+ return () => {
777
+ c.forEach((i) => i());
778
+ };
779
+ }
780
+ function u(c, i, N, d) {
781
+ const E = (P) => P instanceof i, S = (P) => {
782
+ const z = P.getChildren();
783
+ for (let V = 0; V < z.length; V++) {
784
+ const h = z[V];
785
+ if (E(h))
786
+ return null;
787
+ }
788
+ let D = P, U = P;
789
+ for (; D !== null; )
790
+ if (U = D, D = D.getParent(), E(D))
791
+ return {
792
+ child: U,
793
+ parent: D
794
+ };
795
+ return null;
796
+ }, I = (P) => {
797
+ const z = S(P);
798
+ if (z !== null) {
799
+ const {
800
+ child: D,
801
+ parent: U
802
+ } = z;
803
+ if (D.is(P)) {
804
+ d(U, P);
805
+ const V = D.getNextSiblings(), h = V.length;
806
+ if (U.insertAfter(D), h !== 0) {
807
+ const T = N(U);
808
+ D.insertAfter(T);
809
+ for (let o = 0; o < h; o++)
810
+ T.append(V[o]);
811
+ }
812
+ !U.canBeEmpty() && U.getChildrenSize() === 0 && U.remove();
813
+ }
814
+ }
815
+ };
816
+ return c.registerNodeTransform(i, I);
817
+ }
818
+ function e(c, i) {
819
+ const d = /* @__PURE__ */ new Map(), E = c._pendingEditorState;
820
+ for (const [I, P] of i._nodeMap) {
821
+ const z = f.$cloneWithProperties(P);
822
+ k.$isTextNode(z) && (z.__text = P.__text), d.set(I, z);
823
+ }
824
+ E && (E._nodeMap = d), c._dirtyType = 2;
825
+ const S = i._selection;
826
+ k.$setSelection(S === null ? null : S.clone());
827
+ }
828
+ function n(c) {
829
+ const i = k.$getSelection() || k.$getPreviousSelection();
830
+ if (k.$isRangeSelection(i)) {
831
+ const {
832
+ focus: N
833
+ } = i, d = N.getNode(), E = N.offset;
834
+ if (k.$isRootOrShadowRoot(d)) {
835
+ const S = d.getChildAtIndex(E);
836
+ S == null ? d.append(c) : S.insertBefore(c), c.selectNext();
837
+ } else {
838
+ let S, I;
839
+ k.$isTextNode(d) ? (S = d.getParentOrThrow(), I = d.getIndexWithinParent(), E > 0 && (I += 1, d.splitText(E))) : (S = d, I = E);
840
+ const [, P] = k.$splitNode(S, I);
841
+ P.insertBefore(c), P.selectStart();
842
+ }
843
+ } else {
844
+ if (k.$isNodeSelection(i) || k.DEPRECATED_$isGridSelection(i)) {
845
+ const d = i.getNodes();
846
+ d[d.length - 1].getTopLevelElementOrThrow().insertAfter(c);
847
+ } else
848
+ k.$getRoot().append(c);
849
+ const N = k.$createParagraphNode();
850
+ c.insertAfter(N), N.select();
851
+ }
852
+ return c.getLatest();
853
+ }
854
+ function t(c, i) {
855
+ const N = i();
856
+ return c.replace(N), N.append(c), N;
857
+ }
858
+ function r(c, i) {
859
+ return c !== null ? Object.getPrototypeOf(c).constructor.name === i.name : !1;
860
+ }
861
+ function s(c, i) {
862
+ const N = [];
863
+ for (let d = 0; d < c.length; d++) {
864
+ const E = i(c[d]);
865
+ E !== null && N.push(E);
866
+ }
867
+ return N;
868
+ }
869
+ function p(c, i) {
870
+ const N = c.getFirstChild();
871
+ N !== null ? N.insertBefore(i) : c.append(i);
872
+ }
873
+ return Q.$splitNode = k.$splitNode, Q.isHTMLAnchorElement = k.isHTMLAnchorElement, Q.isHTMLElement = k.isHTMLElement, Q.$dfs = a, Q.$filter = s, Q.$findMatchingParent = $, Q.$getNearestBlockElementAncestorOrThrow = _, Q.$getNearestNodeOfType = y, Q.$insertFirst = p, Q.$insertNodeToNearestRoot = n, Q.$restoreEditorState = e, Q.$wrapNodeInElement = t, Q.addClassNamesToElement = W, Q.isMimeType = j, Q.mediaFileReader = l, Q.mergeRegister = x, Q.objectKlassEquals = r, Q.registerNestedElementResolver = u, Q.removeClassNamesFromElement = q, Q;
874
+ }
875
+ var Z = {}, Fe;
876
+ function ct() {
877
+ if (Fe) return Z;
878
+ Fe = 1;
879
+ var f = Te(), k = le();
880
+ function W(l) {
881
+ let a = new URLSearchParams();
882
+ a.append("code", l);
883
+ for (let g = 1; g < arguments.length; g++) a.append("v", arguments[g]);
884
+ throw Error(`Minified Lexical error #${l}; visit https://lexical.dev/docs/error?${a} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`);
885
+ }
886
+ function q(l, a) {
887
+ for (let g of a) if (l.type.startsWith(g)) return !0;
888
+ return !1;
889
+ }
890
+ function j(l, a) {
891
+ for (; l !== k.$getRoot() && l != null; ) {
892
+ if (a(l)) return l;
893
+ l = l.getParent();
894
+ }
895
+ return null;
896
+ }
897
+ return Z.$splitNode = k.$splitNode, Z.isHTMLAnchorElement = k.isHTMLAnchorElement, Z.isHTMLElement = k.isHTMLElement, Z.$dfs = function(l, a) {
898
+ let g = [];
899
+ l = (l || k.$getRoot()).getLatest(), a = a || (k.$isElementNode(l) ? l.getLastDescendant() : l);
900
+ for (var y = l, _ = 0; (y = y.getParent()) !== null; ) _++;
901
+ for (y = _; l !== null && !l.is(a); ) if (g.push({ depth: y, node: l }), k.$isElementNode(l) && 0 < l.getChildrenSize()) l = l.getFirstChild(), y++;
902
+ else for (_ = null; _ === null && l !== null; ) _ = l.getNextSibling(), _ === null ? (l = l.getParent(), y--) : l = _;
903
+ return l !== null && l.is(a) && g.push({ depth: y, node: l }), g;
904
+ }, Z.$filter = function(l, a) {
905
+ let g = [];
906
+ for (let y = 0; y < l.length; y++) {
907
+ let _ = a(l[y]);
908
+ _ !== null && g.push(_);
909
+ }
910
+ return g;
911
+ }, Z.$findMatchingParent = j, Z.$getNearestBlockElementAncestorOrThrow = function(l) {
912
+ let a = j(l, (g) => k.$isElementNode(g) && !g.isInline());
913
+ return k.$isElementNode(a) || W(4, l.__key), a;
914
+ }, Z.$getNearestNodeOfType = function(l, a) {
915
+ for (; l != null; ) {
916
+ if (l instanceof a) return l;
917
+ l = l.getParent();
918
+ }
919
+ return null;
920
+ }, Z.$insertFirst = function(l, a) {
921
+ let g = l.getFirstChild();
922
+ g !== null ? g.insertBefore(a) : l.append(a);
923
+ }, Z.$insertNodeToNearestRoot = function(l) {
924
+ var a = k.$getSelection() || k.$getPreviousSelection();
925
+ if (k.$isRangeSelection(a)) {
926
+ var { focus: g } = a;
927
+ if (a = g.getNode(), g = g.offset, k.$isRootOrShadowRoot(a)) g = a.getChildAtIndex(g), g == null ? a.append(l) : g.insertBefore(l), l.selectNext();
928
+ else {
929
+ let y, _;
930
+ k.$isTextNode(a) ? (y = a.getParentOrThrow(), _ = a.getIndexWithinParent(), 0 < g && (_ += 1, a.splitText(g))) : (y = a, _ = g), [, a] = k.$splitNode(y, _), a.insertBefore(l), a.selectStart();
931
+ }
932
+ } else k.$isNodeSelection(a) || k.DEPRECATED_$isGridSelection(a) ? (a = a.getNodes(), a[a.length - 1].getTopLevelElementOrThrow().insertAfter(l)) : k.$getRoot().append(l), a = k.$createParagraphNode(), l.insertAfter(a), a.select();
933
+ return l.getLatest();
934
+ }, Z.$restoreEditorState = function(l, a) {
935
+ let g = /* @__PURE__ */ new Map(), y = l._pendingEditorState;
936
+ for (let [_, $] of a._nodeMap) {
937
+ let x = f.$cloneWithProperties($);
938
+ k.$isTextNode(x) && (x.__text = $.__text), g.set(_, x);
939
+ }
940
+ y && (y._nodeMap = g), l._dirtyType = 2, l = a._selection, k.$setSelection(l === null ? null : l.clone());
941
+ }, Z.$wrapNodeInElement = function(l, a) {
942
+ return a = a(), l.replace(a), a.append(l), a;
943
+ }, Z.addClassNamesToElement = function(l, ...a) {
944
+ a.forEach((g) => {
945
+ typeof g == "string" && (g = g.split(" ").filter((y) => y !== ""), l.classList.add(...g));
946
+ });
947
+ }, Z.isMimeType = q, Z.mediaFileReader = function(l, a) {
948
+ let g = l[Symbol.iterator]();
949
+ return new Promise((y, _) => {
950
+ let $ = [], x = () => {
951
+ const { done: u, value: e } = g.next();
952
+ if (u) return y($);
953
+ const n = new FileReader();
954
+ n.addEventListener("error", _), n.addEventListener("load", () => {
955
+ const t = n.result;
956
+ typeof t == "string" && $.push({ file: e, result: t }), x();
957
+ }), q(e, a) ? n.readAsDataURL(e) : x();
958
+ };
959
+ x();
960
+ });
961
+ }, Z.mergeRegister = function(...l) {
962
+ return () => {
963
+ l.forEach((a) => a());
964
+ };
965
+ }, Z.objectKlassEquals = function(l, a) {
966
+ return l !== null ? Object.getPrototypeOf(l).constructor.name === a.name : !1;
967
+ }, Z.registerNestedElementResolver = function(l, a, g, y) {
968
+ return l.registerNodeTransform(a, (_) => {
969
+ e: {
970
+ for (var $ = _.getChildren(), x = 0; x < $.length; x++) if ($[x] instanceof a) {
971
+ $ = null;
972
+ break e;
973
+ }
974
+ for ($ = _; $ !== null; ) if (x = $, $ = $.getParent(), $ instanceof a) {
975
+ $ = { child: x, parent: $ };
976
+ break e;
977
+ }
978
+ $ = null;
979
+ }
980
+ if ($ !== null) {
981
+ const { child: u, parent: e } = $;
982
+ if (u.is(_)) {
983
+ if (y(e, _), _ = u.getNextSiblings(), $ = _.length, e.insertAfter(u), $ !== 0) {
984
+ x = g(e), u.insertAfter(x);
985
+ for (let n = 0; n < $; n++) x.append(_[n]);
986
+ }
987
+ e.canBeEmpty() || e.getChildrenSize() !== 0 || e.remove();
988
+ }
989
+ }
990
+ });
991
+ }, Z.removeClassNamesFromElement = function(l, ...a) {
992
+ a.forEach((g) => {
993
+ typeof g == "string" && l.classList.remove(...g.split(" "));
994
+ });
995
+ }, Z;
996
+ }
997
+ var Ee, Be;
998
+ function he() {
999
+ return Be || (Be = 1, Ee = process.env.NODE_ENV === "development" ? st() : ct()), Ee;
1000
+ }
1001
+ var _e = {}, be;
1002
+ function at() {
1003
+ if (be) return _e;
1004
+ be = 1;
1005
+ var f = Te(), k = he(), W = le();
1006
+ function q(_, $) {
1007
+ const x = $.body ? $.body.childNodes : [];
1008
+ let u = [];
1009
+ for (let e = 0; e < x.length; e++) {
1010
+ const n = x[e];
1011
+ if (!g.has(n.nodeName)) {
1012
+ const t = y(n, _);
1013
+ t !== null && (u = u.concat(t));
1014
+ }
1015
+ }
1016
+ return u;
1017
+ }
1018
+ function j(_, $) {
1019
+ if (typeof document > "u" || typeof window > "u")
1020
+ throw new Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");
1021
+ const x = document.createElement("div"), e = W.$getRoot().getChildren();
1022
+ for (let n = 0; n < e.length; n++) {
1023
+ const t = e[n];
1024
+ l(_, t, x, $);
1025
+ }
1026
+ return x.innerHTML;
1027
+ }
1028
+ function l(_, $, x, u = null) {
1029
+ let e = u != null ? $.isSelected(u) : !0;
1030
+ const n = W.$isElementNode($) && $.excludeFromCopy("html");
1031
+ let t = $;
1032
+ if (u !== null) {
1033
+ let i = f.$cloneWithProperties($);
1034
+ i = W.$isTextNode(i) && u != null ? f.$sliceSelectedTextNodeContent(u, i) : i, t = i;
1035
+ }
1036
+ const r = W.$isElementNode(t) ? t.getChildren() : [], {
1037
+ element: s,
1038
+ after: p
1039
+ } = t.exportDOM(_);
1040
+ if (!s)
1041
+ return !1;
1042
+ const c = document.createDocumentFragment();
1043
+ for (let i = 0; i < r.length; i++) {
1044
+ const N = r[i], d = l(_, N, c, u);
1045
+ !e && W.$isElementNode($) && d && $.extractWithChild(N, u, "html") && (e = !0);
1046
+ }
1047
+ if (e && !n) {
1048
+ if (k.isHTMLElement(s) && s.append(c), x.append(s), p) {
1049
+ const i = p.call(t, s);
1050
+ i && s.replaceWith(i);
1051
+ }
1052
+ } else
1053
+ x.append(c);
1054
+ return e;
1055
+ }
1056
+ function a(_, $) {
1057
+ const {
1058
+ nodeName: x
1059
+ } = _, u = $._htmlConversions.get(x.toLowerCase());
1060
+ let e = null;
1061
+ if (u !== void 0)
1062
+ for (const n of u) {
1063
+ const t = n(_);
1064
+ t !== null && (e === null || e.priority < t.priority) && (e = t);
1065
+ }
1066
+ return e !== null ? e.conversion : null;
1067
+ }
1068
+ const g = /* @__PURE__ */ new Set(["STYLE", "SCRIPT"]);
1069
+ function y(_, $, x = /* @__PURE__ */ new Map(), u) {
1070
+ let e = [];
1071
+ if (g.has(_.nodeName))
1072
+ return e;
1073
+ let n = null;
1074
+ const t = a(_, $), r = t ? t(_) : null;
1075
+ let s = null;
1076
+ if (r !== null) {
1077
+ s = r.after;
1078
+ const i = r.node;
1079
+ if (n = Array.isArray(i) ? i[i.length - 1] : i, n !== null) {
1080
+ for (const [, N] of x)
1081
+ if (n = N(n, u), !n)
1082
+ break;
1083
+ n && e.push(...Array.isArray(i) ? i : [n]);
1084
+ }
1085
+ r.forChild != null && x.set(_.nodeName, r.forChild);
1086
+ }
1087
+ const p = _.childNodes;
1088
+ let c = [];
1089
+ for (let i = 0; i < p.length; i++)
1090
+ c.push(...y(p[i], $, new Map(x), n));
1091
+ return s != null && (c = s(c)), n == null ? e = e.concat(c) : W.$isElementNode(n) && n.append(...c), e;
1092
+ }
1093
+ return _e.$generateHtmlFromNodes = j, _e.$generateNodesFromDOM = q, _e;
1094
+ }
1095
+ var $e = {}, Ke;
1096
+ function ut() {
1097
+ if (Ke) return $e;
1098
+ Ke = 1;
1099
+ var f = Te(), k = he(), W = le();
1100
+ function q(a, g, y, _ = null) {
1101
+ let $ = _ != null ? g.isSelected(_) : !0, x = W.$isElementNode(g) && g.excludeFromCopy("html");
1102
+ var u = g;
1103
+ _ !== null && (u = f.$cloneWithProperties(g), u = W.$isTextNode(u) && _ != null ? f.$sliceSelectedTextNodeContent(_, u) : u);
1104
+ let e = W.$isElementNode(u) ? u.getChildren() : [], { element: n, after: t } = u.exportDOM(a);
1105
+ if (!n) return !1;
1106
+ let r = document.createDocumentFragment();
1107
+ for (let s = 0; s < e.length; s++) {
1108
+ let p = e[s], c = q(a, p, r, _);
1109
+ !$ && W.$isElementNode(g) && c && g.extractWithChild(p, _, "html") && ($ = !0);
1110
+ }
1111
+ return $ && !x ? (k.isHTMLElement(n) && n.append(r), y.append(n), t && (a = t.call(u, n)) && n.replaceWith(a)) : y.append(r), $;
1112
+ }
1113
+ let j = /* @__PURE__ */ new Set(["STYLE", "SCRIPT"]);
1114
+ function l(a, g, y = /* @__PURE__ */ new Map(), _) {
1115
+ let $ = [];
1116
+ if (j.has(a.nodeName)) return $;
1117
+ let x = null;
1118
+ var u, { nodeName: e } = a, n = g._htmlConversions.get(e.toLowerCase());
1119
+ if (e = null, n !== void 0) for (u of n) n = u(a), n !== null && (e === null || e.priority < n.priority) && (e = n);
1120
+ if (e = (u = e !== null ? e.conversion : null) ? u(a) : null, u = null, e !== null) {
1121
+ if (u = e.after, n = e.node, x = Array.isArray(n) ? n[n.length - 1] : n, x !== null) {
1122
+ for (var [, t] of y) if (x = t(x, _), !x) break;
1123
+ x && $.push(...Array.isArray(n) ? n : [x]);
1124
+ }
1125
+ e.forChild != null && y.set(a.nodeName, e.forChild);
1126
+ }
1127
+ for (a = a.childNodes, _ = [], t = 0; t < a.length; t++) _.push(...l(a[t], g, new Map(y), x));
1128
+ return u != null && (_ = u(_)), x == null ? $ = $.concat(_) : W.$isElementNode(x) && x.append(..._), $;
1129
+ }
1130
+ return $e.$generateHtmlFromNodes = function(a, g) {
1131
+ if (typeof document > "u" || typeof window > "u") throw Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");
1132
+ let y = document.createElement("div"), _ = W.$getRoot().getChildren();
1133
+ for (let $ = 0; $ < _.length; $++) q(a, _[$], y, g);
1134
+ return y.innerHTML;
1135
+ }, $e.$generateNodesFromDOM = function(a, g) {
1136
+ g = g.body ? g.body.childNodes : [];
1137
+ let y = [];
1138
+ for (let $ = 0; $ < g.length; $++) {
1139
+ var _ = g[$];
1140
+ j.has(_.nodeName) || (_ = l(_, a), _ !== null && (y = y.concat(_)));
1141
+ }
1142
+ return y;
1143
+ }, $e;
1144
+ }
1145
+ var ve, je;
1146
+ function Qe() {
1147
+ return je || (je = 1, ve = process.env.NODE_ENV === "development" ? at() : ut()), ve;
1148
+ }
1149
+ var ae = {}, He;
1150
+ function ft() {
1151
+ if (He) return ae;
1152
+ He = 1;
1153
+ var f = he(), k = le();
1154
+ const W = /* @__PURE__ */ new Set(["http:", "https:", "mailto:", "sms:", "tel:"]);
1155
+ class q extends k.ElementNode {
1156
+ /** @internal */
1157
+ /** @internal */
1158
+ /** @internal */
1159
+ /** @internal */
1160
+ static getType() {
1161
+ return "link";
1162
+ }
1163
+ static clone(t) {
1164
+ return new q(t.__url, {
1165
+ rel: t.__rel,
1166
+ target: t.__target,
1167
+ title: t.__title
1168
+ }, t.__key);
1169
+ }
1170
+ constructor(t, r = {}, s) {
1171
+ super(s);
1172
+ const {
1173
+ target: p = null,
1174
+ rel: c = null,
1175
+ title: i = null
1176
+ } = r;
1177
+ this.__url = t, this.__target = p, this.__rel = c, this.__title = i;
1178
+ }
1179
+ createDOM(t) {
1180
+ const r = document.createElement("a");
1181
+ return r.href = this.sanitizeUrl(this.__url), this.__target !== null && (r.target = this.__target), this.__rel !== null && (r.rel = this.__rel), this.__title !== null && (r.title = this.__title), f.addClassNamesToElement(r, t.theme.link), r;
1182
+ }
1183
+ updateDOM(t, r, s) {
1184
+ const p = this.__url, c = this.__target, i = this.__rel, N = this.__title;
1185
+ return p !== t.__url && (r.href = p), c !== t.__target && (c ? r.target = c : r.removeAttribute("target")), i !== t.__rel && (i ? r.rel = i : r.removeAttribute("rel")), N !== t.__title && (N ? r.title = N : r.removeAttribute("title")), !1;
1186
+ }
1187
+ static importDOM() {
1188
+ return {
1189
+ a: (t) => ({
1190
+ conversion: j,
1191
+ priority: 1
1192
+ })
1193
+ };
1194
+ }
1195
+ static importJSON(t) {
1196
+ const r = l(t.url, {
1197
+ rel: t.rel,
1198
+ target: t.target,
1199
+ title: t.title
1200
+ });
1201
+ return r.setFormat(t.format), r.setIndent(t.indent), r.setDirection(t.direction), r;
1202
+ }
1203
+ sanitizeUrl(t) {
1204
+ try {
1205
+ const r = new URL(t);
1206
+ if (!W.has(r.protocol))
1207
+ return "about:blank";
1208
+ } catch {
1209
+ return t;
1210
+ }
1211
+ return t;
1212
+ }
1213
+ exportJSON() {
1214
+ return {
1215
+ ...super.exportJSON(),
1216
+ rel: this.getRel(),
1217
+ target: this.getTarget(),
1218
+ title: this.getTitle(),
1219
+ type: "link",
1220
+ url: this.getURL(),
1221
+ version: 1
1222
+ };
1223
+ }
1224
+ getURL() {
1225
+ return this.getLatest().__url;
1226
+ }
1227
+ setURL(t) {
1228
+ const r = this.getWritable();
1229
+ r.__url = t;
1230
+ }
1231
+ getTarget() {
1232
+ return this.getLatest().__target;
1233
+ }
1234
+ setTarget(t) {
1235
+ const r = this.getWritable();
1236
+ r.__target = t;
1237
+ }
1238
+ getRel() {
1239
+ return this.getLatest().__rel;
1240
+ }
1241
+ setRel(t) {
1242
+ const r = this.getWritable();
1243
+ r.__rel = t;
1244
+ }
1245
+ getTitle() {
1246
+ return this.getLatest().__title;
1247
+ }
1248
+ setTitle(t) {
1249
+ const r = this.getWritable();
1250
+ r.__title = t;
1251
+ }
1252
+ insertNewAfter(t, r = !0) {
1253
+ const s = this.getParentOrThrow().insertNewAfter(t, r);
1254
+ if (k.$isElementNode(s)) {
1255
+ const p = l(this.__url, {
1256
+ rel: this.__rel,
1257
+ target: this.__target,
1258
+ title: this.__title
1259
+ });
1260
+ return s.append(p), p;
1261
+ }
1262
+ return null;
1263
+ }
1264
+ canInsertTextBefore() {
1265
+ return !1;
1266
+ }
1267
+ canInsertTextAfter() {
1268
+ return !1;
1269
+ }
1270
+ canBeEmpty() {
1271
+ return !1;
1272
+ }
1273
+ isInline() {
1274
+ return !0;
1275
+ }
1276
+ extractWithChild(t, r, s) {
1277
+ if (!k.$isRangeSelection(r))
1278
+ return !1;
1279
+ const p = r.anchor.getNode(), c = r.focus.getNode();
1280
+ return this.isParentOf(p) && this.isParentOf(c) && r.getTextContent().length > 0;
1281
+ }
1282
+ }
1283
+ function j(n) {
1284
+ let t = null;
1285
+ if (f.isHTMLAnchorElement(n)) {
1286
+ const r = n.textContent;
1287
+ r !== null && r !== "" && (t = l(n.getAttribute("href") || "", {
1288
+ rel: n.getAttribute("rel"),
1289
+ target: n.getAttribute("target"),
1290
+ title: n.getAttribute("title")
1291
+ }));
1292
+ }
1293
+ return {
1294
+ node: t
1295
+ };
1296
+ }
1297
+ function l(n, t) {
1298
+ return k.$applyNodeReplacement(new q(n, t));
1299
+ }
1300
+ function a(n) {
1301
+ return n instanceof q;
1302
+ }
1303
+ class g extends q {
1304
+ static getType() {
1305
+ return "autolink";
1306
+ }
1307
+ static clone(t) {
1308
+ return new g(t.__url, {
1309
+ rel: t.__rel,
1310
+ target: t.__target,
1311
+ title: t.__title
1312
+ }, t.__key);
1313
+ }
1314
+ static importJSON(t) {
1315
+ const r = y(t.url, {
1316
+ rel: t.rel,
1317
+ target: t.target,
1318
+ title: t.title
1319
+ });
1320
+ return r.setFormat(t.format), r.setIndent(t.indent), r.setDirection(t.direction), r;
1321
+ }
1322
+ static importDOM() {
1323
+ return null;
1324
+ }
1325
+ exportJSON() {
1326
+ return {
1327
+ ...super.exportJSON(),
1328
+ type: "autolink",
1329
+ version: 1
1330
+ };
1331
+ }
1332
+ insertNewAfter(t, r = !0) {
1333
+ const s = this.getParentOrThrow().insertNewAfter(t, r);
1334
+ if (k.$isElementNode(s)) {
1335
+ const p = y(this.__url, {
1336
+ rel: this._rel,
1337
+ target: this.__target,
1338
+ title: this.__title
1339
+ });
1340
+ return s.append(p), p;
1341
+ }
1342
+ return null;
1343
+ }
1344
+ }
1345
+ function y(n, t) {
1346
+ return k.$applyNodeReplacement(new g(n, t));
1347
+ }
1348
+ function _(n) {
1349
+ return n instanceof g;
1350
+ }
1351
+ const $ = k.createCommand("TOGGLE_LINK_COMMAND");
1352
+ function x(n, t = {}) {
1353
+ const {
1354
+ target: r,
1355
+ title: s
1356
+ } = t, p = t.rel === void 0 ? "noreferrer" : t.rel, c = k.$getSelection();
1357
+ if (!k.$isRangeSelection(c))
1358
+ return;
1359
+ const i = c.extract();
1360
+ if (n === null)
1361
+ i.forEach((N) => {
1362
+ const d = N.getParent();
1363
+ if (a(d)) {
1364
+ const E = d.getChildren();
1365
+ for (let S = 0; S < E.length; S++)
1366
+ d.insertBefore(E[S]);
1367
+ d.remove();
1368
+ }
1369
+ });
1370
+ else {
1371
+ if (i.length === 1) {
1372
+ const E = i[0], S = a(E) ? E : u(E);
1373
+ if (S !== null) {
1374
+ S.setURL(n), r !== void 0 && S.setTarget(r), p !== null && S.setRel(p), s !== void 0 && S.setTitle(s);
1375
+ return;
1376
+ }
1377
+ }
1378
+ let N = null, d = null;
1379
+ i.forEach((E) => {
1380
+ const S = E.getParent();
1381
+ if (!(S === d || S === null || k.$isElementNode(E) && !E.isInline())) {
1382
+ if (a(S)) {
1383
+ d = S, S.setURL(n), r !== void 0 && S.setTarget(r), p !== null && d.setRel(p), s !== void 0 && d.setTitle(s);
1384
+ return;
1385
+ }
1386
+ if (S.is(N) || (N = S, d = l(n, {
1387
+ rel: p,
1388
+ target: r
1389
+ }), a(S) ? E.getPreviousSibling() === null ? S.insertBefore(d) : S.insertAfter(d) : E.insertBefore(d)), a(E)) {
1390
+ if (E.is(d))
1391
+ return;
1392
+ if (d !== null) {
1393
+ const I = E.getChildren();
1394
+ for (let P = 0; P < I.length; P++)
1395
+ d.append(I[P]);
1396
+ }
1397
+ E.remove();
1398
+ return;
1399
+ }
1400
+ d !== null && d.append(E);
1401
+ }
1402
+ });
1403
+ }
1404
+ }
1405
+ function u(n) {
1406
+ return e(n, a);
1407
+ }
1408
+ function e(n, t) {
1409
+ let r = n;
1410
+ for (; r !== null && (r = r.getParent()) !== null && !t(r); ) ;
1411
+ return r;
1412
+ }
1413
+ return ae.$createAutoLinkNode = y, ae.$createLinkNode = l, ae.$isAutoLinkNode = _, ae.$isLinkNode = a, ae.AutoLinkNode = g, ae.LinkNode = q, ae.TOGGLE_LINK_COMMAND = $, ae.toggleLink = x, ae;
1414
+ }
1415
+ var ue = {}, Ue;
1416
+ function dt() {
1417
+ if (Ue) return ue;
1418
+ Ue = 1;
1419
+ var f = he(), k = le();
1420
+ let W = /* @__PURE__ */ new Set(["http:", "https:", "mailto:", "sms:", "tel:"]);
1421
+ class q extends k.ElementNode {
1422
+ static getType() {
1423
+ return "link";
1424
+ }
1425
+ static clone(u) {
1426
+ return new q(u.__url, { rel: u.__rel, target: u.__target, title: u.__title }, u.__key);
1427
+ }
1428
+ constructor(u, e = {}, n) {
1429
+ super(n);
1430
+ let { target: t = null, rel: r = null, title: s = null } = e;
1431
+ this.__url = u, this.__target = t, this.__rel = r, this.__title = s;
1432
+ }
1433
+ createDOM(u) {
1434
+ let e = document.createElement("a");
1435
+ return e.href = this.sanitizeUrl(this.__url), this.__target !== null && (e.target = this.__target), this.__rel !== null && (e.rel = this.__rel), this.__title !== null && (e.title = this.__title), f.addClassNamesToElement(
1436
+ e,
1437
+ u.theme.link
1438
+ ), e;
1439
+ }
1440
+ updateDOM(u, e) {
1441
+ let n = this.__url, t = this.__target, r = this.__rel, s = this.__title;
1442
+ return n !== u.__url && (e.href = n), t !== u.__target && (t ? e.target = t : e.removeAttribute("target")), r !== u.__rel && (r ? e.rel = r : e.removeAttribute("rel")), s !== u.__title && (s ? e.title = s : e.removeAttribute("title")), !1;
1443
+ }
1444
+ static importDOM() {
1445
+ return { a: () => ({ conversion: j, priority: 1 }) };
1446
+ }
1447
+ static importJSON(u) {
1448
+ let e = l(u.url, { rel: u.rel, target: u.target, title: u.title });
1449
+ return e.setFormat(u.format), e.setIndent(u.indent), e.setDirection(u.direction), e;
1450
+ }
1451
+ sanitizeUrl(u) {
1452
+ try {
1453
+ let e = new URL(u);
1454
+ if (!W.has(e.protocol)) return "about:blank";
1455
+ } catch {
1456
+ }
1457
+ return u;
1458
+ }
1459
+ exportJSON() {
1460
+ return { ...super.exportJSON(), rel: this.getRel(), target: this.getTarget(), title: this.getTitle(), type: "link", url: this.getURL(), version: 1 };
1461
+ }
1462
+ getURL() {
1463
+ return this.getLatest().__url;
1464
+ }
1465
+ setURL(u) {
1466
+ this.getWritable().__url = u;
1467
+ }
1468
+ getTarget() {
1469
+ return this.getLatest().__target;
1470
+ }
1471
+ setTarget(u) {
1472
+ this.getWritable().__target = u;
1473
+ }
1474
+ getRel() {
1475
+ return this.getLatest().__rel;
1476
+ }
1477
+ setRel(u) {
1478
+ this.getWritable().__rel = u;
1479
+ }
1480
+ getTitle() {
1481
+ return this.getLatest().__title;
1482
+ }
1483
+ setTitle(u) {
1484
+ this.getWritable().__title = u;
1485
+ }
1486
+ insertNewAfter(u, e = !0) {
1487
+ return u = this.getParentOrThrow().insertNewAfter(u, e), k.$isElementNode(u) ? (e = l(this.__url, { rel: this.__rel, target: this.__target, title: this.__title }), u.append(e), e) : null;
1488
+ }
1489
+ canInsertTextBefore() {
1490
+ return !1;
1491
+ }
1492
+ canInsertTextAfter() {
1493
+ return !1;
1494
+ }
1495
+ canBeEmpty() {
1496
+ return !1;
1497
+ }
1498
+ isInline() {
1499
+ return !0;
1500
+ }
1501
+ extractWithChild(u, e) {
1502
+ if (!k.$isRangeSelection(e)) return !1;
1503
+ u = e.anchor.getNode();
1504
+ let n = e.focus.getNode();
1505
+ return this.isParentOf(u) && this.isParentOf(n) && 0 < e.getTextContent().length;
1506
+ }
1507
+ }
1508
+ function j(x) {
1509
+ let u = null;
1510
+ if (f.isHTMLAnchorElement(x)) {
1511
+ let e = x.textContent;
1512
+ e !== null && e !== "" && (u = l(x.getAttribute("href") || "", { rel: x.getAttribute("rel"), target: x.getAttribute("target"), title: x.getAttribute("title") }));
1513
+ }
1514
+ return { node: u };
1515
+ }
1516
+ function l(x, u) {
1517
+ return k.$applyNodeReplacement(new q(x, u));
1518
+ }
1519
+ function a(x) {
1520
+ return x instanceof q;
1521
+ }
1522
+ class g extends q {
1523
+ static getType() {
1524
+ return "autolink";
1525
+ }
1526
+ static clone(u) {
1527
+ return new g(u.__url, { rel: u.__rel, target: u.__target, title: u.__title }, u.__key);
1528
+ }
1529
+ static importJSON(u) {
1530
+ let e = y(u.url, { rel: u.rel, target: u.target, title: u.title });
1531
+ return e.setFormat(u.format), e.setIndent(u.indent), e.setDirection(u.direction), e;
1532
+ }
1533
+ static importDOM() {
1534
+ return null;
1535
+ }
1536
+ exportJSON() {
1537
+ return { ...super.exportJSON(), type: "autolink", version: 1 };
1538
+ }
1539
+ insertNewAfter(u, e = !0) {
1540
+ return u = this.getParentOrThrow().insertNewAfter(u, e), k.$isElementNode(u) ? (e = y(this.__url, { rel: this._rel, target: this.__target, title: this.__title }), u.append(e), e) : null;
1541
+ }
1542
+ }
1543
+ function y(x, u) {
1544
+ return k.$applyNodeReplacement(new g(x, u));
1545
+ }
1546
+ let _ = k.createCommand("TOGGLE_LINK_COMMAND");
1547
+ function $(x, u) {
1548
+ for (; x !== null && (x = x.getParent()) !== null && !u(x); ) ;
1549
+ return x;
1550
+ }
1551
+ return ue.$createAutoLinkNode = y, ue.$createLinkNode = l, ue.$isAutoLinkNode = function(x) {
1552
+ return x instanceof g;
1553
+ }, ue.$isLinkNode = a, ue.AutoLinkNode = g, ue.LinkNode = q, ue.TOGGLE_LINK_COMMAND = _, ue.toggleLink = function(x, u = {}) {
1554
+ let { target: e, title: n } = u, t = u.rel === void 0 ? "noreferrer" : u.rel;
1555
+ if (u = k.$getSelection(), k.$isRangeSelection(u)) if (u = u.extract(), x === null) u.forEach((s) => {
1556
+ if (s = s.getParent(), a(s)) {
1557
+ let p = s.getChildren();
1558
+ for (let c = 0; c < p.length; c++) s.insertBefore(p[c]);
1559
+ s.remove();
1560
+ }
1561
+ });
1562
+ else {
1563
+ if (u.length === 1) {
1564
+ var r = u[0];
1565
+ if (r = a(r) ? r : $(r, a), r !== null) {
1566
+ r.setURL(x), e !== void 0 && r.setTarget(e), t !== null && r.setRel(t), n !== void 0 && r.setTitle(n);
1567
+ return;
1568
+ }
1569
+ }
1570
+ let s = null, p = null;
1571
+ u.forEach((c) => {
1572
+ var i = c.getParent();
1573
+ if (i !== p && i !== null && (!k.$isElementNode(c) || c.isInline())) if (a(i)) p = i, i.setURL(x), e !== void 0 && i.setTarget(e), t !== null && p.setRel(t), n !== void 0 && p.setTitle(n);
1574
+ else if (i.is(s) || (s = i, p = l(x, { rel: t, target: e }), a(i) ? c.getPreviousSibling() === null ? i.insertBefore(p) : i.insertAfter(p) : c.insertBefore(p)), a(c)) {
1575
+ if (!c.is(p)) {
1576
+ if (p !== null) {
1577
+ i = c.getChildren();
1578
+ for (let N = 0; N < i.length; N++) p.append(i[N]);
1579
+ }
1580
+ c.remove();
1581
+ }
1582
+ } else p !== null && p.append(c);
1583
+ });
1584
+ }
1585
+ }, ue;
1586
+ }
1587
+ var Le, ze;
1588
+ function Ze() {
1589
+ return ze || (ze = 1, Le = process.env.NODE_ENV === "development" ? ft() : dt()), Le;
1590
+ }
1591
+ var Ce = {}, de = {}, We;
1592
+ function gt() {
1593
+ if (We) return de;
1594
+ We = 1;
1595
+ var f = le(), k = he();
1596
+ class W extends f.ElementNode {
1597
+ /** @internal */
1598
+ static getType() {
1599
+ return "mark";
1600
+ }
1601
+ static clone(_) {
1602
+ return new W(Array.from(_.__ids), _.__key);
1603
+ }
1604
+ static importDOM() {
1605
+ return null;
1606
+ }
1607
+ static importJSON(_) {
1608
+ const $ = q(_.ids);
1609
+ return $.setFormat(_.format), $.setIndent(_.indent), $.setDirection(_.direction), $;
1610
+ }
1611
+ exportJSON() {
1612
+ return {
1613
+ ...super.exportJSON(),
1614
+ ids: this.getIDs(),
1615
+ type: "mark",
1616
+ version: 1
1617
+ };
1618
+ }
1619
+ constructor(_, $) {
1620
+ super($), this.__ids = _ || [];
1621
+ }
1622
+ createDOM(_) {
1623
+ const $ = document.createElement("mark");
1624
+ return k.addClassNamesToElement($, _.theme.mark), this.__ids.length > 1 && k.addClassNamesToElement($, _.theme.markOverlap), $;
1625
+ }
1626
+ updateDOM(_, $, x) {
1627
+ const u = _.__ids, e = this.__ids, n = u.length, t = e.length, r = x.theme.markOverlap;
1628
+ return n !== t && (n === 1 ? t === 2 && k.addClassNamesToElement($, r) : t === 1 && k.removeClassNamesFromElement($, r)), !1;
1629
+ }
1630
+ hasID(_) {
1631
+ const $ = this.getIDs();
1632
+ for (let x = 0; x < $.length; x++)
1633
+ if (_ === $[x])
1634
+ return !0;
1635
+ return !1;
1636
+ }
1637
+ getIDs() {
1638
+ const _ = this.getLatest();
1639
+ return j(_) ? _.__ids : [];
1640
+ }
1641
+ addID(_) {
1642
+ const $ = this.getWritable();
1643
+ if (j($)) {
1644
+ const x = $.__ids;
1645
+ $.__ids = x;
1646
+ for (let u = 0; u < x.length; u++)
1647
+ if (_ === x[u]) return;
1648
+ x.push(_);
1649
+ }
1650
+ }
1651
+ deleteID(_) {
1652
+ const $ = this.getWritable();
1653
+ if (j($)) {
1654
+ const x = $.__ids;
1655
+ $.__ids = x;
1656
+ for (let u = 0; u < x.length; u++)
1657
+ if (_ === x[u]) {
1658
+ x.splice(u, 1);
1659
+ return;
1660
+ }
1661
+ }
1662
+ }
1663
+ insertNewAfter(_, $ = !0) {
1664
+ const x = this.getParentOrThrow().insertNewAfter(_, $);
1665
+ if (f.$isElementNode(x)) {
1666
+ const u = q(this.__ids);
1667
+ return x.append(u), u;
1668
+ }
1669
+ return null;
1670
+ }
1671
+ canInsertTextBefore() {
1672
+ return !1;
1673
+ }
1674
+ canInsertTextAfter() {
1675
+ return !1;
1676
+ }
1677
+ canBeEmpty() {
1678
+ return !1;
1679
+ }
1680
+ isInline() {
1681
+ return !0;
1682
+ }
1683
+ extractWithChild(_, $, x) {
1684
+ if (!f.$isRangeSelection($) || x === "html")
1685
+ return !1;
1686
+ const u = $.anchor, e = $.focus, n = u.getNode(), t = e.getNode(), s = $.isBackward() ? u.offset - e.offset : e.offset - u.offset;
1687
+ return this.isParentOf(n) && this.isParentOf(t) && this.getTextContent().length === s;
1688
+ }
1689
+ excludeFromCopy(_) {
1690
+ return _ !== "clone";
1691
+ }
1692
+ }
1693
+ function q(y) {
1694
+ return f.$applyNodeReplacement(new W(y));
1695
+ }
1696
+ function j(y) {
1697
+ return y instanceof W;
1698
+ }
1699
+ function l(y) {
1700
+ const _ = y.getChildren();
1701
+ let $ = null;
1702
+ for (let x = 0; x < _.length; x++) {
1703
+ const u = _[x];
1704
+ $ === null ? y.insertBefore(u) : $.insertAfter(u), $ = u;
1705
+ }
1706
+ y.remove();
1707
+ }
1708
+ function a(y, _, $, x) {
1709
+ const u = y.getNodes(), e = y.anchor.offset, n = y.focus.offset, t = u.length, r = _ ? n : e, s = _ ? e : n;
1710
+ let p, c;
1711
+ for (let i = 0; i < t; i++) {
1712
+ const N = u[i];
1713
+ if (f.$isElementNode(c) && c.isParentOf(N))
1714
+ continue;
1715
+ const d = i === 0, E = i === t - 1;
1716
+ let S = null;
1717
+ if (f.$isTextNode(N)) {
1718
+ const I = N.getTextContentSize(), P = d ? r : 0, z = E ? s : I;
1719
+ if (P === 0 && z === 0)
1720
+ continue;
1721
+ const D = N.splitText(P, z);
1722
+ S = D.length > 1 && (D.length === 3 || d && !E || z === I) ? D[1] : D[0];
1723
+ } else {
1724
+ if (j(N))
1725
+ continue;
1726
+ f.$isElementNode(N) && N.isInline() && (S = N);
1727
+ }
1728
+ if (S !== null) {
1729
+ if (S && S.is(p))
1730
+ continue;
1731
+ const I = S.getParent();
1732
+ (I == null || !I.is(p)) && (c = void 0), p = I, c === void 0 && (c = (x || q)([$]), S.insertBefore(c)), c.append(S);
1733
+ } else
1734
+ p = void 0, c = void 0;
1735
+ }
1736
+ f.$isElementNode(c) && (_ ? c.selectStart() : c.selectEnd());
1737
+ }
1738
+ function g(y, _) {
1739
+ let $ = y;
1740
+ for (; $ !== null; ) {
1741
+ if (j($))
1742
+ return $.getIDs();
1743
+ if (f.$isTextNode($) && _ === $.getTextContentSize()) {
1744
+ const x = $.getNextSibling();
1745
+ if (j(x))
1746
+ return x.getIDs();
1747
+ }
1748
+ $ = $.getParent();
1749
+ }
1750
+ return null;
1751
+ }
1752
+ return de.$createMarkNode = q, de.$getMarkIDs = g, de.$isMarkNode = j, de.$unwrapMarkNode = l, de.$wrapSelectionInMarkNode = a, de.MarkNode = W, de;
1753
+ }
1754
+ var ge = {}, qe;
1755
+ function ht() {
1756
+ if (qe) return ge;
1757
+ qe = 1;
1758
+ var f = le(), k = he();
1759
+ class W extends f.ElementNode {
1760
+ static getType() {
1761
+ return "mark";
1762
+ }
1763
+ static clone(a) {
1764
+ return new W(Array.from(a.__ids), a.__key);
1765
+ }
1766
+ static importDOM() {
1767
+ return null;
1768
+ }
1769
+ static importJSON(a) {
1770
+ let g = q(a.ids);
1771
+ return g.setFormat(a.format), g.setIndent(a.indent), g.setDirection(a.direction), g;
1772
+ }
1773
+ exportJSON() {
1774
+ return { ...super.exportJSON(), ids: this.getIDs(), type: "mark", version: 1 };
1775
+ }
1776
+ constructor(a, g) {
1777
+ super(g), this.__ids = a || [];
1778
+ }
1779
+ createDOM(a) {
1780
+ let g = document.createElement("mark");
1781
+ return k.addClassNamesToElement(g, a.theme.mark), 1 < this.__ids.length && k.addClassNamesToElement(g, a.theme.markOverlap), g;
1782
+ }
1783
+ updateDOM(a, g, y) {
1784
+ a = a.__ids.length;
1785
+ let _ = this.__ids.length;
1786
+ return y = y.theme.markOverlap, a !== _ && (a === 1 ? _ === 2 && k.addClassNamesToElement(g, y) : _ === 1 && k.removeClassNamesFromElement(g, y)), !1;
1787
+ }
1788
+ hasID(a) {
1789
+ let g = this.getIDs();
1790
+ for (let y = 0; y < g.length; y++) if (a === g[y]) return !0;
1791
+ return !1;
1792
+ }
1793
+ getIDs() {
1794
+ let a = this.getLatest();
1795
+ return j(a) ? a.__ids : [];
1796
+ }
1797
+ addID(a) {
1798
+ var g = this.getWritable();
1799
+ if (j(g)) {
1800
+ let y = g.__ids;
1801
+ for (g.__ids = y, g = 0; g < y.length; g++) if (a === y[g]) return;
1802
+ y.push(a);
1803
+ }
1804
+ }
1805
+ deleteID(a) {
1806
+ var g = this.getWritable();
1807
+ if (j(g)) {
1808
+ let y = g.__ids;
1809
+ for (g.__ids = y, g = 0; g < y.length; g++) if (a === y[g]) {
1810
+ y.splice(g, 1);
1811
+ break;
1812
+ }
1813
+ }
1814
+ }
1815
+ insertNewAfter(a, g = !0) {
1816
+ return a = this.getParentOrThrow().insertNewAfter(a, g), f.$isElementNode(a) ? (g = q(this.__ids), a.append(g), g) : null;
1817
+ }
1818
+ canInsertTextBefore() {
1819
+ return !1;
1820
+ }
1821
+ canInsertTextAfter() {
1822
+ return !1;
1823
+ }
1824
+ canBeEmpty() {
1825
+ return !1;
1826
+ }
1827
+ isInline() {
1828
+ return !0;
1829
+ }
1830
+ extractWithChild(a, g, y) {
1831
+ if (!f.$isRangeSelection(g) || y === "html") return !1;
1832
+ let _ = g.anchor, $ = g.focus;
1833
+ return a = _.getNode(), y = $.getNode(), g = g.isBackward() ? _.offset - $.offset : $.offset - _.offset, this.isParentOf(a) && this.isParentOf(y) && this.getTextContent().length === g;
1834
+ }
1835
+ excludeFromCopy(a) {
1836
+ return a !== "clone";
1837
+ }
1838
+ }
1839
+ function q(l) {
1840
+ return f.$applyNodeReplacement(new W(l));
1841
+ }
1842
+ function j(l) {
1843
+ return l instanceof W;
1844
+ }
1845
+ return ge.$createMarkNode = q, ge.$getMarkIDs = function(l, a) {
1846
+ for (; l !== null; ) {
1847
+ if (j(l)) return l.getIDs();
1848
+ if (f.$isTextNode(l) && a === l.getTextContentSize()) {
1849
+ let g = l.getNextSibling();
1850
+ if (j(g)) return g.getIDs();
1851
+ }
1852
+ l = l.getParent();
1853
+ }
1854
+ return null;
1855
+ }, ge.$isMarkNode = j, ge.$unwrapMarkNode = function(l) {
1856
+ let a = l.getChildren(), g = null;
1857
+ for (let y = 0; y < a.length; y++) {
1858
+ let _ = a[y];
1859
+ g === null ? l.insertBefore(_) : g.insertAfter(_), g = _;
1860
+ }
1861
+ l.remove();
1862
+ }, ge.$wrapSelectionInMarkNode = function(l, a, g, y) {
1863
+ let _ = l.getNodes();
1864
+ var $ = l.anchor.offset, x = l.focus.offset;
1865
+ l = _.length;
1866
+ let u = a ? x : $;
1867
+ $ = a ? $ : x;
1868
+ let e, n;
1869
+ for (x = 0; x < l; x++) {
1870
+ var t = _[x];
1871
+ if (f.$isElementNode(n) && n.isParentOf(t)) continue;
1872
+ var r = x === 0;
1873
+ let p = x === l - 1;
1874
+ var s = null;
1875
+ if (f.$isTextNode(t)) {
1876
+ s = t.getTextContentSize();
1877
+ let c = r ? u : 0, i = p ? $ : s;
1878
+ if (c === 0 && i === 0) continue;
1879
+ t = t.splitText(c, i), s = 1 < t.length && (t.length === 3 || r && !p || i === s) ? t[1] : t[0];
1880
+ } else {
1881
+ if (j(t)) continue;
1882
+ f.$isElementNode(t) && t.isInline() && (s = t);
1883
+ }
1884
+ s !== null ? s && s.is(e) || (r = s.getParent(), r != null && r.is(e) || (n = void 0), e = r, n === void 0 && (n = (y || q)([g]), s.insertBefore(n)), n.append(s)) : n = e = void 0;
1885
+ }
1886
+ f.$isElementNode(n) && (a ? n.selectStart() : n.selectEnd());
1887
+ }, ge.MarkNode = W, ge;
1888
+ }
1889
+ var Re, Ge;
1890
+ function et() {
1891
+ return Ge || (Ge = 1, Re = process.env.NODE_ENV === "development" ? gt() : ht()), Re;
1892
+ }
1893
+ var Ve;
1894
+ function mt() {
1895
+ if (Ve) return Ce;
1896
+ Ve = 1;
1897
+ var f = Qe(), k = Ze(), W = et(), q = he(), j = le(), l = Xe;
1898
+ const a = Object.freeze({
1899
+ " ": "\\t",
1900
+ "\n": "\\n"
1901
+ }), g = new RegExp(Object.keys(a).join("|"), "g"), y = Object.freeze({
1902
+ ancestorHasNextSibling: "|",
1903
+ ancestorIsLastChild: " ",
1904
+ hasNextSibling: "├",
1905
+ isLastChild: "└",
1906
+ selectedChar: "^",
1907
+ selectedLine: ">"
1908
+ });
1909
+ function _({
1910
+ treeTypeButtonClassName: o,
1911
+ timeTravelButtonClassName: m,
1912
+ timeTravelPanelSliderClassName: L,
1913
+ timeTravelPanelButtonClassName: R,
1914
+ viewClassName: w,
1915
+ timeTravelPanelClassName: O,
1916
+ editor: v
1917
+ }) {
1918
+ const [C, A] = l.useState([]), [F, K] = l.useState(""), [B, b] = l.useState(!1), [M, G] = l.useState(!1), Y = l.useRef(0), ee = l.useRef(null), H = l.useRef(null), [J, re] = l.useState(!1), [ie, fe] = l.useState(!1), [oe, tt] = l.useState(!1), Se = l.useRef(null), me = $(v), xe = l.useCallback((X) => {
1919
+ const se = n(v, me, M);
1920
+ K(se), B || A((ce) => [...ce, [Date.now(), X]]);
1921
+ }, [me, v, B, M]);
1922
+ l.useEffect(() => {
1923
+ const X = v.getEditorState();
1924
+ !oe && X._nodeMap.size < 1e3 && K(n(v, me, M));
1925
+ }, [me, v, oe, M]), l.useEffect(() => q.mergeRegister(v.registerUpdateListener(({
1926
+ editorState: X
1927
+ }) => {
1928
+ !oe && X._nodeMap.size > 1e3 && (Se.current = X, fe(!0), !oe) || xe(X);
1929
+ }), v.registerEditableListener(() => {
1930
+ const X = n(v, me, M);
1931
+ K(X);
1932
+ })), [me, v, M, ie, xe, oe]);
1933
+ const pe = C.length;
1934
+ return l.useEffect(() => {
1935
+ if (J) {
1936
+ let X;
1937
+ const se = () => {
1938
+ const ce = Y.current;
1939
+ if (ce === pe - 1) {
1940
+ re(!1);
1941
+ return;
1942
+ }
1943
+ const Ne = C[ce][0], nt = C[ce + 1][0] - Ne;
1944
+ X = setTimeout(() => {
1945
+ Y.current++;
1946
+ const ke = Y.current, Pe = H.current;
1947
+ Pe !== null && (Pe.value = String(ke)), v.setEditorState(C[ke][1]), se();
1948
+ }, nt);
1949
+ };
1950
+ return se(), () => {
1951
+ clearTimeout(X);
1952
+ };
1953
+ }
1954
+ }, [C, J, v, pe]), l.useEffect(() => {
1955
+ const X = ee.current;
1956
+ if (X !== null)
1957
+ return X.__lexicalEditor = v, () => {
1958
+ X.__lexicalEditor = null;
1959
+ };
1960
+ }, [v]), /* @__PURE__ */ l.createElement("div", {
1961
+ className: w
1962
+ }, !oe && ie ? /* @__PURE__ */ l.createElement("div", {
1963
+ style: {
1964
+ padding: 20
1965
+ }
1966
+ }, /* @__PURE__ */ l.createElement("span", {
1967
+ style: {
1968
+ marginRight: 20
1969
+ }
1970
+ }, "Detected large EditorState, this can impact debugging performance."), /* @__PURE__ */ l.createElement("button", {
1971
+ onClick: () => {
1972
+ tt(!0);
1973
+ const X = Se.current;
1974
+ X !== null && (Se.current = null, xe(X));
1975
+ },
1976
+ style: {
1977
+ background: "transparent",
1978
+ border: "1px solid white",
1979
+ color: "white",
1980
+ cursor: "pointer",
1981
+ padding: 5
1982
+ }
1983
+ }, "Show full tree")) : null, oe ? null : /* @__PURE__ */ l.createElement("button", {
1984
+ onClick: () => G(!M),
1985
+ className: o,
1986
+ type: "button"
1987
+ }, M ? "Tree" : "Export DOM"), !B && (oe || !ie) && pe > 2 && /* @__PURE__ */ l.createElement("button", {
1988
+ onClick: () => {
1989
+ const X = v.getRootElement();
1990
+ X !== null && (X.contentEditable = "false", Y.current = pe - 1, b(!0));
1991
+ },
1992
+ className: m,
1993
+ type: "button"
1994
+ }, "Time Travel"), (oe || !ie) && /* @__PURE__ */ l.createElement("pre", {
1995
+ ref: ee
1996
+ }, F), B && (oe || !ie) && /* @__PURE__ */ l.createElement("div", {
1997
+ className: O
1998
+ }, /* @__PURE__ */ l.createElement("button", {
1999
+ className: R,
2000
+ onClick: () => {
2001
+ Y.current === pe - 1 && (Y.current = 1), re(!J);
2002
+ },
2003
+ type: "button"
2004
+ }, J ? "Pause" : "Play"), /* @__PURE__ */ l.createElement("input", {
2005
+ className: L,
2006
+ ref: H,
2007
+ onChange: (X) => {
2008
+ const se = Number(X.target.value), ce = C[se];
2009
+ ce && (Y.current = se, v.setEditorState(ce[1]));
2010
+ },
2011
+ type: "range",
2012
+ min: "1",
2013
+ max: pe - 1
2014
+ }), /* @__PURE__ */ l.createElement("button", {
2015
+ className: R,
2016
+ onClick: () => {
2017
+ const X = v.getRootElement();
2018
+ if (X !== null) {
2019
+ X.contentEditable = "true";
2020
+ const se = C.length - 1, ce = C[se];
2021
+ v.setEditorState(ce[1]);
2022
+ const Ne = H.current;
2023
+ Ne !== null && (Ne.value = String(se)), b(!1), re(!1);
2024
+ }
2025
+ },
2026
+ type: "button"
2027
+ }, "Exit")));
2028
+ }
2029
+ function $(o) {
2030
+ const [m, L] = l.useState([]);
2031
+ return l.useEffect(() => {
2032
+ const R = /* @__PURE__ */ new Set();
2033
+ for (const [w] of o._commands)
2034
+ R.add(o.registerCommand(w, (O) => (L((v) => {
2035
+ const C = [...v];
2036
+ return C.push({
2037
+ payload: O,
2038
+ type: w.type ? w.type : "UNKNOWN"
2039
+ }), C.length > 10 && C.shift(), C;
2040
+ }), !1), j.COMMAND_PRIORITY_HIGH));
2041
+ return () => R.forEach((w) => w());
2042
+ }, [o]), l.useMemo(() => m, [m]);
2043
+ }
2044
+ function x(o) {
2045
+ let m = "";
2046
+ const L = I(o);
2047
+ m += `: range ${L !== "" ? `{ ${L} }` : ""} ${o.style !== "" ? `{ style: ${o.style} } ` : ""}`;
2048
+ const R = o.anchor, w = o.focus, O = R.offset, v = w.offset;
2049
+ return m += `
2050
+ ├ anchor { key: ${R.key}, offset: ${O === null ? "null" : O}, type: ${R.type} }`, m += `
2051
+ └ focus { key: ${w.key}, offset: ${v === null ? "null" : v}, type: ${w.type} }`, m;
2052
+ }
2053
+ function u(o) {
2054
+ return `: node
2055
+ └ [${Array.from(o._nodes).join(", ")}]`;
2056
+ }
2057
+ function e(o) {
2058
+ return `: grid
2059
+ └ { grid: ${o.gridKey}, anchorCell: ${o.anchor.key}, focusCell: ${o.focus.key} }`;
2060
+ }
2061
+ function n(o, m, L) {
2062
+ const R = o.getEditorState(), w = o._config, O = o._compositionKey, v = o._editable;
2063
+ if (L) {
2064
+ let F = "";
2065
+ return R.read(() => {
2066
+ F = V(f.$generateHtmlFromNodes(o));
2067
+ }), F;
2068
+ }
2069
+ let C = ` root
2070
+ `;
2071
+ const A = R.read(() => {
2072
+ const F = j.$getSelection();
2073
+ return t(j.$getRoot(), (K, B) => {
2074
+ const M = `(${K.getKey()})`, G = K.getType() || "", Y = K.isSelected(), ee = W.$isMarkNode(K) ? ` id: [ ${K.getIDs().join(", ")} ] ` : "";
2075
+ C += `${Y ? y.selectedLine : " "} ${B.join(" ")} ${M} ${G} ${ee} ${s(K)}
2076
+ `, C += U({
2077
+ indent: B,
2078
+ isSelected: Y,
2079
+ node: K,
2080
+ nodeKeyDisplay: M,
2081
+ selection: F,
2082
+ typeDisplay: G
2083
+ });
2084
+ }), F === null ? ": null" : j.$isRangeSelection(F) ? x(F) : j.DEPRECATED_$isGridSelection(F) ? e(F) : u(F);
2085
+ });
2086
+ if (C += `
2087
+ selection` + A, C += `
2088
+
2089
+ commands:`, m.length)
2090
+ for (const {
2091
+ type: F,
2092
+ payload: K
2093
+ } of m)
2094
+ C += `
2095
+ └ { type: ${F}, payload: ${K instanceof Event ? K.constructor.name : K} }`;
2096
+ else
2097
+ C += `
2098
+ └ None dispatched.`;
2099
+ return C += `
2100
+
2101
+ editor:`, C += `
2102
+ └ namespace ${w.namespace}`, O !== null && (C += `
2103
+ └ compositionKey ${O}`), C += `
2104
+ └ editable ${String(v)}`, C;
2105
+ }
2106
+ function t(o, m, L = []) {
2107
+ const R = o.getChildren(), w = R.length;
2108
+ R.forEach((O, v) => {
2109
+ m(O, L.concat(v === w - 1 ? y.isLastChild : y.hasNextSibling)), j.$isElementNode(O) && t(O, m, L.concat(v === w - 1 ? y.ancestorIsLastChild : y.ancestorHasNextSibling));
2110
+ });
2111
+ }
2112
+ function r(o) {
2113
+ return Object.entries(a).reduce((m, [L, R]) => m.replace(new RegExp(L, "g"), String(R)), o);
2114
+ }
2115
+ function s(o) {
2116
+ if (j.$isTextNode(o)) {
2117
+ const m = o.getTextContent(), L = m.length === 0 ? "(empty)" : `"${r(m)}"`, R = N(o);
2118
+ return [L, R.length !== 0 ? `{ ${R} }` : null].filter(Boolean).join(" ").trim();
2119
+ } else if (k.$isLinkNode(o)) {
2120
+ const m = o.getURL(), L = m.length === 0 ? "(empty)" : `"${r(m)}"`, R = d(o);
2121
+ return [L, R.length !== 0 ? `{ ${R} }` : null].filter(Boolean).join(" ").trim();
2122
+ } else
2123
+ return "";
2124
+ }
2125
+ const p = [(o) => o.hasFormat("bold") && "Bold", (o) => o.hasFormat("code") && "Code", (o) => o.hasFormat("italic") && "Italic", (o) => o.hasFormat("strikethrough") && "Strikethrough", (o) => o.hasFormat("subscript") && "Subscript", (o) => o.hasFormat("superscript") && "Superscript", (o) => o.hasFormat("underline") && "Underline"], c = [(o) => o.isDirectionless() && "Directionless", (o) => o.isUnmergeable() && "Unmergeable"], i = [(o) => o.isToken() && "Token", (o) => o.isSegmented() && "Segmented"];
2126
+ function N(o) {
2127
+ return [I(o), E(o), S(o)].filter(Boolean).join(", ");
2128
+ }
2129
+ function d(o) {
2130
+ return [P(o), z(o), D(o)].filter(Boolean).join(", ");
2131
+ }
2132
+ function E(o) {
2133
+ let m = c.map((L) => L(o)).filter(Boolean).join(", ").toLocaleLowerCase();
2134
+ return m !== "" && (m = "detail: " + m), m;
2135
+ }
2136
+ function S(o) {
2137
+ let m = i.map((L) => L(o)).filter(Boolean).join(", ").toLocaleLowerCase();
2138
+ return m !== "" && (m = "mode: " + m), m;
2139
+ }
2140
+ function I(o) {
2141
+ let m = p.map((L) => L(o)).filter(Boolean).join(", ").toLocaleLowerCase();
2142
+ return m !== "" && (m = "format: " + m), m;
2143
+ }
2144
+ function P(o) {
2145
+ let m = o.getTarget();
2146
+ return m != null && (m = "target: " + m), m;
2147
+ }
2148
+ function z(o) {
2149
+ let m = o.getRel();
2150
+ return m != null && (m = "rel: " + m), m;
2151
+ }
2152
+ function D(o) {
2153
+ let m = o.getTitle();
2154
+ return m != null && (m = "title: " + m), m;
2155
+ }
2156
+ function U({
2157
+ indent: o,
2158
+ isSelected: m,
2159
+ node: L,
2160
+ nodeKeyDisplay: R,
2161
+ selection: w,
2162
+ typeDisplay: O
2163
+ }) {
2164
+ if (!j.$isTextNode(L) || !j.$isRangeSelection(w) || !m || j.$isElementNode(L))
2165
+ return "";
2166
+ const v = w.anchor, C = w.focus;
2167
+ if (L.getTextContent() === "" || v.getNode() === w.focus.getNode() && v.offset === C.offset)
2168
+ return "";
2169
+ const [A, F] = T(L, w);
2170
+ if (A === F)
2171
+ return "";
2172
+ const K = o[o.length - 1] === y.hasNextSibling ? y.ancestorHasNextSibling : y.ancestorIsLastChild, B = [...o.slice(0, o.length - 1), K], b = Array(A + 1).fill(" "), M = Array(F - A).fill(y.selectedChar), G = O.length + 3, Y = Array(R.length + G).fill(" ");
2173
+ return [y.selectedLine, B.join(" "), [...Y, ...b, ...M].join("")].join(" ") + `
2174
+ `;
2175
+ }
2176
+ function V(o) {
2177
+ const m = document.createElement("div");
2178
+ return m.innerHTML = o.trim(), h(m, 0).innerHTML;
2179
+ }
2180
+ function h(o, m) {
2181
+ const L = new Array(m++ + 1).join(" "), R = new Array(m - 1).join(" ");
2182
+ let w;
2183
+ for (let O = 0; O < o.children.length; O++)
2184
+ w = document.createTextNode(`
2185
+ ` + L), o.insertBefore(w, o.children[O]), h(o.children[O], m), o.lastElementChild === o.children[O] && (w = document.createTextNode(`
2186
+ ` + R), o.appendChild(w));
2187
+ return o;
2188
+ }
2189
+ function T(o, m) {
2190
+ const L = m.anchor, R = m.focus, w = o.getTextContent(), O = w.length;
2191
+ let v = -1, C = -1;
2192
+ if (L.type === "text" && R.type === "text") {
2193
+ const K = L.getNode(), B = R.getNode();
2194
+ K === B && o === K && L.offset !== R.offset ? [v, C] = L.offset < R.offset ? [L.offset, R.offset] : [R.offset, L.offset] : o === K ? [v, C] = K.isBefore(B) ? [L.offset, O] : [0, L.offset] : o === B ? [v, C] = B.isBefore(K) ? [R.offset, O] : [0, R.offset] : [v, C] = [0, O];
2195
+ }
2196
+ const A = (w.slice(0, v).match(g) || []).length, F = (w.slice(v, C).match(g) || []).length;
2197
+ return [v + A, C + A + F];
2198
+ }
2199
+ return Ce.TreeView = _, Ce;
2200
+ }
2201
+ var Oe = {}, Je;
2202
+ function pt() {
2203
+ if (Je) return Oe;
2204
+ Je = 1;
2205
+ var f = Qe(), k = Ze(), W = et(), q = he(), j = le(), l = Xe;
2206
+ let a = Object.freeze({ " ": "\\t", "\n": "\\n" }), g = new RegExp(Object.keys(a).join("|"), "g"), y = Object.freeze({ ancestorHasNextSibling: "|", ancestorIsLastChild: " ", hasNextSibling: "├", isLastChild: "└", selectedChar: "^", selectedLine: ">" });
2207
+ function _(d) {
2208
+ let [E, S] = l.useState([]);
2209
+ return l.useEffect(() => {
2210
+ let I = /* @__PURE__ */ new Set();
2211
+ for (let [P] of d._commands) I.add(d.registerCommand(P, (z) => (S((D) => (D = [...D], D.push({ payload: z, type: P.type ? P.type : "UNKNOWN" }), 10 < D.length && D.shift(), D)), !1), j.COMMAND_PRIORITY_HIGH));
2212
+ return () => I.forEach((P) => P());
2213
+ }, [d]), l.useMemo(() => E, [E]);
2214
+ }
2215
+ function $(d) {
2216
+ let E = "";
2217
+ var S = c(d);
2218
+ E += `: range ${S !== "" ? `{ ${S} }` : ""} ${d.style !== "" ? `{ style: ${d.style} } ` : ""}`, S = d.anchor, d = d.focus;
2219
+ let I = S.offset, P = d.offset;
2220
+ return E += `
2221
+ ├ anchor { key: ${S.key}, offset: ${I === null ? "null" : I}, type: ${S.type} }`, E += `
2222
+ └ focus { key: ${d.key}, offset: ${P === null ? "null" : P}, type: ${d.type} }`;
2223
+ }
2224
+ function x(d, E, S) {
2225
+ let I = d.getEditorState(), P = d._config, z = d._compositionKey, D = d._editable;
2226
+ if (S) {
2227
+ let V = "";
2228
+ return I.read(() => {
2229
+ var h = f.$generateHtmlFromNodes(d);
2230
+ let T = document.createElement("div");
2231
+ T.innerHTML = h.trim(), V = N(T, 0).innerHTML;
2232
+ }), V;
2233
+ }
2234
+ let U = ` root
2235
+ `;
2236
+ if (S = I.read(() => {
2237
+ const V = j.$getSelection();
2238
+ return u(j.$getRoot(), (h, T) => {
2239
+ const o = `(${h.getKey()})`, m = h.getType() || "", L = h.isSelected(), R = W.$isMarkNode(h) ? ` id: [ ${h.getIDs().join(", ")} ] ` : "";
2240
+ var w = U, O = L ? y.selectedLine : " ", v = T.join(" ");
2241
+ if (j.$isTextNode(h)) {
2242
+ var C = h.getTextContent(), A = C.length === 0 ? "(empty)" : `"${e(C)}"`;
2243
+ C = [c(h), s(h), p(h)].filter(Boolean).join(", "), C = [A, C.length !== 0 ? `{ ${C} }` : null].filter(Boolean).join(" ").trim();
2244
+ } else if (k.$isLinkNode(h)) {
2245
+ C = h.getURL(), C = C.length === 0 ? "(empty)" : `"${e(C)}"`, A = h.getTarget(), A != null && (A = "target: " + A);
2246
+ var F = Boolean, K = h.getRel();
2247
+ K != null && (K = "rel: " + K);
2248
+ let B = h.getTitle();
2249
+ B != null && (B = "title: " + B), A = [A, K, B].filter(F).join(", "), C = [C, A.length !== 0 ? `{ ${A} }` : null].filter(Boolean).join(" ").trim();
2250
+ } else C = "";
2251
+ U = w + `${O} ${v} ${o} ${m} ${R} ${C}
2252
+ `, U += i({ indent: T, isSelected: L, node: h, nodeKeyDisplay: o, selection: V, typeDisplay: m });
2253
+ }), V === null ? ": null" : j.$isRangeSelection(V) ? $(V) : j.DEPRECATED_$isGridSelection(V) ? `: grid
2254
+ └ { grid: ${V.gridKey}, anchorCell: ${V.anchor.key}, focusCell: ${V.focus.key} }` : `: node
2255
+ └ [${Array.from(V._nodes).join(", ")}]`;
2256
+ }), U += `
2257
+ selection` + S, U += `
2258
+
2259
+ commands:`, E.length) for (let { type: V, payload: h } of E) U += `
2260
+ └ { type: ${V}, payload: ${h instanceof Event ? h.constructor.name : h} }`;
2261
+ else U += `
2262
+ └ None dispatched.`;
2263
+ return U += `
2264
+
2265
+ editor:`, U += `
2266
+ └ namespace ${P.namespace}`, z !== null && (U += `
2267
+ └ compositionKey ${z}`), U += `
2268
+ └ editable ${String(D)}`;
2269
+ }
2270
+ function u(d, E, S = []) {
2271
+ d = d.getChildren();
2272
+ let I = d.length;
2273
+ d.forEach((P, z) => {
2274
+ E(P, S.concat(z === I - 1 ? y.isLastChild : y.hasNextSibling)), j.$isElementNode(P) && u(P, E, S.concat(z === I - 1 ? y.ancestorIsLastChild : y.ancestorHasNextSibling));
2275
+ });
2276
+ }
2277
+ function e(d) {
2278
+ return Object.entries(a).reduce((E, [S, I]) => E.replace(new RegExp(S, "g"), String(I)), d);
2279
+ }
2280
+ let n = [(d) => d.hasFormat("bold") && "Bold", (d) => d.hasFormat("code") && "Code", (d) => d.hasFormat("italic") && "Italic", (d) => d.hasFormat("strikethrough") && "Strikethrough", (d) => d.hasFormat("subscript") && "Subscript", (d) => d.hasFormat("superscript") && "Superscript", (d) => d.hasFormat("underline") && "Underline"], t = [(d) => d.isDirectionless() && "Directionless", (d) => d.isUnmergeable() && "Unmergeable"], r = [(d) => d.isToken() && "Token", (d) => d.isSegmented() && "Segmented"];
2281
+ function s(d) {
2282
+ let E = t.map((S) => S(d)).filter(Boolean).join(", ").toLocaleLowerCase();
2283
+ return E !== "" && (E = "detail: " + E), E;
2284
+ }
2285
+ function p(d) {
2286
+ let E = r.map((S) => S(d)).filter(Boolean).join(", ").toLocaleLowerCase();
2287
+ return E !== "" && (E = "mode: " + E), E;
2288
+ }
2289
+ function c(d) {
2290
+ let E = n.map((S) => S(d)).filter(Boolean).join(", ").toLocaleLowerCase();
2291
+ return E !== "" && (E = "format: " + E), E;
2292
+ }
2293
+ function i({ indent: d, isSelected: E, node: S, nodeKeyDisplay: I, selection: P, typeDisplay: z }) {
2294
+ if (!j.$isTextNode(S) || !j.$isRangeSelection(P) || !E || j.$isElementNode(S)) return "";
2295
+ E = P.anchor;
2296
+ var D = P.focus;
2297
+ if (S.getTextContent() === "" || E.getNode() === P.focus.getNode() && E.offset === D.offset) return "";
2298
+ D = P.anchor;
2299
+ let U = P.focus, V = S.getTextContent(), h = V.length;
2300
+ if (E = P = -1, D.type === "text" && U.type === "text") {
2301
+ let m = D.getNode(), L = U.getNode();
2302
+ m === L && S === m && D.offset !== U.offset ? [P, E] = D.offset < U.offset ? [D.offset, U.offset] : [
2303
+ U.offset,
2304
+ D.offset
2305
+ ] : S === m ? [P, E] = m.isBefore(L) ? [D.offset, h] : [0, D.offset] : S === L ? [P, E] = L.isBefore(m) ? [U.offset, h] : [0, U.offset] : [P, E] = [0, h];
2306
+ }
2307
+ S = (V.slice(0, P).match(g) || []).length, D = (V.slice(P, E).match(g) || []).length;
2308
+ let [T, o] = [P + S, E + S + D];
2309
+ return T === o ? "" : (S = d[d.length - 1] === y.hasNextSibling ? y.ancestorHasNextSibling : y.ancestorIsLastChild, d = [...d.slice(0, d.length - 1), S], S = Array(T + 1).fill(" "), P = Array(o - T).fill(y.selectedChar), I = Array(I.length + (z.length + 3)).fill(" "), [y.selectedLine, d.join(" "), [...I, ...S, ...P].join("")].join(" ") + `
2310
+ `);
2311
+ }
2312
+ function N(d, E) {
2313
+ let S = Array(E++ + 1).join(" "), I = Array(E - 1).join(" "), P;
2314
+ for (let z = 0; z < d.children.length; z++) P = document.createTextNode(`
2315
+ ` + S), d.insertBefore(P, d.children[z]), N(d.children[z], E), d.lastElementChild === d.children[z] && (P = document.createTextNode(`
2316
+ ` + I), d.appendChild(P));
2317
+ return d;
2318
+ }
2319
+ return Oe.TreeView = function({ treeTypeButtonClassName: d, timeTravelButtonClassName: E, timeTravelPanelSliderClassName: S, timeTravelPanelButtonClassName: I, viewClassName: P, timeTravelPanelClassName: z, editor: D }) {
2320
+ let [U, V] = l.useState([]), [h, T] = l.useState(""), [o, m] = l.useState(!1), [L, R] = l.useState(!1), w = l.useRef(0), O = l.useRef(null), v = l.useRef(null), [C, A] = l.useState(!1), [F, K] = l.useState(!1), [B, b] = l.useState(!1), M = l.useRef(null), G = _(D), Y = l.useCallback((H) => {
2321
+ const J = x(D, G, L);
2322
+ T(J), o || V((re) => [...re, [Date.now(), H]]);
2323
+ }, [
2324
+ G,
2325
+ D,
2326
+ o,
2327
+ L
2328
+ ]);
2329
+ l.useEffect(() => {
2330
+ let H = D.getEditorState();
2331
+ !B && 1e3 > H._nodeMap.size && T(x(D, G, L));
2332
+ }, [G, D, B, L]), l.useEffect(() => q.mergeRegister(D.registerUpdateListener(({ editorState: H }) => {
2333
+ !B && 1e3 < H._nodeMap.size && (M.current = H, K(!0), !B) || Y(H);
2334
+ }), D.registerEditableListener(() => {
2335
+ let H = x(D, G, L);
2336
+ T(H);
2337
+ })), [G, D, L, F, Y, B]);
2338
+ let ee = U.length;
2339
+ return l.useEffect(() => {
2340
+ if (C) {
2341
+ let H, J = () => {
2342
+ const re = w.current;
2343
+ re === ee - 1 ? A(!1) : H = setTimeout(() => {
2344
+ w.current++;
2345
+ const ie = w.current, fe = v.current;
2346
+ fe !== null && (fe.value = String(ie)), D.setEditorState(U[ie][1]), J();
2347
+ }, U[re + 1][0] - U[re][0]);
2348
+ };
2349
+ return J(), () => {
2350
+ clearTimeout(H);
2351
+ };
2352
+ }
2353
+ }, [U, C, D, ee]), l.useEffect(() => {
2354
+ let H = O.current;
2355
+ if (H !== null) return H.__lexicalEditor = D, () => {
2356
+ H.__lexicalEditor = null;
2357
+ };
2358
+ }, [D]), l.createElement("div", { className: P }, !B && F ? l.createElement("div", { style: { padding: 20 } }, l.createElement("span", { style: { marginRight: 20 } }, "Detected large EditorState, this can impact debugging performance."), l.createElement("button", { onClick: () => {
2359
+ b(!0);
2360
+ let H = M.current;
2361
+ H !== null && (M.current = null, Y(H));
2362
+ }, style: {
2363
+ background: "transparent",
2364
+ border: "1px solid white",
2365
+ color: "white",
2366
+ cursor: "pointer",
2367
+ padding: 5
2368
+ } }, "Show full tree")) : null, B ? null : l.createElement("button", { onClick: () => R(!L), className: d, type: "button" }, L ? "Tree" : "Export DOM"), !o && (B || !F) && 2 < ee && l.createElement("button", { onClick: () => {
2369
+ let H = D.getRootElement();
2370
+ H !== null && (H.contentEditable = "false", w.current = ee - 1, m(!0));
2371
+ }, className: E, type: "button" }, "Time Travel"), (B || !F) && l.createElement("pre", { ref: O }, h), o && (B || !F) && l.createElement("div", { className: z }, l.createElement("button", {
2372
+ className: I,
2373
+ onClick: () => {
2374
+ w.current === ee - 1 && (w.current = 1), A(!C);
2375
+ },
2376
+ type: "button"
2377
+ }, C ? "Pause" : "Play"), l.createElement("input", { className: S, ref: v, onChange: (H) => {
2378
+ H = Number(H.target.value);
2379
+ let J = U[H];
2380
+ J && (w.current = H, D.setEditorState(J[1]));
2381
+ }, type: "range", min: "1", max: ee - 1 }), l.createElement("button", { className: I, onClick: () => {
2382
+ var H = D.getRootElement();
2383
+ if (H !== null) {
2384
+ H.contentEditable = "true", H = U.length - 1, D.setEditorState(U[H][1]);
2385
+ let J = v.current;
2386
+ J !== null && (J.value = String(H)), m(!1), A(!1);
2387
+ }
2388
+ }, type: "button" }, "Exit")));
2389
+ }, Oe;
2390
+ }
2391
+ var we, Ye;
2392
+ function Nt() {
2393
+ return Ye || (Ye = 1, we = process.env.NODE_ENV === "development" ? mt() : pt()), we;
2394
+ }
2395
+ var _t = Nt();
2396
+ const Et = () => {
2397
+ const [f] = it.useLexicalComposerContext();
2398
+ return /* @__PURE__ */ rt(
2399
+ _t.TreeView,
2400
+ {
2401
+ viewClassName: "tree-view-output",
2402
+ editor: f
2403
+ }
2404
+ );
2405
+ };
2406
+ export {
2407
+ Et as T,
2408
+ Te as a,
2409
+ he as b,
2410
+ Ze as c,
2411
+ Qe as r
2412
+ };