@ckeditor/ckeditor5-track-changes 40.1.0 → 41.0.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/CHANGELOG.md +20 -20
- package/LICENSE.md +1 -1
- package/README.md +1 -1
- package/build/track-changes.js +3 -3
- package/build/translations/ar.js +1 -1
- package/build/translations/az.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/lang/translations/ar.po +6 -6
- package/lang/translations/az.po +5 -5
- package/lang/translations/bg.po +6 -6
- package/lang/translations/bn.po +6 -6
- package/lang/translations/ca.po +6 -6
- package/lang/translations/cs.po +6 -6
- package/lang/translations/da.po +6 -6
- package/lang/translations/de.po +6 -6
- package/lang/translations/el.po +6 -6
- package/lang/translations/en-au.po +6 -6
- package/lang/translations/en.po +6 -6
- package/lang/translations/es.po +7 -7
- package/lang/translations/et.po +6 -6
- package/lang/translations/fi.po +6 -6
- package/lang/translations/fr.po +6 -6
- package/lang/translations/gl.po +37 -37
- package/lang/translations/he.po +6 -6
- package/lang/translations/hi.po +6 -6
- package/lang/translations/hr.po +6 -6
- package/lang/translations/hu.po +6 -6
- package/lang/translations/id.po +6 -6
- package/lang/translations/it.po +6 -6
- package/lang/translations/ja.po +6 -6
- package/lang/translations/ko.po +6 -6
- package/lang/translations/lt.po +6 -6
- package/lang/translations/lv.po +6 -6
- package/lang/translations/ms.po +6 -6
- package/lang/translations/nl.po +6 -6
- package/lang/translations/no.po +6 -6
- package/lang/translations/pl.po +6 -6
- package/lang/translations/pt-br.po +6 -6
- package/lang/translations/pt.po +6 -6
- package/lang/translations/ro.po +6 -6
- package/lang/translations/ru.po +6 -6
- package/lang/translations/sk.po +6 -6
- package/lang/translations/sq.po +5 -5
- package/lang/translations/sr-latn.po +25 -25
- package/lang/translations/sr.po +6 -6
- package/lang/translations/sv.po +6 -6
- package/lang/translations/th.po +6 -6
- package/lang/translations/tk.po +5 -5
- package/lang/translations/tr.po +6 -6
- package/lang/translations/tt.po +5 -5
- package/lang/translations/uk.po +6 -6
- package/lang/translations/ur.po +5 -5
- package/lang/translations/vi.po +6 -6
- package/lang/translations/zh-cn.po +6 -6
- package/lang/translations/zh.po +6 -6
- package/package.json +4 -3
- package/src/augmentation.d.ts +3 -3
- package/src/augmentation.js +1 -1
- package/src/commands/acceptsuggestioncommand.d.ts +3 -3
- package/src/commands/acceptsuggestioncommand.js +2 -2
- package/src/commands/discardsuggestioncommand.d.ts +3 -3
- package/src/commands/discardsuggestioncommand.js +2 -2
- package/src/commands/executeonallsuggestionscommand.d.ts +3 -3
- package/src/commands/executeonallsuggestionscommand.js +2 -2
- package/src/commands/executeonselectedsuggestionscommand.d.ts +3 -3
- package/src/commands/executeonselectedsuggestionscommand.js +2 -2
- package/src/commands/trackchangescommand.d.ts +2 -2
- package/src/commands/trackchangescommand.js +2 -2
- package/src/index.d.ts +13 -13
- package/src/index.js +2 -2
- package/src/integrations/aiassistant.d.ts +2 -2
- package/src/integrations/aiassistant.js +2 -2
- package/src/integrations/alignment.d.ts +2 -2
- package/src/integrations/alignment.js +2 -2
- package/src/integrations/basicstyles.d.ts +2 -2
- package/src/integrations/basicstyles.js +2 -2
- package/src/integrations/blockquote.d.ts +2 -2
- package/src/integrations/blockquote.js +2 -2
- package/src/integrations/casechange.d.ts +17 -0
- package/src/integrations/casechange.js +23 -0
- package/src/integrations/ckbox.d.ts +2 -2
- package/src/integrations/ckbox.js +2 -2
- package/src/integrations/codeblock.d.ts +2 -2
- package/src/integrations/codeblock.js +2 -2
- package/src/integrations/comments.d.ts +2 -2
- package/src/integrations/comments.js +2 -2
- package/src/integrations/deletecommand.d.ts +3 -3
- package/src/integrations/deletecommand.js +2 -2
- package/src/integrations/entercommand.d.ts +3 -3
- package/src/integrations/entercommand.js +2 -2
- package/src/integrations/findandreplace.d.ts +2 -2
- package/src/integrations/findandreplace.js +2 -2
- package/src/integrations/font.d.ts +2 -2
- package/src/integrations/font.js +2 -2
- package/src/integrations/formatpainter.d.ts +2 -2
- package/src/integrations/formatpainter.js +2 -2
- package/src/integrations/heading.d.ts +2 -2
- package/src/integrations/heading.js +2 -2
- package/src/integrations/highlight.d.ts +2 -2
- package/src/integrations/highlight.js +2 -2
- package/src/integrations/horizontalline.d.ts +2 -2
- package/src/integrations/horizontalline.js +2 -2
- package/src/integrations/htmlembed.d.ts +2 -2
- package/src/integrations/htmlembed.js +2 -2
- package/src/integrations/image.d.ts +2 -2
- package/src/integrations/image.js +2 -2
- package/src/integrations/imagereplace.d.ts +2 -2
- package/src/integrations/imagereplace.js +2 -2
- package/src/integrations/imagestyle.d.ts +2 -2
- package/src/integrations/imagestyle.js +2 -2
- package/src/integrations/importword.d.ts +2 -2
- package/src/integrations/importword.js +2 -2
- package/src/integrations/indent.d.ts +2 -2
- package/src/integrations/indent.js +2 -2
- package/src/integrations/inputcommand.d.ts +3 -3
- package/src/integrations/inputcommand.js +2 -2
- package/src/integrations/legacylist.d.ts +17 -0
- package/src/integrations/legacylist.js +23 -0
- package/src/integrations/{documentlistproperties.d.ts → legacylistproperties.d.ts} +7 -7
- package/src/integrations/legacylistproperties.js +23 -0
- package/src/integrations/link.d.ts +2 -2
- package/src/integrations/link.js +2 -2
- package/src/integrations/list.d.ts +6 -6
- package/src/integrations/list.js +2 -2
- package/src/integrations/listproperties.d.ts +6 -15
- package/src/integrations/listproperties.js +2 -2
- package/src/integrations/mediaembed.d.ts +2 -2
- package/src/integrations/mediaembed.js +2 -2
- package/src/integrations/mention.d.ts +2 -2
- package/src/integrations/mention.js +2 -2
- package/src/integrations/pagebreak.d.ts +2 -2
- package/src/integrations/pagebreak.js +2 -2
- package/src/integrations/paragraph.d.ts +2 -2
- package/src/integrations/paragraph.js +2 -2
- package/src/integrations/removeformat.d.ts +2 -2
- package/src/integrations/removeformat.js +2 -2
- package/src/integrations/restrictededitingmode.d.ts +2 -2
- package/src/integrations/restrictededitingmode.js +2 -2
- package/src/integrations/shiftentercommand.d.ts +3 -3
- package/src/integrations/shiftentercommand.js +2 -2
- package/src/integrations/standardeditingmode.d.ts +2 -2
- package/src/integrations/standardeditingmode.js +2 -2
- package/src/integrations/style.d.ts +2 -2
- package/src/integrations/style.js +2 -2
- package/src/integrations/table.d.ts +2 -2
- package/src/integrations/table.js +2 -2
- package/src/integrations/tablecaption.d.ts +3 -3
- package/src/integrations/tablecaption.js +2 -2
- package/src/integrations/tableclipboard.d.ts +3 -3
- package/src/integrations/tableclipboard.js +2 -2
- package/src/integrations/tablecolumnresize.d.ts +5 -5
- package/src/integrations/tablecolumnresize.js +2 -2
- package/src/integrations/tableheadings.d.ts +3 -3
- package/src/integrations/tableheadings.js +2 -2
- package/src/integrations/tablemergesplit.d.ts +3 -3
- package/src/integrations/tablemergesplit.js +2 -2
- package/src/integrations/tableofcontents.d.ts +2 -2
- package/src/integrations/tableofcontents.js +2 -2
- package/src/integrations/tableproperties.d.ts +5 -5
- package/src/integrations/tableproperties.js +2 -2
- package/src/integrations/template.d.ts +2 -2
- package/src/integrations/template.js +2 -2
- package/src/integrations/title.d.ts +2 -2
- package/src/integrations/title.js +2 -2
- package/src/integrations/undo.d.ts +2 -2
- package/src/integrations/undo.js +2 -2
- package/src/integrations/utils.d.ts +4 -4
- package/src/integrations/utils.js +2 -2
- package/src/suggestion.d.ts +6 -6
- package/src/suggestion.js +2 -2
- package/src/suggestiondescriptionfactory.d.ts +4 -4
- package/src/suggestiondescriptionfactory.js +2 -2
- package/src/trackchanges.d.ts +6 -6
- package/src/trackchanges.js +2 -2
- package/src/trackchangesconfig.d.ts +2 -2
- package/src/trackchangesconfig.js +1 -1
- package/src/trackchangesdata.d.ts +3 -3
- package/src/trackchangesdata.js +2 -2
- package/src/trackchangesediting.d.ts +56 -55
- package/src/trackchangesediting.js +2 -2
- package/src/trackchangesui.d.ts +4 -4
- package/src/trackchangesui.js +2 -2
- package/src/ui/suggestioncontroller.d.ts +6 -6
- package/src/ui/suggestioncontroller.js +2 -2
- package/src/ui/view/basesuggestionthreadview.d.ts +7 -7
- package/src/ui/view/basesuggestionthreadview.js +2 -2
- package/src/ui/view/suggestionthreadview.d.ts +6 -6
- package/src/ui/view/suggestionthreadview.js +2 -2
- package/src/utils/common-translations.d.ts +2 -2
- package/src/utils/common-translations.js +2 -2
- package/src/utils/utils.d.ts +5 -5
- package/src/utils/utils.js +2 -2
- package/theme/icons/track-changes-accept.svg +1 -1
- package/theme/icons/track-changes-discard.svg +1 -1
- package/theme/icons/track-changes.svg +1 -1
- package/src/integrations/documentlist.d.ts +0 -17
- package/src/integrations/documentlist.js +0 -23
- package/src/integrations/documentlistproperties.js +0 -23
package/build/track-changes.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
!function(t){const e=t.en=t.en||{};e.dictionary=Object.assign(e.dictionary||{},{"*Change %0 content*":"*Change %0 content*","*Change to:* %0":"*Change to:* %0","*Check item*":"*Check item*","*Format:* %0":"*Format:* %0","*Format:* change table cell properties":"*Format:* change table cell properties","*Format:* change table properties":"*Format:* change table properties","*Format:* insert into %0":"*Format:* insert into %0","*Format:* remove from %0":"*Format:* remove from %0","*Format:* resize table":"*Format:* resize table","*Format:* set order to regular":"*Format:* set order to regular","*Format:* set order to reversed":"*Format:* set order to reversed","*Format:* set start index to %0":"*Format:* set start index to %0","*Indent:* %0":"*Indent:* %0","*Insert:* %0":"*Insert:* %0","*Merge cells*":"*Merge cells*","*Merge:* %0":"*Merge:* %0","*Outdent:* %0":"*Outdent:* %0","*Remove all formatting*":"*Remove all formatting*","*Remove format:* %0":"*Remove format:* %0","*Remove highlight*":"*Remove highlight*","*Remove image text alternative*":"*Remove image text alternative*","*Remove link*":"*Remove link*","*Remove:* %0":"*Remove:* %0","*Replace table cells*":"*Replace table cells*","*Reset font background color*":"*Reset font background color*","*Reset font color*":"*Reset font color*","*Reset font family*":"*Reset font family*","*Reset font size*":"*Reset font size*","*Reset image width*":"*Reset image width*","*Set font background color:* %0":"*Set font background color:* %0","*Set font color:* %0":"*Set font color:* %0","*Set font family:* %0":"*Set font family:* %0","*Set font size:* %0":"*Set font size:* %0","*Set format to:* %0":"*Set format to:* %0","*Set format:* %0":"*Set format:* %0","*Set highlight:* %0":"*Set highlight:* %0","*Set image text alternative:* %0":"*Set image text alternative:* %0","*Set image width:* %0":"*Set image width:* %0","*Set link:* %0":"*Set link:* %0","*Split cell:* horizontally":"*Split cell:* horizontally","*Split cell:* vertically":"*Split cell:* vertically","*Split:* %0":"*Split:* %0","*Uncheck item*":"*Uncheck item*","Accept all selected suggestions":"Accept all selected suggestions","Accept all suggestions":"Accept all suggestions","Accept suggestion":"Accept suggestion","Discard all selected suggestions":"Discard all selected suggestions","Discard all suggestions":"Discard all suggestions","Discard suggestion":"Discard suggestion",ELEMENT_BLOCK_QUOTE:"block quote",ELEMENT_BULLETED_LIST:"bulleted list",ELEMENT_BULLETED_LIST_CIRCLE:"bulleted list (circle)",ELEMENT_BULLETED_LIST_DEFAULT:"bulleted list (default)",ELEMENT_BULLETED_LIST_DISC:"bulleted list (disc)",ELEMENT_BULLETED_LIST_SQUARE:"bulleted list (square)",ELEMENT_CAPTION:"caption",ELEMENT_CODE_BLOCK:["code block","%0 code blocks"],ELEMENT_HEADING:["heading (level %1)","%0 headings (level %1)"],ELEMENT_HEADING_CUSTOM:["heading (%1)","%0 headings (%1)"],ELEMENT_HORIZONTAL_LINE:["horizontal line","%0 horizontal lines"],ELEMENT_HTML_EMBED:["HTML embed","%0 HTML embeds"],ELEMENT_IMAGE:["image","%0 images"],ELEMENT_INLINE_IMAGE:["image","%0 images"],ELEMENT_LINE_BREAK:["line break","%0 line breaks"],ELEMENT_LIST_ITEM:["list item","%0 list items"],ELEMENT_MEDIA:["media item","%0 media items"],ELEMENT_NUMBERED_LIST:"numbered list",ELEMENT_NUMBERED_LIST_DECIMAL:"numbered list (decimal)",ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO:"numbered list (decimal with leading zero)",ELEMENT_NUMBERED_LIST_DEFAULT:"numbered list (default)",ELEMENT_NUMBERED_LIST_LOWER_LATIN:"numbered list (lower-latin)",ELEMENT_NUMBERED_LIST_LOWER_ROMAN:"numbered list (lower-roman)",ELEMENT_NUMBERED_LIST_UPPER_LATIN:"numbered list (upper-latin)",ELEMENT_NUMBERED_LIST_UPPER_ROMAN:"numbered list (upper-roman)",ELEMENT_PAGE_BREAK:["page break","%0 page breaks"],ELEMENT_PARAGRAPH:["paragraph","%0 paragraphs"],ELEMENT_SPACE:["space","%0 spaces"],ELEMENT_TABLE:["table","%0 tables"],ELEMENT_TABLE_COLUMN:["table column","%0 table columns"],ELEMENT_TABLE_COLUMN_WITH_TEXT:["table column *with text* %1","%0 table columns *with text* %1"],ELEMENT_TABLE_OF_CONTENTS:["table of contents","%0 tables of contents"],ELEMENT_TABLE_ROW:["table row","%0 table rows"],ELEMENT_TABLE_ROW_WITH_TEXT:["table row *with text* %1","%0 table rows *with text* %1"],ELEMENT_TABLE_WITH_TEXT:"table *with text* %0",ELEMENT_TITLE:"title",ELEMENT_TODO_LIST:"to-do list",ENTER_DELETION_SUGGESTION_ANNOUNCEMENT:"Entering deletion suggestion.",ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT:"Entering formatting suggestion.",ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT:"Entering insertion suggestion.",EXTERNAL_IMPORT_WORD_SUGGESTION:"This suggestion comes from an imported Word file.",EXTERNAL_SUGGESTION:"This suggestion comes from an external source.",FORMAT_ALIGN_TO_CENTER:"align to center",FORMAT_ALIGN_TO_LEFT:"align to left",FORMAT_ALIGN_TO_RIGHT:"align to right",FORMAT_ALIGNMENT:"alignment",FORMAT_BOLD:"bold",FORMAT_CODE:"code",FORMAT_FONT_BACKGROUND:"font background color",FORMAT_FONT_COLOR:"font color",FORMAT_FONT_FAMILY:"font family",FORMAT_FONT_SIZE:"font size",FORMAT_HEADER_COLUMN:"header column",FORMAT_HEADER_ROW:"header row",FORMAT_HIGHLIGHT:"highlight",FORMAT_INDENT:"indent",FORMAT_ITALIC:"italic",FORMAT_JUSTIFY_TEXT:"justify",FORMAT_LIST_REVERSED:"list reversed",FORMAT_LIST_START:"list start",FORMAT_REGULAR_COLUMN:"regular column",FORMAT_REGULAR_ROW:"regular row",FORMAT_RESTRICTED_DISABLED:"*Disable in restricted editing mode*",FORMAT_RESTRICTED_ENABLED:"*Enable in restricted editing mode*",FORMAT_SIDE_IMAGE:"side image",FORMAT_STRIKETHROUGH:"strikethrough",FORMAT_STYLE:"style",FORMAT_SUBSCRIPT:"subscript",FORMAT_SUPERSCRIPT:"superscript",FORMAT_UNDERLINE:"underline",LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT:"Leaving deletion suggestion.",LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT:"Leaving formatting suggestion.",LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT:"Leaving insertion suggestion.",PENDING_ACTION_SUGGESTION:"Unsaved change in suggestion.",REPLACE_TEXT:"*Replace:* %0 *with* %1","Track changes":"Track changes"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),
|
|
1
|
+
!function(t){const e=t.en=t.en||{};e.dictionary=Object.assign(e.dictionary||{},{"*Change %0 content*":"*Change %0 content*","*Change to:* %0":"*Change to:* %0","*Check item*":"*Check item*","*Format:* %0":"*Format:* %0","*Format:* change table cell properties":"*Format:* change table cell properties","*Format:* change table properties":"*Format:* change table properties","*Format:* insert into %0":"*Format:* insert into %0","*Format:* remove from %0":"*Format:* remove from %0","*Format:* resize table":"*Format:* resize table","*Format:* set order to regular":"*Format:* set order to regular","*Format:* set order to reversed":"*Format:* set order to reversed","*Format:* set start index to %0":"*Format:* set start index to %0","*Indent:* %0":"*Indent:* %0","*Insert:* %0":"*Insert:* %0","*Merge cells*":"*Merge cells*","*Merge:* %0":"*Merge:* %0","*Outdent:* %0":"*Outdent:* %0","*Remove all formatting*":"*Remove all formatting*","*Remove format:* %0":"*Remove format:* %0","*Remove highlight*":"*Remove highlight*","*Remove image text alternative*":"*Remove image text alternative*","*Remove link*":"*Remove link*","*Remove:* %0":"*Remove:* %0","*Replace image URL*":"*Replace image URL*","*Replace table cells*":"*Replace table cells*","*Reset font background color*":"*Reset font background color*","*Reset font color*":"*Reset font color*","*Reset font family*":"*Reset font family*","*Reset font size*":"*Reset font size*","*Reset image width*":"*Reset image width*","*Set font background color:* %0":"*Set font background color:* %0","*Set font color:* %0":"*Set font color:* %0","*Set font family:* %0":"*Set font family:* %0","*Set font size:* %0":"*Set font size:* %0","*Set format to:* %0":"*Set format to:* %0","*Set format:* %0":"*Set format:* %0","*Set highlight:* %0":"*Set highlight:* %0","*Set image text alternative:* %0":"*Set image text alternative:* %0","*Set image width:* %0":"*Set image width:* %0","*Set link:* %0":"*Set link:* %0","*Split cell:* horizontally":"*Split cell:* horizontally","*Split cell:* vertically":"*Split cell:* vertically","*Split:* %0":"*Split:* %0","*Uncheck item*":"*Uncheck item*","Accept all selected suggestions":"Accept all selected suggestions","Accept all suggestions":"Accept all suggestions","Accept suggestion":"Accept suggestion","Discard all selected suggestions":"Discard all selected suggestions","Discard all suggestions":"Discard all suggestions","Discard suggestion":"Discard suggestion",ELEMENT_BLOCK_QUOTE:"block quote",ELEMENT_BULLETED_LIST:"bulleted list",ELEMENT_BULLETED_LIST_CIRCLE:"bulleted list (circle)",ELEMENT_BULLETED_LIST_DEFAULT:"bulleted list (default)",ELEMENT_BULLETED_LIST_DISC:"bulleted list (disc)",ELEMENT_BULLETED_LIST_SQUARE:"bulleted list (square)",ELEMENT_CAPTION:"caption",ELEMENT_CODE_BLOCK:["code block","%0 code blocks"],ELEMENT_HEADING:["heading (level %1)","%0 headings (level %1)"],ELEMENT_HEADING_CUSTOM:["heading (%1)","%0 headings (%1)"],ELEMENT_HORIZONTAL_LINE:["horizontal line","%0 horizontal lines"],ELEMENT_HTML_EMBED:["HTML embed","%0 HTML embeds"],ELEMENT_IMAGE:["image","%0 images"],ELEMENT_INLINE_IMAGE:["image","%0 images"],ELEMENT_LINE_BREAK:["line break","%0 line breaks"],ELEMENT_LIST_ITEM:["list item","%0 list items"],ELEMENT_MEDIA:["media item","%0 media items"],ELEMENT_NUMBERED_LIST:"numbered list",ELEMENT_NUMBERED_LIST_DECIMAL:"numbered list (decimal)",ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO:"numbered list (decimal with leading zero)",ELEMENT_NUMBERED_LIST_DEFAULT:"numbered list (default)",ELEMENT_NUMBERED_LIST_LOWER_LATIN:"numbered list (lower-latin)",ELEMENT_NUMBERED_LIST_LOWER_ROMAN:"numbered list (lower-roman)",ELEMENT_NUMBERED_LIST_UPPER_LATIN:"numbered list (upper-latin)",ELEMENT_NUMBERED_LIST_UPPER_ROMAN:"numbered list (upper-roman)",ELEMENT_PAGE_BREAK:["page break","%0 page breaks"],ELEMENT_PARAGRAPH:["paragraph","%0 paragraphs"],ELEMENT_SPACE:["space","%0 spaces"],ELEMENT_TABLE:["table","%0 tables"],ELEMENT_TABLE_COLUMN:["table column","%0 table columns"],ELEMENT_TABLE_COLUMN_WITH_TEXT:["table column *with text* %1","%0 table columns *with text* %1"],ELEMENT_TABLE_OF_CONTENTS:["table of contents","%0 tables of contents"],ELEMENT_TABLE_ROW:["table row","%0 table rows"],ELEMENT_TABLE_ROW_WITH_TEXT:["table row *with text* %1","%0 table rows *with text* %1"],ELEMENT_TABLE_WITH_TEXT:"table *with text* %0",ELEMENT_TITLE:"title",ELEMENT_TODO_LIST:"to-do list",ENTER_DELETION_SUGGESTION_ANNOUNCEMENT:"Entering deletion suggestion.",ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT:"Entering formatting suggestion.",ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT:"Entering insertion suggestion.",EXTERNAL_IMPORT_WORD_SUGGESTION:"This suggestion comes from an imported Word file.",EXTERNAL_SUGGESTION:"This suggestion comes from an external source.",FORMAT_ALIGN_TO_CENTER:"align to center",FORMAT_ALIGN_TO_LEFT:"align to left",FORMAT_ALIGN_TO_RIGHT:"align to right",FORMAT_ALIGNMENT:"alignment",FORMAT_BOLD:"bold",FORMAT_CODE:"code",FORMAT_FONT_BACKGROUND:"font background color",FORMAT_FONT_COLOR:"font color",FORMAT_FONT_FAMILY:"font family",FORMAT_FONT_SIZE:"font size",FORMAT_HEADER_COLUMN:"header column",FORMAT_HEADER_ROW:"header row",FORMAT_HIGHLIGHT:"highlight",FORMAT_IMAGE_SIZE:"image size",FORMAT_INDENT:"indent",FORMAT_ITALIC:"italic",FORMAT_JUSTIFY_TEXT:"justify",FORMAT_LIST_REVERSED:"list reversed",FORMAT_LIST_START:"list start",FORMAT_REGULAR_COLUMN:"regular column",FORMAT_REGULAR_ROW:"regular row",FORMAT_RESTRICTED_DISABLED:"*Disable in restricted editing mode*",FORMAT_RESTRICTED_ENABLED:"*Enable in restricted editing mode*",FORMAT_SIDE_IMAGE:"side image",FORMAT_STRIKETHROUGH:"strikethrough",FORMAT_STYLE:"style",FORMAT_SUBSCRIPT:"subscript",FORMAT_SUPERSCRIPT:"superscript",FORMAT_UNDERLINE:"underline",LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT:"Leaving deletion suggestion.",LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT:"Leaving formatting suggestion.",LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT:"Leaving insertion suggestion.",PENDING_ACTION_SUGGESTION:"Unsaved change in suggestion.",REPLACE_TEXT:"*Replace:* %0 *with* %1","Track changes":"Track changes"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),
|
|
2
2
|
/*!
|
|
3
|
-
* @license Copyright (c) 2003-
|
|
3
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
4
4
|
* For licensing, see LICENSE.md.
|
|
5
|
-
*/(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var i=e[o];if(void 0!==i)return i.exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>Bc,TrackChanges:()=>tl,TrackChangesData:()=>sl,TrackChangesEditing:()=>hc});var t=n(704),e=n(209),i=n(273),r=n(417),s=n(492),x=n(995);const a=["TrackChangesCommand","has","_disableUnsupportedCommands","_enabledCommands","isEnabled","refresh","editor","_isEnabledBasedOnSelection","commands","forceDisabled","execute","value","affectsData","clearForceDisabled"];var c,l;c=a,l=314,function(t){for(;--t;)c.push(c.shift())}(++l);const u=function(t,e){return a[t-=0]};class d extends t.Command{constructor(t,e){super(t),this[u("0xb")]=e,this[u("0x5")]=!1,this[u("0xd")](),this[u("0x1")]=!1}[u("0xd")](){this[u("0xc")]=!0}[u("0x4")](){this.value=!this[u("0x5")],this.value?this[u("0xa")]():this._enableCommands()}[u("0xa")](){for(const t of this[u("0x0")][u("0x2")][u("0x2")]())t.affectsData&&!this[u("0xb")][u("0x9")](t)&&t[u("0x3")](u("0x8"))}_enableCommands(){for(const t of this.editor[u("0x2")][u("0x2")]())t[u("0x6")]&&!this[u("0xb")].has(t)&&t[u("0x7")](u("0x8"))}}const g=["_suggestions","editor","_isEnabledBasedOnSelection","plugins","model","refresh","execute","isEnabled","TrackChangesEditing","get","acceptSuggestion","track-changes-accept-suggestion-not-found"];var f,m;f=g,m=155,function(t){for(;--t;)f.push(f.shift())}(++m);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this[h("0x1")]=e,this[h("0x6")](),this[h("0x3")]=!1}[h("0x6")](){this[h("0x8")]=!0}[h("0x7")](t){const n=this[h("0x1")].get(t);if(!n)throw new e.CKEditorError(h("0x0"),this);const o=n.getRanges();this[h("0x2")][h("0x5")].canEditAt(o)&&this.editor[h("0x4")][h("0xa")](h("0x9"))[h("0xb")](n)}}const b=["track-changes-discard-suggestion-not-found","isEnabled","editor","get","plugins","TrackChangesEditing","refresh","discardSuggestion","getRanges","execute","_suggestions","canEditAt"];var E,_;E=b,_=361,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class y extends t.Command{constructor(t,e){super(t),this[T("0x9")]=e,this.refresh(),this._isEnabledBasedOnSelection=!1}[T("0x5")](){this[T("0x0")]=!0}[T("0x8")](t){const n=this[T("0x9")].get(t);if(!n)throw new e.CKEditorError(T("0xb"),this);const o=n[T("0x7")]();this[T("0x1")].model[T("0xa")](o)&&this[T("0x1")][T("0x3")][T("0x2")](T("0x4"))[T("0x6")](n)}}const C=["isObject","end","isIntersecting","createPositionAfter","deletion","map","change","createPositionAt","isTouching","type"," [color ","length","schema","getRanges","replace","isInContent","isArray","content","createRange","isMultiRange","splice","createPositionBefore","join","color"];var A,k;A=C,k=415,function(t){for(;--t;)A.push(A.shift())}(++k);const I=function(t,e){return C[t-=0]};function S(t){return t.sort(((t,e)=>"deletion"==t[I("0x2")]&&I("0x15")!=e[I("0x2")]?-1:I("0x15")!=t.type&&"deletion"==e[I("0x2")]?1:0))}function v(t,e){let n,o=0;const i=[],r=e[I("0x5")];for(;o<t[I("0x4")];){const s=t[o],x=t[o+1];n||(n=e[I("0xe")](s)),R(e,s,x)||(i.push(e[I("0xb")](n,r[I("0x11")](s)?e[I("0x14")](s):e[I("0x0")](s,I("0x12")))),n=null),o++}return i}function R(t,e,n){if(!n)return!1;const o=t[I("0x14")](e),i=t.createPositionBefore(n);return o[I("0x1")](i)}function N(t,e,n){for(;n[I("0x4")];){const o=n[I("0xd")](0,100);t[I("0x17")]((()=>{for(const t of o)t[I("0x8")]&&e.execute(t.id)}))}}const L=["editor","canEditAt","from","some","isEnabled","_isEnabledBasedOnSelection","execute","getRanges","model","_suggestions","values","_command"];var M,w;M=L,w=495,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return L[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0x8")]=e,this[O("0x6")]=n,this.refresh(),this[O("0x2")]=!1}refresh(){const t=Array.from(this[O("0x6")][O("0x7")]())[O("0x0")]((t=>t.isInContent));this.isEnabled=this[O("0x8")][O("0x1")]&&t}[O("0x3")](){const t=S(Array[O("0xb")](this[O("0x6")].values()));for(const e of t){const t=e[O("0x4")]();if(!this.editor[O("0x5")][O("0xa")](t))return}N(this[O("0x9")].model,this._command,t)}}const D=["canEditAt","selection","values","from","document","model","refresh","editor","_suggestions","_command","isEnabled","_selectedSuggestions","size","_isEnabledBasedOnSelection","getRanges"];var B,P;B=D,P=462,function(t){for(;--t;)B.push(B.shift())}(++P);const U=function(t,e){return D[t-=0]};class j extends t.Command{constructor(t,e,n){super(t),this._command=e,this[U("0xb")]=n,this[U("0xe")]=new Set,this[U("0x9")](),this[U("0x1")]=!1}[U("0x9")](){const t=this[U("0xa")][U("0x8")][U("0x7")][U("0x4")],e=Array[U("0x6")](this._suggestions[U("0x5")]());this[U("0xe")]=function(t,e){const n=Array.from(t[I("0x6")]()),o=new Set;for(const i of e)if(i[I("0x8")])for(const e of n)for(const n of i[I("0x6")]())(e[I("0x13")](n)||t.isCollapsed&&!i[I("0xc")]&&i.next&&n[I("0x12")][I("0x1")](e.start))&&o.add(i);return o}(t,e),this[U("0xd")]=this[U("0xc")][U("0xd")]&&!!this[U("0xe")][U("0x0")]}execute(){const t=S(Array[U("0x6")](this._selectedSuggestions));for(const e of t){const t=e[U("0x2")]();if(!this[U("0xa")][U("0x8")][U("0x3")](t))return}N(this[U("0xa")][U("0x8")],this[U("0xc")],t)}}const G=function(){this.__data__=[],this.size=0};const V=function(t,e){return t===e||t!=t&&e!=e};const H=function(t,e){for(var n=t.length;n--;)if(V(t[n][0],e))return n;return-1};var z=Array.prototype.splice;const W=function(t){var e=this.__data__,n=H(e,t);return!(n<0)&&(n==e.length-1?e.pop():z.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=H(e,t);return n<0?void 0:e[n][1]};const q=function(t){return H(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=H(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=W,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const Z=$;const Q=function(){this.__data__=new Z,this.size=0};const Y=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const J=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const it=ot.Symbol;var rt=Object.prototype,st=rt.hasOwnProperty,xt=rt.toString,at=it?it.toStringTag:void 0;const ct=function(t){var e=st.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var i=xt.call(t);return o&&(e?t[at]=n:delete t[at]),i};var lt=Object.prototype.toString;const ut=function(t){return lt.call(t)};var dt=it?it.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":dt&&dt in Object(t)?ct(t):ut(t)};const ft=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const mt=function(t){if(!ft(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var yt=/^\[object .+?Constructor\]$/,Ct=Function.prototype,At=Object.prototype,kt=Ct.toString,It=At.hasOwnProperty,St=RegExp("^"+kt.call(It).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const vt=function(t){return!(!ft(t)||Et(t))&&(mt(t)?St:yt).test(Tt(t))};const Rt=function(t,e){return null==t?void 0:t[e]};const Nt=function(t,e){var n=Rt(t,e);return vt(n)?n:void 0};const Lt=Nt(ot,"Map");const Mt=Nt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Dt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Bt=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Bt.call(e,t)};const Ut=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mt&&void 0===e?"__lodash_hash_undefined__":e,this};function jt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}jt.prototype.clear=wt,jt.prototype.delete=Ot,jt.prototype.get=Dt,jt.prototype.has=Pt,jt.prototype.set=Ut;const Gt=jt;const Vt=function(){this.size=0,this.__data__={hash:new Gt,map:new(Lt||Z),string:new Gt}};const Ht=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const zt=function(t,e){var n=t.__data__;return Ht(e)?n["string"==typeof e?"string":"hash"]:n.map};const Wt=function(t){var e=zt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return zt(this,t).get(t)};const qt=function(t){return zt(this,t).has(t)};const Xt=function(t,e){var n=zt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Vt,$t.prototype.delete=Wt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Zt=$t;const Qt=function(t,e){var n=this.__data__;if(n instanceof Z){var o=n.__data__;if(!Lt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Zt(o)}return n.set(t,e),this.size=n.size,this};function Yt(t){var e=this.__data__=new Z(t);this.size=e.size}Yt.prototype.clear=Q,Yt.prototype.delete=Y,Yt.prototype.get=J,Yt.prototype.has=tt,Yt.prototype.set=Qt;const Jt=Yt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Nt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const ie=function(t,e,n){var o=t[e];oe.call(t,e)&&V(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var i=!n;n||(n={});for(var r=-1,s=e.length;++r<s;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),i?ne(n,x,a):ie(n,x,a)}return n};const se=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,ue=ce.propertyIsEnumerable;const de=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!ue.call(t,"callee")};const ge=Array.isArray;const fe=function(){return!1};var me="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=me&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===me?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||fe;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var ye={};ye["[object Float32Array]"]=ye["[object Float64Array]"]=ye["[object Int8Array]"]=ye["[object Int16Array]"]=ye["[object Int32Array]"]=ye["[object Uint8Array]"]=ye["[object Uint8ClampedArray]"]=ye["[object Uint16Array]"]=ye["[object Uint32Array]"]=!0,ye["[object Arguments]"]=ye["[object Array]"]=ye["[object ArrayBuffer]"]=ye["[object Boolean]"]=ye["[object DataView]"]=ye["[object Date]"]=ye["[object Error]"]=ye["[object Function]"]=ye["[object Map]"]=ye["[object Number]"]=ye["[object Object]"]=ye["[object RegExp]"]=ye["[object Set]"]=ye["[object String]"]=ye["[object WeakMap]"]=!1;const Ce=function(t){return xe(t)&&Te(t.length)&&!!ye[gt(t)]};const Ae=function(t){return function(e){return t(e)}};var ke="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ie=ke&&"object"==typeof module&&module&&!module.nodeType&&module,Se=Ie&&Ie.exports===ke&&et.process;const ve=function(){try{var t=Ie&&Ie.require&&Ie.require("util").types;return t||Se&&Se.binding&&Se.binding("util")}catch(t){}}();var Re=ve&&ve.isTypedArray;const Ne=Re?Ae(Re):Ce;var Le=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&de(t),i=!n&&!o&&be(t),r=!n&&!o&&!i&&Ne(t),s=n||o||i||r,x=s?se(t.length,String):[],a=x.length;for(var c in t)!e&&!Le.call(t,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const De=Fe(Object.keys,Object);var Be=Object.prototype.hasOwnProperty;const Pe=function(t){if(!Oe(t))return De(t);var e=[];for(var n in Object(t))Be.call(t,n)&&"constructor"!=n&&e.push(n);return e};const Ue=function(t){return null!=t&&Te(t.length)&&!mt(t)};const je=function(t){return Ue(t)?Me(t):Pe(t)};const Ge=function(t,e){return t&&re(e,je(e),t)};const Ve=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var He=Object.prototype.hasOwnProperty;const ze=function(t){if(!ft(t))return Ve(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&He.call(t,o))&&n.push(o);return n};const We=function(t){return Ue(t)?Me(t,!0):ze(t)};const Ke=function(t,e){return t&&re(e,We(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?ot.Buffer:void 0,Ze=$e?$e.allocUnsafe:void 0;const Qe=function(t,e){if(e)return t.slice();var n=t.length,o=Ze?Ze(n):new t.constructor(n);return t.copy(o),o};const Ye=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Je=function(t,e){for(var n=-1,o=null==t?0:t.length,i=0,r=[];++n<o;){var s=t[n];e(s,n,t)&&(r[i++]=s)}return r};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Je(nn(t),(function(e){return en.call(t,e)})))}:tn;const rn=function(t,e){return re(t,on(t),e)};const sn=function(t,e){for(var n=-1,o=e.length,i=t.length;++n<o;)t[i+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)sn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return re(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:sn(o,n(t))};const un=function(t){return ln(t,je,on)};const dn=function(t){return ln(t,We,an)};const gn=Nt(ot,"DataView");const fn=Nt(ot,"Promise");const mn=Nt(ot,"Set");const hn=Nt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",yn=Tt(gn),Cn=Tt(Lt),An=Tt(fn),kn=Tt(mn),In=Tt(hn),Sn=gt;(gn&&Sn(new gn(new ArrayBuffer(1)))!=Tn||Lt&&Sn(new Lt)!=pn||fn&&Sn(fn.resolve())!=bn||mn&&Sn(new mn)!=En||hn&&Sn(new hn)!=_n)&&(Sn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case yn:return Tn;case Cn:return pn;case An:return bn;case kn:return En;case In:return _n}return e});const vn=Sn;var Rn=Object.prototype.hasOwnProperty;const Nn=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Rn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Ln=ot.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Ln(e).set(new Ln(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Dn=it?it.prototype:void 0,Bn=Dn?Dn.valueOf:void 0;const Pn=function(t){return Bn?Object(Bn.call(t)):{}};const Un=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const jn=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return wn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Un(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Pn(t)}};var Gn=Object.create;const Vn=function(){function t(){}return function(e){if(!ft(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const Hn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Vn(xn(t))};const zn=function(t){return xe(t)&&"[object Map]"==vn(t)};var Wn=ve&&ve.isMap;const Kn=Wn?Ae(Wn):zn;const qn=function(t){return xe(t)&&"[object Set]"==vn(t)};var Xn=ve&&ve.isSet;const $n=Xn?Ae(Xn):qn;var Zn="[object Arguments]",Qn="[object Function]",Yn="[object Object]",Jn={};Jn[Zn]=Jn["[object Array]"]=Jn["[object ArrayBuffer]"]=Jn["[object DataView]"]=Jn["[object Boolean]"]=Jn["[object Date]"]=Jn["[object Float32Array]"]=Jn["[object Float64Array]"]=Jn["[object Int8Array]"]=Jn["[object Int16Array]"]=Jn["[object Int32Array]"]=Jn["[object Map]"]=Jn["[object Number]"]=Jn[Yn]=Jn["[object RegExp]"]=Jn["[object Set]"]=Jn["[object String]"]=Jn["[object Symbol]"]=Jn["[object Uint8Array]"]=Jn["[object Uint8ClampedArray]"]=Jn["[object Uint16Array]"]=Jn["[object Uint32Array]"]=!0,Jn["[object Error]"]=Jn[Qn]=Jn["[object WeakMap]"]=!1;const to=function t(e,n,o,i,r,s){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,i,r,s):o(e)),void 0!==x)return x;if(!ft(e))return e;var u=ge(e);if(u){if(x=Nn(e),!a)return Ye(e,x)}else{var d=vn(e),g=d==Qn||"[object GeneratorFunction]"==d;if(be(e))return Qe(e,a);if(d==Yn||d==Zn||g&&!r){if(x=c||g?{}:Hn(e),!a)return c?cn(e,Ke(x,e)):rn(e,Ge(x,e))}else{if(!Jn[d])return r?e:{};x=jn(e,d,a)}}s||(s=new Jt);var f=s.get(e);if(f)return f;s.set(e,x),$n(e)?e.forEach((function(i){x.add(t(i,n,o,i,e,s))})):Kn(e)&&e.forEach((function(i,r){x.set(r,t(i,n,o,r,e,s))}));var m=u?void 0:(l?c?dn:un:c?We:je)(e);return te(m||e,(function(i,r){m&&(i=e[r=i]),ie(x,r,t(i,n,o,r,e,s))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,io=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(io.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function so(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,i=e?e.apply(this,o):o[0],r=n.cache;if(r.has(i))return r.get(i);var s=t.apply(this,o);return n.cache=r.set(i,s)||r,s};return n.cache=new(so.Cache||Zt),n}so.Cache=Zt;const xo=so;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,i){e.push(o?i.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,i=Array(o);++n<o;)i[n]=e(t[n],n,t);return i};var go=it?it.prototype:void 0,fo=go?go.toString:void 0;const mo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return fo?fo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":mo(t)};const po=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!ft(t))return t;for(var i=-1,r=(e=po(e,t)).length,s=r-1,x=t;null!=x&&++i<r;){var a=bo(e[i]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(i!=s){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=ft(l)?l:_e(e[i+1])?[]:{})}ie(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const yo=function(t){return this.__data__.has(t)};function Co(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Zt;++e<n;)this.add(t[e])}Co.prototype.add=Co.prototype.push=To,Co.prototype.has=yo;const Ao=Co;const ko=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const Io=function(t,e){return t.has(e)};const So=function(t,e,n,o,i,r){var s=1&n,x=t.length,a=e.length;if(x!=a&&!(s&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new Ao:void 0;for(r.set(t,e),r.set(e,t);++u<x;){var f=t[u],m=e[u];if(o)var h=s?o(m,f,u,e,t,r):o(f,m,u,t,e,r);if(void 0!==h){if(h)continue;d=!1;break}if(g){if(!ko(e,(function(t,e){if(!Io(g,e)&&(f===t||i(f,t,n,o,r)))return g.push(e)}))){d=!1;break}}else if(f!==m&&!i(f,m,n,o,r)){d=!1;break}}return r.delete(t),r.delete(e),d};const vo=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const Ro=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var No=it?it.prototype:void 0,Lo=No?No.valueOf:void 0;const Mo=function(t,e,n,o,i,r,s){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new Ln(t),new Ln(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return V(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=vo;case"[object Set]":var a=1&o;if(x||(x=Ro),t.size!=e.size&&!a)return!1;var c=s.get(t);if(c)return c==e;o|=2,s.set(t,e);var l=So(x(t),x(e),o,i,r,s);return s.delete(t),l;case"[object Symbol]":if(Lo)return Lo.call(t)==Lo.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,i,r){var s=1&n,x=un(t),a=x.length;if(a!=un(e).length&&!s)return!1;for(var c=a;c--;){var l=x[c];if(!(s?l in e:wo.call(e,l)))return!1}var u=r.get(t),d=r.get(e);if(u&&d)return u==e&&d==t;var g=!0;r.set(t,e),r.set(e,t);for(var f=s;++c<a;){var m=t[l=x[c]],h=e[l];if(o)var p=s?o(h,m,l,e,t,r):o(m,h,l,t,e,r);if(!(void 0===p?m===h||i(m,h,n,o,r):p)){g=!1;break}f||(f="constructor"==l)}if(g&&!f){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Do="[object Array]",Bo="[object Object]",Po=Object.prototype.hasOwnProperty;const Uo=function(t,e,n,o,i,r){var s=ge(t),x=ge(e),a=s?Do:vn(t),c=x?Do:vn(e),l=(a=a==Fo?Bo:a)==Bo,u=(c=c==Fo?Bo:c)==Bo,d=a==c;if(d&&be(t)){if(!be(e))return!1;s=!0,l=!1}if(d&&!l)return r||(r=new Jt),s||Ne(t)?So(t,e,n,o,i,r):Mo(t,e,a,n,o,i,r);if(!(1&n)){var g=l&&Po.call(t,"__wrapped__"),f=u&&Po.call(e,"__wrapped__");if(g||f){var m=g?t.value():t,h=f?e.value():e;return r||(r=new Jt),i(m,h,n,o,r)}}return!!d&&(r||(r=new Jt),Oo(t,e,n,o,i,r))};const jo=function t(e,n,o,i,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:Uo(e,n,o,i,t,r))};const Go=function(t,e){return jo(t,e)};const Vo=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Ho=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const zo=function(t,e,n){var o=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(i);++o<i;)r[o]=t[o+e];return r};const Wo=function(t,e){return e.length<2?t:Ho(t,zo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Wo(t,e))||delete t[bo(Vo(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["_saved","onAttributesChange","markers","nodeBefore","reduce","addMarkerName","_onDiscard","author","nodeAfter","start","change","addRange","getRange","_model","add","get","isIntersecting","getFirstMarker","previous","substr","creator","commentThread","type","decorate","attributes","getRanges","hasComments","onDiscard","set","clear","_markerNames","data","_onAttributesChange","head","_onAccept","toJSON","push","getAllAdjacentSuggestions","end","getFirstRange","split","addMarker","next","_isDataLoaded","getMarkers","map","setAttribute","@external","delete","length","getItems","removeMarkers","removeAttribute","isIntersectingWithRange","getMarkerNames","subType","accept","createdAt","from","onAccept","getMultiRangeId","filter"];var $o,Zo;$o=Xo,Zo=500,function(t){for(;--t;)$o.push($o.shift())}(++Zo);const Qo=function(t,e){return Xo[t-=0]};class Yo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this[Qo("0x27")]=!1,this.id=e.id,this[Qo("0x12")]=e[Qo("0x12")],this[Qo("0x33")]=e[Qo("0x33")]||null,this[Qo("0x3")]=e[Qo("0x3")],this[Qo("0x10")]=e[Qo("0x10")]||e[Qo("0x3")],this.isExternal=Boolean(e[Qo("0x14")]&&e[Qo("0x14")][Qo("0x2b")]),this[Qo("0x1b")]=null,this._model=t,this[Qo("0x1e")]=e[Qo("0x37")],this[Qo("0x2")]=e[Qo("0x17")],this._onAttributesChange=e[Qo("0x3b")],this._markerNames=new Set,this[Qo("0x35")]=null,this[Qo("0x18")]("authoredAt",null),this[Qo("0x18")](Qo("0x14"),e[Qo("0x14")]||{}),this[Qo("0x18")](Qo("0xe"),null),this[Qo("0x18")]("next",null),this[Qo("0x18")]("commentThread",null),this[Qo("0x18")](Qo("0x3a"),!1),this[Qo("0x13")](Qo("0x34")),this[Qo("0x13")]("discard")}get[Qo("0x1d")](){let t=this;for(;t.previous;)t=t[Qo("0xe")];return t}get[Qo("0x16")](){return!!this[Qo("0x11")]&&this[Qo("0x11")][Qo("0x2d")]>0}get isMultiRange(){return 0!=this[Qo("0x1a")].size&&6==Array.from(this[Qo("0x1a")])[0][Qo("0x24")](":")[Qo("0x2d")]}get isInContent(){return null!==this[Qo("0xd")]()}[Qo("0x1")](t){this[Qo("0x1a")][Qo("0xa")](t)}[Qo("0x32")](){return Array[Qo("0x36")](this._markerNames)}getMarkers(){return this[Qo("0x32")]()[Qo("0x29")]((t=>this._model[Qo("0x3c")][Qo("0xb")](t)))[Qo("0x39")]((t=>t))}[Qo("0xd")](){return this[Qo("0x28")]()[0]||null}[Qo("0x2f")](){this[Qo("0x9")][Qo("0x6")]((t=>{for(const e of this[Qo("0x28")]())t.removeMarker(e)})),this[Qo("0x1a")][Qo("0x19")]()}removeMarker(t){this[Qo("0x9")][Qo("0x6")]((e=>{e.removeMarker(t)})),this[Qo("0x1a")][Qo("0x2c")](t)}[Qo("0x7")](t){const e="suggestion:"+this[Qo("0x12")]+":"+this[Qo("0x33")]+":"+this.id+":"+this[Qo("0x10")].id+":"+Yo[Qo("0x38")]();this[Qo("0x1")](e),this[Qo("0x9")][Qo("0x6")]((n=>{n[Qo("0x25")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Qo("0x31")](t){for(const e of this[Qo("0x15")]())if(e[Qo("0xc")](t))return!0;return!1}[Qo("0x15")](){return this[Qo("0x28")]()[Qo("0x29")]((t=>t[Qo("0x8")]()))}[Qo("0x2e")](){return this[Qo("0x15")]()[Qo("0x0")](((t,e)=>[...t,...e[Qo("0x2e")]()]),[])}[Qo("0x23")](){var t;return(null===(t=this[Qo("0xd")]())||void 0===t?void 0:t.getRange())||null}getContainedElement(){const t=this[Qo("0x15")]();if(1!=t[Qo("0x2d")])return null;const e=t[0],n=e[Qo("0x5")][Qo("0x4")],o=e[Qo("0x22")][Qo("0x3d")];return n instanceof s.Element?n!=o?null:n:null}[Qo("0x34")](){this._onAccept(this[Qo("0x15")](),this[Qo("0x1b")],this[Qo("0x14")]),this[Qo("0x2f")]()}discard(){this[Qo("0x2")](this[Qo("0x15")](),this[Qo("0x1b")],this[Qo("0x14")]),this[Qo("0x2f")]()}[Qo("0x21")](){const t=[];let e=this[Qo("0x1d")];for(;e;)t[Qo("0x20")](e),e=e[Qo("0x26")];return t}[Qo("0x2a")](t,e){const n=eo(this[Qo("0x14")]);_o(n,t,e),Go(n,this[Qo("0x14")])||(this[Qo("0x14")]=n,this[Qo("0x1c")](n))}[Qo("0x30")](t){const e=eo(this[Qo("0x14")]);qo(e,t),Go(e,this[Qo("0x14")])||(this[Qo("0x14")]=e,this[Qo("0x1c")](this[Qo("0x14")]))}[Qo("0x1f")](){return{id:this.id,type:this[Qo("0x33")]?this[Qo("0x12")]+":"+this.subType:this.type,authorId:this[Qo("0x10")].id,createdAt:this.createdAt,hasComments:this[Qo("0x16")],data:this.data,attributes:this.attributes}}static[Qo("0x38")](){return(0,e.uid)()[Qo("0xf")](1,5)}}function Jo(t,e,n){const o=t.t;switch(e){case"Track changes":return o("Track changes");case"Accept suggestion":return o("Accept suggestion");case"Discard suggestion":return o("Discard suggestion");case"Accept all suggestions":return o("Accept all suggestions");case"Accept all selected suggestions":return o("Accept all selected suggestions");case"Discard all suggestions":return o("Discard all suggestions");case"Discard all selected suggestions":return o("Discard all selected suggestions");case"*Reset font size*":return o("*Reset font size*");case"*Reset font family*":return o("*Reset font family*");case"*Reset font color*":return o("*Reset font color*");case"*Reset font background color*":return o("*Reset font background color*");case"*Remove image text alternative*":return o("*Remove image text alternative*");case"*Reset image width*":return o("*Reset image width*");case"*Remove link*":return o("*Remove link*");case"*Check item*":return o("*Check item*");case"*Uncheck item*":return o("*Uncheck item*");case"*Remove all formatting*":return o("*Remove all formatting*");case"*Replace table cells*":return o("*Replace table cells*");case"*Merge cells*":return o("*Merge cells*");case"*Split cell:* vertically":return o("*Split cell:* vertically");case"*Split cell:* horizontally":return o("*Split cell:* horizontally");case"*Indent:* %0":return o("*Indent:* %0",n);case"*Outdent:* %0":return o("*Outdent:* %0",n);case"*Change to:* %0":return o("*Change to:* %0",n);case"*Insert:* %0":return o("*Insert:* %0",n);case"*Format:* %0":return o("*Format:* %0",n);case"*Format:* change table properties":return o("*Format:* change table properties");case"*Format:* change table cell properties":return o("*Format:* change table cell properties");case"*Format:* insert into %0":return o("*Format:* insert into %0",n);case"*Format:* remove from %0":return o("*Format:* remove from %0",n);case"*Replace image URL*":return o("*Replace image URL*");case"*Format:* resize table":return o("*Format:* resize table");case"*Format:* set order to reversed":return o("*Format:* set order to reversed");case"*Format:* set order to regular":return o("*Format:* set order to regular");case"*Format:* set start index to %0":return o("*Format:* set start index to %0",n);case"*Change %0 content*":return o("*Change %0 content*",n);case"*Remove:* %0":return o("*Remove:* %0",n);case"*Merge:* %0":return o("*Merge:* %0",n);case"*Split:* %0":return o("*Split:* %0",n);case"*Remove format:* %0":return o("*Remove format:* %0",n);case"*Set font size:* %0":return o("*Set font size:* %0",n);case"*Set font family:* %0":return o("*Set font family:* %0",n);case"*Set format to:* %0":return o("*Set format to:* %0",n);case"*Set font color:* %0":return o("*Set font color:* %0",n);case"*Set font background color:* %0":return o("*Set font background color:* %0",n);case"*Set format:* %0":return o("*Set format:* %0",n);case"*Set image text alternative:* %0":return o("*Set image text alternative:* %0",n);case"*Set image width:* %0":return o("*Set image width:* %0",n);case"*Set link:* %0":return o("*Set link:* %0",n);case"*Set highlight:* %0":return o("*Set highlight:* %0",n);case"*Remove highlight*":return o("*Remove highlight*");case"FORMAT_HIGHLIGHT":return o({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return o({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return o({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return o({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return o({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return o({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return o({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return o({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return o({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return o({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return o({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return o({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return o({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return o({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return o({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_DEFAULT":return o({string:"bulleted list (default)",id:"ELEMENT_BULLETED_LIST_DEFAULT"});case"ELEMENT_BULLETED_LIST_CIRCLE":return o({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return o({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return o({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST_DEFAULT":return o({string:"numbered list (default)",id:"ELEMENT_NUMBERED_LIST_DEFAULT"});case"ELEMENT_NUMBERED_LIST":return o({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return o({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return o({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return o({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return o({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return o({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return o({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return o({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return o({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return o({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGNMENT":return o({string:"alignment",id:"FORMAT_ALIGNMENT"});case"FORMAT_ALIGN_TO_LEFT":return o({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return o({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return o({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return o({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return o({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return o({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return o({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return o({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return o({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return o({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return o({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return o({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return o({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return o({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return o({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return o({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return o({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"FORMAT_INDENT":return o({string:"indent",id:"FORMAT_INDENT"});case"FORMAT_LIST_REVERSED":return o({string:"list reversed",id:"FORMAT_LIST_REVERSED"});case"FORMAT_LIST_START":return o({string:"list start",id:"FORMAT_LIST_START"});case"FORMAT_FONT_SIZE":return o({string:"font size",id:"FORMAT_FONT_SIZE"});case"FORMAT_FONT_FAMILY":return o({string:"font family",id:"FORMAT_FONT_FAMILY"});case"FORMAT_FONT_COLOR":return o({string:"font color",id:"FORMAT_FONT_COLOR"});case"FORMAT_FONT_BACKGROUND":return o({string:"font background color",id:"FORMAT_FONT_BACKGROUND"});case"FORMAT_IMAGE_SIZE":return o({string:"image size",id:"FORMAT_IMAGE_SIZE"});case"FORMAT_STYLE":return o({string:"style",id:"FORMAT_STYLE"});case"PENDING_ACTION_SUGGESTION":return o({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return o({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return o({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return o({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return o({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return o({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_TABLE_OF_CONTENTS":return o({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return o({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return o({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return o({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return o({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return o({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return o({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);case"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT":return o({string:"Entering insertion suggestion.",id:"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT":return o({string:"Leaving insertion suggestion.",id:"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT":return o({string:"Entering deletion suggestion.",id:"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT":return o({string:"Leaving deletion suggestion.",id:"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT":return o({string:"Entering formatting suggestion.",id:"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT":return o({string:"Leaving formatting suggestion.",id:"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT"});default:return e}}const ti=["length","_customCallbacks","end","*Change to:* %0","skip","add","key","_itemLabels","data","start","_handleInsertRemoveSuggestionDescription","Object","addFormat","_itemLabelsCallbacks","format","function","quantity","elementEnd","Container","removeFormat","_handleCustomCallbackDescription","EmptyContainer","_handleAttributeSuggestionDescription","_locale","getDescriptions","*Merge:* %0","push","*Split:* %0","_attributeLabels","getWalker","text","name","removeObject","item","previousSibling","map","isEqual","insertion","normal","isEmpty","getItemLabel","element","*Insert:* %0","pop","isInContent","set","replace","match","nodeAfter","attribute","subType","isObject","indexOf","registerDescriptionCallback","join","_handleRenameSuggestionDescription","get","remove","removeEmptyContainer","*Set format:* %0","_addDescriptionItems","_schema","has","$1 $2","deletion","$textProxy","*Remove:* %0","type","$text","ELEMENT_SPACE","getFirstRange"];var ei,ni;ei=ti,ni=410,function(t){for(;--t;)ei.push(ei.shift())}(++ni);const oi=function(t,e){return ti[t-=0]};class ii{constructor(t,e){this[oi("0x11")]=[],this[oi("0x17")]=new Map,this[oi("0x1d")]=[],this[oi("0x2c")]=new Map,this[oi("0x6")]=t,this[oi("0x27")]=e}[oi("0x28")](t){const e=[],n=new Set,o=new Set;for(let i=0;i<t.length;i++){const r=t[i];if(!r[oi("0x3c")])continue;const s=this[oi("0x24")](r);if(s){if(null!=r[oi("0x42")]){if(n.has(r[oi("0x42")]))continue;n[oi("0x15")](r[oi("0x42")])}e.push(s)}else if(oi("0x41")!=r.type)oi("0x35")!=r[oi("0xc")]&&"deletion"!=r[oi("0xc")]||this[oi("0x1a")](e,r,t[i+1]);else{const t=r[oi("0x18")][oi("0x16")];if(o[oi("0x7")](t))continue;o[oi("0x15")](r[oi("0x18")][oi("0x16")]),t==mc?this._handleRenameSuggestionDescription(e,r):this[oi("0x26")](e,r)}}return this._resolveDescriptionItems(e)}[oi("0x45")](t){this._customCallbacks.push(t)}registerElementLabel(t,n,o=e.priorities[oi("0x36")]){oi("0x1f")==typeof t?(0,e.insertToPriorityArray)(this._itemLabelsCallbacks,{matchingCallback:t,label:n,priority:o}):this[oi("0x17")][oi("0x3d")](t,n)}registerAttributeLabel(t,e){this._attributeLabels[oi("0x3d")](t,e)}[oi("0x38")](t,e=1){let n;for(const e of this[oi("0x1d")])if(e.matchingCallback(t)){n=e.label;break}return n||(n=this._itemLabels[oi("0x1")](t[oi("0x2f")])),n?n(e):1!==e?e+" "+t[oi("0x2f")]+"s":""+t[oi("0x2f")]}[oi("0x5")](t,e){const n=e[oi("0xf")]()[oi("0x2d")](),o=oi("0x35")==e.type?oi("0x15"):oi("0x2");for(const e of n){const i=e[oi("0x31")],r=t[t[oi("0x10")]-1];if(i.is(oi("0xa")))r&&r[oi("0xc")][oi("0x44")](oi("0x22"))>-1&&t.pop(),r&&oi("0x2e")==r[oi("0xc")]?r[o]+=i.data:t[oi("0x2a")]({type:"text",add:oi("0x15")==o?i[oi("0x18")]:"",remove:oi("0x2")==o?i[oi("0x18")]:""});else if(this[oi("0x6")][oi("0x43")](i)){const s=i;if(r&&r[oi("0xc")][oi("0x44")](oi("0x22"))>-1&&t[oi("0x3b")](),oi("0x21")==e[oi("0xc")])continue;r&&r[oi("0xc")]==o+oi("0x1b")&&r[oi("0x39")][oi("0x2f")]==s.name?r[oi("0x20")]++:t.push({type:o+oi("0x1b"),element:s,quantity:1}),n[oi("0x14")]((t=>!(oi("0x21")==t.type&&t[oi("0x31")]==i)))}else if(this[oi("0x6")].checkChild(i,oi("0xd"))||i.is(oi("0x39"),"softBreak")){const n=i;if(oi("0x15")==o&&"elementStart"==e.type||"remove"==o&&"elementEnd"==e[oi("0xc")])continue;if(r&&-1==r[oi("0xc")][oi("0x44")]("Container")){oi("0x2e")==r[oi("0xc")]&&(r[o]+="\n");continue}let s;if(s=oi("0x15")==o?n.nextSibling&&!this[oi("0x6")][oi("0x43")](n.nextSibling)?n.nextSibling:null:n.previousSibling&&!this[oi("0x6")][oi("0x43")](n.previousSibling)?n[oi("0x32")]:null,n.isEmpty||s&&s[oi("0x37")]){const e=s&&s.isEmpty?s:n;r&&r[oi("0xc")]==o+oi("0x25")&&r.element.name==e[oi("0x2f")]?r[oi("0x20")]++:t[oi("0x2a")]({type:o+oi("0x25"),element:e,quantity:1})}else t[oi("0x2a")]({type:o+oi("0x22"),element:n})}}}_resolveDescriptionItems(t){const e=this[oi("0x27")],n=[],o=[],i=[];for(const r of t)switch(r[oi("0xc")]){case oi("0x2e"):if(r.add=r[oi("0x15")][oi("0x3e")](/(\S)\u000A+(\S)/g,oi("0x8"))[oi("0x3e")](/\u000A/g,""),r[oi("0x2")]=r[oi("0x2")][oi("0x3e")](/(\S)\u000A+(\S)/g,oi("0x8")).replace(/\u000A/g,""),""!=r[oi("0x15")]&&""!=r[oi("0x2")]){n[oi("0x2a")]({type:oi("0x3e"),content:Jo(e,"REPLACE_TEXT",['"'+r[oi("0x2")]+'"','"'+r.add+'"'])});continue}if(null!=r[oi("0x15")][oi("0x3f")](/^ +$/)){n[oi("0x2a")]({type:oi("0x35"),content:Jo(e,oi("0x3a"),Jo(e,oi("0xe"),r.add[oi("0x10")]))});continue}if(null!=r[oi("0x2")][oi("0x3f")](/^ +$/)){n[oi("0x2a")]({type:oi("0x9"),content:Jo(e,oi("0xb"),Jo(e,oi("0xe"),r[oi("0x2")][oi("0x10")]))});continue}if(""!=r.add){n[oi("0x2a")]({type:"insertion",content:Jo(e,"*Insert:* %0",'"'+r.add+'"')});continue}n[oi("0x2a")]({type:"deletion",content:Jo(e,oi("0xb"),'"'+r[oi("0x2")]+'"')});continue;case"addEmptyContainer":case"addObject":n[oi("0x2a")]({type:"insertion",content:Jo(e,oi("0x3a"),this[oi("0x38")](r[oi("0x39")],r[oi("0x20")]))});continue;case oi("0x3"):case oi("0x30"):n[oi("0x2a")]({type:oi("0x9"),content:Jo(e,oi("0xb"),this[oi("0x38")](r.element,r[oi("0x20")]))});continue;case"addContainer":n[oi("0x2a")]({type:"insertion",content:Jo(e,oi("0x2b"),this[oi("0x38")](r[oi("0x39")],r[oi("0x20")]))});continue;case"removeContainer":n[oi("0x2a")]({type:"deletion",content:Jo(e,oi("0x29"),this[oi("0x38")](r.element,r[oi("0x20")]))});continue;case"addFormat":o.push(r[oi("0x16")]);continue;case oi("0x23"):i[oi("0x2a")](r.key);continue;default:n[oi("0x2a")](r)}if(o[oi("0x10")]){const t=o[oi("0x33")]((t=>this[oi("0x2c")][oi("0x7")](t)?this[oi("0x2c")][oi("0x1")](t):t))[oi("0x46")](", ");n[oi("0x2a")]({type:oi("0x1e"),content:Jo(this[oi("0x27")],oi("0x4"),t)})}if(i[oi("0x10")]){const t=i[oi("0x33")]((t=>this[oi("0x2c")][oi("0x7")](t)?this[oi("0x2c")][oi("0x1")](t):t)).join(", ");n[oi("0x2a")]({type:"format",content:Jo(this[oi("0x27")],"*Remove format:* %0",t)})}return n}[oi("0x24")](t){for(const e of this[oi("0x11")]){const n=e(t);if(n&&oi("0xc")in n)return n}}_handleAttributeSuggestionDescription(t,e){const n=e[oi("0x18")],o=void 0===n.newValue?oi("0x23"):oi("0x1c");t[oi("0x2a")]({type:o,key:n[oi("0x16")]})}[oi("0x0")](t,e){t[oi("0x2a")]({type:oi("0x1e"),content:Jo(this[oi("0x27")],oi("0x13"),this[oi("0x38")](e[oi("0xf")]()[oi("0x19")][oi("0x40")],1))})}[oi("0x1a")](t,e,n){if(this._addDescriptionItems(t,e),n&&n[oi("0xf")]()&&!e[oi("0xf")]()[oi("0x12")][oi("0x34")](n[oi("0xf")]().start)){const n=t[t[oi("0x10")]-1],o=oi("0x35")==e[oi("0xc")]?oi("0x15"):"remove";n&&"text"==n[oi("0xc")]&&(n[o]+="\n")}}}const ri=["enableCommand","showAIAssistant","editor","commands","get","TrackChangesEditing"];var si,xi;si=ri,xi=172,function(t){for(;--t;)si.push(si.shift())}(++xi);const ai=function(t,e){return ri[t-=0]};class ci extends t.Plugin{afterInit(){const t=this[ai("0x4")],e=t.plugins.get(ai("0x1"));t[ai("0x5")][ai("0x0")](ai("0x3"))&&e[ai("0x2")]("showAIAssistant")}}const li=["TrackChangesEditing","locale","right","formatBlock","center","plugins","format","_registerLegacyDescription","afterInit","*Format:* %0","FORMAT_ALIGN_TO_RIGHT","FORMAT_ALIGN_TO_LEFT","FORMAT_JUSTIFY_TEXT","registerDescriptionCallback","commandName","_enableDefaultAttributesIntegration","editor","FORMAT_ALIGNMENT","alignment","_descriptionFactory","FORMAT_ALIGN_TO_CENTER","get","has","type","AlignmentEditing"];var ui,di;ui=li,di=441,function(t){for(;--t;)ui.push(ui.shift())}(++di);const gi=function(t,e){return li[t-=0]};class fi extends t.Plugin{[gi("0x11")](){const t=this.editor,e=t[gi("0xa")];if(!t[gi("0xe")][gi("0x6")](gi("0x8")))return;const n=t[gi("0xe")][gi("0x5")](gi("0x9"));n[gi("0x18")](gi("0x2"),[],[gi("0x2")]),n[gi("0x3")].registerAttributeLabel(gi("0x2"),Jo(e,gi("0x1"))),this[gi("0x10")]()}[gi("0x10")](){const t=this[gi("0x0")],e=t[gi("0xa")];t.plugins.get("TrackChangesEditing")[gi("0x3")][gi("0x16")]((t=>{if(gi("0xc")!=t[gi("0x7")])return;const{data:n}=t;if(n&&"alignment"==n[gi("0x17")]){const t=n.commandParams[0].value;return{type:gi("0xf"),content:Jo(e,gi("0x12"),function(t){switch(t){case"left":return Jo(e,gi("0x14"));case gi("0xb"):return Jo(e,gi("0x13"));case gi("0xd"):return Jo(e,gi("0x4"));case"justify":return Jo(e,gi("0x15"))}}(t))}}}))}}const mi=["strikethrough","*Format:* %0","underline","registerDescriptionCallback","registerAttributeLabel","has","toUpperCase","BoldEditing","forceValue","SuperscriptEditing","FORMAT_CODE","_registerLegacyDescription","subscript","*Remove format:* %0","formatInline","_descriptionFactory","code","FORMAT_ITALIC","FORMAT_","commandParams","FORMAT_SUBSCRIPT","bold","plugins","SubscriptEditing","ItalicEditing","StrikethroughEditing","commandName","get","italic","FORMAT_UNDERLINE","format","TrackChangesEditing","editor","locale","type","UnderlineEditing","slice","toLowerCase"];var hi,pi;hi=mi,pi=485,function(t){for(;--t;)hi.push(hi.shift())}(++pi);const bi=function(t,e){return mi[t-=0]},Ei=[bi("0x10"),bi("0x21"),bi("0x6"),"CodeEditing",bi("0x22"),bi("0x20"),bi("0x12")];class _i extends t.Plugin{afterInit(){const t=this[bi("0x3")],e=t.plugins.get(bi("0x2")),n=t[bi("0x4")];for(const o of Ei){if(!t[bi("0x1f")][bi("0xe")](o))continue;const i=o[bi("0x7")](0,-7)[bi("0x8")](),r=bi("0x1b")+i[bi("0xf")]();e._enableDefaultAttributesIntegration(i,[i]),e[bi("0x18")][bi("0xd")](i,Jo(n,r))}this[bi("0x14")]()}[bi("0x14")](){const t=this[bi("0x3")],e=t[bi("0x4")],n=t[bi("0x1f")][bi("0x24")](bi("0x2"));function o(t,o){n[bi("0x18")][bi("0xc")]((n=>{if(bi("0x17")!=n[bi("0x5")])return;const{data:i}=n;return i&&i[bi("0x23")]===t?i[bi("0x1c")][0][bi("0x11")]?{type:bi("0x1"),content:Jo(e,bi("0xa"),o)}:{type:bi("0x1"),content:Jo(e,bi("0x16"),o)}:void 0}))}o(bi("0x1e"),Jo(e,"FORMAT_BOLD")),o(bi("0x25"),Jo(e,bi("0x1a"))),o(bi("0xb"),Jo(e,bi("0x0"))),o(bi("0x19"),Jo(e,bi("0x13"))),o(bi("0x9"),Jo(e,"FORMAT_STRIKETHROUGH")),o(bi("0x15"),Jo(e,bi("0x1d"))),o("superscript",Jo(e,"FORMAT_SUPERSCRIPT"))}}const Ti=["model","name","getSelectedBlocks","blockQuote","checkChild","from","BlockQuoteEditing","filter","commandParams","format","ELEMENT_BLOCK_QUOTE","forceValue","plugins","has","enableCommand","value","markBlockFormat","editor","*Set format:* %0","parent","commands","locale","registerDescriptionCallback","TrackChangesEditing","get","_descriptionFactory"];var yi,Ci;yi=Ti,Ci=160,function(t){for(;--t;)yi.push(yi.shift())}(++Ci);const Ai=function(t,e){return Ti[t-=0]};class ki extends t.Plugin{afterInit(){const t=this[Ai("0xd")],e=t[Ai("0x11")];if(!t[Ai("0x8")][Ai("0x9")](Ai("0x2")))return;const n=t.plugins.get(Ai("0x13")),o=this[Ai("0xd")][Ai("0x10")][Ai("0x14")]("blockQuote");n[Ai("0xa")](Ai("0x19"),((e,i={})=>{const r=this.editor[Ai("0x16")].document.selection,s=i&&void 0!==i[Ai("0x7")]?i[Ai("0x7")]:!o[Ai("0xb")];let x=[];if(s){const e=Array.from(r[Ai("0x18")]())[Ai("0x3")]((t=>Ii(t)||function(t,e){const n=e[Ai("0x0")](t[Ai("0xf")],Ai("0x19")),o=e[Ai("0x0")](["$root","blockQuote"],t);return n&&o}(t,this[Ai("0xd")][Ai("0x16")].schema)));x=v(e,t[Ai("0x16")])}else{const e=Array[Ai("0x1")](r.getSelectedBlocks())[Ai("0x3")]((t=>Ii(t)));x=v(e,t[Ai("0x16")])}t[Ai("0x16")].change((()=>{for(const t of x)n[Ai("0xc")](t,{commandName:"blockQuote",commandParams:[{forceValue:s}]})}))})),n[Ai("0x15")][Ai("0x12")]((t=>{const{data:n}=t;if(n&&Ai("0x19")==n.commandName){const t=Jo(e,Ai("0x6"));return n[Ai("0x4")][0][Ai("0x7")]?{type:Ai("0x5"),content:Jo(e,Ai("0xe"),t)}:{type:Ai("0x5"),content:Jo(e,"*Remove format:* %0",t)}}}))}}function Ii(t){return Ai("0x19")==t.parent[Ai("0x17")]}const Si=["ckbox","plugins","get","TrackChangesEditing","editor","afterInit","enableCommand"];var vi,Ri;vi=Si,Ri=299,function(t){for(;--t;)vi.push(vi.shift())}(++Ri);const Ni=function(t,e){return Si[t-=0]};class Li extends t.Plugin{[Ni("0x0")](){const t=this[Ni("0x6")];t.commands[Ni("0x4")](Ni("0x2"))&&t[Ni("0x3")][Ni("0x4")](Ni("0x5"))[Ni("0x1")]("ckbox")}}const Mi=["rootElement","type","change","label","from","registerDescriptionCallback","afterInit","language","forceValue","get","formatBlock","filter","commandName","document","isLimit","plugins","model","TrackChangesEditing","outdentCodeBlock","format","codeBlock","parent","enableCommand","*Set format:* %0","toLowerCase","config","ELEMENT_CODE_BLOCK","editor","commandParams","indentCodeBlock","commands","getSelectedBlocks","CodeBlock","*Remove format:* %0","markBlockFormat","checkChild","locale"];var wi,Oi;wi=Mi,Oi=204,function(t){for(;--t;)wi.push(wi.shift())}(++Oi);const Fi=function(t,e){return Mi[t-=0]};class Di extends t.Plugin{[Fi("0x18")](){const t=this[Fi("0x8")];if(!t[Fi("0x21")].has(Fi("0xd")))return;const e=t[Fi("0x21")][Fi("0x1b")](Fi("0x23")),n=t[Fi("0x11")],o=t[Fi("0x6")].get("codeBlock").languages,i=t[Fi("0xb")][Fi("0x1b")](Fi("0x1"));e.enableCommand(Fi("0xa")),e[Fi("0x3")](Fi("0x24")),e[Fi("0x3")](Fi("0x1"),((n,r={})=>{const s=t[Fi("0x22")],x=t[Fi("0x22")][Fi("0x1f")].selection,a=r&&void 0!==r[Fi("0x1a")]?r.forceValue:!i.value;let c;r.language||(r[Fi("0x19")]=o[0].language),c=a?Array[Fi("0x16")](x[Fi("0xc")]())[Fi("0x1d")]((t=>{return Bi(t)||(e=t,n=s.schema,!e.is(Fi("0x12"))&&!n[Fi("0x20")](e)&&n[Fi("0x10")](e[Fi("0x2")],"codeBlock"));var e,n})):Array[Fi("0x16")](x[Fi("0xc")]())[Fi("0x1d")]((t=>Bi(t)));const l=v(c,s);s[Fi("0x14")]((()=>{for(const t of l)e[Fi("0xf")](t,{commandName:Fi("0x1"),commandParams:[{...r,forceValue:a}],formatGroupId:"blockName"})}))})),e._descriptionFactory.registerElementLabel(Fi("0x1"),(t=>Jo(n,"ELEMENT_CODE_BLOCK",t))),e._descriptionFactory[Fi("0x17")]((t=>{if(Fi("0x1c")!=t[Fi("0x13")])return;const e=n.t,{data:i}=t;if(!i||Fi("0x1")!=i[Fi("0x1e")])return;const r=i[Fi("0x9")][0].language,s=e(o.find((t=>t[Fi("0x19")]===r))[Fi("0x15")])[Fi("0x5")]();return i.commandParams[0].forceValue?{type:Fi("0x0"),content:Jo(n,Fi("0x4"),Jo(n,"ELEMENT_CODE_BLOCK",1)+" ("+s+")")}:{type:Fi("0x0"),content:Jo(n,Fi("0xe"),Jo(n,Fi("0x7"),1))}}))}}function Bi(t){return Fi("0x1")==t.name}const Pi=["plugins","enableCommand","addCommentThread","has","CommentsEditing","TrackChangesEditing","editor"];var Ui,ji;Ui=Pi,ji=289,function(t){for(;--t;)Ui.push(Ui.shift())}(++ji);const Gi=function(t,e){return Pi[t-=0]};class Vi extends t.Plugin{afterInit(){const t=this[Gi("0x4")];t[Gi("0x5")][Gi("0x1")](Gi("0x2"))&&t.plugins.get(Gi("0x3"))[Gi("0x6")](Gi("0x0"))}}var Hi=n(181);const zi=["getWalker","writer","item","isAtEnd","ck-suggestion-marker-","addClass","start","consumable","model","ck-suggestion-marker--active","hasAttribute","isBlock","addHighlight","mapper","name","plugins","getCustomProperty","getAttribute","elementEnd","nextSibling","listItem","element","createUIElement","type","span","toViewPosition","get","markerName","isLimit","bindElementToMarker","schema","previousPosition","markerRange","test","includes","push"];var Wi,Ki;Wi=zi,Ki=329,function(t){for(;--t;)Wi.push(Wi.shift())}(++Ki);const qi=function(t,e){return zi[t-=0]};function Xi(t,e,n){const o=[];for(const i of e.getItems())i[qi("0x5")](t)&&o[qi("0x1e")](n.createRangeOn(i));return o}function $i(t,e,{showActiveMarker:n=!0}={}){const o=t[qi("0xa")][qi("0x15")]("TrackChangesEditing");return(i,r,s)=>{if(!s[qi("0x2")][qi("0x1c")](r[qi("0x1b")],i[qi("0x9")]))return;const x=r[qi("0x1b")][qi("0x1f")](),a=r.markerRange[qi("0x1")],c=t[qi("0x3")][qi("0x19")];let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[qi("0x21")];d=d||c.isContent(e);const n=s[qi("0x8")].toViewElement(e);if(n&&n[qi("0xb")](qi("0x7")))return;qi("0xd")==t[qi("0x12")]&&c[qi("0x6")](e)&&!c[qi("0x17")](e)&&(e[qi("0xe")]||a[qi("0x22")]?l&&l.parent==e||(l=e,f(t[qi("0x1a")]),g=!0):u=u||t[qi("0x1a")])}function f(t){const i=s[qi("0x20")][qi("0x11")](qi("0x13"),{class:qi("0x23")+e}),x=s[qi("0x8")][qi("0x14")](t);n&&o.activeMarkers[qi("0x1d")](r[qi("0x16")])&&s.writer[qi("0x0")](qi("0x4"),i),s[qi("0x20")].insert(x,i),s.mapper[qi("0x18")](i,r[qi("0x16")])}d||g||!u||f(u)}}const Zi=["uiElement","data","getFirstRange","modifySelection","addMarker:suggestion:deletion","batch","end","enqueueChange","bind","mapper","start","createSelection","high","requires","fromRange","remove","markerNameToElements","markerName","editing","merge","delete","init","unit","unlock","rootName","deleteForward","TrackChangesEditing","options","lock","$graveyard","enableCommand","editor","document","downcastDispatcher","createRange","showSuggestionHighlights","get","plugins","buffer","model","root","removeMarker:suggestion:deletion","forward"];var Qi,Yi;Qi=Zi,Yi=204,function(t){for(;--t;)Qi.push(Qi.shift())}(++Yi);const Ji=function(t,e){return Zi[t-=0]};class tr extends t.Plugin{static get[Ji("0x18")](){return[Hi.Delete]}[Ji("0x20")](){const t=this[Ji("0x2a")],e=t[Ji("0x5")][Ji("0x4")](Ji("0x25"));e[Ji("0x29")](Ji("0x1f"));const n=t.commands[Ji("0x4")](Ji("0x24"));e[Ji("0x29")](Ji("0x24"),((e,o={})=>{const i=t[Ji("0x7")][Ji("0x16")](t.model[Ji("0x0")].selection);i.isCollapsed&&t.model[Ji("0xe")](i,{direction:Ji("0xa"),unit:o[Ji("0x21")]});const r=i[Ji("0xd")](),x=s.LiveRange[Ji("0x19")](r);let a;e(o),a=Ji("0x28")==x[Ji("0x8")][Ji("0x23")]?t.model[Ji("0x2")](r.start):t[Ji("0x7")][Ji("0x2")](x[Ji("0x15")],x[Ji("0x11")]),x.detach(),t[Ji("0x7")][Ji("0x12")](n[Ji("0x6")][Ji("0x10")],(t=>{n[Ji("0x6")][Ji("0x27")](),t.setSelection(t[Ji("0x2")](a[Ji("0x11")])),n[Ji("0x6")][Ji("0x22")]()}))})),t[Ji("0x1d")].downcastDispatcher.on(Ji("0xf"),$i(t,Ji("0x1e")),{priority:"high"}),t[Ji("0xc")][Ji("0x1")].on("addMarker:suggestion:deletion",((e,n,o)=>{o[Ji("0x26")][Ji("0x3")]&&$i(t,Ji("0x1e"),{showActiveMarker:!1})[Ji("0x13")](this)(e,n,o)}),{priority:"high"}),t.editing[Ji("0x1")].on(Ji("0x9"),((t,e,n)=>{const o=n[Ji("0x14")][Ji("0x1b")](e[Ji("0x1c")]);if(o)for(const t of o)t.is(Ji("0xb"))&&(n[Ji("0x14")].unbindElementFromMarkerName(t,e.markerName),n.writer[Ji("0x1a")](t))}),{priority:Ji("0x17")})}}const er=["deletion","*Change to:* %0","list.multiBlock","change","paragraph","getSelectedBlocks","length","selection","schema","isObject","forceValue","outdentList","before","execute","ELEMENT_BULLETED_LIST","registerDescriptionCallback","*Format:* remove from %0","add","listIndent","commands","expandListBlocksToCompleteList","ELEMENT_","slice","enableCommand","nodeAfter","_descriptionFactory","listItemId","createPositionAt","getRanges","bulletedList","parent","has","setSelection","splitListItemAfter","config","findIndex","format","value","getFirstRange","fromRange","DocumentListEditing","_suggestionFactory","getAttribute","detach","createRange","editor","get","mergeListItemBackward","nextSibling","ELEMENT_NUMBERED_LIST","DocumentListUtils","listType","splitListItemBefore","_LIST","formatBlock","indentList","registerElementLabel","from","commandName","previousSibling","multipleBlocks","*Indent:* %0","toUpperCase","document","after","hasAttribute","next","*Format:* insert into %0","ELEMENT_LIST_ITEM","start","plugins","type","commandParams","end","mergeListItemForward","model","markBlockFormat","documentList","numberedList","containsItem","push"];var nr,or;nr=er,or=117,function(t){for(;--t;)nr.push(nr.shift())}(++or);const ir=function(t,e){return er[t-=0]};class rr extends t.Plugin{afterInit(){const t=this[ir("0x9")];if(!t.plugins[ir("0x4c")](ir("0x4")))return;const e=t.locale,n=t.plugins[ir("0xa")]("TrackChangesEditing"),o=t[ir("0x22")][ir("0xa")](ir("0xe"));function i(e){return()=>{const i=t[ir("0x40")].get(e);if(i.value&&!t[ir("0x4f")].get(ir("0x2f")))return void t.execute(ir("0x31"),{});let r=Array[ir("0x15")](t.model[ir("0x1b")][ir("0x34")][ir("0x32")]());if(a(e)){r=o[ir("0x41")](r);const t=[];for(const e of r)o.isFirstBlockOfListItem(e)&&t[ir("0x2c")](e);r=t}t[ir("0x27")][ir("0x30")]((()=>{n.markMultiRangeBlockFormat(r,{commandName:e,commandParams:[{forceValue:!i.value}],formatGroupId:ir("0xf")},[],ir("0x29"))}))}}function r(e){return()=>{const o=function(t){let e=Array.from(t);const n=e[ir("0x50")]((t=>!t[ir("0x1d")](ir("0x47"))));return n>-1&&(e=e[ir("0x43")](0,n)),e}(t[ir("0x27")][ir("0x1b")].selection[ir("0x32")]()),i=o[o[ir("0x33")]-1],r=t.model[ir("0x35")][ir("0x36")](i)?ir("0x1c"):"end",s=t[ir("0x27")][ir("0x8")](t[ir("0x27")][ir("0x48")](o[0],"before"),t[ir("0x27")][ir("0x48")](i,r));t[ir("0x27")][ir("0x30")]((()=>{n[ir("0x28")](s,{commandName:e,commandParams:[],formatGroupId:ir("0xf")},function(t){const e=new Set;for(const n of t){let t=n[ir("0xc")];for(;t&&t.getAttribute("listIndent")>n[ir("0x6")](ir("0x3f"));)e[ir("0x3e")](t),t=t.nextSibling}return Array.from(e)}(o))}))}}function x(e){return()=>{const o=t[ir("0x27")].document.selection[ir("0x32")]()[ir("0x1e")]().value,i=t[ir("0x27")][ir("0x48")](o,ir("0x39")),r=t[ir("0x27")][ir("0x48")](o,0),s=t[ir("0x27")][ir("0x8")](i,r);t[ir("0x27")].change((()=>{n[ir("0x28")](s,{commandName:e,commandParams:[],formatGroupId:ir("0xf")})}))}}function a(e){const n=t[ir("0x40")][ir("0xa")](ir("0x4a"))[ir("0x1")],o=t[ir("0x40")][ir("0xa")](ir("0x2a"))[ir("0x1")];return ir("0x2a")===e?n:o}n[ir("0x44")](ir("0x2a"),i(ir("0x2a"))),n[ir("0x44")]("bulletedList",i(ir("0x4a"))),n[ir("0x44")](ir("0x13"),r("indentList")),n[ir("0x44")](ir("0x38"),r("outdentList")),n[ir("0x44")](ir("0x4e"),x("splitListItemAfter")),n[ir("0x44")](ir("0x10"),x(ir("0x10"))),n[ir("0x46")][ir("0x14")]((function(e){const n=!t[ir("0x27")][ir("0x35")][ir("0x36")](e),o=e[ir("0x17")],i=e[ir("0xc")],r=e[ir("0x6")]("listItemId"),s=!o||o[ir("0x6")](ir("0x47"))!==r,x=!i||i[ir("0x6")](ir("0x47"))!==r;return n&&Boolean(r)&&s&&x}),(t=>Jo(e,ir("0x20"),t))),n._descriptionFactory[ir("0x3c")]((function(n){if("formatBlock"!=n[ir("0x23")]&&"formatInline"!=n.type)return;const{data:o}=n;if(!o)return;let i,r,s,x;switch(o[ir("0x16")]){case ir("0x4a"):s=o[ir("0x24")][0][ir("0x37")],x=a(o[ir("0x16")]),i=s?"*Format:* insert into %0":ir("0x3d"),!x&&t.config.get(ir("0x2f"))||(i=ir("0x2e")),r={type:ir("0x0"),content:Jo(e,i,Jo(e,ir("0x3b")))};break;case ir("0x2a"):s=o[ir("0x24")][0].forceValue,x=a(o.commandName),i=ir(s?"0x1f":"0x3d"),!x&&t[ir("0x4f")][ir("0xa")](ir("0x2f"))||(i="*Change to:* %0"),r={type:"format",content:Jo(e,i,Jo(e,ir("0xd")))};break;case"indentList":i=ir("0x19"),r={type:ir("0x0"),content:Jo(e,i,Jo(e,"ELEMENT_LIST_ITEM"))};break;case ir("0x38"):i=function(t){const e=t.getFirstRange();let n=e.start[ir("0x45")];for(;n&&e[ir("0x2b")](n);){if(n.getAttribute(ir("0x3f"))>0)return!1;n=n.nextSibling}return!0}(n)?Jo(e,ir("0x3d"),Jo(e,function(t){const e=t[ir("0x2")]()[ir("0x21")][ir("0x45")];return ir("0x42")+e[ir("0x6")]("listType")[ir("0x1a")]()+ir("0x11")}(n))):Jo(e,"*Outdent:* %0",Jo(e,ir("0x20"))),r={type:ir("0x0"),content:i};break;case ir("0xb"):case ir("0x26"):!1===o[ir("0x18")]&&(i="*Merge:* %0",r={type:ir("0x2d"),content:Jo(e,i,Jo(e,"ELEMENT_LIST_ITEM"))})}return r})),n[ir("0x5")].registerCustomCallback(ir("0x12"),ir("0x29"),"accept",(function(e,n){const o=[];for(let n of e)n[ir("0x21")][ir("0x45")]===n[ir("0x25")][ir("0x4b")]&&(n=t.model.createRange(t.model.createPositionAt(n.start[ir("0x45")],0))),o[ir("0x2c")](n);t.model[ir("0x30")]((e=>{const i=t[ir("0x27")][ir("0x1b")][ir("0x34")],r=Array[ir("0x15")](i[ir("0x49")]()).map((t=>s.LiveRange[ir("0x3")](t)));e[ir("0x4d")](o),t[ir("0x40")][ir("0xa")](n[ir("0x16")]).refresh(),n[ir("0x24")][ir("0x2c")]({forceDefaultExecution:!0}),t[ir("0x3a")](n[ir("0x16")],...n[ir("0x24")]),e.setSelection(r);for(const t of r)t[ir("0x7")]()}))}))}}const sr=["locale","document","change","handleListStartCommand","from","registerDescriptionCallback","DocumentListPropertiesEditing","replace","reversed","listStyle","has","enableCommand","selection","startIndex","ELEMENT_","listReversed","type","filter","commandParams","plugins","formatBlock","*Format:* set order to regular","_LIST_","numbered","list.properties","handleListReversedCommand","_getTranslationKeyForListStyle","model","afterInit","getSelectedBlocks","listType","TrackChangesEditing","_getSuggestionBlocks","isListItemBlock","expandListBlocksToCompleteList","DocumentListPropertiesUtils","handleDescriptions","*Change to:* %0","formatInline","_getSuggestionBlocksForListStyle","*Format:* set start index to %0","isFirstBlockOfListItem","config","get","commandName","bind","getListTypeFromListStyleType","markMultiRangeBlockFormat","DocumentListUtils","format","getAttribute","toUpperCase","*Format:* set order to reversed","push","listStart","editor"];var xr,ar;xr=sr,ar=484,function(t){for(;--t;)xr.push(xr.shift())}(++ar);const cr=function(t,e){return sr[t-=0]};class lr extends t.Plugin{[cr("0x30")](){if(!this.editor[cr("0x27")][cr("0x1e")](cr("0x1a")))return;const t=this.editor[cr("0x6")][cr("0x7")](cr("0x2c")),e=this[cr("0x13")][cr("0x27")][cr("0x7")](cr("0x33"));t.styles&&e[cr("0x1f")]("listStyle",this.handleListStyleCommand[cr("0x9")](this)),t[cr("0x1c")]&&e[cr("0x1f")](cr("0x23"),this[cr("0x2d")].bind(this)),t.startIndex&&e.enableCommand(cr("0x12"),this[cr("0x17")][cr("0x9")](this)),e._descriptionFactory[cr("0x19")](this.handleDescriptions[cr("0x9")](this))}handleListStyleCommand(t,e={}){const n=this[cr("0x13")].plugins[cr("0x7")](cr("0x33")),o=this[cr("0x3")]();this[cr("0x13")][cr("0x2f")].change((()=>{n[cr("0xb")](o,{commandName:"listStyle",commandParams:[{type:e[cr("0x24")]}],formatGroupId:cr("0x1d")})}))}[cr("0x2d")](t,e={}){const n=this.editor[cr("0x27")][cr("0x7")](cr("0x33")),o=this[cr("0x13")][cr("0x27")][cr("0x7")](cr("0xc")),i=this._getSuggestionBlocks((t=>o[cr("0x35")](t)&&cr("0x2b")===t[cr("0xe")](cr("0x32"))));null!==i&&this[cr("0x13")][cr("0x2f")][cr("0x16")]((()=>{n.markMultiRangeBlockFormat(i,{commandName:"listReversed",commandParams:[{reversed:e[cr("0x1c")]}],formatGroupId:cr("0x23")})}))}[cr("0x17")](t,e={}){const n=this[cr("0x13")].plugins[cr("0x7")](cr("0x33")),o=this.editor[cr("0x27")][cr("0x7")](cr("0xc")),i=this[cr("0x34")]((t=>o[cr("0x35")](t)&&cr("0x2b")===t.getAttribute(cr("0x32"))));null!==i&&this[cr("0x13")][cr("0x2f")][cr("0x16")]((()=>{n[cr("0xb")](i,{commandName:cr("0x12"),commandParams:[{startIndex:e[cr("0x21")]}],formatGroupId:cr("0x12")})}))}[cr("0x0")](t){if(cr("0x28")!=t[cr("0x24")]&&cr("0x2")!=t[cr("0x24")])return;const e=this[cr("0x13")][cr("0x14")],{data:n}=t;if(!n)return;let o,i;switch(n[cr("0x8")]){case cr("0x1d"):o=cr("0x1"),i={type:cr("0xd"),content:Jo(e,o,Jo(e,this._getTranslationKeyForListStyle(n.commandParams[0][cr("0x24")])))};break;case cr("0x23"):o=n[cr("0x26")][0][cr("0x1c")]?cr("0x10"):cr("0x29"),i={type:"format",content:Jo(e,o)};break;case cr("0x12"):o=cr("0x4"),i={type:"format",content:Jo(e,o,n[cr("0x26")][0][cr("0x21")])}}return i}[cr("0x3")](){const t=this[cr("0x13")][cr("0x27")][cr("0x7")]("DocumentListUtils");let e=Array[cr("0x18")](this[cr("0x13")][cr("0x2f")][cr("0x15")][cr("0x20")][cr("0x31")]());return e[cr("0x11")](...t[cr("0x36")](e)),e=[...new Set(e)],e}[cr("0x34")](t){const e=this[cr("0x13")][cr("0x27")][cr("0x7")](cr("0xc"));let n=Array.from(this[cr("0x13")][cr("0x2f")][cr("0x15")].selection[cr("0x31")]())[cr("0x25")](t);if(!n.length)return null;n=e[cr("0x36")](n);const o=[];for(const t of n)e[cr("0x5")](t)&&o[cr("0x11")](t);return o}[cr("0x2e")](t){return cr("0x22")+this.editor[cr("0x27")][cr("0x7")](cr("0x37"))[cr("0xa")](t).toUpperCase()+cr("0x2a")+t[cr("0xf")]()[cr("0x1b")](/-/g,"_")}}var ur=n(331);const dr=["nextSibling","requires","hasClass","data","editing","get","getFirstRange","mapper","writer","change","editor","enterBlock","parent","enter","getFirstPosition","bind","createRange","options","setSelection","plugins","high","removeMarker:suggestion:insertion","afterExecute","init","createPositionAt","markerNameToElements","enableCommand","selection","addMarker:suggestion:insertion","markInsertion","model","remove","split","markerName","TrackChangesEditing","downcastDispatcher","fire"];var gr,fr;gr=dr,fr=200,function(t){for(;--t;)gr.push(gr.shift())}(++fr);const mr=function(t,e){return dr[t-=0]};class hr extends t.Plugin{static get[mr("0x17")](){return[ur.Enter]}[mr("0x8")](){const t=this[mr("0x20")],e=t[mr("0x4")].get(mr("0x13")),n=t.commands[mr("0x1b")](mr("0x23"));e[mr("0xb")]("enter",(()=>{t[mr("0xf")][mr("0x1f")]((o=>{const i=t[mr("0xf")].document[mr("0xc")],r=i[mr("0x24")](),x=s.LiveRange.fromRange(i[mr("0x1c")]());if(n[mr("0x21")](o)){const n=t.model[mr("0x9")](r[mr("0x22")][mr("0x16")],0),i=o[mr("0x1")](r,n);e[mr("0xe")](i)}else o[mr("0x3")](o[mr("0x1")](x.end));x.detach(),n[mr("0x15")](mr("0x7"),{writer:o})}))})),t[mr("0x1a")][mr("0x14")].on(mr("0xd"),$i(t,mr("0x11")),{priority:mr("0x5")}),t[mr("0x1a")].downcastDispatcher.on(mr("0x6"),((t,e,n)=>{const o=n.mapper[mr("0xa")](e[mr("0x12")]);if(o)for(const t of o)t[mr("0x18")]("ck-suggestion-marker-split")&&(n[mr("0x1d")].unbindElementFromMarkerName(t,e[mr("0x12")]),n[mr("0x1e")][mr("0x10")](t))}),{priority:mr("0x5")}),t[mr("0x19")][mr("0x14")].on(mr("0xd"),((e,n,o)=>{o[mr("0x2")].showSuggestionHighlights&&$i(t,mr("0x11"),{showActiveMarker:!1})[mr("0x0")](this)(e,n,o)}),{priority:mr("0x5")})}}const pr=["TrackChangesEditing","bind","getMarkersGroup","findByTextCallback","filter","findPrevious","item","markers","afterInit","replace","createRange","has","model","suggestion:deletion","enableCommand","createPositionAt","plugins","getRange","start","getIntersection","replaceAll","handleFindCommand","string","find","get","editor","findNext","FindAndReplaceEditing","FindAndReplaceUtils"];var br,Er;br=pr,Er=348,function(t){for(;--t;)br.push(br.shift())}(++Er);const _r=function(t,e){return pr[t-=0]};class Tr extends t.Plugin{[_r("0x8")](){if(!this[_r("0x19")][_r("0x10")][_r("0xb")](_r("0x1b")))return;const t=this[_r("0x19")].plugins[_r("0x18")](_r("0x0"));t.enableCommand(_r("0x17"),this[_r("0x15")][_r("0x1")](this)),t.enableCommand(_r("0x1a")),t[_r("0xe")](_r("0x5")),t[_r("0xe")](_r("0x9")),t[_r("0xe")](_r("0x14"))}[_r("0x15")](t,e,n={}){const o=this[_r("0x19")].plugins[_r("0x18")](_r("0x1c"));if(void 0!==n)return t((t=>(_r("0x16")==typeof e?o[_r("0x3")](e,n):e)(t)[_r("0x4")]((e=>!1===this._isInDeletionRange(e,t[_r("0x6")])))),n)}_isInDeletionRange(t,e){const n=this.editor[_r("0xc")][_r("0xa")](this[_r("0x19")][_r("0xc")][_r("0xf")](e,t[_r("0x12")]),this[_r("0x19")][_r("0xc")].createPositionAt(e,t.end));for(const t of this[_r("0x19")][_r("0xc")][_r("0x7")][_r("0x2")](_r("0xd")))if(null!==n[_r("0x13")](t[_r("0x11")]()))return!0;return!1}}const yr=["commandParams","type","fontBackgroundColor","fontSize","afterInit","*Set font background color:* %0","format","*Reset font background color*","fontSize.options","FORMAT_FONT_COLOR","registerDescriptionCallback","_registerLegacyDescription","trim","fontColor.colors","formatInline","locale","commandName","*Set font size:* %0","FORMAT_FONT_SIZE","FORMAT_FONT_FAMILY","FORMAT_FONT_BACKGROUND","_descriptionFactory","normalizeSizeOptions","toLowerCase","FontColorEditing","has","model","editor","label","plugins","FontBackgroundColorEditing","TrackChangesEditing","*Set font color:* %0","FontFamilyEditing","FontSize","get","title","*Reset font size*","fontFamily","fontColor","value","find","*Reset font family*","config","_enableDefaultAttributesIntegration","registerAttributeLabel"];var Cr,Ar;Cr=yr,Ar=250,function(t){for(;--t;)Cr.push(Cr.shift())}(++Ar);const kr=function(t,e){return yr[t-=0]},Ir=[{pluginName:"FontSizeEditing",commandName:kr("0x1d")},{pluginName:kr("0xd"),commandName:"fontFamily"},{pluginName:kr("0x4"),commandName:kr("0x13")},{pluginName:kr("0xa"),commandName:kr("0x1c")}];class Sr extends t.Plugin{[kr("0x1e")](){const t=this[kr("0x7")][kr("0x29")],e=this[kr("0x7")][kr("0x9")][kr("0xf")](kr("0xb"));for(const{pluginName:t,commandName:n}of Ir)this[kr("0x7")].plugins[kr("0x5")](t)&&e[kr("0x18")](n,[n]);t.t,e[kr("0x1")][kr("0x19")](kr("0x1d"),Jo(t,kr("0x2c"))),e[kr("0x1")].registerAttributeLabel("fontFamily",Jo(t,kr("0x2d"))),e[kr("0x1")][kr("0x19")](kr("0x13"),Jo(t,kr("0x23"))),e._descriptionFactory[kr("0x19")](kr("0x1c"),Jo(t,kr("0x0"))),this[kr("0x25")]()}[kr("0x25")](){const t=this[kr("0x7")],e=t.locale;t.plugins[kr("0xf")](kr("0xb"))[kr("0x1")][kr("0x24")]((t=>{const n=e.t;if(kr("0x28")!=t[kr("0x1b")])return;const{data:o}=t;if(null!=o){if("fontSize"==o.commandName){const t=o[kr("0x1a")][0][kr("0x14")];if(t){const o=n(this.editor.plugins[kr("0xf")](kr("0xe"))[kr("0x2")](this[kr("0x7")].config[kr("0xf")](kr("0x22")))[kr("0x15")]((e=>e[kr("0x6")]==t))[kr("0x10")]).toLowerCase();return{type:kr("0x20"),content:Jo(e,kr("0x2b"),o)}}return{type:kr("0x20"),content:Jo(e,kr("0x11"))}}if(kr("0x12")==o[kr("0x2a")]){const t=o[kr("0x1a")][0][kr("0x14")];return t?{type:kr("0x20"),content:Jo(e,"*Set font family:* %0",t)}:{type:"format",content:Jo(e,kr("0x16"))}}if(kr("0x13")==o[kr("0x2a")]){const t=o.commandParams[0][kr("0x14")];if(t){const o=(0,i.normalizeColorOptions)(this[kr("0x7")][kr("0x17")][kr("0xf")](kr("0x27"))).find((e=>e[kr("0x6")]==t));let r=t,s="";return o&&(r=o.label,s=n(r)[kr("0x3")]()),{type:kr("0x20"),content:Jo(e,kr("0xc"),s)[kr("0x26")](),color:{value:t,title:s||r}}}return{type:kr("0x20"),content:Jo(e,"*Reset font color*")}}if(kr("0x1c")==o[kr("0x2a")]){const t=o[kr("0x1a")][0][kr("0x14")];if(t){const o=(0,i.normalizeColorOptions)(this.editor[kr("0x17")][kr("0xf")]("fontBackgroundColor.colors")).find((e=>e[kr("0x6")]==t));let r=t,s="";return o&&(r=o[kr("0x8")],s=n(r)[kr("0x3")]()),{type:kr("0x20"),content:Jo(e,kr("0x1f"),s)[kr("0x26")](),color:{value:t,title:s||r}}}return{type:kr("0x20"),content:Jo(e,kr("0x21"))}}}}))}}const vr=["registerDescriptionCallback","join","model","length","_enableDefaultAttributesIntegration","fontColor.colors","format","enableCommand","fontBackgroundColor","type","title","pasteFormat","afterInit","locale","TrackChangesEditing","toLowerCase","config","copyFormat","get","label","normalizeSizeOptions","_registerLegacyDescription","entries","find","formatBlock","boolean","toUpperCase","charAt","*Remove all formatting*","push","commands","FontSize","plugins","editor","commandParams","fontColor","formatInline"];var Rr,Nr;Rr=vr,Nr=180,function(t){for(;--t;)Rr.push(Rr.shift())}(++Nr);const Lr=function(t,e){return vr[t-=0]};class Mr extends t.Plugin{[Lr("0x11")](){const t=this[Lr("0x1")],e=t[Lr("0x0")][Lr("0x17")](Lr("0x13")),n=t.commands.get(Lr("0x16")),o=t[Lr("0x23")][Lr("0x17")](Lr("0x10"));n&&o&&(e[Lr("0x9")](Lr("0x10")),e[Lr("0xc")](Lr("0x16")),this[Lr("0x1a")]())}[Lr("0x1a")](){const t=this[Lr("0x1")],e=t[Lr("0x12")];t.plugins[Lr("0x17")](Lr("0x13"))._descriptionFactory[Lr("0x5")]((n=>{if(Lr("0x1d")!=n[Lr("0xe")]&&Lr("0x4")!=n.type)return;const{data:o}=n;if(o&&Lr("0x10")===o.commandName){const n=[],i=o[Lr("0x2")][0];for(const[e,o]of Object[Lr("0x1b")](i))n[Lr("0x22")](wr(t,e,o));return n[Lr("0x8")]?{type:Lr("0xb"),content:Jo(e,"*Set format to:* %0",n[Lr("0x6")](", "))}:{type:"format",content:Jo(e,Lr("0x21"))}}}))}}function wr(t,e,n){const o=t[Lr("0x12")].t,r=e.split(/(?=[A-Z])/)[Lr("0x6")](" "),s=o(r[Lr("0x20")](0)[Lr("0x1f")]()+r.slice(1))[Lr("0x14")]();if(Lr("0x1e")==typeof n)return s;if(Lr("0x3")===e||Lr("0xd")===e){const e=(0,i.normalizeColorOptions)(t[Lr("0x15")][Lr("0x17")](Lr("0xa")))[Lr("0x1c")]((t=>t[Lr("0x7")]==n));return s+" ("+(e?o(e[Lr("0x18")])[Lr("0x14")]():n)+")"}if("fontSize"===e&&isNaN(parseFloat(n))){const e=t[Lr("0x0")][Lr("0x17")](Lr("0x24"))[Lr("0x19")](t[Lr("0x15")].get("fontSize.options"))[Lr("0x1c")]((t=>t[Lr("0x7")]==n));return s+" ("+(e?o(e[Lr("0xf")]).toLowerCase():n)+")"}return s+" ("+n+")"}const Or=["model","editor","format","has","commandParams","find","*Change to:* %0","ELEMENT_HEADING","heading.options","_enableDefaultAttributesIntegration","name","type","plugins","value","title","_getHeadingLevel","_registerLegacyDescription","registerDescriptionCallback","afterInit","heading","config","TrackChangesEditing","paragraph","formatBlock","registerElementLabel","commandName","HeadingEditing","ELEMENT_HEADING_CUSTOM","_headingOptions","match","_descriptionFactory"];var Fr,Dr;Fr=Or,Dr=389,function(t){for(;--t;)Fr.push(Fr.shift())}(++Dr);const Br=function(t,e){return Or[t-=0]};class Pr extends t.Plugin{[Br("0x1")](){const t=this[Br("0xf")];if(!t[Br("0x1a")][Br("0x11")](Br("0x9")))return;this[Br("0xb")]=t[Br("0x3")].get(Br("0x16"));const e=t.locale,n=t[Br("0x1a")].get(Br("0x4"));n[Br("0x17")](Br("0x2"));for(const t of this[Br("0xb")])Br("0x5")!=t[Br("0xe")]&&n[Br("0xd")][Br("0x7")](t[Br("0xe")],(n=>{const o=this._getHeadingLevel(t[Br("0xe")]);return null!==o?(s=n,x=o,Jo(e,Br("0x15"),[s,x])):(i=n,r=t[Br("0x1c")],Jo(e,"ELEMENT_HEADING_CUSTOM",[i,r]));var i,r,s,x}));this[Br("0x1e")]()}[Br("0x1e")](){const t=this[Br("0xf")],e=t.locale;t[Br("0x1a")].get("TrackChangesEditing")[Br("0xd")][Br("0x0")]((t=>{if(Br("0x6")!=t[Br("0x19")])return;const{data:n}=t;if(n&&"heading"==n[Br("0x8")]){const t=n[Br("0x12")][0][Br("0x1b")],s=this[Br("0x1d")](t);if(null!==s)return{type:Br("0x10"),content:Jo(e,"*Change to:* %0",(1,r=s,Jo(e,Br("0x15"),[1,r])))};const x=this._headingOptions.find((e=>e[Br("0xe")]===t)).title;return{type:Br("0x10"),content:Jo(e,Br("0x14"),(o=1,i=x,Jo(e,Br("0xa"),[o,i])))}}var o,i,r}))}[Br("0x1d")](t){var e,n;const o=t[Br("0xc")](/^heading(\d+)/);if(o)return o[1];const i=null===(e=this[Br("0xb")])||void 0===e?void 0:e[Br("0x13")]((e=>e.model==t));if(i&&i.view){const t=i.view,e=(null!==(n=t[Br("0x18")])&&void 0!==n?n:t)[Br("0xc")](/^h(\d+)/);if(e)return e[1]}return null}}const Ur=["FORMAT_HIGHLIGHT","find","get","highlight.options","locale","color","config","title","_descriptionFactory","format","commandName","HighlightEditing","_registerLegacyDescription","model","type","TrackChangesEditing","*Set highlight:* %0","editor","*Remove highlight*","registerDescriptionCallback","plugins","formatInline","toLowerCase","highlight"];var jr,Gr;jr=Ur,Gr=241,function(t){for(;--t;)jr.push(jr.shift())}(++Gr);const Vr=function(t,e){return Ur[t-=0]};class Hr extends t.Plugin{afterInit(){const t=this[Vr("0x10")];if(!t[Vr("0x13")].has(Vr("0xa")))return;const e=t[Vr("0x13")].get("TrackChangesEditing"),n=t[Vr("0x3")];e._enableDefaultAttributesIntegration(Vr("0x16"),[Vr("0x16")]),e[Vr("0x7")].registerAttributeLabel(Vr("0x16"),Jo(n,Vr("0x17"))),this._registerLegacyDescription()}[Vr("0xb")](){const t=this[Vr("0x10")],e=t[Vr("0x3")];t[Vr("0x13")][Vr("0x1")](Vr("0xe"))[Vr("0x7")][Vr("0x12")]((n=>{if(Vr("0x14")!=n[Vr("0xd")])return;const{data:o}=n;if(o&&Vr("0x16")==o[Vr("0x9")]){const n=e.t,i=o.commandParams[0].value;if(i){const o=t[Vr("0x5")].get(Vr("0x2"))[Vr("0x0")]((t=>t[Vr("0xc")]==i)),r=n(o[Vr("0x6")])[Vr("0x15")]();return{type:"format",content:Jo(e,Vr("0xf"),r),color:{value:o[Vr("0x4")],title:o[Vr("0x6")]}}}return{type:Vr("0x8"),content:Jo(e,Vr("0x11"),Jo(e,Vr("0x17")))}}}))}}const zr=["dataDowncast","high","ck-horizontal-line","createPositionAt","ELEMENT_HORIZONTAL_LINE","editor","afterInit","addClass","insert","HorizontalLineEditing","locale","horizontalLine","enableCommand","showSuggestionHighlights","for","createEmptyElement","registerElementLabel","elementToStructure","get","conversion","div"];var Wr,Kr;Wr=zr,Kr=134,function(t){for(;--t;)Wr.push(Wr.shift())}(++Kr);const qr=function(t,e){return zr[t-=0]};class Xr extends t.Plugin{[qr("0x13")](){const t=this[qr("0x12")];if(!t.plugins.has(qr("0x1")))return;t.plugins[qr("0xa")]("TrackChangesEditing")[qr("0x4")]("horizontalLine");const e=t.plugins.get("TrackChangesEditing"),n=t[qr("0x2")];e._descriptionFactory[qr("0x8")](qr("0x3"),(t=>Jo(n,qr("0x11"),t))),t[qr("0xb")][qr("0x6")](qr("0xd"))[qr("0x9")]({model:qr("0x3"),view:(t,{writer:e,options:n})=>{if(!n[qr("0x5")])return null;const o=e.createContainerElement(qr("0xc")),i=e[qr("0x7")]("hr");return e[qr("0x14")](qr("0xf"),o),e[qr("0x0")](e[qr("0x10")](o,0),i),o},converterPriority:qr("0xe")})}}const $r=["has","format","afterInit","start","attribute","_registerLegacyDescription","rawHtml","TrackChangesEditing","registerDescriptionCallback","formatBlock","ELEMENT_HTML_EMBED","commandName","get","getFirstRange","_enableDefaultAttributesIntegration","_descriptionFactory","registerElementLabel","value","htmlEmbed","editor","plugins","locale"];var Zr,Qr;Zr=$r,Qr=381,function(t){for(;--t;)Zr.push(Zr.shift())}(++Qr);const Yr=function(t,e){return $r[t-=0]};class Jr extends t.Plugin{[Yr("0x11")](){const t=this[Yr("0xc")];if(!t[Yr("0xd")][Yr("0xf")]("HtmlEmbed"))return;const e=t[Yr("0xd")].get(Yr("0x0")),n=t[Yr("0xe")];e[Yr("0x8")][Yr("0x9")]("rawHtml",(t=>Jo(n,Yr("0x3"),t))),e[Yr("0x7")](Yr("0xb"),[],[Yr("0xa")]),e[Yr("0x8")][Yr("0x1")]((t=>{if(Yr("0x13")!=t.type)return;const{data:e}=t;if(e&&Yr("0xa")==e.key&&t[Yr("0x6")]()[Yr("0x12")].nodeAfter.is("element",Yr("0x15"))){const t=Jo(n,Yr("0x3"));return{type:"format",content:Jo(n,"*Change %0 content*",t)}}})),this[Yr("0x14")]()}[Yr("0x14")](){const t=this[Yr("0xc")],e=t[Yr("0xe")];t.plugins[Yr("0x5")]("TrackChangesEditing")[Yr("0x8")][Yr("0x1")]((t=>{if(Yr("0x2")!=t.type)return;const{data:n}=t;if(n&&"htmlEmbed"==n[Yr("0x4")]){const t=Jo(e,Yr("0x3"));return{type:Yr("0x10"),content:Jo(e,"*Change %0 content*",t)}}}))}}const ts=["discard","enableCommand","markDeletion","*Set image text alternative:* %0","ImageBlockEditing","alt","isCollapsed","registerCustomCallback","convertInlineImageToBlock","deletion","ImageCaptionEditing","ImageResize","formatInline","getSuggestionCallback","type","registerDescriptionCallback","getNearestSelectionRange","key","formatBlock","ImageInlineEditing","imageTextAlternative","ELEMENT_CAPTION","forceDefaultExecution","getCaptionFromImageModelElement","*Set image width:* %0","element","findIndex","createRange","attribute","ELEMENT_IMAGE","forward","insertImage","FORMAT_IMAGE_SIZE","afterInit","detach","document","insertion","imageStylePreApply","_descriptionFactory","getContainedElement","resizeImage","end","newValue","commandParams","backward","isOwn","resizedWidth","imageCaption","imageBlock","locale","*Remove image text alternative*","chain","filter","accept","selection","imageTypeInline","convertBlockImageToInline","markBlockFormat","getClosestSelectedImageElement","ImageCaptionUtils","TrackChangesEditing","width","registerAttributeLabel","join","imageInline","getFirstRange","_suggestionFactory","isEqual","model","fromPosition","uploadImage","registerElementLabel","ImageEditing","schema","plugins","isBefore","Block image to inline image","previous","isBlockImage","length","ELEMENT_INLINE_IMAGE","markInsertion","caption","get","format","imageTypeBlock","subType","start","createRangeOn","commandName","nodeAfter","isIntersecting","editor","_registerLegacyDescription","has","*Reset image width*"];var es,ns;es=ts,ns=321,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class is extends t.Plugin{[os("0x0")](){const t=this[os("0x3b")];if(!t[os("0x29")][os("0x3d")](os("0x27")))return;const e=t[os("0x29")][os("0x32")](os("0x1b")),n=t[os("0x29")].get("ImageUtils"),o=t[os("0x10")];e[os("0x40")](os("0x5e")),e._descriptionFactory.registerElementLabel(os("0xf"),(t=>Jo(o,os("0x5c"),t))),e._descriptionFactory[os("0x26")](os("0x1f"),(t=>Jo(o,os("0x2f"),t))),e[os("0x5")].registerElementLabel(os("0x31"),(()=>Jo(o,os("0x54")))),t[os("0x29")][os("0x3d")]("ImageUploadEditing")&&e.enableCommand(os("0x25")),t[os("0x29")][os("0x3d")](os("0x43"))&&t[os("0x29")][os("0x3d")](os("0x52"))&&(e[os("0x40")]("imageTypeInline",((o,i)=>{const r=n[os("0x19")](t[os("0x23")].document[os("0x15")]);t[os("0x23")].change((()=>{e[os("0x18")](r,{commandName:os("0x16"),commandParams:[i]},[],os("0x17"))}))})),e[os("0x40")](os("0x34"),((o,i)=>{t.model.change((r=>{let x=n[os("0x19")](t[os("0x23")][os("0x2")][os("0x15")]),a=r[os("0x37")](x);const c=s.LivePosition[os("0x24")](a[os("0x36")],"toPrevious"),l=s.LivePosition[os("0x24")](a[os("0x8")],"toNext");e[os("0x55")]((()=>o(i))),x=n[os("0x19")](t.model[os("0x2")][os("0x15")]),a=r[os("0x37")](x);const u=r[os("0x5a")](c,l);c[os("0x1")](),l[os("0x1")](),e[os("0x18")](x,{commandName:os("0x16"),commandParams:[i]},[],os("0x47")),u[os("0x36")][os("0x2a")](a[os("0x36")])&&e[os("0x30")](r[os("0x5a")](u[os("0x36")],a[os("0x36")]),os("0x47")),a[os("0x8")][os("0x2a")](u[os("0x8")])&&e[os("0x30")](r[os("0x5a")](a.end,u.end),os("0x47"))}))})),e._suggestionFactory[os("0x46")](os("0x51"),os("0x47"),"join",(()=>!1)),e[os("0x21")][os("0x46")](os("0x51"),"convertInlineImageToBlock",os("0x14"),(()=>!1)),e[os("0x21")][os("0x46")](os("0x51"),os("0x47"),os("0x3f"),e._suggestionFactory[os("0x4c")](os("0x51"),"",os("0x14"))),e[os("0x21")].registerCustomCallback("insertion",os("0x47"),os("0x1e"),(()=>!1)),e._suggestionFactory[os("0x46")](os("0x3"),os("0x47"),os("0x3f"),(([n])=>{const o=e._suggestionFactory.getSuggestionCallback("insertion","",os("0x3f"));let i=n[os("0x36")],r=n[os("0x8")];const s=t.model[os("0x28")][os("0x4f")](i,os("0xb")),x=t[os("0x23")][os("0x28")][os("0x4f")](r,os("0x5d"));s.isCollapsed&&(i=s[os("0x36")]),x[os("0x45")]&&(r=x[os("0x8")]),o([t[os("0x23")][os("0x5a")](i,r)])})),e._suggestionFactory.registerCustomCallback(os("0x51"),os("0x47"),"chain",x),e[os("0x21")].registerCustomCallback("insertion",os("0x47"),os("0x12"),x)),t[os("0x29")].has(os("0x49"))&&(e[os("0x40")]("toggleImageCaption",((o,i)=>{const r=t[os("0x29")][os("0x32")](os("0x1a"));let s=n[os("0x19")](t.model.document[os("0x15")]),x=r.getCaptionFromImageModelElement(s);t[os("0x23")].change((()=>{if(x)return void e[os("0x41")](t[os("0x23")][os("0x37")](x));const a=n[os("0x2d")](s);o(i),s=n.getClosestSelectedImageElement(t[os("0x23")][os("0x2")].selection),x=r[os("0x56")](s),e[os("0x30")](t[os("0x23")][os("0x37")](x),a?null:"imageCaption")}))})),e[os("0x21")].registerCustomCallback("insertion",os("0xe"),os("0x12"),x));const i=[{type:"formatBlock",subType:os("0x4")},{type:os("0x3"),subType:os("0xe")},{type:"formatBlock",subType:os("0x47")},{type:os("0x3"),subType:"convertInlineImageToBlock"}];function r(t,o){const r=i[os("0x59")]((({type:e,subType:n})=>t[os("0x4d")]==e&&t[os("0x35")]==n)),s=i[os("0x59")]((({type:t,subType:e})=>o[os("0x4d")]==t&&o[os("0x35")]==e));if(r<0||s<0)return!1;const x=t[os("0x20")](),a=o[os("0x20")]();if((0==r||1==r)&&2==s&&x[os("0x3a")](a))return!0;if(2==r&&3==s){const t=e._findSuggestions(x,os("0x3"))[os("0x13")]((({suggestion:t,meta:e})=>e[os("0xc")]&&os("0x47")==t[os("0x35")]));if(t[os("0x2e")]>1&&a[os("0x8")].isEqual(x[os("0x36")]))return!0;if(1==t.length&&(x.start[os("0x22")](a.end)||x[os("0x8")].isEqual(a[os("0x36")])))return!0}if(3==r&&3==s&&x[os("0x36")][os("0x2a")](a[os("0x36")])){const t=x[os("0x8")][os("0x39")],e=a[os("0x36")].nodeBefore;return n[os("0x2d")](t)&&t===e}return!1}function x(t,e){return r(t,e)?[t,e]:r(e,t)?[e,t]:null}t[os("0x29")][os("0x3d")](os("0x4a"))&&(e._enableDefaultAttributesIntegration("resizeImage",[],[os("0xd")]),e[os("0x5")][os("0x1d")](os("0xd"),Jo(o,os("0x5f")))),t[os("0x29")][os("0x3d")]("ImageTextAlternativeEditing")&&e._enableDefaultAttributesIntegration("imageTextAlternative",[],[os("0x44")]),e[os("0x5")][os("0x4e")]((t=>{if(i.find((({type:e,subType:n})=>t.type==e&&t[os("0x35")]==n)))return t[os("0x2c")]?{}:void 0})),e[os("0x5")].registerDescriptionCallback((t=>{if("insertion"==t[os("0x4d")]||os("0x48")==t[os("0x4d")]){const e=t[os("0x6")]();if(e&&e.is(os("0x58"),"caption"))return{type:os("0x3")==t[os("0x4d")]?"addObject":"removeObject",element:e,quantity:1}}})),e[os("0x5")][os("0x4e")]((t=>os("0x51")==t[os("0x4d")]&&"convertInlineImageToBlock"==t[os("0x35")]?{type:os("0x33"),content:"Inline image to block image"}:os("0x51")==t[os("0x4d")]&&os("0x17")==t[os("0x35")]?{type:os("0x33"),content:os("0x2b")}:void 0)),e[os("0x5")][os("0x4e")]((t=>{if(os("0x5b")!=t.type)return;const{data:e}=t;if(!e||os("0x44")!=e[os("0x50")])return;const n=e.newValue;return n?{type:os("0x33"),content:Jo(o,os("0x42"),'"'+n+'"')}:{type:os("0x33"),content:Jo(o,os("0x11"))}})),this[os("0x3c")]()}_registerLegacyDescription(){const t=this[os("0x3b")],e=t.locale;t[os("0x29")][os("0x32")](os("0x1b"))[os("0x5")][os("0x4e")]((t=>{if(os("0x51")!=t[os("0x4d")]&&os("0x4b")!=t[os("0x4d")])return;const{data:n}=t;if(n){if(os("0x53")==n[os("0x38")]){const t=n[os("0xa")][0][os("0x9")];return t?{type:"format",content:Jo(e,os("0x42"),'"'+t+'"')}:{type:os("0x33"),content:Jo(e,os("0x11"))}}if(os("0x7")==n[os("0x38")]){const t=n[os("0xa")][0][os("0x1c")];return t?{type:os("0x33"),content:Jo(e,os("0x57"),t)}:{type:"format",content:Jo(e,os("0x3e"))}}}}))}}const rs=["get","locale","registerCustomCallback","TrackChangesEditing","format","editor","getSuggestionCallback","accept","_handleLegacySuggestions","plugins","key","registerDescriptionCallback","_registerLegacyDescription","_descriptionFactory","type","_enableDefaultAttributesIntegration","_suggestionFactory","src","ImageEditing","formatBlock","discard","replaceImageSource","formatInline","*Replace image URL*"];var ss,xs;ss=rs,xs=148,function(t){for(;--t;)ss.push(ss.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{afterInit(){if(!this.editor[as("0x5")].has(as("0xe")))return;const t=this[as("0x1")][as("0x15")],e=this[as("0x1")].plugins[as("0x14")](as("0x17"));e[as("0xb")](as("0x11"),[],["src"]),e[as("0x9")][as("0x7")]((e=>{if("attribute"!=e[as("0xa")])return;const{data:n}=e;return n&&as("0xd")==n[as("0x6")]?n.newValue&&n.oldValue?{type:"format",content:Jo(t,as("0x13"))}:{type:as("0x0"),content:""}:void 0})),this._handleLegacySuggestions()}[as("0x4")](){const t=this[as("0x1")][as("0x5")][as("0x14")](as("0x17"));t._suggestionFactory[as("0x16")](as("0xf"),"replaceImageSource",as("0x3"),t[as("0xc")].getSuggestionCallback(as("0xf"),null,as("0x10"))),t[as("0xc")][as("0x16")](as("0xf"),as("0x11"),as("0x10"),t[as("0xc")][as("0x2")](as("0xf"),null,as("0x3"))),this[as("0x8")]()}[as("0x8")](){const t=this[as("0x1")],e=t[as("0x15")];t.plugins.get(as("0x17"))[as("0x9")][as("0x7")]((t=>{if("formatBlock"!=t[as("0xa")]&&as("0x12")!=t[as("0xa")])return;const{data:n}=t;return n&&as("0x11")===n.commandName?{type:"format",content:Jo(e,as("0x13"))}:void 0}))}}const ls=["Users","imageStylePreApply","isBlockImage","plugins","enableCommand","normalizedStyles","markBlockFormat","name","title","commands","imageTypeInline","ImageStyleEditing","isBefore","nodeBefore","end","imageCaption","*Format:* %0","selection","get","change","FORMAT_SIDE_IMAGE","getSuggestion","insertion","start","_suggestionFactory","markInlineFormat","next","value","newRange","createRangeOn","imageStyle","hasSuggestion","toLowerCase","discard","forEach","discardSuggestion","setImageNaturalSizeAttributes","locale","getChangedMarkers","filter","getSuggestionCallback","editor","convertInlineImageToBlock","commandName","type","join","getFirstRange","document","nodeAfter","commandReversedParams","refresh","subType","accept","from","findIndex","_splitMarkerName","afterInit","TrackChangesEditing","commandParams","getClosestSelectedImageElement","isEqual","registerDescriptionCallback","registerCustomCallback","shouldConvertImageType","suggestion","imageStylePostApply","model","chain","_registerLegacyDescription","formatBlock","isIntersecting","getSuggestions","differ","formatInline","length"];var us,ds;us=ls,ds=289,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};class fs extends t.Plugin{[gs("0x43")](){const t=this[gs("0x34")];if(!t.plugins.has(gs("0x16")))return;const n=t.plugins.get(gs("0x44")),o=t[gs("0xe")][gs("0x1d")]("ImageUtils"),i={};n[gs("0xf")](gs("0x29"),((i,r)=>{const s=t[gs("0xe")][gs("0x1d")](gs("0xb")).me,x=t[gs("0x14")][gs("0x1d")]("imageStyle");let a=o[gs("0x46")](t[gs("0x2")].document[gs("0x1c")]),c=t[gs("0x2")][gs("0x28")](a),l=x[gs("0x26")];if(l==r[gs("0x26")])return;const u={commandName:gs("0x29"),commandParams:[r],formatGroupId:(0,e.uid)()};t.model[gs("0x1e")]((()=>{if(n[gs("0x7")]()[gs("0x32")]((t=>t.isInContent&&s==t.author&&(gs("0x5")==t[gs("0x37")]||gs("0x9")==t[gs("0x37")])&&(gs("0xc")==t[gs("0x3e")]||gs("0x1")==t[gs("0x3e")])&&t[gs("0x39")]()[gs("0x47")](c)))[gs("0x2d")]((t=>n[gs("0x2e")](t.head))),a=o[gs("0x46")](t[gs("0x2")][gs("0x3a")][gs("0x1c")]),c=t[gs("0x2")][gs("0x28")](a),x[gs("0x3d")](),t.commands[gs("0x1d")](gs("0x15")).refresh(),t[gs("0x14")][gs("0x1d")]("imageTypeBlock").refresh(),l=x[gs("0x26")],l!=r[gs("0x26")])return o.isInlineImage(a)&&x[gs("0x4a")](r[gs("0x26")],a)?(i({...r,setImageSizes:!1}),a=o[gs("0x46")](t[gs("0x2")][gs("0x3a")][gs("0x1c")]),void n[gs("0x11")](a,{...u,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],"imageStylePreApply")):void(o[gs("0xd")](a)?n[gs("0x11")](a,u,[],"imageStylePostApply"):n[gs("0x24")](c,u,gs("0x1")))}))}));for(const e of t[gs("0xe")].get(gs("0x16"))[gs("0x10")])i[e[gs("0x12")]]=e[gs("0x13")][gs("0x2b")]();n[gs("0x23")][gs("0x49")](gs("0x5"),"imageStylePreApply",gs("0x38"),(()=>!1)),n._suggestionFactory[gs("0x49")](gs("0x5"),gs("0x1"),gs("0x38"),(()=>!1)),n[gs("0x23")][gs("0x49")](gs("0x9"),gs("0x1"),gs("0x38"),(()=>!1)),n[gs("0x23")][gs("0x49")](gs("0x5"),gs("0xc"),gs("0x3f"),(([t])=>{o[gs("0x2f")](t.getContainedElement())})),n[gs("0x23")][gs("0x49")](gs("0x5"),gs("0xc"),gs("0x2c"),((t,e)=>{n[gs("0x23")][gs("0x33")](gs("0x5"),"",gs("0x3f"))(t,{commandName:e[gs("0x36")],commandParams:e[gs("0x3c")]})})),n[gs("0x23")][gs("0x49")](gs("0x5"),gs("0xc"),gs("0x3"),(function(t,e){return s(t,e)?[t,e]:s(e,t)?[e,t]:null}));const r=[{type:gs("0x5"),subType:"imageStylePreApply"},{type:gs("0x21"),subType:gs("0x1a")},{type:gs("0x5"),subType:"convertInlineImageToBlock"},{type:gs("0x21"),subType:gs("0x35")}];function s(t,e){const i=r[gs("0x41")]((({type:e,subType:n})=>t[gs("0x37")]==e&&t.subType==n)),s=r.findIndex((({type:t,subType:n})=>e[gs("0x37")]==t&&e[gs("0x3e")]==n));if(i<0||s<0)return!1;const x=t[gs("0x39")](),a=e.getFirstRange();if((0==i||1==i)&&2==s&&x[gs("0x6")](a))return!0;if(2==i&&3==s){const t=n._findSuggestions(x,gs("0x21"))[gs("0x32")]((({suggestion:t,meta:e})=>e.isOwn&&"convertInlineImageToBlock"==t[gs("0x3e")]));if(t.length>1&&a[gs("0x19")][gs("0x47")](x[gs("0x22")]))return!0;if(1==t[gs("0xa")]&&(x[gs("0x22")][gs("0x47")](a[gs("0x19")])||x[gs("0x19")][gs("0x47")](a.start)))return!0}if(3==i&&3==s&&x[gs("0x22")][gs("0x17")](a[gs("0x22")])){const t=x[gs("0x19")][gs("0x3b")],e=a.start[gs("0x18")];return o[gs("0xd")](t)&&t===e}return!1}t.model[gs("0x3a")].registerPostFixer((()=>{let e=!1;const i=Array[gs("0x40")](t[gs("0x2")].document[gs("0x8")][gs("0x31")]());for(const{name:t,data:r}of i){const{group:i,type:s,subType:x,id:a}=n[gs("0x42")](t);if(gs("0x0")==i&&n[gs("0x2a")](a)){if(gs("0x5")==s&&(gs("0xc")==x||"imageStylePostApply"==x)){const t=n[gs("0x20")](a);if(r[gs("0x27")]){const i=t[gs("0x39")]().getContainedElement();if(o[gs("0xd")](i))continue;n[gs("0x2e")](t),e=!0}}if(gs("0x21")==s&&gs("0x1a")==x&&!r[gs("0x27")]){const t=n[gs("0x20")](a);t[gs("0x25")]&&t[gs("0x25")].isInContent&&(n[gs("0x2e")](t[gs("0x25")]),e=!0)}}}return e})),this[gs("0x4")](i)}_registerLegacyDescription(t){const e=this.editor,n=e[gs("0x30")];e[gs("0xe")][gs("0x1d")](gs("0x44"))._descriptionFactory[gs("0x48")]((e=>{if("formatBlock"!=e[gs("0x37")]&&gs("0x9")!=e[gs("0x37")])return;const{data:o}=e;if(!o||gs("0x29")!=o[gs("0x36")])return;const i=o[gs("0x45")][0][gs("0x26")];return r="side"===i?Jo(n,gs("0x1f")):t[i]||i,{type:"format",content:Jo(n,gs("0x1b"),r)};var r}))}}const ms=["afterInit","_handleImportedData","enableCommand","TrackChangesEditing","execute","high","collaboration_features","commands","listenTo","bind","dataInsert","get","value","_trackChangesExecuted","track_changes","Users","forEach","_trackChangesValueDuringImport","editor","importWord","plugins","trackChanges"];var hs,ps;hs=ms,ps=211,function(t){for(;--t;)hs.push(hs.shift())}(++ps);const bs=function(t,e){return ms[t-=0]};class Es extends t.Plugin{constructor(t){super(t),this._trackChangesValueDuringImport=!1,this._trackChangesExecuted=!1}[bs("0x9")](){const t=this.editor,e=t[bs("0x10")].get("importWord"),n=t[bs("0x10")][bs("0x14")](bs("0x8"));e&&(e.on(bs("0xd"),((t,[,e])=>{this[bs("0x4")]=n[bs("0x15")],e[bs("0xf")][bs("0x1")]=!this._trackChangesValueDuringImport}),{priority:bs("0xe")}),this.listenTo(e,bs("0x13"),this[bs("0xa")][bs("0x12")](this)),this[bs("0x11")](e,bs("0x13"),(()=>{this[bs("0x0")]&&(n.execute(),this[bs("0x0")]=!1)}),{priority:"lowest"}),t[bs("0x7")][bs("0x14")](bs("0xc"))[bs("0xb")](bs("0x6")))}_handleImportedData(t,e){const{suggestions:n}=e,o=this[bs("0x5")][bs("0x10")][bs("0x14")]("trackChanges"),i=o[bs("0x15")];this[bs("0x4")]!==i&&(o[bs("0xd")](),this[bs("0x0")]=!0),n&&n[bs("0x3")]((({id:t,type:e,author:n,created_at:o})=>{const i={id:t,type:e,authorId:this[bs("0x5")][bs("0x7")].get(bs("0x2")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:"importWord"}}};this[bs("0x5")][bs("0x7")][bs("0x14")]("TrackChangesEditing")._setSuggestionData(i)}))}}const _s=["enableCommand","has","formatBlock","*Indent:* %0","type","*Outdent:* %0","indentBlock","outdent","plugins","outdentBlock","getItems","editor","getItemLabel","FORMAT_INDENT","IndentBlock","IndentEditing","_enableDefaultAttributesIntegration","blockIndent","_registerLegacyDescription","registerAttributeLabel","commandName","get","_descriptionFactory","afterInit","format","TrackChangesEditing","indent","locale"];var Ts,ys;Ts=_s,ys=280,function(t){for(;--t;)Ts.push(Ts.shift())}(++ys);const Cs=function(t,e){return _s[t-=0]};class As extends t.Plugin{[Cs("0x17")](){const t=this[Cs("0xb")],e=t[Cs("0x8")].get(Cs("0x19"));if(t[Cs("0x8")][Cs("0x1")](Cs("0xf"))&&(e.enableCommand(Cs("0x1a")),e[Cs("0x0")](Cs("0x7"))),t.plugins.has(Cs("0xe")))for(const t of[Cs("0x6"),Cs("0x9")])e[Cs("0x10")](t);const n=t[Cs("0x1b")];e._registerBlockAttribute(Cs("0x11")),e._descriptionFactory[Cs("0x13")](Cs("0x11"),Jo(n,Cs("0xd"))),this[Cs("0x12")]()}_registerLegacyDescription(){const t=this[Cs("0xb")],e=t[Cs("0x1b")],n=t[Cs("0x8")][Cs("0x15")](Cs("0x19"));n[Cs("0x16")].registerDescriptionCallback((t=>{if(Cs("0x2")!=t[Cs("0x4")])return;const{data:o}=t;if(!o)return;if("indentBlock"!=o.commandName&&Cs("0x9")!=o[Cs("0x14")])return;const i=t[Cs("0xa")]()[0],r=n._descriptionFactory[Cs("0xc")](i);return Cs("0x6")==o[Cs("0x14")]?{type:Cs("0x18"),content:Jo(e,Cs("0x3"),r)}:Cs("0x9")==o[Cs("0x14")]?{type:"format",content:Jo(e,Cs("0x5"),r)}:void 0}))}}var ks,Is,Ss=["plugins","TrackChangesEditing","requires","editor","input"];ks=Ss,Is=208,function(t){for(;--t;)ks.push(ks.shift())}(++Is);var vs=function(t,e){return Ss[t-=0]};class Rs extends t.Plugin{static get[vs("0x4")](){return[Hi.Input]}init(){this[vs("0x0")][vs("0x2")].get(vs("0x3")).enableCommand(vs("0x1"))}}const Ns=["unlink","label","locale","_descriptionFactory","map","LinkEditing","link","registerDescriptionCallback","_registerLegacyDescription","commandParams","_enableDefaultAttributesIntegration","*Set link:* %0","editor","get","format","type","has","commandName","linkHref","toLowerCase","afterInit","TrackChangesEditing","formatInline","manualDecorators","*Remove link*"];var Ls,Ms;Ls=Ns,Ms=437,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ms);const ws=function(t,e){return Ns[t-=0]};class Os extends t.Plugin{[ws("0x8")](){const t=this[ws("0x0")];if(!t.plugins[ws("0x4")](ws("0x12")))return;const e=t.plugins.get(ws("0x9")),n=t.commands[ws("0x1")](ws("0x13"));e[ws("0x17")](ws("0x13"),[ws("0x6"),...n.manualDecorators[ws("0x11")]((t=>t.id))]),e[ws("0x17")](ws("0xd"));for(const t of n[ws("0xb")])e[ws("0x10")].registerAttributeLabel(t.id,"link ("+t[ws("0xe")][ws("0x7")]()+")");e[ws("0x10")].registerDescriptionCallback((e=>{if("attribute"!=e[ws("0x3")])return;const{data:n}=e;if(!n||"linkHref"!=n.key)return;const o=n.newValue,i=t[ws("0xf")];return{type:ws("0x2"),content:o?Jo(i,"*Set link:* %0",'"'+o+'"'):Jo(i,"*Remove link*")}})),this[ws("0x15")]()}[ws("0x15")](){const t=this[ws("0x0")],e=t.locale;t.plugins[ws("0x1")](ws("0x9"))[ws("0x10")][ws("0x14")]((t=>{if(ws("0xa")!=t.type)return;const{data:n}=t;if(n){if(ws("0x13")==n.commandName){const t=n[ws("0x16")][0];return{type:ws("0x2"),content:Jo(e,ws("0x18"),'"'+t+'"')}}return ws("0xd")==n[ws("0x5")]?{type:ws("0x2"),content:Jo(e,ws("0xc"))}:void 0}}))}}const Fs=["ELEMENT_LIST_ITEM","selection","element","slice","commands","blockName","end","*Indent:* %0","locale","length","value","ELEMENT_TODO_LIST","commandName","listIndent","editor","model","format","*Check item*","isObject","paragraph","createRange","commandParams","filter","document","name","_selectedElements","List","ListEditing","afterInit","getAttribute","execute","TodoListEditing","previousSibling","checkTodoList","schema","has","*Outdent:* %0","parent","type","todoList","_descriptionFactory","registerElementLabel","from","plugins","markBlockFormat","*Uncheck item*","forceValue","indentList","ELEMENT_NUMBERED_LIST","numberedList","checkChild","add","change","nextSibling","listItem","enableCommand","getSelectedBlocks","outdentList","findIndex","formatInline","bulleted","bulletedList"];var Ds,Bs;Ds=Fs,Bs=202,function(t){for(;--t;)Ds.push(Ds.shift())}(++Bs);const Ps=function(t,e){return Fs[t-=0]};class Us extends t.Plugin{[Ps("0xc")](){const t=this[Ps("0x3c")],e=t[Ps("0x36")];if(!t.plugins[Ps("0x13")](Ps("0xb")))return;const n=t[Ps("0x1b")].get("TrackChangesEditing"),o=t[Ps("0x1b")].has(Ps("0xf"));function i(e){return()=>{const o=t[Ps("0x3d")].document[Ps("0x2f")],i=t[Ps("0x32")].get(e);if(i.value)return void t[Ps("0xe")](Ps("0x3"),{});const r=e.slice(0,-4),s=function(t,e,n){let o=Array.from(t).filter((t=>{return e=t,(o=n)[Ps("0x22")](e[Ps("0x15")],Ps("0x26"))&&!o[Ps("0x2")](e);var e,o}));o=o.filter((t=>!t.is(Ps("0x30"),"listItem")||t[Ps("0xd")]("listType")!=e));const i=new Set;for(const t of o)t.is(Ps("0x30"),"listItem")?i.add(js(t)):i[Ps("0x23")](t);return Array[Ps("0x1a")](i)}(o[Ps("0x28")](),r,t[Ps("0x3d")][Ps("0x12")]);t[Ps("0x3d")].change((()=>{for(const t of s)n.markBlockFormat(t,{commandName:e,commandParams:[{forceValue:!i[Ps("0x38")]}],formatGroupId:Ps("0x33")},Gs(t))}))}}function r(e){return()=>{const o=function(t){let e=Array.from(t);const n=e[Ps("0x2a")]((t=>Ps("0x26")!=t[Ps("0x8")]));return n>-1&&(e=e[Ps("0x31")](0,n)),e}(t.model[Ps("0x7")][Ps("0x2f")][Ps("0x28")]()),i=t.model[Ps("0x4")](t.model.createPositionAt(o[0],"before"),t[Ps("0x3d")].createPositionAt(o[o[Ps("0x37")]-1],Ps("0x34")));t[Ps("0x3d")].change((()=>{n[Ps("0x1c")](i,{commandName:e,commandParams:[],formatGroupId:Ps("0x3b")},function(t){const e=new Set;for(const n of t){let t=n.nextSibling;for(;t&&t[Ps("0xd")](Ps("0x3b"))>n[Ps("0xd")](Ps("0x3b"));)e[Ps("0x23")](t),t=t.nextSibling}return Array[Ps("0x1a")](e)}(o))}))}}n.enableCommand(Ps("0x21"),i(Ps("0x21"))),n[Ps("0x27")]("bulletedList",i(Ps("0x2d"))),o&&n.enableCommand(Ps("0x17"),i(Ps("0x17"))),n.enableCommand(Ps("0x1f"),r(Ps("0x1f"))),n.enableCommand(Ps("0x29"),r(Ps("0x29"))),o&&n[Ps("0x27")](Ps("0x11"),(()=>{const e=t[Ps("0x32")].get(Ps("0x11")),o=Array[Ps("0x1a")](e[Ps("0x9")]);o[Ps("0x6")]((t=>t[Ps("0xd")]("todoListChecked")!=e[Ps("0x38")])),t[Ps("0x3d")][Ps("0x24")]((()=>{for(const t of o)n[Ps("0x1c")](t,{commandName:Ps("0x11"),commandParams:[{forceValue:!e[Ps("0x38")]}]})}))})),n[Ps("0x18")][Ps("0x19")](Ps("0x26"),(t=>Jo(e,"ELEMENT_LIST_ITEM",t))),n._descriptionFactory.registerDescriptionCallback((t=>{if("formatBlock"!=t[Ps("0x16")]&&Ps("0x2b")!=t.type)return;const{data:n}=t;if(n){if(Ps("0x21")==n[Ps("0x3a")]||Ps("0x2d")==n[Ps("0x3a")]||"todoList"==n.commandName)switch(n.commandName.replace(Ps("0xa"),"")){case Ps("0x2c"):return o(Jo(e,"ELEMENT_BULLETED_LIST"));case"numbered":return o(Jo(e,Ps("0x20")));case"todo":return o(Jo(e,Ps("0x39")))}if(Ps("0x1f")==n[Ps("0x3a")])return{type:Ps("0x0"),content:Jo(e,Ps("0x35"),Jo(e,Ps("0x2e")))};if(Ps("0x29")==n[Ps("0x3a")])return{type:Ps("0x0"),content:Jo(e,Ps("0x14"),Jo(e,"ELEMENT_LIST_ITEM"))};if("checkTodoList"==n[Ps("0x3a")])return n[Ps("0x5")][0][Ps("0x1e")]?{type:Ps("0x0"),content:Jo(e,Ps("0x1"))}:{type:Ps("0x0"),content:Jo(e,Ps("0x1d"))}}function o(t){return{type:Ps("0x0"),content:Jo(e,"*Change to:* %0",t)}}}))}}function js(t){const e=t[Ps("0xd")]("listIndent");if(0==e)return t;let n=t;for(;t.previousSibling&&t[Ps("0x10")].is(Ps("0x30"),"listItem");){const o=t[Ps("0x10")][Ps("0xd")]("listIndent");if(o==e)n=t.previousSibling;else if(o<e)break;t=t.previousSibling}return n}function Gs(t){const e=[];if(t.is(Ps("0x30"),Ps("0x26"))&&t[Ps("0xd")]("listIndent")>0){let n=t[Ps("0x25")];for(;n&&Ps("0x26")==n[Ps("0x8")]&&n[Ps("0xd")](Ps("0x3b"))==t[Ps("0xd")](Ps("0x3b"));)e.push(n),n=n[Ps("0x25")]}return e}const Vs=["flat","backward","ListUtils","startIndex","getFirstPosition","document","*Format:* set start index to %0","_getSuggestionBlocksForListStyle","forward","getSelectedBlocks","listType","filter","parent","commandParams","getAttribute","createRange","length","styles","handleListReversedCommand","locale","formatInline","getLastPosition","unshift","push","listStart","plugins","reversed","toUpperCase","ELEMENT_","getListTypeFromListStyleType","markMultiRangeBlockFormat","before","numbered","*Format:* set order to reversed","_descriptionFactory","_LIST_","afterInit","type","handleListStartCommand","map","element","handleListStyleCommand","format","enableCommand","replace","list.properties","*Change to:* %0","model","registerDescriptionCallback","from","formatBlock","listItem","listStyle","bind","selection","commandName","editor","_getTranslationKeyForListStyle","change","TrackChangesEditing","get","handleDescriptions","listReversed","getSiblingNodes","_getSuggestionBlocks","has","createPositionAt"];var Hs,zs;Hs=Vs,zs=380,function(t){for(;--t;)Hs.push(Hs.shift())}(++zs);const Ws=function(t,e){return Vs[t-=0]};class Ks extends t.Plugin{[Ws("0x3a")](){if(!this[Ws("0xb")][Ws("0x2f")][Ws("0x14")]("ListPropertiesEditing"))return;const t=this[Ws("0xb")].config[Ws("0xf")](Ws("0x0")),e=this[Ws("0xb")][Ws("0x2f")][Ws("0xf")]("TrackChangesEditing");t[Ws("0x27")]&&e[Ws("0x41")]("listStyle",this[Ws("0x3f")][Ws("0x8")](this)),t[Ws("0x30")]&&e[Ws("0x41")](Ws("0x11"),this[Ws("0x28")].bind(this)),t.startIndex&&e[Ws("0x41")](Ws("0x2e"),this[Ws("0x3c")][Ws("0x8")](this)),e[Ws("0x38")][Ws("0x3")](this[Ws("0x10")][Ws("0x8")](this))}handleListStyleCommand(t,e={}){const n=this[Ws("0xb")][Ws("0x2f")][Ws("0xf")](Ws("0xe")),o=this[Ws("0x1d")]();this.editor[Ws("0x2")][Ws("0xd")]((()=>{n[Ws("0x34")](o,{commandName:Ws("0x7"),commandParams:[{type:e.type}],formatGroupId:Ws("0x7")})}))}handleListReversedCommand(t,e={}){const n=this[Ws("0xb")][Ws("0x2f")][Ws("0xf")]("TrackChangesEditing"),o=this[Ws("0x13")]((t=>t.is(Ws("0x3e"),Ws("0x6"))&&Ws("0x36")===t[Ws("0x24")]("listType")));if(o.length<1)return;const i=o[Ws("0x3d")]((t=>this[Ws("0xb")].model[Ws("0x25")](this.editor.model[Ws("0x15")](t,"before"),this[Ws("0xb")].model[Ws("0x15")](t,0))));this[Ws("0xb")][Ws("0x2")][Ws("0xd")]((()=>{n[Ws("0x34")](i,{commandName:Ws("0x11"),commandParams:[{reversed:e.reversed}],formatGroupId:Ws("0x11")})}))}[Ws("0x3c")](t,e={}){const n=this.editor[Ws("0x2f")][Ws("0xf")]("TrackChangesEditing"),o=this[Ws("0x13")]((t=>t.is(Ws("0x3e"),Ws("0x6"))&&"numbered"===t[Ws("0x24")](Ws("0x20"))));if(o[Ws("0x26")]<1)return;const i=o[Ws("0x3d")]((t=>this[Ws("0xb")].model[Ws("0x25")](this[Ws("0xb")][Ws("0x2")][Ws("0x15")](t,Ws("0x35")),this[Ws("0xb")][Ws("0x2")][Ws("0x15")](t,0))));this.editor[Ws("0x2")].change((()=>{n.markMultiRangeBlockFormat(i,{commandName:Ws("0x2e"),commandParams:[{startIndex:e[Ws("0x19")]}],formatGroupId:Ws("0x2e")})}))}[Ws("0x10")](t){if(Ws("0x5")!=t[Ws("0x3b")]&&Ws("0x2a")!=t[Ws("0x3b")])return;const e=this.editor[Ws("0x29")],{data:n}=t;if(!n)return;let o,i;switch(n[Ws("0xa")]){case"listStyle":o=Ws("0x1"),i={type:Ws("0x40"),content:Jo(e,o,Jo(e,this[Ws("0xc")](n[Ws("0x23")][0][Ws("0x3b")])))};break;case"listReversed":o=n.commandParams[0][Ws("0x30")]?Ws("0x37"):"*Format:* set order to regular",i={type:"format",content:Jo(e,o)};break;case"listStart":o=Ws("0x1c"),i={type:Ws("0x40"),content:Jo(e,o,n[Ws("0x23")][0][Ws("0x19")])}}return i}[Ws("0x1d")](){var t,e,n,o;const i=this[Ws("0xb")][Ws("0x2f")].get(Ws("0x18"));let r=Array[Ws("0x4")](this[Ws("0xb")][Ws("0x2")].document.selection.getSelectedBlocks());return(null===(t=r[0])||void 0===t?void 0:t.is(Ws("0x3e"),Ws("0x6")))&&r[Ws("0x2c")](...i[Ws("0x12")](this[Ws("0xb")].model[Ws("0x1b")][Ws("0x9")][Ws("0x1a")](),Ws("0x17"))),(null===(e=r[r[Ws("0x26")]-1])||void 0===e?void 0:e.is(Ws("0x3e"),"listItem"))&&r[Ws("0x2d")](...i[Ws("0x12")](this[Ws("0xb")][Ws("0x2")].document[Ws("0x9")][Ws("0x2b")](),Ws("0x1e"))),r=[...new Set(r)],(null===(o=null===(n=this.editor[Ws("0x2")].document[Ws("0x9")].getFirstPosition())||void 0===n?void 0:n[Ws("0x22")])||void 0===o?void 0:o.is(Ws("0x3e"),"listItem"))&&(r=r[Ws("0x21")]((t=>t.is(Ws("0x3e"),Ws("0x6"))))),r}_getSuggestionBlocks(t){const e=this.editor[Ws("0x2f")][Ws("0xf")](Ws("0x18"));let n=Array[Ws("0x4")](this.editor[Ws("0x2")][Ws("0x1b")].selection[Ws("0x1f")]()).filter(t)[Ws("0x3d")]((t=>{const n=this[Ws("0xb")].model[Ws("0x15")](t,0);return[...e.getSiblingNodes(n,Ws("0x17")),...e[Ws("0x12")](n,Ws("0x1e"))]}))[Ws("0x16")]();return n=[...new Set(n)],n}_getTranslationKeyForListStyle(t){return Ws("0x32")+this[Ws("0xb")][Ws("0x2f")][Ws("0xf")]("ListUtils")[Ws("0x33")](t)[Ws("0x31")]()+Ws("0x39")+t[Ws("0x31")]()[Ws("0x42")](/-/g,"_")}}const qs=["editor","createEmptyElement","mediaEmbed","_descriptionFactory","TrackChangesEditing","dataDowncast","locale","media","enableCommand","registerElementLabel","get","div","ELEMENT_MEDIA","data","high","attribute:url:media","downcastDispatcher","stop","has","afterInit","showSuggestionHighlights","elementToElement","plugins","conversion"];var Xs,$s;Xs=qs,$s=245,function(t){for(;--t;)Xs.push(Xs.shift())}(++$s);const Zs=function(t,e){return qs[t-=0]};class Qs extends t.Plugin{[Zs("0xe")](){const t=this[Zs("0x13")];if(!t.plugins[Zs("0xd")]("MediaEmbedEditing"))return;const e=t[Zs("0x11")][Zs("0x5")](Zs("0x17")),n=t[Zs("0x1")];e[Zs("0x3")](Zs("0x15")),e[Zs("0x16")][Zs("0x4")](Zs("0x2"),(t=>Jo(n,Zs("0x7"),t))),t[Zs("0x12")].for(Zs("0x0"))[Zs("0x10")]({model:Zs("0x2"),view:(t,{writer:e,options:n})=>{if(n[Zs("0xf")])return e[Zs("0x14")](Zs("0x6"))},converterPriority:Zs("0x9")}),t[Zs("0x8")][Zs("0xb")].on(Zs("0xa"),((t,e,n)=>{n.options.showSuggestionHighlights&&t[Zs("0xc")]()}),{priority:Zs("0x9")})}}const Ys=["TrackChangesEditing","MentionEditing","plugins","enableCommand","has","afterInit","mention"];var Js,tx;Js=Ys,tx=244,function(t){for(;--t;)Js.push(Js.shift())}(++tx);const ex=function(t,e){return Ys[t-=0]};class nx extends t.Plugin{[ex("0x6")](){const t=this.editor;t[ex("0x3")][ex("0x5")](ex("0x2"))&&t[ex("0x3")].get(ex("0x1"))[ex("0x4")](ex("0x0"))}}const ox=["PageBreakEditing","registerElementLabel","has","enableCommand","plugins","afterInit","TrackChangesEditing","ELEMENT_PAGE_BREAK","get","editor","locale"];var ix,rx;ix=ox,rx=314,function(t){for(;--t;)ix.push(ix.shift())}(++rx);const sx=function(t,e){return ox[t-=0]};class xx extends t.Plugin{[sx("0xa")](){const t=this[sx("0x3")];if(!t[sx("0x9")][sx("0x7")](sx("0x5")))return;t[sx("0x9")].get(sx("0x0"))[sx("0x8")]("pageBreak");const e=t[sx("0x9")][sx("0x2")]("TrackChangesEditing"),n=t[sx("0x4")];e._descriptionFactory[sx("0x6")]("pageBreak",(t=>Jo(n,sx("0x1"),t)))}}const ax=["highest","markerName","editor","plugins","_enableDefaultAttributesIntegration","registerElementLabel","paragraph","ELEMENT_PARAGRAPH","isLimit","addMarker:suggestion:insertion","toViewPosition","mapper","data","insertion","bindElementToMarker","_registerLegacyDescription","registerDescriptionCallback","name","createUIElement","showSuggestionHighlights","isBlock","markerRange","ck-suggestion-marker-split","schema","span","insertParagraph","start","editing","nodeAfter","has","commandName","options","activeMarkers","format","getItemLabel","checkChild","includes","_descriptionFactory","writer","$text","consumable","Paragraph","get","type","downcastDispatcher","locale","ck-suggestion-marker--active","TrackChangesEditing","formatBlock","isTouching","enableCommand","*Change to:* %0","afterInit","model"];var cx,lx;cx=ax,lx=442,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const ux=function(t,e){return ax[t-=0]};class dx extends t.Plugin{[ux("0x2a")](){const t=this[ux("0x2e")];if(!t[ux("0x2f")][ux("0x13")](ux("0x1f")))return;const e=t[ux("0x23")],n=t[ux("0x2f")].get("TrackChangesEditing");n[ux("0x1b")][ux("0x31")](ux("0x32"),(t=>Jo(e,ux("0x33"),t))),n[ux("0x30")](ux("0x32")),n[ux("0x28")](ux("0xf")),t[ux("0x11")][ux("0x22")].on(ux("0x35"),gx(t),{priority:ux("0x2c")}),t[ux("0x2")].downcastDispatcher.on(ux("0x35"),((e,n,o)=>{o[ux("0x15")][ux("0x9")]&&gx(t,{showActiveMarker:!1})(e,n,o)}),{priority:ux("0x2c")});const o=n[ux("0x1b")];o[ux("0x6")]((n=>{if(ux("0x3")!==n[ux("0x21")])return;const{start:i,end:r}=n.getFirstRange();if(!i.isTouching(r)||!i[ux("0x12")])return;const s=t[ux("0x2b")].schema,x=i[ux("0x12")];return s[ux("0xa")](x)&&!s[ux("0x34")](x)&&s[ux("0x19")](x,"$text")?{type:"insertion",content:Jo(e,"*Insert:* %0",o[ux("0x18")](x,1))}:void 0})),this._registerLegacyDescription()}[ux("0x5")](){const t=this[ux("0x2e")],e=t.locale;t.plugins[ux("0x20")](ux("0x25"))[ux("0x1b")].registerDescriptionCallback((t=>{if(ux("0x26")!=t[ux("0x21")])return;const{data:n}=t;return n&&ux("0x32")==n[ux("0x14")]?{type:ux("0x17"),content:Jo(e,ux("0x29"),Jo(e,ux("0x33")))}:void 0}))}}function gx(t,{showActiveMarker:e=!0}={}){return(n,o,i)=>{const r=t[ux("0x2f")][ux("0x20")]("TrackChangesEditing"),s=o[ux("0xb")][ux("0x10")],x=o[ux("0xb")].end,a=t[ux("0x2b")][ux("0xd")];if(!s[ux("0x27")](x)||!s[ux("0x12")])return;const c=s[ux("0x12")];if(a[ux("0xa")](c)&&!a[ux("0x34")](c)&&a.checkChild(c,ux("0x1d"))){if(!i[ux("0x1e")].consume(o[ux("0xb")],n[ux("0x7")]))return;const t=i.writer[ux("0x8")](ux("0xe"),{class:ux("0xc")}),s=i[ux("0x1")][ux("0x0")](x);e&&r[ux("0x16")][ux("0x1a")](o[ux("0x2d")])&&i[ux("0x1c")].addClass(ux("0x24"),t),i.writer.insert(s,t),i.mapper[ux("0x4")](t,o[ux("0x2d")])}}}const fx=["has","locale","plugins","_descriptionFactory","commandName","format","_registerLegacyDescription","*Remove all formatting*","TrackChangesEditing","_enableDefaultAttributesIntegration","formatInline","editor","removeFormat","type"];var mx,hx;mx=fx,hx=405,function(t){for(;--t;)mx.push(mx.shift())}(++hx);const px=function(t,e){return fx[t-=0]};class bx extends t.Plugin{afterInit(){const t=this[px("0xc")];t[px("0x3")][px("0x1")]("RemoveFormatEditing")&&(t[px("0x3")].get(px("0x9"))[px("0xa")]("removeFormat"),this[px("0x7")]())}[px("0x7")](){const t=this[px("0xc")];t[px("0x3")].get("TrackChangesEditing")[px("0x4")].registerDescriptionCallback((e=>{if("formatBlock"!=e[px("0x0")]&&px("0xb")!=e[px("0x0")])return;const{data:n}=e;return n&&px("0xd")==n[px("0x5")]?{type:px("0x6"),content:Jo(t[px("0x2")],px("0x8"))}:void 0}))}}const Ex=["discardAllSuggestions","enableCommand","plugins","TrackChangesEditing","discardSuggestion","trackChanges","goToPreviousRestrictedEditingException","goToNextRestrictedEditingException","has","discardSelectedSuggestions","RestrictedEditingModeEditing","get","editor"];var _x,Tx;_x=Ex,Tx=475,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const yx=function(t,e){return Ex[t-=0]};class Cx extends t.Plugin{afterInit(){const t=this[yx("0x5")];if(!t[yx("0x8")][yx("0x1")]("RestrictedEditingModeEditing"))return;const e=t[yx("0x8")][yx("0x4")](yx("0x9"));e.enableCommand(yx("0xc")),e[yx("0x7")](yx("0x0"));const n=t.plugins[yx("0x4")](yx("0x3"));n.enableCommand(yx("0xb")),n.enableCommand("acceptSuggestion"),n[yx("0x7")](yx("0xa")),n[yx("0x7")]("acceptAllSuggestions"),n[yx("0x7")](yx("0x6")),n.enableCommand("acceptSelectedSuggestions"),n[yx("0x7")](yx("0x2"))}}const Ax=["createUIElement","data","locale","requires","get","high","editing","split","test","consumable","getItems","bindElementToMarker","createPositionBefore","includes","insert","name","deletion","plugins","softBreak","activeMarkers","span","writer","_descriptionFactory","downcastDispatcher","model","addMarker:suggestion:deletion","toViewPosition","showSuggestionHighlights","ELEMENT_LINE_BREAK","addMarker:suggestion","element","markerName","markerRange","addMarker:suggestion:insertion","TrackChangesEditing"];var kx,Ix;kx=Ax,Ix=289,function(t){for(;--t;)kx.push(kx.shift())}(++Ix);const Sx=function(t,e){return Ax[t-=0]};class vx extends t.Plugin{static get[Sx("0x1d")](){return[ur.ShiftEnter]}init(){const t=this.editor,e=t[Sx("0x8")][Sx("0x1e")](Sx("0x19"));e.enableCommand("shiftEnter"),t[Sx("0x20")][Sx("0xe")].on(Sx("0x18"),Rx(t),{priority:Sx("0x1f")}),t[Sx("0x20")][Sx("0xe")].on(Sx("0x10"),Rx(t),{priority:"high"}),t[Sx("0x1b")][Sx("0xe")].on(Sx("0x14"),((e,n,o)=>{o.options[Sx("0x12")]&&Rx(t,{showActiveMarker:!1})(e,n,o)})),e[Sx("0xd")].registerElementLabel(Sx("0x9"),(e=>Jo(t[Sx("0x1c")],Sx("0x13"),e)))}}function Rx(t,{showActiveMarker:e=!0}={}){return(n,o,i)=>{const r=t.plugins[Sx("0x1e")]("TrackChangesEditing");if(!i[Sx("0x0")][Sx("0x22")](o[Sx("0x17")],n[Sx("0x6")]))return;const s=t[Sx("0xf")];for(const t of o[Sx("0x17")][Sx("0x1")]()){if(!t.is(Sx("0x15"),Sx("0x9")))continue;const n=Sx("0x7")==o[Sx("0x16")][Sx("0x21")](":")[1]?"merge":Sx("0x21"),x=i[Sx("0xc")][Sx("0x1a")](Sx("0xb"),{class:"ck-suggestion-marker-"+n}),a=i.mapper[Sx("0x11")](s[Sx("0x3")](t));e&&r[Sx("0xa")][Sx("0x4")](o[Sx("0x16")])&&i[Sx("0xc")].addClass("ck-suggestion-marker--active",x),i[Sx("0xc")][Sx("0x5")](a,x),i.mapper[Sx("0x2")](x,o[Sx("0x16")])}}}const Nx=["change","isCollapsed","format","getRanges","FORMAT_RESTRICTED_ENABLED","afterInit","has","formatBlock","StandardEditingModeEditing","_descriptionFactory","registerDescriptionCallback","markInlineFormat","model","document","type","locale","forceValue","get","value","selection","commands","formatInline","enableCommand","FORMAT_RESTRICTED_DISABLED","editor","TrackChangesEditing"];var Lx,Mx;Lx=Nx,Mx=444,function(t){for(;--t;)Lx.push(Lx.shift())}(++Mx);const wx=function(t,e){return Nx[t-=0]};class Ox extends t.Plugin{[wx("0x3")](){const t=this[wx("0x16")],e=t[wx("0xa")],n=t[wx("0xd")];if(!t.plugins[wx("0x4")](wx("0x6")))return;const o=t.plugins[wx("0xf")](wx("0x17")),i="restrictedEditingException",r=t[wx("0x12")][wx("0xf")](i);o[wx("0x14")](i,((t,n={})=>{const s=e[wx("0xb")][wx("0x11")];if(s[wx("0x19")])return void t(n);const x=void 0!==n[wx("0xe")]?n[wx("0xe")]:!r[wx("0x10")];e[wx("0x18")]((()=>{const t=Array.from(s[wx("0x1")]());for(const n of t){const t=x?[n]:Xi(i,n,e);for(const e of t)o[wx("0x9")](e,{commandName:i,commandParams:[{forceValue:x}]})}}))})),o[wx("0x7")][wx("0x8")]((t=>{if(wx("0x5")!=t[wx("0xc")]&&wx("0x13")!=t.type)return;const{data:e}=t;return e&&e.commandName==i?e.commandParams[0].forceValue?{type:"format",content:Jo(n,wx("0x2"))}:{type:wx("0x0"),content:Jo(n,wx("0x15"))}:void 0}))}}const Fx=["registerDescriptionCallback","style","StyleUtils","_registerInlineAttribute","formatInline","*Set format:* %0","inline","definitions","commandName","TrackChangesEditing","config","add","plugins","getGhsAttributeNameForElement","editor","ghsAttributes","FORMAT_STYLE","normalizeConfig","styleName","format","toLowerCase","commandParams","registerAttributeLabel","element","block","_enableDefaultAttributesIntegration","_registerBlockAttribute","locale","type","_descriptionFactory","get","*Remove format:* %0","DataSchema","_registerLegacyDescription"];var Dx,Bx;Dx=Fx,Bx=227,function(t){for(;--t;)Dx.push(Dx.shift())}(++Bx);const Px=function(t,e){return Fx[t-=0]};class Ux extends t.Plugin{afterInit(){const t=this[Px("0x19")];if(!t[Px("0x17")].has("Style")||!t[Px("0x17")].has(Px("0x9")))return;const e=t[Px("0x17")][Px("0x7")](Px("0x14")),n=t.locale,o=t[Px("0x15")][Px("0x7")](Px("0xc")),i=t[Px("0x17")][Px("0x7")]("GeneralHtmlSupport"),r=t.plugins[Px("0x7")](Px("0xd"))[Px("0x1c")](t[Px("0x17")][Px("0x7")](Px("0x9")),o[Px("0x12")]);e[Px("0x2")](Px("0xc"));const s=new Set;for(const t of r[Px("0x1")]){const e=i.getGhsAttributeNameForElement(t[Px("0x0")]);s[Px("0x16")](e)}const x=new Set;for(const t of r[Px("0x11")]){const e=i[Px("0x18")](t.element);x[Px("0x16")](e);for(const e of t[Px("0x1a")])x[Px("0x16")](e)}for(const t of s)e[Px("0x3")](t),e._descriptionFactory.registerAttributeLabel(t,Jo(n,Px("0x1b")));for(const t of x)e[Px("0xe")](t),e[Px("0x6")][Px("0x21")](t,Jo(n,Px("0x1b")));this[Px("0xa")]()}[Px("0xa")](){const t=this[Px("0x19")],e=t[Px("0x4")];t.plugins.get(Px("0x14"))[Px("0x6")][Px("0xb")]((t=>{if("formatBlock"!=t[Px("0x5")]&&Px("0xf")!=t.type)return;const{data:n}=t;return n&&Px("0xc")===n[Px("0x13")]?n.commandParams[0].forceValue?{type:"format",content:Jo(e,Px("0x10"),n.commandParams[0].styleName[Px("0x1f")]())}:{type:Px("0x1e"),content:Jo(e,Px("0x8"),n[Px("0x20")][0][Px("0x1d")][Px("0x1f")]())}:void 0}))}}const jx=["registerElementLabel","_acceptFormatSuggestionCallbackFactory","item","getFirstRange","createPositionAt","findAncestor","registerDescriptionCallback","cell","$graveyard","isTouching","nodeBefore","_getCoordsForCells","getCellLocation","markMultiRangeInsertion","tableCell","getRowIndexes","removeTableRow","showSuggestionHighlights","_getSuggestionCoords","removeTableColumn","_suggestionFactory","data","every","enableCommand","detach","options","last","tableRow","getSuggestion","batch","createTableWalker","getChanges","model","length","includes","toLowerCase","subType","document","mapper","name","startsWith","change","getAttribute","isInContent","map","locale","refresh","selection","start","createRangeIn","table","ELEMENT_TABLE_WITH_TEXT","addClass","insertion","MAX_SAFE_INTEGER","forceValue","insertTableRowBelow","plugins","span","_tableSuggestions","createRangeOn","min","highest","getChildren","execute","setSelection","classes","colspan","isEqual","getChangedMarkers","ELEMENT_TABLE","filter","rowspan","addMarker:suggestion","$textProxy","TrackChangesEditing","toViewElement","first","getContainedElement","discard","ELEMENT_TABLE_ROW_WITH_TEXT","join","insertTableRowAbove","deletion","nodeAfter","addRange","getRanges","commands","accept","ELEMENT_TABLE_COLUMN_WITH_TEXT","suggestion","hasAttribute","*Insert:* %0","position","editor","markMultiRangeDeletion","getSelectionAffectedTableCells","from","root","enqueueChange","insertTableColumnRight","ELEMENT_TABLE_COLUMN","selectTableColumn","substr","registerCustomCallback","_setupColumnsRowsFixing","get","*Remove:* %0","order","max","_descriptionFactory","some","TableUtils","MIN_SAFE_INTEGER","isIntersectingWithRange","push","tablePaste","writer","insert","has","oldRange","tableColumn","rootName","minColumn","fromRange","ELEMENT_TABLE_ROW","end","getColumnIndexes","element","getItems","type"];var Gx,Vx;Gx=jx,Vx=115,function(t){for(;--t;)Gx.push(Gx.shift())}(++Vx);const Hx=function(t,e){return jx[t-=0]};class zx extends t.Plugin{constructor(t){super(t),this._tablePostFixingSubtypes=[Hx("0x2b"),Hx("0x6")],this[Hx("0x4b")]=new Set}afterInit(){const t=this[Hx("0x6e")],e=t[Hx("0x30")][Hx("0x35")][Hx("0x3f")];if(!t[Hx("0x49")][Hx("0x4")]("TableEditing"))return;const n=t[Hx("0x3d")],o=t.plugins[Hx("0x7a")](Hx("0x5b")),i=t[Hx("0x49")][Hx("0x7a")]("TableUtils");o[Hx("0x7e")][Hx("0x10")]("table",(t=>Jo(n,Hx("0x56"),t))),this._setupColumnsRowsFixing(),o[Hx("0x27")]("insertTable"),o[Hx("0x27")]("selectTableRow"),o[Hx("0x27")](Hx("0x76"));for(const n of[Hx("0x62"),Hx("0x48")]){const r=t[Hx("0x67")][Hx("0x7a")](n);o.enableCommand(n,(n=>{t[Hx("0x30")][Hx("0x39")]((t=>{n();const s="above"===r[Hx("0x7c")],x=i[Hx("0x70")](e),a=i[Hx("0x1f")](x),c=s?a.first-1:a[Hx("0x2a")]+1,l=x[0][Hx("0x15")]("table"),u=i.createTableWalker(l,{startRow:c,endRow:c}),d=Array[Hx("0x71")](u)[Hx("0x3c")]((e=>t[Hx("0x4c")](e[Hx("0x17")])));o[Hx("0x1d")](d,Hx("0x2b"))}))}))}for(const n of["insertTableColumnLeft",Hx("0x74")]){const r=t.commands[Hx("0x7a")](n);o[Hx("0x27")](n,(n=>{t[Hx("0x30")][Hx("0x39")]((t=>{n();const s="left"===r[Hx("0x7c")],x=i[Hx("0x70")](e),a=i[Hx("0xc")](x),c=s?a[Hx("0x5d")]-1:a[Hx("0x2a")]+1,l=x[0].findAncestor(Hx("0x42")),u=i[Hx("0x2e")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Hx("0x71")](u).map((e=>t[Hx("0x4c")](e[Hx("0x17")])));o.markMultiRangeInsertion(d,Hx("0x6"))}))}))}for(const n of[Hx("0x20"),Hx("0x23")]){const r=n[Hx("0x77")](11),s=r.toLowerCase(),x=s[Hx("0x77")](0,3)+Hx("0x4a"),a="table"+r,c=Hx("0x4d")+r,l=Hx("0x7d")+r;o.enableCommand(n,(()=>{t[Hx("0x30")][Hx("0x39")]((t=>{const r=i.getSelectionAffectedTableCells(e),u=r[0][Hx("0x15")]("table");let d;if(Hx("0x20")==n){const t=i[Hx("0x1f")](r);d={startRow:t.first,endRow:t[Hx("0x2a")],includeAllSlots:!0}}else{const t=i.getColumnIndexes(r);d={startColumn:t[Hx("0x5d")],endColumn:t[Hx("0x2a")],includeAllSlots:!0}}const g=i[Hx("0x2e")](u,d),f=Array[Hx("0x71")](g)[Hx("0x3c")]((({cell:t})=>t)),m=Wx(f[Hx("0x57")]((t=>t.hasAttribute(x)))),h=Wx(f[Hx("0x57")]((t=>!t[Hx("0x6b")](x)))).map((e=>t[Hx("0x4c")](e))),p=o[Hx("0x6f")](h,a);if(p&&(Hx("0x2b")==p[Hx("0x34")]||"tableColumn"==p[Hx("0x34")])){const e=this._getSuggestionCoords(p);for(const n of m){const o=t[Hx("0x4c")](n),r=i[Hx("0x1c")](n),a=n[Hx("0x3a")](x)-1,u=e[c],d=e[l];u<=r[s]&&r[s]+a<=d&&p.addRange(o)}}}))}))}function r(n){const o=Array.from(e[Hx("0x66")]())[Hx("0x3c")]((t=>s.LiveRange[Hx("0x9")](t)));t.model.change((e=>{const i=e[Hx("0x2d")];n=n[Hx("0x57")]((t=>"$graveyard"!=t[Hx("0x72")][Hx("0x7")])),e[Hx("0x51")](n),t[Hx("0x67")][Hx("0x7a")](Hx("0x20"))[Hx("0x3e")](),t[Hx("0x50")](Hx("0x20"),{forceDefaultExecution:!0}),t.model[Hx("0x73")]((()=>{t[Hx("0x30")][Hx("0x73")](i,(t=>{const e=o.filter((t=>Hx("0x18")!=t[Hx("0x72")][Hx("0x7")]));e[Hx("0x31")]>0&&t[Hx("0x51")](e);for(const t of o)t[Hx("0x28")]()}))}))}))}function a(n){t[Hx("0x30")][Hx("0x39")]((o=>{const i=Array[Hx("0x71")](e[Hx("0x66")]())[Hx("0x3c")]((t=>s.LiveRange[Hx("0x9")](t))),r=[];for(const t of n)for(const e of t.getItems({shallow:!0}))r[Hx("0x0")](e);for(const e of r)Hx("0x18")!=e.root[Hx("0x7")]&&(o.setSelection(o[Hx("0x14")](e,0)),t.commands.get(Hx("0x23")).refresh(),t.execute(Hx("0x23"),{forceDefaultExecution:!0}));const x=i.filter((t=>Hx("0x18")!=t[Hx("0x72")].rootName));x[Hx("0x31")]>0&&o[Hx("0x51")](x);for(const t of i)t[Hx("0x28")]()}))}function c(t,e){return e[Hx("0x26")]((e=>t[Hx("0x7f")]((t=>t[Hx("0xb")].isEqual(e.start)||e[Hx("0xb")][Hx("0x54")](t.start)))))}function l(t,e){return t[Hx("0x7f")]((t=>e[Hx("0x7f")]((e=>t[Hx("0xb")][Hx("0x19")](e[Hx("0x40")])))))}t.data.downcastDispatcher.on(Hx("0x59"),((t,e,n)=>{if(!n[Hx("0x29")][Hx("0x21")])return;const o=e[Hx("0x12")];if(!o)return;const i=n[Hx("0x36")][Hx("0x5c")](o);function r(t){return Array.isArray(t)?t:[t]}i&&Hx("0x1e")===o[Hx("0x37")]&&(0,x.setHighlightHandling)(i,n[Hx("0x2")],((t,e,n)=>n[Hx("0x44")](r(e[Hx("0x52")]),t)),((t,e,n)=>n.removeClass(r(e[Hx("0x52")]),t)))}),{priority:Hx("0x4e")}),o[Hx("0x7e")][Hx("0x16")]((t=>{if("insertion"!=t[Hx("0xf")]&&"deletion"!=t[Hx("0xf")])return;const e=t[Hx("0x5e")]();if(null!=e&&e.is(Hx("0xd"),Hx("0x42"))){if(Hx("0x45")==t[Hx("0xf")]){const e=t.getItems()[Hx("0x57")]((t=>t.is(Hx("0x5a")))).map((t=>t.data));if(e.length)return{type:"insertion",content:Jo(n,Hx("0x6c"),Jo(n,Hx("0x43"),'"'+e[Hx("0x61")](" ")+'"'))}}if(Hx("0x63")==t.type){const e=t[Hx("0xe")]()[Hx("0x57")]((t=>t.is(Hx("0x5a"))))[Hx("0x3c")]((t=>t[Hx("0x25")]));if(e.length)return{type:Hx("0x63"),content:Jo(n,Hx("0x7b"),Jo(n,Hx("0x43"),'"'+e[Hx("0x61")](" ")+'"'))}}}})),o[Hx("0x7e")].registerDescriptionCallback((t=>{if(Hx("0x2b")==t[Hx("0x34")]){const e=t[Hx("0xe")]().filter((t=>t.is("$textProxy"))).map((t=>t[Hx("0x25")])),o=this[Hx("0x22")](t),i=o.maxRow-o.minRow+1;if(Hx("0x45")==t[Hx("0xf")])return e[Hx("0x31")]?{type:Hx("0x45"),content:Jo(n,Hx("0x6c"),Jo(n,Hx("0x60"),[i,'"'+e[Hx("0x61")](" ")+'"']))}:{type:Hx("0x45"),content:Jo(n,Hx("0x6c"),Jo(n,Hx("0xa"),i))};if(Hx("0x63")==t[Hx("0xf")])return e[Hx("0x31")]?{type:Hx("0x63"),content:Jo(n,"*Remove:* %0",Jo(n,Hx("0x60"),[i,'"'+e.join(" ")+'"']))}:{type:Hx("0x63"),content:Jo(n,Hx("0x7b"),Jo(n,Hx("0xa"),i))}}if(Hx("0x6")==t[Hx("0x34")]){const e=t[Hx("0xe")]()[Hx("0x57")]((t=>t.is(Hx("0x5a"))))[Hx("0x3c")]((t=>t.data)),o=this._getSuggestionCoords(t),i=o.maxColumn-o[Hx("0x8")]+1;if("insertion"==t[Hx("0xf")])return e[Hx("0x31")]?{type:Hx("0x45"),content:Jo(n,"*Insert:* %0",Jo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[i,'"'+e[Hx("0x61")](" ")+'"']))}:{type:Hx("0x45"),content:Jo(n,"*Insert:* %0",Jo(n,Hx("0x75"),i))};if("deletion"==t.type)return e[Hx("0x31")]?{type:Hx("0x63"),content:Jo(n,Hx("0x7b"),Jo(n,Hx("0x69"),[i,'"'+e[Hx("0x61")](" ")+'"']))}:{type:Hx("0x63"),content:Jo(n,Hx("0x7b"),Jo(n,Hx("0x75"),i))}}})),o[Hx("0x24")][Hx("0x78")](Hx("0x45"),Hx("0x2b"),"discard",r),o[Hx("0x24")][Hx("0x78")]("deletion","tableRow","accept",r),o[Hx("0x24")][Hx("0x78")](Hx("0x45"),Hx("0x6"),Hx("0x5f"),a),o[Hx("0x24")].registerCustomCallback("deletion",Hx("0x6"),Hx("0x68"),a),o[Hx("0x24")][Hx("0x78")](Hx("0x45"),Hx("0x6"),Hx("0x61"),c),o[Hx("0x24")][Hx("0x78")](Hx("0x63"),Hx("0x6"),Hx("0x61"),c),o[Hx("0x24")][Hx("0x78")](Hx("0x45"),"tableRow",Hx("0x61"),l),o[Hx("0x24")][Hx("0x78")](Hx("0x63"),Hx("0x2b"),Hx("0x61"),l)}[Hx("0x11")](){const t=this.editor,e=t.model.document[Hx("0x3f")];return(n,o)=>{t[Hx("0x30")][Hx("0x39")]((i=>{const{commandName:r,commandParams:x}=o;let a=n[0].end[Hx("0x1a")];x&&x[0]&&!1===x[0][Hx("0x47")]&&(a=n[0].start.nodeAfter);const c=i[Hx("0x41")](a);if(Hx("0x18")==c[Hx("0x72")][Hx("0x7")])return;const l=Array[Hx("0x71")](e[Hx("0x66")]())[Hx("0x3c")]((t=>s.LiveRange[Hx("0x9")](t)));i[Hx("0x51")](c),t[Hx("0x67")][Hx("0x7a")](r)[Hx("0x3e")](),x[Hx("0x0")]({forceDefaultExecution:!0}),t[Hx("0x50")](r,...x);const u=l.filter((t=>Hx("0x18")!=t[Hx("0x72")][Hx("0x7")]));u[Hx("0x31")]>0&&i[Hx("0x51")](u);for(const t of l)t.detach()}))}}_getCoordsForCells(t){const e=this[Hx("0x6e")][Hx("0x49")][Hx("0x7a")](Hx("0x80"));let n=Number[Hx("0x46")],o=Number[Hx("0x81")],i=Number[Hx("0x46")],r=Number[Hx("0x81")];for(const s of t){if(Hx("0x18")==s[Hx("0x72")][Hx("0x7")])continue;const{row:t,column:x}=e[Hx("0x1c")](s),a=s.hasAttribute(Hx("0x58"))?s[Hx("0x3a")](Hx("0x58"))-1:0,c=s[Hx("0x6b")]("colspan")?s[Hx("0x3a")](Hx("0x53"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,i=x<i?x:i,r=x+c>r?x+c:r}return{minRow:n,maxRow:o,minColumn:i,maxColumn:r}}[Hx("0x79")](){const t=this.editor,e=t.plugins[Hx("0x7a")](Hx("0x5b")),n=t[Hx("0x49")][Hx("0x7a")]("TableUtils");t.model[Hx("0x35")].on("change:data",(()=>{const n=Array[Hx("0x71")](t[Hx("0x30")][Hx("0x35")].differ[Hx("0x55")]());for(const{name:t,data:o}of n){const{group:n,id:i,subType:r}=e._splitMarkerName(t);if(Hx("0x6a")!=n)continue;if(null!=o[Hx("0x5")])continue;const s=e[Hx("0x2c")](i);this._tablePostFixingSubtypes[Hx("0x32")](r)&&this[Hx("0x4b")].add(s)}}),{priority:"low"});const o=(t,e)=>{let o=!1;const i=e.createRangeOn(t),r=t[Hx("0x15")]("table"),s=n[Hx("0x1c")](t);for(const e of this[Hx("0x4b")]){const n=e.subType,x=n[Hx("0x38")](Hx("0x1")),a=n[Hx("0x77")](x?10:5),c=a[Hx("0x33")](),l=c[Hx("0x77")](0,3)+Hx("0x4a"),u=Hx("0x4d")+a,d=Hx("0x7d")+a;if(!e[Hx("0x3b")])continue;if(r!=e[Hx("0x13")]()[Hx("0x40")][Hx("0x15")](Hx("0x42")))continue;if(e[Hx("0x82")](i))continue;const g=t[Hx("0x6b")](l)?t.getAttribute(l)-1:0,f=this[Hx("0x22")](e),m=f[u],h=f[d];m<=s[c]&&s[c]+g<=h&&(e[Hx("0x65")](i),o=!0)}return o};t[Hx("0x30")].document.registerPostFixer((e=>{let n=!1;for(const i of t[Hx("0x30")][Hx("0x35")].differ[Hx("0x2f")]())if(Hx("0x3")==i[Hx("0xf")])if(Hx("0x2b")==i[Hx("0x37")])for(const t of i[Hx("0x6d")][Hx("0x64")][Hx("0x4f")]())n=n||o(t,e);else"tableCell"==i[Hx("0x37")]&&(n=n||o(i[Hx("0x6d")][Hx("0x64")],e));return n}))}_getSuggestionCoords(t){return this[Hx("0x1b")](t.getRanges()[Hx("0x3c")]((t=>t[Hx("0x40")][Hx("0x64")])))}}function Wx(t){return Array[Hx("0x71")](new Set(t).values())}const Kx=["findAncestor","format","map","createRangeOn","value","commands","isInContent","splitTableCellHorizontally","requires","_suggestionFactory","formatInline","mergeTableCells","accept","markMultiRangeBlockFormat","subType","_isForcedDefaultExecutionBlock","plugins","low","filter","getRanges","registerDescriptionCallback","direction","_tablePostFixingSubtypes","createTableWalker","mergeTableCellUp","refresh","_areMergableCells","$graveyard","detach","root","_areSelectedCellsMergable","element","cell","*Merge cells*","stop","_descriptionFactory","selection","TrackChangesEditing","afterInit","_acceptFormatSuggestionCallbackFactory","insertion","length","get","getFirstPosition","type","deletion","horizontally","execute","isEnabled","trackChanges","find","document","mergeTableCellRight","registerCustomCallback","locale","formatBlock","model","change","enableCommand","size","getSelectionAffectedTableCells","TableEditing","editor","author","has","add","mergeTableCellDown","containsRange","TableUtils","splitTableCellVertically","from","getAncestors","commandName","getSuggestions","mergeTableCellLeft","tableCell","*Split cell:* horizontally"];var qx,Xx;qx=Kx,Xx=306,function(t){for(;--t;)qx.push(qx.shift())}(++Xx);const $x=function(t,e){return Kx[t-=0]};class Zx extends t.Plugin{static get[$x("0xa")](){return[zx]}[$x("0x28")](){const t=this[$x("0x40")],e=t[$x("0x3a")].document[$x("0x26")],n=t[$x("0x38")];if(!t.plugins.has($x("0x3f")))return;const o=t.plugins[$x("0x2c")]($x("0x27")),i=t.plugins[$x("0x2c")]($x("0x46")),r=t[$x("0x12")].get(zx);r[$x("0x18")].push($x("0xd")),o[$x("0x3c")]($x("0xd"),(()=>{const e=i[$x("0x3e")](t.model[$x("0x35")][$x("0x26")]);t[$x("0x3a")].change((()=>{o[$x("0xf")](e,{commandName:"mergeTableCells",commandParams:[]},[],$x("0xd"))}))})),t[$x("0x7")].get($x("0xd")).on("execute",((e,n)=>{t.commands[$x("0x2c")]($x("0x33"))[$x("0x6")]&&(n[$x("0x2b")]>0&&n[n.length-1]&&n[n[$x("0x2b")]-1].forceDefaultExecution||o[$x("0x11")]||this[$x("0x20")]()||e[$x("0x24")]())}),{priority:"highest"});for(const e of[$x("0x1a"),$x("0x36"),"mergeTableCellDown","mergeTableCellLeft"]){const n=t.commands[$x("0x2c")](e);o[$x("0x3c")](e,(()=>{const e=t[$x("0x3a")].document.selection[$x("0x2d")]()[$x("0x49")]()[$x("0x34")]((t=>t.is($x("0x21"),$x("0x0")))),i=n[$x("0x6")];t.model.change((()=>{o[$x("0xf")]([e,i],{commandName:$x("0xd"),commandParams:[]},[],$x("0xd"))}))}))}for(const e of["splitTableCellVertically",$x("0x9")]){const n=t[$x("0x7")][$x("0x2c")](e);o[$x("0x3c")](e,(()=>{const r=i[$x("0x3e")](t[$x("0x3a")].document[$x("0x26")])[0],s=r[$x("0x2")]("table"),{column:x,row:a}=i.getCellLocation(r);let c=[];if($x("0x30")==n[$x("0x17")]){const t=i[$x("0x19")](s,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[$x("0x48")](t)[$x("0x4")]((t=>t[$x("0x22")]))}else{const t=i[$x("0x19")](s,{column:x,includeAllSlots:!0});c=Array[$x("0x48")](t)[$x("0x4")]((t=>t[$x("0x22")]))}t[$x("0x3a")][$x("0x3b")]((t=>{o.markBlockFormat(t.createRangeOn(r),{commandName:e,commandParams:[]},c,e)}))}))}o[$x("0x25")][$x("0x16")]((t=>{if("formatBlock"!=t[$x("0x2e")]&&$x("0xc")!=t[$x("0x2e")])return;const{data:e}=t;return e&&$x("0xd")==e[$x("0x4a")]?{type:"format",content:Jo(n,$x("0x23"))}:void 0})),o[$x("0x25")][$x("0x16")]((t=>{if("formatBlock"!=t.type&&$x("0xc")!=t[$x("0x2e")])return;const{data:e}=t;return e?$x("0x47")==e[$x("0x4a")]?{type:"format",content:Jo(n,"*Split cell:* vertically")}:$x("0x9")==e[$x("0x4a")]?{type:$x("0x3"),content:Jo(n,$x("0x1"))}:void 0:void 0}));const x=r[$x("0x29")]();for(const t of["mergeTableCellUp","mergeTableCellRight","mergeTableCellDown",$x("0x4c")])o[$x("0xb")][$x("0x37")]("formatBlock",t,"accept",x);for(const t of[$x("0x47"),"splitTableCellHorizontally"])o[$x("0xb")][$x("0x37")]($x("0x39"),t,$x("0xe"),x);o[$x("0xb")][$x("0x37")]($x("0x39"),$x("0xd"),$x("0xe"),(n=>{t[$x("0x3a")][$x("0x3b")]((o=>{const i=Array[$x("0x48")](e[$x("0x15")]())[$x("0x4")]((t=>s.LiveRange.fromRange(t)));o.setSelection(n),t[$x("0x7")][$x("0x2c")]("mergeTableCells")[$x("0x1b")](),t[$x("0x31")]("mergeTableCells",{forceDefaultExecution:!0});const r=i[$x("0x14")]((t=>$x("0x1d")!=t[$x("0x1f")].rootName));r[$x("0x2b")]>0&&o.setSelection(r);for(const t of i)t[$x("0x1e")]()}))}));for(const e of[$x("0x1a"),$x("0x44"),"mergeTableCellLeft",$x("0x36")]){const n=t[$x("0x7")].get(e);n.on("set:isEnabled",((e,o,i)=>{if(i){const o=t.model[$x("0x35")][$x("0x26")][$x("0x2d")]()[$x("0x49")]()[$x("0x34")]((t=>t.is($x("0x21"),$x("0x0"))));this._areMergableCells(n.value,o)||(e.return=!1,e.stop())}}),{priority:$x("0x13")})}}[$x("0x20")](){const t=this.editor.commands.get($x("0xd")),e=this.editor[$x("0x12")][$x("0x2c")]($x("0x46"));if(!t[$x("0x32")])return!1;const n=e[$x("0x3e")](this[$x("0x40")][$x("0x3a")][$x("0x35")][$x("0x26")]);for(const t of n)for(const e of n)if(t!=e&&!this[$x("0x1c")](t,e))return!1;return!0}[$x("0x1c")](t,e){const n=this[$x("0x40")][$x("0x12")][$x("0x2c")]($x("0x27")),o=this.editor[$x("0x3a")].createRangeOn(t),i=this[$x("0x40")].model[$x("0x5")](e),r=new Set,s=new Set;for(const t of n[$x("0x4b")]())if(($x("0x2a")==t[$x("0x2e")]||$x("0x2f")==t[$x("0x2e")]||$x("0xd")==t[$x("0x10")])&&t[$x("0x8")])for(const e of t[$x("0x15")]())e[$x("0x45")](o,!0)&&r[$x("0x43")](t[$x("0x2e")]+":"+t[$x("0x41")].id),e[$x("0x45")](i,!0)&&s.add(t[$x("0x2e")]+":"+t.author.id);if(r[$x("0x3d")]!=s[$x("0x3d")])return!1;for(const t of r)if(!s[$x("0x42")](t))return!1;return!0}}const Qx=["data","ck-suggestion-marker--active","highest","nodeBefore","format","writer","_handleLegacySuggestions","mapper","FORMAT_HEADER_ROW","includes","headingRows","addClass","TrackChangesEditing","showSuggestionHighlights","setAttribute","toViewElement","headingColumns","setTableColumnHeader","forceValue","addMarker:suggestion","consumable","commandParams","markerNameToElements","editing","item","accept","unbindElementFromMarkerName","*Format:* %0","removeAttribute","data-suggestion","_descriptionFactory","options","registerDescriptionCallback","markerName","registerCustomCallback","downcastDispatcher","FORMAT_HEADER_COLUMN","getSuggestion","locale","editor","parent","getCellLocation","plugins","start","consume","_enableDefaultAttributesIntegration","activeMarkers","_suggestionFactory","get","registerAttributeLabel","TableUtils","stop","setTableRowHeader","ck-suggestion-marker-","removeClass","bindElementToMarker","_registerLegacyDescription","removeMarker:suggestion","cell","type","commandName","_acceptFormatSuggestionCallbackFactory","formatBlock"];var Yx,Jx;Yx=Qx,Jx=159,function(t){for(;--t;)Yx.push(Yx.shift())}(++Jx);const ta=function(t,e){return Qx[t-=0]};class ea extends t.Plugin{static get requires(){return[zx]}afterInit(){const t=this[ta("0x6")];if(!t[ta("0x9")].has("TableEditing"))return;const e=t[ta("0x5")],n=t[ta("0x9")].get(ta("0x2a"));n[ta("0xc")](ta("0x13"),[],["headingRows"]),n[ta("0xc")](ta("0x2f"),[],[ta("0x2e")]),n[ta("0x3c")][ta("0x10")](ta("0x28"),Jo(e,ta("0x26"))),n._descriptionFactory[ta("0x10")](ta("0x2e"),Jo(e,ta("0x3"))),this[ta("0x24")]()}[ta("0x24")](){const t=this[ta("0x6")][ta("0x9")][ta("0xf")](ta("0x2a")),e=this[ta("0x6")][ta("0x9")].get(ta("0x11")),n=this[ta("0x6")][ta("0x9")][ta("0xf")](zx)[ta("0x1c")]();function o({showActiveMarker:n=!0,setDataAttribute:o=!0}={}){return(i,r,s)=>{const{type:x,id:a}=t._splitMarkerName(r[ta("0x0")]),c=t[ta("0x4")](a),l=c[ta("0x1e")];if(ta("0x1d")!=c[ta("0x1a")]||!l||"setTableColumnHeader"!=l.commandName)return;if(r[ta("0x36")])return void i[ta("0x12")]();if(!s[ta("0x32")][ta("0xb")](r.markerRange,i.name))return;const u=r.markerRange[ta("0xa")].nodeAfter,d=r.markerRange.end[ta("0x21")],g=u[ta("0x7")][ta("0x7")],{column:f}=e.getCellLocation(u),{column:m}=e[ta("0x8")](d);for(let i=f;i<=m;i++){const c=e.createTableWalker(g,{column:i,includeAllSlots:!1});for(const e of c){const i=e[ta("0x19")],c=s[ta("0x25")][ta("0x2d")](i);s[ta("0x23")][ta("0x29")](ta("0x14")+x,c),o&&s.writer[ta("0x2c")]("data-suggestion",a,c),s[ta("0x25")][ta("0x16")](c,r.markerName),n&&(t[ta("0xd")][ta("0x27")](r.markerName)?s[ta("0x23")][ta("0x29")](ta("0x1f"),c):s[ta("0x23")][ta("0x15")](ta("0x1f"),c))}}}}t[ta("0xe")][ta("0x1")](ta("0x1d"),"setTableRowHeader",ta("0x37"),n),t[ta("0xe")][ta("0x1")](ta("0x1d"),ta("0x2f"),ta("0x37"),n),this[ta("0x6")][ta("0x35")][ta("0x2")].on(ta("0x31"),o(),{priority:ta("0x20")}),this[ta("0x6")][ta("0x1e")][ta("0x2")].on("addMarker:suggestion",((t,e,n)=>{n[ta("0x3d")][ta("0x2b")]&&o({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:ta("0x20")}),this[ta("0x6")][ta("0x35")][ta("0x2")].on(ta("0x18"),((e,n,o)=>{const{type:i,id:r}=t._splitMarkerName(n[ta("0x0")]),s=t[ta("0x4")](r),x=s[ta("0x1e")];if(ta("0x1d")!=s[ta("0x1a")]||!x||ta("0x2f")!=x[ta("0x1b")])return;const a=o.mapper[ta("0x34")](n[ta("0x0")]);if(a)for(const t of a)o[ta("0x23")][ta("0x15")](ta("0x14")+i,t),o.writer[ta("0x15")](ta("0x1f"),t),o[ta("0x23")][ta("0x3a")](ta("0x3b"),t),o[ta("0x25")][ta("0x38")](t,n[ta("0x0")])}),{priority:ta("0x20")}),this[ta("0x17")]()}_registerLegacyDescription(){const t=this[ta("0x6")],e=t[ta("0x5")];function n(t){return{type:ta("0x22"),content:Jo(e,ta("0x39"),t)}}t[ta("0x9")][ta("0xf")](ta("0x2a"))[ta("0x3c")][ta("0x3e")]((t=>{if(ta("0x1d")!=t[ta("0x1a")])return;const{data:o}=t;if(o){if(ta("0x13")==o.commandName){const t=o[ta("0x33")][0][ta("0x30")];return n(Jo(e,t?"FORMAT_HEADER_ROW":"FORMAT_REGULAR_ROW"))}if(ta("0x2f")==o[ta("0x1b")]){const t=o[ta("0x33")][0][ta("0x30")];return n(Jo(e,t?ta("0x3"):"FORMAT_REGULAR_COLUMN"))}}}))}}const na=["position","tablePaste","TableUtils","_tablePostFixingSubtypes","tableCellHorizontalAlignment","entries","every","move","accept","table","add","editor","_suggestionFactory","insertion","differ","_isForcedDefaultExecutionBlock","removeRows","endColumn","documentSelection","commands","tableCellSuggestion","getRange","reduce","registerDescriptionCallback","hasSuggestion","getItems","row","insertColumns","formatBlock","batch","markerAttributes","plugins","getShiftedBy","registerPostFixer","getChangedMarkers","ck-suggestion-marker--active","insertionRanges","insertContent","Users","TrackChangesEditing","end","wrap","forceDefaultExecution","clipboardOutput","paragraph","document","removeMarker","model","getChildren","deletion","getSuggestions","getMarkers","startsWith","suggestion-td","stop","getRowIndexes","getColumnIndexes","isInContent","tablePasteCell","from","editingDowncast","tableCellBackgroundColor","_descriptionFactory","createRangeOn","length","findAncestor","columnInsertionRanges","set","removeMarkers","setAttribute","subType","activeMarkers","tablePasteRow","cells","_getCoordsForCells","columnInsertionIndexes","locale","getSelectionAffectedTableCells","oldRange","options","$graveyard","map","join","registerCustomCallback","filter","column","suggestion","get","createRange","tablePasteColumn","markMultiRangeBlockFormat","push","next","containsRange","newRange","includes","author","start","insert","for","afterInit","getAllAdjacentSuggestions","rowInsertionRanges","setAttributes","conversion","*Replace table cells*","trackChanges","previousSibling","createTableWalker","view","deletionRanges","change","suggestionLoaded","type","tableCellBorderStyle","rowInsertionIndexes","has","element","markers","getChild","_splitMarkerName","tablePasteChainId","getSuggestion","some","discard","first","schema","ck-suggestion-marker-insertion","createRangeIn","tableCell","insertRows","unwrap","tableCellBorderWidth","isEqual","editing","_replaceTableSlotCell","value","find","name","listenTo","attributes","fill","suggestion:formatBlock:tablePasteCell","content","markerToHighlight","tableCellPadding","return","columns","getContainedElement","updateMarker","getRanges","last","high","elementToElement","selection","getRows","nextSibling","keys","createElement","TableClipboard","isEmpty","remove","redo","markMultiRangeInsertion","fromEntries"];var oa,ia;oa=na,ia=218,function(t){for(;--t;)oa.push(oa.shift())}(++ia);const ra=function(t,e){return na[t-=0]},sa=[ra("0x4f"),"tableCellBorderColor",ra("0x3d"),ra("0x74"),"tableCellVerticalAlignment",ra("0x8"),ra("0x5c")],xa=Object[ra("0x6f")](sa[ra("0x1c")]((t=>[t,null])));class aa extends t.Plugin{static get requires(){return[zx]}[ra("0x2f")](){const t=this.editor;if(!t[ra("0x8f")].has(ra("0x6a")))return;const n=t[ra("0x8f")].get(ra("0x97")),o=t.plugins.get(ra("0x72")),i=t[ra("0x8f")].get(zx),r=t.plugins[ra("0x22")](ra("0x6a"));i[ra("0x73")][ra("0x26")](ra("0x13"),ra("0x24")),t[ra("0x9f")][ra("0x49")].register(ra("0x84"),{allowIn:ra("0x4c"),allowContentOf:"tableCell",isLimit:!0}),t[ra("0x33")][ra("0x64")]({model:ra("0x84"),view:ra("0x0")});let s=null;t.model.on(ra("0x95"),((i,x)=>{const[a,c]=x,l=x[x.length-1];l&&l[ra("0x9a")]||n[ra("0x7f")]||this[ra("0x7b")][ra("0x83")].get(ra("0x35"))[ra("0x53")]&&function(t,e,n,o,i){if(e&&!e.is(ra("0x82")))return!1;const r=i.getTableIfOnlyTableInContent(t,n);if(!r||!la(r,void 0,o))return!1;const s=o[ra("0x18")](n.document[ra("0x65")]);if(!s.length)return!1;const x=s[0][ra("0xc")]("table"),a=o[ra("0x2")](s),c=o[ra("0x3")](s),l={startRow:a[ra("0x48")],endRow:a[ra("0x62")],startColumn:c[ra("0x48")],endColumn:c[ra("0x62")]};return 1==s.length&&(l.endRow+=o[ra("0x66")](r)-1,l[ra("0x81")]+=o.getColumns(r)-1),la(x,l,o)}(a,c,t.model,o,r)&&(i.stop(),s={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[ra("0x9f")].change((()=>{t[ra("0x9f")].insertContent(x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:i,columnInsertionRanges:r,insertionRanges:a,deletionRanges:c,cells:l}=s;i[ra("0xb")]&&n[ra("0x6e")](i,"tablePasteRow",{tablePasteChainId:o}),r[ra("0xb")]&&n.markMultiRangeInsertion(r,ra("0x24"),{tablePasteChainId:o}),a[ra("0xb")]&&n.markMultiRangeInsertion(a,ra("0x71"),{tablePasteChainId:o,skipNestingCheck:!0}),c[ra("0xb")]&&n.markMultiRangeDeletion(c,ra("0x71"),{tablePasteChainId:o,skipNestingCheck:!0});const u=n[ra("0x25")](l[ra("0x1c")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],ra("0x5"),{tablePasteChainId:o});if(u){const e=u[ra("0xa3")](),n=[];for(const{element:o,attributes:i}of l){if(!i)continue;const r=t[ra("0x9f")][ra("0xa")](o),s=e[ra("0x54")]((t=>t[ra("0x85")]()[ra("0x50")](r)));s&&n[ra("0x26")]([s[ra("0x55")],i])}n[ra("0xb")]&&u[ra("0x10")]("markerAttributes",Object[ra("0x6f")](n))}s=null})))}),{priority:e.priorities[ra("0x63")]+10}),t.plugins[ra("0x22")](ra("0x6a")).on(ra("0x52"),((t,e)=>{const[n,o,,i]=e;if(!s)return;t[ra("0x1")]();const r=n.cell,x=o,a=ca(r),c=ca(x);t[ra("0x5d")]=r;let l=null,u=null;if(c||a)if(a&&!c){i[ra("0x6c")](r.getChild(0));for(const t of Array[ra("0x6")](x[ra("0xa0")]()))i[ra("0x2d")](t,r,"end");const t=s[ra("0x3e")].includes(n[ra("0x8a")]),e=s[ra("0x16")][ra("0x2a")](n[ra("0x20")]);t||e||(l=i[ra("0x4b")](r))}else c&&!a&&(u=i.createRangeIn(r));else{const t=i[ra("0x69")](ra("0x84")),e=i[ra("0x69")]("tableCellSuggestion");i[ra("0x99")](i[ra("0x4b")](r),e),i.insert(t,r,0);for(const e of Array[ra("0x6")](x[ra("0xa0")]()))i[ra("0x2d")](e,t,ra("0x98"));l=i[ra("0xa")](t),u=i[ra("0xa")](e)}const d=Array[ra("0x6")](x.getAttributes())[ra("0x1f")]((([t])=>sa.includes(t)));s[ra("0x14")][ra("0x26")]({element:r,attributes:d[ra("0xb")]?Object[ra("0x6f")](d):null}),l&&s[ra("0x94")].push(l),u&&s[ra("0x39")][ra("0x26")](u)}),{priority:ra("0x63")}),o.on(ra("0x8b"),((e,n)=>{const[i,r={}]=n;if(!s)return;const x=r.at||0,a=r[ra("0x5e")]||1;s[ra("0x16")]=new Array(a).fill(x)[ra("0x1c")](((t,e)=>t+e));for(const{cell:e}of o[ra("0x37")](i,{startColumn:x,endColumn:x+a-1}))s[ra("0xd")].push(t[ra("0x9f")].createRangeOn(e))}),{priority:"low"}),o.on(ra("0x4d"),((e,n)=>{const[i,r={}]=n;if(!s)return;const x=r.at||0,a=r.rows||1;s[ra("0x3e")]=new Array(a)[ra("0x58")](x)[ra("0x1c")](((t,e)=>t+e));for(const{cell:e}of o[ra("0x37")](i,{startRow:x,endRow:x+a-1}))s[ra("0x31")][ra("0x26")](t[ra("0x9f")][ra("0xa")](e))}),{priority:"low"}),n[ra("0x9")][ra("0x87")]((e=>{if(e[ra("0x11")]&&e[ra("0x11")].startsWith(ra("0x71")))return e.previous?{}:{type:ra("0x7d"),content:Jo(t[ra("0x17")],ra("0x34"))}}));const x=()=>!1;for(const t of[ra("0x71"),ra("0x24"),ra("0x13"),ra("0x5")])n._suggestionFactory[ra("0x1e")]("insertion",t,"join",x),n._suggestionFactory[ra("0x1e")]("deletion",t,ra("0x1d"),x),n[ra("0x7c")].registerCustomCallback("formatBlock",t,ra("0x1d"),x);n[ra("0x7c")][ra("0x1e")](ra("0x8c"),"tablePasteCell",ra("0x47"),x),n[ra("0x7c")][ra("0x1e")](ra("0x8c"),"tablePasteCell",ra("0x78"),((e,n,o)=>{const i=e.map((t=>t[ra("0x5f")]()))[ra("0x1f")]((t=>t)),r=new Map(i[ra("0x1c")]((t=>[t,null])));if(s)for(const{element:t,attributes:e}of s[ra("0x14")])e&&r[ra("0xe")](t,e);else if(o&&o.markerAttributes)for(const[e,n]of Object[ra("0x75")](o.markerAttributes)){const o=t[ra("0x9f")][ra("0x41")][ra("0x22")](e),i=o?o[ra("0x85")]()[ra("0x5f")]():null;i&&r[ra("0xe")](i,n)}t.model[ra("0x3a")]((t=>{for(const[e,n]of r)t[ra("0x32")]({...xa,...n},e)}))}));const a=(e,o)=>{n[ra("0x7c")][ra("0x1e")](e,ra("0x71"),o,((i,r,s)=>{t.model[ra("0x3a")]((t=>{const x=[];for(const t of i){const e=t[ra("0x2c")].nodeAfter;e.is("element",ra("0x84"))&&x[ra("0x26")](e)}n._suggestionFactory.getSuggestionCallback(e,null,o)(i,r,s);for(const e of x)ra("0x1b")!=e.root.rootName&&t[ra("0x4e")](e)}))}))};a("insertion",ra("0x78")),a(ra("0x7d"),"discard"),a(ra("0xa1"),ra("0x78")),a(ra("0xa1"),ra("0x47")),n._suggestionFactory.registerCustomCallback("insertion",ra("0x13"),ra("0x47"),(t=>{const e=t[ra("0x1c")]((t=>t[ra("0x5f")]())),n=e[0].findAncestor("table"),{minRow:r,maxRow:s}=i._getCoordsForCells(e);o[ra("0x80")](n,{at:r,rows:s-r+1})})),n[ra("0x7c")][ra("0x1e")]("insertion",ra("0x24"),ra("0x47"),(t=>{const e=t[ra("0x1c")]((t=>t[ra("0x5f")]())),n=e[0][ra("0xc")](ra("0x79")),{minColumn:r,maxColumn:s}=i[ra("0x15")](e);o.removeColumns(n,{at:r,columns:s-r+1})}));const c=(t,e)=>{if(!e[ra("0x11")]||!e[ra("0x11")].startsWith(ra("0x71")))return;const o=e[ra("0x57")][ra("0x44")],i=n[ra("0xa2")]().filter((t=>t[ra("0x4")]&&t.attributes&&t[ra("0x57")][ra("0x44")]==o));i[ra("0xb")]&&e[ra("0x30")]()[ra("0xb")]!=i[ra("0xb")]&&i[ra("0x86")](((t,e)=>(t[ra("0x27")]=e,e.previous=t,e)))};function l(t,e=!0){const{id:o}=n[ra("0x43")](t.markerName),i=["ck-suggestion-marker",ra("0x4a")],r=n[ra("0x12")][ra("0x2a")](t.markerName);return r&&i[ra("0x26")](ra("0x93")),{classes:i,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(ra("0x3b"),c,{priority:"high"}),n.on("suggestionUnloaded",c,{priority:ra("0x63")}),t.model[ra("0x9d")][ra("0x91")]((()=>{let e=!1;const o=Array[ra("0x6")](t[ra("0x9f")][ra("0x9d")][ra("0x7e")].getChangedMarkers());for(const{name:i,data:r}of o){const{group:o,type:s,id:x}=n[ra("0x43")](i);if(ra("0x21")!=o||ra("0xa1")!=s||r[ra("0x19")])continue;if(!n[ra("0x88")](x))continue;const a=n[ra("0x45")](x)[ra("0x61")](),c=t[ra("0x8f")].get(ra("0x96")).me;for(const t of n[ra("0xa2")]())if(t.isInContent&&t[ra("0x2b")]==c&&ra("0x8c")==t[ra("0x3c")]&&ra("0x5")==t[ra("0x11")]&&t[ra("0x61")]()[ra("0x76")]((t=>a[ra("0x46")]((e=>e[ra("0x28")](t,!0))))))for(const n of t[ra("0x30")]())n.isInContent&&(n[ra("0x47")](),e=!0)}return e})),t.model.document[ra("0x91")]((e=>{const o=t[ra("0x83")][ra("0x22")](ra("0x6d"));if(!o||!o._createdBatches[ra("0x3f")](e[ra("0x8d")]))return!1;let i=!1;const r=t[ra("0x8f")][ra("0x22")]("Users").me,s=t[ra("0x9f")][ra("0x9d")][ra("0x7e")].getChanges(),x=Array[ra("0x6")](t.model[ra("0x9d")][ra("0x7e")][ra("0x92")]()).filter((({name:t,data:e})=>{const{group:o,subType:i,authorId:s}=n[ra("0x43")](t);return"suggestion"==o&&ra("0x71")==i&&s==r.id&&!e.oldRange}));for(const t of s){if("insert"!=t[ra("0x3c")]||"tableCellSuggestion"!=t.name||1!=t[ra("0xb")])continue;const n=e[ra("0x23")](t.position,t[ra("0x70")][ra("0x90")](1));if(!x[ra("0x54")]((({data:t})=>t[ra("0x29")].isEqual(n))))for(const{name:t,data:o}of x)if(n[ra("0x28")](o.newRange)){e[ra("0x60")](t,{range:n}),i=!0;break}}return i})),t[ra("0x9f")][ra("0x9d")][ra("0x91")]((e=>{let o=!1;const i=t[ra("0x8f")][ra("0x22")](ra("0x96")).me,r=n.getSuggestions()[ra("0x1f")]((t=>t.isInContent&&t[ra("0x2b")]==i)),s=new Set,x=new Set;for(const t of r)if(ra("0x71")==t[ra("0x11")])for(const e of t[ra("0xa3")]()){const n=e.getRange().getContainedElement();if(n)if(n.is(ra("0x40"),ra("0x84"))&&ca(n)){t[ra("0x9e")](e[ra("0x55")]),s[ra("0x7a")](n),o=!0;const i=n[ra("0x67")],r=n[ra("0x36")],a=i&&i.is(ra("0x40"),ra("0x84")),c=r&&r.is(ra("0x40"),ra("0x84"));a&&!s[ra("0x3f")](i)&&x.add(i),c&&!s[ra("0x3f")](r)&&x.add(r)}else n.is(ra("0x40"),ra("0x9c"))&&n.isEmpty&&(t.removeMarker(e[ra("0x55")]),o=!0)}else if(ra("0x5")==t[ra("0x11")]){if(!t[ra("0x57")]||!t[ra("0x57")][ra("0x44")])continue;const e=t[ra("0x57")][ra("0x8e")];if(e&&Object[ra("0x68")](e)[ra("0xb")])continue;const n=t.attributes[ra("0x44")];let i=!0,s=!0;for(const e of r)if(e[ra("0x11")]&&e[ra("0x11")][ra("0xa4")](ra("0x71"))){if(!e.attributes[ra("0x44")]){s=!1;break}if(e.id!=t.id&&e[ra("0x57")][ra("0x44")]==n){i=!1;break}}s&&i&&(t[ra("0xf")](),o=!0)}for(const t of s)e[ra("0x6c")](t);for(const t of x)e.unwrap(t);return o})),t[ra("0x33")][ra("0x2e")](ra("0x7"))[ra("0x5b")]({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>l(t),converterPriority:ra("0x63")}),t[ra("0x33")][ra("0x2e")]("dataDowncast")[ra("0x5b")]({model:ra("0x59"),view:(t,e)=>e[ra("0x1a")].showSuggestionHighlights?l(t,!1):null,converterPriority:ra("0x63")});const u=t[ra("0x51")][ra("0x38")];this[ra("0x56")](u[ra("0x9d")],ra("0x9b"),((t,e)=>{const n=[];for(const t of u[ra("0x4b")](e[ra("0x5a")])[ra("0x89")]())t.is(ra("0x40"),ra("0x0"))&&n[ra("0x26")](t);u.change((t=>{for(const e of n)t[ra("0x77")](t[ra("0x4b")](e),t.createPositionBefore(e)),t[ra("0x6c")](e)}))}))}}function ca(t){if(t[ra("0x6b")])return!0;const e=t[ra("0x42")](0);return e.is("element",ra("0x9c"))&&e.isEmpty}function la(t,e={},n){for(const{isAnchor:o,cellHeight:i,cellWidth:r}of n[ra("0x37")](t,{includeAllSlots:!0,...e}))if(!o||1!=i||1!=r)return!1;return!0}const ua=["model","TableColumnResizeEditing","commandParams","formatGroupId","registerCustomCallback","bind","plugins","tableWidth","has","getTableColumnsWidths","getAttribute","accept","_descriptionFactory","*Format:* resize table","data","discard","selection","handleSuggestionDescription","type","getSuggestionCallback","getContainedElement","getSelectedElement","getSuggestions","resizeTableWidth","table","format","handleResizeTableWidthCommand","formatBlock","resizeTable","enableCommand","editor","getColumnGroupElement","Users","registerDescriptionCallback","afterInit","_suggestionFactory","get","change","TrackChangesEditing","columnWidths"];var da,ga;da=ua,ga=263,function(t){for(;--t;)da.push(da.shift())}(++ga);const fa=function(t,e){return ua[t-=0]};class ma extends t.Plugin{[fa("0xb")](){if(!this[fa("0x7")][fa("0x17")][fa("0x19")](fa("0x12")))return;const t=this[fa("0x7")].plugins.get(fa("0xf"));t[fa("0x6")]("resizeTableWidth",this[fa("0x3")][fa("0x16")](this)),t[fa("0xc")][fa("0x15")](fa("0x4"),fa("0x5"),"accept",t[fa("0xc")][fa("0x24")]("formatBlock",null,"discard")),t[fa("0xc")].registerCustomCallback(fa("0x4"),fa("0x5"),fa("0x20"),t._suggestionFactory[fa("0x24")]("formatBlock",null,fa("0x1c"))),t[fa("0x1d")][fa("0xa")](this[fa("0x22")][fa("0x16")](this))}[fa("0x3")](t,e){const n=this[fa("0x7")][fa("0x17")][fa("0xd")](fa("0xf")),o=this[fa("0x7")][fa("0x17")][fa("0xd")](fa("0x12")),i=e[fa("0x1")]||this[fa("0x7")][fa("0x11")].document[fa("0x21")][fa("0x26")]();this[fa("0x7")][fa("0x11")][fa("0xe")]((()=>{const r=o[fa("0x8")](i);let s=r?o[fa("0x1a")](r):null,x=i[fa("0x1b")]("tableWidth")||null;const a=e.tableWidth||x,c=e[fa("0x10")]||s,l=this[fa("0x7")][fa("0x17")][fa("0xd")](fa("0x9")).me;for(const t of n[fa("0x27")]()){const e=t[fa("0x25")]();if("resizeTable"===t.subType&&e===i){t.author!==l&&t[fa("0x20")]();const e=t[fa("0x1f")][fa("0x13")];x=e[0][fa("0x18")],s=e[0][fa("0x10")];break}}t({table:i,tableWidth:a,columnWidths:c}),n.markBlockFormat(i,{commandName:fa("0x0"),commandParams:[{tableWidth:x,columnWidths:s}],formatGroupId:fa("0x5")},[],fa("0x5"))}))}[fa("0x22")](t){if(fa("0x4")!=t[fa("0x23")]&&"formatInline"!=t.type)return;const{data:e}=t;if(e&&"resizeTable"===e[fa("0x14")]){const t=fa("0x1e");return{type:fa("0x2"),content:Jo(this[fa("0x7")].locale,t)}}}}const ha=["editor","Template","plugins","TrackChangesEditing","afterInit","has","insertTemplate"];var pa,ba;pa=ha,ba=489,function(t){for(;--t;)pa.push(pa.shift())}(++ba);const Ea=function(t,e){return ha[t-=0]};class _a extends t.Plugin{[Ea("0x5")](){const t=this[Ea("0x1")];t[Ea("0x3")][Ea("0x6")](Ea("0x2"))&&t[Ea("0x3")].get(Ea("0x4")).enableCommand(Ea("0x0"))}}const Ta=["locale","_descriptionFactory","editor","ELEMENT_TABLE_OF_CONTENTS","tableOfContents","TrackChangesEditing","afterInit","enableCommand","plugins","commands","registerElementLabel","get","insertTableOfContents"];var ya,Ca;ya=Ta,Ca=477,function(t){for(;--t;)ya.push(ya.shift())}(++Ca);const Aa=function(t,e){return Ta[t-=0]};class ka extends t.Plugin{[Aa("0xa")](){const t=this[Aa("0x6")];if(!t[Aa("0x0")][Aa("0x2")](Aa("0x3")))return;t[Aa("0xc")][Aa("0x2")](Aa("0x9"))[Aa("0xb")](Aa("0x3"));const e=t[Aa("0xc")][Aa("0x2")](Aa("0x9")),n=t[Aa("0x4")];e[Aa("0x5")][Aa("0x1")](Aa("0x8"),(t=>Jo(n,Aa("0x7"),t)))}}const Ia=["locale","afterInit","plugins","editor","schema","get","isTouching","getChangedMarkers","document","element","title-content","end","from","updateMarker","getNearestSelectionRange","start","model","ELEMENT_TITLE","isCollapsed","removeMarker","nodeBefore"];var Sa,va;Sa=Ia,va=363,function(t){for(;--t;)Sa.push(Sa.shift())}(++va);const Ra=function(t,e){return Ia[t-=0]};class Na extends t.Plugin{[Ra("0x10")](){const t=this[Ra("0x12")];if(!t[Ra("0x11")].has("Title"))return;const e=t[Ra("0x11")][Ra("0x14")]("TrackChangesEditing");e._descriptionFactory.registerElementLabel(Ra("0x4"),(()=>Jo(t[Ra("0xf")],Ra("0xb")))),t[Ra("0xa")].document.registerPostFixer((n=>{let o=!1;const i=Array[Ra("0x6")](t[Ra("0xa")][Ra("0x2")].differ[Ra("0x1")]());for(const{name:r,data:s}of i){const{group:i}=e._splitMarkerName(r);if("suggestion"!==i||!s.newRange)continue;const x=s.newRange,a=x[Ra("0x5")][Ra("0xe")];if(!a||!a.is(Ra("0x3"),Ra("0x4")))continue;if(!x[Ra("0x9")][Ra("0x0")](x[Ra("0x5")]))continue;const c=t[Ra("0xa")][Ra("0x13")][Ra("0x8")](x[Ra("0x5")],"forward");if(c&&c[Ra("0xc")]){const t=n.createRange(x.start,c[Ra("0x9")]);t.isEqual(x)||(n[Ra("0x7")](r,{range:t}),o=!0)}o||(n[Ra("0xd")](r),o=!0)}return o}))}}const La=["TrackChangesEditing","enableCommand","UndoEditing","plugins","afterInit","undo","editor"];var Ma,wa;Ma=La,wa=149,function(t){for(;--t;)Ma.push(Ma.shift())}(++wa);const Oa=function(t,e){return La[t-=0]};class Fa extends t.Plugin{[Oa("0x2")](){const t=this[Oa("0x4")],e=t[Oa("0x1")].get(Oa("0x5"));t[Oa("0x1")].has(Oa("0x0"))&&(e[Oa("0x6")](Oa("0x3")),e[Oa("0x6")]("redo"))}}const Da=["enableCommand","afterInit","get","toggleTableCaption","has","requires","editor","TrackChangesEditing"];var Ba,Pa;Ba=Da,Pa=144,function(t){for(;--t;)Ba.push(Ba.shift())}(++Pa);const Ua=function(t,e){return Da[t-=0]};class ja extends t.Plugin{static get[Ua("0x5")](){return[zx]}[Ua("0x1")](){const t=this[Ua("0x6")];t.plugins[Ua("0x4")]("TableCaptionEditing")&&t.plugins[Ua("0x2")](Ua("0x7"))[Ua("0x0")](Ua("0x3"))}}const Ga=["getFirstPosition","registerDescriptionCallback","change","get","tableBorderStyle","commandParams","getSuggestionCallback","tableBorderWidth","*Format:* change table properties","_handlePropertyChange","findAncestor","handleSuggestionDescription","tableCellVerticalAlignment","_getSuggestion","getAttribute","start","tableCellBorderStyle","getSelectionAffectedTableCells","format","tableCellWidth","plugins","tableCellBorderColor","discard","nodeAfter","tableHeight","tableBorderColor","tableCellBorderWidth","setAttribute","markBlockFormat","subType","enqueueChange","TablePropertiesEditing","table","model","document","getSuggestions","data","editor","formatBlock","_suggestionFactory","tableBackgroundColor","getContainedElement","registerCustomCallback","accept","TrackChangesEditing","tableCellBackgroundColor","tableAlignment","selection","tableCellHeight","handleDiscardAction","tableCellProperties","TrackChangesTableProperties","*Format:* change table cell properties","tableWidth","tableProperties","pluginName","_descriptionFactory","tableCellPadding"];var Va,Ha;Va=Ga,Ha=279,function(t){for(;--t;)Va.push(Va.shift())}(++Ha);const za=function(t,e){return Ga[t-=0]};class Wa extends t.Plugin{constructor(t){super(t),this[za("0x7")]=[za("0x24"),za("0xf"),za("0x12"),za("0x39"),za("0x6"),za("0x23"),za("0x33")],this[za("0x3")]=[za("0x20"),za("0x1b"),za("0x25"),za("0xa"),za("0x1e"),za("0x1"),za("0x38"),"tableCellHorizontalAlignment",za("0x17")]}static get[za("0x8")](){return za("0x4")}afterInit(){const t=this[za("0x30")].plugins.get(za("0x37"));if(this[za("0x30")][za("0x1f")].has(za("0x2a"))){for(const e of this[za("0x7")])t.enableCommand(e,((t,n)=>{const o=this.editor[za("0x2c")][za("0x2d")][za("0x0")][za("0xb")]()[za("0x15")](za("0x2b"));this[za("0x14")](e,[o],this.tableProperties,za("0x7"),t,n)}));t[za("0x32")][za("0x35")](za("0x31"),za("0x7"),za("0x36"),t[za("0x32")][za("0x11")]("formatBlock",null,za("0x21"))),t[za("0x32")][za("0x35")](za("0x31"),za("0x7"),za("0x21"),((t,e)=>this.handleDiscardAction(this[za("0x7")],t,e))),t[za("0x32")][za("0x35")](za("0x31"),"tableProperties","join",(()=>!1))}if(this[za("0x30")].plugins.has("TableCellPropertiesEditing")){for(const e of this[za("0x3")])t.enableCommand(e,((t,n)=>{const o=this.editor[za("0x1f")][za("0xe")]("TableUtils")[za("0x1c")](this[za("0x30")][za("0x2c")].document[za("0x0")]);this[za("0x14")](e,o,this[za("0x3")],"tableCellProperties",t,n)}));t._suggestionFactory[za("0x35")](za("0x31"),za("0x3"),za("0x36"),t[za("0x32")].getSuggestionCallback(za("0x31"),null,za("0x21"))),t[za("0x32")][za("0x35")](za("0x31"),za("0x3"),za("0x21"),((t,e)=>this.handleDiscardAction(this.tableCellProperties,t,e))),t[za("0x32")][za("0x35")]("formatBlock",za("0x3"),"join",(()=>!1))}t[za("0x9")][za("0xc")]((t=>this[za("0x16")](t)))}[za("0x14")](t,e,n,o,i,r){const s=this[za("0x30")][za("0x1f")][za("0xe")](za("0x37"));this[za("0x30")][za("0x2c")][za("0x29")](r.batch,(()=>{for(const t of e)if(this[za("0x18")](t,o))i(r);else{const e={};for(const o of n){const n=t[za("0x19")](o);void 0!==n&&(e[o]=n)}i(r),s[za("0x27")](t,{commandParams:[e]},[],o)}}))}[za("0x2")](t,e,n){const o=e[0][za("0x1a")][za("0x22")],i=n[za("0x10")][0];this.editor[za("0x2c")][za("0xd")]((e=>{for(const n of t)void 0!==i[n]?e[za("0x26")](n,i[n],o):e.removeAttribute(n,o)}))}[za("0x16")](t){if(t[za("0x2f")])switch(t[za("0x28")]){case za("0x7"):return{type:za("0x1d"),content:Jo(this.editor.locale,za("0x13"))};case"tableCellProperties":return{type:za("0x1d"),content:Jo(this[za("0x30")].locale,za("0x5"))}}}[za("0x18")](t,e){const n=this[za("0x30")][za("0x1f")][za("0xe")](za("0x37"));for(const o of n[za("0x2e")]({skipNotAttached:!0})){const n=o[za("0x34")]();if(o[za("0x28")]===e&&n===t)return o}return null}}var Ka=Function.prototype,qa=Object.prototype,Xa=Ka.toString,$a=qa.hasOwnProperty,Za=Xa.call(Object);const Qa=function(t){if(!xe(t)||"[object Object]"!=gt(t))return!1;var e=xn(t);if(null===e)return!0;var n=$a.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Xa.call(n)==Za};const Ya=function(t){return Qa(t)?void 0:t};var Ja=it?it.isConcatSpreadable:void 0;const tc=function(t){return ge(t)||de(t)||!!(Ja&&t&&t[Ja])};const ec=function t(e,n,o,i,r){var s=-1,x=e.length;for(o||(o=tc),r||(r=[]);++s<x;){var a=e[s];n>0&&o(a)?n>1?t(a,n-1,o,i,r):sn(r,a):i||(r[r.length]=a)}return r};const nc=function(t){return(null==t?0:t.length)?ec(t,1):[]};const oc=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)};var ic=Math.max;const rc=function(t,e,n){return e=ic(void 0===e?t.length-1:e,0),function(){for(var o=arguments,i=-1,r=ic(o.length-e,0),s=Array(r);++i<r;)s[i]=o[e+i];i=-1;for(var x=Array(e+1);++i<e;)x[i]=o[i];return x[e]=n(s),oc(t,this,x)}};const sc=function(t){return function(){return t}};const xc=ee?function(t,e){return ee(t,"toString",{configurable:!0,enumerable:!1,value:sc(e),writable:!0})}:function(t){return t};var ac=Date.now;const cc=function(t){var e=0,n=0;return function(){var o=ac(),i=16-(o-n);if(n=o,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(xc);const lc=function(t){return cc(rc(t,void 0,nc),t+"")}((function(t,e){var n={};if(null==t)return n;var o=!1;e=uo(e,(function(e){return e=po(e,t),o||(o=e.length>1),e})),re(t,dn(t),n),o&&(n=to(n,7,Ya));for(var i=e.length;i--;)Ko(n,e[i]);return n})),uc=["track-changes-command-not-found","batch","_updateSuggestionData","setAttribute","_findSuggestions","markAttributeChange","getCustomProperty","_recordAttributeChanges","getUser","createRange","getFirstRange","previous","rootName","model","formatBlock:","getAncestors","markInlineFormat","originalSuggestionId","item","removeAttribute","_saved","consumable","options","getSuggestions","markerName","@external","removeMarker","values","discardSelectedSuggestions","isNextTo","_recordAttributeSuggestionsFromVersion","commandName","addSuggestionData","getSuggestion","warn","markMultiRangeBlockFormat","track-changes-adapter-missing-getsuggestion","isInsideObject","getShiftedBy","deletion:","detach","fromRange","_inlineAttributeKeys","containsItem","suggestion:attribute:","formatBlock:accept","_enabledCommands","isBefore","suggestionUnloaded","nodeBefore","backward","never","_getMarkerAnnouncementText","deletion:chain","addAttribute","differ","track-changes-enable-command-twice","high","deletion:join","_setSuggestionData","before","addHighlight","selection","acceptSuggestion","activeMarkers","external:","formatBlock","isEqual","suggestionChanged","containerElement","isIntersecting","_suggestionState","ENTER","commands","update:suggestion","trackChanges","_isForcedDefaultExecutionBlock","CommentsRepository","_onDiscard","change:_saved","ready","resolve","getOperations","filter","hasCommentThread","setTo","suggestionLoaded","announce","unshift","comments","fetchCommentThread","toUpperCase","define","isAtStart","discardSuggestion","track-changes-suggestion-not-found","PENDING_ACTION_SUGGESTION","push","isAfter","remove","rethrowUnexpectedError","_getAuthorFromId","_removeSuggestion","collaboration.channelId","some","registerCustomCallback","trackChanges.mergeNestedSuggestions","track-changes-suggestion-data-mismatch","change:data","_createSuggestion","elementEnd","startsWith","size","isObject","consume","createElement","map","reconvertMarker","addCommentThread","root","removed","_breakSuggestionMarker","splitPosition","enqueueChange","attributes","accept","_handleNewSuggestionMarker","_commentsRepository","containsRangeInObject","author","removeMarker:suggestion:formatBlock","_suggestionFactory","value","formatInline","removeMarkers","_registerInlineAttribute","commentThread","editingDowncast","then","addRange","dataReady","authorName","addMarker:suggestion:attribute","forEach","name","removeClass","getNearestSelectionRange","rename","_suggestions","_splitMarkerName","data","_addThreadToSuggestion","config","default","widget","_refreshAttributeSuggestionsChain","delete","history","acceptSelectedSuggestions","ck-suggestion-marker","start","_registerDefaultCallbacks","rejected","after","_getAttributeKeyFromSubType","notReady","getWalker","createPositionAt","writer","isMultiRange","FORMATTING","isLocal","buildSuggestion","get","isUndo","_registerBlockAttribute","trackChangesCommand","_blockAttributeKeys","updateMarker","element","_checkSuggestionCorrectness","formatInline:chain","createSelection","createRangeOn","isOwn","containsPosition","key","listenTo","elementStart","suggestion","addMarkerName","plugins","_model","moveTargetPosition","$graveyard","requires","assign","formatBlock:discard","stop","_reduceSuggestionAttributeRange","getMultiRangeId","has","creator","mapper","position","_addSuggestionMarker","includes","PendingActions","nodeAfter","_getExternalAuthor","isLimit","version","dataDowncast","getCommentThread","hasSuggestion","chain","isCollapsed","fire","$textProxy","isIntersectingWithRange","targetPosition","discardAllSuggestions","highest","upcast","deletion:accept","markDeletion","hasComments","getRange","markBlockFormat","discard","deletion:discard","execute","_defaultCallbacks","clone","_adapter","always","attribute","addUser","enableReadOnlyMode","meta","_processAttributeSuggestions","adapter","concat","open","keys","attributeKey","unbind","format","add","conversion","getChanges","_reduceExistingSuggestions","length","set","TrackChangesEditing","attribute:discard","substring","formatInline:","documentSelection","addMarker:suggestion:formatBlock","oldRange","getChangedMarkers","_refreshSuggestionsChain","updateSuggestion","_editor","enableCommand","isRemovable","isExternal","markInsertion","getAttribute","suggestion:","move","multipleBlocks","document","fromCharCode","setSelection","schema","toViewElement","markerToData","change:activeMarkers","dataToMarker","_cutOutSuggestionMarker","insertion:discard","getIntersection","attributeNewValue","addMarker","_joinSuggestions","split","type","multi","createRangeIn","addSuggestion","insert","addClass","$marker","applyOperation","insertion:join","locale","forceDefaultExecution","_trackFormatChanges","createPositionBefore","pluginName","lowest","newValue","markMultiRangeDeletion","skipNestingCheck","attribute:join","deletion","parent","oldValue","ck-suggestion-marker-formatInline","acceptAllSuggestions","ck-suggestion-marker--active","$text","every","removeComment","sort","_customCallbacks","low","_isDataLoaded","getDifference","elementToElement","init","attributeOldValue","insertion","addComment","markerNameToElements","return","pop","isInContent","_getSuggestionData","isAtEnd","end","_initAriaMarkerChangeAnnouncements","createdAt","$elementName","marker-count","attribute:accept","ariaLiveAnnouncer","markerToHighlight","groupId","Users","_joinWithAdjacentSuggestions","isTouching","formatInline:accept","ck-suggestion-marker-formatBlock","getFirstMarker","getSuggestionCallback","howMany","isBlock","for","subType","formatInline:join","getRanges","_isBlockAttribute","containsRange","getAllAdjacentSuggestions","editor","toJSON","formatGroupId","showSuggestionHighlights","registerPostFixer","_rangeIsInLocalUserInsertion","getLastMatchingPosition","find","change","next","catch","_setSuggestionRange","changeAttribute","normal","join","_mergeNestedSuggestions","addMarker:suggestion","formatBlock:chain","_enableDefaultAttributesIntegration","markMultiRangeInsertion","splice","newName","from","authoredAt","clear","newRange","range","_processAttributeChanges","Creating a suggestion for attribute with too long attribute key. This may lead to errors. Change the attribute key to a value shorter than 37 characters."];var dc,gc;dc=uc,gc=151,function(t){for(;--t;)dc.push(dc.shift())}(++gc);const fc=function(t,e){return uc[t-=0]},mc=fc("0xb8");class hc extends t.Plugin{static get[fc("0x2c")](){return[fc("0x138"),r.Users,t.PendingActions,ci,fi,_i,ki,Li,Di,Vi,tr,rr,lr,hr,Tr,Sr,Mr,Pr,Hr,Xr,Jr,is,fs,cs,Es,As,Rs,Os,Us,Ks,Qs,nx,xx,dx,bx,Cx,vx,Ox,Ux,zx,Zx,ea,ja,aa,ma,ka,Wa,_a,Na,Fa]}static get[fc("0x96")](){return fc("0x67")}constructor(t){function e(t){return t[fc("0x15f")]((t=>String[fc("0x7b")](t)))[fc("0xdc")]("")}super(t),this[fc("0x109")]=null,this[fc("0x66")](fc("0x12b"),[]),this.on(fc("0x80"),((e,n,o,i)=>{this[fc("0x29")][fc("0xd6")]((()=>{for(const e of[...i,...o])this[fc("0x29")].markers.has(e)&&t.editing[fc("0x160")](e)}))})),this._descriptionFactory=new ii(this[fc("0xce")][fc("0xf8")][fc("0x7d")],this[fc("0xce")][fc("0x92")]),this[fc("0x53")]=null,this[fc("0x16e")]=new pc(this[fc("0xce")]),this[fc("0x17f")]=new Map,this[fc("0x16a")]=t[fc("0x28")][fc("0x16")]("CommentsRepository"),this[fc("0x119")]=new Set,this[fc("0x29")]=this[fc("0xce")][fc("0xf8")],this._suggestionState=new WeakMap,this[fc("0x137")]=!1,this._blockAttributeKeys=new Set([fc("0xb8")]),this[fc("0x115")]=new Set,t[fc("0x1")].define("trackChanges.trackFormatChanges",fc("0x2")),this[fc("0x94")]=t.config[fc("0x16")]("trackChanges.trackFormatChanges"),t[fc("0x1")][fc("0x147")](fc("0x155"),!0),this[fc("0xdd")]=t.config.get(fc("0x155")),this.trackChangesCommand=new d(t,this[fc("0x119")]),this._initAriaMarkerChangeAnnouncements(),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,50,50,51,48])}[fc("0xab")](){const t=this[fc("0xce")],n=(t,e)=>{if("attribute"!=t)return"ck-suggestion-marker-"+t;const n=e[fc("0x88")]("|")[0];return this[fc("0xcb")](n)?fc("0xc2"):fc("0x9f")};t[fc("0x62")][fc("0xc7")](fc("0x174")).markerToHighlight({model:fc("0x26"),view:t=>{const{id:e,type:o,subType:i}=this[fc("0x180")](t[fc("0x103")]),r=[fc("0x8"),n(o,i)];let s=3e3;return this.activeMarkers[fc("0x37")](t.markerName)&&(r[fc("0x14c")](fc("0xa1")),s=3010),fc("0x9c")==o&&(s+=5),{classes:r,attributes:{"data-suggestion":e},priority:s}}}),t[fc("0x62")][fc("0xc7")](fc("0x3d"))[fc("0x61")]((e=>{e.on(fc("0xde"),((e,n,o)=>{if(!o[fc("0x101")].showSuggestionHighlights)return;const i=n[fc("0xfd")];if(!i)return;const r=o[fc("0x34")].toViewElement(i);t.model[fc("0x7d")].isObject(i)&&r&&!r[fc("0xf1")](fc("0x3"))&&r.is(fc("0x130"))&&(0,x.toWidget)(r,o[fc("0x11")])}),{priority:fc("0x124")})})),t.conversion[fc("0xc7")](fc("0x3d"))[fc("0xbc")]({model:"suggestion",view:(t,e)=>{if(!e[fc("0x101")][fc("0xd1")])return null;const{type:o,subType:i}=this[fc("0x180")](t[fc("0x103")]);return{classes:["ck-suggestion-marker",n(o,i)],priority:3e3}}});const o=({showActiveMarkers:e=!0,isAttributeSuggestion:n=!1}={})=>(o,i,r)=>{if(!i[fc("0xfd")])return;const{id:s}=this._splitMarkerName(i[fc("0x103")]);if(n){const t=this[fc("0x17f")][fc("0x16")](s),e=this._getAttributeKeyFromSubType(t);if(!this[fc("0xcb")](e))return}if(i[fc("0xfd")].is(fc("0x129")))return void r.consumable[fc("0x15d")](i[fc("0xfd")],o.name);const x=r[fc("0x34")][fc("0x7e")](i[fc("0xfd")]);if(i[fc("0xfd")].is(fc("0x1c"))&&t[fc("0xf8")][fc("0x7d")][fc("0xc6")](i[fc("0xfd")])&&!x.getCustomProperty(fc("0x128"))){r.writer[fc("0x8e")]([fc("0x8"),fc("0xc2")],x),r[fc("0x11")][fc("0xee")]("data-suggestion",s,x),r[fc("0x34")].bindElementToMarker(x,i[fc("0x103")]),e&&(this[fc("0x12b")][fc("0x37")](i[fc("0x103")])?r[fc("0x11")].addClass(fc("0xa1"),x):r[fc("0x11")][fc("0x17c")](fc("0xa1"),x));for(const e of t[fc("0xf8")][fc("0x8b")](i[fc("0xfd")]).getItems())r[fc("0x100")][fc("0x15d")](e,o[fc("0x17b")]);r.consumable[fc("0x15d")](i[fc("0xfd")],o[fc("0x17b")])}};t[fc("0x62")][fc("0xc7")](fc("0x3d"))[fc("0x61")]((t=>{t.on(fc("0x6c"),((t,e,n)=>{n[fc("0x101")][fc("0xd1")]&&o({showActiveMarkers:!1})(t,e,n)}),{priority:fc("0x47")})})),t[fc("0x62")][fc("0xc7")](fc("0x3d")).add((t=>{t.on("addMarker:suggestion:attribute",((t,e,n)=>{n[fc("0x101")][fc("0xd1")]&&o({showActiveMarkers:!1,isAttributeSuggestion:!0})(t,e,n)}),{priority:fc("0x47")})})),t[fc("0x62")][fc("0xc7")](fc("0x3d"))[fc("0x7f")]({model:fc("0x26"),view:(t,e)=>e[fc("0x101")][fc("0xd1")]?null:{group:fc("0x26"),name:t.substr(11)}}),t.conversion.for(fc("0x48"))[fc("0xaa")]({view:{name:fc("0x26"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=fc("0x77")+t[fc("0x76")]("suggestion-type")+":"+t.getAttribute("id");return t[fc("0x76")]("marker-count")&&(n+=":"+t[fc("0x76")](fc("0xb9"))),e[fc("0x15e")](fc("0x8f"),{"data-name":n})}}),t.conversion.for(fc("0x48"))[fc("0x81")]({view:fc("0x26")}),t.conversion[fc("0xc7")]("editingDowncast").add((t=>{t.on(fc("0x6c"),o(),{priority:fc("0x124")})})),t[fc("0x62")][fc("0xc7")]("editingDowncast")[fc("0x61")]((t=>{t.on(fc("0x179"),o({isAttributeSuggestion:!0}),{priority:fc("0x124")})})),t[fc("0x62")].for(fc("0x174"))[fc("0x61")]((t=>{t.on(fc("0x16d"),((t,e,n)=>{const o=n[fc("0x34")][fc("0xaf")](e.markerName);if(o)for(const t of o)t.getCustomProperty(fc("0x128"))||(n.writer[fc("0x17c")]([fc("0x8"),"ck-suggestion-marker-formatBlock","ck-suggestion-marker--active"],t),n[fc("0x11")][fc("0xfe")]("data-suggestion",t),n.mapper.unbindElementFromMarkerName(t,e[fc("0x103")]))}),{priority:fc("0x124")})})),t.conversion[fc("0xc7")](fc("0x174"))[fc("0x61")]((t=>{t.on("removeMarker:suggestion:attribute",((t,e,n)=>{const o=n[fc("0x34")][fc("0xaf")](e.markerName);if(!o)return;const{id:i}=this[fc("0x180")](e[fc("0x103")]),r=this[fc("0x17f")].get(i),s=this[fc("0xd")](r);if(this[fc("0xcb")](s))for(const t of o)t[fc("0xf1")]("addHighlight")||(n.writer[fc("0x17c")]([fc("0x8"),fc("0xc2"),fc("0xa1")],t),n[fc("0x11")][fc("0xfe")]("data-suggestion",t),n[fc("0x34")].unbindElementFromMarkerName(t,e[fc("0x103")]))}),{priority:"high"})})),t[fc("0xf8")].document.registerPostFixer((e=>{let n=!1;const o=Array[fc("0xe4")](t[fc("0xf8")].document[fc("0x122")].getChangedMarkers()),i=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,subType:l,id:u}=this[fc("0x180")](x);if(fc("0x26")!==o)continue;const d=this[fc("0x17f")].get(u);if(null!=a.newRange){fc("0x170")==c&&(n=n||_c(a[fc("0xe7")],x,e,t[fc("0xf8")].schema));const o=fc("0x55")==c&&this[fc("0xcb")](l.split("|")[0]);if(a[fc("0xe7")][fc("0x41")]||fc("0x2b")==a[fc("0xe7")][fc("0x162")][fc("0xf7")]||fc("0x12d")==c&&!yc(a[fc("0xe7")])||o&&!yc(a[fc("0xe7")])||"deletion"==c&&(Ec(s=a.newRange)||(r=s)[fc("0x9")].parent==r[fc("0xb5")][fc("0x11c")]&&r[fc("0x9")].isAtEnd))e.removeMarker(x),n=!0;else{if(!d||!d[fc("0xb2")])continue;i[fc("0x61")](d)}}}var r,s;return i[fc("0x15b")]>0&&(n=!!this[fc("0xbf")](i)||n),n})),t[fc("0xf8")].document[fc("0xd2")]((e=>{let n=!1;for(const o of t[fc("0xf8")][fc("0x7a")][fc("0x122")].getChanges())if(fc("0x8d")==o.type)for(const o of this[fc("0x17f")][fc("0x106")]()){if(o[fc("0x12")]||!o[fc("0xb2")])continue;const i=fc("0x12d")==o[fc("0x89")],r=this[fc("0xd")](o),s=r&&this[fc("0xcb")](r);if(!i&&!s)continue;const x=o[fc("0xf5")]();if(x[fc("0x9")].parent!=x[fc("0xb5")].parent&&!x[fc("0xb5")][fc("0xb4")]){const i=t.model[fc("0x10")](x[fc("0x9")][fc("0x39")],"end"),r=t[fc("0xf8")][fc("0xf4")](x[fc("0x9")],i);e.updateMarker(o[fc("0xc3")](),{range:r}),n=!0}}return n})),t[fc("0xf8")][fc("0x7a")].registerPostFixer((t=>this[fc("0xe9")](t))),t.model[fc("0x7a")][fc("0xd2")]((t=>!t[fc("0xec")][fc("0x14")]&&this[fc("0x59")](t))),t.model.markers.on(fc("0x135"),((t,e,n)=>{if(null==n){const{id:t}=this._splitMarkerName(e[fc("0x17b")]),n=this._suggestions[fc("0x16")](t);n&&n.addMarkerName(e[fc("0x17b")])}})),t[fc("0xf8")][fc("0x7a")].on(fc("0x157"),(()=>{const e=Array.from(t[fc("0xf8")][fc("0x7a")].differ[fc("0x6e")]()).filter((t=>fc("0x26")===this._splitMarkerName(t[fc("0x17b")]).group));if(0===e.length)return;e[fc("0xa5")](((t,e)=>{const n=t[fc("0x181")].oldRange,o=e[fc("0x181")][fc("0x6d")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[fc("0x9")][fc("0x11a")](o.start)?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:i}of e){const{id:e}=this[fc("0x180")](t);if(null===i[fc("0x6d")]){const e=this[fc("0x169")](t);o[fc("0x61")](e)}else{const t=this[fc("0x17f")][fc("0x16")](e);null!==i[fc("0xe7")]||t[fc("0xb2")]?(n[fc("0x61")](t.head),o[fc("0x61")](t)):this._removeSuggestion(t)}}o[fc("0x15b")]>0&&this[fc("0x6f")](o);for(const t of n)this[fc("0x42")](fc("0x12f"),t)})),t[fc("0xf8")].on(fc("0x90"),((e,n)=>{const o=n[0];if(!this[fc("0x17f")][fc("0x15b")])return;if(!o.isDocumentOperation)return;if(o[fc("0xec")][fc("0x17")]||!o[fc("0xec")][fc("0x14")])return;let i,r;switch(o[fc("0x89")]){case fc("0x8d"):i=t[fc("0xf8")][fc("0x10")](o.position),r=i.getShiftedBy(o[fc("0xc5")]);break;case fc("0x88"):i=t.model[fc("0x10")](o[fc("0x165")]),r=t[fc("0xf8")][fc("0x10")](o[fc("0x2a")]);break;case fc("0x78"):i=t[fc("0xf8")][fc("0x10")](o[fc("0x45")]),r=i[fc("0x111")](o.howMany);break;default:return}const s=t.model[fc("0xf4")](i,r);t[fc("0xf8")].change((()=>{for(const{suggestion:t,meta:e}of this._findSuggestions(s)){if(t.isMultiRange)continue;if("formatInline"==t[fc("0x89")])continue;const n=this[fc("0xd")](t);if(n&&this._isBlockAttribute(n)&&fc("0x88")!=o[fc("0x89")])continue;const x=t[fc("0x181")]&&t[fc("0x181")][fc("0x79")];(fc("0x12d")!=t[fc("0x89")]||fc("0x88")==o[fc("0x89")]&&!x)&&(e[fc("0x16b")]||fc("0xad")==t.type&&e[fc("0x21")]||t[fc("0xf5")]()[fc("0xcc")](s)&&this[fc("0x164")](t,i,r))}}))}),{priority:fc("0x97")}),t[fc("0xf8")].on("deleteContent",((e,n)=>{const o=n[0],i=n[1];if(i&&i.forceDefaultExecution)return;if(this[fc("0x137")])return;if(!this.trackChangesCommand[fc("0x16f")])return;if(o.isCollapsed)return;const r=t.model[fc("0x7d")],{start:s,end:x}=o[fc("0xf5")](),a=s.nodeAfter&&r[fc("0x3b")](s[fc("0x39")])?null:r[fc("0x17d")](s,"forward"),c=x.nodeBefore&&r[fc("0x3b")](x.nodeBefore)?null:r[fc("0x17d")](x,fc("0x11d")),l=t.model.createRange(a?a[fc("0x9")]:s,c?c.end:x);t[fc("0xf8")][fc("0xd6")]((e=>{this[fc("0x4a")](l);const n=t[fc("0xf8")][fc("0x7d")].getNearestSelectionRange(l[fc("0x9")]);o.is(fc("0x6b"))?e[fc("0x7c")](n):o[fc("0x140")](n)})),e[fc("0x2f")]()}),{priority:e.priorities[fc("0xdb")]+10}),t.model.on("insertContent",((e,n)=>{const o=n[n[fc("0x65")]-1];o&&o[fc("0x93")]||this[fc("0x137")]||this.trackChangesCommand[fc("0x16f")]&&(t[fc("0xf8")][fc("0xd6")]((()=>{let o=t[fc("0xf8")].insertContent(n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[fc("0xb0")]=o[fc("0x52")]();const i=o[fc("0xb5")].nodeBefore,r=t.model[fc("0x7d")];i&&r.isBlock(i)&&!r[fc("0x15c")](i)&&(o=t[fc("0xf8")][fc("0xf4")](o[fc("0x9")],t[fc("0xf8")].createPositionAt(i,"end"))),this[fc("0x75")](o)})),e.stop())}),{priority:fc("0x124")}),this[fc("0xce")][fc("0x134")][fc("0x61")](fc("0x136"),this[fc("0x19")]),this[fc("0x72")](fc("0x136"));const i=new p(t,this[fc("0x17f")]);t[fc("0x134")][fc("0x61")]("acceptSuggestion",i),this.enableCommand(fc("0x12a"));const r=new y(t,this[fc("0x17f")]);t.commands[fc("0x61")](fc("0x149"),r),this[fc("0x72")](fc("0x149")),t.commands[fc("0x61")](fc("0xa0"),new F(t,i,this[fc("0x17f")])),this[fc("0x72")](fc("0xa0")),t[fc("0x134")][fc("0x61")](fc("0x46"),new F(t,r,this[fc("0x17f")])),this[fc("0x72")](fc("0x46")),t[fc("0x134")].add(fc("0x7"),new j(t,i,this[fc("0x17f")])),this[fc("0x72")]("acceptSelectedSuggestions"),t[fc("0x134")][fc("0x61")](fc("0x107"),new j(t,r,this[fc("0x17f")])),this[fc("0x72")](fc("0x107"));const s=t[fc("0x28")][fc("0x16")](fc("0x138"));this[fc("0x24")](s,fc("0xae"),((t,{threadId:e})=>{const n=this[fc("0x17f")][fc("0x16")](e);n&&n[fc("0x173")]&&1===n[fc("0x173")][fc("0x65")]&&this[fc("0xed")](e,{hasComments:!0})}),{priority:fc("0xa7")}),this[fc("0x24")](s,fc("0xa4"),((t,{threadId:e})=>{const n=this[fc("0x17f")][fc("0x16")](e);n&&n[fc("0x173")]&&!n.commentThread.length&&this[fc("0xed")](e,{hasComments:!1})}),{priority:fc("0xa7")})}set[fc("0x5a")](t){if(this[fc("0x53")])throw new e.CKEditorError("track-changes-adapter-already-set",this);this[fc("0x53")]=t}get adapter(){return this[fc("0x53")]}[fc("0x102")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[fc("0x17f")][fc("0x106")]())t&&!e[fc("0xb2")]||n.push(e);return e?n[fc("0x15f")]((t=>t[fc("0xcf")]())):n}[fc("0x10c")](t){const n=this[fc("0x17f")][fc("0x16")](t);if(!n)throw new e.CKEditorError(fc("0x14a"),this);return n}[fc("0x3f")](t){return this[fc("0x17f")][fc("0x32")](t)}[fc("0x10b")](t){const{authorId:e,id:n,attributes:o}=t,[i,r]=t[fc("0x89")][fc("0x88")](":"),s=this[fc("0x17f")].get(n)||this[fc("0x158")](i,r,n,e,o);if(this[fc("0x0")](s),this[fc("0x1d")](s,i,r||null,e),s[fc("0xb7")]=t.createdAt,s._isDataLoaded=!0,o&&o[fc("0x104")]){const t=o[fc("0x104")],e=this[fc("0x3a")](t[fc("0x178")]);s[fc("0xe5")]=t[fc("0xb7")],s[fc("0x16c")]=e,s[fc("0x74")]=!0}else s[fc("0xe5")]=t[fc("0xb7")];switch(t[fc("0x181")]&&(s[fc("0x181")]=t[fc("0x181")]),t[fc("0x167")]&&(s[fc("0x167")]=t[fc("0x167")]),this[fc("0x53")]&&this[fc("0x53")][fc("0x8c")]||(s[fc("0xff")]=!0),this._suggestionState.get(s)){case fc("0xe"):this[fc("0x132")][fc("0x66")](s,"dataReady");break;case"markerReady":s[fc("0xb2")]?(this[fc("0x6f")](new Set([s])),this[fc("0xbf")](new Set([s])),this[fc("0x132")][fc("0x66")](s,fc("0x13b")),this[fc("0x42")](fc("0x141"),s)):this[fc("0x132")][fc("0x66")](s,fc("0x163"))}return s}[fc("0x12a")](t){this[fc("0x93")]((()=>{this[fc("0xce")].model[fc("0xd6")]((()=>{for(const e of t.getAllAdjacentSuggestions())e[fc("0x168")]()}))}))}discardSuggestion(t){this.forceDefaultExecution((()=>{this[fc("0xce")].model[fc("0xd6")]((()=>{for(const e of t[fc("0xcd")]())e[fc("0x4e")]()}))}))}enableCommand(t,n){const o=this[fc("0xce")][fc("0x134")][fc("0x16")](t);if(!o)throw new e.CKEditorError(fc("0xeb"),this,{commandName:t});if(this._enabledCommands.has(o))throw new e.CKEditorError(fc("0x123"),this,{commandName:t});this._enabledCommands[fc("0x61")](o),n&&o.on(fc("0x50"),((t,e)=>{this.trackChangesCommand[fc("0x16f")]&&(this[fc("0x137")]||(e.length>0&&e[e[fc("0x65")]-1]&&e[e[fc("0x65")]-1][fc("0x93")]?e[fc("0xb1")]():(t[fc("0xb0")]=n(((...t)=>o[fc("0x50")](...t,{forceDefaultExecution:!0})),...e),t[fc("0x2f")]())))}),{priority:"high"})}[fc("0x93")](t){let n,o;const i=this[fc("0x137")];this._isForcedDefaultExecutionBlock=!0;try{n=t()}catch(t){o=t}return i||(this[fc("0x137")]=!1),o&&e.CKEditorError[fc("0x14f")](o,this),n}[fc("0x75")](t,n=null,o={}){if(t.isCollapsed)return null;const i=this[fc("0xce")][fc("0x28")].get(fc("0xbe")).me;for(const{suggestion:e,meta:i}of this._findSuggestions(t,fc("0xad")))if(i[fc("0x21")]){if(!i.isNextTo){if(i[fc("0x16b")]){if(!this[fc("0xdd")]||!Ic(e,o))continue;return e}if(Ic(e,o))return e;this[fc("0x164")](e,t[fc("0x9")],t[fc("0xb5")]);break}if(n==e[fc("0xc8")]&&Ic(e,o)){const n=e[fc("0xf5")]();return n[fc("0x9")][fc("0x12e")](t.end)?this[fc("0xd9")](e,this[fc("0x29")][fc("0xf4")](t[fc("0x9")],n[fc("0xb5")])):this[fc("0xd9")](e,this[fc("0x29")].createRange(n[fc("0x9")],t[fc("0xb5")])),e}}const r=(0,e.uid)(),s=i.id,x=n?"insertion:"+n:fc("0xad"),a=this[fc("0x126")]({id:r,type:x,createdAt:new Date,authorId:s,attributes:o});return this._addSuggestionMarker(x,r,s,t),a}[fc("0xe1")](t,n=fc("0x8a"),o={}){const i=this[fc("0xce")][fc("0x28")].get(fc("0xbe")).me,r=this[fc("0x16e")][fc("0xc4")](fc("0xad"),n,fc("0xdc"));for(const e of this[fc("0x102")]())if(e[fc("0x16c")].id==i.id&&fc("0xad")==e[fc("0x89")]&&e[fc("0xc8")]==n&&Ic(e,o)&&(r(e.getRanges(),t)||r(t,e[fc("0xca")]()))){for(const n of t)e[fc("0x176")](n);return e}for(const{suggestion:e,meta:n}of this[fc("0xef")](t,fc("0xad"))){if(!n[fc("0x21")])continue;if(!this[fc("0xdd")]&&n[fc("0x16b")])continue;if(!Ic(e,o))continue;let i=!0;for(const n of e[fc("0xca")]())for(const e of t)if(!n[fc("0xcc")](e)){i=!1;break}if(i)return e}const s=(0,e.uid)(),x=i.id,a="insertion:"+n,c=this[fc("0x126")]({id:s,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[fc("0x36")](a,s,x,e,Yo[fc("0x31")]());return c}[fc("0xfb")](t,n,o=null,i={}){if(o=o||Tc(n),t[fc("0x41")])return null;if(fc("0x11e")===this._trackFormatChanges){const e=this[fc("0x16e")][fc("0xc4")](fc("0x170"),o,"accept");return this.forceDefaultExecution((()=>e([t],n,i))),null}const r=this[fc("0xce")][fc("0x28")][fc("0x16")]("Users").me,s=[];if(fc("0x54")!==this[fc("0x94")])for(const{suggestion:e,meta:n}of this._findSuggestions(t,fc("0xad")))n[fc("0x21")]&&!n.isInsideObject&&s[fc("0x14c")](...e[fc("0xca")]());const x=function(t,e){const n=[];for(const o of e){const e=t.getIntersection(o);e&&n.push(e)}return n}(t,s),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[fc("0x65")];){const o=n[e][fc("0xa9")](t);n[fc("0xe2")](e,1,...o),e+=o[fc("0x65")]}}return n}(t,s);x[fc("0x65")]&&this._model.change((()=>{for(const t of x){const e=this._suggestionFactory[fc("0xc4")](fc("0x170"),o,fc("0x168"));this.forceDefaultExecution((()=>e([t],n,i)))}}));for(const t of a){let s=null,x=t[fc("0x9")],a=t.end;for(const{suggestion:e,meta:n}of this._findSuggestions(t,fc("0x170"))){if(!n[fc("0x21")])continue;if(e[fc("0xc8")]!=o)continue;if(!Ic(e,i))continue;const r=e.getFirstRange();if(r[fc("0xcc")](t,!0))return null;x=x.isBefore(r[fc("0x9")])?x:r.start,a=a[fc("0x14d")](r[fc("0xb5")])?a:r[fc("0xb5")],s?r[fc("0x9")][fc("0x11a")](s.getFirstRange().start)?(s[fc("0x171")](),s=e):e.removeMarkers():s=e}const c=this[fc("0x29")].createRange(x,a);if(s)this[fc("0xd9")](s,c);else{const t=(0,e.uid)(),s=r.id;this[fc("0x126")]({id:t,type:"formatInline:"+o,data:n,createdAt:new Date,authorId:s,attributes:i}),this[fc("0x36")](fc("0x6a")+o,t,s,c)}}return null}[fc("0x4d")](t,n,o=[],i=null,r={}){n[fc("0xd0")]||(n[fc("0xd0")]=n[fc("0x10a")]),n[fc("0x79")]=t.is(fc("0xe8")),i=i||Tc(n);const s=o[fc("0x15f")]((t=>Cc(t,this[fc("0x29")]))),x=t.is(fc("0xe8"))?t:Cc(t,this[fc("0x29")]);if("never"===this[fc("0x94")]){const t=this._suggestionFactory[fc("0xc4")](fc("0x12d"),i,fc("0x168"));return this[fc("0x93")]((()=>t([x],n,r))),null}s[fc("0x14c")](x);let a=!0;for(const t of s)if(!this[fc("0xd3")](t)){a=!1;break}if(a&&fc("0x54")!==this[fc("0x94")]){const t=this[fc("0x16e")][fc("0xc4")](fc("0x12d"),i,fc("0x168"));return this[fc("0x93")]((()=>t([x],n,r))),null}let c=null,l=x.start,u=x[fc("0xb5")];for(const{suggestion:t,meta:e}of this._findSuggestions(x,"formatBlock")){if(!e[fc("0x21")])continue;if(e[fc("0x108")]||e[fc("0x16b")]||e[fc("0x110")])continue;if(t[fc("0x181")][fc("0xd0")]!=n[fc("0xd0")])continue;if(!Ic(t,r))continue;const o=t.getFirstRange();if(t.subType==i){if(o[fc("0xcc")](x,!0))return null;l=l[fc("0x11a")](o[fc("0x9")])?l:o[fc("0x9")],u=u[fc("0x14d")](o[fc("0xb5")])?u:o[fc("0xb5")],c?o[fc("0x9")][fc("0x11a")](c[fc("0xf5")]().start)?(c[fc("0x171")](),c=t):t[fc("0x171")]():c=t}else{const e=x.getIntersection(o);this[fc("0x82")](t,e)}}const d=this[fc("0xce")][fc("0x28")].get(fc("0xbe")).me,g=(0,e.uid)(),f=d.id;if(c)return this[fc("0xd9")](c,this._model.createRange(l,u)),c;{const t=this[fc("0x126")]({id:g,type:"formatBlock:"+i,data:n,createdAt:new Date,authorId:f,attributes:r});return this[fc("0x36")](fc("0xf9")+i,g,f,this[fc("0x29")][fc("0xf4")](l,u)),t}}[fc("0x10e")](t,n,o=[],i=null,r={}){n[fc("0xd0")]||(n[fc("0xd0")]=n[fc("0x10a")]);const s=t[0];n.multipleBlocks=s.is(fc("0xe8")),i=i||Tc(n);const x=o[fc("0x15f")]((t=>Cc(t,this._model))),a=s.is(fc("0xe8"))?t:t[fc("0x15f")]((t=>Cc(t,this._model)));if(fc("0x11e")===this[fc("0x94")]){const t=this[fc("0x16e")][fc("0xc4")](fc("0x12d"),i,"accept");return this[fc("0x93")]((()=>t(a,n,r))),null}x[fc("0x14c")](...a);let c=!0;for(const t of x)if(!this[fc("0xd3")](t)){c=!1;break}if(c&&fc("0x54")!==this[fc("0x94")]){const t=this[fc("0x16e")][fc("0xc4")](fc("0x12d"),i,fc("0x168"));return this[fc("0x93")]((()=>t(a,n,r))),null}const l=this[fc("0xce")][fc("0x28")][fc("0x16")](fc("0xbe")).me;for(const t of this[fc("0x102")]()){if(t[fc("0x16c")].id!=l.id)continue;if("formatBlock"!=t[fc("0x89")]||t[fc("0x181")][fc("0xd0")]!=n[fc("0xd0")])continue;if(!Ic(t,r))continue;const e=t.subType==i;for(let n=0;n<a.length;n++){const o=a[n];for(const i of t.getMarkers()){const r=i[fc("0x4c")]();if(o[fc("0x12e")](r)){e?(a.splice(n,1),n--):t.removeMarker(i[fc("0x17b")]);break}}}}if(0==a.length)return null;const u=this[fc("0x16e")][fc("0xc4")](fc("0x12d"),i,fc("0xdc"));for(const t of this[fc("0x102")]())if(t[fc("0x16c")].id==l.id&&fc("0x12d")==t[fc("0x89")]&&t.data.formatGroupId==n[fc("0xd0")]&&t[fc("0xc8")]==i&&Ic(t,r)&&(u(t[fc("0xca")](),a)||u(a,t[fc("0xca")]()))){for(const e of a)t.addRange(e);return t}const d=(0,e.uid)(),g=l.id,f=fc("0xf9")+i,m=this._setSuggestionData({id:d,type:f,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[fc("0x36")](f,d,g,t,Yo[fc("0x31")]());return m}[fc("0x4a")](t,n=null,o={}){if(t.isCollapsed)return null;const i=this.editor[fc("0x28")][fc("0x16")]("Users").me,r=new s.LiveRange(t[fc("0x9")],t[fc("0xb5")]);for(const{suggestion:t,meta:e}of this[fc("0xef")](r,fc("0xad")))if(e.isOwn&&!e[fc("0x108")])if(t[fc("0x12")]){const e=t.getRanges()[fc("0x13e")]((t=>fc("0x2b")!=t[fc("0x162")][fc("0xf7")]));if(e[fc("0xa3")]((t=>r[fc("0xcc")](t,!0)))&&t[fc("0x4e")](),e[fc("0x153")]((t=>t[fc("0xcc")](r,!0)))){const t=this._suggestionFactory[fc("0xc4")](fc("0x9c"),n,fc("0x168"));return this.forceDefaultExecution((()=>t([r],null,o))),null}}else{const e=r[fc("0x84")](t[fc("0xf5")]());null!==e&&t[fc("0x139")]([e],null,o)}if(r[fc("0x113")](),r[fc("0x41")]||fc("0x2b")==r[fc("0x162")][fc("0xf7")])return null;let x=null,a=r[fc("0x9")],c=r[fc("0xb5")];const l=this[fc("0xef")](r,"deletion");for(const{suggestion:t,meta:e}of l){const n=this[fc("0x29")][fc("0xf4")](a,c);if(e[fc("0x21")]&&(this[fc("0xdd")]||!e.containsRangeInObject&&!e.isInsideObject))if(t[fc("0x12")]){if(!Ic(t,o))continue;let e=!0;for(const o of t[fc("0xca")]()){if(o[fc("0xcc")](n,!0))return t;n[fc("0xcc")](o)||(e=!1)}e&&t[fc("0x4e")]()}else{const e=t[fc("0xf5")]();if(e[fc("0xcc")](n,!0))return t;if(!Ic(t,o)){n[fc("0xcc")](e)?t.removeMarkers():e[fc("0x22")](a)?a=e[fc("0xb5")]:e.containsPosition(c)&&(c=e[fc("0x9")]);continue}a=a[fc("0x11a")](e.start)?a:e[fc("0x9")],c=c[fc("0x14d")](e[fc("0xb5")])?c:e[fc("0xb5")],o=Object.assign({},t[fc("0x167")]),x?e[fc("0x9")][fc("0x11a")](x[fc("0xf5")]()[fc("0x9")])?(x[fc("0x171")](),x=t):t[fc("0x171")]():x=t}}if(x)return this._setSuggestionRange(x,this._model[fc("0xf4")](a,c)),x;{const t=(0,e.uid)(),r=this._model[fc("0xf4")](a,c),s=i.id,x=n?fc("0x112")+n:"deletion",l=this[fc("0x126")]({id:t,type:x,createdAt:new Date,authorId:s,attributes:o});return this._addSuggestionMarker(x,t,s,r),l}}[fc("0x99")](t,n=fc("0x8a"),o={}){const i=this.editor.plugins[fc("0x16")](fc("0xbe")).me,r=t[fc("0x15f")]((t=>new s.LiveRange(t[fc("0x9")],t[fc("0xb5")]))),x=new Set;for(const{suggestion:t,meta:e}of this._findSuggestions(r,fc("0xad")))e[fc("0x21")]&&!e[fc("0x108")]&&x.add(t);for(const e of x)if(e[fc("0x12")]){const i=e.getRanges();if((!e[fc("0x167")]||!e.attributes[fc("0x9a")])&&i[fc("0xa3")]((t=>r.some((e=>e[fc("0xcc")](t,!0)))))&&e[fc("0x4e")](),r.every((t=>i[fc("0x153")]((e=>e[fc("0xcc")](t,!0)))))){const e=this[fc("0x16e")][fc("0xc4")](fc("0x9c"),n,fc("0x168"));return this[fc("0x93")]((()=>e(t,null,o))),null}}else{const t=e[fc("0xf5")]();if(r[fc("0x153")]((e=>e.containsRange(t,!0)))&&e.discard(),r[fc("0xa3")]((e=>t.containsRange(e,!0)))){const t=this[fc("0x16e")][fc("0xc4")](fc("0x9c"),n,fc("0x168"));return this.forceDefaultExecution((()=>t(r,null,o))),null}}const a=this[fc("0x16e")][fc("0xc4")](fc("0x9c"),n,"join");let c=null;for(const t of this[fc("0x102")]())if(t[fc("0x16c")].id==i.id&&t[fc("0xb2")]&&fc("0x9c")==t.type&&t[fc("0xc8")]==n&&Ic(t,o)&&(a(t.getRanges(),r)||a(r,t[fc("0xca")]())))if(c){if(t[fc("0x173")]&&t.commentThread[fc("0x65")])continue;for(const e of t[fc("0xca")]())c[fc("0x44")](e)||c.addRange(e);t.removeMarkers()}else{c=t;for(const e of r)t.isIntersectingWithRange(e)||t[fc("0x176")](e)}if(c)return c;x[fc("0xe6")]();for(const{suggestion:t,meta:e}of this._findSuggestions(r,fc("0x9c")))e.isOwn&&(this[fc("0xdd")]||!e[fc("0x16b")]&&!e[fc("0x110")])&&Ic(t,o)&&x[fc("0x61")](t);for(const t of x){const e=t[fc("0xca")]();if((!o||!o[fc("0x9a")])&&r[fc("0xa3")]((t=>e[fc("0x153")]((e=>e.containsRange(t,!0))))))return t;(!t[fc("0x167")]||!t[fc("0x167")][fc("0x9a")])&&e[fc("0xa3")]((t=>r[fc("0x153")]((e=>e[fc("0xcc")](t,!0)))))&&t[fc("0x4e")]()}const l=(0,e.uid)(),u=i.id,d=fc("0x112")+n,g=this[fc("0x126")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of r)t[fc("0x113")](),t[fc("0x41")]||"$graveyard"==t[fc("0x162")].rootName||this._addSuggestionMarker(d,l,u,t,Yo[fc("0x31")]());return g}[fc("0xf0")](t,n,o,i,r){if(t[fc("0x41")])return[];if("never"===this._trackFormatChanges)return[];const s=this[fc("0xce")][fc("0x28")][fc("0x16")](fc("0xbe")).me.id,x=Array[fc("0xe4")](this[fc("0x17f")].values())[fc("0x13e")]((e=>fc("0x55")==e[fc("0x89")]&&e[fc("0x181")][fc("0x23")]==n&&e[fc("0x44")](t)));if(fc("0x2")===this[fc("0x94")]){const e=this[fc("0xef")](t,"insertion")[fc("0x13e")]((({meta:t})=>t[fc("0x21")]&&!t[fc("0x110")]&&!t[fc("0x108")])).map((({suggestion:t})=>t));x[fc("0x143")](...e)}const a=new Map([[t,o]]);for(const t of x){const e=fc("0x55")==t[fc("0x89")]?t[fc("0x181")][fc("0x9e")]:void 0,n=t[fc("0xf5")](),r=Array[fc("0xe4")](a[fc("0x5d")]())[fc("0xd5")]((t=>t.isIntersecting(n)));r&&(a[fc("0x5")](r),r[fc("0xa9")](n)[fc("0x17a")]((t=>{a[fc("0x66")](t,o)})),"insertion"!=t.type&&e!=i&&a[fc("0x66")](r[fc("0x84")](n),e))}const c=[];for(const[t,o]of a){const x=(0,e.uid)(),a={key:n,oldValue:o,newValue:i};n[fc("0x65")]>37&&console[fc("0x10d")](fc("0xea"),{key:n});const l=("attribute:"+n+"|"+Tc({newValue:i}))[fc("0x69")](0,60),u=this[fc("0x126")]({id:x,type:l,data:a,createdAt:new Date,authorId:s,attributes:r});c.push(u),this[fc("0x36")](l,x,s,t)}return c}[fc("0x18")](t){this._blockAttributeKeys[fc("0x61")](t)}[fc("0x172")](t){this[fc("0x115")][fc("0x61")](t)}[fc("0xe0")](t,e=[],n=[]){this.enableCommand(t,((t,...e)=>{this._recordAttributeChanges((()=>{t(...e)}))}));for(const t of e)this[fc("0x172")](t);for(const t of n)this._registerBlockAttribute(t)}[fc("0xd9")](t,e){const n=t.getFirstMarker();this[fc("0x29")].change((t=>{t[fc("0x1b")](n,{range:e})}))}[fc("0x0")](t){const e=t.id,n=this[fc("0xce")].config.get(fc("0x152"));this[fc("0x16a")][fc("0x13f")](e)||this[fc("0x16a")][fc("0x161")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[fc("0x16a")][fc("0x3e")](e);o[fc("0x5f")](fc("0x73")),o[fc("0x73")]=!1,t[fc("0x173")]=o}_checkSuggestionCorrectness(t,n,o,i){if(t[fc("0x89")]!=n||t[fc("0xc8")]!=o||t[fc("0x33")].id!=i)throw this[fc("0xce")][fc("0x57")](fc("0x156")),new e.CKEditorError(fc("0x156"),this)}[fc("0x82")](t,n){const o=t[fc("0xf5")]();if(n[fc("0x12e")](o))t[fc("0x171")]();else if(o.containsRange(n)){const i=this[fc("0x29")].createPositionAt(n[fc("0x9")].nodeBefore,fc("0xb5"));this[fc("0xd9")](t,this[fc("0x29")].createRange(o.start,i));const r=(0,e.uid)(),s=t[fc("0x33")].id,x=t[fc("0x89")]+":"+t[fc("0xc8")];this._setSuggestionData({id:r,type:x,createdAt:new Date,authorId:s,data:t[fc("0x181")],attributes:t[fc("0x167")]});const a=this._model.createPositionAt(n[fc("0xb5")][fc("0x9d")],fc("0xc")),c=this[fc("0x29")][fc("0xf4")](a,o[fc("0xb5")]);this[fc("0x36")](x,r,s,c)}else if(o[fc("0x22")](n[fc("0x9")])){const e=this[fc("0x29")][fc("0x10")](n[fc("0x9")][fc("0x11c")],fc("0xb5"));this[fc("0xd9")](t,this[fc("0x29")][fc("0xf4")](o[fc("0x9")],e))}else{const e=this._model[fc("0x10")](n[fc("0xb5")][fc("0x9d")],"after");this[fc("0xd9")](t,this._model.createRange(e,o[fc("0xb5")]))}}[fc("0xd3")](t){for(const{suggestion:e,meta:n}of this[fc("0xef")](t,fc("0xad"))){if(!n[fc("0x21")])continue;const o=e[fc("0xca")]();for(const e of o)if(!t[fc("0xa9")](e)[fc("0x65")])return!0}return!1}_getAuthorFromId(t){const n=this[fc("0xce")][fc("0x28")][fc("0x16")](fc("0xbe"))[fc("0xf3")](t);if(!n)throw new e.CKEditorError("track-changes-user-not-found",this);return n}[fc("0x3a")](t){const e=this[fc("0xce")][fc("0x28")][fc("0x16")](fc("0xbe")),n=(0,r.hashObject)(fc("0x12c")+t);return e.getUser(n)||e[fc("0x56")]({id:n,name:t})}_createSuggestion(t,e,n,o,i){const r=this[fc("0x150")](o),s=this._suggestionFactory[fc("0x15")](t,e,n,r,i,(t=>this[fc("0xed")](n,{attributes:t})));return this[fc("0x24")](s,fc("0x168"),(()=>{this[fc("0xed")](n,{state:"accepted"})}),{priority:fc("0x124")}),this[fc("0x24")](s,fc("0x4e"),(()=>{this[fc("0xed")](n,{state:fc("0xb")})}),{priority:fc("0x124")}),this[fc("0x17f")][fc("0x66")](n,s),this[fc("0x132")][fc("0x66")](s,fc("0xe")),s}[fc("0x180")](t){const e=t[fc("0x88")](":");return{group:e[0],type:e[1],subType:e.length>=5?e[2]:null,id:e.length<5?e[2]:e[3],authorId:e[fc("0x65")]<5?e[3]:e[4],markerCount:6==e[fc("0x65")]?e[5]:null}}[fc("0x164")](t,n,o){const i=t[fc("0xf5")](),r=i[fc("0x9")],s=i.end;this[fc("0xd9")](t,this[fc("0x29")][fc("0xf4")](r,n));const x=(0,e.uid)(),a=t[fc("0x33")].id,c=t.type+(t[fc("0xc8")]?":"+t[fc("0xc8")]:"");this._setSuggestionData({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[fc("0x167")],data:t[fc("0x181")]});const l=this[fc("0xd")](t);(fc("0x12d")==t.type||l&&this[fc("0xcb")](l))&&(o=this[fc("0x29")][fc("0x95")](o[fc("0x9d")])),this[fc("0x36")](c,x,a,this._model[fc("0xf4")](o,s))}[fc("0xef")](t,e=null){const n=[],o=this[fc("0xce")][fc("0x28")].get(fc("0xbe")).me;Array.isArray(t)||(t=[t]);for(const i of this.getSuggestions()){if(!i.isInContent)continue;if(e&&i[fc("0x89")]!=e)continue;let r=!1;for(const e of i[fc("0xca")]()){for(const s of t){const t=s.start[fc("0x12e")](e[fc("0xb5")])||s[fc("0xb5")][fc("0x12e")](e[fc("0x9")]);if(t||s[fc("0x84")](e)){const x=s[fc("0xcc")](e)&&bc(this[fc("0x29")][fc("0x7d")],e[fc("0x9")],s),a=e[fc("0xcc")](s)&&bc(this[fc("0x29")][fc("0x7d")],s[fc("0x9")],e);n[fc("0x14c")]({suggestion:i,meta:{isOwn:o==i.author,isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),r=!0;break}}if(r)break}}return n}[fc("0x36")](t,e,n,o,i){this[fc("0x29")][fc("0xd6")]((r=>{let s="suggestion:"+t+":"+e+":"+n;i&&(s=s+":"+i),r[fc("0x86")](s,{range:o,usingOperation:!0,affectsData:!0})}))}[fc("0x151")](t){const e=t[fc("0xf6")],n=t[fc("0xd7")];t[fc("0xf6")]=null,t[fc("0xd7")]=null,null!=e&&(e.next=n),null!=n&&(n.previous=e),fc("0x13b")==this[fc("0x132")].get(t)&&(this[fc("0x132")][fc("0x66")](t,fc("0x163")),this[fc("0x42")](fc("0x11b"),t,e,n))}[fc("0x126")](t){const n=t.id,o=this[fc("0x10b")](t);if(this[fc("0x53")]&&this._adapter[fc("0x8c")]){const i=this[fc("0xce")][fc("0x28")][fc("0x16")](fc("0x38")),r=o[fc("0x4b")],s=o[fc("0xc8")]?o[fc("0x89")]+":"+o[fc("0xc8")]:o[fc("0x89")],x=this[fc("0xce")][fc("0x92")],a=i[fc("0x61")](Jo(x,fc("0x14b"))),c={id:n,type:s,hasComments:r,data:t.data||null,originalSuggestionId:t[fc("0xfc")]||null,attributes:o[fc("0x167")]};this[fc("0x53")][fc("0x8c")](c)[fc("0x175")]((t=>{o[fc("0xff")]=!0,i[fc("0x14e")](a),t&&t[fc("0xb7")]&&(this[fc("0x17f")].get(n).createdAt=t[fc("0xb7")])}))[fc("0xd8")]((t=>{throw(0,e.logWarning)("error-saving-suggestion-data-suggestion-discarded"),this.editor[fc("0xf8")][fc("0x166")]({isUndoable:!1},(()=>{o[fc("0x4e")]()})),o.stopListening(),this[fc("0x17f")][fc("0x5")](o.id),this._suggestionState[fc("0x5")](o),t}))}return o}[fc("0xcb")](t){return this[fc("0x1a")].has(t)}_getAttributeKeyFromSubType(t){return fc("0x55")==t[fc("0x89")]&&t[fc("0xc8")].split("|")[0]}_updateSuggestionData(t,e){const n=this[fc("0xce")].plugins[fc("0x16")](fc("0x38")),o=this[fc("0x10c")](t);if(this[fc("0x53")]&&this._adapter[fc("0x70")])if(o[fc("0xff")]){const o=n[fc("0x61")](Jo(this.editor[fc("0x92")],fc("0x14b")));this[fc("0x53")][fc("0x70")](t,e)[fc("0x175")]((()=>{n[fc("0x14e")](o)}))}else o.on(fc("0x13a"),(()=>{this[fc("0xed")](t,e)}))}_getSuggestionData(t){if(!this._adapter||!this[fc("0x53")][fc("0x10c")])throw new e.CKEditorError(fc("0x10f"),this);return this[fc("0x53")].getSuggestion(t)}_handleNewSuggestionMarker(t){const{id:e,type:n,subType:o,authorId:i}=this[fc("0x180")](t),r=this[fc("0x17f")][fc("0x16")](e)||this[fc("0x158")](n,o,e,i,{});switch(this[fc("0x1d")](r,n,o,i),this[fc("0x132")][fc("0x16")](r)){case"notReady":this[fc("0xb3")](e)[fc("0x175")]((t=>{let n=Promise[fc("0x13c")]();t[fc("0x4b")]&&(n=this[fc("0x16a")][fc("0x145")]({channelId:this[fc("0xce")].config.get(fc("0x152")),threadId:e})),n[fc("0x175")]((()=>{this[fc("0x10b")](t)[fc("0xff")]=!0}))})),this[fc("0x132")][fc("0x66")](r,"markerReady");break;case"removed":this._updateSuggestionData(e,{state:fc("0x5c")});case fc("0x177"):this._suggestionState[fc("0x66")](r,"ready"),this.fire(fc("0x141"),r);break;case fc("0x13b"):this[fc("0x42")](fc("0x12f"),r)}return r[fc("0x27")](t),r}_refreshSuggestionsChain(t){const e=Array[fc("0xe4")](t),n=e.filter((t=>fc("0x55")==t[fc("0x89")]));this._refreshAttributeSuggestionsChain(n);const o=e[fc("0x13e")]((t=>!t[fc("0x12")]&&fc("0x55")!=t.type)),i=this.getSuggestions({skipNotAttached:!0})[fc("0x13e")]((t=>!t[fc("0x12")]&&fc("0x55")!=t.type)),r=i[fc("0x13e")]((e=>!t.has(e))),s=new Map(i[fc("0x15f")]((t=>[t,this[fc("0x16e")][fc("0xc4")](t[fc("0x89")],t[fc("0xc8")],fc("0x40"))]))),x=new Map(i[fc("0x15f")]((t=>[t,t[fc("0xf5")]()]))),a=new Set,c=new Set;for(let t=0;t<o.length;t++)u(o[t],o,t+1);for(let t=0;t<o[fc("0x65")];t++)u(o[t],r,0);const l=new Set;for(let t=0;t<o.length;t++){const e=o[t];!c[fc("0x32")](e)&&e[fc("0xf6")]&&(l[fc("0x61")](e.previous),e[fc("0xf6")][fc("0xd7")]===e&&(e[fc("0xf6")][fc("0xd7")]=null),e[fc("0xf6")]=null),!a.has(e)&&e[fc("0xd7")]&&(l.add(e[fc("0xd7")]),e[fc("0xd7")].previous===e&&(e.next[fc("0xf6")]=null),e[fc("0xd7")]=null)}function u(t,e,n){for(let o=n;o<e.length;o++){const n=d(t,e[o]);n&&(n[0][fc("0xd7")]=n[1],n[1].previous=n[0],a.add(n[0]),c[fc("0x61")](n[1]))}}function d(t,e){if(t[fc("0x16c")].id!==e[fc("0x16c")].id)return null;const n=s[fc("0x16")](t)(t,e,x.get(t),x[fc("0x16")](e));return n&&s[fc("0x16")](e)(t,e,x[fc("0x16")](t),x[fc("0x16")](e))?n[1][fc("0x173")]&&n[1][fc("0x173")][fc("0x65")]?null:n:null}l[fc("0x15b")]&&this[fc("0x6f")](l)}[fc("0x4")](t){if(0==t[fc("0x65")])return;const e=this[fc("0x102")]({skipNotAttached:!0})[fc("0x13e")]((t=>fc("0x55")==t[fc("0x89")]&&t._isDataLoaded)),n=[],o=new Map;for(const t of e){const e=(0,r.hashObject)(t[fc("0x167")]);o[fc("0x32")](e)||(o[fc("0x66")](e,n.length),n.push([]));const i=o[fc("0x16")](e);n[i].push(t)}!function(){n[fc("0xa5")](((t,e)=>{const n=t[0].createdAt,o=e[0].createdAt;return n==o?t[0][fc("0x167")].groupId<e[0][fc("0x167")].groupId?-1:1:n<o?-1:1}));for(const t of n)t.sort(((t,e)=>t.id<e.id?-1:1))}();for(let t=0;t<n.length;t++){if(0==n[t][fc("0x65")])continue;const e=[];for(let o=t+1;o<n.length;o++)0!=n[o][fc("0x65")]&&i(n[t],n[o])&&e[fc("0x14c")](o);for(const o of e)n[t]=n[t][fc("0x5b")](n[o]),n[o]=[]}for(const t of n)for(let e=0;e<t.length;e++)t[e][fc("0xd7")]=t[e+1]||null;for(const t of n)for(let e=0;e<t[fc("0x65")];e++)t[e].previous=t[e-1]||null;function i(t,e){if(t[0].author!==e[0][fc("0x16c")])return!1;if(n=t[0],o=e[0],(n[fc("0x4b")]||o[fc("0x4b")])&&(n[fc("0x4b")]&&o.hasComments||!(n.hasComments&&o.createdAt<n.commentThread[fc("0x144")].get(0).createdAt||o.hasComments&&n[fc("0xb7")]<o[fc("0x173")][fc("0x144")][fc("0x16")](0)[fc("0xb7")])))return!1;var n,o;const i=lc(t[0][fc("0x167")],fc("0xbd")),r=lc(e[0][fc("0x167")],fc("0xbd"));return!!Go(i,r)&&(!!t[fc("0xa3")]((t=>e[fc("0x153")]((e=>t[fc("0xf5")]().isEqual(e.getFirstRange())))))&&e[fc("0xa3")]((e=>t[fc("0x153")]((t=>e.getFirstRange().isEqual(t.getFirstRange()))))))}}[fc("0xbf")](t){const e=Array[fc("0xe4")](t),n=this.getSuggestions({skipNotAttached:!0}),o=n.filter((e=>!t[fc("0x32")](e))),i=new Map(e.map((t=>[t,this._suggestionFactory[fc("0xc4")](t[fc("0x89")],t[fc("0xc8")],"join")]))),r=new Map(n.map((t=>[t,t[fc("0xca")]()])));for(let t=0;t<e[fc("0x65")];t++)if(s(this,e[t],e,t+1))return!0;for(let t=0;t<e[fc("0x65")];t++)if(s(this,e[t],o,0))return!0;return!1;function s(t,e,n,o){for(let s=o;s<n[fc("0x65")];s++){const o=n[s];if(o[fc("0x89")]!==e.type||o.author.id!==e[fc("0x16c")].id||o.subType!==e[fc("0xc8")])continue;if(!kc(e,o))continue;if(fc("0x55")==e[fc("0x89")]&&e[fc("0x181")][fc("0x9e")]!=o[fc("0x181")][fc("0x9e")])continue;if(fc("0x55")==e.type&&t[fc("0xcb")](e[fc("0x181")][fc("0x23")]))continue;const x=i[fc("0x16")](e),a=r.get(e),c=r[fc("0x16")](o),l=e.commentThread&&e[fc("0x173")].length,u=o[fc("0x173")]&&o[fc("0x173")][fc("0x65")];if(!l&&x(c,a))return t[fc("0x87")](o,e),r.delete(e),!0;if(!u&&x(a,c))return t[fc("0x87")](e,o),r.delete(o),!0}return!1}}[fc("0x87")](t,e){if(t[fc("0x12")])for(const n of e[fc("0xca")]())t[fc("0x176")](n);else{const n=e.getFirstRange().end;this._setSuggestionRange(t,this[fc("0x29")][fc("0xf4")](t.getFirstRange()[fc("0x9")],n))}e.removeMarkers()}[fc("0x11f")](t,e){const n=t[fc("0x15a")](fc("0x60"))||t.startsWith(fc("0x55"))?fc("0x13"):t[fc("0x146")]();return Jo(this.editor[fc("0x92")],e+"_"+n+"_SUGGESTION_ANNOUNCEMENT")}[fc("0xb6")](){const t=this[fc("0xce")];(0,r.surroundingMarkersDetector)(this[fc("0x29")],(({left:e,entered:n})=>{const o=[];for(const t of e){const{group:e,type:n}=this[fc("0x180")](t.name);if("suggestion"===e){o.push(this[fc("0x11f")](n,"LEAVE"));break}}for(const t of n){const{group:e,type:n}=this._splitMarkerName(t[fc("0x17b")]);if("suggestion"===e){o[fc("0x14c")](this._getMarkerAnnouncementText(n,fc("0x133")));break}}o[fc("0x65")]&&t.ui[fc("0xbb")][fc("0x142")](fc("0x136"),o[fc("0xdc")](" "))}))}[fc("0xe9")](t){if(null!==this[fc("0x109")])return!1;const e=this[fc("0xce")],n=e[fc("0xf8")][fc("0x7a")].differ[fc("0x63")]();if(0==n[fc("0x65")])return!1;const o=[],i=n[fc("0x13e")]((t=>fc("0x55")==t[fc("0x89")])),r=n[fc("0x13e")]((t=>fc("0x8d")==t[fc("0x89")]&&"$text"!=t[fc("0x17b")])),s=n[fc("0x13e")]((t=>"remove"==t[fc("0x89")]&&fc("0xa2")!=t[fc("0x17b")]));for(const t of i)o[fc("0x14c")]({key:t[fc("0x5e")],newValue:t[fc("0x85")],oldValue:t[fc("0xac")],range:(x=t[fc("0xe8")],null==x[fc("0xb5")][fc("0x11c")]&&x.end[fc("0x9d")]==x[fc("0x9")][fc("0x39")]?Cc(x.start[fc("0x39")],e[fc("0xf8")]):x)});var x;for(const t of r){const n=s[fc("0xd5")]((e=>e.position.isEqual(t[fc("0x35")])));n&&o[fc("0x14c")]({key:fc("0xb8"),newValue:t[fc("0x17b")],oldValue:n[fc("0x17b")],range:e.model[fc("0x20")](t.position[fc("0x39")])})}return 0!=o.length&&this[fc("0x64")](t,o)}[fc("0x59")](t){let e=!1;const n=this[fc("0xce")][fc("0xf8")][fc("0x7a")][fc("0x122")][fc("0x6e")]().filter((t=>t[fc("0x181")][fc("0xe7")]&&t[fc("0x17b")].startsWith(fc("0x117"))));for(const o of n){const{subType:n,id:i}=this[fc("0x180")](o[fc("0x17b")]),r=n[fc("0x88")]("|")[0];for(const n of this[fc("0x102")]({skipNotAttached:!0}))n.id!=i&&fc("0x55")==n[fc("0x89")]&&n[fc("0x181")]&&n.data[fc("0x23")]==r&&n[fc("0xf5")]()[fc("0x131")](o.data[fc("0xe7")])&&(this[fc("0x30")](n,o[fc("0x181")][fc("0xe7")],t),e=!0)}return e}[fc("0xf2")](t){if(null!==this[fc("0x109")])return void t();const n=this[fc("0xce")];this[fc("0x109")]=n[fc("0xf8")][fc("0x7a")][fc("0x3c")],t();const o=new Map;for(const t of n[fc("0xf8")][fc("0x7a")][fc("0x6")][fc("0x13d")](this[fc("0x109")]))if([fc("0x17e"),fc("0x121"),fc("0xfe"),fc("0xda")][fc("0x37")](t[fc("0x89")])){const e=t[fc("0xec")],n=o[fc("0x16")](e)||[];n[fc("0x14c")](t),o[fc("0x66")](e,n)}this[fc("0x109")]=null;for(const[t,i]of o){const o=(0,e.uid)();n[fc("0xf8")].enqueueChange(t,(t=>{const e=[];for(const t of i){let i,r,s,x;if(fc("0x17e")==t[fc("0x89")]){const e=t;i=Cc(e[fc("0x35")][fc("0x39")],n[fc("0xf8")]),r=fc("0xb8"),s=e[fc("0xe3")],x=e.oldName}else{const e=t,o=this[fc("0xcb")](e.key),a=this[fc("0x115")][fc("0x32")](e[fc("0x23")]);if(!o&&!a)continue;i=o?Cc(e[fc("0xe8")].start[fc("0x39")],n[fc("0xf8")]):e.range,r=e[fc("0x23")],s=fc("0xfe")==t[fc("0x89")]?void 0:e[fc("0x98")],x=e.oldValue}this[fc("0xf0")](i,r,x,s,{groupId:o}),e[fc("0x14c")]({range:i,key:r,newValue:s,oldValue:x})}this[fc("0x64")](t,e)}))}}[fc("0x64")](t,e){if(0==e[fc("0x65")])return!1;let n=!1;for(const o of e){const e=this[fc("0xef")](o[fc("0xe8")],fc("0x55"))[fc("0x13e")]((t=>!t[fc("0x58")][fc("0x108")]))[fc("0x15f")]((t=>t[fc("0x26")])),i=(0,r.hashObject)({newValue:o[fc("0x98")]});e.filter((t=>{const[e,n]=t[fc("0xc8")].split("|");return e==o[fc("0x23")]&&n!=i}))[fc("0x17a")]((e=>{this[fc("0x30")](e,o.range,t),n=!0}))}return n}_reduceSuggestionAttributeRange(t,e,n){const o=t[fc("0xf5")]().getDifference(e);0!==o.length?1!==o[fc("0x65")]?this[fc("0x164")](t,e[fc("0x9")],e[fc("0xb5")]):this[fc("0xd9")](t,o[0]):n[fc("0x105")](t[fc("0xc3")]())}}class pc{constructor(t){this[fc("0x71")]=t,this._model=t.model,this[fc("0xa6")]=new Map,this[fc("0x51")]=new Map,this._registerDefaultCallbacks()}[fc("0x15")](t,e,n,o,i,r){return new Yo(this[fc("0x29")],{type:t,subType:e,id:n,author:o,creator:o,attributes:i,onAttributesChange:r,onAccept:(...n)=>this.getSuggestionCallback(t,e,"accept")(...n),onDiscard:(...n)=>this[fc("0xc4")](t,e,fc("0x4e"))(...n)})}[fc("0x154")](t,e,n,o){const i=t+":"+e+":"+n;this[fc("0xa6")][fc("0x66")](i,o)}getSuggestionCallback(t,e,n){const o=t+":"+e+":"+n;return this._customCallbacks[fc("0x16")](o)||this._defaultCallbacks[fc("0x16")](t+":"+n)}[fc("0xa")](){const t=()=>!1,e=t=>{t[fc("0xa5")](((t,e)=>t[fc("0x9")][fc("0x11a")](e[fc("0x9")])?1:-1)),this._model[fc("0xd6")]((e=>{for(const n of t){let t;t=n[fc("0xb5")][fc("0xb4")]&&n.end[fc("0x9d")]==n[fc("0x9")][fc("0x39")]?e[fc("0x1f")](n[fc("0x9")][fc("0x39")],"on"):e.createSelection(n),this._model.deleteContent(t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{e&&this._model.change((n=>{const{commandName:o,commandParams:i=[]}=e,r=t[fc("0x15f")]((t=>(Ec(t)&&(t=this._model[fc("0xf4")](t[fc("0xb5")])),t)))[fc("0x13e")]((t=>"$graveyard"!==t[fc("0x162")][fc("0xf7")]));if(r.length<1)return;const x=Array[fc("0xe4")](this._model[fc("0x7a")][fc("0x129")][fc("0xca")]()).map((t=>s.LiveRange[fc("0x114")](t)));n[fc("0x7c")](r);for(const t of this[fc("0x71")][fc("0x134")].commands())t.refresh();i.push({forceDefaultExecution:!0}),this[fc("0x71")][fc("0x50")](o,...i);const a=x.filter((t=>fc("0x2b")!=t.root.rootName));a[fc("0x65")]>0&&n[fc("0x7c")](a);for(const t of x)t[fc("0x113")]()}))},o=(t,e)=>1==t[fc("0x65")]&&1==e[fc("0x65")]&&t[0][fc("0xb5")][fc("0x12e")](e[0][fc("0x9")]),i=(t,e,n,o)=>Ac(t,e,n,o,this[fc("0x29")])?[t,e]:Ac(e,t,o,n,this[fc("0x29")])?[e,t]:null;this[fc("0x51")][fc("0x66")]("insertion:accept",t),this._defaultCallbacks[fc("0x66")](fc("0x83"),e),this[fc("0x51")].set(fc("0x91"),o),this[fc("0x51")][fc("0x66")]("insertion:chain",i),this[fc("0x51")][fc("0x66")](fc("0x49"),e),this[fc("0x51")][fc("0x66")](fc("0x4f"),t),this[fc("0x51")][fc("0x66")](fc("0x125"),o),this[fc("0x51")][fc("0x66")](fc("0x120"),i),this[fc("0x51")][fc("0x66")](fc("0xc1"),n),this[fc("0x51")][fc("0x66")]("formatInline:discard",t),this[fc("0x51")][fc("0x66")](fc("0xc9"),o),this[fc("0x51")][fc("0x66")](fc("0x1e"),t),this[fc("0x51")][fc("0x66")](fc("0x118"),n),this[fc("0x51")][fc("0x66")](fc("0x2e"),t),this[fc("0x51")][fc("0x66")]("formatBlock:join",o),this[fc("0x51")][fc("0x66")](fc("0xdf"),t),this[fc("0x51")][fc("0x66")](fc("0xba"),t),this[fc("0x51")][fc("0x66")](fc("0x68"),((t,e)=>{if(!e)return;const n=this[fc("0x71")][fc("0x28")][fc("0x16")](hc);this[fc("0x29")][fc("0xd6")]((o=>{if(fc("0xb8")==e[fc("0x23")])for(const n of t){const t=n[fc("0x9")][fc("0x39")],i=e[fc("0x9e")];o[fc("0x17e")](t,i)}else if(n[fc("0xcb")](e.key))for(const n of t)void 0!==e[fc("0x9e")]?o[fc("0xee")](e[fc("0x23")],e[fc("0x9e")],n[fc("0x9")].nodeAfter):o[fc("0xfe")](e.key,n[fc("0x9")].nodeAfter);else for(const n of t)e[fc("0x9e")]?o[fc("0xee")](e[fc("0x23")],e[fc("0x9e")],n):o.removeAttribute(e[fc("0x23")],n)}))})),this[fc("0x51")].set(fc("0x9b"),o)}}function bc(t,e,n){for(const o of e.parent[fc("0xfa")]({includeSelf:!0,parentFirst:!0})){if(o[fc("0x162")]==o)return!1;if(!n[fc("0x116")](o))return!1;if(t.isObject(o)||t[fc("0x3b")](o))return!0}return!1}function Ec(t){return t[fc("0xb5")].parent==t[fc("0x9")][fc("0x39")]&&t[fc("0xb5")][fc("0x148")]}function _c(t,e,n,o){const i=t=>!t[fc("0xfd")].is(fc("0x43"))&&!o[fc("0x15c")](t[fc("0xfd")]),r=t[fc("0x9")].getLastMatchingPosition(i),s=t[fc("0xb5")][fc("0xd4")](i,{direction:fc("0x11d")});return!(t[fc("0x9")][fc("0x12e")](r)&&t[fc("0xb5")][fc("0x12e")](s)||(r[fc("0x11a")](s)?n.updateMarker(e,{range:n[fc("0xf4")](r,s)}):n[fc("0x105")](e),0))}function Tc(t){return(0,r.hashObject)(t)}function yc(t){const e=t[fc("0x9")][fc("0x39")];return e&&e.is(fc("0x1c"))}function Cc(t,e){const n=e.schema.isObject(t)||e[fc("0x7d")].isSelectable(t);return e[fc("0xf4")](e[fc("0x10")](t,fc("0x127")),n?e.createPositionAfter(t):e[fc("0x10")](t,fc("0xb5")))}function Ac(t,e,n,o,i){if(!kc(t,e))return!1;if(n.end.isEqual(o[fc("0x9")]))return!0;if(t.type!=e[fc("0x89")])return!1;if(!n[fc("0xb5")][fc("0xc0")](o.start))return!1;const r=i[fc("0xf4")](n[fc("0xb5")],o[fc("0x9")])[fc("0xf")]();for(const t of r)if([fc("0x25"),fc("0x159")][fc("0x37")](t[fc("0x89")])&&i[fc("0x7d")][fc("0x3b")](t[fc("0xfd")]))return!1;return!0}function kc(t,e){return!(!t._isDataLoaded||!e[fc("0xa8")])&&Go(t[fc("0x167")],e[fc("0x167")])}function Ic(t,e){const n=Sc(t.attributes),o=Sc(e);if(!t[fc("0xa8")])return!1;for(const t of Object.keys(o))if(!Go(n[t],o[t]))return!1;return!0}function Sc(t){const e=Object[fc("0x2d")]({},t);return delete e[fc("0x9a")],delete e.tablePasteChainId,e}const vc=["change:isDirty","_editor","execute","_removePendingAction","_setPendingAction","acceptSuggestion","bind","model","canEditAt","PendingActions","isEnabled","stopListening","canDiscard","listenTo","isDirty","view","commentThreadController","get","remove","destroy","discardSuggestion","add","plugins","commands","canAccept","_discardCommand","unbind","_acceptCommand","_pendingAction"];var Rc,Nc;Rc=vc,Nc=418,function(t){for(;--t;)Rc.push(Rc.shift())}(++Nc);const Lc=function(t,e){return vc[t-=0]};class Mc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[Lc("0x18")]=e,this.view=n,this.commentThreadController=o,this[Lc("0x12")]=t,this[Lc("0xf")]=t[Lc("0xb")].get(Lc("0x16")),this._discardCommand=t[Lc("0xb")][Lc("0x5")](Lc("0x8")),this.view[Lc("0x17")](Lc("0x1b")).to(this._acceptCommand,this[Lc("0xd")],((t,e)=>t||e)),this[Lc("0x3")][Lc("0x17")](Lc("0xc")).to(this[Lc("0xf")],"isEnabled",(t=>t&&this[Lc("0x12")][Lc("0x18")][Lc("0x19")](e.getRanges()))),this[Lc("0x3")][Lc("0x17")]("canDiscard").to(this._discardCommand,Lc("0x1b"),(t=>t&&this._editor.model[Lc("0x19")](e.getRanges()))),this[Lc("0x10")]=null,n[Lc("0x2")]&&this[Lc("0x15")](),this.listenTo(n,Lc("0x16"),(()=>this.acceptSuggestion())),this[Lc("0x1")](n,Lc("0x8"),(()=>this.discardSuggestion())),this.listenTo(n,Lc("0x11"),(()=>{n[Lc("0x2")]?this._setPendingAction():this[Lc("0x14")]()}))}acceptSuggestion(){this[Lc("0xf")][Lc("0x13")](this[Lc("0x18")].id)}[Lc("0x8")](){this[Lc("0xd")].execute(this[Lc("0x18")].id)}[Lc("0x7")](){this[Lc("0x3")][Lc("0xe")]("isEnabled"),this.view.unbind(Lc("0xc")),this[Lc("0x3")][Lc("0xe")](Lc("0x0")),this[Lc("0x1c")](),this[Lc("0x4")].destroy(),this[Lc("0x10")]&&this._removePendingAction()}[Lc("0x15")](){const t=Jo(this[Lc("0x12")].locale,"PENDING_ACTION_SUGGESTION");this._pendingAction=this[Lc("0x12")].plugins.get(Lc("0x1a"))[Lc("0x9")](t)}[Lc("0x14")](){null!==this._pendingAction&&this[Lc("0x12")][Lc("0xa")].get("PendingActions")[Lc("0x6")](this[Lc("0x10")]),this[Lc("0x10")]=null}}const wc=["commentThread","destroy","fire","hasDirtyComment","addComment","_config","isDirty","_localUser","commentInputView","removeComment","authoredAt","locale","isEnabled","commentThreadInputView","length","editor","delegate","_model","commentsListView","set","CommentView","editorConfig","cancel","isReadOnly","value","isActive","bind","descriptionParts","element","setData","focus","_createCommentThreadInputView","canAccept","disabledSubmit"];var Oc,Fc;Oc=wc,Fc=166,function(t){for(;--t;)Oc.push(Oc.shift())}(++Fc);const Dc=function(t,e){return wc[t-=0]};class Bc extends i.View{constructor(t,e,n,o){super(t),this.commentsListView=null,this[Dc("0x11")]=null,this[Dc("0x17")]("isActive",!1),this.set(Dc("0xe"),e[Dc("0xe")]),this[Dc("0x1e")]("authoredAt").to(e),this[Dc("0x17")](Dc("0x1f"),[]),this[Dc("0x17")](Dc("0xa"),!1),this[Dc("0x17")](Dc("0x10"),!1),this[Dc("0x17")](Dc("0x2"),!1),this.set("canDiscard",!1),this[Dc("0x15")]=e,this[Dc("0xb")]=n,this[Dc("0x9")]=o,o.disableComments?this[Dc("0x17")](Dc("0x12"),1):this._createCommentViews()}[Dc("0x0")](){this[Dc("0x20")][Dc("0x0")]()}[Dc("0x5")](){this[Dc("0x16")]&&this[Dc("0x16")][Dc("0x5")](),this[Dc("0x11")]&&this[Dc("0x11")][Dc("0x5")](),super[Dc("0x5")]()}_createCommentViews(){const{CommentsListView:t}=this[Dc("0x9")];this.commentsListView=new t(this.locale,this._model.commentThread,Object.assign({CommentView:this._config[Dc("0x18")]},this[Dc("0x9")])),this[Dc("0x16")][Dc("0x14")](Dc("0xd")).to(this),this.commentsListView[Dc("0x14")]("updateComment").to(this),this[Dc("0x16")].bind(Dc("0x1d")).to(this),this[Dc("0x17")]("length",this[Dc("0x16")][Dc("0x12")]+1),this[Dc("0x1e")](Dc("0x12")).to(this.commentsListView,"length",(t=>t+1)),this.commentThreadInputView=this[Dc("0x1")](),this.on(Dc("0xd"),(()=>this[Dc("0x0")]())),this.bind(Dc("0xa")).to(this[Dc("0x16")],Dc("0x7"),this[Dc("0x11")].commentInputView,Dc("0x1c"),((t,e)=>t||!!e))}[Dc("0x1")](){const{CommentThreadInputView:t}=this[Dc("0x9")],e=new t(this[Dc("0xf")],this._localUser,this[Dc("0x9")][Dc("0x19")]),n=e[Dc("0xc")];return e.bind("showInput").to(this,"isActive",this[Dc("0x15")][Dc("0x4")],Dc("0x1b"),n,Dc("0x1c"),((t,e,n)=>!!n||t&&!e)),n.on("submit",((t,e)=>{this[Dc("0x6")](Dc("0x8"),e),n[Dc("0x13")][Dc("0x21")]("")})),n.on(Dc("0x1a"),(()=>this[Dc("0x0")]())),n[Dc("0x1e")](Dc("0x3")).to(this[Dc("0x15")].commentThread,Dc("0x1b")),e}}const Pc=["editorDestroyed","innerHTML","div","querySelector","set","ck-annotation__info","_model","isExternal","render","_config","span","ck-suggestion-wrapper","descriptionParts","attributes","</p>","map","check","ck-annotation__actions","split","delegate","ck-suggestion__info","acceptSuggestion","element",'"></span>',"EXTERNAL_SUGGESTION","ck-annotation__main","getTemplate","</span>","canAccept","type","ck-annotation__content-wrapper","EXTERNAL_IMPORT_WORD_AVATAR","author","ck-annotation__info-time","disableComments","push","setTemplate","creator","commentsListView","ck-suggestion__actions","acceptButton","ck-suggestion--accept","title","commentThreadInputView","isEnabled","ck-suggestion-wrapper--active",'" title="',"children","discardSuggestion","bind","_descriptionElement","ck-annotation__user","fire","ck-suggestion--discard",'<span class="ck-suggestion-type">',"content","name","join","getUserViewNotificationText","cancel","editorReady","discardButton","source","EXTERNAL_AVATAR","ck-suggestion","@external","ck-suggestion__info-name",'<span class="ck-suggestion-color" style="background-color: ',"ck-comment__info-time","Accept suggestion","commentThread","userView","_createButton","authoredAt","locale","importWord","value","extendTemplate","ck-annotation__info-name","description","ck-suggestion__user","color",".ck-annotation__content-wrapper","createElement","isActive"];var Uc,jc;Uc=Pc,jc=240,function(t){for(;--t;)Uc.push(Uc.shift())}(++jc);const Gc=function(t,e){return Pc[t-=0]};class Vc extends Bc{constructor(e,n,o,i){super(e,n,o,i),this.set(Gc("0x2c"),""),this[Gc("0x40")]("type").to(this,Gc("0x1b"),(t=>t&&t[0]?t[0][Gc("0x2c")]:"")),this[Gc("0x40")](Gc("0x9")).to(this,Gc("0x1b"),this,Gc("0xe"),((t,e)=>{let n="";for(const e of t)n+="<p>"+Hc(e[Gc("0x46")],e[Gc("0xb")])+Gc("0x1d");return e?n:(0,r.trimHtml)(n,{limit:140})})),this._descriptionElement=null,this[Gc("0x37")]=this[Gc("0x2")](Jo(e,Gc("0x54")),t.icons[Gc("0x1f")],Gc("0x38"),Gc("0x24"),"sw"),this[Gc("0x37")][Gc("0x40")](Gc("0x3b")).to(this,Gc("0x2b")),this[Gc("0x4c")]=this._createButton(Jo(e,"Discard suggestion"),t.icons[Gc("0x4a")],Gc("0x44"),Gc("0x3f"),"sw"),this[Gc("0x4c")][Gc("0x40")](Gc("0x3b")).to(this,"canDiscard"),this[Gc("0x1")]=new r.UserView(e,this[Gc("0x15")].author,this.getUserViewNotificationText()),this.userView[Gc("0x7")]({attributes:{class:[Gc("0xa"),Gc("0x42")]}}),this[Gc("0x33")](this[Gc("0x29")]())}[Gc("0x29")](){const t=this.bindTemplate,e=[{tag:Gc("0x11"),attributes:{class:[Gc("0x23"),Gc("0x14")]},children:[{tag:Gc("0x19"),children:[{text:this[Gc("0x1")][Gc("0x47")]}],attributes:{class:[Gc("0x51"),Gc("0x8")]}},{tag:"time",attributes:{datetime:t.to(Gc("0x3")),class:[Gc("0x53"),Gc("0x30")]},children:[{text:t.to(Gc("0x3"),(t=>this[Gc("0x18")].formatDateTime(t)))}]}]},{tag:Gc("0x11"),attributes:{class:[Gc("0x36"),Gc("0x20")]},children:[this[Gc("0x37")],this[Gc("0x4c")]]},{tag:Gc("0x11"),attributes:{class:[Gc("0x2d")]}}];this[Gc("0x15")][Gc("0x16")]&&e[Gc("0x32")]({tag:"div",attributes:{class:["ck-comment__external"]},children:[{text:this.getExternalSuggestionNote()}]});const n={tag:"div",attributes:{class:[Gc("0x1a"),t.if(Gc("0xe"),Gc("0x3c")),t.to(Gc("0x2c"),(t=>"ck-suggestion-"+t)),this[Gc("0x18")][Gc("0x31")]&&"ck-suggestion--disabled-comments"],"data-suggestion-id":this[Gc("0x15")].id,"data-thread-id":this[Gc("0x15")][Gc("0x0")].id,"data-author-id":this._model[Gc("0x2f")].id,tabindex:-1},children:[{tag:"div",attributes:{class:[Gc("0x4f"),"ck-annotation"]},children:[this[Gc("0x1")],{tag:Gc("0x11"),attributes:{class:["ck-suggestion__main",Gc("0x28")]},children:e}]}]};return this[Gc("0x35")]&&this[Gc("0x3a")]&&(n[Gc("0x3e")].push(this[Gc("0x35")],this[Gc("0x3a")]),this[Gc("0x35")][Gc("0x22")](Gc("0x4b")).to(this),this.commentsListView[Gc("0x22")]("editorDestroyed").to(this),this.commentThreadInputView[Gc("0x22")]("editorReady").to(this),this[Gc("0x3a")][Gc("0x22")](Gc("0xf")).to(this)),n}[Gc("0x17")](){super.render(),this[Gc("0x41")]=this[Gc("0x25")][Gc("0x12")](Gc("0xc")),this[Gc("0x41")].innerHTML=this[Gc("0x9")],this.on("change:description",((t,e,n)=>{this[Gc("0x41")][Gc("0x10")]=n}))}[Gc("0x2")](t,e,n,o,r){const s=new i.ButtonView(this[Gc("0x4")]);return s[Gc("0x13")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),s[Gc("0x7")]({attributes:{class:n}}),s.on("execute",(()=>{this[Gc("0x43")](o,this[Gc("0x15")].id)})),s}getExternalSuggestionNote(){return Gc("0x5")===this[Gc("0x15")][Gc("0x1c")][Gc("0x50")][Gc("0x4d")]?Jo(this[Gc("0x4")],"EXTERNAL_IMPORT_WORD_SUGGESTION"):Jo(this[Gc("0x4")],Gc("0x27"))}[Gc("0x49")](){return this[Gc("0x15")][Gc("0x16")]?Gc("0x5")===this._model.attributes[Gc("0x50")][Gc("0x4d")]?Jo(this[Gc("0x4")],Gc("0x2e"),this[Gc("0x15")][Gc("0x34")][Gc("0x47")]):Jo(this[Gc("0x4")],Gc("0x4e"),this[Gc("0x15")].creator.name):null}}function Hc(t,e){let n="";return n+=t[Gc("0x21")]("*")[Gc("0x1e")](((t,e)=>e%2!=0?Gc("0x45")+zc(t)+Gc("0x2a"):zc(t)))[Gc("0x48")](""),e&&(n+=Gc("0x52")+e[Gc("0x6")]+Gc("0x3d")+e[Gc("0x39")]+Gc("0x26")),n}function zc(t){const e=document[Gc("0xd")](Gc("0x19"));return e.innerText=t,e[Gc("0x10")]}const Wc=["createAnnotation","push","execute","locale","separator","define","SuggestionThreadView","type","acceptSelectedSuggestions","componentFactory","TrackChangesEditing","Annotations","acceptAllSuggestions","acceptButton","EditorAnnotations","Discard all suggestions","getSuggestion","set","CommentsRepository","some","refreshSelectedViews","buttonView","_disableComments","addSourceCollector","isDirty","bind","editing","_initializeController","change:previous","head","discardSelectedSuggestions","_descriptionFactory","_viewToController","Accept all selected suggestions","commands","add","button","editor","plugins","reduce","values","isMultiRange","focus","_handleControllerBuffer","createAnnotationView","trackChanges.SuggestionThreadView","source","keys","TrackChangesUI","CommentsUI","previous","length","_bindAnnotationToEditors","suggestionUnloaded","trackChanges","suggestionLoaded","get","commandName","_updateController","map","getRanges","_suggestionToController","model","remove","config","isInContent","clear","destroy","_createUIButton","size","lowest","view","value","_unbindEditors","getAllAdjacentSuggestions","Accept all suggestions","has","switchbutton","hasSuggestion","change:activeAnnotations","suggestion-","createCommentThreadController","arrowView","discardAllSuggestions","delete","activeAnnotations","_refreshActiveMarkers","filter","comments.maxCommentCharsWhenCollapsed","requires","getMarkers","isEnabled","comments.maxThreadTotalWeight","suggestionChanged","_annotationViews","comments.editorConfig","unbind","trackChanges.disableComments","mainView","commentThread","_destroyController","_handleSuggestionControllerDelayed","listenTo","init","from","actionView","innerView","toMany","descriptionParts","discardButton","getDescriptions","getMarkerNames"];var Kc,qc;Kc=Wc,qc=191,function(t){for(;--t;)Kc.push(Kc.shift())}(++qc);const Xc=function(t,e){return Wc[t-=0]};class $c extends t.Plugin{static get[Xc("0xa")](){return[hc,r.Users,Xc("0x33"),Xc("0x2c"),"EditorAnnotations"]}static get pluginName(){return Xc("0x51")}constructor(t){super(t),this._suggestionToController=new Map,this._viewToController=new Map,this[Xc("0xf")]=new Map,this[Xc("0x4c")]=new Map;const e=this[Xc("0x46")][Xc("0x61")];e[Xc("0x26")](Xc("0x4e"),Vc),e[Xc("0x26")](Xc("0x12"),!1),this[Xc("0x37")]=e[Xc("0x59")](Xc("0x12"))}[Xc("0x16")](t,e){0===this[Xc("0x4c")][Xc("0x66")]&&setTimeout((()=>{for(const[t,e]of this[Xc("0x4c")]){const n=this[Xc("0x5e")].has(t);n||e?n&&e&&this[Xc("0x15")](t):this[Xc("0x3c")](t)}this[Xc("0x46")][Xc("0x47")].get("EditorAnnotations")[Xc("0x35")](),this[Xc("0x7")](),this._handleControllerBuffer[Xc("0x63")]()}),10),this[Xc("0x4c")][Xc("0x32")](t,e)}[Xc("0x18")](){const t=this[Xc("0x46")],e=t[Xc("0x47")][Xc("0x59")](Xc("0x2b")),n=t[Xc("0x47")][Xc("0x59")](Xc("0x2c")),o=t[Xc("0x47")].get(Xc("0x2f")),i=t[Xc("0x47")].get("CommentsRepository");t.ui[Xc("0x2a")][Xc("0x44")]("trackChanges",(t=>this[Xc("0x65")](t))),o[Xc("0x38")]((()=>{const t=[];for(const[e,n]of Array[Xc("0x19")](this[Xc("0x5e")])){const o=e[Xc("0x6b")](),i=[];for(const t of o){if(!t[Xc("0x62")])continue;if(t[Xc("0x4a")]){i[Xc("0x22")](...t[Xc("0x5d")]());continue}const e=t.getFirstRange();if(i[Xc("0x54")]>0){const t=i[0].getJoined(e);if(t){i[0]=t;continue}}i[Xc("0x22")](e)}t.push([n[Xc("0x68")],i])}return t})),this[Xc("0x17")](e,Xc("0x58"),((t,e)=>{this[Xc("0x17")](e,Xc("0x3d"),((t,n,o,i)=>{e.isInContent&&(null==o?(this._updateController(i[Xc("0x3e")]),this[Xc("0x16")](e,!1)):(this._updateController(o[Xc("0x3e")]),null==i&&this[Xc("0x16")](e,!0)))})),null!==e[Xc("0x53")]?this._updateController(e[Xc("0x3e")]):this[Xc("0x16")](e,!1)})),this[Xc("0x17")](e,Xc("0x56"),((t,e,n)=>{this.stopListening(e,Xc("0x3d")),this[Xc("0x4c")].delete(e),this[Xc("0x5e")][Xc("0x6d")](e)&&this[Xc("0x15")](e),n&&this[Xc("0x5b")](n[Xc("0x3e")])})),this[Xc("0x17")](e,Xc("0xe"),((t,e)=>{this._updateController(e)})),this.listenTo(n,Xc("0x0"),(()=>{this[Xc("0x7")]()})),this[Xc("0x17")](i,"addComment",((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Xc("0x6f")](n))return;const i=e[Xc("0x31")](n);this[Xc("0x5e")][Xc("0x59")](i).view.focus()}),{priority:Xc("0x67")})}[Xc("0x7")](){const t=this[Xc("0x46")][Xc("0x47")][Xc("0x59")](Xc("0x2c")),e=this[Xc("0x46")].plugins[Xc("0x59")](Xc("0x2b")),n=Array.from(t[Xc("0x6")],(t=>t[Xc("0x1b")])).filter((t=>this[Xc("0x41")][Xc("0x6d")](t))),o=[];for(const t of n){const e=this[Xc("0x41")][Xc("0x59")](t)[Xc("0x5f")][Xc("0x6b")]();o[Xc("0x22")](...e[Xc("0x48")](((t,e)=>[...t,...e[Xc("0x20")]()]),[]))}e.activeMarkers=o}[Xc("0x65")](t){const n=(0,i.createDropdown)(t,i.SplitButtonView),o=this[Xc("0x46")][Xc("0x43")][Xc("0x59")](Xc("0x57")),r=Jo(t,"Track changes");n.buttonView.set({tooltip:r,label:r,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[Xc("0x36")][Xc("0x3a")]("isOn").to(o,Xc("0x69")),n[Xc("0x36")].on("execute",(()=>{o[Xc("0x23")](),this[Xc("0x46")][Xc("0x3b")][Xc("0x68")].focus()}));const s=new e.Collection,x=[{type:Xc("0x6e"),model:{withText:!0,label:r,commandName:Xc("0x57")}},{type:Xc("0x25")},{type:Xc("0x45"),model:{withText:!0,label:Jo(t,Xc("0x6c")),commandName:Xc("0x2d")}},{type:"button",model:{withText:!0,label:Jo(t,Xc("0x42")),commandName:Xc("0x29")}},{type:Xc("0x45"),model:{withText:!0,label:Jo(t,Xc("0x30")),commandName:Xc("0x4")}},{type:Xc("0x45"),model:{withText:!0,label:Jo(t,"Discard all selected suggestions"),commandName:Xc("0x3f")}}];for(const t of x){let e={type:Xc("0x25")};if(t[Xc("0x5f")]){const n=new i.Model(t[Xc("0x5f")]),o=this[Xc("0x46")][Xc("0x43")].get(n[Xc("0x5a")]);n.bind("isOn","isEnabled").to(o,"value",Xc("0xc")),e={type:t[Xc("0x28")],model:n}}s.add(e)}(0,i.addListToDropdown)(n,s);const a=x.filter((t=>null!=t[Xc("0x5f")]))[Xc("0x5c")]((t=>this.editor[Xc("0x43")][Xc("0x59")](t[Xc("0x5f")][Xc("0x5a")]))),c=n[Xc("0x36")];return c[Xc("0x1a")][Xc("0x11")](Xc("0xc")),c[Xc("0x3")][Xc("0x11")](Xc("0xc")),c[Xc("0x1a")][Xc("0x3a")](Xc("0xc")).to(o,"isEnabled"),c.arrowView[Xc("0x3a")](Xc("0xc"))[Xc("0x1c")](a,Xc("0xc"),((...t)=>t[Xc("0x34")]((t=>t)))),n.on("execute",(t=>{this[Xc("0x46")][Xc("0x23")](t[Xc("0x4f")][Xc("0x5a")]),this[Xc("0x46")].editing.view[Xc("0x4b")]()})),n}_initializeController(t){const e=this[Xc("0x46")],n=e.config,o=e[Xc("0x47")].get("Annotations"),i=e[Xc("0x47")][Xc("0x59")](Xc("0x33")),s=e.plugins[Xc("0x59")](Xc("0x2f")),x=e[Xc("0x47")][Xc("0x59")](r.Users).me,a=n[Xc("0x59")](Xc("0x57"))[Xc("0x27")],{CommentsListView:c,CommentThreadInputView:l}=e[Xc("0x47")].get(Xc("0x52"));let u,d;this[Xc("0xf")][Xc("0x6d")](t.id)?(d=this[Xc("0xf")][Xc("0x59")](t.id),u=d[Xc("0x13")]):(u=new a(e[Xc("0x24")],t,x,{disableComments:this[Xc("0x37")],editorConfig:n[Xc("0x59")](Xc("0x10")),maxCommentsWhenCollapsed:n[Xc("0x59")]("comments.maxCommentsWhenCollapsed"),maxThreadTotalWeight:n[Xc("0x59")](Xc("0xd")),maxCommentCharsWhenCollapsed:n[Xc("0x59")](Xc("0x9")),formatDateTime:(0,r.getDateTimeFormatter)(n[Xc("0x59")](Xc("0x24"))),CommentView:n[Xc("0x59")]("comments").CommentView,CommentsListView:c,CommentThreadInputView:l}),u[Xc("0x2e")].on(Xc("0x23"),(()=>{e[Xc("0x3b")][Xc("0x68")][Xc("0x4b")]()})),u[Xc("0x1e")].on(Xc("0x23"),(()=>{e[Xc("0x3b")][Xc("0x68")].focus()})),d=o[Xc("0x4d")](this[Xc("0x46")][Xc("0x24")],u),d.bind(Xc("0x39")).to(u,"isDirty"),d[Xc("0x3a")](Xc("0x54")).to(u),d[Xc("0x3a")](Xc("0x28")).to(u,Xc("0x28"),(t=>"suggestion-"+t)),this._annotationViews[Xc("0x32")](t.id,d));const g=i[Xc("0x2")](t[Xc("0x14")],u),f=new Mc(e,t,u,g),m=t.getAllAdjacentSuggestions().filter((t=>t[Xc("0x62")]));u[Xc("0x1d")]=e.plugins.get(Xc("0x2b"))[Xc("0x40")].getDescriptions(m),this[Xc("0x5e")][Xc("0x32")](t,f),this._viewToController[Xc("0x32")](u,f);const h=o[Xc("0x21")]({view:d,target:()=>{const n=[],o=t[Xc("0x6b")]()[Xc("0x8")]((t=>t[Xc("0x62")]));for(const t of o)n[Xc("0x22")](...t[Xc("0xb")]());return(0,r.getAllMarkersDomElementsSorted)(e[Xc("0x3b")],n)},type:()=>Xc("0x1")+f.view[Xc("0x28")]});i[Xc("0x55")](u,h),o[Xc("0x44")](h),s.registerAnnotation(h)}_destroyController(t){const e=this[Xc("0x46")][Xc("0x47")][Xc("0x59")]("CommentsRepository"),n=this[Xc("0x46")][Xc("0x47")][Xc("0x59")](Xc("0x2c")),o=this[Xc("0x5e")].get(t),i=o[Xc("0x68")],r=n.getByInnerView(i);e[Xc("0x6a")](i),r&&n[Xc("0x60")](r),this[Xc("0x5e")][Xc("0x5")](t),this._viewToController[Xc("0x5")](i),o[Xc("0x64")]()}[Xc("0x5b")](t){if(!t[Xc("0x62")]||!this._suggestionToController.has(t))return;const e=this[Xc("0x46")][Xc("0x47")][Xc("0x59")](Xc("0x2b")),n=this[Xc("0x5e")][Xc("0x59")](t),o=t[Xc("0x6b")]();n[Xc("0x68")][Xc("0x1d")]=e[Xc("0x40")][Xc("0x1f")](o)}destroy(){for(const t of this[Xc("0x5e")][Xc("0x50")]())this[Xc("0x15")](t);for(const t of this._annotationViews[Xc("0x49")]())t[Xc("0x13")].destroy();super[Xc("0x64")]()}}var Zc,Qc,Yc=["getSuggestion","addSuggestionData","getSuggestions","editor","Comments","addSuggestion","get","adapter","plugins","TrackChanges"];Zc=Yc,Qc=218,function(t){for(;--t;)Zc.push(Zc.shift())}(++Qc);var Jc=function(t,e){return Yc[t-=0]};class tl extends t.Plugin{static get requires(){return[hc,$c,Jc("0x6")]}static get pluginName(){return Jc("0x1")}set[Jc("0x9")](t){this[Jc("0x5")].plugins[Jc("0x8")](hc).adapter=t}get[Jc("0x9")](){return this.editor[Jc("0x0")][Jc("0x8")](hc).adapter}[Jc("0x7")](t){return this[Jc("0x5")][Jc("0x0")][Jc("0x8")](hc)[Jc("0x3")](t)}[Jc("0x4")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[Jc("0x5")].plugins[Jc("0x8")](hc)[Jc("0x4")]({skipNotAttached:t,toJSON:e})}getSuggestion(t){return this[Jc("0x5")][Jc("0x0")][Jc("0x8")](hc)[Jc("0x2")](t)}}const el=["editor","appendChild","execute","push","getUser","rootsAttributes","getSuggestions","get","editorCreator","name","result","createElement","trackChangesData.editorCreator","map","discardAllSuggestions","TrackChangesEditing","document","init","config","model","create","getFullData","trackChangesData","define","plugins","Users","getRootNames","acceptAllSuggestions","users","addUser","pluginName","track-changes-data-invalid-editor-creator","useAnonymousUser","getRootsAttributes","TrackChangesDataGetter","getDataWithAcceptedSuggestions","_adapter","data","function","CommentsRepository"];var nl,ol;nl=el,ol=303,function(t){for(;--t;)nl.push(nl.shift())}(++ol);const il=function(t,e){return el[t-=0]},rl=["Pagination"];class sl extends t.Plugin{static get requires(){return[hc]}static get pluginName(){return"TrackChangesData"}[il("0x22")](){const t=this[il("0x11")];if(t.config[il("0x0")](il("0x1d"),(e=>{const n=t.model[il("0x21")].getRootNames().reduce(((t,e)=>(t[e]="",t)),{});return t.constructor[il("0x25")](n,e)})),il("0xf")!=typeof t[il("0x23")][il("0x18")](il("0x27"))[il("0x19")])throw new e.CKEditorError(il("0x8"))}[il("0xc")](t){return cl(this[il("0x11")],!0,t)}getDataWithDiscardedSuggestions(t){return cl(this[il("0x11")],!1,t)}}class xl extends t.Plugin{static get[il("0x7")](){return il("0xb")}constructor(t){super(t),this[il("0x1b")]="end"}[il("0x22")](){this.editor[il("0x1")].get(il("0x10"))[il("0xd")]={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this[il("0x11")][il("0x1")][il("0x18")](il("0x20"))[il("0xd")]=null}}function al(t){return void 0!==t[il("0xa")]}async function cl(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,rl);o[il("0x1")][il("0x14")](hc,xl),o[il("0x16")]=al(t)?t[il("0xa")]():void 0;const i=document.createDocumentFragment(),s=t[il("0x23")][il("0x18")](il("0x27"))[il("0x19")],x=await s(o,(()=>function(t){const e=document[il("0x1c")]("div");return t[il("0x12")](e),e}(i)));!function(t,e){const n=t[il("0x24")][il("0x21")][il("0x3")]().reduce(((e,n)=>(e[n]=t[il("0xe")][il("0x18")]({rootName:n}),e)),{}),o=t.plugins.get(il("0x2"))[il("0x5")][il("0x1e")]((t=>({id:t.id,name:t[il("0x1a")]}))),i=t[il("0x1")][il("0x18")](il("0x20"))[il("0x17")]({skipNotAttached:!0,toJSON:!0}),r=e.plugins[il("0x18")]("Users"),s=e[il("0x1")][il("0x18")](il("0x20"));for(const t of o)r[il("0x15")](t.id)||r[il("0x6")](t);r.me||r[il("0x9")]();for(const t of i)s.addSuggestionData(t);e[il("0xe")].set(n)}(t,x),x[il("0x13")](il(e?"0x4":"0x1f"));const a=al(x)?x[il("0x26")](n):x.data[il("0x18")](n);return await x.destroy(),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
|
|
5
|
+
*/(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(i){var r=e[i];if(void 0!==r)return r.exports;var o=e[i]={exports:{}};return t[i](o,o.exports,n),o.exports}n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};(()=>{"use strict";n.r(i),n.d(i,{BaseSuggestionThreadView:()=>Kc,TrackChanges:()=>cl,TrackChangesData:()=>hl,TrackChangesEditing:()=>Ac});var t=n(704),e=n(209),r=n(273),o=n(417),s=n(492),x=n(995);const a=["refresh","value","has","TrackChangesCommand","affectsData","_enableCommands","_isEnabledBasedOnSelection","execute","clearForceDisabled","_disableUnsupportedCommands","commands","_enabledCommands","forceDisabled","isEnabled"];var c,l;c=a,l=322,function(t){for(;--t;)c.push(c.shift())}(++l);const u=function(t,e){return a[t-=0]};class d extends t.Command{constructor(t,e){super(t),this._enabledCommands=e,this[u("0x1")]=!1,this[u("0x0")](),this[u("0x6")]=!1}[u("0x0")](){this[u("0xd")]=!0}[u("0x7")](){this[u("0x1")]=!this[u("0x1")],this.value?this[u("0x9")]():this[u("0x5")]()}_disableUnsupportedCommands(){for(const t of this.editor[u("0xa")][u("0xa")]())t.affectsData&&!this[u("0xb")][u("0x2")](t)&&t[u("0xc")](u("0x3"))}[u("0x5")](){for(const t of this.editor.commands[u("0xa")]())t[u("0x4")]&&!this._enabledCommands[u("0x2")](t)&&t[u("0x8")](u("0x3"))}}const g=["track-changes-accept-suggestion-not-found","editor","_isEnabledBasedOnSelection","model","plugins","execute","get","refresh","getRanges","_suggestions","acceptSuggestion"];var f,h;f=g,h=449,function(t){for(;--t;)f.push(f.shift())}(++h);const m=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this[m("0x0")]=e,this[m("0x9")](),this[m("0x4")]=!1}[m("0x9")](){this.isEnabled=!0}[m("0x7")](t){const n=this[m("0x0")][m("0x8")](t);if(!n)throw new e.CKEditorError(m("0x2"),this);const i=n[m("0xa")]();this[m("0x3")][m("0x5")].canEditAt(i)&&this.editor[m("0x6")][m("0x8")]("TrackChangesEditing")[m("0x1")](n)}}const b=["isEnabled","refresh","discardSuggestion","get","plugins","_isEnabledBasedOnSelection","track-changes-discard-suggestion-not-found","_suggestions","TrackChangesEditing","getRanges","editor"];var E,_;E=b,_=197,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class y extends t.Command{constructor(t,e){super(t),this[T("0x8")]=e,this[T("0x2")](),this[T("0x6")]=!1}[T("0x2")](){this[T("0x1")]=!0}execute(t){const n=this[T("0x8")].get(t);if(!n)throw new e.CKEditorError(T("0x7"),this);const i=n[T("0xa")]();this[T("0x0")].model.canEditAt(i)&&this[T("0x0")][T("0x5")][T("0x4")](T("0x9"))[T("0x3")](n)}}const C=["map","value","push","change","isIntersecting","deletion","replace","length","isMultiRange","createPositionBefore","start","isArray","add","next","join"," [color ","createRange","end","getRanges","isObject","createPositionAfter","createPositionAt","isCollapsed","isTouching","content","from","sort","isInContent","color","type"];var A,k;A=C,k=270,function(t){for(;--t;)A.push(A.shift())}(++k);const I=function(t,e){return C[t-=0]};function R(t){return t[I("0x1a")](((t,e)=>I("0x5")==t[I("0x1d")]&&I("0x5")!=e[I("0x1d")]?-1:I("0x5")!=t[I("0x1d")]&&I("0x5")==e.type?1:0))}function v(t,e){let n,i=0;const r=[],o=e.schema;for(;i<t[I("0x7")];){const s=t[i],x=t[i+1];n||(n=e[I("0x9")](s)),S(e,s,x)||(r[I("0x2")](e[I("0x10")](n,o[I("0x13")](s)?e[I("0x14")](s):e[I("0x15")](s,I("0x11")))),n=null),i++}return r}function S(t,e,n){if(!n)return!1;const i=t[I("0x14")](e),r=t[I("0x9")](n);return i[I("0x17")](r)}function L(t,e,n){for(;n[I("0x7")];){const i=n.splice(0,100);t[I("0x3")]((()=>{for(const t of i)t.isInContent&&e.execute(t.id)}))}}const N=["execute","from","values","model","editor","refresh","canEditAt","isEnabled","_command","some","_isEnabledBasedOnSelection","_suggestions"];var M,w;M=N,w=403,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this._command=e,this._suggestions=n,this[O("0xa")](),this[O("0x3")]=!1}[O("0xa")](){const t=Array.from(this[O("0x4")][O("0x7")]())[O("0x2")]((t=>t.isInContent));this.isEnabled=this._command[O("0x0")]&&t}[O("0x5")](){const t=R(Array[O("0x6")](this._suggestions.values()));for(const e of t){const t=e.getRanges();if(!this.editor[O("0x8")][O("0xb")](t))return}L(this[O("0x9")].model,this[O("0x1")],t)}}const D=["editor","_command","execute","_suggestions","_isEnabledBasedOnSelection","canEditAt","values","model","document","_selectedSuggestions","isEnabled","size","getRanges"];var B,P;B=D,P=168,function(t){for(;--t;)B.push(B.shift())}(++P);const U=function(t,e){return D[t-=0]};class j extends t.Command{constructor(t,e,n){super(t),this._command=e,this[U("0x4")]=n,this[U("0xa")]=new Set,this.refresh(),this[U("0x5")]=!1}refresh(){const t=this[U("0x1")][U("0x8")][U("0x9")].selection,e=Array.from(this._suggestions[U("0x7")]());this[U("0xa")]=function(t,e){const n=Array[I("0x19")](t[I("0x12")]()),i=new Set;for(const r of e)if(r[I("0x1b")])for(const e of n)for(const n of r.getRanges())(e[I("0x4")](n)||t[I("0x16")]&&!r[I("0x8")]&&r[I("0xd")]&&n.end[I("0x17")](e[I("0xa")]))&&i[I("0xc")](r);return i}(t,e),this[U("0xb")]=this[U("0x2")][U("0xb")]&&!!this[U("0xa")][U("0xc")]}[U("0x3")](){const t=R(Array.from(this[U("0xa")]));for(const e of t){const t=e[U("0x0")]();if(!this[U("0x1")][U("0x8")][U("0x6")](t))return}L(this[U("0x1")][U("0x8")],this._command,t)}}const G=function(){this.__data__=[],this.size=0};const V=function(t,e){return t===e||t!=t&&e!=e};const H=function(t,e){for(var n=t.length;n--;)if(V(t[n][0],e))return n;return-1};var z=Array.prototype.splice;const W=function(t){var e=this.__data__,n=H(e,t);return!(n<0)&&(n==e.length-1?e.pop():z.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=H(e,t);return n<0?void 0:e[n][1]};const q=function(t){return H(this.__data__,t)>-1};const $=function(t,e){var n=this.__data__,i=H(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this};function X(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}X.prototype.clear=G,X.prototype.delete=W,X.prototype.get=K,X.prototype.has=q,X.prototype.set=$;const Z=X;const Y=function(){this.__data__=new Z,this.size=0};const J=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Q=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const it=et||nt||Function("return this")();const rt=it.Symbol;var ot=Object.prototype,st=ot.hasOwnProperty,xt=ot.toString,at=rt?rt.toStringTag:void 0;const ct=function(t){var e=st.call(t,at),n=t[at];try{t[at]=void 0;var i=!0}catch(t){}var r=xt.call(t);return i&&(e?t[at]=n:delete t[at]),r};var lt=Object.prototype.toString;const ut=function(t){return lt.call(t)};var dt=rt?rt.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":dt&&dt in Object(t)?ct(t):ut(t)};const ft=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ht=function(t){if(!ft(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const mt=it["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(mt&&mt.keys&&mt.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var yt=/^\[object .+?Constructor\]$/,Ct=Function.prototype,At=Object.prototype,kt=Ct.toString,It=At.hasOwnProperty,Rt=RegExp("^"+kt.call(It).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const vt=function(t){return!(!ft(t)||Et(t))&&(ht(t)?Rt:yt).test(Tt(t))};const St=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=St(t,e);return vt(n)?n:void 0};const Nt=Lt(it,"Map");const Mt=Lt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Dt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Bt=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Bt.call(e,t)};const Ut=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mt&&void 0===e?"__lodash_hash_undefined__":e,this};function jt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}jt.prototype.clear=wt,jt.prototype.delete=Ot,jt.prototype.get=Dt,jt.prototype.has=Pt,jt.prototype.set=Ut;const Gt=jt;const Vt=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||Z),string:new Gt}};const Ht=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const zt=function(t,e){var n=t.__data__;return Ht(e)?n["string"==typeof e?"string":"hash"]:n.map};const Wt=function(t){var e=zt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return zt(this,t).get(t)};const qt=function(t){return zt(this,t).has(t)};const $t=function(t,e){var n=zt(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this};function Xt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}Xt.prototype.clear=Vt,Xt.prototype.delete=Wt,Xt.prototype.get=Kt,Xt.prototype.has=qt,Xt.prototype.set=$t;const Zt=Xt;const Yt=function(t,e){var n=this.__data__;if(n instanceof Z){var i=n.__data__;if(!Nt||i.length<199)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new Zt(i)}return n.set(t,e),this.size=n.size,this};function Jt(t){var e=this.__data__=new Z(t);this.size=e.size}Jt.prototype.clear=Y,Jt.prototype.delete=J,Jt.prototype.get=Q,Jt.prototype.has=tt,Jt.prototype.set=Yt;const Qt=Jt;const te=function(t,e){for(var n=-1,i=null==t?0:t.length;++n<i&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var ie=Object.prototype.hasOwnProperty;const re=function(t,e,n){var i=t[e];ie.call(t,e)&&V(i,n)&&(void 0!==n||e in t)||ne(t,e,n)};const oe=function(t,e,n,i){var r=!n;n||(n={});for(var o=-1,s=e.length;++o<s;){var x=e[o],a=i?i(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),r?ne(n,x,a):re(n,x,a)}return n};const se=function(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,ue=ce.propertyIsEnumerable;const de=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!ue.call(t,"callee")};const ge=Array.isArray;const fe=function(){return!1};var he="object"==typeof exports&&exports&&!exports.nodeType&&exports,me=he&&"object"==typeof module&&module&&!module.nodeType&&module,pe=me&&me.exports===he?it.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||fe;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var ye={};ye["[object Float32Array]"]=ye["[object Float64Array]"]=ye["[object Int8Array]"]=ye["[object Int16Array]"]=ye["[object Int32Array]"]=ye["[object Uint8Array]"]=ye["[object Uint8ClampedArray]"]=ye["[object Uint16Array]"]=ye["[object Uint32Array]"]=!0,ye["[object Arguments]"]=ye["[object Array]"]=ye["[object ArrayBuffer]"]=ye["[object Boolean]"]=ye["[object DataView]"]=ye["[object Date]"]=ye["[object Error]"]=ye["[object Function]"]=ye["[object Map]"]=ye["[object Number]"]=ye["[object Object]"]=ye["[object RegExp]"]=ye["[object Set]"]=ye["[object String]"]=ye["[object WeakMap]"]=!1;const Ce=function(t){return xe(t)&&Te(t.length)&&!!ye[gt(t)]};const Ae=function(t){return function(e){return t(e)}};var ke="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ie=ke&&"object"==typeof module&&module&&!module.nodeType&&module,Re=Ie&&Ie.exports===ke&&et.process;const ve=function(){try{var t=Ie&&Ie.require&&Ie.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Se=ve&&ve.isTypedArray;const Le=Se?Ae(Se):Ce;var Ne=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),i=!n&&de(t),r=!n&&!i&&be(t),o=!n&&!i&&!r&&Le(t),s=n||i||r||o,x=s?se(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||s&&("length"==c||r&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const De=Fe(Object.keys,Object);var Be=Object.prototype.hasOwnProperty;const Pe=function(t){if(!Oe(t))return De(t);var e=[];for(var n in Object(t))Be.call(t,n)&&"constructor"!=n&&e.push(n);return e};const Ue=function(t){return null!=t&&Te(t.length)&&!ht(t)};const je=function(t){return Ue(t)?Me(t):Pe(t)};const Ge=function(t,e){return t&&oe(e,je(e),t)};const Ve=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var He=Object.prototype.hasOwnProperty;const ze=function(t){if(!ft(t))return Ve(t);var e=Oe(t),n=[];for(var i in t)("constructor"!=i||!e&&He.call(t,i))&&n.push(i);return n};const We=function(t){return Ue(t)?Me(t,!0):ze(t)};const Ke=function(t,e){return t&&oe(e,We(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,$e=qe&&"object"==typeof module&&module&&!module.nodeType&&module,Xe=$e&&$e.exports===qe?it.Buffer:void 0,Ze=Xe?Xe.allocUnsafe:void 0;const Ye=function(t,e){if(e)return t.slice();var n=t.length,i=Ze?Ze(n):new t.constructor(n);return t.copy(i),i};const Je=function(t,e){var n=-1,i=t.length;for(e||(e=Array(i));++n<i;)e[n]=t[n];return e};const Qe=function(t,e){for(var n=-1,i=null==t?0:t.length,r=0,o=[];++n<i;){var s=t[n];e(s,n,t)&&(o[r++]=s)}return o};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const rn=nn?function(t){return null==t?[]:(t=Object(t),Qe(nn(t),(function(e){return en.call(t,e)})))}:tn;const on=function(t,e){return oe(t,rn(t),e)};const sn=function(t,e){for(var n=-1,i=e.length,r=t.length;++n<i;)t[r+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)sn(e,rn(t)),t=xn(t);return e}:tn;const cn=function(t,e){return oe(t,an(t),e)};const ln=function(t,e,n){var i=e(t);return ge(t)?i:sn(i,n(t))};const un=function(t){return ln(t,je,rn)};const dn=function(t){return ln(t,We,an)};const gn=Lt(it,"DataView");const fn=Lt(it,"Promise");const hn=Lt(it,"Set");const mn=Lt(it,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",yn=Tt(gn),Cn=Tt(Nt),An=Tt(fn),kn=Tt(hn),In=Tt(mn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&Rn(new Nt)!=pn||fn&&Rn(fn.resolve())!=bn||hn&&Rn(new hn)!=En||mn&&Rn(new mn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,i=n?Tt(n):"";if(i)switch(i){case yn:return Tn;case Cn:return pn;case An:return bn;case kn:return En;case In:return _n}return e});const vn=Rn;var Sn=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Sn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=it.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Dn=rt?rt.prototype:void 0,Bn=Dn?Dn.valueOf:void 0;const Pn=function(t){return Bn?Object(Bn.call(t)):{}};const Un=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const jn=function(t,e,n){var i=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new i(+t);case"[object DataView]":return wn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Un(t,n);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Pn(t)}};var Gn=Object.create;const Vn=function(){function t(){}return function(e){if(!ft(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const Hn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Vn(xn(t))};const zn=function(t){return xe(t)&&"[object Map]"==vn(t)};var Wn=ve&&ve.isMap;const Kn=Wn?Ae(Wn):zn;const qn=function(t){return xe(t)&&"[object Set]"==vn(t)};var $n=ve&&ve.isSet;const Xn=$n?Ae($n):qn;var Zn="[object Arguments]",Yn="[object Function]",Jn="[object Object]",Qn={};Qn[Zn]=Qn["[object Array]"]=Qn["[object ArrayBuffer]"]=Qn["[object DataView]"]=Qn["[object Boolean]"]=Qn["[object Date]"]=Qn["[object Float32Array]"]=Qn["[object Float64Array]"]=Qn["[object Int8Array]"]=Qn["[object Int16Array]"]=Qn["[object Int32Array]"]=Qn["[object Map]"]=Qn["[object Number]"]=Qn[Jn]=Qn["[object RegExp]"]=Qn["[object Set]"]=Qn["[object String]"]=Qn["[object Symbol]"]=Qn["[object Uint8Array]"]=Qn["[object Uint8ClampedArray]"]=Qn["[object Uint16Array]"]=Qn["[object Uint32Array]"]=!0,Qn["[object Error]"]=Qn[Yn]=Qn["[object WeakMap]"]=!1;const ti=function t(e,n,i,r,o,s){var x,a=1&n,c=2&n,l=4&n;if(i&&(x=o?i(e,r,o,s):i(e)),void 0!==x)return x;if(!ft(e))return e;var u=ge(e);if(u){if(x=Ln(e),!a)return Je(e,x)}else{var d=vn(e),g=d==Yn||"[object GeneratorFunction]"==d;if(be(e))return Ye(e,a);if(d==Jn||d==Zn||g&&!o){if(x=c||g?{}:Hn(e),!a)return c?cn(e,Ke(x,e)):on(e,Ge(x,e))}else{if(!Qn[d])return o?e:{};x=jn(e,d,a)}}s||(s=new Qt);var f=s.get(e);if(f)return f;s.set(e,x),Xn(e)?e.forEach((function(r){x.add(t(r,n,i,r,e,s))})):Kn(e)&&e.forEach((function(r,o){x.set(o,t(r,n,i,o,e,s))}));var h=u?void 0:(l?c?dn:un:c?We:je)(e);return te(h||e,(function(r,o){h&&(r=e[o=r]),re(x,o,t(r,n,i,o,e,s))})),x};const ei=function(t){return ti(t,5)};const ni=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var ii=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ri=/^\w*$/;const oi=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!ni(t))||(ri.test(t)||!ii.test(t)||null!=e&&t in Object(e))};function si(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var i=arguments,r=e?e.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var s=t.apply(this,i);return n.cache=o.set(r,s)||o,s};return n.cache=new(si.Cache||Zt),n}si.Cache=Zt;const xi=si;var ai=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ci=/\\(\\)?/g;const li=function(t){var e=xi(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ai,(function(t,n,i,r){e.push(i?r.replace(ci,"$1"):n||t)})),e}));const ui=function(t,e){for(var n=-1,i=null==t?0:t.length,r=Array(i);++n<i;)r[n]=e(t[n],n,t);return r};var di=rt?rt.prototype:void 0,gi=di?di.toString:void 0;const fi=function t(e){if("string"==typeof e)return e;if(ge(e))return ui(e,t)+"";if(ni(e))return gi?gi.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const hi=function(t){return null==t?"":fi(t)};const mi=function(t,e){return ge(t)?t:oi(t,e)?[t]:li(hi(t))};const pi=function(t){if("string"==typeof t||ni(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const bi=function(t,e,n,i){if(!ft(t))return t;for(var r=-1,o=(e=mi(e,t)).length,s=o-1,x=t;null!=x&&++r<o;){var a=pi(e[r]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(r!=s){var l=x[a];void 0===(c=i?i(l,a,x):void 0)&&(c=ft(l)?l:_e(e[r+1])?[]:{})}re(x,a,c),x=x[a]}return t};const Ei=function(t,e,n){return null==t?t:bi(t,e,n)};const _i=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Ti=function(t){return this.__data__.has(t)};function yi(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Zt;++e<n;)this.add(t[e])}yi.prototype.add=yi.prototype.push=_i,yi.prototype.has=Ti;const Ci=yi;const Ai=function(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(e(t[n],n,t))return!0;return!1};const ki=function(t,e){return t.has(e)};const Ii=function(t,e,n,i,r,o){var s=1&n,x=t.length,a=e.length;if(x!=a&&!(s&&a>x))return!1;var c=o.get(t),l=o.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new Ci:void 0;for(o.set(t,e),o.set(e,t);++u<x;){var f=t[u],h=e[u];if(i)var m=s?i(h,f,u,e,t,o):i(f,h,u,t,e,o);if(void 0!==m){if(m)continue;d=!1;break}if(g){if(!Ai(e,(function(t,e){if(!ki(g,e)&&(f===t||r(f,t,n,i,o)))return g.push(e)}))){d=!1;break}}else if(f!==h&&!r(f,h,n,i,o)){d=!1;break}}return o.delete(t),o.delete(e),d};const Ri=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,i){n[++e]=[i,t]})),n};const vi=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Si=rt?rt.prototype:void 0,Li=Si?Si.valueOf:void 0;const Ni=function(t,e,n,i,r,o,s){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!o(new Nn(t),new Nn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return V(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=Ri;case"[object Set]":var a=1&i;if(x||(x=vi),t.size!=e.size&&!a)return!1;var c=s.get(t);if(c)return c==e;i|=2,s.set(t,e);var l=Ii(x(t),x(e),i,r,o,s);return s.delete(t),l;case"[object Symbol]":if(Li)return Li.call(t)==Li.call(e)}return!1};var Mi=Object.prototype.hasOwnProperty;const wi=function(t,e,n,i,r,o){var s=1&n,x=un(t),a=x.length;if(a!=un(e).length&&!s)return!1;for(var c=a;c--;){var l=x[c];if(!(s?l in e:Mi.call(e,l)))return!1}var u=o.get(t),d=o.get(e);if(u&&d)return u==e&&d==t;var g=!0;o.set(t,e),o.set(e,t);for(var f=s;++c<a;){var h=t[l=x[c]],m=e[l];if(i)var p=s?i(m,h,l,e,t,o):i(h,m,l,t,e,o);if(!(void 0===p?h===m||r(h,m,n,i,o):p)){g=!1;break}f||(f="constructor"==l)}if(g&&!f){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return o.delete(t),o.delete(e),g};var Oi="[object Arguments]",Fi="[object Array]",Di="[object Object]",Bi=Object.prototype.hasOwnProperty;const Pi=function(t,e,n,i,r,o){var s=ge(t),x=ge(e),a=s?Fi:vn(t),c=x?Fi:vn(e),l=(a=a==Oi?Di:a)==Di,u=(c=c==Oi?Di:c)==Di,d=a==c;if(d&&be(t)){if(!be(e))return!1;s=!0,l=!1}if(d&&!l)return o||(o=new Qt),s||Le(t)?Ii(t,e,n,i,r,o):Ni(t,e,a,n,i,r,o);if(!(1&n)){var g=l&&Bi.call(t,"__wrapped__"),f=u&&Bi.call(e,"__wrapped__");if(g||f){var h=g?t.value():t,m=f?e.value():e;return o||(o=new Qt),r(h,m,n,i,o)}}return!!d&&(o||(o=new Qt),wi(t,e,n,i,r,o))};const Ui=function t(e,n,i,r,o){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:Pi(e,n,i,r,t,o))};const ji=function(t,e){return Ui(t,e)};const Gi=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Vi=function(t,e){for(var n=0,i=(e=mi(e,t)).length;null!=t&&n<i;)t=t[pi(e[n++])];return n&&n==i?t:void 0};const Hi=function(t,e,n){var i=-1,r=t.length;e<0&&(e=-e>r?0:r+e),(n=n>r?r:n)<0&&(n+=r),r=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(r);++i<r;)o[i]=t[i+e];return o};const zi=function(t,e){return e.length<2?t:Vi(t,Hi(e,0,-1))};const Wi=function(t,e){return e=mi(e,t),null==(t=zi(t,e))||delete t[pi(Gi(e))]};const Ki=function(t,e){return null==t||Wi(t,e)},qi=["discard","delete","commentThread","getItems","getMultiRangeId","createdAt","getAllAdjacentSuggestions","split","isIntersecting","reduce","head","authoredAt","map","accept","previous","isInContent","getMarkerNames","author","removeAttribute","get","getRanges","removeMarkers","_onDiscard","getFirstMarker","type","end","size","onDiscard","creator","removeMarker","change","setAttribute","onAttributesChange","_model","_isDataLoaded","add","@external","getContainedElement","getMarkers","nodeBefore","isIntersectingWithRange","isMultiRange","clear","attributes","addRange","push","getRange","hasComments","set","from","addMarkerName","_markerNames","subType","_onAccept","_onAttributesChange","next","getFirstRange","length","markers","decorate","data","start"];var $i,Xi;$i=qi,Xi=164,function(t){for(;--t;)$i.push($i.shift())}(++Xi);const Zi=function(t,e){return qi[t-=0]};class Yi extends((0,e.ObservableMixin)()){constructor(t,e){super(),this[Zi("0x38")]=!1,this.id=e.id,this[Zi("0x2e")]=e[Zi("0x2e")],this[Zi("0xc")]=e[Zi("0xc")]||null,this.author=e[Zi("0x27")],this[Zi("0x32")]=e[Zi("0x32")]||e.author,this.isExternal=Boolean(e[Zi("0x3")]&&e[Zi("0x3")][Zi("0x3a")]),this[Zi("0x14")]=null,this[Zi("0x37")]=t,this[Zi("0xd")]=e.onAccept,this[Zi("0x2c")]=e[Zi("0x31")],this[Zi("0xe")]=e[Zi("0x36")],this._markerNames=new Set,this[Zi("0x1b")]=null,this.set(Zi("0x21"),null),this[Zi("0x8")]("attributes",e[Zi("0x3")]||{}),this[Zi("0x8")](Zi("0x24"),null),this[Zi("0x8")](Zi("0xf"),null),this[Zi("0x8")](Zi("0x18"),null),this.set("_saved",!1),this.decorate(Zi("0x23")),this[Zi("0x13")](Zi("0x16"))}get[Zi("0x20")](){let t=this;for(;t[Zi("0x24")];)t=t.previous;return t}get hasComments(){return!!this.commentThread&&this[Zi("0x18")].length>0}get[Zi("0x1")](){return 0!=this._markerNames[Zi("0x30")]&&6==Array[Zi("0x9")](this[Zi("0xb")])[0][Zi("0x1d")](":")[Zi("0x11")]}get[Zi("0x25")](){return null!==this[Zi("0x2d")]()}addMarkerName(t){this[Zi("0xb")][Zi("0x39")](t)}[Zi("0x26")](){return Array[Zi("0x9")](this[Zi("0xb")])}[Zi("0x3c")](){return this.getMarkerNames()[Zi("0x22")]((t=>this[Zi("0x37")][Zi("0x12")][Zi("0x29")](t))).filter((t=>t))}[Zi("0x2d")](){return this[Zi("0x3c")]()[0]||null}[Zi("0x2b")](){this[Zi("0x37")][Zi("0x34")]((t=>{for(const e of this[Zi("0x3c")]())t.removeMarker(e)})),this[Zi("0xb")][Zi("0x2")]()}removeMarker(t){this[Zi("0x37")][Zi("0x34")]((e=>{e[Zi("0x33")](t)})),this._markerNames[Zi("0x17")](t)}[Zi("0x4")](t){const e="suggestion:"+this[Zi("0x2e")]+":"+this[Zi("0xc")]+":"+this.id+":"+this[Zi("0x32")].id+":"+Yi[Zi("0x1a")]();this[Zi("0xa")](e),this._model[Zi("0x34")]((n=>{n.addMarker(e,{range:t,usingOperation:!0,affectsData:!0})}))}[Zi("0x0")](t){for(const e of this[Zi("0x2a")]())if(e[Zi("0x1e")](t))return!0;return!1}getRanges(){return this[Zi("0x3c")]()[Zi("0x22")]((t=>t[Zi("0x6")]()))}[Zi("0x19")](){return this[Zi("0x2a")]()[Zi("0x1f")](((t,e)=>[...t,...e[Zi("0x19")]()]),[])}[Zi("0x10")](){var t;return(null===(t=this[Zi("0x2d")]())||void 0===t?void 0:t[Zi("0x6")]())||null}[Zi("0x3b")](){const t=this[Zi("0x2a")]();if(1!=t[Zi("0x11")])return null;const e=t[0],n=e[Zi("0x15")].nodeAfter,i=e[Zi("0x2f")][Zi("0x3d")];return n instanceof s.Element?n!=i?null:n:null}[Zi("0x23")](){this._onAccept(this[Zi("0x2a")](),this.data,this.attributes),this[Zi("0x2b")]()}[Zi("0x16")](){this[Zi("0x2c")](this[Zi("0x2a")](),this.data,this[Zi("0x3")]),this[Zi("0x2b")]()}[Zi("0x1c")](){const t=[];let e=this[Zi("0x20")];for(;e;)t[Zi("0x5")](e),e=e[Zi("0xf")];return t}[Zi("0x35")](t,e){const n=ei(this.attributes);Ei(n,t,e),ji(n,this[Zi("0x3")])||(this[Zi("0x3")]=n,this[Zi("0xe")](n))}[Zi("0x28")](t){const e=ei(this[Zi("0x3")]);Ki(e,t),ji(e,this[Zi("0x3")])||(this.attributes=e,this._onAttributesChange(this[Zi("0x3")]))}toJSON(){return{id:this.id,type:this[Zi("0xc")]?this[Zi("0x2e")]+":"+this[Zi("0xc")]:this.type,authorId:this[Zi("0x32")].id,createdAt:this.createdAt,hasComments:this[Zi("0x7")],data:this[Zi("0x14")],attributes:this[Zi("0x3")]}}static[Zi("0x1a")](){return(0,e.uid)().substr(1,5)}}function Ji(t,e,n){const i=t.t;switch(e){case"Track changes":return i("Track changes");case"Accept suggestion":return i("Accept suggestion");case"Discard suggestion":return i("Discard suggestion");case"Accept all suggestions":return i("Accept all suggestions");case"Accept all selected suggestions":return i("Accept all selected suggestions");case"Discard all suggestions":return i("Discard all suggestions");case"Discard all selected suggestions":return i("Discard all selected suggestions");case"*Reset font size*":return i("*Reset font size*");case"*Reset font family*":return i("*Reset font family*");case"*Reset font color*":return i("*Reset font color*");case"*Reset font background color*":return i("*Reset font background color*");case"*Remove image text alternative*":return i("*Remove image text alternative*");case"*Reset image width*":return i("*Reset image width*");case"*Remove link*":return i("*Remove link*");case"*Check item*":return i("*Check item*");case"*Uncheck item*":return i("*Uncheck item*");case"*Remove all formatting*":return i("*Remove all formatting*");case"*Replace table cells*":return i("*Replace table cells*");case"*Merge cells*":return i("*Merge cells*");case"*Split cell:* vertically":return i("*Split cell:* vertically");case"*Split cell:* horizontally":return i("*Split cell:* horizontally");case"*Indent:* %0":return i("*Indent:* %0",n);case"*Outdent:* %0":return i("*Outdent:* %0",n);case"*Change to:* %0":return i("*Change to:* %0",n);case"*Insert:* %0":return i("*Insert:* %0",n);case"*Format:* %0":return i("*Format:* %0",n);case"*Format:* change table properties":return i("*Format:* change table properties");case"*Format:* change table cell properties":return i("*Format:* change table cell properties");case"*Format:* insert into %0":return i("*Format:* insert into %0",n);case"*Format:* remove from %0":return i("*Format:* remove from %0",n);case"*Replace image URL*":return i("*Replace image URL*");case"*Format:* resize table":return i("*Format:* resize table");case"*Format:* set order to reversed":return i("*Format:* set order to reversed");case"*Format:* set order to regular":return i("*Format:* set order to regular");case"*Format:* set start index to %0":return i("*Format:* set start index to %0",n);case"*Change %0 content*":return i("*Change %0 content*",n);case"*Remove:* %0":return i("*Remove:* %0",n);case"*Merge:* %0":return i("*Merge:* %0",n);case"*Split:* %0":return i("*Split:* %0",n);case"*Remove format:* %0":return i("*Remove format:* %0",n);case"*Set font size:* %0":return i("*Set font size:* %0",n);case"*Set font family:* %0":return i("*Set font family:* %0",n);case"*Set format to:* %0":return i("*Set format to:* %0",n);case"*Set font color:* %0":return i("*Set font color:* %0",n);case"*Set font background color:* %0":return i("*Set font background color:* %0",n);case"*Set format:* %0":return i("*Set format:* %0",n);case"*Set image text alternative:* %0":return i("*Set image text alternative:* %0",n);case"*Set image width:* %0":return i("*Set image width:* %0",n);case"*Set link:* %0":return i("*Set link:* %0",n);case"*Set highlight:* %0":return i("*Set highlight:* %0",n);case"*Remove highlight*":return i("*Remove highlight*");case"FORMAT_HIGHLIGHT":return i({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return i({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return i({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return i({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return i({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return i({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return i({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return i({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return i({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return i({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return i({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return i({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return i({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return i({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return i({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return i({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return i({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_DEFAULT":return i({string:"bulleted list (default)",id:"ELEMENT_BULLETED_LIST_DEFAULT"});case"ELEMENT_BULLETED_LIST_CIRCLE":return i({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return i({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return i({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST_DEFAULT":return i({string:"numbered list (default)",id:"ELEMENT_NUMBERED_LIST_DEFAULT"});case"ELEMENT_NUMBERED_LIST":return i({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return i({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return i({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return i({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return i({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return i({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return i({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return i({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return i({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return i({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGNMENT":return i({string:"alignment",id:"FORMAT_ALIGNMENT"});case"FORMAT_ALIGN_TO_LEFT":return i({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return i({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return i({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return i({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return i({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return i({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return i({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return i({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return i({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return i({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return i({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return i({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return i({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return i({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return i({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return i({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return i({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"FORMAT_INDENT":return i({string:"indent",id:"FORMAT_INDENT"});case"FORMAT_LIST_REVERSED":return i({string:"list reversed",id:"FORMAT_LIST_REVERSED"});case"FORMAT_LIST_START":return i({string:"list start",id:"FORMAT_LIST_START"});case"FORMAT_FONT_SIZE":return i({string:"font size",id:"FORMAT_FONT_SIZE"});case"FORMAT_FONT_FAMILY":return i({string:"font family",id:"FORMAT_FONT_FAMILY"});case"FORMAT_FONT_COLOR":return i({string:"font color",id:"FORMAT_FONT_COLOR"});case"FORMAT_FONT_BACKGROUND":return i({string:"font background color",id:"FORMAT_FONT_BACKGROUND"});case"FORMAT_IMAGE_SIZE":return i({string:"image size",id:"FORMAT_IMAGE_SIZE"});case"FORMAT_STYLE":return i({string:"style",id:"FORMAT_STYLE"});case"PENDING_ACTION_SUGGESTION":return i({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return i({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return i({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return i({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return i({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return i({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_TABLE_OF_CONTENTS":return i({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return i({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return i({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return i({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return i({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return i({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return i({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);case"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT":return i({string:"Entering insertion suggestion.",id:"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT":return i({string:"Leaving insertion suggestion.",id:"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT":return i({string:"Entering deletion suggestion.",id:"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT":return i({string:"Leaving deletion suggestion.",id:"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT":return i({string:"Entering formatting suggestion.",id:"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT":return i({string:"Leaving formatting suggestion.",id:"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT"});default:return e}}const Qi=["removeFormat","pop","EmptyContainer","map","addEmptyContainer","*Set format:* %0","start","$1 $2","insertion","isInContent","_addDescriptionItems","isEqual","skip","newValue","_attributeLabels","_schema","key","length","type","_customCallbacks","*Change to:* %0","getDescriptions","push","nodeAfter","elementEnd","quantity","_locale","set","Container","*Merge:* %0","*Insert:* %0","normal","$text","indexOf","registerDescriptionCallback","subType","data","_itemLabels","isEmpty","_handleInsertRemoveSuggestionDescription","match","getWalker","item","addFormat","deletion","*Remove:* %0","removeObject","has","_handleRenameSuggestionDescription","join","format","$textProxy","getFirstRange","function","nextSibling","getItemLabel","text","_itemLabelsCallbacks","element","elementStart","REPLACE_TEXT","checkChild","replace","Object","previousSibling","softBreak","addContainer","*Remove format:* %0","end","get","isObject","name","remove","add","_resolveDescriptionItems"];var tr,er;tr=Qi,er=210,function(t){for(;--t;)tr.push(tr.shift())}(++er);const nr=function(t,e){return Qi[t-=0]};class ir{constructor(t,e){this[nr("0x22")]=[],this[nr("0x34")]=new Map,this[nr("0x48")]=[],this[nr("0x1d")]=new Map,this[nr("0x1e")]=t,this[nr("0x29")]=e}[nr("0x24")](t){const e=[],n=new Set,i=new Set;for(let r=0;r<t.length;r++){const o=t[r];if(!o[nr("0x18")])continue;const s=this._handleCustomCallbackDescription(o);if(s){if(null!=o.subType){if(n[nr("0x3e")](o[nr("0x32")]))continue;n[nr("0xd")](o[nr("0x32")])}e[nr("0x25")](s)}else if("attribute"!=o[nr("0x21")])nr("0x17")!=o[nr("0x21")]&&nr("0x3b")!=o[nr("0x21")]||this[nr("0x36")](e,o,t[r+1]);else{const t=o[nr("0x33")].key;if(i[nr("0x3e")](t))continue;i[nr("0xd")](o[nr("0x33")][nr("0x1f")]),t==Cc?this[nr("0x3f")](e,o):this._handleAttributeSuggestionDescription(e,o)}}return this[nr("0xe")](e)}[nr("0x31")](t){this[nr("0x22")][nr("0x25")](t)}registerElementLabel(t,n,i=e.priorities[nr("0x2e")]){nr("0x44")==typeof t?(0,e.insertToPriorityArray)(this[nr("0x48")],{matchingCallback:t,label:n,priority:i}):this._itemLabels[nr("0x2a")](t,n)}registerAttributeLabel(t,e){this[nr("0x1d")].set(t,e)}getItemLabel(t,e=1){let n;for(const e of this[nr("0x48")])if(e.matchingCallback(t)){n=e.label;break}return n||(n=this._itemLabels[nr("0x9")](t.name)),n?n(e):1!==e?e+" "+t.name+"s":""+t[nr("0xb")]}[nr("0x19")](t,e){const n=e.getFirstRange()[nr("0x38")](),i="insertion"==e[nr("0x21")]?nr("0xd"):nr("0xc");for(const e of n){const r=e[nr("0x39")],o=t[t[nr("0x20")]-1];if(r.is(nr("0x42")))o&&o[nr("0x21")][nr("0x30")]("Container")>-1&&t[nr("0x10")](),o&&nr("0x47")==o.type?o[i]+=r[nr("0x33")]:t[nr("0x25")]({type:nr("0x47"),add:nr("0xd")==i?r.data:"",remove:"remove"==i?r[nr("0x33")]:""});else if(this[nr("0x1e")][nr("0xa")](r)){const s=r;if(o&&o.type[nr("0x30")](nr("0x2b"))>-1&&t.pop(),"elementEnd"==e.type)continue;o&&o[nr("0x21")]==i+nr("0x3")&&o[nr("0x49")][nr("0xb")]==s[nr("0xb")]?o[nr("0x28")]++:t[nr("0x25")]({type:i+nr("0x3"),element:s,quantity:1}),n[nr("0x1b")]((t=>!(nr("0x27")==t[nr("0x21")]&&t[nr("0x39")]==r)))}else if(this._schema[nr("0x1")](r,nr("0x2f"))||r.is("element",nr("0x5"))){const n=r;if(nr("0xd")==i&&nr("0x4a")==e[nr("0x21")]||nr("0xc")==i&&nr("0x27")==e[nr("0x21")])continue;if(o&&-1==o[nr("0x21")][nr("0x30")]("Container")){nr("0x47")==o[nr("0x21")]&&(o[i]+="\n");continue}let s;if(s=nr("0xd")==i?n[nr("0x45")]&&!this[nr("0x1e")][nr("0xa")](n[nr("0x45")])?n[nr("0x45")]:null:n[nr("0x4")]&&!this[nr("0x1e")][nr("0xa")](n.previousSibling)?n.previousSibling:null,n[nr("0x35")]||s&&s[nr("0x35")]){const e=s&&s.isEmpty?s:n;o&&o[nr("0x21")]==i+nr("0x11")&&o[nr("0x49")][nr("0xb")]==e[nr("0xb")]?o[nr("0x28")]++:t[nr("0x25")]({type:i+nr("0x11"),element:e,quantity:1})}else t.push({type:i+nr("0x2b"),element:n})}}}[nr("0xe")](t){const e=this[nr("0x29")],n=[],i=[],r=[];for(const o of t)switch(o[nr("0x21")]){case nr("0x47"):if(o[nr("0xd")]=o[nr("0xd")][nr("0x2")](/(\S)\u000A+(\S)/g,nr("0x16"))[nr("0x2")](/\u000A/g,""),o.remove=o.remove[nr("0x2")](/(\S)\u000A+(\S)/g,nr("0x16")).replace(/\u000A/g,""),""!=o.add&&""!=o[nr("0xc")]){n.push({type:nr("0x2"),content:Ji(e,nr("0x0"),['"'+o[nr("0xc")]+'"','"'+o[nr("0xd")]+'"'])});continue}if(null!=o.add.match(/^ +$/)){n.push({type:nr("0x17"),content:Ji(e,"*Insert:* %0",Ji(e,"ELEMENT_SPACE",o[nr("0xd")][nr("0x20")]))});continue}if(null!=o[nr("0xc")][nr("0x37")](/^ +$/)){n[nr("0x25")]({type:"deletion",content:Ji(e,nr("0x3c"),Ji(e,"ELEMENT_SPACE",o[nr("0xc")].length))});continue}if(""!=o.add){n[nr("0x25")]({type:nr("0x17"),content:Ji(e,nr("0x2d"),'"'+o[nr("0xd")]+'"')});continue}n[nr("0x25")]({type:nr("0x3b"),content:Ji(e,"*Remove:* %0",'"'+o[nr("0xc")]+'"')});continue;case nr("0x13"):case"addObject":n[nr("0x25")]({type:nr("0x17"),content:Ji(e,nr("0x2d"),this[nr("0x46")](o.element,o[nr("0x28")]))});continue;case"removeEmptyContainer":case nr("0x3d"):n[nr("0x25")]({type:nr("0x3b"),content:Ji(e,nr("0x3c"),this[nr("0x46")](o[nr("0x49")],o[nr("0x28")]))});continue;case nr("0x6"):n[nr("0x25")]({type:nr("0x17"),content:Ji(e,"*Split:* %0",this[nr("0x46")](o.element,o.quantity))});continue;case"removeContainer":n[nr("0x25")]({type:nr("0x3b"),content:Ji(e,nr("0x2c"),this[nr("0x46")](o[nr("0x49")],o[nr("0x28")]))});continue;case nr("0x3a"):i[nr("0x25")](o[nr("0x1f")]);continue;case nr("0xf"):r[nr("0x25")](o[nr("0x1f")]);continue;default:n[nr("0x25")](o)}if(i[nr("0x20")]){const t=i[nr("0x12")]((t=>this[nr("0x1d")][nr("0x3e")](t)?this._attributeLabels[nr("0x9")](t):t))[nr("0x40")](", ");n[nr("0x25")]({type:nr("0x41"),content:Ji(this[nr("0x29")],nr("0x14"),t)})}if(r.length){const t=r.map((t=>this[nr("0x1d")][nr("0x3e")](t)?this[nr("0x1d")][nr("0x9")](t):t))[nr("0x40")](", ");n[nr("0x25")]({type:nr("0x41"),content:Ji(this[nr("0x29")],nr("0x7"),t)})}return n}_handleCustomCallbackDescription(t){for(const e of this[nr("0x22")]){const n=e(t);if(n&&nr("0x21")in n)return n}}_handleAttributeSuggestionDescription(t,e){const n=e.data,i=void 0===n[nr("0x1c")]?nr("0xf"):"addFormat";t[nr("0x25")]({type:i,key:n[nr("0x1f")]})}[nr("0x3f")](t,e){t[nr("0x25")]({type:nr("0x41"),content:Ji(this[nr("0x29")],nr("0x23"),this[nr("0x46")](e[nr("0x43")]()[nr("0x15")][nr("0x26")],1))})}[nr("0x36")](t,e,n){if(this[nr("0x19")](t,e),n&&n[nr("0x43")]()&&!e[nr("0x43")]()[nr("0x8")][nr("0x1a")](n[nr("0x43")]()[nr("0x15")])){const n=t[t[nr("0x20")]-1],i="insertion"==e[nr("0x21")]?nr("0xd"):nr("0xc");n&&"text"==n[nr("0x21")]&&(n[i]+="\n")}}}const rr=["editor","commands","showAIAssistant","get","plugins"];var or,sr;or=rr,sr=307,function(t){for(;--t;)or.push(or.shift())}(++sr);const xr=function(t,e){return rr[t-=0]};class ar extends t.Plugin{afterInit(){const t=this[xr("0x3")],e=t[xr("0x2")][xr("0x1")]("TrackChangesEditing");t[xr("0x4")][xr("0x1")](xr("0x0"))&&e.enableCommand("showAIAssistant")}}const cr=["FORMAT_ALIGN_TO_LEFT","alignment","TrackChangesEditing","FORMAT_JUSTIFY_TEXT","format","type","center","registerDescriptionCallback","*Format:* %0","has","commandName","FORMAT_ALIGN_TO_RIGHT","registerAttributeLabel","FORMAT_ALIGNMENT","locale","_enableDefaultAttributesIntegration","left","justify","plugins","value","get","FORMAT_ALIGN_TO_CENTER","editor","_registerLegacyDescription","afterInit"];var lr,ur;lr=cr,ur=475,function(t){for(;--t;)lr.push(lr.shift())}(++ur);const dr=function(t,e){return cr[t-=0]};class gr extends t.Plugin{[dr("0x18")](){const t=this[dr("0x16")],e=t.locale;if(!t[dr("0x12")][dr("0x9")]("AlignmentEditing"))return;const n=t[dr("0x12")][dr("0x14")](dr("0x2"));n[dr("0xf")](dr("0x1"),[],[dr("0x1")]),n._descriptionFactory[dr("0xc")](dr("0x1"),Ji(e,dr("0xd"))),this._registerLegacyDescription()}[dr("0x17")](){const t=this[dr("0x16")],e=t[dr("0xe")];t[dr("0x12")][dr("0x14")](dr("0x2"))._descriptionFactory[dr("0x7")]((t=>{if("formatBlock"!=t[dr("0x5")])return;const{data:n}=t;if(n&&"alignment"==n[dr("0xa")]){const t=n.commandParams[0][dr("0x13")];return{type:dr("0x4"),content:Ji(e,dr("0x8"),function(t){switch(t){case dr("0x10"):return Ji(e,dr("0x0"));case"right":return Ji(e,dr("0xb"));case dr("0x6"):return Ji(e,dr("0x15"));case dr("0x11"):return Ji(e,dr("0x3"))}}(t))}}}))}}const fr=["editor","superscript","strikethrough","plugins","_descriptionFactory","toLowerCase","FORMAT_BOLD","SuperscriptEditing","FORMAT_SUBSCRIPT","underline","CodeEditing","StrikethroughEditing","FORMAT_STRIKETHROUGH","forceValue","subscript","SubscriptEditing","code","ItalicEditing","locale","slice","*Format:* %0","_registerLegacyDescription","toUpperCase","FORMAT_","registerDescriptionCallback","UnderlineEditing","bold","commandName","_enableDefaultAttributesIntegration","italic","FORMAT_CODE","FORMAT_SUPERSCRIPT","commandParams","TrackChangesEditing","FORMAT_UNDERLINE","type"];var hr,mr;hr=fr,mr=139,function(t){for(;--t;)hr.push(hr.shift())}(++mr);const pr=function(t,e){return fr[t-=0]},br=["BoldEditing",pr("0x16"),pr("0x1e"),pr("0xf"),pr("0x10"),pr("0x14"),pr("0xc")];class Er extends t.Plugin{afterInit(){const t=this.editor,e=t.plugins.get("TrackChangesEditing"),n=t.locale;for(const i of br){if(!t[pr("0x8")].has(i))continue;const r=i[pr("0x18")](0,-7)[pr("0xa")](),o=pr("0x1c")+r[pr("0x1b")]();e[pr("0x21")](r,[r]),e[pr("0x9")].registerAttributeLabel(r,Ji(n,o))}this._registerLegacyDescription()}[pr("0x1a")](){const t=this[pr("0x5")],e=t[pr("0x17")],n=t.plugins.get(pr("0x2"));function i(t,i){n._descriptionFactory[pr("0x1d")]((n=>{if("formatInline"!=n[pr("0x4")])return;const{data:r}=n;return r&&r[pr("0x20")]===t?r[pr("0x1")][0][pr("0x12")]?{type:"format",content:Ji(e,pr("0x19"),i)}:{type:"format",content:Ji(e,"*Remove format:* %0",i)}:void 0}))}i(pr("0x1f"),Ji(e,pr("0xb"))),i(pr("0x22"),Ji(e,"FORMAT_ITALIC")),i(pr("0xe"),Ji(e,pr("0x3"))),i(pr("0x15"),Ji(e,pr("0x23"))),i(pr("0x7"),Ji(e,pr("0x11"))),i(pr("0x13"),Ji(e,pr("0xd"))),i(pr("0x6"),Ji(e,pr("0x0")))}}const _r=["commandName","value","commandParams","locale","afterInit","has","forceValue","*Remove format:* %0","change","format","ELEMENT_BLOCK_QUOTE","from","getSelectedBlocks","blockQuote","checkChild","commands","selection","editor","filter","registerDescriptionCallback","parent","_descriptionFactory","name","model","markBlockFormat","plugins"];var Tr,yr;Tr=_r,yr=476,function(t){for(;--t;)Tr.push(Tr.shift())}(++yr);const Cr=function(t,e){return _r[t-=0]};class Ar extends t.Plugin{[Cr("0x16")](){const t=this[Cr("0x9")],e=t[Cr("0x15")];if(!t.plugins[Cr("0x17")]("BlockQuoteEditing"))return;const n=t[Cr("0x11")].get("TrackChangesEditing"),i=this[Cr("0x9")][Cr("0x7")].get("blockQuote");n.enableCommand(Cr("0x5"),((e,r={})=>{const o=this.editor[Cr("0xf")].document[Cr("0x8")],s=r&&void 0!==r[Cr("0x18")]?r[Cr("0x18")]:!i[Cr("0x13")];let x=[];if(s){const e=Array[Cr("0x3")](o[Cr("0x4")]())[Cr("0xa")]((t=>kr(t)||function(t,e){const n=e[Cr("0x6")](t.parent,Cr("0x5")),i=e[Cr("0x6")](["$root",Cr("0x5")],t);return n&&i}(t,this[Cr("0x9")][Cr("0xf")].schema)));x=v(e,t.model)}else{const e=Array[Cr("0x3")](o[Cr("0x4")]())[Cr("0xa")]((t=>kr(t)));x=v(e,t[Cr("0xf")])}t[Cr("0xf")][Cr("0x0")]((()=>{for(const t of x)n[Cr("0x10")](t,{commandName:Cr("0x5"),commandParams:[{forceValue:s}]})}))})),n[Cr("0xd")][Cr("0xb")]((t=>{const{data:n}=t;if(n&&Cr("0x5")==n[Cr("0x12")]){const t=Ji(e,Cr("0x2"));return n[Cr("0x14")][0][Cr("0x18")]?{type:Cr("0x1"),content:Ji(e,"*Set format:* %0",t)}:{type:Cr("0x1"),content:Ji(e,Cr("0x19"),t)}}}))}}function kr(t){return Cr("0x5")==t[Cr("0xc")][Cr("0xe")]}const Ir=["afterInit","plugins","changeCaseUpper","get","has","TrackChangesEditing","changeCaseLower","editor","enableCommand","changeCaseTitle"];var Rr,vr;Rr=Ir,vr=434,function(t){for(;--t;)Rr.push(Rr.shift())}(++vr);const Sr=function(t,e){return Ir[t-=0]};class Lr extends t.Plugin{[Sr("0x6")](){const t=this[Sr("0x3")];t[Sr("0x7")][Sr("0x0")]("CaseChange")&&(t.plugins[Sr("0x9")](Sr("0x1"))[Sr("0x4")](Sr("0x8")),t[Sr("0x7")][Sr("0x9")](Sr("0x1"))[Sr("0x4")](Sr("0x2")),t[Sr("0x7")][Sr("0x9")](Sr("0x1"))[Sr("0x4")](Sr("0x5")))}}const Nr=["afterInit","TrackChangesEditing","editor","enableCommand","get","commands","ckbox","plugins"];var Mr,wr;Mr=Nr,wr=332,function(t){for(;--t;)Mr.push(Mr.shift())}(++wr);const Or=function(t,e){return Nr[t-=0]};class Fr extends t.Plugin{[Or("0x4")](){const t=this[Or("0x6")];t[Or("0x1")][Or("0x0")](Or("0x2"))&&t[Or("0x3")][Or("0x0")](Or("0x5"))[Or("0x7")](Or("0x2"))}}const Dr=["TrackChangesEditing","enableCommand","commandName","forceValue","format","outdentCodeBlock","*Remove format:* %0","has","language","name","checkChild","markBlockFormat","registerElementLabel","_descriptionFactory","from","schema","*Set format:* %0","change","document","value","registerDescriptionCallback","model","locale","find","ELEMENT_CODE_BLOCK","blockName","plugins","commands","formatBlock","afterInit","rootElement","commandParams","indentCodeBlock","get","codeBlock"];var Br,Pr;Br=Dr,Pr=276,function(t){for(;--t;)Br.push(Br.shift())}(++Pr);const Ur=function(t,e){return Dr[t-=0]};class jr extends t.Plugin{[Ur("0x21")](){const t=this.editor;if(!t[Ur("0x1e")][Ur("0xb")]("CodeBlock"))return;const e=t[Ur("0x1e")][Ur("0x2")](Ur("0x4")),n=t[Ur("0x1a")],i=t.config[Ur("0x2")](Ur("0x3")).languages,r=t[Ur("0x1f")][Ur("0x2")](Ur("0x3"));e[Ur("0x5")](Ur("0x1")),e[Ur("0x5")](Ur("0x9")),e[Ur("0x5")](Ur("0x3"),((n,o={})=>{const s=t[Ur("0x19")],x=t.model[Ur("0x16")].selection,a=o&&void 0!==o[Ur("0x7")]?o[Ur("0x7")]:!r[Ur("0x17")];let c;o[Ur("0xc")]||(o[Ur("0xc")]=i[0].language),c=a?Array[Ur("0x12")](x.getSelectedBlocks()).filter((t=>{return Gr(t)||(e=t,n=s[Ur("0x13")],!e.is(Ur("0x22"))&&!n.isLimit(e)&&n[Ur("0xe")](e.parent,Ur("0x3")));var e,n})):Array[Ur("0x12")](x.getSelectedBlocks()).filter((t=>Gr(t)));const l=v(c,s);s[Ur("0x15")]((()=>{for(const t of l)e[Ur("0xf")](t,{commandName:"codeBlock",commandParams:[{...o,forceValue:a}],formatGroupId:Ur("0x1d")})}))})),e._descriptionFactory[Ur("0x10")]("codeBlock",(t=>Ji(n,"ELEMENT_CODE_BLOCK",t))),e[Ur("0x11")][Ur("0x18")]((t=>{if(Ur("0x20")!=t.type)return;const e=n.t,{data:r}=t;if(!r||Ur("0x3")!=r[Ur("0x6")])return;const o=r[Ur("0x0")][0][Ur("0xc")],s=e(i[Ur("0x1b")]((t=>t.language===o)).label).toLowerCase();return r[Ur("0x0")][0].forceValue?{type:Ur("0x8"),content:Ji(n,Ur("0x14"),Ji(n,Ur("0x1c"),1)+" ("+s+")")}:{type:Ur("0x8"),content:Ji(n,Ur("0xa"),Ji(n,Ur("0x1c"),1))}}))}}function Gr(t){return"codeBlock"==t[Ur("0xd")]}const Vr=["TrackChangesEditing","CommentsEditing","plugins","has","editor"];var Hr,zr;Hr=Vr,zr=441,function(t){for(;--t;)Hr.push(Hr.shift())}(++zr);const Wr=function(t,e){return Vr[t-=0]};class Kr extends t.Plugin{afterInit(){const t=this[Wr("0x3")];t[Wr("0x1")][Wr("0x2")](Wr("0x0"))&&t[Wr("0x1")].get(Wr("0x4")).enableCommand("addCommentThread")}}var qr=n(181);const $r=["mapper","start","createUIElement","getAttribute","bindElementToMarker","previousPosition","getCustomProperty","activeMarkers","isContent","schema","parent","span","markerName","isLimit","ck-suggestion-marker-","TrackChangesEditing","test","push","addHighlight","isAtEnd","hasAttribute","writer","element","name","model","nextSibling","toViewElement","isBlock","markerRange","item","addClass","type","getItems","toViewPosition"];var Xr,Zr;Xr=$r,Zr=152,function(t){for(;--t;)Xr.push(Xr.shift())}(++Zr);const Yr=function(t,e){return $r[t-=0]};function Jr(t,e,n){const i=[];for(const r of e[Yr("0x10")]())r[Yr("0x4")](t)&&i[Yr("0x1")](n.createRangeOn(r));return i}function Qr(t,e,{showActiveMarker:n=!0}={}){const i=t.plugins.get(Yr("0x21"));return(r,o,s)=>{if(!s.consumable[Yr("0x0")](o[Yr("0xc")],r[Yr("0x7")]))return;const x=o[Yr("0xc")].getWalker(),a=o[Yr("0xc")][Yr("0x13")],c=t[Yr("0x8")][Yr("0x1b")];let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[Yr("0xd")];d=d||c[Yr("0x1a")](e);const n=s.mapper[Yr("0xa")](e);if(n&&n[Yr("0x18")](Yr("0x2")))return;"elementEnd"==t[Yr("0xf")]&&c[Yr("0xb")](e)&&!c[Yr("0x1f")](e)&&(e[Yr("0x9")]||a[Yr("0x3")]?l&&l[Yr("0x1c")]==e||(l=e,f(t[Yr("0x17")]),g=!0):u=u||t.previousPosition)}function f(t){const r=s[Yr("0x5")][Yr("0x14")](Yr("0x1d"),{class:Yr("0x20")+e}),x=s[Yr("0x12")][Yr("0x11")](t);n&&i[Yr("0x19")].includes(o.markerName)&&s[Yr("0x5")][Yr("0xe")]("ck-suggestion-marker--active",r),s[Yr("0x5")].insert(x,r),s[Yr("0x12")][Yr("0x16")](r,o[Yr("0x1e")])}d||g||!u||f(u)}}const to=["unit","forward","get","unlock","model","high","bind","batch","options","markerName","delete","fromRange","isCollapsed","enableCommand","getFirstRange","$graveyard","root","rootName","detach","markerNameToElements","TrackChangesEditing","data","removeMarker:suggestion:deletion","showSuggestionHighlights","start","createRange","uiElement","addMarker:suggestion:deletion","remove","end","editing","requires","merge","downcastDispatcher","unbindElementFromMarkerName","selection","buffer","commands","mapper","setSelection","writer"];var eo,no;eo=to,no=378,function(t){for(;--t;)eo.push(eo.shift())}(++no);const io=function(t,e){return to[t-=0]};class ro extends t.Plugin{static get[io("0x16")](){return[qr.Delete]}init(){const t=this.editor,e=t.plugins.get(io("0xb"));e.enableCommand(io("0x1"));const n=t[io("0x1c")][io("0x22")]("deleteForward");e[io("0x4")]("deleteForward",((e,i={})=>{const r=t[io("0x24")].createSelection(t[io("0x24")].document[io("0x1a")]);r[io("0x3")]&&t.model.modifySelection(r,{direction:io("0x21"),unit:i[io("0x20")]});const o=r[io("0x5")](),x=s.LiveRange[io("0x2")](o);let a;e(i),a=io("0x6")==x[io("0x7")][io("0x8")]?t[io("0x24")].createRange(o[io("0xf")]):t[io("0x24")][io("0x10")](x[io("0xf")],x[io("0x14")]),x[io("0x9")](),t[io("0x24")].enqueueChange(n[io("0x1b")][io("0x27")],(t=>{n[io("0x1b")].lock(),t[io("0x1e")](t[io("0x10")](a.end)),n[io("0x1b")][io("0x23")]()}))})),t[io("0x15")][io("0x18")].on("addMarker:suggestion:deletion",Qr(t,io("0x17")),{priority:"high"}),t[io("0xc")].downcastDispatcher.on(io("0x12"),((e,n,i)=>{i[io("0x28")][io("0xe")]&&Qr(t,io("0x17"),{showActiveMarker:!1})[io("0x26")](this)(e,n,i)}),{priority:"high"}),t.editing.downcastDispatcher.on(io("0xd"),((t,e,n)=>{const i=n.mapper[io("0xa")](e.markerName);if(i)for(const t of i)t.is(io("0x11"))&&(n[io("0x1d")][io("0x19")](t,e[io("0x0")]),n[io("0x1f")][io("0x13")](t))}),{priority:io("0x25")})}}const oo=["format","head","ELEMENT_TODO_LIST","find","splitListItemAfter","listItemIdFixer","execute","getFirstMarker","_getAttributeKey","differ","locale","*Format:* remove from %0","getSuggestions","getFirstRange","get","refresh","_findSuggestions","*Uncheck item*","outdentList","TodoListEditing","parent","isNextTo","getAttribute","*Format:* insert into %0","registerAttributeLabel","*Outdent:* %0","has","todoList","ELEMENT_LIST_ITEM","nodeAfter","mergeListItemBackward","filter","_suggestionFactory","listReversed","*Set format:* %0","createPositionAt","listStyle","forceValue","plugins","next","suggestion","assureChains","fromRange","listIndent","_supportLegacySuggestions","detach","meta","commands","numberedList","isLocal","ELEMENT_NUMBERED_LIST","commandName","nextSibling","todoListCheck","*Merge:* %0","afterInit","formatBlock","multipleBlocks","listItemId","from","setAttribute","createRange","indentList","_descriptionFactory","map","isUndo","includes","key","length","getChanges","removeMarker","list.multiBlock","checkTodoList","ListEditing","mergeListItemForward","containsItem","*Remove format:* %0","config","data","attributes","splitListItemBefore","bulleted","editor","end","getRanges","registerCustomCallback","groupId","*Indent:* %0","default","numbered","listStart","listType","accept","registerDescriptionCallback","isObject","deletion","model","change","*Check item*","TrackChangesEditing","bulletedList","batch","_enableDefaultAttributesIntegration","commandParams","trackChangesCommand","start","documentList","*Change to:* %0","FORMAT_INDENT","todo","previousSibling","document","value","setSelection","selection","oldValue","*Split:* list item","newValue","attribute","registerPostFixer","_LIST","type","todoListChecked","_registerLegacyDescription","ELEMENT_BULLETED_LIST"];var so,xo;so=oo,xo=363,function(t){for(;--t;)so.push(so.shift())}(++xo);const ao=function(t,e){return oo[t-=0]};class co extends t.Plugin{[ao("0x43")](){const t=this.editor;if(!t[ao("0x32")][ao("0x26")](ao("0x55")))return;const e=t.locale,n=t.plugins[ao("0x1a")](ao("0x6f")),i=t[ao("0x32")].has(ao("0x1f")),r=!!t[ao("0x59")][ao("0x1a")](ao("0x53"));function o(t){return{type:ao("0xc"),content:""+Ji(e,ao("0x2e"),t)}}function s(t){return{type:ao("0xc"),content:""+Ji(e,ao("0x58"),t)}}n._enableDefaultAttributesIntegration(ao("0x3c"),[],[ao("0x46"),ao("0x67"),ao("0x37")]),n[ao("0x72")](ao("0x70")),n[ao("0x72")]("indentList"),n[ao("0x72")](ao("0x1e")),n[ao("0x72")](ao("0x10")),n[ao("0x72")](ao("0x5c")),r&&(n[ao("0x72")]("mergeListItemBackward"),n[ao("0x72")](ao("0x56"))),i&&(n[ao("0x72")](ao("0x27")),n._enableDefaultAttributesIntegration(ao("0x54"),[],[ao("0x9")]),n[ao("0x4b")][ao("0x69")]((t=>{const{data:n}=t;if(n&&"todoListChecked"==n[ao("0x4f")])return{type:ao("0xc"),content:n.newValue?Ji(e,ao("0x6e")):Ji(e,ao("0x1d"))}})),this[ao("0x5e")][ao("0x6c")][ao("0x7b")].registerPostFixer((t=>{if(t[ao("0x71")][ao("0x4d")])return!1;let e=!1;const i=n[ao("0x18")]({skipNotAttached:!0}).filter((t=>ao("0x9")===n[ao("0x14")](t)));for(const r of i)ao("0x79")!=r[ao("0x19")]().start[ao("0x29")][ao("0x22")]("listType")&&(n[ao("0x1c")](r[ao("0x19")](),ao("0x5"))[ao("0xf")]((t=>"listType"===n[ao("0x14")](t[ao("0x34")])))||(t[ao("0x52")](r[ao("0x13")]()),e=!0));return e}))),n[ao("0x4b")][ao("0x24")]("listIndent",Ji(e,ao("0x78")));const x={type:ao("0xc"),content:""};n[ao("0x4b")][ao("0x69")]((t=>{const{data:n}=t;if(!n||ao("0x67")!=n[ao("0x4f")])return;let i=t.head;for(;i;){if(i.data&&(ao("0x30")==i[ao("0x5a")].key&&(i[ao("0x5a")][ao("0x4")]&&ao("0x64")!=i.data.newValue||"default"!=i.data.oldValue&&!n[ao("0x4")])||!r&&i[ao("0x5a")][ao("0x4f")]==Cc))return x;i=i.next}if(null==n[ao("0x4")])switch(n[ao("0x2")]){case ao("0x5d"):return s(Ji(e,ao("0xb")));case ao("0x65"):return s(Ji(e,ao("0x3e")));case"todo":return s(Ji(e,"ELEMENT_TODO_LIST"))}switch(n[ao("0x4")]){case ao("0x5d"):return o(Ji(e,"ELEMENT_BULLETED_LIST"));case ao("0x65"):return o(Ji(e,"ELEMENT_NUMBERED_LIST"));case"todo":return o(Ji(e,ao("0xe")))}})),n[ao("0x4b")][ao("0x69")]((t=>{const{data:e}=t;if(e&&ao("0x37")==e.key)return null==e[ao("0x4")]||null==e[ao("0x2")]&&0==e[ao("0x4")]?x:void 0})),n._descriptionFactory[ao("0x69")]((t=>{if(ao("0x5")!=t[ao("0x8")])return;const{data:n}=t;if(!n||ao("0x46")!=n.key)return;const i=lo(t);return i?"newValue"==i?{type:"format",content:Ji(e,"*Merge:* list item")}:"oldValue"==i?{type:ao("0xc"),content:Ji(e,ao("0x3"))}:x:x})),t[ao("0x6c")][ao("0x7b")][ao("0x6")]((t=>this[ao("0x11")](t))),t[ao("0x6c")][ao("0x7b")].registerPostFixer((t=>this.noTrackChangesFixer(t))),t[ao("0x6c")][ao("0x7b")][ao("0x6")]((t=>this[ao("0x35")](t))),this[ao("0x38")]()}[ao("0x11")](t){if(t.batch.isUndo||!t.batch.isLocal)return!1;let e=!1;const n=this[ao("0x5e")].plugins[ao("0x1a")](ao("0x6f")).getSuggestions({skipNotAttached:!0})[ao("0x2b")]((t=>t[ao("0x5a")]&&ao("0x46")==t.data[ao("0x4f")]))[ao("0x2b")]((t=>t.data[ao("0x4")]&&t.data[ao("0x2")]));for(const i of n)lo(i)||(t.removeMarker(i[ao("0x13")]()),e=!0);return e}noTrackChangesFixer(t){if(t[ao("0x71")].isUndo||!t[ao("0x71")].isLocal)return!1;const e=this[ao("0x5e")].plugins.get(ao("0x6f"));if(e[ao("0x74")][ao("0x7c")])return!1;let n=!1;const i=[ao("0x67"),"listStyle",ao("0x46"),ao("0x37"),ao("0x66"),"listReversed",ao("0x41")],r=this[ao("0x5e")][ao("0x6c")][ao("0x7b")][ao("0x15")][ao("0x51")]()[ao("0x2b")]((t=>"attribute"==t[ao("0x8")]))[ao("0x2b")]((t=>i[ao("0x4e")](t.attributeKey)));if(0==r[ao("0x50")])return n;for(const o of r){const r=e._findSuggestions(o.range,ao("0x5"))[ao("0x2b")]((t=>!t[ao("0x3a")][ao("0x21")]))[ao("0x4c")]((t=>t[ao("0x34")]))[ao("0x2b")]((t=>{const n=e[ao("0x14")](t);return i[ao("0x4e")](n)}));if(r[ao("0x50")]){for(const e of r)t[ao("0x52")](e[ao("0x13")]());n=!0}}return n}[ao("0x35")](t){if(t[ao("0x71")][ao("0x4d")]||!t[ao("0x71")][ao("0x3d")])return!1;const e=this[ao("0x5e")][ao("0x32")][ao("0x1a")](ao("0x6f"));let n=!1;const i=[ao("0x67"),ao("0x30"),ao("0x46"),ao("0x37"),"listStart",ao("0x2d"),ao("0x41")];for(const t of e[ao("0x18")]({skipNotAttached:!0})){const r=e[ao("0x1c")](t[ao("0x19")](),ao("0x5"))[ao("0x4c")]((t=>t.suggestion))[ao("0x2b")]((t=>t[ao("0x5a")]&&i[ao("0x4e")](t.data[ao("0x4f")])));if(!r[ao("0x50")])continue;const s=r[0][ao("0xd")][ao("0x5b")].groupId;if(!r.every((t=>t[ao("0x5b")][ao("0x62")]===s)))for(const t of r)o(t,s)&&(n=!0)}return n;function r(t,n){for(const i of e.getSuggestions({skipNotAttached:!0})[ao("0x2b")]((e=>ao("0x5")==e[ao("0x8")]&&e[ao("0x5b")][ao("0x62")]==t)))i[ao("0x48")](ao("0x62"),n)}function o(t,e){let n=t[ao("0xd")],i=!1;for(;n;)n[ao("0x5b")].groupId!=e&&(r(n[ao("0x5b")][ao("0x62")],e),n[ao("0x48")](ao("0x62"),e),i=!0),n=n[ao("0x33")];return i}}[ao("0x38")](){const t=this[ao("0x5e")],e=t[ao("0x16")],n=t[ao("0x32")][ao("0x1a")](ao("0x6f"));this[ao("0xa")](),n[ao("0x2c")][ao("0x61")](ao("0x44"),ao("0x76"),ao("0x68"),(function(e,n){const i=[];for(let n of e)n[ao("0x75")][ao("0x29")]===n[ao("0x5f")][ao("0x20")]&&(n=t[ao("0x6c")][ao("0x49")](t.model[ao("0x2f")](n[ao("0x75")].nodeAfter,0))),i.push(n);t[ao("0x6c")][ao("0x6d")]((e=>{const r=t[ao("0x6c")][ao("0x7b")][ao("0x1")],o=Array[ao("0x47")](r[ao("0x60")]())[ao("0x4c")]((t=>s.LiveRange[ao("0x36")](t)));e.setSelection(i),t[ao("0x3b")][ao("0x1a")](n[ao("0x3f")])[ao("0x1b")](),n[ao("0x73")].push({forceDefaultExecution:!0}),t[ao("0x12")](n[ao("0x3f")],...n[ao("0x73")]),e[ao("0x0")](o);for(const t of o)t[ao("0x39")]()}))})),n[ao("0x4b")].registerElementLabel((function(e){const n=!t.model.schema[ao("0x6a")](e),i=e[ao("0x7a")],r=e[ao("0x40")],o=e[ao("0x22")]("listItemId"),s=!i||i[ao("0x22")]("listItemId")!==o,x=!r||r[ao("0x22")](ao("0x46"))!==o;return n&&Boolean(o)&&s&&x}),(t=>Ji(e,ao("0x28"),t)))}[ao("0xa")](){const t=this[ao("0x5e")],e=t[ao("0x16")];function n(e){const n=t[ao("0x3b")].get(ao("0x70"))[ao("0x7c")],i=t[ao("0x3b")][ao("0x1a")](ao("0x3c"))[ao("0x7c")];return ao("0x3c")===e?n:i}t[ao("0x32")][ao("0x1a")](ao("0x6f"))[ao("0x4b")][ao("0x69")]((function(i){if("formatBlock"!=i[ao("0x8")])return;const{data:r}=i;if(!r)return;let o,s,x,a;switch(r[ao("0x3f")]){case"bulletedList":x=r[ao("0x73")][0][ao("0x31")],a=n(r[ao("0x3f")]),o=x?ao("0x23"):"*Format:* remove from %0",!a&&t[ao("0x59")].get(ao("0x53"))||(o=ao("0x77")),s={type:"format",content:Ji(e,o,Ji(e,ao("0xb")))};break;case ao("0x3c"):x=r.commandParams[0][ao("0x31")],a=n(r[ao("0x3f")]),o=x?ao("0x23"):"*Format:* remove from %0",!a&&t[ao("0x59")][ao("0x1a")]("list.multiBlock")||(o=ao("0x77")),s={type:ao("0xc"),content:Ji(e,o,Ji(e,ao("0x3e")))};break;case ao("0x4a"):o=ao("0x63"),s={type:ao("0xc"),content:Ji(e,o,Ji(e,ao("0x28")))};break;case ao("0x1e"):o=function(t){const e=t.getFirstRange();let n=e[ao("0x75")][ao("0x29")];for(;n&&e[ao("0x57")](n);){if(n[ao("0x22")](ao("0x37"))>0)return!1;n=n[ao("0x40")]}return!0}(i)?Ji(e,ao("0x17"),Ji(e,"ELEMENT_"+i[ao("0x19")]().start[ao("0x29")].getAttribute(ao("0x67")).toUpperCase()+ao("0x7"))):Ji(e,ao("0x25"),Ji(e,ao("0x28"))),s={type:ao("0xc"),content:o};break;case ao("0x2a"):case"mergeListItemForward":!1===r[ao("0x45")]&&(o=ao("0x42"),s={type:ao("0x6b"),content:Ji(e,o,Ji(e,ao("0x28")))})}return s}))}}function lo(t){let e=t[ao("0x19")]()[ao("0x75")][ao("0x29")][ao("0x7a")];for(;e;){const n=e[ao("0x22")](ao("0x46"));if(!n)return!1;if(n==t[ao("0x5a")].newValue)return ao("0x4");if(n==t[ao("0x5a")][ao("0x2")])return ao("0x2");e=e[ao("0x7a")]}return!1}const uo=["_registerLegacyDescription","square","filter","listStyle","*Format:* set order to regular","getSuggestions","listReversed","*Format:* set order to reversed","FORMAT_LIST_START","TrackChangesEditing","commandParams","suggestion","list.properties","styles","includes","_getTranslationKeyForListStyle","_LIST_","isUndo","registerPostFixer","registerAttributeLabel","getAttribute","oldValue","has","circle","decimal","next","listStart","batch","newValue","lower-latin","key","registerDescriptionCallback","handleDescriptions","data","removeMarker","ELEMENT_","getFirstMarker","model","_findSuggestions","_LIST_DEFAULT","default","type","*Remove format:* %0","upper-latin","formatBlock","disc","nodeAfter","_enableDefaultAttributesIntegration","getFirstRange","format","document","startIndex","reversed","_getAttributeKey","upper-roman","FORMAT_LIST_REVERSED","get","start","_descriptionFactory","toUpperCase","*Set format:* %0","numbered","listType","editor","plugins","decimal-leading-zero","locale","head"];var go,fo;go=uo,fo=341,function(t){for(;--t;)go.push(go.shift())}(++fo);const ho=function(t,e){return uo[t-=0]};class mo extends t.Plugin{afterInit(){if(!this[ho("0x3e")][ho("0x3f")][ho("0x15")]("ListPropertiesEditing"))return;const t=this.editor.config.get(ho("0xb")),e=this[ho("0x3e")][ho("0x3f")].get(ho("0x8"));t[ho("0xc")]&&e[ho("0x2e")](ho("0x2"),[],[ho("0x2")]),t.reversed&&e[ho("0x2e")](ho("0x5"),[],[ho("0x5")]),t[ho("0x32")]&&e._enableDefaultAttributesIntegration(ho("0x19"),[],[ho("0x19")]);const n={type:ho("0x30"),content:""};e[ho("0x39")][ho("0x1e")](this.handleDescriptions.bind(this));const i=this[ho("0x3e")][ho("0x41")];e[ho("0x39")][ho("0x12")](ho("0x5"),Ji(i,ho("0x36"))),e[ho("0x39")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&"listReversed"==e[ho("0x1d")])return null==e[ho("0x1b")]||0==e[ho("0x1b")]&&null==e[ho("0x14")]?n:void 0})),e[ho("0x39")].registerAttributeLabel(ho("0x19"),Ji(i,ho("0x7"))),e._descriptionFactory.registerDescriptionCallback((t=>{const{data:e}=t;if(e&&ho("0x19")==e[ho("0x1d")])return null==e[ho("0x1b")]||1==e[ho("0x1b")]&&null==e[ho("0x14")]?n:void 0})),this[ho("0x3e")][ho("0x24")][ho("0x31")][ho("0x11")]((t=>{if(t[ho("0x1a")][ho("0x10")])return!1;let n=!1;const i=e[ho("0x4")]({skipNotAttached:!0})[ho("0x1")]((t=>{const n=e._getAttributeKey(t);return ho("0x19")==n||ho("0x5")==n}));for(const r of i)ho("0x3c")!=r[ho("0x2f")]()[ho("0x38")][ho("0x2d")][ho("0x13")](ho("0x3d"))&&(e[ho("0x25")](r.getFirstRange(),"attribute").find((t=>ho("0x3d")==e[ho("0x34")](t[ho("0xa")])))||(t[ho("0x21")](r[ho("0x23")]()),n=!0));return n})),this[ho("0x43")]()}[ho("0x1f")](t){const e=this[ho("0x3e")].locale,{data:n}=t,i={type:ho("0x30"),content:""};if(!n||"listStyle"!=n[ho("0x1d")])return;if(!n[ho("0x14")])return ho("0x27")==n[ho("0x1b")]?i:{type:"format",content:""+Ji(e,ho("0x3b"),Ji(e,this[ho("0xe")](n[ho("0x1b")])))};if(!n[ho("0x1b")]){if("default"==n[ho("0x14")])return i;let r=t[ho("0x42")];for(;r;){if(r[ho("0x20")]&&ho("0x3d")==r[ho("0x20")][ho("0x1d")]&&r.data.newValue)return i;r=r[ho("0x18")]}return{type:"format",content:""+Ji(e,ho("0x29"),Ji(e,this[ho("0xe")](n[ho("0x14")])))}}if(ho("0x27")!=n[ho("0x1b")])return{type:"format",content:""+Ji(e,ho("0x3b"),Ji(e,this[ho("0xe")](n[ho("0x1b")])))};let r=t[ho("0x42")];for(;r;){if(r[ho("0x20")]&&"listType"==r[ho("0x20")][ho("0x1d")]&&r[ho("0x20")][ho("0x1b")]&&r[ho("0x20")].oldValue)return i;r=r[ho("0x18")]}const o=t.getFirstRange()[ho("0x38")][ho("0x2d")].getAttribute(ho("0x3d"));return{type:ho("0x30"),content:Ji(e,ho("0x3b"),Ji(e,ho("0x22")+o[ho("0x3a")]()+ho("0x26")))}}_registerLegacyDescription(){const t=this.editor,e=t[ho("0x41")];t.plugins[ho("0x37")](ho("0x8"))[ho("0x39")][ho("0x1e")]((t=>{if(ho("0x2b")!=t.type)return;const{data:n}=t;if(!n)return;let i,r;switch(n.commandName){case ho("0x2"):i="*Change to:* %0",r={type:ho("0x30"),content:Ji(e,i,Ji(e,this[ho("0xe")](n[ho("0x9")][0][ho("0x28")])))};break;case ho("0x5"):i=n[ho("0x9")][0][ho("0x33")]?ho("0x6"):ho("0x3"),r={type:ho("0x30"),content:Ji(e,i)};break;case ho("0x19"):i="*Format:* set start index to %0",r={type:ho("0x30"),content:Ji(e,i,n[ho("0x9")][0][ho("0x32")])}}return r}))}_getTranslationKeyForListStyle(t){return ho("0x22")+(e=t,po.includes(e)?"bulleted":bo[ho("0xd")](e)?ho("0x3c"):null)[ho("0x3a")]()+ho("0xf")+t[ho("0x3a")]().replace(/-/g,"_");var e}}const po=[ho("0x2c"),ho("0x16"),ho("0x0")],bo=[ho("0x17"),ho("0x40"),"lower-roman",ho("0x35"),ho("0x1c"),ho("0x2a")];var Eo=n(331);const _o=["createPositionAt","high","get","mapper","parent","addMarker:suggestion:insertion","model","end","markerNameToElements","writer","hasClass","change","nextSibling","TrackChangesEditing","downcastDispatcher","markerName","selection","data","markInsertion","getFirstRange","showSuggestionHighlights","fromRange","enableCommand","afterExecute","enter","plugins","createRange","bind","ck-suggestion-marker-split","options","document","init","commands","split","remove","removeMarker:suggestion:insertion"];var To,yo;To=_o,yo=352,function(t){for(;--t;)To.push(To.shift())}(++yo);const Co=function(t,e){return _o[t-=0]};class Ao extends t.Plugin{static get requires(){return[Eo.Enter]}[Co("0x3")](){const t=this.editor,e=t[Co("0x21")][Co("0xa")](Co("0x15")),n=t[Co("0x4")][Co("0xa")](Co("0x20"));e[Co("0x1e")](Co("0x20"),(()=>{t.model[Co("0x13")]((i=>{const r=t[Co("0xe")][Co("0x2")][Co("0x18")],o=r.getFirstPosition(),x=s.LiveRange[Co("0x1d")](r[Co("0x1b")]());if(n.enterBlock(i)){const n=t[Co("0xe")][Co("0x8")](o[Co("0xc")][Co("0x14")],0),r=i[Co("0x22")](o,n);e[Co("0x1a")](r)}else i.setSelection(i.createRange(x[Co("0xf")]));x.detach(),n.fire(Co("0x1f"),{writer:i})}))})),t.editing.downcastDispatcher.on("addMarker:suggestion:insertion",Qr(t,Co("0x5")),{priority:Co("0x9")}),t.editing[Co("0x16")].on(Co("0x7"),((t,e,n)=>{const i=n[Co("0xb")][Co("0x10")](e[Co("0x17")]);if(i)for(const t of i)t[Co("0x12")](Co("0x0"))&&(n[Co("0xb")].unbindElementFromMarkerName(t,e.markerName),n[Co("0x11")][Co("0x6")](t))}),{priority:Co("0x9")}),t[Co("0x19")][Co("0x16")].on(Co("0xd"),((e,n,i)=>{i[Co("0x1")][Co("0x1c")]&&Qr(t,Co("0x5"),{showActiveMarker:!1})[Co("0x23")](this)(e,n,i)}),{priority:Co("0x9")})}}const ko=["findNext","handleFindCommand","createRange","editor","getRange","createPositionAt","markers","filter","plugins","_isInDeletionRange","suggestion:deletion","start","find","TrackChangesEditing","bind","get","findPrevious","getIntersection","afterInit","model","findByTextCallback","replaceAll","has","end","getMarkersGroup","item","enableCommand"];var Io,Ro;Io=ko,Ro=461,function(t){for(;--t;)Io.push(Io.shift())}(++Ro);const vo=function(t,e){return ko[t-=0]};class So extends t.Plugin{[vo("0x10")](){if(!this[vo("0x1")][vo("0x6")][vo("0x14")]("FindAndReplaceEditing"))return;const t=this.editor.plugins[vo("0xd")](vo("0xb"));t[vo("0x18")](vo("0xa"),this[vo("0x1a")][vo("0xc")](this)),t[vo("0x18")](vo("0x19")),t[vo("0x18")](vo("0xe")),t[vo("0x18")]("replace"),t[vo("0x18")](vo("0x13"))}handleFindCommand(t,e,n={}){const i=this.editor[vo("0x6")].get("FindAndReplaceUtils");return t((t=>("string"==typeof e?i[vo("0x12")](e,n):e)(t)[vo("0x5")]((e=>!1===this[vo("0x7")](e,t[vo("0x17")])))),n)}[vo("0x7")](t,e){const n=this[vo("0x1")][vo("0x11")][vo("0x0")](this[vo("0x1")][vo("0x11")][vo("0x3")](e,t[vo("0x9")]),this[vo("0x1")][vo("0x11")][vo("0x3")](e,t[vo("0x15")]));for(const t of this.editor[vo("0x11")][vo("0x4")][vo("0x16")](vo("0x8")))if(null!==n[vo("0xf")](t[vo("0x2")]()))return!0;return!1}}const Lo=["fontSize","trim","registerDescriptionCallback","commandName","title","model","formatInline","commandParams","FORMAT_FONT_FAMILY","fontSize.options","label","*Reset font size*","type","config","find","_registerLegacyDescription","value","plugins","FontBackgroundColorEditing","_descriptionFactory","fontBackgroundColor","editor","_enableDefaultAttributesIntegration","get","FORMAT_FONT_SIZE","*Set font family:* %0","format","*Set font background color:* %0","FontFamilyEditing","afterInit","fontBackgroundColor.colors","toLowerCase","*Reset font family*","fontColor","locale","TrackChangesEditing","fontFamily","registerAttributeLabel","*Reset font background color*"];var No,Mo;No=Lo,Mo=441,function(t){for(;--t;)No.push(No.shift())}(++Mo);const wo=function(t,e){return Lo[t-=0]},Oo=[{pluginName:"FontSizeEditing",commandName:wo("0x1b")},{pluginName:wo("0x10"),commandName:wo("0x18")},{pluginName:"FontColorEditing",commandName:wo("0x15")},{pluginName:wo("0x6"),commandName:wo("0x8")}];class Fo extends t.Plugin{[wo("0x11")](){const t=this.editor[wo("0x16")],e=this[wo("0x9")][wo("0x5")][wo("0xb")](wo("0x17"));for(const{pluginName:t,commandName:n}of Oo)this[wo("0x9")][wo("0x5")].has(t)&&e[wo("0xa")](n,[n]);t.t,e._descriptionFactory[wo("0x19")](wo("0x1b"),Ji(t,wo("0xc"))),e[wo("0x7")][wo("0x19")](wo("0x18"),Ji(t,wo("0x23"))),e[wo("0x7")].registerAttributeLabel(wo("0x15"),Ji(t,"FORMAT_FONT_COLOR")),e[wo("0x7")].registerAttributeLabel(wo("0x8"),Ji(t,"FORMAT_FONT_BACKGROUND")),this[wo("0x3")]()}_registerLegacyDescription(){const t=this[wo("0x9")],e=t[wo("0x16")];t[wo("0x5")].get(wo("0x17"))._descriptionFactory[wo("0x1d")]((t=>{const n=e.t;if(wo("0x21")!=t[wo("0x0")])return;const{data:i}=t;if(null!=i){if(wo("0x1b")==i.commandName){const t=i.commandParams[0].value;if(t){const i=n(this[wo("0x9")][wo("0x5")][wo("0xb")]("FontSize").normalizeSizeOptions(this[wo("0x9")][wo("0x1")][wo("0xb")](wo("0x24")))[wo("0x2")]((e=>e[wo("0x20")]==t))[wo("0x1f")])[wo("0x13")]();return{type:wo("0xe"),content:Ji(e,"*Set font size:* %0",i)}}return{type:wo("0xe"),content:Ji(e,wo("0x26"))}}if(wo("0x18")==i[wo("0x1e")]){const t=i[wo("0x22")][0][wo("0x4")];return t?{type:wo("0xe"),content:Ji(e,wo("0xd"),t)}:{type:wo("0xe"),content:Ji(e,wo("0x14"))}}if(wo("0x15")==i.commandName){const t=i[wo("0x22")][0][wo("0x4")];if(t){const i=(0,r.normalizeColorOptions)(this[wo("0x9")][wo("0x1")][wo("0xb")]("fontColor.colors"))[wo("0x2")]((e=>e.model==t));let o=t,s="";return i&&(o=i[wo("0x25")],s=n(o)[wo("0x13")]()),{type:wo("0xe"),content:Ji(e,"*Set font color:* %0",s)[wo("0x1c")](),color:{value:t,title:s||o}}}return{type:wo("0xe"),content:Ji(e,"*Reset font color*")}}if(wo("0x8")==i[wo("0x1e")]){const t=i.commandParams[0][wo("0x4")];if(t){const i=(0,r.normalizeColorOptions)(this.editor[wo("0x1")][wo("0xb")](wo("0x12")))[wo("0x2")]((e=>e[wo("0x20")]==t));let o=t,s="";return i&&(o=i.label,s=n(o)[wo("0x13")]()),{type:"format",content:Ji(e,wo("0xf"),s)[wo("0x1c")](),color:{value:t,title:s||o}}}return{type:wo("0xe"),content:Ji(e,wo("0x1a"))}}}}))}}const Do=["formatBlock","commandName","fontColor.colors","toUpperCase","fontSize","join","toLowerCase","split","plugins","fontColor","length","find","config","_registerLegacyDescription","editor","format","_enableDefaultAttributesIntegration","pasteFormat","entries","FontSize","locale","boolean","get","_descriptionFactory","fontBackgroundColor","type","commands","model","copyFormat","title","push","registerDescriptionCallback"];var Bo,Po;Bo=Do,Po=184,function(t){for(;--t;)Bo.push(Bo.shift())}(++Po);const Uo=function(t,e){return Do[t-=0]};class jo extends t.Plugin{afterInit(){const t=this[Uo("0x16")],e=t.plugins.get("TrackChangesEditing"),n=t[Uo("0x2")][Uo("0x1e")]("copyFormat"),i=t[Uo("0x2")][Uo("0x1e")](Uo("0x19"));n&&i&&(e[Uo("0x18")](Uo("0x19")),e.enableCommand(Uo("0x4")),this[Uo("0x15")]())}_registerLegacyDescription(){const t=this[Uo("0x16")],e=t[Uo("0x1c")];t.plugins[Uo("0x1e")]("TrackChangesEditing")[Uo("0x1f")][Uo("0x7")]((n=>{if(Uo("0x8")!=n[Uo("0x1")]&&"formatInline"!=n[Uo("0x1")])return;const{data:i}=n;if(i&&Uo("0x19")===i[Uo("0x9")]){const n=[],r=i.commandParams[0];for(const[e,i]of Object[Uo("0x1a")](r))n[Uo("0x6")](Go(t,e,i));return n[Uo("0x12")]?{type:Uo("0x17"),content:Ji(e,"*Set format to:* %0",n[Uo("0xd")](", "))}:{type:Uo("0x17"),content:Ji(e,"*Remove all formatting*")}}}))}}function Go(t,e,n){const i=t[Uo("0x1c")].t,o=e[Uo("0xf")](/(?=[A-Z])/).join(" "),s=i(o.charAt(0)[Uo("0xb")]()+o.slice(1))[Uo("0xe")]();if(Uo("0x1d")==typeof n)return s;if(Uo("0x11")===e||Uo("0x0")===e){const e=(0,r.normalizeColorOptions)(t[Uo("0x14")][Uo("0x1e")](Uo("0xa")))[Uo("0x13")]((t=>t[Uo("0x3")]==n));return s+" ("+(e?i(e.label).toLowerCase():n)+")"}if(Uo("0xc")===e&&isNaN(parseFloat(n))){const e=t[Uo("0x10")][Uo("0x1e")](Uo("0x1b")).normalizeSizeOptions(t[Uo("0x14")].get("fontSize.options"))[Uo("0x13")]((t=>t[Uo("0x3")]==n));return s+" ("+(e?i(e[Uo("0x5")])[Uo("0xe")]():n)+")"}return s+" ("+n+")"}const Vo=["get","config","*Change to:* %0","commandParams","has","format","plugins","formatBlock","ELEMENT_HEADING","editor","ELEMENT_HEADING_CUSTOM","_getHeadingLevel","type","match","name","_registerLegacyDescription","_headingOptions","locale","registerDescriptionCallback","value","TrackChangesEditing","_descriptionFactory","title","HeadingEditing","model","view","commandName","find","registerElementLabel","heading","_enableDefaultAttributesIntegration"];var Ho,zo;Ho=Vo,zo=126,function(t){for(;--t;)Ho.push(Ho.shift())}(++zo);const Wo=function(t,e){return Vo[t-=0]};class Ko extends t.Plugin{afterInit(){const t=this.editor;if(!t[Wo("0x4")][Wo("0x2")](Wo("0x15")))return;this[Wo("0xe")]=t[Wo("0x1e")][Wo("0x1d")]("heading.options");const e=t[Wo("0xf")],n=t.plugins[Wo("0x1d")]("TrackChangesEditing");n[Wo("0x1c")](Wo("0x1b"));for(const t of this._headingOptions)"paragraph"!=t[Wo("0x16")]&&n[Wo("0x13")][Wo("0x1a")](t.model,(n=>{const i=this[Wo("0x9")](t.model);return null!==i?(s=n,x=i,Ji(e,Wo("0x6"),[s,x])):(r=n,o=t.title,Ji(e,"ELEMENT_HEADING_CUSTOM",[r,o]));var r,o,s,x}));this[Wo("0xd")]()}[Wo("0xd")](){const t=this[Wo("0x7")],e=t.locale;t[Wo("0x4")][Wo("0x1d")](Wo("0x12"))[Wo("0x13")][Wo("0x10")]((t=>{if(Wo("0x5")!=t[Wo("0xa")])return;const{data:n}=t;if(n&&"heading"==n[Wo("0x18")]){const t=n[Wo("0x1")][0][Wo("0x11")],s=this[Wo("0x9")](t);if(null!==s)return{type:Wo("0x3"),content:Ji(e,Wo("0x0"),(1,o=s,Ji(e,Wo("0x6"),[1,o])))};const x=this._headingOptions.find((e=>e[Wo("0x16")]===t))[Wo("0x14")];return{type:Wo("0x3"),content:Ji(e,Wo("0x0"),(i=1,r=x,Ji(e,Wo("0x8"),[i,r])))}}var i,r,o}))}[Wo("0x9")](t){var e,n;const i=t[Wo("0xb")](/^heading(\d+)/);if(i)return i[1];const r=null===(e=this._headingOptions)||void 0===e?void 0:e[Wo("0x19")]((e=>e[Wo("0x16")]==t));if(r&&r[Wo("0x17")]){const t=r[Wo("0x17")],e=(null!==(n=t[Wo("0xc")])&&void 0!==n?n:t)[Wo("0xb")](/^h(\d+)/);if(e)return e[1]}return null}}const qo=["_registerLegacyDescription","has","editor","HighlightEditing","highlight","FORMAT_HIGHLIGHT","color","title","locale","_enableDefaultAttributesIntegration","afterInit","value","*Remove highlight*","TrackChangesEditing","toLowerCase","registerDescriptionCallback","commandName","*Set highlight:* %0","format","registerAttributeLabel","plugins","highlight.options","get","commandParams"];var $o,Xo;$o=qo,Xo=472,function(t){for(;--t;)$o.push($o.shift())}(++Xo);const Zo=function(t,e){return qo[t-=0]};class Yo extends t.Plugin{[Zo("0x12")](){const t=this[Zo("0xa")];if(!t[Zo("0x4")][Zo("0x9")](Zo("0xb")))return;const e=t[Zo("0x4")][Zo("0x6")]("TrackChangesEditing"),n=t[Zo("0x10")];e[Zo("0x11")](Zo("0xc"),["highlight"]),e._descriptionFactory[Zo("0x3")](Zo("0xc"),Ji(n,Zo("0xd"))),this[Zo("0x8")]()}[Zo("0x8")](){const t=this[Zo("0xa")],e=t.locale;t[Zo("0x4")].get(Zo("0x15"))._descriptionFactory[Zo("0x17")]((n=>{if("formatInline"!=n.type)return;const{data:i}=n;if(i&&"highlight"==i[Zo("0x0")]){const n=e.t,r=i[Zo("0x7")][0][Zo("0x13")];if(r){const i=t.config.get(Zo("0x5")).find((t=>t.model==r)),o=n(i[Zo("0xf")])[Zo("0x16")]();return{type:"format",content:Ji(e,Zo("0x1"),o),color:{value:i[Zo("0xe")],title:i[Zo("0xf")]}}}return{type:Zo("0x2"),content:Ji(e,Zo("0x14"),Ji(e,Zo("0xd")))}}}))}}const Jo=["addClass","createEmptyElement","has","createContainerElement","horizontalLine","high","TrackChangesEditing","ELEMENT_HORIZONTAL_LINE","ck-horizontal-line","dataDowncast","conversion","plugins","HorizontalLineEditing","elementToStructure","showSuggestionHighlights","div","registerElementLabel","editor","insert","_descriptionFactory","for"];var Qo,ts;Qo=Jo,ts=382,function(t){for(;--t;)Qo.push(Qo.shift())}(++ts);const es=function(t,e){return Jo[t-=0]};class ns extends t.Plugin{afterInit(){const t=this[es("0xd")];if(!t[es("0x7")][es("0x13")](es("0x8")))return;t[es("0x7")].get(es("0x2")).enableCommand(es("0x0"));const e=t[es("0x7")].get(es("0x2")),n=t.locale;e[es("0xf")][es("0xc")](es("0x0"),(t=>Ji(n,es("0x3"),t))),t[es("0x6")][es("0x10")](es("0x5"))[es("0x9")]({model:"horizontalLine",view:(t,{writer:e,options:n})=>{if(!n[es("0xa")])return null;const i=e[es("0x14")](es("0xb")),r=e[es("0x12")]("hr");return e[es("0x11")](es("0x4"),i),e[es("0xe")](e.createPositionAt(i,0),r),i},converterPriority:es("0x1")})}}const is=["TrackChangesEditing","editor","locale","getFirstRange","rawHtml","key","start","_descriptionFactory","has","htmlEmbed","_enableDefaultAttributesIntegration","*Change %0 content*","format","value","formatBlock","type","afterInit","attribute","_registerLegacyDescription","registerElementLabel","ELEMENT_HTML_EMBED","plugins","commandName"];var rs,os;rs=is,os=282,function(t){for(;--t;)rs.push(rs.shift())}(++os);const ss=function(t,e){return is[t-=0]};class xs extends t.Plugin{[ss("0xa")](){const t=this[ss("0x12")];if(!t[ss("0xf")][ss("0x2")]("HtmlEmbed"))return;const e=t[ss("0xf")].get(ss("0x11")),n=t.locale;e._descriptionFactory[ss("0xd")](ss("0x15"),(t=>Ji(n,ss("0xe"),t))),e[ss("0x4")](ss("0x3"),[],[ss("0x7")]),e[ss("0x1")].registerDescriptionCallback((t=>{if(ss("0xb")!=t.type)return;const{data:e}=t;if(e&&ss("0x7")==e[ss("0x16")]&&t[ss("0x14")]()[ss("0x0")].nodeAfter.is("element",ss("0x15"))){const t=Ji(n,ss("0xe"));return{type:ss("0x6"),content:Ji(n,ss("0x5"),t)}}})),this[ss("0xc")]()}[ss("0xc")](){const t=this[ss("0x12")],e=t[ss("0x13")];t[ss("0xf")].get(ss("0x11"))[ss("0x1")].registerDescriptionCallback((t=>{if(ss("0x8")!=t[ss("0x9")])return;const{data:n}=t;if(n&&ss("0x3")==n[ss("0x10")]){const t=Ji(e,ss("0xe"));return{type:ss("0x6"),content:Ji(e,ss("0x5"),t)}}}))}}const as=["Inline image to block image","*Reset image width*","end","getNearestSelectionRange","convertBlockImageToInline","join","imageTextAlternative","isIntersecting","_registerLegacyDescription","schema","_suggestionFactory","addObject","markInsertion","createRange","document","convertInlineImageToBlock","ImageEditing","imageTypeInline","change","editor","detach","ELEMENT_INLINE_IMAGE","afterInit","imageTypeBlock","commandParams","formatBlock","previous","isBlockImage","enableCommand","TrackChangesEditing","imageStylePreApply","model","resizedWidth","get","registerDescriptionCallback","ImageCaptionEditing","getFirstRange","*Set image text alternative:* %0","getClosestSelectedImageElement","insertImage","element","*Remove image text alternative*","caption","ImageUtils","imageInline","locale","backward","discard","selection","isCollapsed","commandName","alt","markBlockFormat","start","resizeImage","nodeAfter","getSuggestionCallback","findIndex","chain","isEqual","fromPosition","ELEMENT_IMAGE","createRangeOn","_enableDefaultAttributesIntegration","ImageResize","plugins","deletion","*Set image width:* %0","isOwn","toPrevious","isBefore","registerAttributeLabel","ImageTextAlternativeEditing","registerElementLabel","accept","ImageInlineEditing","nodeBefore","filter","_findSuggestions","has","length","FORMAT_IMAGE_SIZE","width","type","subType","forceDefaultExecution","imageCaption","formatInline","newValue","registerCustomCallback","getContainedElement","_descriptionFactory","insertion","format"];var cs,ls;cs=as,ls=290,function(t){for(;--t;)cs.push(cs.shift())}(++ls);const us=function(t,e){return as[t-=0]};class ds extends t.Plugin{[us("0xe")](){const t=this.editor;if(!t[us("0x39")][us("0x47")](us("0x8")))return;const e=t[us("0x39")].get("TrackChangesEditing"),n=t[us("0x39")][us("0x19")](us("0x23")),i=t[us("0x25")];e[us("0x14")](us("0x1f")),e[us("0x53")][us("0x41")]("imageBlock",(t=>Ji(i,us("0x35"),t))),e[us("0x53")][us("0x41")](us("0x24"),(t=>Ji(i,us("0xd"),t))),e[us("0x53")].registerElementLabel(us("0x22"),(()=>Ji(i,"ELEMENT_CAPTION"))),t[us("0x39")][us("0x47")]("ImageUploadEditing")&&e[us("0x14")]("uploadImage"),t[us("0x39")].has("ImageBlockEditing")&&t[us("0x39")][us("0x47")](us("0x43"))&&(e[us("0x14")]("imageTypeInline",((i,r)=>{const o=n[us("0x1e")](t[us("0x17")].document.selection);t[us("0x17")][us("0xa")]((()=>{e.markBlockFormat(o,{commandName:"imageTypeInline",commandParams:[r]},[],us("0x5a"))}))})),e[us("0x14")](us("0xf"),((i,r)=>{t[us("0x17")][us("0xa")]((o=>{let x=n[us("0x1e")](t[us("0x17")].document[us("0x28")]),a=o[us("0x36")](x);const c=s.LivePosition.fromPosition(a.start,us("0x3d")),l=s.LivePosition[us("0x34")](a[us("0x58")],"toNext");e[us("0x4d")]((()=>i(r))),x=n[us("0x1e")](t.model[us("0x6")][us("0x28")]),a=o[us("0x36")](x);const u=o[us("0x5")](c,l);c[us("0xc")](),l.detach(),e[us("0x2c")](x,{commandName:us("0x9"),commandParams:[r]},[],"convertInlineImageToBlock"),u[us("0x2d")][us("0x3e")](a[us("0x2d")])&&e.markInsertion(o.createRange(u[us("0x2d")],a[us("0x2d")]),us("0x7")),a[us("0x58")][us("0x3e")](u.end)&&e[us("0x4")](o.createRange(a.end,u.end),us("0x7"))}))})),e._suggestionFactory[us("0x51")](us("0x11"),us("0x7"),us("0x5b"),(()=>!1)),e[us("0x2")][us("0x51")](us("0x11"),us("0x7"),us("0x42"),(()=>!1)),e[us("0x2")][us("0x51")](us("0x11"),"convertInlineImageToBlock",us("0x27"),e._suggestionFactory.getSuggestionCallback(us("0x11"),"","accept")),e[us("0x2")][us("0x51")](us("0x54"),"convertInlineImageToBlock","join",(()=>!1)),e._suggestionFactory[us("0x51")]("insertion",us("0x7"),us("0x27"),(([n])=>{const i=e[us("0x2")][us("0x30")]("insertion","","discard");let r=n.start,o=n[us("0x58")];const s=t.model[us("0x1")].getNearestSelectionRange(r,us("0x26")),x=t[us("0x17")][us("0x1")][us("0x59")](o,"forward");s[us("0x29")]&&(r=s.start),x[us("0x29")]&&(o=x[us("0x58")]),i([t[us("0x17")][us("0x5")](r,o)])})),e._suggestionFactory[us("0x51")](us("0x11"),us("0x7"),us("0x32"),x),e._suggestionFactory[us("0x51")](us("0x54"),us("0x7"),us("0x32"),x)),t[us("0x39")][us("0x47")](us("0x1b"))&&(e[us("0x14")]("toggleImageCaption",((i,r)=>{const o=t[us("0x39")].get("ImageCaptionUtils");let s=n[us("0x1e")](t[us("0x17")][us("0x6")][us("0x28")]),x=o.getCaptionFromImageModelElement(s);t[us("0x17")][us("0xa")]((()=>{if(x)return void e.markDeletion(t[us("0x17")][us("0x36")](x));const a=n[us("0x13")](s);i(r),s=n[us("0x1e")](t.model.document[us("0x28")]),x=o.getCaptionFromImageModelElement(s),e[us("0x4")](t.model.createRangeOn(x),a?null:us("0x4e"))}))})),e[us("0x2")].registerCustomCallback("insertion","imageCaption","chain",x));const r=[{type:us("0x11"),subType:us("0x16")},{type:us("0x54"),subType:us("0x4e")},{type:us("0x11"),subType:us("0x7")},{type:us("0x54"),subType:us("0x7")}];function o(t,i){const o=r[us("0x31")]((({type:e,subType:n})=>t.type==e&&t[us("0x4c")]==n)),s=r.findIndex((({type:t,subType:e})=>i.type==t&&i[us("0x4c")]==e));if(o<0||s<0)return!1;const x=t[us("0x1c")](),a=i[us("0x1c")]();if((0==o||1==o)&&2==s&&x[us("0x5d")](a))return!0;if(2==o&&3==s){const t=e[us("0x46")](x,us("0x54"))[us("0x45")]((({suggestion:t,meta:e})=>e[us("0x3c")]&&us("0x7")==t[us("0x4c")]));if(t[us("0x48")]>1&&a[us("0x58")][us("0x33")](x.start))return!0;if(1==t[us("0x48")]&&(x[us("0x2d")][us("0x33")](a[us("0x58")])||x[us("0x58")][us("0x33")](a[us("0x2d")])))return!0}if(3==o&&3==s&&x[us("0x2d")].isBefore(a.start)){const t=x[us("0x58")][us("0x2f")],e=a[us("0x2d")][us("0x44")];return n[us("0x13")](t)&&t===e}return!1}function x(t,e){return o(t,e)?[t,e]:o(e,t)?[e,t]:null}t[us("0x39")][us("0x47")](us("0x38"))&&(e[us("0x37")](us("0x2e"),[],["resizedWidth"]),e[us("0x53")][us("0x3f")](us("0x18"),Ji(i,us("0x49")))),t[us("0x39")][us("0x47")](us("0x40"))&&e[us("0x37")](us("0x5c"),[],["alt"]),e._descriptionFactory.registerDescriptionCallback((t=>{if(r.find((({type:e,subType:n})=>t[us("0x4b")]==e&&t[us("0x4c")]==n)))return t[us("0x12")]?{}:void 0})),e[us("0x53")][us("0x1a")]((t=>{if(us("0x54")==t[us("0x4b")]||us("0x3a")==t.type){const e=t[us("0x52")]();if(e&&e.is(us("0x20"),"caption"))return{type:"insertion"==t[us("0x4b")]?us("0x3"):"removeObject",element:e,quantity:1}}})),e[us("0x53")][us("0x1a")]((t=>"formatBlock"==t[us("0x4b")]&&"convertInlineImageToBlock"==t[us("0x4c")]?{type:us("0x55"),content:us("0x56")}:"formatBlock"==t[us("0x4b")]&&"convertBlockImageToInline"==t[us("0x4c")]?{type:us("0x55"),content:"Block image to inline image"}:void 0)),e[us("0x53")].registerDescriptionCallback((t=>{if("attribute"!=t[us("0x4b")])return;const{data:e}=t;if(!e||us("0x2b")!=e.key)return;const n=e.newValue;return n?{type:us("0x55"),content:Ji(i,us("0x1d"),'"'+n+'"')}:{type:"format",content:Ji(i,us("0x21"))}})),this[us("0x0")]()}_registerLegacyDescription(){const t=this[us("0xb")],e=t[us("0x25")];t.plugins.get(us("0x15"))[us("0x53")][us("0x1a")]((t=>{if(us("0x11")!=t.type&&us("0x4f")!=t[us("0x4b")])return;const{data:n}=t;if(n){if(us("0x5c")==n[us("0x2a")]){const t=n[us("0x10")][0][us("0x50")];return t?{type:us("0x55"),content:Ji(e,"*Set image text alternative:* %0",'"'+t+'"')}:{type:us("0x55"),content:Ji(e,"*Remove image text alternative*")}}if(us("0x2e")==n[us("0x2a")]){const t=n.commandParams[0][us("0x4a")];return t?{type:us("0x55"),content:Ji(e,us("0x3b"),t)}:{type:"format",content:Ji(e,us("0x57"))}}}}))}}const gs=["get","format","attribute","formatBlock","_descriptionFactory","_suggestionFactory","replaceImageSource","editor","getSuggestionCallback","commandName","type","_handleLegacySuggestions","registerCustomCallback","_enableDefaultAttributesIntegration","_registerLegacyDescription","newValue","afterInit","plugins","ImageEditing","formatInline","registerDescriptionCallback","*Format:* replace image URL","TrackChangesEditing","key","has","src","locale"];var fs,hs;fs=gs,hs=424,function(t){for(;--t;)fs.push(fs.shift())}(++hs);const ms=function(t,e){return gs[t-=0]};class ps extends t.Plugin{[ms("0x18")](){if(!this[ms("0xf")][ms("0x19")][ms("0x5")](ms("0x1a")))return;const t=this[ms("0xf")][ms("0x7")],e=this.editor[ms("0x19")].get("TrackChangesEditing");e[ms("0x15")](ms("0xe"),[],["src"]),e[ms("0xc")][ms("0x1")]((e=>{if(ms("0xa")!=e[ms("0x12")])return;const{data:n}=e;return n&&ms("0x6")==n[ms("0x4")]?n[ms("0x17")]&&n.oldValue?{type:ms("0x9"),content:Ji(t,"*Replace image URL*")}:{type:"format",content:""}:void 0})),this[ms("0x13")]()}[ms("0x13")](){const t=this.editor[ms("0x19")][ms("0x8")]("TrackChangesEditing");t[ms("0xd")][ms("0x14")](ms("0xb"),ms("0xe"),"accept",t._suggestionFactory[ms("0x10")](ms("0xb"),null,"discard")),t[ms("0xd")][ms("0x14")](ms("0xb"),"replaceImageSource","discard",t[ms("0xd")][ms("0x10")]("formatBlock",null,"accept")),this[ms("0x16")]()}[ms("0x16")](){const t=this[ms("0xf")],e=t.locale;t[ms("0x19")][ms("0x8")](ms("0x3"))[ms("0xc")][ms("0x1")]((t=>{if("formatBlock"!=t.type&&ms("0x0")!=t[ms("0x12")])return;const{data:n}=t;return n&&ms("0xe")==n[ms("0x11")]?{type:ms("0x9"),content:Ji(e,ms("0x2"))}:void 0}))}}const bs=["registerDescriptionCallback","isEqual","next","start","filter","suggestion","isBefore","head","accept","convertInlineImageToBlock","formatBlock","normalizedStyles","type","createRangeOn","commands","document","ImageStyleEditing","_splitMarkerName","end","_findSuggestions","registerPostFixer","formatInline","has","imageStylePostApply","side","commandReversedParams","editor","imageStylePreApply","isInContent","name","_descriptionFactory","commandParams","markBlockFormat","discard","nodeBefore","findIndex","getSuggestionCallback","join","model","_suggestionFactory","get","getSuggestions","discardSuggestion","Users","getChangedMarkers","format","refresh","isOwn","hasSuggestion","enableCommand","imageStyle","getContainedElement","isInlineImage","*Format:* %0","commandName","chain","nodeAfter","value","getFirstRange","isIntersecting","ImageUtils","insertion","imageTypeInline","selection","getSuggestion","forEach","getClosestSelectedImageElement","newRange","plugins","imageTypeBlock","imageCaption","isBlockImage","registerCustomCallback","TrackChangesEditing","subType"];var Es,_s;Es=bs,_s=319,function(t){for(;--t;)Es.push(Es.shift())}(++_s);const Ts=function(t,e){return bs[t-=0]};class ys extends t.Plugin{afterInit(){const t=this[Ts("0x7")];if(!t[Ts("0x31")][Ts("0x3")](Ts("0x48")))return;const n=t.plugins.get(Ts("0x36")),i=t.plugins[Ts("0x15")](Ts("0x29")),r={};n[Ts("0x1e")](Ts("0x1f"),((r,o)=>{const s=t.plugins[Ts("0x15")](Ts("0x18")).me,x=t[Ts("0x46")][Ts("0x15")](Ts("0x1f"));let a=i[Ts("0x2f")](t[Ts("0x13")][Ts("0x47")][Ts("0x2c")]),c=t.model.createRangeOn(a),l=x.value;if(l==o[Ts("0x26")])return;const u={commandName:Ts("0x1f"),commandParams:[o],formatGroupId:(0,e.uid)()};t[Ts("0x13")].change((()=>{if(n[Ts("0x16")]()[Ts("0x3c")]((t=>t[Ts("0x9")]&&s==t.author&&(Ts("0x42")==t[Ts("0x44")]||Ts("0x2")==t[Ts("0x44")])&&(Ts("0x8")==t[Ts("0x37")]||"imageStylePostApply"==t[Ts("0x37")])&&t[Ts("0x27")]()[Ts("0x39")](c)))[Ts("0x2e")]((t=>n[Ts("0x17")](t[Ts("0x3f")]))),a=i[Ts("0x2f")](t[Ts("0x13")][Ts("0x47")][Ts("0x2c")]),c=t[Ts("0x13")][Ts("0x45")](a),x[Ts("0x1b")](),t[Ts("0x46")].get(Ts("0x2b"))[Ts("0x1b")](),t[Ts("0x46")][Ts("0x15")](Ts("0x32"))[Ts("0x1b")](),l=x.value,l!=o[Ts("0x26")])return i[Ts("0x21")](a)&&x.shouldConvertImageType(o.value,a)?(r({...o,setImageSizes:!1}),a=i[Ts("0x2f")](t.model.document.selection),void n[Ts("0xd")](a,{...u,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],Ts("0x8"))):void(i.isBlockImage(a)?n[Ts("0xd")](a,u,[],Ts("0x4")):n.markInlineFormat(c,u,Ts("0x4")))}))}));for(const e of t.plugins.get(Ts("0x48"))[Ts("0x43")])r[e[Ts("0xa")]]=e.title.toLowerCase();n._suggestionFactory[Ts("0x35")]("formatBlock",Ts("0x8"),Ts("0x12"),(()=>!1)),n[Ts("0x14")][Ts("0x35")](Ts("0x42"),"imageStylePostApply","join",(()=>!1)),n[Ts("0x14")][Ts("0x35")](Ts("0x2"),Ts("0x4"),Ts("0x12"),(()=>!1)),n[Ts("0x14")][Ts("0x35")](Ts("0x42"),Ts("0x8"),"accept",(([t])=>{i.setImageNaturalSizeAttributes(t[Ts("0x20")]())})),n[Ts("0x14")][Ts("0x35")](Ts("0x42"),Ts("0x8"),Ts("0xe"),((t,e)=>{n[Ts("0x14")][Ts("0x11")](Ts("0x42"),"",Ts("0x40"))(t,{commandName:e.commandName,commandParams:e[Ts("0x6")]})})),n[Ts("0x14")][Ts("0x35")](Ts("0x42"),Ts("0x8"),Ts("0x24"),(function(t,e){return s(t,e)?[t,e]:s(e,t)?[e,t]:null}));const o=[{type:Ts("0x42"),subType:Ts("0x8")},{type:Ts("0x2a"),subType:"imageCaption"},{type:Ts("0x42"),subType:Ts("0x41")},{type:Ts("0x2a"),subType:Ts("0x41")}];function s(t,e){const r=o[Ts("0x10")]((({type:e,subType:n})=>t[Ts("0x44")]==e&&t[Ts("0x37")]==n)),s=o[Ts("0x10")]((({type:t,subType:n})=>e[Ts("0x44")]==t&&e.subType==n));if(r<0||s<0)return!1;const x=t[Ts("0x27")](),a=e[Ts("0x27")]();if((0==r||1==r)&&2==s&&x[Ts("0x28")](a))return!0;if(2==r&&3==s){const t=n[Ts("0x0")](x,"insertion")[Ts("0x3c")]((({suggestion:t,meta:e})=>e[Ts("0x1c")]&&Ts("0x41")==t.subType));if(t.length>1&&a[Ts("0x4a")].isEqual(x[Ts("0x3b")]))return!0;if(1==t.length&&(x[Ts("0x3b")].isEqual(a[Ts("0x4a")])||x[Ts("0x4a")].isEqual(a[Ts("0x3b")])))return!0}if(3==r&&3==s&&x[Ts("0x3b")][Ts("0x3e")](a.start)){const t=x[Ts("0x4a")][Ts("0x25")],e=a[Ts("0x3b")][Ts("0xf")];return i[Ts("0x34")](t)&&t===e}return!1}t.model.document[Ts("0x1")]((()=>{let e=!1;const r=Array.from(t[Ts("0x13")][Ts("0x47")].differ[Ts("0x19")]());for(const{name:t,data:o}of r){const{group:r,type:s,subType:x,id:a}=n[Ts("0x49")](t);if(Ts("0x3d")==r&&n[Ts("0x1d")](a)){if("formatBlock"==s&&(Ts("0x8")==x||"imageStylePostApply"==x)){const t=n[Ts("0x2d")](a);if(o[Ts("0x30")]){const r=t[Ts("0x27")]()[Ts("0x20")]();if(i[Ts("0x34")](r))continue;n[Ts("0x17")](t),e=!0}}if("insertion"==s&&Ts("0x33")==x&&!o.newRange){const t=n[Ts("0x2d")](a);t.next&&t[Ts("0x3a")][Ts("0x9")]&&(n[Ts("0x17")](t[Ts("0x3a")]),e=!0)}}}return e})),this._registerLegacyDescription(r)}_registerLegacyDescription(t){const e=this.editor,n=e.locale;e.plugins[Ts("0x15")](Ts("0x36"))[Ts("0xb")][Ts("0x38")]((e=>{if("formatBlock"!=e[Ts("0x44")]&&Ts("0x2")!=e[Ts("0x44")])return;const{data:i}=e;if(!i||Ts("0x1f")!=i[Ts("0x23")])return;const r=i[Ts("0xc")][0].value;return o=Ts("0x5")===r?Ji(n,"FORMAT_SIDE_IMAGE"):t[r]||r,{type:Ts("0x1a"),content:Ji(n,Ts("0x22"),o)};var o}))}}const Cs=["plugins","_handleImportedData","lowest","value","bind","commands","dataInsert","get","collaboration_features","_setSuggestionData","listenTo","importWord","enableCommand","forEach","_trackChangesExecuted","_trackChangesValueDuringImport","afterInit","TrackChangesEditing","track_changes","high","trackChanges"];var As,ks;As=Cs,ks=373,function(t){for(;--t;)As.push(As.shift())}(++ks);const Is=function(t,e){return Cs[t-=0]};class Rs extends t.Plugin{constructor(t){super(t),this[Is("0x14")]=!1,this._trackChangesExecuted=!1}[Is("0x0")](){const t=this.editor,e=t.commands[Is("0xc")]("importWord"),n=t.commands[Is("0xc")](Is("0x4"));e&&(e.on("execute",((t,[,e])=>{this[Is("0x14")]=n[Is("0x8")],e[Is("0xd")][Is("0x2")]=!this[Is("0x14")]}),{priority:Is("0x3")}),this[Is("0xf")](e,Is("0xb"),this._handleImportedData[Is("0x9")](this)),this[Is("0xf")](e,Is("0xb"),(()=>{this[Is("0x13")]&&(n.execute(),this._trackChangesExecuted=!1)}),{priority:Is("0x7")}),t.plugins.get(Is("0x1"))[Is("0x11")](Is("0x10")))}[Is("0x6")](t,e){const{suggestions:n}=e,i=this.editor[Is("0xa")].get(Is("0x4")),r=i[Is("0x8")];this[Is("0x14")]!==r&&(i.execute(),this[Is("0x13")]=!0),n&&n[Is("0x12")]((({id:t,type:e,author:n,created_at:i})=>{const r={id:t,type:e,authorId:this.editor[Is("0x5")][Is("0xc")]("Users").me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:i?new Date(i):new Date,source:"importWord"}}};this.editor[Is("0x5")].get("TrackChangesEditing")[Is("0xe")](r)}))}}const vs=["format","indentBlock","locale","has","*Outdent:* %0","_registerBlockAttribute","commandName","registerAttributeLabel","FORMAT_INDENT","afterInit","_registerLegacyDescription","outdentBlock","blockIndent","enableCommand","_enableDefaultAttributesIntegration","formatBlock","getItems","plugins","TrackChangesEditing","indent","IndentEditing","_descriptionFactory","IndentBlock","type","get","outdent"];var Ss,Ls;Ss=vs,Ls=106,function(t){for(;--t;)Ss.push(Ss.shift())}(++Ls);const Ns=function(t,e){return vs[t-=0]};class Ms extends t.Plugin{[Ns("0x7")](){const t=this.editor,e=t[Ns("0xf")][Ns("0x16")](Ns("0x10"));if(t.plugins[Ns("0x1")](Ns("0x12"))&&(e[Ns("0xb")](Ns("0x11")),e[Ns("0xb")](Ns("0x17"))),t.plugins.has(Ns("0x14")))for(const t of[Ns("0x19"),Ns("0x9")])e[Ns("0xc")](t);const n=t[Ns("0x0")];e[Ns("0x3")](Ns("0xa")),e._descriptionFactory[Ns("0x5")](Ns("0xa"),Ji(n,Ns("0x6"))),this[Ns("0x8")]()}[Ns("0x8")](){const t=this.editor,e=t[Ns("0x0")],n=t[Ns("0xf")].get("TrackChangesEditing");n[Ns("0x13")].registerDescriptionCallback((t=>{if(Ns("0xd")!=t[Ns("0x15")])return;const{data:i}=t;if(!i)return;if(Ns("0x19")!=i[Ns("0x4")]&&"outdentBlock"!=i[Ns("0x4")])return;const r=t[Ns("0xe")]()[0],o=n._descriptionFactory.getItemLabel(r);return"indentBlock"==i[Ns("0x4")]?{type:Ns("0x18"),content:Ji(e,"*Indent:* %0",o)}:"outdentBlock"==i[Ns("0x4")]?{type:Ns("0x18"),content:Ji(e,Ns("0x2"),o)}:void 0}))}}var ws,Os,Fs=["input","init","editor","requires","plugins","enableCommand","TrackChangesEditing"];ws=Fs,Os=144,function(t){for(;--t;)ws.push(ws.shift())}(++Os);var Ds=function(t,e){return Fs[t-=0]};class Bs extends t.Plugin{static get[Ds("0x6")](){return[qr.Input]}[Ds("0x4")](){this[Ds("0x5")][Ds("0x0")].get(Ds("0x2"))[Ds("0x1")](Ds("0x3"))}}const Ps=["TrackChangesEditing","locale","key","manualDecorators","afterInit","has","commandName","_registerLegacyDescription","link (","link","*Remove link*","_descriptionFactory","type","newValue","get","format","LinkEditing","linkHref","*Set link:* %0","attribute","registerAttributeLabel","label","registerDescriptionCallback","plugins","map","editor","_enableDefaultAttributesIntegration","commands"];var Us,js;Us=Ps,js=227,function(t){for(;--t;)Us.push(Us.shift())}(++js);const Gs=function(t,e){return Ps[t-=0]};class Vs extends t.Plugin{[Gs("0x1")](){const t=this[Gs("0x16")];if(!t[Gs("0x14")][Gs("0x2")](Gs("0xd")))return;const e=t.plugins[Gs("0xb")](Gs("0x19")),n=t[Gs("0x18")].get("link");e._enableDefaultAttributesIntegration(Gs("0x6"),["linkHref",...n.manualDecorators[Gs("0x15")]((t=>t.id))]),e[Gs("0x17")]("unlink");for(const t of n[Gs("0x0")])e[Gs("0x8")][Gs("0x11")](t.id,Gs("0x5")+t[Gs("0x12")].toLowerCase()+")");e[Gs("0x8")][Gs("0x13")]((e=>{if(Gs("0x10")!=e[Gs("0x9")])return;const{data:n}=e;if(!n||Gs("0xe")!=n[Gs("0x1b")])return;const i=n[Gs("0xa")],r=t[Gs("0x1a")];return{type:Gs("0xc"),content:null==i?Ji(r,Gs("0x7")):Ji(r,Gs("0xf"),'"'+i+'"')}})),this[Gs("0x4")]()}[Gs("0x4")](){const t=this[Gs("0x16")],e=t[Gs("0x1a")];t[Gs("0x14")][Gs("0xb")](Gs("0x19"))[Gs("0x8")][Gs("0x13")]((t=>{if("formatInline"!=t[Gs("0x9")])return;const{data:n}=t;if(n){if("link"==n[Gs("0x3")]){const t=n.commandParams[0];return{type:Gs("0xc"),content:Ji(e,Gs("0xf"),'"'+t+'"')}}return"unlink"==n[Gs("0x3")]?{type:Gs("0xc"),content:Ji(e,Gs("0x7"))}:void 0}}))}}const Hs=["LegacyTodoListEditing","replace","afterInit","blockName","_selectedElements","bulleted","indentList","formatBlock","length","parent","slice","element","commandName","*Change to:* %0","*Uncheck item*","*Outdent:* %0","todo","document","getAttribute","model","nextSibling","TrackChangesEditing","ELEMENT_LIST_ITEM","get","schema","name","add","ELEMENT_NUMBERED_LIST","markBlockFormat","registerElementLabel","enableCommand","push","getSelectedBlocks","value","formatInline","type","numberedList","end","previousSibling","_descriptionFactory","selection","format","execute","listIndent","listItem","change","plugins","registerDescriptionCallback","*Check item*","numbered","outdentList","checkTodoList","List","todoListChecked","createPositionAt","from","isObject","filter","todoList","LegacyListEditing","findIndex","*Indent:* %0","has","locale","bulletedList","listType","commands"];var zs,Ws;zs=Hs,Ws=242,function(t){for(;--t;)zs.push(zs.shift())}(++Ws);const Ks=function(t,e){return Hs[t-=0]};class qs extends t.Plugin{[Ks("0x1c")](){const t=this.editor,e=t[Ks("0x16")];if(!t[Ks("0x5")][Ks("0x15")](Ks("0x12")))return;const n=t.plugins.get(Ks("0x2f")),i=t[Ks("0x5")][Ks("0x15")](Ks("0x1a"));function r(e){return()=>{const i=t[Ks("0x2d")][Ks("0x2b")][Ks("0x42")],r=t[Ks("0x19")][Ks("0x31")](e);if(r[Ks("0x3b")])return void t[Ks("0x1")]("paragraph",{});const o=e.slice(0,-4),s=function(t,e,n){let i=Array[Ks("0xe")](t)[Ks("0x10")]((t=>{return e=t,(i=n).checkChild(e[Ks("0x23")],Ks("0x3"))&&!i[Ks("0xf")](e);var e,i}));i=i.filter((t=>!t.is(Ks("0x25"),Ks("0x3"))||t[Ks("0x2c")](Ks("0x18"))!=e));const r=new Set;for(const t of i)t.is(Ks("0x25"),Ks("0x3"))?r[Ks("0x34")]($s(t)):r[Ks("0x34")](t);return Array.from(r)}(i[Ks("0x3a")](),o,t[Ks("0x2d")][Ks("0x32")]);t.model[Ks("0x4")]((()=>{for(const t of s)n[Ks("0x36")](t,{commandName:e,commandParams:[{forceValue:!r[Ks("0x3b")]}],formatGroupId:Ks("0x1d")},Xs(t))}))}}function o(e){return()=>{const i=function(t){let e=Array[Ks("0xe")](t);const n=e[Ks("0x13")]((t=>Ks("0x3")!=t[Ks("0x33")]));return n>-1&&(e=e[Ks("0x24")](0,n)),e}(t[Ks("0x2d")][Ks("0x2b")].selection[Ks("0x3a")]()),r=t.model.createRange(t.model[Ks("0xd")](i[0],"before"),t.model[Ks("0xd")](i[i[Ks("0x22")]-1],Ks("0x3f")));t[Ks("0x2d")][Ks("0x4")]((()=>{n[Ks("0x36")](r,{commandName:e,commandParams:[],formatGroupId:Ks("0x2")},function(t){const e=new Set;for(const n of t){let t=n[Ks("0x2e")];for(;t&&t[Ks("0x2c")](Ks("0x2"))>n[Ks("0x2c")](Ks("0x2"));)e[Ks("0x34")](t),t=t[Ks("0x2e")]}return Array.from(e)}(i))}))}}n.enableCommand(Ks("0x3e"),r("numberedList")),n[Ks("0x38")](Ks("0x17"),r(Ks("0x17"))),i&&n[Ks("0x38")](Ks("0x11"),r(Ks("0x11"))),n[Ks("0x38")](Ks("0x20"),o("indentList")),n.enableCommand(Ks("0x9"),o("outdentList")),i&&n[Ks("0x38")]("checkTodoList",(()=>{const e=t[Ks("0x19")][Ks("0x31")](Ks("0xa")),i=Array[Ks("0xe")](e[Ks("0x1e")]);i[Ks("0x10")]((t=>t[Ks("0x2c")](Ks("0xc"))!=e.value)),t[Ks("0x2d")][Ks("0x4")]((()=>{for(const t of i)n[Ks("0x36")](t,{commandName:"checkTodoList",commandParams:[{forceValue:!e[Ks("0x3b")]}]})}))})),n[Ks("0x41")][Ks("0x37")](Ks("0x3"),(t=>Ji(e,Ks("0x30"),t))),n._descriptionFactory[Ks("0x6")]((t=>{if(Ks("0x21")!=t.type&&Ks("0x3c")!=t[Ks("0x3d")])return;const{data:n}=t;if(n){if("numberedList"==n[Ks("0x26")]||Ks("0x17")==n[Ks("0x26")]||Ks("0x11")==n[Ks("0x26")])switch(n[Ks("0x26")][Ks("0x1b")](Ks("0xb"),"")){case Ks("0x1f"):return i(Ji(e,"ELEMENT_BULLETED_LIST"));case Ks("0x8"):return i(Ji(e,Ks("0x35")));case Ks("0x2a"):return i(Ji(e,"ELEMENT_TODO_LIST"))}if(Ks("0x20")==n[Ks("0x26")])return{type:Ks("0x0"),content:Ji(e,Ks("0x14"),Ji(e,"ELEMENT_LIST_ITEM"))};if("outdentList"==n.commandName)return{type:Ks("0x0"),content:Ji(e,Ks("0x29"),Ji(e,Ks("0x30")))};if(Ks("0xa")==n[Ks("0x26")])return n.commandParams[0].forceValue?{type:Ks("0x0"),content:Ji(e,Ks("0x7"))}:{type:"format",content:Ji(e,Ks("0x28"))}}function i(t){return{type:Ks("0x0"),content:Ji(e,Ks("0x27"),t)}}}))}}function $s(t){const e=t[Ks("0x2c")]("listIndent");if(0==e)return t;let n=t;for(;t[Ks("0x40")]&&t[Ks("0x40")].is("element",Ks("0x3"));){const i=t[Ks("0x40")].getAttribute("listIndent");if(i==e)n=t[Ks("0x40")];else if(i<e)break;t=t[Ks("0x40")]}return n}function Xs(t){const e=[];if(t.is("element",Ks("0x3"))&&t[Ks("0x2c")](Ks("0x2"))>0){let n=t[Ks("0x2e")];for(;n&&"listItem"==n[Ks("0x33")]&&n[Ks("0x2c")]("listIndent")==t[Ks("0x2c")](Ks("0x2"));)e[Ks("0x39")](n),n=n.nextSibling}return e}const Zs=["getSelectedBlocks","numbered","reversed","format","commandName","formatInline","locale","TrackChangesEditing","forward","listType","listStyle","registerDescriptionCallback","getSiblingNodes","LegacyListUtils","before","plugins","_getSuggestionBlocks","toUpperCase","_getTranslationKeyForListStyle","getFirstPosition","_getSuggestionBlocksForListStyle","type","listItem","*Format:* set start index to %0","listReversed","formatBlock","model","handleListStartCommand","from","length","listStart","backward","unshift","markMultiRangeBlockFormat","handleListStyleCommand","flat","document","*Format:* set order to regular","element","bind","getLastPosition","_LIST_","*Format:* set order to reversed","get","handleDescriptions","selection","styles","commandParams","map","enableCommand","replace","handleListReversedCommand","createRange","startIndex","change","afterInit","filter","push","editor","createPositionAt","getAttribute"];var Ys,Js;Ys=Zs,Js=309,function(t){for(;--t;)Ys.push(Ys.shift())}(++Js);const Qs=function(t,e){return Zs[t-=0]};class tx extends t.Plugin{[Qs("0x33")](){if(!this[Qs("0x36")][Qs("0xb")].has("LegacyListPropertiesEditing"))return;const t=this.editor.config[Qs("0x27")]("list.properties"),e=this[Qs("0x36")][Qs("0xb")][Qs("0x27")](Qs("0x3"));t[Qs("0x2a")]&&e[Qs("0x2d")](Qs("0x6"),this.handleListStyleCommand[Qs("0x23")](this)),t[Qs("0x3b")]&&e[Qs("0x2d")]("listReversed",this[Qs("0x2f")].bind(this)),t[Qs("0x31")]&&e[Qs("0x2d")](Qs("0x1a"),this[Qs("0x17")][Qs("0x23")](this)),e._descriptionFactory[Qs("0x7")](this.handleDescriptions.bind(this))}[Qs("0x1e")](t,e={}){const n=this[Qs("0x36")].plugins[Qs("0x27")]("TrackChangesEditing"),i=this[Qs("0x10")]();this[Qs("0x36")][Qs("0x16")][Qs("0x32")]((()=>{n[Qs("0x1d")](i,{commandName:Qs("0x6"),commandParams:[{type:e[Qs("0x11")]}],formatGroupId:"listStyle"})}))}handleListReversedCommand(t,e={}){const n=this[Qs("0x36")][Qs("0xb")].get(Qs("0x3")),i=this[Qs("0xc")]((t=>t.is("element",Qs("0x12"))&&Qs("0x3a")===t[Qs("0x38")](Qs("0x5"))));if(i.length<1)return;const r=i[Qs("0x2c")]((t=>this[Qs("0x36")].model[Qs("0x30")](this[Qs("0x36")][Qs("0x16")][Qs("0x37")](t,Qs("0xa")),this.editor[Qs("0x16")].createPositionAt(t,0))));this[Qs("0x36")][Qs("0x16")][Qs("0x32")]((()=>{n.markMultiRangeBlockFormat(r,{commandName:"listReversed",commandParams:[{reversed:e[Qs("0x3b")]}],formatGroupId:Qs("0x14")})}))}handleListStartCommand(t,e={}){const n=this[Qs("0x36")][Qs("0xb")].get(Qs("0x3")),i=this[Qs("0xc")]((t=>t.is(Qs("0x22"),Qs("0x12"))&&Qs("0x3a")===t.getAttribute(Qs("0x5"))));if(i[Qs("0x19")]<1)return;const r=i[Qs("0x2c")]((t=>this[Qs("0x36")][Qs("0x16")][Qs("0x30")](this[Qs("0x36")][Qs("0x16")][Qs("0x37")](t,Qs("0xa")),this[Qs("0x36")].model[Qs("0x37")](t,0))));this[Qs("0x36")][Qs("0x16")][Qs("0x32")]((()=>{n[Qs("0x1d")](r,{commandName:Qs("0x1a"),commandParams:[{startIndex:e[Qs("0x31")]}],formatGroupId:"listStart"})}))}[Qs("0x28")](t){if(Qs("0x15")!=t[Qs("0x11")]&&Qs("0x1")!=t[Qs("0x11")])return;const e=this[Qs("0x36")][Qs("0x2")],{data:n}=t;if(!n)return;let i,r;switch(n[Qs("0x0")]){case Qs("0x6"):i="*Change to:* %0",r={type:Qs("0x3c"),content:Ji(e,i,Ji(e,this[Qs("0xe")](n.commandParams[0][Qs("0x11")])))};break;case Qs("0x14"):i=n[Qs("0x2b")][0][Qs("0x3b")]?Qs("0x26"):Qs("0x21"),r={type:"format",content:Ji(e,i)};break;case Qs("0x1a"):i=Qs("0x13"),r={type:Qs("0x3c"),content:Ji(e,i,n[Qs("0x2b")][0][Qs("0x31")])}}return r}_getSuggestionBlocksForListStyle(){var t,e,n,i;const r=this[Qs("0x36")][Qs("0xb")][Qs("0x27")](Qs("0x9"));let o=Array.from(this[Qs("0x36")][Qs("0x16")].document[Qs("0x29")][Qs("0x39")]());return(null===(t=o[0])||void 0===t?void 0:t.is(Qs("0x22"),Qs("0x12")))&&o[Qs("0x1c")](...r[Qs("0x8")](this[Qs("0x36")].model[Qs("0x20")][Qs("0x29")][Qs("0xf")](),Qs("0x1b"))),(null===(e=o[o[Qs("0x19")]-1])||void 0===e?void 0:e.is(Qs("0x22"),Qs("0x12")))&&o[Qs("0x35")](...r[Qs("0x8")](this.editor[Qs("0x16")][Qs("0x20")][Qs("0x29")][Qs("0x24")](),Qs("0x4"))),o=[...new Set(o)],(null===(i=null===(n=this.editor[Qs("0x16")][Qs("0x20")][Qs("0x29")][Qs("0xf")]())||void 0===n?void 0:n.parent)||void 0===i?void 0:i.is("element",Qs("0x12")))&&(o=o[Qs("0x34")]((t=>t.is(Qs("0x22"),Qs("0x12"))))),o}[Qs("0xc")](t){const e=this.editor.plugins[Qs("0x27")](Qs("0x9"));let n=Array[Qs("0x18")](this[Qs("0x36")].model[Qs("0x20")][Qs("0x29")].getSelectedBlocks()).filter(t)[Qs("0x2c")]((t=>{const n=this[Qs("0x36")][Qs("0x16")][Qs("0x37")](t,0);return[...e[Qs("0x8")](n,Qs("0x1b")),...e[Qs("0x8")](n,"forward")]}))[Qs("0x1f")]();return n=[...new Set(n)],n}_getTranslationKeyForListStyle(t){return"ELEMENT_"+this[Qs("0x36")].plugins.get(Qs("0x9")).getListTypeFromListStyleType(t)[Qs("0xd")]()+Qs("0x25")+t[Qs("0xd")]()[Qs("0x2e")](/-/g,"_")}}const ex=["for","locale","downcastDispatcher","MediaEmbedEditing","afterInit","dataDowncast","editor","data","registerElementLabel","enableCommand","mediaEmbed","media","has","ELEMENT_MEDIA","plugins","conversion","attribute:url:media","showSuggestionHighlights","elementToElement","div","high"];var nx,ix;nx=ex,ix=231,function(t){for(;--t;)nx.push(nx.shift())}(++ix);const rx=function(t,e){return ex[t-=0]};class ox extends t.Plugin{[rx("0x4")](){const t=this[rx("0x6")];if(!t[rx("0xe")][rx("0xc")](rx("0x3")))return;const e=t[rx("0xe")].get("TrackChangesEditing"),n=t[rx("0x1")];e[rx("0x9")](rx("0xa")),e._descriptionFactory[rx("0x8")](rx("0xb"),(t=>Ji(n,rx("0xd"),t))),t[rx("0xf")][rx("0x0")](rx("0x5"))[rx("0x12")]({model:rx("0xb"),view:(t,{writer:e,options:n})=>{if(n.showSuggestionHighlights)return e.createEmptyElement(rx("0x13"))},converterPriority:rx("0x14")}),t[rx("0x7")][rx("0x2")].on(rx("0x10"),((t,e,n)=>{n.options[rx("0x11")]&&t.stop()}),{priority:rx("0x14")})}}const sx=["plugins","mention","MentionEditing","afterInit","enableCommand","TrackChangesEditing"];var xx,ax;xx=sx,ax=358,function(t){for(;--t;)xx.push(xx.shift())}(++ax);const cx=function(t,e){return sx[t-=0]};class lx extends t.Plugin{[cx("0x5")](){const t=this.editor;t[cx("0x2")].has(cx("0x4"))&&t[cx("0x2")].get(cx("0x1"))[cx("0x0")](cx("0x3"))}}const ux=["_descriptionFactory","get","TrackChangesEditing","afterInit","PageBreakEditing","pageBreak","ELEMENT_PAGE_BREAK","enableCommand","locale","editor","has","plugins"];var dx,gx;dx=ux,gx=219,function(t){for(;--t;)dx.push(dx.shift())}(++gx);const fx=function(t,e){return ux[t-=0]};class hx extends t.Plugin{[fx("0x0")](){const t=this[fx("0x6")];if(!t.plugins[fx("0x7")](fx("0x1")))return;t.plugins[fx("0xa")](fx("0xb"))[fx("0x4")](fx("0x2"));const e=t[fx("0x8")][fx("0xa")](fx("0xb")),n=t[fx("0x5")];e[fx("0x9")].registerElementLabel(fx("0x2"),(t=>Ji(n,fx("0x3"),t)))}}const mx=["isBlock","commandName","insertParagraph","_registerLegacyDescription","*Insert:* %0","enableCommand","mapper","Paragraph","getItemLabel","formatBlock","editor","schema","TrackChangesEditing","options","editing","locale","afterInit","$text","has","registerDescriptionCallback","get","data","markerRange","ck-suggestion-marker--active","activeMarkers","includes","getFirstRange","*Change to:* %0","addMarker:suggestion:insertion","consumable","end","insertion","isLimit","_descriptionFactory","showSuggestionHighlights","isTouching","markerName","consume","addClass","start","plugins","writer","highest","ELEMENT_PARAGRAPH","model","ck-suggestion-marker-split","nodeAfter","paragraph","name","type","bindElementToMarker","span"];var px,bx;px=mx,bx=200,function(t){for(;--t;)px.push(px.shift())}(++bx);const Ex=function(t,e){return mx[t-=0]};class _x extends t.Plugin{[Ex("0x18")](){const t=this[Ex("0x12")];if(!t[Ex("0x30")][Ex("0x1a")](Ex("0xf")))return;const e=t[Ex("0x17")],n=t[Ex("0x30")][Ex("0x1c")](Ex("0x14"));n[Ex("0x29")].registerElementLabel(Ex("0x3"),(t=>Ji(e,Ex("0x33"),t))),n._enableDefaultAttributesIntegration(Ex("0x3")),n[Ex("0xd")](Ex("0xa")),t[Ex("0x16")].downcastDispatcher.on("addMarker:suggestion:insertion",Tx(t),{priority:Ex("0x32")}),t[Ex("0x1d")].downcastDispatcher.on(Ex("0x24"),((e,n,i)=>{i[Ex("0x15")][Ex("0x2a")]&&Tx(t,{showActiveMarker:!1})(e,n,i)}),{priority:Ex("0x32")});const i=n[Ex("0x29")];i.registerDescriptionCallback((n=>{if(Ex("0x27")!==n[Ex("0x5")])return;const{start:r,end:o}=n[Ex("0x22")]();if(!r[Ex("0x2b")](o)||!r[Ex("0x2")])return;const s=t[Ex("0x0")][Ex("0x13")],x=r[Ex("0x2")];return s[Ex("0x8")](x)&&!s.isLimit(x)&&s.checkChild(x,Ex("0x19"))?{type:"insertion",content:Ji(e,Ex("0xc"),i[Ex("0x10")](x,1))}:void 0})),this[Ex("0xb")]()}[Ex("0xb")](){const t=this[Ex("0x12")],e=t[Ex("0x17")];t[Ex("0x30")][Ex("0x1c")](Ex("0x14"))._descriptionFactory[Ex("0x1b")]((t=>{if(Ex("0x11")!=t.type)return;const{data:n}=t;return n&&Ex("0x3")==n[Ex("0x9")]?{type:"format",content:Ji(e,Ex("0x23"),Ji(e,Ex("0x33")))}:void 0}))}}function Tx(t,{showActiveMarker:e=!0}={}){return(n,i,r)=>{const o=t[Ex("0x30")][Ex("0x1c")](Ex("0x14")),s=i[Ex("0x1e")][Ex("0x2f")],x=i[Ex("0x1e")][Ex("0x26")],a=t[Ex("0x0")][Ex("0x13")];if(!s[Ex("0x2b")](x)||!s[Ex("0x2")])return;const c=s[Ex("0x2")];if(a[Ex("0x8")](c)&&!a[Ex("0x28")](c)&&a.checkChild(c,"$text")){if(!r[Ex("0x25")][Ex("0x2d")](i[Ex("0x1e")],n[Ex("0x4")]))return;const t=r.writer.createUIElement(Ex("0x7"),{class:Ex("0x1")}),s=r[Ex("0xe")].toViewPosition(x);e&&o[Ex("0x20")][Ex("0x21")](i[Ex("0x2c")])&&r[Ex("0x31")][Ex("0x2e")](Ex("0x1f"),t),r.writer.insert(s,t),r[Ex("0xe")][Ex("0x6")](t,i.markerName)}}}const yx=["has","get","afterInit","formatInline","*Remove all formatting*","commandName","formatBlock","removeFormat","TrackChangesEditing","plugins","editor","type","registerDescriptionCallback","RemoveFormatEditing","format"];var Cx,Ax;Cx=yx,Ax=151,function(t){for(;--t;)Cx.push(Cx.shift())}(++Ax);const kx=function(t,e){return yx[t-=0]};class Ix extends t.Plugin{[kx("0x1")](){const t=this[kx("0x9")];t.plugins[kx("0xe")](kx("0xc"))&&(t[kx("0x8")][kx("0x0")](kx("0x7"))._enableDefaultAttributesIntegration(kx("0x6")),this._registerLegacyDescription())}_registerLegacyDescription(){const t=this[kx("0x9")];t[kx("0x8")][kx("0x0")](kx("0x7"))._descriptionFactory[kx("0xb")]((e=>{if(kx("0x5")!=e.type&&kx("0x2")!=e[kx("0xa")])return;const{data:n}=e;return n&&kx("0x6")==n[kx("0x4")]?{type:kx("0xd"),content:Ji(t.locale,kx("0x3"))}:void 0}))}}const Rx=["has","trackChanges","goToNextRestrictedEditingException","get","RestrictedEditingModeEditing","editor","discardSuggestion","goToPreviousRestrictedEditingException","afterInit","plugins","acceptSuggestion","discardSelectedSuggestions","enableCommand","TrackChangesEditing"];var vx,Sx;vx=Rx,Sx=186,function(t){for(;--t;)vx.push(vx.shift())}(++Sx);const Lx=function(t,e){return Rx[t-=0]};class Nx extends t.Plugin{[Lx("0x4")](){const t=this[Lx("0x1")];if(!t[Lx("0x5")][Lx("0xa")](Lx("0x0")))return;const e=t[Lx("0x5")].get(Lx("0x9"));e.enableCommand(Lx("0x3")),e[Lx("0x8")](Lx("0xc"));const n=t.plugins[Lx("0xd")]("RestrictedEditingModeEditing");n.enableCommand(Lx("0xb")),n.enableCommand(Lx("0x6")),n[Lx("0x8")](Lx("0x2")),n[Lx("0x8")]("acceptAllSuggestions"),n[Lx("0x8")]("discardAllSuggestions"),n[Lx("0x8")]("acceptSelectedSuggestions"),n[Lx("0x8")](Lx("0x7"))}}const Mx=["TrackChangesEditing","showSuggestionHighlights","createPositionBefore","addClass","span","requires","high","split","createUIElement","locale","downcastDispatcher","markerName","ck-suggestion-marker-","addMarker:suggestion:deletion","enableCommand","element","data","writer","addMarker:suggestion:insertion","bindElementToMarker","options","insert","test","softBreak","getItems","deletion","activeMarkers","shiftEnter","toViewPosition","markerRange","editor","editing","init","mapper","model","_descriptionFactory","ELEMENT_LINE_BREAK","includes"];var wx,Ox;wx=Mx,Ox=499,function(t){for(;--t;)wx.push(wx.shift())}(++Ox);const Fx=function(t,e){return Mx[t-=0]};class Dx extends t.Plugin{static get[Fx("0x0")](){return[Eo.ShiftEnter]}[Fx("0x1b")](){const t=this[Fx("0x19")],e=t.plugins.get("TrackChangesEditing");e[Fx("0x9")](Fx("0x16")),t[Fx("0x1a")][Fx("0x5")].on(Fx("0xd"),Bx(t),{priority:Fx("0x1")}),t.editing.downcastDispatcher.on(Fx("0x8"),Bx(t),{priority:Fx("0x1")}),t[Fx("0xb")][Fx("0x5")].on("addMarker:suggestion",((e,n,i)=>{i[Fx("0xf")][Fx("0x22")]&&Bx(t,{showActiveMarker:!1})(e,n,i)})),e[Fx("0x1e")].registerElementLabel(Fx("0x12"),(e=>Ji(t[Fx("0x4")],Fx("0x1f"),e)))}}function Bx(t,{showActiveMarker:e=!0}={}){return(n,i,r)=>{const o=t.plugins.get(Fx("0x21"));if(!r.consumable[Fx("0x11")](i[Fx("0x18")],n.name))return;const s=t[Fx("0x1d")];for(const t of i[Fx("0x18")][Fx("0x13")]()){if(!t.is(Fx("0xa"),Fx("0x12")))continue;const n=Fx("0x14")==i[Fx("0x6")][Fx("0x2")](":")[1]?"merge":Fx("0x2"),x=r[Fx("0xc")][Fx("0x3")](Fx("0x25"),{class:Fx("0x7")+n}),a=r[Fx("0x1c")][Fx("0x17")](s[Fx("0x23")](t));e&&o[Fx("0x15")][Fx("0x20")](i[Fx("0x6")])&&r.writer[Fx("0x24")]("ck-suggestion-marker--active",x),r.writer[Fx("0x10")](a,x),r[Fx("0x1c")][Fx("0xe")](x,i[Fx("0x6")])}}}const Px=["restrictedEditingException","getRanges","FORMAT_RESTRICTED_DISABLED","document","formatBlock","model","editor","type","format","_descriptionFactory","get","plugins","locale","commandName","commands","enableCommand","StandardEditingModeEditing","value","isCollapsed","change","forceValue","from","selection","FORMAT_RESTRICTED_ENABLED","commandParams","formatInline","registerDescriptionCallback","TrackChangesEditing"];var Ux,jx;Ux=Px,jx=361,function(t){for(;--t;)Ux.push(Ux.shift())}(++jx);const Gx=function(t,e){return Px[t-=0]};class Vx extends t.Plugin{afterInit(){const t=this[Gx("0x9")],e=t[Gx("0x8")],n=t[Gx("0xf")];if(!t[Gx("0xe")].has(Gx("0x13")))return;const i=t[Gx("0xe")][Gx("0xd")](Gx("0x2")),r=Gx("0x3"),o=t[Gx("0x11")][Gx("0xd")](r);i[Gx("0x12")](r,((t,n={})=>{const s=e[Gx("0x6")][Gx("0x19")];if(s[Gx("0x15")])return void t(n);const x=void 0!==n[Gx("0x17")]?n[Gx("0x17")]:!o[Gx("0x14")];e[Gx("0x16")]((()=>{const t=Array[Gx("0x18")](s[Gx("0x4")]());for(const n of t){const t=x?[n]:Jr(r,n,e);for(const e of t)i.markInlineFormat(e,{commandName:r,commandParams:[{forceValue:x}]})}}))})),i[Gx("0xc")][Gx("0x1")]((t=>{if(Gx("0x7")!=t[Gx("0xa")]&&Gx("0x0")!=t.type)return;const{data:e}=t;return e&&e[Gx("0x10")]==r?e[Gx("0x1b")][0].forceValue?{type:"format",content:Ji(n,Gx("0x1a"))}:{type:Gx("0xb"),content:Ji(n,Gx("0x5"))}:void 0}))}}const Hx=["ghsAttributes","locale","DataSchema","get","registerDescriptionCallback","has","commandName","normalizeConfig","type","block","FORMAT_STYLE","GeneralHtmlSupport","commandParams","toLowerCase","_registerLegacyDescription","_registerInlineAttribute","add","style","registerAttributeLabel","_enableDefaultAttributesIntegration","config","formatBlock","_descriptionFactory","inline","editor","TrackChangesEditing","element","styleName","plugins","definitions","forceValue","*Remove format:* %0","_registerBlockAttribute"];var zx,Wx;zx=Hx,Wx=264,function(t){for(;--t;)zx.push(zx.shift())}(++Wx);const Kx=function(t,e){return Hx[t-=0]};class qx extends t.Plugin{afterInit(){const t=this[Kx("0x18")];if(!t[Kx("0x1c")][Kx("0x5")]("Style")||!t.plugins[Kx("0x5")]("DataSchema"))return;const e=t[Kx("0x1c")][Kx("0x3")]("TrackChangesEditing"),n=t.locale,i=t[Kx("0x14")][Kx("0x3")]("style"),r=t[Kx("0x1c")].get(Kx("0xb")),o=t.plugins[Kx("0x3")]("StyleUtils")[Kx("0x7")](t[Kx("0x1c")][Kx("0x3")](Kx("0x2")),i[Kx("0x1d")]);e[Kx("0x13")]("style");const s=new Set;for(const t of o[Kx("0x9")]){const e=r.getGhsAttributeNameForElement(t[Kx("0x1a")]);s[Kx("0x10")](e)}const x=new Set;for(const t of o[Kx("0x17")]){const e=r.getGhsAttributeNameForElement(t[Kx("0x1a")]);x[Kx("0x10")](e);for(const e of t[Kx("0x0")])x[Kx("0x10")](e)}for(const t of s)e[Kx("0x20")](t),e[Kx("0x16")][Kx("0x12")](t,Ji(n,"FORMAT_STYLE"));for(const t of x)e[Kx("0xf")](t),e._descriptionFactory[Kx("0x12")](t,Ji(n,Kx("0xa")));this._registerLegacyDescription()}[Kx("0xe")](){const t=this[Kx("0x18")],e=t[Kx("0x1")];t[Kx("0x1c")][Kx("0x3")](Kx("0x19"))[Kx("0x16")][Kx("0x4")]((t=>{if(Kx("0x15")!=t.type&&"formatInline"!=t[Kx("0x8")])return;const{data:n}=t;return n&&Kx("0x11")===n[Kx("0x6")]?n[Kx("0xc")][0][Kx("0x1e")]?{type:"format",content:Ji(e,"*Set format:* %0",n[Kx("0xc")][0][Kx("0x1b")][Kx("0xd")]())}:{type:"format",content:Ji(e,Kx("0x1f"),n[Kx("0xc")][0][Kx("0x1b")][Kx("0xd")]())}:void 0}))}}const $x=["getRanges","insertTableColumnLeft","highest","options","push","includes","registerCustomCallback","afterInit","accept","item","registerDescriptionCallback","differ","MIN_SAFE_INTEGER","rowspan","values","order","model","selectTableColumn","has","startsWith","_suggestionFactory","createRangeIn","getSelectionAffectedTableCells","insertion","tableRow","deletion","nodeBefore","isEqual","TrackChangesEditing","last","getContainedElement","span","markMultiRangeInsertion","low","findAncestor","showSuggestionHighlights","$textProxy","some","end","name","enableCommand","join","tableCell","maxColumn","from","type","refresh","above","left","removeTableColumn","registerElementLabel","commands","execute","table","_splitMarkerName","max","discard","ELEMENT_TABLE_WITH_TEXT","getColumnIndexes","plugins","_getSuggestionCoords","getRowIndexes","TableUtils","ELEMENT_TABLE_COLUMN_WITH_TEXT","cell","getChanges","setSelection","root","getItems","hasAttribute","createRangeOn","min","nodeAfter","get","getFirstRange","_tableSuggestions","isArray","tableColumn","MAX_SAFE_INTEGER","locale","insertTableRowAbove","filter","getSuggestion","getChangedMarkers","forceValue","fromRange","length","classes","createTableWalker","selectTableRow","every","ELEMENT_TABLE_COLUMN","getChildren","_descriptionFactory","insertTable","start","rootName","isTouching","data","batch","substr","*Insert:* %0","_acceptFormatSuggestionCallbackFactory","registerPostFixer","first","enqueueChange","ELEMENT_TABLE_ROW","getCellLocation","_getCoordsForCells","ELEMENT_TABLE_ROW_WITH_TEXT","removeTableRow","position","insertTableRowBelow","*Remove:* %0","addRange","toLowerCase","oldRange","detach","document","map","$graveyard","downcastDispatcher","subType","_setupColumnsRowsFixing","getAttribute","editor","change","_tablePostFixingSubtypes","createPositionAt"];var Xx,Zx;Xx=$x,Zx=494,function(t){for(;--t;)Xx.push(Xx.shift())}(++Zx);const Yx=function(t,e){return $x[t-=0]};class Jx extends t.Plugin{constructor(t){super(t),this[Yx("0x14")]=[Yx("0x2e"),Yx("0x63")],this[Yx("0x61")]=new Set}[Yx("0x1d")](){const t=this[Yx("0x12")],e=t[Yx("0x26")][Yx("0xb")].selection;if(!t[Yx("0x51")][Yx("0x28")]("TableEditing"))return;const n=t[Yx("0x65")],i=t[Yx("0x51")].get(Yx("0x32")),r=t.plugins.get(Yx("0x54"));i._descriptionFactory[Yx("0x48")]("table",(t=>Ji(n,"ELEMENT_TABLE",t))),this._setupColumnsRowsFixing(),i[Yx("0x3e")](Yx("0x74")),i[Yx("0x3e")](Yx("0x6f")),i[Yx("0x3e")](Yx("0x27"));for(const n of[Yx("0x66"),Yx("0x5")]){const o=t[Yx("0x49")][Yx("0x5f")](n);i[Yx("0x3e")](n,(n=>{t.model[Yx("0x13")]((t=>{n();const s=Yx("0x45")===o[Yx("0x25")],x=r[Yx("0x2c")](e),a=r[Yx("0x53")](x),c=s?a.first-1:a[Yx("0x33")]+1,l=x[0][Yx("0x38")](Yx("0x4b")),u=r.createTableWalker(l,{startRow:c,endRow:c}),d=Array[Yx("0x42")](u)[Yx("0xc")]((e=>t[Yx("0x5c")](e[Yx("0x56")])));i[Yx("0x36")](d,Yx("0x2e"))}))}))}for(const n of[Yx("0x17"),"insertTableColumnRight"]){const o=t[Yx("0x49")][Yx("0x5f")](n);i[Yx("0x3e")](n,(n=>{t.model[Yx("0x13")]((t=>{n();const s=Yx("0x46")===o[Yx("0x25")],x=r.getSelectionAffectedTableCells(e),a=r.getColumnIndexes(x),c=s?a.first-1:a[Yx("0x33")]+1,l=x[0][Yx("0x38")](Yx("0x4b")),u=r[Yx("0x6e")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Yx("0x42")](u)[Yx("0xc")]((e=>t.createRangeOn(e[Yx("0x56")])));i[Yx("0x36")](d,"tableColumn")}))}))}for(const n of[Yx("0x3"),"removeTableColumn"]){const o=n[Yx("0x7a")](11),s=o[Yx("0x8")](),x=s[Yx("0x7a")](0,3)+"span",a=Yx("0x4b")+o,c=Yx("0x5d")+o,l="max"+o;i[Yx("0x3e")](n,(()=>{t[Yx("0x26")].change((t=>{const o=r[Yx("0x2c")](e),u=o[0].findAncestor("table");let d;if(Yx("0x3")==n){const t=r[Yx("0x53")](o);d={startRow:t[Yx("0x7e")],endRow:t[Yx("0x33")],includeAllSlots:!0}}else{const t=r[Yx("0x50")](o);d={startColumn:t[Yx("0x7e")],endColumn:t[Yx("0x33")],includeAllSlots:!0}}const g=r[Yx("0x6e")](u,d),f=Array[Yx("0x42")](g).map((({cell:t})=>t)),h=Qx(f[Yx("0x67")]((t=>t.hasAttribute(x)))),m=Qx(f[Yx("0x67")]((t=>!t[Yx("0x5b")](x))))[Yx("0xc")]((e=>t[Yx("0x5c")](e))),p=i.markMultiRangeDeletion(m,a);if(p&&(Yx("0x2e")==p[Yx("0xf")]||"tableColumn"==p.subType)){const e=this[Yx("0x52")](p);for(const n of h){const i=t[Yx("0x5c")](n),o=r[Yx("0x0")](n),a=n[Yx("0x11")](x)-1,u=e[c],d=e[l];u<=o[s]&&o[s]+a<=d&&p.addRange(i)}}}))}))}function o(n){const i=Array[Yx("0x42")](e[Yx("0x16")]())[Yx("0xc")]((t=>s.LiveRange.fromRange(t)));t[Yx("0x26")][Yx("0x13")]((e=>{const r=e[Yx("0x79")];n=n[Yx("0x67")]((t=>Yx("0xd")!=t[Yx("0x59")][Yx("0x76")])),e[Yx("0x58")](n),t[Yx("0x49")][Yx("0x5f")](Yx("0x3"))[Yx("0x44")](),t[Yx("0x4a")](Yx("0x3"),{forceDefaultExecution:!0}),t.model.enqueueChange((()=>{t.model[Yx("0x7f")](r,(t=>{const e=i[Yx("0x67")]((t=>"$graveyard"!=t.root[Yx("0x76")]));e[Yx("0x6c")]>0&&t[Yx("0x58")](e);for(const t of i)t.detach()}))}))}))}function a(n){t[Yx("0x26")][Yx("0x13")]((i=>{const r=Array.from(e[Yx("0x16")]()).map((t=>s.LiveRange[Yx("0x6b")](t))),o=[];for(const t of n)for(const e of t[Yx("0x5a")]({shallow:!0}))o[Yx("0x1a")](e);for(const e of o)Yx("0xd")!=e[Yx("0x59")].rootName&&(i[Yx("0x58")](i[Yx("0x15")](e,0)),t[Yx("0x49")][Yx("0x5f")]("removeTableColumn")[Yx("0x44")](),t.execute(Yx("0x47"),{forceDefaultExecution:!0}));const x=r[Yx("0x67")]((t=>Yx("0xd")!=t.root[Yx("0x76")]));x[Yx("0x6c")]>0&&i[Yx("0x58")](x);for(const t of r)t[Yx("0xa")]()}))}function c(t,e){return e[Yx("0x70")]((e=>t[Yx("0x3b")]((t=>t[Yx("0x3c")][Yx("0x31")](e.start)||e[Yx("0x3c")].isEqual(t[Yx("0x75")])))))}function l(t,e){return t[Yx("0x3b")]((t=>e[Yx("0x3b")]((e=>t[Yx("0x3c")][Yx("0x77")](e[Yx("0x75")])))))}t[Yx("0x78")][Yx("0xe")].on("addMarker:suggestion",((t,e,n)=>{if(!n[Yx("0x19")][Yx("0x39")])return;const i=e[Yx("0x1f")];if(!i)return;const r=n.mapper.toViewElement(i);function o(t){return Array[Yx("0x62")](t)?t:[t]}r&&Yx("0x40")===i[Yx("0x3d")]&&(0,x.setHighlightHandling)(r,n.writer,((t,e,n)=>n.addClass(o(e[Yx("0x6d")]),t)),((t,e,n)=>n.removeClass(o(e[Yx("0x6d")]),t)))}),{priority:Yx("0x18")}),i[Yx("0x73")][Yx("0x20")]((t=>{if(Yx("0x2d")!=t[Yx("0x43")]&&"deletion"!=t[Yx("0x43")])return;const e=t[Yx("0x34")]();if(null!=e&&e.is("element",Yx("0x4b"))){if(Yx("0x2d")==t[Yx("0x43")]){const e=t[Yx("0x5a")]()[Yx("0x67")]((t=>t.is(Yx("0x3a"))))[Yx("0xc")]((t=>t[Yx("0x78")]));if(e.length)return{type:"insertion",content:Ji(n,"*Insert:* %0",Ji(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e.join(" ")+'"'))}}if(Yx("0x2f")==t.type){const e=t[Yx("0x5a")]()[Yx("0x67")]((t=>t.is(Yx("0x3a"))))[Yx("0xc")]((t=>t[Yx("0x78")]));if(e.length)return{type:"deletion",content:Ji(n,Yx("0x6"),Ji(n,Yx("0x4f"),'"'+e[Yx("0x3f")](" ")+'"'))}}}})),i[Yx("0x73")][Yx("0x20")]((t=>{if("tableRow"==t.subType){const e=t[Yx("0x5a")]().filter((t=>t.is(Yx("0x3a")))).map((t=>t[Yx("0x78")])),i=this._getSuggestionCoords(t),r=i.maxRow-i.minRow+1;if("insertion"==t[Yx("0x43")])return e.length?{type:Yx("0x2d"),content:Ji(n,Yx("0x7b"),Ji(n,Yx("0x2"),[r,'"'+e.join(" ")+'"']))}:{type:"insertion",content:Ji(n,Yx("0x7b"),Ji(n,Yx("0x80"),r))};if(Yx("0x2f")==t[Yx("0x43")])return e[Yx("0x6c")]?{type:"deletion",content:Ji(n,Yx("0x6"),Ji(n,Yx("0x2"),[r,'"'+e.join(" ")+'"']))}:{type:Yx("0x2f"),content:Ji(n,"*Remove:* %0",Ji(n,Yx("0x80"),r))}}if("tableColumn"==t[Yx("0xf")]){const e=t[Yx("0x5a")]()[Yx("0x67")]((t=>t.is(Yx("0x3a")))).map((t=>t.data)),i=this[Yx("0x52")](t),r=i[Yx("0x41")]-i.minColumn+1;if(Yx("0x2d")==t[Yx("0x43")])return e[Yx("0x6c")]?{type:Yx("0x2d"),content:Ji(n,Yx("0x7b"),Ji(n,Yx("0x55"),[r,'"'+e.join(" ")+'"']))}:{type:Yx("0x2d"),content:Ji(n,Yx("0x7b"),Ji(n,"ELEMENT_TABLE_COLUMN",r))};if("deletion"==t[Yx("0x43")])return e[Yx("0x6c")]?{type:Yx("0x2f"),content:Ji(n,Yx("0x6"),Ji(n,Yx("0x55"),[r,'"'+e[Yx("0x3f")](" ")+'"']))}:{type:Yx("0x2f"),content:Ji(n,Yx("0x6"),Ji(n,Yx("0x71"),r))}}})),i[Yx("0x2a")][Yx("0x1c")](Yx("0x2d"),"tableRow",Yx("0x4e"),o),i._suggestionFactory.registerCustomCallback("deletion","tableRow",Yx("0x1e"),o),i[Yx("0x2a")][Yx("0x1c")](Yx("0x2d"),"tableColumn","discard",a),i[Yx("0x2a")][Yx("0x1c")]("deletion",Yx("0x63"),Yx("0x1e"),a),i[Yx("0x2a")][Yx("0x1c")](Yx("0x2d"),Yx("0x63"),Yx("0x3f"),c),i[Yx("0x2a")][Yx("0x1c")](Yx("0x2f"),Yx("0x63"),Yx("0x3f"),c),i[Yx("0x2a")].registerCustomCallback("insertion",Yx("0x2e"),"join",l),i[Yx("0x2a")][Yx("0x1c")](Yx("0x2f"),Yx("0x2e"),Yx("0x3f"),l)}[Yx("0x7c")](){const t=this[Yx("0x12")],e=t.model[Yx("0xb")].selection;return(n,i)=>{t[Yx("0x26")].change((r=>{const{commandName:o,commandParams:x}=i;let a=n[0][Yx("0x3c")][Yx("0x30")];x&&x[0]&&!1===x[0][Yx("0x6a")]&&(a=n[0][Yx("0x75")][Yx("0x5e")]);const c=r[Yx("0x2b")](a);if("$graveyard"==c[Yx("0x59")].rootName)return;const l=Array.from(e[Yx("0x16")]()).map((t=>s.LiveRange.fromRange(t)));r[Yx("0x58")](c),t[Yx("0x49")].get(o)[Yx("0x44")](),x.push({forceDefaultExecution:!0}),t.execute(o,...x);const u=l[Yx("0x67")]((t=>"$graveyard"!=t[Yx("0x59")][Yx("0x76")]));u[Yx("0x6c")]>0&&r.setSelection(u);for(const t of l)t[Yx("0xa")]()}))}}_getCoordsForCells(t){const e=this[Yx("0x12")][Yx("0x51")][Yx("0x5f")](Yx("0x54"));let n=Number[Yx("0x64")],i=Number[Yx("0x22")],r=Number[Yx("0x64")],o=Number[Yx("0x22")];for(const s of t){if(Yx("0xd")==s.root[Yx("0x76")])continue;const{row:t,column:x}=e.getCellLocation(s),a=s[Yx("0x5b")](Yx("0x23"))?s[Yx("0x11")](Yx("0x23"))-1:0,c=s.hasAttribute("colspan")?s[Yx("0x11")]("colspan")-1:0;n=t<n?t:n,i=t+a>i?t+a:i,r=x<r?x:r,o=x+c>o?x+c:o}return{minRow:n,maxRow:i,minColumn:r,maxColumn:o}}[Yx("0x10")](){const t=this[Yx("0x12")],e=t[Yx("0x51")][Yx("0x5f")](Yx("0x32")),n=t.plugins[Yx("0x5f")]("TableUtils");t[Yx("0x26")][Yx("0xb")].on("change:data",(()=>{const n=Array[Yx("0x42")](t[Yx("0x26")][Yx("0xb")][Yx("0x21")][Yx("0x69")]());for(const{name:t,data:i}of n){const{group:n,id:r,subType:o}=e[Yx("0x4c")](t);if("suggestion"!=n)continue;if(null!=i[Yx("0x9")])continue;const s=e[Yx("0x68")](r);this._tablePostFixingSubtypes[Yx("0x1b")](o)&&this[Yx("0x61")].add(s)}}),{priority:Yx("0x37")});const i=(t,e)=>{let i=!1;const r=e[Yx("0x5c")](t),o=t.findAncestor("table"),s=n[Yx("0x0")](t);for(const e of this[Yx("0x61")]){const n=e[Yx("0xf")],x=n[Yx("0x29")]("tablePaste"),a=n[Yx("0x7a")](x?10:5),c=a[Yx("0x8")](),l=c[Yx("0x7a")](0,3)+Yx("0x35"),u="min"+a,d=Yx("0x4d")+a;if(!e.isInContent)continue;if(o!=e[Yx("0x60")]()[Yx("0x75")].findAncestor(Yx("0x4b")))continue;if(e.isIntersectingWithRange(r))continue;const g=t[Yx("0x5b")](l)?t.getAttribute(l)-1:0,f=this[Yx("0x52")](e),h=f[u],m=f[d];h<=s[c]&&s[c]+g<=m&&(e[Yx("0x7")](r),i=!0)}return i};t[Yx("0x26")].document[Yx("0x7d")]((e=>{let n=!1;for(const r of t[Yx("0x26")][Yx("0xb")][Yx("0x21")][Yx("0x57")]())if("insert"==r.type)if(Yx("0x2e")==r[Yx("0x3d")])for(const t of r[Yx("0x4")][Yx("0x5e")][Yx("0x72")]())n=n||i(t,e);else Yx("0x40")==r[Yx("0x3d")]&&(n=n||i(r.position[Yx("0x5e")],e));return n}))}[Yx("0x52")](t){return this[Yx("0x1")](t[Yx("0x16")]().map((t=>t[Yx("0x75")][Yx("0x5e")])))}}function Qx(t){return Array[Yx("0x42")](new Set(t)[Yx("0x24")]())}const ta=["accept","has","root","value","stop","push","selection","getCellLocation","getSuggestions","highest","splitTableCellHorizontally","_areSelectedCellsMergable","isInContent","registerDescriptionCallback","get","from","mergeTableCells","add","type","mergeTableCellLeft","forceDefaultExecution","getAncestors","subType","document","return","markMultiRangeBlockFormat","TrackChangesEditing","formatInline","_isForcedDefaultExecutionBlock","TableUtils","createRangeOn","direction","_areMergableCells","isEnabled","getFirstPosition","refresh","length","findAncestor","editor","containsRange","setSelection","registerCustomCallback","commandName","set:isEnabled","author","TableEditing","*Split cell:* vertically","table","format","createTableWalker","afterInit","rootName","enableCommand","getRanges","change","size","trackChanges","_acceptFormatSuggestionCallbackFactory","_suggestionFactory","tableCell","mergeTableCellUp","execute","*Split cell:* horizontally","plugins","element","low","map","commands","splitTableCellVertically","formatBlock","model","mergeTableCellDown","requires","$graveyard","insertion","cell","mergeTableCellRight","find","filter"];var ea,na;ea=ta,na=379,function(t){for(;--t;)ea.push(ea.shift())}(++na);const ia=function(t,e){return ta[t-=0]};class ra extends t.Plugin{static get[ia("0x9")](){return[Jx]}[ia("0x42")](){const t=this[ia("0x36")],e=t.model[ia("0x27")][ia("0x16")],n=t.locale;if(!t[ia("0x0")][ia("0x11")](ia("0x3d")))return;const i=t[ia("0x0")].get(ia("0x2a")),r=t[ia("0x0")].get(ia("0x2d")),o=t.plugins.get(Jx);o._tablePostFixingSubtypes[ia("0x15")](ia("0x20")),i[ia("0x44")](ia("0x20"),(()=>{const e=r.getSelectionAffectedTableCells(t[ia("0x7")][ia("0x27")][ia("0x16")]);t[ia("0x7")].change((()=>{i[ia("0x29")](e,{commandName:ia("0x20"),commandParams:[]},[],ia("0x20"))}))})),t[ia("0x4")][ia("0x1e")](ia("0x20")).on(ia("0x4d"),((e,n)=>{t[ia("0x4")][ia("0x1e")](ia("0x48"))[ia("0x13")]&&(n[ia("0x34")]>0&&n[n[ia("0x34")]-1]&&n[n[ia("0x34")]-1][ia("0x24")]||i[ia("0x2c")]||this._areSelectedCellsMergable()||e.stop())}),{priority:ia("0x19")});for(const e of[ia("0x4c"),ia("0xd"),ia("0x8"),ia("0x23")]){const n=t[ia("0x4")][ia("0x1e")](e);i[ia("0x44")](e,(()=>{const e=t[ia("0x7")][ia("0x27")][ia("0x16")][ia("0x32")]().getAncestors()[ia("0xe")]((t=>t.is(ia("0x1"),ia("0x4b")))),r=n[ia("0x13")];t[ia("0x7")][ia("0x46")]((()=>{i[ia("0x29")]([e,r],{commandName:ia("0x20"),commandParams:[]},[],ia("0x20"))}))}))}for(const e of[ia("0x5"),ia("0x1a")]){const n=t.commands[ia("0x1e")](e);i.enableCommand(e,(()=>{const o=r.getSelectionAffectedTableCells(t.model.document.selection)[0],s=o[ia("0x35")](ia("0x3f")),{column:x,row:a}=r[ia("0x17")](o);let c=[];if("horizontally"==n[ia("0x2f")]){const t=r.createTableWalker(s,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[ia("0x1f")](t)[ia("0x3")]((t=>t[ia("0xc")]))}else{const t=r[ia("0x41")](s,{column:x,includeAllSlots:!0});c=Array[ia("0x1f")](t)[ia("0x3")]((t=>t[ia("0xc")]))}t[ia("0x7")][ia("0x46")]((t=>{i.markBlockFormat(t[ia("0x2e")](o),{commandName:e,commandParams:[]},c,e)}))}))}i._descriptionFactory[ia("0x1d")]((t=>{if(ia("0x6")!=t.type&&"formatInline"!=t[ia("0x22")])return;const{data:e}=t;return e&&"mergeTableCells"==e.commandName?{type:ia("0x40"),content:Ji(n,"*Merge cells*")}:void 0})),i._descriptionFactory[ia("0x1d")]((t=>{if(ia("0x6")!=t[ia("0x22")]&&ia("0x2b")!=t[ia("0x22")])return;const{data:e}=t;return e?ia("0x5")==e[ia("0x3a")]?{type:ia("0x40"),content:Ji(n,ia("0x3e"))}:ia("0x1a")==e[ia("0x3a")]?{type:ia("0x40"),content:Ji(n,ia("0x4e"))}:void 0:void 0}));const x=o[ia("0x49")]();for(const t of[ia("0x4c"),ia("0xd"),ia("0x8"),"mergeTableCellLeft"])i[ia("0x4a")][ia("0x39")]("formatBlock",t,ia("0x10"),x);for(const t of["splitTableCellVertically",ia("0x1a")])i._suggestionFactory[ia("0x39")](ia("0x6"),t,"accept",x);i._suggestionFactory[ia("0x39")]("formatBlock","mergeTableCells",ia("0x10"),(n=>{t.model.change((i=>{const r=Array.from(e.getRanges())[ia("0x3")]((t=>s.LiveRange.fromRange(t)));i[ia("0x38")](n),t[ia("0x4")][ia("0x1e")](ia("0x20"))[ia("0x33")](),t[ia("0x4d")](ia("0x20"),{forceDefaultExecution:!0});const o=r[ia("0xf")]((t=>ia("0xa")!=t[ia("0x12")][ia("0x43")]));o[ia("0x34")]>0&&i[ia("0x38")](o);for(const t of r)t.detach()}))}));for(const e of[ia("0x4c"),ia("0x8"),ia("0x23"),ia("0xd")]){const n=t[ia("0x4")].get(e);n.on(ia("0x3b"),((e,i,r)=>{if(r){const i=t[ia("0x7")][ia("0x27")][ia("0x16")][ia("0x32")]()[ia("0x25")]()[ia("0xe")]((t=>t.is(ia("0x1"),ia("0x4b"))));this._areMergableCells(n.value,i)||(e[ia("0x28")]=!1,e[ia("0x14")]())}}),{priority:ia("0x2")})}}[ia("0x1b")](){const t=this.editor[ia("0x4")].get(ia("0x20")),e=this[ia("0x36")].plugins[ia("0x1e")](ia("0x2d"));if(!t[ia("0x31")])return!1;const n=e.getSelectionAffectedTableCells(this.editor[ia("0x7")][ia("0x27")][ia("0x16")]);for(const t of n)for(const e of n)if(t!=e&&!this[ia("0x30")](t,e))return!1;return!0}_areMergableCells(t,e){const n=this[ia("0x36")].plugins[ia("0x1e")](ia("0x2a")),i=this[ia("0x36")][ia("0x7")][ia("0x2e")](t),r=this.editor[ia("0x7")][ia("0x2e")](e),o=new Set,s=new Set;for(const t of n[ia("0x18")]())if((ia("0xb")==t[ia("0x22")]||"deletion"==t[ia("0x22")]||ia("0x20")==t[ia("0x26")])&&t[ia("0x1c")])for(const e of t[ia("0x45")]())e[ia("0x37")](i,!0)&&o.add(t[ia("0x22")]+":"+t.author.id),e[ia("0x37")](r,!0)&&s[ia("0x21")](t[ia("0x22")]+":"+t[ia("0x3c")].id);if(o[ia("0x47")]!=s[ia("0x47")])return!1;for(const t of o)if(!s[ia("0x11")](t))return!1;return!0}}const oa=["stop","TableUtils","mapper","setTableRowHeader","editing","_acceptFormatSuggestionCallbackFactory","removeClass","requires","nodeAfter","bindElementToMarker","showSuggestionHighlights","getCellLocation","highest","removeAttribute","registerAttributeLabel","item","markerRange","_descriptionFactory","forceValue","writer","formatBlock","editor","consumable","includes","FORMAT_HEADER_ROW","has","name","*Format:* %0","format","TableEditing","type","TrackChangesEditing","data","parent","plugins","registerCustomCallback","locale","_registerLegacyDescription","_suggestionFactory","ck-suggestion-marker-","addMarker:suggestion","activeMarkers","commandParams","registerDescriptionCallback","afterInit","setAttribute","commandName","ck-suggestion-marker--active","data-suggestion","get","FORMAT_HEADER_COLUMN","setTableColumnHeader","downcastDispatcher","markerName","start","headingRows","removeMarker:suggestion","_splitMarkerName","unbindElementFromMarkerName","end","cell","nodeBefore","_enableDefaultAttributesIntegration","accept","consume","markerNameToElements"];var sa,xa;sa=oa,xa=456,function(t){for(;--t;)sa.push(sa.shift())}(++xa);const aa=function(t,e){return oa[t-=0]};class ca extends t.Plugin{static get[aa("0xd")](){return[Jx]}[aa("0x32")](){const t=this[aa("0x1b")];if(!t[aa("0x28")][aa("0x1f")](aa("0x23")))return;const e=t[aa("0x2a")],n=t[aa("0x28")][aa("0x37")]("TrackChangesEditing");n[aa("0x2")](aa("0x9"),[],[aa("0x3d")]),n[aa("0x2")]("setTableColumnHeader",[],["headingColumns"]),n._descriptionFactory[aa("0x14")](aa("0x3d"),Ji(e,aa("0x1e"))),n[aa("0x17")][aa("0x14")]("headingColumns",Ji(e,aa("0x38"))),this._handleLegacySuggestions()}_handleLegacySuggestions(){const t=this.editor[aa("0x28")][aa("0x37")](aa("0x25")),e=this[aa("0x1b")][aa("0x28")].get(aa("0x7")),n=this.editor[aa("0x28")][aa("0x37")](Jx)[aa("0xb")]();function i({showActiveMarker:n=!0,setDataAttribute:i=!0}={}){return(r,o,s)=>{const{type:x,id:a}=t[aa("0x3f")](o[aa("0x3b")]),c=t.getSuggestion(a),l=c[aa("0x26")];if(aa("0x1a")!=c.type||!l||"setTableColumnHeader"!=l.commandName)return;if(o[aa("0x15")])return void r[aa("0x6")]();if(!s[aa("0x1c")][aa("0x4")](o[aa("0x16")],r[aa("0x20")]))return;const u=o[aa("0x16")][aa("0x3c")][aa("0xe")],d=o[aa("0x16")][aa("0x41")][aa("0x1")],g=u[aa("0x27")][aa("0x27")],{column:f}=e[aa("0x11")](u),{column:h}=e[aa("0x11")](d);for(let r=f;r<=h;r++){const c=e.createTableWalker(g,{column:r,includeAllSlots:!1});for(const e of c){const r=e[aa("0x0")],c=s[aa("0x8")].toViewElement(r);s[aa("0x19")].addClass(aa("0x2d")+x,c),i&&s[aa("0x19")][aa("0x33")](aa("0x36"),a,c),s[aa("0x8")][aa("0xf")](c,o[aa("0x3b")]),n&&(t[aa("0x2f")][aa("0x1d")](o[aa("0x3b")])?s[aa("0x19")].addClass(aa("0x35"),c):s.writer[aa("0xc")](aa("0x35"),c))}}}}t[aa("0x2c")][aa("0x29")](aa("0x1a"),"setTableRowHeader","accept",n),t[aa("0x2c")][aa("0x29")](aa("0x1a"),aa("0x39"),aa("0x3"),n),this[aa("0x1b")].editing[aa("0x3a")].on("addMarker:suggestion",i(),{priority:"highest"}),this[aa("0x1b")][aa("0x26")][aa("0x3a")].on(aa("0x2e"),((t,e,n)=>{n.options[aa("0x10")]&&i({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:aa("0x12")}),this[aa("0x1b")][aa("0xa")].downcastDispatcher.on(aa("0x3e"),((e,n,i)=>{const{type:r,id:o}=t[aa("0x3f")](n[aa("0x3b")]),s=t.getSuggestion(o),x=s[aa("0x26")];if("formatBlock"!=s[aa("0x24")]||!x||aa("0x39")!=x[aa("0x34")])return;const a=i.mapper[aa("0x5")](n.markerName);if(a)for(const t of a)i[aa("0x19")].removeClass(aa("0x2d")+r,t),i.writer[aa("0xc")](aa("0x35"),t),i[aa("0x19")][aa("0x13")]("data-suggestion",t),i[aa("0x8")][aa("0x40")](t,n[aa("0x3b")])}),{priority:aa("0x12")}),this[aa("0x2b")]()}[aa("0x2b")](){const t=this.editor,e=t[aa("0x2a")];function n(t){return{type:aa("0x22"),content:Ji(e,aa("0x21"),t)}}t[aa("0x28")][aa("0x37")]("TrackChangesEditing")[aa("0x17")][aa("0x31")]((t=>{if("formatBlock"!=t[aa("0x24")])return;const{data:i}=t;if(i){if(aa("0x9")==i[aa("0x34")]){const t=i[aa("0x30")][0][aa("0x18")];return n(Ji(e,t?aa("0x1e"):"FORMAT_REGULAR_ROW"))}if(aa("0x39")==i[aa("0x34")]){const t=i.commandParams[0][aa("0x18")];return n(Ji(e,t?aa("0x38"):"FORMAT_REGULAR_COLUMN"))}}}))}}const la=["previous","insertColumns","high","markerName","isEmpty","redo","end","locale","getSuggestionCallback","getChild","Users","getSuggestions","createRangeIn","_getCoordsForCells","createPositionBefore","document","removeMarkers","markerAttributes","plugins","markers","showSuggestionHighlights","getAttributes","low","getTableIfOnlyTableInContent","getAllAdjacentSuggestions","getSelectionAffectedTableCells","TableUtils","fromEntries","_suggestionFactory","createRange","markMultiRangeDeletion","registerCustomCallback","tableCellPadding","keys","requires","editingDowncast","tableCellSuggestion","add","markMultiRangeInsertion","getRows","remove","differ","conversion","createRangeOn","_tablePostFixingSubtypes","element","paragraph","getItems","updateMarker","tablePasteChainId","clipboardOutput","name","getChangedMarkers","removeRows","dataDowncast","rowInsertionRanges","for","reduce","columnInsertionRanges","getSuggestion","_splitMarkerName","rowInsertionIndexes","getColumnIndexes","getRange","model","insertContent","value","every","tableCellBorderWidth","cells","insertionRanges","deletionRanges","registerPostFixer","$graveyard","position","listenTo","insert","map","tableCellBorderStyle","tablePasteCell","some","previousSibling","removeColumns","join","suggestion:formatBlock:tablePasteCell","register","discard","_isForcedDefaultExecutionBlock","findAncestor","insertion","accept","createElement","getRanges","rootName","markerToHighlight","start","getChildren","elementToElement","root","content","getRowIndexes","attributes","unwrap","forceDefaultExecution","removeMarker","suggestion","editor","push","cell","getMarkers","commands","schema","nodeAfter","fill","subType","filter","containsRange","endColumn","tablePasteRow","*Replace table cells*","next","_replaceTableSlotCell","startsWith","stop","deletion","first","length","tableCellBackgroundColor","setAttribute","rows","selection","formatBlock","tablePasteColumn","hasSuggestion","tableCellVerticalAlignment","isInContent","afterInit","batch","author","tableCellBorderColor","set","columnInsertionIndexes","nextSibling","from","_descriptionFactory","get","tableCellHorizontalAlignment","newRange","column","TableClipboard","find","suggestionUnloaded","change","ck-suggestion-marker-insertion","oldRange","type","tablePaste","getContainedElement","row","suggestion-td","isEqual","includes","getChanges","tableCell","registerDescriptionCallback","ck-suggestion-marker","return","has","columns"];var ua,da;ua=la,da=169,function(t){for(;--t;)ua.push(ua.shift())}(++da);const ga=function(t,e){return la[t-=0]},fa=[ga("0x44"),ga("0x8b"),ga("0x4e"),ga("0x92"),ga("0x86"),ga("0x7f"),ga("0x20")],ha=Object[ga("0x1b")](fa.map((t=>[t,null])));class ma extends t.Plugin{static get[ga("0x22")](){return[Jx]}[ga("0x88")](){const t=this[ga("0x6a")];if(!t[ga("0x12")].has(ga("0x95")))return;const n=t[ga("0x12")][ga("0x91")]("TrackChangesEditing"),i=t[ga("0x12")][ga("0x91")](ga("0x1a")),r=t[ga("0x12")].get(Jx),o=t[ga("0x12")][ga("0x91")](ga("0x95"));r[ga("0x2c")].push(ga("0x76"),"tablePasteColumn"),t[ga("0x40")][ga("0x6f")][ga("0x55")](ga("0x24"),{allowIn:ga("0xa3"),allowContentOf:ga("0xa3"),isLimit:!0}),t[ga("0x2a")][ga("0x61")]({model:ga("0x24"),view:ga("0x9f")});let s=null;t[ga("0x40")].on(ga("0x41"),((r,x)=>{const[a,c]=x,l=x[x[ga("0x7e")]-1];l&&l[ga("0x67")]||n[ga("0x57")]||this.editor[ga("0x6e")].get("trackChanges")[ga("0x42")]&&function(t,e,n,i,r){if(e&&!e.is("documentSelection"))return!1;const o=r[ga("0x17")](t,n);if(!o||!ba(o,void 0,i))return!1;const s=i[ga("0x19")](n[ga("0xf")][ga("0x82")]);if(!s.length)return!1;const x=s[0].findAncestor("table"),a=i[ga("0x64")](s),c=i[ga("0x3e")](s),l={startRow:a[ga("0x7d")],endRow:a.last,startColumn:c.first,endColumn:c.last};return 1==s[ga("0x7e")]&&(l.endRow+=i[ga("0x27")](o)-1,l[ga("0x75")]+=i.getColumns(o)-1),ba(x,l,i)}(a,c,t[ga("0x40")],i,o)&&(r.stop(),s={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[ga("0x40")][ga("0x98")]((()=>{t[ga("0x40")][ga("0x41")](x[0],x[1],x[2],{forceDefaultExecution:!0});const i=(0,e.uid)(),{rowInsertionRanges:r,columnInsertionRanges:o,insertionRanges:a,deletionRanges:c,cells:l}=s;r[ga("0x7e")]&&n.markMultiRangeInsertion(r,ga("0x76"),{tablePasteChainId:i}),o[ga("0x7e")]&&n[ga("0x26")](o,"tablePasteColumn",{tablePasteChainId:i}),a[ga("0x7e")]&&n[ga("0x26")](a,ga("0x9c"),{tablePasteChainId:i,skipNestingCheck:!0}),c.length&&n[ga("0x1e")](c,"tablePaste",{tablePasteChainId:i,skipNestingCheck:!0});const u=n.markMultiRangeBlockFormat(l[ga("0x4d")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],"tablePasteCell",{tablePasteChainId:i});if(u){const e=u[ga("0x6d")](),n=[];for(const{element:i,attributes:r}of l){if(!r)continue;const o=t[ga("0x40")][ga("0x2b")](i),s=e[ga("0x96")]((t=>t[ga("0x3f")]()[ga("0xa0")](o)));s&&n[ga("0x6b")]([s[ga("0x33")],r])}n[ga("0x7e")]&&u[ga("0x80")](ga("0x11"),Object[ga("0x1b")](n))}s=null})))}),{priority:e.priorities[ga("0x2")]+10}),t[ga("0x12")][ga("0x91")](ga("0x95")).on(ga("0x79"),((t,e)=>{const[n,i,,r]=e;if(!s)return;t[ga("0x7b")]();const o=n[ga("0x6c")],x=i,a=pa(o),c=pa(x);t[ga("0xa6")]=o;let l=null,u=null;if(c||a)if(a&&!c){r[ga("0x28")](o[ga("0x9")](0));for(const t of Array.from(x[ga("0x60")]()))r[ga("0x4c")](t,o,ga("0x6"));const t=s.rowInsertionIndexes.includes(n[ga("0x9e")]),e=s[ga("0x8d")][ga("0xa1")](n[ga("0x94")]);t||e||(l=r[ga("0xc")](o))}else c&&!a&&(u=r.createRangeIn(o));else{const t=r.createElement(ga("0x24")),e=r[ga("0x5b")](ga("0x24"));r.wrap(r[ga("0xc")](o),e),r.insert(t,o,0);for(const e of Array[ga("0x8f")](x[ga("0x60")]()))r[ga("0x4c")](e,t,ga("0x6"));l=r[ga("0x2b")](t),u=r[ga("0x2b")](e)}const d=Array.from(x[ga("0x15")]())[ga("0x73")]((([t])=>fa[ga("0xa1")](t)));s[ga("0x45")][ga("0x6b")]({element:o,attributes:d.length?Object[ga("0x1b")](d):null}),l&&s[ga("0x46")][ga("0x6b")](l),u&&s[ga("0x47")].push(u)}),{priority:ga("0x2")}),i.on(ga("0x1"),((e,n)=>{const[r,o={}]=n;if(!s)return;const x=o.at||0,a=o[ga("0xa8")]||1;s[ga("0x8d")]=new Array(a)[ga("0x71")](x)[ga("0x4d")](((t,e)=>t+e));for(const{cell:e}of i.createTableWalker(r,{startColumn:x,endColumn:x+a-1}))s[ga("0x3a")][ga("0x6b")](t.model[ga("0x2b")](e))}),{priority:ga("0x16")}),i.on("insertRows",((e,n)=>{const[r,o={}]=n;if(!s)return;const x=o.at||0,a=o[ga("0x81")]||1;s[ga("0x3d")]=new Array(a)[ga("0x71")](x).map(((t,e)=>t+e));for(const{cell:e}of i.createTableWalker(r,{startRow:x,endRow:x+a-1}))s[ga("0x37")][ga("0x6b")](t[ga("0x40")][ga("0x2b")](e))}),{priority:ga("0x16")}),n[ga("0x90")][ga("0xa4")]((e=>{if(e.subType&&e[ga("0x72")].startsWith("tablePaste"))return e[ga("0x0")]?{}:{type:"insertion",content:Ji(t[ga("0x7")],ga("0x77"))}}));const x=()=>!1;for(const t of[ga("0x9c"),"tablePasteColumn",ga("0x76"),ga("0x4f")])n[ga("0x1c")][ga("0x1f")]("insertion",t,ga("0x53"),x),n[ga("0x1c")][ga("0x1f")](ga("0x7c"),t,ga("0x53"),x),n[ga("0x1c")].registerCustomCallback(ga("0x83"),t,ga("0x53"),x);n[ga("0x1c")][ga("0x1f")](ga("0x83"),ga("0x4f"),ga("0x56"),x),n[ga("0x1c")][ga("0x1f")](ga("0x83"),ga("0x4f"),ga("0x5a"),((e,n,i)=>{const r=e[ga("0x4d")]((t=>t[ga("0x9d")]()))[ga("0x73")]((t=>t)),o=new Map(r[ga("0x4d")]((t=>[t,null])));if(s)for(const{element:t,attributes:e}of s.cells)e&&o[ga("0x8c")](t,e);else if(i&&i[ga("0x11")])for(const[e,n]of Object.entries(i[ga("0x11")])){const i=t[ga("0x40")][ga("0x13")].get(e),r=i?i[ga("0x3f")]()[ga("0x9d")]():null;r&&o[ga("0x8c")](r,n)}t[ga("0x40")][ga("0x98")]((t=>{for(const[e,n]of o)t.setAttributes({...ha,...n},e)}))}));const a=(e,i)=>{n._suggestionFactory[ga("0x1f")](e,"tablePaste",i,((r,o,s)=>{t.model[ga("0x98")]((t=>{const x=[];for(const t of r){const e=t[ga("0x5f")][ga("0x70")];e.is(ga("0x2d"),"tableCellSuggestion")&&x[ga("0x6b")](e)}n._suggestionFactory[ga("0x8")](e,null,i)(r,o,s);for(const e of x)ga("0x49")!=e[ga("0x62")][ga("0x5d")]&&t[ga("0x66")](e)}))}))};a(ga("0x59"),ga("0x5a")),a(ga("0x59"),ga("0x56")),a(ga("0x7c"),ga("0x5a")),a(ga("0x7c"),ga("0x56")),n[ga("0x1c")][ga("0x1f")](ga("0x59"),ga("0x76"),ga("0x56"),(t=>{const e=t[ga("0x4d")]((t=>t.getContainedElement())),n=e[0].findAncestor("table"),{minRow:o,maxRow:s}=r[ga("0xd")](e);i[ga("0x35")](n,{at:o,rows:s-o+1})})),n[ga("0x1c")][ga("0x1f")](ga("0x59"),ga("0x84"),ga("0x56"),(t=>{const e=t[ga("0x4d")]((t=>t.getContainedElement())),n=e[0][ga("0x58")]("table"),{minColumn:o,maxColumn:s}=r[ga("0xd")](e);i[ga("0x52")](n,{at:o,columns:s-o+1})}));const c=(t,e)=>{if(!e.subType||!e[ga("0x72")].startsWith("tablePaste"))return;const i=e[ga("0x65")][ga("0x31")],r=n[ga("0xb")]()[ga("0x73")]((t=>t[ga("0x87")]&&t[ga("0x65")]&&t.attributes[ga("0x31")]==i));r[ga("0x7e")]&&e.getAllAdjacentSuggestions().length!=r[ga("0x7e")]&&r[ga("0x39")](((t,e)=>(t[ga("0x78")]=e,e.previous=t,e)))};function l(t,e=!0){const{id:i}=n._splitMarkerName(t[ga("0x3")]),r=[ga("0xa5"),ga("0x99")],o=n.activeMarkers[ga("0xa1")](t[ga("0x3")]);return o&&r[ga("0x6b")]("ck-suggestion-marker--active"),{classes:r,attributes:{"data-suggestion":i},priority:o&&e?3010:3e3}}n.on("suggestionLoaded",c,{priority:"high"}),n.on(ga("0x97"),c,{priority:ga("0x2")}),t[ga("0x40")][ga("0xf")][ga("0x48")]((()=>{let e=!1;const i=Array.from(t.model[ga("0xf")][ga("0x29")][ga("0x34")]());for(const{name:r,data:o}of i){const{group:i,type:s,id:x}=n[ga("0x3c")](r);if(ga("0x69")!=i||ga("0x7c")!=s||o[ga("0x9a")])continue;if(!n[ga("0x85")](x))continue;const a=n[ga("0x3b")](x).getRanges(),c=t[ga("0x12")][ga("0x91")](ga("0xa")).me;for(const t of n[ga("0xb")]())if(t[ga("0x87")]&&t[ga("0x8a")]==c&&ga("0x83")==t[ga("0x9b")]&&"tablePasteCell"==t[ga("0x72")]&&t[ga("0x5c")]()[ga("0x43")]((t=>a[ga("0x50")]((e=>e[ga("0x74")](t,!0))))))for(const n of t[ga("0x18")]())n[ga("0x87")]&&(n.discard(),e=!0)}return e})),t[ga("0x40")][ga("0xf")][ga("0x48")]((e=>{const i=t[ga("0x6e")][ga("0x91")](ga("0x5"));if(!i||!i._createdBatches.has(e[ga("0x89")]))return!1;let r=!1;const o=t.plugins[ga("0x91")]("Users").me,s=t.model.document[ga("0x29")][ga("0xa2")](),x=Array[ga("0x8f")](t[ga("0x40")][ga("0xf")][ga("0x29")][ga("0x34")]())[ga("0x73")]((({name:t,data:e})=>{const{group:i,subType:r,authorId:s}=n[ga("0x3c")](t);return"suggestion"==i&&ga("0x9c")==r&&s==o.id&&!e[ga("0x9a")]}));for(const t of s){if(ga("0x4c")!=t[ga("0x9b")]||ga("0x24")!=t.name||1!=t[ga("0x7e")])continue;const n=e[ga("0x1d")](t[ga("0x4a")],t[ga("0x4a")].getShiftedBy(1));if(!x.find((({data:t})=>t[ga("0x93")][ga("0xa0")](n))))for(const{name:t,data:i}of x)if(n[ga("0x74")](i[ga("0x93")])){e[ga("0x30")](t,{range:n}),r=!0;break}}return r})),t[ga("0x40")][ga("0xf")][ga("0x48")]((e=>{let i=!1;const r=t[ga("0x12")].get(ga("0xa")).me,o=n.getSuggestions()[ga("0x73")]((t=>t[ga("0x87")]&&t[ga("0x8a")]==r)),s=new Set,x=new Set;for(const t of o)if(ga("0x9c")==t[ga("0x72")])for(const e of t.getMarkers()){const n=e.getRange()[ga("0x9d")]();if(n)if(n.is("element",ga("0x24"))&&pa(n)){t.removeMarker(e.name),s.add(n),i=!0;const r=n[ga("0x8e")],o=n[ga("0x51")],a=r&&r.is(ga("0x2d"),ga("0x24")),c=o&&o.is("element",ga("0x24"));a&&!s.has(r)&&x[ga("0x25")](r),c&&!s[ga("0xa7")](o)&&x[ga("0x25")](o)}else n.is("element",ga("0x2e"))&&n[ga("0x4")]&&(t[ga("0x68")](e.name),i=!0)}else if(ga("0x4f")==t[ga("0x72")]){if(!t[ga("0x65")]||!t[ga("0x65")][ga("0x31")])continue;const e=t[ga("0x65")][ga("0x11")];if(e&&Object[ga("0x21")](e)[ga("0x7e")])continue;const n=t.attributes[ga("0x31")];let r=!0,s=!0;for(const e of o)if(e[ga("0x72")]&&e[ga("0x72")][ga("0x7a")](ga("0x9c"))){if(!e[ga("0x65")][ga("0x31")]){s=!1;break}if(e.id!=t.id&&e[ga("0x65")][ga("0x31")]==n){r=!1;break}}s&&r&&(t[ga("0x10")](),i=!0)}for(const t of s)e[ga("0x28")](t);for(const t of x)e[ga("0x66")](t);return i})),t[ga("0x2a")][ga("0x38")](ga("0x23"))[ga("0x5e")]({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>l(t),converterPriority:ga("0x2")}),t[ga("0x2a")][ga("0x38")](ga("0x36")).markerToHighlight({model:ga("0x54"),view:(t,e)=>e.options[ga("0x14")]?l(t,!1):null,converterPriority:ga("0x2")});const u=t.editing.view;this[ga("0x4b")](u[ga("0xf")],ga("0x32"),((t,e)=>{const n=[];for(const t of u.createRangeIn(e[ga("0x63")])[ga("0x2f")]())t.is(ga("0x2d"),ga("0x9f"))&&n[ga("0x6b")](t);u.change((t=>{for(const e of n)t.move(t.createRangeIn(e),t[ga("0xe")](e)),t[ga("0x28")](e)}))}))}}function pa(t){if(t[ga("0x4")])return!0;const e=t.getChild(0);return e.is(ga("0x2d"),"paragraph")&&e[ga("0x4")]}function ba(t,e={},n){for(const{isAnchor:i,cellHeight:r,cellWidth:o}of n.createTableWalker(t,{includeAllSlots:!0,...e}))if(!i||1!=r||1!=o)return!1;return!0}const Ea=["selection","getSelectedElement","subType","resizeTable","getColumnGroupElement","getContainedElement","getTableColumnsWidths","editor","formatBlock","table","formatInline","getSuggestions","columnWidths","enableCommand","markBlockFormat","registerCustomCallback","bind","tableWidth","model","type","Users","get","document","handleResizeTableWidthCommand","registerDescriptionCallback","discard","_suggestionFactory","TrackChangesEditing","commandParams","TableColumnResizeEditing","afterInit","has","_descriptionFactory","resizeTableWidth","plugins","format","change","locale","handleSuggestionDescription","getAttribute"];var _a,Ta;_a=Ea,Ta=488,function(t){for(;--t;)_a.push(_a.shift())}(++Ta);const ya=function(t,e){return Ea[t-=0]};class Ca extends t.Plugin{[ya("0x16")](){if(!this.editor.plugins[ya("0x17")](ya("0x15")))return;const t=this[ya("0x27")][ya("0x1a")][ya("0xd")]("TrackChangesEditing");t[ya("0x5")]("resizeTableWidth",this[ya("0xf")][ya("0x8")](this)),t[ya("0x12")][ya("0x7")](ya("0x0"),"resizeTable","accept",t[ya("0x12")].getSuggestionCallback(ya("0x0"),null,ya("0x11"))),t[ya("0x12")].registerCustomCallback("formatBlock",ya("0x23"),ya("0x11"),t[ya("0x12")].getSuggestionCallback(ya("0x0"),null,"accept")),t[ya("0x18")][ya("0x10")](this.handleSuggestionDescription.bind(this))}handleResizeTableWidthCommand(t,e){const n=this[ya("0x27")].plugins[ya("0xd")](ya("0x13")),i=this[ya("0x27")].plugins[ya("0xd")]("TableColumnResizeEditing"),r=e[ya("0x1")]||this[ya("0x27")][ya("0xa")][ya("0xe")][ya("0x20")][ya("0x21")]();this.editor.model[ya("0x1c")]((()=>{const o=i[ya("0x24")](r);let s=o?i[ya("0x26")](o):null,x=r[ya("0x1f")](ya("0x9"))||null;const a=e[ya("0x9")]||x,c=e[ya("0x4")]||s,l=this[ya("0x27")].plugins[ya("0xd")](ya("0xc")).me;for(const t of n[ya("0x3")]()){const e=t[ya("0x25")]();if(ya("0x23")===t[ya("0x22")]&&e===r){t.author!==l&&t[ya("0x11")]();const e=t.data[ya("0x14")];x=e[0][ya("0x9")],s=e[0][ya("0x4")];break}}t({table:r,tableWidth:a,columnWidths:c}),n[ya("0x6")](r,{commandName:ya("0x19"),commandParams:[{tableWidth:x,columnWidths:s}],formatGroupId:ya("0x23")},[],ya("0x23"))}))}[ya("0x1e")](t){if("formatBlock"!=t[ya("0xb")]&&ya("0x2")!=t.type)return;const{data:e}=t;if(e&&ya("0x23")===e.formatGroupId){const t="*Format:* resize table";return{type:ya("0x1b"),content:Ji(this[ya("0x27")][ya("0x1d")],t)}}}}const Aa=["afterInit","get","plugins","has","editor","Template"];var ka,Ia;ka=Aa,Ia=484,function(t){for(;--t;)ka.push(ka.shift())}(++Ia);const Ra=function(t,e){return Aa[t-=0]};class va extends t.Plugin{[Ra("0x2")](){const t=this[Ra("0x0")];t[Ra("0x4")][Ra("0x5")](Ra("0x1"))&&t[Ra("0x4")][Ra("0x3")]("TrackChangesEditing").enableCommand("insertTemplate")}}const Sa=["TrackChangesEditing","get","ELEMENT_TABLE_OF_CONTENTS","afterInit","tableOfContents","plugins","commands","locale","enableCommand"];var La,Na;La=Sa,Na=331,function(t){for(;--t;)La.push(La.shift())}(++Na);const Ma=function(t,e){return Sa[t-=0]};class wa extends t.Plugin{[Ma("0x5")](){const t=this.editor;if(!t[Ma("0x8")][Ma("0x3")]("insertTableOfContents"))return;t[Ma("0x7")][Ma("0x3")](Ma("0x2"))[Ma("0x1")]("insertTableOfContents");const e=t[Ma("0x7")][Ma("0x3")](Ma("0x2")),n=t[Ma("0x0")];e._descriptionFactory.registerElementLabel(Ma("0x6"),(t=>Ji(n,Ma("0x4"),t)))}}const Oa=["suggestion","isTouching","isEqual","registerElementLabel","Title","forward","createRange","_descriptionFactory","newRange","plugins","getChangedMarkers","document","has","schema","get","end","nodeBefore","differ","title-content","element","getNearestSelectionRange","afterInit","removeMarker","model","_splitMarkerName","TrackChangesEditing","start","locale"];var Fa,Da;Fa=Oa,Da=161,function(t){for(;--t;)Fa.push(Fa.shift())}(++Da);const Ba=function(t,e){return Oa[t-=0]};class Pa extends t.Plugin{[Ba("0x0")](){const t=this.editor;if(!t[Ba("0x10")][Ba("0x13")](Ba("0xb")))return;const e=t.plugins[Ba("0x15")](Ba("0x4"));e[Ba("0xe")][Ba("0xa")](Ba("0x19"),(()=>Ji(t[Ba("0x6")],"ELEMENT_TITLE"))),t[Ba("0x2")][Ba("0x12")].registerPostFixer((n=>{let i=!1;const r=Array.from(t[Ba("0x2")][Ba("0x12")][Ba("0x18")][Ba("0x11")]());for(const{name:o,data:s}of r){const{group:r}=e[Ba("0x3")](o);if(Ba("0x7")!==r||!s[Ba("0xf")])continue;const x=s[Ba("0xf")],a=x.end[Ba("0x17")];if(!a||!a.is(Ba("0x1a"),Ba("0x19")))continue;if(!x[Ba("0x5")][Ba("0x8")](x.end))continue;const c=t[Ba("0x2")][Ba("0x14")][Ba("0x1b")](x[Ba("0x16")],Ba("0xc"));if(c&&c.isCollapsed){const t=n[Ba("0xd")](x[Ba("0x5")],c[Ba("0x5")]);t[Ba("0x9")](x)||(n.updateMarker(o,{range:t}),i=!0)}i||(n[Ba("0x1")](o),i=!0)}return i}))}}const Ua=["plugins","undo","has","TrackChangesEditing","afterInit","UndoEditing","enableCommand"];var ja,Ga;ja=Ua,Ga=302,function(t){for(;--t;)ja.push(ja.shift())}(++Ga);const Va=function(t,e){return Ua[t-=0]};class Ha extends t.Plugin{[Va("0x3")](){const t=this.editor,e=t[Va("0x6")].get(Va("0x2"));t[Va("0x6")][Va("0x1")](Va("0x4"))&&(e[Va("0x5")](Va("0x0")),e[Va("0x5")]("redo"))}}const za=["enableCommand","afterInit","editor","requires","toggleTableCaption","TrackChangesEditing","has","get"];var Wa,Ka;Wa=za,Ka=288,function(t){for(;--t;)Wa.push(Wa.shift())}(++Ka);const qa=function(t,e){return za[t-=0]};class $a extends t.Plugin{static get[qa("0x3")](){return[Jx]}[qa("0x1")](){const t=this[qa("0x2")];t.plugins[qa("0x6")]("TableCaptionEditing")&&t.plugins[qa("0x7")](qa("0x5"))[qa("0x0")](qa("0x4"))}}const Xa=["batch","tableBorderStyle","data","TableUtils","discard","markBlockFormat","tableProperties","TrackChangesTableProperties","model","getSuggestions","removeAttribute","subType","tableCellHorizontalAlignment","tableCellBorderColor","formatBlock","_suggestionFactory","tableCellBorderWidth","tableAlignment","locale","selection","TablePropertiesEditing","tableCellVerticalAlignment","handleSuggestionDescription","enableCommand","tableBackgroundColor","tableBorderColor","accept","getFirstPosition","has","document","_descriptionFactory","getSuggestionCallback","tableHeight","format","_handlePropertyChange","tableBorderWidth","registerCustomCallback","enqueueChange","getAttribute","get","handleDiscardAction","TrackChangesEditing","join","tableCellBackgroundColor","plugins","registerDescriptionCallback","TableCellPropertiesEditing","table","tableCellProperties","tableWidth","tableCellBorderStyle","change","editor","tableCellHeight","getSelectionAffectedTableCells","nodeAfter","_getSuggestion"];var Za,Ya;Za=Xa,Ya=453,function(t){for(;--t;)Za.push(Za.shift())}(++Ya);const Ja=function(t,e){return Xa[t-=0]};class Qa extends t.Plugin{constructor(t){super(t),this[Ja("0x9")]=[Ja("0x1c"),Ja("0x4"),Ja("0x26"),Ja("0x14"),Ja("0x34"),Ja("0x23"),Ja("0x1b")],this[Ja("0x33")]=[Ja("0x10"),Ja("0x35"),Ja("0x13"),"tableCellPadding","tableCellWidth",Ja("0x38"),Ja("0x2e"),Ja("0xf"),Ja("0x18")]}static get pluginName(){return Ja("0xa")}afterInit(){const t=this[Ja("0x37")].plugins[Ja("0x2a")](Ja("0x2c"));if(this[Ja("0x37")][Ja("0x2f")][Ja("0x1f")](Ja("0x17"))){for(const e of this.tableProperties)t[Ja("0x1a")](e,((t,n)=>{const i=this.editor.model[Ja("0x20")][Ja("0x16")][Ja("0x1e")]().findAncestor(Ja("0x32"));this._handlePropertyChange(e,[i],this[Ja("0x9")],Ja("0x9"),t,n)}));t[Ja("0x12")][Ja("0x27")]("formatBlock","tableProperties","accept",t[Ja("0x12")][Ja("0x22")](Ja("0x11"),null,"discard")),t[Ja("0x12")][Ja("0x27")](Ja("0x11"),Ja("0x9"),Ja("0x7"),((t,e)=>this[Ja("0x2b")](this[Ja("0x9")],t,e))),t._suggestionFactory[Ja("0x27")](Ja("0x11"),Ja("0x9"),Ja("0x2d"),(()=>!1))}if(this[Ja("0x37")][Ja("0x2f")][Ja("0x1f")](Ja("0x31"))){for(const e of this[Ja("0x33")])t[Ja("0x1a")](e,((t,n)=>{const i=this[Ja("0x37")].plugins[Ja("0x2a")](Ja("0x6"))[Ja("0x0")](this[Ja("0x37")][Ja("0xb")].document[Ja("0x16")]);this._handlePropertyChange(e,i,this[Ja("0x33")],"tableCellProperties",t,n)}));t._suggestionFactory[Ja("0x27")](Ja("0x11"),"tableCellProperties",Ja("0x1d"),t[Ja("0x12")][Ja("0x22")](Ja("0x11"),null,"discard")),t._suggestionFactory.registerCustomCallback(Ja("0x11"),Ja("0x33"),Ja("0x7"),((t,e)=>this[Ja("0x2b")](this[Ja("0x33")],t,e))),t._suggestionFactory[Ja("0x27")](Ja("0x11"),"tableCellProperties",Ja("0x2d"),(()=>!1))}t[Ja("0x21")][Ja("0x30")]((t=>this[Ja("0x19")](t)))}[Ja("0x25")](t,e,n,i,r,o){const s=this[Ja("0x37")][Ja("0x2f")][Ja("0x2a")]("TrackChangesEditing");this[Ja("0x37")][Ja("0xb")][Ja("0x28")](o[Ja("0x3")],(()=>{for(const t of e)if(this[Ja("0x2")](t,i))r(o);else{const e={};for(const i of n){const n=t[Ja("0x29")](i);void 0!==n&&(e[i]=n)}r(o),s[Ja("0x8")](t,{commandParams:[e]},[],i)}}))}[Ja("0x2b")](t,e,n){const i=e[0].start[Ja("0x1")],r=n.commandParams[0];this[Ja("0x37")][Ja("0xb")][Ja("0x36")]((e=>{for(const n of t)void 0!==r[n]?e.setAttribute(n,r[n],i):e[Ja("0xd")](n,i)}))}[Ja("0x19")](t){if(t[Ja("0x5")])switch(t.subType){case Ja("0x9"):return{type:Ja("0x24"),content:Ji(this[Ja("0x37")][Ja("0x15")],"*Format:* change table properties")};case Ja("0x33"):return{type:Ja("0x24"),content:Ji(this.editor[Ja("0x15")],"*Format:* change table cell properties")}}}[Ja("0x2")](t,e){const n=this[Ja("0x37")].plugins[Ja("0x2a")]("TrackChangesEditing");for(const i of n[Ja("0xc")]({skipNotAttached:!0})){const n=i.getContainedElement();if(i[Ja("0xe")]===e&&n===t)return i}return null}}var tc=Function.prototype,ec=Object.prototype,nc=tc.toString,ic=ec.hasOwnProperty,rc=nc.call(Object);const oc=function(t){if(!xe(t)||"[object Object]"!=gt(t))return!1;var e=xn(t);if(null===e)return!0;var n=ic.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&nc.call(n)==rc};const sc=function(t){return oc(t)?void 0:t};var xc=rt?rt.isConcatSpreadable:void 0;const ac=function(t){return ge(t)||de(t)||!!(xc&&t&&t[xc])};const cc=function t(e,n,i,r,o){var s=-1,x=e.length;for(i||(i=ac),o||(o=[]);++s<x;){var a=e[s];n>0&&i(a)?n>1?t(a,n-1,i,r,o):sn(o,a):r||(o[o.length]=a)}return o};const lc=function(t){return(null==t?0:t.length)?cc(t,1):[]};const uc=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)};var dc=Math.max;const gc=function(t,e,n){return e=dc(void 0===e?t.length-1:e,0),function(){for(var i=arguments,r=-1,o=dc(i.length-e,0),s=Array(o);++r<o;)s[r]=i[e+r];r=-1;for(var x=Array(e+1);++r<e;)x[r]=i[r];return x[e]=n(s),uc(t,this,x)}};const fc=function(t){return function(){return t}};const hc=ee?function(t,e){return ee(t,"toString",{configurable:!0,enumerable:!1,value:fc(e),writable:!0})}:function(t){return t};var mc=Date.now;const pc=function(t){var e=0,n=0;return function(){var i=mc(),r=16-(i-n);if(n=i,r>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(hc);const bc=function(t){return pc(gc(t,void 0,lc),t+"")}((function(t,e){var n={};if(null==t)return n;var i=!1;e=ui(e,(function(e){return e=mi(e,t),i||(i=e.length>1),e})),oe(t,dn(t),n),i&&(n=ti(n,7,sc));for(var r=e.length;r--;)Wi(n,e[r]);return n})),Ec=["isEqual","attribute:accept","markers","buildSuggestion","ck-suggestion-marker","options","originalSuggestionId","rejected","formatBlock:chain","deletion:discard","getMultiRangeId","_reduceExistingSuggestions","getCustomProperty","removeMarker:suggestion:attribute","markInsertion","addSuggestionData","isAfter","substring","updateSuggestion","announce","_registerInlineAttribute","createRangeOn","deletion:","showSuggestionHighlights","fromRange","parent","suggestion","move","every","isIntersectingWithRange","creator","_registerDefaultCallbacks","_handleNewSuggestionMarker","formatInline:","_defaultCallbacks","createPositionAt","markAttributeChange","splitPosition","registerPostFixer","removeMarker:suggestion:formatBlock","containsPosition","addMarker","moveTargetPosition","activeMarkers","_addThreadToSuggestion","isTouching","multipleBlocks","getCommentThread","includes","attribute","getChanges","filter","add","_recordAttributeSuggestions","accepted","isInContent","forEach","createElement","open","howMany","normal","markerToData","writer","values","formatBlock:accept","_reduceSuggestionAttributeRange","rootName","deletion:chain","markerName","then","root","_initAriaMarkerChangeAnnouncements","ready","elementEnd","markMultiRangeInsertion","suggestionUnloaded","discardSelectedSuggestions","never","listenTo","isObject","collaboration.channelId","isCollapsed","documentSelection","consumable","acceptSelectedSuggestions","removeClass","isArray","_model","markMultiRangeDeletion","authoredAt","containerElement","track-changes-suggestion-data-mismatch","item","addMarker:suggestion","commands","join","multi","PendingActions","size","hasComments","discardSuggestion","_removeSuggestion","_refreshSuggestionsChain","isUndo","oldValue","editingDowncast","_rangeIsInLocalUserInsertion","config","newRange","formatBlock","_blockAttributeKeys","name","group","element","toViewElement","_onDiscard","_refreshAttributeSuggestionsChain","previous","_afterChanges","key","_findSuggestions","containsRange","addMarkerName","schema","_addSuggestionMarker","suggestion:attribute:","stopListening","hasCommentThread","unshift","_breakSuggestionMarker","isSelectable","splice","_getMarkerAnnouncementText","_suggestionState","_commentsRepository","range","commandName","addComment","high","selection","_recordAttributeChanges","reconvertMarker","fire","ck-suggestion-marker--active","track-changes-adapter-already-set","getShiftedBy","isRemovable","addUser","addRange","backward","_suggestionFactory","formatInline","updateMarker","attributeNewValue","addHighlight","forceDefaultExecution","attributeOldValue","stop","getMarkers","author","_suggestions","_isDataLoaded","from","change","formatBlock:discard","isMultiRange","_customCallbacks","createRangeIn","Users","$text","getChangedMarkers","resolve","insertion:chain","_getExternalAuthor","trackChanges.trackFormatChanges","accept","TrackChangesEditing","getRange","getSuggestionCallback","discardAllSuggestions","setSelection","isOwn","removeAttribute","fetchCommentThread","deletion","_getAttributeKey","startsWith","upcast","_processAttributeChanges","pop","createPositionAfter","hasSuggestion","map","batch","value","removeMarker","attribute:discard","oldRange","createRange","$graveyard","getIntersection","consume","toUpperCase","suggestionLoaded","widget","sort","next","enableCommand","enqueueChange","containsRangeInObject","concat","removeMarkers","groupId","discard","length","setTo","notReady","newValue","_updateSuggestionData","execute","nodeAfter","getAttribute","chain","marker-count","commentThread","isIntersecting","_saved","ENTER","_enabledCommands","unbindElementFromMarkerName","addSuggestion","insertContent","subType","find","_getAuthorFromId","getDifference","end","insertion:accept","catch","markerNameToElements","_enableDefaultAttributesIntegration","change:activeMarkers","createdAt","deletion:join","isLocal","fromCharCode","after","_adapter","insertion","_SUGGESTION_ANNOUNCEMENT","addClass","CommentsRepository","getFirstMarker","isBefore","conversion","get","mapper","has","getNearestSelectionRange","position","$marker","formatInline:join","low","_element","pluginName","PENDING_ACTION_SUGGESTION","applyOperation","default","data","getUser","clear","attribute:join","unbind","getAllAdjacentSuggestions","comments","addMarker:suggestion:formatBlock","_mergeNestedSuggestions","update:suggestion","some","acceptAllSuggestions","set","markerToHighlight","suggestion-type","attributeKey","define","attribute:","_inlineAttributeKeys","@external","isAtStart","insert","enableReadOnlyMode","targetPosition","getSuggestions","requires","_joinSuggestions","_joinWithAdjacentSuggestions","delete","split","deletion:accept","rename","head","FORMATTING","isBlock","error-saving-suggestion-data-suggestion-discarded","_setSuggestionRange","before","editor","getContainedElement","LEAVE","_isBlockAttribute","document","push","nodeBefore","keys","markDeletion","highest","_setSuggestionData","isLimit","_registerBlockAttribute","getLastMatchingPosition","createSelection","detach","isAtEnd","setAttribute","getSuggestion","forward","formatInline:discard","suggestionChanged","adapter","trackChangesCommand","_createSuggestion","start","warn","type","$elementName","_checkSuggestionCorrectness","createPositionBefore","insertion:join","model","_isForcedDefaultExecutionBlock","attributes","isDocumentOperation","_descriptionFactory","acceptSuggestion","markInlineFormat","removed","formatBlock:","track-changes-suggestion-not-found","_trackFormatChanges","addMarker:suggestion:attribute","getItems","plugins","locale","suggestion:","_isRegisteredAttribute","skipNestingCheck","data-suggestion","isNextTo","trackChanges","ck-suggestion-marker-formatBlock","insertion:","getFirstRange","assign","rethrowUnexpectedError","deleteContent","isInsideObject","containsItem","_getSuggestionData","ck-suggestion-marker-formatInline","always","return","markerReady","dataDowncast","_editor","markMultiRangeBlockFormat","remove","lowest","_splitMarkerName","_cutOutSuggestionMarker","getRanges","differ","external:","formatGroupId","formatInline:chain","for","format"];var _c,Tc;_c=Ec,Tc=211,function(t){for(;--t;)_c.push(_c.shift())}(++Tc);const yc=function(t,e){return Ec[t-=0]},Cc=yc("0x7b");class Ac extends t.Plugin{static get[yc("0x52")](){return["CommentsRepository",o.Users,t.PendingActions,ar,gr,Er,Ar,Fr,Lr,jr,Kr,ro,Ao,So,Fo,jo,Ko,Yo,ns,xs,ds,ys,ps,Rs,Ms,Bs,qs,tx,Vs,co,mo,ox,lx,hx,_x,Ix,Nx,Dx,Vx,qx,Jx,ra,ca,$a,ma,Ca,wa,Qa,va,Pa,Ha]}static get[yc("0x35")](){return yc("0x15f")}constructor(t){function e(t){return t[yc("0x16f")]((t=>String[yc("0x22")](t))).join("")}super(t),this._recordAttributeSuggestions=!1,this[yc("0x45")](yc("0xda"),[]),this.on(yc("0x1e"),((e,n,i,r)=>{this[yc("0x106")][yc("0x152")]((()=>{for(const e of[...r,...i])this[yc("0x106")][yc("0xb1")].has(e)&&t.editing[yc("0x13c")](e)}))})),this[yc("0x83")]=new ir(this[yc("0x5f")][yc("0x7f")][yc("0x12a")],this.editor.locale),this[yc("0x24")]=null,this._suggestionFactory=new kc(this.editor),this._suggestions=new Map,this[yc("0x135")]=t.plugins[yc("0x2c")](yc("0x28")),this._enabledCommands=new Set,this[yc("0x106")]=this[yc("0x5f")][yc("0x7f")],this[yc("0x134")]=new WeakMap,this._isForcedDefaultExecutionBlock=!1,this._blockAttributeKeys=new Set([yc("0x7b")]),this[yc("0x4b")]=new Set,t.config.define(yc("0x15d"),yc("0x38")),this[yc("0x89")]=t.config.get(yc("0x15d")),t[yc("0x11a")][yc("0x49")]("trackChanges.mergeNestedSuggestions",!0),this[yc("0x41")]=t[yc("0x11a")].get("trackChanges.mergeNestedSuggestions"),this.trackChangesCommand=new d(t,this[yc("0x11")]),this[yc("0xf6")](),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,56,48,50,51,52])}init(){const t=this[yc("0x5f")],n=(t,e)=>{if("attribute"!=t)return"ck-suggestion-marker-"+t;const n=e[yc("0x56")]("|")[0];return this[yc("0x62")](n)?"ck-suggestion-marker-formatBlock":yc("0x9d")};t[yc("0x2b")][yc("0xad")]("editingDowncast")[yc("0x46")]({model:"suggestion",view:t=>{const{id:e,type:i,subType:r}=this[yc("0xa6")](t[yc("0xf3")]),o=[yc("0xb3"),n(i,r)];let s=3e3;return this[yc("0xda")][yc("0xdf")](t[yc("0xf3")])&&(o[yc("0x64")](yc("0x13e")),s=3010),yc("0x167")==i&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[yc("0x2b")][yc("0xad")](yc("0xa1"))[yc("0xe3")]((e=>{e.on(yc("0x10c"),((e,n,i)=>{if(!i[yc("0xb4")][yc("0xc6")])return;const r=n[yc("0x10b")];if(!r)return;const o=i.mapper[yc("0x121")](r);t[yc("0x7f")][yc("0x12a")].isObject(r)&&o&&!o.getCustomProperty(yc("0x17b"))&&o.is(yc("0x109"))&&(0,x.toWidget)(o,i[yc("0xed")])}),{priority:yc("0x139")})})),t.conversion.for(yc("0xa1")).markerToHighlight({model:"suggestion",view:(t,e)=>{if(!e[yc("0xb4")][yc("0xc6")])return null;const{type:i,subType:r}=this[yc("0xa6")](t.markerName);return{classes:[yc("0xb3"),n(i,r)],priority:3e3}}});const i=({showActiveMarkers:e=!0,isAttributeSuggestion:n=!1}={})=>(i,r,o)=>{if(!r.item)return;const{id:s}=this._splitMarkerName(r.markerName);if(n){const t=this._suggestions.get(s),e=this[yc("0x168")](t);if(!this._isBlockAttribute(e))return}if(r[yc("0x10b")].is(yc("0x13a")))return void o[yc("0x102")][yc("0x178")](r[yc("0x10b")],i[yc("0x11e")]);const x=o[yc("0x2d")][yc("0x121")](r[yc("0x10b")]);if(r[yc("0x10b")].is(yc("0x120"))&&t[yc("0x7f")][yc("0x12a")][yc("0x5b")](r[yc("0x10b")])&&!x.getCustomProperty("addHighlight")){o[yc("0xed")][yc("0x27")]([yc("0xb3"),yc("0x94")],x),o[yc("0xed")].setAttribute(yc("0x91"),s,x),o[yc("0x2d")].bindElementToMarker(x,r[yc("0xf3")]),e&&(this[yc("0xda")][yc("0xdf")](r[yc("0xf3")])?o[yc("0xed")].addClass(yc("0x13e"),x):o[yc("0xed")][yc("0x104")]("ck-suggestion-marker--active",x));for(const e of t[yc("0x7f")][yc("0x156")](r[yc("0x10b")])[yc("0x8b")]())o[yc("0x102")][yc("0x178")](e,i.name);o[yc("0x102")][yc("0x178")](r[yc("0x10b")],i[yc("0x11e")])}};t.conversion.for(yc("0xa1"))[yc("0xe3")]((t=>{t.on(yc("0x40"),((t,e,n)=>{n[yc("0xb4")][yc("0xc6")]&&i({showActiveMarkers:!1})(t,e,n)}),{priority:"highest"})})),t[yc("0x2b")][yc("0xad")](yc("0xa1")).add((t=>{t.on(yc("0x8a"),((t,e,n)=>{n.options[yc("0xc6")]&&i({showActiveMarkers:!1,isAttributeSuggestion:!0})(t,e,n)}),{priority:yc("0x68")})})),t[yc("0x2b")][yc("0xad")](yc("0xa1"))[yc("0xec")]({model:yc("0xc9"),view:(t,e)=>e.options[yc("0xc6")]?null:{group:"suggestion",name:t.substr(11)}}),t.conversion.for(yc("0x16a")).elementToElement({view:{name:yc("0xc9"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=yc("0x8e")+t[yc("0xa")](yc("0x47"))+":"+t[yc("0xa")]("id");return t.getAttribute(yc("0xc"))&&(n+=":"+t.getAttribute(yc("0xc"))),e[yc("0xe8")](yc("0x31"),{"data-name":n})}}),t[yc("0x2b")].for(yc("0x16a")).dataToMarker({view:"suggestion"}),t[yc("0x2b")][yc("0xad")](yc("0x118")).add((t=>{t.on(yc("0x40"),i(),{priority:yc("0x139")})})),t[yc("0x2b")][yc("0xad")](yc("0x118"))[yc("0xe3")]((t=>{t.on(yc("0x8a"),i({isAttributeSuggestion:!0}),{priority:"high"})})),t.conversion[yc("0xad")](yc("0x118")).add((t=>{t.on(yc("0xd6"),((t,e,n)=>{const i=n[yc("0x2d")][yc("0x1c")](e[yc("0xf3")]);if(i)for(const t of i)t.getCustomProperty(yc("0x149"))||(n[yc("0xed")][yc("0x104")]([yc("0xb3"),yc("0x94"),yc("0x13e")],t),n[yc("0xed")][yc("0x165")](yc("0x91"),t),n[yc("0x2d")][yc("0x12")](t,e[yc("0xf3")]))}),{priority:yc("0x139")})})),t.conversion[yc("0xad")](yc("0x118"))[yc("0xe3")]((t=>{t.on(yc("0xbc"),((t,e,n)=>{const i=n[yc("0x2d")][yc("0x1c")](e[yc("0xf3")]);if(!i)return;const{id:r}=this[yc("0xa6")](e[yc("0xf3")]),o=this[yc("0x14f")][yc("0x2c")](r),s=this[yc("0x168")](o);if(this._isBlockAttribute(s))for(const t of i)t[yc("0xbb")](yc("0x149"))||(n.writer.removeClass(["ck-suggestion-marker","ck-suggestion-marker-formatBlock",yc("0x13e")],t),n[yc("0xed")][yc("0x165")](yc("0x91"),t),n[yc("0x2d")].unbindElementFromMarkerName(t,e[yc("0xf3")]))}),{priority:yc("0x139")})})),t[yc("0x7f")][yc("0x63")].registerPostFixer((e=>{let n=!1;const i=Array.from(t[yc("0x7f")][yc("0x63")][yc("0xa9")][yc("0x159")]()),r=new Set;for(const{name:x,data:a}of i){const{group:i,type:c,subType:l,id:u}=this[yc("0xa6")](x);if(yc("0xc9")!==i)continue;const d=this[yc("0x14f")][yc("0x2c")](u);if(null!=a.newRange){yc("0x146")==c&&(n=n||vc(a[yc("0x11b")],x,e,t[yc("0x7f")][yc("0x12a")]));const i="attribute"==c&&this._isBlockAttribute(l.split("|")[0]);if(a[yc("0x11b")][yc("0x100")]||yc("0x176")==a.newRange.root[yc("0xf1")]||yc("0x11c")==c&&!Lc(a[yc("0x11b")])||i&&!Lc(a[yc("0x11b")])||yc("0x167")==c&&(Rc(s=a[yc("0x11b")])||(o=s)[yc("0x78")][yc("0xc8")]==o.end[yc("0x65")]&&o[yc("0x78")][yc("0x6f")]))e[yc("0x172")](x),n=!0;else{if(!d||!d[yc("0xe6")])continue;r.add(d)}}}var o,s;return r[yc("0x111")]>0&&(n=!!this[yc("0x54")](r)||n),n})),t[yc("0x7f")].document.registerPostFixer((e=>{let n=!1;for(const i of t[yc("0x7f")][yc("0x63")][yc("0xa9")].getChanges())if(yc("0x4e")==i[yc("0x7a")])for(const i of this[yc("0x14f")][yc("0xee")]()){if(i.isMultiRange||!i.isInContent)continue;const r=yc("0x11c")==i[yc("0x7a")],o=this[yc("0x168")](i),s=o&&this[yc("0x62")](o);if(!r&&!s)continue;const x=i[yc("0x96")]();if(x[yc("0x78")].parent!=x[yc("0x19")][yc("0xc8")]&&!x[yc("0x19")].isAtEnd){const r=t[yc("0x7f")][yc("0xd2")](x[yc("0x78")][yc("0x9")],yc("0x19")),o=t[yc("0x7f")][yc("0x175")](x[yc("0x78")],r);e[yc("0x147")](i[yc("0x29")](),{range:o}),n=!0}}return n})),t[yc("0x7f")][yc("0x63")][yc("0xd5")]((t=>this[yc("0x16b")](t))),t[yc("0x7f")][yc("0x63")][yc("0xd5")]((t=>!t[yc("0x170")][yc("0x21")]&&this._processAttributeSuggestions(t))),t[yc("0x7f")].on(yc("0x125"),(()=>{this[yc("0xe4")]=!1})),t[yc("0x7f")][yc("0x63")].on("change:data",((n,i)=>{if(!i[yc("0x21")]||i.isUndo)return;if(!this[yc("0xe4")])return;const r=t.model[yc("0x63")][yc("0xa9")][yc("0xe1")]();if(0==r[yc("0x3")])return;const o=[],s=r[yc("0xe2")]((t=>yc("0xe0")==t[yc("0x7a")])),x=r[yc("0xe2")]((t=>yc("0x4e")==t[yc("0x7a")]&&yc("0x158")!=t[yc("0x11e")])),a=r[yc("0xe2")]((t=>yc("0xa4")==t[yc("0x7a")]&&"$text"!=t[yc("0x11e")]));for(const e of s)this[yc("0x8f")](e.attributeKey)&&o[yc("0x64")]({key:e.attributeKey,newValue:e[yc("0x148")],oldValue:e.attributeOldValue,range:Nc(e[yc("0x136")],t[yc("0x7f")])});for(const e of x){const n=a[yc("0x16")]((t=>t[yc("0x34")]===e[yc("0x34")]));if(n){const i=Mc(e.position.nodeAfter,t[yc("0x7f")]);n[yc("0x11e")]!==e[yc("0x11e")]&&o.push({key:yc("0x7b"),newValue:e[yc("0x11e")],oldValue:n[yc("0x11e")],range:i});for(const[t,r]of n[yc("0x81")]){if(!this[yc("0x8f")](t))continue;const n=e[yc("0x81")][yc("0x2c")](t);r!==n&&o[yc("0x64")]({key:t,newValue:n,oldValue:r,range:i})}for(const[t,r]of e.attributes)this[yc("0x8f")](t)&&(n[yc("0x81")][yc("0x2e")](t)||o[yc("0x64")]({key:t,newValue:r,oldValue:null,range:i}))}}0!=o[yc("0x3")]&&t[yc("0x7f")].enqueueChange(i,(t=>{const n=(0,e.uid)();for(const{range:t,key:e,oldValue:i,newValue:r}of o)this[yc("0xd3")](t,e,i,r,{groupId:n});this._reduceExistingSuggestions(t,o)}))}),{priority:yc("0xa5")}),t[yc("0x7f")][yc("0xb1")].on(yc("0x42"),((t,e,n)=>{if(null==n){const{id:t}=this[yc("0xa6")](e[yc("0x11e")]),n=this[yc("0x14f")][yc("0x2c")](t);n&&n[yc("0x129")](e[yc("0x11e")])}})),t[yc("0x7f")][yc("0x63")].on("change:data",(()=>{const e=Array[yc("0x151")](t[yc("0x7f")][yc("0x63")][yc("0xa9")][yc("0x159")]())[yc("0xe2")]((t=>"suggestion"===this[yc("0xa6")](t.name)[yc("0x11f")]));if(0===e.length)return;e[yc("0x17c")](((t,e)=>{const n=t[yc("0x39")].oldRange,i=e[yc("0x39")][yc("0x174")];return null===n&&null===i?0:null===n&&null!==i?-1:null!==n&&null===i?1:n[yc("0x78")][yc("0x2a")](i[yc("0x78")])?-1:1}));const n=new Set,i=new Set;for(const{name:t,data:r}of e){const{id:e}=this[yc("0xa6")](t);if(null===r[yc("0x174")]){const e=this[yc("0xcf")](t);i[yc("0xe3")](e)}else{const t=this[yc("0x14f")][yc("0x2c")](e);null!==r[yc("0x11b")]||t.isInContent?(n.add(t[yc("0x59")]),i.add(t)):this[yc("0x114")](t)}}i[yc("0x111")]>0&&this._refreshSuggestionsChain(i);for(const t of n)this.fire(yc("0x74"),t)})),t[yc("0x7f")].on(yc("0x37"),((e,n)=>{const i=n[0];if(!this[yc("0x14f")][yc("0x111")])return;if(!i[yc("0x82")])return;if(i.batch[yc("0x116")]||!i[yc("0x170")].isLocal)return;let r,o;switch(i.type){case yc("0x4e"):r=t[yc("0x7f")][yc("0xd2")](i[yc("0x30")]),o=r[yc("0x140")](i[yc("0xea")]);break;case yc("0x56"):r=t[yc("0x7f")][yc("0xd2")](i[yc("0xd4")]),o=t[yc("0x7f")].createPositionAt(i[yc("0xd9")]);break;case yc("0xca"):r=t[yc("0x7f")][yc("0xd2")](i[yc("0x50")]),o=r[yc("0x140")](i[yc("0xea")]);break;default:return}const s=t[yc("0x7f")].createRange(r,o);t.model[yc("0x152")]((()=>{for(const{suggestion:t,meta:e}of this[yc("0x127")](s)){if(t[yc("0x154")])continue;if(yc("0x146")==t[yc("0x7a")])continue;const n=this[yc("0x168")](t);if(n&&this[yc("0x62")](n)&&yc("0x56")!=i.type)continue;const x=t[yc("0x39")]&&t[yc("0x39")][yc("0xdd")];("formatBlock"!=t.type||yc("0x56")==i[yc("0x7a")]&&!x)&&(e[yc("0x180")]||"insertion"==t[yc("0x7a")]&&e[yc("0x164")]||t.getFirstRange()[yc("0x128")](s)&&this._breakSuggestionMarker(t,r,o))}}))}),{priority:yc("0xa5")}),t[yc("0x7f")].on(yc("0x99"),((e,n)=>{const i=n[0],r=n[1];if(r&&r.forceDefaultExecution)return;if(this[yc("0x80")])return;if(!this[yc("0x76")].value)return;if(i[yc("0x100")])return;const o=t[yc("0x7f")][yc("0x12a")],{start:s,end:x}=i[yc("0x96")](),a=s[yc("0x9")]&&o.isLimit(s.nodeAfter)?null:o[yc("0x2f")](s,yc("0x72")),c=x[yc("0x65")]&&o.isLimit(x[yc("0x65")])?null:o[yc("0x2f")](x,yc("0x144")),l=t[yc("0x7f")][yc("0x175")](a?a[yc("0x78")]:s,c?c.end:x);t[yc("0x7f")][yc("0x152")]((e=>{this[yc("0x67")](l);const n=t[yc("0x7f")][yc("0x12a")][yc("0x2f")](l[yc("0x78")]);i.is(yc("0x101"))?e[yc("0x163")](n):i[yc("0x4")](n)})),e.stop()}),{priority:e.priorities[yc("0xeb")]+10}),t[yc("0x7f")].on(yc("0x14"),((e,n)=>{const i=n[n[yc("0x3")]-1];i&&i[yc("0x14a")]||this[yc("0x80")]||this.trackChangesCommand[yc("0x171")]&&(t[yc("0x7f")].change((()=>{let i=t[yc("0x7f")][yc("0x14")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!i)return;e[yc("0x9f")]=i.clone();const r=i[yc("0x19")].nodeBefore,o=t.model[yc("0x12a")];r&&o[yc("0x5b")](r)&&!o[yc("0xfe")](r)&&(i=t.model[yc("0x175")](i.start,t[yc("0x7f")][yc("0xd2")](r,yc("0x19")))),this.markInsertion(i)})),e.stop())}),{priority:yc("0x139")}),this.editor[yc("0x10d")][yc("0xe3")](yc("0x93"),this[yc("0x76")]),this[yc("0x17e")]("trackChanges");const r=new p(t,this._suggestions);t.commands[yc("0xe3")]("acceptSuggestion",r),this[yc("0x17e")](yc("0x84"));const o=new y(t,this[yc("0x14f")]);t.commands.add(yc("0x113"),o),this[yc("0x17e")](yc("0x113")),t[yc("0x10d")][yc("0xe3")](yc("0x44"),new F(t,r,this[yc("0x14f")])),this[yc("0x17e")](yc("0x44")),t[yc("0x10d")].add(yc("0x162"),new F(t,o,this[yc("0x14f")])),this.enableCommand(yc("0x162")),t.commands[yc("0xe3")](yc("0x103"),new j(t,r,this[yc("0x14f")])),this.enableCommand("acceptSelectedSuggestions"),t[yc("0x10d")][yc("0xe3")](yc("0xfb"),new j(t,o,this[yc("0x14f")])),this[yc("0x17e")](yc("0xfb"));const s=t[yc("0x8c")][yc("0x2c")](yc("0x28"));this[yc("0xfd")](s,yc("0x138"),((t,{threadId:e})=>{const n=this._suggestions.get(e);n&&n[yc("0xd")]&&1===n[yc("0xd")][yc("0x3")]&&this[yc("0x7")](e,{hasComments:!0})}),{priority:yc("0x33")}),this[yc("0xfd")](s,"removeComment",((t,{threadId:e})=>{const n=this[yc("0x14f")].get(e);n&&n[yc("0xd")]&&!n[yc("0xd")].length&&this[yc("0x7")](e,{hasComments:!1})}),{priority:"low"})}set[yc("0x75")](t){if(this._adapter)throw new e.CKEditorError(yc("0x13f"),this);this._adapter=t}get adapter(){return this._adapter}[yc("0x51")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[yc("0x14f")][yc("0xee")]())t&&!e[yc("0xe6")]||n.push(e);return e?n[yc("0x16f")]((t=>t.toJSON())):n}[yc("0x71")](t){const n=this[yc("0x14f")][yc("0x2c")](t);if(!n)throw new e.CKEditorError(yc("0x88"),this);return n}[yc("0x16e")](t){return this._suggestions[yc("0x2e")](t)}[yc("0xbe")](t){const{authorId:e,id:n,attributes:i}=t,[r,o]=t.type.split(":"),s=this[yc("0x14f")].get(n)||this[yc("0x77")](r,o,n,e,i);if(this[yc("0xdb")](s),this[yc("0x7c")](s,r,o||null,e),s[yc("0x1f")]=t[yc("0x1f")],s[yc("0x150")]=!0,i&&i["@external"]){const t=i[yc("0x4c")],e=this[yc("0x15c")](t.authorName);s[yc("0x108")]=t[yc("0x1f")],s[yc("0x14e")]=e,s.isExternal=!0}else s[yc("0x108")]=t[yc("0x1f")];switch(t.data&&(s[yc("0x39")]=t[yc("0x39")]),t.attributes&&(s[yc("0x81")]=t[yc("0x81")]),this[yc("0x24")]&&this[yc("0x24")][yc("0x13")]||(s[yc("0xf")]=!0),this[yc("0x134")].get(s)){case yc("0x5"):this._suggestionState.set(s,"dataReady");break;case yc("0xa0"):s[yc("0xe6")]?(this[yc("0x54")](new Set([s])),this._refreshSuggestionsChain(new Set([s])),this._suggestionState.set(s,yc("0xf7")),this.fire(yc("0x17a"),s)):this[yc("0x134")][yc("0x45")](s,yc("0x86"))}return s}[yc("0x84")](t){this[yc("0x14a")]((()=>{this[yc("0x5f")][yc("0x7f")][yc("0x152")]((()=>{for(const e of t[yc("0x3e")]())e.accept()}))}))}[yc("0x113")](t){this[yc("0x14a")]((()=>{this.editor.model.change((()=>{for(const e of t[yc("0x3e")]())e[yc("0x2")]()}))}))}[yc("0x17e")](t,n){const i=this[yc("0x5f")][yc("0x10d")].get(t);if(!i)throw new e.CKEditorError("track-changes-command-not-found",this,{commandName:t});if(this._enabledCommands[yc("0x2e")](i))throw new e.CKEditorError("track-changes-enable-command-twice",this,{commandName:t});this[yc("0x11")][yc("0xe3")](i),n&&i.on(yc("0x8"),((t,e)=>{this[yc("0x76")][yc("0x171")]&&(this[yc("0x80")]||(e[yc("0x3")]>0&&e[e[yc("0x3")]-1]&&e[e[yc("0x3")]-1][yc("0x14a")]?e[yc("0x16c")]():(t[yc("0x9f")]=n(((...t)=>i.execute(...t,{forceDefaultExecution:!0})),...e),t[yc("0x14c")]())))}),{priority:yc("0x139")})}[yc("0x14a")](t){let n,i;const r=this[yc("0x80")];this[yc("0x80")]=!0;try{n=t()}catch(t){i=t}return r||(this._isForcedDefaultExecutionBlock=!1),i&&e.CKEditorError[yc("0x98")](i,this),n}[yc("0xbd")](t,n=null,i={}){if(t[yc("0x100")])return null;const r=this.editor.plugins[yc("0x2c")]("Users").me;for(const{suggestion:e,meta:r}of this[yc("0x127")](t,yc("0x25")))if(r[yc("0x164")]){if(!r[yc("0x92")]){if(r[yc("0x180")]){if(!this[yc("0x41")]||!Fc(e,i))continue;return e}if(Fc(e,i))return e;this[yc("0x130")](e,t[yc("0x78")],t[yc("0x19")]);break}if(n==e[yc("0x15")]&&Fc(e,i)){const n=e.getFirstRange();return n[yc("0x78")][yc("0xaf")](t[yc("0x19")])?this._setSuggestionRange(e,this[yc("0x106")].createRange(t[yc("0x78")],n.end)):this._setSuggestionRange(e,this._model[yc("0x175")](n[yc("0x78")],t[yc("0x19")])),e}}const o=(0,e.uid)(),s=r.id,x=n?"insertion:"+n:yc("0x25"),a=this[yc("0x69")]({id:o,type:x,createdAt:new Date,authorId:s,attributes:i});return this[yc("0x12b")](x,o,s,t),a}[yc("0xf9")](t,n=yc("0x10f"),i={}){const r=this[yc("0x5f")].plugins[yc("0x2c")](yc("0x157")).me,o=this[yc("0x145")].getSuggestionCallback(yc("0x25"),n,yc("0x10e"));for(const e of this[yc("0x51")]())if(e[yc("0x14e")].id==r.id&&"insertion"==e[yc("0x7a")]&&e.subType==n&&Fc(e,i)&&(o(e[yc("0xa8")](),t)||o(t,e[yc("0xa8")]()))){for(const n of t)e[yc("0x143")](n);return e}for(const{suggestion:e,meta:n}of this[yc("0x127")](t,yc("0x25"))){if(!n.isOwn)continue;if(!this[yc("0x41")]&&n[yc("0x180")])continue;if(!Fc(e,i))continue;let r=!0;for(const n of e.getRanges())for(const e of t)if(!n[yc("0x128")](e)){r=!1;break}if(r)return e}const s=(0,e.uid)(),x=r.id,a=yc("0x95")+n,c=this._setSuggestionData({id:s,type:a,createdAt:new Date,authorId:x,attributes:i});for(const e of t)this[yc("0x12b")](a,s,x,e,Yi[yc("0xb9")]());return c}[yc("0x85")](t,n,i=null,r={}){if(i=i||Sc(n),t.isCollapsed)return null;if(yc("0xfc")===this[yc("0x89")]){const e=this[yc("0x145")][yc("0x161")](yc("0x146"),i,"accept");return this[yc("0x14a")]((()=>e([t],n,r))),null}const o=this[yc("0x5f")][yc("0x8c")].get(yc("0x157")).me,s=[];if(yc("0x9e")!==this[yc("0x89")])for(const{suggestion:e,meta:n}of this._findSuggestions(t,yc("0x25")))n.isOwn&&!n[yc("0x9a")]&&s[yc("0x64")](...e[yc("0xa8")]());const x=function(t,e){const n=[];for(const i of e){const e=t[yc("0x177")](i);e&&n[yc("0x64")](e)}return n}(t,s),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[yc("0x3")];){const i=n[e][yc("0x18")](t);n[yc("0x132")](e,1,...i),e+=i[yc("0x3")]}}return n}(t,s);x.length&&this[yc("0x106")][yc("0x152")]((()=>{for(const t of x){const e=this[yc("0x145")][yc("0x161")](yc("0x146"),i,yc("0x15e"));this[yc("0x14a")]((()=>e([t],n,r)))}}));for(const t of a){let s=null,x=t[yc("0x78")],a=t[yc("0x19")];for(const{suggestion:e,meta:n}of this[yc("0x127")](t,"formatInline")){if(!n.isOwn)continue;if(e[yc("0x15")]!=i)continue;if(!Fc(e,r))continue;const o=e[yc("0x96")]();if(o[yc("0x128")](t,!0))return null;x=x.isBefore(o[yc("0x78")])?x:o[yc("0x78")],a=a.isAfter(o[yc("0x19")])?a:o[yc("0x19")],s?o[yc("0x78")][yc("0x2a")](s[yc("0x96")]()[yc("0x78")])?(s[yc("0x0")](),s=e):e[yc("0x0")]():s=e}const c=this._model[yc("0x175")](x,a);if(s)this._setSuggestionRange(s,c);else{const t=(0,e.uid)(),s=o.id;this._setSuggestionData({id:t,type:yc("0xd0")+i,data:n,createdAt:new Date,authorId:s,attributes:r}),this[yc("0x12b")](yc("0xd0")+i,t,s,c)}}return null}markBlockFormat(t,n,i=[],r=null,o={}){n[yc("0xab")]||(n[yc("0xab")]=n.commandName),n.multipleBlocks=t.is(yc("0x136")),r=r||Sc(n);const s=i[yc("0x16f")]((t=>Mc(t,this[yc("0x106")]))),x=t.is(yc("0x136"))?t:Mc(t,this._model);if(yc("0xfc")===this._trackFormatChanges){const t=this[yc("0x145")][yc("0x161")](yc("0x11c"),r,yc("0x15e"));return this[yc("0x14a")]((()=>t([x],n,o))),null}s[yc("0x64")](x);let a=!0;for(const t of s)if(!this[yc("0x119")](t)){a=!1;break}if(a&&yc("0x9e")!==this[yc("0x89")]){const t=this[yc("0x145")][yc("0x161")](yc("0x11c"),r,yc("0x15e"));return this[yc("0x14a")]((()=>t([x],n,o))),null}let c=null,l=x[yc("0x78")],u=x[yc("0x19")];for(const{suggestion:t,meta:e}of this[yc("0x127")](x,yc("0x11c"))){if(!e.isOwn)continue;if(e[yc("0x92")]||e.containsRangeInObject||e[yc("0x9a")])continue;if(t[yc("0x39")].formatGroupId!=n.formatGroupId)continue;if(!Fc(t,o))continue;const i=t[yc("0x96")]();if(t[yc("0x15")]==r){if(i.containsRange(x,!0))return null;l=l[yc("0x2a")](i[yc("0x78")])?l:i[yc("0x78")],u=u[yc("0xbf")](i[yc("0x19")])?u:i[yc("0x19")],c?i.start[yc("0x2a")](c[yc("0x96")]()[yc("0x78")])?(c.removeMarkers(),c=t):t[yc("0x0")]():c=t}else{const e=x.getIntersection(i);this[yc("0xa7")](t,e)}}const d=this.editor[yc("0x8c")][yc("0x2c")](yc("0x157")).me,g=(0,e.uid)(),f=d.id;if(c)return this[yc("0x5d")](c,this._model.createRange(l,u)),c;{const t=this._setSuggestionData({id:g,type:"formatBlock:"+r,data:n,createdAt:new Date,authorId:f,attributes:o});return this[yc("0x12b")](yc("0x87")+r,g,f,this[yc("0x106")][yc("0x175")](l,u)),t}}[yc("0xa3")](t,n,i=[],r=null,o={}){n[yc("0xab")]||(n[yc("0xab")]=n[yc("0x137")]);const s=t[0];n[yc("0xdd")]=s.is(yc("0x136")),r=r||Sc(n);const x=i[yc("0x16f")]((t=>Mc(t,this[yc("0x106")]))),a=s.is("range")?t:t[yc("0x16f")]((t=>Mc(t,this[yc("0x106")])));if(yc("0xfc")===this[yc("0x89")]){const t=this[yc("0x145")][yc("0x161")](yc("0x11c"),r,yc("0x15e"));return this.forceDefaultExecution((()=>t(a,n,o))),null}x[yc("0x64")](...a);let c=!0;for(const t of x)if(!this[yc("0x119")](t)){c=!1;break}if(c&&yc("0x9e")!==this._trackFormatChanges){const t=this[yc("0x145")][yc("0x161")]("formatBlock",r,yc("0x15e"));return this[yc("0x14a")]((()=>t(a,n,o))),null}const l=this[yc("0x5f")][yc("0x8c")][yc("0x2c")](yc("0x157")).me;for(const t of this[yc("0x51")]()){if(t[yc("0x14e")].id!=l.id)continue;if("formatBlock"!=t.type||t.data.formatGroupId!=n[yc("0xab")])continue;if(!Fc(t,o))continue;const e=t.subType==r;for(let n=0;n<a.length;n++){const i=a[n];for(const r of t[yc("0x14d")]()){const o=r[yc("0x160")]();if(i[yc("0xaf")](o)){e?(a.splice(n,1),n--):t.removeMarker(r[yc("0x11e")]);break}}}}if(0==a[yc("0x3")])return null;const u=this._suggestionFactory[yc("0x161")]("formatBlock",r,yc("0x10e"));for(const t of this.getSuggestions())if(t[yc("0x14e")].id==l.id&&yc("0x11c")==t[yc("0x7a")]&&t.data.formatGroupId==n[yc("0xab")]&&t[yc("0x15")]==r&&Fc(t,o)&&(u(t[yc("0xa8")](),a)||u(a,t[yc("0xa8")]()))){for(const e of a)t[yc("0x143")](e);return t}const d=(0,e.uid)(),g=l.id,f=yc("0x87")+r,h=this[yc("0x69")]({id:d,type:f,data:n,createdAt:new Date,authorId:g,attributes:o});for(const t of a)this[yc("0x12b")](f,d,g,t,Yi[yc("0xb9")]());return h}[yc("0x67")](t,n=null,i={}){if(t[yc("0x100")])return null;const r=this[yc("0x5f")][yc("0x8c")][yc("0x2c")](yc("0x157")).me,o=new s.LiveRange(t.start,t[yc("0x19")]);for(const{suggestion:t,meta:e}of this._findSuggestions(o,yc("0x25")))if(e[yc("0x164")]&&!e[yc("0x92")])if(t[yc("0x154")]){const e=t[yc("0xa8")]().filter((t=>"$graveyard"!=t[yc("0xf5")].rootName));if(e[yc("0xcb")]((t=>o[yc("0x128")](t,!0)))&&t.discard(),e[yc("0x43")]((t=>t.containsRange(o,!0)))){const t=this[yc("0x145")][yc("0x161")](yc("0x167"),n,"accept");return this[yc("0x14a")]((()=>t([o],null,i))),null}}else{const e=o[yc("0x177")](t[yc("0x96")]());null!==e&&t[yc("0x122")]([e],null,i)}if(o.detach(),o[yc("0x100")]||yc("0x176")==o[yc("0xf5")][yc("0xf1")])return null;let x=null,a=o[yc("0x78")],c=o[yc("0x19")];const l=this[yc("0x127")](o,yc("0x167"));for(const{suggestion:t,meta:e}of l){const n=this[yc("0x106")][yc("0x175")](a,c);if(e[yc("0x164")]&&(this[yc("0x41")]||!e[yc("0x180")]&&!e[yc("0x9a")]))if(t.isMultiRange){if(!Fc(t,i))continue;let e=!0;for(const i of t[yc("0xa8")]()){if(i.containsRange(n,!0))return t;n[yc("0x128")](i)||(e=!1)}e&&t[yc("0x2")]()}else{const e=t[yc("0x96")]();if(e.containsRange(n,!0))return t;if(!Fc(t,i)){n[yc("0x128")](e)?t.removeMarkers():e.containsPosition(a)?a=e[yc("0x19")]:e.containsPosition(c)&&(c=e[yc("0x78")]);continue}a=a.isBefore(e[yc("0x78")])?a:e[yc("0x78")],c=c[yc("0xbf")](e.end)?c:e[yc("0x19")],i=Object[yc("0x97")]({},t[yc("0x81")]),x?e.start[yc("0x2a")](x[yc("0x96")]().start)?(x[yc("0x0")](),x=t):t.removeMarkers():x=t}}if(x)return this[yc("0x5d")](x,this._model[yc("0x175")](a,c)),x;{const t=(0,e.uid)(),o=this[yc("0x106")][yc("0x175")](a,c),s=r.id,x=n?yc("0xc5")+n:"deletion",l=this[yc("0x69")]({id:t,type:x,createdAt:new Date,authorId:s,attributes:i});return this[yc("0x12b")](x,t,s,o),l}}[yc("0x107")](t,n=yc("0x10f"),i={}){const r=this[yc("0x5f")][yc("0x8c")][yc("0x2c")]("Users").me,o=t[yc("0x16f")]((t=>new s.LiveRange(t[yc("0x78")],t[yc("0x19")]))),x=new Set;for(const{suggestion:t,meta:e}of this._findSuggestions(o,yc("0x25")))e[yc("0x164")]&&!e[yc("0x92")]&&x[yc("0xe3")](t);for(const e of x)if(e.isMultiRange){const r=e.getRanges();if((!e.attributes||!e[yc("0x81")][yc("0x90")])&&r[yc("0xcb")]((t=>o[yc("0x43")]((e=>e[yc("0x128")](t,!0)))))&&e.discard(),o[yc("0xcb")]((t=>r[yc("0x43")]((e=>e[yc("0x128")](t,!0)))))){const e=this[yc("0x145")][yc("0x161")](yc("0x167"),n,"accept");return this[yc("0x14a")]((()=>e(t,null,i))),null}}else{const t=e[yc("0x96")]();if(o[yc("0x43")]((e=>e[yc("0x128")](t,!0)))&&e[yc("0x2")](),o[yc("0xcb")]((e=>t[yc("0x128")](e,!0)))){const t=this[yc("0x145")][yc("0x161")](yc("0x167"),n,yc("0x15e"));return this.forceDefaultExecution((()=>t(o,null,i))),null}}const a=this._suggestionFactory[yc("0x161")](yc("0x167"),n,"join");let c=null;for(const t of this[yc("0x51")]())if(t.author.id==r.id&&t.isInContent&&yc("0x167")==t[yc("0x7a")]&&t.subType==n&&Fc(t,i)&&(a(t[yc("0xa8")](),o)||a(o,t[yc("0xa8")]())))if(c){if(t.commentThread&&t[yc("0xd")][yc("0x3")])continue;for(const e of t[yc("0xa8")]())c[yc("0xcc")](e)||c[yc("0x143")](e);t.removeMarkers()}else{c=t;for(const e of o)t.isIntersectingWithRange(e)||t[yc("0x143")](e)}if(c)return c;x[yc("0x3b")]();for(const{suggestion:t,meta:e}of this[yc("0x127")](o,"deletion"))e[yc("0x164")]&&(this._mergeNestedSuggestions||!e[yc("0x180")]&&!e[yc("0x9a")])&&Fc(t,i)&&x[yc("0xe3")](t);for(const t of x){const e=t[yc("0xa8")]();if((!i||!i[yc("0x90")])&&o[yc("0xcb")]((t=>e[yc("0x43")]((e=>e[yc("0x128")](t,!0))))))return t;(!t[yc("0x81")]||!t[yc("0x81")][yc("0x90")])&&e.every((t=>o[yc("0x43")]((e=>e[yc("0x128")](t,!0)))))&&t[yc("0x2")]()}const l=(0,e.uid)(),u=r.id,d=yc("0xc5")+n,g=this[yc("0x69")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:i});for(const t of o)t[yc("0x6e")](),t[yc("0x100")]||yc("0x176")==t.root[yc("0xf1")]||this._addSuggestionMarker(d,l,u,t,Yi[yc("0xb9")]());return g}markAttributeChange(t,n,i,r,o){if(t[yc("0x100")])return[];if(yc("0xfc")===this[yc("0x89")])return[];const s=this.editor[yc("0x8c")].get(yc("0x157")).me.id,x=Array[yc("0x151")](this._suggestions.values())[yc("0xe2")]((e=>yc("0xe0")==e[yc("0x7a")]&&e[yc("0x39")].key==n&&e.isIntersectingWithRange(t)));if(yc("0x38")===this[yc("0x89")]){const e=this[yc("0x127")](t,yc("0x25"))[yc("0xe2")]((({meta:t})=>t[yc("0x164")]&&!t[yc("0x9a")]&&!t[yc("0x92")]))[yc("0x16f")]((({suggestion:t})=>t));x[yc("0x12f")](...e)}const a=new Map([[t,i]]);for(const t of x){const e=yc("0xe0")==t[yc("0x7a")]?t[yc("0x39")][yc("0x117")]:void 0,o=t[yc("0x96")](),s=Array[yc("0x151")](a[yc("0x66")]())[yc("0x16")]((t=>t[yc("0xe")](o)));if(!s)continue;const x=s[yc("0x18")](o);this[yc("0x62")](n)&&yc("0x25")==t[yc("0x7a")]&&0!=x.length||(a.delete(s),x[yc("0xe7")]((t=>{a[yc("0x45")](t,i)})),yc("0x25")!=t.type&&e!=r&&a[yc("0x45")](s[yc("0x177")](o),e))}const c=[];for(const[t,i]of a){const x=(0,e.uid)(),a={key:n,oldValue:i,newValue:r};n[yc("0x3")]>37&&console[yc("0x79")]("Creating a suggestion for attribute with too long attribute key. This may lead to errors. Change the attribute key to a value shorter than 37 characters.",{key:n});const l=(yc("0x4a")+(n+"|")+Sc({newValue:r}))[yc("0xc0")](0,60),u=this[yc("0x69")]({id:x,type:l,data:a,createdAt:new Date,authorId:s,attributes:o});c[yc("0x64")](u),this[yc("0x12b")](l,x,s,t)}return c}[yc("0x6b")](t){this[yc("0x11d")][yc("0xe3")](t)}[yc("0xc3")](t){this[yc("0x4b")].add(t)}[yc("0x1d")](t,e=[],n=[]){this[yc("0x17e")](t,((t,...e)=>{this[yc("0x13b")]((()=>{t(...e)}))}));for(const t of e)this._registerInlineAttribute(t);for(const t of n)this[yc("0x6b")](t)}[yc("0x168")](t){return yc("0xe0")==t.type?t.subType[yc("0x56")]("|")[0]:null}[yc("0x5d")](t,e){const n=t[yc("0x29")]();this[yc("0x106")][yc("0x152")]((t=>{t[yc("0x147")](n,{range:e})}))}[yc("0xdb")](t){const e=t.id,n=this.editor[yc("0x11a")][yc("0x2c")](yc("0xff"));this[yc("0x135")][yc("0x12e")](e)||this[yc("0x135")].addCommentThread({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const i=this._commentsRepository[yc("0xde")](e);i[yc("0x3d")](yc("0x141")),i[yc("0x141")]=!1,t[yc("0xd")]=i}[yc("0x7c")](t,n,i,r){if(t.type!=n||t[yc("0x15")]!=i||t[yc("0xcd")].id!=r)throw this.editor[yc("0x4f")](yc("0x10a")),new e.CKEditorError(yc("0x10a"),this)}[yc("0xa7")](t,n){const i=t[yc("0x96")]();if(n.isEqual(i))t[yc("0x0")]();else if(i[yc("0x128")](n)){const r=this[yc("0x106")][yc("0xd2")](n[yc("0x78")][yc("0x65")],"end");this[yc("0x5d")](t,this[yc("0x106")][yc("0x175")](i.start,r));const o=(0,e.uid)(),s=t[yc("0xcd")].id,x=t[yc("0x7a")]+":"+t.subType;this[yc("0x69")]({id:o,type:x,createdAt:new Date,authorId:s,data:t[yc("0x39")],attributes:t[yc("0x81")]});const a=this[yc("0x106")].createPositionAt(n[yc("0x19")][yc("0xc8")],yc("0x23")),c=this[yc("0x106")][yc("0x175")](a,i[yc("0x19")]);this[yc("0x12b")](x,o,s,c)}else if(i[yc("0xd7")](n[yc("0x78")])){const e=this[yc("0x106")][yc("0xd2")](n[yc("0x78")][yc("0x65")],yc("0x19"));this[yc("0x5d")](t,this[yc("0x106")][yc("0x175")](i[yc("0x78")],e))}else{const e=this[yc("0x106")][yc("0xd2")](n[yc("0x19")][yc("0xc8")],yc("0x23"));this[yc("0x5d")](t,this[yc("0x106")].createRange(e,i[yc("0x19")]))}}[yc("0x119")](t){for(const{suggestion:e,meta:n}of this._findSuggestions(t,yc("0x25"))){if(!n[yc("0x164")])continue;const i=e[yc("0xa8")]();for(const e of i)if(!t.getDifference(e).length)return!0}return!1}[yc("0x17")](t){const n=this[yc("0x5f")][yc("0x8c")][yc("0x2c")](yc("0x157"))[yc("0x3a")](t);if(!n)throw new e.CKEditorError("track-changes-user-not-found",this);return n}_getExternalAuthor(t){const e=this[yc("0x5f")][yc("0x8c")][yc("0x2c")]("Users"),n=(0,o.hashObject)(yc("0xaa")+t);return e[yc("0x3a")](n)||e[yc("0x142")]({id:n,name:t})}[yc("0x77")](t,e,n,i,r){const o=this[yc("0x17")](i),s=this[yc("0x145")][yc("0xb2")](t,e,n,o,r,(t=>{this[yc("0x7")](n,{attributes:t});const e=this[yc("0x71")](n);this[yc("0x54")](new Set([e])),this[yc("0x115")](new Set([e]))}));return this.listenTo(s,"accept",(()=>{this[yc("0x7")](n,{state:yc("0xe5")})}),{priority:"high"}),this[yc("0xfd")](s,"discard",(()=>{this[yc("0x7")](n,{state:yc("0xb6")})}),{priority:yc("0x139")}),this[yc("0x14f")].set(n,s),this[yc("0x134")][yc("0x45")](s,yc("0x5")),s}[yc("0xa6")](t){const e=t[yc("0x56")](":");return{group:e[0],type:e[1],subType:e[yc("0x3")]>=5?e[2]:null,id:e[yc("0x3")]<5?e[2]:e[3],authorId:e.length<5?e[3]:e[4],markerCount:6==e.length?e[5]:null}}[yc("0x130")](t,n,i){const r=t[yc("0x96")](),o=r[yc("0x78")],s=r.end;this[yc("0x5d")](t,this[yc("0x106")][yc("0x175")](o,n));const x=(0,e.uid)(),a=t[yc("0xcd")].id,c=t.type+(t[yc("0x15")]?":"+t[yc("0x15")]:"");this[yc("0x69")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t.attributes,data:t.data});const l=this._getAttributeKey(t);(yc("0x11c")==t.type||l&&this[yc("0x62")](l))&&(i=this[yc("0x106")][yc("0x7d")](i.parent)),this[yc("0x12b")](c,x,a,this[yc("0x106")][yc("0x175")](i,s))}[yc("0x127")](t,e=null){const n=[],i=this[yc("0x5f")].plugins.get(yc("0x157")).me;Array[yc("0x105")](t)||(t=[t]);for(const r of this.getSuggestions()){if(!r.isInContent)continue;if(e&&r[yc("0x7a")]!=e)continue;let o=!1;for(const e of r[yc("0xa8")]()){for(const s of t){const t=s[yc("0x78")][yc("0xaf")](e[yc("0x19")])||s[yc("0x19")][yc("0xaf")](e[yc("0x78")]);if(t||s[yc("0x177")](e)){const x=s[yc("0x128")](e)&&Ic(this._model[yc("0x12a")],e[yc("0x78")],s),a=e[yc("0x128")](s)&&Ic(this[yc("0x106")][yc("0x12a")],s[yc("0x78")],e);n[yc("0x64")]({suggestion:r,meta:{isOwn:i==r[yc("0x14e")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),o=!0;break}}if(o)break}}return n}[yc("0x12b")](t,e,n,i,r){this[yc("0x106")][yc("0x152")]((o=>{let s=yc("0x8e")+t+":"+e+":"+n;r&&(s=s+":"+r),o[yc("0xd8")](s,{range:i,usingOperation:!0,affectsData:!0})}))}[yc("0x114")](t){const e=t[yc("0x124")],n=t[yc("0x17d")];t.previous=null,t[yc("0x17d")]=null,null!=e&&e[yc("0x17d")]==t&&(e.next=n),null!=n&&n[yc("0x124")]==t&&(n.previous=e),yc("0xf7")==this[yc("0x134")][yc("0x2c")](t)&&(this[yc("0x134")][yc("0x45")](t,"removed"),this.fire(yc("0xfa"),t,e,n))}_setSuggestionData(t){const n=t.id,i=this.addSuggestionData(t);if(this._adapter&&this[yc("0x24")][yc("0x13")]){const r=this[yc("0x5f")][yc("0x8c")][yc("0x2c")]("PendingActions"),o=i.hasComments,s=i.subType?i[yc("0x7a")]+":"+i[yc("0x15")]:i[yc("0x7a")],x=this.editor[yc("0x8d")],a=r.add(Ji(x,yc("0x36"))),c={id:n,type:s,hasComments:o,data:t[yc("0x39")]||null,originalSuggestionId:t[yc("0xb5")]||null,attributes:i[yc("0x81")]};this._adapter[yc("0x13")](c)[yc("0xf4")]((t=>{i._saved=!0,r[yc("0xa4")](a),t&&t[yc("0x1f")]&&(this[yc("0x14f")].get(n).createdAt=t[yc("0x1f")])}))[yc("0x1b")]((t=>{throw(0,e.logWarning)(yc("0x5c")),this[yc("0x5f")].model[yc("0x17f")]({isUndoable:!1},(()=>{i[yc("0x2")]()})),i[yc("0x12d")](),this._suggestions[yc("0x55")](i.id),this[yc("0x134")][yc("0x55")](i),t}))}return i}[yc("0x62")](t){return this[yc("0x11d")][yc("0x2e")](t)}[yc("0x7")](t,e){const n=this[yc("0x5f")][yc("0x8c")][yc("0x2c")](yc("0x110")),i=this.getSuggestion(t);if(this[yc("0x24")]&&this[yc("0x24")][yc("0xc1")])if(i[yc("0xf")]){const i=n[yc("0xe3")](Ji(this.editor[yc("0x8d")],yc("0x36")));this[yc("0x24")][yc("0xc1")](t,e)[yc("0xf4")]((()=>{n[yc("0xa4")](i)}))}else i.on("change:_saved",(()=>{this[yc("0x7")](t,e)}))}[yc("0x9c")](t){if(!this[yc("0x24")]||!this[yc("0x24")].getSuggestion)throw new e.CKEditorError("track-changes-adapter-missing-getsuggestion",this);return this[yc("0x24")][yc("0x71")](t)}[yc("0xcf")](t){const{id:e,type:n,subType:i,authorId:r}=this[yc("0xa6")](t),o=this[yc("0x14f")][yc("0x2c")](e)||this[yc("0x77")](n,i,e,r,{});switch(this[yc("0x7c")](o,n,i,r),this[yc("0x134")][yc("0x2c")](o)){case"notReady":this[yc("0x9c")](e)[yc("0xf4")]((t=>{let n=Promise[yc("0x15a")]();t[yc("0x112")]&&(n=this[yc("0x135")][yc("0x166")]({channelId:this[yc("0x5f")].config[yc("0x2c")](yc("0xff")),threadId:e})),n[yc("0xf4")]((()=>{this[yc("0xbe")](t)[yc("0xf")]=!0}))})),this[yc("0x134")][yc("0x45")](o,"markerReady");break;case yc("0x86"):this[yc("0x7")](e,{state:yc("0xe9")});case"dataReady":this[yc("0x134")][yc("0x45")](o,yc("0xf7")),this[yc("0x13d")](yc("0x17a"),o);break;case yc("0xf7"):this[yc("0x13d")]("suggestionChanged",o)}return o.addMarkerName(t),o}[yc("0x115")](t){const e=Array.from(t),n=e.filter((t=>"attribute"==t[yc("0x7a")]));this._refreshAttributeSuggestionsChain(n);const i=e[yc("0xe2")]((t=>!t[yc("0x154")]&&yc("0xe0")!=t[yc("0x7a")])),r=this[yc("0x51")]({skipNotAttached:!0}).filter((t=>!t[yc("0x154")]&&yc("0xe0")!=t[yc("0x7a")])),o=r.filter((e=>!t.has(e))),s=new Map(r[yc("0x16f")]((t=>[t,this._suggestionFactory[yc("0x161")](t[yc("0x7a")],t[yc("0x15")],yc("0xb"))]))),x=new Map(r[yc("0x16f")]((t=>[t,t[yc("0x96")]()]))),a=new Set,c=new Set;for(let t=0;t<i[yc("0x3")];t++)u(i[t],i,t+1);for(let t=0;t<i[yc("0x3")];t++)u(i[t],o,0);const l=new Set;for(let t=0;t<i[yc("0x3")];t++){const e=i[t];!c.has(e)&&e[yc("0x124")]&&(l[yc("0xe3")](e.previous),e.previous[yc("0x17d")]===e&&(e.previous[yc("0x17d")]=null),e.previous=null),!a[yc("0x2e")](e)&&e[yc("0x17d")]&&(l[yc("0xe3")](e[yc("0x17d")]),e.next.previous===e&&(e.next[yc("0x124")]=null),e[yc("0x17d")]=null)}function u(t,e,n){for(let i=n;i<e[yc("0x3")];i++){const n=d(t,e[i]);n&&(n[0][yc("0x17d")]=n[1],n[1][yc("0x124")]=n[0],a[yc("0xe3")](n[0]),c.add(n[1]))}}function d(t,e){if(t[yc("0x14e")].id!==e[yc("0x14e")].id)return null;const n=s[yc("0x2c")](t)(t,e,x[yc("0x2c")](t),x[yc("0x2c")](e));return n&&s[yc("0x2c")](e)(t,e,x[yc("0x2c")](t),x[yc("0x2c")](e))?n[1].commentThread&&n[1][yc("0xd")][yc("0x3")]?null:n:null}l[yc("0x111")]&&this._refreshSuggestionsChain(l)}[yc("0x123")](t){if(0==t[yc("0x3")])return;const e=this[yc("0x51")]({skipNotAttached:!0})[yc("0xe2")]((t=>"attribute"==t[yc("0x7a")]&&t[yc("0x150")])),n=[],i=new Map;for(const t of e){const e=(0,o.hashObject)(t[yc("0x81")]);i[yc("0x2e")](e)||(i[yc("0x45")](e,n[yc("0x3")]),n[yc("0x64")]([]));const r=i[yc("0x2c")](e);n[r][yc("0x64")](t)}!function(){n.sort(((t,e)=>{const n=t[0][yc("0x1f")],i=e[0][yc("0x1f")];return n==i?t[0][yc("0x81")][yc("0x1")]<e[0][yc("0x81")][yc("0x1")]?-1:1:n<i?-1:1}));for(const t of n)t.sort(((t,e)=>t.id<e.id?-1:1))}();for(let t=0;t<n[yc("0x3")];t++){if(0==n[t].length)continue;const e=[];for(let i=t+1;i<n.length;i++)0!=n[i][yc("0x3")]&&r(n[t],n[i])&&e[yc("0x64")](i);for(const i of e)n[t]=n[t][yc("0x181")](n[i]),n[i]=[]}for(const t of n)for(let e=0;e<t[yc("0x3")];e++)t[e][yc("0x17d")]=t[e+1]||null;for(const t of n)for(let e=0;e<t.length;e++)t[e].previous=t[e-1]||null;function r(t,e){if(t[0][yc("0x81")][yc("0x1")]!==e[0][yc("0x81")][yc("0x1")]&&t[0].author!==e[0][yc("0x14e")])return!1;if(n=t[0],i=e[0],(n.hasComments||i.hasComments)&&(n.hasComments&&i[yc("0x112")]||!(n.hasComments&&i[yc("0x1f")]<n[yc("0xd")][yc("0x3f")].get(0)[yc("0x1f")]||i[yc("0x112")]&&n.createdAt<i[yc("0xd")][yc("0x3f")][yc("0x2c")](0)[yc("0x1f")])))return!1;var n,i;const r=bc(t[0][yc("0x81")],yc("0x1")),o=bc(e[0][yc("0x81")],"groupId");return!!ji(r,o)&&(!!t[yc("0xcb")]((t=>e.some((e=>t[yc("0x96")]().isEqual(e.getFirstRange())))))&&e[yc("0xcb")]((e=>t[yc("0x43")]((t=>e.getFirstRange()[yc("0xaf")](t.getFirstRange()))))))}}_joinWithAdjacentSuggestions(t){const e=Array[yc("0x151")](t),n=this[yc("0x51")]({skipNotAttached:!0}),i=n[yc("0xe2")]((e=>!t[yc("0x2e")](e))),r=new Map(e[yc("0x16f")]((t=>[t,this[yc("0x145")][yc("0x161")](t[yc("0x7a")],t[yc("0x15")],yc("0x10e"))]))),o=new Map(n.map((t=>[t,t[yc("0xa8")]()])));for(let t=0;t<e[yc("0x3")];t++)if(s(this,e[t],e,t+1))return!0;for(let t=0;t<e[yc("0x3")];t++)if(s(this,e[t],i,0))return!0;return!1;function s(t,e,n,i){for(let s=i;s<n[yc("0x3")];s++){const i=n[s];if(i[yc("0x7a")]!==e[yc("0x7a")]||i[yc("0x14e")].id!==e[yc("0x14e")].id||i[yc("0x15")]!==e[yc("0x15")])continue;if(!Oc(e,i,[yc("0x1")]))continue;if(yc("0xe0")==e.type&&e[yc("0x39")][yc("0x117")]!=i[yc("0x39")][yc("0x117")])continue;if(yc("0xe0")==e[yc("0x7a")]&&t[yc("0x62")](e.data[yc("0x126")]))continue;if("formatBlock"==e[yc("0x7a")]){const n=t[yc("0x5f")][yc("0x7f")],i=e[yc("0x60")]();if(i&&(n[yc("0x12a")][yc("0xfe")](i)||n[yc("0x12a")][yc("0x6a")](i)))continue}const x=r.get(e),a=o.get(e),c=o[yc("0x2c")](i),l=e.commentThread&&e.commentThread.length,u=i.commentThread&&i[yc("0xd")][yc("0x3")];if(!l&&x(c,a))return t[yc("0x53")](i,e),o[yc("0x55")](e),!0;if(!u&&x(a,c))return t[yc("0x53")](e,i),o[yc("0x55")](i),!0}return!1}}[yc("0x53")](t,e){if(t[yc("0x154")])for(const n of e.getRanges())t[yc("0x143")](n);else{const n=e.getFirstRange()[yc("0x19")];this[yc("0x5d")](t,this._model.createRange(t.getFirstRange()[yc("0x78")],n))}e[yc("0x0")]()}[yc("0x133")](t,e){const n=t.startsWith(yc("0xae"))||t[yc("0x169")](yc("0xe0"))?yc("0x5a"):t[yc("0x179")]();return Ji(this[yc("0x5f")][yc("0x8d")],e+"_"+n+yc("0x26"))}[yc("0xf6")](){const t=this[yc("0x5f")];(0,o.surroundingMarkersDetector)(this[yc("0x106")],(({left:e,entered:n})=>{const i=[];for(const t of e){const{group:e,type:n}=this[yc("0xa6")](t[yc("0x11e")]);if(yc("0xc9")===e){i.push(this[yc("0x133")](n,yc("0x61")));break}}for(const t of n){const{group:e,type:n}=this[yc("0xa6")](t[yc("0x11e")]);if(yc("0xc9")===e){i[yc("0x64")](this._getMarkerAnnouncementText(n,yc("0x10")));break}}i.length&&t.ui.ariaLiveAnnouncer[yc("0xc2")](yc("0x93"),i[yc("0x10e")](" "))}))}[yc("0x16b")](t){if(this[yc("0xe4")])return!1;const e=this[yc("0x5f")],n=e.model[yc("0x63")][yc("0xa9")][yc("0xe1")]();if(0==n[yc("0x3")])return!1;const i=[],r=n.filter((t=>yc("0xe0")==t[yc("0x7a")])),o=n[yc("0xe2")]((t=>"insert"==t[yc("0x7a")]&&yc("0x158")!=t[yc("0x11e")])),s=n[yc("0xe2")]((t=>yc("0xa4")==t.type&&"$text"!=t[yc("0x11e")]));for(const t of r)i[yc("0x64")]({key:t[yc("0x48")],newValue:t[yc("0x148")],oldValue:t[yc("0x14b")],range:Nc(t[yc("0x136")],e.model)});for(const t of o){const n=s[yc("0x16")]((e=>e[yc("0x30")].isEqual(t[yc("0x30")])));n&&i[yc("0x64")]({key:yc("0x7b"),newValue:t[yc("0x11e")],oldValue:n[yc("0x11e")],range:e[yc("0x7f")][yc("0xc4")](t[yc("0x30")][yc("0x9")])})}return 0!=i[yc("0x3")]&&this[yc("0xba")](t,i)}_processAttributeSuggestions(t){let e=!1;const n=this[yc("0x5f")].model[yc("0x63")].differ.getChangedMarkers()[yc("0xe2")]((t=>t[yc("0x39")][yc("0x11b")]&&t.name[yc("0x169")](yc("0x12c"))));for(const i of n){const{subType:n,id:r}=this[yc("0xa6")](i.name),o=n[yc("0x56")]("|")[0];for(const n of this[yc("0x51")]({skipNotAttached:!0}))n.id!=r&&yc("0xe0")==n[yc("0x7a")]&&n[yc("0x39")]&&n[yc("0x39")][yc("0x126")]==o&&n[yc("0x96")]()[yc("0xe")](i[yc("0x39")].newRange)&&(this[yc("0xf0")](n,i[yc("0x39")][yc("0x11b")],t),e=!0)}return e}_recordAttributeChanges(t){this[yc("0x5f")],this[yc("0xe4")]=!0,t()}[yc("0x8f")](t){const e=this[yc("0x62")](t),n=this[yc("0x4b")][yc("0x2e")](t);return e||n}_reduceExistingSuggestions(t,e){if(0==e.length)return!1;let n=!1;for(const i of e){const e=this[yc("0x127")](i[yc("0x136")],yc("0xe0"))[yc("0xe2")]((t=>!t.meta[yc("0x92")])).map((t=>t[yc("0xc9")])),r=(0,o.hashObject)({newValue:i[yc("0x6")]});e[yc("0xe2")]((t=>{const[e,n]=t[yc("0x15")][yc("0x56")]("|");return e==i[yc("0x126")]&&n!=r}))[yc("0xe7")]((e=>{this[yc("0xf0")](e,i.range,t),n=!0}))}return n}[yc("0xf0")](t,e,n){const i=t[yc("0x96")]()[yc("0x18")](e);0!==i[yc("0x3")]?1!==i.length?this[yc("0x130")](t,e[yc("0x78")],e[yc("0x19")]):this[yc("0x5d")](t,i[0]):n[yc("0x172")](t[yc("0x29")]())}}class kc{constructor(t){this[yc("0xa2")]=t,this[yc("0x106")]=t.model,this._customCallbacks=new Map,this._defaultCallbacks=new Map,this[yc("0xce")]()}[yc("0xb2")](t,e,n,i,r,o){return new Yi(this[yc("0x106")],{type:t,subType:e,id:n,author:i,creator:i,attributes:r,onAttributesChange:o,onAccept:(...n)=>this[yc("0x161")](t,e,yc("0x15e"))(...n),onDiscard:(...n)=>this[yc("0x161")](t,e,yc("0x2"))(...n)})}registerCustomCallback(t,e,n,i){const r=t+":"+e+":"+n;this[yc("0x155")][yc("0x45")](r,i)}[yc("0x161")](t,e,n){const i=t+":"+e+":"+n;return this[yc("0x155")][yc("0x2c")](i)||this[yc("0xd1")].get(t+":"+n)}[yc("0xce")](){const t=()=>!1,e=t=>{t[yc("0x17c")](((t,e)=>t.start[yc("0x2a")](e.start)?1:-1)),this[yc("0x106")][yc("0x152")]((e=>{for(const n of t){let t;t=n[yc("0x19")][yc("0x6f")]&&n.end[yc("0xc8")]==n[yc("0x78")][yc("0x9")]?e[yc("0x6d")](n.start[yc("0x9")],"on"):e[yc("0x6d")](n),this[yc("0x106")][yc("0x99")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{e&&this._model[yc("0x152")]((n=>{const{commandName:i,commandParams:r=[]}=e,o=t[yc("0x16f")]((t=>(Rc(t)&&(t=this._model[yc("0x175")](t[yc("0x19")])),t)))[yc("0xe2")]((t=>yc("0x176")!==t.root[yc("0xf1")]));if(o[yc("0x3")]<1)return;const x=Array[yc("0x151")](this[yc("0x106")].document.selection[yc("0xa8")]())[yc("0x16f")]((t=>s.LiveRange[yc("0xc7")](t)));n.setSelection(o);for(const t of this[yc("0xa2")][yc("0x10d")].commands())t.refresh();r[yc("0x64")]({forceDefaultExecution:!0}),this[yc("0xa2")][yc("0x8")](i,...r);const a=x[yc("0xe2")]((t=>"$graveyard"!=t[yc("0xf5")].rootName));a[yc("0x3")]>0&&n.setSelection(a);for(const t of x)t[yc("0x6e")]()}))},i=(t,e)=>1==t[yc("0x3")]&&1==e.length&&t[0][yc("0x19")][yc("0xaf")](e[0][yc("0x78")]),r=(t,e,n,i)=>wc(t,e,n,i,this[yc("0x106")])?[t,e]:wc(e,t,i,n,this[yc("0x106")])?[e,t]:null;this._defaultCallbacks[yc("0x45")](yc("0x1a"),t),this[yc("0xd1")][yc("0x45")]("insertion:discard",e),this._defaultCallbacks[yc("0x45")](yc("0x7e"),i),this._defaultCallbacks[yc("0x45")](yc("0x15b"),r),this[yc("0xd1")].set(yc("0x57"),e),this[yc("0xd1")][yc("0x45")](yc("0xb8"),t),this[yc("0xd1")][yc("0x45")](yc("0x20"),i),this[yc("0xd1")][yc("0x45")](yc("0xf2"),r),this[yc("0xd1")][yc("0x45")]("formatInline:accept",n),this[yc("0xd1")][yc("0x45")](yc("0x73"),t),this[yc("0xd1")][yc("0x45")](yc("0x32"),i),this[yc("0xd1")][yc("0x45")](yc("0xac"),t),this[yc("0xd1")][yc("0x45")](yc("0xef"),n),this._defaultCallbacks.set(yc("0x153"),t),this[yc("0xd1")][yc("0x45")]("formatBlock:join",i),this._defaultCallbacks[yc("0x45")](yc("0xb7"),t),this[yc("0xd1")][yc("0x45")](yc("0xb0"),t),this[yc("0xd1")][yc("0x45")](yc("0x173"),((t,e)=>{if(!e)return;const n=this[yc("0xa2")][yc("0x8c")].get(Ac);this[yc("0x106")].change((i=>{if("$elementName"==e[yc("0x126")])for(const n of t){const t=n[yc("0x78")].nodeAfter,r=e[yc("0x117")];i[yc("0x58")](t,r)}else if(n[yc("0x62")](e[yc("0x126")]))for(const n of t)void 0!==e[yc("0x117")]?i[yc("0x70")](e[yc("0x126")],e[yc("0x117")],n[yc("0x78")][yc("0x9")]):i[yc("0x165")](e[yc("0x126")],n[yc("0x78")][yc("0x9")]);else for(const n of t)e[yc("0x117")]?i[yc("0x70")](e.key,e[yc("0x117")],n):i[yc("0x165")](e[yc("0x126")],n)}))})),this[yc("0xd1")][yc("0x45")](yc("0x3c"),i)}}function Ic(t,e,n){for(const i of e[yc("0xc8")].getAncestors({includeSelf:!0,parentFirst:!0})){if(i[yc("0xf5")]==i)return!1;if(!n[yc("0x9b")](i))return!1;if(t[yc("0xfe")](i)||t[yc("0x6a")](i))return!0}return!1}function Rc(t){return t.end[yc("0xc8")]==t.start[yc("0x9")]&&t[yc("0x19")][yc("0x4d")]}function vc(t,e,n,i){const r=t=>!t.item.is("$textProxy")&&!i[yc("0xfe")](t[yc("0x10b")]),o=t[yc("0x78")][yc("0x6c")](r),s=t.end[yc("0x6c")](r,{direction:yc("0x144")});return!(t[yc("0x78")][yc("0xaf")](o)&&t[yc("0x19")][yc("0xaf")](s)||(o[yc("0x2a")](s)?n.updateMarker(e,{range:n.createRange(o,s)}):n[yc("0x172")](e),0))}function Sc(t){return(0,o.hashObject)(t)}function Lc(t){const e=t[yc("0x78")][yc("0x9")];return e&&e.is(yc("0x120"))}function Nc(t,e){return null==t[yc("0x19")][yc("0x65")]&&t.end[yc("0xc8")]==t[yc("0x78")][yc("0x9")]?Mc(t[yc("0x78")][yc("0x9")],e):t}function Mc(t,e){const n=e[yc("0x12a")][yc("0xfe")](t)||e.schema[yc("0x131")](t);return e[yc("0x175")](e[yc("0xd2")](t,yc("0x5e")),n?e[yc("0x16d")](t):e[yc("0xd2")](t,yc("0x19")))}function wc(t,e,n,i,r){if(!Oc(t,e))return!1;if(n[yc("0x19")][yc("0xaf")](i.start))return!0;if(t[yc("0x7a")]!=e[yc("0x7a")])return!1;if(!n.end[yc("0xdc")](i.start))return!1;const o=r[yc("0x175")](n[yc("0x19")],i[yc("0x78")]).getWalker();for(const t of o)if(["elementStart",yc("0xf8")][yc("0xdf")](t[yc("0x7a")])&&r[yc("0x12a")].isLimit(t[yc("0x10b")]))return!1;return!0}function Oc(t,e,n=[]){return!(!t[yc("0x150")]||!e[yc("0x150")])&&ji(bc(t[yc("0x81")],n),bc(e.attributes,n))}function Fc(t,e){const n=Dc(t.attributes),i=Dc(e);if(!t[yc("0x150")])return!1;for(const t of Object[yc("0x66")](i))if(!ji(n[t],i[t]))return!1;return!0}function Dc(t){const e=Object[yc("0x97")]({},t);return delete e[yc("0x90")],delete e.tablePasteChainId,e}const Bc=["remove","_editor","locale","isEnabled","discardSuggestion","stopListening","_acceptCommand","get","commands","canAccept","_pendingAction","bind","destroy","isDirty","model","getRanges","_removePendingAction","canEditAt","_setPendingAction","plugins","listenTo","commentThreadController","change:isDirty","acceptSuggestion","_discardCommand","PendingActions","PENDING_ACTION_SUGGESTION","unbind","add","execute","view"];var Pc,Uc;Pc=Bc,Uc=161,function(t){for(;--t;)Pc.push(Pc.shift())}(++Uc);const jc=function(t,e){return Bc[t-=0]};class Gc extends((0,e.ObservableMixin)()){constructor(t,e,n,i){super(),this[jc("0x8")]=e,this.view=n,this.commentThreadController=i,this[jc("0x1a")]=t,this._acceptCommand=t[jc("0x2")].get("acceptSuggestion"),this[jc("0x12")]=t[jc("0x2")].get(jc("0x1d")),this[jc("0x18")][jc("0x5")]("isEnabled").to(this[jc("0x0")],this[jc("0x12")],((t,e)=>t||e)),this.view[jc("0x5")](jc("0x3")).to(this._acceptCommand,jc("0x1c"),(t=>t&&this._editor[jc("0x8")][jc("0xb")](e[jc("0x9")]()))),this[jc("0x18")].bind("canDiscard").to(this[jc("0x12")],jc("0x1c"),(t=>t&&this[jc("0x1a")].model[jc("0xb")](e[jc("0x9")]()))),this[jc("0x4")]=null,n[jc("0x7")]&&this[jc("0xc")](),this[jc("0xe")](n,jc("0x11"),(()=>this[jc("0x11")]())),this[jc("0xe")](n,jc("0x1d"),(()=>this[jc("0x1d")]())),this[jc("0xe")](n,jc("0x10"),(()=>{n.isDirty?this._setPendingAction():this._removePendingAction()}))}[jc("0x11")](){this[jc("0x0")][jc("0x17")](this[jc("0x8")].id)}[jc("0x1d")](){this[jc("0x12")][jc("0x17")](this[jc("0x8")].id)}[jc("0x6")](){this.view.unbind(jc("0x1c")),this.view[jc("0x15")](jc("0x3")),this[jc("0x18")][jc("0x15")]("canDiscard"),this[jc("0x1e")](),this[jc("0xf")][jc("0x6")](),this[jc("0x4")]&&this._removePendingAction()}[jc("0xc")](){const t=Ji(this[jc("0x1a")][jc("0x1b")],jc("0x14"));this[jc("0x4")]=this._editor[jc("0xd")][jc("0x1")](jc("0x13"))[jc("0x16")](t)}[jc("0xa")](){null!==this[jc("0x4")]&&this[jc("0x1a")].plugins[jc("0x1")](jc("0x13"))[jc("0x19")](this[jc("0x4")]),this[jc("0x4")]=null}}const Vc=["showInput","_model","_localUser","descriptionParts","fire","editorConfig","isReadOnly","length","cancel","locale","focus","setData","commentThread","element","assign","CommentView","isActive","commentInputView","delegate","editor","canDiscard","isEnabled","isDirty","removeComment","destroy","_createCommentViews","bind","commentThreadInputView","commentsListView","hasDirtyComment","canAccept","updateComment","authoredAt","_createCommentThreadInputView","submit","_config","set"];var Hc,zc;Hc=Vc,zc=185,function(t){for(;--t;)Hc.push(Hc.shift())}(++zc);const Wc=function(t,e){return Vc[t-=0]};class Kc extends r.View{constructor(t,e,n,i){super(t),this.commentsListView=null,this[Wc("0x1b")]=null,this[Wc("0x24")]("isActive",!1),this[Wc("0x24")](Wc("0x20"),e[Wc("0x20")]),this.bind(Wc("0x20")).to(e),this.set(Wc("0x3"),[]),this[Wc("0x24")](Wc("0x16"),!1),this[Wc("0x24")](Wc("0x15"),!1),this.set(Wc("0x1e"),!1),this[Wc("0x24")](Wc("0x14"),!1),this[Wc("0x1")]=e,this._localUser=n,this._config=i,i.disableComments?this[Wc("0x24")](Wc("0x7"),1):this[Wc("0x19")]()}[Wc("0xa")](){this[Wc("0xd")].focus()}[Wc("0x18")](){this[Wc("0x1c")]&&this[Wc("0x1c")][Wc("0x18")](),this[Wc("0x1b")]&&this[Wc("0x1b")][Wc("0x18")](),super.destroy()}[Wc("0x19")](){const{CommentsListView:t}=this[Wc("0x23")];this[Wc("0x1c")]=new t(this[Wc("0x9")],this[Wc("0x1")][Wc("0xc")],Object[Wc("0xe")]({CommentView:this._config[Wc("0xf")]},this._config)),this.commentsListView[Wc("0x12")](Wc("0x17")).to(this),this[Wc("0x1c")][Wc("0x12")](Wc("0x1f")).to(this),this.commentsListView.bind(Wc("0x10")).to(this),this.set(Wc("0x7"),this[Wc("0x1c")][Wc("0x7")]+1),this[Wc("0x1a")](Wc("0x7")).to(this.commentsListView,Wc("0x7"),(t=>t+1)),this[Wc("0x1b")]=this[Wc("0x21")](),this.on("removeComment",(()=>this[Wc("0xa")]())),this.bind(Wc("0x16")).to(this[Wc("0x1c")],Wc("0x1d"),this[Wc("0x1b")][Wc("0x11")],"value",((t,e)=>t||!!e))}[Wc("0x21")](){const{CommentThreadInputView:t}=this._config,e=new t(this.locale,this[Wc("0x2")],this[Wc("0x23")][Wc("0x5")]),n=e.commentInputView;return e[Wc("0x1a")](Wc("0x0")).to(this,"isActive",this[Wc("0x1")][Wc("0xc")],Wc("0x6"),n,"value",((t,e,n)=>!!n||t&&!e)),n.on(Wc("0x22"),((t,e)=>{this[Wc("0x4")]("addComment",e),n[Wc("0x13")][Wc("0xb")]("")})),n.on(Wc("0x8"),(()=>this.focus())),n[Wc("0x1a")]("disabledSubmit").to(this[Wc("0x1")].commentThread,Wc("0x6")),e}}const qc=["discardSuggestion",'<span class="ck-suggestion-color" style="background-color: ',"@external","content","discardButton","commentThreadInputView","<p>","isEnabled","ck-annotation__info","locale","fire","EXTERNAL_IMPORT_WORD_SUGGESTION","set","ck-suggestion","_config","source","editorReady","disableComments","isExternal","color","editorDestroyed","ck-annotation__content-wrapper","span","cancel","render","description","innerText","split",'"></span>',"ck-suggestion__info-name","userView","extendTemplate","ck-suggestion__actions","descriptionParts",'" title="',"author","ck-annotation","_model","creator","delegate","acceptButton","element","push","</p>","importWord","Discard suggestion",".ck-annotation__content-wrapper","children",'<span class="ck-suggestion-type">',"ck-suggestion-wrapper--active","ck-suggestion--accept","EXTERNAL_AVATAR","authoredAt","change:description","EXTERNAL_IMPORT_WORD_AVATAR","_createButton","</span>","value","time","Accept suggestion","join","commentsListView","EXTERNAL_SUGGESTION","bindTemplate","title","attributes","getExternalSuggestionNote","setTemplate","canDiscard","_descriptionElement","ck-annotation__info-name","div","type","ck-annotation__info-time","innerHTML","getTemplate","execute","isActive","bind","name","ck-annotation__actions","acceptSuggestion","formatDateTime"];var $c,Xc;$c=qc,Xc=221,function(t){for(;--t;)$c.push($c.shift())}(++Xc);const Zc=function(t,e){return qc[t-=0]};class Yc extends Kc{constructor(e,n,i,r){super(e,n,i,r),this[Zc("0x28")](Zc("0x11"),""),this[Zc("0x17")](Zc("0x11")).to(this,Zc("0x3d"),(t=>t&&t[0]?t[0][Zc("0x11")]:"")),this.bind(Zc("0x35")).to(this,Zc("0x3d"),this,"isActive",((t,e)=>{let n="";for(const e of t)n+=Zc("0x22")+Jc(e[Zc("0x1f")],e[Zc("0x2f")])+Zc("0x47");return e?n:(0,o.trimHtml)(n,{limit:140})})),this._descriptionElement=null,this[Zc("0x44")]=this[Zc("0x0")](Ji(e,Zc("0x4")),t.icons.check,Zc("0x4e"),Zc("0x1a"),"sw"),this.acceptButton[Zc("0x17")](Zc("0x23")).to(this,"canAccept"),this[Zc("0x20")]=this[Zc("0x0")](Ji(e,Zc("0x49")),t.icons[Zc("0x33")],"ck-suggestion--discard",Zc("0x1c"),"sw"),this.discardButton[Zc("0x17")]("isEnabled").to(this,Zc("0xd")),this[Zc("0x3a")]=new o.UserView(e,this._model[Zc("0x3f")],this.getUserViewNotificationText()),this[Zc("0x3a")][Zc("0x3b")]({attributes:{class:["ck-suggestion__user","ck-annotation__user"]}}),this[Zc("0xc")](this.getTemplate())}[Zc("0x14")](){const t=this[Zc("0x8")],e=[{tag:Zc("0x10"),attributes:{class:["ck-suggestion__info",Zc("0x24")]},children:[{tag:Zc("0x32"),children:[{text:this[Zc("0x3a")][Zc("0x18")]}],attributes:{class:[Zc("0x39"),Zc("0xf")]}},{tag:Zc("0x3"),attributes:{datetime:t.to(Zc("0x50")),class:["ck-comment__info-time",Zc("0x12")]},children:[{text:t.to(Zc("0x50"),(t=>this[Zc("0x2a")][Zc("0x1b")](t)))}]}]},{tag:Zc("0x10"),attributes:{class:[Zc("0x3c"),Zc("0x19")]},children:[this.acceptButton,this[Zc("0x20")]]},{tag:Zc("0x10"),attributes:{class:[Zc("0x31")]}}];this[Zc("0x41")][Zc("0x2e")]&&e[Zc("0x46")]({tag:"div",attributes:{class:["ck-comment__external"]},children:[{text:this.getExternalSuggestionNote()}]});const n={tag:"div",attributes:{class:["ck-suggestion-wrapper",t.if(Zc("0x16"),Zc("0x4d")),t.to(Zc("0x11"),(t=>"ck-suggestion-"+t)),this[Zc("0x2a")][Zc("0x2d")]&&"ck-suggestion--disabled-comments"],"data-suggestion-id":this[Zc("0x41")].id,"data-thread-id":this._model.commentThread.id,"data-author-id":this[Zc("0x41")][Zc("0x3f")].id,tabindex:-1},children:[{tag:Zc("0x10"),attributes:{class:[Zc("0x29"),Zc("0x40")]},children:[this[Zc("0x3a")],{tag:Zc("0x10"),attributes:{class:["ck-suggestion__main","ck-annotation__main"]},children:e}]}]};return this[Zc("0x6")]&&this[Zc("0x21")]&&(n[Zc("0x4b")][Zc("0x46")](this[Zc("0x6")],this[Zc("0x21")]),this[Zc("0x6")][Zc("0x43")](Zc("0x2c")).to(this),this[Zc("0x6")].delegate(Zc("0x30")).to(this),this.commentThreadInputView[Zc("0x43")](Zc("0x2c")).to(this),this[Zc("0x21")][Zc("0x43")](Zc("0x30")).to(this)),n}render(){super[Zc("0x34")](),this[Zc("0xe")]=this[Zc("0x45")].querySelector(Zc("0x4a")),this._descriptionElement.innerHTML=this[Zc("0x35")],this.on(Zc("0x51"),((t,e,n)=>{this[Zc("0xe")][Zc("0x13")]=n}))}_createButton(t,e,n,i,o){const s=new r.ButtonView(this[Zc("0x25")]);return s.set({label:t,icon:e,tooltip:!0,tooltipPosition:o}),s[Zc("0x3b")]({attributes:{class:n}}),s.on(Zc("0x15"),(()=>{this[Zc("0x26")](i,this[Zc("0x41")].id)})),s}[Zc("0xb")](){return Zc("0x48")===this[Zc("0x41")][Zc("0xa")][Zc("0x1e")][Zc("0x2b")]?Ji(this[Zc("0x25")],Zc("0x27")):Ji(this[Zc("0x25")],Zc("0x7"))}getUserViewNotificationText(){return this[Zc("0x41")][Zc("0x2e")]?Zc("0x48")===this[Zc("0x41")].attributes["@external"][Zc("0x2b")]?Ji(this[Zc("0x25")],Zc("0x52"),this[Zc("0x41")][Zc("0x42")][Zc("0x18")]):Ji(this.locale,Zc("0x4f"),this[Zc("0x41")][Zc("0x42")][Zc("0x18")]):null}}function Jc(t,e){let n="";return n+=t[Zc("0x37")]("*").map(((t,e)=>e%2!=0?Zc("0x4c")+Qc(t)+Zc("0x1"):Qc(t)))[Zc("0x5")](""),e&&(n+=Zc("0x1d")+e[Zc("0x2")]+Zc("0x3e")+e[Zc("0x9")]+Zc("0x38")),n}function Qc(t){const e=document.createElement("span");return e[Zc("0x36")]=t,e[Zc("0x13")]}const tl=["_destroyController","focus","head","_descriptionFactory","_handleControllerBuffer","lowest","value","editor","view","commands","_bindAnnotationToEditors","push","separator","map","isMultiRange","actionView","activeAnnotations","getByInnerView","addComment","comments.maxCommentCharsWhenCollapsed","filter","addSourceCollector","_createUIButton","length","isEnabled","keys","Accept all selected suggestions","editing","acceptAllSuggestions","trackChanges","model","Discard all selected suggestions","add","CommentsRepository","requires","_viewToController","delete","_initializeController","suggestionUnloaded","Track changes","TrackChangesEditing","Discard all suggestions","size","set","plugins","pluginName","_refreshActiveMarkers","EditorAnnotations","destroy","previous","_unbindEditors","_handleSuggestionControllerDelayed","switchbutton","descriptionParts","trackChanges.disableComments","change:activeAnnotations","execute","clear","createCommentThreadController","comments.maxThreadTotalWeight","reduce","from","button","getRanges","has","discardSelectedSuggestions","_suggestionToController","createAnnotation","hasSuggestion","listenTo","isDirty","isInContent","suggestion-","comments.editorConfig","get","mainView","CommentsUI","Accept all suggestions","getFirstRange","change:previous","values","activeMarkers","getSuggestion","define","innerView","bind","_disableComments","toMany","commandName","getAllAdjacentSuggestions","source","stopListening","suggestionChanged","getMarkerNames","some","_annotationViews","type","unbind","Annotations","buttonView","TrackChangesUI","config","remove","CommentView","isOn","_updateController","suggestionLoaded","arrowView"];var el,nl;el=tl,nl=241,function(t){for(;--t;)el.push(el.shift())}(++nl);const il=function(t,e){return tl[t-=0]};class rl extends t.Plugin{static get[il("0x9")](){return[Ac,o.Users,il("0x8"),il("0x49"),il("0x16")]}static get[il("0x14")](){return il("0x4b")}constructor(t){super(t),this[il("0x29")]=new Map,this[il("0xa")]=new Map,this[il("0x46")]=new Map,this[il("0x57")]=new Map;const e=this[il("0x5a")][il("0x4c")];e[il("0x3a")]("trackChanges.SuggestionThreadView",Yc),e.define(il("0x1d"),!1),this[il("0x3d")]=e[il("0x31")](il("0x1d"))}[il("0x1a")](t,e){0===this[il("0x57")][il("0x11")]&&setTimeout((()=>{for(const[t,e]of this._handleControllerBuffer){const n=this[il("0x29")].has(t);n||e?n&&e&&this[il("0x53")](t):this[il("0xc")](t)}this._handleControllerBuffer[il("0x20")](),this[il("0x5a")][il("0x13")][il("0x31")](il("0x16")).refreshSelectedViews(),this[il("0x15")]()}),10),this[il("0x57")].set(t,e)}init(){const t=this[il("0x5a")],e=t.plugins[il("0x31")]("TrackChangesEditing"),n=t.plugins[il("0x31")](il("0x49")),i=t[il("0x13")][il("0x31")](il("0x16")),r=t[il("0x13")][il("0x31")](il("0x8"));t.ui.componentFactory[il("0x7")](il("0x4"),(t=>this[il("0x69")](t))),i[il("0x68")]((()=>{const t=[];for(const[e,n]of Array[il("0x24")](this[il("0x29")])){const i=e.getAllAdjacentSuggestions(),r=[];for(const t of i){if(!t[il("0x2e")])continue;if(t[il("0x61")]){r[il("0x5e")](...t[il("0x26")]());continue}const e=t[il("0x35")]();if(r[il("0x6a")]>0){const t=r[0].getJoined(e);if(t){r[0]=t;continue}}r[il("0x5e")](e)}t[il("0x5e")]([n.view,r])}return t})),this.listenTo(e,il("0x51"),((t,e)=>{this[il("0x2c")](e,il("0x36"),((t,n,i,r)=>{e.isInContent&&(null==i?(this[il("0x50")](r[il("0x55")]),this[il("0x1a")](e,!1)):(this[il("0x50")](i.head),null==r&&this[il("0x1a")](e,!0)))})),null!==e[il("0x18")]?this._updateController(e[il("0x55")]):this[il("0x1a")](e,!1)})),this[il("0x2c")](e,il("0xd"),((t,e,n)=>{this[il("0x42")](e,il("0x36")),this[il("0x57")][il("0xb")](e),this[il("0x29")][il("0x27")](e)&&this._destroyController(e),n&&this[il("0x50")](n[il("0x55")])})),this[il("0x2c")](e,il("0x43"),((t,e)=>{this[il("0x50")](e)})),this.listenTo(n,il("0x1e"),(()=>{this[il("0x15")]()})),this[il("0x2c")](r,il("0x65"),((t,{threadId:n,isFromAdapter:i})=>{if(i||!e[il("0x2b")](n))return;const r=e[il("0x39")](n);this[il("0x29")].get(r)[il("0x5b")][il("0x54")]()}),{priority:il("0x58")})}[il("0x15")](){const t=this[il("0x5a")].plugins.get("Annotations"),e=this[il("0x5a")][il("0x13")][il("0x31")](il("0xf")),n=Array[il("0x24")](t[il("0x63")],(t=>t[il("0x3b")])).filter((t=>this[il("0xa")][il("0x27")](t))),i=[];for(const t of n){const e=this[il("0xa")][il("0x31")](t)[il("0x5")][il("0x40")]();i.push(...e[il("0x23")](((t,e)=>[...t,...e[il("0x44")]()]),[]))}e[il("0x38")]=i}_createUIButton(t){const n=(0,r.createDropdown)(t,r.SplitButtonView),i=this[il("0x5a")][il("0x5c")][il("0x31")](il("0x4")),o=Ji(t,il("0xe"));n[il("0x4a")].set({tooltip:o,label:o,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n.buttonView[il("0x3c")](il("0x4f")).to(i,il("0x59")),n[il("0x4a")].on("execute",(()=>{i[il("0x1f")](),this[il("0x5a")].editing[il("0x5b")][il("0x54")]()}));const s=new e.Collection,x=[{type:il("0x1b"),model:{withText:!0,label:o,commandName:il("0x4")}},{type:il("0x5f")},{type:il("0x25"),model:{withText:!0,label:Ji(t,il("0x34")),commandName:il("0x3")}},{type:il("0x25"),model:{withText:!0,label:Ji(t,il("0x1")),commandName:"acceptSelectedSuggestions"}},{type:"button",model:{withText:!0,label:Ji(t,il("0x10")),commandName:"discardAllSuggestions"}},{type:il("0x25"),model:{withText:!0,label:Ji(t,il("0x6")),commandName:il("0x28")}}];for(const t of x){let e={type:il("0x5f")};if(t[il("0x5")]){const n=new r.ViewModel(t[il("0x5")]),i=this[il("0x5a")][il("0x5c")][il("0x31")](n.commandName);n[il("0x3c")]("isOn","isEnabled").to(i,il("0x59"),il("0x6b")),e={type:t[il("0x47")],model:n}}s.add(e)}(0,r.addListToDropdown)(n,s);const a=x[il("0x67")]((t=>null!=t[il("0x5")]))[il("0x60")]((t=>this.editor.commands[il("0x31")](t.model[il("0x3f")]))),c=n.buttonView;return c[il("0x62")][il("0x48")](il("0x6b")),c.arrowView[il("0x48")](il("0x6b")),c.actionView[il("0x3c")](il("0x6b")).to(i,il("0x6b")),c[il("0x52")].bind(il("0x6b"))[il("0x3e")](a,il("0x6b"),((...t)=>t[il("0x45")]((t=>t)))),n.on(il("0x1f"),(t=>{this.editor[il("0x1f")](t[il("0x41")].commandName),this[il("0x5a")].editing.view[il("0x54")]()})),n}_initializeController(t){const e=this[il("0x5a")],n=e[il("0x4c")],i=e[il("0x13")][il("0x31")](il("0x49")),r=e[il("0x13")][il("0x31")](il("0x8")),s=e[il("0x13")].get(il("0x16")),x=e.plugins[il("0x31")](o.Users).me,a=n[il("0x31")](il("0x4")).SuggestionThreadView,{CommentsListView:c,CommentThreadInputView:l}=e[il("0x13")][il("0x31")](il("0x33"));let u,d;this[il("0x46")][il("0x27")](t.id)?(d=this._annotationViews[il("0x31")](t.id),u=d[il("0x32")]):(u=new a(e.locale,t,x,{disableComments:this[il("0x3d")],editorConfig:n.get(il("0x30")),maxCommentsWhenCollapsed:n.get("comments.maxCommentsWhenCollapsed"),maxThreadTotalWeight:n[il("0x31")](il("0x22")),maxCommentCharsWhenCollapsed:n.get(il("0x66")),formatDateTime:(0,o.getDateTimeFormatter)(n[il("0x31")]("locale")),CommentView:n[il("0x31")]("comments")[il("0x4e")],CommentsListView:c,CommentThreadInputView:l}),u.acceptButton.on("execute",(()=>{e[il("0x2")].view[il("0x54")]()})),u.discardButton.on(il("0x1f"),(()=>{e[il("0x2")][il("0x5b")][il("0x54")]()})),d=i.createAnnotationView(this[il("0x5a")].locale,u),d[il("0x3c")](il("0x2d")).to(u,"isDirty"),d[il("0x3c")](il("0x6a")).to(u),d[il("0x3c")](il("0x47")).to(u,il("0x47"),(t=>il("0x2f")+t)),this[il("0x46")][il("0x12")](t.id,d));const g=r[il("0x21")](t.commentThread,u),f=new Gc(e,t,u,g),h=t[il("0x40")]()[il("0x67")]((t=>t[il("0x2e")]));u[il("0x1c")]=e.plugins[il("0x31")]("TrackChangesEditing")._descriptionFactory.getDescriptions(h),this[il("0x29")].set(t,f),this[il("0xa")][il("0x12")](u,f);const m=i[il("0x2a")]({view:d,target:()=>{const n=[],i=t[il("0x40")]()[il("0x67")]((t=>t[il("0x2e")]));for(const t of i)n[il("0x5e")](...t.getMarkers());return(0,o.getAllMarkersDomElementsSorted)(e[il("0x2")],n)},type:()=>"suggestion-"+f[il("0x5b")][il("0x47")]});r[il("0x5d")](u,m),i[il("0x7")](m),s.registerAnnotation(m)}_destroyController(t){const e=this[il("0x5a")][il("0x13")].get("CommentsRepository"),n=this[il("0x5a")][il("0x13")][il("0x31")](il("0x49")),i=this[il("0x29")][il("0x31")](t),r=i[il("0x5b")],o=n[il("0x64")](r);e[il("0x19")](r),o&&n[il("0x4d")](o),this._suggestionToController[il("0xb")](t),this[il("0xa")][il("0xb")](r),i.destroy()}[il("0x50")](t){if(!t.isInContent||!this[il("0x29")][il("0x27")](t))return;const e=this.editor[il("0x13")][il("0x31")]("TrackChangesEditing"),n=this._suggestionToController[il("0x31")](t),i=t[il("0x40")]();n[il("0x5b")][il("0x1c")]=e[il("0x56")].getDescriptions(i)}[il("0x17")](){for(const t of this._suggestionToController[il("0x0")]())this._destroyController(t);for(const t of this[il("0x46")][il("0x37")]())t.mainView.destroy();super[il("0x17")]()}}var ol,sl,xl=["addSuggestion","pluginName","adapter","getSuggestion","Comments","requires","editor","plugins","get","TrackChanges"];ol=xl,sl=137,function(t){for(;--t;)ol.push(ol.shift())}(++sl);var al=function(t,e){return xl[t-=0]};class cl extends t.Plugin{static get[al("0x8")](){return[Ac,rl,al("0x7")]}static get[al("0x4")](){return al("0x2")}set[al("0x5")](t){this.editor.plugins[al("0x1")](Ac).adapter=t}get adapter(){return this[al("0x9")][al("0x0")][al("0x1")](Ac)[al("0x5")]}[al("0x3")](t){return this[al("0x9")].plugins[al("0x1")](Ac).addSuggestionData(t)}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[al("0x9")][al("0x0")].get(Ac).getSuggestions({skipNotAttached:t,toJSON:e})}getSuggestion(t){return this[al("0x9")][al("0x0")].get(Ac)[al("0x6")](t)}}const ll=["addSuggestionData","push","set","requires","TrackChangesData","execute","map","init","getSuggestions","acceptAllSuggestions","TrackChangesEditing","CommentsRepository","trackChangesData","create","getDataWithDiscardedSuggestions","plugins","result","data","name","document","getDataWithAcceptedSuggestions","end","appendChild","addUser","users","config","getRootsAttributes","model","getFullData","getUser","pluginName","createDocumentFragment","track-changes-data-invalid-editor-creator","TrackChangesDataGetter","editor","getRootNames","useAnonymousUser","editorCreator","discardAllSuggestions","div","constructor","function","get","define","reduce","_adapter","Users","createElement","destroy"];var ul,dl;ul=ll,dl=119,function(t){for(;--t;)ul.push(ul.shift())}(++dl);const gl=function(t,e){return ll[t-=0]},fl=["Pagination"];class hl extends t.Plugin{static get[gl("0x1f")](){return[Ac]}static get[gl("0x9")](){return gl("0x20")}[gl("0x23")](){const t=this[gl("0xd")];if(t[gl("0x4")][gl("0x16")]("trackChangesData.editorCreator",(e=>{const n=t[gl("0x6")][gl("0x2f")].getRootNames()[gl("0x17")](((t,e)=>(t[e]="",t)),{});return t[gl("0x13")][gl("0x29")](n,e)})),gl("0x14")!=typeof t[gl("0x4")][gl("0x15")]("trackChangesData")[gl("0x10")])throw new e.CKEditorError(gl("0xb"))}[gl("0x30")](t){return bl(this.editor,!0,t)}[gl("0x2a")](t){return bl(this.editor,!1,t)}}class ml extends t.Plugin{static get pluginName(){return gl("0xc")}constructor(t){super(t),this[gl("0x2c")]=gl("0x0")}[gl("0x23")](){this[gl("0xd")][gl("0x2b")][gl("0x15")](gl("0x27"))[gl("0x18")]={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this[gl("0xd")][gl("0x2b")][gl("0x15")](gl("0x26"))._adapter=null}}function pl(t){return void 0!==t[gl("0x5")]}async function bl(t,e,n){const i=(0,o.sanitizeEditorConfig)(t,fl);i[gl("0x2b")][gl("0x1d")](Ac,ml),i.rootsAttributes=pl(t)?t[gl("0x5")]():void 0;const r=document[gl("0xa")](),s=t[gl("0x4")].get(gl("0x28"))[gl("0x10")],x=await s(i,(()=>function(t){const e=document[gl("0x1a")](gl("0x12"));return t[gl("0x1")](e),e}(r)));!function(t,e){const n=t.model[gl("0x2f")][gl("0xe")]().reduce(((e,n)=>(e[n]=t[gl("0x2d")][gl("0x15")]({rootName:n}),e)),{}),i=t[gl("0x2b")].get(gl("0x19"))[gl("0x3")][gl("0x22")]((t=>({id:t.id,name:t[gl("0x2e")]}))),r=t.plugins[gl("0x15")](gl("0x26"))[gl("0x24")]({skipNotAttached:!0,toJSON:!0}),o=e.plugins.get(gl("0x19")),s=e[gl("0x2b")].get(gl("0x26"));for(const t of i)o[gl("0x8")](t.id)||o[gl("0x2")](t);o.me||o[gl("0xf")]();for(const t of r)s[gl("0x1c")](t);e[gl("0x2d")][gl("0x1e")](n)}(t,x),x[gl("0x21")](gl(e?"0x25":"0x11"));const a=pl(x)?x[gl("0x7")](n):x[gl("0x2d")][gl("0x15")](n);return await x[gl("0x1b")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=i})();
|