@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231205.0 → 0.0.0-nightly-20231207.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +2 -2
- package/build/translations/ar.js +1 -1
- package/build/translations/az.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/lang/translations/ar.po +5 -5
- package/lang/translations/az.po +4 -4
- package/lang/translations/bg.po +5 -5
- package/lang/translations/bn.po +5 -5
- package/lang/translations/ca.po +5 -5
- package/lang/translations/cs.po +5 -5
- package/lang/translations/da.po +5 -5
- package/lang/translations/de.po +5 -5
- package/lang/translations/el.po +5 -5
- package/lang/translations/en-au.po +5 -5
- package/lang/translations/en.po +5 -5
- package/lang/translations/es.po +5 -5
- package/lang/translations/et.po +5 -5
- package/lang/translations/fi.po +5 -5
- package/lang/translations/fr.po +5 -5
- package/lang/translations/gl.po +36 -36
- package/lang/translations/he.po +5 -5
- package/lang/translations/hi.po +5 -5
- package/lang/translations/hr.po +5 -5
- package/lang/translations/hu.po +5 -5
- package/lang/translations/id.po +5 -5
- package/lang/translations/it.po +5 -5
- package/lang/translations/ja.po +5 -5
- package/lang/translations/ko.po +5 -5
- package/lang/translations/lt.po +5 -5
- package/lang/translations/lv.po +5 -5
- package/lang/translations/ms.po +5 -5
- package/lang/translations/nl.po +5 -5
- package/lang/translations/no.po +5 -5
- package/lang/translations/pl.po +5 -5
- package/lang/translations/pt-br.po +5 -5
- package/lang/translations/pt.po +5 -5
- package/lang/translations/ro.po +5 -5
- package/lang/translations/ru.po +5 -5
- package/lang/translations/sk.po +5 -5
- package/lang/translations/sq.po +4 -4
- package/lang/translations/sr-latn.po +24 -24
- package/lang/translations/sr.po +5 -5
- package/lang/translations/sv.po +5 -5
- package/lang/translations/th.po +5 -5
- package/lang/translations/tk.po +4 -4
- package/lang/translations/tr.po +5 -5
- package/lang/translations/tt.po +4 -4
- package/lang/translations/uk.po +5 -5
- package/lang/translations/ur.po +4 -4
- package/lang/translations/vi.po +5 -5
- package/lang/translations/zh-cn.po +5 -5
- package/lang/translations/zh.po +5 -5
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
package/build/track-changes.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
!function(t){const e=t.en=t.en||{};e.dictionary=Object.assign(e.dictionary||{},{"*Change %0 content*":"*Change %0 content*","*Change to:* %0":"*Change to:* %0","*Check item*":"*Check item*","*Format:* %0":"*Format:* %0","*Format:* change table cell properties":"*Format:* change table cell properties","*Format:* change table properties":"*Format:* change table properties","*Format:* insert into %0":"*Format:* insert into %0","*Format:* remove from %0":"*Format:* remove from %0","*Format:* resize table":"*Format:* resize table","*Format:* set order to regular":"*Format:* set order to regular","*Format:* set order to reversed":"*Format:* set order to reversed","*Format:* set start index to %0":"*Format:* set start index to %0","*Indent:* %0":"*Indent:* %0","*Insert:* %0":"*Insert:* %0","*Merge cells*":"*Merge cells*","*Merge:* %0":"*Merge:* %0","*Outdent:* %0":"*Outdent:* %0","*Remove all formatting*":"*Remove all formatting*","*Remove format:* %0":"*Remove format:* %0","*Remove highlight*":"*Remove highlight*","*Remove image text alternative*":"*Remove image text alternative*","*Remove link*":"*Remove link*","*Remove:* %0":"*Remove:* %0","*Replace table cells*":"*Replace table cells*","*Reset font background color*":"*Reset font background color*","*Reset font color*":"*Reset font color*","*Reset font family*":"*Reset font family*","*Reset font size*":"*Reset font size*","*Reset image width*":"*Reset image width*","*Set font background color:* %0":"*Set font background color:* %0","*Set font color:* %0":"*Set font color:* %0","*Set font family:* %0":"*Set font family:* %0","*Set font size:* %0":"*Set font size:* %0","*Set format to:* %0":"*Set format to:* %0","*Set format:* %0":"*Set format:* %0","*Set highlight:* %0":"*Set highlight:* %0","*Set image text alternative:* %0":"*Set image text alternative:* %0","*Set image width:* %0":"*Set image width:* %0","*Set link:* %0":"*Set link:* %0","*Split cell:* horizontally":"*Split cell:* horizontally","*Split cell:* vertically":"*Split cell:* vertically","*Split:* %0":"*Split:* %0","*Uncheck item*":"*Uncheck item*","Accept all selected suggestions":"Accept all selected suggestions","Accept all suggestions":"Accept all suggestions","Accept suggestion":"Accept suggestion","Discard all selected suggestions":"Discard all selected suggestions","Discard all suggestions":"Discard all suggestions","Discard suggestion":"Discard suggestion",ELEMENT_BLOCK_QUOTE:"block quote",ELEMENT_BULLETED_LIST:"bulleted list",ELEMENT_BULLETED_LIST_CIRCLE:"bulleted list (circle)",ELEMENT_BULLETED_LIST_DEFAULT:"bulleted list (default)",ELEMENT_BULLETED_LIST_DISC:"bulleted list (disc)",ELEMENT_BULLETED_LIST_SQUARE:"bulleted list (square)",ELEMENT_CAPTION:"caption",ELEMENT_CODE_BLOCK:["code block","%0 code blocks"],ELEMENT_HEADING:["heading (level %1)","%0 headings (level %1)"],ELEMENT_HEADING_CUSTOM:["heading (%1)","%0 headings (%1)"],ELEMENT_HORIZONTAL_LINE:["horizontal line","%0 horizontal lines"],ELEMENT_HTML_EMBED:["HTML embed","%0 HTML embeds"],ELEMENT_IMAGE:["image","%0 images"],ELEMENT_INLINE_IMAGE:["image","%0 images"],ELEMENT_LINE_BREAK:["line break","%0 line breaks"],ELEMENT_LIST_ITEM:["list item","%0 list items"],ELEMENT_MEDIA:["media item","%0 media items"],ELEMENT_NUMBERED_LIST:"numbered list",ELEMENT_NUMBERED_LIST_DECIMAL:"numbered list (decimal)",ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO:"numbered list (decimal with leading zero)",ELEMENT_NUMBERED_LIST_DEFAULT:"numbered list (default)",ELEMENT_NUMBERED_LIST_LOWER_LATIN:"numbered list (lower-latin)",ELEMENT_NUMBERED_LIST_LOWER_ROMAN:"numbered list (lower-roman)",ELEMENT_NUMBERED_LIST_UPPER_LATIN:"numbered list (upper-latin)",ELEMENT_NUMBERED_LIST_UPPER_ROMAN:"numbered list (upper-roman)",ELEMENT_PAGE_BREAK:["page break","%0 page breaks"],ELEMENT_PARAGRAPH:["paragraph","%0 paragraphs"],ELEMENT_SPACE:["space","%0 spaces"],ELEMENT_TABLE:["table","%0 tables"],ELEMENT_TABLE_COLUMN:["table column","%0 table columns"],ELEMENT_TABLE_COLUMN_WITH_TEXT:["table column *with text* %1","%0 table columns *with text* %1"],ELEMENT_TABLE_OF_CONTENTS:["table of contents","%0 tables of contents"],ELEMENT_TABLE_ROW:["table row","%0 table rows"],ELEMENT_TABLE_ROW_WITH_TEXT:["table row *with text* %1","%0 table rows *with text* %1"],ELEMENT_TABLE_WITH_TEXT:"table *with text* %0",ELEMENT_TITLE:"title",ELEMENT_TODO_LIST:"to-do list",ENTER_DELETION_SUGGESTION_ANNOUNCEMENT:"Entering deletion suggestion.",ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT:"Entering formatting suggestion.",ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT:"Entering insertion suggestion.",EXTERNAL_IMPORT_WORD_SUGGESTION:"This suggestion comes from an imported Word file.",EXTERNAL_SUGGESTION:"This suggestion comes from an external source.",FORMAT_ALIGN_TO_CENTER:"align to center",FORMAT_ALIGN_TO_LEFT:"align to left",FORMAT_ALIGN_TO_RIGHT:"align to right",FORMAT_ALIGNMENT:"alignment",FORMAT_BOLD:"bold",FORMAT_CODE:"code",FORMAT_FONT_BACKGROUND:"font background color",FORMAT_FONT_COLOR:"font color",FORMAT_FONT_FAMILY:"font family",FORMAT_FONT_SIZE:"font size",FORMAT_HEADER_COLUMN:"header column",FORMAT_HEADER_ROW:"header row",FORMAT_HIGHLIGHT:"highlight",FORMAT_INDENT:"indent",FORMAT_ITALIC:"italic",FORMAT_JUSTIFY_TEXT:"justify",FORMAT_LIST_REVERSED:"list reversed",FORMAT_LIST_START:"list start",FORMAT_REGULAR_COLUMN:"regular column",FORMAT_REGULAR_ROW:"regular row",FORMAT_RESTRICTED_DISABLED:"*Disable in restricted editing mode*",FORMAT_RESTRICTED_ENABLED:"*Enable in restricted editing mode*",FORMAT_SIDE_IMAGE:"side image",FORMAT_STRIKETHROUGH:"strikethrough",FORMAT_STYLE:"style",FORMAT_SUBSCRIPT:"subscript",FORMAT_SUPERSCRIPT:"superscript",FORMAT_UNDERLINE:"underline",LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT:"Leaving deletion suggestion.",LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT:"Leaving formatting suggestion.",LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT:"Leaving insertion suggestion.",PENDING_ACTION_SUGGESTION:"Unsaved change in suggestion.",REPLACE_TEXT:"*Replace:* %0 *with* %1","Track changes":"Track changes"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),
|
|
1
|
+
!function(t){const e=t.en=t.en||{};e.dictionary=Object.assign(e.dictionary||{},{"*Change %0 content*":"*Change %0 content*","*Change to:* %0":"*Change to:* %0","*Check item*":"*Check item*","*Format:* %0":"*Format:* %0","*Format:* change table cell properties":"*Format:* change table cell properties","*Format:* change table properties":"*Format:* change table properties","*Format:* insert into %0":"*Format:* insert into %0","*Format:* remove from %0":"*Format:* remove from %0","*Format:* resize table":"*Format:* resize table","*Format:* set order to regular":"*Format:* set order to regular","*Format:* set order to reversed":"*Format:* set order to reversed","*Format:* set start index to %0":"*Format:* set start index to %0","*Indent:* %0":"*Indent:* %0","*Insert:* %0":"*Insert:* %0","*Merge cells*":"*Merge cells*","*Merge:* %0":"*Merge:* %0","*Outdent:* %0":"*Outdent:* %0","*Remove all formatting*":"*Remove all formatting*","*Remove format:* %0":"*Remove format:* %0","*Remove highlight*":"*Remove highlight*","*Remove image text alternative*":"*Remove image text alternative*","*Remove link*":"*Remove link*","*Remove:* %0":"*Remove:* %0","*Replace image URL*":"*Replace image URL*","*Replace table cells*":"*Replace table cells*","*Reset font background color*":"*Reset font background color*","*Reset font color*":"*Reset font color*","*Reset font family*":"*Reset font family*","*Reset font size*":"*Reset font size*","*Reset image width*":"*Reset image width*","*Set font background color:* %0":"*Set font background color:* %0","*Set font color:* %0":"*Set font color:* %0","*Set font family:* %0":"*Set font family:* %0","*Set font size:* %0":"*Set font size:* %0","*Set format to:* %0":"*Set format to:* %0","*Set format:* %0":"*Set format:* %0","*Set highlight:* %0":"*Set highlight:* %0","*Set image text alternative:* %0":"*Set image text alternative:* %0","*Set image width:* %0":"*Set image width:* %0","*Set link:* %0":"*Set link:* %0","*Split cell:* horizontally":"*Split cell:* horizontally","*Split cell:* vertically":"*Split cell:* vertically","*Split:* %0":"*Split:* %0","*Uncheck item*":"*Uncheck item*","Accept all selected suggestions":"Accept all selected suggestions","Accept all suggestions":"Accept all suggestions","Accept suggestion":"Accept suggestion","Discard all selected suggestions":"Discard all selected suggestions","Discard all suggestions":"Discard all suggestions","Discard suggestion":"Discard suggestion",ELEMENT_BLOCK_QUOTE:"block quote",ELEMENT_BULLETED_LIST:"bulleted list",ELEMENT_BULLETED_LIST_CIRCLE:"bulleted list (circle)",ELEMENT_BULLETED_LIST_DEFAULT:"bulleted list (default)",ELEMENT_BULLETED_LIST_DISC:"bulleted list (disc)",ELEMENT_BULLETED_LIST_SQUARE:"bulleted list (square)",ELEMENT_CAPTION:"caption",ELEMENT_CODE_BLOCK:["code block","%0 code blocks"],ELEMENT_HEADING:["heading (level %1)","%0 headings (level %1)"],ELEMENT_HEADING_CUSTOM:["heading (%1)","%0 headings (%1)"],ELEMENT_HORIZONTAL_LINE:["horizontal line","%0 horizontal lines"],ELEMENT_HTML_EMBED:["HTML embed","%0 HTML embeds"],ELEMENT_IMAGE:["image","%0 images"],ELEMENT_INLINE_IMAGE:["image","%0 images"],ELEMENT_LINE_BREAK:["line break","%0 line breaks"],ELEMENT_LIST_ITEM:["list item","%0 list items"],ELEMENT_MEDIA:["media item","%0 media items"],ELEMENT_NUMBERED_LIST:"numbered list",ELEMENT_NUMBERED_LIST_DECIMAL:"numbered list (decimal)",ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO:"numbered list (decimal with leading zero)",ELEMENT_NUMBERED_LIST_DEFAULT:"numbered list (default)",ELEMENT_NUMBERED_LIST_LOWER_LATIN:"numbered list (lower-latin)",ELEMENT_NUMBERED_LIST_LOWER_ROMAN:"numbered list (lower-roman)",ELEMENT_NUMBERED_LIST_UPPER_LATIN:"numbered list (upper-latin)",ELEMENT_NUMBERED_LIST_UPPER_ROMAN:"numbered list (upper-roman)",ELEMENT_PAGE_BREAK:["page break","%0 page breaks"],ELEMENT_PARAGRAPH:["paragraph","%0 paragraphs"],ELEMENT_SPACE:["space","%0 spaces"],ELEMENT_TABLE:["table","%0 tables"],ELEMENT_TABLE_COLUMN:["table column","%0 table columns"],ELEMENT_TABLE_COLUMN_WITH_TEXT:["table column *with text* %1","%0 table columns *with text* %1"],ELEMENT_TABLE_OF_CONTENTS:["table of contents","%0 tables of contents"],ELEMENT_TABLE_ROW:["table row","%0 table rows"],ELEMENT_TABLE_ROW_WITH_TEXT:["table row *with text* %1","%0 table rows *with text* %1"],ELEMENT_TABLE_WITH_TEXT:"table *with text* %0",ELEMENT_TITLE:"title",ELEMENT_TODO_LIST:"to-do list",ENTER_DELETION_SUGGESTION_ANNOUNCEMENT:"Entering deletion suggestion.",ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT:"Entering formatting suggestion.",ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT:"Entering insertion suggestion.",EXTERNAL_IMPORT_WORD_SUGGESTION:"This suggestion comes from an imported Word file.",EXTERNAL_SUGGESTION:"This suggestion comes from an external source.",FORMAT_ALIGN_TO_CENTER:"align to center",FORMAT_ALIGN_TO_LEFT:"align to left",FORMAT_ALIGN_TO_RIGHT:"align to right",FORMAT_ALIGNMENT:"alignment",FORMAT_BOLD:"bold",FORMAT_CODE:"code",FORMAT_FONT_BACKGROUND:"font background color",FORMAT_FONT_COLOR:"font color",FORMAT_FONT_FAMILY:"font family",FORMAT_FONT_SIZE:"font size",FORMAT_HEADER_COLUMN:"header column",FORMAT_HEADER_ROW:"header row",FORMAT_HIGHLIGHT:"highlight",FORMAT_IMAGE_SIZE:"image size",FORMAT_INDENT:"indent",FORMAT_ITALIC:"italic",FORMAT_JUSTIFY_TEXT:"justify",FORMAT_LIST_REVERSED:"list reversed",FORMAT_LIST_START:"list start",FORMAT_REGULAR_COLUMN:"regular column",FORMAT_REGULAR_ROW:"regular row",FORMAT_RESTRICTED_DISABLED:"*Disable in restricted editing mode*",FORMAT_RESTRICTED_ENABLED:"*Enable in restricted editing mode*",FORMAT_SIDE_IMAGE:"side image",FORMAT_STRIKETHROUGH:"strikethrough",FORMAT_STYLE:"style",FORMAT_SUBSCRIPT:"subscript",FORMAT_SUPERSCRIPT:"superscript",FORMAT_UNDERLINE:"underline",LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT:"Leaving deletion suggestion.",LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT:"Leaving formatting suggestion.",LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT:"Leaving insertion suggestion.",PENDING_ACTION_SUGGESTION:"Unsaved change in suggestion.",REPLACE_TEXT:"*Replace:* %0 *with* %1","Track changes":"Track changes"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),
|
|
2
2
|
/*!
|
|
3
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(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},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 r={};(()=>{"use strict";n.r(r),n.d(r,{BaseSuggestionThreadView:()=>Pc,TrackChanges:()=>el,TrackChangesData:()=>xl,TrackChangesEditing:()=>hc});var t=n(704),e=n(209),o=n(273),i=n(417),s=n(492),x=n(995);const a=["_isEnabledBasedOnSelection","refresh","isEnabled","editor","value","affectsData","clearForceDisabled","_disableUnsupportedCommands","TrackChangesCommand","commands","has","_enabledCommands","_enableCommands","forceDisabled"];var c,l;c=a,l=154,function(t){for(;--t;)c.push(c.shift())}(++l);const u=function(t,e){return a[t-=0]};class d extends t.Command{constructor(t,e){super(t),this[u("0xb")]=e,this[u("0x4")]=!1,this.refresh(),this[u("0x0")]=!1}[u("0x1")](){this[u("0x2")]=!0}execute(){this[u("0x4")]=!this.value,this[u("0x4")]?this[u("0x7")]():this[u("0xc")]()}[u("0x7")](){for(const t of this[u("0x3")][u("0x9")][u("0x9")]())t[u("0x5")]&&!this._enabledCommands[u("0xa")](t)&&t[u("0xd")](u("0x8"))}[u("0xc")](){for(const t of this[u("0x3")].commands[u("0x9")]())t[u("0x5")]&&!this[u("0xb")][u("0xa")](t)&&t[u("0x6")](u("0x8"))}}const g=["refresh","execute","isEnabled","getRanges","TrackChangesEditing","track-changes-accept-suggestion-not-found","_isEnabledBasedOnSelection","_suggestions","plugins","editor"];var f,m;f=g,m=252,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("0x4")]=!1}[h("0x8")](){this[h("0x0")]=!0}[h("0x9")](t){const n=this[h("0x5")].get(t);if(!n)throw new e.CKEditorError(h("0x3"),this);const r=n[h("0x1")]();this[h("0x7")].model.canEditAt(r)&&this[h("0x7")][h("0x6")].get(h("0x2")).acceptSuggestion(n)}}const b=["plugins","_isEnabledBasedOnSelection","get","isEnabled","discardSuggestion","_suggestions","canEditAt","track-changes-discard-suggestion-not-found","TrackChangesEditing","execute","getRanges","refresh","model"];var E,_;E=b,_=238,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class y extends t.Command{constructor(t,e){super(t),this[T("0x1")]=e,this[T("0x7")](),this[T("0xa")]=!1}[T("0x7")](){this[T("0xc")]=!0}[T("0x5")](t){const n=this._suggestions[T("0xb")](t);if(!n)throw new e.CKEditorError(T("0x3"),this);const r=n[T("0x6")]();this.editor[T("0x8")][T("0x2")](r)&&this.editor[T("0x9")][T("0xb")](T("0x4"))[T("0x0")](n)}}const C=["isInContent","getRanges","deletion","createRange","createPositionAfter","isIntersecting"," [color ","createPositionAt","value","length","type","end","execute","from","createPositionBefore","next","isTouching","map","change","join","splice","isMultiRange","isCollapsed","isArray","content"];var k,A;k=C,A=210,function(t){for(;--t;)k.push(k.shift())}(++A);const I=function(t,e){return C[t-=0]};function R(t){return t.sort(((t,e)=>"deletion"==t[I("0x0")]&&"deletion"!=e[I("0x0")]?-1:I("0x11")!=t[I("0x0")]&&"deletion"==e.type?1:0))}function S(t,e){let n,r=0;const o=[],i=e.schema;for(;r<t[I("0x18")];){const s=t[r],x=t[r+1];n||(n=e[I("0x4")](s)),v(e,s,x)||(o.push(e[I("0x12")](n,i.isObject(s)?e[I("0x13")](s):e[I("0x16")](s,I("0x1")))),n=null),r++}return o}function v(t,e,n){if(!n)return!1;const r=t[I("0x13")](e),o=t[I("0x4")](n);return r[I("0x6")](o)}function N(t,e,n){for(;n[I("0x18")];){const r=n[I("0xa")](0,100);t[I("0x8")]((()=>{for(const t of r)t[I("0xf")]&&e[I("0x2")](t.id)}))}}const L=["isEnabled","values","refresh","editor","_suggestions","_isEnabledBasedOnSelection","model","isInContent","execute","_command","from","some","getRanges"];var M,w;M=L,w=227,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("0x3")]=e,this[O("0xb")]=n,this[O("0x9")](),this[O("0xc")]=!1}[O("0x9")](){const t=Array.from(this[O("0xb")][O("0x8")]())[O("0x5")]((t=>t[O("0x1")]));this[O("0x7")]=this[O("0x3")].isEnabled&&t}[O("0x2")](){const t=R(Array[O("0x4")](this[O("0xb")][O("0x8")]()));for(const e of t){const t=e[O("0x6")]();if(!this[O("0xa")][O("0x0")].canEditAt(t))return}N(this.editor[O("0x0")],this._command,t)}}const D=["_isEnabledBasedOnSelection","refresh","selection","isEnabled","editor","_selectedSuggestions","canEditAt","size","model","document","execute","_suggestions","getRanges","_command","from"];var B,P;B=D,P=441,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._suggestions=n,this[U("0xe")]=new Set,this[U("0xa")](),this[U("0x9")]=!1}[U("0xa")](){const t=this[U("0xd")][U("0x2")][U("0x3")][U("0xb")],e=Array[U("0x8")](this[U("0x5")].values());this[U("0xe")]=function(t,e){const n=Array[I("0x3")](t[I("0x10")]()),r=new Set;for(const o of e)if(o[I("0xf")])for(const e of n)for(const n of o.getRanges())(e[I("0x14")](n)||t[I("0xc")]&&!o[I("0xb")]&&o[I("0x5")]&&n[I("0x1")][I("0x6")](e.start))&&r.add(o);return r}(t,e),this[U("0xc")]=this[U("0x7")][U("0xc")]&&!!this[U("0xe")][U("0x1")]}[U("0x4")](){const t=R(Array[U("0x8")](this[U("0xe")]));for(const e of t){const t=e[U("0x6")]();if(!this[U("0xd")].model[U("0x0")](t))return}N(this[U("0xd")][U("0x2")],this[U("0x7")],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__,r=H(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[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 rt=et||nt||Function("return this")();const ot=rt.Symbol;var it=Object.prototype,st=it.hasOwnProperty,xt=it.toString,at=ot?ot.toStringTag:void 0;const ct=function(t){var e=st.call(t,at),n=t[at];try{t[at]=void 0;var r=!0}catch(t){}var o=xt.call(t);return r&&(e?t[at]=n:delete t[at]),o};var lt=Object.prototype.toString;const ut=function(t){return lt.call(t)};var dt=ot?ot.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=rt["__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,kt=Object.prototype,At=Ct.toString,It=kt.hasOwnProperty,Rt=RegExp("^"+At.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 vt=function(t,e){return null==t?void 0:t[e]};const Nt=function(t,e){var n=vt(t,e);return St(n)?n:void 0};const Lt=Nt(rt,"Map");const Mt=Nt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Dt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Bt=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Bt.call(e,t)};const Ut=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mt&&void 0===e?"__lodash_hash_undefined__":e,this};function jt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[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),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[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 r=n.__data__;if(!Lt||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Zt(r)}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,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Nt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var re=Object.prototype.hasOwnProperty;const oe=function(t,e,n){var r=t[e];re.call(t,e)&&V(r,n)&&(void 0!==n||e in t)||ne(t,e,n)};const ie=function(t,e,n,r){var o=!n;n||(n={});for(var i=-1,s=e.length;++i<s;){var x=e[i],a=r?r(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),o?ne(n,x,a):oe(n,x,a)}return n};const se=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r};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?rt.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 ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ie=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Re=Ie&&Ie.exports===Ae&&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 ve=Se&&Se.isTypedArray;const Ne=ve?ke(ve):Ce;var Le=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),r=!n&&de(t),o=!n&&!r&&be(t),i=!n&&!r&&!o&&Ne(t),s=n||r||o||i,x=s?se(t.length,String):[],a=x.length;for(var c in t)!e&&!Le.call(t,c)||s&&("length"==c||o&&("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 r in t)("constructor"!=r||!e&&He.call(t,r))&&n.push(r);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?rt.Buffer:void 0,Ze=$e?$e.allocUnsafe:void 0;const Qe=function(t,e){if(e)return t.slice();var n=t.length,r=Ze?Ze(n):new t.constructor(n);return t.copy(r),r};const Ye=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e};const Je=function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var s=t[n];e(s,n,t)&&(i[o++]=s)}return i};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const rn=nn?function(t){return null==t?[]:(t=Object(t),Je(nn(t),(function(e){return en.call(t,e)})))}:tn;const on=function(t,e){return ie(t,rn(t),e)};const sn=function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)sn(e,rn(t)),t=xn(t);return e}:tn;const cn=function(t,e){return ie(t,an(t),e)};const ln=function(t,e,n){var r=e(t);return ge(t)?r:sn(r,n(t))};const un=function(t){return ln(t,je,rn)};const dn=function(t){return ln(t,We,an)};const gn=Nt(rt,"DataView");const fn=Nt(rt,"Promise");const mn=Nt(rt,"Set");const hn=Nt(rt,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",yn=Tt(gn),Cn=Tt(Lt),kn=Tt(fn),An=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,r=n?Tt(n):"";if(r)switch(r){case yn:return Tn;case Cn:return pn;case kn:return bn;case An:return En;case In:return _n}return e});const Sn=Rn;var vn=Object.prototype.hasOwnProperty;const Nn=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&vn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Ln=rt.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=ot?ot.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 r=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new r(+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 r;case"[object Number]":case"[object String]":return new r(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]"==Sn(t)};var Wn=Se&&Se.isMap;const Kn=Wn?ke(Wn):zn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var Xn=Se&&Se.isSet;const $n=Xn?ke(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 tr=function t(e,n,r,o,i,s){var x,a=1&n,c=2&n,l=4&n;if(r&&(x=i?r(e,o,i,s):r(e)),void 0!==x)return x;if(!ft(e))return e;var u=ge(e);if(u){if(x=Nn(e),!a)return Ye(e,x)}else{var d=Sn(e),g=d==Qn||"[object GeneratorFunction]"==d;if(be(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)):on(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(o){x.add(t(o,n,r,o,e,s))})):Kn(e)&&e.forEach((function(o,i){x.set(i,t(o,n,r,i,e,s))}));var m=u?void 0:(l?c?dn:un:c?We:je)(e);return te(m||e,(function(o,i){m&&(o=e[i=o]),oe(x,i,t(o,n,r,i,e,s))})),x};const er=function(t){return tr(t,5)};const nr=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var rr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,or=/^\w*$/;const ir=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!nr(t))||(or.test(t)||!rr.test(t)||null!=e&&t in Object(e))};function sr(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=t.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(sr.Cache||Zt),n}sr.Cache=Zt;const xr=sr;var ar=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,cr=/\\(\\)?/g;const lr=function(t){var e=xr(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(ar,(function(t,n,r,o){e.push(r?o.replace(cr,"$1"):n||t)})),e}));const ur=function(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o};var dr=ot?ot.prototype:void 0,gr=dr?dr.toString:void 0;const fr=function t(e){if("string"==typeof e)return e;if(ge(e))return ur(e,t)+"";if(nr(e))return gr?gr.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const mr=function(t){return null==t?"":fr(t)};const hr=function(t,e){return ge(t)?t:ir(t,e)?[t]:lr(mr(t))};const pr=function(t){if("string"==typeof t||nr(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const br=function(t,e,n,r){if(!ft(t))return t;for(var o=-1,i=(e=hr(e,t)).length,s=i-1,x=t;null!=x&&++o<i;){var a=pr(e[o]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(o!=s){var l=x[a];void 0===(c=r?r(l,a,x):void 0)&&(c=ft(l)?l:_e(e[o+1])?[]:{})}oe(x,a,c),x=x[a]}return t};const Er=function(t,e,n){return null==t?t:br(t,e,n)};const _r=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Tr=function(t){return this.__data__.has(t)};function yr(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Zt;++e<n;)this.add(t[e])}yr.prototype.add=yr.prototype.push=_r,yr.prototype.has=Tr;const Cr=yr;const kr=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1};const Ar=function(t,e){return t.has(e)};const Ir=function(t,e,n,r,o,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 Cr:void 0;for(i.set(t,e),i.set(e,t);++u<x;){var f=t[u],m=e[u];if(r)var h=s?r(m,f,u,e,t,i):r(f,m,u,t,e,i);if(void 0!==h){if(h)continue;d=!1;break}if(g){if(!kr(e,(function(t,e){if(!Ar(g,e)&&(f===t||o(f,t,n,r,i)))return g.push(e)}))){d=!1;break}}else if(f!==m&&!o(f,m,n,r,i)){d=!1;break}}return i.delete(t),i.delete(e),d};const Rr=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n};const Sr=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var vr=ot?ot.prototype:void 0,Nr=vr?vr.valueOf:void 0;const Lr=function(t,e,n,r,o,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=Rr;case"[object Set]":var a=1&r;if(x||(x=Sr),t.size!=e.size&&!a)return!1;var c=s.get(t);if(c)return c==e;r|=2,s.set(t,e);var l=Ir(x(t),x(e),r,o,i,s);return s.delete(t),l;case"[object Symbol]":if(Nr)return Nr.call(t)==Nr.call(e)}return!1};var Mr=Object.prototype.hasOwnProperty;const wr=function(t,e,n,r,o,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:Mr.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(r)var p=s?r(h,m,l,e,t,i):r(m,h,l,t,e,i);if(!(void 0===p?m===h||o(m,h,n,r,i):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 i.delete(t),i.delete(e),g};var Or="[object Arguments]",Fr="[object Array]",Dr="[object Object]",Br=Object.prototype.hasOwnProperty;const Pr=function(t,e,n,r,o,i){var s=ge(t),x=ge(e),a=s?Fr:Sn(t),c=x?Fr:Sn(e),l=(a=a==Or?Dr:a)==Dr,u=(c=c==Or?Dr:c)==Dr,d=a==c;if(d&&be(t)){if(!be(e))return!1;s=!0,l=!1}if(d&&!l)return i||(i=new Jt),s||Ne(t)?Ir(t,e,n,r,o,i):Lr(t,e,a,n,r,o,i);if(!(1&n)){var g=l&&Br.call(t,"__wrapped__"),f=u&&Br.call(e,"__wrapped__");if(g||f){var m=g?t.value():t,h=f?e.value():e;return i||(i=new Jt),o(m,h,n,r,i)}}return!!d&&(i||(i=new Jt),wr(t,e,n,r,o,i))};const Ur=function t(e,n,r,o,i){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:Pr(e,n,r,o,t,i))};const jr=function(t,e){return Ur(t,e)};const Gr=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Vr=function(t,e){for(var n=0,r=(e=hr(e,t)).length;null!=t&&n<r;)t=t[pr(e[n++])];return n&&n==r?t:void 0};const Hr=function(t,e,n){var r=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var i=Array(o);++r<o;)i[r]=t[r+e];return i};const zr=function(t,e){return e.length<2?t:Vr(t,Hr(e,0,-1))};const Wr=function(t,e){return e=hr(e,t),null==(t=zr(t,e))||delete t[pr(Gr(e))]};const Kr=function(t,e){return null==t||Wr(t,e)},qr=["discard","nodeBefore","addRange","_model","getMultiRangeId","_markerNames","author","getRanges","set","getMarkerNames","map","getItems","subType","data","commentThread","attributes","next","filter","onAttributesChange","@external","hasComments","decorate","clear","createdAt","_isDataLoaded","isIntersectingWithRange","setAttribute","getFirstMarker","markers","isInContent","change","delete","removeMarker","_onAttributesChange","onAccept","getMarkers","getAllAdjacentSuggestions","get","_onAccept","_onDiscard","removeAttribute","accept","removeMarkers","creator","substr","getRange","authoredAt","previous","getFirstRange","reduce","addMarker","length","push","type","onDiscard","getContainedElement","isMultiRange","addMarkerName"];var Xr,$r;Xr=qr,$r=391,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Zr=function(t,e){return qr[t-=0]};class Qr extends((0,e.ObservableMixin)()){constructor(t,e){super(),this[Zr("0x27")]=!1,this.id=e.id,this[Zr("0xa")]=e[Zr("0xa")],this[Zr("0x1b")]=e[Zr("0x1b")]||null,this[Zr("0x15")]=e[Zr("0x15")],this[Zr("0x0")]=e[Zr("0x0")]||e.author,this.isExternal=Boolean(e[Zr("0x1e")]&&e[Zr("0x1e")][Zr("0x22")]),this[Zr("0x1c")]=null,this[Zr("0x12")]=t,this[Zr("0x35")]=e[Zr("0x31")],this._onDiscard=e[Zr("0xb")],this._onAttributesChange=e[Zr("0x21")],this[Zr("0x14")]=new Set,this[Zr("0x26")]=null,this.set(Zr("0x3"),null),this[Zr("0x17")](Zr("0x1e"),e[Zr("0x1e")]||{}),this[Zr("0x17")](Zr("0x4"),null),this[Zr("0x17")](Zr("0x1f"),null),this.set(Zr("0x1d"),null),this.set("_saved",!1),this[Zr("0x24")]("accept"),this[Zr("0x24")]("discard")}get head(){let t=this;for(;t[Zr("0x4")];)t=t[Zr("0x4")];return t}get[Zr("0x23")](){return!!this[Zr("0x1d")]&&this[Zr("0x1d")][Zr("0x8")]>0}get[Zr("0xd")](){return 0!=this._markerNames.size&&6==Array.from(this._markerNames)[0].split(":").length}get[Zr("0x2c")](){return null!==this[Zr("0x2a")]()}addMarkerName(t){this[Zr("0x14")].add(t)}[Zr("0x18")](){return Array.from(this[Zr("0x14")])}[Zr("0x32")](){return this[Zr("0x18")]()[Zr("0x19")]((t=>this[Zr("0x12")][Zr("0x2b")][Zr("0x34")](t)))[Zr("0x20")]((t=>t))}[Zr("0x2a")](){return this[Zr("0x32")]()[0]||null}[Zr("0x39")](){this[Zr("0x12")][Zr("0x2d")]((t=>{for(const e of this[Zr("0x32")]())t[Zr("0x2f")](e)})),this[Zr("0x14")][Zr("0x25")]()}[Zr("0x2f")](t){this._model.change((e=>{e.removeMarker(t)})),this[Zr("0x14")][Zr("0x2e")](t)}[Zr("0x11")](t){const e="suggestion:"+this.type+":"+this[Zr("0x1b")]+":"+this.id+":"+this.creator.id+":"+Qr[Zr("0x13")]();this[Zr("0xe")](e),this[Zr("0x12")][Zr("0x2d")]((n=>{n[Zr("0x7")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Zr("0x28")](t){for(const e of this[Zr("0x16")]())if(e.isIntersecting(t))return!0;return!1}getRanges(){return this[Zr("0x32")]()[Zr("0x19")]((t=>t[Zr("0x2")]()))}[Zr("0x1a")](){return this[Zr("0x16")]()[Zr("0x6")](((t,e)=>[...t,...e.getItems()]),[])}[Zr("0x5")](){var t;return(null===(t=this[Zr("0x2a")]())||void 0===t?void 0:t.getRange())||null}[Zr("0xc")](){const t=this.getRanges();if(1!=t[Zr("0x8")])return null;const e=t[0],n=e.start.nodeAfter,r=e.end[Zr("0x10")];return n instanceof s.Element?n!=r?null:n:null}[Zr("0x38")](){this[Zr("0x35")](this[Zr("0x16")](),this[Zr("0x1c")],this.attributes),this[Zr("0x39")]()}[Zr("0xf")](){this[Zr("0x36")](this[Zr("0x16")](),this[Zr("0x1c")],this[Zr("0x1e")]),this[Zr("0x39")]()}[Zr("0x33")](){const t=[];let e=this.head;for(;e;)t[Zr("0x9")](e),e=e[Zr("0x1f")];return t}[Zr("0x29")](t,e){const n=er(this[Zr("0x1e")]);Er(n,t,e),jr(n,this[Zr("0x1e")])||(this[Zr("0x1e")]=n,this[Zr("0x30")](n))}[Zr("0x37")](t){const e=er(this[Zr("0x1e")]);Kr(e,t),jr(e,this[Zr("0x1e")])||(this[Zr("0x1e")]=e,this[Zr("0x30")](this[Zr("0x1e")]))}toJSON(){return{id:this.id,type:this[Zr("0x1b")]?this[Zr("0xa")]+":"+this[Zr("0x1b")]:this[Zr("0xa")],authorId:this[Zr("0x0")].id,createdAt:this[Zr("0x26")],hasComments:this[Zr("0x23")],data:this.data,attributes:this.attributes}}static[Zr("0x13")](){return(0,e.uid)()[Zr("0x1")](1,5)}}function Yr(t,e,n){const r=t.t;switch(e){case"Track changes":return r("Track changes");case"Accept suggestion":return r("Accept suggestion");case"Discard suggestion":return r("Discard suggestion");case"Accept all suggestions":return r("Accept all suggestions");case"Accept all selected suggestions":return r("Accept all selected suggestions");case"Discard all suggestions":return r("Discard all suggestions");case"Discard all selected suggestions":return r("Discard all selected suggestions");case"*Reset font size*":return r("*Reset font size*");case"*Reset font family*":return r("*Reset font family*");case"*Reset font color*":return r("*Reset font color*");case"*Reset font background color*":return r("*Reset font background color*");case"*Remove image text alternative*":return r("*Remove image text alternative*");case"*Reset image width*":return r("*Reset image width*");case"*Remove link*":return r("*Remove link*");case"*Check item*":return r("*Check item*");case"*Uncheck item*":return r("*Uncheck item*");case"*Remove all formatting*":return r("*Remove all formatting*");case"*Replace table cells*":return r("*Replace table cells*");case"*Merge cells*":return r("*Merge cells*");case"*Split cell:* vertically":return r("*Split cell:* vertically");case"*Split cell:* horizontally":return r("*Split cell:* horizontally");case"*Indent:* %0":return r("*Indent:* %0",n);case"*Outdent:* %0":return r("*Outdent:* %0",n);case"*Change to:* %0":return r("*Change to:* %0",n);case"*Insert:* %0":return r("*Insert:* %0",n);case"*Format:* %0":return r("*Format:* %0",n);case"*Format:* change table properties":return r("*Format:* change table properties");case"*Format:* change table cell properties":return r("*Format:* change table cell properties");case"*Format:* insert into %0":return r("*Format:* insert into %0",n);case"*Format:* remove from %0":return r("*Format:* remove from %0",n);case"*Replace image URL*":return r("*Replace image URL*");case"*Format:* resize table":return r("*Format:* resize table");case"*Format:* set order to reversed":return r("*Format:* set order to reversed");case"*Format:* set order to regular":return r("*Format:* set order to regular");case"*Format:* set start index to %0":return r("*Format:* set start index to %0",n);case"*Change %0 content*":return r("*Change %0 content*",n);case"*Remove:* %0":return r("*Remove:* %0",n);case"*Merge:* %0":return r("*Merge:* %0",n);case"*Split:* %0":return r("*Split:* %0",n);case"*Remove format:* %0":return r("*Remove format:* %0",n);case"*Set font size:* %0":return r("*Set font size:* %0",n);case"*Set font family:* %0":return r("*Set font family:* %0",n);case"*Set format to:* %0":return r("*Set format to:* %0",n);case"*Set font color:* %0":return r("*Set font color:* %0",n);case"*Set font background color:* %0":return r("*Set font background color:* %0",n);case"*Set format:* %0":return r("*Set format:* %0",n);case"*Set image text alternative:* %0":return r("*Set image text alternative:* %0",n);case"*Set image width:* %0":return r("*Set image width:* %0",n);case"*Set link:* %0":return r("*Set link:* %0",n);case"*Set highlight:* %0":return r("*Set highlight:* %0",n);case"*Remove highlight*":return r("*Remove highlight*");case"FORMAT_HIGHLIGHT":return r({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return r({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return r({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return r({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return r({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return r({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return r({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return r({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return r({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return r({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return r({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return r({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return r({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return r({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return r({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return r({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return r({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_DEFAULT":return r({string:"bulleted list (default)",id:"ELEMENT_BULLETED_LIST_DEFAULT"});case"ELEMENT_BULLETED_LIST_CIRCLE":return r({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return r({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return r({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST_DEFAULT":return r({string:"numbered list (default)",id:"ELEMENT_NUMBERED_LIST_DEFAULT"});case"ELEMENT_NUMBERED_LIST":return r({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return r({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return r({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return r({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return r({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return r({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return r({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return r({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return r({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return r({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGNMENT":return r({string:"alignment",id:"FORMAT_ALIGNMENT"});case"FORMAT_ALIGN_TO_LEFT":return r({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return r({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return r({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return r({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return r({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return r({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return r({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return r({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return r({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return r({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return r({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return r({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return r({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return r({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return r({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return r({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return r({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"FORMAT_INDENT":return r({string:"indent",id:"FORMAT_INDENT"});case"FORMAT_LIST_REVERSED":return r({string:"list reversed",id:"FORMAT_LIST_REVERSED"});case"FORMAT_LIST_START":return r({string:"list start",id:"FORMAT_LIST_START"});case"FORMAT_FONT_SIZE":return r({string:"font size",id:"FORMAT_FONT_SIZE"});case"FORMAT_FONT_FAMILY":return r({string:"font family",id:"FORMAT_FONT_FAMILY"});case"FORMAT_FONT_COLOR":return r({string:"font color",id:"FORMAT_FONT_COLOR"});case"FORMAT_FONT_BACKGROUND":return r({string:"font background color",id:"FORMAT_FONT_BACKGROUND"});case"FORMAT_IMAGE_SIZE":return r({string:"image size",id:"FORMAT_IMAGE_SIZE"});case"FORMAT_STYLE":return r({string:"style",id:"FORMAT_STYLE"});case"PENDING_ACTION_SUGGESTION":return r({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return r({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return r({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return r({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 r({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return r({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 r({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return r({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return r({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return r({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return r({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return r({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return r({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);case"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT":return r({string:"Entering insertion suggestion.",id:"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT":return r({string:"Leaving insertion suggestion.",id:"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT":return r({string:"Entering deletion suggestion.",id:"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT":return r({string:"Leaving deletion suggestion.",id:"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT":return r({string:"Entering formatting suggestion.",id:"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT":return r({string:"Leaving formatting suggestion.",id:"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT"});default:return e}}const Jr=["_resolveDescriptionItems","registerAttributeLabel","_schema","push","format","registerDescriptionCallback","data","function","type","attribute","_itemLabels","join","*Remove:* %0","start","set","_handleRenameSuggestionDescription","getItemLabel","_customCallbacks","isInContent","*Insert:* %0","_handleInsertRemoveSuggestionDescription","_locale","addObject","end","_itemLabelsCallbacks","elementStart","$1 $2","_handleAttributeSuggestionDescription","map","removeEmptyContainer","length","nextSibling","checkChild","removeFormat","_attributeLabels","match","get","getFirstRange","EmptyContainer","isEmpty","*Merge:* %0","$textProxy","*Remove format:* %0","has","isEqual","normal","name","subType","item","addFormat","label","_handleCustomCallbackDescription","element","*Split:* %0","ELEMENT_SPACE","getDescriptions","softBreak","text","REPLACE_TEXT","skip","addEmptyContainer","isObject","elementEnd","addContainer","add","_addDescriptionItems","remove","Container","pop","key","replace","indexOf","nodeAfter","insertion","quantity","registerElementLabel","getWalker","*Set format:* %0","deletion","removeObject","previousSibling"];var to,eo;to=Jr,eo=258,function(t){for(;--t;)to.push(to.shift())}(++eo);const no=function(t,e){return Jr[t-=0]};class ro{constructor(t,e){this[no("0x2")]=[],this[no("0x4c")]=new Map,this[no("0x9")]=[],this._attributeLabels=new Map,this[no("0x44")]=t,this[no("0x6")]=e}[no("0x28")](t){const e=[],n=new Set,r=new Set;for(let o=0;o<t[no("0xf")];o++){const i=t[o];if(!i[no("0x3")])continue;const s=this[no("0x24")](i);if(s){if(null!=i[no("0x20")]){if(n[no("0x1c")](i[no("0x20")]))continue;n[no("0x31")](i[no("0x20")])}e[no("0x45")](s)}else if(no("0x4b")!=i[no("0x4a")])no("0x3a")!=i[no("0x4a")]&&"deletion"!=i.type||this[no("0x5")](e,i,t[o+1]);else{const t=i[no("0x48")][no("0x36")];if(r[no("0x1c")](t))continue;r.add(i.data[no("0x36")]),t==mc?this[no("0x0")](e,i):this[no("0xc")](e,i)}}return this[no("0x42")](e)}[no("0x47")](t){this._customCallbacks[no("0x45")](t)}[no("0x3c")](t,n,r=e.priorities[no("0x1e")]){no("0x49")==typeof t?(0,e.insertToPriorityArray)(this._itemLabelsCallbacks,{matchingCallback:t,label:n,priority:r}):this[no("0x4c")].set(t,n)}[no("0x43")](t,e){this[no("0x13")][no("0x50")](t,e)}[no("0x1")](t,e=1){let n;for(const e of this[no("0x9")])if(e.matchingCallback(t)){n=e[no("0x23")];break}return n||(n=this[no("0x4c")].get(t.name)),n?n(e):1!==e?e+" "+t[no("0x1f")]+"s":""+t[no("0x1f")]}_addDescriptionItems(t,e){const n=e.getFirstRange()[no("0x3d")](),r=no("0x3a")==e[no("0x4a")]?no("0x31"):no("0x33");for(const e of n){const o=e[no("0x21")],i=t[t.length-1];if(o.is(no("0x1a")))i&&i.type[no("0x38")](no("0x34"))>-1&&t[no("0x35")](),i&&"text"==i.type?i[r]+=o[no("0x48")]:t.push({type:no("0x2a"),add:"add"==r?o[no("0x48")]:"",remove:no("0x33")==r?o[no("0x48")]:""});else if(this._schema[no("0x2e")](o)){const s=o;if(i&&i[no("0x4a")][no("0x38")](no("0x34"))>-1&&t[no("0x35")](),no("0x2f")==e[no("0x4a")])continue;i&&i[no("0x4a")]==r+"Object"&&i[no("0x25")].name==s[no("0x1f")]?i[no("0x3b")]++:t[no("0x45")]({type:r+"Object",element:s,quantity:1}),n[no("0x2c")]((t=>!(no("0x2f")==t[no("0x4a")]&&t.item==o)))}else if(this._schema[no("0x11")](o,"$text")||o.is("element",no("0x29"))){const n=o;if(no("0x31")==r&&no("0xa")==e[no("0x4a")]||no("0x33")==r&&"elementEnd"==e[no("0x4a")])continue;if(i&&-1==i[no("0x4a")][no("0x38")](no("0x34"))){no("0x2a")==i[no("0x4a")]&&(i[r]+="\n");continue}let s;if(s=no("0x31")==r?n[no("0x10")]&&!this[no("0x44")].isObject(n[no("0x10")])?n[no("0x10")]:null:n[no("0x41")]&&!this._schema[no("0x2e")](n[no("0x41")])?n[no("0x41")]:null,n.isEmpty||s&&s[no("0x18")]){const e=s&&s[no("0x18")]?s:n;i&&i[no("0x4a")]==r+"EmptyContainer"&&i[no("0x25")][no("0x1f")]==e[no("0x1f")]?i[no("0x3b")]++:t[no("0x45")]({type:r+no("0x17"),element:e,quantity:1})}else t[no("0x45")]({type:r+no("0x34"),element:n})}}}[no("0x42")](t){const e=this[no("0x6")],n=[],r=[],o=[];for(const i of t)switch(i[no("0x4a")]){case no("0x2a"):if(i[no("0x31")]=i[no("0x31")].replace(/(\S)\u000A+(\S)/g,no("0xb"))[no("0x37")](/\u000A/g,""),i[no("0x33")]=i[no("0x33")][no("0x37")](/(\S)\u000A+(\S)/g,"$1 $2")[no("0x37")](/\u000A/g,""),""!=i.add&&""!=i[no("0x33")]){n.push({type:no("0x37"),content:Yr(e,no("0x2b"),['"'+i[no("0x33")]+'"','"'+i[no("0x31")]+'"'])});continue}if(null!=i[no("0x31")].match(/^ +$/)){n[no("0x45")]({type:no("0x3a"),content:Yr(e,no("0x4"),Yr(e,no("0x27"),i[no("0x31")].length))});continue}if(null!=i.remove[no("0x14")](/^ +$/)){n.push({type:no("0x3f"),content:Yr(e,"*Remove:* %0",Yr(e,"ELEMENT_SPACE",i[no("0x33")][no("0xf")]))});continue}if(""!=i[no("0x31")]){n.push({type:"insertion",content:Yr(e,no("0x4"),'"'+i[no("0x31")]+'"')});continue}n.push({type:no("0x3f"),content:Yr(e,no("0x4e"),'"'+i[no("0x33")]+'"')});continue;case no("0x2d"):case no("0x7"):n[no("0x45")]({type:no("0x3a"),content:Yr(e,no("0x4"),this[no("0x1")](i[no("0x25")],i[no("0x3b")]))});continue;case no("0xe"):case no("0x40"):n[no("0x45")]({type:no("0x3f"),content:Yr(e,"*Remove:* %0",this.getItemLabel(i[no("0x25")],i.quantity))});continue;case no("0x30"):n[no("0x45")]({type:no("0x3a"),content:Yr(e,no("0x26"),this[no("0x1")](i[no("0x25")],i[no("0x3b")]))});continue;case"removeContainer":n.push({type:no("0x3f"),content:Yr(e,no("0x19"),this[no("0x1")](i[no("0x25")],i.quantity))});continue;case no("0x22"):r[no("0x45")](i.key);continue;case no("0x12"):o[no("0x45")](i[no("0x36")]);continue;default:n.push(i)}if(r[no("0xf")]){const t=r[no("0xd")]((t=>this[no("0x13")][no("0x1c")](t)?this[no("0x13")][no("0x15")](t):t))[no("0x4d")](", ");n[no("0x45")]({type:no("0x46"),content:Yr(this[no("0x6")],no("0x3e"),t)})}if(o[no("0xf")]){const t=o[no("0xd")]((t=>this._attributeLabels[no("0x1c")](t)?this[no("0x13")][no("0x15")](t):t))[no("0x4d")](", ");n[no("0x45")]({type:"format",content:Yr(this[no("0x6")],no("0x1b"),t)})}return n}[no("0x24")](t){for(const e of this[no("0x2")]){const n=e(t);if(n&&no("0x4a")in n)return n}}[no("0xc")](t,e){const n=e[no("0x48")],r=void 0===n.newValue?"removeFormat":no("0x22");t.push({type:r,key:n[no("0x36")]})}[no("0x0")](t,e){t.push({type:no("0x46"),content:Yr(this._locale,"*Change to:* %0",this[no("0x1")](e.getFirstRange()[no("0x4f")][no("0x39")],1))})}[no("0x5")](t,e,n){if(this[no("0x32")](t,e),n&&n[no("0x16")]()&&!e[no("0x16")]()[no("0x8")][no("0x1d")](n[no("0x16")]()[no("0x4f")])){const n=t[t.length-1],r="insertion"==e[no("0x4a")]?no("0x31"):"remove";n&&no("0x2a")==n[no("0x4a")]&&(n[r]+="\n")}}}const oo=["editor","afterInit","commands","enableCommand","plugins"];var io,so;io=oo,so=416,function(t){for(;--t;)io.push(io.shift())}(++so);const xo=function(t,e){return oo[t-=0]};class ao extends t.Plugin{[xo("0x0")](){const t=this[xo("0x4")],e=t[xo("0x3")].get("TrackChangesEditing");t[xo("0x1")].get("showAIAssistant")&&e[xo("0x2")]("showAIAssistant")}}const co=["TrackChangesEditing","alignment","formatBlock","FORMAT_JUSTIFY_TEXT","commandParams","_descriptionFactory","_enableDefaultAttributesIntegration","FORMAT_ALIGN_TO_RIGHT","get","editor","AlignmentEditing","type","center","_registerLegacyDescription","justify","plugins","has","locale","left","afterInit","right","FORMAT_ALIGN_TO_CENTER"];var lo,uo;lo=co,uo=462,function(t){for(;--t;)lo.push(lo.shift())}(++uo);const go=function(t,e){return co[t-=0]};class fo extends t.Plugin{[go("0x13")](){const t=this.editor,e=t[go("0x11")];if(!t[go("0xf")][go("0x10")](go("0xa")))return;const n=t[go("0xf")][go("0x8")](go("0x0"));n[go("0x6")]("alignment",[],["alignment"]),n[go("0x5")].registerAttributeLabel(go("0x1"),Yr(e,"FORMAT_ALIGNMENT")),this._registerLegacyDescription()}[go("0xd")](){const t=this[go("0x9")],e=t.locale;t[go("0xf")].get(go("0x0"))[go("0x5")].registerDescriptionCallback((t=>{if(go("0x2")!=t[go("0xb")])return;const{data:n}=t;if(n&&go("0x1")==n.commandName){const t=n[go("0x4")][0].value;return{type:"format",content:Yr(e,"*Format:* %0",function(t){switch(t){case go("0x12"):return Yr(e,"FORMAT_ALIGN_TO_LEFT");case go("0x14"):return Yr(e,go("0x7"));case go("0xc"):return Yr(e,go("0x15"));case go("0xe"):return Yr(e,go("0x3"))}}(t))}}}))}}const mo=["_enableDefaultAttributesIntegration","FORMAT_","FORMAT_SUPERSCRIPT","FORMAT_SUBSCRIPT","code","registerAttributeLabel","BoldEditing","UnderlineEditing","FORMAT_UNDERLINE","StrikethroughEditing","registerDescriptionCallback","underline","_descriptionFactory","slice","get","FORMAT_BOLD","ItalicEditing","*Format:* %0","CodeEditing","*Remove format:* %0","italic","_registerLegacyDescription","toLowerCase","forceValue","TrackChangesEditing","locale","FORMAT_STRIKETHROUGH","toUpperCase","plugins","FORMAT_ITALIC","FORMAT_CODE","SubscriptEditing","SuperscriptEditing","format","editor"];var ho,po;ho=mo,po=341,function(t){for(;--t;)ho.push(ho.shift())}(++po);const bo=function(t,e){return mo[t-=0]},Eo=[bo("0xf"),bo("0x19"),bo("0x10"),bo("0x1b"),bo("0x12"),bo("0x5"),bo("0x6")];class _o extends t.Plugin{afterInit(){const t=this[bo("0x8")],e=t[bo("0x2")][bo("0x17")]("TrackChangesEditing"),n=t[bo("0x22")];for(const r of Eo){if(!t[bo("0x2")].has(r))continue;const o=r[bo("0x16")](0,-7)[bo("0x1f")](),i=bo("0xa")+o[bo("0x1")]();e[bo("0x9")](o,[o]),e[bo("0x15")][bo("0xe")](o,Yr(n,i))}this._registerLegacyDescription()}[bo("0x1e")](){const t=this.editor,e=t[bo("0x22")],n=t.plugins.get(bo("0x21"));function r(t,r){n._descriptionFactory[bo("0x13")]((n=>{if("formatInline"!=n.type)return;const{data:o}=n;return o&&o.commandName===t?o.commandParams[0][bo("0x20")]?{type:"format",content:Yr(e,bo("0x1a"),r)}:{type:bo("0x7"),content:Yr(e,bo("0x1c"),r)}:void 0}))}r("bold",Yr(e,bo("0x18"))),r(bo("0x1d"),Yr(e,bo("0x3"))),r(bo("0x14"),Yr(e,bo("0x11"))),r(bo("0xd"),Yr(e,bo("0x4"))),r("strikethrough",Yr(e,bo("0x0"))),r("subscript",Yr(e,bo("0xc"))),r("superscript",Yr(e,bo("0xb")))}}const To=["schema","change","editor","$root","model","*Set format:* %0","registerDescriptionCallback","commandName","forceValue","markBlockFormat","get","_descriptionFactory","selection","from","TrackChangesEditing","filter","format","parent","locale","BlockQuoteEditing","has","commands","commandParams","enableCommand","ELEMENT_BLOCK_QUOTE","*Remove format:* %0","plugins","value","blockQuote"];var yo,Co;yo=To,Co=308,function(t){for(;--t;)yo.push(yo.shift())}(++Co);const ko=function(t,e){return To[t-=0]};class Ao extends t.Plugin{afterInit(){const t=this[ko("0xd")],e=t[ko("0x0")];if(!t.plugins[ko("0x2")](ko("0x1")))return;const n=t[ko("0x8")][ko("0x15")](ko("0x19")),r=this[ko("0xd")][ko("0x3")][ko("0x15")](ko("0xa"));n[ko("0x5")]("blockQuote",((e,o={})=>{const i=this[ko("0xd")][ko("0xf")].document[ko("0x17")],s=o&&void 0!==o[ko("0x13")]?o[ko("0x13")]:!r[ko("0x9")];let x=[];if(s){const e=Array.from(i.getSelectedBlocks())[ko("0x1a")]((t=>Io(t)||function(t,e){const n=e.checkChild(t[ko("0x1c")],"blockQuote"),r=e.checkChild([ko("0xe"),ko("0xa")],t);return n&&r}(t,this[ko("0xd")][ko("0xf")][ko("0xb")])));x=S(e,t.model)}else{const e=Array[ko("0x18")](i.getSelectedBlocks()).filter((t=>Io(t)));x=S(e,t.model)}t[ko("0xf")][ko("0xc")]((()=>{for(const t of x)n[ko("0x14")](t,{commandName:ko("0xa"),commandParams:[{forceValue:s}]})}))})),n[ko("0x16")][ko("0x11")]((t=>{const{data:n}=t;if(n&&ko("0xa")==n[ko("0x12")]){const t=Yr(e,ko("0x6"));return n[ko("0x4")][0].forceValue?{type:ko("0x1b"),content:Yr(e,ko("0x10"),t)}:{type:ko("0x1b"),content:Yr(e,ko("0x7"),t)}}}))}}function Io(t){return"blockQuote"==t[ko("0x1c")].name}const Ro=["get","TrackChangesEditing","editor","ckbox"];var So,vo;So=Ro,vo=461,function(t){for(;--t;)So.push(So.shift())}(++vo);const No=function(t,e){return Ro[t-=0]};class Lo extends t.Plugin{afterInit(){const t=this[No("0x1")];t.commands[No("0x3")](No("0x2"))&&t.plugins[No("0x3")](No("0x0")).enableCommand(No("0x2"))}}const Mo=["checkChild","toLowerCase","enableCommand","forceValue","*Remove format:* %0","from","indentCodeBlock","document","CodeBlock","registerElementLabel","selection","TrackChangesEditing","ELEMENT_CODE_BLOCK","get","format","parent","plugins","has","getSelectedBlocks","commandParams","commandName","editor","*Set format:* %0","formatBlock","find","change","rootElement","filter","value","label","type","name","codeBlock","locale","language","_descriptionFactory","isLimit","commands"];var wo,Oo;wo=Mo,Oo=281,function(t){for(;--t;)wo.push(wo.shift())}(++Oo);const Fo=function(t,e){return Mo[t-=0]};class Do extends t.Plugin{afterInit(){const t=this[Fo("0x6")];if(!t[Fo("0x1")][Fo("0x2")](Fo("0x1f")))return;const e=t.plugins.get(Fo("0x22")),n=t[Fo("0x12")],r=t.config[Fo("0x24")](Fo("0x11")).languages,o=t[Fo("0x16")][Fo("0x24")]("codeBlock");e[Fo("0x19")](Fo("0x1d")),e[Fo("0x19")]("outdentCodeBlock"),e[Fo("0x19")](Fo("0x11"),((n,i={})=>{const s=t.model,x=t.model[Fo("0x1e")][Fo("0x21")],a=i&&void 0!==i.forceValue?i[Fo("0x1a")]:!o[Fo("0xd")];let c;i.language||(i.language=r[0].language),c=a?Array[Fo("0x1c")](x.getSelectedBlocks())[Fo("0xc")]((t=>{return Bo(t)||(e=t,n=s.schema,!e.is(Fo("0xb"))&&!n[Fo("0x15")](e)&&n[Fo("0x17")](e[Fo("0x0")],Fo("0x11")));var e,n})):Array.from(x[Fo("0x3")]())[Fo("0xc")]((t=>Bo(t)));const l=S(c,s);s[Fo("0xa")]((()=>{for(const t of l)e.markBlockFormat(t,{commandName:Fo("0x11"),commandParams:[{...i,forceValue:a}],formatGroupId:"blockName"})}))})),e[Fo("0x14")][Fo("0x20")](Fo("0x11"),(t=>Yr(n,Fo("0x23"),t))),e[Fo("0x14")].registerDescriptionCallback((t=>{if(Fo("0x8")!=t[Fo("0xf")])return;const e=n.t,{data:o}=t;if(!o||"codeBlock"!=o[Fo("0x5")])return;const i=o[Fo("0x4")][0][Fo("0x13")],s=e(r[Fo("0x9")]((t=>t[Fo("0x13")]===i))[Fo("0xe")])[Fo("0x18")]();return o[Fo("0x4")][0][Fo("0x1a")]?{type:Fo("0x25"),content:Yr(n,Fo("0x7"),Yr(n,Fo("0x23"),1)+" ("+s+")")}:{type:Fo("0x25"),content:Yr(n,Fo("0x1b"),Yr(n,Fo("0x23"),1))}}))}}function Bo(t){return Fo("0x11")==t[Fo("0x10")]}const Po=["plugins","get","addCommentThread","afterInit","has","CommentsEditing","enableCommand"];var Uo,jo;Uo=Po,jo=257,function(t){for(;--t;)Uo.push(Uo.shift())}(++jo);const Go=function(t,e){return Po[t-=0]};class Vo extends t.Plugin{[Go("0x5")](){const t=this.editor;t[Go("0x2")][Go("0x6")](Go("0x0"))&&t[Go("0x2")][Go("0x3")]("TrackChangesEditing")[Go("0x1")](Go("0x4"))}}var Ho=n(181);const zo=["isContent","markerRange","isBlock","insert","getWalker","TrackChangesEditing","addClass","listItem","model","schema","element","hasAttribute","toViewElement","createRangeOn","type","nextSibling","bindElementToMarker","parent","addHighlight","previousPosition","includes","elementEnd","writer","ck-suggestion-marker-","activeMarkers","mapper","plugins","test","get","isLimit","getCustomProperty","getItems","markerName","listIndent","ck-suggestion-marker--active","consumable","push","isAtEnd"];var Wo,Ko;Wo=zo,Ko=374,function(t){for(;--t;)Wo.push(Wo.shift())}(++Ko);const qo=function(t,e){return zo[t-=0]};function Xo(t,e,n){const r=[];for(const o of e[qo("0x25")]())o[qo("0x11")](t)&&r.push(n[qo("0x13")](o));return r}function $o(t,e,{showActiveMarker:n=!0}={}){const r=t[qo("0x20")][qo("0x22")](qo("0xb"));return(o,i,s)=>{if(!s[qo("0x3")][qo("0x21")](i[qo("0x7")],o.name))return;const x=i[qo("0x7")][qo("0xa")](),a=i[qo("0x7")].start,c=t[qo("0xe")][qo("0xf")];let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t.item;d=d||c[qo("0x6")](e);const n=s[qo("0x1f")][qo("0x12")](e);if(n&&n[qo("0x24")](qo("0x18")))return;qo("0x1b")==t[qo("0x14")]&&c[qo("0x8")](e)&&!c[qo("0x23")](e)&&(e[qo("0x15")]||a[qo("0x5")]?l&&l[qo("0x17")]==e||(l=e,f(t.previousPosition),g=!0):u=u||t[qo("0x19")])}function f(t){const o=s[qo("0x1c")].createUIElement("span",{class:qo("0x1d")+e}),x=s[qo("0x1f")].toViewPosition(t);n&&r[qo("0x1e")][qo("0x1a")](i[qo("0x0")])&&s[qo("0x1c")][qo("0xc")](qo("0x2"),o),s.writer[qo("0x9")](x,o),s[qo("0x1f")][qo("0x16")](o,i[qo("0x0")])}d||g||!u||f(u)}}const Zo=["plugins","start","high","enableCommand","TrackChangesEditing","get","deleteForward","setSelection","merge","model","batch","data","writer","mapper","selection","uiElement","document","forward","$graveyard","editor","isCollapsed","showSuggestionHighlights","requires","getFirstRange","lock","downcastDispatcher","createSelection","buffer","end","options","markerName","root","enqueueChange","remove","fromRange","bind","detach","rootName","createRange","init","editing","unbindElementFromMarkerName","delete","addMarker:suggestion:deletion"];var Qo,Yo;Qo=Zo,Yo=300,function(t){for(;--t;)Qo.push(Qo.shift())}(++Yo);const Jo=function(t,e){return Zo[t-=0]};class ti extends t.Plugin{static get[Jo("0x1e")](){return[Ho.Delete]}[Jo("0x3")](){const t=this[Jo("0x1b")],e=t[Jo("0x8")][Jo("0xd")](Jo("0xc"));e[Jo("0xb")](Jo("0x6"));const n=t.commands[Jo("0xd")](Jo("0xe"));e[Jo("0xb")](Jo("0xe"),((e,r={})=>{const o=t[Jo("0x11")][Jo("0x22")](t[Jo("0x11")][Jo("0x18")][Jo("0x16")]);o[Jo("0x1c")]&&t[Jo("0x11")].modifySelection(o,{direction:Jo("0x19"),unit:r.unit});const i=o[Jo("0x1f")](),x=s.LiveRange[Jo("0x2a")](i);let a;e(r),a=Jo("0x1a")==x[Jo("0x27")][Jo("0x1")]?t.model.createRange(i[Jo("0x9")]):t[Jo("0x11")][Jo("0x2")](x.start,x[Jo("0x24")]),x[Jo("0x0")](),t[Jo("0x11")][Jo("0x28")](n.buffer[Jo("0x12")],(t=>{n.buffer[Jo("0x20")](),t[Jo("0xf")](t[Jo("0x2")](a[Jo("0x24")])),n[Jo("0x23")].unlock()}))})),t[Jo("0x4")][Jo("0x21")].on("addMarker:suggestion:deletion",$o(t,Jo("0x10")),{priority:Jo("0xa")}),t[Jo("0x13")].downcastDispatcher.on(Jo("0x7"),((e,n,r)=>{r[Jo("0x25")][Jo("0x1d")]&&$o(t,Jo("0x10"),{showActiveMarker:!1})[Jo("0x2b")](this)(e,n,r)}),{priority:Jo("0xa")}),t[Jo("0x4")].downcastDispatcher.on("removeMarker:suggestion:deletion",((t,e,n)=>{const r=n[Jo("0x15")].markerNameToElements(e.markerName);if(r)for(const t of r)t.is(Jo("0x17"))&&(n.mapper[Jo("0x5")](t,e[Jo("0x26")]),n[Jo("0x14")][Jo("0x29")](t))}),{priority:Jo("0xa")})}}const ei=["registerCustomCallback","formatInline","config","markMultiRangeBlockFormat","selection","plugins","registerDescriptionCallback","TrackChangesEditing","start","createRange","_LIST","getSelectedBlocks","*Merge:* %0","documentList","forceValue","ELEMENT_","locale","_suggestionFactory","detach","getAttribute","format","type","commandName","nextSibling","execute","markBlockFormat","createPositionAt","_descriptionFactory","*Outdent:* %0","afterInit","commandParams","enableCommand","nodeAfter","outdentList","list.multiBlock","multipleBlocks","accept","*Format:* remove from %0","indentList","has","numberedList","toUpperCase","listItemId","value","hasAttribute","listType","model","splitListItemBefore","add","listIndent","deletion","push","end","findIndex","registerElementLabel","previousSibling","ELEMENT_BULLETED_LIST","schema","before","change","*Format:* insert into %0","mergeListItemForward","*Indent:* %0","mergeListItemBackward","containsItem","expandListBlocksToCompleteList","commands","isObject","DocumentListEditing","document","next","get","from","getFirstRange","paragraph","editor","formatBlock","setSelection","length","ELEMENT_LIST_ITEM","splitListItemAfter","parent","isFirstBlockOfListItem","bulletedList"];var ni,ri;ni=ei,ri=232,function(t){for(;--t;)ni.push(ni.shift())}(++ri);const oi=function(t,e){return ei[t-=0]};class ii extends t.Plugin{[oi("0x31")](){const t=this[oi("0xb")];if(!t[oi("0x19")][oi("0x3b")](oi("0x4")))return;const e=t[oi("0x24")],n=t[oi("0x19")][oi("0x7")](oi("0x1b")),r=t[oi("0x19")][oi("0x7")]("DocumentListUtils");function o(e){return()=>{const o=t[oi("0x2")].get(e);if(o.value&&!t[oi("0x16")][oi("0x7")](oi("0x36")))return void t[oi("0x2c")](oi("0xa"),{});let i=Array[oi("0x8")](t.model[oi("0x5")].selection.getSelectedBlocks());if(a(e)){i=r[oi("0x1")](i);const t=[];for(const e of i)r[oi("0x12")](e)&&t.push(e);i=t}t.model.change((()=>{n[oi("0x17")](i,{commandName:e,commandParams:[{forceValue:!o.value}],formatGroupId:oi("0x41")},[],"documentList")}))}}function i(e){return()=>{const r=function(t){let e=Array[oi("0x8")](t);const n=e[oi("0x49")]((t=>!t[oi("0x40")](oi("0x3e"))));return n>-1&&(e=e.slice(0,n)),e}(t[oi("0x42")][oi("0x5")].selection[oi("0x1f")]()),o=r[r[oi("0xe")]-1],i=t[oi("0x42")][oi("0x4d")].isObject(o)?"after":oi("0x48"),s=t[oi("0x42")][oi("0x1d")](t[oi("0x42")].createPositionAt(r[0],"before"),t[oi("0x42")][oi("0x2e")](o,i));t.model.change((()=>{n[oi("0x2d")](s,{commandName:e,commandParams:[],formatGroupId:oi("0x41")},function(t){const e=new Set;for(const n of t){let t=n[oi("0x2b")];for(;t&&t[oi("0x27")](oi("0x45"))>n[oi("0x27")]("listIndent");)e[oi("0x44")](t),t=t[oi("0x2b")]}return Array[oi("0x8")](e)}(r))}))}}function x(e){return()=>{const r=t.model[oi("0x5")][oi("0x18")][oi("0x1f")]()[oi("0x6")]()[oi("0x3f")],o=t[oi("0x42")][oi("0x2e")](r,oi("0x4e")),i=t.model[oi("0x2e")](r,0),s=t[oi("0x42")][oi("0x1d")](o,i);t[oi("0x42")][oi("0x4f")]((()=>{n[oi("0x2d")](s,{commandName:e,commandParams:[],formatGroupId:"listType"})}))}}function a(e){const n=t[oi("0x2")].get(oi("0x13"))[oi("0x3f")],r=t[oi("0x2")].get(oi("0x3c"))[oi("0x3f")];return oi("0x3c")===e?n:r}n[oi("0x33")](oi("0x3c"),o("numberedList")),n[oi("0x33")](oi("0x13"),o(oi("0x13"))),n[oi("0x33")](oi("0x3a"),i("indentList")),n[oi("0x33")](oi("0x35"),i(oi("0x35"))),n[oi("0x33")](oi("0x10"),x(oi("0x10"))),n[oi("0x33")](oi("0x43"),x(oi("0x43"))),n[oi("0x2f")][oi("0x4a")]((function(e){const n=!t[oi("0x42")][oi("0x4d")][oi("0x3")](e),r=e[oi("0x4b")],o=e[oi("0x2b")],i=e[oi("0x27")](oi("0x3e")),s=!r||r[oi("0x27")]("listItemId")!==i,x=!o||o.getAttribute(oi("0x3e"))!==i;return n&&Boolean(i)&&s&&x}),(t=>Yr(e,"ELEMENT_LIST_ITEM",t))),n[oi("0x2f")][oi("0x1a")]((function(n){if(oi("0xc")!=n[oi("0x29")]&&oi("0x15")!=n[oi("0x29")])return;const{data:r}=n;if(!r)return;let o,i,s,x;switch(r[oi("0x2a")]){case oi("0x13"):s=r[oi("0x32")][0][oi("0x22")],x=a(r.commandName),o=oi(s?"0x50":"0x39"),!x&&t[oi("0x16")][oi("0x7")](oi("0x36"))||(o="*Change to:* %0"),i={type:oi("0x28"),content:Yr(e,o,Yr(e,oi("0x4c")))};break;case oi("0x3c"):s=r[oi("0x32")][0].forceValue,x=a(r[oi("0x2a")]),o=s?oi("0x50"):"*Format:* remove from %0",!x&&t[oi("0x16")][oi("0x7")](oi("0x36"))||(o="*Change to:* %0"),i={type:"format",content:Yr(e,o,Yr(e,"ELEMENT_NUMBERED_LIST"))};break;case oi("0x3a"):o=oi("0x52"),i={type:"format",content:Yr(e,o,Yr(e,"ELEMENT_LIST_ITEM"))};break;case oi("0x35"):o=function(t){const e=t[oi("0x9")]();let n=e.start[oi("0x34")];for(;n&&e[oi("0x0")](n);){if(n.getAttribute("listIndent")>0)return!1;n=n[oi("0x2b")]}return!0}(n)?Yr(e,oi("0x39"),Yr(e,function(t){const e=t.getFirstRange()[oi("0x1c")][oi("0x34")];return oi("0x23")+e[oi("0x27")](oi("0x41"))[oi("0x3d")]()+oi("0x1e")}(n))):Yr(e,oi("0x30"),Yr(e,oi("0xf"))),i={type:oi("0x28"),content:o};break;case oi("0x53"):case oi("0x51"):!1===r[oi("0x37")]&&(o=oi("0x20"),i={type:oi("0x46"),content:Yr(e,o,Yr(e,oi("0xf")))})}return i})),n[oi("0x25")][oi("0x14")](oi("0xc"),oi("0x21"),oi("0x38"),(function(e,n){const r=[];for(let n of e)n[oi("0x1c")][oi("0x34")]===n.end[oi("0x11")]&&(n=t.model.createRange(t[oi("0x42")].createPositionAt(n.start.nodeAfter,0))),r.push(n);t[oi("0x42")].change((e=>{const o=t[oi("0x42")][oi("0x5")][oi("0x18")],i=Array[oi("0x8")](o.getRanges()).map((t=>s.LiveRange.fromRange(t)));e[oi("0xd")](r),t[oi("0x2")][oi("0x7")](n[oi("0x2a")]).refresh(),n[oi("0x32")][oi("0x47")]({forceDefaultExecution:!0}),t.execute(n[oi("0x2a")],...n.commandParams),e[oi("0xd")](i);for(const t of i)t[oi("0x26")]()}))}))}}const si=["listType","change","getListTypeFromListStyleType","handleListReversedCommand","markMultiRangeBlockFormat","DocumentListPropertiesEditing","listReversed","plugins","type","listStyle","commandName","afterInit","toUpperCase","config","formatInline","*Format:* set start index to %0","enableCommand","model","handleDescriptions","get","ELEMENT_","list.properties","DocumentListPropertiesUtils","*Format:* set order to regular","getAttribute","startIndex","getSelectedBlocks","DocumentListUtils","reversed","bind","from","registerDescriptionCallback","_getTranslationKeyForListStyle","_getSuggestionBlocks","commandParams","format","styles","formatBlock","TrackChangesEditing","document","replace","*Format:* set order to reversed","expandListBlocksToCompleteList","listStart","*Change to:* %0","filter","handleListStartCommand","editor","push","selection","handleListStyleCommand","_getSuggestionBlocksForListStyle","has"];var xi,ai;xi=si,ai=419,function(t){for(;--t;)xi.push(xi.shift())}(++ai);const ci=function(t,e){return si[t-=0]};class li extends t.Plugin{[ci("0x10")](){if(!this[ci("0x34")][ci("0xc")][ci("0x4")](ci("0xa")))return;const t=this[ci("0x34")][ci("0x12")][ci("0x18")](ci("0x1a")),e=this[ci("0x34")].plugins[ci("0x18")]("TrackChangesEditing");t[ci("0x29")]&&e.enableCommand(ci("0xe"),this[ci("0x2")][ci("0x22")](this)),t.reversed&&e[ci("0x15")]("listReversed",this[ci("0x8")][ci("0x22")](this)),t[ci("0x1e")]&&e[ci("0x15")]("listStart",this[ci("0x33")][ci("0x22")](this)),e._descriptionFactory[ci("0x24")](this[ci("0x17")].bind(this))}[ci("0x2")](t,e={}){const n=this.editor[ci("0xc")][ci("0x18")](ci("0x2b")),r=this[ci("0x3")]();this[ci("0x34")][ci("0x16")][ci("0x6")]((()=>{n[ci("0x9")](r,{commandName:ci("0xe"),commandParams:[{type:e.type}],formatGroupId:ci("0xe")})}))}[ci("0x8")](t,e={}){const n=this[ci("0x34")][ci("0xc")][ci("0x18")]("TrackChangesEditing"),r=this.editor.plugins[ci("0x18")](ci("0x20")),o=this._getSuggestionBlocks((t=>r.isListItemBlock(t)&&"numbered"===t[ci("0x1d")](ci("0x5"))));null!==o&&this[ci("0x34")][ci("0x16")][ci("0x6")]((()=>{n[ci("0x9")](o,{commandName:ci("0xb"),commandParams:[{reversed:e[ci("0x21")]}],formatGroupId:ci("0xb")})}))}[ci("0x33")](t,e={}){const n=this[ci("0x34")][ci("0xc")][ci("0x18")](ci("0x2b")),r=this[ci("0x34")][ci("0xc")][ci("0x18")](ci("0x20")),o=this._getSuggestionBlocks((t=>r.isListItemBlock(t)&&"numbered"===t.getAttribute("listType")));null!==o&&this[ci("0x34")][ci("0x16")][ci("0x6")]((()=>{n[ci("0x9")](o,{commandName:ci("0x30"),commandParams:[{startIndex:e[ci("0x1e")]}],formatGroupId:ci("0x30")})}))}handleDescriptions(t){if(ci("0x2a")!=t[ci("0xd")]&&ci("0x13")!=t[ci("0xd")])return;const e=this.editor.locale,{data:n}=t;if(!n)return;let r,o;switch(n[ci("0xf")]){case ci("0xe"):r=ci("0x31"),o={type:ci("0x28"),content:Yr(e,r,Yr(e,this[ci("0x25")](n.commandParams[0][ci("0xd")])))};break;case ci("0xb"):r=n[ci("0x27")][0][ci("0x21")]?ci("0x2e"):ci("0x1c"),o={type:ci("0x28"),content:Yr(e,r)};break;case"listStart":r=ci("0x14"),o={type:"format",content:Yr(e,r,n[ci("0x27")][0].startIndex)}}return o}[ci("0x3")](){const t=this[ci("0x34")][ci("0xc")][ci("0x18")](ci("0x20"));let e=Array[ci("0x23")](this[ci("0x34")][ci("0x16")][ci("0x2c")].selection[ci("0x1f")]());return e.push(...t.expandListBlocksToCompleteList(e)),e=[...new Set(e)],e}[ci("0x26")](t){const e=this.editor[ci("0xc")][ci("0x18")](ci("0x20"));let n=Array[ci("0x23")](this[ci("0x34")][ci("0x16")].document[ci("0x1")].getSelectedBlocks())[ci("0x32")](t);if(!n.length)return null;n=e[ci("0x2f")](n);const r=[];for(const t of n)e.isFirstBlockOfListItem(t)&&r[ci("0x0")](t);return r}[ci("0x25")](t){return ci("0x19")+this[ci("0x34")][ci("0xc")][ci("0x18")](ci("0x1b"))[ci("0x7")](t)[ci("0x11")]()+"_LIST_"+t[ci("0x11")]()[ci("0x2d")](/-/g,"_")}}var ui=n(331);const di=["model","init","change","getFirstPosition","enableCommand","data","unbindElementFromMarkerName","downcastDispatcher","addMarker:suggestion:insertion","requires","selection","editing","editor","detach","bind","hasClass","nextSibling","writer","mapper","markInsertion","TrackChangesEditing","split","markerName","document","createPositionAt","end","fire","plugins","options","get","enter","setSelection","showSuggestionHighlights","getFirstRange","createRange","ck-suggestion-marker-split"];var gi,fi;gi=di,fi=221,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("0x4")](){return[ui.Enter]}[mi("0x20")](){const t=this[mi("0x7")],e=t[mi("0x16")][mi("0x18")](mi("0xf")),n=t.commands[mi("0x18")](mi("0x19"));e[mi("0x23")](mi("0x19"),(()=>{t[mi("0x1f")][mi("0x21")]((r=>{const o=t[mi("0x1f")][mi("0x12")][mi("0x5")],i=o[mi("0x22")](),x=s.LiveRange.fromRange(o[mi("0x1c")]());if(n.enterBlock(r)){const n=t[mi("0x1f")][mi("0x13")](i.parent[mi("0xb")],0),o=r.createRange(i,n);e[mi("0xe")](o)}else r[mi("0x1a")](r[mi("0x1d")](x[mi("0x14")]));x[mi("0x8")](),n[mi("0x15")]("afterExecute",{writer:r})}))})),t.editing.downcastDispatcher.on(mi("0x3"),$o(t,"split"),{priority:"high"}),t[mi("0x6")][mi("0x2")].on("removeMarker:suggestion:insertion",((t,e,n)=>{const r=n[mi("0xd")].markerNameToElements(e[mi("0x11")]);if(r)for(const t of r)t[mi("0xa")](mi("0x1e"))&&(n[mi("0xd")][mi("0x1")](t,e[mi("0x11")]),n[mi("0xc")].remove(t))}),{priority:"high"}),t[mi("0x0")].downcastDispatcher.on(mi("0x3"),((e,n,r)=>{r[mi("0x17")][mi("0x1b")]&&$o(t,mi("0x10"),{showActiveMarker:!1})[mi("0x9")](this)(e,n,r)}),{priority:"high"})}}const pi=["TrackChangesEditing","get","has","model","getRange","suggestion:deletion","enableCommand","filter","findPrevious","find","plugins","handleFindCommand","findByTextCallback","afterInit","FindAndReplaceEditing","FindAndReplaceUtils","markers","start","createPositionAt","editor","_isInDeletionRange","getMarkersGroup","replace","findNext"];var bi,Ei;bi=pi,Ei=279,function(t){for(;--t;)bi.push(bi.shift())}(++Ei);const _i=function(t,e){return pi[t-=0]};class Ti extends t.Plugin{[_i("0x16")](){if(!this[_i("0x4")][_i("0x13")][_i("0xb")](_i("0x17")))return;const t=this[_i("0x4")][_i("0x13")][_i("0xa")](_i("0x9"));t[_i("0xf")](_i("0x12"),this[_i("0x14")].bind(this)),t[_i("0xf")](_i("0x8")),t[_i("0xf")](_i("0x11")),t[_i("0xf")](_i("0x7")),t[_i("0xf")]("replaceAll")}[_i("0x14")](t,e,n={}){const r=this[_i("0x4")][_i("0x13")][_i("0xa")](_i("0x0"));return t((t=>("string"==typeof e?r[_i("0x15")](e,n):e)(t)[_i("0x10")]((e=>!1===this._isInDeletionRange(e,t.item)))),n)}[_i("0x5")](t,e){const n=this.editor[_i("0xc")].createRange(this.editor[_i("0xc")][_i("0x3")](e,t[_i("0x2")]),this[_i("0x4")][_i("0xc")].createPositionAt(e,t.end));for(const t of this.editor.model[_i("0x1")][_i("0x6")](_i("0xe")))if(null!==n.getIntersection(t[_i("0xd")]()))return!0;return!1}}const yi=["model","FontSize","*Reset font size*","*Set font color:* %0","plugins","FontFamilyEditing","find","FontSizeEditing","commandParams","registerAttributeLabel","normalizeSizeOptions","*Set font family:* %0","label","value","fontBackgroundColor","*Set font background color:* %0","fontSize.options","*Reset font family*","FORMAT_FONT_BACKGROUND","_enableDefaultAttributesIntegration","*Set font size:* %0","fontSize","locale","get","fontFamily","fontColor.colors","config","_registerLegacyDescription","FORMAT_FONT_COLOR","fontColor","format","TrackChangesEditing","_descriptionFactory","commandName","title","editor","FORMAT_FONT_SIZE","toLowerCase","trim"];var Ci,ki;Ci=yi,ki=495,function(t){for(;--t;)Ci.push(Ci.shift())}(++ki);const Ai=function(t,e){return yi[t-=0]},Ii=[{pluginName:Ai("0x13"),commandName:Ai("0x21")},{pluginName:Ai("0x11"),commandName:Ai("0x24")},{pluginName:"FontColorEditing",commandName:Ai("0x2")},{pluginName:"FontBackgroundColorEditing",commandName:Ai("0x1a")}];class Ri extends t.Plugin{afterInit(){const t=this.editor[Ai("0x22")],e=this.editor[Ai("0x10")][Ai("0x23")](Ai("0x4"));for(const{pluginName:t,commandName:n}of Ii)this[Ai("0x8")][Ai("0x10")].has(t)&&e[Ai("0x1f")](n,[n]);t.t,e[Ai("0x5")][Ai("0x15")]("fontSize",Yr(t,Ai("0x9"))),e[Ai("0x5")][Ai("0x15")](Ai("0x24"),Yr(t,"FORMAT_FONT_FAMILY")),e._descriptionFactory.registerAttributeLabel(Ai("0x2"),Yr(t,Ai("0x1"))),e._descriptionFactory[Ai("0x15")](Ai("0x1a"),Yr(t,Ai("0x1e"))),this[Ai("0x0")]()}[Ai("0x0")](){const t=this.editor,e=t[Ai("0x22")];t[Ai("0x10")][Ai("0x23")]("TrackChangesEditing")[Ai("0x5")].registerDescriptionCallback((t=>{const n=e.t;if("formatInline"!=t.type)return;const{data:r}=t;if(null!=r){if(Ai("0x21")==r.commandName){const t=r[Ai("0x14")][0][Ai("0x19")];if(t){const r=n(this[Ai("0x8")][Ai("0x10")][Ai("0x23")](Ai("0xd"))[Ai("0x16")](this[Ai("0x8")][Ai("0x26")][Ai("0x23")](Ai("0x1c")))[Ai("0x12")]((e=>e[Ai("0xc")]==t))[Ai("0x7")]).toLowerCase();return{type:"format",content:Yr(e,Ai("0x20"),r)}}return{type:Ai("0x3"),content:Yr(e,Ai("0xe"))}}if("fontFamily"==r[Ai("0x6")]){const t=r[Ai("0x14")][0][Ai("0x19")];return t?{type:Ai("0x3"),content:Yr(e,Ai("0x17"),t)}:{type:Ai("0x3"),content:Yr(e,Ai("0x1d"))}}if(Ai("0x2")==r.commandName){const t=r[Ai("0x14")][0][Ai("0x19")];if(t){const r=(0,o.normalizeColorOptions)(this[Ai("0x8")].config[Ai("0x23")](Ai("0x25")))[Ai("0x12")]((e=>e[Ai("0xc")]==t));let i=t,s="";return r&&(i=r[Ai("0x18")],s=n(i).toLowerCase()),{type:"format",content:Yr(e,Ai("0xf"),s)[Ai("0xb")](),color:{value:t,title:s||i}}}return{type:Ai("0x3"),content:Yr(e,"*Reset font color*")}}if(Ai("0x1a")==r[Ai("0x6")]){const t=r[Ai("0x14")][0][Ai("0x19")];if(t){const r=(0,o.normalizeColorOptions)(this[Ai("0x8")][Ai("0x26")][Ai("0x23")]("fontBackgroundColor.colors"))[Ai("0x12")]((e=>e[Ai("0xc")]==t));let i=t,s="";return r&&(i=r.label,s=n(i)[Ai("0xa")]()),{type:"format",content:Yr(e,Ai("0x1b"),s).trim(),color:{value:t,title:s||i}}}return{type:"format",content:Yr(e,"*Reset font background color*")}}}}))}}const Si=["TrackChangesEditing","charAt","title","FontSize","join","model","_descriptionFactory","get","*Set format to:* %0","format","config","_registerLegacyDescription","split","type","plugins","copyFormat","formatBlock","afterInit","locale","_enableDefaultAttributesIntegration","label","boolean","toUpperCase","find","fontBackgroundColor","commandParams","pasteFormat","normalizeSizeOptions","commandName","fontColor.colors","editor","enableCommand","fontSize.options","toLowerCase","commands"];var vi,Ni;vi=Si,Ni=255,function(t){for(;--t;)vi.push(vi.shift())}(++Ni);const Li=function(t,e){return Si[t-=0]};class Mi extends t.Plugin{[Li("0x7")](){const t=this[Li("0x14")],e=t[Li("0x4")].get(Li("0x19")),n=t[Li("0x18")].get(Li("0x5")),r=t[Li("0x18")][Li("0x20")](Li("0x10"));n&&r&&(e[Li("0x9")](Li("0x10")),e[Li("0x15")](Li("0x5")),this[Li("0x1")]())}[Li("0x1")](){const t=this[Li("0x14")],e=t[Li("0x8")];t.plugins.get(Li("0x19"))[Li("0x1f")].registerDescriptionCallback((n=>{if(Li("0x6")!=n[Li("0x3")]&&"formatInline"!=n.type)return;const{data:r}=n;if(r&&Li("0x10")===r[Li("0x12")]){const n=[],o=r[Li("0xf")][0];for(const[e,r]of Object.entries(o))n.push(wi(t,e,r));return n.length?{type:Li("0x22"),content:Yr(e,Li("0x21"),n.join(", "))}:{type:Li("0x22"),content:Yr(e,"*Remove all formatting*")}}}))}}function wi(t,e,n){const r=t[Li("0x8")].t,i=e[Li("0x2")](/(?=[A-Z])/)[Li("0x1d")](" "),s=r(i[Li("0x1a")](0)[Li("0xc")]()+i.slice(1))[Li("0x17")]();if(Li("0xb")==typeof n)return s;if("fontColor"===e||Li("0xe")===e){const e=(0,o.normalizeColorOptions)(t[Li("0x0")].get(Li("0x13")))[Li("0xd")]((t=>t[Li("0x1e")]==n));return s+" ("+(e?r(e[Li("0xa")])[Li("0x17")]():n)+")"}if("fontSize"===e&&isNaN(parseFloat(n))){const e=t[Li("0x4")][Li("0x20")](Li("0x1c"))[Li("0x11")](t[Li("0x0")][Li("0x20")](Li("0x16")))[Li("0xd")]((t=>t.model==n));return s+" ("+(e?r(e[Li("0x1b")])[Li("0x17")]():n)+")"}return s+" ("+n+")"}const Oi=["model","match","get","heading.options","editor","_registerLegacyDescription","locale","registerElementLabel","_enableDefaultAttributesIntegration","_descriptionFactory","format","paragraph","view","_getHeadingLevel","title","ELEMENT_HEADING","TrackChangesEditing","ELEMENT_HEADING_CUSTOM","plugins","heading","value","_headingOptions","commandName","afterInit","name","find","commandParams","has","*Change to:* %0","formatBlock","registerDescriptionCallback","config"];var Fi,Di;Fi=Oi,Di=420,function(t){for(;--t;)Fi.push(Fi.shift())}(++Di);const Bi=function(t,e){return Oi[t-=0]};class Pi extends t.Plugin{[Bi("0x13")](){const t=this.editor;if(!t.plugins[Bi("0x17")]("HeadingEditing"))return;this[Bi("0x11")]=t[Bi("0x1b")][Bi("0x1e")](Bi("0x1f"));const e=t[Bi("0x2")],n=t[Bi("0xe")][Bi("0x1e")](Bi("0xc"));n[Bi("0x4")](Bi("0xf"));for(const t of this._headingOptions)Bi("0x7")!=t[Bi("0x1c")]&&n[Bi("0x5")][Bi("0x3")](t.model,(n=>{const r=this[Bi("0x9")](t[Bi("0x1c")]);return null!==r?(s=n,x=r,Yr(e,Bi("0xb"),[s,x])):(o=n,i=t[Bi("0xa")],Yr(e,Bi("0xd"),[o,i]));var o,i,s,x}));this._registerLegacyDescription()}[Bi("0x1")](){const t=this[Bi("0x0")],e=t[Bi("0x2")];t[Bi("0xe")][Bi("0x1e")](Bi("0xc"))[Bi("0x5")][Bi("0x1a")]((t=>{if(Bi("0x19")!=t.type)return;const{data:n}=t;if(n&&Bi("0xf")==n[Bi("0x12")]){const t=n[Bi("0x16")][0][Bi("0x10")],s=this[Bi("0x9")](t);if(null!==s)return{type:Bi("0x6"),content:Yr(e,Bi("0x18"),(1,i=s,Yr(e,Bi("0xb"),[1,i])))};const x=this[Bi("0x11")][Bi("0x15")]((e=>e[Bi("0x1c")]===t))[Bi("0xa")];return{type:Bi("0x6"),content:Yr(e,Bi("0x18"),(r=1,o=x,Yr(e,Bi("0xd"),[r,o])))}}var r,o,i}))}[Bi("0x9")](t){var e,n;const r=t[Bi("0x1d")](/^heading(\d+)/);if(r)return r[1];const o=null===(e=this._headingOptions)||void 0===e?void 0:e[Bi("0x15")]((e=>e[Bi("0x1c")]==t));if(o&&o[Bi("0x8")]){const t=o.view,e=(null!==(n=t[Bi("0x14")])&&void 0!==n?n:t)[Bi("0x1d")](/^h(\d+)/);if(e)return e[1]}return null}}const Ui=["registerDescriptionCallback","_descriptionFactory","formatInline","*Remove highlight*","highlight","plugins","*Set highlight:* %0","locale","HighlightEditing","registerAttributeLabel","find","highlight.options","model","color","_enableDefaultAttributesIntegration","_registerLegacyDescription","config","format","TrackChangesEditing","FORMAT_HIGHLIGHT","toLowerCase","type","value","has","title","commandParams","editor","get"];var ji,Gi;ji=Ui,Gi=432,function(t){for(;--t;)ji.push(ji.shift())}(++Gi);const Vi=function(t,e){return Ui[t-=0]};class Hi extends t.Plugin{afterInit(){const t=this[Vi("0xe")];if(!t[Vi("0x15")][Vi("0xb")](Vi("0x18")))return;const e=t[Vi("0x15")][Vi("0xf")](Vi("0x6")),n=t[Vi("0x17")];e[Vi("0x2")]("highlight",[Vi("0x14")]),e[Vi("0x11")][Vi("0x19")](Vi("0x14"),Yr(n,Vi("0x7"))),this[Vi("0x3")]()}[Vi("0x3")](){const t=this.editor,e=t.locale;t[Vi("0x15")][Vi("0xf")](Vi("0x6"))._descriptionFactory[Vi("0x10")]((n=>{if(Vi("0x12")!=n[Vi("0x9")])return;const{data:r}=n;if(r&&Vi("0x14")==r.commandName){const n=e.t,o=r[Vi("0xd")][0][Vi("0xa")];if(o){const r=t[Vi("0x4")][Vi("0xf")](Vi("0x1b"))[Vi("0x1a")]((t=>t[Vi("0x0")]==o)),i=n(r[Vi("0xc")])[Vi("0x8")]();return{type:Vi("0x5"),content:Yr(e,Vi("0x16"),i),color:{value:r[Vi("0x1")],title:r[Vi("0xc")]}}}return{type:Vi("0x5"),content:Yr(e,Vi("0x13"),Yr(e,Vi("0x7")))}}}))}}const zi=["insert","ck-horizontal-line","createPositionAt","horizontalLine","afterInit","_descriptionFactory","locale","showSuggestionHighlights","addClass","createContainerElement","TrackChangesEditing","HorizontalLineEditing","plugins","editor","get","high","ELEMENT_HORIZONTAL_LINE","createEmptyElement","div","elementToStructure","enableCommand","conversion"];var Wi,Ki;Wi=zi,Ki=145,function(t){for(;--t;)Wi.push(Wi.shift())}(++Ki);const qi=function(t,e){return zi[t-=0]};class Xi extends t.Plugin{[qi("0xd")](){const t=this[qi("0x0")];if(!t[qi("0x15")].has(qi("0x14")))return;t[qi("0x15")][qi("0x1")](qi("0x13"))[qi("0x7")](qi("0xc"));const e=t[qi("0x15")].get(qi("0x13")),n=t[qi("0xf")];e[qi("0xe")].registerElementLabel(qi("0xc"),(t=>Yr(n,qi("0x3"),t))),t[qi("0x8")].for("dataDowncast")[qi("0x6")]({model:qi("0xc"),view:(t,{writer:e,options:n})=>{if(!n[qi("0x10")])return null;const r=e[qi("0x12")](qi("0x5")),o=e[qi("0x4")]("hr");return e[qi("0x11")](qi("0xa"),r),e[qi("0x9")](e[qi("0xb")](r,0),o),r},converterPriority:qi("0x2")})}}const $i=["type","locale","htmlEmbed","afterInit","ELEMENT_HTML_EMBED","rawHtml","registerDescriptionCallback","format","formatBlock","_enableDefaultAttributesIntegration","commandName","_descriptionFactory","nodeAfter","value","editor","HtmlEmbed","start","*Change %0 content*","plugins","_registerLegacyDescription"];var Zi,Qi;Zi=$i,Qi=379,function(t){for(;--t;)Zi.push(Zi.shift())}(++Qi);const Yi=function(t,e){return $i[t-=0]};class Ji extends t.Plugin{[Yi("0x4")](){const t=this[Yi("0xf")];if(!t[Yi("0x13")].has(Yi("0x10")))return;const e=t[Yi("0x13")].get("TrackChangesEditing"),n=t[Yi("0x2")];e[Yi("0xc")].registerElementLabel(Yi("0x6"),(t=>Yr(n,"ELEMENT_HTML_EMBED",t))),e[Yi("0xa")](Yi("0x3"),[],[Yi("0xe")]),e[Yi("0xc")][Yi("0x7")]((t=>{if("attribute"!=t[Yi("0x1")])return;const{data:e}=t;if(e&&Yi("0xe")==e.key&&t.getFirstRange()[Yi("0x11")][Yi("0xd")].is("element",Yi("0x6"))){const t=Yr(n,Yi("0x5"));return{type:Yi("0x8"),content:Yr(n,Yi("0x12"),t)}}})),this[Yi("0x0")]()}[Yi("0x0")](){const t=this.editor,e=t[Yi("0x2")];t[Yi("0x13")].get("TrackChangesEditing")[Yi("0xc")][Yi("0x7")]((t=>{if(Yi("0x9")!=t.type)return;const{data:n}=t;if(n&&"htmlEmbed"==n[Yi("0xb")]){const t=Yr(e,Yi("0x5"));return{type:Yi("0x8"),content:Yr(e,Yi("0x12"),t)}}}))}}const ts=["findIndex","accept","forward","editor","createRangeOn","schema","removeObject","*Set image text alternative:* %0","format","_suggestionFactory","ELEMENT_IMAGE","ImageResize","imageTextAlternative","getCaptionFromImageModelElement","uploadImage","discard","registerDescriptionCallback","nodeBefore","start","ImageUploadEditing","get","attribute","ImageInlineEditing","key","ELEMENT_CAPTION","deletion","getNearestSelectionRange","imageStylePreApply","afterInit","imageInline","isOwn","registerCustomCallback","change","toPrevious","createRange","previous","FORMAT_IMAGE_SIZE","registerAttributeLabel","toNext","markBlockFormat","Block image to inline image","forceDefaultExecution","commandName","imageTypeBlock","caption","plugins","type","subType","join","isEqual","find","model","isBefore","ImageBlockEditing","length","commandParams","resizedWidth","isIntersecting","_registerLegacyDescription","convertBlockImageToInline","detach","isCollapsed","isBlockImage","_enableDefaultAttributesIntegration","imageTypeInline","alt","*Remove image text alternative*","width","imageBlock","getFirstRange","resizeImage","_descriptionFactory","nodeAfter","end","registerElementLabel","formatBlock","filter","ImageCaptionUtils","has","backward","getClosestSelectedImageElement","selection","addObject","formatInline","document","enableCommand","element","chain","toggleImageCaption","ImageEditing","*Set image width:* %0","getSuggestionCallback","markInsertion","ELEMENT_INLINE_IMAGE","fromPosition","convertInlineImageToBlock","insertion","imageCaption"];var es,ns;es=ts,ns=404,function(t){for(;--t;)es.push(es.shift())}(++ns);const rs=function(t,e){return ts[t-=0]};class os extends t.Plugin{[rs("0x10")](){const t=this.editor;if(!t[rs("0x21")].has(rs("0x4d")))return;const e=t.plugins[rs("0x8")]("TrackChangesEditing"),n=t[rs("0x21")].get("ImageUtils"),r=t.locale;e.enableCommand("insertImage"),e[rs("0x3b")][rs("0x3e")](rs("0x38"),(t=>Yr(r,rs("0x60"),t))),e[rs("0x3b")][rs("0x3e")](rs("0x11"),(t=>Yr(r,rs("0x51"),t))),e[rs("0x3b")][rs("0x3e")](rs("0x20"),(()=>Yr(r,rs("0xc")))),t[rs("0x21")][rs("0x42")](rs("0x7"))&&e[rs("0x49")](rs("0x2")),t[rs("0x21")][rs("0x42")](rs("0x29"))&&t[rs("0x21")][rs("0x42")](rs("0xa"))&&(e.enableCommand(rs("0x34"),((r,o)=>{const i=n.getClosestSelectedImageElement(t[rs("0x27")][rs("0x48")].selection);t.model[rs("0x14")]((()=>{e.markBlockFormat(i,{commandName:rs("0x34"),commandParams:[o]},[],rs("0x2f"))}))})),e[rs("0x49")](rs("0x1f"),((r,o)=>{t[rs("0x27")][rs("0x14")]((i=>{let x=n[rs("0x44")](t[rs("0x27")][rs("0x48")].selection),a=i.createRangeOn(x);const c=s.LivePosition[rs("0x52")](a[rs("0x6")],rs("0x15")),l=s.LivePosition[rs("0x52")](a[rs("0x3d")],rs("0x1a"));e[rs("0x1d")]((()=>r(o))),x=n[rs("0x44")](t[rs("0x27")].document[rs("0x45")]),a=i[rs("0x5a")](x);const u=i[rs("0x16")](c,l);c[rs("0x30")](),l[rs("0x30")](),e[rs("0x1b")](x,{commandName:rs("0x34"),commandParams:[o]},[],rs("0x53")),u[rs("0x6")][rs("0x28")](a[rs("0x6")])&&e.markInsertion(i[rs("0x16")](u[rs("0x6")],a[rs("0x6")]),"convertInlineImageToBlock"),a.end[rs("0x28")](u.end)&&e[rs("0x50")](i[rs("0x16")](a.end,u[rs("0x3d")]),rs("0x53"))}))})),e[rs("0x5f")].registerCustomCallback(rs("0x3f"),rs("0x53"),rs("0x24"),(()=>!1)),e[rs("0x5f")][rs("0x13")]("formatBlock",rs("0x53"),rs("0x57"),(()=>!1)),e[rs("0x5f")][rs("0x13")]("formatBlock",rs("0x53"),rs("0x3"),e[rs("0x5f")][rs("0x4f")](rs("0x3f"),"","accept")),e[rs("0x5f")][rs("0x13")](rs("0x54"),rs("0x53"),rs("0x24"),(()=>!1)),e[rs("0x5f")].registerCustomCallback(rs("0x54"),"convertInlineImageToBlock",rs("0x3"),(([n])=>{const r=e[rs("0x5f")][rs("0x4f")](rs("0x54"),"","discard");let o=n.start,i=n.end;const s=t[rs("0x27")][rs("0x5b")][rs("0xe")](o,rs("0x43")),x=t[rs("0x27")].schema[rs("0xe")](i,rs("0x58"));s[rs("0x31")]&&(o=s[rs("0x6")]),x[rs("0x31")]&&(i=x[rs("0x3d")]),r([t[rs("0x27")][rs("0x16")](o,i)])})),e._suggestionFactory[rs("0x13")](rs("0x3f"),rs("0x53"),rs("0x4b"),x),e[rs("0x5f")].registerCustomCallback(rs("0x54"),rs("0x53"),rs("0x4b"),x)),t[rs("0x21")][rs("0x42")]("ImageCaptionEditing")&&(e.enableCommand(rs("0x4c"),((r,o)=>{const i=t.plugins.get(rs("0x41"));let s=n.getClosestSelectedImageElement(t.model[rs("0x48")][rs("0x45")]),x=i[rs("0x1")](s);t[rs("0x27")].change((()=>{if(x)return void e.markDeletion(t.model[rs("0x5a")](x));const a=n[rs("0x32")](s);r(o),s=n[rs("0x44")](t[rs("0x27")][rs("0x48")][rs("0x45")]),x=i[rs("0x1")](s),e[rs("0x50")](t[rs("0x27")][rs("0x5a")](x),a?null:rs("0x55"))}))})),e[rs("0x5f")][rs("0x13")](rs("0x54"),rs("0x55"),rs("0x4b"),x));const o=[{type:rs("0x3f"),subType:rs("0xf")},{type:rs("0x54"),subType:rs("0x55")},{type:rs("0x3f"),subType:rs("0x53")},{type:rs("0x54"),subType:"convertInlineImageToBlock"}];function i(t,r){const i=o[rs("0x56")]((({type:e,subType:n})=>t[rs("0x22")]==e&&t[rs("0x23")]==n)),s=o[rs("0x56")]((({type:t,subType:e})=>r[rs("0x22")]==t&&r[rs("0x23")]==e));if(i<0||s<0)return!1;const x=t[rs("0x39")](),a=r[rs("0x39")]();if((0==i||1==i)&&2==s&&x[rs("0x2d")](a))return!0;if(2==i&&3==s){const t=e._findSuggestions(x,rs("0x54"))[rs("0x40")]((({suggestion:t,meta:e})=>e[rs("0x12")]&&"convertInlineImageToBlock"==t[rs("0x23")]));if(t[rs("0x2a")]>1&&a[rs("0x3d")].isEqual(x[rs("0x6")]))return!0;if(1==t.length&&(x[rs("0x6")][rs("0x25")](a[rs("0x3d")])||x[rs("0x3d")][rs("0x25")](a[rs("0x6")])))return!0}if(3==i&&3==s&&x[rs("0x6")][rs("0x28")](a[rs("0x6")])){const t=x[rs("0x3d")][rs("0x3c")],e=a[rs("0x6")][rs("0x5")];return n[rs("0x32")](t)&&t===e}return!1}function x(t,e){return i(t,e)?[t,e]:i(e,t)?[e,t]:null}t.plugins.has(rs("0x61"))&&(e[rs("0x33")](rs("0x3a"),[],[rs("0x2c")]),e[rs("0x3b")][rs("0x19")](rs("0x2c"),Yr(r,rs("0x18")))),t[rs("0x21")][rs("0x42")]("ImageTextAlternativeEditing")&&e._enableDefaultAttributesIntegration(rs("0x0"),[],[rs("0x35")]),e[rs("0x3b")][rs("0x4")]((t=>{if(o[rs("0x26")]((({type:e,subType:n})=>t[rs("0x22")]==e&&t.subType==n)))return t[rs("0x17")]?{}:void 0})),e[rs("0x3b")][rs("0x4")]((t=>{if(rs("0x54")==t.type||rs("0xd")==t[rs("0x22")]){const e=t.getContainedElement();if(e&&e.is(rs("0x4a"),rs("0x20")))return{type:rs("0x54")==t[rs("0x22")]?rs("0x46"):rs("0x5c"),element:e,quantity:1}}})),e[rs("0x3b")][rs("0x4")]((t=>"formatBlock"==t[rs("0x22")]&&rs("0x53")==t[rs("0x23")]?{type:rs("0x5e"),content:"Inline image to block image"}:rs("0x3f")==t.type&&"convertBlockImageToInline"==t.subType?{type:"format",content:rs("0x1c")}:void 0)),e[rs("0x3b")][rs("0x4")]((t=>{if(rs("0x9")!=t[rs("0x22")])return;const{data:e}=t;if(!e||rs("0x35")!=e[rs("0xb")])return;const n=e.newValue;return n?{type:rs("0x5e"),content:Yr(r,rs("0x5d"),'"'+n+'"')}:{type:rs("0x5e"),content:Yr(r,rs("0x36"))}})),this[rs("0x2e")]()}[rs("0x2e")](){const t=this[rs("0x59")],e=t.locale;t.plugins[rs("0x8")]("TrackChangesEditing")[rs("0x3b")].registerDescriptionCallback((t=>{if(rs("0x3f")!=t.type&&rs("0x47")!=t.type)return;const{data:n}=t;if(n){if(rs("0x0")==n[rs("0x1e")]){const t=n.commandParams[0].newValue;return t?{type:"format",content:Yr(e,rs("0x5d"),'"'+t+'"')}:{type:rs("0x5e"),content:Yr(e,rs("0x36"))}}if(rs("0x3a")==n[rs("0x1e")]){const t=n[rs("0x2b")][0][rs("0x37")];return t?{type:rs("0x5e"),content:Yr(e,rs("0x4e"),t)}:{type:rs("0x5e"),content:Yr(e,"*Reset image width*")}}}}))}}const is=["oldValue","plugins","_suggestionFactory","_descriptionFactory","afterInit","editor","key","_handleLegacySuggestions","locale","src","_registerLegacyDescription","*Format:* replace image URL","registerDescriptionCallback","newValue","format","formatInline","ImageEditing","attribute","getSuggestionCallback","replaceImageSource","*Replace image URL*","type","formatBlock","discard","registerCustomCallback","get","TrackChangesEditing"];var ss,xs;ss=is,xs=262,function(t){for(;--t;)ss.push(ss.shift())}(++xs);const as=function(t,e){return is[t-=0]};class cs extends t.Plugin{[as("0xc")](){if(!this[as("0xd")].plugins.has(as("0x18")))return;const t=this.editor[as("0x10")],e=this.editor[as("0x9")][as("0x6")]("TrackChangesEditing");e._enableDefaultAttributesIntegration(as("0x0"),[],[as("0x11")]),e[as("0xb")][as("0x14")]((e=>{if(as("0x19")!=e[as("0x2")])return;const{data:n}=e;return n&&as("0x11")==n[as("0xe")]?n[as("0x15")]&&n[as("0x8")]?{type:as("0x16"),content:Yr(t,as("0x1"))}:{type:as("0x16"),content:""}:void 0})),this._handleLegacySuggestions()}[as("0xf")](){const t=this[as("0xd")].plugins[as("0x6")]("TrackChangesEditing");t[as("0xa")][as("0x5")](as("0x3"),as("0x0"),"accept",t[as("0xa")][as("0x1a")](as("0x3"),null,as("0x4"))),t[as("0xa")][as("0x5")]("formatBlock",as("0x0"),as("0x4"),t[as("0xa")][as("0x1a")]("formatBlock",null,"accept")),this._registerLegacyDescription()}[as("0x12")](){const t=this[as("0xd")],e=t[as("0x10")];t[as("0x9")].get(as("0x7"))._descriptionFactory[as("0x14")]((t=>{if("formatBlock"!=t[as("0x2")]&&as("0x17")!=t[as("0x2")])return;const{data:n}=t;return n&&"replaceImageSource"==n.commandName?{type:"format",content:Yr(e,as("0x13"))}:void 0}))}}const ls=["next","registerDescriptionCallback","createRangeOn","imageStyle","nodeAfter","getChangedMarkers","newRange","formatInline","differ","plugins","imageCaption","afterInit","hasSuggestion","registerPostFixer","imageTypeInline","insertion","getSuggestion","editor","discard","type","normalizedStyles","commandParams","length","formatBlock","getClosestSelectedImageElement","_registerLegacyDescription","author","imageStylePostApply","getSuggestionCallback","discardSuggestion","_suggestionFactory","from","isBlockImage","forEach","document","nodeBefore","filter","isEqual","join","name","isInContent","commandName","_splitMarkerName","model","TrackChangesEditing","*Format:* %0","setImageNaturalSizeAttributes","refresh","_findSuggestions","getContainedElement","getFirstRange","enableCommand","markInlineFormat","ImageStyleEditing","imageTypeBlock","get","chain","shouldConvertImageType","FORMAT_SIDE_IMAGE","start","commands","selection","imageStylePreApply","registerCustomCallback","title","isOwn","accept","end","findIndex","_descriptionFactory","getSuggestions","convertInlineImageToBlock","subType","isBefore","value"];var us,ds;us=ls,ds=139,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("0x1c")];if(!t[gs("0x14")].has(gs("0x40")))return;const n=t[gs("0x14")][gs("0x42")](gs("0x37")),r=t[gs("0x14")].get("ImageUtils"),o={};n[gs("0x3e")](gs("0xe"),((o,i)=>{const s=t[gs("0x14")][gs("0x42")]("Users").me,x=t.commands[gs("0x42")]("imageStyle");let a=r[gs("0x23")](t[gs("0x36")][gs("0x2d")][gs("0x48")]),c=t[gs("0x36")][gs("0xd")](a),l=x[gs("0xa")];if(l==i.value)return;const u={commandName:gs("0xe"),commandParams:[i],formatGroupId:(0,e.uid)()};t[gs("0x36")].change((()=>{if(n[gs("0x6")]()[gs("0x2f")]((t=>t[gs("0x33")]&&s==t[gs("0x25")]&&(gs("0x22")==t[gs("0x1e")]||"formatInline"==t[gs("0x1e")])&&(gs("0x49")==t[gs("0x8")]||gs("0x26")==t[gs("0x8")])&&t[gs("0x3d")]()[gs("0x30")](c)))[gs("0x2c")]((t=>n[gs("0x28")](t.head))),a=r.getClosestSelectedImageElement(t[gs("0x36")][gs("0x2d")][gs("0x48")]),c=t[gs("0x36")].createRangeOn(a),x[gs("0x3a")](),t.commands.get(gs("0x19"))[gs("0x3a")](),t[gs("0x47")][gs("0x42")](gs("0x41"))[gs("0x3a")](),l=x.value,l!=i[gs("0xa")])return r.isInlineImage(a)&&x[gs("0x44")](i[gs("0xa")],a)?(o({...i,setImageSizes:!1}),a=r[gs("0x23")](t[gs("0x36")][gs("0x2d")][gs("0x48")]),void n.markBlockFormat(a,{...u,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],gs("0x49"))):void(r[gs("0x2b")](a)?n.markBlockFormat(a,u,[],gs("0x26")):n[gs("0x3f")](c,u,"imageStylePostApply"))}))}));for(const e of t[gs("0x14")][gs("0x42")]("ImageStyleEditing")[gs("0x1f")])o[e[gs("0x32")]]=e[gs("0x0")].toLowerCase();n[gs("0x29")].registerCustomCallback(gs("0x22"),gs("0x49"),"join",(()=>!1)),n[gs("0x29")].registerCustomCallback(gs("0x22"),gs("0x26"),"join",(()=>!1)),n[gs("0x29")][gs("0x4a")](gs("0x12"),gs("0x26"),gs("0x31"),(()=>!1)),n[gs("0x29")][gs("0x4a")]("formatBlock","imageStylePreApply",gs("0x2"),(([t])=>{r[gs("0x39")](t[gs("0x3c")]())})),n[gs("0x29")][gs("0x4a")](gs("0x22"),gs("0x49"),gs("0x1d"),((t,e)=>{n[gs("0x29")][gs("0x27")](gs("0x22"),"",gs("0x2"))(t,{commandName:e.commandName,commandParams:e.commandReversedParams})})),n._suggestionFactory[gs("0x4a")](gs("0x22"),gs("0x49"),gs("0x43"),(function(t,e){return s(t,e)?[t,e]:s(e,t)?[e,t]:null}));const i=[{type:gs("0x22"),subType:"imageStylePreApply"},{type:gs("0x1a"),subType:gs("0x15")},{type:gs("0x22"),subType:"convertInlineImageToBlock"},{type:gs("0x1a"),subType:"convertInlineImageToBlock"}];function s(t,e){const o=i[gs("0x4")]((({type:e,subType:n})=>t.type==e&&t[gs("0x8")]==n)),s=i[gs("0x4")]((({type:t,subType:n})=>e[gs("0x1e")]==t&&e[gs("0x8")]==n));if(o<0||s<0)return!1;const x=t.getFirstRange(),a=e.getFirstRange();if((0==o||1==o)&&2==s&&x.isIntersecting(a))return!0;if(2==o&&3==s){const t=n[gs("0x3b")](x,gs("0x1a")).filter((({suggestion:t,meta:e})=>e[gs("0x1")]&&gs("0x7")==t.subType));if(t[gs("0x21")]>1&&a[gs("0x3")][gs("0x30")](x[gs("0x46")]))return!0;if(1==t[gs("0x21")]&&(x.start.isEqual(a[gs("0x3")])||x[gs("0x3")][gs("0x30")](a[gs("0x46")])))return!0}if(3==o&&3==s&&x.start[gs("0x9")](a.start)){const t=x[gs("0x3")][gs("0xf")],e=a[gs("0x46")][gs("0x2e")];return r[gs("0x2b")](t)&&t===e}return!1}t[gs("0x36")][gs("0x2d")][gs("0x18")]((()=>{let e=!1;const o=Array[gs("0x2a")](t[gs("0x36")][gs("0x2d")][gs("0x13")][gs("0x10")]());for(const{name:t,data:i}of o){const{group:o,type:s,subType:x,id:a}=n[gs("0x35")](t);if("suggestion"==o&&n[gs("0x17")](a)){if(gs("0x22")==s&&("imageStylePreApply"==x||gs("0x26")==x)){const t=n[gs("0x1b")](a);if(i.newRange){const o=t[gs("0x3d")]()[gs("0x3c")]();if(r[gs("0x2b")](o))continue;n[gs("0x28")](t),e=!0}}if(gs("0x1a")==s&&gs("0x15")==x&&!i[gs("0x11")]){const t=n.getSuggestion(a);t[gs("0xb")]&&t[gs("0xb")][gs("0x33")]&&(n[gs("0x28")](t[gs("0xb")]),e=!0)}}}return e})),this._registerLegacyDescription(o)}[gs("0x24")](t){const e=this[gs("0x1c")],n=e.locale;e[gs("0x14")][gs("0x42")](gs("0x37"))[gs("0x5")][gs("0xc")]((e=>{if(gs("0x22")!=e[gs("0x1e")]&&gs("0x12")!=e[gs("0x1e")])return;const{data:r}=e;if(!r||gs("0xe")!=r[gs("0x34")])return;const o=r[gs("0x20")][0][gs("0xa")];return i="side"===o?Yr(n,gs("0x45")):t[o]||o,{type:"format",content:Yr(n,gs("0x38"),i)};var i}))}}const ms=["_trackChangesExecuted","value","_trackChangesValueDuringImport","dataInsert","enableCommand","high","execute","Users","editor","get","trackChanges","_handleImportedData","importWord","TrackChangesEditing","listenTo","plugins","collaboration_features","lowest","forEach"];var hs,ps;hs=ms,ps=286,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("0x1")]=!1,this[bs("0x12")]=!1}afterInit(){const t=this[bs("0x7")],e=t.commands[bs("0x8")]("importWord"),n=t.commands[bs("0x8")](bs("0x9"));e&&(e.on(bs("0x5"),((t,[,e])=>{this[bs("0x1")]=n[bs("0x0")],e[bs("0xf")].track_changes=!this._trackChangesValueDuringImport}),{priority:bs("0x4")}),this.listenTo(e,bs("0x2"),this[bs("0xa")].bind(this)),this[bs("0xd")](e,"dataInsert",(()=>{this[bs("0x12")]&&(n[bs("0x5")](),this._trackChangesExecuted=!1)}),{priority:bs("0x10")}),t.plugins[bs("0x8")](bs("0xc"))[bs("0x3")](bs("0xb")))}[bs("0xa")](t,e){const{suggestions:n}=e,r=this.editor.commands[bs("0x8")]("trackChanges"),o=r.value;this[bs("0x1")]!==o&&(r[bs("0x5")](),this[bs("0x12")]=!0),n&&n[bs("0x11")]((({id:t,type:e,author:n,created_at:r})=>{const o={id:t,type:e,authorId:this[bs("0x7")][bs("0xe")][bs("0x8")](bs("0x6")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:r?new Date(r):new Date,source:bs("0xb")}}};this[bs("0x7")][bs("0xe")].get("TrackChangesEditing")._setSuggestionData(o)}))}}const _s=["has","blockIndent","editor","commandName","format","TrackChangesEditing","_descriptionFactory","registerDescriptionCallback","indentBlock","outdent","registerAttributeLabel","*Outdent:* %0","afterInit","outdentBlock","type","formatBlock","plugins","get","_registerLegacyDescription","locale","_registerBlockAttribute","getItemLabel","IndentEditing","FORMAT_INDENT","enableCommand","*Indent:* %0","_enableDefaultAttributesIntegration","indent"];var Ts,ys;Ts=_s,ys=189,function(t){for(;--t;)Ts.push(Ts.shift())}(++ys);const Cs=function(t,e){return _s[t-=0]};class ks extends t.Plugin{[Cs("0x13")](){const t=this[Cs("0x9")],e=t[Cs("0x17")][Cs("0x18")](Cs("0xc"));if(t.plugins[Cs("0x7")](Cs("0x1"))&&(e[Cs("0x3")](Cs("0x6")),e[Cs("0x3")](Cs("0x10"))),t[Cs("0x17")][Cs("0x7")]("IndentBlock"))for(const t of[Cs("0xf"),Cs("0x14")])e[Cs("0x5")](t);const n=t.locale;e[Cs("0x1b")](Cs("0x8")),e[Cs("0xd")][Cs("0x11")](Cs("0x8"),Yr(n,Cs("0x2"))),this[Cs("0x19")]()}_registerLegacyDescription(){const t=this[Cs("0x9")],e=t[Cs("0x1a")],n=t.plugins[Cs("0x18")](Cs("0xc"));n[Cs("0xd")][Cs("0xe")]((t=>{if(Cs("0x16")!=t[Cs("0x15")])return;const{data:r}=t;if(!r)return;if("indentBlock"!=r[Cs("0xa")]&&"outdentBlock"!=r[Cs("0xa")])return;const o=t.getItems()[0],i=n[Cs("0xd")][Cs("0x0")](o);return"indentBlock"==r[Cs("0xa")]?{type:Cs("0xb"),content:Yr(e,Cs("0x4"),i)}:"outdentBlock"==r.commandName?{type:Cs("0xb"),content:Yr(e,Cs("0x12"),i)}:void 0}))}}var As,Is,Rs=["init","plugins","input","enableCommand","TrackChangesEditing","requires","get"];As=Rs,Is=356,function(t){for(;--t;)As.push(As.shift())}(++Is);var Ss=function(t,e){return Rs[t-=0]};class vs extends t.Plugin{static get[Ss("0x6")](){return[Ho.Input]}[Ss("0x1")](){this.editor[Ss("0x2")][Ss("0x0")](Ss("0x5"))[Ss("0x4")](Ss("0x3"))}}const Ns=["afterInit","plugins","*Remove link*","type","locale","_enableDefaultAttributesIntegration","map","_registerLegacyDescription","unlink","toLowerCase","_descriptionFactory","get","manualDecorators","commands","newValue","key","commandParams","commandName","LinkEditing","has","format","link","registerAttributeLabel","editor","*Set link:* %0","label","formatInline","linkHref"];var Ls,Ms;Ls=Ns,Ms=153,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ms);const ws=function(t,e){return Ns[t-=0]};class Os extends t.Plugin{[ws("0xf")](){const t=this[ws("0xa")];if(!t[ws("0x10")][ws("0x6")](ws("0x5")))return;const e=t[ws("0x10")][ws("0x1a")]("TrackChangesEditing"),n=t[ws("0x0")][ws("0x1a")](ws("0x8"));e[ws("0x14")](ws("0x8"),[ws("0xe"),...n[ws("0x1b")][ws("0x15")]((t=>t.id))]),e._enableDefaultAttributesIntegration(ws("0x17"));for(const t of n[ws("0x1b")])e[ws("0x19")][ws("0x9")](t.id,"link ("+t[ws("0xc")][ws("0x18")]()+")");e[ws("0x19")].registerDescriptionCallback((e=>{if("attribute"!=e[ws("0x12")])return;const{data:n}=e;if(!n||"linkHref"!=n[ws("0x2")])return;const r=n[ws("0x1")],o=t[ws("0x13")];return{type:"format",content:null==r?Yr(o,ws("0x11")):Yr(o,ws("0xb"),'"'+r+'"')}})),this[ws("0x16")]()}[ws("0x16")](){const t=this[ws("0xa")],e=t.locale;t.plugins[ws("0x1a")]("TrackChangesEditing")._descriptionFactory.registerDescriptionCallback((t=>{if(ws("0xd")!=t.type)return;const{data:n}=t;if(n){if(ws("0x8")==n[ws("0x4")]){const t=n[ws("0x3")][0];return{type:ws("0x7"),content:Yr(e,ws("0xb"),'"'+t+'"')}}return ws("0x17")==n[ws("0x4")]?{type:ws("0x7"),content:Yr(e,ws("0x11"))}:void 0}}))}}const Fs=["enableCommand","from","push","schema","locale","get","_selectedElements","isObject","afterInit","getSelectedBlocks","value","registerDescriptionCallback","listType","add","slice","format","TrackChangesEditing","*Uncheck item*","paragraph","ELEMENT_LIST_ITEM","commandParams","ListEditing","*Outdent:* %0","document","ELEMENT_TODO_LIST","*Change to:* %0","has","outdentList","selection","end","type","filter","listItem","createPositionAt","commandName","change","todoList","name","formatInline","formatBlock","checkTodoList","execute","List","editor","nextSibling","commands","findIndex","checkChild","listIndent","registerElementLabel","parent","plugins","numberedList","previousSibling","TodoListEditing","getAttribute","indentList","createRange","replace","_descriptionFactory","ELEMENT_NUMBERED_LIST","model","blockName","element","todo","markBlockFormat"];var Ds,Bs;Ds=Fs,Bs=314,function(t){for(;--t;)Ds.push(Ds.shift())}(++Bs);const Ps=function(t,e){return Fs[t-=0]};class Us extends t.Plugin{[Ps("0x18")](){const t=this[Ps("0x3b")],e=t[Ps("0x14")];if(!t[Ps("0x1")][Ps("0x2a")](Ps("0x25")))return;const n=t[Ps("0x1")][Ps("0x15")](Ps("0x20")),r=t[Ps("0x1")][Ps("0x2a")](Ps("0x4"));function o(e){return()=>{const r=t.model.document[Ps("0x2c")],o=t[Ps("0x3d")][Ps("0x15")](e);if(o[Ps("0x1a")])return void t[Ps("0x39")](Ps("0x22"),{});const i=e[Ps("0x1e")](0,-4),s=function(t,e,n){let r=Array[Ps("0x11")](t).filter((t=>{return e=t,(r=n)[Ps("0x3f")](e[Ps("0x0")],Ps("0x30"))&&!r[Ps("0x17")](e);var e,r}));r=r.filter((t=>!t.is(Ps("0xd"),"listItem")||t.getAttribute(Ps("0x1c"))!=e));const o=new Set;for(const t of r)t.is(Ps("0xd"),Ps("0x30"))?o[Ps("0x1d")](js(t)):o.add(t);return Array.from(o)}(r[Ps("0x19")](),i,t[Ps("0xb")][Ps("0x13")]);t[Ps("0xb")][Ps("0x33")]((()=>{for(const t of s)n[Ps("0xf")](t,{commandName:e,commandParams:[{forceValue:!o[Ps("0x1a")]}],formatGroupId:Ps("0xc")},Gs(t))}))}}function i(e){return()=>{const r=function(t){let e=Array[Ps("0x11")](t);const n=e[Ps("0x3e")]((t=>Ps("0x30")!=t[Ps("0x35")]));return n>-1&&(e=e.slice(0,n)),e}(t[Ps("0xb")][Ps("0x27")][Ps("0x2c")][Ps("0x19")]()),o=t[Ps("0xb")][Ps("0x7")](t[Ps("0xb")][Ps("0x31")](r[0],"before"),t[Ps("0xb")][Ps("0x31")](r[r.length-1],Ps("0x2d")));t.model.change((()=>{n[Ps("0xf")](o,{commandName:e,commandParams:[],formatGroupId:Ps("0x40")},function(t){const e=new Set;for(const n of t){let t=n[Ps("0x3c")];for(;t&&t[Ps("0x5")](Ps("0x40"))>n[Ps("0x5")](Ps("0x40"));)e[Ps("0x1d")](t),t=t.nextSibling}return Array[Ps("0x11")](e)}(r))}))}}n[Ps("0x10")]("numberedList",o(Ps("0x2"))),n.enableCommand("bulletedList",o("bulletedList")),r&&n[Ps("0x10")](Ps("0x34"),o(Ps("0x34"))),n[Ps("0x10")]("indentList",i(Ps("0x6"))),n[Ps("0x10")](Ps("0x2b"),i(Ps("0x2b"))),r&&n[Ps("0x10")](Ps("0x38"),(()=>{const e=t[Ps("0x3d")].get("checkTodoList"),r=Array[Ps("0x11")](e[Ps("0x16")]);r[Ps("0x2f")]((t=>t[Ps("0x5")]("todoListChecked")!=e[Ps("0x1a")])),t[Ps("0xb")][Ps("0x33")]((()=>{for(const t of r)n.markBlockFormat(t,{commandName:"checkTodoList",commandParams:[{forceValue:!e[Ps("0x1a")]}]})}))})),n[Ps("0x9")][Ps("0x41")](Ps("0x30"),(t=>Yr(e,Ps("0x23"),t))),n._descriptionFactory[Ps("0x1b")]((t=>{if(Ps("0x37")!=t[Ps("0x2e")]&&Ps("0x36")!=t.type)return;const{data:n}=t;if(n){if(Ps("0x2")==n[Ps("0x32")]||"bulletedList"==n[Ps("0x32")]||"todoList"==n[Ps("0x32")])switch(n[Ps("0x32")][Ps("0x8")](Ps("0x3a"),"")){case"bulleted":return r(Yr(e,"ELEMENT_BULLETED_LIST"));case"numbered":return r(Yr(e,Ps("0xa")));case Ps("0xe"):return r(Yr(e,Ps("0x28")))}if("indentList"==n[Ps("0x32")])return{type:Ps("0x1f"),content:Yr(e,"*Indent:* %0",Yr(e,Ps("0x23")))};if(Ps("0x2b")==n[Ps("0x32")])return{type:Ps("0x1f"),content:Yr(e,Ps("0x26"),Yr(e,Ps("0x23")))};if(Ps("0x38")==n[Ps("0x32")])return n[Ps("0x24")][0].forceValue?{type:"format",content:Yr(e,"*Check item*")}:{type:Ps("0x1f"),content:Yr(e,Ps("0x21"))}}function r(t){return{type:Ps("0x1f"),content:Yr(e,Ps("0x29"),t)}}}))}}function js(t){const e=t[Ps("0x5")](Ps("0x40"));if(0==e)return t;let n=t;for(;t[Ps("0x3")]&&t[Ps("0x3")].is(Ps("0xd"),"listItem");){const r=t.previousSibling[Ps("0x5")]("listIndent");if(r==e)n=t[Ps("0x3")];else if(r<e)break;t=t[Ps("0x3")]}return n}function Gs(t){const e=[];if(t.is("element",Ps("0x30"))&&t[Ps("0x5")](Ps("0x40"))>0){let n=t.nextSibling;for(;n&&Ps("0x30")==n[Ps("0x35")]&&n[Ps("0x5")](Ps("0x40"))==t[Ps("0x5")]("listIndent");)e[Ps("0x12")](n),n=n[Ps("0x3c")]}return e}const Vs=["getLastPosition","*Format:* set order to reversed","length","*Format:* set order to regular","registerDescriptionCallback","_LIST_","backward","markMultiRangeBlockFormat","_getSuggestionBlocks","element","model","startIndex","list.properties","handleListStartCommand","numbered","get","push","afterInit","TrackChangesEditing","listStart","getFirstPosition","reversed","config","plugins","bind","toUpperCase","handleListReversedCommand","_getTranslationKeyForListStyle","replace","_descriptionFactory","change","_getSuggestionBlocksForListStyle","ELEMENT_","getAttribute","ListPropertiesEditing","flat","*Change to:* %0","createRange","createPositionAt","forward","from","map","listType","document","styles","listStyle","filter","format","listItem","enableCommand","commandName","ListUtils","type","listReversed","before","handleDescriptions","getSiblingNodes","parent","editor","getSelectedBlocks","selection"];var Hs,zs;Hs=Vs,zs=496,function(t){for(;--t;)Hs.push(Hs.shift())}(++zs);const Ws=function(t,e){return Vs[t-=0]};class Ks extends t.Plugin{[Ws("0x9")](){if(!this[Ws("0x32")].plugins.has(Ws("0x1a")))return;const t=this.editor[Ws("0xe")][Ws("0x7")](Ws("0x4")),e=this[Ws("0x32")][Ws("0xf")].get("TrackChangesEditing");t[Ws("0x24")]&&e[Ws("0x29")](Ws("0x25"),this.handleListStyleCommand[Ws("0x10")](this)),t[Ws("0xd")]&&e[Ws("0x29")](Ws("0x2d"),this[Ws("0x12")].bind(this)),t[Ws("0x3")]&&e[Ws("0x29")]("listStart",this[Ws("0x5")][Ws("0x10")](this)),e[Ws("0x15")][Ws("0x39")](this[Ws("0x2f")][Ws("0x10")](this))}handleListStyleCommand(t,e={}){const n=this[Ws("0x32")][Ws("0xf")].get(Ws("0xa")),r=this[Ws("0x17")]();this.editor[Ws("0x2")][Ws("0x16")]((()=>{n[Ws("0x3c")](r,{commandName:"listStyle",commandParams:[{type:e.type}],formatGroupId:"listStyle"})}))}handleListReversedCommand(t,e={}){const n=this[Ws("0x32")][Ws("0xf")][Ws("0x7")](Ws("0xa")),r=this._getSuggestionBlocks((t=>t.is("element","listItem")&&Ws("0x6")===t[Ws("0x19")](Ws("0x22"))));if(r[Ws("0x37")]<1)return;const o=r.map((t=>this[Ws("0x32")][Ws("0x2")].createRange(this[Ws("0x32")].model[Ws("0x1e")](t,Ws("0x2e")),this[Ws("0x32")][Ws("0x2")][Ws("0x1e")](t,0))));this[Ws("0x32")][Ws("0x2")][Ws("0x16")]((()=>{n.markMultiRangeBlockFormat(o,{commandName:Ws("0x2d"),commandParams:[{reversed:e[Ws("0xd")]}],formatGroupId:Ws("0x2d")})}))}[Ws("0x5")](t,e={}){const n=this[Ws("0x32")].plugins[Ws("0x7")](Ws("0xa")),r=this[Ws("0x0")]((t=>t.is(Ws("0x1"),"listItem")&&Ws("0x6")===t[Ws("0x19")]("listType")));if(r.length<1)return;const o=r[Ws("0x21")]((t=>this[Ws("0x32")][Ws("0x2")][Ws("0x1d")](this[Ws("0x32")][Ws("0x2")][Ws("0x1e")](t,"before"),this[Ws("0x32")][Ws("0x2")][Ws("0x1e")](t,0))));this[Ws("0x32")][Ws("0x2")][Ws("0x16")]((()=>{n.markMultiRangeBlockFormat(o,{commandName:Ws("0xb"),commandParams:[{startIndex:e[Ws("0x3")]}],formatGroupId:Ws("0xb")})}))}handleDescriptions(t){if("formatBlock"!=t.type&&"formatInline"!=t[Ws("0x2c")])return;const e=this[Ws("0x32")].locale,{data:n}=t;if(!n)return;let r,o;switch(n[Ws("0x2a")]){case"listStyle":r=Ws("0x1c"),o={type:Ws("0x27"),content:Yr(e,r,Yr(e,this[Ws("0x13")](n.commandParams[0][Ws("0x2c")])))};break;case Ws("0x2d"):r=n.commandParams[0][Ws("0xd")]?Ws("0x36"):Ws("0x38"),o={type:Ws("0x27"),content:Yr(e,r)};break;case Ws("0xb"):r="*Format:* set start index to %0",o={type:"format",content:Yr(e,r,n.commandParams[0][Ws("0x3")])}}return o}[Ws("0x17")](){var t,e,n,r;const o=this.editor[Ws("0xf")].get(Ws("0x2b"));let i=Array[Ws("0x20")](this.editor.model.document[Ws("0x34")][Ws("0x33")]());return(null===(t=i[0])||void 0===t?void 0:t.is(Ws("0x1"),Ws("0x28")))&&i.unshift(...o[Ws("0x30")](this.editor.model[Ws("0x23")][Ws("0x34")][Ws("0xc")](),Ws("0x3b"))),(null===(e=i[i[Ws("0x37")]-1])||void 0===e?void 0:e.is(Ws("0x1"),Ws("0x28")))&&i[Ws("0x8")](...o[Ws("0x30")](this.editor[Ws("0x2")][Ws("0x23")][Ws("0x34")][Ws("0x35")](),Ws("0x1f"))),i=[...new Set(i)],(null===(r=null===(n=this[Ws("0x32")][Ws("0x2")][Ws("0x23")][Ws("0x34")][Ws("0xc")]())||void 0===n?void 0:n[Ws("0x31")])||void 0===r?void 0:r.is(Ws("0x1"),Ws("0x28")))&&(i=i[Ws("0x26")]((t=>t.is("element","listItem")))),i}[Ws("0x0")](t){const e=this[Ws("0x32")][Ws("0xf")][Ws("0x7")](Ws("0x2b"));let n=Array[Ws("0x20")](this[Ws("0x32")][Ws("0x2")][Ws("0x23")][Ws("0x34")][Ws("0x33")]())[Ws("0x26")](t)[Ws("0x21")]((t=>{const n=this[Ws("0x32")][Ws("0x2")][Ws("0x1e")](t,0);return[...e[Ws("0x30")](n,Ws("0x3b")),...e[Ws("0x30")](n,Ws("0x1f"))]}))[Ws("0x1b")]();return n=[...new Set(n)],n}[Ws("0x13")](t){return Ws("0x18")+this.editor[Ws("0xf")][Ws("0x7")](Ws("0x2b")).getListTypeFromListStyleType(t)[Ws("0x11")]()+Ws("0x3a")+t.toUpperCase()[Ws("0x14")](/-/g,"_")}}const qs=["for","plugins","stop","div","_descriptionFactory","data","mediaEmbed","high","has","createEmptyElement","showSuggestionHighlights","editor","dataDowncast","options","afterInit","conversion","MediaEmbedEditing","downcastDispatcher","TrackChangesEditing","enableCommand","locale","elementToElement"];var Xs,$s;Xs=qs,$s=285,function(t){for(;--t;)Xs.push(Xs.shift())}(++$s);const Zs=function(t,e){return qs[t-=0]};class Qs extends t.Plugin{[Zs("0xf")](){const t=this[Zs("0xc")];if(!t.plugins[Zs("0x9")](Zs("0x11")))return;const e=t[Zs("0x2")].get(Zs("0x13")),n=t[Zs("0x15")];e[Zs("0x14")](Zs("0x7")),e[Zs("0x5")].registerElementLabel("media",(t=>Yr(n,"ELEMENT_MEDIA",t))),t[Zs("0x10")][Zs("0x1")](Zs("0xd"))[Zs("0x0")]({model:"media",view:(t,{writer:e,options:n})=>{if(n[Zs("0xb")])return e[Zs("0xa")](Zs("0x4"))},converterPriority:Zs("0x8")}),t[Zs("0x6")][Zs("0x12")].on("attribute:url:media",((t,e,n)=>{n[Zs("0xe")][Zs("0xb")]&&t[Zs("0x3")]()}),{priority:Zs("0x8")})}}const Ys=["mention","plugins","editor","enableCommand","TrackChangesEditing","MentionEditing","has","get"];var Js,tx;Js=Ys,tx=129,function(t){for(;--t;)Js.push(Js.shift())}(++tx);const ex=function(t,e){return Ys[t-=0]};class nx extends t.Plugin{afterInit(){const t=this[ex("0x1")];t[ex("0x0")][ex("0x5")](ex("0x4"))&&t[ex("0x0")][ex("0x6")](ex("0x3"))[ex("0x2")](ex("0x7"))}}const rx=["TrackChangesEditing","PageBreakEditing","registerElementLabel","_descriptionFactory","enableCommand","pageBreak","has","plugins","afterInit","get","locale"];var ox,ix;ox=rx,ix=378,function(t){for(;--t;)ox.push(ox.shift())}(++ix);const sx=function(t,e){return rx[t-=0]};class xx extends t.Plugin{[sx("0x4")](){const t=this.editor;if(!t[sx("0x3")][sx("0x2")](sx("0x8")))return;t[sx("0x3")].get(sx("0x7"))[sx("0x0")](sx("0x1"));const e=t[sx("0x3")][sx("0x5")]("TrackChangesEditing"),n=t[sx("0x6")];e[sx("0xa")][sx("0x9")](sx("0x1"),(t=>Yr(n,"ELEMENT_PAGE_BREAK",t)))}}const ax=["name","has","enableCommand","mapper","insert","bindElementToMarker","markerName","*Change to:* %0","TrackChangesEditing","format","options","end","markerRange","Paragraph","isTouching","_descriptionFactory","formatBlock","highest","nodeAfter","consume","_registerLegacyDescription","checkChild","$text","model","commandName","paragraph","editing","editor","isLimit","_enableDefaultAttributesIntegration","isBlock","afterInit","get","toViewPosition","activeMarkers","ck-suggestion-marker--active","registerDescriptionCallback","showSuggestionHighlights","addClass","plugins","writer","getItemLabel","*Insert:* %0","type","insertParagraph","addMarker:suggestion:insertion","ck-suggestion-marker-split","insertion","schema","data","locale"];var cx,lx;cx=ax,lx=287,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const ux=function(t,e){return ax[t-=0]};class dx extends t.Plugin{[ux("0x32")](){const t=this[ux("0x2e")];if(!t[ux("0x7")][ux("0x14")](ux("0x20")))return;const e=t[ux("0x12")],n=t[ux("0x7")].get(ux("0x1b"));n._descriptionFactory.registerElementLabel("paragraph",(t=>Yr(e,"ELEMENT_PARAGRAPH",t))),n[ux("0x30")](ux("0x2c")),n[ux("0x15")](ux("0xc")),t[ux("0x2d")].downcastDispatcher.on(ux("0xd"),gx(t),{priority:ux("0x24")}),t[ux("0x11")].downcastDispatcher.on("addMarker:suggestion:insertion",((e,n,r)=>{r[ux("0x1d")][ux("0x5")]&&gx(t,{showActiveMarker:!1})(e,n,r)}),{priority:ux("0x24")});const r=n._descriptionFactory;r[ux("0x4")]((n=>{if(ux("0xf")!==n.type)return;const{start:o,end:i}=n.getFirstRange();if(!o.isTouching(i)||!o[ux("0x25")])return;const s=t[ux("0x2a")][ux("0x10")],x=o.nodeAfter;return s[ux("0x31")](x)&&!s[ux("0x2f")](x)&&s.checkChild(x,ux("0x29"))?{type:ux("0xf"),content:Yr(e,ux("0xa"),r[ux("0x9")](x,1))}:void 0})),this[ux("0x27")]()}[ux("0x27")](){const t=this[ux("0x2e")],e=t[ux("0x12")];t[ux("0x7")][ux("0x0")](ux("0x1b"))[ux("0x22")].registerDescriptionCallback((t=>{if(ux("0x23")!=t[ux("0xb")])return;const{data:n}=t;return n&&ux("0x2c")==n[ux("0x2b")]?{type:ux("0x1c"),content:Yr(e,ux("0x1a"),Yr(e,"ELEMENT_PARAGRAPH"))}:void 0}))}}function gx(t,{showActiveMarker:e=!0}={}){return(n,r,o)=>{const i=t[ux("0x7")][ux("0x0")](ux("0x1b")),s=r[ux("0x1f")].start,x=r[ux("0x1f")][ux("0x1e")],a=t[ux("0x2a")].schema;if(!s[ux("0x21")](x)||!s[ux("0x25")])return;const c=s[ux("0x25")];if(a[ux("0x31")](c)&&!a[ux("0x2f")](c)&&a[ux("0x28")](c,ux("0x29"))){if(!o.consumable[ux("0x26")](r[ux("0x1f")],n[ux("0x13")]))return;const t=o.writer.createUIElement("span",{class:ux("0xe")}),s=o[ux("0x16")][ux("0x1")](x);e&&i[ux("0x2")].includes(r[ux("0x19")])&&o[ux("0x8")][ux("0x6")](ux("0x3"),t),o[ux("0x8")][ux("0x17")](s,t),o[ux("0x16")][ux("0x18")](t,r.markerName)}}}const fx=["get","*Remove all formatting*","TrackChangesEditing","format","afterInit","_enableDefaultAttributesIntegration","RemoveFormatEditing","has","_registerLegacyDescription","commandName","plugins","type","locale"];var mx,hx;mx=fx,hx=257,function(t){for(;--t;)mx.push(mx.shift())}(++hx);const px=function(t,e){return fx[t-=0]};class bx extends t.Plugin{[px("0x7")](){const t=this.editor;t.plugins[px("0xa")](px("0x9"))&&(t[px("0x0")][px("0x3")](px("0x5"))[px("0x8")]("removeFormat"),this._registerLegacyDescription())}[px("0xb")](){const t=this.editor;t[px("0x0")][px("0x3")](px("0x5"))._descriptionFactory.registerDescriptionCallback((e=>{if("formatBlock"!=e[px("0x1")]&&"formatInline"!=e.type)return;const{data:n}=e;return n&&"removeFormat"==n[px("0xc")]?{type:px("0x6"),content:Yr(t[px("0x2")],px("0x4"))}:void 0}))}}const Ex=["plugins","RestrictedEditingModeEditing","get","editor","enableCommand","trackChanges","goToNextRestrictedEditingException","acceptSelectedSuggestions","discardSelectedSuggestions","afterInit","discardAllSuggestions","acceptAllSuggestions","discardSuggestion","TrackChangesEditing","acceptSuggestion","has","goToPreviousRestrictedEditingException"];var _x,Tx;_x=Ex,Tx=341,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const yx=function(t,e){return Ex[t-=0]};class Cx extends t.Plugin{[yx("0x8")](){const t=this[yx("0x2")];if(!t[yx("0x10")][yx("0xe")](yx("0x0")))return;const e=t[yx("0x10")][yx("0x1")](yx("0xc"));e[yx("0x3")](yx("0xf")),e.enableCommand(yx("0x5"));const n=t[yx("0x10")][yx("0x1")](yx("0x0"));n.enableCommand(yx("0x4")),n[yx("0x3")](yx("0xd")),n[yx("0x3")](yx("0xb")),n[yx("0x3")](yx("0xa")),n[yx("0x3")](yx("0x9")),n[yx("0x3")](yx("0x6")),n[yx("0x3")](yx("0x7"))}}const kx=["markerRange","get","data","locale","toViewPosition","test","ck-suggestion-marker--active","init","ELEMENT_LINE_BREAK","insert","_descriptionFactory","requires","enableCommand","addMarker:suggestion:deletion","registerElementLabel","markerName","shiftEnter","high","deletion","merge","bindElementToMarker","TrackChangesEditing","downcastDispatcher","activeMarkers","ck-suggestion-marker-","split","editor","editing","addMarker:suggestion:insertion","writer","mapper"];var Ax,Ix;Ax=kx,Ix=338,function(t){for(;--t;)Ax.push(Ax.shift())}(++Ix);const Rx=function(t,e){return kx[t-=0]};class Sx extends t.Plugin{static get[Rx("0xe")](){return[ui.ShiftEnter]}[Rx("0xa")](){const t=this[Rx("0x1d")],e=t.plugins[Rx("0x4")](Rx("0x18"));e[Rx("0xf")](Rx("0x13")),t[Rx("0x1e")][Rx("0x19")].on(Rx("0x0"),vx(t),{priority:Rx("0x14")}),t[Rx("0x1e")][Rx("0x19")].on(Rx("0x10"),vx(t),{priority:Rx("0x14")}),t[Rx("0x5")][Rx("0x19")].on("addMarker:suggestion",((e,n,r)=>{r.options.showSuggestionHighlights&&vx(t,{showActiveMarker:!1})(e,n,r)})),e[Rx("0xd")][Rx("0x11")]("softBreak",(e=>Yr(t[Rx("0x6")],Rx("0xb"),e)))}}function vx(t,{showActiveMarker:e=!0}={}){return(n,r,o)=>{const i=t.plugins[Rx("0x4")](Rx("0x18"));if(!o.consumable[Rx("0x8")](r[Rx("0x3")],n.name))return;const s=t.model;for(const t of r.markerRange.getItems()){if(!t.is("element","softBreak"))continue;const n=Rx("0x15")==r[Rx("0x12")].split(":")[1]?Rx("0x16"):Rx("0x1c"),x=o[Rx("0x1")].createUIElement("span",{class:Rx("0x1b")+n}),a=o.mapper[Rx("0x7")](s.createPositionBefore(t));e&&i[Rx("0x1a")].includes(r[Rx("0x12")])&&o[Rx("0x1")].addClass(Rx("0x9"),x),o[Rx("0x1")][Rx("0xc")](a,x),o[Rx("0x2")][Rx("0x17")](x,r.markerName)}}}const Nx=["has","locale","enableCommand","editor","model","markInlineFormat","formatInline","getRanges","change","_descriptionFactory","TrackChangesEditing","restrictedEditingException","isCollapsed","formatBlock","plugins","FORMAT_RESTRICTED_DISABLED","get","StandardEditingModeEditing","selection","forceValue","type","commandParams","afterInit","commands","format"];var Lx,Mx;Lx=Nx,Mx=436,function(t){for(;--t;)Lx.push(Lx.shift())}(++Mx);const wx=function(t,e){return Nx[t-=0]};class Ox extends t.Plugin{[wx("0xb")](){const t=this[wx("0x11")],e=t[wx("0x12")],n=t[wx("0xf")];if(!t[wx("0x3")][wx("0xe")](wx("0x6")))return;const r=t[wx("0x3")][wx("0x5")](wx("0x18")),o=wx("0x0"),i=t[wx("0xc")].get(o);r[wx("0x10")](o,((t,n={})=>{const s=e.document[wx("0x7")];if(s[wx("0x1")])return void t(n);const x=void 0!==n[wx("0x8")]?n.forceValue:!i.value;e[wx("0x16")]((()=>{const t=Array.from(s[wx("0x15")]());for(const n of t){const t=x?[n]:Xo(o,n,e);for(const e of t)r[wx("0x13")](e,{commandName:o,commandParams:[{forceValue:x}]})}}))})),r[wx("0x17")].registerDescriptionCallback((t=>{if(wx("0x2")!=t[wx("0x9")]&&wx("0x14")!=t.type)return;const{data:e}=t;return e&&e.commandName==o?e[wx("0xa")][0][wx("0x8")]?{type:wx("0xd"),content:Yr(n,"FORMAT_RESTRICTED_ENABLED")}:{type:wx("0xd"),content:Yr(n,wx("0x4"))}:void 0}))}}const Fx=["get","type","commandName","definitions","forceValue","DataSchema","format","has","FORMAT_STYLE","editor","toLowerCase","element","add","locale","inline","commandParams","TrackChangesEditing","styleName","*Remove format:* %0","_registerInlineAttribute","getGhsAttributeNameForElement","plugins","ghsAttributes","_descriptionFactory","afterInit","formatInline","_registerLegacyDescription","*Set format:* %0","registerAttributeLabel","Style","registerDescriptionCallback","normalizeConfig","_enableDefaultAttributesIntegration","style"];var Dx,Bx;Dx=Fx,Bx=244,function(t){for(;--t;)Dx.push(Dx.shift())}(++Bx);const Px=function(t,e){return Fx[t-=0]};class Ux extends t.Plugin{[Px("0x12")](){const t=this[Px("0x3")];if(!t[Px("0xf")][Px("0x1")](Px("0x17"))||!t[Px("0xf")].has(Px("0x21")))return;const e=t[Px("0xf")].get(Px("0xa")),n=t[Px("0x7")],r=t.config[Px("0x1c")]("style"),o=t.plugins.get("GeneralHtmlSupport"),i=t[Px("0xf")][Px("0x1c")]("StyleUtils")[Px("0x19")](t[Px("0xf")][Px("0x1c")]("DataSchema"),r[Px("0x1f")]);e[Px("0x1a")](Px("0x1b"));const s=new Set;for(const t of i.block){const e=o.getGhsAttributeNameForElement(t[Px("0x5")]);s[Px("0x6")](e)}const x=new Set;for(const t of i[Px("0x8")]){const e=o[Px("0xe")](t[Px("0x5")]);x[Px("0x6")](e);for(const e of t[Px("0x10")])x.add(e)}for(const t of s)e._registerBlockAttribute(t),e[Px("0x11")][Px("0x16")](t,Yr(n,Px("0x2")));for(const t of x)e[Px("0xd")](t),e[Px("0x11")].registerAttributeLabel(t,Yr(n,Px("0x2")));this[Px("0x14")]()}[Px("0x14")](){const t=this[Px("0x3")],e=t.locale;t[Px("0xf")].get(Px("0xa"))[Px("0x11")][Px("0x18")]((t=>{if("formatBlock"!=t[Px("0x1d")]&&Px("0x13")!=t.type)return;const{data:n}=t;return n&&Px("0x1b")===n[Px("0x1e")]?n.commandParams[0][Px("0x20")]?{type:Px("0x0"),content:Yr(e,Px("0x15"),n[Px("0x9")][0][Px("0xb")][Px("0x4")]())}:{type:Px("0x0"),content:Yr(e,Px("0xc"),n[Px("0x9")][0].styleName[Px("0x4")]())}:void 0}))}}const jx=["model","$graveyard","forceValue","suggestion","registerPostFixer","tableColumn","min","showSuggestionHighlights","insertTableRowBelow","ELEMENT_TABLE_COLUMN_WITH_TEXT","getColumnIndexes","detach","change:data","join","isTouching","get","data","editor","low","toViewElement","last","first","nodeAfter","item","maxRow","includes","removeTableRow","rootName","findAncestor","rowspan","isArray","addClass","push","substr","registerElementLabel","order","getChangedMarkers","isInContent","insertTableColumnLeft","insertTable","TableEditing","insertion","_suggestionFactory","start","commands","table","minRow","end","minColumn","batch","fromRange","tableRow","element","*Insert:* %0","writer","isIntersectingWithRange","tableCell","options","differ","createRangeIn","registerCustomCallback","add","deletion","_splitMarkerName","hasAttribute","some","type","execute","insertTableRowAbove","_tableSuggestions","cell","enableCommand","getSelectionAffectedTableCells","filter","ELEMENT_TABLE_COLUMN","map","selection","selectTableRow","from","max","selectTableColumn","insert","_setupColumnsRowsFixing","span","getContainedElement","oldRange","accept","length","mapper","document","TableUtils","downcastDispatcher","_acceptFormatSuggestionCallbackFactory","colspan","ELEMENT_TABLE_ROW","addRange","plugins","startsWith","getSuggestion","locale","getAttribute","_getCoordsForCells","toLowerCase","getRanges","subType","removeTableColumn","refresh","getFirstRange","registerDescriptionCallback","$textProxy","highest","change","has","setSelection","afterInit","markMultiRangeInsertion","_descriptionFactory","enqueueChange","isEqual","createRangeOn","classes","values","*Remove:* %0","left","MAX_SAFE_INTEGER","createTableWalker","name","TrackChangesEditing","getRowIndexes","getCellLocation","getItems","_getSuggestionCoords","maxColumn","above","markMultiRangeDeletion","position","root","MIN_SAFE_INTEGER"];var Gx,Vx;Gx=jx,Vx=431,function(t){for(;--t;)Gx.push(Gx.shift())}(++Vx);const Hx=function(t,e){return jx[t-=0]};class zx extends t.Plugin{constructor(t){super(t),this._tablePostFixingSubtypes=[Hx("0x22"),Hx("0x7e")],this._tableSuggestions=new Set}[Hx("0x61")](){const t=this[Hx("0x0")],e=t[Hx("0x79")][Hx("0x48")][Hx("0x3b")];if(!t[Hx("0x4f")][Hx("0x5f")](Hx("0x17")))return;const n=t[Hx("0x52")],r=t[Hx("0x4f")].get(Hx("0x6e")),o=t[Hx("0x4f")][Hx("0x88")]("TableUtils");r._descriptionFactory[Hx("0x11")](Hx("0x1c"),(t=>Yr(n,"ELEMENT_TABLE",t))),this[Hx("0x41")](),r[Hx("0x36")](Hx("0x16")),r.enableCommand(Hx("0x3c")),r[Hx("0x36")](Hx("0x3f"));for(const n of[Hx("0x33"),Hx("0x81")]){const i=t[Hx("0x1b")].get(n);r.enableCommand(n,(n=>{t[Hx("0x79")][Hx("0x5e")]((t=>{n();const s=Hx("0x74")===i[Hx("0x12")],x=o[Hx("0x37")](e),a=o.getRowIndexes(x),c=s?a[Hx("0x4")]-1:a[Hx("0x3")]+1,l=x[0].findAncestor(Hx("0x1c")),u=o.createTableWalker(l,{startRow:c,endRow:c}),d=Array[Hx("0x3d")](u)[Hx("0x3a")]((e=>t[Hx("0x66")](e.cell)));r[Hx("0x62")](d,Hx("0x22"))}))}))}for(const n of[Hx("0x15"),"insertTableColumnRight"]){const i=t[Hx("0x1b")][Hx("0x88")](n);r.enableCommand(n,(n=>{t.model[Hx("0x5e")]((t=>{n();const s=Hx("0x6a")===i[Hx("0x12")],x=o[Hx("0x37")](e),a=o[Hx("0x83")](x),c=s?a[Hx("0x4")]-1:a[Hx("0x3")]+1,l=x[0][Hx("0xb")]("table"),u=o[Hx("0x6c")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Hx("0x3d")](u)[Hx("0x3a")]((e=>t[Hx("0x66")](e[Hx("0x35")])));r.markMultiRangeInsertion(d,"tableColumn")}))}))}for(const n of[Hx("0x9"),Hx("0x58")]){const i=n[Hx("0x10")](11),s=i.toLowerCase(),x=s[Hx("0x10")](0,3)+Hx("0x42"),a=Hx("0x1c")+i,c=Hx("0x7f")+i,l=Hx("0x3e")+i;r[Hx("0x36")](n,(()=>{t[Hx("0x79")][Hx("0x5e")]((t=>{const i=o[Hx("0x37")](e),u=i[0][Hx("0xb")](Hx("0x1c"));let d;if(Hx("0x9")==n){const t=o[Hx("0x6f")](i);d={startRow:t[Hx("0x4")],endRow:t[Hx("0x3")],includeAllSlots:!0}}else{const t=o.getColumnIndexes(i);d={startColumn:t[Hx("0x4")],endColumn:t[Hx("0x3")],includeAllSlots:!0}}const g=o.createTableWalker(u,d),f=Array[Hx("0x3d")](g)[Hx("0x3a")]((({cell:t})=>t)),m=Wx(f[Hx("0x38")]((t=>t[Hx("0x2f")](x)))),h=Wx(f[Hx("0x38")]((t=>!t[Hx("0x2f")](x))))[Hx("0x3a")]((e=>t[Hx("0x66")](e))),p=r[Hx("0x75")](h,a);if(p&&("tableRow"==p[Hx("0x57")]||Hx("0x7e")==p[Hx("0x57")])){const e=this[Hx("0x72")](p);for(const n of m){const r=t[Hx("0x66")](n),i=o[Hx("0x70")](n),a=n.getAttribute(x)-1,u=e[c],d=e[l];u<=i[s]&&i[s]+a<=d&&p[Hx("0x4e")](r)}}}))}))}function i(n){const r=Array.from(e.getRanges())[Hx("0x3a")]((t=>s.LiveRange[Hx("0x21")](t)));t[Hx("0x79")][Hx("0x5e")]((e=>{const o=e[Hx("0x20")];n=n[Hx("0x38")]((t=>Hx("0x7a")!=t[Hx("0x77")][Hx("0xa")])),e[Hx("0x60")](n),t[Hx("0x1b")][Hx("0x88")](Hx("0x9"))[Hx("0x59")](),t[Hx("0x32")](Hx("0x9"),{forceDefaultExecution:!0}),t[Hx("0x79")][Hx("0x64")]((()=>{t[Hx("0x79")].enqueueChange(o,(t=>{const e=r.filter((t=>Hx("0x7a")!=t[Hx("0x77")][Hx("0xa")]));e[Hx("0x46")]>0&&t[Hx("0x60")](e);for(const t of r)t[Hx("0x84")]()}))}))}))}function a(n){t[Hx("0x79")][Hx("0x5e")]((r=>{const o=Array[Hx("0x3d")](e.getRanges())[Hx("0x3a")]((t=>s.LiveRange.fromRange(t))),i=[];for(const t of n)for(const e of t[Hx("0x71")]({shallow:!0}))i[Hx("0xf")](e);for(const e of i)Hx("0x7a")!=e[Hx("0x77")][Hx("0xa")]&&(r[Hx("0x60")](r.createPositionAt(e,0)),t[Hx("0x1b")][Hx("0x88")](Hx("0x58"))[Hx("0x59")](),t[Hx("0x32")]("removeTableColumn",{forceDefaultExecution:!0}));const x=o[Hx("0x38")]((t=>Hx("0x7a")!=t.root[Hx("0xa")]));x[Hx("0x46")]>0&&r[Hx("0x60")](x);for(const t of o)t.detach()}))}function c(t,e){return e.every((e=>t[Hx("0x30")]((t=>t[Hx("0x1e")].isEqual(e[Hx("0x1a")])||e[Hx("0x1e")][Hx("0x65")](t[Hx("0x1a")])))))}function l(t,e){return t[Hx("0x30")]((t=>e[Hx("0x30")]((e=>t[Hx("0x1e")][Hx("0x87")](e[Hx("0x1a")])))))}t[Hx("0x89")][Hx("0x4a")].on("addMarker:suggestion",((t,e,n)=>{if(!n[Hx("0x28")][Hx("0x80")])return;const r=e[Hx("0x6")];if(!r)return;const o=n[Hx("0x47")][Hx("0x2")](r);function i(t){return Array[Hx("0xd")](t)?t:[t]}o&&Hx("0x27")===r[Hx("0x6d")]&&(0,x.setHighlightHandling)(o,n[Hx("0x25")],((t,e,n)=>n[Hx("0xe")](i(e[Hx("0x67")]),t)),((t,e,n)=>n.removeClass(i(e[Hx("0x67")]),t)))}),{priority:Hx("0x5d")}),r[Hx("0x63")].registerDescriptionCallback((t=>{if(Hx("0x18")!=t[Hx("0x31")]&&"deletion"!=t.type)return;const e=t[Hx("0x43")]();if(null!=e&&e.is(Hx("0x23"),Hx("0x1c"))){if(Hx("0x18")==t.type){const e=t[Hx("0x71")]().filter((t=>t.is(Hx("0x5c"))))[Hx("0x3a")]((t=>t[Hx("0x89")]));if(e[Hx("0x46")])return{type:"insertion",content:Yr(n,Hx("0x24"),Yr(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[Hx("0x86")](" ")+'"'))}}if(Hx("0x2d")==t.type){const e=t.getItems().filter((t=>t.is(Hx("0x5c")))).map((t=>t.data));if(e[Hx("0x46")])return{type:Hx("0x2d"),content:Yr(n,Hx("0x69"),Yr(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[Hx("0x86")](" ")+'"'))}}}})),r[Hx("0x63")][Hx("0x5b")]((t=>{if(Hx("0x22")==t[Hx("0x57")]){const e=t[Hx("0x71")]().filter((t=>t.is(Hx("0x5c")))).map((t=>t[Hx("0x89")])),r=this[Hx("0x72")](t),o=r[Hx("0x7")]-r[Hx("0x1d")]+1;if(Hx("0x18")==t.type)return e.length?{type:Hx("0x18"),content:Yr(n,Hx("0x24"),Yr(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[o,'"'+e[Hx("0x86")](" ")+'"']))}:{type:Hx("0x18"),content:Yr(n,"*Insert:* %0",Yr(n,Hx("0x4d"),o))};if("deletion"==t[Hx("0x31")])return e[Hx("0x46")]?{type:Hx("0x2d"),content:Yr(n,Hx("0x69"),Yr(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[o,'"'+e[Hx("0x86")](" ")+'"']))}:{type:Hx("0x2d"),content:Yr(n,Hx("0x69"),Yr(n,Hx("0x4d"),o))}}if(Hx("0x7e")==t.subType){const e=t[Hx("0x71")]()[Hx("0x38")]((t=>t.is(Hx("0x5c"))))[Hx("0x3a")]((t=>t[Hx("0x89")])),r=this[Hx("0x72")](t),o=r[Hx("0x73")]-r[Hx("0x1f")]+1;if(Hx("0x18")==t.type)return e[Hx("0x46")]?{type:Hx("0x18"),content:Yr(n,Hx("0x24"),Yr(n,Hx("0x82"),[o,'"'+e.join(" ")+'"']))}:{type:Hx("0x18"),content:Yr(n,Hx("0x24"),Yr(n,Hx("0x39"),o))};if(Hx("0x2d")==t.type)return e[Hx("0x46")]?{type:Hx("0x2d"),content:Yr(n,Hx("0x69"),Yr(n,Hx("0x82"),[o,'"'+e[Hx("0x86")](" ")+'"']))}:{type:Hx("0x2d"),content:Yr(n,Hx("0x69"),Yr(n,Hx("0x39"),o))}}})),r[Hx("0x19")][Hx("0x2b")]("insertion",Hx("0x22"),"discard",i),r[Hx("0x19")][Hx("0x2b")](Hx("0x2d"),Hx("0x22"),Hx("0x45"),i),r[Hx("0x19")][Hx("0x2b")](Hx("0x18"),Hx("0x7e"),"discard",a),r._suggestionFactory[Hx("0x2b")](Hx("0x2d"),Hx("0x7e"),Hx("0x45"),a),r[Hx("0x19")][Hx("0x2b")](Hx("0x18"),Hx("0x7e"),Hx("0x86"),c),r[Hx("0x19")][Hx("0x2b")](Hx("0x2d"),Hx("0x7e"),Hx("0x86"),c),r[Hx("0x19")][Hx("0x2b")](Hx("0x18"),"tableRow",Hx("0x86"),l),r[Hx("0x19")][Hx("0x2b")]("deletion",Hx("0x22"),Hx("0x86"),l)}[Hx("0x4b")](){const t=this.editor,e=t.model.document.selection;return(n,r)=>{t[Hx("0x79")][Hx("0x5e")]((o=>{const{commandName:i,commandParams:x}=r;let a=n[0][Hx("0x1e")].nodeBefore;x&&x[0]&&!1===x[0][Hx("0x7b")]&&(a=n[0].start[Hx("0x5")]);const c=o[Hx("0x2a")](a);if(Hx("0x7a")==c[Hx("0x77")][Hx("0xa")])return;const l=Array[Hx("0x3d")](e[Hx("0x56")]())[Hx("0x3a")]((t=>s.LiveRange[Hx("0x21")](t)));o[Hx("0x60")](c),t[Hx("0x1b")][Hx("0x88")](i)[Hx("0x59")](),x.push({forceDefaultExecution:!0}),t[Hx("0x32")](i,...x);const u=l[Hx("0x38")]((t=>Hx("0x7a")!=t[Hx("0x77")][Hx("0xa")]));u[Hx("0x46")]>0&&o.setSelection(u);for(const t of l)t[Hx("0x84")]()}))}}[Hx("0x54")](t){const e=this[Hx("0x0")].plugins[Hx("0x88")](Hx("0x49"));let n=Number[Hx("0x6b")],r=Number[Hx("0x78")],o=Number.MAX_SAFE_INTEGER,i=Number.MIN_SAFE_INTEGER;for(const s of t){if(Hx("0x7a")==s.root[Hx("0xa")])continue;const{row:t,column:x}=e[Hx("0x70")](s),a=s[Hx("0x2f")](Hx("0xc"))?s[Hx("0x53")](Hx("0xc"))-1:0,c=s.hasAttribute(Hx("0x4c"))?s[Hx("0x53")]("colspan")-1:0;n=t<n?t:n,r=t+a>r?t+a:r,o=x<o?x:o,i=x+c>i?x+c:i}return{minRow:n,maxRow:r,minColumn:o,maxColumn:i}}_setupColumnsRowsFixing(){const t=this[Hx("0x0")],e=t.plugins[Hx("0x88")](Hx("0x6e")),n=t[Hx("0x4f")][Hx("0x88")](Hx("0x49"));t[Hx("0x79")][Hx("0x48")].on(Hx("0x85"),(()=>{const n=Array[Hx("0x3d")](t[Hx("0x79")][Hx("0x48")].differ[Hx("0x13")]());for(const{name:t,data:r}of n){const{group:n,id:o,subType:i}=e[Hx("0x2e")](t);if(Hx("0x7c")!=n)continue;if(null!=r[Hx("0x44")])continue;const s=e[Hx("0x51")](o);this._tablePostFixingSubtypes[Hx("0x8")](i)&&this[Hx("0x34")][Hx("0x2c")](s)}}),{priority:Hx("0x1")});const r=(t,e)=>{let r=!1;const o=e[Hx("0x66")](t),i=t[Hx("0xb")](Hx("0x1c")),s=n[Hx("0x70")](t);for(const e of this[Hx("0x34")]){const n=e[Hx("0x57")],x=n[Hx("0x50")]("tablePaste"),a=n.substr(x?10:5),c=a[Hx("0x55")](),l=c[Hx("0x10")](0,3)+Hx("0x42"),u=Hx("0x7f")+a,d="max"+a;if(!e[Hx("0x14")])continue;if(i!=e[Hx("0x5a")]()[Hx("0x1a")][Hx("0xb")](Hx("0x1c")))continue;if(e[Hx("0x26")](o))continue;const g=t[Hx("0x2f")](l)?t[Hx("0x53")](l)-1:0,f=this[Hx("0x72")](e),m=f[u],h=f[d];m<=s[c]&&s[c]+g<=h&&(e[Hx("0x4e")](o),r=!0)}return r};t[Hx("0x79")].document[Hx("0x7d")]((e=>{let n=!1;for(const o of t[Hx("0x79")].document[Hx("0x29")].getChanges())if(Hx("0x40")==o.type)if(Hx("0x22")==o[Hx("0x6d")])for(const t of o[Hx("0x76")].nodeAfter.getChildren())n=n||r(t,e);else Hx("0x27")==o.name&&(n=n||r(o.position[Hx("0x5")],e));return n}))}[Hx("0x72")](t){return this[Hx("0x54")](t[Hx("0x56")]()[Hx("0x3a")]((t=>t[Hx("0x1a")][Hx("0x5")])))}}function Wx(t){return Array.from(new Set(t)[Hx("0x68")]())}const Kx=["fromRange","TableUtils","length","requires","TrackChangesEditing","insertion","plugins","getSelectionAffectedTableCells","$graveyard","map","has","createTableWalker","from","stop","selection","mergeTableCellRight","filter","_isForcedDefaultExecutionBlock","getAncestors","containsRange","_areMergableCells","markBlockFormat","afterInit","enableCommand","push","commandName","find","mergeTableCellDown","refresh","setSelection","isEnabled","editor","getRanges","mergeTableCells","*Split cell:* vertically","createRangeOn","model","formatInline","document","table","commands","mergeTableCellUp","getFirstPosition","trackChanges","splitTableCellHorizontally","_tablePostFixingSubtypes","deletion","mergeTableCellLeft","element","TableEditing","detach","rootName","forceDefaultExecution","add","splitTableCellVertically","markMultiRangeBlockFormat","registerCustomCallback","cell","_suggestionFactory","get","registerDescriptionCallback","direction","_acceptFormatSuggestionCallbackFactory","getSuggestions","formatBlock","execute","getCellLocation","value","_descriptionFactory","accept","format","return","author","_areSelectedCellsMergable","change","horizontally","tableCell","size","type"];var qx,Xx;qx=Kx,Xx=475,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("0x2")](){return[zx]}[$x("0x15")](){const t=this[$x("0x1e")],e=t[$x("0x23")].document.selection,n=t.locale;if(!t.plugins[$x("0x9")]($x("0x30")))return;const r=t[$x("0x5")][$x("0x3a")]($x("0x3")),o=t[$x("0x5")].get($x("0x0")),i=t[$x("0x5")][$x("0x3a")](zx);i[$x("0x2c")][$x("0x17")]("mergeTableCells"),r[$x("0x16")]("mergeTableCells",(()=>{const e=o[$x("0x6")](t[$x("0x23")].document.selection);t.model[$x("0x49")]((()=>{r[$x("0x36")](e,{commandName:$x("0x20"),commandParams:[]},[],$x("0x20"))}))})),t.commands.get($x("0x20")).on($x("0x40"),((e,n)=>{t.commands[$x("0x3a")]($x("0x2a"))[$x("0x42")]&&(n[$x("0x1")]>0&&n[n[$x("0x1")]-1]&&n[n[$x("0x1")]-1][$x("0x33")]||r[$x("0x10")]||this[$x("0x48")]()||e.stop())}),{priority:"highest"});for(const e of[$x("0x28"),"mergeTableCellRight",$x("0x1a"),$x("0x2e")]){const n=t.commands.get(e);r.enableCommand(e,(()=>{const e=t[$x("0x23")][$x("0x25")][$x("0xd")][$x("0x29")]()[$x("0x11")]()[$x("0x19")]((t=>t.is($x("0x2f"),$x("0x4b")))),o=n.value;t[$x("0x23")][$x("0x49")]((()=>{r[$x("0x36")]([e,o],{commandName:$x("0x20"),commandParams:[]},[],"mergeTableCells")}))}))}for(const e of[$x("0x35"),$x("0x2b")]){const n=t[$x("0x27")][$x("0x3a")](e);r.enableCommand(e,(()=>{const i=o[$x("0x6")](t.model[$x("0x25")][$x("0xd")])[0],s=i.findAncestor($x("0x26")),{column:x,row:a}=o[$x("0x41")](i);let c=[];if($x("0x4a")==n[$x("0x3c")]){const t=o.createTableWalker(s,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[$x("0xb")](t).map((t=>t[$x("0x38")]))}else{const t=o[$x("0xa")](s,{column:x,includeAllSlots:!0});c=Array[$x("0xb")](t)[$x("0x8")]((t=>t[$x("0x38")]))}t[$x("0x23")].change((t=>{r[$x("0x14")](t.createRangeOn(i),{commandName:e,commandParams:[]},c,e)}))}))}r._descriptionFactory[$x("0x3b")]((t=>{if($x("0x3f")!=t.type&&$x("0x24")!=t[$x("0x4d")])return;const{data:e}=t;return e&&$x("0x20")==e[$x("0x18")]?{type:$x("0x45"),content:Yr(n,"*Merge cells*")}:void 0})),r[$x("0x43")].registerDescriptionCallback((t=>{if($x("0x3f")!=t[$x("0x4d")]&&$x("0x24")!=t[$x("0x4d")])return;const{data:e}=t;return e?$x("0x35")==e[$x("0x18")]?{type:$x("0x45"),content:Yr(n,$x("0x21"))}:$x("0x2b")==e[$x("0x18")]?{type:$x("0x45"),content:Yr(n,"*Split cell:* horizontally")}:void 0:void 0}));const x=i[$x("0x3d")]();for(const t of[$x("0x28"),$x("0xe"),$x("0x1a"),$x("0x2e")])r[$x("0x39")][$x("0x37")]("formatBlock",t,$x("0x44"),x);for(const t of[$x("0x35"),$x("0x2b")])r[$x("0x39")][$x("0x37")]("formatBlock",t,"accept",x);r[$x("0x39")][$x("0x37")]($x("0x3f"),"mergeTableCells","accept",(n=>{t[$x("0x23")][$x("0x49")]((r=>{const o=Array.from(e[$x("0x1f")]()).map((t=>s.LiveRange[$x("0x4e")](t)));r[$x("0x1c")](n),t[$x("0x27")].get($x("0x20"))[$x("0x1b")](),t[$x("0x40")]($x("0x20"),{forceDefaultExecution:!0});const i=o[$x("0xf")]((t=>$x("0x7")!=t.root[$x("0x32")]));i[$x("0x1")]>0&&r[$x("0x1c")](i);for(const t of o)t[$x("0x31")]()}))}));for(const e of["mergeTableCellUp","mergeTableCellDown","mergeTableCellLeft","mergeTableCellRight"]){const n=t[$x("0x27")].get(e);n.on("set:isEnabled",((e,r,o)=>{if(o){const r=t[$x("0x23")][$x("0x25")][$x("0xd")].getFirstPosition().getAncestors()[$x("0x19")]((t=>t.is($x("0x2f"),$x("0x4b"))));this._areMergableCells(n[$x("0x42")],r)||(e[$x("0x46")]=!1,e[$x("0xc")]())}}),{priority:"low"})}}[$x("0x48")](){const t=this[$x("0x1e")][$x("0x27")][$x("0x3a")]($x("0x20")),e=this[$x("0x1e")][$x("0x5")][$x("0x3a")]($x("0x0"));if(!t[$x("0x1d")])return!1;const n=e[$x("0x6")](this[$x("0x1e")][$x("0x23")][$x("0x25")][$x("0xd")]);for(const t of n)for(const e of n)if(t!=e&&!this[$x("0x13")](t,e))return!1;return!0}_areMergableCells(t,e){const n=this[$x("0x1e")][$x("0x5")][$x("0x3a")]("TrackChangesEditing"),r=this[$x("0x1e")][$x("0x23")][$x("0x22")](t),o=this[$x("0x1e")].model.createRangeOn(e),i=new Set,s=new Set;for(const t of n[$x("0x3e")]())if(($x("0x4")==t[$x("0x4d")]||$x("0x2d")==t.type||"mergeTableCells"==t.subType)&&t.isInContent)for(const e of t[$x("0x1f")]())e[$x("0x12")](r,!0)&&i[$x("0x34")](t[$x("0x4d")]+":"+t[$x("0x47")].id),e[$x("0x12")](o,!0)&&s[$x("0x34")](t[$x("0x4d")]+":"+t[$x("0x47")].id);if(i[$x("0x4c")]!=s.size)return!1;for(const t of i)if(!s.has(t))return!1;return!0}}const Qx=["markerName","showSuggestionHighlights","ck-suggestion-marker-","setTableRowHeader","addClass","_registerLegacyDescription","addMarker:suggestion","getSuggestion","FORMAT_REGULAR_ROW","_enableDefaultAttributesIntegration","nodeBefore","markerRange","stop","TrackChangesEditing","FORMAT_REGULAR_COLUMN","bindElementToMarker","plugins","consumable","headingColumns","getCellLocation","forceValue","cell","mapper","afterInit","end","_splitMarkerName","item","registerAttributeLabel","data-suggestion","activeMarkers","FORMAT_HEADER_ROW","registerDescriptionCallback","removeAttribute","requires","_descriptionFactory","commandName","_acceptFormatSuggestionCallbackFactory","FORMAT_HEADER_COLUMN","editor","get","*Format:* %0","toViewElement","locale","parent","writer","ck-suggestion-marker--active","_suggestionFactory","setAttribute","start","setTableColumnHeader","editing","removeClass","_handleLegacySuggestions","markerNameToElements","headingRows","type","TableUtils","has","format","options","accept","unbindElementFromMarkerName","downcastDispatcher","formatBlock","registerCustomCallback","nodeAfter","includes","highest"];var Yx,Jx;Yx=Qx,Jx=131,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("0x26")](){return[zx]}[ta("0x1c")](){const t=this.editor;if(!t[ta("0x15")][ta("0x3e")]("TableEditing"))return;const e=t[ta("0x2f")],n=t.plugins[ta("0x2c")](ta("0x12"));n[ta("0xe")](ta("0x8"),[],[ta("0x3b")]),n[ta("0xe")]("setTableColumnHeader",[],[ta("0x17")]),n[ta("0x27")][ta("0x20")](ta("0x3b"),Yr(e,ta("0x23"))),n._descriptionFactory[ta("0x20")](ta("0x17"),Yr(e,ta("0x2a"))),this[ta("0x39")]()}_handleLegacySuggestions(){const t=this[ta("0x2b")][ta("0x15")].get(ta("0x12")),e=this[ta("0x2b")][ta("0x15")][ta("0x2c")](ta("0x3d")),n=this[ta("0x2b")][ta("0x15")][ta("0x2c")](zx)[ta("0x29")]();function r({showActiveMarker:n=!0,setDataAttribute:r=!0}={}){return(o,i,s)=>{const{type:x,id:a}=t[ta("0x1e")](i[ta("0x5")]),c=t[ta("0xc")](a),l=c.data;if("formatBlock"!=c[ta("0x3c")]||!l||ta("0x36")!=l[ta("0x28")])return;if(i[ta("0x1f")])return void o[ta("0x11")]();if(!s[ta("0x16")].consume(i.markerRange,o.name))return;const u=i[ta("0x10")][ta("0x35")][ta("0x2")],d=i[ta("0x10")][ta("0x1d")][ta("0xf")],g=u[ta("0x30")].parent,{column:f}=e[ta("0x18")](u),{column:m}=e[ta("0x18")](d);for(let o=f;o<=m;o++){const c=e.createTableWalker(g,{column:o,includeAllSlots:!1});for(const e of c){const o=e[ta("0x1a")],c=s.mapper[ta("0x2e")](o);s[ta("0x31")][ta("0x9")](ta("0x7")+x,c),r&&s.writer[ta("0x34")](ta("0x21"),a,c),s[ta("0x1b")][ta("0x14")](c,i[ta("0x5")]),n&&(t[ta("0x22")][ta("0x3")](i[ta("0x5")])?s.writer.addClass(ta("0x32"),c):s[ta("0x31")][ta("0x38")](ta("0x32"),c))}}}}t[ta("0x33")][ta("0x1")](ta("0x0"),"setTableRowHeader",ta("0x41"),n),t[ta("0x33")].registerCustomCallback(ta("0x0"),ta("0x36"),ta("0x41"),n),this[ta("0x2b")][ta("0x37")].downcastDispatcher.on(ta("0xb"),r(),{priority:ta("0x4")}),this[ta("0x2b")].data[ta("0x43")].on(ta("0xb"),((t,e,n)=>{n[ta("0x40")][ta("0x6")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:"highest"}),this.editor.editing[ta("0x43")].on("removeMarker:suggestion",((e,n,r)=>{const{type:o,id:i}=t._splitMarkerName(n[ta("0x5")]),s=t.getSuggestion(i),x=s.data;if("formatBlock"!=s[ta("0x3c")]||!x||ta("0x36")!=x[ta("0x28")])return;const a=r[ta("0x1b")][ta("0x3a")](n[ta("0x5")]);if(a)for(const t of a)r.writer[ta("0x38")](ta("0x7")+o,t),r.writer[ta("0x38")]("ck-suggestion-marker--active",t),r.writer[ta("0x25")]("data-suggestion",t),r[ta("0x1b")][ta("0x42")](t,n[ta("0x5")])}),{priority:"highest"}),this[ta("0xa")]()}_registerLegacyDescription(){const t=this[ta("0x2b")],e=t[ta("0x2f")];function n(t){return{type:ta("0x3f"),content:Yr(e,ta("0x2d"),t)}}t[ta("0x15")][ta("0x2c")](ta("0x12"))[ta("0x27")][ta("0x24")]((t=>{if("formatBlock"!=t[ta("0x3c")])return;const{data:r}=t;if(r){if(ta("0x8")==r[ta("0x28")]){const t=r.commandParams[0][ta("0x19")];return n(Yr(e,ta(t?"0x23":"0xd")))}if(ta("0x36")==r[ta("0x28")]){const t=r.commandParams[0][ta("0x19")];return n(Yr(e,ta(t?"0x2a":"0x13")))}}}))}}const na=["commands","fill","deletion","includes","registerDescriptionCallback","$graveyard","*Replace table cells*","nextSibling","tableCellPadding","suggestion","getChanges","getRowIndexes","high","has","nodeAfter","discard","find","getRanges","suggestion:formatBlock:tablePasteCell","get","getAllAdjacentSuggestions","some","createPositionBefore","markMultiRangeInsertion","markMultiRangeBlockFormat","showSuggestionHighlights","getChildren","TableClipboard","getSelectionAffectedTableCells","TableUtils","isInContent","hasSuggestion","attributes","_splitMarkerName","editor","_descriptionFactory","columnInsertionIndexes","insertion","schema","previousSibling","getRange","view","isEmpty","getRows","remove","keys","tableCellHorizontalAlignment","subType","conversion","tablePasteChainId","insertContent","removeRows","createTableWalker","every","map","row","ck-suggestion-marker","getMarkers","startsWith","document","first","tableCellBorderColor","createRangeIn","redo","getAttributes","suggestion-td","getSuggestion","previous","plugins","_suggestionFactory","oldRange","tablePasteColumn","tablePasteRow","getChild","tableCellBackgroundColor","getSuggestions","TrackChangesEditing","requires","suggestionLoaded","last","position","tablePaste","isEqual","unwrap","setAttributes","tableCellSuggestion","cells","selection","formatBlock","markerName","accept","getTableIfOnlyTableInContent","tableCellBorderStyle","filter","batch","getContainedElement","model","getItems","root","updateMarker","for","length","getShiftedBy","push","next","activeMarkers","table","markerToHighlight","rootName","newRange","stop","registerCustomCallback","type","set","column","element","paragraph","end","createElement","tablePasteCell","tableCellVerticalAlignment","options","add","rowInsertionRanges","registerPostFixer","editingDowncast","createRange","change","insert","_getCoordsForCells","getColumns","documentSelection","removeMarkers","name","clipboardOutput","_createdBatches","endRow","listenTo","from","wrap","return","removeColumns","removeMarker","createRangeOn","author","Users","getColumnIndexes","markerAttributes","cell","fromEntries","containsRange","join","tableCell","deletionRanges"];var ra,oa;ra=na,oa=367,function(t){for(;--t;)ra.push(ra.shift())}(++oa);const ia=function(t,e){return na[t-=0]},sa=["tableCellBorderWidth",ia("0x2"),ia("0x21"),ia("0x8d"),ia("0x3d"),ia("0xf"),ia("0x67")],xa=Object[ia("0x5a")](sa[ia("0x95")]((t=>[t,null])));class aa extends t.Plugin{static get[ia("0x12")](){return[zx]}afterInit(){const t=this[ia("0x81")];if(!t[ia("0x9")][ia("0x6c")]("TableClipboard"))return;const n=t[ia("0x9")][ia("0x72")](ia("0x11")),r=t[ia("0x9")][ia("0x72")](ia("0x7c")),o=t[ia("0x9")][ia("0x72")](zx),i=t[ia("0x9")][ia("0x72")](ia("0x7a"));o._tablePostFixingSubtypes.push(ia("0xd"),ia("0xc")),t[ia("0x25")][ia("0x85")].register(ia("0x1a"),{allowIn:"tableCell",allowContentOf:ia("0x5d"),isLimit:!0}),t[ia("0x8f")].elementToElement({model:ia("0x1a"),view:ia("0x6")});let s=null;t[ia("0x25")].on("insertContent",((o,x)=>{const[a,c]=x,l=x[x.length-1];l&&l.forceDefaultExecution||n._isForcedDefaultExecutionBlock||this[ia("0x81")][ia("0x5f")][ia("0x72")]("trackChanges").value&&function(t,e,n,r,o){if(e&&!e.is(ia("0x48")))return!1;const i=o[ia("0x20")](t,n);if(!i||!la(i,void 0,r))return!1;const s=r[ia("0x7b")](n[ia("0x0")][ia("0x1c")]);if(!s[ia("0x2a")])return!1;const x=s[0].findAncestor(ia("0x2f")),a=r[ia("0x6a")](s),c=r[ia("0x57")](s),l={startRow:a[ia("0x1")],endRow:a[ia("0x14")],startColumn:c[ia("0x1")],endColumn:c[ia("0x14")]};return 1==s[ia("0x2a")]&&(l[ia("0x4d")]+=r[ia("0x8a")](i)-1,l.endColumn+=r[ia("0x47")](i)-1),la(x,l,r)}(a,c,t[ia("0x25")],r,i)&&(o[ia("0x33")](),s={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[ia("0x25")][ia("0x44")]((()=>{t.model[ia("0x91")](x[0],x[1],x[2],{forceDefaultExecution:!0});const r=(0,e.uid)(),{rowInsertionRanges:o,columnInsertionRanges:i,insertionRanges:a,deletionRanges:c,cells:l}=s;o[ia("0x2a")]&&n[ia("0x76")](o,ia("0xd"),{tablePasteChainId:r}),i[ia("0x2a")]&&n[ia("0x76")](i,ia("0xc"),{tablePasteChainId:r}),a[ia("0x2a")]&&n[ia("0x76")](a,"tablePaste",{tablePasteChainId:r,skipNestingCheck:!0}),c[ia("0x2a")]&&n.markMultiRangeDeletion(c,ia("0x16"),{tablePasteChainId:r,skipNestingCheck:!0});const u=n[ia("0x77")](l[ia("0x95")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],ia("0x3c"),{tablePasteChainId:r});if(u){const e=u[ia("0x98")](),n=[];for(const{element:r,attributes:o}of l){if(!o)continue;const i=t[ia("0x25")].createRangeOn(r),s=e[ia("0x6f")]((t=>t[ia("0x87")]()[ia("0x17")](i)));s&&n.push([s[ia("0x4a")],o])}n.length&&u.setAttribute(ia("0x58"),Object.fromEntries(n))}s=null})))}),{priority:e.priorities[ia("0x6b")]+10}),t.plugins[ia("0x72")](ia("0x7a")).on("_replaceTableSlotCell",((t,e)=>{const[n,r,,o]=e;if(!s)return;t[ia("0x33")]();const i=n[ia("0x59")],x=r,a=ca(i),c=ca(x);t[ia("0x51")]=i;let l=null,u=null;if(c||a)if(a&&!c){o[ia("0x8b")](i.getChild(0));for(const t of Array[ia("0x4f")](x[ia("0x79")]()))o[ia("0x45")](t,i,"end");const t=s.rowInsertionIndexes.includes(n[ia("0x96")]),e=s[ia("0x83")].includes(n[ia("0x37")]);t||e||(l=o[ia("0x3")](i))}else c&&!a&&(u=o.createRangeIn(i));else{const t=o.createElement(ia("0x1a")),e=o[ia("0x3b")]("tableCellSuggestion");o[ia("0x50")](o[ia("0x3")](i),e),o[ia("0x45")](t,i,0);for(const e of Array.from(x[ia("0x79")]()))o[ia("0x45")](e,t,ia("0x3a"));l=o[ia("0x54")](t),u=o.createRangeOn(e)}const d=Array[ia("0x4f")](x[ia("0x5")]())[ia("0x22")]((([t])=>sa[ia("0x62")](t)));s[ia("0x1b")][ia("0x2c")]({element:i,attributes:d[ia("0x2a")]?Object.fromEntries(d):null}),l&&s.insertionRanges[ia("0x2c")](l),u&&s[ia("0x5e")].push(u)}),{priority:ia("0x6b")}),r.on("insertColumns",((e,n)=>{const[o,i={}]=n;if(!s)return;const x=i.at||0,a=i.columns||1;s[ia("0x83")]=new Array(a)[ia("0x60")](x)[ia("0x95")](((t,e)=>t+e));for(const{cell:e}of r[ia("0x93")](o,{startColumn:x,endColumn:x+a-1}))s.columnInsertionRanges.push(t[ia("0x25")][ia("0x54")](e))}),{priority:"low"}),r.on("insertRows",((e,n)=>{const[o,i={}]=n;if(!s)return;const x=i.at||0,a=i.rows||1;s.rowInsertionIndexes=new Array(a)[ia("0x60")](x)[ia("0x95")](((t,e)=>t+e));for(const{cell:e}of r.createTableWalker(o,{startRow:x,endRow:x+a-1}))s[ia("0x40")][ia("0x2c")](t[ia("0x25")].createRangeOn(e))}),{priority:"low"}),n[ia("0x82")][ia("0x63")]((e=>{if(e[ia("0x8e")]&&e[ia("0x8e")][ia("0x99")](ia("0x16")))return e[ia("0x8")]?{}:{type:ia("0x84"),content:Yr(t.locale,ia("0x65"))}}));const x=()=>!1;for(const t of[ia("0x16"),ia("0xc"),ia("0xd"),ia("0x3c")])n._suggestionFactory[ia("0x34")]("insertion",t,ia("0x5c"),x),n[ia("0xa")].registerCustomCallback(ia("0x61"),t,ia("0x5c"),x),n._suggestionFactory.registerCustomCallback(ia("0x1d"),t,ia("0x5c"),x);n[ia("0xa")].registerCustomCallback(ia("0x1d"),ia("0x3c"),ia("0x6e"),x),n._suggestionFactory[ia("0x34")](ia("0x1d"),ia("0x3c"),ia("0x1f"),((e,n,r)=>{const o=e[ia("0x95")]((t=>t[ia("0x24")]()))[ia("0x22")]((t=>t)),i=new Map(o.map((t=>[t,null])));if(s)for(const{element:t,attributes:e}of s[ia("0x1b")])e&&i[ia("0x36")](t,e);else if(r&&r[ia("0x58")])for(const[e,n]of Object.entries(r.markerAttributes)){const r=t.model.markers[ia("0x72")](e),o=r?r.getRange()[ia("0x24")]():null;o&&i[ia("0x36")](o,n)}t[ia("0x25")][ia("0x44")]((t=>{for(const[e,n]of i)t[ia("0x19")]({...xa,...n},e)}))}));const a=(e,r)=>{n._suggestionFactory[ia("0x34")](e,ia("0x16"),r,((o,i,s)=>{t[ia("0x25")][ia("0x44")]((t=>{const x=[];for(const t of o){const e=t.start[ia("0x6d")];e.is(ia("0x38"),ia("0x1a"))&&x[ia("0x2c")](e)}n._suggestionFactory.getSuggestionCallback(e,null,r)(o,i,s);for(const e of x)ia("0x64")!=e[ia("0x27")][ia("0x31")]&&t.unwrap(e)}))}))};a("insertion",ia("0x1f")),a(ia("0x84"),ia("0x6e")),a(ia("0x61"),"accept"),a(ia("0x61"),"discard"),n._suggestionFactory[ia("0x34")]("insertion",ia("0xd"),ia("0x6e"),(t=>{const e=t[ia("0x95")]((t=>t[ia("0x24")]())),n=e[0].findAncestor(ia("0x2f")),{minRow:i,maxRow:s}=o[ia("0x46")](e);r[ia("0x92")](n,{at:i,rows:s-i+1})})),n[ia("0xa")][ia("0x34")](ia("0x84"),ia("0xc"),"discard",(t=>{const e=t[ia("0x95")]((t=>t[ia("0x24")]())),n=e[0].findAncestor(ia("0x2f")),{minColumn:i,maxColumn:s}=o[ia("0x46")](e);r[ia("0x52")](n,{at:i,columns:s-i+1})}));const c=(t,e)=>{if(!e[ia("0x8e")]||!e[ia("0x8e")][ia("0x99")](ia("0x16")))return;const r=e.attributes.tablePasteChainId,o=n[ia("0x10")]()[ia("0x22")]((t=>t[ia("0x7d")]&&t[ia("0x7f")]&&t[ia("0x7f")][ia("0x90")]==r));o[ia("0x2a")]&&e[ia("0x73")]()[ia("0x2a")]!=o.length&&o.reduce(((t,e)=>(t[ia("0x2d")]=e,e.previous=t,e)))};function l(t,e=!0){const{id:r}=n[ia("0x80")](t[ia("0x1e")]),o=[ia("0x97"),"ck-suggestion-marker-insertion"],i=n[ia("0x2e")][ia("0x62")](t[ia("0x1e")]);return i&&o[ia("0x2c")]("ck-suggestion-marker--active"),{classes:o,attributes:{"data-suggestion":r},priority:i&&e?3010:3e3}}n.on(ia("0x13"),c,{priority:ia("0x6b")}),n.on("suggestionUnloaded",c,{priority:ia("0x6b")}),t[ia("0x25")].document[ia("0x41")]((()=>{let e=!1;const r=Array.from(t.model[ia("0x0")].differ.getChangedMarkers());for(const{name:o,data:i}of r){const{group:r,type:s,id:x}=n[ia("0x80")](o);if(ia("0x68")!=r||ia("0x61")!=s||i[ia("0xb")])continue;if(!n[ia("0x7e")](x))continue;const a=n[ia("0x7")](x)[ia("0x70")](),c=t[ia("0x9")][ia("0x72")](ia("0x56")).me;for(const t of n[ia("0x10")]())if(t.isInContent&&t[ia("0x55")]==c&&ia("0x1d")==t[ia("0x35")]&&ia("0x3c")==t[ia("0x8e")]&&t.getRanges()[ia("0x94")]((t=>a[ia("0x74")]((e=>e[ia("0x5b")](t,!0))))))for(const n of t[ia("0x73")]())n[ia("0x7d")]&&(n[ia("0x6e")](),e=!0)}return e})),t.model[ia("0x0")][ia("0x41")]((e=>{const r=t[ia("0x5f")][ia("0x72")](ia("0x4"));if(!r||!r[ia("0x4c")][ia("0x6c")](e[ia("0x23")]))return!1;let o=!1;const i=t[ia("0x9")][ia("0x72")]("Users").me,s=t[ia("0x25")][ia("0x0")].differ[ia("0x69")](),x=Array.from(t[ia("0x25")][ia("0x0")].differ.getChangedMarkers()).filter((({name:t,data:e})=>{const{group:r,subType:o,authorId:s}=n[ia("0x80")](t);return ia("0x68")==r&&"tablePaste"==o&&s==i.id&&!e[ia("0xb")]}));for(const t of s){if(ia("0x45")!=t[ia("0x35")]||"tableCellSuggestion"!=t[ia("0x4a")]||1!=t[ia("0x2a")])continue;const n=e[ia("0x43")](t[ia("0x15")],t[ia("0x15")][ia("0x2b")](1));if(!x[ia("0x6f")]((({data:t})=>t[ia("0x32")][ia("0x17")](n))))for(const{name:t,data:r}of x)if(n[ia("0x5b")](r[ia("0x32")])){e[ia("0x28")](t,{range:n}),o=!0;break}}return o})),t[ia("0x25")][ia("0x0")][ia("0x41")]((e=>{let r=!1;const o=t[ia("0x9")][ia("0x72")](ia("0x56")).me,i=n[ia("0x10")]()[ia("0x22")]((t=>t.isInContent&&t.author==o)),s=new Set,x=new Set;for(const t of i)if(ia("0x16")==t[ia("0x8e")])for(const e of t[ia("0x98")]()){const n=e[ia("0x87")]()[ia("0x24")]();if(n)if(n.is(ia("0x38"),ia("0x1a"))&&ca(n)){t[ia("0x53")](e[ia("0x4a")]),s[ia("0x3f")](n),r=!0;const o=n[ia("0x66")],i=n[ia("0x86")],a=o&&o.is("element",ia("0x1a")),c=i&&i.is("element","tableCellSuggestion");a&&!s[ia("0x6c")](o)&&x.add(o),c&&!s.has(i)&&x[ia("0x3f")](i)}else n.is(ia("0x38"),ia("0x39"))&&n[ia("0x89")]&&(t[ia("0x53")](e[ia("0x4a")]),r=!0)}else if(ia("0x3c")==t[ia("0x8e")]){if(!t[ia("0x7f")]||!t[ia("0x7f")][ia("0x90")])continue;const e=t[ia("0x7f")].markerAttributes;if(e&&Object[ia("0x8c")](e)[ia("0x2a")])continue;const n=t[ia("0x7f")][ia("0x90")];let o=!0,s=!0;for(const e of i)if(e[ia("0x8e")]&&e.subType[ia("0x99")](ia("0x16"))){if(!e[ia("0x7f")][ia("0x90")]){s=!1;break}if(e.id!=t.id&&e[ia("0x7f")][ia("0x90")]==n){o=!1;break}}s&&o&&(t[ia("0x49")](),r=!0)}for(const t of s)e[ia("0x8b")](t);for(const t of x)e[ia("0x18")](t);return r})),t[ia("0x8f")][ia("0x29")](ia("0x42"))[ia("0x30")]({model:ia("0x71"),view:(t,e)=>l(t),converterPriority:ia("0x6b")}),t[ia("0x8f")][ia("0x29")]("dataDowncast")[ia("0x30")]({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>e[ia("0x3e")][ia("0x78")]?l(t,!1):null,converterPriority:ia("0x6b")});const u=t.editing[ia("0x88")];this[ia("0x4e")](u[ia("0x0")],ia("0x4b"),((t,e)=>{const n=[];for(const t of u[ia("0x3")](e.content)[ia("0x26")]())t.is(ia("0x38"),ia("0x6"))&&n.push(t);u.change((t=>{for(const e of n)t.move(t[ia("0x3")](e),t[ia("0x75")](e)),t[ia("0x8b")](e)}))}))}}function ca(t){if(t[ia("0x89")])return!0;const e=t[ia("0xe")](0);return e.is("element","paragraph")&&e[ia("0x89")]}function la(t,e={},n){for(const{isAnchor:r,cellHeight:o,cellWidth:i}of n.createTableWalker(t,{includeAllSlots:!0,...e}))if(!r||1!=o||1!=i)return!1;return!0}const ua=["Users","commandParams","formatBlock","registerCustomCallback","subType","_suggestionFactory","locale","getAttribute","table","getContainedElement","getSuggestions","formatInline","getTableColumnsWidths","handleResizeTableWidthCommand","TrackChangesEditing","editor","change","accept","resizeTableWidth","resizeTable","getSuggestionCallback","_descriptionFactory","plugins","get","discard","columnWidths","bind","model","getSelectedElement","author","tableWidth","getColumnGroupElement","afterInit","handleSuggestionDescription","formatGroupId","data","document","TableColumnResizeEditing"];var da,ga;da=ua,ga=250,function(t){for(;--t;)da.push(da.shift())}(++ga);const fa=function(t,e){return ua[t-=0]};class ma extends t.Plugin{[fa("0xa")](){if(!this[fa("0x1f")][fa("0x0")].has("TableColumnResizeEditing"))return;const t=this[fa("0x1f")][fa("0x0")][fa("0x1")](fa("0x1e"));t.enableCommand(fa("0x22"),this[fa("0x1d")][fa("0x4")](this)),t[fa("0x15")][fa("0x13")](fa("0x12"),fa("0x23"),fa("0x21"),t[fa("0x15")][fa("0x24")]("formatBlock",null,fa("0x2"))),t._suggestionFactory[fa("0x13")](fa("0x12"),fa("0x23"),"discard",t[fa("0x15")][fa("0x24")](fa("0x12"),null,fa("0x21"))),t[fa("0x25")].registerDescriptionCallback(this[fa("0xb")][fa("0x4")](this))}[fa("0x1d")](t,e){const n=this[fa("0x1f")][fa("0x0")].get(fa("0x1e")),r=this[fa("0x1f")][fa("0x0")][fa("0x1")](fa("0xf")),o=e[fa("0x18")]||this[fa("0x1f")][fa("0x5")][fa("0xe")].selection[fa("0x6")]();this[fa("0x1f")].model[fa("0x20")]((()=>{const i=r[fa("0x9")](o);let s=i?r[fa("0x1c")](i):null,x=o[fa("0x17")](fa("0x8"))||null;const a=e[fa("0x8")]||x,c=e[fa("0x3")]||s,l=this[fa("0x1f")].plugins[fa("0x1")](fa("0x10")).me;for(const t of n[fa("0x1a")]()){const e=t[fa("0x19")]();if("resizeTable"===t[fa("0x14")]&&e===o){t[fa("0x7")]!==l&&t.discard();const e=t[fa("0xd")][fa("0x11")];x=e[0][fa("0x8")],s=e[0][fa("0x3")];break}}t({table:o,tableWidth:a,columnWidths:c}),n.markBlockFormat(o,{commandName:fa("0x22"),commandParams:[{tableWidth:x,columnWidths:s}],formatGroupId:"resizeTable"},[],fa("0x23"))}))}handleSuggestionDescription(t){if(fa("0x12")!=t.type&&fa("0x1b")!=t.type)return;const{data:e}=t;if(e&&fa("0x23")===e[fa("0xc")]){const t="*Format:* resize table";return{type:"format",content:Yr(this[fa("0x1f")][fa("0x16")],t)}}}}const ha=["insertTemplate","enableCommand","has","afterInit","TrackChangesEditing","plugins","editor"];var pa,ba;pa=ha,ba=376,function(t){for(;--t;)pa.push(pa.shift())}(++ba);const Ea=function(t,e){return ha[t-=0]};class _a extends t.Plugin{[Ea("0x5")](){const t=this[Ea("0x1")];t[Ea("0x0")][Ea("0x4")]("Template")&&t[Ea("0x0")].get(Ea("0x6"))[Ea("0x3")](Ea("0x2"))}}const Ta=["insertTableOfContents","enableCommand","afterInit","tableOfContents","registerElementLabel","locale","TrackChangesEditing","get","_descriptionFactory","plugins","ELEMENT_TABLE_OF_CONTENTS","editor"];var ya,Ca;ya=Ta,Ca=215,function(t){for(;--t;)ya.push(ya.shift())}(++Ca);const ka=function(t,e){return Ta[t-=0]};class Aa extends t.Plugin{[ka("0x3")](){const t=this[ka("0x0")];if(!t.commands[ka("0x8")](ka("0x1")))return;t[ka("0xa")][ka("0x8")](ka("0x7"))[ka("0x2")](ka("0x1"));const e=t[ka("0xa")].get(ka("0x7")),n=t[ka("0x6")];e[ka("0x9")][ka("0x5")](ka("0x4"),(t=>Yr(n,ka("0xb"),t)))}}const Ia=["createRange","schema","suggestion","newRange","getNearestSelectionRange","editor","from","Title","document","TrackChangesEditing","title-content","getChangedMarkers","end","plugins","registerPostFixer","ELEMENT_TITLE","isEqual","locale","model","removeMarker","differ","isTouching","registerElementLabel","nodeBefore","get"];var Ra,Sa;Ra=Ia,Sa=386,function(t){for(;--t;)Ra.push(Ra.shift())}(++Sa);const va=function(t,e){return Ia[t-=0]};class Na extends t.Plugin{afterInit(){const t=this[va("0x13")];if(!t.plugins.has(va("0x15")))return;const e=t[va("0x2")][va("0xd")](va("0x17"));e._descriptionFactory[va("0xb")](va("0x18"),(()=>Yr(t[va("0x6")],va("0x4")))),t.model.document[va("0x3")]((n=>{let r=!1;const o=Array[va("0x14")](t[va("0x7")][va("0x16")][va("0x9")][va("0x0")]());for(const{name:i,data:s}of o){const{group:o}=e._splitMarkerName(i);if(va("0x10")!==o||!s[va("0x11")])continue;const x=s.newRange,a=x[va("0x1")][va("0xc")];if(!a||!a.is("element",va("0x18")))continue;if(!x.start[va("0xa")](x[va("0x1")]))continue;const c=t[va("0x7")][va("0xf")][va("0x12")](x[va("0x1")],"forward");if(c&&c.isCollapsed){const t=n[va("0xe")](x.start,c.start);t[va("0x5")](x)||(n.updateMarker(i,{range:t}),r=!0)}r||(n[va("0x8")](i),r=!0)}return r}))}}const La=["has","afterInit","UndoEditing","editor","redo","get","enableCommand","plugins"];var Ma,wa;Ma=La,wa=446,function(t){for(;--t;)Ma.push(Ma.shift())}(++wa);const Oa=function(t,e){return La[t-=0]};class Fa extends t.Plugin{[Oa("0x3")](){const t=this[Oa("0x5")],e=t.plugins[Oa("0x7")]("TrackChangesEditing");t[Oa("0x1")][Oa("0x2")](Oa("0x4"))&&(e[Oa("0x0")]("undo"),e.enableCommand(Oa("0x6")))}}const Da=["plugins","has","TableCaptionEditing","TrackChangesEditing","requires","get","editor","toggleTableCaption","afterInit"];var Ba,Pa;Ba=Da,Pa=190,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("0x3")](){return[zx]}[Ua("0x7")](){const t=this[Ua("0x5")];t.plugins[Ua("0x0")](Ua("0x1"))&&t[Ua("0x8")][Ua("0x4")](Ua("0x2")).enableCommand(Ua("0x6"))}}const Ga=["TableUtils","afterInit","_descriptionFactory","join","getSelectionAffectedTableCells","tableBackgroundColor","pluginName","tableWidth","editor","tableCellBorderWidth","formatBlock","*Format:* change table cell properties","tableCellPadding","getFirstPosition","change","handleDiscardAction","format","tableAlignment","commandParams","_handlePropertyChange","discard","tableProperties","tableCellProperties","*Format:* change table properties","registerCustomCallback","enableCommand","_getSuggestion","_suggestionFactory","tableCellHorizontalAlignment","registerDescriptionCallback","getContainedElement","nodeAfter","data","subType","tableCellBackgroundColor","enqueueChange","selection","handleSuggestionDescription","TableCellPropertiesEditing","tableBorderStyle","document","getSuggestionCallback","start","has","plugins","tableCellWidth","TrackChangesEditing","model","tableBorderWidth","accept","findAncestor","table","get","getAttribute","TablePropertiesEditing","tableCellHeight","tableCellBorderColor","locale","tableHeight","setAttribute"];var Va,Ha;Va=Ga,Ha=466,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("0x23")]=["tableBorderColor",za("0x35"),za("0x2"),za("0x1f"),za("0x15"),za("0xc"),za("0x13")],this.tableCellProperties=[za("0xa"),"tableCellBorderStyle",za("0x17"),za("0x1a"),za("0x3b"),za("0x9"),za("0x30"),za("0x2a"),"tableCellVerticalAlignment"]}static get[za("0x14")](){return"TrackChangesTableProperties"}[za("0xf")](){const t=this[za("0x16")][za("0x3a")][za("0x6")]("TrackChangesEditing");if(this[za("0x16")].plugins[za("0x39")](za("0x8"))){for(const e of this[za("0x23")])t[za("0x27")](e,((t,n)=>{const r=this.editor[za("0x1")][za("0x36")][za("0x32")][za("0x1b")]()[za("0x4")](za("0x5"));this[za("0x21")](e,[r],this[za("0x23")],za("0x23"),t,n)}));t[za("0x29")][za("0x26")](za("0x18"),za("0x23"),za("0x3"),t[za("0x29")][za("0x37")](za("0x18"),null,za("0x22"))),t[za("0x29")][za("0x26")](za("0x18"),za("0x23"),za("0x22"),((t,e)=>this[za("0x1d")](this[za("0x23")],t,e))),t[za("0x29")][za("0x26")]("formatBlock",za("0x23"),za("0x11"),(()=>!1))}if(this.editor[za("0x3a")][za("0x39")](za("0x34"))){for(const e of this[za("0x24")])t[za("0x27")](e,((t,n)=>{const r=this[za("0x16")].plugins[za("0x6")](za("0xe"))[za("0x12")](this[za("0x16")][za("0x1")].document[za("0x32")]);this[za("0x21")](e,r,this.tableCellProperties,za("0x24"),t,n)}));t._suggestionFactory.registerCustomCallback(za("0x18"),za("0x24"),za("0x3"),t[za("0x29")][za("0x37")]("formatBlock",null,"discard")),t._suggestionFactory[za("0x26")](za("0x18"),za("0x24"),za("0x22"),((t,e)=>this[za("0x1d")](this[za("0x24")],t,e))),t[za("0x29")][za("0x26")](za("0x18"),"tableCellProperties",za("0x11"),(()=>!1))}t[za("0x10")][za("0x2b")]((t=>this[za("0x33")](t)))}[za("0x21")](t,e,n,r,o,i){const s=this.editor[za("0x3a")][za("0x6")]("TrackChangesEditing");this[za("0x16")][za("0x1")][za("0x31")](i.batch,(()=>{for(const t of e)if(this[za("0x28")](t,r))o(i);else{const e={};for(const r of n){const n=t[za("0x7")](r);void 0!==n&&(e[r]=n)}o(i),s.markBlockFormat(t,{commandParams:[e]},[],r)}}))}handleDiscardAction(t,e,n){const r=e[0][za("0x38")][za("0x2d")],o=n[za("0x20")][0];this[za("0x16")].model[za("0x1c")]((e=>{for(const n of t)void 0!==o[n]?e[za("0xd")](n,o[n],r):e.removeAttribute(n,r)}))}[za("0x33")](t){if(t[za("0x2e")])switch(t[za("0x2f")]){case za("0x23"):return{type:za("0x1e"),content:Yr(this[za("0x16")].locale,za("0x25"))};case za("0x24"):return{type:za("0x1e"),content:Yr(this.editor[za("0xb")],za("0x19"))}}}[za("0x28")](t,e){const n=this[za("0x16")][za("0x3a")][za("0x6")](za("0x0"));for(const r of n.getSuggestions({skipNotAttached:!0})){const n=r[za("0x2c")]();if(r[za("0x2f")]===e&&n===t)return r}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=ot?ot.isConcatSpreadable:void 0;const tc=function(t){return ge(t)||de(t)||!!(Ja&&t&&t[Ja])};const ec=function t(e,n,r,o,i){var s=-1,x=e.length;for(r||(r=tc),i||(i=[]);++s<x;){var a=e[s];n>0&&r(a)?n>1?t(a,n-1,r,o,i):sn(i,a):o||(i[i.length]=a)}return i};const nc=function(t){return(null==t?0:t.length)?ec(t,1):[]};const rc=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 oc=Math.max;const ic=function(t,e,n){return e=oc(void 0===e?t.length-1:e,0),function(){for(var r=arguments,o=-1,i=oc(r.length-e,0),s=Array(i);++o<i;)s[o]=r[e+o];o=-1;for(var x=Array(e+1);++o<e;)x[o]=r[o];return x[e]=n(s),rc(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 r=ac(),o=16-(r-n);if(n=r,o>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 r=!1;e=ur(e,(function(e){return e=hr(e,t),r||(r=e.length>1),e})),ie(t,dn(t),n),r&&(n=tr(n,7,Ya));for(var o=e.length;o--;)Wr(n,e[o]);return n})),uc=["markerReady","markers","some","TrackChangesEditing","every","always","FORMATTING","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.","markerName","then","dataReady","_processAttributeChanges","value","_getSuggestionData","isIntersecting","end","set","containsPosition","sort","root","markDeletion","range","addUser","listenTo","map","formatGroupId","_customCallbacks","_registerBlockAttribute","isLocal","_descriptionFactory","insertion:discard","rename","_onDiscard","addClass","keys","_editor","getCustomProperty","$text","startsWith","markerToHighlight","markInlineFormat","markMultiRangeBlockFormat","_initAriaMarkerChangeAnnouncements","getShiftedBy","$marker","_handleNewSuggestionMarker","discard","_commentsRepository","version","has","addMarker:suggestion:formatBlock","element","hasComments","author","enableReadOnlyMode","addRange","getAllAdjacentSuggestions","isDocumentOperation","rootName","isCollapsed","refresh","_adapter","collaboration.channelId","getIntersection","stopListening","attribute","acceptSelectedSuggestions","nodeAfter","toJSON","editor","consumable","_model","_getExternalAuthor","removeMarkers","get","ck-suggestion-marker--active","LEAVE","key","trackChanges.mergeNestedSuggestions","markerToData","_suggestionFactory","_breakSuggestionMarker","execute","_cutOutSuggestionMarker","marker-count","_suggestions","forEach","notReady","getMultiRangeId","getChangedMarkers","getItems","skipNestingCheck","setTo","hasSuggestion","createElement","isMultiRange","elementToElement","multipleBlocks","track-changes-command-not-found","pluginName","trackChanges.trackFormatChanges","getNearestSelectionRange","markAttributeChange","_addSuggestionMarker","concat","define","for","getAncestors","_joinSuggestions","_getAuthorFromId","fetchCommentThread","discardAllSuggestions","group","stop","remove","isInsideObject","deletion:discard","highest","createdAt","deleteContent","dataDowncast","getContainedElement","createSelection","insertContent","isLimit","tablePasteChainId","from","reconvertMarker","selection","editing","getRanges","enqueueChange","formatBlock:accept","getAttribute","updateMarker","document","_suggestionState","isBefore","_isBlockAttribute","_registerInlineAttribute","length","changeAttribute","multi","_splitMarkerName","addHighlight","commentThread","removeAttribute","locale","config","newRange","toUpperCase","filter","_inlineAttributeKeys","isAtEnd","splice","default","_mergeNestedSuggestions","never","addSuggestionData","warn","isAfter","markMultiRangeDeletion","containerElement","oldRange","mapper","isObject","track-changes-adapter-missing-getsuggestion","change:data","formatInline:discard","high","writer","substring","moveTargetPosition","bindElementToMarker","discardSuggestion","buildSuggestion","data","_registerDefaultCallbacks","_addThreadToSuggestion","applyOperation","newName","_checkSuggestionCorrectness","suggestionChanged","track-changes-user-not-found","isBlock","PENDING_ACTION_SUGGESTION","createRangeIn","getFirstMarker","after","addCommentThread","_recordAttributeChanges","insertion:chain","start","_processAttributeSuggestions","createPositionAfter","suggestionUnloaded","_setSuggestionData","addMarker:suggestion","accept","formatBlock:join","_updateSuggestionData","values","_blockAttributeKeys","plugins","setSelection","_reduceSuggestionAttributeRange","change","split","getOperations","push","commands","parent","suggestion:","updateSuggestion","format","addMarker:suggestion:attribute","acceptSuggestion","commandName","nodeBefore","track-changes-suggestion-not-found","track-changes-suggestion-data-mismatch","howMany","data-suggestion","markerNameToElements","open","trackChangesCommand","suggestion","editingDowncast","$graveyard","_removeSuggestion","getSuggestions","requires","history","name","substr","chain","$elementName","rethrowUnexpectedError","_findSuggestions","previous","markBlockFormat","registerPostFixer","creator","hasCommentThread","oldValue","PendingActions","addSuggestion","_recordAttributeSuggestionsFromVersion","CommentsRepository","options","clone","_refreshAttributeSuggestionsChain","enableCommand","isRemovable","_isForcedDefaultExecutionBlock","_saved","targetPosition","find","unbind","containsRange","groupId","_defaultCallbacks","isOwn","announce","init","deletion","acceptAllSuggestions","attribute:join","assign","formatInline","getDifference","fire","isTouching","addMarker","error-saving-suggestion-data-suggestion-discarded","deletion:","toViewElement","head","conversion","suggestion-type","setAttribute","_isDataLoaded","_rangeIsInLocalUserInsertion","isEqual","discardSelectedSuggestions","insertion","size","getChanges","getLastMatchingPosition","isUndo","unshift","formatInline:chain","removeComment","isNextTo","formatBlock:chain","type","next","insertion:","differ","item","Users","unbindElementFromMarkerName","isIntersectingWithRange","forceDefaultExecution","update:suggestion","ck-suggestion-marker","upcast","_joinWithAdjacentSuggestions","_setSuggestionRange","_refreshSuggestionsChain","getSuggestion","removeMarker","attribute:accept","authoredAt","elementStart","createPositionAt","registerCustomCallback","_createSuggestion","meta","getWalker","ariaLiveAnnouncer","getFirstRange","_reduceExistingSuggestions","suggestionLoaded","consume","join","model","markInsertion","formatBlock","attributeOldValue","@external","schema","_enabledCommands","low","containsRangeInObject","isInContent","move","removed","dataToMarker","removeClass","removeMarker:suggestion:attribute","createRange","return","ck-suggestion-marker-formatBlock","position","createRangeOn","add","isAtStart","insert","getCommentThread","batch","addMarkerName","fromCharCode","showSuggestionHighlights","comments","_getMarkerAnnouncementText","formatInline:","attributes","ready","adapter","_SUGGESTION_ANNOUNCEMENT","detach","delete","activeMarkers","getSuggestionCallback","subType","trackChanges","_trackFormatChanges","getMarkers","newValue","backward","includes","originalSuggestionId"];var dc,gc;dc=uc,gc=131,function(t){for(;--t;)dc.push(dc.shift())}(++gc);const fc=function(t,e){return uc[t-=0]},mc=fc("0x69");class hc extends t.Plugin{static get[fc("0x64")](){return[fc("0x75"),i.Users,t.PendingActions,ao,fo,_o,Ao,Lo,Do,Vo,ti,ii,li,hi,Ti,Ri,Mi,Pi,Hi,Xi,Ji,os,fs,cs,Es,ks,vs,Os,Us,Ks,Qs,nx,xx,dx,bx,Cx,Sx,Ox,Ux,zx,Zx,ea,ja,aa,ma,Aa,Wa,_a,Na,Fa]}static get[fc("0x155")](){return fc("0xf5")}constructor(t){function e(t){return t[fc("0x10a")]((t=>String[fc("0xdd")](t)))[fc("0xc2")]("")}super(t),this[fc("0x74")]=null,this[fc("0x102")](fc("0xe8"),[]),this.on("change:activeMarkers",((e,n,r,o)=>{this[fc("0x139")][fc("0x4b")]((()=>{for(const e of[...o,...r])this._model[fc("0xf3")].has(e)&&t[fc("0x173")][fc("0x171")](e)}))})),this[fc("0x10f")]=new ro(this.editor[fc("0xc3")].schema,this[fc("0x137")][fc("0x10")]),this[fc("0x12f")]=null,this[fc("0x142")]=new pc(this[fc("0x137")]),this[fc("0x147")]=new Map,this._commentsRepository=t.plugins.get(fc("0x75")),this[fc("0xc9")]=new Set,this[fc("0x139")]=this[fc("0x137")][fc("0xc3")],this[fc("0x5")]=new WeakMap,this[fc("0x7b")]=!1,this[fc("0x47")]=new Set([fc("0x69")]),this[fc("0x15")]=new Set,t.config[fc("0x15b")](fc("0x156"),"default"),this[fc("0xec")]=t[fc("0x11")][fc("0x13c")](fc("0x156")),t[fc("0x11")][fc("0x15b")](fc("0x140"),!0),this[fc("0x19")]=t[fc("0x11")][fc("0x13c")](fc("0x140")),this[fc("0x5e")]=new d(t,this[fc("0xc9")]),this[fc("0x11c")](),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,52,49,48])}[fc("0x85")](){const t=this[fc("0x137")],n=(t,e)=>{if("attribute"!=t)return"ck-suggestion-marker-"+t;const n=e[fc("0x4c")]("|")[0];return this[fc("0x7")](n)?fc("0xd4"):"ck-suggestion-marker-formatInline"};t.conversion[fc("0x15c")](fc("0x60")).markerToHighlight({model:"suggestion",view:t=>{const{id:e,type:r,subType:o}=this[fc("0xc")](t[fc("0xfa")]),i=[fc("0xae"),n(r,o)];let s=3e3;return this[fc("0xe8")][fc("0xf0")](t[fc("0xfa")])&&(i.push("ck-suggestion-marker--active"),s=3010),fc("0x86")==r&&(s+=5),{classes:i,attributes:{"data-suggestion":e},priority:s}}}),t[fc("0x93")][fc("0x15c")](fc("0x16a"))[fc("0xd7")]((e=>{e.on(fc("0x42"),((e,n,r)=>{if(!r[fc("0x76")][fc("0xde")])return;const o=n[fc("0xa8")];if(!o)return;const i=r[fc("0x21")][fc("0x91")](o);t[fc("0xc3")][fc("0xc8")][fc("0x22")](o)&&i&&!i[fc("0x116")]("widget")&&i.is(fc("0x1f"))&&(0,x.toWidget)(i,r.writer)}),{priority:"high"})})),t[fc("0x93")].for(fc("0x16a"))[fc("0x119")]({model:"suggestion",view:(t,e)=>{if(!e[fc("0x76")][fc("0xde")])return null;const{type:r,subType:o}=this._splitMarkerName(t[fc("0xfa")]);return{classes:[fc("0xae"),n(r,o)],priority:3e3}}});const r=({showActiveMarkers:e=!0,isAttributeSuggestion:n=!1}={})=>(r,o,i)=>{if(!o.item)return;const{id:s}=this[fc("0xc")](o.markerName);if(n){const t=Sc(this._suggestions[fc("0x13c")](s));if(!this._isBlockAttribute(t))return}if(o[fc("0xa8")].is("selection"))return void i[fc("0x138")][fc("0xc1")](o[fc("0xa8")],r[fc("0x66")]);const x=i[fc("0x21")][fc("0x91")](o[fc("0xa8")]);if(o[fc("0xa8")].is(fc("0x125"))&&t[fc("0xc3")][fc("0xc8")][fc("0x35")](o.item)&&!x[fc("0x116")]("addHighlight")){i[fc("0x27")][fc("0x113")]([fc("0xae"),"ck-suggestion-marker-formatBlock"],x),i[fc("0x27")][fc("0x95")](fc("0x5b"),s,x),i[fc("0x21")][fc("0x2a")](x,o.markerName),e&&(this[fc("0xe8")][fc("0xf0")](o[fc("0xfa")])?i[fc("0x27")][fc("0x113")](fc("0x13d"),x):i[fc("0x27")].removeClass("ck-suggestion-marker--active",x));for(const e of t.model[fc("0x37")](o[fc("0xa8")])[fc("0x14c")]())i.consumable[fc("0xc1")](e,r[fc("0x66")]);i[fc("0x138")][fc("0xc1")](o[fc("0xa8")],r[fc("0x66")])}};t[fc("0x93")][fc("0x15c")]("dataDowncast")[fc("0xd7")]((t=>{t.on("addMarker:suggestion:formatBlock",((t,e,n)=>{n[fc("0x76")][fc("0xde")]&&r({showActiveMarkers:!1})(t,e,n)}),{priority:fc("0x167")})})),t.conversion[fc("0x15c")](fc("0x16a"))[fc("0xd7")]((t=>{t.on(fc("0x54"),((t,e,n)=>{n[fc("0x76")][fc("0xde")]&&r({showActiveMarkers:!1,isAttributeSuggestion:!0})(t,e,n)}),{priority:fc("0x167")})})),t[fc("0x93")][fc("0x15c")](fc("0x16a"))[fc("0x141")]({model:fc("0x5f"),view:(t,e)=>e.options.showSuggestionHighlights?null:{group:fc("0x5f"),name:t[fc("0x67")](11)}}),t[fc("0x93")].for(fc("0xaf"))[fc("0x152")]({view:{name:fc("0x5f"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=fc("0x51")+t[fc("0x2")](fc("0x94"))+":"+t[fc("0x2")]("id");return t.getAttribute(fc("0x146"))&&(n+=":"+t[fc("0x2")](fc("0x146"))),e[fc("0x150")](fc("0x11e"),{"data-name":n})}}),t[fc("0x93")][fc("0x15c")](fc("0xaf"))[fc("0xcf")]({view:fc("0x5f")}),t.conversion[fc("0x15c")](fc("0x60"))[fc("0xd7")]((t=>{t.on(fc("0x124"),r(),{priority:fc("0x26")})})),t.conversion[fc("0x15c")](fc("0x60"))[fc("0xd7")]((t=>{t.on("addMarker:suggestion:attribute",r({isAttributeSuggestion:!0}),{priority:fc("0x26")})})),t[fc("0x93")].for(fc("0x60"))[fc("0xd7")]((t=>{t.on("removeMarker:suggestion:formatBlock",((t,e,n)=>{const r=n.mapper[fc("0x5c")](e[fc("0xfa")]);if(r)for(const t of r)t.getCustomProperty(fc("0xd"))||(n.writer[fc("0xd0")](["ck-suggestion-marker","ck-suggestion-marker-formatBlock","ck-suggestion-marker--active"],t),n.writer[fc("0xf")](fc("0x5b"),t),n.mapper.unbindElementFromMarkerName(t,e[fc("0xfa")]))}),{priority:fc("0x26")})})),t[fc("0x93")].for(fc("0x60"))[fc("0xd7")]((t=>{t.on(fc("0xd1"),((t,e,n)=>{const r=n.mapper[fc("0x5c")](e[fc("0xfa")]);if(!r)return;const{id:o}=this[fc("0xc")](e.markerName),i=Sc(this[fc("0x147")][fc("0x13c")](o));if(this[fc("0x7")](i))for(const t of r)t.getCustomProperty(fc("0xd"))||(n.writer[fc("0xd0")]([fc("0xae"),fc("0xd4"),"ck-suggestion-marker--active"],t),n[fc("0x27")][fc("0xf")](fc("0x5b"),t),n[fc("0x21")][fc("0xaa")](t,e[fc("0xfa")]))}),{priority:"high"})})),t[fc("0xc3")][fc("0x4")].registerPostFixer((e=>{let n=!1;const r=Array[fc("0x170")](t.model[fc("0x4")][fc("0xa7")].getChangedMarkers()),o=new Set;for(const{name:x,data:a}of r){const{group:r,type:c,subType:l,id:u}=this[fc("0xc")](x);if("suggestion"!==r)continue;const d=this[fc("0x147")][fc("0x13c")](u);if(null!=a.newRange){fc("0x8a")==c&&(n=n||_c(a.newRange,x,e,t[fc("0xc3")].schema));const r=fc("0x133")==c&&this[fc("0x7")](l[fc("0x4c")]("|")[0]);if(a[fc("0x12")][fc("0x12d")]||fc("0x61")==a.newRange[fc("0x105")][fc("0x12c")]||fc("0xc5")==c&&!yc(a[fc("0x12")])||r&&!yc(a[fc("0x12")])||fc("0x86")==c&&(Ec(s=a[fc("0x12")])||(i=s)[fc("0x3d")][fc("0x50")]==i.end[fc("0x57")]&&i[fc("0x3d")][fc("0x16")]))e.removeMarker(x),n=!0;else{if(!d||!d[fc("0xcc")])continue;o[fc("0xd7")](d)}}}var i,s;return o[fc("0x9b")]>0&&(n=!!this[fc("0xb0")](o)||n),n})),t.model[fc("0x4")][fc("0x6e")]((e=>{let n=!1;for(const r of t[fc("0xc3")][fc("0x4")][fc("0xa7")][fc("0x9c")]())if(fc("0xd9")==r[fc("0xa4")])for(const r of this[fc("0x147")][fc("0x46")]()){if(r.isMultiRange||!r[fc("0xcc")])continue;const o=fc("0xc5")==r[fc("0xa4")],i=Sc(r),s=i&&this[fc("0x7")](i);if(!o&&!s)continue;const x=r.getFirstRange();if(x[fc("0x3d")].parent!=x[fc("0x101")].parent&&!x.end[fc("0x16")]){const o=t[fc("0xc3")][fc("0xb8")](x[fc("0x3d")][fc("0x135")],"end"),i=t[fc("0xc3")][fc("0xd2")](x[fc("0x3d")],o);e[fc("0x3")](r[fc("0x38")](),{range:i}),n=!0}}return n})),t.model[fc("0x4")][fc("0x6e")]((t=>this[fc("0xfd")](t))),t.model[fc("0x4")][fc("0x6e")]((t=>!t.batch.isLocal&&this[fc("0x3e")](t))),t.model[fc("0xf3")].on(fc("0xad"),((t,e,n)=>{if(null==n){const{id:t}=this._splitMarkerName(e[fc("0x66")]),n=this[fc("0x147")][fc("0x13c")](t);n&&n.addMarkerName(e.name)}})),t.model[fc("0x4")].on(fc("0x24"),(()=>{const e=Array[fc("0x170")](t[fc("0xc3")][fc("0x4")].differ[fc("0x14b")]()).filter((t=>"suggestion"===this[fc("0xc")](t[fc("0x66")])[fc("0x162")]));if(0===e[fc("0x9")])return;e.sort(((t,e)=>{const n=t[fc("0x2d")].oldRange,r=e[fc("0x2d")][fc("0x20")];return null===n&&null===r?0:null===n&&null!==r?-1:null!==n&&null===r?1:n[fc("0x3d")][fc("0x6")](r[fc("0x3d")])?-1:1}));const n=new Set,r=new Set;for(const{name:t,data:o}of e){const{id:e}=this[fc("0xc")](t);if(null===o[fc("0x20")]){const e=this[fc("0x11f")](t);r[fc("0xd7")](e)}else{const t=this[fc("0x147")].get(e);null!==o.newRange||t[fc("0xcc")]?(n[fc("0xd7")](t[fc("0x92")]),r[fc("0xd7")](t)):this[fc("0x62")](t)}}r[fc("0x9b")]>0&&this[fc("0xb2")](r);for(const t of n)this.fire(fc("0x33"),t)})),t.model.on(fc("0x30"),((e,n)=>{const r=n[0];if(!this._suggestions[fc("0x9b")])return;if(!r[fc("0x12b")])return;if(r[fc("0xdb")][fc("0x9e")]||!r[fc("0xdb")][fc("0x10e")])return;let o,i;switch(r.type){case fc("0xd9"):o=t[fc("0xc3")].createPositionAt(r.position),i=o.getShiftedBy(r[fc("0x5a")]);break;case"split":o=t[fc("0xc3")][fc("0xb8")](r.splitPosition),i=t.model[fc("0xb8")](r[fc("0x29")]);break;case fc("0xcd"):o=t[fc("0xc3")][fc("0xb8")](r[fc("0x7d")]),i=o[fc("0x11d")](r.howMany);break;default:return}const s=t[fc("0xc3")][fc("0xd2")](o,i);t[fc("0xc3")].change((()=>{for(const{suggestion:t,meta:e}of this[fc("0x6b")](s)){if(t.isMultiRange)continue;if(fc("0x8a")==t[fc("0xa4")])continue;const n=Sc(t);if(n&&this[fc("0x7")](n)&&fc("0x4c")!=r[fc("0xa4")])continue;const x=t[fc("0x2d")]&&t[fc("0x2d")].multipleBlocks;(fc("0xc5")!=t[fc("0xa4")]||fc("0x4c")==r[fc("0xa4")]&&!x)&&(e.containsRangeInObject||fc("0x9a")==t.type&&e[fc("0x83")]||t[fc("0xbe")]()[fc("0x80")](s)&&this[fc("0x143")](t,o,i))}}))}),{priority:"lowest"}),t[fc("0xc3")].on(fc("0x169"),((e,n)=>{const r=n[0],o=n[1];if(o&&o[fc("0xac")])return;if(this[fc("0x7b")])return;if(!this[fc("0x5e")][fc("0xfe")])return;if(r[fc("0x12d")])return;const i=t[fc("0xc3")].schema,{start:s,end:x}=r[fc("0xbe")](),a=s[fc("0x135")]&&i[fc("0x16e")](s[fc("0x135")])?null:i.getNearestSelectionRange(s,"forward"),c=x.nodeBefore&&i[fc("0x16e")](x[fc("0x57")])?null:i[fc("0x157")](x,"backward"),l=t[fc("0xc3")][fc("0xd2")](a?a[fc("0x3d")]:s,c?c[fc("0x101")]:x);t[fc("0xc3")][fc("0x4b")]((e=>{this[fc("0x106")](l);const n=t[fc("0xc3")][fc("0xc8")][fc("0x157")](l.start);r.is("documentSelection")?e[fc("0x49")](n):r[fc("0x14e")](n)})),e[fc("0x163")]()}),{priority:e.priorities.normal+10}),t[fc("0xc3")].on(fc("0x16d"),((e,n)=>{const r=n[n[fc("0x9")]-1];r&&r[fc("0xac")]||this[fc("0x7b")]||this[fc("0x5e")][fc("0xfe")]&&(t[fc("0xc3")][fc("0x4b")]((()=>{let r=t[fc("0xc3")][fc("0x16d")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!r)return;e.return=r[fc("0x77")]();const o=r.end[fc("0x57")],i=t[fc("0xc3")][fc("0xc8")];o&&i[fc("0x35")](o)&&!i[fc("0x22")](o)&&(r=t.model[fc("0xd2")](r[fc("0x3d")],t[fc("0xc3")][fc("0xb8")](o,"end"))),this.markInsertion(r)})),e[fc("0x163")]())}),{priority:fc("0x26")}),this[fc("0x137")][fc("0x4f")][fc("0xd7")]("trackChanges",this[fc("0x5e")]),this[fc("0x79")](fc("0xeb"));const o=new p(t,this[fc("0x147")]);t[fc("0x4f")].add(fc("0x55"),o),this[fc("0x79")]("acceptSuggestion");const i=new y(t,this[fc("0x147")]);t[fc("0x4f")][fc("0xd7")](fc("0x2b"),i),this[fc("0x79")](fc("0x2b")),t[fc("0x4f")].add("acceptAllSuggestions",new F(t,o,this[fc("0x147")])),this[fc("0x79")](fc("0x87")),t.commands[fc("0xd7")]("discardAllSuggestions",new F(t,i,this[fc("0x147")])),this.enableCommand(fc("0x161")),t[fc("0x4f")][fc("0xd7")](fc("0x134"),new j(t,o,this[fc("0x147")])),this.enableCommand(fc("0x134")),t[fc("0x4f")].add("discardSelectedSuggestions",new j(t,i,this[fc("0x147")])),this[fc("0x79")](fc("0x99"));const s=t[fc("0x48")][fc("0x13c")](fc("0x75"));this.listenTo(s,"addComment",((t,{threadId:e})=>{const n=this._suggestions[fc("0x13c")](e);n&&n[fc("0xe")]&&1===n.commentThread[fc("0x9")]&&this[fc("0x45")](e,{hasComments:!0})}),{priority:"low"}),this[fc("0x109")](s,fc("0xa1"),((t,{threadId:e})=>{const n=this[fc("0x147")][fc("0x13c")](e);n&&n.commentThread&&!n[fc("0xe")][fc("0x9")]&&this[fc("0x45")](e,{hasComments:!1})}),{priority:fc("0xca")})}set[fc("0xe4")](t){if(this[fc("0x12f")])throw new e.CKEditorError("track-changes-adapter-already-set",this);this[fc("0x12f")]=t}get[fc("0xe4")](){return this[fc("0x12f")]}[fc("0x63")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[fc("0x147")][fc("0x46")]())t&&!e[fc("0xcc")]||n[fc("0x4e")](e);return e?n[fc("0x10a")]((t=>t[fc("0x136")]())):n}getSuggestion(t){const n=this[fc("0x147")].get(t);if(!n)throw new e.CKEditorError(fc("0x58"),this);return n}[fc("0x14f")](t){return this[fc("0x147")].has(t)}[fc("0x1b")](t){const{authorId:e,id:n,attributes:r}=t,[o,i]=t[fc("0xa4")][fc("0x4c")](":"),s=this._suggestions[fc("0x13c")](n)||this[fc("0xba")](o,i,n,e,r);if(this[fc("0x2f")](s),this._checkSuggestionCorrectness(s,o,i||null,e),s[fc("0x168")]=t[fc("0x168")],s._isDataLoaded=!0,r&&r[fc("0xc7")]){const t=r["@external"],e=this[fc("0x13a")](t.authorName);s[fc("0xb6")]=t[fc("0x168")],s[fc("0x127")]=e,s.isExternal=!0}else s[fc("0xb6")]=t.createdAt;switch(t.data&&(s.data=t[fc("0x2d")]),t.attributes&&(s.attributes=t[fc("0xe2")]),this._adapter&&this[fc("0x12f")][fc("0x73")]||(s[fc("0x7c")]=!0),this._suggestionState[fc("0x13c")](s)){case fc("0x149"):this._suggestionState.set(s,fc("0xfc"));break;case fc("0xf2"):s.isInContent?(this._refreshSuggestionsChain(new Set([s])),this[fc("0xb0")](new Set([s])),this[fc("0x5")].set(s,fc("0xe3")),this[fc("0x8c")](fc("0xc0"),s)):this[fc("0x5")][fc("0x102")](s,"removed")}return s}[fc("0x55")](t){this[fc("0xac")]((()=>{this.editor[fc("0xc3")].change((()=>{for(const e of t[fc("0x12a")]())e[fc("0x43")]()}))}))}[fc("0x2b")](t){this.forceDefaultExecution((()=>{this[fc("0x137")][fc("0xc3")][fc("0x4b")]((()=>{for(const e of t[fc("0x12a")]())e.discard()}))}))}enableCommand(t,n){const r=this[fc("0x137")][fc("0x4f")][fc("0x13c")](t);if(!r)throw new e.CKEditorError(fc("0x154"),this,{commandName:t});if(this[fc("0xc9")][fc("0x123")](r))throw new e.CKEditorError("track-changes-enable-command-twice",this,{commandName:t});this[fc("0xc9")].add(r),n&&r.on("execute",((t,e)=>{this.trackChangesCommand[fc("0xfe")]&&(this[fc("0x7b")]||(e[fc("0x9")]>0&&e[e.length-1]&&e[e[fc("0x9")]-1][fc("0xac")]?e.pop():(t[fc("0xd3")]=n(((...t)=>r[fc("0x144")](...t,{forceDefaultExecution:!0})),...e),t.stop())))}),{priority:fc("0x26")})}[fc("0xac")](t){let n,r;const o=this[fc("0x7b")];this[fc("0x7b")]=!0;try{n=t()}catch(t){r=t}return o||(this._isForcedDefaultExecutionBlock=!1),r&&e.CKEditorError[fc("0x6a")](r,this),n}[fc("0xc4")](t,n=null,r={}){if(t[fc("0x12d")])return null;const o=this[fc("0x137")][fc("0x48")][fc("0x13c")](fc("0xa9")).me;for(const{suggestion:e,meta:o}of this._findSuggestions(t,"insertion"))if(o[fc("0x83")]){if(!o[fc("0xa2")]){if(o[fc("0xcb")]){if(!this[fc("0x19")]||!Ic(e,r))continue;return e}if(Ic(e,r))return e;this[fc("0x143")](e,t.start,t.end);break}if(n==e[fc("0xea")]&&Ic(e,r)){const n=e.getFirstRange();return n[fc("0x3d")].isEqual(t[fc("0x101")])?this[fc("0xb1")](e,this[fc("0x139")][fc("0xd2")](t.start,n[fc("0x101")])):this[fc("0xb1")](e,this[fc("0x139")][fc("0xd2")](n[fc("0x3d")],t[fc("0x101")])),e}}const i=(0,e.uid)(),s=o.id,x=n?"insertion:"+n:"insertion",a=this._setSuggestionData({id:i,type:x,createdAt:new Date,authorId:s,attributes:r});return this[fc("0x159")](x,i,s,t),a}markMultiRangeInsertion(t,n="multi",r={}){const o=this[fc("0x137")][fc("0x48")][fc("0x13c")](fc("0xa9")).me,i=this[fc("0x142")].getSuggestionCallback("insertion",n,fc("0xc2"));for(const e of this[fc("0x63")]())if(e[fc("0x127")].id==o.id&&fc("0x9a")==e.type&&e[fc("0xea")]==n&&Ic(e,r)&&(i(e[fc("0x174")](),t)||i(t,e[fc("0x174")]()))){for(const n of t)e[fc("0x129")](n);return e}for(const{suggestion:e,meta:n}of this[fc("0x6b")](t,fc("0x9a"))){if(!n[fc("0x83")])continue;if(!this[fc("0x19")]&&n[fc("0xcb")])continue;if(!Ic(e,r))continue;let o=!0;for(const n of e[fc("0x174")]())for(const e of t)if(!n[fc("0x80")](e)){o=!1;break}if(o)return e}const s=(0,e.uid)(),x=o.id,a=fc("0xa6")+n,c=this[fc("0x41")]({id:s,type:a,createdAt:new Date,authorId:x,attributes:r});for(const e of t)this[fc("0x159")](a,s,x,e,Qr[fc("0x14a")]());return c}[fc("0x11a")](t,n,r=null,o={}){if(r=r||Tc(n),t[fc("0x12d")])return null;if(fc("0x1a")===this[fc("0xec")]){const e=this[fc("0x142")].getSuggestionCallback("formatInline",r,fc("0x43"));return this[fc("0xac")]((()=>e([t],n,o))),null}const i=this[fc("0x137")].plugins.get(fc("0xa9")).me,s=[];if(fc("0xf7")!==this[fc("0xec")])for(const{suggestion:e,meta:n}of this[fc("0x6b")](t,fc("0x9a")))n[fc("0x83")]&&!n[fc("0x165")]&&s[fc("0x4e")](...e[fc("0x174")]());const x=function(t,e){const n=[];for(const r of e){const e=t[fc("0x131")](r);e&&n[fc("0x4e")](e)}return n}(t,s),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n.length;){const r=n[e][fc("0x8b")](t);n.splice(e,1,...r),e+=r.length}}return n}(t,s);x[fc("0x9")]&&this[fc("0x139")].change((()=>{for(const t of x){const e=this[fc("0x142")].getSuggestionCallback(fc("0x8a"),r,fc("0x43"));this[fc("0xac")]((()=>e([t],n,o)))}}));for(const t of a){let s=null,x=t.start,a=t[fc("0x101")];for(const{suggestion:e,meta:n}of this[fc("0x6b")](t,fc("0x8a"))){if(!n[fc("0x83")])continue;if(e.subType!=r)continue;if(!Ic(e,o))continue;const i=e[fc("0xbe")]();if(i.containsRange(t,!0))return null;x=x[fc("0x6")](i.start)?x:i[fc("0x3d")],a=a[fc("0x1d")](i[fc("0x101")])?a:i[fc("0x101")],s?i.start.isBefore(s[fc("0xbe")]()[fc("0x3d")])?(s[fc("0x13b")](),s=e):e[fc("0x13b")]():s=e}const c=this[fc("0x139")][fc("0xd2")](x,a);if(s)this[fc("0xb1")](s,c);else{const t=(0,e.uid)(),s=i.id;this[fc("0x41")]({id:t,type:fc("0xe1")+r,data:n,createdAt:new Date,authorId:s,attributes:o}),this[fc("0x159")](fc("0xe1")+r,t,s,c)}}return null}[fc("0x6d")](t,n,r=[],o=null,i={}){n[fc("0x10b")]||(n[fc("0x10b")]=n[fc("0x56")]),n[fc("0x153")]=t.is(fc("0x107")),o=o||Tc(n);const s=r[fc("0x10a")]((t=>Cc(t,this[fc("0x139")]))),x=t.is(fc("0x107"))?t:Cc(t,this[fc("0x139")]);if(fc("0x1a")===this._trackFormatChanges){const t=this[fc("0x142")][fc("0xe9")](fc("0xc5"),o,fc("0x43"));return this[fc("0xac")]((()=>t([x],n,i))),null}s[fc("0x4e")](x);let a=!0;for(const t of s)if(!this[fc("0x97")](t)){a=!1;break}if(a&&fc("0xf7")!==this[fc("0xec")]){const t=this[fc("0x142")].getSuggestionCallback("formatBlock",o,fc("0x43"));return this[fc("0xac")]((()=>t([x],n,i))),null}let c=null,l=x[fc("0x3d")],u=x[fc("0x101")];for(const{suggestion:t,meta:e}of this[fc("0x6b")](x,fc("0xc5"))){if(!e.isOwn)continue;if(e[fc("0xa2")]||e.containsRangeInObject||e[fc("0x165")])continue;if(t.data[fc("0x10b")]!=n[fc("0x10b")])continue;if(!Ic(t,i))continue;const r=t[fc("0xbe")]();if(t[fc("0xea")]==o){if(r[fc("0x80")](x,!0))return null;l=l[fc("0x6")](r[fc("0x3d")])?l:r[fc("0x3d")],u=u.isAfter(r[fc("0x101")])?u:r[fc("0x101")],c?r[fc("0x3d")][fc("0x6")](c[fc("0xbe")]()[fc("0x3d")])?(c[fc("0x13b")](),c=t):t[fc("0x13b")]():c=t}else{const e=x[fc("0x131")](r);this[fc("0x145")](t,e)}}const d=this[fc("0x137")].plugins.get(fc("0xa9")).me,g=(0,e.uid)(),f=d.id;if(c)return this[fc("0xb1")](c,this[fc("0x139")][fc("0xd2")](l,u)),c;{const t=this._setSuggestionData({id:g,type:"formatBlock:"+o,data:n,createdAt:new Date,authorId:f,attributes:i});return this[fc("0x159")]("formatBlock:"+o,g,f,this[fc("0x139")].createRange(l,u)),t}}[fc("0x11b")](t,n,r=[],o=null,i={}){n[fc("0x10b")]||(n[fc("0x10b")]=n[fc("0x56")]);const s=t[0];n.multipleBlocks=s.is(fc("0x107")),o=o||Tc(n);const x=r[fc("0x10a")]((t=>Cc(t,this[fc("0x139")]))),a=s.is(fc("0x107"))?t:t[fc("0x10a")]((t=>Cc(t,this[fc("0x139")])));if(fc("0x1a")===this[fc("0xec")]){const t=this[fc("0x142")][fc("0xe9")]("formatBlock",o,"accept");return this[fc("0xac")]((()=>t(a,n,i))),null}x[fc("0x4e")](...a);let c=!0;for(const t of x)if(!this[fc("0x97")](t)){c=!1;break}if(c&&fc("0xf7")!==this._trackFormatChanges){const t=this[fc("0x142")].getSuggestionCallback(fc("0xc5"),o,fc("0x43"));return this[fc("0xac")]((()=>t(a,n,i))),null}const l=this[fc("0x137")].plugins[fc("0x13c")](fc("0xa9")).me;for(const t of this.getSuggestions()){if(t[fc("0x127")].id!=l.id)continue;if(fc("0xc5")!=t[fc("0xa4")]||t[fc("0x2d")][fc("0x10b")]!=n[fc("0x10b")])continue;if(!Ic(t,i))continue;const e=t[fc("0xea")]==o;for(let n=0;n<a[fc("0x9")];n++){const r=a[n];for(const o of t[fc("0xed")]()){const i=o.getRange();if(r[fc("0x98")](i)){e?(a[fc("0x17")](n,1),n--):t[fc("0xb4")](o.name);break}}}}if(0==a[fc("0x9")])return null;const u=this[fc("0x142")].getSuggestionCallback(fc("0xc5"),o,fc("0xc2"));for(const t of this[fc("0x63")]())if(t[fc("0x127")].id==l.id&&"formatBlock"==t[fc("0xa4")]&&t[fc("0x2d")][fc("0x10b")]==n[fc("0x10b")]&&t.subType==o&&Ic(t,i)&&(u(t[fc("0x174")](),a)||u(a,t[fc("0x174")]()))){for(const e of a)t[fc("0x129")](e);return t}const d=(0,e.uid)(),g=l.id,f="formatBlock:"+o,m=this[fc("0x41")]({id:d,type:f,data:n,createdAt:new Date,authorId:g,attributes:i});for(const t of a)this[fc("0x159")](f,d,g,t,Qr[fc("0x14a")]());return m}[fc("0x106")](t,n=null,r={}){if(t.isCollapsed)return null;const o=this[fc("0x137")].plugins[fc("0x13c")]("Users").me,i=new s.LiveRange(t[fc("0x3d")],t.end);for(const{suggestion:t,meta:e}of this[fc("0x6b")](i,fc("0x9a")))if(e[fc("0x83")]&&!e[fc("0xa2")])if(t.isMultiRange){const e=t[fc("0x174")]()[fc("0x14")]((t=>fc("0x61")!=t[fc("0x105")].rootName));if(e.every((t=>i.containsRange(t,!0)))&&t[fc("0x120")](),e[fc("0xf4")]((t=>t.containsRange(i,!0)))){const t=this[fc("0x142")][fc("0xe9")](fc("0x86"),n,fc("0x43"));return this[fc("0xac")]((()=>t([i],null,r))),null}}else{const e=i.getIntersection(t[fc("0xbe")]());null!==e&&t[fc("0x112")]([e],null,r)}if(i[fc("0xe6")](),i.isCollapsed||fc("0x61")==i[fc("0x105")][fc("0x12c")])return null;let x=null,a=i[fc("0x3d")],c=i[fc("0x101")];const l=this[fc("0x6b")](i,fc("0x86"));for(const{suggestion:t,meta:e}of l){const n=this._model[fc("0xd2")](a,c);if(e[fc("0x83")]&&(this[fc("0x19")]||!e.containsRangeInObject&&!e[fc("0x165")]))if(t[fc("0x151")]){if(!Ic(t,r))continue;let e=!0;for(const r of t[fc("0x174")]()){if(r[fc("0x80")](n,!0))return t;n[fc("0x80")](r)||(e=!1)}e&&t[fc("0x120")]()}else{const e=t[fc("0xbe")]();if(e[fc("0x80")](n,!0))return t;if(!Ic(t,r)){n[fc("0x80")](e)?t.removeMarkers():e[fc("0x103")](a)?a=e.end:e[fc("0x103")](c)&&(c=e.start);continue}a=a[fc("0x6")](e[fc("0x3d")])?a:e[fc("0x3d")],c=c[fc("0x1d")](e[fc("0x101")])?c:e[fc("0x101")],r=Object[fc("0x89")]({},t[fc("0xe2")]),x?e[fc("0x3d")].isBefore(x[fc("0xbe")]()[fc("0x3d")])?(x[fc("0x13b")](),x=t):t[fc("0x13b")]():x=t}}if(x)return this._setSuggestionRange(x,this[fc("0x139")].createRange(a,c)),x;{const t=(0,e.uid)(),i=this._model.createRange(a,c),s=o.id,x=n?fc("0x90")+n:"deletion",l=this[fc("0x41")]({id:t,type:x,createdAt:new Date,authorId:s,attributes:r});return this._addSuggestionMarker(x,t,s,i),l}}[fc("0x1e")](t,n=fc("0xb"),r={}){const o=this[fc("0x137")][fc("0x48")][fc("0x13c")]("Users").me,i=t[fc("0x10a")]((t=>new s.LiveRange(t[fc("0x3d")],t[fc("0x101")]))),x=new Set;for(const{suggestion:t,meta:e}of this[fc("0x6b")](i,fc("0x9a")))e[fc("0x83")]&&!e.isNextTo&&x[fc("0xd7")](t);for(const e of x)if(e[fc("0x151")]){const o=e[fc("0x174")]();if((!e[fc("0xe2")]||!e.attributes[fc("0x14d")])&&o[fc("0xf6")]((t=>i[fc("0xf4")]((e=>e[fc("0x80")](t,!0)))))&&e[fc("0x120")](),i[fc("0xf6")]((t=>o[fc("0xf4")]((e=>e[fc("0x80")](t,!0)))))){const e=this[fc("0x142")][fc("0xe9")]("deletion",n,fc("0x43"));return this[fc("0xac")]((()=>e(t,null,r))),null}}else{const t=e[fc("0xbe")]();if(i[fc("0xf4")]((e=>e.containsRange(t,!0)))&&e.discard(),i[fc("0xf6")]((e=>t.containsRange(e,!0)))){const t=this[fc("0x142")].getSuggestionCallback(fc("0x86"),n,"accept");return this[fc("0xac")]((()=>t(i,null,r))),null}}const a=this[fc("0x142")][fc("0xe9")](fc("0x86"),n,"join");let c=null;for(const t of this[fc("0x63")]())if(t[fc("0x127")].id==o.id&&t.isInContent&&fc("0x86")==t.type&&t.subType==n&&Ic(t,r)&&(a(t[fc("0x174")](),i)||a(i,t.getRanges())))if(c){if(t.commentThread&&t.commentThread[fc("0x9")])continue;for(const e of t[fc("0x174")]())c[fc("0xab")](e)||c[fc("0x129")](e);t[fc("0x13b")]()}else{c=t;for(const e of i)t.isIntersectingWithRange(e)||t[fc("0x129")](e)}if(c)return c;x.clear();for(const{suggestion:t,meta:e}of this[fc("0x6b")](i,fc("0x86")))e.isOwn&&(this[fc("0x19")]||!e[fc("0xcb")]&&!e.isInsideObject)&&Ic(t,r)&&x[fc("0xd7")](t);for(const t of x){const e=t[fc("0x174")]();if((!r||!r[fc("0x14d")])&&i[fc("0xf6")]((t=>e.some((e=>e.containsRange(t,!0))))))return t;(!t[fc("0xe2")]||!t.attributes[fc("0x14d")])&&e.every((t=>i.some((e=>e[fc("0x80")](t,!0)))))&&t[fc("0x120")]()}const l=(0,e.uid)(),u=o.id,d="deletion:"+n,g=this[fc("0x41")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:r});for(const t of i)t.detach(),t[fc("0x12d")]||fc("0x61")==t.root[fc("0x12c")]||this._addSuggestionMarker(d,l,u,t,Qr[fc("0x14a")]());return g}[fc("0x158")](t,n,r,o,i){if(t[fc("0x12d")])return[];if(fc("0x1a")===this._trackFormatChanges)return[];const s=this[fc("0x137")][fc("0x48")][fc("0x13c")](fc("0xa9")).me.id,x=Array[fc("0x170")](this[fc("0x147")][fc("0x46")]())[fc("0x14")]((e=>fc("0x133")==e[fc("0xa4")]&&e[fc("0x2d")][fc("0x13f")]==n&&e.isIntersectingWithRange(t)));if(fc("0x18")===this[fc("0xec")]){const e=this[fc("0x6b")](t,fc("0x9a"))[fc("0x14")]((({meta:t})=>t[fc("0x83")]&&!t[fc("0x165")]&&!t.isNextTo))[fc("0x10a")]((({suggestion:t})=>t));x[fc("0x9f")](...e)}const a=new Map([[t,r]]);for(const t of x){const e=fc("0x133")==t[fc("0xa4")]?t[fc("0x2d")][fc("0x71")]:void 0,i=t[fc("0xbe")](),s=Array.from(a[fc("0x114")]())[fc("0x7e")]((t=>t[fc("0x100")](i)));if(!s)continue;const x=s[fc("0x8b")](i);this._isBlockAttribute(n)&&fc("0x9a")==t.type&&0!=x[fc("0x9")]||(a.delete(s),x[fc("0x148")]((t=>{a[fc("0x102")](t,r)})),fc("0x9a")!=t[fc("0xa4")]&&e!=o&&a.set(s[fc("0x131")](i),e))}const c=[];for(const[t,r]of a){const x=(0,e.uid)(),a={key:n,oldValue:r,newValue:o};n[fc("0x9")]>37&&console[fc("0x1c")](fc("0xf9"),{key:n});const l=("attribute:"+n+"|"+Tc({newValue:o}))[fc("0x28")](0,60),u=this[fc("0x41")]({id:x,type:l,data:a,createdAt:new Date,authorId:s,attributes:i});c[fc("0x4e")](u),this[fc("0x159")](l,x,s,t)}return c}[fc("0x10d")](t){this[fc("0x47")].add(t)}_registerInlineAttribute(t){this[fc("0x15")].add(t)}_enableDefaultAttributesIntegration(t,e=[],n=[]){this[fc("0x79")](t,((t,...e)=>{this[fc("0x3b")]((()=>{t(...e)}))}));for(const t of e)this[fc("0x8")](t);for(const t of n)this[fc("0x10d")](t)}_setSuggestionRange(t,e){const n=t[fc("0x38")]();this[fc("0x139")].change((t=>{t.updateMarker(n,{range:e})}))}[fc("0x2f")](t){const e=t.id,n=this.editor[fc("0x11")][fc("0x13c")](fc("0x130"));this[fc("0x121")][fc("0x70")](e)||this[fc("0x121")][fc("0x3a")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const r=this._commentsRepository[fc("0xda")](e);r[fc("0x7f")](fc("0x7a")),r[fc("0x7a")]=!1,t[fc("0xe")]=r}[fc("0x32")](t,n,r,o){if(t[fc("0xa4")]!=n||t[fc("0xea")]!=r||t[fc("0x6f")].id!=o)throw this[fc("0x137")][fc("0x128")](fc("0x59")),new e.CKEditorError(fc("0x59"),this)}[fc("0x145")](t,n){const r=t[fc("0xbe")]();if(n[fc("0x98")](r))t.removeMarkers();else if(r.containsRange(n)){const o=this[fc("0x139")][fc("0xb8")](n[fc("0x3d")][fc("0x57")],fc("0x101"));this._setSuggestionRange(t,this[fc("0x139")][fc("0xd2")](r[fc("0x3d")],o));const i=(0,e.uid)(),s=t[fc("0x6f")].id,x=t[fc("0xa4")]+":"+t[fc("0xea")];this[fc("0x41")]({id:i,type:x,createdAt:new Date,authorId:s,data:t[fc("0x2d")],attributes:t.attributes});const a=this[fc("0x139")][fc("0xb8")](n[fc("0x101")].parent,fc("0x39")),c=this[fc("0x139")][fc("0xd2")](a,r.end);this[fc("0x159")](x,i,s,c)}else if(r[fc("0x103")](n.start)){const e=this[fc("0x139")][fc("0xb8")](n[fc("0x3d")][fc("0x57")],fc("0x101"));this[fc("0xb1")](t,this[fc("0x139")][fc("0xd2")](r.start,e))}else{const e=this[fc("0x139")][fc("0xb8")](n.end.parent,fc("0x39"));this[fc("0xb1")](t,this[fc("0x139")][fc("0xd2")](e,r[fc("0x101")]))}}_rangeIsInLocalUserInsertion(t){for(const{suggestion:e,meta:n}of this[fc("0x6b")](t,fc("0x9a"))){if(!n[fc("0x83")])continue;const r=e[fc("0x174")]();for(const e of r)if(!t[fc("0x8b")](e)[fc("0x9")])return!0}return!1}[fc("0x15f")](t){const n=this.editor[fc("0x48")][fc("0x13c")](fc("0xa9")).getUser(t);if(!n)throw new e.CKEditorError(fc("0x34"),this);return n}_getExternalAuthor(t){const e=this[fc("0x137")][fc("0x48")][fc("0x13c")](fc("0xa9")),n=(0,i.hashObject)("external:"+t);return e.getUser(n)||e[fc("0x108")]({id:n,name:t})}[fc("0xba")](t,e,n,r,o){const i=this[fc("0x15f")](r),s=this[fc("0x142")][fc("0x2c")](t,e,n,i,o,(t=>this[fc("0x45")](n,{attributes:t})));return this[fc("0x109")](s,fc("0x43"),(()=>{this[fc("0x45")](n,{state:"accepted"})}),{priority:fc("0x26")}),this[fc("0x109")](s,fc("0x120"),(()=>{this[fc("0x45")](n,{state:"rejected"})}),{priority:fc("0x26")}),this._suggestions.set(n,s),this[fc("0x5")][fc("0x102")](s,fc("0x149")),s}[fc("0xc")](t){const e=t.split(":");return{group:e[0],type:e[1],subType:e[fc("0x9")]>=5?e[2]:null,id:e.length<5?e[2]:e[3],authorId:e[fc("0x9")]<5?e[3]:e[4],markerCount:6==e[fc("0x9")]?e[5]:null}}[fc("0x143")](t,n,r){const o=t[fc("0xbe")](),i=o[fc("0x3d")],s=o[fc("0x101")];this[fc("0xb1")](t,this[fc("0x139")][fc("0xd2")](i,n));const x=(0,e.uid)(),a=t[fc("0x6f")].id,c=t.type+(t[fc("0xea")]?":"+t[fc("0xea")]:"");this[fc("0x41")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t.attributes,data:t[fc("0x2d")]});const l=Sc(t);("formatBlock"==t[fc("0xa4")]||l&&this[fc("0x7")](l))&&(r=this[fc("0x139")].createPositionBefore(r[fc("0x50")])),this[fc("0x159")](c,x,a,this[fc("0x139")][fc("0xd2")](r,s))}[fc("0x6b")](t,e=null){const n=[],r=this[fc("0x137")][fc("0x48")].get("Users").me;Array.isArray(t)||(t=[t]);for(const o of this[fc("0x63")]()){if(!o.isInContent)continue;if(e&&o[fc("0xa4")]!=e)continue;let i=!1;for(const e of o[fc("0x174")]()){for(const s of t){const t=s[fc("0x3d")][fc("0x98")](e.end)||s[fc("0x101")][fc("0x98")](e.start);if(t||s[fc("0x131")](e)){const x=s[fc("0x80")](e)&&bc(this[fc("0x139")][fc("0xc8")],e.start,s),a=e[fc("0x80")](s)&&bc(this._model[fc("0xc8")],s[fc("0x3d")],e);n[fc("0x4e")]({suggestion:o,meta:{isOwn:r==o.author,isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),i=!0;break}}if(i)break}}return n}[fc("0x159")](t,e,n,r,o){this[fc("0x139")].change((i=>{let s=fc("0x51")+t+":"+e+":"+n;o&&(s=s+":"+o),i[fc("0x8e")](s,{range:r,usingOperation:!0,affectsData:!0})}))}[fc("0x62")](t){const e=t.previous,n=t.next;t[fc("0x6c")]=null,t[fc("0xa5")]=null,null!=e&&(e[fc("0xa5")]=n),null!=n&&(n[fc("0x6c")]=e),fc("0xe3")==this[fc("0x5")].get(t)&&(this[fc("0x5")][fc("0x102")](t,fc("0xce")),this[fc("0x8c")](fc("0x40"),t,e,n))}[fc("0x41")](t){const n=t.id,r=this.addSuggestionData(t);if(this[fc("0x12f")]&&this._adapter[fc("0x73")]){const o=this[fc("0x137")][fc("0x48")][fc("0x13c")](fc("0x72")),i=r[fc("0x126")],s=r[fc("0xea")]?r[fc("0xa4")]+":"+r.subType:r.type,x=this.editor[fc("0x10")],a=o[fc("0xd7")](Yr(x,fc("0x36"))),c={id:n,type:s,hasComments:i,data:t.data||null,originalSuggestionId:t[fc("0xf1")]||null,attributes:r[fc("0xe2")]};this._adapter[fc("0x73")](c).then((t=>{r[fc("0x7c")]=!0,o[fc("0x164")](a),t&&t.createdAt&&(this[fc("0x147")].get(n)[fc("0x168")]=t[fc("0x168")])})).catch((t=>{throw(0,e.logWarning)(fc("0x8f")),this[fc("0x137")].model[fc("0x0")]({isUndoable:!1},(()=>{r[fc("0x120")]()})),r[fc("0x132")](),this[fc("0x147")][fc("0xe7")](r.id),this[fc("0x5")][fc("0xe7")](r),t}))}return r}[fc("0x7")](t){return this[fc("0x47")][fc("0x123")](t)}_updateSuggestionData(t,e){const n=this[fc("0x137")][fc("0x48")][fc("0x13c")]("PendingActions"),r=this[fc("0xb3")](t);if(this[fc("0x12f")]&&this[fc("0x12f")][fc("0x52")])if(r[fc("0x7c")]){const r=n[fc("0xd7")](Yr(this[fc("0x137")][fc("0x10")],fc("0x36")));this._adapter[fc("0x52")](t,e)[fc("0xfb")]((()=>{n[fc("0x164")](r)}))}else r.on("change:_saved",(()=>{this[fc("0x45")](t,e)}))}[fc("0xff")](t){if(!this._adapter||!this._adapter[fc("0xb3")])throw new e.CKEditorError(fc("0x23"),this);return this[fc("0x12f")][fc("0xb3")](t)}_handleNewSuggestionMarker(t){const{id:e,type:n,subType:r,authorId:o}=this[fc("0xc")](t),i=this._suggestions[fc("0x13c")](e)||this[fc("0xba")](n,r,e,o,{});switch(this[fc("0x32")](i,n,r,o),this[fc("0x5")][fc("0x13c")](i)){case fc("0x149"):this[fc("0xff")](e).then((t=>{let n=Promise.resolve();t[fc("0x126")]&&(n=this[fc("0x121")][fc("0x160")]({channelId:this[fc("0x137")][fc("0x11")][fc("0x13c")](fc("0x130")),threadId:e})),n[fc("0xfb")]((()=>{this[fc("0x1b")](t)[fc("0x7c")]=!0}))})),this[fc("0x5")][fc("0x102")](i,fc("0xf2"));break;case fc("0xce"):this._updateSuggestionData(e,{state:fc("0x5d")});case fc("0xfc"):this[fc("0x5")][fc("0x102")](i,fc("0xe3")),this.fire(fc("0xc0"),i);break;case fc("0xe3"):this[fc("0x8c")](fc("0x33"),i)}return i[fc("0xdc")](t),i}_refreshSuggestionsChain(t){const e=Array.from(t),n=e.filter((t=>fc("0x133")==t[fc("0xa4")]));this[fc("0x78")](n);const r=e[fc("0x14")]((t=>!t[fc("0x151")]&&fc("0x133")!=t.type)),o=this.getSuggestions({skipNotAttached:!0})[fc("0x14")]((t=>!t[fc("0x151")]&&fc("0x133")!=t[fc("0xa4")])),i=o[fc("0x14")]((e=>!t.has(e))),s=new Map(o.map((t=>[t,this._suggestionFactory[fc("0xe9")](t.type,t[fc("0xea")],fc("0x68"))]))),x=new Map(o[fc("0x10a")]((t=>[t,t[fc("0xbe")]()]))),a=new Set,c=new Set;for(let t=0;t<r[fc("0x9")];t++)u(r[t],r,t+1);for(let t=0;t<r[fc("0x9")];t++)u(r[t],i,0);const l=new Set;for(let t=0;t<r.length;t++){const e=r[t];!c[fc("0x123")](e)&&e.previous&&(l[fc("0xd7")](e[fc("0x6c")]),e.previous[fc("0xa5")]===e&&(e[fc("0x6c")][fc("0xa5")]=null),e[fc("0x6c")]=null),!a[fc("0x123")](e)&&e[fc("0xa5")]&&(l[fc("0xd7")](e[fc("0xa5")]),e[fc("0xa5")][fc("0x6c")]===e&&(e[fc("0xa5")][fc("0x6c")]=null),e[fc("0xa5")]=null)}function u(t,e,n){for(let r=n;r<e[fc("0x9")];r++){const n=d(t,e[r]);n&&(n[0].next=n[1],n[1].previous=n[0],a.add(n[0]),c[fc("0xd7")](n[1]))}}function d(t,e){if(t[fc("0x127")].id!==e[fc("0x127")].id)return null;const n=s[fc("0x13c")](t)(t,e,x[fc("0x13c")](t),x[fc("0x13c")](e));return n&&s.get(e)(t,e,x.get(t),x[fc("0x13c")](e))?n[1][fc("0xe")]&&n[1][fc("0xe")][fc("0x9")]?null:n:null}l[fc("0x9b")]&&this[fc("0xb2")](l)}[fc("0x78")](t){if(0==t[fc("0x9")])return;const e=this[fc("0x63")]({skipNotAttached:!0}).filter((t=>"attribute"==t[fc("0xa4")]&&t._isDataLoaded)),n=[],r=new Map;for(const t of e){const e=(0,i.hashObject)(t[fc("0xe2")]);r[fc("0x123")](e)||(r.set(e,n[fc("0x9")]),n[fc("0x4e")]([]));const o=r[fc("0x13c")](e);n[o][fc("0x4e")](t)}!function(){n[fc("0x104")](((t,e)=>{const n=t[0].createdAt,r=e[0][fc("0x168")];return n==r?t[0][fc("0xe2")][fc("0x81")]<e[0][fc("0xe2")].groupId?-1:1:n<r?-1:1}));for(const t of n)t[fc("0x104")](((t,e)=>t.id<e.id?-1:1))}();for(let t=0;t<n[fc("0x9")];t++){if(0==n[t][fc("0x9")])continue;const e=[];for(let r=t+1;r<n[fc("0x9")];r++)0!=n[r][fc("0x9")]&&o(n[t],n[r])&&e[fc("0x4e")](r);for(const r of e)n[t]=n[t][fc("0x15a")](n[r]),n[r]=[]}for(const t of n)for(let e=0;e<t[fc("0x9")];e++)t[e][fc("0xa5")]=t[e+1]||null;for(const t of n)for(let e=0;e<t[fc("0x9")];e++)t[e][fc("0x6c")]=t[e-1]||null;function o(t,e){if(t[0].author!==e[0][fc("0x127")])return!1;if(n=t[0],r=e[0],(n[fc("0x126")]||r.hasComments)&&(n.hasComments&&r[fc("0x126")]||!(n[fc("0x126")]&&r[fc("0x168")]<n[fc("0xe")][fc("0xdf")][fc("0x13c")](0)[fc("0x168")]||r[fc("0x126")]&&n[fc("0x168")]<r[fc("0xe")][fc("0xdf")][fc("0x13c")](0).createdAt)))return!1;var n,r;const o=lc(t[0][fc("0xe2")],fc("0x81")),i=lc(e[0][fc("0xe2")],fc("0x81"));return!!jr(o,i)&&(!!t[fc("0xf6")]((t=>e[fc("0xf4")]((e=>t[fc("0xbe")]()[fc("0x98")](e.getFirstRange())))))&&e[fc("0xf6")]((e=>t.some((t=>e[fc("0xbe")]().isEqual(t[fc("0xbe")]()))))))}}[fc("0xb0")](t){const e=Array[fc("0x170")](t),n=this[fc("0x63")]({skipNotAttached:!0}),r=n.filter((e=>!t[fc("0x123")](e))),o=new Map(e[fc("0x10a")]((t=>[t,this[fc("0x142")][fc("0xe9")](t[fc("0xa4")],t[fc("0xea")],fc("0xc2"))]))),i=new Map(n[fc("0x10a")]((t=>[t,t.getRanges()])));for(let t=0;t<e[fc("0x9")];t++)if(s(this,e[t],e,t+1))return!0;for(let t=0;t<e.length;t++)if(s(this,e[t],r,0))return!0;return!1;function s(t,e,n,r){for(let s=r;s<n[fc("0x9")];s++){const r=n[s];if(r.type!==e[fc("0xa4")]||r[fc("0x127")].id!==e[fc("0x127")].id||r.subType!==e[fc("0xea")])continue;if(!Ac(e,r))continue;if(fc("0x133")==e[fc("0xa4")]&&e[fc("0x2d")][fc("0x71")]!=r[fc("0x2d")].oldValue)continue;if(fc("0x133")==e[fc("0xa4")]&&t[fc("0x7")](e.data[fc("0x13f")]))continue;if("formatBlock"==e[fc("0xa4")]){const n=t[fc("0x137")][fc("0xc3")],r=e[fc("0x16b")]();if(r&&(n[fc("0xc8")].isObject(r)||n.schema[fc("0x16e")](r)))continue}const x=o[fc("0x13c")](e),a=i[fc("0x13c")](e),c=i[fc("0x13c")](r),l=e[fc("0xe")]&&e.commentThread[fc("0x9")],u=r[fc("0xe")]&&r[fc("0xe")][fc("0x9")];if(!l&&x(c,a))return t[fc("0x15e")](r,e),i[fc("0xe7")](e),!0;if(!u&&x(a,c))return t[fc("0x15e")](e,r),i[fc("0xe7")](r),!0}return!1}}[fc("0x15e")](t,e){if(t[fc("0x151")])for(const n of e[fc("0x174")]())t[fc("0x129")](n);else{const n=e[fc("0xbe")]()[fc("0x101")];this[fc("0xb1")](t,this[fc("0x139")].createRange(t[fc("0xbe")]()[fc("0x3d")],n))}e[fc("0x13b")]()}_getMarkerAnnouncementText(t,e){const n=t[fc("0x118")](fc("0x53"))||t[fc("0x118")](fc("0x133"))?fc("0xf8"):t[fc("0x13")]();return Yr(this[fc("0x137")][fc("0x10")],e+"_"+n+fc("0xe5"))}[fc("0x11c")](){const t=this[fc("0x137")];(0,i.surroundingMarkersDetector)(this._model,(({left:e,entered:n})=>{const r=[];for(const t of e){const{group:e,type:n}=this[fc("0xc")](t[fc("0x66")]);if("suggestion"===e){r.push(this[fc("0xe0")](n,fc("0x13e")));break}}for(const t of n){const{group:e,type:n}=this[fc("0xc")](t.name);if("suggestion"===e){r[fc("0x4e")](this._getMarkerAnnouncementText(n,"ENTER"));break}}r[fc("0x9")]&&t.ui[fc("0xbd")][fc("0x84")]("trackChanges",r[fc("0xc2")](" "))}))}[fc("0xfd")](t){if(null!==this[fc("0x74")])return!1;const e=this[fc("0x137")],n=e[fc("0xc3")].document[fc("0xa7")][fc("0x9c")]();if(0==n[fc("0x9")])return!1;const r=[],o=n[fc("0x14")]((t=>fc("0x133")==t[fc("0xa4")])),i=n.filter((t=>"insert"==t[fc("0xa4")]&&fc("0x117")!=t.name)),s=n[fc("0x14")]((t=>fc("0x164")==t[fc("0xa4")]&&fc("0x117")!=t[fc("0x66")]));for(const t of o)r[fc("0x4e")]({key:t.attributeKey,newValue:t.attributeNewValue,oldValue:t[fc("0xc6")],range:(x=t.range,null==x.end[fc("0x57")]&&x[fc("0x101")][fc("0x50")]==x.start.nodeAfter?Cc(x[fc("0x3d")].nodeAfter,e[fc("0xc3")]):x)});var x;for(const t of i){const n=s[fc("0x7e")]((e=>e[fc("0xd5")][fc("0x98")](t[fc("0xd5")])));n&&r[fc("0x4e")]({key:fc("0x69"),newValue:t[fc("0x66")],oldValue:n[fc("0x66")],range:e[fc("0xc3")][fc("0xd6")](t[fc("0xd5")][fc("0x135")])})}return 0!=r[fc("0x9")]&&this[fc("0xbf")](t,r)}_processAttributeSuggestions(t){let e=!1;const n=this.editor[fc("0xc3")][fc("0x4")][fc("0xa7")][fc("0x14b")]()[fc("0x14")]((t=>t[fc("0x2d")][fc("0x12")]&&t.name[fc("0x118")]("suggestion:attribute:")));for(const r of n){const{subType:n,id:o}=this[fc("0xc")](r[fc("0x66")]),i=n.split("|")[0];for(const n of this[fc("0x63")]({skipNotAttached:!0}))n.id!=o&&fc("0x133")==n.type&&n[fc("0x2d")]&&n.data[fc("0x13f")]==i&&n[fc("0xbe")]().isIntersecting(r[fc("0x2d")].newRange)&&(this[fc("0x4a")](n,r.data.newRange,t),e=!0)}return e}[fc("0x3b")](t){if(null!==this[fc("0x74")])return void t();const n=this[fc("0x137")];this._recordAttributeSuggestionsFromVersion=n[fc("0xc3")][fc("0x4")][fc("0x122")],t();const r=new Map;for(const t of n[fc("0xc3")][fc("0x4")][fc("0x65")][fc("0x4d")](this[fc("0x74")]))if([fc("0x111"),"addAttribute",fc("0xf"),fc("0xa")][fc("0xf0")](t.type)){const e=t[fc("0xdb")],n=r[fc("0x13c")](e)||[];n[fc("0x4e")](t),r[fc("0x102")](e,n)}this[fc("0x74")]=null;for(const[t,o]of r){const r=(0,e.uid)();n.model[fc("0x0")](t,(t=>{const e=[];for(const t of o){let o,i,s,x;if(fc("0x111")==t[fc("0xa4")]){const e=t;o=Cc(e[fc("0xd5")].nodeAfter,n[fc("0xc3")]),i=fc("0x69"),s=e[fc("0x31")],x=e.oldName}else{const e=t,r=this._isBlockAttribute(e[fc("0x13f")]),a=this[fc("0x15")][fc("0x123")](e.key);if(!r&&!a)continue;o=r?Cc(e.range.start[fc("0x135")],n.model):e[fc("0x107")],i=e.key,s="removeAttribute"==t[fc("0xa4")]?void 0:e[fc("0xee")],x=e[fc("0x71")]}this[fc("0x158")](o,i,x,s,{groupId:r}),e[fc("0x4e")]({range:o,key:i,newValue:s,oldValue:x})}this[fc("0xbf")](t,e)}))}}[fc("0xbf")](t,e){if(0==e[fc("0x9")])return!1;let n=!1;for(const r of e){const e=this._findSuggestions(r[fc("0x107")],fc("0x133")).filter((t=>!t[fc("0xbb")][fc("0xa2")]))[fc("0x10a")]((t=>t[fc("0x5f")])),o=(0,i.hashObject)({newValue:r.newValue});e.filter((t=>{const[e,n]=t.subType.split("|");return e==r[fc("0x13f")]&&n!=o}))[fc("0x148")]((e=>{this[fc("0x4a")](e,r.range,t),n=!0}))}return n}[fc("0x4a")](t,e,n){const r=t[fc("0xbe")]()[fc("0x8b")](e);0!==r[fc("0x9")]?1!==r[fc("0x9")]?this[fc("0x143")](t,e.start,e.end):this[fc("0xb1")](t,r[0]):n[fc("0xb4")](t.getFirstMarker())}}class pc{constructor(t){this[fc("0x115")]=t,this[fc("0x139")]=t[fc("0xc3")],this[fc("0x10c")]=new Map,this._defaultCallbacks=new Map,this[fc("0x2e")]()}[fc("0x2c")](t,e,n,r,o,i){return new Qr(this._model,{type:t,subType:e,id:n,author:r,creator:r,attributes:o,onAttributesChange:i,onAccept:(...n)=>this.getSuggestionCallback(t,e,fc("0x43"))(...n),onDiscard:(...n)=>this[fc("0xe9")](t,e,fc("0x120"))(...n)})}[fc("0xb9")](t,e,n,r){const o=t+":"+e+":"+n;this._customCallbacks[fc("0x102")](o,r)}[fc("0xe9")](t,e,n){const r=t+":"+e+":"+n;return this[fc("0x10c")].get(r)||this._defaultCallbacks[fc("0x13c")](t+":"+n)}[fc("0x2e")](){const t=()=>!1,e=t=>{t[fc("0x104")](((t,e)=>t[fc("0x3d")][fc("0x6")](e.start)?1:-1)),this[fc("0x139")][fc("0x4b")]((e=>{for(const n of t){let t;t=n[fc("0x101")][fc("0x16")]&&n[fc("0x101")][fc("0x50")]==n[fc("0x3d")][fc("0x135")]?e[fc("0x16c")](n.start[fc("0x135")],"on"):e[fc("0x16c")](n),this[fc("0x139")].deleteContent(t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{e&&this[fc("0x139")].change((n=>{const{commandName:r,commandParams:o=[]}=e,i=t[fc("0x10a")]((t=>(Ec(t)&&(t=this[fc("0x139")][fc("0xd2")](t[fc("0x101")])),t)))[fc("0x14")]((t=>fc("0x61")!==t[fc("0x105")][fc("0x12c")]));if(i.length<1)return;const x=Array.from(this[fc("0x139")][fc("0x4")][fc("0x172")][fc("0x174")]())[fc("0x10a")]((t=>s.LiveRange.fromRange(t)));n[fc("0x49")](i);for(const t of this._editor[fc("0x4f")][fc("0x4f")]())t[fc("0x12e")]();o[fc("0x4e")]({forceDefaultExecution:!0}),this._editor.execute(r,...o);const a=x[fc("0x14")]((t=>"$graveyard"!=t[fc("0x105")][fc("0x12c")]));a[fc("0x9")]>0&&n[fc("0x49")](a);for(const t of x)t[fc("0xe6")]()}))},r=(t,e)=>1==t[fc("0x9")]&&1==e[fc("0x9")]&&t[0].end[fc("0x98")](e[0][fc("0x3d")]),o=(t,e,n,r)=>kc(t,e,n,r,this[fc("0x139")])?[t,e]:kc(e,t,r,n,this[fc("0x139")])?[e,t]:null;this[fc("0x82")].set("insertion:accept",t),this[fc("0x82")][fc("0x102")](fc("0x110"),e),this[fc("0x82")].set("insertion:join",r),this._defaultCallbacks[fc("0x102")](fc("0x3c"),o),this._defaultCallbacks[fc("0x102")]("deletion:accept",e),this[fc("0x82")][fc("0x102")](fc("0x166"),t),this._defaultCallbacks[fc("0x102")]("deletion:join",r),this._defaultCallbacks.set("deletion:chain",o),this[fc("0x82")].set("formatInline:accept",n),this[fc("0x82")][fc("0x102")](fc("0x25"),t),this[fc("0x82")][fc("0x102")]("formatInline:join",r),this[fc("0x82")][fc("0x102")](fc("0xa0"),t),this[fc("0x82")][fc("0x102")](fc("0x1"),n),this._defaultCallbacks[fc("0x102")]("formatBlock:discard",t),this[fc("0x82")][fc("0x102")](fc("0x44"),r),this._defaultCallbacks[fc("0x102")](fc("0xa3"),t),this[fc("0x82")][fc("0x102")](fc("0xb5"),t),this[fc("0x82")][fc("0x102")]("attribute:discard",((t,e)=>{if(!e)return;const n=this._editor[fc("0x48")][fc("0x13c")](hc);this[fc("0x139")].change((r=>{if(fc("0x69")==e[fc("0x13f")])for(const n of t){const t=n[fc("0x3d")].nodeAfter,o=e.oldValue;r[fc("0x111")](t,o)}else if(n._isBlockAttribute(e.key))for(const n of t)void 0!==e[fc("0x71")]?r[fc("0x95")](e[fc("0x13f")],e[fc("0x71")],n.start[fc("0x135")]):r[fc("0xf")](e[fc("0x13f")],n[fc("0x3d")][fc("0x135")]);else for(const n of t)e[fc("0x71")]?r[fc("0x95")](e[fc("0x13f")],e[fc("0x71")],n):r[fc("0xf")](e[fc("0x13f")],n)}))})),this[fc("0x82")][fc("0x102")](fc("0x88"),r)}}function bc(t,e,n){for(const r of e[fc("0x50")][fc("0x15d")]({includeSelf:!0,parentFirst:!0})){if(r.root==r)return!1;if(!n.containsItem(r))return!1;if(t[fc("0x22")](r)||t[fc("0x16e")](r))return!0}return!1}function Ec(t){return t[fc("0x101")].parent==t.start[fc("0x135")]&&t.end[fc("0xd8")]}function _c(t,e,n,r){const o=t=>!t[fc("0xa8")].is("$textProxy")&&!r[fc("0x22")](t[fc("0xa8")]),i=t[fc("0x3d")][fc("0x9d")](o),s=t[fc("0x101")][fc("0x9d")](o,{direction:fc("0xef")});return!(t[fc("0x3d")][fc("0x98")](i)&&t[fc("0x101")][fc("0x98")](s)||(i[fc("0x6")](s)?n[fc("0x3")](e,{range:n[fc("0xd2")](i,s)}):n[fc("0xb4")](e),0))}function Tc(t){return(0,i.hashObject)(t)}function yc(t){const e=t[fc("0x3d")][fc("0x135")];return e&&e.is(fc("0x125"))}function Cc(t,e){const n=e.schema.isObject(t)||e[fc("0xc8")].isSelectable(t);return e[fc("0xd2")](e.createPositionAt(t,"before"),n?e[fc("0x3f")](t):e[fc("0xb8")](t,fc("0x101")))}function kc(t,e,n,r,o){if(!Ac(t,e))return!1;if(n[fc("0x101")][fc("0x98")](r[fc("0x3d")]))return!0;if(t[fc("0xa4")]!=e[fc("0xa4")])return!1;if(!n[fc("0x101")][fc("0x8d")](r.start))return!1;const i=o[fc("0xd2")](n[fc("0x101")],r[fc("0x3d")])[fc("0xbc")]();for(const t of i)if([fc("0xb7"),"elementEnd"][fc("0xf0")](t[fc("0xa4")])&&o[fc("0xc8")][fc("0x16e")](t[fc("0xa8")]))return!1;return!0}function Ac(t,e){return!(!t._isDataLoaded||!e[fc("0x96")])&&jr(t[fc("0xe2")],e[fc("0xe2")])}function Ic(t,e){const n=Rc(t[fc("0xe2")]),r=Rc(e);if(!t[fc("0x96")])return!1;for(const t of Object[fc("0x114")](r))if(!jr(n[t],r[t]))return!1;return!0}function Rc(t){const e=Object.assign({},t);return delete e.skipNestingCheck,delete e[fc("0x16f")],e}function Sc(t){return"attribute"==t.type?t[fc("0xea")].split("|")[0]:null}const vc=["change:isDirty","isEnabled","canAccept","execute","discardSuggestion","_discardCommand","unbind","view","model","commentThreadController","_pendingAction","destroy","get","canEditAt","add","bind","acceptSuggestion","PENDING_ACTION_SUGGESTION","canDiscard","locale","listenTo","_setPendingAction","_acceptCommand","plugins","isDirty","remove","getRanges","_editor","commands","stopListening"];var Nc,Lc;Nc=vc,Lc=131,function(t){for(;--t;)Nc.push(Nc.shift())}(++Lc);const Mc=function(t,e){return vc[t-=0]};class wc extends((0,e.ObservableMixin)()){constructor(t,e,n,r){super(),this.model=e,this[Mc("0x1a")]=n,this[Mc("0x1c")]=r,this[Mc("0x10")]=t,this._acceptCommand=t[Mc("0x11")].get("acceptSuggestion"),this[Mc("0x18")]=t.commands[Mc("0x1")](Mc("0x17")),this.view[Mc("0x4")](Mc("0x14")).to(this[Mc("0xb")],this[Mc("0x18")],((t,e)=>t||e)),this[Mc("0x1a")][Mc("0x4")](Mc("0x15")).to(this[Mc("0xb")],Mc("0x14"),(t=>t&&this[Mc("0x10")][Mc("0x1b")].canEditAt(e[Mc("0xf")]()))),this.view.bind(Mc("0x7")).to(this[Mc("0x18")],Mc("0x14"),(t=>t&&this._editor.model[Mc("0x2")](e.getRanges()))),this[Mc("0x1d")]=null,n[Mc("0xd")]&&this._setPendingAction(),this.listenTo(n,Mc("0x5"),(()=>this[Mc("0x5")]())),this.listenTo(n,"discardSuggestion",(()=>this[Mc("0x17")]())),this[Mc("0x9")](n,Mc("0x13"),(()=>{n.isDirty?this[Mc("0xa")]():this._removePendingAction()}))}acceptSuggestion(){this[Mc("0xb")].execute(this[Mc("0x1b")].id)}[Mc("0x17")](){this[Mc("0x18")][Mc("0x16")](this.model.id)}destroy(){this[Mc("0x1a")][Mc("0x19")]("isEnabled"),this[Mc("0x1a")][Mc("0x19")](Mc("0x15")),this.view[Mc("0x19")]("canDiscard"),this[Mc("0x12")](),this[Mc("0x1c")][Mc("0x0")](),this[Mc("0x1d")]&&this._removePendingAction()}[Mc("0xa")](){const t=Yr(this[Mc("0x10")][Mc("0x8")],Mc("0x6"));this[Mc("0x1d")]=this._editor[Mc("0xc")].get("PendingActions")[Mc("0x3")](t)}_removePendingAction(){null!==this._pendingAction&&this[Mc("0x10")].plugins[Mc("0x1")]("PendingActions")[Mc("0xe")](this[Mc("0x1d")]),this[Mc("0x1d")]=null}}const Oc=["addComment","isActive","set","_model","isReadOnly","updateComment","length","CommentView","commentThread","descriptionParts","_localUser","canDiscard","commentsListView","setData","editorConfig","disabledSubmit","focus","submit","_createCommentViews","bind","delegate","isEnabled","commentThreadInputView","hasDirtyComment","_config","locale","_createCommentThreadInputView","isDirty","destroy","assign","value","canAccept","cancel","element","authoredAt"];var Fc,Dc;Fc=Oc,Dc=340,function(t){for(;--t;)Fc.push(Fc.shift())}(++Dc);const Bc=function(t,e){return Oc[t-=0]};class Pc extends o.View{constructor(t,e,n,r){super(t),this.commentsListView=null,this[Bc("0x20")]=null,this[Bc("0xc")]("isActive",!1),this[Bc("0xc")](Bc("0x9"),e[Bc("0x9")]),this.bind(Bc("0x9")).to(e),this[Bc("0xc")](Bc("0x13"),[]),this[Bc("0xc")](Bc("0x2"),!1),this[Bc("0xc")](Bc("0x1f"),!1),this[Bc("0xc")](Bc("0x6"),!1),this[Bc("0xc")](Bc("0x15"),!1),this._model=e,this[Bc("0x14")]=n,this[Bc("0x22")]=r,r.disableComments?this[Bc("0xc")](Bc("0x10"),1):this[Bc("0x1c")]()}focus(){this[Bc("0x8")][Bc("0x1a")]()}[Bc("0x3")](){this[Bc("0x16")]&&this.commentsListView[Bc("0x3")](),this[Bc("0x20")]&&this[Bc("0x20")][Bc("0x3")](),super[Bc("0x3")]()}_createCommentViews(){const{CommentsListView:t}=this._config;this[Bc("0x16")]=new t(this.locale,this[Bc("0xd")][Bc("0x12")],Object[Bc("0x4")]({CommentView:this[Bc("0x22")][Bc("0x11")]},this[Bc("0x22")])),this[Bc("0x16")][Bc("0x1e")]("removeComment").to(this),this.commentsListView.delegate(Bc("0xf")).to(this),this[Bc("0x16")][Bc("0x1d")](Bc("0xb")).to(this),this[Bc("0xc")](Bc("0x10"),this[Bc("0x16")][Bc("0x10")]+1),this.bind("length").to(this[Bc("0x16")],Bc("0x10"),(t=>t+1)),this[Bc("0x20")]=this._createCommentThreadInputView(),this.on("removeComment",(()=>this.focus())),this[Bc("0x1d")](Bc("0x2")).to(this[Bc("0x16")],Bc("0x21"),this.commentThreadInputView.commentInputView,"value",((t,e)=>t||!!e))}[Bc("0x1")](){const{CommentThreadInputView:t}=this[Bc("0x22")],e=new t(this[Bc("0x0")],this._localUser,this[Bc("0x22")][Bc("0x18")]),n=e.commentInputView;return e[Bc("0x1d")]("showInput").to(this,Bc("0xb"),this._model[Bc("0x12")],Bc("0xe"),n,Bc("0x5"),((t,e,n)=>!!n||t&&!e)),n.on(Bc("0x1b"),((t,e)=>{this.fire(Bc("0xa"),e),n.editor[Bc("0x17")]("")})),n.on(Bc("0x7"),(()=>this[Bc("0x1a")]())),n[Bc("0x1d")](Bc("0x19")).to(this._model[Bc("0x12")],Bc("0xe")),e}}const Uc=["render","ck-annotation__info","_config","type","userView","_model","ck-suggestion-wrapper--active","_createButton","delegate","innerText","color","ck-suggestion__actions","commentThread","name","discardButton","EXTERNAL_SUGGESTION","ck-suggestion--discard","content","ck-comment__info-time","canDiscard","setTemplate","push","editorDestroyed","isEnabled","ck-comment__external","ck-suggestion__main","commentsListView","ck-suggestion--accept","value","set","_descriptionElement","ck-suggestion__user","attributes","@external","editorReady","</span>","canAccept",'<span class="ck-suggestion-type">','<span class="ck-suggestion-color" style="background-color: ',"bind","importWord","commentThreadInputView","source","descriptionParts","cancel","extendTemplate","getTemplate","creator","acceptButton","acceptSuggestion","div","bindTemplate","ck-suggestion__info-name","execute","ck-annotation__actions","Discard suggestion","ck-annotation","isExternal","getExternalSuggestionNote","innerHTML","disableComments","ck-suggestion-wrapper","description","ck-annotation__info-name","createElement","ck-suggestion","element","locale","</p>","querySelector","EXTERNAL_IMPORT_WORD_SUGGESTION",'" title="',"span","children"];var jc,Gc;jc=Uc,Gc=238,function(t){for(;--t;)jc.push(jc.shift())}(++Gc);const Vc=function(t,e){return Uc[t-=0]};class Hc extends Pc{constructor(e,n,r,o){super(e,n,r,o),this[Vc("0xd")]("type",""),this[Vc("0x17")](Vc("0x3d")).to(this,Vc("0x1b"),(t=>t&&t[0]?t[0][Vc("0x3d")]:"")),this[Vc("0x17")](Vc("0x2e")).to(this,Vc("0x1b"),this,"isActive",((t,e)=>{let n="";for(const e of t)n+="<p>"+zc(e[Vc("0x1")],e[Vc("0x44")])+Vc("0x34");return e?n:(0,i.trimHtml)(n,{limit:140})})),this[Vc("0xe")]=null,this[Vc("0x20")]=this._createButton(Yr(e,"Accept suggestion"),t.icons.check,Vc("0xb"),Vc("0x21"),"sw"),this[Vc("0x20")][Vc("0x17")](Vc("0x7")).to(this,Vc("0x14")),this.discardButton=this._createButton(Yr(e,Vc("0x27")),t.icons[Vc("0x1c")],Vc("0x0"),"discardSuggestion","sw"),this[Vc("0x48")][Vc("0x17")](Vc("0x7")).to(this,Vc("0x3")),this.userView=new i.UserView(e,this[Vc("0x3f")].author,this.getUserViewNotificationText()),this[Vc("0x3e")][Vc("0x1d")]({attributes:{class:[Vc("0xf"),"ck-annotation__user"]}}),this[Vc("0x4")](this.getTemplate())}[Vc("0x1e")](){const t=this[Vc("0x23")],e=[{tag:"div",attributes:{class:["ck-suggestion__info",Vc("0x3b")]},children:[{tag:"span",children:[{text:this.userView.name}],attributes:{class:[Vc("0x24"),Vc("0x2f")]}},{tag:"time",attributes:{datetime:t.to("authoredAt"),class:[Vc("0x2"),"ck-annotation__info-time"]},children:[{text:t.to("authoredAt",(t=>this[Vc("0x3c")].formatDateTime(t)))}]}]},{tag:Vc("0x22"),attributes:{class:[Vc("0x45"),Vc("0x26")]},children:[this[Vc("0x20")],this.discardButton]},{tag:"div",attributes:{class:["ck-annotation__content-wrapper"]}}];this[Vc("0x3f")][Vc("0x29")]&&e[Vc("0x5")]({tag:Vc("0x22"),attributes:{class:[Vc("0x8")]},children:[{text:this[Vc("0x2a")]()}]});const n={tag:Vc("0x22"),attributes:{class:[Vc("0x2d"),t.if("isActive",Vc("0x40")),t.to(Vc("0x3d"),(t=>"ck-suggestion-"+t)),this[Vc("0x3c")][Vc("0x2c")]&&"ck-suggestion--disabled-comments"],"data-suggestion-id":this._model.id,"data-thread-id":this._model[Vc("0x46")].id,"data-author-id":this[Vc("0x3f")].author.id,tabindex:-1},children:[{tag:"div",attributes:{class:[Vc("0x31"),Vc("0x28")]},children:[this[Vc("0x3e")],{tag:Vc("0x22"),attributes:{class:[Vc("0x9"),"ck-annotation__main"]},children:e}]}]};return this[Vc("0xa")]&&this[Vc("0x19")]&&(n[Vc("0x39")].push(this.commentsListView,this[Vc("0x19")]),this[Vc("0xa")][Vc("0x42")](Vc("0x12")).to(this),this[Vc("0xa")][Vc("0x42")](Vc("0x6")).to(this),this.commentThreadInputView[Vc("0x42")]("editorReady").to(this),this[Vc("0x19")].delegate(Vc("0x6")).to(this)),n}[Vc("0x3a")](){super.render(),this[Vc("0xe")]=this[Vc("0x32")][Vc("0x35")](".ck-annotation__content-wrapper"),this[Vc("0xe")].innerHTML=this[Vc("0x2e")],this.on("change:description",((t,e,n)=>{this[Vc("0xe")].innerHTML=n}))}[Vc("0x41")](t,e,n,r,i){const s=new o.ButtonView(this.locale);return s[Vc("0xd")]({label:t,icon:e,tooltip:!0,tooltipPosition:i}),s[Vc("0x1d")]({attributes:{class:n}}),s.on(Vc("0x25"),(()=>{this.fire(r,this[Vc("0x3f")].id)})),s}getExternalSuggestionNote(){return Vc("0x18")===this[Vc("0x3f")][Vc("0x10")]["@external"][Vc("0x1a")]?Yr(this[Vc("0x33")],Vc("0x36")):Yr(this.locale,Vc("0x49"))}getUserViewNotificationText(){return this[Vc("0x3f")][Vc("0x29")]?Vc("0x18")===this[Vc("0x3f")][Vc("0x10")][Vc("0x11")][Vc("0x1a")]?Yr(this[Vc("0x33")],"EXTERNAL_IMPORT_WORD_AVATAR",this[Vc("0x3f")][Vc("0x1f")][Vc("0x47")]):Yr(this.locale,"EXTERNAL_AVATAR",this[Vc("0x3f")].creator[Vc("0x47")]):null}}function zc(t,e){let n="";return n+=t.split("*").map(((t,e)=>e%2!=0?Vc("0x15")+Wc(t)+Vc("0x13"):Wc(t))).join(""),e&&(n+=Vc("0x16")+e[Vc("0xc")]+Vc("0x37")+e.title+'"></span>'),n}function Wc(t){const e=document[Vc("0x30")](Vc("0x38"));return e[Vc("0x43")]=t,e[Vc("0x2b")]}const Kc=["_destroyController","TrackChangesUI","change:activeAnnotations","editing","keys","some","add","filter","separator","value","type","Accept all suggestions","isDirty","pluginName","define","isEnabled","length","editor","buttonView","remove","comments","registerAnnotation","get","Annotations","from","size","locale","_annotationViews","_bindAnnotationToEditors","getAllAdjacentSuggestions","suggestion-","componentFactory","has","Accept all selected suggestions","actionView","suggestionUnloaded","plugins","CommentsRepository","unbind","isOn","EditorAnnotations","_viewToController","push","_handleSuggestionControllerDelayed","isMultiRange","change:previous","_descriptionFactory","comments.maxThreadTotalWeight","trackChanges.SuggestionThreadView","commandName","discardAllSuggestions","_refreshActiveMarkers","isInContent","listenTo","Discard all selected suggestions","Track changes","innerView","trackChanges","_initializeController","destroy","acceptSelectedSuggestions","getJoined","getDescriptions","TrackChangesEditing","discardButton","comments.maxCommentsWhenCollapsed","acceptButton","mainView","focus","stopListening","getSuggestion","init","acceptAllSuggestions","commands","model","values","lowest","toMany","_handleControllerBuffer","getByInnerView","CommentsUI","view","execute","trackChanges.disableComments","discardSelectedSuggestions","_unbindEditors","switchbutton","refreshSelectedViews","source","addSourceCollector","set","activeMarkers","_suggestionToController","requires","arrowView","_updateController","_disableComments","addComment","SuggestionThreadView","descriptionParts","commentThread","createAnnotation","delete","bind","getFirstRange","CommentView","Discard all suggestions","comments.editorConfig","head","button"];var qc,Xc;qc=Kc,Xc=473,function(t){for(;--t;)qc.push(qc.shift())}(++Xc);const $c=function(t,e){return Kc[t-=0]};class Zc extends t.Plugin{static get[$c("0x3c")](){return[hc,i.Users,"CommentsRepository",$c("0x64"),$c("0x7")]}static get[$c("0x5a")](){return $c("0x4e")}constructor(t){super(t),this[$c("0x3b")]=new Map,this[$c("0x8")]=new Map,this._annotationViews=new Map,this[$c("0x2d")]=new Map;const e=this[$c("0x5e")].config;e[$c("0x5b")]($c("0xf"),Hc),e.define("trackChanges.disableComments",!1),this[$c("0x3f")]=e.get($c("0x32"))}[$c("0xa")](t,e){0===this[$c("0x2d")][$c("0x66")]&&setTimeout((()=>{for(const[t,e]of this._handleControllerBuffer){const n=this[$c("0x3b")][$c("0x6d")](t);n||e?n&&e&&this._destroyController(t):this[$c("0x19")](t)}this[$c("0x5e")][$c("0x3")][$c("0x63")]($c("0x7"))[$c("0x36")](),this[$c("0x12")](),this._handleControllerBuffer.clear()}),10),this[$c("0x2d")][$c("0x39")](t,e)}[$c("0x26")](){const t=this[$c("0x5e")],e=t[$c("0x3")][$c("0x63")]($c("0x1e")),n=t.plugins[$c("0x63")]($c("0x64")),r=t[$c("0x3")][$c("0x63")]($c("0x7")),o=t[$c("0x3")][$c("0x63")]($c("0x4"));t.ui[$c("0x6c")][$c("0x53")]("trackChanges",(t=>this._createUIButton(t))),r[$c("0x38")]((()=>{const t=[];for(const[e,n]of Array[$c("0x65")](this._suggestionToController)){const r=e[$c("0x6a")](),o=[];for(const t of r){if(!t[$c("0x13")])continue;if(t[$c("0xb")]){o[$c("0x9")](...t.getRanges());continue}const e=t[$c("0x47")]();if(o.length>0){const t=o[0][$c("0x1c")](e);if(t){o[0]=t;continue}}o.push(e)}t[$c("0x9")]([n[$c("0x30")],o])}return t})),this[$c("0x14")](e,"suggestionLoaded",((t,e)=>{this.listenTo(e,"change:previous",((t,n,r,o)=>{e[$c("0x13")]&&(null==r?(this[$c("0x3e")](o[$c("0x4b")]),this[$c("0xa")](e,!1)):(this[$c("0x3e")](r[$c("0x4b")]),null==o&&this[$c("0xa")](e,!0)))})),null!==e.previous?this._updateController(e[$c("0x4b")]):this[$c("0xa")](e,!1)})),this[$c("0x14")](e,$c("0x2"),((t,e,n)=>{this[$c("0x24")](e,$c("0xc")),this[$c("0x2d")][$c("0x45")](e),this[$c("0x3b")][$c("0x6d")](e)&&this[$c("0x4d")](e),n&&this._updateController(n.head)})),this[$c("0x14")](e,"suggestionChanged",((t,e)=>{this._updateController(e)})),this[$c("0x14")](n,$c("0x4f"),(()=>{this[$c("0x12")]()})),this[$c("0x14")](o,$c("0x40"),((t,{threadId:n,isFromAdapter:r})=>{if(r||!e.hasSuggestion(n))return;const o=e[$c("0x25")](n);this._suggestionToController[$c("0x63")](o)[$c("0x30")][$c("0x23")]()}),{priority:$c("0x2b")})}_refreshActiveMarkers(){const t=this[$c("0x5e")].plugins[$c("0x63")]($c("0x64")),e=this[$c("0x5e")].plugins[$c("0x63")]("TrackChangesEditing"),n=Array[$c("0x65")](t.activeAnnotations,(t=>t[$c("0x17")]))[$c("0x54")]((t=>this._viewToController[$c("0x6d")](t))),r=[];for(const t of n){const e=this[$c("0x8")][$c("0x63")](t)[$c("0x29")][$c("0x6a")]();r[$c("0x9")](...e.reduce(((t,e)=>[...t,...e.getMarkerNames()]),[]))}e[$c("0x3a")]=r}_createUIButton(t){const n=(0,o.createDropdown)(t,o.SplitButtonView),r=this[$c("0x5e")][$c("0x28")][$c("0x63")]($c("0x18")),i=Yr(t,$c("0x16"));n[$c("0x5f")][$c("0x39")]({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[$c("0x5f")][$c("0x46")]($c("0x6")).to(r,"value"),n.buttonView.on($c("0x31"),(()=>{r[$c("0x31")](),this.editor[$c("0x50")][$c("0x30")].focus()}));const s=new e.Collection,x=[{type:$c("0x35"),model:{withText:!0,label:i,commandName:$c("0x18")}},{type:$c("0x55")},{type:"button",model:{withText:!0,label:Yr(t,$c("0x58")),commandName:$c("0x27")}},{type:$c("0x4c"),model:{withText:!0,label:Yr(t,$c("0x0")),commandName:$c("0x1b")}},{type:$c("0x4c"),model:{withText:!0,label:Yr(t,$c("0x49")),commandName:$c("0x11")}},{type:"button",model:{withText:!0,label:Yr(t,$c("0x15")),commandName:$c("0x33")}}];for(const t of x){let e={type:"separator"};if(t[$c("0x29")]){const n=new o.Model(t[$c("0x29")]),r=this[$c("0x5e")].commands[$c("0x63")](n.commandName);n[$c("0x46")]($c("0x6"),$c("0x5c")).to(r,$c("0x56"),$c("0x5c")),e={type:t[$c("0x57")],model:n}}s[$c("0x53")](e)}(0,o.addListToDropdown)(n,s);const a=x[$c("0x54")]((t=>null!=t[$c("0x29")])).map((t=>this[$c("0x5e")].commands[$c("0x63")](t[$c("0x29")].commandName))),c=n[$c("0x5f")];return c.actionView[$c("0x5")]($c("0x5c")),c[$c("0x3d")].unbind($c("0x5c")),c[$c("0x1")].bind($c("0x5c")).to(r,$c("0x5c")),c[$c("0x3d")].bind($c("0x5c"))[$c("0x2c")](a,"isEnabled",((...t)=>t[$c("0x52")]((t=>t)))),n.on($c("0x31"),(t=>{this.editor[$c("0x31")](t[$c("0x37")][$c("0x10")]),this[$c("0x5e")][$c("0x50")][$c("0x30")][$c("0x23")]()})),n}[$c("0x19")](t){const e=this[$c("0x5e")],n=e.config,r=e[$c("0x3")][$c("0x63")]($c("0x64")),o=e[$c("0x3")][$c("0x63")]($c("0x4")),s=e.plugins[$c("0x63")]($c("0x7")),x=e[$c("0x3")][$c("0x63")](i.Users).me,a=n[$c("0x63")]("trackChanges")[$c("0x41")],{CommentsListView:c,CommentThreadInputView:l}=e[$c("0x3")][$c("0x63")]($c("0x2f"));let u,d;this[$c("0x68")][$c("0x6d")](t.id)?(d=this[$c("0x68")][$c("0x63")](t.id),u=d.mainView):(u=new a(e[$c("0x67")],t,x,{disableComments:this._disableComments,editorConfig:n[$c("0x63")]($c("0x4a")),maxCommentsWhenCollapsed:n[$c("0x63")]($c("0x20")),maxThreadTotalWeight:n[$c("0x63")]($c("0xe")),maxCommentCharsWhenCollapsed:n[$c("0x63")]("comments.maxCommentCharsWhenCollapsed"),formatDateTime:(0,i.getDateTimeFormatter)(n[$c("0x63")]($c("0x67"))),CommentView:n[$c("0x63")]($c("0x61"))[$c("0x48")],CommentsListView:c,CommentThreadInputView:l}),u[$c("0x21")].on($c("0x31"),(()=>{e[$c("0x50")][$c("0x30")][$c("0x23")]()})),u[$c("0x1f")].on("execute",(()=>{e.editing[$c("0x30")][$c("0x23")]()})),d=r.createAnnotationView(this.editor[$c("0x67")],u),d.bind($c("0x59")).to(u,$c("0x59")),d.bind($c("0x5d")).to(u),d[$c("0x46")]("type").to(u,$c("0x57"),(t=>$c("0x6b")+t)),this._annotationViews.set(t.id,d));const g=o.createCommentThreadController(t[$c("0x43")],u),f=new wc(e,t,u,g),m=t[$c("0x6a")]()[$c("0x54")]((t=>t.isInContent));u[$c("0x42")]=e[$c("0x3")].get($c("0x1e"))[$c("0xd")].getDescriptions(m),this[$c("0x3b")][$c("0x39")](t,f),this._viewToController[$c("0x39")](u,f);const h=r[$c("0x44")]({view:d,target:()=>{const n=[],r=t[$c("0x6a")]()[$c("0x54")]((t=>t[$c("0x13")]));for(const t of r)n.push(...t.getMarkers());return(0,i.getAllMarkersDomElementsSorted)(e[$c("0x50")],n)},type:()=>"suggestion-"+f[$c("0x30")][$c("0x57")]});o[$c("0x69")](u,h),r[$c("0x53")](h),s[$c("0x62")](h)}[$c("0x4d")](t){const e=this.editor[$c("0x3")].get("CommentsRepository"),n=this[$c("0x5e")][$c("0x3")].get($c("0x64")),r=this[$c("0x3b")].get(t),o=r[$c("0x30")],i=n[$c("0x2e")](o);e[$c("0x34")](o),i&&n[$c("0x60")](i),this[$c("0x3b")][$c("0x45")](t),this[$c("0x8")][$c("0x45")](o),r[$c("0x1a")]()}[$c("0x3e")](t){if(!t[$c("0x13")]||!this._suggestionToController[$c("0x6d")](t))return;const e=this[$c("0x5e")][$c("0x3")][$c("0x63")]($c("0x1e")),n=this[$c("0x3b")][$c("0x63")](t),r=t[$c("0x6a")]();n[$c("0x30")][$c("0x42")]=e[$c("0xd")][$c("0x1d")](r)}destroy(){for(const t of this[$c("0x3b")][$c("0x51")]())this[$c("0x4d")](t);for(const t of this._annotationViews[$c("0x2a")]())t[$c("0x22")][$c("0x1a")]();super[$c("0x1a")]()}}var Qc,Yc,Jc=["Comments","editor","plugins","TrackChanges","adapter","addSuggestion","get","getSuggestion","addSuggestionData","getSuggestions"];Qc=Jc,Yc=391,function(t){for(;--t;)Qc.push(Qc.shift())}(++Yc);var tl=function(t,e){return Jc[t-=0]};class el extends t.Plugin{static get requires(){return[hc,Zc,tl("0x9")]}static get pluginName(){return tl("0x2")}set[tl("0x3")](t){this[tl("0x0")][tl("0x1")][tl("0x5")](hc).adapter=t}get[tl("0x3")](){return this[tl("0x0")].plugins.get(hc).adapter}[tl("0x4")](t){return this[tl("0x0")].plugins[tl("0x5")](hc)[tl("0x7")](t)}[tl("0x8")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this.editor[tl("0x1")].get(hc).getSuggestions({skipNotAttached:t,toJSON:e})}getSuggestion(t){return this[tl("0x0")][tl("0x1")][tl("0x5")](hc)[tl("0x6")](t)}}const nl=["get","config","CommentsRepository","useAnonymousUser","trackChangesData","plugins","Pagination","trackChangesData.editorCreator","editor","appendChild","editorCreator","pluginName","end","model","name","set","addSuggestionData","reduce","getDataWithDiscardedSuggestions","TrackChangesEditing","function","getRootNames","define","div","track-changes-data-invalid-editor-creator","getSuggestions","push","init","create","createDocumentFragment","_adapter","document","rootsAttributes","Users","TrackChangesDataGetter","getFullData","discardAllSuggestions","createElement","TrackChangesData","destroy","data"];var rl,ol;rl=nl,ol=319,function(t){for(;--t;)rl.push(rl.shift())}(++ol);const il=function(t,e){return nl[t-=0]},sl=[il("0xf")];class xl extends t.Plugin{static get requires(){return[hc]}static get[il("0x14")](){return il("0x6")}[il("0x24")](){const t=this.editor;if(t[il("0xa")][il("0x1f")](il("0x10"),(e=>{const n=t[il("0x16")][il("0x28")][il("0x1e")]()[il("0x1a")](((t,e)=>(t[e]="",t)),{});return t.constructor[il("0x25")](n,e)})),il("0x1d")!=typeof t[il("0xa")][il("0x9")]("trackChangesData").editorCreator)throw new e.CKEditorError(il("0x21"))}getDataWithAcceptedSuggestions(t){return ll(this[il("0x11")],!0,t)}[il("0x1b")](t){return ll(this[il("0x11")],!1,t)}}class al extends t.Plugin{static get pluginName(){return il("0x2")}constructor(t){super(t),this.result=il("0x15")}[il("0x24")](){this[il("0x11")][il("0xe")].get(il("0xb"))._adapter={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this[il("0x11")][il("0xe")].get(il("0x1c"))[il("0x27")]=null}}function cl(t){return void 0!==t.getRootsAttributes}async function ll(t,e,n){const r=(0,i.sanitizeEditorConfig)(t,sl);r[il("0xe")][il("0x23")](hc,al),r[il("0x0")]=cl(t)?t.getRootsAttributes():void 0;const o=document[il("0x26")](),s=t[il("0xa")].get(il("0xd"))[il("0x13")],x=await s(r,(()=>function(t){const e=document[il("0x5")](il("0x20"));return t[il("0x12")](e),e}(o)));!function(t,e){const n=t[il("0x16")][il("0x28")][il("0x1e")]().reduce(((e,n)=>(e[n]=t[il("0x8")].get({rootName:n}),e)),{}),r=t[il("0xe")][il("0x9")](il("0x1")).users.map((t=>({id:t.id,name:t[il("0x17")]}))),o=t.plugins[il("0x9")](il("0x1c"))[il("0x22")]({skipNotAttached:!0,toJSON:!0}),i=e[il("0xe")].get(il("0x1")),s=e[il("0xe")].get(il("0x1c"));for(const t of r)i.getUser(t.id)||i.addUser(t);i.me||i[il("0xc")]();for(const t of o)s[il("0x19")](t);e.data[il("0x18")](n)}(t,x),x.execute(e?"acceptAllSuggestions":il("0x4"));const a=cl(x)?x[il("0x3")](n):x[il("0x8")][il("0x9")](n);return await x[il("0x7")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=r})();
|
|
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:()=>Pc,TrackChanges:()=>el,TrackChangesData:()=>xl,TrackChangesEditing:()=>hc});var t=n(704),e=n(209),i=n(273),r=n(417),s=n(492),x=n(995);const a=["_enableCommands","_isEnabledBasedOnSelection","refresh","forceDisabled","TrackChangesCommand","_disableUnsupportedCommands","commands","execute","affectsData","value","editor","_enabledCommands","has"];var c,l;c=a,l=390,function(t){for(;--t;)c.push(c.shift())}(++l);const u=function(t,e){return a[t-=0]};class d extends t.Command{constructor(t,e){super(t),this[u("0xb")]=e,this[u("0x9")]=!1,this[u("0x2")](),this[u("0x1")]=!1}[u("0x2")](){this.isEnabled=!0}[u("0x7")](){this.value=!this[u("0x9")],this[u("0x9")]?this[u("0x5")]():this[u("0x0")]()}[u("0x5")](){for(const t of this[u("0xa")][u("0x6")][u("0x6")]())t[u("0x8")]&&!this[u("0xb")][u("0xc")](t)&&t[u("0x3")]("TrackChangesCommand")}[u("0x0")](){for(const t of this[u("0xa")][u("0x6")][u("0x6")]())t.affectsData&&!this._enabledCommands[u("0xc")](t)&&t.clearForceDisabled(u("0x4"))}}const g=["_isEnabledBasedOnSelection","get","execute","_suggestions","plugins","canEditAt","refresh","track-changes-accept-suggestion-not-found","TrackChangesEditing","acceptSuggestion","model","editor"];var f,m;f=g,m=232,function(t){for(;--t;)f.push(f.shift())}(++m);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this[h("0xb")]=e,this[h("0x2")](),this[h("0x8")]=!1}[h("0x2")](){this.isEnabled=!0}[h("0xa")](t){const n=this[h("0xb")][h("0x9")](t);if(!n)throw new e.CKEditorError(h("0x3"),this);const o=n.getRanges();this.editor[h("0x6")][h("0x1")](o)&&this[h("0x7")][h("0x0")][h("0x9")](h("0x4"))[h("0x5")](n)}}const b=["refresh","model","track-changes-discard-suggestion-not-found","isEnabled","_suggestions","_isEnabledBasedOnSelection","execute","get","discardSuggestion","getRanges"];var E,_;E=b,_=389,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class y extends t.Command{constructor(t,e){super(t),this[T("0x5")]=e,this[T("0x1")](),this[T("0x6")]=!1}[T("0x1")](){this[T("0x4")]=!0}[T("0x7")](t){const n=this[T("0x5")].get(t);if(!n)throw new e.CKEditorError(T("0x3"),this);const o=n[T("0x0")]();this.editor[T("0x2")].canEditAt(o)&&this.editor.plugins[T("0x8")]("TrackChangesEditing")[T("0x9")](n)}}const C=["getRanges","isTouching"," [color ","join","length","createPositionAfter","type","replace","isInContent","sort","createPositionAt","isArray","isObject","change","isIntersecting","createPositionBefore","push","execute","map","end","schema","next","value","isMultiRange"];var A,k;A=C,k=159,function(t){for(;--t;)A.push(A.shift())}(++k);const I=function(t,e){return C[t-=0]};function R(t){return t[I("0x12")](((t,e)=>"deletion"==t[I("0xf")]&&"deletion"!=e.type?-1:"deletion"!=t[I("0xf")]&&"deletion"==e[I("0xf")]?1:0))}function v(t,e){let n,o=0;const i=[],r=e[I("0x5")];for(;o<t[I("0xd")];){const s=t[o],x=t[o+1];n||(n=e[I("0x0")](s)),S(e,s,x)||(i[I("0x1")](e.createRange(n,r[I("0x15")](s)?e[I("0xe")](s):e[I("0x13")](s,I("0x4")))),n=null),o++}return i}function S(t,e,n){if(!n)return!1;const o=t.createPositionAfter(e),i=t.createPositionBefore(n);return o[I("0xa")](i)}function N(t,e,n){for(;n[I("0xd")];){const o=n.splice(0,100);t[I("0x16")]((()=>{for(const t of o)t[I("0x11")]&&e[I("0x2")](t.id)}))}}const L=["execute","model","editor","from","getRanges","_command","some","_suggestions","refresh","values","isEnabled","canEditAt","isInContent"];var M,w;M=L,w=212,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("0x1")]=e,this[O("0x3")]=n,this.refresh(),this._isEnabledBasedOnSelection=!1}[O("0x4")](){const t=Array[O("0xc")](this[O("0x3")][O("0x5")]())[O("0x2")]((t=>t[O("0x8")]));this.isEnabled=this[O("0x1")][O("0x6")]&&t}[O("0x9")](){const t=R(Array[O("0xc")](this[O("0x3")][O("0x5")]()));for(const e of t){const t=e[O("0x0")]();if(!this[O("0xb")].model[O("0x7")](t))return}N(this.editor[O("0xa")],this[O("0x1")],t)}}const D=["_command","model","_selectedSuggestions","document","canEditAt","isEnabled","size","getRanges","refresh","editor","execute"];var B,P;B=D,P=462,function(t){for(;--t;)B.push(B.shift())}(++P);const U=function(t,e){return D[t-=0]};class j extends t.Command{constructor(t,e,n){super(t),this[U("0x0")]=e,this._suggestions=n,this[U("0x2")]=new Set,this[U("0x8")](),this._isEnabledBasedOnSelection=!1}[U("0x8")](){const t=this[U("0x9")][U("0x1")][U("0x3")].selection,e=Array.from(this._suggestions.values());this._selectedSuggestions=function(t,e){const n=Array.from(t[I("0x9")]()),o=new Set;for(const i of e)if(i[I("0x11")])for(const e of n)for(const n of i[I("0x9")]())(e[I("0x17")](n)||t.isCollapsed&&!i[I("0x8")]&&i[I("0x6")]&&n.end[I("0xa")](e.start))&&o.add(i);return o}(t,e),this[U("0x5")]=this[U("0x0")].isEnabled&&!!this._selectedSuggestions[U("0x6")]}[U("0xa")](){const t=R(Array.from(this[U("0x2")]));for(const e of t){const t=e[U("0x7")]();if(!this[U("0x9")][U("0x1")][U("0x4")](t))return}N(this[U("0x9")][U("0x1")],this[U("0x0")],t)}}const G=function(){this.__data__=[],this.size=0};const V=function(t,e){return t===e||t!=t&&e!=e};const H=function(t,e){for(var n=t.length;n--;)if(V(t[n][0],e))return n;return-1};var z=Array.prototype.splice;const W=function(t){var e=this.__data__,n=H(e,t);return!(n<0)&&(n==e.length-1?e.pop():z.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=H(e,t);return n<0?void 0:e[n][1]};const q=function(t){return H(this.__data__,t)>-1};const $=function(t,e){var n=this.__data__,o=H(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 Z=X;const Y=function(){this.__data__=new Z,this.size=0};const J=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Q=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const 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 vt=function(t){return!(!ft(t)||Et(t))&&(mt(t)?Rt:yt).test(Tt(t))};const St=function(t,e){return null==t?void 0:t[e]};const Nt=function(t,e){var n=St(t,e);return vt(n)?n:void 0};const Lt=Nt(ot,"Map");const Mt=Nt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Dt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Bt=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Bt.call(e,t)};const Ut=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mt&&void 0===e?"__lodash_hash_undefined__":e,this};function jt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}jt.prototype.clear=wt,jt.prototype.delete=Ot,jt.prototype.get=Dt,jt.prototype.has=Pt,jt.prototype.set=Ut;const Gt=jt;const Vt=function(){this.size=0,this.__data__={hash:new Gt,map:new(Lt||Z),string:new Gt}};const Ht=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const zt=function(t,e){var n=t.__data__;return Ht(e)?n["string"==typeof e?"string":"hash"]:n.map};const Wt=function(t){var e=zt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return zt(this,t).get(t)};const qt=function(t){return zt(this,t).has(t)};const $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=Vt,Xt.prototype.delete=Wt,Xt.prototype.get=Kt,Xt.prototype.has=qt,Xt.prototype.set=$t;const Zt=Xt;const Yt=function(t,e){var n=this.__data__;if(n instanceof Z){var 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 Jt(t){var e=this.__data__=new Z(t);this.size=e.size}Jt.prototype.clear=Y,Jt.prototype.delete=J,Jt.prototype.get=Q,Jt.prototype.has=tt,Jt.prototype.set=Yt;const Qt=Jt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Nt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const ie=function(t,e,n){var o=t[e];oe.call(t,e)&&V(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var i=!n;n||(n={});for(var r=-1,s=e.length;++r<s;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),i?ne(n,x,a):ie(n,x,a)}return n};const se=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,ue=ce.propertyIsEnumerable;const de=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!ue.call(t,"callee")};const ge=Array.isArray;const fe=function(){return!1};var me="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=me&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===me?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||fe;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var ye={};ye["[object Float32Array]"]=ye["[object Float64Array]"]=ye["[object Int8Array]"]=ye["[object Int16Array]"]=ye["[object Int32Array]"]=ye["[object Uint8Array]"]=ye["[object Uint8ClampedArray]"]=ye["[object Uint16Array]"]=ye["[object Uint32Array]"]=!0,ye["[object Arguments]"]=ye["[object Array]"]=ye["[object ArrayBuffer]"]=ye["[object Boolean]"]=ye["[object DataView]"]=ye["[object Date]"]=ye["[object Error]"]=ye["[object Function]"]=ye["[object Map]"]=ye["[object Number]"]=ye["[object Object]"]=ye["[object RegExp]"]=ye["[object Set]"]=ye["[object String]"]=ye["[object WeakMap]"]=!1;const Ce=function(t){return xe(t)&&Te(t.length)&&!!ye[gt(t)]};const Ae=function(t){return function(e){return t(e)}};var ke="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ie=ke&&"object"==typeof module&&module&&!module.nodeType&&module,Re=Ie&&Ie.exports===ke&&et.process;const ve=function(){try{var t=Ie&&Ie.require&&Ie.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Se=ve&&ve.isTypedArray;const Ne=Se?Ae(Se):Ce;var Le=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&de(t),i=!n&&!o&&be(t),r=!n&&!o&&!i&&Ne(t),s=n||o||i||r,x=s?se(t.length,String):[],a=x.length;for(var c in t)!e&&!Le.call(t,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const De=Fe(Object.keys,Object);var Be=Object.prototype.hasOwnProperty;const Pe=function(t){if(!Oe(t))return De(t);var e=[];for(var n in Object(t))Be.call(t,n)&&"constructor"!=n&&e.push(n);return e};const Ue=function(t){return null!=t&&Te(t.length)&&!mt(t)};const je=function(t){return Ue(t)?Me(t):Pe(t)};const Ge=function(t,e){return t&&re(e,je(e),t)};const Ve=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var He=Object.prototype.hasOwnProperty;const ze=function(t){if(!ft(t))return Ve(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&He.call(t,o))&&n.push(o);return n};const We=function(t){return Ue(t)?Me(t,!0):ze(t)};const Ke=function(t,e){return t&&re(e,We(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,$e=qe&&"object"==typeof module&&module&&!module.nodeType&&module,Xe=$e&&$e.exports===qe?ot.Buffer:void 0,Ze=Xe?Xe.allocUnsafe:void 0;const Ye=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 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=Nt(ot,"DataView");const fn=Nt(ot,"Promise");const mn=Nt(ot,"Set");const hn=Nt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",yn=Tt(gn),Cn=Tt(Lt),An=Tt(fn),kn=Tt(mn),In=Tt(hn),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 vn=Rn;var Sn=Object.prototype.hasOwnProperty;const Nn=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Sn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Ln=ot.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Ln(e).set(new Ln(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Dn=it?it.prototype:void 0,Bn=Dn?Dn.valueOf:void 0;const Pn=function(t){return Bn?Object(Bn.call(t)):{}};const Un=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const jn=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return wn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Un(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Pn(t)}};var Gn=Object.create;const Vn=function(){function t(){}return function(e){if(!ft(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const Hn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Vn(xn(t))};const zn=function(t){return xe(t)&&"[object Map]"==vn(t)};var Wn=ve&&ve.isMap;const Kn=Wn?Ae(Wn):zn;const qn=function(t){return xe(t)&&"[object Set]"==vn(t)};var $n=ve&&ve.isSet;const Xn=$n?Ae($n):qn;var Zn="[object Arguments]",Yn="[object Function]",Jn="[object Object]",Qn={};Qn[Zn]=Qn["[object Array]"]=Qn["[object ArrayBuffer]"]=Qn["[object DataView]"]=Qn["[object Boolean]"]=Qn["[object Date]"]=Qn["[object Float32Array]"]=Qn["[object Float64Array]"]=Qn["[object Int8Array]"]=Qn["[object Int16Array]"]=Qn["[object Int32Array]"]=Qn["[object Map]"]=Qn["[object Number]"]=Qn[Jn]=Qn["[object RegExp]"]=Qn["[object Set]"]=Qn["[object String]"]=Qn["[object Symbol]"]=Qn["[object Uint8Array]"]=Qn["[object Uint8ClampedArray]"]=Qn["[object Uint16Array]"]=Qn["[object Uint32Array]"]=!0,Qn["[object Error]"]=Qn[Yn]=Qn["[object WeakMap]"]=!1;const to=function t(e,n,o,i,r,s){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,i,r,s):o(e)),void 0!==x)return x;if(!ft(e))return e;var u=ge(e);if(u){if(x=Nn(e),!a)return Je(e,x)}else{var d=vn(e),g=d==Yn||"[object GeneratorFunction]"==d;if(be(e))return Ye(e,a);if(d==Jn||d==Zn||g&&!r){if(x=c||g?{}:Hn(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||Zt),n}so.Cache=Zt;const xo=so;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,i){e.push(o?i.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,i=Array(o);++n<o;)i[n]=e(t[n],n,t);return i};var go=it?it.prototype:void 0,fo=go?go.toString:void 0;const mo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return fo?fo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":mo(t)};const po=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!ft(t))return t;for(var i=-1,r=(e=po(e,t)).length,s=r-1,x=t;null!=x&&++i<r;){var a=bo(e[i]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(i!=s){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=ft(l)?l:_e(e[i+1])?[]:{})}ie(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const yo=function(t){return this.__data__.has(t)};function Co(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Zt;++e<n;)this.add(t[e])}Co.prototype.add=Co.prototype.push=To,Co.prototype.has=yo;const Ao=Co;const ko=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const Io=function(t,e){return t.has(e)};const 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 vo=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var No=it?it.prototype:void 0,Lo=No?No.valueOf:void 0;const Mo=function(t,e,n,o,i,r,s){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new Ln(t),new Ln(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return V(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=vo;case"[object Set]":var a=1&o;if(x||(x=So),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 wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,i,r){var s=1&n,x=un(t),a=x.length;if(a!=un(e).length&&!s)return!1;for(var c=a;c--;){var l=x[c];if(!(s?l in e:wo.call(e,l)))return!1}var u=r.get(t),d=r.get(e);if(u&&d)return u==e&&d==t;var g=!0;r.set(t,e),r.set(e,t);for(var f=s;++c<a;){var m=t[l=x[c]],h=e[l];if(o)var p=s?o(h,m,l,e,t,r):o(m,h,l,t,e,r);if(!(void 0===p?m===h||i(m,h,n,o,r):p)){g=!1;break}f||(f="constructor"==l)}if(g&&!f){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Do="[object Array]",Bo="[object Object]",Po=Object.prototype.hasOwnProperty;const Uo=function(t,e,n,o,i,r){var s=ge(t),x=ge(e),a=s?Do:vn(t),c=x?Do:vn(e),l=(a=a==Fo?Bo:a)==Bo,u=(c=c==Fo?Bo:c)==Bo,d=a==c;if(d&&be(t)){if(!be(e))return!1;s=!0,l=!1}if(d&&!l)return r||(r=new Qt),s||Ne(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),Oo(t,e,n,o,i,r))};const jo=function t(e,n,o,i,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:Uo(e,n,o,i,t,r))};const Go=function(t,e){return jo(t,e)};const Vo=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Ho=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const zo=function(t,e,n){var o=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(i);++o<i;)r[o]=t[o+e];return r};const Wo=function(t,e){return e.length<2?t:Ho(t,zo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Wo(t,e))||delete t[bo(Vo(e))]};const qo=function(t,e){return null==t||Ko(t,e)},$o=["setAttribute","createdAt","removeMarkers","data","get","start","substr","previous","from","creator","@external","_onAccept","split","type","getMarkers","subType","toJSON","isIntersectingWithRange","nodeBefore","next","_markerNames","hasComments","authoredAt","isExternal","_isDataLoaded","head","filter","discard","getContainedElement","push","getAllAdjacentSuggestions","length","getMultiRangeId","removeAttribute","_onAttributesChange","_model","removeMarker","change","addRange","getRange","set","onAccept","getMarkerNames","isMultiRange","clear","getFirstRange","delete","onAttributesChange","addMarker","attributes","accept","decorate","end","_onDiscard","commentThread","getItems","isIntersecting","getRanges","map","getFirstMarker","author","add","addMarkerName"];var Xo,Zo;Xo=$o,Zo=222,function(t){for(;--t;)Xo.push(Xo.shift())}(++Zo);const Yo=function(t,e){return $o[t-=0]};class Jo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this[Yo("0x36")]=!1,this.id=e.id,this.type=e[Yo("0x2b")],this.subType=e[Yo("0x2d")]||null,this[Yo("0x1b")]=e[Yo("0x1b")],this[Yo("0x27")]=e.creator||e[Yo("0x1b")],this[Yo("0x35")]=Boolean(e[Yo("0x10")]&&e[Yo("0x10")][Yo("0x28")]),this.data=null,this[Yo("0x2")]=t,this[Yo("0x29")]=e[Yo("0x8")],this[Yo("0x14")]=e.onDiscard,this[Yo("0x1")]=e[Yo("0xe")],this[Yo("0x32")]=new Set,this[Yo("0x1f")]=null,this[Yo("0x7")](Yo("0x34"),null),this[Yo("0x7")](Yo("0x10"),e[Yo("0x10")]||{}),this[Yo("0x7")](Yo("0x25"),null),this[Yo("0x7")]("next",null),this.set(Yo("0x15"),null),this[Yo("0x7")]("_saved",!1),this.decorate(Yo("0x11")),this[Yo("0x12")]("discard")}get[Yo("0x37")](){let t=this;for(;t[Yo("0x25")];)t=t[Yo("0x25")];return t}get[Yo("0x33")](){return!!this[Yo("0x15")]&&this.commentThread[Yo("0x3d")]>0}get[Yo("0xa")](){return 0!=this[Yo("0x32")].size&&6==Array[Yo("0x26")](this[Yo("0x32")])[0][Yo("0x2a")](":")[Yo("0x3d")]}get isInContent(){return null!==this[Yo("0x1a")]()}[Yo("0x1d")](t){this._markerNames[Yo("0x1c")](t)}getMarkerNames(){return Array[Yo("0x26")](this[Yo("0x32")])}[Yo("0x2c")](){return this[Yo("0x9")]()[Yo("0x19")]((t=>this[Yo("0x2")].markers[Yo("0x22")](t)))[Yo("0x38")]((t=>t))}getFirstMarker(){return this.getMarkers()[0]||null}[Yo("0x20")](){this[Yo("0x2")][Yo("0x4")]((t=>{for(const e of this[Yo("0x2c")]())t.removeMarker(e)})),this[Yo("0x32")][Yo("0xb")]()}[Yo("0x3")](t){this[Yo("0x2")][Yo("0x4")]((e=>{e[Yo("0x3")](t)})),this._markerNames[Yo("0xd")](t)}[Yo("0x5")](t){const e="suggestion:"+this[Yo("0x2b")]+":"+this[Yo("0x2d")]+":"+this.id+":"+this[Yo("0x27")].id+":"+Jo[Yo("0x3e")]();this[Yo("0x1d")](e),this[Yo("0x2")][Yo("0x4")]((n=>{n[Yo("0xf")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Yo("0x2f")](t){for(const e of this[Yo("0x18")]())if(e[Yo("0x17")](t))return!0;return!1}[Yo("0x18")](){return this.getMarkers()[Yo("0x19")]((t=>t[Yo("0x6")]()))}[Yo("0x16")](){return this.getRanges().reduce(((t,e)=>[...t,...e[Yo("0x16")]()]),[])}[Yo("0xc")](){var t;return(null===(t=this[Yo("0x1a")]())||void 0===t?void 0:t[Yo("0x6")]())||null}[Yo("0x3a")](){const t=this.getRanges();if(1!=t[Yo("0x3d")])return null;const e=t[0],n=e[Yo("0x23")].nodeAfter,o=e[Yo("0x13")][Yo("0x30")];return n instanceof s.Element?n!=o?null:n:null}accept(){this._onAccept(this[Yo("0x18")](),this[Yo("0x21")],this[Yo("0x10")]),this[Yo("0x20")]()}[Yo("0x39")](){this[Yo("0x14")](this[Yo("0x18")](),this.data,this.attributes),this.removeMarkers()}[Yo("0x3c")](){const t=[];let e=this[Yo("0x37")];for(;e;)t[Yo("0x3b")](e),e=e[Yo("0x31")];return t}[Yo("0x1e")](t,e){const n=eo(this[Yo("0x10")]);_o(n,t,e),Go(n,this[Yo("0x10")])||(this[Yo("0x10")]=n,this[Yo("0x1")](n))}[Yo("0x0")](t){const e=eo(this[Yo("0x10")]);qo(e,t),Go(e,this[Yo("0x10")])||(this[Yo("0x10")]=e,this._onAttributesChange(this[Yo("0x10")]))}[Yo("0x2e")](){return{id:this.id,type:this[Yo("0x2d")]?this.type+":"+this.subType:this[Yo("0x2b")],authorId:this.creator.id,createdAt:this[Yo("0x1f")],hasComments:this[Yo("0x33")],data:this.data,attributes:this.attributes}}static getMultiRangeId(){return(0,e.uid)()[Yo("0x24")](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"*Replace image URL*":return o("*Replace image URL*");case"*Format:* resize table":return o("*Format:* resize table");case"*Format:* set order to reversed":return o("*Format:* set order to reversed");case"*Format:* set order to regular":return o("*Format:* set order to regular");case"*Format:* set start index to %0":return o("*Format:* set start index to %0",n);case"*Change %0 content*":return o("*Change %0 content*",n);case"*Remove:* %0":return o("*Remove:* %0",n);case"*Merge:* %0":return o("*Merge:* %0",n);case"*Split:* %0":return o("*Split:* %0",n);case"*Remove format:* %0":return o("*Remove format:* %0",n);case"*Set font size:* %0":return o("*Set font size:* %0",n);case"*Set font family:* %0":return o("*Set font family:* %0",n);case"*Set format to:* %0":return o("*Set format to:* %0",n);case"*Set font color:* %0":return o("*Set font color:* %0",n);case"*Set font background color:* %0":return o("*Set font background color:* %0",n);case"*Set format:* %0":return o("*Set format:* %0",n);case"*Set image text alternative:* %0":return o("*Set image text alternative:* %0",n);case"*Set image width:* %0":return o("*Set image width:* %0",n);case"*Set link:* %0":return o("*Set link:* %0",n);case"*Set highlight:* %0":return o("*Set highlight:* %0",n);case"*Remove highlight*":return o("*Remove highlight*");case"FORMAT_HIGHLIGHT":return o({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return o({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return o({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return o({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return o({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return o({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return o({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return o({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return o({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return o({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return o({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return o({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return o({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return o({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return o({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_DEFAULT":return o({string:"bulleted list (default)",id:"ELEMENT_BULLETED_LIST_DEFAULT"});case"ELEMENT_BULLETED_LIST_CIRCLE":return o({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return o({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return o({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST_DEFAULT":return o({string:"numbered list (default)",id:"ELEMENT_NUMBERED_LIST_DEFAULT"});case"ELEMENT_NUMBERED_LIST":return o({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return o({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return o({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return o({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return o({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return o({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return o({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return o({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return o({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return o({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGNMENT":return o({string:"alignment",id:"FORMAT_ALIGNMENT"});case"FORMAT_ALIGN_TO_LEFT":return o({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return o({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return o({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return o({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return o({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return o({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return o({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return o({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return o({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return o({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return o({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return o({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return o({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return o({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return o({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return o({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return o({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"FORMAT_INDENT":return o({string:"indent",id:"FORMAT_INDENT"});case"FORMAT_LIST_REVERSED":return o({string:"list reversed",id:"FORMAT_LIST_REVERSED"});case"FORMAT_LIST_START":return o({string:"list start",id:"FORMAT_LIST_START"});case"FORMAT_FONT_SIZE":return o({string:"font size",id:"FORMAT_FONT_SIZE"});case"FORMAT_FONT_FAMILY":return o({string:"font family",id:"FORMAT_FONT_FAMILY"});case"FORMAT_FONT_COLOR":return o({string:"font color",id:"FORMAT_FONT_COLOR"});case"FORMAT_FONT_BACKGROUND":return o({string:"font background color",id:"FORMAT_FONT_BACKGROUND"});case"FORMAT_IMAGE_SIZE":return o({string:"image size",id:"FORMAT_IMAGE_SIZE"});case"FORMAT_STYLE":return o({string:"style",id:"FORMAT_STYLE"});case"PENDING_ACTION_SUGGESTION":return o({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return o({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return o({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return o({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return o({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return o({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_TABLE_OF_CONTENTS":return o({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return o({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return o({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return o({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return o({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return o({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return o({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);case"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT":return o({string:"Entering insertion suggestion.",id:"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT":return o({string:"Leaving insertion suggestion.",id:"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT":return o({string:"Entering deletion suggestion.",id:"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT":return o({string:"Leaving deletion suggestion.",id:"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT":return o({string:"Entering formatting suggestion.",id:"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT":return o({string:"Leaving formatting suggestion.",id:"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT"});default:return e}}const ti=["elementStart","isEmpty","quantity","removeContainer","insertion","map","item","ELEMENT_SPACE","addContainer","addFormat","label","isObject","_handleCustomCallbackDescription","pop","indexOf","subType","type","EmptyContainer","removeFormat","set","elementEnd","has","softBreak","deletion","get","key","skip","replace","isInContent","getWalker","name","removeEmptyContainer","Object","isEqual","function","_handleInsertRemoveSuggestionDescription","Container","registerAttributeLabel","text","_attributeLabels","normal","$1 $2","checkChild","getItemLabel","registerElementLabel","_handleAttributeSuggestionDescription","getFirstRange","*Change to:* %0","data","*Remove:* %0","_schema","*Set format:* %0","_handleRenameSuggestionDescription","REPLACE_TEXT","addEmptyContainer","match","_locale","$text","previousSibling","registerDescriptionCallback","length","add","nextSibling","_customCallbacks","_resolveDescriptionItems","element","*Insert:* %0","start","remove","_itemLabelsCallbacks","*Split:* %0","push","_itemLabels","*Remove format:* %0","format"];var ei,ni;ei=ti,ni=136,function(t){for(;--t;)ei.push(ei.shift())}(++ni);const oi=function(t,e){return ti[t-=0]};class ii{constructor(t,e){this._customCallbacks=[],this[oi("0xb")]=new Map,this._itemLabelsCallbacks=[],this[oi("0x35")]=new Map,this[oi("0x40")]=t,this[oi("0x46")]=e}getDescriptions(t){const e=[],n=new Set,o=new Set;for(let i=0;i<t[oi("0x4a")];i++){const r=t[i];if(!r[oi("0x2a")])continue;const s=this._handleCustomCallbackDescription(r);if(s){if(null!=r[oi("0x1d")]){if(n[oi("0x23")](r[oi("0x1d")]))continue;n[oi("0x0")](r.subType)}e[oi("0xa")](s)}else if("attribute"!=r.type)oi("0x12")!=r[oi("0x1e")]&&"deletion"!=r[oi("0x1e")]||this[oi("0x31")](e,r,t[i+1]);else{const t=r[oi("0x3e")][oi("0x27")];if(o[oi("0x23")](t))continue;o.add(r[oi("0x3e")][oi("0x27")]),t==mc?this._handleRenameSuggestionDescription(e,r):this[oi("0x3b")](e,r)}}return this[oi("0x3")](e)}[oi("0x49")](t){this[oi("0x2")].push(t)}[oi("0x3a")](t,n,o=e.priorities[oi("0x36")]){oi("0x30")==typeof t?(0,e.insertToPriorityArray)(this._itemLabelsCallbacks,{matchingCallback:t,label:n,priority:o}):this[oi("0xb")][oi("0x21")](t,n)}[oi("0x33")](t,e){this[oi("0x35")][oi("0x21")](t,e)}getItemLabel(t,e=1){let n;for(const e of this[oi("0x8")])if(e.matchingCallback(t)){n=e[oi("0x18")];break}return n||(n=this._itemLabels[oi("0x26")](t[oi("0x2c")])),n?n(e):1!==e?e+" "+t[oi("0x2c")]+"s":""+t[oi("0x2c")]}_addDescriptionItems(t,e){const n=e.getFirstRange()[oi("0x2b")](),o=oi("0x12")==e[oi("0x1e")]?oi("0x0"):oi("0x7");for(const e of n){const i=e[oi("0x14")],r=t[t[oi("0x4a")]-1];if(i.is("$textProxy"))r&&r[oi("0x1e")][oi("0x1c")]("Container")>-1&&t[oi("0x1b")](),r&&oi("0x34")==r[oi("0x1e")]?r[o]+=i[oi("0x3e")]:t[oi("0xa")]({type:oi("0x34"),add:oi("0x0")==o?i.data:"",remove:oi("0x7")==o?i[oi("0x3e")]:""});else if(this[oi("0x40")][oi("0x19")](i)){const s=i;if(r&&r.type[oi("0x1c")](oi("0x32"))>-1&&t[oi("0x1b")](),oi("0x22")==e.type)continue;r&&r.type==o+oi("0x2e")&&r[oi("0x4")][oi("0x2c")]==s.name?r.quantity++:t[oi("0xa")]({type:o+"Object",element:s,quantity:1}),n[oi("0x28")]((t=>!(oi("0x22")==t[oi("0x1e")]&&t[oi("0x14")]==i)))}else if(this[oi("0x40")][oi("0x38")](i,oi("0x47"))||i.is(oi("0x4"),oi("0x24"))){const n=i;if(oi("0x0")==o&&oi("0xe")==e[oi("0x1e")]||"remove"==o&&oi("0x22")==e.type)continue;if(r&&-1==r[oi("0x1e")][oi("0x1c")]("Container")){oi("0x34")==r.type&&(r[o]+="\n");continue}let s;if(s=oi("0x0")==o?n.nextSibling&&!this[oi("0x40")][oi("0x19")](n[oi("0x1")])?n[oi("0x1")]:null:n.previousSibling&&!this[oi("0x40")][oi("0x19")](n[oi("0x48")])?n[oi("0x48")]:null,n[oi("0xf")]||s&&s[oi("0xf")]){const e=s&&s[oi("0xf")]?s:n;r&&r[oi("0x1e")]==o+"EmptyContainer"&&r.element[oi("0x2c")]==e[oi("0x2c")]?r[oi("0x10")]++:t[oi("0xa")]({type:o+oi("0x1f"),element:e,quantity:1})}else t[oi("0xa")]({type:o+oi("0x32"),element:n})}}}[oi("0x3")](t){const e=this._locale,n=[],o=[],i=[];for(const r of t)switch(r[oi("0x1e")]){case oi("0x34"):if(r.add=r[oi("0x0")][oi("0x29")](/(\S)\u000A+(\S)/g,oi("0x37"))[oi("0x29")](/\u000A/g,""),r[oi("0x7")]=r[oi("0x7")][oi("0x29")](/(\S)\u000A+(\S)/g,oi("0x37"))[oi("0x29")](/\u000A/g,""),""!=r.add&&""!=r.remove){n[oi("0xa")]({type:"replace",content:Qo(e,oi("0x43"),['"'+r[oi("0x7")]+'"','"'+r[oi("0x0")]+'"'])});continue}if(null!=r.add[oi("0x45")](/^ +$/)){n[oi("0xa")]({type:oi("0x12"),content:Qo(e,"*Insert:* %0",Qo(e,"ELEMENT_SPACE",r[oi("0x0")][oi("0x4a")]))});continue}if(null!=r.remove[oi("0x45")](/^ +$/)){n[oi("0xa")]({type:oi("0x25"),content:Qo(e,"*Remove:* %0",Qo(e,oi("0x15"),r[oi("0x7")][oi("0x4a")]))});continue}if(""!=r[oi("0x0")]){n.push({type:oi("0x12"),content:Qo(e,oi("0x5"),'"'+r.add+'"')});continue}n.push({type:"deletion",content:Qo(e,oi("0x3f"),'"'+r[oi("0x7")]+'"')});continue;case oi("0x44"):case"addObject":n[oi("0xa")]({type:"insertion",content:Qo(e,"*Insert:* %0",this[oi("0x39")](r[oi("0x4")],r[oi("0x10")]))});continue;case oi("0x2d"):case"removeObject":n[oi("0xa")]({type:oi("0x25"),content:Qo(e,"*Remove:* %0",this[oi("0x39")](r[oi("0x4")],r.quantity))});continue;case oi("0x16"):n[oi("0xa")]({type:oi("0x12"),content:Qo(e,oi("0x9"),this[oi("0x39")](r[oi("0x4")],r[oi("0x10")]))});continue;case oi("0x11"):n[oi("0xa")]({type:oi("0x25"),content:Qo(e,"*Merge:* %0",this[oi("0x39")](r[oi("0x4")],r[oi("0x10")]))});continue;case oi("0x17"):o[oi("0xa")](r[oi("0x27")]);continue;case oi("0x20"):i[oi("0xa")](r.key);continue;default:n[oi("0xa")](r)}if(o[oi("0x4a")]){const t=o[oi("0x13")]((t=>this[oi("0x35")][oi("0x23")](t)?this._attributeLabels.get(t):t)).join(", ");n[oi("0xa")]({type:"format",content:Qo(this[oi("0x46")],oi("0x41"),t)})}if(i[oi("0x4a")]){const t=i[oi("0x13")]((t=>this[oi("0x35")].has(t)?this._attributeLabels.get(t):t)).join(", ");n[oi("0xa")]({type:oi("0xd"),content:Qo(this[oi("0x46")],oi("0xc"),t)})}return n}[oi("0x1a")](t){for(const e of this[oi("0x2")]){const n=e(t);if(n&&"type"in n)return n}}[oi("0x3b")](t,e){const n=e[oi("0x3e")],o=void 0===n.newValue?oi("0x20"):oi("0x17");t[oi("0xa")]({type:o,key:n[oi("0x27")]})}[oi("0x42")](t,e){t[oi("0xa")]({type:oi("0xd"),content:Qo(this[oi("0x46")],oi("0x3d"),this[oi("0x39")](e[oi("0x3c")]()[oi("0x6")].nodeAfter,1))})}_handleInsertRemoveSuggestionDescription(t,e,n){if(this._addDescriptionItems(t,e),n&&n[oi("0x3c")]()&&!e.getFirstRange().end[oi("0x2f")](n[oi("0x3c")]().start)){const n=t[t[oi("0x4a")]-1],o=oi("0x12")==e[oi("0x1e")]?"add":"remove";n&&oi("0x34")==n[oi("0x1e")]&&(n[o]+="\n")}}}const ri=["TrackChangesEditing","showAIAssistant","commands","get"];var si,xi;si=ri,xi=301,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.editor,e=t.plugins[ai("0x2")](ai("0x3"));t[ai("0x1")].get(ai("0x0"))&&e.enableCommand("showAIAssistant")}}const li=["editor","FORMAT_ALIGN_TO_CENTER","FORMAT_JUSTIFY_TEXT","afterInit","type","commandName","*Format:* %0","registerAttributeLabel","center","formatBlock","alignment","_registerLegacyDescription","_descriptionFactory","FORMAT_ALIGNMENT","FORMAT_ALIGN_TO_RIGHT","left","get","FORMAT_ALIGN_TO_LEFT","locale","commandParams","_enableDefaultAttributesIntegration","TrackChangesEditing","plugins"];var ui,di;ui=li,di=405,function(t){for(;--t;)ui.push(ui.shift())}(++di);const gi=function(t,e){return li[t-=0]};class fi extends t.Plugin{[gi("0xc")](){const t=this.editor,e=t[gi("0x4")];if(!t[gi("0x8")].has("AlignmentEditing"))return;const n=t[gi("0x8")][gi("0x2")](gi("0x7"));n[gi("0x6")](gi("0x13"),[],["alignment"]),n[gi("0x15")][gi("0x10")](gi("0x13"),Qo(e,gi("0x16"))),this[gi("0x14")]()}[gi("0x14")](){const t=this[gi("0x9")],e=t[gi("0x4")];t[gi("0x8")].get(gi("0x7"))[gi("0x15")].registerDescriptionCallback((t=>{if(gi("0x12")!=t[gi("0xd")])return;const{data:n}=t;if(n&&gi("0x13")==n[gi("0xe")]){const t=n[gi("0x5")][0].value;return{type:"format",content:Qo(e,gi("0xf"),function(t){switch(t){case gi("0x1"):return Qo(e,gi("0x3"));case"right":return Qo(e,gi("0x0"));case gi("0x11"):return Qo(e,gi("0xa"));case"justify":return Qo(e,gi("0xb"))}}(t))}}}))}}const mi=["toUpperCase","FORMAT_","_enableDefaultAttributesIntegration","slice","italic","_registerLegacyDescription","strikethrough","FORMAT_CODE","editor","code","CodeEditing","_descriptionFactory","type","formatInline","superscript","TrackChangesEditing","bold","StrikethroughEditing","commandName","FORMAT_STRIKETHROUGH","ItalicEditing","FORMAT_BOLD","FORMAT_SUPERSCRIPT","*Format:* %0","format","get","subscript","plugins","forceValue","SubscriptEditing","underline"];var hi,pi;hi=mi,pi=127,function(t){for(;--t;)hi.push(hi.shift())}(++pi);const bi=function(t,e){return mi[t-=0]},Ei=["BoldEditing",bi("0x11"),"UnderlineEditing",bi("0x7"),bi("0xe"),bi("0x1a"),"SuperscriptEditing"];class _i extends t.Plugin{afterInit(){const t=this[bi("0x5")],e=t[bi("0x18")].get(bi("0xc")),n=t.locale;for(const o of Ei){if(!t[bi("0x18")].has(o))continue;const i=o[bi("0x0")](0,-7).toLowerCase(),r=bi("0x1d")+i[bi("0x1c")]();e[bi("0x1e")](i,[i]),e._descriptionFactory.registerAttributeLabel(i,Qo(n,r))}this[bi("0x2")]()}[bi("0x2")](){const t=this[bi("0x5")],e=t.locale,n=t.plugins[bi("0x16")](bi("0xc"));function o(t,o){n[bi("0x8")].registerDescriptionCallback((n=>{if(bi("0xa")!=n[bi("0x9")])return;const{data:i}=n;return i&&i[bi("0xf")]===t?i.commandParams[0][bi("0x19")]?{type:bi("0x15"),content:Qo(e,bi("0x14"),o)}:{type:bi("0x15"),content:Qo(e,"*Remove format:* %0",o)}:void 0}))}o(bi("0xd"),Qo(e,bi("0x12"))),o(bi("0x1"),Qo(e,"FORMAT_ITALIC")),o(bi("0x1b"),Qo(e,"FORMAT_UNDERLINE")),o(bi("0x6"),Qo(e,bi("0x4"))),o(bi("0x3"),Qo(e,bi("0x10"))),o(bi("0x17"),Qo(e,"FORMAT_SUBSCRIPT")),o(bi("0xb"),Qo(e,bi("0x13")))}}const Ti=["has","name","afterInit","selection","ELEMENT_BLOCK_QUOTE","enableCommand","change","commandParams","locale","schema","*Remove format:* %0","from","format","getSelectedBlocks","blockQuote","markBlockFormat","plugins","$root","value","editor","get","filter","document","registerDescriptionCallback","parent","checkChild","forceValue","TrackChangesEditing","model"];var yi,Ci;yi=Ti,Ci=129,function(t){for(;--t;)yi.push(yi.shift())}(++Ci);const Ai=function(t,e){return Ti[t-=0]};class ki extends t.Plugin{[Ai("0x12")](){const t=this[Ai("0x6")],e=t[Ai("0x18")];if(!t[Ai("0x3")][Ai("0x10")]("BlockQuoteEditing"))return;const n=t[Ai("0x3")][Ai("0x7")](Ai("0xe")),o=this[Ai("0x6")].commands[Ai("0x7")]("blockQuote");n[Ai("0x15")](Ai("0x1"),((e,i={})=>{const r=this.editor[Ai("0xf")][Ai("0x9")][Ai("0x13")],s=i&&void 0!==i[Ai("0xd")]?i[Ai("0xd")]:!o[Ai("0x5")];let x=[];if(s){const e=Array.from(r.getSelectedBlocks())[Ai("0x8")]((t=>Ii(t)||function(t,e){const n=e[Ai("0xc")](t[Ai("0xb")],Ai("0x1")),o=e[Ai("0xc")]([Ai("0x4"),Ai("0x1")],t);return n&&o}(t,this.editor.model[Ai("0x19")])));x=v(e,t[Ai("0xf")])}else{const e=Array[Ai("0x1b")](r[Ai("0x0")]())[Ai("0x8")]((t=>Ii(t)));x=v(e,t[Ai("0xf")])}t[Ai("0xf")][Ai("0x16")]((()=>{for(const t of x)n[Ai("0x2")](t,{commandName:Ai("0x1"),commandParams:[{forceValue:s}]})}))})),n._descriptionFactory[Ai("0xa")]((t=>{const{data:n}=t;if(n&&"blockQuote"==n.commandName){const t=Qo(e,Ai("0x14"));return n[Ai("0x17")][0][Ai("0xd")]?{type:Ai("0x1c"),content:Qo(e,"*Set format:* %0",t)}:{type:"format",content:Qo(e,Ai("0x1a"),t)}}}))}}function Ii(t){return Ai("0x1")==t[Ai("0xb")][Ai("0x11")]}const Ri=["plugins","afterInit","commands","ckbox","editor","get"];var vi,Si;vi=Ri,Si=212,function(t){for(;--t;)vi.push(vi.shift())}(++Si);const Ni=function(t,e){return Ri[t-=0]};class Li extends t.Plugin{[Ni("0x5")](){const t=this[Ni("0x2")];t[Ni("0x0")][Ni("0x3")]("ckbox")&&t[Ni("0x4")][Ni("0x3")]("TrackChangesEditing").enableCommand(Ni("0x1"))}}const Mi=["CodeBlock","type","schema","indentCodeBlock","forceValue","get","getSelectedBlocks","commands","markBlockFormat","registerDescriptionCallback","locale","_descriptionFactory","TrackChangesEditing","*Remove format:* %0","format","commandParams","language","codeBlock","plugins","*Set format:* %0","languages","ELEMENT_CODE_BLOCK","rootElement","change","parent","filter","isLimit","commandName","enableCommand","has","document","from","afterInit","model","value","registerElementLabel","editor"];var wi,Oi;wi=Mi,Oi=275,function(t){for(;--t;)wi.push(wi.shift())}(++Oi);const Fi=function(t,e){return Mi[t-=0]};class Di extends t.Plugin{[Fi("0x10")](){const t=this[Fi("0x14")];if(!t.plugins[Fi("0xd")](Fi("0x15")))return;const e=t[Fi("0x2")][Fi("0x1a")](Fi("0x21")),n=t[Fi("0x1f")],o=t.config[Fi("0x1a")]("codeBlock")[Fi("0x4")],i=t[Fi("0x1c")].get("codeBlock");e[Fi("0xc")](Fi("0x18")),e[Fi("0xc")]("outdentCodeBlock"),e[Fi("0xc")](Fi("0x1"),((n,r={})=>{const s=t[Fi("0x11")],x=t[Fi("0x11")][Fi("0xe")].selection,a=r&&void 0!==r[Fi("0x19")]?r[Fi("0x19")]:!i[Fi("0x12")];let c;r[Fi("0x0")]||(r.language=o[0][Fi("0x0")]),c=a?Array[Fi("0xf")](x[Fi("0x1b")]())[Fi("0x9")]((t=>{return Bi(t)||(e=t,n=s[Fi("0x17")],!e.is(Fi("0x6"))&&!n[Fi("0xa")](e)&&n.checkChild(e[Fi("0x8")],Fi("0x1")));var e,n})):Array.from(x[Fi("0x1b")]())[Fi("0x9")]((t=>Bi(t)));const l=v(c,s);s[Fi("0x7")]((()=>{for(const t of l)e[Fi("0x1d")](t,{commandName:Fi("0x1"),commandParams:[{...r,forceValue:a}],formatGroupId:"blockName"})}))})),e[Fi("0x20")][Fi("0x13")](Fi("0x1"),(t=>Qo(n,Fi("0x5"),t))),e._descriptionFactory[Fi("0x1e")]((t=>{if("formatBlock"!=t[Fi("0x16")])return;const e=n.t,{data:i}=t;if(!i||Fi("0x1")!=i[Fi("0xb")])return;const r=i[Fi("0x24")][0][Fi("0x0")],s=e(o.find((t=>t.language===r)).label).toLowerCase();return i[Fi("0x24")][0][Fi("0x19")]?{type:Fi("0x23"),content:Qo(n,Fi("0x3"),Qo(n,Fi("0x5"),1)+" ("+s+")")}:{type:Fi("0x23"),content:Qo(n,Fi("0x22"),Qo(n,Fi("0x5"),1))}}))}}function Bi(t){return Fi("0x1")==t.name}const Pi=["addCommentThread","TrackChangesEditing","get","afterInit","CommentsEditing","editor","plugins","enableCommand"];var Ui,ji;Ui=Pi,ji=247,function(t){for(;--t;)Ui.push(Ui.shift())}(++ji);const Gi=function(t,e){return Pi[t-=0]};class Vi extends t.Plugin{[Gi("0x4")](){const t=this[Gi("0x6")];t[Gi("0x7")].has(Gi("0x5"))&&t.plugins[Gi("0x3")](Gi("0x2"))[Gi("0x0")](Gi("0x1"))}}var Hi=n(181);const zi=["consumable","mapper","writer","test","previousPosition","toViewPosition","markerName","elementEnd","bindElementToMarker","isContent","nextSibling","name","push","getCustomProperty","insert","addClass","addHighlight","ck-suggestion-marker--active","parent","toViewElement","span","markerRange","item","ck-suggestion-marker-","get","createRangeOn","getItems","hasAttribute","plugins","getAttribute","element","listItem","model","isLimit","createUIElement"];var Wi,Ki;Wi=zi,Ki=301,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("0x5")]())i[qi("0x6")](t)&&o[qi("0x1a")](n[qi("0x4")](i));return o}function Xi(t,e,{showActiveMarker:n=!0}={}){const o=t[qi("0x7")][qi("0x3")]("TrackChangesEditing");return(i,r,s)=>{if(!s[qi("0xe")][qi("0x11")](r[qi("0x0")],i[qi("0x19")]))return;const x=r[qi("0x0")].getWalker(),a=r[qi("0x0")].start,c=t[qi("0xb")].schema;let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[qi("0x1")];d=d||c[qi("0x17")](e);const n=s[qi("0xf")][qi("0x21")](e);if(n&&n[qi("0x1b")](qi("0x1e")))return;qi("0x15")==t.type&&c.isBlock(e)&&!c[qi("0xc")](e)&&(e[qi("0x18")]||a.isAtEnd?l&&l[qi("0x20")]==e||(l=e,f(t[qi("0x12")]),g=!0):u=u||t.previousPosition)}function f(t){const i=s[qi("0x10")][qi("0xd")](qi("0x22"),{class:qi("0x2")+e}),x=s[qi("0xf")][qi("0x13")](t);n&&o.activeMarkers.includes(r[qi("0x14")])&&s[qi("0x10")][qi("0x1d")](qi("0x1f"),i),s[qi("0x10")][qi("0x1c")](x,i),s[qi("0xf")][qi("0x16")](i,r[qi("0x14")])}d||g||!u||f(u)}}const Zi=["init","modifySelection","TrackChangesEditing","get","deleteForward","addMarker:suggestion:deletion","$graveyard","fromRange","editing","markerName","showSuggestionHighlights","removeMarker:suggestion:deletion","unit","buffer","options","delete","end","enqueueChange","enableCommand","document","root","merge","mapper","commands","detach","createSelection","writer","bind","high","batch","downcastDispatcher","remove","uiElement","getFirstRange","createRange","forward","rootName","unlock","start","editor","model"];var Yi,Ji;Yi=Zi,Ji=305,function(t){for(;--t;)Yi.push(Yi.shift())}(++Ji);const Qi=function(t,e){return Zi[t-=0]};class tr extends t.Plugin{static get requires(){return[Hi.Delete]}[Qi("0x17")](){const t=this[Qi("0x15")],e=t.plugins[Qi("0x1a")](Qi("0x19"));e[Qi("0x0")](Qi("0x26"));const n=t[Qi("0x5")][Qi("0x1a")](Qi("0x1b"));e.enableCommand("deleteForward",((e,o={})=>{const i=t[Qi("0x16")][Qi("0x7")](t[Qi("0x16")][Qi("0x1")].selection);i.isCollapsed&&t[Qi("0x16")][Qi("0x18")](i,{direction:Qi("0x11"),unit:o[Qi("0x23")]});const r=i[Qi("0xf")](),x=s.LiveRange[Qi("0x1e")](r);let a;e(o),a=Qi("0x1d")==x[Qi("0x2")][Qi("0x12")]?t[Qi("0x16")][Qi("0x10")](r.start):t[Qi("0x16")][Qi("0x10")](x[Qi("0x14")],x[Qi("0x27")]),x[Qi("0x6")](),t[Qi("0x16")][Qi("0x28")](n.buffer[Qi("0xb")],(t=>{n[Qi("0x24")].lock(),t.setSelection(t[Qi("0x10")](a[Qi("0x27")])),n[Qi("0x24")][Qi("0x13")]()}))})),t[Qi("0x1f")][Qi("0xc")].on(Qi("0x1c"),Xi(t,"merge"),{priority:Qi("0xa")}),t.data[Qi("0xc")].on("addMarker:suggestion:deletion",((e,n,o)=>{o[Qi("0x25")][Qi("0x21")]&&Xi(t,Qi("0x3"),{showActiveMarker:!1})[Qi("0x9")](this)(e,n,o)}),{priority:"high"}),t[Qi("0x1f")][Qi("0xc")].on(Qi("0x22"),((t,e,n)=>{const o=n[Qi("0x4")].markerNameToElements(e[Qi("0x20")]);if(o)for(const t of o)t.is(Qi("0xe"))&&(n[Qi("0x4")].unbindElementFromMarkerName(t,e[Qi("0x20")]),n[Qi("0x8")][Qi("0xd")](t))}),{priority:Qi("0xa")})}}const er=["createPositionAt","nodeAfter","listIndent","toUpperCase","indentList","markBlockFormat","outdentList","enableCommand","*Merge:* %0","execute","bulletedList","slice","commandParams","get","config","getRanges","editor","after","hasAttribute","*Change to:* %0","paragraph","registerElementLabel","numberedList","fromRange","containsItem","registerDescriptionCallback","ELEMENT_","ELEMENT_LIST_ITEM","list.multiBlock","nextSibling","length","format","listType","start","change","model","plugins","before","createRange","registerCustomCallback","next","mergeListItemBackward","getAttribute","*Outdent:* %0","setSelection","documentList","has","end","from","document","value","getFirstRange","detach","getSelectedBlocks","expandListBlocksToCompleteList","mergeListItemForward","_descriptionFactory","isFirstBlockOfListItem","DocumentListEditing","formatInline","deletion","forceValue","push","listItemId","commands","commandName","*Format:* remove from %0","findIndex","TrackChangesEditing","selection","isObject","*Format:* insert into %0","parent","_LIST","formatBlock","splitListItemBefore"];var nr,or;nr=er,or=395,function(t){for(;--t;)nr.push(nr.shift())}(++or);const ir=function(t,e){return er[t-=0]};class rr extends t.Plugin{afterInit(){const t=this[ir("0x1")];if(!t.plugins[ir("0x1f")](ir("0x2b")))return;const e=t.locale,n=t[ir("0x15")][ir("0x4a")](ir("0x35")),o=t[ir("0x15")][ir("0x4a")]("DocumentListUtils");function i(e){return()=>{const i=t[ir("0x31")][ir("0x4a")](e);if(i.value&&!t[ir("0x4b")][ir("0x4a")](ir("0xd")))return void t[ir("0x46")](ir("0x5"),{});let r=Array.from(t.model.document.selection[ir("0x26")]());if(a(e)){r=o[ir("0x27")](r);const t=[];for(const e of r)o[ir("0x2a")](e)&&t.push(e);r=t}t[ir("0x14")][ir("0x13")]((()=>{n.markMultiRangeBlockFormat(r,{commandName:e,commandParams:[{forceValue:!i[ir("0x23")]}],formatGroupId:ir("0x11")},[],ir("0x1e"))}))}}function r(e){return()=>{const o=function(t){let e=Array[ir("0x21")](t);const n=e[ir("0x34")]((t=>!t[ir("0x3")]("listItemId")));return n>-1&&(e=e[ir("0x48")](0,n)),e}(t.model[ir("0x22")][ir("0x36")][ir("0x26")]()),i=o[o[ir("0xf")]-1],r=t[ir("0x14")].schema[ir("0x37")](i)?ir("0x2"):"end",s=t[ir("0x14")].createRange(t[ir("0x14")].createPositionAt(o[0],"before"),t[ir("0x14")][ir("0x3d")](i,r));t[ir("0x14")][ir("0x13")]((()=>{n[ir("0x42")](s,{commandName:e,commandParams:[],formatGroupId:ir("0x11")},function(t){const e=new Set;for(const n of t){let t=n[ir("0xe")];for(;t&&t[ir("0x1b")](ir("0x3f"))>n[ir("0x1b")](ir("0x3f"));)e.add(t),t=t[ir("0xe")]}return Array[ir("0x21")](e)}(o))}))}}function x(e){return()=>{const o=t[ir("0x14")][ir("0x22")][ir("0x36")][ir("0x26")]()[ir("0x19")]()[ir("0x23")],i=t[ir("0x14")][ir("0x3d")](o,ir("0x16")),r=t.model[ir("0x3d")](o,0),s=t[ir("0x14")][ir("0x17")](i,r);t[ir("0x14")][ir("0x13")]((()=>{n[ir("0x42")](s,{commandName:e,commandParams:[],formatGroupId:ir("0x11")})}))}}function a(e){const n=t[ir("0x31")][ir("0x4a")](ir("0x47"))[ir("0x23")],o=t[ir("0x31")][ir("0x4a")](ir("0x7"))[ir("0x23")];return ir("0x7")===e?n:o}n[ir("0x44")]("numberedList",i("numberedList")),n.enableCommand(ir("0x47"),i(ir("0x47"))),n[ir("0x44")](ir("0x41"),r("indentList")),n.enableCommand(ir("0x43"),r(ir("0x43"))),n[ir("0x44")]("splitListItemAfter",x("splitListItemAfter")),n[ir("0x44")](ir("0x3c"),x("splitListItemBefore")),n[ir("0x29")][ir("0x6")]((function(e){const n=!t[ir("0x14")].schema[ir("0x37")](e),o=e.previousSibling,i=e.nextSibling,r=e[ir("0x1b")]("listItemId"),s=!o||o[ir("0x1b")](ir("0x30"))!==r,x=!i||i[ir("0x1b")](ir("0x30"))!==r;return n&&Boolean(r)&&s&&x}),(t=>Qo(e,ir("0xc"),t))),n[ir("0x29")][ir("0xa")]((function(n){if(ir("0x3b")!=n.type&&ir("0x2c")!=n.type)return;const{data:o}=n;if(!o)return;let i,r,s,x;switch(o.commandName){case ir("0x47"):s=o[ir("0x49")][0][ir("0x2e")],x=a(o.commandName),i=s?"*Format:* insert into %0":"*Format:* remove from %0",!x&&t.config[ir("0x4a")](ir("0xd"))||(i=ir("0x4")),r={type:ir("0x10"),content:Qo(e,i,Qo(e,"ELEMENT_BULLETED_LIST"))};break;case ir("0x7"):s=o[ir("0x49")][0][ir("0x2e")],x=a(o[ir("0x32")]),i=ir(s?"0x38":"0x33"),!x&&t[ir("0x4b")][ir("0x4a")]("list.multiBlock")||(i=ir("0x4")),r={type:ir("0x10"),content:Qo(e,i,Qo(e,"ELEMENT_NUMBERED_LIST"))};break;case ir("0x41"):i="*Indent:* %0",r={type:ir("0x10"),content:Qo(e,i,Qo(e,ir("0xc")))};break;case"outdentList":i=function(t){const e=t[ir("0x24")]();let n=e[ir("0x12")][ir("0x3e")];for(;n&&e[ir("0x9")](n);){if(n.getAttribute(ir("0x3f"))>0)return!1;n=n[ir("0xe")]}return!0}(n)?Qo(e,ir("0x33"),Qo(e,function(t){const e=t[ir("0x24")]()[ir("0x12")][ir("0x3e")];return ir("0xb")+e[ir("0x1b")](ir("0x11"))[ir("0x40")]()+ir("0x3a")}(n))):Qo(e,ir("0x1c"),Qo(e,ir("0xc"))),r={type:ir("0x10"),content:i};break;case ir("0x1a"):case ir("0x28"):!1===o.multipleBlocks&&(i=ir("0x45"),r={type:ir("0x2d"),content:Qo(e,i,Qo(e,ir("0xc")))})}return r})),n._suggestionFactory[ir("0x18")](ir("0x3b"),ir("0x1e"),"accept",(function(e,n){const o=[];for(let n of e)n[ir("0x12")][ir("0x3e")]===n[ir("0x20")][ir("0x39")]&&(n=t.model[ir("0x17")](t[ir("0x14")].createPositionAt(n[ir("0x12")].nodeAfter,0))),o[ir("0x2f")](n);t[ir("0x14")][ir("0x13")]((e=>{const i=t[ir("0x14")].document[ir("0x36")],r=Array[ir("0x21")](i[ir("0x0")]()).map((t=>s.LiveRange[ir("0x8")](t)));e[ir("0x1d")](o),t[ir("0x31")][ir("0x4a")](n[ir("0x32")]).refresh(),n.commandParams.push({forceDefaultExecution:!0}),t[ir("0x46")](n.commandName,...n.commandParams),e.setSelection(r);for(const t of r)t[ir("0x25")]()}))}))}}const sr=["replace","*Format:* set order to reversed","*Format:* set start index to %0","reversed","_getSuggestionBlocksForListStyle","_getSuggestionBlocks","handleListStyleCommand","format","_LIST_","length","numbered","handleListReversedCommand","*Change to:* %0","editor","formatBlock","list.properties","document","plugins","listStart","change","*Format:* set order to regular","selection","getSelectedBlocks","bind","type","listReversed","afterInit","startIndex","markMultiRangeBlockFormat","commandParams","config","model","listStyle","listType","get","filter","enableCommand","push","isListItemBlock","handleListStartCommand","expandListBlocksToCompleteList","from","formatInline","DocumentListPropertiesEditing","DocumentListUtils","has","TrackChangesEditing","styles","registerDescriptionCallback","isFirstBlockOfListItem","getAttribute","_getTranslationKeyForListStyle","toUpperCase","commandName"];var xr,ar;xr=sr,ar=113,function(t){for(;--t;)xr.push(xr.shift())}(++ar);const cr=function(t,e){return sr[t-=0]};class lr extends t.Plugin{[cr("0x15")](){if(!this[cr("0x8")].plugins[cr("0x28")](cr("0x26")))return;const t=this[cr("0x8")][cr("0x19")][cr("0x1d")](cr("0xa")),e=this[cr("0x8")].plugins[cr("0x1d")](cr("0x29"));t[cr("0x2a")]&&e.enableCommand(cr("0x1b"),this[cr("0x1")].bind(this)),t[cr("0x34")]&&e[cr("0x1f")](cr("0x14"),this[cr("0x6")][cr("0x12")](this)),t[cr("0x16")]&&e[cr("0x1f")](cr("0xd"),this[cr("0x22")][cr("0x12")](this)),e._descriptionFactory[cr("0x2b")](this.handleDescriptions[cr("0x12")](this))}[cr("0x1")](t,e={}){const n=this.editor[cr("0xc")][cr("0x1d")](cr("0x29")),o=this[cr("0x35")]();this[cr("0x8")][cr("0x1a")].change((()=>{n[cr("0x17")](o,{commandName:"listStyle",commandParams:[{type:e[cr("0x13")]}],formatGroupId:cr("0x1b")})}))}handleListReversedCommand(t,e={}){const n=this[cr("0x8")].plugins[cr("0x1d")](cr("0x29")),o=this.editor.plugins[cr("0x1d")](cr("0x27")),i=this[cr("0x0")]((t=>o[cr("0x21")](t)&&cr("0x5")===t.getAttribute("listType")));null!==i&&this[cr("0x8")].model[cr("0xe")]((()=>{n.markMultiRangeBlockFormat(i,{commandName:"listReversed",commandParams:[{reversed:e[cr("0x34")]}],formatGroupId:cr("0x14")})}))}[cr("0x22")](t,e={}){const n=this[cr("0x8")][cr("0xc")][cr("0x1d")]("TrackChangesEditing"),o=this.editor.plugins.get("DocumentListUtils"),i=this[cr("0x0")]((t=>o[cr("0x21")](t)&&cr("0x5")===t[cr("0x2d")](cr("0x1c"))));null!==i&&this[cr("0x8")][cr("0x1a")][cr("0xe")]((()=>{n[cr("0x17")](i,{commandName:cr("0xd"),commandParams:[{startIndex:e.startIndex}],formatGroupId:cr("0xd")})}))}handleDescriptions(t){if(cr("0x9")!=t[cr("0x13")]&&cr("0x25")!=t[cr("0x13")])return;const e=this[cr("0x8")].locale,{data:n}=t;if(!n)return;let o,i;switch(n[cr("0x30")]){case cr("0x1b"):o=cr("0x7"),i={type:cr("0x2"),content:Qo(e,o,Qo(e,this._getTranslationKeyForListStyle(n[cr("0x18")][0].type)))};break;case"listReversed":o=n[cr("0x18")][0][cr("0x34")]?cr("0x32"):cr("0xf"),i={type:cr("0x2"),content:Qo(e,o)};break;case"listStart":o=cr("0x33"),i={type:cr("0x2"),content:Qo(e,o,n[cr("0x18")][0][cr("0x16")])}}return i}_getSuggestionBlocksForListStyle(){const t=this[cr("0x8")][cr("0xc")].get(cr("0x27"));let e=Array[cr("0x24")](this.editor.model[cr("0xb")][cr("0x10")][cr("0x11")]());return e[cr("0x20")](...t[cr("0x23")](e)),e=[...new Set(e)],e}[cr("0x0")](t){const e=this[cr("0x8")][cr("0xc")][cr("0x1d")](cr("0x27"));let n=Array[cr("0x24")](this.editor[cr("0x1a")][cr("0xb")][cr("0x10")][cr("0x11")]())[cr("0x1e")](t);if(!n[cr("0x4")])return null;n=e[cr("0x23")](n);const o=[];for(const t of n)e[cr("0x2c")](t)&&o.push(t);return o}[cr("0x2e")](t){return"ELEMENT_"+this.editor[cr("0xc")][cr("0x1d")]("DocumentListPropertiesUtils").getListTypeFromListStyleType(t)[cr("0x2f")]()+cr("0x3")+t[cr("0x2f")]()[cr("0x31")](/-/g,"_")}}var ur=n(331);const dr=["enableCommand","change","removeMarker:suggestion:insertion","downcastDispatcher","enter","unbindElementFromMarkerName","commands","writer","markerName","editing","editor","createRange","afterExecute","high","requires","remove","enterBlock","model","data","getFirstRange","fire","addMarker:suggestion:insertion","document","end","parent","bind","markInsertion","split","markerNameToElements","showSuggestionHighlights","mapper","ck-suggestion-marker-split","getFirstPosition","detach"];var gr,fr;gr=dr,fr=240,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("0xc")](){return[ur.Enter]}init(){const t=this[mr("0x8")],e=t.plugins.get("TrackChangesEditing"),n=t[mr("0x4")].get(mr("0x2"));e[mr("0x20")](mr("0x2"),(()=>{t[mr("0xf")][mr("0x21")]((o=>{const i=t[mr("0xf")][mr("0x14")].selection,r=i[mr("0x1e")](),x=s.LiveRange.fromRange(i[mr("0x11")]());if(n[mr("0xe")](o)){const n=t[mr("0xf")].createPositionAt(r[mr("0x16")].nextSibling,0),i=o.createRange(r,n);e[mr("0x18")](i)}else o.setSelection(o[mr("0x9")](x[mr("0x15")]));x[mr("0x1f")](),n[mr("0x12")](mr("0xa"),{writer:o})}))})),t.editing.downcastDispatcher.on(mr("0x13"),Xi(t,mr("0x19")),{priority:"high"}),t[mr("0x7")][mr("0x1")].on(mr("0x0"),((t,e,n)=>{const o=n[mr("0x1c")][mr("0x1a")](e[mr("0x6")]);if(o)for(const t of o)t.hasClass(mr("0x1d"))&&(n.mapper[mr("0x3")](t,e[mr("0x6")]),n[mr("0x5")][mr("0xd")](t))}),{priority:mr("0xb")}),t[mr("0x10")][mr("0x1")].on(mr("0x13"),((e,n,o)=>{o.options[mr("0x1b")]&&Xi(t,mr("0x19"),{showActiveMarker:!1})[mr("0x17")](this)(e,n,o)}),{priority:"high"})}}const pr=["enableCommand","createRange","afterInit","model","replace","replaceAll","get","TrackChangesEditing","filter","_isInDeletionRange","getIntersection","getMarkersGroup","markers","handleFindCommand","item","findNext","has","createPositionAt","bind","find","editor","FindAndReplaceEditing","plugins","findPrevious","string"];var br,Er;br=pr,Er=406,function(t){for(;--t;)br.push(br.shift())}(++Er);const _r=function(t,e){return pr[t-=0]};class Tr extends t.Plugin{[_r("0x15")](){if(!this.editor[_r("0x10")][_r("0xa")](_r("0xf")))return;const t=this[_r("0xe")][_r("0x10")][_r("0x0")](_r("0x1"));t[_r("0x13")](_r("0xd"),this[_r("0x7")][_r("0xc")](this)),t[_r("0x13")](_r("0x9")),t.enableCommand(_r("0x11")),t[_r("0x13")](_r("0x17")),t[_r("0x13")](_r("0x18"))}[_r("0x7")](t,e,n={}){const o=this[_r("0xe")][_r("0x10")][_r("0x0")]("FindAndReplaceUtils");return t((t=>(_r("0x12")==typeof e?o.findByTextCallback(e,n):e)(t)[_r("0x2")]((e=>!1===this._isInDeletionRange(e,t[_r("0x8")])))),n)}[_r("0x3")](t,e){const n=this[_r("0xe")].model[_r("0x14")](this[_r("0xe")][_r("0x16")][_r("0xb")](e,t.start),this[_r("0xe")][_r("0x16")][_r("0xb")](e,t.end));for(const t of this[_r("0xe")][_r("0x16")][_r("0x6")][_r("0x5")]("suggestion:deletion"))if(null!==n[_r("0x4")](t.getRange()))return!0;return!1}}const yr=["*Set font color:* %0","FontFamilyEditing","format","commandName","fontFamily","fontColor","toLowerCase","trim","fontBackgroundColor.colors","*Reset font color*","has","value","plugins","FontColorEditing","formatInline","label","FontSize","_registerLegacyDescription","*Reset font size*","find","fontColor.colors","*Set font background color:* %0","_descriptionFactory","type","editor","fontSize","fontBackgroundColor","*Reset font background color*","model","FontSizeEditing","normalizeSizeOptions","get","fontSize.options","afterInit","*Set font family:* %0","commandParams","locale","TrackChangesEditing","registerAttributeLabel","title","FontBackgroundColorEditing","config","_enableDefaultAttributesIntegration"];var Cr,Ar;Cr=yr,Ar=271,function(t){for(;--t;)Cr.push(Cr.shift())}(++Ar);const kr=function(t,e){return yr[t-=0]},Ir=[{pluginName:kr("0x10"),commandName:kr("0xc")},{pluginName:kr("0x1f"),commandName:kr("0x22")},{pluginName:kr("0x0"),commandName:kr("0x23")},{pluginName:kr("0x1b"),commandName:"fontBackgroundColor"}];class Rr extends t.Plugin{[kr("0x14")](){const t=this[kr("0xb")][kr("0x17")],e=this[kr("0xb")].plugins[kr("0x12")](kr("0x18"));for(const{pluginName:t,commandName:n}of Ir)this.editor[kr("0x2a")][kr("0x28")](t)&&e[kr("0x1d")](n,[n]);t.t,e._descriptionFactory[kr("0x19")](kr("0xc"),Qo(t,"FORMAT_FONT_SIZE")),e[kr("0x9")][kr("0x19")]("fontFamily",Qo(t,"FORMAT_FONT_FAMILY")),e[kr("0x9")][kr("0x19")](kr("0x23"),Qo(t,"FORMAT_FONT_COLOR")),e[kr("0x9")].registerAttributeLabel(kr("0xd"),Qo(t,"FORMAT_FONT_BACKGROUND")),this[kr("0x4")]()}[kr("0x4")](){const t=this[kr("0xb")],e=t[kr("0x17")];t[kr("0x2a")][kr("0x12")](kr("0x18"))[kr("0x9")].registerDescriptionCallback((t=>{const n=e.t;if(kr("0x1")!=t[kr("0xa")])return;const{data:o}=t;if(null!=o){if(kr("0xc")==o.commandName){const t=o[kr("0x16")][0][kr("0x29")];if(t){const o=n(this[kr("0xb")][kr("0x2a")][kr("0x12")](kr("0x3"))[kr("0x11")](this.editor[kr("0x1c")].get(kr("0x13")))[kr("0x6")]((e=>e[kr("0xf")]==t))[kr("0x1a")])[kr("0x24")]();return{type:kr("0x20"),content:Qo(e,"*Set font size:* %0",o)}}return{type:kr("0x20"),content:Qo(e,kr("0x5"))}}if(kr("0x22")==o[kr("0x21")]){const t=o[kr("0x16")][0][kr("0x29")];return t?{type:kr("0x20"),content:Qo(e,kr("0x15"),t)}:{type:kr("0x20"),content:Qo(e,"*Reset font family*")}}if("fontColor"==o[kr("0x21")]){const t=o[kr("0x16")][0][kr("0x29")];if(t){const o=(0,i.normalizeColorOptions)(this[kr("0xb")][kr("0x1c")][kr("0x12")](kr("0x7")))[kr("0x6")]((e=>e[kr("0xf")]==t));let r=t,s="";return o&&(r=o[kr("0x2")],s=n(r)[kr("0x24")]()),{type:kr("0x20"),content:Qo(e,kr("0x1e"),s).trim(),color:{value:t,title:s||r}}}return{type:kr("0x20"),content:Qo(e,kr("0x27"))}}if(kr("0xd")==o[kr("0x21")]){const t=o.commandParams[0].value;if(t){const o=(0,i.normalizeColorOptions)(this.editor[kr("0x1c")][kr("0x12")](kr("0x26")))[kr("0x6")]((e=>e[kr("0xf")]==t));let r=t,s="";return o&&(r=o[kr("0x2")],s=n(r).toLowerCase()),{type:kr("0x20"),content:Qo(e,kr("0x8"),s)[kr("0x25")](),color:{value:t,title:s||r}}}return{type:kr("0x20"),content:Qo(e,kr("0xe"))}}}}))}}const vr=["commandName","commandParams","formatBlock","fontBackgroundColor","entries","pasteFormat","push","model","locale","type","split","fontColor","*Remove all formatting*","normalizeSizeOptions","editor","config","_enableDefaultAttributesIntegration","length","_descriptionFactory","fontColor.colors","find","*Set format to:* %0","FontSize","enableCommand","label","fontSize.options","_registerLegacyDescription","registerDescriptionCallback","get","plugins","copyFormat","boolean","TrackChangesEditing","toLowerCase","formatInline","commands","afterInit"];var Sr,Nr;Sr=vr,Nr=411,function(t){for(;--t;)Sr.push(Sr.shift())}(++Nr);const Lr=function(t,e){return vr[t-=0]};class Mr extends t.Plugin{[Lr("0x20")](){const t=this[Lr("0xa")],e=t[Lr("0x19")][Lr("0x18")]("TrackChangesEditing"),n=t[Lr("0x1f")][Lr("0x18")]("copyFormat"),o=t[Lr("0x1f")][Lr("0x18")](Lr("0x1"));n&&o&&(e[Lr("0xc")](Lr("0x1")),e[Lr("0x13")](Lr("0x1a")),this[Lr("0x16")]())}[Lr("0x16")](){const t=this[Lr("0xa")],e=t[Lr("0x4")];t[Lr("0x19")][Lr("0x18")](Lr("0x1c"))[Lr("0xe")][Lr("0x17")]((n=>{if(Lr("0x23")!=n.type&&Lr("0x1e")!=n[Lr("0x5")])return;const{data:o}=n;if(o&&"pasteFormat"===o[Lr("0x21")]){const n=[],i=o[Lr("0x22")][0];for(const[e,o]of Object[Lr("0x0")](i))n[Lr("0x2")](wr(t,e,o));return n[Lr("0xd")]?{type:"format",content:Qo(e,Lr("0x11"),n.join(", "))}:{type:"format",content:Qo(e,Lr("0x8"))}}}))}}function wr(t,e,n){const o=t[Lr("0x4")].t,r=e[Lr("0x6")](/(?=[A-Z])/).join(" "),s=o(r.charAt(0).toUpperCase()+r.slice(1))[Lr("0x1d")]();if(Lr("0x1b")==typeof n)return s;if(Lr("0x7")===e||Lr("0x24")===e){const e=(0,i.normalizeColorOptions)(t[Lr("0xb")].get(Lr("0xf")))[Lr("0x10")]((t=>t.model==n));return s+" ("+(e?o(e[Lr("0x14")])[Lr("0x1d")]():n)+")"}if("fontSize"===e&&isNaN(parseFloat(n))){const e=t[Lr("0x19")].get(Lr("0x12"))[Lr("0x9")](t[Lr("0xb")][Lr("0x18")](Lr("0x15")))[Lr("0x10")]((t=>t[Lr("0x3")]==n));return s+" ("+(e?o(e.title).toLowerCase():n)+")"}return s+" ("+n+")"}const Or=["locale","TrackChangesEditing","heading","get","view","ELEMENT_HEADING_CUSTOM","registerDescriptionCallback","HeadingEditing","title","registerElementLabel","ELEMENT_HEADING","*Change to:* %0","format","_descriptionFactory","heading.options","_enableDefaultAttributesIntegration","model","match","_getHeadingLevel","name","_headingOptions","afterInit","find","editor","_registerLegacyDescription","formatBlock","plugins"];var Fr,Dr;Fr=Or,Dr=178,function(t){for(;--t;)Fr.push(Fr.shift())}(++Dr);const Br=function(t,e){return Or[t-=0]};class Pr extends t.Plugin{[Br("0x5")](){const t=this[Br("0x7")];if(!t[Br("0xa")].has(Br("0x12")))return;this[Br("0x4")]=t.config[Br("0xe")](Br("0x19"));const e=t[Br("0xb")],n=t[Br("0xa")][Br("0xe")](Br("0xc"));n[Br("0x1a")](Br("0xd"));for(const t of this._headingOptions)"paragraph"!=t[Br("0x0")]&&n[Br("0x18")][Br("0x14")](t[Br("0x0")],(n=>{const o=this._getHeadingLevel(t.model);return null!==o?(s=n,x=o,Qo(e,Br("0x15"),[s,x])):(i=n,r=t[Br("0x13")],Qo(e,Br("0x10"),[i,r]));var i,r,s,x}));this[Br("0x8")]()}_registerLegacyDescription(){const t=this[Br("0x7")],e=t[Br("0xb")];t[Br("0xa")][Br("0xe")](Br("0xc"))[Br("0x18")][Br("0x11")]((t=>{if(Br("0x9")!=t.type)return;const{data:n}=t;if(n&&Br("0xd")==n.commandName){const t=n.commandParams[0].value,s=this._getHeadingLevel(t);if(null!==s)return{type:Br("0x17"),content:Qo(e,"*Change to:* %0",(1,r=s,Qo(e,"ELEMENT_HEADING",[1,r])))};const x=this[Br("0x4")][Br("0x6")]((e=>e[Br("0x0")]===t)).title;return{type:Br("0x17"),content:Qo(e,Br("0x16"),(o=1,i=x,Qo(e,Br("0x10"),[o,i])))}}var o,i,r}))}[Br("0x2")](t){var e,n;const o=t[Br("0x1")](/^heading(\d+)/);if(o)return o[1];const i=null===(e=this[Br("0x4")])||void 0===e?void 0:e[Br("0x6")]((e=>e[Br("0x0")]==t));if(i&&i[Br("0xf")]){const t=i.view,e=(null!==(n=t[Br("0x3")])&&void 0!==n?n:t)[Br("0x1")](/^h(\d+)/);if(e)return e[1]}return null}}const Ur=["toLowerCase","commandName","editor","TrackChangesEditing","highlight.options","highlight","_enableDefaultAttributesIntegration","has","find","locale","type","_registerLegacyDescription","formatInline","model","get","*Set highlight:* %0","_descriptionFactory","commandParams","*Remove highlight*","registerDescriptionCallback","format","FORMAT_HIGHLIGHT","plugins","registerAttributeLabel","title","afterInit"];var jr,Gr;jr=Ur,Gr=275,function(t){for(;--t;)jr.push(jr.shift())}(++Gr);const Vr=function(t,e){return Ur[t-=0]};class Hr extends t.Plugin{[Vr("0xa")](){const t=this[Vr("0xd")];if(!t[Vr("0x7")][Vr("0x12")]("HighlightEditing"))return;const e=t[Vr("0x7")][Vr("0x19")](Vr("0xe")),n=t.locale;e[Vr("0x11")](Vr("0x10"),[Vr("0x10")]),e[Vr("0x1")][Vr("0x8")](Vr("0x10"),Qo(n,Vr("0x6"))),this._registerLegacyDescription()}[Vr("0x16")](){const t=this[Vr("0xd")],e=t[Vr("0x14")];t[Vr("0x7")][Vr("0x19")](Vr("0xe"))[Vr("0x1")][Vr("0x4")]((n=>{if(Vr("0x17")!=n[Vr("0x15")])return;const{data:o}=n;if(o&&Vr("0x10")==o[Vr("0xc")]){const n=e.t,i=o[Vr("0x2")][0].value;if(i){const o=t.config[Vr("0x19")](Vr("0xf"))[Vr("0x13")]((t=>t[Vr("0x18")]==i)),r=n(o[Vr("0x9")])[Vr("0xb")]();return{type:"format",content:Qo(e,Vr("0x0"),r),color:{value:o.color,title:o[Vr("0x9")]}}}return{type:Vr("0x5"),content:Qo(e,Vr("0x3"),Qo(e,"FORMAT_HIGHLIGHT"))}}}))}}const zr=["createPositionAt","locale","ELEMENT_HORIZONTAL_LINE","showSuggestionHighlights","for","_descriptionFactory","plugins","editor","enableCommand","conversion","createContainerElement","high","get","createEmptyElement","HorizontalLineEditing","afterInit","addClass","elementToStructure","TrackChangesEditing","dataDowncast"];var Wr,Kr;Wr=zr,Kr=477,function(t){for(;--t;)Wr.push(Wr.shift())}(++Kr);const qr=function(t,e){return zr[t-=0]};class $r extends t.Plugin{[qr("0x12")](){const t=this[qr("0xa")];if(!t[qr("0x9")].has(qr("0x11")))return;t[qr("0x9")][qr("0xf")](qr("0x1"))[qr("0xb")]("horizontalLine");const e=t[qr("0x9")].get("TrackChangesEditing"),n=t[qr("0x4")];e[qr("0x8")].registerElementLabel("horizontalLine",(t=>Qo(n,qr("0x5"),t))),t[qr("0xc")][qr("0x7")](qr("0x2"))[qr("0x0")]({model:"horizontalLine",view:(t,{writer:e,options:n})=>{if(!n[qr("0x6")])return null;const o=e[qr("0xd")]("div"),i=e[qr("0x10")]("hr");return e[qr("0x13")]("ck-horizontal-line",o),e.insert(e[qr("0x3")](o,0),i),o},converterPriority:qr("0xe")})}}const Xr=["format","plugins","formatBlock","type","TrackChangesEditing","registerElementLabel","_descriptionFactory","locale","has","attribute","value","get","registerDescriptionCallback","htmlEmbed","getFirstRange","key","ELEMENT_HTML_EMBED","afterInit","commandName","editor","_registerLegacyDescription"];var Zr,Yr;Zr=Xr,Yr=207,function(t){for(;--t;)Zr.push(Zr.shift())}(++Yr);const Jr=function(t,e){return Xr[t-=0]};class Qr extends t.Plugin{[Jr("0x14")](){const t=this[Jr("0x1")];if(!t[Jr("0x4")][Jr("0xb")]("HtmlEmbed"))return;const e=t[Jr("0x4")][Jr("0xe")]("TrackChangesEditing"),n=t[Jr("0xa")];e[Jr("0x9")][Jr("0x8")]("rawHtml",(t=>Qo(n,"ELEMENT_HTML_EMBED",t))),e._enableDefaultAttributesIntegration(Jr("0x10"),[],[Jr("0xd")]),e[Jr("0x9")][Jr("0xf")]((t=>{if(Jr("0xc")!=t.type)return;const{data:e}=t;if(e&&Jr("0xd")==e[Jr("0x12")]&&t[Jr("0x11")]().start.nodeAfter.is("element","rawHtml")){const t=Qo(n,Jr("0x13"));return{type:Jr("0x3"),content:Qo(n,"*Change %0 content*",t)}}})),this[Jr("0x2")]()}_registerLegacyDescription(){const t=this[Jr("0x1")],e=t[Jr("0xa")];t[Jr("0x4")].get(Jr("0x7"))[Jr("0x9")][Jr("0xf")]((t=>{if(Jr("0x5")!=t[Jr("0x6")])return;const{data:n}=t;if(n&&Jr("0x10")==n[Jr("0x0")]){const t=Qo(e,Jr("0x13"));return{type:"format",content:Qo(e,"*Change %0 content*",t)}}}))}}const ts=["toggleImageCaption","isEqual","alt","isBefore","locale","removeObject","convertInlineImageToBlock","discard","afterInit","registerElementLabel","ImageResize","markDeletion","Block image to inline image","markInsertion","commandName","commandParams","start","toPrevious","ImageUtils","plugins","newValue","_descriptionFactory","chain","*Reset image width*","getFirstRange","createRange","isCollapsed","Inline image to block image","fromPosition","getClosestSelectedImageElement","document","join","editor","nodeBefore","registerCustomCallback","resizeImage","isOwn","key","_enableDefaultAttributesIntegration","ImageCaptionUtils","format","insertion","caption","getNearestSelectionRange","_findSuggestions","isBlockImage","imageInline","imageStylePreApply","getContainedElement","formatInline","findIndex","formatBlock","end","convertBlockImageToInline","forceDefaultExecution","imageTextAlternative","imageBlock","ImageEditing","forward","change","selection","*Set image text alternative:* %0","model","ImageTextAlternativeEditing","registerDescriptionCallback","_registerLegacyDescription","ELEMENT_INLINE_IMAGE","length","get","imageTypeInline","getSuggestionCallback","ELEMENT_IMAGE","has","createRangeOn","ELEMENT_CAPTION","schema","deletion","imageTypeBlock","registerAttributeLabel","detach","accept","imageCaption","subType","*Remove image text alternative*","ImageCaptionEditing","element","backward","type","enableCommand","FORMAT_IMAGE_SIZE","resizedWidth","TrackChangesEditing","nodeAfter","_suggestionFactory","ImageBlockEditing","markBlockFormat","width"];var es,ns;es=ts,ns=329,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class is extends t.Plugin{[os("0x43")](){const t=this[os("0x5b")];if(!t.plugins.has(os("0x13")))return;const e=t[os("0x4e")].get(os("0x35")),n=t.plugins[os("0x1e")](os("0x4d")),o=t[os("0x3f")];e[os("0x32")]("insertImage"),e[os("0x50")][os("0x44")](os("0x12"),(t=>Qo(o,os("0x21"),t))),e[os("0x50")][os("0x44")](os("0x8"),(t=>Qo(o,os("0x1c"),t))),e[os("0x50")][os("0x44")]("caption",(()=>Qo(o,os("0x24")))),t[os("0x4e")][os("0x22")]("ImageUploadEditing")&&e[os("0x32")]("uploadImage"),t[os("0x4e")][os("0x22")](os("0x38"))&&t[os("0x4e")][os("0x22")]("ImageInlineEditing")&&(e[os("0x32")]("imageTypeInline",((o,i)=>{const r=n[os("0x58")](t.model[os("0x59")][os("0x16")]);t[os("0x18")][os("0x15")]((()=>{e[os("0x39")](r,{commandName:os("0x1f"),commandParams:[i]},[],os("0xf"))}))})),e.enableCommand(os("0x27"),((o,i)=>{t[os("0x18")][os("0x15")]((r=>{let x=n[os("0x58")](t.model[os("0x59")][os("0x16")]),a=r[os("0x23")](x);const c=s.LivePosition[os("0x57")](a.start,os("0x4c")),l=s.LivePosition.fromPosition(a[os("0xe")],"toNext");e[os("0x10")]((()=>o(i))),x=n[os("0x58")](t[os("0x18")].document[os("0x16")]),a=r[os("0x23")](x);const u=r[os("0x54")](c,l);c[os("0x29")](),l[os("0x29")](),e[os("0x39")](x,{commandName:"imageTypeInline",commandParams:[i]},[],os("0x41")),u[os("0x4b")][os("0x3e")](a.start)&&e[os("0x48")](r[os("0x54")](u[os("0x4b")],a[os("0x4b")]),os("0x41")),a[os("0xe")].isBefore(u[os("0xe")])&&e[os("0x48")](r[os("0x54")](a.end,u[os("0xe")]),os("0x41"))}))})),e[os("0x37")].registerCustomCallback(os("0xd"),os("0x41"),"join",(()=>!1)),e[os("0x37")][os("0x5d")](os("0xd"),"convertInlineImageToBlock","accept",(()=>!1)),e[os("0x37")][os("0x5d")](os("0xd"),os("0x41"),os("0x42"),e[os("0x37")][os("0x20")](os("0xd"),"",os("0x2a"))),e[os("0x37")].registerCustomCallback("insertion",os("0x41"),os("0x5a"),(()=>!1)),e._suggestionFactory.registerCustomCallback(os("0x3"),os("0x41"),os("0x42"),(([n])=>{const o=e[os("0x37")][os("0x20")]("insertion","",os("0x42"));let i=n[os("0x4b")],r=n[os("0xe")];const s=t[os("0x18")].schema[os("0x5")](i,os("0x30")),x=t[os("0x18")][os("0x25")].getNearestSelectionRange(r,os("0x14"));s[os("0x55")]&&(i=s.start),x[os("0x55")]&&(r=x[os("0xe")]),o([t[os("0x18")][os("0x54")](i,r)])})),e._suggestionFactory[os("0x5d")]("formatBlock",os("0x41"),"chain",x),e[os("0x37")][os("0x5d")](os("0x3"),os("0x41"),"chain",x)),t[os("0x4e")][os("0x22")](os("0x2e"))&&(e.enableCommand(os("0x3b"),((o,i)=>{const r=t.plugins[os("0x1e")](os("0x1"));let s=n.getClosestSelectedImageElement(t[os("0x18")][os("0x59")][os("0x16")]),x=r.getCaptionFromImageModelElement(s);t[os("0x18")][os("0x15")]((()=>{if(x)return void e[os("0x46")](t[os("0x18")].createRangeOn(x));const a=n[os("0x7")](s);o(i),s=n[os("0x58")](t.model[os("0x59")][os("0x16")]),x=r.getCaptionFromImageModelElement(s),e[os("0x48")](t[os("0x18")][os("0x23")](x),a?null:"imageCaption")}))})),e[os("0x37")][os("0x5d")](os("0x3"),os("0x2b"),os("0x51"),x));const i=[{type:os("0xd"),subType:os("0x9")},{type:os("0x3"),subType:os("0x2b")},{type:os("0xd"),subType:os("0x41")},{type:"insertion",subType:os("0x41")}];function r(t,o){const r=i[os("0xc")]((({type:e,subType:n})=>t.type==e&&t[os("0x2c")]==n)),s=i[os("0xc")]((({type:t,subType:e})=>o[os("0x31")]==t&&o[os("0x2c")]==e));if(r<0||s<0)return!1;const x=t[os("0x53")](),a=o[os("0x53")]();if((0==r||1==r)&&2==s&&x.isIntersecting(a))return!0;if(2==r&&3==s){const t=e[os("0x6")](x,os("0x3")).filter((({suggestion:t,meta:e})=>e[os("0x5f")]&&os("0x41")==t[os("0x2c")]));if(t[os("0x1d")]>1&&a[os("0xe")].isEqual(x[os("0x4b")]))return!0;if(1==t[os("0x1d")]&&(x.start[os("0x3c")](a.end)||x[os("0xe")][os("0x3c")](a[os("0x4b")])))return!0}if(3==r&&3==s&&x[os("0x4b")][os("0x3e")](a.start)){const t=x[os("0xe")][os("0x36")],e=a.start[os("0x5c")];return n[os("0x7")](t)&&t===e}return!1}function x(t,e){return r(t,e)?[t,e]:r(e,t)?[e,t]:null}t[os("0x4e")][os("0x22")](os("0x45"))&&(e[os("0x0")](os("0x5e"),[],[os("0x34")]),e[os("0x50")][os("0x28")](os("0x34"),Qo(o,os("0x33")))),t.plugins[os("0x22")](os("0x19"))&&e[os("0x0")](os("0x11"),[],[os("0x3d")]),e[os("0x50")].registerDescriptionCallback((t=>{if(i.find((({type:e,subType:n})=>t[os("0x31")]==e&&t.subType==n)))return t.previous?{}:void 0})),e._descriptionFactory.registerDescriptionCallback((t=>{if(os("0x3")==t[os("0x31")]||os("0x26")==t[os("0x31")]){const e=t[os("0xa")]();if(e&&e.is(os("0x2f"),os("0x4")))return{type:os("0x3")==t.type?"addObject":os("0x40"),element:e,quantity:1}}})),e._descriptionFactory[os("0x1a")]((t=>os("0xd")==t[os("0x31")]&&os("0x41")==t.subType?{type:os("0x2"),content:os("0x56")}:"formatBlock"==t[os("0x31")]&&os("0xf")==t[os("0x2c")]?{type:os("0x2"),content:os("0x47")}:void 0)),e[os("0x50")][os("0x1a")]((t=>{if("attribute"!=t.type)return;const{data:e}=t;if(!e||os("0x3d")!=e[os("0x60")])return;const n=e[os("0x4f")];return n?{type:os("0x2"),content:Qo(o,os("0x17"),'"'+n+'"')}:{type:"format",content:Qo(o,os("0x2d"))}})),this[os("0x1b")]()}_registerLegacyDescription(){const t=this.editor,e=t[os("0x3f")];t[os("0x4e")][os("0x1e")](os("0x35"))._descriptionFactory[os("0x1a")]((t=>{if(os("0xd")!=t[os("0x31")]&&os("0xb")!=t.type)return;const{data:n}=t;if(n){if(os("0x11")==n.commandName){const t=n[os("0x4a")][0][os("0x4f")];return t?{type:"format",content:Qo(e,os("0x17"),'"'+t+'"')}:{type:os("0x2"),content:Qo(e,"*Remove image text alternative*")}}if(os("0x5e")==n[os("0x49")]){const t=n.commandParams[0][os("0x3a")];return t?{type:os("0x2"),content:Qo(e,"*Set image width:* %0",t)}:{type:"format",content:Qo(e,os("0x52"))}}}}))}}const rs=["getSuggestionCallback","oldValue","newValue","has","registerDescriptionCallback","TrackChangesEditing","formatInline","attribute","discard","formatBlock","*Format:* replace image URL","afterInit","format","type","key","editor","ImageEditing","_enableDefaultAttributesIntegration","_handleLegacySuggestions","get","commandName","*Replace image URL*","_suggestionFactory","replaceImageSource","accept","_descriptionFactory","registerCustomCallback","src","locale","plugins"];var ss,xs;ss=rs,xs=406,function(t){for(;--t;)ss.push(ss.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0x19")](){if(!this.editor.plugins[as("0x11")](as("0x0")))return;const t=this[as("0x1d")][as("0xc")],e=this[as("0x1d")][as("0xd")].get(as("0x13"));e[as("0x1")](as("0x7"),[],[as("0xb")]),e[as("0x9")][as("0x12")]((e=>{if(as("0x15")!=e[as("0x1b")])return;const{data:n}=e;return n&&as("0xb")==n[as("0x1c")]?n[as("0x10")]&&n[as("0xf")]?{type:as("0x1a"),content:Qo(t,as("0x5"))}:{type:as("0x1a"),content:""}:void 0})),this[as("0x2")]()}[as("0x2")](){const t=this[as("0x1d")][as("0xd")][as("0x3")](as("0x13"));t[as("0x6")][as("0xa")]("formatBlock",as("0x7"),"accept",t._suggestionFactory[as("0xe")](as("0x17"),null,as("0x16"))),t._suggestionFactory[as("0xa")]("formatBlock",as("0x7"),as("0x16"),t[as("0x6")][as("0xe")]("formatBlock",null,as("0x8"))),this._registerLegacyDescription()}_registerLegacyDescription(){const t=this[as("0x1d")],e=t[as("0xc")];t.plugins[as("0x3")](as("0x13"))[as("0x9")][as("0x12")]((t=>{if(as("0x17")!=t.type&&as("0x14")!=t[as("0x1b")])return;const{data:n}=t;return n&&as("0x7")==n[as("0x4")]?{type:as("0x1a"),content:Qo(e,as("0x18"))}:void 0}))}}const ls=["has","createRangeOn","hasSuggestion","newRange","getContainedElement","shouldConvertImageType","formatInline","isInContent","_splitMarkerName","getFirstRange","isBlockImage","plugins","change","TrackChangesEditing","head","getSuggestions","toLowerCase","selection","registerPostFixer","ImageUtils","*Format:* %0","imageTypeBlock","findIndex","markBlockFormat","formatBlock","imageCaption","next","get","value","forEach","isInlineImage","subType","imageStylePreApply","afterInit","commandName","_registerLegacyDescription","end","getClosestSelectedImageElement","isEqual","FORMAT_SIDE_IMAGE","markInlineFormat","from","isIntersecting","ImageStyleEditing","filter","insertion","side","locale","name","imageStylePostApply","commandParams","type","isBefore","_suggestionFactory","refresh","nodeAfter","start","document","length","discard","title","model","differ","imageStyle","Users","convertInlineImageToBlock","chain","imageTypeInline","accept","setImageNaturalSizeAttributes","editor","commands","join","enableCommand","normalizedStyles","discardSuggestion","format","registerDescriptionCallback","registerCustomCallback"];var us,ds;us=ls,ds=255,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};class fs extends t.Plugin{[gs("0xf")](){const t=this.editor;if(!t.plugins[gs("0x3d")](gs("0x19")))return;const n=t[gs("0x48")][gs("0x9")](gs("0x4a")),o=t.plugins[gs("0x9")](gs("0x1")),i={};n[gs("0x37")](gs("0x2d"),((i,r)=>{const s=t.plugins[gs("0x9")](gs("0x2e")).me,x=t[gs("0x35")].get(gs("0x2d"));let a=o.getClosestSelectedImageElement(t.model[gs("0x27")][gs("0x4e")]),c=t[gs("0x2b")][gs("0x3e")](a),l=x[gs("0xa")];if(l==r.value)return;const u={commandName:gs("0x2d"),commandParams:[r],formatGroupId:(0,e.uid)()};t[gs("0x2b")][gs("0x49")]((()=>{if(n[gs("0x4c")]()[gs("0x1a")]((t=>t[gs("0x44")]&&s==t.author&&(gs("0x6")==t[gs("0x21")]||gs("0x43")==t[gs("0x21")])&&(gs("0xe")==t.subType||"imageStylePostApply"==t[gs("0xd")])&&t[gs("0x46")]()[gs("0x14")](c)))[gs("0xb")]((t=>n[gs("0x39")](t[gs("0x4b")]))),a=o[gs("0x13")](t[gs("0x2b")][gs("0x27")][gs("0x4e")]),c=t[gs("0x2b")][gs("0x3e")](a),x[gs("0x24")](),t[gs("0x35")][gs("0x9")](gs("0x31"))[gs("0x24")](),t.commands[gs("0x9")](gs("0x3"))[gs("0x24")](),l=x.value,l!=r[gs("0xa")])return o[gs("0xc")](a)&&x[gs("0x42")](r.value,a)?(i({...r,setImageSizes:!1}),a=o[gs("0x13")](t[gs("0x2b")][gs("0x27")][gs("0x4e")]),void n[gs("0x5")](a,{...u,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],gs("0xe"))):void(o[gs("0x47")](a)?n[gs("0x5")](a,u,[],gs("0x1f")):n[gs("0x16")](c,u,"imageStylePostApply"))}))}));for(const e of t[gs("0x48")].get("ImageStyleEditing")[gs("0x38")])i[e[gs("0x1e")]]=e[gs("0x2a")][gs("0x4d")]();n[gs("0x23")][gs("0x3c")](gs("0x6"),gs("0xe"),gs("0x36"),(()=>!1)),n._suggestionFactory[gs("0x3c")](gs("0x6"),gs("0x1f"),gs("0x36"),(()=>!1)),n[gs("0x23")][gs("0x3c")](gs("0x43"),gs("0x1f"),gs("0x36"),(()=>!1)),n._suggestionFactory[gs("0x3c")](gs("0x6"),gs("0xe"),gs("0x32"),(([t])=>{o[gs("0x33")](t.getContainedElement())})),n._suggestionFactory[gs("0x3c")](gs("0x6"),gs("0xe"),gs("0x29"),((t,e)=>{n[gs("0x23")].getSuggestionCallback(gs("0x6"),"",gs("0x32"))(t,{commandName:e[gs("0x10")],commandParams:e.commandReversedParams})})),n._suggestionFactory[gs("0x3c")](gs("0x6"),"imageStylePreApply",gs("0x30"),(function(t,e){return s(t,e)?[t,e]:s(e,t)?[e,t]:null}));const r=[{type:"formatBlock",subType:gs("0xe")},{type:gs("0x1b"),subType:gs("0x7")},{type:gs("0x6"),subType:gs("0x2f")},{type:gs("0x1b"),subType:gs("0x2f")}];function s(t,e){const i=r[gs("0x4")]((({type:e,subType:n})=>t.type==e&&t.subType==n)),s=r[gs("0x4")]((({type:t,subType:n})=>e[gs("0x21")]==t&&e[gs("0xd")]==n));if(i<0||s<0)return!1;const x=t[gs("0x46")](),a=e[gs("0x46")]();if((0==i||1==i)&&2==s&&x[gs("0x18")](a))return!0;if(2==i&&3==s){const t=n._findSuggestions(x,gs("0x1b")).filter((({suggestion:t,meta:e})=>e.isOwn&&"convertInlineImageToBlock"==t[gs("0xd")]));if(t[gs("0x28")]>1&&a[gs("0x12")].isEqual(x[gs("0x26")]))return!0;if(1==t[gs("0x28")]&&(x[gs("0x26")][gs("0x14")](a[gs("0x12")])||x.end[gs("0x14")](a[gs("0x26")])))return!0}if(3==i&&3==s&&x[gs("0x26")][gs("0x22")](a[gs("0x26")])){const t=x[gs("0x12")][gs("0x25")],e=a[gs("0x26")].nodeBefore;return o.isBlockImage(t)&&t===e}return!1}t.model[gs("0x27")][gs("0x0")]((()=>{let e=!1;const i=Array[gs("0x17")](t.model[gs("0x27")][gs("0x2c")].getChangedMarkers());for(const{name:t,data:r}of i){const{group:i,type:s,subType:x,id:a}=n[gs("0x45")](t);if("suggestion"==i&&n[gs("0x3f")](a)){if("formatBlock"==s&&("imageStylePreApply"==x||gs("0x1f")==x)){const t=n.getSuggestion(a);if(r[gs("0x40")]){const i=t.getFirstRange()[gs("0x41")]();if(o[gs("0x47")](i))continue;n.discardSuggestion(t),e=!0}}if(gs("0x1b")==s&&gs("0x7")==x&&!r[gs("0x40")]){const t=n.getSuggestion(a);t[gs("0x8")]&&t[gs("0x8")][gs("0x44")]&&(n[gs("0x39")](t[gs("0x8")]),e=!0)}}}return e})),this._registerLegacyDescription(i)}[gs("0x11")](t){const e=this[gs("0x34")],n=e[gs("0x1d")];e[gs("0x48")][gs("0x9")](gs("0x4a"))._descriptionFactory[gs("0x3b")]((e=>{if(gs("0x6")!=e[gs("0x21")]&&gs("0x43")!=e[gs("0x21")])return;const{data:o}=e;if(!o||gs("0x2d")!=o[gs("0x10")])return;const i=o[gs("0x20")][0].value;return r=gs("0x1c")===i?Qo(n,gs("0x15")):t[i]||i,{type:gs("0x3a"),content:Qo(n,gs("0x2"),r)};var r}))}}const ms=["enableCommand","_trackChangesExecuted","collaboration_features","afterInit","dataInsert","editor","value","get","commands","trackChanges","_trackChangesValueDuringImport","plugins","TrackChangesEditing","forEach","Users","listenTo","importWord","high","_handleImportedData","track_changes","execute"];var hs,ps;hs=ms,ps=111,function(t){for(;--t;)hs.push(hs.shift())}(++ps);const bs=function(t,e){return ms[t-=0]};class Es extends t.Plugin{constructor(t){super(t),this._trackChangesValueDuringImport=!1,this[bs("0x10")]=!1}[bs("0x12")](){const t=this[bs("0x14")],e=t[bs("0x2")].get(bs("0xa")),n=t[bs("0x2")].get(bs("0x3"));e&&(e.on(bs("0xe"),((t,[,e])=>{this[bs("0x4")]=n[bs("0x0")],e[bs("0x11")][bs("0xd")]=!this._trackChangesValueDuringImport}),{priority:bs("0xb")}),this[bs("0x9")](e,bs("0x13"),this[bs("0xc")].bind(this)),this[bs("0x9")](e,bs("0x13"),(()=>{this[bs("0x10")]&&(n[bs("0xe")](),this[bs("0x10")]=!1)}),{priority:"lowest"}),t[bs("0x5")][bs("0x1")](bs("0x6"))[bs("0xf")](bs("0xa")))}[bs("0xc")](t,e){const{suggestions:n}=e,o=this[bs("0x14")][bs("0x2")][bs("0x1")]("trackChanges"),i=o[bs("0x0")];this[bs("0x4")]!==i&&(o.execute(),this._trackChangesExecuted=!0),n&&n[bs("0x7")]((({id:t,type:e,author:n,created_at:o})=>{const i={id:t,type:e,authorId:this[bs("0x14")][bs("0x5")][bs("0x1")](bs("0x8")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:bs("0xa")}}};this[bs("0x14")][bs("0x5")][bs("0x1")](bs("0x6"))._setSuggestionData(i)}))}}const _s=["blockIndent","getItems","registerDescriptionCallback","_registerBlockAttribute","locale","outdentBlock","get","formatBlock","indentBlock","FORMAT_INDENT","afterInit","format","IndentEditing","*Indent:* %0","outdent","TrackChangesEditing","_registerLegacyDescription","enableCommand","commandName","indent","registerAttributeLabel","_descriptionFactory","plugins","_enableDefaultAttributesIntegration","has","IndentBlock","type"];var Ts,ys;Ts=_s,ys=183,function(t){for(;--t;)Ts.push(Ts.shift())}(++ys);const Cs=function(t,e){return _s[t-=0]};class As extends t.Plugin{[Cs("0x10")](){const t=this.editor,e=t.plugins[Cs("0xc")]("TrackChangesEditing");if(t.plugins[Cs("0x3")](Cs("0x12"))&&(e[Cs("0x17")](Cs("0x19")),e[Cs("0x17")](Cs("0x14"))),t[Cs("0x1")][Cs("0x3")](Cs("0x4")))for(const t of[Cs("0xe"),Cs("0xb")])e[Cs("0x2")](t);const n=t[Cs("0xa")];e[Cs("0x9")](Cs("0x6")),e[Cs("0x0")][Cs("0x1a")]("blockIndent",Qo(n,Cs("0xf"))),this[Cs("0x16")]()}[Cs("0x16")](){const t=this.editor,e=t[Cs("0xa")],n=t.plugins[Cs("0xc")](Cs("0x15"));n[Cs("0x0")][Cs("0x8")]((t=>{if(Cs("0xd")!=t[Cs("0x5")])return;const{data:o}=t;if(!o)return;if(Cs("0xe")!=o.commandName&&Cs("0xb")!=o[Cs("0x18")])return;const i=t[Cs("0x7")]()[0],r=n[Cs("0x0")].getItemLabel(i);return"indentBlock"==o[Cs("0x18")]?{type:"format",content:Qo(e,Cs("0x13"),r)}:Cs("0xb")==o[Cs("0x18")]?{type:Cs("0x11"),content:Qo(e,"*Outdent:* %0",r)}:void 0}))}}var ks,Is,Rs=["TrackChangesEditing","enableCommand","init","plugins","get"];ks=Rs,Is=163,function(t){for(;--t;)ks.push(ks.shift())}(++Is);var vs=function(t,e){return Rs[t-=0]};class Ss extends t.Plugin{static get requires(){return[Hi.Input]}[vs("0x4")](){this.editor[vs("0x0")][vs("0x1")](vs("0x2"))[vs("0x3")]("input")}}const Ns=["link","_enableDefaultAttributesIntegration","unlink","has","commandName","commands","format","plugins","TrackChangesEditing","attribute","type","key","newValue","label","editor","*Set link:* %0","LinkEditing","get","linkHref","_descriptionFactory","map","*Remove link*","manualDecorators","registerDescriptionCallback","locale","commandParams","link ("];var Ls,Ms;Ls=Ns,Ms=484,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ms);const ws=function(t,e){return Ns[t-=0]};class Os extends t.Plugin{afterInit(){const t=this.editor;if(!t[ws("0x9")][ws("0x5")](ws("0x12")))return;const e=t[ws("0x9")].get("TrackChangesEditing"),n=t[ws("0x7")][ws("0x13")](ws("0x2"));e[ws("0x3")](ws("0x2"),[ws("0x14"),...n.manualDecorators[ws("0x16")]((t=>t.id))]),e._enableDefaultAttributesIntegration(ws("0x4"));for(const t of n[ws("0x18")])e[ws("0x15")].registerAttributeLabel(t.id,ws("0x1")+t[ws("0xf")].toLowerCase()+")");e[ws("0x15")][ws("0x19")]((e=>{if(ws("0xb")!=e[ws("0xc")])return;const{data:n}=e;if(!n||"linkHref"!=n[ws("0xd")])return;const o=n[ws("0xe")],i=t[ws("0x1a")];return{type:ws("0x8"),content:null==o?Qo(i,ws("0x17")):Qo(i,ws("0x11"),'"'+o+'"')}})),this._registerLegacyDescription()}_registerLegacyDescription(){const t=this[ws("0x10")],e=t[ws("0x1a")];t[ws("0x9")].get(ws("0xa"))._descriptionFactory[ws("0x19")]((t=>{if("formatInline"!=t[ws("0xc")])return;const{data:n}=t;if(n){if("link"==n.commandName){const t=n[ws("0x0")][0];return{type:ws("0x8"),content:Qo(e,ws("0x11"),'"'+t+'"')}}return ws("0x4")==n[ws("0x6")]?{type:ws("0x8"),content:Qo(e,ws("0x17"))}:void 0}}))}}const Fs=["todoListChecked","enableCommand","editor","selection","name","change","listIndent","*Uncheck item*","todoList","slice","plugins","checkTodoList","commandName","bulletedList","has","markBlockFormat","listType","createRange","formatBlock","schema","listItem","ELEMENT_TODO_LIST","indentList","findIndex","blockName","_descriptionFactory","createPositionAt","element","ELEMENT_NUMBERED_LIST","numberedList","format","todo","registerDescriptionCallback","parent","checkChild","model","get","add","commands","getAttribute","type","List","TodoListEditing","ELEMENT_BULLETED_LIST","previousSibling","filter","document","ListEditing","ELEMENT_LIST_ITEM","registerElementLabel","_selectedElements","nextSibling","length","outdentList","*Indent:* %0","bulleted","isObject","execute","TrackChangesEditing","push","from","forceValue","value"];var Ds,Bs;Ds=Fs,Bs=386,function(t){for(;--t;)Ds.push(Ds.shift())}(++Bs);const Ps=function(t,e){return Fs[t-=0]};class Us extends t.Plugin{afterInit(){const t=this[Ps("0x39")],e=t.locale;if(!t[Ps("0x2")][Ps("0x6")](Ps("0x27")))return;const n=t[Ps("0x2")][Ps("0x1c")](Ps("0x32")),o=t[Ps("0x2")][Ps("0x6")](Ps("0x22"));function i(e){return()=>{const o=t[Ps("0x1b")][Ps("0x26")][Ps("0x3a")],i=t[Ps("0x1e")][Ps("0x1c")](e);if(i[Ps("0x36")])return void t[Ps("0x31")]("paragraph",{});const r=e.slice(0,-4),s=function(t,e,n){let o=Array[Ps("0x34")](t)[Ps("0x25")]((t=>{return e=t,(o=n)[Ps("0x1a")](e[Ps("0x19")],Ps("0xc"))&&!o[Ps("0x30")](e);var e,o}));o=o.filter((t=>!t.is(Ps("0x13"),"listItem")||t.getAttribute(Ps("0x8"))!=e));const i=new Set;for(const t of o)t.is(Ps("0x13"),"listItem")?i.add(js(t)):i[Ps("0x1d")](t);return Array[Ps("0x34")](i)}(o.getSelectedBlocks(),r,t[Ps("0x1b")][Ps("0xb")]);t[Ps("0x1b")].change((()=>{for(const t of s)n[Ps("0x7")](t,{commandName:e,commandParams:[{forceValue:!i[Ps("0x36")]}],formatGroupId:Ps("0x10")},Gs(t))}))}}function r(e){return()=>{const o=function(t){let e=Array.from(t);const n=e[Ps("0xf")]((t=>Ps("0xc")!=t.name));return n>-1&&(e=e[Ps("0x1")](0,n)),e}(t.model.document.selection.getSelectedBlocks()),i=t[Ps("0x1b")][Ps("0x9")](t.model[Ps("0x12")](o[0],"before"),t.model[Ps("0x12")](o[o[Ps("0x2c")]-1],"end"));t[Ps("0x1b")][Ps("0x3c")]((()=>{n[Ps("0x7")](i,{commandName:e,commandParams:[],formatGroupId:Ps("0x3d")},function(t){const e=new Set;for(const n of t){let t=n[Ps("0x2b")];for(;t&&t[Ps("0x1f")](Ps("0x3d"))>n[Ps("0x1f")](Ps("0x3d"));)e.add(t),t=t[Ps("0x2b")]}return Array[Ps("0x34")](e)}(o))}))}}n[Ps("0x38")](Ps("0x15"),i(Ps("0x15"))),n[Ps("0x38")](Ps("0x5"),i(Ps("0x5"))),o&&n.enableCommand(Ps("0x0"),i(Ps("0x0"))),n.enableCommand(Ps("0xe"),r(Ps("0xe"))),n[Ps("0x38")](Ps("0x2d"),r(Ps("0x2d"))),o&&n[Ps("0x38")]("checkTodoList",(()=>{const e=t[Ps("0x1e")][Ps("0x1c")](Ps("0x3")),o=Array[Ps("0x34")](e[Ps("0x2a")]);o.filter((t=>t[Ps("0x1f")](Ps("0x37"))!=e[Ps("0x36")])),t[Ps("0x1b")].change((()=>{for(const t of o)n.markBlockFormat(t,{commandName:"checkTodoList",commandParams:[{forceValue:!e.value}]})}))})),n[Ps("0x11")][Ps("0x29")]("listItem",(t=>Qo(e,Ps("0x28"),t))),n[Ps("0x11")][Ps("0x18")]((t=>{if(Ps("0xa")!=t[Ps("0x20")]&&"formatInline"!=t.type)return;const{data:n}=t;if(n){if("numberedList"==n[Ps("0x4")]||Ps("0x5")==n.commandName||Ps("0x0")==n[Ps("0x4")])switch(n.commandName.replace(Ps("0x21"),"")){case Ps("0x2f"):return o(Qo(e,Ps("0x23")));case"numbered":return o(Qo(e,Ps("0x14")));case Ps("0x17"):return o(Qo(e,Ps("0xd")))}if(Ps("0xe")==n[Ps("0x4")])return{type:Ps("0x16"),content:Qo(e,Ps("0x2e"),Qo(e,Ps("0x28")))};if(Ps("0x2d")==n[Ps("0x4")])return{type:Ps("0x16"),content:Qo(e,"*Outdent:* %0",Qo(e,"ELEMENT_LIST_ITEM"))};if("checkTodoList"==n[Ps("0x4")])return n.commandParams[0][Ps("0x35")]?{type:"format",content:Qo(e,"*Check item*")}:{type:"format",content:Qo(e,Ps("0x3e"))}}function o(t){return{type:Ps("0x16"),content:Qo(e,"*Change to:* %0",t)}}}))}}function js(t){const e=t[Ps("0x1f")]("listIndent");if(0==e)return t;let n=t;for(;t.previousSibling&&t[Ps("0x24")].is(Ps("0x13"),Ps("0xc"));){const o=t[Ps("0x24")][Ps("0x1f")]("listIndent");if(o==e)n=t.previousSibling;else if(o<e)break;t=t[Ps("0x24")]}return n}function Gs(t){const e=[];if(t.is(Ps("0x13"),Ps("0xc"))&&t[Ps("0x1f")]("listIndent")>0){let n=t[Ps("0x2b")];for(;n&&Ps("0xc")==n[Ps("0x3b")]&&n[Ps("0x1f")](Ps("0x3d"))==t[Ps("0x1f")](Ps("0x3d"));)e[Ps("0x33")](n),n=n[Ps("0x2b")]}return e}const Vs=["*Format:* set start index to %0","ListPropertiesEditing","formatInline","_getSuggestionBlocks","_getTranslationKeyForListStyle","getSelectedBlocks","handleListStartCommand","markMultiRangeBlockFormat","_LIST_","change","_getSuggestionBlocksForListStyle","_descriptionFactory","length","registerDescriptionCallback","replace","getLastPosition","handleListReversedCommand","filter","styles","startIndex","getFirstPosition","handleListStyleCommand","before","handleDescriptions","config","format","document","selection","numbered","editor","locale","map","listStart","element","forward","type","has","afterInit","get","listItem","createRange","reversed","listReversed","getListTypeFromListStyleType","toUpperCase","model","plugins","listStyle","from","*Change to:* %0","push","bind","createPositionAt","listType","TrackChangesEditing","getSiblingNodes","*Format:* set order to reversed","commandParams","*Format:* set order to regular","unshift","formatBlock"];var Hs,zs;Hs=Vs,zs=299,function(t){for(;--t;)Hs.push(Hs.shift())}(++zs);const Ws=function(t,e){return Vs[t-=0]};class Ks extends t.Plugin{[Ws("0x2b")](){if(!this[Ws("0x23")][Ws("0x34")][Ws("0x2a")](Ws("0x7")))return;const t=this[Ws("0x23")][Ws("0x1e")].get("list.properties"),e=this[Ws("0x23")][Ws("0x34")][Ws("0x2c")](Ws("0x3c"));t[Ws("0x18")]&&e.enableCommand(Ws("0x35"),this[Ws("0x1b")][Ws("0x39")](this)),t[Ws("0x2f")]&&e.enableCommand(Ws("0x30"),this[Ws("0x16")][Ws("0x39")](this)),t[Ws("0x19")]&&e.enableCommand(Ws("0x26"),this[Ws("0xc")][Ws("0x39")](this)),e[Ws("0x11")][Ws("0x13")](this[Ws("0x1d")][Ws("0x39")](this))}[Ws("0x1b")](t,e={}){const n=this[Ws("0x23")][Ws("0x34")].get(Ws("0x3c")),o=this[Ws("0x10")]();this.editor[Ws("0x33")].change((()=>{n[Ws("0xd")](o,{commandName:Ws("0x35"),commandParams:[{type:e[Ws("0x29")]}],formatGroupId:Ws("0x35")})}))}[Ws("0x16")](t,e={}){const n=this[Ws("0x23")].plugins[Ws("0x2c")](Ws("0x3c")),o=this[Ws("0x9")]((t=>t.is(Ws("0x27"),Ws("0x2d"))&&Ws("0x22")===t.getAttribute(Ws("0x3b"))));if(o[Ws("0x12")]<1)return;const i=o[Ws("0x25")]((t=>this[Ws("0x23")][Ws("0x33")].createRange(this.editor[Ws("0x33")][Ws("0x3a")](t,"before"),this[Ws("0x23")].model.createPositionAt(t,0))));this[Ws("0x23")][Ws("0x33")].change((()=>{n[Ws("0xd")](i,{commandName:"listReversed",commandParams:[{reversed:e[Ws("0x2f")]}],formatGroupId:Ws("0x30")})}))}handleListStartCommand(t,e={}){const n=this.editor[Ws("0x34")][Ws("0x2c")](Ws("0x3c")),o=this._getSuggestionBlocks((t=>t.is(Ws("0x27"),Ws("0x2d"))&&Ws("0x22")===t.getAttribute(Ws("0x3b"))));if(o[Ws("0x12")]<1)return;const i=o[Ws("0x25")]((t=>this[Ws("0x23")].model[Ws("0x2e")](this.editor[Ws("0x33")].createPositionAt(t,Ws("0x1c")),this[Ws("0x23")][Ws("0x33")].createPositionAt(t,0))));this.editor.model[Ws("0xf")]((()=>{n[Ws("0xd")](i,{commandName:Ws("0x26"),commandParams:[{startIndex:e[Ws("0x19")]}],formatGroupId:Ws("0x26")})}))}[Ws("0x1d")](t){if(Ws("0x5")!=t[Ws("0x29")]&&Ws("0x8")!=t[Ws("0x29")])return;const e=this[Ws("0x23")][Ws("0x24")],{data:n}=t;if(!n)return;let o,i;switch(n.commandName){case Ws("0x35"):o=Ws("0x37"),i={type:"format",content:Qo(e,o,Qo(e,this._getTranslationKeyForListStyle(n[Ws("0x2")][0].type)))};break;case"listReversed":o=n[Ws("0x2")][0][Ws("0x2f")]?Ws("0x1"):Ws("0x3"),i={type:Ws("0x1f"),content:Qo(e,o)};break;case Ws("0x26"):o=Ws("0x6"),i={type:Ws("0x1f"),content:Qo(e,o,n[Ws("0x2")][0][Ws("0x19")])}}return i}_getSuggestionBlocksForListStyle(){var t,e,n,o;const i=this.editor[Ws("0x34")][Ws("0x2c")]("ListUtils");let r=Array[Ws("0x36")](this[Ws("0x23")][Ws("0x33")][Ws("0x20")][Ws("0x21")].getSelectedBlocks());return(null===(t=r[0])||void 0===t?void 0:t.is(Ws("0x27"),Ws("0x2d")))&&r[Ws("0x4")](...i[Ws("0x0")](this.editor.model[Ws("0x20")][Ws("0x21")][Ws("0x1a")](),"backward")),(null===(e=r[r[Ws("0x12")]-1])||void 0===e?void 0:e.is(Ws("0x27"),Ws("0x2d")))&&r[Ws("0x38")](...i[Ws("0x0")](this.editor[Ws("0x33")][Ws("0x20")].selection[Ws("0x15")](),Ws("0x28"))),r=[...new Set(r)],(null===(o=null===(n=this[Ws("0x23")].model[Ws("0x20")][Ws("0x21")][Ws("0x1a")]())||void 0===n?void 0:n.parent)||void 0===o?void 0:o.is(Ws("0x27"),Ws("0x2d")))&&(r=r[Ws("0x17")]((t=>t.is(Ws("0x27"),"listItem")))),r}_getSuggestionBlocks(t){const e=this[Ws("0x23")][Ws("0x34")].get("ListUtils");let n=Array[Ws("0x36")](this[Ws("0x23")][Ws("0x33")][Ws("0x20")][Ws("0x21")][Ws("0xb")]())[Ws("0x17")](t)[Ws("0x25")]((t=>{const n=this[Ws("0x23")][Ws("0x33")][Ws("0x3a")](t,0);return[...e[Ws("0x0")](n,"backward"),...e[Ws("0x0")](n,"forward")]})).flat();return n=[...new Set(n)],n}[Ws("0xa")](t){return"ELEMENT_"+this[Ws("0x23")][Ws("0x34")][Ws("0x2c")]("ListUtils")[Ws("0x31")](t)[Ws("0x32")]()+Ws("0xe")+t.toUpperCase()[Ws("0x14")](/-/g,"_")}}const qs=["locale","dataDowncast","downcastDispatcher","data","attribute:url:media","conversion","for","TrackChangesEditing","media","showSuggestionHighlights","ELEMENT_MEDIA","has","registerElementLabel","enableCommand","createEmptyElement","options","plugins","afterInit","get"];var $s,Xs;$s=qs,Xs=411,function(t){for(;--t;)$s.push($s.shift())}(++Xs);const Zs=function(t,e){return qs[t-=0]};class Ys extends t.Plugin{[Zs("0x5")](){const t=this.editor;if(!t[Zs("0x4")][Zs("0x12")]("MediaEmbedEditing"))return;const e=t[Zs("0x4")][Zs("0x6")](Zs("0xe")),n=t[Zs("0x7")];e[Zs("0x1")]("mediaEmbed"),e._descriptionFactory[Zs("0x0")](Zs("0xf"),(t=>Qo(n,Zs("0x11"),t))),t[Zs("0xc")][Zs("0xd")](Zs("0x8")).elementToElement({model:Zs("0xf"),view:(t,{writer:e,options:n})=>{if(n.showSuggestionHighlights)return e[Zs("0x2")]("div")},converterPriority:"high"}),t[Zs("0xa")][Zs("0x9")].on(Zs("0xb"),((t,e,n)=>{n[Zs("0x3")][Zs("0x10")]&&t.stop()}),{priority:"high"})}}const Js=["editor","get","mention","has","MentionEditing","afterInit","TrackChangesEditing","plugins"];var Qs,tx;Qs=Js,tx=342,function(t){for(;--t;)Qs.push(Qs.shift())}(++tx);const ex=function(t,e){return Js[t-=0]};class nx extends t.Plugin{[ex("0x7")](){const t=this[ex("0x2")];t.plugins[ex("0x5")](ex("0x6"))&&t[ex("0x1")][ex("0x3")](ex("0x0")).enableCommand(ex("0x4"))}}const ox=["enableCommand","has","afterInit","PageBreakEditing","TrackChangesEditing","plugins","ELEMENT_PAGE_BREAK","_descriptionFactory","pageBreak","get"];var ix,rx;ix=ox,rx=381,function(t){for(;--t;)ix.push(ix.shift())}(++rx);const sx=function(t,e){return ox[t-=0]};class xx extends t.Plugin{[sx("0x1")](){const t=this.editor;if(!t[sx("0x4")][sx("0x0")](sx("0x2")))return;t[sx("0x4")][sx("0x8")]("TrackChangesEditing")[sx("0x9")](sx("0x7"));const e=t[sx("0x4")][sx("0x8")](sx("0x3")),n=t.locale;e[sx("0x6")].registerElementLabel(sx("0x7"),(t=>Qo(n,sx("0x5"),t)))}}const ax=["format","_descriptionFactory","createUIElement","ELEMENT_PARAGRAPH","toViewPosition","mapper","activeMarkers","markerRange","highest","downcastDispatcher","isTouching","isBlock","consumable","TrackChangesEditing","getItemLabel","registerElementLabel","editing","checkChild","commandName","_registerLegacyDescription","*Insert:* %0","type","consume","span","includes","writer","markerName","paragraph","locale","nodeAfter","insertion","plugins","name","*Change to:* %0","start","has","_enableDefaultAttributesIntegration","end","Paragraph","editor","$text","schema","data","bindElementToMarker","ck-suggestion-marker--active","registerDescriptionCallback","model","get","ck-suggestion-marker-split","formatBlock"];var cx,lx;cx=ax,lx=453,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[ux("0x24")];if(!t[ux("0x1c")][ux("0x20")](ux("0x23")))return;const e=t[ux("0x19")],n=t.plugins[ux("0x2c")]("TrackChangesEditing");n[ux("0x30")][ux("0xc")](ux("0x18"),(t=>Qo(e,ux("0x0"),t))),n[ux("0x21")](ux("0x18")),n.enableCommand("insertParagraph"),t[ux("0xd")][ux("0x6")].on("addMarker:suggestion:insertion",gx(t),{priority:ux("0x5")}),t[ux("0x27")][ux("0x6")].on("addMarker:suggestion:insertion",((e,n,o)=>{o.options.showSuggestionHighlights&&gx(t,{showActiveMarker:!1})(e,n,o)}),{priority:"highest"});const o=n[ux("0x30")];o.registerDescriptionCallback((n=>{if("insertion"!==n[ux("0x12")])return;const{start:i,end:r}=n.getFirstRange();if(!i.isTouching(r)||!i.nodeAfter)return;const s=t[ux("0x2b")].schema,x=i.nodeAfter;return s[ux("0x8")](x)&&!s.isLimit(x)&&s[ux("0xe")](x,ux("0x25"))?{type:ux("0x1b"),content:Qo(e,ux("0x11"),o[ux("0xb")](x,1))}:void 0})),this[ux("0x10")]()}[ux("0x10")](){const t=this[ux("0x24")],e=t[ux("0x19")];t[ux("0x1c")][ux("0x2c")](ux("0xa"))[ux("0x30")][ux("0x2a")]((t=>{if(ux("0x2e")!=t[ux("0x12")])return;const{data:n}=t;return n&&ux("0x18")==n[ux("0xf")]?{type:ux("0x2f"),content:Qo(e,ux("0x1e"),Qo(e,ux("0x0")))}:void 0}))}}function gx(t,{showActiveMarker:e=!0}={}){return(n,o,i)=>{const r=t.plugins[ux("0x2c")](ux("0xa")),s=o[ux("0x4")][ux("0x1f")],x=o[ux("0x4")][ux("0x22")],a=t.model[ux("0x26")];if(!s[ux("0x7")](x)||!s[ux("0x1a")])return;const c=s.nodeAfter;if(a[ux("0x8")](c)&&!a.isLimit(c)&&a.checkChild(c,ux("0x25"))){if(!i[ux("0x9")][ux("0x13")](o[ux("0x4")],n[ux("0x1d")]))return;const t=i[ux("0x16")][ux("0x31")](ux("0x14"),{class:ux("0x2d")}),s=i[ux("0x2")][ux("0x1")](x);e&&r[ux("0x3")][ux("0x15")](o[ux("0x17")])&&i[ux("0x16")].addClass(ux("0x29"),t),i[ux("0x16")].insert(s,t),i[ux("0x2")][ux("0x28")](t,o[ux("0x17")])}}}const fx=["format","type","editor","formatBlock","afterInit","locale","TrackChangesEditing","*Remove all formatting*","has","registerDescriptionCallback","plugins","get","_registerLegacyDescription"];var mx,hx;mx=fx,hx=383,function(t){for(;--t;)mx.push(mx.shift())}(++hx);const px=function(t,e){return fx[t-=0]};class bx extends t.Plugin{[px("0xb")](){const t=this[px("0x9")];t[px("0x4")][px("0x2")]("RemoveFormatEditing")&&(t[px("0x4")][px("0x5")](px("0x0"))._enableDefaultAttributesIntegration("removeFormat"),this[px("0x6")]())}[px("0x6")](){const t=this[px("0x9")];t.plugins[px("0x5")](px("0x0"))._descriptionFactory[px("0x3")]((e=>{if(px("0xa")!=e.type&&"formatInline"!=e[px("0x8")])return;const{data:n}=e;return n&&"removeFormat"==n.commandName?{type:px("0x7"),content:Qo(t[px("0xc")],px("0x1"))}:void 0}))}}const Ex=["goToPreviousRestrictedEditingException","discardAllSuggestions","get","enableCommand","discardSelectedSuggestions","acceptAllSuggestions","RestrictedEditingModeEditing","plugins","goToNextRestrictedEditingException","acceptSuggestion"];var _x,Tx;_x=Ex,Tx=111,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const yx=function(t,e){return Ex[t-=0]};class Cx extends t.Plugin{afterInit(){const t=this.editor;if(!t[yx("0x6")].has("RestrictedEditingModeEditing"))return;const e=t[yx("0x6")].get("TrackChangesEditing");e[yx("0x2")](yx("0x9")),e.enableCommand(yx("0x7"));const n=t[yx("0x6")][yx("0x1")](yx("0x5"));n.enableCommand("trackChanges"),n[yx("0x2")](yx("0x8")),n[yx("0x2")]("discardSuggestion"),n.enableCommand(yx("0x4")),n[yx("0x2")](yx("0x0")),n[yx("0x2")]("acceptSelectedSuggestions"),n[yx("0x2")](yx("0x3"))}}const Ax=["addMarker:suggestion","softBreak","includes","createPositionBefore","getItems","addMarker:suggestion:insertion","writer","downcastDispatcher","ck-suggestion-marker--active","createUIElement","model","bindElementToMarker","insert","_descriptionFactory","enableCommand","editing","get","addMarker:suggestion:deletion","markerName","options","high","markerRange","requires","mapper","span","shiftEnter","TrackChangesEditing","split","consumable","deletion","element","locale","toViewPosition","showSuggestionHighlights","registerElementLabel","data","plugins","addClass"];var kx,Ix;kx=Ax,Ix=205,function(t){for(;--t;)kx.push(kx.shift())}(++Ix);const Rx=function(t,e){return Ax[t-=0]};class vx extends t.Plugin{static get[Rx("0x7")](){return[ur.ShiftEnter]}init(){const t=this.editor,e=t[Rx("0x15")][Rx("0x1")](Rx("0xb"));e[Rx("0x25")](Rx("0xa")),t[Rx("0x0")][Rx("0x1e")].on(Rx("0x1c"),Sx(t),{priority:Rx("0x5")}),t.editing[Rx("0x1e")].on(Rx("0x2"),Sx(t),{priority:Rx("0x5")}),t[Rx("0x14")][Rx("0x1e")].on(Rx("0x17"),((e,n,o)=>{o[Rx("0x4")][Rx("0x12")]&&Sx(t,{showActiveMarker:!1})(e,n,o)})),e[Rx("0x24")][Rx("0x13")](Rx("0x18"),(e=>Qo(t[Rx("0x10")],"ELEMENT_LINE_BREAK",e)))}}function Sx(t,{showActiveMarker:e=!0}={}){return(n,o,i)=>{const r=t.plugins.get(Rx("0xb"));if(!i[Rx("0xd")].test(o[Rx("0x6")],n.name))return;const s=t[Rx("0x21")];for(const t of o[Rx("0x6")][Rx("0x1b")]()){if(!t.is(Rx("0xf"),Rx("0x18")))continue;const n=Rx("0xe")==o[Rx("0x3")].split(":")[1]?"merge":Rx("0xc"),x=i[Rx("0x1d")][Rx("0x20")](Rx("0x9"),{class:"ck-suggestion-marker-"+n}),a=i[Rx("0x8")][Rx("0x11")](s[Rx("0x1a")](t));e&&r.activeMarkers[Rx("0x19")](o[Rx("0x3")])&&i[Rx("0x1d")][Rx("0x16")](Rx("0x1f"),x),i.writer[Rx("0x23")](a,x),i[Rx("0x8")][Rx("0x22")](x,o[Rx("0x3")])}}}const Nx=["formatBlock","commandName","isCollapsed","value","type","commandParams","StandardEditingModeEditing","FORMAT_RESTRICTED_ENABLED","commands","TrackChangesEditing","markInlineFormat","editor","document","from","restrictedEditingException","forceValue","enableCommand","format","change","plugins","FORMAT_RESTRICTED_DISABLED","selection","locale"];var Lx,Mx;Lx=Nx,Mx=149,function(t){for(;--t;)Lx.push(Lx.shift())}(++Mx);const wx=function(t,e){return Nx[t-=0]};class Ox extends t.Plugin{afterInit(){const t=this[wx("0x0")],e=t.model,n=t[wx("0xb")];if(!t.plugins.has(wx("0x12")))return;const o=t[wx("0x8")].get(wx("0x15")),i=wx("0x3"),r=t[wx("0x14")].get(i);o[wx("0x5")](i,((t,n={})=>{const s=e[wx("0x1")][wx("0xa")];if(s[wx("0xe")])return void t(n);const x=void 0!==n[wx("0x4")]?n.forceValue:!r[wx("0xf")];e[wx("0x7")]((()=>{const t=Array[wx("0x2")](s.getRanges());for(const n of t){const t=x?[n]:$i(i,n,e);for(const e of t)o[wx("0x16")](e,{commandName:i,commandParams:[{forceValue:x}]})}}))})),o._descriptionFactory.registerDescriptionCallback((t=>{if(wx("0xc")!=t.type&&"formatInline"!=t[wx("0x10")])return;const{data:e}=t;return e&&e[wx("0xd")]==i?e[wx("0x11")][0].forceValue?{type:wx("0x6"),content:Qo(n,wx("0x13"))}:{type:wx("0x6"),content:Qo(n,wx("0x9"))}:void 0}))}}const Fx=["_registerLegacyDescription","*Set format:* %0","*Remove format:* %0","forceValue","editor","format","has","normalizeConfig","_registerBlockAttribute","ghsAttributes","StyleUtils","commandParams","registerDescriptionCallback","_registerInlineAttribute","get","FORMAT_STYLE","toLowerCase","GeneralHtmlSupport","locale","_descriptionFactory","style","type","plugins","styleName","getGhsAttributeNameForElement","inline","TrackChangesEditing","config","formatInline","commandName","_enableDefaultAttributesIntegration","add","registerAttributeLabel","block","definitions"];var Dx,Bx;Dx=Fx,Bx=423,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("0x1")];if(!t[Px("0x13")][Px("0x3")]("Style")||!t[Px("0x13")].has("DataSchema"))return;const e=t.plugins.get(Px("0x17")),n=t[Px("0xf")],o=t[Px("0x18")].get("style"),i=t[Px("0x13")][Px("0xb")](Px("0xe")),r=t[Px("0x13")][Px("0xb")](Px("0x7"))[Px("0x4")](t[Px("0x13")].get("DataSchema"),o[Px("0x1f")]);e[Px("0x1b")]("style");const s=new Set;for(const t of r[Px("0x1e")]){const e=i[Px("0x15")](t.element);s[Px("0x1c")](e)}const x=new Set;for(const t of r[Px("0x16")]){const e=i[Px("0x15")](t.element);x[Px("0x1c")](e);for(const e of t[Px("0x6")])x[Px("0x1c")](e)}for(const t of s)e[Px("0x5")](t),e[Px("0x10")][Px("0x1d")](t,Qo(n,Px("0xc")));for(const t of x)e[Px("0xa")](t),e._descriptionFactory[Px("0x1d")](t,Qo(n,"FORMAT_STYLE"));this._registerLegacyDescription()}[Px("0x20")](){const t=this[Px("0x1")],e=t[Px("0xf")];t[Px("0x13")][Px("0xb")](Px("0x17"))[Px("0x10")][Px("0x9")]((t=>{if("formatBlock"!=t.type&&Px("0x19")!=t[Px("0x12")])return;const{data:n}=t;return n&&Px("0x11")===n[Px("0x1a")]?n[Px("0x8")][0][Px("0x0")]?{type:Px("0x2"),content:Qo(e,Px("0x21"),n[Px("0x8")][0][Px("0x14")][Px("0xd")]())}:{type:Px("0x2"),content:Qo(e,Px("0x22"),n[Px("0x8")][0][Px("0x14")][Px("0xd")]())}:void 0}))}}const jx=["has","subType","registerElementLabel","registerCustomCallback","tableRow","getChangedMarkers","selection","some","removeTableRow","plugins","mapper","get","MAX_SAFE_INTEGER","rootName","toViewElement","root","options","ELEMENT_TABLE_ROW_WITH_TEXT","addClass","values","document","isInContent","colspan","refresh","getItems","last","substr","change","type","toLowerCase","removeTableColumn","$graveyard","cell","insertTableRowBelow","selectTableColumn","insert","getCellLocation","nodeBefore","name","change:data","tableColumn","isTouching","registerPostFixer","_getSuggestionCoords","model","differ","from","_descriptionFactory","fromRange","tableCell","registerDescriptionCallback","createTableWalker","getColumnIndexes","removeClass","element","maxColumn","includes","createPositionAt","map","_tableSuggestions","editor","ELEMENT_TABLE_WITH_TEXT","table","order","start","oldRange","getChanges","first","findAncestor","rowspan","highest","addRange","markMultiRangeInsertion","span","_suggestionFactory","suggestion","_getCoordsForCells","isIntersectingWithRange","TableUtils","forceValue","_splitMarkerName","discard","_setupColumnsRowsFixing","TableEditing","tablePaste","execute","data","MIN_SAFE_INTEGER","$textProxy","_acceptFormatSuggestionCallbackFactory","enqueueChange","nodeAfter","isArray","join","left","getSelectionAffectedTableCells","max","insertTableColumnLeft","length","filter","detach","accept","maxRow","createRangeOn","createRangeIn","writer","every","minRow","enableCommand","insertTableRowAbove","_tablePostFixingSubtypes","above","getAttribute","locale","ELEMENT_TABLE_COLUMN_WITH_TEXT","ELEMENT_TABLE_COLUMN","hasAttribute","getFirstRange","getChildren","getRowIndexes","TrackChangesEditing","*Insert:* %0","getRanges","commands","*Remove:* %0","deletion","isEqual","end","setSelection","addMarker:suggestion","item","getSuggestion","classes","markMultiRangeDeletion","insertTableColumnRight","ELEMENT_TABLE_ROW","insertion"];var Gx,Vx;Gx=jx,Vx=302,function(t){for(;--t;)Gx.push(Gx.shift())}(++Vx);const Hx=function(t,e){return jx[t-=0]};class zx extends t.Plugin{constructor(t){super(t),this._tablePostFixingSubtypes=["tableRow",Hx("0xc")],this[Hx("0x1f")]=new Set}afterInit(){const t=this[Hx("0x20")],e=t[Hx("0x10")][Hx("0x81")][Hx("0x73")];if(!t[Hx("0x76")][Hx("0x6d")](Hx("0x37")))return;const n=t[Hx("0x55")],o=t.plugins[Hx("0x78")](Hx("0x5c")),i=t[Hx("0x76")][Hx("0x78")](Hx("0x32"));o[Hx("0x13")][Hx("0x6f")](Hx("0x22"),(t=>Qo(n,"ELEMENT_TABLE",t))),this[Hx("0x36")](),o[Hx("0x50")]("insertTable"),o.enableCommand("selectTableRow"),o[Hx("0x50")](Hx("0x6"));for(const n of[Hx("0x51"),Hx("0x5")]){const r=t[Hx("0x5f")].get(n);o.enableCommand(n,(n=>{t[Hx("0x10")].change((t=>{n();const s=Hx("0x53")===r.order,x=i[Hx("0x43")](e),a=i.getRowIndexes(x),c=s?a[Hx("0x27")]-1:a.last+1,l=x[0][Hx("0x28")](Hx("0x22")),u=i[Hx("0x17")](l,{startRow:c,endRow:c}),d=Array[Hx("0x12")](u)[Hx("0x1e")]((e=>t[Hx("0x4b")](e[Hx("0x4")])));o[Hx("0x2c")](d,Hx("0x71"))}))}))}for(const n of[Hx("0x45"),Hx("0x6a")]){const r=t[Hx("0x5f")][Hx("0x78")](n);o.enableCommand(n,(n=>{t.model[Hx("0x88")]((t=>{n();const s=Hx("0x42")===r[Hx("0x23")],x=i[Hx("0x43")](e),a=i[Hx("0x18")](x),c=s?a[Hx("0x27")]-1:a[Hx("0x86")]+1,l=x[0][Hx("0x28")]("table"),u=i[Hx("0x17")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Hx("0x12")](u).map((e=>t[Hx("0x4b")](e[Hx("0x4")])));o[Hx("0x2c")](d,Hx("0xc"))}))}))}for(const n of["removeTableRow",Hx("0x2")]){const r=n[Hx("0x87")](11),s=r[Hx("0x1")](),x=s.substr(0,3)+Hx("0x2d"),a=Hx("0x22")+r,c="min"+r,l="max"+r;o[Hx("0x50")](n,(()=>{t.model[Hx("0x88")]((t=>{const r=i[Hx("0x43")](e),u=r[0][Hx("0x28")]("table");let d;if(Hx("0x75")==n){const t=i[Hx("0x5b")](r);d={startRow:t[Hx("0x27")],endRow:t[Hx("0x86")],includeAllSlots:!0}}else{const t=i.getColumnIndexes(r);d={startColumn:t[Hx("0x27")],endColumn:t[Hx("0x86")],includeAllSlots:!0}}const g=i.createTableWalker(u,d),f=Array[Hx("0x12")](g)[Hx("0x1e")]((({cell:t})=>t)),m=Wx(f[Hx("0x47")]((t=>t[Hx("0x58")](x)))),h=Wx(f[Hx("0x47")]((t=>!t[Hx("0x58")](x))))[Hx("0x1e")]((e=>t[Hx("0x4b")](e))),p=o[Hx("0x69")](h,a);if(p&&(Hx("0x71")==p.subType||Hx("0xc")==p.subType)){const e=this._getSuggestionCoords(p);for(const n of m){const o=t[Hx("0x4b")](n),r=i[Hx("0x8")](n),a=n.getAttribute(x)-1,u=e[c],d=e[l];u<=r[s]&&r[s]+a<=d&&p[Hx("0x2b")](o)}}}))}))}function r(n){const o=Array.from(e[Hx("0x5e")]())[Hx("0x1e")]((t=>s.LiveRange[Hx("0x14")](t)));t.model[Hx("0x88")]((e=>{const i=e.batch;n=n[Hx("0x47")]((t=>Hx("0x3")!=t[Hx("0x7c")].rootName)),e.setSelection(n),t[Hx("0x5f")][Hx("0x78")](Hx("0x75"))[Hx("0x84")](),t[Hx("0x39")]("removeTableRow",{forceDefaultExecution:!0}),t[Hx("0x10")][Hx("0x3e")]((()=>{t[Hx("0x10")][Hx("0x3e")](i,(t=>{const e=o.filter((t=>Hx("0x3")!=t[Hx("0x7c")][Hx("0x7a")]));e[Hx("0x46")]>0&&t[Hx("0x64")](e);for(const t of o)t[Hx("0x48")]()}))}))}))}function a(n){t[Hx("0x10")].change((o=>{const i=Array.from(e[Hx("0x5e")]())[Hx("0x1e")]((t=>s.LiveRange[Hx("0x14")](t))),r=[];for(const t of n)for(const e of t.getItems({shallow:!0}))r.push(e);for(const e of r)Hx("0x3")!=e[Hx("0x7c")][Hx("0x7a")]&&(o[Hx("0x64")](o[Hx("0x1d")](e,0)),t[Hx("0x5f")].get(Hx("0x2"))[Hx("0x84")](),t.execute(Hx("0x2"),{forceDefaultExecution:!0}));const x=i[Hx("0x47")]((t=>"$graveyard"!=t.root[Hx("0x7a")]));x[Hx("0x46")]>0&&o[Hx("0x64")](x);for(const t of i)t[Hx("0x48")]()}))}function c(t,e){return e[Hx("0x4e")]((e=>t[Hx("0x74")]((t=>t[Hx("0x63")][Hx("0x62")](e[Hx("0x24")])||e.end[Hx("0x62")](t[Hx("0x24")])))))}function l(t,e){return t[Hx("0x74")]((t=>e[Hx("0x74")]((e=>t[Hx("0x63")][Hx("0xd")](e[Hx("0x24")])))))}t[Hx("0x3a")].downcastDispatcher.on(Hx("0x65"),((t,e,n)=>{if(!n[Hx("0x7d")].showSuggestionHighlights)return;const o=e[Hx("0x66")];if(!o)return;const i=n[Hx("0x77")][Hx("0x7b")](o);function r(t){return Array[Hx("0x40")](t)?t:[t]}i&&Hx("0x15")===o[Hx("0xa")]&&(0,x.setHighlightHandling)(i,n[Hx("0x4d")],((t,e,n)=>n[Hx("0x7f")](r(e[Hx("0x68")]),t)),((t,e,n)=>n[Hx("0x19")](r(e[Hx("0x68")]),t)))}),{priority:Hx("0x2a")}),o[Hx("0x13")][Hx("0x16")]((t=>{if("insertion"!=t[Hx("0x0")]&&Hx("0x61")!=t.type)return;const e=t.getContainedElement();if(null!=e&&e.is(Hx("0x1a"),"table")){if(Hx("0x6c")==t[Hx("0x0")]){const e=t[Hx("0x85")]()[Hx("0x47")]((t=>t.is(Hx("0x3c")))).map((t=>t[Hx("0x3a")]));if(e[Hx("0x46")])return{type:"insertion",content:Qo(n,Hx("0x5d"),Qo(n,Hx("0x21"),'"'+e.join(" ")+'"'))}}if(Hx("0x61")==t[Hx("0x0")]){const e=t[Hx("0x85")]()[Hx("0x47")]((t=>t.is("$textProxy")))[Hx("0x1e")]((t=>t.data));if(e[Hx("0x46")])return{type:Hx("0x61"),content:Qo(n,"*Remove:* %0",Qo(n,Hx("0x21"),'"'+e[Hx("0x41")](" ")+'"'))}}}})),o._descriptionFactory[Hx("0x16")]((t=>{if(Hx("0x71")==t[Hx("0x6e")]){const e=t[Hx("0x85")]()[Hx("0x47")]((t=>t.is("$textProxy")))[Hx("0x1e")]((t=>t[Hx("0x3a")])),o=this[Hx("0xf")](t),i=o[Hx("0x4a")]-o[Hx("0x4f")]+1;if("insertion"==t[Hx("0x0")])return e[Hx("0x46")]?{type:Hx("0x6c"),content:Qo(n,Hx("0x5d"),Qo(n,Hx("0x7e"),[i,'"'+e[Hx("0x41")](" ")+'"']))}:{type:Hx("0x6c"),content:Qo(n,"*Insert:* %0",Qo(n,Hx("0x6b"),i))};if("deletion"==t[Hx("0x0")])return e[Hx("0x46")]?{type:"deletion",content:Qo(n,"*Remove:* %0",Qo(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[i,'"'+e[Hx("0x41")](" ")+'"']))}:{type:"deletion",content:Qo(n,Hx("0x60"),Qo(n,Hx("0x6b"),i))}}if(Hx("0xc")==t.subType){const e=t[Hx("0x85")]()[Hx("0x47")]((t=>t.is(Hx("0x3c"))))[Hx("0x1e")]((t=>t[Hx("0x3a")])),o=this._getSuggestionCoords(t),i=o[Hx("0x1b")]-o.minColumn+1;if(Hx("0x6c")==t[Hx("0x0")])return e[Hx("0x46")]?{type:Hx("0x6c"),content:Qo(n,Hx("0x5d"),Qo(n,Hx("0x56"),[i,'"'+e.join(" ")+'"']))}:{type:Hx("0x6c"),content:Qo(n,Hx("0x5d"),Qo(n,Hx("0x57"),i))};if(Hx("0x61")==t.type)return e[Hx("0x46")]?{type:Hx("0x61"),content:Qo(n,"*Remove:* %0",Qo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[i,'"'+e.join(" ")+'"']))}:{type:Hx("0x61"),content:Qo(n,Hx("0x60"),Qo(n,Hx("0x57"),i))}}})),o[Hx("0x2e")].registerCustomCallback(Hx("0x6c"),"tableRow",Hx("0x35"),r),o[Hx("0x2e")][Hx("0x70")](Hx("0x61"),Hx("0x71"),Hx("0x49"),r),o._suggestionFactory[Hx("0x70")](Hx("0x6c"),Hx("0xc"),Hx("0x35"),a),o[Hx("0x2e")].registerCustomCallback(Hx("0x61"),"tableColumn",Hx("0x49"),a),o[Hx("0x2e")].registerCustomCallback(Hx("0x6c"),Hx("0xc"),"join",c),o[Hx("0x2e")][Hx("0x70")](Hx("0x61"),Hx("0xc"),Hx("0x41"),c),o[Hx("0x2e")].registerCustomCallback(Hx("0x6c"),Hx("0x71"),Hx("0x41"),l),o[Hx("0x2e")][Hx("0x70")](Hx("0x61"),Hx("0x71"),Hx("0x41"),l)}[Hx("0x3d")](){const t=this[Hx("0x20")],e=t[Hx("0x10")][Hx("0x81")][Hx("0x73")];return(n,o)=>{t.model[Hx("0x88")]((i=>{const{commandName:r,commandParams:x}=o;let a=n[0][Hx("0x63")][Hx("0x9")];x&&x[0]&&!1===x[0][Hx("0x33")]&&(a=n[0][Hx("0x24")][Hx("0x3f")]);const c=i[Hx("0x4c")](a);if("$graveyard"==c[Hx("0x7c")][Hx("0x7a")])return;const l=Array[Hx("0x12")](e.getRanges())[Hx("0x1e")]((t=>s.LiveRange.fromRange(t)));i[Hx("0x64")](c),t[Hx("0x5f")].get(r).refresh(),x.push({forceDefaultExecution:!0}),t.execute(r,...x);const u=l[Hx("0x47")]((t=>"$graveyard"!=t[Hx("0x7c")][Hx("0x7a")]));u[Hx("0x46")]>0&&i[Hx("0x64")](u);for(const t of l)t[Hx("0x48")]()}))}}[Hx("0x30")](t){const e=this[Hx("0x20")][Hx("0x76")].get("TableUtils");let n=Number[Hx("0x79")],o=Number[Hx("0x3b")],i=Number[Hx("0x79")],r=Number[Hx("0x3b")];for(const s of t){if(Hx("0x3")==s[Hx("0x7c")][Hx("0x7a")])continue;const{row:t,column:x}=e[Hx("0x8")](s),a=s.hasAttribute(Hx("0x29"))?s.getAttribute("rowspan")-1:0,c=s[Hx("0x58")](Hx("0x83"))?s[Hx("0x54")](Hx("0x83"))-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}}_setupColumnsRowsFixing(){const t=this[Hx("0x20")],e=t[Hx("0x76")][Hx("0x78")](Hx("0x5c")),n=t[Hx("0x76")].get(Hx("0x32"));t[Hx("0x10")][Hx("0x81")].on(Hx("0xb"),(()=>{const n=Array[Hx("0x12")](t.model[Hx("0x81")].differ[Hx("0x72")]());for(const{name:t,data:o}of n){const{group:n,id:i,subType:r}=e[Hx("0x34")](t);if(Hx("0x2f")!=n)continue;if(null!=o[Hx("0x25")])continue;const s=e[Hx("0x67")](i);this[Hx("0x52")][Hx("0x1c")](r)&&this[Hx("0x1f")].add(s)}}),{priority:"low"});const o=(t,e)=>{let o=!1;const i=e[Hx("0x4b")](t),r=t[Hx("0x28")](Hx("0x22")),s=n[Hx("0x8")](t);for(const e of this[Hx("0x1f")]){const n=e[Hx("0x6e")],x=n.startsWith(Hx("0x38")),a=n[Hx("0x87")](x?10:5),c=a.toLowerCase(),l=c[Hx("0x87")](0,3)+"span",u="min"+a,d=Hx("0x44")+a;if(!e[Hx("0x82")])continue;if(r!=e[Hx("0x59")]()[Hx("0x24")][Hx("0x28")](Hx("0x22")))continue;if(e[Hx("0x31")](i))continue;const g=t[Hx("0x58")](l)?t[Hx("0x54")](l)-1:0,f=this[Hx("0xf")](e),m=f[u],h=f[d];m<=s[c]&&s[c]+g<=h&&(e[Hx("0x2b")](i),o=!0)}return o};t[Hx("0x10")][Hx("0x81")][Hx("0xe")]((e=>{let n=!1;for(const i of t[Hx("0x10")][Hx("0x81")][Hx("0x11")][Hx("0x26")]())if(Hx("0x7")==i[Hx("0x0")])if(Hx("0x71")==i[Hx("0xa")])for(const t of i.position[Hx("0x3f")][Hx("0x5a")]())n=n||o(t,e);else"tableCell"==i[Hx("0xa")]&&(n=n||o(i.position[Hx("0x3f")],e));return n}))}[Hx("0xf")](t){return this[Hx("0x30")](t[Hx("0x5e")]()[Hx("0x1e")]((t=>t[Hx("0x24")][Hx("0x3f")])))}}function Wx(t){return Array[Hx("0x12")](new Set(t)[Hx("0x80")]())}const Kx=["locale","element","fromRange","getAncestors","author","insertion","enableCommand","document","add","TableEditing","format","getCellLocation","formatBlock","tableCell","selection","getSelectionAffectedTableCells","containsRange","low","formatInline","detach","execute","forceDefaultExecution","refresh","afterInit","registerCustomCallback","*Split cell:* horizontally","size","getSuggestions","TableUtils","markBlockFormat","$graveyard","createTableWalker","_tablePostFixingSubtypes","set:isEnabled","has","from","horizontally","mergeTableCellDown","type","change","stop","accept","splitTableCellHorizontally","splitTableCellVertically","value","get","commandName","commands","setSelection","filter","map","createRangeOn","requires","_areMergableCells","root","find","push","_descriptionFactory","model","cell","*Split cell:* vertically","return","table","plugins","mergeTableCellUp","registerDescriptionCallback","TrackChangesEditing","deletion","_acceptFormatSuggestionCallbackFactory","isEnabled","mergeTableCellLeft","editor","direction","getRanges","mergeTableCellRight","mergeTableCells","highest","_suggestionFactory","isInContent","getFirstPosition","subType"];var qx,$x;qx=Kx,$x=222,function(t){for(;--t;)qx.push(qx.shift())}(++$x);const Xx=function(t,e){return Kx[t-=0]};class Zx extends t.Plugin{static get[Xx("0x49")](){return[zx]}[Xx("0x2c")](){const t=this.editor,e=t[Xx("0x4f")][Xx("0x1c")].selection,n=t[Xx("0x15")];if(!t[Xx("0x3")].has(Xx("0x1e")))return;const o=t[Xx("0x3")][Xx("0x42")](Xx("0x6")),i=t[Xx("0x3")][Xx("0x42")]("TableUtils"),r=t[Xx("0x3")][Xx("0x42")](zx);r[Xx("0x35")][Xx("0x4d")](Xx("0xf")),o[Xx("0x1b")](Xx("0xf"),(()=>{const e=i[Xx("0x24")](t.model.document[Xx("0x23")]);t[Xx("0x4f")][Xx("0x3c")]((()=>{o.markMultiRangeBlockFormat(e,{commandName:"mergeTableCells",commandParams:[]},[],Xx("0xf"))}))})),t[Xx("0x44")][Xx("0x42")](Xx("0xf")).on(Xx("0x29"),((e,n)=>{t[Xx("0x44")][Xx("0x42")]("trackChanges")[Xx("0x41")]&&(n.length>0&&n[n.length-1]&&n[n.length-1][Xx("0x2a")]||o._isForcedDefaultExecutionBlock||this._areSelectedCellsMergable()||e.stop())}),{priority:Xx("0x10")});for(const e of[Xx("0x4"),Xx("0xe"),Xx("0x3a"),Xx("0xa")]){const n=t.commands[Xx("0x42")](e);o[Xx("0x1b")](e,(()=>{const e=t.model.document[Xx("0x23")][Xx("0x13")]()[Xx("0x18")]().find((t=>t.is(Xx("0x16"),Xx("0x22")))),i=n[Xx("0x41")];t.model[Xx("0x3c")]((()=>{o.markMultiRangeBlockFormat([e,i],{commandName:Xx("0xf"),commandParams:[]},[],Xx("0xf"))}))}))}for(const e of[Xx("0x40"),Xx("0x3f")]){const n=t[Xx("0x44")].get(e);o[Xx("0x1b")](e,(()=>{const r=i.getSelectionAffectedTableCells(t[Xx("0x4f")][Xx("0x1c")][Xx("0x23")])[0],s=r.findAncestor(Xx("0x2")),{column:x,row:a}=i[Xx("0x20")](r);let c=[];if(Xx("0x39")==n[Xx("0xc")]){const t=i[Xx("0x34")](s,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Xx("0x38")](t)[Xx("0x47")]((t=>t[Xx("0x50")]))}else{const t=i.createTableWalker(s,{column:x,includeAllSlots:!0});c=Array[Xx("0x38")](t)[Xx("0x47")]((t=>t.cell))}t[Xx("0x4f")][Xx("0x3c")]((t=>{o[Xx("0x32")](t[Xx("0x48")](r),{commandName:e,commandParams:[]},c,e)}))}))}o._descriptionFactory[Xx("0x5")]((t=>{if("formatBlock"!=t[Xx("0x3b")]&&Xx("0x27")!=t.type)return;const{data:e}=t;return e&&"mergeTableCells"==e.commandName?{type:Xx("0x1f"),content:Qo(n,"*Merge cells*")}:void 0})),o[Xx("0x4e")].registerDescriptionCallback((t=>{if(Xx("0x21")!=t.type&&Xx("0x27")!=t[Xx("0x3b")])return;const{data:e}=t;return e?Xx("0x40")==e[Xx("0x43")]?{type:"format",content:Qo(n,Xx("0x0"))}:Xx("0x3f")==e[Xx("0x43")]?{type:"format",content:Qo(n,Xx("0x2e"))}:void 0:void 0}));const x=r[Xx("0x8")]();for(const t of[Xx("0x4"),Xx("0xe"),Xx("0x3a"),"mergeTableCellLeft"])o._suggestionFactory.registerCustomCallback(Xx("0x21"),t,Xx("0x3e"),x);for(const t of[Xx("0x40"),"splitTableCellHorizontally"])o._suggestionFactory[Xx("0x2d")](Xx("0x21"),t,Xx("0x3e"),x);o[Xx("0x11")][Xx("0x2d")]("formatBlock","mergeTableCells","accept",(n=>{t[Xx("0x4f")][Xx("0x3c")]((o=>{const i=Array[Xx("0x38")](e[Xx("0xd")]())[Xx("0x47")]((t=>s.LiveRange[Xx("0x17")](t)));o[Xx("0x45")](n),t.commands[Xx("0x42")](Xx("0xf"))[Xx("0x2b")](),t[Xx("0x29")](Xx("0xf"),{forceDefaultExecution:!0});const r=i[Xx("0x46")]((t=>Xx("0x33")!=t[Xx("0x4b")].rootName));r.length>0&&o[Xx("0x45")](r);for(const t of i)t[Xx("0x28")]()}))}));for(const e of["mergeTableCellUp","mergeTableCellDown",Xx("0xa"),Xx("0xe")]){const n=t[Xx("0x44")][Xx("0x42")](e);n.on(Xx("0x36"),((e,o,i)=>{if(i){const o=t[Xx("0x4f")][Xx("0x1c")][Xx("0x23")].getFirstPosition().getAncestors()[Xx("0x4c")]((t=>t.is(Xx("0x16"),"tableCell")));this._areMergableCells(n.value,o)||(e[Xx("0x1")]=!1,e[Xx("0x3d")]())}}),{priority:Xx("0x26")})}}_areSelectedCellsMergable(){const t=this[Xx("0xb")].commands[Xx("0x42")]("mergeTableCells"),e=this[Xx("0xb")].plugins.get(Xx("0x31"));if(!t[Xx("0x9")])return!1;const n=e[Xx("0x24")](this.editor[Xx("0x4f")].document[Xx("0x23")]);for(const t of n)for(const e of n)if(t!=e&&!this[Xx("0x4a")](t,e))return!1;return!0}_areMergableCells(t,e){const n=this[Xx("0xb")][Xx("0x3")][Xx("0x42")](Xx("0x6")),o=this[Xx("0xb")][Xx("0x4f")][Xx("0x48")](t),i=this.editor[Xx("0x4f")].createRangeOn(e),r=new Set,s=new Set;for(const t of n[Xx("0x30")]())if((Xx("0x1a")==t[Xx("0x3b")]||Xx("0x7")==t.type||"mergeTableCells"==t[Xx("0x14")])&&t[Xx("0x12")])for(const e of t[Xx("0xd")]())e[Xx("0x25")](o,!0)&&r.add(t[Xx("0x3b")]+":"+t.author.id),e.containsRange(i,!0)&&s[Xx("0x1d")](t[Xx("0x3b")]+":"+t[Xx("0x19")].id);if(r.size!=s[Xx("0x2f")])return!1;for(const t of r)if(!s[Xx("0x37")](t))return!1;return!0}}const Yx=["markerName","removeMarker:suggestion","start","requires","TableEditing","format","highest","get","registerAttributeLabel","addMarker:suggestion","data-suggestion","locale","setAttribute","removeClass","ck-suggestion-marker-","markerRange","TableUtils","getSuggestion","plugins","*Format:* %0","headingRows","end","_enableDefaultAttributesIntegration","removeAttribute","name","nodeBefore","TrackChangesEditing","consumable","editing","addClass","setTableRowHeader","parent","FORMAT_REGULAR_COLUMN","mapper","formatBlock","forceValue","data","_suggestionFactory","unbindElementFromMarkerName","activeMarkers","commandName","options","registerCustomCallback","afterInit","includes","_acceptFormatSuggestionCallbackFactory","FORMAT_HEADER_COLUMN","_handleLegacySuggestions","nodeAfter","editor","showSuggestionHighlights","markerNameToElements","ck-suggestion-marker--active","has","_registerLegacyDescription","downcastDispatcher","writer","accept","setTableColumnHeader","item","createTableWalker","toViewElement","type","FORMAT_HEADER_ROW","consume","getCellLocation"];var Jx,Qx;Jx=Yx,Qx=288,function(t){for(;--t;)Jx.push(Jx.shift())}(++Qx);const ta=function(t,e){return Yx[t-=0]};class ea extends t.Plugin{static get[ta("0x2d")](){return[zx]}[ta("0x13")](){const t=this[ta("0x19")];if(!t.plugins[ta("0x1d")](ta("0x2e")))return;const e=t[ta("0x35")],n=t[ta("0x3c")][ta("0x31")](ta("0x2"));n[ta("0x40")]("setTableRowHeader",[],["headingRows"]),n[ta("0x40")](ta("0x22"),[],["headingColumns"]),n._descriptionFactory[ta("0x32")](ta("0x3e"),Qo(e,ta("0x27"))),n._descriptionFactory[ta("0x32")]("headingColumns",Qo(e,ta("0x16"))),this[ta("0x17")]()}[ta("0x17")](){const t=this[ta("0x19")][ta("0x3c")][ta("0x31")](ta("0x2")),e=this[ta("0x19")][ta("0x3c")][ta("0x31")](ta("0x3a")),n=this.editor.plugins[ta("0x31")](zx)[ta("0x15")]();function o({showActiveMarker:n=!0,setDataAttribute:o=!0}={}){return(i,r,s)=>{const{type:x,id:a}=t._splitMarkerName(r[ta("0x2a")]),c=t[ta("0x3b")](a),l=c[ta("0xc")];if(ta("0xa")!=c.type||!l||ta("0x22")!=l[ta("0x10")])return;if(r[ta("0x23")])return void i.stop();if(!s[ta("0x3")][ta("0x28")](r[ta("0x39")],i[ta("0x0")]))return;const u=r[ta("0x39")][ta("0x2c")][ta("0x18")],d=r[ta("0x39")][ta("0x3f")][ta("0x1")],g=u[ta("0x7")][ta("0x7")],{column:f}=e.getCellLocation(u),{column:m}=e[ta("0x29")](d);for(let i=f;i<=m;i++){const c=e[ta("0x24")](g,{column:i,includeAllSlots:!1});for(const e of c){const i=e.cell,c=s[ta("0x9")][ta("0x25")](i);s[ta("0x20")][ta("0x5")](ta("0x38")+x,c),o&&s[ta("0x20")][ta("0x36")](ta("0x34"),a,c),s[ta("0x9")].bindElementToMarker(c,r.markerName),n&&(t[ta("0xf")][ta("0x14")](r[ta("0x2a")])?s[ta("0x20")][ta("0x5")](ta("0x1c"),c):s.writer[ta("0x37")](ta("0x1c"),c))}}}}t._suggestionFactory.registerCustomCallback(ta("0xa"),"setTableRowHeader",ta("0x21"),n),t[ta("0xd")][ta("0x12")](ta("0xa"),ta("0x22"),ta("0x21"),n),this[ta("0x19")][ta("0x4")][ta("0x1f")].on(ta("0x33"),o(),{priority:ta("0x30")}),this.editor[ta("0xc")][ta("0x1f")].on("addMarker:suggestion",((t,e,n)=>{n[ta("0x11")][ta("0x1a")]&&o({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:ta("0x30")}),this[ta("0x19")][ta("0x4")][ta("0x1f")].on(ta("0x2b"),((e,n,o)=>{const{type:i,id:r}=t._splitMarkerName(n[ta("0x2a")]),s=t[ta("0x3b")](r),x=s[ta("0xc")];if("formatBlock"!=s[ta("0x26")]||!x||ta("0x22")!=x.commandName)return;const a=o[ta("0x9")][ta("0x1b")](n.markerName);if(a)for(const t of a)o.writer.removeClass(ta("0x38")+i,t),o[ta("0x20")].removeClass(ta("0x1c"),t),o.writer[ta("0x41")](ta("0x34"),t),o[ta("0x9")][ta("0xe")](t,n[ta("0x2a")])}),{priority:ta("0x30")}),this[ta("0x1e")]()}[ta("0x1e")](){const t=this[ta("0x19")],e=t.locale;function n(t){return{type:ta("0x2f"),content:Qo(e,ta("0x3d"),t)}}t[ta("0x3c")].get(ta("0x2"))._descriptionFactory.registerDescriptionCallback((t=>{if(ta("0xa")!=t.type)return;const{data:o}=t;if(o){if(ta("0x6")==o[ta("0x10")]){const t=o.commandParams[0][ta("0xb")];return n(Qo(e,t?ta("0x27"):"FORMAT_REGULAR_ROW"))}if(ta("0x22")==o[ta("0x10")]){const t=o.commandParams[0].forceValue;return n(Qo(e,ta(t?"0x16":"0x8")))}}}))}}const na=["afterInit","rowInsertionIndexes","deletion","some","createElement","getRanges","rows","paragraph","getChangedMarkers","removeMarker","tablePasteChainId","return","name","first","schema","unwrap","suggestion","getColumns","deletionRanges","*Replace table cells*","plugins","suggestion:formatBlock:tablePasteCell","startsWith","forceDefaultExecution","tableCellHorizontalAlignment","removeColumns","activeMarkers","subType","insertRows","tableCellPadding","high","ck-suggestion-marker","differ","Users","suggestionLoaded","accept","endColumn","editing","suggestionUnloaded","ck-suggestion-marker-insertion","getAttributes","set","editingDowncast","getTableIfOnlyTableInContent","type","registerCustomCallback","cell","markMultiRangeBlockFormat","join","model","setAttributes","change","getShiftedBy","registerDescriptionCallback","content","_isForcedDefaultExecutionBlock","locale","entries","removeMarkers","map","createTableWalker","insertColumns","createRange","element","row","oldRange","tableCell","remove","start","containsRange","registerPostFixer","move","insertion","low","getRowIndexes","_getCoordsForCells","conversion","tableCellBorderWidth","columnInsertionIndexes","getSuggestions","createPositionBefore","stop","isInContent","tableCellSuggestion","previousSibling","insert","push","commands","getMarkers","markerToHighlight","getSuggestion","dataDowncast","discard","register","documentSelection","getContainedElement","findAncestor","markerAttributes","ck-suggestion-marker--active","insertContent","suggestion-td","keys","tablePasteRow","getRows","cells","nodeAfter","_splitMarkerName","isEqual","fromEntries","_replaceTableSlotCell","add","formatBlock","endRow","getAllAdjacentSuggestions","getRange","author","get","from","includes","tableCellBackgroundColor","setAttribute","removeRows","fill","has","document","length","columns","markMultiRangeInsertion","table","createRangeIn","tableCellVerticalAlignment","column","root","last","previous","attributes","tablePaste","markMultiRangeDeletion","hasSuggestion","getSelectionAffectedTableCells","next","newRange","createRangeOn","tableCellBorderStyle","_descriptionFactory","getChild","trackChanges","tablePasteColumn","filter","requires","isEmpty","editor","_suggestionFactory","wrap","getSuggestionCallback","_createdBatches","nextSibling","getChildren","TrackChangesEditing","elementToElement","tablePasteCell","find"];var oa,ia;oa=na,ia=227,function(t){for(;--t;)oa.push(oa.shift())}(++ia);const ra=function(t,e){return na[t-=0]},sa=[ra("0xc"),"tableCellBorderColor",ra("0x4e"),ra("0x79"),ra("0x41"),ra("0x36"),ra("0x7e")],xa=Object[ra("0x2b")](sa[ra("0x9c")]((t=>[t,null])));class aa extends t.Plugin{static get[ra("0x54")](){return[zx]}[ra("0x61")](){const t=this[ra("0x56")];if(!t[ra("0x75")][ra("0x3a")]("TableClipboard"))return;const n=t[ra("0x75")][ra("0x33")](ra("0x5d")),o=t[ra("0x75")][ra("0x33")]("TableUtils"),i=t.plugins[ra("0x33")](zx),r=t[ra("0x75")][ra("0x33")]("TableClipboard");i._tablePostFixingSubtypes[ra("0x15")]("tablePasteRow",ra("0x52")),t[ra("0x92")][ra("0x6f")][ra("0x1c")](ra("0x12"),{allowIn:"tableCell",allowContentOf:ra("0x1"),isLimit:!0}),t[ra("0xb")][ra("0x5e")]({model:ra("0x12"),view:ra("0x23")});let s=null;t[ra("0x92")].on(ra("0x22"),((i,x)=>{const[a,c]=x,l=x[x[ra("0x3c")]-1];l&&l[ra("0x78")]||n[ra("0x98")]||this.editor[ra("0x16")][ra("0x33")](ra("0x51")).value&&function(t,e,n,o,i){if(e&&!e.is(ra("0x1d")))return!1;const r=i[ra("0x8c")](t,n);if(!r||!la(r,void 0,o))return!1;const s=o[ra("0x4a")](n.document.selection);if(!s.length)return!1;const x=s[0][ra("0x1f")]("table"),a=o[ra("0x9")](s),c=o.getColumnIndexes(s),l={startRow:a[ra("0x6e")],endRow:a[ra("0x44")],startColumn:c[ra("0x6e")],endColumn:c[ra("0x44")]};return 1==s[ra("0x3c")]&&(l[ra("0x2f")]+=o[ra("0x26")](r)-1,l[ra("0x85")]+=o[ra("0x72")](r)-1),la(x,l,o)}(a,c,t[ra("0x92")],o,r)&&(i[ra("0x10")](),s={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[ra("0x92")][ra("0x94")]((()=>{t.model[ra("0x22")](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("0x3c")]&&n[ra("0x3e")](i,ra("0x25"),{tablePasteChainId:o}),r[ra("0x3c")]&&n[ra("0x3e")](r,ra("0x52"),{tablePasteChainId:o}),a[ra("0x3c")]&&n[ra("0x3e")](a,ra("0x47"),{tablePasteChainId:o,skipNestingCheck:!0}),c[ra("0x3c")]&&n[ra("0x48")](c,ra("0x47"),{tablePasteChainId:o,skipNestingCheck:!0});const u=n[ra("0x90")](l[ra("0x9c")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],ra("0x5f"),{tablePasteChainId:o});if(u){const e=u[ra("0x17")](),n=[];for(const{element:o,attributes:i}of l){if(!i)continue;const r=t[ra("0x92")].createRangeOn(o),s=e[ra("0x60")]((t=>t[ra("0x31")]().isEqual(r)));s&&n.push([s.name,i])}n[ra("0x3c")]&&u[ra("0x37")](ra("0x20"),Object[ra("0x2b")](n))}s=null})))}),{priority:e.priorities.high+10}),t[ra("0x75")][ra("0x33")]("TableClipboard").on(ra("0x2c"),((t,e)=>{const[n,o,,i]=e;if(!s)return;t[ra("0x10")]();const r=n[ra("0x8f")],x=o,a=ca(r),c=ca(x);t[ra("0x6c")]=r;let l=null,u=null;if(c||a)if(a&&!c){i[ra("0x2")](r[ra("0x50")](0));for(const t of Array.from(x.getChildren()))i.insert(t,r,"end");const t=s[ra("0x62")][ra("0x35")](n[ra("0xa1")]),e=s[ra("0xd")][ra("0x35")](n[ra("0x42")]);t||e||(l=i[ra("0x40")](r))}else c&&!a&&(u=i[ra("0x40")](r));else{const t=i.createElement(ra("0x12")),e=i[ra("0x65")](ra("0x12"));i[ra("0x58")](i[ra("0x40")](r),e),i[ra("0x14")](t,r,0);for(const e of Array[ra("0x34")](x[ra("0x5c")]()))i.insert(e,t,"end");l=i[ra("0x4d")](t),u=i[ra("0x4d")](e)}const d=Array[ra("0x34")](x[ra("0x89")]())[ra("0x53")]((([t])=>sa[ra("0x35")](t)));s[ra("0x27")][ra("0x15")]({element:r,attributes:d[ra("0x3c")]?Object.fromEntries(d):null}),l&&s.insertionRanges.push(l),u&&s[ra("0x73")][ra("0x15")](u)}),{priority:ra("0x7f")}),o.on(ra("0x9e"),((e,n)=>{const[i,r={}]=n;if(!s)return;const x=r.at||0,a=r[ra("0x3d")]||1;s[ra("0xd")]=new Array(a)[ra("0x39")](x).map(((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(i,{startColumn:x,endColumn:x+a-1}))s.columnInsertionRanges[ra("0x15")](t[ra("0x92")][ra("0x4d")](e))}),{priority:ra("0x8")}),o.on(ra("0x7d"),((e,n)=>{const[i,r={}]=n;if(!s)return;const x=r.at||0,a=r[ra("0x67")]||1;s[ra("0x62")]=new Array(a)[ra("0x39")](x).map(((t,e)=>t+e));for(const{cell:e}of o[ra("0x9d")](i,{startRow:x,endRow:x+a-1}))s.rowInsertionRanges[ra("0x15")](t.model[ra("0x4d")](e))}),{priority:ra("0x8")}),n[ra("0x4f")][ra("0x96")]((e=>{if(e.subType&&e[ra("0x7c")].startsWith(ra("0x47")))return e[ra("0x45")]?{}:{type:ra("0x7"),content:Qo(t[ra("0x99")],ra("0x74"))}}));const x=()=>!1;for(const t of["tablePaste",ra("0x52"),"tablePasteRow",ra("0x5f")])n._suggestionFactory[ra("0x8e")](ra("0x7"),t,"join",x),n[ra("0x57")].registerCustomCallback(ra("0x63"),t,"join",x),n[ra("0x57")][ra("0x8e")](ra("0x2e"),t,ra("0x91"),x);n[ra("0x57")][ra("0x8e")](ra("0x2e"),"tablePasteCell",ra("0x1b"),x),n[ra("0x57")].registerCustomCallback(ra("0x2e"),ra("0x5f"),ra("0x84"),((e,n,o)=>{const i=e.map((t=>t.getContainedElement()))[ra("0x53")]((t=>t)),r=new Map(i[ra("0x9c")]((t=>[t,null])));if(s)for(const{element:t,attributes:e}of s[ra("0x27")])e&&r[ra("0x8a")](t,e);else if(o&&o[ra("0x20")])for(const[e,n]of Object[ra("0x9a")](o[ra("0x20")])){const o=t.model.markers[ra("0x33")](e),i=o?o.getRange()[ra("0x1e")]():null;i&&r[ra("0x8a")](i,n)}t[ra("0x92")][ra("0x94")]((t=>{for(const[e,n]of r)t[ra("0x93")]({...xa,...n},e)}))}));const a=(e,o)=>{n[ra("0x57")].registerCustomCallback(e,ra("0x47"),o,((i,r,s)=>{t[ra("0x92")].change((t=>{const x=[];for(const t of i){const e=t[ra("0x3")][ra("0x28")];e.is(ra("0xa0"),"tableCellSuggestion")&&x[ra("0x15")](e)}n[ra("0x57")][ra("0x59")](e,null,o)(i,r,s);for(const e of x)"$graveyard"!=e[ra("0x43")].rootName&&t.unwrap(e)}))}))};a(ra("0x7"),ra("0x84")),a(ra("0x7"),ra("0x1b")),a(ra("0x63"),ra("0x84")),a(ra("0x63"),"discard"),n[ra("0x57")][ra("0x8e")]("insertion",ra("0x25"),ra("0x1b"),(t=>{const e=t[ra("0x9c")]((t=>t[ra("0x1e")]())),n=e[0][ra("0x1f")](ra("0x3f")),{minRow:r,maxRow:s}=i[ra("0xa")](e);o[ra("0x38")](n,{at:r,rows:s-r+1})})),n[ra("0x57")][ra("0x8e")](ra("0x7"),ra("0x52"),ra("0x1b"),(t=>{const e=t[ra("0x9c")]((t=>t.getContainedElement())),n=e[0][ra("0x1f")](ra("0x3f")),{minColumn:r,maxColumn:s}=i[ra("0xa")](e);o[ra("0x7a")](n,{at:r,columns:s-r+1})}));const c=(t,e)=>{if(!e[ra("0x7c")]||!e[ra("0x7c")][ra("0x77")](ra("0x47")))return;const o=e[ra("0x46")][ra("0x6b")],i=n[ra("0xe")]()[ra("0x53")]((t=>t[ra("0x11")]&&t.attributes&&t[ra("0x46")][ra("0x6b")]==o));i[ra("0x3c")]&&e[ra("0x30")]().length!=i[ra("0x3c")]&&i.reduce(((t,e)=>(t[ra("0x4b")]=e,e[ra("0x45")]=t,e)))};function l(t,e=!0){const{id:o}=n[ra("0x29")](t.markerName),i=[ra("0x80"),ra("0x88")],r=n[ra("0x7b")].includes(t.markerName);return r&&i.push(ra("0x21")),{classes:i,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(ra("0x83"),c,{priority:ra("0x7f")}),n.on(ra("0x87"),c,{priority:ra("0x7f")}),t[ra("0x92")][ra("0x3b")][ra("0x5")]((()=>{let e=!1;const o=Array[ra("0x34")](t.model[ra("0x3b")][ra("0x81")][ra("0x69")]());for(const{name:i,data:r}of o){const{group:o,type:s,id:x}=n._splitMarkerName(i);if(ra("0x71")!=o||ra("0x63")!=s||r[ra("0x0")])continue;if(!n[ra("0x49")](x))continue;const a=n[ra("0x19")](x)[ra("0x66")](),c=t[ra("0x75")].get(ra("0x82")).me;for(const t of n[ra("0xe")]())if(t[ra("0x11")]&&t[ra("0x32")]==c&&"formatBlock"==t[ra("0x8d")]&&"tablePasteCell"==t[ra("0x7c")]&&t[ra("0x66")]().every((t=>a[ra("0x64")]((e=>e[ra("0x4")](t,!0))))))for(const n of t[ra("0x30")]())n.isInContent&&(n[ra("0x1b")](),e=!0)}return e})),t[ra("0x92")][ra("0x3b")][ra("0x5")]((e=>{const o=t.commands.get("redo");if(!o||!o[ra("0x5a")].has(e.batch))return!1;let i=!1;const r=t.plugins[ra("0x33")](ra("0x82")).me,s=t[ra("0x92")][ra("0x3b")].differ.getChanges(),x=Array[ra("0x34")](t[ra("0x92")][ra("0x3b")][ra("0x81")][ra("0x69")]())[ra("0x53")]((({name:t,data:e})=>{const{group:o,subType:i,authorId:s}=n[ra("0x29")](t);return ra("0x71")==o&&ra("0x47")==i&&s==r.id&&!e.oldRange}));for(const t of s){if(ra("0x14")!=t.type||ra("0x12")!=t[ra("0x6d")]||1!=t[ra("0x3c")])continue;const n=e[ra("0x9f")](t.position,t.position[ra("0x95")](1));if(!x[ra("0x60")]((({data:t})=>t[ra("0x4c")][ra("0x2a")](n))))for(const{name:t,data:o}of x)if(n.containsRange(o.newRange)){e.updateMarker(t,{range:n}),i=!0;break}}return i})),t[ra("0x92")][ra("0x3b")].registerPostFixer((e=>{let o=!1;const i=t[ra("0x75")][ra("0x33")](ra("0x82")).me,r=n[ra("0xe")]()[ra("0x53")]((t=>t.isInContent&&t[ra("0x32")]==i)),s=new Set,x=new Set;for(const t of r)if("tablePaste"==t[ra("0x7c")])for(const e of t.getMarkers()){const n=e[ra("0x31")]()[ra("0x1e")]();if(n)if(n.is("element",ra("0x12"))&&ca(n)){t[ra("0x6a")](e[ra("0x6d")]),s[ra("0x2d")](n),o=!0;const i=n[ra("0x5b")],r=n[ra("0x13")],a=i&&i.is("element",ra("0x12")),c=r&&r.is("element",ra("0x12"));a&&!s.has(i)&&x[ra("0x2d")](i),c&&!s[ra("0x3a")](r)&&x.add(r)}else n.is("element",ra("0x68"))&&n.isEmpty&&(t.removeMarker(e[ra("0x6d")]),o=!0)}else if("tablePasteCell"==t[ra("0x7c")]){if(!t[ra("0x46")]||!t[ra("0x46")][ra("0x6b")])continue;const e=t.attributes[ra("0x20")];if(e&&Object[ra("0x24")](e)[ra("0x3c")])continue;const n=t[ra("0x46")][ra("0x6b")];let i=!0,s=!0;for(const e of r)if(e[ra("0x7c")]&&e[ra("0x7c")][ra("0x77")]("tablePaste")){if(!e[ra("0x46")][ra("0x6b")]){s=!1;break}if(e.id!=t.id&&e[ra("0x46")].tablePasteChainId==n){i=!1;break}}s&&i&&(t[ra("0x9b")](),o=!0)}for(const t of s)e[ra("0x2")](t);for(const t of x)e[ra("0x70")](t);return o})),t.conversion.for(ra("0x8b"))[ra("0x18")]({model:ra("0x76"),view:(t,e)=>l(t),converterPriority:ra("0x7f")}),t[ra("0xb")].for(ra("0x1a"))[ra("0x18")]({model:ra("0x76"),view:(t,e)=>e.options.showSuggestionHighlights?l(t,!1):null,converterPriority:ra("0x7f")});const u=t[ra("0x86")].view;this.listenTo(u.document,"clipboardOutput",((t,e)=>{const n=[];for(const t of u[ra("0x40")](e[ra("0x97")]).getItems())t.is("element",ra("0x23"))&&n[ra("0x15")](t);u[ra("0x94")]((t=>{for(const e of n)t[ra("0x6")](t[ra("0x40")](e),t[ra("0xf")](e)),t[ra("0x2")](e)}))}))}}function ca(t){if(t[ra("0x55")])return!0;const e=t[ra("0x50")](0);return e.is(ra("0xa0"),ra("0x68"))&&e[ra("0x55")]}function la(t,e={},n){for(const{isAnchor:o,cellHeight:i,cellWidth:r}of n[ra("0x9d")](t,{includeAllSlots:!0,...e}))if(!o||1!=i||1!=r)return!1;return!0}const ua=["subType","accept","formatInline","afterInit","TableColumnResizeEditing","change","editor","type","handleResizeTableWidthCommand","_suggestionFactory","getColumnGroupElement","columnWidths","model","*Format:* resize table","TrackChangesEditing","formatGroupId","getTableColumnsWidths","resizeTable","handleSuggestionDescription","discard","document","formatBlock","get","Users","plugins","bind","locale","registerCustomCallback","has","_descriptionFactory","getSuggestions","getSuggestionCallback","tableWidth","table","resizeTableWidth","data","registerDescriptionCallback","format"];var da,ga;da=ua,ga=217,function(t){for(;--t;)da.push(da.shift())}(++ga);const fa=function(t,e){return ua[t-=0]};class ma extends t.Plugin{[fa("0xe")](){if(!this[fa("0x11")][fa("0x23")][fa("0x1")](fa("0xf")))return;const t=this[fa("0x11")].plugins[fa("0x21")](fa("0x19"));t.enableCommand("resizeTableWidth",this[fa("0x13")][fa("0x24")](this)),t[fa("0x14")][fa("0x0")](fa("0x20"),fa("0x1c"),fa("0xc"),t[fa("0x14")][fa("0x4")](fa("0x20"),null,fa("0x1e"))),t[fa("0x14")][fa("0x0")](fa("0x20"),fa("0x1c"),fa("0x1e"),t[fa("0x14")][fa("0x4")]("formatBlock",null,"accept")),t[fa("0x2")][fa("0x9")](this[fa("0x1d")][fa("0x24")](this))}[fa("0x13")](t,e){const n=this[fa("0x11")].plugins[fa("0x21")](fa("0x19")),o=this[fa("0x11")][fa("0x23")].get(fa("0xf")),i=e[fa("0x6")]||this[fa("0x11")][fa("0x17")][fa("0x1f")].selection.getSelectedElement();this[fa("0x11")][fa("0x17")][fa("0x10")]((()=>{const r=o[fa("0x15")](i);let s=r?o[fa("0x1b")](r):null,x=i.getAttribute(fa("0x5"))||null;const a=e.tableWidth||x,c=e[fa("0x16")]||s,l=this[fa("0x11")][fa("0x23")][fa("0x21")](fa("0x22")).me;for(const t of n[fa("0x3")]()){const e=t.getContainedElement();if(fa("0x1c")===t[fa("0xb")]&&e===i){t.author!==l&&t.discard();const e=t[fa("0x8")].commandParams;x=e[0][fa("0x5")],s=e[0][fa("0x16")];break}}t({table:i,tableWidth:a,columnWidths:c}),n.markBlockFormat(i,{commandName:fa("0x7"),commandParams:[{tableWidth:x,columnWidths:s}],formatGroupId:fa("0x1c")},[],"resizeTable")}))}handleSuggestionDescription(t){if(fa("0x20")!=t[fa("0x12")]&&fa("0xd")!=t[fa("0x12")])return;const{data:e}=t;if(e&&fa("0x1c")===e[fa("0x1a")]){const t=fa("0x18");return{type:fa("0xa"),content:Qo(this.editor[fa("0x25")],t)}}}}const ha=["enableCommand","Template","has","plugins","editor","get","insertTemplate","afterInit","TrackChangesEditing"];var pa,ba;pa=ha,ba=488,function(t){for(;--t;)pa.push(pa.shift())}(++ba);const Ea=function(t,e){return ha[t-=0]};class _a extends t.Plugin{[Ea("0x5")](){const t=this[Ea("0x2")];t[Ea("0x1")][Ea("0x0")](Ea("0x8"))&&t[Ea("0x1")][Ea("0x3")](Ea("0x6"))[Ea("0x7")](Ea("0x4"))}}const Ta=["locale","insertTableOfContents","ELEMENT_TABLE_OF_CONTENTS","enableCommand","editor","TrackChangesEditing","afterInit","get","_descriptionFactory","plugins"];var ya,Ca;ya=Ta,Ca=376,function(t){for(;--t;)ya.push(ya.shift())}(++Ca);const Aa=function(t,e){return Ta[t-=0]};class ka extends t.Plugin{[Aa("0x0")](){const t=this[Aa("0x8")];if(!t.commands[Aa("0x1")]("insertTableOfContents"))return;t[Aa("0x3")].get(Aa("0x9"))[Aa("0x7")](Aa("0x5"));const e=t.plugins[Aa("0x1")]("TrackChangesEditing"),n=t[Aa("0x4")];e[Aa("0x2")].registerElementLabel("tableOfContents",(t=>Qo(n,Aa("0x6"),t)))}}const Ia=["getNearestSelectionRange","Title","ELEMENT_TITLE","element","TrackChangesEditing","suggestion","createRange","editor","isCollapsed","registerPostFixer","newRange","isEqual","document","from","_splitMarkerName","plugins","has","afterInit","title-content","_descriptionFactory","differ","forward","end","start","model","removeMarker"];var Ra,va;Ra=Ia,va=395,function(t){for(;--t;)Ra.push(Ra.shift())}(++va);const Sa=function(t,e){return Ia[t-=0]};class Na extends t.Plugin{[Sa("0xc")](){const t=this[Sa("0x2")];if(!t[Sa("0xa")][Sa("0xb")](Sa("0x16")))return;const e=t[Sa("0xa")].get(Sa("0x19"));e[Sa("0xe")].registerElementLabel(Sa("0xd"),(()=>Qo(t.locale,Sa("0x17")))),t[Sa("0x13")].document[Sa("0x4")]((n=>{let o=!1;const i=Array[Sa("0x8")](t[Sa("0x13")][Sa("0x7")][Sa("0xf")].getChangedMarkers());for(const{name:r,data:s}of i){const{group:i}=e[Sa("0x9")](r);if(Sa("0x0")!==i||!s.newRange)continue;const x=s[Sa("0x5")],a=x[Sa("0x11")].nodeBefore;if(!a||!a.is(Sa("0x18"),"title-content"))continue;if(!x[Sa("0x12")].isTouching(x[Sa("0x11")]))continue;const c=t[Sa("0x13")].schema[Sa("0x15")](x.end,Sa("0x10"));if(c&&c[Sa("0x3")]){const t=n[Sa("0x1")](x[Sa("0x12")],c[Sa("0x12")]);t[Sa("0x6")](x)||(n.updateMarker(r,{range:t}),o=!0)}o||(n[Sa("0x14")](r),o=!0)}return o}))}}const La=["undo","editor","afterInit","get","redo","enableCommand","UndoEditing","TrackChangesEditing","plugins"];var Ma,wa;Ma=La,wa=237,function(t){for(;--t;)Ma.push(Ma.shift())}(++wa);const Oa=function(t,e){return La[t-=0]};class Fa extends t.Plugin{[Oa("0x8")](){const t=this[Oa("0x7")],e=t.plugins[Oa("0x0")](Oa("0x4"));t[Oa("0x5")].has(Oa("0x3"))&&(e[Oa("0x2")](Oa("0x6")),e[Oa("0x2")](Oa("0x1")))}}const Da=["TableCaptionEditing","get","editor","requires","TrackChangesEditing","plugins","enableCommand","has"];var Ba,Pa;Ba=Da,Pa=287,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("0x4")](){return[zx]}afterInit(){const t=this[Ua("0x3")];t[Ua("0x6")][Ua("0x0")](Ua("0x1"))&&t.plugins[Ua("0x2")](Ua("0x5"))[Ua("0x7")]("toggleTableCaption")}}const Ga=["tableCellBorderColor","accept","join","_suggestionFactory","findAncestor","format","getSuggestions","plugins","tableCellBorderWidth","locale","formatBlock","registerCustomCallback","tableCellHeight","tableBorderWidth","get","TrackChangesEditing","getSelectionAffectedTableCells","change","commandParams","subType","TableUtils","tableBorderColor","afterInit","_getSuggestion","*Format:* change table properties","_descriptionFactory","tableAlignment","getContainedElement","TrackChangesTableProperties","has","tableCellPadding","pluginName","_handlePropertyChange","table","getAttribute","tableCellWidth","getFirstPosition","tableHeight","editor","TablePropertiesEditing","enableCommand","selection","model","tableWidth","handleSuggestionDescription","setAttribute","tableBackgroundColor","tableCellProperties","tableBorderStyle","document","tableProperties","getSuggestionCallback","handleDiscardAction","tableCellHorizontalAlignment","enqueueChange","*Format:* change table cell properties","nodeAfter","tableCellVerticalAlignment","discard"];var Va,Ha;Va=Ga,Ha=227,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("0x0")]=[za("0x1e"),za("0x39"),za("0x16"),za("0x23"),za("0x34"),za("0x2e"),za("0x37")],this[za("0x38")]=[za("0x9"),"tableCellBorderStyle",za("0x11"),za("0x27"),za("0x2c"),za("0x15"),"tableCellBackgroundColor",za("0x3"),za("0x7")]}static get[za("0x28")](){return za("0x25")}[za("0x1f")](){const t=this[za("0x2f")][za("0x10")].get(za("0x18"));if(this.editor[za("0x10")][za("0x26")](za("0x30"))){for(const e of this[za("0x0")])t[za("0x31")](e,((t,n)=>{const o=this[za("0x2f")][za("0x33")][za("0x3a")][za("0x32")][za("0x2d")]()[za("0xd")](za("0x2a"));this._handlePropertyChange(e,[o],this[za("0x0")],za("0x0"),t,n)}));t[za("0xc")][za("0x14")](za("0x13"),"tableProperties",za("0xa"),t._suggestionFactory.getSuggestionCallback(za("0x13"),null,za("0x8"))),t[za("0xc")][za("0x14")](za("0x13"),"tableProperties",za("0x8"),((t,e)=>this[za("0x2")](this[za("0x0")],t,e))),t._suggestionFactory[za("0x14")]("formatBlock","tableProperties",za("0xb"),(()=>!1))}if(this[za("0x2f")][za("0x10")].has("TableCellPropertiesEditing")){for(const e of this[za("0x38")])t[za("0x31")](e,((t,n)=>{const o=this[za("0x2f")].plugins[za("0x17")](za("0x1d"))[za("0x19")](this[za("0x2f")][za("0x33")][za("0x3a")][za("0x32")]);this[za("0x29")](e,o,this[za("0x38")],za("0x38"),t,n)}));t[za("0xc")][za("0x14")]("formatBlock",za("0x38"),za("0xa"),t[za("0xc")][za("0x1")](za("0x13"),null,za("0x8"))),t[za("0xc")][za("0x14")]("formatBlock",za("0x38"),za("0x8"),((t,e)=>this[za("0x2")](this.tableCellProperties,t,e))),t[za("0xc")].registerCustomCallback(za("0x13"),za("0x38"),"join",(()=>!1))}t[za("0x22")].registerDescriptionCallback((t=>this[za("0x35")](t)))}[za("0x29")](t,e,n,o,i,r){const s=this[za("0x2f")][za("0x10")][za("0x17")](za("0x18"));this.editor[za("0x33")][za("0x4")](r.batch,(()=>{for(const t of e)if(this[za("0x20")](t,o))i(r);else{const e={};for(const o of n){const n=t[za("0x2b")](o);void 0!==n&&(e[o]=n)}i(r),s.markBlockFormat(t,{commandParams:[e]},[],o)}}))}[za("0x2")](t,e,n){const o=e[0].start[za("0x6")],i=n[za("0x1b")][0];this.editor[za("0x33")][za("0x1a")]((e=>{for(const n of t)void 0!==i[n]?e[za("0x36")](n,i[n],o):e.removeAttribute(n,o)}))}handleSuggestionDescription(t){if(t.data)switch(t[za("0x1c")]){case"tableProperties":return{type:za("0xe"),content:Qo(this.editor.locale,za("0x21"))};case za("0x38"):return{type:za("0xe"),content:Qo(this[za("0x2f")][za("0x12")],za("0x5"))}}}[za("0x20")](t,e){const n=this[za("0x2f")][za("0x10")][za("0x17")](za("0x18"));for(const o of n[za("0xf")]({skipNotAttached:!0})){const n=o[za("0x24")]();if(o[za("0x1c")]===e&&n===t)return o}return null}}var Ka=Function.prototype,qa=Object.prototype,$a=Ka.toString,Xa=qa.hasOwnProperty,Za=$a.call(Object);const Ya=function(t){if(!xe(t)||"[object Object]"!=gt(t))return!1;var e=xn(t);if(null===e)return!0;var n=Xa.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&$a.call(n)==Za};const Ja=function(t){return Ya(t)?void 0:t};var Qa=it?it.isConcatSpreadable:void 0;const tc=function(t){return ge(t)||de(t)||!!(Qa&&t&&t[Qa])};const ec=function t(e,n,o,i,r){var s=-1,x=e.length;for(o||(o=tc),r||(r=[]);++s<x;){var a=e[s];n>0&&o(a)?n>1?t(a,n-1,o,i,r):sn(r,a):i||(r[r.length]=a)}return r};const nc=function(t){return(null==t?0:t.length)?ec(t,1):[]};const oc=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)};var ic=Math.max;const rc=function(t,e,n){return e=ic(void 0===e?t.length-1:e,0),function(){for(var o=arguments,i=-1,r=ic(o.length-e,0),s=Array(r);++i<r;)s[i]=o[e+i];i=-1;for(var x=Array(e+1);++i<e;)x[i]=o[i];return x[e]=n(s),oc(t,this,x)}};const sc=function(t){return function(){return t}};const xc=ee?function(t,e){return ee(t,"toString",{configurable:!0,enumerable:!1,value:sc(e),writable:!0})}:function(t){return t};var ac=Date.now;const cc=function(t){var e=0,n=0;return function(){var o=ac(),i=16-(o-n);if(n=o,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(xc);const lc=function(t){return cc(rc(t,void 0,nc),t+"")}((function(t,e){var n={};if(null==t)return n;var o=!1;e=uo(e,(function(e){return e=po(e,t),o||(o=e.length>1),e})),re(t,dn(t),n),o&&(n=to(n,7,Ja));for(var i=e.length;i--;)Ko(n,e[i]);return n})),uc=["formatBlock:","isUndo","getAllAdjacentSuggestions","addHighlight","normal","buildSuggestion","suggestion","pop","type","chain","markerNameToElements","createElement","_recordAttributeSuggestionsFromVersion","getCustomProperty","elementEnd","_findSuggestions","_registerBlockAttribute","setSelection","move","addAttribute","accepted","skipNestingCheck","groupId","change:data","_addThreadToSuggestion","_SUGGESTION_ANNOUNCEMENT","name","track-changes-suggestion-data-mismatch","_refreshSuggestionsChain","_suggestionState","plugins","attributes","ready","getIntersection","removeMarker:suggestion:attribute","createPositionAfter","attributeKey","head","isIntersectingWithRange","value","_setSuggestionRange","_getMarkerAnnouncementText","rootName","external:","trackChanges","rejected","startsWith","getSuggestions","getOperations","_checkSuggestionCorrectness","oldValue","removeComment","markInsertion","suggestionUnloaded","markAttributeChange","newValue","locale","addMarker","getLastMatchingPosition","writer","getUser","deleteContent","model","_isDataLoaded","markerName","getAncestors","rename","addMarkerName","suggestion:attribute:","isAtStart","mapper","detach","marker-count","_setSuggestionData","commandName","return","_suggestionFactory","_breakSuggestionMarker","markInlineFormat","insertion:chain","track-changes-adapter-already-set","remove","multipleBlocks","isTouching","creator","options","getMarkers","removeClass","createRangeIn","registerPostFixer","addMarker:suggestion:formatBlock","length","fetchCommentThread","_editor","upcast","clone","set","_isBlockAttribute","showSuggestionHighlights","_customCallbacks","applyOperation","$marker","version","low","start","markers","addSuggestion","createdAt","enableCommand","formatInline","assign","requires","rethrowUnexpectedError","createPositionAt","consume","accept","isArray","default","deletion","PendingActions","keys","end","_handleNewSuggestionMarker","markerReady","getFirstRange","concat","config","_getExternalAuthor","_recordAttributeChanges","addMarker:suggestion","attribute:join","editing","containerElement","ck-suggestion-marker--active","discardSuggestion","clear","newName","activeMarkers","trackChanges.mergeNestedSuggestions","formatBlock:chain","isCollapsed","history","unshift","highest","_model","_processAttributeChanges","author","after","isLocal","containsPosition","isMultiRange","size","always","getItems","getChangedMarkers","containsRange","_suggestions","editor","get","addRange","toViewElement","key","forceDefaultExecution","attribute","_adapter","_updateSuggestionData","attributeNewValue","addSuggestionData","isOwn","CommentsRepository","bindElementToMarker","isBlock","trackChanges.trackFormatChanges","updateMarker","_createSuggestion","position","_joinSuggestions","isExternal","isEqual","has","change:activeMarkers","markBlockFormat","map","getDifference","_trackFormatChanges","dataDowncast","notReady","isLimit","createSelection","consumable","removed","data","pluginName","acceptSelectedSuggestions","addComment","getWalker","addMarker:suggestion:attribute","substring","_enabledCommands","discardSelectedSuggestions","getFirstMarker","refresh","fire","markMultiRangeBlockFormat","hasCommentThread","_initAriaMarkerChangeAnnouncements","previous","formatGroupId","track-changes-adapter-missing-getsuggestion","multi","split","getSuggestionCallback","ck-suggestion-marker","element","next","isInsideObject","filter","insertion:","authorName","formatBlock:accept","getChanges","documentSelection","schema","data-suggestion","item","_saved","_joinWithAdjacentSuggestions","document","_mergeNestedSuggestions","registerCustomCallback","insertion","setAttribute","forEach","_registerInlineAttribute","_cutOutSuggestionMarker","_reduceExistingSuggestions","LEAVE","backward","getCommentThread","elementStart","howMany","deletion:","listenTo","getContainedElement","discard","addCommentThread","_descriptionFactory","isBefore","hasComments","tablePasteChainId","commands","removeMarker","_splitMarkerName","_rangeIsInLocalUserInsertion","elementToElement","warn","substr","stop","from","announce","getNearestSelectionRange","high","formatInline:","isObject","acceptAllSuggestions","$text","insertContent","adapter","removeAttribute","isInContent","_processAttributeSuggestions","formatInline:discard","insertion:join","toJSON","for","@external","batch","resolve","updateSuggestion","_commentsRepository","range","_defaultCallbacks","forward","editingDowncast","error-saving-suggestion-data-suggestion-discarded","values","acceptSuggestion","insert","markerToHighlight","add","getSuggestion","every","some","comments","addUser","_addSuggestionMarker","reconvertMarker","$elementName","open","track-changes-command-not-found","FORMATTING","define","ariaLiveAnnouncer","markMultiRangeDeletion","ENTER","nodeAfter","push","TrackChangesEditing","_refreshAttributeSuggestionsChain","_reduceSuggestionAttributeRange","$graveyard","isAtEnd","getRanges","parent","formatBlock:discard","_isForcedDefaultExecutionBlock","oldRange","selection","suggestionLoaded","deletion:discard","isAfter","_getSuggestionData","attribute:","then","_getAuthorFromId","Users","nodeBefore","getMultiRangeId","find","subType","formatBlock","getRange","change","unbindElementFromMarkerName","createPositionBefore","containsRangeInObject","authoredAt","enqueueChange","differ","collaboration.channelId","isRemovable","removeMarkers","trackChangesCommand","_removeSuggestion","discardAllSuggestions","ck-suggestion-marker-formatBlock","root","never","init","suggestionChanged","commentThread","getAttribute","delete","format","createRange","isSelectable","newRange","isNextTo","PENDING_ACTION_SUGGESTION","track-changes-user-not-found","widget","conversion","sort","getShiftedBy","track-changes-enable-command-twice","insertion:accept","markDeletion","dataReady","join","splice","_inlineAttributeKeys","includes","group","execute","containsItem","attributeOldValue","isIntersecting","deletion:join"];var dc,gc;dc=uc,gc=479,function(t){for(;--t;)dc.push(dc.shift())}(++gc);const fc=function(t,e){return uc[t-=0]},mc=fc("0xc4");class hc extends t.Plugin{static get[fc("0xa")](){return[fc("0x44"),r.Users,t.PendingActions,ci,fi,_i,ki,Li,Di,Vi,tr,rr,lr,hr,Tr,Rr,Mr,Pr,Hr,$r,Qr,is,fs,cs,Es,As,Ss,Os,Us,Ks,Ys,nx,xx,dx,bx,Cx,vx,Ox,Ux,zx,Zx,ea,ja,aa,ma,ka,Wa,_a,Na,Fa]}static get[fc("0x5b")](){return fc("0xce")}constructor(t){function e(t){return t[fc("0x51")]((t=>String.fromCharCode(t)))[fc("0x10b")]("")}super(t),this[fc("0x121")]=null,this[fc("0x175")](fc("0x24"),[]),this.on(fc("0x4f"),((e,n,o,i)=>{this[fc("0x2b")].change((()=>{for(const e of[...i,...o])this[fc("0x2b")][fc("0x4")][fc("0x4e")](e)&&t[fc("0x1e")][fc("0xc3")](e)}))})),this[fc("0x91")]=new ii(this[fc("0x38")][fc("0x153")].schema,this[fc("0x38")][fc("0x14d")]),this[fc("0x3f")]=null,this[fc("0x161")]=new pc(this[fc("0x38")]),this[fc("0x37")]=new Map,this._commentsRepository=t[fc("0x133")][fc("0x39")](fc("0x44")),this[fc("0x61")]=new Set,this[fc("0x2b")]=this[fc("0x38")].model,this[fc("0x132")]=new WeakMap,this[fc("0xd6")]=!1,this._blockAttributeKeys=new Set([fc("0xc4")]),this[fc("0x10d")]=new Set,t.config[fc("0xc8")](fc("0x47"),fc("0x10")),this[fc("0x53")]=t[fc("0x19")][fc("0x39")]("trackChanges.trackFormatChanges"),t.config[fc("0xc8")](fc("0x25"),!0),this[fc("0x7f")]=t.config[fc("0x39")](fc("0x25")),this[fc("0xf1")]=new d(t,this[fc("0x61")]),this[fc("0x68")](),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,52,49,52])}[fc("0xf7")](){const t=this[fc("0x38")],n=(t,e)=>{if(fc("0x3e")!=t)return"ck-suggestion-marker-"+t;const n=e[fc("0x6d")]("|")[0];return this[fc("0x176")](n)?fc("0xf4"):"ck-suggestion-marker-formatInline"};t.conversion.for("editingDowncast")[fc("0xbb")]({model:fc("0x11b"),view:t=>{const{id:e,type:o,subType:i}=this[fc("0x97")](t.markerName),r=[fc("0x6f"),n(o,i)];let s=3e3;return this.activeMarkers.includes(t[fc("0x155")])&&(r[fc("0xcd")]("ck-suggestion-marker--active"),s=3010),fc("0x11")==o&&(s+=5),{classes:r,attributes:{"data-suggestion":e},priority:s}}}),t[fc("0x104")][fc("0xad")]("dataDowncast")[fc("0xbc")]((e=>{e.on(fc("0x1c"),((e,n,o)=>{if(!o.options[fc("0x177")])return;const i=n[fc("0x7b")];if(!i)return;const r=o[fc("0x15b")][fc("0x3b")](i);t.model.schema.isObject(i)&&r&&!r[fc("0x122")](fc("0x103"))&&r.is(fc("0x1f"))&&(0,x.toWidget)(r,o[fc("0x150")])}),{priority:fc("0xa0")})})),t[fc("0x104")][fc("0xad")]("dataDowncast")[fc("0xbb")]({model:fc("0x11b"),view:(t,e)=>{if(!e.options[fc("0x177")])return null;const{type:o,subType:i}=this[fc("0x97")](t.markerName);return{classes:["ck-suggestion-marker",n(o,i)],priority:3e3}}});const o=({showActiveMarkers:e=!0,isAttributeSuggestion:n=!1}={})=>(o,i,r)=>{if(!i[fc("0x7b")])return;const{id:s}=this[fc("0x97")](i.markerName);if(n){const t=vc(this[fc("0x37")][fc("0x39")](s));if(!this[fc("0x176")](t))return}if(i[fc("0x7b")].is(fc("0xd8")))return void r[fc("0x58")][fc("0xd")](i[fc("0x7b")],o[fc("0x12f")]);const x=r[fc("0x15b")][fc("0x3b")](i[fc("0x7b")]);if(i[fc("0x7b")].is(fc("0x70"))&&t.model.schema.isBlock(i[fc("0x7b")])&&!x[fc("0x122")](fc("0x118"))){r[fc("0x150")].addClass([fc("0x6f"),fc("0xf4")],x),r[fc("0x150")][fc("0x82")](fc("0x7a"),s,x),r.mapper[fc("0x45")](x,i[fc("0x155")]),e&&(this[fc("0x24")].includes(i[fc("0x155")])?r[fc("0x150")].addClass("ck-suggestion-marker--active",x):r[fc("0x150")][fc("0x16c")](fc("0x20"),x));for(const e of t[fc("0x153")][fc("0x16d")](i[fc("0x7b")])[fc("0x34")]())r[fc("0x58")].consume(e,o.name);r[fc("0x58")][fc("0xd")](i.item,o[fc("0x12f")])}};t[fc("0x104")].for(fc("0x54"))[fc("0xbc")]((t=>{t.on(fc("0x16f"),((t,e,n)=>{n[fc("0x16a")][fc("0x177")]&&o({showActiveMarkers:!1})(t,e,n)}),{priority:fc("0x2a")})})),t[fc("0x104")][fc("0xad")]("dataDowncast").add((t=>{t.on(fc("0x5f"),((t,e,n)=>{n.options.showSuggestionHighlights&&o({showActiveMarkers:!1,isAttributeSuggestion:!0})(t,e,n)}),{priority:fc("0x2a")})})),t.conversion[fc("0xad")]("dataDowncast").markerToData({model:fc("0x11b"),view:(t,e)=>e.options[fc("0x177")]?null:{group:fc("0x11b"),name:t[fc("0x9b")](11)}}),t.conversion[fc("0xad")]("upcast")[fc("0x99")]({view:{name:fc("0x11b"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n="suggestion:"+t.getAttribute("suggestion-type")+":"+t[fc("0xfa")]("id");return t[fc("0xfa")](fc("0x15d"))&&(n+=":"+t[fc("0xfa")](fc("0x15d"))),e[fc("0x120")](fc("0x0"),{"data-name":n})}}),t[fc("0x104")][fc("0xad")](fc("0x173")).dataToMarker({view:fc("0x11b")}),t[fc("0x104")][fc("0xad")](fc("0xb6"))[fc("0xbc")]((t=>{t.on("addMarker:suggestion:formatBlock",o(),{priority:fc("0xa0")})})),t[fc("0x104")][fc("0xad")](fc("0xb6"))[fc("0xbc")]((t=>{t.on(fc("0x5f"),o({isAttributeSuggestion:!0}),{priority:"high"})})),t[fc("0x104")][fc("0xad")]("editingDowncast")[fc("0xbc")]((t=>{t.on("removeMarker:suggestion:formatBlock",((t,e,n)=>{const o=n[fc("0x15b")][fc("0x11f")](e[fc("0x155")]);if(o)for(const t of o)t[fc("0x122")]("addHighlight")||(n[fc("0x150")].removeClass(["ck-suggestion-marker",fc("0xf4"),"ck-suggestion-marker--active"],t),n[fc("0x150")].removeAttribute("data-suggestion",t),n[fc("0x15b")][fc("0xe8")](t,e[fc("0x155")]))}),{priority:fc("0xa0")})})),t[fc("0x104")][fc("0xad")](fc("0xb6"))[fc("0xbc")]((t=>{t.on(fc("0x137"),((t,e,n)=>{const o=n[fc("0x15b")][fc("0x11f")](e[fc("0x155")]);if(!o)return;const{id:i}=this._splitMarkerName(e[fc("0x155")]),r=vc(this[fc("0x37")][fc("0x39")](i));if(this[fc("0x176")](r))for(const t of o)t[fc("0x122")](fc("0x118"))||(n[fc("0x150")][fc("0x16c")]([fc("0x6f"),fc("0xf4"),fc("0x20")],t),n.writer[fc("0xa7")](fc("0x7a"),t),n[fc("0x15b")][fc("0xe8")](t,e.markerName))}),{priority:fc("0xa0")})})),t[fc("0x153")][fc("0x7e")].registerPostFixer((e=>{let n=!1;const o=Array[fc("0x9d")](t[fc("0x153")][fc("0x7e")].differ[fc("0x35")]()),i=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,subType:l,id:u}=this[fc("0x97")](x);if(fc("0x11b")!==o)continue;const d=this[fc("0x37")].get(u);if(null!=a.newRange){fc("0x8")==c&&(n=n||_c(a[fc("0xff")],x,e,t[fc("0x153")][fc("0x79")]));const o="attribute"==c&&this[fc("0x176")](l.split("|")[0]);if(a[fc("0xff")][fc("0x27")]||fc("0xd1")==a[fc("0xff")][fc("0xf5")].rootName||fc("0xe5")==c&&!yc(a[fc("0xff")])||o&&!yc(a[fc("0xff")])||fc("0x11")==c&&(Ec(s=a.newRange)||(r=s)[fc("0x3")].parent==r[fc("0x14")].nodeBefore&&r[fc("0x3")].isAtEnd))e[fc("0x96")](x),n=!0;else{if(!d||!d[fc("0xa8")])continue;i[fc("0xbc")](d)}}}var r,s;return i[fc("0x32")]>0&&(n=!!this[fc("0x7d")](i)||n),n})),t.model[fc("0x7e")][fc("0x16e")]((e=>{let n=!1;for(const o of t.model[fc("0x7e")].differ[fc("0x77")]())if(fc("0xba")==o[fc("0x11d")])for(const o of this[fc("0x37")][fc("0xb8")]()){if(o[fc("0x31")]||!o[fc("0xa8")])continue;const i="formatBlock"==o[fc("0x11d")],r=vc(o),s=r&&this[fc("0x176")](r);if(!i&&!s)continue;const x=o[fc("0x17")]();if(x.start[fc("0xd4")]!=x[fc("0x14")].parent&&!x[fc("0x14")][fc("0xd2")]){const i=t.model[fc("0xc")](x[fc("0x3")].nodeAfter,fc("0x14")),r=t[fc("0x153")][fc("0xfd")](x[fc("0x3")],i);e[fc("0x48")](o[fc("0x63")](),{range:r}),n=!0}}return n})),t.model.document.registerPostFixer((t=>this[fc("0x2c")](t))),t.model[fc("0x7e")][fc("0x16e")]((t=>!t.batch[fc("0x2f")]&&this[fc("0xa9")](t))),t[fc("0x153")].markers.on("update:suggestion",((t,e,n)=>{if(null==n){const{id:t}=this[fc("0x97")](e[fc("0x12f")]),n=this._suggestions.get(t);n&&n[fc("0x158")](e[fc("0x12f")])}})),t[fc("0x153")].document.on(fc("0x12c"),(()=>{const e=Array[fc("0x9d")](t[fc("0x153")].document[fc("0xed")].getChangedMarkers())[fc("0x73")]((t=>fc("0x11b")===this[fc("0x97")](t[fc("0x12f")])[fc("0x10f")]));if(0===e[fc("0x170")])return;e[fc("0x105")](((t,e)=>{const n=t.data[fc("0xd7")],o=e[fc("0x5a")][fc("0xd7")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[fc("0x3")].isBefore(o[fc("0x3")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:i}of e){const{id:e}=this[fc("0x97")](t);if(null===i[fc("0xd7")]){const e=this[fc("0x15")](t);o[fc("0xbc")](e)}else{const t=this[fc("0x37")][fc("0x39")](e);null!==i[fc("0xff")]||t[fc("0xa8")]?(n[fc("0xbc")](t[fc("0x13a")]),o.add(t)):this[fc("0xf2")](t)}}o[fc("0x32")]>0&&this[fc("0x131")](o);for(const t of n)this[fc("0x65")]("suggestionChanged",t)})),t[fc("0x153")].on(fc("0x179"),((e,n)=>{const o=n[0];if(!this[fc("0x37")][fc("0x32")])return;if(!o.isDocumentOperation)return;if(o[fc("0xaf")][fc("0x116")]||!o[fc("0xaf")][fc("0x2f")])return;let i,r;switch(o[fc("0x11d")]){case fc("0xba"):i=t[fc("0x153")][fc("0xc")](o.position),r=i.getShiftedBy(o[fc("0x8b")]);break;case fc("0x6d"):i=t[fc("0x153")][fc("0xc")](o.splitPosition),r=t.model[fc("0xc")](o.moveTargetPosition);break;case fc("0x127"):i=t[fc("0x153")][fc("0xc")](o.targetPosition),r=i[fc("0x106")](o[fc("0x8b")]);break;default:return}const s=t.model[fc("0xfd")](i,r);t[fc("0x153")][fc("0xe7")]((()=>{for(const{suggestion:t,meta:e}of this[fc("0x124")](s)){if(t[fc("0x31")])continue;if("formatInline"==t.type)continue;const n=vc(t);if(n&&this[fc("0x176")](n)&&fc("0x6d")!=o[fc("0x11d")])continue;const x=t[fc("0x5a")]&&t[fc("0x5a")][fc("0x167")];(fc("0xe5")!=t.type||fc("0x6d")==o[fc("0x11d")]&&!x)&&(e[fc("0xea")]||fc("0x81")==t[fc("0x11d")]&&e[fc("0x43")]||t[fc("0x17")]()[fc("0x36")](s)&&this[fc("0x162")](t,i,r))}}))}),{priority:"lowest"}),t[fc("0x153")].on(fc("0x152"),((e,n)=>{const o=n[0],i=n[1];if(i&&i[fc("0x3d")])return;if(this[fc("0xd6")])return;if(!this[fc("0xf1")][fc("0x13c")])return;if(o.isCollapsed)return;const r=t[fc("0x153")][fc("0x79")],{start:s,end:x}=o.getFirstRange(),a=s[fc("0xcc")]&&r[fc("0x56")](s[fc("0xcc")])?null:r[fc("0x9f")](s,fc("0xb5")),c=x[fc("0xe1")]&&r[fc("0x56")](x[fc("0xe1")])?null:r[fc("0x9f")](x,fc("0x88")),l=t.model.createRange(a?a[fc("0x3")]:s,c?c[fc("0x14")]:x);t.model[fc("0xe7")]((e=>{this[fc("0x109")](l);const n=t[fc("0x153")][fc("0x79")][fc("0x9f")](l[fc("0x3")]);o.is(fc("0x78"))?e[fc("0x126")](n):o.setTo(n)})),e[fc("0x9c")]()}),{priority:e.priorities[fc("0x119")]+10}),t.model.on(fc("0xa5"),((e,n)=>{const o=n[n[fc("0x170")]-1];o&&o[fc("0x3d")]||this._isForcedDefaultExecutionBlock||this[fc("0xf1")][fc("0x13c")]&&(t[fc("0x153")][fc("0xe7")]((()=>{let o=t.model[fc("0xa5")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[fc("0x160")]=o[fc("0x174")]();const i=o[fc("0x14")][fc("0xe1")],r=t[fc("0x153")][fc("0x79")];i&&r[fc("0x46")](i)&&!r[fc("0xa2")](i)&&(o=t.model[fc("0xfd")](o[fc("0x3")],t.model[fc("0xc")](i,fc("0x14")))),this[fc("0x149")](o)})),e[fc("0x9c")]())}),{priority:"high"}),this[fc("0x38")][fc("0x95")][fc("0xbc")](fc("0x141"),this[fc("0xf1")]),this[fc("0x7")](fc("0x141"));const i=new p(t,this._suggestions);t[fc("0x95")][fc("0xbc")](fc("0xb9"),i),this[fc("0x7")](fc("0xb9"));const r=new y(t,this[fc("0x37")]);t[fc("0x95")][fc("0xbc")](fc("0x21"),r),this[fc("0x7")](fc("0x21")),t.commands[fc("0xbc")](fc("0xa3"),new F(t,i,this[fc("0x37")])),this.enableCommand("acceptAllSuggestions"),t.commands.add(fc("0xf3"),new F(t,r,this[fc("0x37")])),this[fc("0x7")](fc("0xf3")),t[fc("0x95")][fc("0xbc")]("acceptSelectedSuggestions",new j(t,i,this[fc("0x37")])),this[fc("0x7")](fc("0x5c")),t.commands[fc("0xbc")](fc("0x62"),new j(t,r,this[fc("0x37")])),this[fc("0x7")](fc("0x62"));const s=t[fc("0x133")][fc("0x39")](fc("0x44"));this[fc("0x8d")](s,fc("0x5d"),((t,{threadId:e})=>{const n=this[fc("0x37")][fc("0x39")](e);n&&n[fc("0xf9")]&&1===n.commentThread.length&&this[fc("0x40")](e,{hasComments:!0})}),{priority:fc("0x2")}),this[fc("0x8d")](s,fc("0x148"),((t,{threadId:e})=>{const n=this[fc("0x37")].get(e);n&&n[fc("0xf9")]&&!n[fc("0xf9")][fc("0x170")]&&this[fc("0x40")](e,{hasComments:!1})}),{priority:fc("0x2")})}set[fc("0xa6")](t){if(this._adapter)throw new e.CKEditorError(fc("0x165"),this);this._adapter=t}get[fc("0xa6")](){return this[fc("0x3f")]}[fc("0x144")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this._suggestions[fc("0xb8")]())t&&!e[fc("0xa8")]||n[fc("0xcd")](e);return e?n[fc("0x51")]((t=>t[fc("0xac")]())):n}[fc("0xbd")](t){const n=this._suggestions[fc("0x39")](t);if(!n)throw new e.CKEditorError("track-changes-suggestion-not-found",this);return n}hasSuggestion(t){return this[fc("0x37")][fc("0x4e")](t)}addSuggestionData(t){const{authorId:e,id:n,attributes:o}=t,[i,r]=t[fc("0x11d")].split(":"),s=this[fc("0x37")][fc("0x39")](n)||this[fc("0x49")](i,r,n,e,o);if(this[fc("0x12d")](s),this[fc("0x146")](s,i,r||null,e),s[fc("0x6")]=t[fc("0x6")],s[fc("0x154")]=!0,o&&o["@external"]){const t=o[fc("0xae")],e=this[fc("0x1a")](t[fc("0x75")]);s[fc("0xeb")]=t[fc("0x6")],s[fc("0x2d")]=e,s[fc("0x4c")]=!0}else s.authoredAt=t[fc("0x6")];switch(t[fc("0x5a")]&&(s[fc("0x5a")]=t[fc("0x5a")]),t.attributes&&(s[fc("0x134")]=t[fc("0x134")]),this[fc("0x3f")]&&this._adapter[fc("0x5")]||(s[fc("0x7c")]=!0),this[fc("0x132")][fc("0x39")](s)){case"notReady":this._suggestionState[fc("0x175")](s,fc("0x10a"));break;case fc("0x16"):s.isInContent?(this._refreshSuggestionsChain(new Set([s])),this[fc("0x7d")](new Set([s])),this[fc("0x132")].set(s,"ready"),this[fc("0x65")](fc("0xd9"),s)):this[fc("0x132")].set(s,fc("0x59"))}return s}acceptSuggestion(t){this[fc("0x3d")]((()=>{this.editor[fc("0x153")][fc("0xe7")]((()=>{for(const e of t[fc("0x117")]())e.accept()}))}))}discardSuggestion(t){this[fc("0x3d")]((()=>{this[fc("0x38")][fc("0x153")][fc("0xe7")]((()=>{for(const e of t[fc("0x117")]())e[fc("0x8f")]()}))}))}[fc("0x7")](t,n){const o=this[fc("0x38")][fc("0x95")][fc("0x39")](t);if(!o)throw new e.CKEditorError(fc("0xc6"),this,{commandName:t});if(this[fc("0x61")][fc("0x4e")](o))throw new e.CKEditorError(fc("0x107"),this,{commandName:t});this[fc("0x61")][fc("0xbc")](o),n&&o.on(fc("0x110"),((t,e)=>{this.trackChangesCommand[fc("0x13c")]&&(this._isForcedDefaultExecutionBlock||(e.length>0&&e[e[fc("0x170")]-1]&&e[e[fc("0x170")]-1][fc("0x3d")]?e[fc("0x11c")]():(t[fc("0x160")]=n(((...t)=>o[fc("0x110")](...t,{forceDefaultExecution:!0})),...e),t[fc("0x9c")]())))}),{priority:fc("0xa0")})}[fc("0x3d")](t){let n,o;const i=this[fc("0xd6")];this._isForcedDefaultExecutionBlock=!0;try{n=t()}catch(t){o=t}return i||(this[fc("0xd6")]=!1),o&&e.CKEditorError[fc("0xb")](o,this),n}[fc("0x149")](t,n=null,o={}){if(t.isCollapsed)return null;const i=this[fc("0x38")][fc("0x133")].get("Users").me;for(const{suggestion:e,meta:i}of this[fc("0x124")](t,fc("0x81")))if(i.isOwn){if(!i[fc("0x100")]){if(i.containsRangeInObject){if(!this._mergeNestedSuggestions||!Ic(e,o))continue;return e}if(Ic(e,o))return e;this[fc("0x162")](e,t[fc("0x3")],t[fc("0x14")]);break}if(n==e[fc("0xe4")]&&Ic(e,o)){const n=e[fc("0x17")]();return n[fc("0x3")][fc("0x4d")](t[fc("0x14")])?this[fc("0x13d")](e,this[fc("0x2b")][fc("0xfd")](t.start,n[fc("0x14")])):this[fc("0x13d")](e,this[fc("0x2b")][fc("0xfd")](n[fc("0x3")],t[fc("0x14")])),e}}const r=(0,e.uid)(),s=i.id,x=n?fc("0x74")+n:fc("0x81"),a=this[fc("0x15e")]({id:r,type:x,createdAt:new Date,authorId:s,attributes:o});return this[fc("0xc2")](x,r,s,t),a}markMultiRangeInsertion(t,n=fc("0x6c"),o={}){const i=this[fc("0x38")].plugins[fc("0x39")]("Users").me,r=this[fc("0x161")][fc("0x6e")](fc("0x81"),n,"join");for(const e of this[fc("0x144")]())if(e[fc("0x2d")].id==i.id&&fc("0x81")==e[fc("0x11d")]&&e[fc("0xe4")]==n&&Ic(e,o)&&(r(e[fc("0xd3")](),t)||r(t,e[fc("0xd3")]()))){for(const n of t)e[fc("0x3a")](n);return e}for(const{suggestion:e,meta:n}of this[fc("0x124")](t,"insertion")){if(!n[fc("0x43")])continue;if(!this[fc("0x7f")]&&n.containsRangeInObject)continue;if(!Ic(e,o))continue;let i=!0;for(const n of e.getRanges())for(const e of t)if(!n[fc("0x36")](e)){i=!1;break}if(i)return e}const s=(0,e.uid)(),x=i.id,a="insertion:"+n,c=this._setSuggestionData({id:s,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[fc("0xc2")](a,s,x,e,Jo[fc("0xe2")]());return c}[fc("0x163")](t,n,o=null,i={}){if(o=o||Tc(n),t[fc("0x27")])return null;if(fc("0xf6")===this[fc("0x53")]){const e=this[fc("0x161")].getSuggestionCallback(fc("0x8"),o,fc("0xe"));return this[fc("0x3d")]((()=>e([t],n,i))),null}const r=this[fc("0x38")][fc("0x133")].get(fc("0xe0")).me,s=[];if(fc("0x33")!==this._trackFormatChanges)for(const{suggestion:e,meta:n}of this._findSuggestions(t,fc("0x81")))n.isOwn&&!n[fc("0x72")]&&s[fc("0xcd")](...e[fc("0xd3")]());const x=function(t,e){const n=[];for(const o of e){const e=t[fc("0x136")](o);e&&n[fc("0xcd")](e)}return n}(t,s),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[fc("0x170")];){const o=n[e][fc("0x52")](t);n[fc("0x10c")](e,1,...o),e+=o[fc("0x170")]}}return n}(t,s);x[fc("0x170")]&&this[fc("0x2b")][fc("0xe7")]((()=>{for(const t of x){const e=this._suggestionFactory[fc("0x6e")](fc("0x8"),o,fc("0xe"));this[fc("0x3d")]((()=>e([t],n,i)))}}));for(const t of a){let s=null,x=t[fc("0x3")],a=t[fc("0x14")];for(const{suggestion:e,meta:n}of this._findSuggestions(t,fc("0x8"))){if(!n.isOwn)continue;if(e[fc("0xe4")]!=o)continue;if(!Ic(e,i))continue;const r=e[fc("0x17")]();if(r[fc("0x36")](t,!0))return null;x=x[fc("0x92")](r[fc("0x3")])?x:r[fc("0x3")],a=a[fc("0xdb")](r.end)?a:r[fc("0x14")],s?r.start[fc("0x92")](s[fc("0x17")]().start)?(s[fc("0xf0")](),s=e):e[fc("0xf0")]():s=e}const c=this._model[fc("0xfd")](x,a);if(s)this[fc("0x13d")](s,c);else{const t=(0,e.uid)(),s=r.id;this._setSuggestionData({id:t,type:fc("0xa1")+o,data:n,createdAt:new Date,authorId:s,attributes:i}),this[fc("0xc2")](fc("0xa1")+o,t,s,c)}}return null}[fc("0x50")](t,n,o=[],i=null,r={}){n[fc("0x6a")]||(n[fc("0x6a")]=n[fc("0x15f")]),n[fc("0x167")]=t.is("range"),i=i||Tc(n);const s=o[fc("0x51")]((t=>Cc(t,this[fc("0x2b")]))),x=t.is(fc("0xb3"))?t:Cc(t,this[fc("0x2b")]);if(fc("0xf6")===this[fc("0x53")]){const t=this[fc("0x161")].getSuggestionCallback(fc("0xe5"),i,fc("0xe"));return this[fc("0x3d")]((()=>t([x],n,r))),null}s[fc("0xcd")](x);let a=!0;for(const t of s)if(!this[fc("0x98")](t)){a=!1;break}if(a&&fc("0x33")!==this[fc("0x53")]){const t=this._suggestionFactory[fc("0x6e")](fc("0xe5"),i,fc("0xe"));return this[fc("0x3d")]((()=>t([x],n,r))),null}let c=null,l=x.start,u=x[fc("0x14")];for(const{suggestion:t,meta:e}of this._findSuggestions(x,fc("0xe5"))){if(!e[fc("0x43")])continue;if(e.isNextTo||e.containsRangeInObject||e[fc("0x72")])continue;if(t[fc("0x5a")][fc("0x6a")]!=n[fc("0x6a")])continue;if(!Ic(t,r))continue;const o=t[fc("0x17")]();if(t[fc("0xe4")]==i){if(o[fc("0x36")](x,!0))return null;l=l[fc("0x92")](o[fc("0x3")])?l:o[fc("0x3")],u=u[fc("0xdb")](o[fc("0x14")])?u:o.end,c?o[fc("0x3")][fc("0x92")](c[fc("0x17")]()[fc("0x3")])?(c.removeMarkers(),c=t):t[fc("0xf0")]():c=t}else{const e=x[fc("0x136")](o);this[fc("0x85")](t,e)}}const d=this.editor.plugins[fc("0x39")]("Users").me,g=(0,e.uid)(),f=d.id;if(c)return this[fc("0x13d")](c,this._model[fc("0xfd")](l,u)),c;{const t=this._setSuggestionData({id:g,type:fc("0x115")+i,data:n,createdAt:new Date,authorId:f,attributes:r});return this[fc("0xc2")](fc("0x115")+i,g,f,this[fc("0x2b")][fc("0xfd")](l,u)),t}}[fc("0x66")](t,n,o=[],i=null,r={}){n[fc("0x6a")]||(n[fc("0x6a")]=n[fc("0x15f")]);const s=t[0];n[fc("0x167")]=s.is(fc("0xb3")),i=i||Tc(n);const x=o[fc("0x51")]((t=>Cc(t,this._model))),a=s.is(fc("0xb3"))?t:t[fc("0x51")]((t=>Cc(t,this._model)));if("never"===this[fc("0x53")]){const t=this[fc("0x161")][fc("0x6e")](fc("0xe5"),i,"accept");return this.forceDefaultExecution((()=>t(a,n,r))),null}x[fc("0xcd")](...a);let c=!0;for(const t of x)if(!this._rangeIsInLocalUserInsertion(t)){c=!1;break}if(c&&"always"!==this._trackFormatChanges){const t=this[fc("0x161")][fc("0x6e")]("formatBlock",i,fc("0xe"));return this[fc("0x3d")]((()=>t(a,n,r))),null}const l=this[fc("0x38")][fc("0x133")][fc("0x39")](fc("0xe0")).me;for(const t of this[fc("0x144")]()){if(t.author.id!=l.id)continue;if(fc("0xe5")!=t[fc("0x11d")]||t[fc("0x5a")][fc("0x6a")]!=n[fc("0x6a")])continue;if(!Ic(t,r))continue;const e=t[fc("0xe4")]==i;for(let n=0;n<a[fc("0x170")];n++){const o=a[n];for(const i of t[fc("0x16b")]()){const r=i[fc("0xe6")]();if(o.isEqual(r)){e?(a[fc("0x10c")](n,1),n--):t[fc("0x96")](i[fc("0x12f")]);break}}}}if(0==a[fc("0x170")])return null;const u=this[fc("0x161")][fc("0x6e")]("formatBlock",i,fc("0x10b"));for(const t of this[fc("0x144")]())if(t[fc("0x2d")].id==l.id&&fc("0xe5")==t.type&&t.data[fc("0x6a")]==n[fc("0x6a")]&&t[fc("0xe4")]==i&&Ic(t,r)&&(u(t[fc("0xd3")](),a)||u(a,t.getRanges()))){for(const e of a)t[fc("0x3a")](e);return t}const d=(0,e.uid)(),g=l.id,f="formatBlock:"+i,m=this[fc("0x15e")]({id:d,type:f,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[fc("0xc2")](f,d,g,t,Jo[fc("0xe2")]());return m}[fc("0x109")](t,n=null,o={}){if(t[fc("0x27")])return null;const i=this[fc("0x38")][fc("0x133")][fc("0x39")]("Users").me,r=new s.LiveRange(t[fc("0x3")],t[fc("0x14")]);for(const{suggestion:t,meta:e}of this[fc("0x124")](r,"insertion"))if(e[fc("0x43")]&&!e[fc("0x100")])if(t[fc("0x31")]){const e=t[fc("0xd3")]()[fc("0x73")]((t=>"$graveyard"!=t[fc("0xf5")].rootName));if(e[fc("0xbe")]((t=>r[fc("0x36")](t,!0)))&&t[fc("0x8f")](),e[fc("0xbf")]((t=>t[fc("0x36")](r,!0)))){const t=this._suggestionFactory.getSuggestionCallback(fc("0x11"),n,fc("0xe"));return this[fc("0x3d")]((()=>t([r],null,o))),null}}else{const e=r.getIntersection(t.getFirstRange());null!==e&&t._onDiscard([e],null,o)}if(r[fc("0x15c")](),r.isCollapsed||fc("0xd1")==r[fc("0xf5")][fc("0x13f")])return null;let x=null,a=r[fc("0x3")],c=r[fc("0x14")];const l=this[fc("0x124")](r,"deletion");for(const{suggestion:t,meta:e}of l){const n=this._model[fc("0xfd")](a,c);if(e[fc("0x43")]&&(this[fc("0x7f")]||!e[fc("0xea")]&&!e.isInsideObject))if(t[fc("0x31")]){if(!Ic(t,o))continue;let e=!0;for(const o of t.getRanges()){if(o.containsRange(n,!0))return t;n[fc("0x36")](o)||(e=!1)}e&&t[fc("0x8f")]()}else{const e=t[fc("0x17")]();if(e[fc("0x36")](n,!0))return t;if(!Ic(t,o)){n[fc("0x36")](e)?t[fc("0xf0")]():e.containsPosition(a)?a=e[fc("0x14")]:e[fc("0x30")](c)&&(c=e[fc("0x3")]);continue}a=a.isBefore(e.start)?a:e.start,c=c.isAfter(e.end)?c:e.end,o=Object.assign({},t[fc("0x134")]),x?e[fc("0x3")].isBefore(x[fc("0x17")]().start)?(x[fc("0xf0")](),x=t):t[fc("0xf0")]():x=t}}if(x)return this._setSuggestionRange(x,this._model.createRange(a,c)),x;{const t=(0,e.uid)(),r=this._model[fc("0xfd")](a,c),s=i.id,x=n?fc("0x8c")+n:fc("0x11"),l=this[fc("0x15e")]({id:t,type:x,createdAt:new Date,authorId:s,attributes:o});return this._addSuggestionMarker(x,t,s,r),l}}[fc("0xca")](t,n=fc("0x6c"),o={}){const i=this.editor[fc("0x133")][fc("0x39")]("Users").me,r=t[fc("0x51")]((t=>new s.LiveRange(t[fc("0x3")],t[fc("0x14")]))),x=new Set;for(const{suggestion:t,meta:e}of this[fc("0x124")](r,"insertion"))e.isOwn&&!e[fc("0x100")]&&x[fc("0xbc")](t);for(const e of x)if(e[fc("0x31")]){const i=e[fc("0xd3")]();if((!e.attributes||!e[fc("0x134")][fc("0x12a")])&&i[fc("0xbe")]((t=>r[fc("0xbf")]((e=>e[fc("0x36")](t,!0)))))&&e.discard(),r[fc("0xbe")]((t=>i[fc("0xbf")]((e=>e[fc("0x36")](t,!0)))))){const e=this[fc("0x161")].getSuggestionCallback("deletion",n,"accept");return this[fc("0x3d")]((()=>e(t,null,o))),null}}else{const t=e[fc("0x17")]();if(r[fc("0xbf")]((e=>e[fc("0x36")](t,!0)))&&e[fc("0x8f")](),r.every((e=>t[fc("0x36")](e,!0)))){const t=this._suggestionFactory.getSuggestionCallback(fc("0x11"),n,fc("0xe"));return this[fc("0x3d")]((()=>t(r,null,o))),null}}const a=this[fc("0x161")][fc("0x6e")](fc("0x11"),n,"join");let c=null;for(const t of this[fc("0x144")]())if(t[fc("0x2d")].id==i.id&&t[fc("0xa8")]&&"deletion"==t[fc("0x11d")]&&t[fc("0xe4")]==n&&Ic(t,o)&&(a(t[fc("0xd3")](),r)||a(r,t.getRanges())))if(c){if(t.commentThread&&t.commentThread.length)continue;for(const e of t[fc("0xd3")]())c.isIntersectingWithRange(e)||c[fc("0x3a")](e);t[fc("0xf0")]()}else{c=t;for(const e of r)t[fc("0x13b")](e)||t.addRange(e)}if(c)return c;x[fc("0x22")]();for(const{suggestion:t,meta:e}of this[fc("0x124")](r,"deletion"))e[fc("0x43")]&&(this._mergeNestedSuggestions||!e.containsRangeInObject&&!e[fc("0x72")])&&Ic(t,o)&&x[fc("0xbc")](t);for(const t of x){const e=t[fc("0xd3")]();if((!o||!o.skipNestingCheck)&&r.every((t=>e.some((e=>e[fc("0x36")](t,!0))))))return t;(!t[fc("0x134")]||!t[fc("0x134")][fc("0x12a")])&&e.every((t=>r.some((e=>e.containsRange(t,!0)))))&&t[fc("0x8f")]()}const l=(0,e.uid)(),u=i.id,d=fc("0x8c")+n,g=this[fc("0x15e")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of r)t[fc("0x15c")](),t[fc("0x27")]||"$graveyard"==t[fc("0xf5")].rootName||this[fc("0xc2")](d,l,u,t,Jo.getMultiRangeId());return g}[fc("0x14b")](t,n,o,i,r){if(t.isCollapsed)return[];if(fc("0xf6")===this[fc("0x53")])return[];const s=this[fc("0x38")][fc("0x133")][fc("0x39")]("Users").me.id,x=Array[fc("0x9d")](this._suggestions.values()).filter((e=>fc("0x3e")==e[fc("0x11d")]&&e.data[fc("0x3c")]==n&&e.isIntersectingWithRange(t)));if(fc("0x10")===this[fc("0x53")]){const e=this[fc("0x124")](t,fc("0x81"))[fc("0x73")]((({meta:t})=>t.isOwn&&!t.isInsideObject&&!t[fc("0x100")]))[fc("0x51")]((({suggestion:t})=>t));x[fc("0x29")](...e)}const a=new Map([[t,o]]);for(const t of x){const e="attribute"==t.type?t.data[fc("0x147")]:void 0,r=t.getFirstRange(),s=Array[fc("0x9d")](a[fc("0x13")]())[fc("0xe3")]((t=>t[fc("0x113")](r)));if(!s)continue;const x=s[fc("0x52")](r);this[fc("0x176")](n)&&"insertion"==t[fc("0x11d")]&&0!=x[fc("0x170")]||(a[fc("0xfb")](s),x[fc("0x83")]((t=>{a[fc("0x175")](t,o)})),fc("0x81")!=t[fc("0x11d")]&&e!=i&&a.set(s.getIntersection(r),e))}const c=[];for(const[t,o]of a){const x=(0,e.uid)(),a={key:n,oldValue:o,newValue:i};n.length>37&&console[fc("0x9a")]("Creating a suggestion for attribute with too long attribute key. This may lead to errors. Change the attribute key to a value shorter than 37 characters.",{key:n});const l=(fc("0xdd")+(n+"|")+Tc({newValue:i}))[fc("0x60")](0,60),u=this[fc("0x15e")]({id:x,type:l,data:a,createdAt:new Date,authorId:s,attributes:r});c[fc("0xcd")](u),this._addSuggestionMarker(l,x,s,t)}return c}[fc("0x125")](t){this._blockAttributeKeys.add(t)}[fc("0x84")](t){this[fc("0x10d")][fc("0xbc")](t)}_enableDefaultAttributesIntegration(t,e=[],n=[]){this.enableCommand(t,((t,...e)=>{this._recordAttributeChanges((()=>{t(...e)}))}));for(const t of e)this[fc("0x84")](t);for(const t of n)this[fc("0x125")](t)}_setSuggestionRange(t,e){const n=t[fc("0x63")]();this[fc("0x2b")][fc("0xe7")]((t=>{t.updateMarker(n,{range:e})}))}[fc("0x12d")](t){const e=t.id,n=this[fc("0x38")].config.get(fc("0xee"));this[fc("0xb2")][fc("0x67")](e)||this[fc("0xb2")][fc("0x90")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[fc("0xb2")][fc("0x89")](e);o.unbind(fc("0xef")),o.isRemovable=!1,t[fc("0xf9")]=o}_checkSuggestionCorrectness(t,n,o,i){if(t[fc("0x11d")]!=n||t[fc("0xe4")]!=o||t.creator.id!=i)throw this[fc("0x38")].enableReadOnlyMode("track-changes-suggestion-data-mismatch"),new e.CKEditorError(fc("0x130"),this)}_cutOutSuggestionMarker(t,n){const o=t[fc("0x17")]();if(n.isEqual(o))t[fc("0xf0")]();else if(o[fc("0x36")](n)){const i=this[fc("0x2b")][fc("0xc")](n[fc("0x3")].nodeBefore,"end");this[fc("0x13d")](t,this[fc("0x2b")][fc("0xfd")](o[fc("0x3")],i));const r=(0,e.uid)(),s=t.creator.id,x=t[fc("0x11d")]+":"+t[fc("0xe4")];this[fc("0x15e")]({id:r,type:x,createdAt:new Date,authorId:s,data:t[fc("0x5a")],attributes:t[fc("0x134")]});const a=this[fc("0x2b")][fc("0xc")](n[fc("0x14")].parent,fc("0x2e")),c=this[fc("0x2b")][fc("0xfd")](a,o.end);this[fc("0xc2")](x,r,s,c)}else if(o[fc("0x30")](n[fc("0x3")])){const e=this[fc("0x2b")][fc("0xc")](n.start[fc("0xe1")],fc("0x14"));this[fc("0x13d")](t,this[fc("0x2b")][fc("0xfd")](o[fc("0x3")],e))}else{const e=this[fc("0x2b")].createPositionAt(n[fc("0x14")][fc("0xd4")],fc("0x2e"));this[fc("0x13d")](t,this[fc("0x2b")].createRange(e,o[fc("0x14")]))}}_rangeIsInLocalUserInsertion(t){for(const{suggestion:e,meta:n}of this._findSuggestions(t,fc("0x81"))){if(!n[fc("0x43")])continue;const o=e[fc("0xd3")]();for(const e of o)if(!t[fc("0x52")](e)[fc("0x170")])return!0}return!1}[fc("0xdf")](t){const n=this.editor.plugins[fc("0x39")](fc("0xe0")).getUser(t);if(!n)throw new e.CKEditorError(fc("0x102"),this);return n}[fc("0x1a")](t){const e=this[fc("0x38")][fc("0x133")].get(fc("0xe0")),n=(0,r.hashObject)(fc("0x140")+t);return e[fc("0x151")](n)||e[fc("0xc1")]({id:n,name:t})}[fc("0x49")](t,e,n,o,i){const r=this[fc("0xdf")](o),s=this._suggestionFactory.buildSuggestion(t,e,n,r,i,(t=>this[fc("0x40")](n,{attributes:t})));return this[fc("0x8d")](s,fc("0xe"),(()=>{this[fc("0x40")](n,{state:fc("0x129")})}),{priority:fc("0xa0")}),this.listenTo(s,fc("0x8f"),(()=>{this._updateSuggestionData(n,{state:fc("0x142")})}),{priority:fc("0xa0")}),this._suggestions.set(n,s),this[fc("0x132")][fc("0x175")](s,"notReady"),s}_splitMarkerName(t){const e=t[fc("0x6d")](":");return{group:e[0],type:e[1],subType:e[fc("0x170")]>=5?e[2]:null,id:e[fc("0x170")]<5?e[2]:e[3],authorId:e.length<5?e[3]:e[4],markerCount:6==e.length?e[5]:null}}[fc("0x162")](t,n,o){const i=t[fc("0x17")](),r=i[fc("0x3")],s=i[fc("0x14")];this._setSuggestionRange(t,this[fc("0x2b")][fc("0xfd")](r,n));const x=(0,e.uid)(),a=t[fc("0x169")].id,c=t[fc("0x11d")]+(t.subType?":"+t[fc("0xe4")]:"");this[fc("0x15e")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[fc("0x134")],data:t.data});const l=vc(t);(fc("0xe5")==t[fc("0x11d")]||l&&this[fc("0x176")](l))&&(o=this[fc("0x2b")][fc("0xe9")](o.parent)),this[fc("0xc2")](c,x,a,this[fc("0x2b")][fc("0xfd")](o,s))}[fc("0x124")](t,e=null){const n=[],o=this.editor[fc("0x133")].get(fc("0xe0")).me;Array[fc("0xf")](t)||(t=[t]);for(const i of this[fc("0x144")]()){if(!i[fc("0xa8")])continue;if(e&&i[fc("0x11d")]!=e)continue;let r=!1;for(const e of i[fc("0xd3")]()){for(const s of t){const t=s[fc("0x3")][fc("0x4d")](e[fc("0x14")])||s[fc("0x14")][fc("0x4d")](e[fc("0x3")]);if(t||s[fc("0x136")](e)){const x=s[fc("0x36")](e)&&bc(this[fc("0x2b")][fc("0x79")],e[fc("0x3")],s),a=e.containsRange(s)&&bc(this[fc("0x2b")][fc("0x79")],s[fc("0x3")],e);n[fc("0xcd")]({suggestion:i,meta:{isOwn:o==i.author,isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),r=!0;break}}if(r)break}}return n}[fc("0xc2")](t,e,n,o,i){this[fc("0x2b")][fc("0xe7")]((r=>{let s="suggestion:"+t+":"+e+":"+n;i&&(s=s+":"+i),r[fc("0x14e")](s,{range:o,usingOperation:!0,affectsData:!0})}))}_removeSuggestion(t){const e=t[fc("0x69")],n=t[fc("0x71")];t[fc("0x69")]=null,t[fc("0x71")]=null,null!=e&&(e[fc("0x71")]=n),null!=n&&(n.previous=e),fc("0x135")==this[fc("0x132")][fc("0x39")](t)&&(this[fc("0x132")][fc("0x175")](t,fc("0x59")),this[fc("0x65")](fc("0x14a"),t,e,n))}[fc("0x15e")](t){const n=t.id,o=this[fc("0x42")](t);if(this[fc("0x3f")]&&this[fc("0x3f")][fc("0x5")]){const i=this[fc("0x38")][fc("0x133")][fc("0x39")](fc("0x12")),r=o[fc("0x93")],s=o.subType?o[fc("0x11d")]+":"+o[fc("0xe4")]:o[fc("0x11d")],x=this[fc("0x38")].locale,a=i.add(Qo(x,fc("0x101"))),c={id:n,type:s,hasComments:r,data:t[fc("0x5a")]||null,originalSuggestionId:t.originalSuggestionId||null,attributes:o[fc("0x134")]};this[fc("0x3f")][fc("0x5")](c)[fc("0xde")]((t=>{o._saved=!0,i[fc("0x166")](a),t&&t[fc("0x6")]&&(this[fc("0x37")][fc("0x39")](n)[fc("0x6")]=t.createdAt)})).catch((t=>{throw(0,e.logWarning)(fc("0xb7")),this[fc("0x38")][fc("0x153")].enqueueChange({isUndoable:!1},(()=>{o[fc("0x8f")]()})),o.stopListening(),this[fc("0x37")].delete(o.id),this[fc("0x132")][fc("0xfb")](o),t}))}return o}[fc("0x176")](t){return this._blockAttributeKeys[fc("0x4e")](t)}_updateSuggestionData(t,e){const n=this[fc("0x38")][fc("0x133")][fc("0x39")]("PendingActions"),o=this[fc("0xbd")](t);if(this[fc("0x3f")]&&this[fc("0x3f")][fc("0xb1")])if(o[fc("0x7c")]){const o=n.add(Qo(this[fc("0x38")][fc("0x14d")],fc("0x101")));this[fc("0x3f")][fc("0xb1")](t,e)[fc("0xde")]((()=>{n.remove(o)}))}else o.on("change:_saved",(()=>{this[fc("0x40")](t,e)}))}[fc("0xdc")](t){if(!this[fc("0x3f")]||!this._adapter[fc("0xbd")])throw new e.CKEditorError(fc("0x6b"),this);return this[fc("0x3f")][fc("0xbd")](t)}[fc("0x15")](t){const{id:e,type:n,subType:o,authorId:i}=this[fc("0x97")](t),r=this._suggestions[fc("0x39")](e)||this[fc("0x49")](n,o,e,i,{});switch(this[fc("0x146")](r,n,o,i),this[fc("0x132")].get(r)){case fc("0x55"):this[fc("0xdc")](e).then((t=>{let n=Promise[fc("0xb0")]();t[fc("0x93")]&&(n=this[fc("0xb2")][fc("0x171")]({channelId:this[fc("0x38")][fc("0x19")][fc("0x39")](fc("0xee")),threadId:e})),n[fc("0xde")]((()=>{this.addSuggestionData(t)._saved=!0}))})),this._suggestionState[fc("0x175")](r,fc("0x16"));break;case fc("0x59"):this[fc("0x40")](e,{state:fc("0xc5")});case fc("0x10a"):this[fc("0x132")][fc("0x175")](r,"ready"),this.fire(fc("0xd9"),r);break;case fc("0x135"):this[fc("0x65")](fc("0xf8"),r)}return r.addMarkerName(t),r}[fc("0x131")](t){const e=Array.from(t),n=e[fc("0x73")]((t=>fc("0x3e")==t[fc("0x11d")]));this[fc("0xcf")](n);const o=e[fc("0x73")]((t=>!t[fc("0x31")]&&fc("0x3e")!=t[fc("0x11d")])),i=this[fc("0x144")]({skipNotAttached:!0})[fc("0x73")]((t=>!t.isMultiRange&&fc("0x3e")!=t[fc("0x11d")])),r=i.filter((e=>!t[fc("0x4e")](e))),s=new Map(i[fc("0x51")]((t=>[t,this[fc("0x161")][fc("0x6e")](t.type,t[fc("0xe4")],fc("0x11e"))]))),x=new Map(i[fc("0x51")]((t=>[t,t[fc("0x17")]()]))),a=new Set,c=new Set;for(let t=0;t<o.length;t++)u(o[t],o,t+1);for(let t=0;t<o[fc("0x170")];t++)u(o[t],r,0);const l=new Set;for(let t=0;t<o[fc("0x170")];t++){const e=o[t];!c[fc("0x4e")](e)&&e.previous&&(l.add(e[fc("0x69")]),e[fc("0x69")][fc("0x71")]===e&&(e[fc("0x69")][fc("0x71")]=null),e[fc("0x69")]=null),!a.has(e)&&e[fc("0x71")]&&(l[fc("0xbc")](e[fc("0x71")]),e[fc("0x71")][fc("0x69")]===e&&(e[fc("0x71")][fc("0x69")]=null),e[fc("0x71")]=null)}function u(t,e,n){for(let o=n;o<e.length;o++){const n=d(t,e[o]);n&&(n[0][fc("0x71")]=n[1],n[1][fc("0x69")]=n[0],a.add(n[0]),c.add(n[1]))}}function d(t,e){if(t.author.id!==e[fc("0x2d")].id)return null;const n=s[fc("0x39")](t)(t,e,x[fc("0x39")](t),x.get(e));return n&&s[fc("0x39")](e)(t,e,x.get(t),x.get(e))?n[1][fc("0xf9")]&&n[1][fc("0xf9")][fc("0x170")]?null:n:null}l[fc("0x32")]&&this[fc("0x131")](l)}[fc("0xcf")](t){if(0==t.length)return;const e=this[fc("0x144")]({skipNotAttached:!0})[fc("0x73")]((t=>"attribute"==t[fc("0x11d")]&&t[fc("0x154")])),n=[],o=new Map;for(const t of e){const e=(0,r.hashObject)(t[fc("0x134")]);o.has(e)||(o[fc("0x175")](e,n[fc("0x170")]),n[fc("0xcd")]([]));const i=o[fc("0x39")](e);n[i][fc("0xcd")](t)}!function(){n[fc("0x105")](((t,e)=>{const n=t[0][fc("0x6")],o=e[0][fc("0x6")];return n==o?t[0][fc("0x134")][fc("0x12b")]<e[0][fc("0x134")][fc("0x12b")]?-1:1:n<o?-1:1}));for(const t of n)t[fc("0x105")](((t,e)=>t.id<e.id?-1:1))}();for(let t=0;t<n[fc("0x170")];t++){if(0==n[t][fc("0x170")])continue;const e=[];for(let o=t+1;o<n[fc("0x170")];o++)0!=n[o].length&&i(n[t],n[o])&&e[fc("0xcd")](o);for(const o of e)n[t]=n[t][fc("0x18")](n[o]),n[o]=[]}for(const t of n)for(let e=0;e<t[fc("0x170")];e++)t[e][fc("0x71")]=t[e+1]||null;for(const t of n)for(let e=0;e<t[fc("0x170")];e++)t[e][fc("0x69")]=t[e-1]||null;function i(t,e){if(t[0][fc("0x2d")]!==e[0][fc("0x2d")])return!1;if(n=t[0],o=e[0],(n[fc("0x93")]||o[fc("0x93")])&&(n[fc("0x93")]&&o[fc("0x93")]||!(n[fc("0x93")]&&o[fc("0x6")]<n[fc("0xf9")][fc("0xc0")][fc("0x39")](0)[fc("0x6")]||o.hasComments&&n[fc("0x6")]<o[fc("0xf9")][fc("0xc0")][fc("0x39")](0)[fc("0x6")])))return!1;var n,o;const i=lc(t[0][fc("0x134")],fc("0x12b")),r=lc(e[0][fc("0x134")],fc("0x12b"));return!!Go(i,r)&&(!!t[fc("0xbe")]((t=>e[fc("0xbf")]((e=>t[fc("0x17")]()[fc("0x4d")](e[fc("0x17")]())))))&&e[fc("0xbe")]((e=>t[fc("0xbf")]((t=>e[fc("0x17")]()[fc("0x4d")](t[fc("0x17")]()))))))}}_joinWithAdjacentSuggestions(t){const e=Array[fc("0x9d")](t),n=this[fc("0x144")]({skipNotAttached:!0}),o=n[fc("0x73")]((e=>!t.has(e))),i=new Map(e.map((t=>[t,this[fc("0x161")][fc("0x6e")](t[fc("0x11d")],t[fc("0xe4")],fc("0x10b"))]))),r=new Map(n[fc("0x51")]((t=>[t,t.getRanges()])));for(let t=0;t<e[fc("0x170")];t++)if(s(this,e[t],e,t+1))return!0;for(let t=0;t<e[fc("0x170")];t++)if(s(this,e[t],o,0))return!0;return!1;function s(t,e,n,o){for(let s=o;s<n.length;s++){const o=n[s];if(o[fc("0x11d")]!==e[fc("0x11d")]||o[fc("0x2d")].id!==e[fc("0x2d")].id||o[fc("0xe4")]!==e[fc("0xe4")])continue;if(!kc(e,o))continue;if(fc("0x3e")==e.type&&e[fc("0x5a")][fc("0x147")]!=o[fc("0x5a")][fc("0x147")])continue;if(fc("0x3e")==e.type&&t[fc("0x176")](e.data[fc("0x3c")]))continue;if(fc("0xe5")==e.type){const n=t.editor[fc("0x153")],o=e[fc("0x8e")]();if(o&&(n[fc("0x79")][fc("0xa2")](o)||n[fc("0x79")].isLimit(o)))continue}const x=i[fc("0x39")](e),a=r[fc("0x39")](e),c=r.get(o),l=e[fc("0xf9")]&&e[fc("0xf9")][fc("0x170")],u=o.commentThread&&o[fc("0xf9")][fc("0x170")];if(!l&&x(c,a))return t._joinSuggestions(o,e),r[fc("0xfb")](e),!0;if(!u&&x(a,c))return t[fc("0x4b")](e,o),r.delete(o),!0}return!1}}_joinSuggestions(t,e){if(t.isMultiRange)for(const n of e[fc("0xd3")]())t.addRange(n);else{const n=e.getFirstRange()[fc("0x14")];this[fc("0x13d")](t,this[fc("0x2b")][fc("0xfd")](t[fc("0x17")]()[fc("0x3")],n))}e[fc("0xf0")]()}[fc("0x13e")](t,e){const n=t.startsWith(fc("0xfc"))||t[fc("0x143")]("attribute")?fc("0xc7"):t.toUpperCase();return Qo(this.editor[fc("0x14d")],e+"_"+n+fc("0x12e"))}[fc("0x68")](){const t=this.editor;(0,r.surroundingMarkersDetector)(this._model,(({left:e,entered:n})=>{const o=[];for(const t of e){const{group:e,type:n}=this[fc("0x97")](t[fc("0x12f")]);if(fc("0x11b")===e){o.push(this._getMarkerAnnouncementText(n,fc("0x87")));break}}for(const t of n){const{group:e,type:n}=this._splitMarkerName(t[fc("0x12f")]);if("suggestion"===e){o[fc("0xcd")](this[fc("0x13e")](n,fc("0xcb")));break}}o[fc("0x170")]&&t.ui[fc("0xc9")][fc("0x9e")](fc("0x141"),o.join(" "))}))}_processAttributeChanges(t){if(null!==this[fc("0x121")])return!1;const e=this[fc("0x38")],n=e[fc("0x153")][fc("0x7e")][fc("0xed")][fc("0x77")]();if(0==n[fc("0x170")])return!1;const o=[],i=n[fc("0x73")]((t=>fc("0x3e")==t[fc("0x11d")])),r=n[fc("0x73")]((t=>fc("0xba")==t[fc("0x11d")]&&"$text"!=t[fc("0x12f")])),s=n[fc("0x73")]((t=>fc("0x166")==t[fc("0x11d")]&&fc("0xa4")!=t.name));for(const t of i)o[fc("0xcd")]({key:t[fc("0x139")],newValue:t[fc("0x41")],oldValue:t[fc("0x112")],range:(x=t[fc("0xb3")],null==x[fc("0x14")][fc("0xe1")]&&x[fc("0x14")][fc("0xd4")]==x[fc("0x3")][fc("0xcc")]?Cc(x.start[fc("0xcc")],e[fc("0x153")]):x)});var x;for(const t of r){const n=s.find((e=>e.position[fc("0x4d")](t[fc("0x4a")])));n&&o[fc("0xcd")]({key:fc("0xc4"),newValue:t[fc("0x12f")],oldValue:n[fc("0x12f")],range:e[fc("0x153")].createRangeOn(t[fc("0x4a")][fc("0xcc")])})}return 0!=o.length&&this._reduceExistingSuggestions(t,o)}_processAttributeSuggestions(t){let e=!1;const n=this[fc("0x38")][fc("0x153")][fc("0x7e")].differ[fc("0x35")]()[fc("0x73")]((t=>t[fc("0x5a")][fc("0xff")]&&t.name[fc("0x143")](fc("0x159"))));for(const o of n){const{subType:n,id:i}=this[fc("0x97")](o[fc("0x12f")]),r=n[fc("0x6d")]("|")[0];for(const n of this[fc("0x144")]({skipNotAttached:!0}))n.id!=i&&fc("0x3e")==n[fc("0x11d")]&&n.data&&n[fc("0x5a")][fc("0x3c")]==r&&n[fc("0x17")]().isIntersecting(o[fc("0x5a")][fc("0xff")])&&(this[fc("0xd0")](n,o[fc("0x5a")][fc("0xff")],t),e=!0)}return e}[fc("0x1b")](t){if(null!==this[fc("0x121")])return void t();const n=this.editor;this[fc("0x121")]=n[fc("0x153")][fc("0x7e")][fc("0x1")],t();const o=new Map;for(const t of n[fc("0x153")][fc("0x7e")][fc("0x28")][fc("0x145")](this[fc("0x121")]))if([fc("0x157"),fc("0x128"),fc("0xa7"),"changeAttribute"][fc("0x10e")](t.type)){const e=t[fc("0xaf")],n=o[fc("0x39")](e)||[];n.push(t),o[fc("0x175")](e,n)}this._recordAttributeSuggestionsFromVersion=null;for(const[t,i]of o){const o=(0,e.uid)();n[fc("0x153")][fc("0xec")](t,(t=>{const e=[];for(const t of i){let i,r,s,x;if("rename"==t[fc("0x11d")]){const e=t;i=Cc(e[fc("0x4a")][fc("0xcc")],n[fc("0x153")]),r=fc("0xc4"),s=e[fc("0x23")],x=e.oldName}else{const e=t,o=this[fc("0x176")](e.key),a=this[fc("0x10d")].has(e[fc("0x3c")]);if(!o&&!a)continue;i=o?Cc(e[fc("0xb3")][fc("0x3")][fc("0xcc")],n[fc("0x153")]):e[fc("0xb3")],r=e.key,s=fc("0xa7")==t[fc("0x11d")]?void 0:e.newValue,x=e[fc("0x147")]}this[fc("0x14b")](i,r,x,s,{groupId:o}),e.push({range:i,key:r,newValue:s,oldValue:x})}this[fc("0x86")](t,e)}))}}[fc("0x86")](t,e){if(0==e[fc("0x170")])return!1;let n=!1;for(const o of e){const e=this[fc("0x124")](o[fc("0xb3")],fc("0x3e"))[fc("0x73")]((t=>!t.meta[fc("0x100")]))[fc("0x51")]((t=>t[fc("0x11b")])),i=(0,r.hashObject)({newValue:o[fc("0x14c")]});e[fc("0x73")]((t=>{const[e,n]=t[fc("0xe4")][fc("0x6d")]("|");return e==o[fc("0x3c")]&&n!=i}))[fc("0x83")]((e=>{this._reduceSuggestionAttributeRange(e,o.range,t),n=!0}))}return n}[fc("0xd0")](t,e,n){const o=t[fc("0x17")]()[fc("0x52")](e);0!==o[fc("0x170")]?1!==o[fc("0x170")]?this[fc("0x162")](t,e[fc("0x3")],e[fc("0x14")]):this[fc("0x13d")](t,o[0]):n[fc("0x96")](t.getFirstMarker())}}class pc{constructor(t){this._editor=t,this[fc("0x2b")]=t[fc("0x153")],this[fc("0x178")]=new Map,this[fc("0xb4")]=new Map,this._registerDefaultCallbacks()}[fc("0x11a")](t,e,n,o,i,r){return new Jo(this[fc("0x2b")],{type:t,subType:e,id:n,author:o,creator:o,attributes:i,onAttributesChange:r,onAccept:(...n)=>this[fc("0x6e")](t,e,"accept")(...n),onDiscard:(...n)=>this[fc("0x6e")](t,e,"discard")(...n)})}[fc("0x80")](t,e,n,o){const i=t+":"+e+":"+n;this[fc("0x178")][fc("0x175")](i,o)}[fc("0x6e")](t,e,n){const o=t+":"+e+":"+n;return this[fc("0x178")][fc("0x39")](o)||this._defaultCallbacks.get(t+":"+n)}_registerDefaultCallbacks(){const t=()=>!1,e=t=>{t.sort(((t,e)=>t[fc("0x3")][fc("0x92")](e.start)?1:-1)),this[fc("0x2b")][fc("0xe7")]((e=>{for(const n of t){let t;t=n.end[fc("0xd2")]&&n[fc("0x14")].parent==n[fc("0x3")][fc("0xcc")]?e[fc("0x57")](n[fc("0x3")][fc("0xcc")],"on"):e[fc("0x57")](n),this[fc("0x2b")][fc("0x152")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{e&&this._model[fc("0xe7")]((n=>{const{commandName:o,commandParams:i=[]}=e,r=t.map((t=>(Ec(t)&&(t=this[fc("0x2b")][fc("0xfd")](t[fc("0x14")])),t)))[fc("0x73")]((t=>fc("0xd1")!==t[fc("0xf5")][fc("0x13f")]));if(r.length<1)return;const x=Array.from(this[fc("0x2b")][fc("0x7e")][fc("0xd8")][fc("0xd3")]())[fc("0x51")]((t=>s.LiveRange.fromRange(t)));n[fc("0x126")](r);for(const t of this[fc("0x172")][fc("0x95")].commands())t[fc("0x64")]();i[fc("0xcd")]({forceDefaultExecution:!0}),this._editor[fc("0x110")](o,...i);const a=x[fc("0x73")]((t=>"$graveyard"!=t[fc("0xf5")][fc("0x13f")]));a[fc("0x170")]>0&&n[fc("0x126")](a);for(const t of x)t.detach()}))},o=(t,e)=>1==t.length&&1==e[fc("0x170")]&&t[0][fc("0x14")][fc("0x4d")](e[0].start),i=(t,e,n,o)=>Ac(t,e,n,o,this[fc("0x2b")])?[t,e]:Ac(e,t,o,n,this._model)?[e,t]:null;this[fc("0xb4")][fc("0x175")](fc("0x108"),t),this._defaultCallbacks[fc("0x175")]("insertion:discard",e),this._defaultCallbacks[fc("0x175")](fc("0xab"),o),this._defaultCallbacks.set(fc("0x164"),i),this[fc("0xb4")].set("deletion:accept",e),this[fc("0xb4")].set(fc("0xda"),t),this[fc("0xb4")][fc("0x175")](fc("0x114"),o),this._defaultCallbacks[fc("0x175")]("deletion:chain",i),this[fc("0xb4")][fc("0x175")]("formatInline:accept",n),this[fc("0xb4")].set(fc("0xaa"),t),this[fc("0xb4")].set("formatInline:join",o),this[fc("0xb4")].set("formatInline:chain",t),this[fc("0xb4")][fc("0x175")](fc("0x76"),n),this[fc("0xb4")][fc("0x175")](fc("0xd5"),t),this._defaultCallbacks[fc("0x175")]("formatBlock:join",o),this[fc("0xb4")].set(fc("0x26"),t),this[fc("0xb4")][fc("0x175")]("attribute:accept",t),this._defaultCallbacks[fc("0x175")]("attribute:discard",((t,e)=>{if(!e)return;const n=this[fc("0x172")][fc("0x133")][fc("0x39")](hc);this._model.change((o=>{if(fc("0xc4")==e[fc("0x3c")])for(const n of t){const t=n.start[fc("0xcc")],i=e.oldValue;o[fc("0x157")](t,i)}else if(n[fc("0x176")](e.key))for(const n of t)void 0!==e[fc("0x147")]?o.setAttribute(e[fc("0x3c")],e[fc("0x147")],n.start.nodeAfter):o[fc("0xa7")](e[fc("0x3c")],n[fc("0x3")][fc("0xcc")]);else for(const n of t)e.oldValue?o[fc("0x82")](e[fc("0x3c")],e[fc("0x147")],n):o.removeAttribute(e[fc("0x3c")],n)}))})),this._defaultCallbacks[fc("0x175")](fc("0x1d"),o)}}function bc(t,e,n){for(const o of e[fc("0xd4")][fc("0x156")]({includeSelf:!0,parentFirst:!0})){if(o.root==o)return!1;if(!n[fc("0x111")](o))return!1;if(t[fc("0xa2")](o)||t[fc("0x56")](o))return!0}return!1}function Ec(t){return t.end.parent==t[fc("0x3")][fc("0xcc")]&&t.end[fc("0x15a")]}function _c(t,e,n,o){const i=t=>!t[fc("0x7b")].is("$textProxy")&&!o.isObject(t.item),r=t[fc("0x3")][fc("0x14f")](i),s=t[fc("0x14")][fc("0x14f")](i,{direction:fc("0x88")});return!(t.start.isEqual(r)&&t[fc("0x14")][fc("0x4d")](s)||(r[fc("0x92")](s)?n.updateMarker(e,{range:n[fc("0xfd")](r,s)}):n[fc("0x96")](e),0))}function Tc(t){return(0,r.hashObject)(t)}function yc(t){const e=t[fc("0x3")][fc("0xcc")];return e&&e.is(fc("0x70"))}function Cc(t,e){const n=e[fc("0x79")][fc("0xa2")](t)||e[fc("0x79")][fc("0xfe")](t);return e[fc("0xfd")](e.createPositionAt(t,"before"),n?e[fc("0x138")](t):e[fc("0xc")](t,fc("0x14")))}function Ac(t,e,n,o,i){if(!kc(t,e))return!1;if(n[fc("0x14")][fc("0x4d")](o.start))return!0;if(t.type!=e[fc("0x11d")])return!1;if(!n[fc("0x14")][fc("0x168")](o[fc("0x3")]))return!1;const r=i.createRange(n[fc("0x14")],o[fc("0x3")])[fc("0x5e")]();for(const t of r)if([fc("0x8a"),fc("0x123")][fc("0x10e")](t[fc("0x11d")])&&i[fc("0x79")].isLimit(t.item))return!1;return!0}function kc(t,e){return!(!t[fc("0x154")]||!e[fc("0x154")])&&Go(t[fc("0x134")],e[fc("0x134")])}function Ic(t,e){const n=Rc(t[fc("0x134")]),o=Rc(e);if(!t[fc("0x154")])return!1;for(const t of Object.keys(o))if(!Go(n[t],o[t]))return!1;return!0}function Rc(t){const e=Object[fc("0x9")]({},t);return delete e[fc("0x12a")],delete e[fc("0x94")],e}function vc(t){return fc("0x3e")==t[fc("0x11d")]?t.subType[fc("0x6d")]("|")[0]:null}const Sc=["unbind","model","getRanges","_setPendingAction","PendingActions","view","commentThreadController","_removePendingAction","canEditAt","listenTo","remove","_editor","add","_discardCommand","isDirty","_pendingAction","_acceptCommand","commands","isEnabled","locale","canDiscard","stopListening","canAccept","destroy","change:isDirty","discardSuggestion","acceptSuggestion","execute","bind","get","PENDING_ACTION_SUGGESTION"];var Nc,Lc;Nc=Sc,Lc=272,function(t){for(;--t;)Nc.push(Nc.shift())}(++Lc);const Mc=function(t,e){return Sc[t-=0]};class wc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[Mc("0x8")]=e,this[Mc("0xc")]=n,this[Mc("0xd")]=o,this[Mc("0x12")]=t,this[Mc("0x17")]=t[Mc("0x18")][Mc("0x5")](Mc("0x2")),this._discardCommand=t[Mc("0x18")][Mc("0x5")](Mc("0x1")),this.view[Mc("0x4")]("isEnabled").to(this[Mc("0x17")],this[Mc("0x14")],((t,e)=>t||e)),this[Mc("0xc")][Mc("0x4")](Mc("0x1d")).to(this[Mc("0x17")],"isEnabled",(t=>t&&this[Mc("0x12")].model[Mc("0xf")](e[Mc("0x9")]()))),this[Mc("0xc")][Mc("0x4")](Mc("0x1b")).to(this._discardCommand,Mc("0x19"),(t=>t&&this[Mc("0x12")][Mc("0x8")].canEditAt(e.getRanges()))),this._pendingAction=null,n[Mc("0x15")]&&this[Mc("0xa")](),this[Mc("0x10")](n,Mc("0x2"),(()=>this[Mc("0x2")]())),this[Mc("0x10")](n,Mc("0x1"),(()=>this[Mc("0x1")]())),this[Mc("0x10")](n,Mc("0x0"),(()=>{n[Mc("0x15")]?this._setPendingAction():this[Mc("0xe")]()}))}acceptSuggestion(){this[Mc("0x17")][Mc("0x3")](this[Mc("0x8")].id)}[Mc("0x1")](){this[Mc("0x14")][Mc("0x3")](this[Mc("0x8")].id)}[Mc("0x1e")](){this[Mc("0xc")][Mc("0x7")](Mc("0x19")),this.view.unbind("canAccept"),this[Mc("0xc")][Mc("0x7")](Mc("0x1b")),this[Mc("0x1c")](),this[Mc("0xd")][Mc("0x1e")](),this[Mc("0x16")]&&this[Mc("0xe")]()}[Mc("0xa")](){const t=Qo(this._editor[Mc("0x1a")],Mc("0x6"));this[Mc("0x16")]=this[Mc("0x12")].plugins[Mc("0x5")]("PendingActions")[Mc("0x13")](t)}[Mc("0xe")](){null!==this[Mc("0x16")]&&this[Mc("0x12")].plugins[Mc("0x5")](Mc("0xb"))[Mc("0x11")](this[Mc("0x16")]),this._pendingAction=null}}const Oc=["value","_config","authoredAt","showInput","canDiscard","fire","removeComment","isEnabled","_localUser","CommentView","isActive","destroy","isDirty","locale","focus","editorConfig","commentsListView","submit","bind","_model","isReadOnly","element","length","cancel","set","assign","setData","delegate","commentThreadInputView","disableComments","updateComment","hasDirtyComment","commentThread","commentInputView","disabledSubmit"];var Fc,Dc;Fc=Oc,Dc=485,function(t){for(;--t;)Fc.push(Fc.shift())}(++Dc);const Bc=function(t,e){return Oc[t-=0]};class Pc extends i.View{constructor(t,e,n,o){super(t),this.commentsListView=null,this[Bc("0x21")]=null,this.set("isActive",!1),this.set("authoredAt",e[Bc("0x7")]),this[Bc("0x17")]("authoredAt").to(e),this[Bc("0x1d")]("descriptionParts",[]),this.set("isDirty",!1),this[Bc("0x1d")](Bc("0xc"),!1),this[Bc("0x1d")]("canAccept",!1),this[Bc("0x1d")](Bc("0x9"),!1),this[Bc("0x18")]=e,this[Bc("0xd")]=n,this[Bc("0x6")]=o,o[Bc("0x22")]?this[Bc("0x1d")](Bc("0x1b"),1):this._createCommentViews()}[Bc("0x13")](){this[Bc("0x1a")][Bc("0x13")]()}destroy(){this.commentsListView&&this[Bc("0x15")].destroy(),this.commentThreadInputView&&this.commentThreadInputView[Bc("0x10")](),super[Bc("0x10")]()}_createCommentViews(){const{CommentsListView:t}=this[Bc("0x6")];this.commentsListView=new t(this[Bc("0x12")],this[Bc("0x18")][Bc("0x2")],Object[Bc("0x1e")]({CommentView:this[Bc("0x6")][Bc("0xe")]},this._config)),this.commentsListView[Bc("0x20")](Bc("0xb")).to(this),this[Bc("0x15")].delegate(Bc("0x0")).to(this),this[Bc("0x15")].bind(Bc("0xf")).to(this),this[Bc("0x1d")](Bc("0x1b"),this.commentsListView.length+1),this[Bc("0x17")]("length").to(this[Bc("0x15")],Bc("0x1b"),(t=>t+1)),this.commentThreadInputView=this._createCommentThreadInputView(),this.on(Bc("0xb"),(()=>this.focus())),this.bind(Bc("0x11")).to(this.commentsListView,Bc("0x1"),this[Bc("0x21")].commentInputView,Bc("0x5"),((t,e)=>t||!!e))}_createCommentThreadInputView(){const{CommentThreadInputView:t}=this[Bc("0x6")],e=new t(this[Bc("0x12")],this[Bc("0xd")],this._config[Bc("0x14")]),n=e[Bc("0x3")];return e[Bc("0x17")](Bc("0x8")).to(this,"isActive",this[Bc("0x18")].commentThread,Bc("0x19"),n,Bc("0x5"),((t,e,n)=>!!n||t&&!e)),n.on(Bc("0x16"),((t,e)=>{this[Bc("0xa")]("addComment",e),n.editor[Bc("0x1f")]("")})),n.on(Bc("0x1c"),(()=>this[Bc("0x13")]())),n[Bc("0x17")](Bc("0x4")).to(this[Bc("0x18")][Bc("0x2")],"isReadOnly"),e}}const Uc=["Discard suggestion","EXTERNAL_SUGGESTION","createElement","Accept suggestion","set","querySelector","creator","@external","importWord","editorDestroyed","ck-suggestion-wrapper","setTemplate","ck-suggestion-wrapper--active","ck-annotation__actions","source",'" title="',"author","getExternalSuggestionNote","render","_config","commentThreadInputView","time","getUserViewNotificationText","title","type","ck-comment__info-time","children","name","fire","color","EXTERNAL_IMPORT_WORD_AVATAR","ck-suggestion__actions","isExternal","join","</p>","authoredAt","description","ck-annotation","_createButton","disableComments","bindTemplate","ck-annotation__info-name","change:description","value","acceptButton","ck-suggestion__info-name","getTemplate","</span>",".ck-annotation__content-wrapper","map",'"></span>',"content","delegate","extendTemplate","descriptionParts","ck-suggestion--discard","commentsListView","canDiscard","<p>","ck-suggestion__main","canAccept","ck-suggestion__user","span","bind",'<span class="ck-suggestion-color" style="background-color: ',"isEnabled","_descriptionElement","ck-comment__external","editorReady","discardButton","ck-annotation__info-time","push","ck-suggestion","formatDateTime","attributes","div","innerHTML","isActive","_model","userView","split","EXTERNAL_IMPORT_WORD_SUGGESTION","ck-suggestion-","EXTERNAL_AVATAR","locale","ck-suggestion--accept","ck-annotation__user"];var jc,Gc;jc=Uc,Gc=249,function(t){for(;--t;)jc.push(jc.shift())}(++Gc);const Vc=function(t,e){return Uc[t-=0]};class Hc extends Pc{constructor(e,n,o,i){super(e,n,o,i),this[Vc("0x10")](Vc("0x24"),""),this[Vc("0x4b")](Vc("0x24")).to(this,"descriptionParts",(t=>t&&t[0]?t[0][Vc("0x24")]:"")),this[Vc("0x4b")]("description").to(this,Vc("0x42"),this,Vc("0x2"),((t,e)=>{let n="";for(const e of t)n+=Vc("0x46")+zc(e[Vc("0x3f")],e[Vc("0x29")])+Vc("0x2e");return e?n:(0,r.trimHtml)(n,{limit:140})})),this._descriptionElement=null,this.acceptButton=this[Vc("0x32")](Qo(e,Vc("0xf")),t.icons.check,Vc("0xa"),"acceptSuggestion","sw"),this[Vc("0x38")][Vc("0x4b")](Vc("0x4d")).to(this,Vc("0x48")),this[Vc("0x51")]=this._createButton(Qo(e,Vc("0xc")),t.icons.cancel,Vc("0x43"),"discardSuggestion","sw"),this[Vc("0x51")].bind(Vc("0x4d")).to(this,Vc("0x45")),this[Vc("0x4")]=new r.UserView(e,this[Vc("0x3")][Vc("0x1c")],this[Vc("0x22")]()),this.userView[Vc("0x41")]({attributes:{class:[Vc("0x49"),Vc("0xb")]}}),this[Vc("0x17")](this[Vc("0x3a")]())}[Vc("0x3a")](){const t=this[Vc("0x34")],e=[{tag:Vc("0x0"),attributes:{class:["ck-suggestion__info","ck-annotation__info"]},children:[{tag:Vc("0x4a"),children:[{text:this[Vc("0x4")][Vc("0x27")]}],attributes:{class:[Vc("0x39"),Vc("0x35")]}},{tag:Vc("0x21"),attributes:{datetime:t.to(Vc("0x2f")),class:[Vc("0x25"),Vc("0x52")]},children:[{text:t.to(Vc("0x2f"),(t=>this._config[Vc("0x55")](t)))}]}]},{tag:Vc("0x0"),attributes:{class:[Vc("0x2b"),Vc("0x19")]},children:[this[Vc("0x38")],this[Vc("0x51")]]},{tag:"div",attributes:{class:["ck-annotation__content-wrapper"]}}];this[Vc("0x3")][Vc("0x2c")]&&e[Vc("0x53")]({tag:Vc("0x0"),attributes:{class:[Vc("0x4f")]},children:[{text:this[Vc("0x1d")]()}]});const n={tag:Vc("0x0"),attributes:{class:[Vc("0x16"),t.if("isActive",Vc("0x18")),t.to("type",(t=>Vc("0x7")+t)),this[Vc("0x1f")][Vc("0x33")]&&"ck-suggestion--disabled-comments"],"data-suggestion-id":this._model.id,"data-thread-id":this._model.commentThread.id,"data-author-id":this[Vc("0x3")].author.id,tabindex:-1},children:[{tag:Vc("0x0"),attributes:{class:[Vc("0x54"),Vc("0x31")]},children:[this.userView,{tag:Vc("0x0"),attributes:{class:[Vc("0x47"),"ck-annotation__main"]},children:e}]}]};return this[Vc("0x44")]&&this[Vc("0x20")]&&(n[Vc("0x26")][Vc("0x53")](this[Vc("0x44")],this[Vc("0x20")]),this[Vc("0x44")][Vc("0x40")](Vc("0x50")).to(this),this[Vc("0x44")].delegate(Vc("0x15")).to(this),this[Vc("0x20")][Vc("0x40")]("editorReady").to(this),this[Vc("0x20")][Vc("0x40")](Vc("0x15")).to(this)),n}render(){super[Vc("0x1e")](),this[Vc("0x4e")]=this.element[Vc("0x11")](Vc("0x3c")),this[Vc("0x4e")][Vc("0x1")]=this[Vc("0x30")],this.on(Vc("0x36"),((t,e,n)=>{this._descriptionElement[Vc("0x1")]=n}))}[Vc("0x32")](t,e,n,o,r){const s=new i.ButtonView(this[Vc("0x9")]);return s.set({label:t,icon:e,tooltip:!0,tooltipPosition:r}),s[Vc("0x41")]({attributes:{class:n}}),s.on("execute",(()=>{this[Vc("0x28")](o,this[Vc("0x3")].id)})),s}[Vc("0x1d")](){return Vc("0x14")===this._model[Vc("0x56")][Vc("0x13")].source?Qo(this[Vc("0x9")],Vc("0x6")):Qo(this[Vc("0x9")],Vc("0xd"))}getUserViewNotificationText(){return this[Vc("0x3")][Vc("0x2c")]?Vc("0x14")===this._model[Vc("0x56")][Vc("0x13")][Vc("0x1a")]?Qo(this[Vc("0x9")],Vc("0x2a"),this[Vc("0x3")][Vc("0x12")][Vc("0x27")]):Qo(this.locale,Vc("0x8"),this[Vc("0x3")][Vc("0x12")][Vc("0x27")]):null}}function zc(t,e){let n="";return n+=t[Vc("0x5")]("*")[Vc("0x3d")](((t,e)=>e%2!=0?'<span class="ck-suggestion-type">'+Wc(t)+Vc("0x3b"):Wc(t)))[Vc("0x2d")](""),e&&(n+=Vc("0x4c")+e[Vc("0x37")]+Vc("0x1b")+e[Vc("0x23")]+Vc("0x3e")),n}function Wc(t){const e=document[Vc("0xe")](Vc("0x4a"));return e.innerText=t,e[Vc("0x1")]}const Kc=["CommentsRepository","commandName","isMultiRange","registerAnnotation","Annotations","reduce","some","button","activeAnnotations","size","createCommentThreadController","_initializeController","comments","_updateController","arrowView","getFirstRange","addComment","values","getRanges","push","getMarkerNames","length","Accept all suggestions","comments.maxCommentCharsWhenCollapsed","CommentView","_unbindEditors","source","isDirty","mainView","EditorAnnotations","getDescriptions","view","locale","pluginName","isEnabled","change:activeAnnotations","innerView","discardAllSuggestions","Accept all selected suggestions","listenTo","commentThread","suggestion-","_handleSuggestionControllerDelayed","get","keys","separator","model","plugins","add","map","remove","switchbutton","value","_handleControllerBuffer","getMarkers","toMany","buttonView","comments.maxCommentsWhenCollapsed","commands","Discard all selected suggestions","trackChanges.SuggestionThreadView","execute","componentFactory","clear","TrackChangesEditing","editing","_suggestionToController","getAllAdjacentSuggestions","comments.editorConfig","requires","descriptionParts","acceptSelectedSuggestions","init","actionView","suggestionLoaded","_disableComments","config","focus","getSuggestion","createAnnotation","type","Discard all suggestions","editor","unbind","TrackChangesUI","trackChanges.disableComments","isOn","activeMarkers","destroy","filter","has","getByInnerView","lowest","_annotationViews","change:previous","discardSelectedSuggestions","suggestionUnloaded","suggestionChanged","isInContent","set","_viewToController","trackChanges","_destroyController","define","_refreshActiveMarkers","bind","head","_bindAnnotationToEditors","_descriptionFactory","createAnnotationView"];var qc,$c;qc=Kc,$c=445,function(t){for(;--t;)qc.push(qc.shift())}(++$c);const Xc=function(t,e){return Kc[t-=0]};class Zc extends t.Plugin{static get[Xc("0x40")](){return[hc,r.Users,Xc("0x69"),Xc("0x6d"),Xc("0x18")]}static get[Xc("0x1c")](){return Xc("0x4f")}constructor(t){super(t),this[Xc("0x3d")]=new Map,this[Xc("0x5f")]=new Map,this._annotationViews=new Map,this[Xc("0x30")]=new Map;const e=this.editor[Xc("0x47")];e.define(Xc("0x37"),Hc),e[Xc("0x62")](Xc("0x50"),!1),this[Xc("0x46")]=e[Xc("0x26")]("trackChanges.disableComments")}[Xc("0x25")](t,e){0===this._handleControllerBuffer[Xc("0x4")]&&setTimeout((()=>{for(const[t,e]of this[Xc("0x30")]){const n=this._suggestionToController[Xc("0x55")](t);n||e?n&&e&&this[Xc("0x61")](t):this[Xc("0x6")](t)}this[Xc("0x4d")][Xc("0x2a")][Xc("0x26")](Xc("0x18")).refreshSelectedViews(),this[Xc("0x63")](),this._handleControllerBuffer[Xc("0x3a")]()}),10),this._handleControllerBuffer[Xc("0x5e")](t,e)}[Xc("0x43")](){const t=this[Xc("0x4d")],e=t.plugins[Xc("0x26")]("TrackChangesEditing"),n=t[Xc("0x2a")][Xc("0x26")]("Annotations"),o=t[Xc("0x2a")][Xc("0x26")](Xc("0x18")),i=t[Xc("0x2a")][Xc("0x26")](Xc("0x69"));t.ui[Xc("0x39")][Xc("0x2b")](Xc("0x60"),(t=>this._createUIButton(t))),o.addSourceCollector((()=>{const t=[];for(const[e,n]of Array.from(this[Xc("0x3d")])){const o=e[Xc("0x3e")](),i=[];for(const t of o){if(!t[Xc("0x5d")])continue;if(t[Xc("0x6b")]){i[Xc("0xe")](...t[Xc("0xd")]());continue}const e=t[Xc("0xa")]();if(i.length>0){const t=i[0].getJoined(e);if(t){i[0]=t;continue}}i[Xc("0xe")](e)}t[Xc("0xe")]([n[Xc("0x1a")],i])}return t})),this.listenTo(e,Xc("0x45"),((t,e)=>{this.listenTo(e,Xc("0x59"),((t,n,o,i)=>{e.isInContent&&(null==o?(this[Xc("0x8")](i[Xc("0x65")]),this[Xc("0x25")](e,!1)):(this[Xc("0x8")](o.head),null==i&&this[Xc("0x25")](e,!0)))})),null!==e.previous?this[Xc("0x8")](e.head):this[Xc("0x25")](e,!1)})),this.listenTo(e,Xc("0x5b"),((t,e,n)=>{this.stopListening(e,Xc("0x59")),this[Xc("0x30")].delete(e),this[Xc("0x3d")][Xc("0x55")](e)&&this[Xc("0x61")](e),n&&this[Xc("0x8")](n[Xc("0x65")])})),this[Xc("0x22")](e,Xc("0x5c"),((t,e)=>{this._updateController(e)})),this[Xc("0x22")](n,Xc("0x1e"),(()=>{this._refreshActiveMarkers()})),this.listenTo(i,Xc("0xb"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e.hasSuggestion(n))return;const i=e[Xc("0x49")](n);this[Xc("0x3d")].get(i)[Xc("0x1a")][Xc("0x48")]()}),{priority:Xc("0x57")})}[Xc("0x63")](){const t=this[Xc("0x4d")][Xc("0x2a")].get(Xc("0x6d")),e=this.editor[Xc("0x2a")].get(Xc("0x3b")),n=Array.from(t[Xc("0x3")],(t=>t[Xc("0x1f")]))[Xc("0x54")]((t=>this._viewToController.has(t))),o=[];for(const t of n){const e=this._viewToController.get(t)[Xc("0x29")][Xc("0x3e")]();o[Xc("0xe")](...e[Xc("0x0")](((t,e)=>[...t,...e[Xc("0xf")]()]),[]))}e[Xc("0x52")]=o}_createUIButton(t){const n=(0,i.createDropdown)(t,i.SplitButtonView),o=this.editor[Xc("0x35")][Xc("0x26")](Xc("0x60")),r=Qo(t,"Track changes");n.buttonView[Xc("0x5e")]({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.buttonView[Xc("0x64")](Xc("0x51")).to(o,Xc("0x2f")),n.buttonView.on("execute",(()=>{o[Xc("0x38")](),this[Xc("0x4d")][Xc("0x3c")][Xc("0x1a")][Xc("0x48")]()}));const s=new e.Collection,x=[{type:Xc("0x2e"),model:{withText:!0,label:r,commandName:Xc("0x60")}},{type:Xc("0x28")},{type:Xc("0x2"),model:{withText:!0,label:Qo(t,Xc("0x11")),commandName:"acceptAllSuggestions"}},{type:"button",model:{withText:!0,label:Qo(t,Xc("0x21")),commandName:Xc("0x42")}},{type:"button",model:{withText:!0,label:Qo(t,Xc("0x4c")),commandName:Xc("0x20")}},{type:Xc("0x2"),model:{withText:!0,label:Qo(t,Xc("0x36")),commandName:Xc("0x5a")}}];for(const t of x){let e={type:Xc("0x28")};if(t[Xc("0x29")]){const n=new i.Model(t[Xc("0x29")]),o=this[Xc("0x4d")][Xc("0x35")].get(n[Xc("0x6a")]);n.bind(Xc("0x51"),Xc("0x1d")).to(o,Xc("0x2f"),"isEnabled"),e={type:t[Xc("0x4b")],model:n}}s[Xc("0x2b")](e)}(0,i.addListToDropdown)(n,s);const a=x[Xc("0x54")]((t=>null!=t[Xc("0x29")]))[Xc("0x2c")]((t=>this[Xc("0x4d")][Xc("0x35")][Xc("0x26")](t[Xc("0x29")].commandName))),c=n[Xc("0x33")];return c[Xc("0x44")][Xc("0x4e")]("isEnabled"),c[Xc("0x9")][Xc("0x4e")](Xc("0x1d")),c[Xc("0x44")][Xc("0x64")](Xc("0x1d")).to(o,"isEnabled"),c[Xc("0x9")].bind(Xc("0x1d"))[Xc("0x32")](a,Xc("0x1d"),((...t)=>t[Xc("0x1")]((t=>t)))),n.on(Xc("0x38"),(t=>{this.editor.execute(t[Xc("0x15")].commandName),this.editor[Xc("0x3c")][Xc("0x1a")][Xc("0x48")]()})),n}[Xc("0x6")](t){const e=this.editor,n=e[Xc("0x47")],o=e[Xc("0x2a")][Xc("0x26")](Xc("0x6d")),i=e[Xc("0x2a")][Xc("0x26")](Xc("0x69")),s=e[Xc("0x2a")].get(Xc("0x18")),x=e[Xc("0x2a")][Xc("0x26")](r.Users).me,a=n.get(Xc("0x60")).SuggestionThreadView,{CommentsListView:c,CommentThreadInputView:l}=e[Xc("0x2a")].get("CommentsUI");let u,d;this._annotationViews[Xc("0x55")](t.id)?(d=this._annotationViews[Xc("0x26")](t.id),u=d[Xc("0x17")]):(u=new a(e[Xc("0x1b")],t,x,{disableComments:this[Xc("0x46")],editorConfig:n[Xc("0x26")](Xc("0x3f")),maxCommentsWhenCollapsed:n[Xc("0x26")](Xc("0x34")),maxThreadTotalWeight:n[Xc("0x26")]("comments.maxThreadTotalWeight"),maxCommentCharsWhenCollapsed:n[Xc("0x26")](Xc("0x12")),formatDateTime:(0,r.getDateTimeFormatter)(n[Xc("0x26")]("locale")),CommentView:n[Xc("0x26")](Xc("0x7"))[Xc("0x13")],CommentsListView:c,CommentThreadInputView:l}),u.acceptButton.on(Xc("0x38"),(()=>{e[Xc("0x3c")][Xc("0x1a")][Xc("0x48")]()})),u.discardButton.on("execute",(()=>{e[Xc("0x3c")][Xc("0x1a")].focus()})),d=o[Xc("0x68")](this[Xc("0x4d")][Xc("0x1b")],u),d[Xc("0x64")]("isDirty").to(u,Xc("0x16")),d[Xc("0x64")](Xc("0x10")).to(u),d.bind("type").to(u,Xc("0x4b"),(t=>Xc("0x24")+t)),this[Xc("0x58")][Xc("0x5e")](t.id,d));const g=i[Xc("0x5")](t[Xc("0x23")],u),f=new wc(e,t,u,g),m=t.getAllAdjacentSuggestions().filter((t=>t.isInContent));u[Xc("0x41")]=e[Xc("0x2a")][Xc("0x26")](Xc("0x3b"))._descriptionFactory[Xc("0x19")](m),this[Xc("0x3d")][Xc("0x5e")](t,f),this[Xc("0x5f")].set(u,f);const h=o[Xc("0x4a")]({view:d,target:()=>{const n=[],o=t[Xc("0x3e")]()[Xc("0x54")]((t=>t[Xc("0x5d")]));for(const t of o)n[Xc("0xe")](...t[Xc("0x31")]());return(0,r.getAllMarkersDomElementsSorted)(e[Xc("0x3c")],n)},type:()=>Xc("0x24")+f[Xc("0x1a")].type});i[Xc("0x66")](u,h),o[Xc("0x2b")](h),s[Xc("0x6c")](h)}_destroyController(t){const e=this[Xc("0x4d")][Xc("0x2a")][Xc("0x26")](Xc("0x69")),n=this.editor.plugins[Xc("0x26")](Xc("0x6d")),o=this[Xc("0x3d")][Xc("0x26")](t),i=o[Xc("0x1a")],r=n[Xc("0x56")](i);e[Xc("0x14")](i),r&&n[Xc("0x2d")](r),this[Xc("0x3d")].delete(t),this[Xc("0x5f")].delete(i),o[Xc("0x53")]()}[Xc("0x8")](t){if(!t[Xc("0x5d")]||!this[Xc("0x3d")][Xc("0x55")](t))return;const e=this[Xc("0x4d")][Xc("0x2a")][Xc("0x26")](Xc("0x3b")),n=this._suggestionToController[Xc("0x26")](t),o=t.getAllAdjacentSuggestions();n[Xc("0x1a")][Xc("0x41")]=e[Xc("0x67")][Xc("0x19")](o)}[Xc("0x53")](){for(const t of this[Xc("0x3d")][Xc("0x27")]())this._destroyController(t);for(const t of this[Xc("0x58")][Xc("0xc")]())t[Xc("0x17")][Xc("0x53")]();super.destroy()}}var Yc,Jc,Qc=["getSuggestion","get","TrackChanges","plugins","adapter","editor","pluginName","addSuggestionData","addSuggestion","requires"];Yc=Qc,Jc=458,function(t){for(;--t;)Yc.push(Yc.shift())}(++Jc);var tl=function(t,e){return Qc[t-=0]};class el extends t.Plugin{static get[tl("0x1")](){return[hc,Zc,"Comments"]}static get[tl("0x8")](){return tl("0x4")}set[tl("0x6")](t){this[tl("0x7")][tl("0x5")][tl("0x3")](hc)[tl("0x6")]=t}get[tl("0x6")](){return this[tl("0x7")].plugins[tl("0x3")](hc)[tl("0x6")]}[tl("0x0")](t){return this[tl("0x7")][tl("0x5")][tl("0x3")](hc)[tl("0x9")](t)}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[tl("0x7")][tl("0x5")].get(hc).getSuggestions({skipNotAttached:t,toJSON:e})}[tl("0x2")](t){return this[tl("0x7")][tl("0x5")][tl("0x3")](hc).getSuggestion(t)}}const nl=["createDocumentFragment","editorCreator","getDataWithDiscardedSuggestions","pluginName","Users","trackChangesData","getDataWithAcceptedSuggestions","model","init","editor","result","getFullData","reduce","_adapter","get","set","destroy","define","execute","addSuggestionData","track-changes-data-invalid-editor-creator","data","create","getSuggestions","CommentsRepository","rootsAttributes","getRootsAttributes","getRootNames","users","acceptAllSuggestions","TrackChangesData","appendChild","trackChangesData.editorCreator","TrackChangesEditing","document","getUser","function","TrackChangesDataGetter","plugins","useAnonymousUser","Pagination","addUser","createElement","discardAllSuggestions"];var ol,il;ol=nl,il=443,function(t){for(;--t;)ol.push(ol.shift())}(++il);const rl=function(t,e){return nl[t-=0]},sl=[rl("0x25")];class xl extends t.Plugin{static get requires(){return[hc]}static get[rl("0x0")](){return rl("0x1b")}init(){const t=this[rl("0x6")];if(t.config[rl("0xe")](rl("0x1d"),(e=>{const n=t[rl("0x4")][rl("0x1f")][rl("0x18")]()[rl("0x9")](((t,e)=>(t[e]="",t)),{});return t.constructor[rl("0x13")](n,e)})),rl("0x21")!=typeof t.config[rl("0xb")](rl("0x2"))[rl("0x2a")])throw new e.CKEditorError(rl("0x11"))}[rl("0x3")](t){return ll(this[rl("0x6")],!0,t)}[rl("0x2b")](t){return ll(this.editor,!1,t)}}class al extends t.Plugin{static get[rl("0x0")](){return rl("0x22")}constructor(t){super(t),this[rl("0x7")]="end"}[rl("0x5")](){this[rl("0x6")].plugins[rl("0xb")](rl("0x15"))[rl("0xa")]={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[rl("0x6")][rl("0x23")][rl("0xb")](rl("0x1e"))._adapter=null}}function cl(t){return void 0!==t[rl("0x17")]}async function ll(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,sl);o[rl("0x23")].push(hc,al),o[rl("0x16")]=cl(t)?t[rl("0x17")]():void 0;const i=document[rl("0x29")](),s=t.config[rl("0xb")](rl("0x2"))[rl("0x2a")],x=await s(o,(()=>function(t){const e=document[rl("0x27")]("div");return t[rl("0x1c")](e),e}(i)));!function(t,e){const n=t[rl("0x4")].document[rl("0x18")]()[rl("0x9")](((e,n)=>(e[n]=t[rl("0x12")].get({rootName:n}),e)),{}),o=t[rl("0x23")][rl("0xb")](rl("0x1"))[rl("0x19")].map((t=>({id:t.id,name:t.name}))),i=t[rl("0x23")][rl("0xb")](rl("0x1e"))[rl("0x14")]({skipNotAttached:!0,toJSON:!0}),r=e[rl("0x23")].get(rl("0x1")),s=e[rl("0x23")][rl("0xb")](rl("0x1e"));for(const t of o)r[rl("0x20")](t.id)||r[rl("0x26")](t);r.me||r[rl("0x24")]();for(const t of i)s[rl("0x10")](t);e[rl("0x12")][rl("0xc")](n)}(t,x),x[rl("0xf")](rl(e?"0x1a":"0x28"));const a=cl(x)?x[rl("0x8")](n):x[rl("0x12")][rl("0xb")](n);return await x[rl("0xd")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
|