@ryuzaki13/react-foundation-ui 3.12.0 → 3.13.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.
- package/dist/chunks/{TextEditorLexicalClient-apy-Cugj.js → TextEditorLexicalClient-BwKsJG31.js} +330 -321
- package/dist/chunks/TextEditorLexicalClient-BwKsJG31.js.map +1 -0
- package/dist/chunks/types-CxXyru6U.js.map +1 -1
- package/dist/text-editor/LinkDialog.d.ts +2 -1
- package/dist/text-editor/LinkDialog.d.ts.map +1 -1
- package/dist/text-editor/TextEditorDialogs.d.ts +3 -2
- package/dist/text-editor/TextEditorDialogs.d.ts.map +1 -1
- package/dist/text-editor/TextEditorLexicalClient.d.ts +1 -1
- package/dist/text-editor/TextEditorLexicalClient.d.ts.map +1 -1
- package/dist/text-editor/editorModel.d.ts +18 -1
- package/dist/text-editor/editorModel.d.ts.map +1 -1
- package/dist/text-editor/index.d.ts +1 -1
- package/dist/text-editor/index.d.ts.map +1 -1
- package/dist/text-editor/index.js +1 -1
- package/dist/text-editor/model/hooks/useTextEditorLexicalActions.d.ts.map +1 -1
- package/dist/text-editor/toolbar/LinkButtons.d.ts +2 -1
- package/dist/text-editor/toolbar/LinkButtons.d.ts.map +1 -1
- package/dist/text-editor/toolbar/TextEditorToolbarLexical.d.ts.map +1 -1
- package/package.json +1 -1
- package/storybook-static/assets/{Badge-Dn4r-dgK.js → Badge-Bg4hGIjf.js} +1 -1
- package/storybook-static/assets/{Badge.stories-C8jgD6Tm.js → Badge.stories-DvgJJzd7.js} +1 -1
- package/storybook-static/assets/{BadgeList-DoZGQ7qG.js → BadgeList-OoSc_pn4.js} +1 -1
- package/storybook-static/assets/{BarcodeScannerDialog.stories-SWsYyoae.js → BarcodeScannerDialog.stories-e2CjbCdx.js} +1 -1
- package/storybook-static/assets/{Button-BHqigqOj.js → Button-CQU_2OUm.js} +1 -1
- package/storybook-static/assets/{Button-DLYgesJU.js → Button-CmAd-UMc.js} +1 -1
- package/storybook-static/assets/{Button.stories-B-YCCpsv.js → Button.stories-CdXudj27.js} +1 -1
- package/storybook-static/assets/{CalendarView-DC9-KqBg.js → CalendarView-CfpxnEan.js} +1 -1
- package/storybook-static/assets/{CheckBox-BhDEikPn.js → CheckBox-CtrHIcza.js} +1 -1
- package/storybook-static/assets/{CheckBox-A1DE9OKH.js → CheckBox-HehqIiiV.js} +1 -1
- package/storybook-static/assets/{CheckBox.stories-CCwPabOj.js → CheckBox.stories-C8DlH2mz.js} +1 -1
- package/storybook-static/assets/{Color-6AOWCN3U-CZ7Lqth4.js → Color-6AOWCN3U-D9jGjZ1P.js} +1 -1
- package/storybook-static/assets/{ContextMenu-C7QDzxj5.js → ContextMenu-BxHTZhuC.js} +1 -1
- package/storybook-static/assets/{ContextMenu-snDFBA5B.js → ContextMenu-t1s2BKrj.js} +1 -1
- package/storybook-static/assets/{ContextMenu.stories-DmQHbLWt.js → ContextMenu.stories-CMbIfQb7.js} +1 -1
- package/storybook-static/assets/{DateInput-BkVJLdmV.js → DateInput-9FbhYoqV.js} +1 -1
- package/storybook-static/assets/{DateInput-DLOTW8zG.js → DateInput-Dm6Kiwka.js} +1 -1
- package/storybook-static/assets/{DateInput.stories-DNMVE7-m.js → DateInput.stories-CPAnx1Ii.js} +1 -1
- package/storybook-static/assets/{DateRangePresetSelect-FZ5Wqp5Q.js → DateRangePresetSelect-6l9Q7na9.js} +1 -1
- package/storybook-static/assets/{DateRangePresetSelect-Aswl3yfO.js → DateRangePresetSelect-CyxvE8Px.js} +1 -1
- package/storybook-static/assets/{DateRangePresetSelect.stories-D7j1ye-X.js → DateRangePresetSelect.stories-UZ8CMuwl.js} +1 -1
- package/storybook-static/assets/{DeprecatedMultiSelect-BrU5iHiB.js → DeprecatedMultiSelect-C04-2wDB.js} +1 -1
- package/storybook-static/assets/{DeprecatedMultiSelect-DZm42dZe.js → DeprecatedMultiSelect-CySF9Hqp.js} +1 -1
- package/storybook-static/assets/{DeprecatedMultiSelect.stories-DX5gJVg8.js → DeprecatedMultiSelect.stories-FANxJnL0.js} +1 -1
- package/storybook-static/assets/{Detail-Dm2OB35c.js → Detail-CLPDP9b0.js} +1 -1
- package/storybook-static/assets/{Detail.stories-ChjIDw9R.js → Detail.stories-BmBFOXYz.js} +1 -1
- package/storybook-static/assets/{Dialog-CppiFu4m.js → Dialog-Co-EPLF-.js} +1 -1
- package/storybook-static/assets/{Dialog-5Bjs3MIP.js → Dialog-Pzgcq_7r.js} +1 -1
- package/storybook-static/assets/{Dialog.stories-DNKVgKJf.js → Dialog.stories-B4DitG-A.js} +1 -1
- package/storybook-static/assets/{Disclosure-B_rE1zlW.js → Disclosure-Bt0yvf3r.js} +1 -1
- package/storybook-static/assets/{Disclosure.stories-ATxKR5IU.js → Disclosure.stories-Bx4Z3eyR.js} +1 -1
- package/storybook-static/assets/{DisclosureGroup-ClweT22a.js → DisclosureGroup-CMheYvQ6.js} +1 -1
- package/storybook-static/assets/{DocsRenderer-JROSPFPF-m7QPTTWT.js → DocsRenderer-JROSPFPF-B4cQpl4D.js} +1 -1
- package/storybook-static/assets/{DropZone-CEnjaRlb.js → DropZone-D0j1N6Cy.js} +1 -1
- package/storybook-static/assets/{DropZone-C6Qx5YnY.js → DropZone-N4HTfImG.js} +1 -1
- package/storybook-static/assets/{DropZone.stories-8b7TFwCV.js → DropZone.stories-CPHCbKF-.js} +1 -1
- package/storybook-static/assets/{DropdownMenu-BvqYqsyj.js → DropdownMenu-Bf0k8HDo.js} +1 -1
- package/storybook-static/assets/{ExpandableActionPanel-DfZA1lTx.js → ExpandableActionPanel-QyKVmfxd.js} +1 -1
- package/storybook-static/assets/{ExpandableActionPanel.stories-Bq2XMot-.js → ExpandableActionPanel.stories-BmA0hkNv.js} +1 -1
- package/storybook-static/assets/{Flex-BFGhhseF.js → Flex-7J7Ai0St.js} +1 -1
- package/storybook-static/assets/{Flex.stories-Ct2TXMNG.js → Flex.stories-DTJoxIVr.js} +1 -1
- package/storybook-static/assets/{FlexContainer-DNTMFsKB.js → FlexContainer-CeCwnfbr.js} +1 -1
- package/storybook-static/assets/{FlexItem-DdZg96Tw.js → FlexItem-D4epTRUG.js} +1 -1
- package/storybook-static/assets/{FloatingPopover-Qm2OYQyi.js → FloatingPopover-4lCnQQo9.js} +1 -1
- package/storybook-static/assets/{FloatingWindows.stories-DSXleet4.js → FloatingWindows.stories-BziZWCR7.js} +1 -1
- package/storybook-static/assets/FormattedTableCell-SClhK1-d.js +15 -0
- package/storybook-static/assets/{Grid-DF06uQ48.js → Grid-BEn16yj_.js} +1 -1
- package/storybook-static/assets/{Grid-DlctIqYo.js → Grid-Bv9iz3Ru.js} +1 -1
- package/storybook-static/assets/{Grid.stories-CqMEpZ8C.js → Grid.stories-DCcd1XpQ.js} +1 -1
- package/storybook-static/assets/{GridContainer-BlkGC1Ti.js → GridContainer-tbwtNWmU.js} +1 -1
- package/storybook-static/assets/{ImageCropper.stories-GlDzLRHa.js → ImageCropper.stories-Cj7_L3px.js} +1 -1
- package/storybook-static/assets/{ImageRenderer-DKVKzwts.js → ImageRenderer-B8sjaCxb.js} +1 -1
- package/storybook-static/assets/{ImageRenderer.stories-D5Ot_LFG.js → ImageRenderer.stories-BjjI8Xl3.js} +1 -1
- package/storybook-static/assets/{ImageView.stories-t9WED3jc.js → ImageView.stories-DSQT9rOC.js} +1 -1
- package/storybook-static/assets/{ImageViewer.stories-CTLSla9v.js → ImageViewer.stories-BwSjtNZu.js} +2 -2
- package/storybook-static/assets/{ImageViewerRuntime-B0a-Sycn.js → ImageViewerRuntime-BYsmm3rq.js} +1 -1
- package/storybook-static/assets/{Input-L7KSl95J.js → Input-A2NM7h5s.js} +1 -1
- package/storybook-static/assets/{Input-C-RwifM5.js → Input-DFpaY5iR.js} +1 -1
- package/storybook-static/assets/{Input.stories-RZ8DST5q.js → Input.stories-Dr3bILG0.js} +1 -1
- package/storybook-static/assets/{InputDateTime-C3SMAFaX.js → InputDateTime-B1HZuWxu.js} +1 -1
- package/storybook-static/assets/{InputDateTime.stories-Bo76yqgM.js → InputDateTime.stories-BRgylAlk.js} +1 -1
- package/storybook-static/assets/{InputFile-DeMKgRCz.js → InputFile-BiYYtArL.js} +1 -1
- package/storybook-static/assets/{InputFile-ByiVAcXi.js → InputFile-DJZa1zb6.js} +1 -1
- package/storybook-static/assets/{InputFile.stories-C2xolZZp.js → InputFile.stories-fGygLQ4u.js} +1 -1
- package/storybook-static/assets/{InputFiles-D2X5XwMg.js → InputFiles-BhE9kv5d.js} +1 -1
- package/storybook-static/assets/{InputFiles-DW_A7HZQ.js → InputFiles-Dhx7VEsV.js} +1 -1
- package/storybook-static/assets/{InputFiles.stories-Cy4lGiDs.js → InputFiles.stories-Dr4Qonyz.js} +1 -1
- package/storybook-static/assets/{InputFilesList-D-T9k_qj.js → InputFilesList-Cv2Gpuuc.js} +1 -1
- package/storybook-static/assets/{InputImage-COyE-G8n.js → InputImage-CcGsKNGs.js} +1 -1
- package/storybook-static/assets/{InputImage-VviyVqWs.js → InputImage-CsX9WLK_.js} +1 -1
- package/storybook-static/assets/{InputImage.stories-C7PZBPak.js → InputImage.stories-DBXKFyN8.js} +1 -1
- package/storybook-static/assets/{InteractiveComponents-DsXWc2Ba.js → InteractiveComponents-o5dGoBer.js} +1 -1
- package/storybook-static/assets/{InteractiveComponents.stories-xzIOC6VP.js → InteractiveComponents.stories-CbpCs1ke.js} +1 -1
- package/storybook-static/assets/{LayoutPicker-CEe3rtKw.js → LayoutPicker-BTV50163.js} +1 -1
- package/storybook-static/assets/{LayoutPicker-DqauomnH.js → LayoutPicker-wQBp2vRv.js} +1 -1
- package/storybook-static/assets/{LayoutPicker.stories-DZS4nX4W.js → LayoutPicker.stories-BA9v21Xx.js} +1 -1
- package/storybook-static/assets/Lexical.prod-DSYr9I3p.js +11 -0
- package/storybook-static/assets/{Listbox-DMBqQzvF.js → Listbox-CiYd52jg.js} +1 -1
- package/storybook-static/assets/{Listbox-DcoYj_fu.js → Listbox-RA3seYue.js} +1 -1
- package/storybook-static/assets/{Listbox.stories-CiEKNklg.js → Listbox.stories-DFPgEF8r.js} +1 -1
- package/storybook-static/assets/{NoData-D0rf5MW3.js → LoadingMessage-Ce0vqRgG.js} +1 -1
- package/storybook-static/assets/{Modal-XzWN4rYg.js → Modal-BQsAioCj.js} +1 -1
- package/storybook-static/assets/{Modal-B2NdQSX-.js → Modal-BpU6G6JZ.js} +1 -1
- package/storybook-static/assets/{Modal.stories-DiO0SJb6.js → Modal.stories-CQrrk4EW.js} +1 -1
- package/storybook-static/assets/{ModalManagerProvider-CXZWFJBk.js → ModalManagerProvider-CoqdrSRD.js} +1 -1
- package/storybook-static/assets/{MultiSelect-Bdo1Sjz8.js → MultiSelect-CU9zjw_p.js} +1 -1
- package/storybook-static/assets/{MultiSelect-CIrw0Nez.js → MultiSelect-CZNPmVvS.js} +1 -1
- package/storybook-static/assets/{MultiSelect.stories-DsYsvZRr.js → MultiSelect.stories-DFz-EHdG.js} +1 -1
- package/storybook-static/assets/{MultiSelectCore-DVlr9xCh.js → MultiSelectCore-Cvyz709z.js} +1 -1
- package/storybook-static/assets/NoData-Db8STACh.js +1 -0
- package/storybook-static/assets/{NotificationsHost-BQZaAM-V.js → NotificationsHost-BfICsokh.js} +1 -1
- package/storybook-static/assets/{NotificationsHost.stories-DwymJZby.js → NotificationsHost.stories-DlihTcqk.js} +1 -1
- package/storybook-static/assets/{ODataMultiSelect-DMSWI6tE.js → ODataMultiSelect-bFKNwfVi.js} +1 -1
- package/storybook-static/assets/{ODataMultiSelect.stories-B3zztIBx.js → ODataMultiSelect.stories-dSgAmYNP.js} +1 -1
- package/storybook-static/assets/{ODataSelect-C7HWF4Mk.js → ODataSelect-B-VxiKqe.js} +1 -1
- package/storybook-static/assets/{ODataSelect.stories-BTqluN2n.js → ODataSelect.stories-IrICK-VV.js} +1 -1
- package/storybook-static/assets/{ODataTreeMultiSelect-D1C46tO1.js → ODataTreeMultiSelect-1-ZKOoT5.js} +1 -1
- package/storybook-static/assets/{ODataTreeMultiSelect.stories-Cau6yuzj.js → ODataTreeMultiSelect.stories-Dj2gz4OX.js} +1 -1
- package/storybook-static/assets/{ODataTreeSelect-DjieOI9n.js → ODataTreeSelect-C03yKX3Q.js} +1 -1
- package/storybook-static/assets/{ODataTreeSelect.stories-C2QXdt7d.js → ODataTreeSelect.stories-BaWPoCj8.js} +1 -1
- package/storybook-static/assets/{OneStepScroller-srOmxRQp.js → OneStepScroller-C1e40EsR.js} +1 -1
- package/storybook-static/assets/{Option-7XzYAa1X.js → Option-DkhmepGt.js} +1 -1
- package/storybook-static/assets/{OptionButton-De2RG5bE.js → OptionButton-CaOcFLRc.js} +1 -1
- package/storybook-static/assets/{OptionContent-J_mD8o8Q.js → OptionContent-C2VjIa7E.js} +1 -1
- package/storybook-static/assets/{OptionContentContainer-BMe8XiaH.js → OptionContentContainer-D9gbmo8X.js} +1 -1
- package/storybook-static/assets/{PeriodSelect-DffdZHTx.js → PeriodSelect-CKHsqr9Q.js} +1 -1
- package/storybook-static/assets/{PeriodSelect-BanQI_dT.js → PeriodSelect-DyuBxEQO.js} +1 -1
- package/storybook-static/assets/{PeriodSelect.stories-D_mZIvPa.js → PeriodSelect.stories-Clvkah1Y.js} +1 -1
- package/storybook-static/assets/{PickerField-BiRCrEVk.js → PickerField-BeafhNsw.js} +1 -1
- package/storybook-static/assets/{PickerTriggerActions-SYQofxvL.js → PickerTriggerActions-DiC3sf79.js} +1 -1
- package/storybook-static/assets/{Popover-CyFO9TsF.js → Popover-CTWgpldX.js} +1 -1
- package/storybook-static/assets/{Popover-DVLKhPpI.js → Popover-Cic2guk_.js} +1 -1
- package/storybook-static/assets/{Popover.stories-z-_6ttYX.js → Popover.stories-BN8W4Ioo.js} +1 -1
- package/storybook-static/assets/{PresetRangeDateInput-CNwYUovX.js → PresetRangeDateInput-BlwDGFlO.js} +1 -1
- package/storybook-static/assets/{PresetRangeDateInput-DusPRYOo.js → PresetRangeDateInput-Cw-UACKj.js} +1 -1
- package/storybook-static/assets/{PresetRangeDateInput.stories-C_o_VW2j.js → PresetRangeDateInput.stories-BW4A9N6I.js} +1 -1
- package/storybook-static/assets/{PresetSelect-CV3zwYQR.js → PresetSelect-BROMDIaD.js} +1 -1
- package/storybook-static/assets/{README-TaumiOmj.js → README--dlFTbfU.js} +1 -1
- package/storybook-static/assets/{README-b_q7W3j3.js → README-0oBzUW7p.js} +1 -1
- package/storybook-static/assets/{README-BJ0oZ6IK.js → README-3_ON5xt9.js} +1 -1
- package/storybook-static/assets/{README-BggXgUKF.js → README-B2Q8nqgC.js} +1 -1
- package/storybook-static/assets/{README-DWfKideq.js → README-B2a17RtT.js} +1 -1
- package/storybook-static/assets/{README-C-e2RqTI.js → README-B2o_mu2p.js} +1 -1
- package/storybook-static/assets/{README-CJG1QnZ8.js → README-B4UtPkAG.js} +1 -1
- package/storybook-static/assets/{README-BwUFmp9h.js → README-BC-mtx0Z.js} +1 -1
- package/storybook-static/assets/{README-C-U-dI9P.js → README-BEo-chiK.js} +1 -1
- package/storybook-static/assets/{README-BwvDtGJp.js → README-BKgDrLYy.js} +1 -1
- package/storybook-static/assets/{README-swRdnv1f.js → README-BU-hpYkT.js} +1 -1
- package/storybook-static/assets/{README-_ysKMvAx.js → README-BZO4LN8h.js} +1 -1
- package/storybook-static/assets/{README-x--9qFul.js → README-Bt7qMnXG.js} +1 -1
- package/storybook-static/assets/{README-BgG12pti.js → README-BzXKbqC2.js} +1 -1
- package/storybook-static/assets/{README-CFpsye1R.js → README-C0oFjEzk.js} +1 -1
- package/storybook-static/assets/{README-DwC2gAZg.js → README-C4DwwmPx.js} +1 -1
- package/storybook-static/assets/{README-Bn7kAPLQ.js → README-CC7qsfLO.js} +1 -1
- package/storybook-static/assets/{README-BxC_3EeL.js → README-CCA-VcWp.js} +1 -1
- package/storybook-static/assets/{README-DJsEoOXI.js → README-CM3GEer1.js} +1 -1
- package/storybook-static/assets/{README-BdSEAONV.js → README-CMm_WVI_.js} +1 -1
- package/storybook-static/assets/{README-xDqMMO8-.js → README-Ch0dHOCi.js} +1 -1
- package/storybook-static/assets/{README-CtA0tP_V.js → README-CovA1JtH.js} +1 -1
- package/storybook-static/assets/{README-D0SwEPQG.js → README-CsAmAsnQ.js} +1 -1
- package/storybook-static/assets/{README-0xXSqDp8.js → README-CsgpoZpo.js} +1 -1
- package/storybook-static/assets/{README-D_V-SEnq.js → README-CyTthj47.js} +1 -1
- package/storybook-static/assets/{README-4aHWePja.js → README-D42tlbcC.js} +1 -1
- package/storybook-static/assets/{README-gE_kxplo.js → README-D7e1q280.js} +1 -1
- package/storybook-static/assets/{README-Bjq-bxH1.js → README-DEIwHKH_.js} +1 -1
- package/storybook-static/assets/{README-BaVIhvx2.js → README-DJXuAagO.js} +1 -1
- package/storybook-static/assets/{README-DEHjbK77.js → README-DO98xR7D.js} +1 -1
- package/storybook-static/assets/{README-D8bNkmba.js → README-DOCP85Ok.js} +1 -1
- package/storybook-static/assets/{README-D0eHrEQF.js → README-DV0qQm_q.js} +1 -1
- package/storybook-static/assets/{README-2-1qM_na.js → README-D_wqIsQU.js} +1 -1
- package/storybook-static/assets/{README-BjBW3_iS.js → README-Da2MtxkC.js} +1 -1
- package/storybook-static/assets/{README-gjTa9tZ_.js → README-DgnwOBAf.js} +1 -1
- package/storybook-static/assets/{README-Duk1AG16.js → README-Dh-aESek.js} +1 -1
- package/storybook-static/assets/{README-B5zjJGVN.js → README-Dh3cmlxY.js} +1 -1
- package/storybook-static/assets/{README-DkEysBXh.js → README-DkqWljOh.js} +1 -1
- package/storybook-static/assets/{README-DHXjeQQR.js → README-Dns7UYFR.js} +1 -1
- package/storybook-static/assets/{README-CgHkf8AZ.js → README-Dp9qT5k5.js} +1 -1
- package/storybook-static/assets/{README-7eESTN29.js → README-Dq_L-Ug6.js} +1 -1
- package/storybook-static/assets/{README-BoQbGA96.js → README-DxnLeJiR.js} +1 -1
- package/storybook-static/assets/{README-MX6_MwDQ.js → README-JNaV5buf.js} +1 -1
- package/storybook-static/assets/{README-DuB9PiOM.js → README-Sg5qacmO.js} +1 -1
- package/storybook-static/assets/{README-C3-4o6yH.js → README-Y_9dubMU.js} +1 -1
- package/storybook-static/assets/{README-xWo3G40o.js → README-Zi-FFn8W.js} +1 -1
- package/storybook-static/assets/{README-DCP4ywXT.js → README-g61K1aLN.js} +1 -1
- package/storybook-static/assets/{README-p62MFS5g.js → README-gW1fz6Ad.js} +1 -1
- package/storybook-static/assets/{README-DZD6wqGT.js → README-ivZpRido.js} +1 -1
- package/storybook-static/assets/{README-Cc67rRzO.js → README-kq33WRAi.js} +1 -1
- package/storybook-static/assets/{README-BG0ZHFMO.js → README-lXA9AEv5.js} +1 -1
- package/storybook-static/assets/{README-BmcSs4kj.js → README-trL-e_Hw.js} +1 -1
- package/storybook-static/assets/{README-CjwjADv4.js → README-yOf-BvTs.js} +1 -1
- package/storybook-static/assets/{RadioButton-B6x2_7or.js → RadioButton-Bc-qW8X4.js} +1 -1
- package/storybook-static/assets/{RadioButton-CBABLSvE.js → RadioButton-dLi6i_d_.js} +1 -1
- package/storybook-static/assets/{RadioButton.stories-DLd7EmuZ.js → RadioButton.stories-fyW8-L85.js} +1 -1
- package/storybook-static/assets/RadioGroup-K_pYzh4S.js +1 -0
- package/storybook-static/assets/{RadioGroup-Ce5Irxz3.js → RadioGroup-hx5JHhIo.js} +1 -1
- package/storybook-static/assets/{RadioGroup.stories-DKhMElyC.js → RadioGroup.stories-DkJM4C8g.js} +1 -1
- package/storybook-static/assets/{ResponsiveLayoutPreview-Bcojizl4.js → ResponsiveLayoutPreview-2trckzJQ.js} +1 -1
- package/storybook-static/assets/{Scrollable-B5e-IEe8.js → Scrollable-BKrnU0ak.js} +1 -1
- package/storybook-static/assets/{Scrollable-BfCUp0BO.js → Scrollable-D4W1DFQg.js} +1 -1
- package/storybook-static/assets/{Scrollable.stories-B4IMoipT.js → Scrollable.stories-D27cJCFP.js} +1 -1
- package/storybook-static/assets/{Select-CdjYSSyG.js → Select-BdSn2R7K.js} +1 -1
- package/storybook-static/assets/{Select-DYHUwcLE.js → Select-DEZyRp-R.js} +1 -1
- package/storybook-static/assets/{Select.stories-BuaXB6qE.js → Select.stories-D1Z2CcxZ.js} +1 -1
- package/storybook-static/assets/{Separator-D45blL6r.js → Separator-5i4GBBEP.js} +1 -1
- package/storybook-static/assets/{Separator-CS6gkWSA.js → Separator-BgRJ7Ocd.js} +1 -1
- package/storybook-static/assets/{Separator.stories-C2GzCEGW.js → Separator.stories-CgSiKmhl.js} +1 -1
- package/storybook-static/assets/{SerializableSelect-7raamiuG.js → SerializableSelect-DyFu3F0w.js} +1 -1
- package/storybook-static/assets/{SerializableSelect.stories-CD0e6DQk.js → SerializableSelect.stories-DGeUH4C-.js} +1 -1
- package/storybook-static/assets/{ShimmerText-DkiewbBe.js → ShimmerText-Dp8aRJ4I.js} +1 -1
- package/storybook-static/assets/{ShimmerText.stories-DrXMcGDO.js → ShimmerText.stories-Cf25PNCz.js} +1 -1
- package/storybook-static/assets/{SingleDateTimeInput-Dj_VSvfb.js → SingleDateTimeInput-Bzm87a3Z.js} +1 -1
- package/storybook-static/assets/{SingleDateTimeInput-BTIgqxH7.js → SingleDateTimeInput-DVFOi4lM.js} +1 -1
- package/storybook-static/assets/{SingleDateTimeInput.stories-CnYFrOUX.js → SingleDateTimeInput.stories-ChMKxw-w.js} +1 -1
- package/storybook-static/assets/{Slider-D4wvDQDc.js → Slider-CyZ-Su8l.js} +1 -1
- package/storybook-static/assets/{Slider-CLE5MSJr.js → Slider-DD9J2Qhk.js} +1 -1
- package/storybook-static/assets/{Slider.stories-Cbz3RilT.js → Slider.stories-B8wpT9DE.js} +1 -1
- package/storybook-static/assets/{SliderInput-AC9oLjGF.js → SliderInput-CZ5RGazl.js} +1 -1
- package/storybook-static/assets/{SliderInput-DbyDo3fR.js → SliderInput-DI2fPYZP.js} +1 -1
- package/storybook-static/assets/{SliderInput.stories-69pRH0Uk.js → SliderInput.stories-kV5nIvmp.js} +1 -1
- package/storybook-static/assets/{Sortable-E3DirII-.js → Sortable-BRJshDsd.js} +1 -1
- package/storybook-static/assets/{Sortable.stories-BbmTcem4.js → Sortable.stories-DWdCANF3.js} +1 -1
- package/storybook-static/assets/{Splitter-DbaIQk2G.js → Splitter-amimlmxB.js} +1 -1
- package/storybook-static/assets/{Splitter.stories-HntpFa6w.js → Splitter.stories-Bp8FI1V5.js} +1 -1
- package/storybook-static/assets/{StateSelect-C7ZIrgDB.js → StateSelect-CEg--oWR.js} +1 -1
- package/storybook-static/assets/{StateSelect-8r4Qlf4Y.js → StateSelect-U7CVxa71.js} +1 -1
- package/storybook-static/assets/{StateSelect.stories-CfUJCQGE.js → StateSelect.stories-DO2hudAT.js} +1 -1
- package/storybook-static/assets/{StatusIndicator-IqUZ24rN.js → StatusIndicator-BgS55kfh.js} +1 -1
- package/storybook-static/assets/{StatusIndicator.stories-DhKREzk8.js → StatusIndicator.stories-BThF4RAA.js} +1 -1
- package/storybook-static/assets/{StringToggle.stories-BOC_AuIw.js → StringToggle.stories-DGpM8fWe.js} +1 -1
- package/storybook-static/assets/{Switch-C4wfyH7_.js → Switch-DuR6uVds.js} +1 -1
- package/storybook-static/assets/{Switch-58npo6H_.js → Switch-M0xvOjjd.js} +1 -1
- package/storybook-static/assets/{Switch.stories-BpABAFmv.js → Switch.stories-4k1xDlbq.js} +1 -1
- package/storybook-static/assets/{Table-RAMtWu9C.js → Table-BmYczjli.js} +1 -1
- package/storybook-static/assets/{Table.stories-Cth_AbDh.js → Table.stories-c1Yu2DYz.js} +1 -1
- package/storybook-static/assets/{TableEditor.stories-IfJyun1v.js → TableEditor.stories-hIvit7LX.js} +1 -1
- package/storybook-static/assets/{Tabs-CX67nGv0.js → Tabs-1AzTozGX.js} +1 -1
- package/storybook-static/assets/{Tabs.stories-6wO9Pmly.js → Tabs.stories-DUQx0Ezh.js} +1 -1
- package/storybook-static/assets/TabsBox-DGdo-Cb1.js +2 -0
- package/storybook-static/assets/{TagInput-R6ANDdvh.js → TagInput-qylU7_PQ.js} +1 -1
- package/storybook-static/assets/{TagInput.stories-DAyX89-l.js → TagInput.stories-Bs78VRGv.js} +1 -1
- package/storybook-static/assets/{Text-D3vBpXH0.js → Text-C8ptoppM.js} +1 -1
- package/storybook-static/assets/TextEditorLexical.stories-DWCIfqOj.js +54 -0
- package/storybook-static/assets/TextEditorLexicalClient-B17un2t_.js +30 -0
- package/storybook-static/assets/TextEditorLexicalClient-CLf0OiWB.css +1 -0
- package/storybook-static/assets/TextEditorLexicalViewer.stories-IP2pavj0.js +66 -0
- package/storybook-static/assets/{Textarea-BPtHeqrt.js → Textarea-Cpnrb2o_.js} +1 -1
- package/storybook-static/assets/{Textarea-Cio32hA3.js → Textarea-nCjyO4i5.js} +1 -1
- package/storybook-static/assets/{Textarea.stories-DDVaU3Ho.js → Textarea.stories-BNkapgda.js} +1 -1
- package/storybook-static/assets/{TimePanel-e1drsuDA.js → TimePanel-BQK5NbxR.js} +1 -1
- package/storybook-static/assets/{TimePanel.stories-Dze9jjtv.js → TimePanel.stories-DYq--6bF.js} +1 -1
- package/storybook-static/assets/{Toggle-BuLJ3UR_.js → Toggle-0Y7W-fPi.js} +1 -1
- package/storybook-static/assets/{Toggle-D8UQ_CuL.js → Toggle-DVuWIK21.js} +1 -1
- package/storybook-static/assets/{Toggle.stories-0wuia83j.js → Toggle.stories-DYZE2fC3.js} +1 -1
- package/storybook-static/assets/{TreeMultiSelect-QWOfniqX.js → TreeMultiSelect-BM3xCVHR.js} +1 -1
- package/storybook-static/assets/{TreeMultiSelect-Ciy9H9Q3.js → TreeMultiSelect-D7GJiBAt.js} +1 -1
- package/storybook-static/assets/{TreeMultiSelect.stories-C5bKUKLA.js → TreeMultiSelect.stories-D2JpEs59.js} +1 -1
- package/storybook-static/assets/{TreePickerBase-DAld1sj1.js → TreePickerBase-BCpA1kfG.js} +2 -2
- package/storybook-static/assets/{TreeSelect-DKUJycNd.js → TreeSelect-BXBL2lAD.js} +1 -1
- package/storybook-static/assets/{TreeSelect-ANFeSIqw.js → TreeSelect-D5oAYLRd.js} +1 -1
- package/storybook-static/assets/{TreeSelect.stories-BJErYrTv.js → TreeSelect.stories-emFXypZX.js} +1 -1
- package/storybook-static/assets/{TreeTable-DcyUjVXj.js → TreeTable-CEyrFWSm.js} +1 -1
- package/storybook-static/assets/{TreeTable.stories-BnyxdNPz.js → TreeTable.stories-DDcnv5XB.js} +1 -1
- package/storybook-static/assets/{blocks-Bn1nLfdu.js → blocks-DvVybOVR.js} +4 -4
- package/storybook-static/assets/{check-DTcQ3CsH.js → check-YfnFIyMh.js} +1 -1
- package/storybook-static/assets/{chevron-down-CRBjmU7w.js → chevron-down-BjxDxv4C.js} +1 -1
- package/storybook-static/assets/{chevron-left-CBPOblch.js → chevron-left-C0xgKKWw.js} +1 -1
- package/storybook-static/assets/{chevron-right-Bryg2EIf.js → chevron-right-Bo0n7sEl.js} +1 -1
- package/storybook-static/assets/{chunk-W22LQPXL-44DPZKTZ.js → chunk-W22LQPXL-r7A3h_Tz.js} +1 -1
- package/storybook-static/assets/{circle-alert-DviK8puL.js → circle-alert-Dl_8Z1un.js} +1 -1
- package/storybook-static/assets/{circle-check-B1-l7Oh4.js → circle-check-CS9puXbe.js} +1 -1
- package/storybook-static/assets/{contextMenu-DtHQnSjw.js → contextMenu-C7If_pOc.js} +1 -1
- package/storybook-static/assets/{download-BuLQijJq.js → download-BWZFjl62.js} +1 -1
- package/storybook-static/assets/{floating-ui.react-iTaFJp98.js → floating-ui.react-DoLsHxAF.js} +1 -1
- package/storybook-static/assets/{formatMultiSelectOptionCount-BxXwE0wd.js → formatMultiSelectOptionCount-Cb7rzikh.js} +1 -1
- package/storybook-static/assets/{formatters-DVE1YVNQ-CJCkXjuI.js → formatters-DVE1YVNQ-CimVV-di.js} +1 -1
- package/storybook-static/assets/{foundationApi-Bjw5h-ru.js → foundationApi-DUDdWpQ2.js} +1 -1
- package/storybook-static/assets/{foundationLib-BcePCYWP.js → foundationLib-C0aoelQA.js} +1 -1
- package/storybook-static/assets/hooks-KqAveAk8.js +5 -0
- package/storybook-static/assets/{iframe-BvendKJ_.js → iframe-BwMqUCxF.js} +4 -4
- package/storybook-static/assets/iframe-CQgVo28z.js +1 -0
- package/storybook-static/assets/{info-Dq-9oYHd.js → info-BzoIh38o.js} +1 -1
- package/storybook-static/assets/{odata-f2MNATrV.js → odata-B4ZS5oGx.js} +1 -1
- package/storybook-static/assets/{odataStoryFixtures-BaKh8qyu.js → odataStoryFixtures-BoXfGt8L.js} +1 -1
- package/storybook-static/assets/{react-B6cO4JYx.js → react-BxTMipfI.js} +1 -1
- package/storybook-static/assets/{refresh-cw-DmxZlsqm.js → refresh-cw-DZHdlgJG.js} +1 -1
- package/storybook-static/assets/{settings-2-CBuqWUWt.js → settings-2-CSUUgi_0.js} +1 -1
- package/storybook-static/assets/sortable-Bikh9uZC.js +1 -0
- package/storybook-static/assets/{syntaxhighlighter-QEQV7K2Y-h6bhL7V7.js → syntaxhighlighter-QEQV7K2Y-BvV0CW9d.js} +1 -1
- package/storybook-static/assets/{trash-2-wTK0eWnF.js → trash-2-Csx302gq.js} +1 -1
- package/storybook-static/assets/{triangle-alert-CD0VXyGn.js → triangle-alert-CA_CSo3b.js} +1 -1
- package/storybook-static/assets/types-U_TJ2tHU.js +1 -0
- package/storybook-static/assets/{useODataSelectBase-keqr2Q3a.js → useODataSelectBase-Dmlavp_v.js} +1 -1
- package/storybook-static/assets/{useODataTreeData-BLDGoADN.js → useODataTreeData-W3o26svk.js} +1 -1
- package/storybook-static/assets/{usePickerQuery-BA8NMnw6.js → usePickerQuery-IBbvSDWi.js} +1 -1
- package/storybook-static/assets/{usePickerTriggerController-Ceb5Hrtf.js → usePickerTriggerController-Cy-RrU3A.js} +1 -1
- package/storybook-static/assets/{utils-tg3ibbzi.js → utils-DiA8FLax.js} +1 -1
- package/storybook-static/assets/validators-CLNEY_Fa.js +1 -0
- package/storybook-static/assets/{x-CsG3nxct.js → x-CP7phAx6.js} +1 -1
- package/storybook-static/iframe.html +2 -2
- package/storybook-static/index.json +1 -1
- package/storybook-static/project.json +1 -1
- package/dist/chunks/TextEditorLexicalClient-apy-Cugj.js.map +0 -1
- package/storybook-static/assets/FormattedTableCell-Cfdl2sgg.js +0 -15
- package/storybook-static/assets/RadioGroup-CIaXj3zQ.js +0 -1
- package/storybook-static/assets/TabsBox-QKS_MMQ0.js +0 -2
- package/storybook-static/assets/TextEditorLexicalViewer.stories-RdypWNwx.js +0 -66
- package/storybook-static/assets/hooks-CiUB_4kG.js +0 -5
- package/storybook-static/assets/iframe-BzGX4Usd.js +0 -1
- package/storybook-static/assets/sortable-BkTzd-5v.js +0 -1
- package/storybook-static/assets/validators-D82aYLRK.js +0 -1
- /package/storybook-static/assets/{NoData-C7KqaHUh.css → LoadingMessage-C7KqaHUh.css} +0 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import{n as e}from"./rolldown-runtime-DkW27tQK.js";function t(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function n(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);n.search=r.toString(),console.warn(`Minified Lexical warning #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function r(){return Bi()._blockCursorElement}function i(e){return e!==null&&e.nodeType===1&&e.hasAttribute(`data-lexical-slot`)}function a(e,t){let n=t;for(;n!==null&&n.parentNode!==e;)n=n.parentNode;return n}function o(e,n){let r=[],i=n;for(;i!==e&&i!==null;i=i.parentNode){let e=0;for(let t=i.previousSibling;t!==null;t=t.previousSibling)e++;r.push(e)}return i!==e&&t(225),r.reverse()}function s(e,t=1e3){return e instanceof $o?e.clone():e.size<t?new Map(e):new $o().init(new Map(e),void 0,e.size)}function c(e,t,n,r,i,a){if(k(e)){let o=e.getFirstChild();for(;o!==null;){let e=o.__key;o.__parent===t&&((k(o)||sa(o)&&o.__slots!==null)&&c(o,e,n,r,i,a),n.has(e)||a.delete(e),i.push(e)),o=o.getNextSibling()}}for(let o of sa(e)&&e.__slots!==null?e.__slots.values():[]){let e=r.get(o);e!==void 0&&ca(e)&&e.__slotHost===t&&((k(e)||sa(e)&&e.__slots!==null)&&c(e,o,n,r,i,a),n.has(o)||a.delete(o),i.push(o))}}function l(e){ts=e.timeStamp}function u(e,t,n){let r=e.nodeName===`BR`,i=t.__lexicalLineBreak;return i&&(e===i||r&&e.previousSibling===i)||r&&Pr(e,n)!==void 0}function d(e,t,n){let r=bi(ui(n)),i=r&&Oi(r,n._rootElement),a=null,o=null;i!==null&&i.anchorNode===e&&(a=i.anchorOffset,o=i.focusOffset);let s=e.nodeValue;s!==null&&Kr(t,s,a,o,!1)}function f(e,t,n){if(T(e)){let t=e.anchor.getNode();if(t.is(n)&&e.format!==t.getFormat())return!1}return Cr(t)&&n.isAttached()}function p(e,t,n){for(let r=e;r&&!Qi(r);r=ii(r)){let e=Pr(r,t);if(e!==void 0){let t=N(e,n);if(t)return A(t)||!z(r)?void 0:[r,t]}}}function m(e,t,n){es=!0;let r=performance.now()-ts>100;try{Gn(e,()=>{let i=E()||function(e){return e.read(`latest`,()=>{let e=E();return e===null?null:e.clone()})}(e),a=new Map,o=e._editorState,s=e._blockCursorElement,c=!1,l=``;for(let n=0;n<t.length;n++){let m=t[n],h=m.type,g=m.target,_=p(g,e,o);if(!_)continue;let[v,y]=_;if(h===`characterData`)r&&w(y)&&Cr(g)&&f(i,g,y)&&d(g,y,e);else if(h===`childList`){c=!0;let t=m.addedNodes;for(let n=0;n<t.length;n++){let r=t[n],i=Mr(r),a=r.parentNode;if(!(a==null||r===s||i!==null||u(r,a,e)||e._slotsUsed&&z(r)&&r.hasAttribute(`data-lexical-slot`)||Qi(r))){if(yo){let e=(z(r)?r.innerText:null)||r.nodeValue;e&&(l+=e)}a.removeChild(r)}}let n=m.removedNodes,r=n.length;if(r>0){let t=0;for(let i=0;i<r;i++){let r=n[i];(u(r,g,e)||s===r)&&(g.appendChild(r),t++)}r!==t&&a.set(v,y)}}}if(a.size>0)for(let[t,n]of a)n.reconcileObservedMutation(t,e);let m=n.takeRecords();if(m.length>0){for(let t=0;t<m.length;t++){let n=m[t],r=n.addedNodes,i=n.target;for(let t=0;t<r.length;t++){let n=r[t],a=n.parentNode;a==null||n.nodeName!==`BR`||u(n,i,e)||a.removeChild(n)}}n.takeRecords()}i!==null&&(c&&P(i),yo&&ni(e)&&i.insertRawText(l))})}finally{es=!1}}function h(e){let t=e._observer;t!==null&&m(e,t.takeRecords(),t)}function g(e){(function(e){ts===0&&ui(e).addEventListener(`textInput`,l,!0)})(e),e._observer=new MutationObserver((t,n)=>{m(e,t,n)})}function _(e,t){return new rs(e,t)}function v(e,t,n=ns){let r=(n===`latest`?e.getLatest():e).__state;return r?r.getValue(t):t.defaultValue}function y(e,t,n){let r;if(D(),typeof n==`function`){let i=e.getLatest(),a=v(i,t);if(r=n(a),t.isEqual(a,r))return i}else r=n;let i=e.getWritable();return x(i).updateFromKnown(t,r),i}function b(e){let t=new Map,n=new Set;for(let{ownNodeConfig:r}of ra(typeof e==`function`?e:e.replace))if(r&&r.stateConfigs)for(let e of r.stateConfigs){let r;`stateConfig`in e?(r=e.stateConfig,e.flat&&n.add(r.key)):r=e,t.set(r.key,r)}return{flatKeys:n,sharedConfigMap:t}}function x(e){let t=e.getWritable(),n=t.__state?t.__state.getWritable(t):new as(t,S(t));return t.__state=n,n}function S(e){return e.__state?e.__state.sharedNodeState:mr(Bi(),e.getType()).sharedNodeState}function ee(e){if(e)for(let t in e)return e}function te(e){return e}function ne(e,t,n){for(let[r,i]of t.knownState){if(e.has(r.key))continue;e.add(r.key);let t=n?n.getValue(r):r.defaultValue;if(t!==i&&!r.isEqual(t,i))return!0}return!1}function re(e,t,n){let{unknownState:r}=t,i=n?n.unknownState:void 0;if(r){for(let[t,n]of Object.entries(r))if(!e.has(t)&&(e.add(t),n!==(i?i[t]:void 0)))return!0}return!1}function ie(e,t){let n=e.__state;return n&&n.node===e?n.getWritable(t):n}function ae(e,t){let n=e.__mode,r=e.__format,i=e.__style,a=t.__mode,o=t.__format,s=t.__style,c=e.__state,l=t.__state;return(n===null||n===a)&&(r===null||r===o)&&(i===null||i===s)&&(e.__state===null||c===l||function(e,t){if(e===t)return!0;let n=new Set;return!(e&&ne(n,e,t)||t&&ne(n,t,e)||e&&re(n,e,t)||t&&re(n,t,e))}(c,l))}function oe(e,t){let n=e.mergeWithSibling(t),r=O()._normalizedNodes;return r.add(e.__key),r.add(t.__key),n}function se(e){let t,n,r=e;if(r.__text!==``||!r.isSimpleText()||r.isUnmergeable()){for(;(t=r.getPreviousSibling())!==null&&w(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(t.__text!==``){if(ae(t,r)){r=oe(t,r);break}break}t.remove()}for(;(n=r.getNextSibling())!==null&&w(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(n.__text!==``){if(ae(r,n)){r=oe(r,n);break}break}n.remove()}}else r.remove()}function ce(e){return le(e.anchor),le(e.focus),e}function le(e){for(;e.type===`element`;){let t=e.getNode(),n=e.offset,r,i;if(n===t.getChildrenSize()?(r=t.getChildAtIndex(n-1),i=!0):(r=t.getChildAtIndex(n),i=!1),w(r)){e.set(r.__key,i?r.getTextContentSize():0,`text`,!0);break}if(!k(r))break;e.set(r.__key,i?r.getChildrenSize():0,`element`,!0)}}function ue(e,n){return ms.read(()=>{let r=0,i=e;for(let e=0;e<n&&i!==null;e++){let a=ps.get(i);if(a===void 0&&t(345,i),k(a)){let o=Y.get(i);if(o!==void 0&&k(o)&&o.__parent!==a.__parent)r+=a.getTextContentSize();else{let e=hs.get(i),n=e&&e.__lexicalTextContent;typeof n!=`string`&&t(346,a.getType()),r+=n.length}e<n-1&&!a.isInline()&&(r+=2)}else{let e=a[os];e===void 0&&t(347,a.getType(),i),r+=e}i=a.__next}return r},{editor:W})}function de(e){k(e)||e[os]===void 0&&(e[os]=w(e)?e.__text.length:e.getTextContentSize())}function fe(){return{firstTextKey:J,format:K,style:q}}function pe(e){e.firstTextKey!==null&&(K=e.format,q=e.style,J=e.firstTextKey)}function me(e){if(J!==null)return;let n=e.__lexicalFirstTextKey;if(n===void 0&&t(348),n===null)return;let r=Y.get(n);w(r)&&(K=r.getFormat(),q=r.getStyle(),J=n)}function he(e,t){let n=ps.get(e),r=Y.has(e);if(t!==null){let n=Re(e);n.parentNode===t&&t.removeChild(n)}if(!r){if(W._keyToDOMMap.delete(e),k(n)){let e=aa(n,ps);ge(e,0,e.length-1,null)}if(n!==void 0){for(let e of we(n).values()){let t=Ee(e);he(e,null),t!==null&&t.remove()}$r(_s,ls,us,n,`destroyed`)}}}function ge(e,t,n,r){for(let i=t;i<=n;++i){let t=e[i];t!==void 0&&he(t,r)}}function _e(e,t){e.setProperty(`text-align`,t)}function ve(e,t){let n=cs.theme.indent;if(typeof n==`string`){let r=e.classList.contains(n);t>0&&!r?e.classList.add(n):t<1&&r&&e.classList.remove(n)}e.style.setProperty(`padding-inline-start`,t===0?``:`calc(${t} * var(--lexical-indent-base-value, ${xs}))`)}function ye(e,t){let n=e.style;t===0?_e(n,``):t===1?_e(n,`left`):t===2?_e(n,`center`):t===3?_e(n,`right`):t===4?_e(n,`justify`):t===5?_e(n,`start`):t===6&&_e(n,`end`)}function be(e,t){let n=function(e){let t=e.__dir;if(t!==null)return t;if(j(e))return null;let n=e.getParent();return n===null||L(n)&&n.__dir===null?`auto`:null}(t);n===null?e.removeAttribute(`dir`):e.dir=n}function xe(e){let t=R().createElement(`div`);return t.setAttribute(`data-lexical-slot`,e),t.style.display=`none`,t}function Se(e,t,n){t||e.contentEditable===`false`?$i(n,W):n.removeAttribute(`contenteditable`)}function Ce(e,t,n){let r=G,i=fe();G=``;let a=``,o=A(e);for(let[r,i]of n){let n=xe(r);Se(t,o,n),t.appendChild(n),G=``;let s=fe();Oe(i,Hi(e,n,W)),pe(s),Te(e,r,t,n),a+=G}return pe(i),G=r,a}function we(e){return sa(e)&&e.__slots!==null?e.__slots:vl}function Te(e,t,n,r){let i=vs.$getSlotTargetElement(e,t,n,W);i!==null&&(r.parentElement!==i&&i.appendChild(r),r.style.display=``)}function Ee(e){let t=hs.get(e);return t===void 0?null:t.parentElement}function De(e,t,n){let r=we(e),i=we(t);for(let[e,t]of r)if(!i.has(e)){let e=Ee(t);he(t,null),e!==null&&e.remove()}let a=G,o=fe(),s=``,c=null,l=A(t);for(let[e,a]of i){let i=r.get(e),o=i===void 0?null:Ee(i);G=``;let u=fe();if(o===null){o=xe(e);let r=null;for(let e of n.children)if(!e.hasAttribute(`data-lexical-slot`)){r=e;break}n.insertBefore(o,r),Oe(a,Hi(t,o,W))}else i===a?Ne(a,o):(i!==void 0&&he(i,o),Oe(a,Hi(t,o,W)));if(pe(u),Se(n,l,o),Te(t,e,n,o),s+=G,o.parentElement===n){let e=c===null?n.firstChild:c.nextSibling;e!==o&&n.insertBefore(o,e),c=o}}return pe(o),G=a,s}function Oe(e,n){let r=Y.get(e);if(r===void 0&&t(60),n!==null){let t=ps.get(e);if(t!==void 0){let i=hs.get(e);if(i!==void 0){let a=ca(t)?t.__slotHost:null,o=ca(r)?r.__slotHost:null,s=t.__parent!==r.__parent||a!==o,c=o!==null&&i.parentElement!==n.element;if(s||c)return n.insertChild(i),Ne(e,n.element)}}}let i=vs.$createDOM(r,W);if(function(e,t,n){let r=n._keyToDOMMap;Nr(t,n,e),r.set(e,t)}(e,i,W),w(r)?i.setAttribute(`data-lexical-text`,`true`):A(r)&&(i.setAttribute(`data-lexical-decorator`,`true`),Zi(i,{captureSelection:!0})),k(r)){let e=r.__indent,t=r.__size;be(i,r),e!==0&&ve(i,e);let n=we(r),a=n.size>0?Ce(r,i,n):``;if(t===0)i.__lexicalTextContent=a,i.__lexicalFirstTextKey=null,G+=a,n.size>0&&(i.__lexicalSlotTextLength=a.length);else{let e=G,o=t-1;if(ke(aa(r,Y),r,0,o,Hi(r,i,W)),a!==``){let t=i.__lexicalTextContent||``;i.__lexicalTextContent=a+t,G=e+a+t}n.size>0&&(i.__lexicalSlotTextLength=a.length)}let o=r.__format;o!==0&&ye(i,o),r.isInline()||Ae(null,r,i)}else{let t=r.getTextContent();if(A(r)){let t=r.decorate(W,cs);t!==null&&Pe(e,t),i.contentEditable=`false`;let n=we(r);n.size>0&&Ce(r,i,n)}G+=t}return n!==null&&n.insertChild(i),vs.$decorateDOM(r,null,i,W),de(r),$r(_s,ls,us,r,`created`),i}function ke(e,n,r,i,a){let o=G,s=fe();G=``,K=null,q=null,J=null;let c=r;for(;c<=i;++c){let t=fe();Oe(e[c],a);let n=Y.get(e[c]);n!==null&&w(n)?K===null&&(K=n.getFormat(),q=n.getStyle(),J=n.__key):k(n)&&c<i&&!n.isInline()&&(G+=Lo),pe(t)}let l=W._keyToDOMMap.get(n.__key);l===void 0&&t(349,n.__key),l.__lexicalTextContent=G,l.__lexicalFirstTextKey=J,G=o+G,pe(s)}function Ae(e,t,n){let r=Hi(t,n,W),i=r.element.__lexicalLastChildKind??null,a=function(e,t){if(e){let n=e.__last;if(n){let e=t.get(n);if(e)return er(e)?`line-break`:A(e)&&e.isInline()?`decorator`:null}return we(e).size>0?null:`empty`}return null}(t,Y);i!==a&&r.setManagedLineBreak(a)}function je(e,n,r){var i;K=null,q=null,J=null,function(e,n,r){let i=G,a=e.__size,o=n.__size;G=``;let s=r.element,c=W._keyToDOMMap.get(n.__key);c===void 0&&t(351,n.__key);let l=o-a;if(!ys&&Math.abs(l)<=1&&a>=ss&&e.__first===n.__first&&(l!==0||!W._cloneNotNeeded.has(e.__key))){let a=c.__lexicalTextContent,u=gs.get(e.__key);if(!ys&&typeof a==`string`&&u!==void 0){let o=function(e,t){let n=t.size;if(n===0||n>=e.__size)return null;let r=e.__last,i=null,a=0;for(;r!==null&&a<n;){if(!t.has(r))return null;i=r;let e=Y.get(r);if(e===void 0)return null;r=e.__prev,a++}return a!==n||r!==null&&t.has(r)?null:i}(n,u);if(o!==null){let d=u.size;if(l===0){let e=ue(o,d),r=o,l=0;for(;r!==null&&l<d;){let e=Y.get(r);if(e===void 0)break;let t=fe();Ne(r,s),w(e)&&K===null&&(K=e.getFormat(),q=e.getStyle(),J=e.__key),pe(t),r=e.__next,l++}let f=``;for(r=o,l=0;r!==null&&l<d;){let e=Y.get(r);if(e===void 0)break;let n;if(k(e)){let i=W._keyToDOMMap.get(r),a=i&&i.__lexicalTextContent;typeof a!=`string`&&t(352,e.getType()),n=a}else n=e.getTextContent();f+=n,l<d-1&&k(e)&&!e.isInline()&&(f+=Lo),r=e.__next,l++}let p=c.__lexicalSlotTextLength||0,m=p>0?a.slice(p):a,h=m.slice(0,m.length-e)+f;c.__lexicalTextContent=h,G=i+h,Me(n,c,u);return}if(function(e,n,r,i,a,o,s,c){if(c!==1&&c!==-1||s!==(c===1?2:1))return!1;let l=s-c,u=e.__last;for(let e=0;e<l-1;e++){if(u===null)return!1;let e=ps.get(u);if(e===void 0)return!1;u=e.__prev}if(u===null)return!1;let d=Y.get(o),f=ps.get(u);if(d===void 0||f===void 0||d.__prev!==f.__prev)return!1;let p=[],m=o;for(let e=0;e<s;e++){if(m===null)return!1;p.push(m);let e=Y.get(m);m=e?e.__next:null}let h=[];m=u;for(let e=0;e<l;e++){if(m===null)return!1;h.push(m);let e=ps.get(m);m=e?e.__next:null}let g=new Set(h),_=new Set(p),v=[],y=0,b=0;for(;y<l&&b<s;)if(p[b]===h[y])v.push({key:p[b],kind:`reconcile`}),y++,b++;else if(_.has(h[y])){if(g.has(p[b]))return!1;v.push({key:p[b],kind:`create`,nextIndex:b}),b++}else v.push({key:h[y],kind:`destroy`}),y++;for(;y<l;)v.push({key:h[y++],kind:`destroy`});for(;b<s;)v.push({key:p[b],kind:`create`,nextIndex:b}),b++;let x=ue(u,l);for(let e of v){let t=fe();if(e.kind===`reconcile`)Ne(e.key,r.element);else if(e.kind===`destroy`)he(e.key,r.element);else{let t=null;for(let n=e.nextIndex+1;n<s;n++){let e=W._keyToDOMMap.get(p[n]);if(e!==void 0){t=e;break}}Oe(e.key,r.withBefore(t??r.before))}if(e.kind!==`destroy`){let t=Y.get(e.key);t&&w(t)&&K===null&&(K=t.getFormat(),q=t.getStyle(),J=t.__key)}pe(t)}let S=``;for(let e=0;e<s;e++){let n=Y.get(p[e]);if(n===void 0)return!1;let r;if(k(n)){let i=W._keyToDOMMap.get(p[e]),a=i&&i.__lexicalTextContent;typeof a!=`string`&&t(350,n.getType()),r=a}else r=n.getTextContent();S+=r,e<s-1&&k(n)&&!n.isInline()&&(S+=Lo)}let ee=i.__lexicalSlotTextLength||0,te=ee>0?a.slice(ee):a;return i.__lexicalTextContent=te.slice(0,te.length-x)+S,!0}(e,0,r,c,a,o,d,l)){let e=c.__lexicalTextContent;typeof e!=`string`&&t(353),G=i+e,Me(n,c,u);return}}}if(l===0){let n=e.__first,r=0;for(;n!==null;){let e=Y.get(n);if(e===void 0)break;let i=ys||fs.has(n)||ds.has(n),a=fe();if(i)Ne(n,s);else{let r,i;if(k(e)){i=hs.get(n);let a=i&&i.__lexicalTextContent;typeof a!=`string`&&t(354,e.getType()),r=a}else r=e.getTextContent();G+=r,i!==void 0&&me(i)}w(e)?K===null&&(K=e.getFormat(),q=e.getStyle(),J=e.__key):k(e)&&r<o-1&&!e.isInline()&&(G+=Lo),pe(a),n=e.__next,r++}c.__lexicalTextContent=G,c.__lexicalFirstTextKey=J,G=i+G;return}}if(a===1&&o===1){let t=e.__first,i=n.__first;if(t===i)Ne(t,s);else{let e=Re(t),n=Oe(i,null);try{e.parentNode===s?s.replaceChild(n,e):r.insertChild(n)}catch(r){if(typeof r==`object`&&r){let a=`${r.toString()} Parent: ${s.tagName}, new child: {tag: ${n.tagName} key: ${i}}, old child: {tag: ${e.tagName}, key: ${t}}.`;throw Error(a)}throw r}he(t,null)}let a=Y.get(i);w(a)&&K===null&&(K=a.getFormat(),q=a.getStyle(),J=a.__key)}else{let i=aa(e,ps),c=aa(n,Y);if(i.length!==a&&t(227),c.length!==o&&t(228),a===0)o!==0&&ke(c,n,0,o-1,r);else if(o===0){if(a!==0){let e=r.after==null&&r.before==null&&we(n).size===0&&r.element.__lexicalLineBreak==null;ge(i,0,a-1,e?null:s),e&&(s.textContent=``)}}else(function(e,t,n,r,i,a){let o=r-1,s=i-1,c,l,u=a.getFirstChild(),d=0,f=0;for(;d<=o&&f<=s;){let e=t[d],r=n[f],i=fe();if(e===r)u=Fe(Ne(r,a.element)),d++,f++;else{if(l===void 0&&(l=Ie(n,f)),c===void 0)c=Ie(t,d);else if(!c.has(e)){d++,pe(i);continue}if(!l.has(e)){u=Fe(Re(e)),he(e,a.element),d++,c.delete(e),pe(i);continue}if(c.has(r)){let e=ri(W,r);e!==u&&a.withBefore(u??a.before).insertChild(e),u=Fe(Ne(r,a.element)),d++,f++}else Oe(r,a.withBefore(u??a.before)),f++}let o=Y.get(r);o!==null&&w(o)?K===null&&(K=o.getFormat(),q=o.getStyle(),J=o.__key):k(o)&&f<=s&&!o.isInline()&&(G+=Lo),pe(i)}let p=d>o,m=f>s;if(p&&!m){let t=n[s+1],r=t===void 0?null:W.getElementByKey(t);ke(n,e,f,s,a.withBefore(r??a.before))}else m&&!p&&ge(t,d,o,a.element)})(n,i,c,a,o,r)}c.__lexicalTextContent=G,c.__lexicalFirstTextKey=J,G=i+G}(e,n,Hi(n,r,W)),L(n)||(i=n,K==null||K===i.__textFormat||bs||i.setTextFormat(K),function(e){q==null||q===e.__textStyle||bs||e.setTextStyle(q)}(n))}function Me(e,t,n){let r=t.__lexicalFirstTextKey;if(r!=null){let t=e.__key,i=r;for(;i!==null;){let e=Y.get(i);if(e===void 0){i=null;break}if(e.__parent===t)break;i=e.__parent}if(i!==null&&!n.has(i)){let e=Y.get(r);if(w(e))return K=e.getFormat(),void(q=e.getStyle())}}t.__lexicalFirstTextKey=J}function Ne(e,n){let r=ps.get(e),i=Y.get(e);r!==void 0&&i!==void 0||t(61);let a=ys||fs.has(e)||ds.has(e),o=ri(W,e);if(r===i&&!a){let e;if(k(r)){let n=o.__lexicalTextContent;typeof n!=`string`&&t(355,r.getType()),e=n,me(o)}else e=r.getTextContent();return G+=e,o}if(r!==i&&a&&$r(_s,ls,us,i,`updated`),vs.$updateDOM(i,r,o,W)){let r=Oe(e,null);return n===null&&t(62),n.replaceChild(r,o),he(e,null),r}if(k(r)){k(i)||t(334,e);let n=i.__indent;(ys||n!==r.__indent)&&ve(o,n);let s=i.__format;(ys||s!==r.__format)&&ye(o,s);let c=a&&(we(i).size>0||we(r).size>0)?De(r,i,o):``;if(a){let e=G;if(je(r,i,o),j(i)||i.isInline()||Ae(0,i,o),c!==``){let t=o.__lexicalTextContent||``;o.__lexicalTextContent=c+t,G=e+c+t,o.__lexicalSlotTextLength=c.length}else(we(i).size>0||we(r).size>0)&&(o.__lexicalSlotTextLength=0)}else{let e=o.__lexicalTextContent;typeof e!=`string`&&t(356,r.getType()),G+=e,me(o)}if((ys||i.__dir!==r.__dir||i.__parent!==r.__parent)&&(be(o,i),j(i)&&!ys))for(let e of i.getChildren())k(e)&&be(ri(W,e.getKey()),e)}else{let t=i.getTextContent();if(A(i)){let t=i.decorate(W,cs);t!==null&&Pe(e,t),a&&(we(i).size>0||we(r).size>0)&&De(r,i,o)}G+=t}if(!bs&&j(i)){let e=i.getLatest();if(e.__cachedText!==G){let t=e.getWritable();t.__cachedText=G,i=t}}return vs.$decorateDOM(i,r,o,W),de(i),o}function Pe(e,t){let n=W._pendingDecorators,r=W._decorators;if(n===null){if(r[e]===t)return;n=Ir(W)}n[e]=t}function Fe(e){let t=e.nextSibling;return t!==null&&t===W._blockCursorElement&&(t=t.nextSibling),t}function Ie(e,t){let n=new Set;for(let r=t;r<e.length;r++)n.add(e[r]);return n}function Le(e,t,n,r,i,a){G=``,K=null,q=null,J=null,ys=r===2,W=n,cs=n._config,vs=n._config.dom||nl,ls=n._nodes,us=W._listeners.mutation,ds=i,fs=a,ps=e._nodeMap,ms=e,Y=t._nodeMap,bs=t._readOnly,hs=s(n._keyToDOMMap),gs=function(){let e=new Map,t=t=>{for(let n of t){let t=Y.get(n);if(t===void 0)continue;let r=t.__parent;if(r===null)continue;let i=e.get(r);i===void 0&&(i=new Set,e.set(r,i)),i.add(n)}};return t(ds.keys()),t(fs),e}();let o=new Map;return _s=o,Ne(`root`,null),W=void 0,ls=void 0,ds=void 0,fs=void 0,ps=void 0,ms=void 0,Y=void 0,cs=void 0,hs=void 0,gs=void 0,_s=void 0,vs=nl,o}function Re(e){let n=hs.get(e);return n===void 0&&t(75,e),n}function C(e){return{type:e}}function ze(e){let t=new Map;return{dispose(){for(let e of t.values())e.dispose();t.clear()},register(n,r){let i=t.get(n);i===void 0&&(i={dispose:e(n,r),holders:new Set},t.set(n,i));let a=()=>{let e=t.get(n);e&&e.holders.delete(a)&&e.holders.size===0&&(t.delete(n),e.dispose())};return i.holders.add(a),a}}}function Be(e,t,n,r){return e.addEventListener(t,n,r),e.removeEventListener.bind(e,t,n,r)}function Ve(e,t,n,r,i,a){let o=e.anchor,s=e.focus,c=o.getNode(),l=O(),u;if(a!==void 0)u=a;else{let e=bi(ui(l));u=e===null?null:Oi(e,l._rootElement)}let d=u===null?null:u.anchorNode,f=o.key,p=l.getElementByKey(f),m=n.length;return f!==s.key||!w(c)||(!i&&(!bo||l._inputState.lastBeforeInputInsertTextTimeStamp<r+50)||c.isDirty()&&m<2||Vr(n))&&o.offset!==s.offset&&!c.isComposing()||Sr(c)||c.isDirty()&&m>1||(i||!bo)&&p!==null&&!c.isComposing()&&d!==Wi(c,p,l)||u!==null&&t!==null&&(!t.collapsed||t.startContainer!==u.anchorNode||t.startOffset!==u.anchorOffset)||!c.isComposing()&&(c.getFormat()!==e.format||c.getStyle()!==e.style)||function(e,t){if(t.isSegmented())return!0;if(!e.isCollapsed())return!1;let n=e.anchor.offset,r=t.getParentOrThrow(),i=xr(t);return n===0?!t.canInsertTextBefore()||!r.canInsertTextBefore()&&!t.isComposing()||i||function(e){let t=e.getPreviousSibling();return(w(t)||k(t)&&t.isInline())&&!t.canInsertTextAfter()}(t):n===t.getTextContentSize()&&(!t.canInsertTextAfter()||!r.canInsertTextAfter()&&!t.isComposing()||i)}(e,c)}function He(e,t){return Cr(e)&&e.nodeValue!==null&&t!==0&&t!==e.nodeValue.length}function Ue(e,n,r){let{anchorNode:i,anchorOffset:a,focusNode:o,focusOffset:s}=Oi(e,n._rootElement),c=n._inputState;c.isSelectionChangeFromDOMUpdate&&(c.isSelectionChangeFromDOMUpdate=!1,He(i,a)&&He(o,s)&&!c.postDeleteSelectionToRestore)||Gn(n,()=>{if(!r)return void P(null);if(!_r(n,i,o))return;let l=E();if(c.postDeleteSelectionToRestore&&T(l)&&l.isCollapsed()){let e=l.anchor,t=c.postDeleteSelectionToRestore.anchor;(e.key===t.key&&e.offset===t.offset+1||e.offset===1&&t.getNode().is(e.getNode().getPreviousSibling()))&&(l=c.postDeleteSelectionToRestore.clone(),P(l))}if(c.postDeleteSelectionToRestore=null,T(l)){let r=l.anchor,u=r.getNode();if(l.isCollapsed()){e.type===`Range`&&i===o&&(l.dirty=!0);let a=ui(n).event,s=a?a.timeStamp:performance.now(),{format:d,style:f,offset:p,key:m,timeStamp:h}=c.collapsedSelectionFormat,g=Rr(),_=!1===n.isComposing()&&g.getTextContent()===``;if(s<h+200&&r.offset===p&&r.key===m)We(l,d,f);else if(r.type===`text`)w(u)||t(141),Ge(l,u);else if(r.type===`element`&&!_){k(u)||t(259);let e=r.getNode();e.isEmpty()?function(e,t){We(e,t.getTextFormat(),t.getTextStyle())}(l,e):We(l,l.format,``)}}else{let e=r.key,t=l.focus.key,n=l.getNodes(),i=n.length,o=l.isBackward(),c=o?s:a,u=o?a:s,d=o?t:e,f=o?e:t,p=2047,m=!1;for(let e=0;e<i;e++){let t=n[e],r=t.getTextContentSize();if(w(t)&&r!==0&&!(e===0&&t.__key===d&&c===r||e===i-1&&t.__key===f&&u===0)&&(m=!0,p&=t.getFormat(),p===0))break}l.format=m?p:0}}I(n,Ss)})}function We(e,t,n){e.format===t&&e.style===n||(e.format=t,e.style=n,e.dirty=!0)}function Ge(e,t){We(e,t.getFormat(),t.getStyle())}function Ke(e){if(!e.getTargetRanges)return null;let t=e.getTargetRanges();return t.length===0?null:t[0]}function qe(e){let{lastKeyCode:t}=O()._inputState;if(e==null||e.length<=1||t==null)return;let n=t.length===1?t:t===`Enter`?`
|
|
2
|
+
`:t===`Tab`?` `:null;if(!n)return;let r=E();if(!T(r)||!r.isCollapsed())return;let i=r.anchor.getNode();if(!w(i))return;let{offset:a}=r.anchor;if(i.getTextContentSize()===a){let e=i.getNextSibling();if(n===`
|
|
3
|
+
`){if(er(e))e.selectEnd();else if(!e){let e=_l(i,rn),t=e&&e.getNextSibling();k(t)&&t.selectStart()}}else n===` `?Mt(e)&&e.selectEnd():w(e)&&e.getTextContent()[0]===n&&e.select(1,1)}else i.getTextContent()[a]===n&&i.select(a+1,a+1)}function Je(e){e.isInsertTextAfterHandledSelectionCommand=!1,e.handledSelectionCommandTimeoutId!==null&&(clearTimeout(e.handledSelectionCommandTimeoutId),e.handledSelectionCommandTimeoutId=null)}function Ye(e){Je(e),e.isInsertTextAfterHandledSelectionCommand=!0,e.handledSelectionCommandTimeoutId=setTimeout(()=>Je(e),0)}function Xe(e,t){let n=Pi(e);if(z(n)&&ea(n,t))return!0;let r=t.getRootElement();if(r===null)return!1;let i=Ni(r.ownerDocument);return i!==null&&r.contains(i)&&ea(i,t)}function Ze(e){let n=e.inputType,r=Ke(e),i=O(),a=i._inputState,o=E();if(n===`insertText`&&e.data&&a.isInsertTextAfterHandledSelectionCommand){if(Je(a),e.preventDefault(),T(o)&&!o.isCollapsed()){let e=o.isBackward()?o.anchor:o.focus;o.anchor.set(e.key,e.offset,e.type),o.focus.set(e.key,e.offset,e.type)}return!0}if(n===`deleteContentBackward`){if(o===null){let e=ln();if(!T(e))return!0;P(e.clone())}if(T(o)){let n=o.anchor.key===o.focus.key;if(function(e,t){return e.lastKeyCode===`MediaLast`&&t<e.lastKeyDownTimeStamp+30}(a,e.timeStamp)&&i.isComposing()&&n){if(M(null),a.lastKeyDownTimeStamp=0,setTimeout(()=>{Gn(i,()=>{M(null)})},30),T(o)){let e=o.anchor.getNode();e.markDirty(),w(e)||t(142),Ge(o,e)}}else{if(M(null),xo&&r!==null&&!r.collapsed&&(o.applyDOMRange(r),!o.isCollapsed()))return e.preventDefault(),o.removeText(),!0;e.preventDefault();let t=o.anchor.getNode(),s=t.getTextContent(),c=t.canInsertTextAfter(),l=o.anchor.offset===0&&o.focus.offset===s.length,u=To&&n&&!l&&c;if(u&&o.isCollapsed()&&(u=!A(ti(o.anchor,!0))),!u){I(i,ks,!0);let e=E();To&&T(e)&&e.isCollapsed()&&(a.postDeleteSelectionToRestore=e,setTimeout(()=>a.postDeleteSelectionToRestore=null))}}return!0}}if(!T(o))return!0;let s=e.data;a.unprocessedBeforeInputData!==null&&Gr(!1,i,a.unprocessedBeforeInputData),o.dirty&&a.unprocessedBeforeInputData===null||!o.isCollapsed()||j(o.anchor.getNode())||r===null||o.applyDOMRange(r),a.unprocessedBeforeInputData=null;let c=o.anchor,l=o.focus,u=c.getNode(),d=l.getNode();if(n===`insertText`||n===`insertTranspose`){if(s===`
|
|
4
|
+
`)e.preventDefault(),I(i,As,!1);else if(s===Lo)e.preventDefault(),I(i,js);else if(s==null&&e.dataTransfer){let t=e.dataTransfer.getData(`text/plain`);e.preventDefault(),o.insertRawText(t)}else s!=null&&Ve(o,r,s,e.timeStamp,!0)?(e.preventDefault(),I(i,Ms,s),qe(s)):a.unprocessedBeforeInputData=s;return a.lastBeforeInputInsertTextTimeStamp=e.timeStamp,!0}switch(e.preventDefault(),n){case`insertFromYank`:case`insertFromDrop`:case`insertReplacementText`:I(i,Ms,e),qe((e.dataTransfer?e.dataTransfer.getData(`text/plain`):null)??e.data);break;case`insertFromComposition`:{let t=a.hadOrphanedCompositionEvents;a.hadOrphanedCompositionEvents=!1;let n=i._compositionKey;M(null),t||I(i,Ms,e),tt(n);break}case`insertLineBreak`:M(null),I(i,As,!1);break;case`insertParagraph`:M(null),a.isInsertLineBreak&&!xo?(a.isInsertLineBreak=!1,I(i,As,!1)):I(i,js);break;case`insertFromPaste`:case`insertFromPasteAsQuotation`:I(i,Ns,e);break;case`deleteByComposition`:(function(e,t){return e!==t||k(e)||k(t)||!xr(e)||!xr(t)})(u,d)&&I(i,Ps,e);break;case`deleteByDrag`:oi(Mc),I(i,Ps,e);break;case`deleteByCut`:I(i,Ps,e);break;case`deleteContent`:I(i,ks,!1);break;case`deleteWordBackward`:I(i,Fs,!0);break;case`deleteWordForward`:I(i,Fs,!1);break;case`deleteHardLineBackward`:case`deleteSoftLineBackward`:I(i,Is,!0);break;case`deleteContentForward`:case`deleteHardLineForward`:case`deleteSoftLineForward`:I(i,Is,!1);break;case`formatStrikeThrough`:I(i,Ls,`strikethrough`);break;case`formatBold`:I(i,Ls,`bold`);break;case`formatItalic`:I(i,Ls,`italic`);break;case`formatUnderline`:I(i,Ls,`underline`);break;case`historyUndo`:I(i,zs);break;case`historyRedo`:I(i,Bs)}return!0}function Qe(e){let t=O(),n=t._inputState,r=E(),i=e.data,a=Ke(e),o=!1;if(i!=null&&T(r)){let s=bi(ui(t)),c=s===null?null:Oi(s,t._rootElement),l=e.inputType===`insertCompositionText`&&n.compositionPhase!==`ending-firefox`&&!t.isComposing();l&&(n.hadOrphanedCompositionEvents=!0);let u=r.anchor.getNode(),d=e.inputType===`insertCompositionText`&&n.compositionPhase!==`ending-firefox`&&t.isComposing()&&w(u)&&Sr(u);if(!l&&!d&&Ve(r,a,i,e.timeStamp,!1,c)){if(o=!0,n.compositionPhase===`ending-firefox`){let e=nt(t,i);if(n.compositionPhase=`idle`,e)return oi(Pc),zr(),!0}let a=r.anchor.getNode();if(s===null||c===null)return!0;let l=r.isBackward(),u=l?r.anchor.offset:r.focus.offset,d=l?r.focus.offset:r.anchor.offset;bo&&!r.isCollapsed()&&w(a)&&c.anchorNode!==null&&a.getTextContent().slice(0,u)+i+a.getTextContent().slice(u+d)===Wr(c.anchorNode)||I(t,Ms,i);let f=i.length;yo&&f>1&&e.inputType===`insertCompositionText`&&!t.isComposing()&&(r.anchor.offset-=f,r._cachedNodes=null,r._cachedIsBackward=null),To&&t.isComposing()&&(n.lastKeyDownTimeStamp=0,M(null))}}return o||(Gr(!1,t,i===null?void 0:i),n.compositionPhase===`ending-firefox`&&(nt(t,i||void 0),oi(`composition-end`),n.compositionPhase=`idle`)),zr(),!0}function $e(e){let t=O(),n=t._inputState,r=E();if(T(r)&&!t.isComposing()){n.compositionPhase=`composing`,n.hadOrphanedCompositionEvents=!1;let i=r.anchor,a=r.anchor.getNode();if(M(i.key),oi(`composition-start`),e.timeStamp<n.lastKeyDownTimeStamp+30||i.type===`element`||!r.isCollapsed()||!To&&(a.getFormat()!==r.format||w(a)&&a.getStyle()!==r.style)||w(a)&&(Sr(a)||i.offset===0&&!a.canInsertTextBefore()||i.offset===a.getTextContentSize()&&!a.canInsertTextAfter())){I(t,Ms,Ro);let e=E();T(e)&&M(e.anchor.key)}}return!0}function et(e){let t=O();return t._inputState.compositionPhase=`idle`,nt(t,e.data),oi(Pc),!0}function tt(e){if(e===null)return;let t=N(e);if(!w(t)||t.getType()===`text`||Sr(t)||!t.isAttached())return;let n=E(),r=T(n)&&n.anchor.key===e?n.anchor.offset:null,i=kt(t.getTextContent());if(i.setFormat(t.getFormat()),i.setStyle(t.getStyle()),t.replace(i),r!==null){let e=Math.min(r,i.getTextContentSize());i.select(e,e)}}function nt(e,t){let n=e._compositionKey;if(M(null),n!==null&&t!=null){if(t===``){let t=N(n),r=e.getElementByKey(n),i=r!==null&&w(t)?Wi(t,r,e):null;if(i!==null&&i.nodeValue!==null&&w(t)){let n=bi(ui(e)),r=n&&Oi(n,e._rootElement),a=null,o=null;r!==null&&r.anchorNode===i&&(a=r.anchorOffset,o=r.focusOffset),Kr(t,i.nodeValue,a,o,!0)}return tt(n),!1}if(t[t.length-1]===`
|
|
5
|
+
`){let t=E();if(T(t)||zt(t)){if(T(t)){let e=t.focus;t.anchor.set(e.key,e.offset,e.type)}return I(e,Js,null),tt(n),!1}}let r=N(n);if(r!==null&&w(r)&&Sr(r)){r.markDirty();let e=E(),i=r.getTextContentSize(),a=T(e)&&e.anchor.key===n?e.anchor.offset:i;return r.select(a,a).insertText(t),!0}}return Gr(!0,e,t),tt(n),!1}function rt(e){let t=O(),n=t._inputState;if(e.key==null)return!0;if(n.compositionPhase===`ending-safari`){let r=Xr(e);if(r&&Gn(t,()=>{nt(t,n.compositionEndData)}),n.compositionPhase=`idle`,n.compositionEndData=``,r)return!0}if(function(e){return F(e,`ArrowRight`,{shiftKey:`any`})}(e))I(t,Hs,e);else if(function(e){return F(e,`ArrowRight`,{...cl,shiftKey:`any`})}(e))I(t,Us,e);else if(function(e){return F(e,`ArrowLeft`,{shiftKey:`any`})}(e))I(t,Ws,e);else if(function(e){return F(e,`ArrowLeft`,{...cl,shiftKey:`any`})}(e))I(t,Gs,e);else if(function(e){return F(e,`ArrowUp`,{altKey:`any`,shiftKey:`any`})}(e))I(t,Ks,e);else if(function(e){return F(e,`ArrowDown`,{altKey:`any`,shiftKey:`any`})}(e))I(t,qs,e);else if(function(e){return F(e,`Enter`,{altKey:`any`,ctrlKey:`any`,metaKey:`any`,shiftKey:!0})}(e))n.isInsertLineBreak=!0,I(t,Js,e);else if(function(e){return e.key===` `}(e))I(t,Ys,e);else if(function(e){return vo&&F(e,`o`,{ctrlKey:!0})}(e))e.preventDefault(),n.isInsertLineBreak=!0,I(t,As,!0);else if(function(e){return F(e,`Enter`,{altKey:`any`,ctrlKey:`any`,metaKey:`any`})}(e))n.isInsertLineBreak=!1,I(t,Js,e);else if(function(e){return F(e,`Backspace`,{shiftKey:`any`})||vo&&F(e,`h`,{ctrlKey:!0})}(e))Xr(e)?I(t,Xs,e)&&Ye(n):(e.preventDefault(),I(t,ks,!0));else if(function(e){return e.key===`Escape`}(e))I(t,Zs,e);else if(function(e){return F(e,`Delete`,{})||vo&&F(e,`d`,{ctrlKey:!0})}(e))(function(e){return e.key===`Delete`})(e)?I(t,Qs,e):(e.preventDefault(),I(t,ks,!1));else if(function(e){return F(e,`Backspace`,ll)}(e))e.preventDefault(),I(t,Fs,!0);else if(function(e){return F(e,`Delete`,ll)}(e))e.preventDefault(),I(t,Fs,!1);else if(function(e){return vo&&F(e,`Backspace`,{metaKey:!0})}(e))e.preventDefault(),I(t,Is,!0);else if(function(e){return vo&&(F(e,`Delete`,{metaKey:!0})||F(e,`k`,{ctrlKey:!0}))}(e))e.preventDefault(),I(t,Is,!1);else if(function(e){return F(e,`b`,cl)}(e))e.preventDefault(),I(t,Ls,`bold`);else if(function(e){return F(e,`u`,cl)}(e))e.preventDefault(),I(t,Ls,`underline`);else if(function(e){return F(e,`i`,cl)}(e))e.preventDefault(),I(t,Ls,`italic`);else if(function(e){return F(e,`Tab`,{shiftKey:`any`})}(e))I(t,$s,e);else if(function(e){return F(e,`z`,cl)}(e))e.preventDefault(),I(t,zs);else if(function(e){return vo?F(e,`z`,{metaKey:!0,shiftKey:!0}):F(e,`y`,{ctrlKey:!0})||F(e,`z`,{ctrlKey:!0,shiftKey:!0})}(e))e.preventDefault(),I(t,Bs);else{let r=t._editorState._selection;(function(e){return F(e,`a`,cl)})(e)?(e.preventDefault(),I(t,uc,e)&&Ye(n)):r===null||T(r)||(function(e){return F(e,`c`,cl)}(e)?(e.preventDefault(),I(t,cc,e)):function(e){return F(e,`x`,cl)}(e)&&(e.preventDefault(),I(t,lc,e)))}return function(e){return e.ctrlKey||e.shiftKey||e.altKey||e.metaKey}(e)&&t.dispatchCommand(_c,e),!0}function it(e){let t=e.__lexicalEventHandles;return t===void 0&&(t=[],e.__lexicalEventHandles=t),t}function at(e){let t=xi(e.target);if(t===null)return;let n=ai(e.target),r=null,i=null,a=n===null?void 0:xc.get(n);if(n!==null){if(a!==void 0){let e=a.editors,n=a.hasShadowEditor;if(n===void 0){n=!1;for(let t of e)if(t._rootElement!==null&&Si(t._rootElement.getRootNode())){n=!0;break}a.hasShadowEditor=n}if(n){let n=null,a=null;for(let o of e){let e=o._rootElement;if(e===null)continue;let s=Oi(t,e).anchorNode;if(s!==null&&yr(s)===o){if(Si(e.getRootNode())){r=o,i=s;break}n===null&&(n=o,a=s)}}r===null&&n!==null&&(r=n,i=a)}else{let e=t.anchorNode;e===null||z(e)&&e.shadowRoot!==null||(r=yr(e),r!==null&&(i=e))}}if(r===null){let e=Ni(n);r=e===null?null:yr(e)}}if(r===null)return;if(r._inputState.isSelectionChangeFromMouseDown){if(a!==void 0)for(let e of a.editors)e._inputState.isSelectionChangeFromMouseDown=!1;Gn(r,()=>{let n=ln(),a=i??Oi(t,r._rootElement).anchorNode;(z(a)||Cr(a))&&P(cn(n,t,r,e))})}let o=Hr(r),s=o[o.length-1],c=s._key,l=Cc.get(c),u=l||s;u!==r&&Ue(t,u,!1),Ue(t,r,!0),r===s?l&&Cc.delete(c):Cc.set(c,r)}function ot(e){e._lexicalHandled=!0}function st(e){return!0===e._lexicalHandled}function ct(e){let n=bc.get(e);if(n===void 0)return;let r=xc.get(n);if(r===void 0)return;bc.delete(e);let i=br(e);vr(i)?(function(e){if(e._parentEditor!==null){let t=Hr(e),n=t[t.length-1]._key;Cc.get(n)===e&&Cc.delete(n)}else Cc.delete(e._key)}(i),r.editors.delete(i),r.hasShadowEditor=void 0,e.__lexicalEditor=null):i&&t(198);let a=it(e);for(let e=0;e<a.length;e++)a[e]();e.__lexicalEventHandles=[]}function lt(e,n,r){D();let i=e.__key,a=e.getParent();if(a===null)return void(V(e)!==null&&t(367,i,String(V(e))));let o=function(e){let t=E();if(!T(t)||!k(e))return t;let{anchor:n,focus:r}=t,i=n.getNode(),a=r.getNode();return ci(i,e)&&n.set(e.__key,0,`element`),ci(a,e)&&r.set(e.__key,0,`element`),t}(e),s=!1;if(T(o)&&n){let t=o.anchor,n=o.focus;t.key===i&&(fn(t,e,a,e.getPreviousSibling(),e.getNextSibling()),s=!0),n.key===i&&(fn(n,e,a,e.getPreviousSibling(),e.getNextSibling()),s=!0)}else zt(o)&&n&&e.isSelected()&&e.selectPrevious();if(T(o)&&n&&!s){let t=e.getIndexWithinParent();kr(e),un(o,a,t,-1)}else kr(e);r||L(a)||a.canBeEmpty()||!a.isEmpty()||lt(a,n),n&&o&&j(a)&&a.isEmpty()&&a.selectEnd()}function ut(e){return e}function dt(e){return e[wc]||!1}function ft(e){return e instanceof X}function pt(e){let t={};if(!e)return t;let n=``,r=``,i=null,a=!1,o=!1,s=!1,c=0,l=e.length,u=-1;for(let d=0;d<l;d++){let l=e[d];if(a)l===`*`&&e[d+1]===`/`&&(a=!1,d++);else if(o)u===-1&&(u=d),o=!1;else if(i===null){if(l!==`/`||e[d+1]!==`*`){if(l!==`"`&&l!==`'`){if(l!==`(`){if(l!==`)`){if(s||l!==`:`||c!==0){if(l===`;`&&c===0){u!==-1&&(s?r+=e.slice(u,d):n+=e.slice(u,d),u=-1);let i=n.trim(),a=r.trim();i!==``&&a!==``&&(t[i]=a),n=``,r=``,s=!1;continue}u===-1&&(u=d)}else u!==-1&&(n+=e.slice(u,d),u=-1),s=!0}else u===-1&&(u=d),c=Math.max(0,c-1)}else u===-1&&(u=d),c++}else u===-1&&(u=d),i=l}else u!==-1&&(s?r+=e.slice(u,d):n+=e.slice(u,d),u=-1),a=!0,d++}else u===-1&&(u=d),l===`\\`?o=!0:l===i&&(i=null)}u!==-1&&(s?r+=e.slice(u,l):n+=e.slice(u,l));let d=n.trim(),f=r.trim();return d!==``&&f!==``&&(t[d]=f),t}function mt(e,t,n){let r=n.trimEnd(),i=r.length-10;i>=0&&r.slice(i).toLowerCase()===Fc?e.setProperty(t,r.slice(0,i).trim(),`important`):e.setProperty(t,n,``)}function ht(e,t,n=``){if(t===n)return;let r=pt(n),i=pt(t);for(let t in i)delete r[t],mt(e,t,i[t]);for(let t in r)e.removeProperty(t)}function gt(e,t){return 16&t?`code`:t&128?`mark`:32&t?`sub`:64&t?`sup`:null}function _t(e,t){return 1&t?`strong`:2&t?`em`:`span`}function vt(e,t,n,r,i){let a=r.classList,o=Qr(i,`base`);o!==void 0&&a.add(...o),o=Qr(i,`underlineStrikethrough`);let s=!1,c=8&t&&4&t;o!==void 0&&(8&n&&4&n?(s=!0,c||a.add(...o)):c&&a.remove(...o));for(let e in U){let r=U[e];if(o=Qr(i,e),o!==void 0){if(n&r){if(s&&(e===`underline`||e===`strikethrough`)){t&r&&a.remove(...o);continue}((t&r)===0||c&&e===`underline`||e===`strikethrough`)&&a.add(...o)}else t&r&&a.remove(...o)}}}function yt(e,t,n){let r=n.isComposing(),i=e+(r?Io:``),a=Bi(),o=Vi(a).$getDOMSlot(n,t,a),s=o.getFirstChild();if(s===null||s.nodeType!==Node.TEXT_NODE)return void o.insertChild(R().createTextNode(i));let c=s,l=c.nodeValue;if(l!==i){if(r||yo){let[e,t,n]=function(e,t){let n=e.length,r=t.length,i=0,a=0;for(;i<n&&i<r&&e[i]===t[i];)i++;for(;a+i<n&&a+i<r&&e[n-a-1]===t[r-a-1];)a++;return[i,n-i-a,t.slice(i,r-a)]}(l,i);t!==0&&c.deleteData(e,t),c.insertData(e,n)}else c.nodeValue=i}}function bt(e,t,n,r,i,a){yt(i,e,t);let o=a.theme.text;o!==void 0&&vt(0,0,r,e,o)}function xt(e,t){let n=R().createElement(t);return n.appendChild(e),n}function St(e){return e!=null&&!0===e.__isInlineFormattable}function Ct(e){return{forChild:At(e.style),node:null}}function wt(e){let t=e,n=t.style.fontWeight===`normal`;return{forChild:At(t.style,n?void 0:`bold`),node:null}}function Tt(e){if(!z(e))return!1;if(e.nodeName===`PRE`)return!0;let t=e.style.whiteSpace;return typeof t==`string`&&t.startsWith(`pre`)}function Et(e){let n=e;e.parentElement===null&&t(129);let r=n.textContent||``;if(function(e){let t,n=e.parentNode,r=[e];for(;n!==null&&(t=Lc.get(n))===void 0&&!Tt(n);)r.push(n),n=n.parentNode;let i=t===void 0?n:t;for(let e=0;e<r.length;e++)Lc.set(r[e],i);return i}(n)!==null)return{node:yn(r)};if(r=r.replace(/\r/g,``).replace(/[ \t\n]+/g,` `),r===``)return{node:null};if(r[0]===` `){let e=n,t=!0;for(;e!==null&&(e=Dt(e,!1))!==null;){let n=e.textContent||``;if(n.length>0){/[ \t\n]$/.test(n)&&(r=r.slice(1)),t=!1;break}}t&&(r=r.slice(1))}if(r[r.length-1]===` `){let e=n,t=!0;for(;e!==null&&(e=Dt(e,!0))!==null;)if((e.textContent||``).replace(/^( |\t|\r?\n)+/,``).length>0){t=!1;break}t&&(r=r.slice(0,r.length-1))}return r===``?{node:null}:{node:kt(r)}}function Dt(e,t){let n=e;for(;;){let e;for(;(e=t?n.nextSibling:n.previousSibling)===null;){let e=n.parentElement;if(e===null)return null;n=e}if(n=e,z(n)){let e=n.style.display;if(e===``&&!Ri(n)||e!==``&&!e.startsWith(`inline`))return null}let r=n;for(;(r=t?n.firstChild:n.lastChild)!==null;)n=r;if(Cr(n))return n;if(n.nodeName===`BR`)return null}}function Ot(e){let t=Rc[e.nodeName.toLowerCase()];return t===void 0?{node:null}:{forChild:At(e.style,t),node:null}}function kt(e=``){return hi(new Ic(e))}function w(e){return e instanceof Ic}function At(e,t){let n=e.fontWeight,r=e.textDecoration.split(` `),i=n===`700`||n===`bold`,a=r.includes(`line-through`),o=e.fontStyle===`italic`,s=r.includes(`underline`),c=e.verticalAlign;return e=>w(e)||St(e)?(i&&!e.hasFormat(`bold`)&&e.toggleFormat(`bold`),a&&!e.hasFormat(`strikethrough`)&&e.toggleFormat(`strikethrough`),o&&!e.hasFormat(`italic`)&&e.toggleFormat(`italic`),s&&!e.hasFormat(`underline`)&&e.toggleFormat(`underline`),c!==`sub`||e.hasFormat(`subscript`)||e.toggleFormat(`subscript`),c!==`super`||e.hasFormat(`superscript`)||e.toggleFormat(`superscript`),t&&!e.hasFormat(t)&&e.toggleFormat(t),e):e}function jt(){return hi(new zc)}function Mt(e){return e instanceof zc}function Nt(e,t,n){return new Bc(e,t,n)}function Pt(e,t){let n=t.__key,r=e.offset,i=`element`;if(w(t)){i=`text`;let e=t.getTextContentSize();r>e&&(r=e)}else if(!k(t)){let e=t.getNextSibling();if(w(e))n=e.__key,r=0,i=`text`;else{let e=t.getParent();e&&(n=e.__key,r=t.getIndexWithinParent()+1)}}e.set(n,r,i)}function Ft(e,t){if(k(t)){let n=t.getLastDescendant();k(n)||w(n)?Pt(e,n):Pt(e,t)}else Pt(e,t)}function It(e,t,n,r){let i=e.getNode(),a=i.getChildAtIndex(e.offset),o=kt();if(o.setFormat(n),o.setStyle(r),or(a))a.splice(0,0,[o]);else if(a!==null){let e=L(i)?ar().append(o):o;a.insertBefore(e)}else if(L(i)){let e=i.getLastChild();k(e)&&!e.isInline()&&e.isEmpty()?e.append(o):i.append(ar().append(o))}else i.append(o);e.is(t)&&t.set(o.__key,0,`text`),e.set(o.__key,0,`text`)}function Lt(e,n,r,i){let a=e.anchor.getNode();w(a)||t(398);let o=e.anchor.offset,s=kt(n);s.setFormat(r),s.setStyle(i);let c=a.getParentOrThrow();if(o===0)c.isInline()&&!a.__prev?c.insertBefore(s):a.insertBefore(s,!1);else if(o===a.getTextContentSize())c.isInline()&&!a.__next?c.insertAfter(s):a.insertAfter(s,!1);else{let[e]=a.splitText(o);e.insertAfter(s,!1)}a.getTextContent()===``&&a.isAttached()&&a.remove(),s.selectEnd(),s.isComposing()&&e.anchor.type===`text`&&e.anchor.set(e.anchor.key,e.anchor.offset-n.length,e.anchor.type)}function Rt(){let e=Rr();if(e.isEmpty()){let t=ar();e.append(t),t.select()}}function T(e){return e instanceof Hc}function zt(e){return e instanceof Vc}function Bt(e,t){if(zt(e)){for(let n of e.getNodes())St(n)&&n.setFormat(t(n.getFormat()));return}if(e.isCollapsed())return e.setFormat(t(e.format)),void M(null);let n=[];for(let r of e.getNodes())w(r)?n.push(r):k(r)?r.setTextFormat(t(r.getTextFormat())):St(r)&&r.setFormat(t(r.getFormat()));let r=n.length;if(r===0)return e.setFormat(t(e.format)),void M(null);let i=e.anchor,a=e.focus,o=e.isBackward(),s=o?a:i,c=o?i:a,l=0,u=n[0],d=s.type===`element`?0:s.offset;if(s.type===`text`&&d===u.getTextContentSize()&&(l=1,u=n[1],d=0),u==null)return;let f=r-1,p=n[f],m=c.type===`text`?c.offset:p.getTextContentSize();if(u.is(p)){if(d===m)return;let n=t(u.getFormat());if(Sr(u)||d===0&&m===u.getTextContentSize())u.setFormat(n);else{let e=u.splitText(d,m),t=d===0?e[0]:e[1];t.setFormat(n),s.type===`text`&&s.set(t.__key,0,`text`),c.type===`text`&&c.set(t.__key,m-d,`text`)}e.format=n;return}d===0||Sr(u)||([,u]=u.splitText(d),d=0);let h=t(u.getFormat());u.setFormat(h);let g=t(p.getFormat());m>0&&(m===p.getTextContentSize()||Sr(p)||([p]=p.splitText(m)),p.setFormat(g));for(let e=l+1;e<f;e++){let r=n[e];r.setFormat(t(r.getFormat()))}s.type===`text`&&s.set(u.__key,d,`text`),c.type===`text`&&c.set(p.__key,m,`text`),e.format=h|g}function Vt(e,t){let n=[];for(let[e,r]of Object.entries(t))typeof r==`boolean`&&n.push([e,r]);n.length!==0&&Bt(e,e=>{for(let[t,r]of n)e=Er(e,t,r?U[t]:0);return e})}function Ht(e,t,n=null){let r=n===null&&T(e)?Er(e.format,t,null):n;Bt(e,e=>Er(e,t,r))}function Ut(e){let t=e.offset;if(e.type===`text`)return t;let n=e.getNode();return t===n.getChildrenSize()?n.getTextContent().length:0}function Wt(e){let t=e.getStartEndPoints();if(t===null)return[0,0];let[n,r]=t;return n.type===`element`&&r.type===`element`&&n.key===r.key&&n.offset===r.offset?[0,0]:[Ut(n),Ut(r)]}function Gt(e,t){for(let n=t;n;n=n.getParent()){if(k(n)){if(n.collapseAtStart(e))return!0;if(L(n))break}if(n.getPreviousSibling())break}return!1}function Kt(e){let t=e.focus,n=e.anchor,r=n.key,i=n.offset,a=n.type;n.set(t.key,t.offset,t.type,!0),t.set(r,i,a,!0)}function qt(e,t,n,r){e.modify(t,n,r)}function Jt(e,t,n){let r=e.getNodes(),i=r.filter(e=>ci(e,n));if(i.length===0||i.length===r.length)return!1;let a=t?i[0]:i[i.length-1],o=k(a)?a:a.getParentOrThrow();return t?o.selectStart():o.selectEnd(),!0}function Yt(e,t,n){if(Tn(e,`extend`,t,n))return;let r=O(),i=bi(ui(r));if(!i||typeof i.modify!=`function`)return;let a=r._blockCursorElement,o=r._rootElement,s=e.anchor,c=e.focus.getNode();o===null||a===null||!k(c)||c.isInline()||c.canBeEmpty()||yi(a,r,o);let l=e=>{let t=e.getNode(),n=r.getElementByKey(e.key);return n!==null&&e.type===`text`&&w(t)?Wi(t,n,r):n},u=s.getNode(),d=l(s);if(d===null)return;let f=s.offset,p=e.isCollapsed(),m=e.focus,h=p?d:l(m);if(h===null)return;let g=m.offset;if(mn(i,h,g,h,g),qt(i,`move`,t?`backward`:`forward`,n),i.rangeCount===0)return;let _=Ei(i,o)||i.getRangeAt(0),v=_.startContainer,y=_.startOffset;if(p&&n===`character`&&s.type===`text`&&w(u)&&u.isUnmergeable()&&f===(t?0:u.getTextContentSize())){let n=H(u,t?`previous`:`next`).getNodeAtCaret();if(w(n)){let r=t?n.getTextContentSize()-1:1;e.focus.set(n.__key,r,`text`),e.dirty=!0;return}}if(p&&n===`character`&&s.type===`text`){let n=t?0:u.getTextContentSize(),r=v===d?y:f===n?-1:n;if(r>=0)return void(r!==f&&(e.focus.set(s.key,r,`text`),e.dirty=!0))}let[b,x,S,ee]=t?[v,y,d,f]:[d,f,v,y],te=j(u)?u:fi(u);e.applyDOMRange({collapsed:!1,endContainer:S,endOffset:ee,startContainer:b,startOffset:x}),e.dirty=!0,!Jt(e,t,te)&&t&&Kt(e),n===`lineboundary`&&Tn(e,`extend`,t,n,`decorators`)}function Xt(e,t,n){let r=e,i=r.getTextContent().split(/(?=\s)/g),a=i.length,o=0,s=0;for(let e=0;e<a;e++){let r=e===a-1;if(s=o,o+=i[e].length,t&&o===n||o>n||r){i.splice(e,1),r&&(s=void 0);break}}let c=i.join(``).trim();c===``?r.remove():(r.setTextContent(c),r.select(s,s))}function Zt(e,n,r,i){let a,o=n,s=!1;if(z(e)){let c=!1,l=e.childNodes,u=l.length,d=i._blockCursorElement;o===u&&u>0&&(c=!0,o=u-1),Pr(e,i)!==void 0||ea(e,i)||(s=!0);let f=l[o],p=!1;if(f===d)f=l[o+1],p=!0;else if(d!==null){let t=d.parentNode;e===t&&n>Array.prototype.indexOf.call(t.children,d)&&o--}if(a=Br(f),w(a))o=ka(a,c?`next`:`previous`);else{let l=Br(e);if(l===null)return null;if(k(l)){let s=i.getElementByKey(l.getKey());s===null&&t(214);let u=Hi(l,s,i);[l,o]=u.resolveChildIndex(l,s,e,n),k(l)||t(215),c&&o>=l.getChildrenSize()&&(o=Math.max(0,l.getChildrenSize()-1));let d=l.getChildAtIndex(o);if(k(d)&&function(e,t,n){let r=e.getParent();return n===null||r===null||!r.canBeEmpty()||r!==n.getNode()}(d,0,r)){let e=c?d.getLastDescendant():d.getFirstDescendant();e===null?l=d:(d=e,l=k(d)?d:d.getParentOrThrow()),o=0}w(d)?(a=d,l=null,o=ka(d,c?`next`:`previous`)):d!==l&&c&&!p&&(k(l)||t(216),o=Math.min(l.getChildrenSize(),o+1))}else{let t=la(l),r=t===null?l:t,a=r.getIndexWithinParent(),s=i.getElementByKey(l.getKey()),c=`after`;if(s!==null&&Br(e)===l){let t=Hi(l,s,i);t.element===s?n===0&&A(l)&&(c=`before`):c=t.resolveLeafPosition(s,e,n)}o=c===`before`?a:a+1,l=r.getParentOrThrow()}if(k(l))return[Nt(l.__key,o,`element`),s]}}else a=Br(e);return w(a)?[Nt(a.__key,ka(a,o,`clamp`),`text`),s]:null}function Qt(e,t,n){let r=e.offset,i=e.getNode();if(r===0){let r=i.getPreviousSibling(),a=i.getParent();if(t){if((n||!t)&&r===null&&k(a)&&a.isInline()){let t=a.getPreviousSibling();w(t)&&e.set(t.__key,t.getTextContent().length,`text`)}}else k(r)&&!n&&r.isInline()?e.set(r.__key,r.getChildrenSize(),`element`):w(r)&&!i.isUnmergeable()&&e.set(r.__key,r.getTextContent().length,`text`)}else if(r===i.getTextContent().length){let r=i.getNextSibling(),a=i.getParent();if(t&&k(r)&&r.isInline())e.set(r.__key,0,`element`);else if((n||t)&&r===null&&k(a)&&a.isInline()&&!a.canInsertTextAfter()&&a.getTextContentSize()>1){let t=a.getNextSibling();w(t)&&e.set(t.__key,0,`text`)}}}function $t(e){let t=N(e.key);return t===null?null:da(t)}function en(e,t,n){let r=$t(e),i=$t(t);if(r===i||r!==null&&i!==null&&r.is(i))return!1;let a=n(r,i);if(r!==null)return k(r)?t.set(r.getKey(),a?r.getChildrenSize():0,`element`):t.set(r.getKey(),a?r.getTextContentSize():0,`text`),!0;let o=la(i);if(o===null)return!1;let s=o.getParent();if(s===null)return!1;let c=o.getIndexWithinParent();return t.set(s.getKey(),a?c+1:c,`element`),!0}function tn(e){let t=en(e.anchor,e.focus,(t,n)=>function(e,t,n,r){if(n!==null&&r!==null){let e=la(n),t=la(r);if(e!==null&&e.is(t)){for(let t of fa(e).values()){if(t===n.getKey())return!0;if(t===r.getKey())return!1}return!0}return e===null||t===null||e.isBefore(t)}if(n!==null){let e=la(n),r=N(t.key);return e===null||r===null||!(!e.is(r)&&!e.isParentOf(r))||e.isBefore(r)}let i=la(r),a=N(e.key);return i!==null&&a!==null&&!i.is(a)&&!i.isParentOf(a)&&a.isBefore(i)}(e.anchor,e.focus,t,n));return t&&(e.dirty=!0),t}function nn(e,t,n,r,i,a){if(e===null||n===null||!_r(i,e,n))return null;let o=Zt(e,t,T(a)?a.anchor:null,i);if(o===null)return null;let s=Zt(n,r,T(a)?a.focus:null,i);if(s===null)return null;let[c,l]=o,[u,d]=s;if(c.type===`element`&&u.type===`element`){let t=Br(e),r=Br(n);if(A(t)&&A(r))return null}let f=i._slotsUsed&&en(c,u,()=>(e.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING)!==0);return function(e,t){if(e.type===`text`&&t.type===`text`){let n=e.isBefore(t),r=e.is(t);Qt(e,n,r),Qt(t,!n,r),r&&t.set(e.key,e.offset,e.type)}}(c,u),[c,u,l||d||f]}function rn(e){return k(e)&&!e.isInline()}function an(e,t,n,r,i,a){let o=On(),s=new Hc(Nt(e,t,i),Nt(n,r,a),0,``);return s.dirty=!0,o._selection=s,s}function on(){let e=Nt(`root`,0,`element`),t=Nt(`root`,0,`element`);return new Hc(e,t,0,``)}function sn(){return new Vc(new Set)}function cn(e,t,n,r){let i=n._window;if(i===null)return null;let a=r||i.event,o=a?a.type:void 0,s=o===`selectionchange`,c=!es&&(s||o===`beforeinput`||o===`compositionstart`||o===`compositionend`||o===`click`&&a&&a.detail===3||o===`drop`||o===void 0),l,u,d,f;if(T(e)&&!c)return e.clone();{if(t===null)return null;let r=Oi(t,n._rootElement);if(l=r.anchorNode,u=r.focusNode,d=r.anchorOffset,f=r.focusOffset,(s||o===void 0)&&T(e)&&!_r(n,l,u))return e.clone()}let p=nn(l,d,u,f,n,e);if(p===null)return null;let[m,h,g]=p,_=0,v=``;if(T(e)){let t=e.anchor;if(m.key===t.key)_=e.format,v=e.style;else{let e=m.getNode();w(e)?(_=e.getFormat(),v=e.getStyle()):k(e)&&(_=e.getTextFormat(),v=e.getTextStyle())}}let y=new Hc(m,h,_,v);return g&&(y.dirty=!0),y}function E(){return On()._selection}function ln(){return O()._editorState._selection}function un(e,t,n,r=1){let i=e.anchor,a=e.focus,o=i.getNode(),s=a.getNode();if(!t.is(o)&&!t.is(s))return;let c=t.__key;if(e.isCollapsed()){let t=i.offset;if(n<=t&&r>0||n<t&&r<0){let n=Math.max(0,t+r);i.set(c,n,`element`),a.set(c,n,`element`),dn(e)}}else{let o=e.isBackward(),s=o?a:i,l=s.getNode(),u=o?i:a,d=u.getNode();if(t.is(l)){let e=s.offset;(n<=e&&r>0||n<e&&r<0)&&s.set(c,Math.max(0,e+r),`element`)}if(t.is(d)){let e=u.offset;(n<=e&&r>0||n<e&&r<0)&&u.set(c,Math.max(0,e+r),`element`)}}dn(e)}function dn(e){let t=e.anchor,n=t.offset,r=e.focus,i=r.offset,a=t.getNode(),o=r.getNode();if(e.isCollapsed()){if(!k(a))return;let e=a.getChildrenSize(),i=n>=e,o=i?a.getChildAtIndex(e-1):a.getChildAtIndex(n);if(w(o)){let e=0;i&&(e=o.getTextContentSize()),t.set(o.__key,e,`text`),r.set(o.__key,e,`text`)}return}if(k(a)){let e=a.getChildrenSize(),r=n>=e,i=r?a.getChildAtIndex(e-1):a.getChildAtIndex(n);if(w(i)){let e=0;r&&(e=i.getTextContentSize()),t.set(i.__key,e,`text`)}}if(k(o)){let e=o.getChildrenSize(),t=i>=e,n=t?o.getChildAtIndex(e-1):o.getChildAtIndex(i);if(w(n)){let e=0;t&&(e=n.getTextContentSize()),r.set(n.__key,e,`text`)}}}function fn(e,t,n,r,i){let a=null,o=0,s=null;r===null?i!==null&&(a=i.__key,w(i)?s=`text`:k(i)&&(s=`element`)):(a=r.__key,w(r)?(o=r.getTextContentSize(),s=`text`):k(r)&&(o=r.getChildrenSize(),s=`element`)),a!==null&&s!==null?e.set(a,o,s):(o=t.getIndexWithinParent(),o===-1&&(o=n.getChildrenSize()),e.set(n.__key,o,`element`))}function pn(e,t,n,r,i){e.type===`text`?e.set(n,e.offset+(t?0:i),`text`):e.offset>r.getIndexWithinParent()&&e.set(e.key,e.offset-1,`element`)}function mn(e,t,n,r,i){try{e.setBaseAndExtent(t,n,r,i)}catch{}}function hn(e,t,n){let r=ri(e,t.getKey());if(k(t)){let i=Hi(t,r,e);return[i.element,n+i.getFirstChildOffset()]}return[r,n]}function gn(e,t,n,r,i,a){let o=a.getRootNode(),s=wr(o)||Si(o)?Ni(o):null;if(i.has(`collaboration`)&&s!==a||s!==null&&gr(s,s))return;let c=Oi(r,a),l;if(!T(t))return void(e!==null&&_r(n,c.anchorNode,c.focusNode)&&r.removeAllRanges());let u=t.anchor,d=t.focus,f=u.getNode(),p=d.getNode(),[m,h]=hn(n,f,u.offset),[g,_]=hn(n,p,d.offset),v=t.format,y=t.style,b=t.isCollapsed(),x=m,S=g,ee=!1;if(u.type===`text`?(x=w(f)?Wi(f,m,n):null,ee=f.getFormat()!==v||f.getStyle()!==y):T(e)&&e.anchor.type===`text`&&(ee=!0),d.type===`text`&&(S=w(p)?Wi(p,g,n):null),x!==null&&S!==null){if(b&&(e===null||ee||T(e)&&(e.format!==v||e.style!==y))&&function(e,t,n,r,i,a){e._inputState.collapsedSelectionFormat={format:t,key:i,offset:r,style:n,timeStamp:a}}(n,v,y,h,u.key,performance.now()),(r.type!==`Range`||!b)&&c.anchorOffset===h&&c.focusOffset===_&&c.anchorNode===x&&c.focusNode===S){if(s===null||!a.contains(s)){let e=s===null?null:yr(s);e!==null&&e!==n||i.has(`skip-selection-focus`)||a.focus({preventScroll:!0})}if(u.type!==`element`)return}if(mn(r,x,h,S,_),yo&&t.isCollapsed()&&a!==null&&!i.has(`skip-selection-focus`)){let e=Mi(a);if(e===null||!a.contains(e)){let e=Ni(a.ownerDocument),t=e===null?null:yr(e);t!==null&&t!==n||a.focus({preventScroll:!0})}}if(!i.has(`skip-scroll-into-view`)&&t.isCollapsed()&&a!==null&&a===Mi(a)){let e=T(t)&&t.anchor.type===`element`?x.childNodes[h]||null:(l===void 0&&(l=Di(r,a)),l);if(e!==null){let t;if(Cr(e)){let n=e.ownerDocument.createRange();n.selectNode(e),t=n.getBoundingClientRect()}else t=e.getBoundingClientRect();(function(e,t,n){let r=ai(n),i=li(r);if(r===null||i===null)return;let a=n.getBoundingClientRect();if(t.bottom<a.top)return;let{top:o,bottom:s}=t,c=0,l=0,u=n;for(;u!==null;){let t=u===r.body;if(t){let t=i.visualViewport;if(t){let e=t.offsetTop;c=e,l=e+t.height}else c=0,l=ui(e).innerHeight;let n=i.getComputedStyle(r.documentElement),a=parseFloat(n.scrollPaddingTop),o=parseFloat(n.scrollPaddingBottom);isFinite(a)&&(c+=a),isFinite(o)&&(l-=o)}else{let e=u===n?a:u.getBoundingClientRect();c=e.top,l=e.bottom}let d=0;if(o<c?d=-(c-o):s>l&&(d=s-l),d!==0){if(t)i.scrollBy(0,d);else{let e=u.scrollTop;u.scrollTop+=d;let t=u.scrollTop-e;o-=t,s-=t}}if(t)break;u=ii(u)}})(n,t,a)}}(function(e){e._inputState.isSelectionChangeFromDOMUpdate=!0})(n)}}function _n(e){let t=E()||ln();t===null&&(t=Rr().selectEnd()),t.insertNodes(e)}function vn(e,t){for(let n of e.split(/(\r?\n|\t)/))n===`
|
|
6
|
+
`||n===`\r
|
|
7
|
+
`?t.linebreak():n===` `?t.tab():n!==``&&t.text(n)}function yn(e){let t=[];return vn(e,{linebreak:()=>t.push($n()),tab:()=>t.push(jt()),text:e=>t.push(kt(e))}),t}function bn(e){let t=[];for(let n of e)er(n)||(!k(n)&&!A(n)||n.isInline()?t.push(n):k(n)&&t.push(...bn(n.getChildren())));return t}function xn(e){let n=e;e.isCollapsed()||n.removeText();let r=E();T(r)&&(n=r),T(n)||t(161);let i=n.anchor,a=i.getNode(),o=i.offset;for(;!B(a)&&V(a)===null;){let e=a;if([a,o]=Sn(a,o),e.is(a))break}return o}function Sn(e,t){let n=e.getParent();if(!n){let e=ar();return Rr().append(e),e.select(),[Rr(),0]}if(w(e)){let r=e.splitText(t);if(r.length===0)return[n,e.getIndexWithinParent()];let i=t===0?0:1;return[n,r[0].getIndexWithinParent()+i]}if(!k(e)||t===0)return[n,e.getIndexWithinParent()];let r=e.getChildAtIndex(t);if(r){let n=new Hc(Nt(e.__key,t,`element`),Nt(e.__key,t,`element`),0,``),i=e.insertNewAfter(n);i&&i.append(r,...r.getNextSiblings())}return[n,e.getIndexWithinParent()+1]}function Cn(e){return er(e)||di(e)||w(e)||e.isParentRequired()}function wn(e){let t=ar(),n=null;for(let r=0;r<e.length;r++){let i=e[r];if(Cn(i)){if(n===null){n=i.createParentElementNode(),t.append(n);let a=e[r+1];if(er(i)&&(a===void 0||!Cn(a)))continue}n.append(i)}else t.append(i),n=null}return t}function Tn(e,t,n,r,i=`decorators-and-blocks`){if(t===`move`&&r===`character`&&!e.isCollapsed()){let[t,r]=n===e.isBackward()?[e.focus,e.anchor]:[e.anchor,e.focus];return r.set(t.key,t.offset,t.type),!0}let a=Ua(e.focus,n?`previous`:`next`),o=r===`lineboundary`,s=t===`move`,c=a,l=i===`decorators-and-blocks`;if(!$a(c)){for(let e of c){l=!1;let{origin:t}=e;if(!A(t)||t.isIsolated()||(c=e,!o||!t.isInline()))break}if(l)for(let e of Pa(a).iterNodeCarets(t===`extend`?`shadowRoot`:`root`)){if(Da(e))e.origin.isInline()||(c=e);else{if(k(e.origin))continue;A(e.origin)&&!e.origin.isInline()&&(c=e)}break}}if(c===a)return!1;if(s&&!o&&A(c.origin)&&c.origin.isKeyboardSelectable()){let e=sn();return e.add(c.origin.getKey()),P(e),!0}return c=Qa(c),s&&Wa(e.anchor,c),Wa(e.focus,c),l||!o}function En(){return $||Z!==null&&Z._readOnly}function D(){$&&t(13)}function Dn(){qc>99&&t(14)}function On(){return Z===null&&t(195,jn()),Z}function kn(e){On()!==null&&Q===null&&(Q=e),Q!==e&&n(378)}function O(){return Q===null&&t(337,jn()),Q}function An(){O()._dirtyType=2}function jn(){let e=0,t=new Set,n=rl.version;if(typeof window<`u`)for(let r of wi(document)){let i=br(r);if(vr(i))e++;else if(i){let e=String(i.constructor.version||`<0.17.1`);e===n&&(e+=` (separately built, likely a bundler configuration issue)`),t.add(e)}}let r=` Detected on the page: ${e} compatible editor(s) with version ${n}`;return t.size&&(r+=` and incompatible editors with versions ${Array.from(t).join(`, `)}`),r}function Mn(){return Q}function Nn(e,t,n){let r=t.__type,i=mr(e,r),a=n.get(r);a===void 0&&(a=Array.from(i.transforms),n.set(r,a));let o=a.length;for(let e=0;e<o&&(a[e](t),t.isAttached());e++);}function Pn(e,t){return e!==void 0&&e.__key!==t&&e.isAttached()}function Fn(e,t){if(!t)return;let n=e._updateTags,r=t;Array.isArray(t)||(r=[t]);for(let e of r)n.add(e)}function In(e){return Ln(e,O()._nodes)}function Ln(e,n){let r=e.type,i=n.get(r);i===void 0&&t(17,r);let a=i.klass;e.type!==a.getType()&&t(18,a.name);let o=a.importJSON(e),s=e.children;if(k(o)&&Array.isArray(s))for(let e=0;e<s.length;e++){let t=Ln(s[e],n);o.append(t)}let c=e.$slots;if(c){sa(o)||t(379,a.name);for(let e in c)ba(o,e,Ln(c[e],n))}return o}function Rn(e,t,n){let r=Z,i=$,a=Q;Z=t,$=!0,Q=e;try{return n()}finally{Z=r,$=i,Q=a}}function zn(e,t){let n=Gc;Gc=!0;try{(function(e,t){let n=e._pendingEditorState,r=e._rootElement,i=e._headless||r===null;if(n===null)return void(!e._updating&&e._deferred.length>0&&Hn(e,e._deferred));let a=e._editorState,o=a._selection,s=n._selection,c=e._dirtyType!==0,l=Z,u=$,d=Q,f=e._updating,p=e._observer,m=null;if(e._pendingEditorState=null,e._editorState=n,!i&&c&&p!==null){Q=e,Z=n,$=!1,e._updating=!0;try{let t=e._dirtyType,r=e._dirtyElements,i=e._dirtyLeaves;p.disconnect(),m=Le(a,n,e,t,r,i)}catch(t){if(t instanceof Error&&e._onError(t),Wc)throw t;cr(e,null,r,n),g(e),e._dirtyType=2,Wc=!0,zn(e,a),Wc=!1;return}finally{p.observe(r,Jc),e._updating=f,Z=l,$=u,Q=d}}n._readOnly||=!0;let h=e._dirtyLeaves,_=e._dirtyElements,v=e._normalizedNodes,y=e._updateTags;c&&(e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements=new Map,e._normalizedNodes=new Set),e._updateTags=new Set,function(e,t){let n=e._decorators,r=e._pendingDecorators||n,i=t._nodeMap,a;for(a in r)i.has(a)||(r===n&&(r=Ir(e)),delete r[a])}(e,n);let b=i?null:bi(ui(e));if(e._editable&&b!==null&&(c||s===null||s.dirty||!s.is(o))&&r!==null&&!y.has(`skip-dom-selection`)){Q=e,Z=n;try{if(p!==null&&p.disconnect(),c||s===null||s.dirty){let t=e._blockCursorElement;t!==null&&yi(t,e,r),gn(o,s,e,b,y,r)}(function(e,t,n){let r=e._blockCursorElement;if(T(n)&&n.isCollapsed()&&n.anchor.type===`element`&&t.contains(Mi(t))){let i=n.anchor,a=i.getNode(),o=i.offset,s=!1,c=null;if(o===a.getChildrenSize())vi(a.getChildAtIndex(o-1))&&(s=!0);else{let t=a.getChildAtIndex(o);if(t!==null&&vi(t)){let n=t.getPreviousSibling();(n===null||vi(n))&&(s=!0,c=e.getElementByKey(t.__key))}}if(s){let n=Hi(a,e.getElementByKey(a.__key),e).element;r===null&&(e._blockCursorElement=r=function(e){let t=e.theme,n=R().createElement(`div`);n.contentEditable=`false`,n.setAttribute(`data-lexical-cursor`,`true`);let r=t.blockCursor;return r!==void 0&&(typeof r==`string`&&(r=t.blockCursor=uo(r)),r!==void 0&&n.classList.add(...r)),n}(e._config)),t.style.caretColor=`transparent`,c===null?n.appendChild(r):n.insertBefore(r,c);return}}r!==null&&yi(r,e,t)})(e,r,s)}finally{p!==null&&p.observe(r,Jc),Q=d,Z=l}}m!==null&&function(e,t,n,r,i){let a=Array.from(e._listeners.mutation),o=a.length;for(let e=0;e<o;e++){let[o,s]=a[e];for(let e of s){let a=t.get(e);a!==void 0&&o(a,{dirtyLeaves:r,prevEditorState:i,updateTags:n})}}}(e,m,y,h,a),T(s)||s===null||o!==null&&o.is(s)||e.dispatchCommand(Ss);let x=e._pendingDecorators;x!==null&&(e._decorators=x,e._pendingDecorators=null,Bn(`decorator`,e,!0,x)),function(e,t,n){let r=Lr(t),i=Lr(n);r!==i&&Bn(`textcontent`,e,!0,i)}(e,t||a,n),Bn(`update`,e,!0,{dirtyElements:_,dirtyLeaves:h,editorState:n,mutatedNodes:m,normalizedNodes:v,prevEditorState:t||a,tags:y}),!f&&Hn(e,e._deferred),(function(e){let t=e._updates;if(t.length===0)return void(e._cascadeCount=0);if(function(e){Kc.has(e)||(Kc.add(e),setTimeout(()=>{Kc.delete(e),e._cascadeCount=0},0))}(e),e._cascadeCount++>99)return e._updates=[],e._cascadeCount=0,void e._onWarn(Error(`One or more update listeners are endlessly enqueueing more updates. May have encountered infinite recursion caused by update listeners that trigger additional updates without a stop condition. Editor namespace: ${e._config.namespace}`));let n=t.shift();if(n){let[t,r]=n;Wn(e,t,r)}})(e)})(e,t)}finally{Gc=n}}function Bn(e,t,n,...r){let i=t._updating;t._updating=n;try{let n=t._listeners[e],i=Array.from(n);for(let[e,t]of i){t&&t();let i=e(...r);n.has(e)?n.set(e,i):i&&i()}}finally{t._updating=i}}function Vn(e,t,n,r){let i=Hr(e),a;if(!Gc)for(let e=0;e<i.length;e++)i[e]._updating||(i[e]._cascadeCount=0);for(let e=4;e>=0;e--)for(let o=0;o<i.length;o++){let s=i[o];if(o>0&&s._updating){a=s;break}let c=s._commands.get(t);if(c!==void 0){let t=c[e];if(t.size>0){let e=!1;if(Gn(s,()=>{for(let i of t)if(i(n,r))return void(e=!0)}),e)return e}}}return a&&a.update(()=>{Vn(a,t,n,r)}),!1}function Hn(e,t){if(e._deferred=[],t.length!==0){let n=e._updating;e._updating=!0;try{for(let e=0;e<t.length;e++)t[e]()}finally{e._updating=n}}}function Un(e,n){let r=e._updates,i=n||!1;for(;r.length!==0;){let n=r.shift();if(n){let[r,a]=n,o=e._pendingEditorState,s;a!==void 0&&(s=a.onUpdate,a.skipTransforms&&(i=!0),a.discrete&&(o===null&&t(191),o._flushSync=!0),s&&e._deferred.push(s),Fn(e,a.tag)),o==null?Wn(e,r,a):r()}}return i}function Wn(e,n,r){let i=e._updateTags,a,o=!1,s=!1;r!==void 0&&(a=r.onUpdate,Fn(e,r.tag),o=r.skipTransforms||!1,s=r.discrete||!1),a&&e._deferred.push(a);let l=e._editorState,u=e._pendingEditorState,d=!1;(u===null||u._readOnly)&&(u=e._pendingEditorState=Jn(u||l),d=!0),u._flushSync=s;let f=Z,p=$,m=Q,h=e._updating;Z=u,$=!1,e._updating=!0,Q=e;let g=e._headless||e.getRootElement()===null;pr(null);try{d&&(g?l._selection!==null&&(u._selection=l._selection.clone()):u._selection=function(e,t){let n=e.getEditorState()._selection,r=bi(ui(e));return T(n)||n==null?cn(n,r,e,t):n.clone()}(e,r&&r.event||null));let i=e._compositionKey;n(),o=Un(e,o),function(e,t){let n=t.getEditorState()._selection,r=e._selection;if(T(r)){let e=r.anchor,t=r.focus,i;if(e.type===`text`&&(i=e.getNode(),i.selectionTransform(n,r)),t.type===`text`){let e=t.getNode();i!==e&&e.selectionTransform(n,r)}}}(u,e),e._dirtyType!==0&&(o?function(e,t){let n=t._dirtyLeaves,r=e._nodeMap;for(let e of n){let t=r.get(e);w(t)&&t.isAttached()&&t.isSimpleText()&&!t.isUnmergeable()&&se(t)}}(u,e):function(e,t){let n=t._dirtyLeaves,r=t._dirtyElements,i=e._nodeMap,a=jr(),o=new Map,s=n,c=s.size,l=r,u=l.size;for(;c>0||u>0;){if(c>0){t._dirtyLeaves=new Set;for(let e of s){let r=i.get(e);w(r)&&r.isAttached()&&r.isSimpleText()&&!r.isUnmergeable()&&se(r),r!==void 0&&Pn(r,a)&&Nn(t,r,o),n.add(e)}if(s=t._dirtyLeaves,c=s.size,c>0){qc++;continue}}t._dirtyLeaves=new Set,t._dirtyElements=new Map,l.delete(`root`)&&l.set(`root`,!0);for(let e of l){let n=e[0],s=e[1];if(r.set(n,s),!s)continue;let c=i.get(n);c!==void 0&&Pn(c,a)&&Nn(t,c,o)}s=t._dirtyLeaves,c=s.size,l=t._dirtyElements,u=l.size,qc++}t._dirtyLeaves=n,t._dirtyElements=r}(u,e),Un(e),function(e,t,n,r){let i=e._nodeMap,a=t._nodeMap,o=[];for(let[e]of r){let t=a.get(e);t!==void 0&&(t.isAttached()||(k(t)&&c(t,e,i,a,o,r),i.has(e)||r.delete(e),o.push(e)))}for(let e of n){let t=a.get(e);t===void 0||t.isAttached()||(sa(t)&&t.__slots!==null&&c(t,e,i,a,o,n),i.has(e)||n.delete(e),o.push(e))}for(let e of o)a.delete(e);let s=O(),l=s._compositionKey;l===null||a.has(l)||(s._compositionKey=null)}(l,u,e._dirtyLeaves,e._dirtyElements)),i!==e._compositionKey&&(u._flushSync=!0);let a=u._selection;if(T(a)){e._slotsUsed&&tn(a);let n=u._nodeMap,r=a.anchor.key,i=a.focus.key;n.get(r)!==void 0&&n.get(i)!==void 0||t(19)}else zt(a)&&a._nodes.size===0&&(u._selection=null)}catch(t){t instanceof Error&&e._onError(t),e._pendingEditorState=l,e._dirtyType=2,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),zn(e);return}finally{Z=f,$=p,Q=m,e._updating=h,qc=0}e._dirtyType!==0||e._deferred.length>0||function(e,t){let n=t.getEditorState()._selection,r=e._selection;if(r!==null){if(r.dirty||!r.is(n))return!0}else if(n!==null)return!0;return!1}(u,e)?u._flushSync?(u._flushSync=!1,zn(e)):d&&sl(()=>{zn(e)}):(u._flushSync=!1,d&&(i.clear(),e._deferred=[],e._pendingEditorState=null))}function Gn(e,t,n){Q===e&&n===void 0?En()?Wn(e,t,n):t():Wn(e,t,n)}function Kn(e){if(L(e)){let t=null;for(let n of e.getChildren())t=n.isInline()?(t||n.replace(n.createParentElementNode())).append(n):null}}function k(e){return e instanceof Yc}function qn(e,t,n){let r=e.getNode();for(;r;){let e=r.__key;if(t.has(e)&&!n.has(e))return!0;r=r.getParent()}return!1}function A(e){return e instanceof Xc}function j(e){return e instanceof Zc}function Jn(e){return new Qc(s(e._nodeMap),null,e._slotsUsed)}function Yn(){return new Qc(new Map([[`root`,new Zc]]),null,!1)}function Xn(e){let n=e.exportJSON(),r=e.constructor;if(n.type!==r.getType()&&t(130,r.name),k(e)){let i=n.children;Array.isArray(i)||t(59,r.name);let a=e.getChildren();for(let e=0;e<a.length;e++){let t=Xn(a[e]);i.push(t)}}let i=pa(e);if(i.length>0){let a={};for(let n of i){let i=ma(e,n);i===null&&t(366,r.name,n),a[n]=Xn(i)}n.$slots=a}return n}function Zn(e){return e instanceof Qc}function Qn(e){return{node:$n()}}function $n(){return hi(new el)}function er(e){return e instanceof el}function tr(e){let t=e.parentElement;if(t!==null&&zi(t)){let n=t.firstChild;if(n===e||n.nextSibling===e&&rr(n)){let n=t.lastChild;if(n===e||n.previousSibling===e&&rr(n))return!0}}return!1}function nr(e){let t=e.parentElement;if(t!==null&&zi(t)){let n=t.firstChild;if(n===e||n.nextSibling===e&&rr(n))return!1;let r=t.lastChild;if(r===e||r.previousSibling===e&&rr(r))return!0}return!1}function rr(e){return Cr(e)&&/^( |\t|\r?\n)+$/.test(e.textContent||``)}function ir(e){let t=ar();if(Xi(t,e),Ji(e,t),t.getFormatType()===``){let n=e.getAttribute(`align`);n&&n&&n in Ho&&t.setFormat(n)}return Yi(t,e),{node:t}}function ar(){return hi(new tl)}function or(e){return e instanceof tl}function sr(e){console.warn(e)}function cr(e,t,n,r,i){let a=e._keyToDOMMap;a.clear(),e._editorState=Yn(),e._pendingEditorState=r,e._compositionKey=null,e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),e._normalizedNodes=new Set,i&&i.preserveUpdateQueue||(e._updateTags=new Set,e._updates=[],e._cascadeCount=0),e._blockCursorElement=null,e._inputState.handledSelectionCommandTimeoutId!==null&&clearTimeout(e._inputState.handledSelectionCommandTimeoutId),e._inputState={collapsedSelectionFormat:{format:0,key:`root`,offset:0,style:``,timeStamp:0},compositionEndData:``,compositionPhase:`idle`,hadOrphanedCompositionEvents:!1,handledSelectionCommandTimeoutId:null,isInsertLineBreak:!1,isInsertTextAfterHandledSelectionCommand:!1,isSelectionChangeFromDOMUpdate:!1,isSelectionChangeFromMouseDown:!1,lastBeforeInputInsertTextTimeStamp:0,lastKeyCode:null,lastKeyDownTimeStamp:0,postDeleteSelectionToRestore:null,unprocessedBeforeInputData:null};let o=e._observer;o!==null&&(o.disconnect(),e._observer=null),t!==null&&(t.textContent=``,function(e,t){let n=`__lexicalKey_${t._key}`;delete e[n]}(t,e)),n!==null&&(n.textContent=``,a.set(`root`,n),Nr(n,e,`root`))}function lr(e){let t=new Set,n=new Set;for(let{klass:r,ownNodeConfig:i}of ra(e)){let e=r.transform;if(!n.has(e)){n.add(e);let i=r.transform();i&&t.add(i)}if(i){let e=i.$transform;e&&t.add(e)}}return t}function ur(e){let n=e||{},r=Mn(),i=n.theme||{},a=e===void 0?r:n.parentEditor||null,o=n.disableEvents||!1,s=Yn(),c=n.namespace||(a===null?Ur():a._config.namespace),l=n.editorState,u=[Zc,Ic,el,zc,tl,$c,...n.nodes||[]],{onError:d,onWarn:f,html:p}=n,m=n.editable===void 0||n.editable,h;if(e===void 0&&r!==null)h=r._nodes;else{h=new Map;for(let e=0;e<u.length;e++){let r=u[e],i=null,a=null;if(r&&typeof r==`object`){let e=r;r=e.replace,i=e.with,a=e.withKlass||null}if(typeof r!=`function`||!r.prototype||!(r===X||r.prototype instanceof X)){let i=`<unknown>`;try{i=JSON.parse(Xo)}catch{}t(365,String(e-u.length+(n.nodes?n.nodes.length:0)),typeof r==`function`?`${r.name}${typeof r.getType==`function`?` (type ${String(r.getType())})`:``}`:String(r),String(i))}na(r);let o=r.getType(),s=lr(r);h.set(o,{exportDOM:p&&p.export?p.export.get(r):void 0,klass:r,replace:i,replaceWithKlass:a,sharedNodeState:b(u[e]),transforms:s})}}let g=new rl(s,a,h,{disableEvents:o,dom:{...nl,...e&&e.dom},namespace:c,theme:i},d||console.error,f||sr,function(e,t){let n=new Map,r=new Set,i=e=>{Object.keys(e).forEach(t=>{let r=n.get(t);r===void 0&&(r=[],n.set(t,r)),r.push(e[t])})};return e.forEach(e=>{let t=e.klass.importDOM;if(t==null||r.has(t))return;r.add(t);let n=t.call(e.klass);n!==null&&i(n)}),t&&i(t),n}(h,p?p.import:void 0),m,e);return l!==void 0&&(g._pendingEditorState=l,g._dirtyType=2),function(e){e.registerCommand(Ts,Ze,0),e.registerCommand(Es,Qe,0),e.registerCommand(Ds,$e,0),e.registerCommand(Os,et,0),e.registerCommand(Vs,rt,0)}(g),g}function dr(e,t){let n=e.get(t);e.delete(t),n&&n()}function fr(e,t,n){return e.set(t,n),dr.bind(null,e,t)}function pr(e){il=e}function mr(e,n){let r=hr(e,n);return r===void 0&&t(30,n),r}function hr(e,t){return e._nodes.get(t)}function gr(e,t){let n=t===void 0?(()=>{let t=e.getRootNode();return wr(t)||Si(t)?Ni(t):null})():t;if(!z(n)||n.hasAttribute(`data-lexical-slot`))return!1;let r=Fr(n),i=n.nodeName;return ft(r)&&(i===`INPUT`||i===`TEXTAREA`||n.contentEditable===`true`&&br(n)==null)}function _r(e,t,n){let r=e.getRootElement();if(!r)return!1;try{if(!t||!r.contains(t)||!r.contains(n))return!1}catch{return!1}return yr(t)===e&&e.read(`latest`,()=>!gr(t))}function vr(e){return e instanceof rl}function yr(e){let t=e;for(;t!=null;){let e=br(t);if(vr(e))return e;t=ii(t)}return null}function br(e){return e?e.__lexicalEditor:null}function xr(e){return Mt(e)||e.isToken()}function Sr(e){return xr(e)||e.isSegmented()}function Cr(e){return Ii(e)&&e.nodeType===3}function wr(e){return Ii(e)&&e.nodeType===9}function Tr(e){let t=e;for(;t!=null;){if(Cr(t))return t;t=t.firstChild}return null}function Er(e,t,n){let r=U[t];if(n!==null&&(e&r)===(n&r))return e;let i=e^r;return t===`subscript`?i&=~U.superscript:t===`superscript`?i&=~U.subscript:t===`lowercase`?(i&=~U.uppercase,i&=~U.capitalize):t===`uppercase`?(i&=~U.lowercase,i&=~U.capitalize):t===`capitalize`&&(i&=~U.lowercase,i&=~U.uppercase),i}function Dr(e){return w(e)||er(e)||A(e)}function Or(e,t){let n=function(){let e=il;return il=null,e}();if((t||=n&&n.__key)!=null)return void(e.__key=t);D(),Dn();let r=O(),i=On(),a=``+ol++;i._nodeMap.set(a,e),k(e)?r._dirtyElements.set(a,!0):r._dirtyLeaves.add(a),r._cloneNotNeeded.add(a),r._dirtyType===0&&(r._dirtyType=1),e.__key=a}function kr(e){V(e)!==null&&t(380,e.__key,String(V(e)));let n=e.getParent();if(n!==null){let t=e.getWritable(),r=n.getWritable(),i=e.getPreviousSibling(),a=e.getNextSibling(),o=a===null?null:a.__key,s=i===null?null:i.__key,c=i===null?null:i.getWritable(),l=a===null?null:a.getWritable();i===null&&(r.__first=o),a===null&&(r.__last=s),c!==null&&(c.__next=o),l!==null&&(l.__prev=s),t.__prev=null,t.__next=null,t.__parent=null,r.__size--}}function Ar(e){Dn(),dt(e)&&t(323,e.__key,e.__type);let n=e.getLatest(),r=n.__parent===null?ca(n)?n.__slotHost:null:n.__parent,i=On(),a=O(),o=i._nodeMap,s=a._dirtyElements;r!==null&&function(e,t,n){let r=e;for(;r!==null;){if(n.has(r))return;let e=t.get(r);if(e===void 0)break;n.set(r,!1),r=e.__parent===null?ca(e)?e.__slotHost:null:e.__parent}}(r,o,s);let c=n.__key;a._dirtyType===0&&(a._dirtyType=1),k(e)?s.set(c,!0):a._dirtyLeaves.add(c)}function M(e){D();let t=O(),n=t._compositionKey;if(e!==n){if(t._compositionKey=e,n!==null){let e=N(n);e!==null&&e.getWritable()}if(e!==null){let t=N(e);t!==null&&t.getWritable()}}}function jr(){return En()?null:O()._compositionKey}function N(e,t){let n=(t||On())._nodeMap.get(e);return n===void 0?null:n}function Mr(e,t){let n=Pr(e,O());return n===void 0?null:N(n,t)}function Nr(e,t,n){e[`__lexicalKey_${t._key}`]=n}function Pr(e,t){return e[`__lexicalKey_${t._key}`]}function Fr(e,t){let n=e;for(;n!=null;){let e=Mr(n,t);if(e!==null)return e;n=ii(n)}return null}function Ir(e){let t=e._decorators,n=Object.assign({},t);return e._pendingDecorators=n,n}function Lr(e){return e.read(()=>Rr().getTextContent())}function Rr(){return On()._nodeMap.get(`root`)}function P(e){D();let t=On();e!==null&&(e.dirty=!0,e.setCachedNodes(null),T(e)&&O()._slotsUsed&&tn(e)),t._selection=e}function zr(){D(),h(O())}function Br(e){let t=function(e,t){let n=e;for(;n!=null;){let e=Pr(n,t);if(e!==void 0)return e;n=ii(n)}return null}(e,O());return t===null?null:N(t)}function Vr(e){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e)}function Hr(e){let t=[];for(let n=e;n!==null;n=n._parentEditor)t.push(n);return t}function Ur(){return Math.random().toString(36).replace(/[^a-z]+/g,``).substring(0,5)}function Wr(e){return Cr(e)?e.nodeValue:null}function Gr(e,t,n){let r=bi(ui(t));if(r===null)return;let i=Oi(r,t._rootElement),a=i.anchorNode,{anchorOffset:o,focusOffset:s}=i;if(a!==null){let t=Wr(a),r=Fr(a);if(t!==null&&w(r)){if((t===Io||t===Ro)&&n){let e=n.length;t=n,o=e,s=e}t!==null&&Kr(r,t,o,s,e)}}}function Kr(e,t,n,r,i){let a=e;if(a.isAttached()&&(i||!a.isDirty())){let o=a.isComposing();if(a.isToken()&&o)return;let s=t;if((o||i)&&(t.endsWith(Io)&&(s=t.slice(0,-Io.length)),i)){let e=Ro,t;for(;(t=s.indexOf(e))!==-1;)s=s.slice(0,t)+s.slice(t+e.length),n!==null&&n>t&&(n=Math.max(t,n-e.length)),r!==null&&r>t&&(r=Math.max(t,r-e.length))}let c=a.getTextContent();if(i||s!==c){let t=E();if(s===``){if(M(null),Co||xo||Eo)a.remove();else{let e=O();qr(a,``,t),setTimeout(()=>{e.update(()=>{a.isAttached()&&a.getTextContent()===``&&a.remove()})},20)}return}let i=a.getParent(),c=ln(),l=a.getTextContentSize(),u=jr(),d=a.getKey();if(a.isToken()&&!o||u!==null&&d===u&&!o||T(c)&&(i!==null&&!i.canInsertTextBefore()&&c.anchor.offset===0||c.anchor.key===e.__key&&c.anchor.offset===0&&!a.canInsertTextBefore()&&!o||c.focus.key===e.__key&&c.focus.offset===l&&!a.canInsertTextAfter()&&!o))return void a.markDirty();if(!T(t)||n===null||r===null)return void qr(a,s,t);if(t.setTextNodeRange(a,n,a,r),a.isSegmented()){let e=kt(a.getTextContent());a.replace(e),a=e}qr(a,s,t)}}}function qr(e,t,n){if(e.setTextContent(t),T(n)){let t=e.getKey(),r=!1;for(let i of[`anchor`,`focus`]){let a=n[i];a.type===`text`&&a.key===t&&(a.offset=ka(e,a.offset,`clamp`),r=!0)}r&&(n._cachedNodes=null,n._cachedIsBackward=null)}}function Jr(e,t,n){let r=t[n]||!1;return r===`any`||r===e[n]}function Yr(e,t){return Jr(e,t,`altKey`)&&Jr(e,t,`ctrlKey`)&&Jr(e,t,`shiftKey`)&&Jr(e,t,`metaKey`)}function F(e,t,n){if(!Yr(e,n))return!1;if(e.key.toLowerCase()===t.toLowerCase())return!0;if(t.length>1||e.key.length===1&&e.key.charCodeAt(0)<=127)return!1;if(e.code.startsWith(`Digit`)&&/^\d$/.test(t))return e.code===`Digit${t}`;let r=`Key`+t.toUpperCase();return e.code===r}function Xr(e){return e.key===`Backspace`}function Zr(e){let t=Rr();if(T(e)){let t=e.anchor,n=e.focus,r=t.getNode();if(j(r))return t.set(r.getKey(),0,`element`),n.set(r.getKey(),r.getChildrenSize(),`element`),ce(e),e;let i=r.getTopLevelElementOrThrow(),a=i.getParent();if(a===null)return k(i)&&(t.set(i.getKey(),0,`element`),n.set(i.getKey(),i.getChildrenSize(),`element`),ce(e)),e;let o=a;return t.set(o.getKey(),0,`element`),n.set(o.getKey(),o.getChildrenSize(),`element`),ce(e),e}{let e=t.select(0,t.getChildrenSize());return P(ce(e)),e}}function Qr(e,t){e.__lexicalClassNameCache===void 0&&(e.__lexicalClassNameCache={});let n=e.__lexicalClassNameCache,r=n[t];if(r!==void 0)return r;let i=e[t];if(typeof i==`string`){let e=uo(i);return n[t]=e,e}return i}function $r(e,n,r,i,a){if(r.size===0)return;let o=i.__type,s=i.__key,c=n.get(o);c===void 0&&t(33,o);let l=c.klass,u=e.get(l);u===void 0&&(u=new Map,e.set(l,u));let d=u.get(s),f=d===`destroyed`&&a===`created`;(d===void 0||f)&&u.set(s,f?`updated`:a)}function ei(e,t,n){let r=e.getParent(),i=n,a=e;return r!==null&&(t&&n===0?(i=a.getIndexWithinParent(),a=r):t||n!==a.getChildrenSize()||(i=a.getIndexWithinParent()+1,a=r)),a.getChildAtIndex(t?i-1:i)}function ti(e,t){let n=e.offset;if(e.type===`element`)return ei(e.getNode(),t,n);{let r=e.getNode();if(t&&n===0||!t&&n===r.getTextContentSize()){let e=t?r.getPreviousSibling():r.getNextSibling();return e===null?ei(r.getParentOrThrow(),t,r.getIndexWithinParent()+ +!t):e}}return null}function ni(e){let t=ui(e).event,n=t&&t.inputType;return n===`insertFromPaste`||n===`insertFromPasteAsQuotation`}function I(e,t,...n){return Vn(e,t,n[0],e)}function ri(e,n){let r=e._keyToDOMMap.get(n);return r===void 0&&t(75,n),r}function ii(e){let t=e.assignedSlot||e.parentElement;if(t!==null)return t;let n=e.parentNode;return Si(n)?n.host:null}function ai(e){return wr(e)?e:z(e)?e.ownerDocument:null}function oi(e){D(),O()._updateTags.add(e)}function si(e){D(),O()._deferred.push(e)}function ci(e,t){let n=e.getParent();for(;n!==null;){if(n.is(t))return!0;n=n.getParent()}return!1}function li(e){let t=ai(e);return t?t.defaultView:null}function ui(e){let n=e._window;return n===null&&t(78),n}function di(e){return k(e)&&e.isInline()||A(e)&&e.isInline()}function fi(e){let t=e.getLatest();for(;t!==null;){if(V(t)!==null&&k(t))return t;let e=t.getParentOrThrow();if(L(e))return e;t=e}return t}function pi(e){return k(e)&&e.isShadowRoot()}function L(e){return j(e)||pi(e)}function mi(e,t=!1){let n=e.constructor.clone(e,al);return Or(n,null),n.afterCloneFrom(e),t||n.resetOnCopyNodeFrom(e),n}function hi(e){let n=O(),r=e.getType(),i=hr(n,r);i===void 0&&t(200,e.constructor.name,r);let{replace:a,replaceWithKlass:o}=i;if(a!==null){let n=a(e),i=n.constructor;return o===null?n instanceof e.constructor&&i!==e.constructor||t(202,i.name,i.getType(),e.constructor.name,r):n instanceof o||t(201,o.name,o.getType(),i.name,i.getType(),e.constructor.name,r),n.__key===e.__key&&t(203,e.constructor.name,r,i.name,i.getType()),n}return e}function gi(e,n){!j(e.getParent())||k(n)||A(n)||t(99)}function _i(e){let n=N(e);return n===null&&t(63,e),n}function vi(e){if(!e||e.isInline())return!1;if(A(e))return!0;if(k(e)){if(e.isShadowRoot()){let t=e.getParent();return!(k(t)&&t.isShadowRoot())}return!e.canBeEmpty()}return!1}function yi(e,t,n){n.style.removeProperty(`caret-color`),t._blockCursorElement=null;let r=e.parentElement;r!==null&&r.removeChild(e)}function bi(e){return go?(e||window).getSelection():null}function xi(e){let t=li(e);return t?t.getSelection():null}function Si(e){return Li(e)&&`host`in e}function Ci(e){let t=e.getRootNode();if(t===e||!Si(t))return ul;let n=[t],r=t.host;for(;;){let e=r.getRootNode();if(e===r||!Si(e))break;n.push(e),r=e.host}return n}function*wi(e){let t=[e],n;for(;n=t.pop();){yield*n.querySelectorAll(`[data-lexical-editor="true"]`);let e=(wr(n)?n:n.ownerDocument).createTreeWalker(n,NodeFilter.SHOW_ELEMENT),r;for(;r=e.nextNode();)r.shadowRoot&&t.push(r.shadowRoot)}}function Ti(e){return e===null?document:e.ownerDocument}function R(){let e=Mn();return Ti(e===null?null:e._rootElement)}function Ei(e,t){if(t===null||typeof e.getComposedRanges!=`function`)return null;let n=Ci(t);if(n.length===0)return null;let r=e.getComposedRanges;try{let t=r.call(e,{shadowRoots:n})[0];if(t!==void 0)return t}catch{}try{let t=r.apply(e,n)[0];if(t!==void 0)return t}catch{}return null}function Di(e,t){let n=Ei(e,t);if(n!==null){let e=ki(n);if(e!==null)return e}return e.rangeCount>0?e.getRangeAt(0):null}function Oi(e,t){let n=Ei(e,t);return n===null?e:Ai(n,ji(e))}function ki(e){let t=e.startContainer.ownerDocument;if(t===null)return null;let n=t.createRange();try{return n.setStart(e.startContainer,e.startOffset),n.setEnd(e.endContainer,e.endOffset),n}catch{return null}}function Ai(e,t){let{startContainer:n,startOffset:r,endContainer:i,endOffset:a}=e;return t===`backward`?{anchorNode:i,anchorOffset:a,direction:t,focusNode:n,focusOffset:r}:{anchorNode:n,anchorOffset:r,direction:t,focusNode:i,focusOffset:a}}function ji(e){return e.direction}function Mi(e){let t=e.getRootNode();return wr(t)||Si(t)?t.activeElement:null}function Ni(e){let t=e.activeElement;for(;t!==null&&t.shadowRoot!==null;){let e=t.shadowRoot.activeElement;if(e===null)break;t=e}return t}function Pi(e){let t=e.target;if(t!==null&&z(t)&&t.shadowRoot!==null&&typeof e.composedPath==`function`){let t=e.composedPath();if(t.length>0)return t[0]}return t}function Fi(e){return z(e)&&e.tagName===`A`}function z(e){return Ii(e)&&e.nodeType===1}function Ii(e){return typeof e==`object`&&!!e&&`nodeType`in e&&typeof e.nodeType==`number`}function Li(e){return Ii(e)&&e.nodeType===11}function Ri(e){return!(!z(e)||!e.style.display.startsWith(`inline`))||dl.test(e.nodeName)}function zi(e){return(!z(e)||!e.style.display.startsWith(`inline`))&&fl.test(e.nodeName)}function B(e){if(A(e)&&!e.isInline())return!0;if(!k(e)||L(e))return!1;let t=e.getFirstChild(),n=t===null||er(t)||w(t)||t.isInline();return!e.isInline()&&!1!==e.canBeEmpty()&&n}function Bi(){return O()}function Vi(e=Bi()){return e._config.dom||nl}function Hi(e,n,r=Bi()){let i=Vi(r).$getDOMSlot(e,n,r);return k(e)&&(Ui(i)||t(344,e.getKey(),e.getType())),i}function Ui(e){return e instanceof Jo}function Wi(e,t,n=Bi()){return Tr(Hi(e,t,n).element)}function Gi(e){if(!e._readOnly&&e.isEmpty())return ml;e._readOnly||t(192);let n=pl.get(e);return n||(n=function(e){let t=new Map;for(let[n,r]of e._nodeMap){let e=r.__type,i=t.get(e);i||(i=new Map,t.set(e,i)),i.set(n,r)}return t}(e),pl.set(e,n)),n}function Ki(e){let t=e.constructor.clone(e,al);return t.afterCloneFrom(e),t}function qi(e){return(t=Ki(e))[wc]=!0,t;var t}function Ji(e,t){let n=e.getAttribute(`data-lexical-indent`);if(n!==null){let e=parseInt(n,10);if(Number.isFinite(e)&&e>=0)return void t.setIndent(e)}let r=parseInt(e.style.paddingInlineStart,10)||0,i=Math.round(r/40);t.setIndent(i)}function Yi(e,t){let n=t.getAttribute(`dir`);return n===`ltr`||n===`rtl`?e.setDirection(n):e}function Xi(e,t){let n=t.style.textAlign;return n&&n in Ho?e.setFormat(n):e}function Zi(e,t){e.__lexicalUnmanaged=!0,t&&t.captureSelection!==void 0&&(e.__lexicalCapturedSelection=t.captureSelection)}function Qi(e){return!0===e.__lexicalUnmanaged}function $i(e,t=Bi()){let n=t.isEditable();e.contentEditable=n?`true`:`false`,n?e.__lexicalEditor=t:delete e.__lexicalEditor}function ea(e,t){let n=e;for(;n!=null;){if(!0===n.__lexicalCapturedSelection)return!0;if(z(n)&&n.hasAttribute(`data-lexical-slot`)||Pr(n,t)!==void 0)return!1;n=ii(n)}return!1}function ta(e,t){return function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(e,t)&&e[t]!==X[t]}function na(e){let n=hl.get(e);if(n)return n;let r=e.prototype!=null&&Ko in e.prototype?e.prototype[Ko]():void 0,i=function(e){if(!(e===X||e.prototype instanceof X)){let n=`<unknown>`,r=`<unknown>`;try{n=e.getType()}catch{}try{rl.version&&(r=JSON.parse(rl.version))}catch{}t(290,e.name,n,r)}return e===Xc||e===Yc||e===X}(e),a=!i&&ta(e,`getType`)?e.getType:void 0,o=a&&!(gl in a)?a.call(e):void 0,s,c=o;if(r){if(o)s=r[o];else{for(let[e,t]of Object.entries(r))c=e,s=t;if(!s)for(let e of Object.getOwnPropertySymbols(r)){let t=r[e];if(t){s=t;break}}}}if(!i&&c){if(!ta(e,`getType`)){let t=e,n=function(){return this===t?c:X.getType.call(this)};n[gl]=!0,e.getType=n}if(ta(e,`clone`)||(e.clone=(t,n)=>{pr(t);let r=new e;return n!==al&&r.afterCloneFrom(t),r}),ta(e,`importJSON`)||(e.importJSON=s&&s.$importJSON||(t=>new e().updateFromJSON(t))),!ta(e,`importDOM`)&&s){let{importDOM:t}=s;t&&(e.importDOM=()=>t)}}let l={klass:e,ownNodeConfig:s,ownNodeType:c};return hl.set(e,l),l}function*ra(e){for(let t=e;t&&(t===X||ft(t.prototype));){let e=na(t);yield e,t=e.ownNodeConfig&&e.ownNodeConfig.extends||oa(t)}}function ia(e){let t=Bi();return D(),new(t.resolveRegisteredNodeAfterReplacements(t.getRegisteredNode(e))).klass}function aa(e,n){let r=[],i=e.__first;for(;i!==null;){let e=n===null?N(i):n.get(i);e??t(174),r.push(i),i=e.__next}return r}function oa(e){let t=Object.getPrototypeOf(e);if(typeof t==`function`&&t!==Function.prototype)return t;let n=e.prototype&&Object.getPrototypeOf(e.prototype);return n?n.constructor:null}function sa(e){return k(e)||A(e)}function ca(e){return k(e)||A(e)}function V(e){let t=e.getLatest();return ca(t)?t.__slotHost:null}function la(e){let n=V(e);if(n===null)return null;let r=N(n);return k(r)||A(r)||t(370),r}function ua(e){let t=la(e);if(t===null)return null;let n=e.getLatest().__key;for(let[e,r]of fa(t))if(r===n)return e;return null}function da(e){let t=e.getLatest();for(;t!==null;){if(V(t)!==null)return t;t=t.getParent()}return null}function fa(e){let t=e.getLatest();return sa(t)&&t.__slots!==null?t.__slots:vl}function pa(e){return Array.from(fa(e).keys())}function ma(e,t){let n=fa(e).get(t);return n===void 0?null:N(n)}function ha(e){let t=e.__slots;return t!==null&&t[bl]===e||(t=new Map(t),t[bl]=e,e.__slots=t),t}function ga(e){for(let{ownNodeConfig:t}of ra(e)){let e=t&&t.slots;if(e)return e}return Sl}function _a(e){let t=``;for(let n of pa(e)){let r=ma(e,n);r!==null&&(t+=r.getTextContent())}return t}function va(e,t,n){let r=n.get(e),i=n.get(t);return r===void 0?i===void 0?e<t?-1:+(e>t):1:i===void 0?-1:r-i}function ya(e){let n=e.__slots;if(n===null||n.size<2)return;let r=function(e){let n=xl.get(e);if(n===void 0){let r=ga(e),i=new Map;for(let n of r)yl.includes(n)&&t(371,e.name,n),i.has(n)&&t(372,e.name,n),i.set(n,i.size);n=i,xl.set(e,n)}return n}(e.constructor),i=null,a=!0;for(let e of n.keys()){if(i!==null&&va(i,e,r)>0){a=!1;break}i=e}if(a)return;let o=Array.from(n).sort(([e],[t])=>va(e,t,r));n.clear();for(let[e,t]of o)n.set(e,t)}function ba(e,n,r){n!==`__proto__`&&n!==`constructor`&&n!==`prototype`||t(373,n);let i=e.getLatest();if(i.__slots!==null&&i.__slots.get(n)===r.getLatest().__key)return i;(!k(r)&&!A(r)||r.isInline())&&t(374,r.__key);let a=e.getWritable(),o=ha(a),s=o.get(n);s!==void 0&&Sa(s);let c=r.getWritable(),l=la(c);if(l!==null){let e=ua(c);e!==null&&ha(l.getWritable()).delete(e),c.__slotHost=null}return kr(c),c.__slotHost=a.__key,o.set(n,c.__key),ya(a),function(){let e=Bi();e._slotsUsed=!0,e._pendingEditorState&&(e._pendingEditorState._slotsUsed=!0)}(),a}function xa(e,t){let n=e.getWritable();if(n.__slots===null)return n;let r=n.__slots.get(t);return r!==void 0&&(Sa(r),ha(n).delete(t)),n}function Sa(e){let n=N(e);if(n===null)return;let r=n.getWritable();ca(r)||t(377,e),r.__slotHost=null,r.remove()}function Ca(e){return Cl[e]}function wa(e,t=`root`){return e===null||El[t](e)?null:V(e)===null?e:null}function Ta(e){return e instanceof Ol}function Ea(e){return e instanceof Dl}function Da(e){return e instanceof Tl}function H(e,t){return e?new Al[t](e):null}function Oa(e,t,n){return e?new kl[t](e,ka(e,n)):null}function ka(e,t,r=`error`){let i=e.getTextContentSize(),a=t===`next`?i:t===`previous`?0:t;return(a<0||a>i)&&(r!==`clamp`&&n(284,String(t),String(i),e.getKey()),a=a<0?0:i),a}function Aa(e,t){return new Nl(e,t)}function ja(e,t){return k(e)?new jl[t](e):null}function Ma(e){return e&&e.getChildCaret()||e}function Na(e){return e&&Ma(e.getAdjacentCaret())}function Pa(e){return Ia(e,H(Rr(),e.direction))}function Fa(e){return Ia(e,e)}function Ia(e,n){return e.direction!==n.direction&&t(265),new Ml(e,n,e.direction)}function La(e){let{initial:t,hasNext:n,step:r,map:i}=e,a=t;return{[Symbol.iterator](){return this},next(){if(!n(a))return{done:!0,value:void 0};let e={done:!1,value:i(a)};return a=r(a),e}}}function Ra(e,n){let r=Ha(e.origin,n.origin);switch(r===null&&t(275,e.origin.getKey(),n.origin.getKey()),r.type){case`same`:{let t=e.type===`text`,r=n.type===`text`;return t&&r?function(e,t){return Math.sign(e-t)}(e.offset,n.offset):e.type===n.type?0:t?-1:r?1:e.type===`child`?-1:1}case`ancestor`:return e.type===`child`?-1:1;case`descendant`:return n.type===`child`?1:-1;case`branch`:return za(r)}}function za(e){let{a:t,b:n}=e,r=t.__key,i=n.__key,a=t,o=n;for(;a&&o;a=a.getNextSibling(),o=o.getNextSibling()){if(a.__key===i)return-1;if(o.__key===r)return 1}return a===null?1:-1}function Ba(e,t){return t.is(e)}function Va(e){return k(e)?[e.getLatest(),null]:[e.getParent(),e.getLatest()]}function Ha(e,n){if(e.is(n))return{commonAncestor:e,type:`same`};let r=new Map;for(let[t,n]=Va(e);t;n=t,t=t.getParent())r.set(t,n);for(let[i,a]=Va(n);i;a=i,i=i.getParent()){let o=r.get(i);if(o!==void 0)return o===null?(Ba(e,i)||t(276),{commonAncestor:i,type:`ancestor`}):a===null?(Ba(n,i)||t(277),{commonAncestor:i,type:`descendant`}):((k(o)||Ba(e,o))&&(k(a)||Ba(n,a))&&i.is(o.getParent())&&i.is(a.getParent())||t(278),{a:o,b:a,commonAncestor:i,type:`branch`})}return null}function Ua(e,n){let{type:r,key:i,offset:a}=e,o=_i(e.key);return r===`text`?(w(o)||t(266,o.getType(),i),Oa(o,n,a)):(k(o)||t(267,o.getType(),i),no(o,e.offset,n))}function Wa(e,n){let{origin:r,direction:i}=n,a=i===`next`;Ta(n)?e.set(r.getKey(),n.offset,`text`):Ea(n)?w(r)?e.set(r.getKey(),ka(r,i),`text`):e.set(r.getParentOrThrow().getKey(),r.getIndexWithinParent()+ +!!a,`element`):(Da(n)&&k(r)||t(268),e.set(r.getKey(),a?0:r.getChildrenSize(),`element`))}function Ga(e){let t=E(),n=T(t)?t:on();return Ka(n,e),P(n),n}function Ka(e,t){Wa(e.anchor,t.anchor),Wa(e.focus,t.focus)}function qa(e){let{anchor:t,focus:n}=e,r=Ua(t,`next`),i=Ua(n,`next`),a=Ra(r,i)<=0?`next`:`previous`;return Ia(eo(r,a),eo(i,a))}function Ja(e){let{direction:t,origin:n}=e,r=H(n,Ca(t)).getNodeAtCaret();return r?H(r,t):ja(n.getParentOrThrow(),t)}function Ya(e,t=`root`){let n=[e];for(let r=Da(e)?e.getParentCaret(t):e.getSiblingCaret();r!==null;r=r.getParentCaret(t))n.push(Ja(r));return n}function Xa(e){return!!e&&e.origin.isAttached()}function Za(e,n=`removeEmptySlices`){if(e.isCollapsed())return e;let r=`root`,i=`next`,a=n,o=to(e,i),s=Ya(o.anchor,r),c=Ya(o.focus.getFlipped(),r),l=new Set,u=[];for(let e of o.iterNodeCarets(r))if(Da(e))l.add(e.origin.getKey());else if(Ea(e)){let{origin:t}=e;k(t)&&!l.has(t.getKey())||u.push(t)}let d=new Set;for(let e of u){let t=e.getParent();t===null||l.has(t.getKey())||d.add(t),kr(e)}for(let e of d)!e.canBeEmpty()&&!L(e)&&e.isEmpty()&&e.isAttached()&&e.remove();for(let e of o.getTextSlices()){if(!e)continue;let{origin:t}=e.caret,n=t.getTextContentSize(),r=Ja(H(t,i)),o=t.getMode();if(Math.abs(e.distance)===n&&a===`removeEmptySlices`||o===`token`&&e.distance!==0)r.remove();else if(e.distance!==0){a=`removeEmptySlices`;let t=e.removeTextSlice(),n=e.caret.origin;if(o===`segmented`){let e=t.origin,n=kt(e.getTextContent()).setStyle(e.getStyle()).setFormat(e.getFormat());r.replaceOrInsert(n),t=Oa(n,i,t.offset)}n.is(s[0].origin)&&(s[0]=t),n.is(c[0].origin)&&(c[0]=t.getFlipped())}}let f,p;for(let e of s)if(Xa(e)){f=Qa(e);break}for(let e of c)if(Xa(e)){p=Qa(e);break}let m=function(e,t,n){if(!e||!t)return null;let r=e.getParentAtCaret(),i=t.getParentAtCaret();if(!r||!i)return null;let a=r.getParents().reverse();a.push(r);let o=i.getParents().reverse();o.push(i);let s=Math.min(a.length,o.length),c;for(c=0;c<s&&a[c]===o[c];c++);let l=(e,t)=>{let n;for(let r=c;r<e.length;r++){let i=e[r];if(L(i))return;!n&&t(i)&&(n=i)}return n},u=l(a,B),d=u&&l(o,e=>n.has(e.getKey())&&B(e));return d&&pa(d).length>0?null:u&&d?[u,d]:null}(f,p,l);if(m){let[e,t]=m;ja(e,`previous`).splice(0,t.getChildren());let n=t.getParent();for(t.remove(!0);n&&n.isEmpty();){let e=n;n=n.getParent(),e.remove(!0)}}else if(p){let e=function(e){if(Da(e)){let t=e.origin;if(B(t))return t}else{let t=e.getParentAtCaret();if(t&&B(t))return t}return null}(p),t=e&&e.getParent(),n=e&&e.getParents().findLast(pi);if(e&&t&&!j(t)&&e.isEmpty()&&l.has(e.getKey())&&pa(e).length===0&&(!n||l.has(n.getKey()))){e.remove(!0);let n=t;for(;n&&!j(n)&&n.isEmpty();){let e=n.getParent();if(e&&j(e)&&e.getChildrenSize()<=1)break;let t=n;n=e,t.remove(!0)}}}let h=[f,p,...s,...c].find(Xa);if(h)return Fa(eo(Qa(h),e.direction));t(269,JSON.stringify(s.map(e=>e.origin.__key)))}function Qa(e){let t=function(e){let t=e;for(;Da(t);){let e=Na(t);if(!Da(e))break;t=e}return t}(e.getLatest()),{direction:n}=t;if(w(t.origin))return Ta(t)?t:Oa(t.origin,n,n);let r=t.getAdjacentCaret();return Ea(r)&&w(r.origin)?Oa(r.origin,n,Ca(n)):t}function $a(e){return Ta(e)&&e.offset!==ka(e.origin,e.direction)}function eo(e,t){return e.direction===t?e:e.getFlipped()}function to(e,t){return e.direction===t?e:Ia(eo(e.focus,t),eo(e.anchor,t))}function no(e,t,n){let r=ja(e,`next`);for(let e=0;e<t;e++){let e=r.getAdjacentCaret();if(e===null)break;r=e}return eo(r,n)}function ro(e){let{origin:n,offset:r,direction:i}=e;if(r===ka(n,i))return e.getSiblingCaret();if(r===ka(n,Ca(i)))return Ja(e.getSiblingCaret());let[a]=n.splitText(r);return w(a)||t(281),eo(H(a,`next`),i)}function io(e,t){return!0}function ao(e,{$copyElementNode:t=mi,$splitTextPointCaretNext:n=ro,rootMode:r=`shadowRoot`,$shouldSplit:i=io,removeEmptyDestination:a=!1}={}){if(Ta(e))return n(e);let o=e.getParentCaret(r);if(o){let{origin:n}=o;if(Da(e)){let e=Ja(o);if(a&&n.isEmpty())return n.remove(),e;if(!n.canBeEmpty()||!i(n,`first`))return e}let r=function(e){let t=[];for(let n=e.getAdjacentCaret();n;n=n.getAdjacentCaret())t.push(n.origin);return t}(e);(r.length>0||!a&&n.canBeEmpty()&&i(n,`last`))&&o.insert(t(n).splice(0,0,r))}return o}function oo(e,n,r){let i=eo(n,`next`);Ta(i)&&(i.offset===0?i=H(i.origin,`previous`).getFlipped():i.offset===i.origin.getTextContentSize()&&(i=H(i.origin,`next`))),i.origin.is(e)&&(Ea(i)||t(342,e.getKey(),e.getType()),i=Ja(i)),(e.is(i.getNodeAtCaret())||e.is(i.getFlipped().getNodeAtCaret()))&&e.remove(!0);for(let e=i;e;e=ao(e,r))i=e;return Ta(i)&&t(283),i.insert(e.isInline()?ar().append(e):e),eo(H(e.getLatest(),`next`),n.direction)}function so(e){return e}function co(e){return e}function lo(e,t){if(!t||e===t)return e;for(let n in t)if(e[n]!==t[n])return{...e,...t};return e}function uo(...e){let t=[];for(let n of e)if(n&&typeof n==`string`)for(let[e]of n.matchAll(/\S+/g))t.push(e);return t}function fo(e,...t){let n=uo(...t);n.length>0&&e.classList.add(...n)}function po(e,...t){let n=uo(...t);n.length>0&&e.classList.remove(...n)}function mo(...e){return()=>{for(let t=e.length-1;t>=0;t--)e[t]();e.length=0}}function ho(e,t,n){return mo(...Object.entries(t).map(([t,r])=>Be(e,t,r,n)))}var go,_o,vo,yo,bo,xo,So,Co,wo,To,Eo,Do,Oo,ko,Ao,jo,Mo,No,Po,Fo,Io,Lo,Ro,zo,Bo,U,Vo,Ho,Uo,Wo,Go,Ko,qo,Jo,Yo,Xo,Zo,Qo,$o,es,ts,ns,rs,is,as,os,ss,cs,W,ls,G,K,q,J,us,ds,fs,ps,ms,Y,hs,gs,_s,vs,ys,bs,xs,Ss,Cs,ws,Ts,Es,Ds,Os,ks,As,js,Ms,Ns,Ps,Fs,Is,Ls,Rs,zs,Bs,Vs,Hs,Us,Ws,Gs,Ks,qs,Js,Ys,Xs,Zs,Qs,$s,ec,tc,nc,rc,ic,ac,oc,sc,cc,lc,uc,dc,fc,pc,mc,hc,gc,_c,vc,yc,bc,xc,Sc,Cc,wc,Tc,X,Ec,Dc,Oc,kc,Ac,jc,Mc,Nc,Pc,Fc,Ic,Lc,Rc,zc,Bc,Vc,Hc,Uc,Z,Q,$,Wc,Gc,Kc,qc,Jc,Yc,Xc,Zc,Qc,$c,el,tl,nl,rl,il,al,ol,sl,cl,ll,ul,dl,fl,pl,ml,hl,gl,_l,vl,yl,bl,xl,Sl,Cl,wl,Tl,El,Dl,Ol,kl,Al,jl,Ml,Nl;function Pl(){return(Pl=e((()=>{go=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,_o=go&&`documentMode`in document?document.documentMode:null,vo=go&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),yo=go&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),bo=!(!go||!(`InputEvent`in window)||_o)&&`getTargetRanges`in new window.InputEvent(`input`),xo=go&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,So=go&&/Android/.test(navigator.userAgent),Co=go&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent)&&!So,wo=go&&/^(?=.*Chrome).*/i.test(navigator.userAgent),To=go&&So&&wo,Eo=go&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&vo&&!wo,Do=0,Oo=1,ko=2,Ao=1,jo=2,Mo=3,No=4,Po=5,Fo=6,Io=Co||xo||Eo?`\xA0`:``,Lo=`
|
|
8
|
+
|
|
9
|
+
`,Ro=yo?`\xA0`:Io,zo=`֑-߿יִ-﷽ﹰ-ﻼ`,Bo=`A-Za-zÀ-ÖØ-öø-ʸ̀-ࠀ-Ⰰ-︀--`,RegExp(`^[^`+Bo+`]*[`+zo+`]`),RegExp(`^[^`+zo+`]*[`+Bo+`]`),U={bold:1,capitalize:1024,code:16,highlight:128,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},Vo={directionless:1,unmergeable:2},Ho={center:2,end:6,justify:4,left:1,right:3,start:5},Uo={[jo]:`center`,[Fo]:`end`,[No]:`justify`,[Ao]:`left`,[Mo]:`right`,[Po]:`start`},Wo={normal:0,segmented:2,token:1},Go={[Do]:`normal`,[ko]:`segmented`,[Oo]:`token`},Ko=`$config`,qo=class e{element;before;after;constructor(e,t,n){this.element=e,this.before=t||null,this.after=n||null}withBefore(t){return new e(this.element,t,this.after)}withAfter(t){return new e(this.element,this.before,t)}withElement(t){return this.element===t?this:new e(t,this.before,this.after)}insertChild(e){let n=this.getInsertionAnchor();return n!==null&&n.parentElement!==this.element&&t(357),this.element.insertBefore(e,n),this}removeChild(e){return e.parentElement!==this.element&&t(358),this.element.removeChild(e),this}replaceChild(e,n){return n.parentElement!==this.element&&t(359),this.element.replaceChild(e,n),this}getFirstChild(){let e=this.getFirstChildAnchor(),t=e?e.nextSibling:this.element.firstChild;return t===this.getInsertionAnchor()?null:t}getFirstChildAnchor(){return this.after}resolveLeafPosition(e,t,n){if(this.element===e)return t===e&&n===0?`before`:`after`;let r=a(e,this.element);if(r===null)return`after`;let i=Array.prototype.indexOf.call(e.childNodes,r);if(i<0)return`after`;if(t===e)return n<=i?`before`:`after`;let o=a(e,t);if(o===null)return`after`;let s=Array.prototype.indexOf.call(e.childNodes,o);return s>=0&&s<=i?`before`:`after`}getInsertionAnchor(){return this.before}},Jo=class e extends qo{withBefore(t){return new e(this.element,t,this.after)}withAfter(t){return new e(this.element,this.before,t)}withElement(t){return this.element===t?this:new e(t,this.before,this.after)}getInsertionAnchor(){return super.getInsertionAnchor()||this.getManagedLineBreak()}getFirstChildAnchor(){let e=super.getFirstChildAnchor(),t=e?e.nextSibling:this.element.firstChild;for(;i(t);)e=t,t=t.nextSibling;let n=e?e.nextSibling:this.element.firstChild;return n!==null&&n===r()?n:e}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(e){if(this.element.__lexicalLastChildKind=e,e===null)this.removeManagedLineBreak();else{let t=e===`decorator`&&(Eo||xo||Co);this.insertManagedLineBreak(t)}}removeManagedLineBreak(){let e=this.getManagedLineBreak();if(e){let t=this.element,n=e.nodeName===`IMG`?e.nextSibling:null;n&&t.removeChild(n),t.removeChild(e),t.__lexicalLineBreak=void 0}}insertManagedLineBreak(e){let t=this.getManagedLineBreak();if(t){if(e===(t.nodeName===`IMG`))return;this.removeManagedLineBreak()}let n=this.element,r=this.before,i=R().createElement(`br`);if(i.setAttribute(`data-lexical-managed-linebreak`,`true`),n.insertBefore(i,r),e){let e=R().createElement(`img`);e.setAttribute(`data-lexical-managed-linebreak`,`true`),e.style.setProperty(`display`,`inline`,`important`),e.style.setProperty(`border`,`0px`,`important`),e.style.setProperty(`margin`,`0px`,`important`),e.alt=``,n.insertBefore(e,i),n.__lexicalLineBreak=e}else n.__lexicalLineBreak=i}getFirstChildOffset(){let e=this.getFirstChild(),t=this.getInsertionAnchor(),n=0;for(let r=this.element.firstChild;r!==null&&r!==e&&r!==t;r=r.nextSibling)n++;return n}resolveChildIndex(e,t,n,i){if(n===this.element){let t=this.getFirstChildOffset(),n=r(),a=this.element.childNodes,o=Math.min(i,a.length),s=0;for(let e=t;e<o;e++)a[e]!==n&&s++;return[e,Math.min(s,e.getChildrenSize())]}let a=o(t,n);a.push(i);let s=o(t,this.element),c=e.getIndexWithinParent();for(let e=0;e<s.length;e++){let t=a[e],n=s[e];if(t===void 0||t<n)break;if(t>n){c+=1;break}}return[e.getParentOrThrow(),c]}};try{Yo=`0.49.0+prod.esm`}catch{}Xo=Yo??`"<unknown>+source"`,Zo=class{_front=new Set;_back=new Set;_cache;get size(){return this._front.size+this._back.size}addBack(e){return delete this._cache,this._front.has(e)||this._back.add(e),this}addFront(e){return delete this._cache,this._back.has(e)||this._front.add(e),this}delete(e){return delete this._cache,this._front.delete(e)||this._back.delete(e)}toArray(){let e=Array.from(this._front).reverse();for(let t of this._back)e.push(t);return e}toReadonlyArray(){return this._cache=this._cache||this.toArray(),this._cache}[Symbol.iterator](){return this.toReadonlyArray()[Symbol.iterator]()}},Qo=null,$o=class e{_mutable=!1;_old=void 0;_nursery=void 0;_size=0;clone(){return this._mutable=!1,new e().init(this._old,this._nursery,this._size)}init(e,t,n){return this._old=e,this._nursery=t,this._size=n,this}get size(){return this._size}has(e){return this.get(e)!==void 0}getWithTombstone(e){let t=this._nursery&&this._nursery.get(e);return t===void 0?this._old&&this._old.get(e):t}get(e){let t=this.getWithTombstone(e);return t===Qo?void 0:t}shouldCompact(){return this._nursery!==void 0&&2*this._nursery.size>this._size}getNursery(){return this._mutable&&this._nursery||(this.compact(),this._nursery=new Map(this._nursery),this._mutable=!0),this._nursery}compact(e=!1){if(this._nursery&&this._nursery.size>0&&(e||this.shouldCompact())){let e=new Map(this._old);for(let[t,n]of this._nursery)n===Qo?e.delete(t):e.set(t,n);this._old=e,this._nursery=void 0}return this._mutable=!1,this}set(e,t){let n=this.getWithTombstone(e);if(n===t)return this;let r=this.getNursery();return n!==Qo&&n!==void 0||(this._size++,n===Qo&&r.delete(e)),r.set(e,t),this}delete(e){let t=this.has(e);return t&&(this.getNursery().set(e,Qo),this._size--),t}getOrInsert(e,t){let n=this.get(e);return n===void 0?(this.set(e,t),t):n}getOrInsertComputed(e,t){let n=this.get(e);if(n!==void 0)return n;let r=t(e);return this.set(e,r),r}clear(){this._mutable=!1,this._old=void 0,this._nursery=void 0,this._size=0}*keys(){for(let e of this.entries())yield e[0]}*values(){for(let e of this.entries())yield e[1]}*entries(){let e=this._nursery,t=this._old;if(t)for(let n of t){let t=n[0],r=e?e.get(t):void 0;r!==Qo&&(r!==void 0&&(n[1]=r),yield n)}if(e)for(let n of e)n[1]===Qo||t&&t.has(n[0])||(yield n)}forEach(e,t){t!==void 0&&(e=e.bind(t));for(let[t,n]of this.entries())e(n,t,this)}get[Symbol.toStringTag](){return`GenMap`}[Symbol.iterator](){return this.entries()}},es=!1,ts=0,ns=`latest`,rs=class{key;parse;unparse;isEqual;defaultValue;resetOnCopyNode;constructor(e,t){this.key=e,this.parse=t.parse.bind(t),this.unparse=(t.unparse||te).bind(t),this.isEqual=(t.isEqual||Object.is).bind(t),this.defaultValue=this.parse(void 0),this.resetOnCopyNode=t.resetOnCopyNode||!1}},is=new Set([`__proto__`,`constructor`,`prototype`]),as=class e{node;knownState;unknownState;sharedNodeState;size;constructor(e,t,n=void 0,r=new Map,i=void 0){this.node=e,this.sharedNodeState=t,this.unknownState=n,this.knownState=r;let{sharedConfigMap:a}=this.sharedNodeState,o=i===void 0?function(e,t,n){let r=n.size;if(t)for(let i in t){let t=e.get(i);t&&n.has(t)||r++}return r}(a,n,r):i;this.size=o}getValue(e){let t=this.knownState.get(e);if(t!==void 0)return t;this.sharedNodeState.sharedConfigMap.set(e.key,e);let n=e.defaultValue;if(this.unknownState&&e.key in this.unknownState){let t=this.unknownState[e.key];t!==void 0&&(n=e.parse(t)),this.updateFromKnown(e,n)}return n}getInternalState(){return[this.unknownState,this.knownState]}toJSON(){let e={...this.unknownState},t={};for(let[t,n]of this.knownState)t.isEqual(n,t.defaultValue)?delete e[t.key]:e[t.key]=t.unparse(n);for(let n of this.sharedNodeState.flatKeys)n in e&&(t[n]=e[n],delete e[n]);return ee(e)&&(t.$=e),t}getWritable(t){if(this.node===t)return this;let{sharedNodeState:n,unknownState:r}=this,i=new Map(this.knownState);return new e(t,n,function(e,t,n){let r;if(n)for(let[i,a]of Object.entries(n)){if(is.has(i))continue;let n=e.get(i);n?t.has(n)||t.set(n,n.parse(a)):(r||={},r[i]=a)}return r}(n.sharedConfigMap,i,r),i,this.size)}resetOnCopyNode(){for(let e of this.knownState.keys())e.resetOnCopyNode&&this.knownState.set(e,e.defaultValue);return this}updateFromKnown(e,t){let n=e.key;this.sharedNodeState.sharedConfigMap.set(n,e);let{knownState:r,unknownState:i}=this;r.has(e)||i&&n in i||(i&&(delete i[n],this.unknownState=ee(i)),this.size++),r.set(e,t)}updateFromUnknown(e,t){if(is.has(e))return;let n=this.sharedNodeState.sharedConfigMap.get(e);n?this.updateFromKnown(n,n.parse(t)):(this.unknownState=this.unknownState||{},e in this.unknownState||this.size++,this.unknownState[e]=t)}updateFromJSON(e){let{knownState:t}=this;for(let e of t.keys())t.set(e,e.defaultValue);if(this.size=t.size,this.unknownState=void 0,e)for(let[t,n]of Object.entries(e))this.updateFromUnknown(t,n)}},os=Symbol.for(`@lexical/CachedTextSize`),ss=4,G=``,K=null,q=null,J=null,ys=!1,bs=!1,xs=`40px`,Ss=C(`SELECTION_CHANGE_COMMAND`),Cs=C(`SELECTION_INSERT_CLIPBOARD_NODES_COMMAND`),ws=C(`CLICK_COMMAND`),Ts=C(`BEFORE_INPUT_COMMAND`),Es=C(`INPUT_COMMAND`),Ds=C(`COMPOSITION_START_COMMAND`),Os=C(`COMPOSITION_END_COMMAND`),ks=C(`DELETE_CHARACTER_COMMAND`),As=C(`INSERT_LINE_BREAK_COMMAND`),js=C(`INSERT_PARAGRAPH_COMMAND`),Ms=C(`CONTROLLED_TEXT_INSERTION_COMMAND`),Ns=C(`PASTE_COMMAND`),Ps=C(`REMOVE_TEXT_COMMAND`),Fs=C(`DELETE_WORD_COMMAND`),Is=C(`DELETE_LINE_COMMAND`),Ls=C(`FORMAT_TEXT_COMMAND`),Rs=C(`SET_TEXT_FORMAT_COMMAND`),zs=C(`UNDO_COMMAND`),Bs=C(`REDO_COMMAND`),Vs=C(`KEYDOWN_COMMAND`),Hs=C(`KEY_ARROW_RIGHT_COMMAND`),Us=C(`MOVE_TO_END`),Ws=C(`KEY_ARROW_LEFT_COMMAND`),Gs=C(`MOVE_TO_START`),Ks=C(`KEY_ARROW_UP_COMMAND`),qs=C(`KEY_ARROW_DOWN_COMMAND`),Js=C(`KEY_ENTER_COMMAND`),Ys=C(`KEY_SPACE_COMMAND`),Xs=C(`KEY_BACKSPACE_COMMAND`),Zs=C(`KEY_ESCAPE_COMMAND`),Qs=C(`KEY_DELETE_COMMAND`),$s=C(`KEY_TAB_COMMAND`),ec=C(`INSERT_TAB_COMMAND`),tc=C(`INDENT_CONTENT_COMMAND`),nc=C(`OUTDENT_CONTENT_COMMAND`),rc=C(`DROP_COMMAND`),ic=C(`FORMAT_ELEMENT_COMMAND`),ac=C(`DRAGSTART_COMMAND`),oc=C(`DRAGOVER_COMMAND`),sc=C(`DRAGEND_COMMAND`),cc=C(`COPY_COMMAND`),lc=C(`CUT_COMMAND`),uc=C(`SELECT_ALL_COMMAND`),dc=C(`CLEAR_EDITOR_COMMAND`),fc=C(`CLEAR_HISTORY_COMMAND`),pc=C(`CAN_REDO_COMMAND`),mc=C(`CAN_UNDO_COMMAND`),hc=C(`FOCUS_COMMAND`),gc=C(`BLUR_COMMAND`),_c=C(`KEY_MODIFIER_COMMAND`),vc=Object.freeze({}),yc=[[`keydown`,function(e,t){let n=t._inputState;n.lastKeyDownTimeStamp=e.timeStamp,n.lastKeyCode=e.key,e.key!==`Backspace`&&Je(n),!t.isComposing()&&I(t,Vs,e)}],[`pointerdown`,function(e,t){let n=Pi(e),r=e.pointerType;Ii(n)&&r!==`touch`&&r!==`pen`&&e.button===0&&Gn(t,()=>{ea(n,t)||(t._inputState.isSelectionChangeFromMouseDown=!0)})}],[`compositionstart`,function(e,t){I(t,Ds,e)}],[`compositionend`,function(e,t){let n=t._inputState;yo?n.compositionPhase=`ending-firefox`:xo||!Co&&!Eo?I(t,Os,e):(n.compositionPhase=`ending-safari`,n.compositionEndData=e.data)}],[`input`,function(e,t){e.stopPropagation();let n=t._inputState;Je(n),Gn(t,()=>{Xe(e,t)||t.dispatchCommand(Es,e)},{event:e}),n.unprocessedBeforeInputData=null}],[`click`,function(e,t){Gn(t,()=>{let n=E(),r=bi(ui(t)),i=ln();if(r){if(T(n)){let e=n.anchor,t=e.getNode();e.type===`element`&&e.offset===0&&n.isCollapsed()&&!j(t)&&Rr().getChildrenSize()===1&&t.getTopLevelElementOrThrow().isEmpty()&&i!==null&&n.is(i)&&(r.removeAllRanges(),n.dirty=!0)}else if(e.pointerType===`touch`||e.pointerType===`pen`){let n=Oi(r,t._rootElement).anchorNode;(z(n)||Cr(n))&&P(cn(i,r,t,e))}}if(yo&&r!==null&&r.rangeCount===0){let n=t._rootElement;if(n!==null&&e.target===n){let a=e.clientY,o=n.childNodes.length;for(let e=0;e<n.childNodes.length;e++){let t=n.childNodes[e];if(z(t)){let n=t.getBoundingClientRect();if(a<=(n.top+n.bottom)/2){o=e;break}}}r.setBaseAndExtent(n,o,n,o);let s=cn(i,r,t,e);s===null?r.removeAllRanges():P(s)}}I(t,ws,e)})}],[`cut`,vc],[`copy`,vc],[`dragstart`,vc],[`dragover`,vc],[`dragend`,vc],[`paste`,vc],[`focus`,vc],[`blur`,vc],[`drop`,vc]],bo&&yc.push([`beforeinput`,(e,t)=>function(e,t){let n=e.inputType;n===`deleteCompositionText`||yo&&ni(t)||n!==`insertCompositionText`&&Gn(t,()=>{Xe(e,t)||I(t,Ts,e)},{event:e})}(e,t)]),bc=new WeakMap,xc=new WeakMap,Sc=ze(e=>(e.addEventListener(`selectionchange`,at),()=>e.removeEventListener(`selectionchange`,at))),Cc=new Map,wc=Symbol.for(`ephemeral`),Tc={configurable:!0,enumerable:!1,value:void 0,writable:!0},X=class{__type;__key;__parent;__prev;__next;__state;[os];static getType(){let{ownNodeType:e}=na(this);return e===void 0&&t(64,this.name),e}static clone(e){t(65,this.name)}$config(){return{}}config(e,t){let n=t.extends||oa(this.constructor);return Object.assign(t,{extends:n}),typeof e==`string`&&Object.assign(t,{type:e}),{[e]:t}}afterCloneFrom(e){this.__key===e.__key?(this.__parent=e.__parent,this.__next=e.__next,this.__prev=e.__prev,this.__state=e.__state):e.__state&&(this.__state=e.__state.getWritable(this))}resetOnCopyNodeFrom(e){this.__state&&=this.__state.getWritable(this).resetOnCopyNode()}static importDOM;constructor(e){this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,"__state",Tc),Object.defineProperty(this,os,Tc),Or(this,e)}getType(){return this.__type}isInline(){t(137,this.constructor.name)}isAttached(){let e=this.__key;for(;e!==null;){if(e===`root`)return!0;let t=N(e);if(t===null)break;e=t.__parent===null?V(t):t.__parent}return!1}isSelected(e){let t=e||E();if(t==null)return!1;let n=t.getNodes().some(e=>e.__key===this.__key);if(w(this))return n;if(T(t)&&t.anchor.type===`element`&&t.focus.type===`element`){if(t.isCollapsed())return!1;let e=this.getParent();if(A(this)&&this.isInline()&&e){let n=t.isBackward()?t.focus:t.anchor;if(e.is(n.getNode())&&n.offset===e.getChildrenSize()&&this.is(e.getLastChild()))return!1}}return n}getKey(){return this.__key}getIndexWithinParent(){let e=this.getParent();if(e===null)return-1;let t=e.getFirstChild(),n=0;for(;t!==null;){if(this.is(t))return n;n++,t=t.getNextSibling()}return-1}getParent(){let e=this.getLatest().__parent;return e===null?null:N(e)}getParentOrThrow(){let e=this.getParent();return e===null&&t(66,this.__key),e}getTopLevelElement(){let e=this;for(;e!==null;){let n=e.getParent();if(L(n)||V(e)!==null)return k(e)||e===this&&A(e)||t(194),e;e=n}return null}getTopLevelElementOrThrow(){let e=this.getTopLevelElement();return e===null&&t(67,this.__key),e}getParents(){let e=[],t=this.getParent();for(;t!==null;)e.push(t),t=t.getParent();return e}getParentKeys(){let e=[],t=this.getParent();for(;t!==null;)e.push(t.__key),t=t.getParent();return e}getPreviousSibling(){let e=this.getLatest().__prev;return e===null?null:N(e)}getPreviousSiblings(){let e=[],t=this.getParent();if(t===null)return e;let n=t.getFirstChild();for(;n!==null&&!n.is(this);)e.push(n),n=n.getNextSibling();return e}getNextSibling(){let e=this.getLatest().__next;return e===null?null:N(e)}getNextSiblings(){let e=[],t=this.getNextSibling();for(;t!==null;)e.push(t),t=t.getNextSibling();return e}getCommonAncestor(e){let t=k(this)?this:this.getParent(),n=k(e)?e:e.getParent(),r=t&&n?Ha(t,n):null;return r?r.commonAncestor:null}is(e){return e!=null&&this.__key===e.__key}isBefore(e){let n=Ha(this,e);return n!==null&&(n.type===`descendant`||(n.type===`branch`?za(n)===-1:(n.type!==`same`&&n.type!==`ancestor`&&t(279),!1)))}isParentOf(e){return ci(e,this)}getNodesBetween(e){let n=this.isBefore(e),r=[],i=new Set,a=this;for(;a!==null;){let o=a.__key;if(i.has(o)||(i.add(o),r.push(a)),a===e)break;let s=k(a)?n?a.getFirstChild():a.getLastChild():null;if(s!==null){a=s;continue}let c=n?a.getNextSibling():a.getPreviousSibling();if(c!==null){a=c;continue}let l=a.getParentOrThrow();if(i.has(l.__key)||r.push(l),l===e)break;let u=null,d=l;do{if(d===null&&t(68),u=n?d.getNextSibling():d.getPreviousSibling(),d=d.getParent(),d===null)break;u!==null||i.has(d.__key)||r.push(d)}while(u===null);a=u}return n||r.reverse(),r}isDirty(){let e=O()._dirtyLeaves;return e!==null&&e.has(this.__key)}getLatest(){if(dt(this))return this;let e=N(this.__key);return e===null&&t(113),e}getWritable(){if(dt(this))return this;D();let e=On(),t=O(),n=e._nodeMap,r=this.__key,i=this.getLatest(),a=t._cloneNotNeeded,o=E();if(o!==null&&o.setCachedNodes(null),a.has(r))return Ar(i),i;let s=Ki(i);return a.add(r),Ar(s),n.set(r,s),s}getTextContent(){return _a(this)}getTextContentSize(){return this.getTextContent().length}createDOM(e,n){t(70)}updateDOM(e,n,r){t(71)}getDOMSlot(e){return new qo(e)}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){let e=this.__state?this.__state.toJSON():void 0;return{type:this.__type,version:1,...e}}static importJSON(e){t(18,this.name)}updateFromJSON(e){return function(e,t){let n=e.getWritable(),r=t.$,i=r;for(let e of S(n).flatKeys)e in t&&(i!==void 0&&i!==r||(i={...r}),i[e]=t[e]);return(n.__state||i)&&x(e).updateFromJSON(i),n}(this,e)}static transform(){return null}remove(e){lt(this,!0,e)}replace(e,n){D();let r=E();r!==null&&(r=r.clone()),gi(this,e);let i=this.getLatest(),a=this.__key,o=e.__key,s=e.getWritable(),c=this.getParentOrThrow().getWritable(),l=c.__size,u=s.getParent(),d=u===null?-1:s.getIndexWithinParent();kr(s),u!==null&&T(r)&&un(r,u,d,-1);let f=i.getPreviousSibling(),p=i.getNextSibling(),m=i.__prev,h=i.__next,g=i.__parent;lt(i,!1,!0),f===null?c.__first=o:f.getWritable().__next=o,s.__prev=m,p===null?c.__last=o:p.getWritable().__prev=o,s.__next=h,s.__parent=g,c.__size=l;let _=0;n&&(k(this)&&k(s)||t(139),_=s.getChildrenSize(),s.splice(_,0,this.getChildren()));let v=pa(this);if(v.length>0){sa(this)&&sa(s)||t(368,this.__key,s.__key);for(let e of v){let t=ma(this,e);t!==null&&(xa(this,e),ba(s,e,t))}}if(T(r)){P(r);let e=r.anchor,t=r.focus;e.key===a&&(n&&e.type===`element`?e.set(s.__key,_+e.offset,`element`):Ft(e,s)),t.key===a&&(n&&t.type===`element`?t.set(s.__key,_+t.offset,`element`):Ft(t,s))}return jr()===a&&M(o),s}insertAfter(e,t=!0){D(),gi(this,e);let n=this.getWritable(),r=e.getWritable();this.getParentOrThrow();let i=r.getParent(),a=E(),o=!1,s=!1;if(i!==null){let n=e.getIndexWithinParent();if(T(a)){let e=i.__key,t=a.anchor,r=a.focus;o=t.type===`element`&&t.key===e&&t.offset===n+1,s=r.type===`element`&&r.key===e&&r.offset===n+1}kr(r),t&&T(a)&&un(a,i,n,-1)}else kr(r);let c=this.getNextSibling(),l=this.getParentOrThrow().getWritable(),u=r.__key,d=n.__next;if(c===null?l.__last=u:c.getWritable().__prev=u,l.__size++,n.__next=u,r.__next=d,r.__prev=n.__key,r.__parent=n.__parent,t&&T(a)){let e=this.getIndexWithinParent();un(a,l,e+1);let t=l.__key;o&&a.anchor.set(t,e+2,`element`),s&&a.focus.set(t,e+2,`element`)}return e}insertBefore(e,t=!0){D(),gi(this,e);let n=this.getWritable(),r=e.getWritable();this.getParentOrThrow();let i=r.__key,a=E(),o=r.getParent(),s=o===null?-1:r.getIndexWithinParent();kr(r),o!==null&&t&&T(a)&&un(a,o,s,-1);let c=this.getPreviousSibling(),l=this.getParentOrThrow().getWritable(),u=n.__prev,d=this.getIndexWithinParent();return c===null?l.__first=i:c.getWritable().__next=i,l.__size++,n.__prev=i,r.__prev=u,r.__next=n.__key,r.__parent=n.__parent,t&&T(a)&&un(a,this.getParentOrThrow(),d),e}isParentRequired(){return!1}createParentElementNode(){return ar()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,t){D();let n=la(this);if(n!==null)return n.selectPrevious(e,t);let r=this.getPreviousSibling(),i=this.getParentOrThrow();if(r===null)return i.select(0,0);if(k(r))return r.select();if(!w(r)){let e=r.getIndexWithinParent()+1;return i.select(e,e)}return r.select(e,t)}selectNext(e,t){D();let n=la(this);if(n!==null)return n.selectNext(e,t);let r=this.getNextSibling(),i=this.getParentOrThrow();if(r===null)return i.select();if(k(r))return r.select(0,0);if(!w(r)){let e=r.getIndexWithinParent();return i.select(e,e)}return r.select(e,t)}markDirty(){this.getWritable()}reconcileObservedMutation(e,t){this.markDirty()}},Ec=`historic`,Dc=`history-push`,Oc=`history-merge`,kc=`paste`,Ac=`skip-scroll-into-view`,jc=`skip-dom-selection`,Mc=`skip-selection-focus`,Nc=`composition-start`,Pc=`composition-end`,Fc=`!important`,Ic=class extends X{__text;__format;__style;__mode;__detail;get __isInlineFormattable(){return!0}$config(){return this.config(`text`,{importDOM:{"#text":()=>({conversion:Et,priority:0}),b:()=>({conversion:wt,priority:0}),code:()=>({conversion:Ot,priority:0}),em:()=>({conversion:Ot,priority:0}),i:()=>({conversion:Ot,priority:0}),mark:()=>({conversion:Ot,priority:0}),s:()=>({conversion:Ot,priority:0}),span:()=>({conversion:Ct,priority:0}),strong:()=>({conversion:Ot,priority:0}),sub:()=>({conversion:Ot,priority:0}),sup:()=>({conversion:Ot,priority:0}),u:()=>({conversion:Ot,priority:0})}})}afterCloneFrom(e){super.afterCloneFrom(e),this.__text=e.__text,this.__format=e.__format,this.__style=e.__style,this.__mode=e.__mode,this.__detail=e.__detail}constructor(e=``,t){super(t),this.__text=e,this.__format=0,this.__style=``,this.__mode=0,this.__detail=0}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){let e=this.getLatest();return Go[e.__mode]}getStyle(){return this.getLatest().__style}isToken(){return this.getLatest().__mode===1}isComposing(){return this.__key===jr()}isSegmented(){return this.getLatest().__mode===2}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(e){let t=U[e];return(this.getFormat()&t)!==0}isSimpleText(){return this.__type===`text`&&this.__mode===0}getTextContent(){return this.getLatest().__text}getFormatFlags(e,t){return Er(this.getLatest().__format,e,t)}canHaveFormat(){return!0}isInline(){return!0}createDOM(e,t){let n=this.__format,r=gt(0,n),i=_t(0,n),a=r===null?i:r,o=R().createElement(a),s=o;this.hasFormat(`code`)&&o.setAttribute(`spellcheck`,`false`),r!==null&&(s=R().createElement(i),o.appendChild(s)),bt(s,this,0,n,this.__text,e);let c=this.__style;return c!==``&&ht(o.style,c),o}updateDOM(e,n,r){let i=this.__text,a=e.__format,o=this.__format,s=gt(0,a),c=gt(0,o),l=_t(0,a),u=_t(0,o);if((s===null?l:s)!==(c===null?u:c))return!0;if(s===c&&l!==u){let e=n.firstChild;e??t(48);let a=R().createElement(u);return bt(a,this,0,o,i,r),n.replaceChild(a,e),!1}let d=n;c!==null&&s!==null&&(d=n.firstChild,d??t(49)),yt(i,d,this);let f=r.theme.text;f!==void 0&&a!==o&&vt(0,a,o,d,f);let p=e.__style,m=this.__style;return p!==m&&ht(n.style,m,p),!1}updateFromJSON(e){return super.updateFromJSON(e).setTextContent(e.text).setFormat(e.format).setDetail(e.detail).setMode(e.mode).setStyle(e.style)}exportDOM(e){let{element:n}=super.exportDOM(e);return z(n)||t(132),n.style.whiteSpace=`pre-wrap`,this.hasFormat(`lowercase`)?n.style.textTransform=`lowercase`:this.hasFormat(`uppercase`)?n.style.textTransform=`uppercase`:this.hasFormat(`capitalize`)&&(n.style.textTransform=`capitalize`),this.hasFormat(`bold`)&&(n=xt(n,`b`)),this.hasFormat(`italic`)&&(n=xt(n,`i`)),this.hasFormat(`strikethrough`)&&(n=xt(n,`s`)),this.hasFormat(`underline`)&&(n=xt(n,`u`)),{element:n}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),...super.exportJSON()}}selectionTransform(e,t){}setFormat(e){let t=this.getWritable();return t.__format=typeof e==`string`?U[e]:e,t}setDetail(e){let t=this.getWritable();return t.__detail=typeof e==`string`?Vo[e]:e,t}setStyle(e){let t=this.getWritable();return t.__style=e,t}toggleFormat(e){let t=Er(this.getFormat(),e,null);return this.setFormat(t)}toggleDirectionless(){let e=this.getWritable();return e.__detail^=1,e}toggleUnmergeable(){let e=this.getWritable();return e.__detail^=2,e}setMode(e){let t=Wo[e];if(this.__mode===t)return this;let n=this.getWritable();return n.__mode=t,n}setTextContent(e){if(this.__text===e)return this;let t=this.getWritable();return t.__text=e,t}select(e,t){D();let n=e,r=t,i=E(),a=this.getTextContent(),o=this.__key;if(typeof a==`string`){let e=a.length;n===void 0&&(n=e),r===void 0&&(r=e)}else n=0,r=0;if(!T(i))return an(o,n,o,r,`text`,`text`);{let e=jr();e!==i.anchor.key&&e!==i.focus.key||M(o),i.setTextNodeRange(this,n,this,r)}return i}selectStart(){return this.select(0,0)}selectEnd(){let e=this.getTextContentSize();return this.select(e,e)}spliceText(e,t,n,r){let i=this.getWritable(),a=i.__text,o=n.length,s=e;s<0&&(s=o+s,s<0&&(s=0));let c=E();if(r&&T(c)){let t=e+o;c.setTextNodeRange(i,t,i,t)}return i.__text=a.slice(0,s)+n+a.slice(s+t),i}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...e){D();let t=this.getLatest(),n=t.getTextContent();if(n===``)return[];let r=t.__key,i=jr(),a=n.length;e.sort((e,t)=>e-t),e.push(a);let o=[],s=e.length;for(let t=0,r=0;t<a&&r<=s;r++){let i=e[r];i>t&&(o.push(n.slice(t,i)),t=i)}let c=o.length;if(c===1)return[t];let l=o[0],u=t.getParent(),d,f=t.getFormat(),p=t.getStyle(),m=t.__detail,h=!1,g=null,_=null,v=E();if(T(v)){let[e,t]=v.isBackward()?[v.focus,v.anchor]:[v.anchor,v.focus];e.type===`text`&&e.key===r&&(g=e),t.type===`text`&&t.key===r&&(_=t)}t.isSegmented()?(d=kt(l),d.__format=f,d.__style=p,d.__detail=m,d.__state=ie(t,d),h=!0):d=t.setTextContent(l);let y=[d];for(let e=1;e<c;e++){let n=kt(o[e]);n.__format=f,n.__style=p,n.__detail=m,n.__state=ie(t,n);let a=n.__key;i===r&&M(a),y.push(n)}let b=g?g.offset:null,x=_?_.offset:null,S=0;for(let e of y){if(!g&&!_)break;let t=S+e.getTextContentSize();if(g!==null&&b!==null&&b<=t&&b>=S&&(g.set(e.getKey(),b-S,`text`),b<t&&(g=null)),_!==null&&x!==null&&x<=t&&x>=S){_.set(e.getKey(),x-S,`text`);break}S=t}if(u!==null){(function(e){let t=e.getPreviousSibling(),n=e.getNextSibling();t!==null&&Ar(t),n!==null&&Ar(n)})(this);let e=u.getWritable(),t=this.getIndexWithinParent();h?(e.splice(t,0,y),this.remove()):e.splice(t,1,y),T(v)&&un(v,u,t,c-1)}return y}mergeWithSibling(e){let n=e===this.getPreviousSibling();n||e===this.getNextSibling()||t(50);let r=this.__key,i=e.__key,a=this.__text,o=a.length;jr()===i&&M(r);let s=E();if(T(s)){let t=s.anchor,a=s.focus;t!==null&&t.key===i&&pn(t,n,r,e,o),a!==null&&a.key===i&&pn(a,n,r,e,o)}let c=e.__text,l=n?c+a:a+c;this.setTextContent(l);let u=this.getWritable();return e.remove(),u}isTextEntity(){return!1}},Lc=new WeakMap,Rc={code:`code`,em:`italic`,i:`italic`,mark:`highlight`,s:`strikethrough`,strong:`bold`,sub:`subscript`,sup:`superscript`,u:`underline`},zc=class extends Ic{$config(){return this.config(`tab`,{extends:Ic})}constructor(e=void 0){super(` `,e),this.__detail=2}createDOM(e){let t=super.createDOM(e),n=Qr(e.theme,`tab`);return n!==void 0&&t.classList.add(...n),t}setTextContent(e){return super.setTextContent(` `)}spliceText(e,n,r,i){return r===``&&n===0||r===` `&&n===1||t(286),this}setDetail(e){return e!==2&&t(127),this}setMode(e){return e!==`normal`&&t(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}},Bc=class{key;offset;type;_selection;constructor(e,t,n){this._selection=null,this.key=e,this.offset=t,this.type=n}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){return this.key===e.key?this.offset<e.offset:Ra(Qa(Ua(this,`next`)),Qa(Ua(e,`next`)))<0}getNode(){let e=N(this.key);return e===null&&t(20),e}set(e,t,n,r){let i=this._selection,a=this.key;r&&this.key===e&&this.offset===t&&this.type===n||(this.key=e,this.offset=t,this.type=n,En()||(jr()===a&&M(e),i!==null&&(i.setCachedNodes(null),T(i)&&(i._cachedIsBackward=null),i.dirty=!0)))}},Vc=class e{_nodes;_cachedNodes;dirty;constructor(e){this._cachedNodes=null,this._nodes=e,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){if(!zt(e))return!1;let t=this._nodes,n=e._nodes;return t.size===n.size&&Array.from(t).every(e=>n.has(e))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(e){this.dirty=!0,this._nodes.add(e),this._cachedNodes=null}delete(e){this.dirty=!0,this._nodes.delete(e),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(e){return this._nodes.has(e)}clone(){return new e(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(e){}insertText(){}insertNodes(e){let t=this.getNodes().filter(e=>V(e)===null),n=t.length;if(n===0)return;let r=t[n-1],i;if(w(r))i=r.select();else{let e=r.getIndexWithinParent()+1;i=r.getParentOrThrow().select(e,e)}i.insertNodes(e);for(let e=0;e<n;e++)t[e].remove()}getNodes(){let e=this._cachedNodes;if(e!==null)return e;let t=this._nodes,n=[];for(let e of t){let t=N(e);t!==null&&n.push(t)}return En()||(this._cachedNodes=n),n}getTextContent(){let e=this.getNodes(),t=``;for(let n=0;n<e.length;n++)t+=e[n].getTextContent();return t}deleteNodes(){let e=this.getNodes().filter(e=>V(e)===null);if((E()||ln())===this&&e[0]){let t=H(e[0],`next`);Ga(Ia(t,t))}for(let t of e)t.remove();Rt()}},Hc=class e{format;style;anchor;focus;_cachedNodes;_cachedIsBackward;dirty;constructor(e,t,n,r){this.anchor=e,this.focus=t,e._selection=this,t._selection=this,this._cachedNodes=null,this._cachedIsBackward=null,this.format=n,this.style=r,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){return!!T(e)&&this.anchor.is(e.anchor)&&this.focus.is(e.focus)&&this.format===e.format&&this.style===e.style}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){let e=this._cachedNodes;if(e!==null)return e;let t=function(e){let t=[],[n,r]=e.getTextSlices();n&&t.push(n.caret.origin);let i=new Set,a=new Set;for(let n of e)if(Da(n)){let{origin:e}=n;t.length===0?i.add(e):(a.add(e),t.push(e))}else{let{origin:e}=n;k(e)&&a.has(e)||t.push(e)}if(r&&t.push(r.caret.origin),Ea(e.focus)&&k(e.focus.origin)&&e.focus.getNodeAtCaret()===null)for(let n=ja(e.focus.origin,`previous`);Da(n)&&i.has(n.origin)&&!n.origin.isEmpty()&&n.origin.is(t[t.length-1]);n=Na(n))i.delete(n.origin),t.pop();for(;t.length>1;){let e=t[t.length-1];if(!k(e)||a.has(e)||e.isEmpty()||i.has(e))break;t.pop()}if(t.length===0&&e.isCollapsed()){let n=Qa(e.anchor),r=Qa(e.anchor.getFlipped()),i=e=>Ta(e)?e.origin:e.getNodeAtCaret(),a=i(n)||i(r)||(e.anchor.getNodeAtCaret()?n.origin:r.origin);t.push(a)}return t}(to(qa(this),`next`));return En()||(this._cachedNodes=t),t}setTextNodeRange(e,t,n,r){return this.anchor.set(e.__key,t,`text`),this.focus.set(n.__key,r,`text`),this}getTextContent(){let e=this.getNodes();if(e.length===0)return``;let t=e[0],n=e[e.length-1],r=this.anchor,i=this.focus,a=r.isBefore(i),[o,s]=Wt(this),c=``,l=!0;for(let u=0;u<e.length;u++){let d=e[u];if(k(d)&&!d.isInline()){l||(c+=`
|
|
10
|
+
`);let e=``;for(let t of pa(d)){let n=ma(d,t);n!==null&&(e+=n.getTextContent())}e===``?l=!d.isEmpty():(c+=e,l=!1)}else if(l=!1,w(d)){let e=d.getTextContent();d===t?d===n?r.type===`element`&&i.type===`element`&&i.offset!==r.offset||(e=o<s?e.slice(o,s):e.slice(s,o)):e=a?e.slice(o):e.slice(s):d===n&&(e=a?e.slice(0,s):e.slice(0,o)),c+=e}else!A(d)&&!er(d)||d===n&&this.isCollapsed()||(c+=d.getTextContent())}return c}applyDOMRange(e){let t=O(),n=t.getEditorState()._selection,r=nn(e.startContainer,e.startOffset,e.endContainer,e.endOffset,t,n);if(r===null)return;let[i,a,o]=r;this.anchor.set(i.key,i.offset,i.type,!0),this.focus.set(a.key,a.offset,a.type,!0),o&&(this.dirty=!0),ce(this)}clone(){let t=this.anchor,n=this.focus;return new e(Nt(t.key,t.offset,t.type),Nt(n.key,n.offset,n.type),this.format,this.style)}toggleFormat(e){this.format=Er(this.format,e,null),this.dirty=!0}setFormat(e){this.format=e,this.dirty=!0}setStyle(e){this.style=e,this.dirty=!0}hasFormat(e){let t=U[e];return(this.format&t)!==0}insertRawText(e){this.insertNodes(yn(e))}insertText(e){let n=this.format,r=this.style;if(!this.isCollapsed()){let t=(this.focus.isBefore(this.anchor)?this.focus:this.anchor).getNode();if(w(t)&&(n=t.getFormat(),r=t.getStyle()),this.removeText(),this.format=n,this.style=r,e===``)return;if(jr()===null)return this.anchor.type===`element`&&It(this.anchor,this.focus,n,r),void Lt(this,e,n,r)}this.anchor.type===`element`&&It(this.anchor,this.focus,n,r);let i=this.anchor.getNode();w(i)||t(398);let a=this.anchor.offset,o=i.getParentOrThrow(),s=i.getTextContentSize();if(Sr(i)||a===0&&(!i.canInsertTextBefore()||!o.canInsertTextBefore()&&!i.__prev)||a===s&&(!i.canInsertTextAfter()||!o.canInsertTextAfter()&&!i.__next)){if(i.isSegmented()&&a!==0&&a!==s){if(jr()!==null)i.setMode(`normal`).setFormat(n).setStyle(r);else{let e=kt(i.getTextContent());e.setFormat(n),e.setStyle(r),i.replace(e),e.select(a,a)}e!==``&&this.insertText(e);return}if(e===``)return;if(a===0){let t=i.getPreviousSibling();if(w(t)&&t.canInsertTextAfter()&&!Sr(t))t.select();else{let e=kt();e.setFormat(n),e.setStyle(r),o.canInsertTextBefore()?i.insertBefore(e):o.insertBefore(e),e.select()}this.insertText(e);return}if(a===s){let t=i.getNextSibling();if(w(t)&&t.canInsertTextBefore()&&!Sr(t))t.select(0,0);else{let e=kt();e.setFormat(n),e.setStyle(r),o.canInsertTextAfter()?i.insertAfter(e):o.insertAfter(e),e.select(0,0)}this.insertText(e);return}let t=kt(e);t.setFormat(n),t.setStyle(r),i.replace(t),t.select();return}if(e===``)return;let c=o.isInline()&&a===0&&!i.__prev,l=o.isInline()&&a===s&&!i.__next,u=i.getFormat()!==n||i.getStyle()!==r;if(c||l||u){if(i.getTextContent()!==``||c||l)return void Lt(this,e,n,r);i.setFormat(n),i.setStyle(r)}i.spliceText(a,0,e,!0),i.isComposing()&&this.anchor.type===`text`&&this.anchor.set(this.anchor.key,this.anchor.offset-e.length,this.anchor.type)}removeText(){let e=E()===this;Ka(this,Za(qa(this))),e&&E()!==this&&P(this)}formatText(e,t=null){Ht(this,e,t)}insertNodes(e){if(e.length===0)return;this.isCollapsed()||this.removeText();let n=this.anchor.getNode();if(this.anchor.type===`element`&&k(n)&&V(n)!==null){let r=n.isShadowRoot()?n.getFirstChild()??n.append(ar()).getFirstChild():n.getFirstChild();if(n.isShadowRoot()&&r!==null&&!k(r)){let e=ar();r.insertBefore(e),r=e}if(r!==null){r.selectStart();let n=E();return T(n)||t(369),n.insertNodes(e)}}if(this.anchor.type===`element`&&L(n)){let t=wn(e),r=t.getLastDescendant();n.splice(this.anchor.offset,0,t.getChildren()),r!==null&&r.selectEnd();return}let r=(this.isBackward()?this.focus:this.anchor).getNode(),i=_l(r,B),a=e[e.length-1];if(k(i)&&`__language`in i){if(`__language`in e[0])this.insertText(e[0].getTextContent());else{let t=xn(this);i.splice(t,0,e),a.selectEnd()}return}if(!e.some(e=>(k(e)||A(e))&&!e.isInline())){k(i)||t(211,r.constructor.name,r.getType());let n=xn(this);i.splice(n,0,e),a.selectEnd();return}if(k(i)&&V(i)!==null){let t=xn(this),n=bn(e);i.splice(t,0,n);let r=n[n.length-1];r===void 0?i.select(t,t):r.selectEnd();return}if(i===null){let t=wn(e),n=t.getLastDescendant(),r=Ua(this.anchor,`next`);for(let e of t.getChildren())r=oo(e,r);n!==null&&n.selectEnd();return}if(k(i)&&!i.isParentRequired()&&!L(i.getParentOrThrow())){let t=xn(this),n=bn(e);i.splice(t,0,n);let r=n[n.length-1];r===void 0?i.select(t,t):r.selectEnd();return}let o=wn(e),s=o.getLastDescendant(),c=o.getChildren(),l=!k(i)||!i.isEmpty()?this.insertParagraph():null;l&&!i.isAttached()&&(r=this.anchor.getNode(),i=_l(r,B));let u=c[c.length-1],d=c[0];var f;k(f=d)&&B(f)&&!f.isEmpty()&&k(i)&&(!i.isEmpty()||i.canMergeWhenEmpty())&&(k(i)||t(211,r.constructor.name,r.getType()),i.append(...d.getChildren()),d=c[1]),d&&(i===null&&t(212,r.constructor.name,r.getType()),function(e,n){let r=n.getParentOrThrow().getLastChild(),i=n,a=[n];for(;i!==r;)i.getNextSibling()||t(140),i=i.getNextSibling(),a.push(i);let o=e;for(let e of a)o=o.insertAfter(e)}(i,d));let p=_l(s,B);l&&k(p)&&(l.canMergeWhenEmpty()||B(u))&&(p.append(...l.getChildren()),l.remove()),k(i)&&i.isEmpty()&&i.remove(),s.selectEnd();let m=k(i)?i.getLastChild():null;er(m)&&p!==i&&m.remove()}insertParagraph(){let e=this.anchor.getNode();if(this.anchor.type===`element`&&L(e)){let t=ar();return e.splice(this.anchor.offset,0,[t]),t.select(),t}let n=xn(this),r=_l(this.anchor.getNode(),B);if(r!==null&&V(r)!==null)return null;k(r)||t(213);let i=r.getChildAtIndex(n),a=i?[i,...i.getNextSiblings()]:[],o=r.insertNewAfter(this,!1);return o?(o.append(...a),o.selectStart(),o):null}insertLineBreak(e){let t=$n();if(this.insertNodes([t]),e){let e=t.getParentOrThrow(),n=t.getIndexWithinParent();e.select(n,n)}}extract(){let e=[...this.getNodes()],t=e.length,n=e[0],r=e[t-1],[i,a]=Wt(this),o=this.isBackward(),[s,c]=o?[this.focus,this.anchor]:[this.anchor,this.focus],[l,u]=o?[a,i]:[i,a];if(t===0)return[];if(t===1){if(w(n)&&!this.isCollapsed()){let e=n.splitText(l,u),t=l===0?e[0]:e[1];return t?(s.set(t.getKey(),0,`text`),c.set(t.getKey(),t.getTextContentSize(),`text`),[t]):[]}return[n]}if(w(n)&&(l===n.getTextContentSize()?e.shift():l!==0&&([,n]=n.splitText(l),e[0]=n,s.set(n.getKey(),0,`text`))),w(r)){let t=r.getTextContent().length;u===0?e.pop():u!==t&&([r]=r.splitText(u),e[e.length-1]=r,c.set(r.getKey(),r.getTextContentSize(),`text`))}return e}modify(e,t,n){if(Tn(this,e,t,n))return;let r=e===`move`,i=O(),a=bi(ui(i));if(!a)return;let o=i._blockCursorElement,s=i._rootElement,c=this.focus.getNode();s===null||o===null||!k(c)||c.isInline()||c.canBeEmpty()||yi(o,i,s);let l=ri(i,this.focus.key),u=l;if(this.focus.type===`text`&&(u=w(c)?Wi(c,l,i):null),this.dirty){let e=ri(i,this.anchor.key),t=e;if(this.anchor.type===`text`){let n=this.anchor.getNode();t=w(n)?Wi(n,e,i):null}t&&u&&mn(a,t,this.anchor.offset,u,this.focus.offset)}if(n===`character`&&w(c)&&c.isUnmergeable()&&(t?this.focus.offset===0:this.focus.offset===c.getTextContentSize())){let e=H(c,t?`previous`:`next`).getNodeAtCaret();if(w(e)){if(!r){let n=e.getTextContentSize();t?this.focus.set(e.__key,n-1,`text`):this.focus.set(e.__key,1,`text`),this.dirty=!0;return}{let n=i.getElementByKey(e.getKey()),r=n?Wi(e,n,i):null;if(r){let e=t?r.length:0;mn(a,r,e,r,e)}}}}if(qt(a,e,t?`backward`:`forward`,n),a.rangeCount>0){let e=Ei(a,i._rootElement),n=e||a.getRangeAt(0),o=this.anchor.getNode(),s=j(o)?o:fi(o);this.applyDOMRange(n),this.dirty=!0,!r&&(Jt(this,t,s),(e?a.direction!==`backward`:a.anchorNode===n.startContainer&&a.anchorOffset===n.startOffset)||Kt(this))}n===`lineboundary`&&Tn(this,e,t,n,`decorators`)}forwardDeletion(e,t,n){if(!n&&(e.type===`element`&&k(t)&&e.offset===t.getChildrenSize()||e.type===`text`&&e.offset===t.getTextContentSize())){let e=t.getParent(),n=t.getNextSibling()||(e===null?null:e.getNextSibling());if(k(n)&&n.isShadowRoot())return!0}return!1}deleteCharacter(e){let t=this.isCollapsed();if(this.isCollapsed()){let t=this.anchor,n=t.getNode();if(this.forwardDeletion(t,n,e))return;let r=Pa(Ua(t,e?`previous`:`next`));if(r.getTextSlices().every(e=>e===null||e.distance===0)){let e={type:`initial`};for(let t of r.iterNodeCarets(`shadowRoot`))if(Da(t)){if(!t.origin.isInline()){if(t.origin.isShadowRoot()){if(e.type===`merge-block`)break;if(k(r.anchor.origin)&&r.anchor.origin.isEmpty()){let e=Qa(t);Ka(this,Ia(e,e)),r.anchor.origin.remove()}return}e.type!==`merge-next-block`&&e.type!==`merge-block`||(e={block:e.block,caret:t,type:`merge-block`})}}else{if(e.type===`merge-block`)break;if(Ea(t)){if(k(t.origin)){if(t.origin.isInline()){if(!t.origin.isParentOf(r.anchor.origin))break}else e={block:t.origin,type:`merge-next-block`};continue}if(A(t.origin)){if(!t.origin.isIsolated()){if(pa(t.origin).length>0){if(k(r.anchor.origin)&&r.anchor.origin.isEmpty()){r.anchor.origin.remove();let e=sn();e.add(t.origin.getKey()),P(e)}}else if(e.type===`merge-next-block`&&(t.origin.isKeyboardSelectable()||!t.origin.isInline())&&k(r.anchor.origin)&&r.anchor.origin.isEmpty()){r.anchor.origin.remove();let e=sn();e.add(t.origin.getKey()),P(e)}else t.origin.remove()}return}break}}if(e.type===`merge-block`){let{caret:t,block:n}=e;return pa(n).length>0?void 0:t.origin.isEmpty()&&!n.isEmpty()&&t.origin.getParent()===n.getParent()?void t.origin.remove(!0):(Ka(this,Ia(!t.origin.isEmpty()&&n.isEmpty()?Ja(H(n,t.direction)):r.anchor,t)),this.removeText())}for(let e=t.getNode();e!==null;){if(V(e)!==null)return;if(k(e)&&e.isShadowRoot())break;e=e.getParent()}}let i=this.focus;if(Yt(this,e,`character`),this.isCollapsed()){if(e&&t.offset===0&&Gt(this,t.getNode()))return}else{let r=i.type===`text`?i.getNode():null;if(n=t.type===`text`?t.getNode():null,r!==null&&r.isSegmented()){let t=i.offset,a=r.getTextContentSize();if(r.is(n)||e&&t!==a||!e&&t!==0)return void Xt(r,e,t)}else if(n!==null&&n.isSegmented()){let i=t.offset,a=n.getTextContentSize();if(n.is(r)||e&&i!==0||!e&&i!==a)return void Xt(n,e,i)}(function(e,t){let n=e.anchor,r=e.focus,i=n.getNode();if(i===r.getNode()&&n.type===`text`&&r.type===`text`){let e=n.offset,a=r.offset,o=e<a,s=o?e:a,c=o?a:e,l=c-1;s!==l&&(function(e){return!(Vr(e)||Uc(e))})(i.getTextContent().slice(s,c))&&(t?r.set(r.key,l,r.type):n.set(n.key,l,n.type))}})(this,e)}}if(this.removeText(),e&&!t&&this.isCollapsed()&&this.anchor.type===`element`&&this.anchor.offset===0){let e=this.anchor.getNode();e.isEmpty()&&j(e.getParent())&&e.getPreviousSibling()===null&&Gt(this,e),Rt()}}deleteLine(e){let t=$t(this.anchor);if(t!==null&&A(la(t)))return this.isCollapsed()||this.focus.set(this.anchor.key,this.anchor.offset,this.anchor.type),void this.deleteCharacter(e);this.isCollapsed()&&Yt(this,e,`lineboundary`),this.isCollapsed()?this.deleteCharacter(e):_l(this.anchor.getNode(),B)===_l(this.focus.getNode(),B)?this.removeText():(this.focus.set(this.anchor.key,this.anchor.offset,this.anchor.type),this.deleteCharacter(e))}deleteWord(e){if(this.isCollapsed()){let t=this.anchor,n=t.getNode();if(this.forwardDeletion(t,n,e))return;Yt(this,e,`word`)}this.isCollapsed()?this.deleteCharacter(e):this.removeText()}isBackward(){let e=this._cachedIsBackward;if(e!==null)return e;let t=this.focus.isBefore(this.anchor);return En()||(this._cachedIsBackward=t),t}getStartEndPoints(){return[this.anchor,this.focus]}},Uc=(()=>{try{let e=RegExp(`\\p{Emoji}`,`u`),t=e.test.bind(e);if(t(`❤️`)&&t(`#️⃣`)&&t(`👍`))return t}catch{}return()=>!1})(),Z=null,Q=null,$=!1,Wc=!1,Gc=!1,Kc=new Set,qc=0,Jc={characterData:!0,childList:!0,subtree:!0},Yc=class extends X{__first;__last;__size;__format;__style;__indent;__dir;__textFormat;__textStyle;__slotHost;__slots;$config(){return this.config(Symbol.for(`ElementNode`),{$transform:Kn,extends:X})}constructor(e){super(e),this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style=``,this.__indent=0,this.__dir=null,this.__textFormat=0,this.__textStyle=``,this.__slotHost=null,this.__slots=null}afterCloneFrom(e){super.afterCloneFrom(e),this.__key===e.__key&&(this.__first=e.__first,this.__last=e.__last,this.__size=e.__size,this.__slotHost=e.__slotHost,this.__slotHost!==null&&this.__parent!==null&&t(384,this.__key,String(this.__slotHost),String(this.__parent)),this.__slots=e.__slots),this.__indent=e.__indent,this.__format=e.__format,this.__style=e.__style,this.__dir=e.__dir,this.__textFormat=e.__textFormat,this.__textStyle=e.__textStyle}getFormat(){return this.getLatest().__format}getFormatType(){let e=this.getFormat();return Uo[e]||``}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){let e=[],t=this.getFirstChild();for(;t!==null;)e.push(t),t=t.getNextSibling();return e}getChildrenKeys(){let e=[],t=this.getFirstChild();for(;t!==null;)e.push(t.__key),t=t.getNextSibling();return e}getChildrenSize(){return this.getLatest().__size}isEmpty(){return this.getChildrenSize()===0&&pa(this).length===0}isDirty(){let e=O()._dirtyElements;return e!==null&&e.has(this.__key)}isLastChild(){let e=this.getLatest(),t=this.getParentOrThrow().getLastChild();return t!==null&&t.is(e)}getAllTextNodes(){let e=[];for(let t of pa(this)){let n=ma(this,t);k(n)&&e.push(...n.getAllTextNodes())}let t=this.getFirstChild();for(;t!==null;){if(w(t)&&e.push(t),k(t)){let n=t.getAllTextNodes();e.push(...n)}t=t.getNextSibling()}return e}getFirstDescendant(){let e=this.getFirstChild();for(;k(e);){let t=e.getFirstChild();if(t===null)break;e=t}return e}getLastDescendant(){let e=this.getLastChild();for(;k(e);){let t=e.getLastChild();if(t===null)break;e=t}return e}getDescendantByIndex(e){let t=this.getChildren(),n=t.length;if(e>=n){let e=t[n-1];return k(e)&&e.getLastDescendant()||e||null}let r=t[e];return k(r)&&r.getFirstDescendant()||r||null}getFirstChild(){let e=this.getLatest().__first;return e===null?null:N(e)}getFirstChildOrThrow(){let e=this.getFirstChild();return e===null&&t(45,this.__key),e}getLastChild(){let e=this.getLatest().__last;return e===null?null:N(e)}getLastChildOrThrow(){let e=this.getLastChild();return e===null&&t(96,this.__key),e}getChildAtIndex(e){let t=this.getChildrenSize(),n,r;if(e<t/2){for(n=this.getFirstChild(),r=0;n!==null&&r<=e;){if(r===e)return n;n=n.getNextSibling(),r++}return null}for(n=this.getLastChild(),r=t-1;n!==null&&r>=e;){if(r===e)return n;n=n.getPreviousSibling(),r--}return null}getTextContent(){let e=_a(this),t=this.getChildren(),n=t.length;for(let r=0;r<n;r++){let i=t[r];e+=i.getTextContent(),k(i)&&r!==n-1&&!i.isInline()&&(e+=Lo)}return e}getTextContentSize(){let e=function(e){let t=0;for(let n of pa(e)){let r=ma(e,n);r!==null&&(t+=r.getTextContentSize())}return t}(this),t=this.getChildren(),n=t.length;for(let r=0;r<n;r++){let i=t[r];e+=i.getTextContentSize(),k(i)&&r!==n-1&&!i.isInline()&&(e+=2)}return e}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(e){if(e!==``){let t=Ho[e];return(this.getFormat()&t)!==0}return!1}hasTextFormat(e){let t=U[e];return(this.getTextFormat()&t)!==0}getFormatFlags(e,t){return Er(this.getLatest().__textFormat,e,t)}getTextStyle(){return this.getLatest().__textStyle}select(e,t){D();let n=E(),r=e,i=t,a=this.getChildrenSize();if(!this.canBeEmpty()){if(e===0&&t===0){let e=this.getFirstChild();if(w(e)||k(e))return e.select(0,0)}else if(!(e!==void 0&&e!==a||t!==void 0&&t!==a)){let e=this.getLastChild();if(w(e)||k(e))return e.select()}}r===void 0&&(r=a),i===void 0&&(i=a);let o=this.__key;return T(n)?(n.anchor.set(o,r,`element`),n.focus.set(o,i,`element`),n.dirty=!0,n):an(o,r,o,i,`element`,`element`)}selectStart(){let e=this.getFirstDescendant();return e?e.selectStart():this.select()}selectEnd(){let e=this.getLastDescendant();return e?e.selectEnd():this.select()}clear(){let e=this.getWritable();return this.getChildren().forEach(e=>e.remove()),e}append(...e){return this.splice(this.getChildrenSize(),0,e)}setDirection(e){let t=this.getWritable();return t.__dir=e,t}setFormat(e){return this.getWritable().__format=e!==``&&Ho[e]||0,this}setStyle(e){return this.getWritable().__style=e||``,this}setTextFormat(e){let t=this.getWritable();return t.__textFormat=e,t}setTextStyle(e){let t=this.getWritable();return t.__textStyle=e,t}setIndent(e){return this.getWritable().__indent=e,this}splice(e,n,r){dt(this)&&t(324,this.__key,this.__type);let i=this.getChildrenSize(),a=this.getWritable();e+n<=i||t(226,String(e),String(n),String(i));for(let e of r);let o=a.__key,s=[],c=[],l=this.getChildAtIndex(e+n),u=null,d=i-n+r.length;if(e!==0){if(e===i)u=this.getLastChild();else{let t=this.getChildAtIndex(e);t!==null&&(u=t.getPreviousSibling())}}if(n>0){let e=u===null?this.getFirstChild():u.getNextSibling();for(let r=0;r<n;r++){e===null&&t(100);let n=e.getNextSibling(),r=e.__key;kr(e.getWritable()),c.push(r),e=n}}let f=u;for(let e of r){f!==null&&e.is(f)&&(u=f=f.getPreviousSibling());let n=e.getWritable();n.__parent===o&&d--,kr(n);let r=e.__key;if(f===null)a.__first=r,n.__prev=null;else{let e=f.getWritable();e.__next=r,n.__prev=e.__key}e.__key===o&&t(76),n.__parent=o,s.push(r),f=e}if(e+n===i)f!==null&&(f.getWritable().__next=null,a.__last=f.__key);else if(l!==null){let e=l.getWritable();if(f!==null){let t=f.getWritable();e.__prev=f.__key,t.__next=l.__key}else e.__prev=null}if(a.__size=d,c.length){let e=E();if(T(e)){let t=new Set(c),n=new Set(s),{anchor:r,focus:i}=e;qn(r,t,n)&&fn(r,r.getNode(),this,u,l),qn(i,t,n)&&fn(i,i.getNode(),this,u,l),d!==0||this.canBeEmpty()||L(this)||this.remove()}}return a}getDOMSlot(e){return new Jo(e)}exportDOM(e){let{element:t}=super.exportDOM(e);if(z(t)){let e=this.getIndent();e>0&&(t.style.paddingInlineStart=40*e+`px`,t.setAttribute(`data-lexical-indent`,String(e)));let n=this.getDirection();n&&(t.dir=n)}return{element:t}}exportJSON(){let e={children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),...super.exportJSON()},t=this.getTextFormat(),n=this.getTextStyle();return t===0&&n===``||L(this)||this.getChildren().some(w)||(t!==0&&(e.textFormat=t),n!==``&&(e.textStyle=n)),e}updateFromJSON(e){return super.updateFromJSON(e).setFormat(e.format).setIndent(e.indent).setDirection(e.direction).setTextFormat(e.textFormat||0).setTextStyle(e.textStyle||``)}insertNewAfter(e,t){return null}canIndent(){return!0}collapseAtStart(e){return!1}excludeFromCopy(e){return!1}canReplaceWith(e){return!0}canInsertAfter(e){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(e){return!1}extractWithChild(e,t,n){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(e,t){let n=Hi(this,e,t),r=n.getFirstChild();for(let e=this.getFirstChild();e;e=e.getNextSibling()){let i=t.getElementByKey(e.getKey());i!==null&&(r==null?(n.insertChild(i),r=i):r!==i&&n.replaceChild(i,r),r=r.nextSibling)}}},Xc=class extends X{__slotHost;__slots;constructor(e){super(e),this.__slotHost=null,this.__slots=null}afterCloneFrom(e){super.afterCloneFrom(e),this.__key===e.__key&&(this.__slotHost=e.__slotHost,this.__slotHost!==null&&this.__parent!==null&&t(383,this.__key,String(this.__slotHost),String(this.__parent)),this.__slots=e.__slots)}decorate(e,t){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}},Zc=class extends Yc{__cachedText;$config(){return this.config(`root`,{extends:Yc})}constructor(){super(`root`),this.__cachedText=null}getTopLevelElementOrThrow(){t(51)}getTextContent(){let e=this.__cachedText;return e===null||!En()&&O()._dirtyType!==0?super.getTextContent():e}remove(){t(52)}replace(e){t(53)}insertBefore(e){t(54)}insertAfter(e){t(55)}updateDOM(e,t){return!1}splice(e,n,r){for(let e of r)k(e)||A(e)||t(282);return super.splice(e,n,r)}static importJSON(e){return Rr().updateFromJSON(e)}collapseAtStart(){return!0}},Qc=class e{_nodeMap;_selection;_flushSync;_readOnly;_parsed;_slotsUsed;constructor(e,t=null,n=!1){this._nodeMap=e,this._selection=t||null,this._flushSync=!1,this._readOnly=!1,this._parsed=!1,this._slotsUsed=n}isEmpty(){return this._nodeMap.size===1&&this._selection===null}read(e,t){return Rn(t&&t.editor||null,this,e)}clone(t){let n=new e(this._nodeMap,t===void 0?this._selection:t,this._slotsUsed);return n._readOnly=!0,n}toJSON(){return Rn(null,this,()=>({root:Xn(Rr())}))}},$c=class extends Yc{$config(){return this.config(`artificial`,{extends:Yc})}createDOM(e){return R().createElement(`div`)}},el=class extends X{$config(){return this.config(`linebreak`,{importDOM:{br:e=>tr(e)||nr(e)?null:{conversion:Qn,priority:0}}})}getTextContent(){return`
|
|
11
|
+
`}createDOM(){return R().createElement(`br`)}updateDOM(){return!1}isInline(){return!0}},tl=class extends Yc{$config(){return this.config(`paragraph`,{extends:Yc,importDOM:{p:()=>({conversion:ir,priority:0})}})}createDOM(e){let t=R().createElement(`p`),n=Qr(e.theme,`paragraph`);return n!==void 0&&t.classList.add(...n),t}updateDOM(e,t,n){return!1}exportDOM(e){let{element:t}=super.exportDOM(e);if(z(t)){this.isEmpty()&&t.append(R().createElement(`br`));let e=this.getFormatType();e&&(t.style.textAlign=e)}return{element:t}}exportJSON(){let e=super.exportJSON();if(e.textFormat===void 0||e.textStyle===void 0){let t=this.getChildren().find(w);t?(e.textFormat=t.getFormat(),e.textStyle=t.getStyle()):(e.textFormat=this.getTextFormat(),e.textStyle=this.getTextStyle())}return e}insertNewAfter(e,t){let n=ar();n.setTextFormat(e.format),n.setTextStyle(e.style);let r=this.getDirection();return n.setDirection(r),n.setFormat(this.getFormatType()),n.setStyle(this.getStyle()),this.insertAfter(n,t),n}collapseAtStart(){let e=this.getChildren();if(e.length===0||w(e[0])&&e[0].getTextContent().trim()===``){if(this.getNextSibling()!==null)return this.selectNext(),this.remove(),!0;if(this.getPreviousSibling()!==null)return this.selectPrevious(),this.remove(),!0}return!1}},nl={$createDOM:(e,t)=>e.createDOM(t._config,t),$decorateDOM:(e,t,n,r)=>{},$exportDOM:(e,t)=>{let n=hr(t,e.getType());return n&&n.exportDOM!==void 0?n.exportDOM(t,e):e.exportDOM(t)},$extractWithChild:(e,t,n,r,i)=>k(e)&&e.extractWithChild(t,n,r),$getDOMSlot:(e,t,n)=>e.getDOMSlot(t),$getSlotTargetElement:(e,t,n,r)=>null,$shouldExclude:(e,t,n)=>k(e)&&e.excludeFromCopy(`html`),$shouldInclude:(e,t,n)=>!t||e.isSelected(t),$updateDOM:(e,t,n,r)=>e.updateDOM(t,n,r._config)},rl=class{static version;_headless;_parentEditor;_rootElement;_editorState;_pendingEditorState;_compositionKey;_deferred;_keyToDOMMap;_updates;_updating;_cascadeCount;_listeners;_commands;_nodes;_decorators;_pendingDecorators;_config;_dirtyType;_cloneNotNeeded;_dirtyLeaves;_dirtyElements;_normalizedNodes;_updateTags;_observer;_key;_onError;_onWarn;_htmlConversions;_window;_editable;_blockCursorElement;_slotsUsed;_inputState;_createEditorArgs;constructor(e,t,n,r,i,a,o,s,c){this._createEditorArgs=c,this._parentEditor=t,this._rootElement=null,this._editorState=e,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new $o,this._updates=[],this._updating=!1,this._cascadeCount=0,this._listeners={decorator:new Map,editable:new Map,mutation:new Map,root:new Map,textcontent:new Map,update:new Map},this._commands=new Map,this._config=r,this._nodes=n,this._decorators={},this._pendingDecorators=null,this._dirtyType=0,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=Ur(),this._onError=i,this._onWarn=a,this._htmlConversions=o,this._editable=s,this._headless=t!==null&&t._headless,this._window=null,this._blockCursorElement=null,this._slotsUsed=!1,this._inputState={collapsedSelectionFormat:{format:0,key:`root`,offset:0,style:``,timeStamp:0},compositionEndData:``,compositionPhase:`idle`,hadOrphanedCompositionEvents:!1,handledSelectionCommandTimeoutId:null,isInsertLineBreak:!1,isInsertTextAfterHandledSelectionCommand:!1,isSelectionChangeFromDOMUpdate:!1,isSelectionChangeFromMouseDown:!1,lastBeforeInputInsertTextTimeStamp:0,lastKeyCode:null,lastKeyDownTimeStamp:0,postDeleteSelectionToRestore:null,unprocessedBeforeInputData:null}}isComposing(){return this._compositionKey!=null}registerUpdateListener(e){return fr(this._listeners.update,e)}registerEditableListener(e){return fr(this._listeners.editable,e)}registerDecoratorListener(e){return fr(this._listeners.decorator,e)}registerTextContentListener(e){return fr(this._listeners.textcontent,e)}registerRootListener(e){let t=this._listeners.root;return mo(fr(t,e,e(this._rootElement,null)||void 0),()=>function(e,t,n){let r=e.get(t);r&&r(),e.set(t,t(...n)||void 0)}(t,e,[null,this._rootElement]))}registerCommand(e,n,r){r===void 0&&t(35);let i=this._commands;i.has(e)||i.set(e,[new Zo,new Zo,new Zo,new Zo,new Zo]);let a=i.get(e);a===void 0&&t(36,String(e));let o=function(e){return 7&e}(r),s=a[o];return o===r?s.addBack(n):s.addFront(n),()=>{s.delete(n),a.every(e=>e.size===0)&&i.delete(e)}}registerMutationListener(e,t,n){let r=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(e)).klass,i=this._listeners.mutation,a=i.get(t);a===void 0&&(a=new Set,i.set(t,a)),a.add(r);let o=n&&n.skipInitialization;return o!==void 0&&o||this.initializeMutationListener(t,r),()=>{a.delete(r),a.size===0&&i.delete(t)}}getRegisteredNode(e){let n=this._nodes.get(e.getType());return n===void 0&&t(37,e.name),n}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,t){let n=this._editorState,r=Gi(n).get(t.getType());if(!r)return;let i=new Map;for(let e of r.keys())i.set(e,`created`);i.size>0&&e(i,{dirtyLeaves:new Set,prevEditorState:n,updateTags:new Set([`registerMutationListener`])})}registerNodeTransformToKlass(e,t){let n=this.getRegisteredNode(e);return n.transforms.add(t),n}registerNodeTransform(e,t){let n=this.registerNodeTransformToKlass(e,t),r=[n],i=n.replaceWithKlass;if(i!=null){let e=this.registerNodeTransformToKlass(i,t);r.push(e)}return function(e,t){let n=Gi(e.getEditorState()),r=[];for(let e of t){let t=n.get(e);t&&r.push(t)}r.length!==0&&e.update(()=>{for(let e of r)for(let t of e.keys()){let e=N(t);e&&e.markDirty()}},e._pendingEditorState===null?{tag:Oc}:void 0)}(this,r.map(e=>e.klass.getType())),()=>{r.forEach(e=>e.transforms.delete(t))}}hasNode(e){return this._nodes.has(e.getType())}hasNodes(e){return e.every(this.hasNode.bind(this))}dispatchCommand(e,...t){return I(this,e,...t)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){let t=this._rootElement;if(e!==t){let n=Qr(this._config.theme,`root`),r=this._pendingEditorState||this._editorState;if(this._rootElement=e,cr(this,t,e,r,{preserveUpdateQueue:!0}),t!==null&&(this._config.disableEvents||ct(t),n!=null&&t.classList.remove(...n)),e!==null){let t=li(e),r=e.style;r.userSelect=`text`,r.whiteSpace=`pre-wrap`,r.wordBreak=`break-word`,e.setAttribute(`data-lexical-editor`,`true`),this._window=t,this._dirtyType=2,g(this),this._updateTags.add(Oc),zn(this),this._config.disableEvents||function(e,t){let n=e.ownerDocument;bc.set(e,n);let r=xc.get(n);r===void 0&&(r={editors:new Set,hasShadowEditor:void 0},xc.set(n,r)),r.editors.add(t),r.hasShadowEditor=void 0,e.__lexicalEditor=t;let i=it(e);i.push(Sc.register(n));for(let n=0;n<yc.length;n++){let[r,a]=yc[n],o=typeof a==`function`?e=>{st(e)||(ot(e),(t.isEditable()||r===`click`)&&a(e,t))}:e=>{if(st(e))return;ot(e);let n=t.isEditable();switch(r){case`cut`:return n&&I(t,lc,e);case`copy`:return I(t,cc,e);case`paste`:return n&&I(t,Ns,e);case`dragstart`:return n&&I(t,ac,e);case`dragover`:return n&&I(t,oc,e);case`dragend`:return n&&I(t,sc,e);case`focus`:return n&&I(t,hc,e);case`blur`:return n&&I(t,gc,e);case`drop`:return n&&I(t,rc,e)}};i.push(Be(e,r,o))}}(e,this),n!=null&&e.classList.add(...n)}else this._window=null,this._updateTags.add(Oc),zn(this);Bn(`root`,this,!1,e,t)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,n){e.isEmpty()&&t(38);let r=e;r._readOnly&&(r=Jn(e),r._selection=e._selection?e._selection.clone():null),h(this);let i=this._pendingEditorState,a=n===void 0?null:n.tag;i===null||i.isEmpty()||(a!=null&&this._updateTags.add(a),zn(this)),this._pendingEditorState=r,this._dirtyType=2,this._dirtyElements.set(`root`,!1),this._compositionKey=null,this._slotsUsed=this._slotsUsed||e._slotsUsed,Gn(this,()=>{if(a&&this._updateTags.add(a),e._parsed)for(let[e,t]of r._nodeMap.entries())k(t)?this._dirtyElements.set(e,!0):this._dirtyLeaves.add(e)},{discrete:!this._updating||void 0})}parseEditorState(e,t){return function(e,t,n){let r=Yn(),i=Z,a=$,o=Q,s=t._dirtyElements,c=t._dirtyLeaves,l=t._cloneNotNeeded,u=t._dirtyType;t._dirtyElements=new Map,t._dirtyLeaves=new Set,t._cloneNotNeeded=new Set,t._dirtyType=0,Z=r,$=!1,Q=t,pr(null);try{let i=t._nodes;Ln(e.root,i),n&&n(),r._readOnly=!0,r._parsed=!0}catch(e){e instanceof Error&&t._onError(e)}finally{t._dirtyElements=s,t._dirtyLeaves=c,t._cloneNotNeeded=l,t._dirtyType=u,Z=i,$=a,Q=o}return r}(typeof e==`string`?JSON.parse(e):e,this,t)}read(...e){let[t,n]=e.length===1?[`force-commit`,e[0]]:e;return t===`force-commit`&&zn(this),(t===`pending`?this._pendingEditorState||this._editorState:this.getEditorState()).read(n,{editor:this})}update(e,t){(function(e,t,n){e._updating?e._updates.push([t,n]):Wn(e,t,n)})(this,e,t)}focus(e,t={}){let n=this._rootElement;n!==null&&(n.setAttribute(`autocapitalize`,`off`),Gn(this,()=>{let r=E(),i=Rr();r===null?i.getChildrenSize()!==0&&(t.defaultSelection===`rootStart`?i.selectStart():i.selectEnd()):r.dirty||P(r.clone()),oi(`focus`),si(()=>{n.removeAttribute(`autocapitalize`),e&&e()})}),this._pendingEditorState===null&&n.removeAttribute(`autocapitalize`))}blur(){let e=this._rootElement;e!==null&&e.blur();let t=bi(this._window);t!==null&&t.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,Bn(`editable`,this,!0,e),this._slotsUsed&&this.update(()=>An()))}toJSON(){return{editorState:this._editorState.toJSON()}}},rl.version=Xo,il=null,al=Symbol(`INTERNAL_SKIP_AFTER_CLONE_FROM`),ol=1,sl=typeof queueMicrotask==`function`?queueMicrotask:e=>{Promise.resolve().then(e)},cl={ctrlKey:!vo,metaKey:vo},ll={altKey:vo,ctrlKey:!vo},ul=[],dl=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|mark|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/i,fl=/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/i,pl=new WeakMap,ml=new Map,hl=new WeakMap,gl=Symbol(`lexical.synthesizedGetType`),_l=(e,t)=>{let n=e;for(;n!=null&&!j(n);){if(t(n))return n;n=n.getParent()}return null},vl=new Map,yl=[`__proto__`,`constructor`,`prototype`],bl=Symbol(`slotMapOwner`),xl=new WeakMap,Sl=[],Cl={next:`previous`,previous:`next`},wl=class{origin;constructor(e){this.origin=e}[Symbol.iterator](){return La({hasNext:Ea,initial:this.getAdjacentCaret(),map:e=>e,step:e=>e.getAdjacentCaret()})}getAdjacentCaret(){return H(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return H(this.origin,this.direction)}remove(){let e=this.getNodeAtCaret();return e&&e.remove(),this}replaceOrInsert(e,t){let n=this.getNodeAtCaret();return e.is(this.origin)||e.is(n)||(n===null?this.insert(e):n.replace(e,t)),this}splice(e,n,r=`next`){let i=r===this.direction?n:Array.from(n).reverse(),a=this,o=this.getParentAtCaret(),s=new Map;for(let t=a.getAdjacentCaret();t!==null&&s.size<e;t=t.getAdjacentCaret()){let e=t.origin.getWritable();s.set(e.getKey(),e)}for(let e of i){if(s.size>0){let n=a.getNodeAtCaret();if(n){if(s.delete(n.getKey()),s.delete(e.getKey()),!(n.is(e)||a.origin.is(e))){let t=e.getParent();t&&t.is(o)&&e.remove(),n.replace(e)}}else n===null&&t(263,Array.from(s).join(` `))}else a.insert(e);a=H(e,this.direction)}for(let e of s.values())e.remove();return this}},Tl=class e extends wl{type=`child`;getLatest(){let e=this.origin.getLatest();return e===this.origin?this:ja(e,this.direction)}getParentCaret(e=`root`){return H(wa(this.getParentAtCaret(),e),this.direction)}getFlipped(){let e=Ca(this.direction);return H(this.getNodeAtCaret(),e)||ja(this.origin,e)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(t){return t instanceof e&&this.direction===t.direction&&this.origin.is(t.origin)}isSamePointCaret(e){return this.isSameNodeCaret(e)}},El={root:j,shadowRoot:L},Dl=class e extends wl{type=`sibling`;getLatest(){let e=this.origin.getLatest();return e===this.origin?this:H(e,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return k(this.origin)?ja(this.origin,this.direction):null}getParentCaret(e=`root`){return H(wa(this.getParentAtCaret(),e),this.direction)}getFlipped(){let e=Ca(this.direction);return H(this.getNodeAtCaret(),e)||ja(this.origin.getParentOrThrow(),e)}isSamePointCaret(t){return t instanceof e&&this.direction===t.direction&&this.origin.is(t.origin)}isSameNodeCaret(t){return(t instanceof e||t instanceof Ol)&&this.direction===t.direction&&this.origin.is(t.origin)}},Ol=class e extends wl{type=`text`;offset;constructor(e,t){super(e),this.offset=t}getLatest(){let e=this.origin.getLatest();return e===this.origin?this:Oa(e,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(e=`root`){return H(wa(this.getParentAtCaret(),e),this.direction)}getFlipped(){return Oa(this.origin,Ca(this.direction),this.offset)}isSamePointCaret(t){return t instanceof e&&this.direction===t.direction&&this.origin.is(t.origin)&&this.offset===t.offset}isSameNodeCaret(t){return(t instanceof Dl||t instanceof e)&&this.direction===t.direction&&this.origin.is(t.origin)}getSiblingCaret(){return H(this.origin,this.direction)}},kl={next:class extends Ol{direction=`next`;getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends Ol{direction=`previous`;getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},Al={next:class extends Dl{direction=`next`;getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends Dl{direction=`previous`;getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},jl={next:class extends Tl{direction=`next`;getNodeAtCaret(){return this.origin.getFirstChild()}insert(e){return this.origin.splice(0,0,[e]),this}},previous:class extends Tl{direction=`previous`;getNodeAtCaret(){return this.origin.getLastChild()}insert(e){return this.origin.splice(this.origin.getChildrenSize(),0,[e]),this}}},Ml=class e{type=`node-caret-range`;direction;anchor;focus;constructor(e,t,n){this.anchor=e,this.focus=t,this.direction=n}getLatest(){let t=this.anchor.getLatest(),n=this.focus.getLatest();return t===this.anchor&&n===this.focus?this:new e(t,n,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){let e=e=>{let t=this[e].getLatest();return Ta(t)?function(e,t){let{direction:n,origin:r}=e;return Aa(e,ka(r,t===`focus`?Ca(n):n)-e.offset)}(t,e):null},t=e(`anchor`),n=e(`focus`);if(t&&n){let{caret:e}=t,{caret:r}=n;if(e.isSameNodeCaret(r))return[Aa(e,r.offset-e.offset),null]}return[t,n]}iterNodeCarets(e=`root`){let t=Ta(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),n=this.focus.getLatest(),r=Ta(n),i=t=>t.isSameNodeCaret(n)?null:Na(t)||t.getParentCaret(e);return La({hasNext:e=>e!==null&&!(r&&n.isSameNodeCaret(e)),initial:t.isSameNodeCaret(n)?null:i(t),map:e=>e,step:i})}[Symbol.iterator](){return this.iterNodeCarets(`root`)}},Nl=class{type=`slice`;caret;distance;constructor(e,t){this.caret=e,this.distance=t}getSliceIndices(){let{distance:e,caret:{offset:t}}=this,n=t+e;return n<t?[n,t]:[t,n]}getTextContent(){let[e,t]=this.getSliceIndices();return this.caret.origin.getTextContent().slice(e,t)}getTextContentSize(){return Math.abs(this.distance)}removeTextSlice(){let{caret:{origin:e,direction:t}}=this,[n,r]=this.getSliceIndices(),i=e.getTextContent();return Oa(e.setTextContent(i.slice(0,n)+i.slice(r)),t,n)}}})))()}export{k as $,co as $n,kn as $t,Ss as A,P as An,Fr as At,Sr as B,qa as Bn,Ni as Bt,tr as C,go as Cn,Is as Ct,vi as D,or as Dn,tl as Dt,js as E,Us as En,Bs as Et,bi as F,Fs as Fn,Ys as Ft,Ea as G,Ua as Gn,to as Gt,Xi as H,ma as Hn,Eo as Ht,_n as I,$n as In,Qa as It,Mc as J,T as Jn,ar as Jt,pt as K,Xs as Kn,Hs as Kt,ws as L,Si as Ln,dc as Lt,Fa as M,Li as Mn,tc as Mt,Ns as N,nc as Nn,Ht as Nt,H as O,Ga as On,R as Ot,el as P,_l as Pn,Co as Pt,C as Q,cc as Qn,z as Qt,A as R,yn as Rn,jc as Rt,Ls as S,oo as Sn,Ra as St,kt as T,Rr as Tn,N as Tt,Cs as U,Ks as Un,Qs as Ut,Oa as V,bo as Vn,Js as Vt,Xc as W,jt as Wn,zt as Wt,gr as X,Bi as Xn,Fi as Xt,po as Y,$a as Yn,Wa as Yt,Ji as Z,In as Zn,Zs as Zt,qi as _,qs as _n,ln as _r,Ic as _t,_r as a,Pl as an,Zr as ar,B as at,ht as b,Dc as bn,wi as bt,L as c,Ms as cn,v as cr,lc as ct,oc as d,Ca as dn,Ec as dr,Zn as dt,ec as en,Ta as er,sn as et,kc as f,uc as fn,Wt as fr,Ia as ft,mo as g,Mi as gn,pi as gr,hi as gt,Nc as h,xo as hn,Zc as hr,vn as ht,rn as i,pa as in,ho as ir,mi as it,ce as j,Ws as jn,Ii as jt,Yi as k,da as kn,zc as kt,wr as l,$c as ln,so as lr,lo as lt,pc as m,uo as mn,ao as mr,Ps as mt,Dr as n,$s as nn,mc as nr,zs as nt,ja as o,Ja as on,ac as or,y as ot,vr as p,Ac as pn,ur as pr,ia as pt,fc as q,ut as qn,Mt as qt,Da as r,no as rn,Pc as rr,Ti as rt,j as s,Pa as sn,Oc as sr,Vi as st,ks as t,Vt as tn,ii as tr,br as tt,zi as u,gn as un,rc as ur,As as ut,Yc as v,Ri as vn,Cr as vr,Rs as vt,Ci as w,Oi as wn,er as wt,on as x,_ as xn,w as xt,ci as y,ic as yn,nr as yt,E as z,Gs as zn,fo as zt};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-DkW27tQK.js";import{n as t}from"./iframe-
|
|
1
|
+
import{n as e}from"./rolldown-runtime-DkW27tQK.js";import{n as t}from"./iframe-BwMqUCxF.js";import{i as n,r}from"./react-Bl2r1tuC.js";import{a as i,d as a,f as o,l as s,m as c,n as l,p as u,r as d,u as f}from"./blocks-DvVybOVR.js";import{a as p,i as m,n as h,o as g,r as _,s as v,t as y}from"./Listbox.stories-DFPgEF8r.js";function b(e){let t={code:`code`,h2:`h2`,h3:`h3`,li:`li`,p:`p`,pre:`pre`,ul:`ul`,...n(),...e.components};return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(s,{of:_,parameters:{docs:{toc:!0}}}),`
|
|
2
2
|
`,(0,S.jsx)(u,{children:`Listbox`}),`
|
|
3
3
|
`,(0,S.jsx)(o,{children:`Список выбора для single- и multi-select сценариев, кастомного рендера элементов и блокированного состояния`}),`
|
|
4
4
|
`,(0,S.jsx)(t.p,{children:`Listbox уже имеет живые stories, а эта страница собирает их в структурированную документацию с краткими рекомендациями, примерами подключения и API.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-DkW27tQK.js";import{t}from"./react-BZJXY1be.js";import{n,t as r}from"./check-
|
|
1
|
+
import{n as e}from"./rolldown-runtime-DkW27tQK.js";import{t}from"./react-BZJXY1be.js";import{n,t as r}from"./check-YfnFIyMh.js";import{n as i}from"./iframe-BwMqUCxF.js";import{c as a,i as o,n as s,r as c,t as l}from"./utils-DiA8FLax.js";import{n as u,t as d}from"./OptionContent-C2VjIa7E.js";import{n as f,t as p}from"./PickerField-BeafhNsw.js";import{i as m,n as h,r as g,t as _}from"./Option-DkhmepGt.js";import{n as v,t as y}from"./OptionContentContainer-D9gbmo8X.js";function b(e,t,n){if(n){if(Array.isArray(t)&&t.length>0){let n=e.findIndex(e=>t.includes(e.value)&&!e.disabled);if(n>=0)return n}return c(e,w)}if(t!==void 0){let n=e.findIndex(e=>e.value===t&&!e.disabled);if(n>=0)return n}return c(e,w)}function x(e){let{value:t,defaultValue:n,multiple:i,label:o,description:u,disabled:f,size:m,focusOnMount:h,renderItem:v,getKey:x,options:T,onChange:E,id:D,...O}=e,k=t!==void 0,[A,j]=(0,S.useState)(n),M=(0,S.useRef)(null),[N,P]=(0,S.useState)(()=>b(T,t??n,i)),F=(0,S.useRef)(!1),I=(0,S.useMemo)(()=>(k?t:A)??(i?[]:null),[A,k,i,t]),L=N,R=e=>{if(!(f||e.disabled)){if(i){let t=Array.isArray(I)?I:[],n=t.includes(e.value)?t.filter(t=>t!==e.value):[...t,e.value];E?.(n,e),k||j(n);return}E?.(e.value,e),k||j(e.value)}},z=e=>{if(!f){if(e.key===`ArrowDown`)e.preventDefault(),F.current=!0,P(e=>l(T,e,1,w));else if(e.key===`ArrowUp`)e.preventDefault(),F.current=!0,P(e=>l(T,e,-1,w));else if(e.key===`Home`)e.preventDefault(),F.current=!0,P(c(T,w));else if(e.key===`End`)e.preventDefault(),F.current=!0,P(a(T,w));else if(s(e,()=>{let e=T[L];e&&R(e)}))return}};return(0,S.useEffect)(()=>{if(!F.current)return;F.current=!1;let e=M.current?.querySelectorAll(`[role="option"]`)[L];e&&e.scrollIntoView({block:`nearest`})},[L]),(0,S.useLayoutEffect)(()=>{h&&M.current?.focus()},[h]),(0,C.jsx)(p,{id:D,label:o,description:u,disabled:f,size:m,children:({controlId:e,labelId:t,describedBy:n})=>(0,C.jsx)(g,{rootRef:M,id:e,role:`listbox`,"aria-multiselectable":i||void 0,"aria-activedescendant":L>=0?`${e}-option-${L}`:void 0,onKeyDown:z,...O,"aria-labelledby":t??O[`aria-labelledby`],"aria-describedby":n??O[`aria-describedby`],"aria-disabled":f||void 0,tabIndex:f?-1:0,className:O.className,children:T.map((t,n)=>{let a=i?Array.isArray(I)&&I.includes(t.value):I===t.value,o=n===L,s=f||t.disabled||void 0;return(0,C.jsx)(_,{id:`${e}-option-${n}`,role:`option`,"aria-selected":a,"aria-disabled":s,disabled:s,active:o,selected:a,onMouseDown:e=>{e.preventDefault(),!s&&(P(n),R(t))},children:v?(0,C.jsx)(y,{children:v(t,a,o)}):(0,C.jsx)(y,{children:(0,C.jsx)(d,{icon:a?(0,C.jsx)(r,{}):(0,C.jsx)(`span`,{}),text:t.label??String(t.value)})})},x?x(t,n):n)})})})}var S,C,w;function T(){return(T=e((()=>{S=t(),o(),n(),h(),u(),v(),f(),m(),C=i(),w=e=>e.disabled===!0,x.__docgenInfo={description:``,methods:[],displayName:`Listbox`}})))()}export{T as n,x as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e,r as t}from"./rolldown-runtime-DkW27tQK.js";import{n}from"./iframe-
|
|
1
|
+
import{n as e,r as t}from"./rolldown-runtime-DkW27tQK.js";import{n}from"./iframe-BwMqUCxF.js";import{n as r,t as i}from"./Listbox-RA3seYue.js";var a=t({CustomRender:()=>p,Disabled:()=>m,MultiSelect:()=>f,SingleSelect:()=>d,Sizes:()=>h,__namedExportsOrder:()=>g,default:()=>u});function o(e){return e.multiple?(0,s.jsx)(i,{...e,multiple:!0}):(0,s.jsx)(i,{...e})}var s,c,l,u,d,f,p,m,h,g;function _(){return(_=e((()=>{r(),s=n(),{useArgs:c}=__STORYBOOK_MODULE_PREVIEW_API__,{fn:l}=__STORYBOOK_MODULE_TEST__,u={title:`UI/Listbox`,component:o,args:{options:[{value:`low`,label:`Низкий`},{value:`medium`,label:`Средний`},{value:`high`,label:`Высокий`},{value:`critical`,label:`Критический`,disabled:!0}],multiple:!1,label:`Приоритет`,description:`Выберите приоритет задачи.`,value:`medium`,onChange:l()},parameters:{atomicCanvas:!0,layout:`padded`},argTypes:{label:{description:`Заголовок поля, оформленный так же, как у Input.`},description:{description:`Описание под заголовком, связанное со списком через ARIA.`},options:{description:`Массив доступных опций списка.`,control:!1},multiple:{description:`Режим множественного выбора.`,control:`boolean`},value:{description:`Текущее выбранное значение (или массив значений).`,control:!1},defaultValue:{description:`Начальное значение для uncontrolled-режима.`,control:!1},disabled:{description:`Блокирует фокусировку, навигацию и изменение выбора.`,control:`boolean`},size:{description:`Ширина Listbox из общего контракта UiBaseProps.`,control:`select`,options:[`xs`,`sm`,`md`,`lg`,`xl`]},onChange:{description:`Вызывается при выборе опции.`,control:!1},focusOnMount:{description:`Автофокус списка при монтировании.`,control:`boolean`},renderItem:{description:`Кастомный рендер строки списка.`,control:!1},getKey:{description:`Функция генерации ключа для опции.`,control:!1}}},d={render:function(e){let[,t]=c(),n=typeof e.value==`string`?e.value:`medium`;return(0,s.jsxs)(`div`,{style:{display:`grid`,gap:12,maxWidth:280},children:[(0,s.jsx)(o,{...e,multiple:!1,value:n,onChange:(n,r)=>{typeof n==`string`&&(e.onChange?.(n,r),t({value:n}))}}),(0,s.jsxs)(`div`,{children:[`Выбрано: `,n]})]})}},f={render:function(e){let[,t]=c(),n=Array.isArray(e.value)?e.value:[`low`,`high`];return(0,s.jsxs)(`div`,{style:{display:`grid`,gap:12,maxWidth:320},children:[(0,s.jsx)(o,{...e,multiple:!0,value:n,onChange:(n,r)=>{Array.isArray(n)&&(e.onChange?.(n,r),t({value:n}))}}),(0,s.jsxs)(`div`,{children:[`Выбрано: `,n.join(`, `)||`пусто`]})]})},args:{multiple:!0}},p={render:function(e){let[,t]=c(),n=typeof e.value==`string`?e.value:`low`;return(0,s.jsx)(o,{...e,value:n,onChange:(n,r)=>{typeof n==`string`&&(e.onChange?.(n,r),t({value:n}))},renderItem:(e,t,n)=>(0,s.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,width:`100%`,opacity:e.disabled?.5:1},children:[(0,s.jsx)(`span`,{children:e.label}),(0,s.jsx)(`span`,{children:t?`Выбрано`:n?`Фокус`:``})]})})}},m={args:{disabled:!0,value:`medium`},render:e=>(0,s.jsx)(o,{...e})},h={args:{label:void 0,description:void 0},render:e=>(0,s.jsx)(`div`,{style:{display:`grid`,gap:12},children:[`xs`,`sm`,`md`,`lg`,`xl`].map(t=>(0,s.jsx)(o,{...e,size:t,label:t},t))})},d.parameters={...d.parameters,docs:{...d.parameters?.docs,source:{originalSource:`{
|
|
2
2
|
render: function Render(args) {
|
|
3
3
|
const [, updateArgs] = useArgs<ComponentProps<typeof StringListbox>>();
|
|
4
4
|
const value = typeof args.value === "string" ? args.value : "medium";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-DkW27tQK.js";import{n as t}from"./iframe-
|
|
1
|
+
import{n as e}from"./rolldown-runtime-DkW27tQK.js";import{n as t}from"./iframe-BwMqUCxF.js";import{a as n,i as r}from"./utils-DiA8FLax.js";import{n as i,t as a}from"./Text-C8ptoppM.js";function o({className:e,minHeight:t,children:r,style:i,...a}){let o=t===void 0?i:{...i,minHeight:t};return(0,s.jsx)(`div`,{...a,className:n(`flexCenter h100`,e),style:o,children:r})}var s;function c(){return(c=e((()=>{r(),s=t(),o.__docgenInfo={description:``,methods:[],displayName:`FlexCenter`,props:{children:{required:!1,tsType:{name:`ReactNode`},description:``},minHeight:{required:!1,tsType:{name:`union`,raw:`string | number`,elements:[{name:`string`},{name:`number`}]},description:``}},composes:[`Omit`]}})))()}var l,u;function d(){return(d=e((()=>{l=`qgIKVo`,u={componentLoader:l}})))()}function f({className:e,children:t,color:r=`muted`,role:i,minHeight:s,uppercase:c=!0,...l}){return(0,p.jsx)(o,{className:n(`paddingMd textCenter`,e),minHeight:s,children:(0,p.jsx)(a,{...l,as:`p`,weight:`bold`,color:r,uppercase:c,role:i,children:t})})}var p;function m(){return(m=e((()=>{r(),c(),i(),p=t(),f.__docgenInfo={description:``,methods:[],displayName:`Message`,props:{color:{defaultValue:{value:`"muted"`,computed:!1},required:!1},uppercase:{defaultValue:{value:`true`,computed:!1},required:!1}}}})))()}function h({className:e,logo:t,text:r}){return(0,g.jsxs)(f,{className:n(u.componentLoader,t?void 0:`skeletonLine`,e),children:[t,r||`Загрузка...`]})}var g;function _(){return(_=e((()=>{r(),d(),m(),g=t(),h.__docgenInfo={description:``,methods:[],displayName:`LoadingMessage`,props:{className:{required:!1,tsType:{name:`string`},description:``},logo:{required:!1,tsType:{name:`ReactNode`},description:`Готовый брендовый знак, которым host-проект при необходимости дополняет сообщение о загрузке.`},text:{required:!1,tsType:{name:`string`},description:``}}}})))()}export{m as i,_ as n,f as r,h as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,n as t}from"./rolldown-runtime-DkW27tQK.js";import{t as n}from"./react-BZJXY1be.js";import{n as r,t as i}from"./x-
|
|
1
|
+
import{a as e,n as t}from"./rolldown-runtime-DkW27tQK.js";import{t as n}from"./react-BZJXY1be.js";import{n as r,t as i}from"./x-CP7phAx6.js";import{n as a}from"./iframe-BwMqUCxF.js";import{t as o}from"./react-dom-BzEl8usk.js";import{a as s,i as c}from"./utils-DiA8FLax.js";import{a as ee,n as te,r as l,t as ne}from"./dom-D9_dPJ4G.js";import{n as u,t as d}from"./FlexContainer-CeCwnfbr.js";import{n as f,t as re}from"./Button-CQU_2OUm.js";import{a as p,c as m,l as h,n as ie,o as g,r as _,s as v,t as y}from"./react-BxTMipfI.js";import{n as b,t as x}from"./GridContainer-tbwtNWmU.js";import{n as S,t as C}from"./Scrollable-D4W1DFQg.js";function ae(){!v.current&&p();let[e]=(0,w.useState)(h.current);return e}var w;function T(){return(T=t((()=>{m(),g(),w=n()})))()}var E,D,O,k,A,j,M,N,P,F,I,L;function R(){return(R=t((()=>{E=`vGPUKV`,D=`WhUkxm`,O=`JDlse5`,k=`FaDKSt`,A=`NDgdMi`,j=`O7gb7P`,M=`RVq8v3`,N=`PCSUAL`,P=`XDCHzq`,F=`t1kl8L`,I=`o3PEEB`,L={modal:E,header:D,headerText:O,headerButton:k,body:A,sm:j,md:M,lg:N,xl:P,xxl:F,inside:I}})))()}var z,B,V;function H(){return(H=t((()=>{z={hidden:{opacity:0,scale:.96,y:12},visible:{opacity:1,scale:1,y:0}},B={duration:.18,ease:[.22,1,.36,1]},V={duration:0}})))()}var U,W,G;function K(){return(K=t((()=>{U=n(),W=(0,U.createContext)({modals:[],openModal:()=>{},closeModal:()=>{},isTopModal:()=>!1}),G=()=>(0,U.useContext)(W)})))()}function q({children:e,className:t}){return(0,Q.jsx)(`div`,{className:s(`surface2 paddingMd borderBottom`,t),children:e})}function J({children:e,className:t,scrollable:n}){return(0,Q.jsx)(`div`,{className:s(`paddingMd h100 overflowHidden`,t),children:n?(0,Q.jsx)(C,{className:`h100`,children:e}):e})}function Y({children:e,className:t}){return(0,Q.jsx)(`div`,{className:s(`surface2 borderTop paddingMd`,t),children:(0,Q.jsx)(d,{gap:`sm`,align:`center`,justify:`end`,children:e})})}function oe({isOpen:e,title:t,size:n=`sm`,height:r,onClose:a,children:o}){let c=(0,X.useId)(),l=(0,X.useId)(),{modals:u,openModal:d,closeModal:f,isTopModal:p}=G(),m=ae(),h=(0,X.useRef)(null),g=(0,X.useRef)(0),v={"--modal-height":r},y=e&&(u.length===0||p(c));(0,X.useEffect)(()=>{e&&(h.current=document.activeElement instanceof HTMLElement?document.activeElement:null)},[e]);let b=ee({active:e||!1,trapFocus:!0,restoreFocus:!1});te({active:y||!1,onDismiss:a,containerRef:b}),(0,X.useEffect)(()=>{e&&d(c)},[e,c,d]),(0,X.useEffect)(()=>()=>{window.cancelAnimationFrame(g.current),f(c)},[f,c]);function S(){f(c);let e=h.current;g.current=window.requestAnimationFrame(()=>{e?.isConnected&&e.focus(),h.current=null})}let C=ne(`modal-root`);if(!C)return null;let w=null,T=null,E=null,D=X.Children.toArray(o);for(let e of D)switch(e.type.displayName){case q.displayName:if(w)throw Error(`Modal: duplicate <Toolbar> found`);w=e;break;case Y.displayName:if(E)throw Error(`Modal: duplicate <Footer> found`);E=e;break;case J.displayName:if(T)throw Error(`Modal: duplicate <Content> found`);T=e}return(0,Z.createPortal)((0,Q.jsx)(_,{onExitComplete:S,children:e?(0,Q.jsxs)(ie.div,{ref:b,className:s(L.modal,L[n]),style:v,role:`dialog`,"aria-modal":`true`,"aria-labelledby":l,"aria-describedby":`${l}-content`,initial:`hidden`,animate:`visible`,exit:`hidden`,variants:z,transition:m?V:B,children:[(0,Q.jsxs)(`div`,{className:s(L.header,w?``:`borderBottom`),children:[(0,Q.jsx)(`h3`,{className:L.headerText,id:l,children:t}),(0,Q.jsx)(re,{icon:(0,Q.jsx)(i,{}),className:L.headerButton,variant:`ghost`,"aria-label":`Закрыть модальное окно`,onClick:a})]}),(0,Q.jsxs)(x,{id:`${l}-content`,templateRows:`${w?`auto`:``} 1fr ${E?`auto`:``}`.trim(),className:L.body,children:[w,T,E]})]}):null}),C)}var X,Z,Q;function $(){return($=t((()=>{X=e(n(),1),l(),c(),r(),y(),Z=o(),f(),u(),b(),S(),R(),H(),K(),Q=a(),q.displayName=`Modal.Toolbar`,J.displayName=`Modal.Content`,Y.displayName=`Modal.Footer`,q.__docgenInfo={description:``,methods:[],displayName:`Modal.Toolbar`,props:{children:{required:!0,tsType:{name:`ReactReactNode`,raw:`React.ReactNode`},description:``},className:{required:!1,tsType:{name:`string`},description:``}}},J.__docgenInfo={description:``,methods:[],displayName:`Modal.Content`,props:{children:{required:!0,tsType:{name:`ReactReactNode`,raw:`React.ReactNode`},description:``},className:{required:!1,tsType:{name:`string`},description:``},scrollable:{required:!1,tsType:{name:`boolean`},description:``}}},Y.__docgenInfo={description:``,methods:[],displayName:`Modal.Footer`,props:{children:{required:!0,tsType:{name:`ReactReactNode`,raw:`React.ReactNode`},description:``},className:{required:!1,tsType:{name:`string`},description:``}}}})))()}export{$ as a,T as c,q as i,J as n,W as o,Y as r,K as s,oe as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-DkW27tQK.js";import{n as t}from"./iframe-
|
|
1
|
+
import{n as e}from"./rolldown-runtime-DkW27tQK.js";import{n as t}from"./iframe-BwMqUCxF.js";import{i as n,r}from"./react-Bl2r1tuC.js";import{a as i,d as a,f as o,l as s,m as c,n as l,p as u,r as d,u as f}from"./blocks-DvVybOVR.js";import{a as p,i as m,n as h,o as g,r as _,s as v,t as y}from"./Modal.stories-CQrrk4EW.js";function b(e){let t={code:`code`,h2:`h2`,h3:`h3`,li:`li`,p:`p`,pre:`pre`,ul:`ul`,...n(),...e.components};return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(s,{of:h,parameters:{docs:{toc:!0}}}),`
|
|
2
2
|
`,(0,S.jsx)(u,{children:`Modal`}),`
|
|
3
3
|
`,(0,S.jsx)(o,{children:`Составная модалка с контентом, toolbar и footer для пользовательских диалоговых сценариев`}),`
|
|
4
4
|
`,(0,S.jsx)(t.p,{children:`Modal уже имеет живые stories, а эта страница собирает их в структурированную документацию с краткими рекомендациями, примерами подключения и API.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e,r as t}from"./rolldown-runtime-DkW27tQK.js";import{t as n}from"./react-BZJXY1be.js";import{n as r}from"./iframe-
|
|
1
|
+
import{n as e,r as t}from"./rolldown-runtime-DkW27tQK.js";import{t as n}from"./react-BZJXY1be.js";import{n as r}from"./iframe-BwMqUCxF.js";import{n as i,t as a}from"./Button-CQU_2OUm.js";import{a as o,i as s,n as c,r as l,t as u}from"./Modal-BQsAioCj.js";import{n as d,t as f}from"./ModalManagerProvider-CoqdrSRD.js";import{l as p,t as m}from"./Input-DFpaY5iR.js";var h=t({Controlled:()=>w,ScrollableContent:()=>E,Sizes:()=>D,StackedModals:()=>O,WithToolbarAndFooter:()=>T,__namedExportsOrder:()=>k,default:()=>C});function g({children:e}){return(0,b.jsx)(`div`,{style:{minHeight:`60dvh`,padding:24,display:`flex`,alignItems:`center`,justifyContent:`center`},children:e})}function _(){let[e,t]=(0,y.useState)(`Алексей`),[n,r]=(0,y.useState)(`Департамент автоматизации бизнеса`);return(0,b.jsxs)(`div`,{style:{display:`grid`,gap:16},children:[(0,b.jsx)(m,{label:`Имя`,value:e,onChange:t,placeholder:`Введите имя`}),(0,b.jsx)(m,{label:`Подразделение`,value:n,onChange:r,placeholder:`Введите подразделение`}),(0,b.jsxs)(`div`,{style:{padding:12,borderRadius:8,background:`var(--surface-1)`,border:`1px solid var(--border-1)`},children:[`Текущие значения: `,e||`не указано`,`, `,n||`не указано`]})]})}function v(){let[e,t]=x();return{args:e,updateArgs:t,close:()=>{e.onClose(),t({isOpen:!1})}}}var y,b,x,S,C,w,T,E,D,O,k;function A(){return(A=e((()=>{y=n(),i(),p(),o(),d(),b=r(),{useArgs:x}=__STORYBOOK_MODULE_PREVIEW_API__,{fn:S}=__STORYBOOK_MODULE_TEST__,C={title:`UI/Modal`,component:u,parameters:{atomicCanvas:!0,layout:`fullscreen`,docs:{description:{component:"Композиционная модалка с `Toolbar`, `Content` и `Footer`, поддержкой focus trap, возврата фокуса, закрытия по `Escape` и менеджером стека через `ModalManagerProvider`."}}},decorators:[e=>(0,b.jsx)(f,{children:(0,b.jsx)(g,{children:e()})})],args:{isOpen:!1,title:`Редактирование профиля`,size:`md`,height:void 0,onClose:S(),children:(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(c,{children:(0,b.jsx)(_,{})}),(0,b.jsxs)(l,{children:[(0,b.jsx)(a,{variant:`transparent`,children:`Отмена`}),(0,b.jsx)(a,{children:`Сохранить`})]})]})},argTypes:{isOpen:{description:`Управляет видимостью модального окна.`,control:`boolean`},title:{description:`Заголовок модального окна.`,control:`text`},size:{description:`Предустановленный размер модального окна.`,control:`inline-radio`,options:[`sm`,`md`,`lg`,`xl`,`xxl`,`inside`]},height:{description:`Явная высота модалки выше мобильного breakpoint. На мобильном модалка всегда занимает весь экран.`,control:`text`},onClose:{description:"Вызывается при закрытии по кнопке, `Escape` или пользовательскому действию.",control:!1},children:{description:"Композиция из `ModalToolbar`, `ModalContent`, `ModalFooter`.",control:!1}}},w={name:`Управляемая модалка`,render:function(){let{args:e,close:t,updateArgs:n}=v();return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(a,{onClick:()=>n({isOpen:!0}),children:`Открыть модалку`}),(0,b.jsxs)(u,{...e,isOpen:e.isOpen,onClose:t,children:[(0,b.jsx)(c,{children:(0,b.jsx)(_,{})}),(0,b.jsxs)(l,{children:[(0,b.jsx)(a,{variant:`transparent`,onClick:t,children:`Отмена`}),(0,b.jsx)(a,{onClick:t,children:`Сохранить`})]})]})]})}},T={name:`Полная композиция`,args:{title:`Редактирование профиля`,height:`min(34rem, 70dvh)`},render:function(){let{args:e,close:t,updateArgs:n}=v();return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(a,{onClick:()=>n({isOpen:!0}),children:`Открыть сценарий редактирования`}),(0,b.jsxs)(u,{...e,isOpen:e.isOpen,onClose:t,children:[(0,b.jsx)(s,{children:(0,b.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:12,padding:12,borderRadius:8,background:`var(--surface-1)`,border:`1px solid var(--border-1)`},children:[(0,b.jsxs)(`div`,{children:[(0,b.jsx)(`div`,{style:{fontWeight:600},children:`Черновик обновлён автоматически`}),(0,b.jsx)(`div`,{style:{opacity:.72},children:`Последнее сохранение: 2 минуты назад`})]}),(0,b.jsx)(a,{variant:`transparent`,children:`Сбросить`})]})}),(0,b.jsx)(c,{children:(0,b.jsx)(_,{})}),(0,b.jsxs)(l,{children:[(0,b.jsx)(a,{variant:`transparent`,onClick:t,children:`Отмена`}),(0,b.jsx)(a,{variant:`success`,onClick:t,children:`Применить`})]})]})]})}},E={name:`Длинный контент`,args:{size:`lg`,title:`Журнал изменений`},render:function(){let{args:e,close:t,updateArgs:n}=v();return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(a,{onClick:()=>n({isOpen:!0}),children:`Открыть длинный контент`}),(0,b.jsxs)(u,{...e,isOpen:e.isOpen,onClose:t,children:[(0,b.jsx)(c,{scrollable:!0,children:(0,b.jsx)(`div`,{style:{display:`grid`,gap:12},children:Array.from({length:18},(e,t)=>(0,b.jsxs)(`div`,{style:{padding:12,borderRadius:8,border:`1px solid var(--border-1)`,background:`var(--surface-1)`},children:[(0,b.jsxs)(`div`,{style:{fontWeight:600},children:[`Событие #`,t+1]}),(0,b.jsx)(`div`,{style:{opacity:.72},children:`Пользователь обновил настройки карточки, изменил состав полей и подтвердил сохранение конфигурации.`})]},t))})}),(0,b.jsx)(l,{children:(0,b.jsx)(a,{onClick:t,children:`Закрыть`})})]})]})}},D={name:`Размеры`,args:{size:`sm`,title:`Размер SM`},render:function(){let{args:e,close:t,updateArgs:n}=v();return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(`div`,{style:{display:`flex`,flexWrap:`wrap`,gap:12,justifyContent:`center`},children:[`sm`,`md`,`lg`,`xl`,`xxl`,`inside`].map(e=>(0,b.jsx)(a,{variant:`transparent`,onClick:()=>n({isOpen:!0,size:e,title:`Размер ${e.toUpperCase()}`}),children:e.toUpperCase()},e))}),(0,b.jsxs)(u,{...e,isOpen:e.isOpen,onClose:t,children:[(0,b.jsx)(c,{children:(0,b.jsxs)(`div`,{style:{display:`grid`,gap:12},children:[(0,b.jsx)(`div`,{children:`Этот сценарий помогает быстро сравнить ширину и поведение модалки для разных размеров.`}),(0,b.jsx)(`div`,{style:{opacity:.72},children:"Проверьте отступы, читабельность и поведение при `Escape`."})]})}),(0,b.jsx)(l,{children:(0,b.jsx)(a,{onClick:t,children:`Понятно`})})]})]})}},O={name:`Стек модалок`,args:{size:`lg`,title:`Первая модалка`},render:function(){let{args:e,updateArgs:t}=v(),[n,r]=(0,y.useState)(!1),i=()=>{r(!1),e.onClose(),t({isOpen:!1})};return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(a,{onClick:()=>t({isOpen:!0}),children:`Открыть первую модалку`}),(0,b.jsxs)(u,{...e,isOpen:e.isOpen,onClose:i,children:[(0,b.jsx)(c,{children:(0,b.jsxs)(`div`,{style:{display:`grid`,gap:16},children:[(0,b.jsx)(`div`,{children:"Откройте вторую модалку и проверьте, что `Escape` закрывает только верхний слой."}),(0,b.jsx)(a,{variant:`transparent`,onClick:()=>r(!0),children:`Открыть вторую модалку`})]})}),(0,b.jsx)(l,{children:(0,b.jsx)(a,{variant:`transparent`,onClick:i,children:`Закрыть первую`})})]}),(0,b.jsxs)(u,{isOpen:n,onClose:()=>r(!1),size:`sm`,title:`Вторая модалка`,children:[(0,b.jsx)(c,{children:(0,b.jsxs)(`div`,{style:{display:`grid`,gap:12},children:[(0,b.jsx)(`div`,{children:`Эта модалка должна считаться верхней в стеке.`}),(0,b.jsx)(m,{label:`Короткое поле`,value:`Фокус внутри`,onChange:()=>{}})]})}),(0,b.jsx)(l,{children:(0,b.jsx)(a,{onClick:()=>r(!1),children:`Закрыть вторую`})})]})]})}},w.parameters={...w.parameters,docs:{...w.parameters?.docs,source:{originalSource:`{
|
|
2
2
|
name: "Управляемая модалка",
|
|
3
3
|
render: function Render() {
|
|
4
4
|
const {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,n as t}from"./rolldown-runtime-DkW27tQK.js";import{t as n}from"./react-BZJXY1be.js";import{n as r}from"./iframe-
|
|
1
|
+
import{a as e,n as t}from"./rolldown-runtime-DkW27tQK.js";import{t as n}from"./react-BZJXY1be.js";import{n as r}from"./iframe-BwMqUCxF.js";import{o as i,s as a}from"./Modal-BQsAioCj.js";function o({children:e,compensateScrollbar:t=!1}){let[n,r]=(0,s.useState)([]),a=(0,s.useRef)(0),o=(0,s.useRef)(0),l=(0,s.useRef)(``),u=(0,s.useRef)(!1),d=(0,s.useCallback)(e=>{r(t=>[...t,e])},[]),f=(0,s.useCallback)(e=>{r(t=>t.filter(t=>t!==e))},[]),p=(0,s.useCallback)(e=>n[n.length-1]===e,[n]);return(0,s.useEffect)(()=>{let e=a.current===0;if(e&&n.length>0){let e=window.scrollY,r=document.querySelector(`#app-root`);o.current=Math.max(0,window.innerWidth-document.documentElement.clientWidth),l.current=document.body.style.paddingRight,document.body.style.position=`fixed`,document.body.style.top=`-${e}px`,document.body.style.width=`100%`,t&&(document.body.style.paddingRight=`${o.current}px`,u.current=!0),r?.setAttribute(`inert`,`true`),a.current=n.length;return}if(!e&&n.length>0&&t!==u.current&&(document.body.style.paddingRight=t?`${o.current}px`:l.current,u.current=t),!e&&n.length===0){let e=document.querySelector(`#app-root`),t=parseInt(document.body.style.top||`0`)*-1;document.body.style.position=``,document.body.style.top=``,document.body.style.width=``,u.current&&=(document.body.style.paddingRight=l.current,!1),e?.removeAttribute(`inert`),window.scrollTo({top:t,left:0,behavior:`instant`})}a.current=n.length},[t,n.length]),(0,c.jsx)(i.Provider,{value:{modals:n,openModal:d,closeModal:f,isTopModal:p},children:e})}var s,c;function l(){return(l=t((()=>{s=e(n(),1),a(),c=r(),o.__docgenInfo={description:`Провайдер для централизованного управления стеком модальных окон. Дает вложенным компонентам доступ к открытию и закрытию модалок через контекст.`,methods:[],displayName:`ModalManagerProvider`,props:{children:{required:!0,tsType:{name:`ReactReactNode`,raw:`React.ReactNode`},description:``},compensateScrollbar:{required:!1,tsType:{name:`boolean`},description:`Компенсирует исчезновение скроллбара правым padding у body.`,defaultValue:{value:`false`,computed:!1}}}}})))()}export{l as n,o as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-DkW27tQK.js";import{n as t}from"./iframe-
|
|
1
|
+
import{n as e}from"./rolldown-runtime-DkW27tQK.js";import{n as t}from"./iframe-BwMqUCxF.js";import{n,t as r}from"./MultiSelectCore-Cvyz709z.js";function i(e){return(0,a.jsx)(r,{...e})}var a;function o(){return(o=e((()=>{n(),a=t(),i.__docgenInfo={description:`Множественный выбор для произвольной типизированной коллекции опций.`,methods:[],displayName:`MultiSelect`}})))()}export{o as n,i as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-DkW27tQK.js";import{n as t}from"./iframe-
|
|
1
|
+
import{n as e}from"./rolldown-runtime-DkW27tQK.js";import{n as t}from"./iframe-BwMqUCxF.js";import{i as n,r}from"./react-Bl2r1tuC.js";import{a as i,d as a,f as o,l as s,m as c,n as l,p as u,r as d,u as f}from"./blocks-DvVybOVR.js";import{a as p,i as m,n as h,o as g,r as _,t as v}from"./MultiSelect.stories-DFz-EHdG.js";function y(e){let t={code:`code`,h2:`h2`,h3:`h3`,li:`li`,p:`p`,pre:`pre`,ul:`ul`,...n(),...e.components};return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(s,{of:m,parameters:{docs:{toc:!0}}}),`
|
|
2
2
|
`,(0,x.jsx)(u,{children:`MultiSelect`}),`
|
|
3
3
|
`,(0,x.jsx)(o,{children:`Типобезопасный getter-based мультиселект для произвольных option`}),`
|
|
4
4
|
`,(0,x.jsxs)(t.p,{children:[(0,x.jsx)(t.code,{children:`MultiSelect<TOption>`}),` сохраняет исходный тип option на всём пути от `,(0,x.jsx)(t.code,{children:`options`}),` и `,(0,x.jsx)(t.code,{children:`value`}),` до `,(0,x.jsx)(t.code,{children:`onChange`}),`.
|