@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231114.0 → 0.0.0-nightly-20231116.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 (159) 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/sq.js +1 -1
  37. package/build/translations/sr-latn.js +1 -1
  38. package/build/translations/sr.js +1 -1
  39. package/build/translations/sv.js +1 -1
  40. package/build/translations/th.js +1 -1
  41. package/build/translations/tk.js +1 -1
  42. package/build/translations/tr.js +1 -1
  43. package/build/translations/tt.js +1 -1
  44. package/build/translations/uk.js +1 -1
  45. package/build/translations/ur.js +1 -1
  46. package/build/translations/vi.js +1 -1
  47. package/build/translations/zh-cn.js +1 -1
  48. package/build/translations/zh.js +1 -1
  49. package/lang/contexts.json +3 -3
  50. package/lang/translations/ar.po +19 -19
  51. package/lang/translations/bg.po +19 -19
  52. package/lang/translations/bn.po +19 -19
  53. package/lang/translations/ca.po +19 -19
  54. package/lang/translations/cs.po +19 -19
  55. package/lang/translations/da.po +19 -19
  56. package/lang/translations/de.po +19 -19
  57. package/lang/translations/el.po +19 -19
  58. package/lang/translations/es.po +19 -19
  59. package/lang/translations/et.po +19 -19
  60. package/lang/translations/fi.po +19 -19
  61. package/lang/translations/fr.po +19 -19
  62. package/lang/translations/he.po +19 -19
  63. package/lang/translations/hi.po +19 -19
  64. package/lang/translations/hu.po +19 -19
  65. package/lang/translations/id.po +19 -19
  66. package/lang/translations/it.po +19 -19
  67. package/lang/translations/ja.po +19 -19
  68. package/lang/translations/ko.po +19 -19
  69. package/lang/translations/lt.po +19 -19
  70. package/lang/translations/lv.po +19 -19
  71. package/lang/translations/ms.po +19 -19
  72. package/lang/translations/nl.po +19 -19
  73. package/lang/translations/no.po +19 -19
  74. package/lang/translations/pl.po +19 -19
  75. package/lang/translations/pt-br.po +19 -19
  76. package/lang/translations/pt.po +19 -19
  77. package/lang/translations/ro.po +19 -19
  78. package/lang/translations/ru.po +19 -19
  79. package/lang/translations/sk.po +19 -19
  80. package/lang/translations/sr.po +19 -19
  81. package/lang/translations/sv.po +19 -19
  82. package/lang/translations/th.po +19 -19
  83. package/lang/translations/tr.po +19 -19
  84. package/lang/translations/uk.po +19 -19
  85. package/lang/translations/vi.po +19 -19
  86. package/lang/translations/zh-cn.po +19 -19
  87. package/lang/translations/zh.po +19 -19
  88. package/package.json +3 -3
  89. package/src/commands/acceptsuggestioncommand.js +1 -1
  90. package/src/commands/discardsuggestioncommand.js +1 -1
  91. package/src/commands/executeonallsuggestionscommand.js +1 -1
  92. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  93. package/src/commands/trackchangescommand.js +1 -1
  94. package/src/index.d.ts +1 -1
  95. package/src/integrations/aiassistant.js +1 -1
  96. package/src/integrations/alignment.js +1 -1
  97. package/src/integrations/basicstyles.js +1 -1
  98. package/src/integrations/blockquote.js +1 -1
  99. package/src/integrations/ckbox.js +1 -1
  100. package/src/integrations/codeblock.js +1 -1
  101. package/src/integrations/comments.js +1 -1
  102. package/src/integrations/deletecommand.js +1 -1
  103. package/src/integrations/documentlist.js +1 -1
  104. package/src/integrations/documentlistproperties.js +1 -1
  105. package/src/integrations/entercommand.js +1 -1
  106. package/src/integrations/findandreplace.js +1 -1
  107. package/src/integrations/font.js +1 -1
  108. package/src/integrations/formatpainter.js +1 -1
  109. package/src/integrations/heading.js +1 -1
  110. package/src/integrations/highlight.js +1 -1
  111. package/src/integrations/horizontalline.js +1 -1
  112. package/src/integrations/htmlembed.js +1 -1
  113. package/src/integrations/image.js +1 -1
  114. package/src/integrations/imagereplace.js +1 -1
  115. package/src/integrations/imagestyle.js +1 -1
  116. package/src/integrations/importword.js +1 -1
  117. package/src/integrations/indent.js +1 -1
  118. package/src/integrations/inputcommand.js +1 -1
  119. package/src/integrations/link.js +1 -1
  120. package/src/integrations/list.js +1 -1
  121. package/src/integrations/listproperties.js +1 -1
  122. package/src/integrations/mediaembed.js +1 -1
  123. package/src/integrations/mention.js +1 -1
  124. package/src/integrations/pagebreak.js +1 -1
  125. package/src/integrations/paragraph.js +1 -1
  126. package/src/integrations/removeformat.js +1 -1
  127. package/src/integrations/restrictededitingmode.js +1 -1
  128. package/src/integrations/shiftentercommand.js +1 -1
  129. package/src/integrations/standardeditingmode.js +1 -1
  130. package/src/integrations/style.d.ts +0 -1
  131. package/src/integrations/style.js +1 -1
  132. package/src/integrations/table.js +1 -1
  133. package/src/integrations/tablecaption.js +1 -1
  134. package/src/integrations/tableclipboard.js +1 -1
  135. package/src/integrations/tablecolumnresize.js +1 -1
  136. package/src/integrations/tableheadings.js +1 -1
  137. package/src/integrations/tablemergesplit.js +1 -1
  138. package/src/integrations/tableofcontents.js +1 -1
  139. package/src/integrations/tableproperties.js +1 -1
  140. package/src/integrations/template.js +1 -1
  141. package/src/integrations/title.js +1 -1
  142. package/src/integrations/undo.js +1 -1
  143. package/src/integrations/utils.js +1 -1
  144. package/src/suggestion.js +1 -1
  145. package/src/suggestiondescriptionfactory.d.ts +7 -4
  146. package/src/suggestiondescriptionfactory.js +1 -1
  147. package/src/trackchanges.d.ts +0 -67
  148. package/src/trackchanges.js +1 -1
  149. package/src/trackchangesconfig.d.ts +22 -19
  150. package/src/trackchangesdata.js +1 -1
  151. package/src/trackchangesediting.d.ts +14 -23
  152. package/src/trackchangesediting.js +1 -1
  153. package/src/trackchangesui.js +1 -1
  154. package/src/ui/suggestioncontroller.js +1 -1
  155. package/src/ui/view/basesuggestionthreadview.js +1 -1
  156. package/src/ui/view/suggestionthreadview.d.ts +1 -1
  157. package/src/ui/view/suggestionthreadview.js +1 -1
  158. package/src/utils/common-translations.js +1 -1
  159. package/src/utils/utils.js +1 -1
@@ -1,5 +1,5 @@
1
- !function(t){const e=t.en=t.en||{};e.dictionary=Object.assign(e.dictionary||{},{"*Change %0 content*":"*Change %0 content*","*Change to:* %0":"*Change to:* %0","*Check item*":"*Check item*","*Format:* %0":"*Format:* %0","*Format:* change table cell properties":"*Format:* change table cell properties","*Format:* change table properties":"*Format:* change table properties","*Format:* insert into %0":"*Format:* insert into %0","*Format:* remove from %0":"*Format:* remove from %0","*Format:* replace image URL":"*Format:* replace image URL","*Format:* resize table":"*Format:* resize table","*Format:* set order to regular":"*Format:* set order to regular","*Format:* set order to reversed":"*Format:* set order to reversed","*Format:* set start index to %0":"*Format:* set start index to %0","*Indent:* %0":"*Indent:* %0","*Insert:* %0":"*Insert:* %0","*Merge cells*":"*Merge cells*","*Merge:* %0":"*Merge:* %0","*Outdent:* %0":"*Outdent:* %0","*Remove all formatting*":"*Remove all formatting*","*Remove format:* %0":"*Remove format:* %0","*Remove highlight*":"*Remove highlight*","*Remove image text alternative*":"*Remove image text alternative*","*Remove link*":"*Remove link*","*Remove:* %0":"*Remove:* %0","*Replace table cells*":"*Replace table cells*","*Reset font background color*":"*Reset font background color*","*Reset font color*":"*Reset font color*","*Reset font family*":"*Reset font family*","*Reset font size*":"*Reset font size*","*Reset image width*":"*Reset image width*","*Set font background color:* %0":"*Set font background color:* %0","*Set font color:* %0":"*Set font color:* %0","*Set font family:* %0":"*Set font family:* %0","*Set font size:* %0":"*Set font size:* %0","*Set format to:* %0":"*Set format to:* %0","*Set format:* %0":"*Set format:* %0","*Set highlight:* %0":"*Set highlight:* %0","*Set image text alternative:* %0":"*Set image text alternative:* %0","*Set image width:* %0":"*Set image width:* %0","*Set link:* %0":"*Set link:* %0","*Split cell:* horizontally":"*Split cell:* horizontally","*Split cell:* vertically":"*Split cell:* vertically","*Split:* %0":"*Split:* %0","*Uncheck item*":"*Uncheck item*","Accept all selected suggestions":"Accept all selected suggestions","Accept all suggestions":"Accept all suggestions","Accept suggestion":"Accept suggestion","Discard all selected suggestions":"Discard all selected suggestions","Discard all suggestions":"Discard all suggestions","Discard suggestion":"Discard suggestion",ELEMENT_BLOCK_QUOTE:"block quote",ELEMENT_BULLETED_LIST:"bulleted list",ELEMENT_BULLETED_LIST_CIRCLE:"bulleted list (circle)",ELEMENT_BULLETED_LIST_DEFAULT:"bulleted list (default)",ELEMENT_BULLETED_LIST_DISC:"bulleted list (disc)",ELEMENT_BULLETED_LIST_SQUARE:"bulleted list (square)",ELEMENT_CAPTION:"caption",ELEMENT_CODE_BLOCK:["code block","%0 code blocks"],ELEMENT_HEADING:["heading (level %1)","%0 headings (level %1)"],ELEMENT_HEADING_CUSTOM:["heading (%1)","%0 headings (%1)"],ELEMENT_HORIZONTAL_LINE:["horizontal line","%0 horizontal lines"],ELEMENT_HTML_EMBED:["HTML embed","%0 HTML embeds"],ELEMENT_IMAGE:["image","%0 images"],ELEMENT_INLINE_IMAGE:["image","%0 images"],ELEMENT_LINE_BREAK:["line break","%0 line breaks"],ELEMENT_LIST_ITEM:["list item","%0 list items"],ELEMENT_MEDIA:["media item","%0 media items"],ELEMENT_NUMBERED_LIST:"numbered list",ELEMENT_NUMBERED_LIST_DECIMAL:"numbered list (decimal)",ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO:"numbered list (decimal with leading zero)",ELEMENT_NUMBERED_LIST_DEFAULT:"numbered list (default)",ELEMENT_NUMBERED_LIST_LOWER_LATIN:"numbered list (lower-latin)",ELEMENT_NUMBERED_LIST_LOWER_ROMAN:"numbered list (lower-roman)",ELEMENT_NUMBERED_LIST_UPPER_LATIN:"numbered list (upper-latin)",ELEMENT_NUMBERED_LIST_UPPER_ROMAN:"numbered list (upper-roman)",ELEMENT_PAGE_BREAK:["page break","%0 page breaks"],ELEMENT_PARAGRAPH:["paragraph","%0 paragraphs"],ELEMENT_SPACE:["space","%0 spaces"],ELEMENT_TABLE:["table","%0 tables"],ELEMENT_TABLE_COLUMN:["table column","%0 table columns"],ELEMENT_TABLE_COLUMN_WITH_TEXT:["table column *with text* %1","%0 table columns *with text* %1"],ELEMENT_TABLE_OF_CONTENTS:["table of contents","%0 tables of contents"],ELEMENT_TABLE_ROW:["table row","%0 table rows"],ELEMENT_TABLE_ROW_WITH_TEXT:["table row *with text* %1","%0 table rows *with text* %1"],ELEMENT_TABLE_WITH_TEXT:"table *with text* %0",ELEMENT_TITLE:"title",ELEMENT_TODO_LIST:"to-do list",ENTER_DELETION_SUGGESTION_ANNOUNCEMENT:"Entering deletion suggestion.",ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT:"Entering formatting suggestion.",ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT:"Entering insertion suggestion.",EXTERNAL_IMPORT_WORD_SUGGESTION:"This suggestion comes from an imported Word file.",EXTERNAL_SUGGESTION:"This suggestion comes from an external source.",FORMAT_ALIGN_TO_CENTER:"align to center",FORMAT_ALIGN_TO_LEFT:"align to left",FORMAT_ALIGN_TO_RIGHT:"align to right",FORMAT_ALIGNMENT:"alignment",FORMAT_BOLD:"bold",FORMAT_CODE:"code",FORMAT_FONT_BACKGROUND:"font background color",FORMAT_FONT_COLOR:"font color",FORMAT_FONT_FAMILY:"font family",FORMAT_FONT_SIZE:"font size",FORMAT_HEADER_COLUMN:"header column",FORMAT_HEADER_ROW:"header row",FORMAT_HIGHLIGHT:"highlight",FORMAT_IMAGE_WIDTH:"image size",FORMAT_INDENT:"indent",FORMAT_ITALIC:"italic",FORMAT_JUSTIFY_TEXT:"justify",FORMAT_LIST_REVERSED:"list reversed",FORMAT_LIST_START:"list start",FORMAT_REGULAR_COLUMN:"regular column",FORMAT_REGULAR_ROW:"regular row",FORMAT_RESTRICTED_DISABLED:"*Disable in restricted editing mode*",FORMAT_RESTRICTED_ENABLED:"*Enable in restricted editing mode*",FORMAT_SIDE_IMAGE:"side image",FORMAT_STRIKETHROUGH:"strikethrough",FORMAT_STYLE:"style",FORMAT_SUBSCRIPT:"subscript",FORMAT_SUPERSCRIPT:"superscript",FORMAT_UNDERLINE:"underline",LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT:"Leaving deletion suggestion.",LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT:"Leaving formatting suggestion.",LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT:"Leaving insertion suggestion.",PENDING_ACTION_SUGGESTION:"Unsaved change in suggestion.",REPLACE_TEXT:"*Replace:* %0 *with* %1","Track changes":"Track changes"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),
1
+ !function(t){const e=t.en=t.en||{};e.dictionary=Object.assign(e.dictionary||{},{"*Change %0 content*":"*Change %0 content*","*Change to:* %0":"*Change to:* %0","*Check item*":"*Check item*","*Format:* %0":"*Format:* %0","*Format:* change table cell properties":"*Format:* change table cell properties","*Format:* change table properties":"*Format:* change table properties","*Format:* insert into %0":"*Format:* insert into %0","*Format:* remove from %0":"*Format:* remove from %0","*Format:* resize table":"*Format:* resize table","*Format:* set order to regular":"*Format:* set order to regular","*Format:* set order to reversed":"*Format:* set order to reversed","*Format:* set start index to %0":"*Format:* set start index to %0","*Indent:* %0":"*Indent:* %0","*Insert:* %0":"*Insert:* %0","*Merge cells*":"*Merge cells*","*Merge:* %0":"*Merge:* %0","*Outdent:* %0":"*Outdent:* %0","*Remove all formatting*":"*Remove all formatting*","*Remove format:* %0":"*Remove format:* %0","*Remove highlight*":"*Remove highlight*","*Remove image text alternative*":"*Remove image text alternative*","*Remove link*":"*Remove link*","*Remove:* %0":"*Remove:* %0","*Replace table cells*":"*Replace table cells*","*Reset font background color*":"*Reset font background color*","*Reset font color*":"*Reset font color*","*Reset font family*":"*Reset font family*","*Reset font size*":"*Reset font size*","*Reset image width*":"*Reset image width*","*Set font background color:* %0":"*Set font background color:* %0","*Set font color:* %0":"*Set font color:* %0","*Set font family:* %0":"*Set font family:* %0","*Set font size:* %0":"*Set font size:* %0","*Set format to:* %0":"*Set format to:* %0","*Set format:* %0":"*Set format:* %0","*Set highlight:* %0":"*Set highlight:* %0","*Set image text alternative:* %0":"*Set image text alternative:* %0","*Set image width:* %0":"*Set image width:* %0","*Set link:* %0":"*Set link:* %0","*Split cell:* horizontally":"*Split cell:* horizontally","*Split cell:* vertically":"*Split cell:* vertically","*Split:* %0":"*Split:* %0","*Uncheck item*":"*Uncheck item*","Accept all selected suggestions":"Accept all selected suggestions","Accept all suggestions":"Accept all suggestions","Accept suggestion":"Accept suggestion","Discard all selected suggestions":"Discard all selected suggestions","Discard all suggestions":"Discard all suggestions","Discard suggestion":"Discard suggestion",ELEMENT_BLOCK_QUOTE:"block quote",ELEMENT_BULLETED_LIST:"bulleted list",ELEMENT_BULLETED_LIST_CIRCLE:"bulleted list (circle)",ELEMENT_BULLETED_LIST_DEFAULT:"bulleted list (default)",ELEMENT_BULLETED_LIST_DISC:"bulleted list (disc)",ELEMENT_BULLETED_LIST_SQUARE:"bulleted list (square)",ELEMENT_CAPTION:"caption",ELEMENT_CODE_BLOCK:["code block","%0 code blocks"],ELEMENT_HEADING:["heading (level %1)","%0 headings (level %1)"],ELEMENT_HEADING_CUSTOM:["heading (%1)","%0 headings (%1)"],ELEMENT_HORIZONTAL_LINE:["horizontal line","%0 horizontal lines"],ELEMENT_HTML_EMBED:["HTML embed","%0 HTML embeds"],ELEMENT_IMAGE:["image","%0 images"],ELEMENT_INLINE_IMAGE:["image","%0 images"],ELEMENT_LINE_BREAK:["line break","%0 line breaks"],ELEMENT_LIST_ITEM:["list item","%0 list items"],ELEMENT_MEDIA:["media item","%0 media items"],ELEMENT_NUMBERED_LIST:"numbered list",ELEMENT_NUMBERED_LIST_DECIMAL:"numbered list (decimal)",ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO:"numbered list (decimal with leading zero)",ELEMENT_NUMBERED_LIST_DEFAULT:"numbered list (default)",ELEMENT_NUMBERED_LIST_LOWER_LATIN:"numbered list (lower-latin)",ELEMENT_NUMBERED_LIST_LOWER_ROMAN:"numbered list (lower-roman)",ELEMENT_NUMBERED_LIST_UPPER_LATIN:"numbered list (upper-latin)",ELEMENT_NUMBERED_LIST_UPPER_ROMAN:"numbered list (upper-roman)",ELEMENT_PAGE_BREAK:["page break","%0 page breaks"],ELEMENT_PARAGRAPH:["paragraph","%0 paragraphs"],ELEMENT_SPACE:["space","%0 spaces"],ELEMENT_TABLE:["table","%0 tables"],ELEMENT_TABLE_COLUMN:["table column","%0 table columns"],ELEMENT_TABLE_COLUMN_WITH_TEXT:["table column *with text* %1","%0 table columns *with text* %1"],ELEMENT_TABLE_OF_CONTENTS:["table of contents","%0 tables of contents"],ELEMENT_TABLE_ROW:["table row","%0 table rows"],ELEMENT_TABLE_ROW_WITH_TEXT:["table row *with text* %1","%0 table rows *with text* %1"],ELEMENT_TABLE_WITH_TEXT:"table *with text* %0",ELEMENT_TITLE:"title",ELEMENT_TODO_LIST:"to-do list",ENTER_DELETION_SUGGESTION_ANNOUNCEMENT:"Entering deletion suggestion.",ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT:"Entering formatting suggestion.",ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT:"Entering insertion suggestion.",EXTERNAL_IMPORT_WORD_SUGGESTION:"This suggestion comes from an imported Word file.",EXTERNAL_SUGGESTION:"This suggestion comes from an external source.",FORMAT_ALIGN_TO_CENTER:"align to center",FORMAT_ALIGN_TO_LEFT:"align to left",FORMAT_ALIGN_TO_RIGHT:"align to right",FORMAT_ALIGNMENT:"alignment",FORMAT_BOLD:"bold",FORMAT_CODE:"code",FORMAT_FONT_BACKGROUND:"font background color",FORMAT_FONT_COLOR:"font color",FORMAT_FONT_FAMILY:"font family",FORMAT_FONT_SIZE:"font size",FORMAT_HEADER_COLUMN:"header column",FORMAT_HEADER_ROW:"header row",FORMAT_HIGHLIGHT:"highlight",FORMAT_INDENT:"indent",FORMAT_ITALIC:"italic",FORMAT_JUSTIFY_TEXT:"justify",FORMAT_LIST_REVERSED:"list reversed",FORMAT_LIST_START:"list start",FORMAT_REGULAR_COLUMN:"regular column",FORMAT_REGULAR_ROW:"regular row",FORMAT_RESTRICTED_DISABLED:"*Disable in restricted editing mode*",FORMAT_RESTRICTED_ENABLED:"*Enable in restricted editing mode*",FORMAT_SIDE_IMAGE:"side image",FORMAT_STRIKETHROUGH:"strikethrough",FORMAT_STYLE:"style",FORMAT_SUBSCRIPT:"subscript",FORMAT_SUPERSCRIPT:"superscript",FORMAT_UNDERLINE:"underline",LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT:"Leaving deletion suggestion.",LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT:"Leaving formatting suggestion.",LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT:"Leaving insertion suggestion.",PENDING_ACTION_SUGGESTION:"Unsaved change in suggestion.",REPLACE_TEXT:"*Replace:* %0 *with* %1","Track changes":"Track changes"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),
2
2
  /*!
3
3
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
4
4
  * For licensing, see LICENSE.md.
5
- */(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var i=e[o];if(void 0!==i)return i.exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>bc,TrackChanges:()=>Fc,TrackChangesData:()=>Gc,TrackChangesEditing:()=>Za});var t=n(704),e=n(209),i=n(273),r=n(417),s=n(492),x=n(995);const a=["forceDisabled","clearForceDisabled","_enabledCommands","affectsData","refresh","has","_isEnabledBasedOnSelection","execute","editor","_disableUnsupportedCommands","value","TrackChangesCommand","_enableCommands","commands"];var c,l;c=a,l=374,function(t){for(;--t;)c.push(c.shift())}(++l);const u=function(t,e){return a[t-=0]};class d extends t.Command{constructor(t,e){super(t),this._enabledCommands=e,this[u("0x0")]=!1,this[u("0x8")](),this[u("0xa")]=!1}[u("0x8")](){this.isEnabled=!0}[u("0xb")](){this[u("0x0")]=!this[u("0x0")],this[u("0x0")]?this._disableUnsupportedCommands():this[u("0x2")]()}[u("0xd")](){for(const t of this[u("0xc")][u("0x3")][u("0x3")]())t[u("0x7")]&&!this[u("0x6")][u("0x9")](t)&&t[u("0x4")]("TrackChangesCommand")}[u("0x2")](){for(const t of this[u("0xc")][u("0x3")][u("0x3")]())t[u("0x7")]&&!this[u("0x6")].has(t)&&t[u("0x5")](u("0x1"))}}const g=["acceptSuggestion","model","getRanges","get","isEnabled","track-changes-accept-suggestion-not-found","_isEnabledBasedOnSelection","canEditAt","refresh","editor","plugins"];var f,m;f=g,m=396,function(t){for(;--t;)f.push(f.shift())}(++m);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this._suggestions=e,this[h("0x8")](),this[h("0x6")]=!1}refresh(){this[h("0x4")]=!0}execute(t){const n=this._suggestions[h("0x3")](t);if(!n)throw new e.CKEditorError(h("0x5"),this);const o=n[h("0x2")]();this[h("0x9")][h("0x1")][h("0x7")](o)&&this[h("0x9")][h("0xa")][h("0x3")]("TrackChangesEditing")[h("0x0")](n)}}const b=["refresh","_isEnabledBasedOnSelection","isEnabled","track-changes-discard-suggestion-not-found","getRanges","plugins","_suggestions","model","editor","get","execute"];var E,_;E=b,_=116,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class y extends t.Command{constructor(t,e){super(t),this._suggestions=e,this[T("0x5")](),this[T("0x6")]=!1}[T("0x5")](){this[T("0x7")]=!0}[T("0x4")](t){const n=this[T("0x0")][T("0x3")](t);if(!n)throw new e.CKEditorError(T("0x8"),this);const o=n[T("0x9")]();this.editor[T("0x1")].canEditAt(o)&&this[T("0x2")][T("0xa")][T("0x3")]("TrackChangesEditing").discardSuggestion(n)}}const C=["createRange","end","createPositionAt","deletion","add","isCollapsed","replace","type","isInContent","schema","splice","getRanges","isArray","push","isObject","length","color","sort","change","createPositionAfter","from","createPositionBefore"," [color ","next","join","value","isIntersecting","isMultiRange"];var A,k;A=C,k=180,function(t){for(;--t;)A.push(A.shift())}(++k);const I=function(t,e){return C[t-=0]};function R(t){return t[I("0x5")](((t,e)=>"deletion"==t[I("0x17")]&&I("0x13")!=e[I("0x17")]?-1:I("0x13")!=t[I("0x17")]&&"deletion"==e.type?1:0))}function S(t,e){let n,o=0;const i=[],r=e[I("0x19")];for(;o<t[I("0x3")];){const s=t[o],x=t[o+1];n||(n=e.createPositionBefore(s)),N(e,s,x)||(i[I("0x1")](e[I("0x10")](n,r[I("0x2")](s)?e[I("0x7")](s):e[I("0x12")](s,I("0x11")))),n=null),o++}return i}function N(t,e,n){if(!n)return!1;const o=t[I("0x7")](e),i=t[I("0x9")](n);return o.isTouching(i)}function v(t,e,n){for(;n[I("0x3")];){const o=n[I("0x1a")](0,100);t[I("0x6")]((()=>{for(const t of o)t.isInContent&&e.execute(t.id)}))}}const L=["model","isEnabled","editor","some","refresh","values","from","_suggestions","canEditAt","getRanges","_isEnabledBasedOnSelection","isInContent","execute"];var M,O;M=L,O=319,function(t){for(;--t;)M.push(M.shift())}(++O);const w=function(t,e){return L[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this._command=e,this[w("0x0")]=n,this[w("0xa")](),this[w("0x3")]=!1}refresh(){const t=Array[w("0xc")](this[w("0x0")][w("0xb")]())[w("0x9")]((t=>t[w("0x4")]));this[w("0x7")]=this._command.isEnabled&&t}[w("0x5")](){const t=R(Array.from(this[w("0x0")][w("0xb")]()));for(const e of t){const t=e[w("0x2")]();if(!this[w("0x8")][w("0x6")][w("0x1")](t))return}v(this.editor.model,this._command,t)}}const D=["isEnabled","document","getRanges","refresh","_command","model","editor","_selectedSuggestions","canEditAt","execute","values","size","from","_suggestions","_isEnabledBasedOnSelection"];var B,P;B=D,P=380,function(t){for(;--t;)B.push(B.shift())}(++P);const U=function(t,e){return D[t-=0]};class j extends t.Command{constructor(t,e,n){super(t),this._command=e,this[U("0x8")]=n,this[U("0x2")]=new Set,this[U("0xd")](),this[U("0x9")]=!1}[U("0xd")](){const t=this.editor[U("0x0")][U("0xb")].selection,e=Array[U("0x7")](this[U("0x8")][U("0x5")]());this._selectedSuggestions=function(t,e){const n=Array[I("0x8")](t[I("0x1b")]()),o=new Set;for(const i of e)if(i[I("0x18")])for(const e of n)for(const n of i[I("0x1b")]())(e[I("0xe")](n)||t[I("0x15")]&&!i[I("0xf")]&&i[I("0xb")]&&n[I("0x11")].isTouching(e.start))&&o[I("0x14")](i);return o}(t,e),this[U("0xa")]=this[U("0xe")].isEnabled&&!!this[U("0x2")][U("0x6")]}[U("0x4")](){const t=R(Array[U("0x7")](this[U("0x2")]));for(const e of t){const t=e[U("0xc")]();if(!this[U("0x1")][U("0x0")][U("0x3")](t))return}v(this[U("0x1")][U("0x0")],this[U("0xe")],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 q=function(t){return V(this.__data__,t)>-1};const $=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 X(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])}}X.prototype.clear=G,X.prototype.delete=W,X.prototype.get=K,X.prototype.has=q,X.prototype.set=$;const Y=X;const Z=function(){this.__data__=new Y,this.size=0};const J=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Q=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const it=ot.Symbol;var rt=Object.prototype,st=rt.hasOwnProperty,xt=rt.toString,at=it?it.toStringTag:void 0;const ct=function(t){var e=st.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var i=xt.call(t);return o&&(e?t[at]=n:delete t[at]),i};var lt=Object.prototype.toString;const ut=function(t){return lt.call(t)};var dt=it?it.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":dt&&dt in Object(t)?ct(t):ut(t)};const ft=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const mt=function(t){if(!ft(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var yt=/^\[object .+?Constructor\]$/,Ct=Function.prototype,At=Object.prototype,kt=Ct.toString,It=At.hasOwnProperty,Rt=RegExp("^"+kt.call(It).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const St=function(t){return!(!ft(t)||Et(t))&&(mt(t)?Rt:yt).test(Tt(t))};const Nt=function(t,e){return null==t?void 0:t[e]};const vt=function(t,e){var n=Nt(t,e);return St(n)?n:void 0};const Lt=vt(ot,"Map");const Mt=vt(Object,"create");const Ot=function(){this.__data__=Mt?Mt(null):{},this.size=0};const wt=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Dt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Bt=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Bt.call(e,t)};const Ut=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mt&&void 0===e?"__lodash_hash_undefined__":e,this};function jt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}jt.prototype.clear=Ot,jt.prototype.delete=wt,jt.prototype.get=Dt,jt.prototype.has=Pt,jt.prototype.set=Ut;const Gt=jt;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Lt||Y),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 qt=function(t){return zt(this,t).has(t)};const $t=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 Xt(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])}}Xt.prototype.clear=Ht,Xt.prototype.delete=Wt,Xt.prototype.get=Kt,Xt.prototype.has=qt,Xt.prototype.set=$t;const Yt=Xt;const Zt=function(t,e){var n=this.__data__;if(n instanceof Y){var o=n.__data__;if(!Lt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Yt(o)}return n.set(t,e),this.size=n.size,this};function Jt(t){var e=this.__data__=new Y(t);this.size=e.size}Jt.prototype.clear=Z,Jt.prototype.delete=J,Jt.prototype.get=Q,Jt.prototype.has=tt,Jt.prototype.set=Zt;const Qt=Jt;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=vt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const ie=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var i=!n;n||(n={});for(var r=-1,s=e.length;++r<s;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),i?ne(n,x,a):ie(n,x,a)}return n};const se=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,ue=ce.propertyIsEnumerable;const de=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!ue.call(t,"callee")};const ge=Array.isArray;const fe=function(){return!1};var me="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=me&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===me?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||fe;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var ye={};ye["[object Float32Array]"]=ye["[object Float64Array]"]=ye["[object Int8Array]"]=ye["[object Int16Array]"]=ye["[object Int32Array]"]=ye["[object Uint8Array]"]=ye["[object Uint8ClampedArray]"]=ye["[object Uint16Array]"]=ye["[object Uint32Array]"]=!0,ye["[object Arguments]"]=ye["[object Array]"]=ye["[object ArrayBuffer]"]=ye["[object Boolean]"]=ye["[object DataView]"]=ye["[object Date]"]=ye["[object Error]"]=ye["[object Function]"]=ye["[object Map]"]=ye["[object Number]"]=ye["[object Object]"]=ye["[object RegExp]"]=ye["[object Set]"]=ye["[object String]"]=ye["[object WeakMap]"]=!1;const Ce=function(t){return xe(t)&&Te(t.length)&&!!ye[gt(t)]};const Ae=function(t){return function(e){return t(e)}};var ke="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ie=ke&&"object"==typeof module&&module&&!module.nodeType&&module,Re=Ie&&Ie.exports===ke&&et.process;const Se=function(){try{var t=Ie&&Ie.require&&Ie.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Ne=Se&&Se.isTypedArray;const ve=Ne?Ae(Ne):Ce;var Le=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&de(t),i=!n&&!o&&be(t),r=!n&&!o&&!i&&ve(t),s=n||o||i||r,x=s?se(t.length,String):[],a=x.length;for(var c in t)!e&&!Le.call(t,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var Oe=Object.prototype;const we=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Oe)};const Fe=function(t,e){return function(n){return t(e(n))}};const De=Fe(Object.keys,Object);var Be=Object.prototype.hasOwnProperty;const Pe=function(t){if(!we(t))return De(t);var e=[];for(var n in Object(t))Be.call(t,n)&&"constructor"!=n&&e.push(n);return e};const Ue=function(t){return null!=t&&Te(t.length)&&!mt(t)};const je=function(t){return Ue(t)?Me(t):Pe(t)};const Ge=function(t,e){return t&&re(e,je(e),t)};const 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(!ft(t))return He(t);var e=we(t),n=[];for(var o in t)("constructor"!=o||!e&&Ve.call(t,o))&&n.push(o);return n};const We=function(t){return Ue(t)?Me(t,!0):ze(t)};const Ke=function(t,e){return t&&re(e,We(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,$e=qe&&"object"==typeof module&&module&&!module.nodeType&&module,Xe=$e&&$e.exports===qe?ot.Buffer:void 0,Ye=Xe?Xe.allocUnsafe:void 0;const Ze=function(t,e){if(e)return t.slice();var n=t.length,o=Ye?Ye(n):new t.constructor(n);return t.copy(o),o};const Je=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Qe=function(t,e){for(var n=-1,o=null==t?0:t.length,i=0,r=[];++n<o;){var s=t[n];e(s,n,t)&&(r[i++]=s)}return r};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Qe(nn(t),(function(e){return en.call(t,e)})))}:tn;const rn=function(t,e){return re(t,on(t),e)};const sn=function(t,e){for(var n=-1,o=e.length,i=t.length;++n<o;)t[i+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)sn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return re(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:sn(o,n(t))};const un=function(t){return ln(t,je,on)};const dn=function(t){return ln(t,We,an)};const gn=vt(ot,"DataView");const fn=vt(ot,"Promise");const mn=vt(ot,"Set");const hn=vt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",yn=Tt(gn),Cn=Tt(Lt),An=Tt(fn),kn=Tt(mn),In=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Lt&&Rn(new Lt)!=pn||fn&&Rn(fn.resolve())!=bn||mn&&Rn(new mn)!=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 yn:return Tn;case Cn:return pn;case An:return bn;case kn:return En;case In:return _n}return e});const Sn=Rn;var Nn=Object.prototype.hasOwnProperty;const vn=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Nn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Ln=ot.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Ln(e).set(new Ln(t)),e};const On=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var wn=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,wn.exec(t));return e.lastIndex=t.lastIndex,e};var Dn=it?it.prototype:void 0,Bn=Dn?Dn.valueOf:void 0;const Pn=function(t){return Bn?Object(Bn.call(t)):{}};const Un=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const jn=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return On(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Un(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Pn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!ft(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const Vn=function(t){return"function"!=typeof t.constructor||we(t)?{}:Hn(xn(t))};const zn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Wn=Se&&Se.isMap;const Kn=Wn?Ae(Wn):zn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var $n=Se&&Se.isSet;const Xn=$n?Ae($n):qn;var Yn="[object Arguments]",Zn="[object Function]",Jn="[object Object]",Qn={};Qn[Yn]=Qn["[object Array]"]=Qn["[object ArrayBuffer]"]=Qn["[object DataView]"]=Qn["[object Boolean]"]=Qn["[object Date]"]=Qn["[object Float32Array]"]=Qn["[object Float64Array]"]=Qn["[object Int8Array]"]=Qn["[object Int16Array]"]=Qn["[object Int32Array]"]=Qn["[object Map]"]=Qn["[object Number]"]=Qn[Jn]=Qn["[object RegExp]"]=Qn["[object Set]"]=Qn["[object String]"]=Qn["[object Symbol]"]=Qn["[object Uint8Array]"]=Qn["[object Uint8ClampedArray]"]=Qn["[object Uint16Array]"]=Qn["[object Uint32Array]"]=!0,Qn["[object Error]"]=Qn[Zn]=Qn["[object WeakMap]"]=!1;const to=function t(e,n,o,i,r,s){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,i,r,s):o(e)),void 0!==x)return x;if(!ft(e))return e;var u=ge(e);if(u){if(x=vn(e),!a)return Je(e,x)}else{var d=Sn(e),g=d==Zn||"[object GeneratorFunction]"==d;if(be(e))return Ze(e,a);if(d==Jn||d==Yn||g&&!r){if(x=c||g?{}:Vn(e),!a)return c?cn(e,Ke(x,e)):rn(e,Ge(x,e))}else{if(!Qn[d])return r?e:{};x=jn(e,d,a)}}s||(s=new Qt);var f=s.get(e);if(f)return f;s.set(e,x),Xn(e)?e.forEach((function(i){x.add(t(i,n,o,i,e,s))})):Kn(e)&&e.forEach((function(i,r){x.set(r,t(i,n,o,r,e,s))}));var m=u?void 0:(l?c?dn:un:c?We:je)(e);return te(m||e,(function(i,r){m&&(i=e[r=i]),ie(x,r,t(i,n,o,r,e,s))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,io=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(io.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function so(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,i=e?e.apply(this,o):o[0],r=n.cache;if(r.has(i))return r.get(i);var s=t.apply(this,o);return n.cache=r.set(i,s)||r,s};return n.cache=new(so.Cache||Yt),n}so.Cache=Yt;const xo=so;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,i){e.push(o?i.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,i=Array(o);++n<o;)i[n]=e(t[n],n,t);return i};var go=it?it.prototype:void 0,fo=go?go.toString:void 0;const mo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return fo?fo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":mo(t)};const po=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!ft(t))return t;for(var i=-1,r=(e=po(e,t)).length,s=r-1,x=t;null!=x&&++i<r;){var a=bo(e[i]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(i!=s){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=ft(l)?l:_e(e[i+1])?[]:{})}ie(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const yo=function(t){return this.__data__.has(t)};function Co(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Yt;++e<n;)this.add(t[e])}Co.prototype.add=Co.prototype.push=To,Co.prototype.has=yo;const Ao=Co;const ko=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const Io=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,i,r){var s=1&n,x=t.length,a=e.length;if(x!=a&&!(s&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new Ao:void 0;for(r.set(t,e),r.set(e,t);++u<x;){var f=t[u],m=e[u];if(o)var h=s?o(m,f,u,e,t,r):o(f,m,u,t,e,r);if(void 0!==h){if(h)continue;d=!1;break}if(g){if(!ko(e,(function(t,e){if(!Io(g,e)&&(f===t||i(f,t,n,o,r)))return g.push(e)}))){d=!1;break}}else if(f!==m&&!i(f,m,n,o,r)){d=!1;break}}return r.delete(t),r.delete(e),d};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const No=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var vo=it?it.prototype:void 0,Lo=vo?vo.valueOf:void 0;const Mo=function(t,e,n,o,i,r,s){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new Ln(t),new Ln(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return 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=So;case"[object Set]":var a=1&o;if(x||(x=No),t.size!=e.size&&!a)return!1;var c=s.get(t);if(c)return c==e;o|=2,s.set(t,e);var l=Ro(x(t),x(e),o,i,r,s);return s.delete(t),l;case"[object Symbol]":if(Lo)return Lo.call(t)==Lo.call(e)}return!1};var Oo=Object.prototype.hasOwnProperty;const wo=function(t,e,n,o,i,r){var s=1&n,x=un(t),a=x.length;if(a!=un(e).length&&!s)return!1;for(var c=a;c--;){var l=x[c];if(!(s?l in e:Oo.call(e,l)))return!1}var u=r.get(t),d=r.get(e);if(u&&d)return u==e&&d==t;var g=!0;r.set(t,e),r.set(e,t);for(var f=s;++c<a;){var m=t[l=x[c]],h=e[l];if(o)var p=s?o(h,m,l,e,t,r):o(m,h,l,t,e,r);if(!(void 0===p?m===h||i(m,h,n,o,r):p)){g=!1;break}f||(f="constructor"==l)}if(g&&!f){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Do="[object Array]",Bo="[object Object]",Po=Object.prototype.hasOwnProperty;const Uo=function(t,e,n,o,i,r){var s=ge(t),x=ge(e),a=s?Do:Sn(t),c=x?Do:Sn(e),l=(a=a==Fo?Bo:a)==Bo,u=(c=c==Fo?Bo:c)==Bo,d=a==c;if(d&&be(t)){if(!be(e))return!1;s=!0,l=!1}if(d&&!l)return r||(r=new Qt),s||ve(t)?Ro(t,e,n,o,i,r):Mo(t,e,a,n,o,i,r);if(!(1&n)){var g=l&&Po.call(t,"__wrapped__"),f=u&&Po.call(e,"__wrapped__");if(g||f){var m=g?t.value():t,h=f?e.value():e;return r||(r=new Qt),i(m,h,n,o,r)}}return!!d&&(r||(r=new Qt),wo(t,e,n,o,i,r))};const jo=function t(e,n,o,i,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:Uo(e,n,o,i,t,r))};const Go=function(t,e){return jo(t,e)};const 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,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(i);++o<i;)r[o]=t[o+e];return r};const Wo=function(t,e){return e.length<2?t: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 qo=function(t,e){return null==t||Ko(t,e)},$o=["reduce","removeAttribute","accept","getContainedElement","end","getMultiRangeId","_onDiscard","isInContent","add","length","decorate","next","removeMarkers","filter","type","split","getMarkers","toJSON","previous","change","substr","discard","start","_onAttributesChange","removeMarker","creator","onAttributesChange","_onAccept","getFirstRange","commentThread","attributes","clear","addRange","from","createdAt","head","isIntersectingWithRange","set","data","push","nodeAfter","map","hasComments","isIntersecting","author","@external","_model","onAccept","_markerNames","nodeBefore","addMarkerName","getRange","get","getRanges","onDiscard","getFirstMarker","getMarkerNames","isMultiRange","setAttribute","delete","subType","getItems"];var Xo,Yo;Xo=$o,Yo=314,function(t){for(;--t;)Xo.push(Xo.shift())}(++Yo);const Zo=function(t,e){return $o[t-=0]};class Jo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this._isDataLoaded=!1,this.id=e.id,this[Zo("0xa")]=e.type,this.subType=e[Zo("0x38")]||null,this[Zo("0x28")]=e[Zo("0x28")],this[Zo("0x15")]=e[Zo("0x15")]||e[Zo("0x28")],this.isExternal=Boolean(e[Zo("0x1a")]&&e[Zo("0x1a")][Zo("0x29")]),this[Zo("0x22")]=null,this[Zo("0x2a")]=t,this[Zo("0x17")]=e[Zo("0x2b")],this[Zo("0x2")]=e[Zo("0x32")],this._onAttributesChange=e[Zo("0x16")],this._markerNames=new Set,this[Zo("0x1e")]=null,this[Zo("0x21")]("authoredAt",null),this[Zo("0x21")](Zo("0x1a"),e[Zo("0x1a")]||{}),this[Zo("0x21")](Zo("0xe"),null),this[Zo("0x21")]("next",null),this.set("commentThread",null),this.set("_saved",!1),this.decorate("accept"),this[Zo("0x6")](Zo("0x11"))}get head(){let t=this;for(;t[Zo("0xe")];)t=t.previous;return t}get[Zo("0x26")](){return!!this[Zo("0x19")]&&this.commentThread[Zo("0x5")]>0}get[Zo("0x35")](){return 0!=this._markerNames.size&&6==Array[Zo("0x1d")](this[Zo("0x2c")])[0][Zo("0xb")](":")[Zo("0x5")]}get[Zo("0x3")](){return null!==this[Zo("0x33")]()}[Zo("0x2e")](t){this[Zo("0x2c")][Zo("0x4")](t)}getMarkerNames(){return Array[Zo("0x1d")](this[Zo("0x2c")])}[Zo("0xc")](){return this[Zo("0x34")]()[Zo("0x25")]((t=>this[Zo("0x2a")].markers[Zo("0x30")](t)))[Zo("0x9")]((t=>t))}[Zo("0x33")](){return this.getMarkers()[0]||null}removeMarkers(){this[Zo("0x2a")].change((t=>{for(const e of this[Zo("0xc")]())t[Zo("0x14")](e)})),this[Zo("0x2c")][Zo("0x1b")]()}[Zo("0x14")](t){this[Zo("0x2a")].change((e=>{e[Zo("0x14")](t)})),this._markerNames[Zo("0x37")](t)}[Zo("0x1c")](t){const e="suggestion:"+this.type+":"+this[Zo("0x38")]+":"+this.id+":"+this.creator.id+":"+Jo[Zo("0x1")]();this[Zo("0x2e")](e),this[Zo("0x2a")][Zo("0xf")]((n=>{n.addMarker(e,{range:t,usingOperation:!0,affectsData:!0})}))}[Zo("0x20")](t){for(const e of this[Zo("0x31")]())if(e[Zo("0x27")](t))return!0;return!1}[Zo("0x31")](){return this.getMarkers()[Zo("0x25")]((t=>t[Zo("0x2f")]()))}[Zo("0x39")](){return this[Zo("0x31")]()[Zo("0x3a")](((t,e)=>[...t,...e.getItems()]),[])}[Zo("0x18")](){var t;return(null===(t=this[Zo("0x33")]())||void 0===t?void 0:t[Zo("0x2f")]())||null}[Zo("0x3d")](){const t=this[Zo("0x31")]();if(1!=t.length)return null;const e=t[0],n=e[Zo("0x12")][Zo("0x24")],o=e[Zo("0x0")][Zo("0x2d")];return n instanceof s.Element?n!=o?null:n:null}[Zo("0x3c")](){this[Zo("0x17")](this.getRanges(),this[Zo("0x22")],this[Zo("0x1a")]),this[Zo("0x8")]()}discard(){this._onDiscard(this[Zo("0x31")](),this[Zo("0x22")],this[Zo("0x1a")]),this[Zo("0x8")]()}getAllAdjacentSuggestions(){const t=[];let e=this[Zo("0x1f")];for(;e;)t[Zo("0x23")](e),e=e[Zo("0x7")];return t}[Zo("0x36")](t,e){const n=eo(this[Zo("0x1a")]);_o(n,t,e),Go(n,this[Zo("0x1a")])||(this[Zo("0x1a")]=n,this[Zo("0x13")](n))}[Zo("0x3b")](t){const e=eo(this[Zo("0x1a")]);qo(e,t),Go(e,this[Zo("0x1a")])||(this.attributes=e,this._onAttributesChange(this[Zo("0x1a")]))}[Zo("0xd")](){return{id:this.id,type:this[Zo("0x38")]?this[Zo("0xa")]+":"+this.subType:this[Zo("0xa")],authorId:this[Zo("0x15")].id,createdAt:this[Zo("0x1e")],hasComments:this.hasComments,data:this[Zo("0x22")],attributes:this.attributes}}static[Zo("0x1")](){return(0,e.uid)()[Zo("0x10")](1,5)}}function Qo(t,e,n){const o=t.t;switch(e){case"Track changes":return o("Track changes");case"Accept suggestion":return o("Accept suggestion");case"Discard suggestion":return o("Discard suggestion");case"Accept all suggestions":return o("Accept all suggestions");case"Accept all selected suggestions":return o("Accept all selected suggestions");case"Discard all suggestions":return o("Discard all suggestions");case"Discard all selected suggestions":return o("Discard all selected suggestions");case"*Reset font size*":return o("*Reset font size*");case"*Reset font family*":return o("*Reset font family*");case"*Reset font color*":return o("*Reset font color*");case"*Reset font background color*":return o("*Reset font background color*");case"*Remove image text alternative*":return o("*Remove image text alternative*");case"*Reset image width*":return o("*Reset image width*");case"*Remove link*":return o("*Remove link*");case"*Check item*":return o("*Check item*");case"*Uncheck item*":return o("*Uncheck item*");case"*Remove all formatting*":return o("*Remove all formatting*");case"*Replace table cells*":return o("*Replace table cells*");case"*Merge cells*":return o("*Merge cells*");case"*Split cell:* vertically":return o("*Split cell:* vertically");case"*Split cell:* horizontally":return o("*Split cell:* horizontally");case"*Indent:* %0":return o("*Indent:* %0",n);case"*Outdent:* %0":return o("*Outdent:* %0",n);case"*Change to:* %0":return o("*Change to:* %0",n);case"*Insert:* %0":return o("*Insert:* %0",n);case"*Format:* %0":return o("*Format:* %0",n);case"*Format:* change table properties":return o("*Format:* change table properties");case"*Format:* change table cell properties":return o("*Format:* change table cell properties");case"*Format:* insert into %0":return o("*Format:* insert into %0",n);case"*Format:* remove from %0":return o("*Format:* remove from %0",n);case"*Format:* replace image URL":return o("*Format:* replace image URL");case"*Format:* resize table":return o("*Format:* resize table");case"*Format:* set order to reversed":return o("*Format:* set order to reversed");case"*Format:* set order to regular":return o("*Format:* set order to regular");case"*Format:* set start index to %0":return o("*Format:* set start index to %0",n);case"*Change %0 content*":return o("*Change %0 content*",n);case"*Remove:* %0":return o("*Remove:* %0",n);case"*Merge:* %0":return o("*Merge:* %0",n);case"*Split:* %0":return o("*Split:* %0",n);case"*Remove format:* %0":return o("*Remove format:* %0",n);case"*Set font size:* %0":return o("*Set font size:* %0",n);case"*Set font family:* %0":return o("*Set font family:* %0",n);case"*Set format to:* %0":return o("*Set format to:* %0",n);case"*Set font color:* %0":return o("*Set font color:* %0",n);case"*Set font background color:* %0":return o("*Set font background color:* %0",n);case"*Set format:* %0":return o("*Set format:* %0",n);case"*Set image text alternative:* %0":return o("*Set image text alternative:* %0",n);case"*Set image width:* %0":return o("*Set image width:* %0",n);case"*Set link:* %0":return o("*Set link:* %0",n);case"*Set highlight:* %0":return o("*Set highlight:* %0",n);case"*Remove highlight*":return o("*Remove highlight*");case"FORMAT_HIGHLIGHT":return o({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return o({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return o({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return o({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return o({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return o({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return o({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return o({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return o({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return o({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return o({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return o({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return o({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return o({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return o({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_DEFAULT":return o({string:"bulleted list (default)",id:"ELEMENT_BULLETED_LIST_DEFAULT"});case"ELEMENT_BULLETED_LIST_CIRCLE":return o({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return o({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return o({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST_DEFAULT":return o({string:"numbered list (default)",id:"ELEMENT_NUMBERED_LIST_DEFAULT"});case"ELEMENT_NUMBERED_LIST":return o({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return o({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return o({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return o({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return o({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return o({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return o({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return o({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return o({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return o({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGNMENT":return o({string:"alignment",id:"FORMAT_ALIGNMENT"});case"FORMAT_ALIGN_TO_LEFT":return o({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return o({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return o({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return o({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return o({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return o({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return o({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return o({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return o({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return o({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return o({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return o({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return o({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return o({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return o({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return o({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return o({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"FORMAT_INDENT":return o({string:"indent",id:"FORMAT_INDENT"});case"FORMAT_LIST_REVERSED":return o({string:"list reversed",id:"FORMAT_LIST_REVERSED"});case"FORMAT_LIST_START":return o({string:"list start",id:"FORMAT_LIST_START"});case"FORMAT_FONT_SIZE":return o({string:"font size",id:"FORMAT_FONT_SIZE"});case"FORMAT_FONT_FAMILY":return o({string:"font family",id:"FORMAT_FONT_FAMILY"});case"FORMAT_FONT_COLOR":return o({string:"font color",id:"FORMAT_FONT_COLOR"});case"FORMAT_FONT_BACKGROUND":return o({string:"font background color",id:"FORMAT_FONT_BACKGROUND"});case"FORMAT_IMAGE_WIDTH":return o({string:"image size",id:"FORMAT_IMAGE_WIDTH"});case"FORMAT_STYLE":return o({string:"style",id:"FORMAT_STYLE"});case"PENDING_ACTION_SUGGESTION":return o({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return o({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return o({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return o({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return o({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return o({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_TABLE_OF_CONTENTS":return o({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return o({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return o({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return o({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return o({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return o({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return o({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);case"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT":return o({string:"Entering insertion suggestion.",id:"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT":return o({string:"Leaving insertion suggestion.",id:"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT":return o({string:"Entering deletion suggestion.",id:"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT":return o({string:"Leaving deletion suggestion.",id:"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT":return o({string:"Entering formatting suggestion.",id:"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT":return o({string:"Leaving formatting suggestion.",id:"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT"});default:return e}}const ti=["matchingCallback","indexOf","Container","deletion","element","*Split:* %0","removeFormat","insertion","normal","_handleCustomCallbackDescription","replace","get","_itemLabelsCallbacks","getWalker","_handleInsertRemoveSuggestionDescription","nextSibling","function","remove","isObject","newValue","*Insert:* %0","checkChild","_resolveDescriptionItems","text","*Set format:* %0","data","format","attribute","Object","ELEMENT_SPACE","has","addFormat","_customCallbacks","key","subType","EmptyContainer","addObject","addContainer","length","_locale","registerAttributeLabel","match","_attributeLabels","nodeAfter","getItemLabel","REPLACE_TEXT","*Remove:* %0","join","_schema","$1 $2","type","isEqual","set","elementEnd","name","$text","quantity","getDescriptions","registerElementLabel","_addDescriptionItems","registerDescriptionCallback","pop","label","*Merge:* %0","isEmpty","_handleAttributeSuggestionDescription","$textProxy","getFirstRange","isInContent","item","push","add","previousSibling","_itemLabels"];var ei,ni;ei=ti,ni=390,function(t){for(;--t;)ei.push(ei.shift())}(++ni);const oi=function(t,e){return ti[t-=0]};class ii{constructor(t,e){this[oi("0xc")]=[],this._itemLabels=new Map,this[oi("0x42")]=[],this._attributeLabels=new Map,this[oi("0x1c")]=t,this._locale=e}[oi("0x25")](t){const e=this[oi("0x13")],n=[],o=new Set,i=new Set;for(let r=0;r<t[oi("0x12")];r++){const s=t[r];if(!s[oi("0x30")])continue;const x=this[oi("0x3f")](s);if(x){if(null!=s[oi("0xe")]){if(o[oi("0xa")](s[oi("0xe")]))continue;o.add(s[oi("0xe")])}n.push(x)}else if(oi("0x7")!=s[oi("0x1e")])oi("0x3d")!=s[oi("0x1e")]&&"deletion"!=s.type||this[oi("0x44")](n,s,t[r+1]);else{if(i[oi("0xa")](s[oi("0x5")][oi("0xd")]))continue;if(i[oi("0x33")](s.data[oi("0xd")]),s.data[oi("0xd")]==Ya){n[oi("0x32")]({type:oi("0x6"),content:Qo(e,"*Change to:* %0",this.getItemLabel(s[oi("0x2f")]().start[oi("0x17")],1))});continue}this._handleAttributeSuggestionDescription(n,s)}}return this[oi("0x2")](n)}[oi("0x28")](t){this[oi("0xc")][oi("0x32")](t)}[oi("0x26")](t,n,o=e.priorities[oi("0x3e")]){oi("0x46")==typeof t?(0,e.insertToPriorityArray)(this[oi("0x42")],{matchingCallback:t,label:n,priority:o}):this[oi("0x35")][oi("0x20")](t,n)}[oi("0x14")](t,e){this[oi("0x16")][oi("0x20")](t,e)}getItemLabel(t,e=1){let n;for(const e of this[oi("0x42")])if(e[oi("0x36")](t)){n=e[oi("0x2a")];break}return n||(n=this[oi("0x35")].get(t[oi("0x22")])),n?n(e):1!==e?e+" "+t.name+"s":""+t[oi("0x22")]}[oi("0x27")](t,e){const n=e.getFirstRange()[oi("0x43")](),o=oi("0x3d")==e[oi("0x1e")]?"add":oi("0x47");for(const e of n){const i=e[oi("0x31")],r=t[t.length-1];if(i.is(oi("0x2e")))r&&r[oi("0x1e")][oi("0x37")]("Container")>-1&&t[oi("0x29")](),r&&oi("0x3")==r.type?r[o]+=i[oi("0x5")]:t.push({type:oi("0x3"),add:"add"==o?i[oi("0x5")]:"",remove:oi("0x47")==o?i[oi("0x5")]:""});else if(this[oi("0x1c")].isObject(i)){const s=i;if(r&&r[oi("0x1e")][oi("0x37")](oi("0x38"))>-1&&t.pop(),oi("0x21")==e.type)continue;r&&r.type==o+oi("0x8")&&r[oi("0x3a")][oi("0x22")]==s.name?r[oi("0x24")]++:t.push({type:o+oi("0x8"),element:s,quantity:1}),n.skip((t=>!(oi("0x21")==t[oi("0x1e")]&&t[oi("0x31")]==i)))}else if(this[oi("0x1c")][oi("0x1")](i,oi("0x23"))||i.is("element","softBreak")){const n=i;if(oi("0x33")==o&&"elementStart"==e.type||oi("0x47")==o&&"elementEnd"==e[oi("0x1e")])continue;if(r&&-1==r[oi("0x1e")][oi("0x37")](oi("0x38"))){oi("0x3")==r[oi("0x1e")]&&(r[o]+="\n");continue}let s;if(s=oi("0x33")==o?n.nextSibling&&!this[oi("0x1c")][oi("0x48")](n[oi("0x45")])?n.nextSibling:null:n[oi("0x34")]&&!this[oi("0x1c")][oi("0x48")](n[oi("0x34")])?n.previousSibling:null,n.isEmpty||s&&s[oi("0x2c")]){const e=s&&s[oi("0x2c")]?s:n;r&&r.type==o+oi("0xf")&&r[oi("0x3a")].name==e[oi("0x22")]?r[oi("0x24")]++:t[oi("0x32")]({type:o+"EmptyContainer",element:e,quantity:1})}else t[oi("0x32")]({type:o+oi("0x38"),element:n})}}}_resolveDescriptionItems(t){const e=this[oi("0x13")],n=[],o=[],i=[];for(const r of t)switch(r.type){case oi("0x3"):if(r[oi("0x33")]=r.add.replace(/(\S)\u000A+(\S)/g,oi("0x1d"))[oi("0x40")](/\u000A/g,""),r[oi("0x47")]=r.remove[oi("0x40")](/(\S)\u000A+(\S)/g,oi("0x1d"))[oi("0x40")](/\u000A/g,""),""!=r[oi("0x33")]&&""!=r[oi("0x47")]){n[oi("0x32")]({type:oi("0x40"),content:Qo(e,oi("0x19"),['"'+r[oi("0x47")]+'"','"'+r.add+'"'])});continue}if(null!=r[oi("0x33")][oi("0x15")](/^ +$/)){n[oi("0x32")]({type:oi("0x3d"),content:Qo(e,oi("0x0"),Qo(e,oi("0x9"),r[oi("0x33")].length))});continue}if(null!=r[oi("0x47")][oi("0x15")](/^ +$/)){n[oi("0x32")]({type:oi("0x39"),content:Qo(e,oi("0x1a"),Qo(e,oi("0x9"),r[oi("0x47")][oi("0x12")]))});continue}if(""!=r[oi("0x33")]){n[oi("0x32")]({type:oi("0x3d"),content:Qo(e,oi("0x0"),'"'+r[oi("0x33")]+'"')});continue}n[oi("0x32")]({type:"deletion",content:Qo(e,oi("0x1a"),'"'+r[oi("0x47")]+'"')});continue;case"addEmptyContainer":case oi("0x10"):n[oi("0x32")]({type:oi("0x3d"),content:Qo(e,oi("0x0"),this[oi("0x18")](r[oi("0x3a")],r[oi("0x24")]))});continue;case"removeEmptyContainer":case"removeObject":n.push({type:"deletion",content:Qo(e,"*Remove:* %0",this.getItemLabel(r[oi("0x3a")],r[oi("0x24")]))});continue;case oi("0x11"):n[oi("0x32")]({type:oi("0x3d"),content:Qo(e,oi("0x3b"),this.getItemLabel(r[oi("0x3a")],r[oi("0x24")]))});continue;case"removeContainer":n[oi("0x32")]({type:oi("0x39"),content:Qo(e,oi("0x2b"),this.getItemLabel(r[oi("0x3a")],r[oi("0x24")]))});continue;case oi("0xb"):o[oi("0x32")](r[oi("0xd")]);continue;case"removeFormat":i[oi("0x32")](r[oi("0xd")]);continue;default:n[oi("0x32")](r)}if(o[oi("0x12")]){const t=o.map((t=>this[oi("0x16")][oi("0xa")](t)?this[oi("0x16")][oi("0x41")](t):t)).join(", ");n[oi("0x32")]({type:oi("0x6"),content:Qo(this._locale,oi("0x4"),t)})}if(i[oi("0x12")]){const t=i.map((t=>this._attributeLabels.has(t)?this._attributeLabels[oi("0x41")](t):t))[oi("0x1b")](", ");n[oi("0x32")]({type:oi("0x6"),content:Qo(this._locale,"*Remove format:* %0",t)})}return n}[oi("0x3f")](t){for(const e of this[oi("0xc")]){const n=e(t);if(n&&oi("0x1e")in n)return n}}[oi("0x2d")](t,e){const n=e.data,o=void 0===n[oi("0x49")]?oi("0x3c"):oi("0xb");t.push({type:o,key:n.key})}[oi("0x44")](t,e,n){if(this._addDescriptionItems(t,e),n&&n[oi("0x2f")]()&&!e[oi("0x2f")]().end[oi("0x1f")](n[oi("0x2f")]().start)){const n=t[t[oi("0x12")]-1],o=oi("0x3d")==e.type?oi("0x33"):oi("0x47");n&&oi("0x3")==n.type&&(n[o]+="\n")}}}const ri=["enableCommand","editor","commands","get","TrackChangesEditing","showAIAssistant"];var si,xi;si=ri,xi=267,function(t){for(;--t;)si.push(si.shift())}(++xi);const ai=function(t,e){return ri[t-=0]};class ci extends t.Plugin{afterInit(){const t=this[ai("0x4")],e=t.plugins[ai("0x0")](ai("0x1"));t[ai("0x5")][ai("0x0")](ai("0x2"))&&e[ai("0x3")]("showAIAssistant")}}const li=["format","AlignmentEditing","alignment","plugins","right","registerDescriptionCallback","FORMAT_ALIGNMENT","center","editor","TrackChangesEditing","_registerLegacyDescription","FORMAT_JUSTIFY_TEXT","has","*Format:* %0","locale","type","commandName","commandParams","formatBlock","enableDefaultIntegration","registerAttributeLabel","FORMAT_ALIGN_TO_CENTER","get","FORMAT_ALIGN_TO_LEFT","FORMAT_ALIGN_TO_RIGHT","value"];var ui,di;ui=li,di=158,function(t){for(;--t;)ui.push(ui.shift())}(++di);const gi=function(t,e){return li[t-=0]};class fi extends t.Plugin{afterInit(){const t=this[gi("0x6")],e=t[gi("0xc")];if(!t[gi("0x1")][gi("0xa")](gi("0x19")))return;const n=t[gi("0x1")].get(gi("0x7"));n[gi("0x11")](gi("0x0"),[],[gi("0x0")]),n._descriptionFactory[gi("0x12")](gi("0x0"),Qo(e,gi("0x4"))),this[gi("0x8")]()}[gi("0x8")](){const t=this[gi("0x6")],e=t[gi("0xc")];t[gi("0x1")][gi("0x14")](gi("0x7"))._descriptionFactory[gi("0x3")]((t=>{if(gi("0x10")!=t[gi("0xd")])return;const{data:n}=t;if(n&&"alignment"==n[gi("0xe")]){const t=n[gi("0xf")][0][gi("0x17")];return{type:gi("0x18"),content:Qo(e,gi("0xb"),function(t){switch(t){case"left":return Qo(e,gi("0x15"));case gi("0x2"):return Qo(e,gi("0x16"));case gi("0x5"):return Qo(e,gi("0x13"));case"justify":return Qo(e,gi("0x9"))}}(t))}}}))}}const mi=["subscript","_registerLegacyDescription","slice","get","italic","type","*Format:* %0","TrackChangesEditing","FORMAT_CODE","CodeEditing","bold","plugins","BoldEditing","forceValue","_descriptionFactory","FORMAT_STRIKETHROUGH","*Remove format:* %0","locale","FORMAT_SUBSCRIPT","FORMAT_UNDERLINE","UnderlineEditing","code","SuperscriptEditing","commandParams","FORMAT_BOLD","FORMAT_SUPERSCRIPT","FORMAT_ITALIC","SubscriptEditing","registerAttributeLabel","superscript","editor","format","commandName","underline","toLowerCase","has","strikethrough","afterInit"];var hi,pi;hi=mi,pi=313,function(t){for(;--t;)hi.push(hi.shift())}(++pi);const bi=function(t,e){return mi[t-=0]},Ei=[bi("0x3"),"ItalicEditing",bi("0xb"),bi("0x0"),"StrikethroughEditing",bi("0x12"),bi("0xd")];class _i extends t.Plugin{[bi("0x1c")](){const t=this[bi("0x15")],e=t[bi("0x2")][bi("0x20")](bi("0x24")),n=t[bi("0x8")];for(const n of Ei){if(!t[bi("0x2")][bi("0x1a")](n))continue;const o=n[bi("0x1f")](0,-7)[bi("0x19")]();e.enableDefaultIntegration(o,[o])}e[bi("0x5")][bi("0x13")](bi("0x1"),Qo(n,bi("0xf"))),e[bi("0x5")][bi("0x13")](bi("0x21"),Qo(n,bi("0x11"))),e[bi("0x5")][bi("0x13")](bi("0x18"),Qo(n,bi("0xa"))),e[bi("0x5")][bi("0x13")]("code",Qo(n,"FORMAT_CODE")),e._descriptionFactory[bi("0x13")](bi("0x1b"),Qo(n,"FORMAT_STRIKETHROUGH")),e[bi("0x5")][bi("0x13")](bi("0x1d"),Qo(n,bi("0x9"))),e[bi("0x5")].registerAttributeLabel(bi("0x14"),Qo(n,bi("0x10"))),this[bi("0x1e")]()}[bi("0x1e")](){const t=this.editor,e=t[bi("0x8")],n=t[bi("0x2")][bi("0x20")]("TrackChangesEditing");function o(t,o){n[bi("0x5")].registerDescriptionCallback((n=>{if("formatInline"!=n[bi("0x22")])return;const{data:i}=n;return i&&i[bi("0x17")]===t?i[bi("0xe")][0][bi("0x4")]?{type:bi("0x16"),content:Qo(e,bi("0x23"),o)}:{type:bi("0x16"),content:Qo(e,bi("0x7"),o)}:void 0}))}o(bi("0x1"),Qo(e,bi("0xf"))),o(bi("0x21"),Qo(e,"FORMAT_ITALIC")),o(bi("0x18"),Qo(e,bi("0xa"))),o(bi("0xc"),Qo(e,bi("0x25"))),o(bi("0x1b"),Qo(e,bi("0x6"))),o(bi("0x1d"),Qo(e,bi("0x9"))),o(bi("0x14"),Qo(e,bi("0x10")))}}const Ti=["markBlockFormat","ELEMENT_BLOCK_QUOTE","plugins","$root","enableCommand","change","parent","afterInit","from","filter","editor","registerDescriptionCallback","schema","forceValue","document","_descriptionFactory","locale","BlockQuoteEditing","TrackChangesEditing","has","*Remove format:* %0","model","name","get","commands","*Set format:* %0","getSelectedBlocks","blockQuote","checkChild","format","commandParams"];var yi,Ci;yi=Ti,Ci=235,function(t){for(;--t;)yi.push(yi.shift())}(++Ci);const Ai=function(t,e){return Ti[t-=0]};class ki extends t.Plugin{[Ai("0x14")](){const t=this[Ai("0x17")],e=t[Ai("0x1d")];if(!t[Ai("0xf")][Ai("0x1")](Ai("0x1e")))return;const n=t.plugins[Ai("0x5")](Ai("0x0")),o=this[Ai("0x17")][Ai("0x6")][Ai("0x5")](Ai("0x9"));n[Ai("0x11")](Ai("0x9"),((e,i={})=>{const r=this[Ai("0x17")][Ai("0x3")][Ai("0x1b")].selection,s=i&&void 0!==i[Ai("0x1a")]?i[Ai("0x1a")]:!o.value;let x=[];if(s){const e=Array.from(r[Ai("0x8")]()).filter((t=>Ii(t)||function(t,e){const n=e[Ai("0xa")](t.parent,Ai("0x9")),o=e[Ai("0xa")]([Ai("0x10"),"blockQuote"],t);return n&&o}(t,this[Ai("0x17")][Ai("0x3")][Ai("0x19")])));x=S(e,t[Ai("0x3")])}else{const e=Array[Ai("0x15")](r[Ai("0x8")]())[Ai("0x16")]((t=>Ii(t)));x=S(e,t[Ai("0x3")])}t[Ai("0x3")][Ai("0x12")]((()=>{for(const t of x)n[Ai("0xd")](t,{commandName:Ai("0x9"),commandParams:[{forceValue:s}]})}))})),n[Ai("0x1c")][Ai("0x18")]((t=>{const{data:n}=t;if(n&&Ai("0x9")==n.commandName){const t=Qo(e,Ai("0xe"));return n[Ai("0xc")][0].forceValue?{type:Ai("0xb"),content:Qo(e,Ai("0x7"),t)}:{type:"format",content:Qo(e,Ai("0x2"),t)}}}))}}function Ii(t){return Ai("0x9")==t[Ai("0x13")][Ai("0x4")]}const Ri=["ckbox","enableCommand","afterInit","TrackChangesEditing"];var Si,Ni;Si=Ri,Ni=218,function(t){for(;--t;)Si.push(Si.shift())}(++Ni);const vi=function(t,e){return Ri[t-=0]};class Li extends t.Plugin{[vi("0x0")](){const t=this.editor;t.commands.get(vi("0x2"))&&t.plugins.get(vi("0x1"))[vi("0x3")](vi("0x2"))}}const Mi=["has","format","commands","commandParams","document","language","from","find","CodeBlock","blockName","type","formatBlock","*Set format:* %0","enableCommand","commandName","model","name","getSelectedBlocks","codeBlock","plugins","change","filter","forceValue","languages","rootElement","registerElementLabel","_descriptionFactory","*Remove format:* %0","locale","indentCodeBlock","ELEMENT_CODE_BLOCK","registerDescriptionCallback","get","label","config"];var Oi,wi;Oi=Mi,wi=365,function(t){for(;--t;)Oi.push(Oi.shift())}(++wi);const Fi=function(t,e){return Mi[t-=0]};class Di extends t.Plugin{afterInit(){const t=this.editor;if(!t[Fi("0x4")][Fi("0x14")](Fi("0x1c")))return;const e=t[Fi("0x4")].get("TrackChangesEditing"),n=t[Fi("0xd")],o=t[Fi("0x13")][Fi("0x11")](Fi("0x3"))[Fi("0x8")],i=t[Fi("0x16")][Fi("0x11")](Fi("0x3"));e[Fi("0x21")](Fi("0xe")),e[Fi("0x21")]("outdentCodeBlock"),e.enableCommand(Fi("0x3"),((n,r={})=>{const s=t[Fi("0x0")],x=t[Fi("0x0")][Fi("0x18")].selection,a=r&&void 0!==r[Fi("0x7")]?r.forceValue:!i.value;let c;r[Fi("0x19")]||(r[Fi("0x19")]=o[0].language),c=a?Array[Fi("0x1a")](x[Fi("0x2")]())[Fi("0x6")]((t=>{return Bi(t)||(e=t,n=s.schema,!e.is(Fi("0x9"))&&!n.isLimit(e)&&n.checkChild(e.parent,Fi("0x3")));var e,n})):Array[Fi("0x1a")](x[Fi("0x2")]())[Fi("0x6")]((t=>Bi(t)));const l=S(c,s);s[Fi("0x5")]((()=>{for(const t of l)e.markBlockFormat(t,{commandName:Fi("0x3"),commandParams:[{...r,forceValue:a}],formatGroupId:Fi("0x1d")})}))})),e[Fi("0xb")][Fi("0xa")]("codeBlock",(t=>Qo(n,Fi("0xf"),t))),e._descriptionFactory[Fi("0x10")]((t=>{if(Fi("0x1f")!=t[Fi("0x1e")])return;const e=n.t,{data:i}=t;if(!i||Fi("0x3")!=i[Fi("0x22")])return;const r=i[Fi("0x17")][0].language,s=e(o[Fi("0x1b")]((t=>t[Fi("0x19")]===r))[Fi("0x12")]).toLowerCase();return i[Fi("0x17")][0][Fi("0x7")]?{type:Fi("0x15"),content:Qo(n,Fi("0x20"),Qo(n,Fi("0xf"),1)+" ("+s+")")}:{type:Fi("0x15"),content:Qo(n,Fi("0xc"),Qo(n,Fi("0xf"),1))}}))}}function Bi(t){return Fi("0x3")==t[Fi("0x1")]}const Pi=["CommentsEditing","TrackChangesEditing","addCommentThread","editor","plugins","has","get"];var Ui,ji;Ui=Pi,ji=368,function(t){for(;--t;)Ui.push(Ui.shift())}(++ji);const Gi=function(t,e){return Pi[t-=0]};class Hi extends t.Plugin{afterInit(){const t=this[Gi("0x6")];t[Gi("0x0")][Gi("0x1")](Gi("0x3"))&&t[Gi("0x0")][Gi("0x2")](Gi("0x4")).enableCommand(Gi("0x5"))}}var Vi=n(181);const zi=["mapper","writer","includes","consumable","toViewPosition","start","model","ck-suggestion-marker-","toViewElement","push","getCustomProperty","getAttribute","nextSibling","isLimit","markerName","addClass","addHighlight","getWalker","TrackChangesEditing","plugins","isAtEnd","listIndent","getItems","element","isContent","previousPosition","markerRange","listItem","bindElementToMarker","elementEnd","hasAttribute","activeMarkers","isBlock","parent"];var Wi,Ki;Wi=zi,Ki=139,function(t){for(;--t;)Wi.push(Wi.shift())}(++Ki);const qi=function(t,e){return zi[t-=0]};function $i(t,e,n){const o=[];for(const i of e[qi("0x13")]())i[qi("0x1b")](t)&&o[qi("0x6")](n.createRangeOn(i));return o}function Xi(t,e,{showActiveMarker:n=!0}={}){const o=t[qi("0x10")].get(qi("0xf"));return(i,r,s)=>{if(!s[qi("0x0")].test(r.markerRange,i.name))return;const x=r[qi("0x17")][qi("0xe")](),a=r[qi("0x17")][qi("0x2")],c=t[qi("0x3")].schema;let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t.item;d=d||c[qi("0x15")](e);const n=s[qi("0x1f")][qi("0x5")](e);if(n&&n[qi("0x7")](qi("0xd")))return;qi("0x1a")==t.type&&c[qi("0x1d")](e)&&!c[qi("0xa")](e)&&(e.nextSibling||a[qi("0x11")]?l&&l[qi("0x1e")]==e||(l=e,f(t[qi("0x16")]),g=!0):u=u||t.previousPosition)}function f(t){const i=s.writer.createUIElement("span",{class:qi("0x4")+e}),x=s[qi("0x1f")][qi("0x1")](t);n&&o[qi("0x1c")][qi("0x21")](r[qi("0xb")])&&s[qi("0x20")][qi("0xc")]("ck-suggestion-marker--active",i),s[qi("0x20")].insert(x,i),s[qi("0x1f")][qi("0x19")](i,r[qi("0xb")])}d||g||!u||f(u)}}const Yi=["delete","uiElement","getFirstRange","isCollapsed","lock","merge","rootName","createRange","get","buffer","options","addMarker:suggestion:deletion","markerName","modifySelection","end","forward","enableCommand","$graveyard","createSelection","deleteForward","plugins","editor","showSuggestionHighlights","init","batch","start","root","unlock","detach","model","commands","setSelection","high","data","markerNameToElements","downcastDispatcher","writer","requires","unbindElementFromMarkerName","mapper","enqueueChange"];var Zi,Ji;Zi=Yi,Ji=130,function(t){for(;--t;)Zi.push(Zi.shift())}(++Ji);const Qi=function(t,e){return Yi[t-=0]};class tr extends t.Plugin{static get[Qi("0x1e")](){return[Vi.Delete]}[Qi("0x10")](){const t=this[Qi("0xe")],e=t[Qi("0xd")][Qi("0x1")]("TrackChangesEditing");e[Qi("0x9")](Qi("0x22"));const n=t[Qi("0x17")][Qi("0x1")]("deleteForward");e[Qi("0x9")](Qi("0xc"),((e,o={})=>{const i=t[Qi("0x16")][Qi("0xb")](t[Qi("0x16")].document.selection);i[Qi("0x25")]&&t[Qi("0x16")][Qi("0x6")](i,{direction:Qi("0x8"),unit:o.unit});const r=i[Qi("0x24")](),x=s.LiveRange.fromRange(r);let a;e(o),a=Qi("0xa")==x[Qi("0x13")][Qi("0x28")]?t[Qi("0x16")].createRange(r[Qi("0x12")]):t[Qi("0x16")].createRange(x.start,x[Qi("0x7")]),x[Qi("0x15")](),t[Qi("0x16")][Qi("0x21")](n[Qi("0x2")][Qi("0x11")],(t=>{n.buffer[Qi("0x26")](),t[Qi("0x18")](t[Qi("0x0")](a[Qi("0x7")])),n[Qi("0x2")][Qi("0x14")]()}))})),t.editing[Qi("0x1c")].on(Qi("0x4"),Xi(t,Qi("0x27")),{priority:Qi("0x19")}),t[Qi("0x1a")][Qi("0x1c")].on(Qi("0x4"),((e,n,o)=>{o[Qi("0x3")][Qi("0xf")]&&Xi(t,"merge",{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:Qi("0x19")}),t.editing.downcastDispatcher.on("removeMarker:suggestion:deletion",((t,e,n)=>{const o=n.mapper[Qi("0x1b")](e[Qi("0x5")]);if(o)for(const t of o)t.is(Qi("0x23"))&&(n[Qi("0x20")][Qi("0x1f")](t,e[Qi("0x5")]),n[Qi("0x1d")].remove(t))}),{priority:"high"})}}const er=["next","selection","mergeListItemBackward","getRanges","*Format:* remove from %0","forceValue","after","map","bulletedList","listItemId","deletion","multipleBlocks","ELEMENT_NUMBERED_LIST","formatBlock","getAttribute","accept","setSelection","hasAttribute","*Change to:* %0","*Outdent:* %0","execute","createPositionAt","paragraph","splitListItemAfter","commands","type","markBlockFormat","list.multiBlock","*Merge:* %0","plugins","get","*Indent:* %0","outdentList","enableCommand","end","numberedList","*Format:* insert into %0","schema","change","start","getSelectedBlocks","indentList","value","commandParams","formatInline","listType","_descriptionFactory","push","format","previousSibling","parent","findIndex","nodeAfter","length","nextSibling","locale","DocumentListUtils","ELEMENT_","containsItem","isObject","refresh","config","add","document","registerElementLabel","TrackChangesEditing","createRange","before","from","registerDescriptionCallback","commandName","afterInit","has","mergeListItemForward","editor","model","getFirstRange","detach","splitListItemBefore","ELEMENT_LIST_ITEM","listIndent","ELEMENT_BULLETED_LIST","documentList"];var nr,or;nr=er,or=471,function(t){for(;--t;)nr.push(nr.shift())}(++or);const ir=function(t,e){return er[t-=0]};class rr extends t.Plugin{[ir("0xf")](){const t=this[ir("0x12")];if(!t[ir("0x38")][ir("0x10")]("DocumentListEditing"))return;const e=t[ir("0x52")],n=t[ir("0x38")][ir("0x39")](ir("0x9")),o=t[ir("0x38")][ir("0x39")](ir("0x0"));function i(e){return()=>{const i=t[ir("0x33")][ir("0x39")](e);if(i[ir("0x45")]&&!t[ir("0x5")][ir("0x39")](ir("0x36")))return void t.execute(ir("0x31"),{});let r=Array[ir("0xc")](t[ir("0x13")][ir("0x7")][ir("0x1c")][ir("0x43")]());if(a(e)){r=o.expandListBlocksToCompleteList(r);const t=[];for(const e of r)o.isFirstBlockOfListItem(e)&&t[ir("0x4a")](e);r=t}t[ir("0x13")][ir("0x41")]((()=>{n.markMultiRangeBlockFormat(r,{commandName:e,commandParams:[{forceValue:!i[ir("0x45")]}],formatGroupId:"listType"},[],ir("0x1a"))}))}}function r(e){return()=>{const o=function(t){let e=Array[ir("0xc")](t);const n=e[ir("0x4e")]((t=>!t[ir("0x2c")](ir("0x24"))));return n>-1&&(e=e.slice(0,n)),e}(t[ir("0x13")][ir("0x7")][ir("0x1c")][ir("0x43")]()),i=o[o[ir("0x50")]-1],r=t[ir("0x13")][ir("0x40")][ir("0x3")](i)?ir("0x21"):ir("0x3d"),s=t[ir("0x13")][ir("0xa")](t[ir("0x13")][ir("0x30")](o[0],ir("0xb")),t.model[ir("0x30")](i,r));t[ir("0x13")][ir("0x41")]((()=>{n.markBlockFormat(s,{commandName:e,commandParams:[],formatGroupId:ir("0x48")},function(t){const e=new Set;for(const n of t){let t=n.nextSibling;for(;t&&t[ir("0x29")](ir("0x18"))>n[ir("0x29")](ir("0x18"));)e[ir("0x6")](t),t=t[ir("0x51")]}return Array[ir("0xc")](e)}(o))}))}}function x(e){return()=>{const o=t[ir("0x13")][ir("0x7")].selection[ir("0x43")]()[ir("0x1b")]()[ir("0x45")],i=t[ir("0x13")].createPositionAt(o,ir("0xb")),r=t[ir("0x13")][ir("0x30")](o,0),s=t[ir("0x13")][ir("0xa")](i,r);t[ir("0x13")].change((()=>{n[ir("0x35")](s,{commandName:e,commandParams:[],formatGroupId:ir("0x48")})}))}}function a(e){const n=t[ir("0x33")][ir("0x39")](ir("0x23"))[ir("0x45")],o=t[ir("0x33")][ir("0x39")](ir("0x3e"))[ir("0x45")];return ir("0x3e")===e?n:o}n[ir("0x3c")](ir("0x3e"),i(ir("0x3e"))),n[ir("0x3c")](ir("0x23"),i("bulletedList")),n.enableCommand(ir("0x44"),r(ir("0x44"))),n[ir("0x3c")]("outdentList",r(ir("0x3b"))),n[ir("0x3c")](ir("0x32"),x(ir("0x32"))),n[ir("0x3c")](ir("0x16"),x(ir("0x16"))),n[ir("0x49")][ir("0x8")]((function(e){const n=!t.model[ir("0x40")][ir("0x3")](e),o=e[ir("0x4c")],i=e[ir("0x51")],r=e[ir("0x29")](ir("0x24")),s=!o||o[ir("0x29")](ir("0x24"))!==r,x=!i||i[ir("0x29")](ir("0x24"))!==r;return n&&Boolean(r)&&s&&x}),(t=>Qo(e,ir("0x17"),t))),n[ir("0x49")][ir("0xd")]((function(n){if("formatBlock"!=n[ir("0x34")]&&ir("0x47")!=n[ir("0x34")])return;const{data:o}=n;if(!o)return;let i,r,s,x;switch(o[ir("0xe")]){case ir("0x23"):s=o[ir("0x46")][0].forceValue,x=a(o[ir("0xe")]),i=ir(s?"0x3f":"0x1f"),!x&&t[ir("0x5")][ir("0x39")](ir("0x36"))||(i=ir("0x2d")),r={type:"format",content:Qo(e,i,Qo(e,ir("0x19")))};break;case ir("0x3e"):s=o[ir("0x46")][0][ir("0x20")],x=a(o.commandName),i=ir(s?"0x3f":"0x1f"),!x&&t.config[ir("0x39")](ir("0x36"))||(i=ir("0x2d")),r={type:ir("0x4b"),content:Qo(e,i,Qo(e,ir("0x27")))};break;case"indentList":i=ir("0x3a"),r={type:ir("0x4b"),content:Qo(e,i,Qo(e,ir("0x17")))};break;case ir("0x3b"):i=function(t){const e=t[ir("0x14")]();let n=e.start[ir("0x4f")];for(;n&&e[ir("0x2")](n);){if(n[ir("0x29")](ir("0x18"))>0)return!1;n=n.nextSibling}return!0}(n)?Qo(e,ir("0x1f"),Qo(e,function(t){const e=t.getFirstRange()[ir("0x42")].nodeAfter;return ir("0x1")+e[ir("0x29")]("listType").toUpperCase()+"_LIST"}(n))):Qo(e,ir("0x2e"),Qo(e,ir("0x17"))),r={type:ir("0x4b"),content:i};break;case ir("0x1d"):case ir("0x11"):!1===o[ir("0x26")]&&(i=ir("0x37"),r={type:ir("0x25"),content:Qo(e,i,Qo(e,ir("0x17")))})}return r})),n._suggestionFactory.registerCustomCallback(ir("0x28"),"documentList",ir("0x2a"),(function(e,n){const o=[];for(let n of e)n[ir("0x42")].nodeAfter===n[ir("0x3d")][ir("0x4d")]&&(n=t[ir("0x13")][ir("0xa")](t[ir("0x13")][ir("0x30")](n[ir("0x42")][ir("0x4f")],0))),o[ir("0x4a")](n);t.model[ir("0x41")]((e=>{const i=t[ir("0x13")][ir("0x7")][ir("0x1c")],r=Array[ir("0xc")](i[ir("0x1e")]())[ir("0x22")]((t=>s.LiveRange.fromRange(t)));e[ir("0x2b")](o),t.commands[ir("0x39")](n[ir("0xe")])[ir("0x4")](),n[ir("0x46")][ir("0x4a")]({forceDefaultExecution:!0}),t[ir("0x2f")](n.commandName,...n[ir("0x46")]),e[ir("0x2b")](r);for(const t of r)t[ir("0x15")]()}))}))}}const sr=["commandParams","_getTranslationKeyForListStyle","model","*Format:* set order to regular","editor","filter","change","config","getAttribute","*Format:* set start index to %0","plugins","getListTypeFromListStyleType","_getSuggestionBlocks","DocumentListPropertiesEditing","push","isListItemBlock","listStart","toUpperCase","DocumentListPropertiesUtils","formatInline","*Format:* set order to reversed","document","getSelectedBlocks","startIndex","type","selection","listType","length","enableCommand","markMultiRangeBlockFormat","has","TrackChangesEditing","handleListReversedCommand","bind","listStyle","from","styles","get","*Change to:* %0","handleDescriptions","numbered","listReversed","handleListStyleCommand","commandName","DocumentListUtils","format","registerDescriptionCallback","handleListStartCommand","list.properties","expandListBlocksToCompleteList","_getSuggestionBlocksForListStyle","ELEMENT_","afterInit","reversed"];var xr,ar;xr=sr,ar=103,function(t){for(;--t;)xr.push(xr.shift())}(++ar);const cr=function(t,e){return sr[t-=0]};class lr extends t.Plugin{[cr("0x3")](){if(!this[cr("0x9")][cr("0xf")][cr("0x23")](cr("0x12")))return;const t=this[cr("0x9")][cr("0xc")].get(cr("0x35")),e=this[cr("0x9")].plugins[cr("0x2a")]("TrackChangesEditing");t[cr("0x29")]&&e[cr("0x21")]("listStyle",this[cr("0x2f")][cr("0x26")](this)),t[cr("0x4")]&&e.enableCommand(cr("0x2e"),this[cr("0x25")][cr("0x26")](this)),t[cr("0x1c")]&&e[cr("0x21")](cr("0x15"),this[cr("0x34")][cr("0x26")](this)),e._descriptionFactory[cr("0x33")](this.handleDescriptions[cr("0x26")](this))}[cr("0x2f")](t,e={}){const n=this[cr("0x9")][cr("0xf")][cr("0x2a")](cr("0x24")),o=this[cr("0x1")]();this[cr("0x9")][cr("0x7")].change((()=>{n.markMultiRangeBlockFormat(o,{commandName:cr("0x27"),commandParams:[{type:e[cr("0x1d")]}],formatGroupId:cr("0x27")})}))}handleListReversedCommand(t,e={}){const n=this[cr("0x9")].plugins[cr("0x2a")](cr("0x24")),o=this[cr("0x9")][cr("0xf")][cr("0x2a")](cr("0x31")),i=this[cr("0x11")]((t=>o[cr("0x14")](t)&&cr("0x2d")===t.getAttribute("listType")));null!==i&&this[cr("0x9")][cr("0x7")][cr("0xb")]((()=>{n[cr("0x22")](i,{commandName:cr("0x2e"),commandParams:[{reversed:e[cr("0x4")]}],formatGroupId:cr("0x2e")})}))}[cr("0x34")](t,e={}){const n=this.editor[cr("0xf")][cr("0x2a")](cr("0x24")),o=this.editor[cr("0xf")][cr("0x2a")](cr("0x31")),i=this[cr("0x11")]((t=>o[cr("0x14")](t)&&cr("0x2d")===t[cr("0xd")](cr("0x1f"))));null!==i&&this[cr("0x9")][cr("0x7")].change((()=>{n.markMultiRangeBlockFormat(i,{commandName:cr("0x15"),commandParams:[{startIndex:e[cr("0x1c")]}],formatGroupId:cr("0x15")})}))}[cr("0x2c")](t){if("formatBlock"!=t[cr("0x1d")]&&cr("0x18")!=t[cr("0x1d")])return;const e=this[cr("0x9")].locale,{data:n}=t;if(!n)return;let o,i;switch(n[cr("0x30")]){case"listStyle":o=cr("0x2b"),i={type:cr("0x32"),content:Qo(e,o,Qo(e,this[cr("0x6")](n[cr("0x5")][0][cr("0x1d")])))};break;case"listReversed":o=n[cr("0x5")][0][cr("0x4")]?cr("0x19"):cr("0x8"),i={type:cr("0x32"),content:Qo(e,o)};break;case cr("0x15"):o=cr("0xe"),i={type:cr("0x32"),content:Qo(e,o,n[cr("0x5")][0][cr("0x1c")])}}return i}_getSuggestionBlocksForListStyle(){const t=this[cr("0x9")].plugins[cr("0x2a")](cr("0x31"));let e=Array[cr("0x28")](this[cr("0x9")][cr("0x7")][cr("0x1a")][cr("0x1e")][cr("0x1b")]());return e[cr("0x13")](...t[cr("0x0")](e)),e=[...new Set(e)],e}[cr("0x11")](t){const e=this.editor[cr("0xf")][cr("0x2a")](cr("0x31"));let n=Array[cr("0x28")](this[cr("0x9")][cr("0x7")][cr("0x1a")][cr("0x1e")][cr("0x1b")]())[cr("0xa")](t);if(!n[cr("0x20")])return null;n=e[cr("0x0")](n);const o=[];for(const t of n)e.isFirstBlockOfListItem(t)&&o[cr("0x13")](t);return o}[cr("0x6")](t){return cr("0x2")+this.editor.plugins.get(cr("0x17"))[cr("0x10")](t)[cr("0x16")]()+"_LIST_"+t.toUpperCase().replace(/-/g,"_")}}var ur=n(331);const dr=["hasClass","setSelection","downcastDispatcher","plugins","fromRange","enterBlock","editor","markerName","end","TrackChangesEditing","enter","options","createPositionAt","enableCommand","mapper","afterExecute","unbindElementFromMarkerName","getFirstRange","get","markerNameToElements","fire","nextSibling","change","markInsertion","createRange","document","detach","split","writer","bind","ck-suggestion-marker-split","addMarker:suggestion:insertion","removeMarker:suggestion:insertion","requires","high","model","data","commands","getFirstPosition","init","editing"];var gr,fr;gr=dr,fr=469,function(t){for(;--t;)gr.push(gr.shift())}(++fr);const mr=function(t,e){return dr[t-=0]};class hr extends t.Plugin{static get[mr("0xf")](){return[ur.Enter]}[mr("0x15")](){const t=this[mr("0x1d")],e=t[mr("0x1a")].get(mr("0x20")),n=t[mr("0x13")][mr("0x0")](mr("0x21"));e[mr("0x24")](mr("0x21"),(()=>{t.model[mr("0x4")]((o=>{const i=t[mr("0x11")][mr("0x7")].selection,r=i[mr("0x14")](),x=s.LiveRange[mr("0x1b")](i[mr("0x28")]());if(n[mr("0x1c")](o)){const n=t[mr("0x11")][mr("0x23")](r.parent[mr("0x3")],0),i=o[mr("0x6")](r,n);e[mr("0x5")](i)}else o[mr("0x18")](o[mr("0x6")](x[mr("0x1f")]));x[mr("0x8")](),n[mr("0x2")](mr("0x26"),{writer:o})}))})),t[mr("0x16")][mr("0x19")].on("addMarker:suggestion:insertion",Xi(t,mr("0x9")),{priority:"high"}),t.editing[mr("0x19")].on(mr("0xe"),((t,e,n)=>{const o=n[mr("0x25")][mr("0x1")](e[mr("0x1e")]);if(o)for(const t of o)t[mr("0x17")](mr("0xc"))&&(n[mr("0x25")][mr("0x27")](t,e[mr("0x1e")]),n[mr("0xa")].remove(t))}),{priority:mr("0x10")}),t[mr("0x12")][mr("0x19")].on(mr("0xd"),((e,n,o)=>{o[mr("0x22")].showSuggestionHighlights&&Xi(t,mr("0x9"),{showActiveMarker:!1})[mr("0xb")](this)(e,n,o)}),{priority:mr("0x10")})}}const pr=["find","FindAndReplaceUtils","string","getIntersection","afterInit","markers","get","has","item","_isInDeletionRange","model","plugins","end","getMarkersGroup","TrackChangesEditing","filter","bind","findByTextCallback","handleFindCommand","editor","enableCommand","replaceAll"];var br,Er;br=pr,Er=405,function(t){for(;--t;)br.push(br.shift())}(++Er);const _r=function(t,e){return pr[t-=0]};class Tr extends t.Plugin{[_r("0x11")](){if(!this.editor[_r("0x2")][_r("0x14")]("FindAndReplaceEditing"))return;const t=this[_r("0xa")][_r("0x2")][_r("0x13")](_r("0x5"));t[_r("0xb")](_r("0xd"),this.handleFindCommand[_r("0x7")](this)),t[_r("0xb")]("findNext"),t[_r("0xb")]("findPrevious"),t[_r("0xb")]("replace"),t.enableCommand(_r("0xc"))}[_r("0x9")](t,e,n={}){const o=this[_r("0xa")].plugins.get(_r("0xe"));if(void 0!==n)return t((t=>(_r("0xf")==typeof e?o[_r("0x8")](e,n):e)(t)[_r("0x6")]((e=>!1===this[_r("0x0")](e,t[_r("0x15")])))),n)}[_r("0x0")](t,e){const n=this[_r("0xa")][_r("0x1")].createRange(this.editor[_r("0x1")].createPositionAt(e,t.start),this[_r("0xa")].model.createPositionAt(e,t[_r("0x3")]));for(const t of this[_r("0xa")].model[_r("0x12")][_r("0x4")]("suggestion:deletion"))if(null!==n[_r("0x10")](t.getRange()))return!0;return!1}}const yr=["commandName","label","get","TrackChangesEditing","FORMAT_FONT_COLOR","value","config","trim","_registerLegacyDescription","fontColor","title","editor","plugins","model","registerAttributeLabel","registerDescriptionCallback","_descriptionFactory","toLowerCase","FORMAT_FONT_FAMILY","fontFamily","*Set font size:* %0","format","find","FontColorEditing","FontBackgroundColorEditing","*Reset font size*","normalizeSizeOptions","*Set font color:* %0","fontBackgroundColor.colors","fontBackgroundColor","type","FontSize","FORMAT_FONT_SIZE","locale","fontSize.options","*Reset font color*","has","commandParams","*Set font family:* %0","fontSize"];var Cr,Ar;Cr=yr,Ar=401,function(t){for(;--t;)Cr.push(Cr.shift())}(++Ar);const kr=function(t,e){return yr[t-=0]},Ir=[{pluginName:"FontSizeEditing",commandName:kr("0x26")},{pluginName:"FontFamilyEditing",commandName:kr("0x12")},{pluginName:kr("0x16"),commandName:kr("0x8")},{pluginName:kr("0x17"),commandName:"fontBackgroundColor"}];class Rr extends t.Plugin{afterInit(){const t=this[kr("0xa")][kr("0x20")],e=this[kr("0xa")].plugins[kr("0x1")](kr("0x2"));for(const{pluginName:t,commandName:n}of Ir)this.editor[kr("0xb")][kr("0x23")](t)&&e.enableDefaultIntegration(n,[n]);t.t,e[kr("0xf")][kr("0xd")]("fontSize",Qo(t,kr("0x1f"))),e._descriptionFactory[kr("0xd")]("fontFamily",Qo(t,kr("0x11"))),e[kr("0xf")].registerAttributeLabel(kr("0x8"),Qo(t,kr("0x3"))),e[kr("0xf")][kr("0xd")](kr("0x1c"),Qo(t,"FORMAT_FONT_BACKGROUND")),this[kr("0x7")]()}[kr("0x7")](){const t=this[kr("0xa")],e=t[kr("0x20")];t.plugins[kr("0x1")](kr("0x2"))[kr("0xf")][kr("0xe")]((t=>{const n=e.t;if("formatInline"!=t[kr("0x1d")])return;const{data:o}=t;if(null!=o){if("fontSize"==o[kr("0x27")]){const t=o[kr("0x24")][0][kr("0x4")];if(t){const o=n(this[kr("0xa")].plugins[kr("0x1")](kr("0x1e"))[kr("0x19")](this[kr("0xa")][kr("0x5")][kr("0x1")](kr("0x21")))[kr("0x15")]((e=>e.model==t))[kr("0x9")])[kr("0x10")]();return{type:kr("0x14"),content:Qo(e,kr("0x13"),o)}}return{type:kr("0x14"),content:Qo(e,kr("0x18"))}}if(kr("0x12")==o[kr("0x27")]){const t=o[kr("0x24")][0][kr("0x4")];return t?{type:kr("0x14"),content:Qo(e,kr("0x25"),t)}:{type:"format",content:Qo(e,"*Reset font family*")}}if(kr("0x8")==o.commandName){const t=o[kr("0x24")][0][kr("0x4")];if(t){const o=(0,i.normalizeColorOptions)(this[kr("0xa")][kr("0x5")][kr("0x1")]("fontColor.colors"))[kr("0x15")]((e=>e[kr("0xc")]==t));let r=t,s="";return o&&(r=o[kr("0x0")],s=n(r)[kr("0x10")]()),{type:kr("0x14"),content:Qo(e,kr("0x1a"),s).trim(),color:{value:t,title:s||r}}}return{type:kr("0x14"),content:Qo(e,kr("0x22"))}}if(kr("0x1c")==o.commandName){const t=o[kr("0x24")][0][kr("0x4")];if(t){const o=(0,i.normalizeColorOptions)(this.editor[kr("0x5")][kr("0x1")](kr("0x1b"))).find((e=>e[kr("0xc")]==t));let r=t,s="";return o&&(r=o[kr("0x0")],s=n(r)[kr("0x10")]()),{type:kr("0x14"),content:Qo(e,"*Set font background color:* %0",s)[kr("0x6")](),color:{value:t,title:s||r}}}return{type:kr("0x14"),content:Qo(e,"*Reset font background color*")}}}}))}}const Sr=["enableCommand","formatBlock","plugins","fontSize.options","pasteFormat","fontColor.colors","toLowerCase","_descriptionFactory","boolean","length","*Set format to:* %0","join","copyFormat","find","*Remove all formatting*","TrackChangesEditing","config","toUpperCase","enableDefaultIntegration","afterInit","charAt","format","_registerLegacyDescription","push","editor","type","registerDescriptionCallback","split","title","get","locale","commandParams"];var Nr,vr;Nr=Sr,vr=135,function(t){for(;--t;)Nr.push(Nr.shift())}(++vr);const Lr=function(t,e){return Sr[t-=0]};class Mr extends t.Plugin{[Lr("0xc")](){const t=this[Lr("0x11")],e=t[Lr("0x1b")].get(Lr("0x8")),n=t.commands[Lr("0x16")](Lr("0x5")),o=t.commands[Lr("0x16")]("pasteFormat");n&&o&&(e[Lr("0xb")](Lr("0x1d")),e[Lr("0x19")](Lr("0x5")),this[Lr("0xf")]())}[Lr("0xf")](){const t=this[Lr("0x11")],e=t[Lr("0x17")];t.plugins[Lr("0x16")](Lr("0x8"))[Lr("0x0")][Lr("0x13")]((n=>{if(Lr("0x1a")!=n[Lr("0x12")]&&"formatInline"!=n[Lr("0x12")])return;const{data:o}=n;if(o&&Lr("0x1d")===o.commandName){const n=[],i=o[Lr("0x18")][0];for(const[e,o]of Object.entries(i))n[Lr("0x10")](Or(t,e,o));return n[Lr("0x2")]?{type:"format",content:Qo(e,Lr("0x3"),n[Lr("0x4")](", "))}:{type:Lr("0xe"),content:Qo(e,Lr("0x7"))}}}))}}function Or(t,e,n){const o=t[Lr("0x17")].t,r=e[Lr("0x14")](/(?=[A-Z])/)[Lr("0x4")](" "),s=o(r[Lr("0xd")](0)[Lr("0xa")]()+r.slice(1))[Lr("0x1f")]();if(Lr("0x1")==typeof n)return s;if("fontColor"===e||"fontBackgroundColor"===e){const e=(0,i.normalizeColorOptions)(t[Lr("0x9")][Lr("0x16")](Lr("0x1e")))[Lr("0x6")]((t=>t.model==n));return s+" ("+(e?o(e.label)[Lr("0x1f")]():n)+")"}if("fontSize"===e&&isNaN(parseFloat(n))){const e=t.plugins.get("FontSize").normalizeSizeOptions(t[Lr("0x9")][Lr("0x16")](Lr("0x1c")))[Lr("0x6")]((t=>t.model==n));return s+" ("+(e?o(e[Lr("0x15")])[Lr("0x1f")]():n)+")"}return s+" ("+n+")"}const wr=["locale","match","ELEMENT_HEADING_CUSTOM","*Change to:* %0","HeadingEditing","registerElementLabel","commandName","afterInit","_getHeadingLevel","TrackChangesEditing","heading","view","_registerLegacyDescription","has","enableDefaultIntegration","format","plugins","model","editor","registerDescriptionCallback","value","paragraph","_headingOptions","title","ELEMENT_HEADING","find","get","name"];var Fr,Dr;Fr=wr,Dr=180,function(t){for(;--t;)Fr.push(Fr.shift())}(++Dr);const Br=function(t,e){return wr[t-=0]};class Pr extends t.Plugin{[Br("0x17")](){const t=this[Br("0x6")];if(!t[Br("0x4")][Br("0x1")](Br("0x14")))return;const e=t[Br("0x10")];this._headingOptions=t.config[Br("0xe")]("heading.options");const n=t[Br("0x4")][Br("0xe")](Br("0x19"));n[Br("0x2")](Br("0x1a"));for(const t of this[Br("0xa")])Br("0x9")!=t[Br("0x5")]&&n._descriptionFactory[Br("0x15")](t[Br("0x5")],(n=>{const o=this[Br("0x18")](t[Br("0x5")]);return null!==o?(s=n,x=o,Qo(e,Br("0xc"),[s,x])):(i=n,r=t[Br("0xb")],Qo(e,Br("0x12"),[i,r]));var i,r,s,x}));this[Br("0x0")]()}[Br("0x0")](){const t=this[Br("0x6")],e=t[Br("0x10")];t[Br("0x4")].get(Br("0x19"))._descriptionFactory[Br("0x7")]((t=>{if("formatBlock"!=t.type)return;const{data:n}=t;if(n&&Br("0x1a")==n[Br("0x16")]){const t=n.commandParams[0][Br("0x8")],s=this[Br("0x18")](t);if(null!==s)return{type:Br("0x3"),content:Qo(e,Br("0x13"),(1,r=s,Qo(e,Br("0xc"),[1,r])))};const x=this[Br("0xa")][Br("0xd")]((e=>e.model===t))[Br("0xb")];return{type:Br("0x3"),content:Qo(e,Br("0x13"),(o=1,i=x,Qo(e,Br("0x12"),[o,i])))}}var o,i,r}))}_getHeadingLevel(t){var e,n;const o=t.match(/^heading(\d+)/);if(o)return o[1];const i=null===(e=this[Br("0xa")])||void 0===e?void 0:e.find((e=>e[Br("0x5")]==t));if(i&&i[Br("0x1b")]){const t=i[Br("0x1b")],e=(null!==(n=t[Br("0xf")])&&void 0!==n?n:t)[Br("0x11")](/^h(\d+)/);if(e)return e[1]}return null}}const Ur=["value","_descriptionFactory","registerAttributeLabel","*Remove highlight*","commandParams","TrackChangesEditing","*Set highlight:* %0","color","_registerLegacyDescription","format","HighlightEditing","title","highlight","locale","get","formatInline","editor","model","has","FORMAT_HIGHLIGHT","plugins","toLowerCase","highlight.options"];var jr,Gr;jr=Ur,Gr=203,function(t){for(;--t;)jr.push(jr.shift())}(++Gr);const Hr=function(t,e){return Ur[t-=0]};class Vr extends t.Plugin{afterInit(){const t=this[Hr("0x14")];if(!t[Hr("0x1")][Hr("0x16")](Hr("0xe")))return;const e=t[Hr("0x1")][Hr("0x12")]("TrackChangesEditing"),n=t.locale;e.enableDefaultIntegration("highlight",[Hr("0x10")]),e[Hr("0x5")][Hr("0x6")]("highlight",Qo(n,Hr("0x0"))),this[Hr("0xc")]()}_registerLegacyDescription(){const t=this[Hr("0x14")],e=t[Hr("0x11")];t[Hr("0x1")][Hr("0x12")](Hr("0x9"))[Hr("0x5")].registerDescriptionCallback((n=>{if(Hr("0x13")!=n.type)return;const{data:o}=n;if(o&&"highlight"==o.commandName){const n=e.t,i=o[Hr("0x8")][0][Hr("0x4")];if(i){const o=t.config.get(Hr("0x3")).find((t=>t[Hr("0x15")]==i)),r=n(o[Hr("0xf")])[Hr("0x2")]();return{type:Hr("0xd"),content:Qo(e,Hr("0xa"),r),color:{value:o[Hr("0xb")],title:o[Hr("0xf")]}}}return{type:Hr("0xd"),content:Qo(e,Hr("0x7"),Qo(e,Hr("0x0")))}}}))}}const zr=["editor","showSuggestionHighlights","horizontalLine","HorizontalLineEditing","createEmptyElement","get","locale","TrackChangesEditing","afterInit","plugins","registerElementLabel","addClass","_descriptionFactory","div","createPositionAt","ELEMENT_HORIZONTAL_LINE","ck-horizontal-line","has","elementToStructure","high","enableCommand"];var Wr,Kr;Wr=zr,Kr=187,function(t){for(;--t;)Wr.push(Wr.shift())}(++Kr);const qr=function(t,e){return zr[t-=0]};class $r extends t.Plugin{[qr("0xa")](){const t=this[qr("0x2")];if(!t.plugins[qr("0x13")](qr("0x5")))return;t[qr("0xb")][qr("0x7")](qr("0x9"))[qr("0x1")](qr("0x4"));const e=t.plugins[qr("0x7")](qr("0x9")),n=t[qr("0x8")];e[qr("0xe")][qr("0xc")](qr("0x4"),(t=>Qo(n,qr("0x11"),t))),t.conversion.for("dataDowncast")[qr("0x14")]({model:qr("0x4"),view:(t,{writer:e,options:n})=>{if(!n[qr("0x3")])return null;const o=e.createContainerElement(qr("0xf")),i=e[qr("0x6")]("hr");return e[qr("0xd")](qr("0x12"),o),e.insert(e[qr("0x10")](o,0),i),o},converterPriority:qr("0x0")})}}const Xr=["plugins","*Change %0 content*","enableDefaultIntegration","getFirstRange","ELEMENT_HTML_EMBED","htmlEmbed","registerElementLabel","key","_descriptionFactory","TrackChangesEditing","_registerLegacyDescription","get","type","nodeAfter","registerDescriptionCallback","editor","rawHtml","HtmlEmbed","formatBlock","locale","value"];var Yr,Zr;Yr=Xr,Zr=341,function(t){for(;--t;)Yr.push(Yr.shift())}(++Zr);const Jr=function(t,e){return Xr[t-=0]};class Qr extends t.Plugin{afterInit(){const t=this[Jr("0xa")];if(!t.plugins.has(Jr("0xc")))return;const e=t[Jr("0x10")][Jr("0x6")](Jr("0x4")),n=t[Jr("0xe")];e[Jr("0x3")][Jr("0x1")]("rawHtml",(t=>Qo(n,Jr("0x14"),t))),e[Jr("0x12")]("htmlEmbed",[],[Jr("0xf")]),e[Jr("0x3")][Jr("0x9")]((t=>{if("attribute"!=t[Jr("0x7")])return;const{data:e}=t;if(e&&"value"==e[Jr("0x2")]&&t[Jr("0x13")]().start[Jr("0x8")].is("element",Jr("0xb"))){const t=Qo(n,Jr("0x14"));return{type:"format",content:Qo(n,Jr("0x11"),t)}}})),this[Jr("0x5")]()}[Jr("0x5")](){const t=this[Jr("0xa")],e=t[Jr("0xe")];t[Jr("0x10")][Jr("0x6")](Jr("0x4"))[Jr("0x3")].registerDescriptionCallback((t=>{if(Jr("0xd")!=t[Jr("0x7")])return;const{data:n}=t;if(n&&Jr("0x0")==n.commandName){const t=Qo(e,Jr("0x14"));return{type:"format",content:Qo(e,Jr("0x11"),t)}}}))}}const ts=["selection","enableDefaultIntegration","*Set image text alternative:* %0","commandParams","markInsertion","getFirstRange","alt","has","subType","type","nodeBefore","ImageCaptionEditing","fromPosition","createRange","imageStylePreApply","format","discard","plugins","registerCustomCallback","afterInit","_findSuggestions","FORMAT_IMAGE_WIDTH","removeObject","toggleImageCaption","isBefore","registerElementLabel","_descriptionFactory","_registerLegacyDescription","isIntersecting","insertion","previous","nodeAfter","getClosestSelectedImageElement","get","key","convertBlockImageToInline","registerAttributeLabel","getSuggestionCallback","addObject","attribute","chain","join","imageTypeInline","commandName","imageTextAlternative","ImageInlineEditing","resizedWidth","model","isOwn","element","getContainedElement","convertInlineImageToBlock","getNearestSelectionRange","schema","ImageEditing","getCaptionFromImageModelElement","ImageCaptionUtils","*Reset image width*","resizeImage","isEqual","formatBlock","findIndex","_suggestionFactory","start","Block image to inline image","ELEMENT_CAPTION","enableCommand","end","editor","uploadImage","isBlockImage","width","*Set image width:* %0","locale","registerDescriptionCallback","imageCaption","document","caption","change","*Remove image text alternative*","createRangeOn","markDeletion","imageInline","isCollapsed","newValue","markBlockFormat","detach"];var es,ns;es=ts,ns=123,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class is extends t.Plugin{[os("0x46")](){const t=this[os("0x20")];if(!t[os("0x44")][os("0x3a")](os("0x12")))return;const e=t[os("0x44")].get("TrackChangesEditing"),n=t.plugins[os("0x54")]("ImageUtils"),o=t.locale;e[os("0x1e")]("insertImage"),e._descriptionFactory.registerElementLabel("imageBlock",(t=>Qo(o,"ELEMENT_IMAGE",t))),e[os("0x4d")].registerElementLabel(os("0x2e"),(t=>Qo(o,"ELEMENT_INLINE_IMAGE",t))),e[os("0x4d")][os("0x4c")](os("0x29"),(()=>Qo(o,os("0x1d")))),t[os("0x44")][os("0x3a")]("ImageUploadEditing")&&e[os("0x1e")](os("0x21")),t[os("0x44")].has("ImageBlockEditing")&&t[os("0x44")][os("0x3a")](os("0x9"))&&(e.enableCommand(os("0x6"),((o,i)=>{const r=n[os("0x53")](t[os("0xb")][os("0x28")].selection);t[os("0xb")][os("0x2a")]((()=>{e[os("0x31")](r,{commandName:"imageTypeInline",commandParams:[i]},[],os("0x56"))}))})),e[os("0x1e")]("imageTypeBlock",((o,i)=>{t[os("0xb")].change((r=>{let x=n.getClosestSelectedImageElement(t[os("0xb")][os("0x28")][os("0x33")]),a=r[os("0x2c")](x);const c=s.LivePosition[os("0x3f")](a[os("0x1b")],"toPrevious"),l=s.LivePosition.fromPosition(a[os("0x1f")],"toNext");e.forceDefaultExecution((()=>o(i))),x=n[os("0x53")](t.model[os("0x28")].selection),a=r[os("0x2c")](x);const u=r[os("0x40")](c,l);c[os("0x32")](),l.detach(),e.markBlockFormat(x,{commandName:os("0x6"),commandParams:[i]},[],os("0xf")),u[os("0x1b")].isBefore(a[os("0x1b")])&&e[os("0x37")](r[os("0x40")](u[os("0x1b")],a[os("0x1b")]),os("0xf")),a[os("0x1f")][os("0x4b")](u[os("0x1f")])&&e[os("0x37")](r[os("0x40")](a[os("0x1f")],u[os("0x1f")]),os("0xf"))}))})),e[os("0x1a")][os("0x45")]("formatBlock","convertInlineImageToBlock","join",(()=>!1)),e[os("0x1a")].registerCustomCallback("formatBlock",os("0xf"),"accept",(()=>!1)),e[os("0x1a")][os("0x45")]("formatBlock",os("0xf"),os("0x43"),e[os("0x1a")][os("0x1")](os("0x18"),"","accept")),e[os("0x1a")][os("0x45")](os("0x50"),os("0xf"),os("0x5"),(()=>!1)),e[os("0x1a")].registerCustomCallback(os("0x50"),"convertInlineImageToBlock",os("0x43"),(([n])=>{const o=e[os("0x1a")][os("0x1")](os("0x50"),"",os("0x43"));let i=n[os("0x1b")],r=n.end;const s=t[os("0xb")].schema[os("0x10")](i,"backward"),x=t[os("0xb")][os("0x11")][os("0x10")](r,"forward");s.isCollapsed&&(i=s[os("0x1b")]),x[os("0x2f")]&&(r=x[os("0x1f")]),o([t.model[os("0x40")](i,r)])})),e[os("0x1a")][os("0x45")](os("0x18"),os("0xf"),os("0x4"),x),e[os("0x1a")][os("0x45")](os("0x50"),os("0xf"),os("0x4"),x)),t[os("0x44")][os("0x3a")](os("0x3e"))&&(e[os("0x1e")](os("0x4a"),((o,i)=>{const r=t.plugins[os("0x54")](os("0x14"));let s=n[os("0x53")](t[os("0xb")][os("0x28")][os("0x33")]),x=r[os("0x13")](s);t[os("0xb")].change((()=>{if(x)return void e[os("0x2d")](t[os("0xb")][os("0x2c")](x));const a=n[os("0x22")](s);o(i),s=n.getClosestSelectedImageElement(t[os("0xb")][os("0x28")][os("0x33")]),x=r[os("0x13")](s),e[os("0x37")](t.model[os("0x2c")](x),a?null:os("0x27"))}))})),e[os("0x1a")].registerCustomCallback(os("0x50"),"imageCaption","chain",x));const i=[{type:os("0x18"),subType:os("0x41")},{type:os("0x50"),subType:"imageCaption"},{type:os("0x18"),subType:os("0xf")},{type:os("0x50"),subType:os("0xf")}];function r(t,o){const r=i[os("0x19")]((({type:e,subType:n})=>t[os("0x3c")]==e&&t[os("0x3b")]==n)),s=i[os("0x19")]((({type:t,subType:e})=>o[os("0x3c")]==t&&o[os("0x3b")]==e));if(r<0||s<0)return!1;const x=t[os("0x38")](),a=o[os("0x38")]();if((0==r||1==r)&&2==s&&x[os("0x4f")](a))return!0;if(2==r&&3==s){const t=e[os("0x47")](x,os("0x50")).filter((({suggestion:t,meta:e})=>e[os("0xc")]&&os("0xf")==t[os("0x3b")]));if(t.length>1&&a[os("0x1f")][os("0x17")](x[os("0x1b")]))return!0;if(1==t.length&&(x[os("0x1b")].isEqual(a[os("0x1f")])||x[os("0x1f")][os("0x17")](a[os("0x1b")])))return!0}if(3==r&&3==s&&x[os("0x1b")].isBefore(a[os("0x1b")])){const t=x[os("0x1f")][os("0x52")],e=a.start[os("0x3d")];return n[os("0x22")](t)&&t===e}return!1}function x(t,e){return r(t,e)?[t,e]:r(e,t)?[e,t]:null}t[os("0x44")][os("0x3a")]("ImageResize")&&(e[os("0x34")]("resizeImage",[],["resizedWidth"]),e[os("0x4d")][os("0x0")](os("0xa"),Qo(o,os("0x48")))),t[os("0x44")][os("0x3a")]("ImageTextAlternativeEditing")&&e[os("0x34")]("imageTextAlternative",[],[os("0x39")]),e[os("0x4d")][os("0x26")]((t=>{if(i.find((({type:e,subType:n})=>t.type==e&&t[os("0x3b")]==n)))return t[os("0x51")]?{}:void 0})),e[os("0x4d")][os("0x26")]((t=>{if(os("0x50")==t[os("0x3c")]||"deletion"==t[os("0x3c")]){const e=t[os("0xe")]();if(e&&e.is(os("0xd"),os("0x29")))return{type:"insertion"==t[os("0x3c")]?os("0x2"):os("0x49"),element:e,quantity:1}}})),e._descriptionFactory[os("0x26")]((t=>"formatBlock"==t[os("0x3c")]&&os("0xf")==t[os("0x3b")]?{type:os("0x42"),content:"Inline image to block image"}:"formatBlock"==t[os("0x3c")]&&os("0x56")==t.subType?{type:"format",content:os("0x1c")}:void 0)),e[os("0x4d")].registerDescriptionCallback((t=>{if(os("0x3")!=t.type)return;const{data:e}=t;if(!e||"alt"!=e[os("0x55")])return;const n=e[os("0x30")];return n?{type:os("0x42"),content:Qo(o,os("0x35"),'"'+n+'"')}:{type:"format",content:Qo(o,os("0x2b"))}})),this._registerLegacyDescription()}[os("0x4e")](){const t=this[os("0x20")],e=t[os("0x25")];t[os("0x44")][os("0x54")]("TrackChangesEditing")._descriptionFactory.registerDescriptionCallback((t=>{if(os("0x18")!=t[os("0x3c")]&&"formatInline"!=t[os("0x3c")])return;const{data:n}=t;if(n){if(os("0x8")==n.commandName){const t=n[os("0x36")][0][os("0x30")];return t?{type:os("0x42"),content:Qo(e,os("0x35"),'"'+t+'"')}:{type:os("0x42"),content:Qo(e,"*Remove image text alternative*")}}if(os("0x16")==n[os("0x7")]){const t=n.commandParams[0][os("0x23")];return t?{type:os("0x42"),content:Qo(e,os("0x24"),t)}:{type:os("0x42"),content:Qo(e,os("0x15"))}}}}))}}const rs=["plugins","get","has","afterInit","editor","type","oldValue","*Format:* replace image URL","_descriptionFactory","_registerLegacyDescription","newValue","attribute","registerDescriptionCallback","format","replaceImageSource","key","ImageEditing","formatBlock","formatInline","src"];var ss,xs;ss=rs,xs=183,function(t){for(;--t;)ss.push(ss.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0x0")](){if(!this[as("0x1")][as("0x11")][as("0x13")](as("0xd")))return;const t=this[as("0x1")].locale,e=this[as("0x1")].plugins[as("0x12")]("TrackChangesEditing");e.enableDefaultIntegration("replaceImageSource",[],[as("0x10")]),e._descriptionFactory.registerDescriptionCallback((e=>{if(as("0x8")!=e[as("0x2")])return;const{data:n}=e;return n&&as("0x10")==n[as("0xc")]?n[as("0x7")]&&n[as("0x3")]?{type:as("0xa"),content:Qo(t,as("0x4"))}:{type:as("0xa"),content:""}:void 0})),this._registerLegacyDescription()}[as("0x6")](){const t=this[as("0x1")],e=t.locale;t.plugins[as("0x12")]("TrackChangesEditing")[as("0x5")][as("0x9")]((t=>{if(as("0xe")!=t.type&&as("0xf")!=t[as("0x2")])return;const{data:n}=t;return n&&as("0xb")===n.commandName?{type:as("0xa"),content:Qo(e,as("0x4"))}:void 0}))}}const ls=["newRange","imageTypeInline","length","refresh","imageStylePreApply","imageStylePostApply","accept","from","suggestion","getContainedElement","document","name","selection","ImageUtils","isInContent","_splitMarkerName","locale","end","convertInlineImageToBlock","insertion","findIndex","discard","markBlockFormat","getFirstRange","imageTypeBlock","filter","_findSuggestions","plugins","FORMAT_SIDE_IMAGE","isBefore","start","registerPostFixer","get","chain","commandReversedParams","discardSuggestion","_suggestionFactory","isIntersecting","value","ImageStyleEditing","markInlineFormat","getChangedMarkers","formatBlock","author","imageCaption","isOwn","getSuggestion","has","toLowerCase","_descriptionFactory","model","formatInline","nodeBefore","getClosestSelectedImageElement","isInlineImage","afterInit","registerCustomCallback","change","commands","isBlockImage","join","imageStyle","enableCommand","next","differ","subType","type","TrackChangesEditing","commandParams","createRangeOn","isEqual","hasSuggestion","editor","getSuggestions","setImageNaturalSizeAttributes","head","commandName","_registerLegacyDescription","title","side","Users"];var us,ds;us=ls,ds=276,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};class fs extends t.Plugin{[gs("0x16")](){const t=this[gs("0x27")];if(!t[gs("0x4b")][gs("0xe")](gs("0x6")))return;const n=t[gs("0x4b")][gs("0x50")]("TrackChangesEditing"),o=t[gs("0x4b")][gs("0x50")](gs("0x3d")),i={};n[gs("0x1d")](gs("0x1c"),((i,r)=>{const s=t[gs("0x4b")][gs("0x50")](gs("0x2f")).me,x=t.commands.get(gs("0x1c"));let a=o[gs("0x14")](t[gs("0x11")][gs("0x3a")].selection),c=t[gs("0x11")].createRangeOn(a),l=x[gs("0x5")];if(l==r[gs("0x5")])return;const u={commandName:gs("0x1c"),commandParams:[r],formatGroupId:(0,e.uid)()};t.model[gs("0x18")]((()=>{if(n[gs("0x28")]()[gs("0x49")]((t=>t[gs("0x3e")]&&s==t[gs("0xa")]&&(gs("0x9")==t[gs("0x21")]||gs("0x12")==t.type)&&(gs("0x34")==t.subType||"imageStylePostApply"==t[gs("0x20")])&&t.getFirstRange()[gs("0x25")](c))).forEach((t=>n[gs("0x2")](t[gs("0x2a")]))),a=o[gs("0x14")](t[gs("0x11")][gs("0x3a")][gs("0x3c")]),c=t.model[gs("0x24")](a),x[gs("0x33")](),t[gs("0x19")][gs("0x50")](gs("0x31")).refresh(),t[gs("0x19")][gs("0x50")](gs("0x48"))[gs("0x33")](),l=x[gs("0x5")],l!=r.value)return o[gs("0x15")](a)&&x.shouldConvertImageType(r[gs("0x5")],a)?(i({...r,setImageSizes:!1}),a=o[gs("0x14")](t[gs("0x11")].document[gs("0x3c")]),void n[gs("0x46")](a,{...u,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],gs("0x34"))):void(o[gs("0x1a")](a)?n.markBlockFormat(a,u,[],gs("0x35")):n[gs("0x7")](c,u,gs("0x35")))}))}));for(const e of t[gs("0x4b")][gs("0x50")]("ImageStyleEditing").normalizedStyles)i[e[gs("0x3b")]]=e[gs("0x2d")][gs("0xf")]();n[gs("0x3")][gs("0x17")](gs("0x9"),gs("0x34"),gs("0x1b"),(()=>!1)),n[gs("0x3")].registerCustomCallback("formatBlock",gs("0x35"),gs("0x1b"),(()=>!1)),n[gs("0x3")][gs("0x17")](gs("0x12"),gs("0x35"),gs("0x1b"),(()=>!1)),n[gs("0x3")][gs("0x17")]("formatBlock",gs("0x34"),gs("0x36"),(([t])=>{o[gs("0x29")](t[gs("0x39")]())})),n[gs("0x3")][gs("0x17")]("formatBlock",gs("0x34"),gs("0x45"),((t,e)=>{n._suggestionFactory.getSuggestionCallback(gs("0x9"),"",gs("0x36"))(t,{commandName:e[gs("0x2b")],commandParams:e[gs("0x1")]})})),n[gs("0x3")][gs("0x17")](gs("0x9"),"imageStylePreApply",gs("0x0"),(function(t,e){return s(t,e)?[t,e]:s(e,t)?[e,t]:null}));const r=[{type:gs("0x9"),subType:gs("0x34")},{type:gs("0x43"),subType:gs("0xb")},{type:"formatBlock",subType:gs("0x42")},{type:gs("0x43"),subType:"convertInlineImageToBlock"}];function s(t,e){const i=r.findIndex((({type:e,subType:n})=>t[gs("0x21")]==e&&t[gs("0x20")]==n)),s=r[gs("0x44")]((({type:t,subType:n})=>e.type==t&&e[gs("0x20")]==n));if(i<0||s<0)return!1;const x=t.getFirstRange(),a=e[gs("0x47")]();if((0==i||1==i)&&2==s&&x[gs("0x4")](a))return!0;if(2==i&&3==s){const t=n[gs("0x4a")](x,gs("0x43")).filter((({suggestion:t,meta:e})=>e[gs("0xc")]&&gs("0x42")==t[gs("0x20")]));if(t[gs("0x32")]>1&&a[gs("0x41")][gs("0x25")](x.start))return!0;if(1==t[gs("0x32")]&&(x[gs("0x4e")].isEqual(a[gs("0x41")])||x[gs("0x41")][gs("0x25")](a.start)))return!0}if(3==i&&3==s&&x[gs("0x4e")][gs("0x4d")](a[gs("0x4e")])){const t=x[gs("0x41")].nodeAfter,e=a[gs("0x4e")][gs("0x13")];return o[gs("0x1a")](t)&&t===e}return!1}t[gs("0x11")][gs("0x3a")][gs("0x4f")]((()=>{let e=!1;const i=Array[gs("0x37")](t[gs("0x11")][gs("0x3a")][gs("0x1f")][gs("0x8")]());for(const{name:t,data:r}of i){const{group:i,type:s,subType:x,id:a}=n[gs("0x3f")](t);if(gs("0x38")==i&&n[gs("0x26")](a)){if(gs("0x9")==s&&(gs("0x34")==x||gs("0x35")==x)){const t=n[gs("0xd")](a);if(r[gs("0x30")]){const i=t[gs("0x47")]().getContainedElement();if(o.isBlockImage(i))continue;n[gs("0x2")](t),e=!0}}if(gs("0x43")==s&&"imageCaption"==x&&!r.newRange){const t=n[gs("0xd")](a);t[gs("0x1e")]&&t[gs("0x1e")][gs("0x3e")]&&(n[gs("0x2")](t.next),e=!0)}}}return e})),this._registerLegacyDescription(i)}[gs("0x2c")](t){const e=this[gs("0x27")],n=e[gs("0x40")];e[gs("0x4b")].get(gs("0x22"))[gs("0x10")].registerDescriptionCallback((e=>{if("formatBlock"!=e[gs("0x21")]&&gs("0x12")!=e[gs("0x21")])return;const{data:o}=e;if(!o||"imageStyle"!=o[gs("0x2b")])return;const i=o[gs("0x23")][0][gs("0x5")];return r=gs("0x2e")===i?Qo(n,gs("0x4c")):t[i]||i,{type:"format",content:Qo(n,"*Format:* %0",r)};var r}))}}const ms=["_trackChangesValueDuringImport","_trackChangesExecuted","high","listenTo","track_changes","dataInsert","execute","value","Users","get","afterInit","collaboration_features","_setSuggestionData","_handleImportedData","commands","importWord","plugins","editor","enableCommand","forEach","trackChanges","TrackChangesEditing"];var hs,ps;hs=ms,ps=232,function(t){for(;--t;)hs.push(hs.shift())}(++ps);const bs=function(t,e){return ms[t-=0]};class Es extends t.Plugin{constructor(t){super(t),this[bs("0xa")]=!1,this[bs("0xb")]=!1}[bs("0x14")](){const t=this[bs("0x5")],e=t[bs("0x2")][bs("0x13")](bs("0x3")),n=t[bs("0x2")][bs("0x13")](bs("0x8"));e&&(e.on(bs("0x10"),((t,[,e])=>{this[bs("0xa")]=n.value,e[bs("0x15")][bs("0xe")]=!this[bs("0xa")]}),{priority:bs("0xc")}),this[bs("0xd")](e,bs("0xf"),this._handleImportedData.bind(this)),this[bs("0xd")](e,bs("0xf"),(()=>{this[bs("0xb")]&&(n[bs("0x10")](),this[bs("0xb")]=!1)}),{priority:"lowest"}),t.plugins[bs("0x13")](bs("0x9"))[bs("0x6")]("importWord"))}[bs("0x1")](t,e){const{suggestions:n}=e,o=this[bs("0x5")].commands[bs("0x13")](bs("0x8")),i=o[bs("0x11")];this[bs("0xa")]!==i&&(o[bs("0x10")](),this[bs("0xb")]=!0),n&&n[bs("0x7")]((({id:t,type:e,author:n,created_at:o})=>{const i={id:t,type:e,authorId:this.editor.plugins.get(bs("0x12")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:bs("0x3")}}};this[bs("0x5")][bs("0x4")].get(bs("0x9"))[bs("0x0")](i)}))}}const _s=["*Indent:* %0","blockIndent","IndentEditing","registerDescriptionCallback","outdent","get","indent","registerAttributeLabel","registerBlockAttribute","has","formatBlock","indentBlock","TrackChangesEditing","outdentBlock","getItems","getItemLabel","IndentBlock","locale","plugins","format","enableDefaultIntegration","enableCommand","FORMAT_INDENT","_registerLegacyDescription","editor","_descriptionFactory"];var Ts,ys;Ts=_s,ys=486,function(t){for(;--t;)Ts.push(Ts.shift())}(++ys);const Cs=function(t,e){return _s[t-=0]};class As extends t.Plugin{afterInit(){const t=this[Cs("0x6")],e=t.plugins[Cs("0xd")](Cs("0x14"));if(t[Cs("0x0")][Cs("0x11")](Cs("0xa"))&&(e[Cs("0x3")](Cs("0xe")),e.enableCommand(Cs("0xc"))),t[Cs("0x0")][Cs("0x11")](Cs("0x18")))for(const t of[Cs("0x13"),Cs("0x15")])e[Cs("0x2")](t);const n=t[Cs("0x19")];e[Cs("0x10")](Cs("0x9")),e[Cs("0x7")][Cs("0xf")](Cs("0x9"),Qo(n,Cs("0x4"))),this[Cs("0x5")]()}[Cs("0x5")](){const t=this[Cs("0x6")],e=t[Cs("0x19")],n=t[Cs("0x0")].get(Cs("0x14"));n._descriptionFactory[Cs("0xb")]((t=>{if(Cs("0x12")!=t.type)return;const{data:o}=t;if(!o)return;if(Cs("0x13")!=o.commandName&&"outdentBlock"!=o.commandName)return;const i=t[Cs("0x16")]()[0],r=n[Cs("0x7")][Cs("0x17")](i);return Cs("0x13")==o.commandName?{type:Cs("0x1"),content:Qo(e,Cs("0x8"),r)}:"outdentBlock"==o.commandName?{type:Cs("0x1"),content:Qo(e,"*Outdent:* %0",r)}:void 0}))}}var ks,Is,Rs=["editor","TrackChangesEditing","requires","get","plugins","enableCommand","input"];ks=Rs,Is=477,function(t){for(;--t;)ks.push(ks.shift())}(++Is);var Ss=function(t,e){return Rs[t-=0]};class Ns extends t.Plugin{static get[Ss("0x1")](){return[Vi.Input]}init(){this[Ss("0x6")][Ss("0x3")][Ss("0x2")](Ss("0x0"))[Ss("0x4")](Ss("0x5"))}}const vs=["*Set link:* %0","registerAttributeLabel","_registerLegacyDescription","get","enableDefaultIntegration","commandName","type","commandParams","commands","linkHref","plugins","label","unlink","format","TrackChangesEditing","link (","link","_descriptionFactory","newValue","*Remove link*","toLowerCase","registerDescriptionCallback","manualDecorators","key","afterInit","formatInline","has","locale"];var Ls,Ms;Ls=vs,Ms=427,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ms);const Os=function(t,e){return vs[t-=0]};class ws extends t.Plugin{[Os("0x11")](){const t=this.editor;if(!t[Os("0x3")][Os("0x13")]("LinkEditing"))return;const e=t[Os("0x3")][Os("0x18")]("TrackChangesEditing"),n=t[Os("0x1")][Os("0x18")](Os("0x9"));e[Os("0x19")]("link",[Os("0x2"),...n[Os("0xf")].map((t=>t.id))]),e[Os("0x19")](Os("0x5"));for(const t of n[Os("0xf")])e[Os("0xa")][Os("0x16")](t.id,Os("0x8")+t[Os("0x4")][Os("0xd")]()+")");e[Os("0xa")][Os("0xe")]((e=>{if("attribute"!=e[Os("0x1b")])return;const{data:n}=e,o=t.locale;if(!n)return;if(Os("0x2")!=n[Os("0x10")])return;const i=n[Os("0xb")];return i?{type:"format",content:Qo(o,Os("0x15"),'"'+i+'"')}:{type:Os("0x6"),content:Qo(o,Os("0xc"))}})),this[Os("0x17")]()}[Os("0x17")](){const t=this.editor,e=t[Os("0x14")];t[Os("0x3")][Os("0x18")](Os("0x7"))[Os("0xa")].registerDescriptionCallback((t=>{if(Os("0x12")!=t[Os("0x1b")])return;const{data:n}=t;if(n){if("link"==n[Os("0x1a")]){const t=n[Os("0x0")][0];return{type:Os("0x6"),content:Qo(e,Os("0x15"),'"'+t+'"')}}return"unlink"==n[Os("0x1a")]?{type:Os("0x6"),content:Qo(e,Os("0xc"))}:void 0}}))}}const Fs=["plugins","commandName","ELEMENT_TODO_LIST","nextSibling","TodoListEditing","editor","has","numberedList","registerDescriptionCallback","enableCommand","*Check item*","element","findIndex","selection","filter","length","_selectedElements","getSelectedBlocks","slice","forceValue","createPositionAt","listType","registerElementLabel","bulletedList","checkTodoList","change","TrackChangesEditing","get","*Indent:* %0","replace","format","outdentList","formatBlock","add","value","_descriptionFactory","before","markBlockFormat","parent","name","type","isObject","commands","from","listIndent","model","ELEMENT_NUMBERED_LIST","push","listItem","end","*Change to:* %0","blockName","ELEMENT_LIST_ITEM","todoListChecked","execute","locale","checkChild","todoList","*Outdent:* %0","afterInit","previousSibling","getAttribute","document"];var Ds,Bs;Ds=Fs,Bs=204,function(t){for(;--t;)Ds.push(Ds.shift())}(++Bs);const Ps=function(t,e){return Fs[t-=0]};class Us extends t.Plugin{[Ps("0x2c")](){const t=this[Ps("0x35")],e=t[Ps("0x28")];if(!t[Ps("0x30")][Ps("0x36")]("ListEditing"))return;const n=t.plugins[Ps("0xc")](Ps("0xb")),o=t[Ps("0x30")][Ps("0x36")](Ps("0x34"));function i(e){return()=>{const o=t[Ps("0x1e")][Ps("0x2f")].selection,i=t[Ps("0x1b")][Ps("0xc")](e);if(i.value)return void t[Ps("0x27")]("paragraph",{});const r=e[Ps("0x3")](0,-4),s=function(t,e,n){let o=Array[Ps("0x1c")](t)[Ps("0x3e")]((t=>{return e=t,(o=n)[Ps("0x29")](e[Ps("0x17")],"listItem")&&!o[Ps("0x1a")](e);var e,o}));o=o[Ps("0x3e")]((t=>!t.is(Ps("0x3b"),Ps("0x21"))||t[Ps("0x2e")](Ps("0x6"))!=e));const i=new Set;for(const t of o)t.is(Ps("0x3b"),Ps("0x21"))?i[Ps("0x12")](js(t)):i[Ps("0x12")](t);return Array.from(i)}(o[Ps("0x2")](),r,t[Ps("0x1e")].schema);t[Ps("0x1e")][Ps("0xa")]((()=>{for(const t of s)n.markBlockFormat(t,{commandName:e,commandParams:[{forceValue:!i[Ps("0x13")]}],formatGroupId:Ps("0x24")},Gs(t))}))}}function r(e){return()=>{const o=function(t){let e=Array.from(t);const n=e[Ps("0x3c")]((t=>"listItem"!=t[Ps("0x18")]));return n>-1&&(e=e.slice(0,n)),e}(t[Ps("0x1e")][Ps("0x2f")][Ps("0x3d")][Ps("0x2")]()),i=t[Ps("0x1e")].createRange(t[Ps("0x1e")][Ps("0x5")](o[0],Ps("0x15")),t[Ps("0x1e")][Ps("0x5")](o[o[Ps("0x0")]-1],Ps("0x22")));t[Ps("0x1e")][Ps("0xa")]((()=>{n[Ps("0x16")](i,{commandName:e,commandParams:[],formatGroupId:Ps("0x1d")},function(t){const e=new Set;for(const n of t){let t=n[Ps("0x33")];for(;t&&t[Ps("0x2e")](Ps("0x1d"))>n[Ps("0x2e")]("listIndent");)e.add(t),t=t.nextSibling}return Array.from(e)}(o))}))}}n[Ps("0x39")](Ps("0x37"),i(Ps("0x37"))),n[Ps("0x39")](Ps("0x8"),i(Ps("0x8"))),o&&n[Ps("0x39")]("todoList",i(Ps("0x2a"))),n[Ps("0x39")]("indentList",r("indentList")),n[Ps("0x39")](Ps("0x10"),r("outdentList")),o&&n[Ps("0x39")](Ps("0x9"),(()=>{const e=t[Ps("0x1b")][Ps("0xc")](Ps("0x9")),o=Array[Ps("0x1c")](e[Ps("0x1")]);o[Ps("0x3e")]((t=>t[Ps("0x2e")](Ps("0x26"))!=e[Ps("0x13")])),t[Ps("0x1e")][Ps("0xa")]((()=>{for(const t of o)n[Ps("0x16")](t,{commandName:Ps("0x9"),commandParams:[{forceValue:!e[Ps("0x13")]}]})}))})),n[Ps("0x14")][Ps("0x7")](Ps("0x21"),(t=>Qo(e,"ELEMENT_LIST_ITEM",t))),n[Ps("0x14")][Ps("0x38")]((t=>{if(Ps("0x11")!=t[Ps("0x19")]&&"formatInline"!=t[Ps("0x19")])return;const{data:n}=t;if(n){if(Ps("0x37")==n[Ps("0x31")]||Ps("0x8")==n.commandName||Ps("0x2a")==n[Ps("0x31")])switch(n.commandName[Ps("0xe")]("List","")){case"bulleted":return o(Qo(e,"ELEMENT_BULLETED_LIST"));case"numbered":return o(Qo(e,Ps("0x1f")));case"todo":return o(Qo(e,Ps("0x32")))}if("indentList"==n.commandName)return{type:Ps("0xf"),content:Qo(e,Ps("0xd"),Qo(e,Ps("0x25")))};if(Ps("0x10")==n[Ps("0x31")])return{type:"format",content:Qo(e,Ps("0x2b"),Qo(e,Ps("0x25")))};if("checkTodoList"==n[Ps("0x31")])return n.commandParams[0][Ps("0x4")]?{type:"format",content:Qo(e,Ps("0x3a"))}:{type:Ps("0xf"),content:Qo(e,"*Uncheck item*")}}function o(t){return{type:Ps("0xf"),content:Qo(e,Ps("0x23"),t)}}}))}}function js(t){const e=t[Ps("0x2e")](Ps("0x1d"));if(0==e)return t;let n=t;for(;t[Ps("0x2d")]&&t[Ps("0x2d")].is(Ps("0x3b"),Ps("0x21"));){const o=t[Ps("0x2d")][Ps("0x2e")](Ps("0x1d"));if(o==e)n=t[Ps("0x2d")];else if(o<e)break;t=t.previousSibling}return n}function Gs(t){const e=[];if(t.is("element",Ps("0x21"))&&t[Ps("0x2e")](Ps("0x1d"))>0){let n=t[Ps("0x33")];for(;n&&Ps("0x21")==n.name&&n[Ps("0x2e")]("listIndent")==t.getAttribute(Ps("0x1d"));)e[Ps("0x20")](n),n=n[Ps("0x33")]}return e}const Hs=["length","editor","formatInline","from","getSelectedBlocks","_getSuggestionBlocks","handleListStyleCommand","backward","*Change to:* %0","replace","unshift","format","push","map","markMultiRangeBlockFormat","get","toUpperCase","list.properties","getLastPosition","before","_getSuggestionBlocksForListStyle","model","registerDescriptionCallback","commandName","listType","ELEMENT_","handleListStartCommand","filter","document","_descriptionFactory","_getTranslationKeyForListStyle","plugins","styles","listStart","handleDescriptions","listItem","_LIST_","ListPropertiesEditing","config","getFirstPosition","selection","*Format:* set order to reversed","handleListReversedCommand","flat","listReversed","getListTypeFromListStyleType","TrackChangesEditing","ListUtils","*Format:* set start index to %0","element","formatBlock","enableCommand","createPositionAt","getSiblingNodes","type","createRange","bind","startIndex","listStyle","forward","afterInit","change","commandParams","has","reversed","numbered","*Format:* set order to regular"];var Vs,zs;Vs=Hs,zs=350,function(t){for(;--t;)Vs.push(Vs.shift())}(++zs);const Ws=function(t,e){return Hs[t-=0]};class Ks extends t.Plugin{[Ws("0x2d")](){if(!this[Ws("0x35")][Ws("0x10")][Ws("0x30")](Ws("0x16")))return;const t=this[Ws("0x35")][Ws("0x17")][Ws("0x0")](Ws("0x2")),e=this[Ws("0x35")].plugins[Ws("0x0")]("TrackChangesEditing");t[Ws("0x11")]&&e[Ws("0x24")]("listStyle",this[Ws("0x3a")][Ws("0x29")](this)),t[Ws("0x31")]&&e[Ws("0x24")](Ws("0x1d"),this.handleListReversedCommand.bind(this)),t.startIndex&&e[Ws("0x24")](Ws("0x12"),this[Ws("0xb")].bind(this)),e[Ws("0xe")][Ws("0x7")](this[Ws("0x13")].bind(this))}[Ws("0x3a")](t,e={}){const n=this[Ws("0x35")][Ws("0x10")][Ws("0x0")](Ws("0x1f")),o=this._getSuggestionBlocksForListStyle();this[Ws("0x35")][Ws("0x6")][Ws("0x2e")]((()=>{n[Ws("0x42")](o,{commandName:Ws("0x2b"),commandParams:[{type:e[Ws("0x27")]}],formatGroupId:Ws("0x2b")})}))}[Ws("0x1b")](t,e={}){const n=this.editor[Ws("0x10")].get("TrackChangesEditing"),o=this._getSuggestionBlocks((t=>t.is("element",Ws("0x14"))&&Ws("0x32")===t.getAttribute(Ws("0x9"))));if(o[Ws("0x34")]<1)return;const i=o[Ws("0x41")]((t=>this[Ws("0x35")][Ws("0x6")].createRange(this[Ws("0x35")][Ws("0x6")][Ws("0x25")](t,Ws("0x4")),this[Ws("0x35")][Ws("0x6")][Ws("0x25")](t,0))));this.editor[Ws("0x6")][Ws("0x2e")]((()=>{n[Ws("0x42")](i,{commandName:"listReversed",commandParams:[{reversed:e[Ws("0x31")]}],formatGroupId:Ws("0x1d")})}))}[Ws("0xb")](t,e={}){const n=this[Ws("0x35")][Ws("0x10")][Ws("0x0")](Ws("0x1f")),o=this[Ws("0x39")]((t=>t.is(Ws("0x22"),"listItem")&&Ws("0x32")===t.getAttribute("listType")));if(o[Ws("0x34")]<1)return;const i=o[Ws("0x41")]((t=>this[Ws("0x35")].model[Ws("0x28")](this[Ws("0x35")][Ws("0x6")][Ws("0x25")](t,Ws("0x4")),this[Ws("0x35")].model[Ws("0x25")](t,0))));this.editor[Ws("0x6")].change((()=>{n.markMultiRangeBlockFormat(i,{commandName:Ws("0x12"),commandParams:[{startIndex:e[Ws("0x2a")]}],formatGroupId:Ws("0x12")})}))}[Ws("0x13")](t){if(Ws("0x23")!=t.type&&Ws("0x36")!=t.type)return;const e=this[Ws("0x35")].locale,{data:n}=t;if(!n)return;let o,i;switch(n[Ws("0x8")]){case Ws("0x2b"):o=Ws("0x3c"),i={type:Ws("0x3f"),content:Qo(e,o,Qo(e,this[Ws("0xf")](n[Ws("0x2f")][0][Ws("0x27")])))};break;case Ws("0x1d"):o=n.commandParams[0][Ws("0x31")]?Ws("0x1a"):Ws("0x33"),i={type:"format",content:Qo(e,o)};break;case"listStart":o=Ws("0x21"),i={type:Ws("0x3f"),content:Qo(e,o,n[Ws("0x2f")][0][Ws("0x2a")])}}return i}[Ws("0x5")](){var t,e,n,o;const i=this.editor[Ws("0x10")][Ws("0x0")](Ws("0x20"));let r=Array[Ws("0x37")](this[Ws("0x35")][Ws("0x6")][Ws("0xd")][Ws("0x19")][Ws("0x38")]());return(null===(t=r[0])||void 0===t?void 0:t.is("element","listItem"))&&r[Ws("0x3e")](...i.getSiblingNodes(this[Ws("0x35")][Ws("0x6")][Ws("0xd")][Ws("0x19")][Ws("0x18")](),Ws("0x3b"))),(null===(e=r[r[Ws("0x34")]-1])||void 0===e?void 0:e.is(Ws("0x22"),"listItem"))&&r[Ws("0x40")](...i.getSiblingNodes(this.editor[Ws("0x6")][Ws("0xd")].selection[Ws("0x3")](),Ws("0x2c"))),r=[...new Set(r)],(null===(o=null===(n=this[Ws("0x35")][Ws("0x6")][Ws("0xd")].selection.getFirstPosition())||void 0===n?void 0:n.parent)||void 0===o?void 0:o.is("element",Ws("0x14")))&&(r=r[Ws("0xc")]((t=>t.is(Ws("0x22"),Ws("0x14"))))),r}_getSuggestionBlocks(t){const e=this[Ws("0x35")][Ws("0x10")][Ws("0x0")](Ws("0x20"));let n=Array[Ws("0x37")](this.editor[Ws("0x6")][Ws("0xd")][Ws("0x19")][Ws("0x38")]())[Ws("0xc")](t).map((t=>{const n=this[Ws("0x35")][Ws("0x6")][Ws("0x25")](t,0);return[...e.getSiblingNodes(n,Ws("0x3b")),...e[Ws("0x26")](n,"forward")]}))[Ws("0x1c")]();return n=[...new Set(n)],n}_getTranslationKeyForListStyle(t){return Ws("0xa")+this.editor.plugins[Ws("0x0")](Ws("0x20"))[Ws("0x1e")](t).toUpperCase()+Ws("0x15")+t[Ws("0x1")]()[Ws("0x3d")](/-/g,"_")}}const qs=["for","plugins","MediaEmbedEditing","high","registerElementLabel","dataDowncast","has","media","afterInit","editor","stop","mediaEmbed","conversion","options","elementToElement","downcastDispatcher","ELEMENT_MEDIA","TrackChangesEditing","get","data","div","_descriptionFactory","createEmptyElement"];var $s,Xs;$s=qs,Xs=384,function(t){for(;--t;)$s.push($s.shift())}(++Xs);const Ys=function(t,e){return qs[t-=0]};class Zs extends t.Plugin{[Ys("0xf")](){const t=this[Ys("0x10")];if(!t[Ys("0x8")][Ys("0xd")](Ys("0x9")))return;const e=t[Ys("0x8")][Ys("0x2")](Ys("0x1")),n=t.locale;e.enableCommand(Ys("0x12")),e[Ys("0x5")][Ys("0xb")](Ys("0xe"),(t=>Qo(n,Ys("0x0"),t))),t[Ys("0x13")][Ys("0x7")](Ys("0xc"))[Ys("0x15")]({model:Ys("0xe"),view:(t,{writer:e,options:n})=>{if(n.showSuggestionHighlights)return e[Ys("0x6")](Ys("0x4"))},converterPriority:Ys("0xa")}),t[Ys("0x3")][Ys("0x16")].on("attribute:url:media",((t,e,n)=>{n[Ys("0x14")].showSuggestionHighlights&&t[Ys("0x11")]()}),{priority:"high"})}}const Js=["has","enableCommand","afterInit","editor","plugins","MentionEditing"];var Qs,tx;Qs=Js,tx=470,function(t){for(;--t;)Qs.push(Qs.shift())}(++tx);const ex=function(t,e){return Js[t-=0]};class nx extends t.Plugin{[ex("0x0")](){const t=this[ex("0x1")];t[ex("0x2")][ex("0x4")](ex("0x3"))&&t[ex("0x2")].get("TrackChangesEditing")[ex("0x5")]("mention")}}const ox=["get","plugins","afterInit","pageBreak","_descriptionFactory","locale","enableCommand","has","registerElementLabel","TrackChangesEditing","ELEMENT_PAGE_BREAK","PageBreakEditing","editor"];var ix,rx;ix=ox,rx=309,function(t){for(;--t;)ix.push(ix.shift())}(++rx);const sx=function(t,e){return ox[t-=0]};class xx extends t.Plugin{[sx("0x5")](){const t=this[sx("0x2")];if(!t[sx("0x4")][sx("0xa")](sx("0x1")))return;t[sx("0x4")][sx("0x3")](sx("0xc"))[sx("0x9")](sx("0x6"));const e=t.plugins.get(sx("0xc")),n=t[sx("0x8")];e[sx("0x7")][sx("0xb")](sx("0x6"),(t=>Qo(n,sx("0x0"),t)))}}const ax=["data","nodeAfter","addMarker:suggestion:insertion","Paragraph","_descriptionFactory","$text","*Change to:* %0","options","TrackChangesEditing","locale","highest","span","bindElementToMarker","markerRange","toViewPosition","type","enableCommand","insertion","end","model","plugins","mapper","ELEMENT_PARAGRAPH","isLimit","isTouching","enableDefaultIntegration","checkChild","isBlock","getItemLabel","get","_registerLegacyDescription","name","activeMarkers","formatBlock","schema","paragraph","start","downcastDispatcher","createUIElement","editor","consume","showSuggestionHighlights","writer","ck-suggestion-marker-split","commandName","editing","registerDescriptionCallback","has","afterInit"];var cx,lx;cx=ax,lx=331,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const ux=function(t,e){return ax[t-=0]};class dx extends t.Plugin{[ux("0xb")](){const t=this[ux("0x2")];if(!t[ux("0x20")][ux("0xa")](ux("0xf")))return;const e=t.locale,n=t[ux("0x20")][ux("0x29")](ux("0x14"));n._descriptionFactory.registerElementLabel("paragraph",(t=>Qo(e,"ELEMENT_PARAGRAPH",t))),n[ux("0x25")](ux("0x2f")),n[ux("0x1c")]("insertParagraph"),t[ux("0x8")][ux("0x0")].on(ux("0xe"),gx(t),{priority:ux("0x16")}),t[ux("0xc")][ux("0x0")].on(ux("0xe"),((e,n,o)=>{o[ux("0x13")][ux("0x4")]&&gx(t,{showActiveMarker:!1})(e,n,o)}),{priority:"highest"});const o=n[ux("0x10")];o.registerDescriptionCallback((n=>{if(ux("0x1d")!==n[ux("0x1b")])return;const{start:i,end:r}=n.getFirstRange();if(!i[ux("0x24")](r)||!i.nodeAfter)return;const s=t[ux("0x1f")][ux("0x2e")],x=i.nodeAfter;return s[ux("0x27")](x)&&!s[ux("0x23")](x)&&s.checkChild(x,ux("0x11"))?{type:ux("0x1d"),content:Qo(e,"*Insert:* %0",o[ux("0x28")](x,1))}:void 0})),this[ux("0x2a")]()}[ux("0x2a")](){const t=this[ux("0x2")],e=t[ux("0x15")];t[ux("0x20")][ux("0x29")](ux("0x14"))[ux("0x10")][ux("0x9")]((t=>{if(ux("0x2d")!=t[ux("0x1b")])return;const{data:n}=t;return n&&ux("0x2f")==n[ux("0x7")]?{type:"format",content:Qo(e,ux("0x12"),Qo(e,ux("0x22")))}:void 0}))}}function gx(t,{showActiveMarker:e=!0}={}){return(n,o,i)=>{const r=t[ux("0x20")].get(ux("0x14")),s=o[ux("0x19")][ux("0x30")],x=o[ux("0x19")][ux("0x1e")],a=t.model.schema;if(!s[ux("0x24")](x)||!s[ux("0xd")])return;const c=s[ux("0xd")];if(a[ux("0x27")](c)&&!a.isLimit(c)&&a[ux("0x26")](c,"$text")){if(!i.consumable[ux("0x3")](o[ux("0x19")],n[ux("0x2b")]))return;const t=i[ux("0x5")][ux("0x1")](ux("0x17"),{class:ux("0x6")}),s=i[ux("0x21")][ux("0x1a")](x);e&&r[ux("0x2c")].includes(o.markerName)&&i[ux("0x5")].addClass("ck-suggestion-marker--active",t),i.writer.insert(s,t),i[ux("0x21")][ux("0x18")](t,o.markerName)}}}const fx=["editor","plugins","get","_descriptionFactory","RemoveFormatEditing","_registerLegacyDescription","enableDefaultIntegration","TrackChangesEditing","has","formatBlock","locale","*Remove all formatting*","formatInline","afterInit","format","type","commandName"];var mx,hx;mx=fx,hx=150,function(t){for(;--t;)mx.push(mx.shift())}(++hx);const px=function(t,e){return fx[t-=0]};class bx extends t.Plugin{[px("0x10")](){const t=this[px("0x3")];t[px("0x4")][px("0xb")](px("0x7"))&&(t.plugins[px("0x5")](px("0xa"))[px("0x9")]("removeFormat"),this._registerLegacyDescription())}[px("0x8")](){const t=this[px("0x3")];t.plugins[px("0x5")](px("0xa"))[px("0x6")].registerDescriptionCallback((e=>{if(px("0xc")!=e[px("0x1")]&&px("0xf")!=e[px("0x1")])return;const{data:n}=e;return n&&"removeFormat"==n[px("0x2")]?{type:px("0x0"),content:Qo(t[px("0xd")],px("0xe"))}:void 0}))}}const Ex=["get","enableCommand","acceptSelectedSuggestions","trackChanges","acceptSuggestion","afterInit","TrackChangesEditing","goToNextRestrictedEditingException","RestrictedEditingModeEditing","discardAllSuggestions","acceptAllSuggestions","discardSuggestion","has"];var _x,Tx;_x=Ex,Tx=132,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const yx=function(t,e){return Ex[t-=0]};class Cx extends t.Plugin{[yx("0x3")](){const t=this.editor;if(!t.plugins[yx("0xa")]("RestrictedEditingModeEditing"))return;const e=t.plugins.get(yx("0x4"));e[yx("0xc")]("goToPreviousRestrictedEditingException"),e[yx("0xc")](yx("0x5"));const n=t.plugins[yx("0xb")](yx("0x6"));n[yx("0xc")](yx("0x1")),n.enableCommand(yx("0x2")),n.enableCommand(yx("0x9")),n[yx("0xc")](yx("0x8")),n[yx("0xc")](yx("0x7")),n.enableCommand(yx("0x0")),n[yx("0xc")]("discardSelectedSuggestions")}}const Ax=["split","span","writer","createPositionBefore","ck-suggestion-marker--active","activeMarkers","consumable","ELEMENT_LINE_BREAK","includes","init","requires","model","locale","addMarker:suggestion","markerName","toViewPosition","mapper","editing","createUIElement","element","softBreak","merge","high","editor","registerElementLabel","shiftEnter","insert","get","plugins","downcastDispatcher","data","enableCommand","addMarker:suggestion:insertion","TrackChangesEditing","options"];var kx,Ix;kx=Ax,Ix=283,function(t){for(;--t;)kx.push(kx.shift())}(++Ix);const Rx=function(t,e){return Ax[t-=0]};class Sx extends t.Plugin{static get[Rx("0x7")](){return[ur.ShiftEnter]}[Rx("0x6")](){const t=this[Rx("0x14")],e=t[Rx("0x19")][Rx("0x18")](Rx("0x1e"));e[Rx("0x1c")](Rx("0x16")),t.editing.downcastDispatcher.on(Rx("0x1d"),Nx(t),{priority:"high"}),t[Rx("0xe")][Rx("0x1a")].on("addMarker:suggestion:deletion",Nx(t),{priority:Rx("0x13")}),t[Rx("0x1b")].downcastDispatcher.on(Rx("0xa"),((e,n,o)=>{o[Rx("0x1f")].showSuggestionHighlights&&Nx(t,{showActiveMarker:!1})(e,n,o)})),e._descriptionFactory[Rx("0x15")]("softBreak",(e=>Qo(t[Rx("0x9")],Rx("0x4"),e)))}}function Nx(t,{showActiveMarker:e=!0}={}){return(n,o,i)=>{const r=t[Rx("0x19")][Rx("0x18")](Rx("0x1e"));if(!i[Rx("0x3")].test(o.markerRange,n.name))return;const s=t[Rx("0x8")];for(const t of o.markerRange.getItems()){if(!t.is(Rx("0x10"),Rx("0x11")))continue;const n="deletion"==o[Rx("0xb")][Rx("0x20")](":")[1]?Rx("0x12"):Rx("0x20"),x=i[Rx("0x22")][Rx("0xf")](Rx("0x21"),{class:"ck-suggestion-marker-"+n}),a=i[Rx("0xd")][Rx("0xc")](s[Rx("0x0")](t));e&&r[Rx("0x2")][Rx("0x5")](o[Rx("0xb")])&&i.writer.addClass(Rx("0x1"),x),i[Rx("0x22")][Rx("0x17")](a,x),i.mapper.bindElementToMarker(x,o[Rx("0xb")])}}}const vx=["isCollapsed","StandardEditingModeEditing","TrackChangesEditing","forceValue","editor","enableCommand","formatBlock","markInlineFormat","document","commandParams","selection","change","_descriptionFactory","from","plugins","commands","get","value","type","FORMAT_RESTRICTED_ENABLED","commandName","getRanges","formatInline"];var Lx,Mx;Lx=vx,Mx=344,function(t){for(;--t;)Lx.push(Lx.shift())}(++Mx);const Ox=function(t,e){return vx[t-=0]};class wx extends t.Plugin{afterInit(){const t=this[Ox("0x5")],e=t.model,n=t.locale;if(!t[Ox("0xf")].has(Ox("0x2")))return;const o=t[Ox("0xf")][Ox("0x11")](Ox("0x3")),i="restrictedEditingException",r=t[Ox("0x10")].get(i);o[Ox("0x6")](i,((t,n={})=>{const s=e[Ox("0x9")][Ox("0xb")];if(s[Ox("0x1")])return void t(n);const x=void 0!==n.forceValue?n[Ox("0x4")]:!r[Ox("0x12")];e[Ox("0xc")]((()=>{const t=Array[Ox("0xe")](s[Ox("0x16")]());for(const n of t){const t=x?[n]:$i(i,n,e);for(const e of t)o[Ox("0x8")](e,{commandName:i,commandParams:[{forceValue:x}]})}}))})),o[Ox("0xd")].registerDescriptionCallback((t=>{if(Ox("0x7")!=t[Ox("0x13")]&&Ox("0x0")!=t[Ox("0x13")])return;const{data:e}=t;return e&&e[Ox("0x15")]==i?e[Ox("0xa")][0][Ox("0x4")]?{type:"format",content:Qo(n,Ox("0x14"))}:{type:"format",content:Qo(n,"FORMAT_RESTRICTED_DISABLED")}:void 0}))}}const Fx=["style","TrackChangesEditing","plugins","type","has","inline","editor","getGhsAttributeNameForElement","_descriptionFactory","registerInlineAttribute","ghsAttributes","formatInline","config","registerAttributeLabel","commandParams","_registerLegacyDescription","afterInit","get","StyleUtils","styleName","normalizeConfig","FORMAT_STYLE","DataSchema","commandName","element","enableDefaultIntegration","Style","forceValue","*Remove format:* %0","toLowerCase","add","registerBlockAttribute","GeneralHtmlSupport"];var Dx,Bx;Dx=Fx,Bx=153,function(t){for(;--t;)Dx.push(Dx.shift())}(++Bx);const Px=function(t,e){return Fx[t-=0]};class Ux extends t.Plugin{[Px("0x1c")](){const t=this.editor;if(!t[Px("0xe")][Px("0x10")](Px("0x5"))||!t[Px("0xe")][Px("0x10")](Px("0x1")))return;const e=t.plugins[Px("0x1d")](Px("0xd")),n=t.locale,o=t[Px("0x18")][Px("0x1d")]("style"),i=t[Px("0xe")][Px("0x1d")](Px("0xb")),r=t[Px("0xe")][Px("0x1d")](Px("0x1e"))[Px("0x20")](t[Px("0xe")].get(Px("0x1")),o.definitions);e[Px("0x4")](Px("0xc"));const s=new Set;for(const t of r.block){const e=i[Px("0x13")](t[Px("0x3")]);s.add(e)}const x=new Set;for(const t of r[Px("0x11")]){const e=i[Px("0x13")](t.element);x[Px("0x9")](e);for(const e of t[Px("0x16")])x.add(e)}for(const t of s)e[Px("0xa")](t),e[Px("0x14")][Px("0x19")](t,Qo(n,Px("0x0")));for(const t of x)e[Px("0x15")](t),e._descriptionFactory.registerAttributeLabel(t,Qo(n,Px("0x0")));this[Px("0x1b")]()}[Px("0x1b")](){const t=this[Px("0x12")],e=t.locale;t.plugins[Px("0x1d")](Px("0xd"))[Px("0x14")].registerDescriptionCallback((t=>{if("formatBlock"!=t.type&&Px("0x17")!=t[Px("0xf")])return;const{data:n}=t;return n&&Px("0xc")===n[Px("0x2")]?n.commandParams[0][Px("0x6")]?{type:"format",content:Qo(e,"*Set format:* %0",n[Px("0x1a")][0][Px("0x1f")].toLowerCase())}:{type:"format",content:Qo(e,Px("0x7"),n[Px("0x1a")][0].styleName[Px("0x8")]())}:void 0}))}}const jx=["createRangeOn","oldRange","document","ELEMENT_TABLE_COLUMN","push","createTableWalker","ELEMENT_TABLE_ROW_WITH_TEXT","_splitMarkerName","selection","getColumnIndexes","minColumn","MAX_SAFE_INTEGER","MIN_SAFE_INTEGER","*Insert:* %0","cell","nodeBefore","writer","removeTableRow","addRange","isIntersectingWithRange","enableCommand","removeClass","_getCoordsForCells","addMarker:suggestion","markMultiRangeInsertion","findAncestor","type","first","ELEMENT_TABLE_ROW","getChangedMarkers","deletion","model","ELEMENT_TABLE_COLUMN_WITH_TEXT","getCellLocation","options","rootName","tableColumn","commands","TrackChangesEditing","substr","insertTableColumnLeft","isEqual","isInContent","batch","addClass","name","start","from","$textProxy","TableUtils","element","change:data","root","data","suggestion","afterInit","length","change","registerCustomCallback","_suggestionFactory","getAttribute","removeTableColumn","span","toLowerCase","some","discard","has","forceValue","_setupColumnsRowsFixing","getChanges","nodeAfter","ELEMENT_TABLE","tableRow","createPositionAt","registerDescriptionCallback","getRanges","getChildren","*Remove:* %0","insert","max","differ","values","getSelectionAffectedTableCells","_acceptFormatSuggestionCallbackFactory","hasAttribute","refresh","startsWith","get","$graveyard","position","last","plugins","ELEMENT_TABLE_WITH_TEXT","low","tablePaste","classes","fromRange","left","showSuggestionHighlights","subType","getRowIndexes","getFirstRange","insertion","add","minRow","detach","tableCell","map","locale","_tableSuggestions","markMultiRangeDeletion","filter","end","accept","order","registerPostFixer","_tablePostFixingSubtypes","getItems","enqueueChange","insertTableRowAbove","table","rowspan","execute","registerElementLabel","includes","selectTableColumn","maxRow","selectTableRow","_getSuggestionCoords","isArray","editor","join","_descriptionFactory","setSelection","TableEditing"];var Gx,Hx;Gx=jx,Hx=475,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const Vx=function(t,e){return jx[t-=0]};class zx extends t.Plugin{constructor(t){super(t),this[Vx("0x2e")]=[Vx("0x2"),"tableColumn"],this[Vx("0x27")]=new Set}[Vx("0x78")](){const t=this.editor,e=t[Vx("0x60")].document[Vx("0x49")];if(!t[Vx("0x15")][Vx("0x83")](Vx("0x40")))return;const n=t[Vx("0x26")],o=t[Vx("0x15")][Vx("0x11")](Vx("0x67")),i=t.plugins[Vx("0x11")](Vx("0x72"));o[Vx("0x3e")][Vx("0x35")](Vx("0x32"),(t=>Qo(n,Vx("0x1"),t))),this[Vx("0x85")](),o[Vx("0x55")]("insertTable"),o[Vx("0x55")](Vx("0x39")),o[Vx("0x55")](Vx("0x37"));for(const n of[Vx("0x31"),"insertTableRowBelow"]){const r=t[Vx("0x66")][Vx("0x11")](n);o[Vx("0x55")](n,(n=>{t.model.change((t=>{n();const s="above"===r[Vx("0x2c")],x=i.getSelectionAffectedTableCells(e),a=i[Vx("0x1e")](x),c=s?a.first-1:a[Vx("0x14")]+1,l=x[0].findAncestor("table"),u=i[Vx("0x46")](l,{startRow:c,endRow:c}),d=Array[Vx("0x70")](u)[Vx("0x25")]((e=>t.createRangeOn(e[Vx("0x4f")])));o[Vx("0x59")](d,Vx("0x2"))}))}))}for(const n of[Vx("0x69"),"insertTableColumnRight"]){const r=t[Vx("0x66")][Vx("0x11")](n);o.enableCommand(n,(n=>{t[Vx("0x60")][Vx("0x7a")]((t=>{n();const s=Vx("0x1b")===r[Vx("0x2c")],x=i[Vx("0xc")](e),a=i[Vx("0x4a")](x),c=s?a[Vx("0x5c")]-1:a[Vx("0x14")]+1,l=x[0].findAncestor(Vx("0x32")),u=i[Vx("0x46")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Vx("0x70")](u)[Vx("0x25")]((e=>t[Vx("0x41")](e[Vx("0x4f")])));o[Vx("0x59")](d,Vx("0x65"))}))}))}for(const n of[Vx("0x52"),Vx("0x7e")]){const r=n[Vx("0x68")](11),s=r[Vx("0x80")](),x=s.substr(0,3)+Vx("0x7f"),a=Vx("0x32")+r,c="min"+r,l=Vx("0x9")+r;o[Vx("0x55")](n,(()=>{t.model[Vx("0x7a")]((t=>{const r=i.getSelectionAffectedTableCells(e),u=r[0][Vx("0x5a")](Vx("0x32"));let d;if(Vx("0x52")==n){const t=i[Vx("0x1e")](r);d={startRow:t[Vx("0x5c")],endRow:t[Vx("0x14")],includeAllSlots:!0}}else{const t=i.getColumnIndexes(r);d={startColumn:t.first,endColumn:t[Vx("0x14")],includeAllSlots:!0}}const g=i[Vx("0x46")](u,d),f=Array[Vx("0x70")](g)[Vx("0x25")]((({cell:t})=>t)),m=Wx(f.filter((t=>t[Vx("0xe")](x)))),h=Wx(f[Vx("0x29")]((t=>!t[Vx("0xe")](x))))[Vx("0x25")]((e=>t[Vx("0x41")](e))),p=o[Vx("0x28")](h,a);if(p&&(Vx("0x2")==p[Vx("0x1d")]||Vx("0x65")==p[Vx("0x1d")])){const e=this._getSuggestionCoords(p);for(const n of m){const o=t[Vx("0x41")](n),r=i[Vx("0x62")](n),a=n[Vx("0x7d")](x)-1,u=e[c],d=e[l];u<=r[s]&&r[s]+a<=d&&p[Vx("0x53")](o)}}}))}))}function r(n){const o=Array[Vx("0x70")](e[Vx("0x5")]()).map((t=>s.LiveRange[Vx("0x1a")](t)));t[Vx("0x60")][Vx("0x7a")]((e=>{const i=e[Vx("0x6c")];n=n[Vx("0x29")]((t=>Vx("0x12")!=t.root[Vx("0x64")])),e[Vx("0x3f")](n),t[Vx("0x66")][Vx("0x11")](Vx("0x52")).refresh(),t[Vx("0x34")](Vx("0x52"),{forceDefaultExecution:!0}),t[Vx("0x60")][Vx("0x30")]((()=>{t.model[Vx("0x30")](i,(t=>{const e=o[Vx("0x29")]((t=>Vx("0x12")!=t[Vx("0x75")][Vx("0x64")]));e.length>0&&t.setSelection(e);for(const t of o)t[Vx("0x23")]()}))}))}))}function a(n){t[Vx("0x60")][Vx("0x7a")]((o=>{const i=Array[Vx("0x70")](e.getRanges())[Vx("0x25")]((t=>s.LiveRange[Vx("0x1a")](t))),r=[];for(const t of n)for(const e of t[Vx("0x2f")]({shallow:!0}))r[Vx("0x45")](e);for(const e of r)Vx("0x12")!=e.root[Vx("0x64")]&&(o[Vx("0x3f")](o[Vx("0x3")](e,0)),t.commands.get("removeTableColumn")[Vx("0xf")](),t[Vx("0x34")](Vx("0x7e"),{forceDefaultExecution:!0}));const x=i[Vx("0x29")]((t=>"$graveyard"!=t[Vx("0x75")][Vx("0x64")]));x[Vx("0x79")]>0&&o.setSelection(x);for(const t of i)t[Vx("0x23")]()}))}function c(t,e){return e.every((e=>t[Vx("0x81")]((t=>t[Vx("0x2a")][Vx("0x6a")](e[Vx("0x6f")])||e[Vx("0x2a")][Vx("0x6a")](t[Vx("0x6f")])))))}function l(t,e){return t.some((t=>e[Vx("0x81")]((e=>t[Vx("0x2a")].isTouching(e[Vx("0x6f")])))))}t[Vx("0x76")].downcastDispatcher.on(Vx("0x58"),((t,e,n)=>{if(!n[Vx("0x63")][Vx("0x1c")])return;const o=e.item;if(!o)return;const i=n.mapper.toViewElement(o);function r(t){return Array[Vx("0x3b")](t)?t:[t]}i&&Vx("0x24")===o[Vx("0x6e")]&&(0,x.setHighlightHandling)(i,n[Vx("0x51")],((t,e,n)=>n[Vx("0x6d")](r(e[Vx("0x19")]),t)),((t,e,n)=>n[Vx("0x56")](r(e[Vx("0x19")]),t)))}),{priority:"highest"}),o[Vx("0x3e")][Vx("0x4")]((t=>{if(Vx("0x20")!=t[Vx("0x5b")]&&Vx("0x5f")!=t[Vx("0x5b")])return;const e=t.getContainedElement();if(null!=e&&e.is(Vx("0x73"),Vx("0x32"))){if("insertion"==t[Vx("0x5b")]){const e=t.getItems()[Vx("0x29")]((t=>t.is("$textProxy")))[Vx("0x25")]((t=>t[Vx("0x76")]));if(e.length)return{type:Vx("0x20"),content:Qo(n,Vx("0x4e"),Qo(n,Vx("0x16"),'"'+e[Vx("0x3d")](" ")+'"'))}}if("deletion"==t[Vx("0x5b")]){const e=t.getItems()[Vx("0x29")]((t=>t.is(Vx("0x71"))))[Vx("0x25")]((t=>t[Vx("0x76")]));if(e[Vx("0x79")])return{type:Vx("0x5f"),content:Qo(n,Vx("0x7"),Qo(n,Vx("0x16"),'"'+e.join(" ")+'"'))}}}})),o[Vx("0x3e")].registerDescriptionCallback((t=>{if(Vx("0x2")==t.subType){const e=t[Vx("0x2f")]()[Vx("0x29")]((t=>t.is(Vx("0x71")))).map((t=>t[Vx("0x76")])),o=this[Vx("0x3a")](t),i=o[Vx("0x38")]-o[Vx("0x22")]+1;if("insertion"==t[Vx("0x5b")])return e[Vx("0x79")]?{type:Vx("0x20"),content:Qo(n,Vx("0x4e"),Qo(n,Vx("0x47"),[i,'"'+e.join(" ")+'"']))}:{type:"insertion",content:Qo(n,Vx("0x4e"),Qo(n,Vx("0x5d"),i))};if(Vx("0x5f")==t[Vx("0x5b")])return e.length?{type:Vx("0x5f"),content:Qo(n,Vx("0x7"),Qo(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[i,'"'+e[Vx("0x3d")](" ")+'"']))}:{type:Vx("0x5f"),content:Qo(n,Vx("0x7"),Qo(n,Vx("0x5d"),i))}}if(Vx("0x65")==t.subType){const e=t[Vx("0x2f")]()[Vx("0x29")]((t=>t.is("$textProxy")))[Vx("0x25")]((t=>t.data)),o=this[Vx("0x3a")](t),i=o.maxColumn-o[Vx("0x4b")]+1;if(Vx("0x20")==t[Vx("0x5b")])return e[Vx("0x79")]?{type:Vx("0x20"),content:Qo(n,Vx("0x4e"),Qo(n,Vx("0x61"),[i,'"'+e[Vx("0x3d")](" ")+'"']))}:{type:Vx("0x20"),content:Qo(n,Vx("0x4e"),Qo(n,Vx("0x44"),i))};if(Vx("0x5f")==t[Vx("0x5b")])return e[Vx("0x79")]?{type:Vx("0x5f"),content:Qo(n,Vx("0x7"),Qo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[i,'"'+e[Vx("0x3d")](" ")+'"']))}:{type:Vx("0x5f"),content:Qo(n,"*Remove:* %0",Qo(n,Vx("0x44"),i))}}})),o[Vx("0x7c")].registerCustomCallback(Vx("0x20"),Vx("0x2"),Vx("0x82"),r),o[Vx("0x7c")][Vx("0x7b")]("deletion",Vx("0x2"),Vx("0x2b"),r),o[Vx("0x7c")][Vx("0x7b")]("insertion","tableColumn",Vx("0x82"),a),o[Vx("0x7c")][Vx("0x7b")]("deletion",Vx("0x65"),Vx("0x2b"),a),o[Vx("0x7c")].registerCustomCallback(Vx("0x20"),Vx("0x65"),"join",c),o[Vx("0x7c")][Vx("0x7b")](Vx("0x5f"),Vx("0x65"),Vx("0x3d"),c),o[Vx("0x7c")][Vx("0x7b")](Vx("0x20"),"tableRow",Vx("0x3d"),l),o[Vx("0x7c")][Vx("0x7b")](Vx("0x5f"),"tableRow",Vx("0x3d"),l)}[Vx("0xd")](){const t=this.editor,e=t[Vx("0x60")][Vx("0x43")][Vx("0x49")];return(n,o)=>{t[Vx("0x60")][Vx("0x7a")]((i=>{const{commandName:r,commandParams:x}=o;let a=n[0][Vx("0x2a")][Vx("0x50")];x&&x[0]&&!1===x[0][Vx("0x84")]&&(a=n[0].start.nodeAfter);const c=i.createRangeIn(a);if(Vx("0x12")==c.root[Vx("0x64")])return;const l=Array[Vx("0x70")](e[Vx("0x5")]())[Vx("0x25")]((t=>s.LiveRange.fromRange(t)));i.setSelection(c),t[Vx("0x66")][Vx("0x11")](r).refresh(),x[Vx("0x45")]({forceDefaultExecution:!0}),t.execute(r,...x);const u=l[Vx("0x29")]((t=>Vx("0x12")!=t[Vx("0x75")][Vx("0x64")]));u[Vx("0x79")]>0&&i.setSelection(u);for(const t of l)t[Vx("0x23")]()}))}}[Vx("0x57")](t){const e=this[Vx("0x3c")][Vx("0x15")][Vx("0x11")](Vx("0x72"));let n=Number[Vx("0x4c")],o=Number[Vx("0x4d")],i=Number[Vx("0x4c")],r=Number[Vx("0x4d")];for(const s of t){if("$graveyard"==s[Vx("0x75")][Vx("0x64")])continue;const{row:t,column:x}=e[Vx("0x62")](s),a=s[Vx("0xe")](Vx("0x33"))?s.getAttribute(Vx("0x33"))-1:0,c=s[Vx("0xe")]("colspan")?s[Vx("0x7d")]("colspan")-1:0;n=t<n?t:n,o=t+a>o?t+a:o,i=x<i?x:i,r=x+c>r?x+c:r}return{minRow:n,maxRow:o,minColumn:i,maxColumn:r}}[Vx("0x85")](){const t=this.editor,e=t[Vx("0x15")].get("TrackChangesEditing"),n=t.plugins[Vx("0x11")](Vx("0x72"));t[Vx("0x60")].document.on(Vx("0x74"),(()=>{const n=Array.from(t[Vx("0x60")][Vx("0x43")][Vx("0xa")][Vx("0x5e")]());for(const{name:t,data:o}of n){const{group:n,id:i,subType:r}=e[Vx("0x48")](t);if(Vx("0x77")!=n)continue;if(null!=o[Vx("0x42")])continue;const s=e.getSuggestion(i);this[Vx("0x2e")][Vx("0x36")](r)&&this[Vx("0x27")][Vx("0x21")](s)}}),{priority:Vx("0x17")});const o=(t,e)=>{let o=!1;const i=e.createRangeOn(t),r=t[Vx("0x5a")](Vx("0x32")),s=n[Vx("0x62")](t);for(const e of this[Vx("0x27")]){const n=e.subType,x=n[Vx("0x10")](Vx("0x18")),a=n.substr(x?10:5),c=a[Vx("0x80")](),l=c[Vx("0x68")](0,3)+Vx("0x7f"),u="min"+a,d=Vx("0x9")+a;if(!e[Vx("0x6b")])continue;if(r!=e[Vx("0x1f")]()[Vx("0x6f")][Vx("0x5a")](Vx("0x32")))continue;if(e[Vx("0x54")](i))continue;const g=t.hasAttribute(l)?t.getAttribute(l)-1:0,f=this[Vx("0x3a")](e),m=f[u],h=f[d];m<=s[c]&&s[c]+g<=h&&(e[Vx("0x53")](i),o=!0)}return o};t[Vx("0x60")].document[Vx("0x2d")]((e=>{let n=!1;for(const i of t[Vx("0x60")][Vx("0x43")][Vx("0xa")][Vx("0x86")]())if(Vx("0x8")==i[Vx("0x5b")])if("tableRow"==i[Vx("0x6e")])for(const t of i[Vx("0x13")].nodeAfter[Vx("0x6")]())n=n||o(t,e);else Vx("0x24")==i.name&&(n=n||o(i[Vx("0x13")][Vx("0x0")],e));return n}))}[Vx("0x3a")](t){return this[Vx("0x57")](t[Vx("0x5")]()[Vx("0x25")]((t=>t[Vx("0x6f")][Vx("0x0")])))}}function Wx(t){return Array[Vx("0x70")](new Set(t)[Vx("0xb")]())}const Kx=["getSuggestions","plugins","isEnabled","insertion","selection","low","findAncestor","editor","subType","deletion","get","set:isEnabled","model","formatInline","change","accept","table","registerCustomCallback","getSelectionAffectedTableCells","getRanges","registerDescriptionCallback","TrackChangesEditing","TableUtils","formatBlock","push","trackChanges","*Split cell:* vertically","has","horizontally","splitTableCellHorizontally","filter","getFirstPosition","rootName","setSelection","getAncestors","type","locale","document","mergeTableCellDown","forceDefaultExecution","cell","isInContent","markBlockFormat","TableEditing","find","mergeTableCellUp","value","detach","createTableWalker","from","size","highest","author","format","enableCommand","mergeTableCells","*Merge cells*","*Split cell:* horizontally","_isForcedDefaultExecutionBlock","direction","containsRange","stop","commands","fromRange","splitTableCellVertically","tableCell","refresh","add","createRangeOn","$graveyard","mergeTableCellLeft","_areSelectedCellsMergable","_suggestionFactory","length","execute","map","mergeTableCellRight","_areMergableCells","commandName","_acceptFormatSuggestionCallbackFactory","element"];var qx,$x;qx=Kx,$x=378,function(t){for(;--t;)qx.push(qx.shift())}(++$x);const Xx=function(t,e){return Kx[t-=0]};class Yx extends t.Plugin{static get requires(){return[zx]}afterInit(){const t=this.editor,e=t[Xx("0x27")][Xx("0x40")].selection,n=t[Xx("0x3f")];if(!t.plugins[Xx("0x36")](Xx("0x46")))return;const o=t[Xx("0x1c")][Xx("0x25")](Xx("0x30")),i=t[Xx("0x1c")].get(Xx("0x31")),r=t[Xx("0x1c")][Xx("0x25")](zx);r._tablePostFixingSubtypes[Xx("0x33")]("mergeTableCells"),o[Xx("0x0")](Xx("0x1"),(()=>{const e=i[Xx("0x2d")](t[Xx("0x27")].document.selection);t[Xx("0x27")].change((()=>{o.markMultiRangeBlockFormat(e,{commandName:Xx("0x1"),commandParams:[]},[],Xx("0x1"))}))})),t[Xx("0x8")].get(Xx("0x1")).on(Xx("0x14"),((e,n)=>{t[Xx("0x8")].get(Xx("0x34")).value&&(n[Xx("0x13")]>0&&n[n[Xx("0x13")]-1]&&n[n[Xx("0x13")]-1][Xx("0x42")]||o[Xx("0x4")]||this[Xx("0x11")]()||e[Xx("0x7")]())}),{priority:Xx("0x4e")});for(const e of[Xx("0x48"),Xx("0x16"),Xx("0x41"),Xx("0x10")]){const n=t[Xx("0x8")][Xx("0x25")](e);o[Xx("0x0")](e,(()=>{const e=t[Xx("0x27")][Xx("0x40")].selection[Xx("0x3a")]()[Xx("0x3d")]()[Xx("0x47")]((t=>t.is(Xx("0x1a"),Xx("0xb")))),i=n[Xx("0x49")];t[Xx("0x27")][Xx("0x29")]((()=>{o.markMultiRangeBlockFormat([e,i],{commandName:"mergeTableCells",commandParams:[]},[],Xx("0x1"))}))}))}for(const e of[Xx("0xa"),Xx("0x38")]){const n=t[Xx("0x8")][Xx("0x25")](e);o[Xx("0x0")](e,(()=>{const r=i.getSelectionAffectedTableCells(t[Xx("0x27")][Xx("0x40")].selection)[0],s=r[Xx("0x21")](Xx("0x2b")),{column:x,row:a}=i.getCellLocation(r);let c=[];if(Xx("0x37")==n[Xx("0x5")]){const t=i.createTableWalker(s,{startRow:a,endRow:a,includeAllSlots:!0});c=Array.from(t).map((t=>t[Xx("0x43")]))}else{const t=i[Xx("0x4b")](s,{column:x,includeAllSlots:!0});c=Array[Xx("0x4c")](t)[Xx("0x15")]((t=>t[Xx("0x43")]))}t[Xx("0x27")].change((t=>{o[Xx("0x45")](t.createRangeOn(r),{commandName:e,commandParams:[]},c,e)}))}))}o._descriptionFactory[Xx("0x2f")]((t=>{if(Xx("0x32")!=t[Xx("0x3e")]&&"formatInline"!=t.type)return;const{data:e}=t;return e&&Xx("0x1")==e[Xx("0x18")]?{type:"format",content:Qo(n,Xx("0x2"))}:void 0})),o._descriptionFactory[Xx("0x2f")]((t=>{if("formatBlock"!=t[Xx("0x3e")]&&Xx("0x28")!=t[Xx("0x3e")])return;const{data:e}=t;return e?Xx("0xa")==e[Xx("0x18")]?{type:Xx("0x50"),content:Qo(n,Xx("0x35"))}:Xx("0x38")==e[Xx("0x18")]?{type:Xx("0x50"),content:Qo(n,Xx("0x3"))}:void 0:void 0}));const x=r[Xx("0x19")]();for(const t of[Xx("0x48"),Xx("0x16"),Xx("0x41"),Xx("0x10")])o[Xx("0x12")][Xx("0x2c")]("formatBlock",t,Xx("0x2a"),x);for(const t of[Xx("0xa"),Xx("0x38")])o[Xx("0x12")].registerCustomCallback(Xx("0x32"),t,Xx("0x2a"),x);o[Xx("0x12")][Xx("0x2c")](Xx("0x32"),Xx("0x1"),Xx("0x2a"),(n=>{t[Xx("0x27")].change((o=>{const i=Array[Xx("0x4c")](e.getRanges()).map((t=>s.LiveRange[Xx("0x9")](t)));o[Xx("0x3c")](n),t[Xx("0x8")][Xx("0x25")](Xx("0x1"))[Xx("0xc")](),t.execute("mergeTableCells",{forceDefaultExecution:!0});const r=i[Xx("0x39")]((t=>Xx("0xf")!=t.root[Xx("0x3b")]));r.length>0&&o.setSelection(r);for(const t of i)t[Xx("0x4a")]()}))}));for(const e of["mergeTableCellUp","mergeTableCellDown","mergeTableCellLeft",Xx("0x16")]){const n=t.commands.get(e);n.on(Xx("0x26"),((e,o,i)=>{if(i){const o=t[Xx("0x27")][Xx("0x40")].selection[Xx("0x3a")]()[Xx("0x3d")]()[Xx("0x47")]((t=>t.is(Xx("0x1a"),"tableCell")));this[Xx("0x17")](n[Xx("0x49")],o)||(e.return=!1,e[Xx("0x7")]())}}),{priority:Xx("0x20")})}}_areSelectedCellsMergable(){const t=this.editor[Xx("0x8")][Xx("0x25")](Xx("0x1")),e=this.editor[Xx("0x1c")].get("TableUtils");if(!t[Xx("0x1d")])return!1;const n=e[Xx("0x2d")](this[Xx("0x22")].model[Xx("0x40")][Xx("0x1f")]);for(const t of n)for(const e of n)if(t!=e&&!this._areMergableCells(t,e))return!1;return!0}[Xx("0x17")](t,e){const n=this[Xx("0x22")].plugins[Xx("0x25")](Xx("0x30")),o=this[Xx("0x22")][Xx("0x27")][Xx("0xe")](t),i=this[Xx("0x22")].model.createRangeOn(e),r=new Set,s=new Set;for(const t of n[Xx("0x1b")]())if((Xx("0x1e")==t[Xx("0x3e")]||Xx("0x24")==t[Xx("0x3e")]||"mergeTableCells"==t[Xx("0x23")])&&t[Xx("0x44")])for(const e of t[Xx("0x2e")]())e[Xx("0x6")](o,!0)&&r[Xx("0xd")](t.type+":"+t[Xx("0x4f")].id),e[Xx("0x6")](i,!0)&&s[Xx("0xd")](t.type+":"+t.author.id);if(r[Xx("0x4d")]!=s.size)return!1;for(const t of r)if(!s[Xx("0x36")](t))return!1;return!0}}const Zx=["editor","format","requires","key","_descriptionFactory","setTableRowHeader","get","forceValue","FORMAT_HEADER_ROW","TrackChangesEditing","plugins","registerDescriptionCallback","*Format:* %0","headingColumns","FORMAT_HEADER_COLUMN","FORMAT_REGULAR_ROW","type","locale","commandName","FORMAT_REGULAR_COLUMN","oldValue","newValue","enableDefaultIntegration","_registerLegacyDescription","formatBlock"];var Jx,Qx;Jx=Zx,Qx=251,function(t){for(;--t;)Jx.push(Jx.shift())}(++Qx);const ta=function(t,e){return Zx[t-=0]};class ea extends t.Plugin{static get[ta("0x1")](){return[zx]}afterInit(){const t=this[ta("0x18")];if(!t[ta("0x9")].has("TableEditing"))return;const e=t[ta("0x10")],n=t[ta("0x9")][ta("0x5")]("TrackChangesEditing");function o(t){return{type:"format",content:Qo(e,ta("0xb"),t)}}n[ta("0x15")](ta("0x4"),[],["headingRows"]),n[ta("0x15")]("setTableColumnHeader",[],[ta("0xc")]),n._descriptionFactory[ta("0xa")]((t=>{const{data:n}=t;if(n)return"headingRows"==n[ta("0x2")]?n[ta("0x14")]>n[ta("0x13")]?o(Qo(e,ta("0x7"))):o(Qo(e,"FORMAT_REGULAR_ROW")):ta("0xc")==n[ta("0x2")]?n[ta("0x14")]>n[ta("0x13")]?o(Qo(e,ta("0xd"))):o(Qo(e,ta("0x12"))):void 0})),this[ta("0x16")]()}[ta("0x16")](){const t=this[ta("0x18")],e=t[ta("0x10")];function n(t){return{type:ta("0x0"),content:Qo(e,ta("0xb"),t)}}t[ta("0x9")][ta("0x5")](ta("0x8"))[ta("0x3")].registerDescriptionCallback((t=>{if(ta("0x17")!=t[ta("0xf")])return;const{data:o}=t;if(o){if(ta("0x4")==o.commandName){const t=o.commandParams[0][ta("0x6")];return n(Qo(e,t?"FORMAT_HEADER_ROW":ta("0xe")))}if("setTableColumnHeader"==o[ta("0x11")]){const t=o.commandParams[0].forceValue;return n(Qo(e,ta(t?"0xd":"0x12")))}}}))}}const na=["markerAttributes","columnInsertionIndexes","newRange","ck-suggestion-marker","markMultiRangeInsertion","markMultiRangeDeletion","fill","isEqual","createPositionBefore","add","conversion","markers","cell","formatBlock","model","filter","createRange","getAttributes","createRangeOn","accept","getColumns","markMultiRangeBlockFormat","nodeAfter","getAllAdjacentSuggestions","reduce","updateMarker","tableCellPadding","plugins","row","name","table","tablePaste","unwrap","discard","removeRows","cells","tableCellVerticalAlignment","setAttributes","Users","columnInsertionRanges","registerDescriptionCallback","endColumn","tableCellBackgroundColor","attributes","length","nextSibling","entries","return","forceDefaultExecution","insertContent","wrap","previous","createRangeIn","getRange","value","keys","get","registerPostFixer","getSuggestions","start","documentSelection","getChild","activeMarkers","insertion","locale","_splitMarkerName","batch","registerCustomCallback","low","_replaceTableSlotCell","getTableIfOnlyTableInContent","every","deletionRanges","columns","suggestion-td","afterInit","tablePasteChainId","rowInsertionRanges","suggestion","elementToElement","removeColumns","tableCellSuggestion","first","requires","last","removeMarker","selection","set","from","suggestion:formatBlock:tablePasteCell","stop","tablePasteColumn","removeMarkers","join","author","document","tableCellBorderColor","tablePasteRow","paragraph","getSuggestion","push","position","has","findAncestor","insertRows","TableUtils","rows","view","isInContent","end","suggestionUnloaded","createElement","startsWith","editor","subType","rowInsertionIndexes","root","type","trackChanges","getMarkers","dataDowncast","change","editing","options","getRows","schema","commands","createTableWalker","some","clipboardOutput","redo","tableCellBorderStyle","for","element","map","insert","high","$graveyard","tableCellBorderWidth","markerName","_suggestionFactory","setAttribute","next","remove","tablePasteCell","getRanges","TrackChangesEditing","ck-suggestion-marker-insertion","deletion","tableCell","markerToHighlight","differ","isEmpty","getRowIndexes","containsRange","tableCellHorizontalAlignment","_createdBatches","endRow","insertionRanges","getColumnIndexes","getContainedElement","fromEntries","includes","_getCoordsForCells","getChangedMarkers","_tablePostFixingSubtypes","TableClipboard","insertColumns","getChanges","column","oldRange","find","_descriptionFactory"];var oa,ia;oa=na,ia=250,function(t){for(;--t;)oa.push(oa.shift())}(++ia);const ra=function(t,e){return na[t-=0]},sa=[ra("0x3d"),ra("0x13"),ra("0x36"),ra("0x4e"),ra("0x84"),ra("0x8a"),ra("0x7a")],xa=Object[ra("0x54")](sa[ra("0x39")]((t=>[t,null])));class aa extends t.Plugin{static get[ra("0x6")](){return[zx]}[ra("0xab")](){const t=this[ra("0x24")];if(!t[ra("0x7b")].has(ra("0x59")))return;const n=t[ra("0x7b")].get(ra("0x45")),o=t[ra("0x7b")].get(ra("0x1c")),i=t[ra("0x7b")].get(zx),r=t[ra("0x7b")][ra("0x98")](ra("0x59"));i[ra("0x58")][ra("0x17")]("tablePasteRow",ra("0xe")),t.model[ra("0x30")].register(ra("0x4"),{allowIn:ra("0x48"),allowContentOf:ra("0x48"),isLimit:!0}),t[ra("0x6a")][ra("0x2")]({model:ra("0x4"),view:ra("0xaa")});let s=null;t.model.on(ra("0x91"),((i,x)=>{const[a,c]=x,l=x[x[ra("0x8c")]-1];l&&l[ra("0x90")]||n._isForcedDefaultExecutionBlock||this[ra("0x24")][ra("0x31")][ra("0x98")](ra("0x29"))[ra("0x96")]&&function(t,e,n,o,i){if(e&&!e.is(ra("0x9c")))return!1;const r=i[ra("0xa6")](t,n);if(!r||!la(r,void 0,o))return!1;const s=o.getSelectionAffectedTableCells(n[ra("0x12")][ra("0x9")]);if(!s.length)return!1;const x=s[0][ra("0x1a")](ra("0x7e")),a=o[ra("0x4c")](s),c=o[ra("0x52")](s),l={startRow:a[ra("0x5")],endRow:a[ra("0x7")],startColumn:c.first,endColumn:c[ra("0x7")]};return 1==s[ra("0x8c")]&&(l[ra("0x50")]+=o[ra("0x2f")](r)-1,l[ra("0x89")]+=o[ra("0x74")](r)-1),la(x,l,o)}(a,c,t.model,o,r)&&(i[ra("0xd")](),s={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[ra("0x6e")][ra("0x2c")]((()=>{t[ra("0x6e")][ra("0x91")](x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:i,columnInsertionRanges:r,insertionRanges:a,deletionRanges:c,cells:l}=s;i[ra("0x8c")]&&n[ra("0x64")](i,ra("0x14"),{tablePasteChainId:o}),r[ra("0x8c")]&&n[ra("0x64")](r,ra("0xe"),{tablePasteChainId:o}),a[ra("0x8c")]&&n[ra("0x64")](a,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0}),c[ra("0x8c")]&&n[ra("0x65")](c,ra("0x7f"),{tablePasteChainId:o,skipNestingCheck:!0});const u=n[ra("0x75")](l.map((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],ra("0x43"),{tablePasteChainId:o});if(u){const e=u.getMarkers(),n=[];for(const{element:o,attributes:i}of l){if(!i)continue;const r=t[ra("0x6e")][ra("0x72")](o),s=e[ra("0x5e")]((t=>t[ra("0x95")]()[ra("0x67")](r)));s&&n.push([s.name,i])}n[ra("0x8c")]&&u[ra("0x40")](ra("0x60"),Object[ra("0x54")](n))}s=null})))}),{priority:e.priorities[ra("0x3b")]+10}),t[ra("0x7b")][ra("0x98")](ra("0x59")).on(ra("0xa5"),((t,e)=>{const[n,o,,i]=e;if(!s)return;t.stop();const r=n[ra("0x6c")],x=o,a=ca(r),c=ca(x);t[ra("0x8f")]=r;let l=null,u=null;if(c||a)if(a&&!c){i[ra("0x42")](r[ra("0x9d")](0));for(const t of Array[ra("0xb")](x.getChildren()))i.insert(t,r,ra("0x20"));const t=s[ra("0x26")][ra("0x55")](n[ra("0x7c")]),e=s[ra("0x61")][ra("0x55")](n[ra("0x5c")]);t||e||(l=i[ra("0x94")](r))}else c&&!a&&(u=i[ra("0x94")](r));else{const t=i[ra("0x22")](ra("0x4")),e=i.createElement(ra("0x4"));i[ra("0x92")](i[ra("0x94")](r),e),i.insert(t,r,0);for(const e of Array.from(x.getChildren()))i[ra("0x3a")](e,t,ra("0x20"));l=i[ra("0x72")](t),u=i.createRangeOn(e)}const d=Array[ra("0xb")](x[ra("0x71")]())[ra("0x6f")]((([t])=>sa.includes(t)));s.cells[ra("0x17")]({element:r,attributes:d[ra("0x8c")]?Object.fromEntries(d):null}),l&&s[ra("0x51")][ra("0x17")](l),u&&s[ra("0xa8")][ra("0x17")](u)}),{priority:ra("0x3b")}),o.on(ra("0x5a"),((e,n)=>{const[i,r={}]=n;if(!s)return;const x=r.at||0,a=r[ra("0xa9")]||1;s[ra("0x61")]=new Array(a)[ra("0x66")](x).map(((t,e)=>t+e));for(const{cell:e}of o[ra("0x32")](i,{startColumn:x,endColumn:x+a-1}))s[ra("0x87")].push(t[ra("0x6e")][ra("0x72")](e))}),{priority:ra("0xa4")}),o.on(ra("0x1b"),((e,n)=>{const[i,r={}]=n;if(!s)return;const x=r.at||0,a=r[ra("0x1d")]||1;s[ra("0x26")]=new Array(a).fill(x).map(((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(i,{startRow:x,endRow:x+a-1}))s[ra("0x0")][ra("0x17")](t[ra("0x6e")].createRangeOn(e))}),{priority:ra("0xa4")}),n[ra("0x5f")][ra("0x88")]((e=>{if(e[ra("0x25")]&&e[ra("0x25")].startsWith(ra("0x7f")))return e[ra("0x93")]?{}:{type:ra("0x9f"),content:Qo(t[ra("0xa0")],"*Replace table cells*")}}));const x=()=>!1;for(const t of[ra("0x7f"),"tablePasteColumn",ra("0x14"),ra("0x43")])n[ra("0x3f")][ra("0xa3")]("insertion",t,ra("0x10"),x),n[ra("0x3f")].registerCustomCallback("deletion",t,ra("0x10"),x),n[ra("0x3f")].registerCustomCallback(ra("0x6d"),t,ra("0x10"),x);n[ra("0x3f")][ra("0xa3")]("formatBlock",ra("0x43"),ra("0x81"),x),n[ra("0x3f")].registerCustomCallback(ra("0x6d"),"tablePasteCell",ra("0x73"),((e,n,o)=>{const i=e[ra("0x39")]((t=>t[ra("0x53")]())).filter((t=>t)),r=new Map(i[ra("0x39")]((t=>[t,null])));if(s)for(const{element:t,attributes:e}of s[ra("0x83")])e&&r.set(t,e);else if(o&&o.markerAttributes)for(const[e,n]of Object[ra("0x8e")](o.markerAttributes)){const o=t.model[ra("0x6b")][ra("0x98")](e),i=o?o[ra("0x95")]()[ra("0x53")]():null;i&&r[ra("0xa")](i,n)}t.model[ra("0x2c")]((t=>{for(const[e,n]of r)t[ra("0x85")]({...xa,...n},e)}))}));const a=(e,o)=>{n._suggestionFactory[ra("0xa3")](e,ra("0x7f"),o,((i,r,s)=>{t[ra("0x6e")][ra("0x2c")]((t=>{const x=[];for(const t of i){const e=t[ra("0x9b")][ra("0x76")];e.is(ra("0x38"),ra("0x4"))&&x[ra("0x17")](e)}n[ra("0x3f")].getSuggestionCallback(e,null,o)(i,r,s);for(const e of x)ra("0x3c")!=e[ra("0x27")].rootName&&t[ra("0x80")](e)}))}))};a(ra("0x9f"),ra("0x73")),a("insertion","discard"),a(ra("0x47"),ra("0x73")),a("deletion",ra("0x81")),n[ra("0x3f")][ra("0xa3")]("insertion",ra("0x14"),ra("0x81"),(t=>{const e=t[ra("0x39")]((t=>t[ra("0x53")]())),n=e[0][ra("0x1a")](ra("0x7e")),{minRow:r,maxRow:s}=i[ra("0x56")](e);o[ra("0x82")](n,{at:r,rows:s-r+1})})),n[ra("0x3f")].registerCustomCallback(ra("0x9f"),"tablePasteColumn",ra("0x81"),(t=>{const e=t[ra("0x39")]((t=>t[ra("0x53")]())),n=e[0][ra("0x1a")]("table"),{minColumn:r,maxColumn:s}=i[ra("0x56")](e);o[ra("0x3")](n,{at:r,columns:s-r+1})}));const c=(t,e)=>{if(!e[ra("0x25")]||!e[ra("0x25")][ra("0x23")](ra("0x7f")))return;const o=e[ra("0x8b")][ra("0xac")],i=n[ra("0x9a")]()[ra("0x6f")]((t=>t[ra("0x1f")]&&t[ra("0x8b")]&&t[ra("0x8b")][ra("0xac")]==o));i[ra("0x8c")]&&e[ra("0x77")]()[ra("0x8c")]!=i[ra("0x8c")]&&i[ra("0x78")](((t,e)=>(t[ra("0x41")]=e,e[ra("0x93")]=t,e)))};function l(t,e=!0){const{id:o}=n[ra("0xa1")](t[ra("0x3e")]),i=[ra("0x63"),ra("0x46")],r=n[ra("0x9e")][ra("0x55")](t[ra("0x3e")]);return r&&i[ra("0x17")]("ck-suggestion-marker--active"),{classes:i,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on("suggestionLoaded",c,{priority:"high"}),n.on(ra("0x21"),c,{priority:ra("0x3b")}),t.model[ra("0x12")][ra("0x99")]((()=>{let e=!1;const o=Array.from(t[ra("0x6e")][ra("0x12")].differ[ra("0x57")]());for(const{name:i,data:r}of o){const{group:o,type:s,id:x}=n[ra("0xa1")](i);if(ra("0x1")!=o||"deletion"!=s||r[ra("0x5d")])continue;if(!n.hasSuggestion(x))continue;const a=n[ra("0x16")](x).getRanges(),c=t[ra("0x7b")][ra("0x98")]("Users").me;for(const t of n[ra("0x9a")]())if(t[ra("0x1f")]&&t[ra("0x11")]==c&&"formatBlock"==t[ra("0x28")]&&ra("0x43")==t[ra("0x25")]&&t[ra("0x44")]()[ra("0xa7")]((t=>a[ra("0x33")]((e=>e[ra("0x4d")](t,!0))))))for(const n of t[ra("0x77")]())n.isInContent&&(n[ra("0x81")](),e=!0)}return e})),t[ra("0x6e")].document.registerPostFixer((e=>{const o=t[ra("0x31")].get(ra("0x35"));if(!o||!o[ra("0x4f")][ra("0x19")](e[ra("0xa2")]))return!1;let i=!1;const r=t[ra("0x7b")].get(ra("0x86")).me,s=t[ra("0x6e")][ra("0x12")][ra("0x4a")][ra("0x5b")](),x=Array.from(t.model.document[ra("0x4a")].getChangedMarkers()).filter((({name:t,data:e})=>{const{group:o,subType:i,authorId:s}=n[ra("0xa1")](t);return ra("0x1")==o&&"tablePaste"==i&&s==r.id&&!e[ra("0x5d")]}));for(const t of s){if(ra("0x3a")!=t[ra("0x28")]||ra("0x4")!=t[ra("0x7d")]||1!=t[ra("0x8c")])continue;const n=e[ra("0x70")](t[ra("0x18")],t.position.getShiftedBy(1));if(!x[ra("0x5e")]((({data:t})=>t[ra("0x62")].isEqual(n))))for(const{name:t,data:o}of x)if(n.containsRange(o.newRange)){e[ra("0x79")](t,{range:n}),i=!0;break}}return i})),t[ra("0x6e")][ra("0x12")][ra("0x99")]((e=>{let o=!1;const i=t[ra("0x7b")][ra("0x98")]("Users").me,r=n[ra("0x9a")]()[ra("0x6f")]((t=>t.isInContent&&t[ra("0x11")]==i)),s=new Set,x=new Set;for(const t of r)if(ra("0x7f")==t[ra("0x25")])for(const e of t[ra("0x2a")]()){const n=e[ra("0x95")]()[ra("0x53")]();if(n)if(n.is(ra("0x38"),ra("0x4"))&&ca(n)){t[ra("0x8")](e.name),s[ra("0x69")](n),o=!0;const i=n[ra("0x8d")],r=n.previousSibling,a=i&&i.is(ra("0x38"),ra("0x4")),c=r&&r.is("element",ra("0x4"));a&&!s[ra("0x19")](i)&&x[ra("0x69")](i),c&&!s[ra("0x19")](r)&&x[ra("0x69")](r)}else n.is(ra("0x38"),ra("0x15"))&&n[ra("0x4b")]&&(t[ra("0x8")](e.name),o=!0)}else if(ra("0x43")==t[ra("0x25")]){if(!t[ra("0x8b")]||!t[ra("0x8b")][ra("0xac")])continue;const e=t[ra("0x8b")][ra("0x60")];if(e&&Object[ra("0x97")](e)[ra("0x8c")])continue;const n=t.attributes[ra("0xac")];let i=!0,s=!0;for(const e of r)if(e.subType&&e[ra("0x25")][ra("0x23")](ra("0x7f"))){if(!e.attributes[ra("0xac")]){s=!1;break}if(e.id!=t.id&&e.attributes.tablePasteChainId==n){i=!1;break}}s&&i&&(t[ra("0xf")](),o=!0)}for(const t of s)e[ra("0x42")](t);for(const t of x)e[ra("0x80")](t);return o})),t[ra("0x6a")][ra("0x37")]("editingDowncast")[ra("0x49")]({model:ra("0xc"),view:(t,e)=>l(t),converterPriority:ra("0x3b")}),t[ra("0x6a")][ra("0x37")](ra("0x2b"))[ra("0x49")]({model:ra("0xc"),view:(t,e)=>e[ra("0x2e")].showSuggestionHighlights?l(t,!1):null,converterPriority:ra("0x3b")});const u=t[ra("0x2d")][ra("0x1e")];this.listenTo(u[ra("0x12")],ra("0x34"),((t,e)=>{const n=[];for(const t of u[ra("0x94")](e.content).getItems())t.is(ra("0x38"),ra("0xaa"))&&n[ra("0x17")](t);u[ra("0x2c")]((t=>{for(const e of n)t.move(t[ra("0x94")](e),t[ra("0x68")](e)),t.remove(e)}))}))}}function ca(t){if(t.isEmpty)return!0;const e=t.getChild(0);return e.is(ra("0x38"),"paragraph")&&e[ra("0x4b")]}function la(t,e={},n){for(const{isAnchor:o,cellHeight:i,cellWidth:r}of n[ra("0x32")](t,{includeAllSlots:!0,...e}))if(!o||1!=i||1!=r)return!1;return!0}const ua=["TrackChangesEditing","get","resizeTable","change","formatGroupId","tableWidth","has","locale","resizeTableWidth","registerCustomCallback","getAttribute","type","accept","editor","enableCommand","columnWidths","getContainedElement","getSelectedElement","TableColumnResizeEditing","getColumnGroupElement","selection","author","formatInline","formatBlock","subType","plugins","document","getSuggestionCallback","handleResizeTableWidthCommand","registerDescriptionCallback","*Format:* resize table","afterInit","getTableColumnsWidths","model","_suggestionFactory","markBlockFormat","bind","discard","table","handleSuggestionDescription","_descriptionFactory","getSuggestions"];var da,ga;da=ua,ga=468,function(t){for(;--t;)da.push(da.shift())}(++ga);const fa=function(t,e){return ua[t-=0]};class ma extends t.Plugin{[fa("0x19")](){if(!this.editor[fa("0x13")][fa("0x0")](fa("0xc")))return;const t=this.editor[fa("0x13")].get(fa("0x24"));t[fa("0x8")](fa("0x2"),this[fa("0x16")][fa("0x1e")](this)),t[fa("0x1c")][fa("0x3")](fa("0x11"),fa("0x26"),fa("0x6"),t._suggestionFactory[fa("0x15")](fa("0x11"),null,"discard")),t[fa("0x1c")][fa("0x3")](fa("0x11"),fa("0x26"),"discard",t[fa("0x1c")][fa("0x15")](fa("0x11"),null,fa("0x6"))),t[fa("0x22")][fa("0x17")](this[fa("0x21")][fa("0x1e")](this))}[fa("0x16")](t,e){const n=this[fa("0x7")][fa("0x13")][fa("0x25")]("TrackChangesEditing"),o=this[fa("0x7")][fa("0x13")][fa("0x25")]("TableColumnResizeEditing"),i=e[fa("0x20")]||this[fa("0x7")][fa("0x1b")][fa("0x14")][fa("0xe")][fa("0xb")]();this[fa("0x7")][fa("0x1b")][fa("0x27")]((()=>{const r=o[fa("0xd")](i);let s=r?o[fa("0x1a")](r):null,x=i[fa("0x4")]("tableWidth")||null;const a=e[fa("0x29")]||x,c=e[fa("0x9")]||s,l=this.editor[fa("0x13")][fa("0x25")]("Users").me;for(const t of n[fa("0x23")]()){const e=t[fa("0xa")]();if(fa("0x26")===t[fa("0x12")]&&e===i){t[fa("0xf")]!==l&&t[fa("0x1f")]();const e=t.data.commandParams;x=e[0][fa("0x29")],s=e[0][fa("0x9")];break}}t({table:i,tableWidth:a,columnWidths:c}),n[fa("0x1d")](i,{commandName:fa("0x2"),commandParams:[{tableWidth:x,columnWidths:s}],formatGroupId:fa("0x26")},[],"resizeTable")}))}handleSuggestionDescription(t){if(fa("0x11")!=t.type&&fa("0x10")!=t[fa("0x5")])return;const{data:e}=t;if(e&&fa("0x26")===e[fa("0x28")]){const t=fa("0x18");return{type:"format",content:Qo(this[fa("0x7")][fa("0x1")],t)}}}}const ha=["insertTemplate","enableCommand","afterInit","Template","has","plugins","get","editor","TrackChangesEditing"];var pa,ba;pa=ha,ba=244,function(t){for(;--t;)pa.push(pa.shift())}(++ba);const Ea=function(t,e){return ha[t-=0]};class _a extends t.Plugin{[Ea("0x1")](){const t=this[Ea("0x6")];t[Ea("0x4")][Ea("0x3")](Ea("0x2"))&&t[Ea("0x4")][Ea("0x5")](Ea("0x7"))[Ea("0x0")](Ea("0x8"))}}const Ta=["insertTableOfContents","commands","plugins","get","afterInit","editor","registerElementLabel","_descriptionFactory","ELEMENT_TABLE_OF_CONTENTS","enableCommand","tableOfContents","TrackChangesEditing","locale"];var ya,Ca;ya=Ta,Ca=428,function(t){for(;--t;)ya.push(ya.shift())}(++Ca);const Aa=function(t,e){return Ta[t-=0]};class ka extends t.Plugin{[Aa("0x5")](){const t=this[Aa("0x6")];if(!t[Aa("0x2")][Aa("0x4")](Aa("0x1")))return;t[Aa("0x3")][Aa("0x4")](Aa("0xc"))[Aa("0xa")](Aa("0x1"));const e=t[Aa("0x3")][Aa("0x4")](Aa("0xc")),n=t[Aa("0x0")];e[Aa("0x8")][Aa("0x7")](Aa("0xb"),(t=>Qo(n,Aa("0x9"),t)))}}const Ia=["start","model","TrackChangesEditing","element","from","get","Title","isEqual","has","newRange","registerElementLabel","ELEMENT_TITLE","title-content","forward","afterInit","_splitMarkerName","getNearestSelectionRange","differ","locale","document","removeMarker","getChangedMarkers","suggestion","nodeBefore","editor","end"];var Ra,Sa;Ra=Ia,Sa=278,function(t){for(;--t;)Ra.push(Ra.shift())}(++Sa);const Na=function(t,e){return Ia[t-=0]};class va extends t.Plugin{[Na("0x16")](){const t=this[Na("0x6")];if(!t.plugins[Na("0x10")](Na("0xe")))return;const e=t.plugins[Na("0xd")](Na("0xa"));e._descriptionFactory[Na("0x12")](Na("0x14"),(()=>Qo(t[Na("0x0")],Na("0x13")))),t[Na("0x9")].document.registerPostFixer((n=>{let o=!1;const i=Array[Na("0xc")](t[Na("0x9")][Na("0x1")][Na("0x19")][Na("0x3")]());for(const{name:r,data:s}of i){const{group:i}=e[Na("0x17")](r);if(Na("0x4")!==i||!s[Na("0x11")])continue;const x=s[Na("0x11")],a=x[Na("0x7")][Na("0x5")];if(!a||!a.is(Na("0xb"),"title-content"))continue;if(!x.start.isTouching(x[Na("0x7")]))continue;const c=t[Na("0x9")].schema[Na("0x18")](x[Na("0x7")],Na("0x15"));if(c&&c.isCollapsed){const t=n.createRange(x[Na("0x8")],c[Na("0x8")]);t[Na("0xf")](x)||(n.updateMarker(r,{range:t}),o=!0)}o||(n[Na("0x2")](r),o=!0)}return o}))}}const La=["plugins","redo","undo","get","has","enableCommand","UndoEditing","editor","TrackChangesEditing"];var Ma,Oa;Ma=La,Oa=142,function(t){for(;--t;)Ma.push(Ma.shift())}(++Oa);const wa=function(t,e){return La[t-=0]};class Fa extends t.Plugin{afterInit(){const t=this[wa("0x0")],e=t.plugins[wa("0x5")](wa("0x1"));t[wa("0x2")][wa("0x6")](wa("0x8"))&&(e[wa("0x7")](wa("0x4")),e[wa("0x7")](wa("0x3")))}}const Da=["plugins","TrackChangesEditing","requires","toggleTableCaption","editor","afterInit","TableCaptionEditing"];var Ba,Pa;Ba=Da,Pa=256,function(t){for(;--t;)Ba.push(Ba.shift())}(++Pa);const Ua=function(t,e){return Da[t-=0]};class ja extends t.Plugin{static get[Ua("0x5")](){return[zx]}[Ua("0x1")](){const t=this[Ua("0x0")];t[Ua("0x3")].has(Ua("0x2"))&&t[Ua("0x3")].get(Ua("0x4")).enableCommand(Ua("0x6"))}}const Ga=["model","subType","join","setAttribute","batch","locale","tableBorderStyle","formatBlock","*Format:* change table cell properties","has","tableCellBorderWidth","discard","tableCellProperties","tableHeight","_handlePropertyChange","enableCommand","tableBorderWidth","tableProperties","handleSuggestionDescription","removeAttribute","_descriptionFactory","tableBackgroundColor","accept","tableWidth","tableBorderColor","commandParams","findAncestor","registerDescriptionCallback","get","TableUtils","tableCellWidth","getContainedElement","TrackChangesEditing","selection","tableCellBorderColor","getSuggestions","tableAlignment","table","tableCellBackgroundColor","plugins","TableCellPropertiesEditing","_getSuggestion","getSuggestionCallback","_suggestionFactory","TablePropertiesEditing","tableCellPadding","change","registerCustomCallback","editor","afterInit","document","format","getFirstPosition","handleDiscardAction","nodeAfter"];var Ha,Va;Ha=Ga,Va=409,function(t){for(;--t;)Ha.push(Ha.shift())}(++Va);const za=function(t,e){return Ga[t-=0]};class Wa extends t.Plugin{constructor(t){super(t),this.tableProperties=[za("0x0"),za("0x25"),za("0x2f"),za("0xc"),za("0x36"),za("0x2c"),za("0x34")],this.tableCellProperties=[za("0xa"),"tableCellBorderStyle",za("0x29"),za("0x15"),za("0x6"),"tableCellHeight",za("0xe"),"tableCellHorizontalAlignment","tableCellVerticalAlignment"]}static get pluginName(){return"TrackChangesTableProperties"}[za("0x19")](){const t=this[za("0x18")][za("0xf")][za("0x4")](za("0x8"));if(this[za("0x18")][za("0xf")][za("0x28")](za("0x14"))){for(const e of this[za("0x30")])t[za("0x2e")](e,((t,n)=>{const o=this[za("0x18")].model[za("0x1a")][za("0x9")][za("0x1c")]()[za("0x2")](za("0xd"));this[za("0x2d")](e,[o],this[za("0x30")],"tableProperties",t,n)}));t._suggestionFactory[za("0x17")]("formatBlock",za("0x30"),za("0x35"),t[za("0x13")].getSuggestionCallback(za("0x26"),null,za("0x2a"))),t[za("0x13")][za("0x17")](za("0x26"),"tableProperties","discard",((t,e)=>this.handleDiscardAction(this.tableProperties,t,e))),t._suggestionFactory[za("0x17")](za("0x26"),za("0x30"),za("0x21"),(()=>!1))}if(this[za("0x18")].plugins[za("0x28")](za("0x10"))){for(const e of this.tableCellProperties)t.enableCommand(e,((t,n)=>{const o=this.editor[za("0xf")][za("0x4")](za("0x5")).getSelectionAffectedTableCells(this[za("0x18")].model[za("0x1a")][za("0x9")]);this._handlePropertyChange(e,o,this[za("0x2b")],za("0x2b"),t,n)}));t._suggestionFactory[za("0x17")](za("0x26"),za("0x2b"),"accept",t[za("0x13")][za("0x12")](za("0x26"),null,za("0x2a"))),t[za("0x13")][za("0x17")](za("0x26"),za("0x2b"),za("0x2a"),((t,e)=>this[za("0x1d")](this[za("0x2b")],t,e))),t[za("0x13")][za("0x17")]("formatBlock",za("0x2b"),za("0x21"),(()=>!1))}t[za("0x33")][za("0x3")]((t=>this[za("0x31")](t)))}_handlePropertyChange(t,e,n,o,i,r){const s=this.editor[za("0xf")][za("0x4")]("TrackChangesEditing");this.editor[za("0x1f")].enqueueChange(r[za("0x23")],(()=>{for(const t of e)if(this._getSuggestion(t,o))i(r);else{const e={};for(const o of n){const n=t.getAttribute(o);void 0!==n&&(e[o]=n)}i(r),s.markBlockFormat(t,{commandParams:[e]},[],o)}}))}handleDiscardAction(t,e,n){const o=e[0].start[za("0x1e")],i=n[za("0x1")][0];this[za("0x18")][za("0x1f")][za("0x16")]((e=>{for(const n of t)void 0!==i[n]?e[za("0x22")](n,i[n],o):e[za("0x32")](n,o)}))}[za("0x31")](t){if(t.data)switch(t[za("0x20")]){case"tableProperties":return{type:za("0x1b"),content:Qo(this[za("0x18")].locale,"*Format:* change table properties")};case"tableCellProperties":return{type:"format",content:Qo(this[za("0x18")][za("0x24")],za("0x27"))}}}[za("0x11")](t,e){const n=this[za("0x18")][za("0xf")][za("0x4")](za("0x8"));for(const o of n[za("0xb")]({skipNotAttached:!0})){const n=o[za("0x7")]();if(o[za("0x20")]===e&&n===t)return o}return null}}const Ka=["from","rethrowUnexpectedError","unbind","_rangeIsInLocalUserInsertion","bindElementToMarker","isAfter","consume","hasComments","notReady","position","insertion:","_editor","createSelection","track-changes-adapter-already-set","discardAllSuggestions","default","enableCommand","addRange","model","removeComment","formatInline","containsRange","isLocal","_getExternalAuthor","_handleNewSuggestionMarker","hasCommentThread","getMultiRangeId","containsItem","addCommentThread","reconvertMarker","change:activeMarkers","_breakSuggestionMarker","subType","containsPosition","length","setTo","discardSelectedSuggestions","_createSuggestion","attributes","push","never","markerToHighlight","substr","_enabledCommands","removeClass","trackChanges","$graveyard","isObject","lowest","addMarkerName","_customCallbacks","version","type","return","addAttribute","editingDowncast","getNearestSelectionRange","enableReadOnlyMode","dataToMarker","setSelection","isOwn","_adapter","$marker","batchId","getItems","enqueueChange","marker-count","getRanges","data","isUndo","trackChanges.mergeNestedSuggestions","markerReady","differ","acceptSelectedSuggestions","every","_isDataLoaded","createdAt","rejected","sort","_isBlockAttribute","previous","dataDowncast","commentThread","some","getAllAdjacentSuggestions","size","catch","formatBlock:accept","addMarker:suggestion:formatBlock","track-changes-command-not-found","open","targetPosition","forEach","normal","commandName","conversion","_registerDefaultCallbacks","_suggestions","item","removed","isMultiRange","oldValue","_initAriaMarkerChangeAnnouncements","config","rootName","createRange","isBefore","pop","addHighlight","getLastMatchingPosition","end","removeAttribute","getIntersection","_processAttributeSuggestions","name","detach","discardSuggestion","start","authorName","getUser","_model","formatInline:","elementToElement","locale","markMultiRangeDeletion","_cutOutSuggestionMarker","registerBlockAttribute","_commentsRepository","addComment","_suggestionState","change","suggestionLoaded","_isForcedDefaultExecutionBlock","_addSuggestionMarker","skipNestingCheck","multipleBlocks","deletion","meta","track-changes-suggestion-data-mismatch","insertion","_setSuggestionRange","includes","editor","markAttributeChange","history","_splitMarkerName","document","markInlineFormat","oldRange","_refreshAttributeSuggestionsChain","_blockAttributeKeys","markDeletion","value","next","accept","_checkSuggestionCorrectness","deletion:join","data-suggestion","fromCharCode","attribute","move","newName","getSuggestion","removeMarker:suggestion:attribute","removeMarker:suggestion:formatBlock","PENDING_ACTION_SUGGESTION","backward","ENTER","_descriptionFactory","isAtEnd","ready","PendingActions","createRangeIn","getFirstRange","getOperations","assign","upcast","isNextTo","values","isTouching","format","_joinWithAdjacentSuggestions","get","createPositionAfter","forward","unshift","range","isInsideObject","formatInline:join","stop","add","define","getFirstMarker","ck-suggestion-marker-","addMarker:suggestion","suggestion","addMarker:suggestion:attribute","addSuggestion","@external","removeMarker","isLimit","$text","getCustomProperty","createPositionAt","formatGroupId","_getAuthorFromId","markerName","FORMATTING","getMarkers","markers","trackChanges.trackFormatChanges","isRemovable","toUpperCase","getSuggestions","suggestion-type","isSelectable","requires","ck-suggestion-marker","addClass","multi","getChanges","formatBlock","markInsertion","startsWith","fromRange","ariaLiveAnnouncer","getDifference","keys","trackChangesCommand","CommentsRepository","substring","group","attributeKey","selection","insertion:accept","listenTo","plugins","low","_processAttributeChanges","createPositionBefore","markMultiRangeInsertion","getRange","getAttribute","isExternal","markerNameToElements","find","adapter","high","discard","isIntersecting","forceDefaultExecution","insertion:discard","_defaultCallbacks","_isSuggestionMarker","getCommentThread","_reduceSuggestionAttributeRange","deletion:accept","acceptAllSuggestions","writer","set","_saved","attribute:accept","acceptSuggestion","dataReady","ck-suggestion-marker-formatBlock","updateSuggestion","update:suggestion","originalSuggestionId","suggestion:","_reduceExistingSuggestions","ck-suggestion-marker--active","markMultiRangeBlockFormat","formatBlock:","deletion:chain","_joinSuggestions","filter","_SUGGESTION_ANNOUNCEMENT","createElement","addUser","addSuggestionData","applyOperation","has","track-changes-enable-command-twice","toViewElement","editing","collaboration.channelId","nodeAfter","removeMarkers","element","suggestion:attribute:","_updateSuggestionData","isIntersectingWithRange","getSuggestionCallback","root","fire","batch","delete","insertion:chain","after","_getSuggestionData","init","attribute:","execute","showSuggestionHighlights","registerCustomCallback","containsRangeInObject","setAttribute","consumable","$textProxy","remove","then","_inlineAttributeKeys","isInContent","isAtStart","updateMarker","rename","authoredAt","schema","getChangedMarkers","Users","mapper","howMany","_suggestionFactory","_trackFormatChanges","attribute:discard","pluginName","comments","head","key","creator","nodeBefore","deleteContent","splice","highest","formatInline:chain","suggestionChanged","insertContent","$elementName","toJSON","_mergeNestedSuggestions","isDocumentOperation","LEAVE","newRange","widget","always","getWalker","TrackChangesEditing","commands","resolve","isEqual","_getMarkerAnnouncementText","activeMarkers","isCollapsed","parent","for","_getAttributeKeyFromSubType","map","newValue","_addThreadToSuggestion","insert","registerPostFixer","formatBlock:join","author","getShiftedBy","deletion:discard","stopListening","_setSuggestionData","_recordAttributeChanges","_refreshSuggestionsChain","refresh","join","clear","_recordAttributeSuggestionsFromVersion","buildSuggestion","split","_findSuggestions","options"];var qa,$a;qa=Ka,$a=442,function(t){for(;--t;)qa.push(qa.shift())}(++$a);const Xa=function(t,e){return Ka[t-=0]},Ya=Xa("0x110");class Za extends t.Plugin{static get[Xa("0x97")](){return[Xa("0xa4"),r.Users,t.PendingActions,ci,fi,_i,ki,Li,Di,Hi,tr,rr,lr,hr,Tr,Rr,Mr,Pr,Vr,$r,Qr,is,fs,cs,Es,As,Ns,ws,Us,Ks,Zs,nx,xx,dx,bx,Cx,Sx,wx,Ux,zx,Yx,ea,ja,aa,ma,ka,Wa,_a,va,Fa]}static get[Xa("0x104")](){return Xa("0x119")}constructor(t){function e(t){return t[Xa("0x123")]((t=>String[Xa("0x5d")](t)))[Xa("0x131")]("")}super(t),this[Xa("0x133")]=null,this.set(Xa("0x11e"),[]),this.on(Xa("0x156"),((e,n,o,i)=>{this[Xa("0x37")].change((()=>{for(const e of[...i,...o])this._model[Xa("0x90")][Xa("0xd8")](e)&&t[Xa("0xdb")][Xa("0x155")](e)}))})),this[Xa("0x67")]=new ii(this[Xa("0x4d")][Xa("0x14a")][Xa("0xfc")],this[Xa("0x4d")][Xa("0x3a")]),this[Xa("0x175")]=null,this[Xa("0x101")]=new Ja(this[Xa("0x4d")]),this[Xa("0x20")]=new Map,this[Xa("0x3e")]=t[Xa("0xab")][Xa("0x75")](Xa("0xa4")),this[Xa("0x163")]=new Set,this[Xa("0x37")]=this[Xa("0x4d")].model,this[Xa("0x40")]=new WeakMap,this[Xa("0x43")]=!1,this[Xa("0x55")]=new Set(["$elementName"]),this[Xa("0xf6")]=new Set,t[Xa("0x26")][Xa("0x7e")](Xa("0x91"),"default"),this[Xa("0x102")]=t[Xa("0x26")].get(Xa("0x91")),t[Xa("0x26")][Xa("0x7e")](Xa("0x5"),!0),this[Xa("0x112")]=t[Xa("0x26")][Xa("0x75")](Xa("0x5")),this.trackChangesCommand=new d(t,this[Xa("0x163")]),this[Xa("0x25")](),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,50,50,50,56])}[Xa("0xeb")](){const t=this[Xa("0x4d")],n=(t,e)=>{if("attribute"!=t)return Xa("0x80")+t;const n=e[Xa("0x135")]("|")[0];return this._isBlockAttribute(n)?Xa("0xc7"):"ck-suggestion-marker-formatInline"};t.conversion.for("editingDowncast")[Xa("0x161")]({model:Xa("0x82"),view:t=>{const{id:e,type:o,subType:i}=this[Xa("0x50")](t[Xa("0x8d")]),r=["ck-suggestion-marker",n(o,i)];let s=3e3;return this.activeMarkers[Xa("0x4c")](t[Xa("0x8d")])&&(r[Xa("0x15f")](Xa("0xcd")),s=3010),"deletion"==o&&(s+=5),{classes:r,attributes:{"data-suggestion":e},priority:s}}}),t[Xa("0x1e")][Xa("0x121")](Xa("0x10"))[Xa("0x7d")]((e=>{e.on(Xa("0x81"),((e,n,o)=>{if(!o[Xa("0x137")][Xa("0xee")])return;const i=n[Xa("0x21")];if(!i)return;const r=o[Xa("0xff")][Xa("0xda")](i);t[Xa("0x14a")].schema[Xa("0x167")](i)&&r&&!r[Xa("0x89")](Xa("0x116"))&&r.is("containerElement")&&(0,x.toWidget)(r,o[Xa("0xc1")])}),{priority:"high"})})),t[Xa("0x1e")][Xa("0x121")]("dataDowncast")[Xa("0x161")]({model:Xa("0x82"),view:(t,e)=>{if(!e[Xa("0x137")][Xa("0xee")])return null;const{type:o,subType:i}=this[Xa("0x50")](t[Xa("0x8d")]);return{classes:[Xa("0x98"),n(o,i)],priority:3e3}}});const o=({showActiveMarkers:e=!0,isAttributeSuggestion:n=!1}={})=>(o,i,r)=>{if(!i[Xa("0x21")])return;const{id:s}=this[Xa("0x50")](i[Xa("0x8d")]);if(n){const t=this._suggestions[Xa("0x75")](s);if(!t[Xa("0x3")])return;if(!this[Xa("0xe")](t[Xa("0x3")][Xa("0x107")]))return}if(i[Xa("0x21")].is("selection"))return void r[Xa("0xf2")][Xa("0x13e")](i.item,o[Xa("0x31")]);const x=r[Xa("0xff")][Xa("0xda")](i[Xa("0x21")]);if(i[Xa("0x21")].is(Xa("0xdf"))&&t[Xa("0x14a")][Xa("0xfc")].isBlock(i.item)&&!x[Xa("0x89")](Xa("0x2b"))){r[Xa("0xc1")][Xa("0x99")]([Xa("0x98"),Xa("0xc7")],x),r[Xa("0xc1")][Xa("0xf1")]("data-suggestion",s,x),r[Xa("0xff")][Xa("0x13c")](x,i.markerName),e&&(this[Xa("0x11e")][Xa("0x4c")](i[Xa("0x8d")])?r.writer[Xa("0x99")](Xa("0xcd"),x):r[Xa("0xc1")].removeClass(Xa("0xcd"),x));for(const e of t.model[Xa("0x6b")](i[Xa("0x21")])[Xa("0x178")]())r[Xa("0xf2")][Xa("0x13e")](e,o[Xa("0x31")]);r[Xa("0xf2")][Xa("0x13e")](i.item,o.name)}};t[Xa("0x1e")][Xa("0x121")](Xa("0x10"))[Xa("0x7d")]((t=>{t.on(Xa("0x17"),((t,e,n)=>{n[Xa("0x137")][Xa("0xee")]&&o({showActiveMarkers:!1})(t,e,n)}),{priority:"highest"})})),t.conversion[Xa("0x121")](Xa("0x10"))[Xa("0x7d")]((t=>{t.on(Xa("0x83"),((t,e,n)=>{n[Xa("0x137")][Xa("0xee")]&&o({showActiveMarkers:!1,isAttributeSuggestion:!0})(t,e,n)}),{priority:Xa("0x10c")})})),t[Xa("0x1e")][Xa("0x121")](Xa("0x10")).markerToData({model:Xa("0x82"),view:(t,e)=>e[Xa("0x137")][Xa("0xee")]?null:{group:"suggestion",name:t[Xa("0x162")](11)}}),t.conversion[Xa("0x121")](Xa("0x6f"))[Xa("0x39")]({view:{name:Xa("0x82"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=Xa("0xcb")+t[Xa("0xb1")](Xa("0x95"))+":"+t[Xa("0xb1")]("id");return t[Xa("0xb1")]("marker-count")&&(n+=":"+t[Xa("0xb1")](Xa("0x1"))),e[Xa("0xd4")](Xa("0x176"),{"data-name":n})}}),t[Xa("0x1e")][Xa("0x121")](Xa("0x6f"))[Xa("0x172")]({view:Xa("0x82")}),t[Xa("0x1e")].for(Xa("0x16f"))[Xa("0x7d")]((t=>{t.on(Xa("0x17"),o(),{priority:Xa("0xb6")})})),t[Xa("0x1e")].for(Xa("0x16f"))[Xa("0x7d")]((t=>{t.on(Xa("0x83"),o({isAttributeSuggestion:!0}),{priority:Xa("0xb6")})})),t[Xa("0x1e")][Xa("0x121")](Xa("0x16f")).add((t=>{t.on(Xa("0x63"),((t,e,n)=>{const o=n[Xa("0xff")][Xa("0xb3")](e[Xa("0x8d")]);if(o)for(const t of o)t.getCustomProperty(Xa("0x2b"))||(n[Xa("0xc1")][Xa("0x164")]([Xa("0x98"),Xa("0xc7"),"ck-suggestion-marker--active"],t),n[Xa("0xc1")][Xa("0x2e")](Xa("0x5c"),t),n[Xa("0xff")].unbindElementFromMarkerName(t,e.markerName))}),{priority:Xa("0xb6")})})),t[Xa("0x1e")][Xa("0x121")](Xa("0x16f"))[Xa("0x7d")]((t=>{t.on(Xa("0x62"),((t,e,n)=>{const o=n[Xa("0xff")][Xa("0xb3")](e[Xa("0x8d")]);if(!o)return;const{id:i}=this[Xa("0x50")](e[Xa("0x8d")]),r=this[Xa("0x20")][Xa("0x75")](i);if(r[Xa("0x3")]&&this[Xa("0xe")](r[Xa("0x3")][Xa("0x107")]))for(const t of o)t[Xa("0x89")]("addHighlight")||(n.writer[Xa("0x164")](["ck-suggestion-marker",Xa("0xc7"),Xa("0xcd")],t),n[Xa("0xc1")].removeAttribute(Xa("0x5c"),t),n[Xa("0xff")].unbindElementFromMarkerName(t,e[Xa("0x8d")]))}),{priority:"high"})})),t[Xa("0x14a")][Xa("0x51")][Xa("0x127")]((e=>{let n=!1;const o=Array[Xa("0x138")](t[Xa("0x14a")][Xa("0x51")][Xa("0x7")][Xa("0xfd")]()),i=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,subType:l,id:u}=this[Xa("0x50")](x);if(Xa("0x82")!==o)continue;const d=this[Xa("0x20")].get(u);if(null!=a[Xa("0x115")]){"formatInline"==c&&(n=n||ec(a[Xa("0x115")],x,e,t[Xa("0x14a")][Xa("0xfc")]));const o=Xa("0x5e")==c&&this[Xa("0xe")](l[Xa("0x135")]("|")[0]);if(a[Xa("0x115")][Xa("0x11f")]||"$graveyard"==a[Xa("0x115")][Xa("0xe4")].rootName||"formatBlock"==c&&!oc(a.newRange)||o&&!oc(a[Xa("0x115")])||Xa("0x47")==c&&(tc(s=a[Xa("0x115")])||(r=s).start[Xa("0x120")]==r.end[Xa("0x109")]&&r[Xa("0x34")][Xa("0x68")]))e.removeMarker(x),n=!0;else{if(!d||!d[Xa("0xf7")])continue;i[Xa("0x7d")](d)}}}var r,s;return i[Xa("0x14")]>0&&(n=!!this[Xa("0x74")](i)||n),n})),t[Xa("0x14a")][Xa("0x51")][Xa("0x127")]((e=>{let n=!1;for(const o of t[Xa("0x14a")][Xa("0x51")][Xa("0x7")][Xa("0x9b")]())if(Xa("0x126")==o[Xa("0x16c")])for(const o of this._suggestions[Xa("0x71")]()){if(o.isMultiRange||!o.isInContent)continue;const i=Xa("0x9c")==o[Xa("0x16c")],r=this[Xa("0x122")](o),s=r&&this[Xa("0xe")](r);if(!i&&!s)continue;const x=o[Xa("0x6c")]();if(x.start[Xa("0x120")]!=x[Xa("0x2d")].parent&&!x[Xa("0x2d")][Xa("0x68")]){const i=t[Xa("0x14a")][Xa("0x8a")](x[Xa("0x34")][Xa("0xdd")],Xa("0x2d")),r=t[Xa("0x14a")][Xa("0x28")](x[Xa("0x34")],i);e[Xa("0xf9")](o[Xa("0x7f")](),{range:r}),n=!0}}return n})),t[Xa("0x14a")][Xa("0x51")][Xa("0x127")]((t=>this[Xa("0xad")](t))),t[Xa("0x14a")].document[Xa("0x127")]((t=>!t[Xa("0xe6")][Xa("0x14e")]&&this[Xa("0x30")](t))),t[Xa("0x14a")][Xa("0x90")].on(Xa("0xc9"),((t,e,n)=>{if(null==n){const{id:t}=this[Xa("0x50")](e[Xa("0x31")]),n=this[Xa("0x20")][Xa("0x75")](t);n&&n.addMarkerName(e[Xa("0x31")])}})),t[Xa("0x14a")].document.on("change:data",(()=>{const e=Array[Xa("0x138")](t[Xa("0x14a")][Xa("0x51")][Xa("0x7")][Xa("0xfd")]())[Xa("0xd2")]((t=>Xa("0x82")===this._splitMarkerName(t[Xa("0x31")])[Xa("0xa6")]));if(0===e[Xa("0x15a")])return;e[Xa("0xd")](((t,e)=>{const n=t[Xa("0x3")][Xa("0x53")],o=e[Xa("0x3")][Xa("0x53")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[Xa("0x34")][Xa("0x29")](o.start)?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:i}of e){const{id:e}=this[Xa("0x50")](t);if(null===i[Xa("0x53")]){const e=this[Xa("0x150")](t);o[Xa("0x7d")](e)}else{const t=this[Xa("0x20")].get(e);null!==i[Xa("0x115")]||t[Xa("0xf7")]?(n.add(t[Xa("0x106")]),o[Xa("0x7d")](t)):this._removeSuggestion(t)}}o[Xa("0x14")]>0&&this[Xa("0x12f")](o);for(const t of n)this[Xa("0xe5")](Xa("0x10e"),t)})),t[Xa("0x14a")].on(Xa("0xd7"),((e,n)=>{const o=n[0];if(!this[Xa("0x20")][Xa("0x14")])return;if(!o[Xa("0x113")])return;if(o[Xa("0xe6")][Xa("0x4")]||!o.batch[Xa("0x14e")])return;let i,r;switch(o[Xa("0x16c")]){case Xa("0x126"):i=t[Xa("0x14a")][Xa("0x8a")](o.position),r=i.getShiftedBy(o[Xa("0x100")]);break;case Xa("0x135"):i=t[Xa("0x14a")][Xa("0x8a")](o.splitPosition),r=t[Xa("0x14a")][Xa("0x8a")](o.moveTargetPosition);break;case Xa("0x5f"):i=t[Xa("0x14a")][Xa("0x8a")](o[Xa("0x1a")]),r=i[Xa("0x12a")](o.howMany);break;default:return}const s=t.model[Xa("0x28")](i,r);t[Xa("0x14a")][Xa("0x41")]((()=>{for(const{suggestion:t,meta:e}of this[Xa("0x136")](s)){if(t[Xa("0x23")])continue;if(Xa("0x14c")==t[Xa("0x16c")])continue;if(this[Xa("0x122")](t)&&this[Xa("0xe")](t[Xa("0x3")][Xa("0x107")])&&"split"!=o.type)continue;const n=t.data&&t[Xa("0x3")][Xa("0x46")];("formatBlock"!=t[Xa("0x16c")]||Xa("0x135")==o[Xa("0x16c")]&&!n)&&(e[Xa("0xf0")]||Xa("0x4a")==t[Xa("0x16c")]&&e[Xa("0x174")]||t[Xa("0x6c")]().containsRange(s)&&this[Xa("0x157")](t,i,r))}}))}),{priority:Xa("0x168")}),t[Xa("0x14a")].on("deleteContent",((e,n)=>{const o=n[0],i=n[1];if(i&&i[Xa("0xb9")])return;if(this[Xa("0x43")])return;if(!this.trackChangesCommand[Xa("0x57")])return;if(o[Xa("0x11f")])return;const r=t.model.schema,{start:s,end:x}=o[Xa("0x6c")](),a=s[Xa("0xdd")]&&r[Xa("0x87")](s.nodeAfter)?null:r[Xa("0x170")](s,Xa("0x77")),c=x[Xa("0x109")]&&r[Xa("0x87")](x.nodeBefore)?null:r[Xa("0x170")](x,Xa("0x65")),l=t.model[Xa("0x28")](a?a[Xa("0x34")]:s,c?c[Xa("0x2d")]:x);t.model[Xa("0x41")]((e=>{this.markDeletion(l);const n=t[Xa("0x14a")].schema[Xa("0x170")](l[Xa("0x34")]);o.is("documentSelection")?e[Xa("0x173")](n):o[Xa("0x15b")](n)})),e[Xa("0x7c")]()}),{priority:e.priorities[Xa("0x1c")]+10}),t[Xa("0x14a")].on(Xa("0x10f"),((e,n)=>{const o=n[n[Xa("0x15a")]-1];o&&o[Xa("0xb9")]||this._isForcedDefaultExecutionBlock||this[Xa("0xa3")][Xa("0x57")]&&(t.model[Xa("0x41")]((()=>{let o=t[Xa("0x14a")].insertContent(n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e.return=o.clone();const i=o[Xa("0x2d")][Xa("0x109")],r=t.model[Xa("0xfc")];i&&r.isBlock(i)&&!r[Xa("0x167")](i)&&(o=t.model[Xa("0x28")](o[Xa("0x34")],t.model[Xa("0x8a")](i,"end"))),this[Xa("0x9d")](o)})),e[Xa("0x7c")]())}),{priority:Xa("0xb6")}),this[Xa("0x4d")][Xa("0x11a")][Xa("0x7d")]("trackChanges",this[Xa("0xa3")]),this.enableCommand("trackChanges");const i=new p(t,this[Xa("0x20")]);t[Xa("0x11a")].add(Xa("0xc5"),i),this[Xa("0x148")]("acceptSuggestion");const r=new y(t,this[Xa("0x20")]);t[Xa("0x11a")].add(Xa("0x33"),r),this[Xa("0x148")](Xa("0x33")),t.commands.add(Xa("0xc0"),new F(t,i,this[Xa("0x20")])),this.enableCommand("acceptAllSuggestions"),t[Xa("0x11a")][Xa("0x7d")](Xa("0x146"),new F(t,r,this[Xa("0x20")])),this[Xa("0x148")](Xa("0x146")),t[Xa("0x11a")][Xa("0x7d")](Xa("0x8"),new j(t,i,this._suggestions)),this[Xa("0x148")](Xa("0x8")),t.commands[Xa("0x7d")](Xa("0x15c"),new j(t,r,this[Xa("0x20")])),this[Xa("0x148")](Xa("0x15c"));const s=t[Xa("0xab")][Xa("0x75")](Xa("0xa4"));this[Xa("0xaa")](s,Xa("0x3f"),((t,{threadId:e})=>{const n=this[Xa("0x20")].get(e);n&&n[Xa("0x11")]&&1===n[Xa("0x11")][Xa("0x15a")]&&this[Xa("0xe1")](e,{hasComments:!0})}),{priority:Xa("0xac")}),this.listenTo(s,Xa("0x14b"),((t,{threadId:e})=>{const n=this[Xa("0x20")].get(e);n&&n.commentThread&&!n[Xa("0x11")].length&&this[Xa("0xe1")](e,{hasComments:!1})}),{priority:Xa("0xac")})}set[Xa("0xb5")](t){if(this._adapter)throw new e.CKEditorError(Xa("0x145"),this);this[Xa("0x175")]=t}get[Xa("0xb5")](){return this[Xa("0x175")]}[Xa("0x94")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[Xa("0x20")][Xa("0x71")]())t&&!e[Xa("0xf7")]||n.push(e);return e?n[Xa("0x123")]((t=>t[Xa("0x111")]())):n}[Xa("0x61")](t){const n=this._suggestions[Xa("0x75")](t);if(!n)throw new e.CKEditorError("track-changes-suggestion-not-found",this);return n}hasSuggestion(t){return this[Xa("0x20")][Xa("0xd8")](t)}[Xa("0xd6")](t){const{authorId:e,id:n,attributes:o}=t,[i,r]=t[Xa("0x16c")].split(":"),s=this._suggestions.get(n)||this[Xa("0x15d")](i,r,n,e,o);if(this._addThreadToSuggestion(s),this[Xa("0x5a")](s,i,r||null,e),s.createdAt=t[Xa("0xb")],s[Xa("0xa")]=!0,o&&o[Xa("0x85")]){const t=o["@external"],e=this[Xa("0x14f")](t[Xa("0x35")]);s[Xa("0xfb")]=t.createdAt,s[Xa("0x129")]=e,s[Xa("0xb2")]=!0}else s[Xa("0xfb")]=t.createdAt;switch(t[Xa("0x3")]&&(s[Xa("0x3")]=t[Xa("0x3")]),t[Xa("0x15e")]&&(s[Xa("0x15e")]=t[Xa("0x15e")]),this[Xa("0x175")]&&this[Xa("0x175")][Xa("0x84")]||(s._saved=!0),this[Xa("0x40")][Xa("0x75")](s)){case Xa("0x140"):this._suggestionState.set(s,Xa("0xc6"));break;case Xa("0x6"):s[Xa("0xf7")]?(s[Xa("0x8f")]()[Xa("0x1b")]((t=>{this[Xa("0x4d")][Xa("0xdb")][Xa("0x155")](t)})),this._refreshSuggestionsChain(new Set([s])),this[Xa("0x74")](new Set([s])),this._suggestionState.set(s,Xa("0x69")),this.fire(Xa("0x42"),s)):this._suggestionState[Xa("0xc2")](s,Xa("0x22"))}return s}acceptSuggestion(t){this[Xa("0xb9")]((()=>{this[Xa("0x4d")][Xa("0x14a")][Xa("0x41")]((()=>{for(const e of t.getAllAdjacentSuggestions())e[Xa("0x59")]()}))}))}discardSuggestion(t){this[Xa("0xb9")]((()=>{this[Xa("0x4d")][Xa("0x14a")][Xa("0x41")]((()=>{for(const e of t[Xa("0x13")]())e[Xa("0xb7")]()}))}))}[Xa("0x148")](t,n){const o=this.editor[Xa("0x11a")][Xa("0x75")](t);if(!o)throw new e.CKEditorError(Xa("0x18"),this,{commandName:t});if(this[Xa("0x163")][Xa("0xd8")](o))throw new e.CKEditorError(Xa("0xd9"),this,{commandName:t});this._enabledCommands[Xa("0x7d")](o),n&&o.on("execute",((t,e)=>{this[Xa("0xa3")][Xa("0x57")]&&(this[Xa("0x43")]||(e[Xa("0x15a")]>0&&e[e.length-1]&&e[e[Xa("0x15a")]-1].forceDefaultExecution?e[Xa("0x2a")]():(t[Xa("0x16d")]=n(((...t)=>o.execute(...t,{forceDefaultExecution:!0})),...e),t.stop())))}),{priority:Xa("0xb6")})}[Xa("0xb9")](t){let n,o;const i=this[Xa("0x43")];this[Xa("0x43")]=!0;try{n=t()}catch(t){o=t}return i||(this[Xa("0x43")]=!1),o&&e.CKEditorError[Xa("0x139")](o,this),n}markInsertion(t,n=null,o={}){if(t.isCollapsed)return null;const i=this[Xa("0x4d")].plugins.get(Xa("0xfe")).me;for(const{suggestion:e,meta:i}of this[Xa("0x136")](t,Xa("0x4a")))if(i.isOwn){if(!i[Xa("0x70")]){if(i[Xa("0xf0")]){if(!this[Xa("0x112")]||!xc(e,o))continue;return e}if(xc(e,o))return e;this._breakSuggestionMarker(e,t[Xa("0x34")],t[Xa("0x2d")]);break}if(n==e[Xa("0x158")]&&xc(e,o)){const n=e[Xa("0x6c")]();return n[Xa("0x34")][Xa("0x11c")](t[Xa("0x2d")])?this[Xa("0x4b")](e,this[Xa("0x37")].createRange(t[Xa("0x34")],n[Xa("0x2d")])):this[Xa("0x4b")](e,this._model[Xa("0x28")](n[Xa("0x34")],t[Xa("0x2d")])),e}}const r=(0,e.uid)(),s=i.id,x=n?Xa("0x142")+n:"insertion",a=this._setSuggestionData({id:r,type:x,createdAt:new Date,authorId:s,attributes:o});return this._addSuggestionMarker(x,r,s,t),a}[Xa("0xaf")](t,n=Xa("0x9a"),o={}){const i=this.editor[Xa("0xab")][Xa("0x75")](Xa("0xfe")).me,r=this[Xa("0x101")][Xa("0xe3")]("insertion",n,Xa("0x131"));for(const e of this[Xa("0x94")]())if(e[Xa("0x129")].id==i.id&&Xa("0x4a")==e[Xa("0x16c")]&&e[Xa("0x158")]==n&&xc(e,o)&&(r(e[Xa("0x2")](),t)||r(t,e[Xa("0x2")]()))){for(const n of t)e.addRange(n);return e}for(const{suggestion:e,meta:n}of this[Xa("0x136")](t,"insertion")){if(!n[Xa("0x174")])continue;if(!this[Xa("0x112")]&&n[Xa("0xf0")])continue;if(!xc(e,o))continue;let i=!0;for(const n of e[Xa("0x2")]())for(const e of t)if(!n[Xa("0x14d")](e)){i=!1;break}if(i)return e}const s=(0,e.uid)(),x=i.id,a=Xa("0x142")+n,c=this._setSuggestionData({id:s,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[Xa("0x44")](a,s,x,e,Jo[Xa("0x152")]());return c}[Xa("0x52")](t,n,o=null,i={}){if(o=o||nc(n),t[Xa("0x11f")])return null;if("never"===this[Xa("0x102")]){const e=this[Xa("0x101")][Xa("0xe3")](Xa("0x14c"),o,Xa("0x59"));return this[Xa("0xb9")]((()=>e([t],n,i))),null}const r=this.editor.plugins[Xa("0x75")](Xa("0xfe")).me,s=[];if(Xa("0x117")!==this[Xa("0x102")])for(const{suggestion:e,meta:n}of this[Xa("0x136")](t,"insertion"))n[Xa("0x174")]&&!n[Xa("0x7a")]&&s.push(...e[Xa("0x2")]());const x=function(t,e){const n=[];for(const o of e){const e=t.getIntersection(o);e&&n[Xa("0x15f")](e)}return n}(t,s),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[Xa("0x15a")];){const o=n[e][Xa("0xa1")](t);n[Xa("0x10b")](e,1,...o),e+=o[Xa("0x15a")]}}return n}(t,s);x[Xa("0x15a")]&&this[Xa("0x37")].change((()=>{for(const t of x){const e=this._suggestionFactory[Xa("0xe3")]("formatInline",o,Xa("0x59"));this.forceDefaultExecution((()=>e([t],n,i)))}}));for(const t of a){let s=null,x=t[Xa("0x34")],a=t.end;for(const{suggestion:e,meta:n}of this[Xa("0x136")](t,Xa("0x14c"))){if(!n[Xa("0x174")])continue;if(e[Xa("0x158")]!=o)continue;if(!xc(e,i))continue;const r=e[Xa("0x6c")]();if(r[Xa("0x14d")](t,!0))return null;x=x.isBefore(r[Xa("0x34")])?x:r[Xa("0x34")],a=a.isAfter(r[Xa("0x2d")])?a:r.end,s?r[Xa("0x34")][Xa("0x29")](s[Xa("0x6c")]()[Xa("0x34")])?(s.removeMarkers(),s=e):e.removeMarkers():s=e}const c=this[Xa("0x37")][Xa("0x28")](x,a);if(s)this[Xa("0x4b")](s,c);else{const t=(0,e.uid)(),s=r.id;this[Xa("0x12d")]({id:t,type:Xa("0x38")+o,data:n,createdAt:new Date,authorId:s,attributes:i}),this[Xa("0x44")]("formatInline:"+o,t,s,c)}}return null}markBlockFormat(t,n,o=[],i=null,r={}){n[Xa("0x8b")]||(n[Xa("0x8b")]=n.commandName),n[Xa("0x46")]=t.is("range"),i=i||nc(n);const s=o.map((t=>ic(t,this[Xa("0x37")]))),x=t.is(Xa("0x79"))?t:ic(t,this[Xa("0x37")]);if(Xa("0x160")===this[Xa("0x102")]){const t=this[Xa("0x101")].getSuggestionCallback(Xa("0x9c"),i,Xa("0x59"));return this.forceDefaultExecution((()=>t([x],n,r))),null}s[Xa("0x15f")](x);let a=!0;for(const t of s)if(!this[Xa("0x13b")](t)){a=!1;break}if(a&&Xa("0x117")!==this._trackFormatChanges){const t=this[Xa("0x101")][Xa("0xe3")](Xa("0x9c"),i,Xa("0x59"));return this.forceDefaultExecution((()=>t([x],n,r))),null}let c=null,l=x[Xa("0x34")],u=x[Xa("0x2d")];for(const{suggestion:t,meta:e}of this[Xa("0x136")](x,Xa("0x9c"))){if(!e.isOwn)continue;if(e[Xa("0x70")]||e[Xa("0xf0")]||e[Xa("0x7a")])continue;if(t[Xa("0x3")][Xa("0x8b")]!=n[Xa("0x8b")])continue;if(!xc(t,r))continue;const o=t[Xa("0x6c")]();if(t[Xa("0x158")]==i){if(o.containsRange(x,!0))return null;l=l[Xa("0x29")](o.start)?l:o[Xa("0x34")],u=u[Xa("0x13d")](o[Xa("0x2d")])?u:o[Xa("0x2d")],c?o[Xa("0x34")][Xa("0x29")](c[Xa("0x6c")]()[Xa("0x34")])?(c[Xa("0xde")](),c=t):t[Xa("0xde")]():c=t}else{const e=x[Xa("0x2f")](o);this[Xa("0x3c")](t,e)}}const d=this[Xa("0x4d")][Xa("0xab")][Xa("0x75")](Xa("0xfe")).me,g=(0,e.uid)(),f=d.id;if(c)return this[Xa("0x4b")](c,this[Xa("0x37")][Xa("0x28")](l,u)),c;{const t=this._setSuggestionData({id:g,type:Xa("0xcf")+i,data:n,createdAt:new Date,authorId:f,attributes:r});return this[Xa("0x44")](Xa("0xcf")+i,g,f,this._model.createRange(l,u)),t}}[Xa("0xce")](t,n,o=[],i=null,r={}){n[Xa("0x8b")]||(n[Xa("0x8b")]=n[Xa("0x1d")]);const s=t[0];n.multipleBlocks=s.is(Xa("0x79")),i=i||nc(n);const x=o.map((t=>ic(t,this[Xa("0x37")]))),a=s.is(Xa("0x79"))?t:t[Xa("0x123")]((t=>ic(t,this[Xa("0x37")])));if(Xa("0x160")===this[Xa("0x102")]){const t=this[Xa("0x101")].getSuggestionCallback(Xa("0x9c"),i,Xa("0x59"));return this.forceDefaultExecution((()=>t(a,n,r))),null}x[Xa("0x15f")](...a);let c=!0;for(const t of x)if(!this[Xa("0x13b")](t)){c=!1;break}if(c&&Xa("0x117")!==this[Xa("0x102")]){const t=this._suggestionFactory[Xa("0xe3")](Xa("0x9c"),i,Xa("0x59"));return this[Xa("0xb9")]((()=>t(a,n,r))),null}const l=this[Xa("0x4d")][Xa("0xab")].get(Xa("0xfe")).me;for(const t of this.getSuggestions()){if(t[Xa("0x129")].id!=l.id)continue;if(Xa("0x9c")!=t[Xa("0x16c")]||t[Xa("0x3")].formatGroupId!=n.formatGroupId)continue;if(!xc(t,r))continue;const e=t[Xa("0x158")]==i;for(let n=0;n<a[Xa("0x15a")];n++){const o=a[n];for(const i of t[Xa("0x8f")]()){const r=i[Xa("0xb0")]();if(o[Xa("0x11c")](r)){e?(a[Xa("0x10b")](n,1),n--):t[Xa("0x86")](i[Xa("0x31")]);break}}}}if(0==a[Xa("0x15a")])return null;const u=this[Xa("0x101")].getSuggestionCallback(Xa("0x9c"),i,Xa("0x131"));for(const t of this[Xa("0x94")]())if(t[Xa("0x129")].id==l.id&&Xa("0x9c")==t[Xa("0x16c")]&&t.data[Xa("0x8b")]==n[Xa("0x8b")]&&t[Xa("0x158")]==i&&xc(t,r)&&(u(t[Xa("0x2")](),a)||u(a,t[Xa("0x2")]()))){for(const e of a)t[Xa("0x149")](e);return t}const d=(0,e.uid)(),g=l.id,f=Xa("0xcf")+i,m=this[Xa("0x12d")]({id:d,type:f,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[Xa("0x44")](f,d,g,t,Jo[Xa("0x152")]());return m}[Xa("0x56")](t,n=null,o={}){if(t[Xa("0x11f")])return null;const i=this[Xa("0x4d")][Xa("0xab")][Xa("0x75")](Xa("0xfe")).me,r=new s.LiveRange(t[Xa("0x34")],t[Xa("0x2d")]);for(const{suggestion:t,meta:e}of this[Xa("0x136")](r,"insertion"))if(e[Xa("0x174")]&&!e.isNextTo)if(t[Xa("0x23")]){const e=t.getRanges()[Xa("0xd2")]((t=>Xa("0x166")!=t.root[Xa("0x27")]));if(e[Xa("0x9")]((t=>r[Xa("0x14d")](t,!0)))&&t[Xa("0xb7")](),e[Xa("0x12")]((t=>t[Xa("0x14d")](r,!0)))){const t=this[Xa("0x101")][Xa("0xe3")](Xa("0x47"),n,"accept");return this[Xa("0xb9")]((()=>t([r],null,o))),null}}else{const e=r[Xa("0x2f")](t[Xa("0x6c")]());null!==e&&t._onDiscard([e],null,o)}if(r[Xa("0x32")](),r[Xa("0x11f")]||Xa("0x166")==r[Xa("0xe4")][Xa("0x27")])return null;let x=null,a=r.start,c=r[Xa("0x2d")];const l=this[Xa("0x136")](r,Xa("0x47"));for(const{suggestion:t,meta:e}of l){const n=this[Xa("0x37")][Xa("0x28")](a,c);if(e[Xa("0x174")]&&(this[Xa("0x112")]||!e[Xa("0xf0")]&&!e[Xa("0x7a")]))if(t[Xa("0x23")]){if(!xc(t,o))continue;let e=!0;for(const o of t.getRanges()){if(o.containsRange(n,!0))return t;n[Xa("0x14d")](o)||(e=!1)}e&&t.discard()}else{const e=t.getFirstRange();if(e[Xa("0x14d")](n,!0))return t;if(!xc(t,o)){n[Xa("0x14d")](e)?t.removeMarkers():e.containsPosition(a)?a=e[Xa("0x2d")]:e[Xa("0x159")](c)&&(c=e[Xa("0x34")]);continue}a=a[Xa("0x29")](e[Xa("0x34")])?a:e[Xa("0x34")],c=c[Xa("0x13d")](e[Xa("0x2d")])?c:e[Xa("0x2d")],o=Object[Xa("0x6e")]({},t[Xa("0x15e")]),x?e.start[Xa("0x29")](x[Xa("0x6c")]()[Xa("0x34")])?(x[Xa("0xde")](),x=t):t.removeMarkers():x=t}}if(x)return this[Xa("0x4b")](x,this._model.createRange(a,c)),x;{const t=(0,e.uid)(),r=this[Xa("0x37")][Xa("0x28")](a,c),s=i.id,x=n?"deletion:"+n:Xa("0x47"),l=this._setSuggestionData({id:t,type:x,createdAt:new Date,authorId:s,attributes:o});return this[Xa("0x44")](x,t,s,r),l}}[Xa("0x3b")](t,n=Xa("0x9a"),o={}){const i=this[Xa("0x4d")].plugins.get(Xa("0xfe")).me,r=t[Xa("0x123")]((t=>new s.LiveRange(t.start,t.end))),x=new Set;for(const{suggestion:t,meta:e}of this._findSuggestions(r,Xa("0x4a")))e.isOwn&&!e[Xa("0x70")]&&x[Xa("0x7d")](t);for(const e of x)if(e[Xa("0x23")]){const i=e[Xa("0x2")]();if((!e[Xa("0x15e")]||!e.attributes.skipNestingCheck)&&i[Xa("0x9")]((t=>r[Xa("0x12")]((e=>e[Xa("0x14d")](t,!0)))))&&e[Xa("0xb7")](),r[Xa("0x9")]((t=>i[Xa("0x12")]((e=>e[Xa("0x14d")](t,!0)))))){const e=this[Xa("0x101")][Xa("0xe3")](Xa("0x47"),n,Xa("0x59"));return this[Xa("0xb9")]((()=>e(t,null,o))),null}}else{const t=e[Xa("0x6c")]();if(r.some((e=>e.containsRange(t,!0)))&&e[Xa("0xb7")](),r[Xa("0x9")]((e=>t[Xa("0x14d")](e,!0)))){const t=this[Xa("0x101")][Xa("0xe3")](Xa("0x47"),n,Xa("0x59"));return this[Xa("0xb9")]((()=>t(r,null,o))),null}}const a=this[Xa("0x101")].getSuggestionCallback("deletion",n,"join");let c=null;for(const t of this[Xa("0x94")]())if(t[Xa("0x129")].id==i.id&&t[Xa("0xf7")]&&Xa("0x47")==t.type&&t[Xa("0x158")]==n&&xc(t,o)&&(a(t[Xa("0x2")](),r)||a(r,t[Xa("0x2")]())))if(c){if(t.commentThread&&t[Xa("0x11")][Xa("0x15a")])continue;for(const e of t[Xa("0x2")]())c[Xa("0xe2")](e)||c[Xa("0x149")](e);t.removeMarkers()}else{c=t;for(const e of r)t[Xa("0xe2")](e)||t[Xa("0x149")](e)}if(c)return c;x[Xa("0x132")]();for(const{suggestion:t,meta:e}of this[Xa("0x136")](r,"deletion"))e[Xa("0x174")]&&(this[Xa("0x112")]||!e[Xa("0xf0")]&&!e[Xa("0x7a")])&&xc(t,o)&&x[Xa("0x7d")](t);for(const t of x){const e=t[Xa("0x2")]();if((!o||!o[Xa("0x45")])&&r[Xa("0x9")]((t=>e[Xa("0x12")]((e=>e.containsRange(t,!0))))))return t;(!t[Xa("0x15e")]||!t[Xa("0x15e")][Xa("0x45")])&&e[Xa("0x9")]((t=>r[Xa("0x12")]((e=>e[Xa("0x14d")](t,!0)))))&&t.discard()}const l=(0,e.uid)(),u=i.id,d="deletion:"+n,g=this[Xa("0x12d")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of r)t[Xa("0x32")](),t[Xa("0x11f")]||Xa("0x166")==t[Xa("0xe4")].rootName||this._addSuggestionMarker(d,l,u,t,Jo[Xa("0x152")]());return g}[Xa("0x4e")](t,n,o,i,r,s={}){if(t[Xa("0x11f")])return[];if(Xa("0x160")===this._trackFormatChanges)return[];const x=this[Xa("0x4d")][Xa("0xab")][Xa("0x75")](Xa("0xfe")).me.id,a=Array[Xa("0x138")](this._suggestions[Xa("0x71")]())[Xa("0xd2")]((e=>"attribute"==e[Xa("0x16c")]&&e.data[Xa("0x107")]==n&&e[Xa("0xe2")](t)));if(Xa("0x147")===this._trackFormatChanges){const e=this[Xa("0x136")](t,"insertion")[Xa("0xd2")]((({meta:t})=>t[Xa("0x174")]&&!t[Xa("0x7a")]&&!t.isNextTo))[Xa("0x123")]((({suggestion:t})=>t));a[Xa("0x78")](...e)}const c=new Map([[t,o]]);for(const t of a){const e="attribute"==t[Xa("0x16c")]?t[Xa("0x3")].oldValue:void 0,r=t[Xa("0x6c")](),s=Array[Xa("0x138")](c[Xa("0xa2")]()).find((t=>t[Xa("0xb8")](r)));s&&(c[Xa("0xe7")](s),this[Xa("0xe")](n)?s[Xa("0xa1")](r).length>0&&c.set(s,o):s[Xa("0xa1")](r)[Xa("0x1b")]((t=>{c[Xa("0xc2")](t,o)})),Xa("0x4a")!=t[Xa("0x16c")]&&e!=i&&c.set(s[Xa("0x2f")](r),e))}const l=[];for(const[t,o]of c){const a=(0,e.uid)(),c={key:n,oldValue:o,newValue:i,batchId:r},u=Xa("0xec")+(n[Xa("0xa5")](0,37)+"|")+nc({newValue:i}),d=this[Xa("0x12d")]({id:a,type:u,data:c,createdAt:new Date,authorId:x,attributes:s});l[Xa("0x15f")](d),this._addSuggestionMarker(u,a,x,t)}return l}[Xa("0x3d")](t){this._blockAttributeKeys[Xa("0x7d")](t)}registerInlineAttribute(t){this[Xa("0xf6")].add(t)}enableDefaultIntegration(t,e=[],n=[]){this.enableCommand(t,((t,...e)=>{this[Xa("0x12e")]((()=>{t(...e)}))}));for(const t of e)this.registerInlineAttribute(t);for(const t of n)this[Xa("0x3d")](t)}[Xa("0x4b")](t,e){const n=t[Xa("0x7f")]();this[Xa("0x37")][Xa("0x41")]((t=>{t[Xa("0xf9")](n,{range:e})}))}[Xa("0x125")](t){const e=t.id,n=this[Xa("0x4d")].config[Xa("0x75")](Xa("0xdc"));this._commentsRepository[Xa("0x151")](e)||this._commentsRepository[Xa("0x154")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this._commentsRepository[Xa("0xbd")](e);o[Xa("0x13a")](Xa("0x92")),o.isRemovable=!1,t[Xa("0x11")]=o}[Xa("0x5a")](t,n,o,i){if(t[Xa("0x16c")]!=n||t[Xa("0x158")]!=o||t[Xa("0x108")].id!=i)throw this.editor[Xa("0x171")]("track-changes-suggestion-data-mismatch"),new e.CKEditorError(Xa("0x49"),this)}_cutOutSuggestionMarker(t,n){const o=t.getFirstRange();if(n[Xa("0x11c")](o))t[Xa("0xde")]();else if(o[Xa("0x14d")](n)){const i=this._model[Xa("0x8a")](n[Xa("0x34")].nodeBefore,Xa("0x2d"));this._setSuggestionRange(t,this._model.createRange(o.start,i));const r=(0,e.uid)(),s=t[Xa("0x108")].id,x=t.type+":"+t.subType;this[Xa("0x12d")]({id:r,type:x,createdAt:new Date,authorId:s,data:t[Xa("0x3")],attributes:t[Xa("0x15e")]});const a=this[Xa("0x37")][Xa("0x8a")](n[Xa("0x2d")][Xa("0x120")],"after"),c=this[Xa("0x37")][Xa("0x28")](a,o[Xa("0x2d")]);this._addSuggestionMarker(x,r,s,c)}else if(o[Xa("0x159")](n[Xa("0x34")])){const e=this[Xa("0x37")].createPositionAt(n[Xa("0x34")][Xa("0x109")],Xa("0x2d"));this._setSuggestionRange(t,this[Xa("0x37")][Xa("0x28")](o[Xa("0x34")],e))}else{const e=this[Xa("0x37")].createPositionAt(n[Xa("0x2d")][Xa("0x120")],Xa("0xe9"));this[Xa("0x4b")](t,this[Xa("0x37")].createRange(e,o.end))}}[Xa("0x13b")](t){for(const{suggestion:e,meta:n}of this[Xa("0x136")](t,Xa("0x4a"))){if(!n.isOwn)continue;const o=e[Xa("0x2")]();for(const e of o)if(!t[Xa("0xa1")](e)[Xa("0x15a")])return!0}return!1}[Xa("0x8c")](t){const n=this[Xa("0x4d")].plugins.get("Users")[Xa("0x36")](t);if(!n)throw new e.CKEditorError("track-changes-user-not-found",this);return n}_getExternalAuthor(t){const e=this[Xa("0x4d")][Xa("0xab")][Xa("0x75")](Xa("0xfe")),n=(0,r.hashObject)("external:"+t);return e.getUser(n)||e[Xa("0xd5")]({id:n,name:t})}[Xa("0x15d")](t,e,n,o,i){const r=this[Xa("0x8c")](o),s=this[Xa("0x101")][Xa("0x134")](t,e,n,r,i,(t=>this[Xa("0xe1")](n,{attributes:t})));return this[Xa("0xaa")](s,Xa("0x59"),(()=>{this[Xa("0xe1")](n,{state:"accepted"})}),{priority:"high"}),this[Xa("0xaa")](s,Xa("0xb7"),(()=>{this[Xa("0xe1")](n,{state:Xa("0xc")})}),{priority:Xa("0xb6")}),this[Xa("0x20")].set(n,s),this[Xa("0x40")][Xa("0xc2")](s,"notReady"),s}_splitMarkerName(t){const e=t[Xa("0x135")](":");return{group:e[0],type:e[1],subType:e[Xa("0x15a")]>=5?e[2]:null,id:e[Xa("0x15a")]<5?e[2]:e[3],authorId:e[Xa("0x15a")]<5?e[3]:e[4],markerCount:6==e[Xa("0x15a")]?e[5]:null}}_breakSuggestionMarker(t,n,o){const i=t[Xa("0x6c")](),r=i[Xa("0x34")],s=i.end;this[Xa("0x4b")](t,this[Xa("0x37")].createRange(r,n));const x=(0,e.uid)(),a=t[Xa("0x108")].id,c=t.type+(t[Xa("0x158")]?":"+t.subType:"");this[Xa("0x12d")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[Xa("0x15e")],data:t[Xa("0x3")]});const l=this[Xa("0x122")](t);(Xa("0x9c")==t.type||l&&this._isBlockAttribute(l))&&(o=this._model[Xa("0xae")](o[Xa("0x120")])),this[Xa("0x44")](c,x,a,this[Xa("0x37")].createRange(o,s))}_findSuggestions(t,e=null){const n=[],o=this.editor.plugins[Xa("0x75")](Xa("0xfe")).me;Array.isArray(t)||(t=[t]);for(const i of this[Xa("0x94")]()){if(!i[Xa("0xf7")])continue;if(e&&i[Xa("0x16c")]!=e)continue;let r=!1;for(const e of i[Xa("0x2")]()){for(const s of t){const t=s[Xa("0x34")][Xa("0x11c")](e.end)||s[Xa("0x2d")][Xa("0x11c")](e[Xa("0x34")]);if(t||s.getIntersection(e)){const x=s[Xa("0x14d")](e)&&Qa(this[Xa("0x37")][Xa("0xfc")],e[Xa("0x34")],s),a=e[Xa("0x14d")](s)&&Qa(this._model[Xa("0xfc")],s[Xa("0x34")],e);n[Xa("0x15f")]({suggestion:i,meta:{isOwn:o==i[Xa("0x129")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),r=!0;break}}if(r)break}}return n}[Xa("0x44")](t,e,n,o,i){this[Xa("0x37")][Xa("0x41")]((r=>{let s="suggestion:"+t+":"+e+":"+n;i&&(s=s+":"+i),r.addMarker(s,{range:o,usingOperation:!0,affectsData:!0})}))}_removeSuggestion(t){const e=t[Xa("0xf")],n=t[Xa("0x58")];t.previous=null,t[Xa("0x58")]=null,null!=e&&(e[Xa("0x58")]=n),null!=n&&(n[Xa("0xf")]=e),Xa("0x69")==this[Xa("0x40")][Xa("0x75")](t)&&(this[Xa("0x40")].set(t,"removed"),this.fire("suggestionUnloaded",t,e,n))}[Xa("0x12d")](t){const n=t.id,o=this[Xa("0xd6")](t);if(this[Xa("0x175")]&&this[Xa("0x175")][Xa("0x84")]){const i=this[Xa("0x4d")].plugins.get(Xa("0x6a")),r=o[Xa("0x13f")],s=o[Xa("0x158")]?o[Xa("0x16c")]+":"+o.subType:o[Xa("0x16c")],x=this[Xa("0x4d")][Xa("0x3a")],a=i[Xa("0x7d")](Qo(x,Xa("0x64"))),c={id:n,type:s,hasComments:r,data:t.data||null,originalSuggestionId:t[Xa("0xca")]||null,attributes:o[Xa("0x15e")]};this[Xa("0x175")].addSuggestion(c)[Xa("0xf5")]((t=>{o[Xa("0xc3")]=!0,i.remove(a),t&&t[Xa("0xb")]&&(this[Xa("0x20")].get(n)[Xa("0xb")]=t.createdAt)}))[Xa("0x15")]((t=>{throw(0,e.logWarning)("error-saving-suggestion-data-suggestion-discarded"),this[Xa("0x4d")][Xa("0x14a")][Xa("0x0")]({isUndoable:!1},(()=>{o[Xa("0xb7")]()})),o[Xa("0x12c")](),this[Xa("0x20")][Xa("0xe7")](o.id),this[Xa("0x40")][Xa("0xe7")](o),t}))}return o}[Xa("0xe")](t){return this[Xa("0x55")][Xa("0xd8")](t)}[Xa("0x122")](t){return Xa("0x5e")==t[Xa("0x16c")]&&t.subType[Xa("0x135")]("|")[0]}_updateSuggestionData(t,e){const n=this[Xa("0x4d")][Xa("0xab")].get(Xa("0x6a")),o=this[Xa("0x61")](t);if(this._adapter&&this[Xa("0x175")][Xa("0xc8")])if(o[Xa("0xc3")]){const o=n[Xa("0x7d")](Qo(this[Xa("0x4d")].locale,"PENDING_ACTION_SUGGESTION"));this[Xa("0x175")].updateSuggestion(t,e)[Xa("0xf5")]((()=>{n[Xa("0xf4")](o)}))}else o.on("change:_saved",(()=>{this[Xa("0xe1")](t,e)}))}[Xa("0xea")](t){if(!this[Xa("0x175")]||!this._adapter[Xa("0x61")])throw new e.CKEditorError("track-changes-adapter-missing-getsuggestion",this);return this[Xa("0x175")][Xa("0x61")](t)}_handleNewSuggestionMarker(t){const{id:e,type:n,subType:o,authorId:i}=this[Xa("0x50")](t),r=this[Xa("0x20")][Xa("0x75")](e)||this[Xa("0x15d")](n,o,e,i,{});switch(this[Xa("0x5a")](r,n,o,i),this[Xa("0x40")][Xa("0x75")](r)){case Xa("0x140"):this._getSuggestionData(e)[Xa("0xf5")]((t=>{let n=Promise[Xa("0x11b")]();t[Xa("0x13f")]&&(n=this[Xa("0x3e")].fetchCommentThread({channelId:this[Xa("0x4d")][Xa("0x26")][Xa("0x75")](Xa("0xdc")),threadId:e})),n.then((()=>{this[Xa("0xd6")](t)[Xa("0xc3")]=!0}))})),this[Xa("0x40")][Xa("0xc2")](r,"markerReady");break;case Xa("0x22"):this[Xa("0xe1")](e,{state:Xa("0x19")});case Xa("0xc6"):this[Xa("0x40")][Xa("0xc2")](r,Xa("0x69")),this[Xa("0xe5")](Xa("0x42"),r);break;case Xa("0x69"):this[Xa("0xe5")](Xa("0x10e"),r)}return r[Xa("0x169")](t),r}[Xa("0x12f")](t){const e=Array[Xa("0x138")](t),n=e[Xa("0xd2")]((t=>"attribute"==t[Xa("0x16c")]));this[Xa("0x54")](n);const o=e[Xa("0xd2")]((t=>!t[Xa("0x23")]&&Xa("0x5e")!=t[Xa("0x16c")])),i=this[Xa("0x94")]({skipNotAttached:!0})[Xa("0xd2")]((t=>!t[Xa("0x23")]&&Xa("0x5e")!=t[Xa("0x16c")])),r=i.filter((e=>!t.has(e))),s=new Map(i[Xa("0x123")]((t=>[t,this._suggestionFactory[Xa("0xe3")](t.type,t.subType,"chain")]))),x=new Map(i[Xa("0x123")]((t=>[t,t[Xa("0x6c")]()]))),a=new Set,c=new Set;for(let t=0;t<o[Xa("0x15a")];t++)u(o[t],o,t+1);for(let t=0;t<o[Xa("0x15a")];t++)u(o[t],r,0);const l=new Set;for(let t=0;t<o[Xa("0x15a")];t++){const e=o[t];!c[Xa("0xd8")](e)&&e[Xa("0xf")]&&(l[Xa("0x7d")](e[Xa("0xf")]),e[Xa("0xf")].next===e&&(e[Xa("0xf")][Xa("0x58")]=null),e[Xa("0xf")]=null),!a[Xa("0xd8")](e)&&e[Xa("0x58")]&&(l[Xa("0x7d")](e[Xa("0x58")]),e[Xa("0x58")].previous===e&&(e[Xa("0x58")][Xa("0xf")]=null),e[Xa("0x58")]=null)}function u(t,e,n){for(let o=n;o<e[Xa("0x15a")];o++){const n=d(t,e[o]);n&&(n[0][Xa("0x58")]=n[1],n[1].previous=n[0],a.add(n[0]),c[Xa("0x7d")](n[1]))}}function d(t,e){if(t[Xa("0x129")].id!==e[Xa("0x129")].id)return null;const n=s.get(t)(t,e,x[Xa("0x75")](t),x[Xa("0x75")](e));return n&&s[Xa("0x75")](e)(t,e,x.get(t),x[Xa("0x75")](e))?n[1][Xa("0x11")]&&n[1].commentThread.length?null:n:null}}[Xa("0x54")](t){if(0==t[Xa("0x15a")])return;const e=this.getSuggestions({skipNotAttached:!0})[Xa("0xd2")]((t=>"attribute"==t.type&&t[Xa("0xa")])),n=[],o=new Map;for(const t of e){const e=(0,r.hashObject)(t.attributes),i=t[Xa("0x3")][Xa("0x177")]+e;o[Xa("0xd8")](i)||(o[Xa("0xc2")](i,n[Xa("0x15a")]),n[Xa("0x15f")]([]));const s=o[Xa("0x75")](i);n[s][Xa("0x15f")](t)}!function(){n[Xa("0xd")](((t,e)=>t[0][Xa("0xb")]<e[0].createdAt?-1:1));for(const t of n)t.sort(((t,e)=>t.id<e.id?-1:1))}();for(let t=0;t<n[Xa("0x15a")];t++){if(0==n[t].length)continue;const e=[];for(let o=t+1;o<n[Xa("0x15a")];o++)0!=n[o][Xa("0x15a")]&&i(n[t],n[o])&&e.push(o);for(const o of e)n[t]=n[t].concat(n[o]),n[o]=[]}for(const t of n)for(let e=0;e<t[Xa("0x15a")];e++)t[e][Xa("0xf")]=t[e-1]||null,t[e].next=t[e+1]||null;function i(t,e){return t[0][Xa("0x129")]===e[0][Xa("0x129")]&&(n=t[0],o=e[0],(!n[Xa("0x13f")]&&!o[Xa("0x13f")]||!(n[Xa("0x13f")]&&o[Xa("0x13f")]||!(n[Xa("0x13f")]&&o[Xa("0xb")]<n[Xa("0x11")][Xa("0x105")][Xa("0x75")](0)[Xa("0xb")]||o.hasComments&&n.createdAt<o[Xa("0x11")][Xa("0x105")][Xa("0x75")](0)[Xa("0xb")])))&&(!!sc(t[0],e[0])&&(!!t[Xa("0x9")]((t=>e[Xa("0x12")]((e=>t.getFirstRange()[Xa("0x11c")](e[Xa("0x6c")]())))))&&e[Xa("0x9")]((e=>t[Xa("0x12")]((t=>e.getFirstRange()[Xa("0x11c")](t[Xa("0x6c")]()))))))));var n,o}}[Xa("0x74")](t){const e=Array[Xa("0x138")](t),n=this[Xa("0x94")]({skipNotAttached:!0}),o=n[Xa("0xd2")]((e=>!t[Xa("0xd8")](e))),i=new Map(e.map((t=>[t,this[Xa("0x101")][Xa("0xe3")](t.type,t.subType,Xa("0x131"))]))),r=new Map(n[Xa("0x123")]((t=>[t,t[Xa("0x2")]()])));for(let t=0;t<e[Xa("0x15a")];t++)if(s(this,e[t],e,t+1))return!0;for(let t=0;t<e.length;t++)if(s(this,e[t],o,0))return!0;return!1;function s(t,e,n,o){for(let s=o;s<n[Xa("0x15a")];s++){const o=n[s];if(o.type!==e[Xa("0x16c")]||o[Xa("0x129")].id!==e.author.id||o[Xa("0x158")]!==e[Xa("0x158")])continue;if(!sc(e,o))continue;if(Xa("0x5e")==e[Xa("0x16c")]&&e.data[Xa("0x24")]!=o[Xa("0x3")][Xa("0x24")])continue;const x=i[Xa("0x75")](e),a=r[Xa("0x75")](e),c=r.get(o),l=e[Xa("0x11")]&&e.commentThread[Xa("0x15a")],u=o[Xa("0x11")]&&o[Xa("0x11")].length;if(!l&&x(c,a))return t[Xa("0xd1")](o,e),r[Xa("0xe7")](e),!0;if(!u&&x(a,c))return t._joinSuggestions(e,o),r[Xa("0xe7")](o),!0}return!1}}[Xa("0xd1")](t,e){if(t[Xa("0x23")])for(const n of e[Xa("0x2")]())t[Xa("0x149")](n);else{const n=e[Xa("0x6c")]()[Xa("0x2d")];this[Xa("0x4b")](t,this._model.createRange(t.getFirstRange()[Xa("0x34")],n))}e[Xa("0xde")]()}[Xa("0xbc")](t){return Xa("0x82")===this[Xa("0x50")](t.name)[Xa("0xa6")]}[Xa("0x11d")](t,e){const n=t[Xa("0x9e")](Xa("0x73"))||t.startsWith(Xa("0x5e"))?Xa("0x8e"):t[Xa("0x93")]();return Qo(this[Xa("0x4d")][Xa("0x3a")],e+"_"+n+Xa("0xd3"))}[Xa("0x25")](){const t=this.editor;(0,r.surroundingMarkersDetector)(this[Xa("0x37")],(({left:e,entered:n})=>{const o=[];for(const t of e){const{group:e,type:n}=this[Xa("0x50")](t[Xa("0x31")]);if(Xa("0x82")===e){o[Xa("0x15f")](this._getMarkerAnnouncementText(n,Xa("0x114")));break}}for(const t of n){const{group:e,type:n}=this[Xa("0x50")](t.name);if(Xa("0x82")===e){o[Xa("0x15f")](this[Xa("0x11d")](n,Xa("0x66")));break}}o.length&&t.ui[Xa("0xa0")].announce(Xa("0x165"),o.join(" "))}))}_processAttributeChanges(t){if(null!==this[Xa("0x133")])return!1;const e=this.editor,n=e[Xa("0x14a")][Xa("0x51")][Xa("0x7")].getChanges();if(0==n[Xa("0x15a")])return!1;const o=[],i=n[Xa("0xd2")]((t=>Xa("0x5e")==t.type)),r=n[Xa("0xd2")]((t=>"insert"==t[Xa("0x16c")]&&Xa("0x88")!=t[Xa("0x31")])),s=n.filter((t=>Xa("0xf4")==t[Xa("0x16c")]&&"$text"!=t[Xa("0x31")]));for(const t of i)o[Xa("0x15f")]({key:t[Xa("0xa7")],newValue:t.attributeNewValue,oldValue:t.attributeOldValue,range:(x=t[Xa("0x79")],null==x[Xa("0x2d")].nodeBefore&&x[Xa("0x2d")][Xa("0x120")]==x[Xa("0x34")][Xa("0xdd")]?ic(x.start[Xa("0xdd")],e.model):x)});var x;for(const t of r){const n=s[Xa("0xb4")]((e=>e[Xa("0x141")][Xa("0x11c")](t[Xa("0x141")])));n&&o.push({key:Xa("0x110"),newValue:n[Xa("0x31")],oldValue:t[Xa("0x31")],range:e.model.createRangeOn(t[Xa("0x141")][Xa("0xdd")])})}return 0!=o[Xa("0x15a")]&&this._reduceExistingSuggestions(t,o)}[Xa("0x30")](t){let e=!1;const n=this[Xa("0x4d")][Xa("0x14a")][Xa("0x51")].differ.getChangedMarkers()[Xa("0xd2")]((t=>t[Xa("0x3")][Xa("0x115")]&&t.name[Xa("0x9e")](Xa("0xe0"))));for(const o of n){const{subType:n,id:i}=this._splitMarkerName(o.name),r=n[Xa("0x135")]("|")[0];for(const n of this.getSuggestions({skipNotAttached:!0}))n.id!=i&&Xa("0x5e")==n[Xa("0x16c")]&&n[Xa("0x3")]&&n.data[Xa("0x107")]==r&&n[Xa("0x6c")]()[Xa("0xb8")](o.data[Xa("0x115")])&&(this._reduceSuggestionAttributeRange(n,o[Xa("0x3")][Xa("0x115")],t),e=!0)}return e}[Xa("0x12e")](t){if(null!==this[Xa("0x133")])return void t();const n=this[Xa("0x4d")];this[Xa("0x133")]=n[Xa("0x14a")][Xa("0x51")][Xa("0x16b")],t();const o=new Map;for(const t of n[Xa("0x14a")].document[Xa("0x4f")][Xa("0x6d")](this[Xa("0x133")]))if([Xa("0xfa"),Xa("0x16e"),Xa("0x2e"),"changeAttribute"].includes(t.type)){const e=t.batch,n=o[Xa("0x75")](e)||[];n.push(t),o[Xa("0xc2")](e,n)}this._recordAttributeSuggestionsFromVersion=null;for(const[t,i]of o){const o=(0,e.uid)();n[Xa("0x14a")][Xa("0x0")](t,(t=>{const e=[];for(const t of i){let i,r,s,x;if(Xa("0xfa")==t[Xa("0x16c")]){const e=t;i=ic(e[Xa("0x141")][Xa("0xdd")],n[Xa("0x14a")]),r=Xa("0x110"),s=e[Xa("0x60")],x=e.oldName}else{const e=t,o=this[Xa("0xe")](e.key),a=this[Xa("0xf6")].has(e[Xa("0x107")]);if(!o&&!a)continue;i=o?ic(e[Xa("0x79")][Xa("0x34")][Xa("0xdd")],n[Xa("0x14a")]):e.range,r=e[Xa("0x107")],s=Xa("0x2e")==t.type?void 0:e[Xa("0x124")],x=e.oldValue}this[Xa("0x4e")](i,r,x,s,o),e.push({range:i,key:r,newValue:s,oldValue:x})}this._reduceExistingSuggestions(t,e)}))}}[Xa("0xcc")](t,e){if(0==e[Xa("0x15a")])return!1;let n=!1;for(const o of e){const e=this._findSuggestions(o[Xa("0x79")],Xa("0x5e"))[Xa("0xd2")]((t=>!t[Xa("0x48")].isNextTo))[Xa("0x123")]((t=>t[Xa("0x82")])),i=(0,r.hashObject)({newValue:o.newValue}),s=e[Xa("0xd2")]((t=>{const[e,n]=t.subType[Xa("0x135")]("|");return e==o[Xa("0x107")]&&n!=i}));for(const e of s)this[Xa("0xbe")](e,o[Xa("0x79")],t),n=!0}return n}[Xa("0xbe")](t,e,n){const o=t[Xa("0x6c")]()[Xa("0xa1")](e);if(0===o[Xa("0x15a")])return void n[Xa("0x86")](t[Xa("0x7f")]());const i=this[Xa("0x122")](t);this._isBlockAttribute(i)||(1!==o[Xa("0x15a")]?this._breakSuggestionMarker(t,e[Xa("0x34")],e[Xa("0x2d")]):this[Xa("0x4b")](t,o[0]))}}class Ja{constructor(t){this[Xa("0x143")]=t,this[Xa("0x37")]=t[Xa("0x14a")],this._customCallbacks=new Map,this._defaultCallbacks=new Map,this[Xa("0x1f")]()}[Xa("0x134")](t,e,n,o,i,r){return new Jo(this[Xa("0x37")],{type:t,subType:e,id:n,author:o,creator:o,attributes:i,onAttributesChange:r,onAccept:(...n)=>this.getSuggestionCallback(t,e,Xa("0x59"))(...n),onDiscard:(...n)=>this.getSuggestionCallback(t,e,Xa("0xb7"))(...n)})}[Xa("0xef")](t,e,n,o){const i=t+":"+e+":"+n;this[Xa("0x16a")][Xa("0xc2")](i,o)}[Xa("0xe3")](t,e,n){const o=t+":"+e+":"+n;return this[Xa("0x16a")][Xa("0x75")](o)||this[Xa("0xbb")][Xa("0x75")](t+":"+n)}_registerDefaultCallbacks(){const t=()=>!1,e=t=>{t[Xa("0xd")](((t,e)=>t[Xa("0x34")][Xa("0x29")](e[Xa("0x34")])?1:-1)),this[Xa("0x37")].change((e=>{for(const n of t){let t;t=n.end[Xa("0x68")]&&n[Xa("0x2d")][Xa("0x120")]==n.start[Xa("0xdd")]?e[Xa("0x144")](n[Xa("0x34")].nodeAfter,"on"):e[Xa("0x144")](n),this._model[Xa("0x10a")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{e&&this._model.change((n=>{const{commandName:o,commandParams:i=[]}=e,r=t[Xa("0x123")]((t=>(tc(t)&&(t=this[Xa("0x37")][Xa("0x28")](t[Xa("0x2d")])),t)))[Xa("0xd2")]((t=>"$graveyard"!==t[Xa("0xe4")][Xa("0x27")]));if(r.length<1)return;const x=Array[Xa("0x138")](this[Xa("0x37")][Xa("0x51")][Xa("0xa8")][Xa("0x2")]())[Xa("0x123")]((t=>s.LiveRange[Xa("0x9f")](t)));n.setSelection(r);for(const t of this[Xa("0x143")][Xa("0x11a")][Xa("0x11a")]())t[Xa("0x130")]();i[Xa("0x15f")]({forceDefaultExecution:!0}),this[Xa("0x143")][Xa("0xed")](o,...i);const a=x.filter((t=>Xa("0x166")!=t[Xa("0xe4")].rootName));a.length>0&&n[Xa("0x173")](a);for(const t of x)t[Xa("0x32")]()}))},o=(t,e)=>1==t[Xa("0x15a")]&&1==e[Xa("0x15a")]&&t[0].end[Xa("0x11c")](e[0][Xa("0x34")]),i=(t,e,n,o)=>rc(t,e,n,o,this[Xa("0x37")])?[t,e]:rc(e,t,o,n,this[Xa("0x37")])?[e,t]:null;this._defaultCallbacks[Xa("0xc2")](Xa("0xa9"),t),this._defaultCallbacks[Xa("0xc2")](Xa("0xba"),e),this[Xa("0xbb")][Xa("0xc2")]("insertion:join",o),this._defaultCallbacks[Xa("0xc2")](Xa("0xe8"),i),this[Xa("0xbb")][Xa("0xc2")](Xa("0xbf"),e),this[Xa("0xbb")][Xa("0xc2")](Xa("0x12b"),t),this[Xa("0xbb")].set(Xa("0x5b"),o),this._defaultCallbacks.set(Xa("0xd0"),i),this[Xa("0xbb")][Xa("0xc2")]("formatInline:accept",n),this[Xa("0xbb")].set("formatInline:discard",t),this[Xa("0xbb")][Xa("0xc2")](Xa("0x7b"),o),this[Xa("0xbb")][Xa("0xc2")](Xa("0x10d"),t),this[Xa("0xbb")][Xa("0xc2")](Xa("0x16"),n),this[Xa("0xbb")][Xa("0xc2")]("formatBlock:discard",t),this._defaultCallbacks[Xa("0xc2")](Xa("0x128"),o),this._defaultCallbacks[Xa("0xc2")]("formatBlock:chain",t),this[Xa("0xbb")].set(Xa("0xc4"),t),this._defaultCallbacks.set(Xa("0x103"),((t,e)=>{e&&(Xa("0x110")!=e[Xa("0x107")]?this._editor[Xa("0xab")][Xa("0x75")](Za)[Xa("0xe")](e[Xa("0x107")])?this._model[Xa("0x41")]((n=>{for(const o of t)void 0===e.oldValue?n.removeAttribute(e.key,o[Xa("0x34")][Xa("0xdd")]):n[Xa("0xf1")](e.key,e[Xa("0x24")],o[Xa("0x34")][Xa("0xdd")])})):this._model[Xa("0x41")]((n=>{for(const o of t)e[Xa("0x24")]?n[Xa("0xf1")](e.key,e[Xa("0x24")],o):n.removeAttribute(e[Xa("0x107")],o)})):this._model[Xa("0x41")]((n=>{for(const o of t){const t=o[Xa("0x34")][Xa("0xdd")];n[Xa("0xfa")](t,e.oldValue)}})))})),this[Xa("0xbb")][Xa("0xc2")]("attribute:join",o)}}function Qa(t,e,n){for(const o of e[Xa("0x120")].getAncestors({includeSelf:!0,parentFirst:!0})){if(o[Xa("0xe4")]==o)return!1;if(!n[Xa("0x153")](o))return!1;if(t[Xa("0x167")](o)||t[Xa("0x87")](o))return!0}return!1}function tc(t){return t[Xa("0x2d")][Xa("0x120")]==t[Xa("0x34")].nodeAfter&&t[Xa("0x2d")][Xa("0xf8")]}function ec(t,e,n,o){const i=t=>!t[Xa("0x21")].is(Xa("0xf3"))&&!o[Xa("0x167")](t.item),r=t[Xa("0x34")][Xa("0x2c")](i),s=t[Xa("0x2d")][Xa("0x2c")](i,{direction:Xa("0x65")});return!(t[Xa("0x34")][Xa("0x11c")](r)&&t[Xa("0x2d")].isEqual(s)||(r.isBefore(s)?n[Xa("0xf9")](e,{range:n.createRange(r,s)}):n.removeMarker(e),0))}function nc(t){return(0,r.hashObject)(t)}function oc(t){const e=t[Xa("0x34")][Xa("0xdd")];return e&&e.is("element")}function ic(t,e){const n=e.schema[Xa("0x167")](t)||e[Xa("0xfc")][Xa("0x96")](t);return e[Xa("0x28")](e.createPositionAt(t,"before"),n?e[Xa("0x76")](t):e[Xa("0x8a")](t,Xa("0x2d")))}function rc(t,e,n,o,i){if(!sc(t,e))return!1;if(n[Xa("0x2d")][Xa("0x11c")](o[Xa("0x34")]))return!0;if(t[Xa("0x16c")]!=e.type)return!1;if(!n[Xa("0x2d")][Xa("0x72")](o[Xa("0x34")]))return!1;const r=i[Xa("0x28")](n[Xa("0x2d")],o[Xa("0x34")])[Xa("0x118")]();for(const t of r)if(["elementStart","elementEnd"][Xa("0x4c")](t.type)&&i[Xa("0xfc")][Xa("0x87")](t[Xa("0x21")]))return!1;return!0}function sc(t,e){return!(!t[Xa("0xa")]||!e[Xa("0xa")])&&Go(t.attributes,e[Xa("0x15e")])}function xc(t,e){const n=ac(t.attributes),o=ac(e);if(!t[Xa("0xa")])return!1;for(const t of Object[Xa("0xa2")](o))if(!Go(n[t],o[t]))return!1;return!0}function ac(t){const e=Object.assign({},t);return delete e.skipNestingCheck,delete e.tablePasteChainId,e}const cc=["PendingActions","_pendingAction","_editor","add","discardSuggestion","commands","destroy","getRanges","plugins","unbind","_removePendingAction","listenTo","bind","isEnabled","_discardCommand","_setPendingAction","view","stopListening","model","PENDING_ACTION_SUGGESTION","get","execute","commentThreadController","canDiscard","_acceptCommand","isDirty","change:isDirty","locale","canAccept","canEditAt","acceptSuggestion"];var lc,uc;lc=cc,uc=457,function(t){for(;--t;)lc.push(lc.shift())}(++uc);const dc=function(t,e){return cc[t-=0]};class gc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[dc("0x1a")]=e,this.view=n,this[dc("0x1e")]=o,this._editor=t,this[dc("0x1")]=t[dc("0xd")].get("acceptSuggestion"),this[dc("0x16")]=t.commands.get("discardSuggestion"),this[dc("0x18")][dc("0x14")](dc("0x15")).to(this[dc("0x1")],this[dc("0x16")],((t,e)=>t||e)),this[dc("0x18")][dc("0x14")](dc("0x5")).to(this._acceptCommand,dc("0x15"),(t=>t&&this[dc("0xa")][dc("0x1a")][dc("0x6")](e[dc("0xf")]()))),this[dc("0x18")][dc("0x14")](dc("0x0")).to(this[dc("0x16")],dc("0x15"),(t=>t&&this._editor[dc("0x1a")][dc("0x6")](e[dc("0xf")]()))),this[dc("0x9")]=null,n[dc("0x2")]&&this[dc("0x17")](),this[dc("0x13")](n,"acceptSuggestion",(()=>this[dc("0x7")]())),this[dc("0x13")](n,dc("0xc"),(()=>this.discardSuggestion())),this[dc("0x13")](n,dc("0x3"),(()=>{n[dc("0x2")]?this[dc("0x17")]():this._removePendingAction()}))}acceptSuggestion(){this._acceptCommand[dc("0x1d")](this[dc("0x1a")].id)}[dc("0xc")](){this[dc("0x16")][dc("0x1d")](this.model.id)}[dc("0xe")](){this.view[dc("0x11")](dc("0x15")),this[dc("0x18")].unbind(dc("0x5")),this[dc("0x18")][dc("0x11")](dc("0x0")),this[dc("0x19")](),this.commentThreadController[dc("0xe")](),this[dc("0x9")]&&this[dc("0x12")]()}[dc("0x17")](){const t=Qo(this[dc("0xa")][dc("0x4")],dc("0x1b"));this[dc("0x9")]=this[dc("0xa")][dc("0x10")][dc("0x1c")](dc("0x8"))[dc("0xb")](t)}[dc("0x12")](){null!==this[dc("0x9")]&&this[dc("0xa")][dc("0x10")][dc("0x1c")]("PendingActions").remove(this[dc("0x9")]),this._pendingAction=null}}const fc=["_createCommentThreadInputView","locale","isDirty","editor","setData","_config","authoredAt","addComment","CommentView","commentThread","cancel","value","element","commentsListView","descriptionParts","assign","removeComment","commentInputView","isReadOnly","updateComment","_model","fire","length","delegate","showInput","bind","set","destroy","canDiscard","isEnabled","focus","_createCommentViews","commentThreadInputView","submit","_localUser","disabledSubmit","disableComments","isActive"];var mc,hc;mc=fc,hc=475,function(t){for(;--t;)mc.push(mc.shift())}(++hc);const pc=function(t,e){return fc[t-=0]};class bc extends i.View{constructor(t,e,n,o){super(t),this[pc("0x20")]=null,this[pc("0xd")]=null,this[pc("0x7")](pc("0x12"),!1),this.set(pc("0x19"),e[pc("0x19")]),this[pc("0x6")](pc("0x19")).to(e),this[pc("0x7")](pc("0x21"),[]),this[pc("0x7")](pc("0x15"),!1),this.set(pc("0xa"),!1),this[pc("0x7")]("canAccept",!1),this[pc("0x7")](pc("0x9"),!1),this[pc("0x1")]=e,this[pc("0xf")]=n,this[pc("0x18")]=o,o[pc("0x11")]?this.set(pc("0x3"),1):this[pc("0xc")]()}[pc("0xb")](){this[pc("0x1f")].focus()}[pc("0x8")](){this[pc("0x20")]&&this.commentsListView.destroy(),this[pc("0xd")]&&this[pc("0xd")][pc("0x8")](),super[pc("0x8")]()}[pc("0xc")](){const{CommentsListView:t}=this[pc("0x18")];this[pc("0x20")]=new t(this[pc("0x14")],this[pc("0x1")].commentThread,Object[pc("0x22")]({CommentView:this[pc("0x18")][pc("0x1b")]},this._config)),this.commentsListView.delegate(pc("0x23")).to(this),this[pc("0x20")][pc("0x4")](pc("0x0")).to(this),this.commentsListView[pc("0x6")](pc("0x12")).to(this),this[pc("0x7")](pc("0x3"),this[pc("0x20")][pc("0x3")]+1),this[pc("0x6")](pc("0x3")).to(this[pc("0x20")],"length",(t=>t+1)),this[pc("0xd")]=this[pc("0x13")](),this.on(pc("0x23"),(()=>this[pc("0xb")]())),this[pc("0x6")]("isDirty").to(this[pc("0x20")],"hasDirtyComment",this[pc("0xd")][pc("0x24")],"value",((t,e)=>t||!!e))}[pc("0x13")](){const{CommentThreadInputView:t}=this[pc("0x18")],e=new t(this[pc("0x14")],this[pc("0xf")],this[pc("0x18")].editorConfig),n=e[pc("0x24")];return e[pc("0x6")](pc("0x5")).to(this,pc("0x12"),this[pc("0x1")][pc("0x1c")],pc("0x25"),n,pc("0x1e"),((t,e,n)=>!!n||t&&!e)),n.on(pc("0xe"),((t,e)=>{this[pc("0x2")](pc("0x1a"),e),n[pc("0x16")][pc("0x17")]("")})),n.on(pc("0x1d"),(()=>this[pc("0xb")]())),n[pc("0x6")](pc("0x10")).to(this[pc("0x1")][pc("0x1c")],pc("0x25")),e}}const Ec=["ck-annotation","getTemplate","_descriptionElement","description","join","cancel","commentThreadInputView","author","name","ck-annotation__main","fire","importWord","disableComments",".ck-annotation__content-wrapper","innerHTML","querySelector","ck-annotation__info","bind","ck-comment__external","delegate","ck-suggestion__info","EXTERNAL_SUGGESTION","descriptionParts","editorDestroyed","span","isExternal","source","acceptButton","ck-suggestion__info-name","Discard suggestion","isActive","ck-suggestion","formatDateTime","getExternalSuggestionNote","authoredAt","attributes","ck-annotation__content-wrapper","ck-suggestion-wrapper--active","render","ck-annotation__user","_config",'" title="',"discardSuggestion","@external","</p>","isEnabled","Accept suggestion","type","getUserViewNotificationText","ck-annotation__actions","_model","div","EXTERNAL_IMPORT_WORD_SUGGESTION","commentsListView","extendTemplate","ck-comment__info-time","userView","ck-annotation__info-time","ck-suggestion-wrapper","ck-suggestion--discard","check","title","canDiscard","bindTemplate","acceptSuggestion","execute","_createButton","ck-suggestion__main","push","time","set","setTemplate","ck-suggestion__actions","editorReady","locale",'"></span>',"creator","createElement","commentThread","</span>","<p>"];var _c,Tc;_c=Ec,Tc=292,function(t){for(;--t;)_c.push(_c.shift())}(++Tc);const yc=function(t,e){return Ec[t-=0]};class Cc extends bc{constructor(e,n,o,i){super(e,n,o,i),this[yc("0x15")]("type",""),this[yc("0x31")](yc("0x4f")).to(this,yc("0x36"),(t=>t&&t[0]?t[0][yc("0x4f")]:"")),this.bind(yc("0x23")).to(this,yc("0x36"),this,yc("0x3e"),((t,e)=>{let n="";for(const e of t)n+=yc("0x1f")+Ac(e.content,e.color)+yc("0x4c");return e?n:(0,r.trimHtml)(n,{limit:140})})),this[yc("0x22")]=null,this[yc("0x3b")]=this[yc("0x11")](Qo(e,yc("0x4e")),t.icons[yc("0xb")],"ck-suggestion--accept",yc("0xf"),"sw"),this[yc("0x3b")][yc("0x31")](yc("0x4d")).to(this,"canAccept"),this.discardButton=this[yc("0x11")](Qo(e,yc("0x3d")),t.icons[yc("0x25")],yc("0xa"),yc("0x4a"),"sw"),this.discardButton.bind(yc("0x4d")).to(this,yc("0xd")),this[yc("0x7")]=new r.UserView(e,this[yc("0x1")].author,this[yc("0x50")]()),this[yc("0x7")].extendTemplate({attributes:{class:["ck-suggestion__user",yc("0x47")]}}),this[yc("0x16")](this[yc("0x21")]())}getTemplate(){const t=this[yc("0xe")],e=[{tag:yc("0x2"),attributes:{class:[yc("0x34"),yc("0x30")]},children:[{tag:yc("0x38"),children:[{text:this[yc("0x7")][yc("0x28")]}],attributes:{class:[yc("0x3c"),"ck-annotation__info-name"]}},{tag:yc("0x14"),attributes:{datetime:t.to(yc("0x42")),class:[yc("0x6"),yc("0x8")]},children:[{text:t.to(yc("0x42"),(t=>this[yc("0x48")][yc("0x40")](t)))}]}]},{tag:"div",attributes:{class:[yc("0x17"),yc("0x0")]},children:[this[yc("0x3b")],this.discardButton]},{tag:"div",attributes:{class:[yc("0x44")]}}];this[yc("0x1")][yc("0x39")]&&e[yc("0x13")]({tag:"div",attributes:{class:[yc("0x32")]},children:[{text:this.getExternalSuggestionNote()}]});const n={tag:yc("0x2"),attributes:{class:[yc("0x9"),t.if(yc("0x3e"),yc("0x45")),t.to(yc("0x4f"),(t=>"ck-suggestion-"+t)),this[yc("0x48")][yc("0x2c")]&&"ck-suggestion--disabled-comments"],"data-suggestion-id":this[yc("0x1")].id,"data-thread-id":this._model[yc("0x1d")].id,"data-author-id":this._model[yc("0x27")].id,tabindex:-1},children:[{tag:yc("0x2"),attributes:{class:[yc("0x3f"),yc("0x20")]},children:[this[yc("0x7")],{tag:"div",attributes:{class:[yc("0x12"),yc("0x29")]},children:e}]}]};return this[yc("0x4")]&&this[yc("0x26")]&&(n.children[yc("0x13")](this[yc("0x4")],this[yc("0x26")]),this[yc("0x4")][yc("0x33")](yc("0x18")).to(this),this[yc("0x4")][yc("0x33")](yc("0x37")).to(this),this[yc("0x26")].delegate(yc("0x18")).to(this),this[yc("0x26")][yc("0x33")](yc("0x37")).to(this)),n}[yc("0x46")](){super[yc("0x46")](),this[yc("0x22")]=this.element[yc("0x2f")](yc("0x2d")),this[yc("0x22")].innerHTML=this.description,this.on("change:description",((t,e,n)=>{this._descriptionElement.innerHTML=n}))}_createButton(t,e,n,o,r){const s=new i.ButtonView(this.locale);return s[yc("0x15")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),s[yc("0x5")]({attributes:{class:n}}),s.on(yc("0x10"),(()=>{this[yc("0x2a")](o,this._model.id)})),s}[yc("0x41")](){return"importWord"===this[yc("0x1")].attributes[yc("0x4b")][yc("0x3a")]?Qo(this[yc("0x19")],yc("0x3")):Qo(this[yc("0x19")],yc("0x35"))}[yc("0x50")](){return this._model[yc("0x39")]?yc("0x2b")===this._model[yc("0x43")][yc("0x4b")].source?Qo(this[yc("0x19")],"EXTERNAL_IMPORT_WORD_AVATAR",this[yc("0x1")][yc("0x1b")][yc("0x28")]):Qo(this[yc("0x19")],"EXTERNAL_AVATAR",this[yc("0x1")][yc("0x1b")].name):null}}function Ac(t,e){let n="";return n+=t.split("*").map(((t,e)=>e%2!=0?'<span class="ck-suggestion-type">'+kc(t)+yc("0x1e"):kc(t)))[yc("0x24")](""),e&&(n+='<span class="ck-suggestion-color" style="background-color: '+e.value+yc("0x49")+e[yc("0xc")]+yc("0x1a")),n}function kc(t){const e=document[yc("0x1c")](yc("0x38"));return e.innerText=t,e[yc("0x2e")]}const Ic=["unbind","head","getByInnerView","change:previous","Track changes","acceptSelectedSuggestions","createAnnotation","suggestionLoaded","arrowView","discardAllSuggestions","CommentView","activeAnnotations","_initializeController","separator","focus","Discard all suggestions","innerView","getJoined","SuggestionThreadView","comments.maxCommentCharsWhenCollapsed","editor","CommentsRepository","toMany","Accept all selected suggestions","push","_refreshActiveMarkers","getDescriptions","_annotationViews","plugins","_unbindEditors","commandName","CommentsUI","suggestionChanged","_destroyController","execute","get","getSuggestion","_viewToController","isInContent","_handleControllerBuffer","_suggestionToController","_descriptionFactory","from","commentThread","values","remove","value","Discard all selected suggestions","discardSelectedSuggestions","_handleSuggestionControllerDelayed","comments.maxThreadTotalWeight","getMarkers","listenTo","isEnabled","buttonView","refreshSelectedViews","_updateController","lowest","suggestionUnloaded","descriptionParts","view","trackChanges.disableComments","comments.maxCommentsWhenCollapsed","size","keys","has","Annotations","define","commands","type","EditorAnnotations","comments","destroy","suggestion-","filter","addComment","isDirty","model","pluginName","discardButton","isMultiRange","registerAnnotation","createAnnotationView","comments.editorConfig","length","_disableComments","mainView","_bindAnnotationToEditors","actionView","getMarkerNames","button","add","trackChanges","some","isOn","_createUIButton","stopListening","activeMarkers","set","getAllAdjacentSuggestions","locale","reduce","bind","init","editing","switchbutton","requires","delete","source","TrackChangesEditing"];var Rc,Sc;Rc=Ic,Sc=317,function(t){for(;--t;)Rc.push(Rc.shift())}(++Sc);const Nc=function(t,e){return Ic[t-=0]};class vc extends t.Plugin{static get[Nc("0x9")](){return[Za,r.Users,Nc("0x22"),Nc("0x4f"),Nc("0x53")]}static get[Nc("0x5b")](){return"TrackChangesUI"}constructor(t){super(t),this._suggestionToController=new Map,this._viewToController=new Map,this[Nc("0x28")]=new Map,this[Nc("0x34")]=new Map;const e=this[Nc("0x21")].config;e[Nc("0x50")]("trackChanges.SuggestionThreadView",Cc),e.define(Nc("0x4a"),!1),this[Nc("0x62")]=e.get("trackChanges.disableComments")}[Nc("0x3e")](t,e){0===this[Nc("0x34")][Nc("0x4c")]&&setTimeout((()=>{for(const[t,e]of this._handleControllerBuffer){const n=this[Nc("0x35")][Nc("0x4e")](t);n||e?n&&e&&this[Nc("0x2e")](t):this[Nc("0x19")](t)}this.editor.plugins[Nc("0x30")](Nc("0x53"))[Nc("0x44")](),this[Nc("0x26")](),this._handleControllerBuffer.clear()}),10),this._handleControllerBuffer[Nc("0x1")](t,e)}[Nc("0x6")](){const t=this[Nc("0x21")],e=t[Nc("0x29")][Nc("0x30")]("TrackChangesEditing"),n=t.plugins[Nc("0x30")](Nc("0x4f")),o=t[Nc("0x29")][Nc("0x30")](Nc("0x53")),i=t[Nc("0x29")][Nc("0x30")]("CommentsRepository");t.ui.componentFactory[Nc("0x68")]("trackChanges",(t=>this._createUIButton(t))),o.addSourceCollector((()=>{const t=[];for(const[e,n]of Array[Nc("0x37")](this[Nc("0x35")])){const o=e[Nc("0x2")](),i=[];for(const t of o){if(!t.isInContent)continue;if(t[Nc("0x5d")]){i[Nc("0x25")](...t.getRanges());continue}const e=t.getFirstRange();if(i.length>0){const t=i[0][Nc("0x1e")](e);if(t){i[0]=t;continue}}i.push(e)}t[Nc("0x25")]([n[Nc("0x49")],i])}return t})),this.listenTo(e,Nc("0x14"),((t,e)=>{this.listenTo(e,Nc("0x10"),((t,n,o,i)=>{e[Nc("0x33")]&&(null==o?(this._updateController(i[Nc("0xe")]),this[Nc("0x3e")](e,!1)):(this[Nc("0x45")](o[Nc("0xe")]),null==i&&this[Nc("0x3e")](e,!0)))})),null!==e.previous?this[Nc("0x45")](e[Nc("0xe")]):this[Nc("0x3e")](e,!1)})),this[Nc("0x41")](e,Nc("0x47"),((t,e,n)=>{this[Nc("0x6d")](e,"change:previous"),this._handleControllerBuffer[Nc("0xa")](e),this._suggestionToController.has(e)&&this._destroyController(e),n&&this[Nc("0x45")](n[Nc("0xe")])})),this[Nc("0x41")](e,Nc("0x2d"),((t,e)=>{this[Nc("0x45")](e)})),this[Nc("0x41")](n,"change:activeAnnotations",(()=>{this[Nc("0x26")]()})),this[Nc("0x41")](i,Nc("0x58"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e.hasSuggestion(n))return;const i=e[Nc("0x31")](n);this[Nc("0x35")][Nc("0x30")](i)[Nc("0x49")][Nc("0x1b")]()}),{priority:Nc("0x46")})}[Nc("0x26")](){const t=this[Nc("0x21")][Nc("0x29")][Nc("0x30")](Nc("0x4f")),e=this[Nc("0x21")][Nc("0x29")][Nc("0x30")](Nc("0xc")),n=Array[Nc("0x37")](t[Nc("0x18")],(t=>t[Nc("0x1d")])).filter((t=>this._viewToController.has(t))),o=[];for(const t of n){const e=this[Nc("0x32")].get(t)[Nc("0x5a")][Nc("0x2")]();o.push(...e[Nc("0x4")](((t,e)=>[...t,...e[Nc("0x66")]()]),[]))}e[Nc("0x0")]=o}[Nc("0x6c")](t){const n=(0,i.createDropdown)(t,i.SplitButtonView),o=this[Nc("0x21")].commands[Nc("0x30")]("trackChanges"),r=Qo(t,Nc("0x11"));n[Nc("0x43")][Nc("0x1")]({tooltip:r,label:r,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[Nc("0x43")][Nc("0x5")](Nc("0x6b")).to(o,Nc("0x3b")),n[Nc("0x43")].on(Nc("0x2f"),(()=>{o[Nc("0x2f")](),this[Nc("0x21")][Nc("0x7")][Nc("0x49")][Nc("0x1b")]()}));const s=new e.Collection,x=[{type:Nc("0x8"),model:{withText:!0,label:r,commandName:Nc("0x69")}},{type:Nc("0x1a")},{type:Nc("0x67"),model:{withText:!0,label:Qo(t,"Accept all suggestions"),commandName:"acceptAllSuggestions"}},{type:Nc("0x67"),model:{withText:!0,label:Qo(t,Nc("0x24")),commandName:Nc("0x12")}},{type:Nc("0x67"),model:{withText:!0,label:Qo(t,Nc("0x1c")),commandName:Nc("0x16")}},{type:"button",model:{withText:!0,label:Qo(t,Nc("0x3c")),commandName:Nc("0x3d")}}];for(const t of x){let e={type:Nc("0x1a")};if(t[Nc("0x5a")]){const n=new i.Model(t[Nc("0x5a")]),o=this[Nc("0x21")][Nc("0x51")][Nc("0x30")](n[Nc("0x2b")]);n[Nc("0x5")]("isOn",Nc("0x42")).to(o,Nc("0x3b"),Nc("0x42")),e={type:t.type,model:n}}s[Nc("0x68")](e)}(0,i.addListToDropdown)(n,s);const a=x.filter((t=>null!=t.model)).map((t=>this[Nc("0x21")][Nc("0x51")][Nc("0x30")](t[Nc("0x5a")][Nc("0x2b")]))),c=n.buttonView;return c[Nc("0x65")][Nc("0xd")]("isEnabled"),c[Nc("0x15")][Nc("0xd")](Nc("0x42")),c[Nc("0x65")][Nc("0x5")]("isEnabled").to(o,Nc("0x42")),c[Nc("0x15")][Nc("0x5")](Nc("0x42"))[Nc("0x23")](a,Nc("0x42"),((...t)=>t[Nc("0x6a")]((t=>t)))),n.on(Nc("0x2f"),(t=>{this.editor[Nc("0x2f")](t[Nc("0xb")].commandName),this.editor[Nc("0x7")][Nc("0x49")].focus()})),n}[Nc("0x19")](t){const e=this[Nc("0x21")],n=e.config,o=e[Nc("0x29")][Nc("0x30")](Nc("0x4f")),i=e[Nc("0x29")].get("CommentsRepository"),s=e[Nc("0x29")][Nc("0x30")]("EditorAnnotations"),x=e[Nc("0x29")][Nc("0x30")](r.Users).me,a=n[Nc("0x30")](Nc("0x69"))[Nc("0x1f")],{CommentsListView:c,CommentThreadInputView:l}=e[Nc("0x29")][Nc("0x30")](Nc("0x2c"));let u,d;this[Nc("0x28")][Nc("0x4e")](t.id)?(d=this[Nc("0x28")].get(t.id),u=d[Nc("0x63")]):(u=new a(e[Nc("0x3")],t,x,{disableComments:this._disableComments,editorConfig:n[Nc("0x30")](Nc("0x60")),maxCommentsWhenCollapsed:n[Nc("0x30")](Nc("0x4b")),maxThreadTotalWeight:n[Nc("0x30")](Nc("0x3f")),maxCommentCharsWhenCollapsed:n[Nc("0x30")](Nc("0x20")),formatDateTime:(0,r.getDateTimeFormatter)(n[Nc("0x30")]("locale")),CommentView:n[Nc("0x30")](Nc("0x54"))[Nc("0x17")],CommentsListView:c,CommentThreadInputView:l}),u.acceptButton.on("execute",(()=>{e.editing[Nc("0x49")][Nc("0x1b")]()})),u[Nc("0x5c")].on("execute",(()=>{e[Nc("0x7")].view[Nc("0x1b")]()})),d=o[Nc("0x5f")](this[Nc("0x21")][Nc("0x3")],u),d[Nc("0x5")](Nc("0x59")).to(u,Nc("0x59")),d[Nc("0x5")](Nc("0x61")).to(u),d[Nc("0x5")](Nc("0x52")).to(u,"type",(t=>Nc("0x56")+t)),this[Nc("0x28")][Nc("0x1")](t.id,d));const g=i.createCommentThreadController(t[Nc("0x38")],u),f=new gc(e,t,u,g),m=t[Nc("0x2")]()[Nc("0x57")]((t=>t.isInContent));u[Nc("0x48")]=e[Nc("0x29")][Nc("0x30")](Nc("0xc"))[Nc("0x36")][Nc("0x27")](m),this[Nc("0x35")].set(t,f),this[Nc("0x32")].set(u,f);const h=o[Nc("0x13")]({view:d,target:()=>{const n=[],o=t[Nc("0x2")]()[Nc("0x57")]((t=>t[Nc("0x33")]));for(const t of o)n.push(...t[Nc("0x40")]());return(0,r.getAllMarkersDomElementsSorted)(e.editing,n)},type:()=>Nc("0x56")+f[Nc("0x49")][Nc("0x52")]});i[Nc("0x64")](u,h),o[Nc("0x68")](h),s[Nc("0x5e")](h)}[Nc("0x2e")](t){const e=this[Nc("0x21")].plugins[Nc("0x30")]("CommentsRepository"),n=this[Nc("0x21")][Nc("0x29")].get(Nc("0x4f")),o=this._suggestionToController.get(t),i=o[Nc("0x49")],r=n[Nc("0xf")](i);e[Nc("0x2a")](i),r&&n[Nc("0x3a")](r),this._suggestionToController[Nc("0xa")](t),this._viewToController.delete(i),o[Nc("0x55")]()}[Nc("0x45")](t){if(!t[Nc("0x33")]||!this[Nc("0x35")].has(t))return;const e=this[Nc("0x21")][Nc("0x29")].get(Nc("0xc")),n=this[Nc("0x35")][Nc("0x30")](t),o=t[Nc("0x2")]();n[Nc("0x49")].descriptionParts=e[Nc("0x36")][Nc("0x27")](o)}destroy(){for(const t of this[Nc("0x35")][Nc("0x4d")]())this[Nc("0x2e")](t);for(const t of this._annotationViews[Nc("0x39")]())t[Nc("0x63")][Nc("0x55")]();super[Nc("0x55")]()}}var Lc,Mc,Oc=["adapter","requires","editor","Comments","getSuggestions","TrackChanges","pluginName","addSuggestion","getSuggestion","plugins","get"];Lc=Oc,Mc=483,function(t){for(;--t;)Lc.push(Lc.shift())}(++Mc);var wc=function(t,e){return Oc[t-=0]};class Fc extends t.Plugin{static get[wc("0x2")](){return[Za,vc,wc("0x4")]}static get[wc("0x7")](){return wc("0x6")}set[wc("0x1")](t){this[wc("0x3")].plugins[wc("0x0")](Za).adapter=t}get[wc("0x1")](){return this[wc("0x3")][wc("0xa")][wc("0x0")](Za).adapter}[wc("0x8")](t){return this.editor.plugins[wc("0x0")](Za).addSuggestionData(t)}[wc("0x5")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[wc("0x3")][wc("0xa")][wc("0x0")](Za)[wc("0x5")]({skipNotAttached:t,toJSON:e})}[wc("0x9")](t){return this.editor[wc("0xa")][wc("0x0")](Za).getSuggestion(t)}}const Dc=["config","CommentsRepository","function","pluginName","getUser","acceptAllSuggestions","getRootsAttributes","plugins","rootsAttributes","reduce","set","TrackChangesData","getSuggestions","end","TrackChangesDataGetter","createElement","data","create","track-changes-data-invalid-editor-creator","addSuggestionData","appendChild","name","createDocumentFragment","editor","TrackChangesEditing","trackChangesData.editorCreator","requires","Users","_adapter","div","getDataWithDiscardedSuggestions","push","getDataWithAcceptedSuggestions","trackChangesData","map","getRootNames","model","addUser","get","init","document","users"];var Bc,Pc;Bc=Dc,Pc=159,function(t){for(;--t;)Bc.push(Bc.shift())}(++Pc);const Uc=function(t,e){return Dc[t-=0]},jc=["Pagination"];class Gc extends t.Plugin{static get[Uc("0x23")](){return[Za]}static get[Uc("0xc")](){return Uc("0x14")}[Uc("0x6")](){const t=this[Uc("0x20")];if(t[Uc("0x9")].define(Uc("0x22"),(e=>{const n=t[Uc("0x3")][Uc("0x7")].getRootNames()[Uc("0x12")](((t,e)=>(t[e]="",t)),{});return t.constructor[Uc("0x1a")](n,e)})),Uc("0xb")!=typeof t[Uc("0x9")].get(Uc("0x0")).editorCreator)throw new e.CKEditorError(Uc("0x1b"))}[Uc("0x29")](t){return zc(this[Uc("0x20")],!0,t)}[Uc("0x27")](t){return zc(this.editor,!1,t)}}class Hc extends t.Plugin{static get[Uc("0xc")](){return Uc("0x17")}constructor(t){super(t),this.result=Uc("0x16")}[Uc("0x6")](){this[Uc("0x20")][Uc("0x10")][Uc("0x5")](Uc("0xa"))[Uc("0x25")]={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this[Uc("0x20")].plugins[Uc("0x5")](Uc("0x21"))[Uc("0x25")]=null}}function Vc(t){return void 0!==t[Uc("0xf")]}async function zc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,jc);o[Uc("0x10")][Uc("0x28")](Za,Hc),o[Uc("0x11")]=Vc(t)?t[Uc("0xf")]():void 0;const i=document[Uc("0x1f")](),s=t.config[Uc("0x5")](Uc("0x0")).editorCreator,x=await s(o,(()=>function(t){const e=document[Uc("0x18")](Uc("0x26"));return t[Uc("0x1d")](e),e}(i)));!function(t,e){const n=t.model.document[Uc("0x2")]().reduce(((e,n)=>(e[n]=t[Uc("0x19")][Uc("0x5")]({rootName:n}),e)),{}),o=t[Uc("0x10")].get(Uc("0x24"))[Uc("0x8")][Uc("0x1")]((t=>({id:t.id,name:t[Uc("0x1e")]}))),i=t[Uc("0x10")][Uc("0x5")]("TrackChangesEditing")[Uc("0x15")]({skipNotAttached:!0,toJSON:!0}),r=e.plugins[Uc("0x5")]("Users"),s=e.plugins[Uc("0x5")]("TrackChangesEditing");for(const t of o)r[Uc("0xd")](t.id)||r[Uc("0x4")](t);r.me||r.useAnonymousUser();for(const t of i)s[Uc("0x1c")](t);e[Uc("0x19")][Uc("0x13")](n)}(t,x),x.execute(e?Uc("0xe"):"discardAllSuggestions");const a=Vc(x)?x.getFullData(n):x[Uc("0x19")][Uc("0x5")](n);return await x.destroy(),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
5
+ */(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var r=e[o];if(void 0!==r)return r.exports;var i=e[o]={exports:{}};return t[o](i,i.exports,n),i.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>Bc,TrackChanges:()=>tl,TrackChangesData:()=>sl,TrackChangesEditing:()=>hc});var t=n(704),e=n(209),r=n(273),i=n(417),s=n(492),x=n(995);const a=["_isEnabledBasedOnSelection","commands","_enableCommands","execute","clearForceDisabled","refresh","editor","_enabledCommands","forceDisabled","value"];var c,l;c=a,l=277,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[u("0x2")]=!1,this.refresh(),this[u("0x3")]=!1}[u("0x8")](){this.isEnabled=!0}[u("0x6")](){this[u("0x2")]=!this[u("0x2")],this[u("0x2")]?this._disableUnsupportedCommands():this[u("0x5")]()}_disableUnsupportedCommands(){for(const t of this[u("0x9")][u("0x4")][u("0x4")]())t.affectsData&&!this[u("0x0")].has(t)&&t[u("0x1")]("TrackChangesCommand")}[u("0x5")](){for(const t of this.editor[u("0x4")][u("0x4")]())t.affectsData&&!this[u("0x0")].has(t)&&t[u("0x7")]("TrackChangesCommand")}}const g=["plugins","_suggestions","acceptSuggestion","TrackChangesEditing","isEnabled","get","refresh","execute","_isEnabledBasedOnSelection","canEditAt","editor"];var f,m;f=g,m=351,function(t){for(;--t;)f.push(f.shift())}(++m);const h=function(t,e){return g[t-=0]};class b extends t.Command{constructor(t,e){super(t),this[h("0x2")]=e,this.refresh(),this[h("0x9")]=!1}[h("0x7")](){this[h("0x5")]=!0}[h("0x8")](t){const n=this[h("0x2")][h("0x6")](t);if(!n)throw new e.CKEditorError("track-changes-accept-suggestion-not-found",this);const o=n.getRanges();this[h("0x0")].model[h("0xa")](o)&&this[h("0x0")][h("0x1")][h("0x6")](h("0x4"))[h("0x3")](n)}}const p=["canEditAt","get","refresh","editor","track-changes-discard-suggestion-not-found","TrackChangesEditing","isEnabled","execute","_isEnabledBasedOnSelection","_suggestions","plugins","getRanges"];var E,_;E=p,_=279,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return p[t-=0]};class y extends t.Command{constructor(t,e){super(t),this._suggestions=e,this[T("0xb")](),this[T("0x5")]=!1}[T("0xb")](){this[T("0x3")]=!0}[T("0x4")](t){const n=this[T("0x6")][T("0xa")](t);if(!n)throw new e.CKEditorError(T("0x1"),this);const o=n[T("0x8")]();this.editor.model[T("0x9")](o)&&this[T("0x0")][T("0x7")][T("0xa")](T("0x2")).discardSuggestion(n)}}const C=["deletion","isMultiRange","color","length","isObject","createPositionAfter","isInContent","end","from","createRange","isArray","createPositionBefore","getRanges","replace"," [color ","type","start","execute","change","value","map","next","schema","push","isTouching"];var A,k;A=C,k=249,function(t){for(;--t;)A.push(A.shift())}(++k);const I=function(t,e){return C[t-=0]};function S(t){return t.sort(((t,e)=>"deletion"==t[I("0x10")]&&I("0x1")!=e[I("0x10")]?-1:I("0x1")!=t.type&&I("0x1")==e[I("0x10")]?1:0))}function R(t,e){let n,o=0;const r=[],i=e[I("0x17")];for(;o<t[I("0x4")];){const s=t[o],x=t[o+1];n||(n=e[I("0xc")](s)),N(e,s,x)||(r[I("0x18")](e[I("0xa")](n,i[I("0x5")](s)?e[I("0x6")](s):e.createPositionAt(s,"end"))),n=null),o++}return r}function N(t,e,n){if(!n)return!1;const o=t[I("0x6")](e),r=t[I("0xc")](n);return o[I("0x0")](r)}function v(t,e,n){for(;n.length;){const o=n.splice(0,100);t[I("0x13")]((()=>{for(const t of o)t[I("0x7")]&&e[I("0x12")](t.id)}))}}const L=["model","from","editor","_command","refresh","_isEnabledBasedOnSelection","_suggestions","isInContent","some","isEnabled","getRanges","values"];var M,w;M=L,w=127,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return L[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0x8")]=e,this._suggestions=n,this.refresh(),this[O("0xa")]=!1}[O("0x9")](){const t=Array[O("0x6")](this._suggestions[O("0x4")]())[O("0x1")]((t=>t[O("0x0")]));this[O("0x2")]=this[O("0x8")][O("0x2")]&&t}execute(){const t=S(Array[O("0x6")](this[O("0xb")][O("0x4")]()));for(const e of t){const t=e[O("0x3")]();if(!this[O("0x7")][O("0x5")].canEditAt(t))return}v(this[O("0x7")].model,this[O("0x8")],t)}}const D=["isEnabled","canEditAt","_selectedSuggestions","_suggestions","values","_command","getRanges","editor","document","execute","size","refresh","from","model","selection"];var B,P;B=D,P=480,function(t){for(;--t;)B.push(B.shift())}(++P);const U=function(t,e){return D[t-=0]};class j extends t.Command{constructor(t,e,n){super(t),this[U("0x5")]=e,this[U("0x3")]=n,this[U("0x2")]=new Set,this[U("0xb")](),this._isEnabledBasedOnSelection=!1}[U("0xb")](){const t=this[U("0x7")].model[U("0x8")][U("0xe")],e=Array[U("0xc")](this._suggestions[U("0x4")]());this._selectedSuggestions=function(t,e){const n=Array[I("0x9")](t[I("0xd")]()),o=new Set;for(const r of e)if(r.isInContent)for(const e of n)for(const n of r[I("0xd")]())(e.isIntersecting(n)||t.isCollapsed&&!r[I("0x2")]&&r[I("0x16")]&&n[I("0x8")].isTouching(e[I("0x11")]))&&o.add(r);return o}(t,e),this[U("0x0")]=this[U("0x5")].isEnabled&&!!this[U("0x2")][U("0xa")]}[U("0x9")](){const t=S(Array[U("0xc")](this._selectedSuggestions));for(const e of t){const t=e[U("0x6")]();if(!this[U("0x7")][U("0xd")][U("0x1")](t))return}v(this[U("0x7")].model,this[U("0x5")],t)}}const G=function(){this.__data__=[],this.size=0};const V=function(t,e){return t===e||t!=t&&e!=e};const H=function(t,e){for(var n=t.length;n--;)if(V(t[n][0],e))return n;return-1};var z=Array.prototype.splice;const W=function(t){var e=this.__data__,n=H(e,t);return!(n<0)&&(n==e.length-1?e.pop():z.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=H(e,t);return n<0?void 0:e[n][1]};const q=function(t){return H(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=H(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=W,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const Z=$;const Q=function(){this.__data__=new Z,this.size=0};const Y=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const J=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const rt=ot.Symbol;var it=Object.prototype,st=it.hasOwnProperty,xt=it.toString,at=rt?rt.toStringTag:void 0;const ct=function(t){var e=st.call(t,at),n=t[at];try{t[at]=void 0;var 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 ft=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const mt=function(t){if(!ft(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var bt,pt=(bt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+bt:"";const Et=function(t){return!!pt&&pt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var yt=/^\[object .+?Constructor\]$/,Ct=Function.prototype,At=Object.prototype,kt=Ct.toString,It=At.hasOwnProperty,St=RegExp("^"+kt.call(It).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Rt=function(t){return!(!ft(t)||Et(t))&&(mt(t)?St:yt).test(Tt(t))};const Nt=function(t,e){return null==t?void 0:t[e]};const vt=function(t,e){var n=Nt(t,e);return Rt(n)?n:void 0};const Lt=vt(ot,"Map");const Mt=vt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Dt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Bt=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Bt.call(e,t)};const Ut=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mt&&void 0===e?"__lodash_hash_undefined__":e,this};function jt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}jt.prototype.clear=wt,jt.prototype.delete=Ot,jt.prototype.get=Dt,jt.prototype.has=Pt,jt.prototype.set=Ut;const Gt=jt;const Vt=function(){this.size=0,this.__data__={hash:new Gt,map:new(Lt||Z),string:new Gt}};const Ht=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const zt=function(t,e){var n=t.__data__;return Ht(e)?n["string"==typeof e?"string":"hash"]:n.map};const Wt=function(t){var e=zt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return zt(this,t).get(t)};const qt=function(t){return zt(this,t).has(t)};const Xt=function(t,e){var n=zt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Vt,$t.prototype.delete=Wt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Zt=$t;const Qt=function(t,e){var n=this.__data__;if(n instanceof Z){var o=n.__data__;if(!Lt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Zt(o)}return n.set(t,e),this.size=n.size,this};function Yt(t){var e=this.__data__=new Z(t);this.size=e.size}Yt.prototype.clear=Q,Yt.prototype.delete=Y,Yt.prototype.get=J,Yt.prototype.has=tt,Yt.prototype.set=Qt;const Jt=Yt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=vt(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)&&V(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const ie=function(t,e,n,o){var r=!n;n||(n={});for(var i=-1,s=e.length;++i<s;){var x=e[i],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 se=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,ue=ce.propertyIsEnumerable;const de=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!ue.call(t,"callee")};const ge=Array.isArray;const fe=function(){return!1};var me="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=me&&"object"==typeof module&&module&&!module.nodeType&&module,be=he&&he.exports===me?ot.Buffer:void 0;const pe=(be?be.isBuffer:void 0)||fe;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var ye={};ye["[object Float32Array]"]=ye["[object Float64Array]"]=ye["[object Int8Array]"]=ye["[object Int16Array]"]=ye["[object Int32Array]"]=ye["[object Uint8Array]"]=ye["[object Uint8ClampedArray]"]=ye["[object Uint16Array]"]=ye["[object Uint32Array]"]=!0,ye["[object Arguments]"]=ye["[object Array]"]=ye["[object ArrayBuffer]"]=ye["[object Boolean]"]=ye["[object DataView]"]=ye["[object Date]"]=ye["[object Error]"]=ye["[object Function]"]=ye["[object Map]"]=ye["[object Number]"]=ye["[object Object]"]=ye["[object RegExp]"]=ye["[object Set]"]=ye["[object String]"]=ye["[object WeakMap]"]=!1;const Ce=function(t){return xe(t)&&Te(t.length)&&!!ye[gt(t)]};const Ae=function(t){return function(e){return t(e)}};var ke="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ie=ke&&"object"==typeof module&&module&&!module.nodeType&&module,Se=Ie&&Ie.exports===ke&&et.process;const Re=function(){try{var t=Ie&&Ie.require&&Ie.require("util").types;return t||Se&&Se.binding&&Se.binding("util")}catch(t){}}();var Ne=Re&&Re.isTypedArray;const ve=Ne?Ae(Ne):Ce;var Le=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&de(t),r=!n&&!o&&pe(t),i=!n&&!o&&!r&&ve(t),s=n||o||r||i,x=s?se(t.length,String):[],a=x.length;for(var c in t)!e&&!Le.call(t,c)||s&&("length"==c||r&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const De=Fe(Object.keys,Object);var Be=Object.prototype.hasOwnProperty;const Pe=function(t){if(!Oe(t))return De(t);var e=[];for(var n in Object(t))Be.call(t,n)&&"constructor"!=n&&e.push(n);return e};const Ue=function(t){return null!=t&&Te(t.length)&&!mt(t)};const je=function(t){return Ue(t)?Me(t):Pe(t)};const Ge=function(t,e){return t&&ie(e,je(e),t)};const Ve=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var He=Object.prototype.hasOwnProperty;const ze=function(t){if(!ft(t))return Ve(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&He.call(t,o))&&n.push(o);return n};const We=function(t){return Ue(t)?Me(t,!0):ze(t)};const Ke=function(t,e){return t&&ie(e,We(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?ot.Buffer:void 0,Ze=$e?$e.allocUnsafe:void 0;const Qe=function(t,e){if(e)return t.slice();var n=t.length,o=Ze?Ze(n):new t.constructor(n);return t.copy(o),o};const Ye=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Je=function(t,e){for(var n=-1,o=null==t?0:t.length,r=0,i=[];++n<o;){var s=t[n];e(s,n,t)&&(i[r++]=s)}return i};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Je(nn(t),(function(e){return en.call(t,e)})))}:tn;const rn=function(t,e){return ie(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=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)sn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return ie(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:sn(o,n(t))};const un=function(t){return ln(t,je,on)};const dn=function(t){return ln(t,We,an)};const gn=vt(ot,"DataView");const fn=vt(ot,"Promise");const mn=vt(ot,"Set");const hn=vt(ot,"WeakMap");var bn="[object Map]",pn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",yn=Tt(gn),Cn=Tt(Lt),An=Tt(fn),kn=Tt(mn),In=Tt(hn),Sn=gt;(gn&&Sn(new gn(new ArrayBuffer(1)))!=Tn||Lt&&Sn(new Lt)!=bn||fn&&Sn(fn.resolve())!=pn||mn&&Sn(new mn)!=En||hn&&Sn(new hn)!=_n)&&(Sn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case yn:return Tn;case Cn:return bn;case An:return pn;case kn:return En;case In:return _n}return e});const Rn=Sn;var Nn=Object.prototype.hasOwnProperty;const vn=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Nn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Ln=ot.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Ln(e).set(new Ln(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Dn=rt?rt.prototype:void 0,Bn=Dn?Dn.valueOf:void 0;const Pn=function(t){return Bn?Object(Bn.call(t)):{}};const Un=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const jn=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return wn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Un(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Pn(t)}};var Gn=Object.create;const Vn=function(){function t(){}return function(e){if(!ft(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const Hn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Vn(xn(t))};const zn=function(t){return xe(t)&&"[object Map]"==Rn(t)};var Wn=Re&&Re.isMap;const Kn=Wn?Ae(Wn):zn;const qn=function(t){return xe(t)&&"[object Set]"==Rn(t)};var Xn=Re&&Re.isSet;const $n=Xn?Ae(Xn):qn;var Zn="[object Arguments]",Qn="[object Function]",Yn="[object Object]",Jn={};Jn[Zn]=Jn["[object Array]"]=Jn["[object ArrayBuffer]"]=Jn["[object DataView]"]=Jn["[object Boolean]"]=Jn["[object Date]"]=Jn["[object Float32Array]"]=Jn["[object Float64Array]"]=Jn["[object Int8Array]"]=Jn["[object Int16Array]"]=Jn["[object Int32Array]"]=Jn["[object Map]"]=Jn["[object Number]"]=Jn[Yn]=Jn["[object RegExp]"]=Jn["[object Set]"]=Jn["[object String]"]=Jn["[object Symbol]"]=Jn["[object Uint8Array]"]=Jn["[object Uint8ClampedArray]"]=Jn["[object Uint16Array]"]=Jn["[object Uint32Array]"]=!0,Jn["[object Error]"]=Jn[Qn]=Jn["[object WeakMap]"]=!1;const to=function t(e,n,o,r,i,s){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=i?o(e,r,i,s):o(e)),void 0!==x)return x;if(!ft(e))return e;var u=ge(e);if(u){if(x=vn(e),!a)return Ye(e,x)}else{var d=Rn(e),g=d==Qn||"[object GeneratorFunction]"==d;if(pe(e))return Qe(e,a);if(d==Yn||d==Zn||g&&!i){if(x=c||g?{}:Hn(e),!a)return c?cn(e,Ke(x,e)):rn(e,Ge(x,e))}else{if(!Jn[d])return i?e:{};x=jn(e,d,a)}}s||(s=new Jt);var f=s.get(e);if(f)return f;s.set(e,x),$n(e)?e.forEach((function(r){x.add(t(r,n,o,r,e,s))})):Kn(e)&&e.forEach((function(r,i){x.set(i,t(r,n,o,i,e,s))}));var m=u?void 0:(l?c?dn:un:c?We:je)(e);return te(m||e,(function(r,i){m&&(r=e[i=r]),re(x,i,t(r,n,o,i,e,s))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ro=/^\w*$/;const io=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 so(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],i=n.cache;if(i.has(r))return i.get(r);var s=t.apply(this,o);return n.cache=i.set(r,s)||i,s};return n.cache=new(so.Cache||Zt),n}so.Cache=Zt;const xo=so;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,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,fo=go?go.toString:void 0;const mo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return fo?fo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":mo(t)};const bo=function(t,e){return ge(t)?t:io(t,e)?[t]:lo(ho(t))};const po=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!ft(t))return t;for(var r=-1,i=(e=bo(e,t)).length,s=i-1,x=t;null!=x&&++r<i;){var a=po(e[r]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(r!=s){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=ft(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 yo=function(t){return this.__data__.has(t)};function Co(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Zt;++e<n;)this.add(t[e])}Co.prototype.add=Co.prototype.push=To,Co.prototype.has=yo;const Ao=Co;const ko=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const Io=function(t,e){return t.has(e)};const So=function(t,e,n,o,r,i){var s=1&n,x=t.length,a=e.length;if(x!=a&&!(s&&a>x))return!1;var c=i.get(t),l=i.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new Ao:void 0;for(i.set(t,e),i.set(e,t);++u<x;){var f=t[u],m=e[u];if(o)var h=s?o(m,f,u,e,t,i):o(f,m,u,t,e,i);if(void 0!==h){if(h)continue;d=!1;break}if(g){if(!ko(e,(function(t,e){if(!Io(g,e)&&(f===t||r(f,t,n,o,i)))return g.push(e)}))){d=!1;break}}else if(f!==m&&!r(f,m,n,o,i)){d=!1;break}}return i.delete(t),i.delete(e),d};const Ro=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const No=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var vo=rt?rt.prototype:void 0,Lo=vo?vo.valueOf:void 0;const Mo=function(t,e,n,o,r,i,s){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!i(new Ln(t),new Ln(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return V(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=Ro;case"[object Set]":var a=1&o;if(x||(x=No),t.size!=e.size&&!a)return!1;var c=s.get(t);if(c)return c==e;o|=2,s.set(t,e);var l=So(x(t),x(e),o,r,i,s);return s.delete(t),l;case"[object Symbol]":if(Lo)return Lo.call(t)==Lo.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,r,i){var s=1&n,x=un(t),a=x.length;if(a!=un(e).length&&!s)return!1;for(var c=a;c--;){var l=x[c];if(!(s?l in e:wo.call(e,l)))return!1}var u=i.get(t),d=i.get(e);if(u&&d)return u==e&&d==t;var g=!0;i.set(t,e),i.set(e,t);for(var f=s;++c<a;){var m=t[l=x[c]],h=e[l];if(o)var b=s?o(h,m,l,e,t,i):o(m,h,l,t,e,i);if(!(void 0===b?m===h||r(m,h,n,o,i):b)){g=!1;break}f||(f="constructor"==l)}if(g&&!f){var p=t.constructor,E=e.constructor;p==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof p&&p instanceof p&&"function"==typeof E&&E instanceof E||(g=!1)}return i.delete(t),i.delete(e),g};var Fo="[object Arguments]",Do="[object Array]",Bo="[object Object]",Po=Object.prototype.hasOwnProperty;const Uo=function(t,e,n,o,r,i){var s=ge(t),x=ge(e),a=s?Do:Rn(t),c=x?Do:Rn(e),l=(a=a==Fo?Bo:a)==Bo,u=(c=c==Fo?Bo:c)==Bo,d=a==c;if(d&&pe(t)){if(!pe(e))return!1;s=!0,l=!1}if(d&&!l)return i||(i=new Jt),s||ve(t)?So(t,e,n,o,r,i):Mo(t,e,a,n,o,r,i);if(!(1&n)){var g=l&&Po.call(t,"__wrapped__"),f=u&&Po.call(e,"__wrapped__");if(g||f){var m=g?t.value():t,h=f?e.value():e;return i||(i=new Jt),r(m,h,n,o,i)}}return!!d&&(i||(i=new Jt),Oo(t,e,n,o,r,i))};const jo=function t(e,n,o,r,i){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:Uo(e,n,o,r,t,i))};const Go=function(t,e){return jo(t,e)};const Vo=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Ho=function(t,e){for(var n=0,o=(e=bo(e,t)).length;null!=t&&n<o;)t=t[po(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 i=Array(r);++o<r;)i[o]=t[o+e];return i};const Wo=function(t,e){return e.length<2?t:Ho(t,zo(e,0,-1))};const Ko=function(t,e){return e=bo(e,t),null==(t=Wo(t,e))||delete t[po(Vo(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["getMarkers","removeMarkers","_saved","push","filter","setAttribute","isIntersecting","decorate","length","discard","subType","start","onAttributesChange","accept","nodeBefore","toJSON","onDiscard","suggestion:","substr","isExternal","type","set","_onDiscard","_model","map","delete","isIntersectingWithRange","addMarker","get","author","removeMarker","hasComments","getContainedElement","addMarkerName","next","_onAttributesChange","getItems","from","size","onAccept","authoredAt","removeAttribute","getRange","_onAccept","_isDataLoaded","getMultiRangeId","data","getMarkerNames","commentThread","_markerNames","change","add","head","clear","getFirstMarker","getAllAdjacentSuggestions","attributes","reduce","creator","getRanges","addRange","nodeAfter","previous","createdAt"];var $o,Zo;$o=Xo,Zo=200,function(t){for(;--t;)$o.push($o.shift())}(++Zo);const Qo=function(t,e){return Xo[t-=0]};class Yo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this[Qo("0x24")]=!1,this.id=e.id,this[Qo("0xc")]=e[Qo("0xc")],this[Qo("0x2")]=e[Qo("0x2")]||null,this.author=e.author,this.creator=e.creator||e[Qo("0x15")],this[Qo("0xb")]=Boolean(e[Qo("0x30")]&&e[Qo("0x30")]["@external"]),this[Qo("0x26")]=null,this._model=t,this[Qo("0x23")]=e[Qo("0x1f")],this[Qo("0xe")]=e[Qo("0x8")],this[Qo("0x1b")]=e[Qo("0x4")],this[Qo("0x29")]=new Set,this[Qo("0x37")]=null,this.set(Qo("0x20"),null),this.set(Qo("0x30"),e[Qo("0x30")]||{}),this[Qo("0xd")](Qo("0x36"),null),this[Qo("0xd")](Qo("0x1a"),null),this.set(Qo("0x28"),null),this.set(Qo("0x3a"),!1),this[Qo("0x3f")]("accept"),this.decorate(Qo("0x1"))}get[Qo("0x2c")](){let t=this;for(;t.previous;)t=t[Qo("0x36")];return t}get[Qo("0x17")](){return!!this[Qo("0x28")]&&this[Qo("0x28")].length>0}get isMultiRange(){return 0!=this[Qo("0x29")][Qo("0x1e")]&&6==Array[Qo("0x1d")](this._markerNames)[0].split(":")[Qo("0x0")]}get isInContent(){return null!==this[Qo("0x2e")]()}[Qo("0x19")](t){this[Qo("0x29")][Qo("0x2b")](t)}getMarkerNames(){return Array.from(this[Qo("0x29")])}[Qo("0x38")](){return this[Qo("0x27")]()[Qo("0x10")]((t=>this[Qo("0xf")].markers[Qo("0x14")](t)))[Qo("0x3c")]((t=>t))}[Qo("0x2e")](){return this[Qo("0x38")]()[0]||null}[Qo("0x39")](){this[Qo("0xf")][Qo("0x2a")]((t=>{for(const e of this[Qo("0x38")]())t[Qo("0x16")](e)})),this[Qo("0x29")][Qo("0x2d")]()}[Qo("0x16")](t){this[Qo("0xf")][Qo("0x2a")]((e=>{e[Qo("0x16")](t)})),this[Qo("0x29")][Qo("0x11")](t)}[Qo("0x34")](t){const e=Qo("0x9")+this.type+":"+this[Qo("0x2")]+":"+this.id+":"+this[Qo("0x32")].id+":"+Yo[Qo("0x25")]();this[Qo("0x19")](e),this[Qo("0xf")].change((n=>{n[Qo("0x13")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Qo("0x12")](t){for(const e of this.getRanges())if(e[Qo("0x3e")](t))return!0;return!1}[Qo("0x33")](){return this.getMarkers().map((t=>t[Qo("0x22")]()))}[Qo("0x1c")](){return this[Qo("0x33")]()[Qo("0x31")](((t,e)=>[...t,...e[Qo("0x1c")]()]),[])}getFirstRange(){var t;return(null===(t=this[Qo("0x2e")]())||void 0===t?void 0:t[Qo("0x22")]())||null}[Qo("0x18")](){const t=this[Qo("0x33")]();if(1!=t[Qo("0x0")])return null;const e=t[0],n=e[Qo("0x3")][Qo("0x35")],o=e.end[Qo("0x6")];return n instanceof s.Element?n!=o?null:n:null}[Qo("0x5")](){this[Qo("0x23")](this[Qo("0x33")](),this[Qo("0x26")],this[Qo("0x30")]),this.removeMarkers()}discard(){this._onDiscard(this[Qo("0x33")](),this[Qo("0x26")],this[Qo("0x30")]),this[Qo("0x39")]()}[Qo("0x2f")](){const t=[];let e=this[Qo("0x2c")];for(;e;)t[Qo("0x3b")](e),e=e[Qo("0x1a")];return t}[Qo("0x3d")](t,e){const n=eo(this[Qo("0x30")]);_o(n,t,e),Go(n,this[Qo("0x30")])||(this.attributes=n,this._onAttributesChange(n))}[Qo("0x21")](t){const e=eo(this[Qo("0x30")]);qo(e,t),Go(e,this[Qo("0x30")])||(this[Qo("0x30")]=e,this[Qo("0x1b")](this[Qo("0x30")]))}[Qo("0x7")](){return{id:this.id,type:this.subType?this[Qo("0xc")]+":"+this[Qo("0x2")]:this.type,authorId:this[Qo("0x32")].id,createdAt:this[Qo("0x37")],hasComments:this[Qo("0x17")],data:this[Qo("0x26")],attributes:this.attributes}}static[Qo("0x25")](){return(0,e.uid)()[Qo("0xa")](1,5)}}function Jo(t,e,n){const o=t.t;switch(e){case"Track changes":return o("Track changes");case"Accept suggestion":return o("Accept suggestion");case"Discard suggestion":return o("Discard suggestion");case"Accept all suggestions":return o("Accept all suggestions");case"Accept all selected suggestions":return o("Accept all selected suggestions");case"Discard all suggestions":return o("Discard all suggestions");case"Discard all selected suggestions":return o("Discard all selected suggestions");case"*Reset font size*":return o("*Reset font size*");case"*Reset font family*":return o("*Reset font family*");case"*Reset font color*":return o("*Reset font color*");case"*Reset font background color*":return o("*Reset font background color*");case"*Remove image text alternative*":return o("*Remove image text alternative*");case"*Reset image width*":return o("*Reset image width*");case"*Remove link*":return o("*Remove link*");case"*Check item*":return o("*Check item*");case"*Uncheck item*":return o("*Uncheck item*");case"*Remove all formatting*":return o("*Remove all formatting*");case"*Replace table cells*":return o("*Replace table cells*");case"*Merge cells*":return o("*Merge cells*");case"*Split cell:* vertically":return o("*Split cell:* vertically");case"*Split cell:* horizontally":return o("*Split cell:* horizontally");case"*Indent:* %0":return o("*Indent:* %0",n);case"*Outdent:* %0":return o("*Outdent:* %0",n);case"*Change to:* %0":return o("*Change to:* %0",n);case"*Insert:* %0":return o("*Insert:* %0",n);case"*Format:* %0":return o("*Format:* %0",n);case"*Format:* change table properties":return o("*Format:* change table properties");case"*Format:* change table cell properties":return o("*Format:* change table cell properties");case"*Format:* insert into %0":return o("*Format:* insert into %0",n);case"*Format:* remove from %0":return o("*Format:* remove from %0",n);case"*Replace image URL*":return o("*Replace image URL*");case"*Format:* resize table":return o("*Format:* resize table");case"*Format:* set order to reversed":return o("*Format:* set order to reversed");case"*Format:* set order to regular":return o("*Format:* set order to regular");case"*Format:* set start index to %0":return o("*Format:* set start index to %0",n);case"*Change %0 content*":return o("*Change %0 content*",n);case"*Remove:* %0":return o("*Remove:* %0",n);case"*Merge:* %0":return o("*Merge:* %0",n);case"*Split:* %0":return o("*Split:* %0",n);case"*Remove format:* %0":return o("*Remove format:* %0",n);case"*Set font size:* %0":return o("*Set font size:* %0",n);case"*Set font family:* %0":return o("*Set font family:* %0",n);case"*Set format to:* %0":return o("*Set format to:* %0",n);case"*Set font color:* %0":return o("*Set font color:* %0",n);case"*Set font background color:* %0":return o("*Set font background color:* %0",n);case"*Set format:* %0":return o("*Set format:* %0",n);case"*Set image text alternative:* %0":return o("*Set image text alternative:* %0",n);case"*Set image width:* %0":return o("*Set image width:* %0",n);case"*Set link:* %0":return o("*Set link:* %0",n);case"*Set highlight:* %0":return o("*Set highlight:* %0",n);case"*Remove highlight*":return o("*Remove highlight*");case"FORMAT_HIGHLIGHT":return o({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return o({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return o({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return o({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return o({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return o({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return o({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return o({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return o({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return o({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return o({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return o({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return o({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return o({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return o({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_DEFAULT":return o({string:"bulleted list (default)",id:"ELEMENT_BULLETED_LIST_DEFAULT"});case"ELEMENT_BULLETED_LIST_CIRCLE":return o({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return o({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return o({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST_DEFAULT":return o({string:"numbered list (default)",id:"ELEMENT_NUMBERED_LIST_DEFAULT"});case"ELEMENT_NUMBERED_LIST":return o({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return o({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return o({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return o({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return o({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return o({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return o({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return o({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return o({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return o({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGNMENT":return o({string:"alignment",id:"FORMAT_ALIGNMENT"});case"FORMAT_ALIGN_TO_LEFT":return o({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return o({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return o({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return o({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return o({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return o({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return o({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return o({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return o({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return o({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return o({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return o({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return o({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return o({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return o({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return o({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return o({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"FORMAT_INDENT":return o({string:"indent",id:"FORMAT_INDENT"});case"FORMAT_LIST_REVERSED":return o({string:"list reversed",id:"FORMAT_LIST_REVERSED"});case"FORMAT_LIST_START":return o({string:"list start",id:"FORMAT_LIST_START"});case"FORMAT_FONT_SIZE":return o({string:"font size",id:"FORMAT_FONT_SIZE"});case"FORMAT_FONT_FAMILY":return o({string:"font family",id:"FORMAT_FONT_FAMILY"});case"FORMAT_FONT_COLOR":return o({string:"font color",id:"FORMAT_FONT_COLOR"});case"FORMAT_FONT_BACKGROUND":return o({string:"font background color",id:"FORMAT_FONT_BACKGROUND"});case"FORMAT_IMAGE_SIZE":return o({string:"image size",id:"FORMAT_IMAGE_SIZE"});case"FORMAT_STYLE":return o({string:"style",id:"FORMAT_STYLE"});case"PENDING_ACTION_SUGGESTION":return o({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return o({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return o({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return o({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return o({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return o({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_TABLE_OF_CONTENTS":return o({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return o({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return o({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return o({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return o({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return o({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return o({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);case"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT":return o({string:"Entering insertion suggestion.",id:"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT":return o({string:"Leaving insertion suggestion.",id:"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT":return o({string:"Entering deletion suggestion.",id:"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT":return o({string:"Leaving deletion suggestion.",id:"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT":return o({string:"Entering formatting suggestion.",id:"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT":return o({string:"Leaving formatting suggestion.",id:"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT"});default:return e}}const tr=["_itemLabels","length","_customCallbacks","add","*Remove:* %0","*Set format:* %0","remove","type","*Merge:* %0","registerDescriptionCallback","*Remove format:* %0","format","Container","isObject","deletion","removeFormat","data","EmptyContainer","quantity","_addDescriptionItems","nextSibling","indexOf","addFormat","Object","_schema","removeContainer","REPLACE_TEXT","map","replace","name","pop","$text","registerAttributeLabel","elementStart","get","softBreak","_handleAttributeSuggestionDescription","getFirstRange","push","insertion","_itemLabelsCallbacks","start","matchingCallback","getDescriptions","nodeAfter","_attributeLabels","isEmpty","_locale","subType","checkChild","match","join","*Split:* %0","isInContent","*Insert:* %0","element","set","_handleCustomCallbackDescription","removeObject","skip","elementEnd","text","previousSibling","getItemLabel","removeEmptyContainer","isEqual","addContainer","has","label","_resolveDescriptionItems","$textProxy","addObject","newValue","end","_handleInsertRemoveSuggestionDescription","item","key","$1 $2"];var er,nr;er=tr,nr=142,function(t){for(;--t;)er.push(er.shift())}(++nr);const or=function(t,e){return tr[t-=0]};class rr{constructor(t,e){this._customCallbacks=[],this[or("0xe")]=new Map,this[or("0x36")]=[],this._attributeLabels=new Map,this[or("0x26")]=t,this._locale=e}[or("0x39")](t){const e=[],n=new Set,o=new Set;for(let r=0;r<t.length;r++){const i=t[r];if(!i[or("0x43")])continue;const s=this._handleCustomCallbackDescription(i);if(s){if(null!=i[or("0x3e")]){if(n[or("0x3")](i[or("0x3e")]))continue;n.add(i.subType)}e[or("0x34")](s)}else if("attribute"!=i.type)or("0x35")!=i[or("0x15")]&&or("0x1c")!=i.type||this[or("0xa")](e,i,t[r+1]);else{const t=i[or("0x1e")].key;if(o[or("0x3")](t))continue;o[or("0x11")](i.data[or("0xc")]),t==mc?this._handleRenameSuggestionDescription(e,i):this[or("0x32")](e,i)}}return this[or("0x5")](e)}[or("0x17")](t){this[or("0x10")].push(t)}registerElementLabel(t,n,o=e.priorities.normal){"function"==typeof t?(0,e.insertToPriorityArray)(this[or("0x36")],{matchingCallback:t,label:n,priority:o}):this._itemLabels[or("0x46")](t,n)}[or("0x2e")](t,e){this[or("0x3b")].set(t,e)}[or("0x4d")](t,e=1){let n;for(const e of this._itemLabelsCallbacks)if(e[or("0x38")](t)){n=e[or("0x4")];break}return n||(n=this[or("0xe")][or("0x30")](t[or("0x2b")])),n?n(e):1!==e?e+" "+t[or("0x2b")]+"s":""+t.name}[or("0x21")](t,e){const n=e.getFirstRange().getWalker(),o="insertion"==e[or("0x15")]?"add":or("0x14");for(const e of n){const r=e.item,i=t[t[or("0xf")]-1];if(r.is(or("0x6")))i&&i[or("0x15")][or("0x23")](or("0x1a"))>-1&&t[or("0x2c")](),i&&or("0x4b")==i.type?i[o]+=r.data:t.push({type:or("0x4b"),add:or("0x11")==o?r.data:"",remove:or("0x14")==o?r[or("0x1e")]:""});else if(this[or("0x26")][or("0x1b")](r)){const s=r;if(i&&i[or("0x15")][or("0x23")](or("0x1a"))>-1&&t[or("0x2c")](),"elementEnd"==e[or("0x15")])continue;i&&i.type==o+or("0x25")&&i[or("0x45")].name==s[or("0x2b")]?i[or("0x20")]++:t[or("0x34")]({type:o+"Object",element:s,quantity:1}),n[or("0x49")]((t=>!(or("0x4a")==t[or("0x15")]&&t[or("0xb")]==r)))}else if(this._schema[or("0x3f")](r,or("0x2d"))||r.is(or("0x45"),or("0x31"))){const n=r;if("add"==o&&or("0x2f")==e.type||or("0x14")==o&&or("0x4a")==e[or("0x15")])continue;if(i&&-1==i[or("0x15")][or("0x23")](or("0x1a"))){or("0x4b")==i[or("0x15")]&&(i[o]+="\n");continue}let s;if(s=or("0x11")==o?n.nextSibling&&!this[or("0x26")].isObject(n[or("0x22")])?n[or("0x22")]:null:n.previousSibling&&!this[or("0x26")][or("0x1b")](n.previousSibling)?n[or("0x4c")]:null,n[or("0x3c")]||s&&s[or("0x3c")]){const e=s&&s[or("0x3c")]?s:n;i&&i.type==o+or("0x1f")&&i[or("0x45")].name==e.name?i[or("0x20")]++:t[or("0x34")]({type:o+or("0x1f"),element:e,quantity:1})}else t[or("0x34")]({type:o+or("0x1a"),element:n})}}}_resolveDescriptionItems(t){const e=this[or("0x3d")],n=[],o=[],r=[];for(const i of t)switch(i[or("0x15")]){case or("0x4b"):if(i.add=i[or("0x11")][or("0x2a")](/(\S)\u000A+(\S)/g,or("0xd")).replace(/\u000A/g,""),i[or("0x14")]=i[or("0x14")].replace(/(\S)\u000A+(\S)/g,or("0xd")).replace(/\u000A/g,""),""!=i[or("0x11")]&&""!=i.remove){n.push({type:or("0x2a"),content:Jo(e,or("0x28"),['"'+i[or("0x14")]+'"','"'+i[or("0x11")]+'"'])});continue}if(null!=i[or("0x11")].match(/^ +$/)){n[or("0x34")]({type:or("0x35"),content:Jo(e,"*Insert:* %0",Jo(e,"ELEMENT_SPACE",i[or("0x11")][or("0xf")]))});continue}if(null!=i[or("0x14")][or("0x40")](/^ +$/)){n.push({type:or("0x1c"),content:Jo(e,or("0x12"),Jo(e,"ELEMENT_SPACE",i[or("0x14")][or("0xf")]))});continue}if(""!=i[or("0x11")]){n.push({type:or("0x35"),content:Jo(e,or("0x44"),'"'+i[or("0x11")]+'"')});continue}n[or("0x34")]({type:"deletion",content:Jo(e,or("0x12"),'"'+i[or("0x14")]+'"')});continue;case"addEmptyContainer":case or("0x7"):n[or("0x34")]({type:or("0x35"),content:Jo(e,"*Insert:* %0",this[or("0x4d")](i[or("0x45")],i.quantity))});continue;case or("0x0"):case or("0x48"):n[or("0x34")]({type:"deletion",content:Jo(e,"*Remove:* %0",this.getItemLabel(i[or("0x45")],i[or("0x20")]))});continue;case or("0x2"):n[or("0x34")]({type:or("0x35"),content:Jo(e,or("0x42"),this.getItemLabel(i.element,i[or("0x20")]))});continue;case or("0x27"):n[or("0x34")]({type:"deletion",content:Jo(e,or("0x16"),this[or("0x4d")](i[or("0x45")],i[or("0x20")]))});continue;case or("0x24"):o[or("0x34")](i[or("0xc")]);continue;case or("0x1d"):r[or("0x34")](i[or("0xc")]);continue;default:n[or("0x34")](i)}if(o.length){const t=o.map((t=>this._attributeLabels[or("0x3")](t)?this[or("0x3b")][or("0x30")](t):t)).join(", ");n.push({type:or("0x19"),content:Jo(this._locale,or("0x13"),t)})}if(r.length){const t=r[or("0x29")]((t=>this[or("0x3b")][or("0x3")](t)?this[or("0x3b")][or("0x30")](t):t))[or("0x41")](", ");n[or("0x34")]({type:or("0x19"),content:Jo(this[or("0x3d")],or("0x18"),t)})}return n}[or("0x47")](t){for(const e of this[or("0x10")]){const n=e(t);if(n&&or("0x15")in n)return n}}_handleAttributeSuggestionDescription(t,e){const n=e[or("0x1e")],o=void 0===n[or("0x8")]?or("0x1d"):or("0x24");t[or("0x34")]({type:o,key:n[or("0xc")]})}_handleRenameSuggestionDescription(t,e){t[or("0x34")]({type:or("0x19"),content:Jo(this[or("0x3d")],"*Change to:* %0",this[or("0x4d")](e.getFirstRange()[or("0x37")][or("0x3a")],1))})}[or("0xa")](t,e,n){if(this[or("0x21")](t,e),n&&n[or("0x33")]()&&!e[or("0x33")]()[or("0x9")][or("0x1")](n[or("0x33")]()[or("0x37")])){const n=t[t[or("0xf")]-1],o=or("0x35")==e[or("0x15")]?or("0x11"):or("0x14");n&&or("0x4b")==n[or("0x15")]&&(n[o]+="\n")}}}const ir=["get","plugins","TrackChangesEditing","editor","showAIAssistant","commands"];var sr,xr;sr=ir,xr=128,function(t){for(;--t;)sr.push(sr.shift())}(++xr);const ar=function(t,e){return ir[t-=0]};class cr extends t.Plugin{afterInit(){const t=this[ar("0x1")],e=t[ar("0x5")][ar("0x4")](ar("0x0"));t[ar("0x3")][ar("0x4")](ar("0x2"))&&e.enableCommand("showAIAssistant")}}const lr=["justify","locale","right","type","center","_registerLegacyDescription","TrackChangesEditing","afterInit","*Format:* %0","editor","AlignmentEditing","commandName","get","has","commandParams","_descriptionFactory","registerDescriptionCallback","FORMAT_ALIGN_TO_RIGHT","plugins","FORMAT_JUSTIFY_TEXT","FORMAT_ALIGN_TO_CENTER","registerAttributeLabel","FORMAT_ALIGN_TO_LEFT","alignment","value","left","format"];var ur,dr;ur=lr,dr=380,function(t){for(;--t;)ur.push(ur.shift())}(++dr);const gr=function(t,e){return lr[t-=0]};class fr extends t.Plugin{[gr("0x5")](){const t=this.editor,e=t.locale;if(!t[gr("0x10")][gr("0xb")](gr("0x8")))return;const n=t[gr("0x10")][gr("0xa")](gr("0x4"));n._enableDefaultAttributesIntegration(gr("0x15"),[],[gr("0x15")]),n[gr("0xd")][gr("0x13")](gr("0x15"),Jo(e,"FORMAT_ALIGNMENT")),this._registerLegacyDescription()}[gr("0x3")](){const t=this[gr("0x7")],e=t[gr("0x1a")];t[gr("0x10")][gr("0xa")](gr("0x4"))[gr("0xd")][gr("0xe")]((t=>{if("formatBlock"!=t[gr("0x1")])return;const{data:n}=t;if(n&&gr("0x15")==n[gr("0x9")]){const t=n[gr("0xc")][0][gr("0x16")];return{type:gr("0x18"),content:Jo(e,gr("0x6"),function(t){switch(t){case gr("0x17"):return Jo(e,gr("0x14"));case gr("0x0"):return Jo(e,gr("0xf"));case gr("0x2"):return Jo(e,gr("0x12"));case gr("0x19"):return Jo(e,gr("0x11"))}}(t))}}}))}}const mr=["afterInit","italic","SubscriptEditing","FORMAT_CODE","editor","format","_enableDefaultAttributesIntegration","FORMAT_SUBSCRIPT","toUpperCase","registerAttributeLabel","FORMAT_","CodeEditing","UnderlineEditing","commandName","get","toLowerCase","_registerLegacyDescription","locale","has","slice","_descriptionFactory","superscript","bold","BoldEditing","underline","TrackChangesEditing","FORMAT_SUPERSCRIPT","plugins","*Format:* %0","FORMAT_STRIKETHROUGH","registerDescriptionCallback","ItalicEditing","FORMAT_BOLD","FORMAT_UNDERLINE","formatInline","subscript"];var hr,br;hr=mr,br=346,function(t){for(;--t;)hr.push(hr.shift())}(++br);const pr=function(t,e){return mr[t-=0]},Er=[pr("0x1"),pr("0x9"),pr("0x1a"),pr("0x19"),"StrikethroughEditing",pr("0x10"),"SuperscriptEditing"];class _r extends t.Plugin{[pr("0xe")](){const t=this[pr("0x12")],e=t[pr("0x5")][pr("0x1c")](pr("0x3")),n=t[pr("0x1f")];for(const o of Er){if(!t[pr("0x5")][pr("0x20")](o))continue;const r=o[pr("0x21")](0,-7)[pr("0x1d")](),i=pr("0x18")+r[pr("0x16")]();e[pr("0x14")](r,[r]),e[pr("0x22")][pr("0x17")](r,Jo(n,i))}this[pr("0x1e")]()}[pr("0x1e")](){const t=this[pr("0x12")],e=t[pr("0x1f")],n=t[pr("0x5")].get("TrackChangesEditing");function o(t,o){n[pr("0x22")][pr("0x8")]((n=>{if(pr("0xc")!=n.type)return;const{data:r}=n;return r&&r[pr("0x1b")]===t?r.commandParams[0].forceValue?{type:pr("0x13"),content:Jo(e,pr("0x6"),o)}:{type:pr("0x13"),content:Jo(e,"*Remove format:* %0",o)}:void 0}))}o(pr("0x0"),Jo(e,pr("0xa"))),o(pr("0xf"),Jo(e,"FORMAT_ITALIC")),o(pr("0x2"),Jo(e,pr("0xb"))),o("code",Jo(e,pr("0x11"))),o("strikethrough",Jo(e,pr("0x7"))),o(pr("0xd"),Jo(e,pr("0x15"))),o(pr("0x23"),Jo(e,pr("0x4")))}}const Tr=["filter","selection","get","name","commandName","from","locale","ELEMENT_BLOCK_QUOTE","model","document","value","blockQuote","markBlockFormat","$root","change","schema","parent","_descriptionFactory","forceValue","afterInit","plugins","editor","*Remove format:* %0","enableCommand","BlockQuoteEditing","has","TrackChangesEditing","commandParams","format","commands","getSelectedBlocks"];var yr,Cr;yr=Tr,Cr=208,function(t){for(;--t;)yr.push(yr.shift())}(++Cr);const Ar=function(t,e){return Tr[t-=0]};class kr extends t.Plugin{[Ar("0x1c")](){const t=this[Ar("0x1e")],e=t[Ar("0xf")];if(!t[Ar("0x1d")][Ar("0x3")](Ar("0x2")))return;const n=t[Ar("0x1d")][Ar("0xb")](Ar("0x4")),o=this[Ar("0x1e")][Ar("0x7")][Ar("0xb")]("blockQuote");n[Ar("0x1")](Ar("0x14"),((e,r={})=>{const i=this[Ar("0x1e")][Ar("0x11")][Ar("0x12")][Ar("0xa")],s=r&&void 0!==r.forceValue?r[Ar("0x1b")]:!o[Ar("0x13")];let x=[];if(s){const e=Array[Ar("0xe")](i[Ar("0x8")]())[Ar("0x9")]((t=>Ir(t)||function(t,e){const n=e.checkChild(t[Ar("0x19")],Ar("0x14")),o=e.checkChild([Ar("0x16"),"blockQuote"],t);return n&&o}(t,this[Ar("0x1e")][Ar("0x11")][Ar("0x18")])));x=R(e,t.model)}else{const e=Array[Ar("0xe")](i[Ar("0x8")]())[Ar("0x9")]((t=>Ir(t)));x=R(e,t.model)}t[Ar("0x11")][Ar("0x17")]((()=>{for(const t of x)n[Ar("0x15")](t,{commandName:Ar("0x14"),commandParams:[{forceValue:s}]})}))})),n[Ar("0x1a")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&Ar("0x14")==n[Ar("0xd")]){const t=Jo(e,Ar("0x10"));return n[Ar("0x5")][0][Ar("0x1b")]?{type:"format",content:Jo(e,"*Set format:* %0",t)}:{type:Ar("0x6"),content:Jo(e,Ar("0x0"),t)}}}))}}function Ir(t){return"blockQuote"==t[Ar("0x19")][Ar("0xc")]}const Sr=["commands","editor","enableCommand","ckbox","get","TrackChangesEditing","afterInit"];var Rr,Nr;Rr=Sr,Nr=426,function(t){for(;--t;)Rr.push(Rr.shift())}(++Nr);const vr=function(t,e){return Sr[t-=0]};class Lr extends t.Plugin{[vr("0x0")](){const t=this[vr("0x2")];t[vr("0x1")][vr("0x5")](vr("0x4"))&&t.plugins[vr("0x5")](vr("0x6"))[vr("0x3")](vr("0x4"))}}const Mr=["codeBlock","forceValue","getSelectedBlocks","selection","enableCommand","formatBlock","toLowerCase","isLimit","change","type","document","schema","_descriptionFactory","name","registerDescriptionCallback","label","indentCodeBlock","outdentCodeBlock","ELEMENT_CODE_BLOCK","commandName","get","filter","has","checkChild","registerElementLabel","locale","language","format","model","CodeBlock","commandParams","config","*Remove format:* %0","blockName","markBlockFormat","parent","editor","languages","plugins","find","from"];var wr,Or;wr=Mr,Or=199,function(t){for(;--t;)wr.push(wr.shift())}(++Or);const Fr=function(t,e){return Mr[t-=0]};class Dr extends t.Plugin{afterInit(){const t=this[Fr("0x1")];if(!t[Fr("0x3")][Fr("0x1c")](Fr("0x23")))return;const e=t[Fr("0x3")][Fr("0x1a")]("TrackChangesEditing"),n=t[Fr("0x1f")],o=t[Fr("0x25")].get(Fr("0x6"))[Fr("0x2")],r=t.commands.get("codeBlock");e[Fr("0xa")](Fr("0x16")),e[Fr("0xa")](Fr("0x17")),e[Fr("0xa")](Fr("0x6"),((n,i={})=>{const s=t[Fr("0x22")],x=t.model[Fr("0x10")][Fr("0x9")],a=i&&void 0!==i.forceValue?i[Fr("0x7")]:!r.value;let c;i[Fr("0x20")]||(i[Fr("0x20")]=o[0][Fr("0x20")]),c=a?Array[Fr("0x5")](x[Fr("0x8")]())[Fr("0x1b")]((t=>{return Br(t)||(e=t,n=s[Fr("0x11")],!e.is("rootElement")&&!n[Fr("0xd")](e)&&n[Fr("0x1d")](e[Fr("0x0")],Fr("0x6")));var e,n})):Array[Fr("0x5")](x.getSelectedBlocks()).filter((t=>Br(t)));const l=R(c,s);s[Fr("0xe")]((()=>{for(const t of l)e[Fr("0x28")](t,{commandName:Fr("0x6"),commandParams:[{...i,forceValue:a}],formatGroupId:Fr("0x27")})}))})),e._descriptionFactory[Fr("0x1e")](Fr("0x6"),(t=>Jo(n,Fr("0x18"),t))),e[Fr("0x12")][Fr("0x14")]((t=>{if(Fr("0xb")!=t[Fr("0xf")])return;const e=n.t,{data:r}=t;if(!r||Fr("0x6")!=r[Fr("0x19")])return;const i=r[Fr("0x24")][0].language,s=e(o[Fr("0x4")]((t=>t.language===i))[Fr("0x15")])[Fr("0xc")]();return r[Fr("0x24")][0][Fr("0x7")]?{type:"format",content:Jo(n,"*Set format:* %0",Jo(n,"ELEMENT_CODE_BLOCK",1)+" ("+s+")")}:{type:Fr("0x21"),content:Jo(n,Fr("0x26"),Jo(n,Fr("0x18"),1))}}))}}function Br(t){return Fr("0x6")==t[Fr("0x13")]}const Pr=["addCommentThread","has","TrackChangesEditing","enableCommand","afterInit","plugins"];var Ur,jr;Ur=Pr,jr=158,function(t){for(;--t;)Ur.push(Ur.shift())}(++jr);const Gr=function(t,e){return Pr[t-=0]};class Vr extends t.Plugin{[Gr("0x2")](){const t=this.editor;t[Gr("0x3")][Gr("0x5")]("CommentsEditing")&&t.plugins.get(Gr("0x0"))[Gr("0x1")](Gr("0x4"))}}var Hr=n(181);const zr=["activeMarkers","mapper","test","plugins","TrackChangesEditing","previousPosition","insert","consumable","addClass","isAtEnd","item","nextSibling","listIndent","isLimit","isContent","toViewPosition","markerName","bindElementToMarker","getItems","isBlock","getCustomProperty","writer","hasAttribute","listItem","type","createRangeOn","includes","push","markerRange","start","ck-suggestion-marker--active","model","schema","get","createUIElement","element","getAttribute","elementEnd"];var Wr,Kr;Wr=zr,Kr=111,function(t){for(;--t;)Wr.push(Wr.shift())}(++Kr);const qr=function(t,e){return zr[t-=0]};function Xr(t,e,n){const o=[];for(const r of e[qr("0x15")]())r[qr("0x19")](t)&&o[qr("0x1e")](n[qr("0x1c")](r));return o}function $r(t,e,{showActiveMarker:n=!0}={}){const o=t[qr("0x6")][qr("0x24")](qr("0x7"));return(r,i,s)=>{if(!s[qr("0xa")][qr("0x5")](i[qr("0x1f")],r.name))return;const x=i[qr("0x1f")].getWalker(),a=i[qr("0x1f")][qr("0x20")],c=t[qr("0x22")][qr("0x23")];let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[qr("0xd")];d=d||c[qr("0x11")](e);const n=s[qr("0x4")].toViewElement(e);if(n&&n[qr("0x17")]("addHighlight"))return;qr("0x2")==t[qr("0x1b")]&&c[qr("0x16")](e)&&!c[qr("0x10")](e)&&(e[qr("0xe")]||a[qr("0xc")]?l&&l.parent==e||(l=e,f(t[qr("0x8")]),g=!0):u=u||t.previousPosition)}function f(t){const r=s.writer[qr("0x25")]("span",{class:"ck-suggestion-marker-"+e}),x=s[qr("0x4")][qr("0x12")](t);n&&o[qr("0x3")][qr("0x1d")](i[qr("0x13")])&&s[qr("0x18")][qr("0xb")](qr("0x21"),r),s[qr("0x18")][qr("0x9")](x,r),s.mapper[qr("0x14")](r,i[qr("0x13")])}d||g||!u||f(u)}}const Zr=["deleteForward","showSuggestionHighlights","high","merge","fromRange","lock","root","enqueueChange","selection","isCollapsed","mapper","detach","remove","batch","buffer","unbindElementFromMarkerName","addMarker:suggestion:deletion","document","downcastDispatcher","get","setSelection","editing","$graveyard","plugins","bind","createRange","createSelection","TrackChangesEditing","uiElement","unit","model","delete","unlock","modifySelection","editor","options","markerName","writer","start","data","getFirstRange","end","rootName"];var Qr,Yr;Qr=Zr,Yr=433,function(t){for(;--t;)Qr.push(Qr.shift())}(++Yr);const Jr=function(t,e){return Zr[t-=0]};class ti extends t.Plugin{static get requires(){return[Hr.Delete]}init(){const t=this[Jr("0x1f")],e=t[Jr("0x14")][Jr("0x10")](Jr("0x18"));e.enableCommand(Jr("0x1c"));const n=t.commands[Jr("0x10")]("deleteForward");e.enableCommand(Jr("0x28"),((e,o={})=>{const r=t.model[Jr("0x17")](t[Jr("0x1b")][Jr("0xe")][Jr("0x5")]);r[Jr("0x6")]&&t[Jr("0x1b")][Jr("0x1e")](r,{direction:"forward",unit:o[Jr("0x1a")]});const i=r[Jr("0x25")](),x=s.LiveRange[Jr("0x1")](i);let a;e(o),a=Jr("0x13")==x[Jr("0x3")][Jr("0x27")]?t[Jr("0x1b")][Jr("0x16")](i[Jr("0x23")]):t[Jr("0x1b")].createRange(x[Jr("0x23")],x[Jr("0x26")]),x[Jr("0x8")](),t.model[Jr("0x4")](n[Jr("0xb")][Jr("0xa")],(t=>{n[Jr("0xb")][Jr("0x2")](),t[Jr("0x11")](t[Jr("0x16")](a[Jr("0x26")])),n[Jr("0xb")][Jr("0x1d")]()}))})),t[Jr("0x12")][Jr("0xf")].on("addMarker:suggestion:deletion",$r(t,Jr("0x0")),{priority:Jr("0x2a")}),t[Jr("0x24")].downcastDispatcher.on(Jr("0xd"),((e,n,o)=>{o[Jr("0x20")][Jr("0x29")]&&$r(t,Jr("0x0"),{showActiveMarker:!1})[Jr("0x15")](this)(e,n,o)}),{priority:Jr("0x2a")}),t[Jr("0x12")][Jr("0xf")].on("removeMarker:suggestion:deletion",((t,e,n)=>{const o=n[Jr("0x7")].markerNameToElements(e[Jr("0x21")]);if(o)for(const t of o)t.is(Jr("0x19"))&&(n[Jr("0x7")][Jr("0xc")](t,e[Jr("0x21")]),n[Jr("0x22")][Jr("0x9")](t))}),{priority:Jr("0x2a")})}}const ei=["multipleBlocks","list.multiBlock","registerElementLabel","from","formatInline","length","change","enableCommand","mergeListItemBackward","locale","start","getRanges","commandParams","push","afterInit","execute","DocumentListEditing","commands","isFirstBlockOfListItem","deletion","nextSibling","previousSibling","editor","plugins","detach","toUpperCase","splitListItemAfter","listItemId","_descriptionFactory","get","getFirstRange","after","TrackChangesEditing","listType","format","refresh","end","registerCustomCallback","nodeAfter","indentList","registerDescriptionCallback","*Format:* remove from %0","ELEMENT_LIST_ITEM","numberedList","bulletedList","model","markBlockFormat","slice","*Indent:* %0","mergeListItemForward","type","has","map","documentList","next","config","value","before","parent","ELEMENT_NUMBERED_LIST","expandListBlocksToCompleteList","markMultiRangeBlockFormat","containsItem","getAttribute","isObject","fromRange","outdentList","createRange","getSelectedBlocks","accept","splitListItemBefore","formatBlock","listIndent","document","*Merge:* %0","forceValue","commandName","add","findIndex","_LIST","*Change to:* %0","setSelection","selection","ELEMENT_BULLETED_LIST","createPositionAt"];var ni,oi;ni=ei,oi=248,function(t){for(;--t;)ni.push(ni.shift())}(++oi);const ri=function(t,e){return ei[t-=0]};class ii extends t.Plugin{[ri("0x15")](){const t=this[ri("0x1d")];if(!t[ri("0x1e")][ri("0x3a")](ri("0x17")))return;const e=t[ri("0x10")],n=t[ri("0x1e")][ri("0x24")](ri("0x27")),o=t[ri("0x1e")].get("DocumentListUtils");function r(e){return()=>{const r=t.commands[ri("0x24")](e);if(r[ri("0x3f")]&&!t.config[ri("0x24")](ri("0x8")))return void t.execute("paragraph",{});let i=Array.from(t.model[ri("0x50")][ri("0x4")][ri("0x4b")]());if(a(e)){i=o[ri("0x43")](i);const t=[];for(const e of i)o[ri("0x19")](e)&&t[ri("0x14")](e);i=t}t[ri("0x34")][ri("0xd")]((()=>{n[ri("0x44")](i,{commandName:e,commandParams:[{forceValue:!r[ri("0x3f")]}],formatGroupId:"listType"},[],ri("0x3c"))}))}}function i(e){return()=>{const o=function(t){let e=Array[ri("0xa")](t);const n=e[ri("0x0")]((t=>!t.hasAttribute("listItemId")));return n>-1&&(e=e[ri("0x36")](0,n)),e}(t[ri("0x34")].document[ri("0x4")][ri("0x4b")]()),r=o[o[ri("0xc")]-1],i=t[ri("0x34")].schema[ri("0x47")](r)?ri("0x26"):"end",s=t[ri("0x34")][ri("0x4a")](t.model[ri("0x6")](o[0],"before"),t.model[ri("0x6")](r,i));t[ri("0x34")][ri("0xd")]((()=>{n[ri("0x35")](s,{commandName:e,commandParams:[],formatGroupId:ri("0x28")},function(t){const e=new Set;for(const n of t){let t=n[ri("0x1b")];for(;t&&t.getAttribute(ri("0x4f"))>n[ri("0x46")](ri("0x4f"));)e[ri("0x54")](t),t=t[ri("0x1b")]}return Array.from(e)}(o))}))}}function x(e){return()=>{const o=t[ri("0x34")][ri("0x50")][ri("0x4")][ri("0x4b")]()[ri("0x3d")]()[ri("0x3f")],r=t.model[ri("0x6")](o,ri("0x40")),i=t[ri("0x34")][ri("0x6")](o,0),s=t.model[ri("0x4a")](r,i);t[ri("0x34")][ri("0xd")]((()=>{n[ri("0x35")](s,{commandName:e,commandParams:[],formatGroupId:ri("0x28")})}))}}function a(e){const n=t.commands.get(ri("0x33")).value,o=t.commands.get(ri("0x32"))[ri("0x3f")];return ri("0x32")===e?n:o}n.enableCommand(ri("0x32"),r(ri("0x32"))),n[ri("0xe")](ri("0x33"),r("bulletedList")),n[ri("0xe")](ri("0x2e"),i(ri("0x2e"))),n[ri("0xe")](ri("0x49"),i(ri("0x49"))),n[ri("0xe")](ri("0x21"),x(ri("0x21"))),n[ri("0xe")](ri("0x4d"),x("splitListItemBefore")),n[ri("0x23")][ri("0x9")]((function(e){const n=!t.model.schema.isObject(e),o=e[ri("0x1c")],r=e.nextSibling,i=e[ri("0x46")]("listItemId"),s=!o||o[ri("0x46")](ri("0x22"))!==i,x=!r||r.getAttribute(ri("0x22"))!==i;return n&&Boolean(i)&&s&&x}),(t=>Jo(e,ri("0x31"),t))),n[ri("0x23")][ri("0x2f")]((function(n){if(ri("0x4e")!=n.type&&ri("0xb")!=n[ri("0x39")])return;const{data:o}=n;if(!o)return;let r,i,s,x;switch(o[ri("0x53")]){case"bulletedList":s=o.commandParams[0].forceValue,x=a(o[ri("0x53")]),r=s?"*Format:* insert into %0":ri("0x30"),!x&&t[ri("0x3e")][ri("0x24")](ri("0x8"))||(r=ri("0x2")),i={type:ri("0x29"),content:Jo(e,r,Jo(e,ri("0x5")))};break;case ri("0x32"):s=o[ri("0x13")][0][ri("0x52")],x=a(o.commandName),r=s?"*Format:* insert into %0":ri("0x30"),!x&&t[ri("0x3e")][ri("0x24")]("list.multiBlock")||(r=ri("0x2")),i={type:ri("0x29"),content:Jo(e,r,Jo(e,ri("0x42")))};break;case ri("0x2e"):r=ri("0x37"),i={type:ri("0x29"),content:Jo(e,r,Jo(e,ri("0x31")))};break;case"outdentList":r=function(t){const e=t[ri("0x25")]();let n=e[ri("0x11")].nodeAfter;for(;n&&e[ri("0x45")](n);){if(n.getAttribute(ri("0x4f"))>0)return!1;n=n[ri("0x1b")]}return!0}(n)?Jo(e,"*Format:* remove from %0",Jo(e,"ELEMENT_"+n.getFirstRange()[ri("0x11")][ri("0x2d")][ri("0x46")](ri("0x28"))[ri("0x20")]()+ri("0x1"))):Jo(e,"*Outdent:* %0",Jo(e,"ELEMENT_LIST_ITEM")),i={type:ri("0x29"),content:r};break;case ri("0xf"):case ri("0x38"):!1===o[ri("0x7")]&&(r=ri("0x51"),i={type:ri("0x1a"),content:Jo(e,r,Jo(e,ri("0x31")))})}return i})),n._suggestionFactory[ri("0x2c")](ri("0x4e"),ri("0x3c"),ri("0x4c"),(function(e,n){const o=[];for(let n of e)n[ri("0x11")].nodeAfter===n[ri("0x2b")][ri("0x41")]&&(n=t[ri("0x34")][ri("0x4a")](t[ri("0x34")][ri("0x6")](n[ri("0x11")][ri("0x2d")],0))),o[ri("0x14")](n);t[ri("0x34")][ri("0xd")]((e=>{const r=t[ri("0x34")].document[ri("0x4")],i=Array[ri("0xa")](r[ri("0x12")]())[ri("0x3b")]((t=>s.LiveRange[ri("0x48")](t)));e[ri("0x3")](o),t[ri("0x18")].get(n.commandName)[ri("0x2a")](),n[ri("0x13")][ri("0x14")]({forceDefaultExecution:!0}),t[ri("0x16")](n.commandName,...n.commandParams),e.setSelection(i);for(const t of i)t[ri("0x1f")]()}))}))}}const si=["numbered","DocumentListUtils","selection","_getSuggestionBlocksForListStyle","*Format:* set start index to %0","change","get","list.properties","startIndex","enableCommand","_getSuggestionBlocks","commandParams","length","commandName","document","listStart","handleListReversedCommand","push","bind","filter","getSelectedBlocks","*Format:* set order to reversed","plugins","DocumentListPropertiesEditing","afterInit","format","ELEMENT_","listReversed","type","registerDescriptionCallback","handleListStyleCommand","TrackChangesEditing","_descriptionFactory","markMultiRangeBlockFormat","*Format:* set order to regular","formatInline","handleDescriptions","_LIST_","isFirstBlockOfListItem","styles","reversed","toUpperCase","has","model","isListItemBlock","listType","expandListBlocksToCompleteList","listStyle","handleListStartCommand","editor","formatBlock"];var xi,ai;xi=si,ai=285,function(t){for(;--t;)xi.push(xi.shift())}(++ai);const ci=function(t,e){return si[t-=0]};class li extends t.Plugin{[ci("0x2d")](){if(!this[ci("0x13")][ci("0x2b")][ci("0xc")](ci("0x2c")))return;const t=this.editor.config[ci("0x1b")](ci("0x1c")),e=this[ci("0x13")][ci("0x2b")][ci("0x1b")]("TrackChangesEditing");t[ci("0x9")]&&e[ci("0x1e")](ci("0x11"),this[ci("0x0")][ci("0x27")](this)),t[ci("0xa")]&&e[ci("0x1e")](ci("0x30"),this[ci("0x25")][ci("0x27")](this)),t[ci("0x1d")]&&e[ci("0x1e")]("listStart",this.handleListStartCommand.bind(this)),e[ci("0x2")][ci("0x32")](this[ci("0x6")][ci("0x27")](this))}handleListStyleCommand(t,e={}){const n=this[ci("0x13")][ci("0x2b")][ci("0x1b")](ci("0x1")),o=this[ci("0x18")]();this.editor.model[ci("0x1a")]((()=>{n.markMultiRangeBlockFormat(o,{commandName:"listStyle",commandParams:[{type:e.type}],formatGroupId:ci("0x11")})}))}[ci("0x25")](t,e={}){const n=this.editor.plugins[ci("0x1b")](ci("0x1")),o=this[ci("0x13")][ci("0x2b")][ci("0x1b")](ci("0x16")),r=this[ci("0x1f")]((t=>o[ci("0xe")](t)&&ci("0x15")===t.getAttribute(ci("0xf"))));null!==r&&this.editor[ci("0xd")].change((()=>{n[ci("0x3")](r,{commandName:"listReversed",commandParams:[{reversed:e[ci("0xa")]}],formatGroupId:ci("0x30")})}))}[ci("0x12")](t,e={}){const n=this.editor[ci("0x2b")].get(ci("0x1")),o=this[ci("0x13")][ci("0x2b")][ci("0x1b")]("DocumentListUtils"),r=this[ci("0x1f")]((t=>o[ci("0xe")](t)&&ci("0x15")===t.getAttribute(ci("0xf"))));null!==r&&this.editor[ci("0xd")][ci("0x1a")]((()=>{n.markMultiRangeBlockFormat(r,{commandName:ci("0x24"),commandParams:[{startIndex:e[ci("0x1d")]}],formatGroupId:ci("0x24")})}))}[ci("0x6")](t){if(ci("0x14")!=t[ci("0x31")]&&ci("0x5")!=t[ci("0x31")])return;const e=this[ci("0x13")].locale,{data:n}=t;if(!n)return;let o,r;switch(n[ci("0x22")]){case ci("0x11"):o="*Change to:* %0",r={type:"format",content:Jo(e,o,Jo(e,this._getTranslationKeyForListStyle(n[ci("0x20")][0][ci("0x31")])))};break;case ci("0x30"):o=n.commandParams[0][ci("0xa")]?ci("0x2a"):ci("0x4"),r={type:ci("0x2e"),content:Jo(e,o)};break;case ci("0x24"):o=ci("0x19"),r={type:ci("0x2e"),content:Jo(e,o,n[ci("0x20")][0].startIndex)}}return r}[ci("0x18")](){const t=this.editor[ci("0x2b")].get(ci("0x16"));let e=Array.from(this[ci("0x13")][ci("0xd")].document.selection[ci("0x29")]());return e[ci("0x26")](...t[ci("0x10")](e)),e=[...new Set(e)],e}_getSuggestionBlocks(t){const e=this[ci("0x13")][ci("0x2b")][ci("0x1b")](ci("0x16"));let n=Array.from(this[ci("0x13")][ci("0xd")][ci("0x23")][ci("0x17")].getSelectedBlocks())[ci("0x28")](t);if(!n[ci("0x21")])return null;n=e[ci("0x10")](n);const o=[];for(const t of n)e[ci("0x8")](t)&&o[ci("0x26")](t);return o}_getTranslationKeyForListStyle(t){return ci("0x2f")+this.editor.plugins.get("DocumentListPropertiesUtils").getListTypeFromListStyleType(t).toUpperCase()+ci("0x7")+t[ci("0xb")]().replace(/-/g,"_")}}var ui=n(331);const di=["getFirstPosition","end","addMarker:suggestion:insertion","createPositionAt","downcastDispatcher","getFirstRange","markerName","createRange","removeMarker:suggestion:insertion","hasClass","get","split","fromRange","change","data","enterBlock","fire","plugins","unbindElementFromMarkerName","editing","TrackChangesEditing","requires","options","enter","ck-suggestion-marker-split","commands","writer","high","setSelection","mapper","selection","detach","model","document","editor"];var gi,fi;gi=di,fi=169,function(t){for(;--t;)gi.push(gi.shift())}(++fi);const mi=function(t,e){return di[t-=0]};class hi extends t.Plugin{static get[mi("0x1b")](){return[ui.Enter]}init(){const t=this[mi("0x5")],e=t[mi("0x17")][mi("0x10")](mi("0x1a")),n=t[mi("0x1f")][mi("0x10")]("enter");e.enableCommand(mi("0x1d"),(()=>{t[mi("0x3")][mi("0x13")]((o=>{const r=t.model[mi("0x4")][mi("0x1")],i=r[mi("0x6")](),x=s.LiveRange[mi("0x12")](r[mi("0xb")]());if(n[mi("0x15")](o)){const n=t.model[mi("0x9")](i.parent.nextSibling,0),r=o[mi("0xd")](i,n);e.markInsertion(r)}else o[mi("0x22")](o[mi("0xd")](x[mi("0x7")]));x[mi("0x2")](),n[mi("0x16")]("afterExecute",{writer:o})}))})),t[mi("0x19")][mi("0xa")].on(mi("0x8"),$r(t,mi("0x11")),{priority:mi("0x21")}),t.editing[mi("0xa")].on(mi("0xe"),((t,e,n)=>{const o=n[mi("0x0")].markerNameToElements(e.markerName);if(o)for(const t of o)t[mi("0xf")](mi("0x1e"))&&(n[mi("0x0")][mi("0x18")](t,e[mi("0xc")]),n[mi("0x20")].remove(t))}),{priority:mi("0x21")}),t[mi("0x14")][mi("0xa")].on(mi("0x8"),((e,n,o)=>{o[mi("0x1c")].showSuggestionHighlights&&$r(t,mi("0x11"),{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:mi("0x21")})}}const bi=["has","string","getIntersection","plugins","enableCommand","TrackChangesEditing","start","markers","editor","model","find","FindAndReplaceUtils","filter","_isInDeletionRange","getMarkersGroup","afterInit","createPositionAt","findByTextCallback","suggestion:deletion","get","handleFindCommand","findNext"];var pi,Ei;pi=bi,Ei=260,function(t){for(;--t;)pi.push(pi.shift())}(++Ei);const _i=function(t,e){return bi[t-=0]};class Ti extends t.Plugin{[_i("0x13")](){if(!this.editor[_i("0x7")][_i("0x4")]("FindAndReplaceEditing"))return;const t=this.editor.plugins.get(_i("0x9"));t[_i("0x8")](_i("0xe"),this[_i("0x2")].bind(this)),t.enableCommand(_i("0x3")),t.enableCommand("findPrevious"),t[_i("0x8")]("replace"),t[_i("0x8")]("replaceAll")}handleFindCommand(t,e,n={}){const o=this[_i("0xc")][_i("0x7")][_i("0x1")](_i("0xf"));if(void 0!==n)return t((t=>(_i("0x5")==typeof e?o[_i("0x15")](e,n):e)(t)[_i("0x10")]((e=>!1===this._isInDeletionRange(e,t.item)))),n)}[_i("0x11")](t,e){const n=this[_i("0xc")][_i("0xd")].createRange(this[_i("0xc")].model[_i("0x14")](e,t[_i("0xa")]),this.editor[_i("0xd")].createPositionAt(e,t.end));for(const t of this[_i("0xc")][_i("0xd")][_i("0xb")][_i("0x12")](_i("0x0")))if(null!==n[_i("0x6")](t.getRange()))return!0;return!1}}const yi=["*Set font color:* %0","FORMAT_FONT_COLOR","registerDescriptionCallback","*Reset font size*","has","*Set font background color:* %0","trim","fontColor","fontFamily","*Reset font family*","type","TrackChangesEditing","FORMAT_FONT_FAMILY","FontColorEditing","model","find","value","editor","fontBackgroundColor.colors","fontBackgroundColor","registerAttributeLabel","_registerLegacyDescription","FontFamilyEditing","commandName","formatInline","locale","config","FORMAT_FONT_SIZE","fontSize.options","toLowerCase","get","*Reset font background color*","*Reset font color*","*Set font size:* %0","plugins","FORMAT_FONT_BACKGROUND","commandParams","_descriptionFactory","format","normalizeSizeOptions","label","title","FontSize","fontSize"];var Ci,Ai;Ci=yi,Ai=342,function(t){for(;--t;)Ci.push(Ci.shift())}(++Ai);const ki=function(t,e){return yi[t-=0]},Ii=[{pluginName:"FontSizeEditing",commandName:ki("0x9")},{pluginName:ki("0x20"),commandName:"fontFamily"},{pluginName:ki("0x17"),commandName:ki("0x11")},{pluginName:"FontBackgroundColorEditing",commandName:ki("0x1d")}];class Si extends t.Plugin{afterInit(){const t=this[ki("0x1b")].locale,e=this.editor[ki("0x0")][ki("0x28")](ki("0x15"));for(const{pluginName:t,commandName:n}of Ii)this[ki("0x1b")][ki("0x0")][ki("0xe")](t)&&e._enableDefaultAttributesIntegration(n,[n]);t.t,e[ki("0x3")].registerAttributeLabel(ki("0x9"),Jo(t,ki("0x25"))),e[ki("0x3")][ki("0x1e")](ki("0x12"),Jo(t,ki("0x16"))),e[ki("0x3")].registerAttributeLabel(ki("0x11"),Jo(t,ki("0xb"))),e._descriptionFactory.registerAttributeLabel(ki("0x1d"),Jo(t,ki("0x1"))),this[ki("0x1f")]()}[ki("0x1f")](){const t=this[ki("0x1b")],e=t[ki("0x23")];t.plugins[ki("0x28")](ki("0x15"))[ki("0x3")][ki("0xc")]((t=>{const n=e.t;if(ki("0x22")!=t[ki("0x14")])return;const{data:o}=t;if(null!=o){if("fontSize"==o[ki("0x21")]){const t=o[ki("0x2")][0][ki("0x1a")];if(t){const o=n(this.editor[ki("0x0")][ki("0x28")](ki("0x8"))[ki("0x5")](this[ki("0x1b")][ki("0x24")].get(ki("0x26"))).find((e=>e[ki("0x18")]==t))[ki("0x7")])[ki("0x27")]();return{type:"format",content:Jo(e,ki("0x2b"),o)}}return{type:"format",content:Jo(e,ki("0xd"))}}if("fontFamily"==o.commandName){const t=o[ki("0x2")][0].value;return t?{type:ki("0x4"),content:Jo(e,"*Set font family:* %0",t)}:{type:ki("0x4"),content:Jo(e,ki("0x13"))}}if(ki("0x11")==o.commandName){const t=o[ki("0x2")][0][ki("0x1a")];if(t){const o=(0,r.normalizeColorOptions)(this[ki("0x1b")].config[ki("0x28")]("fontColor.colors"))[ki("0x19")]((e=>e.model==t));let i=t,s="";return o&&(i=o[ki("0x6")],s=n(i)[ki("0x27")]()),{type:ki("0x4"),content:Jo(e,ki("0xa"),s)[ki("0x10")](),color:{value:t,title:s||i}}}return{type:ki("0x4"),content:Jo(e,ki("0x2a"))}}if(ki("0x1d")==o[ki("0x21")]){const t=o[ki("0x2")][0][ki("0x1a")];if(t){const o=(0,r.normalizeColorOptions)(this.editor.config[ki("0x28")](ki("0x1c")))[ki("0x19")]((e=>e[ki("0x18")]==t));let i=t,s="";return o&&(i=o[ki("0x6")],s=n(i)[ki("0x27")]()),{type:ki("0x4"),content:Jo(e,ki("0xf"),s)[ki("0x10")](),color:{value:t,title:s||i}}}return{type:ki("0x4"),content:Jo(e,ki("0x29"))}}}}))}}const Ri=["boolean","editor","copyFormat","formatInline","locale","*Set format to:* %0","enableCommand","push","entries","commandParams","*Remove all formatting*","toLowerCase","title","commands","join","fontColor.colors","length","_registerLegacyDescription","toUpperCase","fontSize","plugins","pasteFormat","_descriptionFactory","model","config","formatBlock","format","fontSize.options","commandName","type","fontColor","label","fontBackgroundColor","FontSize","get"];var Ni,vi;Ni=Ri,vi=273,function(t){for(;--t;)Ni.push(Ni.shift())}(++vi);const Li=function(t,e){return Ri[t-=0]};class Mi extends t.Plugin{afterInit(){const t=this[Li("0x8")],e=t[Li("0x1b")][Li("0x6")]("TrackChangesEditing"),n=t[Li("0x14")].get(Li("0x9")),o=t[Li("0x14")][Li("0x6")](Li("0x1c"));n&&o&&(e._enableDefaultAttributesIntegration(Li("0x1c")),e[Li("0xd")]("copyFormat"),this[Li("0x18")]())}[Li("0x18")](){const t=this[Li("0x8")],e=t[Li("0xb")];t[Li("0x1b")][Li("0x6")]("TrackChangesEditing")[Li("0x1d")].registerDescriptionCallback((n=>{if(Li("0x20")!=n[Li("0x1")]&&Li("0xa")!=n[Li("0x1")])return;const{data:o}=n;if(o&&Li("0x1c")===o[Li("0x0")]){const n=[],r=o[Li("0x10")][0];for(const[e,o]of Object[Li("0xf")](r))n[Li("0xe")](wi(t,e,o));return n[Li("0x17")]?{type:Li("0x21"),content:Jo(e,Li("0xc"),n.join(", "))}:{type:Li("0x21"),content:Jo(e,Li("0x11"))}}}))}}function wi(t,e,n){const o=t.locale.t,i=e.split(/(?=[A-Z])/)[Li("0x15")](" "),s=o(i.charAt(0)[Li("0x19")]()+i.slice(1))[Li("0x12")]();if(Li("0x7")==typeof n)return s;if(Li("0x2")===e||Li("0x4")===e){const e=(0,r.normalizeColorOptions)(t.config[Li("0x6")](Li("0x16"))).find((t=>t[Li("0x1e")]==n));return s+" ("+(e?o(e[Li("0x3")])[Li("0x12")]():n)+")"}if(Li("0x1a")===e&&isNaN(parseFloat(n))){const e=t[Li("0x1b")].get(Li("0x5")).normalizeSizeOptions(t[Li("0x1f")][Li("0x6")](Li("0x22"))).find((t=>t[Li("0x1e")]==n));return s+" ("+(e?o(e[Li("0x13")])[Li("0x12")]():n)+")"}return s+" ("+n+")"}const Oi=["_enableDefaultAttributesIntegration","registerDescriptionCallback","match","commandName","ELEMENT_HEADING","heading.options","paragraph","has","TrackChangesEditing","find","_registerLegacyDescription","format","ELEMENT_HEADING_CUSTOM","commandParams","_getHeadingLevel","_descriptionFactory","registerElementLabel","_headingOptions","locale","editor","formatBlock","name","model","get","HeadingEditing","heading","plugins","config","value","*Change to:* %0","afterInit"];var Fi,Di;Fi=Oi,Di=125,function(t){for(;--t;)Fi.push(Fi.shift())}(++Di);const Bi=function(t,e){return Oi[t-=0]};class Pi extends t.Plugin{[Bi("0x1d")](){const t=this[Bi("0x12")];if(!t[Bi("0x19")][Bi("0x6")](Bi("0x17")))return;this[Bi("0x10")]=t[Bi("0x1a")].get(Bi("0x4"));const e=t[Bi("0x11")],n=t[Bi("0x19")][Bi("0x16")]("TrackChangesEditing");n[Bi("0x1e")](Bi("0x18"));for(const t of this[Bi("0x10")])Bi("0x5")!=t[Bi("0x15")]&&n[Bi("0xe")][Bi("0xf")](t.model,(n=>{const o=this[Bi("0xd")](t.model);return null!==o?(s=n,x=o,Jo(e,Bi("0x3"),[s,x])):(r=n,i=t.title,Jo(e,Bi("0xb"),[r,i]));var r,i,s,x}));this[Bi("0x9")]()}[Bi("0x9")](){const t=this[Bi("0x12")],e=t[Bi("0x11")];t.plugins[Bi("0x16")](Bi("0x7"))[Bi("0xe")][Bi("0x0")]((t=>{if(Bi("0x13")!=t.type)return;const{data:n}=t;if(n&&Bi("0x18")==n[Bi("0x2")]){const t=n[Bi("0xc")][0][Bi("0x1b")],s=this[Bi("0xd")](t);if(null!==s)return{type:"format",content:Jo(e,Bi("0x1c"),(1,i=s,Jo(e,Bi("0x3"),[1,i])))};const x=this[Bi("0x10")][Bi("0x8")]((e=>e.model===t)).title;return{type:Bi("0xa"),content:Jo(e,Bi("0x1c"),(o=1,r=x,Jo(e,Bi("0xb"),[o,r])))}}var o,r,i}))}[Bi("0xd")](t){var e,n;const o=t[Bi("0x1")](/^heading(\d+)/);if(o)return o[1];const r=null===(e=this[Bi("0x10")])||void 0===e?void 0:e[Bi("0x8")]((e=>e[Bi("0x15")]==t));if(r&&r.view){const t=r.view,e=(null!==(n=t[Bi("0x14")])&&void 0!==n?n:t)[Bi("0x1")](/^h(\d+)/);if(e)return e[1]}return null}}const Ui=["*Set highlight:* %0","*Remove highlight*","config","registerDescriptionCallback","commandParams","commandName","color","type","_descriptionFactory","get","editor","afterInit","FORMAT_HIGHLIGHT","registerAttributeLabel","_registerLegacyDescription","plugins","title","_enableDefaultAttributesIntegration","find","highlight","format","locale","highlight.options","HighlightEditing"];var ji,Gi;ji=Ui,Gi=283,function(t){for(;--t;)ji.push(ji.shift())}(++Gi);const Vi=function(t,e){return Ui[t-=0]};class Hi extends t.Plugin{[Vi("0x10")](){const t=this[Vi("0xf")];if(!t[Vi("0x14")].has(Vi("0x4")))return;const e=t[Vi("0x14")].get("TrackChangesEditing"),n=t[Vi("0x2")];e[Vi("0x16")](Vi("0x0"),[Vi("0x0")]),e[Vi("0xd")][Vi("0x12")](Vi("0x0"),Jo(n,Vi("0x11"))),this[Vi("0x13")]()}[Vi("0x13")](){const t=this[Vi("0xf")],e=t[Vi("0x2")];t[Vi("0x14")][Vi("0xe")]("TrackChangesEditing")[Vi("0xd")][Vi("0x8")]((n=>{if("formatInline"!=n[Vi("0xc")])return;const{data:o}=n;if(o&&Vi("0x0")==o[Vi("0xa")]){const n=e.t,r=o[Vi("0x9")][0].value;if(r){const o=t[Vi("0x7")][Vi("0xe")](Vi("0x3"))[Vi("0x17")]((t=>t.model==r)),i=n(o[Vi("0x15")]).toLowerCase();return{type:Vi("0x1"),content:Jo(e,Vi("0x5"),i),color:{value:o[Vi("0xb")],title:o[Vi("0x15")]}}}return{type:"format",content:Jo(e,Vi("0x6"),Jo(e,"FORMAT_HIGHLIGHT"))}}}))}}const zi=["high","horizontalLine","createContainerElement","_descriptionFactory","elementToStructure","TrackChangesEditing","addClass","get","dataDowncast","plugins","ck-horizontal-line","ELEMENT_HORIZONTAL_LINE","showSuggestionHighlights","createPositionAt","conversion","enableCommand","registerElementLabel","div","createEmptyElement"];var Wi,Ki;Wi=zi,Ki=414,function(t){for(;--t;)Wi.push(Wi.shift())}(++Ki);const qi=function(t,e){return zi[t-=0]};class Xi extends t.Plugin{afterInit(){const t=this.editor;if(!t[qi("0xd")].has("HorizontalLineEditing"))return;t.plugins[qi("0xb")](qi("0x9"))[qi("0x0")](qi("0x5"));const e=t.plugins[qi("0xb")](qi("0x9")),n=t.locale;e[qi("0x7")][qi("0x1")]("horizontalLine",(t=>Jo(n,qi("0xf"),t))),t[qi("0x12")].for(qi("0xc"))[qi("0x8")]({model:qi("0x5"),view:(t,{writer:e,options:n})=>{if(!n[qi("0x10")])return null;const o=e[qi("0x6")](qi("0x2")),r=e[qi("0x3")]("hr");return e[qi("0xa")](qi("0xe"),o),e.insert(e[qi("0x11")](o,0),r),o},converterPriority:qi("0x4")})}}const $i=["htmlEmbed","_descriptionFactory","editor","afterInit","_registerLegacyDescription","plugins","format","start","attribute","registerDescriptionCallback","rawHtml","ELEMENT_HTML_EMBED","TrackChangesEditing","_enableDefaultAttributesIntegration","has","type","formatBlock","value","commandName","HtmlEmbed","nodeAfter","*Change %0 content*","registerElementLabel","locale"];var Zi,Qi;Zi=$i,Qi=322,function(t){for(;--t;)Zi.push(Zi.shift())}(++Qi);const Yi=function(t,e){return $i[t-=0]};class Ji extends t.Plugin{[Yi("0x11")](){const t=this.editor;if(!t[Yi("0x13")][Yi("0x4")](Yi("0x9")))return;const e=t[Yi("0x13")].get("TrackChangesEditing"),n=t[Yi("0xd")];e._descriptionFactory[Yi("0xc")](Yi("0x0"),(t=>Jo(n,Yi("0x1"),t))),e[Yi("0x3")]("htmlEmbed",[],[Yi("0x7")]),e[Yi("0xf")][Yi("0x17")]((t=>{if(Yi("0x16")!=t[Yi("0x5")])return;const{data:e}=t;if(e&&Yi("0x7")==e.key&&t.getFirstRange()[Yi("0x15")][Yi("0xa")].is("element",Yi("0x0"))){const t=Jo(n,"ELEMENT_HTML_EMBED");return{type:Yi("0x14"),content:Jo(n,Yi("0xb"),t)}}})),this[Yi("0x12")]()}[Yi("0x12")](){const t=this[Yi("0x10")],e=t[Yi("0xd")];t[Yi("0x13")].get(Yi("0x2"))[Yi("0xf")][Yi("0x17")]((t=>{if(Yi("0x6")!=t.type)return;const{data:n}=t;if(n&&Yi("0xe")==n[Yi("0x8")]){const t=Jo(e,Yi("0x1"));return{type:"format",content:Jo(e,"*Change %0 content*",t)}}}))}}const ts=["detach","isBlockImage","*Set image width:* %0","forward","get","_registerLegacyDescription","createRange","find","isEqual","ImageTextAlternativeEditing","resizedWidth","isIntersecting","convertBlockImageToInline","end","getContainedElement","resizeImage","model","deletion","format","type","imageTypeBlock","subType","change","imageTextAlternative","getSuggestionCallback","nodeAfter","uploadImage","isOwn","convertInlineImageToBlock","isCollapsed","markInsertion","markDeletion","registerDescriptionCallback","Block image to inline image","registerCustomCallback","ImageInlineEditing","*Remove image text alternative*","imageStylePreApply","addObject","registerElementLabel","imageInline","enableCommand","getCaptionFromImageModelElement","caption","_descriptionFactory","markBlockFormat","_enableDefaultAttributesIntegration","width","ImageBlockEditing","getFirstRange","nodeBefore","getNearestSelectionRange","ImageUtils","imageBlock","imageCaption","element","key","getClosestSelectedImageElement","commandParams","attribute","imageTypeInline","ImageCaptionEditing","document","ELEMENT_IMAGE","discard","toNext","fromPosition","forceDefaultExecution","newValue","selection","*Reset image width*","createRangeOn","alt","commandName","start","backward","toggleImageCaption","ImageResize","TrackChangesEditing","accept","length","_findSuggestions","filter","chain","locale","removeObject","plugins","*Set image text alternative:* %0","formatInline","formatBlock","afterInit","editor","isBefore","_suggestionFactory","has","insertion","findIndex"];var es,ns;es=ts,ns=240,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class rs extends t.Plugin{[os("0x2c")](){const t=this.editor;if(!t[os("0x28")][os("0x30")]("ImageEditing"))return;const e=t[os("0x28")].get(os("0x20")),n=t.plugins.get(os("0x6")),o=t[os("0x26")];e.enableCommand("insertImage"),e[os("0x5f")][os("0x5a")](os("0x7"),(t=>Jo(o,os("0x11"),t))),e[os("0x5f")].registerElementLabel(os("0x5b"),(t=>Jo(o,"ELEMENT_INLINE_IMAGE",t))),e[os("0x5f")].registerElementLabel(os("0x5e"),(()=>Jo(o,"ELEMENT_CAPTION"))),t[os("0x28")][os("0x30")]("ImageUploadEditing")&&e.enableCommand(os("0x4d")),t[os("0x28")][os("0x30")](os("0x2"))&&t[os("0x28")][os("0x30")](os("0x56"))&&(e.enableCommand("imageTypeInline",((o,r)=>{const i=n[os("0xb")](t[os("0x43")][os("0x10")][os("0x17")]);t.model[os("0x49")]((()=>{e[os("0x60")](i,{commandName:"imageTypeInline",commandParams:[r]},[],os("0x3f"))}))})),e[os("0x5c")](os("0x47"),((o,r)=>{t[os("0x43")][os("0x49")]((i=>{let x=n[os("0xb")](t[os("0x43")][os("0x10")][os("0x17")]),a=i.createRangeOn(x);const c=s.LivePosition[os("0x14")](a[os("0x1c")],"toPrevious"),l=s.LivePosition.fromPosition(a[os("0x40")],os("0x13"));e[os("0x15")]((()=>o(r))),x=n[os("0xb")](t[os("0x43")][os("0x10")][os("0x17")]),a=i[os("0x19")](x);const u=i[os("0x39")](c,l);c[os("0x33")](),l[os("0x33")](),e[os("0x60")](x,{commandName:os("0xe"),commandParams:[r]},[],"convertInlineImageToBlock"),u[os("0x1c")][os("0x2e")](a[os("0x1c")])&&e.markInsertion(i[os("0x39")](u[os("0x1c")],a[os("0x1c")]),os("0x4f")),a.end[os("0x2e")](u[os("0x40")])&&e[os("0x51")](i[os("0x39")](a[os("0x40")],u.end),os("0x4f"))}))})),e[os("0x2f")][os("0x55")](os("0x2b"),os("0x4f"),"join",(()=>!1)),e[os("0x2f")][os("0x55")](os("0x2b"),os("0x4f"),os("0x21"),(()=>!1)),e[os("0x2f")][os("0x55")]("formatBlock",os("0x4f"),"discard",e._suggestionFactory[os("0x4b")]("formatBlock","",os("0x21"))),e[os("0x2f")][os("0x55")](os("0x31"),os("0x4f"),"join",(()=>!1)),e[os("0x2f")][os("0x55")](os("0x31"),os("0x4f"),os("0x12"),(([n])=>{const o=e[os("0x2f")][os("0x4b")]("insertion","",os("0x12"));let r=n[os("0x1c")],i=n[os("0x40")];const s=t.model.schema[os("0x5")](r,os("0x1d")),x=t[os("0x43")].schema.getNearestSelectionRange(i,os("0x36"));s[os("0x50")]&&(r=s[os("0x1c")]),x[os("0x50")]&&(i=x.end),o([t.model[os("0x39")](r,i)])})),e[os("0x2f")].registerCustomCallback(os("0x2b"),os("0x4f"),os("0x25"),x),e[os("0x2f")].registerCustomCallback(os("0x31"),os("0x4f"),os("0x25"),x)),t[os("0x28")].has(os("0xf"))&&(e[os("0x5c")](os("0x1e"),((o,r)=>{const i=t[os("0x28")][os("0x37")]("ImageCaptionUtils");let s=n.getClosestSelectedImageElement(t.model[os("0x10")][os("0x17")]),x=i[os("0x5d")](s);t[os("0x43")].change((()=>{if(x)return void e[os("0x52")](t.model.createRangeOn(x));const a=n[os("0x34")](s);o(r),s=n[os("0xb")](t[os("0x43")].document.selection),x=i[os("0x5d")](s),e[os("0x51")](t[os("0x43")][os("0x19")](x),a?null:"imageCaption")}))})),e._suggestionFactory[os("0x55")](os("0x31"),os("0x8"),os("0x25"),x));const r=[{type:os("0x2b"),subType:os("0x58")},{type:"insertion",subType:os("0x8")},{type:"formatBlock",subType:"convertInlineImageToBlock"},{type:os("0x31"),subType:os("0x4f")}];function i(t,o){const i=r.findIndex((({type:e,subType:n})=>t.type==e&&t[os("0x48")]==n)),s=r[os("0x32")]((({type:t,subType:e})=>o.type==t&&o[os("0x48")]==e));if(i<0||s<0)return!1;const x=t[os("0x3")](),a=o[os("0x3")]();if((0==i||1==i)&&2==s&&x[os("0x3e")](a))return!0;if(2==i&&3==s){const t=e[os("0x23")](x,os("0x31"))[os("0x24")]((({suggestion:t,meta:e})=>e[os("0x4e")]&&os("0x4f")==t.subType));if(t[os("0x22")]>1&&a[os("0x40")][os("0x3b")](x[os("0x1c")]))return!0;if(1==t[os("0x22")]&&(x[os("0x1c")][os("0x3b")](a[os("0x40")])||x.end[os("0x3b")](a[os("0x1c")])))return!0}if(3==i&&3==s&&x[os("0x1c")][os("0x2e")](a[os("0x1c")])){const t=x[os("0x40")][os("0x4c")],e=a[os("0x1c")][os("0x4")];return n[os("0x34")](t)&&t===e}return!1}function x(t,e){return i(t,e)?[t,e]:i(e,t)?[e,t]:null}t[os("0x28")][os("0x30")](os("0x1f"))&&(e[os("0x0")](os("0x42"),[],[os("0x3d")]),e[os("0x5f")].registerAttributeLabel(os("0x3d"),Jo(o,"FORMAT_IMAGE_SIZE"))),t[os("0x28")].has(os("0x3c"))&&e[os("0x0")](os("0x4a"),[],[os("0x1a")]),e[os("0x5f")][os("0x53")]((t=>{if(r[os("0x3a")]((({type:e,subType:n})=>t[os("0x46")]==e&&t[os("0x48")]==n)))return t.previous?{}:void 0})),e[os("0x5f")].registerDescriptionCallback((t=>{if(os("0x31")==t[os("0x46")]||os("0x44")==t[os("0x46")]){const e=t[os("0x41")]();if(e&&e.is(os("0x9"),os("0x5e")))return{type:os("0x31")==t[os("0x46")]?os("0x59"):os("0x27"),element:e,quantity:1}}})),e[os("0x5f")][os("0x53")]((t=>os("0x2b")==t[os("0x46")]&&"convertInlineImageToBlock"==t.subType?{type:os("0x45"),content:"Inline image to block image"}:os("0x2b")==t[os("0x46")]&&"convertBlockImageToInline"==t.subType?{type:os("0x45"),content:os("0x54")}:void 0)),e[os("0x5f")][os("0x53")]((t=>{if(os("0xd")!=t.type)return;const{data:e}=t;if(!e||"alt"!=e[os("0xa")])return;const n=e[os("0x16")];return n?{type:os("0x45"),content:Jo(o,"*Set image text alternative:* %0",'"'+n+'"')}:{type:os("0x45"),content:Jo(o,os("0x57"))}})),this[os("0x38")]()}[os("0x38")](){const t=this[os("0x2d")],e=t[os("0x26")];t[os("0x28")][os("0x37")](os("0x20"))[os("0x5f")][os("0x53")]((t=>{if(os("0x2b")!=t.type&&os("0x2a")!=t[os("0x46")])return;const{data:n}=t;if(n){if(os("0x4a")==n.commandName){const t=n[os("0xc")][0][os("0x16")];return t?{type:os("0x45"),content:Jo(e,os("0x29"),'"'+t+'"')}:{type:os("0x45"),content:Jo(e,os("0x57"))}}if("resizeImage"==n[os("0x1b")]){const t=n[os("0xc")][0][os("0x1")];return t?{type:os("0x45"),content:Jo(e,os("0x35"),t)}:{type:os("0x45"),content:Jo(e,os("0x18"))}}}}))}}const is=["get","formatBlock","replaceImageSource","accept","_registerLegacyDescription","editor","src","_enableDefaultAttributesIntegration","format","key","has","registerCustomCallback","plugins","_suggestionFactory","registerDescriptionCallback","discard","type","ImageEditing","_handleLegacySuggestions","TrackChangesEditing","_descriptionFactory","newValue","locale","formatInline"];var ss,xs;ss=is,xs=347,function(t){for(;--t;)ss.push(ss.shift())}(++xs);const as=function(t,e){return is[t-=0]};class cs extends t.Plugin{afterInit(){if(!this.editor[as("0x1")][as("0x17")](as("0x6")))return;const t=this[as("0x12")][as("0xb")],e=this.editor[as("0x1")][as("0xd")]("TrackChangesEditing");e[as("0x14")](as("0xf"),[],[as("0x13")]),e[as("0x9")][as("0x3")]((e=>{if("attribute"!=e.type)return;const{data:n}=e;return n&&as("0x13")==n[as("0x16")]?n[as("0xa")]&&n.oldValue?{type:"format",content:Jo(t,"*Replace image URL*")}:{type:as("0x15"),content:""}:void 0})),this._handleLegacySuggestions()}[as("0x7")](){const t=this[as("0x12")][as("0x1")][as("0xd")](as("0x8"));t._suggestionFactory.registerCustomCallback(as("0xe"),"replaceImageSource",as("0x10"),t._suggestionFactory.getSuggestionCallback(as("0xe"),null,as("0x4"))),t[as("0x2")][as("0x0")](as("0xe"),as("0xf"),"discard",t[as("0x2")].getSuggestionCallback(as("0xe"),null,"accept")),this[as("0x11")]()}[as("0x11")](){const t=this.editor,e=t[as("0xb")];t[as("0x1")][as("0xd")](as("0x8"))[as("0x9")][as("0x3")]((t=>{if(as("0xe")!=t[as("0x5")]&&as("0xc")!=t[as("0x5")])return;const{data:n}=t;return n&&"replaceImageSource"===n.commandName?{type:as("0x15"),content:Jo(e,"*Replace image URL*")}:void 0}))}}const ls=["imageStylePostApply","from","commands","value","markInlineFormat","imageCaption","hasSuggestion","afterInit","filter","format","getContainedElement","*Format:* %0","_registerLegacyDescription","getFirstRange","isIntersecting","end","editor","name","commandName","get","suggestion","differ","FORMAT_SIDE_IMAGE","imageStylePreApply","getSuggestions","change","isEqual","commandParams","plugins","isBefore","markBlockFormat","getChangedMarkers","type","imageTypeBlock","getSuggestion","formatInline","setImageNaturalSizeAttributes","forEach","findIndex","getClosestSelectedImageElement","_suggestionFactory","_descriptionFactory","nodeAfter","subType","accept","refresh","document","join","formatBlock","isBlockImage","start","newRange","length","shouldConvertImageType","chain","getSuggestionCallback","_splitMarkerName","TrackChangesEditing","model","registerPostFixer","convertInlineImageToBlock","discardSuggestion","createRangeOn","isInlineImage","title","author","ImageStyleEditing","_findSuggestions","registerDescriptionCallback","isInContent","registerCustomCallback","imageStyle","insertion","normalizedStyles","selection","commandReversedParams","discard","next"];var us,ds;us=ls,ds=231,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};class fs extends t.Plugin{[gs("0xa")](){const t=this[gs("0x13")];if(!t[gs("0x1f")].has(gs("0x45")))return;const n=t[gs("0x1f")][gs("0x16")]("TrackChangesEditing"),o=t.plugins[gs("0x16")]("ImageUtils"),r={};n.enableCommand("imageStyle",((r,i)=>{const s=t[gs("0x1f")].get("Users").me,x=t[gs("0x5")].get(gs("0x4a"));let a=o[gs("0x2a")](t[gs("0x3d")][gs("0x31")][gs("0x4d")]),c=t[gs("0x3d")][gs("0x41")](a),l=x[gs("0x6")];if(l==i[gs("0x6")])return;const u={commandName:gs("0x4a"),commandParams:[i],formatGroupId:(0,e.uid)()};t.model[gs("0x1c")]((()=>{if(n[gs("0x1b")]().filter((t=>t[gs("0x48")]&&s==t[gs("0x44")]&&("formatBlock"==t[gs("0x23")]||gs("0x26")==t[gs("0x23")])&&("imageStylePreApply"==t[gs("0x2e")]||gs("0x3")==t[gs("0x2e")])&&t[gs("0x10")]()[gs("0x1d")](c)))[gs("0x28")]((t=>n[gs("0x40")](t.head))),a=o[gs("0x2a")](t[gs("0x3d")][gs("0x31")].selection),c=t.model.createRangeOn(a),x.refresh(),t.commands[gs("0x16")]("imageTypeInline")[gs("0x30")](),t[gs("0x5")][gs("0x16")](gs("0x24"))[gs("0x30")](),l=x[gs("0x6")],l!=i[gs("0x6")])return o[gs("0x42")](a)&&x[gs("0x38")](i.value,a)?(r({...i,setImageSizes:!1}),a=o.getClosestSelectedImageElement(t[gs("0x3d")][gs("0x31")][gs("0x4d")]),void n[gs("0x21")](a,{...u,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],gs("0x1a"))):void(o.isBlockImage(a)?n.markBlockFormat(a,u,[],gs("0x3")):n[gs("0x7")](c,u,gs("0x3")))}))}));for(const e of t[gs("0x1f")][gs("0x16")]("ImageStyleEditing")[gs("0x4c")])r[e[gs("0x14")]]=e[gs("0x43")].toLowerCase();n._suggestionFactory[gs("0x49")](gs("0x33"),gs("0x1a"),"join",(()=>!1)),n[gs("0x2b")][gs("0x49")]("formatBlock",gs("0x3"),gs("0x32"),(()=>!1)),n[gs("0x2b")].registerCustomCallback(gs("0x26"),"imageStylePostApply","join",(()=>!1)),n[gs("0x2b")].registerCustomCallback(gs("0x33"),gs("0x1a"),gs("0x2f"),(([t])=>{o[gs("0x27")](t.getContainedElement())})),n[gs("0x2b")][gs("0x49")](gs("0x33"),gs("0x1a"),gs("0x1"),((t,e)=>{n[gs("0x2b")][gs("0x3a")](gs("0x33"),"",gs("0x2f"))(t,{commandName:e[gs("0x15")],commandParams:e[gs("0x0")]})})),n._suggestionFactory[gs("0x49")](gs("0x33"),gs("0x1a"),gs("0x39"),(function(t,e){return s(t,e)?[t,e]:s(e,t)?[e,t]:null}));const i=[{type:gs("0x33"),subType:"imageStylePreApply"},{type:gs("0x4b"),subType:"imageCaption"},{type:gs("0x33"),subType:gs("0x3f")},{type:gs("0x4b"),subType:gs("0x3f")}];function s(t,e){const r=i[gs("0x29")]((({type:e,subType:n})=>t[gs("0x23")]==e&&t[gs("0x2e")]==n)),s=i[gs("0x29")]((({type:t,subType:n})=>e[gs("0x23")]==t&&e[gs("0x2e")]==n));if(r<0||s<0)return!1;const x=t[gs("0x10")](),a=e[gs("0x10")]();if((0==r||1==r)&&2==s&&x[gs("0x11")](a))return!0;if(2==r&&3==s){const t=n[gs("0x46")](x,"insertion")[gs("0xb")]((({suggestion:t,meta:e})=>e.isOwn&&gs("0x3f")==t[gs("0x2e")]));if(t[gs("0x37")]>1&&a.end.isEqual(x[gs("0x35")]))return!0;if(1==t[gs("0x37")]&&(x.start.isEqual(a[gs("0x12")])||x.end[gs("0x1d")](a[gs("0x35")])))return!0}if(3==r&&3==s&&x.start[gs("0x20")](a[gs("0x35")])){const t=x[gs("0x12")][gs("0x2d")],e=a[gs("0x35")].nodeBefore;return o.isBlockImage(t)&&t===e}return!1}t[gs("0x3d")][gs("0x31")][gs("0x3e")]((()=>{let e=!1;const r=Array[gs("0x4")](t[gs("0x3d")].document[gs("0x18")][gs("0x22")]());for(const{name:t,data:i}of r){const{group:r,type:s,subType:x,id:a}=n[gs("0x3b")](t);if(gs("0x17")==r&&n[gs("0x9")](a)){if("formatBlock"==s&&(gs("0x1a")==x||gs("0x3")==x)){const t=n[gs("0x25")](a);if(i[gs("0x36")]){const r=t[gs("0x10")]()[gs("0xd")]();if(o[gs("0x34")](r))continue;n[gs("0x40")](t),e=!0}}if(gs("0x4b")==s&&gs("0x8")==x&&!i[gs("0x36")]){const t=n.getSuggestion(a);t.next&&t[gs("0x2")].isInContent&&(n[gs("0x40")](t[gs("0x2")]),e=!0)}}}return e})),this[gs("0xf")](r)}[gs("0xf")](t){const e=this[gs("0x13")],n=e.locale;e.plugins[gs("0x16")](gs("0x3c"))[gs("0x2c")][gs("0x47")]((e=>{if(gs("0x33")!=e.type&&gs("0x26")!=e[gs("0x23")])return;const{data:o}=e;if(!o||gs("0x4a")!=o[gs("0x15")])return;const r=o[gs("0x1e")][0][gs("0x6")];return i="side"===r?Jo(n,gs("0x19")):t[r]||r,{type:gs("0xc"),content:Jo(n,gs("0xe"),i)};var i}))}}const ms=["bind","dataInsert","commands","afterInit","track_changes","_trackChangesValueDuringImport","execute","_handleImportedData","plugins","TrackChangesEditing","importWord","editor","Users","_trackChangesExecuted","collaboration_features","_setSuggestionData","enableCommand","lowest","trackChanges","listenTo","get","forEach"];var hs,bs;hs=ms,bs=220,function(t){for(;--t;)hs.push(hs.shift())}(++bs);const ps=function(t,e){return ms[t-=0]};class Es extends t.Plugin{constructor(t){super(t),this._trackChangesValueDuringImport=!1,this[ps("0xd")]=!1}[ps("0x3")](){const t=this[ps("0xb")],e=t[ps("0x2")].get("importWord"),n=t[ps("0x2")][ps("0x14")]("trackChanges");e&&(e.on("execute",((t,[,e])=>{this[ps("0x5")]=n.value,e[ps("0xe")][ps("0x4")]=!this[ps("0x5")]}),{priority:"high"}),this[ps("0x13")](e,ps("0x1"),this[ps("0x7")][ps("0x0")](this)),this[ps("0x13")](e,ps("0x1"),(()=>{this._trackChangesExecuted&&(n[ps("0x6")](),this[ps("0xd")]=!1)}),{priority:ps("0x11")}),t[ps("0x8")][ps("0x14")](ps("0x9"))[ps("0x10")]("importWord"))}[ps("0x7")](t,e){const{suggestions:n}=e,o=this[ps("0xb")].commands[ps("0x14")](ps("0x12")),r=o.value;this[ps("0x5")]!==r&&(o[ps("0x6")](),this[ps("0xd")]=!0),n&&n[ps("0x15")]((({id:t,type:e,author:n,created_at:o})=>{const r={id:t,type:e,authorId:this[ps("0xb")].plugins[ps("0x14")](ps("0xc")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ps("0xa")}}};this[ps("0xb")][ps("0x8")].get(ps("0x9"))[ps("0xf")](r)}))}}const _s=["registerDescriptionCallback","enableCommand","commandName","outdent","type","getItems","indent","has","indentBlock","registerAttributeLabel","_registerLegacyDescription","IndentEditing","outdentBlock","TrackChangesEditing","locale","afterInit","*Indent:* %0","_descriptionFactory","_registerBlockAttribute","plugins","blockIndent","format","get","*Outdent:* %0","_enableDefaultAttributesIntegration","editor"];var Ts,ys;Ts=_s,ys=377,function(t){for(;--t;)Ts.push(Ts.shift())}(++ys);const Cs=function(t,e){return _s[t-=0]};class As extends t.Plugin{[Cs("0x2")](){const t=this[Cs("0xc")],e=t[Cs("0x6")][Cs("0x9")](Cs("0x0"));if(t[Cs("0x6")][Cs("0x14")](Cs("0x18"))&&(e[Cs("0xe")](Cs("0x13")),e.enableCommand(Cs("0x10"))),t[Cs("0x6")].has("IndentBlock"))for(const t of[Cs("0x15"),Cs("0x19")])e[Cs("0xb")](t);const n=t[Cs("0x1")];e[Cs("0x5")](Cs("0x7")),e[Cs("0x4")][Cs("0x16")](Cs("0x7"),Jo(n,"FORMAT_INDENT")),this[Cs("0x17")]()}[Cs("0x17")](){const t=this[Cs("0xc")],e=t.locale,n=t.plugins[Cs("0x9")](Cs("0x0"));n[Cs("0x4")][Cs("0xd")]((t=>{if("formatBlock"!=t[Cs("0x11")])return;const{data:o}=t;if(!o)return;if(Cs("0x15")!=o[Cs("0xf")]&&Cs("0x19")!=o[Cs("0xf")])return;const r=t[Cs("0x12")]()[0],i=n[Cs("0x4")].getItemLabel(r);return"indentBlock"==o[Cs("0xf")]?{type:Cs("0x8"),content:Jo(e,Cs("0x3"),i)}:Cs("0x19")==o[Cs("0xf")]?{type:"format",content:Jo(e,Cs("0xa"),i)}:void 0}))}}var ks,Is,Ss=["plugins","enableCommand","editor"];ks=Ss,Is=119,function(t){for(;--t;)ks.push(ks.shift())}(++Is);var Rs=function(t,e){return Ss[t-=0]};class Ns extends t.Plugin{static get requires(){return[Hr.Input]}init(){this[Rs("0x0")][Rs("0x1")].get("TrackChangesEditing")[Rs("0x2")]("input")}}const vs=["link","map","_enableDefaultAttributesIntegration","key","formatInline","commands","registerDescriptionCallback","unlink","commandName","has","linkHref","format","attribute","link (","_registerLegacyDescription","plugins","get","manualDecorators","locale","*Remove link*","newValue","_descriptionFactory","TrackChangesEditing","toLowerCase","editor","*Set link:* %0"];var Ls,Ms;Ls=vs,Ms=196,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ms);const ws=function(t,e){return vs[t-=0]};class Os extends t.Plugin{afterInit(){const t=this.editor;if(!t[ws("0x1")][ws("0x15")]("LinkEditing"))return;const e=t[ws("0x1")].get(ws("0x8")),n=t[ws("0x11")][ws("0x2")](ws("0xc"));e._enableDefaultAttributesIntegration(ws("0xc"),[ws("0x16"),...n[ws("0x3")][ws("0xd")]((t=>t.id))]),e[ws("0xe")]("unlink");for(const t of n[ws("0x3")])e[ws("0x7")].registerAttributeLabel(t.id,ws("0x19")+t.label[ws("0x9")]()+")");e[ws("0x7")][ws("0x12")]((e=>{if(ws("0x18")!=e.type)return;const{data:n}=e;if(!n||ws("0x16")!=n[ws("0xf")])return;const o=n[ws("0x6")],r=t[ws("0x4")];return{type:"format",content:o?Jo(r,"*Set link:* %0",'"'+o+'"'):Jo(r,ws("0x5"))}})),this[ws("0x0")]()}[ws("0x0")](){const t=this[ws("0xa")],e=t[ws("0x4")];t[ws("0x1")].get(ws("0x8"))._descriptionFactory.registerDescriptionCallback((t=>{if(ws("0x10")!=t.type)return;const{data:n}=t;if(n){if("link"==n.commandName){const t=n.commandParams[0];return{type:"format",content:Jo(e,ws("0xb"),'"'+t+'"')}}return ws("0x13")==n[ws("0x14")]?{type:ws("0x17"),content:Jo(e,ws("0x5"))}:void 0}}))}}const Fs=["nextSibling","locale","commands","value","numbered","commandName","afterInit","element","model","*Outdent:* %0","add","_descriptionFactory","bulleted","List","format","checkChild","todoListChecked","getSelectedBlocks","parent","enableCommand","ELEMENT_TODO_LIST","slice","numberedList","type","ListEditing","outdentList","getAttribute","ELEMENT_LIST_ITEM","length","replace","document","isObject","name","*Indent:* %0","end","*Uncheck item*","formatBlock","from","previousSibling","bulletedList","registerElementLabel","change","indentList","*Check item*","createPositionAt","TodoListEditing","todoList","listIndent","editor","TrackChangesEditing","markBlockFormat","createRange","get","blockName","checkTodoList","plugins","schema","formatInline","filter","listItem","forceValue","todo","selection","ELEMENT_BULLETED_LIST"];var Ds,Bs;Ds=Fs,Bs=438,function(t){for(;--t;)Ds.push(Ds.shift())}(++Bs);const Ps=function(t,e){return Fs[t-=0]};class Us extends t.Plugin{[Ps("0x10")](){const t=this[Ps("0x3a")],e=t[Ps("0xb")];if(!t.plugins.has(Ps("0x22")))return;const n=t[Ps("0x1")][Ps("0x3e")](Ps("0x3b")),o=t[Ps("0x1")].has(Ps("0x37"));function r(e){return()=>{const o=t[Ps("0x12")].document[Ps("0x8")],r=t[Ps("0xc")][Ps("0x3e")](e);if(r[Ps("0xd")])return void t.execute("paragraph",{});const i=e[Ps("0x1f")](0,-4),s=function(t,e,n){let o=Array.from(t)[Ps("0x4")]((t=>{return e=t,(o=n)[Ps("0x19")](e[Ps("0x1c")],Ps("0x5"))&&!o[Ps("0x29")](e);var e,o}));o=o.filter((t=>!t.is("element",Ps("0x5"))||t.getAttribute("listType")!=e));const r=new Set;for(const t of o)t.is(Ps("0x11"),Ps("0x5"))?r[Ps("0x14")](js(t)):r[Ps("0x14")](t);return Array[Ps("0x2f")](r)}(o[Ps("0x1b")](),i,t.model[Ps("0x2")]);t[Ps("0x12")][Ps("0x33")]((()=>{for(const t of s)n[Ps("0x3c")](t,{commandName:e,commandParams:[{forceValue:!r[Ps("0xd")]}],formatGroupId:Ps("0x3f")},Gs(t))}))}}function i(e){return()=>{const o=function(t){let e=Array[Ps("0x2f")](t);const n=e.findIndex((t=>Ps("0x5")!=t[Ps("0x2a")]));return n>-1&&(e=e[Ps("0x1f")](0,n)),e}(t[Ps("0x12")][Ps("0x28")][Ps("0x8")].getSelectedBlocks()),r=t[Ps("0x12")][Ps("0x3d")](t[Ps("0x12")][Ps("0x36")](o[0],"before"),t[Ps("0x12")][Ps("0x36")](o[o[Ps("0x26")]-1],Ps("0x2c")));t[Ps("0x12")].change((()=>{n[Ps("0x3c")](r,{commandName:e,commandParams:[],formatGroupId:Ps("0x39")},function(t){const e=new Set;for(const n of t){let t=n.nextSibling;for(;t&&t.getAttribute(Ps("0x39"))>n.getAttribute(Ps("0x39"));)e[Ps("0x14")](t),t=t[Ps("0xa")]}return Array[Ps("0x2f")](e)}(o))}))}}n[Ps("0x1d")](Ps("0x20"),r(Ps("0x20"))),n[Ps("0x1d")](Ps("0x31"),r(Ps("0x31"))),o&&n.enableCommand(Ps("0x38"),r(Ps("0x38"))),n[Ps("0x1d")](Ps("0x34"),i(Ps("0x34"))),n.enableCommand(Ps("0x23"),i("outdentList")),o&&n.enableCommand(Ps("0x0"),(()=>{const e=t[Ps("0xc")][Ps("0x3e")](Ps("0x0")),o=Array[Ps("0x2f")](e._selectedElements);o[Ps("0x4")]((t=>t[Ps("0x24")](Ps("0x1a"))!=e[Ps("0xd")])),t.model.change((()=>{for(const t of o)n.markBlockFormat(t,{commandName:Ps("0x0"),commandParams:[{forceValue:!e[Ps("0xd")]}]})}))})),n[Ps("0x15")][Ps("0x32")](Ps("0x5"),(t=>Jo(e,Ps("0x25"),t))),n[Ps("0x15")].registerDescriptionCallback((t=>{if(Ps("0x2e")!=t[Ps("0x21")]&&Ps("0x3")!=t.type)return;const{data:n}=t;if(n){if(Ps("0x20")==n[Ps("0xf")]||Ps("0x31")==n[Ps("0xf")]||Ps("0x38")==n[Ps("0xf")])switch(n[Ps("0xf")][Ps("0x27")](Ps("0x17"),"")){case Ps("0x16"):return o(Jo(e,Ps("0x9")));case Ps("0xe"):return o(Jo(e,"ELEMENT_NUMBERED_LIST"));case Ps("0x7"):return o(Jo(e,Ps("0x1e")))}if(Ps("0x34")==n[Ps("0xf")])return{type:Ps("0x18"),content:Jo(e,Ps("0x2b"),Jo(e,Ps("0x25")))};if(Ps("0x23")==n[Ps("0xf")])return{type:Ps("0x18"),content:Jo(e,Ps("0x13"),Jo(e,Ps("0x25")))};if("checkTodoList"==n[Ps("0xf")])return n.commandParams[0][Ps("0x6")]?{type:Ps("0x18"),content:Jo(e,Ps("0x35"))}:{type:Ps("0x18"),content:Jo(e,Ps("0x2d"))}}function o(t){return{type:"format",content:Jo(e,"*Change to:* %0",t)}}}))}}function js(t){const e=t[Ps("0x24")]("listIndent");if(0==e)return t;let n=t;for(;t.previousSibling&&t[Ps("0x30")].is(Ps("0x11"),Ps("0x5"));){const o=t[Ps("0x30")][Ps("0x24")](Ps("0x39"));if(o==e)n=t.previousSibling;else if(o<e)break;t=t[Ps("0x30")]}return n}function Gs(t){const e=[];if(t.is(Ps("0x11"),Ps("0x5"))&&t[Ps("0x24")](Ps("0x39"))>0){let n=t.nextSibling;for(;n&&Ps("0x5")==n.name&&n[Ps("0x24")](Ps("0x39"))==t[Ps("0x24")]("listIndent");)e.push(n),n=n[Ps("0xa")]}return e}const Vs=["createRange","plugins","change","editor","afterInit","listItem","getSiblingNodes","forward","TrackChangesEditing","*Change to:* %0","formatInline","listStyle","document","listStart","markMultiRangeBlockFormat","_getSuggestionBlocksForListStyle","element","ELEMENT_","has","listType","getLastPosition","*Format:* set start index to %0","bind","format","_LIST_","_getTranslationKeyForListStyle","get","handleDescriptions","createPositionAt","enableCommand","replace","model","getFirstPosition","before","ListUtils","listReversed","length","startIndex","getSelectedBlocks","ListPropertiesEditing","type","handleListStartCommand","from","handleListReversedCommand","map","list.properties","getListTypeFromListStyleType","push","filter","_getSuggestionBlocks","styles","*Format:* set order to reversed","backward","*Format:* set order to regular","commandName","numbered","commandParams","selection","handleListStyleCommand","locale","reversed"];var Hs,zs;Hs=Vs,zs=466,function(t){for(;--t;)Hs.push(Hs.shift())}(++zs);const Ws=function(t,e){return Vs[t-=0]};class Ks extends t.Plugin{[Ws("0x1a")](){if(!this[Ws("0x19")][Ws("0x17")][Ws("0x28")](Ws("0x0")))return;const t=this[Ws("0x19")].config[Ws("0x30")](Ws("0x6")),e=this[Ws("0x19")][Ws("0x17")].get("TrackChangesEditing");t[Ws("0xb")]&&e[Ws("0x33")](Ws("0x21"),this[Ws("0x13")][Ws("0x2c")](this)),t.reversed&&e.enableCommand(Ws("0x39"),this[Ws("0x4")][Ws("0x2c")](this)),t[Ws("0x3b")]&&e.enableCommand("listStart",this.handleListStartCommand[Ws("0x2c")](this)),e._descriptionFactory.registerDescriptionCallback(this[Ws("0x31")][Ws("0x2c")](this))}[Ws("0x13")](t,e={}){const n=this[Ws("0x19")][Ws("0x17")][Ws("0x30")](Ws("0x1e")),o=this[Ws("0x25")]();this[Ws("0x19")][Ws("0x35")].change((()=>{n[Ws("0x24")](o,{commandName:Ws("0x21"),commandParams:[{type:e[Ws("0x1")]}],formatGroupId:Ws("0x21")})}))}[Ws("0x4")](t,e={}){const n=this[Ws("0x19")][Ws("0x17")][Ws("0x30")](Ws("0x1e")),o=this[Ws("0xa")]((t=>t.is(Ws("0x26"),Ws("0x1b"))&&Ws("0x10")===t.getAttribute(Ws("0x29"))));if(o.length<1)return;const r=o.map((t=>this[Ws("0x19")].model[Ws("0x16")](this[Ws("0x19")][Ws("0x35")][Ws("0x32")](t,Ws("0x37")),this[Ws("0x19")][Ws("0x35")][Ws("0x32")](t,0))));this[Ws("0x19")][Ws("0x35")].change((()=>{n[Ws("0x24")](r,{commandName:"listReversed",commandParams:[{reversed:e.reversed}],formatGroupId:Ws("0x39")})}))}[Ws("0x2")](t,e={}){const n=this[Ws("0x19")].plugins[Ws("0x30")](Ws("0x1e")),o=this[Ws("0xa")]((t=>t.is(Ws("0x26"),Ws("0x1b"))&&"numbered"===t.getAttribute(Ws("0x29"))));if(o[Ws("0x3a")]<1)return;const r=o[Ws("0x5")]((t=>this[Ws("0x19")].model[Ws("0x16")](this[Ws("0x19")][Ws("0x35")].createPositionAt(t,Ws("0x37")),this[Ws("0x19")][Ws("0x35")][Ws("0x32")](t,0))));this.editor[Ws("0x35")][Ws("0x18")]((()=>{n.markMultiRangeBlockFormat(r,{commandName:Ws("0x23"),commandParams:[{startIndex:e.startIndex}],formatGroupId:Ws("0x23")})}))}[Ws("0x31")](t){if("formatBlock"!=t[Ws("0x1")]&&Ws("0x20")!=t.type)return;const e=this.editor[Ws("0x14")],{data:n}=t;if(!n)return;let o,r;switch(n[Ws("0xf")]){case Ws("0x21"):o=Ws("0x1f"),r={type:Ws("0x2d"),content:Jo(e,o,Jo(e,this[Ws("0x2f")](n[Ws("0x11")][0][Ws("0x1")])))};break;case"listReversed":o=n[Ws("0x11")][0][Ws("0x15")]?Ws("0xc"):Ws("0xe"),r={type:Ws("0x2d"),content:Jo(e,o)};break;case Ws("0x23"):o=Ws("0x2b"),r={type:Ws("0x2d"),content:Jo(e,o,n[Ws("0x11")][0][Ws("0x3b")])}}return r}[Ws("0x25")](){var t,e,n,o;const r=this[Ws("0x19")][Ws("0x17")].get(Ws("0x38"));let i=Array[Ws("0x3")](this.editor.model[Ws("0x22")][Ws("0x12")][Ws("0x3c")]());return(null===(t=i[0])||void 0===t?void 0:t.is(Ws("0x26"),Ws("0x1b")))&&i.unshift(...r[Ws("0x1c")](this[Ws("0x19")].model.document.selection[Ws("0x36")](),Ws("0xd"))),(null===(e=i[i[Ws("0x3a")]-1])||void 0===e?void 0:e.is(Ws("0x26"),"listItem"))&&i[Ws("0x8")](...r[Ws("0x1c")](this[Ws("0x19")][Ws("0x35")].document[Ws("0x12")][Ws("0x2a")](),Ws("0x1d"))),i=[...new Set(i)],(null===(o=null===(n=this[Ws("0x19")][Ws("0x35")].document.selection[Ws("0x36")]())||void 0===n?void 0:n.parent)||void 0===o?void 0:o.is(Ws("0x26"),"listItem"))&&(i=i.filter((t=>t.is(Ws("0x26"),"listItem")))),i}[Ws("0xa")](t){const e=this[Ws("0x19")][Ws("0x17")].get("ListUtils");let n=Array[Ws("0x3")](this[Ws("0x19")][Ws("0x35")][Ws("0x22")][Ws("0x12")].getSelectedBlocks())[Ws("0x9")](t).map((t=>{const n=this[Ws("0x19")][Ws("0x35")][Ws("0x32")](t,0);return[...e.getSiblingNodes(n,Ws("0xd")),...e[Ws("0x1c")](n,Ws("0x1d"))]})).flat();return n=[...new Set(n)],n}[Ws("0x2f")](t){return Ws("0x27")+this.editor[Ws("0x17")].get(Ws("0x38"))[Ws("0x7")](t).toUpperCase()+Ws("0x2e")+t.toUpperCase()[Ws("0x34")](/-/g,"_")}}const qs=["get","media","plugins","stop","elementToElement","high","data","ELEMENT_MEDIA","MediaEmbedEditing","dataDowncast","conversion","options","editor","div","mediaEmbed","TrackChangesEditing","attribute:url:media","showSuggestionHighlights","createEmptyElement","downcastDispatcher","for","_descriptionFactory","registerElementLabel","enableCommand","locale"];var Xs,$s;Xs=qs,$s=500,function(t){for(;--t;)Xs.push(Xs.shift())}(++$s);const Zs=function(t,e){return qs[t-=0]};class Qs extends t.Plugin{afterInit(){const t=this[Zs("0xc")];if(!t.plugins.has(Zs("0x8")))return;const e=t[Zs("0x2")][Zs("0x0")](Zs("0xf")),n=t[Zs("0x18")];e[Zs("0x17")](Zs("0xe")),e[Zs("0x15")][Zs("0x16")](Zs("0x1"),(t=>Jo(n,Zs("0x7"),t))),t[Zs("0xa")][Zs("0x14")](Zs("0x9"))[Zs("0x4")]({model:Zs("0x1"),view:(t,{writer:e,options:n})=>{if(n[Zs("0x11")])return e[Zs("0x12")](Zs("0xd"))},converterPriority:Zs("0x5")}),t[Zs("0x6")][Zs("0x13")].on(Zs("0x10"),((t,e,n)=>{n[Zs("0xb")].showSuggestionHighlights&&t[Zs("0x3")]()}),{priority:Zs("0x5")})}}const Ys=["editor","has","TrackChangesEditing","afterInit","plugins","mention","enableCommand","MentionEditing","get"];var Js,tx;Js=Ys,tx=149,function(t){for(;--t;)Js.push(Js.shift())}(++tx);const ex=function(t,e){return Ys[t-=0]};class nx extends t.Plugin{[ex("0x7")](){const t=this[ex("0x4")];t[ex("0x8")][ex("0x5")](ex("0x2"))&&t[ex("0x8")][ex("0x3")](ex("0x6"))[ex("0x1")](ex("0x0"))}}const ox=["pageBreak","editor","get","afterInit","plugins","enableCommand","PageBreakEditing","_descriptionFactory","TrackChangesEditing","registerElementLabel"];var rx,ix;rx=ox,ix=429,function(t){for(;--t;)rx.push(rx.shift())}(++ix);const sx=function(t,e){return ox[t-=0]};class xx extends t.Plugin{[sx("0x4")](){const t=this[sx("0x2")];if(!t[sx("0x5")].has(sx("0x7")))return;t[sx("0x5")][sx("0x3")]("TrackChangesEditing")[sx("0x6")](sx("0x1"));const e=t[sx("0x5")][sx("0x3")](sx("0x9")),n=t.locale;e[sx("0x8")][sx("0x0")](sx("0x1"),(t=>Jo(n,"ELEMENT_PAGE_BREAK",t)))}}const ax=["markerRange","locale","checkChild","insertion","ck-suggestion-marker-split","includes","isBlock","writer","Paragraph","editing","enableCommand","isLimit","markerName","formatBlock","get","isTouching","insert","commandName","type","paragraph","addMarker:suggestion:insertion","start","addClass","toViewPosition","end","mapper","model","createUIElement","_registerLegacyDescription","editor","showSuggestionHighlights","_enableDefaultAttributesIntegration","nodeAfter","schema","ELEMENT_PARAGRAPH","highest","plugins","*Insert:* %0","span","options","registerElementLabel","$text","TrackChangesEditing","activeMarkers","_descriptionFactory"];var cx,lx;cx=ax,lx=223,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const ux=function(t,e){return ax[t-=0]};class dx extends t.Plugin{afterInit(){const t=this.editor;if(!t[ux("0x26")].has(ux("0xa")))return;const e=t[ux("0x3")],n=t[ux("0x26")][ux("0x10")](ux("0x2c"));n[ux("0x1")][ux("0x2a")](ux("0x15"),(t=>Jo(e,"ELEMENT_PARAGRAPH",t))),n[ux("0x21")](ux("0x15")),n[ux("0xc")]("insertParagraph"),t[ux("0xb")].downcastDispatcher.on(ux("0x16"),gx(t),{priority:ux("0x25")}),t.data.downcastDispatcher.on("addMarker:suggestion:insertion",((e,n,o)=>{o[ux("0x29")][ux("0x20")]&&gx(t,{showActiveMarker:!1})(e,n,o)}),{priority:ux("0x25")});const o=n[ux("0x1")];o.registerDescriptionCallback((n=>{if(ux("0x5")!==n[ux("0x14")])return;const{start:r,end:i}=n.getFirstRange();if(!r[ux("0x11")](i)||!r[ux("0x22")])return;const s=t[ux("0x1c")][ux("0x23")],x=r[ux("0x22")];return s[ux("0x8")](x)&&!s.isLimit(x)&&s[ux("0x4")](x,ux("0x2b"))?{type:ux("0x5"),content:Jo(e,ux("0x27"),o.getItemLabel(x,1))}:void 0})),this[ux("0x1e")]()}_registerLegacyDescription(){const t=this[ux("0x1f")],e=t[ux("0x3")];t[ux("0x26")].get("TrackChangesEditing")[ux("0x1")].registerDescriptionCallback((t=>{if(ux("0xf")!=t[ux("0x14")])return;const{data:n}=t;return n&&"paragraph"==n[ux("0x13")]?{type:"format",content:Jo(e,"*Change to:* %0",Jo(e,ux("0x24")))}:void 0}))}}function gx(t,{showActiveMarker:e=!0}={}){return(n,o,r)=>{const i=t.plugins[ux("0x10")]("TrackChangesEditing"),s=o[ux("0x2")][ux("0x17")],x=o[ux("0x2")][ux("0x1a")],a=t[ux("0x1c")][ux("0x23")];if(!s[ux("0x11")](x)||!s.nodeAfter)return;const c=s[ux("0x22")];if(a.isBlock(c)&&!a[ux("0xd")](c)&&a[ux("0x4")](c,ux("0x2b"))){if(!r.consumable.consume(o[ux("0x2")],n.name))return;const t=r[ux("0x9")][ux("0x1d")](ux("0x28"),{class:ux("0x6")}),s=r[ux("0x1b")][ux("0x19")](x);e&&i[ux("0x0")][ux("0x7")](o[ux("0xe")])&&r[ux("0x9")][ux("0x18")]("ck-suggestion-marker--active",t),r[ux("0x9")][ux("0x12")](s,t),r[ux("0x1b")].bindElementToMarker(t,o.markerName)}}}const fx=["*Remove all formatting*","TrackChangesEditing","_registerLegacyDescription","_enableDefaultAttributesIntegration","removeFormat","format","formatBlock","has","get","registerDescriptionCallback","type","editor","plugins","commandName"];var mx,hx;mx=fx,hx=302,function(t){for(;--t;)mx.push(mx.shift())}(++hx);const bx=function(t,e){return fx[t-=0]};class px extends t.Plugin{afterInit(){const t=this[bx("0x3")];t[bx("0x4")][bx("0xd")]("RemoveFormatEditing")&&(t[bx("0x4")][bx("0x0")]("TrackChangesEditing")[bx("0x9")](bx("0xa")),this[bx("0x8")]())}[bx("0x8")](){const t=this[bx("0x3")];t[bx("0x4")][bx("0x0")](bx("0x7"))._descriptionFactory[bx("0x1")]((e=>{if(bx("0xc")!=e.type&&"formatInline"!=e[bx("0x2")])return;const{data:n}=e;return n&&bx("0xa")==n[bx("0x5")]?{type:bx("0xb"),content:Jo(t.locale,bx("0x6"))}:void 0}))}}const Ex=["acceptSelectedSuggestions","goToPreviousRestrictedEditingException","goToNextRestrictedEditingException","plugins","has","editor","afterInit","discardSuggestion","RestrictedEditingModeEditing","get","enableCommand","discardAllSuggestions","trackChanges"];var _x,Tx;_x=Ex,Tx=408,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const yx=function(t,e){return Ex[t-=0]};class Cx extends t.Plugin{[yx("0x1")](){const t=this[yx("0x0")];if(!t[yx("0xb")][yx("0xc")](yx("0x3")))return;const e=t[yx("0xb")][yx("0x4")]("TrackChangesEditing");e[yx("0x5")](yx("0x9")),e[yx("0x5")](yx("0xa"));const n=t.plugins.get("RestrictedEditingModeEditing");n[yx("0x5")](yx("0x7")),n[yx("0x5")]("acceptSuggestion"),n[yx("0x5")](yx("0x2")),n[yx("0x5")]("acceptAllSuggestions"),n[yx("0x5")](yx("0x6")),n[yx("0x5")](yx("0x8")),n[yx("0x5")]("discardSelectedSuggestions")}}const Ax=["createUIElement","markerRange","element","enableCommand","softBreak","addMarker:suggestion:deletion","insert","ELEMENT_LINE_BREAK","test","registerElementLabel","activeMarkers","TrackChangesEditing","ck-suggestion-marker-","addMarker:suggestion","locale","includes","model","markerName","mapper","toViewPosition","editor","span","high","merge","get","downcastDispatcher","consumable","ck-suggestion-marker--active","split","requires","editing","bindElementToMarker","writer","plugins","init","name","addClass","createPositionBefore"];var kx,Ix;kx=Ax,Ix=229,function(t){for(;--t;)kx.push(kx.shift())}(++Ix);const Sx=function(t,e){return Ax[t-=0]};class Rx extends t.Plugin{static get[Sx("0x1c")](){return[ui.ShiftEnter]}[Sx("0x21")](){const t=this[Sx("0x13")],e=t[Sx("0x20")][Sx("0x17")](Sx("0xa"));e[Sx("0x2")]("shiftEnter"),t[Sx("0x1d")][Sx("0x18")].on("addMarker:suggestion:insertion",Nx(t),{priority:Sx("0x15")}),t[Sx("0x1d")][Sx("0x18")].on(Sx("0x4"),Nx(t),{priority:Sx("0x15")}),t.data[Sx("0x18")].on(Sx("0xc"),((e,n,o)=>{o.options.showSuggestionHighlights&&Nx(t,{showActiveMarker:!1})(e,n,o)})),e._descriptionFactory[Sx("0x8")]("softBreak",(e=>Jo(t[Sx("0xd")],Sx("0x6"),e)))}}function Nx(t,{showActiveMarker:e=!0}={}){return(n,o,r)=>{const i=t[Sx("0x20")][Sx("0x17")](Sx("0xa"));if(!r[Sx("0x19")][Sx("0x7")](o[Sx("0x0")],n[Sx("0x22")]))return;const s=t[Sx("0xf")];for(const t of o[Sx("0x0")].getItems()){if(!t.is(Sx("0x1"),Sx("0x3")))continue;const n="deletion"==o[Sx("0x10")][Sx("0x1b")](":")[1]?Sx("0x16"):Sx("0x1b"),x=r.writer[Sx("0x25")](Sx("0x14"),{class:Sx("0xb")+n}),a=r[Sx("0x11")][Sx("0x12")](s[Sx("0x24")](t));e&&i[Sx("0x9")][Sx("0xe")](o[Sx("0x10")])&&r[Sx("0x1f")][Sx("0x23")](Sx("0x1a"),x),r[Sx("0x1f")][Sx("0x5")](a,x),r[Sx("0x11")][Sx("0x1e")](x,o.markerName)}}}const vx=["_descriptionFactory","commands","registerDescriptionCallback","model","StandardEditingModeEditing","editor","forceValue","type","formatBlock","get","FORMAT_RESTRICTED_ENABLED","from","getRanges","FORMAT_RESTRICTED_DISABLED","change","restrictedEditingException","plugins","has","markInlineFormat","selection","TrackChangesEditing","document","commandParams","format","afterInit","locale"];var Lx,Mx;Lx=vx,Mx=336,function(t){for(;--t;)Lx.push(Lx.shift())}(++Mx);const wx=function(t,e){return vx[t-=0]};class Ox extends t.Plugin{[wx("0x0")](){const t=this[wx("0x7")],e=t[wx("0x5")],n=t[wx("0x1")];if(!t[wx("0x12")][wx("0x13")](wx("0x6")))return;const o=t[wx("0x12")][wx("0xb")](wx("0x16")),r=wx("0x11"),i=t[wx("0x3")][wx("0xb")](r);o.enableCommand(r,((t,n={})=>{const s=e[wx("0x17")][wx("0x15")];if(s.isCollapsed)return void t(n);const x=void 0!==n[wx("0x8")]?n.forceValue:!i.value;e[wx("0x10")]((()=>{const t=Array[wx("0xd")](s[wx("0xe")]());for(const n of t){const t=x?[n]:Xr(r,n,e);for(const e of t)o[wx("0x14")](e,{commandName:r,commandParams:[{forceValue:x}]})}}))})),o[wx("0x2")][wx("0x4")]((t=>{if(wx("0xa")!=t[wx("0x9")]&&"formatInline"!=t[wx("0x9")])return;const{data:e}=t;return e&&e.commandName==r?e[wx("0x18")][0][wx("0x8")]?{type:wx("0x19"),content:Jo(n,wx("0xc"))}:{type:wx("0x19"),content:Jo(n,wx("0xf"))}:void 0}))}}const Fx=["add","_descriptionFactory","commandParams","type","formatBlock","element","formatInline","StyleUtils","editor","registerDescriptionCallback","has","FORMAT_STYLE","style","forceValue","normalizeConfig","block","_registerInlineAttribute","commandName","inline","styleName","format","TrackChangesEditing","get","*Remove format:* %0","registerAttributeLabel","_registerLegacyDescription","_enableDefaultAttributesIntegration","plugins","DataSchema"];var Dx,Bx;Dx=Fx,Bx=246,function(t){for(;--t;)Dx.push(Dx.shift())}(++Bx);const Px=function(t,e){return Fx[t-=0]};class Ux extends t.Plugin{afterInit(){const t=this[Px("0x17")];if(!t[Px("0xd")][Px("0x19")]("Style")||!t[Px("0xd")][Px("0x19")]("DataSchema"))return;const e=t[Px("0xd")][Px("0x8")](Px("0x7")),n=t.locale,o=t.config[Px("0x8")](Px("0x1b")),r=t[Px("0xd")][Px("0x8")]("GeneralHtmlSupport"),i=t[Px("0xd")][Px("0x8")](Px("0x16"))[Px("0x0")](t.plugins[Px("0x8")](Px("0xe")),o.definitions);e[Px("0xc")](Px("0x1b"));const s=new Set;for(const t of i[Px("0x1")]){const e=r.getGhsAttributeNameForElement(t[Px("0x14")]);s.add(e)}const x=new Set;for(const t of i[Px("0x4")]){const e=r.getGhsAttributeNameForElement(t[Px("0x14")]);x[Px("0xf")](e);for(const e of t.ghsAttributes)x[Px("0xf")](e)}for(const t of s)e._registerBlockAttribute(t),e._descriptionFactory[Px("0xa")](t,Jo(n,Px("0x1a")));for(const t of x)e[Px("0x2")](t),e[Px("0x10")][Px("0xa")](t,Jo(n,Px("0x1a")));this._registerLegacyDescription()}[Px("0xb")](){const t=this[Px("0x17")],e=t.locale;t[Px("0xd")].get(Px("0x7"))._descriptionFactory[Px("0x18")]((t=>{if(Px("0x13")!=t[Px("0x12")]&&Px("0x15")!=t[Px("0x12")])return;const{data:n}=t;return n&&"style"===n[Px("0x3")]?n[Px("0x11")][0][Px("0x1c")]?{type:Px("0x6"),content:Jo(e,"*Set format:* %0",n[Px("0x11")][0].styleName.toLowerCase())}:{type:Px("0x6"),content:Jo(e,Px("0x9"),n[Px("0x11")][0][Px("0x5")].toLowerCase())}:void 0}))}}const jx=["setSelection","locale","max","createPositionAt","insertion","insert","change","change:data","first","markMultiRangeDeletion","document","join","hasAttribute","differ","deletion","span","detach","getCellLocation","TableUtils","cell","ELEMENT_TABLE_COLUMN","tableCell","oldRange","registerCustomCallback","_suggestionFactory","mapper","removeClass","removeTableColumn","commands","ELEMENT_TABLE_ROW","isIntersectingWithRange","type","createRangeOn","downcastDispatcher","substr","MIN_SAFE_INTEGER","tableColumn","data","item","execute","registerPostFixer","getRanges","getFirstRange","insertTableColumnRight","filter","markMultiRangeInsertion","addRange","above","getContainedElement","getChanges","writer","element","getRowIndexes","table","from","some","$graveyard","_getCoordsForCells","findAncestor","name","subType","createTableWalker","addMarker:suggestion","options","_getSuggestionCoords","*Insert:* %0","add","accept","length","editor","selection","nodeAfter","isTouching","ELEMENT_TABLE_ROW_WITH_TEXT","_setupColumnsRowsFixing","plugins","model","has","isArray","ELEMENT_TABLE_COLUMN_WITH_TEXT","enqueueChange","$textProxy","refresh","removeTableRow","_tableSuggestions","root","tableRow","classes","push","rowspan","getItems","_acceptFormatSuggestionCallbackFactory","TrackChangesEditing","_tablePostFixingSubtypes","ELEMENT_TABLE_WITH_TEXT","minRow","start","insertTableColumnLeft","*Remove:* %0","getChildren","toViewElement","getChangedMarkers","ELEMENT_TABLE","order","_descriptionFactory","enableCommand","get","min","highest","colspan","insertTableRowBelow","forceValue","getAttribute","last","addClass","tablePaste","isEqual","registerDescriptionCallback","suggestion","map","afterInit","toLowerCase","low","maxRow","rootName","values","end","getSelectionAffectedTableCells","fromRange","getSuggestion"];var Gx,Vx;Gx=jx,Vx=486,function(t){for(;--t;)Gx.push(Gx.shift())}(++Vx);const Hx=function(t,e){return jx[t-=0]};class zx extends t.Plugin{constructor(t){super(t),this[Hx("0x7f")]=[Hx("0x78"),"tableColumn"],this[Hx("0x76")]=new Set}[Hx("0x18")](){const t=this.editor,e=t[Hx("0x6e")].document.selection;if(!t[Hx("0x6d")][Hx("0x6f")]("TableEditing"))return;const n=t[Hx("0x23")],o=t[Hx("0x6d")].get(Hx("0x7e")),r=t[Hx("0x6d")][Hx("0xa")](Hx("0x34"));o[Hx("0x8")].registerElementLabel(Hx("0x57"),(t=>Jo(n,Hx("0x6"),t))),this[Hx("0x6c")](),o[Hx("0x9")]("insertTable"),o[Hx("0x9")]("selectTableRow"),o[Hx("0x9")]("selectTableColumn");for(const n of["insertTableRowAbove",Hx("0xe")]){const i=t[Hx("0x3e")].get(n);o[Hx("0x9")](n,(n=>{t.model[Hx("0x28")]((t=>{n();const s=Hx("0x51")===i.order,x=r[Hx("0x1f")](e),a=r[Hx("0x56")](x),c=s?a.first-1:a[Hx("0x11")]+1,l=x[0][Hx("0x5c")](Hx("0x57")),u=r[Hx("0x5f")](l,{startRow:c,endRow:c}),d=Array[Hx("0x58")](u)[Hx("0x17")]((e=>t[Hx("0x42")](e[Hx("0x35")])));o[Hx("0x4f")](d,"tableRow")}))}))}for(const n of[Hx("0x1"),Hx("0x4d")]){const i=t.commands[Hx("0xa")](n);o[Hx("0x9")](n,(n=>{t[Hx("0x6e")][Hx("0x28")]((t=>{n();const s="left"===i[Hx("0x7")],x=r[Hx("0x1f")](e),a=r.getColumnIndexes(x),c=s?a.first-1:a[Hx("0x11")]+1,l=x[0][Hx("0x5c")](Hx("0x57")),u=r[Hx("0x5f")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array.from(u).map((e=>t[Hx("0x42")](e[Hx("0x35")])));o.markMultiRangeInsertion(d,"tableColumn")}))}))}for(const n of[Hx("0x75"),Hx("0x3d")]){const i=n[Hx("0x44")](11),s=i[Hx("0x19")](),x=s[Hx("0x44")](0,3)+"span",a=Hx("0x57")+i,c="min"+i,l="max"+i;o[Hx("0x9")](n,(()=>{t[Hx("0x6e")][Hx("0x28")]((t=>{const i=r[Hx("0x1f")](e),u=i[0][Hx("0x5c")](Hx("0x57"));let d;if(Hx("0x75")==n){const t=r[Hx("0x56")](i);d={startRow:t[Hx("0x2a")],endRow:t[Hx("0x11")],includeAllSlots:!0}}else{const t=r.getColumnIndexes(i);d={startColumn:t[Hx("0x2a")],endColumn:t[Hx("0x11")],includeAllSlots:!0}}const g=r[Hx("0x5f")](u,d),f=Array[Hx("0x58")](g)[Hx("0x17")]((({cell:t})=>t)),m=Wx(f[Hx("0x4e")]((t=>t.hasAttribute(x)))),h=Wx(f.filter((t=>!t[Hx("0x2e")](x))))[Hx("0x17")]((e=>t[Hx("0x42")](e))),b=o[Hx("0x2b")](h,a);if(b&&(Hx("0x78")==b[Hx("0x5e")]||Hx("0x46")==b[Hx("0x5e")])){const e=this[Hx("0x62")](b);for(const n of m){const o=t[Hx("0x42")](n),i=r[Hx("0x33")](n),a=n[Hx("0x10")](x)-1,u=e[c],d=e[l];u<=i[s]&&i[s]+a<=d&&b.addRange(o)}}}))}))}function i(n){const o=Array[Hx("0x58")](e[Hx("0x4b")]()).map((t=>s.LiveRange[Hx("0x20")](t)));t[Hx("0x6e")][Hx("0x28")]((e=>{const r=e.batch;n=n[Hx("0x4e")]((t=>Hx("0x5a")!=t.root.rootName)),e[Hx("0x22")](n),t[Hx("0x3e")].get(Hx("0x75")).refresh(),t.execute("removeTableRow",{forceDefaultExecution:!0}),t[Hx("0x6e")].enqueueChange((()=>{t[Hx("0x6e")][Hx("0x72")](r,(t=>{const e=o[Hx("0x4e")]((t=>Hx("0x5a")!=t[Hx("0x77")].rootName));e[Hx("0x66")]>0&&t[Hx("0x22")](e);for(const t of o)t[Hx("0x32")]()}))}))}))}function a(n){t[Hx("0x6e")][Hx("0x28")]((o=>{const r=Array[Hx("0x58")](e[Hx("0x4b")]())[Hx("0x17")]((t=>s.LiveRange[Hx("0x20")](t))),i=[];for(const t of n)for(const e of t.getItems({shallow:!0}))i.push(e);for(const e of i)Hx("0x5a")!=e[Hx("0x77")][Hx("0x1c")]&&(o.setSelection(o[Hx("0x25")](e,0)),t[Hx("0x3e")][Hx("0xa")](Hx("0x3d"))[Hx("0x74")](),t[Hx("0x49")](Hx("0x3d"),{forceDefaultExecution:!0}));const x=r[Hx("0x4e")]((t=>"$graveyard"!=t.root.rootName));x.length>0&&o[Hx("0x22")](x);for(const t of r)t[Hx("0x32")]()}))}function c(t,e){return e.every((e=>t[Hx("0x59")]((t=>t[Hx("0x1e")][Hx("0x14")](e[Hx("0x0")])||e.end.isEqual(t[Hx("0x0")])))))}function l(t,e){return t[Hx("0x59")]((t=>e[Hx("0x59")]((e=>t.end[Hx("0x6a")](e[Hx("0x0")])))))}t[Hx("0x47")][Hx("0x43")].on(Hx("0x60"),((t,e,n)=>{if(!n[Hx("0x61")].showSuggestionHighlights)return;const o=e[Hx("0x48")];if(!o)return;const r=n[Hx("0x3b")][Hx("0x4")](o);function i(t){return Array[Hx("0x70")](t)?t:[t]}r&&"tableCell"===o[Hx("0x5d")]&&(0,x.setHighlightHandling)(r,n[Hx("0x54")],((t,e,n)=>n[Hx("0x12")](i(e[Hx("0x79")]),t)),((t,e,n)=>n[Hx("0x3c")](i(e[Hx("0x79")]),t)))}),{priority:Hx("0xc")}),o[Hx("0x8")][Hx("0x15")]((t=>{if("insertion"!=t[Hx("0x41")]&&Hx("0x30")!=t[Hx("0x41")])return;const e=t[Hx("0x52")]();if(null!=e&&e.is(Hx("0x55"),"table")){if("insertion"==t.type){const e=t[Hx("0x7c")]()[Hx("0x4e")]((t=>t.is("$textProxy")))[Hx("0x17")]((t=>t[Hx("0x47")]));if(e.length)return{type:Hx("0x26"),content:Jo(n,"*Insert:* %0",Jo(n,Hx("0x80"),'"'+e[Hx("0x2d")](" ")+'"'))}}if(Hx("0x30")==t.type){const e=t[Hx("0x7c")]().filter((t=>t.is(Hx("0x73"))))[Hx("0x17")]((t=>t[Hx("0x47")]));if(e[Hx("0x66")])return{type:Hx("0x30"),content:Jo(n,Hx("0x2"),Jo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[Hx("0x2d")](" ")+'"'))}}}})),o._descriptionFactory[Hx("0x15")]((t=>{if("tableRow"==t.subType){const e=t[Hx("0x7c")]().filter((t=>t.is(Hx("0x73"))))[Hx("0x17")]((t=>t.data)),o=this[Hx("0x62")](t),r=o[Hx("0x1b")]-o[Hx("0x81")]+1;if(Hx("0x26")==t[Hx("0x41")])return e.length?{type:Hx("0x26"),content:Jo(n,"*Insert:* %0",Jo(n,Hx("0x6b"),[r,'"'+e[Hx("0x2d")](" ")+'"']))}:{type:Hx("0x26"),content:Jo(n,Hx("0x63"),Jo(n,"ELEMENT_TABLE_ROW",r))};if("deletion"==t[Hx("0x41")])return e[Hx("0x66")]?{type:"deletion",content:Jo(n,Hx("0x2"),Jo(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[r,'"'+e[Hx("0x2d")](" ")+'"']))}:{type:Hx("0x30"),content:Jo(n,Hx("0x2"),Jo(n,Hx("0x3f"),r))}}if("tableColumn"==t.subType){const e=t[Hx("0x7c")]().filter((t=>t.is("$textProxy")))[Hx("0x17")]((t=>t[Hx("0x47")])),o=this[Hx("0x62")](t),r=o.maxColumn-o.minColumn+1;if(Hx("0x26")==t[Hx("0x41")])return e.length?{type:Hx("0x26"),content:Jo(n,Hx("0x63"),Jo(n,Hx("0x71"),[r,'"'+e[Hx("0x2d")](" ")+'"']))}:{type:Hx("0x26"),content:Jo(n,Hx("0x63"),Jo(n,"ELEMENT_TABLE_COLUMN",r))};if(Hx("0x30")==t[Hx("0x41")])return e.length?{type:Hx("0x30"),content:Jo(n,Hx("0x2"),Jo(n,Hx("0x71"),[r,'"'+e[Hx("0x2d")](" ")+'"']))}:{type:Hx("0x30"),content:Jo(n,Hx("0x2"),Jo(n,Hx("0x36"),r))}}})),o[Hx("0x3a")].registerCustomCallback("insertion",Hx("0x78"),"discard",i),o._suggestionFactory.registerCustomCallback("deletion",Hx("0x78"),Hx("0x65"),i),o._suggestionFactory[Hx("0x39")]("insertion","tableColumn","discard",a),o[Hx("0x3a")].registerCustomCallback(Hx("0x30"),Hx("0x46"),Hx("0x65"),a),o[Hx("0x3a")].registerCustomCallback(Hx("0x26"),Hx("0x46"),Hx("0x2d"),c),o[Hx("0x3a")].registerCustomCallback(Hx("0x30"),Hx("0x46"),"join",c),o[Hx("0x3a")][Hx("0x39")](Hx("0x26"),Hx("0x78"),Hx("0x2d"),l),o[Hx("0x3a")][Hx("0x39")]("deletion","tableRow",Hx("0x2d"),l)}[Hx("0x7d")](){const t=this[Hx("0x67")],e=t[Hx("0x6e")][Hx("0x2c")][Hx("0x68")];return(n,o)=>{t[Hx("0x6e")][Hx("0x28")]((r=>{const{commandName:i,commandParams:x}=o;let a=n[0][Hx("0x1e")].nodeBefore;x&&x[0]&&!1===x[0][Hx("0xf")]&&(a=n[0][Hx("0x0")].nodeAfter);const c=r.createRangeIn(a);if(Hx("0x5a")==c[Hx("0x77")].rootName)return;const l=Array[Hx("0x58")](e[Hx("0x4b")]())[Hx("0x17")]((t=>s.LiveRange[Hx("0x20")](t)));r[Hx("0x22")](c),t[Hx("0x3e")][Hx("0xa")](i)[Hx("0x74")](),x[Hx("0x7a")]({forceDefaultExecution:!0}),t[Hx("0x49")](i,...x);const u=l[Hx("0x4e")]((t=>Hx("0x5a")!=t.root[Hx("0x1c")]));u[Hx("0x66")]>0&&r[Hx("0x22")](u);for(const t of l)t[Hx("0x32")]()}))}}[Hx("0x5b")](t){const e=this.editor[Hx("0x6d")].get(Hx("0x34"));let n=Number.MAX_SAFE_INTEGER,o=Number[Hx("0x45")],r=Number.MAX_SAFE_INTEGER,i=Number.MIN_SAFE_INTEGER;for(const s of t){if(Hx("0x5a")==s[Hx("0x77")].rootName)continue;const{row:t,column:x}=e[Hx("0x33")](s),a=s[Hx("0x2e")](Hx("0x7b"))?s[Hx("0x10")]("rowspan")-1:0,c=s[Hx("0x2e")](Hx("0xd"))?s.getAttribute(Hx("0xd"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,r=x<r?x:r,i=x+c>i?x+c:i}return{minRow:n,maxRow:o,minColumn:r,maxColumn:i}}_setupColumnsRowsFixing(){const t=this[Hx("0x67")],e=t[Hx("0x6d")][Hx("0xa")](Hx("0x7e")),n=t.plugins[Hx("0xa")](Hx("0x34"));t[Hx("0x6e")][Hx("0x2c")].on(Hx("0x29"),(()=>{const n=Array[Hx("0x58")](t[Hx("0x6e")].document[Hx("0x2f")][Hx("0x5")]());for(const{name:t,data:o}of n){const{group:n,id:r,subType:i}=e._splitMarkerName(t);if(Hx("0x16")!=n)continue;if(null!=o[Hx("0x38")])continue;const s=e[Hx("0x21")](r);this[Hx("0x7f")].includes(i)&&this[Hx("0x76")][Hx("0x64")](s)}}),{priority:Hx("0x1a")});const o=(t,e)=>{let o=!1;const r=e[Hx("0x42")](t),i=t[Hx("0x5c")](Hx("0x57")),s=n[Hx("0x33")](t);for(const e of this._tableSuggestions){const n=e.subType,x=n.startsWith(Hx("0x13")),a=n[Hx("0x44")](x?10:5),c=a[Hx("0x19")](),l=c.substr(0,3)+Hx("0x31"),u=Hx("0xb")+a,d=Hx("0x24")+a;if(!e.isInContent)continue;if(i!=e[Hx("0x4c")]().start.findAncestor(Hx("0x57")))continue;if(e[Hx("0x40")](r))continue;const g=t[Hx("0x2e")](l)?t[Hx("0x10")](l)-1:0,f=this[Hx("0x62")](e),m=f[u],h=f[d];m<=s[c]&&s[c]+g<=h&&(e[Hx("0x50")](r),o=!0)}return o};t[Hx("0x6e")][Hx("0x2c")][Hx("0x4a")]((e=>{let n=!1;for(const r of t.model[Hx("0x2c")].differ[Hx("0x53")]())if(Hx("0x27")==r.type)if("tableRow"==r[Hx("0x5d")])for(const t of r.position[Hx("0x69")][Hx("0x3")]())n=n||o(t,e);else Hx("0x37")==r.name&&(n=n||o(r.position[Hx("0x69")],e));return n}))}_getSuggestionCoords(t){return this[Hx("0x5b")](t.getRanges()[Hx("0x17")]((t=>t[Hx("0x0")][Hx("0x69")])))}}function Wx(t){return Array[Hx("0x58")](new Set(t)[Hx("0x1d")]())}const Kx=["cell","splitTableCellHorizontally","getRanges","tableCell","formatInline","getAncestors","accept","from","_acceptFormatSuggestionCallbackFactory","_descriptionFactory","find","getCellLocation","getFirstPosition","has","enableCommand","mergeTableCellUp","*Split cell:* horizontally","*Merge cells*","length","isEnabled","stop","splitTableCellVertically","formatBlock","findAncestor","commandName","commands","refresh","size","insertion","detach","createRangeOn","registerCustomCallback","mergeTableCells","horizontally","model","highest","TableUtils","markMultiRangeBlockFormat","document","_suggestionFactory","*Split cell:* vertically","containsRange","element","trackChanges","locale","low","mergeTableCellDown","format","getSuggestions","subType","value","getSelectionAffectedTableCells","author","mergeTableCellRight","TableEditing","selection","afterInit","direction","add","push","createTableWalker","return","isInContent","registerDescriptionCallback","_areSelectedCellsMergable","change","rootName","plugins","deletion","TrackChangesEditing","_areMergableCells","editor","requires","get","forceDefaultExecution","filter","type","setSelection","fromRange","map","mergeTableCellLeft"];var qx,Xx;qx=Kx,Xx=237,function(t){for(;--t;)qx.push(qx.shift())}(++Xx);const $x=function(t,e){return Kx[t-=0]};class Zx extends t.Plugin{static get[$x("0x4e")](){return[zx]}[$x("0x3e")](){const t=this[$x("0x4d")],e=t[$x("0x28")][$x("0x2c")][$x("0x3d")],n=t[$x("0x32")];if(!t[$x("0x49")][$x("0x13")]($x("0x3c")))return;const o=t[$x("0x49")].get($x("0x4b")),r=t[$x("0x49")].get($x("0x2a")),i=t[$x("0x49")][$x("0x4f")](zx);i._tablePostFixingSubtypes[$x("0x41")]($x("0x26")),o[$x("0x14")]($x("0x26"),(()=>{const e=r[$x("0x39")](t[$x("0x28")][$x("0x2c")][$x("0x3d")]);t.model[$x("0x47")]((()=>{o[$x("0x2b")](e,{commandName:$x("0x26"),commandParams:[]},[],$x("0x26"))}))})),t[$x("0x1f")][$x("0x4f")]("mergeTableCells").on("execute",((e,n)=>{t[$x("0x1f")][$x("0x4f")]($x("0x31"))[$x("0x38")]&&(n[$x("0x18")]>0&&n[n[$x("0x18")]-1]&&n[n[$x("0x18")]-1][$x("0x50")]||o._isForcedDefaultExecutionBlock||this[$x("0x46")]()||e[$x("0x1a")]())}),{priority:$x("0x29")});for(const e of[$x("0x15"),$x("0x3b"),$x("0x34"),$x("0x5")]){const n=t.commands[$x("0x4f")](e);o[$x("0x14")](e,(()=>{const e=t.model[$x("0x2c")][$x("0x3d")].getFirstPosition()[$x("0xb")]()[$x("0x10")]((t=>t.is($x("0x30"),$x("0x9")))),r=n.value;t[$x("0x28")][$x("0x47")]((()=>{o[$x("0x2b")]([e,r],{commandName:$x("0x26"),commandParams:[]},[],$x("0x26"))}))}))}for(const e of["splitTableCellVertically",$x("0x7")]){const n=t[$x("0x1f")][$x("0x4f")](e);o[$x("0x14")](e,(()=>{const i=r[$x("0x39")](t[$x("0x28")][$x("0x2c")].selection)[0],s=i[$x("0x1d")]("table"),{column:x,row:a}=r[$x("0x11")](i);let c=[];if($x("0x27")==n[$x("0x3f")]){const t=r.createTableWalker(s,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[$x("0xd")](t)[$x("0x4")]((t=>t.cell))}else{const t=r[$x("0x42")](s,{column:x,includeAllSlots:!0});c=Array[$x("0xd")](t).map((t=>t[$x("0x6")]))}t[$x("0x28")][$x("0x47")]((t=>{o.markBlockFormat(t[$x("0x24")](i),{commandName:e,commandParams:[]},c,e)}))}))}o[$x("0xf")][$x("0x45")]((t=>{if($x("0x1c")!=t.type&&$x("0xa")!=t[$x("0x1")])return;const{data:e}=t;return e&&$x("0x26")==e.commandName?{type:"format",content:Jo(n,$x("0x17"))}:void 0})),o[$x("0xf")][$x("0x45")]((t=>{if($x("0x1c")!=t.type&&$x("0xa")!=t.type)return;const{data:e}=t;return e?$x("0x1b")==e.commandName?{type:"format",content:Jo(n,$x("0x2e"))}:"splitTableCellHorizontally"==e[$x("0x1e")]?{type:$x("0x35"),content:Jo(n,$x("0x16"))}:void 0:void 0}));const x=i[$x("0xe")]();for(const t of[$x("0x15"),$x("0x3b"),"mergeTableCellDown",$x("0x5")])o[$x("0x2d")][$x("0x25")]($x("0x1c"),t,$x("0xc"),x);for(const t of[$x("0x1b"),$x("0x7")])o[$x("0x2d")][$x("0x25")]($x("0x1c"),t,$x("0xc"),x);o[$x("0x2d")].registerCustomCallback("formatBlock",$x("0x26"),$x("0xc"),(n=>{t[$x("0x28")].change((o=>{const r=Array[$x("0xd")](e[$x("0x8")]())[$x("0x4")]((t=>s.LiveRange[$x("0x3")](t)));o[$x("0x2")](n),t.commands[$x("0x4f")]($x("0x26"))[$x("0x20")](),t.execute($x("0x26"),{forceDefaultExecution:!0});const i=r[$x("0x0")]((t=>"$graveyard"!=t.root[$x("0x48")]));i[$x("0x18")]>0&&o.setSelection(i);for(const t of r)t[$x("0x23")]()}))}));for(const e of[$x("0x15"),$x("0x34"),$x("0x5"),$x("0x3b")]){const n=t[$x("0x1f")][$x("0x4f")](e);n.on("set:isEnabled",((e,o,r)=>{if(r){const o=t.model[$x("0x2c")][$x("0x3d")][$x("0x12")]()[$x("0xb")]().find((t=>t.is($x("0x30"),$x("0x9"))));this[$x("0x4c")](n.value,o)||(e[$x("0x43")]=!1,e.stop())}}),{priority:$x("0x33")})}}_areSelectedCellsMergable(){const t=this[$x("0x4d")][$x("0x1f")][$x("0x4f")]($x("0x26")),e=this.editor[$x("0x49")][$x("0x4f")]("TableUtils");if(!t[$x("0x19")])return!1;const n=e[$x("0x39")](this[$x("0x4d")][$x("0x28")][$x("0x2c")].selection);for(const t of n)for(const e of n)if(t!=e&&!this[$x("0x4c")](t,e))return!1;return!0}[$x("0x4c")](t,e){const n=this[$x("0x4d")][$x("0x49")][$x("0x4f")]($x("0x4b")),o=this[$x("0x4d")][$x("0x28")][$x("0x24")](t),r=this.editor[$x("0x28")][$x("0x24")](e),i=new Set,s=new Set;for(const t of n[$x("0x36")]())if(($x("0x22")==t[$x("0x1")]||$x("0x4a")==t.type||$x("0x26")==t[$x("0x37")])&&t[$x("0x44")])for(const e of t.getRanges())e[$x("0x2f")](o,!0)&&i[$x("0x40")](t[$x("0x1")]+":"+t.author.id),e[$x("0x2f")](r,!0)&&s[$x("0x40")](t.type+":"+t[$x("0x3a")].id);if(i[$x("0x21")]!=s.size)return!1;for(const t of i)if(!s[$x("0x13")](t))return!1;return!0}}const Qx=["activeMarkers","setTableColumnHeader","mapper","parent","forceValue","_splitMarkerName","markerRange","headingRows","editor","data","showSuggestionHighlights","registerCustomCallback","createTableWalker","setAttribute","TableUtils","get","data-suggestion","ck-suggestion-marker-","nodeBefore","editing","requires","locale","downcastDispatcher","name","unbindElementFromMarkerName","writer","headingColumns","removeMarker:suggestion","getCellLocation","consumable","markerName","registerDescriptionCallback","setTableRowHeader","addMarker:suggestion","bindElementToMarker","accept","removeClass","start","options","FORMAT_REGULAR_ROW","consume","format","toViewElement","has","type","formatBlock","_suggestionFactory","FORMAT_HEADER_ROW","_handleLegacySuggestions","addClass","commandParams","item","_acceptFormatSuggestionCallbackFactory","includes","*Format:* %0","ck-suggestion-marker--active","registerAttributeLabel","_registerLegacyDescription","afterInit","markerNameToElements","_descriptionFactory","TrackChangesEditing","plugins","_enableDefaultAttributesIntegration","getSuggestion","FORMAT_HEADER_COLUMN","end","highest","removeAttribute"];var Yx,Jx;Yx=Qx,Jx=323,function(t){for(;--t;)Yx.push(Yx.shift())}(++Jx);const ta=function(t,e){return Qx[t-=0]};class ea extends t.Plugin{static get[ta("0x2a")](){return[zx]}[ta("0xb")](){const t=this[ta("0x1e")];if(!t[ta("0xf")][ta("0x41")]("TableEditing"))return;const e=t[ta("0x2b")],n=t.plugins.get("TrackChangesEditing");n[ta("0x10")](ta("0x36"),[],[ta("0x1d")]),n[ta("0x10")](ta("0x17"),[],[ta("0x30")]),n[ta("0xd")][ta("0x9")](ta("0x1d"),Jo(e,"FORMAT_HEADER_ROW")),n[ta("0xd")][ta("0x9")](ta("0x30"),Jo(e,ta("0x12"))),this[ta("0x1")]()}[ta("0x1")](){const t=this[ta("0x1e")][ta("0xf")][ta("0x25")](ta("0xe")),e=this.editor[ta("0xf")][ta("0x25")](ta("0x24")),n=this.editor[ta("0xf")][ta("0x25")](zx)[ta("0x5")]();function o({showActiveMarker:n=!0,setDataAttribute:o=!0}={}){return(r,i,s)=>{const{type:x,id:a}=t._splitMarkerName(i.markerName),c=t[ta("0x11")](a),l=c[ta("0x1f")];if(ta("0x43")!=c[ta("0x42")]||!l||ta("0x17")!=l.commandName)return;if(i[ta("0x4")])return void r.stop();if(!s[ta("0x33")][ta("0x3e")](i[ta("0x1c")],r[ta("0x2d")]))return;const u=i[ta("0x1c")][ta("0x3b")].nodeAfter,d=i.markerRange[ta("0x13")][ta("0x28")],g=u[ta("0x19")].parent,{column:f}=e[ta("0x32")](u),{column:m}=e[ta("0x32")](d);for(let r=f;r<=m;r++){const c=e[ta("0x22")](g,{column:r,includeAllSlots:!1});for(const e of c){const r=e.cell,c=s[ta("0x18")][ta("0x40")](r);s.writer.addClass(ta("0x27")+x,c),o&&s[ta("0x2f")][ta("0x23")](ta("0x26"),a,c),s[ta("0x18")][ta("0x38")](c,i.markerName),n&&(t[ta("0x16")][ta("0x6")](i[ta("0x34")])?s[ta("0x2f")][ta("0x2")](ta("0x8"),c):s.writer[ta("0x3a")](ta("0x8"),c))}}}}t[ta("0x44")].registerCustomCallback("formatBlock",ta("0x36"),ta("0x39"),n),t[ta("0x44")][ta("0x21")](ta("0x43"),ta("0x17"),ta("0x39"),n),this[ta("0x1e")].editing[ta("0x2c")].on(ta("0x37"),o(),{priority:ta("0x14")}),this[ta("0x1e")][ta("0x1f")][ta("0x2c")].on(ta("0x37"),((t,e,n)=>{n[ta("0x3c")][ta("0x20")]&&o({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:"highest"}),this[ta("0x1e")][ta("0x29")][ta("0x2c")].on(ta("0x31"),((e,n,o)=>{const{type:r,id:i}=t[ta("0x1b")](n[ta("0x34")]),s=t.getSuggestion(i),x=s.data;if(ta("0x43")!=s[ta("0x42")]||!x||ta("0x17")!=x.commandName)return;const a=o[ta("0x18")][ta("0xc")](n[ta("0x34")]);if(a)for(const t of a)o[ta("0x2f")][ta("0x3a")](ta("0x27")+r,t),o[ta("0x2f")][ta("0x3a")](ta("0x8"),t),o[ta("0x2f")][ta("0x15")](ta("0x26"),t),o.mapper[ta("0x2e")](t,n[ta("0x34")])}),{priority:ta("0x14")}),this[ta("0xa")]()}[ta("0xa")](){const t=this[ta("0x1e")],e=t[ta("0x2b")];function n(t){return{type:ta("0x3f"),content:Jo(e,ta("0x7"),t)}}t[ta("0xf")][ta("0x25")](ta("0xe"))[ta("0xd")][ta("0x35")]((t=>{if("formatBlock"!=t.type)return;const{data:o}=t;if(o){if(ta("0x36")==o.commandName){const t=o[ta("0x3")][0].forceValue;return n(Jo(e,ta(t?"0x0":"0x3d")))}if(ta("0x17")==o.commandName){const t=o.commandParams[0][ta("0x1a")];return n(Jo(e,t?ta("0x12"):"FORMAT_REGULAR_COLUMN"))}}}))}}const na=["activeMarkers","editing","markers","findAncestor","suggestion:formatBlock:tablePasteCell","getShiftedBy","removeMarker","removeColumns","register","isEqual","paragraph","formatBlock","get","tablePasteColumn","first","$graveyard","tableCellPadding","tablePasteRow","previousSibling","cells","author","setAttribute","createRangeIn","discard","remove","insertContent","add","registerPostFixer","unwrap","markMultiRangeDeletion","fill","markerToHighlight","change","stop","deletionRanges","locale","every","columns","getChangedMarkers","markMultiRangeInsertion","getRanges","low","endColumn","name","TableClipboard","move","cell","filter","getChanges","has","removeRows","startsWith","TableUtils","tablePasteCell","editor","insertion","getSuggestions","row","isInContent","push","getRows","selection","ck-suggestion-marker-insertion","columnInsertionRanges","createRange","find","insert","trackChanges","value","for","tableCellHorizontalAlignment","batch","listenTo","last","tableCellBorderWidth","setAttributes","_getCoordsForCells","elementToElement","createRangeOn","getAttributes","type","getRowIndexes","registerDescriptionCallback","tableCell","plugins","redo","high","table","set","suggestion-td","element","attributes","oldRange","schema","isEmpty","wrap","getRange","_replaceTableSlotCell","model","length","registerCustomCallback","getTableIfOnlyTableInContent","entries","_createdBatches","endRow","getMarkers","documentSelection","columnInsertionIndexes","updateMarker","tableCellBorderColor","rowInsertionRanges","end","commands","nextSibling","_splitMarkerName","tableCellSuggestion","ck-suggestion-marker--active","deletion","column","createTableWalker","previous","containsRange","next","getAllAdjacentSuggestions","showSuggestionHighlights","insertionRanges","fromEntries","markerAttributes","insertColumns","subType","document","join","options","newRange","return","tableCellVerticalAlignment","forceDefaultExecution","content","differ","position","dataDowncast","rowInsertionIndexes","markerName","_suggestionFactory","getItems","tablePasteChainId","TrackChangesEditing","createElement","accept","getSuggestion","rootName","tablePaste","map","_isForcedDefaultExecutionBlock","from","Users","getContainedElement","afterInit","conversion","clipboardOutput","start","_tablePostFixingSubtypes","includes","getChild","nodeAfter","editingDowncast"];var oa,ra;oa=na,ra=451,function(t){for(;--t;)oa.push(oa.shift())}(++ra);const ia=function(t,e){return na[t-=0]},sa=[ia("0x79"),ia("0x9c"),"tableCellBorderStyle",ia("0x75"),ia("0x10"),"tableCellBackgroundColor",ia("0x3f")],xa=Object[ia("0x7")](sa.map((t=>[t,null])));class aa extends t.Plugin{static get requires(){return[zx]}[ia("0x26")](){const t=this.editor;if(!t[ia("0x83")].has(ia("0x5b")))return;const n=t[ia("0x83")][ia("0x3b")](ia("0x1b")),o=t[ia("0x83")][ia("0x3b")](ia("0x63")),r=t[ia("0x83")][ia("0x3b")](zx),i=t[ia("0x83")][ia("0x3b")](ia("0x5b"));r[ia("0x2a")][ia("0x6a")](ia("0x40"),ia("0x3c")),t[ia("0x91")][ia("0x8c")][ia("0x37")]("tableCellSuggestion",{allowIn:"tableCell",allowContentOf:ia("0x82"),isLimit:!0}),t[ia("0x27")][ia("0x7c")]({model:ia("0xa2"),view:ia("0x88")});let s=null;t[ia("0x91")].on(ia("0x48"),((r,x)=>{const[a,c]=x,l=x[x[ia("0x92")]-1];l&&l[ia("0x11")]||n[ia("0x22")]||this[ia("0x65")][ia("0x9f")][ia("0x3b")](ia("0x72"))[ia("0x73")]&&function(t,e,n,o,r){if(e&&!e.is(ia("0x99")))return!1;const i=r[ia("0x94")](t,n);if(!i||!la(i,void 0,o))return!1;const s=o.getSelectionAffectedTableCells(n.document[ia("0x6c")]);if(!s[ia("0x92")])return!1;const x=s[0][ia("0x32")](ia("0x86")),a=o[ia("0x80")](s),c=o.getColumnIndexes(s),l={startRow:a[ia("0x3d")],endRow:a[ia("0x78")],startColumn:c[ia("0x3d")],endColumn:c[ia("0x78")]};return 1==s[ia("0x92")]&&(l[ia("0x97")]+=o[ia("0x6b")](i)-1,l[ia("0x59")]+=o.getColumns(i)-1),la(x,l,o)}(a,c,t[ia("0x91")],o,i)&&(r[ia("0x50")](),s={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[ia("0x91")][ia("0x4f")]((()=>{t[ia("0x91")][ia("0x48")](x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:r,columnInsertionRanges:i,insertionRanges:a,deletionRanges:c,cells:l}=s;r[ia("0x92")]&&n[ia("0x56")](r,ia("0x40"),{tablePasteChainId:o}),i.length&&n[ia("0x56")](i,ia("0x3c"),{tablePasteChainId:o}),a.length&&n[ia("0x56")](a,ia("0x20"),{tablePasteChainId:o,skipNestingCheck:!0}),c[ia("0x92")]&&n[ia("0x4c")](c,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0});const u=n.markMultiRangeBlockFormat(l[ia("0x21")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],ia("0x64"),{tablePasteChainId:o});if(u){const e=u[ia("0x98")](),n=[];for(const{element:o,attributes:r}of l){if(!r)continue;const i=t.model.createRangeOn(o),s=e[ia("0x70")]((t=>t[ia("0x8f")]().isEqual(i)));s&&n.push([s[ia("0x5a")],r])}n[ia("0x92")]&&u[ia("0x44")](ia("0x8"),Object[ia("0x7")](n))}s=null})))}),{priority:e.priorities[ia("0x85")]+10}),t[ia("0x83")].get(ia("0x5b")).on(ia("0x90"),((t,e)=>{const[n,o,,r]=e;if(!s)return;t[ia("0x50")]();const i=n[ia("0x5d")],x=o,a=ca(i),c=ca(x);t[ia("0xf")]=i;let l=null,u=null;if(c||a)if(a&&!c){r[ia("0x47")](i[ia("0x2c")](0));for(const t of Array[ia("0x23")](x.getChildren()))r.insert(t,i,"end");const t=s[ia("0x16")].includes(n[ia("0x68")]),e=s[ia("0x9a")][ia("0x2b")](n[ia("0xa5")]);t||e||(l=r.createRangeIn(i))}else c&&!a&&(u=r[ia("0x45")](i));else{const t=r[ia("0x1c")](ia("0xa2")),e=r[ia("0x1c")](ia("0xa2"));r[ia("0x8e")](r[ia("0x45")](i),e),r[ia("0x71")](t,i,0);for(const e of Array[ia("0x23")](x.getChildren()))r[ia("0x71")](e,t,ia("0x9e"));l=r[ia("0x7d")](t),u=r[ia("0x7d")](e)}const d=Array[ia("0x23")](x[ia("0x7e")]()).filter((([t])=>sa.includes(t)));s[ia("0x42")][ia("0x6a")]({element:i,attributes:d[ia("0x92")]?Object[ia("0x7")](d):null}),l&&s[ia("0x6")][ia("0x6a")](l),u&&s[ia("0x51")][ia("0x6a")](u)}),{priority:"high"}),o.on(ia("0x9"),((e,n)=>{const[r,i={}]=n;if(!s)return;const x=i.at||0,a=i[ia("0x54")]||1;s[ia("0x9a")]=new Array(a)[ia("0x4d")](x)[ia("0x21")](((t,e)=>t+e));for(const{cell:e}of o[ia("0x0")](r,{startColumn:x,endColumn:x+a-1}))s[ia("0x6e")][ia("0x6a")](t[ia("0x91")][ia("0x7d")](e))}),{priority:ia("0x58")}),o.on("insertRows",((e,n)=>{const[r,i={}]=n;if(!s)return;const x=i.at||0,a=i.rows||1;s.rowInsertionIndexes=new Array(a)[ia("0x4d")](x).map(((t,e)=>t+e));for(const{cell:e}of o[ia("0x0")](r,{startRow:x,endRow:x+a-1}))s[ia("0x9d")].push(t[ia("0x91")][ia("0x7d")](e))}),{priority:"low"}),n._descriptionFactory[ia("0x81")]((e=>{if(e[ia("0xa")]&&e[ia("0xa")][ia("0x62")](ia("0x20")))return e[ia("0x1")]?{}:{type:ia("0x66"),content:Jo(t[ia("0x52")],"*Replace table cells*")}}));const x=()=>!1;for(const t of[ia("0x20"),ia("0x3c"),ia("0x40"),ia("0x64")])n[ia("0x18")][ia("0x93")](ia("0x66"),t,ia("0xc"),x),n[ia("0x18")][ia("0x93")](ia("0xa4"),t,ia("0xc"),x),n[ia("0x18")].registerCustomCallback(ia("0x3a"),t,ia("0xc"),x);n[ia("0x18")][ia("0x93")](ia("0x3a"),ia("0x64"),ia("0x46"),x),n[ia("0x18")][ia("0x93")](ia("0x3a"),ia("0x64"),"accept",((e,n,o)=>{const r=e[ia("0x21")]((t=>t[ia("0x25")]())).filter((t=>t)),i=new Map(r.map((t=>[t,null])));if(s)for(const{element:t,attributes:e}of s[ia("0x42")])e&&i[ia("0x87")](t,e);else if(o&&o.markerAttributes)for(const[e,n]of Object[ia("0x95")](o[ia("0x8")])){const o=t[ia("0x91")][ia("0x31")].get(e),r=o?o[ia("0x8f")]()[ia("0x25")]():null;r&&i.set(r,n)}t[ia("0x91")][ia("0x4f")]((t=>{for(const[e,n]of i)t[ia("0x7a")]({...xa,...n},e)}))}));const a=(e,o)=>{n[ia("0x18")][ia("0x93")](e,ia("0x20"),o,((r,i,s)=>{t[ia("0x91")][ia("0x4f")]((t=>{const x=[];for(const t of r){const e=t[ia("0x29")][ia("0x2d")];e.is("element","tableCellSuggestion")&&x.push(e)}n[ia("0x18")].getSuggestionCallback(e,null,o)(r,i,s);for(const e of x)ia("0x3e")!=e.root[ia("0x1f")]&&t[ia("0x4b")](e)}))}))};a(ia("0x66"),ia("0x1d")),a("insertion",ia("0x46")),a("deletion",ia("0x1d")),a(ia("0xa4"),ia("0x46")),n[ia("0x18")].registerCustomCallback(ia("0x66"),ia("0x40"),"discard",(t=>{const e=t[ia("0x21")]((t=>t[ia("0x25")]())),n=e[0].findAncestor(ia("0x86")),{minRow:i,maxRow:s}=r._getCoordsForCells(e);o[ia("0x61")](n,{at:i,rows:s-i+1})})),n[ia("0x18")][ia("0x93")](ia("0x66"),ia("0x3c"),"discard",(t=>{const e=t[ia("0x21")]((t=>t[ia("0x25")]())),n=e[0].findAncestor(ia("0x86")),{minColumn:i,maxColumn:s}=r[ia("0x7b")](e);o[ia("0x36")](n,{at:i,columns:s-i+1})}));const c=(t,e)=>{if(!e[ia("0xa")]||!e[ia("0xa")][ia("0x62")](ia("0x20")))return;const o=e[ia("0x8a")][ia("0x1a")],r=n[ia("0x67")]()[ia("0x5e")]((t=>t[ia("0x69")]&&t[ia("0x8a")]&&t[ia("0x8a")][ia("0x1a")]==o));r.length&&e.getAllAdjacentSuggestions()[ia("0x92")]!=r[ia("0x92")]&&r.reduce(((t,e)=>(t[ia("0x3")]=e,e.previous=t,e)))};function l(t,e=!0){const{id:o}=n[ia("0xa1")](t[ia("0x17")]),r=["ck-suggestion-marker",ia("0x6d")],i=n[ia("0x2f")].includes(t[ia("0x17")]);return i&&r[ia("0x6a")](ia("0xa3")),{classes:r,attributes:{"data-suggestion":o},priority:i&&e?3010:3e3}}n.on("suggestionLoaded",c,{priority:"high"}),n.on("suggestionUnloaded",c,{priority:ia("0x85")}),t[ia("0x91")][ia("0xb")][ia("0x4a")]((()=>{let e=!1;const o=Array.from(t[ia("0x91")][ia("0xb")].differ[ia("0x55")]());for(const{name:r,data:i}of o){const{group:o,type:s,id:x}=n[ia("0xa1")](r);if("suggestion"!=o||ia("0xa4")!=s||i[ia("0x8b")])continue;if(!n.hasSuggestion(x))continue;const a=n[ia("0x1e")](x)[ia("0x57")](),c=t[ia("0x83")][ia("0x3b")](ia("0x24")).me;for(const t of n.getSuggestions())if(t.isInContent&&t[ia("0x43")]==c&&ia("0x3a")==t.type&&ia("0x64")==t[ia("0xa")]&&t[ia("0x57")]()[ia("0x53")]((t=>a.some((e=>e[ia("0x2")](t,!0))))))for(const n of t[ia("0x4")]())n[ia("0x69")]&&(n[ia("0x46")](),e=!0)}return e})),t[ia("0x91")].document[ia("0x4a")]((e=>{const o=t[ia("0x9f")][ia("0x3b")](ia("0x84"));if(!o||!o[ia("0x96")][ia("0x60")](e[ia("0x76")]))return!1;let r=!1;const i=t.plugins[ia("0x3b")](ia("0x24")).me,s=t[ia("0x91")][ia("0xb")][ia("0x13")][ia("0x5f")](),x=Array.from(t.model[ia("0xb")][ia("0x13")][ia("0x55")]()).filter((({name:t,data:e})=>{const{group:o,subType:r,authorId:s}=n._splitMarkerName(t);return"suggestion"==o&&ia("0x20")==r&&s==i.id&&!e.oldRange}));for(const t of s){if(ia("0x71")!=t[ia("0x7f")]||ia("0xa2")!=t[ia("0x5a")]||1!=t[ia("0x92")])continue;const n=e[ia("0x6f")](t.position,t[ia("0x14")][ia("0x34")](1));if(!x[ia("0x70")]((({data:t})=>t.newRange[ia("0x38")](n))))for(const{name:t,data:o}of x)if(n[ia("0x2")](o[ia("0xe")])){e[ia("0x9b")](t,{range:n}),r=!0;break}}return r})),t[ia("0x91")][ia("0xb")][ia("0x4a")]((e=>{let o=!1;const r=t[ia("0x83")][ia("0x3b")](ia("0x24")).me,i=n[ia("0x67")]().filter((t=>t[ia("0x69")]&&t[ia("0x43")]==r)),s=new Set,x=new Set;for(const t of i)if(ia("0x20")==t[ia("0xa")])for(const e of t[ia("0x98")]()){const n=e[ia("0x8f")]()[ia("0x25")]();if(n)if(n.is(ia("0x89"),ia("0xa2"))&&ca(n)){t[ia("0x35")](e[ia("0x5a")]),s.add(n),o=!0;const r=n[ia("0xa0")],i=n[ia("0x41")],a=r&&r.is(ia("0x89"),ia("0xa2")),c=i&&i.is(ia("0x89"),ia("0xa2"));a&&!s.has(r)&&x[ia("0x49")](r),c&&!s.has(i)&&x[ia("0x49")](i)}else n.is(ia("0x89"),"paragraph")&&n[ia("0x8d")]&&(t.removeMarker(e[ia("0x5a")]),o=!0)}else if(ia("0x64")==t[ia("0xa")]){if(!t[ia("0x8a")]||!t[ia("0x8a")].tablePasteChainId)continue;const e=t[ia("0x8a")][ia("0x8")];if(e&&Object.keys(e)[ia("0x92")])continue;const n=t[ia("0x8a")].tablePasteChainId;let r=!0,s=!0;for(const e of i)if(e[ia("0xa")]&&e[ia("0xa")][ia("0x62")](ia("0x20"))){if(!e[ia("0x8a")].tablePasteChainId){s=!1;break}if(e.id!=t.id&&e.attributes.tablePasteChainId==n){r=!1;break}}s&&r&&(t.removeMarkers(),o=!0)}for(const t of s)e.remove(t);for(const t of x)e.unwrap(t);return o})),t[ia("0x27")].for(ia("0x2e"))[ia("0x4e")]({model:ia("0x33"),view:(t,e)=>l(t),converterPriority:"high"}),t[ia("0x27")][ia("0x74")](ia("0x15")).markerToHighlight({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>e[ia("0xd")][ia("0x5")]?l(t,!1):null,converterPriority:ia("0x85")});const u=t[ia("0x30")].view;this[ia("0x77")](u.document,ia("0x28"),((t,e)=>{const n=[];for(const t of u[ia("0x45")](e[ia("0x12")])[ia("0x19")]())t.is("element",ia("0x88"))&&n[ia("0x6a")](t);u[ia("0x4f")]((t=>{for(const e of n)t[ia("0x5c")](t[ia("0x45")](e),t.createPositionBefore(e)),t[ia("0x47")](e)}))}))}}function ca(t){if(t[ia("0x8d")])return!0;const e=t.getChild(0);return e.is(ia("0x89"),ia("0x39"))&&e[ia("0x8d")]}function la(t,e={},n){for(const{isAnchor:o,cellHeight:r,cellWidth:i}of n[ia("0x0")](t,{includeAllSlots:!0,...e}))if(!o||1!=r||1!=i)return!1;return!0}const ua=["*Format:* resize table","TableColumnResizeEditing","afterInit","formatInline","plugins","discard","getContainedElement","commandParams","registerDescriptionCallback","resizeTable","formatBlock","format","registerCustomCallback","has","formatGroupId","bind","Users","subType","type","change","getColumnGroupElement","accept","getSuggestionCallback","markBlockFormat","editor","tableWidth","data","resizeTableWidth","getTableColumnsWidths","columnWidths","table","get","selection","handleResizeTableWidthCommand","_suggestionFactory","getSelectedElement","enableCommand","document","_descriptionFactory"];var da,ga;da=ua,ga=185,function(t){for(;--t;)da.push(da.shift())}(++ga);const fa=function(t,e){return ua[t-=0]};class ma extends t.Plugin{[fa("0xc")](){if(!this[fa("0x22")][fa("0xe")][fa("0x17")](fa("0xb")))return;const t=this[fa("0x22")][fa("0xe")][fa("0x2")]("TrackChangesEditing");t[fa("0x7")](fa("0x25"),this[fa("0x4")][fa("0x19")](this)),t[fa("0x5")][fa("0x16")]("formatBlock","resizeTable",fa("0x1f"),t._suggestionFactory[fa("0x20")](fa("0x14"),null,fa("0xf"))),t[fa("0x5")][fa("0x16")](fa("0x14"),fa("0x13"),fa("0xf"),t._suggestionFactory.getSuggestionCallback(fa("0x14"),null,fa("0x1f"))),t[fa("0x9")][fa("0x12")](this.handleSuggestionDescription[fa("0x19")](this))}[fa("0x4")](t,e){const n=this.editor[fa("0xe")][fa("0x2")]("TrackChangesEditing"),o=this[fa("0x22")][fa("0xe")][fa("0x2")](fa("0xb")),r=e[fa("0x1")]||this[fa("0x22")].model[fa("0x8")][fa("0x3")][fa("0x6")]();this[fa("0x22")].model[fa("0x1d")]((()=>{const i=o[fa("0x1e")](r);let s=i?o[fa("0x26")](i):null,x=r.getAttribute("tableWidth")||null;const a=e[fa("0x23")]||x,c=e[fa("0x0")]||s,l=this[fa("0x22")][fa("0xe")][fa("0x2")](fa("0x1a")).me;for(const t of n.getSuggestions()){const e=t[fa("0x10")]();if(fa("0x13")===t[fa("0x1b")]&&e===r){t.author!==l&&t.discard();const e=t[fa("0x24")][fa("0x11")];x=e[0][fa("0x23")],s=e[0][fa("0x0")];break}}t({table:r,tableWidth:a,columnWidths:c}),n[fa("0x21")](r,{commandName:fa("0x25"),commandParams:[{tableWidth:x,columnWidths:s}],formatGroupId:"resizeTable"},[],fa("0x13"))}))}handleSuggestionDescription(t){if("formatBlock"!=t.type&&fa("0xd")!=t[fa("0x1c")])return;const{data:e}=t;if(e&&fa("0x13")===e[fa("0x18")]){const t=fa("0xa");return{type:fa("0x15"),content:Jo(this[fa("0x22")].locale,t)}}}}const ha=["enableCommand","has","get","Template","TrackChangesEditing","afterInit","insertTemplate"];var ba,pa;ba=ha,pa=481,function(t){for(;--t;)ba.push(ba.shift())}(++pa);const Ea=function(t,e){return ha[t-=0]};class _a extends t.Plugin{[Ea("0x0")](){const t=this.editor;t.plugins[Ea("0x3")](Ea("0x5"))&&t.plugins[Ea("0x4")](Ea("0x6"))[Ea("0x2")](Ea("0x1"))}}const Ta=["tableOfContents","enableCommand","locale","registerElementLabel","afterInit","commands","TrackChangesEditing","get","insertTableOfContents"];var ya,Ca;ya=Ta,Ca=378,function(t){for(;--t;)ya.push(ya.shift())}(++Ca);const Aa=function(t,e){return Ta[t-=0]};class ka extends t.Plugin{[Aa("0x4")](){const t=this.editor;if(!t[Aa("0x5")][Aa("0x7")](Aa("0x8")))return;t.plugins[Aa("0x7")]("TrackChangesEditing")[Aa("0x1")](Aa("0x8"));const e=t.plugins.get(Aa("0x6")),n=t[Aa("0x2")];e._descriptionFactory[Aa("0x3")](Aa("0x0"),(t=>Jo(n,"ELEMENT_TABLE_OF_CONTENTS",t)))}}const Ia=["suggestion","start","isEqual","end","registerPostFixer","TrackChangesEditing","has","nodeBefore","_descriptionFactory","_splitMarkerName","document","differ","createRange","schema","plugins","model","getChangedMarkers","from","Title","registerElementLabel","title-content","editor","afterInit","newRange","isTouching","getNearestSelectionRange","updateMarker"];var Sa,Ra;Sa=Ia,Ra=247,function(t){for(;--t;)Sa.push(Sa.shift())}(++Ra);const Na=function(t,e){return Ia[t-=0]};class va extends t.Plugin{[Na("0x12")](){const t=this[Na("0x11")];if(!t[Na("0xa")][Na("0x2")](Na("0xe")))return;const e=t[Na("0xa")].get(Na("0x1"));e[Na("0x4")][Na("0xf")]("title-content",(()=>Jo(t.locale,"ELEMENT_TITLE"))),t[Na("0xb")][Na("0x6")][Na("0x0")]((n=>{let o=!1;const r=Array[Na("0xd")](t[Na("0xb")].document[Na("0x7")][Na("0xc")]());for(const{name:i,data:s}of r){const{group:r}=e[Na("0x5")](i);if(Na("0x17")!==r||!s[Na("0x13")])continue;const x=s[Na("0x13")],a=x.end[Na("0x3")];if(!a||!a.is("element",Na("0x10")))continue;if(!x[Na("0x18")][Na("0x14")](x[Na("0x1a")]))continue;const c=t[Na("0xb")][Na("0x9")][Na("0x15")](x.end,"forward");if(c&&c.isCollapsed){const t=n[Na("0x8")](x[Na("0x18")],c[Na("0x18")]);t[Na("0x19")](x)||(n[Na("0x16")](i,{range:t}),o=!0)}o||(n.removeMarker(i),o=!0)}return o}))}}const La=["has","editor","TrackChangesEditing","enableCommand","plugins"];var Ma,wa;Ma=La,wa=261,function(t){for(;--t;)Ma.push(Ma.shift())}(++wa);const Oa=function(t,e){return La[t-=0]};class Fa extends t.Plugin{afterInit(){const t=this[Oa("0x0")],e=t[Oa("0x3")].get(Oa("0x1"));t[Oa("0x3")][Oa("0x4")]("UndoEditing")&&(e[Oa("0x2")]("undo"),e[Oa("0x2")]("redo"))}}const Da=["toggleTableCaption","get","plugins","afterInit","editor","requires","TableCaptionEditing","TrackChangesEditing","has","enableCommand"];var Ba,Pa;Ba=Da,Pa=398,function(t){for(;--t;)Ba.push(Ba.shift())}(++Pa);const Ua=function(t,e){return Da[t-=0]};class ja extends t.Plugin{static get[Ua("0x7")](){return[zx]}[Ua("0x5")](){const t=this[Ua("0x6")];t[Ua("0x4")][Ua("0x0")](Ua("0x8"))&&t[Ua("0x4")][Ua("0x3")](Ua("0x9"))[Ua("0x1")](Ua("0x2"))}}const Ga=["has","TablePropertiesEditing","getContainedElement","TableCellPropertiesEditing","editor","setAttribute","selection","getSelectionAffectedTableCells","*Format:* change table cell properties","TrackChangesEditing","afterInit","registerDescriptionCallback","getSuggestionCallback","subType","tableHeight","join","registerCustomCallback","markBlockFormat","tableCellHorizontalAlignment","plugins","commandParams","nodeAfter","enableCommand","tableCellBorderWidth","format","model","handleSuggestionDescription","discard","tableBackgroundColor","tableCellHeight","formatBlock","batch","get","_getSuggestion","tableWidth","*Format:* change table properties","tableProperties","tableBorderWidth","table","_suggestionFactory","tableBorderColor","tableCellBorderColor","handleDiscardAction","TrackChangesTableProperties","_handlePropertyChange","data","TableUtils","enqueueChange","locale","accept","tableCellWidth","findAncestor","tableAlignment","tableBorderStyle","tableCellBackgroundColor","tableCellPadding","tableCellProperties"];var Va,Ha;Va=Ga,Ha=108,function(t){for(;--t;)Va.push(Va.shift())}(++Ha);const za=function(t,e){return Ga[t-=0]};class Wa extends t.Plugin{constructor(t){super(t),this[za("0x2a")]=[za("0x2e"),za("0x2"),za("0x2b"),za("0x1"),za("0x28"),za("0x14"),za("0x22")],this[za("0x5")]=[za("0x2f"),"tableCellBorderStyle",za("0x1d"),za("0x4"),za("0x38"),za("0x23"),za("0x3"),za("0x18"),"tableCellVerticalAlignment"]}static get pluginName(){return za("0x31")}[za("0x10")](){const t=this[za("0xa")][za("0x19")][za("0x26")](za("0xf"));if(this[za("0xa")].plugins[za("0x6")](za("0x7"))){for(const e of this[za("0x2a")])t[za("0x1c")](e,((t,n)=>{const o=this[za("0xa")].model.document.selection.getFirstPosition()[za("0x0")](za("0x2c"));this[za("0x32")](e,[o],this[za("0x2a")],za("0x2a"),t,n)}));t._suggestionFactory.registerCustomCallback("formatBlock",za("0x2a"),za("0x37"),t._suggestionFactory[za("0x12")](za("0x24"),null,za("0x21"))),t._suggestionFactory[za("0x16")](za("0x24"),za("0x2a"),za("0x21"),((t,e)=>this[za("0x30")](this[za("0x2a")],t,e))),t[za("0x2d")].registerCustomCallback(za("0x24"),za("0x2a"),za("0x15"),(()=>!1))}if(this[za("0xa")].plugins[za("0x6")](za("0x9"))){for(const e of this[za("0x5")])t[za("0x1c")](e,((t,n)=>{const o=this[za("0xa")][za("0x19")].get(za("0x34"))[za("0xd")](this[za("0xa")][za("0x1f")].document[za("0xc")]);this[za("0x32")](e,o,this[za("0x5")],za("0x5"),t,n)}));t[za("0x2d")][za("0x16")](za("0x24"),za("0x5"),za("0x37"),t[za("0x2d")][za("0x12")](za("0x24"),null,"discard")),t[za("0x2d")][za("0x16")](za("0x24"),za("0x5"),za("0x21"),((t,e)=>this[za("0x30")](this[za("0x5")],t,e))),t[za("0x2d")][za("0x16")](za("0x24"),"tableCellProperties",za("0x15"),(()=>!1))}t._descriptionFactory[za("0x11")]((t=>this[za("0x20")](t)))}_handlePropertyChange(t,e,n,o,r,i){const s=this[za("0xa")][za("0x19")][za("0x26")](za("0xf"));this[za("0xa")][za("0x1f")][za("0x35")](i[za("0x25")],(()=>{for(const t of e)if(this[za("0x27")](t,o))r(i);else{const e={};for(const o of n){const n=t.getAttribute(o);void 0!==n&&(e[o]=n)}r(i),s[za("0x17")](t,{commandParams:[e]},[],o)}}))}handleDiscardAction(t,e,n){const o=e[0].start[za("0x1b")],r=n[za("0x1a")][0];this[za("0xa")][za("0x1f")].change((e=>{for(const n of t)void 0!==r[n]?e[za("0xb")](n,r[n],o):e.removeAttribute(n,o)}))}handleSuggestionDescription(t){if(t[za("0x33")])switch(t[za("0x13")]){case za("0x2a"):return{type:za("0x1e"),content:Jo(this[za("0xa")][za("0x36")],za("0x29"))};case za("0x5"):return{type:"format",content:Jo(this[za("0xa")].locale,za("0xe"))}}}[za("0x27")](t,e){const n=this[za("0xa")][za("0x19")][za("0x26")](za("0xf"));for(const o of n.getSuggestions({skipNotAttached:!0})){const n=o[za("0x8")]();if(o[za("0x13")]===e&&n===t)return o}return null}}var Ka=Function.prototype,qa=Object.prototype,Xa=Ka.toString,$a=qa.hasOwnProperty,Za=Xa.call(Object);const Qa=function(t){if(!xe(t)||"[object Object]"!=gt(t))return!1;var e=xn(t);if(null===e)return!0;var n=$a.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Xa.call(n)==Za};const Ya=function(t){return Qa(t)?void 0:t};var Ja=rt?rt.isConcatSpreadable:void 0;const tc=function(t){return ge(t)||de(t)||!!(Ja&&t&&t[Ja])};const ec=function t(e,n,o,r,i){var s=-1,x=e.length;for(o||(o=tc),i||(i=[]);++s<x;){var a=e[s];n>0&&o(a)?n>1?t(a,n-1,o,r,i):sn(i,a):r||(i[i.length]=a)}return i};const nc=function(t){return(null==t?0:t.length)?ec(t,1):[]};const oc=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)};var rc=Math.max;const ic=function(t,e,n){return e=rc(void 0===e?t.length-1:e,0),function(){for(var o=arguments,r=-1,i=rc(o.length-e,0),s=Array(i);++r<i;)s[r]=o[e+r];r=-1;for(var x=Array(e+1);++r<e;)x[r]=o[r];return x[e]=n(s),oc(t,this,x)}};const sc=function(t){return function(){return t}};const xc=ee?function(t,e){return ee(t,"toString",{configurable:!0,enumerable:!1,value:sc(e),writable:!0})}:function(t){return t};var ac=Date.now;const cc=function(t){var e=0,n=0;return function(){var o=ac(),r=16-(o-n);if(n=o,r>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(xc);const lc=function(t){return cc(ic(t,void 0,nc),t+"")}((function(t,e){var n={};if(null==t)return n;var o=!1;e=uo(e,(function(e){return e=bo(e,t),o||(o=e.length>1),e})),ie(t,dn(t),n),o&&(n=to(n,7,Ya));for(var r=e.length;r--;)Ko(n,e[r]);return n})),uc=["document","$graveyard","rename","getSuggestion","splice","pop","normal","newValue","authoredAt","fromRange","bindElementToMarker","locale","backward","suggestionChanged","ariaLiveAnnouncer","dataToMarker","mapper","editingDowncast","setTo","range","stop","tablePasteChainId","format","_processAttributeChanges","commandName","catch","formatInline:chain","track-changes-command-not-found","addMarker:suggestion:formatBlock","formatGroupId","isAfter","createdAt","formatBlock","buildSuggestion","formatInline:join","_blockAttributeKeys","formatBlock:","getUser","refresh","isLimit","deletion","_getSuggestionData","fromCharCode","_addThreadToSuggestion","_joinWithAdjacentSuggestions","addMarkerName","forEach","return","every","values","update:suggestion","markAttributeChange","discardAllSuggestions","creator","attribute:","some","reconvertMarker","getFirstRange","after","isArray","moveTargetPosition","fire","updateMarker","LEAVE","acceptAllSuggestions","element","getNearestSelectionRange","getSuggestions","isAtEnd","markerToHighlight","widget","init","previous","getShiftedBy","unshift","isInContent","isIntersectingWithRange","formatBlock:chain","_isBlockAttribute","containsPosition","track-changes-adapter-missing-getsuggestion","next","comments","_commentsRepository","_getMarkerAnnouncementText","_enableDefaultAttributesIntegration","newRange","createRange","ck-suggestion-marker--active","_recordAttributeChanges","showSuggestionHighlights","define","then","getSuggestionCallback","writer","activeMarkers","rootName","config","removeAttribute","version","change","_refreshAttributeSuggestionsChain","formatInline:","markBlockFormat","hasSuggestion","upcast","substr","addHighlight","join","insertion:chain","markInsertion","containsRangeInObject","createRangeIn","_saved","insert","oldRange","ck-suggestion-marker-formatInline","_onDiscard","_suggestionState","_adapter","options","highest","from","removeMarker","isInsideObject","_isDataLoaded","collaboration.channelId","markDeletion","unbindElementFromMarkerName","removeMarker:suggestion:formatBlock","multipleBlocks","suggestion:attribute:","attribute","start","_handleNewSuggestionMarker","isEqual","_joinSuggestions","value","isUndo","parent","markerName","_refreshSuggestionsChain","notReady","consumable","split","ready","track-changes-suggestion-data-mismatch","addComment","insertion","addSuggestion","commands","forceDefaultExecution","setSelection","track-changes-enable-command-twice","$elementName","deletion:join","isOwn","addMarker","updateSuggestion","suggestionLoaded","getLastMatchingPosition","differ","has","isBefore","Creating a suggestion for attribute with too long attribute key. This may lead to errors. Change the attribute key to a value shorter than 37 characters.","_defaultCallbacks","push","formatInline:discard","deletion:chain","attribute:discard","insertion:join","lowest","createPositionAt","getMultiRangeId","isObject","_initAriaMarkerChangeAnnouncements","_reduceExistingSuggestions","_enabledCommands","insertion:","_updateSuggestionData","getOperations","formatInline:accept","track-changes-suggestion-not-found","enqueueChange","commentThread","suggestionUnloaded","isSelectable","data-suggestion","isIntersecting","hasComments","toViewElement","isNextTo","add","isRemovable","_breakSuggestionMarker","_splitMarkerName","trackChanges","batch","trackChanges.trackFormatChanges","isTouching","rethrowUnexpectedError","formatInline","suggestion:","map","formatBlock:discard","trackChangesCommand","createRangeOn","editor","setAttribute","model","data","suggestion","hasCommentThread","attributeOldValue","isLocal","ck-suggestion-marker","addMarker:suggestion:attribute","getChangedMarkers","_trackFormatChanges","clear","registerPostFixer","forward","documentSelection","createSelection","multi","_inlineAttributeKeys","getRange","_isForcedDefaultExecutionBlock","discardSelectedSuggestions","size","PendingActions","_descriptionFactory","acceptSuggestion","groupId","FORMATTING","getIntersection","name","attributeKey","fetchCommentThread","_mergeNestedSuggestions","ENTER","_setSuggestionRange","Users","discardSuggestion","set","enableCommand","execute","containsItem","_removeSuggestion","deletion:discard","nodeAfter","consume","position","announce","_checkSuggestionCorrectness","markMultiRangeDeletion","_registerBlockAttribute","key","markerReady","dataReady","_reduceSuggestionAttributeRange","ck-suggestion-marker-","_findSuggestions","markers","getAncestors","find","isCollapsed","nodeBefore","length","$text","low","end","getCustomProperty","@external","delete","get","containerElement","getChanges","deletion:","subType","getRanges","_suggestions","move","always","removed","addRange","_suggestionFactory","root","markInlineFormat","accept","oldName","_registerDefaultCallbacks","targetPosition","formatBlock:accept","_customCallbacks","removeClass","conversion","keys","_setSuggestionData","plugins","registerCustomCallback","oldValue","_model","changeAttribute","discard","removeComment","schema","getDifference","containsRange","_recordAttributeSuggestionsFromVersion","getWalker","isBlock","removeMarkers","default","addAttribute","attribute:accept","_rangeIsInLocalUserInsertion","getAttribute","attributes","type","addClass","PENDING_ACTION_SUGGESTION","filter","acceptSelectedSuggestions","rejected","resolve","warn","detach","skipNestingCheck","_createSuggestion","_registerInlineAttribute","createPositionAfter","_getAuthorFromId","selection","howMany","getAllAdjacentSuggestions","includes","sort","marker-count","_getAttributeKeyFromSubType","item","isMultiRange","getFirstMarker","pluginName","listenTo","getItems","open","requires","getCommentThread","change:data","chain","_processAttributeSuggestions","_addSuggestionMarker","applyOperation","dataDowncast","remove","_editor","concat","TrackChangesEditing","for","isExternal","elementStart","isAtStart","external:","authorName","author","head","before","_cutOutSuggestionMarker","CommentsRepository","assign","high","insertContent","ck-suggestion-marker-formatBlock","startsWith","_getExternalAuthor","substring","toJSON","attribute:join","markerNameToElements","insertion:accept","error-saving-suggestion-data-suggestion-discarded"];var dc,gc;dc=uc,gc=275,function(t){for(;--t;)dc.push(dc.shift())}(++gc);const fc=function(t,e){return uc[t-=0]},mc=fc("0x105");class hc extends t.Plugin{static get[fc("0x48")](){return["CommentsRepository",i.Users,t.PendingActions,cr,fr,_r,kr,Lr,Dr,Vr,ti,ii,li,hi,Ti,Si,Mi,Pi,Hi,Xi,Ji,rs,fs,cs,Es,As,Ns,Os,Us,Ks,Qs,nx,xx,dx,px,Cx,Rx,Ox,Ux,zx,Zx,ea,ja,aa,ma,ka,Wa,_a,va,Fa]}static get[fc("0x44")](){return fc("0x53")}constructor(t){function e(t){return t.map((t=>String[fc("0x95")](t)))[fc("0xd7")]("")}super(t),this._recordAttributeSuggestionsFromVersion=null,this[fc("0x15f")](fc("0xca"),[]),this.on("change:activeMarkers",((e,n,o,r)=>{this[fc("0x1b")][fc("0xcf")]((()=>{for(const e of[...r,...o])this[fc("0x1b")].markers[fc("0x10d")](e)&&t.editing[fc("0xa3")](e)}))})),this[fc("0x152")]=new rr(this[fc("0x13a")][fc("0x13c")].schema,this[fc("0x13a")][fc("0x76")]),this[fc("0xe2")]=null,this[fc("0xb")]=new bc(this.editor),this[fc("0x6")]=new Map,this._commentsRepository=t[fc("0x18")].get("CommentsRepository"),this[fc("0x11c")]=new Set,this[fc("0x1b")]=this[fc("0x13a")].model,this[fc("0xe1")]=new WeakMap,this[fc("0x14e")]=!1,this[fc("0x8e")]=new Set([fc("0x105")]),this[fc("0x14c")]=new Set,t[fc("0xcc")][fc("0xc6")]("trackChanges.trackFormatChanges",fc("0x26")),this._trackFormatChanges=t[fc("0xcc")][fc("0x0")](fc("0x131")),t[fc("0xcc")][fc("0xc6")]("trackChanges.mergeNestedSuggestions",!0),this._mergeNestedSuggestions=t[fc("0xcc")].get("trackChanges.mergeNestedSuggestions"),this[fc("0x138")]=new d(t,this[fc("0x11c")]),this._initAriaMarkerChangeAnnouncements(),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,50,50,51,50])}[fc("0xb2")](){const t=this[fc("0x13a")],n=(t,e)=>{if(fc("0xef")!=t)return fc("0x170")+t;const n=e[fc("0xfb")]("|")[0];return this._isBlockAttribute(n)?fc("0x62"):fc("0xdf")};t.conversion[fc("0x54")](fc("0x7c"))[fc("0xb0")]({model:fc("0x13e"),view:t=>{const{id:e,type:o,subType:r}=this._splitMarkerName(t[fc("0xf7")]),i=[fc("0x142"),n(o,r)];let s=3e3;return this[fc("0xca")][fc("0x3d")](t[fc("0xf7")])&&(i[fc("0x111")](fc("0xc3")),s=3010),"deletion"==o&&(s+=5),{classes:i,attributes:{"data-suggestion":e},priority:s}}}),t.conversion[fc("0x54")](fc("0x4f"))[fc("0x12b")]((e=>{e.on("addMarker:suggestion",((e,n,o)=>{if(!o[fc("0xe3")].showSuggestionHighlights)return;const r=n[fc("0x41")];if(!r)return;const i=o[fc("0x7b")][fc("0x129")](r);t.model[fc("0x1f")][fc("0x119")](r)&&i&&!i.getCustomProperty(fc("0xb1"))&&i.is(fc("0x1"))&&(0,x.toWidget)(i,o[fc("0xc9")])}),{priority:"high"})})),t.conversion[fc("0x54")]("dataDowncast")[fc("0xb0")]({model:fc("0x13e"),view:(t,e)=>{if(!e[fc("0xe3")][fc("0xc5")])return null;const{type:o,subType:r}=this[fc("0x12e")](t[fc("0xf7")]);return{classes:[fc("0x142"),n(o,r)],priority:3e3}}});const o=({showActiveMarkers:e=!0,isAttributeSuggestion:n=!1}={})=>(o,r,i)=>{if(!r[fc("0x41")])return;const{id:s}=this[fc("0x12e")](r[fc("0xf7")]);if(n){const t=this[fc("0x6")][fc("0x0")](s),e=this._getAttributeKeyFromSubType(t);if(!this._isBlockAttribute(e))return}if(r.item.is(fc("0x3a")))return void i[fc("0xfa")][fc("0x166")](r[fc("0x41")],o[fc("0x157")]);const x=i[fc("0x7b")][fc("0x129")](r[fc("0x41")]);if(r[fc("0x41")].is(fc("0xac"))&&t.model[fc("0x1f")][fc("0x24")](r[fc("0x41")])&&!x[fc("0x17b")]("addHighlight")){i[fc("0xc9")][fc("0x2d")]([fc("0x142"),"ck-suggestion-marker-formatBlock"],x),i.writer[fc("0x13b")](fc("0x126"),s,x),i[fc("0x7b")][fc("0x75")](x,r[fc("0xf7")]),e&&(this[fc("0xca")][fc("0x3d")](r.markerName)?i[fc("0xc9")][fc("0x2d")](fc("0xc3"),x):i.writer.removeClass("ck-suggestion-marker--active",x));for(const e of t[fc("0x13c")][fc("0xdb")](r[fc("0x41")])[fc("0x46")]())i[fc("0xfa")][fc("0x166")](e,o[fc("0x157")]);i[fc("0xfa")][fc("0x166")](r[fc("0x41")],o[fc("0x157")])}};t[fc("0x15")][fc("0x54")](fc("0x4f"))[fc("0x12b")]((t=>{t.on(fc("0x87"),((t,e,n)=>{n[fc("0xe3")].showSuggestionHighlights&&o({showActiveMarkers:!1})(t,e,n)}),{priority:"highest"})})),t.conversion[fc("0x54")](fc("0x4f"))[fc("0x12b")]((t=>{t.on(fc("0x143"),((t,e,n)=>{n[fc("0xe3")][fc("0xc5")]&&o({showActiveMarkers:!1,isAttributeSuggestion:!0})(t,e,n)}),{priority:fc("0xe4")})})),t[fc("0x15")][fc("0x54")](fc("0x4f")).markerToData({model:fc("0x13e"),view:(t,e)=>e[fc("0xe3")][fc("0xc5")]?null:{group:"suggestion",name:t[fc("0xd5")](11)}}),t[fc("0x15")][fc("0x54")](fc("0xd4")).elementToElement({view:{name:fc("0x13e"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=fc("0x135")+t[fc("0x2a")]("suggestion-type")+":"+t.getAttribute("id");return t.getAttribute(fc("0x3f"))&&(n+=":"+t[fc("0x2a")](fc("0x3f"))),e.createElement("$marker",{"data-name":n})}}),t[fc("0x15")][fc("0x54")](fc("0xd4"))[fc("0x7a")]({view:fc("0x13e")}),t.conversion.for(fc("0x7c"))[fc("0x12b")]((t=>{t.on(fc("0x87"),o(),{priority:"high"})})),t[fc("0x15")].for(fc("0x7c"))[fc("0x12b")]((t=>{t.on("addMarker:suggestion:attribute",o({isAttributeSuggestion:!0}),{priority:fc("0x60")})})),t[fc("0x15")][fc("0x54")]("editingDowncast")[fc("0x12b")]((t=>{t.on(fc("0xec"),((t,e,n)=>{const o=n[fc("0x7b")][fc("0x68")](e[fc("0xf7")]);if(o)for(const t of o)t[fc("0x17b")](fc("0xd6"))||(n[fc("0xc9")][fc("0x14")]([fc("0x142"),fc("0x62"),fc("0xc3")],t),n[fc("0xc9")][fc("0xcd")]("data-suggestion",t),n[fc("0x7b")].unbindElementFromMarkerName(t,e[fc("0xf7")]))}),{priority:fc("0x60")})})),t[fc("0x15")][fc("0x54")](fc("0x7c"))[fc("0x12b")]((t=>{t.on("removeMarker:suggestion:attribute",((t,e,n)=>{const o=n[fc("0x7b")][fc("0x68")](e[fc("0xf7")]);if(!o)return;const{id:r}=this[fc("0x12e")](e.markerName),i=this[fc("0x6")][fc("0x0")](r),s=this[fc("0x40")](i);if(this[fc("0xb9")](s))for(const t of o)t[fc("0x17b")](fc("0xd6"))||(n[fc("0xc9")][fc("0x14")]([fc("0x142"),fc("0x62"),fc("0xc3")],t),n.writer.removeAttribute(fc("0x126"),t),n[fc("0x7b")][fc("0xeb")](t,e[fc("0xf7")]))}),{priority:fc("0x60")})})),t[fc("0x13c")][fc("0x6b")].registerPostFixer((e=>{let n=!1;const o=Array[fc("0xe5")](t[fc("0x13c")][fc("0x6b")].differ[fc("0x144")]()),r=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,subType:l,id:u}=this[fc("0x12e")](x);if(fc("0x13e")!==o)continue;const d=this._suggestions[fc("0x0")](u);if(null!=a[fc("0xc1")]){fc("0x134")==c&&(n=n||_c(a[fc("0xc1")],x,e,t[fc("0x13c")].schema));const o=fc("0xef")==c&&this[fc("0xb9")](l[fc("0xfb")]("|")[0]);if(a[fc("0xc1")][fc("0x175")]||fc("0x6c")==a[fc("0xc1")][fc("0xc")][fc("0xcb")]||fc("0x8b")==c&&!yc(a[fc("0xc1")])||o&&!yc(a[fc("0xc1")])||"deletion"==c&&(Ec(s=a[fc("0xc1")])||(i=s)[fc("0xf0")][fc("0xf6")]==i[fc("0x17a")][fc("0x176")]&&i.start[fc("0xaf")]))e.removeMarker(x),n=!0;else{if(!d||!d[fc("0xb6")])continue;r[fc("0x12b")](d)}}}var i,s;return r[fc("0x150")]>0&&(n=!!this[fc("0x97")](r)||n),n})),t[fc("0x13c")].document[fc("0x147")]((e=>{let n=!1;for(const o of t.model[fc("0x6b")].differ[fc("0x2")]())if("insert"==o[fc("0x2c")])for(const o of this._suggestions.values()){if(o.isMultiRange||!o.isInContent)continue;const r=fc("0x8b")==o[fc("0x2c")],i=this[fc("0x40")](o),s=i&&this[fc("0xb9")](i);if(!r&&!s)continue;const x=o.getFirstRange();if(x.start[fc("0xf6")]!=x.end[fc("0xf6")]&&!x[fc("0x17a")][fc("0xaf")]){const r=t[fc("0x13c")][fc("0x117")](x.start[fc("0x165")],fc("0x17a")),i=t[fc("0x13c")][fc("0xc2")](x[fc("0xf0")],r);e[fc("0xa9")](o[fc("0x43")](),{range:i}),n=!0}}return n})),t[fc("0x13c")][fc("0x6b")][fc("0x147")]((t=>this._processAttributeChanges(t))),t.model.document[fc("0x147")]((t=>!t[fc("0x130")][fc("0x141")]&&this._processAttributeSuggestions(t))),t.model[fc("0x172")].on(fc("0x9d"),((t,e,n)=>{if(null==n){const{id:t}=this[fc("0x12e")](e[fc("0x157")]),n=this[fc("0x6")][fc("0x0")](t);n&&n[fc("0x98")](e[fc("0x157")])}})),t[fc("0x13c")][fc("0x6b")].on(fc("0x4a"),(()=>{const e=Array[fc("0xe5")](t[fc("0x13c")][fc("0x6b")][fc("0x10c")][fc("0x144")]())[fc("0x2f")]((t=>fc("0x13e")===this[fc("0x12e")](t[fc("0x157")]).group));if(0===e[fc("0x177")])return;e.sort(((t,e)=>{const n=t[fc("0x13d")].oldRange,o=e[fc("0x13d")][fc("0xde")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[fc("0xf0")][fc("0x10e")](o[fc("0xf0")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:r}of e){const{id:e}=this[fc("0x12e")](t);if(null===r[fc("0xde")]){const e=this[fc("0xf1")](t);o[fc("0x12b")](e)}else{const t=this[fc("0x6")][fc("0x0")](e);null!==r[fc("0xc1")]||t[fc("0xb6")]?(n[fc("0x12b")](t[fc("0x5b")]),o[fc("0x12b")](t)):this[fc("0x163")](t)}}o[fc("0x150")]>0&&this[fc("0xf8")](o);for(const t of n)this[fc("0xa8")](fc("0x78"),t)})),t[fc("0x13c")].on(fc("0x4e"),((e,n)=>{const o=n[0];if(!this[fc("0x6")][fc("0x150")])return;if(!o.isDocumentOperation)return;if(o[fc("0x130")][fc("0xf5")]||!o[fc("0x130")].isLocal)return;let r,i;switch(o[fc("0x2c")]){case fc("0xdd"):r=t[fc("0x13c")][fc("0x117")](o[fc("0x167")]),i=r[fc("0xb4")](o[fc("0x3b")]);break;case fc("0xfb"):r=t[fc("0x13c")][fc("0x117")](o.splitPosition),i=t[fc("0x13c")][fc("0x117")](o[fc("0xa7")]);break;case fc("0x7"):r=t[fc("0x13c")][fc("0x117")](o[fc("0x11")]),i=r[fc("0xb4")](o[fc("0x3b")]);break;default:return}const s=t.model.createRange(r,i);t[fc("0x13c")].change((()=>{for(const{suggestion:t,meta:e}of this[fc("0x171")](s)){if(t[fc("0x42")])continue;if(fc("0x134")==t[fc("0x2c")])continue;const n=this._getAttributeKeyFromSubType(t);if(n&&this[fc("0xb9")](n)&&fc("0xfb")!=o[fc("0x2c")])continue;const x=t[fc("0x13d")]&&t[fc("0x13d")][fc("0xed")];(fc("0x8b")!=t[fc("0x2c")]||fc("0xfb")==o[fc("0x2c")]&&!x)&&(e[fc("0xda")]||fc("0xff")==t[fc("0x2c")]&&e[fc("0x107")]||t[fc("0xa4")]()[fc("0x21")](s)&&this._breakSuggestionMarker(t,r,i))}}))}),{priority:fc("0x116")}),t[fc("0x13c")].on("deleteContent",((e,n)=>{const o=n[0],r=n[1];if(r&&r.forceDefaultExecution)return;if(this[fc("0x14e")])return;if(!this[fc("0x138")][fc("0xf4")])return;if(o.isCollapsed)return;const i=t[fc("0x13c")][fc("0x1f")],{start:s,end:x}=o[fc("0xa4")](),a=s[fc("0x165")]&&i.isLimit(s[fc("0x165")])?null:i[fc("0xad")](s,fc("0x148")),c=x[fc("0x176")]&&i.isLimit(x[fc("0x176")])?null:i[fc("0xad")](x,fc("0x77")),l=t.model[fc("0xc2")](a?a.start:s,c?c.end:x);t[fc("0x13c")][fc("0xcf")]((e=>{this[fc("0xea")](l);const n=t[fc("0x13c")][fc("0x1f")].getNearestSelectionRange(l[fc("0xf0")]);o.is(fc("0x149"))?e.setSelection(n):o[fc("0x7d")](n)})),e[fc("0x7f")]()}),{priority:e.priorities[fc("0x71")]+10}),t[fc("0x13c")].on(fc("0x61"),((e,n)=>{const o=n[n[fc("0x177")]-1];o&&o.forceDefaultExecution||this._isForcedDefaultExecutionBlock||this[fc("0x138")].value&&(t[fc("0x13c")][fc("0xcf")]((()=>{let o=t[fc("0x13c")][fc("0x61")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[fc("0x9a")]=o.clone();const r=o[fc("0x17a")][fc("0x176")],i=t[fc("0x13c")][fc("0x1f")];r&&i[fc("0x24")](r)&&!i.isObject(r)&&(o=t.model[fc("0xc2")](o[fc("0xf0")],t[fc("0x13c")][fc("0x117")](r,fc("0x17a")))),this[fc("0xd9")](o)})),e[fc("0x7f")]())}),{priority:fc("0x60")}),this[fc("0x13a")][fc("0x101")][fc("0x12b")](fc("0x12f"),this[fc("0x138")]),this[fc("0x160")](fc("0x12f"));const r=new b(t,this[fc("0x6")]);t.commands.add("acceptSuggestion",r),this.enableCommand(fc("0x153"));const i=new y(t,this[fc("0x6")]);t[fc("0x101")][fc("0x12b")](fc("0x15e"),i),this[fc("0x160")](fc("0x15e")),t[fc("0x101")][fc("0x12b")](fc("0xab"),new F(t,r,this[fc("0x6")])),this[fc("0x160")](fc("0xab")),t[fc("0x101")][fc("0x12b")](fc("0x9f"),new F(t,i,this[fc("0x6")])),this[fc("0x160")]("discardAllSuggestions"),t[fc("0x101")][fc("0x12b")](fc("0x30"),new j(t,r,this[fc("0x6")])),this[fc("0x160")](fc("0x30")),t[fc("0x101")][fc("0x12b")](fc("0x14f"),new j(t,i,this[fc("0x6")])),this[fc("0x160")](fc("0x14f"));const s=t[fc("0x18")][fc("0x0")](fc("0x5e"));this[fc("0x45")](s,fc("0xfe"),((t,{threadId:e})=>{const n=this[fc("0x6")][fc("0x0")](e);n&&n[fc("0x123")]&&1===n[fc("0x123")][fc("0x177")]&&this._updateSuggestionData(e,{hasComments:!0})}),{priority:fc("0x179")}),this[fc("0x45")](s,fc("0x1e"),((t,{threadId:e})=>{const n=this._suggestions[fc("0x0")](e);n&&n.commentThread&&!n[fc("0x123")][fc("0x177")]&&this[fc("0x11e")](e,{hasComments:!1})}),{priority:fc("0x179")})}set adapter(t){if(this._adapter)throw new e.CKEditorError("track-changes-adapter-already-set",this);this[fc("0xe2")]=t}get adapter(){return this._adapter}[fc("0xae")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this._suggestions[fc("0x9c")]())t&&!e[fc("0xb6")]||n[fc("0x111")](e);return e?n[fc("0x136")]((t=>t[fc("0x66")]())):n}[fc("0x6e")](t){const n=this[fc("0x6")].get(t);if(!n)throw new e.CKEditorError(fc("0x121"),this);return n}[fc("0xd3")](t){return this._suggestions[fc("0x10d")](t)}addSuggestionData(t){const{authorId:e,id:n,attributes:o}=t,[r,i]=t.type[fc("0xfb")](":"),s=this._suggestions[fc("0x0")](n)||this[fc("0x36")](r,i,n,e,o);if(this[fc("0x96")](s),this[fc("0x169")](s,r,i||null,e),s.createdAt=t[fc("0x8a")],s[fc("0xe8")]=!0,o&&o[fc("0x17c")]){const t=o[fc("0x17c")],e=this._getExternalAuthor(t[fc("0x59")]);s[fc("0x73")]=t.createdAt,s.author=e,s[fc("0x55")]=!0}else s[fc("0x73")]=t.createdAt;switch(t[fc("0x13d")]&&(s.data=t[fc("0x13d")]),t.attributes&&(s[fc("0x2b")]=t[fc("0x2b")]),this[fc("0xe2")]&&this[fc("0xe2")][fc("0x100")]||(s[fc("0xdc")]=!0),this[fc("0xe1")][fc("0x0")](s)){case fc("0xf9"):this._suggestionState.set(s,"dataReady");break;case fc("0x16d"):s[fc("0xb6")]?(this._refreshSuggestionsChain(new Set([s])),this[fc("0x97")](new Set([s])),this[fc("0xe1")][fc("0x15f")](s,fc("0xfc")),this.fire(fc("0x10a"),s)):this[fc("0xe1")][fc("0x15f")](s,fc("0x9"))}return s}acceptSuggestion(t){this[fc("0x102")]((()=>{this[fc("0x13a")].model[fc("0xcf")]((()=>{for(const e of t[fc("0x3c")]())e.accept()}))}))}[fc("0x15e")](t){this[fc("0x102")]((()=>{this.editor[fc("0x13c")][fc("0xcf")]((()=>{for(const e of t[fc("0x3c")]())e.discard()}))}))}[fc("0x160")](t,n){const o=this.editor[fc("0x101")][fc("0x0")](t);if(!o)throw new e.CKEditorError(fc("0x86"),this,{commandName:t});if(this[fc("0x11c")].has(o))throw new e.CKEditorError(fc("0x104"),this,{commandName:t});this._enabledCommands[fc("0x12b")](o),n&&o.on("execute",((t,e)=>{this[fc("0x138")][fc("0xf4")]&&(this._isForcedDefaultExecutionBlock||(e.length>0&&e[e.length-1]&&e[e[fc("0x177")]-1][fc("0x102")]?e[fc("0x70")]():(t[fc("0x9a")]=n(((...t)=>o[fc("0x161")](...t,{forceDefaultExecution:!0})),...e),t[fc("0x7f")]())))}),{priority:fc("0x60")})}[fc("0x102")](t){let n,o;const r=this[fc("0x14e")];this[fc("0x14e")]=!0;try{n=t()}catch(t){o=t}return r||(this[fc("0x14e")]=!1),o&&e.CKEditorError[fc("0x133")](o,this),n}[fc("0xd9")](t,n=null,o={}){if(t[fc("0x175")])return null;const r=this[fc("0x13a")][fc("0x18")][fc("0x0")]("Users").me;for(const{suggestion:e,meta:r}of this._findSuggestions(t,fc("0xff")))if(r.isOwn){if(!r[fc("0x12a")]){if(r.containsRangeInObject){if(!this._mergeNestedSuggestions||!Ic(e,o))continue;return e}if(Ic(e,o))return e;this[fc("0x12d")](e,t[fc("0xf0")],t[fc("0x17a")]);break}if(n==e[fc("0x4")]&&Ic(e,o)){const n=e[fc("0xa4")]();return n[fc("0xf0")][fc("0xf2")](t.end)?this[fc("0x15c")](e,this[fc("0x1b")][fc("0xc2")](t[fc("0xf0")],n[fc("0x17a")])):this[fc("0x15c")](e,this[fc("0x1b")][fc("0xc2")](n.start,t[fc("0x17a")])),e}}const i=(0,e.uid)(),s=r.id,x=n?fc("0x11d")+n:fc("0xff"),a=this[fc("0x17")]({id:i,type:x,createdAt:new Date,authorId:s,attributes:o});return this[fc("0x4d")](x,i,s,t),a}markMultiRangeInsertion(t,n="multi",o={}){const r=this[fc("0x13a")][fc("0x18")][fc("0x0")]("Users").me,i=this[fc("0xb")][fc("0xc8")](fc("0xff"),n,fc("0xd7"));for(const e of this.getSuggestions())if(e.author.id==r.id&&fc("0xff")==e[fc("0x2c")]&&e[fc("0x4")]==n&&Ic(e,o)&&(i(e[fc("0x5")](),t)||i(t,e[fc("0x5")]()))){for(const n of t)e[fc("0xa")](n);return e}for(const{suggestion:e,meta:n}of this[fc("0x171")](t,"insertion")){if(!n[fc("0x107")])continue;if(!this[fc("0x15a")]&&n[fc("0xda")])continue;if(!Ic(e,o))continue;let r=!0;for(const n of e.getRanges())for(const e of t)if(!n[fc("0x21")](e)){r=!1;break}if(r)return e}const s=(0,e.uid)(),x=r.id,a=fc("0x11d")+n,c=this[fc("0x17")]({id:s,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this._addSuggestionMarker(a,s,x,e,Yo.getMultiRangeId());return c}[fc("0xd")](t,n,o=null,r={}){if(o=o||Tc(n),t[fc("0x175")])return null;if("never"===this[fc("0x145")]){const e=this[fc("0xb")][fc("0xc8")](fc("0x134"),o,fc("0xe"));return this[fc("0x102")]((()=>e([t],n,r))),null}const i=this[fc("0x13a")][fc("0x18")].get("Users").me,s=[];if(fc("0x8")!==this[fc("0x145")])for(const{suggestion:e,meta:n}of this._findSuggestions(t,fc("0xff")))n[fc("0x107")]&&!n.isInsideObject&&s[fc("0x111")](...e.getRanges());const x=function(t,e){const n=[];for(const o of e){const e=t[fc("0x156")](o);e&&n[fc("0x111")](e)}return n}(t,s),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[fc("0x177")];){const o=n[e][fc("0x20")](t);n[fc("0x6f")](e,1,...o),e+=o[fc("0x177")]}}return n}(t,s);x.length&&this._model[fc("0xcf")]((()=>{for(const t of x){const e=this[fc("0xb")][fc("0xc8")](fc("0x134"),o,"accept");this[fc("0x102")]((()=>e([t],n,r)))}}));for(const t of a){let s=null,x=t.start,a=t.end;for(const{suggestion:e,meta:n}of this[fc("0x171")](t,fc("0x134"))){if(!n.isOwn)continue;if(e[fc("0x4")]!=o)continue;if(!Ic(e,r))continue;const i=e[fc("0xa4")]();if(i[fc("0x21")](t,!0))return null;x=x[fc("0x10e")](i[fc("0xf0")])?x:i[fc("0xf0")],a=a[fc("0x89")](i[fc("0x17a")])?a:i.end,s?i[fc("0xf0")][fc("0x10e")](s.getFirstRange()[fc("0xf0")])?(s[fc("0x25")](),s=e):e[fc("0x25")]():s=e}const c=this[fc("0x1b")].createRange(x,a);if(s)this[fc("0x15c")](s,c);else{const t=(0,e.uid)(),s=i.id;this._setSuggestionData({id:t,type:fc("0xd1")+o,data:n,createdAt:new Date,authorId:s,attributes:r}),this[fc("0x4d")](fc("0xd1")+o,t,s,c)}}return null}[fc("0xd2")](t,n,o=[],r=null,i={}){n[fc("0x88")]||(n[fc("0x88")]=n.commandName),n[fc("0xed")]=t.is(fc("0x7e")),r=r||Tc(n);const s=o[fc("0x136")]((t=>Cc(t,this._model))),x=t.is(fc("0x7e"))?t:Cc(t,this[fc("0x1b")]);if("never"===this._trackFormatChanges){const t=this[fc("0xb")][fc("0xc8")](fc("0x8b"),r,fc("0xe"));return this[fc("0x102")]((()=>t([x],n,i))),null}s[fc("0x111")](x);let a=!0;for(const t of s)if(!this._rangeIsInLocalUserInsertion(t)){a=!1;break}if(a&&fc("0x8")!==this[fc("0x145")]){const t=this._suggestionFactory[fc("0xc8")](fc("0x8b"),r,fc("0xe"));return this[fc("0x102")]((()=>t([x],n,i))),null}let c=null,l=x.start,u=x.end;for(const{suggestion:t,meta:e}of this[fc("0x171")](x,fc("0x8b"))){if(!e[fc("0x107")])continue;if(e.isNextTo||e[fc("0xda")]||e.isInsideObject)continue;if(t[fc("0x13d")][fc("0x88")]!=n[fc("0x88")])continue;if(!Ic(t,i))continue;const o=t[fc("0xa4")]();if(t.subType==r){if(o.containsRange(x,!0))return null;l=l[fc("0x10e")](o.start)?l:o[fc("0xf0")],u=u[fc("0x89")](o.end)?u:o[fc("0x17a")],c?o[fc("0xf0")].isBefore(c[fc("0xa4")]().start)?(c[fc("0x25")](),c=t):t[fc("0x25")]():c=t}else{const e=x[fc("0x156")](o);this[fc("0x5d")](t,e)}}const d=this[fc("0x13a")][fc("0x18")].get(fc("0x15d")).me,g=(0,e.uid)(),f=d.id;if(c)return this[fc("0x15c")](c,this._model[fc("0xc2")](l,u)),c;{const t=this._setSuggestionData({id:g,type:"formatBlock:"+r,data:n,createdAt:new Date,authorId:f,attributes:i});return this[fc("0x4d")](fc("0x8f")+r,g,f,this[fc("0x1b")].createRange(l,u)),t}}markMultiRangeBlockFormat(t,n,o=[],r=null,i={}){n.formatGroupId||(n[fc("0x88")]=n[fc("0x83")]);const s=t[0];n[fc("0xed")]=s.is("range"),r=r||Tc(n);const x=o[fc("0x136")]((t=>Cc(t,this[fc("0x1b")]))),a=s.is("range")?t:t[fc("0x136")]((t=>Cc(t,this[fc("0x1b")])));if("never"===this[fc("0x145")]){const t=this[fc("0xb")][fc("0xc8")](fc("0x8b"),r,fc("0xe"));return this[fc("0x102")]((()=>t(a,n,i))),null}x.push(...a);let c=!0;for(const t of x)if(!this._rangeIsInLocalUserInsertion(t)){c=!1;break}if(c&&fc("0x8")!==this[fc("0x145")]){const t=this[fc("0xb")].getSuggestionCallback(fc("0x8b"),r,"accept");return this[fc("0x102")]((()=>t(a,n,i))),null}const l=this[fc("0x13a")][fc("0x18")][fc("0x0")](fc("0x15d")).me;for(const t of this.getSuggestions()){if(t.author.id!=l.id)continue;if(fc("0x8b")!=t[fc("0x2c")]||t[fc("0x13d")][fc("0x88")]!=n[fc("0x88")])continue;if(!Ic(t,i))continue;const e=t[fc("0x4")]==r;for(let n=0;n<a[fc("0x177")];n++){const o=a[n];for(const r of t.getMarkers()){const i=r[fc("0x14d")]();if(o[fc("0xf2")](i)){e?(a[fc("0x6f")](n,1),n--):t[fc("0xe6")](r[fc("0x157")]);break}}}}if(0==a.length)return null;const u=this[fc("0xb")].getSuggestionCallback(fc("0x8b"),r,fc("0xd7"));for(const t of this[fc("0xae")]())if(t.author.id==l.id&&fc("0x8b")==t[fc("0x2c")]&&t[fc("0x13d")][fc("0x88")]==n[fc("0x88")]&&t[fc("0x4")]==r&&Ic(t,i)&&(u(t[fc("0x5")](),a)||u(a,t[fc("0x5")]()))){for(const e of a)t[fc("0xa")](e);return t}const d=(0,e.uid)(),g=l.id,f="formatBlock:"+r,m=this[fc("0x17")]({id:d,type:f,data:n,createdAt:new Date,authorId:g,attributes:i});for(const t of a)this._addSuggestionMarker(f,d,g,t,Yo[fc("0x118")]());return m}[fc("0xea")](t,n=null,o={}){if(t[fc("0x175")])return null;const r=this[fc("0x13a")][fc("0x18")].get(fc("0x15d")).me,i=new s.LiveRange(t.start,t.end);for(const{suggestion:t,meta:e}of this[fc("0x171")](i,fc("0xff")))if(e.isOwn&&!e.isNextTo)if(t[fc("0x42")]){const e=t[fc("0x5")]()[fc("0x2f")]((t=>fc("0x6c")!=t[fc("0xc")].rootName));if(e[fc("0x9b")]((t=>i[fc("0x21")](t,!0)))&&t[fc("0x1d")](),e.some((t=>t[fc("0x21")](i,!0)))){const t=this._suggestionFactory[fc("0xc8")]("deletion",n,fc("0xe"));return this.forceDefaultExecution((()=>t([i],null,o))),null}}else{const e=i[fc("0x156")](t[fc("0xa4")]());null!==e&&t[fc("0xe0")]([e],null,o)}if(i.detach(),i[fc("0x175")]||fc("0x6c")==i[fc("0xc")].rootName)return null;let x=null,a=i[fc("0xf0")],c=i.end;const l=this[fc("0x171")](i,fc("0x93"));for(const{suggestion:t,meta:e}of l){const n=this._model[fc("0xc2")](a,c);if(e[fc("0x107")]&&(this[fc("0x15a")]||!e.containsRangeInObject&&!e[fc("0xe7")]))if(t[fc("0x42")]){if(!Ic(t,o))continue;let e=!0;for(const o of t.getRanges()){if(o[fc("0x21")](n,!0))return t;n[fc("0x21")](o)||(e=!1)}e&&t[fc("0x1d")]()}else{const e=t[fc("0xa4")]();if(e.containsRange(n,!0))return t;if(!Ic(t,o)){n[fc("0x21")](e)?t[fc("0x25")]():e[fc("0xba")](a)?a=e[fc("0x17a")]:e.containsPosition(c)&&(c=e[fc("0xf0")]);continue}a=a.isBefore(e[fc("0xf0")])?a:e[fc("0xf0")],c=c[fc("0x89")](e[fc("0x17a")])?c:e.end,o=Object.assign({},t[fc("0x2b")]),x?e[fc("0xf0")][fc("0x10e")](x[fc("0xa4")]()[fc("0xf0")])?(x[fc("0x25")](),x=t):t[fc("0x25")]():x=t}}if(x)return this._setSuggestionRange(x,this[fc("0x1b")][fc("0xc2")](a,c)),x;{const t=(0,e.uid)(),i=this[fc("0x1b")][fc("0xc2")](a,c),s=r.id,x=n?fc("0x3")+n:fc("0x93"),l=this[fc("0x17")]({id:t,type:x,createdAt:new Date,authorId:s,attributes:o});return this[fc("0x4d")](x,t,s,i),l}}[fc("0x16a")](t,n=fc("0x14b"),o={}){const r=this[fc("0x13a")][fc("0x18")][fc("0x0")](fc("0x15d")).me,i=t[fc("0x136")]((t=>new s.LiveRange(t[fc("0xf0")],t[fc("0x17a")]))),x=new Set;for(const{suggestion:t,meta:e}of this[fc("0x171")](i,fc("0xff")))e.isOwn&&!e[fc("0x12a")]&&x.add(t);for(const e of x)if(e.isMultiRange){const r=e[fc("0x5")]();if((!e[fc("0x2b")]||!e[fc("0x2b")].skipNestingCheck)&&r[fc("0x9b")]((t=>i[fc("0xa2")]((e=>e[fc("0x21")](t,!0)))))&&e[fc("0x1d")](),i[fc("0x9b")]((t=>r[fc("0xa2")]((e=>e[fc("0x21")](t,!0)))))){const e=this._suggestionFactory[fc("0xc8")](fc("0x93"),n,"accept");return this[fc("0x102")]((()=>e(t,null,o))),null}}else{const t=e[fc("0xa4")]();if(i[fc("0xa2")]((e=>e[fc("0x21")](t,!0)))&&e[fc("0x1d")](),i[fc("0x9b")]((e=>t[fc("0x21")](e,!0)))){const t=this[fc("0xb")][fc("0xc8")]("deletion",n,"accept");return this.forceDefaultExecution((()=>t(i,null,o))),null}}const a=this[fc("0xb")][fc("0xc8")]("deletion",n,fc("0xd7"));let c=null;for(const t of this[fc("0xae")]())if(t.author.id==r.id&&t[fc("0xb6")]&&fc("0x93")==t[fc("0x2c")]&&t[fc("0x4")]==n&&Ic(t,o)&&(a(t[fc("0x5")](),i)||a(i,t[fc("0x5")]())))if(c){if(t[fc("0x123")]&&t.commentThread[fc("0x177")])continue;for(const e of t[fc("0x5")]())c[fc("0xb7")](e)||c[fc("0xa")](e);t[fc("0x25")]()}else{c=t;for(const e of i)t.isIntersectingWithRange(e)||t[fc("0xa")](e)}if(c)return c;x[fc("0x146")]();for(const{suggestion:t,meta:e}of this._findSuggestions(i,fc("0x93")))e[fc("0x107")]&&(this[fc("0x15a")]||!e[fc("0xda")]&&!e[fc("0xe7")])&&Ic(t,o)&&x[fc("0x12b")](t);for(const t of x){const e=t[fc("0x5")]();if((!o||!o[fc("0x35")])&&i[fc("0x9b")]((t=>e[fc("0xa2")]((e=>e.containsRange(t,!0))))))return t;(!t[fc("0x2b")]||!t[fc("0x2b")][fc("0x35")])&&e[fc("0x9b")]((t=>i[fc("0xa2")]((e=>e[fc("0x21")](t,!0)))))&&t.discard()}const l=(0,e.uid)(),u=r.id,d=fc("0x3")+n,g=this[fc("0x17")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of i)t.detach(),t.isCollapsed||fc("0x6c")==t[fc("0xc")][fc("0xcb")]||this[fc("0x4d")](d,l,u,t,Yo.getMultiRangeId());return g}[fc("0x9e")](t,n,o,r,i){if(t[fc("0x175")])return[];if("never"===this[fc("0x145")])return[];const s=this[fc("0x13a")][fc("0x18")][fc("0x0")](fc("0x15d")).me.id,x=Array.from(this[fc("0x6")][fc("0x9c")]())[fc("0x2f")]((e=>fc("0xef")==e[fc("0x2c")]&&e[fc("0x13d")][fc("0x16c")]==n&&e[fc("0xb7")](t)));if("default"===this[fc("0x145")]){const e=this[fc("0x171")](t,fc("0xff"))[fc("0x2f")]((({meta:t})=>t.isOwn&&!t[fc("0xe7")]&&!t.isNextTo))[fc("0x136")]((({suggestion:t})=>t));x[fc("0xb5")](...e)}const a=new Map([[t,o]]);for(const t of x){const e=fc("0xef")==t.type?t[fc("0x13d")][fc("0x1a")]:void 0,n=t[fc("0xa4")](),i=Array[fc("0xe5")](a[fc("0x16")]()).find((t=>t[fc("0x127")](n)));i&&(a.delete(i),i[fc("0x20")](n).forEach((t=>{a[fc("0x15f")](t,o)})),"insertion"!=t[fc("0x2c")]&&e!=r&&a.set(i.getIntersection(n),e))}const c=[];for(const[t,o]of a){const x=(0,e.uid)(),a={key:n,oldValue:o,newValue:r};n.length>37&&console[fc("0x33")](fc("0x10f"),{key:n});const l=(fc("0xa1")+(n+"|")+Tc({newValue:r}))[fc("0x65")](0,60),u=this[fc("0x17")]({id:x,type:l,data:a,createdAt:new Date,authorId:s,attributes:i});c[fc("0x111")](u),this._addSuggestionMarker(l,x,s,t)}return c}[fc("0x16b")](t){this._blockAttributeKeys[fc("0x12b")](t)}[fc("0x37")](t){this[fc("0x14c")][fc("0x12b")](t)}[fc("0xc0")](t,e=[],n=[]){this[fc("0x160")](t,((t,...e)=>{this[fc("0xc4")]((()=>{t(...e)}))}));for(const t of e)this[fc("0x37")](t);for(const t of n)this._registerBlockAttribute(t)}[fc("0x15c")](t,e){const n=t[fc("0x43")]();this[fc("0x1b")][fc("0xcf")]((t=>{t[fc("0xa9")](n,{range:e})}))}[fc("0x96")](t){const e=t.id,n=this.editor[fc("0xcc")][fc("0x0")]("collaboration.channelId");this[fc("0xbe")][fc("0x13f")](e)||this[fc("0xbe")].addCommentThread({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this._commentsRepository[fc("0x49")](e);o.unbind(fc("0x12c")),o[fc("0x12c")]=!1,t.commentThread=o}_checkSuggestionCorrectness(t,n,o,r){if(t[fc("0x2c")]!=n||t.subType!=o||t[fc("0xa0")].id!=r)throw this[fc("0x13a")].enableReadOnlyMode(fc("0xfd")),new e.CKEditorError(fc("0xfd"),this)}[fc("0x5d")](t,n){const o=t.getFirstRange();if(n[fc("0xf2")](o))t[fc("0x25")]();else if(o[fc("0x21")](n)){const r=this[fc("0x1b")][fc("0x117")](n[fc("0xf0")].nodeBefore,fc("0x17a"));this[fc("0x15c")](t,this[fc("0x1b")][fc("0xc2")](o[fc("0xf0")],r));const i=(0,e.uid)(),s=t[fc("0xa0")].id,x=t[fc("0x2c")]+":"+t[fc("0x4")];this._setSuggestionData({id:i,type:x,createdAt:new Date,authorId:s,data:t[fc("0x13d")],attributes:t[fc("0x2b")]});const a=this[fc("0x1b")][fc("0x117")](n.end[fc("0xf6")],"after"),c=this._model[fc("0xc2")](a,o.end);this[fc("0x4d")](x,i,s,c)}else if(o[fc("0xba")](n.start)){const e=this._model[fc("0x117")](n[fc("0xf0")][fc("0x176")],fc("0x17a"));this[fc("0x15c")](t,this[fc("0x1b")].createRange(o[fc("0xf0")],e))}else{const e=this[fc("0x1b")][fc("0x117")](n[fc("0x17a")].parent,fc("0xa5"));this[fc("0x15c")](t,this._model.createRange(e,o[fc("0x17a")]))}}[fc("0x29")](t){for(const{suggestion:e,meta:n}of this._findSuggestions(t,fc("0xff"))){if(!n[fc("0x107")])continue;const o=e[fc("0x5")]();for(const e of o)if(!t[fc("0x20")](e)[fc("0x177")])return!0}return!1}_getAuthorFromId(t){const n=this[fc("0x13a")][fc("0x18")][fc("0x0")]("Users")[fc("0x90")](t);if(!n)throw new e.CKEditorError("track-changes-user-not-found",this);return n}[fc("0x64")](t){const e=this[fc("0x13a")][fc("0x18")][fc("0x0")](fc("0x15d")),n=(0,i.hashObject)(fc("0x58")+t);return e.getUser(n)||e.addUser({id:n,name:t})}_createSuggestion(t,e,n,o,r){const i=this[fc("0x39")](o),s=this[fc("0xb")][fc("0x8c")](t,e,n,i,r,(t=>this[fc("0x11e")](n,{attributes:t})));return this.listenTo(s,fc("0xe"),(()=>{this[fc("0x11e")](n,{state:"accepted"})}),{priority:fc("0x60")}),this[fc("0x45")](s,fc("0x1d"),(()=>{this[fc("0x11e")](n,{state:fc("0x31")})}),{priority:fc("0x60")}),this[fc("0x6")][fc("0x15f")](n,s),this[fc("0xe1")][fc("0x15f")](s,"notReady"),s}_splitMarkerName(t){const e=t[fc("0xfb")](":");return{group:e[0],type:e[1],subType:e.length>=5?e[2]:null,id:e[fc("0x177")]<5?e[2]:e[3],authorId:e[fc("0x177")]<5?e[3]:e[4],markerCount:6==e.length?e[5]:null}}[fc("0x12d")](t,n,o){const r=t.getFirstRange(),i=r[fc("0xf0")],s=r.end;this._setSuggestionRange(t,this[fc("0x1b")].createRange(i,n));const x=(0,e.uid)(),a=t[fc("0xa0")].id,c=t[fc("0x2c")]+(t[fc("0x4")]?":"+t[fc("0x4")]:"");this[fc("0x17")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[fc("0x2b")],data:t[fc("0x13d")]});const l=this[fc("0x40")](t);(fc("0x8b")==t.type||l&&this[fc("0xb9")](l))&&(o=this[fc("0x1b")].createPositionBefore(o[fc("0xf6")])),this[fc("0x4d")](c,x,a,this[fc("0x1b")][fc("0xc2")](o,s))}[fc("0x171")](t,e=null){const n=[],o=this[fc("0x13a")][fc("0x18")][fc("0x0")]("Users").me;Array[fc("0xa6")](t)||(t=[t]);for(const r of this.getSuggestions()){if(!r[fc("0xb6")])continue;if(e&&r.type!=e)continue;let i=!1;for(const e of r.getRanges()){for(const s of t){const t=s.start[fc("0xf2")](e[fc("0x17a")])||s.end.isEqual(e[fc("0xf0")]);if(t||s[fc("0x156")](e)){const x=s[fc("0x21")](e)&&pc(this[fc("0x1b")][fc("0x1f")],e[fc("0xf0")],s),a=e.containsRange(s)&&pc(this[fc("0x1b")].schema,s[fc("0xf0")],e);n.push({suggestion:r,meta:{isOwn:o==r.author,isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),i=!0;break}}if(i)break}}return n}[fc("0x4d")](t,e,n,o,r){this[fc("0x1b")][fc("0xcf")]((i=>{let s=fc("0x135")+t+":"+e+":"+n;r&&(s=s+":"+r),i[fc("0x108")](s,{range:o,usingOperation:!0,affectsData:!0})}))}_removeSuggestion(t){const e=t.previous,n=t[fc("0xbc")];t[fc("0xb3")]=null,t.next=null,null!=e&&(e.next=n),null!=n&&(n.previous=e),fc("0xfc")==this[fc("0xe1")].get(t)&&(this[fc("0xe1")].set(t,fc("0x9")),this[fc("0xa8")](fc("0x124"),t,e,n))}_setSuggestionData(t){const n=t.id,o=this.addSuggestionData(t);if(this._adapter&&this[fc("0xe2")][fc("0x100")]){const r=this[fc("0x13a")].plugins[fc("0x0")]("PendingActions"),i=o[fc("0x128")],s=o[fc("0x4")]?o.type+":"+o[fc("0x4")]:o.type,x=this[fc("0x13a")][fc("0x76")],a=r[fc("0x12b")](Jo(x,fc("0x2e"))),c={id:n,type:s,hasComments:i,data:t[fc("0x13d")]||null,originalSuggestionId:t.originalSuggestionId||null,attributes:o[fc("0x2b")]};this[fc("0xe2")][fc("0x100")](c).then((t=>{o._saved=!0,r[fc("0x50")](a),t&&t.createdAt&&(this[fc("0x6")][fc("0x0")](n)[fc("0x8a")]=t[fc("0x8a")])}))[fc("0x84")]((t=>{throw(0,e.logWarning)(fc("0x6a")),this[fc("0x13a")][fc("0x13c")][fc("0x122")]({isUndoable:!1},(()=>{o[fc("0x1d")]()})),o.stopListening(),this._suggestions[fc("0x17d")](o.id),this[fc("0xe1")][fc("0x17d")](o),t}))}return o}[fc("0xb9")](t){return this[fc("0x8e")][fc("0x10d")](t)}_getAttributeKeyFromSubType(t){return fc("0xef")==t[fc("0x2c")]&&t[fc("0x4")][fc("0xfb")]("|")[0]}[fc("0x11e")](t,e){const n=this[fc("0x13a")].plugins[fc("0x0")](fc("0x151")),o=this[fc("0x6e")](t);if(this[fc("0xe2")]&&this[fc("0xe2")][fc("0x109")])if(o[fc("0xdc")]){const o=n[fc("0x12b")](Jo(this.editor[fc("0x76")],fc("0x2e")));this[fc("0xe2")][fc("0x109")](t,e)[fc("0xc7")]((()=>{n[fc("0x50")](o)}))}else o.on("change:_saved",(()=>{this[fc("0x11e")](t,e)}))}[fc("0x94")](t){if(!this._adapter||!this[fc("0xe2")][fc("0x6e")])throw new e.CKEditorError(fc("0xbb"),this);return this._adapter[fc("0x6e")](t)}[fc("0xf1")](t){const{id:e,type:n,subType:o,authorId:r}=this[fc("0x12e")](t),i=this._suggestions.get(e)||this[fc("0x36")](n,o,e,r,{});switch(this._checkSuggestionCorrectness(i,n,o,r),this[fc("0xe1")][fc("0x0")](i)){case fc("0xf9"):this._getSuggestionData(e)[fc("0xc7")]((t=>{let n=Promise[fc("0x32")]();t[fc("0x128")]&&(n=this[fc("0xbe")][fc("0x159")]({channelId:this[fc("0x13a")].config[fc("0x0")](fc("0xe9")),threadId:e})),n[fc("0xc7")]((()=>{this.addSuggestionData(t)[fc("0xdc")]=!0}))})),this[fc("0xe1")][fc("0x15f")](i,fc("0x16d"));break;case fc("0x9"):this._updateSuggestionData(e,{state:fc("0x47")});case fc("0x16e"):this[fc("0xe1")][fc("0x15f")](i,fc("0xfc")),this[fc("0xa8")](fc("0x10a"),i);break;case fc("0xfc"):this.fire(fc("0x78"),i)}return i.addMarkerName(t),i}[fc("0xf8")](t){const e=Array[fc("0xe5")](t),n=e[fc("0x2f")]((t=>fc("0xef")==t[fc("0x2c")]));this[fc("0xd0")](n);const o=e[fc("0x2f")]((t=>!t[fc("0x42")]&&fc("0xef")!=t[fc("0x2c")])),r=this[fc("0xae")]({skipNotAttached:!0}).filter((t=>!t[fc("0x42")]&&fc("0xef")!=t[fc("0x2c")])),i=r[fc("0x2f")]((e=>!t[fc("0x10d")](e))),s=new Map(r[fc("0x136")]((t=>[t,this[fc("0xb")][fc("0xc8")](t[fc("0x2c")],t[fc("0x4")],fc("0x4b"))]))),x=new Map(r[fc("0x136")]((t=>[t,t[fc("0xa4")]()]))),a=new Set,c=new Set;for(let t=0;t<o.length;t++)u(o[t],o,t+1);for(let t=0;t<o.length;t++)u(o[t],i,0);const l=new Set;for(let t=0;t<o[fc("0x177")];t++){const e=o[t];!c[fc("0x10d")](e)&&e[fc("0xb3")]&&(l[fc("0x12b")](e[fc("0xb3")]),e[fc("0xb3")][fc("0xbc")]===e&&(e[fc("0xb3")][fc("0xbc")]=null),e.previous=null),!a[fc("0x10d")](e)&&e[fc("0xbc")]&&(l[fc("0x12b")](e[fc("0xbc")]),e[fc("0xbc")][fc("0xb3")]===e&&(e[fc("0xbc")][fc("0xb3")]=null),e.next=null)}function u(t,e,n){for(let o=n;o<e.length;o++){const n=d(t,e[o]);n&&(n[0][fc("0xbc")]=n[1],n[1].previous=n[0],a[fc("0x12b")](n[0]),c[fc("0x12b")](n[1]))}}function d(t,e){if(t[fc("0x5a")].id!==e.author.id)return null;const n=s.get(t)(t,e,x[fc("0x0")](t),x[fc("0x0")](e));return n&&s[fc("0x0")](e)(t,e,x.get(t),x.get(e))?n[1][fc("0x123")]&&n[1][fc("0x123")][fc("0x177")]?null:n:null}l[fc("0x150")]&&this[fc("0xf8")](l)}[fc("0xd0")](t){if(0==t.length)return;const e=this[fc("0xae")]({skipNotAttached:!0}).filter((t=>fc("0xef")==t[fc("0x2c")]&&t[fc("0xe8")])),n=[],o=new Map;for(const t of e){const e=(0,i.hashObject)(t[fc("0x2b")]);o[fc("0x10d")](e)||(o[fc("0x15f")](e,n[fc("0x177")]),n[fc("0x111")]([]));const r=o.get(e);n[r][fc("0x111")](t)}!function(){n.sort(((t,e)=>{const n=t[0][fc("0x8a")],o=e[0][fc("0x8a")];return n==o?t[0][fc("0x2b")][fc("0x154")]<e[0].attributes[fc("0x154")]?-1:1:n<o?-1:1}));for(const t of n)t[fc("0x3e")](((t,e)=>t.id<e.id?-1:1))}();for(let t=0;t<n[fc("0x177")];t++){if(0==n[t][fc("0x177")])continue;const e=[];for(let o=t+1;o<n[fc("0x177")];o++)0!=n[o][fc("0x177")]&&r(n[t],n[o])&&e[fc("0x111")](o);for(const o of e)n[t]=n[t][fc("0x52")](n[o]),n[o]=[]}for(const t of n)for(let e=0;e<t[fc("0x177")];e++)t[e][fc("0xbc")]=t[e+1]||null;for(const t of n)for(let e=0;e<t[fc("0x177")];e++)t[e][fc("0xb3")]=t[e-1]||null;function r(t,e){if(t[0].author!==e[0][fc("0x5a")])return!1;if(n=t[0],o=e[0],(n[fc("0x128")]||o[fc("0x128")])&&(n.hasComments&&o[fc("0x128")]||!(n.hasComments&&o[fc("0x8a")]<n[fc("0x123")][fc("0xbd")][fc("0x0")](0)[fc("0x8a")]||o[fc("0x128")]&&n[fc("0x8a")]<o.commentThread.comments[fc("0x0")](0).createdAt)))return!1;var n,o;const r=lc(t[0][fc("0x2b")],fc("0x154")),i=lc(e[0][fc("0x2b")],fc("0x154"));return!!Go(r,i)&&(!!t[fc("0x9b")]((t=>e.some((e=>t.getFirstRange()[fc("0xf2")](e[fc("0xa4")]())))))&&e[fc("0x9b")]((e=>t[fc("0xa2")]((t=>e[fc("0xa4")]()[fc("0xf2")](t[fc("0xa4")]()))))))}}[fc("0x97")](t){const e=Array.from(t),n=this[fc("0xae")]({skipNotAttached:!0}),o=n[fc("0x2f")]((e=>!t[fc("0x10d")](e))),r=new Map(e[fc("0x136")]((t=>[t,this[fc("0xb")][fc("0xc8")](t.type,t.subType,fc("0xd7"))]))),i=new Map(n[fc("0x136")]((t=>[t,t.getRanges()])));for(let t=0;t<e[fc("0x177")];t++)if(s(this,e[t],e,t+1))return!0;for(let t=0;t<e[fc("0x177")];t++)if(s(this,e[t],o,0))return!0;return!1;function s(t,e,n,o){for(let s=o;s<n[fc("0x177")];s++){const o=n[s];if(o.type!==e.type||o[fc("0x5a")].id!==e[fc("0x5a")].id||o[fc("0x4")]!==e[fc("0x4")])continue;if(!kc(e,o))continue;if(fc("0xef")==e[fc("0x2c")]&&e.data[fc("0x1a")]!=o[fc("0x13d")][fc("0x1a")])continue;if("attribute"==e.type&&t[fc("0xb9")](e.data[fc("0x16c")]))continue;const x=r[fc("0x0")](e),a=i[fc("0x0")](e),c=i.get(o),l=e.commentThread&&e[fc("0x123")][fc("0x177")],u=o[fc("0x123")]&&o[fc("0x123")][fc("0x177")];if(!l&&x(c,a))return t._joinSuggestions(o,e),i[fc("0x17d")](e),!0;if(!u&&x(a,c))return t[fc("0xf3")](e,o),i.delete(o),!0}return!1}}_joinSuggestions(t,e){if(t[fc("0x42")])for(const n of e[fc("0x5")]())t[fc("0xa")](n);else{const n=e.getFirstRange().end;this[fc("0x15c")](t,this._model[fc("0xc2")](t[fc("0xa4")]()[fc("0xf0")],n))}e[fc("0x25")]()}_getMarkerAnnouncementText(t,e){const n=t[fc("0x63")](fc("0x81"))||t[fc("0x63")](fc("0xef"))?fc("0x155"):t.toUpperCase();return Jo(this[fc("0x13a")][fc("0x76")],e+"_"+n+"_SUGGESTION_ANNOUNCEMENT")}[fc("0x11a")](){const t=this[fc("0x13a")];(0,i.surroundingMarkersDetector)(this[fc("0x1b")],(({left:e,entered:n})=>{const o=[];for(const t of e){const{group:e,type:n}=this[fc("0x12e")](t[fc("0x157")]);if(fc("0x13e")===e){o[fc("0x111")](this[fc("0xbf")](n,fc("0xaa")));break}}for(const t of n){const{group:e,type:n}=this[fc("0x12e")](t[fc("0x157")]);if("suggestion"===e){o[fc("0x111")](this[fc("0xbf")](n,fc("0x15b")));break}}o[fc("0x177")]&&t.ui[fc("0x79")][fc("0x168")](fc("0x12f"),o[fc("0xd7")](" "))}))}[fc("0x82")](t){if(null!==this[fc("0x22")])return!1;const e=this[fc("0x13a")],n=e[fc("0x13c")][fc("0x6b")][fc("0x10c")][fc("0x2")]();if(0==n[fc("0x177")])return!1;const o=[],r=n[fc("0x2f")]((t=>fc("0xef")==t[fc("0x2c")])),i=n[fc("0x2f")]((t=>fc("0xdd")==t[fc("0x2c")]&&"$text"!=t[fc("0x157")])),s=n[fc("0x2f")]((t=>fc("0x50")==t.type&&fc("0x178")!=t.name));for(const t of r)o.push({key:t[fc("0x158")],newValue:t.attributeNewValue,oldValue:t[fc("0x140")],range:(x=t[fc("0x7e")],null==x[fc("0x17a")].nodeBefore&&x[fc("0x17a")].parent==x[fc("0xf0")][fc("0x165")]?Cc(x.start[fc("0x165")],e[fc("0x13c")]):x)});var x;for(const t of i){const n=s[fc("0x174")]((e=>e[fc("0x167")].isEqual(t[fc("0x167")])));n&&o.push({key:fc("0x105"),newValue:t[fc("0x157")],oldValue:n.name,range:e[fc("0x13c")][fc("0x139")](t[fc("0x167")][fc("0x165")])})}return 0!=o[fc("0x177")]&&this[fc("0x11b")](t,o)}[fc("0x4c")](t){let e=!1;const n=this[fc("0x13a")].model[fc("0x6b")][fc("0x10c")][fc("0x144")]().filter((t=>t[fc("0x13d")].newRange&&t[fc("0x157")][fc("0x63")](fc("0xee"))));for(const o of n){const{subType:n,id:r}=this._splitMarkerName(o[fc("0x157")]),i=n[fc("0xfb")]("|")[0];for(const n of this[fc("0xae")]({skipNotAttached:!0}))n.id!=r&&"attribute"==n.type&&n[fc("0x13d")]&&n[fc("0x13d")][fc("0x16c")]==i&&n[fc("0xa4")]()[fc("0x127")](o.data[fc("0xc1")])&&(this[fc("0x16f")](n,o[fc("0x13d")][fc("0xc1")],t),e=!0)}return e}_recordAttributeChanges(t){if(null!==this._recordAttributeSuggestionsFromVersion)return void t();const n=this[fc("0x13a")];this[fc("0x22")]=n[fc("0x13c")].document[fc("0xce")],t();const o=new Map;for(const t of n.model.document.history[fc("0x11f")](this[fc("0x22")]))if(["rename",fc("0x27"),fc("0xcd"),fc("0x1c")][fc("0x3d")](t.type)){const e=t.batch,n=o.get(e)||[];n[fc("0x111")](t),o[fc("0x15f")](e,n)}this[fc("0x22")]=null;for(const[t,r]of o){const o=(0,e.uid)();n[fc("0x13c")][fc("0x122")](t,(t=>{const e=[];for(const t of r){let r,i,s,x;if("rename"==t[fc("0x2c")]){const e=t;r=Cc(e[fc("0x167")].nodeAfter,n.model),i=fc("0x105"),s=e.newName,x=e[fc("0xf")]}else{const e=t,o=this[fc("0xb9")](e.key),a=this[fc("0x14c")][fc("0x10d")](e.key);if(!o&&!a)continue;r=o?Cc(e[fc("0x7e")][fc("0xf0")][fc("0x165")],n[fc("0x13c")]):e[fc("0x7e")],i=e[fc("0x16c")],s="removeAttribute"==t[fc("0x2c")]?void 0:e[fc("0x72")],x=e[fc("0x1a")]}this.markAttributeChange(r,i,x,s,{groupId:o}),e[fc("0x111")]({range:r,key:i,newValue:s,oldValue:x})}this[fc("0x11b")](t,e)}))}}_reduceExistingSuggestions(t,e){if(0==e[fc("0x177")])return!1;let n=!1;for(const o of e){const e=this[fc("0x171")](o[fc("0x7e")],fc("0xef")).filter((t=>!t.meta[fc("0x12a")]))[fc("0x136")]((t=>t[fc("0x13e")])),r=(0,i.hashObject)({newValue:o[fc("0x72")]});e[fc("0x2f")]((t=>{const[e,n]=t[fc("0x4")][fc("0xfb")]("|");return e==o[fc("0x16c")]&&n!=r}))[fc("0x99")]((e=>{this[fc("0x16f")](e,o[fc("0x7e")],t),n=!0}))}return n}_reduceSuggestionAttributeRange(t,e,n){const o=t[fc("0xa4")]()[fc("0x20")](e);0!==o[fc("0x177")]?1!==o[fc("0x177")]?this[fc("0x12d")](t,e[fc("0xf0")],e[fc("0x17a")]):this[fc("0x15c")](t,o[0]):n[fc("0xe6")](t[fc("0x43")]())}}class bc{constructor(t){this[fc("0x51")]=t,this[fc("0x1b")]=t.model,this[fc("0x13")]=new Map,this[fc("0x110")]=new Map,this[fc("0x10")]()}[fc("0x8c")](t,e,n,o,r,i){return new Yo(this[fc("0x1b")],{type:t,subType:e,id:n,author:o,creator:o,attributes:r,onAttributesChange:i,onAccept:(...n)=>this[fc("0xc8")](t,e,"accept")(...n),onDiscard:(...n)=>this.getSuggestionCallback(t,e,fc("0x1d"))(...n)})}[fc("0x19")](t,e,n,o){const r=t+":"+e+":"+n;this[fc("0x13")].set(r,o)}[fc("0xc8")](t,e,n){const o=t+":"+e+":"+n;return this._customCallbacks[fc("0x0")](o)||this[fc("0x110")][fc("0x0")](t+":"+n)}[fc("0x10")](){const t=()=>!1,e=t=>{t.sort(((t,e)=>t[fc("0xf0")][fc("0x10e")](e.start)?1:-1)),this[fc("0x1b")].change((e=>{for(const n of t){let t;t=n[fc("0x17a")][fc("0xaf")]&&n[fc("0x17a")][fc("0xf6")]==n.start.nodeAfter?e[fc("0x14a")](n[fc("0xf0")][fc("0x165")],"on"):e.createSelection(n),this[fc("0x1b")].deleteContent(t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{e&&this._model.change((n=>{const{commandName:o,commandParams:r=[]}=e,i=t[fc("0x136")]((t=>(Ec(t)&&(t=this._model[fc("0xc2")](t[fc("0x17a")])),t)))[fc("0x2f")]((t=>"$graveyard"!==t.root[fc("0xcb")]));if(i.length<1)return;const x=Array[fc("0xe5")](this._model[fc("0x6b")].selection[fc("0x5")]()).map((t=>s.LiveRange[fc("0x74")](t)));n[fc("0x103")](i);for(const t of this[fc("0x51")][fc("0x101")].commands())t[fc("0x91")]();r[fc("0x111")]({forceDefaultExecution:!0}),this[fc("0x51")][fc("0x161")](o,...r);const a=x[fc("0x2f")]((t=>"$graveyard"!=t[fc("0xc")][fc("0xcb")]));a[fc("0x177")]>0&&n[fc("0x103")](a);for(const t of x)t[fc("0x34")]()}))},o=(t,e)=>1==t[fc("0x177")]&&1==e.length&&t[0].end[fc("0xf2")](e[0][fc("0xf0")]),r=(t,e,n,o)=>Ac(t,e,n,o,this[fc("0x1b")])?[t,e]:Ac(e,t,o,n,this[fc("0x1b")])?[e,t]:null;this[fc("0x110")][fc("0x15f")](fc("0x69"),t),this._defaultCallbacks[fc("0x15f")]("insertion:discard",e),this[fc("0x110")][fc("0x15f")](fc("0x115"),o),this._defaultCallbacks.set(fc("0xd8"),r),this[fc("0x110")][fc("0x15f")]("deletion:accept",e),this._defaultCallbacks[fc("0x15f")](fc("0x164"),t),this[fc("0x110")][fc("0x15f")](fc("0x106"),o),this[fc("0x110")][fc("0x15f")](fc("0x113"),r),this[fc("0x110")][fc("0x15f")](fc("0x120"),n),this[fc("0x110")][fc("0x15f")](fc("0x112"),t),this._defaultCallbacks[fc("0x15f")](fc("0x8d"),o),this[fc("0x110")].set(fc("0x85"),t),this[fc("0x110")][fc("0x15f")](fc("0x12"),n),this[fc("0x110")][fc("0x15f")](fc("0x137"),t),this._defaultCallbacks[fc("0x15f")]("formatBlock:join",o),this[fc("0x110")][fc("0x15f")](fc("0xb8"),t),this._defaultCallbacks[fc("0x15f")](fc("0x28"),t),this._defaultCallbacks[fc("0x15f")](fc("0x114"),((t,e)=>{if(!e)return;const n=this[fc("0x51")][fc("0x18")].get(hc);this[fc("0x1b")][fc("0xcf")]((o=>{if(fc("0x105")==e.key)for(const n of t){const t=n[fc("0xf0")][fc("0x165")],r=e.oldValue;o[fc("0x6d")](t,r)}else if(n[fc("0xb9")](e[fc("0x16c")]))for(const n of t)void 0!==e[fc("0x1a")]?o.setAttribute(e[fc("0x16c")],e.oldValue,n.start.nodeAfter):o.removeAttribute(e[fc("0x16c")],n[fc("0xf0")][fc("0x165")]);else for(const n of t)e[fc("0x1a")]?o.setAttribute(e[fc("0x16c")],e.oldValue,n):o[fc("0xcd")](e.key,n)}))})),this[fc("0x110")][fc("0x15f")](fc("0x67"),o)}}function pc(t,e,n){for(const o of e[fc("0xf6")][fc("0x173")]({includeSelf:!0,parentFirst:!0})){if(o[fc("0xc")]==o)return!1;if(!n[fc("0x162")](o))return!1;if(t[fc("0x119")](o)||t[fc("0x92")](o))return!0}return!1}function Ec(t){return t[fc("0x17a")][fc("0xf6")]==t[fc("0xf0")][fc("0x165")]&&t.end[fc("0x57")]}function _c(t,e,n,o){const r=t=>!t.item.is("$textProxy")&&!o.isObject(t[fc("0x41")]),i=t[fc("0xf0")][fc("0x10b")](r),s=t[fc("0x17a")][fc("0x10b")](r,{direction:"backward"});return!(t[fc("0xf0")].isEqual(i)&&t.end.isEqual(s)||(i.isBefore(s)?n[fc("0xa9")](e,{range:n[fc("0xc2")](i,s)}):n[fc("0xe6")](e),0))}function Tc(t){return(0,i.hashObject)(t)}function yc(t){const e=t[fc("0xf0")][fc("0x165")];return e&&e.is("element")}function Cc(t,e){const n=e.schema.isObject(t)||e[fc("0x1f")][fc("0x125")](t);return e.createRange(e[fc("0x117")](t,fc("0x5c")),n?e[fc("0x38")](t):e[fc("0x117")](t,fc("0x17a")))}function Ac(t,e,n,o,r){if(!kc(t,e))return!1;if(n[fc("0x17a")][fc("0xf2")](o[fc("0xf0")]))return!0;if(t[fc("0x2c")]!=e[fc("0x2c")])return!1;if(!n.end[fc("0x132")](o[fc("0xf0")]))return!1;const i=r.createRange(n[fc("0x17a")],o[fc("0xf0")])[fc("0x23")]();for(const t of i)if([fc("0x56"),"elementEnd"][fc("0x3d")](t[fc("0x2c")])&&r[fc("0x1f")][fc("0x92")](t[fc("0x41")]))return!1;return!0}function kc(t,e){return!(!t[fc("0xe8")]||!e[fc("0xe8")])&&Go(t[fc("0x2b")],e[fc("0x2b")])}function Ic(t,e){const n=Sc(t[fc("0x2b")]),o=Sc(e);if(!t[fc("0xe8")])return!1;for(const t of Object[fc("0x16")](o))if(!Go(n[t],o[t]))return!1;return!0}function Sc(t){const e=Object[fc("0x5f")]({},t);return delete e[fc("0x35")],delete e[fc("0x80")],e}const Rc=["_acceptCommand","add","_setPendingAction","listenTo","view","commentThreadController","remove","canEditAt","_editor","discardSuggestion","canDiscard","get","model","_discardCommand","getRanges","bind","acceptSuggestion","destroy","_pendingAction","PENDING_ACTION_SUGGESTION","isEnabled","execute","commands","stopListening","plugins","locale","isDirty","canAccept","unbind","PendingActions","_removePendingAction"];var Nc,vc;Nc=Rc,vc=230,function(t){for(;--t;)Nc.push(Nc.shift())}(++vc);const Lc=function(t,e){return Rc[t-=0]};class Mc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this.model=e,this.view=n,this[Lc("0x17")]=o,this[Lc("0x1a")]=t,this[Lc("0x12")]=t[Lc("0x9")].get("acceptSuggestion"),this._discardCommand=t[Lc("0x9")][Lc("0x1d")]("discardSuggestion"),this[Lc("0x16")][Lc("0x2")]("isEnabled").to(this[Lc("0x12")],this[Lc("0x0")],((t,e)=>t||e)),this[Lc("0x16")][Lc("0x2")](Lc("0xe")).to(this[Lc("0x12")],Lc("0x7"),(t=>t&&this._editor[Lc("0x1e")].canEditAt(e.getRanges()))),this.view[Lc("0x2")]("canDiscard").to(this[Lc("0x0")],"isEnabled",(t=>t&&this[Lc("0x1a")][Lc("0x1e")][Lc("0x19")](e[Lc("0x1")]()))),this[Lc("0x5")]=null,n[Lc("0xd")]&&this[Lc("0x14")](),this[Lc("0x15")](n,Lc("0x3"),(()=>this[Lc("0x3")]())),this[Lc("0x15")](n,Lc("0x1b"),(()=>this[Lc("0x1b")]())),this.listenTo(n,"change:isDirty",(()=>{n[Lc("0xd")]?this[Lc("0x14")]():this._removePendingAction()}))}acceptSuggestion(){this[Lc("0x12")][Lc("0x8")](this[Lc("0x1e")].id)}[Lc("0x1b")](){this[Lc("0x0")].execute(this.model.id)}[Lc("0x4")](){this[Lc("0x16")][Lc("0xf")](Lc("0x7")),this.view[Lc("0xf")](Lc("0xe")),this[Lc("0x16")][Lc("0xf")](Lc("0x1c")),this[Lc("0xa")](),this[Lc("0x17")][Lc("0x4")](),this[Lc("0x5")]&&this[Lc("0x11")]()}[Lc("0x14")](){const t=Jo(this._editor[Lc("0xc")],Lc("0x6"));this._pendingAction=this[Lc("0x1a")][Lc("0xb")].get(Lc("0x10"))[Lc("0x13")](t)}_removePendingAction(){null!==this[Lc("0x5")]&&this[Lc("0x1a")][Lc("0xb")].get(Lc("0x10"))[Lc("0x18")](this[Lc("0x5")]),this[Lc("0x5")]=null}}const wc=["CommentView","_model","editor","addComment","commentThreadInputView","commentInputView","descriptionParts","delegate","disabledSubmit","locale","isActive","_config","_createCommentViews","value","showInput","_localUser","length","canAccept","commentThread","assign","set","commentsListView","isReadOnly","hasDirtyComment","editorConfig","setData","isEnabled","authoredAt","bind","destroy","_createCommentThreadInputView","isDirty","focus","disableComments","submit","removeComment"];var Oc,Fc;Oc=wc,Fc=102,function(t){for(;--t;)Oc.push(Oc.shift())}(++Fc);const Dc=function(t,e){return wc[t-=0]};class Bc extends r.View{constructor(t,e,n,o){super(t),this[Dc("0x1b")]=null,this[Dc("0xa")]=null,this[Dc("0x1a")](Dc("0x10"),!1),this.set(Dc("0x21"),e[Dc("0x21")]),this[Dc("0x22")](Dc("0x21")).to(e),this[Dc("0x1a")](Dc("0xc"),[]),this[Dc("0x1a")](Dc("0x1"),!1),this[Dc("0x1a")](Dc("0x20"),!1),this[Dc("0x1a")](Dc("0x17"),!1),this[Dc("0x1a")]("canDiscard",!1),this[Dc("0x7")]=e,this._localUser=n,this[Dc("0x11")]=o,o[Dc("0x3")]?this[Dc("0x1a")]("length",1):this._createCommentViews()}[Dc("0x2")](){this.element.focus()}[Dc("0x23")](){this[Dc("0x1b")]&&this[Dc("0x1b")][Dc("0x23")](),this[Dc("0xa")]&&this[Dc("0xa")][Dc("0x23")](),super.destroy()}[Dc("0x12")](){const{CommentsListView:t}=this._config;this[Dc("0x1b")]=new t(this.locale,this[Dc("0x7")].commentThread,Object[Dc("0x19")]({CommentView:this._config[Dc("0x6")]},this._config)),this[Dc("0x1b")][Dc("0xd")](Dc("0x5")).to(this),this.commentsListView[Dc("0xd")]("updateComment").to(this),this[Dc("0x1b")][Dc("0x22")]("isActive").to(this),this[Dc("0x1a")](Dc("0x16"),this[Dc("0x1b")][Dc("0x16")]+1),this[Dc("0x22")](Dc("0x16")).to(this[Dc("0x1b")],Dc("0x16"),(t=>t+1)),this.commentThreadInputView=this[Dc("0x0")](),this.on("removeComment",(()=>this[Dc("0x2")]())),this.bind(Dc("0x1")).to(this.commentsListView,Dc("0x1d"),this.commentThreadInputView[Dc("0xb")],Dc("0x13"),((t,e)=>t||!!e))}[Dc("0x0")](){const{CommentThreadInputView:t}=this[Dc("0x11")],e=new t(this[Dc("0xf")],this[Dc("0x15")],this._config[Dc("0x1e")]),n=e.commentInputView;return e[Dc("0x22")](Dc("0x14")).to(this,Dc("0x10"),this[Dc("0x7")][Dc("0x18")],Dc("0x1c"),n,"value",((t,e,n)=>!!n||t&&!e)),n.on(Dc("0x4"),((t,e)=>{this.fire(Dc("0x9"),e),n[Dc("0x8")][Dc("0x1f")]("")})),n.on("cancel",(()=>this[Dc("0x2")]())),n.bind(Dc("0xe")).to(this[Dc("0x7")][Dc("0x18")],Dc("0x1c")),e}}const Pc=["ck-annotation__info-time","span","push","getUserViewNotificationText","extendTemplate","editorReady","ck-suggestion-wrapper","createElement","ck-annotation__main","commentThreadInputView","join",'<span class="ck-suggestion-type">',"ck-suggestion__info-name",'" title="',"ck-suggestion","editorDestroyed","source","acceptButton",'<span class="ck-suggestion-color" style="background-color: ',"ck-annotation__info","commentThread","children","authoredAt","bind","canAccept","type","ck-suggestion-wrapper--active","bindTemplate","ck-annotation","@external","change:description","attributes","ck-annotation__actions","execute","cancel","userView","importWord","_descriptionElement","delegate","getTemplate","EXTERNAL_AVATAR","EXTERNAL_IMPORT_WORD_SUGGESTION","ck-suggestion__actions","setTemplate","<p>","element","ck-suggestion--discard","ck-suggestion--accept","acceptSuggestion","ck-comment__info-time","canDiscard","content","isEnabled","description","Accept suggestion","descriptionParts",".ck-annotation__content-wrapper","innerText","locale","check","innerHTML","_config","isExternal","</p>","time","discardSuggestion","ck-suggestion-","render","_createButton","getExternalSuggestionNote","div","isActive","formatDateTime","discardButton","creator","</span>","commentsListView","_model","EXTERNAL_SUGGESTION","set","ck-annotation__user","ck-suggestion--disabled-comments","author","name","ck-suggestion__info","EXTERNAL_IMPORT_WORD_AVATAR","ck-annotation__content-wrapper","fire"];var Uc,jc;Uc=Pc,jc=266,function(t){for(;--t;)Uc.push(Uc.shift())}(++jc);const Gc=function(t,e){return Pc[t-=0]};class Vc extends Bc{constructor(e,n,o,r){super(e,n,o,r),this[Gc("0x4d")]("type",""),this[Gc("0x15")](Gc("0x17")).to(this,Gc("0x35"),(t=>t&&t[0]?t[0].type:"")),this[Gc("0x15")]("description").to(this,Gc("0x35"),this,Gc("0x45"),((t,e)=>{let n="";for(const e of t)n+=Gc("0x2a")+Hc(e[Gc("0x31")],e.color)+Gc("0x3d");return e?n:(0,i.trimHtml)(n,{limit:140})})),this[Gc("0x23")]=null,this[Gc("0xf")]=this._createButton(Jo(e,Gc("0x34")),t.icons[Gc("0x39")],Gc("0x2d"),Gc("0x2e"),"sw"),this[Gc("0xf")][Gc("0x15")](Gc("0x32")).to(this,Gc("0x16")),this[Gc("0x47")]=this[Gc("0x42")](Jo(e,"Discard suggestion"),t.icons[Gc("0x20")],Gc("0x2c"),Gc("0x3f"),"sw"),this.discardButton.bind(Gc("0x32")).to(this,Gc("0x30")),this[Gc("0x21")]=new i.UserView(e,this[Gc("0x4b")][Gc("0x50")],this[Gc("0x1")]()),this[Gc("0x21")][Gc("0x2")]({attributes:{class:["ck-suggestion__user",Gc("0x4e")]}}),this[Gc("0x29")](this[Gc("0x25")]())}[Gc("0x25")](){const t=this[Gc("0x19")],e=[{tag:Gc("0x44"),attributes:{class:[Gc("0x52"),Gc("0x11")]},children:[{tag:Gc("0x57"),children:[{text:this[Gc("0x21")][Gc("0x51")]}],attributes:{class:[Gc("0xa"),"ck-annotation__info-name"]}},{tag:Gc("0x3e"),attributes:{datetime:t.to(Gc("0x14")),class:[Gc("0x2f"),Gc("0x56")]},children:[{text:t.to(Gc("0x14"),(t=>this[Gc("0x3b")][Gc("0x46")](t)))}]}]},{tag:Gc("0x44"),attributes:{class:[Gc("0x28"),Gc("0x1e")]},children:[this[Gc("0xf")],this[Gc("0x47")]]},{tag:Gc("0x44"),attributes:{class:[Gc("0x54")]}}];this[Gc("0x4b")].isExternal&&e[Gc("0x0")]({tag:Gc("0x44"),attributes:{class:["ck-comment__external"]},children:[{text:this[Gc("0x43")]()}]});const n={tag:"div",attributes:{class:[Gc("0x4"),t.if(Gc("0x45"),Gc("0x18")),t.to(Gc("0x17"),(t=>Gc("0x40")+t)),this._config.disableComments&&Gc("0x4f")],"data-suggestion-id":this[Gc("0x4b")].id,"data-thread-id":this._model[Gc("0x12")].id,"data-author-id":this[Gc("0x4b")].author.id,tabindex:-1},children:[{tag:Gc("0x44"),attributes:{class:[Gc("0xc"),Gc("0x1a")]},children:[this[Gc("0x21")],{tag:Gc("0x44"),attributes:{class:["ck-suggestion__main",Gc("0x6")]},children:e}]}]};return this[Gc("0x4a")]&&this[Gc("0x7")]&&(n[Gc("0x13")][Gc("0x0")](this[Gc("0x4a")],this[Gc("0x7")]),this[Gc("0x4a")][Gc("0x24")](Gc("0x3")).to(this),this[Gc("0x4a")].delegate("editorDestroyed").to(this),this[Gc("0x7")][Gc("0x24")](Gc("0x3")).to(this),this[Gc("0x7")][Gc("0x24")](Gc("0xd")).to(this)),n}render(){super[Gc("0x41")](),this[Gc("0x23")]=this[Gc("0x2b")].querySelector(Gc("0x36")),this[Gc("0x23")].innerHTML=this[Gc("0x33")],this.on(Gc("0x1c"),((t,e,n)=>{this[Gc("0x23")][Gc("0x3a")]=n}))}_createButton(t,e,n,o,i){const s=new r.ButtonView(this[Gc("0x38")]);return s[Gc("0x4d")]({label:t,icon:e,tooltip:!0,tooltipPosition:i}),s[Gc("0x2")]({attributes:{class:n}}),s.on(Gc("0x1f"),(()=>{this[Gc("0x55")](o,this[Gc("0x4b")].id)})),s}[Gc("0x43")](){return"importWord"===this[Gc("0x4b")][Gc("0x1d")]["@external"][Gc("0xe")]?Jo(this[Gc("0x38")],Gc("0x27")):Jo(this.locale,Gc("0x4c"))}[Gc("0x1")](){return this._model[Gc("0x3c")]?Gc("0x22")===this._model[Gc("0x1d")][Gc("0x1b")][Gc("0xe")]?Jo(this[Gc("0x38")],Gc("0x53"),this[Gc("0x4b")][Gc("0x48")].name):Jo(this[Gc("0x38")],Gc("0x26"),this._model[Gc("0x48")][Gc("0x51")]):null}}function Hc(t,e){let n="";return n+=t.split("*").map(((t,e)=>e%2!=0?Gc("0x9")+zc(t)+Gc("0x49"):zc(t)))[Gc("0x8")](""),e&&(n+=Gc("0x10")+e.value+Gc("0xb")+e.title+'"></span>'),n}function zc(t){const e=document[Gc("0x5")](Gc("0x57"));return e[Gc("0x37")]=t,e[Gc("0x3a")]}const Wc=["descriptionParts","CommentView","reduce","comments","push","_destroyController","button","getFirstRange","map","_refreshActiveMarkers","suggestion-","keys","mainView","change:activeAnnotations","isMultiRange","getRanges","EditorAnnotations","getByInnerView","source","Accept all suggestions","config","execute","previous","trackChanges.SuggestionThreadView","toMany","_annotationViews","editing","createCommentThreadController","_handleControllerBuffer","unbind","trackChanges","discardSelectedSuggestions","editor","add","bind","createAnnotation","hasSuggestion","SuggestionThreadView","_initializeController","size","discardButton","isInContent","has","head","discardAllSuggestions","from","Accept all selected suggestions","getJoined","_descriptionFactory","_updateController","get","getDescriptions","clear","suggestionChanged","CommentsRepository","destroy","_unbindEditors","trackChanges.disableComments","refreshSelectedViews","acceptButton","delete","isDirty","filter","isEnabled","_handleSuggestionControllerDelayed","stopListening","activeAnnotations","acceptAllSuggestions","TrackChangesEditing","values","view","Discard all selected suggestions","plugins","componentFactory","listenTo","_createUIButton","change:previous","requires","Annotations","isOn","define","Track changes","getMarkerNames","TrackChangesUI","focus","arrowView","set","buttonView","type","length","_viewToController","_disableComments","value","_suggestionToController","commandName","getAllAdjacentSuggestions","comments.editorConfig","locale","commands","model","separator","_bindAnnotationToEditors","commentThread"];var Kc,qc;Kc=Wc,qc=311,function(t){for(;--t;)Kc.push(Kc.shift())}(++qc);const Xc=function(t,e){return Wc[t-=0]};class $c extends t.Plugin{static get[Xc("0x4b")](){return[hc,i.Users,Xc("0x34"),Xc("0x4c"),Xc("0xe")]}static get pluginName(){return Xc("0x51")}constructor(t){super(t),this._suggestionToController=new Map,this[Xc("0x58")]=new Map,this._annotationViews=new Map,this[Xc("0x1a")]=new Map;const e=this[Xc("0x1e")][Xc("0x12")];e.define(Xc("0x15"),Vc),e[Xc("0x4e")](Xc("0x37"),!1),this._disableComments=e.get(Xc("0x37"))}[Xc("0x3e")](t,e){0===this[Xc("0x1a")][Xc("0x25")]&&setTimeout((()=>{for(const[t,e]of this._handleControllerBuffer){const n=this._suggestionToController.has(t);n||e?n&&e&&this[Xc("0x3")](t):this[Xc("0x24")](t)}this[Xc("0x1e")][Xc("0x46")][Xc("0x30")](Xc("0xe"))[Xc("0x38")](),this[Xc("0x7")](),this[Xc("0x1a")][Xc("0x32")]()}),10),this[Xc("0x1a")][Xc("0x54")](t,e)}init(){const t=this[Xc("0x1e")],e=t[Xc("0x46")][Xc("0x30")](Xc("0x42")),n=t.plugins[Xc("0x30")](Xc("0x4c")),o=t.plugins[Xc("0x30")](Xc("0xe")),r=t[Xc("0x46")][Xc("0x30")]("CommentsRepository");t.ui[Xc("0x47")][Xc("0x1f")](Xc("0x1c"),(t=>this[Xc("0x49")](t))),o.addSourceCollector((()=>{const t=[];for(const[e,n]of Array[Xc("0x2b")](this._suggestionToController)){const o=e.getAllAdjacentSuggestions(),r=[];for(const t of o){if(!t[Xc("0x27")])continue;if(t[Xc("0xc")]){r.push(...t[Xc("0xd")]());continue}const e=t[Xc("0x5")]();if(r[Xc("0x57")]>0){const t=r[0][Xc("0x2d")](e);if(t){r[0]=t;continue}}r[Xc("0x2")](e)}t[Xc("0x2")]([n[Xc("0x44")],r])}return t})),this[Xc("0x48")](e,"suggestionLoaded",((t,e)=>{this[Xc("0x48")](e,Xc("0x4a"),((t,n,o,r)=>{e[Xc("0x27")]&&(null==o?(this._updateController(r.head),this._handleSuggestionControllerDelayed(e,!1)):(this[Xc("0x2f")](o[Xc("0x29")]),null==r&&this[Xc("0x3e")](e,!0)))})),null!==e[Xc("0x14")]?this[Xc("0x2f")](e[Xc("0x29")]):this[Xc("0x3e")](e,!1)})),this.listenTo(e,"suggestionUnloaded",((t,e,n)=>{this[Xc("0x3f")](e,Xc("0x4a")),this[Xc("0x1a")].delete(e),this[Xc("0x5b")][Xc("0x28")](e)&&this._destroyController(e),n&&this[Xc("0x2f")](n[Xc("0x29")])})),this[Xc("0x48")](e,Xc("0x33"),((t,e)=>{this[Xc("0x2f")](e)})),this.listenTo(n,Xc("0xb"),(()=>{this[Xc("0x7")]()})),this[Xc("0x48")](r,"addComment",((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Xc("0x22")](n))return;const r=e.getSuggestion(n);this[Xc("0x5b")][Xc("0x30")](r)[Xc("0x44")][Xc("0x52")]()}),{priority:"lowest"})}[Xc("0x7")](){const t=this.editor[Xc("0x46")][Xc("0x30")](Xc("0x4c")),e=this[Xc("0x1e")][Xc("0x46")][Xc("0x30")]("TrackChangesEditing"),n=Array[Xc("0x2b")](t[Xc("0x40")],(t=>t.innerView))[Xc("0x3c")]((t=>this[Xc("0x58")][Xc("0x28")](t))),o=[];for(const t of n){const e=this[Xc("0x58")][Xc("0x30")](t)[Xc("0x61")][Xc("0x5d")]();o.push(...e[Xc("0x0")](((t,e)=>[...t,...e[Xc("0x50")]()]),[]))}e.activeMarkers=o}_createUIButton(t){const n=(0,r.createDropdown)(t,r.SplitButtonView),o=this.editor[Xc("0x60")][Xc("0x30")](Xc("0x1c")),i=Jo(t,Xc("0x4f"));n[Xc("0x55")][Xc("0x54")]({tooltip:i,label:i,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[Xc("0x55")][Xc("0x20")](Xc("0x4d")).to(o,Xc("0x5a")),n[Xc("0x55")].on(Xc("0x13"),(()=>{o[Xc("0x13")](),this[Xc("0x1e")].editing[Xc("0x44")][Xc("0x52")]()}));const s=new e.Collection,x=[{type:"switchbutton",model:{withText:!0,label:i,commandName:Xc("0x1c")}},{type:"separator"},{type:Xc("0x4"),model:{withText:!0,label:Jo(t,Xc("0x11")),commandName:Xc("0x41")}},{type:Xc("0x4"),model:{withText:!0,label:Jo(t,Xc("0x2c")),commandName:"acceptSelectedSuggestions"}},{type:Xc("0x4"),model:{withText:!0,label:Jo(t,"Discard all suggestions"),commandName:Xc("0x2a")}},{type:Xc("0x4"),model:{withText:!0,label:Jo(t,Xc("0x45")),commandName:Xc("0x1d")}}];for(const t of x){let e={type:Xc("0x62")};if(t.model){const n=new r.Model(t[Xc("0x61")]),o=this.editor[Xc("0x60")][Xc("0x30")](n[Xc("0x5c")]);n[Xc("0x20")](Xc("0x4d"),Xc("0x3d")).to(o,"value",Xc("0x3d")),e={type:t[Xc("0x56")],model:n}}s[Xc("0x1f")](e)}(0,r.addListToDropdown)(n,s);const a=x[Xc("0x3c")]((t=>null!=t[Xc("0x61")]))[Xc("0x6")]((t=>this[Xc("0x1e")][Xc("0x60")].get(t.model.commandName))),c=n[Xc("0x55")];return c.actionView[Xc("0x1b")]("isEnabled"),c.arrowView[Xc("0x1b")](Xc("0x3d")),c.actionView[Xc("0x20")](Xc("0x3d")).to(o,Xc("0x3d")),c[Xc("0x53")].bind(Xc("0x3d"))[Xc("0x16")](a,Xc("0x3d"),((...t)=>t.some((t=>t)))),n.on(Xc("0x13"),(t=>{this.editor[Xc("0x13")](t[Xc("0x10")][Xc("0x5c")]),this[Xc("0x1e")].editing[Xc("0x44")][Xc("0x52")]()})),n}[Xc("0x24")](t){const e=this.editor,n=e[Xc("0x12")],o=e[Xc("0x46")].get(Xc("0x4c")),r=e.plugins[Xc("0x30")]("CommentsRepository"),s=e.plugins[Xc("0x30")](Xc("0xe")),x=e[Xc("0x46")][Xc("0x30")](i.Users).me,a=n[Xc("0x30")](Xc("0x1c"))[Xc("0x23")],{CommentsListView:c,CommentThreadInputView:l}=e[Xc("0x46")][Xc("0x30")]("CommentsUI");let u,d;this._annotationViews[Xc("0x28")](t.id)?(d=this[Xc("0x17")][Xc("0x30")](t.id),u=d[Xc("0xa")]):(u=new a(e[Xc("0x5f")],t,x,{disableComments:this[Xc("0x59")],editorConfig:n[Xc("0x30")](Xc("0x5e")),maxCommentsWhenCollapsed:n.get("comments.maxCommentsWhenCollapsed"),maxThreadTotalWeight:n.get("comments.maxThreadTotalWeight"),maxCommentCharsWhenCollapsed:n[Xc("0x30")]("comments.maxCommentCharsWhenCollapsed"),formatDateTime:(0,i.getDateTimeFormatter)(n[Xc("0x30")]("locale")),CommentView:n[Xc("0x30")](Xc("0x1"))[Xc("0x66")],CommentsListView:c,CommentThreadInputView:l}),u[Xc("0x39")].on(Xc("0x13"),(()=>{e[Xc("0x18")][Xc("0x44")][Xc("0x52")]()})),u[Xc("0x26")].on(Xc("0x13"),(()=>{e[Xc("0x18")][Xc("0x44")][Xc("0x52")]()})),d=o.createAnnotationView(this[Xc("0x1e")][Xc("0x5f")],u),d[Xc("0x20")](Xc("0x3b")).to(u,Xc("0x3b")),d[Xc("0x20")](Xc("0x57")).to(u),d[Xc("0x20")](Xc("0x56")).to(u,Xc("0x56"),(t=>Xc("0x8")+t)),this[Xc("0x17")].set(t.id,d));const g=r[Xc("0x19")](t[Xc("0x64")],u),f=new Mc(e,t,u,g),m=t.getAllAdjacentSuggestions()[Xc("0x3c")]((t=>t[Xc("0x27")]));u[Xc("0x65")]=e.plugins[Xc("0x30")](Xc("0x42"))[Xc("0x2e")][Xc("0x31")](m),this[Xc("0x5b")][Xc("0x54")](t,f),this[Xc("0x58")].set(u,f);const h=o[Xc("0x21")]({view:d,target:()=>{const n=[],o=t[Xc("0x5d")]().filter((t=>t.isInContent));for(const t of o)n[Xc("0x2")](...t.getMarkers());return(0,i.getAllMarkersDomElementsSorted)(e[Xc("0x18")],n)},type:()=>Xc("0x8")+f[Xc("0x44")][Xc("0x56")]});r[Xc("0x63")](u,h),o[Xc("0x1f")](h),s.registerAnnotation(h)}[Xc("0x3")](t){const e=this[Xc("0x1e")][Xc("0x46")][Xc("0x30")](Xc("0x34")),n=this[Xc("0x1e")][Xc("0x46")][Xc("0x30")](Xc("0x4c")),o=this[Xc("0x5b")][Xc("0x30")](t),r=o.view,i=n[Xc("0xf")](r);e[Xc("0x36")](r),i&&n.remove(i),this[Xc("0x5b")][Xc("0x3a")](t),this[Xc("0x58")][Xc("0x3a")](r),o[Xc("0x35")]()}[Xc("0x2f")](t){if(!t.isInContent||!this._suggestionToController[Xc("0x28")](t))return;const e=this.editor[Xc("0x46")][Xc("0x30")]("TrackChangesEditing"),n=this._suggestionToController[Xc("0x30")](t),o=t.getAllAdjacentSuggestions();n[Xc("0x44")][Xc("0x65")]=e[Xc("0x2e")].getDescriptions(o)}[Xc("0x35")](){for(const t of this[Xc("0x5b")][Xc("0x9")]())this[Xc("0x3")](t);for(const t of this[Xc("0x17")][Xc("0x43")]())t[Xc("0xa")][Xc("0x35")]();super.destroy()}}var Zc,Qc,Yc=["getSuggestion","addSuggestionData","TrackChanges","plugins","addSuggestion","editor","get","pluginName","adapter","requires","Comments"];Zc=Yc,Qc=279,function(t){for(;--t;)Zc.push(Zc.shift())}(++Qc);var Jc=function(t,e){return Yc[t-=0]};class tl extends t.Plugin{static get[Jc("0x5")](){return[hc,$c,Jc("0x6")]}static get[Jc("0x3")](){return Jc("0x9")}set[Jc("0x4")](t){this[Jc("0x1")].plugins.get(hc)[Jc("0x4")]=t}get[Jc("0x4")](){return this[Jc("0x1")][Jc("0xa")][Jc("0x2")](hc)[Jc("0x4")]}[Jc("0x0")](t){return this.editor[Jc("0xa")].get(hc)[Jc("0x8")](t)}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){return this.editor[Jc("0xa")][Jc("0x2")](hc).getSuggestions({skipNotAttached:t,toJSON:e})}[Jc("0x7")](t){return this[Jc("0x1")].plugins[Jc("0x2")](hc)[Jc("0x7")](t)}}const el=["createDocumentFragment","getSuggestions","TrackChangesData","function","requires","rootsAttributes","destroy","acceptAllSuggestions","get","getRootNames","useAnonymousUser","editor","CommentsRepository","set","TrackChangesEditing","getDataWithAcceptedSuggestions","define","div","reduce","plugins","_adapter","editorCreator","create","model","execute","users","map","trackChangesData.editorCreator","document","config","data","createElement","getUser","Users","getRootsAttributes","end","getFullData","trackChangesData","addUser"];var nl,ol;nl=el,ol=241,function(t){for(;--t;)nl.push(nl.shift())}(++ol);const rl=function(t,e){return el[t-=0]},il=["Pagination"];class sl extends t.Plugin{static get[rl("0x24")](){return[hc]}static get pluginName(){return rl("0x22")}init(){const t=this[rl("0x4")];if(t[rl("0x16")][rl("0x9")](rl("0x14"),(e=>{const n=t[rl("0x10")][rl("0x15")][rl("0x2")]().reduce(((t,e)=>(t[e]="",t)),{});return t.constructor[rl("0xf")](n,e)})),rl("0x23")!=typeof t.config[rl("0x1")](rl("0x1e"))[rl("0xe")])throw new e.CKEditorError("track-changes-data-invalid-editor-creator")}[rl("0x8")](t){return cl(this[rl("0x4")],!0,t)}getDataWithDiscardedSuggestions(t){return cl(this[rl("0x4")],!1,t)}}class xl extends t.Plugin{static get pluginName(){return"TrackChangesDataGetter"}constructor(t){super(t),this.result=rl("0x1c")}init(){this.editor[rl("0xc")][rl("0x1")](rl("0x5"))[rl("0xd")]={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this.editor[rl("0xc")].get(rl("0x7"))._adapter=null}}function al(t){return void 0!==t[rl("0x1b")]}async function cl(t,e,n){const o=(0,i.sanitizeEditorConfig)(t,il);o[rl("0xc")].push(hc,xl),o[rl("0x25")]=al(t)?t[rl("0x1b")]():void 0;const r=document[rl("0x20")](),s=t.config[rl("0x1")](rl("0x1e"))[rl("0xe")],x=await s(o,(()=>function(t){const e=document[rl("0x18")](rl("0xa"));return t.appendChild(e),e}(r)));!function(t,e){const n=t[rl("0x10")].document[rl("0x2")]()[rl("0xb")](((e,n)=>(e[n]=t[rl("0x17")][rl("0x1")]({rootName:n}),e)),{}),o=t[rl("0xc")][rl("0x1")](rl("0x1a"))[rl("0x12")][rl("0x13")]((t=>({id:t.id,name:t.name}))),r=t.plugins[rl("0x1")](rl("0x7"))[rl("0x21")]({skipNotAttached:!0,toJSON:!0}),i=e[rl("0xc")][rl("0x1")]("Users"),s=e[rl("0xc")][rl("0x1")](rl("0x7"));for(const t of o)i[rl("0x19")](t.id)||i[rl("0x1f")](t);i.me||i[rl("0x3")]();for(const t of r)s.addSuggestionData(t);e[rl("0x17")][rl("0x6")](n)}(t,x),x[rl("0x11")](e?rl("0x0"):"discardAllSuggestions");const a=al(x)?x[rl("0x1d")](n):x[rl("0x17")][rl("0x1")](n);return await x[rl("0x26")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();