@ckeditor/ckeditor5-track-changes 35.3.1 → 35.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (152) hide show
  1. package/build/track-changes.js +2 -2
  2. package/build/translations/ar.js +1 -1
  3. package/build/translations/az.js +1 -1
  4. package/build/translations/bg.js +1 -1
  5. package/build/translations/bn.js +1 -1
  6. package/build/translations/ca.js +1 -1
  7. package/build/translations/cs.js +1 -1
  8. package/build/translations/da.js +1 -1
  9. package/build/translations/de.js +1 -1
  10. package/build/translations/el.js +1 -1
  11. package/build/translations/en-au.js +1 -1
  12. package/build/translations/es.js +1 -1
  13. package/build/translations/et.js +1 -1
  14. package/build/translations/fi.js +1 -1
  15. package/build/translations/fr.js +1 -1
  16. package/build/translations/gl.js +1 -1
  17. package/build/translations/he.js +1 -1
  18. package/build/translations/hi.js +1 -1
  19. package/build/translations/hr.js +1 -1
  20. package/build/translations/hu.js +1 -1
  21. package/build/translations/id.js +1 -1
  22. package/build/translations/it.js +1 -1
  23. package/build/translations/ja.js +1 -1
  24. package/build/translations/ko.js +1 -1
  25. package/build/translations/lt.js +1 -1
  26. package/build/translations/lv.js +1 -1
  27. package/build/translations/ms.js +1 -1
  28. package/build/translations/nl.js +1 -1
  29. package/build/translations/no.js +1 -1
  30. package/build/translations/pl.js +1 -1
  31. package/build/translations/pt-br.js +1 -1
  32. package/build/translations/pt.js +1 -1
  33. package/build/translations/ro.js +1 -1
  34. package/build/translations/ru.js +1 -1
  35. package/build/translations/sk.js +1 -1
  36. package/build/translations/sr-latn.js +1 -1
  37. package/build/translations/sr.js +1 -1
  38. package/build/translations/sv.js +1 -1
  39. package/build/translations/th.js +1 -1
  40. package/build/translations/tk.js +1 -1
  41. package/build/translations/tr.js +1 -1
  42. package/build/translations/tt.js +1 -1
  43. package/build/translations/uk.js +1 -1
  44. package/build/translations/ur.js +1 -1
  45. package/build/translations/vi.js +1 -1
  46. package/build/translations/zh-cn.js +1 -1
  47. package/build/translations/zh.js +1 -1
  48. package/lang/contexts.json +13 -0
  49. package/lang/translations/ar.po +55 -3
  50. package/lang/translations/az.po +52 -0
  51. package/lang/translations/bg.po +55 -3
  52. package/lang/translations/bn.po +55 -3
  53. package/lang/translations/ca.po +55 -3
  54. package/lang/translations/cs.po +55 -3
  55. package/lang/translations/da.po +55 -3
  56. package/lang/translations/de.po +55 -3
  57. package/lang/translations/el.po +55 -3
  58. package/lang/translations/en-au.po +52 -0
  59. package/lang/translations/en.po +52 -0
  60. package/lang/translations/es.po +55 -3
  61. package/lang/translations/et.po +55 -3
  62. package/lang/translations/fi.po +55 -3
  63. package/lang/translations/fr.po +55 -3
  64. package/lang/translations/gl.po +52 -0
  65. package/lang/translations/he.po +55 -3
  66. package/lang/translations/hi.po +55 -3
  67. package/lang/translations/hr.po +52 -0
  68. package/lang/translations/hu.po +55 -3
  69. package/lang/translations/id.po +55 -3
  70. package/lang/translations/it.po +55 -3
  71. package/lang/translations/ja.po +55 -3
  72. package/lang/translations/ko.po +55 -3
  73. package/lang/translations/lt.po +55 -3
  74. package/lang/translations/lv.po +55 -3
  75. package/lang/translations/ms.po +55 -3
  76. package/lang/translations/nl.po +55 -3
  77. package/lang/translations/no.po +55 -3
  78. package/lang/translations/pl.po +55 -3
  79. package/lang/translations/pt-br.po +55 -3
  80. package/lang/translations/pt.po +55 -3
  81. package/lang/translations/ro.po +55 -3
  82. package/lang/translations/ru.po +55 -3
  83. package/lang/translations/sk.po +55 -3
  84. package/lang/translations/sr-latn.po +52 -0
  85. package/lang/translations/sr.po +55 -3
  86. package/lang/translations/sv.po +55 -3
  87. package/lang/translations/th.po +55 -3
  88. package/lang/translations/tk.po +52 -0
  89. package/lang/translations/tr.po +55 -3
  90. package/lang/translations/tt.po +52 -0
  91. package/lang/translations/uk.po +55 -3
  92. package/lang/translations/ur.po +52 -0
  93. package/lang/translations/vi.po +55 -3
  94. package/lang/translations/zh-cn.po +55 -3
  95. package/lang/translations/zh.po +55 -3
  96. package/package.json +4 -4
  97. package/src/commands/acceptsuggestioncommand.js +1 -1
  98. package/src/commands/discardsuggestioncommand.js +1 -1
  99. package/src/commands/executeonallsuggestionscommand.js +1 -1
  100. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  101. package/src/commands/trackchangescommand.js +1 -1
  102. package/src/integrations/alignment.js +1 -1
  103. package/src/integrations/basicstyles.js +1 -1
  104. package/src/integrations/blockquote.js +1 -1
  105. package/src/integrations/ckbox.js +1 -1
  106. package/src/integrations/codeblock.js +1 -1
  107. package/src/integrations/comments.js +1 -1
  108. package/src/integrations/deletecommand.js +1 -1
  109. package/src/integrations/documentlist.js +1 -1
  110. package/src/integrations/documentlistproperties.js +23 -0
  111. package/src/integrations/entercommand.js +1 -1
  112. package/src/integrations/font.js +1 -1
  113. package/src/integrations/heading.js +1 -1
  114. package/src/integrations/highlight.js +1 -1
  115. package/src/integrations/horizontalline.js +1 -1
  116. package/src/integrations/htmlembed.js +1 -1
  117. package/src/integrations/image.js +1 -1
  118. package/src/integrations/importword.js +1 -1
  119. package/src/integrations/indent.js +1 -1
  120. package/src/integrations/inputcommand.js +1 -1
  121. package/src/integrations/link.js +1 -1
  122. package/src/integrations/list.js +1 -1
  123. package/src/integrations/listproperties.js +23 -0
  124. package/src/integrations/mediaembed.js +1 -1
  125. package/src/integrations/mention.js +1 -1
  126. package/src/integrations/pagebreak.js +1 -1
  127. package/src/integrations/paragraph.js +1 -1
  128. package/src/integrations/removeformat.js +1 -1
  129. package/src/integrations/restrictededitingmode.js +1 -1
  130. package/src/integrations/shiftentercommand.js +1 -1
  131. package/src/integrations/standardeditingmode.js +1 -1
  132. package/src/integrations/style.js +1 -1
  133. package/src/integrations/table.js +1 -1
  134. package/src/integrations/tablecaption.js +1 -1
  135. package/src/integrations/tableclipboard.js +1 -1
  136. package/src/integrations/tablecolumnresize.js +23 -0
  137. package/src/integrations/tableheadings.js +1 -1
  138. package/src/integrations/tablemergesplit.js +1 -1
  139. package/src/integrations/title.js +1 -1
  140. package/src/integrations/undo.js +1 -1
  141. package/src/integrations/utils.js +1 -1
  142. package/src/suggestion.js +1 -1
  143. package/src/suggestiondescriptionfactory.js +1 -1
  144. package/src/trackchanges.js +1 -1
  145. package/src/trackchangesdata.js +1 -1
  146. package/src/trackchangesediting.js +1 -1
  147. package/src/trackchangesui.js +1 -1
  148. package/src/ui/suggestioncontroller.js +1 -1
  149. package/src/ui/view/basesuggestionthreadview.js +1 -1
  150. package/src/ui/view/suggestionthreadview.js +1 -1
  151. package/src/utils/common-translations.js +1 -1
  152. package/src/utils/utils.js +1 -1
@@ -1,5 +1,5 @@
1
- !function(e){const t=e.en=e.en||{};t.dictionary=Object.assign(t.dictionary||{},{"*Change %0 content*":"*Change %0 content*","*Change to:* %0":"*Change to:* %0","*Check item*":"*Check item*","*Format:* %0":"*Format:* %0","*Format:* insert into %0":"*Format:* insert into %0","*Format:* remove from %0":"*Format:* remove from %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 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_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_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_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",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_BOLD:"bold",FORMAT_CODE:"code",FORMAT_HEADER_COLUMN:"header column",FORMAT_HEADER_ROW:"header row",FORMAT_HIGHLIGHT:"highlight",FORMAT_ITALIC:"italic",FORMAT_JUSTIFY_TEXT:"justify",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_SUBSCRIPT:"subscript",FORMAT_SUPERSCRIPT:"superscript",FORMAT_UNDERLINE:"underline",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:* 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 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_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_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_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",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_BOLD:"bold",FORMAT_CODE:"code",FORMAT_HEADER_COLUMN:"header column",FORMAT_HEADER_ROW:"header row",FORMAT_HIGHLIGHT:"highlight",FORMAT_ITALIC:"italic",FORMAT_JUSTIFY_TEXT:"justify",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_SUBSCRIPT:"subscript",FORMAT_SUPERSCRIPT:"superscript",FORMAT_UNDERLINE:"underline",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
3
  * @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
4
4
  * For licensing, see LICENSE.md.
5
- */(()=>{var e={701:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(758),r=n.n(o)()((function(e){return e[1]}));r.push([e.id,".ck-content pre>code.ck-suggestion-marker-formatBlock{box-shadow:-7px 0 0 0 #ededed,-10px 0 0 0 var(--ck-color-suggestion-marker-format-border);display:block}.ck-content pre>code.ck-suggestion-marker-formatBlock.ck-suggestion-marker--active{box-shadow:-5px 0 0 0 #ededed,-8px 0 0 0 var(--ck-color-suggestion-marker-format-border-active)}",""]);const s=r},156:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(758),r=n.n(o)()((function(e){return e[1]}));r.push([e.id,".ck-content .ck-suggestion-marker-deletion.ck-widget.ck-horizontal-line{background-color:var(--ck-color-suggestion-widget-deletion-background)}.ck-content .ck-suggestion-marker-deletion.ck-widget.ck-horizontal-line.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-suggestion-marker-insertion.ck-widget.ck-horizontal-line{background-color:var(--ck-color-suggestion-widget-insertion-background)}.ck-content .ck-suggestion-marker-insertion.ck-widget.ck-horizontal-line.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}",""]);const s=r},510:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(758),r=n.n(o)()((function(e){return e[1]}));r.push([e.id,".ck-content .ck-suggestion-marker-deletion.ck-widget.image{background-color:var(--ck-color-suggestion-widget-deletion-background)}.ck-content .ck-suggestion-marker-deletion.ck-widget.image img{opacity:.6}.ck-content .ck-suggestion-marker-deletion.ck-widget.image figcaption{background-color:var(--ck-color-suggestion-widget-deletion-background)}.ck-content .ck-suggestion-marker-deletion.ck-widget.image.ck-suggestion-marker--active,.ck-content .ck-suggestion-marker-deletion.ck-widget.image.ck-suggestion-marker--active figcaption{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-suggestion-marker-insertion.ck-widget.image,.ck-content .ck-suggestion-marker-insertion.ck-widget.image figcaption{background-color:var(--ck-color-suggestion-widget-insertion-background)}.ck-content .ck-suggestion-marker-insertion.ck-widget.image.ck-suggestion-marker--active,.ck-content .ck-suggestion-marker-insertion.ck-widget.image.ck-suggestion-marker--active figcaption{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}.ck-content .ck-widget.image>figcaption.ck-suggestion-marker-deletion{background-color:var(--ck-color-suggestion-widget-deletion-background);border:none}.ck-content .ck-widget.image>figcaption.ck-suggestion-marker-deletion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-widget.image>figcaption.ck-suggestion-marker-insertion{background-color:var(--ck-color-suggestion-widget-insertion-background);border:none}.ck-content .ck-widget.image>figcaption.ck-suggestion-marker-insertion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}",""]);const s=r},481:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(758),r=n.n(o)()((function(e){return e[1]}));r.push([e.id,".ck-content .ck-suggestion-marker-deletion.ck-widget.media{background-color:var(--ck-color-suggestion-widget-deletion-background)}.ck-content .ck-suggestion-marker-deletion.ck-widget.media .ck-media__wrapper{opacity:.6}.ck-content .ck-suggestion-marker-deletion.ck-widget.media.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-suggestion-marker-insertion.ck-widget.media{background-color:var(--ck-color-suggestion-widget-insertion-background)}.ck-content .ck-suggestion-marker-insertion.ck-widget.media.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}",""]);const s=r},437:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(758),r=n.n(o)()((function(e){return e[1]}));r.push([e.id,".ck-content .ck-suggestion-marker-deletion.ck-widget.page-break{background-color:var(--ck-color-suggestion-widget-deletion-background)}.ck-content .ck-suggestion-marker-deletion.ck-widget.page-break.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-suggestion-marker-insertion.ck-widget.page-break{background-color:var(--ck-color-suggestion-widget-insertion-background)}.ck-content .ck-suggestion-marker-insertion.ck-widget.page-break.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}",""]);const s=r},895:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(758),r=n.n(o)()((function(e){return e[1]}));r.push([e.id,":root{--ck-color-suggestion-widget-th-insertion-background:rgba(102,229,119,.12);--ck-color-suggestion-widget-th-insertion-background-active:rgba(37,218,61,.14);--ck-color-suggestion-widget-th-deletion-background:rgba(229,102,134,.14);--ck-color-suggestion-widget-th-deletion-background-active:rgba(196,33,74,.16)}.ck-content figure.table .ck-suggestion-marker-formatBlock{box-shadow:-3px 0 0 0 var(--ck-color-suggestion-marker-format-border)}.ck-content figure.table .ck-suggestion-marker-formatBlock.ck-suggestion-marker--active{box-shadow:-3px 0 0 0 var(--ck-color-suggestion-marker-format-border-active)}.ck-content .ck-suggestion-marker-insertion.table{border-color:var(--ck-color-suggestion-marker-insertion-border)}.ck-content .ck-suggestion-marker-insertion.table>figcaption{background-color:var(--ck-color-suggestion-widget-insertion-background)}.ck-content .ck-suggestion-marker-insertion.table>table>tbody>tr>th,.ck-content .ck-suggestion-marker-insertion.table>table>thead>tr>th{background-color:var(--ck-color-suggestion-widget-th-insertion-background);border-color:var(--ck-color-suggestion-marker-insertion-border)}.ck-content .ck-suggestion-marker-insertion.table>table>tbody>tr>td{background-color:var(--ck-color-suggestion-widget-insertion-background);border-color:var(--ck-color-suggestion-marker-insertion-border)}.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active.table{border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active.table>figcaption{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active.table>table>tbody>tr>th,.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active.table>table>thead>tr>th{background-color:var(--ck-color-suggestion-widget-th-insertion-background-active);border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active.table>table>tbody>tr>td{background-color:var(--ck-color-suggestion-widget-insertion-background-active);border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck-content .ck-suggestion-marker-deletion.ck-widget.table{border-color:var(--ck-color-suggestion-marker-deletion-border)}.ck-content .ck-suggestion-marker-deletion.ck-widget.table>figcaption{background-color:var(--ck-color-suggestion-widget-deletion-background)}.ck-content .ck-suggestion-marker-deletion.ck-widget.table>table>tbody>tr>th,.ck-content .ck-suggestion-marker-deletion.ck-widget.table>table>thead>tr>th{background-color:var(--ck-color-suggestion-widget-th-deletion-background);border-color:var(--ck-color-suggestion-marker-deletion-border);text-decoration:none}.ck-content .ck-suggestion-marker-deletion.ck-widget.table>table>tbody>tr>td{background-color:var(--ck-color-suggestion-widget-deletion-background);border-color:var(--ck-color-suggestion-marker-deletion-border);text-decoration:none}.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active.table{border-color:var(--ck-color-suggestion-marker-deletion-border-active)}.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active.table>figcaption{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active.table>table>tbody>tr>th,.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active.table>table>thead>tr>th{background-color:var(--ck-color-suggestion-widget-th-deletion-background-active);border-color:var(--ck-color-suggestion-marker-deletion-border-active)}.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active.table>table>tbody>tr>td{background-color:var(--ck-color-suggestion-widget-deletion-background-active);border-color:var(--ck-color-suggestion-marker-deletion-border-active)}.ck-content .ck-widget.table>figcaption.ck-suggestion-marker-deletion{background-color:var(--ck-color-suggestion-widget-deletion-background);border:none}.ck-content .ck-widget.table>figcaption.ck-suggestion-marker-deletion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .ck-widget.table>figcaption.ck-suggestion-marker-insertion{background-color:var(--ck-color-suggestion-widget-insertion-background);border:none}.ck-content .ck-widget.table>figcaption.ck-suggestion-marker-insertion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}.ck-content .table th.ck-suggestion-marker-insertion{background-color:var(--ck-color-suggestion-widget-th-insertion-background)}.ck-content .table th.ck-suggestion-marker-insertion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-th-insertion-background-active)}.ck-content .table th.ck-suggestion-marker-deletion{background-color:var(--ck-color-suggestion-widget-th-deletion-background);text-decoration:none}.ck-content .table th.ck-suggestion-marker-deletion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-th-deletion-background-active)}.ck-content .table td.ck-suggestion-marker-insertion{background-color:var(--ck-color-suggestion-widget-insertion-background)}.ck-content .table td.ck-suggestion-marker-insertion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-insertion-background-active)}.ck-content .table td.ck-suggestion-marker-deletion{background-color:var(--ck-color-suggestion-widget-deletion-background);text-decoration:none}.ck-content .table td.ck-suggestion-marker-deletion.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-deletion-background-active)}.ck-content .table td.ck-suggestion-marker-formatBlock,.ck-content .table td.ck-suggestion-marker-formatInline,.ck-content .table th.ck-suggestion-marker-formatBlock,.ck-content .table th.ck-suggestion-marker-formatInline{background-color:var(--ck-color-suggestion-widget-format-background);box-shadow:none}.ck-content .table td.ck-suggestion-marker-formatBlock.ck-suggestion-marker--active,.ck-content .table td.ck-suggestion-marker-formatInline.ck-suggestion-marker--active,.ck-content .table th.ck-suggestion-marker-formatBlock.ck-suggestion-marker--active,.ck-content .table th.ck-suggestion-marker-formatInline.ck-suggestion-marker--active{background-color:var(--ck-color-suggestion-widget-format-background-active);box-shadow:none}",""]);const s=r},72:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(758),r=n.n(o)()((function(e){return e[1]}));r.push([e.id,":root{--ck-color-comment-box-border:#f2de02;--ck-color-suggestion-box-deletion-border:#d85a79;--ck-color-suggestion-box-insertion-border:#5ad86b;--ck-color-suggestion-box-format-border:#5ac1d8}.ck .ck-suggestion{border-top-left-radius:var(--ck-border-radius)}.ck .ck-annotation{border-left:3px solid transparent}.ck .ck-suggestion--disabled-comments .ck-annotation{min-height:80px}.ck .ck-comment,.ck .ck-comment__input-container,.ck .ck-thread__comment-count{border-left:3px solid var(--ck-color-comment-box-border)}.ck .ck-suggestion-insertion .ck-suggestion{border-left-color:var(--ck-color-suggestion-box-insertion-border)}.ck .ck-suggestion-deletion .ck-suggestion{border-left-color:var(--ck-color-suggestion-box-deletion-border)}.ck .ck-suggestion-replace .ck-suggestion{border-left-color:var(--ck-color-suggestion-box-insertion-border)}.ck .ck-suggestion-format .ck-suggestion{border-left-color:var(--ck-color-suggestion-box-format-border)}.ck .ck-suggestion-wrapper{outline:0}.ck .ck-suggestion-type{font-weight:700}.ck .ck-suggestion-color{border-radius:14px;box-shadow:0 0 0 1px #444;display:inline-block;height:14px;margin:0 5px;vertical-align:text-bottom;width:14px}.ck .ck-suggestion-insertion .ck-comment,.ck .ck-suggestion-insertion .ck-comment__input-container,.ck .ck-suggestion-insertion .ck-thread__comment-count,.ck .ck-suggestion-replace .ck-comment,.ck .ck-suggestion-replace .ck-comment__input-container,.ck .ck-suggestion-replace .ck-thread__comment-count{border-left-color:var(--ck-color-suggestion-box-insertion-border)}.ck .ck-suggestion-deletion .ck-comment,.ck .ck-suggestion-deletion .ck-comment__input-container,.ck .ck-suggestion-deletion .ck-thread__comment-count{border-left-color:var(--ck-color-suggestion-box-deletion-border)}.ck .ck-suggestion-format .ck-comment,.ck .ck-suggestion-format .ck-comment__input-container,.ck .ck-suggestion-format .ck-thread__comment-count{border-left-color:var(--ck-color-suggestion-box-format-border)}",""]);const s=r},529:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(758),r=n.n(o)()((function(e){return e[1]}));r.push([e.id,':root{--ck-color-suggestion-marker-insertion-border:rgba(30,174,49,.35);--ck-color-suggestion-marker-insertion-border-active:rgba(18,109,31,.5);--ck-color-suggestion-marker-insertion-background:rgba(102,229,119,.35);--ck-color-suggestion-marker-insertion-background-active:rgba(37,218,61,.5);--ck-color-suggestion-marker-deletion-border:rgba(174,30,66,.35);--ck-color-suggestion-marker-deletion-border-active:rgba(109,18,41,.5);--ck-color-suggestion-marker-deletion-background:rgba(229,102,134,.35);--ck-color-suggestion-marker-deletion-background-active:rgba(218,37,82,.5);--ck-color-suggestion-marker-deletion-stroke:rgba(87,15,33,.5);--ck-color-suggestion-marker-format-border:rgba(10,160,194,.4);--ck-color-suggestion-marker-format-border-active:rgba(10,160,194,.65);--ck-color-suggestion-widget-insertion-background:rgba(102,229,119,.05);--ck-color-suggestion-widget-insertion-background-active:rgba(37,218,61,.07);--ck-color-suggestion-widget-deletion-background:rgba(229,102,134,.05);--ck-color-suggestion-widget-deletion-background-active:rgba(196,33,74,.07);--ck-color-suggestion-widget-format-background:rgba(10,160,194,.09);--ck-color-suggestion-widget-format-background-active:rgba(10,160,194,.16)}.ck-content .ck-suggestion-marker-insertion{background:var(--ck-color-suggestion-marker-insertion-background);border-bottom:3px solid var(--ck-color-suggestion-marker-insertion-border);border-top:3px solid var(--ck-color-suggestion-marker-insertion-border)}.ck-content .ck-suggestion-marker-insertion.ck-suggestion-marker--active{background:var(--ck-color-suggestion-marker-insertion-background-active);border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck-content .ck-suggestion-marker-insertion.ck-widget{background:none;border:3px solid var(--ck-color-suggestion-marker-insertion-border);text-decoration:none}.ck-content .ck-suggestion-marker-insertion.ck-widget.ck-suggestion-marker--active{border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck-content .ck-suggestion-marker-deletion{background:var(--ck-color-suggestion-marker-deletion-background);border-bottom:3px solid var(--ck-color-suggestion-marker-deletion-border);border-top:3px solid var(--ck-color-suggestion-marker-deletion-border);text-decoration:line-through;text-decoration-color:var(--ck-color-suggestion-marker-deletion-stroke);text-decoration-thickness:3px}.ck-content .ck-suggestion-marker-deletion.ck-suggestion-marker--active{background:var(--ck-color-suggestion-marker-deletion-background-active);border-color:var(--ck-color-suggestion-marker-deletion-border-active)}.ck-content .ck-suggestion-marker-deletion.ck-widget{background:none;border:3px solid var(--ck-color-suggestion-marker-deletion-border);text-decoration:none}.ck-content .ck-suggestion-marker-deletion.ck-widget.ck-suggestion-marker--active{border-color:var(--ck-color-suggestion-marker-deletion-border-active)}.ck-content .ck-suggestion-marker-merge:after{background:var(--ck-color-suggestion-marker-deletion-background);border-bottom:3px solid var(--ck-color-suggestion-marker-deletion-border);border-top:3px solid var(--ck-color-suggestion-marker-deletion-border);color:var(--ck-color-suggestion-marker-deletion-stroke);content:"¶";text-decoration:line-through;text-decoration-color:var(--ck-color-suggestion-marker-deletion-stroke)}.ck-content .ck-suggestion-marker-merge.ck-suggestion-marker--active:after{background:var(--ck-color-suggestion-marker-deletion-background-active);border-color:var(--ck-color-suggestion-marker-deletion-border-active)}.ck-content .ck-suggestion-marker-split:after{background:var(--ck-color-suggestion-marker-insertion-background);border-bottom:3px solid var(--ck-color-suggestion-marker-insertion-border);border-top:3px solid var(--ck-color-suggestion-marker-insertion-border);color:var(--ck-color-suggestion-marker-insertion-border);content:"¶"}.ck-content .ck-suggestion-marker-split.ck-suggestion-marker--active:after{background:var(--ck-color-suggestion-marker-insertion-background-active);border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck-content .ck-suggestion-marker-formatInline{border-bottom:3px solid var(--ck-color-suggestion-marker-format-border);border-top:3px solid var(--ck-color-suggestion-marker-format-border)}.ck-content .ck-suggestion-marker-formatInline.ck-suggestion-marker--active{border-color:var(--ck-color-suggestion-marker-format-border-active)}.ck-content .ck-suggestion-marker-formatInline.ck-widget{background:none;border:3px solid var(--ck-color-suggestion-marker-format-border)}.ck-content .ck-suggestion-marker-formatInline.ck-widget.ck-suggestion-marker--active{border-color:var(--ck-color-suggestion-marker-format-border-active)}.ck-content .ck-suggestion-marker-formatBlock{background:none;border:0;box-shadow:-7px 0 0 0 var(--ck-color-base-background),-10px 0 0 0 var(--ck-color-suggestion-marker-format-border)}.ck-content .ck-suggestion-marker-formatBlock.ck-suggestion-marker--active{box-shadow:-5px 0 0 0 var(--ck-color-base-background),-8px 0 0 0 var(--ck-color-suggestion-marker-format-border-active)}.ck-content ol .ck-suggestion-marker-formatBlock,.ck-content ul .ck-suggestion-marker-formatBlock{box-shadow:-2px 0 0 0 var(--ck-color-base-background),-5px 0 0 0 var(--ck-color-suggestion-marker-format-border)}.ck-content ol .ck-suggestion-marker-formatBlock.ck-suggestion-marker--active,.ck-content ul .ck-suggestion-marker-formatBlock.ck-suggestion-marker--active{box-shadow:-2px 0 0 0 var(--ck-color-base-background),-5px 0 0 0 var(--ck-color-suggestion-marker-format-border-active)}',""]);const s=r},756:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(758),r=n.n(o)()((function(e){return e[1]}));r.push([e.id,":root{--ck-user-colors--0:#6d78e8;--ck-user-colors--0-alpha:rgba(109,120,232,.15);--ck-user-colors--1:#007a6c;--ck-user-colors--1-alpha:rgba(0,122,108,.15);--ck-user-colors--2:#ba4545;--ck-user-colors--2-alpha:rgba(186,69,69,.15);--ck-user-colors--3:#5635b1;--ck-user-colors--3-alpha:rgba(86,53,177,.15);--ck-user-colors--4:#548a2e;--ck-user-colors--4-alpha:rgba(84,138,46,.15);--ck-user-colors--5:#c3185d;--ck-user-colors--5-alpha:rgba(195,24,93,.15);--ck-user-colors--6:#ea4343;--ck-user-colors--6-alpha:rgba(234,67,67,.15);--ck-user-colors--7:#0bc3d0;--ck-user-colors--7-alpha:rgba(11,195,208,.15);--ck-user-dot-size:6px}.ck .ck-user__color--0{color:var(--ck-user-colors--0)}.ck .ck-user__bg-color--0{background-color:var(--ck-user-colors--0)}.ck .ck-user__selection--0{background-color:var(--ck-user-colors--0-alpha)}.ck .ck-user__selection--0.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--0)}.ck .ck-user__marker--0,.ck .ck-user__marker--0 .ck-user__marker-dot,.ck .ck-user__marker--0:after{background-color:var(--ck-user-colors--0)}.ck .ck-user__marker--0 .ck-user__marker-line{border:1px solid var(--ck-user-colors--0)}.ck .ck-user__color--1{color:var(--ck-user-colors--1)}.ck .ck-user__bg-color--1{background-color:var(--ck-user-colors--1)}.ck .ck-user__selection--1{background-color:var(--ck-user-colors--1-alpha)}.ck .ck-user__selection--1.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--1)}.ck .ck-user__marker--1,.ck .ck-user__marker--1 .ck-user__marker-dot,.ck .ck-user__marker--1:after{background-color:var(--ck-user-colors--1)}.ck .ck-user__marker--1 .ck-user__marker-line{border:1px solid var(--ck-user-colors--1)}.ck .ck-user__color--2{color:var(--ck-user-colors--2)}.ck .ck-user__bg-color--2{background-color:var(--ck-user-colors--2)}.ck .ck-user__selection--2{background-color:var(--ck-user-colors--2-alpha)}.ck .ck-user__selection--2.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--2)}.ck .ck-user__marker--2,.ck .ck-user__marker--2 .ck-user__marker-dot,.ck .ck-user__marker--2:after{background-color:var(--ck-user-colors--2)}.ck .ck-user__marker--2 .ck-user__marker-line{border:1px solid var(--ck-user-colors--2)}.ck .ck-user__color--3{color:var(--ck-user-colors--3)}.ck .ck-user__bg-color--3{background-color:var(--ck-user-colors--3)}.ck .ck-user__selection--3{background-color:var(--ck-user-colors--3-alpha)}.ck .ck-user__selection--3.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--3)}.ck .ck-user__marker--3,.ck .ck-user__marker--3 .ck-user__marker-dot,.ck .ck-user__marker--3:after{background-color:var(--ck-user-colors--3)}.ck .ck-user__marker--3 .ck-user__marker-line{border:1px solid var(--ck-user-colors--3)}.ck .ck-user__color--4{color:var(--ck-user-colors--4)}.ck .ck-user__bg-color--4{background-color:var(--ck-user-colors--4)}.ck .ck-user__selection--4{background-color:var(--ck-user-colors--4-alpha)}.ck .ck-user__selection--4.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--4)}.ck .ck-user__marker--4,.ck .ck-user__marker--4 .ck-user__marker-dot,.ck .ck-user__marker--4:after{background-color:var(--ck-user-colors--4)}.ck .ck-user__marker--4 .ck-user__marker-line{border:1px solid var(--ck-user-colors--4)}.ck .ck-user__color--5{color:var(--ck-user-colors--5)}.ck .ck-user__bg-color--5{background-color:var(--ck-user-colors--5)}.ck .ck-user__selection--5{background-color:var(--ck-user-colors--5-alpha)}.ck .ck-user__selection--5.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--5)}.ck .ck-user__marker--5,.ck .ck-user__marker--5 .ck-user__marker-dot,.ck .ck-user__marker--5:after{background-color:var(--ck-user-colors--5)}.ck .ck-user__marker--5 .ck-user__marker-line{border:1px solid var(--ck-user-colors--5)}.ck .ck-user__color--6{color:var(--ck-user-colors--6)}.ck .ck-user__bg-color--6{background-color:var(--ck-user-colors--6)}.ck .ck-user__selection--6{background-color:var(--ck-user-colors--6-alpha)}.ck .ck-user__selection--6.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--6)}.ck .ck-user__marker--6,.ck .ck-user__marker--6 .ck-user__marker-dot,.ck .ck-user__marker--6:after{background-color:var(--ck-user-colors--6)}.ck .ck-user__marker--6 .ck-user__marker-line{border:1px solid var(--ck-user-colors--6)}.ck .ck-user__color--7{color:var(--ck-user-colors--7)}.ck .ck-user__bg-color--7{background-color:var(--ck-user-colors--7)}.ck .ck-user__selection--7{background-color:var(--ck-user-colors--7-alpha)}.ck .ck-user__selection--7.ck-widget{background-color:transparent;border:3px solid var(--ck-user-colors--7)}.ck .ck-user__marker--7,.ck .ck-user__marker--7 .ck-user__marker-dot,.ck .ck-user__marker--7:after{background-color:var(--ck-user-colors--7)}.ck .ck-user__marker--7 .ck-user__marker-line{border:1px solid var(--ck-user-colors--7)}",""]);const s=r},893:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(758),r=n.n(o)()((function(e){return e[1]}));r.push([e.id,":root{--ck-user-avatar-size:40px;--ck-user-avatar-background:#3670ab;--ck-user-avatar-color:#fff}.ck.ck-user{align-items:center;background-color:var(--ck-user-avatar-background);border-radius:50%;display:flex;height:var(--ck-user-avatar-size);justify-content:center;min-height:var(--ck-user-avatar-size);min-width:var(--ck-user-avatar-size);position:relative;width:var(--ck-user-avatar-size)}.ck.ck-user__name{color:var(--ck-user-avatar-color);cursor:default;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-user__name.ck-user__name--hidden{display:none}.ck.ck-user__img{background-color:var(--ck-user-avatar-background);background-position:50%;background-repeat:no-repeat;background-size:cover;border:2px solid var(--ck-user-avatar-background);border-radius:50%;display:none;height:inherit;width:inherit}.ck.ck-user__img.ck-user__anonymous{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23FFF' d='M9.8 20H2c0-5.7 5-5.7 6-7l.2-.8c-1.6-.8-2.7-2.7-2.7-5 0-2.8 2-5.2 4.3-5.2S14 4.4 14 7.3c0 2.2-1 4-2.6 5l.2.6c1.2 1.3 6 1.4 6 7H9.8z'/%3E%3C/svg%3E\");display:block}.ck.ck-user__img.ck-user__anonymous+.ck-user__name{display:none}.ck.ck-user__img.ck-user__avatar{background-color:#fff;display:block}.ck.ck-user__img.ck-user__img--hidden{display:none}.ck.ck-user__notification{align-items:center;background:#fff;border:2px solid #fff;border-radius:50%;box-sizing:content-box;display:flex;height:15px;justify-content:center;overflow:hidden;position:absolute;right:-7px;top:-8px;transform:translateZ(0);width:15px}.ck.ck-user__notification .ck-user__icon{background:#fff;color:var(--ck-color-annotation-info);height:19px;max-height:19px;max-width:19px;min-height:19px;min-width:19px;width:19px}",""]);const s=r},758:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,o){"string"==typeof e&&(e=[[null,e,""]]);var r={};if(o)for(var s=0;s<this.length;s++){var i=this[s][0];null!=i&&(r[i]=!0)}for(var a=0;a<e.length;a++){var c=[].concat(e[a]);o&&r[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},278:(e,t,n)=>{"use strict";var o,r=function(){return void 0===o&&(o=Boolean(window&&document&&document.all&&!window.atob)),o},s=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),i=[];function a(e){for(var t=-1,n=0;n<i.length;n++)if(i[n].identifier===e){t=n;break}return t}function c(e,t){for(var n={},o=[],r=0;r<e.length;r++){var s=e[r],c=t.base?s[0]+t.base:s[0],x=n[c]||0,l="".concat(c," ").concat(x);n[c]=x+1;var u=a(l),d={css:s[1],media:s[2],sourceMap:s[3]};-1!==u?(i[u].references++,i[u].updater(d)):i.push({identifier:l,updater:h(d,t),references:1}),o.push(l)}return o}function x(e){var t=document.createElement("style"),o=e.attributes||{};if(void 0===o.nonce){var r=n.nc;r&&(o.nonce=r)}if(Object.keys(o).forEach((function(e){t.setAttribute(e,o[e])})),"function"==typeof e.insert)e.insert(t);else{var i=s(e.insert||"head");if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(t)}return t}var l,u=(l=[],function(e,t){return l[e]=t,l.filter(Boolean).join("\n")});function d(e,t,n,o){var r=n?"":o.media?"@media ".concat(o.media," {").concat(o.css,"}"):o.css;if(e.styleSheet)e.styleSheet.cssText=u(t,r);else{var s=document.createTextNode(r),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(s,i[t]):e.appendChild(s)}}function g(e,t,n){var o=n.css,r=n.media,s=n.sourceMap;if(r?e.setAttribute("media",r):e.removeAttribute("media"),s&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),e.styleSheet)e.styleSheet.cssText=o;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(o))}}var m=null,f=0;function h(e,t){var n,o,r;if(t.singleton){var s=f++;n=m||(m=x(t)),o=d.bind(null,n,s,!1),r=d.bind(null,n,s,!0)}else n=x(t),o=g.bind(null,n,t),r=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return o(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;o(e=t)}else r()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=r());var n=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var o=0;o<n.length;o++){var r=a(n[o]);i[r].references--}for(var s=c(e,t),x=0;x<n.length;x++){var l=a(n[x]);0===i[l].references&&(i[l].updater(),i.splice(l,1))}n=s}}}},417:(e,t,n)=>{e.exports=n(720)("./src/collaboration-core.js")},704:(e,t,n)=>{e.exports=n(79)("./src/core.js")},492:(e,t,n)=>{e.exports=n(79)("./src/engine.js")},331:(e,t,n)=>{e.exports=n(79)("./src/enter.js")},181:(e,t,n)=>{e.exports=n(79)("./src/typing.js")},273:(e,t,n)=>{e.exports=n(79)("./src/ui.js")},209:(e,t,n)=>{e.exports=n(79)("./src/utils.js")},995:(e,t,n)=>{e.exports=n(79)("./src/widget.js")},720:e=>{"use strict";e.exports=CKEditor5.collaborationDll},79:e=>{"use strict";e.exports=CKEditor5.dll}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var s=t[o]={id:o,exports:{}};return e[o](s,s.exports,n),s.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0;var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>Ax,TrackChanges:()=>zx,TrackChangesData:()=>Jx});var e=n(704),t=n(209),r=n(273),s=n(417),i=n(492),a=n(995);const c=["TrackChangesCommand","isEnabled","_enableCommands","_disableUnsupportedCommands","clearForceDisabled","value","has","editor","forceDisabled","execute","refresh","_enabledCommands","commands"];var x,l;x=c,l=457,function(e){for(;--e;)x.push(x.shift())}(++l);const u=function(e,t){return c[e-=0]};class d extends e.Command{constructor(e,t){super(e),this._enabledCommands=t,this[u("0x3")]=!1,this.refresh()}[u("0x8")](){this[u("0xc")]=!0}[u("0x7")](){this[u("0x3")]=!this.value,this[u("0x3")]?this[u("0x1")]():this[u("0x0")]()}[u("0x1")](){for(const e of this[u("0x5")][u("0xa")][u("0xa")]())e.affectsData&&!this[u("0x9")].has(e)&&e[u("0x6")](u("0xb"))}[u("0x0")](){for(const e of this[u("0x5")][u("0xa")][u("0xa")]())e.affectsData&&!this[u("0x9")][u("0x4")](e)&&e[u("0x2")](u("0xb"))}}const g=["plugins","refresh","track-changes-accept-suggestion-not-found","isEnabled","execute","TrackChangesEditing","get","editor","_suggestions"];var m,f;m=g,f=222,function(e){for(;--e;)m.push(m.shift())}(++f);const h=function(e,t){return g[e-=0]};class k extends e.Command{constructor(e,t){super(e),this[h("0x2")]=t,this[h("0x4")]()}[h("0x4")](){this[h("0x6")]=!0}[h("0x7")](e){const n=this[h("0x2")][h("0x0")](e);if(!n)throw new t.CKEditorError(h("0x5"),this);this[h("0x1")][h("0x3")][h("0x0")](h("0x8")).acceptSuggestion(n)}}const b=["_suggestions","execute","track-changes-discard-suggestion-not-found","editor","refresh","get"];var p,_;p=b,_=389,function(e){for(;--e;)p.push(p.shift())}(++_);const v=function(e,t){return b[e-=0]};class E extends e.Command{constructor(e,t){super(e),this._suggestions=t,this[v("0x5")]()}refresh(){this.isEnabled=!0}[v("0x2")](e){const n=this[v("0x1")].get(e);if(!n)throw new t.CKEditorError(v("0x3"),this);this[v("0x4")].plugins[v("0x0")]("TrackChangesEditing").discardSuggestion(n)}}const y=["add","isCollapsed","isObject","isTouching","content","isInContent","splice","schema","color","replace","execute","push","type","from","next","createPositionBefore","end","deletion","getRanges"," [color ","createPositionAfter","createPositionAt","getMarkers","createRange","sort","join","getRange","map"];var T,C;T=y,C=103,function(e){for(;--e;)T.push(T.shift())}(++C);const w=function(e,t){return y[e-=0]};function A(e){return e[w("0x5")](((e,t)=>w("0x1a")==e[w("0x15")]&&"deletion"!=t[w("0x15")]?-1:w("0x1a")!=e[w("0x15")]&&w("0x1a")==t[w("0x15")]?1:0))}function R(e,t){let n,o=0;const r=[],s=t[w("0x10")];for(;o<e.length;){const i=e[o],a=e[o+1];n||(n=t[w("0x18")](i)),I(t,i,a)||(r[w("0x14")](t[w("0x4")](n,s[w("0xb")](i)?t[w("0x1")](i):t[w("0x2")](i,"end"))),n=null),o++}return r}function I(e,t,n){if(!n)return!1;const o=e.createPositionAfter(t),r=e[w("0x18")](n);return o[w("0xc")](r)}function S(e,t,n){for(;n.length;){const o=n[w("0xf")](0,100);e.change((()=>{for(const e of o)e[w("0xe")]&&t[w("0x13")](e.id)}))}}const M=["_suggestions","_command","from","some","execute","isEnabled","isInContent","refresh","editor","values"];var N,L;N=M,L=351,function(e){for(;--e;)N.push(N.shift())}(++L);const O=function(e,t){return M[e-=0]};class F extends e.Command{constructor(e,t,n){super(e),this[O("0x0")]=t,this[O("0x9")]=n,this[O("0x6")]()}refresh(){const e=Array[O("0x1")](this[O("0x9")][O("0x8")]())[O("0x2")]((e=>e[O("0x5")]));this[O("0x4")]=this[O("0x0")].isEnabled&&e}[O("0x3")](){const e=A(Array[O("0x1")](this[O("0x9")].values()));S(this[O("0x7")].model,this._command,e)}}const P=["_selectedSuggestions","model","execute","from","document","selection","size","isEnabled","_suggestions","_command","refresh"];var D,B;D=P,B=370,function(e){for(;--e;)D.push(D.shift())}(++B);const j=function(e,t){return P[e-=0]};class U extends e.Command{constructor(e,t,n){super(e),this[j("0x2")]=t,this[j("0x1")]=n,this[j("0x4")]=new Set,this[j("0x3")]()}[j("0x3")](){const e=this.editor[j("0x5")][j("0x8")][j("0x9")],t=Array[j("0x7")](this[j("0x1")].values());this[j("0x4")]=function(e,t){const n=Array[w("0x16")](e[w("0x1b")]()),o=new Set;for(const r of t)if(r.isInContent)for(const t of n)for(const n of r[w("0x3")]()){const s=n[w("0x7")]();(t.isIntersecting(s)||e[w("0xa")]&&!r.isMultiRange&&r[w("0x17")]&&s[w("0x19")][w("0xc")](t.start))&&o[w("0x9")](r)}return o}(e,t),this[j("0x0")]=this[j("0x2")][j("0x0")]&&!!this[j("0x4")][j("0xa")]}[j("0x6")](){const e=A(Array[j("0x7")](this[j("0x4")]));S(this.editor[j("0x5")],this[j("0x2")],e)}}const G=function(){this.__data__=[],this.size=0};const H=function(e,t){return e===t||e!=e&&t!=t};const V=function(e,t){for(var n=e.length;n--;)if(H(e[n][0],t))return n;return-1};var z=Array.prototype.splice;const W=function(e){var t=this.__data__,n=V(t,e);return!(n<0)&&(n==t.length-1?t.pop():z.call(t,n,1),--this.size,!0)};const K=function(e){var t=this.__data__,n=V(t,e);return n<0?void 0:t[n][1]};const q=function(e){return V(this.__data__,e)>-1};const X=function(e,t){var n=this.__data__,o=V(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this};function Z(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}Z.prototype.clear=G,Z.prototype.delete=W,Z.prototype.get=K,Z.prototype.has=q,Z.prototype.set=X;const $=Z;const J=function(){this.__data__=new $,this.size=0};const Q=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};const Y=function(e){return this.__data__.get(e)};const ee=function(e){return this.__data__.has(e)};const te="object"==typeof global&&global&&global.Object===Object&&global;var ne="object"==typeof self&&self&&self.Object===Object&&self;const oe=te||ne||Function("return this")();const re=oe.Symbol;var se=Object.prototype,ie=se.hasOwnProperty,ae=se.toString,ce=re?re.toStringTag:void 0;const xe=function(e){var t=ie.call(e,ce),n=e[ce];try{e[ce]=void 0;var o=!0}catch(e){}var r=ae.call(e);return o&&(t?e[ce]=n:delete e[ce]),r};var le=Object.prototype.toString;const ue=function(e){return le.call(e)};var de=re?re.toStringTag:void 0;const ge=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":de&&de in Object(e)?xe(e):ue(e)};const me=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};const fe=function(e){if(!me(e))return!1;var t=ge(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};const he=oe["__core-js_shared__"];var ke,be=(ke=/[^.]+$/.exec(he&&he.keys&&he.keys.IE_PROTO||""))?"Symbol(src)_1."+ke:"";const pe=function(e){return!!be&&be in e};var _e=Function.prototype.toString;const ve=function(e){if(null!=e){try{return _e.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var Ee=/^\[object .+?Constructor\]$/,ye=Function.prototype,Te=Object.prototype,Ce=ye.toString,we=Te.hasOwnProperty,Ae=RegExp("^"+Ce.call(we).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Re=function(e){return!(!me(e)||pe(e))&&(fe(e)?Ae:Ee).test(ve(e))};const Ie=function(e,t){return null==e?void 0:e[t]};const Se=function(e,t){var n=Ie(e,t);return Re(n)?n:void 0};const Me=Se(oe,"Map");const Ne=Se(Object,"create");const Le=function(){this.__data__=Ne?Ne(null):{},this.size=0};const Oe=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t};var Fe=Object.prototype.hasOwnProperty;const Pe=function(e){var t=this.__data__;if(Ne){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Fe.call(t,e)?t[e]:void 0};var De=Object.prototype.hasOwnProperty;const Be=function(e){var t=this.__data__;return Ne?void 0!==t[e]:De.call(t,e)};const je=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ne&&void 0===t?"__lodash_hash_undefined__":t,this};function Ue(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}Ue.prototype.clear=Le,Ue.prototype.delete=Oe,Ue.prototype.get=Pe,Ue.prototype.has=Be,Ue.prototype.set=je;const Ge=Ue;const He=function(){this.size=0,this.__data__={hash:new Ge,map:new(Me||$),string:new Ge}};const Ve=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};const ze=function(e,t){var n=e.__data__;return Ve(t)?n["string"==typeof t?"string":"hash"]:n.map};const We=function(e){var t=ze(this,e).delete(e);return this.size-=t?1:0,t};const Ke=function(e){return ze(this,e).get(e)};const qe=function(e){return ze(this,e).has(e)};const Xe=function(e,t){var n=ze(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this};function Ze(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}Ze.prototype.clear=He,Ze.prototype.delete=We,Ze.prototype.get=Ke,Ze.prototype.has=qe,Ze.prototype.set=Xe;const $e=Ze;const Je=function(e,t){var n=this.__data__;if(n instanceof $){var o=n.__data__;if(!Me||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new $e(o)}return n.set(e,t),this.size=n.size,this};function Qe(e){var t=this.__data__=new $(e);this.size=t.size}Qe.prototype.clear=J,Qe.prototype.delete=Q,Qe.prototype.get=Y,Qe.prototype.has=ee,Qe.prototype.set=Je;const Ye=Qe;const et=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o&&!1!==t(e[n],n,e););return e};const tt=function(){try{var e=Se(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();const nt=function(e,t,n){"__proto__"==t&&tt?tt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};var ot=Object.prototype.hasOwnProperty;const rt=function(e,t,n){var o=e[t];ot.call(e,t)&&H(o,n)&&(void 0!==n||t in e)||nt(e,t,n)};const st=function(e,t,n,o){var r=!n;n||(n={});for(var s=-1,i=t.length;++s<i;){var a=t[s],c=o?o(n[a],e[a],a,n,e):void 0;void 0===c&&(c=e[a]),r?nt(n,a,c):rt(n,a,c)}return n};const it=function(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o};const at=function(e){return null!=e&&"object"==typeof e};const ct=function(e){return at(e)&&"[object Arguments]"==ge(e)};var xt=Object.prototype,lt=xt.hasOwnProperty,ut=xt.propertyIsEnumerable;const dt=ct(function(){return arguments}())?ct:function(e){return at(e)&&lt.call(e,"callee")&&!ut.call(e,"callee")};const gt=Array.isArray;const mt=function(){return!1};var ft="object"==typeof exports&&exports&&!exports.nodeType&&exports,ht=ft&&"object"==typeof module&&module&&!module.nodeType&&module,kt=ht&&ht.exports===ft?oe.Buffer:void 0;const bt=(kt?kt.isBuffer:void 0)||mt;var pt=/^(?:0|[1-9]\d*)$/;const _t=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&pt.test(e))&&e>-1&&e%1==0&&e<t};const vt=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var Et={};Et["[object Float32Array]"]=Et["[object Float64Array]"]=Et["[object Int8Array]"]=Et["[object Int16Array]"]=Et["[object Int32Array]"]=Et["[object Uint8Array]"]=Et["[object Uint8ClampedArray]"]=Et["[object Uint16Array]"]=Et["[object Uint32Array]"]=!0,Et["[object Arguments]"]=Et["[object Array]"]=Et["[object ArrayBuffer]"]=Et["[object Boolean]"]=Et["[object DataView]"]=Et["[object Date]"]=Et["[object Error]"]=Et["[object Function]"]=Et["[object Map]"]=Et["[object Number]"]=Et["[object Object]"]=Et["[object RegExp]"]=Et["[object Set]"]=Et["[object String]"]=Et["[object WeakMap]"]=!1;const yt=function(e){return at(e)&&vt(e.length)&&!!Et[ge(e)]};const Tt=function(e){return function(t){return e(t)}};var Ct="object"==typeof exports&&exports&&!exports.nodeType&&exports,wt=Ct&&"object"==typeof module&&module&&!module.nodeType&&module,At=wt&&wt.exports===Ct&&te.process;const Rt=function(){try{var e=wt&&wt.require&&wt.require("util").types;return e||At&&At.binding&&At.binding("util")}catch(e){}}();var It=Rt&&Rt.isTypedArray;const St=It?Tt(It):yt;var Mt=Object.prototype.hasOwnProperty;const Nt=function(e,t){var n=gt(e),o=!n&&dt(e),r=!n&&!o&&bt(e),s=!n&&!o&&!r&&St(e),i=n||o||r||s,a=i?it(e.length,String):[],c=a.length;for(var x in e)!t&&!Mt.call(e,x)||i&&("length"==x||r&&("offset"==x||"parent"==x)||s&&("buffer"==x||"byteLength"==x||"byteOffset"==x)||_t(x,c))||a.push(x);return a};var Lt=Object.prototype;const Ot=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Lt)};const Ft=function(e,t){return function(n){return e(t(n))}};const Pt=Ft(Object.keys,Object);var Dt=Object.prototype.hasOwnProperty;const Bt=function(e){if(!Ot(e))return Pt(e);var t=[];for(var n in Object(e))Dt.call(e,n)&&"constructor"!=n&&t.push(n);return t};const jt=function(e){return null!=e&&vt(e.length)&&!fe(e)};const Ut=function(e){return jt(e)?Nt(e):Bt(e)};const Gt=function(e,t){return e&&st(t,Ut(t),e)};const Ht=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t};var Vt=Object.prototype.hasOwnProperty;const zt=function(e){if(!me(e))return Ht(e);var t=Ot(e),n=[];for(var o in e)("constructor"!=o||!t&&Vt.call(e,o))&&n.push(o);return n};const Wt=function(e){return jt(e)?Nt(e,!0):zt(e)};const Kt=function(e,t){return e&&st(t,Wt(t),e)};var qt="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xt=qt&&"object"==typeof module&&module&&!module.nodeType&&module,Zt=Xt&&Xt.exports===qt?oe.Buffer:void 0,$t=Zt?Zt.allocUnsafe:void 0;const Jt=function(e,t){if(t)return e.slice();var n=e.length,o=$t?$t(n):new e.constructor(n);return e.copy(o),o};const Qt=function(e,t){var n=-1,o=e.length;for(t||(t=Array(o));++n<o;)t[n]=e[n];return t};const Yt=function(e,t){for(var n=-1,o=null==e?0:e.length,r=0,s=[];++n<o;){var i=e[n];t(i,n,e)&&(s[r++]=i)}return s};const en=function(){return[]};var tn=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(e){return null==e?[]:(e=Object(e),Yt(nn(e),(function(t){return tn.call(e,t)})))}:en;const rn=function(e,t){return st(e,on(e),t)};const sn=function(e,t){for(var n=-1,o=t.length,r=e.length;++n<o;)e[r+n]=t[n];return e};const an=Ft(Object.getPrototypeOf,Object);const cn=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)sn(t,on(e)),e=an(e);return t}:en;const xn=function(e,t){return st(e,cn(e),t)};const ln=function(e,t,n){var o=t(e);return gt(e)?o:sn(o,n(e))};const un=function(e){return ln(e,Ut,on)};const dn=function(e){return ln(e,Wt,cn)};const gn=Se(oe,"DataView");const mn=Se(oe,"Promise");const fn=Se(oe,"Set");const hn=Se(oe,"WeakMap");var kn="[object Map]",bn="[object Promise]",pn="[object Set]",_n="[object WeakMap]",vn="[object DataView]",En=ve(gn),yn=ve(Me),Tn=ve(mn),Cn=ve(fn),wn=ve(hn),An=ge;(gn&&An(new gn(new ArrayBuffer(1)))!=vn||Me&&An(new Me)!=kn||mn&&An(mn.resolve())!=bn||fn&&An(new fn)!=pn||hn&&An(new hn)!=_n)&&(An=function(e){var t=ge(e),n="[object Object]"==t?e.constructor:void 0,o=n?ve(n):"";if(o)switch(o){case En:return vn;case yn:return kn;case Tn:return bn;case Cn:return pn;case wn:return _n}return t});const Rn=An;var In=Object.prototype.hasOwnProperty;const Sn=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&In.call(e,"index")&&(n.index=e.index,n.input=e.input),n};const Mn=oe.Uint8Array;const Nn=function(e){var t=new e.constructor(e.byteLength);return new Mn(t).set(new Mn(e)),t};const Ln=function(e,t){var n=t?Nn(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)};var On=/\w*$/;const Fn=function(e){var t=new e.constructor(e.source,On.exec(e));return t.lastIndex=e.lastIndex,t};var Pn=re?re.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(e){return Dn?Object(Dn.call(e)):{}};const jn=function(e,t){var n=t?Nn(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};const Un=function(e,t,n){var o=e.constructor;switch(t){case"[object ArrayBuffer]":return Nn(e);case"[object Boolean]":case"[object Date]":return new o(+e);case"[object DataView]":return Ln(e,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 jn(e,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(e);case"[object RegExp]":return Fn(e);case"[object Symbol]":return Bn(e)}};var Gn=Object.create;const Hn=function(){function e(){}return function(t){if(!me(t))return{};if(Gn)return Gn(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const Vn=function(e){return"function"!=typeof e.constructor||Ot(e)?{}:Hn(an(e))};const zn=function(e){return at(e)&&"[object Map]"==Rn(e)};var Wn=Rt&&Rt.isMap;const Kn=Wn?Tt(Wn):zn;const qn=function(e){return at(e)&&"[object Set]"==Rn(e)};var Xn=Rt&&Rt.isSet;const Zn=Xn?Tt(Xn):qn;var $n="[object Arguments]",Jn="[object Function]",Qn="[object Object]",Yn={};Yn[$n]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn["[object Object]"]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Jn]=Yn["[object WeakMap]"]=!1;const eo=function e(t,n,o,r,s,i){var a,c=1&n,x=2&n,l=4&n;if(o&&(a=s?o(t,r,s,i):o(t)),void 0!==a)return a;if(!me(t))return t;var u=gt(t);if(u){if(a=Sn(t),!c)return Qt(t,a)}else{var d=Rn(t),g=d==Jn||"[object GeneratorFunction]"==d;if(bt(t))return Jt(t,c);if(d==Qn||d==$n||g&&!s){if(a=x||g?{}:Vn(t),!c)return x?xn(t,Kt(a,t)):rn(t,Gt(a,t))}else{if(!Yn[d])return s?t:{};a=Un(t,d,c)}}i||(i=new Ye);var m=i.get(t);if(m)return m;i.set(t,a),Zn(t)?t.forEach((function(r){a.add(e(r,n,o,r,t,i))})):Kn(t)&&t.forEach((function(r,s){a.set(s,e(r,n,o,s,t,i))}));var f=u?void 0:(l?x?dn:un:x?Wt:Ut)(t);return et(f||t,(function(r,s){f&&(r=t[s=r]),rt(a,s,e(r,n,o,s,t,i))})),a};const to=function(e){return eo(e,5)};const no=function(e){return"symbol"==typeof e||at(e)&&"[object Symbol]"==ge(e)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ro=/^\w*$/;const so=function(e,t){if(gt(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!no(e))||(ro.test(e)||!oo.test(e)||null!=t&&e in Object(t))};function io(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var o=arguments,r=t?t.apply(this,o):o[0],s=n.cache;if(s.has(r))return s.get(r);var i=e.apply(this,o);return n.cache=s.set(r,i)||s,i};return n.cache=new(io.Cache||$e),n}io.Cache=$e;const ao=io;var co=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xo=/\\(\\)?/g;const lo=function(e){var t=ao(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(co,(function(e,n,o,r){t.push(o?r.replace(xo,"$1"):n||e)})),t}));const uo=function(e,t){for(var n=-1,o=null==e?0:e.length,r=Array(o);++n<o;)r[n]=t(e[n],n,e);return r};var go=re?re.prototype:void 0,mo=go?go.toString:void 0;const fo=function e(t){if("string"==typeof t)return t;if(gt(t))return uo(t,e)+"";if(no(t))return mo?mo.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n};const ho=function(e){return null==e?"":fo(e)};const ko=function(e,t){return gt(e)?e:so(e,t)?[e]:lo(ho(e))};const bo=function(e){if("string"==typeof e||no(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};const po=function(e,t,n,o){if(!me(e))return e;for(var r=-1,s=(t=ko(t,e)).length,i=s-1,a=e;null!=a&&++r<s;){var c=bo(t[r]),x=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(r!=i){var l=a[c];void 0===(x=o?o(l,c,a):void 0)&&(x=me(l)?l:_t(t[r+1])?[]:{})}rt(a,c,x),a=a[c]}return e};const _o=function(e,t,n){return null==e?e:po(e,t,n)};const vo=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};const Eo=function(e){return this.__data__.has(e)};function yo(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new $e;++t<n;)this.add(e[t])}yo.prototype.add=yo.prototype.push=vo,yo.prototype.has=Eo;const To=yo;const Co=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o;)if(t(e[n],n,e))return!0;return!1};const wo=function(e,t){return e.has(t)};const Ao=function(e,t,n,o,r,s){var i=1&n,a=e.length,c=t.length;if(a!=c&&!(i&&c>a))return!1;var x=s.get(e),l=s.get(t);if(x&&l)return x==t&&l==e;var u=-1,d=!0,g=2&n?new To:void 0;for(s.set(e,t),s.set(t,e);++u<a;){var m=e[u],f=t[u];if(o)var h=i?o(f,m,u,t,e,s):o(m,f,u,e,t,s);if(void 0!==h){if(h)continue;d=!1;break}if(g){if(!Co(t,(function(e,t){if(!wo(g,t)&&(m===e||r(m,e,n,o,s)))return g.push(t)}))){d=!1;break}}else if(m!==f&&!r(m,f,n,o,s)){d=!1;break}}return s.delete(e),s.delete(t),d};const Ro=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,o){n[++t]=[o,e]})),n};const Io=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n};var So=re?re.prototype:void 0,Mo=So?So.valueOf:void 0;const No=function(e,t,n,o,r,s,i){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!s(new Mn(e),new Mn(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var a=Ro;case"[object Set]":var c=1&o;if(a||(a=Io),e.size!=t.size&&!c)return!1;var x=i.get(e);if(x)return x==t;o|=2,i.set(e,t);var l=Ao(a(e),a(t),o,r,s,i);return i.delete(e),l;case"[object Symbol]":if(Mo)return Mo.call(e)==Mo.call(t)}return!1};var Lo=Object.prototype.hasOwnProperty;const Oo=function(e,t,n,o,r,s){var i=1&n,a=un(e),c=a.length;if(c!=un(t).length&&!i)return!1;for(var x=c;x--;){var l=a[x];if(!(i?l in t:Lo.call(t,l)))return!1}var u=s.get(e),d=s.get(t);if(u&&d)return u==t&&d==e;var g=!0;s.set(e,t),s.set(t,e);for(var m=i;++x<c;){var f=e[l=a[x]],h=t[l];if(o)var k=i?o(h,f,l,t,e,s):o(f,h,l,e,t,s);if(!(void 0===k?f===h||r(f,h,n,o,s):k)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var b=e.constructor,p=t.constructor;b==p||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof p&&p instanceof p||(g=!1)}return s.delete(e),s.delete(t),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(e,t,n,o,r,s){var i=gt(e),a=gt(t),c=i?Po:Rn(e),x=a?Po:Rn(t),l=(c=c==Fo?Do:c)==Do,u=(x=x==Fo?Do:x)==Do,d=c==x;if(d&&bt(e)){if(!bt(t))return!1;i=!0,l=!1}if(d&&!l)return s||(s=new Ye),i||St(e)?Ao(e,t,n,o,r,s):No(e,t,c,n,o,r,s);if(!(1&n)){var g=l&&Bo.call(e,"__wrapped__"),m=u&&Bo.call(t,"__wrapped__");if(g||m){var f=g?e.value():e,h=m?t.value():t;return s||(s=new Ye),r(f,h,n,o,s)}}return!!d&&(s||(s=new Ye),Oo(e,t,n,o,r,s))};const Uo=function e(t,n,o,r,s){return t===n||(null==t||null==n||!at(t)&&!at(n)?t!=t&&n!=n:jo(t,n,o,r,e,s))};const Go=function(e,t){return Uo(e,t)};const Ho=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0};const Vo=function(e,t){for(var n=0,o=(t=ko(t,e)).length;null!=e&&n<o;)e=e[bo(t[n++])];return n&&n==o?e:void 0};const zo=function(e,t,n){var o=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(n=n>r?r:n)<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var s=Array(r);++o<r;)s[o]=e[o+t];return s};const Wo=function(e,t){return t.length<2?e:Vo(e,zo(t,0,-1))};const Ko=function(e,t){return t=ko(t,e),null==(e=Wo(e,t))||delete e[bo(Ho(t))]};const qo=function(e,t){return null==e||Ko(e,t)},Xo=["subType","_saved","author","isInContent","set","map","toJSON","data","_model","getItems","add","end","accept","previous","isIntersecting","getMarkerNames","addRange","getFirstMarker","onAccept","filter","getMultiRangeId","decorate","_onAccept","get","push","_onAttributesChange","createdAt","change","delete","size","getRange","isMultiRange","creator","split","removeAttribute","removeMarkers","from","getMarkers","removeMarker","getRanges","onAttributesChange","type","@external","next","markers","_onDiscard","length","addMarkerName","suggestion:","getContainedElement","clear","attributes","head","commentThread","_markerNames","start","hasComments","setAttribute","onDiscard","discard","getFirstRange","addMarker"];var Zo,$o;Zo=Xo,$o=383,function(e){for(;--e;)Zo.push(Zo.shift())}(++$o);const Jo=function(e,t){return Xo[e-=0]};class Qo{constructor(e,t){this.id=t.id,this[Jo("0x1e")]=t[Jo("0x1e")],this[Jo("0x33")]=t[Jo("0x33")]||null,this[Jo("0x35")]=t[Jo("0x35")],this[Jo("0x15")]=t[Jo("0x15")]||t[Jo("0x35")],this.isExternal=Boolean(t[Jo("0x28")]&&t[Jo("0x28")][Jo("0x1f")]),this[Jo("0x3a")]=null,this[Jo("0x3b")]=e,this[Jo("0xb")]=t[Jo("0x7")],this[Jo("0x22")]=t[Jo("0x2f")],this[Jo("0xe")]=t[Jo("0x1d")],this[Jo("0x2b")]=new Set,this[Jo("0xf")]=null,this[Jo("0x37")]("authoredAt",null),this[Jo("0x37")](Jo("0x28"),t[Jo("0x28")]||{}),this[Jo("0x37")]("previous",null),this[Jo("0x37")]("next",null),this[Jo("0x37")](Jo("0x2a"),null),this[Jo("0x37")](Jo("0x34"),!1),this.decorate(Jo("0x1")),this[Jo("0xa")](Jo("0x30"))}get head(){let e=this;for(;e[Jo("0x2")];)e=e.previous;return e}get[Jo("0x2d")](){return!!this[Jo("0x2a")]&&this.commentThread[Jo("0x23")]>0}get[Jo("0x14")](){return 0!=this._markerNames[Jo("0x12")]&&6==Array[Jo("0x19")](this[Jo("0x2b")])[0][Jo("0x16")](":").length}get[Jo("0x36")](){return null!==this[Jo("0x6")]()}addMarkerName(e){this[Jo("0x2b")][Jo("0x3d")](e)}[Jo("0x4")](){return Array[Jo("0x19")](this[Jo("0x2b")])}getMarkers(){return this[Jo("0x4")]()[Jo("0x38")]((e=>this[Jo("0x3b")][Jo("0x21")][Jo("0xc")](e)))[Jo("0x8")]((e=>e))}getFirstMarker(){return this[Jo("0x1a")]()[0]||null}[Jo("0x18")](){this._model[Jo("0x10")]((e=>{for(const t of this[Jo("0x1a")]())e[Jo("0x1b")](t)})),this[Jo("0x2b")][Jo("0x27")]()}[Jo("0x1b")](e){this._model[Jo("0x10")]((t=>{t.removeMarker(e)})),this[Jo("0x2b")][Jo("0x11")](e)}[Jo("0x5")](e){const t=Jo("0x25")+this.type+":"+this[Jo("0x33")]+":"+this.id+":"+this[Jo("0x15")].id+":"+Qo[Jo("0x9")]();this[Jo("0x24")](t),this._model[Jo("0x10")]((n=>{n[Jo("0x32")](t,{range:e,usingOperation:!0,affectsData:!0})}))}isIntersectingWithRange(e){for(const t of this[Jo("0x1c")]())if(t[Jo("0x3")](e))return!0;return!1}[Jo("0x1c")](){return this.getMarkers()[Jo("0x38")]((e=>e.getRange()))}[Jo("0x3c")](){return this.getRanges().reduce(((e,t)=>[...e,...t[Jo("0x3c")]()]),[])}[Jo("0x31")](){return this[Jo("0x6")]()[Jo("0x13")]()}[Jo("0x26")](){const e=this.getRanges();if(1!=e[Jo("0x23")])return null;const t=e[0],n=t[Jo("0x2c")].nodeAfter,o=t[Jo("0x0")].nodeBefore;return n instanceof i.Element?n!=o?null:n:null}[Jo("0x1")](){this[Jo("0xb")](this[Jo("0x1c")](),this[Jo("0x3a")],this.attributes),this[Jo("0x18")]()}discard(){this[Jo("0x22")](this[Jo("0x1c")](),this[Jo("0x3a")],this[Jo("0x28")]),this[Jo("0x18")]()}getAllAdjacentSuggestions(){const e=[];let t=this[Jo("0x29")];for(;t;)e[Jo("0xd")](t),t=t[Jo("0x20")];return e}[Jo("0x2e")](e,t){const n=to(this[Jo("0x28")]);_o(n,e,t),Go(n,this[Jo("0x28")])||(this[Jo("0x28")]=n,this[Jo("0xe")](n))}[Jo("0x17")](e){const t=to(this[Jo("0x28")]);qo(t,e),Go(t,this[Jo("0x28")])||(this[Jo("0x28")]=t,this[Jo("0xe")](this[Jo("0x28")]))}[Jo("0x39")](){return{id:this.id,type:this.subType?this[Jo("0x1e")]+":"+this[Jo("0x33")]:this[Jo("0x1e")],authorId:this[Jo("0x15")].id,createdAt:this[Jo("0xf")],hasComments:this.hasComments,data:this.data,attributes:this[Jo("0x28")]}}static[Jo("0x9")](){return(0,t.uid)().substr(1,5)}}function Yo(e,t,n){const o=e.t;switch(t){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:* insert into %0":return o("*Format:* insert into %0",n);case"*Format:* remove from %0":return o("*Format:* remove from %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 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 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_NUMBERED_LIST":return o({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});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_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"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_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)}}(0,t.mix)(Qo,t.ObservableMixin);const er=["textProxy","matchingCallback","deletion","nextSibling","add","softBreak","removeContainer","replace","_itemLabels","isEqual","label","Object","get","start","addObject","isObject","*Insert:* %0","indexOf","_addDescriptionItems","previousSibling","_itemLabelsCallbacks","elementEnd","match","registerDescriptionCallback","removeEmptyContainer","isEmpty","insertion","quantity","_resolveDescriptionItems","REPLACE_TEXT","_locale","$text","$1 $2","getFirstRange","_schema","_customCallbacks","addContainer","push","getWalker","type","end","getItemLabel","element","pop","*Merge:* %0","set","data","name","elementStart","registerElementLabel","isInContent","text","remove","length","checkChild","function","item","skip","EmptyContainer","removeObject","Container","ELEMENT_SPACE","*Split:* %0"];var tr,nr;tr=er,nr=251,function(e){for(;--e;)tr.push(tr.shift())}(++nr);const or=function(e,t){return er[e-=0]};class rr{constructor(e,t){this._customCallbacks=[],this[or("0x9")]=new Map,this[or("0x15")]=[],this._schema=e,this[or("0x1f")]=t}getDescriptions(e){const t=[];for(let n=0;n<e[or("0x36")];n++){const o=e[n];if(!o[or("0x33")])continue;let r=!1;for(const e of this[or("0x24")]){const n=e(o);if(n){n[or("0x28")]&&t[or("0x26")](n),r=!0;break}}if(!r){this[or("0x13")](t,o);const r=e[n+1];if(r&&!o[or("0x22")]()[or("0x29")][or("0xa")](r[or("0x22")]()[or("0xe")])){const e=t[t.length-1],n=or("0x1b")==o[or("0x28")]?or("0x5"):or("0x35");e&&or("0x34")==e[or("0x28")]&&(e[n]+="\n")}}}return this._resolveDescriptionItems(t)}[or("0x18")](e){this[or("0x24")].push(e)}[or("0x32")](e,n,o=t.priorities.normal){or("0x38")==typeof e?(0,t.insertToPriorityArray)(this[or("0x15")],{matchingCallback:e,label:n,priority:o}):this[or("0x9")][or("0x2e")](e,n)}[or("0x2a")](e,t=1){let n;for(const t of this._itemLabelsCallbacks)if(t[or("0x2")](e)){n=t[or("0xb")];break}return n||(n=this[or("0x9")][or("0xd")](e[or("0x30")])),n?n(t):1!==t?t+" "+e[or("0x30")]+"s":""+e[or("0x30")]}[or("0x13")](e,t){const n=t[or("0x22")]()[or("0x27")](),o="insertion"==t[or("0x28")]?"add":or("0x35");for(const t of n){const r=t[or("0x39")],s=e[e.length-1];if(r.is(or("0x1")))s&&s[or("0x28")][or("0x12")](or("0x3d"))>-1&&e[or("0x2c")](),s&&"text"==s[or("0x28")]?s[o]+=r[or("0x2f")]:e[or("0x26")]({type:or("0x34"),add:"add"==o?r[or("0x2f")]:"",remove:or("0x35")==o?r.data:""});else if(this[or("0x23")][or("0x10")](r)){if(s&&s[or("0x28")][or("0x12")](or("0x3d"))>-1&&e[or("0x2c")](),or("0x16")==t[or("0x28")])continue;s&&s[or("0x28")]==o+"Object"&&s[or("0x2b")][or("0x30")]==r.name?s[or("0x1c")]++:e[or("0x26")]({type:o+or("0xc"),element:r,quantity:1}),n[or("0x3a")]((e=>!("elementEnd"==e.type&&e[or("0x39")]==r)))}else if(this._schema[or("0x37")](r,or("0x20"))||r.is(or("0x2b"),or("0x6"))){if("add"==o&&or("0x31")==t[or("0x28")]||or("0x35")==o&&or("0x16")==t[or("0x28")])continue;if(s&&-1==s[or("0x28")][or("0x12")](or("0x3d"))){or("0x34")==s[or("0x28")]&&(s[o]+="\n");continue}let n;if(n=or("0x5")==o?r.nextSibling&&!this._schema[or("0x10")](r[or("0x4")])?r.nextSibling:null:r[or("0x14")]&&!this[or("0x23")][or("0x10")](r[or("0x14")])?r[or("0x14")]:null,r[or("0x1a")]||n&&n.isEmpty){const t=n&&n[or("0x1a")]?n:r;s&&s[or("0x28")]==o+or("0x3b")&&s.element[or("0x30")]==t.name?s.quantity++:e[or("0x26")]({type:o+or("0x3b"),element:t,quantity:1})}else e.push({type:o+"Container",element:r})}}}[or("0x1d")](e){const t=this[or("0x1f")],n=[];for(const o of e){switch(o[or("0x28")]){case or("0x34"):if(o.add=o.add[or("0x8")](/(\S)\u000A+(\S)/g,or("0x21")).replace(/\u000A/g,""),o[or("0x35")]=o.remove[or("0x8")](/(\S)\u000A+(\S)/g,or("0x21"))[or("0x8")](/\u000A/g,""),""!=o[or("0x5")]&&""!=o[or("0x35")]){n[or("0x26")]({type:or("0x8"),content:Yo(t,or("0x1e"),['"'+o[or("0x35")]+'"','"'+o[or("0x5")]+'"'])});continue}if(null!=o[or("0x5")].match(/^ +$/)){n[or("0x26")]({type:or("0x1b"),content:Yo(t,or("0x11"),Yo(t,"ELEMENT_SPACE",o.add[or("0x36")]))});continue}if(null!=o[or("0x35")][or("0x17")](/^ +$/)){n.push({type:or("0x3"),content:Yo(t,"*Remove:* %0",Yo(t,or("0x3e"),o[or("0x35")].length))});continue}if(""!=o[or("0x5")]){n[or("0x26")]({type:or("0x1b"),content:Yo(t,or("0x11"),'"'+o[or("0x5")]+'"')});continue}n[or("0x26")]({type:or("0x3"),content:Yo(t,"*Remove:* %0",'"'+o[or("0x35")]+'"')});continue;case"addEmptyContainer":case or("0xf"):n[or("0x26")]({type:"insertion",content:Yo(t,or("0x11"),this[or("0x2a")](o[or("0x2b")],o.quantity))});continue;case or("0x19"):case or("0x3c"):n.push({type:or("0x3"),content:Yo(t,"*Remove:* %0",this.getItemLabel(o.element,o[or("0x1c")]))});continue;case or("0x25"):n[or("0x26")]({type:or("0x1b"),content:Yo(t,or("0x0"),this[or("0x2a")](o[or("0x2b")],o.quantity))});continue;case or("0x7"):n[or("0x26")]({type:or("0x3"),content:Yo(t,or("0x2d"),this[or("0x2a")](o[or("0x2b")],o[or("0x1c")]))});continue}n[or("0x26")](o)}return n}}const sr=["right","justify","getAttribute","commandName","center","plugins","model","FORMAT_JUSTIFY_TEXT","ltr","markBlockFormat","schema","FORMAT_ALIGN_TO_RIGHT","locale","document","editor","_descriptionFactory","format","FORMAT_ALIGN_TO_CENTER","selection","left","alignment","afterInit","value","change","getSelectedBlocks","FORMAT_ALIGN_TO_LEFT"];var ir,ar;ir=sr,ar=422,function(e){for(;--e;)ir.push(ir.shift())}(++ar);const cr=function(e,t){return sr[e-=0]};class xr extends e.Plugin{[cr("0xf")](){const e=this[cr("0x8")],t=e[cr("0x6")];if(!e[cr("0x19")].has("AlignmentEditing"))return;const n=e[cr("0x19")].get("TrackChangesEditing");n.enableCommand(cr("0xe"),((t,o={})=>{let r=o[cr("0x10")];o.value||(r=cr("0x2")===e[cr("0x6")].contentLanguageDirection?"left":cr("0x14"));const s=Array.from(this[cr("0x8")][cr("0x0")][cr("0x7")][cr("0xc")][cr("0x12")]()).filter((e=>function(e,t,n){const o=e[cr("0x16")](cr("0xe"))||null;return t.checkAttribute(e,cr("0xe"))&&n!=o}(e,this[cr("0x8")].model[cr("0x4")],r)));e[cr("0x0")][cr("0x11")]((()=>{for(const e of s)n[cr("0x3")](e,{commandName:cr("0xe"),commandParams:[{value:r}]})}))})),n[cr("0x9")].registerDescriptionCallback((e=>{const{data:n}=e;if(n&&cr("0xe")==n[cr("0x17")]){const e=n.commandParams[0][cr("0x10")];return{type:cr("0xa"),content:Yo(t,"*Format:* %0",function(e){switch(e){case cr("0xd"):return Yo(t,cr("0x13"));case cr("0x14"):return Yo(t,cr("0x5"));case cr("0x18"):return Yo(t,cr("0xb"));case cr("0x15"):return Yo(t,cr("0x1"))}}(e))}}}))}}const lr=["markerRange","createUIElement","getWalker","isContent","element","TrackChangesEditing","hasAttribute","elementEnd","getItems","start","get","getAttribute","markerName","previousPosition","createRangeOn","name","isLimit","bindElementToMarker","type","activeMarkers","ck-suggestion-marker-","nextSibling","listIndent","test","listItem","writer","plugins","addHighlight","parent","push","item","ck-suggestion-marker--active","mapper","schema","span"];var ur,dr;ur=lr,dr=280,function(e){for(;--e;)ur.push(ur.shift())}(++dr);const gr=function(e,t){return lr[e-=0]};function mr(e,t,n){const o=[];for(const r of t[gr("0x8")]())r[gr("0x6")](e)&&o[gr("0x1d")](n[gr("0xe")](r));return o}function fr(e){const t=[];if(e.is("element",gr("0x18"))){let n=e[gr("0x15")];for(;n&&n.is(gr("0x4"),"listItem")&&n[gr("0xb")](gr("0x16"))>0;)t.push(n),n=n[gr("0x15")]}return t}function hr(e,t,{showActiveMarker:n=!0}={}){const o=e[gr("0x1a")][gr("0xa")](gr("0x5"));return(r,s,i)=>{if(!i.consumable[gr("0x17")](s[gr("0x0")],r[gr("0xf")]))return;const a=s[gr("0x0")][gr("0x2")](),c=s.markerRange[gr("0x9")],x=e.model[gr("0x21")];let l=null,u=null,d=!1,g=!1;for(const e of a){const t=e[gr("0x1e")];d=d||x[gr("0x3")](t);const n=i[gr("0x20")].toViewElement(t);if(n&&n.getCustomProperty(gr("0x1b")))return;gr("0x7")==e[gr("0x12")]&&x.isBlock(t)&&!x[gr("0x10")](t)&&(t[gr("0x15")]||c.isAtEnd?l&&l[gr("0x1c")]==t||(l=t,m(e[gr("0xd")]),g=!0):u=u||e[gr("0xd")])}function m(e){const r=i.writer[gr("0x1")](gr("0x22"),{class:gr("0x14")+t}),a=i[gr("0x20")].toViewPosition(e);n&&o[gr("0x13")].includes(s[gr("0xc")])&&i[gr("0x19")].addClass(gr("0x1f"),r),i.writer.insert(a,r),i[gr("0x20")][gr("0x11")](r,s[gr("0xc")])}d||g||!u||m(u)}}const kr=["TrackChangesEditing","subscript","enableCommand","registerDescriptionCallback","FORMAT_SUPERSCRIPT","commandName","format","model","markInlineFormat","SuperscriptEditing","selection","FORMAT_UNDERLINE","StrikethroughEditing","code","document","underline","superscript","isCollapsed","CodeEditing","FORMAT_SUBSCRIPT","plugins","has","slice","FORMAT_ITALIC","_descriptionFactory","UnderlineEditing","commands","italic","FORMAT_STRIKETHROUGH","FORMAT_BOLD","bold","BoldEditing","toLowerCase","forceValue","strikethrough","ItalicEditing","get"];var br,pr;br=kr,pr=208,function(e){for(;--e;)br.push(br.shift())}(++pr);const _r=function(e,t){return kr[e-=0]},vr=[_r("0x8"),_r("0xc"),_r("0x2"),_r("0x20"),_r("0x1a"),"SubscriptEditing",_r("0x17")];class Er extends e.Plugin{afterInit(){const e=this.editor,t=e[_r("0x15")],n=e[_r("0x22")][_r("0xd")](_r("0xe")),o=e.locale;for(const o of vr){if(!e[_r("0x22")][_r("0x23")](o))continue;const r=o[_r("0x24")](0,-7)[_r("0x9")](),s=e[_r("0x3")][_r("0xd")](r);n[_r("0x10")](r,((e,o={})=>{const i=t[_r("0x1c")][_r("0x18")];if(i[_r("0x1f")])return void e(o);const a=void 0!==o[_r("0xa")]?o[_r("0xa")]:!s.value;t.change((()=>{const e=Array.from(i.getRanges());for(const o of e){const e=a?[o]:mr(r,o,t);for(const t of e)n[_r("0x16")](t,{commandName:r,commandParams:[{forceValue:a}]})}}))}))}function r(e,t){n[_r("0x1")][_r("0x11")]((n=>{const{data:r}=n;if(r&&r[_r("0x13")]===e)return r.commandParams[0].forceValue?{type:_r("0x14"),content:Yo(o,"*Format:* %0",t)}:{type:_r("0x14"),content:Yo(o,"*Remove format:* %0",t)}}))}r(_r("0x7"),Yo(o,_r("0x6"))),r(_r("0x4"),Yo(o,_r("0x0"))),r(_r("0x1d"),Yo(o,_r("0x19"))),r(_r("0x1b"),Yo(o,"FORMAT_CODE")),r(_r("0xb"),Yo(o,_r("0x5"))),r(_r("0xf"),Yo(o,_r("0x21"))),r(_r("0x1e"),Yo(o,_r("0x12")))}}const yr=["schema","getSelectedBlocks","parent","name","filter","ELEMENT_BLOCK_QUOTE","model","commandParams","format","commands","blockQuote","from","TrackChangesEditing","enableCommand","markBlockFormat","forceValue","$root","change","*Remove format:* %0","BlockQuoteEditing","selection","registerDescriptionCallback","plugins","document","get","editor","commandName"];var Tr,Cr;Tr=yr,Cr=133,function(e){for(;--e;)Tr.push(Tr.shift())}(++Cr);const wr=function(e,t){return yr[e-=0]};class Ar extends e.Plugin{afterInit(){const e=this[wr("0x0")],t=e.locale;if(!e.plugins.has(wr("0x15")))return;const n=e[wr("0x18")][wr("0x1a")](wr("0xe")),o=this[wr("0x0")][wr("0xb")][wr("0x1a")]("blockQuote");n[wr("0xf")]("blockQuote",((t,r={})=>{const s=this[wr("0x0")][wr("0x8")][wr("0x19")][wr("0x16")],i=r&&void 0!==r.forceValue?r.forceValue:!o.value;let a=[];if(i){const t=Array[wr("0xd")](s.getSelectedBlocks())[wr("0x6")]((e=>Rr(e)||function(e,t){const n=t.checkChild(e[wr("0x4")],wr("0xc")),o=t.checkChild([wr("0x12"),wr("0xc")],e);return n&&o}(e,this[wr("0x0")][wr("0x8")][wr("0x2")])));a=R(t,e[wr("0x8")])}else{const t=Array[wr("0xd")](s[wr("0x3")]())[wr("0x6")]((e=>Rr(e)));a=R(t,e[wr("0x8")])}e[wr("0x8")][wr("0x13")]((()=>{for(const e of a)n[wr("0x10")](e,{commandName:wr("0xc"),commandParams:[{forceValue:i}]})}))})),n._descriptionFactory[wr("0x17")]((e=>{const{data:n}=e;if(n&&wr("0xc")==n[wr("0x1")]){const e=Yo(t,wr("0x7"));return n[wr("0x9")][0][wr("0x11")]?{type:wr("0xa"),content:Yo(t,"*Format:* %0",e)}:{type:"format",content:Yo(t,wr("0x14"),e)}}}))}}function Rr(e){return wr("0xc")==e.parent[wr("0x5")]}const Ir=["editor","afterInit","plugins","commands","enableCommand","ckbox","get","TrackChangesEditing"];var Sr,Mr;Sr=Ir,Mr=392,function(e){for(;--e;)Sr.push(Sr.shift())}(++Mr);const Nr=function(e,t){return Ir[e-=0]};class Lr extends e.Plugin{[Nr("0x1")](){const e=this[Nr("0x0")];e[Nr("0x3")][Nr("0x6")](Nr("0x5"))&&e[Nr("0x2")][Nr("0x6")](Nr("0x7"))[Nr("0x4")](Nr("0x5"))}}const Or=["formatBlock","parent","commands","filter","plugins","registerDescriptionCallback","ELEMENT_CODE_BLOCK","enableCommand","blockName","checkChild","codeBlock","_descriptionFactory","markBlockFormat","value","commandParams","registerElementLabel","schema","isLimit","model","getSelectedBlocks","*Remove format:* %0","locale","afterInit","TrackChangesEditing","forceValue","config","find","*Format:* %0","rootElement","from","indentCodeBlock","language","commandName","get"];var Fr,Pr;Fr=Or,Pr=151,function(e){for(;--e;)Fr.push(Fr.shift())}(++Pr);const Dr=function(e,t){return Or[e-=0]};class Br extends e.Plugin{[Dr("0x7")](){const e=this.editor;if(!e.plugins.has("CodeBlock"))return;const t=e[Dr("0x17")].get(Dr("0x8")),n=e[Dr("0x6")],o=e[Dr("0xa")][Dr("0x12")](Dr("0x1d")).languages,r=e[Dr("0x15")][Dr("0x12")](Dr("0x1d"));t.enableCommand(Dr("0xf")),t[Dr("0x1a")]("outdentCodeBlock"),t.enableCommand(Dr("0x1d"),((n,s={})=>{const i=e[Dr("0x3")],a=e[Dr("0x3")].document.selection,c=s&&void 0!==s[Dr("0x9")]?s[Dr("0x9")]:!r[Dr("0x20")];let x;s[Dr("0x10")]||(s[Dr("0x10")]=o[0][Dr("0x10")]),x=c?Array[Dr("0xe")](a.getSelectedBlocks())[Dr("0x16")]((e=>{return jr(e)||(t=e,n=i[Dr("0x1")],!t.is(Dr("0xd"))&&!n[Dr("0x2")](t)&&n[Dr("0x1c")](t[Dr("0x14")],Dr("0x1d")));var t,n})):Array[Dr("0xe")](a[Dr("0x4")]()).filter((e=>jr(e)));const l=R(x,i);i.change((()=>{for(const e of l)t[Dr("0x1f")](e,{commandName:Dr("0x1d"),commandParams:[{...s,forceValue:c}],formatGroupId:Dr("0x1b")})}))})),t[Dr("0x1e")][Dr("0x0")]("codeBlock",(e=>Yo(n,Dr("0x19"),e))),t[Dr("0x1e")][Dr("0x18")]((e=>{const{type:t,data:r}=e;if(Dr("0x13")==t&&r&&Dr("0x1d")==r[Dr("0x11")]){const e=r[Dr("0x21")][0].language,t=o[Dr("0xb")]((t=>t[Dr("0x10")]===e)).label,s=n._t(t);return r[Dr("0x21")][0].forceValue?{type:"format",content:Yo(n,Dr("0xc"),Yo(n,Dr("0x19"),1)+" ("+s+")")}:{type:"format",content:Yo(n,Dr("0x5"),Yo(n,Dr("0x19"),1))}}}))}}function jr(e){return Dr("0x1d")==e.name}const Ur=["enableCommand","CommentsEditing","afterInit","TrackChangesEditing","plugins","get","addCommentThread","editor"];var Gr,Hr;Gr=Ur,Hr=476,function(e){for(;--e;)Gr.push(Gr.shift())}(++Hr);const Vr=function(e,t){return Ur[e-=0]};class zr extends e.Plugin{[Vr("0x6")](){const e=this[Vr("0x3")];e[Vr("0x0")].has(Vr("0x5"))&&e[Vr("0x0")][Vr("0x1")](Vr("0x7"))[Vr("0x4")](Vr("0x2"))}}var Wr=n(181);const Kr=["uiElement","data","get","high","selection","createSelection","root","detach","enqueueChange","lock","markerNameToElements","editor","commands","fromRange","end","unbindElementFromMarkerName","setSelection","requires","delete","$graveyard","isCollapsed","writer","showSuggestionHighlights","downcastDispatcher","getFirstRange","removeMarker:suggestion:deletion","remove","rootName","deleteForward","mapper","init","batch","addMarker:suggestion:deletion","createRange","forward","buffer","model","options","unit","merge","markerName","enableCommand"];var qr,Xr;qr=Kr,Xr=339,function(e){for(;--e;)qr.push(qr.shift())}(++Xr);const Zr=function(e,t){return Kr[e-=0]};class $r extends e.Plugin{static get[Zr("0xe")](){return[Wr.Delete]}[Zr("0x1b")](){const e=this[Zr("0x8")],t=e.plugins[Zr("0x29")]("TrackChangesEditing");t[Zr("0x26")](Zr("0xf"));const n=e[Zr("0x9")].get("deleteForward");t.enableCommand(Zr("0x19"),((t,o={})=>{const r=e[Zr("0x21")][Zr("0x2")](e.model.document[Zr("0x1")]);r[Zr("0x11")]&&e[Zr("0x21")].modifySelection(r,{direction:Zr("0x1f"),unit:o[Zr("0x23")]});const s=r[Zr("0x15")](),a=i.LiveRange[Zr("0xa")](s);let c;t(o),c=Zr("0x10")==a[Zr("0x3")][Zr("0x18")]?e[Zr("0x21")][Zr("0x1e")](s.start):e[Zr("0x21")][Zr("0x1e")](a.start,a[Zr("0xb")]),a[Zr("0x4")](),e[Zr("0x21")][Zr("0x5")](n[Zr("0x20")][Zr("0x1c")],(e=>{n[Zr("0x20")][Zr("0x6")](),e[Zr("0xd")](e[Zr("0x1e")](c[Zr("0xb")])),n[Zr("0x20")].unlock()}))})),e.editing[Zr("0x14")].on("addMarker:suggestion:deletion",hr(e,Zr("0x24")),{priority:Zr("0x0")}),e[Zr("0x28")].downcastDispatcher.on(Zr("0x1d"),((t,n,o)=>{o[Zr("0x22")][Zr("0x13")]&&hr(e,Zr("0x24"),{showActiveMarker:!1})(t,n,o)}),{priority:Zr("0x0")}),e.editing.downcastDispatcher.on(Zr("0x16"),((e,t,n)=>{const o=n[Zr("0x1a")][Zr("0x7")](t[Zr("0x25")]);if(o)for(const e of o)e.is(Zr("0x27"))&&(n[Zr("0x1a")][Zr("0xc")](e,t[Zr("0x25")]),n[Zr("0x12")][Zr("0x17")](e))}),{priority:Zr("0x0")})}}const Jr=["*Format:* remove from %0","schema","createRange","splitListItemAfter","from","enableCommand","_descriptionFactory","value","afterInit","*Format:* insert into %0","document","commands","*Indent:* %0","findIndex","previousSibling","ELEMENT_LIST_ITEM","filter","TrackChangesEditing","getSelectedBlocks","bulletedList","commandParams","editor","ELEMENT_BULLETED_LIST","splitListItemBefore","numberedList","selection","registerDescriptionCallback","nextSibling","plugins","listIndent","checkAttribute","DocumentListEditing","change","model","markBlockFormat","registerElementLabel","before","hasAttribute","end","outdentList","length","push","listType","forceValue","format","getAttribute","ELEMENT_NUMBERED_LIST","slice","locale","listItemId","add","indentList","*Outdent:* %0"];var Qr,Yr;Qr=Jr,Yr=498,function(e){for(;--e;)Qr.push(Qr.shift())}(++Yr);const es=function(e,t){return Jr[e-=0]};class ts extends e.Plugin{[es("0x28")](){const e=this[es("0x0")];if(!e[es("0x7")].has(es("0xa")))return;const t=e[es("0x1b")],n=e[es("0x7")].get(es("0x31"));function o(t){return()=>{const o=e[es("0xc")][es("0x2a")][es("0x4")],r=e[es("0x2b")].get(t);if(r.value){const s=o[es("0x32")]();return void e[es("0xc")].change((()=>{for(const e of s)n[es("0xd")](e,{commandName:t,commandParams:[{forceValue:!r[es("0x27")]}],formatGroupId:es("0x15")})}))}const s=t[es("0x1a")](0,-4),i=function(e,t,n){let o=Array[es("0x24")](e)[es("0x30")]((e=>{return t=e,n[es("0x9")](t,es("0x1c"));var t}));o=o[es("0x30")]((e=>!e[es("0x10")](es("0x1c"))||e.getAttribute(es("0x15"))!==t));const r=new Set;for(const e of o)e[es("0x10")](es("0x1c"))?r.add(os(e)):r.add(e);return Array[es("0x24")](r)}(o[es("0x32")](),s,e[es("0xc")][es("0x21")]);e.model[es("0xb")]((()=>{for(const e of i)n[es("0xd")](e,{commandName:t,commandParams:[{forceValue:!r.value}],formatGroupId:es("0x15")},ns(e))}))}}function r(t){return()=>{const o=function(e){const t=(e=Array[es("0x24")](e))[es("0x2d")]((e=>!e[es("0x10")](es("0x1c"))));return t>-1&&(e=e[es("0x1a")](0,t)),e}(e[es("0xc")][es("0x2a")].selection.getSelectedBlocks()),r=e[es("0xc")][es("0x22")](e[es("0xc")].createPositionAt(o[0],es("0xf")),e[es("0xc")].createPositionAt(o[o[es("0x13")]-1],es("0x11")));e[es("0xc")][es("0xb")]((()=>{n[es("0xd")](r,{commandName:t,commandParams:[],formatGroupId:"listIndent"},function(e){const t=new Set;for(const n of e){let e=n[es("0x6")];for(;e&&e[es("0x18")](es("0x8"))>n[es("0x18")](es("0x8"));)t[es("0x1d")](e),e=e[es("0x6")]}return Array[es("0x24")](t)}(o))}))}}n.enableCommand("numberedList",o("numberedList")),n[es("0x25")](es("0x33"),o(es("0x33"))),n[es("0x25")](es("0x1e"),r(es("0x1e"))),n[es("0x25")]("outdentList",r("outdentList")),n[es("0x25")](es("0x23")),n[es("0x25")](es("0x2")),n[es("0x26")][es("0xe")]((t=>!e[es("0xc")][es("0x21")].isObject(t)&&t[es("0x10")]("listItemId")),(e=>Yo(t,es("0x2f"),e))),n[es("0x26")][es("0x5")]((e=>{const{data:n}=e;if(!n)return;let o,r,s;switch(n.commandName){case es("0x33"):s=n[es("0x34")][0][es("0x16")],o=es(s?"0x29":"0x20"),r={type:es("0x17"),content:Yo(t,o,Yo(t,es("0x1")))};break;case es("0x3"):s=n[es("0x34")][0][es("0x16")],o=s?"*Format:* insert into %0":"*Format:* remove from %0",r={type:"format",content:Yo(t,o,Yo(t,es("0x19")))};break;case es("0x1e"):o=es("0x2c"),r={type:es("0x17"),content:Yo(t,o,Yo(t,"ELEMENT_LIST_ITEM"))};break;case es("0x12"):o=es("0x1f"),r={type:"format",content:Yo(t,o,Yo(t,es("0x2f")))}}return r}))}}function ns(e){const t=[];if(e[es("0x10")](es("0x1c"))&&e[es("0x18")](es("0x8"))>0){let n=e[es("0x6")];for(;n&&n.hasAttribute(es("0x1c"))&&n.getAttribute(es("0x8"))===e[es("0x18")](es("0x8"));)t[es("0x14")](n),n=n[es("0x6")]}return t}function os(e){const t=e.getAttribute(es("0x8"));if(0==t)return e;let n=e;for(;e.previousSibling&&e.hasAttribute("listItemId");){const o=e[es("0x2e")][es("0x18")]("listIndent");if(o==t)n=e[es("0x2e")];else if(o<t)break;e=e[es("0x2e")]}return n}var rs=n(331);const ss=["markerNameToElements","isAtStart","createRange","change","editor","model","high","unbindElementFromMarkerName","addMarker:suggestion:insertion","get","mapper","isCollapsed","markInsertion","editing","end","init","plugins","document","getFirstRange","remove","fromRange","parent","schema","enableCommand","requires","split","downcastDispatcher","isLimit","options","getFirstPosition","start","hasClass","createPositionAt","writer"];var is,as;is=ss,as=358,function(e){for(;--e;)is.push(is.shift())}(++as);const cs=function(e,t){return ss[e-=0]};class xs extends e.Plugin{static get[cs("0x6")](){return[rs.Enter]}[cs("0x1f")](){const e=this[cs("0x14")],t=e[cs("0x20")][cs("0x19")]("TrackChangesEditing");t[cs("0x5")]("enter",(n=>{e.model[cs("0x13")]((o=>{const r=e[cs("0x15")][cs("0x21")].selection,s=r[cs("0xb")](),a=r[cs("0x1b")],c=i.LiveRange[cs("0x2")](r[cs("0x0")]()),x=c.start.parent,l=c.end.parent,u=!(c[cs("0xc")][cs("0x11")]&&c[cs("0x1e")].isAtEnd),d=x==l,g=!(e[cs("0x15")].schema[cs("0x9")](x)||e[cs("0x15")][cs("0x4")][cs("0x9")](l))&&(a||u&&d);if(n(),g){const n=e[cs("0x15")][cs("0xe")](s[cs("0x3")].nextSibling,0),r=o[cs("0x12")](s,n);t[cs("0x1c")](r)}else o.setSelection(o[cs("0x12")](c[cs("0x1e")]));c.detach()}))})),e[cs("0x1d")][cs("0x8")].on(cs("0x18"),hr(e,cs("0x7")),{priority:cs("0x16")}),e[cs("0x1d")][cs("0x8")].on("removeMarker:suggestion:insertion",((e,t,n)=>{const o=n.mapper[cs("0x10")](t.markerName);if(o)for(const e of o)e[cs("0xd")]("ck-suggestion-marker-split")&&(n[cs("0x1a")][cs("0x17")](e,t.markerName),n[cs("0xf")][cs("0x1")](e))}),{priority:cs("0x16")}),e.data[cs("0x8")].on(cs("0x18"),((t,n,o)=>{o[cs("0xa")].showSuggestionHighlights&&hr(e,cs("0x7"),{showActiveMarker:!1})(t,n,o)}),{priority:cs("0x16")})}}const ls=["markInlineFormat","fontBackgroundColor.colors","plugins","isCollapsed","_descriptionFactory","from","FontFamilyEditing","toLowerCase","editor","FontSize","*Set font size:* %0","afterInit","label","_enableCommand","change","locale","*Set font background color:* %0","fontSize.options","fontBackgroundColor","model","enableCommand","document","selection","get","TrackChangesEditing","*Set font color:* %0","commandName","fontFamily","FontColorEditing","format","find","getRanges","trim","value","config","FontSizeEditing","fontSize","fontColor","commandParams","*Reset font background color*","normalizeSizeOptions","registerDescriptionCallback","*Set font family:* %0","fontColor.colors"];var us,ds;us=ls,ds=359,function(e){for(;--e;)us.push(us.shift())}(++ds);const gs=function(e,t){return ls[e-=0]},ms=[{pluginName:gs("0x1c"),commandName:gs("0x1d")},{pluginName:gs("0x2b"),commandName:gs("0x14")},{pluginName:gs("0x15"),commandName:gs("0x1e")},{pluginName:"FontBackgroundColorEditing",commandName:"fontBackgroundColor"}];class fs extends e.Plugin{[gs("0x4")](){const e=this.editor[gs("0x8")];for(const{pluginName:e,commandName:t}of ms)this[gs("0x1")][gs("0x27")].has(e)&&this[gs("0x6")](t);this[gs("0x1")][gs("0x27")].get(gs("0x11"))[gs("0x29")][gs("0x22")]((t=>{const{data:n}=t;if(null!=n){if(gs("0x1d")==n[gs("0x13")]){const t=n[gs("0x1f")][0][gs("0x1a")];if(t){const n=this.editor[gs("0x27")].get(gs("0x2"))[gs("0x21")](this.editor[gs("0x1b")].get(gs("0xa")))[gs("0x17")]((e=>e[gs("0xc")]==t)).title,o=this.editor[gs("0x8")]._t(n)[gs("0x0")]();return{type:gs("0x16"),content:Yo(e,gs("0x3"),o)}}return{type:"format",content:Yo(e,"*Reset font size*")}}if(gs("0x14")==n.commandName){const t=n[gs("0x1f")][0][gs("0x1a")];return t?{type:gs("0x16"),content:Yo(e,gs("0x23"),t)}:{type:"format",content:Yo(e,"*Reset font family*")}}if(gs("0x1e")==n[gs("0x13")]){const t=n[gs("0x1f")][0][gs("0x1a")];if(t){const n=(0,r.normalizeColorOptions)(this[gs("0x1")].config[gs("0x10")](gs("0x24")))[gs("0x17")]((e=>e[gs("0xc")]==t));let o=t,s="";return n&&(o=n.label,s=e._t(o).toLowerCase()),{type:gs("0x16"),content:Yo(e,gs("0x12"),s)[gs("0x19")](),color:{value:t,title:s||o}}}return{type:gs("0x16"),content:Yo(e,"*Reset font color*")}}if(gs("0xb")==n.commandName){const t=n[gs("0x1f")][0][gs("0x1a")];if(t){const n=(0,r.normalizeColorOptions)(this.editor[gs("0x1b")].get(gs("0x26"))).find((e=>e[gs("0xc")]==t));let o=t,s="";return n&&(o=n[gs("0x5")],s=e._t(o).toLowerCase()),{type:gs("0x16"),content:Yo(e,gs("0x9"),s)[gs("0x19")](),color:{value:t,title:s||o}}}return{type:gs("0x16"),content:Yo(e,gs("0x20"))}}}}))}_enableCommand(e){const t=this[gs("0x1")];t.plugins[gs("0x10")](gs("0x11"))[gs("0xd")](e,((n,o={})=>{const r=t[gs("0xc")][gs("0xe")][gs("0xf")],s=o[gs("0x1a")];r[gs("0x28")]?n(o):t[gs("0xc")][gs("0x7")]((()=>{const n=Array[gs("0x2a")](r[gs("0x18")]());for(const o of n){const n=s?[o]:mr(e,o,t[gs("0xc")]);for(const o of n)t[gs("0x27")][gs("0x10")](gs("0x11"))[gs("0x25")](o,{commandName:e,commandParams:[{value:s}]})}}))}))}}const hs=["value","editor","commandName","title","HeadingEditing","from","get","config","schema","isObject","model","registerDescriptionCallback","ELEMENT_HEADING_CUSTOM","find","commandParams","heading.options","checkChild","document","change","enableCommand","match","filter","*Change to:* %0","parent","locale","format","blockName","getSelectedBlocks","plugins","heading","has","ELEMENT_HEADING"];var ks,bs;ks=hs,bs=248,function(e){for(;--e;)ks.push(ks.shift())}(++bs);const ps=function(e,t){return hs[e-=0]};class _s extends e.Plugin{afterInit(){const e=this[ps("0x9")],t=e[ps("0x0")],n=e[ps("0xf")][ps("0xe")](ps("0x17"));if(!e[ps("0x4")][ps("0x6")](ps("0xc")))return;const o=e[ps("0x4")][ps("0xe")]("TrackChangesEditing");o[ps("0x1b")](ps("0x5"),((t,n)=>{const r=n.value,s=Array[ps("0xd")](this.editor[ps("0x12")][ps("0x19")].selection[ps("0x3")]())[ps("0x1d")]((e=>{return t=e,n=r,(o=this[ps("0x9")][ps("0x12")][ps("0x10")])[ps("0x18")](t[ps("0x1f")],n)&&!o[ps("0x11")](t)&&t.name!=n;var t,n,o}));e[ps("0x12")][ps("0x1a")]((()=>{for(const e of s)o.markBlockFormat(e,{commandName:ps("0x5"),commandParams:[n],formatGroupId:ps("0x2")},fr(e))}))}));for(const e of n)"paragraph"!=e.model&&o._descriptionFactory.registerElementLabel(e[ps("0x12")],(t=>{const n=vs(e.model);return null!==n?r(t,n):s(t,e[ps("0xb")])}));function r(e,n){return Yo(t,ps("0x7"),[e,n])}function s(e,n){return Yo(t,ps("0x14"),[e,n])}o._descriptionFactory[ps("0x13")]((e=>{const{type:o,data:i}=e;if("formatBlock"==o&&i&&ps("0x5")==i[ps("0xa")]){const e=i[ps("0x16")][0][ps("0x8")],o=vs(e);if(null!==o)return{type:ps("0x1"),content:Yo(t,ps("0x1e"),r(1,o))};const a=n[ps("0x15")]((t=>t[ps("0x12")]===e)).title;return{type:ps("0x1"),content:Yo(t,ps("0x1e"),s(1,a))}}}))}}function vs(e){const t=e[ps("0x1c")](/^heading(\d+)$/);return t?t[1]:null}const Es=["value","title","TrackChangesEditing","locale","hasAttribute","backward","selection","highlight.options","color","get","createRange","markInlineFormat","change","plugins","FORMAT_HIGHLIGHT","afterInit","model","editor","push","getLastMatchingPosition","format","*Remove highlight*","isCollapsed","getRanges","getFirstPosition","item","config","document","highlight","formatInline","registerDescriptionCallback","has","enableCommand","getAttribute","*Set highlight:* %0"];var ys,Ts;ys=Es,Ts=336,function(e){for(;--e;)ys.push(ys.shift())}(++Ts);const Cs=function(e,t){return Es[e-=0]};class ws extends e.Plugin{[Cs("0x1d")](){const e=this[Cs("0x1f")];if(!e[Cs("0x1b")][Cs("0xa")]("HighlightEditing"))return;const t=e.plugins[Cs("0x17")](Cs("0x10"));t[Cs("0xb")](Cs("0x7"),((n,o={})=>{const r=e[Cs("0x1e")][Cs("0x6")][Cs("0x14")],s=r[Cs("0xc")]("highlight");let i=o[Cs("0xe")],a=[];if(r[Cs("0x1")]){const t=r[Cs("0x3")]();if(!r[Cs("0x12")]("highlight"))return void n(o);{const n=e=>e[Cs("0x4")][Cs("0xc")]("highlight")===s,o=t[Cs("0x21")](n,{direction:Cs("0x13")}),r=t[Cs("0x21")](n);a=[e[Cs("0x1e")][Cs("0x18")](o,r)],i==s&&(i=null)}}else for(const t of r[Cs("0x2")]())i?a[Cs("0x20")](t):a[Cs("0x20")](...mr("highlight",t,e.model));e[Cs("0x1e")][Cs("0x1a")]((()=>{for(const e of a)t[Cs("0x19")](e,{commandName:Cs("0x7"),commandParams:[{value:i}]})}))}));const n=e[Cs("0x11")];t._descriptionFactory[Cs("0x9")]((t=>{const{type:o,data:r}=t;if(Cs("0x8")==o&&r&&Cs("0x7")==r.commandName){const t=r.commandParams[0][Cs("0xe")];if(t){const o=e[Cs("0x5")].get(Cs("0x15")).find((e=>e[Cs("0x1e")]==t)),r=n._t(o.title).toLowerCase();return{type:Cs("0x22"),content:Yo(n,Cs("0xd"),r),color:{value:o[Cs("0x16")],title:o[Cs("0xf")]}}}return{type:Cs("0x22"),content:Yo(n,Cs("0x0"),Yo(n,Cs("0x1c")))}}}))}}const As=["addClass","for","high","HorizontalLineEditing","_descriptionFactory","TrackChangesEditing","plugins","registerElementLabel","editor","createPositionAt","elementToStructure","has","conversion","enableCommand","horizontalLine","ELEMENT_HORIZONTAL_LINE","locale","get"];var Rs,Is;Rs=As,Is=431,function(e){for(;--e;)Rs.push(Rs.shift())}(++Is);const Ss=function(e,t){return As[e-=0]};class Ms extends e.Plugin{afterInit(){const e=this[Ss("0x9")];if(!e[Ss("0x7")][Ss("0xc")](Ss("0x4")))return;e[Ss("0x7")][Ss("0x0")]("TrackChangesEditing")[Ss("0xe")](Ss("0xf"));const t=e[Ss("0x7")][Ss("0x0")](Ss("0x6")),n=e[Ss("0x11")];t[Ss("0x5")][Ss("0x8")](Ss("0xf"),(e=>Yo(n,Ss("0x10"),e))),e[Ss("0xd")][Ss("0x2")]("dataDowncast")[Ss("0xb")]({model:Ss("0xf"),view:(e,{writer:t,options:n})=>{if(!n.showSuggestionHighlights)return;const o=t.createContainerElement("div"),r=t.createEmptyElement("hr");return t[Ss("0x1")]("ck-horizontal-line",o),t.insert(t[Ss("0xa")](o,0),r),o},converterPriority:Ss("0x3")})}}const Ns=["editing","selection","commandName","locale","getAttribute","TrackChangesEditing","htmlEmbed","registerElementLabel","editor","rawHtml","value","registerDescriptionCallback","model","get","has","*Change %0 content*","getCustomProperty","ELEMENT_HTML_EMBED","_descriptionFactory","document","view","HtmlEmbed","rawHtmlApi","format","getSelectedElement","plugins","markBlockFormat","element","change","enableCommand"];var Ls,Os;Ls=Ns,Os=410,function(e){for(;--e;)Ls.push(Ls.shift())}(++Os);const Fs=function(e,t){return Ns[e-=0]};class Ps extends e.Plugin{afterInit(){const e=this[Fs("0x12")];if(!e[Fs("0x5")][Fs("0x18")](Fs("0x1")))return;const t=e[Fs("0x5")][Fs("0x17")](Fs("0xf")),n=e[Fs("0xd")],o=e[Fs("0xa")][Fs("0x0")][Fs("0x1d")].selection;t[Fs("0x1c")][Fs("0x11")]("rawHtml",(e=>Yo(n,Fs("0x1b"),e))),e[Fs("0x5")].get(Fs("0xf"))[Fs("0x9")](Fs("0x10"),((n,r)=>{const s=e[Fs("0x16")],i=s[Fs("0x1d")][Fs("0xb")];s[Fs("0x8")]((()=>{const e=function(e){const t=e[Fs("0x4")]();return t&&t.is(Fs("0x7"),Fs("0x13"))?e[Fs("0x4")]():null}(i);if(!e)return void n(null);const s=e[Fs("0xe")](Fs("0x14"))||"";void 0!==r&&r!==s&&(t[Fs("0x6")](e,{commandName:Fs("0x10"),commandParams:[r]}),o[Fs("0x4")]()[Fs("0x1a")](Fs("0x2")).cancel())}))})),t[Fs("0x1c")][Fs("0x15")]((e=>{const{data:t}=e;if(t&&"htmlEmbed"==t[Fs("0xc")]){const e=Yo(n,Fs("0x1b"));return{type:Fs("0x3"),content:Yo(n,Fs("0x19"),e)}}}))}}const Ds=["length","getAttribute","_findSuggestions","createRangeOn","ImageInlineEditing","FORMAT_SIDE_IMAGE","ELEMENT_INLINE_IMAGE","getClosestSelectedImageElement","imageStyle","ImageCaptionUtils","forEach","fromPosition","removeObject","imageStylePostApply","nodeAfter","backward","hasSuggestion","_descriptionFactory","imageCaption","alt","markBlockFormat","chain","type","*Remove image text alternative*","getSuggestionCallback","imageTypeInline","find","start","width","schema","*Set image text alternative:* %0","ImageResize","forceDefaultExecution","markDeletion","suggestion","commands","Users","newValue","commandParams","registerPostFixer","join","markInsertion","resizeImage","toNext","model","locale","isOwn","registerDescriptionCallback","isInlineImage","previous","*Set image width:* %0","imageBlock","insertion","has","*Format:* %0","deletion","detach","convertBlockImageToInline","getChangedMarkers","toLowerCase","next","refresh","createRange","registerElementLabel","selection","subType","ImageUploadEditing","getSuggestions","commandReversedParams","ImageTextAlternativeEditing","isIntersecting","filter","_suggestionFactory","change","getSuggestion","convertInlineImageToBlock","name","value","isBefore","getCaptionFromImageModelElement","formatBlock","isEqual","isBlockImage","accept","author","findIndex","element","getContainedElement","get","isCollapsed","imageTextAlternative","discard","discardSuggestion","imageTypeBlock","document","editor","hasAttribute","caption","forward","plugins","Block image to inline image","shouldConvertImageType","isInContent","imageInline","getNearestSelectionRange","toPrevious","ELEMENT_CAPTION","Inline image to block image","toggleImageCaption","ImageUtils","end","enableCommand","getFirstRange","commandName","format","newRange","registerCustomCallback","addObject","*Reset image width*","markInlineFormat","imageStylePreApply"];var Bs,js;Bs=Ds,js=434,function(e){for(;--e;)Bs.push(Bs.shift())}(++js);const Us=function(e,t){return Ds[e-=0]};class Gs extends e.Plugin{afterInit(){const e=this[Us("0x18")];if(!e[Us("0x1c")][Us("0x67")]("ImageEditing"))return;const n=e.plugins[Us("0x11")]("TrackChangesEditing"),o=e[Us("0x1c")][Us("0x11")](Us("0x26")),r={},s=e[Us("0x5f")];if(n[Us("0x28")]("insertImage"),n._descriptionFactory[Us("0x71")](Us("0x65"),(e=>Yo(s,"ELEMENT_IMAGE",e))),n[Us("0x43")][Us("0x71")](Us("0x20"),(e=>Yo(s,Us("0x38"),e))),n[Us("0x43")][Us("0x71")]("caption",(()=>Yo(s,Us("0x23")))),e[Us("0x1c")][Us("0x67")](Us("0x74"))&&n[Us("0x28")]("uploadImage"),e[Us("0x1c")][Us("0x67")]("ImageBlockEditing")&&e[Us("0x1c")][Us("0x67")](Us("0x36"))&&(n[Us("0x28")]("imageTypeInline",((t,r)=>{const s=o.getClosestSelectedImageElement(e.model[Us("0x17")][Us("0x72")]);e[Us("0x5e")][Us("0x2")]((()=>{n[Us("0x46")](s,{commandName:Us("0x4b"),commandParams:[r]},[],Us("0x6b"))}))})),n[Us("0x28")](Us("0x16"),((t,r)=>{e.model.change((s=>{let a=o[Us("0x39")](e[Us("0x5e")][Us("0x17")][Us("0x72")]),c=s[Us("0x35")](a);const x=i.LivePosition[Us("0x3d")](c[Us("0x4d")],Us("0x22")),l=i.LivePosition[Us("0x3d")](c[Us("0x27")],Us("0x5d"));n[Us("0x52")]((()=>t(r))),a=o[Us("0x39")](e[Us("0x5e")][Us("0x17")][Us("0x72")]),c=s[Us("0x35")](a);const u=s.createRange(x,l);x[Us("0x6a")](),l[Us("0x6a")](),n[Us("0x46")](a,{commandName:"imageTypeInline"},[],Us("0x4")),u.start[Us("0x7")](c.start)&&n[Us("0x5b")](s[Us("0x70")](u[Us("0x4d")],c[Us("0x4d")]),Us("0x4")),c.end.isBefore(u[Us("0x27")])&&n.markInsertion(s.createRange(c.end,u.end),Us("0x4"))}))})),n[Us("0x1")][Us("0x2d")](Us("0x9"),Us("0x4"),Us("0x5a"),(()=>{})),n._suggestionFactory[Us("0x2d")](Us("0x9"),Us("0x4"),Us("0xc"),(()=>{})),n[Us("0x1")].registerCustomCallback(Us("0x9"),"convertInlineImageToBlock","discard",n[Us("0x1")].getSuggestionCallback(Us("0x9"),"",Us("0xc"))),n[Us("0x1")].registerCustomCallback(Us("0x66"),Us("0x4"),"join",(()=>{})),n[Us("0x1")][Us("0x2d")]("insertion",Us("0x4"),Us("0x14"),(([t])=>{const o=n[Us("0x1")][Us("0x4a")]("insertion","","discard");let r=t[Us("0x4d")],s=t.end;const i=e[Us("0x5e")][Us("0x4f")][Us("0x21")](r,Us("0x41")),a=e[Us("0x5e")][Us("0x4f")].getNearestSelectionRange(s,Us("0x1b"));i[Us("0x12")]&&(r=i.start),a[Us("0x12")]&&(s=a[Us("0x27")]),o([e.model[Us("0x70")](r,s)])})),n[Us("0x1")].registerCustomCallback(Us("0x9"),Us("0x4"),Us("0x47"),x),n[Us("0x1")][Us("0x2d")](Us("0x66"),Us("0x4"),Us("0x47"),x)),e.plugins.has("ImageCaptionEditing")&&(n[Us("0x28")](Us("0x25"),((t,r)=>{const s=e[Us("0x1c")][Us("0x11")](Us("0x3b"));let i=o[Us("0x39")](e[Us("0x5e")][Us("0x17")][Us("0x72")]),a=s[Us("0x8")](i);e[Us("0x5e")][Us("0x2")]((()=>{if(a)return void n[Us("0x53")](e[Us("0x5e")][Us("0x35")](a));const c=o[Us("0xb")](i);t(r),i=o.getClosestSelectedImageElement(e[Us("0x5e")].document[Us("0x72")]),a=s[Us("0x8")](i),n[Us("0x5b")](e[Us("0x5e")][Us("0x35")](a),c?null:Us("0x44"))}))})),n[Us("0x1")].registerCustomCallback(Us("0x66"),Us("0x44"),Us("0x47"),x)),e[Us("0x1c")].has("ImageStyleEditing")){n[Us("0x28")](Us("0x3a"),((r,s)=>{const i=e[Us("0x1c")][Us("0x11")](Us("0x56")).me,a=e[Us("0x55")].get(Us("0x3a"));let c=o[Us("0x39")](e.model[Us("0x17")].selection),x=e[Us("0x5e")][Us("0x35")](c),l=a[Us("0x6")];if(l==s[Us("0x6")])return;const u={commandName:Us("0x3a"),commandParams:[s],formatGroupId:(0,t.uid)()};e[Us("0x5e")].change((()=>{if(n[Us("0x75")]().filter((e=>e.isInContent&&i==e[Us("0xd")]&&("formatBlock"==e[Us("0x48")]||"formatInline"==e[Us("0x48")])&&(Us("0x31")==e[Us("0x73")]||Us("0x3f")==e.subType)&&e[Us("0x29")]()[Us("0xa")](x)))[Us("0x3c")]((e=>n[Us("0x15")](e.head))),c=o.getClosestSelectedImageElement(e[Us("0x5e")][Us("0x17")].selection),x=e[Us("0x5e")][Us("0x35")](c),a[Us("0x6f")](),e.commands[Us("0x11")]("imageTypeInline").refresh(),e[Us("0x55")][Us("0x11")]("imageTypeBlock")[Us("0x6f")](),l=a[Us("0x6")],l!=s.value)return o[Us("0x62")](c)&&a[Us("0x1e")](s[Us("0x6")],c)?(r(s),c=o[Us("0x39")](e[Us("0x5e")][Us("0x17")][Us("0x72")]),void n[Us("0x46")](c,{...u,commandReversedParams:[{value:l||null}]},[],Us("0x31"))):void(o[Us("0xb")](c)?n[Us("0x46")](c,u,[],"imageStylePostApply"):n[Us("0x30")](x,u,"imageStylePostApply"))}))}));for(const t of e[Us("0x1c")][Us("0x11")]("ImageStyleEditing").normalizedStyles)r[t[Us("0x5")]]=t.title[Us("0x6d")]();n[Us("0x1")][Us("0x2d")](Us("0x9"),Us("0x31"),Us("0x5a"),(()=>{})),n[Us("0x1")][Us("0x2d")]("formatBlock",Us("0x3f"),Us("0x5a"),(()=>{})),n[Us("0x1")].registerCustomCallback("formatInline",Us("0x3f"),Us("0x5a"),(()=>{})),n._suggestionFactory.registerCustomCallback(Us("0x9"),Us("0x31"),Us("0xc"),(()=>{})),n[Us("0x1")][Us("0x2d")]("formatBlock","imageStylePreApply",Us("0x14"),((e,t)=>{n[Us("0x1")][Us("0x4a")](Us("0x9"),"",Us("0xc"))(e,{commandName:t.commandName,commandParams:t[Us("0x76")]})})),n._suggestionFactory[Us("0x2d")](Us("0x9"),Us("0x31"),Us("0x47"),x)}const a=[{type:Us("0x9"),subType:Us("0x31")},{type:"insertion",subType:Us("0x44")},{type:Us("0x9"),subType:"convertInlineImageToBlock"},{type:"insertion",subType:Us("0x4")}];function c(e,t){const r=a[Us("0xe")]((({type:t,subType:n})=>e.type==t&&e[Us("0x73")]==n)),s=a[Us("0xe")]((({type:e,subType:n})=>t[Us("0x48")]==e&&t.subType==n));if(r<0||s<0)return!1;const i=e.getFirstRange(),c=t[Us("0x29")]();if((0==r||1==r)&&2==s&&i[Us("0x78")](c))return!0;if(2==r&&3==s){const e=n[Us("0x34")](i,Us("0x66"))[Us("0x0")]((({suggestion:e,meta:t})=>t[Us("0x60")]&&Us("0x4")==e.subType));if(e.length>1&&c[Us("0x27")][Us("0xa")](i[Us("0x4d")]))return!0;if(1==e[Us("0x32")]&&(i[Us("0x4d")][Us("0xa")](c.end)||i[Us("0x27")][Us("0xa")](c[Us("0x4d")])))return!0}if(3==r&&3==s&&i.start[Us("0x7")](c[Us("0x4d")])){const e=i[Us("0x27")][Us("0x40")],t=c.start.nodeBefore;return o[Us("0xb")](e)&&e===t}return!1}function x(e,t){return c(e,t)?[e,t]:c(t,e)?[t,e]:null}e[Us("0x5e")][Us("0x17")][Us("0x59")]((()=>{let t=!1;const r=Array.from(e[Us("0x5e")][Us("0x17")].differ[Us("0x6c")]());for(const{name:e,data:s}of r){const{group:r,type:i,subType:a,id:c}=n._splitMarkerName(e);if(Us("0x54")==r&&n[Us("0x42")](c)){if(Us("0x9")==i&&("imageStylePreApply"==a||Us("0x3f")==a)){const e=n[Us("0x3")](c);if(s[Us("0x2c")]){const r=e[Us("0x29")]()[Us("0x10")]();if(o[Us("0xb")](r))continue;n[Us("0x15")](e),t=!0}}if("insertion"==i&&Us("0x44")==a&&!s[Us("0x2c")]){const e=n[Us("0x3")](c);e.next&&e.next[Us("0x1f")]&&(n.discardSuggestion(e[Us("0x6e")]),t=!0)}}}return t})),e[Us("0x1c")].has(Us("0x51"))&&n.enableCommand(Us("0x5c"),((t,r)=>{const s=o[Us("0x39")](e.model.document[Us("0x72")]);s[Us("0x33")](Us("0x4e"))!=r[Us("0x4e")]&&e[Us("0x5e")].change((()=>{n[Us("0x46")](s,{commandName:Us("0x5c"),commandParams:[r]})}))})),e.plugins[Us("0x67")](Us("0x77"))&&n[Us("0x28")](Us("0x13"),((t,r)=>{const s=o.getClosestSelectedImageElement(e[Us("0x5e")][Us("0x17")][Us("0x72")]);(s[Us("0x19")](Us("0x45"))?s[Us("0x33")](Us("0x45")):"")!=r[Us("0x57")]&&e[Us("0x5e")][Us("0x2")]((()=>{n[Us("0x46")](s,{commandName:"imageTextAlternative",commandParams:[r]})}))})),n[Us("0x43")][Us("0x61")]((e=>{if(a[Us("0x4c")]((({type:t,subType:n})=>e[Us("0x48")]==t&&e.subType==n)))return e[Us("0x63")]?{}:void 0})),n._descriptionFactory[Us("0x61")]((e=>{if("insertion"==e[Us("0x48")]||Us("0x69")==e[Us("0x48")]){const t=e[Us("0x10")]();if(t&&t.is(Us("0xf"),Us("0x1a")))return{type:Us("0x66")==e.type?Us("0x2e"):Us("0x3e"),element:t,quantity:1}}})),n[Us("0x43")][Us("0x61")]((e=>Us("0x9")==e[Us("0x48")]&&"convertInlineImageToBlock"==e[Us("0x73")]?{type:Us("0x2b"),content:Us("0x24")}:"formatBlock"==e[Us("0x48")]&&Us("0x6b")==e[Us("0x73")]?{type:"format",content:Us("0x1d")}:void 0)),n[Us("0x43")].registerDescriptionCallback((e=>{const{data:t}=e;if(t){if("imageStyle"==t[Us("0x2a")]){const e=t[Us("0x58")][0][Us("0x6")];return n="side"===e?Yo(s,Us("0x37")):r[e]||e,{type:Us("0x2b"),content:Yo(s,Us("0x68"),n)}}if(Us("0x13")==t[Us("0x2a")]){const e=t[Us("0x58")][0][Us("0x57")];return e?{type:Us("0x2b"),content:Yo(s,Us("0x50"),'"'+e+'"')}:{type:Us("0x2b"),content:Yo(s,Us("0x49"))}}if(Us("0x5c")==t[Us("0x2a")]){const e=t.commandParams[0][Us("0x4e")];return e?{type:Us("0x2b"),content:Yo(s,Us("0x64"),e)}:{type:Us("0x2b"),content:Yo(s,Us("0x2f"))}}}var n}))}}const Hs=["enableCommand","lowest","bind","dataInsert","get","forEach","importWord","collaboration_features","_trackChangesExecuted","_trackChangesValueDuringImport","high","_setSuggestionData","execute","Users","editor","TrackChangesEditing","trackChanges","value","_handleImportedData","commands","listenTo","plugins"];var Vs,zs;Vs=Hs,zs=337,function(e){for(;--e;)Vs.push(Vs.shift())}(++zs);const Ws=function(e,t){return Hs[e-=0]};class Ks extends e.Plugin{constructor(e){super(e),this[Ws("0x2")]=!1,this[Ws("0x1")]=!1}afterInit(){const e=this[Ws("0x7")],t=e[Ws("0xc")].get(Ws("0x15")),n=e[Ws("0xc")].get(Ws("0x9"));t&&(t.on("execute",((e,[,t])=>{this[Ws("0x2")]=n[Ws("0xa")],t[Ws("0x0")].track_changes=!this[Ws("0x2")]}),{priority:Ws("0x3")}),this[Ws("0xd")](t,Ws("0x12"),this[Ws("0xb")][Ws("0x11")](this)),this[Ws("0xd")](t,Ws("0x12"),(()=>{this._trackChangesExecuted&&(n[Ws("0x5")](),this._trackChangesExecuted=!1)}),{priority:Ws("0x10")}),e.plugins[Ws("0x13")](Ws("0x8"))[Ws("0xf")](Ws("0x15")))}[Ws("0xb")](e,t){const{suggestions:n}=t,o=this[Ws("0x7")][Ws("0xc")].get(Ws("0x9")),r=o[Ws("0xa")];this[Ws("0x2")]!==r&&(o[Ws("0x5")](),this._trackChangesExecuted=!0),n&&n[Ws("0x14")]((({id:e,type:t,author:n,created_at:o})=>{const r={id:e,type:t,authorId:this[Ws("0x7")][Ws("0xe")][Ws("0x13")](Ws("0x6")).me.id,createdAt:new Date,data:{},hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:Ws("0x15")}}};this[Ws("0x7")][Ws("0xe")][Ws("0x13")](xx)[Ws("0x4")](r)}))}}const qs=["enableCommand","registerDescriptionCallback","indent","afterInit","getItems","filter","blockIndent","_descriptionFactory","document","outdentBlock","markBlockFormat","commandName","model","editor","from","indentBlock","IndentEditing","schema","getItemLabel","locale","plugins","*Outdent:* %0","has","getSelectedBlocks","outdent"];var Xs,Zs;Xs=qs,Zs=135,function(e){for(;--e;)Xs.push(Xs.shift())}(++Zs);const $s=function(e,t){return qs[e-=0]};class Js extends e.Plugin{[$s("0x12")](){const e=this.editor,t=e[$s("0xa")].get("TrackChangesEditing");e[$s("0xa")].has($s("0x6"))&&(t[$s("0xf")]($s("0x11")),t[$s("0xf")]($s("0xe")));const n=e[$s("0x9")];if(e.plugins[$s("0xc")]("IndentBlock")){for(const n of[$s("0x5"),$s("0x18")])t[$s("0xf")](n,(()=>{const o=Array[$s("0x4")](this[$s("0x3")][$s("0x2")][$s("0x17")].selection[$s("0xd")]())[$s("0x14")]((e=>this.editor[$s("0x2")][$s("0x7")].checkAttribute(e,$s("0x15"))));e[$s("0x2")].change((()=>{for(const e of o)t[$s("0x0")](e,{commandName:n,commandParams:[{value:""}],formatGroupId:$s("0x5")})}))}));t._descriptionFactory[$s("0x10")]((e=>{const{data:o}=e;if(!o)return;if($s("0x5")!=o[$s("0x1")]&&"outdentBlock"!=o.commandName)return;const r=e[$s("0x13")]()[0],s=t[$s("0x16")][$s("0x8")](r);return $s("0x5")==o.commandName?{type:"format",content:Yo(n,"*Indent:* %0",s)}:"outdentBlock"==o.commandName?{type:"format",content:Yo(n,$s("0xb"),s)}:void 0}))}}}var Qs,Ys,ei=["init","editor","input","enableCommand","requires"];Qs=ei,Ys=385,function(e){for(;--e;)Qs.push(Qs.shift())}(++Ys);var ti=function(e,t){return ei[e-=0]};class ni extends e.Plugin{static get[ti("0x4")](){return[Wr.Input]}[ti("0x0")](){this[ti("0x1")].plugins.get("TrackChangesEditing")[ti("0x3")](ti("0x2"))}}const oi=["locale","plugins","model","enableCommand","from","getFirstRange","getFirstPosition","getAttribute","markInlineFormat","unlink","*Remove link*","link","selection","has","afterInit","format","TrackChangesEditing","commandParams","change","get","commandName","document","*Set link:* %0","linkHref","_descriptionFactory","getRanges"];var ri,si;ri=oi,si=321,function(e){for(;--e;)ri.push(ri.shift())}(++si);const ii=function(e,t){return oi[e-=0]};class ai extends e.Plugin{[ii("0x5")](){const e=this.editor;if(!e[ii("0x12")][ii("0x4")]("LinkEditing"))return;const t=e[ii("0x12")][ii("0xa")](ii("0x7"));t[ii("0x14")]("link",((n,o)=>{const r=e[ii("0x13")][ii("0xc")][ii("0x3")];let s=[];if(r.isCollapsed){if(!r.hasAttribute(ii("0xe")))return void n(o);{const t=(0,Wr.findAttributeRange)(r[ii("0x17")](),"linkHref",r[ii("0x18")](ii("0xe")),e[ii("0x13")]);s=[t]}}else s=Array[ii("0x15")](r[ii("0x10")]());e[ii("0x13")][ii("0x9")]((()=>{for(const e of s)t[ii("0x19")](e,{commandName:"link",commandParams:[o]})}))})),t[ii("0x14")]("unlink",(()=>{const n=this.editor[ii("0x13")],o=n[ii("0xc")][ii("0x3")];n[ii("0x9")]((()=>{let n=[];n=o.isCollapsed?[(0,Wr.findAttributeRange)(o.getFirstPosition(),ii("0xe"),o[ii("0x18")](ii("0xe")),e[ii("0x13")])]:mr(ii("0xe"),o[ii("0x16")](),e[ii("0x13")]);for(const e of n)t.markInlineFormat(e,{commandName:ii("0x0"),commandParams:[]})}))})),t[ii("0xf")].registerDescriptionCallback((t=>{const{data:n}=t,o=e[ii("0x11")];if(n){if(ii("0x2")==n[ii("0xb")]){const e=n[ii("0x8")][0];return{type:ii("0x6"),content:Yo(o,ii("0xd"),'"'+e+'"')}}return ii("0x0")==n[ii("0xb")]?{type:ii("0x6"),content:Yo(o,ii("0x1"))}:void 0}}))}}const ci=["commandName","ListEditing","replace","length","_selectedElements","get","add","*Check item*","forceValue","*Indent:* %0","todoList","plugins","ELEMENT_NUMBERED_LIST","outdentList","value","ELEMENT_LIST_ITEM","TrackChangesEditing","_descriptionFactory","indentList","format","listIndent","todoListChecked","has","paragraph","listItem","ELEMENT_TODO_LIST","locale","before","todo","checkTodoList","afterInit","schema","findIndex","document","getSelectedBlocks","numberedList","slice","markBlockFormat","registerDescriptionCallback","createPositionAt","previousSibling","model","commands","isObject","List","from","enableCommand","numbered","bulletedList","parent","listType","getAttribute","checkChild","name","end","change","ELEMENT_BULLETED_LIST","element","nextSibling","bulleted","createRange"];var xi,li;xi=ci,li=156,function(e){for(;--e;)xi.push(xi.shift())}(++li);const ui=function(e,t){return ci[e-=0]};class di extends e.Plugin{[ui("0x39")](){const e=this.editor,t=e[ui("0x35")];if(!e[ui("0x26")][ui("0x31")](ui("0x1c")))return;const n=e.plugins.get(ui("0x2b")),o=e[ui("0x26")].has("TodoListEditing");function r(t){return()=>{const o=e[ui("0x7")].document.selection,r=e[ui("0x8")][ui("0x20")](t);if(r[ui("0x29")])return void e.execute(ui("0x32"),{});const s=t[ui("0x2")](0,-4),i=function(e,t,n){let o=Array[ui("0xb")](e).filter((e=>{return t=e,(o=n)[ui("0x12")](t[ui("0xf")],"listItem")&&!o[ui("0x9")](t);var t,o}));o=o.filter((e=>!e.is(ui("0x17"),ui("0x33"))||e.getAttribute(ui("0x10"))!=t));const r=new Set;for(const e of o)e.is(ui("0x17"),ui("0x33"))?r[ui("0x21")](gi(e)):r[ui("0x21")](e);return Array[ui("0xb")](r)}(o[ui("0x0")](),s,e[ui("0x7")][ui("0x3a")]);e[ui("0x7")][ui("0x15")]((()=>{for(const e of i)n[ui("0x3")](e,{commandName:t,commandParams:[{forceValue:!r.value}],formatGroupId:"blockName"},mi(e))}))}}function s(t){return()=>{const o=function(e){const t=(e=Array[ui("0xb")](e))[ui("0x3b")]((e=>ui("0x33")!=e[ui("0x13")]));return t>-1&&(e=e[ui("0x2")](0,t)),e}(e[ui("0x7")][ui("0x3c")].selection[ui("0x0")]()),r=e[ui("0x7")][ui("0x1a")](e[ui("0x7")][ui("0x5")](o[0],ui("0x36")),e[ui("0x7")][ui("0x5")](o[o[ui("0x1e")]-1],ui("0x14")));e.model.change((()=>{n.markBlockFormat(r,{commandName:t,commandParams:[],formatGroupId:ui("0x2f")},function(e){const t=new Set;for(const n of e){let e=n[ui("0x18")];for(;e&&e[ui("0x11")](ui("0x2f"))>n[ui("0x11")](ui("0x2f"));)t.add(e),e=e[ui("0x18")]}return Array[ui("0xb")](t)}(o))}))}}n.enableCommand(ui("0x1"),r(ui("0x1"))),n.enableCommand(ui("0xe"),r(ui("0xe"))),o&&n.enableCommand(ui("0x25"),r(ui("0x25"))),n.enableCommand(ui("0x2d"),s("indentList")),n.enableCommand(ui("0x28"),s("outdentList")),o&&n[ui("0xc")](ui("0x38"),(()=>{const t=e.commands[ui("0x20")](ui("0x38")),o=Array[ui("0xb")](t[ui("0x1f")]);o.filter((e=>e[ui("0x11")](ui("0x30"))!=t[ui("0x29")])),e[ui("0x7")][ui("0x15")]((()=>{for(const e of o)n[ui("0x3")](e,{commandName:ui("0x38"),commandParams:[{forceValue:!t[ui("0x29")]}]})}))})),n[ui("0x2c")].registerElementLabel(ui("0x33"),(e=>Yo(t,ui("0x2a"),e))),n[ui("0x2c")][ui("0x4")]((e=>{const{data:n}=e;if(n){if(ui("0x1")==n[ui("0x1b")]||ui("0xe")==n.commandName||"todoList"==n[ui("0x1b")])switch(n[ui("0x1b")][ui("0x1d")](ui("0xa"),"")){case ui("0x19"):return o(Yo(t,ui("0x16")));case ui("0xd"):return o(Yo(t,ui("0x27")));case ui("0x37"):return o(Yo(t,ui("0x34")))}if(ui("0x2d")==n[ui("0x1b")])return{type:ui("0x2e"),content:Yo(t,ui("0x24"),Yo(t,"ELEMENT_LIST_ITEM"))};if("outdentList"==n[ui("0x1b")])return{type:"format",content:Yo(t,"*Outdent:* %0",Yo(t,ui("0x2a")))};if(ui("0x38")==n[ui("0x1b")])return n.commandParams[0][ui("0x23")]?{type:ui("0x2e"),content:Yo(t,ui("0x22"))}:{type:ui("0x2e"),content:Yo(t,"*Uncheck item*")}}function o(e){return{type:ui("0x2e"),content:Yo(t,"*Change to:* %0",e)}}}))}}function gi(e){const t=e[ui("0x11")](ui("0x2f"));if(0==t)return e;let n=e;for(;e.previousSibling&&e.previousSibling.is(ui("0x17"),ui("0x33"));){const o=e.previousSibling[ui("0x11")]("listIndent");if(o==t)n=e[ui("0x6")];else if(o<t)break;e=e[ui("0x6")]}return n}function mi(e){const t=[];if(e.is(ui("0x17"),"listItem")&&e[ui("0x11")](ui("0x2f"))>0){let n=e[ui("0x18")];for(;n&&ui("0x33")==n.name&&n.getAttribute("listIndent")==e[ui("0x11")](ui("0x2f"));)t.push(n),n=n[ui("0x18")]}return t}const fi=["MediaEmbedEditing","ELEMENT_MEDIA","elementToElement","editor","div","downcastDispatcher","high","registerElementLabel","data","media","attribute:url:media","_descriptionFactory","enableCommand","get","locale","plugins","has","options","showSuggestionHighlights","mediaEmbed"];var hi,ki;hi=fi,ki=379,function(e){for(;--e;)hi.push(hi.shift())}(++ki);const bi=function(e,t){return fi[e-=0]};class pi extends e.Plugin{afterInit(){const e=this[bi("0x4")];if(!e[bi("0x10")][bi("0x11")](bi("0x1")))return;const t=e[bi("0x10")][bi("0xe")]("TrackChangesEditing"),n=e[bi("0xf")];t[bi("0xd")](bi("0x0")),t[bi("0xc")][bi("0x8")](bi("0xa"),(e=>Yo(n,bi("0x2"),e))),e.conversion.for("dataDowncast")[bi("0x3")]({model:bi("0xa"),view:(e,{writer:t,options:n})=>{if(n[bi("0x13")])return t.createEmptyElement(bi("0x5"))},converterPriority:bi("0x7")}),e[bi("0x9")][bi("0x6")].on(bi("0xb"),((e,t,n)=>{n[bi("0x12")][bi("0x13")]&&e.stop()}),{priority:bi("0x7")})}}const _i=["enableCommand","afterInit","plugins","mention"];var vi,Ei;vi=_i,Ei=348,function(e){for(;--e;)vi.push(vi.shift())}(++Ei);const yi=function(e,t){return _i[e-=0]};class Ti extends e.Plugin{[yi("0x1")](){const e=this.editor;e[yi("0x2")].has("MentionEditing")&&e[yi("0x2")].get("TrackChangesEditing")[yi("0x0")](yi("0x3"))}}const Ci=["plugins","afterInit","pageBreak","get","ELEMENT_PAGE_BREAK","locale","editor","TrackChangesEditing","PageBreakEditing","_descriptionFactory","registerElementLabel","has"];var wi,Ai;wi=Ci,Ai=233,function(e){for(;--e;)wi.push(wi.shift())}(++Ai);const Ri=function(e,t){return Ci[e-=0]};class Ii extends e.Plugin{[Ri("0x8")](){const e=this[Ri("0x1")];if(!e[Ri("0x7")][Ri("0x6")](Ri("0x3")))return;e[Ri("0x7")][Ri("0xa")](Ri("0x2")).enableCommand(Ri("0x9"));const t=e[Ri("0x7")].get(Ri("0x2")),n=e[Ri("0x0")];t[Ri("0x4")][Ri("0x5")](Ri("0x9"),(e=>Yo(n,Ri("0xb"),e)))}}const Si=["ck-suggestion-marker--active","showSuggestionHighlights","bindElementToMarker","start","$text","registerDescriptionCallback","mapper","isTouching","paragraph","editor","enableCommand","document","filter","options","ck-suggestion-marker-split","has","*Change to:* %0","ELEMENT_PARAGRAPH","model","_descriptionFactory","afterInit","format","from","highest","plugins","nodeAfter","toViewPosition","checkChild","blockName","addMarker:suggestion:insertion","isLimit","getFirstRange","isObject","markerRange","span","writer","*Insert:* %0","markBlockFormat","isBlock","name","locale","downcastDispatcher","insertion","end","getSelectedBlocks","insertParagraph","includes","TrackChangesEditing","selection","createUIElement","schema","get"];var Mi,Ni;Mi=Si,Ni=357,function(e){for(;--e;)Mi.push(Mi.shift())}(++Ni);const Li=function(e,t){return Si[e-=0]};class Oi extends e.Plugin{[Li("0x1b")](){const e=this[Li("0x10")];if(!e[Li("0x1f")][Li("0x16")]("Paragraph"))return;const t=e[Li("0x2f")],n=e.plugins.get("TrackChangesEditing");n[Li("0x1a")].registerElementLabel(Li("0xf"),(e=>Yo(t,Li("0x18"),e))),n[Li("0x11")](Li("0xf"),((t,o={})=>{const r=e.model[Li("0x12")],s=o[Li("0x3")]||r[Li("0x3")],i=Array[Li("0x1d")](s[Li("0x33")]())[Li("0x13")]((e=>{return t=e,(n=this.editor[Li("0x19")][Li("0x5")]).checkChild(t.parent,Li("0xf"))&&!n[Li("0x27")](t)&&Li("0xf")!=t[Li("0x2e")];var t,n}));e[Li("0x19")].change((()=>{for(const e of i)n[Li("0x2c")](e,{commandName:"paragraph",commandParams:[],formatGroupId:Li("0x23")},fr(e))}))})),n[Li("0x1a")][Li("0xc")]((e=>{const{data:n}=e;if(n&&"paragraph"==n.commandName)return{type:Li("0x1c"),content:Yo(t,Li("0x17"),Yo(t,Li("0x18")))}})),n[Li("0x11")](Li("0x0")),e.editing[Li("0x30")].on(Li("0x24"),Fi(e),{priority:"highest"}),e.data[Li("0x30")].on(Li("0x24"),((t,n,o)=>{o[Li("0x14")][Li("0x8")]&&Fi(e,{showActiveMarker:!1})(t,n,o)}),{priority:Li("0x1e")});const o=n[Li("0x1a")];o[Li("0xc")]((n=>{if("insertion"!==n.type)return;const{start:r,end:s}=n[Li("0x26")]();if(!r[Li("0xe")](s)||!r[Li("0x20")])return;const i=e.model[Li("0x5")],a=r.nodeAfter;return i[Li("0x2d")](a)&&!i[Li("0x25")](a)&&i[Li("0x22")](a,Li("0xb"))?{type:Li("0x31"),content:Yo(t,Li("0x2b"),o.getItemLabel(a,1))}:void 0}))}}function Fi(e,{showActiveMarker:t=!0}={}){return(n,o,r)=>{const s=e[Li("0x1f")][Li("0x6")](Li("0x2")),i=o[Li("0x28")][Li("0xa")],a=o[Li("0x28")][Li("0x32")],c=e[Li("0x19")].schema;if(!i[Li("0xe")](a)||!i[Li("0x20")])return;const x=i[Li("0x20")];if(c[Li("0x2d")](x)&&!c[Li("0x25")](x)&&c[Li("0x22")](x,Li("0xb"))){if(!r.consumable.consume(o[Li("0x28")],n[Li("0x2e")]))return;const e=r[Li("0x2a")][Li("0x4")](Li("0x29"),{class:Li("0x15")}),i=r[Li("0xd")][Li("0x21")](a);t&&s.activeMarkers[Li("0x1")](o.markerName)&&r.writer.addClass(Li("0x7"),e),r[Li("0x2a")].insert(i,e),r.mapper[Li("0x9")](e,o.markerName)}}}const Pi=["getRanges","removeFormat","has","markInlineFormat","document","afterInit","model","from","getAttributes","format","enableCommand","plugins","createRangeOn","getItems","_descriptionFactory","commandName","TrackChangesEditing","RemoveFormatEditing","isCollapsed","getAttributeProperties","*Remove all formatting*","registerDescriptionCallback","locale"];var Di,Bi;Di=Pi,Bi=104,function(e){for(;--e;)Di.push(Di.shift())}(++Bi);const ji=function(e,t){return Pi[e-=0]};class Ui extends e.Plugin{[ji("0x10")](){const e=this.editor;if(!e[ji("0x16")][ji("0xd")](ji("0x5")))return;const t=e[ji("0x16")].get(ji("0x4"));t[ji("0x15")]("removeFormat",(n=>{const o=e[ji("0x11")][ji("0xf")].selection;o[ji("0x6")]?n():e.model.change((()=>{const n=Array[ji("0x12")](o[ji("0xb")]());for(const o of n)for(const n of o[ji("0x1")]())Gi(n,e[ji("0x11")].schema)&&t[ji("0xe")](e[ji("0x11")][ji("0x0")](n),{commandName:ji("0xc"),commandParams:[]})}))})),t[ji("0x2")][ji("0x9")]((t=>{const{data:n}=t;if(n&&ji("0xc")==n[ji("0x3")])return{type:ji("0x14"),content:Yo(e[ji("0xa")],ji("0x8"))}}))}}function Gi(e,t){for(const[n]of e[ji("0x13")]()){const e=t[ji("0x7")](n);if(e&&e.isFormatting)return!0}return!1}const Hi=["discardSuggestion","trackChanges","discardAllSuggestions","get","goToNextRestrictedEditingException","plugins","acceptSuggestion","has","goToPreviousRestrictedEditingException","enableCommand","acceptSelectedSuggestions","afterInit"];var Vi,zi;Vi=Hi,zi=151,function(e){for(;--e;)Vi.push(Vi.shift())}(++zi);const Wi=function(e,t){return Hi[e-=0]};class Ki extends e.Plugin{[Wi("0x4")](){const e=this.editor;if(!e[Wi("0xa")][Wi("0x0")]("RestrictedEditingModeEditing"))return;const t=e[Wi("0xa")][Wi("0x8")]("TrackChangesEditing");t[Wi("0x2")](Wi("0x1")),t.enableCommand(Wi("0x9"));const n=e[Wi("0xa")][Wi("0x8")]("RestrictedEditingModeEditing");n[Wi("0x2")](Wi("0x6")),n[Wi("0x2")](Wi("0xb")),n.enableCommand(Wi("0x5")),n[Wi("0x2")]("acceptAllSuggestions"),n[Wi("0x2")](Wi("0x7")),n[Wi("0x2")](Wi("0x3")),n.enableCommand("discardSelectedSuggestions")}}const qi=["ck-suggestion-marker-","createPositionBefore","init","shiftEnter","activeMarkers","addClass","bindElementToMarker","insert","softBreak","locale","test","merge","data","split","mapper","writer","TrackChangesEditing","addMarker:suggestion","addMarker:suggestion:deletion","markerRange","get","_descriptionFactory","addMarker:suggestion:insertion","editing","plugins","options","showSuggestionHighlights","includes","getItems","model","editor","createUIElement","downcastDispatcher","ELEMENT_LINE_BREAK","markerName","toViewPosition","high"];var Xi,Zi;Xi=qi,Zi=201,function(e){for(;--e;)Xi.push(Xi.shift())}(++Zi);const $i=function(e,t){return qi[e-=0]};class Ji extends e.Plugin{static get requires(){return[rs.ShiftEnter]}[$i("0x17")](){const e=this[$i("0xe")],t=e.plugins[$i("0x4")]($i("0x0"));t.enableCommand($i("0x18")),e[$i("0x7")].downcastDispatcher.on($i("0x6"),Qi(e),{priority:$i("0x14")}),e.editing[$i("0x10")].on($i("0x2"),Qi(e),{priority:$i("0x14")}),e[$i("0x21")][$i("0x10")].on($i("0x1"),((t,n,o)=>{o[$i("0x9")][$i("0xa")]&&Qi(e,{showActiveMarker:!1})(t,n,o)})),t[$i("0x5")].registerElementLabel("softBreak",(t=>Yo(e[$i("0x1e")],$i("0x11"),t)))}}function Qi(e,{showActiveMarker:t=!0}={}){return(n,o,r)=>{const s=e[$i("0x8")][$i("0x4")]("TrackChangesEditing");if(!r.consumable[$i("0x1f")](o.markerRange,n.name))return;const i=e[$i("0xd")];for(const e of o[$i("0x3")][$i("0xc")]()){if(!e.is("element",$i("0x1d")))continue;const n="deletion"==o[$i("0x12")][$i("0x22")](":")[1]?$i("0x20"):$i("0x22"),a=r[$i("0x24")][$i("0xf")]("span",{class:$i("0x15")+n}),c=r[$i("0x23")][$i("0x13")](i[$i("0x16")](e));t&&s[$i("0x19")][$i("0xb")](o.markerName)&&r[$i("0x24")][$i("0x1a")]("ck-suggestion-marker--active",a),r[$i("0x24")][$i("0x1c")](c,a),r[$i("0x23")][$i("0x1b")](a,o[$i("0x12")])}}}const Yi=["editor","change","enableCommand","registerDescriptionCallback","isCollapsed","has","document","_descriptionFactory","selection","FORMAT_RESTRICTED_DISABLED","TrackChangesEditing","StandardEditingModeEditing","commandName","forceValue","afterInit","markInlineFormat","plugins","format","restrictedEditingException","get","commands","FORMAT_RESTRICTED_ENABLED","model"];var ea,ta;ea=Yi,ta=121,function(e){for(;--e;)ea.push(ea.shift())}(++ta);const na=function(e,t){return Yi[e-=0]};class oa extends e.Plugin{[na("0x8")](){const e=this[na("0x11")],t=e[na("0x10")],n=e.locale;if(!e.plugins[na("0x16")](na("0x5")))return;const o=e[na("0xa")][na("0xd")](na("0x4")),r=na("0xc"),s=e[na("0xe")].get(r);o[na("0x13")](r,((e,n={})=>{const i=t[na("0x0")][na("0x2")];if(i[na("0x15")])return void e(n);const a=void 0!==n[na("0x7")]?n[na("0x7")]:!s.value;t[na("0x12")]((()=>{const e=Array.from(i.getRanges());for(const n of e){const e=a?[n]:mr(r,n,t);for(const t of e)o[na("0x9")](t,{commandName:r,commandParams:[{forceValue:a}]})}}))})),o[na("0x1")][na("0x14")]((e=>{const{data:t}=e;if(t&&t[na("0x6")]==r)return t.commandParams[0][na("0x7")]?{type:na("0xb"),content:Yo(n,na("0xf"))}:{type:na("0xb"),content:Yo(n,na("0x3"))}}))}}const ra=["find","locale","getRanges","format","from","commandName","has","style:","change","get","push","*Remove format:* %0","style.definitions","createRangeOn","style","classes","editor","styleName","registerDescriptionCallback","includes","document","model","afterInit","config","selection","toLowerCase","isCollapsed","TrackChangesEditing","markInlineFormat","getAttribute","getDefinitionsForView","_descriptionFactory","getStyleDefinition","getSelectedBlocks","commandParams","name","forceValue","isBlock","DataSchema","block","getRangesWithClasses","plugins","enabledStyles","markBlockFormat","*Format:* %0"];var sa,ia;sa=ra,ia=316,function(e){for(;--e;)sa.push(sa.shift())}(++ia);const aa=function(e,t){return ra[e-=0]};class ca extends e.Plugin{[aa("0x15")](){const e=this[aa("0xf")];if(!e[aa("0x28")][aa("0x5")]("Style"))return;const t=e.commands[aa("0x8")](aa("0xd")),n=e[aa("0x28")][aa("0x8")](aa("0x1a")),o=e[aa("0x0")],r=e[aa("0x28")].get(aa("0x25")),s=function(e,t=[]){const n={block:[],inline:[]};for(const o of t){const t=[],r=[];for(const n of e.getDefinitionsForView(o.element))n.isBlock?t.push(n.model):r.push(n.model);t.length?n.block.push({...o,modelElements:t,isBlock:!0}):n.inline.push({...o,ghsAttributes:r})}return n}(r,e[aa("0x16")][aa("0x8")](aa("0xb")));n.enableCommand(aa("0xd"),((o,{styleName:i})=>{const a=e[aa("0x14")][aa("0x13")][aa("0x17")],c=this[aa("0x1f")](i,s);if(!c)return;if(!t[aa("0x29")].includes(i))return;if(a[aa("0x19")]&&!c[aa("0x24")])return void o({styleName:i});const x=!t.value[aa("0x12")](c[aa("0x22")]);if(c[aa("0x24")]){const t=function(e,t){const n=new Set;for(const o of e){const e=o.getAncestors({includeSelf:!0,parentFirst:!0});for(const o of e)if(t[aa("0x12")](o[aa("0x22")])){n.add(o);break}}return n}(a[aa("0x20")](),c.modelElements);e[aa("0x14")][aa("0x7")]((()=>{for(const e of t)n[aa("0x2a")](e,{commandName:aa("0xd"),commandParams:[{styleName:i,forceValue:x}],formatGroupId:aa("0x6")+i})}))}else{let t=Array[aa("0x3")](a[aa("0x1")]());if(!x){const n=Array[aa("0x3")](r[aa("0x1d")](c.element,!1))[0][aa("0x14")],o=[];for(const r of t){const t=this[aa("0x27")](e[aa("0x14")],r,c[aa("0xe")],n);o[aa("0x9")](...t)}t=o}e[aa("0x14")][aa("0x7")]((()=>{for(const e of t)n[aa("0x1b")](e,{commandName:aa("0xd"),commandParams:[{styleName:i,forceValue:x}]})}))}})),n[aa("0x1e")][aa("0x11")]((e=>{const{data:t}=e;if(t&&"style"===t[aa("0x4")])return t[aa("0x21")][0][aa("0x23")]?{type:"format",content:Yo(o,aa("0x2b"),t.commandParams[0][aa("0x10")][aa("0x18")]())}:{type:aa("0x2"),content:Yo(o,aa("0xa"),t[aa("0x21")][0][aa("0x10")][aa("0x18")]())}}))}[aa("0x1f")](e,t){let n=t[aa("0x26")][aa("0x2c")]((t=>t.name===e));return n||(n=t.inline[aa("0x2c")]((t=>t.name===e))),n}[aa("0x27")](e,t,n,o){const r=[];for(const s of t.getItems()){const t=s[aa("0x1c")](o);t&&n.every((e=>t.classes.includes(e)))&&r[aa("0x9")](e[aa("0xc")](s))}return r}}const xa=["nodeAfter","fromRange","_setupColumnsRowsFixing","getChangedMarkers","setSelection","type","registerDescriptionCallback","tableColumn","isIntersectingWithRange","getCellLocation","data","deletion","afterInit","minRow","detach","downcastDispatcher","root","plugins","addMarker:suggestion","TrackChangesEditing","*Insert:* %0","isEqual","insertTable","document","last","maxColumn","includes","TableEditing","left","span","writer","table","ELEMENT_TABLE_COLUMN_WITH_TEXT","removeTableColumn","some","getSelectionAffectedTableCells","_getCoordsForCells","subType","get","discard","element","from","getSuggestion","locale","minColumn","insertTableColumnLeft","batch","insertion","map","execute","above","hasAttribute","$graveyard","TableUtils","createPositionAt","editor","rowspan","getChanges","mapper","isInContent","item","ELEMENT_TABLE","insert","model","getRowIndexes","getItems","position","nodeBefore","classes","tableRow","getColumnIndexes","length","insertTableRowBelow","commands","end","getFirstRange","_tableSuggestions","ELEMENT_TABLE_ROW","registerCustomCallback","change","startsWith","differ","refresh","createRangeIn","createTableWalker","textProxy","toLowerCase","getChildren","ELEMENT_TABLE_WITH_TEXT","MAX_SAFE_INTEGER","removeTableRow","push","name","_tablePostFixingSubtypes","highest","add","enqueueChange","addRange","addClass","start","order","markMultiRangeInsertion","_acceptFormatSuggestionCallbackFactory","getContainedElement","substr","colspan","accept","min","tableCell","registerElementLabel","_suggestionFactory","findAncestor","*Remove:* %0","_descriptionFactory","selectTableColumn","markMultiRangeDeletion","_getSuggestionCoords","enableCommand","ELEMENT_TABLE_COLUMN","filter","first","max","options","toViewElement","rootName","_splitMarkerName","cell","showSuggestionHighlights","getAttribute","getRanges","insertTableRowAbove","MIN_SAFE_INTEGER","low","maxRow","createRangeOn","join","insertTableColumnRight"];var la,ua;la=xa,ua=200,function(e){for(;--e;)la.push(la.shift())}(++ua);const da=function(e,t){return xa[e-=0]};class ga extends e.Plugin{constructor(e){super(e),this[da("0x1e")]=[da("0x6"),da("0x51")]}[da("0x56")](){const e=this[da("0x81")],t=e.model[da("0x61")].selection;if(!e[da("0x5b")].has(da("0x65")))return;const n=e[da("0x75")],o=e[da("0x5b")][da("0x70")](da("0x5d")),r=e[da("0x5b")][da("0x70")](da("0x7f"));o[da("0x32")][da("0x2e")](da("0x69"),(e=>Yo(n,da("0x87"),e))),this[da("0x4c")](),o.enableCommand(da("0x60")),o[da("0x36")]("selectTableRow"),o[da("0x36")](da("0x33"));for(const n of[da("0x43"),da("0x9")]){const s=e.commands.get(n);o[da("0x36")](n,(n=>{e[da("0x0")][da("0x10")]((e=>{n();const i=da("0x7c")===s[da("0x25")],a=r[da("0x6d")](t),c=r[da("0x1")](a),x=i?c.first-1:c[da("0x62")]+1,l=a[0][da("0x30")](da("0x69")),u=r[da("0x15")](l,{startRow:x,endRow:x}),d=Array.from(u)[da("0x7a")]((t=>e.createRangeOn(t[da("0x3f")])));o.markMultiRangeInsertion(d,"tableRow")}))}))}for(const n of[da("0x77"),da("0x49")]){const s=e[da("0xa")][da("0x70")](n);o.enableCommand(n,(n=>{e[da("0x0")][da("0x10")]((e=>{n();const i=da("0x66")===s[da("0x25")],a=r[da("0x6d")](t),c=r[da("0x7")](a),x=i?c[da("0x39")]-1:c.last+1,l=a[0].findAncestor("table"),u=r[da("0x15")](l,{startRow:0,column:x,includeAllSlots:!1}),d=Array[da("0x73")](u).map((t=>e[da("0x47")](t.cell)));o[da("0x26")](d,"tableColumn")}))}))}for(const n of["removeTableRow","removeTableColumn"]){const s=n[da("0x29")](11),i=s.toLowerCase(),a=i[da("0x29")](0,3)+da("0x67"),c=da("0x69")+s,x=da("0x2c")+s,l=da("0x3a")+s;o.enableCommand(n,(()=>{e[da("0x0")][da("0x10")]((e=>{const s=r.getSelectionAffectedTableCells(t),u=s[0][da("0x30")](da("0x69"));let d;if(da("0x1b")==n){const e=r[da("0x1")](s);d={startRow:e.first,endRow:e[da("0x62")],includeAllSlots:!0}}else{const e=r[da("0x7")](s);d={startColumn:e[da("0x39")],endColumn:e.last,includeAllSlots:!0}}const g=r[da("0x15")](u,d),m=Array[da("0x73")](g)[da("0x7a")]((({cell:e})=>e)),f=ma(m.filter((e=>e[da("0x7d")](a)))),h=ma(m[da("0x38")]((e=>!e[da("0x7d")](a))))[da("0x7a")]((t=>e[da("0x47")](t))),k=o[da("0x34")](h,c);if(k&&(da("0x6")==k.subType||da("0x51")==k[da("0x6f")])){const t=this[da("0x35")](k);for(const n of f){const o=e[da("0x47")](n),s=r.getCellLocation(n),c=n[da("0x41")](a)-1,u=t[x],d=t[l];u<=s[i]&&s[i]+c<=d&&k[da("0x22")](o)}}}))}))}function s(n){const o=Array[da("0x73")](t[da("0x42")]())[da("0x7a")]((e=>i.LiveRange.fromRange(e)));e.model[da("0x10")]((t=>{const r=t[da("0x78")];n=n[da("0x38")]((e=>"$graveyard"!=e[da("0x5a")].rootName)),t[da("0x4e")](n),e[da("0xa")][da("0x70")]("removeTableRow")[da("0x13")](),e[da("0x7b")](da("0x1b"),{forceDefaultExecution:!0}),e[da("0x0")].enqueueChange((()=>{e.model[da("0x21")](r,(e=>{const t=o[da("0x38")]((e=>"$graveyard"!=e.root.rootName));t[da("0x8")]>0&&e[da("0x4e")](t);for(const e of o)e[da("0x58")]()}))}))}))}function c(n){e[da("0x0")][da("0x10")]((o=>{const r=Array.from(t.getRanges())[da("0x7a")]((e=>i.LiveRange.fromRange(e))),s=[];for(const e of n)for(const t of e[da("0x2")]({shallow:!0}))s[da("0x1c")](t);for(const t of s)da("0x7e")!=t.root[da("0x3d")]&&(o.setSelection(o[da("0x80")](t,0)),e[da("0xa")][da("0x70")](da("0x6b")).refresh(),e[da("0x7b")]("removeTableColumn",{forceDefaultExecution:!0}));const a=r[da("0x38")]((e=>da("0x7e")!=e[da("0x5a")].rootName));a.length>0&&o.setSelection(a);for(const e of r)e[da("0x58")]()}))}function x(e,t){return t.every((t=>e.some((e=>e[da("0xb")][da("0x5f")](t[da("0x24")])||t[da("0xb")][da("0x5f")](e[da("0x24")])))))}function l(e,t){return e[da("0x6c")]((e=>t[da("0x6c")]((t=>e.end.isTouching(t[da("0x24")])))))}e[da("0x54")][da("0x59")].on(da("0x5c"),((e,t,n)=>{if(!n[da("0x3b")][da("0x40")])return;const o=t[da("0x86")];if(!o)return;const r=n[da("0x84")][da("0x3c")](o);function s(e){return Array.isArray(e)?e:[e]}r&&da("0x2d")===o.name&&(0,a.setHighlightHandling)(r,n[da("0x68")],((e,t,n)=>n[da("0x23")](s(t.classes),e)),((e,t,n)=>n.removeClass(s(t[da("0x5")]),e)))}),{priority:da("0x1f")}),o[da("0x32")].registerDescriptionCallback((e=>{if(da("0x79")!=e.type&&"deletion"!=e[da("0x4f")])return;const t=e[da("0x28")]();if(null!=t&&t.is(da("0x72"),da("0x69"))){if(da("0x79")==e.type){const t=e[da("0x2")]()[da("0x38")]((e=>e.is(da("0x16")))).map((e=>e[da("0x54")]));if(t.length)return{type:da("0x79"),content:Yo(n,da("0x5e"),Yo(n,da("0x19"),'"'+t[da("0x48")](" ")+'"'))}}if(da("0x55")==e[da("0x4f")]){const t=e.getItems()[da("0x38")]((e=>e.is("textProxy")))[da("0x7a")]((e=>e[da("0x54")]));if(t[da("0x8")])return{type:"deletion",content:Yo(n,"*Remove:* %0",Yo(n,da("0x19"),'"'+t[da("0x48")](" ")+'"'))}}}})),o[da("0x32")][da("0x50")]((e=>{if(da("0x6")==e[da("0x6f")]){const t=e[da("0x2")]().filter((e=>e.is(da("0x16")))).map((e=>e.data)),o=this._getSuggestionCoords(e),r=o[da("0x46")]-o[da("0x57")]+1;if(da("0x79")==e[da("0x4f")])return t.length?{type:da("0x79"),content:Yo(n,"*Insert:* %0",Yo(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[r,'"'+t[da("0x48")](" ")+'"']))}:{type:da("0x79"),content:Yo(n,"*Insert:* %0",Yo(n,"ELEMENT_TABLE_ROW",r))};if(da("0x55")==e[da("0x4f")])return t[da("0x8")]?{type:da("0x55"),content:Yo(n,da("0x31"),Yo(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[r,'"'+t[da("0x48")](" ")+'"']))}:{type:"deletion",content:Yo(n,da("0x31"),Yo(n,da("0xe"),r))}}if(da("0x51")==e[da("0x6f")]){const t=e[da("0x2")]()[da("0x38")]((e=>e.is(da("0x16"))))[da("0x7a")]((e=>e.data)),o=this[da("0x35")](e),r=o[da("0x63")]-o[da("0x76")]+1;if("insertion"==e[da("0x4f")])return t[da("0x8")]?{type:da("0x79"),content:Yo(n,da("0x5e"),Yo(n,da("0x6a"),[r,'"'+t.join(" ")+'"']))}:{type:da("0x79"),content:Yo(n,da("0x5e"),Yo(n,"ELEMENT_TABLE_COLUMN",r))};if(da("0x55")==e[da("0x4f")])return t[da("0x8")]?{type:da("0x55"),content:Yo(n,da("0x31"),Yo(n,da("0x6a"),[r,'"'+t[da("0x48")](" ")+'"']))}:{type:da("0x55"),content:Yo(n,da("0x31"),Yo(n,da("0x37"),r))}}})),o[da("0x2f")][da("0xf")](da("0x79"),"tableRow",da("0x71"),s),o[da("0x2f")][da("0xf")]("deletion",da("0x6"),da("0x2b"),s),o._suggestionFactory[da("0xf")]("insertion",da("0x51"),da("0x71"),c),o._suggestionFactory[da("0xf")](da("0x55"),"tableColumn",da("0x2b"),c),o[da("0x2f")].registerCustomCallback(da("0x79"),"tableColumn",da("0x48"),x),o._suggestionFactory.registerCustomCallback(da("0x55"),da("0x51"),"join",x),o._suggestionFactory.registerCustomCallback("insertion","tableRow",da("0x48"),l),o._suggestionFactory[da("0xf")](da("0x55"),da("0x6"),da("0x48"),l)}[da("0x27")](){const e=this[da("0x81")],t=e[da("0x0")].document.selection;return(n,o)=>{e[da("0x0")][da("0x10")]((r=>{const{commandName:s,commandParams:a}=o;let c=n[0][da("0xb")][da("0x4")];a&&a[0]&&!1===a[0].forceValue&&(c=n[0].start[da("0x4a")]);const x=r[da("0x14")](c);if("$graveyard"==x[da("0x5a")][da("0x3d")])return;const l=Array.from(t[da("0x42")]())[da("0x7a")]((e=>i.LiveRange[da("0x4b")](e)));r[da("0x4e")](x),e[da("0xa")][da("0x70")](s)[da("0x13")](),a[da("0x1c")]({forceDefaultExecution:!0}),e[da("0x7b")](s,...a);const u=l[da("0x38")]((e=>da("0x7e")!=e[da("0x5a")].rootName));u[da("0x8")]>0&&r[da("0x4e")](u);for(const e of l)e.detach()}))}}[da("0x6e")](e){const t=this.editor[da("0x5b")][da("0x70")](da("0x7f"));let n=Number[da("0x1a")],o=Number[da("0x44")],r=Number.MAX_SAFE_INTEGER,s=Number[da("0x44")];for(const i of e){if(da("0x7e")==i[da("0x5a")][da("0x3d")])continue;const{row:e,column:a}=t[da("0x53")](i),c=i[da("0x7d")](da("0x82"))?i.getAttribute(da("0x82"))-1:0,x=i[da("0x7d")](da("0x2a"))?i[da("0x41")](da("0x2a"))-1:0;n=e<n?e:n,o=e+c>o?e+c:o,r=a<r?a:r,s=a+x>s?a+x:s}return{minRow:n,maxRow:o,minColumn:r,maxColumn:s}}_setupColumnsRowsFixing(){const e=this.editor,t=e.plugins[da("0x70")](da("0x5d")),n=e[da("0x5b")][da("0x70")](da("0x7f"));this[da("0xd")]=new Set,e.model.document.on("change:data",(()=>{const n=Array[da("0x73")](e[da("0x0")][da("0x61")][da("0x12")][da("0x4d")]());for(const{name:e,data:o}of n){const{group:n,id:r,subType:s}=t[da("0x3e")](e);if("suggestion"!=n)continue;if(null!=o.oldRange)continue;const i=t[da("0x74")](r);this[da("0x1e")][da("0x64")](s)&&this[da("0xd")][da("0x20")](i)}}),{priority:da("0x45")});const o=(e,t)=>{let o=!1;const r=t[da("0x47")](e),s=e[da("0x30")](da("0x69")),i=n[da("0x53")](e);for(const t of this[da("0xd")]){const n=t[da("0x6f")],a=n[da("0x11")]("tablePaste"),c=n.substr(a?10:5),x=c[da("0x17")](),l=x[da("0x29")](0,3)+"span",u="min"+c,d=da("0x3a")+c;if(!t[da("0x85")])continue;if(s!=t[da("0xc")]()[da("0x24")].findAncestor(da("0x69")))continue;if(t[da("0x52")](r))continue;const g=e[da("0x7d")](l)?e[da("0x41")](l)-1:0,m=this[da("0x35")](t),f=m[u],h=m[d];f<=i[x]&&i[x]+g<=h&&(t[da("0x22")](r),o=!0)}return o};e.model[da("0x61")].registerPostFixer((t=>{let n=!1;for(const r of e[da("0x0")][da("0x61")][da("0x12")][da("0x83")]())if(da("0x88")==r[da("0x4f")])if(da("0x6")==r[da("0x1d")])for(const e of r.position[da("0x4a")][da("0x18")]())n=n||o(e,t);else da("0x2d")==r.name&&(n=n||o(r[da("0x3")][da("0x4a")],t));return n}))}_getSuggestionCoords(e){return this[da("0x6e")](e[da("0x42")]().map((e=>e[da("0x24")].nodeAfter)))}}function ma(e){return Array[da("0x73")](new Set(e).values())}const fa=["commands","TableUtils","length","author","trackChanges","add","deletion","getCellLocation","model","from","mergeTableCellRight","change","document","highest","_tablePostFixingSubtypes","selection","format","table","cell","get","isInContent","_suggestionFactory","has","*Split cell:* horizontally","stop","getSuggestions","getSelectionAffectedTableCells","$graveyard","execute","createTableWalker","splitTableCellVertically","findAncestor","push","mergeTableCellUp","root","mergeTableCellDown","TrackChangesEditing","size","getFirstPosition","mergeTableCellLeft","registerCustomCallback","_areMergableCells","mergeTableCells","type","accept","getRanges","splitTableCellHorizontally","set:isEnabled","locale","getAncestors","plugins","filter","createRangeOn","_descriptionFactory","_areSelectedCellsMergable","insertion","markMultiRangeBlockFormat","formatBlock","subType","enableCommand","value","editor","afterInit","element","setSelection","detach","containsRange","commandName","fromRange","tableCell","map","TableEditing","registerDescriptionCallback","refresh","_isForcedDefaultExecutionBlock","*Split cell:* vertically","find"];var ha,ka;ha=fa,ka=378,function(e){for(;--e;)ha.push(ha.shift())}(++ka);const ba=function(e,t){return fa[e-=0]};class pa extends e.Plugin{static get requires(){return[ga]}[ba("0x45")](){const e=this[ba("0x44")],t=e[ba("0xf")][ba("0x13")][ba("0x16")],n=e[ba("0x37")];if(!e[ba("0x39")][ba("0x1d")](ba("0x1")))return;const o=e[ba("0x39")][ba("0x1a")](ba("0x2b")),r=e.plugins[ba("0x1a")]("TableUtils"),s=e.plugins.get(ga);s[ba("0x15")][ba("0x27")](ba("0x31")),o[ba("0x42")]("mergeTableCells",(()=>{const t=r[ba("0x21")](e[ba("0xf")][ba("0x13")][ba("0x16")]);e[ba("0xf")][ba("0x12")]((()=>{o[ba("0x3f")](t,{commandName:ba("0x31"),commandParams:[]},[],ba("0x31"))}))})),e[ba("0x7")].get(ba("0x31")).on(ba("0x23"),((t,n)=>{e[ba("0x7")][ba("0x1a")](ba("0xb"))[ba("0x43")]&&(n[ba("0x9")]>0&&n[n[ba("0x9")]-1]&&n[n.length-1].forceDefaultExecution||o[ba("0x4")]||this[ba("0x3d")]()||t[ba("0x1f")]())}),{priority:ba("0x14")});for(const t of["mergeTableCellUp",ba("0x11"),"mergeTableCellDown",ba("0x2e")]){const n=e[ba("0x7")][ba("0x1a")](t);o.enableCommand(t,(()=>{const t=e[ba("0xf")][ba("0x13")].selection.getFirstPosition()[ba("0x38")]()[ba("0x6")]((e=>e.is("element","tableCell"))),r=n[ba("0x43")];e.model[ba("0x12")]((()=>{o.markMultiRangeBlockFormat([t,r],{commandName:"mergeTableCells",commandParams:[]},[],ba("0x31"))}))}))}for(const t of[ba("0x25"),ba("0x35")]){const n=e[ba("0x7")][ba("0x1a")](t);o[ba("0x42")](t,(()=>{const s=r[ba("0x21")](e[ba("0xf")].document[ba("0x16")])[0],i=s[ba("0x26")](ba("0x18")),{column:a,row:c}=r[ba("0xe")](s);let x=[];if("horizontally"==n.direction){const e=r[ba("0x24")](i,{startRow:c,endRow:c,includeAllSlots:!0});x=Array[ba("0x10")](e).map((e=>e[ba("0x19")]))}else{const e=r[ba("0x24")](i,{column:a,includeAllSlots:!0});x=Array[ba("0x10")](e)[ba("0x0")]((e=>e.cell))}e[ba("0xf")].change((e=>{o.markBlockFormat(e[ba("0x3b")](s),{commandName:t,commandParams:[]},x,t)}))}))}o[ba("0x3c")][ba("0x2")]((e=>{const{data:t}=e;if(t)return ba("0x31")==t[ba("0x4a")]?{type:ba("0x17"),content:Yo(n,"*Merge cells*")}:void 0})),o[ba("0x3c")][ba("0x2")]((e=>{const{data:t}=e;if(t)return"splitTableCellVertically"==t.commandName?{type:ba("0x17"),content:Yo(n,ba("0x5"))}:ba("0x35")==t.commandName?{type:ba("0x17"),content:Yo(n,ba("0x1e"))}:void 0}));const a=s._acceptFormatSuggestionCallbackFactory();for(const e of[ba("0x28"),"mergeTableCellRight",ba("0x2a"),ba("0x2e")])o[ba("0x1c")].registerCustomCallback(ba("0x40"),e,ba("0x33"),a);for(const e of[ba("0x25"),"splitTableCellHorizontally"])o[ba("0x1c")][ba("0x2f")](ba("0x40"),e,"accept",a);o[ba("0x1c")][ba("0x2f")](ba("0x40"),ba("0x31"),ba("0x33"),(n=>{e[ba("0xf")].change((o=>{const r=Array[ba("0x10")](t[ba("0x34")]())[ba("0x0")]((e=>i.LiveRange[ba("0x4b")](e)));o.setSelection(n),e[ba("0x7")].get(ba("0x31"))[ba("0x3")](),e[ba("0x23")](ba("0x31"),{forceDefaultExecution:!0});const s=r[ba("0x3a")]((e=>ba("0x22")!=e[ba("0x29")].rootName));s[ba("0x9")]>0&&o[ba("0x47")](s);for(const e of r)e[ba("0x48")]()}))}));for(const t of[ba("0x28"),ba("0x2a"),ba("0x2e"),ba("0x11")]){const n=e[ba("0x7")][ba("0x1a")](t);n.on(ba("0x36"),((t,o,r)=>{if(r){const o=e.model[ba("0x13")].selection[ba("0x2d")]()[ba("0x38")]()[ba("0x6")]((e=>e.is(ba("0x46"),ba("0x4c"))));this._areMergableCells(n[ba("0x43")],o)||(t.return=!1,t[ba("0x1f")]())}}),{priority:"low"})}}[ba("0x3d")](){const e=this[ba("0x44")][ba("0x7")][ba("0x1a")](ba("0x31")),t=this[ba("0x44")][ba("0x39")][ba("0x1a")](ba("0x8"));if(!e.isEnabled)return!1;const n=t[ba("0x21")](this[ba("0x44")][ba("0xf")].document[ba("0x16")]);for(const e of n)for(const t of n)if(e!=t&&!this[ba("0x30")](e,t))return!1;return!0}_areMergableCells(e,t){const n=this[ba("0x44")][ba("0x39")][ba("0x1a")](ba("0x2b")),o=this[ba("0x44")][ba("0xf")][ba("0x3b")](e),r=this.editor[ba("0xf")][ba("0x3b")](t),s=new Set,i=new Set;for(const e of n[ba("0x20")]())if((ba("0x3e")==e[ba("0x32")]||ba("0xd")==e[ba("0x32")]||"mergeTableCells"==e[ba("0x41")])&&e[ba("0x1b")])for(const t of e[ba("0x34")]())t[ba("0x49")](o,!0)&&s[ba("0xc")](e[ba("0x32")]+":"+e[ba("0xa")].id),t.containsRange(r,!0)&&i[ba("0xc")](e[ba("0x32")]+":"+e[ba("0xa")].id);if(s[ba("0x2c")]!=i[ba("0x2c")])return!1;for(const e of s)if(!i.has(e))return!1;return!0}}const _a=["stop","removeAttribute","from","markerNameToElements","createRange","commandName","getSuggestion","options","value","activeMarkers","plugins","editing","writer","item","index","first","getAttribute","editor","childCount","ck-suggestion-marker--active","showSuggestionHighlights","addClass","createPositionAfter","ck-suggestion-marker-","headingColumns","TrackChangesEditing","consume","forceValue","parent","mapper","getCellLocation","format","document","getColumnIndexes","registerDescriptionCallback","data","downcastDispatcher","bindElementToMarker","registerCustomCallback","FORMAT_HEADER_ROW","FORMAT_REGULAR_COLUMN","markBlockFormat","toViewElement","TableUtils","cell","setAttribute","formatBlock","last","end","commands","setTableColumnHeader","_acceptFormatSuggestionCallbackFactory","_suggestionFactory","markerName","removeClass","has","get","_descriptionFactory","removeMarker:suggestion","createPositionBefore","unbindElementFromMarkerName","getChild","setTableRowHeader","commandParams","markerRange","start","TableEditing","isBefore","locale","selection","data-suggestion","FORMAT_REGULAR_ROW","nodeAfter","change","nodeBefore","highest","addMarker:suggestion","enableCommand","getSelectionAffectedTableCells","includes","model","_splitMarkerName"];var va,Ea;va=_a,Ea=435,function(e){for(;--e;)va.push(va.shift())}(++Ea);const ya=function(e,t){return _a[e-=0]};class Ta extends e.Plugin{static get requires(){return[ga]}afterInit(){const e=this[ya("0x4a")];if(!e[ya("0x43")][ya("0x1e")](ya("0x29")))return;const t=e[ya("0x2b")],n=e[ya("0x43")][ya("0x1f")](ya("0x0")),o=e.plugins.get(ya("0x12")),r=e[ya("0x43")][ya("0x1f")](ga);function s({showActiveMarker:e=!0,setDataAttribute:t=!0}={}){return(r,s,i)=>{const{type:a,id:c}=n[ya("0x38")](s.markerName),x=n[ya("0x3f")](c);if(!x[ya("0xa")]||ya("0x19")!=x[ya("0xa")][ya("0x3e")])return;if(s[ya("0x46")])return void r[ya("0x39")]();if(!i.consumable[ya("0x1")](s[ya("0x27")],r.name))return;const l=s[ya("0x27")][ya("0x28")][ya("0x2f")],u=s[ya("0x27")][ya("0x17")][ya("0x31")],d=l[ya("0x3")][ya("0x3")],{column:g}=o.getCellLocation(l),{column:m}=o[ya("0x5")](u);for(let r=g;r<=m;r++){const x=o.createTableWalker(d,{column:r,includeAllSlots:!1});for(const o of x){const r=o[ya("0x13")],x=i[ya("0x4")][ya("0x11")](r);i[ya("0x45")][ya("0x4e")](ya("0x50")+a,x),t&&i[ya("0x45")][ya("0x14")]("data-suggestion",c,x),i[ya("0x4")][ya("0xc")](x,s[ya("0x1c")]),e&&(n[ya("0x42")][ya("0x36")](s[ya("0x1c")])?i[ya("0x45")][ya("0x4e")](ya("0x4c"),x):i[ya("0x45")][ya("0x1d")]("ck-suggestion-marker--active",x))}}}}n.enableCommand(ya("0x25"),((t,r)=>{const s=o[ya("0x35")](e[ya("0x37")].document.selection),i=o.getRowIndexes(s),a=s[0].findAncestor("table"),c=a[ya("0x49")]("headingRows")||0,x=r&&null!==r.forceValue?r.forceValue:!e[ya("0x18")][ya("0x1f")](ya("0x25"))[ya("0x41")],l=x?i[ya("0x16")]:i[ya("0x48")],u=a[ya("0x24")](l);let d;if(x){const t=a.getChild(c);if(u[ya("0x47")]<t[ya("0x47")])return;d=e[ya("0x37")].createRange(e.model[ya("0x22")](t[ya("0x24")](0)),e.model[ya("0x4f")](u[ya("0x24")](u[ya("0x4b")]-1)))}else{const t=a.getChild(c-1);if(!t)return;d=e.model.createRange(e.model[ya("0x22")](u.getChild(0)),e[ya("0x37")].createPositionAfter(t[ya("0x24")](t.childCount-1)))}e[ya("0x37")][ya("0x30")]((()=>{n[ya("0x10")](d,{commandName:"setTableRowHeader",commandParams:[{forceValue:x}]},[],ya("0x25"))}))})),n[ya("0x34")](ya("0x19"),((t,o)=>{const r=e[ya("0x43")][ya("0x1f")](ya("0x12")),s=r[ya("0x35")](e[ya("0x37")][ya("0x7")][ya("0x2c")]),i=r[ya("0x8")](s),a=s[0].findAncestor("table"),c=a.getAttribute(ya("0x51"))||0,x=o&&null!==o[ya("0x2")]?o[ya("0x2")]:!e[ya("0x18")][ya("0x1f")](ya("0x19")).value;let l;const u=a[ya("0x24")](0),d=x?i[ya("0x16")]:i[ya("0x48")],g=r.createTableWalker(a,{startRow:0,column:d,includeAllSlots:!1}),m=Array[ya("0x3b")](g)[0][ya("0x13")];if(x){const t=u.getChild(c);if(m[ya("0x2a")](t))return;l=e[ya("0x37")][ya("0x3d")](e[ya("0x37")][ya("0x22")](t),e[ya("0x37")][ya("0x4f")](m))}else{const t=u.getChild(c-1);if(!t)return;l=e[ya("0x37")][ya("0x3d")](e[ya("0x37")].createPositionBefore(m),e[ya("0x37")].createPositionAfter(t))}e.model.change((()=>{n.markBlockFormat(l,{commandName:ya("0x19"),commandParams:[{forceValue:x}]},[],ya("0x19"))}))})),e[ya("0x44")][ya("0xb")].on("addMarker:suggestion",s(),{priority:ya("0x32")}),e[ya("0xa")].downcastDispatcher.on(ya("0x33"),((e,t,n)=>{n[ya("0x40")][ya("0x4d")]&&s({showActiveMarker:!1,setDataAttribute:!1})(e,t,n)}),{priority:ya("0x32")}),e[ya("0x44")].downcastDispatcher.on(ya("0x21"),((e,t,o)=>{const{type:r,id:s}=n[ya("0x38")](t[ya("0x1c")]),i=n[ya("0x3f")](s);if(!i[ya("0xa")]||ya("0x19")!=i[ya("0xa")].commandName)return;const a=o[ya("0x4")][ya("0x3c")](t[ya("0x1c")]);if(a)for(const e of a)o.writer[ya("0x1d")](ya("0x50")+r,e),o[ya("0x45")][ya("0x1d")]("ck-suggestion-marker--active",e),o.writer[ya("0x3a")](ya("0x2d"),e),o[ya("0x4")][ya("0x23")](e,t[ya("0x1c")])}),{priority:ya("0x32")}),n[ya("0x20")][ya("0x9")]((e=>{const{data:n}=e;if(n){if("setTableRowHeader"==n.commandName){const e=n[ya("0x26")][0][ya("0x2")];return o(Yo(t,ya(e?"0xe":"0x2e")))}if(ya("0x19")==n[ya("0x3e")]){const e=n.commandParams[0][ya("0x2")];return o(Yo(t,e?"FORMAT_HEADER_COLUMN":ya("0xf")))}}function o(e){return{type:ya("0x6"),content:Yo(t,"*Format:* %0",e)}}}));const i=r[ya("0x1a")]();n._suggestionFactory[ya("0xd")](ya("0x15"),"setTableRowHeader","accept",i),n[ya("0x1b")].registerCustomCallback(ya("0x15"),ya("0x19"),"accept",i)}}const Ca=["root","markerAttributes","suggestion:formatBlock:tablePasteCell","tablePaste","stop","differ","column","elementToElement","insertRows","keys","$graveyard","editingDowncast","registerCustomCallback","tableCellBorderColor","isEqual","markerName","previous","forceDefaultExecution","tablePasteChainId","commands","markMultiRangeInsertion","getSuggestions","getChild","start","endRow","_suggestionFactory","tableCell","setAttribute","removeMarker","end","tableCellSuggestion","locale","markMultiRangeDeletion","suggestionUnloaded","suggestion-td","_getCoordsForCells","columnInsertionRanges","rowInsertionRanges","cell","getMarkers","author","insertContent","rootName","filter","position","getItems","plugins","_splitMarkerName","setAttributes","removeMarkers","findAncestor","oldRange","insert","deletion","getShiftedBy","registerDescriptionCallback","options","ck-suggestion-marker","attributes","trackChanges","removeRows","subType","tableCellBackgroundColor","first","row","markerToHighlight","find","insertColumns","getRows","content","rows","model","tablePasteRow","activeMarkers","length","editor","getAttributes","tablePasteColumn","change","getColumnIndexes","from","markMultiRangeBlockFormat","createTableWalker","deletionRanges","set","getSelectionAffectedTableCells","register","paragraph","*Replace table cells*","listenTo","suggestionLoaded","containsRange","add","push","some","remove","low","createRangeOn","redo","hasSuggestion","for","_tablePostFixingSubtypes","tableCellBorderStyle","fill","documentSelection","endColumn","batch","selection","registerPostFixer","_replaceTableSlotCell","getSuggestionCallback","insertion","getChangedMarkers","getRange","getRowIndexes","getContainedElement","entries","high","discard","map","tableCellPadding","previousSibling","conversion","_createdBatches","createRange","getChanges","document","columnInsertionIndexes","getRanges","TableClipboard","formatBlock","afterInit","getChildren","TableUtils","getAllAdjacentSuggestions","rowInsertionIndexes","fromEntries","cells","get","isInContent","updateMarker","next","last","startsWith","element","name","createRangeIn","suggestion","Users","TrackChangesEditing","tableCellVerticalAlignment","value","_descriptionFactory","tablePasteCell","includes","ck-suggestion-marker--active","isEmpty","accept","newRange","tableCellBorderWidth","table","type","has","columns","move"];var wa,Aa;wa=Ca,Aa=455,function(e){for(;--e;)wa.push(wa.shift())}(++Aa);const Ra=function(e,t){return Ca[e-=0]},Ia=[Ra("0x22"),Ra("0x35"),Ra("0x8e"),"tableCellHorizontalAlignment",Ra("0x19"),Ra("0x66"),Ra("0xa0")],Sa=Object[Ra("0xb")](Ia[Ra("0x9f")]((e=>[e,null])));class Ma extends e.Plugin{static get requires(){return[ga]}[Ra("0x6")](){const e=this[Ra("0x73")];if(!e[Ra("0x56")].has("TableClipboard"))return;const n=e[Ra("0x56")].get(Ra("0x18")),o=e[Ra("0x56")][Ra("0xd")](Ra("0x8")),r=e[Ra("0x56")].get(ga),s=e[Ra("0x56")][Ra("0xd")](Ra("0x4"));r[Ra("0x8d")][Ra("0x85")](Ra("0x70"),"tablePasteColumn"),e.model.schema[Ra("0x7e")](Ra("0x46"),{allowIn:"tableCell",allowContentOf:Ra("0x42"),isLimit:!0}),e[Ra("0xa2")][Ra("0x2f")]({model:Ra("0x46"),view:"suggestion-td"});let i=null;e.model.on(Ra("0x51"),((r,a)=>{const[c,x]=a,l=a[a[Ra("0x72")]-1];l&&l[Ra("0x39")]||n._isForcedDefaultExecutionBlock||this[Ra("0x73")].commands[Ra("0xd")](Ra("0x63"))[Ra("0x1a")]&&function(e,t,n,o,r){if(t&&!t.is(Ra("0x90")))return!1;const s=r.getTableIfOnlyTableInContent(e,n);if(!s||!La(s,null,o))return!1;const i=o[Ra("0x7d")](n[Ra("0x1")][Ra("0x93")]);if(!i.length)return!1;const a=i[0][Ra("0x5a")](Ra("0x23")),c=o[Ra("0x9a")](i),x=o[Ra("0x77")](i),l={startRow:c[Ra("0x67")],endRow:c[Ra("0x11")],startColumn:x.first,endColumn:x[Ra("0x11")]};return 1==i[Ra("0x72")]&&(l[Ra("0x40")]+=o[Ra("0x6c")](s)-1,l[Ra("0x91")]+=o.getColumns(s)-1),La(a,l,o)}(c,x,e.model,o,s)&&(r[Ra("0x2c")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},e.model[Ra("0x76")]((()=>{e[Ra("0x6f")].insertContent(a[0],a[1],a[2],a[3],{forceDefaultExecution:!0});const o=(0,t.uid)(),{rowInsertionRanges:r,columnInsertionRanges:s,insertionRanges:c,deletionRanges:x,cells:l}=i;r[Ra("0x72")]&&n[Ra("0x3c")](r,Ra("0x70"),{tablePasteChainId:o}),s[Ra("0x72")]&&n[Ra("0x3c")](s,"tablePasteColumn",{tablePasteChainId:o}),c[Ra("0x72")]&&n.markMultiRangeInsertion(c,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0}),x.length&&n[Ra("0x48")](x,Ra("0x2b"),{tablePasteChainId:o,skipNestingCheck:!0});const u=n[Ra("0x79")](l[Ra("0x9f")]((({element:e})=>e)),{formatGroupId:(0,t.uid)()},[],Ra("0x1c"),{tablePasteChainId:o});if(u){const t=u.getMarkers(),n=[];for(const{element:o,attributes:r}of l){if(!r)continue;const s=e.model[Ra("0x89")](o),i=t[Ra("0x6a")]((e=>e.getRange()[Ra("0x36")](s)));i&&n[Ra("0x85")]([i.name,r])}n[Ra("0x72")]&&u[Ra("0x43")]("markerAttributes",Object[Ra("0xb")](n))}i=null})))}),{priority:t.priorities.high+10}),e[Ra("0x56")][Ra("0xd")](Ra("0x4")).on(Ra("0x95"),((e,t)=>{const[n,o,,r]=t;if(!i)return;e[Ra("0x2c")]();const s=n[Ra("0x4e")],a=o,c=Na(s),x=Na(a);e.return=s;let l=null,u=null;if(x||c)if(c&&!x){r[Ra("0x87")](s[Ra("0x3e")](0));for(const e of Array[Ra("0x78")](a[Ra("0x7")]()))r[Ra("0x5c")](e,s,"end");const e=i[Ra("0xa")][Ra("0x1d")](n[Ra("0x68")]),t=i.columnInsertionIndexes.includes(n[Ra("0x2e")]);e||t||(l=r[Ra("0x15")](s))}else x&&!c&&(u=r[Ra("0x15")](s));else{const e=r.createElement(Ra("0x46")),t=r.createElement(Ra("0x46"));r.wrap(r[Ra("0x15")](s),t),r[Ra("0x5c")](e,s,0);for(const t of Array[Ra("0x78")](a[Ra("0x7")]()))r[Ra("0x5c")](t,e,Ra("0x45"));l=r[Ra("0x89")](e),u=r[Ra("0x89")](t)}const d=Array[Ra("0x78")](a[Ra("0x74")]())[Ra("0x53")]((([e])=>Ia[Ra("0x1d")](e)));i[Ra("0xc")][Ra("0x85")]({element:s,attributes:d[Ra("0x72")]?Object.fromEntries(d):null}),l&&i.insertionRanges.push(l),u&&i[Ra("0x7b")][Ra("0x85")](u)}),{priority:Ra("0x9d")}),o.on(Ra("0x6b"),((t,n)=>{const[r,s={}]=n;if(!i)return;const a=s.at||0,c=s[Ra("0x26")]||1;i[Ra("0x2")]=new Array(c)[Ra("0x8f")](a)[Ra("0x9f")](((e,t)=>e+t));for(const{cell:t}of o[Ra("0x7a")](r,{startColumn:a,endColumn:a+c-1}))i[Ra("0x4c")][Ra("0x85")](e[Ra("0x6f")][Ra("0x89")](t))}),{priority:Ra("0x88")}),o.on(Ra("0x30"),((t,n)=>{const[r,s={}]=n;if(!i)return;const a=s.at||0,c=s[Ra("0x6e")]||1;i[Ra("0xa")]=new Array(c)[Ra("0x8f")](a)[Ra("0x9f")](((e,t)=>e+t));for(const{cell:t}of o.createTableWalker(r,{startRow:a,endRow:a+c-1}))i[Ra("0x4d")][Ra("0x85")](e.model.createRangeOn(t))}),{priority:Ra("0x88")}),n[Ra("0x1b")][Ra("0x5f")]((t=>{if(t[Ra("0x65")]&&t[Ra("0x65")][Ra("0x12")](Ra("0x2b")))return t.previous?{}:{type:Ra("0x97"),content:Yo(e[Ra("0x47")],Ra("0x80"))}}));const a=()=>{};for(const e of[Ra("0x2b"),"tablePasteColumn",Ra("0x70"),Ra("0x1c")])n[Ra("0x41")][Ra("0x34")](Ra("0x97"),e,"join",a),n[Ra("0x41")].registerCustomCallback(Ra("0x5d"),e,"join",a);n._suggestionFactory.registerCustomCallback(Ra("0x5"),Ra("0x1c"),"discard",a),n[Ra("0x41")].registerCustomCallback("formatBlock",Ra("0x1c"),Ra("0x20"),((t,n,o)=>{const r=t[Ra("0x9f")]((e=>e.getContainedElement())).filter((e=>e)),s=new Map(r[Ra("0x9f")]((e=>[e,null])));if(i)for(const{element:e,attributes:t}of i[Ra("0xc")])t&&s[Ra("0x7c")](e,t);else if(o&&o.markerAttributes)for(const[t,n]of Object[Ra("0x9c")](o[Ra("0x29")])){const o=e.model.markers.get(t),r=o?o[Ra("0x99")]().getContainedElement():null;r&&s.set(r,n)}e[Ra("0x6f")][Ra("0x76")]((e=>{for(const[t,n]of s)e[Ra("0x58")]({...Sa,...n},t)}))}));const c=(t,o)=>{n[Ra("0x41")][Ra("0x34")](t,Ra("0x2b"),o,((r,s,i)=>{e[Ra("0x6f")].change((e=>{const a=[];for(const e of r){const t=e[Ra("0x3f")].nodeAfter;t.is(Ra("0x13"),Ra("0x46"))&&a[Ra("0x85")](t)}n[Ra("0x41")][Ra("0x96")](t,null,o)(r,s,i);for(const t of a)Ra("0x32")!=t[Ra("0x28")][Ra("0x52")]&&e.unwrap(t)}))}))};c("insertion",Ra("0x20")),c(Ra("0x97"),Ra("0x9e")),c("deletion",Ra("0x20")),c(Ra("0x5d"),Ra("0x9e")),n[Ra("0x41")][Ra("0x34")](Ra("0x97"),Ra("0x70"),Ra("0x9e"),(e=>{const t=e[Ra("0x9f")]((e=>e[Ra("0x9b")]())),n=t[0][Ra("0x5a")](Ra("0x23")),{minRow:s,maxRow:i}=r[Ra("0x4b")](t);o[Ra("0x64")](n,{at:s,rows:i-s+1})})),n._suggestionFactory[Ra("0x34")]("insertion",Ra("0x75"),Ra("0x9e"),(e=>{const t=e.map((e=>e.getContainedElement())),n=t[0][Ra("0x5a")]("table"),{minColumn:s,maxColumn:i}=r[Ra("0x4b")](t);o.removeColumns(n,{at:s,columns:i-s+1})}));const x=(e,t)=>{if(!t.subType||!t[Ra("0x65")][Ra("0x12")](Ra("0x2b")))return;const o=t.attributes[Ra("0x3a")],r=n[Ra("0x3d")]()[Ra("0x53")]((e=>e[Ra("0xe")]&&e[Ra("0x62")]&&e.attributes[Ra("0x3a")]==o));r[Ra("0x72")]&&t.getAllAdjacentSuggestions()[Ra("0x72")]!=r[Ra("0x72")]&&r.reduce(((e,t)=>(e[Ra("0x10")]=t,t[Ra("0x38")]=e,t)))};function l(e,{showActiveMarker:t=!0}={}){const{id:o}=n._splitMarkerName(e.markerName),r=[Ra("0x61"),"ck-suggestion-marker-insertion"],s=n[Ra("0x71")][Ra("0x1d")](e[Ra("0x37")]);return s&&r[Ra("0x85")](Ra("0x1e")),{classes:r,attributes:{"data-suggestion":o},priority:s&&t?3010:3e3}}n.on(Ra("0x82"),x,{priority:Ra("0x9d")}),n.on(Ra("0x49"),x,{priority:"high"}),e[Ra("0x6f")][Ra("0x1")][Ra("0x94")]((()=>{let t=!1;const o=Array[Ra("0x78")](e[Ra("0x6f")][Ra("0x1")].differ[Ra("0x98")]());for(const{name:r,data:s}of o){const{group:o,type:i,id:a}=n[Ra("0x57")](r);if(Ra("0x16")!=o||Ra("0x5d")!=i||s[Ra("0x5b")])continue;if(!n[Ra("0x8b")](a))continue;const c=n.getSuggestion(a)[Ra("0x3")](),x=e[Ra("0x56")].get(Ra("0x17")).me;for(const e of n.getSuggestions())if(e[Ra("0xe")]&&e[Ra("0x50")]==x&&Ra("0x5")==e[Ra("0x24")]&&"tablePasteCell"==e[Ra("0x65")]&&e.getRanges().every((e=>c[Ra("0x86")]((t=>t[Ra("0x83")](e,!0))))))for(const n of e[Ra("0x9")]())n[Ra("0xe")]&&(n[Ra("0x9e")](),t=!0)}return t})),e[Ra("0x6f")].document[Ra("0x94")]((t=>{const o=e[Ra("0x3b")][Ra("0xd")](Ra("0x8a"));if(!o||!o[Ra("0xa3")][Ra("0x25")](t[Ra("0x92")]))return!1;let r=!1;const s=e.plugins[Ra("0xd")](Ra("0x17")).me,i=e.model.document[Ra("0x2d")][Ra("0x0")](),a=Array[Ra("0x78")](e.model[Ra("0x1")][Ra("0x2d")][Ra("0x98")]())[Ra("0x53")]((({name:e,data:t})=>{const{group:o,subType:r,authorId:i}=n[Ra("0x57")](e);return"suggestion"==o&&Ra("0x2b")==r&&i==s.id&&!t[Ra("0x5b")]}));for(const e of i){if(Ra("0x5c")!=e[Ra("0x24")]||Ra("0x46")!=e[Ra("0x14")]||1!=e[Ra("0x72")])continue;const n=t[Ra("0xa4")](e.position,e[Ra("0x54")][Ra("0x5e")](1));if(!a[Ra("0x6a")]((({data:e})=>e[Ra("0x21")][Ra("0x36")](n))))for(const{name:e,data:o}of a)if(n.containsRange(o.newRange)){t[Ra("0xf")](e,{range:n}),r=!0;break}}return r})),e.model.document[Ra("0x94")]((t=>{let o=!1;const r=e.plugins[Ra("0xd")](Ra("0x17")).me,s=n[Ra("0x3d")]().filter((e=>e[Ra("0xe")]&&e.author==r)),i=new Set,a=new Set;for(const e of s)if("tablePaste"==e[Ra("0x65")])for(const t of e[Ra("0x4f")]()){const n=t[Ra("0x99")]()[Ra("0x9b")]();if(n)if(n.is(Ra("0x13"),Ra("0x46"))&&Na(n)){e[Ra("0x44")](t[Ra("0x14")]),i[Ra("0x84")](n),o=!0;const r=n.nextSibling,s=n[Ra("0xa1")],c=r&&r.is(Ra("0x13"),Ra("0x46")),x=s&&s.is(Ra("0x13"),Ra("0x46"));c&&!i.has(r)&&a[Ra("0x84")](r),x&&!i.has(s)&&a[Ra("0x84")](s)}else n.is(Ra("0x13"),"paragraph")&&n[Ra("0x1f")]&&(e[Ra("0x44")](t[Ra("0x14")]),o=!0)}else if(Ra("0x1c")==e.subType){if(!e[Ra("0x62")]||!e.attributes.tablePasteChainId)continue;const t=e.attributes[Ra("0x29")];if(t&&Object[Ra("0x31")](t)[Ra("0x72")])continue;const n=e[Ra("0x62")][Ra("0x3a")];let r=!0,i=!0;for(const t of s)if(t[Ra("0x65")]&&t[Ra("0x65")][Ra("0x12")](Ra("0x2b"))){if(!t[Ra("0x62")][Ra("0x3a")]){i=!1;break}if(t.id!=e.id&&t[Ra("0x62")].tablePasteChainId==n){r=!1;break}}i&&r&&(e[Ra("0x59")](),o=!0)}for(const e of i)t[Ra("0x87")](e);for(const e of a)t.unwrap(e);return o})),e[Ra("0xa2")][Ra("0x8c")](Ra("0x33"))[Ra("0x69")]({model:Ra("0x2a"),view:l,converterPriority:Ra("0x9d")}),e.conversion[Ra("0x8c")]("dataDowncast")[Ra("0x69")]({model:Ra("0x2a"),view:(e,t)=>{if(t[Ra("0x60")].showSuggestionHighlights)return l(e,{showActiveMarker:!1})},converterPriority:"high"});const u=e.editing.view;this[Ra("0x81")](u.document,"clipboardOutput",((e,t)=>{const n=[];for(const e of u.createRangeIn(t[Ra("0x6d")])[Ra("0x55")]())e.is("element",Ra("0x4a"))&&n.push(e);u[Ra("0x76")]((e=>{for(const t of n)e[Ra("0x27")](e.createRangeIn(t),e.createPositionBefore(t)),e[Ra("0x87")](t)}))}))}}function Na(e){if(e.isEmpty)return!0;const t=e[Ra("0x3e")](0);return t.is(Ra("0x13"),Ra("0x7f"))&&t[Ra("0x1f")]}function La(e,t={},n){for(const{isAnchor:o,cellHeight:r,cellWidth:s}of n[Ra("0x7a")](e,{includeAllSlots:!0,...t}))if(!o||1!=r||1!=s)return!1;return!0}const Oa=["document","_descriptionFactory","has","createRange","_splitMarkerName","getChangedMarkers","Title","forward","ELEMENT_TITLE","TrackChangesEditing","model","get","registerElementLabel","from","start","isCollapsed","getNearestSelectionRange","schema","updateMarker","end","newRange","title-content","isTouching","removeMarker","nodeBefore"];var Fa,Pa;Fa=Oa,Pa=322,function(e){for(;--e;)Fa.push(Fa.shift())}(++Pa);const Da=function(e,t){return Oa[e-=0]};class Ba extends e.Plugin{afterInit(){const e=this.editor;if(!e.plugins[Da("0x5")](Da("0x9")))return;const t=e.plugins[Da("0xe")](Da("0xc"));t[Da("0x4")][Da("0xf")](Da("0x18"),(()=>Yo(e.locale,Da("0xb")))),e.model[Da("0x3")].registerPostFixer((n=>{let o=!1;const r=Array[Da("0x10")](e[Da("0xd")].document.differ[Da("0x8")]());for(const{name:s,data:i}of r){const{group:r}=t[Da("0x7")](s);if("suggestion"!==r||!i[Da("0x17")])continue;const a=i.newRange,c=a[Da("0x16")][Da("0x2")];if(!c||!c.is("element","title-content"))continue;if(!a[Da("0x11")][Da("0x0")](a[Da("0x16")]))continue;const x=e[Da("0xd")][Da("0x14")][Da("0x13")](a.end,Da("0xa"));if(x&&x[Da("0x12")]){const e=n[Da("0x6")](a[Da("0x11")],x.start);e.isEqual(a)||(n[Da("0x15")](s,{range:e}),o=!0)}o||(n[Da("0x1")](s),o=!0)}return o}))}}const ja=["has","undo","UndoEditing","redo","TrackChangesEditing","editor","get","afterInit","enableCommand"];var Ua,Ga;Ua=ja,Ga=143,function(e){for(;--e;)Ua.push(Ua.shift())}(++Ga);const Ha=function(e,t){return ja[e-=0]};class Va extends e.Plugin{[Ha("0x8")](){const e=this[Ha("0x6")],t=e.plugins[Ha("0x7")](Ha("0x5"));e.plugins[Ha("0x1")](Ha("0x3"))&&(t.enableCommand(Ha("0x2")),t[Ha("0x0")](Ha("0x4")))}}const za=["isEnabled","document:write","permissions-set-permissions-invalid-channel-id","enableReadOnlyMode","disableReadOnlyMode","config","collaboration.channelId","context","addCommentThread","get","no-permissions","commands","find","setPermissions","plugins","clearForceDisabled","editors","Permissions","pluginName","CommentsRepository","CommentsOnly","includes","noPermissions","comment:write"];var Wa,Ka;Wa=za,Ka=471,function(e){for(;--e;)Wa.push(Wa.shift())}(++Ka);const qa=function(e,t){return za[e-=0]};class Xa extends(null){static get[qa("0x3")](){return qa("0x2")}[qa("0x16")](e,t){let n;if(t||(t=this.context.config[qa("0x12")](qa("0xf"))),this[qa("0x10")][qa("0xe")][qa("0x12")](qa("0xf"))==t?n=this[qa("0x10")]:this[qa("0x10")][qa("0x1")]&&(n=this.context[qa("0x1")][qa("0x15")]((e=>e[qa("0xe")][qa("0x12")](qa("0xf"))==t))),!n)throw new _0x88fe2e(qa("0xb"),null);const o=n[qa("0x17")],r=n instanceof _0x292363,s=o.has(qa("0x4"))&&o[qa("0x12")](qa("0x4")),i=o.has(qa("0x5"))&&o.get(qa("0x5")),a=e[qa("0x6")](qa("0xa")),c=e[qa("0x6")]("comment:admin"),x=e.includes(qa("0x8"))||c;if(i&&(i[qa("0x9")]=!a&&x),r&&(a||x&&s?n[qa("0xd")](qa("0x13")):n[qa("0xc")](qa("0x13"))),s){s.switchReadOnly(!x,t),s.setAdminPermissions(c,t);const e=r&&n[qa("0x14")].get(qa("0x11"));e&&(x?e[qa("0x0")]("noPermissions"):e.forceDisabled(qa("0x7")))}}}var Za=n(278),$a=n.n(Za),Ja=n(756),Qa={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$a()(Ja.Z,Qa);Ja.Z.locals;const Ya=["config","licenseKeyTrialLimit:revisions","name","_locale","You are using the trial version of CKEditor 5 collaboration plugin with limited usage. Make sure you will not use it in the production environment.","ck-user__bg-color--","toUpperCase","trial-license-key-reached-limit-time","isAnonymous","string","_getInitial","trim","_getNextColor","getSelectionClass","_licenseKeyCheckInterval","Anonymous","initials","licenseKey","get","_id","destroy","trial-license-key-reached-limit-changes","_myId","context","split","_addAnonymousUser","_lastColor","users-me-missing-user","users","getOperationAuthor","licenseKeyTrialLimit:time","init","includes","length","info","users-me-already-defined","licenseKeyValid","defineMe","addUser","getUser","avatar","licenseKeyTrial","has","users.anonymousUserId","useAnonymousUser","define","licenseKeyInvalid","getMarkerClass","_isAnonymous","locale","requires","users.colorsCount","users-add-invalid-id","licenseKeyTrialLimit:operations","color"];var ec,tc;ec=Ya,tc=455,function(e){for(;--e;)ec.push(ec.shift())}(++tc);const nc=function(e,t){return Ya[e-=0]};class oc extends(null){static get pluginName(){return"Users"}static get[nc("0x23")](){return[_0x283f17]}constructor(e){super(e),e[nc("0x28")][nc("0x1e")]("users.anonymousUserId","anonymous-user"),e[nc("0x28")].define(nc("0x24"),8),this.users=new _0x2c1f19,this[nc("0x2b")]=e[nc("0x22")],this[nc("0x36")]=null,this._lastColor=0,this[nc("0x7")]=null,this.decorate(nc("0xe"))}[nc("0x10")](){const e=this.context;this[nc("0x2")]=e[nc("0x28")][nc("0x3")](nc("0x2"));const t=["licenseKeyTrial","licenseKeyInvalid",nc("0x15"),"licenseKeyTrialLimit:operations",nc("0xf"),nc("0x29")];this[nc("0x36")]=setInterval((()=>{let n;for(const o in e){const r=e[o];if(t[nc("0x11")](r)){delete e[o],n=r;break}}if(nc("0x1f")===n)throw clearInterval(this._licenseKeyCheckInterval),new _0x406b40("invalid-license-key",null);if(nc("0x1a")===n&&console[nc("0x13")](nc("0x2c")),nc("0x26")===n)throw clearInterval(this[nc("0x36")]),new _0x406b40(nc("0x6"),null);if(nc("0xf")===n)throw clearInterval(this._licenseKeyCheckInterval),new _0x406b40(nc("0x2f"),null);if(nc("0x29")===n)throw clearInterval(this._licenseKeyCheckInterval),new _0x406b40("trial-license-key-reached-limit-revisions",null);"licenseKeyValid"===n&&clearInterval(this[nc("0x36")])}),1e3),this[nc("0xa")]()}get me(){return null==this[nc("0x7")]?null:this[nc("0x18")](this._myId)}addUser(e){if(!Object.assign({},e,{color:this._getNextColor()}).id||nc("0x31")!=typeof e.id)throw new _0x406b40(nc("0x25"));if(this[nc("0xd")][nc("0x1b")](e.id))throw new _0x406b40("users-add-duplicated-id",null,{id:e.id});e[nc("0x2a")]=function(e,t=""){return""==t[nc("0x33")]()?_0x448eef(e,nc("0x0")):t}(this._locale,e[nc("0x2a")]);const t=new rc(e);return this[nc("0xd")].add(t),t}[nc("0x18")](e){return this[nc("0xd")][nc("0x3")](e)}[nc("0x1d")](){const e=this[nc("0x8")].config[nc("0x3")](nc("0x1c"));this._myId||this[nc("0x16")](e)}[nc("0x16")](e){if(this[nc("0x7")])throw new _0x406b40(nc("0x14"),null);if(!this[nc("0x18")](e))throw new _0x406b40(nc("0xc"),null);this[nc("0x7")]=e}[nc("0xe")](){return this.me}[nc("0x5")](){super[nc("0x5")](),clearInterval(this[nc("0x36")])}[nc("0x34")](){const e=this[nc("0x8")][nc("0x28")][nc("0x3")](nc("0x24"));return this[nc("0xb")]>=e&&(this[nc("0xb")]=0),new sc(this[nc("0xb")]++)}_addAnonymousUser(){const e=this[nc("0x8")][nc("0x28")][nc("0x3")](nc("0x1c"));this[nc("0x17")]({id:e,name:_0x448eef(this[nc("0x2b")],nc("0x0"))})[nc("0x21")]=!0}}class rc{constructor(e){this.id=e.id,this[nc("0x27")]=e.color,this[nc("0x2a")]=e.name,this.avatar=e[nc("0x19")],this[nc("0x21")]=!1}get[nc("0x30")](){return this._isAnonymous}get[nc("0x1")](){const e=this[nc("0x2a")][nc("0x9")](" ");return 1===e[nc("0x12")]?this[nc("0x32")](e[0]):this[nc("0x32")](e[0])+this._getInitial(e[e[nc("0x12")]-1])}[nc("0x32")](e){return e.charAt(0)[nc("0x2e")]()}}class sc{constructor(e){this[nc("0x4")]=e}getBackgroundColorClass(){return nc("0x2d")+this[nc("0x4")]}[nc("0x35")](){return"ck-user__selection--"+this._id}[nc("0x20")](){return"ck-user__marker--"+this._id}}var ic=n(893),ac={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$a()(ic.Z,ac);ic.Z.locals;const cc=["ck-user__icon","extendTemplate","avatar","ck-user__anonymous","div","url('","name","notificationView","ck ck-user__name ck-user__name--hidden","setTemplate","ck-user__avatar","ck-user","ck-user__img","ck-user__notification","push","content","isAnonymous"];var xc,lc;xc=cc,lc=246,function(e){for(;--e;)xc.push(xc.shift())}(++lc);const uc=["'Today' hh:mma","'Last' EEEE hh:mma","string","'Yesterday' hh:mma","MM-dd-yyyy hh:mma","invalid-date-time-format","dateTimeFormat"];var dc,gc;dc=uc,gc=187,function(e){for(;--e;)dc.push(dc.shift())}(++gc);const mc=["markerNameToElements","mapViewToDom","mapper","view","name","values"];var fc,hc;fc=mc,hc=357,function(e){for(;--e;)fc.push(fc.shift())}(++hc);const kc=["slice","replace","indexOf","substring","push","match","pop","startsWith","join","length","split"];var bc,pc;bc=kc,pc=416,function(e){for(;--e;)bc.push(bc.shift())}(++pc);const _c=["icon","_createButtonView","execute","submit","ck-thread__remove-confirm-inner","cancel","ck-thread__remove-confirm-actions","setTemplate","Yes","bindTemplate","ck-thread__remove-confirm-","extendTemplate","message","submitView","label","cancelView","check","div","Are you sure?"];var vc,Ec;vc=_c,Ec=364,function(e){for(;--e;)vc.push(vc.shift())}(++Ec);const yc=function(e,t){return _c[e-=0]};class Tc extends r.View{constructor(t){super(t);const n=this[yc("0x6")];this.submitView=this[yc("0x11")](t,common_translations_getTranslation(t,yc("0x5")),e.icons[yc("0xd")],yc("0x0")),this[yc("0xc")]=this[yc("0x11")](t,common_translations_getTranslation(t,"No"),e.icons[yc("0x2")],yc("0x2")),this.set(yc("0x9"),common_translations_getTranslation(t,yc("0xf"))),this[yc("0x4")]({tag:yc("0xe"),attributes:{class:["ck-thread__remove-confirm"]},children:[{tag:yc("0xe"),attributes:{class:yc("0x1")},children:[{tag:"p",children:[{text:n.to("message")}]},{tag:yc("0xe"),attributes:{class:yc("0x3")},children:[this[yc("0xa")],this[yc("0xc")]]}]}]})}[yc("0x11")](e,t,n,o){const s=new r.ButtonView(e);return s[yc("0xb")]=t,s[yc("0x10")]=n,s[yc("0x8")]({attributes:{class:yc("0x7")+o}}),s.on(yc("0x12"),(()=>this.fire(o))),s}}var Cc,wc,Ac=["deregisterChild","locale","registerChild","remove","confirmView","_removeConfirm","element","message","set","isConfirm","render","fire","cancel","once","appendChild","submit"];Cc=Ac,wc=188,function(e){for(;--e;)Cc.push(Cc.shift())}(++wc);const Rc=["toString","sign","object","string","sort","isArray","number","charCodeAt"];var Ic,Sc;Ic=Rc,Sc=328,function(e){for(;--e;)Ic.push(Ic.shift())}(++Sc);const Mc=function(e,t){return Rc[e-=0]};function Nc(e){let t=0,n=0;for(const o of Oc(e))t=(t<<5)-t+o,t&=t,[t,n]=[n,t];return Dc(t)+Dc(n)}function*Lc(e){e?"boolean"==typeof e?yield 1:Array[Mc("0x5")](e)?yield*function*(e){for(const t of e)yield*Lc(t)}(e):Mc("0x2")==typeof e?yield*Oc(e):Mc("0x3")==typeof e?yield*Fc(e):Mc("0x6")==typeof e&&(yield e):yield 0}function*Oc(e){if(yield Pc("{"),e){const t=Object.keys(e)[Mc("0x4")]();for(const n of t){yield*Fc(n),yield Pc(":");const t=e[n];yield*Lc(t)}}yield Pc("}")}function*Fc(e){yield Pc('"');for(const t of e)yield Pc(t);yield Pc('"')}function Pc(e){return e[Mc("0x7")](0)}function Dc(e){return(e*=Math[Mc("0x1")](e))[Mc("0x0")](36)}var Bc=n(72),jc={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$a()(Bc.Z,jc);Bc.Z.locals;var Uc=n(529),Gc={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$a()(Uc.Z,Gc);Uc.Z.locals;var Hc=n(510),Vc={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$a()(Hc.Z,Vc);Hc.Z.locals;var zc=n(156),Wc={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$a()(zc.Z,Wc);zc.Z.locals;var Kc=n(481),qc={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$a()(Kc.Z,qc);Kc.Z.locals;var Xc=n(437),Zc={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$a()(Xc.Z,Zc);Xc.Z.locals;var $c=n(895),Jc={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$a()($c.Z,Jc);$c.Z.locals;var Qc=n(701),Yc={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};$a()(Qc.Z,Yc);Qc.Z.locals;const ex=["editor","plugins","requires","get","TableCaptionEditing","TrackChangesEditing"];var tx,nx;tx=ex,nx=363,function(e){for(;--e;)tx.push(tx.shift())}(++nx);const ox=function(e,t){return ex[e-=0]};class rx extends e.Plugin{static get[ox("0x5")](){return[ga]}afterInit(){const e=this[ox("0x3")];e[ox("0x4")].has(ox("0x1"))&&e[ox("0x4")][ox("0x0")](ox("0x2")).enableCommand("toggleTableCaption")}}const sx=["change:data","author","addRange","formatInline:accept","addMarker:suggestion:formatBlock","_isForcedDefaultExecutionBlock","values","markerName","split","writer","editingDowncast","listenTo","_enabledCommands","markBlockFormat","filter","_joinSuggestions","_findSuggestions","_removeSuggestion","formatBlock:","differ","root","config","_createSuggestion","_splitMarkerName","buildSuggestion","acceptAllSuggestions","upcast","insertion:chain","_addSuggestionMarker","fire","Users","_onDiscard","detach","isSelectable","discard","getCommentThread","length","_descriptionFactory","containsRange","hasComments","removeMarker:suggestion:formatBlock","deletion:","deletion:accept","insert","isOwn","rootName","addHighlight","deleteContent","widget","showSuggestionHighlights","formatBlock:join","activeMarkers","position","open","every","updateSuggestion","trackChanges","markerToHighlight","isIntersectingWithRange","createPositionAfter","refresh","_suggestions","markerNameToElements","move","group","get","getRange","change","registerPostFixer","_handleNewSuggestionMarker","removed","getWalker","isAfter","has","_checkSuggestionCorrectness","conversion","multipleBlocks","_suggestionState","size","isInsideObject","formatInline","removeClass","isTouching","createSelection","_getSuggestionData","insertion:","from","start","CommentsRepository","isCollapsed","elementStart","formatInline:chain","ready","mapper","addUser","getLastMatchingPosition","addMarker:suggestion","accepted","ck-suggestion-marker-","containsPosition","stopListening","elementToElement","getNearestSelectionRange","isExternal","sort","isObject","some","textProxy","_defaultCallbacks","locale","discardSuggestion","high","getSuggestion","insertion:discard","getCustomProperty","delete","getSuggestions","getAncestors","TrackChangesEditing","formatBlock:chain","after","for","markDeletion","attributes","_cutOutSuggestionMarker","markMultiRangeDeletion","join","track-changes-suggestion-data-mismatch","@external","fromCharCode","getChangedMarkers","oldRange","acceptSelectedSuggestions","addMarkerName","pluginName","addMarker","name","discardAllSuggestions","_refreshSuggestionsChain","insertion:accept","_registerDefaultCallbacks","elementEnd","addSuggestion","remove","add","_setSuggestionRange","ck-suggestion-marker","isBlock","removeComment","setAttribute","isUndo","deletion:discard","getFirstRange","commentThread","getShiftedBy","isBefore","model","normal","multi","suggestion","createRange","_suggestionFactory","lowest","addCommentThread","toJSON","formatInline:discard","removeAttribute","containsRangeInObject","ck-suggestion-marker--active","range","fetchCommentThread","document","_commentsRepository","batch","removeMarker","markInsertion","acceptSuggestion","isNextTo","$marker","track-changes-suggestion-not-found","set","discardSelectedSuggestions","_rangeIsInLocalUserInsertion","newRange","_joinWithAdjacentSuggestions","getUser","execute","selection","element","setSelection","track-changes-adapter-already-set","reconvertMarker","isEqual","enableCommand","_adapter","deletion:join","addSuggestionData","nodeAfter","isDocumentOperation","adapter","data","isAtStart","enableReadOnlyMode","createRangeIn","suggestionLoaded","then","dataDowncast","updateMarker","howMany","formatBlock","push","plugins","deletion:chain","commandName","createPositionAt","isLimit","hasSuggestion","accept","parent","creator","_breakSuggestionMarker","marker-count","item","_editor","isRemovable","substr","getSuggestionCallback","data-suggestion","authoredAt","getIntersection","editor","formatBlock:discard","includes","dataReady","nodeBefore","isInContent","suggestionUnloaded","_getAuthorFromId","skipNestingCheck","toViewElement","createdAt","createElement","suggestion:","next","targetPosition","previous","_setSuggestionData","getFirstMarker","registerCustomCallback","clear","addClass","isMultiRange","PendingActions","isAtEnd","markers","consume","external:","splitPosition","dataToMarker","$graveyard","originalSuggestionId","notReady","getAllAdjacentSuggestions","addComment","_saved","getDifference","formatInline:","_updateSuggestionData","trackChangesCommand","init","end","forceDefaultExecution","_getExternalAuthor","splice","suggestionChanged","map","subType","enqueueChange","collaboration.channelId","consumable","removeMarkers","insertion","getAttribute","deletion","unbindElementFromMarkerName","resolve","backward","_addThreadToSuggestion","getMultiRangeId","type","containsItem","getRanges","_model","containerElement","setTo","editing","insertContent","PENDING_ACTION_SUGGESTION","markerToData","_customCallbacks","commands","value","schema","formatGroupId","forward","ck-suggestion-marker-formatBlock","stop"];var ix,ax;ix=sx,ax=259,function(e){for(;--e;)ix.push(ix.shift())}(++ax);const cx=function(e,t){return sx[e-=0]};class xx extends e.Plugin{static get requires(){return["CommentsRepository",s.Users,e.PendingActions,xr,Er,Ar,Lr,Br,zr,$r,ts,xs,fs,_s,ws,Ms,Ps,Gs,Ks,Js,ni,ai,di,pi,Ti,Ii,Oi,Ui,Ki,Ji,oa,ca,ga,pa,Ta,rx,Ma,Ba,Va]}static get[cx("0xb6")](){return cx("0xa6")}constructor(e){function t(e){return e.map((e=>String[cx("0xb1")](e)))[cx("0xae")]("")}super(e),this[cx("0xe4")](cx("0x63"),[]),this.on("change:activeMarkers",((t,n,o,r)=>{this[cx("0x21")][cx("0x73")]((()=>{for(const t of[...r,...o])this._model[cx("0x12e")].has(t)&&e[cx("0x24")][cx("0xef")](t)}))})),this[cx("0x55")]=new rr(this[cx("0x116")].model[cx("0x2b")],this[cx("0x116")].locale),this[cx("0xf2")]=null,this._suggestionFactory=new lx(this.editor),this[cx("0x6d")]=new Map,this[cx("0xdc")]=e[cx("0x103")][cx("0x71")](cx("0x88")),this[cx("0x3c")]=new Set,this[cx("0x21")]=this[cx("0x116")][cx("0xcc")],this[cx("0x7d")]=new WeakMap,this[cx("0x35")]=!1,this[t([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=t([52,48,52,52,50,50,50,56])}[cx("0xa")](){const e=this[cx("0x116")];e[cx("0x7b")][cx("0xa9")](cx("0x3a"))[cx("0x69")]({model:"suggestion",view:e=>{const{id:t,type:n}=this[cx("0x47")](e[cx("0x37")]),o=["ck-suggestion-marker",cx("0x92")+n];let r=3e3;return this.activeMarkers[cx("0x118")](e[cx("0x37")])&&(o[cx("0x102")]("ck-suggestion-marker--active"),r=3010),cx("0x18")==n&&(r+=5),{classes:o,attributes:{"data-suggestion":t},priority:r}}}),e.conversion[cx("0xa9")]("dataDowncast")[cx("0xc0")]((t=>{t.on(cx("0x90"),((t,n,o)=>{if(!o.options[cx("0x61")])return;const r=n[cx("0x10e")];if(!r)return;const s=o[cx("0x8d")].toViewElement(r);e[cx("0xcc")][cx("0x2b")][cx("0x99")](r)&&s&&!s[cx("0xa2")](cx("0x60"))&&s.is(cx("0x22"))&&(0,a.toWidget)(s,o[cx("0x39")])}),{priority:cx("0x9f")})})),e.conversion[cx("0xa9")](cx("0xfe"))[cx("0x69")]({model:"suggestion",view:(e,t)=>{if(!t.options[cx("0x61")])return null;const{type:n}=this[cx("0x47")](e.markerName);return{classes:["ck-suggestion-marker",cx("0x92")+n],priority:3e3}}});const n=({showActiveMarkers:t=!0}={})=>(n,o,r)=>{if(!o[cx("0x10e")])return;if(o[cx("0x10e")].is(cx("0xeb")))return void r.consumable[cx("0x12f")](o.item,n[cx("0xb8")]);const s=r.mapper[cx("0x11f")](o[cx("0x10e")]);if(!o[cx("0x10e")].is(cx("0xec"))||!e.model[cx("0x2b")][cx("0xc3")](o[cx("0x10e")])||s[cx("0xa2")]("addHighlight"))return;const{id:i}=this[cx("0x47")](o.markerName);r[cx("0x39")][cx("0x12a")]([cx("0xc2"),cx("0x2e")],s),r.writer[cx("0xc5")]("data-suggestion",i,s),r.mapper.bindElementToMarker(s,o.markerName),t&&(this.activeMarkers[cx("0x118")](o[cx("0x37")])?r.writer[cx("0x12a")](cx("0xd8"),s):r[cx("0x39")][cx("0x81")](cx("0xd8"),s));for(const t of e[cx("0xcc")][cx("0xfb")](o[cx("0x10e")]).getItems())r[cx("0x14")].consume(t,n[cx("0xb8")]);r[cx("0x14")][cx("0x12f")](o.item,n[cx("0xb8")])};e[cx("0x7b")].for(cx("0xfe"))[cx("0xc0")]((e=>{e.on(cx("0x34"),((e,t,o)=>{o.options[cx("0x61")]&&n({showActiveMarkers:!1})(e,t,o)}),{priority:"highest"})})),e[cx("0x7b")].for(cx("0xfe"))[cx("0x27")]({model:cx("0xcf"),view:(e,t)=>t.options[cx("0x61")]?null:{group:cx("0xcf"),name:e[cx("0x111")](cx("0xcf")[cx("0x54")]+1)}}),e[cx("0x7b")][cx("0xa9")](cx("0x4a"))[cx("0x95")]({view:{name:cx("0xcf"),attribute:{id:/^\w/,suggestionType:/^\w/}},model:(e,{writer:t})=>{let n=cx("0x122")+e.getAttribute("suggestion-type")+":"+e[cx("0x17")]("id");return e.getAttribute(cx("0x10d"))&&(n+=":"+e[cx("0x17")](cx("0x10d"))),t[cx("0x121")](cx("0xe2"),{"data-name":n})}}),e.conversion[cx("0xa9")](cx("0x4a"))[cx("0x132")]({view:"suggestion"}),e.conversion[cx("0xa9")]("editingDowncast")[cx("0xc0")]((e=>{e.on("addMarker:suggestion:formatBlock",n(),{priority:"high"})})),e[cx("0x7b")][cx("0xa9")]("editingDowncast")[cx("0xc0")]((e=>{e.on(cx("0x58"),((e,t,n)=>{const o=n[cx("0x8d")][cx("0x6e")](t.markerName);if(o)for(const e of o)e[cx("0xa2")](cx("0x5e"))||(n.writer.removeClass([cx("0xc2"),"ck-suggestion-marker-formatBlock",cx("0xd8")],e),n[cx("0x39")][cx("0xd6")](cx("0x113"),e),n[cx("0x8d")][cx("0x19")](e,t[cx("0x37")]))}),{priority:cx("0x9f")})})),e[cx("0xcc")][cx("0xdb")][cx("0x74")]((t=>{let n=!1;const o=Array.from(e[cx("0xcc")][cx("0xdb")][cx("0x43")][cx("0xb2")]()),r=new Set;for(const{name:a,data:c}of o){const{group:o,type:x,id:l}=this[cx("0x47")](a);if("suggestion"!==o)continue;const u=this[cx("0x6d")].get(l);if(null!=c[cx("0xe7")])if(cx("0x80")==x&&(n=n||gx(c[cx("0xe7")],a,t,e[cx("0xcc")][cx("0x2b")])),c[cx("0xe7")][cx("0x89")]||cx("0x0")==c[cx("0xe7")][cx("0x44")].rootName||cx("0x101")==x&&!fx(c.newRange)||cx("0x18")==x&&(dx(i=c[cx("0xe7")])||(s=i)[cx("0x87")][cx("0x10a")]==s[cx("0xb")][cx("0x11a")]&&s.start[cx("0x12d")]))t[cx("0xde")](a),n=!0;else{if(!u||!u[cx("0x11b")])continue;r[cx("0xc0")](u)}}var s,i;return r[cx("0x7e")]>0&&(n=!!this[cx("0xe8")](r)||n),n})),e[cx("0xcc")][cx("0xdb")][cx("0x74")]((t=>{let n=!1;for(const o of e[cx("0xcc")][cx("0xdb")].differ.getChanges()){if(cx("0x5b")!=o[cx("0x1e")])continue;const r=o[cx("0x64")][cx("0xca")](o[cx("0x54")]);if(r.isAtEnd)for(const s of this._suggestions[cx("0x36")]()){if(s[cx("0x12b")]||!s[cx("0x11b")])continue;if(cx("0x101")!=s[cx("0x1e")])continue;const i=s.getFirstRange();if(i.start[cx("0x10a")]!=i[cx("0xb")][cx("0x10a")]&&i.end.isEqual(o[cx("0x64")])){const o=e[cx("0xcc")][cx("0xd0")](i[cx("0x87")],r);t[cx("0xff")](s[cx("0x127")](),{range:o}),n=!0}}}return n})),e[cx("0xcc")][cx("0x12e")].on("update:suggestion",((e,t,n)=>{if(null==n){const{id:e}=this[cx("0x47")](t[cx("0xb8")]),n=this[cx("0x6d")][cx("0x71")](e);n&&n[cx("0xb5")](t[cx("0xb8")])}})),e[cx("0xcc")][cx("0xdb")].on(cx("0x30"),(()=>{const t=Array[cx("0x86")](e.model[cx("0xdb")][cx("0x43")].getChangedMarkers())[cx("0x3e")]((e=>cx("0xcf")===this._splitMarkerName(e.name)[cx("0x70")]));if(0===t.length)return;t.sort(((e,t)=>{const n=e.data[cx("0xb3")],o=t[cx("0xf8")].oldRange;return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[cx("0x87")][cx("0xcb")](o[cx("0x87")])?-1:1}));const n=new Set,o=new Set;for(const{name:e,data:r}of t){const{id:t}=this._splitMarkerName(e);if(null===r[cx("0xb3")]){const t=this[cx("0x75")](e);o.add(t)}else{const e=this[cx("0x6d")][cx("0x71")](t);null!==r[cx("0xe7")]||e[cx("0x11b")]?(n.add(e.head),o[cx("0xc0")](e)):this[cx("0x41")](e)}}o[cx("0x7e")]>0&&this[cx("0xba")](o);for(const e of n)this[cx("0x4d")](cx("0xf"),e)})),e[cx("0xcc")].on("applyOperation",((t,n)=>{const o=n[0];if(!this[cx("0x6d")][cx("0x7e")])return;if(!o[cx("0xf6")])return;if(o.batch[cx("0xc6")]||!o[cx("0xdd")].isLocal)return;let r,s;switch(o.type){case cx("0x5b"):r=e[cx("0xcc")][cx("0x106")](o[cx("0x64")]),s=r[cx("0xca")](o[cx("0x100")]);break;case cx("0x38"):r=e[cx("0xcc")].createPositionAt(o[cx("0x131")]),s=e[cx("0xcc")][cx("0x106")](o.moveTargetPosition);break;case cx("0x6f"):r=e[cx("0xcc")][cx("0x106")](o[cx("0x124")]),s=r[cx("0xca")](o[cx("0x100")]);break;default:return}const i=e[cx("0xcc")][cx("0xd0")](r,s);e[cx("0xcc")][cx("0x73")]((()=>{for(const{suggestion:e,meta:t}of this._findSuggestions(i)){if(e[cx("0x12b")])continue;if(cx("0x80")==e[cx("0x1e")])continue;const n=e.data&&e[cx("0xf8")][cx("0x7c")];(cx("0x101")!=e.type||cx("0x38")==o[cx("0x1e")]&&!n)&&(t[cx("0xd7")]||cx("0x16")==e[cx("0x1e")]&&t.isOwn||e.getFirstRange()[cx("0x56")](i)&&this[cx("0x10c")](e,r,s))}}))}),{priority:cx("0xd2")}),e[cx("0xcc")].on(cx("0x5f"),((t,n)=>{const o=n[0],r=n[1];if(r&&r[cx("0xc")])return;if(this._isForcedDefaultExecutionBlock)return;if(!this[cx("0x9")][cx("0x2a")])return;if(o[cx("0x89")])return;const s=e[cx("0xcc")][cx("0x2b")],{start:i,end:a}=o.getFirstRange(),c=i[cx("0xf5")]&&s[cx("0x107")](i[cx("0xf5")])?null:s[cx("0x96")](i,cx("0x2d")),x=a[cx("0x11a")]&&s.isLimit(a.nodeBefore)?null:s[cx("0x96")](a,"backward"),l=e[cx("0xcc")][cx("0xd0")](c?c.start:i,x?x.end:a);e[cx("0xcc")][cx("0x73")]((t=>{this[cx("0xaa")](l);const n=e[cx("0xcc")][cx("0x2b")][cx("0x96")](l[cx("0x87")]);o.is("documentSelection")?t[cx("0xed")](n):o[cx("0x23")](n)})),t[cx("0x2f")]()}),{priority:t.priorities[cx("0xcd")]+10}),e[cx("0xcc")].on(cx("0x25"),((t,n)=>{const o=n[n[cx("0x54")]-1];o&&o[cx("0xc")]||this[cx("0x35")]||this[cx("0x9")][cx("0x2a")]&&(e.model[cx("0x73")]((()=>{let o=e[cx("0xcc")][cx("0x25")](n[0],n[1],n[2],n[3],{forceDefaultExecution:!0});if(!o)return;t.return=o.clone();const r=o.end[cx("0x11a")],s=e[cx("0xcc")][cx("0x2b")];r&&s.isBlock(r)&&!s[cx("0x99")](r)&&(o=e[cx("0xcc")].createRange(o[cx("0x87")],e.model[cx("0x106")](r,cx("0xb")))),this[cx("0xdf")](o)})),t.stop())}),{priority:cx("0x9f")}),this[cx("0x9")]=new d(e,this[cx("0x3c")]),this.editor[cx("0x29")].add(cx("0x68"),this[cx("0x9")]),this[cx("0xf1")](cx("0x68"));const o=new k(e,this[cx("0x6d")]);e.commands.add(cx("0xe0"),o),this[cx("0xf1")](cx("0xe0"));const r=new E(e,this[cx("0x6d")]);e[cx("0x29")][cx("0xc0")](cx("0x9e"),r),this[cx("0xf1")]("discardSuggestion"),e[cx("0x29")][cx("0xc0")](cx("0x49"),new F(e,o,this[cx("0x6d")])),this.enableCommand("acceptAllSuggestions"),e[cx("0x29")][cx("0xc0")](cx("0xb9"),new F(e,r,this[cx("0x6d")])),this[cx("0xf1")](cx("0xb9")),e[cx("0x29")][cx("0xc0")]("acceptSelectedSuggestions",new U(e,o,this[cx("0x6d")])),this[cx("0xf1")](cx("0xb4")),e[cx("0x29")][cx("0xc0")](cx("0xe5"),new U(e,r,this._suggestions)),this[cx("0xf1")]("discardSelectedSuggestions");const s=e[cx("0x103")][cx("0x71")](cx("0x88"));this[cx("0x3b")](s,cx("0x4"),((e,{threadId:t})=>{const n=this[cx("0x6d")][cx("0x71")](t);n&&n[cx("0xc9")]&&1===n.commentThread[cx("0x54")]&&this[cx("0x8")](t,{hasComments:!0})}),{priority:"low"}),this[cx("0x3b")](s,cx("0xc4"),((e,{threadId:t})=>{const n=this[cx("0x6d")].get(t);n&&n[cx("0xc9")]&&!n[cx("0xc9")][cx("0x54")]&&this[cx("0x8")](t,{hasComments:!1})}),{priority:"low"})}set[cx("0xf7")](e){if(this._adapter)throw new t.CKEditorError(cx("0xee"),this);this[cx("0xf2")]=e}get[cx("0xf7")](){return this[cx("0xf2")]}[cx("0xa4")]({skipNotAttached:e=!1,toJSON:t=!1}={}){const n=[];for(const t of this._suggestions[cx("0x36")]())e&&!t.isInContent||n[cx("0x102")](t);return t?n[cx("0x10")]((e=>e[cx("0xd4")]())):n}[cx("0xa0")](e){const n=this[cx("0x6d")][cx("0x71")](e);if(!n)throw new t.CKEditorError(cx("0xe3"),this);return n}[cx("0x108")](e){return this[cx("0x6d")].has(e)}[cx("0xf4")](e){const{authorId:t,id:n,attributes:o}=e,[r,s]=e[cx("0x1e")][cx("0x38")](":"),i=this[cx("0x6d")][cx("0x71")](n)||this[cx("0x46")](r,s,n,t,o);if(this._addThreadToSuggestion(i),this._checkSuggestionCorrectness(i,r,s||null,t),i[cx("0x120")]=e.createdAt,o&&o[cx("0xb0")]){const{authorName:e,createdAt:t}=o[cx("0xb0")],n=this[cx("0xd")](e);i[cx("0x114")]=t,i[cx("0x31")]=n,i[cx("0x97")]=!0}else i[cx("0x114")]=e.createdAt;switch(e[cx("0xf8")]&&(i.data=e[cx("0xf8")]),e[cx("0xab")]&&(i[cx("0xab")]=e[cx("0xab")]),this[cx("0xf2")]&&this._adapter[cx("0xbe")]||(i._saved=!0),this._suggestionState.get(i)){case"notReady":this[cx("0x7d")][cx("0xe4")](i,"dataReady");break;case"markerReady":i.isInContent?(this._suggestionState.set(i,cx("0x8c")),this.fire(cx("0xfc"),i)):this._suggestionState.set(i,"removed")}return i}[cx("0xe0")](e){this[cx("0xc")]((()=>{this[cx("0x116")][cx("0xcc")][cx("0x73")]((()=>{for(const t of e[cx("0x3")]())t.accept()}))}))}[cx("0x9e")](e){this.forceDefaultExecution((()=>{this[cx("0x116")][cx("0xcc")][cx("0x73")]((()=>{for(const t of e[cx("0x3")]())t[cx("0x52")]()}))}))}[cx("0xf1")](e,n){const o=this[cx("0x116")][cx("0x29")][cx("0x71")](e);if(!o)throw new t.CKEditorError("track-changes-command-not-found",this,{commandName:e});this[cx("0x3c")][cx("0xc0")](o),n&&o.on(cx("0xea"),((e,t)=>{this[cx("0x9")][cx("0x2a")]&&(this._isForcedDefaultExecutionBlock||t[cx("0x54")]>0&&t[t[cx("0x54")]-1]&&t[t[cx("0x54")]-1][cx("0xc")]||(n(((...e)=>o[cx("0xea")](...e,{forceDefaultExecution:!0})),...t),e[cx("0x2f")]()))}),{priority:cx("0x9f")})}[cx("0xc")](e){let n,o;const r=this[cx("0x35")];this[cx("0x35")]=!0;try{n=e()}catch(e){o=e}return r||(this[cx("0x35")]=!1),o&&t.CKEditorError.rethrowUnexpectedError(o,this),n}[cx("0xdf")](e,n=null,o={}){if(e[cx("0x89")])return null;const r=this.editor[cx("0x103")][cx("0x71")]("Users").me;for(const{suggestion:t,meta:o}of this[cx("0x40")](e,"insertion"))if(o[cx("0x5c")]){if(!o[cx("0xe1")])return t;if(n==t.subType){const n=t[cx("0xc8")]();return n[cx("0x87")][cx("0xf0")](e[cx("0xb")])?this[cx("0xc1")](t,this[cx("0x21")][cx("0xd0")](e[cx("0x87")],n[cx("0xb")])):this[cx("0xc1")](t,this[cx("0x21")][cx("0xd0")](n[cx("0x87")],e[cx("0xb")])),t}}const s=(0,t.uid)(),i=r.id,a=n?cx("0x85")+n:"insertion",c=this[cx("0x126")]({id:s,type:a,createdAt:new Date,authorId:i,attributes:o});return this._addSuggestionMarker(a,s,i,e),c}markMultiRangeInsertion(e,n="multi",o={}){const r=this[cx("0x116")][cx("0x103")][cx("0x71")](cx("0x4e")).me,s=this[cx("0xd1")][cx("0x112")](cx("0x16"),n,cx("0xae"));for(const t of this[cx("0xa4")]())if(t[cx("0x31")].id==r.id&&cx("0x16")==t.type&&t[cx("0x11")]==n&&(s(t.getRanges(),e)||s(e,t.getRanges()))){for(const n of e)t[cx("0x32")](n);return t}for(const t of e)for(const{suggestion:n,meta:o}of this[cx("0x40")](t,cx("0x16"))){if(!o.isOwn)continue;let t=!0;for(const o of n[cx("0x20")]())for(const n of e)if(!o[cx("0x56")](n)){t=!1;break}if(t)return n}const i=(0,t.uid)(),a=r.id,c=cx("0x85")+n,x=this[cx("0x126")]({id:i,type:c,createdAt:new Date,authorId:a,attributes:o});for(const t of e)this[cx("0x4c")](c,i,a,t,Qo[cx("0x1d")]());return x}markInlineFormat(e,n,o=null,r={}){if(o=o||mx(n),e[cx("0x89")])return;const s=this[cx("0x116")].plugins[cx("0x71")](cx("0x4e")).me,i=[];for(const{suggestion:t,meta:n}of this._findSuggestions(e,cx("0x16")))n[cx("0x5c")]&&!n[cx("0x7f")]&&i[cx("0x102")](...t[cx("0x20")]());const a=function(e,t){const n=[];for(const o of t){const t=e[cx("0x115")](o);t&&n.push(t)}return n}(e,i),c=function(e,t){const n=[e];for(const e of t){let t=0;for(;t<n[cx("0x54")];){const o=n[t][cx("0x6")](e);n[cx("0xe")](t,1,...o),t+=o[cx("0x54")]}}return n}(e,i);a[cx("0x54")]&&this._model[cx("0x73")]((()=>{for(const e of a){const t=this._suggestionFactory[cx("0x112")](cx("0x80"),o,"accept");this[cx("0xc")]((()=>t([e],n,r)))}}));for(const e of c){let i=null,a=e[cx("0x87")],c=e[cx("0xb")];for(const{suggestion:t,meta:n}of this[cx("0x40")](e,"formatInline")){if(!n[cx("0x5c")])continue;if(t[cx("0x11")]!=o)continue;const r=t[cx("0xc8")]();if(r[cx("0x56")](e,!0))return;a=a.isBefore(r.start)?a:r.start,c=c[cx("0x78")](r[cx("0xb")])?c:r[cx("0xb")],i?r[cx("0x87")].isBefore(i[cx("0xc8")]()[cx("0x87")])?(i[cx("0x15")](),i=t):t.removeMarkers():i=t}const x=this._model[cx("0xd0")](a,c);if(i)this._setSuggestionRange(i,x);else{const e=(0,t.uid)(),i=s.id;this[cx("0x126")]({id:e,type:cx("0x7")+o,data:n,createdAt:new Date,authorId:i,attributes:r}),this[cx("0x4c")]("formatInline:"+o,e,i,x)}}}[cx("0x3d")](e,n,o=[],r=null,s={}){n.formatGroupId||(n.formatGroupId=n[cx("0x105")]),n[cx("0x7c")]=e.is(cx("0xd9")),r=r||mx(n);const i=o[cx("0x10")]((e=>hx(e,this._model))),a=e.is(cx("0xd9"))?e:hx(e,this[cx("0x21")]);i[cx("0x102")](a);let c=!0;for(const e of i)if(!this._rangeIsInLocalUserInsertion(e)){c=!1;break}if(c){const e=this._suggestionFactory[cx("0x112")]("formatBlock",r,cx("0x109"));return void this.forceDefaultExecution((()=>e([a],n,s)))}let x=null,l=a[cx("0x87")],u=a[cx("0xb")];for(const{suggestion:e,meta:t}of this._findSuggestions(a,cx("0x101"))){if(!t[cx("0x5c")]||t.isNextTo||t[cx("0xd7")]||t[cx("0x7f")])continue;if(e.data[cx("0x2c")]!=n.formatGroupId)continue;const o=e[cx("0xc8")]();if(e.subType==r){if(o.containsRange(a,!0))return;l=l[cx("0xcb")](o[cx("0x87")])?l:o[cx("0x87")],u=u[cx("0x78")](o[cx("0xb")])?u:o.end,x?o[cx("0x87")][cx("0xcb")](x[cx("0xc8")]()[cx("0x87")])?(x.removeMarkers(),x=e):e[cx("0x15")]():x=e}else{const t=a[cx("0x115")](o);this[cx("0xac")](e,t)}}const d=this[cx("0x116")][cx("0x103")][cx("0x71")](cx("0x4e")).me,g=(0,t.uid)(),m=d.id;x?this[cx("0xc1")](x,this[cx("0x21")].createRange(l,u)):(this[cx("0x126")]({id:g,type:cx("0x42")+r,data:n,createdAt:new Date,authorId:m,attributes:s}),this._addSuggestionMarker(cx("0x42")+r,g,m,this[cx("0x21")][cx("0xd0")](l,u)))}markMultiRangeBlockFormat(e,n,o=[],r=null,s={}){n.formatGroupId||(n[cx("0x2c")]=n.commandName),n[cx("0x7c")]=!1,r=r||mx(n);const i=o[cx("0x10")]((e=>hx(e,this[cx("0x21")]))),a=e[cx("0x10")]((e=>hx(e,this[cx("0x21")])));i[cx("0x102")](...a);let c=!0;for(const e of i)if(!this[cx("0xe6")](e)){c=!1;break}if(c){const e=this[cx("0xd1")][cx("0x112")](cx("0x101"),r,cx("0x109"));return void this[cx("0xc")]((()=>e(a,n,s)))}const x=this[cx("0x116")][cx("0x103")][cx("0x71")](cx("0x4e")).me;for(const e of this[cx("0xa4")]()){if(e.author.id!=x.id)continue;if("formatBlock"!=e[cx("0x1e")]||e[cx("0xf8")][cx("0x2c")]!=n.formatGroupId)continue;const t=e[cx("0x11")]==r;for(let n=0;n<a[cx("0x54")];n++){const o=a[n];for(const r of e.getMarkers()){const s=r[cx("0x72")]();if(o.isEqual(s)){t?(a.splice(n,1),n--):e[cx("0xde")](r.name);break}}}}if(0==a[cx("0x54")])return;const l=this[cx("0xd1")][cx("0x112")](cx("0x101"),r,cx("0xae"));for(const e of this[cx("0xa4")]())if(e[cx("0x31")].id==x.id&&"formatBlock"==e[cx("0x1e")]&&e[cx("0xf8")][cx("0x2c")]==n[cx("0x2c")]&&e[cx("0x11")]==r&&(l(e[cx("0x20")](),a)||l(a,e[cx("0x20")]()))){for(const t of a)e[cx("0x32")](t);return e}const u=(0,t.uid)(),d=x.id,g="formatBlock:"+r,m=this[cx("0x126")]({id:u,type:g,data:n,createdAt:new Date,authorId:d,attributes:s});for(const e of a)this[cx("0x4c")](g,u,d,e,Qo.getMultiRangeId());return m}[cx("0xaa")](e,n=null,o={}){if(e[cx("0x89")])return null;const r=this[cx("0x116")][cx("0x103")][cx("0x71")](cx("0x4e")).me,s=new i.LiveRange(e[cx("0x87")],e[cx("0xb")]);for(const{suggestion:e,meta:t}of this[cx("0x40")](s,cx("0x16")))if(t.isOwn&&!t[cx("0xe1")])if(e[cx("0x12b")]){const t=e.getRanges().filter((e=>"$graveyard"!=e[cx("0x44")].rootName));if(t.every((e=>s[cx("0x56")](e,!0)))&&e[cx("0x52")](),t[cx("0x9a")]((e=>e[cx("0x56")](s,!0)))){const e=this[cx("0xd1")][cx("0x112")](cx("0x18"),n,cx("0x109"));return this[cx("0xc")]((()=>e([s],null,o))),null}}else{const t=s.getIntersection(e[cx("0xc8")]());e[cx("0x4f")]([t],null,o)}if(s[cx("0x50")](),s.isCollapsed||cx("0x0")==s[cx("0x44")][cx("0x5d")])return null;let a=null,c=s[cx("0x87")],x=s[cx("0xb")];for(const{suggestion:e,meta:t}of this[cx("0x40")](s,"deletion"))if(t[cx("0x5c")])if(e[cx("0x12b")]){let t=!0;for(const n of e.getRanges()){if(n[cx("0x56")](s,!0))return e;s.containsRange(n)||(t=!1)}t&&e[cx("0x52")]()}else{const t=e[cx("0xc8")]();if(t[cx("0x56")](s,!0))return e;c=c[cx("0xcb")](t.start)?c:t.start,x=x[cx("0x78")](t[cx("0xb")])?x:t[cx("0xb")],a?t.start[cx("0xcb")](a[cx("0xc8")]()[cx("0x87")])?(a.removeMarkers(),a=e):e[cx("0x15")]():a=e}if(a)return this[cx("0xc1")](a,this[cx("0x21")][cx("0xd0")](c,x)),a;{const e=(0,t.uid)(),s=this[cx("0x21")].createRange(c,x),i=r.id,a=n?"deletion:"+n:"deletion",l=this[cx("0x126")]({id:e,type:a,createdAt:new Date,authorId:i,attributes:o});return this._addSuggestionMarker(a,e,i,s),l}}[cx("0xad")](e,n=cx("0xce"),o={}){const r=this[cx("0x116")][cx("0x103")].get(cx("0x4e")).me,s=e[cx("0x10")]((e=>new i.LiveRange(e[cx("0x87")],e[cx("0xb")]))),a=new Set;for(const e of s)for(const{suggestion:t,meta:n}of this[cx("0x40")](e,cx("0x16")))n[cx("0x5c")]&&!n.isNextTo&&a[cx("0xc0")](t);for(const t of a)if(t[cx("0x12b")]){const r=t[cx("0x20")]();if((!t[cx("0xab")]||!t[cx("0xab")].skipNestingCheck)&&r[cx("0x66")]((e=>s.some((t=>t[cx("0x56")](e,!0)))))&&t[cx("0x52")](),s.every((e=>r[cx("0x9a")]((t=>t.containsRange(e,!0)))))){const t=this[cx("0xd1")][cx("0x112")](cx("0x18"),n,cx("0x109"));return this.forceDefaultExecution((()=>t(e,null,o))),null}}else{const e=t[cx("0xc8")]();if(s[cx("0x9a")]((t=>t[cx("0x56")](e,!0)))&&t[cx("0x52")](),s.every((t=>e.containsRange(t,!0)))){const e=this[cx("0xd1")].getSuggestionCallback(cx("0x18"),n,cx("0x109"));return this[cx("0xc")]((()=>e(s,null,o))),null}}const c=this[cx("0xd1")][cx("0x112")](cx("0x18"),n,cx("0xae"));let x=null;for(const e of this[cx("0xa4")]())if(e.author.id==r.id&&e[cx("0x11b")]&&cx("0x18")==e[cx("0x1e")]&&e[cx("0x11")]==n&&(c(e.getRanges(),s)||c(s,e.getRanges())))if(x){if(e.commentThread&&e[cx("0xc9")][cx("0x54")])continue;for(const t of e[cx("0x20")]())x[cx("0x6a")](t)||x.addRange(t);e.removeMarkers()}else{x=e;for(const t of s)e[cx("0x6a")](t)||e[cx("0x32")](t)}if(x)return x;a[cx("0x129")]();for(const e of s)for(const{suggestion:t,meta:n}of this[cx("0x40")](e,"deletion"))n.isOwn&&a[cx("0xc0")](t);for(const e of a){const t=e.getRanges();if((!o||!o[cx("0x11e")])&&s[cx("0x66")]((e=>t[cx("0x9a")]((t=>t[cx("0x56")](e,!0))))))return e;(!e[cx("0xab")]||!e[cx("0xab")].skipNestingCheck)&&t[cx("0x66")]((e=>s[cx("0x9a")]((t=>t[cx("0x56")](e,!0)))))&&e[cx("0x52")]()}const l=(0,t.uid)(),u=r.id,d=cx("0x59")+n,g=this[cx("0x126")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const e of s)e[cx("0x50")](),e.isCollapsed||cx("0x0")==e[cx("0x44")][cx("0x5d")]||this._addSuggestionMarker(d,l,u,e,Qo[cx("0x1d")]());return g}[cx("0xc1")](e,t){const n=e[cx("0x127")]();this[cx("0x21")][cx("0x73")]((e=>{e[cx("0xff")](n,{range:t})}))}[cx("0x1c")](e){const t=e.id,n=this[cx("0x116")][cx("0x45")].get(cx("0x13"));this[cx("0xdc")].hasCommentThread(t)||this[cx("0xdc")][cx("0xd3")]({channelId:n,threadId:t});const o=this[cx("0xdc")][cx("0x53")](t);o.unbind(cx("0x110")),o[cx("0x110")]=!1,e[cx("0xc9")]=o}[cx("0x7a")](e,n,o,r){if(e.type!=n||e.subType!=o||e[cx("0x10b")].id!=r)throw this[cx("0x116")][cx("0xfa")](cx("0xaf")),new t.CKEditorError(cx("0xaf"),this)}[cx("0xac")](e,n){const o=e.getFirstRange();if(n[cx("0xf0")](o))e[cx("0x15")]();else if(o[cx("0x56")](n)){const r=this[cx("0x21")][cx("0x106")](n[cx("0x87")][cx("0x11a")],cx("0xb"));this[cx("0xc1")](e,this[cx("0x21")][cx("0xd0")](o.start,r));const s=(0,t.uid)(),i=e[cx("0x10b")].id,a=e[cx("0x1e")]+":"+e[cx("0x11")];this[cx("0x126")]({id:s,type:a,createdAt:new Date,authorId:i,data:e[cx("0xf8")],attributes:e[cx("0xab")]});const c=this[cx("0x21")][cx("0x106")](n.end.parent,cx("0xa8")),x=this[cx("0x21")].createRange(c,o[cx("0xb")]);this._addSuggestionMarker(a,s,i,x)}else if(o[cx("0x93")](n.start)){const t=this[cx("0x21")][cx("0x106")](n[cx("0x87")][cx("0x11a")],cx("0xb"));this[cx("0xc1")](e,this[cx("0x21")][cx("0xd0")](o[cx("0x87")],t))}else{const t=this[cx("0x21")][cx("0x106")](n[cx("0xb")][cx("0x10a")],cx("0xa8"));this[cx("0xc1")](e,this[cx("0x21")][cx("0xd0")](t,o[cx("0xb")]))}}[cx("0xe6")](e){for(const{suggestion:t,meta:n}of this._findSuggestions(e,"insertion")){if(!n[cx("0x5c")])continue;const o=t[cx("0x20")]();for(const t of o)if(!e[cx("0x6")](t)[cx("0x54")])return!0}return!1}[cx("0x11d")](e){const n=this[cx("0x116")].plugins[cx("0x71")](cx("0x4e")).getUser(e);if(!n)throw new t.CKEditorError("track-changes-user-not-found",this);return n}[cx("0xd")](e){const t=this[cx("0x116")][cx("0x103")][cx("0x71")](cx("0x4e")),n=Nc(cx("0x130")+e);return t[cx("0xe9")](n)||t[cx("0x8e")]({id:n,name:e})}_createSuggestion(e,t,n,o,r){const s=this[cx("0x11d")](o),i=this[cx("0xd1")][cx("0x48")](e,t,n,s,r,(e=>this[cx("0x8")](n,{attributes:e})));return this[cx("0x3b")](i,cx("0x109"),(()=>{this._updateSuggestionData(n,{state:cx("0x91")})}),{priority:cx("0x9f")}),this[cx("0x3b")](i,"discard",(()=>{this[cx("0x8")](n,{state:"rejected"})}),{priority:cx("0x9f")}),this[cx("0x6d")][cx("0xe4")](n,i),this[cx("0x7d")].set(i,cx("0x2")),i}_splitMarkerName(e){const t=e.split(":");return{group:t[0],type:t[1],subType:t[cx("0x54")]>=5?t[2]:null,id:t[cx("0x54")]<5?t[2]:t[3],authorId:t[cx("0x54")]<5?t[3]:t[4],markerCount:6==t.length?t[5]:null}}_breakSuggestionMarker(e,n,o){const r=e.getFirstRange(),s=r[cx("0x87")],i=r[cx("0xb")];this[cx("0xc1")](e,this[cx("0x21")][cx("0xd0")](s,n));const a=(0,t.uid)(),c=e[cx("0x10b")].id,x=e[cx("0x1e")]+(e[cx("0x11")]?":"+e.subType:"");this[cx("0x126")]({id:a,type:x,createdAt:new Date,authorId:c,originalSuggestionId:e.id,attributes:e[cx("0xab")],data:e.data}),cx("0x101")==e[cx("0x1e")]&&(o=this[cx("0x21")].createPositionBefore(o.parent)),this[cx("0x4c")](x,a,c,this[cx("0x21")].createRange(o,i))}[cx("0x40")](e,t=null){const n=[],o=this._model[cx("0x2b")],r=this[cx("0x116")][cx("0x103")].get(cx("0x4e")).me;for(const s of this[cx("0xa4")]())if(s.isInContent&&(!t||s[cx("0x1e")]==t))for(const t of s[cx("0x20")]()){const i=e[cx("0x87")][cx("0xf0")](t[cx("0xb")])||e[cx("0xb")][cx("0xf0")](t[cx("0x87")]);if(i||e[cx("0x115")](t)){const a=e.containsRange(t)&&ux(o,t[cx("0x87")],e),c=t[cx("0x56")](e)&&ux(o,e[cx("0x87")],t);n[cx("0x102")]({suggestion:s,meta:{isOwn:r==s[cx("0x31")],isNextTo:i,isInsideObject:a,containsRangeInObject:c}});break}}return n}[cx("0x4c")](e,t,n,o,r=null){this[cx("0x21")][cx("0x73")]((s=>{let i=cx("0x122")+e+":"+t+":"+n;r&&(i=i+":"+r),s[cx("0xb7")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[cx("0x41")](e){const t=e[cx("0x125")],n=e[cx("0x123")];e[cx("0x125")]=null,null!=t&&(t.next=null),e[cx("0x123")]=null,null!=n&&(n[cx("0x125")]=null),"ready"==this[cx("0x7d")][cx("0x71")](e)&&(this[cx("0x7d")][cx("0xe4")](e,"removed"),this[cx("0x4d")](cx("0x11c"),e,t,n))}[cx("0x126")](e){const n=e.id,o=this[cx("0xf4")](e);if(this[cx("0xf2")]&&this[cx("0xf2")][cx("0xbe")]){const r=this.editor.plugins[cx("0x71")]("PendingActions"),s=o[cx("0x57")],i=o[cx("0x11")]?o.type+":"+o[cx("0x11")]:o[cx("0x1e")],a=this[cx("0x116")][cx("0x9d")],c=r[cx("0xc0")](Yo(a,"PENDING_ACTION_SUGGESTION")),x={id:n,type:i,hasComments:s,data:e.data||null,originalSuggestionId:e[cx("0x1")]||null,attributes:o[cx("0xab")]};this[cx("0xf2")].addSuggestion(x)[cx("0xfd")]((e=>{o[cx("0x5")]=!0,r[cx("0xbf")](c),e&&e.createdAt&&(this[cx("0x6d")][cx("0x71")](n)[cx("0x120")]=e[cx("0x120")])})).catch((e=>{throw(0,t.logWarning)("error-saving-suggestion-data-suggestion-discarded"),this[cx("0x116")][cx("0xcc")][cx("0x12")]({isUndoable:!1},(()=>{o[cx("0x52")]()})),o[cx("0x94")](),this[cx("0x6d")].delete(o.id),this[cx("0x7d")][cx("0xa3")](o),e}))}return o}[cx("0x8")](e,t){const n=this.editor[cx("0x103")][cx("0x71")](cx("0x12c")),o=this._suggestions[cx("0x71")](e);if(this[cx("0xf2")]&&this[cx("0xf2")][cx("0x67")])if(o[cx("0x5")]){const o=n[cx("0xc0")](Yo(this.editor.locale,cx("0x26")));this[cx("0xf2")][cx("0x67")](e,t).then((()=>{n[cx("0xbf")](o)}))}else o.on("change:_saved",(()=>{this._updateSuggestionData(e,t)}))}[cx("0x84")](e){if(!this[cx("0xf2")]||!this[cx("0xf2")][cx("0xa0")])throw new t.CKEditorError("track-changes-adapter-missing-getsuggestion",this);return this[cx("0xf2")].getSuggestion(e)}_handleNewSuggestionMarker(e){const{id:t,type:n,subType:o,authorId:r}=this[cx("0x47")](e),s=this[cx("0x6d")][cx("0x71")](t)||this[cx("0x46")](n,o,t,r);switch(this._checkSuggestionCorrectness(s,n,o,r),this[cx("0x7d")][cx("0x71")](s)){case"notReady":this[cx("0x84")](t)[cx("0xfd")]((e=>{let n=Promise[cx("0x1a")]();e.hasComments&&(n=this[cx("0xdc")][cx("0xda")]({channelId:this[cx("0x116")][cx("0x45")][cx("0x71")]("collaboration.channelId"),threadId:t})),n[cx("0xfd")]((()=>{this[cx("0xf4")](e)._saved=!0}))})),this[cx("0x7d")][cx("0xe4")](s,"markerReady");break;case cx("0x76"):this[cx("0x8")](t,{state:cx("0x65")});case cx("0x119"):this[cx("0x7d")][cx("0xe4")](s,"ready"),this[cx("0x4d")](cx("0xfc"),s);break;case"ready":this[cx("0x4d")](cx("0xf"),s)}return s[cx("0xb5")](e),s}[cx("0xba")](e){const t=Array[cx("0x86")](e)[cx("0x3e")]((e=>!e.isMultiRange)),n=this.getSuggestions({skipNotAttached:!0}).filter((e=>!e[cx("0x12b")])),o=n[cx("0x3e")]((t=>!e[cx("0x79")](t))),r=new Map(n[cx("0x10")]((e=>[e,this._suggestionFactory[cx("0x112")](e[cx("0x1e")],e[cx("0x11")],"chain")]))),s=new Map(n[cx("0x10")]((e=>[e,e[cx("0xc8")]()]))),i=new Set,a=new Set;for(let e=0;e<t.length;e++)c(t[e],t,e+1);for(let e=0;e<t.length;e++)c(t[e],o,0);for(let e=0;e<t[cx("0x54")];e++){const n=t[e];!a.has(n)&&n.previous&&(n.previous[cx("0x123")]===n&&(n[cx("0x125")][cx("0x123")]=null),n[cx("0x125")]=null),!i.has(n)&&n[cx("0x123")]&&(n[cx("0x123")][cx("0x125")]===n&&(n.next.previous=null),n[cx("0x123")]=null)}function c(e,t,n){for(let o=n;o<t.length;o++){const n=x(e,t[o]);n&&(n[0][cx("0x123")]=n[1],n[1].previous=n[0],i[cx("0xc0")](n[0]),a[cx("0xc0")](n[1]))}}function x(e,t){if(e[cx("0x31")].id!==t.author.id)return null;const n=r[cx("0x71")](e)(e,t,s.get(e),s[cx("0x71")](t));return n&&r[cx("0x71")](t)(e,t,s[cx("0x71")](e),s[cx("0x71")](t))?n[1].commentThread&&n[1][cx("0xc9")][cx("0x54")]?null:n:null}}_joinWithAdjacentSuggestions(e){const t=Array[cx("0x86")](e),n=this[cx("0xa4")]({skipNotAttached:!0}),o=n[cx("0x3e")]((t=>!e[cx("0x79")](t))),r=new Map(t[cx("0x10")]((e=>[e,this[cx("0xd1")].getSuggestionCallback(e.type,e[cx("0x11")],cx("0xae"))]))),s=new Map(n.map((e=>[e,e[cx("0x20")]()])));for(let e=0;e<t[cx("0x54")];e++)if(i(this,t[e],t,e+1))return!0;for(let e=0;e<t[cx("0x54")];e++)if(i(this,t[e],o,0))return!0;return!1;function i(e,t,n,o){for(let i=o;i<n[cx("0x54")];i++){const o=n[i];if(o[cx("0x1e")]!==t[cx("0x1e")]||o.author.id!==t[cx("0x31")].id||o[cx("0x11")]!==t[cx("0x11")])continue;const a=r[cx("0x71")](t),c=s[cx("0x71")](t),x=s[cx("0x71")](o),l=t.commentThread&&t[cx("0xc9")][cx("0x54")],u=o[cx("0xc9")]&&o[cx("0xc9")][cx("0x54")];if(!l&&a(x,c))return e[cx("0x3f")](o,t),s[cx("0xa3")](t),!0;if(!u&&a(c,x))return e[cx("0x3f")](t,o),s[cx("0xa3")](o),!0}return!1}}[cx("0x3f")](e,t){if(e.isMultiRange)for(const n of t[cx("0x20")]())e[cx("0x32")](n);else{const n=t[cx("0xc8")]().end;this[cx("0xc1")](e,this[cx("0x21")].createRange(e[cx("0xc8")]()[cx("0x87")],n))}t[cx("0x15")]()}}(0,t.mix)(xx,t.EmitterMixin);class lx{constructor(e){this[cx("0x10f")]=e,this[cx("0x21")]=e[cx("0xcc")],this[cx("0x28")]=new Map,this[cx("0x9c")]=new Map,this[cx("0xbc")]()}[cx("0x48")](e,t,n,o,r,s){return new Qo(this[cx("0x21")],{type:e,subType:t,id:n,author:o,creator:o,attributes:r,onAttributesChange:s,onAccept:(...n)=>this[cx("0x112")](e,t,"accept")(...n),onDiscard:(...n)=>this.getSuggestionCallback(e,t,cx("0x52"))(...n)})}[cx("0x128")](e,t,n,o){const r=e+":"+t+":"+n;this[cx("0x28")][cx("0xe4")](r,o)}[cx("0x112")](e,t,n){const o=e+":"+t+":"+n;return this[cx("0x28")].get(o)||this[cx("0x9c")][cx("0x71")](e+":"+n)}[cx("0xbc")](){const e=()=>{},t=e=>{e[cx("0x98")](((e,t)=>e.start.isBefore(t.start)?1:-1)),this[cx("0x21")][cx("0x73")]((t=>{for(const n of e){let e;e=n.end[cx("0x12d")]&&n[cx("0xb")][cx("0x10a")]==n[cx("0x87")].nodeAfter?t.createSelection(n[cx("0x87")].nodeAfter,"on"):t[cx("0x83")](n),this[cx("0x21")][cx("0x5f")](e,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(e,t)=>{this[cx("0x21")][cx("0x73")]((n=>{const{commandName:o,commandParams:r=[]}=t,s=e[0];if("$graveyard"==s[cx("0x44")][cx("0x5d")])return;const a=Array[cx("0x86")](this[cx("0x21")].document[cx("0xeb")][cx("0x20")]())[cx("0x10")]((e=>i.LiveRange.fromRange(e)));dx(s)?n[cx("0xed")](this[cx("0x21")][cx("0xd0")](s[cx("0xb")])):n[cx("0xed")](s);for(const e of this._editor[cx("0x29")].commands())e[cx("0x6c")]();r[cx("0x102")]({forceDefaultExecution:!0}),this[cx("0x10f")][cx("0xea")](o,...r);const c=a[cx("0x3e")]((e=>"$graveyard"!=e[cx("0x44")][cx("0x5d")]));c.length>0&&n[cx("0xed")](c);for(const e of a)e[cx("0x50")]()}))},o=(e,t)=>1==e.length&&1==t[cx("0x54")]&&e[0].end[cx("0xf0")](t[0][cx("0x87")]),r=(e,t,n,o)=>kx(e,t,n,o,this[cx("0x21")])?[e,t]:kx(t,e,o,n,this[cx("0x21")])?[t,e]:null;this[cx("0x9c")][cx("0xe4")](cx("0xbb"),e),this._defaultCallbacks[cx("0xe4")](cx("0xa1"),t),this[cx("0x9c")][cx("0xe4")]("insertion:join",o),this[cx("0x9c")].set(cx("0x4b"),r),this[cx("0x9c")].set(cx("0x5a"),t),this._defaultCallbacks[cx("0xe4")](cx("0xc7"),e),this[cx("0x9c")].set(cx("0xf3"),o),this[cx("0x9c")].set(cx("0x104"),r),this[cx("0x9c")][cx("0xe4")](cx("0x33"),n),this[cx("0x9c")][cx("0xe4")](cx("0xd5"),e),this._defaultCallbacks[cx("0xe4")]("formatInline:join",o),this[cx("0x9c")][cx("0xe4")](cx("0x8b"),e),this[cx("0x9c")][cx("0xe4")]("formatBlock:accept",n),this._defaultCallbacks[cx("0xe4")](cx("0x117"),e),this[cx("0x9c")][cx("0xe4")](cx("0x62"),o),this[cx("0x9c")][cx("0xe4")](cx("0xa7"),e)}}function ux(e,t,n){for(const o of t[cx("0x10a")][cx("0xa5")]({includeSelf:!0,parentFirst:!0})){if(o[cx("0x44")]==o)return!1;if(!n[cx("0x1f")](o))return!1;if(e[cx("0x99")](o)||e[cx("0x107")](o))return!0}}function dx(e){return e[cx("0xb")][cx("0x10a")]==e[cx("0x87")].nodeAfter&&e[cx("0xb")][cx("0xf9")]}function gx(e,t,n,o){const r=e=>!e[cx("0x10e")].is(cx("0x9b"))&&!o[cx("0x99")](e[cx("0x10e")]),s=e[cx("0x87")][cx("0x8f")](r),i=e[cx("0xb")][cx("0x8f")](r,{direction:cx("0x1b")});return!(e[cx("0x87")][cx("0xf0")](s)&&e[cx("0xb")].isEqual(i)||(s[cx("0xcb")](i)?n.updateMarker(t,{range:n[cx("0xd0")](s,i)}):n[cx("0xde")](t),0))}function mx(e){return Nc(e)}function fx(e){const t=e.start[cx("0xf5")];return t&&t.is(cx("0xec"))}function hx(e,t){const n=t[cx("0x2b")][cx("0x99")](e)||t[cx("0x2b")][cx("0x51")](e);return t[cx("0xd0")](t[cx("0x106")](e,"before"),n?t[cx("0x6b")](e):t.createPositionAt(e,cx("0xb")))}function kx(e,t,n,o,r){if(n[cx("0xb")].isEqual(o.start))return!0;if(e.type!=t[cx("0x1e")])return!1;if(!n[cx("0xb")][cx("0x82")](o[cx("0x87")]))return!1;const s=r[cx("0xd0")](n.end,o[cx("0x87")])[cx("0x77")]();for(const e of s)if([cx("0x8a"),cx("0xbd")].includes(e.type)&&r.schema.isLimit(e[cx("0x10e")]))return!1;return!0}const bx=["stopListening","_acceptCommand","unbind","model","destroy","PENDING_ACTION_SUGGESTION","listenTo","commentThreadController","_editor","PendingActions","isEnabled","get","add","_removePendingAction","isDirty","_discardCommand","commands","plugins","bind","view","locale","acceptSuggestion","execute","_pendingAction","discardSuggestion","_setPendingAction"];var px,_x;px=bx,_x=122,function(e){for(;--e;)px.push(px.shift())}(++_x);const vx=function(e,t){return bx[e-=0]};class Ex{constructor(e,t,n,o){this[vx("0xb")]=t,this.view=n,this[vx("0xf")]=o,this[vx("0x10")]=e,this[vx("0x9")]=e[vx("0x18")][vx("0x13")](vx("0x3")),this._discardCommand=e[vx("0x18")][vx("0x13")]("discardSuggestion"),this[vx("0x1")][vx("0x0")](vx("0x12")).to(this[vx("0x9")]),this[vx("0x5")]=null,n.isDirty&&this[vx("0x7")](),this[vx("0xe")](n,vx("0x3"),(()=>this[vx("0x3")]())),this[vx("0xe")](n,"discardSuggestion",(()=>this.discardSuggestion())),this.listenTo(n,"change:isDirty",(()=>{n[vx("0x16")]?this._setPendingAction():this._removePendingAction()}))}acceptSuggestion(){this._acceptCommand[vx("0x4")](this[vx("0xb")].id)}[vx("0x6")](){this[vx("0x17")][vx("0x4")](this.model.id)}[vx("0xc")](){this[vx("0x1")][vx("0xa")](vx("0x12")),this[vx("0x8")](),this[vx("0xf")][vx("0xc")](),this[vx("0x5")]&&this[vx("0x15")]()}[vx("0x7")](){const e=Yo(this[vx("0x10")][vx("0x2")],vx("0xd"));this._pendingAction=this[vx("0x10")][vx("0x19")].get("PendingActions")[vx("0x14")](e)}_removePendingAction(){this._editor[vx("0x19")][vx("0x13")](vx("0x11")).remove(this._pendingAction),this._pendingAction=null}}(0,t.mix)(Ex,t.ObservableMixin);const yx=["assign","disableComments","hasDirtyComment","set","setData","length","isActive","element","cancel","bind","commentsListView","isReadOnly","removeComment","locale","commentThread","authoredAt","_model","isDirty","commentInputView","isEnabled","value","descriptionParts","_config","_createCommentThreadInputView","delegate","focus","_createCommentViews","_localUser","destroy","commentThreadInputView","CommentView","disabledSubmit","addComment","submit"];var Tx,Cx;Tx=yx,Cx=486,function(e){for(;--e;)Tx.push(Tx.shift())}(++Cx);const wx=function(e,t){return yx[e-=0]};class Ax extends r.View{constructor(e,t,n,o){super(e),this[wx("0x0")]=null,this[wx("0x13")]=null,this[wx("0x1b")]("isActive",!1),this[wx("0x1b")](wx("0x5"),t[wx("0x5")]),this.bind(wx("0x5")).to(t),this[wx("0x1b")](wx("0xb"),[]),this[wx("0x1b")](wx("0x7"),!1),this[wx("0x1b")](wx("0x9"),!1),this[wx("0x6")]=t,this[wx("0x11")]=n,this[wx("0xc")]=o,o[wx("0x19")]?this[wx("0x1b")](wx("0x1d"),1):this[wx("0x10")]()}[wx("0xf")](){this[wx("0x1f")][wx("0xf")]()}[wx("0x12")](){this[wx("0x0")]&&this[wx("0x0")][wx("0x12")](),this[wx("0x13")]&&this[wx("0x13")].destroy(),super[wx("0x12")]()}_createCommentViews(){const{CommentsListView:e}=this[wx("0xc")];this[wx("0x0")]=new e(this.locale,this._model[wx("0x4")],Object[wx("0x18")]({CommentView:this[wx("0xc")][wx("0x14")]},this[wx("0xc")])),this[wx("0x0")][wx("0xe")](wx("0x2")).to(this),this.commentsListView[wx("0xe")]("updateComment").to(this),this.commentsListView[wx("0x21")]("isActive").to(this),this[wx("0x1b")](wx("0x1d"),this[wx("0x0")].length+1),this[wx("0x21")](wx("0x1d")).to(this.commentsListView,"length",(e=>e+1)),this[wx("0x13")]=this[wx("0xd")](),this.on(wx("0x2"),(()=>this.focus())),this.bind(wx("0x7")).to(this.commentsListView,wx("0x1a"),this[wx("0x13")][wx("0x8")],wx("0xa"),((e,t)=>e||!!t))}[wx("0xd")](){const{CommentThreadInputView:e}=this[wx("0xc")],t=new e(this[wx("0x3")],this[wx("0x11")],this[wx("0xc")].editorConfig),n=t.commentInputView;return t[wx("0x21")]("showInput").to(this,wx("0x1e"),this._model[wx("0x4")],wx("0x1"),n,wx("0xa"),((e,t,n)=>!!n||e&&!t)),n.on(wx("0x17"),((e,t)=>{this.fire(wx("0x16"),t),n.editor[wx("0x1c")]("")})),n.on(wx("0x20"),(()=>this.focus())),n[wx("0x21")](wx("0x15")).to(this._model.commentThread,wx("0x1")),t}}const Rx=['"></span>',"map",".ck-annotation__content-wrapper","source","ck-suggestion-wrapper","userView","ck-annotation__info-name","ck-suggestion-","innerText","ck-annotation","ck-annotation__content-wrapper","getExternalSuggestionNote","ck-comment__info-time","descriptionParts","description","isEnabled","ck-suggestion__actions","getUserViewNotificationText","ck-suggestion--accept","_createButton","push","extendTemplate","EXTERNAL_IMPORT_WORD_SUGGESTION","render","acceptButton","getTemplate","title","ck-suggestion__main","author","ck-suggestion__info","<p>","span","ck-annotation__user","fire","element","importWord","innerHTML","</span>",'<span class="ck-suggestion-type">',"color","discardSuggestion","ck-annotation__actions","EXTERNAL_SUGGESTION",'<span class="ck-suggestion-color" style="background-color: ',"bind","EXTERNAL_AVATAR","isActive","commentThreadInputView","change:description","time","createElement","setTemplate","value","commentsListView","ck-annotation__info-time","_model","ck-suggestion--discard","_descriptionElement","_config","ck-suggestion__user","creator","ck-suggestion--disabled-comments","attributes","check","@external","discardButton","ck-comment__external","ck-suggestion__info-name","isExternal","name","querySelector","set","type","div","locale","authoredAt"];var Ix,Sx;Ix=Rx,Sx=412,function(e){for(;--e;)Ix.push(Ix.shift())}(++Sx);const Mx=function(e,t){return Rx[e-=0]};class Nx extends Ax{constructor(t,n,o,r){super(t,n,o,r),this[Mx("0x27")](Mx("0x28"),""),this[Mx("0xc")](Mx("0x28")).to(this,Mx("0x39"),(e=>e&&e[0]?e[0].type:"")),this.bind(Mx("0x3a")).to(this,"descriptionParts",this,Mx("0xe"),((e,t)=>{let n="";for(const t of e)n+=Mx("0x4a")+Lx(t.content,t[Mx("0x7")])+"</p>";return t?n:(0,s.trimHtml)(n,{limit:140})})),this._descriptionElement=null,this[Mx("0x44")]=this[Mx("0x3f")](Yo(t,"Accept suggestion"),e.icons[Mx("0x1f")],Mx("0x3e"),"acceptSuggestion","sw"),this[Mx("0x21")]=this[Mx("0x3f")](Yo(t,"Discard suggestion"),e.icons.cancel,Mx("0x18"),Mx("0x8"),"sw"),this.userView=new s.UserView(t,this._model.author,this[Mx("0x3d")]()),this[Mx("0x31")][Mx("0x41")]({attributes:{class:[Mx("0x1b"),Mx("0x0")]}}),this[Mx("0x13")](this.getTemplate())}[Mx("0x45")](){const e=this.bindTemplate,t=[{tag:Mx("0x29"),attributes:{class:[Mx("0x49"),"ck-annotation__info"]},children:[{tag:Mx("0x4b"),children:[{text:this[Mx("0x31")][Mx("0x25")]}],attributes:{class:[Mx("0x23"),Mx("0x32")]}},{tag:Mx("0x11"),attributes:{datetime:e.to(Mx("0x2b")),class:[Mx("0x38"),Mx("0x16")]},children:[{text:e.to(Mx("0x2b"),(e=>this[Mx("0x1a")].formatDateTime(e)))}]}]},{tag:Mx("0x29"),attributes:{class:[Mx("0x3c"),Mx("0x9")]},children:[this[Mx("0x44")],this[Mx("0x21")]]},{tag:"div",attributes:{class:[Mx("0x36")]}}];this._model[Mx("0x24")]&&t.push({tag:Mx("0x29"),attributes:{class:[Mx("0x22")]},children:[{text:this[Mx("0x37")]()}]});const n={tag:Mx("0x29"),attributes:{class:[Mx("0x30"),e.if("isActive","ck-suggestion-wrapper--active"),e.to("type",(e=>Mx("0x33")+e)),this[Mx("0x1a")].disableComments&&Mx("0x1d")],"data-suggestion-id":this[Mx("0x17")].id,"data-thread-id":this[Mx("0x17")].commentThread.id,"data-author-id":this[Mx("0x17")][Mx("0x48")].id,tabindex:-1},children:[{tag:"div",attributes:{class:["ck-suggestion",Mx("0x35")]},children:[this.userView,{tag:Mx("0x29"),attributes:{class:[Mx("0x47"),"ck-annotation__main"]},children:t}]}]};return this[Mx("0x15")]&&this[Mx("0xf")]&&n.children[Mx("0x40")](this[Mx("0x15")],this[Mx("0xf")]),n}[Mx("0x43")](){super[Mx("0x43")](),this[Mx("0x19")]=this[Mx("0x2")][Mx("0x26")](Mx("0x2e")),this._descriptionElement[Mx("0x4")]=this[Mx("0x3a")],this.on(Mx("0x10"),((e,t,n)=>{this[Mx("0x19")][Mx("0x4")]=n}))}_createButton(e,t,n,o,s){const i=new r.ButtonView(this[Mx("0x2a")]);return i.set({label:e,icon:t,tooltip:!0,tooltipPosition:s}),i.extendTemplate({attributes:{class:n}}),i.on("execute",(()=>{this[Mx("0x1")](o,this._model.id)})),i.bind(Mx("0x3b")).to(this),i}[Mx("0x37")](){return"importWord"===this._model[Mx("0x1e")]["@external"][Mx("0x2f")]?Yo(this[Mx("0x2a")],Mx("0x42")):Yo(this.locale,Mx("0xa"))}[Mx("0x3d")](){return this[Mx("0x17")][Mx("0x24")]?Mx("0x3")===this._model[Mx("0x1e")][Mx("0x20")][Mx("0x2f")]?Yo(this.locale,"EXTERNAL_IMPORT_WORD_AVATAR",this._model.creator[Mx("0x25")]):Yo(this[Mx("0x2a")],Mx("0xd"),this[Mx("0x17")][Mx("0x1c")][Mx("0x25")]):null}}function Lx(e,t){let n="";return n+=e.split("*")[Mx("0x2d")](((e,t)=>t%2!=0?Mx("0x6")+Ox(e)+Mx("0x5"):Ox(e))).join(""),t&&(n+=Mx("0xb")+t[Mx("0x14")]+'" title="'+t[Mx("0x46")]+Mx("0x2c")),n}function Ox(e){const t=document[Mx("0x12")](Mx("0x4b"));return t[Mx("0x34")]=e,t[Mx("0x4")]}const Fx=["discardSelectedSuggestions","addSourceCollector","refreshSelectedViews","TrackChangesEditing","hasSuggestion","getByInnerView","trackChanges.disableComments","createCommentThreadController","add","length","filter","editor","previous","createAnnotationView","listenTo","trackChanges","getRange","change:previous","execute","_handleSuggestionControllerDelayed","getFirstRange","getContainedElement","isInContent","_suggestionToController","_viewToController","Discard all selected suggestions","_handleControllerBuffer","EditorAnnotations","CommentsUI","acceptButton","CommentView","remove","arrowView","config","values","button","mainView","_createUIButton","_disableComments","innerView","_updateController","define","init","unbind","isDirty","stopListening","_annotationViews","getAllAdjacentSuggestions","type","has","commentThread","set","_destroyController","reduce","focus","plugins","suggestionChanged","commands","isMultiRange","discardAllSuggestions","destroy","lowest","discardButton","getMarkerNames","from","isEnabled","size","createAnnotation","comments.maxThreadTotalWeight","requires","acceptSelectedSuggestions","bind","TrackChangesUI","clear","_initializeController","Annotations","locale","head","view","descriptionParts","isOn","keys","editing","CommentsRepository","model","buttonView","getJoined","addComment","suggestionUnloaded","actionView","Track changes","suggestion-","value","_descriptionFactory","pluginName","push","delete","get","separator","activeMarkers","commandName"];var Px,Dx;Px=Fx,Dx=480,function(e){for(;--e;)Px.push(Px.shift())}(++Dx);const Bx=function(e,t){return Fx[e-=0]};class jx extends e.Plugin{static get[Bx("0x5e")](){return[xx,s.Users,Bx("0x7"),Bx("0x64"),"EditorAnnotations"]}static get[Bx("0x12")](){return Bx("0x61")}constructor(e){super(e),this[Bx("0x30")]=new Map,this._viewToController=new Map,this._annotationViews=new Map,this[Bx("0x33")]=new Map;const t=this[Bx("0x24")][Bx("0x3a")];t[Bx("0x42")]("trackChanges.SuggestionThreadView",Nx),t[Bx("0x42")]("trackChanges.disableComments",!1),this[Bx("0x3f")]=t[Bx("0x15")](Bx("0x1f"))}_handleSuggestionControllerDelayed(e,t){0===this[Bx("0x33")][Bx("0x5b")]&&setTimeout((()=>{for(const[e,t]of this[Bx("0x33")]){const n=this[Bx("0x30")][Bx("0x4a")](e);n||t?n&&t&&this[Bx("0x4d")](e):this._initializeController(e)}this[Bx("0x24")][Bx("0x50")][Bx("0x15")](Bx("0x34"))[Bx("0x1b")](),this[Bx("0x33")][Bx("0x62")]()}),10),this[Bx("0x33")].set(e,t)}[Bx("0x43")](){const e=this[Bx("0x24")],t=e[Bx("0x50")][Bx("0x15")](xx),n=e[Bx("0x50")][Bx("0x15")](Bx("0x64")),o=e[Bx("0x50")][Bx("0x15")]("EditorAnnotations"),r=e[Bx("0x50")][Bx("0x15")](Bx("0x7"));e.ui.componentFactory[Bx("0x21")](Bx("0x28"),(e=>this[Bx("0x3e")](e))),o[Bx("0x1a")]((()=>{const e=[];for(const[t,n]of Array.from(this[Bx("0x30")])){const o=t[Bx("0x48")](),r=[];for(const e of o){if(!e[Bx("0x2f")])continue;if(e[Bx("0x53")]){r[Bx("0x13")](...e.getRanges());continue}const t=e[Bx("0x2d")]();if(r[Bx("0x22")]>0){const e=r[0][Bx("0xa")](t);if(e){r[0]=e;continue}}r.push(t)}e[Bx("0x13")]([n[Bx("0x2")],r])}return e})),this[Bx("0x27")](t,"suggestionLoaded",((e,t)=>{this[Bx("0x27")](t,Bx("0x2a"),((e,n,o,r)=>{t[Bx("0x2f")]&&(null==o?(this[Bx("0x41")](r[Bx("0x1")]),this[Bx("0x2c")](t,!1)):(this._updateController(o[Bx("0x1")]),this[Bx("0x2c")](t,!0)))})),null===t[Bx("0x25")]?this._handleSuggestionControllerDelayed(t,!1):this[Bx("0x41")](t.head)})),this.listenTo(t,Bx("0xc"),((e,t,n)=>{this[Bx("0x46")](t,Bx("0x2a")),this._handleControllerBuffer[Bx("0x14")](t);const o=n?n.head:t,r=this[Bx("0x30")][Bx("0x15")](o);null!==n&&this[Bx("0x41")](o),null===n&&r&&this[Bx("0x4d")](t)})),this.listenTo(t,Bx("0x51"),((e,t)=>{this[Bx("0x41")](t)})),this[Bx("0x27")](n,"change:activeAnnotations",((e,n,o)=>{const r=Array[Bx("0x59")](o,(e=>e[Bx("0x40")]))[Bx("0x23")]((e=>this._viewToController[Bx("0x4a")](e))),s=[];for(const e of r){const t=this._viewToController[Bx("0x15")](e).model[Bx("0x48")]();s[Bx("0x13")](...t[Bx("0x4e")](((e,t)=>[...e,...t[Bx("0x58")]()]),[]))}t[Bx("0x17")]=s})),this[Bx("0x27")](r,Bx("0xb"),((e,{threadId:n,isFromAdapter:o})=>{if(o||!t[Bx("0x1d")](n))return;const r=t.getSuggestion(n);this[Bx("0x30")][Bx("0x15")](r)[Bx("0x2")][Bx("0x4f")]()}),{priority:Bx("0x56")})}[Bx("0x3e")](e){const n=(0,r.createDropdown)(e,r.SplitButtonView),o=this[Bx("0x24")][Bx("0x52")][Bx("0x15")](Bx("0x28")),s=Yo(e,Bx("0xe"));n.buttonView[Bx("0x4c")]({tooltip:s,label:s,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-2022, 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[Bx("0x9")][Bx("0x60")]("isOn").to(o,Bx("0x10")),n[Bx("0x9")].on(Bx("0x2b"),(()=>{o[Bx("0x2b")](),this.editor.editing[Bx("0x2")][Bx("0x4f")]()}));const i=new t.Collection,a=[{type:"switchbutton",model:{withText:!0,label:s,commandName:Bx("0x28")}},{type:Bx("0x16")},{type:Bx("0x3c"),model:{withText:!0,label:Yo(e,"Accept all suggestions"),commandName:"acceptAllSuggestions"}},{type:Bx("0x3c"),model:{withText:!0,label:Yo(e,"Accept all selected suggestions"),commandName:Bx("0x5f")}},{type:Bx("0x3c"),model:{withText:!0,label:Yo(e,"Discard all suggestions"),commandName:Bx("0x54")}},{type:Bx("0x3c"),model:{withText:!0,label:Yo(e,Bx("0x32")),commandName:Bx("0x19")}}];for(const e of a){const t={type:e[Bx("0x49")]};if(e[Bx("0x8")]){const n=new r.Model(e[Bx("0x8")]),o=this[Bx("0x24")][Bx("0x52")][Bx("0x15")](n[Bx("0x18")]);n.bind(Bx("0x4"),Bx("0x5a")).to(o,Bx("0x10"),Bx("0x5a")),t[Bx("0x8")]=n}i[Bx("0x21")](t)}(0,r.addListToDropdown)(n,i);const c=a[Bx("0x23")]((e=>null!=e.model)).map((e=>this[Bx("0x24")][Bx("0x52")][Bx("0x15")](e[Bx("0x8")].commandName)));return n.buttonView.actionView[Bx("0x44")](Bx("0x5a")),n[Bx("0x9")][Bx("0x39")].unbind(Bx("0x5a")),n[Bx("0x9")][Bx("0xd")].bind("isEnabled").to(o,"isEnabled"),n[Bx("0x9")].arrowView[Bx("0x60")]("isEnabled").toMany(c,Bx("0x5a"),((...e)=>e.some((e=>e)))),n.on(Bx("0x2b"),(e=>{this.editor[Bx("0x2b")](e.source[Bx("0x18")]),this[Bx("0x24")][Bx("0x6")].view[Bx("0x4f")]()})),n}[Bx("0x63")](e){const t=this[Bx("0x24")],n=t.config,o=t[Bx("0x50")][Bx("0x15")]("Annotations"),r=t[Bx("0x50")][Bx("0x15")](Bx("0x7")),i=t[Bx("0x50")].get(Bx("0x34")),a=e[Bx("0x48")]().filter((e=>e[Bx("0x2f")])),c=t[Bx("0x50")][Bx("0x15")](s.Users).me,x=n[Bx("0x15")](Bx("0x28")).SuggestionThreadView,{CommentsListView:l,CommentThreadInputView:u}=t[Bx("0x50")][Bx("0x15")](Bx("0x35"));let d,g;this[Bx("0x47")].has(e.id)?(g=this._annotationViews[Bx("0x15")](e.id),d=g[Bx("0x3d")]):(d=new x(t[Bx("0x0")],e,c,{disableComments:this._disableComments,editorConfig:n[Bx("0x15")]("comments.editorConfig"),maxCommentsWhenCollapsed:n[Bx("0x15")]("comments.maxCommentsWhenCollapsed"),maxThreadTotalWeight:n.get(Bx("0x5d")),maxCommentCharsWhenCollapsed:n[Bx("0x15")]("comments.maxCommentCharsWhenCollapsed"),formatDateTime:(0,s.getDateTimeFormatter)(n[Bx("0x15")](Bx("0x0"))),CommentView:n[Bx("0x15")]("comments")[Bx("0x37")],CommentsListView:l,CommentThreadInputView:u}),d[Bx("0x36")].on("execute",(()=>{t.editing[Bx("0x2")][Bx("0x4f")]()})),d[Bx("0x57")].on(Bx("0x2b"),(()=>{t[Bx("0x6")][Bx("0x2")][Bx("0x4f")]()})),g=o[Bx("0x26")](this.editor.locale,d),g[Bx("0x60")](Bx("0x45")).to(d,Bx("0x45")),g[Bx("0x60")]("length").to(d),g.bind(Bx("0x49")).to(d,Bx("0x49"),(e=>Bx("0xf")+e)),this._annotationViews[Bx("0x4c")](e.id,g));const m=r[Bx("0x20")](e[Bx("0x4b")],d),f=new Ex(t,e,d,m);d[Bx("0x3")]=t[Bx("0x50")][Bx("0x15")](Bx("0x1c"))[Bx("0x11")].getDescriptions(a),this[Bx("0x30")].set(e,f),this[Bx("0x31")][Bx("0x4c")](d,f);const h=o[Bx("0x5c")]({view:g,target:()=>{const e=a[0].getFirstMarker();if(!e)return null;const n=e[Bx("0x29")]()[Bx("0x2e")]();return n&&!t.editing.mapper.toViewElement(n)?null:(0,s.getMarkerDomElement)(t.editing,e)||null},type:()=>Bx("0xf")+f[Bx("0x2")][Bx("0x49")]});o[Bx("0x21")](h),i.registerAnnotation(h)}[Bx("0x4d")](e){const t=this.editor.plugins.get(Bx("0x64")),n=this._suggestionToController[Bx("0x15")](e),o=n[Bx("0x2")],r=t[Bx("0x1e")](o);r&&t[Bx("0x38")](r),this[Bx("0x30")][Bx("0x14")](e),this[Bx("0x31")][Bx("0x14")](o),n.destroy()}[Bx("0x41")](e){if(!e[Bx("0x2f")]||!this[Bx("0x30")][Bx("0x4a")](e))return;const t=this[Bx("0x24")][Bx("0x50")][Bx("0x15")](Bx("0x1c")),n=this[Bx("0x30")][Bx("0x15")](e),o=e[Bx("0x48")]();n[Bx("0x2")][Bx("0x3")]=t[Bx("0x11")].getDescriptions(o)}[Bx("0x55")](){for(const e of this[Bx("0x30")][Bx("0x5")]())this._destroyController(e);for(const e of this[Bx("0x47")][Bx("0x3b")]())e[Bx("0x3d")][Bx("0x55")]();super[Bx("0x55")]()}}var Ux,Gx,Hx=["getSuggestion","requires","TrackChanges","get","addSuggestion","editor","addSuggestionData","Comments","getSuggestions","plugins","adapter"];Ux=Hx,Gx=175,function(e){for(;--e;)Ux.push(Ux.shift())}(++Gx);var Vx=function(e,t){return Hx[e-=0]};class zx extends e.Plugin{static get[Vx("0x2")](){return[xx,jx,Vx("0x8")]}static get pluginName(){return Vx("0x3")}set[Vx("0x0")](e){this[Vx("0x6")].plugins[Vx("0x4")](xx).adapter=e}get adapter(){return this.editor.plugins[Vx("0x4")](xx)[Vx("0x0")]}[Vx("0x5")](e){return this.editor.plugins[Vx("0x4")](xx)[Vx("0x7")](e)}getSuggestions(e){return this[Vx("0x6")][Vx("0xa")][Vx("0x4")](xx)[Vx("0x9")](e)}[Vx("0x1")](e){return this.editor.plugins.get(xx).getSuggestion(e)}}const Wx=["getDataWithDiscardedSuggestions","config","set","pluginName","addUser","TrackChangesDataGetter","requires","create","from","concat","RealTimeCollaborativeEditing","discardAllSuggestions","getSuggestions","model","execute","TrackChangesEditing","filter","data","extraPlugins","appendChild","users","has","editor","editorCreator","div","Users","end","CommentsRepository","addSuggestionData","map","push","context","toolbar","name","createElement","RealTimeCollaborativeComments","init","get","result","reduce","document","add","useAnonymousUser","getDataWithAcceptedSuggestions","acceptAllSuggestions","_adapter","define","function","trackChangesData","plugins","createDocumentFragment","initialData"];var Kx,qx;Kx=Wx,qx=444,function(e){for(;--e;)Kx.push(Kx.shift())}(++qx);const Xx=function(e,t){return Wx[e-=0]},Zx=[Xx("0x17"),Xx("0x3"),Xx("0x4")],$x=[Xx("0x22"),Xx("0x7"),"RealTimeCollaborativeTrackChanges","RealTimeCollaborativeRevisionHistory","Autosave","WordCount"];class Jx extends e.Plugin{static get requires(){return[xx]}static get pluginName(){return"TrackChangesData"}init(){const e=this[Xx("0x2e")];if(e.config[Xx("0x12")]("trackChangesData.editorCreator",(t=>e.constructor[Xx("0x1f")]("",t))),Xx("0x13")!=typeof e.config[Xx("0x9")](Xx("0x14"))[Xx("0x2f")])throw new t.CKEditorError("track-changes-data-invalid-editor-creator")}[Xx("0xf")](e){return Yx(this.editor,!0,e)}[Xx("0x18")](e){return Yx(this.editor,!1,e)}}class Qx extends e.Plugin{static get pluginName(){return Xx("0x1d")}[Xx("0x8")](){this[Xx("0xa")]=Xx("0x32"),this[Xx("0x2e")].plugins.get(Xx("0x33"))[Xx("0x11")]={getCommentThread:()=>new Promise((()=>{}))},this[Xx("0x2e")].plugins[Xx("0x9")](Xx("0x27"))[Xx("0x11")]=null}}async function Yx(e,t,n){const o=function(e){const t={};for(const n of e[Xx("0x19")].names())Zx.includes(n)||(t[n]=e.config.get(n));const n=e.constructor.builtinPlugins||[],o=t[Xx("0x2a")]||[];delete t[Xx("0x2a")];const r=n[Xx("0x21")](t[Xx("0x15")])[Xx("0x21")](o)[Xx("0x1")]((e=>"string"==typeof e?n.find((t=>t[Xx("0x1b")]==e)):e)),s=Array[Xx("0x20")](new Set(r));return t[Xx("0x15")]=s[Xx("0x28")]((e=>el(e,new Set))),t[Xx("0x15")][Xx("0x2")](Qx),t[Xx("0x15")].push(xx),t}(e),r=document[Xx("0x16")](),s=e[Xx("0x19")].get("trackChangesData").editorCreator,i=await s(o,(()=>function(e){const t=document[Xx("0x6")](Xx("0x30"));return e[Xx("0x2b")](t),t}(r)));!function(e,t){const n=e[Xx("0x25")][Xx("0xc")].getRootNames()[Xx("0xb")](((t,n)=>(t[n]=e.data[Xx("0x9")]({rootName:n}),t)),{}),o=e.plugins[Xx("0x9")](Xx("0x31"))[Xx("0x2c")][Xx("0x1")]((e=>({id:e.id}))),r=e.plugins[Xx("0x9")](Xx("0x27"))[Xx("0x24")]({skipNotAttached:!0,toJSON:!0}),s=t.plugins[Xx("0x9")](Xx("0x31")),i=t[Xx("0x15")][Xx("0x9")](Xx("0x27"));for(const e of o)s.getUser(e.id)||s[Xx("0x1c")](e);s.me||s[Xx("0xe")]();for(const e of r)i[Xx("0x0")](e);t[Xx("0x29")][Xx("0x1a")](n)}(e,i),i[Xx("0x26")](Xx(t?"0x10":"0x23"));const a=i.data[Xx("0x9")](n);return await i.destroy(),a}function el(e,t){if(t[Xx("0x2d")](e))return!0;t[Xx("0xd")](e);const n=Xx("0x13")==typeof e?e[Xx("0x1b")]||e[Xx("0x5")]:e;return(!n||!$x.includes(n))&&(!e[Xx("0x1e")]||e[Xx("0x1e")].every((e=>el(e,t))))}})(),(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(o){var r=e[o];if(void 0!==r)return r.exports;var s=e[o]={exports:{}};return t[o](s,s.exports,n),s.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:()=>La,TrackChanges:()=>Xa,TrackChangesData:()=>tc});var t=n(704),e=n(209),r=n(273),s=n(417),i=n(492),x=n(995);const a=["refresh","affectsData","isEnabled","value","TrackChangesCommand","execute","commands","editor","_disableUnsupportedCommands","has","_enableCommands","_enabledCommands"];var c,l;c=a,l=155,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("0x0")]=e,this.value=!1,this[u("0x1")]()}[u("0x1")](){this[u("0x3")]=!0}[u("0x6")](){this[u("0x4")]=!this.value,this[u("0x4")]?this[u("0x9")]():this._enableCommands()}_disableUnsupportedCommands(){for(const t of this[u("0x8")].commands[u("0x7")]())t[u("0x2")]&&!this[u("0x0")][u("0xa")](t)&&t.forceDisabled(u("0x5"))}[u("0xb")](){for(const t of this[u("0x8")][u("0x7")][u("0x7")]())t[u("0x2")]&&!this[u("0x0")][u("0xa")](t)&&t.clearForceDisabled(u("0x5"))}}const g=["_suggestions","get","editor","refresh","plugins","TrackChangesEditing","execute","track-changes-accept-suggestion-not-found","acceptSuggestion"];var m,f;m=g,f=270,function(t){for(;--t;)m.push(m.shift())}(++f);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this[h("0x0")]=e,this[h("0x3")]()}[h("0x3")](){this.isEnabled=!0}[h("0x6")](t){const n=this[h("0x0")].get(t);if(!n)throw new e.CKEditorError(h("0x7"),this);this[h("0x2")][h("0x4")][h("0x1")](h("0x5"))[h("0x8")](n)}}const b=["TrackChangesEditing","get","plugins","track-changes-discard-suggestion-not-found","_suggestions","isEnabled","editor","refresh"];var E,_;E=b,_=367,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class C extends t.Command{constructor(t,e){super(t),this._suggestions=e,this.refresh()}[T("0x0")](){this[T("0x6")]=!0}execute(t){const n=this[T("0x5")].get(t);if(!n)throw new e.CKEditorError(T("0x4"),this);this[T("0x7")][T("0x3")][T("0x2")](T("0x1")).discardSuggestion(n)}}const y=["createPositionAfter","isIntersecting","getRange","execute","add","isMultiRange","isInContent","createRange","replace","isObject","sort","createPositionBefore","length","end","createPositionAt","deletion","from","getMarkers","getRanges","next","isTouching","schema","content","type"," [color ","isCollapsed","start","isArray","change","push"];var k,A;k=y,A=197,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0x17")](((t,e)=>"deletion"==t[v("0x6")]&&v("0x1c")!=e.type?-1:"deletion"!=t.type&&"deletion"==e[v("0x6")]?1:0))}function I(t,e){let n,o=0;const r=[],s=e[v("0x4")];for(;o<t[v("0x19")];){const i=t[o],x=t[o+1];n||(n=e[v("0x18")](i)),S(e,i,x)||(r[v("0xc")](e[v("0x14")](n,s[v("0x16")](i)?e.createPositionAfter(i):e[v("0x1b")](i,v("0x1a")))),n=null),o++}return r}function S(t,e,n){if(!n)return!1;const o=t[v("0xd")](e),r=t[v("0x18")](n);return o[v("0x3")](r)}function L(t,e,n){for(;n[v("0x19")];){const o=n.splice(0,100);t[v("0xb")]((()=>{for(const t of o)t.isInContent&&e[v("0x10")](t.id)}))}}const M=["isEnabled","some","_suggestions","editor","from","isInContent","refresh","_command","values"];var N,w;N=M,w=372,function(t){for(;--t;)N.push(N.shift())}(++w);const O=function(t,e){return M[t-=0]};class D extends t.Command{constructor(t,e,n){super(t),this[O("0x4")]=e,this[O("0x8")]=n,this[O("0x3")]()}[O("0x3")](){const t=Array.from(this[O("0x8")].values())[O("0x7")]((t=>t[O("0x2")]));this.isEnabled=this[O("0x4")][O("0x6")]&&t}execute(){const t=R(Array[O("0x1")](this._suggestions[O("0x5")]()));L(this[O("0x0")].model,this[O("0x4")],t)}}const F=["model","_command","values","size","_selectedSuggestions","_suggestions","from","isEnabled","refresh","editor","execute","document","selection"];var P,B;P=F,B=459,function(t){for(;--t;)P.push(P.shift())}(++B);const j=function(t,e){return F[t-=0]};class U extends t.Command{constructor(t,e,n){super(t),this[j("0xa")]=e,this[j("0x1")]=n,this[j("0x0")]=new Set,this[j("0x4")]()}[j("0x4")](){const t=this[j("0x5")].model[j("0x7")][j("0x8")],e=Array[j("0x2")](this[j("0x1")][j("0xb")]());this[j("0x0")]=function(t,e){const n=Array[v("0x1d")](t[v("0x1")]()),o=new Set;for(const r of e)if(r[v("0x13")])for(const e of n)for(const n of r[v("0x0")]()){const s=n[v("0xf")]();(e[v("0xe")](s)||t[v("0x8")]&&!r[v("0x12")]&&r[v("0x2")]&&s[v("0x1a")].isTouching(e[v("0x9")]))&&o[v("0x11")](r)}return o}(t,e),this[j("0x3")]=this[j("0xa")][j("0x3")]&&!!this[j("0x0")][j("0xc")]}[j("0x6")](){const t=R(Array[j("0x2")](this[j("0x0")]));L(this.editor[j("0x9")],this[j("0xa")],t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const V=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var z=Array.prototype.splice;const W=function(t){var e=this.__data__,n=V(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=V(e,t);return n<0?void 0:e[n][1]};const X=function(t){return V(this.__data__,t)>-1};const q=function(t,e){var n=this.__data__,o=V(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=X,$.prototype.set=q;const Q=$;const J=function(){this.__data__=new Q,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=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 rt=ot.Symbol;var st=Object.prototype,it=st.hasOwnProperty,xt=st.toString,at=rt?rt.toStringTag:void 0;const ct=function(t){var e=it.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var r=xt.call(t);return o&&(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 mt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ft=function(t){if(!mt(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 Ct=/^\[object .+?Constructor\]$/,yt=Function.prototype,kt=Object.prototype,At=yt.toString,vt=kt.hasOwnProperty,Rt=RegExp("^"+At.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const It=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).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 It(n)?n:void 0};const Mt=Lt(ot,"Map");const Nt=Lt(Object,"create");const wt=function(){this.__data__=Nt?Nt(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 Dt=Object.prototype.hasOwnProperty;const Ft=function(t){var e=this.__data__;if(Nt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Dt.call(e,t)?e[t]:void 0};var Pt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return Nt?void 0!==e[t]:Pt.call(e,t)};const jt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Nt&&void 0===e?"__lodash_hash_undefined__":e,this};function Ut(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])}}Ut.prototype.clear=wt,Ut.prototype.delete=Ot,Ut.prototype.get=Ft,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Mt||Q),string:new Gt}};const Vt=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 Vt(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 Xt=function(t){return zt(this,t).has(t)};const qt=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=Ht,$t.prototype.delete=Wt,$t.prototype.get=Kt,$t.prototype.has=Xt,$t.prototype.set=qt;const Qt=$t;const Jt=function(t,e){var n=this.__data__;if(n instanceof Q){var o=n.__data__;if(!Mt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Qt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new Q(t);this.size=e.size}Zt.prototype.clear=J,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Jt;const Yt=Zt;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=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 oe=Object.prototype.hasOwnProperty;const re=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const se=function(t,e,n,o){var r=!n;n||(n={});for(var s=-1,i=e.length;++s<i;){var x=e[s],a=o?o(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 ie=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 me=function(){return!1};var fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=fe&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===fe?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||me;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 Ce={};Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;const ye=function(t){return xe(t)&&Te(t.length)&&!!Ce[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,ve=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Re=ve&&ve.exports===Ae&&et.process;const Ie=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Se=Ie&&Ie.isTypedArray;const Le=Se?ke(Se):ye;var Me=Object.prototype.hasOwnProperty;const Ne=function(t,e){var n=ge(t),o=!n&&de(t),r=!n&&!o&&be(t),s=!n&&!o&&!r&&Le(t),i=n||o||r||s,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Me.call(t,c)||i&&("length"==c||r&&("offset"==c||"parent"==c)||s&&("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 De=function(t,e){return function(n){return t(e(n))}};const Fe=De(Object.keys,Object);var Pe=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return Fe(t);var e=[];for(var n in Object(t))Pe.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?Ne(t):Be(t)};const Ge=function(t,e){return t&&se(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var Ve=Object.prototype.hasOwnProperty;const ze=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&Ve.call(t,o))&&n.push(o);return n};const We=function(t){return je(t)?Ne(t,!0):ze(t)};const Ke=function(t,e){return t&&se(e,We(e),t)};var Xe="object"==typeof exports&&exports&&!exports.nodeType&&exports,qe=Xe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=qe&&qe.exports===Xe?ot.Buffer:void 0,Qe=$e?$e.allocUnsafe:void 0;const Je=function(t,e){if(e)return t.slice();var n=t.length,o=Qe?Qe(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,r=0,s=[];++n<o;){var i=t[n];e(i,n,t)&&(s[r++]=i)}return s};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const rn=function(t,e){return se(t,on(t),e)};const sn=function(t,e){for(var n=-1,o=e.length,r=t.length;++n<o;)t[r+n]=e[n];return t};const xn=De(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 se(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,Ue,on)};const dn=function(t){return ln(t,We,an)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Tt(gn),yn=Tt(Mt),kn=Tt(mn),An=Tt(fn),vn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Mt&&Rn(new Mt)!=pn||mn&&Rn(mn.resolve())!=bn||fn&&Rn(new fn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case Cn:return Tn;case yn:return pn;case kn:return bn;case An:return En;case vn:return _n}return e});const In=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 Mn=ot.Uint8Array;const Nn=function(t){var e=new t.constructor(t.byteLength);return new Mn(e).set(new Mn(t)),e};const wn=function(t,e){var n=e?Nn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Dn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Fn=rt?rt.prototype:void 0,Pn=Fn?Fn.valueOf:void 0;const Bn=function(t){return Pn?Object(Pn.call(t)):{}};const jn=function(t,e){var n=e?Nn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return Nn(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 jn(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 Dn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const Vn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const zn=function(t){return xe(t)&&"[object Map]"==In(t)};var Wn=Ie&&Ie.isMap;const Kn=Wn?ke(Wn):zn;const Xn=function(t){return xe(t)&&"[object Set]"==In(t)};var qn=Ie&&Ie.isSet;const $n=qn?ke(qn):Xn;var Qn="[object Arguments]",Jn="[object Function]",Zn="[object Object]",Yn={};Yn[Qn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Jn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,r,s,i){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=s?o(e,r,s,i):o(e)),void 0!==x)return x;if(!mt(e))return e;var u=ge(e);if(u){if(x=Ln(e),!a)return Ze(e,x)}else{var d=In(e),g=d==Jn||"[object GeneratorFunction]"==d;if(be(e))return Je(e,a);if(d==Zn||d==Qn||g&&!s){if(x=c||g?{}:Vn(e),!a)return c?cn(e,Ke(x,e)):rn(e,Ge(x,e))}else{if(!Yn[d])return s?e:{};x=Un(e,d,a)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,x),$n(e)?e.forEach((function(r){x.add(t(r,n,o,r,e,i))})):Kn(e)&&e.forEach((function(r,s){x.set(s,t(r,n,o,s,e,i))}));var f=u?void 0:(l?c?dn:un:c?We:Ue)(e);return te(f||e,(function(r,s){f&&(r=e[s=r]),re(x,s,t(r,n,o,s,e,i))})),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)\]/,ro=/^\w*$/;const so=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(ro.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,r=e?e.apply(this,o):o[0],s=n.cache;if(s.has(r))return s.get(r);var i=t.apply(this,o);return n.cache=s.set(r,i)||s,i};return n.cache=new(io.Cache||Qt),n}io.Cache=Qt;const xo=io;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,r){e.push(o?r.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,r=Array(o);++n<o;)r[n]=e(t[n],n,t);return r};var go=rt?rt.prototype:void 0,mo=go?go.toString:void 0;const fo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return mo?mo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":fo(t)};const po=function(t,e){return ge(t)?t:so(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(!mt(t))return t;for(var r=-1,s=(e=po(e,t)).length,i=s-1,x=t;null!=x&&++r<s;){var a=bo(e[r]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(r!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=mt(l)?l:_e(e[r+1])?[]:{})}re(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 Co=function(t){return this.__data__.has(t)};function yo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Qt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=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 vo=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,r,s){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=s.get(t),l=s.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new ko:void 0;for(s.set(t,e),s.set(e,t);++u<x;){var m=t[u],f=e[u];if(o)var h=i?o(f,m,u,e,t,s):o(m,f,u,t,e,s);if(void 0!==h){if(h)continue;d=!1;break}if(g){if(!Ao(e,(function(t,e){if(!vo(g,e)&&(m===t||r(m,t,n,o,s)))return g.push(e)}))){d=!1;break}}else if(m!==f&&!r(m,f,n,o,s)){d=!1;break}}return s.delete(t),s.delete(e),d};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=rt?rt.prototype:void 0,Mo=Lo?Lo.valueOf:void 0;const No=function(t,e,n,o,r,s,i){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||!s(new Mn(t),new Mn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+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=Io;case"[object Set]":var a=1&o;if(x||(x=So),t.size!=e.size&&!a)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=Ro(x(t),x(e),o,r,s,i);return i.delete(t),l;case"[object Symbol]":if(Mo)return Mo.call(t)==Mo.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,r,s){var i=1&n,x=un(t),a=x.length;if(a!=un(e).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in e:wo.call(e,l)))return!1}var u=s.get(t),d=s.get(e);if(u&&d)return u==e&&d==t;var g=!0;s.set(t,e),s.set(e,t);for(var m=i;++c<a;){var f=t[l=x[c]],h=e[l];if(o)var p=i?o(h,f,l,e,t,s):o(f,h,l,t,e,s);if(!(void 0===p?f===h||r(f,h,n,o,s):p)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){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 s.delete(t),s.delete(e),g};var Do="[object Arguments]",Fo="[object Array]",Po="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,r,s){var i=ge(t),x=ge(e),a=i?Fo:In(t),c=x?Fo:In(e),l=(a=a==Do?Po:a)==Po,u=(c=c==Do?Po:c)==Po,d=a==c;if(d&&be(t)){if(!be(e))return!1;i=!0,l=!1}if(d&&!l)return s||(s=new Yt),i||Le(t)?Ro(t,e,n,o,r,s):No(t,e,a,n,o,r,s);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=u&&Bo.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return s||(s=new Yt),r(f,h,n,o,s)}}return!!d&&(s||(s=new Yt),Oo(t,e,n,o,r,s))};const Uo=function t(e,n,o,r,s){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,r,t,s))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Vo=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,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 s=Array(r);++o<r;)s[o]=t[o+e];return s};const Wo=function(t,e){return e.length<2?t:Vo(t,zo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Wo(t,e))||delete t[bo(Ho(e))]};const Xo=function(t,e){return null==t||Ko(t,e)},qo=["get","suggestion:","_saved","removeAttribute","change","head","reduce","getContainedElement","data","length","onAttributesChange","toJSON","from","previous","isIntersecting","creator","@external","isInContent","isExternal","getItems","clear","next","_markerNames","attributes","onDiscard","hasComments","createdAt","decorate","author","addRange","map","accept","removeMarker","getMarkers","set","push","addMarkerName","onAccept","discard","size","type","_model","getRange","getMultiRangeId","_onAccept","_onDiscard","filter","getMarkerNames","subType","nodeAfter","getRanges","end","getFirstMarker","commentThread","substr","add","removeMarkers","setAttribute","_onAttributesChange","delete"];var $o,Qo;$o=qo,Qo=217,function(t){for(;--t;)$o.push($o.shift())}(++Qo);const Jo=function(t,e){return qo[t-=0]};class Zo{constructor(t,e){this.id=e.id,this[Jo("0x3")]=e[Jo("0x3")],this.subType=e[Jo("0xb")]||null,this.author=e[Jo("0x33")],this[Jo("0x26")]=e[Jo("0x26")]||e.author,this[Jo("0x29")]=Boolean(e.attributes&&e[Jo("0x2e")][Jo("0x27")]),this[Jo("0x1f")]=null,this[Jo("0x4")]=t,this[Jo("0x7")]=e[Jo("0x0")],this._onDiscard=e[Jo("0x2f")],this[Jo("0x15")]=e[Jo("0x21")],this[Jo("0x2d")]=new Set,this[Jo("0x31")]=null,this.set("authoredAt",null),this.set(Jo("0x2e"),e.attributes||{}),this[Jo("0x39")](Jo("0x24"),null),this[Jo("0x39")](Jo("0x2c"),null),this[Jo("0x39")](Jo("0x10"),null),this[Jo("0x39")](Jo("0x19"),!1),this[Jo("0x32")]("accept"),this[Jo("0x32")](Jo("0x1"))}get head(){let t=this;for(;t[Jo("0x24")];)t=t[Jo("0x24")];return t}get[Jo("0x30")](){return!!this[Jo("0x10")]&&this.commentThread.length>0}get isMultiRange(){return 0!=this._markerNames[Jo("0x2")]&&6==Array[Jo("0x23")](this[Jo("0x2d")])[0].split(":")[Jo("0x20")]}get[Jo("0x28")](){return null!==this[Jo("0xf")]()}addMarkerName(t){this[Jo("0x2d")][Jo("0x12")](t)}[Jo("0xa")](){return Array.from(this[Jo("0x2d")])}[Jo("0x38")](){return this[Jo("0xa")]()[Jo("0x35")]((t=>this[Jo("0x4")].markers[Jo("0x17")](t)))[Jo("0x9")]((t=>t))}[Jo("0xf")](){return this[Jo("0x38")]()[0]||null}[Jo("0x13")](){this._model[Jo("0x1b")]((t=>{for(const e of this.getMarkers())t.removeMarker(e)})),this._markerNames[Jo("0x2b")]()}removeMarker(t){this[Jo("0x4")][Jo("0x1b")]((e=>{e[Jo("0x37")](t)})),this[Jo("0x2d")][Jo("0x16")](t)}[Jo("0x34")](t){const e=Jo("0x18")+this[Jo("0x3")]+":"+this[Jo("0xb")]+":"+this.id+":"+this.creator.id+":"+Zo[Jo("0x6")]();this[Jo("0x3b")](e),this[Jo("0x4")][Jo("0x1b")]((n=>{n.addMarker(e,{range:t,usingOperation:!0,affectsData:!0})}))}isIntersectingWithRange(t){for(const e of this.getRanges())if(e[Jo("0x25")](t))return!0;return!1}[Jo("0xd")](){return this.getMarkers()[Jo("0x35")]((t=>t[Jo("0x5")]()))}[Jo("0x2a")](){return this[Jo("0xd")]()[Jo("0x1d")](((t,e)=>[...t,...e[Jo("0x2a")]()]),[])}getFirstRange(){return this[Jo("0xf")]()[Jo("0x5")]()}[Jo("0x1e")](){const t=this.getRanges();if(1!=t.length)return null;const e=t[0],n=e.start[Jo("0xc")],o=e[Jo("0xe")].nodeBefore;return n instanceof i.Element?n!=o?null:n:null}[Jo("0x36")](){this[Jo("0x7")](this[Jo("0xd")](),this.data,this[Jo("0x2e")]),this[Jo("0x13")]()}[Jo("0x1")](){this[Jo("0x8")](this[Jo("0xd")](),this[Jo("0x1f")],this[Jo("0x2e")]),this[Jo("0x13")]()}getAllAdjacentSuggestions(){const t=[];let e=this[Jo("0x1c")];for(;e;)t[Jo("0x3a")](e),e=e[Jo("0x2c")];return t}[Jo("0x14")](t,e){const n=eo(this[Jo("0x2e")]);_o(n,t,e),Go(n,this[Jo("0x2e")])||(this.attributes=n,this[Jo("0x15")](n))}[Jo("0x1a")](t){const e=eo(this[Jo("0x2e")]);Xo(e,t),Go(e,this[Jo("0x2e")])||(this[Jo("0x2e")]=e,this[Jo("0x15")](this[Jo("0x2e")]))}[Jo("0x22")](){return{id:this.id,type:this[Jo("0xb")]?this.type+":"+this.subType:this[Jo("0x3")],authorId:this[Jo("0x26")].id,createdAt:this[Jo("0x31")],hasComments:this.hasComments,data:this[Jo("0x1f")],attributes:this[Jo("0x2e")]}}static[Jo("0x6")](){return(0,e.uid)()[Jo("0x11")](1,5)}}function Yo(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:* insert into %0":return o("*Format:* insert into %0",n);case"*Format:* remove from %0":return o("*Format:* remove from %0",n);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 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 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_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":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_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"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_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)}}(0,e.mix)(Zo,e.ObservableMixin);const tr=["registerElementLabel","EmptyContainer","item","softBreak","remove","deletion","pop","replace","type","isEmpty","_itemLabelsCallbacks","addContainer","*Merge:* %0","isInContent","*Remove:* %0","add","elementStart","start","_addDescriptionItems","textProxy","text","quantity","indexOf","*Insert:* %0","registerDescriptionCallback","previousSibling","label","Container","removeObject","Object","getFirstRange","insertion","length","_itemLabels","addEmptyContainer","normal","$text","elementEnd","_schema","get","_locale","push","*Split:* %0","_customCallbacks","removeContainer","$1 $2","skip","isObject","getWalker","data","element","REPLACE_TEXT","getItemLabel","end","isEqual","checkChild","nextSibling","match","name"];var er,nr;er=tr,nr=103,function(t){for(;--t;)er.push(er.shift())}(++nr);const or=function(t,e){return tr[t-=0]};class rr{constructor(t,e){this[or("0x3a")]=[],this[or("0x30")]=new Map,this[or("0x19")]=[],this[or("0x35")]=t,this[or("0x37")]=e}getDescriptions(t){const e=[];for(let n=0;n<t[or("0x2f")];n++){const o=t[n];if(!o[or("0x1c")])continue;let r=!1;for(const t of this._customCallbacks){const n=t(o);if(n){n.type&&e[or("0x38")](n),r=!0;break}}if(!r){this[or("0x21")](e,o);const r=t[n+1];if(r&&!o[or("0x2d")]()[or("0x9")][or("0xa")](r[or("0x2d")]()[or("0x20")])){const t=e[e[or("0x2f")]-1],n="insertion"==o.type?"add":"remove";t&&or("0x23")==t.type&&(t[n]+="\n")}}}return this._resolveDescriptionItems(e)}[or("0x27")](t){this[or("0x3a")][or("0x38")](t)}[or("0xf")](t,n,o=e.priorities[or("0x32")]){"function"==typeof t?(0,e.insertToPriorityArray)(this[or("0x19")],{matchingCallback:t,label:n,priority:o}):this._itemLabels.set(t,n)}[or("0x8")](t,e=1){let n;for(const e of this[or("0x19")])if(e.matchingCallback(t)){n=e[or("0x29")];break}return n||(n=this[or("0x30")][or("0x36")](t[or("0xe")])),n?n(e):1!==e?e+" "+t[or("0xe")]+"s":""+t[or("0xe")]}[or("0x21")](t,e){const n=e[or("0x2d")]()[or("0x4")](),o=or("0x2e")==e[or("0x17")]?or("0x1e"):or("0x13");for(const e of n){const r=e[or("0x11")],s=t[t.length-1];if(r.is(or("0x22")))s&&s[or("0x17")][or("0x25")](or("0x2a"))>-1&&t.pop(),s&&or("0x23")==s[or("0x17")]?s[o]+=r[or("0x5")]:t[or("0x38")]({type:or("0x23"),add:or("0x1e")==o?r[or("0x5")]:"",remove:or("0x13")==o?r[or("0x5")]:""});else if(this._schema[or("0x3")](r)){if(s&&s[or("0x17")][or("0x25")](or("0x2a"))>-1&&t[or("0x15")](),"elementEnd"==e[or("0x17")])continue;s&&s[or("0x17")]==o+or("0x2c")&&s[or("0x6")][or("0xe")]==r[or("0xe")]?s[or("0x24")]++:t[or("0x38")]({type:o+or("0x2c"),element:r,quantity:1}),n[or("0x2")]((t=>!(or("0x34")==t[or("0x17")]&&t.item==r)))}else if(this[or("0x35")][or("0xb")](r,or("0x33"))||r.is(or("0x6"),or("0x12"))){if(or("0x1e")==o&&or("0x1f")==e[or("0x17")]||or("0x13")==o&&or("0x34")==e[or("0x17")])continue;if(s&&-1==s[or("0x17")].indexOf(or("0x2a"))){or("0x23")==s[or("0x17")]&&(s[o]+="\n");continue}let n;if(n="add"==o?r.nextSibling&&!this[or("0x35")].isObject(r[or("0xc")])?r[or("0xc")]:null:r[or("0x28")]&&!this._schema[or("0x3")](r.previousSibling)?r[or("0x28")]:null,r[or("0x18")]||n&&n[or("0x18")]){const e=n&&n[or("0x18")]?n:r;s&&s.type==o+or("0x10")&&s[or("0x6")][or("0xe")]==e[or("0xe")]?s[or("0x24")]++:t[or("0x38")]({type:o+or("0x10"),element:e,quantity:1})}else t[or("0x38")]({type:o+or("0x2a"),element:r})}}}_resolveDescriptionItems(t){const e=this._locale,n=[];for(const o of t){switch(o[or("0x17")]){case or("0x23"):if(o[or("0x1e")]=o[or("0x1e")][or("0x16")](/(\S)\u000A+(\S)/g,or("0x1")).replace(/\u000A/g,""),o[or("0x13")]=o[or("0x13")].replace(/(\S)\u000A+(\S)/g,or("0x1"))[or("0x16")](/\u000A/g,""),""!=o[or("0x1e")]&&""!=o[or("0x13")]){n[or("0x38")]({type:"replace",content:Yo(e,or("0x7"),['"'+o[or("0x13")]+'"','"'+o.add+'"'])});continue}if(null!=o.add[or("0xd")](/^ +$/)){n[or("0x38")]({type:or("0x2e"),content:Yo(e,or("0x26"),Yo(e,"ELEMENT_SPACE",o[or("0x1e")][or("0x2f")]))});continue}if(null!=o.remove[or("0xd")](/^ +$/)){n.push({type:or("0x14"),content:Yo(e,or("0x1d"),Yo(e,"ELEMENT_SPACE",o[or("0x13")][or("0x2f")]))});continue}if(""!=o.add){n[or("0x38")]({type:or("0x2e"),content:Yo(e,or("0x26"),'"'+o.add+'"')});continue}n.push({type:or("0x14"),content:Yo(e,or("0x1d"),'"'+o[or("0x13")]+'"')});continue;case or("0x31"):case"addObject":n[or("0x38")]({type:or("0x2e"),content:Yo(e,or("0x26"),this[or("0x8")](o.element,o[or("0x24")]))});continue;case"removeEmptyContainer":case or("0x2b"):n[or("0x38")]({type:or("0x14"),content:Yo(e,or("0x1d"),this[or("0x8")](o[or("0x6")],o[or("0x24")]))});continue;case or("0x1a"):n[or("0x38")]({type:or("0x2e"),content:Yo(e,or("0x39"),this[or("0x8")](o[or("0x6")],o[or("0x24")]))});continue;case or("0x0"):n.push({type:or("0x14"),content:Yo(e,or("0x1b"),this[or("0x8")](o[or("0x6")],o[or("0x24")]))});continue}n[or("0x38")](o)}return n}}const sr=["AlignmentEditing","FORMAT_JUSTIFY_TEXT","editor","left","locale","document","get","schema","value","center","checkAttribute","has","change","justify","model","getAttribute","FORMAT_ALIGN_TO_RIGHT","right","commandName","markBlockFormat","*Format:* %0","plugins","alignment","enableCommand","registerDescriptionCallback","afterInit","getSelectedBlocks","selection","FORMAT_ALIGN_TO_LEFT","TrackChangesEditing","filter"];var ir,xr;ir=sr,xr=225,function(t){for(;--t;)ir.push(ir.shift())}(++xr);const ar=function(t,e){return sr[t-=0]};class cr extends t.Plugin{[ar("0x11")](){const t=this[ar("0x19")],e=t[ar("0x1b")];if(!t[ar("0xd")][ar("0x3")](ar("0x17")))return;const n=t.plugins[ar("0x1d")](ar("0x15"));n[ar("0xf")](ar("0xe"),((e,o={})=>{let r=o[ar("0x0")];o[ar("0x0")]||(r="ltr"===t[ar("0x1b")].contentLanguageDirection?ar("0x1a"):ar("0x9"));const s=Array.from(this[ar("0x19")].model[ar("0x1c")][ar("0x13")][ar("0x12")]())[ar("0x16")]((t=>function(t,e,n){const o=t[ar("0x7")]("alignment")||null;return e[ar("0x2")](t,"alignment")&&n!=o}(t,this[ar("0x19")][ar("0x6")][ar("0x1e")],r)));t[ar("0x6")][ar("0x4")]((()=>{for(const t of s)n[ar("0xb")](t,{commandName:"alignment",commandParams:[{value:r}]})}))})),n._descriptionFactory[ar("0x10")]((t=>{const{data:n}=t;if(n&&ar("0xe")==n[ar("0xa")]){const t=n.commandParams[0].value;return{type:"format",content:Yo(e,ar("0xc"),function(t){switch(t){case ar("0x1a"):return Yo(e,ar("0x14"));case ar("0x9"):return Yo(e,ar("0x8"));case ar("0x1"):return Yo(e,"FORMAT_ALIGN_TO_CENTER");case ar("0x5"):return Yo(e,ar("0x18"))}}(t))}}}))}}const lr=["isContent","test","getItems","ck-suggestion-marker--active","bindElementToMarker","listItem","markerRange","writer","ck-suggestion-marker-","nextSibling","addHighlight","schema","hasAttribute","plugins","element","getWalker","addClass","elementEnd","span","type","item","consumable","activeMarkers","toViewPosition","start","isLimit","model","TrackChangesEditing","markerName","previousPosition","toViewElement","mapper","parent","push","get","getAttribute"];var ur,dr;ur=lr,dr=311,function(t){for(;--t;)ur.push(ur.shift())}(++dr);const gr=function(t,e){return lr[t-=0]};function mr(t,e,n){const o=[];for(const r of e[gr("0xf")]())r[gr("0x19")](t)&&o.push(n.createRangeOn(r));return o}function fr(t){const e=[];if(t.is(gr("0x1b"),gr("0x12"))){let n=t[gr("0x16")];for(;n&&n.is(gr("0x1b"),"listItem")&&n[gr("0xc")]("listIndent")>0;)e[gr("0xa")](n),n=n[gr("0x16")]}return e}function hr(t,e,{showActiveMarker:n=!0}={}){const o=t[gr("0x1a")][gr("0xb")](gr("0x4"));return(r,s,i)=>{if(!i[gr("0x22")][gr("0xe")](s[gr("0x13")],r.name))return;const x=s[gr("0x13")][gr("0x1c")](),a=s.markerRange[gr("0x1")],c=t[gr("0x3")][gr("0x18")];let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[gr("0x21")];d=d||c[gr("0xd")](e);const n=i[gr("0x8")][gr("0x7")](e);if(n&&n.getCustomProperty(gr("0x17")))return;gr("0x1e")==t[gr("0x20")]&&c.isBlock(e)&&!c[gr("0x2")](e)&&(e[gr("0x16")]||a.isAtEnd?l&&l[gr("0x9")]==e||(l=e,m(t[gr("0x6")]),g=!0):u=u||t[gr("0x6")])}function m(t){const r=i[gr("0x14")].createUIElement(gr("0x1f"),{class:gr("0x15")+e}),x=i[gr("0x8")][gr("0x0")](t);n&&o[gr("0x23")].includes(s[gr("0x5")])&&i[gr("0x14")][gr("0x1d")](gr("0x10"),r),i.writer.insert(x,r),i.mapper[gr("0x11")](r,s[gr("0x5")])}d||g||!u||m(u)}}const pr=["_descriptionFactory","*Format:* %0","getRanges","superscript","change","markInlineFormat","FORMAT_STRIKETHROUGH","subscript","value","FORMAT_SUPERSCRIPT","ItalicEditing","has","SubscriptEditing","format","model","get","UnderlineEditing","bold","isCollapsed","document","locale","strikethrough","italic","commandParams","*Remove format:* %0","FORMAT_UNDERLINE","plugins","commands","toLowerCase","enableCommand","FORMAT_SUBSCRIPT","TrackChangesEditing","FORMAT_ITALIC","registerDescriptionCallback","selection","afterInit","CodeEditing","editor","BoldEditing","forceValue"];var br,Er;br=pr,Er=312,function(t){for(;--t;)br.push(br.shift())}(++Er);const _r=function(t,e){return pr[t-=0]},Tr=[_r("0x6"),_r("0x12"),_r("0x18"),_r("0x4"),"StrikethroughEditing",_r("0x14"),"SuperscriptEditing"];class Cr extends t.Plugin{[_r("0x3")](){const t=this[_r("0x5")],e=t[_r("0x16")],n=t[_r("0x22")][_r("0x17")](_r("0x27")),o=t[_r("0x1c")];for(const o of Tr){if(!t.plugins[_r("0x13")](o))continue;const r=o.slice(0,-7)[_r("0x24")](),s=t[_r("0x23")][_r("0x17")](r);n[_r("0x25")](r,((t,o={})=>{const i=e[_r("0x1b")][_r("0x2")];if(i[_r("0x1a")])return void t(o);const x=void 0!==o[_r("0x7")]?o[_r("0x7")]:!s[_r("0x10")];e[_r("0xc")]((()=>{const t=Array.from(i[_r("0xa")]());for(const o of t){const t=x?[o]:mr(r,o,e);for(const e of t)n[_r("0xd")](e,{commandName:r,commandParams:[{forceValue:x}]})}}))}))}function r(t,e){n[_r("0x8")][_r("0x1")]((n=>{const{data:r}=n;if(r&&r.commandName===t)return r[_r("0x1f")][0][_r("0x7")]?{type:_r("0x15"),content:Yo(o,_r("0x9"),e)}:{type:_r("0x15"),content:Yo(o,_r("0x20"),e)}}))}r(_r("0x19"),Yo(o,"FORMAT_BOLD")),r(_r("0x1e"),Yo(o,_r("0x0"))),r("underline",Yo(o,_r("0x21"))),r("code",Yo(o,"FORMAT_CODE")),r(_r("0x1d"),Yo(o,_r("0xe"))),r(_r("0xf"),Yo(o,_r("0x26"))),r(_r("0xb"),Yo(o,_r("0x11")))}}const yr=["change","forceValue","BlockQuoteEditing","get","_descriptionFactory","getSelectedBlocks","$root","plugins","from","format","name","*Format:* %0","commands","afterInit","has","blockQuote","filter","value","locale","selection","registerDescriptionCallback","editor","*Remove format:* %0","checkChild","commandParams","enableCommand","model","schema"];var kr,Ar;kr=yr,Ar=198,function(t){for(;--t;)kr.push(kr.shift())}(++Ar);const vr=function(t,e){return yr[t-=0]};class Rr extends t.Plugin{[vr("0xb")](){const t=this[vr("0x13")],e=t[vr("0x10")];if(!t[vr("0x5")][vr("0xc")](vr("0x0")))return;const n=t[vr("0x5")].get("TrackChangesEditing"),o=this.editor[vr("0xa")][vr("0x1")]("blockQuote");n[vr("0x17")](vr("0xd"),((e,r={})=>{const s=this.editor[vr("0x18")].document[vr("0x11")],i=r&&void 0!==r[vr("0x1b")]?r[vr("0x1b")]:!o[vr("0xf")];let x=[];if(i){const e=Array[vr("0x6")](s[vr("0x3")]())[vr("0xe")]((t=>Ir(t)||function(t,e){const n=e.checkChild(t.parent,vr("0xd")),o=e[vr("0x15")]([vr("0x4"),vr("0xd")],t);return n&&o}(t,this[vr("0x13")].model[vr("0x19")])));x=I(e,t[vr("0x18")])}else{const e=Array[vr("0x6")](s[vr("0x3")]())[vr("0xe")]((t=>Ir(t)));x=I(e,t[vr("0x18")])}t.model[vr("0x1a")]((()=>{for(const t of x)n.markBlockFormat(t,{commandName:"blockQuote",commandParams:[{forceValue:i}]})}))})),n[vr("0x2")][vr("0x12")]((t=>{const{data:n}=t;if(n&&vr("0xd")==n.commandName){const t=Yo(e,"ELEMENT_BLOCK_QUOTE");return n[vr("0x16")][0].forceValue?{type:vr("0x7"),content:Yo(e,vr("0x9"),t)}:{type:vr("0x7"),content:Yo(e,vr("0x14"),t)}}}))}}function Ir(t){return vr("0xd")==t.parent[vr("0x8")]}const Sr=["afterInit","plugins","editor","commands","get","enableCommand","ckbox"];var Lr,Mr;Lr=Sr,Mr=453,function(t){for(;--t;)Lr.push(Lr.shift())}(++Mr);const Nr=function(t,e){return Sr[t-=0]};class wr extends t.Plugin{[Nr("0x2")](){const t=this[Nr("0x4")];t[Nr("0x5")][Nr("0x6")](Nr("0x1"))&&t[Nr("0x3")][Nr("0x6")]("TrackChangesEditing")[Nr("0x0")](Nr("0x1"))}}const Or=["get","TrackChangesEditing","parent","getSelectedBlocks","find","value","outdentCodeBlock","schema","commands","model","selection","plugins","*Remove format:* %0","formatBlock","isLimit","*Format:* %0","blockName","indentCodeBlock","name","commandName","afterInit","markBlockFormat","checkChild","language","enableCommand","format","_descriptionFactory","ELEMENT_CODE_BLOCK","locale","registerElementLabel","config","commandParams","filter","forceValue","from","change","codeBlock","document","languages","label","CodeBlock"];var Dr,Fr;Dr=Or,Fr=130,function(t){for(;--t;)Dr.push(Dr.shift())}(++Fr);const Pr=function(t,e){return Or[t-=0]};class Br extends t.Plugin{[Pr("0xd")](){const t=this.editor;if(!t[Pr("0x4")].has(Pr("0x21")))return;const e=t[Pr("0x4")][Pr("0x22")](Pr("0x23")),n=t[Pr("0x15")],o=t[Pr("0x17")][Pr("0x22")]("codeBlock")[Pr("0x1f")],r=t[Pr("0x1")][Pr("0x22")](Pr("0x1d"));e[Pr("0x11")](Pr("0xa")),e.enableCommand(Pr("0x28")),e[Pr("0x11")]("codeBlock",((n,s={})=>{const i=t[Pr("0x2")],x=t[Pr("0x2")][Pr("0x1e")][Pr("0x3")],a=s&&void 0!==s.forceValue?s[Pr("0x1a")]:!r[Pr("0x27")];let c;s[Pr("0x10")]||(s[Pr("0x10")]=o[0][Pr("0x10")]),c=a?Array[Pr("0x1b")](x[Pr("0x25")]())[Pr("0x19")]((t=>{return jr(t)||(e=t,n=i[Pr("0x0")],!e.is("rootElement")&&!n[Pr("0x7")](e)&&n[Pr("0xf")](e[Pr("0x24")],"codeBlock"));var e,n})):Array[Pr("0x1b")](x[Pr("0x25")]())[Pr("0x19")]((t=>jr(t)));const l=I(c,i);i[Pr("0x1c")]((()=>{for(const t of l)e[Pr("0xe")](t,{commandName:Pr("0x1d"),commandParams:[{...s,forceValue:a}],formatGroupId:Pr("0x9")})}))})),e[Pr("0x13")][Pr("0x16")](Pr("0x1d"),(t=>Yo(n,"ELEMENT_CODE_BLOCK",t))),e[Pr("0x13")].registerDescriptionCallback((t=>{const{type:e,data:r}=t;if(Pr("0x6")==e&&r&&Pr("0x1d")==r[Pr("0xc")]){const t=r[Pr("0x18")][0][Pr("0x10")],e=o[Pr("0x26")]((e=>e[Pr("0x10")]===t))[Pr("0x20")],s=n._t(e);return r[Pr("0x18")][0].forceValue?{type:Pr("0x12"),content:Yo(n,Pr("0x8"),Yo(n,Pr("0x14"),1)+" ("+s+")")}:{type:Pr("0x12"),content:Yo(n,Pr("0x5"),Yo(n,Pr("0x14"),1))}}}))}}function jr(t){return"codeBlock"==t[Pr("0xb")]}const Ur=["has","afterInit","enableCommand","TrackChangesEditing","editor","get","plugins","addCommentThread"];var Gr,Hr;Gr=Ur,Hr=367,function(t){for(;--t;)Gr.push(Gr.shift())}(++Hr);const Vr=function(t,e){return Ur[t-=0]};class zr extends t.Plugin{[Vr("0x2")](){const t=this[Vr("0x5")];t[Vr("0x7")][Vr("0x1")]("CommentsEditing")&&t[Vr("0x7")][Vr("0x6")](Vr("0x4"))[Vr("0x3")](Vr("0x0"))}}var Wr=n(181);const Kr=["enableCommand","init","downcastDispatcher","writer","model","requires","showSuggestionHighlights","createRange","enqueueChange","detach","modifySelection","removeMarker:suggestion:deletion","selection","plugins","unbindElementFromMarkerName","buffer","unlock","fromRange","mapper","setSelection","TrackChangesEditing","markerName","data","document","high","markerNameToElements","addMarker:suggestion:deletion","commands","get","editing","createSelection","deleteForward","unit","$graveyard","root","batch","start","forward","isCollapsed","uiElement","end"];var Xr,qr;Xr=Kr,qr=227,function(t){for(;--t;)Xr.push(Xr.shift())}(++qr);const $r=function(t,e){return Kr[t-=0]};class Qr extends t.Plugin{static get[$r("0x18")](){return[Wr.Delete]}[$r("0x14")](){const t=this.editor,e=t[$r("0x20")][$r("0x6")]($r("0x27"));e.enableCommand("delete");const n=t[$r("0x5")][$r("0x6")]($r("0x9"));e[$r("0x13")]($r("0x9"),((e,o={})=>{const r=t[$r("0x17")][$r("0x8")](t[$r("0x17")][$r("0x1")][$r("0x1f")]);r[$r("0x10")]&&t.model[$r("0x1d")](r,{direction:$r("0xf"),unit:o[$r("0xa")]});const s=r.getFirstRange(),x=i.LiveRange[$r("0x24")](s);let a;e(o),a=$r("0xb")==x[$r("0xc")].rootName?t[$r("0x17")][$r("0x1a")](s[$r("0xe")]):t[$r("0x17")].createRange(x[$r("0xe")],x[$r("0x12")]),x[$r("0x1c")](),t[$r("0x17")][$r("0x1b")](n[$r("0x22")][$r("0xd")],(t=>{n[$r("0x22")].lock(),t[$r("0x26")](t[$r("0x1a")](a[$r("0x12")])),n[$r("0x22")][$r("0x23")]()}))})),t[$r("0x7")][$r("0x15")].on("addMarker:suggestion:deletion",hr(t,"merge"),{priority:$r("0x2")}),t[$r("0x0")].downcastDispatcher.on($r("0x4"),((e,n,o)=>{o.options[$r("0x19")]&&hr(t,"merge",{showActiveMarker:!1})(e,n,o)}),{priority:$r("0x2")}),t[$r("0x7")].downcastDispatcher.on($r("0x1e"),((t,e,n)=>{const o=n[$r("0x25")][$r("0x3")](e[$r("0x28")]);if(o)for(const t of o)t.is($r("0x11"))&&(n[$r("0x25")][$r("0x21")](t,e[$r("0x28")]),n[$r("0x16")].remove(t))}),{priority:$r("0x2")})}}const Jr=["commandParams","_suggestionFactory","registerElementLabel","multipleBlocks","ELEMENT_BULLETED_LIST","from","schema","hasAttribute","indentList","getSelectedBlocks","nextSibling","markBlockFormat","refresh","*Indent:* %0","push","selection","expandListBlocksToCompleteList","listType","add","detach","registerDescriptionCallback","end","bulletedList","next","splitListItemBefore","listIndent","isFirstBlockOfListItem","before","enableCommand","value","getRanges","numberedList","listItemId","createRange","commands","format","TrackChangesEditing","outdentList","execute","setSelection","splitListItemAfter","accept","*Change to:* %0","document","get","model","fromRange","*Format:* insert into %0","createPositionAt","previousSibling","markMultiRangeBlockFormat","locale","plugins","formatBlock","start","_descriptionFactory","map","getAttribute","change","isObject","ELEMENT_LIST_ITEM","has","nodeAfter","*Outdent:* %0","commandName"];var Zr,Yr;Zr=Jr,Yr=383,function(t){for(;--t;)Zr.push(Zr.shift())}(++Yr);const ts=function(t,e){return Jr[t-=0]};class es extends t.Plugin{afterInit(){const t=this.editor;if(!t[ts("0x3b")][ts("0x3")]("DocumentListEditing"))return;const e=t[ts("0x3a")],n=t[ts("0x3b")].get(ts("0x2b")),o=t.plugins[ts("0x33")]("DocumentListUtils");function r(e){return()=>{const r=t[ts("0x29")].get(e);let s=Array.from(t[ts("0x34")][ts("0x32")][ts("0x16")].getSelectedBlocks());if(a(e)){s=o[ts("0x17")](s);const t=[];for(const e of s)o[ts("0x21")](e)&&t[ts("0x15")](e);s=t}t[ts("0x34")][ts("0x0")]((()=>{n[ts("0x39")](s,{commandName:e,commandParams:[{forceValue:!r[ts("0x24")]}],formatGroupId:ts("0x18")},[],"documentList")}))}}function s(e){return()=>{const o=function(t){const e=(t=Array[ts("0xc")](t)).findIndex((t=>!t[ts("0xe")]("listItemId")));return e>-1&&(t=t.slice(0,e)),t}(t[ts("0x34")].document[ts("0x16")][ts("0x10")]()),r=t[ts("0x34")][ts("0x28")](t[ts("0x34")][ts("0x37")](o[0],ts("0x22")),t[ts("0x34")][ts("0x37")](o[o.length-1],ts("0x1c")));t[ts("0x34")].change((()=>{n[ts("0x12")](r,{commandName:e,commandParams:[],formatGroupId:ts("0x18")},function(t){const e=new Set;for(const n of t){let t=n[ts("0x11")];for(;t&&t[ts("0x40")](ts("0x20"))>n[ts("0x40")]("listIndent");)e[ts("0x19")](t),t=t.nextSibling}return Array.from(e)}(o))}))}}function x(e){return()=>{const o=t.model[ts("0x32")][ts("0x16")].getSelectedBlocks()[ts("0x1e")]()[ts("0x24")],r=t[ts("0x34")][ts("0x37")](o,"before"),s=t[ts("0x34")][ts("0x37")](o,0),i=t.model[ts("0x28")](r,s);t[ts("0x34")][ts("0x0")]((()=>{n[ts("0x12")](i,{commandName:e,commandParams:[],formatGroupId:"listType"})}))}}function a(e){const n=t[ts("0x29")][ts("0x33")]("bulletedList")[ts("0x24")],o=t[ts("0x29")][ts("0x33")](ts("0x26")).value;return"numberedList"===e?n:o}n[ts("0x23")](ts("0x26"),r(ts("0x26"))),n.enableCommand(ts("0x1d"),r(ts("0x1d"))),n[ts("0x23")]("indentList",s(ts("0xf"))),n[ts("0x23")](ts("0x2c"),s("outdentList")),n.enableCommand(ts("0x2f"),x("splitListItemAfter")),n[ts("0x23")](ts("0x1f"),x(ts("0x1f"))),n[ts("0x3e")][ts("0x9")]((function(e){const n=!t[ts("0x34")][ts("0xd")][ts("0x1")](e),o=e[ts("0x38")],r=e[ts("0x11")],s=e[ts("0x40")]("listItemId"),i=!o||o[ts("0x40")](ts("0x27"))!==s,x=!r||r.getAttribute(ts("0x27"))!==s;return n&&s&&i&&x}),(t=>Yo(e,ts("0x2"),t))),n._descriptionFactory[ts("0x1b")]((function(t){const{data:n}=t;if(!n)return;let o,r,s,i;switch(n[ts("0x6")]){case ts("0x1d"):s=n[ts("0x7")][0].forceValue,i=a(n[ts("0x6")]),o=s?ts("0x36"):"*Format:* remove from %0",i&&(o=ts("0x31")),r={type:ts("0x2a"),content:Yo(e,o,Yo(e,ts("0xb")))};break;case ts("0x26"):s=n[ts("0x7")][0].forceValue,i=a(n.commandName),o=s?ts("0x36"):"*Format:* remove from %0",i&&(o=ts("0x31")),r={type:ts("0x2a"),content:Yo(e,o,Yo(e,"ELEMENT_NUMBERED_LIST"))};break;case ts("0xf"):o=ts("0x14"),r={type:ts("0x2a"),content:Yo(e,o,Yo(e,ts("0x2")))};break;case ts("0x2c"):o=ts("0x5"),r={type:ts("0x2a"),content:Yo(e,o,Yo(e,ts("0x2")))};break;case"mergeListItemBackward":case"mergeListItemForward":!1===n[ts("0xa")]&&(o="*Merge:* %0",r={type:"deletion",content:Yo(e,o,Yo(e,ts("0x2")))})}return r})),n[ts("0x8")].registerCustomCallback(ts("0x3c"),"documentList",ts("0x30"),(function(e,n){const o=[];for(let n of e)n[ts("0x3d")][ts("0x4")]===n.end.parent&&(n=t[ts("0x34")][ts("0x28")](t[ts("0x34")][ts("0x37")](n.start.nodeAfter,0))),o[ts("0x15")](n);t[ts("0x34")][ts("0x0")]((e=>{const r=t[ts("0x34")][ts("0x32")][ts("0x16")],s=Array[ts("0xc")](r[ts("0x25")]())[ts("0x3f")]((t=>i.LiveRange[ts("0x35")](t)));e[ts("0x2e")](o),t.commands[ts("0x33")](n.commandName)[ts("0x13")](),n[ts("0x7")].push({forceDefaultExecution:!0}),t[ts("0x2d")](n.commandName,...n.commandParams),e[ts("0x2e")](s);for(const t of s)t[ts("0x1a")]()}))}))}}var ns=n(331);const os=["remove","split","enter","markerName","writer","fromRange","document","nextSibling","addMarker:suggestion:insertion","afterExecute","plugins","editor","editing","markerNameToElements","fire","showSuggestionHighlights","createRange","detach","enableCommand","parent","model","getFirstPosition","init","removeMarker:suggestion:insertion","enterBlock","createPositionAt","get","ck-suggestion-marker-split","downcastDispatcher","end","unbindElementFromMarkerName","selection","mapper","commands","setSelection","markInsertion"];var rs,ss;rs=os,ss=289,function(t){for(;--t;)rs.push(rs.shift())}(++ss);const is=function(t,e){return os[t-=0]};class xs extends t.Plugin{static get requires(){return[ns.Enter]}[is("0x15")](){const t=this[is("0xa")],e=t[is("0x9")][is("0x19")]("TrackChangesEditing"),n=t[is("0x20")].get(is("0x1"));e[is("0x11")](is("0x1"),(()=>{t[is("0x13")].change((o=>{const r=t.model[is("0x5")][is("0x1e")],s=r[is("0x14")](),x=i.LiveRange[is("0x4")](r.getFirstRange());if(n[is("0x17")](o)){const n=t[is("0x13")][is("0x18")](s[is("0x12")][is("0x6")],0),r=o[is("0xf")](s,n);e[is("0x22")](r)}else o[is("0x21")](o[is("0xf")](x[is("0x1c")]));x[is("0x10")](),n[is("0xd")](is("0x8"),{writer:o})}))})),t[is("0xb")][is("0x1b")].on(is("0x7"),hr(t,"split"),{priority:"high"}),t[is("0xb")][is("0x1b")].on(is("0x16"),((t,e,n)=>{const o=n[is("0x1f")][is("0xc")](e[is("0x2")]);if(o)for(const t of o)t.hasClass(is("0x1a"))&&(n[is("0x1f")][is("0x1d")](t,e.markerName),n[is("0x3")][is("0x23")](t))}),{priority:"high"}),t.data.downcastDispatcher.on(is("0x7"),((e,n,o)=>{o.options[is("0xe")]&&hr(t,is("0x0"),{showActiveMarker:!1})(e,n,o)}),{priority:"high"})}}const as=["commandName","commandParams","registerDescriptionCallback","from","*Reset font background color*","afterInit","*Reset font family*","fontSize","*Set font size:* %0","TrackChangesEditing","title","selection","fontColor","FontBackgroundColorEditing","format","config","editor","isCollapsed","plugins","get","*Set font color:* %0","toLowerCase","_enableCommand","locale","trim","enableCommand","getRanges","value","*Set font family:* %0","label","has","_descriptionFactory","fontFamily","find","fontColor.colors","model","fontBackgroundColor"];var cs,ls;cs=as,ls=132,function(t){for(;--t;)cs.push(cs.shift())}(++ls);const us=function(t,e){return as[t-=0]},ds=[{pluginName:"FontSizeEditing",commandName:us("0x17")},{pluginName:"FontFamilyEditing",commandName:us("0xb")},{pluginName:"FontColorEditing",commandName:us("0x1c")},{pluginName:us("0x1d"),commandName:us("0xf")}];class gs extends t.Plugin{[us("0x15")](){const t=this[us("0x20")][us("0x2")];for(const{pluginName:t,commandName:e}of ds)this[us("0x20")][us("0x22")][us("0x9")](t)&&this[us("0x1")](e);this.editor.plugins[us("0x23")](us("0x19"))[us("0xa")][us("0x12")]((e=>{const{data:n}=e;if(null!=n){if("fontSize"==n[us("0x10")]){const e=n[us("0x11")][0][us("0x6")];if(e){const n=this[us("0x20")].plugins[us("0x23")]("FontSize").normalizeSizeOptions(this[us("0x20")][us("0x1f")].get("fontSize.options"))[us("0xc")]((t=>t.model==e))[us("0x1a")],o=this[us("0x20")][us("0x2")]._t(n)[us("0x0")]();return{type:us("0x1e"),content:Yo(t,us("0x18"),o)}}return{type:us("0x1e"),content:Yo(t,"*Reset font size*")}}if(us("0xb")==n.commandName){const e=n[us("0x11")][0][us("0x6")];return e?{type:us("0x1e"),content:Yo(t,us("0x7"),e)}:{type:"format",content:Yo(t,us("0x16"))}}if(us("0x1c")==n.commandName){const e=n[us("0x11")][0][us("0x6")];if(e){const n=(0,r.normalizeColorOptions)(this[us("0x20")][us("0x1f")][us("0x23")](us("0xd")))[us("0xc")]((t=>t[us("0xe")]==e));let o=e,s="";return n&&(o=n[us("0x8")],s=t._t(o)[us("0x0")]()),{type:us("0x1e"),content:Yo(t,us("0x24"),s)[us("0x3")](),color:{value:e,title:s||o}}}return{type:us("0x1e"),content:Yo(t,"*Reset font color*")}}if(us("0xf")==n[us("0x10")]){const e=n[us("0x11")][0].value;if(e){const n=(0,r.normalizeColorOptions)(this[us("0x20")].config[us("0x23")]("fontBackgroundColor.colors"))[us("0xc")]((t=>t.model==e));let o=e,s="";return n&&(o=n[us("0x8")],s=t._t(o)[us("0x0")]()),{type:"format",content:Yo(t,"*Set font background color:* %0",s).trim(),color:{value:e,title:s||o}}}return{type:"format",content:Yo(t,us("0x14"))}}}}))}[us("0x1")](t){const e=this[us("0x20")];e[us("0x22")][us("0x23")]("TrackChangesEditing")[us("0x4")](t,((n,o={})=>{const r=e[us("0xe")].document[us("0x1b")],s=o[us("0x6")];r[us("0x21")]?n(o):e[us("0xe")].change((()=>{const n=Array[us("0x13")](r[us("0x5")]());for(const o of n){const n=s?[o]:mr(t,o,e[us("0xe")]);for(const o of n)e[us("0x22")][us("0x23")](us("0x19")).markInlineFormat(o,{commandName:t,commandParams:[{value:s}]})}}))}))}}const ms=["filter","checkChild","selection","name","parent","change","blockName","ELEMENT_HEADING_CUSTOM","paragraph","plugins","heading","find","has","enableCommand","_descriptionFactory","config","document","title","*Change to:* %0","from","match","model","afterInit","TrackChangesEditing","value","schema","editor","commandName","isObject","format","get","registerElementLabel","heading.options","registerDescriptionCallback"];var fs,hs;fs=ms,hs=201,function(t){for(;--t;)fs.push(fs.shift())}(++hs);const ps=function(t,e){return ms[t-=0]};class bs extends t.Plugin{[ps("0x19")](){const t=this[ps("0x1d")],e=t.locale,n=t[ps("0x12")][ps("0x21")](ps("0x1"));if(!t[ps("0xc")][ps("0xf")]("HeadingEditing"))return;const o=t[ps("0xc")].get(ps("0x1a"));o[ps("0x10")](ps("0xd"),((e,n)=>{const r=n[ps("0x1b")],s=Array[ps("0x16")](this[ps("0x1d")][ps("0x18")][ps("0x13")][ps("0x5")].getSelectedBlocks())[ps("0x3")]((t=>{return e=t,n=r,(o=this[ps("0x1d")][ps("0x18")][ps("0x1c")])[ps("0x4")](e[ps("0x7")],n)&&!o[ps("0x1f")](e)&&e[ps("0x6")]!=n;var e,n,o}));t[ps("0x18")][ps("0x8")]((()=>{for(const t of s)o.markBlockFormat(t,{commandName:ps("0xd"),commandParams:[n],formatGroupId:ps("0x9")},fr(t))}))}));for(const t of n)ps("0xb")!=t[ps("0x18")]&&o[ps("0x11")][ps("0x0")](t[ps("0x18")],(e=>{const n=Es(t[ps("0x18")]);return null!==n?r(e,n):s(e,t.title)}));function r(t,n){return Yo(e,"ELEMENT_HEADING",[t,n])}function s(t,n){return Yo(e,ps("0xa"),[t,n])}o._descriptionFactory[ps("0x2")]((t=>{const{type:o,data:i}=t;if("formatBlock"==o&&i&&ps("0xd")==i[ps("0x1e")]){const t=i.commandParams[0].value,o=Es(t);if(null!==o)return{type:ps("0x20"),content:Yo(e,ps("0x15"),r(1,o))};const x=n[ps("0xe")]((e=>e[ps("0x18")]===t))[ps("0x14")];return{type:ps("0x20"),content:Yo(e,"*Change to:* %0",s(1,x))}}}))}}function Es(t){const e=t[ps("0x17")](/^heading(\d+)$/);return e?e[1]:null}const _s=["editor","backward","HighlightEditing","getLastMatchingPosition","find","enableCommand","hasAttribute","format","model","locale","get","item","registerDescriptionCallback","document","highlight","has","afterInit","getAttribute","formatInline","change","value","title","getRanges","toLowerCase","isCollapsed","color","_descriptionFactory","push","createRange","FORMAT_HIGHLIGHT","*Remove highlight*"];var Ts,Cs;Ts=_s,Cs=337,function(t){for(;--t;)Ts.push(Ts.shift())}(++Cs);const ys=function(t,e){return _s[t-=0]};class ks extends t.Plugin{[ys("0x14")](){const t=this[ys("0x4")];if(!t.plugins[ys("0x13")](ys("0x6")))return;const e=t.plugins[ys("0xe")]("TrackChangesEditing");e[ys("0x9")]("highlight",((n,o={})=>{const r=t[ys("0xc")][ys("0x11")].selection,s=r[ys("0x15")](ys("0x12"));let i=o.value,x=[];if(r[ys("0x1c")]){const e=r.getFirstPosition();if(!r[ys("0xa")](ys("0x12")))return void n(o);{const n=t=>t[ys("0xf")].getAttribute(ys("0x12"))===s,o=e.getLastMatchingPosition(n,{direction:ys("0x5")}),r=e[ys("0x7")](n);x=[t[ys("0xc")][ys("0x1")](o,r)],i==s&&(i=null)}}else for(const e of r[ys("0x1a")]())i?x[ys("0x0")](e):x[ys("0x0")](...mr("highlight",e,t.model));t[ys("0xc")][ys("0x17")]((()=>{for(const t of x)e.markInlineFormat(t,{commandName:ys("0x12"),commandParams:[{value:i}]})}))}));const n=t[ys("0xd")];e[ys("0x1e")][ys("0x10")]((e=>{const{type:o,data:r}=e;if(ys("0x16")==o&&r&&"highlight"==r.commandName){const e=r.commandParams[0][ys("0x18")];if(e){const o=t.config.get("highlight.options")[ys("0x8")]((t=>t[ys("0xc")]==e)),r=n._t(o.title)[ys("0x1b")]();return{type:ys("0xb"),content:Yo(n,"*Set highlight:* %0",r),color:{value:o[ys("0x1d")],title:o[ys("0x19")]}}}return{type:"format",content:Yo(n,ys("0x3"),Yo(n,ys("0x2")))}}}))}}const As=["div","createPositionAt","enableCommand","elementToStructure","plugins","get","has","insert","showSuggestionHighlights","addClass","HorizontalLineEditing","conversion","for","createContainerElement","TrackChangesEditing","dataDowncast","registerElementLabel"];var vs,Rs;vs=As,Rs=423,function(t){for(;--t;)vs.push(vs.shift())}(++Rs);const Is=function(t,e){return As[t-=0]};class Ss extends t.Plugin{afterInit(){const t=this.editor;if(!t.plugins[Is("0x8")](Is("0xc")))return;t[Is("0x6")][Is("0x7")](Is("0x10"))[Is("0x4")]("horizontalLine");const e=t[Is("0x6")].get("TrackChangesEditing"),n=t.locale;e._descriptionFactory[Is("0x1")]("horizontalLine",(t=>Yo(n,"ELEMENT_HORIZONTAL_LINE",t))),t[Is("0xd")][Is("0xe")](Is("0x0"))[Is("0x5")]({model:"horizontalLine",view:(t,{writer:e,options:n})=>{if(!n[Is("0xa")])return;const o=e[Is("0xf")](Is("0x2")),r=e.createEmptyElement("hr");return e[Is("0xb")]("ck-horizontal-line",o),e[Is("0x9")](e[Is("0x3")](o,0),r),o},converterPriority:"high"})}}const Ls=["TrackChangesEditing","getCustomProperty","get","cancel","plugins","afterInit","ELEMENT_HTML_EMBED","getSelectedElement","format","document","has","commandName","_descriptionFactory","HtmlEmbed","model","rawHtml","rawHtmlApi","value","editor","markBlockFormat","registerDescriptionCallback","selection","htmlEmbed","editing","enableCommand"];var Ms,Ns;Ms=Ls,Ns=141,function(t){for(;--t;)Ms.push(Ms.shift())}(++Ns);const ws=function(t,e){return Ls[t-=0]};class Os extends t.Plugin{[ws("0xe")](){const t=this[ws("0x2")];if(!t[ws("0xd")][ws("0x13")](ws("0x16")))return;const e=t[ws("0xd")][ws("0xb")]("TrackChangesEditing"),n=t.locale,o=t[ws("0x7")].view[ws("0x12")][ws("0x5")];e[ws("0x15")].registerElementLabel(ws("0x18"),(t=>Yo(n,ws("0xf"),t))),t[ws("0xd")].get(ws("0x9"))[ws("0x8")](ws("0x6"),((n,r)=>{const s=t[ws("0x17")],i=s[ws("0x12")][ws("0x5")];s.change((()=>{const t=function(t){const e=t[ws("0x10")]();return e&&e.is("element",ws("0x18"))?t.getSelectedElement():null}(i);if(!t)return void n(null);const s=t.getAttribute(ws("0x1"))||"";void 0!==r&&r!==s&&(e[ws("0x3")](t,{commandName:ws("0x6"),commandParams:[r]}),o.getSelectedElement()[ws("0xa")](ws("0x0"))[ws("0xc")]())}))})),e[ws("0x15")][ws("0x4")]((t=>{const{data:e}=t;if(e&&ws("0x6")==e[ws("0x14")]){const t=Yo(n,ws("0xf"));return{type:ws("0x11"),content:Yo(n,"*Change %0 content*",t)}}}))}}const Ds=["getFirstRange","*Reset image width*","forward","forceDefaultExecution","schema","*Remove image text alternative*","has","newRange","commandName","value","toggleImageCaption","deletion","imageBlock","_suggestionFactory","insertion","isBefore","ImageCaptionEditing","get","editor","FORMAT_SIDE_IMAGE","from","differ","getCaptionFromImageModelElement","ImageCaptionUtils","name","findIndex","plugins","ImageStyleEditing","afterInit","backward","convertInlineImageToBlock","insertImage","newValue","selection","find","commandParams","commandReversedParams","imageStylePostApply","ImageTextAlternativeEditing","imageTextAlternative","commands","change","isBlockImage","getAttribute","createRange","toNext","type","formatInline","_findSuggestions","alt","getNearestSelectionRange","*Format:* %0","ELEMENT_INLINE_IMAGE","fromPosition","locale","accept","previous","Users","ImageUploadEditing","_descriptionFactory","imageStyle","forEach","getClosestSelectedImageElement","isInlineImage","ELEMENT_IMAGE","formatBlock","markBlockFormat","markInsertion","side","discardSuggestion","subType","nodeBefore","next","shouldConvertImageType","hasAttribute","hasSuggestion","getSuggestionCallback","chain","toPrevious","end","document","convertBlockImageToInline","author","filter","getContainedElement","TrackChangesEditing","width","nodeAfter","createRangeOn","toLowerCase","join","getSuggestion","imageTypeBlock","ImageInlineEditing","getSuggestions","registerDescriptionCallback","registerPostFixer","start","imageInline","isCollapsed","refresh","registerElementLabel","Block image to inline image","isOwn","registerCustomCallback","element","markInlineFormat","model","length","format","normalizedStyles","caption","isEqual","imageStylePreApply","suggestion","removeObject","discard","enableCommand","ImageUtils","head","resizeImage","isInContent","imageTypeInline"];var Fs,Ps;Fs=Ds,Ps=263,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Bs=function(t,e){return Ds[t-=0]};class js extends t.Plugin{[Bs("0xb")](){const t=this[Bs("0x1")];if(!t[Bs("0x9")][Bs("0x70")]("ImageEditing"))return;const n=t[Bs("0x9")][Bs("0x0")](Bs("0x44")),o=t[Bs("0x9")][Bs("0x0")](Bs("0x65")),r={},s=t[Bs("0x25")];if(n[Bs("0x64")](Bs("0xe")),n._descriptionFactory[Bs("0x54")](Bs("0x76"),(t=>Yo(s,Bs("0x2f"),t))),n._descriptionFactory[Bs("0x54")](Bs("0x51"),(t=>Yo(s,Bs("0x23"),t))),n[Bs("0x2a")].registerElementLabel(Bs("0x5e"),(()=>Yo(s,"ELEMENT_CAPTION"))),t[Bs("0x9")][Bs("0x70")](Bs("0x29"))&&n.enableCommand("uploadImage"),t[Bs("0x9")][Bs("0x70")]("ImageBlockEditing")&&t[Bs("0x9")][Bs("0x70")](Bs("0x4c"))&&(n[Bs("0x64")](Bs("0x69"),((e,r)=>{const s=o.getClosestSelectedImageElement(t[Bs("0x5a")].document.selection);t[Bs("0x5a")][Bs("0x18")]((()=>{n[Bs("0x31")](s,{commandName:"imageTypeInline",commandParams:[r]},[],Bs("0x40"))}))})),n[Bs("0x64")](Bs("0x4b"),((e,r)=>{t[Bs("0x5a")][Bs("0x18")]((s=>{let x=o[Bs("0x2d")](t.model[Bs("0x3f")][Bs("0x10")]),a=s[Bs("0x47")](x);const c=i.LivePosition.fromPosition(a.start,Bs("0x3d")),l=i.LivePosition[Bs("0x24")](a[Bs("0x3e")],Bs("0x1c"));n[Bs("0x6d")]((()=>e(r))),x=o[Bs("0x2d")](t[Bs("0x5a")][Bs("0x3f")].selection),a=s[Bs("0x47")](x);const u=s[Bs("0x1b")](c,l);c.detach(),l.detach(),n.markBlockFormat(x,{commandName:"imageTypeInline"},[],Bs("0xd")),u[Bs("0x50")][Bs("0x79")](a[Bs("0x50")])&&n[Bs("0x32")](s[Bs("0x1b")](u[Bs("0x50")],a[Bs("0x50")]),Bs("0xd")),a[Bs("0x3e")].isBefore(u[Bs("0x3e")])&&n.markInsertion(s.createRange(a[Bs("0x3e")],u[Bs("0x3e")]),Bs("0xd"))}))})),n[Bs("0x77")].registerCustomCallback("formatBlock","convertInlineImageToBlock",Bs("0x49"),(()=>{})),n[Bs("0x77")].registerCustomCallback(Bs("0x30"),Bs("0xd"),Bs("0x26"),(()=>{})),n[Bs("0x77")][Bs("0x57")](Bs("0x30"),Bs("0xd"),Bs("0x63"),n[Bs("0x77")][Bs("0x3b")](Bs("0x30"),"",Bs("0x26"))),n._suggestionFactory.registerCustomCallback(Bs("0x78"),Bs("0xd"),"join",(()=>{})),n[Bs("0x77")][Bs("0x57")](Bs("0x78"),"convertInlineImageToBlock",Bs("0x63"),(([e])=>{const o=n[Bs("0x77")][Bs("0x3b")](Bs("0x78"),"","discard");let r=e[Bs("0x50")],s=e[Bs("0x3e")];const i=t[Bs("0x5a")][Bs("0x6e")][Bs("0x21")](r,Bs("0xc")),x=t.model.schema[Bs("0x21")](s,Bs("0x6c"));i.isCollapsed&&(r=i.start),x[Bs("0x52")]&&(s=x[Bs("0x3e")]),o([t[Bs("0x5a")][Bs("0x1b")](r,s)])})),n[Bs("0x77")].registerCustomCallback(Bs("0x30"),Bs("0xd"),Bs("0x3c"),c),n[Bs("0x77")][Bs("0x57")]("insertion",Bs("0xd"),Bs("0x3c"),c)),t[Bs("0x9")][Bs("0x70")](Bs("0x7a"))&&(n.enableCommand(Bs("0x74"),((e,r)=>{const s=t[Bs("0x9")][Bs("0x0")](Bs("0x6"));let i=o.getClosestSelectedImageElement(t.model[Bs("0x3f")].selection),x=s[Bs("0x5")](i);t[Bs("0x5a")][Bs("0x18")]((()=>{if(x)return void n.markDeletion(t.model.createRangeOn(x));const a=o[Bs("0x19")](i);e(r),i=o[Bs("0x2d")](t[Bs("0x5a")][Bs("0x3f")][Bs("0x10")]),x=s.getCaptionFromImageModelElement(i),n.markInsertion(t.model[Bs("0x47")](x),a?null:"imageCaption")}))})),n[Bs("0x77")][Bs("0x57")]("insertion","imageCaption",Bs("0x3c"),c)),t.plugins.has(Bs("0xa"))){n[Bs("0x64")](Bs("0x2b"),((r,s)=>{const i=t.plugins.get(Bs("0x28")).me,x=t[Bs("0x17")][Bs("0x0")](Bs("0x2b"));let a=o[Bs("0x2d")](t[Bs("0x5a")][Bs("0x3f")][Bs("0x10")]),c=t.model[Bs("0x47")](a),l=x[Bs("0x73")];if(l==s.value)return;const u={commandName:Bs("0x2b"),commandParams:[s],formatGroupId:(0,e.uid)()};t[Bs("0x5a")][Bs("0x18")]((()=>{if(n[Bs("0x4d")]()[Bs("0x42")]((t=>t.isInContent&&i==t[Bs("0x41")]&&(Bs("0x30")==t[Bs("0x1d")]||Bs("0x1e")==t[Bs("0x1d")])&&(Bs("0x60")==t[Bs("0x35")]||Bs("0x14")==t[Bs("0x35")])&&t[Bs("0x6a")]()[Bs("0x5f")](c)))[Bs("0x2c")]((t=>n[Bs("0x34")](t[Bs("0x66")]))),a=o.getClosestSelectedImageElement(t.model[Bs("0x3f")][Bs("0x10")]),c=t[Bs("0x5a")][Bs("0x47")](a),x[Bs("0x53")](),t[Bs("0x17")][Bs("0x0")]("imageTypeInline")[Bs("0x53")](),t.commands[Bs("0x0")](Bs("0x4b"))[Bs("0x53")](),l=x[Bs("0x73")],l!=s[Bs("0x73")])return o[Bs("0x2e")](a)&&x[Bs("0x38")](s[Bs("0x73")],a)?(r(s),a=o.getClosestSelectedImageElement(t[Bs("0x5a")][Bs("0x3f")][Bs("0x10")]),void n[Bs("0x31")](a,{...u,commandReversedParams:[{value:l||null}]},[],"imageStylePreApply")):void(o[Bs("0x19")](a)?n[Bs("0x31")](a,u,[],Bs("0x14")):n[Bs("0x59")](c,u,Bs("0x14")))}))}));for(const e of t[Bs("0x9")][Bs("0x0")](Bs("0xa"))[Bs("0x5d")])r[e[Bs("0x7")]]=e.title[Bs("0x48")]();n[Bs("0x77")].registerCustomCallback("formatBlock",Bs("0x60"),Bs("0x49"),(()=>{})),n[Bs("0x77")].registerCustomCallback(Bs("0x30"),Bs("0x14"),Bs("0x49"),(()=>{})),n[Bs("0x77")][Bs("0x57")](Bs("0x1e"),Bs("0x14"),Bs("0x49"),(()=>{})),n._suggestionFactory.registerCustomCallback("formatBlock",Bs("0x60"),Bs("0x26"),(()=>{})),n[Bs("0x77")].registerCustomCallback(Bs("0x30"),Bs("0x60"),"discard",((t,e)=>{n._suggestionFactory[Bs("0x3b")](Bs("0x30"),"",Bs("0x26"))(t,{commandName:e[Bs("0x72")],commandParams:e[Bs("0x13")]})})),n[Bs("0x77")][Bs("0x57")](Bs("0x30"),Bs("0x60"),"chain",c)}const x=[{type:Bs("0x30"),subType:Bs("0x60")},{type:Bs("0x78"),subType:"imageCaption"},{type:"formatBlock",subType:"convertInlineImageToBlock"},{type:Bs("0x78"),subType:Bs("0xd")}];function a(t,e){const r=x[Bs("0x8")]((({type:e,subType:n})=>t.type==e&&t[Bs("0x35")]==n)),s=x[Bs("0x8")]((({type:t,subType:n})=>e.type==t&&e[Bs("0x35")]==n));if(r<0||s<0)return!1;const i=t[Bs("0x6a")](),a=e.getFirstRange();if((0==r||1==r)&&2==s&&i.isIntersecting(a))return!0;if(2==r&&3==s){const t=n[Bs("0x1f")](i,Bs("0x78")).filter((({suggestion:t,meta:e})=>e[Bs("0x56")]&&Bs("0xd")==t[Bs("0x35")]));if(t.length>1&&a.end[Bs("0x5f")](i.start))return!0;if(1==t[Bs("0x5b")]&&(i.start[Bs("0x5f")](a[Bs("0x3e")])||i[Bs("0x3e")][Bs("0x5f")](a[Bs("0x50")])))return!0}if(3==r&&3==s&&i[Bs("0x50")][Bs("0x79")](a.start)){const t=i.end[Bs("0x46")],e=a.start[Bs("0x36")];return o.isBlockImage(t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[Bs("0x5a")][Bs("0x3f")][Bs("0x4f")]((()=>{let e=!1;const r=Array[Bs("0x3")](t[Bs("0x5a")].document[Bs("0x4")].getChangedMarkers());for(const{name:t,data:s}of r){const{group:r,type:i,subType:x,id:a}=n._splitMarkerName(t);if(Bs("0x61")==r&&n[Bs("0x3a")](a)){if("formatBlock"==i&&("imageStylePreApply"==x||Bs("0x14")==x)){const t=n[Bs("0x4a")](a);if(s.newRange){const r=t[Bs("0x6a")]().getContainedElement();if(o.isBlockImage(r))continue;n.discardSuggestion(t),e=!0}}if(Bs("0x78")==i&&"imageCaption"==x&&!s[Bs("0x71")]){const t=n[Bs("0x4a")](a);t[Bs("0x37")]&&t[Bs("0x37")][Bs("0x68")]&&(n[Bs("0x34")](t[Bs("0x37")]),e=!0)}}}return e})),t[Bs("0x9")][Bs("0x70")]("ImageResize")&&n.enableCommand(Bs("0x67"),((e,r)=>{const s=o[Bs("0x2d")](t[Bs("0x5a")].document[Bs("0x10")]);s[Bs("0x1a")]("width")!=r[Bs("0x45")]&&t[Bs("0x5a")][Bs("0x18")]((()=>{n[Bs("0x31")](s,{commandName:Bs("0x67"),commandParams:[r]})}))})),t[Bs("0x9")][Bs("0x70")](Bs("0x15"))&&n[Bs("0x64")](Bs("0x16"),((e,r)=>{const s=o[Bs("0x2d")](t[Bs("0x5a")][Bs("0x3f")][Bs("0x10")]);(s[Bs("0x39")]("alt")?s[Bs("0x1a")](Bs("0x20")):"")!=r.newValue&&t[Bs("0x5a")].change((()=>{n[Bs("0x31")](s,{commandName:Bs("0x16"),commandParams:[r]})}))})),n[Bs("0x2a")].registerDescriptionCallback((t=>{if(x[Bs("0x11")]((({type:e,subType:n})=>t[Bs("0x1d")]==e&&t.subType==n)))return t[Bs("0x27")]?{}:void 0})),n[Bs("0x2a")][Bs("0x4e")]((t=>{if(Bs("0x78")==t[Bs("0x1d")]||Bs("0x75")==t.type){const e=t[Bs("0x43")]();if(e&&e.is(Bs("0x58"),Bs("0x5e")))return{type:Bs("0x78")==t[Bs("0x1d")]?"addObject":Bs("0x62"),element:e,quantity:1}}})),n[Bs("0x2a")][Bs("0x4e")]((t=>"formatBlock"==t.type&&Bs("0xd")==t[Bs("0x35")]?{type:Bs("0x5c"),content:"Inline image to block image"}:Bs("0x30")==t[Bs("0x1d")]&&Bs("0x40")==t[Bs("0x35")]?{type:"format",content:Bs("0x55")}:void 0)),n[Bs("0x2a")][Bs("0x4e")]((t=>{const{data:e}=t;if(e){if(Bs("0x2b")==e.commandName){const t=e.commandParams[0][Bs("0x73")];return n=Bs("0x33")===t?Yo(s,Bs("0x2")):r[t]||t,{type:"format",content:Yo(s,Bs("0x22"),n)}}if(Bs("0x16")==e[Bs("0x72")]){const t=e[Bs("0x12")][0][Bs("0xf")];return t?{type:Bs("0x5c"),content:Yo(s,"*Set image text alternative:* %0",'"'+t+'"')}:{type:Bs("0x5c"),content:Yo(s,Bs("0x6f"))}}if("resizeImage"==e.commandName){const t=e[Bs("0x12")][0][Bs("0x45")];return t?{type:Bs("0x5c"),content:Yo(s,"*Set image width:* %0",t)}:{type:Bs("0x5c"),content:Yo(s,Bs("0x6b"))}}}var n}))}}const Us=["_handleImportedData","value","TrackChangesEditing","importWord","high","_trackChangesValueDuringImport","editor","execute","enableCommand","_trackChangesExecuted","plugins","bind","forEach","dataInsert","afterInit","get","lowest","_setSuggestionData","listenTo","commands","trackChanges"];var Gs,Hs;Gs=Us,Hs=211,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const Vs=function(t,e){return Us[t-=0]};class zs extends t.Plugin{constructor(t){super(t),this[Vs("0x4")]=!1,this._trackChangesExecuted=!1}[Vs("0xd")](){const t=this[Vs("0x5")],e=t.commands.get(Vs("0x2")),n=t[Vs("0x12")][Vs("0xe")]("trackChanges");e&&(e.on(Vs("0x6"),((t,[,e])=>{this._trackChangesValueDuringImport=n[Vs("0x0")],e.collaboration_features.track_changes=!this[Vs("0x4")]}),{priority:Vs("0x3")}),this[Vs("0x11")](e,Vs("0xc"),this._handleImportedData[Vs("0xa")](this)),this.listenTo(e,Vs("0xc"),(()=>{this._trackChangesExecuted&&(n[Vs("0x6")](),this[Vs("0x8")]=!1)}),{priority:Vs("0xf")}),t[Vs("0x9")][Vs("0xe")](Vs("0x1"))[Vs("0x7")](Vs("0x2")))}[Vs("0x14")](t,e){const{suggestions:n}=e,o=this[Vs("0x5")][Vs("0x12")].get(Vs("0x13")),r=o[Vs("0x0")];this[Vs("0x4")]!==r&&(o[Vs("0x6")](),this[Vs("0x8")]=!0),n&&n[Vs("0xb")]((({id:t,type:e,author:n,created_at:o})=>{const r={id:t,type:e,authorId:this[Vs("0x5")][Vs("0x9")][Vs("0xe")]("Users").me.id,createdAt:new Date,data:{},hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:"importWord"}}};this.editor.plugins[Vs("0xe")](da)[Vs("0x10")](r)}))}}const Ws=["from","afterInit","outdent","filter","get","_descriptionFactory","blockIndent","getItems","getItemLabel","enableCommand","getSelectedBlocks","*Outdent:* %0","registerDescriptionCallback","editor","selection","format","checkAttribute","document","model","*Indent:* %0","indent","plugins","IndentBlock","outdentBlock","change","has","schema","commandName","indentBlock","IndentEditing"];var Ks,Xs;Ks=Ws,Xs=231,function(t){for(;--t;)Ks.push(Ks.shift())}(++Xs);const qs=function(t,e){return Ws[t-=0]};class $s extends t.Plugin{[qs("0xa")](){const t=this[qs("0x16")],e=t[qs("0x0")][qs("0xd")]("TrackChangesEditing");t[qs("0x0")][qs("0x4")](qs("0x8"))&&(e[qs("0x12")](qs("0x1d")),e[qs("0x12")](qs("0xb")));const n=t.locale;if(t.plugins[qs("0x4")](qs("0x1"))){for(const n of["indentBlock",qs("0x2")])e[qs("0x12")](n,(()=>{const o=Array[qs("0x9")](this[qs("0x16")][qs("0x1b")][qs("0x1a")][qs("0x17")][qs("0x13")]())[qs("0xc")]((t=>this[qs("0x16")][qs("0x1b")][qs("0x5")][qs("0x19")](t,qs("0xf"))));t[qs("0x1b")][qs("0x3")]((()=>{for(const t of o)e.markBlockFormat(t,{commandName:n,commandParams:[{value:""}],formatGroupId:"indentBlock"})}))}));e[qs("0xe")][qs("0x15")]((t=>{const{data:o}=t;if(!o)return;if(qs("0x7")!=o[qs("0x6")]&&"outdentBlock"!=o[qs("0x6")])return;const r=t[qs("0x10")]()[0],s=e[qs("0xe")][qs("0x11")](r);return qs("0x7")==o[qs("0x6")]?{type:qs("0x18"),content:Yo(n,qs("0x1c"),s)}:"outdentBlock"==o[qs("0x6")]?{type:qs("0x18"),content:Yo(n,qs("0x14"),s)}:void 0}))}}}var Qs,Js,Zs=["TrackChangesEditing","requires","get","input","enableCommand","plugins"];Qs=Zs,Js=164,function(t){for(;--t;)Qs.push(Qs.shift())}(++Js);var Ys=function(t,e){return Zs[t-=0]};class ti extends t.Plugin{static get[Ys("0x5")](){return[Wr.Input]}init(){this.editor[Ys("0x3")][Ys("0x0")](Ys("0x4"))[Ys("0x2")](Ys("0x1"))}}const ei=["editor","locale","isCollapsed","linkHref","getAttribute","*Set link:* %0","from","TrackChangesEditing","getFirstRange","commandName","hasAttribute","selection","markInlineFormat","_descriptionFactory","link","model","plugins","registerDescriptionCallback","has","enableCommand","get","format","unlink","commandParams","LinkEditing","change","getRanges","document","getFirstPosition"];var ni,oi;ni=ei,oi=243,function(t){for(;--t;)ni.push(ni.shift())}(++oi);const ri=function(t,e){return ei[t-=0]};class si extends t.Plugin{afterInit(){const t=this[ri("0x12")];if(!t[ri("0x5")][ri("0x7")](ri("0xd")))return;const e=t[ri("0x5")][ri("0x9")](ri("0x19"));e.enableCommand(ri("0x3"),((n,o)=>{const r=t.model[ri("0x10")][ri("0x0")];let s=[];if(r.isCollapsed){if(!r[ri("0x1c")](ri("0x15")))return void n(o);{const e=(0,Wr.findAttributeRange)(r.getFirstPosition(),ri("0x15"),r[ri("0x16")](ri("0x15")),t[ri("0x4")]);s=[e]}}else s=Array[ri("0x18")](r[ri("0xf")]());t[ri("0x4")].change((()=>{for(const t of s)e[ri("0x1")](t,{commandName:ri("0x3"),commandParams:[o]})}))})),e[ri("0x8")](ri("0xb"),(()=>{const n=this[ri("0x12")].model,o=n[ri("0x10")][ri("0x0")];n[ri("0xe")]((()=>{let n=[];n=o[ri("0x14")]?[(0,Wr.findAttributeRange)(o[ri("0x11")](),ri("0x15"),o.getAttribute(ri("0x15")),t[ri("0x4")])]:mr(ri("0x15"),o[ri("0x1a")](),t[ri("0x4")]);for(const t of n)e[ri("0x1")](t,{commandName:ri("0xb"),commandParams:[]})}))})),e[ri("0x2")][ri("0x6")]((e=>{const{data:n}=e,o=t[ri("0x13")];if(n){if("link"==n[ri("0x1b")]){const t=n[ri("0xc")][0];return{type:"format",content:Yo(o,ri("0x17"),'"'+t+'"')}}return ri("0xb")==n.commandName?{type:ri("0xa"),content:Yo(o,"*Remove link*")}:void 0}}))}}const ii=["createPositionAt","getAttribute","registerElementLabel","indentList","numberedList","ELEMENT_NUMBERED_LIST","todoList","checkChild","afterInit","createRange","listIndent","previousSibling","numbered","bulletedList","end","*Uncheck item*","listItem","List","has","length","filter","get","_descriptionFactory","markBlockFormat","commands","paragraph","value","plugins","ListEditing","before","TodoListEditing","*Change to:* %0","enableCommand","format","todoListChecked","blockName","findIndex","name","push","selection","from","TrackChangesEditing","execute","checkTodoList","element","change","outdentList","document","isObject","slice","commandName","todo","add","ELEMENT_LIST_ITEM","replace","editor","getSelectedBlocks","bulleted","*Outdent:* %0","schema","registerDescriptionCallback","model","nextSibling"];var xi,ai;xi=ii,ai=463,function(t){for(;--t;)xi.push(xi.shift())}(++ai);const ci=function(t,e){return ii[t-=0]};class li extends t.Plugin{[ci("0x31")](){const t=this[ci("0x21")],e=t.locale;if(!t[ci("0x5")][ci("0x3b")](ci("0x6")))return;const n=t.plugins.get(ci("0x13")),o=t.plugins[ci("0x3b")](ci("0x8"));function r(e){return()=>{const o=t[ci("0x27")].document[ci("0x11")],r=t[ci("0x2")].get(e);if(r.value)return void t[ci("0x14")](ci("0x3"),{});const s=e[ci("0x1b")](0,-4),i=function(t,e,n){let o=Array[ci("0x12")](t)[ci("0x3d")]((t=>{return e=t,(o=n)[ci("0x30")](e.parent,ci("0x39"))&&!o[ci("0x1a")](e);var e,o}));o=o.filter((t=>!t.is("element",ci("0x39"))||t[ci("0x2a")]("listType")!=e));const r=new Set;for(const t of o)t.is("element",ci("0x39"))?r[ci("0x1e")](ui(t)):r.add(t);return Array[ci("0x12")](r)}(o[ci("0x22")](),s,t.model[ci("0x25")]);t[ci("0x27")].change((()=>{for(const t of i)n[ci("0x1")](t,{commandName:e,commandParams:[{forceValue:!r[ci("0x4")]}],formatGroupId:ci("0xd")},di(t))}))}}function s(e){return()=>{const o=function(t){const e=(t=Array.from(t))[ci("0xe")]((t=>"listItem"!=t[ci("0xf")]));return e>-1&&(t=t.slice(0,e)),t}(t[ci("0x27")][ci("0x19")][ci("0x11")][ci("0x22")]()),r=t[ci("0x27")][ci("0x32")](t[ci("0x27")][ci("0x29")](o[0],ci("0x7")),t[ci("0x27")].createPositionAt(o[o[ci("0x3c")]-1],ci("0x37")));t[ci("0x27")].change((()=>{n[ci("0x1")](r,{commandName:e,commandParams:[],formatGroupId:ci("0x33")},function(t){const e=new Set;for(const n of t){let t=n[ci("0x28")];for(;t&&t[ci("0x2a")]("listIndent")>n[ci("0x2a")](ci("0x33"));)e[ci("0x1e")](t),t=t[ci("0x28")]}return Array.from(e)}(o))}))}}n[ci("0xa")](ci("0x2d"),r(ci("0x2d"))),n.enableCommand(ci("0x36"),r("bulletedList")),o&&n.enableCommand(ci("0x2f"),r(ci("0x2f"))),n.enableCommand(ci("0x2c"),s("indentList")),n[ci("0xa")](ci("0x18"),s(ci("0x18"))),o&&n[ci("0xa")](ci("0x15"),(()=>{const e=t[ci("0x2")][ci("0x3e")](ci("0x15")),o=Array[ci("0x12")](e._selectedElements);o.filter((t=>t[ci("0x2a")](ci("0xc"))!=e.value)),t[ci("0x27")][ci("0x17")]((()=>{for(const t of o)n[ci("0x1")](t,{commandName:ci("0x15"),commandParams:[{forceValue:!e.value}]})}))})),n._descriptionFactory[ci("0x2b")](ci("0x39"),(t=>Yo(e,ci("0x1f"),t))),n[ci("0x0")][ci("0x26")]((t=>{const{data:n}=t;if(n){if("numberedList"==n.commandName||ci("0x36")==n[ci("0x1c")]||ci("0x2f")==n[ci("0x1c")])switch(n[ci("0x1c")][ci("0x20")](ci("0x3a"),"")){case ci("0x23"):return o(Yo(e,"ELEMENT_BULLETED_LIST"));case ci("0x35"):return o(Yo(e,ci("0x2e")));case ci("0x1d"):return o(Yo(e,"ELEMENT_TODO_LIST"))}if(ci("0x2c")==n[ci("0x1c")])return{type:ci("0xb"),content:Yo(e,"*Indent:* %0",Yo(e,"ELEMENT_LIST_ITEM"))};if(ci("0x18")==n[ci("0x1c")])return{type:ci("0xb"),content:Yo(e,ci("0x24"),Yo(e,ci("0x1f")))};if(ci("0x15")==n[ci("0x1c")])return n.commandParams[0].forceValue?{type:ci("0xb"),content:Yo(e,"*Check item*")}:{type:"format",content:Yo(e,ci("0x38"))}}function o(t){return{type:"format",content:Yo(e,ci("0x9"),t)}}}))}}function ui(t){const e=t[ci("0x2a")](ci("0x33"));if(0==e)return t;let n=t;for(;t[ci("0x34")]&&t[ci("0x34")].is(ci("0x16"),ci("0x39"));){const o=t[ci("0x34")][ci("0x2a")](ci("0x33"));if(o==e)n=t[ci("0x34")];else if(o<e)break;t=t[ci("0x34")]}return n}function di(t){const e=[];if(t.is(ci("0x16"),ci("0x39"))&&t.getAttribute("listIndent")>0){let n=t[ci("0x28")];for(;n&&ci("0x39")==n[ci("0xf")]&&n[ci("0x2a")](ci("0x33"))==t[ci("0x2a")](ci("0x33"));)e[ci("0x10")](n),n=n.nextSibling}return e}const gi=["length","handleListStyleCommand","locale","*Format:* set start index to %0","createPositionAt","plugins","from","ELEMENT_","config","ListUtils","_getSuggestionBlocks","replaceAll","markMultiRangeBlockFormat","editor","list.properties","TrackChangesEditing","*Format:* set order to regular","*Format:* set order to reversed","listType","_getTranslationKeyForListStyle","map","enableCommand","format","bind","getListTypeFromListStyleType","getAttribute","getSelectedBlocks","reversed","type","handleDescriptions","listStart","model","handleListReversedCommand","document","getSiblingNodes","commandParams","handleListStartCommand","listStyle","toUpperCase","numbered","element","startIndex","registerDescriptionCallback","ListPropertiesEditing","listReversed","createRange","before","get","listItem","selection","*Change to:* %0","_descriptionFactory"];var mi,fi;mi=gi,fi=144,function(t){for(;--t;)mi.push(mi.shift())}(++fi);const hi=function(t,e){return gi[t-=0]};class pi extends t.Plugin{afterInit(){if(!this[hi("0x19")].plugins.has(hi("0x3")))return;const t=this[hi("0x19")][hi("0x14")].get(hi("0x1a")),e=this[hi("0x19")].plugins.get(hi("0x1b"));t.styles&&e[hi("0x21")](hi("0x31"),this[hi("0xd")][hi("0x23")](this)),t[hi("0x27")]&&e[hi("0x21")]("listReversed",this[hi("0x2c")][hi("0x23")](this)),t.startIndex&&e[hi("0x21")]("listStart",this[hi("0x30")].bind(this)),e[hi("0xb")][hi("0x2")](this[hi("0x29")][hi("0x23")](this))}[hi("0xd")](t,e){const n=this[hi("0x19")][hi("0x11")].get(hi("0x1b")),o=this[hi("0x16")]((t=>t.hasAttribute(hi("0x1e"))));o.length<1||this.editor[hi("0x2b")].change((()=>{n.markMultiRangeBlockFormat(o,{commandName:"listStyle",commandParams:[{type:e.type}],formatGroupId:"listStyle"})}))}handleListReversedCommand(t,e){const n=this[hi("0x19")][hi("0x11")][hi("0x7")](hi("0x1b")),o=this[hi("0x16")]((t=>t.is(hi("0x0"),"listItem")&&"numbered"===t[hi("0x25")](hi("0x1e"))));if(o.length<1)return;const r=o[hi("0x20")]((t=>this.editor.model[hi("0x5")](this[hi("0x19")][hi("0x2b")][hi("0x10")](t,hi("0x6")),this[hi("0x19")].model.createPositionAt(t,0))));this[hi("0x19")][hi("0x2b")].change((()=>{n.markMultiRangeBlockFormat(r,{commandName:"listReversed",commandParams:[{reversed:e[hi("0x27")]}],formatGroupId:hi("0x4")})}))}[hi("0x30")](t,e){const n=this[hi("0x19")][hi("0x11")].get(hi("0x1b")),o=this[hi("0x16")]((t=>t.is("element",hi("0x8"))&&hi("0x33")===t.getAttribute(hi("0x1e"))));if(o[hi("0xc")]<1)return;const r=o.map((t=>this.editor.model[hi("0x5")](this[hi("0x19")].model[hi("0x10")](t,hi("0x6")),this[hi("0x19")][hi("0x2b")][hi("0x10")](t,0))));this[hi("0x19")][hi("0x2b")].change((()=>{n[hi("0x18")](r,{commandName:"listStart",commandParams:[{startIndex:e[hi("0x1")]}],formatGroupId:hi("0x2a")})}))}[hi("0x29")](t){const e=this.editor[hi("0xe")],{data:n}=t;if(!n)return;let o,r;switch(n.commandName){case"listStyle":o=hi("0xa"),r={type:hi("0x22"),content:Yo(e,o,Yo(e,this[hi("0x1f")](n[hi("0x2f")][0][hi("0x28")])))};break;case hi("0x4"):o=n[hi("0x2f")][0].reversed?hi("0x1d"):hi("0x1c"),r={type:"format",content:Yo(e,o)};break;case hi("0x2a"):o=hi("0xf"),r={type:hi("0x22"),content:Yo(e,o,n[hi("0x2f")][0].startIndex)}}return r}[hi("0x16")](t){const e=this[hi("0x19")][hi("0x11")][hi("0x7")](hi("0x15"));let n=Array[hi("0x12")](this[hi("0x19")][hi("0x2b")][hi("0x2d")][hi("0x9")][hi("0x26")]()).filter(t).map((t=>{const n=this[hi("0x19")][hi("0x2b")][hi("0x10")](t,0);return[...e.getSiblingNodes(n,"backward"),...e[hi("0x2e")](n,"forward")]})).flat();return n=[...new Set(n)],n}[hi("0x1f")](t){return hi("0x13")+this[hi("0x19")].plugins[hi("0x7")](hi("0x15"))[hi("0x24")](t).toUpperCase()+"_LIST_"+t[hi("0x32")]()[hi("0x17")]("-","_")}}const bi=["createEmptyElement","TrackChangesEditing","media","MediaEmbedEditing","mediaEmbed","high","dataDowncast","plugins","div","has","get","afterInit","options","for","showSuggestionHighlights","attribute:url:media","ELEMENT_MEDIA","locale","_descriptionFactory"];var Ei,_i;Ei=bi,_i=381,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]};class Ci extends t.Plugin{[Ti("0xa")](){const t=this.editor;if(!t[Ti("0x6")][Ti("0x8")](Ti("0x2")))return;const e=t[Ti("0x6")][Ti("0x9")](Ti("0x0")),n=t[Ti("0x10")];e.enableCommand(Ti("0x3")),e[Ti("0x11")].registerElementLabel("media",(t=>Yo(n,Ti("0xf"),t))),t.conversion[Ti("0xc")](Ti("0x5")).elementToElement({model:Ti("0x1"),view:(t,{writer:e,options:n})=>{if(n[Ti("0xd")])return e[Ti("0x12")](Ti("0x7"))},converterPriority:Ti("0x4")}),t.data.downcastDispatcher.on(Ti("0xe"),((t,e,n)=>{n[Ti("0xb")].showSuggestionHighlights&&t.stop()}),{priority:Ti("0x4")})}}const yi=["plugins","has","TrackChangesEditing","get","enableCommand","editor","mention","MentionEditing"];var ki,Ai;ki=yi,Ai=203,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{afterInit(){const t=this[vi("0x2")];t[vi("0x5")][vi("0x6")](vi("0x4"))&&t[vi("0x5")][vi("0x0")](vi("0x7"))[vi("0x1")](vi("0x3"))}}const Ii=["registerElementLabel","get","TrackChangesEditing","ELEMENT_PAGE_BREAK","editor","_descriptionFactory","plugins","afterInit","pageBreak","locale"];var Si,Li;Si=Ii,Li=285,function(t){for(;--t;)Si.push(Si.shift())}(++Li);const Mi=function(t,e){return Ii[t-=0]};class Ni extends t.Plugin{[Mi("0x2")](){const t=this[Mi("0x9")];if(!t.plugins.has("PageBreakEditing"))return;t[Mi("0x1")][Mi("0x6")](Mi("0x7")).enableCommand(Mi("0x3"));const e=t[Mi("0x1")].get("TrackChangesEditing"),n=t[Mi("0x4")];e[Mi("0x0")][Mi("0x5")]("pageBreak",(t=>Yo(n,Mi("0x8"),t)))}}const wi=["selection","highest","getFirstRange","parent","*Change to:* %0","insert","model","$text","markBlockFormat","document","TrackChangesEditing","nodeAfter","ck-suggestion-marker--active","enableCommand","insertParagraph","writer","registerElementLabel","type","start","toViewPosition","has","change","markerName","filter","from","end","paragraph","bindElementToMarker","getSelectedBlocks","ELEMENT_PARAGRAPH","name","isObject","editing","schema","editor","ck-suggestion-marker-split","insertion","_descriptionFactory","consume","isBlock","getItemLabel","checkChild","get","isLimit","isTouching","showSuggestionHighlights","locale","commandName","markerRange","afterInit","format","plugins","registerDescriptionCallback","downcastDispatcher"];var Oi,Di;Oi=wi,Di=456,function(t){for(;--t;)Oi.push(Oi.shift())}(++Di);const Fi=function(t,e){return wi[t-=0]};class Pi extends t.Plugin{[Fi("0x19")](){const t=this[Fi("0xa")];if(!t[Fi("0x1b")][Fi("0x32")]("Paragraph"))return;const e=t[Fi("0x16")],n=t[Fi("0x1b")][Fi("0x12")](Fi("0x28"));n._descriptionFactory[Fi("0x2e")]("paragraph",(t=>Yo(e,Fi("0x5"),t))),n[Fi("0x2b")]("paragraph",((e,o={})=>{const r=t[Fi("0x24")][Fi("0x27")],s=o[Fi("0x1e")]||r[Fi("0x1e")],i=Array[Fi("0x0")](s[Fi("0x4")]())[Fi("0x35")]((t=>{return e=t,(n=this[Fi("0xa")][Fi("0x24")].schema)[Fi("0x11")](e[Fi("0x21")],Fi("0x2"))&&!n[Fi("0x7")](e)&&"paragraph"!=e.name;var e,n}));t.model[Fi("0x33")]((()=>{for(const t of i)n[Fi("0x26")](t,{commandName:Fi("0x2"),commandParams:[],formatGroupId:"blockName"},fr(t))}))})),n[Fi("0xd")][Fi("0x1c")]((t=>{const{data:n}=t;if(n&&"paragraph"==n[Fi("0x17")])return{type:Fi("0x1a"),content:Yo(e,Fi("0x22"),Yo(e,Fi("0x5")))}})),n.enableCommand(Fi("0x2c")),t[Fi("0x8")][Fi("0x1d")].on("addMarker:suggestion:insertion",Bi(t),{priority:"highest"}),t.data[Fi("0x1d")].on("addMarker:suggestion:insertion",((e,n,o)=>{o.options[Fi("0x15")]&&Bi(t,{showActiveMarker:!1})(e,n,o)}),{priority:Fi("0x1f")});const o=n[Fi("0xd")];o.registerDescriptionCallback((n=>{if(Fi("0xc")!==n[Fi("0x2f")])return;const{start:r,end:s}=n[Fi("0x20")]();if(!r.isTouching(s)||!r.nodeAfter)return;const i=t[Fi("0x24")].schema,x=r.nodeAfter;return i[Fi("0xf")](x)&&!i[Fi("0x13")](x)&&i[Fi("0x11")](x,"$text")?{type:Fi("0xc"),content:Yo(e,"*Insert:* %0",o[Fi("0x10")](x,1))}:void 0}))}}function Bi(t,{showActiveMarker:e=!0}={}){return(n,o,r)=>{const s=t[Fi("0x1b")][Fi("0x12")](Fi("0x28")),i=o[Fi("0x18")][Fi("0x30")],x=o[Fi("0x18")][Fi("0x1")],a=t[Fi("0x24")][Fi("0x9")];if(!i[Fi("0x14")](x)||!i[Fi("0x29")])return;const c=i[Fi("0x29")];if(a[Fi("0xf")](c)&&!a.isLimit(c)&&a[Fi("0x11")](c,Fi("0x25"))){if(!r.consumable[Fi("0xe")](o[Fi("0x18")],n[Fi("0x6")]))return;const t=r[Fi("0x2d")].createUIElement("span",{class:Fi("0xb")}),i=r.mapper[Fi("0x31")](x);e&&s.activeMarkers.includes(o[Fi("0x34")])&&r[Fi("0x2d")].addClass(Fi("0x2a"),t),r[Fi("0x2d")][Fi("0x23")](i,t),r.mapper[Fi("0x3")](t,o.markerName)}}}const ji=["createRangeOn","get","commandName","format","editor","document","getRanges","markInlineFormat","getItems","getAttributes","selection","_descriptionFactory","removeFormat","registerDescriptionCallback","schema","model","locale","getAttributeProperties","plugins","enableCommand","has","afterInit"];var Ui,Gi;Ui=ji,Gi=162,function(t){for(;--t;)Ui.push(Ui.shift())}(++Gi);const Hi=function(t,e){return ji[t-=0]};class Vi extends t.Plugin{[Hi("0xd")](){const t=this[Hi("0x12")];if(!t.plugins[Hi("0xc")]("RemoveFormatEditing"))return;const e=t[Hi("0xa")][Hi("0xf")]("TrackChangesEditing");e[Hi("0xb")](Hi("0x4"),(n=>{const o=t.model[Hi("0x13")][Hi("0x2")];o.isCollapsed?n():t[Hi("0x7")].change((()=>{const n=Array.from(o[Hi("0x14")]());for(const o of n)for(const n of o[Hi("0x0")]())zi(n,t[Hi("0x7")][Hi("0x6")])&&e[Hi("0x15")](t[Hi("0x7")][Hi("0xe")](n),{commandName:Hi("0x4"),commandParams:[]})}))})),e[Hi("0x3")][Hi("0x5")]((e=>{const{data:n}=e;if(n&&"removeFormat"==n[Hi("0x10")])return{type:Hi("0x11"),content:Yo(t[Hi("0x8")],"*Remove all formatting*")}}))}}function zi(t,e){for(const[n]of t[Hi("0x1")]()){const t=e[Hi("0x9")](n);if(t&&t.isFormatting)return!0}return!1}const Wi=["enableCommand","TrackChangesEditing","afterInit","goToPreviousRestrictedEditingException","discardAllSuggestions","has","discardSelectedSuggestions","discardSuggestion","goToNextRestrictedEditingException","plugins","RestrictedEditingModeEditing","get"];var Ki,Xi;Ki=Wi,Xi=160,function(t){for(;--t;)Ki.push(Ki.shift())}(++Xi);const qi=function(t,e){return Wi[t-=0]};class $i extends t.Plugin{[qi("0xa")](){const t=this.editor;if(!t[qi("0x5")][qi("0x1")](qi("0x6")))return;const e=t.plugins.get(qi("0x9"));e[qi("0x8")](qi("0xb")),e[qi("0x8")](qi("0x4"));const n=t[qi("0x5")][qi("0x7")](qi("0x6"));n[qi("0x8")]("trackChanges"),n[qi("0x8")]("acceptSuggestion"),n[qi("0x8")](qi("0x3")),n[qi("0x8")]("acceptAllSuggestions"),n[qi("0x8")](qi("0x0")),n[qi("0x8")]("acceptSelectedSuggestions"),n[qi("0x8")](qi("0x2"))}}const Qi=["editing","high","insert","markerRange","ck-suggestion-marker--active","model","editor","toViewPosition","addClass","addMarker:suggestion:deletion","registerElementLabel","addMarker:suggestion:insertion","enableCommand","shiftEnter","createPositionBefore","element","mapper","requires","markerName","get","downcastDispatcher","TrackChangesEditing","getItems","addMarker:suggestion","writer","softBreak","locale","test","split","merge","deletion","span","showSuggestionHighlights","init","consumable","bindElementToMarker","includes","ELEMENT_LINE_BREAK"];var Ji,Zi;Ji=Qi,Zi=142,function(t){for(;--t;)Ji.push(Ji.shift())}(++Zi);const Yi=function(t,e){return Qi[t-=0]};class tx extends t.Plugin{static get[Yi("0x1b")](){return[ns.ShiftEnter]}[Yi("0x5")](){const t=this[Yi("0x10")],e=t.plugins[Yi("0x1d")](Yi("0x1f"));e[Yi("0x16")](Yi("0x17")),t[Yi("0xa")][Yi("0x1e")].on(Yi("0x15"),ex(t),{priority:Yi("0xb")}),t[Yi("0xa")][Yi("0x1e")].on(Yi("0x13"),ex(t),{priority:Yi("0xb")}),t.data[Yi("0x1e")].on(Yi("0x21"),((e,n,o)=>{o.options[Yi("0x4")]&&ex(t,{showActiveMarker:!1})(e,n,o)})),e._descriptionFactory[Yi("0x14")](Yi("0x23"),(e=>Yo(t[Yi("0x24")],Yi("0x9"),e)))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,r)=>{const s=t.plugins[Yi("0x1d")](Yi("0x1f"));if(!r[Yi("0x6")][Yi("0x25")](o.markerRange,n.name))return;const i=t[Yi("0xf")];for(const t of o[Yi("0xd")][Yi("0x20")]()){if(!t.is(Yi("0x19"),"softBreak"))continue;const n=Yi("0x2")==o[Yi("0x1c")].split(":")[1]?Yi("0x1"):Yi("0x0"),x=r[Yi("0x22")].createUIElement(Yi("0x3"),{class:"ck-suggestion-marker-"+n}),a=r[Yi("0x1a")][Yi("0x11")](i[Yi("0x18")](t));e&&s.activeMarkers[Yi("0x8")](o.markerName)&&r[Yi("0x22")][Yi("0x12")](Yi("0xe"),x),r.writer[Yi("0xc")](a,x),r[Yi("0x1a")][Yi("0x7")](x,o.markerName)}}}const nx=["isCollapsed","get","getRanges","_descriptionFactory","markInlineFormat","TrackChangesEditing","registerDescriptionCallback","commandName","format","FORMAT_RESTRICTED_ENABLED","forceValue","enableCommand","change","plugins","model","value","StandardEditingModeEditing","from"];var ox,rx;ox=nx,rx=470,function(t){for(;--t;)ox.push(ox.shift())}(++rx);const sx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{afterInit(){const t=this.editor,e=t[sx("0xc")],n=t.locale;if(!t.plugins.has(sx("0xe")))return;const o=t[sx("0xb")][sx("0x11")](sx("0x3")),r="restrictedEditingException",s=t.commands[sx("0x11")](r);o[sx("0x9")](r,((t,n={})=>{const i=e.document.selection;if(i[sx("0x10")])return void t(n);const x=void 0!==n[sx("0x8")]?n[sx("0x8")]:!s[sx("0xd")];e[sx("0xa")]((()=>{const t=Array[sx("0xf")](i[sx("0x0")]());for(const n of t){const t=x?[n]:mr(r,n,e);for(const e of t)o[sx("0x2")](e,{commandName:r,commandParams:[{forceValue:x}]})}}))})),o[sx("0x1")][sx("0x4")]((t=>{const{data:e}=t;if(e&&e[sx("0x5")]==r)return e.commandParams[0][sx("0x8")]?{type:sx("0x6"),content:Yo(n,sx("0x7"))}:{type:"format",content:Yo(n,"FORMAT_RESTRICTED_DISABLED")}}))}}const xx=["config","*Remove format:* %0","forceValue","getRangesWithClasses","classes","block","modelElements","commandName","style.definitions","includes","createRangeOn","enableCommand","isCollapsed","getRanges","find","from","inline","styleName","format","plugins","TrackChangesEditing","style:","_descriptionFactory","registerDescriptionCallback","style","document","markInlineFormat","getItems","*Format:* %0","selection","name","getAncestors","isBlock","get","Style","markBlockFormat","afterInit","toLowerCase","value","change","element","commandParams","push","model","enabledStyles","getStyleDefinition","commands"];var ax,cx;ax=xx,cx=260,function(t){for(;--t;)ax.push(ax.shift())}(++cx);const lx=function(t,e){return xx[t-=0]};class ux extends t.Plugin{[lx("0xb")](){const t=this.editor;if(!t[lx("0x29")].has(lx("0x9")))return;const e=t[lx("0x15")][lx("0x8")](lx("0x2e")),n=t.plugins[lx("0x8")](lx("0x2a")),o=t.locale,r=t[lx("0x29")].get("DataSchema"),s=function(t,e=[]){const n={block:[],inline:[]};for(const o of e){const e=[],r=[];for(const n of t.getDefinitionsForView(o.element))n.isBlock?e.push(n.model):r.push(n.model);e.length?n.block.push({...o,modelElements:e,isBlock:!0}):n.inline.push({...o,ghsAttributes:r})}return n}(r,t[lx("0x16")][lx("0x8")](lx("0x1e")));n[lx("0x21")](lx("0x2e"),((o,{styleName:i})=>{const x=t.model[lx("0x0")][lx("0x4")],a=this[lx("0x14")](i,s);if(!a)return;if(!e[lx("0x13")][lx("0x1f")](i))return;if(x[lx("0x22")]&&!a[lx("0x7")])return void o({styleName:i});const c=!e[lx("0xd")][lx("0x1f")](a.name);if(a[lx("0x7")]){const e=function(t,e){const n=new Set;for(const o of t){const t=o[lx("0x6")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e.includes(o.name)){n.add(o);break}}return n}(x.getSelectedBlocks(),a[lx("0x1c")]);t.model[lx("0xe")]((()=>{for(const t of e)n[lx("0xa")](t,{commandName:lx("0x2e"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:lx("0x2b")+i})}))}else{let e=Array[lx("0x25")](x[lx("0x23")]());if(!c){const n=Array[lx("0x25")](r.getDefinitionsForView(a[lx("0xf")],!1))[0].model,o=[];for(const r of e){const e=this[lx("0x19")](t[lx("0x12")],r,a[lx("0x1a")],n);o[lx("0x11")](...e)}e=o}t.model[lx("0xe")]((()=>{for(const t of e)n[lx("0x1")](t,{commandName:"style",commandParams:[{styleName:i,forceValue:c}]})}))}})),n[lx("0x2c")][lx("0x2d")]((t=>{const{data:e}=t;if(e&&lx("0x2e")===e[lx("0x1d")])return e.commandParams[0][lx("0x18")]?{type:lx("0x28"),content:Yo(o,lx("0x3"),e[lx("0x10")][0][lx("0x27")][lx("0xc")]())}:{type:lx("0x28"),content:Yo(o,lx("0x17"),e[lx("0x10")][0][lx("0x27")][lx("0xc")]())}}))}getStyleDefinition(t,e){let n=e[lx("0x1b")][lx("0x24")]((e=>e[lx("0x5")]===t));return n||(n=e[lx("0x26")].find((e=>e[lx("0x5")]===t))),n}getRangesWithClasses(t,e,n,o){const r=[];for(const s of e[lx("0x2")]()){const e=s.getAttribute(o);e&&n.every((t=>e[lx("0x1a")][lx("0x1f")](t)))&&r.push(t[lx("0x20")](s))}return r}}const dx=["has","end","filter","nodeBefore","data","addRange","refresh","insertion","colspan","getChangedMarkers","last","fromRange","detach","from","textProxy","minRow","ELEMENT_TABLE_ROW_WITH_TEXT","some","addClass","batch","showSuggestionHighlights","registerDescriptionCallback","model","commands","toLowerCase","element","MIN_SAFE_INTEGER","*Remove:* %0","mapper","findAncestor","root","writer","_setupColumnsRowsFixing","hasAttribute","options","ELEMENT_TABLE_WITH_TEXT","maxColumn","getAttribute","type","length","TableUtils","max","rootName","tablePaste","afterInit","differ","createTableWalker","map","table","_acceptFormatSuggestionCallbackFactory","tableColumn","order","selectTableColumn","nodeAfter","removeTableRow","ELEMENT_TABLE","toViewElement","registerCustomCallback","locale","document","change:data","name","tableRow","isArray","execute","get","item","editor","cell","getSelectionAffectedTableCells","getChildren","values","join","substr","ELEMENT_TABLE_COLUMN","first","setSelection","startsWith","removeClass","discard","getCellLocation","MAX_SAFE_INTEGER","_tableSuggestions","ELEMENT_TABLE_ROW","subType","oldRange","enqueueChange","$graveyard","getItems","registerPostFixer","_suggestionFactory","accept","insertTableRowBelow","isEqual","minColumn","enableCommand","createPositionAt","selection","_getSuggestionCoords","removeTableColumn","above","getRanges","getRowIndexes","tableCell","classes","push","TrackChangesEditing","plugins","change","_descriptionFactory","span","getChanges","insert","registerElementLabel","add","downcastDispatcher","_tablePostFixingSubtypes","*Insert:* %0","markMultiRangeInsertion","createRangeOn","low","rowspan","ELEMENT_TABLE_COLUMN_WITH_TEXT","selectTableRow","start","getFirstRange","_splitMarkerName","position","highest","getColumnIndexes","insertTableColumnRight","min","deletion","_getCoordsForCells"];var gx,mx;gx=dx,mx=498,function(t){for(;--t;)gx.push(gx.shift())}(++mx);const fx=function(t,e){return dx[t-=0]};class hx extends t.Plugin{constructor(t){super(t),this._tablePostFixingSubtypes=[fx("0x64"),"tableColumn"]}[fx("0x52")](){const t=this[fx("0x69")],e=t[fx("0x3c")][fx("0x61")].selection;if(!t[fx("0xb")][fx("0x26")]("TableEditing"))return;const n=t[fx("0x60")],o=t[fx("0xb")][fx("0x67")](fx("0xa")),r=t[fx("0xb")].get(fx("0x4e"));o[fx("0xd")][fx("0x11")]("table",(t=>Yo(n,fx("0x5d"),t))),this[fx("0x46")](),o[fx("0x85")]("insertTable"),o.enableCommand(fx("0x1b")),o[fx("0x85")](fx("0x5a"));for(const n of["insertTableRowAbove",fx("0x82")]){const s=t[fx("0x3d")].get(n);o[fx("0x85")](n,(n=>{t[fx("0x3c")].change((t=>{n();const i=fx("0x4")===s[fx("0x59")],x=r.getSelectionAffectedTableCells(e),a=r.getRowIndexes(x),c=i?a[fx("0x71")]-1:a[fx("0x30")]+1,l=x[0].findAncestor("table"),u=r[fx("0x54")](l,{startRow:c,endRow:c}),d=Array[fx("0x33")](u).map((e=>t.createRangeOn(e[fx("0x6a")])));o[fx("0x16")](d,"tableRow")}))}))}for(const n of["insertTableColumnLeft",fx("0x22")]){const s=t[fx("0x3d")][fx("0x67")](n);o[fx("0x85")](n,(n=>{t[fx("0x3c")][fx("0xc")]((t=>{n();const i="left"===s[fx("0x59")],x=r[fx("0x6b")](e),a=r[fx("0x21")](x),c=i?a[fx("0x71")]-1:a[fx("0x30")]+1,l=x[0][fx("0x43")](fx("0x56")),u=r.createTableWalker(l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[fx("0x33")](u).map((e=>t[fx("0x17")](e[fx("0x6a")])));o.markMultiRangeInsertion(d,fx("0x58"))}))}))}for(const n of[fx("0x5c"),fx("0x3")]){const s=n[fx("0x6f")](11),i=s.toLowerCase(),x=i.substr(0,3)+fx("0xe"),a=fx("0x56")+s,c="min"+s,l=fx("0x4f")+s;o[fx("0x85")](n,(()=>{t[fx("0x3c")][fx("0xc")]((t=>{const s=r[fx("0x6b")](e),u=s[0].findAncestor("table");let d;if(fx("0x5c")==n){const t=r[fx("0x6")](s);d={startRow:t[fx("0x71")],endRow:t[fx("0x30")],includeAllSlots:!0}}else{const t=r[fx("0x21")](s);d={startColumn:t[fx("0x71")],endColumn:t.last,includeAllSlots:!0}}const g=r[fx("0x54")](u,d),m=Array[fx("0x33")](g)[fx("0x55")]((({cell:t})=>t)),f=px(m.filter((t=>t.hasAttribute(x)))),h=px(m[fx("0x28")]((t=>!t[fx("0x47")](x)))).map((e=>t[fx("0x17")](e))),p=o.markMultiRangeDeletion(h,a);if(p&&("tableRow"==p[fx("0x7a")]||fx("0x58")==p[fx("0x7a")])){const e=this._getSuggestionCoords(p);for(const n of f){const o=t[fx("0x17")](n),s=r[fx("0x76")](n),a=n[fx("0x4b")](x)-1,u=e[c],d=e[l];u<=s[i]&&s[i]+a<=d&&p[fx("0x2b")](o)}}}))}))}function s(n){const o=Array[fx("0x33")](e[fx("0x5")]()).map((t=>i.LiveRange[fx("0x31")](t)));t[fx("0x3c")][fx("0xc")]((e=>{const r=e[fx("0x39")];n=n[fx("0x28")]((t=>"$graveyard"!=t.root[fx("0x50")])),e.setSelection(n),t.commands.get(fx("0x5c"))[fx("0x2c")](),t[fx("0x66")](fx("0x5c"),{forceDefaultExecution:!0}),t[fx("0x3c")][fx("0x7c")]((()=>{t[fx("0x3c")][fx("0x7c")](r,(t=>{const e=o[fx("0x28")]((t=>fx("0x7d")!=t[fx("0x44")].rootName));e[fx("0x4d")]>0&&t[fx("0x72")](e);for(const t of o)t[fx("0x32")]()}))}))}))}function a(n){t[fx("0x3c")][fx("0xc")]((o=>{const r=Array[fx("0x33")](e[fx("0x5")]())[fx("0x55")]((t=>i.LiveRange.fromRange(t))),s=[];for(const t of n)for(const e of t[fx("0x7e")]({shallow:!0}))s[fx("0x9")](e);for(const e of s)fx("0x7d")!=e.root[fx("0x50")]&&(o[fx("0x72")](o[fx("0x0")](e,0)),t[fx("0x3d")].get("removeTableColumn")[fx("0x2c")](),t[fx("0x66")](fx("0x3"),{forceDefaultExecution:!0}));const x=r[fx("0x28")]((t=>fx("0x7d")!=t[fx("0x44")][fx("0x50")]));x.length>0&&o.setSelection(x);for(const t of r)t[fx("0x32")]()}))}function c(t,e){return e.every((e=>t[fx("0x37")]((t=>t[fx("0x27")][fx("0x83")](e.start)||e.end[fx("0x83")](t[fx("0x1c")])))))}function l(t,e){return t[fx("0x37")]((t=>e[fx("0x37")]((e=>t[fx("0x27")].isTouching(e.start)))))}t[fx("0x2a")][fx("0x13")].on("addMarker:suggestion",((t,e,n)=>{if(!n[fx("0x48")][fx("0x3a")])return;const o=e[fx("0x68")];if(!o)return;const r=n[fx("0x42")][fx("0x5e")](o);function s(t){return Array[fx("0x65")](t)?t:[t]}r&&fx("0x7")===o[fx("0x63")]&&(0,x.setHighlightHandling)(r,n[fx("0x45")],((t,e,n)=>n[fx("0x38")](s(e[fx("0x8")]),t)),((t,e,n)=>n[fx("0x74")](s(e[fx("0x8")]),t)))}),{priority:fx("0x20")}),o[fx("0xd")].registerDescriptionCallback((t=>{if("insertion"!=t[fx("0x4c")]&&fx("0x24")!=t[fx("0x4c")])return;const e=t.getContainedElement();if(null!=e&&e.is(fx("0x3f"),fx("0x56"))){if(fx("0x2d")==t[fx("0x4c")]){const e=t[fx("0x7e")]()[fx("0x28")]((t=>t.is(fx("0x34"))))[fx("0x55")]((t=>t[fx("0x2a")]));if(e[fx("0x4d")])return{type:"insertion",content:Yo(n,fx("0x15"),Yo(n,fx("0x49"),'"'+e[fx("0x6e")](" ")+'"'))}}if(fx("0x24")==t[fx("0x4c")]){const e=t.getItems()[fx("0x28")]((t=>t.is(fx("0x34"))))[fx("0x55")]((t=>t[fx("0x2a")]));if(e[fx("0x4d")])return{type:"deletion",content:Yo(n,fx("0x41"),Yo(n,fx("0x49"),'"'+e[fx("0x6e")](" ")+'"'))}}}})),o[fx("0xd")][fx("0x3b")]((t=>{if("tableRow"==t.subType){const e=t.getItems()[fx("0x28")]((t=>t.is(fx("0x34"))))[fx("0x55")]((t=>t[fx("0x2a")])),o=this[fx("0x2")](t),r=o.maxRow-o[fx("0x35")]+1;if(fx("0x2d")==t[fx("0x4c")])return e[fx("0x4d")]?{type:fx("0x2d"),content:Yo(n,"*Insert:* %0",Yo(n,fx("0x36"),[r,'"'+e[fx("0x6e")](" ")+'"']))}:{type:fx("0x2d"),content:Yo(n,fx("0x15"),Yo(n,fx("0x79"),r))};if("deletion"==t.type)return e[fx("0x4d")]?{type:fx("0x24"),content:Yo(n,"*Remove:* %0",Yo(n,fx("0x36"),[r,'"'+e[fx("0x6e")](" ")+'"']))}:{type:"deletion",content:Yo(n,fx("0x41"),Yo(n,"ELEMENT_TABLE_ROW",r))}}if(fx("0x58")==t[fx("0x7a")]){const e=t[fx("0x7e")]().filter((t=>t.is(fx("0x34"))))[fx("0x55")]((t=>t[fx("0x2a")])),o=this._getSuggestionCoords(t),r=o[fx("0x4a")]-o[fx("0x84")]+1;if(fx("0x2d")==t[fx("0x4c")])return e[fx("0x4d")]?{type:fx("0x2d"),content:Yo(n,"*Insert:* %0",Yo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[r,'"'+e[fx("0x6e")](" ")+'"']))}:{type:fx("0x2d"),content:Yo(n,fx("0x15"),Yo(n,fx("0x70"),r))};if(fx("0x24")==t.type)return e[fx("0x4d")]?{type:fx("0x24"),content:Yo(n,"*Remove:* %0",Yo(n,fx("0x1a"),[r,'"'+e[fx("0x6e")](" ")+'"']))}:{type:"deletion",content:Yo(n,fx("0x41"),Yo(n,fx("0x70"),r))}}})),o[fx("0x80")][fx("0x5f")](fx("0x2d"),"tableRow","discard",s),o[fx("0x80")][fx("0x5f")](fx("0x24"),"tableRow",fx("0x81"),s),o._suggestionFactory.registerCustomCallback("insertion",fx("0x58"),fx("0x75"),a),o[fx("0x80")].registerCustomCallback(fx("0x24"),fx("0x58"),fx("0x81"),a),o[fx("0x80")][fx("0x5f")](fx("0x2d"),fx("0x58"),"join",c),o[fx("0x80")][fx("0x5f")](fx("0x24"),fx("0x58"),fx("0x6e"),c),o[fx("0x80")].registerCustomCallback("insertion",fx("0x64"),fx("0x6e"),l),o[fx("0x80")][fx("0x5f")](fx("0x24"),fx("0x64"),"join",l)}[fx("0x57")](){const t=this[fx("0x69")],e=t[fx("0x3c")][fx("0x61")][fx("0x1")];return(n,o)=>{t[fx("0x3c")][fx("0xc")]((r=>{const{commandName:s,commandParams:x}=o;let a=n[0][fx("0x27")][fx("0x29")];x&&x[0]&&!1===x[0].forceValue&&(a=n[0][fx("0x1c")][fx("0x5b")]);const c=r.createRangeIn(a);if("$graveyard"==c[fx("0x44")].rootName)return;const l=Array[fx("0x33")](e.getRanges()).map((t=>i.LiveRange.fromRange(t)));r[fx("0x72")](c),t.commands[fx("0x67")](s).refresh(),x[fx("0x9")]({forceDefaultExecution:!0}),t[fx("0x66")](s,...x);const u=l.filter((t=>fx("0x7d")!=t.root.rootName));u[fx("0x4d")]>0&&r[fx("0x72")](u);for(const t of l)t[fx("0x32")]()}))}}[fx("0x25")](t){const e=this[fx("0x69")][fx("0xb")][fx("0x67")](fx("0x4e"));let n=Number[fx("0x77")],o=Number[fx("0x40")],r=Number[fx("0x77")],s=Number[fx("0x40")];for(const i of t){if(fx("0x7d")==i[fx("0x44")][fx("0x50")])continue;const{row:t,column:x}=e.getCellLocation(i),a=i[fx("0x47")](fx("0x19"))?i.getAttribute(fx("0x19"))-1:0,c=i[fx("0x47")](fx("0x2e"))?i[fx("0x4b")](fx("0x2e"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,r=x<r?x:r,s=x+c>s?x+c:s}return{minRow:n,maxRow:o,minColumn:r,maxColumn:s}}[fx("0x46")](){const t=this[fx("0x69")],e=t[fx("0xb")].get(fx("0xa")),n=t[fx("0xb")][fx("0x67")]("TableUtils");this[fx("0x78")]=new Set,t[fx("0x3c")][fx("0x61")].on(fx("0x62"),(()=>{const n=Array[fx("0x33")](t[fx("0x3c")][fx("0x61")][fx("0x53")][fx("0x2f")]());for(const{name:t,data:o}of n){const{group:n,id:r,subType:s}=e[fx("0x1e")](t);if("suggestion"!=n)continue;if(null!=o[fx("0x7b")])continue;const i=e.getSuggestion(r);this[fx("0x14")].includes(s)&&this[fx("0x78")][fx("0x12")](i)}}),{priority:fx("0x18")});const o=(t,e)=>{let o=!1;const r=e[fx("0x17")](t),s=t.findAncestor(fx("0x56")),i=n[fx("0x76")](t);for(const e of this._tableSuggestions){const n=e[fx("0x7a")],x=n[fx("0x73")](fx("0x51")),a=n[fx("0x6f")](x?10:5),c=a[fx("0x3e")](),l=c[fx("0x6f")](0,3)+fx("0xe"),u=fx("0x23")+a,d=fx("0x4f")+a;if(!e.isInContent)continue;if(s!=e[fx("0x1d")]()[fx("0x1c")][fx("0x43")](fx("0x56")))continue;if(e.isIntersectingWithRange(r))continue;const g=t[fx("0x47")](l)?t[fx("0x4b")](l)-1:0,m=this[fx("0x2")](e),f=m[u],h=m[d];f<=i[c]&&i[c]+g<=h&&(e[fx("0x2b")](r),o=!0)}return o};t[fx("0x3c")].document[fx("0x7f")]((e=>{let n=!1;for(const r of t[fx("0x3c")][fx("0x61")][fx("0x53")][fx("0xf")]())if(fx("0x10")==r.type)if("tableRow"==r.name)for(const t of r[fx("0x1f")][fx("0x5b")][fx("0x6c")]())n=n||o(t,e);else"tableCell"==r[fx("0x63")]&&(n=n||o(r[fx("0x1f")][fx("0x5b")],e));return n}))}[fx("0x2")](t){return this._getCoordsForCells(t.getRanges()[fx("0x55")]((t=>t[fx("0x1c")].nodeAfter)))}}function px(t){return Array[fx("0x33")](new Set(t)[fx("0x6d")]())}const bx=["registerCustomCallback","rootName","refresh","selection","findAncestor","_areSelectedCellsMergable","_acceptFormatSuggestionCallbackFactory","highest","size","TrackChangesEditing","containsRange","tableCell","getCellLocation","getAncestors","horizontally","type","splitTableCellHorizontally","setSelection","mergeTableCellDown","commandName","enableCommand","push","_tablePostFixingSubtypes","createRangeOn","TableEditing","_suggestionFactory","get","TableUtils","registerDescriptionCallback","filter","mergeTableCellLeft","from","editor","detach","_areMergableCells","plugins","add","isEnabled","getSuggestions","trackChanges","deletion","getSelectionAffectedTableCells","mergeTableCellUp","change","*Split cell:* horizontally","root","forceDefaultExecution","*Merge cells*","value","format","createTableWalker","splitTableCellVertically","*Split cell:* vertically","execute","_isForcedDefaultExecutionBlock","mergeTableCellRight","map","element","accept","$graveyard","afterInit","model","has","low","cell","document","commands","mergeTableCells","return","length","getFirstPosition","markMultiRangeBlockFormat","set:isEnabled","find","formatBlock","_descriptionFactory","insertion","requires"];var Ex,_x;Ex=bx,_x=154,function(t){for(;--t;)Ex.push(Ex.shift())}(++_x);const Tx=function(t,e){return bx[t-=0]};class Cx extends t.Plugin{static get[Tx("0x1")](){return[hx]}[Tx("0x3e")](){const t=this.editor,e=t[Tx("0x3f")][Tx("0x43")][Tx("0x5")],n=t.locale;if(!t[Tx("0x25")][Tx("0x40")](Tx("0x1a")))return;const o=t.plugins[Tx("0x1c")](Tx("0xb")),r=t[Tx("0x25")][Tx("0x1c")](Tx("0x1d")),s=t[Tx("0x25")][Tx("0x1c")](hx);s[Tx("0x18")][Tx("0x17")](Tx("0x45")),o[Tx("0x16")](Tx("0x45"),(()=>{const e=r[Tx("0x2b")](t[Tx("0x3f")][Tx("0x43")][Tx("0x5")]);t[Tx("0x3f")][Tx("0x2d")]((()=>{o.markMultiRangeBlockFormat(e,{commandName:Tx("0x45"),commandParams:[]},[],Tx("0x45"))}))})),t[Tx("0x44")].get(Tx("0x45")).on(Tx("0x37"),((e,n)=>{t[Tx("0x44")][Tx("0x1c")](Tx("0x29"))[Tx("0x32")]&&(n[Tx("0x47")]>0&&n[n.length-1]&&n[n[Tx("0x47")]-1][Tx("0x30")]||o[Tx("0x38")]||this._areSelectedCellsMergable()||e.stop())}),{priority:Tx("0x9")});for(const e of[Tx("0x2c"),Tx("0x39"),Tx("0x14"),Tx("0x20")]){const n=t[Tx("0x44")].get(e);o[Tx("0x16")](e,(()=>{const e=t[Tx("0x3f")][Tx("0x43")][Tx("0x5")][Tx("0x48")]().getAncestors()[Tx("0x4b")]((t=>t.is("element",Tx("0xd")))),r=n[Tx("0x32")];t[Tx("0x3f")][Tx("0x2d")]((()=>{o[Tx("0x49")]([e,r],{commandName:Tx("0x45"),commandParams:[]},[],Tx("0x45"))}))}))}for(const e of["splitTableCellVertically","splitTableCellHorizontally"]){const n=t[Tx("0x44")][Tx("0x1c")](e);o.enableCommand(e,(()=>{const s=r[Tx("0x2b")](t.model[Tx("0x43")][Tx("0x5")])[0],i=s[Tx("0x6")]("table"),{column:x,row:a}=r[Tx("0xe")](s);let c=[];if(Tx("0x10")==n.direction){const t=r[Tx("0x34")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Tx("0x21")](t)[Tx("0x3a")]((t=>t[Tx("0x42")]))}else{const t=r[Tx("0x34")](i,{column:x,includeAllSlots:!0});c=Array.from(t).map((t=>t[Tx("0x42")]))}t[Tx("0x3f")].change((t=>{o.markBlockFormat(t[Tx("0x19")](s),{commandName:e,commandParams:[]},c,e)}))}))}o[Tx("0x4d")][Tx("0x1e")]((t=>{const{data:e}=t;if(e)return Tx("0x45")==e[Tx("0x15")]?{type:Tx("0x33"),content:Yo(n,Tx("0x31"))}:void 0})),o[Tx("0x4d")][Tx("0x1e")]((t=>{const{data:e}=t;if(e)return Tx("0x35")==e[Tx("0x15")]?{type:Tx("0x33"),content:Yo(n,Tx("0x36"))}:"splitTableCellHorizontally"==e[Tx("0x15")]?{type:Tx("0x33"),content:Yo(n,Tx("0x2e"))}:void 0}));const x=s[Tx("0x8")]();for(const t of[Tx("0x2c"),Tx("0x39"),Tx("0x14"),Tx("0x20")])o[Tx("0x1b")].registerCustomCallback(Tx("0x4c"),t,"accept",x);for(const t of[Tx("0x35"),Tx("0x12")])o[Tx("0x1b")][Tx("0x2")](Tx("0x4c"),t,Tx("0x3c"),x);o[Tx("0x1b")][Tx("0x2")](Tx("0x4c"),"mergeTableCells","accept",(n=>{t[Tx("0x3f")][Tx("0x2d")]((o=>{const r=Array[Tx("0x21")](e.getRanges())[Tx("0x3a")]((t=>i.LiveRange.fromRange(t)));o[Tx("0x13")](n),t.commands.get("mergeTableCells")[Tx("0x4")](),t[Tx("0x37")]("mergeTableCells",{forceDefaultExecution:!0});const s=r[Tx("0x1f")]((t=>Tx("0x3d")!=t[Tx("0x2f")][Tx("0x3")]));s.length>0&&o.setSelection(s);for(const t of r)t[Tx("0x23")]()}))}));for(const e of["mergeTableCellUp",Tx("0x14"),Tx("0x20"),Tx("0x39")]){const n=t[Tx("0x44")].get(e);n.on(Tx("0x4a"),((e,o,r)=>{if(r){const o=t.model.document[Tx("0x5")][Tx("0x48")]()[Tx("0xf")]()[Tx("0x4b")]((t=>t.is(Tx("0x3b"),Tx("0xd"))));this._areMergableCells(n[Tx("0x32")],o)||(e[Tx("0x46")]=!1,e.stop())}}),{priority:Tx("0x41")})}}[Tx("0x7")](){const t=this[Tx("0x22")].commands.get(Tx("0x45")),e=this[Tx("0x22")][Tx("0x25")][Tx("0x1c")](Tx("0x1d"));if(!t[Tx("0x27")])return!1;const n=e[Tx("0x2b")](this[Tx("0x22")][Tx("0x3f")].document[Tx("0x5")]);for(const t of n)for(const e of n)if(t!=e&&!this[Tx("0x24")](t,e))return!1;return!0}[Tx("0x24")](t,e){const n=this[Tx("0x22")].plugins[Tx("0x1c")]("TrackChangesEditing"),o=this.editor[Tx("0x3f")][Tx("0x19")](t),r=this.editor[Tx("0x3f")][Tx("0x19")](e),s=new Set,i=new Set;for(const t of n[Tx("0x28")]())if((Tx("0x0")==t[Tx("0x11")]||Tx("0x2a")==t[Tx("0x11")]||"mergeTableCells"==t.subType)&&t.isInContent)for(const e of t.getRanges())e.containsRange(o,!0)&&s[Tx("0x26")](t.type+":"+t.author.id),e[Tx("0xc")](r,!0)&&i[Tx("0x26")](t[Tx("0x11")]+":"+t.author.id);if(s[Tx("0xa")]!=i[Tx("0xa")])return!1;for(const t of s)if(!i[Tx("0x40")](t))return!1;return!0}}const yx=["data-suggestion","change","getCellLocation","TableUtils","createPositionAfter","registerDescriptionCallback","writer","data","setTableColumnHeader","childCount","markBlockFormat","createPositionBefore","parent","format","FORMAT_HEADER_ROW","ck-suggestion-marker-","plugins","selection","showSuggestionHighlights","commandName","headingColumns","last","ck-suggestion-marker--active","model","_splitMarkerName","FORMAT_HEADER_COLUMN","options","setTableRowHeader","has","table","getAttribute","item","getChild","TableEditing","toViewElement","setAttribute","getSelectionAffectedTableCells","activeMarkers","downcastDispatcher","accept","afterInit","first","start","nodeBefore","addClass","editing","*Format:* %0","index","markerNameToElements","markerName","registerCustomCallback","getColumnIndexes","includes","commands","removeClass","mapper","removeAttribute","createTableWalker","editor","enableCommand","cell","bindElementToMarker","headingRows","FORMAT_REGULAR_COLUMN","nodeAfter","stop","document","forceValue","createRange","markerRange","requires","formatBlock","getSuggestion","commandParams","_suggestionFactory","get","value","unbindElementFromMarkerName","isBefore","locale","_acceptFormatSuggestionCallbackFactory","consumable","TrackChangesEditing","findAncestor","highest"];var kx,Ax;kx=yx,Ax=394,function(t){for(;--t;)kx.push(kx.shift())}(++Ax);const vx=function(t,e){return yx[t-=0]};class Rx extends t.Plugin{static get[vx("0x10")](){return[hx]}[vx("0x47")](){const t=this[vx("0x4")];if(!t.plugins[vx("0x3b")](vx("0x40")))return;const e=t[vx("0x19")],n=t[vx("0x2f")].get(vx("0x1c")),o=t[vx("0x2f")][vx("0x15")](vx("0x22")),r=t.plugins[vx("0x15")](hx);function s({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(r,s,i)=>{const{type:x,id:a}=n[vx("0x37")](s[vx("0x50")]),c=n[vx("0x12")](a);if(!c[vx("0x26")]||vx("0x27")!=c[vx("0x26")][vx("0x32")])return;if(s[vx("0x3e")])return void r[vx("0xb")]();if(!i[vx("0x1b")].consume(s[vx("0xf")],r.name))return;const l=s[vx("0xf")][vx("0x49")][vx("0xa")],u=s[vx("0xf")].end[vx("0x4a")],d=l[vx("0x2b")][vx("0x2b")],{column:g}=o[vx("0x21")](l),{column:m}=o[vx("0x21")](u);for(let r=g;r<=m;r++){const c=o[vx("0x3")](d,{column:r,includeAllSlots:!1});for(const o of c){const r=o[vx("0x6")],c=i[vx("0x1")][vx("0x41")](r);i[vx("0x25")][vx("0x4b")](vx("0x2e")+x,c),e&&i.writer[vx("0x42")](vx("0x1f"),a,c),i[vx("0x1")][vx("0x7")](c,s.markerName),t&&(n[vx("0x44")][vx("0x53")](s.markerName)?i[vx("0x25")][vx("0x4b")](vx("0x35"),c):i.writer.removeClass(vx("0x35"),c))}}}}n[vx("0x5")](vx("0x3a"),((e,r)=>{const s=o[vx("0x43")](t[vx("0x36")][vx("0xc")].selection),i=o.getRowIndexes(s),x=s[0][vx("0x1d")](vx("0x3c")),a=x[vx("0x3d")](vx("0x8"))||0,c=r&&null!==r[vx("0xd")]?r[vx("0xd")]:!t[vx("0x54")].get("setTableRowHeader")[vx("0x16")],l=c?i[vx("0x34")]:i[vx("0x48")],u=x[vx("0x3f")](l);let d;if(c){const e=x[vx("0x3f")](a);if(u[vx("0x4e")]<e[vx("0x4e")])return;d=t[vx("0x36")][vx("0xe")](t[vx("0x36")].createPositionBefore(e.getChild(0)),t[vx("0x36")][vx("0x23")](u[vx("0x3f")](u[vx("0x28")]-1)))}else{const e=x.getChild(a-1);if(!e)return;d=t.model.createRange(t[vx("0x36")].createPositionBefore(u[vx("0x3f")](0)),t.model[vx("0x23")](e.getChild(e.childCount-1)))}t.model[vx("0x20")]((()=>{n[vx("0x29")](d,{commandName:vx("0x3a"),commandParams:[{forceValue:c}]},[],vx("0x3a"))}))})),n.enableCommand(vx("0x27"),((e,o)=>{const r=t[vx("0x2f")][vx("0x15")]("TableUtils"),s=r[vx("0x43")](t.model[vx("0xc")][vx("0x30")]),i=r[vx("0x52")](s),x=s[0][vx("0x1d")](vx("0x3c")),a=x.getAttribute(vx("0x33"))||0,c=o&&null!==o[vx("0xd")]?o[vx("0xd")]:!t[vx("0x54")][vx("0x15")](vx("0x27"))[vx("0x16")];let l;const u=x.getChild(0),d=c?i[vx("0x34")]:i[vx("0x48")],g=r[vx("0x3")](x,{startRow:0,column:d,includeAllSlots:!1}),m=Array.from(g)[0][vx("0x6")];if(c){const e=u[vx("0x3f")](a);if(m[vx("0x18")](e))return;l=t[vx("0x36")].createRange(t[vx("0x36")].createPositionBefore(e),t[vx("0x36")][vx("0x23")](m))}else{const e=u[vx("0x3f")](a-1);if(!e)return;l=t[vx("0x36")][vx("0xe")](t[vx("0x36")][vx("0x2a")](m),t[vx("0x36")][vx("0x23")](e))}t.model.change((()=>{n[vx("0x29")](l,{commandName:vx("0x27"),commandParams:[{forceValue:c}]},[],vx("0x27"))}))})),t[vx("0x4c")][vx("0x45")].on("addMarker:suggestion",s(),{priority:vx("0x1e")}),t[vx("0x26")][vx("0x45")].on("addMarker:suggestion",((t,e,n)=>{n[vx("0x39")][vx("0x31")]&&s({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:"highest"}),t[vx("0x4c")][vx("0x45")].on("removeMarker:suggestion",((t,e,o)=>{const{type:r,id:s}=n._splitMarkerName(e.markerName),i=n.getSuggestion(s);if(!i.data||"setTableColumnHeader"!=i[vx("0x26")][vx("0x32")])return;const x=o.mapper[vx("0x4f")](e[vx("0x50")]);if(x)for(const t of x)o[vx("0x25")][vx("0x0")](vx("0x2e")+r,t),o.writer[vx("0x0")](vx("0x35"),t),o.writer[vx("0x2")](vx("0x1f"),t),o[vx("0x1")][vx("0x17")](t,e[vx("0x50")])}),{priority:vx("0x1e")}),n._descriptionFactory[vx("0x24")]((t=>{const{data:n}=t;if(n){if(vx("0x3a")==n[vx("0x32")]){const t=n[vx("0x13")][0][vx("0xd")];return o(Yo(e,t?vx("0x2d"):"FORMAT_REGULAR_ROW"))}if(vx("0x27")==n[vx("0x32")]){const t=n[vx("0x13")][0][vx("0xd")];return o(Yo(e,vx(t?"0x38":"0x9")))}}function o(t){return{type:vx("0x2c"),content:Yo(e,vx("0x4d"),t)}}}));const i=r[vx("0x1a")]();n[vx("0x14")].registerCustomCallback(vx("0x11"),"setTableRowHeader",vx("0x46"),i),n[vx("0x14")][vx("0x51")](vx("0x11"),vx("0x27"),"accept",i)}}const Ix=["reduce","has","redo","suggestion","findAncestor","deletionRanges","isInContent","tablePaste","differ","deletion","getRanges","documentSelection","clipboardOutput","activeMarkers","insertRows","next","setAttributes","createRange","isEqual","batch","options","columns","remove","change","elementToElement","insertion","_getCoordsForCells","_tablePostFixingSubtypes","markers","set","selection","oldRange","rows","_replaceTableSlotCell","tableCellBorderColor","getColumns","getContainedElement","columnInsertionIndexes","previous","createRangeIn","trackChanges","showSuggestionHighlights","_splitMarkerName","discard","registerPostFixer","isEmpty","tablePasteChainId","fill","plugins","first","tablePasteColumn","push","registerCustomCallback","subType","join","for","rootName","insertContent","ck-suggestion-marker--active","ck-suggestion-marker-insertion","afterInit","view","getItems","endRow","model","every","getMarkers","cell","suggestionLoaded","getChildren","_isForcedDefaultExecutionBlock","markerName","table","root","formatBlock","insert","registerDescriptionCallback","rowInsertionIndexes","removeMarker","get","row","locale","editor","editing","getChangedMarkers","editingDowncast","register","markMultiRangeDeletion","tableCellSuggestion","forceDefaultExecution","getSuggestion","createElement","length","filter","markMultiRangeInsertion","name","getAttributes","document","type","newRange","listenTo","element","from","high","removeColumns","getRange","accept","map","Users","TrackChangesEditing","dataDowncast","createRangeOn","paragraph","getSuggestions","attributes","startsWith","author","commands","low","tablePasteRow","find","position","tablePasteCell","return","updateMarker","createTableWalker","some","tableCellVerticalAlignment","getChild","getAllAdjacentSuggestions","_suggestionFactory","tableCellBackgroundColor","start","nextSibling","getTableIfOnlyTableInContent","suggestion:formatBlock:tablePasteCell","cells","*Replace table cells*","content","getShiftedBy","tableCellBorderStyle","includes","getColumnIndexes","fromEntries","$graveyard","tableCellPadding","add","last","TableClipboard","tableCell","unwrap","suggestion-td","insertColumns","tableCellBorderWidth","createPositionBefore","_createdBatches","conversion","getRows","getRowIndexes","hasSuggestion","requires","columnInsertionRanges","value","end","markerAttributes"];var Sx,Lx;Sx=Ix,Lx=409,function(t){for(;--t;)Sx.push(Sx.shift())}(++Lx);const Mx=function(t,e){return Ix[t-=0]},Nx=[Mx("0x4a"),Mx("0x78"),Mx("0x3d"),"tableCellHorizontalAlignment",Mx("0x30"),Mx("0x34"),Mx("0x42")],wx=Object[Mx("0x40")](Nx[Mx("0x1c")]((t=>[t,null])));class Ox extends t.Plugin{static get[Mx("0x51")](){return[hx]}[Mx("0x92")](){const t=this[Mx("0x3")];if(!t[Mx("0x86")].has(Mx("0x45")))return;const n=t.plugins[Mx("0x0")](Mx("0x1e")),o=t.plugins.get("TableUtils"),r=t.plugins[Mx("0x0")](hx),s=t[Mx("0x86")][Mx("0x0")](Mx("0x45"));r[Mx("0x71")].push(Mx("0x28"),Mx("0x88")),t[Mx("0x96")].schema[Mx("0x7")]("tableCellSuggestion",{allowIn:Mx("0x46"),allowContentOf:Mx("0x46"),isLimit:!0}),t[Mx("0x4d")][Mx("0x6e")]({model:"tableCellSuggestion",view:Mx("0x48")});let i=null;t[Mx("0x96")].on(Mx("0x8f"),((r,x)=>{const[a,c]=x,l=x[x[Mx("0xd")]-1];l&&l[Mx("0xa")]||n[Mx("0x9c")]||this[Mx("0x3")][Mx("0x26")][Mx("0x0")](Mx("0x7e"))[Mx("0x53")]&&function(t,e,n,o,r){if(e&&!e.is(Mx("0x61")))return!1;const s=r[Mx("0x37")](t,n);if(!s||!Fx(s,null,o))return!1;const i=o.getSelectionAffectedTableCells(n.document[Mx("0x74")]);if(!i[Mx("0xd")])return!1;const x=i[0][Mx("0x5a")]("table"),a=o[Mx("0x4f")](i),c=o[Mx("0x3f")](i),l={startRow:a[Mx("0x87")],endRow:a.last,startColumn:c[Mx("0x87")],endColumn:c[Mx("0x44")]};return 1==i[Mx("0xd")]&&(l[Mx("0x95")]+=o[Mx("0x4e")](s)-1,l.endColumn+=o[Mx("0x79")](s)-1),Fx(x,l,o)}(a,c,t.model,o,s)&&(r.stop(),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Mx("0x96")][Mx("0x6d")]((()=>{t[Mx("0x96")][Mx("0x8f")](x[0],x[1],x[2],x[3],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:r,columnInsertionRanges:s,insertionRanges:a,deletionRanges:c,cells:l}=i;r.length&&n[Mx("0xf")](r,Mx("0x28"),{tablePasteChainId:o}),s[Mx("0xd")]&&n[Mx("0xf")](s,"tablePasteColumn",{tablePasteChainId:o}),a[Mx("0xd")]&&n[Mx("0xf")](a,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0}),c[Mx("0xd")]&&n[Mx("0x8")](c,Mx("0x5d"),{tablePasteChainId:o,skipNestingCheck:!0});const u=n.markMultiRangeBlockFormat(l[Mx("0x1c")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Mx("0x2b"),{tablePasteChainId:o});if(u){const e=u.getMarkers(),n=[];for(const{element:o,attributes:r}of l){if(!r)continue;const s=t[Mx("0x96")][Mx("0x20")](o),i=e[Mx("0x29")]((t=>t[Mx("0x1a")]()[Mx("0x68")](s)));i&&n[Mx("0x89")]([i[Mx("0x10")],r])}n[Mx("0xd")]&&u.setAttribute(Mx("0x55"),Object[Mx("0x40")](n))}i=null})))}),{priority:e.priorities[Mx("0x18")]+10}),t[Mx("0x86")][Mx("0x0")]("TableClipboard").on(Mx("0x77"),((t,e)=>{const[n,o,,r]=e;if(!i)return;t.stop();const s=n[Mx("0x99")],x=o,a=Dx(s),c=Dx(x);t[Mx("0x2c")]=s;let l=null,u=null;if(c||a)if(a&&!c){r[Mx("0x6c")](s[Mx("0x31")](0));for(const t of Array.from(x[Mx("0x9b")]()))r.insert(t,s,"end");const t=i[Mx("0xa3")][Mx("0x3e")](n[Mx("0x1")]),e=i[Mx("0x7b")][Mx("0x3e")](n.column);t||e||(l=r[Mx("0x7d")](s))}else c&&!a&&(u=r[Mx("0x7d")](s));else{const t=r[Mx("0xc")](Mx("0x9")),e=r[Mx("0xc")](Mx("0x9"));r.wrap(r[Mx("0x7d")](s),e),r[Mx("0xa1")](t,s,0);for(const e of Array[Mx("0x17")](x[Mx("0x9b")]()))r.insert(e,t,Mx("0x54"));l=r[Mx("0x20")](t),u=r[Mx("0x20")](e)}const d=Array[Mx("0x17")](x[Mx("0x11")]()).filter((([t])=>Nx[Mx("0x3e")](t)));i[Mx("0x39")][Mx("0x89")]({element:s,attributes:d.length?Object[Mx("0x40")](d):null}),l&&i.insertionRanges[Mx("0x89")](l),u&&i[Mx("0x5b")][Mx("0x89")](u)}),{priority:Mx("0x18")}),o.on(Mx("0x49"),((e,n)=>{const[r,s={}]=n;if(!i)return;const x=s.at||0,a=s[Mx("0x6b")]||1;i[Mx("0x7b")]=new Array(a).fill(x)[Mx("0x1c")](((t,e)=>t+e));for(const{cell:e}of o[Mx("0x2e")](r,{startColumn:x,endColumn:x+a-1}))i[Mx("0x52")].push(t[Mx("0x96")][Mx("0x20")](e))}),{priority:"low"}),o.on(Mx("0x64"),((e,n)=>{const[r,s={}]=n;if(!i)return;const x=s.at||0,a=s[Mx("0x76")]||1;i.rowInsertionIndexes=new Array(a)[Mx("0x85")](x).map(((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(r,{startRow:x,endRow:x+a-1}))i.rowInsertionRanges[Mx("0x89")](t[Mx("0x96")].createRangeOn(e))}),{priority:Mx("0x27")}),n._descriptionFactory[Mx("0xa2")]((e=>{if(e[Mx("0x8b")]&&e[Mx("0x8b")][Mx("0x24")]("tablePaste"))return e.previous?{}:{type:Mx("0x6f"),content:Yo(t[Mx("0x2")],Mx("0x3a"))}}));const x=()=>{};for(const t of[Mx("0x5d"),Mx("0x88"),Mx("0x28"),Mx("0x2b")])n._suggestionFactory[Mx("0x8a")](Mx("0x6f"),t,"join",x),n._suggestionFactory[Mx("0x8a")](Mx("0x5f"),t,Mx("0x8c"),x);n[Mx("0x33")][Mx("0x8a")](Mx("0xa0"),"tablePasteCell",Mx("0x81"),x),n._suggestionFactory[Mx("0x8a")](Mx("0xa0"),"tablePasteCell",Mx("0x1b"),((e,n,o)=>{const r=e.map((t=>t[Mx("0x7a")]())).filter((t=>t)),s=new Map(r[Mx("0x1c")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Mx("0x39")])e&&s[Mx("0x73")](t,e);else if(o&&o[Mx("0x55")])for(const[e,n]of Object.entries(o[Mx("0x55")])){const o=t[Mx("0x96")][Mx("0x72")].get(e),r=o?o[Mx("0x1a")]()[Mx("0x7a")]():null;r&&s[Mx("0x73")](r,n)}t[Mx("0x96")][Mx("0x6d")]((t=>{for(const[e,n]of s)t[Mx("0x66")]({...wx,...n},e)}))}));const a=(e,o)=>{n._suggestionFactory[Mx("0x8a")](e,Mx("0x5d"),o,((r,s,i)=>{t.model[Mx("0x6d")]((t=>{const x=[];for(const t of r){const e=t[Mx("0x35")].nodeAfter;e.is(Mx("0x16"),Mx("0x9"))&&x[Mx("0x89")](e)}n[Mx("0x33")].getSuggestionCallback(e,null,o)(r,s,i);for(const e of x)Mx("0x41")!=e[Mx("0x9f")][Mx("0x8e")]&&t[Mx("0x47")](e)}))}))};a(Mx("0x6f"),Mx("0x1b")),a(Mx("0x6f"),Mx("0x81")),a(Mx("0x5f"),"accept"),a(Mx("0x5f"),Mx("0x81")),n._suggestionFactory[Mx("0x8a")](Mx("0x6f"),Mx("0x28"),Mx("0x81"),(t=>{const e=t[Mx("0x1c")]((t=>t[Mx("0x7a")]())),n=e[0][Mx("0x5a")](Mx("0x9e")),{minRow:s,maxRow:i}=r._getCoordsForCells(e);o.removeRows(n,{at:s,rows:i-s+1})})),n[Mx("0x33")][Mx("0x8a")](Mx("0x6f"),Mx("0x88"),Mx("0x81"),(t=>{const e=t[Mx("0x1c")]((t=>t[Mx("0x7a")]())),n=e[0][Mx("0x5a")](Mx("0x9e")),{minColumn:s,maxColumn:i}=r[Mx("0x70")](e);o[Mx("0x19")](n,{at:s,columns:i-s+1})}));const c=(t,e)=>{if(!e[Mx("0x8b")]||!e[Mx("0x8b")][Mx("0x24")]("tablePaste"))return;const o=e.attributes[Mx("0x84")],r=n[Mx("0x22")]().filter((t=>t[Mx("0x5c")]&&t[Mx("0x23")]&&t[Mx("0x23")][Mx("0x84")]==o));r.length&&e[Mx("0x32")]()[Mx("0xd")]!=r.length&&r[Mx("0x56")](((t,e)=>(t[Mx("0x65")]=e,e[Mx("0x7c")]=t,e)))};function l(t,{showActiveMarker:e=!0}={}){const{id:o}=n[Mx("0x80")](t[Mx("0x9d")]),r=["ck-suggestion-marker",Mx("0x91")],s=n[Mx("0x63")][Mx("0x3e")](t[Mx("0x9d")]);return s&&r[Mx("0x89")](Mx("0x90")),{classes:r,attributes:{"data-suggestion":o},priority:s&&e?3010:3e3}}n.on(Mx("0x9a"),c,{priority:"high"}),n.on("suggestionUnloaded",c,{priority:Mx("0x18")}),t.model.document[Mx("0x82")]((()=>{let e=!1;const o=Array.from(t.model[Mx("0x12")].differ[Mx("0x5")]());for(const{name:r,data:s}of o){const{group:o,type:i,id:x}=n[Mx("0x80")](r);if(Mx("0x59")!=o||"deletion"!=i||s[Mx("0x75")])continue;if(!n[Mx("0x50")](x))continue;const a=n[Mx("0xb")](x)[Mx("0x60")](),c=t[Mx("0x86")][Mx("0x0")](Mx("0x1d")).me;for(const t of n[Mx("0x22")]())if(t[Mx("0x5c")]&&t[Mx("0x25")]==c&&Mx("0xa0")==t.type&&Mx("0x2b")==t[Mx("0x8b")]&&t[Mx("0x60")]()[Mx("0x97")]((t=>a[Mx("0x2f")]((e=>e.containsRange(t,!0))))))for(const n of t[Mx("0x32")]())n.isInContent&&(n.discard(),e=!0)}return e})),t.model[Mx("0x12")][Mx("0x82")]((e=>{const o=t[Mx("0x26")].get(Mx("0x58"));if(!o||!o[Mx("0x4c")][Mx("0x57")](e[Mx("0x69")]))return!1;let r=!1;const s=t.plugins[Mx("0x0")](Mx("0x1d")).me,i=t[Mx("0x96")].document[Mx("0x5e")].getChanges(),x=Array.from(t[Mx("0x96")][Mx("0x12")][Mx("0x5e")][Mx("0x5")]())[Mx("0xe")]((({name:t,data:e})=>{const{group:o,subType:r,authorId:i}=n[Mx("0x80")](t);return Mx("0x59")==o&&Mx("0x5d")==r&&i==s.id&&!e[Mx("0x75")]}));for(const t of i){if(Mx("0xa1")!=t[Mx("0x13")]||Mx("0x9")!=t.name||1!=t[Mx("0xd")])continue;const n=e[Mx("0x67")](t.position,t[Mx("0x2a")][Mx("0x3c")](1));if(!x[Mx("0x29")]((({data:t})=>t[Mx("0x14")][Mx("0x68")](n))))for(const{name:t,data:o}of x)if(n.containsRange(o.newRange)){e[Mx("0x2d")](t,{range:n}),r=!0;break}}return r})),t[Mx("0x96")][Mx("0x12")].registerPostFixer((e=>{let o=!1;const r=t[Mx("0x86")][Mx("0x0")](Mx("0x1d")).me,s=n.getSuggestions().filter((t=>t[Mx("0x5c")]&&t[Mx("0x25")]==r)),i=new Set,x=new Set;for(const t of s)if(Mx("0x5d")==t[Mx("0x8b")])for(const e of t[Mx("0x98")]()){const n=e.getRange()[Mx("0x7a")]();if(n)if(n.is(Mx("0x16"),"tableCellSuggestion")&&Dx(n)){t[Mx("0xa4")](e[Mx("0x10")]),i[Mx("0x43")](n),o=!0;const r=n[Mx("0x36")],s=n.previousSibling,a=r&&r.is("element",Mx("0x9")),c=s&&s.is(Mx("0x16"),"tableCellSuggestion");a&&!i.has(r)&&x[Mx("0x43")](r),c&&!i[Mx("0x57")](s)&&x[Mx("0x43")](s)}else n.is(Mx("0x16"),"paragraph")&&n[Mx("0x83")]&&(t[Mx("0xa4")](e[Mx("0x10")]),o=!0)}else if(Mx("0x2b")==t[Mx("0x8b")]){if(!t[Mx("0x23")]||!t[Mx("0x23")][Mx("0x84")])continue;const e=t[Mx("0x23")].markerAttributes;if(e&&Object.keys(e)[Mx("0xd")])continue;const n=t[Mx("0x23")][Mx("0x84")];let r=!0,i=!0;for(const e of s)if(e[Mx("0x8b")]&&e.subType[Mx("0x24")](Mx("0x5d"))){if(!e[Mx("0x23")][Mx("0x84")]){i=!1;break}if(e.id!=t.id&&e[Mx("0x23")].tablePasteChainId==n){r=!1;break}}i&&r&&(t.removeMarkers(),o=!0)}for(const t of i)e.remove(t);for(const t of x)e[Mx("0x47")](t);return o})),t[Mx("0x4d")][Mx("0x8d")](Mx("0x6")).markerToHighlight({model:Mx("0x38"),view:l,converterPriority:Mx("0x18")}),t[Mx("0x4d")].for(Mx("0x1f")).markerToHighlight({model:Mx("0x38"),view:(t,e)=>{if(e[Mx("0x6a")][Mx("0x7f")])return l(t,{showActiveMarker:!1})},converterPriority:"high"});const u=t[Mx("0x4")][Mx("0x93")];this[Mx("0x15")](u[Mx("0x12")],Mx("0x62"),((t,e)=>{const n=[];for(const t of u.createRangeIn(e[Mx("0x3b")])[Mx("0x94")]())t.is(Mx("0x16"),"suggestion-td")&&n[Mx("0x89")](t);u[Mx("0x6d")]((t=>{for(const e of n)t.move(t.createRangeIn(e),t[Mx("0x4b")](e)),t[Mx("0x6c")](e)}))}))}}function Dx(t){if(t[Mx("0x83")])return!0;const e=t.getChild(0);return e.is(Mx("0x16"),Mx("0x21"))&&e[Mx("0x83")]}function Fx(t,e={},n){for(const{isAnchor:o,cellHeight:r,cellWidth:s}of n[Mx("0x2e")](t,{includeAllSlots:!0,...e}))if(!o||1!=r||1!=s)return!1;return!0}const Px=["editor","change","registerCustomCallback","subType","setAttribute","*Format:* resize table","TableColumnResizeEditing","discard","bind","accept","handleResizeTableWidthCommand","commandParams","model","get","locale","selection","_suggestionFactory","data","resizeColumnWidths","plugins","getSuggestionCallback","tableWidth","table","resizeTableWidth","document","getContainedElement","resizeTable","author","formatBlock","_descriptionFactory","TrackChangesEditing","handleSuggestionDescription","afterInit","getAttribute","columnWidths"];var Bx,jx;Bx=Px,jx=208,function(t){for(;--t;)Bx.push(Bx.shift())}(++jx);const Ux=function(t,e){return Px[t-=0]};class Gx extends t.Plugin{[Ux("0x22")](){if(!this[Ux("0x2")][Ux("0x15")].has(Ux("0x8")))return;const t=this[Ux("0x2")].plugins[Ux("0xf")](Ux("0x20"));t.enableCommand(Ux("0x19"),this[Ux("0xc")][Ux("0xa")](this)),t.enableCommand(Ux("0x14"),this[Ux("0xc")][Ux("0xa")](this)),t[Ux("0x12")][Ux("0x4")](Ux("0x1e"),Ux("0x1c"),"accept",t._suggestionFactory.getSuggestionCallback(Ux("0x1e"),null,Ux("0x9"))),t[Ux("0x12")][Ux("0x4")]("formatBlock","resizeTable",Ux("0x9"),t[Ux("0x12")][Ux("0x16")](Ux("0x1e"),null,Ux("0xb"))),t[Ux("0x1f")].registerDescriptionCallback(this[Ux("0x21")][Ux("0xa")](this))}[Ux("0xc")](t,e){const n=this[Ux("0x2")][Ux("0x15")].get("TrackChangesEditing"),o=e[Ux("0x18")]||this[Ux("0x2")][Ux("0xe")][Ux("0x1a")][Ux("0x11")].getSelectedElement();this[Ux("0x2")].model[Ux("0x3")]((t=>{let r=o[Ux("0x0")](Ux("0x17"))||null,s=o[Ux("0x0")]("columnWidths")||null;const i=e[Ux("0x17")]||r,x=e[Ux("0x1")]||s,a=this[Ux("0x2")][Ux("0x15")][Ux("0xf")]("Users").me;for(const t of n.getSuggestions()){const e=t[Ux("0x1b")]();if(Ux("0x1c")===t[Ux("0x5")]&&e===o){t[Ux("0x1d")]!==a&&t[Ux("0x9")](),r=t[Ux("0x13")][Ux("0xd")][0][Ux("0x17")],s=t[Ux("0x13")][Ux("0xd")][0][Ux("0x1")];break}}t[Ux("0x6")](Ux("0x17"),i,o),t.setAttribute(Ux("0x1"),x,o),n.markBlockFormat(o,{commandName:Ux("0x19"),commandParams:[{tableWidth:r,columnWidths:s}],formatGroupId:Ux("0x1c")},[],Ux("0x1c"))}))}[Ux("0x21")](t){const{data:e}=t;if(e&&Ux("0x1c")===e.formatGroupId){const t=Ux("0x7");return{type:"format",content:Yo(this[Ux("0x2")][Ux("0x10")],t)}}}}const Hx=["updateMarker","has","get","Title","nodeBefore","element","start","ELEMENT_TITLE","title-content","schema","locale","end","isTouching","forward","removeMarker","_descriptionFactory","document","plugins","registerPostFixer","TrackChangesEditing","suggestion","newRange","isCollapsed","model","afterInit","from"];var Vx,zx;Vx=Hx,zx=101,function(t){for(;--t;)Vx.push(Vx.shift())}(++zx);const Wx=function(t,e){return Hx[t-=0]};class Kx extends t.Plugin{[Wx("0x1")](){const t=this.editor;if(!t[Wx("0x14")][Wx("0x4")](Wx("0x6")))return;const e=t[Wx("0x14")][Wx("0x5")](Wx("0x16"));e[Wx("0x12")].registerElementLabel(Wx("0xb"),(()=>Yo(t[Wx("0xd")],Wx("0xa")))),t[Wx("0x0")][Wx("0x13")][Wx("0x15")]((n=>{let o=!1;const r=Array[Wx("0x2")](t[Wx("0x0")][Wx("0x13")].differ.getChangedMarkers());for(const{name:s,data:i}of r){const{group:r}=e._splitMarkerName(s);if(Wx("0x17")!==r||!i[Wx("0x18")])continue;const x=i[Wx("0x18")],a=x.end[Wx("0x7")];if(!a||!a.is(Wx("0x8"),Wx("0xb")))continue;if(!x.start[Wx("0xf")](x[Wx("0xe")]))continue;const c=t[Wx("0x0")][Wx("0xc")].getNearestSelectionRange(x[Wx("0xe")],Wx("0x10"));if(c&&c[Wx("0x19")]){const t=n.createRange(x[Wx("0x9")],c[Wx("0x9")]);t.isEqual(x)||(n[Wx("0x3")](s,{range:t}),o=!0)}o||(n[Wx("0x11")](s),o=!0)}return o}))}}const Xx=["plugins","editor","redo","has","get","UndoEditing","TrackChangesEditing","afterInit"];var qx,$x;qx=Xx,$x=243,function(t){for(;--t;)qx.push(qx.shift())}(++$x);const Qx=function(t,e){return Xx[t-=0]};class Jx extends t.Plugin{[Qx("0x4")](){const t=this[Qx("0x6")],e=t[Qx("0x5")][Qx("0x1")](Qx("0x3"));t[Qx("0x5")][Qx("0x0")](Qx("0x2"))&&(e.enableCommand("undo"),e.enableCommand(Qx("0x7")))}}const Zx=["TableCaptionEditing","get","toggleTableCaption","afterInit","TrackChangesEditing","plugins","enableCommand","editor","requires","has"];var Yx,ta;Yx=Zx,ta=353,function(t){for(;--t;)Yx.push(Yx.shift())}(++ta);const ea=function(t,e){return Zx[t-=0]};class na extends t.Plugin{static get[ea("0x5")](){return[hx]}[ea("0x0")](){const t=this[ea("0x4")];t.plugins[ea("0x6")](ea("0x7"))&&t[ea("0x2")][ea("0x8")](ea("0x1"))[ea("0x3")](ea("0x9"))}}const oa=["model","TrackChangesEditing","toUpperCase","getSelectedBlocks","get","listReversed","bind","expandListBlocksToCompleteList","format","filter","plugins","change","reversed","document","_LIST_","hasAttribute","replaceAll","list.properties","isListItemBlock","_getSuggestionBlocks","startIndex","type","listStart","DocumentListPropertiesUtils","editor","handleDescriptions","handleListStyleCommand","push","_getTranslationKeyForListStyle","config","DocumentListPropertiesEditing","listType","from","isFirstBlockOfListItem","has","*Format:* set order to regular","enableCommand","getAttribute","commandName","commandParams","DocumentListUtils","numbered","handleListReversedCommand","length","afterInit","*Format:* set start index to %0","*Format:* set order to reversed","*Change to:* %0","markMultiRangeBlockFormat","listStyle"];var ra,sa;ra=oa,sa=311,function(t){for(;--t;)ra.push(ra.shift())}(++sa);const ia=function(t,e){return oa[t-=0]};class xa extends t.Plugin{[ia("0x21")](){if(!this[ia("0xd")][ia("0x31")][ia("0x17")](ia("0x13")))return;const t=this[ia("0xd")][ia("0x12")].get(ia("0x6")),e=this[ia("0xd")].plugins[ia("0x2b")](ia("0x28"));t.styles&&e.enableCommand(ia("0x26"),this[ia("0xf")][ia("0x2d")](this)),t.reversed&&e[ia("0x19")](ia("0x2c"),this.handleListReversedCommand.bind(this)),t[ia("0x9")]&&e.enableCommand("listStart",this.handleListStartCommand[ia("0x2d")](this)),e._descriptionFactory.registerDescriptionCallback(this[ia("0xe")][ia("0x2d")](this))}[ia("0xf")](t,e){const n=this[ia("0xd")][ia("0x31")][ia("0x2b")](ia("0x28")),o=this[ia("0x8")]((t=>t[ia("0x4")]("listType")));null!==o&&this[ia("0xd")].model[ia("0x0")]((()=>{n[ia("0x25")](o,{commandName:ia("0x26"),commandParams:[{type:e[ia("0xa")]}],formatGroupId:ia("0x26")})}))}[ia("0x1f")](t,e){const n=this[ia("0xd")][ia("0x31")][ia("0x2b")](ia("0x28")),o=this[ia("0xd")].plugins[ia("0x2b")]("DocumentListUtils"),r=this[ia("0x8")]((t=>o[ia("0x7")](t)&&ia("0x1e")===t[ia("0x1a")](ia("0x14"))));null!==r&&this[ia("0xd")][ia("0x27")][ia("0x0")]((()=>{n[ia("0x25")](r,{commandName:"listReversed",commandParams:[{reversed:e[ia("0x1")]}],formatGroupId:"listReversed"})}))}handleListStartCommand(t,e){const n=this[ia("0xd")][ia("0x31")].get(ia("0x28")),o=this.editor[ia("0x31")][ia("0x2b")](ia("0x1d")),r=this[ia("0x8")]((t=>o[ia("0x7")](t)&&ia("0x1e")===t.getAttribute("listType")));null!==r&&this[ia("0xd")][ia("0x27")][ia("0x0")]((()=>{n[ia("0x25")](r,{commandName:ia("0xb"),commandParams:[{startIndex:e[ia("0x9")]}],formatGroupId:"listStart"})}))}[ia("0xe")](t){const e=this.editor.locale,{data:n}=t;if(!n)return;let o,r;switch(n[ia("0x1b")]){case ia("0x26"):o=ia("0x24"),r={type:"format",content:Yo(e,o,Yo(e,this[ia("0x11")](n[ia("0x1c")][0][ia("0xa")])))};break;case ia("0x2c"):o=n[ia("0x1c")][0][ia("0x1")]?ia("0x23"):ia("0x18"),r={type:ia("0x2f"),content:Yo(e,o)};break;case ia("0xb"):o=ia("0x22"),r={type:ia("0x2f"),content:Yo(e,o,n[ia("0x1c")][0][ia("0x9")])}}return r}[ia("0x8")](t){const e=this[ia("0xd")][ia("0x31")][ia("0x2b")]("DocumentListUtils");let n=Array[ia("0x15")](this[ia("0xd")][ia("0x27")][ia("0x2")].selection[ia("0x2a")]())[ia("0x30")](t);if(!n[ia("0x20")])return null;n=e[ia("0x2e")](n);const o=[];for(const t of n)e[ia("0x16")](t)&&o[ia("0x10")](t);return o}[ia("0x11")](t){return"ELEMENT_"+this[ia("0xd")][ia("0x31")][ia("0x2b")](ia("0xc")).getListTypeFromListStyleType(t)[ia("0x29")]()+ia("0x3")+t.toUpperCase()[ia("0x5")]("-","_")}}const aa=["accept","_removeSuggestion","getMultiRangeId","formatBlock:accept","_isForcedDefaultExecutionBlock","isTouching","upcast","deletion:","_addSuggestionMarker","_updateSuggestionData","multi","getCommentThread","howMany","define","getLastMatchingPosition","rejected","getUser","_commentsRepository","isSelectable","isAfter","_registerDefaultCallbacks","isInsideObject","marker-count","execute","forward","batch","name","_descriptionFactory","hasCommentThread","getMarkers","forceDefaultExecution","deletion:join","nodeAfter","mapper","createdAt","change:data","removeClass","every","discardSelectedSuggestions","change","track-changes-suggestion-not-found","deletion","suggestionLoaded","formatGroupId","getItems","isLimit","start","markerToData","unbind","conversion","getCustomProperty","_breakSuggestionMarker","addMarker:suggestion","fromRange","getChangedMarkers","reconvertMarker","locale","toViewElement","markerReady","high","markerNameToElements","discardAllSuggestions","splitPosition","createPositionAfter","containsPosition","_splitMarkerName","formatInline:discard","createSelection","enableCommand","moveTargetPosition","chain","markInsertion","_getExternalAuthor","from","_customCallbacks","before","setTo","resolve","position","isMultiRange","_rangeIsInLocalUserInsertion","_saved","differ","isUndo","isRemovable","_suggestionFactory","createRange","commentThread","isIntersectingWithRange","createRangeIn","newRange","acceptSelectedSuggestions","set","isOwn","editing","dataReady","removed","markerName","stopListening","removeMarkers","activeMarkers","acceptAllSuggestions","targetPosition","track-changes-command-not-found","_editor","_enabledCommands","ck-suggestion-marker-","model","map","config","createPositionBefore","backward","change:_saved","insertion","_findSuggestions","hasSuggestion","then","authoredAt","pluginName","skipNestingCheck","formatBlock:chain","insertion:accept","documentSelection","markMultiRangeInsertion","_trackFormatChanges","root","getRange","getIntersection","formatBlock","@external","deletion:discard","isAtEnd","insertion:chain","delete","markMultiRangeDeletion","data","notReady","next","elementToElement","isCollapsed","_joinSuggestions","track-changes-suggestion-data-mismatch","has","_createSuggestion","type","createElement","ck-suggestion-marker-formatBlock","external:","widget","creator","schema","insertContent","hasComments","filter","sort","isEqual","setSelection","trackChangesCommand","track-changes-adapter-missing-getsuggestion","consume","trackChanges.trackFormatChanges","isAtStart","stop","nodeBefore","applyOperation","markBlockFormat","discardSuggestion","low","acceptSuggestion","multipleBlocks","length","after","suggestionChanged","trackChanges","isLocal","ck-suggestion-marker","error-saving-suggestion-data-suggestion-discarded","_getAuthorFromId","PendingActions","addComment","isInContent","isBefore","formatBlock:","addSuggestionData","isExternal","getFirstRange","splice","data-suggestion","commands","subType","value","normal","collaboration.channelId","range","addMarkerName","includes","fire","isObject","consumable","remove","track-changes-user-not-found","buildSuggestion","markInlineFormat","editingDowncast","addClass","createPositionAt","group","author","containsRange","getChanges","getWalker","setAttribute","update:suggestion","showSuggestionHighlights","open","insertion:discard","writer","_refreshSuggestionsChain","textProxy","containsItem","markDeletion","_addThreadToSuggestion","item","document","get","_handleNewSuggestionMarker","containsRangeInObject","registerPostFixer","detach","suggestionUnloaded","isNextTo","_getSuggestionData","rootName","return","formatInline","listenTo","Users","size","addHighlight","updateMarker","formatInline:join","markers","highest","getRanges","PENDING_ACTION_SUGGESTION","_defaultCallbacks","substr","markerToHighlight","getSuggestionCallback","getSuggestions","getDifference","discard","for","commandName","values","split","formatBlock:discard","CommentsRepository","rethrowUnexpectedError","suggestion","_setSuggestionData","enqueueChange","parent","editor","removeMarker","clear","$marker","fromCharCode","_setSuggestionRange","options","updateSuggestion","toJSON","suggestion:","_model","fetchCommentThread","dataToMarker","formatInline:accept","getNearestSelectionRange","_suggestions","_cutOutSuggestionMarker","ck-suggestion-marker--active","adapter","add","suggestion-type","addRange","some","head","join","insertion:","ready","_joinWithAdjacentSuggestions","getShiftedBy","_suggestionState","getAllAdjacentSuggestions","elementStart","push","containerElement","addMarker","oldRange","end","catch","previous","formatInline:","_adapter","isBlock","formatBlock:join","_checkSuggestionCorrectness","accepted","plugins","getSuggestion","init","$graveyard","attributes","getAttribute","insert","addSuggestion","dataDowncast"];var ca,la;ca=aa,la=445,function(t){for(;--t;)ca.push(ca.shift())}(++la);const ua=function(t,e){return aa[t-=0]};class da extends t.Plugin{static get requires(){return[ua("0x81"),s.Users,t.PendingActions,cr,Cr,Rr,wr,Br,zr,Qr,es,xa,xs,gs,bs,ks,Ss,Os,js,zs,$s,ti,si,li,pi,Ci,Ri,Ni,Pi,Vi,$i,tx,ix,ux,hx,Cx,Rx,na,Ox,Gx,Kx,Jx]}static get[ua("0x133")](){return"TrackChangesEditing"}constructor(t){function e(t){return t[ua("0x129")]((t=>String[ua("0x8b")](t)))[ua("0x9f")]("")}super(t),this[ua("0x119")](ua("0x121"),[]),this.on("change:activeMarkers",((e,n,o,r)=>{this._model[ua("0xe4")]((()=>{for(const e of[...r,...o])this._model[ua("0x71")][ua("0xe")](e)&&t[ua("0x11b")][ua("0xf4")](e)}))})),this[ua("0xd8")]=new rr(this[ua("0x87")][ua("0x128")].schema,this[ua("0x87")][ua("0xf5")]),this[ua("0xaf")]=null,this[ua("0x112")]=new ga(this[ua("0x87")]),this[ua("0x96")]=new Map,this[ua("0xce")]=t[ua("0xb4")][ua("0x60")](ua("0x81")),this[ua("0x126")]=new Set,this[ua("0x91")]=this[ua("0x87")][ua("0x128")],this._suggestionState=new WeakMap,this[ua("0xc1")]=!1,t.config[ua("0xca")](ua("0x20"),!0),this[ua("0x139")]=t[ua("0x12a")][ua("0x60")](ua("0x20")),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,52,50,52,50,54])}[ua("0xb6")](){const t=this[ua("0x87")];t[ua("0xee")][ua("0x7c")](ua("0x4b")).markerToHighlight({model:"suggestion",view:t=>{const{id:e,type:n}=this[ua("0xfe")](t[ua("0x11e")]),o=["ck-suggestion-marker",ua("0x127")+n];let r=3e3;return this[ua("0x121")][ua("0x43")](t[ua("0x11e")])&&(o.push(ua("0x98")),r=3010),ua("0xe6")==n&&(r+=5),{classes:o,attributes:{"data-suggestion":e},priority:r}}}),t[ua("0xee")][ua("0x7c")](ua("0xbc"))[ua("0x9a")]((e=>{e.on(ua("0xf1"),((e,n,o)=>{if(!o[ua("0x8d")][ua("0x55")])return;const r=n[ua("0x5e")];if(!r)return;const s=o[ua("0xde")].toViewElement(r);t.model[ua("0x16")].isObject(r)&&s&&!s[ua("0xef")](ua("0x14"))&&s.is(ua("0xa8"))&&(0,x.toWidget)(s,o[ua("0x58")])}),{priority:ua("0xf8")})})),t[ua("0xee")][ua("0x7c")](ua("0xbc"))[ua("0x77")]({model:ua("0x83"),view:(t,e)=>{if(!e[ua("0x8d")][ua("0x55")])return null;const{type:n}=this[ua("0xfe")](t[ua("0x11e")]);return{classes:["ck-suggestion-marker",ua("0x127")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,r)=>{if(!o[ua("0x5e")])return;if(o[ua("0x5e")].is("selection"))return void r[ua("0x46")].consume(o[ua("0x5e")],n[ua("0xd7")]);const s=r[ua("0xde")][ua("0xf6")](o[ua("0x5e")]);if(!o[ua("0x5e")].is("element")||!t[ua("0x128")][ua("0x16")][ua("0xb0")](o.item)||s.getCustomProperty("addHighlight"))return;const{id:i}=this._splitMarkerName(o[ua("0x11e")]);r[ua("0x58")].addClass([ua("0x2f"),"ck-suggestion-marker-formatBlock"],s),r[ua("0x58")][ua("0x53")](ua("0x3b"),i,s),r[ua("0xde")].bindElementToMarker(s,o[ua("0x11e")]),e&&(this[ua("0x121")].includes(o[ua("0x11e")])?r[ua("0x58")][ua("0x4c")](ua("0x98"),s):r[ua("0x58")].removeClass(ua("0x98"),s));for(const e of t[ua("0x128")][ua("0x116")](o[ua("0x5e")])[ua("0xe9")]())r[ua("0x46")][ua("0x1f")](e,n.name);r[ua("0x46")][ua("0x1f")](o.item,n.name)};t.conversion.for(ua("0xbc")).add((t=>{t.on("addMarker:suggestion:formatBlock",((t,e,o)=>{o[ua("0x8d")][ua("0x55")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:ua("0x72")})})),t[ua("0xee")].for(ua("0xbc"))[ua("0xec")]({model:ua("0x83"),view:(t,e)=>e[ua("0x8d")][ua("0x55")]?null:{group:ua("0x83"),name:t[ua("0x76")](ua("0x83")[ua("0x2a")]+1)}}),t[ua("0xee")][ua("0x7c")](ua("0xc3"))[ua("0xa")]({view:{name:ua("0x83"),attribute:{id:/^\w/,suggestionType:/^\w/}},model:(t,{writer:e})=>{let n=ua("0x90")+t[ua("0xb9")](ua("0x9b"))+":"+t[ua("0xb9")]("id");return t[ua("0xb9")]("marker-count")&&(n+=":"+t.getAttribute(ua("0xd3"))),e[ua("0x11")](ua("0x8a"),{"data-name":n})}}),t[ua("0xee")][ua("0x7c")](ua("0xc3"))[ua("0x93")]({view:ua("0x83")}),t[ua("0xee")][ua("0x7c")](ua("0x4b"))[ua("0x9a")]((t=>{t.on("addMarker:suggestion:formatBlock",n(),{priority:ua("0xf8")})})),t[ua("0xee")][ua("0x7c")]("editingDowncast").add((t=>{t.on("removeMarker:suggestion:formatBlock",((t,e,n)=>{const o=n[ua("0xde")][ua("0xf9")](e.markerName);if(o)for(const t of o)t[ua("0xef")](ua("0x6e"))||(n[ua("0x58")][ua("0xe1")](["ck-suggestion-marker",ua("0x12"),ua("0x98")],t),n[ua("0x58")].removeAttribute(ua("0x3b"),t),n.mapper.unbindElementFromMarkerName(t,e[ua("0x11e")]))}),{priority:ua("0xf8")})})),t[ua("0x128")].document[ua("0x63")]((e=>{let n=!1;const o=Array[ua("0x106")](t[ua("0x128")][ua("0x5f")].differ[ua("0xf3")]()),r=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[ua("0xfe")](x);if(ua("0x83")!==o)continue;const u=this[ua("0x96")].get(l);if(null!=a[ua("0x117")])if(ua("0x6a")==c&&(n=n||ha(a[ua("0x117")],x,e,t[ua("0x128")][ua("0x16")])),a[ua("0x117")][ua("0xb")]||ua("0xb7")==a.newRange[ua("0x13a")][ua("0x68")]||ua("0x0")==c&&!ba(a[ua("0x117")])||ua("0xe6")==c&&(fa(i=a.newRange)||(s=i).start.parent==s[ua("0xab")][ua("0x23")]&&s[ua("0xeb")][ua("0x3")]))e[ua("0x88")](x),n=!0;else{if(!u||!u[ua("0x34")])continue;r[ua("0x9a")](u)}}var s,i;return r[ua("0x6d")]>0&&(n=!!this[ua("0xa2")](r)||n),n})),t.model[ua("0x5f")][ua("0x63")]((e=>{let n=!1;for(const o of t[ua("0x128")][ua("0x5f")].differ[ua("0x51")]()){if("insert"!=o.type)continue;const r=o.position[ua("0xa3")](o[ua("0x2a")]);if(r[ua("0x3")])for(const s of this[ua("0x96")].values()){if(s[ua("0x10c")]||!s[ua("0x34")])continue;if("formatBlock"!=s[ua("0x10")])continue;const i=s.getFirstRange();if(i[ua("0xeb")][ua("0x86")]!=i[ua("0xab")][ua("0x86")]&&i[ua("0xab")][ua("0x1b")](o[ua("0x10b")])){const o=t[ua("0x128")][ua("0x113")](i[ua("0xeb")],r);e.updateMarker(s.getFirstMarker(),{range:o}),n=!0}}}return n})),t[ua("0x128")].markers.on(ua("0x54"),((t,e,n)=>{if(null==n){const{id:t}=this[ua("0xfe")](e.name),n=this[ua("0x96")][ua("0x60")](t);n&&n[ua("0x42")](e.name)}})),t[ua("0x128")][ua("0x5f")].on(ua("0xe0"),(()=>{const e=Array[ua("0x106")](t[ua("0x128")][ua("0x5f")][ua("0x10f")][ua("0xf3")]())[ua("0x19")]((t=>ua("0x83")===this[ua("0xfe")](t[ua("0xd7")])[ua("0x4e")]));if(0===e[ua("0x2a")])return;e[ua("0x1a")](((t,e)=>{const n=t[ua("0x7")][ua("0xaa")],o=e[ua("0x7")][ua("0xaa")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[ua("0xeb")][ua("0x35")](o[ua("0xeb")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:r}of e){const{id:e}=this[ua("0xfe")](t);if(null===r[ua("0xaa")]){const e=this._handleNewSuggestionMarker(t);o[ua("0x9a")](e)}else{const t=this._suggestions[ua("0x60")](e);null!==r[ua("0x117")]||t[ua("0x34")]?(n.add(t[ua("0x9e")]),o.add(t)):this[ua("0xbe")](t)}}o[ua("0x6d")]>0&&this[ua("0x59")](o);for(const t of n)this[ua("0x44")](ua("0x2c"),t)})),t[ua("0x128")].on(ua("0x24"),((e,n)=>{const o=n[0];if(!this[ua("0x96")][ua("0x6d")])return;if(!o.isDocumentOperation)return;if(o[ua("0xd6")][ua("0x110")]||!o[ua("0xd6")][ua("0x2e")])return;let r,s;switch(o[ua("0x10")]){case ua("0xba"):r=t.model[ua("0x4d")](o[ua("0x10b")]),s=r[ua("0xa3")](o[ua("0xc9")]);break;case ua("0x7f"):r=t.model[ua("0x4d")](o[ua("0xfb")]),s=t[ua("0x128")][ua("0x4d")](o[ua("0x102")]);break;case"move":r=t.model[ua("0x4d")](o[ua("0x123")]),s=r[ua("0xa3")](o[ua("0xc9")]);break;default:return}const i=t[ua("0x128")][ua("0x113")](r,s);t[ua("0x128")][ua("0xe4")]((()=>{for(const{suggestion:t,meta:e}of this[ua("0x12f")](i)){if(t[ua("0x10c")])continue;if(ua("0x6a")==t[ua("0x10")])continue;const n=t[ua("0x7")]&&t[ua("0x7")][ua("0x29")];("formatBlock"!=t[ua("0x10")]||ua("0x7f")==o[ua("0x10")]&&!n)&&(e.containsRangeInObject||"insertion"==t[ua("0x10")]&&e.isOwn||t[ua("0x39")]()[ua("0x50")](i)&&this[ua("0xf0")](t,r,s))}}))}),{priority:"lowest"}),t[ua("0x128")].on("deleteContent",((e,n)=>{const o=n[0],r=n[1];if(r&&r[ua("0xdb")])return;if(this[ua("0xc1")])return;if(!this.trackChangesCommand[ua("0x3e")])return;if(o[ua("0xb")])return;const s=t[ua("0x128")][ua("0x16")],{start:i,end:x}=o[ua("0x39")](),a=i[ua("0xdd")]&&s[ua("0xea")](i[ua("0xdd")])?null:s.getNearestSelectionRange(i,ua("0xd5")),c=x.nodeBefore&&s[ua("0xea")](x.nodeBefore)?null:s[ua("0x95")](x,ua("0x12c")),l=t[ua("0x128")].createRange(a?a.start:i,c?c[ua("0xab")]:x);t[ua("0x128")].change((e=>{this.markDeletion(l);const n=t[ua("0x128")][ua("0x16")][ua("0x95")](l[ua("0xeb")]);o.is(ua("0x137"))?e[ua("0x1c")](n):o[ua("0x109")](n)})),e[ua("0x22")]()}),{priority:e.priorities[ua("0x3f")]+10}),t.model.on(ua("0x17"),((e,n)=>{const o=n[n[ua("0x2a")]-1];o&&o[ua("0xdb")]||this[ua("0xc1")]||this[ua("0x1d")][ua("0x3e")]&&(t[ua("0x128")][ua("0xe4")]((()=>{let o=t[ua("0x128")][ua("0x17")](n[0],n[1],n[2],n[3],{forceDefaultExecution:!0});if(!o)return;e[ua("0x69")]=o.clone();const r=o[ua("0xab")][ua("0x23")],s=t.model.schema;r&&s[ua("0xb0")](r)&&!s[ua("0x45")](r)&&(o=t[ua("0x128")].createRange(o[ua("0xeb")],t.model[ua("0x4d")](r,ua("0xab")))),this[ua("0x104")](o)})),e[ua("0x22")]())}),{priority:"high"}),this.trackChangesCommand=new d(t,this[ua("0x126")]),this[ua("0x87")][ua("0x3c")][ua("0x9a")]("trackChanges",this[ua("0x1d")]),this.enableCommand(ua("0x2d"));const o=new p(t,this[ua("0x96")]);t.commands.add("acceptSuggestion",o),this.enableCommand(ua("0x28"));const r=new C(t,this[ua("0x96")]);t[ua("0x3c")][ua("0x9a")]("discardSuggestion",r),this[ua("0x101")](ua("0x26")),t[ua("0x3c")][ua("0x9a")](ua("0x122"),new D(t,o,this[ua("0x96")])),this[ua("0x101")](ua("0x122")),t[ua("0x3c")][ua("0x9a")](ua("0xfa"),new D(t,r,this._suggestions)),this[ua("0x101")](ua("0xfa")),t[ua("0x3c")][ua("0x9a")]("acceptSelectedSuggestions",new U(t,o,this[ua("0x96")])),this[ua("0x101")](ua("0x118")),t[ua("0x3c")][ua("0x9a")](ua("0xe3"),new U(t,r,this[ua("0x96")])),this[ua("0x101")](ua("0xe3"));const s=t[ua("0xb4")][ua("0x60")]("CommentsRepository");this[ua("0x6b")](s,ua("0x33"),((t,{threadId:e})=>{const n=this._suggestions[ua("0x60")](e);n&&n[ua("0x114")]&&1===n.commentThread[ua("0x2a")]&&this[ua("0xc6")](e,{hasComments:!0})}),{priority:ua("0x27")}),this[ua("0x6b")](s,"removeComment",((t,{threadId:e})=>{const n=this._suggestions[ua("0x60")](e);n&&n.commentThread&&!n[ua("0x114")][ua("0x2a")]&&this[ua("0xc6")](e,{hasComments:!1})}),{priority:ua("0x27")})}set[ua("0x99")](t){if(this._adapter)throw new e.CKEditorError("track-changes-adapter-already-set",this);this[ua("0xaf")]=t}get adapter(){return this._adapter}[ua("0x79")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this._suggestions[ua("0x7e")]())t&&!e.isInContent||n[ua("0xa7")](e);return e?n.map((t=>t[ua("0x8f")]())):n}getSuggestion(t){const n=this[ua("0x96")][ua("0x60")](t);if(!n)throw new e.CKEditorError(ua("0xe5"),this);return n}[ua("0x130")](t){return this[ua("0x96")][ua("0xe")](t)}[ua("0x37")](t){const{authorId:e,id:n,attributes:o}=t,[r,s]=t[ua("0x10")].split(":"),i=this[ua("0x96")].get(n)||this[ua("0xf")](r,s,n,e,o);if(this._addThreadToSuggestion(i),this[ua("0xb2")](i,r,s||null,e),i.createdAt=t[ua("0xdf")],o&&o[ua("0x1")]){const{authorName:t,createdAt:e}=o[ua("0x1")],n=this[ua("0x105")](t);i[ua("0x132")]=e,i[ua("0x4f")]=n,i[ua("0x38")]=!0}else i[ua("0x132")]=t[ua("0xdf")];switch(t[ua("0x7")]&&(i.data=t[ua("0x7")]),t[ua("0xb8")]&&(i.attributes=t.attributes),this[ua("0xaf")]&&this[ua("0xaf")][ua("0xbb")]||(i[ua("0x10e")]=!0),this[ua("0xa4")][ua("0x60")](i)){case ua("0x8"):this._suggestionState.set(i,ua("0x11c"));break;case ua("0xf7"):i.isInContent?(this._suggestionState[ua("0x119")](i,ua("0xa1")),this[ua("0x44")](ua("0xe7"),i)):this._suggestionState.set(i,ua("0x11d"))}return i}[ua("0x28")](t){this[ua("0xdb")]((()=>{this[ua("0x87")].model[ua("0xe4")]((()=>{for(const e of t.getAllAdjacentSuggestions())e.accept()}))}))}[ua("0x26")](t){this[ua("0xdb")]((()=>{this.editor[ua("0x128")][ua("0xe4")]((()=>{for(const e of t[ua("0xa5")]())e[ua("0x7b")]()}))}))}[ua("0x101")](t,n){const o=this[ua("0x87")][ua("0x3c")][ua("0x60")](t);if(!o)throw new e.CKEditorError(ua("0x124"),this,{commandName:t});this[ua("0x126")][ua("0x9a")](o),n&&o.on(ua("0xd4"),((t,e)=>{this.trackChangesCommand[ua("0x3e")]&&(this[ua("0xc1")]||e[ua("0x2a")]>0&&e[e[ua("0x2a")]-1]&&e[e[ua("0x2a")]-1][ua("0xdb")]||(n(((...t)=>o.execute(...t,{forceDefaultExecution:!0})),...e),t[ua("0x22")]()))}),{priority:ua("0xf8")})}[ua("0xdb")](t){let n,o;const r=this[ua("0xc1")];this[ua("0xc1")]=!0;try{n=t()}catch(t){o=t}return r||(this[ua("0xc1")]=!1),o&&e.CKEditorError[ua("0x82")](o,this),n}markInsertion(t,n=null,o={}){if(t[ua("0xb")])return null;const r=this[ua("0x87")][ua("0xb4")].get(ua("0x6c")).me;for(const{suggestion:e,meta:o}of this._findSuggestions(t,ua("0x12e")))if(o[ua("0x11a")]){if(!o[ua("0x66")])return e;if(n==e[ua("0x3d")]){const n=e[ua("0x39")]();return n.start[ua("0x1b")](t[ua("0xab")])?this._setSuggestionRange(e,this[ua("0x91")][ua("0x113")](t.start,n[ua("0xab")])):this[ua("0x8c")](e,this[ua("0x91")][ua("0x113")](n[ua("0xeb")],t[ua("0xab")])),e}}const s=(0,e.uid)(),i=r.id,x=n?"insertion:"+n:ua("0x12e"),a=this[ua("0x84")]({id:s,type:x,createdAt:new Date,authorId:i,attributes:o});return this[ua("0xc5")](x,s,i,t),a}[ua("0x138")](t,n=ua("0xc7"),o={}){const r=this[ua("0x87")][ua("0xb4")].get("Users").me,s=this[ua("0x112")][ua("0x78")](ua("0x12e"),n,ua("0x9f"));for(const e of this[ua("0x79")]())if(e[ua("0x4f")].id==r.id&&ua("0x12e")==e[ua("0x10")]&&e[ua("0x3d")]==n&&(s(e.getRanges(),t)||s(t,e[ua("0x73")]()))){for(const n of t)e.addRange(n);return e}for(const e of t)for(const{suggestion:n,meta:o}of this[ua("0x12f")](e,"insertion")){if(!o[ua("0x11a")])continue;let e=!0;for(const o of n[ua("0x73")]())for(const n of t)if(!o[ua("0x50")](n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),x=r.id,a=ua("0xa0")+n,c=this[ua("0x84")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[ua("0xc5")](a,i,x,e,Zo[ua("0xbf")]());return c}[ua("0x4a")](t,n,o=null,r={}){if(o=o||pa(n),t[ua("0xb")])return;if(!1===this._trackFormatChanges){const e=this[ua("0x112")][ua("0x78")]("formatInline",o,"accept");return void this[ua("0xdb")]((()=>e([t],n,r)))}const s=this[ua("0x87")].plugins[ua("0x60")](ua("0x6c")).me,i=[];for(const{suggestion:e,meta:n}of this[ua("0x12f")](t,ua("0x12e")))n[ua("0x11a")]&&!n[ua("0xd2")]&&i[ua("0xa7")](...e[ua("0x73")]());const x=function(t,e){const n=[];for(const o of e){const e=t[ua("0x13c")](o);e&&n[ua("0xa7")](e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n.length;){const o=n[e][ua("0x7a")](t);n[ua("0x3a")](e,1,...o),e+=o[ua("0x2a")]}}return n}(t,i);x.length&&this[ua("0x91")].change((()=>{for(const t of x){const e=this[ua("0x112")][ua("0x78")](ua("0x6a"),o,"accept");this.forceDefaultExecution((()=>e([t],n,r)))}}));for(const t of a){let i=null,x=t[ua("0xeb")],a=t.end;for(const{suggestion:e,meta:n}of this[ua("0x12f")](t,"formatInline")){if(!n[ua("0x11a")])continue;if(e[ua("0x3d")]!=o)continue;const r=e[ua("0x39")]();if(r[ua("0x50")](t,!0))return;x=x[ua("0x35")](r[ua("0xeb")])?x:r[ua("0xeb")],a=a.isAfter(r[ua("0xab")])?a:r[ua("0xab")],i?r[ua("0xeb")].isBefore(i[ua("0x39")]().start)?(i[ua("0x120")](),i=e):e[ua("0x120")]():i=e}const c=this[ua("0x91")][ua("0x113")](x,a);if(i)this[ua("0x8c")](i,c);else{const t=(0,e.uid)(),i=s.id;this[ua("0x84")]({id:t,type:ua("0xae")+o,data:n,createdAt:new Date,authorId:i,attributes:r}),this[ua("0xc5")]("formatInline:"+o,t,i,c)}}}[ua("0x25")](t,n,o=[],r=null,s={}){n[ua("0xe8")]||(n[ua("0xe8")]=n.commandName),n[ua("0x29")]=t.is(ua("0x41")),r=r||pa(n);const i=o.map((t=>Ea(t,this._model))),x=t.is(ua("0x41"))?t:Ea(t,this[ua("0x91")]);if(!1===this[ua("0x139")]){const t=this[ua("0x112")][ua("0x78")](ua("0x0"),r,ua("0xbd"));return void this[ua("0xdb")]((()=>t([x],n,s)))}i[ua("0xa7")](x);let a=!0;for(const t of i)if(!this._rangeIsInLocalUserInsertion(t)){a=!1;break}if(a){const t=this[ua("0x112")][ua("0x78")](ua("0x0"),r,"accept");return void this[ua("0xdb")]((()=>t([x],n,s)))}let c=null,l=x[ua("0xeb")],u=x[ua("0xab")];for(const{suggestion:t,meta:e}of this[ua("0x12f")](x,"formatBlock")){if(!e[ua("0x11a")]||e[ua("0x66")]||e[ua("0x62")]||e[ua("0xd2")])continue;if(t[ua("0x7")].formatGroupId!=n[ua("0xe8")])continue;const o=t[ua("0x39")]();if(t[ua("0x3d")]==r){if(o[ua("0x50")](x,!0))return;l=l.isBefore(o[ua("0xeb")])?l:o[ua("0xeb")],u=u[ua("0xd0")](o[ua("0xab")])?u:o[ua("0xab")],c?o[ua("0xeb")].isBefore(c.getFirstRange()[ua("0xeb")])?(c[ua("0x120")](),c=t):t[ua("0x120")]():c=t}else{const e=x.getIntersection(o);this[ua("0x97")](t,e)}}const d=this[ua("0x87")][ua("0xb4")].get(ua("0x6c")).me,g=(0,e.uid)(),m=d.id;c?this._setSuggestionRange(c,this[ua("0x91")].createRange(l,u)):(this._setSuggestionData({id:g,type:"formatBlock:"+r,data:n,createdAt:new Date,authorId:m,attributes:s}),this._addSuggestionMarker(ua("0x36")+r,g,m,this._model[ua("0x113")](l,u)))}markMultiRangeBlockFormat(t,n,o=[],r=null,s={}){n[ua("0xe8")]||(n.formatGroupId=n[ua("0x7d")]);const i=t[0];n[ua("0x29")]=i.is(ua("0x41")),r=r||pa(n);const x=o.map((t=>Ea(t,this[ua("0x91")]))),a=i.is(ua("0x41"))?t:t[ua("0x129")]((t=>Ea(t,this[ua("0x91")])));if(!1===this[ua("0x139")]){const t=this[ua("0x112")][ua("0x78")](ua("0x0"),r,ua("0xbd"));return void this[ua("0xdb")]((()=>t(a,n,s)))}x[ua("0xa7")](...a);let c=!0;for(const t of x)if(!this[ua("0x10d")](t)){c=!1;break}if(c){const t=this._suggestionFactory[ua("0x78")](ua("0x0"),r,ua("0xbd"));return void this.forceDefaultExecution((()=>t(a,n,s)))}const l=this.editor[ua("0xb4")][ua("0x60")]("Users").me;for(const t of this[ua("0x79")]()){if(t[ua("0x4f")].id!=l.id)continue;if(ua("0x0")!=t[ua("0x10")]||t[ua("0x7")].formatGroupId!=n[ua("0xe8")])continue;const e=t[ua("0x3d")]==r;for(let n=0;n<a.length;n++){const o=a[n];for(const r of t[ua("0xda")]()){const s=r[ua("0x13b")]();if(o[ua("0x1b")](s)){e?(a.splice(n,1),n--):t[ua("0x88")](r[ua("0xd7")]);break}}}}if(0==a[ua("0x2a")])return;const u=this[ua("0x112")].getSuggestionCallback("formatBlock",r,ua("0x9f"));for(const t of this[ua("0x79")]())if(t.author.id==l.id&&ua("0x0")==t[ua("0x10")]&&t[ua("0x7")].formatGroupId==n[ua("0xe8")]&&t[ua("0x3d")]==r&&(u(t[ua("0x73")](),a)||u(a,t[ua("0x73")]()))){for(const e of a)t.addRange(e);return t}const d=(0,e.uid)(),g=l.id,m=ua("0x36")+r,f=this[ua("0x84")]({id:d,type:m,data:n,createdAt:new Date,authorId:g,attributes:s});for(const t of a)this._addSuggestionMarker(m,d,g,t,Zo.getMultiRangeId());return f}[ua("0x5c")](t,n=null,o={}){if(t[ua("0xb")])return null;const r=this.editor[ua("0xb4")][ua("0x60")]("Users").me,s=new i.LiveRange(t[ua("0xeb")],t[ua("0xab")]);for(const{suggestion:t,meta:e}of this[ua("0x12f")](s,"insertion"))if(e[ua("0x11a")]&&!e[ua("0x66")])if(t[ua("0x10c")]){const e=t[ua("0x73")]()[ua("0x19")]((t=>"$graveyard"!=t[ua("0x13a")][ua("0x68")]));if(e[ua("0xe2")]((t=>s[ua("0x50")](t,!0)))&&t[ua("0x7b")](),e[ua("0x9d")]((t=>t.containsRange(s,!0)))){const t=this._suggestionFactory[ua("0x78")](ua("0xe6"),n,ua("0xbd"));return this[ua("0xdb")]((()=>t([s],null,o))),null}}else{const e=s.getIntersection(t.getFirstRange());t._onDiscard([e],null,o)}if(s.detach(),s.isCollapsed||ua("0xb7")==s[ua("0x13a")][ua("0x68")])return null;let x=null,a=s[ua("0xeb")],c=s[ua("0xab")];for(const{suggestion:t,meta:e}of this._findSuggestions(s,ua("0xe6")))if(e[ua("0x11a")])if(t[ua("0x10c")]){let e=!0;for(const n of t.getRanges()){if(n[ua("0x50")](s,!0))return t;s[ua("0x50")](n)||(e=!1)}e&&t[ua("0x7b")]()}else{const e=t[ua("0x39")]();if(e[ua("0x50")](s,!0))return t;a=a[ua("0x35")](e.start)?a:e[ua("0xeb")],c=c[ua("0xd0")](e[ua("0xab")])?c:e[ua("0xab")],x?e[ua("0xeb")][ua("0x35")](x.getFirstRange()[ua("0xeb")])?(x[ua("0x120")](),x=t):t[ua("0x120")]():x=t}if(x)return this[ua("0x8c")](x,this[ua("0x91")][ua("0x113")](a,c)),x;{const t=(0,e.uid)(),s=this[ua("0x91")].createRange(a,c),i=r.id,x=n?ua("0xc4")+n:"deletion",l=this._setSuggestionData({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this._addSuggestionMarker(x,t,i,s),l}}[ua("0x6")](t,n="multi",o={}){const r=this.editor[ua("0xb4")][ua("0x60")](ua("0x6c")).me,s=t[ua("0x129")]((t=>new i.LiveRange(t[ua("0xeb")],t.end))),x=new Set;for(const t of s)for(const{suggestion:e,meta:n}of this._findSuggestions(t,ua("0x12e")))n.isOwn&&!n[ua("0x66")]&&x[ua("0x9a")](e);for(const e of x)if(e[ua("0x10c")]){const r=e[ua("0x73")]();if((!e[ua("0xb8")]||!e[ua("0xb8")][ua("0x134")])&&r[ua("0xe2")]((t=>s.some((e=>e[ua("0x50")](t,!0)))))&&e.discard(),s.every((t=>r[ua("0x9d")]((e=>e[ua("0x50")](t,!0)))))){const e=this[ua("0x112")][ua("0x78")](ua("0xe6"),n,ua("0xbd"));return this[ua("0xdb")]((()=>e(t,null,o))),null}}else{const t=e.getFirstRange();if(s[ua("0x9d")]((e=>e[ua("0x50")](t,!0)))&&e[ua("0x7b")](),s.every((e=>t[ua("0x50")](e,!0)))){const t=this[ua("0x112")].getSuggestionCallback("deletion",n,ua("0xbd"));return this[ua("0xdb")]((()=>t(s,null,o))),null}}const a=this[ua("0x112")][ua("0x78")](ua("0xe6"),n,"join");let c=null;for(const t of this.getSuggestions())if(t.author.id==r.id&&t[ua("0x34")]&&"deletion"==t.type&&t.subType==n&&(a(t[ua("0x73")](),s)||a(s,t[ua("0x73")]())))if(c){if(t[ua("0x114")]&&t[ua("0x114")][ua("0x2a")])continue;for(const e of t[ua("0x73")]())c[ua("0x115")](e)||c[ua("0x9c")](e);t[ua("0x120")]()}else{c=t;for(const e of s)t.isIntersectingWithRange(e)||t[ua("0x9c")](e)}if(c)return c;x[ua("0x89")]();for(const t of s)for(const{suggestion:e,meta:n}of this[ua("0x12f")](t,"deletion"))n[ua("0x11a")]&&x[ua("0x9a")](e);for(const t of x){const e=t[ua("0x73")]();if((!o||!o.skipNestingCheck)&&s[ua("0xe2")]((t=>e.some((e=>e[ua("0x50")](t,!0))))))return t;(!t[ua("0xb8")]||!t[ua("0xb8")][ua("0x134")])&&e.every((t=>s.some((e=>e[ua("0x50")](t,!0)))))&&t[ua("0x7b")]()}const l=(0,e.uid)(),u=r.id,d=ua("0xc4")+n,g=this[ua("0x84")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of s)t[ua("0x64")](),t[ua("0xb")]||"$graveyard"==t.root[ua("0x68")]||this[ua("0xc5")](d,l,u,t,Zo.getMultiRangeId());return g}_setSuggestionRange(t,e){const n=t.getFirstMarker();this[ua("0x91")][ua("0xe4")]((t=>{t[ua("0x6f")](n,{range:e})}))}[ua("0x5d")](t){const e=t.id,n=this[ua("0x87")][ua("0x12a")].get("collaboration.channelId");this[ua("0xce")][ua("0xd9")](e)||this._commentsRepository.addCommentThread({channelId:n,threadId:e});const o=this[ua("0xce")][ua("0xc8")](e);o[ua("0xed")](ua("0x111")),o[ua("0x111")]=!1,t[ua("0x114")]=o}[ua("0xb2")](t,n,o,r){if(t[ua("0x10")]!=n||t.subType!=o||t[ua("0x15")].id!=r)throw this[ua("0x87")].enableReadOnlyMode(ua("0xd")),new e.CKEditorError("track-changes-suggestion-data-mismatch",this)}[ua("0x97")](t,n){const o=t[ua("0x39")]();if(n[ua("0x1b")](o))t[ua("0x120")]();else if(o[ua("0x50")](n)){const r=this._model[ua("0x4d")](n[ua("0xeb")][ua("0x23")],ua("0xab"));this[ua("0x8c")](t,this[ua("0x91")][ua("0x113")](o[ua("0xeb")],r));const s=(0,e.uid)(),i=t.creator.id,x=t[ua("0x10")]+":"+t.subType;this[ua("0x84")]({id:s,type:x,createdAt:new Date,authorId:i,data:t[ua("0x7")],attributes:t[ua("0xb8")]});const a=this._model[ua("0x4d")](n.end[ua("0x86")],ua("0x2b")),c=this[ua("0x91")][ua("0x113")](a,o[ua("0xab")]);this[ua("0xc5")](x,s,i,c)}else if(o[ua("0xfd")](n[ua("0xeb")])){const e=this[ua("0x91")][ua("0x4d")](n.start[ua("0x23")],"end");this[ua("0x8c")](t,this[ua("0x91")][ua("0x113")](o[ua("0xeb")],e))}else{const e=this._model[ua("0x4d")](n.end.parent,ua("0x2b"));this[ua("0x8c")](t,this[ua("0x91")][ua("0x113")](e,o[ua("0xab")]))}}[ua("0x10d")](t){for(const{suggestion:e,meta:n}of this[ua("0x12f")](t,"insertion")){if(!n[ua("0x11a")])continue;const o=e[ua("0x73")]();for(const e of o)if(!t[ua("0x7a")](e).length)return!0}return!1}_getAuthorFromId(t){const n=this[ua("0x87")].plugins[ua("0x60")](ua("0x6c"))[ua("0xcd")](t);if(!n)throw new e.CKEditorError(ua("0x48"),this);return n}[ua("0x105")](t){const e=this[ua("0x87")].plugins.get(ua("0x6c")),n=(0,s.hashObject)(ua("0x13")+t);return e[ua("0xcd")](n)||e.addUser({id:n,name:t})}[ua("0xf")](t,e,n,o,r){const s=this[ua("0x31")](o),i=this._suggestionFactory[ua("0x49")](t,e,n,s,r,(t=>this._updateSuggestionData(n,{attributes:t})));return this.listenTo(i,ua("0xbd"),(()=>{this._updateSuggestionData(n,{state:ua("0xb3")})}),{priority:ua("0xf8")}),this[ua("0x6b")](i,ua("0x7b"),(()=>{this[ua("0xc6")](n,{state:ua("0xcc")})}),{priority:"high"}),this[ua("0x96")][ua("0x119")](n,i),this._suggestionState.set(i,ua("0x8")),i}[ua("0xfe")](t){const e=t.split(":");return{group:e[0],type:e[1],subType:e.length>=5?e[2]:null,id:e[ua("0x2a")]<5?e[2]:e[3],authorId:e[ua("0x2a")]<5?e[3]:e[4],markerCount:6==e.length?e[5]:null}}[ua("0xf0")](t,n,o){const r=t[ua("0x39")](),s=r[ua("0xeb")],i=r[ua("0xab")];this[ua("0x8c")](t,this[ua("0x91")][ua("0x113")](s,n));const x=(0,e.uid)(),a=t.creator.id,c=t[ua("0x10")]+(t[ua("0x3d")]?":"+t.subType:"");this[ua("0x84")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t.attributes,data:t[ua("0x7")]}),"formatBlock"==t[ua("0x10")]&&(o=this[ua("0x91")][ua("0x12b")](o.parent)),this[ua("0xc5")](c,x,a,this[ua("0x91")].createRange(o,i))}[ua("0x12f")](t,e=null){const n=[],o=this[ua("0x91")][ua("0x16")],r=this[ua("0x87")][ua("0xb4")].get(ua("0x6c")).me;for(const s of this[ua("0x79")]())if(s[ua("0x34")]&&(!e||s.type==e))for(const e of s[ua("0x73")]()){const i=t[ua("0xeb")][ua("0x1b")](e[ua("0xab")])||t.end[ua("0x1b")](e.start);if(i||t[ua("0x13c")](e)){const x=t.containsRange(e)&&ma(o,e[ua("0xeb")],t),a=e[ua("0x50")](t)&&ma(o,t[ua("0xeb")],e);n[ua("0xa7")]({suggestion:s,meta:{isOwn:r==s.author,isNextTo:i,isInsideObject:x,containsRangeInObject:a}});break}}return n}[ua("0xc5")](t,e,n,o,r=null){this[ua("0x91")][ua("0xe4")]((s=>{let i=ua("0x90")+t+":"+e+":"+n;r&&(i=i+":"+r),s[ua("0xa9")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[ua("0xbe")](t){const e=t[ua("0xad")],n=t.next;t[ua("0xad")]=null,null!=e&&(e[ua("0x9")]=null),t[ua("0x9")]=null,null!=n&&(n[ua("0xad")]=null),ua("0xa1")==this[ua("0xa4")][ua("0x60")](t)&&(this[ua("0xa4")][ua("0x119")](t,"removed"),this.fire(ua("0x65"),t,e,n))}_setSuggestionData(t){const n=t.id,o=this.addSuggestionData(t);if(this[ua("0xaf")]&&this[ua("0xaf")].addSuggestion){const r=this[ua("0x87")][ua("0xb4")][ua("0x60")](ua("0x32")),s=o[ua("0x18")],i=o.subType?o.type+":"+o[ua("0x3d")]:o[ua("0x10")],x=this[ua("0x87")][ua("0xf5")],a=r[ua("0x9a")](Yo(x,ua("0x74"))),c={id:n,type:i,hasComments:s,data:t[ua("0x7")]||null,originalSuggestionId:t.originalSuggestionId||null,attributes:o[ua("0xb8")]};this._adapter[ua("0xbb")](c)[ua("0x131")]((t=>{o[ua("0x10e")]=!0,r[ua("0x47")](a),t&&t[ua("0xdf")]&&(this[ua("0x96")][ua("0x60")](n)[ua("0xdf")]=t.createdAt)}))[ua("0xac")]((t=>{throw(0,e.logWarning)(ua("0x30")),this[ua("0x87")].model[ua("0x85")]({isUndoable:!1},(()=>{o[ua("0x7b")]()})),o[ua("0x11f")](),this[ua("0x96")][ua("0x5")](o.id),this._suggestionState[ua("0x5")](o),t}))}return o}[ua("0xc6")](t,e){const n=this[ua("0x87")][ua("0xb4")][ua("0x60")]("PendingActions"),o=this[ua("0x96")][ua("0x60")](t);if(this[ua("0xaf")]&&this[ua("0xaf")][ua("0x8e")])if(o._saved){const o=n[ua("0x9a")](Yo(this[ua("0x87")][ua("0xf5")],"PENDING_ACTION_SUGGESTION"));this[ua("0xaf")][ua("0x8e")](t,e)[ua("0x131")]((()=>{n.remove(o)}))}else o.on(ua("0x12d"),(()=>{this[ua("0xc6")](t,e)}))}[ua("0x67")](t){if(!this._adapter||!this[ua("0xaf")].getSuggestion)throw new e.CKEditorError(ua("0x1e"),this);return this[ua("0xaf")][ua("0xb5")](t)}[ua("0x61")](t){const{id:e,type:n,subType:o,authorId:r}=this[ua("0xfe")](t),s=this[ua("0x96")][ua("0x60")](e)||this._createSuggestion(n,o,e,r);switch(this._checkSuggestionCorrectness(s,n,o,r),this[ua("0xa4")][ua("0x60")](s)){case"notReady":this._getSuggestionData(e)[ua("0x131")]((t=>{let n=Promise[ua("0x10a")]();t[ua("0x18")]&&(n=this._commentsRepository[ua("0x92")]({channelId:this.editor.config[ua("0x60")](ua("0x40")),threadId:e})),n[ua("0x131")]((()=>{this[ua("0x37")](t)._saved=!0}))})),this[ua("0xa4")][ua("0x119")](s,ua("0xf7"));break;case ua("0x11d"):this[ua("0xc6")](e,{state:ua("0x56")});case ua("0x11c"):this[ua("0xa4")].set(s,ua("0xa1")),this.fire(ua("0xe7"),s);break;case ua("0xa1"):this[ua("0x44")](ua("0x2c"),s)}return s.addMarkerName(t),s}[ua("0x59")](t){const e=Array[ua("0x106")](t)[ua("0x19")]((t=>!t[ua("0x10c")])),n=this[ua("0x79")]({skipNotAttached:!0}).filter((t=>!t[ua("0x10c")])),o=n.filter((e=>!t[ua("0xe")](e))),r=new Map(n.map((t=>[t,this[ua("0x112")][ua("0x78")](t[ua("0x10")],t[ua("0x3d")],ua("0x103"))]))),s=new Map(n[ua("0x129")]((t=>[t,t.getFirstRange()]))),i=new Set,x=new Set;for(let t=0;t<e.length;t++)a(e[t],e,t+1);for(let t=0;t<e[ua("0x2a")];t++)a(e[t],o,0);for(let t=0;t<e[ua("0x2a")];t++){const n=e[t];!x[ua("0xe")](n)&&n[ua("0xad")]&&(n[ua("0xad")][ua("0x9")]===n&&(n.previous[ua("0x9")]=null),n[ua("0xad")]=null),!i[ua("0xe")](n)&&n.next&&(n[ua("0x9")][ua("0xad")]===n&&(n[ua("0x9")][ua("0xad")]=null),n[ua("0x9")]=null)}function a(t,e,n){for(let o=n;o<e.length;o++){const n=c(t,e[o]);n&&(n[0][ua("0x9")]=n[1],n[1].previous=n[0],i.add(n[0]),x.add(n[1]))}}function c(t,e){if(t.author.id!==e[ua("0x4f")].id)return null;const n=r[ua("0x60")](t)(t,e,s.get(t),s.get(e));return n&&r[ua("0x60")](e)(t,e,s[ua("0x60")](t),s[ua("0x60")](e))?n[1].commentThread&&n[1][ua("0x114")].length?null:n:null}}[ua("0xa2")](t){const e=Array.from(t),n=this[ua("0x79")]({skipNotAttached:!0}),o=n[ua("0x19")]((e=>!t[ua("0xe")](e))),r=new Map(e.map((t=>[t,this[ua("0x112")][ua("0x78")](t.type,t.subType,ua("0x9f"))]))),s=new Map(n[ua("0x129")]((t=>[t,t[ua("0x73")]()])));for(let t=0;t<e[ua("0x2a")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[ua("0x2a")];t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n[ua("0x2a")];i++){const o=n[i];if(o[ua("0x10")]!==e[ua("0x10")]||o[ua("0x4f")].id!==e[ua("0x4f")].id||o.subType!==e[ua("0x3d")])continue;const x=r.get(e),a=s[ua("0x60")](e),c=s[ua("0x60")](o),l=e[ua("0x114")]&&e[ua("0x114")].length,u=o[ua("0x114")]&&o[ua("0x114")][ua("0x2a")];if(!l&&x(c,a))return t[ua("0xc")](o,e),s[ua("0x5")](e),!0;if(!u&&x(a,c))return t[ua("0xc")](e,o),s[ua("0x5")](o),!0}return!1}}[ua("0xc")](t,e){if(t[ua("0x10c")])for(const n of e[ua("0x73")]())t[ua("0x9c")](n);else{const n=e[ua("0x39")]()[ua("0xab")];this[ua("0x8c")](t,this[ua("0x91")].createRange(t[ua("0x39")]().start,n))}e[ua("0x120")]()}}(0,e.mix)(da,e.EmitterMixin);class ga{constructor(t){this[ua("0x125")]=t,this._model=t[ua("0x128")],this[ua("0x107")]=new Map,this[ua("0x75")]=new Map,this[ua("0xd1")]()}[ua("0x49")](t,e,n,o,r,s){return new Zo(this[ua("0x91")],{type:t,subType:e,id:n,author:o,creator:o,attributes:r,onAttributesChange:s,onAccept:(...n)=>this[ua("0x78")](t,e,"accept")(...n),onDiscard:(...n)=>this[ua("0x78")](t,e,ua("0x7b"))(...n)})}registerCustomCallback(t,e,n,o){const r=t+":"+e+":"+n;this._customCallbacks[ua("0x119")](r,o)}getSuggestionCallback(t,e,n){const o=t+":"+e+":"+n;return this[ua("0x107")][ua("0x60")](o)||this[ua("0x75")][ua("0x60")](t+":"+n)}[ua("0xd1")](){const t=()=>{},e=t=>{t[ua("0x1a")](((t,e)=>t[ua("0xeb")][ua("0x35")](e.start)?1:-1)),this._model[ua("0xe4")]((e=>{for(const n of t){let t;t=n[ua("0xab")][ua("0x3")]&&n[ua("0xab")][ua("0x86")]==n.start[ua("0xdd")]?e[ua("0x100")](n[ua("0xeb")].nodeAfter,"on"):e[ua("0x100")](n),this[ua("0x91")].deleteContent(t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[ua("0x91")][ua("0xe4")]((n=>{const{commandName:o,commandParams:r=[]}=e,s=t[ua("0x129")]((t=>(fa(t)&&(t=this[ua("0x91")][ua("0x113")](t[ua("0xab")])),t)))[ua("0x19")]((t=>ua("0xb7")!==t[ua("0x13a")][ua("0x68")]));if(s[ua("0x2a")]<1)return;const x=Array[ua("0x106")](this._model[ua("0x5f")].selection.getRanges())[ua("0x129")]((t=>i.LiveRange[ua("0xf2")](t)));n[ua("0x1c")](s);for(const t of this[ua("0x125")][ua("0x3c")][ua("0x3c")]())t.refresh();r[ua("0xa7")]({forceDefaultExecution:!0}),this[ua("0x125")][ua("0xd4")](o,...r);const a=x[ua("0x19")]((t=>"$graveyard"!=t[ua("0x13a")][ua("0x68")]));a[ua("0x2a")]>0&&n.setSelection(a);for(const t of x)t[ua("0x64")]()}))},o=(t,e)=>1==t[ua("0x2a")]&&1==e[ua("0x2a")]&&t[0][ua("0xab")][ua("0x1b")](e[0][ua("0xeb")]),r=(t,e,n,o)=>_a(t,e,n,o,this[ua("0x91")])?[t,e]:_a(e,t,o,n,this._model)?[e,t]:null;this[ua("0x75")].set(ua("0x136"),t),this[ua("0x75")][ua("0x119")](ua("0x57"),e),this[ua("0x75")].set("insertion:join",o),this[ua("0x75")].set(ua("0x4"),r),this._defaultCallbacks[ua("0x119")]("deletion:accept",e),this[ua("0x75")][ua("0x119")](ua("0x2"),t),this._defaultCallbacks[ua("0x119")](ua("0xdc"),o),this._defaultCallbacks[ua("0x119")]("deletion:chain",r),this[ua("0x75")][ua("0x119")](ua("0x94"),n),this[ua("0x75")][ua("0x119")](ua("0xff"),t),this[ua("0x75")][ua("0x119")](ua("0x70"),o),this._defaultCallbacks[ua("0x119")]("formatInline:chain",t),this[ua("0x75")].set(ua("0xc0"),n),this._defaultCallbacks[ua("0x119")](ua("0x80"),t),this[ua("0x75")].set(ua("0xb1"),o),this._defaultCallbacks[ua("0x119")](ua("0x135"),t)}}function ma(t,e,n){for(const o of e.parent.getAncestors({includeSelf:!0,parentFirst:!0})){if(o.root==o)return!1;if(!n[ua("0x5b")](o))return!1;if(t[ua("0x45")](o)||t[ua("0xea")](o))return!0}}function fa(t){return t[ua("0xab")][ua("0x86")]==t.start[ua("0xdd")]&&t[ua("0xab")][ua("0x21")]}function ha(t,e,n,o){const r=t=>!t[ua("0x5e")].is(ua("0x5a"))&&!o[ua("0x45")](t[ua("0x5e")]),s=t[ua("0xeb")][ua("0xcb")](r),i=t.end[ua("0xcb")](r,{direction:ua("0x12c")});return!(t[ua("0xeb")][ua("0x1b")](s)&&t[ua("0xab")].isEqual(i)||(s[ua("0x35")](i)?n[ua("0x6f")](e,{range:n.createRange(s,i)}):n[ua("0x88")](e),0))}function pa(t){return(0,s.hashObject)(t)}function ba(t){const e=t.start[ua("0xdd")];return e&&e.is("element")}function Ea(t,e){const n=e[ua("0x16")][ua("0x45")](t)||e[ua("0x16")][ua("0xcf")](t);return e[ua("0x113")](e[ua("0x4d")](t,ua("0x108")),n?e[ua("0xfc")](t):e.createPositionAt(t,"end"))}function _a(t,e,n,o,r){if(n.end[ua("0x1b")](o[ua("0xeb")]))return!0;if(t[ua("0x10")]!=e[ua("0x10")])return!1;if(!n[ua("0xab")][ua("0xc2")](o[ua("0xeb")]))return!1;const s=r[ua("0x113")](n[ua("0xab")],o[ua("0xeb")])[ua("0x52")]();for(const t of s)if([ua("0xa6"),"elementEnd"][ua("0x43")](t[ua("0x10")])&&r[ua("0x16")][ua("0xea")](t.item))return!1;return!0}const Ta=["_removePendingAction","_acceptCommand","add","model","PendingActions","view","change:isDirty","listenTo","execute","remove","acceptSuggestion","commentThreadController","_pendingAction","locale","_discardCommand","unbind","_setPendingAction","bind","destroy","isDirty","stopListening","commands","get","discardSuggestion","plugins","_editor","PENDING_ACTION_SUGGESTION"];var Ca,ya;Ca=Ta,ya=438,function(t){for(;--t;)Ca.push(Ca.shift())}(++ya);const ka=function(t,e){return Ta[t-=0]};class Aa{constructor(t,e,n,o){this[ka("0x18")]=e,this[ka("0x1a")]=n,this[ka("0x5")]=o,this[ka("0x13")]=t,this._acceptCommand=t[ka("0xf")].get(ka("0x4")),this[ka("0x8")]=t[ka("0xf")][ka("0x10")](ka("0x11")),this.view[ka("0xb")]("isEnabled").to(this[ka("0x16")]),this[ka("0x6")]=null,n[ka("0xd")]&&this._setPendingAction(),this[ka("0x1")](n,ka("0x4"),(()=>this.acceptSuggestion())),this[ka("0x1")](n,"discardSuggestion",(()=>this[ka("0x11")]())),this.listenTo(n,ka("0x0"),(()=>{n[ka("0xd")]?this[ka("0xa")]():this._removePendingAction()}))}[ka("0x4")](){this[ka("0x16")][ka("0x2")](this.model.id)}[ka("0x11")](){this[ka("0x8")].execute(this[ka("0x18")].id)}[ka("0xc")](){this[ka("0x1a")][ka("0x9")]("isEnabled"),this[ka("0xe")](),this[ka("0x5")][ka("0xc")](),this[ka("0x6")]&&this[ka("0x15")]()}[ka("0xa")](){const t=Yo(this[ka("0x13")][ka("0x7")],ka("0x14"));this[ka("0x6")]=this[ka("0x13")][ka("0x12")][ka("0x10")](ka("0x19"))[ka("0x17")](t)}[ka("0x15")](){this[ka("0x13")].plugins[ka("0x10")](ka("0x19"))[ka("0x3")](this._pendingAction),this._pendingAction=null}}(0,e.mix)(Aa,e.ObservableMixin);const va=["hasDirtyComment","_createCommentThreadInputView","commentThreadInputView","isEnabled","updateComment","fire","commentsListView","locale","set","delegate","disabledSubmit","addComment","isDirty","authoredAt","_model","destroy","commentThread","assign","value","_config","_createCommentViews","isReadOnly","_localUser","descriptionParts","submit","isActive","editor","showInput","focus","editorConfig","removeComment","length","bind","commentInputView"];var Ra,Ia;Ra=va,Ia=377,function(t){for(;--t;)Ra.push(Ra.shift())}(++Ia);const Sa=function(t,e){return va[t-=0]};class La extends r.View{constructor(t,e,n,o){super(t),this[Sa("0x3")]=null,this[Sa("0x21")]=null,this[Sa("0x5")]("isActive",!1),this.set(Sa("0xa"),e[Sa("0xa")]),this.bind(Sa("0xa")).to(e),this[Sa("0x5")](Sa("0x14"),[]),this.set(Sa("0x9"),!1),this[Sa("0x5")](Sa("0x0"),!1),this._model=e,this[Sa("0x13")]=n,this[Sa("0x10")]=o,o.disableComments?this[Sa("0x5")](Sa("0x1c"),1):this[Sa("0x11")]()}focus(){this.element[Sa("0x19")]()}[Sa("0xc")](){this.commentsListView&&this[Sa("0x3")][Sa("0xc")](),this.commentThreadInputView&&this.commentThreadInputView[Sa("0xc")](),super[Sa("0xc")]()}[Sa("0x11")](){const{CommentsListView:t}=this[Sa("0x10")];this[Sa("0x3")]=new t(this.locale,this[Sa("0xb")][Sa("0xd")],Object[Sa("0xe")]({CommentView:this[Sa("0x10")].CommentView},this[Sa("0x10")])),this[Sa("0x3")].delegate("removeComment").to(this),this[Sa("0x3")][Sa("0x6")](Sa("0x1")).to(this),this[Sa("0x3")].bind(Sa("0x16")).to(this),this[Sa("0x5")]("length",this[Sa("0x3")][Sa("0x1c")]+1),this[Sa("0x1d")](Sa("0x1c")).to(this[Sa("0x3")],Sa("0x1c"),(t=>t+1)),this[Sa("0x21")]=this[Sa("0x20")](),this.on(Sa("0x1b"),(()=>this[Sa("0x19")]())),this[Sa("0x1d")]("isDirty").to(this.commentsListView,Sa("0x1f"),this[Sa("0x21")][Sa("0x1e")],Sa("0xf"),((t,e)=>t||!!e))}[Sa("0x20")](){const{CommentThreadInputView:t}=this._config,e=new t(this[Sa("0x4")],this[Sa("0x13")],this._config[Sa("0x1a")]),n=e[Sa("0x1e")];return e.bind(Sa("0x18")).to(this,Sa("0x16"),this._model[Sa("0xd")],Sa("0x12"),n,Sa("0xf"),((t,e,n)=>!!n||t&&!e)),n.on(Sa("0x15"),((t,e)=>{this[Sa("0x2")](Sa("0x8"),e),n[Sa("0x17")].setData("")})),n.on("cancel",(()=>this[Sa("0x19")]())),n[Sa("0x1d")](Sa("0x7")).to(this[Sa("0xb")][Sa("0xd")],"isReadOnly"),e}}const Ma=["map","attributes","acceptButton","div","ck-suggestion__actions","push","getTemplate","commentsListView","content","ck-annotation__actions","title",'"></span>',"isExternal","join","Accept suggestion",'<span class="ck-suggestion-type">',"EXTERNAL_IMPORT_WORD_SUGGESTION","ck-suggestion--disabled-comments","getExternalSuggestionNote","bindTemplate","value","description","_descriptionElement",'<span class="ck-suggestion-color" style="background-color: ',"EXTERNAL_SUGGESTION","locale","execute","ck-annotation__info","formatDateTime","@external","ck-annotation","EXTERNAL_AVATAR","fire","authoredAt","querySelector","ck-annotation__info-time","ck-suggestion--accept","ck-suggestion__main","element","innerHTML","ck-annotation__content-wrapper","ck-suggestion-wrapper","discardButton","_config","render","getUserViewNotificationText","isActive","ck-suggestion__user","innerText","EXTERNAL_IMPORT_WORD_AVATAR","importWord","ck-annotation__main","author","check",'" title="',"</p>",".ck-annotation__content-wrapper","commentThreadInputView","source","disableComments","ck-suggestion__info-name","descriptionParts","set","creator","span","type","name","isEnabled","extendTemplate","bind","ck-annotation__info-name","ck-suggestion-","ck-suggestion-wrapper--active","time","ck-comment__info-time","ck-annotation__user","_model","change:description","_createButton","userView"];var Na,wa;Na=Ma,wa=120,function(t){for(;--t;)Na.push(Na.shift())}(++wa);const Oa=function(t,e){return Ma[t-=0]};class Da extends La{constructor(e,n,o,r){super(e,n,o,r),this.set("type",""),this.bind("type").to(this,"descriptionParts",(t=>t&&t[0]?t[0].type:"")),this[Oa("0x1d")]("description").to(this,Oa("0x15"),this,Oa("0x6"),((t,e)=>{let n="";for(const e of t)n+="<p>"+Fa(e[Oa("0x30")],e.color)+Oa("0xf");return e?n:(0,s.trimHtml)(n,{limit:140})})),this[Oa("0x3e")]=null,this[Oa("0x2a")]=this._createButton(Yo(e,Oa("0x36")),t.icons[Oa("0xd")],Oa("0x4c"),"acceptSuggestion","sw"),this.discardButton=this[Oa("0x26")](Yo(e,"Discard suggestion"),t.icons.cancel,"ck-suggestion--discard","discardSuggestion","sw"),this[Oa("0x27")]=new s.UserView(e,this[Oa("0x24")][Oa("0xc")],this[Oa("0x5")]()),this.userView.extendTemplate({attributes:{class:[Oa("0x7"),Oa("0x23")]}}),this.setTemplate(this[Oa("0x2e")]())}[Oa("0x2e")](){const t=this[Oa("0x3b")],e=[{tag:Oa("0x2b"),attributes:{class:["ck-suggestion__info",Oa("0x43")]},children:[{tag:Oa("0x18"),children:[{text:this.userView[Oa("0x1a")]}],attributes:{class:[Oa("0x14"),Oa("0x1e")]}},{tag:Oa("0x21"),attributes:{datetime:t.to(Oa("0x49")),class:[Oa("0x22"),Oa("0x4b")]},children:[{text:t.to("authoredAt",(t=>this[Oa("0x3")][Oa("0x44")](t)))}]}]},{tag:Oa("0x2b"),attributes:{class:[Oa("0x2c"),Oa("0x31")]},children:[this[Oa("0x2a")],this[Oa("0x2")]]},{tag:"div",attributes:{class:[Oa("0x0")]}}];this[Oa("0x24")][Oa("0x34")]&&e[Oa("0x2d")]({tag:Oa("0x2b"),attributes:{class:["ck-comment__external"]},children:[{text:this[Oa("0x3a")]()}]});const n={tag:"div",attributes:{class:[Oa("0x1"),t.if(Oa("0x6"),Oa("0x20")),t.to(Oa("0x19"),(t=>Oa("0x1f")+t)),this._config[Oa("0x13")]&&Oa("0x39")],"data-suggestion-id":this._model.id,"data-thread-id":this[Oa("0x24")].commentThread.id,"data-author-id":this._model[Oa("0xc")].id,tabindex:-1},children:[{tag:"div",attributes:{class:["ck-suggestion",Oa("0x46")]},children:[this[Oa("0x27")],{tag:Oa("0x2b"),attributes:{class:[Oa("0x4d"),Oa("0xb")]},children:e}]}]};return this[Oa("0x2f")]&&this[Oa("0x11")]&&n.children[Oa("0x2d")](this[Oa("0x2f")],this.commentThreadInputView),n}[Oa("0x4")](){super[Oa("0x4")](),this[Oa("0x3e")]=this[Oa("0x4e")][Oa("0x4a")](Oa("0x10")),this[Oa("0x3e")][Oa("0x4f")]=this[Oa("0x3d")],this.on(Oa("0x25"),((t,e,n)=>{this[Oa("0x3e")][Oa("0x4f")]=n}))}[Oa("0x26")](t,e,n,o,s){const i=new r.ButtonView(this[Oa("0x41")]);return i[Oa("0x16")]({label:t,icon:e,tooltip:!0,tooltipPosition:s}),i[Oa("0x1c")]({attributes:{class:n}}),i.on(Oa("0x42"),(()=>{this[Oa("0x48")](o,this[Oa("0x24")].id)})),i[Oa("0x1d")](Oa("0x1b")).to(this),i}[Oa("0x3a")](){return Oa("0xa")===this[Oa("0x24")].attributes[Oa("0x45")][Oa("0x12")]?Yo(this[Oa("0x41")],Oa("0x38")):Yo(this[Oa("0x41")],Oa("0x40"))}[Oa("0x5")](){return this[Oa("0x24")][Oa("0x34")]?Oa("0xa")===this._model[Oa("0x29")]["@external"].source?Yo(this[Oa("0x41")],Oa("0x9"),this[Oa("0x24")][Oa("0x17")].name):Yo(this[Oa("0x41")],Oa("0x47"),this[Oa("0x24")][Oa("0x17")][Oa("0x1a")]):null}}function Fa(t,e){let n="";return n+=t.split("*")[Oa("0x28")](((t,e)=>e%2!=0?Oa("0x37")+Pa(t)+"</span>":Pa(t)))[Oa("0x35")](""),e&&(n+=Oa("0x3f")+e[Oa("0x3c")]+Oa("0xe")+e[Oa("0x32")]+Oa("0x33")),n}function Pa(t){const e=document.createElement(Oa("0x18"));return e[Oa("0x8")]=t,e[Oa("0x4f")]}const Ba=["size","acceptSelectedSuggestions","_createUIButton","add","unbind","isDirty","some","getRanges","clear","Accept all suggestions","values","length","isMultiRange","SuggestionThreadView","locale","_annotationViews","type","set","_handleControllerBuffer","actionView","comments.maxThreadTotalWeight","lowest","_suggestionToController","toViewElement","pluginName","config","separator","createAnnotationView","_descriptionFactory","init","has","mapper","getSuggestion","trackChanges.disableComments","acceptButton","push","Annotations","_disableComments","createAnnotation","acceptAllSuggestions","getAllAdjacentSuggestions","editing","model","keys","commentThread","componentFactory","editor","_updateController","_destroyController","isOn","trackChanges","suggestion-","suggestionUnloaded","reduce","source","trackChanges.SuggestionThreadView","createCommentThreadController","discardSelectedSuggestions","comments.maxCommentsWhenCollapsed","isInContent","change:activeAnnotations","hasSuggestion","focus","refreshSelectedViews","mainView","getFirstRange","getFirstMarker","_viewToController","comments.editorConfig","getByInnerView","TrackChangesUI","head","requires","Discard all selected suggestions","arrowView","isEnabled","toMany","CommentsUI","TrackChangesEditing","value","destroy","_handleSuggestionControllerDelayed","define","stopListening","commandName","commands","CommentView","view","discardButton","getRange","bind","Track changes","getContainedElement","descriptionParts","change:previous","execute","from","_initializeController","delete","activeMarkers","button","filter","getMarkerNames","buttonView","EditorAnnotations","remove","suggestionLoaded","Discard all suggestions","CommentsRepository","get","getDescriptions","plugins","listenTo","addSourceCollector"];var ja,Ua;ja=Ba,Ua=348,function(t){for(;--t;)ja.push(ja.shift())}(++Ua);const Ga=function(t,e){return Ba[t-=0]};class Ha extends t.Plugin{static get[Ga("0x42")](){return[da,s.Users,Ga("0x66"),Ga("0x1e"),Ga("0x62")]}static get[Ga("0x12")](){return Ga("0x40")}constructor(t){super(t),this[Ga("0x10")]=new Map,this[Ga("0x3d")]=new Map,this[Ga("0x9")]=new Map,this._handleControllerBuffer=new Map;const e=this.editor.config;e[Ga("0x4c")](Ga("0x31"),Da),e[Ga("0x4c")](Ga("0x1b"),!1),this[Ga("0x1f")]=e[Ga("0x67")](Ga("0x1b"))}[Ga("0x4b")](t,e){0===this[Ga("0xc")][Ga("0x6c")]&&setTimeout((()=>{for(const[t,e]of this._handleControllerBuffer){const n=this[Ga("0x10")][Ga("0x18")](t);n||e?n&&e&&this[Ga("0x2a")](t):this._initializeController(t)}this[Ga("0x28")][Ga("0x69")].get(Ga("0x62"))[Ga("0x39")](),this[Ga("0xc")][Ga("0x2")]()}),10),this[Ga("0xc")].set(t,e)}[Ga("0x17")](){const t=this[Ga("0x28")],e=t[Ga("0x69")][Ga("0x67")](da),n=t[Ga("0x69")][Ga("0x67")]("Annotations"),o=t[Ga("0x69")][Ga("0x67")]("EditorAnnotations"),r=t.plugins.get(Ga("0x66"));t.ui[Ga("0x27")][Ga("0x6f")]("trackChanges",(t=>this._createUIButton(t))),o[Ga("0x6b")]((()=>{const t=[];for(const[e,n]of Array[Ga("0x5a")](this[Ga("0x10")])){const o=e[Ga("0x22")](),r=[];for(const t of o){if(!t.isInContent)continue;if(t[Ga("0x6")]){r[Ga("0x1d")](...t[Ga("0x1")]());continue}const e=t[Ga("0x3b")]();if(r[Ga("0x5")]>0){const t=r[0].getJoined(e);if(t){r[0]=t;continue}}r[Ga("0x1d")](e)}t[Ga("0x1d")]([n.view,r])}return t})),this[Ga("0x6a")](e,Ga("0x64"),((t,e)=>{this.listenTo(e,"change:previous",((t,n,o,r)=>{e[Ga("0x35")]&&(null==o?(this[Ga("0x29")](r[Ga("0x41")]),this[Ga("0x4b")](e,!1)):(this[Ga("0x29")](o[Ga("0x41")]),this[Ga("0x4b")](e,!0)))})),null===e.previous?this._handleSuggestionControllerDelayed(e,!1):this._updateController(e[Ga("0x41")])})),this[Ga("0x6a")](e,Ga("0x2e"),((t,e,n)=>{this[Ga("0x4d")](e,Ga("0x58")),this[Ga("0xc")][Ga("0x5c")](e);const o=n?n.head:e,r=this[Ga("0x10")][Ga("0x67")](o);null!==n&&this[Ga("0x29")](o),null===n&&r&&this[Ga("0x2a")](e)})),this[Ga("0x6a")](e,"suggestionChanged",((t,e)=>{this._updateController(e)})),this[Ga("0x6a")](n,Ga("0x36"),((t,n,o)=>{const r=Array.from(o,(t=>t.innerView))[Ga("0x5f")]((t=>this[Ga("0x3d")][Ga("0x18")](t))),s=[];for(const t of r){const e=this._viewToController[Ga("0x67")](t)[Ga("0x24")][Ga("0x22")]();s[Ga("0x1d")](...e[Ga("0x2f")](((t,e)=>[...t,...e[Ga("0x60")]()]),[]))}e[Ga("0x5d")]=s})),this[Ga("0x6a")](r,"addComment",((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Ga("0x37")](n))return;const r=e[Ga("0x1a")](n);this[Ga("0x10")].get(r)[Ga("0x51")].focus()}),{priority:Ga("0xf")})}[Ga("0x6e")](t){const n=(0,r.createDropdown)(t,r.SplitButtonView),o=this[Ga("0x28")][Ga("0x4f")].get(Ga("0x2c")),s=Yo(t,Ga("0x55"));n[Ga("0x61")][Ga("0xb")]({tooltip:s,label:s,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-2022, 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[Ga("0x61")][Ga("0x54")]("isOn").to(o,"value"),n.buttonView.on("execute",(()=>{o[Ga("0x59")](),this[Ga("0x28")][Ga("0x23")][Ga("0x51")].focus()}));const i=new e.Collection,x=[{type:"switchbutton",model:{withText:!0,label:s,commandName:Ga("0x2c")}},{type:Ga("0x14")},{type:Ga("0x5e"),model:{withText:!0,label:Yo(t,Ga("0x3")),commandName:Ga("0x21")}},{type:Ga("0x5e"),model:{withText:!0,label:Yo(t,"Accept all selected suggestions"),commandName:Ga("0x6d")}},{type:"button",model:{withText:!0,label:Yo(t,Ga("0x65")),commandName:"discardAllSuggestions"}},{type:Ga("0x5e"),model:{withText:!0,label:Yo(t,Ga("0x43")),commandName:Ga("0x33")}}];for(const t of x){const e={type:t[Ga("0xa")]};if(t[Ga("0x24")]){const n=new r.Model(t[Ga("0x24")]),o=this[Ga("0x28")].commands[Ga("0x67")](n[Ga("0x4e")]);n.bind(Ga("0x2b"),Ga("0x45")).to(o,Ga("0x49"),Ga("0x45")),e[Ga("0x24")]=n}i[Ga("0x6f")](e)}(0,r.addListToDropdown)(n,i);const a=x.filter((t=>null!=t[Ga("0x24")])).map((t=>this[Ga("0x28")][Ga("0x4f")][Ga("0x67")](t[Ga("0x24")][Ga("0x4e")])));return n[Ga("0x61")][Ga("0xd")][Ga("0x70")](Ga("0x45")),n[Ga("0x61")][Ga("0x44")].unbind(Ga("0x45")),n[Ga("0x61")][Ga("0xd")][Ga("0x54")](Ga("0x45")).to(o,Ga("0x45")),n[Ga("0x61")][Ga("0x44")][Ga("0x54")](Ga("0x45"))[Ga("0x46")](a,Ga("0x45"),((...t)=>t[Ga("0x0")]((t=>t)))),n.on(Ga("0x59"),(t=>{this[Ga("0x28")][Ga("0x59")](t[Ga("0x30")][Ga("0x4e")]),this[Ga("0x28")][Ga("0x23")][Ga("0x51")].focus()})),n}[Ga("0x5b")](t){const e=this[Ga("0x28")],n=e[Ga("0x13")],o=e[Ga("0x69")].get("Annotations"),r=e[Ga("0x69")][Ga("0x67")](Ga("0x66")),i=e.plugins.get(Ga("0x62")),x=t[Ga("0x22")]().filter((t=>t.isInContent)),a=e[Ga("0x69")][Ga("0x67")](s.Users).me,c=n[Ga("0x67")](Ga("0x2c"))[Ga("0x7")],{CommentsListView:l,CommentThreadInputView:u}=e.plugins[Ga("0x67")](Ga("0x47"));let d,g;this[Ga("0x9")][Ga("0x18")](t.id)?(g=this[Ga("0x9")][Ga("0x67")](t.id),d=g[Ga("0x3a")]):(d=new c(e[Ga("0x8")],t,a,{disableComments:this[Ga("0x1f")],editorConfig:n[Ga("0x67")](Ga("0x3e")),maxCommentsWhenCollapsed:n[Ga("0x67")](Ga("0x34")),maxThreadTotalWeight:n[Ga("0x67")](Ga("0xe")),maxCommentCharsWhenCollapsed:n[Ga("0x67")]("comments.maxCommentCharsWhenCollapsed"),formatDateTime:(0,s.getDateTimeFormatter)(n[Ga("0x67")](Ga("0x8"))),CommentView:n[Ga("0x67")]("comments")[Ga("0x50")],CommentsListView:l,CommentThreadInputView:u}),d[Ga("0x1c")].on("execute",(()=>{e[Ga("0x23")][Ga("0x51")].focus()})),d[Ga("0x52")].on(Ga("0x59"),(()=>{e.editing[Ga("0x51")][Ga("0x38")]()})),g=o[Ga("0x15")](this[Ga("0x28")][Ga("0x8")],d),g[Ga("0x54")]("isDirty").to(d,Ga("0x71")),g.bind(Ga("0x5")).to(d),g[Ga("0x54")](Ga("0xa")).to(d,Ga("0xa"),(t=>Ga("0x2d")+t)),this[Ga("0x9")][Ga("0xb")](t.id,g));const m=r[Ga("0x32")](t[Ga("0x26")],d),f=new Aa(e,t,d,m);d[Ga("0x57")]=e[Ga("0x69")].get(Ga("0x48"))[Ga("0x16")][Ga("0x68")](x),this[Ga("0x10")].set(t,f),this[Ga("0x3d")].set(d,f);const h=o[Ga("0x20")]({view:g,target:()=>{const t=x[0][Ga("0x3c")]();if(!t)return null;const n=t[Ga("0x53")]()[Ga("0x56")]();return n&&!e[Ga("0x23")][Ga("0x19")][Ga("0x11")](n)?null:(0,s.getMarkerDomElement)(e[Ga("0x23")],t)||null},type:()=>Ga("0x2d")+f[Ga("0x51")][Ga("0xa")]});o[Ga("0x6f")](h),i.registerAnnotation(h)}_destroyController(t){const e=this[Ga("0x28")].plugins.get(Ga("0x1e")),n=this[Ga("0x10")].get(t),o=n[Ga("0x51")],r=e[Ga("0x3f")](o);r&&e[Ga("0x63")](r),this._suggestionToController[Ga("0x5c")](t),this[Ga("0x3d")][Ga("0x5c")](o),n[Ga("0x4a")]()}[Ga("0x29")](t){if(!t.isInContent||!this[Ga("0x10")][Ga("0x18")](t))return;const e=this[Ga("0x28")][Ga("0x69")][Ga("0x67")]("TrackChangesEditing"),n=this[Ga("0x10")][Ga("0x67")](t),o=t.getAllAdjacentSuggestions();n.view.descriptionParts=e[Ga("0x16")][Ga("0x68")](o)}[Ga("0x4a")](){for(const t of this[Ga("0x10")][Ga("0x25")]())this._destroyController(t);for(const t of this._annotationViews[Ga("0x4")]())t[Ga("0x3a")][Ga("0x4a")]();super[Ga("0x4a")]()}}var Va,za,Wa=["addSuggestionData","editor","getSuggestion","getSuggestions","requires","get","plugins","Comments","adapter","addSuggestion","TrackChanges","pluginName"];Va=Wa,za=358,function(t){for(;--t;)Va.push(Va.shift())}(++za);var Ka=function(t,e){return Wa[t-=0]};class Xa extends t.Plugin{static get[Ka("0x6")](){return[da,Ha,Ka("0x9")]}static get[Ka("0x1")](){return Ka("0x0")}set[Ka("0xa")](t){this[Ka("0x3")][Ka("0x8")].get(da)[Ka("0xa")]=t}get[Ka("0xa")](){return this[Ka("0x3")][Ka("0x8")].get(da)[Ka("0xa")]}[Ka("0xb")](t){return this[Ka("0x3")][Ka("0x8")][Ka("0x7")](da)[Ka("0x2")](t)}[Ka("0x5")](t){return this[Ka("0x3")][Ka("0x8")].get(da).getSuggestions(t)}getSuggestion(t){return this[Ka("0x3")][Ka("0x8")][Ka("0x7")](da)[Ka("0x4")](t)}}const qa=["pluginName","addSuggestionData","define","model","getDataWithDiscardedSuggestions","init","div","createDocumentFragment","includes","get","plugins","map","constructor","set","requires","getRootNames","filter","Autosave","reduce","has","RevisionTracker","Pagination","TrackChangesEditing","every","names","users","editor","data","getDataWithAcceptedSuggestions","create","WebSocketGateway","getUser","config","string","TrackChangesData","concat","extraPlugins","find","from","createElement","name","Users","trackChangesData","function","initialData","acceptAllSuggestions","push","appendChild","_adapter","editorCreator","toolbar","builtinPlugins","useAnonymousUser","context"];var $a,Qa;$a=qa,Qa=120,function(t){for(;--t;)$a.push($a.shift())}(++Qa);const Ja=function(t,e){return qa[t-=0]},Za=[Ja("0x20"),Ja("0x29"),Ja("0x26")],Ya=[Ja("0x12"),Ja("0x8"),Ja("0x5"),"WordCount",Ja("0x9")];class tc extends t.Plugin{static get requires(){return[da]}static get pluginName(){return Ja("0x16")}[Ja("0x2f")](){const t=this[Ja("0xe")];if(t.config[Ja("0x2c")]("trackChangesData.editorCreator",(e=>t[Ja("0x0")][Ja("0x11")]("",e))),"function"!=typeof t[Ja("0x14")][Ja("0x33")]("trackChangesData")[Ja("0x25")])throw new e.CKEditorError("track-changes-data-invalid-editor-creator")}[Ja("0x10")](t){return nc(this[Ja("0xe")],!0,t)}[Ja("0x2e")](t){return nc(this[Ja("0xe")],!1,t)}}class ec extends t.Plugin{static get pluginName(){return"TrackChangesDataGetter"}init(){this.result="end",this[Ja("0xe")][Ja("0x34")][Ja("0x33")]("CommentsRepository")[Ja("0x24")]={getCommentThread:()=>new Promise((()=>{}))},this[Ja("0xe")][Ja("0x34")].get(Ja("0xa"))[Ja("0x24")]=null}}async function nc(t,e,n){const o=function(t){const e={};for(const n of t.config[Ja("0xc")]())Za[Ja("0x32")](n)||(e[n]=t[Ja("0x14")][Ja("0x33")](n));const n=t[Ja("0x0")][Ja("0x27")]||[],o=e[Ja("0x18")]||[];delete e[Ja("0x18")];const r=n[Ja("0x17")](e[Ja("0x34")]).concat(o)[Ja("0x35")]((t=>Ja("0x15")==typeof t?n[Ja("0x19")]((e=>e.pluginName==t)):t)),s=Array[Ja("0x1a")](new Set(r)),i=new Map;return e[Ja("0x34")]=s[Ja("0x4")]((t=>oc(t,i))),e[Ja("0x34")][Ja("0x22")](ec),e[Ja("0x34")][Ja("0x22")](da),e}(t),r=document[Ja("0x31")](),s=t[Ja("0x14")][Ja("0x33")](Ja("0x1e"))[Ja("0x25")],i=await s(o,(()=>function(t){const e=document[Ja("0x1b")](Ja("0x30"));return t[Ja("0x23")](e),e}(r)));!function(t,e){const n=t[Ja("0x2d")].document[Ja("0x3")]()[Ja("0x6")](((e,n)=>(e[n]=t[Ja("0xf")].get({rootName:n}),e)),{}),o=t.plugins[Ja("0x33")](Ja("0x1d"))[Ja("0xd")][Ja("0x35")]((t=>({id:t.id}))),r=t[Ja("0x34")][Ja("0x33")](Ja("0xa")).getSuggestions({skipNotAttached:!0,toJSON:!0}),s=e[Ja("0x34")].get(Ja("0x1d")),i=e[Ja("0x34")][Ja("0x33")]("TrackChangesEditing");for(const t of o)s[Ja("0x13")](t.id)||s.addUser(t);s.me||s[Ja("0x28")]();for(const t of r)i[Ja("0x2b")](t);e[Ja("0xf")][Ja("0x1")](n)}(t,i),i.execute(e?Ja("0x21"):"discardAllSuggestions");const x=i[Ja("0xf")][Ja("0x33")](n);return await i.destroy(),x}function oc(t,e){const n=Ja("0x1f")==typeof t?t[Ja("0x2a")]||t[Ja("0x1c")]:t;if(e[Ja("0x7")](n))return e[Ja("0x33")](n);if(e.set(n,!0),n&&Ya.includes(n))return e[Ja("0x1")](n,!1),!1;if(!t[Ja("0x2")])return e[Ja("0x1")](n,!0),!0;const o=t.requires[Ja("0xb")]((t=>oc(t,e)));return e[Ja("0x1")](n,o),o}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();