@ckeditor/ckeditor5-track-changes 40.0.0 → 40.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -15
- package/LICENSE.md +3 -3
- package/README.md +1 -1
- 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/contexts.json +20 -1
- package/lang/translations/ar.po +78 -2
- package/lang/translations/az.po +77 -1
- package/lang/translations/bg.po +78 -2
- package/lang/translations/bn.po +78 -2
- package/lang/translations/ca.po +78 -2
- package/lang/translations/cs.po +78 -2
- package/lang/translations/da.po +78 -2
- package/lang/translations/de.po +78 -2
- package/lang/translations/el.po +78 -2
- package/lang/translations/en-au.po +78 -2
- package/lang/translations/en.po +78 -2
- package/lang/translations/es.po +78 -2
- package/lang/translations/et.po +78 -2
- package/lang/translations/fi.po +78 -2
- package/lang/translations/fr.po +78 -2
- package/lang/translations/gl.po +90 -14
- package/lang/translations/he.po +78 -2
- package/lang/translations/hi.po +78 -2
- package/lang/translations/hr.po +78 -2
- package/lang/translations/hu.po +78 -2
- package/lang/translations/id.po +78 -2
- package/lang/translations/it.po +78 -2
- package/lang/translations/ja.po +78 -2
- package/lang/translations/ko.po +78 -2
- package/lang/translations/lt.po +78 -2
- package/lang/translations/lv.po +78 -2
- package/lang/translations/ms.po +78 -2
- package/lang/translations/nl.po +78 -2
- package/lang/translations/no.po +78 -2
- package/lang/translations/pl.po +78 -2
- package/lang/translations/pt-br.po +96 -20
- package/lang/translations/pt.po +78 -2
- package/lang/translations/ro.po +78 -2
- package/lang/translations/ru.po +78 -2
- package/lang/translations/sk.po +78 -2
- package/lang/translations/sq.po +77 -1
- package/lang/translations/sr-latn.po +78 -2
- package/lang/translations/sr.po +78 -2
- package/lang/translations/sv.po +78 -2
- package/lang/translations/th.po +78 -2
- package/lang/translations/tk.po +77 -1
- package/lang/translations/tr.po +78 -2
- package/lang/translations/tt.po +77 -1
- package/lang/translations/uk.po +78 -2
- package/lang/translations/ur.po +77 -1
- package/lang/translations/vi.po +78 -2
- package/lang/translations/zh-cn.po +78 -2
- package/lang/translations/zh.po +78 -2
- package/package.json +3 -3
- package/src/augmentation.d.ts +40 -40
- package/src/commands/acceptsuggestioncommand.d.ts +24 -24
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.d.ts +24 -24
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.d.ts +24 -24
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.d.ts +24 -24
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.d.ts +26 -26
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.d.ts +16 -16
- package/src/integrations/aiassistant.d.ts +17 -17
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.d.ts +17 -17
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.d.ts +17 -17
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.d.ts +17 -17
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.d.ts +17 -17
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.d.ts +17 -17
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.d.ts +14 -14
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.d.ts +17 -17
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.d.ts +17 -17
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.d.ts +29 -29
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.d.ts +16 -16
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.d.ts +21 -21
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.d.ts +17 -17
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.d.ts +17 -17
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.d.ts +17 -17
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.d.ts +17 -17
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.d.ts +17 -17
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.d.ts +17 -17
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.d.ts +17 -17
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.d.ts +17 -23
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.d.ts +17 -0
- package/src/integrations/imagestyle.js +23 -0
- package/src/integrations/importword.d.ts +18 -18
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.d.ts +17 -17
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.d.ts +16 -16
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.d.ts +17 -17
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.d.ts +17 -17
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.d.ts +29 -29
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.d.ts +17 -17
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.d.ts +17 -17
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.d.ts +17 -17
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.d.ts +17 -17
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.d.ts +17 -17
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.d.ts +17 -17
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.d.ts +16 -16
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.d.ts +17 -17
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.d.ts +17 -18
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.d.ts +42 -42
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.d.ts +22 -22
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.d.ts +19 -19
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.d.ts +26 -26
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.d.ts +22 -22
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.d.ts +22 -22
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.d.ts +17 -17
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.d.ts +27 -27
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.d.ts +17 -17
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.d.ts +17 -17
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.d.ts +17 -17
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.d.ts +21 -21
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.d.ts +291 -276
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.d.ts +183 -163
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.d.ts +180 -244
- package/src/trackchanges.js +1 -1
- package/src/trackchangesconfig.d.ts +78 -75
- package/src/trackchangesdata.d.ts +41 -41
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.d.ts +524 -468
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.d.ts +38 -38
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.d.ts +37 -37
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.d.ts +170 -170
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.d.ts +182 -182
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.d.ts +9 -9
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.d.ts +30 -30
- 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:*
|
|
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(o){var s=e[o];if(void 0!==s)return s.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:()=>hc,TrackChanges:()=>wc,TrackChangesData:()=>jc,TrackChangesEditing:()=>$a});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["editor","commands","refresh","_isEnabledBasedOnSelection","_enabledCommands","value","has","clearForceDisabled","execute","affectsData","_disableUnsupportedCommands","_enableCommands","TrackChangesCommand"];var c,l;c=a,l=132,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("0x2")]=e,this[u("0x3")]=!1,this[u("0x0")](),this[u("0x1")]=!1}[u("0x0")](){this.isEnabled=!0}[u("0x6")](){this[u("0x3")]=!this[u("0x3")],this[u("0x3")]?this._disableUnsupportedCommands():this[u("0x9")]()}[u("0x8")](){for(const t of this[u("0xb")].commands[u("0xc")]())t.affectsData&&!this._enabledCommands[u("0x4")](t)&&t.forceDisabled("TrackChangesCommand")}[u("0x9")](){for(const t of this[u("0xb")][u("0xc")][u("0xc")]())t[u("0x7")]&&!this[u("0x2")].has(t)&&t[u("0x5")](u("0xa"))}}const g=["_isEnabledBasedOnSelection","getRanges","isEnabled","track-changes-accept-suggestion-not-found","model","get","acceptSuggestion","editor","plugins","refresh","execute","_suggestions","TrackChangesEditing"];var m,f;m=g,f=361,function(t){for(;--t;)m.push(m.shift())}(++f);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this[h("0x1")]=e,this.refresh(),this[h("0x3")]=!1}[h("0xc")](){this[h("0x5")]=!0}[h("0x0")](t){const n=this._suggestions[h("0x8")](t);if(!n)throw new e.CKEditorError(h("0x6"),this);const o=n[h("0x4")]();this[h("0xa")][h("0x7")].canEditAt(o)&&this[h("0xa")][h("0xb")][h("0x8")](h("0x2"))[h("0x9")](n)}}const b=["TrackChangesEditing","_suggestions","plugins","canEditAt","getRanges","isEnabled","model","_isEnabledBasedOnSelection","get","track-changes-discard-suggestion-not-found","editor"];var E,_;E=b,_=232,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class C extends t.Command{constructor(t,e){super(t),this._suggestions=e,this.refresh(),this[T("0x6")]=!1}refresh(){this[T("0x4")]=!0}execute(t){const n=this[T("0x0")][T("0x7")](t);if(!n)throw new e.CKEditorError(T("0x8"),this);const o=n[T("0x3")]();this.editor[T("0x5")][T("0x2")](o)&&this[T("0x9")][T("0x1")][T("0x7")](T("0xa")).discardSuggestion(n)}}const y=["isMultiRange","createPositionBefore","color","getRanges","createRange","splice","sort","push","createPositionAfter","execute","isArray","length","schema","end","map","isInContent","change","isTouching","from","isObject","deletion","start"," [color ","type","next"];var k,A;k=y,A=307,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0x18")](((t,e)=>v("0xd")==t[v("0x10")]&&"deletion"!=e[v("0x10")]?-1:v("0xd")!=t[v("0x10")]&&"deletion"==e[v("0x10")]?1:0))}function I(t,e){let n,o=0;const s=[],r=e[v("0x5")];for(;o<t.length;){const i=t[o],x=t[o+1];n||(n=e[v("0x13")](i)),S(e,i,x)||(s[v("0x0")](e[v("0x16")](n,r[v("0xc")](i)?e[v("0x1")](i):e.createPositionAt(i,v("0x6")))),n=null),o++}return s}function S(t,e,n){if(!n)return!1;const o=t.createPositionAfter(e),s=t[v("0x13")](n);return o.isTouching(s)}function L(t,e,n){for(;n[v("0x4")];){const o=n[v("0x17")](0,100);t[v("0x9")]((()=>{for(const t of o)t[v("0x8")]&&e[v("0x2")](t.id)}))}}const N=["getRanges","isInContent","execute","isEnabled","values","model","_suggestions","refresh","from","_command","editor"];var M,w;M=N,w=355,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0x6")]=e,this[O("0x3")]=n,this[O("0x4")](),this._isEnabledBasedOnSelection=!1}refresh(){const t=Array.from(this[O("0x3")].values()).some((t=>t[O("0x9")]));this[O("0x0")]=this[O("0x6")].isEnabled&&t}[O("0xa")](){const t=R(Array[O("0x5")](this[O("0x3")][O("0x1")]()));for(const e of t){const t=e[O("0x8")]();if(!this[O("0x7")].model.canEditAt(t))return}L(this[O("0x7")][O("0x2")],this._command,t)}}const P=["from","editor","_suggestions","execute","document","size","canEditAt","values","_selectedSuggestions","_command","getRanges","selection","model","isEnabled","refresh"];var D,B;D=P,B=481,function(t){for(;--t;)D.push(D.shift())}(++B);const j=function(t,e){return P[t-=0]};class U extends t.Command{constructor(t,e,n){super(t),this[j("0x8")]=e,this[j("0x1")]=n,this[j("0x7")]=new Set,this[j("0xd")](),this._isEnabledBasedOnSelection=!1}[j("0xd")](){const t=this.editor.model[j("0x3")][j("0xa")],e=Array[j("0xe")](this[j("0x1")][j("0x6")]());this[j("0x7")]=function(t,e){const n=Array[v("0xb")](t[v("0x15")]()),o=new Set;for(const s of e)if(s[v("0x8")])for(const e of n)for(const n of s.getRanges())(e.isIntersecting(n)||t.isCollapsed&&!s[v("0x12")]&&s[v("0x11")]&&n.end[v("0xa")](e[v("0xe")]))&&o.add(s);return o}(t,e),this[j("0xc")]=this[j("0x8")][j("0xc")]&&!!this._selectedSuggestions[j("0x4")]}[j("0x2")](){const t=R(Array[j("0xe")](this[j("0x7")]));for(const e of t){const t=e[j("0x9")]();if(!this.editor[j("0xb")][j("0x5")](t))return}L(this[j("0x0")][j("0xb")],this[j("0x8")],t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const z=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var W=Array.prototype.splice;const V=function(t){var e=this.__data__,n=z(e,t);return!(n<0)&&(n==e.length-1?e.pop():W.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=z(e,t);return n<0?void 0:e[n][1]};const q=function(t){return z(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=z(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=V,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const Q=$;const J=function(){this.__data__=new Q,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const st=ot.Symbol;var rt=Object.prototype,it=rt.hasOwnProperty,xt=rt.toString,at=st?st.toStringTag:void 0;const ct=function(t){var e=it.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var s=xt.call(t);return o&&(e?t[at]=n:delete t[at]),s};var lt=Object.prototype.toString;const ut=function(t){return lt.call(t)};var dt=st?st.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":dt&&dt in Object(t)?ct(t):ut(t)};const mt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ft=function(t){if(!mt(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Ct=/^\[object .+?Constructor\]$/,yt=Function.prototype,kt=Object.prototype,At=yt.toString,vt=kt.hasOwnProperty,Rt=RegExp("^"+At.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const It=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).test(Tt(t))};const St=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=St(t,e);return It(n)?n:void 0};const Nt=Lt(ot,"Map");const Mt=Lt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Pt=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 Dt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Dt.call(e,t)};const jt=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 Ut(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Ut.prototype.clear=wt,Ut.prototype.delete=Ot,Ut.prototype.get=Pt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||Q),string:new Gt}};const zt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Wt=function(t,e){var n=t.__data__;return zt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=function(t){var e=Wt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return Wt(this,t).get(t)};const qt=function(t){return Wt(this,t).has(t)};const Xt=function(t,e){var n=Wt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Ht,$t.prototype.delete=Vt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Qt=$t;const Jt=function(t,e){var n=this.__data__;if(n instanceof Q){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Qt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new Q(t);this.size=e.size}Zt.prototype.clear=J,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Jt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const se=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var s=!n;n||(n={});for(var r=-1,i=e.length;++r<i;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),s?ne(n,x,a):se(n,x,a)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,ue=ce.propertyIsEnumerable;const de=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!ue.call(t,"callee")};const ge=Array.isArray;const me=function(){return!1};var fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=fe&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===fe?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||me;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Ce={};Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;const ye=function(t){return xe(t)&&Te(t.length)&&!!Ce[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,ve=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Re=ve&&ve.exports===Ae&&et.process;const Ie=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Se=Ie&&Ie.isTypedArray;const Le=Se?ke(Se):ye;var Ne=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&de(t),s=!n&&!o&&be(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||s&&("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 Pe=Fe(Object.keys,Object);var De=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return Pe(t);var e=[];for(var n in Object(t))De.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?Me(t):Be(t)};const Ge=function(t,e){return t&&re(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var ze=Object.prototype.hasOwnProperty;const We=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&ze.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?Me(t,!0):We(t)};const Ke=function(t,e){return t&&re(e,Ve(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?ot.Buffer:void 0,Qe=$e?$e.allocUnsafe:void 0;const Je=function(t,e){if(e)return t.slice();var n=t.length,o=Qe?Qe(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,s=0,r=[];++n<o;){var i=t[n];e(i,n,t)&&(r[s++]=i)}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),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const sn=function(t,e){return re(t,on(t),e)};const rn=function(t,e){for(var n=-1,o=e.length,s=t.length;++n<o;)t[s+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rn(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:rn(o,n(t))};const un=function(t){return ln(t,Ue,on)};const dn=function(t){return ln(t,Ve,an)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Tt(gn),yn=Tt(Nt),kn=Tt(mn),An=Tt(fn),vn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&Rn(new Nt)!=pn||mn&&Rn(mn.resolve())!=bn||fn&&Rn(new fn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case Cn:return Tn;case yn:return pn;case kn:return bn;case An:return En;case vn:return _n}return e});const In=Rn;var Sn=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Sn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Pn=st?st.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(t){return Dn?Object(Dn.call(t)):{}};const jn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return 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 jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const zn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const Wn=function(t){return xe(t)&&"[object Map]"==In(t)};var Vn=Ie&&Ie.isMap;const Kn=Vn?ke(Vn):Wn;const qn=function(t){return xe(t)&&"[object Set]"==In(t)};var Xn=Ie&&Ie.isSet;const $n=Xn?ke(Xn):qn;var Qn="[object Arguments]",Jn="[object Function]",Zn="[object Object]",Yn={};Yn[Qn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Jn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,s,r,i){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,s,r,i):o(e)),void 0!==x)return x;if(!mt(e))return e;var u=ge(e);if(u){if(x=Ln(e),!a)return Ze(e,x)}else{var d=In(e),g=d==Jn||"[object GeneratorFunction]"==d;if(be(e))return Je(e,a);if(d==Zn||d==Qn||g&&!r){if(x=c||g?{}:zn(e),!a)return c?cn(e,Ke(x,e)):sn(e,Ge(x,e))}else{if(!Yn[d])return r?e:{};x=Un(e,d,a)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,x),$n(e)?e.forEach((function(s){x.add(t(s,n,o,s,e,i))})):Kn(e)&&e.forEach((function(s,r){x.set(r,t(s,n,o,r,e,i))}));var f=u?void 0:(l?c?dn:un:c?Ve:Ue)(e);return te(f||e,(function(s,r){f&&(s=e[r=s]),se(x,r,t(s,n,o,r,e,i))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\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))||(so.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,s=e?e.apply(this,o):o[0],r=n.cache;if(r.has(s))return r.get(s);var i=t.apply(this,o);return n.cache=r.set(s,i)||r,i};return n.cache=new(io.Cache||Qt),n}io.Cache=Qt;const xo=io;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,s){e.push(o?s.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,s=Array(o);++n<o;)s[n]=e(t[n],n,t);return s};var go=st?st.prototype:void 0,mo=go?go.toString:void 0;const fo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return mo?mo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":fo(t)};const po=function(t,e){return ge(t)?t: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(!mt(t))return t;for(var s=-1,r=(e=po(e,t)).length,i=r-1,x=t;null!=x&&++s<r;){var a=bo(e[s]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(s!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Co=function(t){return this.__data__.has(t)};function yo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Qt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const vo=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,s,r){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&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 ko:void 0;for(r.set(t,e),r.set(e,t);++u<x;){var m=t[u],f=e[u];if(o)var h=i?o(f,m,u,e,t,r):o(m,f,u,t,e,r);if(void 0!==h){if(h)continue;d=!1;break}if(g){if(!Ao(e,(function(t,e){if(!vo(g,e)&&(m===t||s(m,t,n,o,r)))return g.push(e)}))){d=!1;break}}else if(m!==f&&!s(m,f,n,o,r)){d=!1;break}}return r.delete(t),r.delete(e),d};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=st?st.prototype:void 0,No=Lo?Lo.valueOf:void 0;const Mo=function(t,e,n,o,s,r,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new Nn(t),new Nn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=Io;case"[object Set]":var a=1&o;if(x||(x=So),t.size!=e.size&&!a)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=Ro(x(t),x(e),o,s,r,i);return i.delete(t),l;case"[object Symbol]":if(No)return No.call(t)==No.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,s,r){var i=1&n,x=un(t),a=x.length;if(a!=un(e).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in e:wo.call(e,l)))return!1}var u=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 m=i;++c<a;){var f=t[l=x[c]],h=e[l];if(o)var p=i?o(h,f,l,e,t,r):o(f,h,l,t,e,r);if(!(void 0===p?f===h||s(f,h,n,o,r):p)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),x=ge(e),a=i?Po:In(t),c=x?Po:In(e),l=(a=a==Fo?Do:a)==Do,u=(c=c==Fo?Do:c)==Do,d=a==c;if(d&&be(t)){if(!be(e))return!1;i=!0,l=!1}if(d&&!l)return r||(r=new Yt),i||Le(t)?Ro(t,e,n,o,s,r):Mo(t,e,a,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=u&&Bo.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return r||(r=new Yt),s(f,h,n,o,r)}}return!!d&&(r||(r=new Yt),Oo(t,e,n,o,s,r))};const Uo=function t(e,n,o,s,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const zo=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 Wo=function(t,e,n){var o=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(s);++o<s;)r[o]=t[o+e];return r};const Vo=function(t,e){return e.length<2?t:zo(t,Wo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Vo(t,e))||delete t[bo(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["hasComments","isExternal","addMarkerName","commentThread","end","toJSON","suggestion:","getMarkers","attributes","_saved","start","authoredAt","getMarkerNames","delete","substr","data","createdAt","head","clear","accept","getRange","onAttributesChange","type","from","decorate","addRange","change","getRanges","removeMarker","reduce","_isDataLoaded","previous","markers","setAttribute","add","_onAttributesChange","next","_onAccept","subType","removeMarkers","nodeBefore","isInContent","size","discard","length","isIntersecting","getMultiRangeId","creator","_onDiscard","@external","get","_markerNames","removeAttribute","set","getFirstRange","_model","map","getItems","getFirstMarker","onDiscard","author"];var $o,Qo;$o=Xo,Qo=263,function(t){for(;--t;)$o.push($o.shift())}(++Qo);const Jo=function(t,e){return Xo[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this[Jo("0xb")]=!1,this.id=e.id,this.type=e[Jo("0x3")],this[Jo("0x13")]=e.subType||null,this[Jo("0x29")]=e[Jo("0x29")],this.creator=e[Jo("0x1c")]||e[Jo("0x29")],this[Jo("0x2b")]=Boolean(e[Jo("0x32")]&&e[Jo("0x32")][Jo("0x1e")]),this[Jo("0x39")]=null,this._model=t,this[Jo("0x12")]=e.onAccept,this._onDiscard=e[Jo("0x28")],this[Jo("0x10")]=e[Jo("0x2")],this[Jo("0x20")]=new Set,this[Jo("0x3a")]=null,this[Jo("0x22")](Jo("0x35"),null),this[Jo("0x22")](Jo("0x32"),e.attributes||{}),this[Jo("0x22")](Jo("0xc"),null),this[Jo("0x22")](Jo("0x11"),null),this[Jo("0x22")](Jo("0x2d"),null),this[Jo("0x22")](Jo("0x33"),!1),this[Jo("0x5")]("accept"),this[Jo("0x5")](Jo("0x18"))}get head(){let t=this;for(;t.previous;)t=t[Jo("0xc")];return t}get[Jo("0x2a")](){return!!this[Jo("0x2d")]&&this[Jo("0x2d")][Jo("0x19")]>0}get isMultiRange(){return 0!=this[Jo("0x20")][Jo("0x17")]&&6==Array[Jo("0x4")](this[Jo("0x20")])[0].split(":").length}get[Jo("0x16")](){return null!==this[Jo("0x27")]()}[Jo("0x2c")](t){this[Jo("0x20")][Jo("0xf")](t)}[Jo("0x36")](){return Array[Jo("0x4")](this[Jo("0x20")])}[Jo("0x31")](){return this[Jo("0x36")]()[Jo("0x25")]((t=>this[Jo("0x24")][Jo("0xd")][Jo("0x1f")](t))).filter((t=>t))}getFirstMarker(){return this[Jo("0x31")]()[0]||null}[Jo("0x14")](){this[Jo("0x24")][Jo("0x7")]((t=>{for(const e of this[Jo("0x31")]())t[Jo("0x9")](e)})),this[Jo("0x20")][Jo("0x3c")]()}[Jo("0x9")](t){this[Jo("0x24")][Jo("0x7")]((e=>{e[Jo("0x9")](t)})),this[Jo("0x20")][Jo("0x37")](t)}[Jo("0x6")](t){const e=Jo("0x30")+this[Jo("0x3")]+":"+this[Jo("0x13")]+":"+this.id+":"+this[Jo("0x1c")].id+":"+Zo[Jo("0x1b")]();this[Jo("0x2c")](e),this._model.change((n=>{n.addMarker(e,{range:t,usingOperation:!0,affectsData:!0})}))}isIntersectingWithRange(t){for(const e of this[Jo("0x8")]())if(e[Jo("0x1a")](t))return!0;return!1}[Jo("0x8")](){return this[Jo("0x31")]()[Jo("0x25")]((t=>t[Jo("0x1")]()))}[Jo("0x26")](){return this[Jo("0x8")]()[Jo("0xa")](((t,e)=>[...t,...e.getItems()]),[])}[Jo("0x23")](){var t;return(null===(t=this.getFirstMarker())||void 0===t?void 0:t[Jo("0x1")]())||null}getContainedElement(){const t=this[Jo("0x8")]();if(1!=t.length)return null;const e=t[0],n=e[Jo("0x34")].nodeAfter,o=e[Jo("0x2e")][Jo("0x15")];return n instanceof i.Element?n!=o?null:n:null}[Jo("0x0")](){this[Jo("0x12")](this[Jo("0x8")](),this.data,this[Jo("0x32")]),this[Jo("0x14")]()}[Jo("0x18")](){this[Jo("0x1d")](this.getRanges(),this[Jo("0x39")],this[Jo("0x32")]),this.removeMarkers()}getAllAdjacentSuggestions(){const t=[];let e=this[Jo("0x3b")];for(;e;)t.push(e),e=e.next;return t}[Jo("0xe")](t,e){const n=eo(this[Jo("0x32")]);_o(n,t,e),Go(n,this[Jo("0x32")])||(this[Jo("0x32")]=n,this[Jo("0x10")](n))}[Jo("0x21")](t){const e=eo(this[Jo("0x32")]);qo(e,t),Go(e,this[Jo("0x32")])||(this.attributes=e,this[Jo("0x10")](this[Jo("0x32")]))}[Jo("0x2f")](){return{id:this.id,type:this[Jo("0x13")]?this[Jo("0x3")]+":"+this[Jo("0x13")]:this[Jo("0x3")],authorId:this[Jo("0x1c")].id,createdAt:this.createdAt,hasComments:this[Jo("0x2a")],data:this.data,attributes:this[Jo("0x32")]}}static getMultiRangeId(){return(0,e.uid)()[Jo("0x38")](1,5)}}function Yo(t,e,n){const o=t.t;switch(e){case"Track changes":return o("Track changes");case"Accept suggestion":return o("Accept suggestion");case"Discard suggestion":return o("Discard suggestion");case"Accept all suggestions":return o("Accept all suggestions");case"Accept all selected suggestions":return o("Accept all selected suggestions");case"Discard all suggestions":return o("Discard all suggestions");case"Discard all selected suggestions":return o("Discard all selected suggestions");case"*Reset font size*":return o("*Reset font size*");case"*Reset font family*":return o("*Reset font family*");case"*Reset font color*":return o("*Reset font color*");case"*Reset font background color*":return o("*Reset font background color*");case"*Remove image text alternative*":return o("*Remove image text alternative*");case"*Reset image width*":return o("*Reset image width*");case"*Remove link*":return o("*Remove link*");case"*Check item*":return o("*Check item*");case"*Uncheck item*":return o("*Uncheck item*");case"*Remove all formatting*":return o("*Remove all formatting*");case"*Replace table cells*":return o("*Replace table cells*");case"*Merge cells*":return o("*Merge cells*");case"*Split cell:* vertically":return o("*Split cell:* vertically");case"*Split cell:* horizontally":return o("*Split cell:* horizontally");case"*Indent:* %0":return o("*Indent:* %0",n);case"*Outdent:* %0":return o("*Outdent:* %0",n);case"*Change to:* %0":return o("*Change to:* %0",n);case"*Insert:* %0":return o("*Insert:* %0",n);case"*Format:* %0":return o("*Format:* %0",n);case"*Format:* change table properties":return o("*Format:* change table properties");case"*Format:* change table cell properties":return o("*Format:* change table cell properties");case"*Format:* insert into %0":return o("*Format:* insert into %0",n);case"*Format:* remove from %0":return o("*Format:* remove from %0",n);case"*Format:* replace image URL":return o("*Format:* replace image URL");case"*Format:* resize table":return o("*Format:* resize table");case"*Format:* set order to reversed":return o("*Format:* set order to reversed");case"*Format:* set order to regular":return o("*Format:* set order to regular");case"*Format:* set start index to %0":return o("*Format:* set start index to %0",n);case"*Change %0 content*":return o("*Change %0 content*",n);case"*Remove:* %0":return o("*Remove:* %0",n);case"*Merge:* %0":return o("*Merge:* %0",n);case"*Split:* %0":return o("*Split:* %0",n);case"*Remove format:* %0":return o("*Remove format:* %0",n);case"*Set font size:* %0":return o("*Set font size:* %0",n);case"*Set font family:* %0":return o("*Set font family:* %0",n);case"*Set format to:* %0":return o("*Set format to:* %0",n);case"*Set font color:* %0":return o("*Set font color:* %0",n);case"*Set font background color:* %0":return o("*Set font background color:* %0",n);case"*Set image text alternative:* %0":return o("*Set image text alternative:* %0",n);case"*Set image width:* %0":return o("*Set image width:* %0",n);case"*Set link:* %0":return o("*Set link:* %0",n);case"*Set highlight:* %0":return o("*Set highlight:* %0",n);case"*Remove highlight*":return o("*Remove highlight*");case"FORMAT_HIGHLIGHT":return o({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return o({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return o({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return o({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return o({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return o({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return o({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return o({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return o({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return o({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return o({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return o({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return o({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return o({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return o({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_CIRCLE":return o({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return o({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return o({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST":return o({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return o({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return o({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return o({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return o({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return o({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return o({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return o({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return o({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return o({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGN_TO_LEFT":return o({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return o({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return o({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return o({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return o({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return o({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return o({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return o({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return o({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return o({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return o({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return o({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return o({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return o({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return o({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return o({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return o({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"PENDING_ACTION_SUGGESTION":return o({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return o({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return o({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return o({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return o({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return o({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_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);default:return e}}const ts=["skip","isEmpty","push","REPLACE_TEXT","deletion","insertion","get","getWalker","$textProxy","_customCallbacks","getDescriptions","*Split:* %0","_resolveDescriptionItems","replace","getItemLabel","*Merge:* %0","data","getFirstRange","_itemLabels","isEqual","element","*Insert:* %0","nextSibling","pop","function","match","_locale","length","EmptyContainer","*Remove:* %0","isInContent","matchingCallback","registerElementLabel","_addDescriptionItems","$1 $2","ELEMENT_SPACE","label","Object","remove","_schema","indexOf","name","Container","addEmptyContainer","quantity","addObject","add","addContainer","item","removeContainer","isObject","_itemLabelsCallbacks","elementEnd","type","text"];var es,ns;es=ts,ns=149,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class ss{constructor(t,e){this[os("0x19")]=[],this[os("0x22")]=new Map,this[os("0xc")]=[],this[os("0x0")]=t,this[os("0x2a")]=e}[os("0x1a")](t){const e=[];for(let n=0;n<t[os("0x2b")];n++){const o=t[n];if(!o[os("0x2e")])continue;let s=!1;for(const t of this._customCallbacks){const n=t(o);if(n){os("0xe")in n&&e[os("0x12")](n),s=!0;break}}if(!s){this[os("0x31")](e,o);const s=t[n+1];if(s&&!o.getFirstRange().end[os("0x23")](s[os("0x21")]().start)){const t=e[e[os("0x2b")]-1],n=os("0x15")==o[os("0xe")]?"add":"remove";t&&"text"==t[os("0xe")]&&(t[n]+="\n")}}}return this._resolveDescriptionItems(e)}registerDescriptionCallback(t){this._customCallbacks.push(t)}[os("0x30")](t,n,o=e.priorities.normal){os("0x28")==typeof t?(0,e.insertToPriorityArray)(this._itemLabelsCallbacks,{matchingCallback:t,label:n,priority:o}):this[os("0x22")].set(t,n)}[os("0x1e")](t,e=1){let n;for(const e of this[os("0xc")])if(e[os("0x2f")](t)){n=e[os("0x34")];break}return n||(n=this[os("0x22")][os("0x16")](t[os("0x2")])),n?n(e):1!==e?e+" "+t[os("0x2")]+"s":""+t[os("0x2")]}[os("0x31")](t,e){const n=e.getFirstRange()[os("0x17")](),o="insertion"==e[os("0xe")]?"add":"remove";for(const e of n){const s=e[os("0x9")],r=t[t[os("0x2b")]-1];if(s.is(os("0x18")))r&&r[os("0xe")][os("0x1")](os("0x3"))>-1&&t[os("0x27")](),r&&os("0xf")==r[os("0xe")]?r[o]+=s[os("0x20")]:t[os("0x12")]({type:os("0xf"),add:os("0x7")==o?s[os("0x20")]:"",remove:"remove"==o?s[os("0x20")]:""});else if(this[os("0x0")][os("0xb")](s)){const i=s;if(r&&r[os("0xe")][os("0x1")]("Container")>-1&&t[os("0x27")](),os("0xd")==e.type)continue;r&&r[os("0xe")]==o+os("0x35")&&r[os("0x24")][os("0x2")]==i.name?r[os("0x5")]++:t[os("0x12")]({type:o+os("0x35"),element:i,quantity:1}),n[os("0x10")]((t=>!(os("0xd")==t[os("0xe")]&&t[os("0x9")]==s)))}else if(this[os("0x0")].checkChild(s,"$text")||s.is("element","softBreak")){const n=s;if(os("0x7")==o&&"elementStart"==e[os("0xe")]||"remove"==o&&os("0xd")==e[os("0xe")])continue;if(r&&-1==r.type[os("0x1")](os("0x3"))){os("0xf")==r[os("0xe")]&&(r[o]+="\n");continue}let i;if(i=os("0x7")==o?n[os("0x26")]&&!this._schema.isObject(n[os("0x26")])?n.nextSibling:null:n.previousSibling&&!this._schema[os("0xb")](n.previousSibling)?n.previousSibling:null,n[os("0x11")]||i&&i[os("0x11")]){const e=i&&i[os("0x11")]?i:n;r&&r.type==o+os("0x2c")&&r[os("0x24")][os("0x2")]==e.name?r.quantity++:t[os("0x12")]({type:o+os("0x2c"),element:e,quantity:1})}else t[os("0x12")]({type:o+os("0x3"),element:n})}}}[os("0x1c")](t){const e=this[os("0x2a")],n=[];for(const o of t){switch(o[os("0xe")]){case os("0xf"):if(o[os("0x7")]=o.add.replace(/(\S)\u000A+(\S)/g,os("0x32"))[os("0x1d")](/\u000A/g,""),o[os("0x36")]=o[os("0x36")][os("0x1d")](/(\S)\u000A+(\S)/g,os("0x32"))[os("0x1d")](/\u000A/g,""),""!=o.add&&""!=o[os("0x36")]){n.push({type:"replace",content:Yo(e,os("0x13"),['"'+o[os("0x36")]+'"','"'+o[os("0x7")]+'"'])});continue}if(null!=o[os("0x7")].match(/^ +$/)){n[os("0x12")]({type:os("0x15"),content:Yo(e,os("0x25"),Yo(e,os("0x33"),o[os("0x7")][os("0x2b")]))});continue}if(null!=o[os("0x36")][os("0x29")](/^ +$/)){n[os("0x12")]({type:"deletion",content:Yo(e,os("0x2d"),Yo(e,"ELEMENT_SPACE",o[os("0x36")][os("0x2b")]))});continue}if(""!=o.add){n[os("0x12")]({type:os("0x15"),content:Yo(e,"*Insert:* %0",'"'+o[os("0x7")]+'"')});continue}n[os("0x12")]({type:os("0x14"),content:Yo(e,os("0x2d"),'"'+o[os("0x36")]+'"')});continue;case os("0x4"):case os("0x6"):n[os("0x12")]({type:os("0x15"),content:Yo(e,"*Insert:* %0",this.getItemLabel(o[os("0x24")],o[os("0x5")]))});continue;case"removeEmptyContainer":case"removeObject":n[os("0x12")]({type:os("0x14"),content:Yo(e,os("0x2d"),this[os("0x1e")](o.element,o.quantity))});continue;case os("0x8"):n[os("0x12")]({type:os("0x15"),content:Yo(e,os("0x1b"),this[os("0x1e")](o[os("0x24")],o[os("0x5")]))});continue;case os("0xa"):n[os("0x12")]({type:os("0x14"),content:Yo(e,os("0x1f"),this.getItemLabel(o.element,o[os("0x5")]))});continue}n[os("0x12")](o)}return n}}const rs=["showAIAssistant","afterInit","editor","get","commands","enableCommand","plugins"];var is,xs;is=rs,xs=126,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0x1")](){const t=this[as("0x2")],e=t[as("0x6")][as("0x3")]("TrackChangesEditing");t[as("0x4")].get(as("0x0"))&&e[as("0x5")](as("0x0"))}}const ls=["markBlockFormat","afterInit","enableCommand","from","justify","FORMAT_ALIGN_TO_RIGHT","commandParams","left","schema","document","AlignmentEditing","FORMAT_ALIGN_TO_CENTER","getSelectedBlocks","FORMAT_ALIGN_TO_LEFT","editor","contentLanguageDirection","ltr","get","has","format","FORMAT_JUSTIFY_TEXT","alignment","registerDescriptionCallback","plugins","right","model","checkAttribute","*Format:* %0","center","getAttribute","TrackChangesEditing"];var us,ds;us=ls,ds=322,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};class ms extends t.Plugin{[gs("0x14")](){const t=this[gs("0x2")],e=t.locale;if(!t[gs("0xb")][gs("0x6")](gs("0x1d")))return;const n=t[gs("0xb")][gs("0x5")](gs("0x12"));n[gs("0x15")](gs("0x9"),((e,o={})=>{let s=o.value;o.value||(s=gs("0x4")===t.locale[gs("0x3")]?"left":gs("0xc"));const r=Array[gs("0x16")](this[gs("0x2")][gs("0xd")][gs("0x1c")].selection[gs("0x0")]()).filter((t=>function(t,e,n){const o=t[gs("0x11")](gs("0x9"))||null;return e[gs("0xe")](t,"alignment")&&n!=o}(t,this[gs("0x2")].model[gs("0x1b")],s)));t[gs("0xd")].change((()=>{for(const t of r)n[gs("0x13")](t,{commandName:gs("0x9"),commandParams:[{value:s}]})}))})),n._descriptionFactory[gs("0xa")]((t=>{const{data:n}=t;if(n&&gs("0x9")==n.commandName){const t=n[gs("0x19")][0].value;return{type:gs("0x7"),content:Yo(e,gs("0xf"),function(t){switch(t){case gs("0x1a"):return Yo(e,gs("0x1"));case"right":return Yo(e,gs("0x18"));case gs("0x10"):return Yo(e,gs("0x1e"));case gs("0x17"):return Yo(e,gs("0x8"))}}(t))}}}))}}const fs=["name","createRangeOn","get","activeMarkers","markerRange","writer","element","listIndent","push","toViewElement","TrackChangesEditing","createUIElement","type","getItems","listItem","mapper","test","elementEnd","insert","includes","markerName","nextSibling","getCustomProperty","item","addClass","isAtEnd","isContent","getWalker","bindElementToMarker","plugins","model"];var hs,ps;hs=fs,ps=103,function(t){for(;--t;)hs.push(hs.shift())}(++ps);const bs=function(t,e){return fs[t-=0]};function Es(t,e,n){const o=[];for(const s of e[bs("0x3")]())s.hasAttribute(t)&&o[bs("0x1d")](n[bs("0x16")](s));return o}function _s(t){const e=[];if(t.is(bs("0x1b"),"listItem")){let n=t[bs("0xb")];for(;n&&n.is(bs("0x1b"),bs("0x4"))&&n.getAttribute(bs("0x1c"))>0;)e[bs("0x1d")](n),n=n[bs("0xb")]}return e}function Ts(t,e,{showActiveMarker:n=!0}={}){const o=t[bs("0x13")][bs("0x17")](bs("0x0"));return(s,r,i)=>{if(!i.consumable[bs("0x6")](r[bs("0x19")],s[bs("0x15")]))return;const x=r.markerRange[bs("0x11")](),a=r.markerRange.start,c=t[bs("0x14")].schema;let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[bs("0xd")];d=d||c[bs("0x10")](e);const n=i[bs("0x5")][bs("0x1e")](e);if(n&&n[bs("0xc")]("addHighlight"))return;bs("0x7")==t[bs("0x2")]&&c.isBlock(e)&&!c.isLimit(e)&&(e[bs("0xb")]||a[bs("0xf")]?l&&l.parent==e||(l=e,m(t.previousPosition),g=!0):u=u||t.previousPosition)}function m(t){const s=i[bs("0x1a")][bs("0x1")]("span",{class:"ck-suggestion-marker-"+e}),x=i[bs("0x5")].toViewPosition(t);n&&o[bs("0x18")][bs("0x9")](r[bs("0xa")])&&i[bs("0x1a")][bs("0xe")]("ck-suggestion-marker--active",s),i.writer[bs("0x8")](x,s),i.mapper[bs("0x12")](s,r[bs("0xa")])}d||g||!u||m(u)}}const Cs=["getRanges","FORMAT_UNDERLINE","FORMAT_ITALIC","locale","strikethrough","commandName","slice","afterInit","editor","markInlineFormat","toLowerCase","BoldEditing","value","code","FORMAT_SUPERSCRIPT","commands","isCollapsed","forceValue","enableCommand","model","UnderlineEditing","StrikethroughEditing","has","format","document","*Format:* %0","get","superscript","plugins","SuperscriptEditing","_descriptionFactory","FORMAT_STRIKETHROUGH","selection","CodeEditing","FORMAT_BOLD","FORMAT_SUBSCRIPT","SubscriptEditing","subscript","FORMAT_CODE"];var ys,ks;ys=Cs,ks=345,function(t){for(;--t;)ys.push(ys.shift())}(++ks);const As=function(t,e){return Cs[t-=0]},vs=[As("0x11"),"ItalicEditing",As("0x1a"),As("0x0"),As("0x1b"),As("0x3"),As("0x23")];class Rs extends t.Plugin{[As("0xd")](){const t=this[As("0xe")],e=t[As("0x19")],n=t.plugins[As("0x20")]("TrackChangesEditing"),o=t[As("0x9")];for(const o of vs){if(!t[As("0x22")][As("0x1c")](o))continue;const s=o[As("0xc")](0,-7)[As("0x10")](),r=t[As("0x15")].get(s);n[As("0x18")](s,((t,o={})=>{const i=e[As("0x1e")][As("0x26")];if(i[As("0x16")])return void t(o);const x=void 0!==o[As("0x17")]?o[As("0x17")]:!r[As("0x12")];e.change((()=>{const t=Array.from(i[As("0x6")]());for(const o of t){const t=x?[o]:Es(s,o,e);for(const e of t)n[As("0xf")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n[As("0x24")].registerDescriptionCallback((n=>{const{data:s}=n;if(s&&s[As("0xb")]===t)return s.commandParams[0][As("0x17")]?{type:As("0x1d"),content:Yo(o,As("0x1f"),e)}:{type:As("0x1d"),content:Yo(o,"*Remove format:* %0",e)}}))}s("bold",Yo(o,As("0x1"))),s("italic",Yo(o,As("0x8"))),s("underline",Yo(o,As("0x7"))),s(As("0x13"),Yo(o,As("0x5"))),s(As("0xa"),Yo(o,As("0x25"))),s(As("0x4"),Yo(o,As("0x2"))),s(As("0x21"),Yo(o,As("0x14")))}}const Is=["BlockQuoteEditing","editor","blockQuote","afterInit","schema","locale","getSelectedBlocks","checkChild","*Remove format:* %0","enableCommand","filter","model","parent","commandName","ELEMENT_BLOCK_QUOTE","plugins","selection","*Format:* %0","has","format","get","commandParams","forceValue","value","name","change","commands"];var Ss,Ls;Ss=Is,Ls=164,function(t){for(;--t;)Ss.push(Ss.shift())}(++Ls);const Ns=function(t,e){return Is[t-=0]};class Ms extends t.Plugin{[Ns("0x1")](){const t=this[Ns("0x1a")],e=t[Ns("0x3")];if(!t[Ns("0xd")][Ns("0x10")](Ns("0x19")))return;const n=t[Ns("0xd")][Ns("0x12")]("TrackChangesEditing"),o=this[Ns("0x1a")][Ns("0x18")][Ns("0x12")](Ns("0x0"));n[Ns("0x7")]("blockQuote",((e,s={})=>{const r=this[Ns("0x1a")].model.document[Ns("0xe")],i=s&&void 0!==s[Ns("0x14")]?s[Ns("0x14")]:!o[Ns("0x15")];let x=[];if(i){const e=Array.from(r[Ns("0x4")]()).filter((t=>ws(t)||function(t,e){const n=e[Ns("0x5")](t.parent,Ns("0x0")),o=e[Ns("0x5")](["$root",Ns("0x0")],t);return n&&o}(t,this[Ns("0x1a")][Ns("0x9")][Ns("0x2")])));x=I(e,t[Ns("0x9")])}else{const e=Array.from(r[Ns("0x4")]())[Ns("0x8")]((t=>ws(t)));x=I(e,t.model)}t[Ns("0x9")][Ns("0x17")]((()=>{for(const t of x)n.markBlockFormat(t,{commandName:"blockQuote",commandParams:[{forceValue:i}]})}))})),n._descriptionFactory.registerDescriptionCallback((t=>{const{data:n}=t;if(n&&"blockQuote"==n[Ns("0xb")]){const t=Yo(e,Ns("0xc"));return n[Ns("0x13")][0].forceValue?{type:Ns("0x11"),content:Yo(e,Ns("0xf"),t)}:{type:Ns("0x11"),content:Yo(e,Ns("0x6"),t)}}}))}}function ws(t){return Ns("0x0")==t[Ns("0xa")][Ns("0x16")]}const Os=["TrackChangesEditing","ckbox","get","enableCommand","commands","plugins","editor"];var Fs,Ps;Fs=Os,Ps=407,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{afterInit(){const t=this[Ds("0x5")];t[Ds("0x3")][Ds("0x1")](Ds("0x0"))&&t[Ds("0x4")][Ds("0x1")](Ds("0x6"))[Ds("0x2")](Ds("0x0"))}}const js=["from","schema","languages","find","rootElement","_descriptionFactory","plugins","registerElementLabel","afterInit","*Format:* %0","getSelectedBlocks","blockName","format","language","indentCodeBlock","filter","*Remove format:* %0","label","document","enableCommand","forceValue","has","selection","markBlockFormat","commands","locale","checkChild","get","commandParams","CodeBlock","change","isLimit","name","codeBlock","ELEMENT_CODE_BLOCK"];var Us,Gs;Us=js,Gs=464,function(t){for(;--t;)Us.push(Us.shift())}(++Gs);const Hs=function(t,e){return js[t-=0]};class zs extends t.Plugin{[Hs("0x22")](){const t=this.editor;if(!t[Hs("0x20")][Hs("0xc")](Hs("0x14")))return;const e=t[Hs("0x20")].get("TrackChangesEditing"),n=t[Hs("0x10")],o=t.config[Hs("0x12")](Hs("0x18"))[Hs("0x1c")],s=t[Hs("0xf")][Hs("0x12")](Hs("0x18"));e[Hs("0xa")](Hs("0x5")),e[Hs("0xa")]("outdentCodeBlock"),e[Hs("0xa")](Hs("0x18"),((n,r={})=>{const i=t.model,x=t.model[Hs("0x9")][Hs("0xd")],a=r&&void 0!==r[Hs("0xb")]?r[Hs("0xb")]:!s.value;let c;r[Hs("0x4")]||(r[Hs("0x4")]=o[0][Hs("0x4")]),c=a?Array[Hs("0x1a")](x[Hs("0x1")]())[Hs("0x6")]((t=>{return Ws(t)||(e=t,n=i[Hs("0x1b")],!e.is(Hs("0x1e"))&&!n[Hs("0x16")](e)&&n[Hs("0x11")](e.parent,Hs("0x18")));var e,n})):Array[Hs("0x1a")](x[Hs("0x1")]())[Hs("0x6")]((t=>Ws(t)));const l=I(c,i);i[Hs("0x15")]((()=>{for(const t of l)e[Hs("0xe")](t,{commandName:Hs("0x18"),commandParams:[{...r,forceValue:a}],formatGroupId:Hs("0x2")})}))})),e[Hs("0x1f")][Hs("0x21")](Hs("0x18"),(t=>Yo(n,Hs("0x19"),t))),e[Hs("0x1f")].registerDescriptionCallback((t=>{const e=n.t,{type:s,data:r}=t;if("formatBlock"==s&&r&&Hs("0x18")==r.commandName){const t=r[Hs("0x13")][0].language,s=e(o[Hs("0x1d")]((e=>e.language===t))[Hs("0x8")]);return r[Hs("0x13")][0].forceValue?{type:Hs("0x3"),content:Yo(n,Hs("0x0"),Yo(n,"ELEMENT_CODE_BLOCK",1)+" ("+s+")")}:{type:"format",content:Yo(n,Hs("0x7"),Yo(n,Hs("0x19"),1))}}}))}}function Ws(t){return Hs("0x18")==t[Hs("0x17")]}const Vs=["addCommentThread","has","get","enableCommand","afterInit","CommentsEditing","TrackChangesEditing","plugins","editor"];var Ks,qs;Ks=Vs,qs=485,function(t){for(;--t;)Ks.push(Ks.shift())}(++qs);const Xs=function(t,e){return Vs[t-=0]};class $s extends t.Plugin{[Xs("0x5")](){const t=this[Xs("0x0")];t[Xs("0x8")][Xs("0x2")](Xs("0x6"))&&t[Xs("0x8")][Xs("0x3")](Xs("0x7"))[Xs("0x4")](Xs("0x1"))}}var Qs=n(181);const Js=["createRange","$graveyard","unbindElementFromMarkerName","enableCommand","get","end","merge","high","markerName","start","model","fromRange","unit","remove","delete","downcastDispatcher","init","deleteForward","batch","detach","setSelection","rootName","selection","uiElement","lock","forward","buffer","document","mapper","bind","TrackChangesEditing","removeMarker:suggestion:deletion","options","writer","markerNameToElements","addMarker:suggestion:deletion"];var Zs,Ys;Zs=Js,Ys=337,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Js[t-=0]};class er extends t.Plugin{static get requires(){return[Qs.Delete]}[tr("0x3")](){const t=this.editor,e=t.plugins[tr("0x1b")](tr("0x11"));e[tr("0x1a")](tr("0x1"));const n=t.commands.get(tr("0x4"));e[tr("0x1a")](tr("0x4"),((e,o={})=>{const s=t[tr("0x21")].createSelection(t[tr("0x21")][tr("0xe")][tr("0x9")]);s.isCollapsed&&t[tr("0x21")].modifySelection(s,{direction:tr("0xc"),unit:o[tr("0x23")]});const r=s.getFirstRange(),x=i.LiveRange[tr("0x22")](r);let a;e(o),a=tr("0x18")==x.root[tr("0x8")]?t[tr("0x21")][tr("0x17")](r[tr("0x20")]):t[tr("0x21")][tr("0x17")](x.start,x.end),x[tr("0x6")](),t[tr("0x21")].enqueueChange(n[tr("0xd")][tr("0x5")],(t=>{n[tr("0xd")][tr("0xb")](),t[tr("0x7")](t[tr("0x17")](a[tr("0x1c")])),n.buffer.unlock()}))})),t.editing.downcastDispatcher.on("addMarker:suggestion:deletion",Ts(t,tr("0x1d")),{priority:"high"}),t.data[tr("0x2")].on(tr("0x16"),((e,n,o)=>{o[tr("0x13")].showSuggestionHighlights&&Ts(t,tr("0x1d"),{showActiveMarker:!1})[tr("0x10")](this)(e,n,o)}),{priority:"high"}),t.editing[tr("0x2")].on(tr("0x12"),((t,e,n)=>{const o=n[tr("0xf")][tr("0x15")](e[tr("0x1f")]);if(o)for(const t of o)t.is(tr("0xa"))&&(n.mapper[tr("0x19")](t,e[tr("0x1f")]),n[tr("0x14")][tr("0x0")](t))}),{priority:tr("0x1e")})}}const nr=["_suggestionFactory","numberedList","mergeListItemBackward","toUpperCase","markBlockFormat","setSelection","getAttribute","multipleBlocks","document","containsItem","editor","parent","add","outdentList","config","before","getRanges","ELEMENT_BULLETED_LIST","hasAttribute","*Format:* insert into %0","get","indentList","execute","isObject","has","*Indent:* %0","listType","value","end","forceValue","deletion","previousSibling","getSelectedBlocks","next","from","createPositionAt","commands","createRange","findIndex","fromRange","_LIST","after","splitListItemBefore","*Format:* remove from %0","TrackChangesEditing","format","registerCustomCallback","selection","*Outdent:* %0","commandParams","enableCommand","nodeAfter","list.multiBlock","listItemId","registerElementLabel","_descriptionFactory","model","bulletedList","documentList","*Merge:* %0","commandName","start","getFirstRange","plugins","markMultiRangeBlockFormat","ELEMENT_LIST_ITEM","formatBlock","nextSibling","refresh","push","change","listIndent","afterInit","DocumentListEditing"];var or,sr;or=nr,sr=180,function(t){for(;--t;)or.push(or.shift())}(++sr);const rr=function(t,e){return nr[t-=0]};class ir extends t.Plugin{[rr("0x28")](){const t=this[rr("0x34")];if(!t[rr("0x1f")][rr("0x42")](rr("0x29")))return;const e=t.locale,n=t[rr("0x1f")][rr("0x3e")](rr("0xc")),o=t[rr("0x1f")][rr("0x3e")]("DocumentListUtils");function s(e){return()=>{const s=t[rr("0x4")][rr("0x3e")](e);if(s[rr("0x45")]&&!t[rr("0x38")][rr("0x3e")]("list.multiBlock"))return void t.execute("paragraph",{});let r=Array.from(t[rr("0x18")][rr("0x32")][rr("0xf")][rr("0x0")]());if(a(e)){r=o.expandListBlocksToCompleteList(r);const t=[];for(const e of r)o.isFirstBlockOfListItem(e)&&t[rr("0x25")](e);r=t}t.model.change((()=>{n[rr("0x20")](r,{commandName:e,commandParams:[{forceValue:!s.value}],formatGroupId:"listType"},[],rr("0x1a"))}))}}function r(e){return()=>{const o=function(t){let e=Array[rr("0x2")](t);const n=e[rr("0x6")]((t=>!t[rr("0x3c")](rr("0x15"))));return n>-1&&(e=e.slice(0,n)),e}(t.model.document[rr("0xf")][rr("0x0")]()),s=o[o.length-1],r=t[rr("0x18")].schema[rr("0x41")](s)?rr("0x9"):rr("0x46"),i=t[rr("0x18")].createRange(t[rr("0x18")].createPositionAt(o[0],rr("0x39")),t[rr("0x18")][rr("0x3")](s,r));t[rr("0x18")].change((()=>{n[rr("0x2e")](i,{commandName:e,commandParams:[],formatGroupId:rr("0x44")},function(t){const e=new Set;for(const n of t){let t=n[rr("0x23")];for(;t&&t.getAttribute(rr("0x27"))>n[rr("0x30")](rr("0x27"));)e[rr("0x36")](t),t=t[rr("0x23")]}return Array[rr("0x2")](e)}(o))}))}}function x(e){return()=>{const o=t[rr("0x18")][rr("0x32")][rr("0xf")][rr("0x0")]()[rr("0x1")]()[rr("0x45")],s=t[rr("0x18")].createPositionAt(o,rr("0x39")),r=t.model[rr("0x3")](o,0),i=t.model.createRange(s,r);t.model[rr("0x26")]((()=>{n[rr("0x2e")](i,{commandName:e,commandParams:[],formatGroupId:rr("0x44")})}))}}function a(e){const n=t[rr("0x4")][rr("0x3e")]("bulletedList").value,o=t.commands[rr("0x3e")](rr("0x2b"))[rr("0x45")];return rr("0x2b")===e?n:o}n[rr("0x12")](rr("0x2b"),s(rr("0x2b"))),n.enableCommand(rr("0x19"),s(rr("0x19"))),n.enableCommand("indentList",r(rr("0x3f"))),n[rr("0x12")](rr("0x37"),r("outdentList")),n.enableCommand("splitListItemAfter",x("splitListItemAfter")),n[rr("0x12")](rr("0xa"),x(rr("0xa"))),n._descriptionFactory[rr("0x16")]((function(e){const n=!t[rr("0x18")].schema[rr("0x41")](e),o=e[rr("0x49")],s=e[rr("0x23")],r=e[rr("0x30")]("listItemId"),i=!o||o.getAttribute(rr("0x15"))!==r,x=!s||s[rr("0x30")]("listItemId")!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,rr("0x21"),t))),n[rr("0x17")].registerDescriptionCallback((function(n){const{data:o}=n;if(!o)return;let s,r,i,x;switch(o[rr("0x1c")]){case"bulletedList":i=o.commandParams[0][rr("0x47")],x=a(o.commandName),s=rr(i?"0x3d":"0xb"),!x&&t[rr("0x38")].get(rr("0x14"))||(s="*Change to:* %0"),r={type:rr("0xd"),content:Yo(e,s,Yo(e,rr("0x3b")))};break;case rr("0x2b"):i=o[rr("0x11")][0][rr("0x47")],x=a(o.commandName),s=rr(i?"0x3d":"0xb"),!x&&t[rr("0x38")][rr("0x3e")](rr("0x14"))||(s="*Change to:* %0"),r={type:rr("0xd"),content:Yo(e,s,Yo(e,"ELEMENT_NUMBERED_LIST"))};break;case rr("0x3f"):s=rr("0x43"),r={type:rr("0xd"),content:Yo(e,s,Yo(e,rr("0x21")))};break;case rr("0x37"):s=function(t){const e=t.getFirstRange();let n=e[rr("0x1d")].nodeAfter;for(;n&&e[rr("0x33")](n);){if(n[rr("0x30")]("listIndent")>0)return!1;n=n[rr("0x23")]}return!0}(n)?Yo(e,rr("0xb"),Yo(e,"ELEMENT_"+n[rr("0x1e")]()[rr("0x1d")].nodeAfter[rr("0x30")](rr("0x44"))[rr("0x2d")]()+rr("0x8"))):Yo(e,rr("0x10"),Yo(e,rr("0x21"))),r={type:rr("0xd"),content:s};break;case rr("0x2c"):case"mergeListItemForward":!1===o[rr("0x31")]&&(s=rr("0x1b"),r={type:rr("0x48"),content:Yo(e,s,Yo(e,"ELEMENT_LIST_ITEM"))})}return r})),n[rr("0x2a")][rr("0xe")](rr("0x22"),rr("0x1a"),"accept",(function(e,n){const o=[];for(let n of e)n[rr("0x1d")][rr("0x13")]===n[rr("0x46")][rr("0x35")]&&(n=t[rr("0x18")][rr("0x5")](t[rr("0x18")][rr("0x3")](n.start[rr("0x13")],0))),o[rr("0x25")](n);t[rr("0x18")][rr("0x26")]((e=>{const s=t[rr("0x18")][rr("0x32")][rr("0xf")],r=Array[rr("0x2")](s[rr("0x3a")]()).map((t=>i.LiveRange[rr("0x7")](t)));e[rr("0x2f")](o),t.commands[rr("0x3e")](n[rr("0x1c")])[rr("0x24")](),n.commandParams.push({forceDefaultExecution:!0}),t[rr("0x40")](n[rr("0x1c")],...n.commandParams),e[rr("0x2f")](r);for(const t of r)t.detach()}))}))}}var xr=n(331);const ar=["editing","selection","createPositionAt","parent","enter","afterExecute","split","init","model","mapper","plugins","commands","createRange","unbindElementFromMarkerName","writer","fromRange","ck-suggestion-marker-split","get","data","downcastDispatcher","nextSibling","detach","enterBlock","bind","markerName","getFirstPosition","high","addMarker:suggestion:insertion","remove","requires","fire","hasClass","change","removeMarker:suggestion:insertion"];var cr,lr;cr=ar,lr=462,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const ur=function(t,e){return ar[t-=0]};class dr extends t.Plugin{static get[ur("0x9")](){return[xr.Enter]}[ur("0x15")](){const t=this.editor,e=t[ur("0x18")][ur("0x1f")]("TrackChangesEditing"),n=t[ur("0x19")][ur("0x1f")](ur("0x12"));e.enableCommand(ur("0x12"),(()=>{t[ur("0x16")][ur("0xc")]((o=>{const s=t[ur("0x16")].document[ur("0xf")],r=s[ur("0x5")](),x=i.LiveRange[ur("0x1d")](s.getFirstRange());if(n[ur("0x2")](o)){const n=t.model[ur("0x10")](r[ur("0x11")][ur("0x0")],0),s=o.createRange(r,n);e.markInsertion(s)}else o.setSelection(o[ur("0x1a")](x.end));x[ur("0x1")](),n[ur("0xa")](ur("0x13"),{writer:o})}))})),t[ur("0xe")][ur("0x21")].on(ur("0x7"),Ts(t,ur("0x14")),{priority:ur("0x6")}),t[ur("0xe")][ur("0x21")].on(ur("0xd"),((t,e,n)=>{const o=n[ur("0x17")].markerNameToElements(e.markerName);if(o)for(const t of o)t[ur("0xb")](ur("0x1e"))&&(n[ur("0x17")][ur("0x1b")](t,e[ur("0x4")]),n[ur("0x1c")][ur("0x8")](t))}),{priority:ur("0x6")}),t[ur("0x20")][ur("0x21")].on(ur("0x7"),((e,n,o)=>{o.options.showSuggestionHighlights&&Ts(t,"split",{showActiveMarker:!1})[ur("0x3")](this)(e,n,o)}),{priority:"high"})}}const gr=["getMarkersGroup","editor","model","markers","_isInDeletionRange","FindAndReplaceEditing","filter","suggestion:deletion","end","FindAndReplaceUtils","find","string","findPrevious","createPositionAt","createRange","findNext","afterInit","item","enableCommand","replace","bind","getRange","getIntersection","plugins","handleFindCommand","replaceAll"];var mr,fr;mr=gr,fr=248,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]};class pr extends t.Plugin{[hr("0x2")](){if(!this[hr("0xd")][hr("0x9")].has(hr("0x11")))return;const t=this[hr("0xd")][hr("0x9")].get("TrackChangesEditing");t[hr("0x4")](hr("0x16"),this.handleFindCommand[hr("0x6")](this)),t.enableCommand(hr("0x1")),t[hr("0x4")](hr("0x18")),t[hr("0x4")](hr("0x5")),t[hr("0x4")](hr("0xb"))}[hr("0xa")](t,e,n={}){const o=this[hr("0xd")][hr("0x9")].get(hr("0x15"));void 0!==n&&t((t=>(hr("0x17")==typeof e?o.findByTextCallback(e,n):e)(t)[hr("0x12")]((e=>!1===this[hr("0x10")](e,t[hr("0x3")])))),n)}[hr("0x10")](t,e){const n=this[hr("0xd")][hr("0xe")][hr("0x0")](this[hr("0xd")][hr("0xe")][hr("0x19")](e,t.start),this[hr("0xd")][hr("0xe")][hr("0x19")](e,t[hr("0x14")]));for(const t of this.editor.model[hr("0xf")][hr("0xc")](hr("0x13")))if(null!==n[hr("0x8")](t[hr("0x7")]()))return!0;return!1}}const br=["config","enableCommand","trim","fontBackgroundColor","document","has","TrackChangesEditing","toLowerCase","FontFamilyEditing","commandParams","plugins","change","*Reset font background color*","afterInit","label","isCollapsed","fontColor.colors","value","get","normalizeSizeOptions","FontColorEditing","commandName","format","fontSize.options","getRanges","fontFamily","*Set font family:* %0","locale","FontSizeEditing","fontColor","title","find","*Reset font color*","from","*Reset font size*","model","editor","markInlineFormat","*Set font background color:* %0","*Set font size:* %0","_enableCommand","fontSize","registerDescriptionCallback"];var Er,_r;Er=br,_r=491,function(t){for(;--t;)Er.push(Er.shift())}(++_r);const Tr=function(t,e){return br[t-=0]},Cr=[{pluginName:Tr("0xa"),commandName:Tr("0x17")},{pluginName:Tr("0x21"),commandName:Tr("0x7")},{pluginName:Tr("0x2"),commandName:Tr("0xb")},{pluginName:"FontBackgroundColorEditing",commandName:Tr("0x1c")}];class yr extends t.Plugin{[Tr("0x26")](){const t=this[Tr("0x12")][Tr("0x9")];for(const{pluginName:t,commandName:e}of Cr)this[Tr("0x12")][Tr("0x23")][Tr("0x1e")](t)&&this._enableCommand(e);this[Tr("0x12")][Tr("0x23")][Tr("0x0")](Tr("0x1f"))._descriptionFactory[Tr("0x18")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if("fontSize"==o.commandName){const e=o[Tr("0x22")][0].value;if(e){const o=n(this[Tr("0x12")][Tr("0x23")].get("FontSize")[Tr("0x1")](this[Tr("0x12")][Tr("0x19")][Tr("0x0")](Tr("0x5"))).find((t=>t[Tr("0x11")]==e))[Tr("0xc")])[Tr("0x20")]();return{type:Tr("0x4"),content:Yo(t,Tr("0x15"),o)}}return{type:"format",content:Yo(t,Tr("0x10"))}}if("fontFamily"==o[Tr("0x3")]){const e=o[Tr("0x22")][0][Tr("0x2a")];return e?{type:Tr("0x4"),content:Yo(t,Tr("0x8"),e)}:{type:"format",content:Yo(t,"*Reset font family*")}}if("fontColor"==o[Tr("0x3")]){const e=o[Tr("0x22")][0][Tr("0x2a")];if(e){const o=(0,s.normalizeColorOptions)(this[Tr("0x12")].config[Tr("0x0")](Tr("0x29")))[Tr("0xd")]((t=>t.model==e));let r=e,i="";return o&&(r=o[Tr("0x27")],i=n(r)[Tr("0x20")]()),{type:Tr("0x4"),content:Yo(t,"*Set font color:* %0",i).trim(),color:{value:e,title:i||r}}}return{type:"format",content:Yo(t,Tr("0xe"))}}if("fontBackgroundColor"==o[Tr("0x3")]){const e=o[Tr("0x22")][0].value;if(e){const o=(0,s.normalizeColorOptions)(this.editor[Tr("0x19")][Tr("0x0")]("fontBackgroundColor.colors"))[Tr("0xd")]((t=>t[Tr("0x11")]==e));let r=e,i="";return o&&(r=o[Tr("0x27")],i=n(r)[Tr("0x20")]()),{type:"format",content:Yo(t,Tr("0x14"),i)[Tr("0x1b")](),color:{value:e,title:i||r}}}return{type:Tr("0x4"),content:Yo(t,Tr("0x25"))}}}}))}[Tr("0x16")](t){const e=this[Tr("0x12")];e[Tr("0x23")][Tr("0x0")](Tr("0x1f"))[Tr("0x1a")](t,((n,o={})=>{const s=e[Tr("0x11")][Tr("0x1d")].selection,r=o[Tr("0x2a")];s[Tr("0x28")]?n(o):e.model[Tr("0x24")]((()=>{const n=Array[Tr("0xf")](s[Tr("0x6")]());for(const o of n){const n=r?[o]:Es(t,o,e[Tr("0x11")]);for(const o of n)e[Tr("0x23")][Tr("0x0")]("TrackChangesEditing")[Tr("0x13")](o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const kr=["normalizeSizeOptions","isCollapsed","markInlineFormat","pasteFormat","*Set format to:* %0","length","change","fontColor","config","word","title","modifySelection","getFirstPosition","getRanges","toLowerCase","commandName","format","createSelection","isBlock","getAttributes","afterInit","slice","getSelectedBlocks","plugins","boolean","commands","selection","_descriptionFactory","locale","push","isFormatting","fontSize","charAt","get","entries","fontSize.options","registerDescriptionCallback","find","model","createRange","join","getLastPosition","*Remove all formatting*","keys","copyFormat","toUpperCase","from","TrackChangesEditing","label","split","fontColor.colors","enableCommand"];var Ar,vr;Ar=kr,vr=483,function(t){for(;--t;)Ar.push(Ar.shift())}(++vr);const Rr=function(t,e){return kr[t-=0]};class Ir extends t.Plugin{[Rr("0x5")](){const t=this.editor,n=t[Rr("0x17")],o=n.document[Rr("0xb")],s=t[Rr("0x8")][Rr("0x12")](Rr("0x20")),r=t[Rr("0xd")],i=t[Rr("0xa")].get(Rr("0x1d")),x=t[Rr("0xa")][Rr("0x12")](Rr("0x28"));i&&x&&(s[Rr("0x24")](Rr("0x28"),((t,r={})=>{const i=r;n[Rr("0x2b")]((()=>{const t=Array[Rr("0x1f")](o[Rr("0x32")]()),r=o[Rr("0x26")]?[Sr(n,o)]:t;if(!!(0,e.first)(function*(t,n){const o=t=>!!(0,e.first)(function*(t,e){for(const[n]of t[Rr("0x4")]()){const t=e.getAttributeProperties(n);t&&t[Rr("0xf")]&&(yield n)}}(t,n));for(const e of t[Rr("0x32")]())for(const t of e.getItems())!n[Rr("0x3")](t)&&o(t)&&(yield t);for(const e of t[Rr("0x7")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n.schema))||0!==Object[Rr("0x1c")](i)[Rr("0x2a")])for(const t of r)s[Rr("0x27")](t,{commandName:"pasteFormat",commandParams:[i]})}))})),s[Rr("0xc")][Rr("0x15")]((e=>{const{data:n}=e;if(n&&Rr("0x28")===n[Rr("0x0")]){const e=[],o=n.commandParams[0];for(const[n,s]of Object[Rr("0x13")](o))e[Rr("0xe")](Lr(t,n,s));return e.length?{type:Rr("0x1"),content:Yo(r,Rr("0x29"),e[Rr("0x19")](", "))}:{type:Rr("0x1"),content:Yo(r,Rr("0x1b"))}}})),t[Rr("0x8")].get(Rr("0x20")).enableCommand(Rr("0x1d")))}}function Sr(t,e){const n=t[Rr("0x2")](e);t[Rr("0x30")](n,{unit:Rr("0x2e"),direction:"backward"});const o=n[Rr("0x31")]();t[Rr("0x30")](n,{unit:Rr("0x2e"),direction:"forward"});const s=n[Rr("0x1a")]();return t[Rr("0x18")](o,s)}function Lr(t,e,n){const o=t[Rr("0xd")].t,r=e[Rr("0x22")](/(?=[A-Z])/)[Rr("0x19")](" "),i=o(r[Rr("0x11")](0)[Rr("0x1e")]()+r[Rr("0x6")](1))[Rr("0x33")]();if(Rr("0x9")==typeof n)return i;if(Rr("0x2c")===e||"fontBackgroundColor"===e){const e=(0,s.normalizeColorOptions)(t[Rr("0x2d")].get(Rr("0x23"))).find((t=>t[Rr("0x17")]==n));return i+" ("+(e?o(e[Rr("0x21")])[Rr("0x33")]():n)+")"}if(Rr("0x10")===e&&isNaN(parseFloat(n))){const e=t[Rr("0x8")].get("FontSize")[Rr("0x25")](t.config[Rr("0x12")](Rr("0x14")))[Rr("0x16")]((t=>t[Rr("0x17")]==n));return i+" ("+(e?o(e[Rr("0x2f")])[Rr("0x33")]():n)+")"}return i+" ("+n+")"}const Nr=["getSelectedBlocks","parent","heading.options","model","registerElementLabel","ELEMENT_HEADING","commandName","blockName","enableCommand","filter","markBlockFormat","get","name","locale","change","editor","has","TrackChangesEditing","*Change to:* %0","heading","HeadingEditing","value","commandParams","schema","format","selection","plugins","from","config","_descriptionFactory","isObject","registerDescriptionCallback","formatBlock","ELEMENT_HEADING_CUSTOM"];var Mr,wr;Mr=Nr,wr=465,function(t){for(;--t;)Mr.push(Mr.shift())}(++wr);const Or=function(t,e){return Nr[t-=0]};class Fr extends t.Plugin{afterInit(){const t=this[Or("0x1a")],e=t[Or("0x18")],n=t[Or("0x5")].get(Or("0xd"));if(!t[Or("0x3")][Or("0x1b")](Or("0x1f")))return;const o=t[Or("0x3")][Or("0x16")](Or("0x1c"));o[Or("0x13")](Or("0x1e"),((e,n)=>{const s=n[Or("0x20")],r=Array[Or("0x4")](this[Or("0x1a")][Or("0xe")].document[Or("0x2")][Or("0xb")]())[Or("0x14")]((t=>{return e=t,n=s,(o=this.editor[Or("0xe")][Or("0x0")]).checkChild(e[Or("0xc")],n)&&!o[Or("0x7")](e)&&e[Or("0x17")]!=n;var e,n,o}));t[Or("0xe")][Or("0x19")]((()=>{for(const t of r)o[Or("0x15")](t,{commandName:Or("0x1e"),commandParams:[n],formatGroupId:Or("0x12")},_s(t))}))}));for(const t of n)"paragraph"!=t[Or("0xe")]&&o[Or("0x6")][Or("0xf")](t.model,(e=>{const n=Pr(t[Or("0xe")]);return null!==n?s(e,n):r(e,t.title)}));function s(t,n){return Yo(e,Or("0x10"),[t,n])}function r(t,n){return Yo(e,Or("0xa"),[t,n])}o[Or("0x6")][Or("0x8")]((t=>{const{type:o,data:i}=t;if(Or("0x9")==o&&i&&Or("0x1e")==i[Or("0x11")]){const t=i[Or("0x21")][0][Or("0x20")],o=Pr(t);if(null!==o)return{type:Or("0x1"),content:Yo(e,Or("0x1d"),s(1,o))};const x=n.find((e=>e[Or("0xe")]===t)).title;return{type:"format",content:Yo(e,"*Change to:* %0",r(1,x))}}}))}}function Pr(t){const e=t.match(/^heading(\d+)$/);return e?e[1]:null}const Dr=["title","*Set highlight:* %0","getRanges","registerDescriptionCallback","change","FORMAT_HIGHLIGHT","format","afterInit","plugins","highlight.options","TrackChangesEditing","formatInline","get","getAttribute","commandName","value","backward","has","createRange","highlight","document","editor","push","find","getLastMatchingPosition","HighlightEditing","locale","toLowerCase","model","isCollapsed","selection","enableCommand","config"];var Br,jr;Br=Dr,jr=185,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{[Ur("0x14")](){const t=this[Ur("0x1")];if(!t.plugins[Ur("0x1e")](Ur("0x5")))return;const e=t[Ur("0x15")][Ur("0x19")](Ur("0x17"));e[Ur("0xb")](Ur("0x20"),((n,o={})=>{const s=t[Ur("0x8")][Ur("0x0")][Ur("0xa")],r=s.getAttribute(Ur("0x20"));let i=o[Ur("0x1c")],x=[];if(s[Ur("0x9")]){const e=s.getFirstPosition();if(!s.hasAttribute(Ur("0x20")))return void n(o);{const n=t=>t.item[Ur("0x1a")](Ur("0x20"))===r,o=e[Ur("0x4")](n,{direction:Ur("0x1d")}),s=e[Ur("0x4")](n);x=[t[Ur("0x8")][Ur("0x1f")](o,s)],i==r&&(i=null)}}else for(const e of s[Ur("0xf")]())i?x[Ur("0x2")](e):x[Ur("0x2")](...Es(Ur("0x20"),e,t[Ur("0x8")]));t[Ur("0x8")][Ur("0x11")]((()=>{for(const t of x)e.markInlineFormat(t,{commandName:Ur("0x20"),commandParams:[{value:i}]})}))}));const n=t[Ur("0x6")];e._descriptionFactory[Ur("0x10")]((e=>{const{type:o,data:s}=e;if(Ur("0x18")==o&&s&&Ur("0x20")==s[Ur("0x1b")]){const e=n.t,o=s.commandParams[0][Ur("0x1c")];if(o){const s=t[Ur("0xc")][Ur("0x19")](Ur("0x16"))[Ur("0x3")]((t=>t[Ur("0x8")]==o)),r=e(s[Ur("0xd")])[Ur("0x7")]();return{type:Ur("0x13"),content:Yo(n,Ur("0xe"),r),color:{value:s.color,title:s[Ur("0xd")]}}}return{type:Ur("0x13"),content:Yo(n,"*Remove highlight*",Yo(n,Ur("0x12")))}}}))}}const Hr=["get","elementToStructure","horizontalLine","_descriptionFactory","div","showSuggestionHighlights","high","plugins","ck-horizontal-line","createPositionAt","conversion","editor","afterInit","for","registerElementLabel","HorizontalLineEditing","TrackChangesEditing","ELEMENT_HORIZONTAL_LINE","has","addClass","locale","dataDowncast"];var zr,Wr;zr=Hr,Wr=304,function(t){for(;--t;)zr.push(zr.shift())}(++Wr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{[Vr("0x10")](){const t=this[Vr("0xf")];if(!t[Vr("0xb")][Vr("0x0")](Vr("0x13")))return;t.plugins[Vr("0x4")](Vr("0x14")).enableCommand(Vr("0x6"));const e=t[Vr("0xb")][Vr("0x4")](Vr("0x14")),n=t[Vr("0x2")];e[Vr("0x7")][Vr("0x12")](Vr("0x6"),(t=>Yo(n,Vr("0x15"),t))),t[Vr("0xe")][Vr("0x11")](Vr("0x3"))[Vr("0x5")]({model:Vr("0x6"),view:(t,{writer:e,options:n})=>{if(!n[Vr("0x9")])return null;const o=e.createContainerElement(Vr("0x8")),s=e.createEmptyElement("hr");return e[Vr("0x1")](Vr("0xc"),o),e.insert(e[Vr("0xd")](o,0),s),o},converterPriority:Vr("0xa")})}}const qr=["commandName","afterInit","registerDescriptionCallback","rawHtmlApi","htmlEmbed","document","registerElementLabel","get","getCustomProperty","editing","change","value","TrackChangesEditing","HtmlEmbed","*Change %0 content*","rawHtml","markBlockFormat","model","plugins","enableCommand","selection","getSelectedElement","ELEMENT_HTML_EMBED","element","_descriptionFactory"];var Xr,$r;Xr=qr,$r=322,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Qr=function(t,e){return qr[t-=0]};class Jr extends t.Plugin{[Qr("0x4")](){const t=this.editor;if(!t[Qr("0x15")].has(Qr("0x10")))return;const e=t[Qr("0x15")].get(Qr("0xf")),n=t.locale,o=t[Qr("0xc")].view[Qr("0x8")][Qr("0x17")];e[Qr("0x2")][Qr("0x9")](Qr("0x12"),(t=>Yo(n,"ELEMENT_HTML_EMBED",t))),t[Qr("0x15")][Qr("0xa")](Qr("0xf"))[Qr("0x16")]("htmlEmbed",((n,s)=>{const r=t[Qr("0x14")],i=r[Qr("0x8")][Qr("0x17")];r[Qr("0xd")]((()=>{const t=function(t){const e=t[Qr("0x18")]();return e&&e.is(Qr("0x1"),"rawHtml")?t[Qr("0x18")]():null}(i);if(!t)return void n(null);const r=t.getAttribute(Qr("0xe"))||"";void 0!==s&&s!==r&&(e[Qr("0x13")](t,{commandName:Qr("0x7"),commandParams:[s]}),o[Qr("0x18")]()[Qr("0xb")](Qr("0x6")).cancel())}))})),e[Qr("0x2")][Qr("0x5")]((t=>{const{data:e}=t;if(e&&Qr("0x7")==e[Qr("0x3")]){const t=Yo(n,Qr("0x0"));return{type:"format",content:Yo(n,Qr("0x11"),t)}}}))}}const Zr=["isBefore","getSuggestionCallback","editor","subType","deletion","imageCaption","markInlineFormat","afterInit","plugins","refresh","isInContent","registerPostFixer","join","getClosestSelectedImageElement","getAttribute","imageStylePostApply","Inline image to block image","markBlockFormat","ImageStyleEditing","registerCustomCallback","registerElementLabel","format","filter","ELEMENT_CAPTION","isBlockImage","differ","shouldConvertImageType","enableCommand","imageTextAlternative","suggestion","imageStyle","next","ImageTextAlternativeEditing","head","type","imageStylePreApply","markInsertion","getChangedMarkers","model","detach","discard","getContainedElement","*Set image width:* %0","insertion","accept","commandName","ImageCaptionUtils","ELEMENT_IMAGE","_splitMarkerName","toPrevious","hasSuggestion","start","forceDefaultExecution","nodeAfter","*Format:* %0","from","forEach","Users","convertInlineImageToBlock","backward","discardSuggestion","getFirstRange","ImageCaptionEditing","selection","caption","_findSuggestions","formatBlock","document","setImageNaturalSizeAttributes","chain","createRange","fromPosition","change","getNearestSelectionRange","convertBlockImageToInline","getCaptionFromImageModelElement","getSuggestions","Block image to inline image","previous","isOwn","registerDescriptionCallback","forward","alt","newValue","resizedWidth","hasAttribute","get","uploadImage","end","schema","has","isCollapsed","element","resizeImage","locale","findIndex","toNext","find","nodeBefore","createRangeOn","ImageInlineEditing","isInlineImage","getSuggestion","newRange","ImageBlockEditing","toLowerCase","*Reset image width*","length","_suggestionFactory","value","imageTypeInline","commandReversedParams","*Remove image text alternative*","side","formatInline","isEqual","commands","imageInline","markDeletion","_descriptionFactory"];var Yr,ti;Yr=Zr,ti=396,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{[ei("0x5b")](){const t=this[ei("0x56")];if(!t[ei("0x5c")].has("ImageEditing"))return;const n=t.plugins[ei("0x32")]("TrackChangesEditing"),o=t[ei("0x5c")].get("ImageUtils"),s={},r=t[ei("0x3a")];if(n.enableCommand("insertImage"),n._descriptionFactory[ei("0x68")]("imageBlock",(t=>Yo(r,ei("0xb"),t))),n[ei("0x53")][ei("0x68")](ei("0x51"),(t=>Yo(r,"ELEMENT_INLINE_IMAGE",t))),n._descriptionFactory[ei("0x68")](ei("0x1c"),(()=>Yo(r,ei("0x6b")))),t[ei("0x5c")][ei("0x36")]("ImageUploadEditing")&&n[ei("0x6f")](ei("0x33")),t[ei("0x5c")][ei("0x36")](ei("0x44"))&&t[ei("0x5c")][ei("0x36")](ei("0x40"))&&(n.enableCommand(ei("0x4a"),((e,s)=>{const r=o[ei("0x61")](t[ei("0x2")].document[ei("0x1b")]);t[ei("0x2")].change((()=>{n[ei("0x65")](r,{commandName:ei("0x4a"),commandParams:[s]},[],ei("0x26"))}))})),n[ei("0x6f")]("imageTypeBlock",((e,s)=>{t[ei("0x2")][ei("0x24")]((r=>{let x=o.getClosestSelectedImageElement(t[ei("0x2")][ei("0x1f")][ei("0x1b")]),a=r.createRangeOn(x);const c=i.LivePosition.fromPosition(a[ei("0xf")],ei("0xd")),l=i.LivePosition[ei("0x23")](a[ei("0x34")],ei("0x3c"));n[ei("0x10")]((()=>e(s))),x=o.getClosestSelectedImageElement(t[ei("0x2")][ei("0x1f")].selection),a=r[ei("0x3f")](x);const u=r[ei("0x22")](c,l);c[ei("0x3")](),l[ei("0x3")](),n.markBlockFormat(x,{commandName:ei("0x4a"),commandParams:[s]},[],ei("0x16")),u.start.isBefore(a[ei("0xf")])&&n[ei("0x0")](r[ei("0x22")](u.start,a[ei("0xf")]),ei("0x16")),a[ei("0x34")].isBefore(u[ei("0x34")])&&n[ei("0x0")](r[ei("0x22")](a.end,u[ei("0x34")]),"convertInlineImageToBlock")}))})),n[ei("0x48")][ei("0x67")]("formatBlock","convertInlineImageToBlock","join",(()=>!1)),n[ei("0x48")].registerCustomCallback(ei("0x1e"),"convertInlineImageToBlock",ei("0x8"),(()=>!1)),n._suggestionFactory[ei("0x67")](ei("0x1e"),ei("0x16"),"discard",n[ei("0x48")].getSuggestionCallback(ei("0x1e"),"",ei("0x8"))),n[ei("0x48")][ei("0x67")](ei("0x7"),"convertInlineImageToBlock","join",(()=>!1)),n[ei("0x48")][ei("0x67")](ei("0x7"),ei("0x16"),ei("0x4"),(([e])=>{const o=n._suggestionFactory[ei("0x55")](ei("0x7"),"",ei("0x4"));let s=e[ei("0xf")],r=e[ei("0x34")];const i=t[ei("0x2")][ei("0x35")][ei("0x25")](s,ei("0x17")),x=t[ei("0x2")][ei("0x35")][ei("0x25")](r,ei("0x2d"));i.isCollapsed&&(s=i[ei("0xf")]),x[ei("0x37")]&&(r=x[ei("0x34")]),o([t[ei("0x2")][ei("0x22")](s,r)])})),n[ei("0x48")][ei("0x67")](ei("0x1e"),ei("0x16"),"chain",c),n[ei("0x48")].registerCustomCallback("insertion",ei("0x16"),ei("0x21"),c)),t[ei("0x5c")].has(ei("0x1a"))&&(n.enableCommand("toggleImageCaption",((e,s)=>{const r=t[ei("0x5c")][ei("0x32")](ei("0xa"));let i=o[ei("0x61")](t[ei("0x2")][ei("0x1f")].selection),x=r[ei("0x27")](i);t[ei("0x2")].change((()=>{if(x)return void n[ei("0x52")](t[ei("0x2")][ei("0x3f")](x));const a=o[ei("0x6c")](i);e(s),i=o[ei("0x61")](t.model[ei("0x1f")].selection),x=r[ei("0x27")](i),n[ei("0x0")](t[ei("0x2")][ei("0x3f")](x),a?null:ei("0x59"))}))})),n._suggestionFactory[ei("0x67")](ei("0x7"),ei("0x59"),ei("0x21"),c)),t[ei("0x5c")][ei("0x36")](ei("0x66"))){n[ei("0x6f")](ei("0x72"),((s,r)=>{const i=t.plugins.get(ei("0x15")).me,x=t.commands[ei("0x32")](ei("0x72"));let a=o[ei("0x61")](t[ei("0x2")][ei("0x1f")][ei("0x1b")]),c=t.model[ei("0x3f")](a),l=x.value;if(l==r[ei("0x49")])return;const u={commandName:ei("0x72"),commandParams:[r],formatGroupId:(0,e.uid)()};t.model[ei("0x24")]((()=>{if(n[ei("0x28")]()[ei("0x6a")]((t=>t[ei("0x5e")]&&i==t.author&&(ei("0x1e")==t[ei("0x76")]||ei("0x4e")==t[ei("0x76")])&&("imageStylePreApply"==t[ei("0x57")]||ei("0x63")==t[ei("0x57")])&&t.getFirstRange()[ei("0x4f")](c)))[ei("0x14")]((t=>n.discardSuggestion(t[ei("0x75")]))),a=o.getClosestSelectedImageElement(t[ei("0x2")][ei("0x1f")][ei("0x1b")]),c=t[ei("0x2")][ei("0x3f")](a),x.refresh(),t[ei("0x50")].get("imageTypeInline")[ei("0x5d")](),t[ei("0x50")][ei("0x32")]("imageTypeBlock")[ei("0x5d")](),l=x.value,l!=r[ei("0x49")])return o[ei("0x41")](a)&&x[ei("0x6e")](r.value,a)?(s({...r,setImageSizes:!1}),a=o[ei("0x61")](t[ei("0x2")][ei("0x1f")].selection),void n[ei("0x65")](a,{...u,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],ei("0x77"))):void(o[ei("0x6c")](a)?n[ei("0x65")](a,u,[],ei("0x63")):n[ei("0x5a")](c,u,ei("0x63")))}))}));for(const e of t[ei("0x5c")].get(ei("0x66")).normalizedStyles)s[e.name]=e.title[ei("0x45")]();n[ei("0x48")][ei("0x67")](ei("0x1e"),ei("0x77"),"join",(()=>!1)),n._suggestionFactory[ei("0x67")](ei("0x1e"),ei("0x63"),ei("0x60"),(()=>!1)),n[ei("0x48")][ei("0x67")]("formatInline",ei("0x63"),ei("0x60"),(()=>!1)),n[ei("0x48")].registerCustomCallback(ei("0x1e"),ei("0x77"),ei("0x8"),(([t])=>{o[ei("0x20")](t[ei("0x5")]())})),n._suggestionFactory[ei("0x67")](ei("0x1e"),ei("0x77"),ei("0x4"),((t,e)=>{n[ei("0x48")][ei("0x55")](ei("0x1e"),"",ei("0x8"))(t,{commandName:e[ei("0x9")],commandParams:e[ei("0x4b")]})})),n._suggestionFactory[ei("0x67")]("formatBlock","imageStylePreApply",ei("0x21"),c)}const x=[{type:ei("0x1e"),subType:ei("0x77")},{type:ei("0x7"),subType:ei("0x59")},{type:ei("0x1e"),subType:ei("0x16")},{type:ei("0x7"),subType:ei("0x16")}];function a(t,e){const s=x[ei("0x3b")]((({type:e,subType:n})=>t[ei("0x76")]==e&&t.subType==n)),r=x[ei("0x3b")]((({type:t,subType:n})=>e[ei("0x76")]==t&&e[ei("0x57")]==n));if(s<0||r<0)return!1;const i=t[ei("0x19")](),a=e[ei("0x19")]();if((0==s||1==s)&&2==r&&i.isIntersecting(a))return!0;if(2==s&&3==r){const t=n[ei("0x1d")](i,ei("0x7")).filter((({suggestion:t,meta:e})=>e[ei("0x2b")]&&ei("0x16")==t[ei("0x57")]));if(t[ei("0x47")]>1&&a[ei("0x34")].isEqual(i.start))return!0;if(1==t.length&&(i[ei("0xf")].isEqual(a[ei("0x34")])||i[ei("0x34")][ei("0x4f")](a[ei("0xf")])))return!0}if(3==s&&3==r&&i.start[ei("0x54")](a[ei("0xf")])){const t=i[ei("0x34")][ei("0x11")],e=a[ei("0xf")][ei("0x3e")];return o.isBlockImage(t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t.model.document[ei("0x5f")]((()=>{let e=!1;const s=Array[ei("0x13")](t[ei("0x2")][ei("0x1f")][ei("0x6d")][ei("0x1")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[ei("0xc")](t);if(ei("0x71")==s&&n[ei("0xe")](a)){if(ei("0x1e")==i&&(ei("0x77")==x||ei("0x63")==x)){const t=n[ei("0x42")](a);if(r[ei("0x43")]){const s=t[ei("0x19")]()[ei("0x5")]();if(o[ei("0x6c")](s))continue;n[ei("0x18")](t),e=!0}}if("insertion"==i&&ei("0x59")==x&&!r.newRange){const t=n[ei("0x42")](a);t.next&&t[ei("0x73")].isInContent&&(n.discardSuggestion(t.next),e=!0)}}}return e})),t.plugins.has("ImageResize")&&n[ei("0x6f")](ei("0x39"),((e,s)=>{const r=o[ei("0x61")](t[ei("0x2")].document[ei("0x1b")]);r[ei("0x62")](ei("0x30"))!=s.width&&t.model[ei("0x24")]((()=>{n[ei("0x65")](r,{commandName:"resizeImage",commandParams:[s]})}))})),t.plugins[ei("0x36")](ei("0x74"))&&n[ei("0x6f")](ei("0x70"),((e,s)=>{const r=o[ei("0x61")](t[ei("0x2")][ei("0x1f")][ei("0x1b")]);(r[ei("0x31")]("alt")?r[ei("0x62")](ei("0x2e")):"")!=s[ei("0x2f")]&&t[ei("0x2")][ei("0x24")]((()=>{n[ei("0x65")](r,{commandName:ei("0x70"),commandParams:[s]})}))})),n._descriptionFactory[ei("0x2c")]((t=>{if(x[ei("0x3d")]((({type:e,subType:n})=>t[ei("0x76")]==e&&t[ei("0x57")]==n)))return t[ei("0x2a")]?{}:void 0})),n[ei("0x53")][ei("0x2c")]((t=>{if(ei("0x7")==t[ei("0x76")]||ei("0x58")==t[ei("0x76")]){const e=t[ei("0x5")]();if(e&&e.is(ei("0x38"),ei("0x1c")))return{type:ei("0x7")==t.type?"addObject":"removeObject",element:e,quantity:1}}})),n._descriptionFactory[ei("0x2c")]((t=>ei("0x1e")==t[ei("0x76")]&&ei("0x16")==t.subType?{type:ei("0x69"),content:ei("0x64")}:ei("0x1e")==t[ei("0x76")]&&ei("0x26")==t[ei("0x57")]?{type:ei("0x69"),content:ei("0x29")}:void 0)),n[ei("0x53")].registerDescriptionCallback((t=>{const{data:e}=t;if(e){if(ei("0x72")==e[ei("0x9")]){const t=e.commandParams[0][ei("0x49")];return n=ei("0x4d")===t?Yo(r,"FORMAT_SIDE_IMAGE"):s[t]||t,{type:ei("0x69"),content:Yo(r,ei("0x12"),n)}}if(ei("0x70")==e[ei("0x9")]){const t=e.commandParams[0][ei("0x2f")];return t?{type:"format",content:Yo(r,"*Set image text alternative:* %0",'"'+t+'"')}:{type:"format",content:Yo(r,ei("0x4c"))}}if("resizeImage"==e[ei("0x9")]){const t=e.commandParams[0].width;return t?{type:ei("0x69"),content:Yo(r,ei("0x6"),t)}:{type:ei("0x69"),content:Yo(r,ei("0x46"))}}}var n}))}}const oi=["has","selection","registerCustomCallback","get","author","source","data","enableCommand","handleSuggestionDescription","handleReplaceImageCommand","src","ImageEditing","_suggestionFactory","getSuggestionCallback","locale","afterInit","getContainedElement","getSuggestions","commandParams","commandName","markBlockFormat","accept","plugins","TrackChangesEditing","discard","Users","editor","replaceImageSource","format","*Format:* replace image URL","formatBlock","change","getSelectedElement"];var si,ri;si=oi,ri=454,function(t){for(;--t;)si.push(si.shift())}(++ri);const ii=function(t,e){return oi[t-=0]};class xi extends t.Plugin{[ii("0x17")](){if(!this[ii("0x1")][ii("0x1e")][ii("0x8")](ii("0x13")))return;const t=this.editor.plugins[ii("0xb")](ii("0x1f"));t[ii("0xf")](ii("0x2"),((t,e)=>this[ii("0x11")](t,e))),t[ii("0x14")][ii("0xa")](ii("0x5"),"replaceImageSource",ii("0x1d"),t._suggestionFactory[ii("0x15")](ii("0x5"),null,"discard")),t._suggestionFactory[ii("0xa")](ii("0x5"),ii("0x2"),ii("0x20"),t._suggestionFactory.getSuggestionCallback(ii("0x5"),null,ii("0x1d"))),t._descriptionFactory.registerDescriptionCallback((t=>this[ii("0x10")](t)))}handleReplaceImageCommand(t,e){const n=this.editor[ii("0x1e")][ii("0xb")](ii("0x1f")),o=this[ii("0x1")].model.document[ii("0x9")][ii("0x7")]();this[ii("0x1")].model[ii("0x6")]((()=>{let s=o.getAttribute(ii("0x12"));const r=this[ii("0x1")][ii("0x1e")][ii("0xb")](ii("0x0")).me;for(const t of n[ii("0x19")]({skipNotAttached:!0})){const e=t[ii("0x18")]();if(ii("0x2")===t.subType&&e===o){t[ii("0xc")]!==r&&t[ii("0x20")](),s=t[ii("0xe")][ii("0x1a")][0][ii("0xd")];break}}t(e),n[ii("0x1c")](o,{commandName:ii("0x2"),commandParams:[{source:s}]},[],ii("0x2"))}))}[ii("0x10")](t){const{data:e}=t;if(e&&"replaceImageSource"===e[ii("0x1b")]){const t=ii("0x4");return{type:ii("0x3"),content:Yo(this.editor[ii("0x16")],t)}}}}const ai=["enableCommand","Users","TrackChangesEditing","listenTo","_trackChangesExecuted","trackChanges","_setSuggestionData","_trackChangesValueDuringImport","dataInsert","editor","plugins","forEach","lowest","high","importWord","execute","commands","bind","get","track_changes","collaboration_features","value","afterInit","_handleImportedData"];var ci,li;ci=ai,li=255,function(t){for(;--t;)ci.push(ci.shift())}(++li);const ui=function(t,e){return ai[t-=0]};class di extends t.Plugin{constructor(t){super(t),this[ui("0x10")]=!1,this[ui("0xd")]=!1}[ui("0x7")](){const t=this.editor,e=t[ui("0x1")][ui("0x3")](ui("0x17")),n=t[ui("0x1")][ui("0x3")](ui("0xe"));e&&(e.on(ui("0x0"),((t,[,e])=>{this[ui("0x10")]=n[ui("0x6")],e[ui("0x5")][ui("0x4")]=!this[ui("0x10")]}),{priority:ui("0x16")}),this[ui("0xc")](e,ui("0x11"),this[ui("0x8")][ui("0x2")](this)),this.listenTo(e,ui("0x11"),(()=>{this[ui("0xd")]&&(n.execute(),this[ui("0xd")]=!1)}),{priority:ui("0x15")}),t[ui("0x13")][ui("0x3")](ui("0xb"))[ui("0x9")](ui("0x17")))}[ui("0x8")](t,e){const{suggestions:n}=e,o=this[ui("0x12")].commands.get(ui("0xe")),s=o.value;this[ui("0x10")]!==s&&(o[ui("0x0")](),this._trackChangesExecuted=!0),n&&n[ui("0x14")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[ui("0x12")].plugins.get(ui("0xa")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ui("0x17")}}};this[ui("0x12")].plugins[ui("0x3")]("TrackChangesEditing")[ui("0xf")](s)}))}}const gi=["outdentBlock","document","locale","getSelectedBlocks","commandName","registerDescriptionCallback","editor","from","filter","plugins","afterInit","enableCommand","TrackChangesEditing","model","getItems","selection","indent","_descriptionFactory","format","IndentEditing","indentBlock","*Indent:* %0","outdent","checkAttribute","has","*Outdent:* %0","schema"];var mi,fi;mi=gi,fi=216,function(t){for(;--t;)mi.push(mi.shift())}(++fi);const hi=function(t,e){return gi[t-=0]};class pi extends t.Plugin{[hi("0xa")](){const t=this[hi("0x6")],e=t[hi("0x9")].get(hi("0xc"));t[hi("0x9")][hi("0x18")](hi("0x13"))&&(e[hi("0xb")](hi("0x10")),e[hi("0xb")](hi("0x16")));const n=t[hi("0x2")];if(t[hi("0x9")].has("IndentBlock")){for(const n of[hi("0x14"),"outdentBlock"])e.enableCommand(n,(()=>{const o=Array[hi("0x7")](this.editor[hi("0xd")][hi("0x1")][hi("0xf")][hi("0x3")]())[hi("0x8")]((t=>this[hi("0x6")][hi("0xd")][hi("0x1a")][hi("0x17")](t,"blockIndent")));t[hi("0xd")].change((()=>{for(const t of o)e.markBlockFormat(t,{commandName:n,commandParams:[{value:""}],formatGroupId:hi("0x14")})}))}));e._descriptionFactory[hi("0x5")]((t=>{const{data:o}=t;if(!o)return;if(hi("0x14")!=o[hi("0x4")]&&hi("0x0")!=o[hi("0x4")])return;const s=t[hi("0xe")]()[0],r=e[hi("0x11")].getItemLabel(s);return"indentBlock"==o[hi("0x4")]?{type:"format",content:Yo(n,hi("0x15"),r)}:hi("0x0")==o[hi("0x4")]?{type:hi("0x12"),content:Yo(n,hi("0x19"),r)}:void 0}))}}}var bi,Ei,_i=["enableCommand","TrackChangesEditing","requires","input","init"];bi=_i,Ei=212,function(t){for(;--t;)bi.push(bi.shift())}(++Ei);var Ti=function(t,e){return _i[t-=0]};class Ci extends t.Plugin{static get[Ti("0x0")](){return[Qs.Input]}[Ti("0x2")](){this.editor.plugins.get(Ti("0x4"))[Ti("0x3")](Ti("0x1"))}}const yi=["isCollapsed","registerDescriptionCallback","selection","has","format","enableCommand","_descriptionFactory","document","change","link","*Remove link*","getFirstRange","hasAttribute","unlink","linkHref","get","markInlineFormat","getFirstPosition","commandParams","model","TrackChangesEditing","LinkEditing","plugins","editor","commandName"];var ki,Ai;ki=yi,Ai=497,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{afterInit(){const t=this[vi("0x1")];if(!t.plugins[vi("0x6")](vi("0x18")))return;const e=t[vi("0x0")][vi("0x12")](vi("0x17"));e[vi("0x8")](vi("0xc"),((n,o)=>{const s=t[vi("0x16")][vi("0xa")][vi("0x5")];let r=[];if(s[vi("0x3")]){if(!s[vi("0xf")](vi("0x11")))return void n(o);{const e=(0,Qs.findAttributeRange)(s[vi("0x14")](),vi("0x11"),s.getAttribute(vi("0x11")),t[vi("0x16")]);r=[e]}}else r=Array.from(s.getRanges());t[vi("0x16")][vi("0xb")]((()=>{for(const t of r)e[vi("0x13")](t,{commandName:"link",commandParams:[o]})}))})),e[vi("0x8")](vi("0x10"),(()=>{const n=this.editor[vi("0x16")],o=n[vi("0xa")].selection;n.change((()=>{let n=[];n=o.isCollapsed?[(0,Qs.findAttributeRange)(o[vi("0x14")](),vi("0x11"),o.getAttribute("linkHref"),t[vi("0x16")])]:Es(vi("0x11"),o[vi("0xe")](),t[vi("0x16")]);for(const t of n)e.markInlineFormat(t,{commandName:vi("0x10"),commandParams:[]})}))})),e[vi("0x9")][vi("0x4")]((e=>{const{data:n}=e,o=t.locale;if(n){if(vi("0xc")==n[vi("0x2")]){return{type:"format",content:Yo(o,"*Set link:* %0",'"'+n[vi("0x15")][0]+'"')}}return vi("0x10")==n[vi("0x2")]?{type:vi("0x7"),content:Yo(o,vi("0xd"))}:void 0}}))}}const Ii=["element","document","selection","format","ELEMENT_NUMBERED_LIST","has","commandName","todo","*Check item*","registerDescriptionCallback","parent","nextSibling","*Uncheck item*","slice","blockName","plugins","createRange","checkTodoList","registerElementLabel","commands","createPositionAt","get","todoList","length","listType","numbered","value","isObject","editor","execute","getSelectedBlocks","getAttribute","afterInit","List","schema","bulletedList","push","end","replace","_selectedElements","locale","paragraph","listItem","todoListChecked","*Change to:* %0","ELEMENT_LIST_ITEM","commandParams","_descriptionFactory","markBlockFormat","model","add","listIndent","ListEditing","before","enableCommand","previousSibling","from","outdentList","TodoListEditing","filter","change","name","indentList"];var Si,Li;Si=Ii,Li=369,function(t){for(;--t;)Si.push(Si.shift())}(++Li);const Ni=function(t,e){return Ii[t-=0]};class Mi extends t.Plugin{[Ni("0x29")](){const t=this[Ni("0x25")],e=t[Ni("0x31")];if(!t[Ni("0x18")][Ni("0xe")](Ni("0x3d")))return;const n=t[Ni("0x18")][Ni("0x1e")]("TrackChangesEditing"),o=t[Ni("0x18")].has(Ni("0x4"));function s(e){return()=>{const o=t[Ni("0x3a")][Ni("0xa")][Ni("0xb")],s=t[Ni("0x1c")][Ni("0x1e")](e);if(s[Ni("0x23")])return void t[Ni("0x26")](Ni("0x32"),{});const r=e[Ni("0x16")](0,-4),i=function(t,e,n){let o=Array[Ni("0x2")](t)[Ni("0x5")]((t=>{return e=t,(o=n).checkChild(e[Ni("0x13")],Ni("0x33"))&&!o[Ni("0x24")](e);var e,o}));o=o[Ni("0x5")]((t=>!t.is("element",Ni("0x33"))||t[Ni("0x28")](Ni("0x21"))!=e));const s=new Set;for(const t of o)t.is(Ni("0x9"),Ni("0x33"))?s[Ni("0x3b")](wi(t)):s[Ni("0x3b")](t);return Array.from(s)}(o[Ni("0x27")](),r,t[Ni("0x3a")][Ni("0x2b")]);t[Ni("0x3a")][Ni("0x6")]((()=>{for(const t of i)n.markBlockFormat(t,{commandName:e,commandParams:[{forceValue:!s[Ni("0x23")]}],formatGroupId:Ni("0x17")},Oi(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[Ni("0x2")](t);const n=e.findIndex((t=>Ni("0x33")!=t[Ni("0x7")]));return n>-1&&(e=e.slice(0,n)),e}(t.model[Ni("0xa")].selection[Ni("0x27")]()),s=t[Ni("0x3a")][Ni("0x19")](t[Ni("0x3a")][Ni("0x1d")](o[0],Ni("0x3e")),t[Ni("0x3a")][Ni("0x1d")](o[o[Ni("0x20")]-1],Ni("0x2e")));t[Ni("0x3a")][Ni("0x6")]((()=>{n[Ni("0x39")](s,{commandName:e,commandParams:[],formatGroupId:Ni("0x3c")},function(t){const e=new Set;for(const n of t){let t=n.nextSibling;for(;t&&t.getAttribute(Ni("0x3c"))>n.getAttribute("listIndent");)e[Ni("0x3b")](t),t=t.nextSibling}return Array[Ni("0x2")](e)}(o))}))}}n[Ni("0x0")]("numberedList",s("numberedList")),n.enableCommand(Ni("0x2c"),s(Ni("0x2c"))),o&&n[Ni("0x0")](Ni("0x1f"),s(Ni("0x1f"))),n.enableCommand("indentList",r(Ni("0x8"))),n[Ni("0x0")](Ni("0x3"),r("outdentList")),o&&n[Ni("0x0")](Ni("0x1a"),(()=>{const e=t[Ni("0x1c")].get(Ni("0x1a")),o=Array.from(e[Ni("0x30")]);o[Ni("0x5")]((t=>t[Ni("0x28")](Ni("0x34"))!=e[Ni("0x23")])),t[Ni("0x3a")].change((()=>{for(const t of o)n[Ni("0x39")](t,{commandName:Ni("0x1a"),commandParams:[{forceValue:!e[Ni("0x23")]}]})}))})),n[Ni("0x38")][Ni("0x1b")](Ni("0x33"),(t=>Yo(e,Ni("0x36"),t))),n[Ni("0x38")][Ni("0x12")]((t=>{const{data:n}=t;if(n){if("numberedList"==n[Ni("0xf")]||"bulletedList"==n[Ni("0xf")]||Ni("0x1f")==n.commandName)switch(n[Ni("0xf")][Ni("0x2f")](Ni("0x2a"),"")){case"bulleted":return o(Yo(e,"ELEMENT_BULLETED_LIST"));case Ni("0x22"):return o(Yo(e,Ni("0xd")));case Ni("0x10"):return o(Yo(e,"ELEMENT_TODO_LIST"))}if(Ni("0x8")==n[Ni("0xf")])return{type:Ni("0xc"),content:Yo(e,"*Indent:* %0",Yo(e,Ni("0x36")))};if(Ni("0x3")==n[Ni("0xf")])return{type:"format",content:Yo(e,"*Outdent:* %0",Yo(e,"ELEMENT_LIST_ITEM"))};if(Ni("0x1a")==n[Ni("0xf")])return n[Ni("0x37")][0].forceValue?{type:Ni("0xc"),content:Yo(e,Ni("0x11"))}:{type:Ni("0xc"),content:Yo(e,Ni("0x15"))}}function o(t){return{type:Ni("0xc"),content:Yo(e,Ni("0x35"),t)}}}))}}function wi(t){const e=t[Ni("0x28")]("listIndent");if(0==e)return t;let n=t;for(;t[Ni("0x1")]&&t[Ni("0x1")].is(Ni("0x9"),Ni("0x33"));){const o=t[Ni("0x1")][Ni("0x28")](Ni("0x3c"));if(o==e)n=t[Ni("0x1")];else if(o<e)break;t=t[Ni("0x1")]}return n}function Oi(t){const e=[];if(t.is("element",Ni("0x33"))&&t[Ni("0x28")]("listIndent")>0){let n=t.nextSibling;for(;n&&"listItem"==n[Ni("0x7")]&&n[Ni("0x28")](Ni("0x3c"))==t.getAttribute(Ni("0x3c"));)e[Ni("0x2d")](n),n=n[Ni("0x14")]}return e}const Fi=["getSelectedBlocks","config","plugins","from","listType","ListPropertiesEditing","enableCommand","TrackChangesEditing","listStyle","styles","ELEMENT_","length","model","markMultiRangeBlockFormat","*Format:* set order to regular","get","flat","handleListStyleCommand","listReversed","map","selection","filter","createRange","has","getAttribute","commandParams","handleListStartCommand","element","getSiblingNodes","parent","*Format:* set order to reversed","getFirstPosition","document","_LIST_","_getSuggestionBlocks","unshift","toUpperCase","handleListReversedCommand","forward","before","push","getLastPosition","startIndex","commandName","listItem","createPositionAt","numbered","locale","ListUtils","_getTranslationKeyForListStyle","listStart","editor","change","backward","afterInit","bind","getListTypeFromListStyleType","type","reversed"];var Pi,Di;Pi=Fi,Di=228,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{[Bi("0x3")](){if(!this.editor[Bi("0xa")][Bi("0x1f")](Bi("0xd")))return;const t=this[Bi("0x0")][Bi("0x9")].get("list.properties"),e=this.editor[Bi("0xa")][Bi("0x17")](Bi("0xf"));t[Bi("0x11")]&&e.enableCommand(Bi("0x10"),this[Bi("0x19")][Bi("0x4")](this)),t[Bi("0x7")]&&e[Bi("0xe")](Bi("0x1a"),this[Bi("0x2d")][Bi("0x4")](this)),t[Bi("0x32")]&&e[Bi("0xe")](Bi("0x3a"),this[Bi("0x22")][Bi("0x4")](this)),e._descriptionFactory.registerDescriptionCallback(this.handleDescriptions[Bi("0x4")](this))}[Bi("0x19")](t,e={}){const n=this[Bi("0x0")][Bi("0xa")][Bi("0x17")](Bi("0xf")),o=this._getSuggestionBlocksForListStyle();this[Bi("0x0")][Bi("0x14")].change((()=>{n[Bi("0x15")](o,{commandName:Bi("0x10"),commandParams:[{type:e[Bi("0x6")]}],formatGroupId:Bi("0x10")})}))}[Bi("0x2d")](t,e={}){const n=this[Bi("0x0")][Bi("0xa")][Bi("0x17")](Bi("0xf")),o=this[Bi("0x2a")]((t=>t.is(Bi("0x23"),Bi("0x34"))&&"numbered"===t[Bi("0x20")](Bi("0xc"))));if(o[Bi("0x13")]<1)return;const s=o[Bi("0x1b")]((t=>this[Bi("0x0")].model[Bi("0x1e")](this.editor[Bi("0x14")][Bi("0x35")](t,Bi("0x2f")),this[Bi("0x0")][Bi("0x14")][Bi("0x35")](t,0))));this[Bi("0x0")].model[Bi("0x1")]((()=>{n[Bi("0x15")](s,{commandName:"listReversed",commandParams:[{reversed:e[Bi("0x7")]}],formatGroupId:Bi("0x1a")})}))}[Bi("0x22")](t,e={}){const n=this.editor[Bi("0xa")][Bi("0x17")](Bi("0xf")),o=this[Bi("0x2a")]((t=>t.is(Bi("0x23"),Bi("0x34"))&&Bi("0x36")===t[Bi("0x20")](Bi("0xc"))));if(o.length<1)return;const s=o[Bi("0x1b")]((t=>this[Bi("0x0")].model[Bi("0x1e")](this.editor[Bi("0x14")][Bi("0x35")](t,"before"),this[Bi("0x0")][Bi("0x14")][Bi("0x35")](t,0))));this.editor[Bi("0x14")][Bi("0x1")]((()=>{n[Bi("0x15")](s,{commandName:Bi("0x3a"),commandParams:[{startIndex:e[Bi("0x32")]}],formatGroupId:"listStart"})}))}handleDescriptions(t){const e=this.editor[Bi("0x37")],{data:n}=t;if(!n)return;let o,s;switch(n[Bi("0x33")]){case Bi("0x10"):o="*Change to:* %0",s={type:"format",content:Yo(e,o,Yo(e,this[Bi("0x39")](n[Bi("0x21")][0][Bi("0x6")])))};break;case"listReversed":o=n[Bi("0x21")][0].reversed?Bi("0x26"):Bi("0x16"),s={type:"format",content:Yo(e,o)};break;case Bi("0x3a"):o="*Format:* set start index to %0",s={type:"format",content:Yo(e,o,n.commandParams[0][Bi("0x32")])}}return s}_getSuggestionBlocksForListStyle(){var t,e,n,o;const s=this[Bi("0x0")][Bi("0xa")][Bi("0x17")]("ListUtils");let r=Array.from(this[Bi("0x0")].model.document[Bi("0x1c")][Bi("0x8")]());return(null===(t=r[0])||void 0===t?void 0:t.is(Bi("0x23"),"listItem"))&&r[Bi("0x2b")](...s[Bi("0x24")](this[Bi("0x0")][Bi("0x14")].document[Bi("0x1c")][Bi("0x27")](),Bi("0x2"))),(null===(e=r[r[Bi("0x13")]-1])||void 0===e?void 0:e.is("element",Bi("0x34")))&&r[Bi("0x30")](...s[Bi("0x24")](this[Bi("0x0")][Bi("0x14")][Bi("0x28")].selection[Bi("0x31")](),"forward")),r=[...new Set(r)],(null===(o=null===(n=this[Bi("0x0")][Bi("0x14")][Bi("0x28")].selection.getFirstPosition())||void 0===n?void 0:n[Bi("0x25")])||void 0===o?void 0:o.is("element",Bi("0x34")))&&(r=r[Bi("0x1d")]((t=>t.is(Bi("0x23"),Bi("0x34"))))),r}[Bi("0x2a")](t){const e=this[Bi("0x0")][Bi("0xa")][Bi("0x17")]("ListUtils");let n=Array[Bi("0xb")](this[Bi("0x0")][Bi("0x14")][Bi("0x28")][Bi("0x1c")].getSelectedBlocks())[Bi("0x1d")](t)[Bi("0x1b")]((t=>{const n=this[Bi("0x0")].model[Bi("0x35")](t,0);return[...e.getSiblingNodes(n,"backward"),...e.getSiblingNodes(n,Bi("0x2e"))]}))[Bi("0x18")]();return n=[...new Set(n)],n}[Bi("0x39")](t){return Bi("0x12")+this[Bi("0x0")][Bi("0xa")][Bi("0x17")](Bi("0x38"))[Bi("0x5")](t)[Bi("0x2c")]()+Bi("0x29")+t[Bi("0x2c")]().replace(/-/g,"_")}}const Ui=["enableCommand","media","showSuggestionHighlights","MediaEmbedEditing","options","high","data","plugins","afterInit","stop","attribute:url:media","get","ELEMENT_MEDIA","dataDowncast","conversion","registerElementLabel"];var Gi,Hi;Gi=Ui,Hi=461,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Wi extends t.Plugin{[zi("0xb")](){const t=this.editor;if(!t[zi("0xa")].has(zi("0x6")))return;const e=t.plugins[zi("0xe")]("TrackChangesEditing"),n=t.locale;e[zi("0x3")]("mediaEmbed"),e._descriptionFactory[zi("0x2")](zi("0x4"),(t=>Yo(n,zi("0xf"),t))),t[zi("0x1")].for(zi("0x0")).elementToElement({model:zi("0x4"),view:(t,{writer:e,options:n})=>{if(n[zi("0x5")])return e.createEmptyElement("div")},converterPriority:"high"}),t[zi("0x9")].downcastDispatcher.on(zi("0xd"),((t,e,n)=>{n[zi("0x7")][zi("0x5")]&&t[zi("0xc")]()}),{priority:zi("0x8")})}}const Vi=["has","mention","editor","get","TrackChangesEditing","MentionEditing","plugins"];var Ki,qi;Ki=Vi,qi=262,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{afterInit(){const t=this[Xi("0x6")];t[Xi("0x3")][Xi("0x4")](Xi("0x2"))&&t.plugins[Xi("0x0")](Xi("0x1")).enableCommand(Xi("0x5"))}}const Qi=["enableCommand","editor","afterInit","get","locale","TrackChangesEditing","pageBreak","registerElementLabel","plugins"];var Ji,Zi;Ji=Qi,Zi=146,function(t){for(;--t;)Ji.push(Ji.shift())}(++Zi);const Yi=function(t,e){return Qi[t-=0]};class tx extends t.Plugin{[Yi("0x0")](){const t=this[Yi("0x8")];if(!t[Yi("0x6")].has("PageBreakEditing"))return;t[Yi("0x6")][Yi("0x1")](Yi("0x3"))[Yi("0x7")](Yi("0x4"));const e=t.plugins[Yi("0x1")](Yi("0x3")),n=t[Yi("0x2")];e._descriptionFactory[Yi("0x5")](Yi("0x4"),(t=>Yo(n,"ELEMENT_PAGE_BREAK",t)))}}const ex=["ck-suggestion-marker--active","mapper","document","filter","plugins","from","locale","toViewPosition","get","has","writer","TrackChangesEditing","parent","markerRange","enableCommand","bindElementToMarker","getFirstRange","change","schema","commandName","markBlockFormat","nodeAfter","end","markerName","ELEMENT_PARAGRAPH","insertParagraph","Paragraph","*Insert:* %0","editor","_descriptionFactory","isTouching","getItemLabel","includes","addMarker:suggestion:insertion","model","paragraph","data","downcastDispatcher","showSuggestionHighlights","addClass","format","isLimit","registerElementLabel","name","registerDescriptionCallback","editing","getSelectedBlocks","blockName","consumable","checkChild","highest"];var nx,ox;nx=ex,ox=340,function(t){for(;--t;)nx.push(nx.shift())}(++ox);const sx=function(t,e){return ex[t-=0]};class rx extends t.Plugin{afterInit(){const t=this[sx("0x2d")];if(!t[sx("0x15")][sx("0x1a")](sx("0x2b")))return;const e=t[sx("0x17")],n=t[sx("0x15")][sx("0x19")](sx("0x1c"));n[sx("0x2e")][sx("0x8")](sx("0x1"),(t=>Yo(e,sx("0x29"),t))),n.enableCommand(sx("0x1"),((e,o={})=>{const s=t[sx("0x0")][sx("0x13")],r=o.selection||s.selection,i=Array[sx("0x16")](r[sx("0xc")]())[sx("0x14")]((t=>{return e=t,(n=this.editor[sx("0x0")][sx("0x23")]).checkChild(e[sx("0x1d")],sx("0x1"))&&!n.isObject(e)&&sx("0x1")!=e[sx("0x9")];var e,n}));t[sx("0x0")][sx("0x22")]((()=>{for(const t of i)n[sx("0x25")](t,{commandName:sx("0x1"),commandParams:[],formatGroupId:sx("0xd")},_s(t))}))})),n[sx("0x2e")][sx("0xa")]((t=>{const{data:n}=t;if(n&&sx("0x1")==n[sx("0x24")])return{type:sx("0x6"),content:Yo(e,"*Change to:* %0",Yo(e,sx("0x29")))}})),n[sx("0x1f")](sx("0x2a")),t[sx("0xb")][sx("0x3")].on("addMarker:suggestion:insertion",ix(t),{priority:sx("0x10")}),t[sx("0x2")].downcastDispatcher.on(sx("0x32"),((e,n,o)=>{o.options[sx("0x4")]&&ix(t,{showActiveMarker:!1})(e,n,o)}),{priority:sx("0x10")});const o=n[sx("0x2e")];o.registerDescriptionCallback((n=>{if("insertion"!==n.type)return;const{start:s,end:r}=n[sx("0x21")]();if(!s[sx("0x2f")](r)||!s[sx("0x26")])return;const i=t[sx("0x0")].schema,x=s[sx("0x26")];return i.isBlock(x)&&!i[sx("0x7")](x)&&i[sx("0xf")](x,"$text")?{type:"insertion",content:Yo(e,sx("0x2c"),o[sx("0x30")](x,1))}:void 0}))}}function ix(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[sx("0x15")].get(sx("0x1c")),i=o[sx("0x1e")].start,x=o[sx("0x1e")][sx("0x27")],a=t[sx("0x0")][sx("0x23")];if(!i[sx("0x2f")](x)||!i[sx("0x26")])return;const c=i[sx("0x26")];if(a.isBlock(c)&&!a[sx("0x7")](c)&&a[sx("0xf")](c,"$text")){if(!s[sx("0xe")].consume(o[sx("0x1e")],n[sx("0x9")]))return;const t=s.writer.createUIElement("span",{class:"ck-suggestion-marker-split"}),i=s[sx("0x12")][sx("0x18")](x);e&&r.activeMarkers[sx("0x31")](o.markerName)&&s[sx("0x1b")][sx("0x5")](sx("0x11"),t),s[sx("0x1b")].insert(i,t),s[sx("0x12")][sx("0x20")](t,o[sx("0x28")])}}}const xx=["_descriptionFactory","registerDescriptionCallback","markInlineFormat","model","isFormatting","TrackChangesEditing","has","plugins","*Remove all formatting*","get","isCollapsed","editor","getRanges","createRangeOn","schema","from","removeFormat","commandName","getAttributeProperties"];var ax,cx;ax=xx,cx=418,function(t){for(;--t;)ax.push(ax.shift())}(++cx);const lx=function(t,e){return xx[t-=0]};class ux extends t.Plugin{afterInit(){const t=this[lx("0xb")];if(!t.plugins[lx("0x6")]("RemoveFormatEditing"))return;const e=t[lx("0x7")][lx("0x9")](lx("0x5"));e.enableCommand(lx("0x10"),(n=>{const o=t[lx("0x3")].document.selection;o[lx("0xa")]?n():t[lx("0x3")].change((()=>{const n=Array[lx("0xf")](o[lx("0xc")]());for(const o of n)for(const n of o.getItems())dx(n,t[lx("0x3")][lx("0xe")])&&e[lx("0x2")](t.model[lx("0xd")](n),{commandName:lx("0x10"),commandParams:[]})}))})),e[lx("0x0")][lx("0x1")]((e=>{const{data:n}=e;if(n&&"removeFormat"==n[lx("0x11")])return{type:"format",content:Yo(t.locale,lx("0x8"))}}))}}function dx(t,e){for(const[n]of t.getAttributes()){const t=e[lx("0x12")](n);if(t&&t[lx("0x4")])return!0}return!1}const gx=["goToNextRestrictedEditingException","acceptAllSuggestions","plugins","discardAllSuggestions","acceptSelectedSuggestions","enableCommand","afterInit","goToPreviousRestrictedEditingException","discardSelectedSuggestions","RestrictedEditingModeEditing","editor","trackChanges","get"];var mx,fx;mx=gx,fx=270,function(t){for(;--t;)mx.push(mx.shift())}(++fx);const hx=function(t,e){return gx[t-=0]};class px extends t.Plugin{[hx("0x9")](){const t=this[hx("0x0")];if(!t[hx("0x5")].has(hx("0xc")))return;const e=t.plugins[hx("0x2")]("TrackChangesEditing");e[hx("0x8")](hx("0xa")),e[hx("0x8")](hx("0x3"));const n=t.plugins[hx("0x2")](hx("0xc"));n[hx("0x8")](hx("0x1")),n[hx("0x8")]("acceptSuggestion"),n[hx("0x8")]("discardSuggestion"),n.enableCommand(hx("0x4")),n.enableCommand(hx("0x6")),n[hx("0x8")](hx("0x7")),n[hx("0x8")](hx("0xb"))}}const bx=["activeMarkers","addMarker:suggestion:deletion","_descriptionFactory","merge","get","split","ck-suggestion-marker-","mapper","TrackChangesEditing","init","ck-suggestion-marker--active","shiftEnter","createPositionBefore","writer","requires","consumable","options","test","span","addMarker:suggestion:insertion","showSuggestionHighlights","includes","editor","markerName","plugins","createUIElement","locale","markerRange","element","addClass","getItems","softBreak","registerElementLabel","editing","data","bindElementToMarker","downcastDispatcher","high"];var Ex,_x;Ex=bx,_x=274,function(t){for(;--t;)Ex.push(Ex.shift())}(++_x);const Tx=function(t,e){return bx[t-=0]};class Cx extends t.Plugin{static get[Tx("0x6")](){return[xr.ShiftEnter]}[Tx("0x1")](){const t=this[Tx("0xe")],e=t.plugins[Tx("0x22")]("TrackChangesEditing");e.enableCommand(Tx("0x3")),t[Tx("0x19")][Tx("0x1c")].on(Tx("0xb"),yx(t),{priority:Tx("0x1d")}),t[Tx("0x19")][Tx("0x1c")].on(Tx("0x1f"),yx(t),{priority:"high"}),t[Tx("0x1a")][Tx("0x1c")].on("addMarker:suggestion",((e,n,o)=>{o[Tx("0x8")][Tx("0xc")]&&yx(t,{showActiveMarker:!1})(e,n,o)})),e[Tx("0x20")][Tx("0x18")](Tx("0x17"),(e=>Yo(t[Tx("0x12")],"ELEMENT_LINE_BREAK",e)))}}function yx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Tx("0x10")][Tx("0x22")](Tx("0x0"));if(!s[Tx("0x7")][Tx("0x9")](o.markerRange,n.name))return;const i=t.model;for(const t of o[Tx("0x13")][Tx("0x16")]()){if(!t.is(Tx("0x14"),Tx("0x17")))continue;const n="deletion"==o[Tx("0xf")][Tx("0x23")](":")[1]?Tx("0x21"):Tx("0x23"),x=s[Tx("0x5")][Tx("0x11")](Tx("0xa"),{class:Tx("0x24")+n}),a=s.mapper.toViewPosition(i[Tx("0x4")](t));e&&r[Tx("0x1e")][Tx("0xd")](o[Tx("0xf")])&&s[Tx("0x5")][Tx("0x15")](Tx("0x2"),x),s[Tx("0x5")].insert(a,x),s[Tx("0x25")][Tx("0x1b")](x,o.markerName)}}}const kx=["has","getRanges","selection","get","plugins","enableCommand","registerDescriptionCallback","commandParams","format","restrictedEditingException","TrackChangesEditing","isCollapsed","markInlineFormat","_descriptionFactory","locale","from","forceValue","document","commands","commandName","FORMAT_RESTRICTED_DISABLED","value","editor","change","afterInit"];var Ax,vx;Ax=kx,vx=444,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Ix extends t.Plugin{[Rx("0x5")](){const t=this[Rx("0x3")],e=t.model,n=t[Rx("0x14")];if(!t[Rx("0xa")][Rx("0x6")]("StandardEditingModeEditing"))return;const o=t[Rx("0xa")][Rx("0x9")](Rx("0x10")),s=Rx("0xf"),r=t[Rx("0x18")][Rx("0x9")](s);o[Rx("0xb")](s,((t,n={})=>{const i=e[Rx("0x17")][Rx("0x8")];if(i[Rx("0x11")])return void t(n);const x=void 0!==n.forceValue?n[Rx("0x16")]:!r[Rx("0x2")];e[Rx("0x4")]((()=>{const t=Array[Rx("0x15")](i[Rx("0x7")]());for(const n of t){const t=x?[n]:Es(s,n,e);for(const e of t)o[Rx("0x12")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o[Rx("0x13")][Rx("0xc")]((t=>{const{data:e}=t;if(e&&e[Rx("0x0")]==s)return e[Rx("0xd")][0].forceValue?{type:"format",content:Yo(n,"FORMAT_RESTRICTED_ENABLED")}:{type:Rx("0xe"),content:Yo(n,Rx("0x1"))}}))}}const Sx=["style.definitions","styleName","getDefinitionsForView","commands","_getRangesWithClasses","add","getRanges","isBlock","classes","_getStyleDefinition","locale","inline","Style","document","getAncestors","markInlineFormat","block","has","push","getAttribute","element","_descriptionFactory","from","format","change","*Format:* %0","get","registerDescriptionCallback","TrackChangesEditing","name","style","editor","createRangeOn","modelElements","forceValue","afterInit","isCollapsed","find","getItems","toLowerCase","includes","normalizeConfig","model","commandParams","getSelectedBlocks","plugins","DataSchema","config"];var Lx,Nx;Lx=Sx,Nx=400,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const Mx=function(t,e){return Sx[t-=0]};class wx extends t.Plugin{[Mx("0x13")](){const t=this[Mx("0xf")];if(!t[Mx("0x1d")][Mx("0x1")](Mx("0x2c")))return;const e=t[Mx("0x23")][Mx("0xa")](Mx("0xe")),n=t[Mx("0x1d")][Mx("0xa")](Mx("0xc")),o=t[Mx("0x2a")],s=t[Mx("0x1d")].get(Mx("0x1e")),r=t[Mx("0x1d")][Mx("0xa")]("StyleUtils")[Mx("0x19")](s,t[Mx("0x1f")][Mx("0xa")](Mx("0x20")));n.enableCommand(Mx("0xe"),((o,{styleName:i})=>{const x=t[Mx("0x1a")][Mx("0x2d")].selection,a=this[Mx("0x29")](i,r);if(!a)return;if(!e.enabledStyles[Mx("0x18")](i))return;if(x[Mx("0x14")]&&!a[Mx("0x27")])return void o({styleName:i});const c=!e.value[Mx("0x18")](a[Mx("0xd")]);if(a[Mx("0x27")]){const e=function(t,e){const n=new Set;for(const o of t){const t=o[Mx("0x2e")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e.includes(o.name)){n[Mx("0x25")](o);break}}return n}(x[Mx("0x1c")](),a[Mx("0x11")]);t[Mx("0x1a")][Mx("0x8")]((()=>{for(const t of e)n.markBlockFormat(t,{commandName:"style",commandParams:[{styleName:i,forceValue:c}],formatGroupId:"style:"+i})}))}else{let e=Array[Mx("0x6")](x[Mx("0x26")]());if(!c){const n=Array[Mx("0x6")](s[Mx("0x22")](a[Mx("0x4")],!1))[0][Mx("0x1a")],o=[];for(const s of e){const e=this[Mx("0x24")](t[Mx("0x1a")],s,a[Mx("0x28")],n);o[Mx("0x2")](...e)}e=o}t.model[Mx("0x8")]((()=>{for(const t of e)n[Mx("0x2f")](t,{commandName:"style",commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Mx("0x5")][Mx("0xb")]((t=>{const{data:e}=t;if(e&&Mx("0xe")===e.commandName)return e.commandParams[0][Mx("0x12")]?{type:"format",content:Yo(o,Mx("0x9"),e[Mx("0x1b")][0][Mx("0x21")][Mx("0x17")]())}:{type:Mx("0x7"),content:Yo(o,"*Remove format:* %0",e.commandParams[0][Mx("0x21")][Mx("0x17")]())}}))}[Mx("0x29")](t,e){let n=e[Mx("0x0")][Mx("0x15")]((e=>e.name===t));return n||(n=e[Mx("0x2b")].find((e=>e.name===t))),n}[Mx("0x24")](t,e,n,o){const s=[];for(const r of e[Mx("0x16")]()){const e=r[Mx("0x3")](o);e&&n.every((t=>e.classes[Mx("0x18")](t)))&&s[Mx("0x2")](t[Mx("0x10")](r))}return s}}const Ox=["tableRow","ELEMENT_TABLE_COLUMN_WITH_TEXT","fromRange","deletion","last","map","position","substr","above","removeTableColumn","some","getSuggestion","refresh","options","_suggestionFactory","left","oldRange","change","order","TableUtils","data","showSuggestionHighlights","root","markMultiRangeInsertion","createRangeIn","commands","min","cell","nodeAfter","addRange","_getSuggestionCoords","discard","getCellLocation","isEqual","tableCell","ELEMENT_TABLE_COLUMN","minRow","insertTable","_splitMarkerName","insert","classes","_acceptFormatSuggestionCallbackFactory","start","getSelectionAffectedTableCells","getItems","createPositionAt","hasAttribute","toViewElement","subType","insertion","model","editor","setSelection","ELEMENT_TABLE_ROW","tableColumn","from","getRowIndexes","enqueueChange","accept","maxColumn","tablePaste","nodeBefore","_tableSuggestions","MAX_SAFE_INTEGER","createRangeOn","low","insertTableColumnLeft","getAttribute","get","isArray","afterInit","removeTableRow","selectTableRow","insertTableRowAbove","rowspan","TableEditing","TrackChangesEditing","getChildren","findAncestor","$graveyard","table","createTableWalker","colspan","push","_getCoordsForCells","minColumn","MIN_SAFE_INTEGER","detach","span","*Remove:* %0","*Insert:* %0","document","type","registerPostFixer","toLowerCase","highest","isIntersectingWithRange","insertTableRowBelow","_setupColumnsRowsFixing","getColumnIndexes","enableCommand","batch","element","execute","forceValue","rootName","max","_tablePostFixingSubtypes","join","name","first","registerCustomCallback","downcastDispatcher","length","registerDescriptionCallback","includes","getFirstRange","plugins","_descriptionFactory","differ","end","ELEMENT_TABLE","getContainedElement","$textProxy","filter","addClass","isTouching","add","selectTableColumn","ELEMENT_TABLE_WITH_TEXT","ELEMENT_TABLE_ROW_WITH_TEXT","getRanges"];var Fx,Px;Fx=Ox,Px=245,function(t){for(;--t;)Fx.push(Fx.shift())}(++Px);const Dx=function(t,e){return Ox[t-=0]};class Bx extends t.Plugin{constructor(t){super(t),this._tablePostFixingSubtypes=[Dx("0x13"),Dx("0x49")],this[Dx("0x51")]=new Set}[Dx("0x59")](){const t=this[Dx("0x46")],e=t[Dx("0x45")][Dx("0x6e")].selection;if(!t[Dx("0x4")].has(Dx("0x5e")))return;const n=t.locale,o=t[Dx("0x4")][Dx("0x57")](Dx("0x5f")),s=t[Dx("0x4")][Dx("0x57")](Dx("0x26"));o._descriptionFactory.registerElementLabel(Dx("0x63"),(t=>Yo(n,Dx("0x8"),t))),this[Dx("0x75")](),o[Dx("0x77")](Dx("0x38")),o.enableCommand(Dx("0x5b")),o[Dx("0x77")](Dx("0xf"));for(const n of[Dx("0x5c"),Dx("0x74")]){const r=t.commands[Dx("0x57")](n);o.enableCommand(n,(n=>{t[Dx("0x45")].change((t=>{n();const i=Dx("0x1b")===r.order,x=s.getSelectionAffectedTableCells(e),a=s[Dx("0x4b")](x),c=i?a[Dx("0x81")]-1:a.last+1,l=x[0][Dx("0x61")](Dx("0x63")),u=s.createTableWalker(l,{startRow:c,endRow:c}),d=Array[Dx("0x4a")](u).map((e=>t[Dx("0x53")](e[Dx("0x2e")])));o[Dx("0x2a")](d,Dx("0x13"))}))}))}for(const n of[Dx("0x55"),"insertTableColumnRight"]){const r=t[Dx("0x2c")][Dx("0x57")](n);o[Dx("0x77")](n,(n=>{t[Dx("0x45")][Dx("0x24")]((t=>{n();const i=Dx("0x22")===r[Dx("0x25")],x=s.getSelectionAffectedTableCells(e),a=s[Dx("0x76")](x),c=i?a[Dx("0x81")]-1:a[Dx("0x17")]+1,l=x[0][Dx("0x61")](Dx("0x63")),u=s[Dx("0x64")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array.from(u)[Dx("0x18")]((e=>t[Dx("0x53")](e[Dx("0x2e")])));o[Dx("0x2a")](d,Dx("0x49"))}))}))}for(const n of["removeTableRow",Dx("0x1c")]){const r=n[Dx("0x1a")](11),i=r.toLowerCase(),x=i[Dx("0x1a")](0,3)+"span",a=Dx("0x63")+r,c=Dx("0x2d")+r,l="max"+r;o.enableCommand(n,(()=>{t.model[Dx("0x24")]((t=>{const r=s[Dx("0x3e")](e),u=r[0].findAncestor(Dx("0x63"));let d;if(Dx("0x5a")==n){const t=s[Dx("0x4b")](r);d={startRow:t[Dx("0x81")],endRow:t[Dx("0x17")],includeAllSlots:!0}}else{const t=s[Dx("0x76")](r);d={startColumn:t.first,endColumn:t[Dx("0x17")],includeAllSlots:!0}}const g=s[Dx("0x64")](u,d),m=Array[Dx("0x4a")](g)[Dx("0x18")]((({cell:t})=>t)),f=jx(m[Dx("0xb")]((t=>t[Dx("0x41")](x)))),h=jx(m[Dx("0xb")]((t=>!t.hasAttribute(x))))[Dx("0x18")]((e=>t[Dx("0x53")](e))),p=o.markMultiRangeDeletion(h,a);if(p&&("tableRow"==p.subType||"tableColumn"==p[Dx("0x43")])){const e=this[Dx("0x31")](p);for(const n of f){const o=t[Dx("0x53")](n),r=s[Dx("0x33")](n),a=n[Dx("0x56")](x)-1,u=e[c],d=e[l];u<=r[i]&&r[i]+a<=d&&p[Dx("0x30")](o)}}}))}))}function r(n){const o=Array.from(e[Dx("0x12")]())[Dx("0x18")]((t=>i.LiveRange[Dx("0x15")](t)));t[Dx("0x45")][Dx("0x24")]((e=>{const s=e[Dx("0x78")];n=n.filter((t=>Dx("0x62")!=t.root[Dx("0x7c")])),e[Dx("0x47")](n),t[Dx("0x2c")][Dx("0x57")](Dx("0x5a"))[Dx("0x1f")](),t[Dx("0x7a")](Dx("0x5a"),{forceDefaultExecution:!0}),t[Dx("0x45")].enqueueChange((()=>{t[Dx("0x45")][Dx("0x4c")](s,(t=>{const e=o[Dx("0xb")]((t=>Dx("0x62")!=t.root[Dx("0x7c")]));e.length>0&&t.setSelection(e);for(const t of o)t[Dx("0x6a")]()}))}))}))}function a(n){t[Dx("0x45")][Dx("0x24")]((o=>{const s=Array[Dx("0x4a")](e[Dx("0x12")]())[Dx("0x18")]((t=>i.LiveRange.fromRange(t))),r=[];for(const t of n)for(const e of t[Dx("0x3f")]({shallow:!0}))r[Dx("0x66")](e);for(const e of r)Dx("0x62")!=e.root.rootName&&(o[Dx("0x47")](o[Dx("0x40")](e,0)),t[Dx("0x2c")].get("removeTableColumn")[Dx("0x1f")](),t.execute(Dx("0x1c"),{forceDefaultExecution:!0}));const x=s[Dx("0xb")]((t=>Dx("0x62")!=t[Dx("0x29")].rootName));x.length>0&&o[Dx("0x47")](x);for(const t of s)t[Dx("0x6a")]()}))}function c(t,e){return e.every((e=>t[Dx("0x1d")]((t=>t[Dx("0x7")].isEqual(e[Dx("0x3d")])||e[Dx("0x7")][Dx("0x34")](t[Dx("0x3d")])))))}function l(t,e){return t[Dx("0x1d")]((t=>e[Dx("0x1d")]((e=>t[Dx("0x7")][Dx("0xd")](e[Dx("0x3d")])))))}t[Dx("0x27")][Dx("0x83")].on("addMarker:suggestion",((t,e,n)=>{if(!n[Dx("0x20")][Dx("0x28")])return;const o=e.item;if(!o)return;const s=n.mapper[Dx("0x42")](o);function r(t){return Array[Dx("0x58")](t)?t:[t]}s&&Dx("0x35")===o[Dx("0x80")]&&(0,x.setHighlightHandling)(s,n.writer,((t,e,n)=>n[Dx("0xc")](r(e[Dx("0x3b")]),t)),((t,e,n)=>n.removeClass(r(e.classes),t)))}),{priority:Dx("0x72")}),o[Dx("0x5")][Dx("0x1")]((t=>{if(Dx("0x44")!=t[Dx("0x6f")]&&"deletion"!=t[Dx("0x6f")])return;const e=t[Dx("0x9")]();if(null!=e&&e.is(Dx("0x79"),Dx("0x63"))){if(Dx("0x44")==t[Dx("0x6f")]){const e=t.getItems()[Dx("0xb")]((t=>t.is(Dx("0xa"))))[Dx("0x18")]((t=>t[Dx("0x27")]));if(e[Dx("0x0")])return{type:Dx("0x44"),content:Yo(n,Dx("0x6d"),Yo(n,Dx("0x10"),'"'+e[Dx("0x7f")](" ")+'"'))}}if(Dx("0x16")==t[Dx("0x6f")]){const e=t[Dx("0x3f")]().filter((t=>t.is(Dx("0xa"))))[Dx("0x18")]((t=>t[Dx("0x27")]));if(e[Dx("0x0")])return{type:Dx("0x16"),content:Yo(n,Dx("0x6c"),Yo(n,Dx("0x10"),'"'+e[Dx("0x7f")](" ")+'"'))}}}})),o[Dx("0x5")].registerDescriptionCallback((t=>{if(Dx("0x13")==t[Dx("0x43")]){const e=t.getItems().filter((t=>t.is(Dx("0xa"))))[Dx("0x18")]((t=>t[Dx("0x27")])),o=this._getSuggestionCoords(t),s=o.maxRow-o[Dx("0x37")]+1;if("insertion"==t[Dx("0x6f")])return e[Dx("0x0")]?{type:"insertion",content:Yo(n,"*Insert:* %0",Yo(n,Dx("0x11"),[s,'"'+e[Dx("0x7f")](" ")+'"']))}:{type:"insertion",content:Yo(n,"*Insert:* %0",Yo(n,Dx("0x48"),s))};if(Dx("0x16")==t[Dx("0x6f")])return e[Dx("0x0")]?{type:"deletion",content:Yo(n,Dx("0x6c"),Yo(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[s,'"'+e.join(" ")+'"']))}:{type:"deletion",content:Yo(n,Dx("0x6c"),Yo(n,Dx("0x48"),s))}}if(Dx("0x49")==t[Dx("0x43")]){const e=t[Dx("0x3f")]()[Dx("0xb")]((t=>t.is(Dx("0xa"))))[Dx("0x18")]((t=>t[Dx("0x27")])),o=this._getSuggestionCoords(t),s=o[Dx("0x4e")]-o[Dx("0x68")]+1;if(Dx("0x44")==t[Dx("0x6f")])return e[Dx("0x0")]?{type:Dx("0x44"),content:Yo(n,Dx("0x6d"),Yo(n,Dx("0x14"),[s,'"'+e[Dx("0x7f")](" ")+'"']))}:{type:Dx("0x44"),content:Yo(n,"*Insert:* %0",Yo(n,Dx("0x36"),s))};if("deletion"==t[Dx("0x6f")])return e[Dx("0x0")]?{type:"deletion",content:Yo(n,Dx("0x6c"),Yo(n,Dx("0x14"),[s,'"'+e[Dx("0x7f")](" ")+'"']))}:{type:Dx("0x16"),content:Yo(n,Dx("0x6c"),Yo(n,Dx("0x36"),s))}}})),o._suggestionFactory[Dx("0x82")](Dx("0x44"),Dx("0x13"),Dx("0x32"),r),o[Dx("0x21")][Dx("0x82")](Dx("0x16"),Dx("0x13"),"accept",r),o[Dx("0x21")][Dx("0x82")](Dx("0x44"),Dx("0x49"),Dx("0x32"),a),o._suggestionFactory[Dx("0x82")]("deletion",Dx("0x49"),Dx("0x4d"),a),o[Dx("0x21")][Dx("0x82")](Dx("0x44"),"tableColumn",Dx("0x7f"),c),o[Dx("0x21")][Dx("0x82")]("deletion",Dx("0x49"),"join",c),o[Dx("0x21")][Dx("0x82")](Dx("0x44"),Dx("0x13"),Dx("0x7f"),l),o[Dx("0x21")][Dx("0x82")](Dx("0x16"),"tableRow",Dx("0x7f"),l)}[Dx("0x3c")](){const t=this.editor,e=t[Dx("0x45")][Dx("0x6e")].selection;return(n,o)=>{t[Dx("0x45")][Dx("0x24")]((s=>{const{commandName:r,commandParams:x}=o;let a=n[0].end[Dx("0x50")];x&&x[0]&&!1===x[0][Dx("0x7b")]&&(a=n[0][Dx("0x3d")].nodeAfter);const c=s[Dx("0x2b")](a);if(Dx("0x62")==c[Dx("0x29")][Dx("0x7c")])return;const l=Array.from(e[Dx("0x12")]()).map((t=>i.LiveRange[Dx("0x15")](t)));s[Dx("0x47")](c),t[Dx("0x2c")].get(r)[Dx("0x1f")](),x[Dx("0x66")]({forceDefaultExecution:!0}),t.execute(r,...x);const u=l[Dx("0xb")]((t=>Dx("0x62")!=t.root[Dx("0x7c")]));u[Dx("0x0")]>0&&s[Dx("0x47")](u);for(const t of l)t.detach()}))}}[Dx("0x67")](t){const e=this[Dx("0x46")].plugins[Dx("0x57")](Dx("0x26"));let n=Number[Dx("0x52")],o=Number[Dx("0x69")],s=Number[Dx("0x52")],r=Number[Dx("0x69")];for(const i of t){if(Dx("0x62")==i.root[Dx("0x7c")])continue;const{row:t,column:x}=e[Dx("0x33")](i),a=i.hasAttribute(Dx("0x5d"))?i.getAttribute(Dx("0x5d"))-1:0,c=i.hasAttribute("colspan")?i[Dx("0x56")](Dx("0x65"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,s=x<s?x:s,r=x+c>r?x+c:r}return{minRow:n,maxRow:o,minColumn:s,maxColumn:r}}[Dx("0x75")](){const t=this[Dx("0x46")],e=t[Dx("0x4")][Dx("0x57")](Dx("0x5f")),n=t[Dx("0x4")][Dx("0x57")](Dx("0x26"));t.model[Dx("0x6e")].on("change:data",(()=>{const n=Array[Dx("0x4a")](t[Dx("0x45")][Dx("0x6e")][Dx("0x6")].getChangedMarkers());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[Dx("0x39")](t);if("suggestion"!=n)continue;if(null!=o[Dx("0x23")])continue;const i=e[Dx("0x1e")](s);this[Dx("0x7e")][Dx("0x2")](r)&&this[Dx("0x51")][Dx("0xe")](i)}}),{priority:Dx("0x54")});const o=(t,e)=>{let o=!1;const s=e[Dx("0x53")](t),r=t[Dx("0x61")](Dx("0x63")),i=n[Dx("0x33")](t);for(const e of this._tableSuggestions){const n=e.subType,x=n.startsWith(Dx("0x4f")),a=n[Dx("0x1a")](x?10:5),c=a[Dx("0x71")](),l=c[Dx("0x1a")](0,3)+Dx("0x6b"),u="min"+a,d=Dx("0x7d")+a;if(!e.isInContent)continue;if(r!=e[Dx("0x3")]()[Dx("0x3d")][Dx("0x61")](Dx("0x63")))continue;if(e[Dx("0x73")](s))continue;const g=t[Dx("0x41")](l)?t[Dx("0x56")](l)-1:0,m=this._getSuggestionCoords(e),f=m[u],h=m[d];f<=i[c]&&i[c]+g<=h&&(e.addRange(s),o=!0)}return o};t[Dx("0x45")].document[Dx("0x70")]((e=>{let n=!1;for(const s of t[Dx("0x45")][Dx("0x6e")].differ.getChanges())if(Dx("0x3a")==s[Dx("0x6f")])if("tableRow"==s[Dx("0x80")])for(const t of s[Dx("0x19")].nodeAfter[Dx("0x60")]())n=n||o(t,e);else Dx("0x35")==s[Dx("0x80")]&&(n=n||o(s.position[Dx("0x2f")],e));return n}))}[Dx("0x31")](t){return this[Dx("0x67")](t.getRanges()[Dx("0x18")]((t=>t[Dx("0x3d")][Dx("0x2f")])))}}function jx(t){return Array.from(new Set(t).values())}const Ux=["markMultiRangeBlockFormat","model","enableCommand","TrackChangesEditing","_areSelectedCellsMergable","mergeTableCellDown","filter","TableUtils","element","length","*Merge cells*","registerCustomCallback","has","*Split cell:* vertically","stop","find","accept","isEnabled","plugins","type","execute","_descriptionFactory","requires","getFirstPosition","registerDescriptionCallback","size","containsRange","setSelection","getRanges","$graveyard","fromRange","return","mergeTableCellRight","_suggestionFactory","_tablePostFixingSubtypes","from","mergeTableCellUp","push","low","author","mergeTableCellLeft","getSelectionAffectedTableCells","TableEditing","direction","editor","getCellLocation","splitTableCellHorizontally","get","rootName","commandName","table","splitTableCellVertically","createTableWalker","change","document","horizontally","add","cell","tableCell","format","getAncestors","locale","afterInit","_acceptFormatSuggestionCallbackFactory","_areMergableCells","insertion","root","formatBlock","commands","value","mergeTableCells","_isForcedDefaultExecutionBlock","map","refresh","createRangeOn","markBlockFormat","selection"];var Gx,Hx;Gx=Ux,Hx=147,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const zx=function(t,e){return Ux[t-=0]};class Wx extends t.Plugin{static get[zx("0x1d")](){return[Bx]}[zx("0x45")](){const t=this.editor,e=t.model[zx("0x3d")].selection,n=t[zx("0x44")];if(!t[zx("0x19")][zx("0x13")](zx("0x31")))return;const o=t.plugins[zx("0x36")](zx("0xa")),s=t[zx("0x19")][zx("0x36")](zx("0xe")),r=t[zx("0x19")][zx("0x36")](Bx);r[zx("0x29")][zx("0x2c")](zx("0x0")),o[zx("0x9")](zx("0x0"),(()=>{const e=s[zx("0x30")](t[zx("0x8")][zx("0x3d")][zx("0x6")]);t[zx("0x8")][zx("0x3c")]((()=>{o[zx("0x7")](e,{commandName:"mergeTableCells",commandParams:[]},[],zx("0x0"))}))})),t[zx("0x4b")].get(zx("0x0")).on(zx("0x1b"),((e,n)=>{t[zx("0x4b")][zx("0x36")]("trackChanges").value&&(n.length>0&&n[n[zx("0x10")]-1]&&n[n.length-1].forceDefaultExecution||o[zx("0x1")]||this._areSelectedCellsMergable()||e.stop())}),{priority:"highest"});for(const e of[zx("0x2b"),zx("0x27"),zx("0xc"),"mergeTableCellLeft"]){const n=t.commands.get(e);o.enableCommand(e,(()=>{const e=t.model[zx("0x3d")][zx("0x6")][zx("0x1e")]()[zx("0x43")]()[zx("0x16")]((t=>t.is(zx("0xf"),"tableCell"))),s=n[zx("0x4c")];t[zx("0x8")][zx("0x3c")]((()=>{o.markMultiRangeBlockFormat([e,s],{commandName:zx("0x0"),commandParams:[]},[],zx("0x0"))}))}))}for(const e of[zx("0x3a"),zx("0x35")]){const n=t[zx("0x4b")].get(e);o.enableCommand(e,(()=>{const r=s.getSelectionAffectedTableCells(t[zx("0x8")][zx("0x3d")][zx("0x6")])[0],i=r.findAncestor(zx("0x39")),{column:x,row:a}=s[zx("0x34")](r);let c=[];if(zx("0x3e")==n[zx("0x32")]){const t=s[zx("0x3b")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[zx("0x2a")](t).map((t=>t[zx("0x40")]))}else{const t=s[zx("0x3b")](i,{column:x,includeAllSlots:!0});c=Array[zx("0x2a")](t)[zx("0x2")]((t=>t[zx("0x40")]))}t[zx("0x8")][zx("0x3c")]((t=>{o[zx("0x5")](t[zx("0x4")](r),{commandName:e,commandParams:[]},c,e)}))}))}o[zx("0x1c")][zx("0x1f")]((t=>{const{data:e}=t;if(e)return"mergeTableCells"==e[zx("0x38")]?{type:zx("0x42"),content:Yo(n,zx("0x11"))}:void 0})),o._descriptionFactory[zx("0x1f")]((t=>{const{data:e}=t;if(e)return zx("0x3a")==e.commandName?{type:zx("0x42"),content:Yo(n,zx("0x14"))}:zx("0x35")==e[zx("0x38")]?{type:zx("0x42"),content:Yo(n,"*Split cell:* horizontally")}:void 0}));const x=r[zx("0x46")]();for(const t of["mergeTableCellUp","mergeTableCellRight",zx("0xc"),zx("0x2f")])o._suggestionFactory.registerCustomCallback(zx("0x4a"),t,zx("0x17"),x);for(const t of["splitTableCellVertically","splitTableCellHorizontally"])o[zx("0x28")][zx("0x12")](zx("0x4a"),t,zx("0x17"),x);o._suggestionFactory[zx("0x12")]("formatBlock",zx("0x0"),zx("0x17"),(n=>{t.model.change((o=>{const s=Array[zx("0x2a")](e[zx("0x23")]())[zx("0x2")]((t=>i.LiveRange[zx("0x25")](t)));o[zx("0x22")](n),t[zx("0x4b")][zx("0x36")](zx("0x0"))[zx("0x3")](),t[zx("0x1b")](zx("0x0"),{forceDefaultExecution:!0});const r=s[zx("0xd")]((t=>zx("0x24")!=t[zx("0x49")][zx("0x37")]));r[zx("0x10")]>0&&o.setSelection(r);for(const t of s)t.detach()}))}));for(const e of[zx("0x2b"),zx("0xc"),zx("0x2f"),zx("0x27")]){const n=t[zx("0x4b")][zx("0x36")](e);n.on("set:isEnabled",((e,o,s)=>{if(s){const o=t[zx("0x8")][zx("0x3d")][zx("0x6")][zx("0x1e")]()[zx("0x43")]()[zx("0x16")]((t=>t.is(zx("0xf"),zx("0x41"))));this[zx("0x47")](n.value,o)||(e[zx("0x26")]=!1,e[zx("0x15")]())}}),{priority:zx("0x2d")})}}[zx("0xb")](){const t=this[zx("0x33")][zx("0x4b")].get(zx("0x0")),e=this[zx("0x33")].plugins[zx("0x36")](zx("0xe"));if(!t[zx("0x18")])return!1;const n=e[zx("0x30")](this.editor[zx("0x8")][zx("0x3d")].selection);for(const t of n)for(const e of n)if(t!=e&&!this[zx("0x47")](t,e))return!1;return!0}[zx("0x47")](t,e){const n=this[zx("0x33")][zx("0x19")][zx("0x36")](zx("0xa")),o=this.editor[zx("0x8")][zx("0x4")](t),s=this[zx("0x33")][zx("0x8")][zx("0x4")](e),r=new Set,i=new Set;for(const t of n.getSuggestions())if((zx("0x48")==t[zx("0x1a")]||"deletion"==t.type||zx("0x0")==t.subType)&&t.isInContent)for(const e of t[zx("0x23")]())e[zx("0x21")](o,!0)&&r[zx("0x3f")](t.type+":"+t[zx("0x2e")].id),e[zx("0x21")](s,!0)&&i[zx("0x3f")](t[zx("0x1a")]+":"+t[zx("0x2e")].id);if(r[zx("0x20")]!=i[zx("0x20")])return!1;for(const t of r)if(!i[zx("0x13")](t))return!1;return!0}}const Vx=["has","afterInit","removeClass","ck-suggestion-marker-","getColumnIndexes","formatBlock","model","ck-suggestion-marker--active","FORMAT_HEADER_ROW","_suggestionFactory","getSuggestion","createPositionBefore","showSuggestionHighlights","setTableRowHeader","enableCommand","headingColumns","stop","childCount","getAttribute","mapper","get","_acceptFormatSuggestionCallbackFactory","name","setTableColumnHeader","value","findAncestor","includes","data","requires","downcastDispatcher","unbindElementFromMarkerName","selection","_splitMarkerName","nodeAfter","options","from","_descriptionFactory","headingRows","getCellLocation","table","toViewElement","commandName","activeMarkers","createPositionAfter","isBefore","last","markerRange","markerNameToElements","start","FORMAT_HEADER_COLUMN","index","consume","locale","removeAttribute","data-suggestion","parent","addMarker:suggestion","commands","createRange","commandParams","createTableWalker","first","*Format:* %0","bindElementToMarker","change","writer","forceValue","accept","TableUtils","format","document","item","markerName","editor","consumable","highest","plugins","editing","TableEditing","registerDescriptionCallback","getSelectionAffectedTableCells","TrackChangesEditing","registerCustomCallback","cell","nodeBefore","addClass","getChild"];var Kx,qx;Kx=Vx,qx=313,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Vx[t-=0]};class $x extends t.Plugin{static get[Xx("0x3f")](){return[Bx]}[Xx("0x24")](){const t=this[Xx("0x15")];if(!t[Xx("0x18")][Xx("0x23")](Xx("0x1a")))return;const e=t[Xx("0x0")],n=t[Xx("0x18")][Xx("0x37")](Xx("0x1d")),o=t[Xx("0x18")][Xx("0x37")](Xx("0x10")),s=t[Xx("0x18")][Xx("0x37")](Bx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n[Xx("0x43")](r.markerName),c=n[Xx("0x2d")](a);if(!c[Xx("0x3e")]||Xx("0x3a")!=c[Xx("0x3e")][Xx("0x4c")])return;if(r[Xx("0x13")])return void s[Xx("0x33")]();if(!i[Xx("0x16")][Xx("0x56")](r.markerRange,s[Xx("0x39")]))return;const l=r[Xx("0x51")][Xx("0x53")][Xx("0x44")],u=r[Xx("0x51")].end[Xx("0x20")],d=l.parent[Xx("0x3")],{column:g}=o[Xx("0x49")](l),{column:m}=o[Xx("0x49")](u);for(let s=g;s<=m;s++){const c=o[Xx("0x8")](d,{column:s,includeAllSlots:!1});for(const o of c){const s=o[Xx("0x1f")],c=i[Xx("0x36")][Xx("0x4b")](s);i[Xx("0xd")][Xx("0x21")]("ck-suggestion-marker-"+x,c),e&&i[Xx("0xd")].setAttribute(Xx("0x2"),a,c),i[Xx("0x36")][Xx("0xb")](c,r[Xx("0x14")]),t&&(n[Xx("0x4d")][Xx("0x3d")](r[Xx("0x14")])?i[Xx("0xd")][Xx("0x21")](Xx("0x2a"),c):i[Xx("0xd")].removeClass(Xx("0x2a"),c))}}}}n[Xx("0x31")]("setTableRowHeader",((e,s)=>{const r=o[Xx("0x1c")](t[Xx("0x29")][Xx("0x12")][Xx("0x42")]),i=o.getRowIndexes(r),x=r[0][Xx("0x3c")](Xx("0x4a")),a=x[Xx("0x35")](Xx("0x48"))||0,c=s&&null!==s[Xx("0xe")]?s.forceValue:!t[Xx("0x5")][Xx("0x37")](Xx("0x30"))[Xx("0x3b")],l=c?i[Xx("0x50")]:i[Xx("0x9")],u=x.getChild(l);let d;if(c){const e=x.getChild(a);if(u.index<e[Xx("0x55")])return;d=t[Xx("0x29")][Xx("0x6")](t[Xx("0x29")][Xx("0x2e")](e[Xx("0x22")](0)),t[Xx("0x29")].createPositionAfter(u[Xx("0x22")](u[Xx("0x34")]-1)))}else{const e=x[Xx("0x22")](a-1);if(!e)return;d=t[Xx("0x29")][Xx("0x6")](t[Xx("0x29")][Xx("0x2e")](u[Xx("0x22")](0)),t[Xx("0x29")][Xx("0x4e")](e[Xx("0x22")](e[Xx("0x34")]-1)))}t.model[Xx("0xc")]((()=>{n.markBlockFormat(d,{commandName:Xx("0x30"),commandParams:[{forceValue:c}]},[],Xx("0x30"))}))})),n.enableCommand("setTableColumnHeader",((e,o)=>{const s=t.plugins.get(Xx("0x10")),r=s[Xx("0x1c")](t.model[Xx("0x12")][Xx("0x42")]),i=s[Xx("0x27")](r),x=r[0].findAncestor(Xx("0x4a")),a=x[Xx("0x35")](Xx("0x32"))||0,c=o&&null!==o.forceValue?o[Xx("0xe")]:!t[Xx("0x5")][Xx("0x37")](Xx("0x3a"))[Xx("0x3b")];let l;const u=x[Xx("0x22")](0),d=c?i[Xx("0x50")]:i[Xx("0x9")],g=s.createTableWalker(x,{startRow:0,column:d,includeAllSlots:!1}),m=Array[Xx("0x46")](g)[0][Xx("0x1f")];if(c){const e=u[Xx("0x22")](a);if(m[Xx("0x4f")](e))return;l=t[Xx("0x29")][Xx("0x6")](t[Xx("0x29")][Xx("0x2e")](e),t[Xx("0x29")][Xx("0x4e")](m))}else{const e=u[Xx("0x22")](a-1);if(!e)return;l=t[Xx("0x29")][Xx("0x6")](t[Xx("0x29")][Xx("0x2e")](m),t[Xx("0x29")].createPositionAfter(e))}t[Xx("0x29")].change((()=>{n.markBlockFormat(l,{commandName:"setTableColumnHeader",commandParams:[{forceValue:c}]},[],Xx("0x3a"))}))})),t[Xx("0x19")][Xx("0x40")].on(Xx("0x4"),r(),{priority:Xx("0x17")}),t[Xx("0x3e")][Xx("0x40")].on(Xx("0x4"),((t,e,n)=>{n[Xx("0x45")][Xx("0x2f")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:Xx("0x17")}),t[Xx("0x19")][Xx("0x40")].on("removeMarker:suggestion",((t,e,o)=>{const{type:s,id:r}=n[Xx("0x43")](e.markerName),i=n[Xx("0x2d")](r);if(!i[Xx("0x3e")]||Xx("0x3a")!=i[Xx("0x3e")][Xx("0x4c")])return;const x=o.mapper[Xx("0x52")](e[Xx("0x14")]);if(x)for(const t of x)o.writer.removeClass(Xx("0x26")+s,t),o[Xx("0xd")][Xx("0x25")]("ck-suggestion-marker--active",t),o[Xx("0xd")][Xx("0x1")](Xx("0x2"),t),o[Xx("0x36")][Xx("0x41")](t,e.markerName)}),{priority:Xx("0x17")}),n[Xx("0x47")][Xx("0x1b")]((t=>{const{data:n}=t;if(n){if(Xx("0x30")==n.commandName){const t=n[Xx("0x7")][0][Xx("0xe")];return o(Yo(e,t?Xx("0x2b"):"FORMAT_REGULAR_ROW"))}if(Xx("0x3a")==n[Xx("0x4c")]){const t=n.commandParams[0].forceValue;return o(Yo(e,t?Xx("0x54"):"FORMAT_REGULAR_COLUMN"))}}function o(t){return{type:Xx("0x11"),content:Yo(e,Xx("0xa"),t)}}}));const i=s[Xx("0x38")]();n._suggestionFactory[Xx("0x1e")](Xx("0x28"),Xx("0x30"),Xx("0xf"),i),n[Xx("0x2c")][Xx("0x1e")](Xx("0x28"),Xx("0x3a"),Xx("0xf"),i)}}const Qx=["markerAttributes","tablePasteChainId","unwrap","deletionRanges","high","attributes","getMarkers","tablePasteColumn","forceDefaultExecution","cell","Users","_tablePostFixingSubtypes","insertRows","accept","newRange","tableCell","tablePaste","tableCellVerticalAlignment","suggestion","differ","registerCustomCallback","columnInsertionRanges","author","document","createTableWalker","markerToHighlight","tablePasteRow","isEmpty","formatBlock","low","_isForcedDefaultExecutionBlock","findAncestor","element","ck-suggestion-marker-insertion","isEqual","columnInsertionIndexes","map","rows","endRow","getColumns","registerPostFixer","_suggestionFactory","push","commands","tableCellBorderWidth","TableClipboard","register","markers","from","last","getAllAdjacentSuggestions","subType","getRowIndexes","dataDowncast","createRangeIn","getChangedMarkers","tableCellHorizontalAlignment","plugins","requires","suggestionUnloaded","first","getSuggestion","locale","insert","elementToElement","getChildren","conversion","length","rowInsertionIndexes","view","getSuggestions","tablePasteCell","return","markerName","markMultiRangeInsertion","includes","end","getChild","redo","wrap","table","every","change","removeRows","deletion","rowInsertionRanges","getRange","type","tableCellBorderStyle","fromEntries","options","getShiftedBy","activeMarkers","TableUtils","some","editor","getAttributes","hasSuggestion","position","get","removeMarker","getColumnIndexes","model","getItems","createRangeOn","insertion","startsWith","tableCellBorderColor","_getCoordsForCells","removeColumns","selection","column","_splitMarkerName","suggestion-td","getChanges","discard","find","nextSibling","insertColumns","removeMarkers","next","move","endColumn","tableCellBackgroundColor","add","*Replace table cells*","getSelectionAffectedTableCells","name","reduce","join","markMultiRangeBlockFormat","cells","getRanges","filter","getContainedElement","createPositionBefore","batch","createElement","keys","_descriptionFactory","afterInit","for","$graveyard","oldRange","remove","getRows","insertContent","schema","ck-suggestion-marker--active","containsRange","listenTo","stop","suggestion:formatBlock:tablePasteCell","suggestionLoaded","tableCellSuggestion","isInContent","_createdBatches","getTableIfOnlyTableInContent","trackChanges","has","showSuggestionHighlights"];var Jx,Zx;Jx=Qx,Zx=345,function(t){for(;--t;)Jx.push(Jx.shift())}(++Zx);const Yx=function(t,e){return Qx[t-=0]},ta=[Yx("0x15"),Yx("0x54"),Yx("0x41"),Yx("0x21"),Yx("0x9b"),Yx("0x64"),"tableCellPadding"],ea=Object[Yx("0x42")](ta[Yx("0xd")]((t=>[t,null])));class na extends t.Plugin{static get[Yx("0x23")](){return[Bx]}[Yx("0x75")](){const t=this.editor;if(!t[Yx("0x22")][Yx("0x88")]("TableClipboard"))return;const n=t[Yx("0x22")][Yx("0x4c")]("TrackChangesEditing"),o=t[Yx("0x22")][Yx("0x4c")](Yx("0x46")),s=t[Yx("0x22")][Yx("0x4c")](Bx),r=t[Yx("0x22")][Yx("0x4c")]("TableClipboard");s[Yx("0x95")][Yx("0x13")](Yx("0x3"),"tablePasteColumn"),t.model[Yx("0x7c")][Yx("0x17")](Yx("0x83"),{allowIn:Yx("0x99"),allowContentOf:"tableCell",isLimit:!0}),t[Yx("0x2b")][Yx("0x29")]({model:"tableCellSuggestion",view:"suggestion-td"});let i=null;t[Yx("0x4f")].on(Yx("0x7b"),((s,x)=>{const[a,c]=x,l=x[x[Yx("0x2c")]-1];l&&l[Yx("0x92")]||n[Yx("0x7")]||this[Yx("0x48")].commands.get(Yx("0x87")).value&&function(t,e,n,o,s){if(e&&!e.is("documentSelection"))return!1;const r=s[Yx("0x86")](t,n);if(!r||!sa(r,void 0,o))return!1;const i=o[Yx("0x67")](n[Yx("0x0")][Yx("0x57")]);if(!i[Yx("0x2c")])return!1;const x=i[0][Yx("0x8")]("table"),a=o[Yx("0x1d")](i),c=o[Yx("0x4e")](i),l={startRow:a.first,endRow:a[Yx("0x1a")],startColumn:c[Yx("0x25")],endColumn:c.last};return 1==i[Yx("0x2c")]&&(l[Yx("0xf")]+=o[Yx("0x7a")](r)-1,l[Yx("0x63")]+=o[Yx("0x10")](r)-1),sa(x,l,o)}(a,c,t[Yx("0x4f")],o,r)&&(s[Yx("0x80")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Yx("0x4f")][Yx("0x3b")]((()=>{t.model[Yx("0x7b")](x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:s,columnInsertionRanges:r,insertionRanges:a,deletionRanges:c,cells:l}=i;s[Yx("0x2c")]&&n[Yx("0x33")](s,Yx("0x3"),{tablePasteChainId:o}),r.length&&n[Yx("0x33")](r,"tablePasteColumn",{tablePasteChainId:o}),a[Yx("0x2c")]&&n[Yx("0x33")](a,Yx("0x9a"),{tablePasteChainId:o,skipNestingCheck:!0}),c[Yx("0x2c")]&&n.markMultiRangeDeletion(c,Yx("0x9a"),{tablePasteChainId:o,skipNestingCheck:!0});const u=n[Yx("0x6b")](l.map((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Yx("0x30"),{tablePasteChainId:o});if(u){const e=u[Yx("0x90")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t[Yx("0x4f")][Yx("0x51")](o),i=e[Yx("0x5d")]((t=>t[Yx("0x3f")]()[Yx("0xb")](r)));i&&n[Yx("0x13")]([i[Yx("0x68")],s])}n[Yx("0x2c")]&&u.setAttribute(Yx("0x8a"),Object[Yx("0x42")](n))}i=null})))}),{priority:e.priorities[Yx("0x8e")]+10}),t[Yx("0x22")][Yx("0x4c")](Yx("0x16")).on("_replaceTableSlotCell",((t,e)=>{const[n,o,,s]=e;if(!i)return;t[Yx("0x80")]();const r=n[Yx("0x93")],x=o,a=oa(r),c=oa(x);t[Yx("0x31")]=r;let l=null,u=null;if(c||a)if(a&&!c){s[Yx("0x79")](r[Yx("0x36")](0));for(const t of Array.from(x[Yx("0x2a")]()))s[Yx("0x28")](t,r,Yx("0x35"));const t=i[Yx("0x2d")][Yx("0x34")](n.row),e=i[Yx("0xc")][Yx("0x34")](n[Yx("0x58")]);t||e||(l=s[Yx("0x1f")](r))}else c&&!a&&(u=s[Yx("0x1f")](r));else{const t=s[Yx("0x72")](Yx("0x83")),e=s.createElement(Yx("0x83"));s[Yx("0x38")](s.createRangeIn(r),e),s.insert(t,r,0);for(const e of Array[Yx("0x19")](x[Yx("0x2a")]()))s[Yx("0x28")](e,t,Yx("0x35"));l=s[Yx("0x51")](t),u=s[Yx("0x51")](e)}const d=Array[Yx("0x19")](x[Yx("0x49")]())[Yx("0x6e")]((([t])=>ta[Yx("0x34")](t)));i[Yx("0x6c")][Yx("0x13")]({element:r,attributes:d.length?Object[Yx("0x42")](d):null}),l&&i.insertionRanges[Yx("0x13")](l),u&&i[Yx("0x8d")][Yx("0x13")](u)}),{priority:"high"}),o.on(Yx("0x5f"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r.columns||1;i[Yx("0xc")]=new Array(a).fill(x)[Yx("0xd")](((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(s,{startColumn:x,endColumn:x+a-1}))i[Yx("0x9f")][Yx("0x13")](t[Yx("0x4f")][Yx("0x51")](e))}),{priority:Yx("0x6")}),o.on(Yx("0x96"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Yx("0xe")]||1;i[Yx("0x2d")]=new Array(a).fill(x).map(((t,e)=>t+e));for(const{cell:e}of o[Yx("0x1")](s,{startRow:x,endRow:x+a-1}))i[Yx("0x3e")][Yx("0x13")](t[Yx("0x4f")][Yx("0x51")](e))}),{priority:"low"}),n[Yx("0x74")].registerDescriptionCallback((e=>{if(e.subType&&e.subType[Yx("0x53")](Yx("0x9a")))return e.previous?{}:{type:Yx("0x52"),content:Yo(t[Yx("0x27")],Yx("0x66"))}}));const x=()=>!1;for(const t of[Yx("0x9a"),"tablePasteColumn",Yx("0x3"),"tablePasteCell"])n._suggestionFactory.registerCustomCallback(Yx("0x52"),t,Yx("0x6a"),x),n[Yx("0x12")][Yx("0x9e")](Yx("0x3d"),t,Yx("0x6a"),x),n[Yx("0x12")][Yx("0x9e")](Yx("0x5"),t,Yx("0x6a"),x);n[Yx("0x12")][Yx("0x9e")]("formatBlock","tablePasteCell",Yx("0x5c"),x),n._suggestionFactory[Yx("0x9e")]("formatBlock",Yx("0x30"),Yx("0x97"),((e,n,o)=>{const s=e[Yx("0xd")]((t=>t[Yx("0x6f")]()))[Yx("0x6e")]((t=>t)),r=new Map(s[Yx("0xd")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Yx("0x6c")])e&&r.set(t,e);else if(o&&o[Yx("0x8a")])for(const[e,n]of Object.entries(o[Yx("0x8a")])){const o=t[Yx("0x4f")][Yx("0x18")].get(e),s=o?o.getRange()[Yx("0x6f")]():null;s&&r.set(s,n)}t[Yx("0x4f")][Yx("0x3b")]((t=>{for(const[e,n]of r)t.setAttributes({...ea,...n},e)}))}));const a=(e,o)=>{n[Yx("0x12")].registerCustomCallback(e,Yx("0x9a"),o,((s,r,i)=>{t[Yx("0x4f")][Yx("0x3b")]((t=>{const x=[];for(const t of s){const e=t.start.nodeAfter;e.is("element",Yx("0x83"))&&x.push(e)}n[Yx("0x12")].getSuggestionCallback(e,null,o)(s,r,i);for(const e of x)Yx("0x77")!=e.root.rootName&&t[Yx("0x8c")](e)}))}))};a("insertion",Yx("0x97")),a(Yx("0x52"),Yx("0x5c")),a(Yx("0x3d"),Yx("0x97")),a(Yx("0x3d"),Yx("0x5c")),n[Yx("0x12")][Yx("0x9e")](Yx("0x52"),Yx("0x3"),"discard",(t=>{const e=t.map((t=>t[Yx("0x6f")]())),n=e[0][Yx("0x8")](Yx("0x39")),{minRow:r,maxRow:i}=s[Yx("0x55")](e);o[Yx("0x3c")](n,{at:r,rows:i-r+1})})),n._suggestionFactory[Yx("0x9e")]("insertion",Yx("0x91"),Yx("0x5c"),(t=>{const e=t[Yx("0xd")]((t=>t[Yx("0x6f")]())),n=e[0].findAncestor(Yx("0x39")),{minColumn:r,maxColumn:i}=s[Yx("0x55")](e);o[Yx("0x56")](n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[Yx("0x1c")]||!e[Yx("0x1c")][Yx("0x53")](Yx("0x9a")))return;const o=e[Yx("0x8f")][Yx("0x8b")],s=n[Yx("0x2f")]()[Yx("0x6e")]((t=>t[Yx("0x84")]&&t.attributes&&t[Yx("0x8f")][Yx("0x8b")]==o));s[Yx("0x2c")]&&e[Yx("0x1b")]()[Yx("0x2c")]!=s[Yx("0x2c")]&&s[Yx("0x69")](((t,e)=>(t[Yx("0x61")]=e,e.previous=t,e)))};function l(t,e=!0){const{id:o}=n[Yx("0x59")](t[Yx("0x32")]),s=["ck-suggestion-marker",Yx("0xa")],r=n[Yx("0x45")].includes(t[Yx("0x32")]);return r&&s[Yx("0x13")](Yx("0x7d")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(Yx("0x82"),c,{priority:Yx("0x8e")}),n.on(Yx("0x24"),c,{priority:"high"}),t[Yx("0x4f")][Yx("0x0")][Yx("0x11")]((()=>{let e=!1;const o=Array[Yx("0x19")](t.model[Yx("0x0")][Yx("0x9d")][Yx("0x20")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[Yx("0x59")](s);if("suggestion"!=o||"deletion"!=i||r[Yx("0x78")])continue;if(!n[Yx("0x4a")](x))continue;const a=n[Yx("0x26")](x)[Yx("0x6d")](),c=t[Yx("0x22")][Yx("0x4c")]("Users").me;for(const t of n.getSuggestions())if(t[Yx("0x84")]&&t[Yx("0xa0")]==c&&Yx("0x5")==t[Yx("0x40")]&&Yx("0x30")==t[Yx("0x1c")]&&t[Yx("0x6d")]()[Yx("0x3a")]((t=>a[Yx("0x47")]((e=>e[Yx("0x7e")](t,!0))))))for(const n of t[Yx("0x1b")]())n[Yx("0x84")]&&(n[Yx("0x5c")](),e=!0)}return e})),t[Yx("0x4f")][Yx("0x0")][Yx("0x11")]((e=>{const o=t[Yx("0x14")][Yx("0x4c")](Yx("0x37"));if(!o||!o[Yx("0x85")][Yx("0x88")](e[Yx("0x71")]))return!1;let s=!1;const r=t.plugins[Yx("0x4c")](Yx("0x94")).me,i=t[Yx("0x4f")][Yx("0x0")][Yx("0x9d")][Yx("0x5b")](),x=Array[Yx("0x19")](t.model[Yx("0x0")][Yx("0x9d")][Yx("0x20")]())[Yx("0x6e")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[Yx("0x59")](t);return Yx("0x9c")==o&&Yx("0x9a")==s&&i==r.id&&!e[Yx("0x78")]}));for(const t of i){if(Yx("0x28")!=t[Yx("0x40")]||Yx("0x83")!=t[Yx("0x68")]||1!=t.length)continue;const n=e.createRange(t[Yx("0x4b")],t[Yx("0x4b")][Yx("0x44")](1));if(!x.find((({data:t})=>t[Yx("0x98")][Yx("0xb")](n))))for(const{name:t,data:o}of x)if(n[Yx("0x7e")](o[Yx("0x98")])){e.updateMarker(t,{range:n}),s=!0;break}}return s})),t.model[Yx("0x0")][Yx("0x11")]((e=>{let o=!1;const s=t.plugins[Yx("0x4c")](Yx("0x94")).me,r=n.getSuggestions()[Yx("0x6e")]((t=>t[Yx("0x84")]&&t[Yx("0xa0")]==s)),i=new Set,x=new Set;for(const t of r)if(Yx("0x9a")==t[Yx("0x1c")])for(const e of t[Yx("0x90")]()){const n=e[Yx("0x3f")]()[Yx("0x6f")]();if(n)if(n.is(Yx("0x9"),Yx("0x83"))&&oa(n)){t.removeMarker(e[Yx("0x68")]),i[Yx("0x65")](n),o=!0;const s=n[Yx("0x5e")],r=n.previousSibling,a=s&&s.is(Yx("0x9"),Yx("0x83")),c=r&&r.is(Yx("0x9"),Yx("0x83"));a&&!i[Yx("0x88")](s)&&x[Yx("0x65")](s),c&&!i.has(r)&&x[Yx("0x65")](r)}else n.is("element","paragraph")&&n[Yx("0x4")]&&(t[Yx("0x4d")](e[Yx("0x68")]),o=!0)}else if(Yx("0x30")==t[Yx("0x1c")]){if(!t[Yx("0x8f")]||!t[Yx("0x8f")][Yx("0x8b")])continue;const e=t[Yx("0x8f")][Yx("0x8a")];if(e&&Object[Yx("0x73")](e)[Yx("0x2c")])continue;const n=t.attributes[Yx("0x8b")];let s=!0,i=!0;for(const e of r)if(e.subType&&e[Yx("0x1c")][Yx("0x53")]("tablePaste")){if(!e[Yx("0x8f")][Yx("0x8b")]){i=!1;break}if(e.id!=t.id&&e[Yx("0x8f")][Yx("0x8b")]==n){s=!1;break}}i&&s&&(t[Yx("0x60")](),o=!0)}for(const t of i)e.remove(t);for(const t of x)e[Yx("0x8c")](t);return o})),t[Yx("0x2b")][Yx("0x76")]("editingDowncast").markerToHighlight({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>l(t),converterPriority:"high"}),t.conversion[Yx("0x76")](Yx("0x1e"))[Yx("0x2")]({model:Yx("0x81"),view:(t,e)=>e[Yx("0x43")][Yx("0x89")]?l(t,!1):null,converterPriority:Yx("0x8e")});const u=t.editing[Yx("0x2e")];this[Yx("0x7f")](u[Yx("0x0")],"clipboardOutput",((t,e)=>{const n=[];for(const t of u[Yx("0x1f")](e.content)[Yx("0x50")]())t.is(Yx("0x9"),Yx("0x5a"))&&n[Yx("0x13")](t);u[Yx("0x3b")]((t=>{for(const e of n)t[Yx("0x62")](t.createRangeIn(e),t[Yx("0x70")](e)),t[Yx("0x79")](e)}))}))}}function oa(t){if(t[Yx("0x4")])return!0;const e=t.getChild(0);return e.is(Yx("0x9"),"paragraph")&&e[Yx("0x4")]}function sa(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Yx("0x1")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ra=["editor","discard","get","*Format:* resize table","document","TrackChangesEditing","afterInit","plugins","selection","model","TableColumnResizeEditing","resizeTableWidth","change","formatBlock","enableCommand","getTableColumnsWidths","handleResizeTableWidthCommand","columnWidths","format","resizeColumnWidths","table","commandParams","getContainedElement","resizeTable","locale","handleSuggestionDescription","has","_suggestionFactory","getSuggestionCallback","bind","tableWidth","markBlockFormat","data","getSelectedElement","Users","registerCustomCallback","accept","getSuggestions"];var ia,xa;ia=ra,xa=321,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{[aa("0x1b")](){if(!this[aa("0x15")][aa("0x1c")][aa("0x9")](aa("0x1f")))return;const t=this[aa("0x15")][aa("0x1c")][aa("0x17")](aa("0x1a"));t.enableCommand(aa("0x20"),this[aa("0x25")][aa("0xc")](this)),t[aa("0x23")](aa("0x2"),this[aa("0x25")][aa("0xc")](this)),t._suggestionFactory[aa("0x12")](aa("0x22"),"resizeTable",aa("0x13"),t[aa("0xa")][aa("0xb")]("formatBlock",null,aa("0x16"))),t[aa("0xa")][aa("0x12")](aa("0x22"),"resizeTable","discard",t[aa("0xa")][aa("0xb")](aa("0x22"),null,aa("0x13"))),t._descriptionFactory.registerDescriptionCallback(this[aa("0x8")][aa("0xc")](this))}[aa("0x25")](t,e){const n=this[aa("0x15")].plugins[aa("0x17")](aa("0x1a")),o=this.editor[aa("0x1c")][aa("0x17")](aa("0x1f")),s=e[aa("0x3")]||this.editor[aa("0x1e")][aa("0x19")][aa("0x1d")][aa("0x10")]();this[aa("0x15")][aa("0x1e")][aa("0x21")]((()=>{const r=o.getColumnGroupElement(s);let i=r?o[aa("0x24")](r):null,x=s.getAttribute(aa("0xd"))||null;const a=e.tableWidth||x,c=e.columnWidths||i,l=this[aa("0x15")].plugins[aa("0x17")](aa("0x11")).me;for(const t of n[aa("0x14")]()){const e=t[aa("0x5")]();if(aa("0x6")===t.subType&&e===s){t.author!==l&&t[aa("0x16")]();const e=t[aa("0xf")][aa("0x4")];x=e[0][aa("0xd")],i=e[0][aa("0x0")];break}}t({table:s,tableWidth:a,columnWidths:c}),n[aa("0xe")](s,{commandName:aa("0x20"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:"resizeTable"},[],"resizeTable")}))}[aa("0x8")](t){const{data:e}=t;if(e&&"resizeTable"===e.formatGroupId){const t=aa("0x18");return{type:aa("0x1"),content:Yo(this.editor[aa("0x7")],t)}}}}const la=["get","plugins","enableCommand","insertTemplate","TrackChangesEditing","has","afterInit","Template"];var ua,da;ua=la,da=229,function(t){for(;--t;)ua.push(ua.shift())}(++da);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0x1")](){const t=this.editor;t[ga("0x4")][ga("0x0")](ga("0x2"))&&t[ga("0x4")][ga("0x3")](ga("0x7"))[ga("0x5")](ga("0x6"))}}const fa=["TrackChangesEditing","enableCommand","commands","plugins","registerElementLabel","get","_descriptionFactory","insertTableOfContents","afterInit","tableOfContents"];var ha,pa;ha=fa,pa=253,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{[ba("0x5")](){const t=this.editor;if(!t[ba("0x9")][ba("0x2")]("insertTableOfContents"))return;t.plugins[ba("0x2")](ba("0x7"))[ba("0x8")](ba("0x4"));const e=t[ba("0x0")].get(ba("0x7")),n=t.locale;e[ba("0x3")][ba("0x1")](ba("0x6"),(t=>Yo(n,"ELEMENT_TABLE_OF_CONTENTS",t)))}}const _a=["_splitMarkerName","isCollapsed","createRange","newRange","TrackChangesEditing","from","locale","plugins","end","afterInit","title-content","getChangedMarkers","suggestion","get","nodeBefore","forward","registerElementLabel","Title","element","differ","isEqual","model","document","ELEMENT_TITLE","schema","isTouching","start","removeMarker","editor"];var Ta,Ca;Ta=_a,Ca=230,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{[ya("0xb")](){const t=this[ya("0x1")];if(!t[ya("0x9")].has(ya("0x13")))return;const e=t[ya("0x9")][ya("0xf")](ya("0x6"));e._descriptionFactory[ya("0x12")]("title-content",(()=>Yo(t[ya("0x8")],ya("0x19")))),t[ya("0x17")][ya("0x18")].registerPostFixer((n=>{let o=!1;const s=Array[ya("0x7")](t[ya("0x17")][ya("0x18")][ya("0x15")][ya("0xd")]());for(const{name:r,data:i}of s){const{group:s}=e[ya("0x2")](r);if(ya("0xe")!==s||!i.newRange)continue;const x=i[ya("0x5")],a=x[ya("0xa")][ya("0x10")];if(!a||!a.is(ya("0x14"),ya("0xc")))continue;if(!x[ya("0x1c")][ya("0x1b")](x[ya("0xa")]))continue;const c=t[ya("0x17")][ya("0x1a")].getNearestSelectionRange(x[ya("0xa")],ya("0x11"));if(c&&c[ya("0x3")]){const t=n[ya("0x4")](x[ya("0x1c")],c[ya("0x1c")]);t[ya("0x16")](x)||(n.updateMarker(r,{range:t}),o=!0)}o||(n[ya("0x0")](r),o=!0)}return o}))}}const Aa=["TrackChangesEditing","undo","afterInit","enableCommand","get","editor","has","redo","plugins"];var va,Ra;va=Aa,Ra=210,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Ia=function(t,e){return Aa[t-=0]};class Sa extends t.Plugin{[Ia("0x8")](){const t=this[Ia("0x2")],e=t[Ia("0x5")][Ia("0x1")](Ia("0x6"));t.plugins[Ia("0x3")]("UndoEditing")&&(e[Ia("0x0")](Ia("0x7")),e.enableCommand(Ia("0x4")))}}const La=["requires","afterInit","get","enableCommand","plugins","editor"];var Na,Ma;Na=La,Ma=186,function(t){for(;--t;)Na.push(Na.shift())}(++Ma);const wa=function(t,e){return La[t-=0]};class Oa extends t.Plugin{static get[wa("0x0")](){return[Bx]}[wa("0x1")](){const t=this[wa("0x5")];t[wa("0x4")].has("TableCaptionEditing")&&t.plugins[wa("0x2")]("TrackChangesEditing")[wa("0x3")]("toggleTableCaption")}}const Fa=["numbered","*Format:* set order to regular","listStart","_getSuggestionBlocksForListStyle","format","TrackChangesEditing","handleListReversedCommand","reversed","bind","config","editor","startIndex","listType","*Format:* set start index to %0","isListItemBlock","listStyle","handleListStyleCommand","selection","type","toUpperCase","getSelectedBlocks","commandName","list.properties","has","*Change to:* %0","from","expandListBlocksToCompleteList","_descriptionFactory","get","handleListStartCommand","document","replace","getAttribute","length","DocumentListPropertiesUtils","handleDescriptions","locale","DocumentListUtils","ELEMENT_","_getSuggestionBlocks","plugins","change","listReversed","commandParams","styles","_LIST_","enableCommand","markMultiRangeBlockFormat","model","_getTranslationKeyForListStyle","push","filter"];var Pa,Da;Pa=Fa,Da=202,function(t){for(;--t;)Pa.push(Pa.shift())}(++Da);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{afterInit(){if(!this[Ba("0x10")][Ba("0x2e")][Ba("0x1d")]("DocumentListPropertiesEditing"))return;const t=this[Ba("0x10")][Ba("0xf")][Ba("0x22")](Ba("0x1c")),e=this[Ba("0x10")][Ba("0x2e")][Ba("0x22")](Ba("0xb"));t[Ba("0x32")]&&e[Ba("0x0")](Ba("0x15"),this.handleListStyleCommand[Ba("0xe")](this)),t[Ba("0xd")]&&e.enableCommand(Ba("0x30"),this[Ba("0xc")][Ba("0xe")](this)),t[Ba("0x11")]&&e[Ba("0x0")](Ba("0x8"),this.handleListStartCommand[Ba("0xe")](this)),e[Ba("0x21")].registerDescriptionCallback(this.handleDescriptions[Ba("0xe")](this))}[Ba("0x16")](t,e={}){const n=this[Ba("0x10")][Ba("0x2e")][Ba("0x22")](Ba("0xb")),o=this[Ba("0x9")]();this[Ba("0x10")].model[Ba("0x2f")]((()=>{n[Ba("0x1")](o,{commandName:Ba("0x15"),commandParams:[{type:e[Ba("0x18")]}],formatGroupId:Ba("0x15")})}))}[Ba("0xc")](t,e={}){const n=this[Ba("0x10")][Ba("0x2e")][Ba("0x22")](Ba("0xb")),o=this.editor[Ba("0x2e")].get(Ba("0x2b")),s=this._getSuggestionBlocks((t=>o[Ba("0x14")](t)&&Ba("0x6")===t.getAttribute(Ba("0x12"))));null!==s&&this[Ba("0x10")][Ba("0x2")][Ba("0x2f")]((()=>{n[Ba("0x1")](s,{commandName:Ba("0x30"),commandParams:[{reversed:e[Ba("0xd")]}],formatGroupId:Ba("0x30")})}))}[Ba("0x23")](t,e={}){const n=this[Ba("0x10")].plugins[Ba("0x22")](Ba("0xb")),o=this.editor[Ba("0x2e")][Ba("0x22")]("DocumentListUtils"),s=this._getSuggestionBlocks((t=>o[Ba("0x14")](t)&&Ba("0x6")===t[Ba("0x26")](Ba("0x12"))));null!==s&&this[Ba("0x10")].model.change((()=>{n[Ba("0x1")](s,{commandName:Ba("0x8"),commandParams:[{startIndex:e[Ba("0x11")]}],formatGroupId:Ba("0x8")})}))}[Ba("0x29")](t){const e=this[Ba("0x10")][Ba("0x2a")],{data:n}=t;if(!n)return;let o,s;switch(n[Ba("0x1b")]){case"listStyle":o=Ba("0x1e"),s={type:Ba("0xa"),content:Yo(e,o,Yo(e,this[Ba("0x3")](n[Ba("0x31")][0][Ba("0x18")])))};break;case Ba("0x30"):o=n[Ba("0x31")][0][Ba("0xd")]?"*Format:* set order to reversed":Ba("0x7"),s={type:Ba("0xa"),content:Yo(e,o)};break;case Ba("0x8"):o=Ba("0x13"),s={type:Ba("0xa"),content:Yo(e,o,n.commandParams[0][Ba("0x11")])}}return s}[Ba("0x9")](){const t=this.editor.plugins.get(Ba("0x2b"));let e=Array[Ba("0x1f")](this[Ba("0x10")].model[Ba("0x24")][Ba("0x17")][Ba("0x1a")]());return e[Ba("0x4")](...t[Ba("0x20")](e)),e=[...new Set(e)],e}[Ba("0x2d")](t){const e=this[Ba("0x10")].plugins[Ba("0x22")]("DocumentListUtils");let n=Array.from(this[Ba("0x10")][Ba("0x2")][Ba("0x24")].selection[Ba("0x1a")]())[Ba("0x5")](t);if(!n[Ba("0x27")])return null;n=e[Ba("0x20")](n);const o=[];for(const t of n)e.isFirstBlockOfListItem(t)&&o.push(t);return o}_getTranslationKeyForListStyle(t){return Ba("0x2c")+this[Ba("0x10")][Ba("0x2e")][Ba("0x22")](Ba("0x28")).getListTypeFromListStyleType(t)[Ba("0x19")]()+Ba("0x33")+t[Ba("0x19")]()[Ba("0x25")](/-/g,"_")}}const Ua=["tableCellBorderStyle","accept","document","tableCellVerticalAlignment","setAttribute","handleSuggestionDescription","TrackChangesEditing","plugins","get","registerDescriptionCallback","change","TableUtils","tableCellHorizontalAlignment","getSuggestions","commandParams","tableCellWidth","subType","has","formatBlock","handleDiscardAction","*Format:* change table properties","TableCellPropertiesEditing","removeAttribute","tableCellProperties","start","table","join","registerCustomCallback","enableCommand","tableCellBorderColor","tableCellBackgroundColor","_suggestionFactory","enqueueChange","_handlePropertyChange","editor","selection","getAttribute","getSuggestionCallback","getFirstPosition","nodeAfter","locale","TrackChangesTableProperties","tableCellBorderWidth","discard","pluginName","tableProperties","tableHeight","*Format:* change table cell properties","tableBorderColor","getContainedElement","TablePropertiesEditing","tableWidth","model","data","format","_getSuggestion"];var Ga,Ha;Ga=Ua,Ha=431,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const za=function(t,e){return Ua[t-=0]};class Wa extends t.Plugin{constructor(t){super(t),this[za("0x6")]=[za("0x9"),"tableBorderStyle","tableBorderWidth","tableAlignment",za("0xc"),za("0x7"),"tableBackgroundColor"],this.tableCellProperties=[za("0x2e"),za("0x11"),za("0x3"),"tableCellPadding",za("0x20"),"tableCellHeight",za("0x2f"),za("0x1d"),za("0x14")]}static get[za("0x5")](){return za("0x2")}afterInit(){const t=this[za("0x33")][za("0x18")][za("0x19")](za("0x17"));if(this[za("0x33")][za("0x18")].has(za("0xb"))){for(const e of this[za("0x6")])t[za("0x2d")](e,((t,n)=>{const o=this[za("0x33")][za("0xd")][za("0x13")].selection[za("0x37")]().findAncestor(za("0x2a"));this[za("0x32")](e,[o],this[za("0x6")],za("0x6"),t,n)}));t[za("0x30")][za("0x2c")](za("0x23"),"tableProperties",za("0x12"),t[za("0x30")][za("0x36")]("formatBlock",null,"discard")),t[za("0x30")][za("0x2c")]("formatBlock",za("0x6"),za("0x4"),((t,e)=>this[za("0x24")](this.tableProperties,t,e))),t[za("0x30")][za("0x2c")](za("0x23"),za("0x6"),"join",(()=>!1))}if(this[za("0x33")].plugins[za("0x22")](za("0x26"))){for(const e of this[za("0x28")])t[za("0x2d")](e,((t,n)=>{const o=this[za("0x33")].plugins.get(za("0x1c")).getSelectionAffectedTableCells(this[za("0x33")][za("0xd")][za("0x13")][za("0x34")]);this[za("0x32")](e,o,this[za("0x28")],"tableCellProperties",t,n)}));t[za("0x30")].registerCustomCallback(za("0x23"),za("0x28"),za("0x12"),t._suggestionFactory[za("0x36")]("formatBlock",null,za("0x4"))),t[za("0x30")][za("0x2c")](za("0x23"),za("0x28"),za("0x4"),((t,e)=>this[za("0x24")](this[za("0x28")],t,e))),t[za("0x30")].registerCustomCallback("formatBlock",za("0x28"),za("0x2b"),(()=>!1))}t._descriptionFactory[za("0x1a")]((t=>this[za("0x16")](t)))}_handlePropertyChange(t,e,n,o,s,r){const i=this[za("0x33")][za("0x18")][za("0x19")](za("0x17"));this[za("0x33")].model[za("0x31")](r.batch,(()=>{for(const t of e)if(this[za("0x10")](t,o))s(r);else{const e={};for(const o of n){const n=t[za("0x35")](o);void 0!==n&&(e[o]=n)}s(r),i.markBlockFormat(t,{commandParams:[e]},[],o)}}))}[za("0x24")](t,e,n){const o=e[0][za("0x29")][za("0x0")],s=n[za("0x1f")][0];this[za("0x33")][za("0xd")][za("0x1b")]((e=>{for(const n of t)void 0!==s[n]?e[za("0x15")](n,s[n],o):e[za("0x27")](n,o)}))}[za("0x16")](t){if(t[za("0xe")])switch(t.subType){case za("0x6"):return{type:"format",content:Yo(this.editor[za("0x1")],za("0x25"))};case"tableCellProperties":return{type:za("0xf"),content:Yo(this.editor.locale,za("0x8"))}}}[za("0x10")](t,e){const n=this[za("0x33")][za("0x18")][za("0x19")]("TrackChangesEditing");for(const o of n[za("0x1e")]({skipNotAttached:!0})){const n=o[za("0xa")]();if(o[za("0x21")]===e&&n===t)return o}return null}}const Va=["mapper","addClass","_findSuggestions","assign","delete","addRange","getSuggestionCallback","getAttribute","for","low","containsPosition","addMarker","ck-suggestion-marker--active","options","formatGroupId","error-saving-suggestion-data-suggestion-discarded","name","trackChanges.trackFormatChanges","_checkSuggestionCorrectness","trackChanges.mergeNestedSuggestions","push","stopListening","has","markerReady","root","Users","formatBlock","_createSuggestion","getShiftedBy","_breakSuggestionMarker","data-suggestion","ready","_addSuggestionMarker","containsRangeInObject","formatBlock:","type","createRangeIn","deleteContent","containsRange","insertion","getUser","getRanges","isCollapsed","consumable","define","_customCallbacks","splice","editingDowncast","collaboration.channelId","isAfter","isIntersectingWithRange","external:","hasComments","backward","_isDataLoaded","element","toViewElement","reconvertMarker","insertion:discard","isBefore","catch","parent","formatInline:","_defaultCallbacks","acceptAllSuggestions","fetchCommentThread","always","TrackChangesEditing","stop","remove","formatInline:accept","removeComment","showSuggestionHighlights","isBlock","formatBlock:discard","isUndo","setAttribute","_adapter","marker-count","editor","_rangeIsInLocalUserInsertion","length","_getAuthorFromId","getAllAdjacentSuggestions","documentSelection","model","isOwn","accept","value","isAtEnd","applyOperation","change:_saved","trackChangesCommand","commands","activeMarkers","_getSuggestionData","PendingActions","_cutOutSuggestionMarker","position","formatInline","getMultiRangeId","plugins","sort","widget","after","_splitMarkerName","getLastMatchingPosition","acceptSelectedSuggestions","ck-suggestion-marker-","chain","discardSelectedSuggestions","track-changes-adapter-already-set","locale","setSelection","subType","execute","getSuggestions","_joinSuggestions","_model","track-changes-suggestion-not-found","dataToMarker","createdAt","previous","_joinWithAdjacentSuggestions","skipNestingCheck","isTouching","end","createRange","rejected","removed","insertContent","listenTo","splitPosition","range","_commentsRepository","removeMarker","setTo","isAtStart","map","creator","containsItem","fire","multipleBlocks","multi","markInsertion","suggestionChanged","_registerDefaultCallbacks","tablePasteChainId","addMarkerName","includes","isLimit","isLocal","adapter","getWalker","join","enableCommand","values","_setSuggestionRange","from","formatInline:chain","formatBlock:accept","_trackFormatChanges","markInlineFormat","conversion","_refreshSuggestionsChain","registerCustomCallback","suggestionLoaded","open","attributes","some","dataReady","forward","addMarker:suggestion","formatInline:discard","getSuggestion","getFirstRange","_suggestionFactory","update:suggestion","data","clear","size","addSuggestionData","isInContent","item","init","detach","elementEnd","add","getChangedMarkers","addSuggestion","set","enableReadOnlyMode","_descriptionFactory","change","@external","markDeletion","formatBlock:join","enqueueChange","unbindElementFromMarkerName","rootName","nodeBefore","pluginName","_suggestionState","addComment","ck-suggestion-marker-formatBlock","author","isInsideObject","move","trackChanges","markerToData","deletion","suggestion","default","_editor","newRange","removeAttribute","getItems","deletion:join","createPositionAt","markers","markerNameToElements","buildSuggestion","removeMarker:suggestion:formatBlock","change:activeMarkers","isObject","never","_suggestions","formatInline:join","removeClass","_handleNewSuggestionMarker","document","_saved","getAncestors","insertion:accept","substr","filter","_addThreadToSuggestion","CommentsRepository","addMarker:suggestion:formatBlock","consume","getCustomProperty","getFirstMarker","every","addHighlight","discard","bindElementToMarker","ck-suggestion-marker","split","_setSuggestionData","deletion:chain","authoredAt","deletion:","toJSON","return","keys","get","_enabledCommands","oldRange","accepted","originalSuggestionId","insertion:","$graveyard","getRange","then","requires","hasSuggestion","markerToHighlight","updateSuggestion","_isForcedDefaultExecutionBlock","isNextTo","normal","removeMarkers","high","containerElement","insert","acceptSuggestion","editing","forceDefaultExecution","getNearestSelectionRange","isRemovable","batch","markMultiRangeDeletion","start","_getExternalAuthor","howMany","writer","registerPostFixer","highest","fromRange","track-changes-user-not-found","schema","nodeAfter","unbind","selection","updateMarker","lowest","group","_updateSuggestionData","config","differ","dataDowncast","markBlockFormat","isEqual","getMarkers","getIntersection","createSelection","deletion:accept","markerName","isMultiRange","notReady","deletion:discard","discardAllSuggestions","_mergeNestedSuggestions","next","commentThread"];var Ka,qa;Ka=Va,qa=437,function(t){for(;--t;)Ka.push(Ka.shift())}(++qa);const Xa=function(t,e){return Va[t-=0]};class $a extends t.Plugin{static get[Xa("0x8e")](){return["CommentsRepository",r.Users,t.PendingActions,cs,ms,Rs,Ms,Bs,zs,$s,er,ir,ja,dr,pr,yr,Ir,Fr,Gr,Kr,Jr,ni,xi,di,pi,Ci,Ri,Mi,ji,Wi,$i,tx,rx,ux,px,Cx,Ix,wx,Bx,Wx,$x,Oa,na,ca,Ea,Wa,ma,ka,Sa]}static get[Xa("0x4f")](){return Xa("0x104")}constructor(t){function e(t){return t[Xa("0x10")]((t=>String.fromCharCode(t)))[Xa("0x20")]("")}super(t),this.set("activeMarkers",[]),this.on(Xa("0x65"),((e,n,o,s)=>{this[Xa("0x137")].change((()=>{for(const e of[...s,...o])this[Xa("0x137")][Xa("0x61")][Xa("0xd7")](e)&&t[Xa("0x9a")][Xa("0xfa")](e)}))})),this[Xa("0x46")]=new ss(this[Xa("0x110")][Xa("0x116")].schema,this[Xa("0x110")][Xa("0x131")]),this[Xa("0x10e")]=null,this[Xa("0x36")]=new Qa(this.editor),this[Xa("0x68")]=new Map,this[Xa("0xc")]=t[Xa("0x126")][Xa("0x85")]("CommentsRepository"),this[Xa("0x86")]=new Set,this[Xa("0x137")]=this[Xa("0x110")][Xa("0x116")],this[Xa("0x50")]=new WeakMap,this[Xa("0x92")]=!1,t.config[Xa("0xed")](Xa("0xd2"),Xa("0x5a")),this[Xa("0x27")]=t[Xa("0xb0")][Xa("0x85")](Xa("0xd2")),t[Xa("0xb0")][Xa("0xed")](Xa("0xd4"),!0),this[Xa("0xbe")]=t[Xa("0xb0")][Xa("0x85")](Xa("0xd4")),this[Xa("0x11d")]=new d(t,this[Xa("0x86")]),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,48,48,56])}[Xa("0x3e")](){const t=this[Xa("0x110")];t[Xa("0x29")][Xa("0xc9")](Xa("0xf0")).markerToHighlight({model:"suggestion",view:t=>{const{id:e,type:n}=this[Xa("0x12a")](t.markerName),o=[Xa("0x7c"),Xa("0x12d")+n];let s=3e3;return this[Xa("0x11f")][Xa("0x1b")](t[Xa("0xb9")])&&(o[Xa("0xd5")](Xa("0xcd")),s=3010),Xa("0x58")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[Xa("0x29")][Xa("0xc9")](Xa("0xb2"))[Xa("0x41")]((e=>{e.on(Xa("0x32"),((e,n,o)=>{if(!o.options[Xa("0x109")])return;const s=n.item;if(!s)return;const r=o[Xa("0xc1")][Xa("0xf9")](s);t[Xa("0x116")].schema.isObject(s)&&r&&!r[Xa("0x76")](Xa("0x128"))&&r.is(Xa("0x97"))&&(0,x.toWidget)(r,o[Xa("0xa3")])}),{priority:Xa("0x96")})})),t[Xa("0x29")][Xa("0xc9")]("dataDowncast")[Xa("0x90")]({model:Xa("0x59"),view:(t,e)=>{if(!e[Xa("0xce")][Xa("0x109")])return null;const{type:n}=this[Xa("0x12a")](t[Xa("0xb9")]);return{classes:["ck-suggestion-marker",Xa("0x12d")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o.item)return;if(o[Xa("0x3d")].is(Xa("0xab")))return void s[Xa("0xec")][Xa("0x75")](o[Xa("0x3d")],n.name);const r=s[Xa("0xc1")].toViewElement(o[Xa("0x3d")]);if(!o[Xa("0x3d")].is(Xa("0xf8"))||!t.model[Xa("0xa8")][Xa("0x10a")](o[Xa("0x3d")])||r.getCustomProperty(Xa("0x79")))return;const{id:i}=this[Xa("0x12a")](o[Xa("0xb9")]);s[Xa("0xa3")][Xa("0xc2")]([Xa("0x7c"),Xa("0x52")],r),s[Xa("0xa3")][Xa("0x10d")]("data-suggestion",i,r),s.mapper[Xa("0x7b")](r,o[Xa("0xb9")]),e&&(this[Xa("0x11f")].includes(o[Xa("0xb9")])?s[Xa("0xa3")][Xa("0xc2")](Xa("0xcd"),r):s[Xa("0xa3")][Xa("0x6a")](Xa("0xcd"),r));for(const e of t.model[Xa("0xe5")](o[Xa("0x3d")])[Xa("0x5e")]())s[Xa("0xec")][Xa("0x75")](e,n[Xa("0xd1")]);s.consumable[Xa("0x75")](o[Xa("0x3d")],n[Xa("0xd1")])};t[Xa("0x29")][Xa("0xc9")](Xa("0xb2"))[Xa("0x41")]((t=>{t.on(Xa("0x74"),((t,e,o)=>{o[Xa("0xce")][Xa("0x109")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:Xa("0xa5")})})),t.conversion.for("dataDowncast")[Xa("0x57")]({model:"suggestion",view:(t,e)=>e[Xa("0xce")][Xa("0x109")]?null:{group:Xa("0x59"),name:t[Xa("0x70")](11)}}),t.conversion[Xa("0xc9")]("upcast").elementToElement({view:{name:Xa("0x59"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n="suggestion:"+t[Xa("0xc8")]("suggestion-type")+":"+t.getAttribute("id");return t[Xa("0xc8")](Xa("0x10f"))&&(n+=":"+t[Xa("0xc8")](Xa("0x10f"))),e.createElement("$marker",{"data-name":n})}}),t[Xa("0x29")].for("upcast")[Xa("0x139")]({view:Xa("0x59")}),t[Xa("0x29")][Xa("0xc9")](Xa("0xf0"))[Xa("0x41")]((t=>{t.on("addMarker:suggestion:formatBlock",n(),{priority:Xa("0x96")})})),t[Xa("0x29")][Xa("0xc9")](Xa("0xf0"))[Xa("0x41")]((t=>{t.on(Xa("0x64"),((t,e,n)=>{const o=n.mapper[Xa("0x62")](e[Xa("0xb9")]);if(o)for(const t of o)t[Xa("0x76")](Xa("0x79"))||(n[Xa("0xa3")].removeClass([Xa("0x7c"),"ck-suggestion-marker-formatBlock",Xa("0xcd")],t),n[Xa("0xa3")][Xa("0x5d")](Xa("0xdf"),t),n[Xa("0xc1")][Xa("0x4c")](t,e.markerName))}),{priority:"high"})})),t[Xa("0x116")][Xa("0x6c")][Xa("0xa4")]((e=>{let n=!1;const o=Array[Xa("0x24")](t[Xa("0x116")].document[Xa("0xb1")][Xa("0x42")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this._splitMarkerName(x);if(Xa("0x59")!==o)continue;const u=this[Xa("0x68")].get(l);if(null!=a[Xa("0x5c")])if(Xa("0x124")==c&&(n=n||Ya(a[Xa("0x5c")],x,e,t[Xa("0x116")][Xa("0xa8")])),a[Xa("0x5c")].isCollapsed||Xa("0x8b")==a[Xa("0x5c")][Xa("0xd9")].rootName||Xa("0xdb")==c&&!ec(a[Xa("0x5c")])||"deletion"==c&&(Za(i=a[Xa("0x5c")])||(r=i)[Xa("0xa0")].parent==r[Xa("0x4")].nodeBefore&&r.start.isAtEnd))e[Xa("0xd")](x),n=!0;else{if(!u||!u[Xa("0x3c")])continue;s[Xa("0x41")](u)}}var r,i;return s.size>0&&(n=!!this._joinWithAdjacentSuggestions(s)||n),n})),t[Xa("0x116")][Xa("0x6c")][Xa("0xa4")]((e=>{let n=!1;for(const o of t[Xa("0x116")][Xa("0x6c")][Xa("0xb1")].getChanges()){if(Xa("0x98")!=o.type)continue;const s=o[Xa("0x123")][Xa("0xdd")](o.length);if(s[Xa("0x11a")])for(const r of this[Xa("0x68")][Xa("0x22")]()){if(r[Xa("0xba")]||!r[Xa("0x3c")])continue;if(Xa("0xdb")!=r[Xa("0xe4")])continue;const i=r[Xa("0x35")]();if(i.start[Xa("0xfe")]!=i[Xa("0x4")][Xa("0xfe")]&&i[Xa("0x4")][Xa("0xb4")](o[Xa("0x123")])){const o=t[Xa("0x116")][Xa("0x5")](i[Xa("0xa0")],s);e.updateMarker(r[Xa("0x77")](),{range:o}),n=!0}}}return n})),t[Xa("0x116")][Xa("0x61")].on(Xa("0x37"),((t,e,n)=>{if(null==n){const{id:t}=this._splitMarkerName(e[Xa("0xd1")]),n=this[Xa("0x68")][Xa("0x85")](t);n&&n[Xa("0x1a")](e[Xa("0xd1")])}})),t[Xa("0x116")][Xa("0x6c")].on("change:data",(()=>{const e=Array[Xa("0x24")](t.model[Xa("0x6c")][Xa("0xb1")][Xa("0x42")]())[Xa("0x71")]((t=>"suggestion"===this[Xa("0x12a")](t.name)[Xa("0xae")]));if(0===e[Xa("0x112")])return;e[Xa("0x127")](((t,e)=>{const n=t[Xa("0x38")].oldRange,o=e[Xa("0x38")][Xa("0x87")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[Xa("0xa0")][Xa("0xfc")](o[Xa("0xa0")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this._splitMarkerName(t);if(null===s[Xa("0x87")]){const e=this[Xa("0x6b")](t);o[Xa("0x41")](e)}else{const t=this[Xa("0x68")][Xa("0x85")](e);null!==s[Xa("0x5c")]||t.isInContent?(n[Xa("0x41")](t.head),o[Xa("0x41")](t)):this._removeSuggestion(t)}}o[Xa("0x3a")]>0&&this._refreshSuggestionsChain(o);for(const t of n)this[Xa("0x13")](Xa("0x17"),t)})),t[Xa("0x116")].on(Xa("0x11b"),((e,n)=>{const o=n[0];if(!this[Xa("0x68")][Xa("0x3a")])return;if(!o.isDocumentOperation)return;if(o[Xa("0x9e")][Xa("0x10c")]||!o.batch[Xa("0x1d")])return;let s,r;switch(o[Xa("0xe4")]){case Xa("0x98"):s=t[Xa("0x116")][Xa("0x60")](o.position),r=s[Xa("0xdd")](o[Xa("0xa2")]);break;case Xa("0x7d"):s=t.model[Xa("0x60")](o[Xa("0xa")]),r=t[Xa("0x116")].createPositionAt(o.moveTargetPosition);break;case Xa("0x55"):s=t.model[Xa("0x60")](o.targetPosition),r=s[Xa("0xdd")](o.howMany);break;default:return}const i=t[Xa("0x116")][Xa("0x5")](s,r);t[Xa("0x116")].change((()=>{for(const{suggestion:t,meta:e}of this[Xa("0xc3")](i)){if(t[Xa("0xba")])continue;if("formatInline"==t[Xa("0xe4")])continue;const n=t.data&&t.data[Xa("0x14")];(Xa("0xdb")!=t.type||"split"==o[Xa("0xe4")]&&!n)&&(e[Xa("0xe2")]||Xa("0xe8")==t[Xa("0xe4")]&&e.isOwn||t[Xa("0x35")]().containsRange(i)&&this._breakSuggestionMarker(t,s,r))}}))}),{priority:Xa("0xad")}),t[Xa("0x116")].on(Xa("0xe6"),((e,n)=>{const o=n[0],s=n[1];if(s&&s[Xa("0x9b")])return;if(this[Xa("0x92")])return;if(!this[Xa("0x11d")].value)return;if(o[Xa("0xeb")])return;const r=t[Xa("0x116")].schema,{start:i,end:x}=o[Xa("0x35")](),a=i[Xa("0xa9")]&&r[Xa("0x1c")](i[Xa("0xa9")])?null:r[Xa("0x9c")](i,Xa("0x31")),c=x[Xa("0x4e")]&&r[Xa("0x1c")](x[Xa("0x4e")])?null:r[Xa("0x9c")](x,Xa("0xf6")),l=t[Xa("0x116")][Xa("0x5")](a?a[Xa("0xa0")]:i,c?c.end:x);t[Xa("0x116")][Xa("0x47")]((e=>{this[Xa("0x49")](l);const n=t.model[Xa("0xa8")][Xa("0x9c")](l.start);o.is(Xa("0x115"))?e.setSelection(n):o[Xa("0xe")](n)})),e[Xa("0x105")]()}),{priority:e.priorities[Xa("0x94")]+10}),t.model.on(Xa("0x8"),((e,n)=>{const o=n[n[Xa("0x112")]-1];o&&o[Xa("0x9b")]||this[Xa("0x92")]||this[Xa("0x11d")][Xa("0x119")]&&(t.model[Xa("0x47")]((()=>{let o=t[Xa("0x116")].insertContent(n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[Xa("0x83")]=o.clone();const s=o[Xa("0x4")][Xa("0x4e")],r=t[Xa("0x116")][Xa("0xa8")];s&&r.isBlock(s)&&!r[Xa("0x66")](s)&&(o=t.model[Xa("0x5")](o[Xa("0xa0")],t.model.createPositionAt(s,Xa("0x4")))),this.markInsertion(o)})),e[Xa("0x105")]())}),{priority:Xa("0x96")}),this[Xa("0x110")][Xa("0x11e")].add(Xa("0x56"),this[Xa("0x11d")]),this[Xa("0x21")](Xa("0x56"));const o=new p(t,this._suggestions);t[Xa("0x11e")].add("acceptSuggestion",o),this.enableCommand(Xa("0x99"));const s=new C(t,this[Xa("0x68")]);t[Xa("0x11e")][Xa("0x41")]("discardSuggestion",s),this[Xa("0x21")]("discardSuggestion"),t[Xa("0x11e")].add(Xa("0x101"),new F(t,o,this[Xa("0x68")])),this[Xa("0x21")](Xa("0x101")),t[Xa("0x11e")][Xa("0x41")](Xa("0xbd"),new F(t,s,this[Xa("0x68")])),this.enableCommand(Xa("0xbd")),t[Xa("0x11e")][Xa("0x41")](Xa("0x12c"),new U(t,o,this[Xa("0x68")])),this[Xa("0x21")](Xa("0x12c")),t[Xa("0x11e")][Xa("0x41")](Xa("0x12f"),new U(t,s,this[Xa("0x68")])),this[Xa("0x21")](Xa("0x12f"));const r=t[Xa("0x126")].get(Xa("0x73"));this[Xa("0x9")](r,Xa("0x51"),((t,{threadId:e})=>{const n=this[Xa("0x68")][Xa("0x85")](e);n&&n[Xa("0xc0")]&&1===n[Xa("0xc0")][Xa("0x112")]&&this._updateSuggestionData(e,{hasComments:!0})}),{priority:Xa("0xca")}),this[Xa("0x9")](r,Xa("0x108"),((t,{threadId:e})=>{const n=this._suggestions[Xa("0x85")](e);n&&n[Xa("0xc0")]&&!n[Xa("0xc0")][Xa("0x112")]&&this[Xa("0xaf")](e,{hasComments:!1})}),{priority:"low"})}set[Xa("0x1e")](t){if(this[Xa("0x10e")])throw new e.CKEditorError(Xa("0x130"),this);this[Xa("0x10e")]=t}get adapter(){return this[Xa("0x10e")]}[Xa("0x135")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[Xa("0x68")].values())t&&!e[Xa("0x3c")]||n[Xa("0xd5")](e);return e?n[Xa("0x10")]((t=>t[Xa("0x82")]())):n}[Xa("0x34")](t){const n=this[Xa("0x68")][Xa("0x85")](t);if(!n)throw new e.CKEditorError(Xa("0x138"),this);return n}[Xa("0x8f")](t){return this[Xa("0x68")][Xa("0xd7")](t)}[Xa("0x3b")](t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[Xa("0xe4")].split(":"),i=this[Xa("0x68")][Xa("0x85")](n)||this[Xa("0xdc")](s,r,n,e,o);if(this[Xa("0x72")](i),this[Xa("0xd3")](i,s,r||null,e),i[Xa("0x13a")]=t[Xa("0x13a")],i[Xa("0xf7")]=!0,o&&o[Xa("0x48")]){const t=o[Xa("0x48")],e=this[Xa("0xa1")](t.authorName);i[Xa("0x80")]=t.createdAt,i[Xa("0x53")]=e,i.isExternal=!0}else i[Xa("0x80")]=t[Xa("0x13a")];switch(t[Xa("0x38")]&&(i[Xa("0x38")]=t[Xa("0x38")]),t[Xa("0x2e")]&&(i.attributes=t[Xa("0x2e")]),this[Xa("0x10e")]&&this._adapter.addSuggestion||(i[Xa("0x6d")]=!0),this[Xa("0x50")][Xa("0x85")](i)){case"notReady":this._suggestionState[Xa("0x44")](i,Xa("0x30"));break;case Xa("0xd8"):i[Xa("0x3c")]?(this._refreshSuggestionsChain(new Set([i])),this[Xa("0x1")](new Set([i])),this[Xa("0x50")][Xa("0x44")](i,Xa("0xe0")),this[Xa("0x13")](Xa("0x2c"),i)):this[Xa("0x50")][Xa("0x44")](i,Xa("0x7"))}return i}[Xa("0x99")](t){this[Xa("0x9b")]((()=>{this.editor[Xa("0x116")][Xa("0x47")]((()=>{for(const e of t.getAllAdjacentSuggestions())e[Xa("0x118")]()}))}))}discardSuggestion(t){this[Xa("0x9b")]((()=>{this.editor.model[Xa("0x47")]((()=>{for(const e of t[Xa("0x114")]())e[Xa("0x7a")]()}))}))}[Xa("0x21")](t,n){const o=this[Xa("0x110")][Xa("0x11e")].get(t);if(!o)throw new e.CKEditorError("track-changes-command-not-found",this,{commandName:t});this[Xa("0x86")][Xa("0x41")](o),n&&o.on(Xa("0x134"),((t,e)=>{this.trackChangesCommand[Xa("0x119")]&&(this[Xa("0x92")]||e[Xa("0x112")]>0&&e[e.length-1]&&e[e[Xa("0x112")]-1][Xa("0x9b")]||(n(((...t)=>o[Xa("0x134")](...t,{forceDefaultExecution:!0})),...e),t[Xa("0x105")]()))}),{priority:Xa("0x96")})}[Xa("0x9b")](t){let n,o;const s=this._isForcedDefaultExecutionBlock;this[Xa("0x92")]=!0;try{n=t()}catch(t){o=t}return s||(this[Xa("0x92")]=!1),o&&e.CKEditorError.rethrowUnexpectedError(o,this),n}[Xa("0x16")](t,n=null,o={}){if(t[Xa("0xeb")])return null;const s=this.editor[Xa("0x126")][Xa("0x85")](Xa("0xda")).me;for(const{suggestion:e,meta:s}of this[Xa("0xc3")](t,Xa("0xe8")))if(s[Xa("0x117")]){if(!s[Xa("0x93")]){if(s.containsRangeInObject){if(!this[Xa("0xbe")]||!rc(e,o))continue;return e}if(rc(e,o))return e;this[Xa("0xde")](e,t.start,t.end);break}if(n==e[Xa("0x133")]&&rc(e,o)){const n=e[Xa("0x35")]();return n.start[Xa("0xb4")](t[Xa("0x4")])?this[Xa("0x23")](e,this[Xa("0x137")].createRange(t.start,n.end)):this[Xa("0x23")](e,this[Xa("0x137")].createRange(n[Xa("0xa0")],t[Xa("0x4")])),e}}const r=(0,e.uid)(),i=s.id,x=n?Xa("0x8a")+n:Xa("0xe8"),a=this[Xa("0x7e")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this._addSuggestionMarker(x,r,i,t),a}markMultiRangeInsertion(t,n=Xa("0x15"),o={}){const s=this[Xa("0x110")].plugins.get("Users").me,r=this[Xa("0x36")][Xa("0xc7")](Xa("0xe8"),n,Xa("0x20"));for(const e of this[Xa("0x135")]())if(e[Xa("0x53")].id==s.id&&"insertion"==e.type&&e[Xa("0x133")]==n&&rc(e,o)&&(r(e[Xa("0xea")](),t)||r(t,e[Xa("0xea")]()))){for(const n of t)e[Xa("0xc6")](n);return e}for(const{suggestion:e,meta:n}of this[Xa("0xc3")](t,Xa("0xe8"))){if(!n[Xa("0x117")])continue;if(!this[Xa("0xbe")]&&n[Xa("0xe2")])continue;if(!rc(e,o))continue;let s=!0;for(const n of e[Xa("0xea")]())for(const e of t)if(!n[Xa("0xe7")](e)){s=!1;break}if(s)return e}const i=(0,e.uid)(),x=s.id,a=Xa("0x8a")+n,c=this[Xa("0x7e")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[Xa("0xe1")](a,i,x,e,Zo[Xa("0x125")]());return c}[Xa("0x28")](t,n,o=null,s={}){if(o=o||tc(n),t[Xa("0xeb")])return null;if(Xa("0x67")===this[Xa("0x27")]){const e=this._suggestionFactory[Xa("0xc7")](Xa("0x124"),o,"accept");return this[Xa("0x9b")]((()=>e([t],n,s))),null}const r=this.editor[Xa("0x126")][Xa("0x85")](Xa("0xda")).me,i=[];if(Xa("0x103")!==this._trackFormatChanges)for(const{suggestion:e,meta:n}of this[Xa("0xc3")](t,Xa("0xe8")))n[Xa("0x117")]&&!n[Xa("0x54")]&&i[Xa("0xd5")](...e.getRanges());const x=function(t,e){const n=[];for(const o of e){const e=t[Xa("0xb6")](o);e&&n[Xa("0xd5")](e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[Xa("0x112")];){const o=n[e].getDifference(t);n[Xa("0xef")](e,1,...o),e+=o.length}}return n}(t,i);x.length&&this[Xa("0x137")][Xa("0x47")]((()=>{for(const t of x){const e=this[Xa("0x36")][Xa("0xc7")](Xa("0x124"),o,Xa("0x118"));this[Xa("0x9b")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t.start,a=t.end;for(const{suggestion:e,meta:n}of this[Xa("0xc3")](t,Xa("0x124"))){if(!n[Xa("0x117")])continue;if(e.subType!=o)continue;if(!rc(e,s))continue;const r=e[Xa("0x35")]();if(r[Xa("0xe7")](t,!0))return null;x=x.isBefore(r[Xa("0xa0")])?x:r[Xa("0xa0")],a=a[Xa("0xf2")](r[Xa("0x4")])?a:r[Xa("0x4")],i?r[Xa("0xa0")][Xa("0xfc")](i[Xa("0x35")]()[Xa("0xa0")])?(i.removeMarkers(),i=e):e[Xa("0x95")]():i=e}const c=this[Xa("0x137")][Xa("0x5")](x,a);if(i)this[Xa("0x23")](i,c);else{const t=(0,e.uid)(),i=r.id;this[Xa("0x7e")]({id:t,type:"formatInline:"+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[Xa("0xe1")](Xa("0xff")+o,t,i,c)}}return null}[Xa("0xb3")](t,n,o=[],s=null,r={}){n.formatGroupId||(n[Xa("0xcf")]=n.commandName),n[Xa("0x14")]=t.is("range"),s=s||tc(n);const i=o[Xa("0x10")]((t=>nc(t,this[Xa("0x137")]))),x=t.is("range")?t:nc(t,this[Xa("0x137")]);if(Xa("0x67")===this._trackFormatChanges){const t=this[Xa("0x36")].getSuggestionCallback(Xa("0xdb"),s,Xa("0x118"));return this[Xa("0x9b")]((()=>t([x],n,r))),null}i.push(x);let a=!0;for(const t of i)if(!this[Xa("0x111")](t)){a=!1;break}if(a&&Xa("0x103")!==this[Xa("0x27")]){const t=this._suggestionFactory[Xa("0xc7")](Xa("0xdb"),s,Xa("0x118"));return this[Xa("0x9b")]((()=>t([x],n,r))),null}let c=null,l=x[Xa("0xa0")],u=x[Xa("0x4")];for(const{suggestion:t,meta:e}of this[Xa("0xc3")](x,Xa("0xdb"))){if(!e[Xa("0x117")])continue;if(e[Xa("0x93")]||e[Xa("0xe2")]||e[Xa("0x54")])continue;if(t[Xa("0x38")][Xa("0xcf")]!=n.formatGroupId)continue;if(!rc(t,r))continue;const o=t.getFirstRange();if(t[Xa("0x133")]==s){if(o[Xa("0xe7")](x,!0))return null;l=l[Xa("0xfc")](o[Xa("0xa0")])?l:o.start,u=u.isAfter(o[Xa("0x4")])?u:o[Xa("0x4")],c?o.start.isBefore(c[Xa("0x35")]()[Xa("0xa0")])?(c[Xa("0x95")](),c=t):t[Xa("0x95")]():c=t}else{const e=x[Xa("0xb6")](o);this._cutOutSuggestionMarker(t,e)}}const d=this.editor[Xa("0x126")][Xa("0x85")]("Users").me,g=(0,e.uid)(),m=d.id;if(c)return this[Xa("0x23")](c,this._model[Xa("0x5")](l,u)),c;{const t=this[Xa("0x7e")]({id:g,type:Xa("0xe3")+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this._addSuggestionMarker("formatBlock:"+s,g,m,this[Xa("0x137")].createRange(l,u)),t}}markMultiRangeBlockFormat(t,n,o=[],s=null,r={}){n[Xa("0xcf")]||(n[Xa("0xcf")]=n.commandName);const i=t[0];n[Xa("0x14")]=i.is(Xa("0xb")),s=s||tc(n);const x=o.map((t=>nc(t,this[Xa("0x137")]))),a=i.is(Xa("0xb"))?t:t.map((t=>nc(t,this[Xa("0x137")])));if(Xa("0x67")===this[Xa("0x27")]){const t=this._suggestionFactory[Xa("0xc7")]("formatBlock",s,"accept");return this.forceDefaultExecution((()=>t(a,n,r))),null}x[Xa("0xd5")](...a);let c=!0;for(const t of x)if(!this[Xa("0x111")](t)){c=!1;break}if(c&&Xa("0x103")!==this[Xa("0x27")]){const t=this[Xa("0x36")].getSuggestionCallback(Xa("0xdb"),s,Xa("0x118"));return this[Xa("0x9b")]((()=>t(a,n,r))),null}const l=this[Xa("0x110")].plugins[Xa("0x85")](Xa("0xda")).me;for(const t of this[Xa("0x135")]()){if(t[Xa("0x53")].id!=l.id)continue;if(Xa("0xdb")!=t[Xa("0xe4")]||t[Xa("0x38")].formatGroupId!=n[Xa("0xcf")])continue;if(!rc(t,r))continue;const e=t[Xa("0x133")]==s;for(let n=0;n<a.length;n++){const o=a[n];for(const s of t[Xa("0xb5")]()){const r=s[Xa("0x8c")]();if(o[Xa("0xb4")](r)){e?(a[Xa("0xef")](n,1),n--):t[Xa("0xd")](s.name);break}}}}if(0==a[Xa("0x112")])return null;const u=this[Xa("0x36")][Xa("0xc7")](Xa("0xdb"),s,Xa("0x20"));for(const t of this[Xa("0x135")]())if(t[Xa("0x53")].id==l.id&&"formatBlock"==t[Xa("0xe4")]&&t[Xa("0x38")][Xa("0xcf")]==n[Xa("0xcf")]&&t[Xa("0x133")]==s&&rc(t,r)&&(u(t[Xa("0xea")](),a)||u(a,t.getRanges()))){for(const e of a)t[Xa("0xc6")](e);return t}const d=(0,e.uid)(),g=l.id,m=Xa("0xe3")+s,f=this[Xa("0x7e")]({id:d,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this._addSuggestionMarker(m,d,g,t,Zo.getMultiRangeId());return f}markDeletion(t,n=null,o={}){if(t[Xa("0xeb")])return null;const s=this[Xa("0x110")][Xa("0x126")][Xa("0x85")](Xa("0xda")).me,r=new i.LiveRange(t[Xa("0xa0")],t[Xa("0x4")]);for(const{suggestion:t,meta:e}of this[Xa("0xc3")](r,Xa("0xe8")))if(e.isOwn&&!e.isNextTo)if(t[Xa("0xba")]){const e=t[Xa("0xea")]().filter((t=>"$graveyard"!=t.root.rootName));if(e[Xa("0x78")]((t=>r[Xa("0xe7")](t,!0)))&&t.discard(),e.some((t=>t[Xa("0xe7")](r,!0)))){const t=this[Xa("0x36")][Xa("0xc7")]("deletion",n,Xa("0x118"));return this[Xa("0x9b")]((()=>t([r],null,o))),null}}else{const e=r.getIntersection(t[Xa("0x35")]());null!==e&&t._onDiscard([e],null,o)}if(r.detach(),r[Xa("0xeb")]||Xa("0x8b")==r.root.rootName)return null;let x=null,a=r[Xa("0xa0")],c=r.end;const l=this[Xa("0xc3")](r,Xa("0x58"));for(const{suggestion:t,meta:e}of l){const n=this._model.createRange(a,c);if(e[Xa("0x117")]&&(this[Xa("0xbe")]||!e[Xa("0xe2")]&&!e.isInsideObject))if(t[Xa("0xba")]){if(!rc(t,o))continue;let e=!0;for(const o of t.getRanges()){if(o.containsRange(n,!0))return t;n[Xa("0xe7")](o)||(e=!1)}e&&t[Xa("0x7a")]()}else{const e=t[Xa("0x35")]();if(e[Xa("0xe7")](n,!0))return t;if(!rc(t,o)){n[Xa("0xe7")](e)?t[Xa("0x95")]():e[Xa("0xcb")](a)?a=e[Xa("0x4")]:e[Xa("0xcb")](c)&&(c=e.start);continue}a=a[Xa("0xfc")](e[Xa("0xa0")])?a:e[Xa("0xa0")],c=c[Xa("0xf2")](e[Xa("0x4")])?c:e[Xa("0x4")],o=Object[Xa("0xc4")]({},t[Xa("0x2e")]),x?e.start.isBefore(x.getFirstRange()[Xa("0xa0")])?(x[Xa("0x95")](),x=t):t.removeMarkers():x=t}}if(x)return this[Xa("0x23")](x,this._model.createRange(a,c)),x;{const t=(0,e.uid)(),r=this[Xa("0x137")][Xa("0x5")](a,c),i=s.id,x=n?"deletion:"+n:Xa("0x58"),l=this[Xa("0x7e")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[Xa("0xe1")](x,t,i,r),l}}[Xa("0x9f")](t,n=Xa("0x15"),o={}){const s=this[Xa("0x110")][Xa("0x126")][Xa("0x85")](Xa("0xda")).me,r=t.map((t=>new i.LiveRange(t[Xa("0xa0")],t[Xa("0x4")]))),x=new Set;for(const{suggestion:t,meta:e}of this[Xa("0xc3")](r,Xa("0xe8")))e.isOwn&&!e[Xa("0x93")]&&x[Xa("0x41")](t);for(const e of x)if(e.isMultiRange){const s=e[Xa("0xea")]();if((!e.attributes||!e.attributes.skipNestingCheck)&&s[Xa("0x78")]((t=>r.some((e=>e[Xa("0xe7")](t,!0)))))&&e.discard(),r[Xa("0x78")]((t=>s[Xa("0x2f")]((e=>e[Xa("0xe7")](t,!0)))))){const e=this._suggestionFactory[Xa("0xc7")](Xa("0x58"),n,Xa("0x118"));return this[Xa("0x9b")]((()=>e(t,null,o))),null}}else{const t=e[Xa("0x35")]();if(r[Xa("0x2f")]((e=>e[Xa("0xe7")](t,!0)))&&e.discard(),r[Xa("0x78")]((e=>t[Xa("0xe7")](e,!0)))){const t=this[Xa("0x36")].getSuggestionCallback(Xa("0x58"),n,"accept");return this[Xa("0x9b")]((()=>t(r,null,o))),null}}const a=this[Xa("0x36")].getSuggestionCallback(Xa("0x58"),n,Xa("0x20"));let c=null;for(const t of this[Xa("0x135")]())if(t[Xa("0x53")].id==s.id&&t[Xa("0x3c")]&&Xa("0x58")==t.type&&t[Xa("0x133")]==n&&rc(t,o)&&(a(t.getRanges(),r)||a(r,t[Xa("0xea")]())))if(c){if(t.commentThread&&t[Xa("0xc0")][Xa("0x112")])continue;for(const e of t[Xa("0xea")]())c[Xa("0xf3")](e)||c[Xa("0xc6")](e);t[Xa("0x95")]()}else{c=t;for(const e of r)t[Xa("0xf3")](e)||t[Xa("0xc6")](e)}if(c)return c;x[Xa("0x39")]();for(const{suggestion:t,meta:e}of this[Xa("0xc3")](r,Xa("0x58")))e[Xa("0x117")]&&(this[Xa("0xbe")]||!e[Xa("0xe2")]&&!e[Xa("0x54")])&&rc(t,o)&&x[Xa("0x41")](t);for(const t of x){const e=t[Xa("0xea")]();if((!o||!o[Xa("0x2")])&&r[Xa("0x78")]((t=>e[Xa("0x2f")]((e=>e[Xa("0xe7")](t,!0))))))return t;(!t.attributes||!t[Xa("0x2e")][Xa("0x2")])&&e[Xa("0x78")]((t=>r[Xa("0x2f")]((e=>e[Xa("0xe7")](t,!0)))))&&t[Xa("0x7a")]()}const l=(0,e.uid)(),u=s.id,d=Xa("0x81")+n,g=this[Xa("0x7e")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of r)t[Xa("0x3f")](),t.isCollapsed||Xa("0x8b")==t.root.rootName||this._addSuggestionMarker(d,l,u,t,Zo.getMultiRangeId());return g}[Xa("0x23")](t,e){const n=t[Xa("0x77")]();this[Xa("0x137")].change((t=>{t.updateMarker(n,{range:e})}))}_addThreadToSuggestion(t){const e=t.id,n=this[Xa("0x110")][Xa("0xb0")][Xa("0x85")](Xa("0xf1"));this[Xa("0xc")].hasCommentThread(e)||this._commentsRepository.addCommentThread({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[Xa("0xc")].getCommentThread(e);o[Xa("0xaa")](Xa("0x9d")),o[Xa("0x9d")]=!1,t[Xa("0xc0")]=o}_checkSuggestionCorrectness(t,n,o,s){if(t[Xa("0xe4")]!=n||t[Xa("0x133")]!=o||t.creator.id!=s)throw this[Xa("0x110")][Xa("0x45")]("track-changes-suggestion-data-mismatch"),new e.CKEditorError("track-changes-suggestion-data-mismatch",this)}[Xa("0x122")](t,n){const o=t[Xa("0x35")]();if(n[Xa("0xb4")](o))t[Xa("0x95")]();else if(o[Xa("0xe7")](n)){const s=this[Xa("0x137")][Xa("0x60")](n[Xa("0xa0")][Xa("0x4e")],Xa("0x4"));this._setSuggestionRange(t,this[Xa("0x137")][Xa("0x5")](o.start,s));const r=(0,e.uid)(),i=t[Xa("0x11")].id,x=t[Xa("0xe4")]+":"+t[Xa("0x133")];this._setSuggestionData({id:r,type:x,createdAt:new Date,authorId:i,data:t[Xa("0x38")],attributes:t[Xa("0x2e")]});const a=this[Xa("0x137")][Xa("0x60")](n[Xa("0x4")][Xa("0xfe")],Xa("0x129")),c=this[Xa("0x137")][Xa("0x5")](a,o.end);this[Xa("0xe1")](x,r,i,c)}else if(o.containsPosition(n[Xa("0xa0")])){const e=this._model.createPositionAt(n[Xa("0xa0")][Xa("0x4e")],"end");this[Xa("0x23")](t,this._model.createRange(o[Xa("0xa0")],e))}else{const e=this[Xa("0x137")][Xa("0x60")](n[Xa("0x4")][Xa("0xfe")],Xa("0x129"));this[Xa("0x23")](t,this._model[Xa("0x5")](e,o.end))}}[Xa("0x111")](t){for(const{suggestion:e,meta:n}of this[Xa("0xc3")](t,Xa("0xe8"))){if(!n.isOwn)continue;const o=e[Xa("0xea")]();for(const e of o)if(!t.getDifference(e)[Xa("0x112")])return!0}return!1}_getAuthorFromId(t){const n=this[Xa("0x110")][Xa("0x126")][Xa("0x85")]("Users")[Xa("0xe9")](t);if(!n)throw new e.CKEditorError(Xa("0xa7"),this);return n}_getExternalAuthor(t){const e=this[Xa("0x110")][Xa("0x126")][Xa("0x85")](Xa("0xda")),n=(0,r.hashObject)(Xa("0xf4")+t);return e[Xa("0xe9")](n)||e.addUser({id:n,name:t})}_createSuggestion(t,e,n,o,s){const r=this[Xa("0x113")](o),i=this[Xa("0x36")][Xa("0x63")](t,e,n,r,s,(t=>this[Xa("0xaf")](n,{attributes:t})));return this[Xa("0x9")](i,Xa("0x118"),(()=>{this._updateSuggestionData(n,{state:Xa("0x88")})}),{priority:Xa("0x96")}),this[Xa("0x9")](i,Xa("0x7a"),(()=>{this[Xa("0xaf")](n,{state:Xa("0x6")})}),{priority:Xa("0x96")}),this[Xa("0x68")].set(n,i),this[Xa("0x50")][Xa("0x44")](i,Xa("0xbb")),i}[Xa("0x12a")](t){const e=t[Xa("0x7d")](":");return{group:e[0],type:e[1],subType:e.length>=5?e[2]:null,id:e.length<5?e[2]:e[3],authorId:e[Xa("0x112")]<5?e[3]:e[4],markerCount:6==e[Xa("0x112")]?e[5]:null}}[Xa("0xde")](t,n,o){const s=t[Xa("0x35")](),r=s[Xa("0xa0")],i=s.end;this[Xa("0x23")](t,this[Xa("0x137")][Xa("0x5")](r,n));const x=(0,e.uid)(),a=t[Xa("0x11")].id,c=t[Xa("0xe4")]+(t[Xa("0x133")]?":"+t[Xa("0x133")]:"");this[Xa("0x7e")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[Xa("0x2e")],data:t[Xa("0x38")]}),"formatBlock"==t.type&&(o=this._model.createPositionBefore(o.parent)),this[Xa("0xe1")](c,x,a,this._model.createRange(o,i))}[Xa("0xc3")](t,e=null){const n=[],o=this[Xa("0x110")][Xa("0x126")][Xa("0x85")](Xa("0xda")).me;Array.isArray(t)||(t=[t]);for(const s of this[Xa("0x135")]()){if(!s.isInContent)continue;if(e&&s.type!=e)continue;let r=!1;for(const e of s[Xa("0xea")]()){for(const i of t){const t=i[Xa("0xa0")][Xa("0xb4")](e[Xa("0x4")])||i.end.isEqual(e[Xa("0xa0")]);if(t||i[Xa("0xb6")](e)){const x=i[Xa("0xe7")](e)&&Ja(this[Xa("0x137")][Xa("0xa8")],e.start,i),a=e[Xa("0xe7")](i)&&Ja(this[Xa("0x137")][Xa("0xa8")],i.start,e);n[Xa("0xd5")]({suggestion:s,meta:{isOwn:o==s[Xa("0x53")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),r=!0;break}}if(r)break}}return n}[Xa("0xe1")](t,e,n,o,s){this[Xa("0x137")][Xa("0x47")]((r=>{let i="suggestion:"+t+":"+e+":"+n;s&&(i=i+":"+s),r[Xa("0xcc")](i,{range:o,usingOperation:!0,affectsData:!0})}))}_removeSuggestion(t){const e=t[Xa("0x0")],n=t.next;t[Xa("0x0")]=null,null!=e&&(e.next=null),t[Xa("0xbf")]=null,null!=n&&(n.previous=null),"ready"==this[Xa("0x50")][Xa("0x85")](t)&&(this._suggestionState[Xa("0x44")](t,Xa("0x7")),this[Xa("0x13")]("suggestionUnloaded",t,e,n))}[Xa("0x7e")](t){const n=t.id,o=this[Xa("0x3b")](t);if(this[Xa("0x10e")]&&this[Xa("0x10e")][Xa("0x43")]){const s=this[Xa("0x110")][Xa("0x126")][Xa("0x85")]("PendingActions"),r=o[Xa("0xf5")],i=o[Xa("0x133")]?o.type+":"+o[Xa("0x133")]:o[Xa("0xe4")],x=this[Xa("0x110")][Xa("0x131")],a=s[Xa("0x41")](Yo(x,"PENDING_ACTION_SUGGESTION")),c={id:n,type:i,hasComments:r,data:t.data||null,originalSuggestionId:t[Xa("0x89")]||null,attributes:o[Xa("0x2e")]};this[Xa("0x10e")][Xa("0x43")](c)[Xa("0x8d")]((t=>{o[Xa("0x6d")]=!0,s.remove(a),t&&t.createdAt&&(this[Xa("0x68")][Xa("0x85")](n)[Xa("0x13a")]=t[Xa("0x13a")])}))[Xa("0xfd")]((t=>{throw(0,e.logWarning)(Xa("0xd0")),this[Xa("0x110")][Xa("0x116")][Xa("0x4b")]({isUndoable:!1},(()=>{o[Xa("0x7a")]()})),o[Xa("0xd6")](),this[Xa("0x68")][Xa("0xc5")](o.id),this[Xa("0x50")][Xa("0xc5")](o),t}))}return o}[Xa("0xaf")](t,e){const n=this[Xa("0x110")][Xa("0x126")][Xa("0x85")](Xa("0x121")),o=this.getSuggestion(t);if(this[Xa("0x10e")]&&this[Xa("0x10e")].updateSuggestion)if(o._saved){const o=n[Xa("0x41")](Yo(this[Xa("0x110")].locale,"PENDING_ACTION_SUGGESTION"));this._adapter[Xa("0x91")](t,e)[Xa("0x8d")]((()=>{n[Xa("0x106")](o)}))}else o.on(Xa("0x11c"),(()=>{this[Xa("0xaf")](t,e)}))}[Xa("0x120")](t){if(!this[Xa("0x10e")]||!this._adapter[Xa("0x34")])throw new e.CKEditorError("track-changes-adapter-missing-getsuggestion",this);return this[Xa("0x10e")].getSuggestion(t)}[Xa("0x6b")](t){const{id:e,type:n,subType:o,authorId:s}=this[Xa("0x12a")](t),r=this._suggestions.get(e)||this[Xa("0xdc")](n,o,e,s,{});switch(this[Xa("0xd3")](r,n,o,s),this._suggestionState.get(r)){case Xa("0xbb"):this[Xa("0x120")](e)[Xa("0x8d")]((t=>{let n=Promise.resolve();t[Xa("0xf5")]&&(n=this[Xa("0xc")][Xa("0x102")]({channelId:this[Xa("0x110")][Xa("0xb0")].get(Xa("0xf1")),threadId:e})),n[Xa("0x8d")]((()=>{this.addSuggestionData(t)[Xa("0x6d")]=!0}))})),this._suggestionState[Xa("0x44")](r,Xa("0xd8"));break;case Xa("0x7"):this[Xa("0xaf")](e,{state:Xa("0x2d")});case Xa("0x30"):this[Xa("0x50")][Xa("0x44")](r,"ready"),this.fire(Xa("0x2c"),r);break;case Xa("0xe0"):this.fire(Xa("0x17"),r)}return r.addMarkerName(t),r}[Xa("0x2a")](t){const e=Array[Xa("0x24")](t)[Xa("0x71")]((t=>!t[Xa("0xba")])),n=this[Xa("0x135")]({skipNotAttached:!0})[Xa("0x71")]((t=>!t[Xa("0xba")])),o=n[Xa("0x71")]((e=>!t[Xa("0xd7")](e))),s=new Map(n[Xa("0x10")]((t=>[t,this._suggestionFactory[Xa("0xc7")](t[Xa("0xe4")],t[Xa("0x133")],Xa("0x12e"))]))),r=new Map(n[Xa("0x10")]((t=>[t,t[Xa("0x35")]()]))),i=new Set,x=new Set;for(let t=0;t<e[Xa("0x112")];t++)a(e[t],e,t+1);for(let t=0;t<e[Xa("0x112")];t++)a(e[t],o,0);for(let t=0;t<e.length;t++){const n=e[t];!x[Xa("0xd7")](n)&&n[Xa("0x0")]&&(n[Xa("0x0")][Xa("0xbf")]===n&&(n.previous.next=null),n[Xa("0x0")]=null),!i[Xa("0xd7")](n)&&n[Xa("0xbf")]&&(n[Xa("0xbf")][Xa("0x0")]===n&&(n[Xa("0xbf")][Xa("0x0")]=null),n.next=null)}function a(t,e,n){for(let o=n;o<e[Xa("0x112")];o++){const n=c(t,e[o]);n&&(n[0][Xa("0xbf")]=n[1],n[1][Xa("0x0")]=n[0],i[Xa("0x41")](n[0]),x[Xa("0x41")](n[1]))}}function c(t,e){if(t.author.id!==e[Xa("0x53")].id)return null;const n=s[Xa("0x85")](t)(t,e,r[Xa("0x85")](t),r.get(e));return n&&s.get(e)(t,e,r.get(t),r[Xa("0x85")](e))?n[1][Xa("0xc0")]&&n[1].commentThread[Xa("0x112")]?null:n:null}}[Xa("0x1")](t){const e=Array.from(t),n=this[Xa("0x135")]({skipNotAttached:!0}),o=n[Xa("0x71")]((e=>!t[Xa("0xd7")](e))),s=new Map(e[Xa("0x10")]((t=>[t,this[Xa("0x36")][Xa("0xc7")](t[Xa("0xe4")],t[Xa("0x133")],Xa("0x20"))]))),r=new Map(n.map((t=>[t,t[Xa("0xea")]()])));for(let t=0;t<e[Xa("0x112")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e.length;t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n[Xa("0x112")];i++){const o=n[i];if(o[Xa("0xe4")]!==e[Xa("0xe4")]||o[Xa("0x53")].id!==e[Xa("0x53")].id||o[Xa("0x133")]!==e.subType)continue;if(!sc(e,o))continue;const x=s[Xa("0x85")](e),a=r[Xa("0x85")](e),c=r[Xa("0x85")](o),l=e[Xa("0xc0")]&&e.commentThread.length,u=o[Xa("0xc0")]&&o[Xa("0xc0")][Xa("0x112")];if(!l&&x(c,a))return t[Xa("0x136")](o,e),r.delete(e),!0;if(!u&&x(a,c))return t[Xa("0x136")](e,o),r.delete(o),!0}return!1}}_joinSuggestions(t,e){if(t[Xa("0xba")])for(const n of e[Xa("0xea")]())t.addRange(n);else{const n=e[Xa("0x35")]()[Xa("0x4")];this[Xa("0x23")](t,this[Xa("0x137")][Xa("0x5")](t[Xa("0x35")]()[Xa("0xa0")],n))}e[Xa("0x95")]()}}class Qa{constructor(t){this[Xa("0x5b")]=t,this[Xa("0x137")]=t.model,this[Xa("0xee")]=new Map,this[Xa("0x100")]=new Map,this[Xa("0x18")]()}[Xa("0x63")](t,e,n,o,s,r){return new Zo(this[Xa("0x137")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[Xa("0xc7")](t,e,Xa("0x118"))(...n),onDiscard:(...n)=>this[Xa("0xc7")](t,e,Xa("0x7a"))(...n)})}[Xa("0x2b")](t,e,n,o){const s=t+":"+e+":"+n;this[Xa("0xee")][Xa("0x44")](s,o)}getSuggestionCallback(t,e,n){const o=t+":"+e+":"+n;return this[Xa("0xee")][Xa("0x85")](o)||this._defaultCallbacks[Xa("0x85")](t+":"+n)}[Xa("0x18")](){const t=()=>!1,e=t=>{t[Xa("0x127")](((t,e)=>t[Xa("0xa0")][Xa("0xfc")](e[Xa("0xa0")])?1:-1)),this[Xa("0x137")][Xa("0x47")]((e=>{for(const n of t){let t;t=n[Xa("0x4")][Xa("0x11a")]&&n.end[Xa("0xfe")]==n.start[Xa("0xa9")]?e[Xa("0xb7")](n[Xa("0xa0")][Xa("0xa9")],"on"):e[Xa("0xb7")](n),this._model[Xa("0xe6")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[Xa("0x137")][Xa("0x47")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[Xa("0x10")]((t=>(Za(t)&&(t=this[Xa("0x137")][Xa("0x5")](t[Xa("0x4")])),t)))[Xa("0x71")]((t=>Xa("0x8b")!==t[Xa("0xd9")][Xa("0x4d")]));if(r[Xa("0x112")]<1)return;const x=Array[Xa("0x24")](this[Xa("0x137")][Xa("0x6c")][Xa("0xab")].getRanges())[Xa("0x10")]((t=>i.LiveRange[Xa("0xa6")](t)));n.setSelection(r);for(const t of this[Xa("0x5b")][Xa("0x11e")].commands())t.refresh();s[Xa("0xd5")]({forceDefaultExecution:!0}),this[Xa("0x5b")][Xa("0x134")](o,...s);const a=x.filter((t=>Xa("0x8b")!=t.root.rootName));a[Xa("0x112")]>0&&n[Xa("0x132")](a);for(const t of x)t[Xa("0x3f")]()}))},o=(t,e)=>1==t.length&&1==e[Xa("0x112")]&&t[0].end[Xa("0xb4")](e[0][Xa("0xa0")]),s=(t,e,n,o)=>oc(t,e,n,o,this._model)?[t,e]:oc(e,t,o,n,this[Xa("0x137")])?[e,t]:null;this._defaultCallbacks.set(Xa("0x6f"),t),this[Xa("0x100")][Xa("0x44")](Xa("0xfb"),e),this[Xa("0x100")].set("insertion:join",o),this._defaultCallbacks[Xa("0x44")]("insertion:chain",s),this[Xa("0x100")][Xa("0x44")](Xa("0xb8"),e),this[Xa("0x100")][Xa("0x44")](Xa("0xbc"),t),this[Xa("0x100")][Xa("0x44")](Xa("0x5f"),o),this[Xa("0x100")][Xa("0x44")](Xa("0x7f"),s),this[Xa("0x100")][Xa("0x44")](Xa("0x107"),n),this._defaultCallbacks[Xa("0x44")](Xa("0x33"),t),this[Xa("0x100")].set(Xa("0x69"),o),this[Xa("0x100")].set(Xa("0x25"),t),this[Xa("0x100")][Xa("0x44")](Xa("0x26"),n),this[Xa("0x100")][Xa("0x44")](Xa("0x10b"),t),this[Xa("0x100")].set(Xa("0x4a"),o),this[Xa("0x100")][Xa("0x44")]("formatBlock:chain",t)}}function Ja(t,e,n){for(const o of e[Xa("0xfe")][Xa("0x6e")]({includeSelf:!0,parentFirst:!0})){if(o[Xa("0xd9")]==o)return!1;if(!n[Xa("0x12")](o))return!1;if(t[Xa("0x66")](o)||t.isLimit(o))return!0}return!1}function Za(t){return t.end.parent==t.start[Xa("0xa9")]&&t[Xa("0x4")][Xa("0xf")]}function Ya(t,e,n,o){const s=t=>!t[Xa("0x3d")].is("$textProxy")&&!o[Xa("0x66")](t[Xa("0x3d")]),r=t.start[Xa("0x12b")](s),i=t[Xa("0x4")].getLastMatchingPosition(s,{direction:Xa("0xf6")});return!(t[Xa("0xa0")].isEqual(r)&&t[Xa("0x4")][Xa("0xb4")](i)||(r[Xa("0xfc")](i)?n[Xa("0xac")](e,{range:n.createRange(r,i)}):n[Xa("0xd")](e),0))}function tc(t){return(0,r.hashObject)(t)}function ec(t){const e=t[Xa("0xa0")].nodeAfter;return e&&e.is("element")}function nc(t,e){const n=e[Xa("0xa8")][Xa("0x66")](t)||e[Xa("0xa8")].isSelectable(t);return e.createRange(e.createPositionAt(t,"before"),n?e.createPositionAfter(t):e[Xa("0x60")](t,Xa("0x4")))}function oc(t,e,n,o,s){if(!sc(t,e))return!1;if(n[Xa("0x4")][Xa("0xb4")](o[Xa("0xa0")]))return!0;if(t.type!=e[Xa("0xe4")])return!1;if(!n[Xa("0x4")][Xa("0x3")](o.start))return!1;const r=s[Xa("0x5")](n[Xa("0x4")],o[Xa("0xa0")])[Xa("0x1f")]();for(const t of r)if(["elementStart",Xa("0x40")][Xa("0x1b")](t[Xa("0xe4")])&&s.schema[Xa("0x1c")](t[Xa("0x3d")]))return!1;return!0}function sc(t,e){return!(!t[Xa("0xf7")]||!e[Xa("0xf7")])&&Go(t.attributes,e[Xa("0x2e")])}function rc(t,e){const n=ic(t.attributes),o=ic(e);if(!t._isDataLoaded)return!1;for(const t of Object[Xa("0x84")](o))if(!Go(n[t],o[t]))return!1;return!0}function ic(t){const e=Object[Xa("0xc4")]({},t);return delete e[Xa("0x2")],delete e[Xa("0x19")],e}const xc=["_removePendingAction","listenTo","commands","acceptSuggestion","_setPendingAction","destroy","canEditAt","_editor","_pendingAction","view","bind","get","plugins","PENDING_ACTION_SUGGESTION","add","discardSuggestion","canAccept","unbind","_discardCommand","PendingActions","model","isEnabled","locale","execute","canDiscard","commentThreadController","isDirty","_acceptCommand","stopListening","getRanges"];var ac,cc;ac=xc,cc=237,function(t){for(;--t;)ac.push(ac.shift())}(++cc);const lc=function(t,e){return xc[t-=0]};class uc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[lc("0x17")]=e,this[lc("0xc")]=n,this[lc("0x1c")]=o,this[lc("0xa")]=t,this._acceptCommand=t[lc("0x5")][lc("0xe")](lc("0x6")),this[lc("0x15")]=t[lc("0x5")][lc("0xe")](lc("0x12")),this.view[lc("0xd")](lc("0x18")).to(this[lc("0x0")],this._discardCommand,((t,e)=>t||e)),this[lc("0xc")].bind("canAccept").to(this[lc("0x0")],lc("0x18"),(t=>t&&this._editor[lc("0x17")].canEditAt(e[lc("0x2")]()))),this[lc("0xc")][lc("0xd")](lc("0x1b")).to(this[lc("0x15")],lc("0x18"),(t=>t&&this[lc("0xa")][lc("0x17")][lc("0x9")](e.getRanges()))),this[lc("0xb")]=null,n[lc("0x1d")]&&this[lc("0x7")](),this[lc("0x4")](n,lc("0x6"),(()=>this.acceptSuggestion())),this[lc("0x4")](n,"discardSuggestion",(()=>this[lc("0x12")]())),this.listenTo(n,"change:isDirty",(()=>{n[lc("0x1d")]?this[lc("0x7")]():this[lc("0x3")]()}))}acceptSuggestion(){this[lc("0x0")][lc("0x1a")](this[lc("0x17")].id)}[lc("0x12")](){this[lc("0x15")][lc("0x1a")](this.model.id)}[lc("0x8")](){this[lc("0xc")][lc("0x14")](lc("0x18")),this.view.unbind(lc("0x13")),this[lc("0xc")][lc("0x14")](lc("0x1b")),this[lc("0x1")](),this[lc("0x1c")][lc("0x8")](),this[lc("0xb")]&&this[lc("0x3")]()}[lc("0x7")](){const t=Yo(this[lc("0xa")][lc("0x19")],lc("0x10"));this._pendingAction=this._editor[lc("0xf")].get(lc("0x16"))[lc("0x11")](t)}_removePendingAction(){null!==this[lc("0xb")]&&this[lc("0xa")][lc("0xf")][lc("0xe")](lc("0x16")).remove(this[lc("0xb")]),this[lc("0xb")]=null}}const dc=["showInput","assign","CommentView","locale","delegate","canAccept","hasDirtyComment","updateComment","descriptionParts","bind","_createCommentThreadInputView","_model","destroy","fire","value","authoredAt","isActive","disableComments","set","submit","focus","_createCommentViews","removeComment","disabledSubmit","isReadOnly","_config","length","isDirty","commentsListView","isEnabled","commentInputView","commentThread","commentThreadInputView","addComment","setData"];var gc,mc;gc=dc,mc=220,function(t){for(;--t;)gc.push(gc.shift())}(++mc);const fc=function(t,e){return dc[t-=0]};class hc extends s.View{constructor(t,e,n,o){super(t),this[fc("0x12")]=null,this[fc("0x16")]=null,this.set(fc("0x6"),!1),this[fc("0x8")](fc("0x5"),e[fc("0x5")]),this[fc("0x22")](fc("0x5")).to(e),this[fc("0x8")](fc("0x21"),[]),this[fc("0x8")](fc("0x11"),!1),this[fc("0x8")](fc("0x13"),!1),this[fc("0x8")](fc("0x1e"),!1),this[fc("0x8")]("canDiscard",!1),this[fc("0x1")]=e,this._localUser=n,this[fc("0xf")]=o,o[fc("0x7")]?this[fc("0x8")](fc("0x10"),1):this[fc("0xb")]()}focus(){this.element[fc("0xa")]()}[fc("0x2")](){this[fc("0x12")]&&this[fc("0x12")][fc("0x2")](),this.commentThreadInputView&&this[fc("0x16")].destroy(),super[fc("0x2")]()}[fc("0xb")](){const{CommentsListView:t}=this[fc("0xf")];this[fc("0x12")]=new t(this.locale,this._model.commentThread,Object[fc("0x1a")]({CommentView:this[fc("0xf")][fc("0x1b")]},this._config)),this[fc("0x12")][fc("0x1d")](fc("0xc")).to(this),this[fc("0x12")][fc("0x1d")](fc("0x20")).to(this),this[fc("0x12")][fc("0x22")](fc("0x6")).to(this),this[fc("0x8")](fc("0x10"),this[fc("0x12")][fc("0x10")]+1),this.bind("length").to(this.commentsListView,"length",(t=>t+1)),this.commentThreadInputView=this[fc("0x0")](),this.on(fc("0xc"),(()=>this[fc("0xa")]())),this[fc("0x22")](fc("0x11")).to(this.commentsListView,fc("0x1f"),this[fc("0x16")].commentInputView,fc("0x4"),((t,e)=>t||!!e))}[fc("0x0")](){const{CommentThreadInputView:t}=this[fc("0xf")],e=new t(this[fc("0x1c")],this._localUser,this[fc("0xf")].editorConfig),n=e[fc("0x14")];return e[fc("0x22")](fc("0x19")).to(this,fc("0x6"),this[fc("0x1")].commentThread,fc("0xe"),n,fc("0x4"),((t,e,n)=>!!n||t&&!e)),n.on(fc("0x9"),((t,e)=>{this[fc("0x3")](fc("0x17"),e),n.editor[fc("0x18")]("")})),n.on("cancel",(()=>this[fc("0xa")]())),n[fc("0x22")](fc("0xd")).to(this[fc("0x1")][fc("0x15")],fc("0xe")),e}}const pc=["bindTemplate","extendTemplate",'"></span>',"ck-suggestion","ck-annotation__user","authoredAt","userView","_config","locale","children","querySelector","set","commentThreadInputView","formatDateTime","getExternalSuggestionNote","change:description","ck-suggestion__user","source","ck-suggestion--accept","value","EXTERNAL_IMPORT_WORD_AVATAR","map","<p>","ck-suggestion-wrapper--active","ck-suggestion-","span","execute","discardButton","discardSuggestion","attributes","render","isExternal","element",'" title="',"ck-annotation__actions","acceptSuggestion","_createButton","_descriptionElement","ck-suggestion__info-name","delegate","descriptionParts","name",".ck-annotation__content-wrapper","author",'<span class="ck-suggestion-type">',"content","bind","innerHTML","ck-suggestion--discard","canDiscard","editorReady","EXTERNAL_AVATAR","description","type","ck-suggestion__info","getTemplate","commentThread","div","creator","join","editorDestroyed","split","ck-annotation__content-wrapper","isEnabled","disableComments","ck-comment__info-time","ck-annotation__info-name","acceptButton","importWord","@external","EXTERNAL_IMPORT_WORD_SUGGESTION","getUserViewNotificationText","isActive","Discard suggestion",'<span class="ck-suggestion-color" style="background-color: ',"</span>","commentsListView","_model"];var bc,Ec;bc=pc,Ec=393,function(t){for(;--t;)bc.push(bc.shift())}(++Ec);const _c=function(t,e){return pc[t-=0]};class Tc extends hc{constructor(e,n,o,s){super(e,n,o,s),this[_c("0x8")](_c("0x32"),""),this[_c("0x2b")](_c("0x32")).to(this,_c("0x25"),(t=>t&&t[0]?t[0].type:"")),this[_c("0x2b")](_c("0x31")).to(this,_c("0x25"),this,_c("0x45"),((t,e)=>{let n="";for(const e of t)n+=_c("0x13")+Cc(e[_c("0x2a")],e.color)+"</p>";return e?n:(0,r.trimHtml)(n,{limit:140})})),this[_c("0x22")]=null,this.acceptButton=this[_c("0x21")](Yo(e,"Accept suggestion"),t.icons.check,_c("0xf"),_c("0x20"),"sw"),this.acceptButton[_c("0x2b")](_c("0x3c")).to(this,"canAccept"),this.discardButton=this[_c("0x21")](Yo(e,_c("0x46")),t.icons.cancel,_c("0x2d"),_c("0x19"),"sw"),this[_c("0x18")][_c("0x2b")]("isEnabled").to(this,_c("0x2e")),this.userView=new r.UserView(e,this[_c("0x4a")][_c("0x28")],this[_c("0x44")]()),this[_c("0x3")][_c("0x4c")]({attributes:{class:[_c("0xd"),_c("0x1")]}}),this.setTemplate(this[_c("0x34")]())}[_c("0x34")](){const t=this[_c("0x4b")],e=[{tag:_c("0x36"),attributes:{class:[_c("0x33"),"ck-annotation__info"]},children:[{tag:_c("0x16"),children:[{text:this[_c("0x3")][_c("0x26")]}],attributes:{class:[_c("0x23"),_c("0x3f")]}},{tag:"time",attributes:{datetime:t.to(_c("0x2")),class:[_c("0x3e"),"ck-annotation__info-time"]},children:[{text:t.to(_c("0x2"),(t=>this[_c("0x4")][_c("0xa")](t)))}]}]},{tag:_c("0x36"),attributes:{class:["ck-suggestion__actions",_c("0x1f")]},children:[this[_c("0x40")],this.discardButton]},{tag:"div",attributes:{class:[_c("0x3b")]}}];this[_c("0x4a")].isExternal&&e.push({tag:_c("0x36"),attributes:{class:["ck-comment__external"]},children:[{text:this[_c("0xb")]()}]});const n={tag:"div",attributes:{class:["ck-suggestion-wrapper",t.if(_c("0x45"),_c("0x14")),t.to(_c("0x32"),(t=>_c("0x15")+t)),this[_c("0x4")][_c("0x3d")]&&"ck-suggestion--disabled-comments"],"data-suggestion-id":this._model.id,"data-thread-id":this[_c("0x4a")][_c("0x35")].id,"data-author-id":this._model[_c("0x28")].id,tabindex:-1},children:[{tag:_c("0x36"),attributes:{class:[_c("0x0"),"ck-annotation"]},children:[this.userView,{tag:_c("0x36"),attributes:{class:["ck-suggestion__main","ck-annotation__main"]},children:e}]}]};return this[_c("0x49")]&&this[_c("0x9")]&&(n[_c("0x6")].push(this[_c("0x49")],this[_c("0x9")]),this[_c("0x49")].delegate(_c("0x2f")).to(this),this[_c("0x49")][_c("0x24")]("editorDestroyed").to(this),this[_c("0x9")][_c("0x24")](_c("0x2f")).to(this),this[_c("0x9")][_c("0x24")](_c("0x39")).to(this)),n}[_c("0x1b")](){super[_c("0x1b")](),this[_c("0x22")]=this[_c("0x1d")][_c("0x7")](_c("0x27")),this._descriptionElement.innerHTML=this[_c("0x31")],this.on(_c("0xc"),((t,e,n)=>{this._descriptionElement.innerHTML=n}))}_createButton(t,e,n,o,r){const i=new s.ButtonView(this[_c("0x5")]);return i[_c("0x8")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i.extendTemplate({attributes:{class:n}}),i.on(_c("0x17"),(()=>{this.fire(o,this._model.id)})),i}[_c("0xb")](){return _c("0x41")===this[_c("0x4a")][_c("0x1a")][_c("0x42")][_c("0xe")]?Yo(this[_c("0x5")],_c("0x43")):Yo(this[_c("0x5")],"EXTERNAL_SUGGESTION")}[_c("0x44")](){return this[_c("0x4a")][_c("0x1c")]?_c("0x41")===this[_c("0x4a")][_c("0x1a")]["@external"][_c("0xe")]?Yo(this.locale,_c("0x11"),this[_c("0x4a")][_c("0x37")][_c("0x26")]):Yo(this.locale,_c("0x30"),this._model[_c("0x37")][_c("0x26")]):null}}function Cc(t,e){let n="";return n+=t[_c("0x3a")]("*")[_c("0x12")](((t,e)=>e%2!=0?_c("0x29")+yc(t)+_c("0x48"):yc(t)))[_c("0x38")](""),e&&(n+=_c("0x47")+e[_c("0x10")]+_c("0x1e")+e.title+_c("0x4d")),n}function yc(t){const e=document.createElement(_c("0x16"));return e.innerText=t,e[_c("0x2c")]}const kc=["map","mainView","createAnnotationView","size","model","trackChanges.disableComments","suggestionLoaded","commentThread","commands","source","refreshSelectedViews","get","getJoined","separator","commandName","acceptSelectedSuggestions","_createUIButton","trackChanges.SuggestionThreadView","CommentsRepository","discardSelectedSuggestions","set","acceptAllSuggestions","_disableComments","actionView","discardAllSuggestions","from","registerAnnotation","_unbindEditors","unbind","change:activeAnnotations","TrackChangesEditing","remove","button","some","length","_suggestionToController","descriptionParts","addComment","isInContent","getRanges","_handleControllerBuffer","pluginName","focus","getMarkerNames","editor","hasSuggestion","add","_viewToController","componentFactory","type","comments.maxThreadTotalWeight","destroy","filter","trackChanges","discardButton","_handleSuggestionControllerDelayed","suggestionChanged","_destroyController","comments","_annotationViews","locale","push","lowest","addSourceCollector","stopListening","listenTo","has","previous","_refreshActiveMarkers","bind","head","view","change:previous","arrowView","Discard all suggestions","SuggestionThreadView","Annotations","_descriptionFactory","init","execute","toMany","comments.maxCommentCharsWhenCollapsed","CommentView","EditorAnnotations","buttonView","suggestion-","TrackChangesUI","getAllAdjacentSuggestions","activeMarkers","innerView","switchbutton","config","Discard all selected suggestions","Accept all suggestions","editing","values","_updateController","getSuggestion","isEnabled","isOn","plugins","isDirty","_initializeController","reduce","getDescriptions","createAnnotation","createCommentThreadController","isMultiRange","getFirstRange","Track changes"];var Ac,vc;Ac=kc,vc=411,function(t){for(;--t;)Ac.push(Ac.shift())}(++vc);const Rc=function(t,e){return kc[t-=0]};class Ic extends t.Plugin{static get requires(){return[$a,r.Users,Rc("0x2f"),Rc("0x69"),"EditorAnnotations"]}static get[Rc("0x46")](){return Rc("0x5")}constructor(t){super(t),this._suggestionToController=new Map,this._viewToController=new Map,this._annotationViews=new Map,this[Rc("0x45")]=new Map;const e=this.editor[Rc("0xa")];e.define(Rc("0x2e"),Tc),e.define(Rc("0x22"),!1),this[Rc("0x33")]=e.get("trackChanges.disableComments")}[Rc("0x54")](t,e){0===this[Rc("0x45")][Rc("0x20")]&&setTimeout((()=>{for(const[t,e]of this._handleControllerBuffer){const n=this._suggestionToController.has(t);n||e?n&&e&&this[Rc("0x56")](t):this[Rc("0x15")](t)}this[Rc("0x49")][Rc("0x13")].get(Rc("0x2"))[Rc("0x27")](),this[Rc("0x61")](),this[Rc("0x45")].clear()}),10),this._handleControllerBuffer[Rc("0x31")](t,e)}[Rc("0x6b")](){const t=this[Rc("0x49")],e=t.plugins[Rc("0x28")](Rc("0x3b")),n=t[Rc("0x13")][Rc("0x28")]("Annotations"),o=t[Rc("0x13")][Rc("0x28")](Rc("0x2")),s=t[Rc("0x13")][Rc("0x28")](Rc("0x2f"));t.ui[Rc("0x4d")][Rc("0x4b")]("trackChanges",(t=>this._createUIButton(t))),o[Rc("0x5c")]((()=>{const t=[];for(const[e,n]of Array[Rc("0x36")](this[Rc("0x40")])){const o=e[Rc("0x6")](),s=[];for(const t of o){if(!t[Rc("0x43")])continue;if(t[Rc("0x1a")]){s[Rc("0x5a")](...t[Rc("0x44")]());continue}const e=t[Rc("0x1b")]();if(s[Rc("0x3f")]>0){const t=s[0][Rc("0x29")](e);if(t){s[0]=t;continue}}s[Rc("0x5a")](e)}t[Rc("0x5a")]([n[Rc("0x64")],s])}return t})),this[Rc("0x5e")](e,Rc("0x23"),((t,e)=>{this.listenTo(e,Rc("0x65"),((t,n,o,s)=>{e[Rc("0x43")]&&(null==o?(this._updateController(s[Rc("0x63")]),this[Rc("0x54")](e,!1)):(this._updateController(o[Rc("0x63")]),this._handleSuggestionControllerDelayed(e,!0)))})),null===e[Rc("0x60")]?this[Rc("0x54")](e,!1):this[Rc("0xf")](e[Rc("0x63")])})),this[Rc("0x5e")](e,"suggestionUnloaded",((t,e,n)=>{this[Rc("0x5d")](e,Rc("0x65")),this._handleControllerBuffer.delete(e);const o=n?n.head:e,s=this[Rc("0x40")].get(o);null!==n&&this._updateController(o),null===n&&s&&this._destroyController(e)})),this.listenTo(e,Rc("0x55"),((t,e)=>{this._updateController(e)})),this[Rc("0x5e")](n,Rc("0x3a"),(()=>{this[Rc("0x61")]()})),this[Rc("0x5e")](s,Rc("0x42"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Rc("0x4a")](n))return;const s=e[Rc("0x10")](n);this[Rc("0x40")][Rc("0x28")](s)[Rc("0x64")][Rc("0x47")]()}),{priority:Rc("0x5b")})}[Rc("0x61")](){const t=this[Rc("0x49")][Rc("0x13")][Rc("0x28")]("Annotations"),e=this.editor[Rc("0x13")][Rc("0x28")](Rc("0x3b")),n=Array[Rc("0x36")](t.activeAnnotations,(t=>t[Rc("0x8")])).filter((t=>this._viewToController[Rc("0x5f")](t))),o=[];for(const t of n){const e=this[Rc("0x4c")][Rc("0x28")](t)[Rc("0x21")][Rc("0x6")]();o[Rc("0x5a")](...e[Rc("0x16")](((t,e)=>[...t,...e[Rc("0x48")]()]),[]))}e[Rc("0x7")]=o}[Rc("0x2d")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Rc("0x49")][Rc("0x25")][Rc("0x28")](Rc("0x52")),r=Yo(t,Rc("0x1c"));n[Rc("0x3")][Rc("0x31")]({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[Rc("0x3")].bind(Rc("0x12")).to(o,"value"),n[Rc("0x3")].on(Rc("0x6c"),(()=>{o.execute(),this.editor[Rc("0xd")][Rc("0x64")][Rc("0x47")]()}));const i=new e.Collection,x=[{type:Rc("0x9"),model:{withText:!0,label:r,commandName:Rc("0x52")}},{type:"separator"},{type:Rc("0x3d"),model:{withText:!0,label:Yo(t,Rc("0xc")),commandName:Rc("0x32")}},{type:"button",model:{withText:!0,label:Yo(t,"Accept all selected suggestions"),commandName:Rc("0x2c")}},{type:Rc("0x3d"),model:{withText:!0,label:Yo(t,Rc("0x67")),commandName:Rc("0x35")}},{type:Rc("0x3d"),model:{withText:!0,label:Yo(t,Rc("0xb")),commandName:Rc("0x30")}}];for(const t of x){let e={type:Rc("0x2a")};if(t[Rc("0x21")]){const n=new s.Model(t.model),o=this[Rc("0x49")][Rc("0x25")][Rc("0x28")](n[Rc("0x2b")]);n.bind("isOn",Rc("0x11")).to(o,"value","isEnabled"),e={type:t[Rc("0x4e")],model:n}}i[Rc("0x4b")](e)}(0,s.addListToDropdown)(n,i);const a=x[Rc("0x51")]((t=>null!=t.model))[Rc("0x1d")]((t=>this[Rc("0x49")][Rc("0x25")][Rc("0x28")](t[Rc("0x21")][Rc("0x2b")]))),c=n.buttonView;return c[Rc("0x34")][Rc("0x39")](Rc("0x11")),c[Rc("0x66")][Rc("0x39")](Rc("0x11")),c[Rc("0x34")][Rc("0x62")](Rc("0x11")).to(o,Rc("0x11")),c.arrowView[Rc("0x62")](Rc("0x11"))[Rc("0x6d")](a,"isEnabled",((...t)=>t[Rc("0x3e")]((t=>t)))),n.on(Rc("0x6c"),(t=>{this.editor[Rc("0x6c")](t[Rc("0x26")].commandName),this[Rc("0x49")][Rc("0xd")][Rc("0x64")][Rc("0x47")]()})),n}_initializeController(t){const e=this[Rc("0x49")],n=e[Rc("0xa")],o=e.plugins[Rc("0x28")]("Annotations"),s=e[Rc("0x13")][Rc("0x28")]("CommentsRepository"),i=e[Rc("0x13")][Rc("0x28")]("EditorAnnotations"),x=e[Rc("0x13")][Rc("0x28")](r.Users).me,a=n[Rc("0x28")](Rc("0x52"))[Rc("0x68")],{CommentsListView:c,CommentThreadInputView:l}=e[Rc("0x13")][Rc("0x28")]("CommentsUI");let u,d;this[Rc("0x58")][Rc("0x5f")](t.id)?(d=this[Rc("0x58")].get(t.id),u=d[Rc("0x1e")]):(u=new a(e[Rc("0x59")],t,x,{disableComments:this[Rc("0x33")],editorConfig:n.get("comments.editorConfig"),maxCommentsWhenCollapsed:n[Rc("0x28")]("comments.maxCommentsWhenCollapsed"),maxThreadTotalWeight:n[Rc("0x28")](Rc("0x4f")),maxCommentCharsWhenCollapsed:n[Rc("0x28")](Rc("0x0")),formatDateTime:(0,r.getDateTimeFormatter)(n[Rc("0x28")]("locale")),CommentView:n[Rc("0x28")](Rc("0x57"))[Rc("0x1")],CommentsListView:c,CommentThreadInputView:l}),u.acceptButton.on("execute",(()=>{e.editing.view[Rc("0x47")]()})),u[Rc("0x53")].on("execute",(()=>{e[Rc("0xd")][Rc("0x64")][Rc("0x47")]()})),d=o[Rc("0x1f")](this.editor.locale,u),d.bind(Rc("0x14")).to(u,"isDirty"),d[Rc("0x62")](Rc("0x3f")).to(u),d.bind(Rc("0x4e")).to(u,Rc("0x4e"),(t=>Rc("0x4")+t)),this[Rc("0x58")][Rc("0x31")](t.id,d));const g=s[Rc("0x19")](t[Rc("0x24")],u),m=new uc(e,t,u,g),f=t[Rc("0x6")]()[Rc("0x51")]((t=>t[Rc("0x43")]));u[Rc("0x41")]=e[Rc("0x13")][Rc("0x28")]("TrackChangesEditing")[Rc("0x6a")][Rc("0x17")](f),this[Rc("0x40")][Rc("0x31")](t,m),this[Rc("0x4c")].set(u,m);const h=o[Rc("0x18")]({view:d,target:()=>{const n=[],o=t.getAllAdjacentSuggestions()[Rc("0x51")]((t=>t.isInContent));for(const t of o)n[Rc("0x5a")](...t.getMarkers());return(0,r.getAllMarkersDomElementsSorted)(e[Rc("0xd")],n)},type:()=>Rc("0x4")+m[Rc("0x64")][Rc("0x4e")]});s._bindAnnotationToEditors(u,h),o.add(h),i[Rc("0x37")](h)}_destroyController(t){const e=this[Rc("0x49")][Rc("0x13")][Rc("0x28")]("CommentsRepository"),n=this[Rc("0x49")][Rc("0x13")][Rc("0x28")](Rc("0x69")),o=this[Rc("0x40")].get(t),s=o[Rc("0x64")],r=n.getByInnerView(s);e[Rc("0x38")](s),r&&n[Rc("0x3c")](r),this[Rc("0x40")].delete(t),this._viewToController.delete(s),o.destroy()}[Rc("0xf")](t){if(!t[Rc("0x43")]||!this[Rc("0x40")][Rc("0x5f")](t))return;const e=this[Rc("0x49")].plugins[Rc("0x28")](Rc("0x3b")),n=this._suggestionToController[Rc("0x28")](t),o=t[Rc("0x6")]();n.view[Rc("0x41")]=e[Rc("0x6a")].getDescriptions(o)}[Rc("0x50")](){for(const t of this[Rc("0x40")].keys())this._destroyController(t);for(const t of this[Rc("0x58")][Rc("0xe")]())t.mainView[Rc("0x50")]();super[Rc("0x50")]()}}var Sc,Lc,Nc=["plugins","adapter","TrackChanges","addSuggestion","get","pluginName","Comments","getSuggestions","addSuggestionData","editor","getSuggestion"];Sc=Nc,Lc=365,function(t){for(;--t;)Sc.push(Sc.shift())}(++Lc);var Mc=function(t,e){return Nc[t-=0]};class wc extends t.Plugin{static get requires(){return[$a,Ic,Mc("0x4")]}static get[Mc("0x3")](){return Mc("0x0")}set adapter(t){this[Mc("0x7")][Mc("0x9")].get($a)[Mc("0xa")]=t}get[Mc("0xa")](){return this[Mc("0x7")][Mc("0x9")][Mc("0x2")]($a)[Mc("0xa")]}[Mc("0x1")](t){return this[Mc("0x7")][Mc("0x9")][Mc("0x2")]($a)[Mc("0x6")](t)}[Mc("0x5")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[Mc("0x7")][Mc("0x9")][Mc("0x2")]($a).getSuggestions({skipNotAttached:t,toJSON:e})}[Mc("0x8")](t){return this[Mc("0x7")][Mc("0x9")].get($a)[Mc("0x8")](t)}}const Oc=["getDataWithDiscardedSuggestions","getRootsAttributes","users","constructor","editorCreator","set","pluginName","get","getRootNames","div","data","discardAllSuggestions","map","appendChild","document","CommentsRepository","plugins","model","editor","end","_adapter","define","Pagination","getSuggestions","acceptAllSuggestions","reduce","TrackChangesEditing","name","create","createDocumentFragment","getFullData","TrackChangesDataGetter","Users","requires","addSuggestionData","push","trackChangesData","getUser","rootsAttributes","config","destroy","init","getDataWithAcceptedSuggestions","useAnonymousUser","trackChangesData.editorCreator","function","execute","createElement"];var Fc,Pc;Fc=Oc,Pc=183,function(t){for(;--t;)Fc.push(Fc.shift())}(++Pc);const Dc=function(t,e){return Oc[t-=0]},Bc=[Dc("0x1f")];class jc extends t.Plugin{static get[Dc("0x2a")](){return[$a]}static get[Dc("0xf")](){return"TrackChangesData"}init(){const t=this[Dc("0x1b")];if(t.config[Dc("0x1e")](Dc("0x5"),(e=>{const n=t[Dc("0x1a")][Dc("0x17")][Dc("0x11")]()[Dc("0x22")](((t,e)=>(t[e]="",t)),{});return t[Dc("0xc")][Dc("0x25")](n,e)})),Dc("0x6")!=typeof t.config[Dc("0x10")](Dc("0x2d")).editorCreator)throw new e.CKEditorError("track-changes-data-invalid-editor-creator")}[Dc("0x3")](t){return Hc(this.editor,!0,t)}[Dc("0x9")](t){return Hc(this[Dc("0x1b")],!1,t)}}class Uc extends t.Plugin{static get pluginName(){return Dc("0x28")}constructor(t){super(t),this.result=Dc("0x1c")}[Dc("0x2")](){this[Dc("0x1b")][Dc("0x19")].get(Dc("0x18"))[Dc("0x1d")]={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[Dc("0x1b")][Dc("0x19")][Dc("0x10")](Dc("0x23"))[Dc("0x1d")]=null}}function Gc(t){return void 0!==t[Dc("0xa")]}async function Hc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,Bc);o.plugins[Dc("0x2c")]($a,Uc),o[Dc("0x2f")]=Gc(t)?t[Dc("0xa")]():void 0;const s=document[Dc("0x26")](),i=t[Dc("0x0")].get(Dc("0x2d"))[Dc("0xd")],x=await i(o,(()=>function(t){const e=document[Dc("0x8")](Dc("0x12"));return t[Dc("0x16")](e),e}(s)));!function(t,e){const n=t[Dc("0x1a")][Dc("0x17")].getRootNames()[Dc("0x22")](((e,n)=>(e[n]=t[Dc("0x13")].get({rootName:n}),e)),{}),o=t[Dc("0x19")].get(Dc("0x29"))[Dc("0xb")][Dc("0x15")]((t=>({id:t.id,name:t[Dc("0x24")]}))),s=t[Dc("0x19")][Dc("0x10")](Dc("0x23"))[Dc("0x20")]({skipNotAttached:!0,toJSON:!0}),r=e[Dc("0x19")][Dc("0x10")](Dc("0x29")),i=e[Dc("0x19")][Dc("0x10")](Dc("0x23"));for(const t of o)r[Dc("0x2e")](t.id)||r.addUser(t);r.me||r[Dc("0x4")]();for(const t of s)i[Dc("0x2b")](t);e[Dc("0x13")][Dc("0xe")](n)}(t,x),x[Dc("0x7")](Dc(e?"0x21":"0x14"));const a=Gc(x)?x[Dc("0x27")](n):x[Dc("0x13")].get(n);return await x[Dc("0x1")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
|
|
5
|
+
*/(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var 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=["has","_enableCommands","_isEnabledBasedOnSelection","TrackChangesCommand","_enabledCommands","clearForceDisabled","commands","affectsData","forceDisabled","_disableUnsupportedCommands","value","editor","refresh"];var c,l;c=a,l=111,function(t){for(;--t;)c.push(c.shift())}(++l);const u=function(t,e){return a[t-=0]};class d extends t.Command{constructor(t,e){super(t),this._enabledCommands=e,this.value=!1,this[u("0x5")](),this[u("0x8")]=!1}refresh(){this.isEnabled=!0}execute(){this.value=!this[u("0x3")],this[u("0x3")]?this[u("0x2")]():this[u("0x7")]()}[u("0x2")](){for(const t of this[u("0x4")][u("0xc")][u("0xc")]())t[u("0x0")]&&!this._enabledCommands[u("0x6")](t)&&t[u("0x1")](u("0x9"))}[u("0x7")](){for(const t of this[u("0x4")].commands[u("0xc")]())t.affectsData&&!this[u("0xa")].has(t)&&t[u("0xb")](u("0x9"))}}const g=["acceptSuggestion","editor","canEditAt","get","model","plugins","TrackChangesEditing","execute","refresh","getRanges","track-changes-accept-suggestion-not-found","isEnabled"];var f,m;f=g,m=363,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("0x5")](),this._isEnabledBasedOnSelection=!1}refresh(){this[h("0x8")]=!0}[h("0x4")](t){const n=this._suggestions[h("0x0")](t);if(!n)throw new e.CKEditorError(h("0x7"),this);const o=n[h("0x6")]();this[h("0xa")][h("0x1")][h("0xb")](o)&&this.editor[h("0x2")].get(h("0x3"))[h("0x9")](n)}}const b=["editor","getRanges","canEditAt","isEnabled","TrackChangesEditing","discardSuggestion","track-changes-discard-suggestion-not-found","model","get","plugins","_suggestions","refresh"];var E,_;E=b,_=165,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("0x2")](),this._isEnabledBasedOnSelection=!1}[T("0x2")](){this[T("0x6")]=!0}execute(t){const n=this[T("0x1")][T("0xb")](t);if(!n)throw new e.CKEditorError(T("0x9"),this);const o=n[T("0x4")]();this[T("0x3")][T("0xa")][T("0x5")](o)&&this[T("0x3")][T("0x0")][T("0xb")](T("0x7"))[T("0x8")](n)}}const C=["end","from","isMultiRange","color","length","isObject","getRanges","add","isIntersecting","createRange","isInContent","value","execute","map","change","createPositionAfter","deletion","createPositionAt","sort","type","replace","isCollapsed","createPositionBefore","start","push"];var A,k;A=C,k=169,function(t){for(;--t;)A.push(A.shift())}(++k);const I=function(t,e){return C[t-=0]};function R(t){return t[I("0x18")](((t,e)=>I("0x16")==t[I("0x0")]&&I("0x16")!=e.type?-1:I("0x16")!=t[I("0x0")]&&I("0x16")==e[I("0x0")]?1:0))}function S(t,e){let n,o=0;const i=[],r=e.schema;for(;o<t[I("0xa")];){const s=t[o],x=t[o+1];n||(n=e.createPositionBefore(s)),v(e,s,x)||(i[I("0x5")](e[I("0xf")](n,r[I("0xb")](s)?e[I("0x15")](s):e[I("0x17")](s,I("0x6")))),n=null),o++}return i}function v(t,e,n){if(!n)return!1;const o=t.createPositionAfter(e),i=t[I("0x3")](n);return o.isTouching(i)}function N(t,e,n){for(;n.length;){const o=n.splice(0,100);t[I("0x14")]((()=>{for(const t of o)t[I("0x10")]&&e[I("0x12")](t.id)}))}}const L=["_suggestions","getRanges","model","canEditAt","execute","refresh","some","isInContent","values","_isEnabledBasedOnSelection","editor","_command","from","isEnabled"];var M,w;M=L,w=349,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("0xc")]=e,this[O("0x1")]=n,this[O("0x6")](),this[O("0xa")]=!1}[O("0x6")](){const t=Array[O("0xd")](this[O("0x1")][O("0x9")]())[O("0x7")]((t=>t[O("0x8")]));this.isEnabled=this[O("0xc")][O("0x0")]&&t}[O("0x5")](){const t=R(Array.from(this[O("0x1")][O("0x9")]()));for(const e of t){const t=e[O("0x2")]();if(!this[O("0xb")][O("0x3")][O("0x4")](t))return}N(this[O("0xb")].model,this[O("0xc")],t)}}const D=["getRanges","_suggestions","refresh","size","from","isEnabled","_isEnabledBasedOnSelection","canEditAt","model","values","editor","selection","_selectedSuggestions","_command"];var B,P;B=D,P=489,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[U("0x2")]=n,this._selectedSuggestions=new Set,this[U("0x3")](),this[U("0x7")]=!1}[U("0x3")](){const t=this[U("0xb")][U("0x9")].document[U("0xc")],e=Array[U("0x5")](this._suggestions[U("0xa")]());this[U("0xd")]=function(t,e){const n=Array[I("0x7")](t[I("0xc")]()),o=new Set;for(const i of e)if(i[I("0x10")])for(const e of n)for(const n of i[I("0xc")]())(e[I("0xe")](n)||t[I("0x2")]&&!i[I("0x8")]&&i.next&&n[I("0x6")].isTouching(e[I("0x4")]))&&o[I("0xd")](i);return o}(t,e),this[U("0x6")]=this[U("0x0")].isEnabled&&!!this[U("0xd")][U("0x4")]}execute(){const t=R(Array[U("0x5")](this[U("0xd")]));for(const e of t){const t=e[U("0x1")]();if(!this[U("0xb")][U("0x9")][U("0x8")](t))return}N(this[U("0xb")][U("0x9")],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 X=function(t,e){var n=this.__data__,o=H(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=W,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const Z=$;const 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 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(ot,"Map");const Mt=Nt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Dt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Bt=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Bt.call(e,t)};const Ut=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mt&&void 0===e?"__lodash_hash_undefined__":e,this};function jt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}jt.prototype.clear=wt,jt.prototype.delete=Ot,jt.prototype.get=Dt,jt.prototype.has=Pt,jt.prototype.set=Ut;const Gt=jt;const Vt=function(){this.size=0,this.__data__={hash:new Gt,map:new(Lt||Z),string:new Gt}};const Ht=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const zt=function(t,e){var n=t.__data__;return Ht(e)?n["string"==typeof e?"string":"hash"]:n.map};const Wt=function(t){var e=zt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return zt(this,t).get(t)};const qt=function(t){return zt(this,t).has(t)};const Xt=function(t,e){var n=zt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Vt,$t.prototype.delete=Wt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Zt=$t;const 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 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?Ae(ve):Ce;var Le=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&de(t),i=!n&&!o&&be(t),r=!n&&!o&&!i&&Ne(t),s=n||o||i||r,x=s?se(t.length,String):[],a=x.length;for(var c in t)!e&&!Le.call(t,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const De=Fe(Object.keys,Object);var Be=Object.prototype.hasOwnProperty;const Pe=function(t){if(!Oe(t))return De(t);var e=[];for(var n in Object(t))Be.call(t,n)&&"constructor"!=n&&e.push(n);return e};const Ue=function(t){return null!=t&&Te(t.length)&&!mt(t)};const je=function(t){return Ue(t)?Me(t):Pe(t)};const Ge=function(t,e){return t&&re(e,je(e),t)};const Ve=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var He=Object.prototype.hasOwnProperty;const ze=function(t){if(!ft(t))return Ve(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&He.call(t,o))&&n.push(o);return n};const We=function(t){return Ue(t)?Me(t,!0):ze(t)};const Ke=function(t,e){return t&&re(e,We(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?ot.Buffer:void 0,Ze=$e?$e.allocUnsafe:void 0;const 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 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=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]"==Sn(t)};var Wn=Se&&Se.isMap;const Kn=Wn?Ae(Wn):zn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var Xn=Se&&Se.isSet;const $n=Xn?Ae(Xn):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=Sn(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),$n(e)?e.forEach((function(i){x.add(t(i,n,o,i,e,s))})):Kn(e)&&e.forEach((function(i,r){x.set(r,t(i,n,o,r,e,s))}));var m=u?void 0:(l?c?dn:un:c?We:je)(e);return te(m||e,(function(i,r){m&&(i=e[r=i]),ie(x,r,t(i,n,o,r,e,s))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,io=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(io.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function so(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,i=e?e.apply(this,o):o[0],r=n.cache;if(r.has(i))return r.get(i);var s=t.apply(this,o);return n.cache=r.set(i,s)||r,s};return n.cache=new(so.Cache||Zt),n}so.Cache=Zt;const xo=so;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,i){e.push(o?i.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,i=Array(o);++n<o;)i[n]=e(t[n],n,t);return i};var go=it?it.prototype:void 0,fo=go?go.toString:void 0;const mo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return fo?fo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":mo(t)};const po=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!ft(t))return t;for(var i=-1,r=(e=po(e,t)).length,s=r-1,x=t;null!=x&&++i<r;){var a=bo(e[i]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(i!=s){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=ft(l)?l:_e(e[i+1])?[]:{})}ie(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const yo=function(t){return this.__data__.has(t)};function Co(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Zt;++e<n;)this.add(t[e])}Co.prototype.add=Co.prototype.push=To,Co.prototype.has=yo;const Ao=Co;const ko=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const Io=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,i,r){var s=1&n,x=t.length,a=e.length;if(x!=a&&!(s&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new Ao:void 0;for(r.set(t,e),r.set(e,t);++u<x;){var f=t[u],m=e[u];if(o)var h=s?o(m,f,u,e,t,r):o(f,m,u,t,e,r);if(void 0!==h){if(h)continue;d=!1;break}if(g){if(!ko(e,(function(t,e){if(!Io(g,e)&&(f===t||i(f,t,n,o,r)))return g.push(e)}))){d=!1;break}}else if(f!==m&&!i(f,m,n,o,r)){d=!1;break}}return r.delete(t),r.delete(e),d};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const vo=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=So;case"[object Set]":var a=1&o;if(x||(x=vo),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:Sn(t),c=x?Do:Sn(e),l=(a=a==Fo?Bo:a)==Bo,u=(c=c==Fo?Bo:c)==Bo,d=a==c;if(d&&be(t)){if(!be(e))return!1;s=!0,l=!1}if(d&&!l)return r||(r=new Qt),s||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)},Xo=["from","decorate","_model","getFirstMarker","markers","hasComments","@external","discard","subType","onAttributesChange","getMarkerNames","split","attributes","getMarkers","next","getItems","onAccept","getRanges","creator","reduce","type","_onAccept","clear","nodeAfter","isMultiRange","setAttribute","previous","filter","author","getFirstRange","commentThread","onDiscard","substr","_onAttributesChange","removeMarker","removeMarkers","addMarkerName","getRange","addMarker","authoredAt","get","getMultiRangeId","isExternal","suggestion:","getAllAdjacentSuggestions","size","head","set","length","accept","end","_isDataLoaded","nodeBefore","isIntersectingWithRange","data","_markerNames","removeAttribute","map","createdAt","_onDiscard","change","getContainedElement"];var $o,Zo;$o=Xo,Zo=459,function(t){for(;--t;)$o.push($o.shift())}(++Zo);const Yo=function(t,e){return Xo[t-=0]};class Jo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this[Yo("0x1a")]=!1,this.id=e.id,this[Yo("0x39")]=e.type,this[Yo("0x2d")]=e[Yo("0x2d")]||null,this[Yo("0x3")]=e[Yo("0x3")],this[Yo("0x37")]=e[Yo("0x37")]||e[Yo("0x3")],this[Yo("0x11")]=Boolean(e[Yo("0x31")]&&e.attributes[Yo("0x2b")]),this.data=null,this[Yo("0x27")]=t,this[Yo("0x3a")]=e[Yo("0x35")],this[Yo("0x22")]=e[Yo("0x6")],this[Yo("0x8")]=e[Yo("0x2e")],this[Yo("0x1e")]=new Set,this[Yo("0x21")]=null,this[Yo("0x16")](Yo("0xe"),null),this[Yo("0x16")](Yo("0x31"),e[Yo("0x31")]||{}),this.set(Yo("0x1"),null),this[Yo("0x16")]("next",null),this[Yo("0x16")](Yo("0x5"),null),this[Yo("0x16")]("_saved",!1),this[Yo("0x26")](Yo("0x18")),this.decorate(Yo("0x2c"))}get head(){let t=this;for(;t[Yo("0x1")];)t=t[Yo("0x1")];return t}get[Yo("0x2a")](){return!!this[Yo("0x5")]&&this[Yo("0x5")].length>0}get[Yo("0x3d")](){return 0!=this[Yo("0x1e")][Yo("0x14")]&&6==Array[Yo("0x25")](this[Yo("0x1e")])[0][Yo("0x30")](":")[Yo("0x17")]}get isInContent(){return null!==this[Yo("0x28")]()}[Yo("0xb")](t){this[Yo("0x1e")].add(t)}[Yo("0x2f")](){return Array[Yo("0x25")](this[Yo("0x1e")])}[Yo("0x32")](){return this[Yo("0x2f")]()[Yo("0x20")]((t=>this[Yo("0x27")][Yo("0x29")][Yo("0xf")](t)))[Yo("0x2")]((t=>t))}[Yo("0x28")](){return this[Yo("0x32")]()[0]||null}[Yo("0xa")](){this._model[Yo("0x23")]((t=>{for(const e of this[Yo("0x32")]())t[Yo("0x9")](e)})),this._markerNames[Yo("0x3b")]()}[Yo("0x9")](t){this._model[Yo("0x23")]((e=>{e[Yo("0x9")](t)})),this._markerNames.delete(t)}addRange(t){const e=Yo("0x12")+this[Yo("0x39")]+":"+this[Yo("0x2d")]+":"+this.id+":"+this[Yo("0x37")].id+":"+Jo[Yo("0x10")]();this[Yo("0xb")](e),this[Yo("0x27")][Yo("0x23")]((n=>{n[Yo("0xd")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Yo("0x1c")](t){for(const e of this.getRanges())if(e.isIntersecting(t))return!0;return!1}[Yo("0x36")](){return this.getMarkers().map((t=>t[Yo("0xc")]()))}[Yo("0x34")](){return this[Yo("0x36")]()[Yo("0x38")](((t,e)=>[...t,...e.getItems()]),[])}[Yo("0x4")](){var t;return(null===(t=this[Yo("0x28")]())||void 0===t?void 0:t.getRange())||null}[Yo("0x24")](){const t=this[Yo("0x36")]();if(1!=t[Yo("0x17")])return null;const e=t[0],n=e.start[Yo("0x3c")],o=e[Yo("0x19")][Yo("0x1b")];return n instanceof s.Element?n!=o?null:n:null}accept(){this[Yo("0x3a")](this.getRanges(),this[Yo("0x1d")],this[Yo("0x31")]),this[Yo("0xa")]()}[Yo("0x2c")](){this[Yo("0x22")](this[Yo("0x36")](),this[Yo("0x1d")],this[Yo("0x31")]),this.removeMarkers()}[Yo("0x13")](){const t=[];let e=this[Yo("0x15")];for(;e;)t.push(e),e=e[Yo("0x33")];return t}[Yo("0x0")](t,e){const n=eo(this[Yo("0x31")]);_o(n,t,e),Go(n,this[Yo("0x31")])||(this[Yo("0x31")]=n,this._onAttributesChange(n))}[Yo("0x1f")](t){const e=eo(this.attributes);qo(e,t),Go(e,this.attributes)||(this[Yo("0x31")]=e,this[Yo("0x8")](this[Yo("0x31")]))}toJSON(){return{id:this.id,type:this.subType?this.type+":"+this[Yo("0x2d")]:this[Yo("0x39")],authorId:this[Yo("0x37")].id,createdAt:this.createdAt,hasComments:this.hasComments,data:this.data,attributes:this[Yo("0x31")]}}static[Yo("0x10")](){return(0,e.uid)()[Yo("0x7")](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=["$text","quantity","_locale","get","_itemLabels","removeFormat","format","push","_attributeLabels","map","_handleAttributeSuggestionDescription","end","name","softBreak","match","type","*Remove:* %0","has","*Change to:* %0","isInContent","$1 $2","*Merge:* %0","Container","_handleCustomCallbackDescription","add","text","nextSibling","newValue","_handleRenameSuggestionDescription","addContainer","key","item","getItemLabel","remove","elementStart","getFirstRange","label","pop","registerAttributeLabel","_addDescriptionItems","element","subType","getWalker","start","insertion","_itemLabelsCallbacks","_customCallbacks","registerDescriptionCallback","getDescriptions","set","*Insert:* %0","_handleInsertRemoveSuggestionDescription","*Remove format:* %0","matchingCallback","length","ELEMENT_SPACE","Object","removeEmptyContainer","data","addObject","skip","attribute","*Split:* %0","previousSibling","registerElementLabel","isObject","indexOf","_schema","_resolveDescriptionItems","nodeAfter","elementEnd","removeContainer","EmptyContainer","deletion","replace","addFormat","isEqual","isEmpty","join"];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[oi("0x44")]=[],this[oi("0x1a")]=new Map,this[oi("0x43")]=[],this[oi("0x1e")]=new Map,this[oi("0xa")]=t,this[oi("0x18")]=e}[oi("0x46")](t){const e=[],n=new Set,o=new Set;for(let i=0;i<t[oi("0x4c")];i++){const r=t[i];if(!r[oi("0x29")])continue;const s=this._handleCustomCallbackDescription(r);if(s){if(null!=r[oi("0x3f")]){if(n[oi("0x27")](r[oi("0x3f")]))continue;n.add(r.subType)}e[oi("0x1d")](s)}else if(oi("0x4")!=r[oi("0x25")])oi("0x42")!=r[oi("0x25")]&&oi("0x10")!=r.type||this[oi("0x49")](e,r,t[i+1]);else{const t=r[oi("0x1")][oi("0x34")];if(o[oi("0x27")](t))continue;o[oi("0x2e")](r[oi("0x1")][oi("0x34")]),t==mc?this[oi("0x32")](e,r):this._handleAttributeSuggestionDescription(e,r)}}return this[oi("0xb")](e)}[oi("0x45")](t){this._customCallbacks[oi("0x1d")](t)}[oi("0x7")](t,n,o=e.priorities.normal){"function"==typeof t?(0,e.insertToPriorityArray)(this[oi("0x43")],{matchingCallback:t,label:n,priority:o}):this._itemLabels.set(t,n)}[oi("0x3c")](t,e){this[oi("0x1e")][oi("0x47")](t,e)}[oi("0x36")](t,e=1){let n;for(const e of this[oi("0x43")])if(e[oi("0x4b")](t)){n=e[oi("0x3a")];break}return n||(n=this[oi("0x1a")][oi("0x19")](t[oi("0x22")])),n?n(e):1!==e?e+" "+t.name+"s":""+t[oi("0x22")]}[oi("0x3d")](t,e){const n=e[oi("0x39")]()[oi("0x40")](),o=oi("0x42")==e.type?oi("0x2e"):oi("0x37");for(const e of n){const i=e[oi("0x35")],r=t[t[oi("0x4c")]-1];if(i.is("$textProxy"))r&&r[oi("0x25")][oi("0x9")](oi("0x2c"))>-1&&t[oi("0x3b")](),r&&oi("0x2f")==r[oi("0x25")]?r[o]+=i.data:t.push({type:oi("0x2f"),add:oi("0x2e")==o?i.data:"",remove:"remove"==o?i.data:""});else if(this._schema.isObject(i)){const s=i;if(r&&r[oi("0x25")][oi("0x9")](oi("0x2c"))>-1&&t[oi("0x3b")](),oi("0xd")==e[oi("0x25")])continue;r&&r[oi("0x25")]==o+oi("0x4e")&&r[oi("0x3e")][oi("0x22")]==s[oi("0x22")]?r.quantity++:t[oi("0x1d")]({type:o+oi("0x4e"),element:s,quantity:1}),n[oi("0x3")]((t=>!("elementEnd"==t[oi("0x25")]&&t.item==i)))}else if(this[oi("0xa")].checkChild(i,oi("0x16"))||i.is(oi("0x3e"),oi("0x23"))){const n=i;if("add"==o&&oi("0x38")==e[oi("0x25")]||oi("0x37")==o&&"elementEnd"==e[oi("0x25")])continue;if(r&&-1==r[oi("0x25")][oi("0x9")](oi("0x2c"))){oi("0x2f")==r[oi("0x25")]&&(r[o]+="\n");continue}let s;if(s=oi("0x2e")==o?n[oi("0x30")]&&!this[oi("0xa")].isObject(n[oi("0x30")])?n[oi("0x30")]:null:n[oi("0x6")]&&!this._schema[oi("0x8")](n[oi("0x6")])?n[oi("0x6")]:null,n[oi("0x14")]||s&&s.isEmpty){const e=s&&s[oi("0x14")]?s:n;r&&r[oi("0x25")]==o+oi("0xf")&&r[oi("0x3e")][oi("0x22")]==e.name?r.quantity++:t[oi("0x1d")]({type:o+oi("0xf"),element:e,quantity:1})}else t[oi("0x1d")]({type:o+oi("0x2c"),element:n})}}}_resolveDescriptionItems(t){const e=this[oi("0x18")],n=[],o=[],i=[];for(const r of t)switch(r.type){case oi("0x2f"):if(r[oi("0x2e")]=r[oi("0x2e")][oi("0x11")](/(\S)\u000A+(\S)/g,oi("0x2a"))[oi("0x11")](/\u000A/g,""),r.remove=r[oi("0x37")][oi("0x11")](/(\S)\u000A+(\S)/g,oi("0x2a"))[oi("0x11")](/\u000A/g,""),""!=r[oi("0x2e")]&&""!=r.remove){n.push({type:oi("0x11"),content:Qo(e,"REPLACE_TEXT",['"'+r[oi("0x37")]+'"','"'+r[oi("0x2e")]+'"'])});continue}if(null!=r[oi("0x2e")].match(/^ +$/)){n[oi("0x1d")]({type:"insertion",content:Qo(e,oi("0x48"),Qo(e,"ELEMENT_SPACE",r[oi("0x2e")][oi("0x4c")]))});continue}if(null!=r.remove[oi("0x24")](/^ +$/)){n[oi("0x1d")]({type:"deletion",content:Qo(e,oi("0x26"),Qo(e,oi("0x4d"),r[oi("0x37")][oi("0x4c")]))});continue}if(""!=r[oi("0x2e")]){n[oi("0x1d")]({type:oi("0x42"),content:Qo(e,oi("0x48"),'"'+r[oi("0x2e")]+'"')});continue}n[oi("0x1d")]({type:oi("0x10"),content:Qo(e,"*Remove:* %0",'"'+r[oi("0x37")]+'"')});continue;case"addEmptyContainer":case oi("0x2"):n[oi("0x1d")]({type:"insertion",content:Qo(e,oi("0x48"),this[oi("0x36")](r[oi("0x3e")],r[oi("0x17")]))});continue;case oi("0x0"):case"removeObject":n[oi("0x1d")]({type:oi("0x10"),content:Qo(e,oi("0x26"),this.getItemLabel(r[oi("0x3e")],r.quantity))});continue;case oi("0x33"):n.push({type:oi("0x42"),content:Qo(e,oi("0x5"),this[oi("0x36")](r[oi("0x3e")],r[oi("0x17")]))});continue;case oi("0xe"):n[oi("0x1d")]({type:"deletion",content:Qo(e,oi("0x2b"),this[oi("0x36")](r[oi("0x3e")],r[oi("0x17")]))});continue;case oi("0x12"):o[oi("0x1d")](r.key);continue;case oi("0x1b"):i.push(r[oi("0x34")]);continue;default:n[oi("0x1d")](r)}if(o[oi("0x4c")]){const t=o[oi("0x1f")]((t=>this._attributeLabels.has(t)?this[oi("0x1e")][oi("0x19")](t):t))[oi("0x15")](", ");n[oi("0x1d")]({type:"format",content:Qo(this[oi("0x18")],"*Set format:* %0",t)})}if(i[oi("0x4c")]){const t=i.map((t=>this[oi("0x1e")][oi("0x27")](t)?this[oi("0x1e")][oi("0x19")](t):t)).join(", ");n[oi("0x1d")]({type:"format",content:Qo(this._locale,oi("0x4a"),t)})}return n}[oi("0x2d")](t){for(const e of this[oi("0x44")]){const n=e(t);if(n&&oi("0x25")in n)return n}}[oi("0x20")](t,e){const n=e[oi("0x1")],o=void 0===n[oi("0x31")]?oi("0x1b"):oi("0x12");t[oi("0x1d")]({type:o,key:n[oi("0x34")]})}[oi("0x32")](t,e){t.push({type:oi("0x1c"),content:Qo(this[oi("0x18")],oi("0x28"),this[oi("0x36")](e.getFirstRange().start[oi("0xc")],1))})}[oi("0x49")](t,e,n){if(this[oi("0x3d")](t,e),n&&n[oi("0x39")]()&&!e[oi("0x39")]()[oi("0x21")][oi("0x13")](n[oi("0x39")]()[oi("0x41")])){const n=t[t[oi("0x4c")]-1],o=oi("0x42")==e[oi("0x25")]?oi("0x2e"):oi("0x37");n&&oi("0x2f")==n[oi("0x25")]&&(n[o]+="\n")}}}const ri=["TrackChangesEditing","editor","get","afterInit","commands","showAIAssistant","enableCommand"];var si,xi;si=ri,xi=172,function(t){for(;--t;)si.push(si.shift())}(++xi);const ai=function(t,e){return ri[t-=0]};class ci extends t.Plugin{[ai("0x6")](){const t=this[ai("0x4")],e=t.plugins[ai("0x5")](ai("0x3"));t[ai("0x0")][ai("0x5")]("showAIAssistant")&&e[ai("0x2")](ai("0x1"))}}const li=["value","_descriptionFactory","TrackChangesEditing","_registerLegacyDescription","left","afterInit","FORMAT_ALIGN_TO_RIGHT","editor","commandParams","get","format","right","FORMAT_ALIGN_TO_CENTER","*Format:* %0","locale","FORMAT_ALIGN_TO_LEFT","type","FORMAT_JUSTIFY_TEXT","AlignmentEditing","alignment","_enableDefaultAttributesIntegration","plugins","commandName","has"];var ui,di;ui=li,di=250,function(t){for(;--t;)ui.push(ui.shift())}(++di);const gi=function(t,e){return li[t-=0]};class fi extends t.Plugin{[gi("0x13")](){const t=this[gi("0x15")],e=t[gi("0x4")];if(!t[gi("0xb")][gi("0xd")](gi("0x8")))return;const n=t[gi("0xb")].get(gi("0x10"));n[gi("0xa")](gi("0x9"),[],[gi("0x9")]),n[gi("0xf")].registerAttributeLabel(gi("0x9"),Qo(e,"FORMAT_ALIGNMENT")),this._registerLegacyDescription()}[gi("0x11")](){const t=this[gi("0x15")],e=t.locale;t[gi("0xb")][gi("0x17")](gi("0x10"))[gi("0xf")].registerDescriptionCallback((t=>{if("formatBlock"!=t[gi("0x6")])return;const{data:n}=t;if(n&&gi("0x9")==n[gi("0xc")]){const t=n[gi("0x16")][0][gi("0xe")];return{type:gi("0x0"),content:Qo(e,gi("0x3"),function(t){switch(t){case gi("0x12"):return Qo(e,gi("0x5"));case gi("0x1"):return Qo(e,gi("0x14"));case"center":return Qo(e,gi("0x2"));case"justify":return Qo(e,gi("0x7"))}}(t))}}}))}}const mi=["type","*Remove format:* %0","TrackChangesEditing","toUpperCase","FORMAT_BOLD","registerDescriptionCallback","superscript","_descriptionFactory","locale","CodeEditing","plugins","FORMAT_CODE","FORMAT_ITALIC","format","SubscriptEditing","commandName","editor","BoldEditing","has","toLowerCase","SuperscriptEditing","FORMAT_SUBSCRIPT","FORMAT_STRIKETHROUGH","code","FORMAT_UNDERLINE","formatInline","_enableDefaultAttributesIntegration","FORMAT_SUPERSCRIPT","underline","get","subscript","registerAttributeLabel","italic","*Format:* %0","FORMAT_"];var hi,pi;hi=mi,pi=304,function(t){for(;--t;)hi.push(hi.shift())}(++pi);const bi=function(t,e){return mi[t-=0]},Ei=[bi("0x1c"),"ItalicEditing","UnderlineEditing",bi("0x14"),"StrikethroughEditing",bi("0x19"),bi("0x1f")];class _i extends t.Plugin{afterInit(){const t=this[bi("0x1b")],e=t[bi("0x15")][bi("0x5")](bi("0xd")),n=t[bi("0x13")];for(const o of Ei){if(!t[bi("0x15")][bi("0x1d")](o))continue;const i=o.slice(0,-7)[bi("0x1e")](),r=bi("0xa")+i[bi("0xe")]();e[bi("0x2")](i,[i]),e[bi("0x12")][bi("0x7")](i,Qo(n,r))}this._registerLegacyDescription()}_registerLegacyDescription(){const t=this[bi("0x1b")],e=t[bi("0x13")],n=t[bi("0x15")][bi("0x5")](bi("0xd"));function o(t,o){n[bi("0x12")][bi("0x10")]((n=>{if(bi("0x1")!=n[bi("0xb")])return;const{data:i}=n;return i&&i[bi("0x1a")]===t?i.commandParams[0].forceValue?{type:bi("0x18"),content:Qo(e,bi("0x9"),o)}:{type:bi("0x18"),content:Qo(e,bi("0xc"),o)}:void 0}))}o("bold",Qo(e,bi("0xf"))),o(bi("0x8"),Qo(e,bi("0x17"))),o(bi("0x4"),Qo(e,bi("0x0"))),o(bi("0x22"),Qo(e,bi("0x16"))),o("strikethrough",Qo(e,bi("0x21"))),o(bi("0x6"),Qo(e,bi("0x20"))),o(bi("0x11"),Qo(e,bi("0x3")))}}const Ti=["TrackChangesEditing","markBlockFormat","commandParams","plugins","schema","afterInit","ELEMENT_BLOCK_QUOTE","BlockQuoteEditing","name","locale","model","commands","blockQuote","$root","selection","editor","get","checkChild","forceValue","registerDescriptionCallback","getSelectedBlocks","format","commandName","value","from","*Set format:* %0","filter","parent","has"];var yi,Ci;yi=Ti,Ci=475,function(t){for(;--t;)yi.push(yi.shift())}(++Ci);const Ai=function(t,e){return Ti[t-=0]};class ki extends t.Plugin{[Ai("0x17")](){const t=this[Ai("0x4")],e=t[Ai("0x1b")];if(!t[Ai("0x15")][Ai("0x11")](Ai("0x19")))return;const n=t[Ai("0x15")][Ai("0x5")](Ai("0x12")),o=this.editor[Ai("0x0")][Ai("0x5")](Ai("0x1"));n.enableCommand(Ai("0x1"),((e,i={})=>{const r=this[Ai("0x4")][Ai("0x1c")].document[Ai("0x3")],s=i&&void 0!==i.forceValue?i[Ai("0x7")]:!o[Ai("0xc")];let x=[];if(s){const e=Array[Ai("0xd")](r[Ai("0x9")]())[Ai("0xf")]((t=>Ii(t)||function(t,e){const n=e.checkChild(t[Ai("0x10")],Ai("0x1")),o=e[Ai("0x6")]([Ai("0x2"),"blockQuote"],t);return n&&o}(t,this[Ai("0x4")][Ai("0x1c")][Ai("0x16")])));x=S(e,t[Ai("0x1c")])}else{const e=Array.from(r.getSelectedBlocks()).filter((t=>Ii(t)));x=S(e,t[Ai("0x1c")])}t.model.change((()=>{for(const t of x)n[Ai("0x13")](t,{commandName:Ai("0x1"),commandParams:[{forceValue:s}]})}))})),n._descriptionFactory[Ai("0x8")]((t=>{const{data:n}=t;if(n&&Ai("0x1")==n[Ai("0xb")]){const t=Qo(e,Ai("0x18"));return n[Ai("0x14")][0][Ai("0x7")]?{type:Ai("0xa"),content:Qo(e,Ai("0xe"),t)}:{type:Ai("0xa"),content:Qo(e,"*Remove format:* %0",t)}}}))}}function Ii(t){return Ai("0x1")==t[Ai("0x10")][Ai("0x1a")]}const Ri=["editor","TrackChangesEditing","enableCommand","commands","get","plugins","ckbox"];var Si,vi;Si=Ri,vi=314,function(t){for(;--t;)Si.push(Si.shift())}(++vi);const Ni=function(t,e){return Ri[t-=0]};class Li extends t.Plugin{afterInit(){const t=this[Ni("0x1")];t[Ni("0x4")][Ni("0x5")](Ni("0x0"))&&t[Ni("0x6")].get(Ni("0x2"))[Ni("0x3")](Ni("0x0"))}}const Mi=["format","find","indentCodeBlock","languages","change","type","model","from","CodeBlock","enableCommand","commandName","schema","*Remove format:* %0","checkChild","config","commands","registerElementLabel","commandParams","filter","value","editor","toLowerCase","plugins","markBlockFormat","_descriptionFactory","get","codeBlock","parent","has","formatBlock","registerDescriptionCallback","TrackChangesEditing","outdentCodeBlock","name","blockName","language","forceValue","getSelectedBlocks","ELEMENT_CODE_BLOCK","label"];var wi,Oi;wi=Mi,Oi=372,function(t){for(;--t;)wi.push(wi.shift())}(++Oi);const Fi=function(t,e){return Mi[t-=0]};class Di extends t.Plugin{afterInit(){const t=this[Fi("0x8")];if(!t[Fi("0xa")][Fi("0x10")](Fi("0x24")))return;const e=t[Fi("0xa")][Fi("0xd")](Fi("0x13")),n=t.locale,o=t[Fi("0x2")][Fi("0xd")](Fi("0xe"))[Fi("0x1f")],i=t[Fi("0x3")][Fi("0xd")](Fi("0xe"));e[Fi("0x25")](Fi("0x1e")),e[Fi("0x25")](Fi("0x14")),e[Fi("0x25")](Fi("0xe"),((n,r={})=>{const s=t[Fi("0x22")],x=t.model.document.selection,a=r&&void 0!==r[Fi("0x18")]?r[Fi("0x18")]:!i[Fi("0x7")];let c;r[Fi("0x17")]||(r[Fi("0x17")]=o[0][Fi("0x17")]),c=a?Array[Fi("0x23")](x[Fi("0x19")]())[Fi("0x6")]((t=>{return Bi(t)||(e=t,n=s[Fi("0x27")],!e.is("rootElement")&&!n.isLimit(e)&&n[Fi("0x1")](e[Fi("0xf")],Fi("0xe")));var e,n})):Array[Fi("0x23")](x[Fi("0x19")]())[Fi("0x6")]((t=>Bi(t)));const l=S(c,s);s[Fi("0x20")]((()=>{for(const t of l)e[Fi("0xb")](t,{commandName:Fi("0xe"),commandParams:[{...r,forceValue:a}],formatGroupId:Fi("0x16")})}))})),e[Fi("0xc")][Fi("0x4")](Fi("0xe"),(t=>Qo(n,Fi("0x1a"),t))),e._descriptionFactory[Fi("0x12")]((t=>{if(Fi("0x11")!=t[Fi("0x21")])return;const e=n.t,{data:i}=t;if(!i||Fi("0xe")!=i[Fi("0x26")])return;const r=i.commandParams[0][Fi("0x17")],s=e(o[Fi("0x1d")]((t=>t.language===r))[Fi("0x1b")])[Fi("0x9")]();return i[Fi("0x5")][0][Fi("0x18")]?{type:"format",content:Qo(n,"*Set format:* %0",Qo(n,Fi("0x1a"),1)+" ("+s+")")}:{type:Fi("0x1c"),content:Qo(n,Fi("0x0"),Qo(n,Fi("0x1a"),1))}}))}}function Bi(t){return Fi("0xe")==t[Fi("0x15")]}const Pi=["afterInit","has","get","addCommentThread","CommentsEditing","enableCommand","editor"];var Ui,ji;Ui=Pi,ji=190,function(t){for(;--t;)Ui.push(Ui.shift())}(++ji);const Gi=function(t,e){return Pi[t-=0]};class Vi extends t.Plugin{[Gi("0x6")](){const t=this[Gi("0x5")];t.plugins[Gi("0x0")](Gi("0x3"))&&t.plugins[Gi("0x1")]("TrackChangesEditing")[Gi("0x4")](Gi("0x2"))}}var Hi=n(181);const zi=["plugins","writer","activeMarkers","push","schema","getAttribute","getWalker","isAtEnd","ck-suggestion-marker--active","mapper","addClass","isContent","consumable","name","element","nextSibling","createUIElement","test","insert","type","elementEnd","get","markerName","getItems","isLimit","createRangeOn","toViewPosition","includes","parent","markerRange","previousPosition","listItem","item","getCustomProperty"];var Wi,Ki;Wi=zi,Ki=466,function(t){for(;--t;)Wi.push(Wi.shift())}(++Ki);const qi=function(t,e){return zi[t-=0]};function Xi(t,e,n){const o=[];for(const i of e[qi("0x21")]())i.hasAttribute(t)&&o[qi("0xd")](n[qi("0x1")](i));return o}function $i(t,e,{showActiveMarker:n=!0}={}){const o=t[qi("0xa")][qi("0x1f")]("TrackChangesEditing");return(i,r,s)=>{if(!s[qi("0x16")][qi("0x1b")](r.markerRange,i[qi("0x17")]))return;const x=r[qi("0x5")][qi("0x10")](),a=r[qi("0x5")].start,c=t.model[qi("0xe")];let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[qi("0x8")];d=d||c[qi("0x15")](e);const n=s[qi("0x13")].toViewElement(e);if(n&&n[qi("0x9")]("addHighlight"))return;qi("0x1e")==t[qi("0x1d")]&&c.isBlock(e)&&!c[qi("0x0")](e)&&(e[qi("0x19")]||a[qi("0x11")]?l&&l[qi("0x4")]==e||(l=e,f(t[qi("0x6")]),g=!0):u=u||t[qi("0x6")])}function f(t){const i=s[qi("0xb")][qi("0x1a")]("span",{class:"ck-suggestion-marker-"+e}),x=s[qi("0x13")][qi("0x2")](t);n&&o[qi("0xc")][qi("0x3")](r[qi("0x20")])&&s.writer[qi("0x14")](qi("0x12"),i),s[qi("0xb")][qi("0x1c")](x,i),s[qi("0x13")].bindElementToMarker(i,r[qi("0x20")])}d||g||!u||f(u)}}const Zi=["requires","editor","init","markerName","remove","addMarker:suggestion:deletion","deleteForward","buffer","showSuggestionHighlights","modifySelection","unlock","start","document","downcastDispatcher","removeMarker:suggestion:deletion","merge","forward","createSelection","editing","unbindElementFromMarkerName","data","unit","model","createRange","setSelection","rootName","fromRange","isCollapsed","delete","high","getFirstRange","root","TrackChangesEditing","$graveyard","end","detach","mapper","writer","enableCommand","markerNameToElements"];var Yi,Ji;Yi=Zi,Ji=140,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[Qi("0x14")](){return[Hi.Delete]}[Qi("0x16")](){const t=this[Qi("0x15")],e=t.plugins.get(Qi("0xc"));e[Qi("0x12")](Qi("0x8"));const n=t.commands.get(Qi("0x1a"));e[Qi("0x12")](Qi("0x1a"),((e,o={})=>{const i=t[Qi("0x2")][Qi("0x25")](t.model[Qi("0x20")].selection);i[Qi("0x7")]&&t.model[Qi("0x1d")](i,{direction:Qi("0x24"),unit:o[Qi("0x1")]});const r=i[Qi("0xa")](),x=s.LiveRange[Qi("0x6")](r);let a;e(o),a=Qi("0xd")==x[Qi("0xb")][Qi("0x5")]?t[Qi("0x2")][Qi("0x3")](r[Qi("0x1f")]):t[Qi("0x2")][Qi("0x3")](x[Qi("0x1f")],x[Qi("0xe")]),x[Qi("0xf")](),t[Qi("0x2")].enqueueChange(n[Qi("0x1b")].batch,(t=>{n[Qi("0x1b")].lock(),t[Qi("0x4")](t[Qi("0x3")](a[Qi("0xe")])),n.buffer[Qi("0x1e")]()}))})),t[Qi("0x26")][Qi("0x21")].on(Qi("0x19"),$i(t,Qi("0x23")),{priority:Qi("0x9")}),t[Qi("0x0")][Qi("0x21")].on(Qi("0x19"),((e,n,o)=>{o.options[Qi("0x1c")]&&$i(t,"merge",{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:Qi("0x9")}),t[Qi("0x26")].downcastDispatcher.on(Qi("0x22"),((t,e,n)=>{const o=n[Qi("0x10")][Qi("0x13")](e[Qi("0x17")]);if(o)for(const t of o)t.is("uiElement")&&(n.mapper[Qi("0x27")](t,e[Qi("0x17")]),n[Qi("0x11")][Qi("0x18")](t))}),{priority:Qi("0x9")})}}const er=["mergeListItemBackward","isObject","*Indent:* %0","commandName","from","previousSibling","change","fromRange","*Format:* insert into %0","locale","listType","list.multiBlock","start","ELEMENT_NUMBERED_LIST","documentList","markBlockFormat","formatBlock","model","ELEMENT_BULLETED_LIST","config","commandParams","enableCommand","plugins","selection","listItemId","afterInit","format","mergeListItemForward","findIndex","end","nextSibling","numberedList","*Format:* remove from %0","push","_suggestionFactory","getRanges","containsItem","*Merge:* %0","before","registerCustomCallback","createRange","getSelectedBlocks","document","listIndent","createPositionAt","_descriptionFactory","getFirstRange","DocumentListUtils","toUpperCase","getAttribute","after","value","splitListItemBefore","execute","bulletedList","commands","refresh","DocumentListEditing","deletion","*Outdent:* %0","ELEMENT_","markMultiRangeBlockFormat","parent","type","registerDescriptionCallback","nodeAfter","schema","slice","expandListBlocksToCompleteList","outdentList","length","*Change to:* %0","registerElementLabel","splitListItemAfter","next","hasAttribute","has","formatInline","forceValue","ELEMENT_LIST_ITEM","get"];var nr,or;nr=er,or=123,function(t){for(;--t;)nr.push(nr.shift())}(++or);const ir=function(t,e){return er[t-=0]};class rr extends t.Plugin{[ir("0x40")](){const t=this.editor;if(!t[ir("0x3d")][ir("0x22")](ir("0xf")))return;const e=t[ir("0x30")],n=t[ir("0x3d")][ir("0x26")]("TrackChangesEditing"),o=t.plugins[ir("0x26")](ir("0x5"));function i(e){return()=>{const i=t[ir("0xd")][ir("0x26")](e);if(i[ir("0x9")]&&!t.config[ir("0x26")](ir("0x32")))return void t[ir("0xb")]("paragraph",{});let r=Array[ir("0x2b")](t[ir("0x38")][ir("0x0")][ir("0x3e")].getSelectedBlocks());if(a(e)){r=o[ir("0x1a")](r);const t=[];for(const e of r)o.isFirstBlockOfListItem(e)&&t[ir("0x48")](e);r=t}t[ir("0x38")].change((()=>{n[ir("0x13")](r,{commandName:e,commandParams:[{forceValue:!i[ir("0x9")]}],formatGroupId:ir("0x31")},[],ir("0x35"))}))}}function r(e){return()=>{const o=function(t){let e=Array[ir("0x2b")](t);const n=e[ir("0x43")]((t=>!t[ir("0x21")]("listItemId")));return n>-1&&(e=e[ir("0x19")](0,n)),e}(t[ir("0x38")][ir("0x0")][ir("0x3e")][ir("0x50")]()),i=o[o[ir("0x1c")]-1],r=t[ir("0x38")][ir("0x18")][ir("0x28")](i)?ir("0x8"):"end",s=t.model.createRange(t.model[ir("0x2")](o[0],ir("0x4d")),t[ir("0x38")][ir("0x2")](i,r));t[ir("0x38")][ir("0x2d")]((()=>{n.markBlockFormat(s,{commandName:e,commandParams:[],formatGroupId:"listType"},function(t){const e=new Set;for(const n of t){let t=n[ir("0x45")];for(;t&&t.getAttribute("listIndent")>n[ir("0x7")]("listIndent");)e.add(t),t=t.nextSibling}return Array[ir("0x2b")](e)}(o))}))}}function x(e){return()=>{const o=t[ir("0x38")].document[ir("0x3e")].getSelectedBlocks()[ir("0x20")]().value,i=t.model.createPositionAt(o,ir("0x4d")),r=t[ir("0x38")].createPositionAt(o,0),s=t.model[ir("0x4f")](i,r);t[ir("0x38")][ir("0x2d")]((()=>{n[ir("0x36")](s,{commandName:e,commandParams:[],formatGroupId:ir("0x31")})}))}}function a(e){const n=t[ir("0xd")][ir("0x26")]("bulletedList")[ir("0x9")],o=t[ir("0xd")][ir("0x26")](ir("0x46"))[ir("0x9")];return ir("0x46")===e?n:o}n[ir("0x3c")]("numberedList",i("numberedList")),n[ir("0x3c")](ir("0xc"),i(ir("0xc"))),n[ir("0x3c")]("indentList",r("indentList")),n[ir("0x3c")](ir("0x1b"),r(ir("0x1b"))),n[ir("0x3c")](ir("0x1f"),x("splitListItemAfter")),n[ir("0x3c")](ir("0xa"),x(ir("0xa"))),n[ir("0x3")][ir("0x1e")]((function(e){const n=!t.model[ir("0x18")][ir("0x28")](e),o=e[ir("0x2c")],i=e.nextSibling,r=e[ir("0x7")](ir("0x3f")),s=!o||o[ir("0x7")]("listItemId")!==r,x=!i||i[ir("0x7")]("listItemId")!==r;return n&&Boolean(r)&&s&&x}),(t=>Qo(e,ir("0x25"),t))),n[ir("0x3")][ir("0x16")]((function(n){if(ir("0x37")!=n[ir("0x15")]&&ir("0x23")!=n.type)return;const{data:o}=n;if(!o)return;let i,r,s,x;switch(o[ir("0x2a")]){case"bulletedList":s=o[ir("0x3b")][0][ir("0x24")],x=a(o[ir("0x2a")]),i=s?"*Format:* insert into %0":ir("0x47"),!x&&t[ir("0x3a")][ir("0x26")](ir("0x32"))||(i=ir("0x1d")),r={type:ir("0x41"),content:Qo(e,i,Qo(e,ir("0x39")))};break;case ir("0x46"):s=o[ir("0x3b")][0].forceValue,x=a(o.commandName),i=ir(s?"0x2f":"0x47"),!x&&t[ir("0x3a")].get(ir("0x32"))||(i=ir("0x1d")),r={type:"format",content:Qo(e,i,Qo(e,ir("0x34")))};break;case"indentList":i=ir("0x29"),r={type:ir("0x41"),content:Qo(e,i,Qo(e,ir("0x25")))};break;case ir("0x1b"):i=function(t){const e=t[ir("0x4")]();let n=e[ir("0x33")].nodeAfter;for(;n&&e[ir("0x4b")](n);){if(n.getAttribute(ir("0x1"))>0)return!1;n=n[ir("0x45")]}return!0}(n)?Qo(e,"*Format:* remove from %0",Qo(e,function(t){const e=t.getFirstRange()[ir("0x33")][ir("0x17")];return ir("0x12")+e[ir("0x7")](ir("0x31"))[ir("0x6")]()+"_LIST"}(n))):Qo(e,ir("0x11"),Qo(e,ir("0x25"))),r={type:ir("0x41"),content:i};break;case ir("0x27"):case ir("0x42"):!1===o.multipleBlocks&&(i=ir("0x4c"),r={type:ir("0x10"),content:Qo(e,i,Qo(e,ir("0x25")))})}return r})),n[ir("0x49")][ir("0x4e")](ir("0x37"),ir("0x35"),"accept",(function(e,n){const o=[];for(let n of e)n.start[ir("0x17")]===n[ir("0x44")][ir("0x14")]&&(n=t[ir("0x38")][ir("0x4f")](t.model[ir("0x2")](n[ir("0x33")][ir("0x17")],0))),o[ir("0x48")](n);t[ir("0x38")][ir("0x2d")]((e=>{const i=t[ir("0x38")][ir("0x0")][ir("0x3e")],r=Array[ir("0x2b")](i[ir("0x4a")]()).map((t=>s.LiveRange[ir("0x2e")](t)));e.setSelection(o),t[ir("0xd")][ir("0x26")](n.commandName)[ir("0xe")](),n[ir("0x3b")][ir("0x48")]({forceDefaultExecution:!0}),t[ir("0xb")](n.commandName,...n[ir("0x3b")]),e.setSelection(r);for(const t of r)t.detach()}))}))}}const sr=["filter","listStyle","listStart","_LIST_","ELEMENT_","from","getSelectedBlocks","afterInit","_getTranslationKeyForListStyle","listReversed","push","registerDescriptionCallback","get","*Format:* set start index to %0","format","reversed","editor","startIndex","bind","*Format:* set order to reversed","DocumentListPropertiesUtils","handleListStyleCommand","numbered","*Change to:* %0","enableCommand","getListTypeFromListStyleType","markMultiRangeBlockFormat","isFirstBlockOfListItem","handleDescriptions","DocumentListPropertiesEditing","*Format:* set order to regular","toUpperCase","change","document","_getSuggestionBlocksForListStyle","_getSuggestionBlocks","handleListStartCommand","commandName","formatBlock","model","type","handleListReversedCommand","DocumentListUtils","selection","TrackChangesEditing","listType","replace","commandParams","plugins","isListItemBlock","expandListBlocksToCompleteList"];var xr,ar;xr=sr,ar=132,function(t){for(;--t;)xr.push(xr.shift())}(++ar);const cr=function(t,e){return sr[t-=0]};class lr extends t.Plugin{[cr("0x1c")](){if(!this[cr("0x25")].plugins.has(cr("0x32")))return;const t=this.editor.config[cr("0x21")]("list.properties"),e=this[cr("0x25")][cr("0x12")].get(cr("0xe"));t.styles&&e[cr("0x2d")](cr("0x16"),this[cr("0x2a")][cr("0x27")](this)),t[cr("0x24")]&&e[cr("0x2d")](cr("0x1e"),this[cr("0xb")][cr("0x27")](this)),t[cr("0x26")]&&e[cr("0x2d")](cr("0x17"),this[cr("0x6")][cr("0x27")](this)),e._descriptionFactory[cr("0x20")](this[cr("0x31")].bind(this))}[cr("0x2a")](t,e={}){const n=this[cr("0x25")][cr("0x12")][cr("0x21")](cr("0xe")),o=this[cr("0x4")]();this[cr("0x25")].model[cr("0x2")]((()=>{n[cr("0x2f")](o,{commandName:cr("0x16"),commandParams:[{type:e[cr("0xa")]}],formatGroupId:cr("0x16")})}))}[cr("0xb")](t,e={}){const n=this[cr("0x25")].plugins[cr("0x21")](cr("0xe")),o=this[cr("0x25")][cr("0x12")][cr("0x21")]("DocumentListUtils"),i=this._getSuggestionBlocks((t=>o[cr("0x13")](t)&&"numbered"===t.getAttribute(cr("0xf"))));null!==i&&this.editor[cr("0x9")][cr("0x2")]((()=>{n.markMultiRangeBlockFormat(i,{commandName:cr("0x1e"),commandParams:[{reversed:e.reversed}],formatGroupId:cr("0x1e")})}))}handleListStartCommand(t,e={}){const n=this[cr("0x25")].plugins[cr("0x21")](cr("0xe")),o=this[cr("0x25")][cr("0x12")][cr("0x21")]("DocumentListUtils"),i=this[cr("0x5")]((t=>o[cr("0x13")](t)&&cr("0x2b")===t.getAttribute(cr("0xf"))));null!==i&&this.editor[cr("0x9")].change((()=>{n[cr("0x2f")](i,{commandName:cr("0x17"),commandParams:[{startIndex:e[cr("0x26")]}],formatGroupId:"listStart"})}))}handleDescriptions(t){if(cr("0x8")!=t[cr("0xa")]&&"formatInline"!=t[cr("0xa")])return;const e=this[cr("0x25")].locale,{data:n}=t;if(!n)return;let o,i;switch(n[cr("0x7")]){case cr("0x16"):o=cr("0x2c"),i={type:"format",content:Qo(e,o,Qo(e,this[cr("0x1d")](n[cr("0x11")][0][cr("0xa")])))};break;case cr("0x1e"):o=n[cr("0x11")][0][cr("0x24")]?cr("0x28"):cr("0x0"),i={type:cr("0x23"),content:Qo(e,o)};break;case"listStart":o=cr("0x22"),i={type:cr("0x23"),content:Qo(e,o,n.commandParams[0][cr("0x26")])}}return i}[cr("0x4")](){const t=this[cr("0x25")][cr("0x12")][cr("0x21")](cr("0xc"));let e=Array[cr("0x1a")](this[cr("0x25")][cr("0x9")].document[cr("0xd")][cr("0x1b")]());return e.push(...t[cr("0x14")](e)),e=[...new Set(e)],e}_getSuggestionBlocks(t){const e=this[cr("0x25")][cr("0x12")][cr("0x21")]("DocumentListUtils");let n=Array[cr("0x1a")](this[cr("0x25")][cr("0x9")][cr("0x3")][cr("0xd")].getSelectedBlocks())[cr("0x15")](t);if(!n.length)return null;n=e[cr("0x14")](n);const o=[];for(const t of n)e[cr("0x30")](t)&&o[cr("0x1f")](t);return o}[cr("0x1d")](t){return cr("0x19")+this[cr("0x25")][cr("0x12")][cr("0x21")](cr("0x29"))[cr("0x2e")](t)[cr("0x1")]()+cr("0x18")+t[cr("0x1")]()[cr("0x10")](/-/g,"_")}}var ur=n(331);const dr=["model","high","getFirstRange","remove","hasClass","markerNameToElements","change","fromRange","fire","data","plugins","commands","editing","parent","showSuggestionHighlights","init","options","end","bind","markInsertion","createRange","afterExecute","unbindElementFromMarkerName","ck-suggestion-marker-split","downcastDispatcher","mapper","enableCommand","addMarker:suggestion:insertion","getFirstPosition","get","document","markerName","split","TrackChangesEditing"];var gr,fr;gr=dr,fr=184,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 requires(){return[ur.Enter]}[mr("0x1")](){const t=this.editor,e=t[mr("0x1e")][mr("0xf")](mr("0x13")),n=t[mr("0x1f")][mr("0xf")]("enter");e[mr("0xc")]("enter",(()=>{t[mr("0x14")][mr("0x1a")]((o=>{const i=t.model[mr("0x10")].selection,r=i[mr("0xe")](),x=s.LiveRange[mr("0x1b")](i[mr("0x16")]());if(n.enterBlock(o)){const n=t.model.createPositionAt(r[mr("0x21")].nextSibling,0),i=o.createRange(r,n);e[mr("0x5")](i)}else o.setSelection(o[mr("0x6")](x[mr("0x3")]));x.detach(),n[mr("0x1c")](mr("0x7"),{writer:o})}))})),t[mr("0x20")][mr("0xa")].on("addMarker:suggestion:insertion",$i(t,mr("0x12")),{priority:"high"}),t[mr("0x20")].downcastDispatcher.on("removeMarker:suggestion:insertion",((t,e,n)=>{const o=n[mr("0xb")][mr("0x19")](e[mr("0x11")]);if(o)for(const t of o)t[mr("0x18")](mr("0x9"))&&(n.mapper[mr("0x8")](t,e.markerName),n.writer[mr("0x17")](t))}),{priority:"high"}),t[mr("0x1d")].downcastDispatcher.on(mr("0xd"),((e,n,o)=>{o[mr("0x2")][mr("0x0")]&&$i(t,mr("0x12"),{showActiveMarker:!1})[mr("0x4")](this)(e,n,o)}),{priority:mr("0x15")})}}const pr=["start","FindAndReplaceUtils","plugins","has","filter","createPositionAt","enableCommand","editor","findPrevious","end","FindAndReplaceEditing","model","get","handleFindCommand","findNext","_isInDeletionRange","find","bind","item","getRange","getIntersection","suggestion:deletion","getMarkersGroup"];var br,Er;br=pr,Er=417,function(t){for(;--t;)br.push(br.shift())}(++Er);const _r=function(t,e){return pr[t-=0]};class Tr extends t.Plugin{afterInit(){if(!this.editor.plugins[_r("0x0")](_r("0x7")))return;const t=this.editor[_r("0x16")][_r("0x9")]("TrackChangesEditing");t[_r("0x3")](_r("0xd"),this[_r("0xa")][_r("0xe")](this)),t[_r("0x3")](_r("0xb")),t[_r("0x3")](_r("0x5")),t[_r("0x3")]("replace"),t.enableCommand("replaceAll")}[_r("0xa")](t,e,n={}){const o=this.editor[_r("0x16")][_r("0x9")](_r("0x15"));return t((t=>("string"==typeof e?o.findByTextCallback(e,n):e)(t)[_r("0x1")]((e=>!1===this._isInDeletionRange(e,t[_r("0xf")])))),n)}[_r("0xc")](t,e){const n=this[_r("0x4")][_r("0x8")].createRange(this[_r("0x4")][_r("0x8")][_r("0x2")](e,t[_r("0x14")]),this[_r("0x4")][_r("0x8")][_r("0x2")](e,t[_r("0x6")]));for(const t of this[_r("0x4")].model.markers[_r("0x13")](_r("0x12")))if(null!==n[_r("0x11")](t[_r("0x10")]()))return!0;return!1}}const yr=["fontBackgroundColor","formatInline","FORMAT_FONT_FAMILY","get","*Reset font color*","TrackChangesEditing","value","*Set font family:* %0","trim","fontFamily","registerAttributeLabel","_registerLegacyDescription","FontSizeEditing","fontColor","FORMAT_FONT_COLOR","config","title","find","commandParams","toLowerCase","fontSize","FontFamilyEditing","*Set font color:* %0","normalizeSizeOptions","afterInit","type","model","_enableDefaultAttributesIntegration","format","*Set font background color:* %0","editor","_descriptionFactory","*Reset font size*","has","fontColor.colors","*Reset font family*","locale","FORMAT_FONT_BACKGROUND","commandName","plugins","fontBackgroundColor.colors","FORMAT_FONT_SIZE","label"];var Cr,Ar;Cr=yr,Ar=340,function(t){for(;--t;)Cr.push(Cr.shift())}(++Ar);const kr=function(t,e){return yr[t-=0]},Ir=[{pluginName:kr("0x10"),commandName:"fontSize"},{pluginName:kr("0x19"),commandName:kr("0xd")},{pluginName:"FontColorEditing",commandName:kr("0x11")},{pluginName:"FontBackgroundColorEditing",commandName:kr("0x4")}];class Rr extends t.Plugin{[kr("0x1c")](){const t=this[kr("0x22")][kr("0x28")],e=this[kr("0x22")][kr("0x0")].get(kr("0x9"));for(const{pluginName:t,commandName:n}of Ir)this.editor[kr("0x0")][kr("0x25")](t)&&e[kr("0x1f")](n,[n]);t.t,e[kr("0x23")][kr("0xe")](kr("0x18"),Qo(t,kr("0x2"))),e[kr("0x23")][kr("0xe")](kr("0xd"),Qo(t,kr("0x6"))),e[kr("0x23")][kr("0xe")](kr("0x11"),Qo(t,kr("0x12"))),e[kr("0x23")][kr("0xe")]("fontBackgroundColor",Qo(t,kr("0x29"))),this[kr("0xf")]()}[kr("0xf")](){const t=this[kr("0x22")],e=t[kr("0x28")];t[kr("0x0")][kr("0x7")](kr("0x9"))[kr("0x23")].registerDescriptionCallback((t=>{const n=e.t;if(kr("0x5")!=t[kr("0x1d")])return;const{data:o}=t;if(null!=o){if(kr("0x18")==o[kr("0x2a")]){const t=o[kr("0x16")][0][kr("0xa")];if(t){const o=n(this[kr("0x22")].plugins[kr("0x7")]("FontSize")[kr("0x1b")](this[kr("0x22")][kr("0x13")][kr("0x7")]("fontSize.options"))[kr("0x15")]((e=>e.model==t))[kr("0x14")]).toLowerCase();return{type:kr("0x20"),content:Qo(e,"*Set font size:* %0",o)}}return{type:kr("0x20"),content:Qo(e,kr("0x24"))}}if(kr("0xd")==o.commandName){const t=o[kr("0x16")][0].value;return t?{type:kr("0x20"),content:Qo(e,kr("0xb"),t)}:{type:kr("0x20"),content:Qo(e,kr("0x27"))}}if("fontColor"==o[kr("0x2a")]){const t=o[kr("0x16")][0][kr("0xa")];if(t){const o=(0,i.normalizeColorOptions)(this[kr("0x22")].config[kr("0x7")](kr("0x26")))[kr("0x15")]((e=>e[kr("0x1e")]==t));let r=t,s="";return o&&(r=o[kr("0x3")],s=n(r)[kr("0x17")]()),{type:kr("0x20"),content:Qo(e,kr("0x1a"),s)[kr("0xc")](),color:{value:t,title:s||r}}}return{type:kr("0x20"),content:Qo(e,kr("0x8"))}}if("fontBackgroundColor"==o[kr("0x2a")]){const t=o.commandParams[0][kr("0xa")];if(t){const o=(0,i.normalizeColorOptions)(this.editor[kr("0x13")][kr("0x7")](kr("0x1")))[kr("0x15")]((e=>e[kr("0x1e")]==t));let r=t,s="";return o&&(r=o[kr("0x3")],s=n(r).toLowerCase()),{type:kr("0x20"),content:Qo(e,kr("0x21"),s)[kr("0xc")](),color:{value:t,title:s||r}}}return{type:kr("0x20"),content:Qo(e,"*Reset font background color*")}}}}))}}const Sr=["length","title","join","formatInline","copyFormat","get","fontSize","toUpperCase","model","*Remove all formatting*","entries","charAt","find","commandName","commands","formatBlock","plugins","label","fontBackgroundColor","locale","afterInit","registerDescriptionCallback","TrackChangesEditing","toLowerCase","fontSize.options","editor","format","fontColor","fontColor.colors","config","*Set format to:* %0","FontSize","normalizeSizeOptions","slice","pasteFormat","_registerLegacyDescription"];var vr,Nr;vr=Sr,Nr=239,function(t){for(;--t;)vr.push(vr.shift())}(++Nr);const Lr=function(t,e){return Sr[t-=0]};class Mr extends t.Plugin{[Lr("0x21")](){const t=this[Lr("0x2")],e=t[Lr("0x1d")][Lr("0x12")](Lr("0x23")),n=t[Lr("0x1b")][Lr("0x12")]("copyFormat"),o=t[Lr("0x1b")].get(Lr("0xb"));n&&o&&(e._enableDefaultAttributesIntegration(Lr("0xb")),e.enableCommand(Lr("0x11")),this[Lr("0xc")]())}[Lr("0xc")](){const t=this.editor,e=t[Lr("0x20")];t[Lr("0x1d")][Lr("0x12")]("TrackChangesEditing")._descriptionFactory[Lr("0x22")]((n=>{if(Lr("0x1c")!=n.type&&Lr("0x10")!=n.type)return;const{data:o}=n;if(o&&Lr("0xb")===o[Lr("0x1a")]){const n=[],i=o.commandParams[0];for(const[e,o]of Object[Lr("0x17")](i))n.push(wr(t,e,o));return n[Lr("0xd")]?{type:Lr("0x3"),content:Qo(e,Lr("0x7"),n[Lr("0xf")](", "))}:{type:Lr("0x3"),content:Qo(e,Lr("0x16"))}}}))}}function wr(t,e,n){const o=t.locale.t,r=e.split(/(?=[A-Z])/)[Lr("0xf")](" "),s=o(r[Lr("0x18")](0)[Lr("0x14")]()+r[Lr("0xa")](1))[Lr("0x0")]();if("boolean"==typeof n)return s;if(Lr("0x4")===e||Lr("0x1f")===e){const e=(0,i.normalizeColorOptions)(t.config.get(Lr("0x5")))[Lr("0x19")]((t=>t[Lr("0x15")]==n));return s+" ("+(e?o(e[Lr("0x1e")]).toLowerCase():n)+")"}if(Lr("0x13")===e&&isNaN(parseFloat(n))){const e=t.plugins[Lr("0x12")](Lr("0x8"))[Lr("0x9")](t[Lr("0x6")][Lr("0x12")](Lr("0x1"))).find((t=>t[Lr("0x15")]==n));return s+" ("+(e?o(e[Lr("0xe")])[Lr("0x0")]():n)+")"}return s+" ("+n+")"}const Or=["afterInit","*Change to:* %0","formatBlock","heading","name","plugins","has","commandParams","get","registerElementLabel","locale","paragraph","match","model","_registerLegacyDescription","ELEMENT_HEADING","format","TrackChangesEditing","_descriptionFactory","_getHeadingLevel","find","_headingOptions","config","editor","value","heading.options","view","ELEMENT_HEADING_CUSTOM"];var Fr,Dr;Fr=Or,Dr=395,function(t){for(;--t;)Fr.push(Fr.shift())}(++Dr);const Br=function(t,e){return Or[t-=0]};class Pr extends t.Plugin{[Br("0x19")](){const t=this.editor;if(!t[Br("0x2")][Br("0x3")]("HeadingEditing"))return;this[Br("0x12")]=t[Br("0x13")].get(Br("0x16"));const e=t[Br("0x7")],n=t[Br("0x2")].get(Br("0xe"));n._enableDefaultAttributesIntegration(Br("0x0"));for(const t of this[Br("0x12")])Br("0x8")!=t.model&&n._descriptionFactory[Br("0x6")](t.model,(n=>{const o=this._getHeadingLevel(t.model);return null!==o?(s=n,x=o,Qo(e,Br("0xc"),[s,x])):(i=n,r=t.title,Qo(e,Br("0x18"),[i,r]));var i,r,s,x}));this[Br("0xb")]()}_registerLegacyDescription(){const t=this[Br("0x14")],e=t[Br("0x7")];t[Br("0x2")][Br("0x5")](Br("0xe"))[Br("0xf")].registerDescriptionCallback((t=>{if(Br("0x1b")!=t.type)return;const{data:n}=t;if(n&&"heading"==n.commandName){const t=n[Br("0x4")][0][Br("0x15")],s=this[Br("0x10")](t);if(null!==s)return{type:Br("0xd"),content:Qo(e,Br("0x1a"),(1,r=s,Qo(e,Br("0xc"),[1,r])))};const x=this[Br("0x12")][Br("0x11")]((e=>e[Br("0xa")]===t)).title;return{type:Br("0xd"),content:Qo(e,Br("0x1a"),(o=1,i=x,Qo(e,"ELEMENT_HEADING_CUSTOM",[o,i])))}}var o,i,r}))}[Br("0x10")](t){var e,n;const o=t[Br("0x9")](/^heading(\d+)/);if(o)return o[1];const i=null===(e=this._headingOptions)||void 0===e?void 0:e[Br("0x11")]((e=>e[Br("0xa")]==t));if(i&&i[Br("0x17")]){const t=i.view,e=(null!==(n=t[Br("0x1")])&&void 0!==n?n:t)[Br("0x9")](/^h(\d+)/);if(e)return e[1]}return null}}const Ur=["model","title","*Set highlight:* %0","get","*Remove highlight*","highlight","FORMAT_HIGHLIGHT","registerAttributeLabel","toLowerCase","format","formatInline","find","_enableDefaultAttributesIntegration","TrackChangesEditing","afterInit","_registerLegacyDescription","commandName","locale","config","editor","highlight.options","commandParams","_descriptionFactory","plugins","has"];var jr,Gr;jr=Ur,Gr=440,function(t){for(;--t;)jr.push(jr.shift())}(++Gr);const Vr=function(t,e){return Ur[t-=0]};class Hr extends t.Plugin{[Vr("0x18")](){const t=this[Vr("0x4")];if(!t[Vr("0x8")][Vr("0x9")]("HighlightEditing"))return;const e=t[Vr("0x8")].get(Vr("0x17")),n=t[Vr("0x2")];e[Vr("0x16")]("highlight",[Vr("0xf")]),e._descriptionFactory[Vr("0x11")](Vr("0xf"),Qo(n,Vr("0x10"))),this[Vr("0x0")]()}[Vr("0x0")](){const t=this[Vr("0x4")],e=t[Vr("0x2")];t[Vr("0x8")][Vr("0xd")]("TrackChangesEditing")[Vr("0x7")].registerDescriptionCallback((n=>{if(Vr("0x14")!=n.type)return;const{data:o}=n;if(o&&Vr("0xf")==o[Vr("0x1")]){const n=e.t,i=o[Vr("0x6")][0].value;if(i){const o=t[Vr("0x3")].get(Vr("0x5"))[Vr("0x15")]((t=>t[Vr("0xa")]==i)),r=n(o[Vr("0xb")])[Vr("0x12")]();return{type:Vr("0x13"),content:Qo(e,Vr("0xc"),r),color:{value:o.color,title:o[Vr("0xb")]}}}return{type:Vr("0x13"),content:Qo(e,Vr("0xe"),Qo(e,Vr("0x10")))}}}))}}const zr=["ck-horizontal-line","div","afterInit","has","elementToStructure","dataDowncast","get","HorizontalLineEditing","enableCommand","horizontalLine","conversion","addClass","TrackChangesEditing","insert","registerElementLabel","editor","locale","plugins","createEmptyElement","ELEMENT_HORIZONTAL_LINE","createContainerElement"];var Wr,Kr;Wr=zr,Kr=365,function(t){for(;--t;)Wr.push(Wr.shift())}(++Kr);const qr=function(t,e){return zr[t-=0]};class Xr extends t.Plugin{[qr("0xf")](){const t=this[qr("0x7")];if(!t[qr("0x9")][qr("0x10")](qr("0x14")))return;t.plugins.get("TrackChangesEditing")[qr("0x0")]("horizontalLine");const e=t.plugins[qr("0x13")](qr("0x4")),n=t[qr("0x8")];e._descriptionFactory[qr("0x6")](qr("0x1"),(t=>Qo(n,qr("0xb"),t))),t[qr("0x2")].for(qr("0x12"))[qr("0x11")]({model:qr("0x1"),view:(t,{writer:e,options:n})=>{if(!n.showSuggestionHighlights)return null;const o=e[qr("0xc")](qr("0xe")),i=e[qr("0xa")]("hr");return e[qr("0x3")](qr("0xd"),o),e[qr("0x5")](e.createPositionAt(o,0),i),o},converterPriority:"high"})}}const $r=["_registerLegacyDescription","nodeAfter","editor","_descriptionFactory","attribute","format","_enableDefaultAttributesIntegration","value","commandName","get","rawHtml","plugins","formatBlock","getFirstRange","TrackChangesEditing","key","has","ELEMENT_HTML_EMBED","locale","type","htmlEmbed","afterInit"];var Zr,Yr;Zr=$r,Yr=159,function(t){for(;--t;)Zr.push(Zr.shift())}(++Yr);const Jr=function(t,e){return $r[t-=0]};class Qr extends t.Plugin{[Jr("0x10")](){const t=this.editor;if(!t[Jr("0x6")][Jr("0xb")]("HtmlEmbed"))return;const e=t[Jr("0x6")][Jr("0x4")](Jr("0x9")),n=t[Jr("0xd")];e._descriptionFactory.registerElementLabel(Jr("0x5"),(t=>Qo(n,Jr("0xc"),t))),e[Jr("0x1")](Jr("0xf"),[],[Jr("0x2")]),e[Jr("0x14")].registerDescriptionCallback((t=>{if(Jr("0x15")!=t[Jr("0xe")])return;const{data:e}=t;if(e&&Jr("0x2")==e[Jr("0xa")]&&t[Jr("0x8")]().start[Jr("0x12")].is("element",Jr("0x5"))){const t=Qo(n,Jr("0xc"));return{type:Jr("0x0"),content:Qo(n,"*Change %0 content*",t)}}})),this[Jr("0x11")]()}[Jr("0x11")](){const t=this[Jr("0x13")],e=t[Jr("0xd")];t.plugins[Jr("0x4")](Jr("0x9"))[Jr("0x14")].registerDescriptionCallback((t=>{if(Jr("0x7")!=t[Jr("0xe")])return;const{data:n}=t;if(n&&Jr("0xf")==n[Jr("0x3")]){const t=Qo(e,Jr("0xc"));return{type:Jr("0x0"),content:Qo(e,"*Change %0 content*",t)}}}))}}const ts=["insertImage","join","ELEMENT_CAPTION","markBlockFormat","resizedWidth","uploadImage","ImageResize","registerDescriptionCallback","getClosestSelectedImageElement","insertion","ImageCaptionUtils","Inline image to block image","forceDefaultExecution","plugins","ImageUploadEditing","schema","toggleImageCaption","_registerLegacyDescription","ELEMENT_IMAGE","accept","*Set image width:* %0","discard","convertBlockImageToInline","chain","imageTextAlternative","imageTypeBlock","filter","type","markInsertion","addObject","ImageBlockEditing","getFirstRange","registerAttributeLabel","has","subType","*Reset image width*","element","newValue","imageStylePreApply","isBlockImage","selection","backward","attribute","isCollapsed","TrackChangesEditing","getContainedElement","_descriptionFactory","commandName","imageTypeInline","caption","removeObject","previous","alt","fromPosition","findIndex","length","commandParams","formatBlock","_enableDefaultAttributesIntegration","deletion","*Remove image text alternative*","width","*Set image text alternative:* %0","start","change","Block image to inline image","formatInline","detach","document","createRangeOn","ELEMENT_INLINE_IMAGE","imageInline","get","createRange","forward","registerCustomCallback","ImageInlineEditing","resizeImage","end","ImageUtils","ImageCaptionEditing","_findSuggestions","isBefore","_suggestionFactory","ImageEditing","imageCaption","toPrevious","afterInit","locale","markDeletion","getSuggestionCallback","isEqual","registerElementLabel","getCaptionFromImageModelElement","format","getNearestSelectionRange","model","convertInlineImageToBlock","editor","enableCommand"];var es,ns;es=ts,ns=155,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class is extends t.Plugin{[os("0x20")](){const t=this[os("0x2b")];if(!t.plugins[os("0x4e")](os("0x1d")))return;const e=t[os("0x3a")][os("0x11")](os("0x59")),n=t[os("0x3a")][os("0x11")](os("0x18")),o=t[os("0x21")];e[os("0x2c")](os("0x2d")),e[os("0x5b")][os("0x25")]("imageBlock",(t=>Qo(o,os("0x3f"),t))),e[os("0x5b")][os("0x25")](os("0x10"),(t=>Qo(o,os("0xf"),t))),e._descriptionFactory[os("0x25")](os("0x5e"),(()=>Qo(o,os("0x2f")))),t[os("0x3a")][os("0x4e")](os("0x3b"))&&e[os("0x2c")](os("0x32")),t[os("0x3a")][os("0x4e")](os("0x4b"))&&t[os("0x3a")].has(os("0x15"))&&(e.enableCommand(os("0x5d"),((o,i)=>{const r=n[os("0x35")](t[os("0x29")][os("0xd")][os("0x55")]);t.model[os("0x9")]((()=>{e[os("0x30")](r,{commandName:os("0x5d"),commandParams:[i]},[],"convertBlockImageToInline")}))})),e.enableCommand(os("0x46"),((o,i)=>{t.model[os("0x9")]((r=>{let x=n[os("0x35")](t.model[os("0xd")][os("0x55")]),a=r[os("0xe")](x);const c=s.LivePosition[os("0x62")](a[os("0x8")],os("0x1f")),l=s.LivePosition[os("0x62")](a[os("0x17")],"toNext");e[os("0x39")]((()=>o(i))),x=n[os("0x35")](t[os("0x29")][os("0xd")].selection),a=r[os("0xe")](x);const u=r[os("0x12")](c,l);c[os("0xc")](),l[os("0xc")](),e.markBlockFormat(x,{commandName:os("0x5d"),commandParams:[i]},[],os("0x2a")),u[os("0x8")][os("0x1b")](a[os("0x8")])&&e[os("0x49")](r.createRange(u[os("0x8")],a[os("0x8")]),os("0x2a")),a[os("0x17")].isBefore(u.end)&&e.markInsertion(r[os("0x12")](a.end,u[os("0x17")]),os("0x2a"))}))})),e._suggestionFactory[os("0x14")]("formatBlock","convertInlineImageToBlock",os("0x2e"),(()=>!1)),e[os("0x1c")][os("0x14")]("formatBlock",os("0x2a"),os("0x40"),(()=>!1)),e._suggestionFactory[os("0x14")](os("0x2"),"convertInlineImageToBlock",os("0x42"),e[os("0x1c")].getSuggestionCallback(os("0x2"),"",os("0x40"))),e[os("0x1c")][os("0x14")](os("0x36"),os("0x2a"),os("0x2e"),(()=>!1)),e._suggestionFactory[os("0x14")]("insertion",os("0x2a"),os("0x42"),(([n])=>{const o=e[os("0x1c")][os("0x23")]("insertion","",os("0x42"));let i=n[os("0x8")],r=n.end;const s=t[os("0x29")].schema[os("0x28")](i,os("0x56")),x=t[os("0x29")][os("0x3c")][os("0x28")](r,os("0x13"));s[os("0x58")]&&(i=s[os("0x8")]),x[os("0x58")]&&(r=x[os("0x17")]),o([t[os("0x29")][os("0x12")](i,r)])})),e[os("0x1c")][os("0x14")](os("0x2"),"convertInlineImageToBlock","chain",x),e[os("0x1c")].registerCustomCallback(os("0x36"),os("0x2a"),os("0x44"),x)),t.plugins[os("0x4e")](os("0x19"))&&(e.enableCommand(os("0x3d"),((o,i)=>{const r=t[os("0x3a")][os("0x11")](os("0x37"));let s=n[os("0x35")](t[os("0x29")][os("0xd")][os("0x55")]),x=r[os("0x26")](s);t.model[os("0x9")]((()=>{if(x)return void e[os("0x22")](t[os("0x29")][os("0xe")](x));const a=n[os("0x54")](s);o(i),s=n[os("0x35")](t[os("0x29")][os("0xd")][os("0x55")]),x=r[os("0x26")](s),e.markInsertion(t[os("0x29")][os("0xe")](x),a?null:os("0x1e"))}))})),e._suggestionFactory[os("0x14")](os("0x36"),"imageCaption",os("0x44"),x));const i=[{type:os("0x2"),subType:os("0x53")},{type:os("0x36"),subType:os("0x1e")},{type:os("0x2"),subType:"convertInlineImageToBlock"},{type:os("0x36"),subType:os("0x2a")}];function r(t,o){const r=i[os("0x63")]((({type:e,subType:n})=>t[os("0x48")]==e&&t.subType==n)),s=i[os("0x63")]((({type:t,subType:e})=>o.type==t&&o[os("0x4f")]==e));if(r<0||s<0)return!1;const x=t[os("0x4c")](),a=o.getFirstRange();if((0==r||1==r)&&2==s&&x.isIntersecting(a))return!0;if(2==r&&3==s){const t=e[os("0x1a")](x,os("0x36"))[os("0x47")]((({suggestion:t,meta:e})=>e.isOwn&&"convertInlineImageToBlock"==t[os("0x4f")]));if(t[os("0x0")]>1&&a[os("0x17")][os("0x24")](x[os("0x8")]))return!0;if(1==t[os("0x0")]&&(x.start[os("0x24")](a.end)||x[os("0x17")][os("0x24")](a[os("0x8")])))return!0}if(3==r&&3==s&&x.start[os("0x1b")](a.start)){const t=x[os("0x17")].nodeAfter,e=a[os("0x8")].nodeBefore;return n[os("0x54")](t)&&t===e}return!1}function x(t,e){return r(t,e)?[t,e]:r(e,t)?[e,t]:null}t[os("0x3a")][os("0x4e")](os("0x33"))&&(e[os("0x3")](os("0x16"),[],[os("0x31")]),e[os("0x5b")][os("0x4d")](os("0x31"),Qo(o,"FORMAT_IMAGE_SIZE"))),t[os("0x3a")][os("0x4e")]("ImageTextAlternativeEditing")&&e._enableDefaultAttributesIntegration(os("0x45"),[],["alt"]),e._descriptionFactory[os("0x34")]((t=>{if(i.find((({type:e,subType:n})=>t[os("0x48")]==e&&t[os("0x4f")]==n)))return t[os("0x60")]?{}:void 0})),e[os("0x5b")][os("0x34")]((t=>{if(os("0x36")==t[os("0x48")]||os("0x4")==t.type){const e=t[os("0x5a")]();if(e&&e.is(os("0x51"),"caption"))return{type:os("0x36")==t[os("0x48")]?os("0x4a"):os("0x5f"),element:e,quantity:1}}})),e._descriptionFactory[os("0x34")]((t=>"formatBlock"==t.type&&os("0x2a")==t[os("0x4f")]?{type:os("0x27"),content:os("0x38")}:os("0x2")==t[os("0x48")]&&os("0x43")==t[os("0x4f")]?{type:os("0x27"),content:os("0xa")}:void 0)),e[os("0x5b")][os("0x34")]((t=>{if(os("0x57")!=t[os("0x48")])return;const{data:e}=t;if(!e||os("0x61")!=e.key)return;const n=e[os("0x52")];return n?{type:"format",content:Qo(o,os("0x7"),'"'+n+'"')}:{type:os("0x27"),content:Qo(o,os("0x5"))}})),this[os("0x3e")]()}[os("0x3e")](){const t=this[os("0x2b")],e=t[os("0x21")];t[os("0x3a")][os("0x11")](os("0x59"))._descriptionFactory[os("0x34")]((t=>{if(os("0x2")!=t.type&&os("0xb")!=t[os("0x48")])return;const{data:n}=t;if(n){if(os("0x45")==n[os("0x5c")]){const t=n[os("0x1")][0][os("0x52")];return t?{type:"format",content:Qo(e,"*Set image text alternative:* %0",'"'+t+'"')}:{type:os("0x27"),content:Qo(e,os("0x5"))}}if(os("0x16")==n.commandName){const t=n[os("0x1")][0][os("0x6")];return t?{type:"format",content:Qo(e,os("0x41"),t)}:{type:os("0x27"),content:Qo(e,os("0x50"))}}}}))}}const rs=["_suggestionFactory","editor","ImageEditing","has","_handleLegacySuggestions","getSuggestionCallback","format","TrackChangesEditing","registerCustomCallback","_registerLegacyDescription","afterInit","attribute","discard","_descriptionFactory","get","locale","plugins","formatInline","accept","type","registerDescriptionCallback","newValue","_enableDefaultAttributesIntegration","src","*Replace image URL*","replaceImageSource","formatBlock"];var ss,xs;ss=rs,xs=439,function(t){for(;--t;)ss.push(ss.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0x3")](){if(!this[as("0x15")][as("0x9")][as("0x17")](as("0x16")))return;const t=this[as("0x15")][as("0x8")],e=this.editor[as("0x9")][as("0x7")](as("0x0"));e[as("0xf")]("replaceImageSource",[],["src"]),e._descriptionFactory.registerDescriptionCallback((e=>{if(as("0x4")!=e[as("0xc")])return;const{data:n}=e;return n&&as("0x10")==n.key?n[as("0xe")]&&n.oldValue?{type:as("0x1a"),content:Qo(t,as("0x11"))}:{type:"format",content:""}:void 0})),this[as("0x18")]()}[as("0x18")](){const t=this[as("0x15")].plugins[as("0x7")](as("0x0"));t._suggestionFactory[as("0x1")](as("0x13"),as("0x12"),as("0xb"),t[as("0x14")][as("0x19")](as("0x13"),null,as("0x5"))),t[as("0x14")].registerCustomCallback("formatBlock",as("0x12"),as("0x5"),t[as("0x14")][as("0x19")](as("0x13"),null,as("0xb"))),this[as("0x2")]()}_registerLegacyDescription(){const t=this[as("0x15")],e=t[as("0x8")];t.plugins[as("0x7")](as("0x0"))[as("0x6")][as("0xd")]((t=>{if(as("0x13")!=t[as("0xc")]&&as("0xa")!=t[as("0xc")])return;const{data:n}=t;return n&&as("0x12")==n.commandName?{type:as("0x1a"),content:Qo(e,"*Format:* replace image URL")}:void 0}))}}const ls=["has","start","isEqual","document","getContainedElement","getClosestSelectedImageElement","nodeAfter","imageStylePostApply","commandReversedParams","isBlockImage","isIntersecting","ImageStyleEditing","length","refresh","chain","newRange","getFirstRange","isInlineImage","normalizedStyles","value","getSuggestion","Users","plugins","head","shouldConvertImageType","filter","_findSuggestions","subType","type","markBlockFormat","join","locale","isOwn","markInlineFormat","_suggestionFactory","formatInline","commandName","side","imageStyle","findIndex","_descriptionFactory","ImageUtils","format","setImageNaturalSizeAttributes","next","accept","title","isInContent","get","discard","_registerLegacyDescription","isBefore","editor","registerDescriptionCallback","model","selection","name","discardSuggestion","end","imageTypeInline","convertInlineImageToBlock","imageStylePreApply","toLowerCase","hasSuggestion","formatBlock","suggestion","commands","_splitMarkerName","registerCustomCallback","imageCaption","author","insertion","createRangeOn","TrackChangesEditing"];var us,ds;us=ls,ds=453,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};class fs extends t.Plugin{afterInit(){const t=this[gs("0x2b")];if(!t.plugins[gs("0x41")]("ImageStyleEditing"))return;const n=t.plugins[gs("0x27")](gs("0x40")),o=t.plugins[gs("0x27")](gs("0x20")),i={};n.enableCommand(gs("0x1d"),((i,r)=>{const s=t[gs("0xd")][gs("0x27")](gs("0xc")).me,x=t[gs("0x39")].get(gs("0x1d"));let a=o[gs("0x46")](t[gs("0x2d")][gs("0x44")].selection),c=t[gs("0x2d")][gs("0x3f")](a),l=x.value;if(l==r[gs("0xa")])return;const u={commandName:gs("0x1d"),commandParams:[r],formatGroupId:(0,e.uid)()};t[gs("0x2d")].change((()=>{if(n.getSuggestions().filter((t=>t.isInContent&&s==t[gs("0x3d")]&&("formatBlock"==t[gs("0x13")]||"formatInline"==t[gs("0x13")])&&(gs("0x34")==t[gs("0x12")]||"imageStylePostApply"==t[gs("0x12")])&&t[gs("0x7")]()[gs("0x43")](c))).forEach((t=>n[gs("0x30")](t[gs("0xe")]))),a=o[gs("0x46")](t[gs("0x2d")][gs("0x44")].selection),c=t[gs("0x2d")][gs("0x3f")](a),x[gs("0x4")](),t[gs("0x39")][gs("0x27")](gs("0x32"))[gs("0x4")](),t[gs("0x39")][gs("0x27")]("imageTypeBlock")[gs("0x4")](),l=x[gs("0xa")],l!=r[gs("0xa")])return o[gs("0x8")](a)&&x[gs("0xf")](r[gs("0xa")],a)?(i({...r,setImageSizes:!1}),a=o[gs("0x46")](t.model[gs("0x44")][gs("0x2e")]),void n.markBlockFormat(a,{...u,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],gs("0x34"))):void(o.isBlockImage(a)?n[gs("0x14")](a,u,[],gs("0x48")):n[gs("0x18")](c,u,gs("0x48")))}))}));for(const e of t.plugins[gs("0x27")](gs("0x2"))[gs("0x9")])i[e[gs("0x2f")]]=e[gs("0x25")][gs("0x35")]();n[gs("0x19")].registerCustomCallback(gs("0x37"),gs("0x34"),"join",(()=>!1)),n[gs("0x19")][gs("0x3b")](gs("0x37"),gs("0x48"),gs("0x15"),(()=>!1)),n[gs("0x19")].registerCustomCallback(gs("0x1a"),gs("0x48"),gs("0x15"),(()=>!1)),n[gs("0x19")].registerCustomCallback(gs("0x37"),"imageStylePreApply",gs("0x24"),(([t])=>{o[gs("0x22")](t[gs("0x45")]())})),n[gs("0x19")][gs("0x3b")]("formatBlock",gs("0x34"),gs("0x28"),((t,e)=>{n[gs("0x19")].getSuggestionCallback(gs("0x37"),"","accept")(t,{commandName:e.commandName,commandParams:e[gs("0x49")]})})),n[gs("0x19")][gs("0x3b")](gs("0x37"),gs("0x34"),gs("0x5"),(function(t,e){return s(t,e)?[t,e]:s(e,t)?[e,t]:null}));const r=[{type:"formatBlock",subType:gs("0x34")},{type:gs("0x3e"),subType:gs("0x3c")},{type:gs("0x37"),subType:gs("0x33")},{type:gs("0x3e"),subType:gs("0x33")}];function s(t,e){const i=r.findIndex((({type:e,subType:n})=>t[gs("0x13")]==e&&t[gs("0x12")]==n)),s=r[gs("0x1e")]((({type:t,subType:n})=>e[gs("0x13")]==t&&e.subType==n));if(i<0||s<0)return!1;const x=t[gs("0x7")](),a=e[gs("0x7")]();if((0==i||1==i)&&2==s&&x[gs("0x1")](a))return!0;if(2==i&&3==s){const t=n[gs("0x11")](x,gs("0x3e"))[gs("0x10")]((({suggestion:t,meta:e})=>e[gs("0x17")]&&"convertInlineImageToBlock"==t[gs("0x12")]));if(t[gs("0x3")]>1&&a[gs("0x31")][gs("0x43")](x[gs("0x42")]))return!0;if(1==t[gs("0x3")]&&(x[gs("0x42")][gs("0x43")](a.end)||x.end[gs("0x43")](a[gs("0x42")])))return!0}if(3==i&&3==s&&x[gs("0x42")][gs("0x2a")](a.start)){const t=x.end[gs("0x47")],e=a.start.nodeBefore;return o[gs("0x0")](t)&&t===e}return!1}t[gs("0x2d")][gs("0x44")].registerPostFixer((()=>{let e=!1;const i=Array.from(t[gs("0x2d")].document.differ.getChangedMarkers());for(const{name:t,data:r}of i){const{group:i,type:s,subType:x,id:a}=n[gs("0x3a")](t);if(gs("0x38")==i&&n[gs("0x36")](a)){if(gs("0x37")==s&&(gs("0x34")==x||gs("0x48")==x)){const t=n.getSuggestion(a);if(r[gs("0x6")]){const i=t[gs("0x7")]()[gs("0x45")]();if(o[gs("0x0")](i))continue;n.discardSuggestion(t),e=!0}}if(gs("0x3e")==s&&gs("0x3c")==x&&!r[gs("0x6")]){const t=n[gs("0xb")](a);t[gs("0x23")]&&t[gs("0x23")][gs("0x26")]&&(n[gs("0x30")](t[gs("0x23")]),e=!0)}}}return e})),this[gs("0x29")](i)}[gs("0x29")](t){const e=this[gs("0x2b")],n=e[gs("0x16")];e.plugins.get("TrackChangesEditing")[gs("0x1f")][gs("0x2c")]((e=>{if("formatBlock"!=e[gs("0x13")]&&gs("0x1a")!=e[gs("0x13")])return;const{data:o}=e;if(!o||gs("0x1d")!=o[gs("0x1b")])return;const i=o.commandParams[0][gs("0xa")];return r=gs("0x1c")===i?Qo(n,"FORMAT_SIDE_IMAGE"):t[i]||i,{type:gs("0x21"),content:Qo(n,"*Format:* %0",r)};var r}))}}const ms=["commands","listenTo","dataInsert","editor","_trackChangesExecuted","get","_handleImportedData","high","track_changes","lowest","trackChanges","plugins","enableCommand","collaboration_features","bind","forEach","afterInit","value","_trackChangesValueDuringImport","TrackChangesEditing","importWord","execute","_setSuggestionData"];var hs,ps;hs=ms,ps=118,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("0xf")]=!1,this._trackChangesExecuted=!1}[bs("0xd")](){const t=this[bs("0x0")],e=t[bs("0x14")][bs("0x2")]("importWord"),n=t.commands.get(bs("0x7"));e&&(e.on("execute",((t,[,e])=>{this[bs("0xf")]=n[bs("0xe")],e[bs("0xa")][bs("0x5")]=!this[bs("0xf")]}),{priority:bs("0x4")}),this.listenTo(e,"dataInsert",this[bs("0x3")][bs("0xb")](this)),this[bs("0x15")](e,bs("0x16"),(()=>{this[bs("0x1")]&&(n[bs("0x12")](),this[bs("0x1")]=!1)}),{priority:bs("0x6")}),t[bs("0x8")][bs("0x2")](bs("0x10"))[bs("0x9")]("importWord"))}[bs("0x3")](t,e){const{suggestions:n}=e,o=this[bs("0x0")][bs("0x14")][bs("0x2")](bs("0x7")),i=o[bs("0xe")];this._trackChangesValueDuringImport!==i&&(o[bs("0x12")](),this._trackChangesExecuted=!0),n&&n[bs("0xc")]((({id:t,type:e,author:n,created_at:o})=>{const i={id:t,type:e,authorId:this[bs("0x0")][bs("0x8")][bs("0x2")]("Users").me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:bs("0x11")}}};this[bs("0x0")][bs("0x8")][bs("0x2")](bs("0x10"))[bs("0x13")](i)}))}}const _s=["_registerLegacyDescription","formatBlock","outdentBlock","enableCommand","commandName","registerAttributeLabel","get","locale","TrackChangesEditing","registerDescriptionCallback","indentBlock","has","blockIndent","IndentBlock","_descriptionFactory","afterInit","getItems","_registerBlockAttribute","format","indent","plugins","type","_enableDefaultAttributesIntegration","IndentEditing","editor","outdent","getItemLabel"];var Ts,ys;Ts=_s,ys=359,function(t){for(;--t;)Ts.push(Ts.shift())}(++ys);const Cs=function(t,e){return _s[t-=0]};class As extends t.Plugin{[Cs("0x7")](){const t=this[Cs("0x10")],e=t[Cs("0xc")][Cs("0x19")](Cs("0x0"));if(t[Cs("0xc")][Cs("0x3")](Cs("0xf"))&&(e[Cs("0x16")](Cs("0xb")),e.enableCommand(Cs("0x11"))),t[Cs("0xc")][Cs("0x3")](Cs("0x5")))for(const t of[Cs("0x2"),Cs("0x15")])e[Cs("0xe")](t);const n=t[Cs("0x1a")];e[Cs("0x9")](Cs("0x4")),e[Cs("0x6")][Cs("0x18")](Cs("0x4"),Qo(n,"FORMAT_INDENT")),this[Cs("0x13")]()}_registerLegacyDescription(){const t=this[Cs("0x10")],e=t[Cs("0x1a")],n=t[Cs("0xc")][Cs("0x19")]("TrackChangesEditing");n[Cs("0x6")][Cs("0x1")]((t=>{if(Cs("0x14")!=t[Cs("0xd")])return;const{data:o}=t;if(!o)return;if(Cs("0x2")!=o[Cs("0x17")]&&Cs("0x15")!=o.commandName)return;const i=t[Cs("0x8")]()[0],r=n._descriptionFactory[Cs("0x12")](i);return Cs("0x2")==o[Cs("0x17")]?{type:Cs("0xa"),content:Qo(e,"*Indent:* %0",r)}:Cs("0x15")==o[Cs("0x17")]?{type:Cs("0xa"),content:Qo(e,"*Outdent:* %0",r)}:void 0}))}}var ks,Is,Rs=["init","plugins","get","editor","enableCommand","TrackChangesEditing","requires"];ks=Rs,Is=171,function(t){for(;--t;)ks.push(ks.shift())}(++Is);var Ss=function(t,e){return Rs[t-=0]};class vs extends t.Plugin{static get[Ss("0x3")](){return[Hi.Input]}[Ss("0x4")](){this[Ss("0x0")][Ss("0x5")][Ss("0x6")](Ss("0x2"))[Ss("0x1")]("input")}}const Ns=["key","label","format","LinkEditing","type","has","commandParams","plugins","locale","registerDescriptionCallback","*Remove link*","_descriptionFactory","_enableDefaultAttributesIntegration","get","commandName","unlink","newValue","*Set link:* %0","attribute","editor","manualDecorators","linkHref","link","toLowerCase","commands","TrackChangesEditing","map","_registerLegacyDescription"];var Ls,Ms;Ls=Ns,Ms=444,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("0xb")][ws("0x9")](ws("0x7")))return;const e=t[ws("0xb")][ws("0x11")](ws("0x1")),n=t[ws("0x0")][ws("0x11")](ws("0x1a"));e[ws("0x10")](ws("0x1a"),["linkHref",...n[ws("0x18")][ws("0x2")]((t=>t.id))]),e._enableDefaultAttributesIntegration(ws("0x13"));for(const t of n[ws("0x18")])e._descriptionFactory.registerAttributeLabel(t.id,"link ("+t[ws("0x5")][ws("0x1b")]()+")");e[ws("0xf")][ws("0xd")]((e=>{if(ws("0x16")!=e[ws("0x8")])return;const{data:n}=e;if(!n||ws("0x19")!=n[ws("0x4")])return;const o=n[ws("0x14")],i=t.locale;return{type:"format",content:null==o?Qo(i,"*Remove link*"):Qo(i,ws("0x15"),'"'+o+'"')}})),this[ws("0x3")]()}[ws("0x3")](){const t=this[ws("0x17")],e=t[ws("0xc")];t[ws("0xb")][ws("0x11")](ws("0x1"))[ws("0xf")][ws("0xd")]((t=>{if("formatInline"!=t[ws("0x8")])return;const{data:n}=t;if(n){if(ws("0x1a")==n[ws("0x12")]){const t=n[ws("0xa")][0];return{type:"format",content:Qo(e,ws("0x15"),'"'+t+'"')}}return ws("0x13")==n[ws("0x12")]?{type:ws("0x6"),content:Qo(e,ws("0xe"))}:void 0}}))}}const Fs=["ListEditing","parent","enableCommand","document","end","has","bulleted","*Uncheck item*","getAttribute","format","checkChild","outdentList","element","before","model","_descriptionFactory","commandName","get","registerDescriptionCallback","registerElementLabel","execute","formatInline","slice","checkTodoList","createPositionAt","value","replace","numbered","locale","paragraph","nextSibling","ELEMENT_TODO_LIST","blockName","getSelectedBlocks","*Change to:* %0","numberedList","change","name","plugins","_selectedElements","ELEMENT_LIST_ITEM","bulletedList","List","isObject","filter","formatBlock","schema","previousSibling","listItem","TodoListEditing","length","selection","listType","listIndent","indentList","todoList","commands","todoListChecked","TrackChangesEditing","type","add","markBlockFormat","from"];var Ds,Bs;Ds=Fs,Bs=465,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.editor,e=t[Ps("0x4")];if(!t[Ps("0xe")].has(Ps("0x27")))return;const n=t[Ps("0xe")][Ps("0x38")](Ps("0x22")),o=t[Ps("0xe")][Ps("0x2c")](Ps("0x19"));function i(e){return()=>{const o=t[Ps("0x35")][Ps("0x2a")].selection,i=t.commands[Ps("0x38")](e);if(i.value)return void t[Ps("0x3b")](Ps("0x5"),{});const r=e[Ps("0x3d")](0,-4),s=function(t,e,n){let o=Array[Ps("0x26")](t).filter((t=>{return e=t,(o=n)[Ps("0x31")](e[Ps("0x28")],Ps("0x18"))&&!o[Ps("0x13")](e);var e,o}));o=o[Ps("0x14")]((t=>!t.is(Ps("0x33"),Ps("0x18"))||t[Ps("0x2f")](Ps("0x1c"))!=e));const i=new Set;for(const t of o)t.is(Ps("0x33"),Ps("0x18"))?i.add(js(t)):i[Ps("0x24")](t);return Array[Ps("0x26")](i)}(o[Ps("0x9")](),r,t.model[Ps("0x16")]);t[Ps("0x35")].change((()=>{for(const t of s)n.markBlockFormat(t,{commandName:e,commandParams:[{forceValue:!i.value}],formatGroupId:Ps("0x8")},Gs(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[Ps("0x26")](t);const n=e.findIndex((t=>Ps("0x18")!=t[Ps("0xd")]));return n>-1&&(e=e[Ps("0x3d")](0,n)),e}(t.model[Ps("0x2a")][Ps("0x1b")][Ps("0x9")]()),i=t[Ps("0x35")].createRange(t[Ps("0x35")].createPositionAt(o[0],Ps("0x34")),t[Ps("0x35")][Ps("0x0")](o[o[Ps("0x1a")]-1],Ps("0x2b")));t[Ps("0x35")][Ps("0xc")]((()=>{n[Ps("0x25")](i,{commandName:e,commandParams:[],formatGroupId:Ps("0x1d")},function(t){const e=new Set;for(const n of t){let t=n[Ps("0x6")];for(;t&&t[Ps("0x2f")]("listIndent")>n.getAttribute(Ps("0x1d"));)e[Ps("0x24")](t),t=t[Ps("0x6")]}return Array.from(e)}(o))}))}}n[Ps("0x29")](Ps("0xb"),i("numberedList")),n[Ps("0x29")](Ps("0x11"),i(Ps("0x11"))),o&&n.enableCommand(Ps("0x1f"),i(Ps("0x1f"))),n.enableCommand(Ps("0x1e"),r(Ps("0x1e"))),n.enableCommand("outdentList",r(Ps("0x32"))),o&&n[Ps("0x29")](Ps("0x3e"),(()=>{const e=t[Ps("0x20")][Ps("0x38")]("checkTodoList"),o=Array[Ps("0x26")](e[Ps("0xf")]);o[Ps("0x14")]((t=>t[Ps("0x2f")](Ps("0x21"))!=e[Ps("0x1")])),t[Ps("0x35")][Ps("0xc")]((()=>{for(const t of o)n[Ps("0x25")](t,{commandName:Ps("0x3e"),commandParams:[{forceValue:!e[Ps("0x1")]}]})}))})),n[Ps("0x36")][Ps("0x3a")](Ps("0x18"),(t=>Qo(e,"ELEMENT_LIST_ITEM",t))),n[Ps("0x36")][Ps("0x39")]((t=>{if(Ps("0x15")!=t.type&&Ps("0x3c")!=t[Ps("0x23")])return;const{data:n}=t;if(n){if(Ps("0xb")==n[Ps("0x37")]||Ps("0x11")==n[Ps("0x37")]||Ps("0x1f")==n.commandName)switch(n.commandName[Ps("0x2")](Ps("0x12"),"")){case Ps("0x2d"):return o(Qo(e,"ELEMENT_BULLETED_LIST"));case Ps("0x3"):return o(Qo(e,"ELEMENT_NUMBERED_LIST"));case"todo":return o(Qo(e,Ps("0x7")))}if("indentList"==n[Ps("0x37")])return{type:Ps("0x30"),content:Qo(e,"*Indent:* %0",Qo(e,"ELEMENT_LIST_ITEM"))};if(Ps("0x32")==n[Ps("0x37")])return{type:Ps("0x30"),content:Qo(e,"*Outdent:* %0",Qo(e,Ps("0x10")))};if(Ps("0x3e")==n[Ps("0x37")])return n.commandParams[0].forceValue?{type:"format",content:Qo(e,"*Check item*")}:{type:Ps("0x30"),content:Qo(e,Ps("0x2e"))}}function o(t){return{type:Ps("0x30"),content:Qo(e,Ps("0xa"),t)}}}))}}function js(t){const e=t.getAttribute(Ps("0x1d"));if(0==e)return t;let n=t;for(;t[Ps("0x17")]&&t.previousSibling.is(Ps("0x33"),Ps("0x18"));){const o=t[Ps("0x17")][Ps("0x2f")]("listIndent");if(o==e)n=t[Ps("0x17")];else if(o<e)break;t=t[Ps("0x17")]}return n}function Gs(t){const e=[];if(t.is(Ps("0x33"),"listItem")&&t.getAttribute(Ps("0x1d"))>0){let n=t.nextSibling;for(;n&&Ps("0x18")==n[Ps("0xd")]&&n[Ps("0x2f")](Ps("0x1d"))==t.getAttribute("listIndent");)e.push(n),n=n.nextSibling}return e}const Vs=["forward","markMultiRangeBlockFormat","listReversed","listStyle","get","has","plugins","reversed","backward","flat","model","toUpperCase","listStart","startIndex","from","selection","_getSuggestionBlocks","_getSuggestionBlocksForListStyle","format","ListUtils","createRange","config","createPositionAt","ELEMENT_","getFirstPosition","*Format:* set order to regular","styles","formatInline","unshift","filter","type","length","getSelectedBlocks","parent","getSiblingNodes","_getTranslationKeyForListStyle","getAttribute","registerDescriptionCallback","map","element","*Format:* set order to reversed","TrackChangesEditing","editor","formatBlock","enableCommand","listItem","handleListStyleCommand","handleDescriptions","afterInit","*Format:* set start index to %0","replace","ListPropertiesEditing","getListTypeFromListStyleType","numbered","_LIST_","before","bind","handleListReversedCommand","change","document","push","commandParams"];var Hs,zs;Hs=Vs,zs=231,function(t){for(;--t;)Hs.push(Hs.shift())}(++zs);const Ws=function(t,e){return Vs[t-=0]};class Ks extends t.Plugin{[Ws("0x3")](){if(!this[Ws("0x3b")][Ws("0x17")][Ws("0x16")](Ws("0x6")))return;const t=this[Ws("0x3b")][Ws("0x26")][Ws("0x15")]("list.properties"),e=this[Ws("0x3b")][Ws("0x17")][Ws("0x15")](Ws("0x3a"));t[Ws("0x2b")]&&e.enableCommand(Ws("0x14"),this[Ws("0x1")].bind(this)),t[Ws("0x18")]&&e[Ws("0x3d")](Ws("0x13"),this[Ws("0xc")][Ws("0xb")](this)),t[Ws("0x1e")]&&e[Ws("0x3d")](Ws("0x1d"),this.handleListStartCommand.bind(this)),e._descriptionFactory[Ws("0x36")](this[Ws("0x2")][Ws("0xb")](this))}[Ws("0x1")](t,e={}){const n=this[Ws("0x3b")][Ws("0x17")][Ws("0x15")](Ws("0x3a")),o=this[Ws("0x22")]();this[Ws("0x3b")][Ws("0x1b")].change((()=>{n[Ws("0x12")](o,{commandName:"listStyle",commandParams:[{type:e[Ws("0x2f")]}],formatGroupId:"listStyle"})}))}handleListReversedCommand(t,e={}){const n=this[Ws("0x3b")].plugins[Ws("0x15")](Ws("0x3a")),o=this[Ws("0x21")]((t=>t.is(Ws("0x38"),Ws("0x0"))&&Ws("0x8")===t[Ws("0x35")]("listType")));if(o[Ws("0x30")]<1)return;const i=o.map((t=>this.editor[Ws("0x1b")][Ws("0x25")](this[Ws("0x3b")].model[Ws("0x27")](t,Ws("0xa")),this[Ws("0x3b")][Ws("0x1b")].createPositionAt(t,0))));this[Ws("0x3b")][Ws("0x1b")][Ws("0xd")]((()=>{n[Ws("0x12")](i,{commandName:Ws("0x13"),commandParams:[{reversed:e.reversed}],formatGroupId:Ws("0x13")})}))}handleListStartCommand(t,e={}){const n=this[Ws("0x3b")].plugins[Ws("0x15")](Ws("0x3a")),o=this[Ws("0x21")]((t=>t.is(Ws("0x38"),Ws("0x0"))&&Ws("0x8")===t[Ws("0x35")]("listType")));if(o[Ws("0x30")]<1)return;const i=o[Ws("0x37")]((t=>this[Ws("0x3b")][Ws("0x1b")][Ws("0x25")](this[Ws("0x3b")].model.createPositionAt(t,Ws("0xa")),this[Ws("0x3b")][Ws("0x1b")][Ws("0x27")](t,0))));this[Ws("0x3b")][Ws("0x1b")][Ws("0xd")]((()=>{n[Ws("0x12")](i,{commandName:Ws("0x1d"),commandParams:[{startIndex:e[Ws("0x1e")]}],formatGroupId:Ws("0x1d")})}))}[Ws("0x2")](t){if(Ws("0x3c")!=t.type&&Ws("0x2c")!=t[Ws("0x2f")])return;const e=this[Ws("0x3b")].locale,{data:n}=t;if(!n)return;let o,i;switch(n.commandName){case Ws("0x14"):o="*Change to:* %0",i={type:"format",content:Qo(e,o,Qo(e,this[Ws("0x34")](n[Ws("0x10")][0].type)))};break;case Ws("0x13"):o=n[Ws("0x10")][0][Ws("0x18")]?Ws("0x39"):Ws("0x2a"),i={type:Ws("0x23"),content:Qo(e,o)};break;case Ws("0x1d"):o=Ws("0x4"),i={type:"format",content:Qo(e,o,n[Ws("0x10")][0][Ws("0x1e")])}}return i}[Ws("0x22")](){var t,e,n,o;const i=this[Ws("0x3b")].plugins.get("ListUtils");let r=Array[Ws("0x1f")](this[Ws("0x3b")][Ws("0x1b")][Ws("0xe")].selection[Ws("0x31")]());return(null===(t=r[0])||void 0===t?void 0:t.is(Ws("0x38"),Ws("0x0")))&&r[Ws("0x2d")](...i[Ws("0x33")](this.editor[Ws("0x1b")][Ws("0xe")][Ws("0x20")][Ws("0x29")](),Ws("0x19"))),(null===(e=r[r[Ws("0x30")]-1])||void 0===e?void 0:e.is(Ws("0x38"),"listItem"))&&r[Ws("0xf")](...i[Ws("0x33")](this.editor[Ws("0x1b")][Ws("0xe")][Ws("0x20")].getLastPosition(),"forward")),r=[...new Set(r)],(null===(o=null===(n=this.editor[Ws("0x1b")][Ws("0xe")].selection[Ws("0x29")]())||void 0===n?void 0:n[Ws("0x32")])||void 0===o?void 0:o.is(Ws("0x38"),Ws("0x0")))&&(r=r[Ws("0x2e")]((t=>t.is(Ws("0x38"),Ws("0x0"))))),r}_getSuggestionBlocks(t){const e=this[Ws("0x3b")][Ws("0x17")][Ws("0x15")]("ListUtils");let n=Array.from(this.editor[Ws("0x1b")].document[Ws("0x20")][Ws("0x31")]())[Ws("0x2e")](t)[Ws("0x37")]((t=>{const n=this[Ws("0x3b")].model.createPositionAt(t,0);return[...e.getSiblingNodes(n,Ws("0x19")),...e[Ws("0x33")](n,Ws("0x11"))]}))[Ws("0x1a")]();return n=[...new Set(n)],n}[Ws("0x34")](t){return Ws("0x28")+this.editor.plugins[Ws("0x15")](Ws("0x24"))[Ws("0x7")](t)[Ws("0x1c")]()+Ws("0x9")+t[Ws("0x1c")]()[Ws("0x5")](/-/g,"_")}}const qs=["has","dataDowncast","high","for","elementToElement","_descriptionFactory","afterInit","MediaEmbedEditing","data","registerElementLabel","TrackChangesEditing","media","stop","options","get","locale","plugins","editor","attribute:url:media"];var Xs,$s;Xs=qs,$s=141,function(t){for(;--t;)Xs.push(Xs.shift())}(++$s);const Zs=function(t,e){return qs[t-=0]};class Ys extends t.Plugin{[Zs("0x11")](){const t=this[Zs("0x9")];if(!t[Zs("0x8")][Zs("0xb")](Zs("0x12")))return;const e=t[Zs("0x8")][Zs("0x6")](Zs("0x2")),n=t[Zs("0x7")];e.enableCommand("mediaEmbed"),e[Zs("0x10")][Zs("0x1")](Zs("0x3"),(t=>Qo(n,"ELEMENT_MEDIA",t))),t.conversion[Zs("0xe")](Zs("0xc"))[Zs("0xf")]({model:"media",view:(t,{writer:e,options:n})=>{if(n.showSuggestionHighlights)return e.createEmptyElement("div")},converterPriority:Zs("0xd")}),t[Zs("0x0")].downcastDispatcher.on(Zs("0xa"),((t,e,n)=>{n[Zs("0x5")].showSuggestionHighlights&&t[Zs("0x4")]()}),{priority:Zs("0xd")})}}const Js=["editor","plugins","TrackChangesEditing","MentionEditing","mention"];var Qs,tx;Qs=Js,tx=208,function(t){for(;--t;)Qs.push(Qs.shift())}(++tx);const ex=function(t,e){return Js[t-=0]};class nx extends t.Plugin{afterInit(){const t=this[ex("0x2")];t[ex("0x3")].has(ex("0x0"))&&t.plugins.get(ex("0x4")).enableCommand(ex("0x1"))}}const ox=["enableCommand","registerElementLabel","ELEMENT_PAGE_BREAK","get","_descriptionFactory","TrackChangesEditing","pageBreak","locale","editor","plugins","afterInit"];var ix,rx;ix=ox,rx=500,function(t){for(;--t;)ix.push(ix.shift())}(++rx);const sx=function(t,e){return ox[t-=0]};class xx extends t.Plugin{[sx("0x5")](){const t=this[sx("0x3")];if(!t[sx("0x4")].has("PageBreakEditing"))return;t[sx("0x4")][sx("0x9")]("TrackChangesEditing")[sx("0x6")](sx("0x1"));const e=t[sx("0x4")][sx("0x9")](sx("0x0")),n=t[sx("0x2")];e[sx("0xa")][sx("0x7")](sx("0x1"),(t=>Qo(n,sx("0x8"),t)))}}const ax=["options","span","*Insert:* %0","isTouching","*Change to:* %0","editor","bindElementToMarker","get","model","$text","addMarker:suggestion:insertion","enableCommand","consume","plugins","consumable","includes","ELEMENT_PARAGRAPH","mapper","nodeAfter","_registerLegacyDescription","name","isLimit","type","activeMarkers","locale","schema","getFirstRange","highest","commandName","markerRange","paragraph","downcastDispatcher","ck-suggestion-marker--active","markerName","insertParagraph","addClass","format","writer","start","_descriptionFactory","registerDescriptionCallback","insert","editing","TrackChangesEditing","isBlock","showSuggestionHighlights","insertion"];var cx,lx;cx=ax,lx=104,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("0x2a")];if(!t[ux("0x3")].has("Paragraph"))return;const e=t[ux("0xe")],n=t[ux("0x3")].get(ux("0x21"));n[ux("0x1d")].registerElementLabel(ux("0x14"),(t=>Qo(e,ux("0x6"),t))),n._enableDefaultAttributesIntegration(ux("0x14")),n[ux("0x1")](ux("0x18")),t[ux("0x20")][ux("0x15")].on(ux("0x0"),gx(t),{priority:ux("0x11")}),t.data[ux("0x15")].on(ux("0x0"),((e,n,o)=>{o[ux("0x25")][ux("0x23")]&&gx(t,{showActiveMarker:!1})(e,n,o)}),{priority:ux("0x11")});const o=n._descriptionFactory;o[ux("0x1e")]((n=>{if(ux("0x24")!==n[ux("0xc")])return;const{start:i,end:r}=n[ux("0x10")]();if(!i[ux("0x28")](r)||!i[ux("0x8")])return;const s=t.model[ux("0xf")],x=i.nodeAfter;return s[ux("0x22")](x)&&!s[ux("0xb")](x)&&s.checkChild(x,ux("0x2e"))?{type:ux("0x24"),content:Qo(e,ux("0x27"),o.getItemLabel(x,1))}:void 0})),this._registerLegacyDescription()}[ux("0x9")](){const t=this[ux("0x2a")],e=t.locale;t[ux("0x3")][ux("0x2c")](ux("0x21"))[ux("0x1d")][ux("0x1e")]((t=>{if("formatBlock"!=t.type)return;const{data:n}=t;return n&&ux("0x14")==n[ux("0x12")]?{type:ux("0x1a"),content:Qo(e,ux("0x29"),Qo(e,"ELEMENT_PARAGRAPH"))}:void 0}))}}function gx(t,{showActiveMarker:e=!0}={}){return(n,o,i)=>{const r=t.plugins[ux("0x2c")](ux("0x21")),s=o.markerRange[ux("0x1c")],x=o.markerRange.end,a=t[ux("0x2d")][ux("0xf")];if(!s[ux("0x28")](x)||!s[ux("0x8")])return;const c=s[ux("0x8")];if(a[ux("0x22")](c)&&!a[ux("0xb")](c)&&a.checkChild(c,ux("0x2e"))){if(!i[ux("0x4")][ux("0x2")](o[ux("0x13")],n[ux("0xa")]))return;const t=i[ux("0x1b")].createUIElement(ux("0x26"),{class:"ck-suggestion-marker-split"}),s=i[ux("0x7")].toViewPosition(x);e&&r[ux("0xd")][ux("0x5")](o.markerName)&&i.writer[ux("0x19")](ux("0x16"),t),i[ux("0x1b")][ux("0x1f")](s,t),i[ux("0x7")][ux("0x2b")](t,o[ux("0x17")])}}}const fx=["afterInit","_registerLegacyDescription","get","type","formatInline","editor","_enableDefaultAttributesIntegration","plugins","commandName","removeFormat","format","*Remove all formatting*","_descriptionFactory","locale","TrackChangesEditing"];var mx,hx;mx=fx,hx=297,function(t){for(;--t;)mx.push(mx.shift())}(++hx);const px=function(t,e){return fx[t-=0]};class bx extends t.Plugin{[px("0x3")](){const t=this[px("0x8")];t.plugins.has("RemoveFormatEditing")&&(t[px("0xa")][px("0x5")](px("0x2"))[px("0x9")](px("0xc")),this[px("0x4")]())}[px("0x4")](){const t=this[px("0x8")];t.plugins[px("0x5")](px("0x2"))[px("0x0")].registerDescriptionCallback((e=>{if("formatBlock"!=e[px("0x6")]&&px("0x7")!=e[px("0x6")])return;const{data:n}=e;return n&&px("0xc")==n[px("0xb")]?{type:px("0xd"),content:Qo(t[px("0x1")],px("0xe"))}:void 0}))}}const Ex=["goToPreviousRestrictedEditingException","enableCommand","acceptSuggestion","acceptAllSuggestions","get","plugins","has","RestrictedEditingModeEditing","afterInit","discardSuggestion","TrackChangesEditing","editor","discardAllSuggestions","discardSelectedSuggestions","acceptSelectedSuggestions"];var _x,Tx;_x=Ex,Tx=473,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const yx=function(t,e){return Ex[t-=0]};class Cx extends t.Plugin{[yx("0x0")](){const t=this[yx("0x3")];if(!t[yx("0xc")][yx("0xd")](yx("0xe")))return;const e=t[yx("0xc")][yx("0xb")](yx("0x2"));e[yx("0x8")](yx("0x7")),e[yx("0x8")]("goToNextRestrictedEditingException");const n=t[yx("0xc")][yx("0xb")](yx("0xe"));n.enableCommand("trackChanges"),n.enableCommand(yx("0x9")),n.enableCommand(yx("0x1")),n[yx("0x8")](yx("0xa")),n[yx("0x8")](yx("0x4")),n[yx("0x8")](yx("0x6")),n[yx("0x8")](yx("0x5"))}}const Ax=["consumable","get","softBreak","plugins","insert","element","enableCommand","_descriptionFactory","addClass","span","TrackChangesEditing","editing","addMarker:suggestion:deletion","addMarker:suggestion:insertion","toViewPosition","activeMarkers","bindElementToMarker","getItems","data","mapper","options","split","downcastDispatcher","writer","init","high","markerName","name","model","shiftEnter","test","ELEMENT_LINE_BREAK","registerElementLabel","ck-suggestion-marker-","createPositionBefore","locale","merge","requires","markerRange"];var kx,Ix;kx=Ax,Ix=465,function(t){for(;--t;)kx.push(kx.shift())}(++Ix);const Rx=function(t,e){return Ax[t-=0]};class Sx extends t.Plugin{static get[Rx("0x1")](){return[ur.ShiftEnter]}[Rx("0x1b")](){const t=this.editor,e=t[Rx("0x6")][Rx("0x4")](Rx("0xd"));e[Rx("0x9")](Rx("0x20")),t.editing[Rx("0x19")].on(Rx("0x10"),vx(t),{priority:Rx("0x1c")}),t[Rx("0xe")][Rx("0x19")].on(Rx("0xf"),vx(t),{priority:Rx("0x1c")}),t[Rx("0x15")][Rx("0x19")].on("addMarker:suggestion",((e,n,o)=>{o[Rx("0x17")].showSuggestionHighlights&&vx(t,{showActiveMarker:!1})(e,n,o)})),e[Rx("0xa")][Rx("0x23")]("softBreak",(e=>Qo(t[Rx("0x26")],Rx("0x22"),e)))}}function vx(t,{showActiveMarker:e=!0}={}){return(n,o,i)=>{const r=t[Rx("0x6")][Rx("0x4")](Rx("0xd"));if(!i[Rx("0x3")][Rx("0x21")](o[Rx("0x2")],n[Rx("0x1e")]))return;const s=t[Rx("0x1f")];for(const t of o[Rx("0x2")][Rx("0x14")]()){if(!t.is(Rx("0x8"),Rx("0x5")))continue;const n="deletion"==o[Rx("0x1d")].split(":")[1]?Rx("0x0"):Rx("0x18"),x=i[Rx("0x1a")].createUIElement(Rx("0xc"),{class:Rx("0x24")+n}),a=i[Rx("0x16")][Rx("0x11")](s[Rx("0x25")](t));e&&r[Rx("0x12")].includes(o[Rx("0x1d")])&&i.writer[Rx("0xb")]("ck-suggestion-marker--active",x),i[Rx("0x1a")][Rx("0x7")](a,x),i.mapper[Rx("0x13")](x,o[Rx("0x1d")])}}}const Nx=["commandParams","document","FORMAT_RESTRICTED_ENABLED","get","value","forceValue","formatBlock","afterInit","markInlineFormat","selection","editor","restrictedEditingException","has","type","TrackChangesEditing","change","getRanges","StandardEditingModeEditing","format","plugins","registerDescriptionCallback","model","formatInline","locale","commandName","commands","isCollapsed"];var Lx,Mx;Lx=Nx,Mx=329,function(t){for(;--t;)Lx.push(Lx.shift())}(++Mx);const wx=function(t,e){return Nx[t-=0]};class Ox extends t.Plugin{[wx("0x2")](){const t=this[wx("0x5")],e=t[wx("0x10")],n=t[wx("0x12")];if(!t[wx("0xe")][wx("0x7")](wx("0xc")))return;const o=t[wx("0xe")][wx("0x19")](wx("0x9")),i=wx("0x6"),r=t[wx("0x14")][wx("0x19")](i);o.enableCommand(i,((t,n={})=>{const s=e[wx("0x17")][wx("0x4")];if(s[wx("0x15")])return void t(n);const x=void 0!==n[wx("0x0")]?n.forceValue:!r[wx("0x1a")];e[wx("0xa")]((()=>{const t=Array.from(s[wx("0xb")]());for(const n of t){const t=x?[n]:Xi(i,n,e);for(const e of t)o[wx("0x3")](e,{commandName:i,commandParams:[{forceValue:x}]})}}))})),o._descriptionFactory[wx("0xf")]((t=>{if(wx("0x1")!=t.type&&wx("0x11")!=t[wx("0x8")])return;const{data:e}=t;return e&&e[wx("0x13")]==i?e[wx("0x16")][0][wx("0x0")]?{type:wx("0xd"),content:Qo(n,wx("0x18"))}:{type:wx("0xd"),content:Qo(n,"FORMAT_RESTRICTED_DISABLED")}:void 0}))}}const Fx=["commandName","element","GeneralHtmlSupport","has","block","_descriptionFactory","locale","inline","plugins","FORMAT_STYLE","normalizeConfig","toLowerCase","getGhsAttributeNameForElement","forceValue","TrackChangesEditing","formatInline","registerAttributeLabel","styleName","StyleUtils","_registerInlineAttribute","formatBlock","registerDescriptionCallback","*Remove format:* %0","add","*Set format:* %0","config","format","_registerLegacyDescription","DataSchema","editor","style","get","commandParams","type"];var Dx,Bx;Dx=Fx,Bx=215,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("0x12")];if(!t[Px("0x1f")][Px("0x1a")]("Style")||!t[Px("0x1f")][Px("0x1a")](Px("0x11")))return;const e=t.plugins[Px("0x14")](Px("0x3")),n=t[Px("0x1d")],o=t[Px("0xe")][Px("0x14")](Px("0x13")),i=t[Px("0x1f")].get(Px("0x19")),r=t[Px("0x1f")][Px("0x14")](Px("0x7"))[Px("0x21")](t[Px("0x1f")].get("DataSchema"),o.definitions);e._enableDefaultAttributesIntegration(Px("0x13"));const s=new Set;for(const t of r[Px("0x1b")]){const e=i.getGhsAttributeNameForElement(t[Px("0x18")]);s[Px("0xc")](e)}const x=new Set;for(const t of r[Px("0x1e")]){const e=i[Px("0x1")](t[Px("0x18")]);x.add(e);for(const e of t.ghsAttributes)x[Px("0xc")](e)}for(const t of s)e._registerBlockAttribute(t),e[Px("0x1c")][Px("0x5")](t,Qo(n,"FORMAT_STYLE"));for(const t of x)e[Px("0x8")](t),e[Px("0x1c")][Px("0x5")](t,Qo(n,Px("0x20")));this[Px("0x10")]()}[Px("0x10")](){const t=this[Px("0x12")],e=t.locale;t[Px("0x1f")][Px("0x14")](Px("0x3"))[Px("0x1c")][Px("0xa")]((t=>{if(Px("0x9")!=t[Px("0x16")]&&Px("0x4")!=t[Px("0x16")])return;const{data:n}=t;return n&&Px("0x13")===n[Px("0x17")]?n[Px("0x15")][0][Px("0x2")]?{type:"format",content:Qo(e,Px("0xd"),n[Px("0x15")][0][Px("0x6")][Px("0x0")]())}:{type:Px("0xf"),content:Qo(e,Px("0xb"),n[Px("0x15")][0][Px("0x6")][Px("0x0")]())}:void 0}))}}const jx=["_tableSuggestions","forceValue","map","length","type","add","ELEMENT_TABLE","has","document","accept","filter","getColumnIndexes","insertion","enableCommand","afterInit","removeTableColumn","writer","editor","minColumn","data","end","getChanges","toLowerCase","insertTable","rootName","showSuggestionHighlights","_splitMarkerName","every","root","change","getRanges","startsWith","discard","getSelectionAffectedTableCells","join","registerDescriptionCallback","refresh","isArray","substr","change:data","insertTableColumnLeft","getSuggestion","differ","position","getContainedElement","span","highest","_tablePostFixingSubtypes","first","addClass","selection","MIN_SAFE_INTEGER","commands","addRange","registerPostFixer","last","low","nodeAfter","fromRange","markMultiRangeInsertion","downcastDispatcher","colspan","MAX_SAFE_INTEGER","_suggestionFactory","markMultiRangeDeletion","from","*Remove:* %0","TableEditing","deletion","registerElementLabel","_setupColumnsRowsFixing","$graveyard","plugins","getAttribute","detach","above","findAncestor","ELEMENT_TABLE_ROW_WITH_TEXT","insert","_getSuggestionCoords","ELEMENT_TABLE_ROW","_getCoordsForCells","removeTableRow","tableRow","getRowIndexes","ELEMENT_TABLE_WITH_TEXT","get","order","*Insert:* %0","enqueueChange","createTableWalker","model","name","TableUtils","oldRange","rowspan","options","isInContent","addMarker:suggestion","cell","left","TrackChangesEditing","min","ELEMENT_TABLE_COLUMN","isIntersectingWithRange","createRangeOn","tableColumn","getFirstRange","_acceptFormatSuggestionCallbackFactory","table","some","registerCustomCallback","_descriptionFactory","$textProxy","tableCell","mapper","maxColumn","classes","element","execute","isEqual","hasAttribute","getItems","setSelection","ELEMENT_TABLE_COLUMN_WITH_TEXT","push","insertTableColumnRight","getCellLocation","selectTableColumn","subType","createPositionAt","max","includes","start"];var Gx,Vx;Gx=jx,Vx=192,function(t){for(;--t;)Gx.push(Gx.shift())}(++Vx);const Hx=function(t,e){return jx[t-=0]};class zx extends t.Plugin{constructor(t){super(t),this[Hx("0x7b")]=["tableRow",Hx("0x30")],this._tableSuggestions=new Set}[Hx("0x5a")](){const t=this[Hx("0x5d")],e=t.model[Hx("0x54")].selection;if(!t[Hx("0xe")][Hx("0x53")](Hx("0x9")))return;const n=t.locale,o=t[Hx("0xe")][Hx("0x1c")](Hx("0x2b")),i=t[Hx("0xe")][Hx("0x1c")](Hx("0x23"));o[Hx("0x36")][Hx("0xb")](Hx("0x33"),(t=>Qo(n,Hx("0x52"),t))),this[Hx("0xc")](),o.enableCommand(Hx("0x63")),o[Hx("0x59")]("selectTableRow"),o[Hx("0x59")](Hx("0x46"));for(const n of["insertTableRowAbove","insertTableRowBelow"]){const r=t[Hx("0x80")][Hx("0x1c")](n);o[Hx("0x59")](n,(n=>{t[Hx("0x21")][Hx("0x69")]((t=>{n();const s=Hx("0x11")===r[Hx("0x1d")],x=i[Hx("0x6d")](e),a=i[Hx("0x1a")](x),c=s?a[Hx("0x7c")]-1:a[Hx("0x83")]+1,l=x[0][Hx("0x12")](Hx("0x33")),u=i[Hx("0x20")](l,{startRow:c,endRow:c}),d=Array[Hx("0x7")](u)[Hx("0x4e")]((e=>t[Hx("0x2f")](e[Hx("0x29")])));o[Hx("0x1")](d,Hx("0x19"))}))}))}for(const n of[Hx("0x74"),Hx("0x44")]){const r=t.commands[Hx("0x1c")](n);o[Hx("0x59")](n,(n=>{t[Hx("0x21")].change((t=>{n();const s=Hx("0x2a")===r[Hx("0x1d")],x=i[Hx("0x6d")](e),a=i.getColumnIndexes(x),c=s?a.first-1:a.last+1,l=x[0][Hx("0x12")](Hx("0x33")),u=i[Hx("0x20")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Hx("0x7")](u)[Hx("0x4e")]((e=>t[Hx("0x2f")](e.cell)));o[Hx("0x1")](d,Hx("0x30"))}))}))}for(const n of["removeTableRow",Hx("0x5b")]){const r=n[Hx("0x72")](11),s=r[Hx("0x62")](),x=s[Hx("0x72")](0,3)+Hx("0x79"),a=Hx("0x33")+r,c=Hx("0x2c")+r,l=Hx("0x49")+r;o.enableCommand(n,(()=>{t[Hx("0x21")].change((t=>{const r=i[Hx("0x6d")](e),u=r[0].findAncestor(Hx("0x33"));let d;if(Hx("0x18")==n){const t=i[Hx("0x1a")](r);d={startRow:t.first,endRow:t[Hx("0x83")],includeAllSlots:!0}}else{const t=i[Hx("0x57")](r);d={startColumn:t[Hx("0x7c")],endColumn:t[Hx("0x83")],includeAllSlots:!0}}const g=i[Hx("0x20")](u,d),f=Array[Hx("0x7")](g)[Hx("0x4e")]((({cell:t})=>t)),m=Wx(f[Hx("0x56")]((t=>t[Hx("0x3f")](x)))),h=Wx(f[Hx("0x56")]((t=>!t[Hx("0x3f")](x))))[Hx("0x4e")]((e=>t.createRangeOn(e))),p=o[Hx("0x6")](h,a);if(p&&("tableRow"==p[Hx("0x47")]||Hx("0x30")==p[Hx("0x47")])){const e=this[Hx("0x15")](p);for(const n of m){const o=t[Hx("0x2f")](n),r=i[Hx("0x45")](n),a=n[Hx("0xf")](x)-1,u=e[c],d=e[l];u<=r[s]&&r[s]+a<=d&&p.addRange(o)}}}))}))}function r(n){const o=Array[Hx("0x7")](e.getRanges())[Hx("0x4e")]((t=>s.LiveRange[Hx("0x0")](t)));t[Hx("0x21")][Hx("0x69")]((e=>{const i=e.batch;n=n[Hx("0x56")]((t=>Hx("0xd")!=t.root.rootName)),e.setSelection(n),t.commands[Hx("0x1c")](Hx("0x18"))[Hx("0x70")](),t[Hx("0x3d")](Hx("0x18"),{forceDefaultExecution:!0}),t.model.enqueueChange((()=>{t[Hx("0x21")][Hx("0x1f")](i,(t=>{const e=o[Hx("0x56")]((t=>"$graveyard"!=t[Hx("0x68")][Hx("0x64")]));e.length>0&&t[Hx("0x41")](e);for(const t of o)t[Hx("0x10")]()}))}))}))}function a(n){t[Hx("0x21")][Hx("0x69")]((o=>{const i=Array[Hx("0x7")](e.getRanges())[Hx("0x4e")]((t=>s.LiveRange.fromRange(t))),r=[];for(const t of n)for(const e of t[Hx("0x40")]({shallow:!0}))r[Hx("0x43")](e);for(const e of r)Hx("0xd")!=e[Hx("0x68")][Hx("0x64")]&&(o[Hx("0x41")](o[Hx("0x48")](e,0)),t[Hx("0x80")][Hx("0x1c")]("removeTableColumn")[Hx("0x70")](),t[Hx("0x3d")](Hx("0x5b"),{forceDefaultExecution:!0}));const x=i[Hx("0x56")]((t=>Hx("0xd")!=t.root[Hx("0x64")]));x[Hx("0x4f")]>0&&o.setSelection(x);for(const t of i)t[Hx("0x10")]()}))}function c(t,e){return e[Hx("0x67")]((e=>t[Hx("0x34")]((t=>t[Hx("0x60")][Hx("0x3e")](e[Hx("0x4b")])||e[Hx("0x60")].isEqual(t[Hx("0x4b")])))))}function l(t,e){return t[Hx("0x34")]((t=>e[Hx("0x34")]((e=>t.end.isTouching(e.start)))))}t.data[Hx("0x2")].on(Hx("0x28"),((t,e,n)=>{if(!n[Hx("0x26")][Hx("0x65")])return;const o=e.item;if(!o)return;const i=n[Hx("0x39")].toViewElement(o);function r(t){return Array[Hx("0x71")](t)?t:[t]}i&&Hx("0x38")===o.name&&(0,x.setHighlightHandling)(i,n[Hx("0x5c")],((t,e,n)=>n[Hx("0x7d")](r(e[Hx("0x3b")]),t)),((t,e,n)=>n.removeClass(r(e[Hx("0x3b")]),t)))}),{priority:Hx("0x7a")}),o[Hx("0x36")][Hx("0x6f")]((t=>{if(Hx("0x58")!=t[Hx("0x50")]&&Hx("0xa")!=t.type)return;const e=t[Hx("0x78")]();if(null!=e&&e.is(Hx("0x3c"),"table")){if(Hx("0x58")==t.type){const e=t[Hx("0x40")]()[Hx("0x56")]((t=>t.is(Hx("0x37"))))[Hx("0x4e")]((t=>t.data));if(e[Hx("0x4f")])return{type:Hx("0x58"),content:Qo(n,Hx("0x1e"),Qo(n,Hx("0x1b"),'"'+e.join(" ")+'"'))}}if(Hx("0xa")==t[Hx("0x50")]){const e=t[Hx("0x40")]()[Hx("0x56")]((t=>t.is("$textProxy")))[Hx("0x4e")]((t=>t[Hx("0x5f")]));if(e[Hx("0x4f")])return{type:"deletion",content:Qo(n,"*Remove:* %0",Qo(n,Hx("0x1b"),'"'+e[Hx("0x6e")](" ")+'"'))}}}})),o[Hx("0x36")].registerDescriptionCallback((t=>{if(Hx("0x19")==t.subType){const e=t[Hx("0x40")]()[Hx("0x56")]((t=>t.is("$textProxy")))[Hx("0x4e")]((t=>t.data)),o=this[Hx("0x15")](t),i=o.maxRow-o.minRow+1;if(Hx("0x58")==t.type)return e[Hx("0x4f")]?{type:Hx("0x58"),content:Qo(n,Hx("0x1e"),Qo(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[i,'"'+e[Hx("0x6e")](" ")+'"']))}:{type:"insertion",content:Qo(n,Hx("0x1e"),Qo(n,Hx("0x16"),i))};if("deletion"==t.type)return e[Hx("0x4f")]?{type:"deletion",content:Qo(n,Hx("0x8"),Qo(n,Hx("0x13"),[i,'"'+e[Hx("0x6e")](" ")+'"']))}:{type:Hx("0xa"),content:Qo(n,Hx("0x8"),Qo(n,Hx("0x16"),i))}}if("tableColumn"==t[Hx("0x47")]){const e=t[Hx("0x40")]()[Hx("0x56")]((t=>t.is(Hx("0x37"))))[Hx("0x4e")]((t=>t[Hx("0x5f")])),o=this[Hx("0x15")](t),i=o[Hx("0x3a")]-o[Hx("0x5e")]+1;if(Hx("0x58")==t[Hx("0x50")])return e[Hx("0x4f")]?{type:Hx("0x58"),content:Qo(n,Hx("0x1e"),Qo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[i,'"'+e[Hx("0x6e")](" ")+'"']))}:{type:Hx("0x58"),content:Qo(n,Hx("0x1e"),Qo(n,Hx("0x2d"),i))};if(Hx("0xa")==t.type)return e.length?{type:Hx("0xa"),content:Qo(n,"*Remove:* %0",Qo(n,Hx("0x42"),[i,'"'+e[Hx("0x6e")](" ")+'"']))}:{type:Hx("0xa"),content:Qo(n,"*Remove:* %0",Qo(n,"ELEMENT_TABLE_COLUMN",i))}}})),o[Hx("0x5")][Hx("0x35")](Hx("0x58"),Hx("0x19"),Hx("0x6c"),r),o[Hx("0x5")][Hx("0x35")](Hx("0xa"),Hx("0x19"),"accept",r),o._suggestionFactory[Hx("0x35")](Hx("0x58"),"tableColumn","discard",a),o[Hx("0x5")][Hx("0x35")](Hx("0xa"),Hx("0x30"),Hx("0x55"),a),o._suggestionFactory[Hx("0x35")](Hx("0x58"),Hx("0x30"),"join",c),o[Hx("0x5")][Hx("0x35")]("deletion",Hx("0x30"),"join",c),o._suggestionFactory[Hx("0x35")]("insertion",Hx("0x19"),Hx("0x6e"),l),o._suggestionFactory.registerCustomCallback(Hx("0xa"),"tableRow",Hx("0x6e"),l)}[Hx("0x32")](){const t=this[Hx("0x5d")],e=t[Hx("0x21")].document[Hx("0x7e")];return(n,o)=>{t.model[Hx("0x69")]((i=>{const{commandName:r,commandParams:x}=o;let a=n[0][Hx("0x60")].nodeBefore;x&&x[0]&&!1===x[0][Hx("0x4d")]&&(a=n[0][Hx("0x4b")][Hx("0x85")]);const c=i.createRangeIn(a);if(Hx("0xd")==c[Hx("0x68")].rootName)return;const l=Array[Hx("0x7")](e.getRanges())[Hx("0x4e")]((t=>s.LiveRange[Hx("0x0")](t)));i[Hx("0x41")](c),t[Hx("0x80")].get(r).refresh(),x[Hx("0x43")]({forceDefaultExecution:!0}),t.execute(r,...x);const u=l[Hx("0x56")]((t=>Hx("0xd")!=t[Hx("0x68")][Hx("0x64")]));u[Hx("0x4f")]>0&&i.setSelection(u);for(const t of l)t.detach()}))}}[Hx("0x17")](t){const e=this[Hx("0x5d")][Hx("0xe")].get(Hx("0x23"));let n=Number[Hx("0x4")],o=Number[Hx("0x7f")],i=Number[Hx("0x4")],r=Number.MIN_SAFE_INTEGER;for(const s of t){if("$graveyard"==s[Hx("0x68")].rootName)continue;const{row:t,column:x}=e[Hx("0x45")](s),a=s.hasAttribute(Hx("0x25"))?s[Hx("0xf")](Hx("0x25"))-1:0,c=s[Hx("0x3f")](Hx("0x3"))?s[Hx("0xf")](Hx("0x3"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,i=x<i?x:i,r=x+c>r?x+c:r}return{minRow:n,maxRow:o,minColumn:i,maxColumn:r}}[Hx("0xc")](){const t=this[Hx("0x5d")],e=t.plugins.get(Hx("0x2b")),n=t[Hx("0xe")][Hx("0x1c")](Hx("0x23"));t[Hx("0x21")].document.on(Hx("0x73"),(()=>{const n=Array[Hx("0x7")](t[Hx("0x21")][Hx("0x54")][Hx("0x76")].getChangedMarkers());for(const{name:t,data:o}of n){const{group:n,id:i,subType:r}=e[Hx("0x66")](t);if("suggestion"!=n)continue;if(null!=o[Hx("0x24")])continue;const s=e[Hx("0x75")](i);this[Hx("0x7b")][Hx("0x4a")](r)&&this[Hx("0x4c")][Hx("0x51")](s)}}),{priority:Hx("0x84")});const o=(t,e)=>{let o=!1;const i=e[Hx("0x2f")](t),r=t[Hx("0x12")]("table"),s=n[Hx("0x45")](t);for(const e of this._tableSuggestions){const n=e[Hx("0x47")],x=n[Hx("0x6b")]("tablePaste"),a=n[Hx("0x72")](x?10:5),c=a[Hx("0x62")](),l=c[Hx("0x72")](0,3)+Hx("0x79"),u="min"+a,d="max"+a;if(!e[Hx("0x27")])continue;if(r!=e[Hx("0x31")]()[Hx("0x4b")].findAncestor(Hx("0x33")))continue;if(e[Hx("0x2e")](i))continue;const g=t[Hx("0x3f")](l)?t[Hx("0xf")](l)-1:0,f=this[Hx("0x15")](e),m=f[u],h=f[d];m<=s[c]&&s[c]+g<=h&&(e[Hx("0x81")](i),o=!0)}return o};t[Hx("0x21")][Hx("0x54")][Hx("0x82")]((e=>{let n=!1;for(const i of t[Hx("0x21")].document[Hx("0x76")][Hx("0x61")]())if(Hx("0x14")==i.type)if(Hx("0x19")==i[Hx("0x22")])for(const t of i[Hx("0x77")][Hx("0x85")].getChildren())n=n||o(t,e);else"tableCell"==i.name&&(n=n||o(i[Hx("0x77")][Hx("0x85")],e));return n}))}[Hx("0x15")](t){return this._getCoordsForCells(t[Hx("0x6a")]()[Hx("0x4e")]((t=>t[Hx("0x4b")][Hx("0x85")])))}}function Wx(t){return Array[Hx("0x7")](new Set(t).values())}const Kx=["trackChanges","editor","*Split cell:* horizontally","_descriptionFactory","return","has","insertion","subType","filter","createRangeOn","_acceptFormatSuggestionCallbackFactory","TableEditing","mergeTableCellLeft","low","document","from","element","format","mergeTableCellRight","mergeTableCellUp","markBlockFormat","deletion","requires","_areSelectedCellsMergable","createTableWalker","formatInline","TableUtils","commandName","change","table","execute","splitTableCellHorizontally","horizontally","author","rootName","get","getFirstPosition","getRanges","commands","_areMergableCells","getAncestors","mergeTableCells","accept","splitTableCellVertically","getCellLocation","find","markMultiRangeBlockFormat","value","set:isEnabled","detach","formatBlock","registerDescriptionCallback","_suggestionFactory","selection","*Merge cells*","map","length","root","plugins","mergeTableCellDown","getSelectionAffectedTableCells","model","add","_tablePostFixingSubtypes","type","containsRange","findAncestor","enableCommand","registerCustomCallback","cell","$graveyard","tableCell"];var qx,Xx;qx=Kx,Xx=317,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("0x41")](){return[zx]}afterInit(){const t=this[$x("0x2c")],e=t[$x("0x20")][$x("0x39")][$x("0x18")],n=t.locale;if(!t[$x("0x1d")][$x("0x30")]($x("0x36")))return;const o=t[$x("0x1d")][$x("0x6")]("TrackChangesEditing"),i=t[$x("0x1d")][$x("0x6")]("TableUtils"),r=t.plugins[$x("0x6")](zx);r[$x("0x22")].push($x("0xc")),o[$x("0x26")]($x("0xc"),(()=>{const e=i[$x("0x1f")](t[$x("0x20")][$x("0x39")][$x("0x18")]);t[$x("0x20")][$x("0x47")]((()=>{o[$x("0x11")](e,{commandName:$x("0xc"),commandParams:[]},[],$x("0xc"))}))})),t[$x("0x9")][$x("0x6")]("mergeTableCells").on($x("0x1"),((e,n)=>{t.commands.get($x("0x2b"))[$x("0x12")]&&(n.length>0&&n[n.length-1]&&n[n[$x("0x1b")]-1].forceDefaultExecution||o._isForcedDefaultExecutionBlock||this[$x("0x42")]()||e.stop())}),{priority:"highest"});for(const e of[$x("0x3e"),$x("0x3d"),$x("0x1e"),$x("0x37")]){const n=t[$x("0x9")][$x("0x6")](e);o.enableCommand(e,(()=>{const e=t[$x("0x20")][$x("0x39")][$x("0x18")].getFirstPosition()[$x("0xb")]()[$x("0x10")]((t=>t.is("element",$x("0x2a")))),i=n[$x("0x12")];t[$x("0x20")][$x("0x47")]((()=>{o.markMultiRangeBlockFormat([e,i],{commandName:"mergeTableCells",commandParams:[]},[],$x("0xc"))}))}))}for(const e of[$x("0xe"),$x("0x2")]){const n=t[$x("0x9")][$x("0x6")](e);o.enableCommand(e,(()=>{const r=i[$x("0x1f")](t[$x("0x20")][$x("0x39")][$x("0x18")])[0],s=r[$x("0x25")]($x("0x0")),{column:x,row:a}=i[$x("0xf")](r);let c=[];if($x("0x3")==n.direction){const t=i[$x("0x43")](s,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[$x("0x3a")](t)[$x("0x1a")]((t=>t[$x("0x28")]))}else{const t=i[$x("0x43")](s,{column:x,includeAllSlots:!0});c=Array[$x("0x3a")](t).map((t=>t[$x("0x28")]))}t.model[$x("0x47")]((t=>{o[$x("0x3f")](t.createRangeOn(r),{commandName:e,commandParams:[]},c,e)}))}))}o._descriptionFactory.registerDescriptionCallback((t=>{if($x("0x15")!=t.type&&$x("0x44")!=t[$x("0x23")])return;const{data:e}=t;return e&&"mergeTableCells"==e[$x("0x46")]?{type:"format",content:Qo(n,$x("0x19"))}:void 0})),o[$x("0x2e")][$x("0x16")]((t=>{if($x("0x15")!=t[$x("0x23")]&&"formatInline"!=t.type)return;const{data:e}=t;return e?$x("0xe")==e[$x("0x46")]?{type:$x("0x3c"),content:Qo(n,"*Split cell:* vertically")}:"splitTableCellHorizontally"==e[$x("0x46")]?{type:$x("0x3c"),content:Qo(n,$x("0x2d"))}:void 0:void 0}));const x=r[$x("0x35")]();for(const t of[$x("0x3e"),$x("0x3d"),$x("0x1e"),$x("0x37")])o[$x("0x17")][$x("0x27")]("formatBlock",t,"accept",x);for(const t of["splitTableCellVertically",$x("0x2")])o[$x("0x17")][$x("0x27")]($x("0x15"),t,"accept",x);o[$x("0x17")].registerCustomCallback($x("0x15"),$x("0xc"),$x("0xd"),(n=>{t.model.change((o=>{const i=Array[$x("0x3a")](e[$x("0x8")]())[$x("0x1a")]((t=>s.LiveRange.fromRange(t)));o.setSelection(n),t[$x("0x9")][$x("0x6")]($x("0xc")).refresh(),t.execute($x("0xc"),{forceDefaultExecution:!0});const r=i[$x("0x33")]((t=>$x("0x29")!=t[$x("0x1c")][$x("0x5")]));r[$x("0x1b")]>0&&o.setSelection(r);for(const t of i)t[$x("0x14")]()}))}));for(const e of["mergeTableCellUp","mergeTableCellDown","mergeTableCellLeft",$x("0x3d")]){const n=t[$x("0x9")][$x("0x6")](e);n.on($x("0x13"),((e,o,i)=>{if(i){const o=t[$x("0x20")][$x("0x39")][$x("0x18")][$x("0x7")]()[$x("0xb")]()[$x("0x10")]((t=>t.is($x("0x3b"),"tableCell")));this[$x("0xa")](n[$x("0x12")],o)||(e[$x("0x2f")]=!1,e.stop())}}),{priority:$x("0x38")})}}[$x("0x42")](){const t=this[$x("0x2c")][$x("0x9")][$x("0x6")]($x("0xc")),e=this[$x("0x2c")][$x("0x1d")][$x("0x6")]($x("0x45"));if(!t.isEnabled)return!1;const n=e.getSelectionAffectedTableCells(this[$x("0x2c")][$x("0x20")][$x("0x39")].selection);for(const t of n)for(const e of n)if(t!=e&&!this._areMergableCells(t,e))return!1;return!0}[$x("0xa")](t,e){const n=this[$x("0x2c")][$x("0x1d")][$x("0x6")]("TrackChangesEditing"),o=this[$x("0x2c")][$x("0x20")][$x("0x34")](t),i=this[$x("0x2c")][$x("0x20")][$x("0x34")](e),r=new Set,s=new Set;for(const t of n.getSuggestions())if(($x("0x31")==t[$x("0x23")]||$x("0x40")==t[$x("0x23")]||"mergeTableCells"==t[$x("0x32")])&&t.isInContent)for(const e of t[$x("0x8")]())e[$x("0x24")](o,!0)&&r[$x("0x21")](t[$x("0x23")]+":"+t[$x("0x4")].id),e[$x("0x24")](i,!0)&&s.add(t.type+":"+t[$x("0x4")].id);if(r.size!=s.size)return!1;for(const t of r)if(!s[$x("0x30")](t))return!1;return!0}}const Yx=["data-suggestion","formatBlock","TableEditing","forceValue","registerCustomCallback","getSuggestion","_splitMarkerName","FORMAT_HEADER_ROW","addClass","downcastDispatcher","writer","setTableRowHeader","_suggestionFactory","afterInit","createTableWalker","markerRange","bindElementToMarker","cell","_registerLegacyDescription","FORMAT_HEADER_COLUMN","setAttribute","_descriptionFactory","editor","TrackChangesEditing","get","requires","FORMAT_REGULAR_ROW","highest","has","*Format:* %0","registerAttributeLabel","end","item","headingColumns","format","ck-suggestion-marker--active","toViewElement","addMarker:suggestion","unbindElementFromMarkerName","mapper","locale","type","ck-suggestion-marker-","editing","markerNameToElements","removeAttribute","showSuggestionHighlights","_handleLegacySuggestions","getCellLocation","nodeAfter","setTableColumnHeader","markerName","accept","commandName","data","commandParams","headingRows","plugins","removeClass","start","_enableDefaultAttributesIntegration"];var Jx,Qx;Jx=Yx,Qx=468,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("0x21")](){const t=this[ta("0x2a")];if(!t[ta("0x10")][ta("0x30")](ta("0x16")))return;const e=t[ta("0x3c")],n=t.plugins[ta("0x2c")](ta("0x2b"));n[ta("0x13")](ta("0x1f"),[],["headingRows"]),n[ta("0x13")](ta("0x9"),[],["headingColumns"]),n[ta("0x29")].registerAttributeLabel(ta("0xf"),Qo(e,"FORMAT_HEADER_ROW")),n[ta("0x29")][ta("0x32")](ta("0x35"),Qo(e,ta("0x27"))),this._handleLegacySuggestions()}[ta("0x6")](){const t=this[ta("0x2a")][ta("0x10")][ta("0x2c")]("TrackChangesEditing"),e=this[ta("0x2a")].plugins[ta("0x2c")]("TableUtils"),n=this.editor[ta("0x10")][ta("0x2c")](zx)._acceptFormatSuggestionCallbackFactory();function o({showActiveMarker:n=!0,setDataAttribute:o=!0}={}){return(i,r,s)=>{const{type:x,id:a}=t[ta("0x1a")](r[ta("0xa")]),c=t[ta("0x19")](a),l=c.data;if(ta("0x15")!=c[ta("0x0")]||!l||ta("0x9")!=l[ta("0xc")])return;if(r[ta("0x34")])return void i.stop();if(!s.consumable.consume(r[ta("0x23")],i.name))return;const u=r[ta("0x23")][ta("0x12")][ta("0x8")],d=r[ta("0x23")][ta("0x33")].nodeBefore,g=u.parent.parent,{column:f}=e[ta("0x7")](u),{column:m}=e[ta("0x7")](d);for(let i=f;i<=m;i++){const c=e[ta("0x22")](g,{column:i,includeAllSlots:!1});for(const e of c){const i=e[ta("0x25")],c=s[ta("0x3b")][ta("0x38")](i);s[ta("0x1e")][ta("0x1c")](ta("0x1")+x,c),o&&s[ta("0x1e")][ta("0x28")](ta("0x14"),a,c),s[ta("0x3b")][ta("0x24")](c,r[ta("0xa")]),n&&(t.activeMarkers.includes(r[ta("0xa")])?s[ta("0x1e")][ta("0x1c")](ta("0x37"),c):s[ta("0x1e")][ta("0x11")](ta("0x37"),c))}}}}t[ta("0x20")][ta("0x18")](ta("0x15"),ta("0x1f"),ta("0xb"),n),t[ta("0x20")][ta("0x18")]("formatBlock",ta("0x9"),"accept",n),this[ta("0x2a")].editing.downcastDispatcher.on(ta("0x39"),o(),{priority:"highest"}),this.editor.data.downcastDispatcher.on(ta("0x39"),((t,e,n)=>{n.options[ta("0x5")]&&o({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:"highest"}),this[ta("0x2a")][ta("0x2")][ta("0x1d")].on("removeMarker:suggestion",((e,n,o)=>{const{type:i,id:r}=t[ta("0x1a")](n[ta("0xa")]),s=t[ta("0x19")](r),x=s[ta("0xd")];if(ta("0x15")!=s[ta("0x0")]||!x||ta("0x9")!=x[ta("0xc")])return;const a=o[ta("0x3b")][ta("0x3")](n[ta("0xa")]);if(a)for(const t of a)o[ta("0x1e")][ta("0x11")](ta("0x1")+i,t),o[ta("0x1e")].removeClass(ta("0x37"),t),o[ta("0x1e")][ta("0x4")](ta("0x14"),t),o[ta("0x3b")][ta("0x3a")](t,n[ta("0xa")])}),{priority:ta("0x2f")}),this[ta("0x26")]()}[ta("0x26")](){const t=this[ta("0x2a")],e=t[ta("0x3c")];function n(t){return{type:ta("0x36"),content:Qo(e,ta("0x31"),t)}}t[ta("0x10")][ta("0x2c")](ta("0x2b"))._descriptionFactory.registerDescriptionCallback((t=>{if(ta("0x15")!=t[ta("0x0")])return;const{data:o}=t;if(o){if(ta("0x1f")==o[ta("0xc")]){const t=o[ta("0xe")][0].forceValue;return n(Qo(e,ta(t?"0x1b":"0x2e")))}if(ta("0x9")==o[ta("0xc")]){const t=o[ta("0xe")][0][ta("0x17")];return n(Qo(e,t?ta("0x27"):"FORMAT_REGULAR_COLUMN"))}}}))}}const na=["findAncestor","markMultiRangeBlockFormat","wrap","_splitMarkerName","element","attributes","containsRange","tableCell","first","removeRows","registerCustomCallback","documentSelection","isEqual","insertRows","selection","set","_descriptionFactory","setAttribute","schema","fromEntries","endRow","insertionRanges","getMarkers","startsWith","insertContent","from","getChanges","getItems","TableUtils","insert","endColumn","tableCellBorderColor","high","getRanges","getAllAdjacentSuggestions","previousSibling","newRange","getRange","row","locale","_replaceTableSlotCell","value","suggestion-td","isInContent","conversion","stop","deletionRanges","markerName","formatBlock","paragraph","createRangeIn","tablePaste","accept","get","createTableWalker","fill","Users","getChildren","getChangedMarkers","updateMarker","dataDowncast","hasSuggestion","remove","getSuggestion","view","change","ck-suggestion-marker-insertion","rootName","getContainedElement","createElement","nodeAfter","find","start","length","suggestion:formatBlock:tablePasteCell","getShiftedBy","document","author","afterInit","activeMarkers","_suggestionFactory","low","getSuggestionCallback","*Replace table cells*","editor","tableCellBackgroundColor","cells","join","tableCellBorderWidth","cell","markerToHighlight","oldRange","reduce","discard","filter","columns","commands","tableCellVerticalAlignment","isEmpty","markMultiRangeInsertion","model","showSuggestionHighlights","TableClipboard","end","map","has","suggestionUnloaded","add","getChild","ck-suggestion-marker--active","tablePasteCell","registerPostFixer","tablePasteRow","last","column","subType","differ","getSelectionAffectedTableCells","some","getAttributes","suggestionLoaded","getRows","columnInsertionIndexes","_tablePostFixingSubtypes","nextSibling","editingDowncast","insertion","removeColumns","deletion","includes","rowInsertionRanges","tableCellPadding","type","_createdBatches","next","options","getRowIndexes","name","batch","content","setAttributes","tablePasteChainId","_getCoordsForCells","markerAttributes","return","table","getColumns","tableCellSuggestion","clipboardOutput","rowInsertionIndexes","createRangeOn","suggestion","markMultiRangeDeletion","registerDescriptionCallback","tableCellHorizontalAlignment","position","plugins","tablePasteColumn","redo","elementToElement","columnInsertionRanges","unwrap","previous","editing","markers","getSuggestions","push","removeMarker","forceDefaultExecution","listenTo","insertColumns"];var oa,ia;oa=na,ia=467,function(t){for(;--t;)oa.push(oa.shift())}(++ia);const ra=function(t,e){return na[t-=0]},sa=[ra("0x86"),ra("0x4d"),"tableCellBorderStyle",ra("0x1d"),ra("0x8f"),ra("0x83"),ra("0x6")],xa=Object[ra("0x41")](sa[ra("0x96")]((t=>[t,null])));class aa extends t.Plugin{static get requires(){return[zx]}[ra("0x7c")](){const t=this[ra("0x82")];if(!t[ra("0x1f")][ra("0x97")]("TableClipboard"))return;const n=t[ra("0x1f")][ra("0x63")]("TrackChangesEditing"),o=t[ra("0x1f")][ra("0x63")](ra("0x4a")),i=t[ra("0x1f")].get(zx),r=t[ra("0x1f")][ra("0x63")](ra("0x94"));i[ra("0xa9")][ra("0x29")](ra("0x9e"),ra("0x20")),t[ra("0x92")][ra("0x40")].register(ra("0x16"),{allowIn:ra("0x35"),allowContentOf:ra("0x35"),isLimit:!0}),t[ra("0x5a")][ra("0x22")]({model:ra("0x16"),view:ra("0x58")});let s=null;t[ra("0x92")].on(ra("0x46"),((i,x)=>{const[a,c]=x,l=x[x.length-1];l&&l[ra("0x2b")]||n._isForcedDefaultExecutionBlock||this[ra("0x82")][ra("0x8e")][ra("0x63")]("trackChanges")[ra("0x57")]&&function(t,e,n,o,i){if(e&&!e.is(ra("0x39")))return!1;const r=i.getTableIfOnlyTableInContent(t,n);if(!r||!la(r,void 0,o))return!1;const s=o[ra("0xa3")](n[ra("0x7a")][ra("0x3c")]);if(!s.length)return!1;const x=s[0][ra("0x2e")](ra("0x14")),a=o[ra("0xb")](s),c=o.getColumnIndexes(s),l={startRow:a[ra("0x36")],endRow:a[ra("0x9f")],startColumn:c.first,endColumn:c[ra("0x9f")]};return 1==s.length&&(l[ra("0x42")]+=o[ra("0xa7")](r)-1,l[ra("0x4c")]+=o[ra("0x15")](r)-1),la(x,l,o)}(a,c,t[ra("0x92")],o,r)&&(i[ra("0x5b")](),s={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[ra("0x92")][ra("0x6f")]((()=>{t.model[ra("0x46")](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("0x77")]&&n[ra("0x91")](i,ra("0x9e"),{tablePasteChainId:o}),r[ra("0x77")]&&n[ra("0x91")](r,ra("0x20"),{tablePasteChainId:o}),a[ra("0x77")]&&n.markMultiRangeInsertion(a,ra("0x61"),{tablePasteChainId:o,skipNestingCheck:!0}),c[ra("0x77")]&&n[ra("0x1b")](c,ra("0x61"),{tablePasteChainId:o,skipNestingCheck:!0});const u=n[ra("0x2f")](l[ra("0x96")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],ra("0x9c"),{tablePasteChainId:o});if(u){const e=u[ra("0x44")](),n=[];for(const{element:o,attributes:i}of l){if(!i)continue;const r=t[ra("0x92")][ra("0x19")](o),s=e[ra("0x75")]((t=>t[ra("0x53")]()[ra("0x3a")](r)));s&&n[ra("0x29")]([s[ra("0xc")],i])}n[ra("0x77")]&&u[ra("0x3f")]("markerAttributes",Object.fromEntries(n))}s=null})))}),{priority:e.priorities.high+10}),t[ra("0x1f")][ra("0x63")](ra("0x94")).on(ra("0x56"),((t,e)=>{const[n,o,,i]=e;if(!s)return;t[ra("0x5b")]();const r=n[ra("0x87")],x=o,a=ca(r),c=ca(x);t[ra("0x13")]=r;let l=null,u=null;if(c||a)if(a&&!c){i[ra("0x6c")](r.getChild(0));for(const t of Array[ra("0x47")](x[ra("0x67")]()))i[ra("0x4b")](t,r,ra("0x95"));const t=s[ra("0x18")][ra("0x4")](n[ra("0x54")]),e=s[ra("0xa8")][ra("0x4")](n[ra("0xa0")]);t||e||(l=i[ra("0x60")](r))}else c&&!a&&(u=i[ra("0x60")](r));else{const t=i[ra("0x73")](ra("0x16")),e=i.createElement(ra("0x16"));i[ra("0x30")](i.createRangeIn(r),e),i[ra("0x4b")](t,r,0);for(const e of Array.from(x[ra("0x67")]()))i[ra("0x4b")](e,t,ra("0x95"));l=i[ra("0x19")](t),u=i[ra("0x19")](e)}const d=Array[ra("0x47")](x[ra("0xa5")]()).filter((([t])=>sa[ra("0x4")](t)));s[ra("0x84")].push({element:r,attributes:d[ra("0x77")]?Object.fromEntries(d):null}),l&&s[ra("0x43")][ra("0x29")](l),u&&s[ra("0x5c")].push(u)}),{priority:ra("0x4e")}),o.on(ra("0x2d"),((e,n)=>{const[i,r={}]=n;if(!s)return;const x=r.at||0,a=r[ra("0x8d")]||1;s[ra("0xa8")]=new Array(a).fill(x)[ra("0x96")](((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(i,{startColumn:x,endColumn:x+a-1}))s[ra("0x23")][ra("0x29")](t[ra("0x92")][ra("0x19")](e))}),{priority:ra("0x7f")}),o.on(ra("0x3b"),((e,n)=>{const[i,r={}]=n;if(!s)return;const x=r.at||0,a=r.rows||1;s[ra("0x18")]=new Array(a)[ra("0x65")](x)[ra("0x96")](((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(i,{startRow:x,endRow:x+a-1}))s[ra("0x5")][ra("0x29")](t[ra("0x92")].createRangeOn(e))}),{priority:ra("0x7f")}),n[ra("0x3e")][ra("0x1c")]((e=>{if(e[ra("0xa1")]&&e.subType[ra("0x45")](ra("0x61")))return e[ra("0x25")]?{}:{type:ra("0x1"),content:Qo(t[ra("0x55")],ra("0x81"))}}));const x=()=>!1;for(const t of[ra("0x61"),ra("0x20"),ra("0x9e"),"tablePasteCell"])n[ra("0x7e")][ra("0x38")](ra("0x1"),t,ra("0x85"),x),n._suggestionFactory[ra("0x38")](ra("0x3"),t,ra("0x85"),x),n[ra("0x7e")].registerCustomCallback(ra("0x5e"),t,ra("0x85"),x);n[ra("0x7e")][ra("0x38")](ra("0x5e"),ra("0x9c"),ra("0x8b"),x),n._suggestionFactory[ra("0x38")](ra("0x5e"),ra("0x9c"),ra("0x62"),((e,n,o)=>{const i=e.map((t=>t[ra("0x72")]()))[ra("0x8c")]((t=>t)),r=new Map(i[ra("0x96")]((t=>[t,null])));if(s)for(const{element:t,attributes:e}of s[ra("0x84")])e&&r[ra("0x3d")](t,e);else if(o&&o[ra("0x12")])for(const[e,n]of Object.entries(o[ra("0x12")])){const o=t[ra("0x92")][ra("0x27")].get(e),i=o?o[ra("0x53")]()[ra("0x72")]():null;i&&r.set(i,n)}t.model[ra("0x6f")]((t=>{for(const[e,n]of r)t[ra("0xf")]({...xa,...n},e)}))}));const a=(e,o)=>{n[ra("0x7e")][ra("0x38")](e,ra("0x61"),o,((i,r,s)=>{t[ra("0x92")][ra("0x6f")]((t=>{const x=[];for(const t of i){const e=t[ra("0x76")][ra("0x74")];e.is("element",ra("0x16"))&&x[ra("0x29")](e)}n[ra("0x7e")][ra("0x80")](e,null,o)(i,r,s);for(const e of x)"$graveyard"!=e.root[ra("0x71")]&&t.unwrap(e)}))}))};a("insertion",ra("0x62")),a(ra("0x1"),ra("0x8b")),a("deletion",ra("0x62")),a(ra("0x3"),ra("0x8b")),n._suggestionFactory[ra("0x38")](ra("0x1"),ra("0x9e"),ra("0x8b"),(t=>{const e=t[ra("0x96")]((t=>t[ra("0x72")]())),n=e[0][ra("0x2e")](ra("0x14")),{minRow:r,maxRow:s}=i[ra("0x11")](e);o[ra("0x37")](n,{at:r,rows:s-r+1})})),n._suggestionFactory.registerCustomCallback("insertion",ra("0x20"),ra("0x8b"),(t=>{const e=t[ra("0x96")]((t=>t[ra("0x72")]())),n=e[0][ra("0x2e")](ra("0x14")),{minColumn:r,maxColumn:s}=i._getCoordsForCells(e);o[ra("0x2")](n,{at:r,columns:s-r+1})}));const c=(t,e)=>{if(!e[ra("0xa1")]||!e.subType.startsWith(ra("0x61")))return;const o=e.attributes[ra("0x10")],i=n[ra("0x28")]()[ra("0x8c")]((t=>t[ra("0x59")]&&t.attributes&&t[ra("0x33")].tablePasteChainId==o));i[ra("0x77")]&&e[ra("0x50")]()[ra("0x77")]!=i[ra("0x77")]&&i[ra("0x8a")](((t,e)=>(t[ra("0x9")]=e,e[ra("0x25")]=t,e)))};function l(t,e=!0){const{id:o}=n[ra("0x31")](t[ra("0x5d")]),i=["ck-suggestion-marker",ra("0x70")],r=n[ra("0x7d")][ra("0x4")](t.markerName);return r&&i[ra("0x29")](ra("0x9b")),{classes:i,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(ra("0xa6"),c,{priority:ra("0x4e")}),n.on(ra("0x98"),c,{priority:"high"}),t.model[ra("0x7a")][ra("0x9d")]((()=>{let e=!1;const o=Array.from(t[ra("0x92")][ra("0x7a")][ra("0xa2")][ra("0x68")]());for(const{name:i,data:r}of o){const{group:o,type:s,id:x}=n[ra("0x31")](i);if("suggestion"!=o||ra("0x3")!=s||r.oldRange)continue;if(!n[ra("0x6b")](x))continue;const a=n[ra("0x6d")](x)[ra("0x4f")](),c=t[ra("0x1f")][ra("0x63")](ra("0x66")).me;for(const t of n[ra("0x28")]())if(t[ra("0x59")]&&t[ra("0x7b")]==c&&"formatBlock"==t[ra("0x7")]&&ra("0x9c")==t.subType&&t[ra("0x4f")]().every((t=>a[ra("0xa4")]((e=>e[ra("0x34")](t,!0))))))for(const n of t[ra("0x50")]())n[ra("0x59")]&&(n[ra("0x8b")](),e=!0)}return e})),t.model[ra("0x7a")].registerPostFixer((e=>{const o=t.commands.get(ra("0x21"));if(!o||!o[ra("0x8")][ra("0x97")](e[ra("0xd")]))return!1;let i=!1;const r=t.plugins[ra("0x63")](ra("0x66")).me,s=t[ra("0x92")].document.differ[ra("0x48")](),x=Array[ra("0x47")](t[ra("0x92")][ra("0x7a")][ra("0xa2")][ra("0x68")]())[ra("0x8c")]((({name:t,data:e})=>{const{group:o,subType:i,authorId:s}=n[ra("0x31")](t);return ra("0x1a")==o&&"tablePaste"==i&&s==r.id&&!e[ra("0x89")]}));for(const t of s){if(ra("0x4b")!=t[ra("0x7")]||"tableCellSuggestion"!=t[ra("0xc")]||1!=t[ra("0x77")])continue;const n=e.createRange(t[ra("0x1e")],t.position[ra("0x79")](1));if(!x[ra("0x75")]((({data:t})=>t[ra("0x52")][ra("0x3a")](n))))for(const{name:t,data:o}of x)if(n.containsRange(o.newRange)){e[ra("0x69")](t,{range:n}),i=!0;break}}return i})),t[ra("0x92")][ra("0x7a")][ra("0x9d")]((e=>{let o=!1;const i=t[ra("0x1f")].get(ra("0x66")).me,r=n.getSuggestions()[ra("0x8c")]((t=>t[ra("0x59")]&&t[ra("0x7b")]==i)),s=new Set,x=new Set;for(const t of r)if(ra("0x61")==t[ra("0xa1")])for(const e of t[ra("0x44")]()){const n=e[ra("0x53")]().getContainedElement();if(n)if(n.is(ra("0x32"),ra("0x16"))&&ca(n)){t[ra("0x2a")](e[ra("0xc")]),s.add(n),o=!0;const i=n[ra("0xaa")],r=n[ra("0x51")],a=i&&i.is(ra("0x32"),ra("0x16")),c=r&&r.is(ra("0x32"),ra("0x16"));a&&!s[ra("0x97")](i)&&x[ra("0x99")](i),c&&!s.has(r)&&x.add(r)}else n.is(ra("0x32"),ra("0x5f"))&&n[ra("0x90")]&&(t.removeMarker(e[ra("0xc")]),o=!0)}else if("tablePasteCell"==t[ra("0xa1")]){if(!t[ra("0x33")]||!t.attributes[ra("0x10")])continue;const e=t.attributes[ra("0x12")];if(e&&Object.keys(e)[ra("0x77")])continue;const n=t.attributes.tablePasteChainId;let i=!0,s=!0;for(const e of r)if(e[ra("0xa1")]&&e[ra("0xa1")][ra("0x45")](ra("0x61"))){if(!e[ra("0x33")][ra("0x10")]){s=!1;break}if(e.id!=t.id&&e[ra("0x33")][ra("0x10")]==n){i=!1;break}}s&&i&&(t.removeMarkers(),o=!0)}for(const t of s)e[ra("0x6c")](t);for(const t of x)e[ra("0x24")](t);return o})),t[ra("0x5a")].for(ra("0x0"))[ra("0x88")]({model:ra("0x78"),view:(t,e)=>l(t),converterPriority:ra("0x4e")}),t.conversion.for(ra("0x6a")).markerToHighlight({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>e[ra("0xa")][ra("0x93")]?l(t,!1):null,converterPriority:"high"});const u=t[ra("0x26")][ra("0x6e")];this[ra("0x2c")](u.document,ra("0x17"),((t,e)=>{const n=[];for(const t of u[ra("0x60")](e[ra("0xe")])[ra("0x49")]())t.is("element",ra("0x58"))&&n[ra("0x29")](t);u[ra("0x6f")]((t=>{for(const e of n)t.move(t[ra("0x60")](e),t.createPositionBefore(e)),t.remove(e)}))}))}}function ca(t){if(t[ra("0x90")])return!0;const e=t[ra("0x9a")](0);return e.is(ra("0x32"),ra("0x5f"))&&e.isEmpty}function la(t,e={},n){for(const{isAnchor:o,cellHeight:i,cellWidth:r}of n[ra("0x64")](t,{includeAllSlots:!0,...e}))if(!o||1!=i||1!=r)return!1;return!0}const ua=["TableColumnResizeEditing","accept","handleResizeTableWidthCommand","tableWidth","type","resizeTableWidth","afterInit","resizeTable","_descriptionFactory","getSelectedElement","get","formatGroupId","getColumnGroupElement","format","editor","subType","getSuggestionCallback","registerCustomCallback","Users","columnWidths","bind","discard","handleSuggestionDescription","TrackChangesEditing","document","getContainedElement","change","formatInline","formatBlock","*Format:* resize table","registerDescriptionCallback","has","_suggestionFactory","model","plugins","getAttribute","locale"];var da,ga;da=ua,ga=169,function(t){for(;--t;)da.push(da.shift())}(++ga);const fa=function(t,e){return ua[t-=0]};class ma extends t.Plugin{[fa("0x16")](){if(!this.editor[fa("0xd")][fa("0xa")](fa("0x10")))return;const t=this[fa("0x1e")][fa("0xd")][fa("0x1a")](fa("0x2"));t.enableCommand(fa("0x15"),this.handleResizeTableWidthCommand[fa("0x24")](this)),t[fa("0xb")][fa("0x21")](fa("0x7"),"resizeTable","accept",t[fa("0xb")][fa("0x20")](fa("0x7"),null,"discard")),t[fa("0xb")][fa("0x21")]("formatBlock",fa("0x17"),fa("0x0"),t._suggestionFactory[fa("0x20")](fa("0x7"),null,fa("0x11"))),t[fa("0x18")][fa("0x9")](this.handleSuggestionDescription.bind(this))}[fa("0x12")](t,e){const n=this.editor[fa("0xd")][fa("0x1a")](fa("0x2")),o=this[fa("0x1e")][fa("0xd")][fa("0x1a")](fa("0x10")),i=e.table||this[fa("0x1e")][fa("0xc")][fa("0x3")].selection[fa("0x19")]();this.editor.model[fa("0x5")]((()=>{const r=o[fa("0x1c")](i);let s=r?o.getTableColumnsWidths(r):null,x=i[fa("0xe")](fa("0x13"))||null;const a=e.tableWidth||x,c=e[fa("0x23")]||s,l=this[fa("0x1e")].plugins[fa("0x1a")](fa("0x22")).me;for(const t of n.getSuggestions()){const e=t[fa("0x4")]();if(fa("0x17")===t[fa("0x1f")]&&e===i){t.author!==l&&t.discard();const e=t.data.commandParams;x=e[0][fa("0x13")],s=e[0][fa("0x23")];break}}t({table:i,tableWidth:a,columnWidths:c}),n.markBlockFormat(i,{commandName:fa("0x15"),commandParams:[{tableWidth:x,columnWidths:s}],formatGroupId:fa("0x17")},[],fa("0x17"))}))}[fa("0x1")](t){if("formatBlock"!=t[fa("0x14")]&&fa("0x6")!=t[fa("0x14")])return;const{data:e}=t;if(e&&fa("0x17")===e[fa("0x1b")]){const t=fa("0x8");return{type:fa("0x1d"),content:Qo(this.editor[fa("0xf")],t)}}}}const ha=["afterInit","TrackChangesEditing","has","Template","enableCommand","plugins","get"];var pa,ba;pa=ha,ba=472,function(t){for(;--t;)pa.push(pa.shift())}(++ba);const Ea=function(t,e){return ha[t-=0]};class _a extends t.Plugin{[Ea("0x4")](){const t=this.editor;t[Ea("0x2")][Ea("0x6")](Ea("0x0"))&&t[Ea("0x2")][Ea("0x3")](Ea("0x5"))[Ea("0x1")]("insertTemplate")}}const Ta=["_descriptionFactory","ELEMENT_TABLE_OF_CONTENTS","registerElementLabel","locale","TrackChangesEditing","tableOfContents","commands","enableCommand","get","afterInit","editor","plugins","insertTableOfContents"];var ya,Ca;ya=Ta,Ca=185,function(t){for(;--t;)ya.push(ya.shift())}(++Ca);const Aa=function(t,e){return Ta[t-=0]};class ka extends t.Plugin{[Aa("0x6")](){const t=this[Aa("0x7")];if(!t[Aa("0x3")][Aa("0x5")](Aa("0x9")))return;t[Aa("0x8")][Aa("0x5")](Aa("0x1"))[Aa("0x4")](Aa("0x9"));const e=t.plugins.get("TrackChangesEditing"),n=t[Aa("0x0")];e[Aa("0xa")][Aa("0xc")](Aa("0x2"),(t=>Qo(n,Aa("0xb"),t)))}}const Ia=["schema","_splitMarkerName","has","isEqual","document","editor","isCollapsed","end","afterInit","suggestion","start","model","ELEMENT_TITLE","removeMarker","getChangedMarkers","createRange","forward","locale","title-content","from","updateMarker","element"];var Ra,Sa;Ra=Ia,Sa=314,function(t){for(;--t;)Ra.push(Ra.shift())}(++Sa);const va=function(t,e){return Ia[t-=0]};class Na extends t.Plugin{[va("0x2")](){const t=this[va("0x15")];if(!t.plugins[va("0x12")]("Title"))return;const e=t.plugins.get("TrackChangesEditing");e._descriptionFactory.registerElementLabel(va("0xc"),(()=>Qo(t[va("0xb")],va("0x6")))),t[va("0x5")][va("0x14")].registerPostFixer((n=>{let o=!1;const i=Array[va("0xd")](t[va("0x5")].document.differ[va("0x8")]());for(const{name:r,data:s}of i){const{group:i}=e[va("0x11")](r);if(va("0x3")!==i||!s.newRange)continue;const x=s.newRange,a=x.end.nodeBefore;if(!a||!a.is(va("0xf"),va("0xc")))continue;if(!x[va("0x4")].isTouching(x[va("0x1")]))continue;const c=t[va("0x5")][va("0x10")].getNearestSelectionRange(x[va("0x1")],va("0xa"));if(c&&c[va("0x0")]){const t=n[va("0x9")](x[va("0x4")],c[va("0x4")]);t[va("0x13")](x)||(n[va("0xe")](r,{range:t}),o=!0)}o||(n[va("0x7")](r),o=!0)}return o}))}}const La=["undo","get","enableCommand","has","TrackChangesEditing","editor","afterInit","plugins"];var Ma,wa;Ma=La,wa=353,function(t){for(;--t;)Ma.push(Ma.shift())}(++wa);const Oa=function(t,e){return La[t-=0]};class Fa extends t.Plugin{[Oa("0x5")](){const t=this[Oa("0x4")],e=t[Oa("0x6")][Oa("0x0")](Oa("0x3"));t[Oa("0x6")][Oa("0x2")]("UndoEditing")&&(e.enableCommand(Oa("0x7")),e[Oa("0x1")]("redo"))}}const Da=["plugins","afterInit","toggleTableCaption","enableCommand","TrackChangesEditing","TableCaptionEditing","requires","has","get"];var Ba,Pa;Ba=Da,Pa=487,function(t){for(;--t;)Ba.push(Ba.shift())}(++Pa);const Ua=function(t,e){return Da[t-=0]};class ja extends t.Plugin{static get[Ua("0x5")](){return[zx]}[Ua("0x0")](){const t=this.editor;t[Ua("0x8")][Ua("0x6")](Ua("0x4"))&&t[Ua("0x8")][Ua("0x7")](Ua("0x3"))[Ua("0x2")](Ua("0x1"))}}const Ga=["enableCommand","batch","*Format:* change table cell properties","tableWidth","get","has","nodeAfter","_suggestionFactory","registerDescriptionCallback","TrackChangesEditing","tableCellProperties","model","table","selection","tableHeight","discard","formatBlock","getFirstPosition","getSuggestionCallback","editor","handleDiscardAction","tableCellPadding","_descriptionFactory","_handlePropertyChange","tableBorderStyle","getAttribute","format","registerCustomCallback","TablePropertiesEditing","getContainedElement","tableProperties","tableCellWidth","getSuggestions","removeAttribute","tableBackgroundColor","tableCellHeight","enqueueChange","accept","handleSuggestionDescription","afterInit","data","document","join","plugins","tableCellHorizontalAlignment","locale","TableUtils","TableCellPropertiesEditing","markBlockFormat","tableBorderColor","subType","tableCellBorderColor"];var Va,Ha;Va=Ga,Ha=382,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("0xc")]=[za("0x1f"),za("0x6"),"tableBorderWidth","tableAlignment",za("0x25"),za("0x30"),za("0x10")],this[za("0x2c")]=[za("0x21"),"tableCellBorderStyle","tableCellBorderWidth",za("0x3"),za("0xd"),za("0x11"),"tableCellBackgroundColor",za("0x1a"),"tableCellVerticalAlignment"]}static get pluginName(){return"TrackChangesTableProperties"}[za("0x15")](){const t=this[za("0x1")][za("0x19")].get(za("0x2b"));if(this[za("0x1")][za("0x19")].has(za("0xa"))){for(const e of this[za("0xc")])t.enableCommand(e,((t,n)=>{const o=this[za("0x1")][za("0x2d")][za("0x17")][za("0x2f")][za("0x33")]().findAncestor(za("0x2e"));this._handlePropertyChange(e,[o],this[za("0xc")],za("0xc"),t,n)}));t._suggestionFactory[za("0x9")](za("0x32"),za("0xc"),"accept",t[za("0x29")].getSuggestionCallback(za("0x32"),null,"discard")),t._suggestionFactory[za("0x9")](za("0x32"),za("0xc"),za("0x31"),((t,e)=>this[za("0x2")](this[za("0xc")],t,e))),t[za("0x29")][za("0x9")](za("0x32"),za("0xc"),"join",(()=>!1))}if(this[za("0x1")][za("0x19")][za("0x27")](za("0x1d"))){for(const e of this[za("0x2c")])t[za("0x22")](e,((t,n)=>{const o=this[za("0x1")].plugins[za("0x26")](za("0x1c")).getSelectionAffectedTableCells(this[za("0x1")].model[za("0x17")].selection);this._handlePropertyChange(e,o,this.tableCellProperties,"tableCellProperties",t,n)}));t[za("0x29")].registerCustomCallback(za("0x32"),za("0x2c"),za("0x13"),t[za("0x29")][za("0x0")](za("0x32"),null,"discard")),t[za("0x29")][za("0x9")](za("0x32"),"tableCellProperties",za("0x31"),((t,e)=>this[za("0x2")](this[za("0x2c")],t,e))),t._suggestionFactory[za("0x9")](za("0x32"),za("0x2c"),za("0x18"),(()=>!1))}t[za("0x4")][za("0x2a")]((t=>this[za("0x14")](t)))}[za("0x5")](t,e,n,o,i,r){const s=this.editor.plugins[za("0x26")](za("0x2b"));this[za("0x1")].model[za("0x12")](r[za("0x23")],(()=>{for(const t of e)if(this._getSuggestion(t,o))i(r);else{const e={};for(const o of n){const n=t[za("0x7")](o);void 0!==n&&(e[o]=n)}i(r),s[za("0x1e")](t,{commandParams:[e]},[],o)}}))}[za("0x2")](t,e,n){const o=e[0].start[za("0x28")],i=n.commandParams[0];this.editor[za("0x2d")].change((e=>{for(const n of t)void 0!==i[n]?e.setAttribute(n,i[n],o):e[za("0xf")](n,o)}))}handleSuggestionDescription(t){if(t[za("0x16")])switch(t[za("0x20")]){case za("0xc"):return{type:za("0x8"),content:Qo(this[za("0x1")][za("0x1b")],"*Format:* change table properties")};case za("0x2c"):return{type:za("0x8"),content:Qo(this.editor[za("0x1b")],za("0x24"))}}}_getSuggestion(t,e){const n=this.editor[za("0x19")][za("0x26")](za("0x2b"));for(const o of n[za("0xe")]({skipNotAttached:!0})){const n=o[za("0xb")]();if(o[za("0x20")]===e&&n===t)return o}return null}}var Ka=Function.prototype,qa=Object.prototype,Xa=Ka.toString,$a=qa.hasOwnProperty,Za=Xa.call(Object);const Ya=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 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=["isUndo","trackChangesCommand","some","stopListening","set","add","subType","execute","join","_setSuggestionRange","notReady","ariaLiveAnnouncer","_joinWithAdjacentSuggestions","change:activeMarkers","value","addCommentThread","getDifference","_SUGGESTION_ANNOUNCEMENT","discardSelectedSuggestions","options","insertion:","_customCallbacks","createPositionAfter","oldName","type","element","markerToData","formatBlock:accept","setAttribute","markInsertion","map","attribute","root","isSelectable","hasComments","rootName","unshift","showSuggestionHighlights","upcast","delete","_registerInlineAttribute","_recordAttributeChanges","differ","$marker","comments","rethrowUnexpectedError","author","data","formatBlock","markMultiRangeInsertion","track-changes-adapter-missing-getsuggestion","changeAttribute","writer","push","_inlineAttributeKeys","isCollapsed","consume","model","editingDowncast","plugins","trackChanges.trackFormatChanges","track-changes-command-not-found","createSelection","keys","data-suggestion","getAttribute","from","authorName","range","suggestion-type","formatBlock:chain","discardAllSuggestions","isRemovable","elementToElement","isObject","ck-suggestion-marker","_updateSuggestionData","unbindElementFromMarkerName","createRange","_getAuthorFromId","deletion:","rename","_handleNewSuggestionMarker","oldRange","move","creator","item","$elementName","insert","trackChanges.mergeNestedSuggestions","selection","formatBlock:join","document","deletion:accept","insertion:chain","default","markerName","isLocal","define","key","oldValue","listenTo","_suggestionFactory","discardSuggestion","_trackFormatChanges","change","createPositionAt","track-changes-user-not-found","getMarkers","containsRangeInObject","getNearestSelectionRange","fetchCommentThread","suggestion","mapper","next","getShiftedBy","start","_mergeNestedSuggestions","suggestion:attribute:","formatInline:discard","remove","announce","version","high","formatInline:","skipNestingCheck","FORMATTING","addClass","_blockAttributeKeys","$graveyard","Users","for","createPositionBefore","insertion","commandName","before","error-saving-suggestion-data-suggestion-discarded","CommentsRepository","$text","nodeBefore","_registerDefaultCallbacks","_commentsRepository","splice","_initAriaMarkerChangeAnnouncements","every","_processAttributeSuggestions","consumable","always","fromCharCode","_suggestions","_model","suggestionChanged","multipleBlocks","deletion","ck-suggestion-marker-","createRangeIn","normal","PENDING_ACTION_SUGGESTION","enableReadOnlyMode","isBefore","tablePasteChainId","lowest","track-changes-adapter-already-set","get","concat","markerToHighlight","conversion","elementStart","adapter","_isDataLoaded","ck-suggestion-marker--active","isEqual","$textProxy","pop","markAttributeChange","getIntersection","getChanges","setSelection","getChangedMarkers","removeAttribute","batch","_getSuggestionData","substring","splitPosition","_editor","_createSuggestion","formatGroupId","suggestion:","_processAttributeChanges","_suggestionState","updateSuggestion","_refreshAttributeSuggestionsChain","getRange","activeMarkers","addRange","markMultiRangeDeletion","isOwn","registerCustomCallback","startsWith","addMarker:suggestion:attribute","addSuggestion","rejected","isTouching","getAllAdjacentSuggestions","authoredAt","containsPosition","accept","_enableDefaultAttributesIntegration","addSuggestionData","originalSuggestionId","markInlineFormat","isBlock","_joinSuggestions","_removeSuggestion","substr","_enabledCommands","_splitMarkerName","length","forceDefaultExecution","getMultiRangeId","multi","newRange","_reduceSuggestionAttributeRange","_setSuggestionData","accepted","acceptSuggestion","_checkSuggestionCorrectness","group","insertion:accept","removeMarker:suggestion:attribute","_getMarkerAnnouncementText","collaboration.channelId","registerPostFixer","discard","name","getCustomProperty","containsItem","ready","previous","_breakSuggestionMarker","highest","fire","targetPosition","after","_recordAttributeSuggestionsFromVersion","history","includes","getWalker","enableCommand","formatBlock:discard","hasCommentThread","updateMarker","schema","commentThread","addMarker","ck-suggestion-marker-formatBlock","reconvertMarker","buildSuggestion","split","parent","has","containsRange","createdAt","PendingActions","TrackChangesEditing","track-changes-suggestion-data-mismatch","_reduceExistingSuggestions","getFirstMarker","toUpperCase","addAttribute","trackChanges","formatInline","deletion:join","getSuggestions","requires","low","acceptAllSuggestions","chain","addMarker:suggestion","getFirstRange","isExternal","find","markerReady","howMany","setTo","stop","return","_registerBlockAttribute","isInsideObject","forward","position","_addSuggestionMarker","isAtEnd","_cutOutSuggestionMarker","track-changes-enable-command-twice","dataReady","getRanges","commands","_addThreadToSuggestion","removeMarkers","meta","getItems","_isBlockAttribute","getLastMatchingPosition","suggestionLoaded","getContainedElement","moveTargetPosition","_isForcedDefaultExecutionBlock","acceptSelectedSuggestions","dataToMarker","insertion:join","LEAVE","_adapter","clone","attributes","_rangeIsInLocalUserInsertion","never","attributeNewValue","newValue","markers","update:suggestion","addComment","editor","applyOperation","addMarkerName","attributeOldValue","backward","getSuggestionCallback","sort","newName","filter","_refreshSuggestionsChain","nodeAfter","removeMarker","addHighlight","removed","markerNameToElements","attributeKey","isInContent","change:data","formatInline:accept","head","assign","@external","getUser","groupId","getSuggestion","refresh","formatBlock:","isAfter","end","isIntersecting","values","addMarker:suggestion:formatBlock","then","bindElementToMarker","config","clear","_getExternalAuthor","isLimit","forEach","init","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.","isNextTo","dataDowncast","isMultiRange","_findSuggestions","detach","locale","createRangeOn","toViewElement","isDocumentOperation","markDeletion","_saved","containerElement","_defaultCallbacks","marker-count","isAtStart"];var dc,gc;dc=uc,gc=363,function(t){for(;--t;)dc.push(dc.shift())}(++gc);const fc=function(t,e){return uc[t-=0]},mc=fc("0x66");class hc extends t.Plugin{static get[fc("0x121")](){return[fc("0x98"),r.Users,t.PendingActions,ci,fi,_i,ki,Li,Di,Vi,tr,rr,lr,hr,Tr,Rr,Mr,Pr,Hr,Xr,Qr,is,fs,cs,Es,As,vs,Os,Us,Ks,Ys,nx,xx,dx,bx,Cx,Sx,Ox,Ux,zx,Zx,ea,ja,aa,ma,ka,Wa,_a,Na,Fa]}static get pluginName(){return fc("0x117")}constructor(t){function e(t){return t[fc("0x2d")]((t=>String[fc("0xa3")](t)))[fc("0x17")]("")}super(t),this[fc("0x103")]=null,this.set(fc("0xd0"),[]),this.on(fc("0x1c"),((e,n,o,i)=>{this[fc("0xa5")][fc("0x78")]((()=>{for(const e of[...i,...o])this[fc("0xa5")][fc("0x14e")][fc("0x113")](e)&&t.editing[fc("0x10f")](e)}))})),this._descriptionFactory=new ii(this[fc("0x151")].model[fc("0x10b")],this[fc("0x151")][fc("0x5")]),this[fc("0x147")]=null,this._suggestionFactory=new pc(this[fc("0x151")]),this[fc("0xa4")]=new Map,this[fc("0x9c")]=t.plugins[fc("0xb2")](fc("0x98")),this[fc("0xe6")]=new Set,this._model=this[fc("0x151")][fc("0x48")],this[fc("0xcc")]=new WeakMap,this[fc("0x142")]=!1,this[fc("0x8f")]=new Set([fc("0x66")]),this[fc("0x45")]=new Set,t[fc("0x173")][fc("0x71")]("trackChanges.trackFormatChanges",fc("0x6e")),this._trackFormatChanges=t.config.get(fc("0x4b")),t[fc("0x173")][fc("0x71")](fc("0x68"),!0),this[fc("0x84")]=t[fc("0x173")].get(fc("0x68")),this[fc("0x10")]=new d(t,this[fc("0xe6")]),this[fc("0x9e")](),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,50,52])}[fc("0x178")](){const t=this[fc("0x151")],n=(t,e)=>{if(fc("0x2e")!=t)return fc("0xa9")+t;const n=e[fc("0x111")]("|")[0];return this._isBlockAttribute(n)?fc("0x10e"):"ck-suggestion-marker-formatInline"};t[fc("0xb5")][fc("0x92")](fc("0x49")).markerToHighlight({model:fc("0x7f"),view:t=>{const{id:e,type:o,subType:i}=this[fc("0xe7")](t[fc("0x6f")]),r=[fc("0x5a"),n(o,i)];let s=3e3;return this[fc("0xd0")][fc("0x105")](t[fc("0x6f")])&&(r[fc("0x44")](fc("0xb9")),s=3010),fc("0xa8")==o&&(s+=5),{classes:r,attributes:{"data-suggestion":e},priority:s}}}),t[fc("0xb5")][fc("0x92")](fc("0x1"))[fc("0x14")]((e=>{e.on(fc("0x125"),((e,n,o)=>{if(!o[fc("0x22")].showSuggestionHighlights)return;const i=n[fc("0x65")];if(!i)return;const r=o[fc("0x80")].toViewElement(i);t.model[fc("0x10b")][fc("0x59")](i)&&r&&!r[fc("0xfa")]("widget")&&r.is(fc("0xb"))&&(0,x.toWidget)(r,o[fc("0x43")])}),{priority:fc("0x8a")})})),t[fc("0xb5")][fc("0x92")](fc("0x1"))[fc("0xb4")]({model:"suggestion",view:(t,e)=>{if(!e[fc("0x22")].showSuggestionHighlights)return null;const{type:o,subType:i}=this._splitMarkerName(t[fc("0x6f")]);return{classes:["ck-suggestion-marker",n(o,i)],priority:3e3}}});const o=({showActiveMarkers:e=!0,isAttributeSuggestion:n=!1}={})=>(o,i,r)=>{if(!i[fc("0x65")])return;const{id:s}=this[fc("0xe7")](i.markerName);if(n){const t=Sc(this[fc("0xa4")][fc("0xb2")](s));if(!this[fc("0x13d")](t))return}if(i[fc("0x65")].is(fc("0x69")))return void r[fc("0xa1")][fc("0x47")](i.item,o[fc("0xf9")]);const x=r[fc("0x80")][fc("0x7")](i[fc("0x65")]);if(i[fc("0x65")].is("element")&&t.model[fc("0x10b")][fc("0xe2")](i[fc("0x65")])&&!x[fc("0xfa")](fc("0x15d"))){r[fc("0x43")].addClass([fc("0x5a"),fc("0x10e")],x),r[fc("0x43")][fc("0x2b")]("data-suggestion",s,x),r[fc("0x80")][fc("0x172")](x,i[fc("0x6f")]),e&&(this[fc("0xd0")][fc("0x105")](i[fc("0x6f")])?r[fc("0x43")][fc("0x8e")](fc("0xb9"),x):r.writer.removeClass(fc("0xb9"),x));for(const e of t[fc("0x48")][fc("0xaa")](i[fc("0x65")])[fc("0x13c")]())r[fc("0xa1")][fc("0x47")](e,o[fc("0xf9")]);r[fc("0xa1")][fc("0x47")](i[fc("0x65")],o[fc("0xf9")])}};t.conversion.for(fc("0x1"))[fc("0x14")]((t=>{t.on(fc("0x170"),((t,e,n)=>{n.options[fc("0x34")]&&o({showActiveMarkers:!1})(t,e,n)}),{priority:fc("0xff")})})),t[fc("0xb5")][fc("0x92")](fc("0x1")).add((t=>{t.on(fc("0xd6"),((t,e,n)=>{n.options[fc("0x34")]&&o({showActiveMarkers:!1,isAttributeSuggestion:!0})(t,e,n)}),{priority:fc("0xff")})})),t.conversion[fc("0x92")](fc("0x1"))[fc("0x29")]({model:fc("0x7f"),view:(t,e)=>e[fc("0x22")][fc("0x34")]?null:{group:fc("0x7f"),name:t[fc("0xe5")](11)}}),t[fc("0xb5")].for(fc("0x35"))[fc("0x58")]({view:{name:"suggestion",attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=fc("0xca")+t.getAttribute(fc("0x54"))+":"+t[fc("0x50")]("id");return t.getAttribute(fc("0xd"))&&(n+=":"+t.getAttribute(fc("0xd"))),e.createElement(fc("0x3a"),{"data-name":n})}}),t[fc("0xb5")][fc("0x92")](fc("0x35"))[fc("0x144")]({view:fc("0x7f")}),t[fc("0xb5")][fc("0x92")](fc("0x49"))[fc("0x14")]((t=>{t.on("addMarker:suggestion:formatBlock",o(),{priority:fc("0x8a")})})),t[fc("0xb5")].for(fc("0x49"))[fc("0x14")]((t=>{t.on(fc("0xd6"),o({isAttributeSuggestion:!0}),{priority:fc("0x8a")})})),t[fc("0xb5")][fc("0x92")](fc("0x49"))[fc("0x14")]((t=>{t.on("removeMarker:suggestion:formatBlock",((t,e,n)=>{const o=n[fc("0x80")].markerNameToElements(e[fc("0x6f")]);if(o)for(const t of o)t[fc("0xfa")](fc("0x15d"))||(n[fc("0x43")].removeClass([fc("0x5a"),fc("0x10e"),fc("0xb9")],t),n[fc("0x43")].removeAttribute(fc("0x4f"),t),n[fc("0x80")][fc("0x5c")](t,e[fc("0x6f")]))}),{priority:fc("0x8a")})})),t[fc("0xb5")][fc("0x92")](fc("0x49"))[fc("0x14")]((t=>{t.on(fc("0xf4"),((t,e,n)=>{const o=n[fc("0x80")][fc("0x15f")](e[fc("0x6f")]);if(!o)return;const{id:i}=this[fc("0xe7")](e[fc("0x6f")]),r=Sc(this[fc("0xa4")][fc("0xb2")](i));if(this[fc("0x13d")](r))for(const t of o)t[fc("0xfa")](fc("0x15d"))||(n[fc("0x43")].removeClass([fc("0x5a"),fc("0x10e"),fc("0xb9")],t),n.writer[fc("0xc2")]("data-suggestion",t),n.mapper.unbindElementFromMarkerName(t,e[fc("0x6f")]))}),{priority:fc("0x8a")})})),t[fc("0x48")][fc("0x6b")][fc("0xf7")]((e=>{let n=!1;const o=Array[fc("0x51")](t[fc("0x48")][fc("0x6b")][fc("0x39")].getChangedMarkers()),i=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,subType:l,id:u}=this[fc("0xe7")](x);if(fc("0x7f")!==o)continue;const d=this[fc("0xa4")][fc("0xb2")](u);if(null!=a[fc("0xec")]){fc("0x11e")==c&&(n=n||_c(a.newRange,x,e,t[fc("0x48")][fc("0x10b")]));const o=fc("0x2e")==c&&this[fc("0x13d")](l[fc("0x111")]("|")[0]);if(a[fc("0xec")][fc("0x46")]||"$graveyard"==a[fc("0xec")][fc("0x2f")][fc("0x32")]||fc("0x3f")==c&&!yc(a[fc("0xec")])||o&&!yc(a[fc("0xec")])||fc("0xa8")==c&&(Ec(s=a.newRange)||(r=s)[fc("0x83")][fc("0x112")]==r[fc("0x16d")][fc("0x9a")]&&r[fc("0x83")][fc("0x133")]))e[fc("0x15c")](x),n=!0;else{if(!d||!d.isInContent)continue;i[fc("0x14")](d)}}}var r,s;return i.size>0&&(n=!!this[fc("0x1b")](i)||n),n})),t[fc("0x48")].document[fc("0xf7")]((e=>{let n=!1;for(const o of t.model.document[fc("0x39")][fc("0xbf")]())if(fc("0x67")==o[fc("0x27")])for(const o of this[fc("0xa4")][fc("0x16f")]()){if(o[fc("0x2")]||!o[fc("0x161")])continue;const i=fc("0x3f")==o.type,r=Sc(o),s=r&&this[fc("0x13d")](r);if(!i&&!s)continue;const x=o[fc("0x126")]();if(x[fc("0x83")].parent!=x[fc("0x16d")].parent&&!x[fc("0x16d")][fc("0x133")]){const i=t[fc("0x48")][fc("0x79")](x[fc("0x83")].nodeAfter,fc("0x16d")),r=t.model.createRange(x[fc("0x83")],i);e[fc("0x10a")](o[fc("0x11a")](),{range:r}),n=!0}}return n})),t[fc("0x48")][fc("0x6b")][fc("0xf7")]((t=>this[fc("0xcb")](t))),t.model[fc("0x6b")].registerPostFixer((t=>!t[fc("0xc3")][fc("0x70")]&&this._processAttributeSuggestions(t))),t[fc("0x48")].markers.on(fc("0x14f"),((t,e,n)=>{if(null==n){const{id:t}=this[fc("0xe7")](e[fc("0xf9")]),n=this[fc("0xa4")][fc("0xb2")](t);n&&n[fc("0x153")](e[fc("0xf9")])}})),t[fc("0x48")][fc("0x6b")].on(fc("0x162"),(()=>{const e=Array[fc("0x51")](t[fc("0x48")][fc("0x6b")][fc("0x39")].getChangedMarkers())[fc("0x159")]((t=>"suggestion"===this[fc("0xe7")](t[fc("0xf9")])[fc("0xf2")]));if(0===e[fc("0xe8")])return;e[fc("0x157")](((t,e)=>{const n=t[fc("0x3e")][fc("0x62")],o=e[fc("0x3e")][fc("0x62")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[fc("0x83")][fc("0xae")](o[fc("0x83")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:i}of e){const{id:e}=this[fc("0xe7")](t);if(null===i[fc("0x62")]){const e=this[fc("0x61")](t);o[fc("0x14")](e)}else{const t=this[fc("0xa4")].get(e);null!==i[fc("0xec")]||t[fc("0x161")]?(n[fc("0x14")](t[fc("0x164")]),o[fc("0x14")](t)):this[fc("0xe4")](t)}}o.size>0&&this[fc("0x15a")](o);for(const t of n)this[fc("0x100")](fc("0xa6"),t)})),t[fc("0x48")].on(fc("0x152"),((e,n)=>{const o=n[0];if(!this[fc("0xa4")].size)return;if(!o[fc("0x8")])return;if(o[fc("0xc3")][fc("0xf")]||!o[fc("0xc3")].isLocal)return;let i,r;switch(o[fc("0x27")]){case fc("0x67"):i=t[fc("0x48")][fc("0x79")](o[fc("0x131")]),r=i.getShiftedBy(o[fc("0x12a")]);break;case fc("0x111"):i=t[fc("0x48")][fc("0x79")](o[fc("0xc6")]),r=t.model[fc("0x79")](o[fc("0x141")]);break;case fc("0x63"):i=t[fc("0x48")].createPositionAt(o[fc("0x101")]),r=i[fc("0x82")](o.howMany);break;default:return}const s=t[fc("0x48")][fc("0x5d")](i,r);t[fc("0x48")][fc("0x78")]((()=>{for(const{suggestion:t,meta:e}of this[fc("0x3")](s)){if(t.isMultiRange)continue;if(fc("0x11e")==t.type)continue;const n=Sc(t);if(n&&this._isBlockAttribute(n)&&fc("0x111")!=o.type)continue;const x=t.data&&t[fc("0x3e")][fc("0xa7")];("formatBlock"!=t.type||"split"==o[fc("0x27")]&&!x)&&(e[fc("0x7c")]||fc("0x94")==t[fc("0x27")]&&e.isOwn||t[fc("0x126")]()[fc("0x114")](s)&&this[fc("0xfe")](t,i,r))}}))}),{priority:fc("0xb0")}),t.model.on("deleteContent",((e,n)=>{const o=n[0],i=n[1];if(i&&i[fc("0xe9")])return;if(this[fc("0x142")])return;if(!this[fc("0x10")].value)return;if(o[fc("0x46")])return;const r=t[fc("0x48")].schema,{start:s,end:x}=o[fc("0x126")](),a=s[fc("0x15b")]&&r[fc("0x176")](s.nodeAfter)?null:r[fc("0x7d")](s,fc("0x130")),c=x[fc("0x9a")]&&r[fc("0x176")](x[fc("0x9a")])?null:r[fc("0x7d")](x,fc("0x155")),l=t[fc("0x48")][fc("0x5d")](a?a[fc("0x83")]:s,c?c.end:x);t[fc("0x48")][fc("0x78")]((e=>{this[fc("0x9")](l);const n=t.model[fc("0x10b")].getNearestSelectionRange(l.start);o.is("documentSelection")?e[fc("0xc0")](n):o[fc("0x12b")](n)})),e.stop()}),{priority:e.priorities[fc("0xab")]+10}),t.model.on("insertContent",((e,n)=>{const o=n[n[fc("0xe8")]-1];o&&o[fc("0xe9")]||this[fc("0x142")]||this[fc("0x10")][fc("0x1d")]&&(t.model[fc("0x78")]((()=>{let o=t.model.insertContent(n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[fc("0x12d")]=o[fc("0x148")]();const i=o[fc("0x16d")][fc("0x9a")],r=t[fc("0x48")][fc("0x10b")];i&&r[fc("0xe2")](i)&&!r[fc("0x59")](i)&&(o=t[fc("0x48")][fc("0x5d")](o[fc("0x83")],t.model[fc("0x79")](i,fc("0x16d")))),this[fc("0x2c")](o)})),e.stop())}),{priority:fc("0x8a")}),this[fc("0x151")].commands[fc("0x14")](fc("0x11d"),this[fc("0x10")]),this.enableCommand("trackChanges");const i=new p(t,this._suggestions);t[fc("0x138")].add(fc("0xf0"),i),this[fc("0x107")]("acceptSuggestion");const r=new y(t,this._suggestions);t.commands[fc("0x14")](fc("0x76"),r),this[fc("0x107")]("discardSuggestion"),t.commands.add(fc("0x123"),new F(t,i,this[fc("0xa4")])),this[fc("0x107")](fc("0x123")),t.commands.add(fc("0x56"),new F(t,r,this[fc("0xa4")])),this[fc("0x107")](fc("0x56")),t[fc("0x138")][fc("0x14")](fc("0x143"),new j(t,i,this[fc("0xa4")])),this.enableCommand(fc("0x143")),t[fc("0x138")][fc("0x14")](fc("0x21"),new j(t,r,this._suggestions)),this.enableCommand(fc("0x21"));const s=t[fc("0x4a")][fc("0xb2")](fc("0x98"));this.listenTo(s,fc("0x150"),((t,{threadId:e})=>{const n=this._suggestions.get(e);n&&n[fc("0x10c")]&&1===n[fc("0x10c")][fc("0xe8")]&&this[fc("0x5b")](e,{hasComments:!0})}),{priority:fc("0x122")}),this.listenTo(s,"removeComment",((t,{threadId:e})=>{const n=this._suggestions[fc("0xb2")](e);n&&n[fc("0x10c")]&&!n[fc("0x10c")][fc("0xe8")]&&this[fc("0x5b")](e,{hasComments:!1})}),{priority:"low"})}set[fc("0xb7")](t){if(this[fc("0x147")])throw new e.CKEditorError(fc("0xb1"),this);this[fc("0x147")]=t}get[fc("0xb7")](){return this._adapter}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[fc("0xa4")].values())t&&!e[fc("0x161")]||n[fc("0x44")](e);return e?n[fc("0x2d")]((t=>t.toJSON())):n}[fc("0x169")](t){const n=this[fc("0xa4")].get(t);if(!n)throw new e.CKEditorError("track-changes-suggestion-not-found",this);return n}hasSuggestion(t){return this[fc("0xa4")][fc("0x113")](t)}[fc("0xdf")](t){const{authorId:e,id:n,attributes:o}=t,[i,r]=t[fc("0x27")][fc("0x111")](":"),s=this[fc("0xa4")][fc("0xb2")](n)||this[fc("0xc8")](i,r,n,e,o);if(this[fc("0x139")](s),this[fc("0xf1")](s,i,r||null,e),s[fc("0x115")]=t.createdAt,s[fc("0xb8")]=!0,o&&o[fc("0x166")]){const t=o[fc("0x166")],e=this[fc("0x175")](t[fc("0x52")]);s[fc("0xdb")]=t[fc("0x115")],s[fc("0x3d")]=e,s[fc("0x127")]=!0}else s[fc("0xdb")]=t[fc("0x115")];switch(t[fc("0x3e")]&&(s[fc("0x3e")]=t[fc("0x3e")]),t.attributes&&(s[fc("0x149")]=t[fc("0x149")]),this[fc("0x147")]&&this[fc("0x147")][fc("0xd7")]||(s[fc("0xa")]=!0),this[fc("0xcc")][fc("0xb2")](s)){case fc("0x19"):this[fc("0xcc")].set(s,"dataReady");break;case fc("0x129"):s[fc("0x161")]?(this[fc("0x15a")](new Set([s])),this[fc("0x1b")](new Set([s])),this[fc("0xcc")][fc("0x13")](s,fc("0xfc")),this[fc("0x100")](fc("0x13f"),s)):this[fc("0xcc")].set(s,fc("0x15e"))}return s}[fc("0xf0")](t){this[fc("0xe9")]((()=>{this.editor[fc("0x48")][fc("0x78")]((()=>{for(const e of t[fc("0xda")]())e.accept()}))}))}discardSuggestion(t){this.forceDefaultExecution((()=>{this[fc("0x151")][fc("0x48")].change((()=>{for(const e of t[fc("0xda")]())e[fc("0xf8")]()}))}))}[fc("0x107")](t,n){const o=this.editor.commands.get(t);if(!o)throw new e.CKEditorError(fc("0x4c"),this,{commandName:t});if(this[fc("0xe6")][fc("0x113")](o))throw new e.CKEditorError(fc("0x135"),this,{commandName:t});this._enabledCommands[fc("0x14")](o),n&&o.on("execute",((t,e)=>{this[fc("0x10")].value&&(this[fc("0x142")]||(e[fc("0xe8")]>0&&e[e[fc("0xe8")]-1]&&e[e[fc("0xe8")]-1].forceDefaultExecution?e[fc("0xbc")]():(t[fc("0x12d")]=n(((...t)=>o[fc("0x16")](...t,{forceDefaultExecution:!0})),...e),t[fc("0x12c")]())))}),{priority:"high"})}[fc("0xe9")](t){let n,o;const i=this._isForcedDefaultExecutionBlock;this[fc("0x142")]=!0;try{n=t()}catch(t){o=t}return i||(this[fc("0x142")]=!1),o&&e.CKEditorError[fc("0x3c")](o,this),n}markInsertion(t,n=null,o={}){if(t.isCollapsed)return null;const i=this.editor[fc("0x4a")].get("Users").me;for(const{suggestion:e,meta:i}of this[fc("0x3")](t,fc("0x94")))if(i[fc("0xd3")]){if(!i[fc("0x0")]){if(i[fc("0x7c")]){if(!this[fc("0x84")]||!Ic(e,o))continue;return e}if(Ic(e,o))return e;this[fc("0xfe")](e,t.start,t.end);break}if(n==e[fc("0x15")]&&Ic(e,o)){const n=e[fc("0x126")]();return n.start[fc("0xba")](t.end)?this._setSuggestionRange(e,this[fc("0xa5")][fc("0x5d")](t.start,n[fc("0x16d")])):this[fc("0x18")](e,this._model[fc("0x5d")](n.start,t[fc("0x16d")])),e}}const r=(0,e.uid)(),s=i.id,x=n?fc("0x23")+n:fc("0x94"),a=this[fc("0xee")]({id:r,type:x,createdAt:new Date,authorId:s,attributes:o});return this[fc("0x132")](x,r,s,t),a}[fc("0x40")](t,n="multi",o={}){const i=this[fc("0x151")][fc("0x4a")].get("Users").me,r=this[fc("0x75")][fc("0x156")](fc("0x94"),n,fc("0x17"));for(const e of this[fc("0x120")]())if(e[fc("0x3d")].id==i.id&&fc("0x94")==e.type&&e.subType==n&&Ic(e,o)&&(r(e[fc("0x137")](),t)||r(t,e[fc("0x137")]()))){for(const n of t)e[fc("0xd1")](n);return e}for(const{suggestion:e,meta:n}of this[fc("0x3")](t,fc("0x94"))){if(!n[fc("0xd3")])continue;if(!this[fc("0x84")]&&n[fc("0x7c")])continue;if(!Ic(e,o))continue;let i=!0;for(const n of e[fc("0x137")]())for(const e of t)if(!n[fc("0x114")](e)){i=!1;break}if(i)return e}const s=(0,e.uid)(),x=i.id,a=fc("0x23")+n,c=this[fc("0xee")]({id:s,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[fc("0x132")](a,s,x,e,Jo.getMultiRangeId());return c}[fc("0xe1")](t,n,o=null,i={}){if(o=o||Tc(n),t[fc("0x46")])return null;if(fc("0x14b")===this._trackFormatChanges){const e=this[fc("0x75")][fc("0x156")]("formatInline",o,fc("0xdd"));return this.forceDefaultExecution((()=>e([t],n,i))),null}const r=this[fc("0x151")].plugins[fc("0xb2")](fc("0x91")).me,s=[];if(fc("0xa2")!==this[fc("0x77")])for(const{suggestion:e,meta:n}of this._findSuggestions(t,fc("0x94")))n.isOwn&&!n[fc("0x12f")]&&s[fc("0x44")](...e[fc("0x137")]());const x=function(t,e){const n=[];for(const o of e){const e=t[fc("0xbe")](o);e&&n[fc("0x44")](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 o=n[e][fc("0x1f")](t);n.splice(e,1,...o),e+=o[fc("0xe8")]}}return n}(t,s);x[fc("0xe8")]&&this[fc("0xa5")][fc("0x78")]((()=>{for(const t of x){const e=this._suggestionFactory[fc("0x156")](fc("0x11e"),o,fc("0xdd"));this.forceDefaultExecution((()=>e([t],n,i)))}}));for(const t of a){let s=null,x=t.start,a=t.end;for(const{suggestion:e,meta:n}of this._findSuggestions(t,fc("0x11e"))){if(!n[fc("0xd3")])continue;if(e[fc("0x15")]!=o)continue;if(!Ic(e,i))continue;const r=e[fc("0x126")]();if(r[fc("0x114")](t,!0))return null;x=x[fc("0xae")](r[fc("0x83")])?x:r[fc("0x83")],a=a[fc("0x16c")](r[fc("0x16d")])?a:r.end,s?r.start[fc("0xae")](s[fc("0x126")]().start)?(s[fc("0x13a")](),s=e):e[fc("0x13a")]():s=e}const c=this[fc("0xa5")][fc("0x5d")](x,a);if(s)this._setSuggestionRange(s,c);else{const t=(0,e.uid)(),s=r.id;this[fc("0xee")]({id:t,type:fc("0x8b")+o,data:n,createdAt:new Date,authorId:s,attributes:i}),this[fc("0x132")]("formatInline:"+o,t,s,c)}}return null}markBlockFormat(t,n,o=[],i=null,r={}){n[fc("0xc9")]||(n[fc("0xc9")]=n.commandName),n.multipleBlocks=t.is("range"),i=i||Tc(n);const s=o[fc("0x2d")]((t=>Cc(t,this._model))),x=t.is("range")?t:Cc(t,this[fc("0xa5")]);if("never"===this[fc("0x77")]){const t=this[fc("0x75")].getSuggestionCallback(fc("0x3f"),i,fc("0xdd"));return this[fc("0xe9")]((()=>t([x],n,r))),null}s.push(x);let a=!0;for(const t of s)if(!this[fc("0x14a")](t)){a=!1;break}if(a&&"always"!==this._trackFormatChanges){const t=this[fc("0x75")][fc("0x156")](fc("0x3f"),i,"accept");return this[fc("0xe9")]((()=>t([x],n,r))),null}let c=null,l=x[fc("0x83")],u=x[fc("0x16d")];for(const{suggestion:t,meta:e}of this[fc("0x3")](x,fc("0x3f"))){if(!e[fc("0xd3")])continue;if(e[fc("0x0")]||e[fc("0x7c")]||e[fc("0x12f")])continue;if(t[fc("0x3e")][fc("0xc9")]!=n[fc("0xc9")])continue;if(!Ic(t,r))continue;const o=t[fc("0x126")]();if(t.subType==i){if(o.containsRange(x,!0))return null;l=l[fc("0xae")](o[fc("0x83")])?l:o.start,u=u[fc("0x16c")](o[fc("0x16d")])?u:o[fc("0x16d")],c?o[fc("0x83")][fc("0xae")](c[fc("0x126")]()[fc("0x83")])?(c[fc("0x13a")](),c=t):t[fc("0x13a")]():c=t}else{const e=x[fc("0xbe")](o);this[fc("0x134")](t,e)}}const d=this[fc("0x151")][fc("0x4a")][fc("0xb2")](fc("0x91")).me,g=(0,e.uid)(),f=d.id;if(c)return this[fc("0x18")](c,this[fc("0xa5")][fc("0x5d")](l,u)),c;{const t=this[fc("0xee")]({id:g,type:fc("0x16b")+i,data:n,createdAt:new Date,authorId:f,attributes:r});return this[fc("0x132")](fc("0x16b")+i,g,f,this[fc("0xa5")][fc("0x5d")](l,u)),t}}markMultiRangeBlockFormat(t,n,o=[],i=null,r={}){n.formatGroupId||(n[fc("0xc9")]=n[fc("0x95")]);const s=t[0];n[fc("0xa7")]=s.is(fc("0x53")),i=i||Tc(n);const x=o.map((t=>Cc(t,this[fc("0xa5")]))),a=s.is(fc("0x53"))?t:t.map((t=>Cc(t,this[fc("0xa5")])));if(fc("0x14b")===this[fc("0x77")]){const t=this[fc("0x75")].getSuggestionCallback(fc("0x3f"),i,fc("0xdd"));return this[fc("0xe9")]((()=>t(a,n,r))),null}x.push(...a);let c=!0;for(const t of x)if(!this[fc("0x14a")](t)){c=!1;break}if(c&&fc("0xa2")!==this[fc("0x77")]){const t=this[fc("0x75")][fc("0x156")]("formatBlock",i,"accept");return this[fc("0xe9")]((()=>t(a,n,r))),null}const l=this[fc("0x151")][fc("0x4a")][fc("0xb2")](fc("0x91")).me;for(const t of this[fc("0x120")]()){if(t[fc("0x3d")].id!=l.id)continue;if(fc("0x3f")!=t[fc("0x27")]||t[fc("0x3e")][fc("0xc9")]!=n[fc("0xc9")])continue;if(!Ic(t,r))continue;const e=t.subType==i;for(let n=0;n<a.length;n++){const o=a[n];for(const i of t[fc("0x7b")]()){const r=i[fc("0xcf")]();if(o[fc("0xba")](r)){e?(a[fc("0x9d")](n,1),n--):t[fc("0x15c")](i[fc("0xf9")]);break}}}}if(0==a[fc("0xe8")])return null;const u=this[fc("0x75")].getSuggestionCallback("formatBlock",i,fc("0x17"));for(const t of this[fc("0x120")]())if(t[fc("0x3d")].id==l.id&&fc("0x3f")==t.type&&t[fc("0x3e")][fc("0xc9")]==n[fc("0xc9")]&&t[fc("0x15")]==i&&Ic(t,r)&&(u(t[fc("0x137")](),a)||u(a,t[fc("0x137")]()))){for(const e of a)t[fc("0xd1")](e);return t}const d=(0,e.uid)(),g=l.id,f=fc("0x16b")+i,m=this[fc("0xee")]({id:d,type:f,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this._addSuggestionMarker(f,d,g,t,Jo[fc("0xea")]());return m}[fc("0x9")](t,n=null,o={}){if(t[fc("0x46")])return null;const i=this[fc("0x151")][fc("0x4a")][fc("0xb2")](fc("0x91")).me,r=new s.LiveRange(t[fc("0x83")],t.end);for(const{suggestion:t,meta:e}of this[fc("0x3")](r,"insertion"))if(e[fc("0xd3")]&&!e[fc("0x0")])if(t.isMultiRange){const e=t[fc("0x137")]()[fc("0x159")]((t=>fc("0x90")!=t.root[fc("0x32")]));if(e[fc("0x9f")]((t=>r[fc("0x114")](t,!0)))&&t[fc("0xf8")](),e[fc("0x11")]((t=>t[fc("0x114")](r,!0)))){const t=this._suggestionFactory.getSuggestionCallback("deletion",n,fc("0xdd"));return this.forceDefaultExecution((()=>t([r],null,o))),null}}else{const e=r.getIntersection(t.getFirstRange());null!==e&&t._onDiscard([e],null,o)}if(r.detach(),r[fc("0x46")]||"$graveyard"==r[fc("0x2f")][fc("0x32")])return null;let x=null,a=r[fc("0x83")],c=r[fc("0x16d")];const l=this[fc("0x3")](r,"deletion");for(const{suggestion:t,meta:e}of l){const n=this[fc("0xa5")][fc("0x5d")](a,c);if(e[fc("0xd3")]&&(this._mergeNestedSuggestions||!e[fc("0x7c")]&&!e[fc("0x12f")]))if(t[fc("0x2")]){if(!Ic(t,o))continue;let e=!0;for(const o of t[fc("0x137")]()){if(o[fc("0x114")](n,!0))return t;n[fc("0x114")](o)||(e=!1)}e&&t[fc("0xf8")]()}else{const e=t[fc("0x126")]();if(e[fc("0x114")](n,!0))return t;if(!Ic(t,o)){n[fc("0x114")](e)?t[fc("0x13a")]():e[fc("0xdc")](a)?a=e[fc("0x16d")]:e.containsPosition(c)&&(c=e.start);continue}a=a[fc("0xae")](e[fc("0x83")])?a:e[fc("0x83")],c=c[fc("0x16c")](e[fc("0x16d")])?c:e.end,o=Object[fc("0x165")]({},t.attributes),x?e[fc("0x83")][fc("0xae")](x.getFirstRange()[fc("0x83")])?(x[fc("0x13a")](),x=t):t[fc("0x13a")]():x=t}}if(x)return this._setSuggestionRange(x,this[fc("0xa5")][fc("0x5d")](a,c)),x;{const t=(0,e.uid)(),r=this._model.createRange(a,c),s=i.id,x=n?fc("0x5f")+n:"deletion",l=this._setSuggestionData({id:t,type:x,createdAt:new Date,authorId:s,attributes:o});return this[fc("0x132")](x,t,s,r),l}}[fc("0xd2")](t,n=fc("0xeb"),o={}){const i=this.editor[fc("0x4a")][fc("0xb2")]("Users").me,r=t[fc("0x2d")]((t=>new s.LiveRange(t[fc("0x83")],t[fc("0x16d")]))),x=new Set;for(const{suggestion:t,meta:e}of this[fc("0x3")](r,"insertion"))e[fc("0xd3")]&&!e[fc("0x0")]&&x[fc("0x14")](t);for(const e of x)if(e.isMultiRange){const i=e.getRanges();if((!e[fc("0x149")]||!e[fc("0x149")][fc("0x8c")])&&i[fc("0x9f")]((t=>r[fc("0x11")]((e=>e.containsRange(t,!0)))))&&e[fc("0xf8")](),r[fc("0x9f")]((t=>i[fc("0x11")]((e=>e.containsRange(t,!0)))))){const e=this[fc("0x75")][fc("0x156")](fc("0xa8"),n,fc("0xdd"));return this[fc("0xe9")]((()=>e(t,null,o))),null}}else{const t=e[fc("0x126")]();if(r[fc("0x11")]((e=>e[fc("0x114")](t,!0)))&&e.discard(),r[fc("0x9f")]((e=>t[fc("0x114")](e,!0)))){const t=this._suggestionFactory.getSuggestionCallback("deletion",n,fc("0xdd"));return this[fc("0xe9")]((()=>t(r,null,o))),null}}const a=this[fc("0x75")][fc("0x156")](fc("0xa8"),n,"join");let c=null;for(const t of this.getSuggestions())if(t.author.id==i.id&&t[fc("0x161")]&&fc("0xa8")==t.type&&t.subType==n&&Ic(t,o)&&(a(t[fc("0x137")](),r)||a(r,t[fc("0x137")]())))if(c){if(t[fc("0x10c")]&&t[fc("0x10c")][fc("0xe8")])continue;for(const e of t.getRanges())c.isIntersectingWithRange(e)||c[fc("0xd1")](e);t[fc("0x13a")]()}else{c=t;for(const e of r)t.isIntersectingWithRange(e)||t[fc("0xd1")](e)}if(c)return c;x[fc("0x174")]();for(const{suggestion:t,meta:e}of this[fc("0x3")](r,"deletion"))e[fc("0xd3")]&&(this[fc("0x84")]||!e[fc("0x7c")]&&!e[fc("0x12f")])&&Ic(t,o)&&x[fc("0x14")](t);for(const t of x){const e=t.getRanges();if((!o||!o[fc("0x8c")])&&r[fc("0x9f")]((t=>e[fc("0x11")]((e=>e.containsRange(t,!0))))))return t;(!t[fc("0x149")]||!t[fc("0x149")][fc("0x8c")])&&e[fc("0x9f")]((t=>r[fc("0x11")]((e=>e[fc("0x114")](t,!0)))))&&t[fc("0xf8")]()}const l=(0,e.uid)(),u=i.id,d=fc("0x5f")+n,g=this[fc("0xee")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of r)t[fc("0x4")](),t[fc("0x46")]||fc("0x90")==t[fc("0x2f")][fc("0x32")]||this[fc("0x132")](d,l,u,t,Jo[fc("0xea")]());return g}[fc("0xbd")](t,n,o,i,r){if(t[fc("0x46")])return[];if("never"===this[fc("0x77")])return[];const s=this[fc("0x151")][fc("0x4a")][fc("0xb2")](fc("0x91")).me.id,x=Array[fc("0x51")](this[fc("0xa4")][fc("0x16f")]())[fc("0x159")]((e=>fc("0x2e")==e[fc("0x27")]&&e.data[fc("0x72")]==n&&e.isIntersectingWithRange(t)));if("default"===this[fc("0x77")]){const e=this[fc("0x3")](t,fc("0x94"))[fc("0x159")]((({meta:t})=>t[fc("0xd3")]&&!t[fc("0x12f")]&&!t[fc("0x0")]))[fc("0x2d")]((({suggestion:t})=>t));x[fc("0x33")](...e)}const a=new Map([[t,o]]);for(const t of x){const e=fc("0x2e")==t[fc("0x27")]?t[fc("0x3e")].oldValue:void 0,r=t.getFirstRange(),s=Array[fc("0x51")](a[fc("0x4e")]())[fc("0x128")]((t=>t[fc("0x16e")](r)));if(!s)continue;const x=s[fc("0x1f")](r);this[fc("0x13d")](n)&&"insertion"==t.type&&0!=x[fc("0xe8")]||(a[fc("0x36")](s),x[fc("0x177")]((t=>{a.set(t,o)})),fc("0x94")!=t[fc("0x27")]&&e!=i&&a[fc("0x13")](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.warn(fc("0x179"),{key:n});const l=("attribute:"+n+"|"+Tc({newValue:i}))[fc("0xc5")](0,60),u=this._setSuggestionData({id:x,type:l,data:a,createdAt:new Date,authorId:s,attributes:r});c.push(u),this._addSuggestionMarker(l,x,s,t)}return c}[fc("0x12e")](t){this[fc("0x8f")][fc("0x14")](t)}_registerInlineAttribute(t){this[fc("0x45")][fc("0x14")](t)}[fc("0xde")](t,e=[],n=[]){this[fc("0x107")](t,((t,...e)=>{this._recordAttributeChanges((()=>{t(...e)}))}));for(const t of e)this[fc("0x37")](t);for(const t of n)this[fc("0x12e")](t)}[fc("0x18")](t,e){const n=t[fc("0x11a")]();this[fc("0xa5")][fc("0x78")]((t=>{t.updateMarker(n,{range:e})}))}_addThreadToSuggestion(t){const e=t.id,n=this[fc("0x151")][fc("0x173")].get(fc("0xf6"));this._commentsRepository[fc("0x109")](e)||this[fc("0x9c")][fc("0x1e")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[fc("0x9c")].getCommentThread(e);o.unbind("isRemovable"),o[fc("0x57")]=!1,t[fc("0x10c")]=o}[fc("0xf1")](t,n,o,i){if(t[fc("0x27")]!=n||t[fc("0x15")]!=o||t[fc("0x64")].id!=i)throw this[fc("0x151")][fc("0xad")]("track-changes-suggestion-data-mismatch"),new e.CKEditorError(fc("0x118"),this)}[fc("0x134")](t,n){const o=t[fc("0x126")]();if(n.isEqual(o))t.removeMarkers();else if(o[fc("0x114")](n)){const i=this._model[fc("0x79")](n[fc("0x83")][fc("0x9a")],"end");this._setSuggestionRange(t,this[fc("0xa5")][fc("0x5d")](o.start,i));const r=(0,e.uid)(),s=t[fc("0x64")].id,x=t[fc("0x27")]+":"+t[fc("0x15")];this._setSuggestionData({id:r,type:x,createdAt:new Date,authorId:s,data:t[fc("0x3e")],attributes:t[fc("0x149")]});const a=this[fc("0xa5")].createPositionAt(n[fc("0x16d")][fc("0x112")],fc("0x102")),c=this._model.createRange(a,o[fc("0x16d")]);this[fc("0x132")](x,r,s,c)}else if(o[fc("0xdc")](n[fc("0x83")])){const e=this._model.createPositionAt(n.start.nodeBefore,"end");this._setSuggestionRange(t,this._model[fc("0x5d")](o[fc("0x83")],e))}else{const e=this._model[fc("0x79")](n.end[fc("0x112")],fc("0x102"));this._setSuggestionRange(t,this[fc("0xa5")][fc("0x5d")](e,o.end))}}[fc("0x14a")](t){for(const{suggestion:e,meta:n}of this[fc("0x3")](t,fc("0x94"))){if(!n[fc("0xd3")])continue;const o=e.getRanges();for(const e of o)if(!t.getDifference(e).length)return!0}return!1}[fc("0x5e")](t){const n=this.editor[fc("0x4a")][fc("0xb2")](fc("0x91"))[fc("0x167")](t);if(!n)throw new e.CKEditorError(fc("0x7a"),this);return n}[fc("0x175")](t){const e=this[fc("0x151")].plugins.get(fc("0x91")),n=(0,r.hashObject)("external:"+t);return e[fc("0x167")](n)||e.addUser({id:n,name:t})}_createSuggestion(t,e,n,o,i){const r=this[fc("0x5e")](o),s=this[fc("0x75")][fc("0x110")](t,e,n,r,i,(t=>this[fc("0x5b")](n,{attributes:t})));return this[fc("0x74")](s,fc("0xdd"),(()=>{this[fc("0x5b")](n,{state:fc("0xef")})}),{priority:fc("0x8a")}),this[fc("0x74")](s,fc("0xf8"),(()=>{this[fc("0x5b")](n,{state:fc("0xd8")})}),{priority:fc("0x8a")}),this[fc("0xa4")].set(n,s),this[fc("0xcc")][fc("0x13")](s,"notReady"),s}[fc("0xe7")](t){const e=t[fc("0x111")](":");return{group:e[0],type:e[1],subType:e.length>=5?e[2]:null,id:e[fc("0xe8")]<5?e[2]:e[3],authorId:e[fc("0xe8")]<5?e[3]:e[4],markerCount:6==e[fc("0xe8")]?e[5]:null}}[fc("0xfe")](t,n,o){const i=t[fc("0x126")](),r=i[fc("0x83")],s=i[fc("0x16d")];this[fc("0x18")](t,this._model[fc("0x5d")](r,n));const x=(0,e.uid)(),a=t.creator.id,c=t[fc("0x27")]+(t.subType?":"+t[fc("0x15")]:"");this[fc("0xee")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t.attributes,data:t[fc("0x3e")]});const l=Sc(t);(fc("0x3f")==t[fc("0x27")]||l&&this[fc("0x13d")](l))&&(o=this[fc("0xa5")][fc("0x93")](o[fc("0x112")])),this._addSuggestionMarker(c,x,a,this[fc("0xa5")][fc("0x5d")](o,s))}[fc("0x3")](t,e=null){const n=[],o=this[fc("0x151")][fc("0x4a")][fc("0xb2")](fc("0x91")).me;Array.isArray(t)||(t=[t]);for(const i of this[fc("0x120")]()){if(!i[fc("0x161")])continue;if(e&&i[fc("0x27")]!=e)continue;let r=!1;for(const e of i[fc("0x137")]()){for(const s of t){const t=s[fc("0x83")][fc("0xba")](e.end)||s[fc("0x16d")].isEqual(e[fc("0x83")]);if(t||s[fc("0xbe")](e)){const x=s.containsRange(e)&&bc(this._model[fc("0x10b")],e[fc("0x83")],s),a=e.containsRange(s)&&bc(this[fc("0xa5")][fc("0x10b")],s[fc("0x83")],e);n[fc("0x44")]({suggestion:i,meta:{isOwn:o==i.author,isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),r=!0;break}}if(r)break}}return n}[fc("0x132")](t,e,n,o,i){this._model[fc("0x78")]((r=>{let s=fc("0xca")+t+":"+e+":"+n;i&&(s=s+":"+i),r[fc("0x10d")](s,{range:o,usingOperation:!0,affectsData:!0})}))}[fc("0xe4")](t){const e=t[fc("0xfd")],n=t[fc("0x81")];t[fc("0xfd")]=null,t.next=null,null!=e&&(e.next=n),null!=n&&(n[fc("0xfd")]=e),fc("0xfc")==this[fc("0xcc")][fc("0xb2")](t)&&(this[fc("0xcc")].set(t,fc("0x15e")),this[fc("0x100")]("suggestionUnloaded",t,e,n))}[fc("0xee")](t){const n=t.id,o=this[fc("0xdf")](t);if(this[fc("0x147")]&&this._adapter[fc("0xd7")]){const i=this[fc("0x151")][fc("0x4a")][fc("0xb2")](fc("0x116")),r=o[fc("0x31")],s=o[fc("0x15")]?o[fc("0x27")]+":"+o[fc("0x15")]:o[fc("0x27")],x=this[fc("0x151")].locale,a=i[fc("0x14")](Qo(x,fc("0xac"))),c={id:n,type:s,hasComments:r,data:t[fc("0x3e")]||null,originalSuggestionId:t[fc("0xe0")]||null,attributes:o[fc("0x149")]};this._adapter[fc("0xd7")](c)[fc("0x171")]((t=>{o[fc("0xa")]=!0,i[fc("0x87")](a),t&&t[fc("0x115")]&&(this[fc("0xa4")].get(n)[fc("0x115")]=t[fc("0x115")])})).catch((t=>{throw(0,e.logWarning)(fc("0x97")),this.editor[fc("0x48")].enqueueChange({isUndoable:!1},(()=>{o[fc("0xf8")]()})),o[fc("0x12")](),this._suggestions[fc("0x36")](o.id),this[fc("0xcc")][fc("0x36")](o),t}))}return o}[fc("0x13d")](t){return this._blockAttributeKeys[fc("0x113")](t)}[fc("0x5b")](t,e){const n=this[fc("0x151")][fc("0x4a")][fc("0xb2")](fc("0x116")),o=this.getSuggestion(t);if(this[fc("0x147")]&&this._adapter[fc("0xcd")])if(o[fc("0xa")]){const o=n.add(Qo(this.editor[fc("0x5")],fc("0xac")));this[fc("0x147")][fc("0xcd")](t,e)[fc("0x171")]((()=>{n.remove(o)}))}else o.on("change:_saved",(()=>{this[fc("0x5b")](t,e)}))}[fc("0xc4")](t){if(!this[fc("0x147")]||!this[fc("0x147")][fc("0x169")])throw new e.CKEditorError(fc("0x41"),this);return this[fc("0x147")][fc("0x169")](t)}[fc("0x61")](t){const{id:e,type:n,subType:o,authorId:i}=this[fc("0xe7")](t),r=this[fc("0xa4")].get(e)||this[fc("0xc8")](n,o,e,i,{});switch(this[fc("0xf1")](r,n,o,i),this[fc("0xcc")][fc("0xb2")](r)){case fc("0x19"):this[fc("0xc4")](e).then((t=>{let n=Promise.resolve();t[fc("0x31")]&&(n=this._commentsRepository[fc("0x7e")]({channelId:this[fc("0x151")][fc("0x173")].get(fc("0xf6")),threadId:e})),n[fc("0x171")]((()=>{this[fc("0xdf")](t)[fc("0xa")]=!0}))})),this[fc("0xcc")][fc("0x13")](r,fc("0x129"));break;case fc("0x15e"):this[fc("0x5b")](e,{state:"open"});case fc("0x136"):this[fc("0xcc")].set(r,fc("0xfc")),this[fc("0x100")](fc("0x13f"),r);break;case fc("0xfc"):this[fc("0x100")](fc("0xa6"),r)}return r[fc("0x153")](t),r}[fc("0x15a")](t){const e=Array[fc("0x51")](t),n=e.filter((t=>"attribute"==t[fc("0x27")]));this[fc("0xce")](n);const o=e.filter((t=>!t[fc("0x2")]&&fc("0x2e")!=t[fc("0x27")])),i=this[fc("0x120")]({skipNotAttached:!0}).filter((t=>!t[fc("0x2")]&&fc("0x2e")!=t[fc("0x27")])),r=i[fc("0x159")]((e=>!t[fc("0x113")](e))),s=new Map(i.map((t=>[t,this[fc("0x75")].getSuggestionCallback(t[fc("0x27")],t.subType,fc("0x124"))]))),x=new Map(i[fc("0x2d")]((t=>[t,t[fc("0x126")]()]))),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("0xe8")];t++)u(o[t],r,0);const l=new Set;for(let t=0;t<o[fc("0xe8")];t++){const e=o[t];!c[fc("0x113")](e)&&e[fc("0xfd")]&&(l.add(e[fc("0xfd")]),e.previous.next===e&&(e.previous.next=null),e[fc("0xfd")]=null),!a[fc("0x113")](e)&&e[fc("0x81")]&&(l.add(e[fc("0x81")]),e.next[fc("0xfd")]===e&&(e.next.previous=null),e.next=null)}function u(t,e,n){for(let o=n;o<e[fc("0xe8")];o++){const n=d(t,e[o]);n&&(n[0].next=n[1],n[1][fc("0xfd")]=n[0],a.add(n[0]),c[fc("0x14")](n[1]))}}function d(t,e){if(t.author.id!==e[fc("0x3d")].id)return null;const n=s[fc("0xb2")](t)(t,e,x[fc("0xb2")](t),x[fc("0xb2")](e));return n&&s[fc("0xb2")](e)(t,e,x[fc("0xb2")](t),x[fc("0xb2")](e))?n[1][fc("0x10c")]&&n[1][fc("0x10c")][fc("0xe8")]?null:n:null}l.size&&this[fc("0x15a")](l)}_refreshAttributeSuggestionsChain(t){if(0==t[fc("0xe8")])return;const e=this[fc("0x120")]({skipNotAttached:!0})[fc("0x159")]((t=>fc("0x2e")==t.type&&t[fc("0xb8")])),n=[],o=new Map;for(const t of e){const e=(0,r.hashObject)(t[fc("0x149")]);o[fc("0x113")](e)||(o[fc("0x13")](e,n[fc("0xe8")]),n[fc("0x44")]([]));const i=o[fc("0xb2")](e);n[i][fc("0x44")](t)}!function(){n[fc("0x157")](((t,e)=>{const n=t[0][fc("0x115")],o=e[0][fc("0x115")];return n==o?t[0][fc("0x149")][fc("0x168")]<e[0][fc("0x149")][fc("0x168")]?-1:1:n<o?-1:1}));for(const t of n)t[fc("0x157")](((t,e)=>t.id<e.id?-1:1))}();for(let t=0;t<n[fc("0xe8")];t++){if(0==n[t].length)continue;const e=[];for(let o=t+1;o<n[fc("0xe8")];o++)0!=n[o][fc("0xe8")]&&i(n[t],n[o])&&e.push(o);for(const o of e)n[t]=n[t][fc("0xb3")](n[o]),n[o]=[]}for(const t of n)for(let e=0;e<t[fc("0xe8")];e++)t[e][fc("0x81")]=t[e+1]||null;for(const t of n)for(let e=0;e<t.length;e++)t[e].previous=t[e-1]||null;function i(t,e){if(t[0].author!==e[0][fc("0x3d")])return!1;if(n=t[0],o=e[0],(n[fc("0x31")]||o.hasComments)&&(n[fc("0x31")]&&o[fc("0x31")]||!(n[fc("0x31")]&&o.createdAt<n[fc("0x10c")][fc("0x3b")][fc("0xb2")](0)[fc("0x115")]||o.hasComments&&n[fc("0x115")]<o[fc("0x10c")][fc("0x3b")][fc("0xb2")](0)[fc("0x115")])))return!1;var n,o;const i=lc(t[0][fc("0x149")],fc("0x168")),r=lc(e[0].attributes,fc("0x168"));return!!Go(i,r)&&(!!t[fc("0x9f")]((t=>e.some((e=>t.getFirstRange().isEqual(e.getFirstRange())))))&&e[fc("0x9f")]((e=>t[fc("0x11")]((t=>e.getFirstRange()[fc("0xba")](t[fc("0x126")]()))))))}}[fc("0x1b")](t){const e=Array[fc("0x51")](t),n=this.getSuggestions({skipNotAttached:!0}),o=n[fc("0x159")]((e=>!t[fc("0x113")](e))),i=new Map(e[fc("0x2d")]((t=>[t,this[fc("0x75")][fc("0x156")](t.type,t[fc("0x15")],"join")]))),r=new Map(n[fc("0x2d")]((t=>[t,t.getRanges()])));for(let t=0;t<e.length;t++)if(s(this,e[t],e,t+1))return!0;for(let t=0;t<e[fc("0xe8")];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("0x27")]!==e[fc("0x27")]||o[fc("0x3d")].id!==e.author.id||o.subType!==e[fc("0x15")])continue;if(!kc(e,o))continue;if("attribute"==e[fc("0x27")]&&e.data[fc("0x73")]!=o[fc("0x3e")][fc("0x73")])continue;if(fc("0x2e")==e[fc("0x27")]&&t[fc("0x13d")](e[fc("0x3e")].key))continue;if(fc("0x3f")==e[fc("0x27")]){const n=t[fc("0x151")][fc("0x48")],o=e[fc("0x140")]();if(o&&(n[fc("0x10b")][fc("0x59")](o)||n.schema[fc("0x176")](o)))continue}const x=i[fc("0xb2")](e),a=r[fc("0xb2")](e),c=r[fc("0xb2")](o),l=e[fc("0x10c")]&&e[fc("0x10c")][fc("0xe8")],u=o[fc("0x10c")]&&o[fc("0x10c")][fc("0xe8")];if(!l&&x(c,a))return t._joinSuggestions(o,e),r[fc("0x36")](e),!0;if(!u&&x(a,c))return t[fc("0xe3")](e,o),r[fc("0x36")](o),!0}return!1}}_joinSuggestions(t,e){if(t[fc("0x2")])for(const n of e[fc("0x137")]())t[fc("0xd1")](n);else{const n=e[fc("0x126")]()[fc("0x16d")];this[fc("0x18")](t,this[fc("0xa5")][fc("0x5d")](t[fc("0x126")]().start,n))}e.removeMarkers()}[fc("0xf5")](t,e){const n=t[fc("0xd5")]("format")||t[fc("0xd5")](fc("0x2e"))?fc("0x8d"):t[fc("0x11b")]();return Qo(this[fc("0x151")][fc("0x5")],e+"_"+n+fc("0x20"))}[fc("0x9e")](){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("0xe7")](t[fc("0xf9")]);if(fc("0x7f")===e){o.push(this[fc("0xf5")](n,fc("0x146")));break}}for(const t of n){const{group:e,type:n}=this[fc("0xe7")](t[fc("0xf9")]);if("suggestion"===e){o[fc("0x44")](this._getMarkerAnnouncementText(n,"ENTER"));break}}o[fc("0xe8")]&&t.ui[fc("0x1a")][fc("0x88")](fc("0x11d"),o[fc("0x17")](" "))}))}[fc("0xcb")](t){if(null!==this[fc("0x103")])return!1;const e=this[fc("0x151")],n=e.model[fc("0x6b")][fc("0x39")].getChanges();if(0==n[fc("0xe8")])return!1;const o=[],i=n[fc("0x159")]((t=>fc("0x2e")==t[fc("0x27")])),r=n.filter((t=>fc("0x67")==t.type&&fc("0x99")!=t.name)),s=n[fc("0x159")]((t=>fc("0x87")==t[fc("0x27")]&&"$text"!=t.name));for(const t of i)o[fc("0x44")]({key:t[fc("0x160")],newValue:t[fc("0x14c")],oldValue:t[fc("0x154")],range:(x=t.range,null==x[fc("0x16d")][fc("0x9a")]&&x[fc("0x16d")][fc("0x112")]==x[fc("0x83")][fc("0x15b")]?Cc(x[fc("0x83")][fc("0x15b")],e.model):x)});var x;for(const t of r){const n=s[fc("0x128")]((e=>e[fc("0x131")][fc("0xba")](t.position)));n&&o[fc("0x44")]({key:"$elementName",newValue:t[fc("0xf9")],oldValue:n[fc("0xf9")],range:e[fc("0x48")][fc("0x6")](t[fc("0x131")][fc("0x15b")])})}return 0!=o[fc("0xe8")]&&this[fc("0x119")](t,o)}[fc("0xa0")](t){let e=!1;const n=this[fc("0x151")].model[fc("0x6b")][fc("0x39")][fc("0xc1")]()[fc("0x159")]((t=>t.data[fc("0xec")]&&t.name.startsWith(fc("0x85"))));for(const o of n){const{subType:n,id:i}=this[fc("0xe7")](o[fc("0xf9")]),r=n[fc("0x111")]("|")[0];for(const n of this[fc("0x120")]({skipNotAttached:!0}))n.id!=i&&fc("0x2e")==n.type&&n[fc("0x3e")]&&n[fc("0x3e")][fc("0x72")]==r&&n[fc("0x126")]()[fc("0x16e")](o[fc("0x3e")][fc("0xec")])&&(this[fc("0xed")](n,o[fc("0x3e")][fc("0xec")],t),e=!0)}return e}[fc("0x38")](t){if(null!==this[fc("0x103")])return void t();const n=this[fc("0x151")];this[fc("0x103")]=n.model[fc("0x6b")][fc("0x89")],t();const o=new Map;for(const t of n[fc("0x48")].document[fc("0x104")].getOperations(this[fc("0x103")]))if([fc("0x60"),fc("0x11c"),fc("0xc2"),fc("0x42")].includes(t.type)){const e=t[fc("0xc3")],n=o[fc("0xb2")](e)||[];n.push(t),o[fc("0x13")](e,n)}this[fc("0x103")]=null;for(const[t,i]of o){const o=(0,e.uid)();n[fc("0x48")].enqueueChange(t,(t=>{const e=[];for(const t of i){let i,r,s,x;if(fc("0x60")==t[fc("0x27")]){const e=t;i=Cc(e[fc("0x131")][fc("0x15b")],n[fc("0x48")]),r=fc("0x66"),s=e[fc("0x158")],x=e[fc("0x26")]}else{const e=t,o=this._isBlockAttribute(e.key),a=this[fc("0x45")].has(e.key);if(!o&&!a)continue;i=o?Cc(e[fc("0x53")].start[fc("0x15b")],n.model):e[fc("0x53")],r=e[fc("0x72")],s=fc("0xc2")==t[fc("0x27")]?void 0:e[fc("0x14d")],x=e[fc("0x73")]}this.markAttributeChange(i,r,x,s,{groupId:o}),e.push({range:i,key:r,newValue:s,oldValue:x})}this._reduceExistingSuggestions(t,e)}))}}[fc("0x119")](t,e){if(0==e[fc("0xe8")])return!1;let n=!1;for(const o of e){const e=this[fc("0x3")](o[fc("0x53")],fc("0x2e"))[fc("0x159")]((t=>!t[fc("0x13b")][fc("0x0")]))[fc("0x2d")]((t=>t[fc("0x7f")])),i=(0,r.hashObject)({newValue:o[fc("0x14d")]});e[fc("0x159")]((t=>{const[e,n]=t[fc("0x15")][fc("0x111")]("|");return e==o[fc("0x72")]&&n!=i}))[fc("0x177")]((e=>{this[fc("0xed")](e,o[fc("0x53")],t),n=!0}))}return n}_reduceSuggestionAttributeRange(t,e,n){const o=t[fc("0x126")]()[fc("0x1f")](e);0!==o[fc("0xe8")]?1!==o.length?this[fc("0xfe")](t,e[fc("0x83")],e[fc("0x16d")]):this[fc("0x18")](t,o[0]):n[fc("0x15c")](t.getFirstMarker())}}class pc{constructor(t){this[fc("0xc7")]=t,this[fc("0xa5")]=t[fc("0x48")],this[fc("0x24")]=new Map,this[fc("0xc")]=new Map,this[fc("0x9b")]()}buildSuggestion(t,e,n,o,i,r){return new Jo(this[fc("0xa5")],{type:t,subType:e,id:n,author:o,creator:o,attributes:i,onAttributesChange:r,onAccept:(...n)=>this.getSuggestionCallback(t,e,"accept")(...n),onDiscard:(...n)=>this[fc("0x156")](t,e,fc("0xf8"))(...n)})}[fc("0xd4")](t,e,n,o){const i=t+":"+e+":"+n;this[fc("0x24")].set(i,o)}getSuggestionCallback(t,e,n){const o=t+":"+e+":"+n;return this._customCallbacks[fc("0xb2")](o)||this[fc("0xc")].get(t+":"+n)}_registerDefaultCallbacks(){const t=()=>!1,e=t=>{t.sort(((t,e)=>t[fc("0x83")][fc("0xae")](e[fc("0x83")])?1:-1)),this[fc("0xa5")][fc("0x78")]((e=>{for(const n of t){let t;t=n[fc("0x16d")][fc("0x133")]&&n[fc("0x16d")][fc("0x112")]==n[fc("0x83")][fc("0x15b")]?e[fc("0x4d")](n[fc("0x83")][fc("0x15b")],"on"):e.createSelection(n),this[fc("0xa5")].deleteContent(t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{e&&this[fc("0xa5")][fc("0x78")]((n=>{const{commandName:o,commandParams:i=[]}=e,r=t.map((t=>(Ec(t)&&(t=this._model.createRange(t[fc("0x16d")])),t))).filter((t=>fc("0x90")!==t[fc("0x2f")][fc("0x32")]));if(r[fc("0xe8")]<1)return;const x=Array.from(this[fc("0xa5")][fc("0x6b")].selection.getRanges())[fc("0x2d")]((t=>s.LiveRange.fromRange(t)));n[fc("0xc0")](r);for(const t of this._editor[fc("0x138")].commands())t[fc("0x16a")]();i[fc("0x44")]({forceDefaultExecution:!0}),this[fc("0xc7")][fc("0x16")](o,...i);const a=x[fc("0x159")]((t=>fc("0x90")!=t[fc("0x2f")][fc("0x32")]));a[fc("0xe8")]>0&&n[fc("0xc0")](a);for(const t of x)t[fc("0x4")]()}))},o=(t,e)=>1==t[fc("0xe8")]&&1==e.length&&t[0][fc("0x16d")][fc("0xba")](e[0][fc("0x83")]),i=(t,e,n,o)=>Ac(t,e,n,o,this[fc("0xa5")])?[t,e]:Ac(e,t,o,n,this[fc("0xa5")])?[e,t]:null;this[fc("0xc")][fc("0x13")](fc("0xf3"),t),this[fc("0xc")][fc("0x13")]("insertion:discard",e),this[fc("0xc")][fc("0x13")](fc("0x145"),o),this[fc("0xc")][fc("0x13")](fc("0x6d"),i),this[fc("0xc")][fc("0x13")](fc("0x6c"),e),this._defaultCallbacks[fc("0x13")]("deletion:discard",t),this[fc("0xc")].set(fc("0x11f"),o),this[fc("0xc")][fc("0x13")]("deletion:chain",i),this._defaultCallbacks[fc("0x13")](fc("0x163"),n),this._defaultCallbacks[fc("0x13")](fc("0x86"),t),this[fc("0xc")][fc("0x13")]("formatInline:join",o),this._defaultCallbacks[fc("0x13")]("formatInline:chain",t),this[fc("0xc")][fc("0x13")](fc("0x2a"),n),this[fc("0xc")][fc("0x13")](fc("0x108"),t),this[fc("0xc")][fc("0x13")](fc("0x6a"),o),this[fc("0xc")][fc("0x13")](fc("0x55"),t),this[fc("0xc")][fc("0x13")]("attribute:accept",t),this[fc("0xc")][fc("0x13")]("attribute:discard",((t,e)=>{if(!e)return;const n=this[fc("0xc7")][fc("0x4a")][fc("0xb2")](hc);this._model[fc("0x78")]((o=>{if(fc("0x66")==e[fc("0x72")])for(const n of t){const t=n[fc("0x83")][fc("0x15b")],i=e[fc("0x73")];o[fc("0x60")](t,i)}else if(n[fc("0x13d")](e[fc("0x72")]))for(const n of t)void 0!==e[fc("0x73")]?o.setAttribute(e[fc("0x72")],e[fc("0x73")],n[fc("0x83")].nodeAfter):o[fc("0xc2")](e[fc("0x72")],n[fc("0x83")][fc("0x15b")]);else for(const n of t)e[fc("0x73")]?o[fc("0x2b")](e[fc("0x72")],e[fc("0x73")],n):o.removeAttribute(e[fc("0x72")],n)}))})),this[fc("0xc")][fc("0x13")]("attribute:join",o)}}function bc(t,e,n){for(const o of e.parent.getAncestors({includeSelf:!0,parentFirst:!0})){if(o.root==o)return!1;if(!n[fc("0xfb")](o))return!1;if(t[fc("0x59")](o)||t.isLimit(o))return!0}return!1}function Ec(t){return t[fc("0x16d")].parent==t[fc("0x83")][fc("0x15b")]&&t[fc("0x16d")][fc("0xe")]}function _c(t,e,n,o){const i=t=>!t[fc("0x65")].is(fc("0xbb"))&&!o[fc("0x59")](t[fc("0x65")]),r=t[fc("0x83")][fc("0x13e")](i),s=t[fc("0x16d")][fc("0x13e")](i,{direction:fc("0x155")});return!(t[fc("0x83")].isEqual(r)&&t[fc("0x16d")].isEqual(s)||(r[fc("0xae")](s)?n[fc("0x10a")](e,{range:n[fc("0x5d")](r,s)}):n[fc("0x15c")](e),0))}function Tc(t){return(0,r.hashObject)(t)}function yc(t){const e=t[fc("0x83")][fc("0x15b")];return e&&e.is(fc("0x28"))}function Cc(t,e){const n=e[fc("0x10b")][fc("0x59")](t)||e[fc("0x10b")][fc("0x30")](t);return e[fc("0x5d")](e[fc("0x79")](t,fc("0x96")),n?e[fc("0x25")](t):e[fc("0x79")](t,fc("0x16d")))}function Ac(t,e,n,o,i){if(!kc(t,e))return!1;if(n[fc("0x16d")][fc("0xba")](o[fc("0x83")]))return!0;if(t[fc("0x27")]!=e[fc("0x27")])return!1;if(!n[fc("0x16d")][fc("0xd9")](o[fc("0x83")]))return!1;const r=i[fc("0x5d")](n[fc("0x16d")],o[fc("0x83")])[fc("0x106")]();for(const t of r)if([fc("0xb6"),"elementEnd"][fc("0x105")](t[fc("0x27")])&&i[fc("0x10b")][fc("0x176")](t[fc("0x65")]))return!1;return!0}function kc(t,e){return!(!t._isDataLoaded||!e._isDataLoaded)&&Go(t[fc("0x149")],e.attributes)}function Ic(t,e){const n=Rc(t[fc("0x149")]),o=Rc(e);if(!t[fc("0xb8")])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("0x165")]({},t);return delete e[fc("0x8c")],delete e[fc("0xaf")],e}function Sc(t){return fc("0x2e")==t[fc("0x27")]?t[fc("0x15")][fc("0x111")]("|")[0]:null}const vc=["_removePendingAction","_pendingAction","acceptSuggestion","canDiscard","canEditAt","_discardCommand","isEnabled","commentThreadController","add","view","getRanges","PENDING_ACTION_SUGGESTION","remove","canAccept","listenTo","model","PendingActions","isDirty","get","discardSuggestion","_acceptCommand","_editor","change:isDirty","locale","plugins","execute","unbind","_setPendingAction","destroy","stopListening","bind"];var Nc,Lc;Nc=vc,Lc=357,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,o){super(),this[Mc("0x1e")]=e,this[Mc("0x18")]=n,this[Mc("0x16")]=o,this[Mc("0x5")]=t,this[Mc("0x4")]=t.commands[Mc("0x2")]("acceptSuggestion"),this[Mc("0x14")]=t.commands[Mc("0x2")](Mc("0x3")),this.view.bind(Mc("0x15")).to(this[Mc("0x4")],this[Mc("0x14")],((t,e)=>t||e)),this[Mc("0x18")].bind("canAccept").to(this[Mc("0x4")],"isEnabled",(t=>t&&this[Mc("0x5")][Mc("0x1e")][Mc("0x13")](e[Mc("0x19")]()))),this[Mc("0x18")][Mc("0xe")](Mc("0x12")).to(this[Mc("0x14")],"isEnabled",(t=>t&&this[Mc("0x5")][Mc("0x1e")][Mc("0x13")](e[Mc("0x19")]()))),this[Mc("0x10")]=null,n[Mc("0x1")]&&this[Mc("0xb")](),this[Mc("0x1d")](n,Mc("0x11"),(()=>this[Mc("0x11")]())),this[Mc("0x1d")](n,Mc("0x3"),(()=>this[Mc("0x3")]())),this[Mc("0x1d")](n,Mc("0x6"),(()=>{n[Mc("0x1")]?this[Mc("0xb")]():this._removePendingAction()}))}[Mc("0x11")](){this[Mc("0x4")][Mc("0x9")](this[Mc("0x1e")].id)}[Mc("0x3")](){this._discardCommand[Mc("0x9")](this.model.id)}[Mc("0xc")](){this[Mc("0x18")].unbind("isEnabled"),this[Mc("0x18")].unbind(Mc("0x1c")),this[Mc("0x18")][Mc("0xa")](Mc("0x12")),this[Mc("0xd")](),this.commentThreadController[Mc("0xc")](),this._pendingAction&&this._removePendingAction()}_setPendingAction(){const t=Qo(this[Mc("0x5")][Mc("0x7")],Mc("0x1a"));this[Mc("0x10")]=this[Mc("0x5")][Mc("0x8")][Mc("0x2")](Mc("0x0"))[Mc("0x17")](t)}[Mc("0xf")](){null!==this[Mc("0x10")]&&this[Mc("0x5")][Mc("0x8")][Mc("0x2")](Mc("0x0"))[Mc("0x1b")](this[Mc("0x10")]),this[Mc("0x10")]=null}}const Oc=["_createCommentViews","showInput","locale","cancel","addComment","CommentView","_localUser","isEnabled","hasDirtyComment","focus","_config","canDiscard","removeComment","set","commentInputView","length","commentThread","delegate","fire","isReadOnly","editor","_model","authoredAt","destroy","_createCommentThreadInputView","commentsListView","commentThreadInputView","disabledSubmit","updateComment","value","isActive","isDirty","bind","descriptionParts"];var Fc,Dc;Fc=Oc,Dc=171,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("0x19")]=null,this.set(Bc("0x1d"),!1),this[Bc("0xc")](Bc("0x15"),e[Bc("0x15")]),this[Bc("0x1f")](Bc("0x15")).to(e),this[Bc("0xc")](Bc("0x20"),[]),this[Bc("0xc")](Bc("0x1e"),!1),this.set(Bc("0x6"),!1),this.set("canAccept",!1),this[Bc("0xc")](Bc("0xa"),!1),this[Bc("0x14")]=e,this[Bc("0x5")]=n,this[Bc("0x9")]=o,o.disableComments?this[Bc("0xc")](Bc("0xe"),1):this._createCommentViews()}[Bc("0x8")](){this.element[Bc("0x8")]()}destroy(){this[Bc("0x18")]&&this.commentsListView[Bc("0x16")](),this[Bc("0x19")]&&this[Bc("0x19")][Bc("0x16")](),super[Bc("0x16")]()}[Bc("0x21")](){const{CommentsListView:t}=this._config;this[Bc("0x18")]=new t(this[Bc("0x1")],this[Bc("0x14")][Bc("0xf")],Object.assign({CommentView:this[Bc("0x9")][Bc("0x4")]},this[Bc("0x9")])),this[Bc("0x18")].delegate(Bc("0xb")).to(this),this.commentsListView[Bc("0x10")](Bc("0x1b")).to(this),this.commentsListView[Bc("0x1f")](Bc("0x1d")).to(this),this[Bc("0xc")](Bc("0xe"),this[Bc("0x18")][Bc("0xe")]+1),this[Bc("0x1f")](Bc("0xe")).to(this.commentsListView,"length",(t=>t+1)),this[Bc("0x19")]=this._createCommentThreadInputView(),this.on(Bc("0xb"),(()=>this[Bc("0x8")]())),this[Bc("0x1f")](Bc("0x1e")).to(this[Bc("0x18")],Bc("0x7"),this[Bc("0x19")][Bc("0xd")],"value",((t,e)=>t||!!e))}[Bc("0x17")](){const{CommentThreadInputView:t}=this._config,e=new t(this[Bc("0x1")],this[Bc("0x5")],this[Bc("0x9")].editorConfig),n=e[Bc("0xd")];return e[Bc("0x1f")](Bc("0x0")).to(this,Bc("0x1d"),this[Bc("0x14")][Bc("0xf")],Bc("0x12"),n,Bc("0x1c"),((t,e,n)=>!!n||t&&!e)),n.on("submit",((t,e)=>{this[Bc("0x11")](Bc("0x3"),e),n[Bc("0x13")].setData("")})),n.on(Bc("0x2"),(()=>this.focus())),n[Bc("0x1f")](Bc("0x1a")).to(this[Bc("0x14")][Bc("0xf")],Bc("0x12")),e}}const Uc=["value","ck-suggestion__actions","canDiscard","ck-suggestion__info-name","isEnabled","bind","ck-suggestion__user","discardSuggestion","ck-suggestion__main","EXTERNAL_AVATAR","innerText","isActive","content","discardButton","ck-annotation__actions","fire","importWord","acceptButton","ck-comment__external","_createButton",'<span class="ck-suggestion-color" style="background-color: ',"disableComments","ck-suggestion--disabled-comments","editorReady","set","span",'<span class="ck-suggestion-type">',"delegate","ck-suggestion__info","_descriptionElement","userView","innerHTML","setTemplate","formatDateTime","locale","push","ck-annotation__main","source","commentThreadInputView","EXTERNAL_IMPORT_WORD_SUGGESTION","getExternalSuggestionNote","bindTemplate","ck-annotation__info-name","getTemplate","ck-suggestion","ck-comment__info-time","_config","commentsListView","ck-suggestion--accept","author","attributes","creator","name","color","ck-annotation__info","join","render","time","element","ck-suggestion-wrapper","commentThread","ck-suggestion-wrapper--active","Discard suggestion","getUserViewNotificationText","isExternal","ck-annotation__content-wrapper","authoredAt","check","Accept suggestion","</span>","_model","@external","acceptSuggestion",'"></span>',"EXTERNAL_IMPORT_WORD_AVATAR","type","ck-annotation","div","editorDestroyed","split","ck-annotation__info-time","extendTemplate","description","descriptionParts","<p>"];var jc,Gc;jc=Uc,Gc=478,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("0x38")](Vc("0x16"),""),this[Vc("0x25")]("type").to(this,Vc("0x1e"),(t=>t&&t[0]?t[0][Vc("0x16")]:"")),this[Vc("0x25")](Vc("0x1d")).to(this,"descriptionParts",this,Vc("0x2b"),((t,e)=>{let n="";for(const e of t)n+=Vc("0x1f")+zc(e[Vc("0x2c")],e[Vc("0x0")])+"</p>";return e?n:(0,r.trimHtml)(n,{limit:140})})),this[Vc("0x3d")]=null,this[Vc("0x31")]=this[Vc("0x33")](Qo(e,Vc("0xf")),t.icons[Vc("0xe")],Vc("0x50"),Vc("0x13"),"sw"),this[Vc("0x31")][Vc("0x25")](Vc("0x24")).to(this,"canAccept"),this[Vc("0x2d")]=this[Vc("0x33")](Qo(e,Vc("0x9")),t.icons.cancel,"ck-suggestion--discard",Vc("0x27"),"sw"),this[Vc("0x2d")].bind(Vc("0x24")).to(this,Vc("0x22")),this[Vc("0x3e")]=new r.UserView(e,this[Vc("0x11")][Vc("0x51")],this[Vc("0xa")]()),this[Vc("0x3e")][Vc("0x1c")]({attributes:{class:[Vc("0x26"),"ck-annotation__user"]}}),this[Vc("0x40")](this[Vc("0x4b")]())}[Vc("0x4b")](){const t=this[Vc("0x49")],e=[{tag:Vc("0x18"),attributes:{class:[Vc("0x3c"),Vc("0x1")]},children:[{tag:Vc("0x39"),children:[{text:this[Vc("0x3e")][Vc("0x54")]}],attributes:{class:[Vc("0x23"),Vc("0x4a")]}},{tag:Vc("0x4"),attributes:{datetime:t.to(Vc("0xd")),class:[Vc("0x4d"),Vc("0x1b")]},children:[{text:t.to(Vc("0xd"),(t=>this._config[Vc("0x41")](t)))}]}]},{tag:Vc("0x18"),attributes:{class:[Vc("0x21"),Vc("0x2e")]},children:[this[Vc("0x31")],this[Vc("0x2d")]]},{tag:Vc("0x18"),attributes:{class:[Vc("0xc")]}}];this._model[Vc("0xb")]&&e.push({tag:Vc("0x18"),attributes:{class:[Vc("0x32")]},children:[{text:this[Vc("0x48")]()}]});const n={tag:Vc("0x18"),attributes:{class:[Vc("0x6"),t.if(Vc("0x2b"),Vc("0x8")),t.to(Vc("0x16"),(t=>"ck-suggestion-"+t)),this[Vc("0x4e")][Vc("0x35")]&&Vc("0x36")],"data-suggestion-id":this[Vc("0x11")].id,"data-thread-id":this[Vc("0x11")][Vc("0x7")].id,"data-author-id":this[Vc("0x11")][Vc("0x51")].id,tabindex:-1},children:[{tag:"div",attributes:{class:[Vc("0x4c"),Vc("0x17")]},children:[this[Vc("0x3e")],{tag:"div",attributes:{class:[Vc("0x28"),Vc("0x44")]},children:e}]}]};return this[Vc("0x4f")]&&this[Vc("0x46")]&&(n.children[Vc("0x43")](this[Vc("0x4f")],this[Vc("0x46")]),this[Vc("0x4f")][Vc("0x3b")](Vc("0x37")).to(this),this.commentsListView[Vc("0x3b")](Vc("0x19")).to(this),this[Vc("0x46")][Vc("0x3b")](Vc("0x37")).to(this),this[Vc("0x46")][Vc("0x3b")](Vc("0x19")).to(this)),n}[Vc("0x3")](){super[Vc("0x3")](),this._descriptionElement=this[Vc("0x5")].querySelector(".ck-annotation__content-wrapper"),this[Vc("0x3d")][Vc("0x3f")]=this[Vc("0x1d")],this.on("change:description",((t,e,n)=>{this[Vc("0x3d")][Vc("0x3f")]=n}))}_createButton(t,e,n,o,r){const s=new i.ButtonView(this[Vc("0x42")]);return s[Vc("0x38")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),s[Vc("0x1c")]({attributes:{class:n}}),s.on("execute",(()=>{this[Vc("0x2f")](o,this[Vc("0x11")].id)})),s}[Vc("0x48")](){return Vc("0x30")===this[Vc("0x11")][Vc("0x52")][Vc("0x12")][Vc("0x45")]?Qo(this[Vc("0x42")],Vc("0x47")):Qo(this.locale,"EXTERNAL_SUGGESTION")}[Vc("0xa")](){return this._model[Vc("0xb")]?Vc("0x30")===this[Vc("0x11")][Vc("0x52")][Vc("0x12")][Vc("0x45")]?Qo(this[Vc("0x42")],Vc("0x15"),this[Vc("0x11")][Vc("0x53")][Vc("0x54")]):Qo(this[Vc("0x42")],Vc("0x29"),this[Vc("0x11")][Vc("0x53")][Vc("0x54")]):null}}function zc(t,e){let n="";return n+=t[Vc("0x1a")]("*").map(((t,e)=>e%2!=0?Vc("0x3a")+Wc(t)+Vc("0x10"):Wc(t)))[Vc("0x2")](""),e&&(n+=Vc("0x34")+e[Vc("0x20")]+'" title="'+e.title+Vc("0x14")),n}function Wc(t){const e=document.createElement(Vc("0x39"));return e[Vc("0x2a")]=t,e.innerHTML}const Kc=["focus","delete","isInContent","separator","size","keys","getFirstRange","getByInnerView","_annotationViews","reduce","listenTo","_disableComments","locale","suggestionChanged","values","buttonView","destroy","comments.editorConfig","unbind","getAllAdjacentSuggestions","isDirty","has","editor","getSuggestion","Discard all selected suggestions","requires","_createUIButton","CommentView","previous","push","bind","define","execute","config","_handleControllerBuffer","Accept all suggestions","add","length","_viewToController","comments.maxThreadTotalWeight","isOn","_bindAnnotationToEditors","TrackChangesEditing","SuggestionThreadView","clear","getDescriptions","filter","remove","comments","some","descriptionParts","change:previous","getMarkerNames","_handleSuggestionControllerDelayed","_updateController","editing","addSourceCollector","plugins","from","CommentsUI","lowest","stopListening","actionView","value","discardSelectedSuggestions","getRanges","type","getJoined","EditorAnnotations","Discard all suggestions","isMultiRange","trackChanges","arrowView","discardButton","commands","Accept all selected suggestions","get","_destroyController","_suggestionToController","suggestion-","set","acceptButton","createAnnotation","discardAllSuggestions","acceptAllSuggestions","view","trackChanges.disableComments","button","_initializeController","pluginName","change:activeAnnotations","suggestionLoaded","mainView","Annotations","toMany","_descriptionFactory","model","commandName","activeMarkers","_refreshActiveMarkers","isEnabled","head","registerAnnotation","CommentsRepository","comments.maxCommentsWhenCollapsed"];var qc,Xc;qc=Kc,Xc=120,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("0xa")](){return[hc,r.Users,"CommentsRepository",$c("0x4e"),$c("0x35")]}static get[$c("0x4a")](){return"TrackChangesUI"}constructor(t){super(t),this[$c("0x3f")]=new Map,this[$c("0x17")]=new Map,this[$c("0x62")]=new Map,this[$c("0x13")]=new Map;const e=this[$c("0x7")][$c("0x12")];e.define("trackChanges.SuggestionThreadView",Hc),e[$c("0x10")]($c("0x47"),!1),this[$c("0x65")]=e.get($c("0x47"))}[$c("0x26")](t,e){0===this[$c("0x13")][$c("0x5e")]&&setTimeout((()=>{for(const[t,e]of this[$c("0x13")]){const n=this[$c("0x3f")].has(t);n||e?n&&e&&this[$c("0x3e")](t):this[$c("0x49")](t)}this.editor[$c("0x2a")][$c("0x3d")]($c("0x35")).refreshSelectedViews(),this[$c("0x54")](),this._handleControllerBuffer[$c("0x1d")]()}),10),this[$c("0x13")][$c("0x41")](t,e)}init(){const t=this[$c("0x7")],e=t[$c("0x2a")][$c("0x3d")]($c("0x1b")),n=t[$c("0x2a")][$c("0x3d")]($c("0x4e")),o=t[$c("0x2a")].get($c("0x35")),i=t[$c("0x2a")][$c("0x3d")]($c("0x58"));t.ui.componentFactory[$c("0x15")]($c("0x38"),(t=>this[$c("0xb")](t))),o[$c("0x29")]((()=>{const t=[];for(const[e,n]of Array[$c("0x2b")](this[$c("0x3f")])){const o=e[$c("0x4")](),i=[];for(const t of o){if(!t.isInContent)continue;if(t[$c("0x37")]){i[$c("0xe")](...t[$c("0x32")]());continue}const e=t[$c("0x60")]();if(i[$c("0x16")]>0){const t=i[0][$c("0x34")](e);if(t){i[0]=t;continue}}i[$c("0xe")](e)}t[$c("0xe")]([n.view,i])}return t})),this.listenTo(e,$c("0x4c"),((t,e)=>{this[$c("0x64")](e,$c("0x24"),((t,n,o,i)=>{e[$c("0x5c")]&&(null==o?(this[$c("0x27")](i[$c("0x56")]),this[$c("0x26")](e,!1)):(this[$c("0x27")](o.head),null==i&&this[$c("0x26")](e,!0)))})),null!==e[$c("0xd")]?this[$c("0x27")](e[$c("0x56")]):this[$c("0x26")](e,!1)})),this.listenTo(e,"suggestionUnloaded",((t,e,n)=>{this[$c("0x2e")](e,$c("0x24")),this[$c("0x13")].delete(e),this._suggestionToController[$c("0x6")](e)&&this._destroyController(e),n&&this._updateController(n[$c("0x56")])})),this[$c("0x64")](e,$c("0x67"),((t,e)=>{this._updateController(e)})),this[$c("0x64")](n,$c("0x4b"),(()=>{this._refreshActiveMarkers()})),this[$c("0x64")](i,"addComment",((t,{threadId:n,isFromAdapter:o})=>{if(o||!e.hasSuggestion(n))return;const i=e[$c("0x8")](n);this._suggestionToController[$c("0x3d")](i)[$c("0x46")].focus()}),{priority:$c("0x2d")})}[$c("0x54")](){const t=this[$c("0x7")][$c("0x2a")][$c("0x3d")]($c("0x4e")),e=this.editor[$c("0x2a")][$c("0x3d")]($c("0x1b")),n=Array.from(t.activeAnnotations,(t=>t.innerView))[$c("0x1f")]((t=>this[$c("0x17")][$c("0x6")](t))),o=[];for(const t of n){const e=this[$c("0x17")][$c("0x3d")](t)[$c("0x51")][$c("0x4")]();o[$c("0xe")](...e[$c("0x63")](((t,e)=>[...t,...e[$c("0x25")]()]),[]))}e[$c("0x53")]=o}[$c("0xb")](t){const n=(0,i.createDropdown)(t,i.SplitButtonView),o=this.editor.commands[$c("0x3d")]($c("0x38")),r=Qo(t,"Track changes");n[$c("0x0")][$c("0x41")]({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[$c("0x0")].bind($c("0x19")).to(o,$c("0x30")),n.buttonView.on($c("0x11"),(()=>{o[$c("0x11")](),this[$c("0x7")][$c("0x28")].view.focus()}));const s=new e.Collection,x=[{type:"switchbutton",model:{withText:!0,label:r,commandName:"trackChanges"}},{type:$c("0x5d")},{type:$c("0x48"),model:{withText:!0,label:Qo(t,$c("0x14")),commandName:$c("0x45")}},{type:$c("0x48"),model:{withText:!0,label:Qo(t,$c("0x3c")),commandName:"acceptSelectedSuggestions"}},{type:$c("0x48"),model:{withText:!0,label:Qo(t,$c("0x36")),commandName:$c("0x44")}},{type:"button",model:{withText:!0,label:Qo(t,$c("0x9")),commandName:$c("0x31")}}];for(const t of x){let e={type:$c("0x5d")};if(t[$c("0x51")]){const n=new i.Model(t[$c("0x51")]),o=this[$c("0x7")][$c("0x3b")][$c("0x3d")](n[$c("0x52")]);n[$c("0xf")]($c("0x19"),$c("0x55")).to(o,"value",$c("0x55")),e={type:t[$c("0x33")],model:n}}s[$c("0x15")](e)}(0,i.addListToDropdown)(n,s);const a=x[$c("0x1f")]((t=>null!=t[$c("0x51")])).map((t=>this[$c("0x7")][$c("0x3b")][$c("0x3d")](t.model[$c("0x52")]))),c=n.buttonView;return c[$c("0x2f")][$c("0x3")]("isEnabled"),c.arrowView.unbind($c("0x55")),c[$c("0x2f")][$c("0xf")]($c("0x55")).to(o,$c("0x55")),c[$c("0x39")][$c("0xf")]($c("0x55"))[$c("0x4f")](a,"isEnabled",((...t)=>t[$c("0x22")]((t=>t)))),n.on($c("0x11"),(t=>{this.editor[$c("0x11")](t.source[$c("0x52")]),this.editor[$c("0x28")][$c("0x46")][$c("0x5a")]()})),n}[$c("0x49")](t){const e=this.editor,n=e[$c("0x12")],o=e.plugins[$c("0x3d")]($c("0x4e")),i=e[$c("0x2a")][$c("0x3d")]($c("0x58")),s=e[$c("0x2a")].get("EditorAnnotations"),x=e[$c("0x2a")][$c("0x3d")](r.Users).me,a=n.get($c("0x38"))[$c("0x1c")],{CommentsListView:c,CommentThreadInputView:l}=e.plugins[$c("0x3d")]($c("0x2c"));let u,d;this[$c("0x62")][$c("0x6")](t.id)?(d=this[$c("0x62")][$c("0x3d")](t.id),u=d[$c("0x4d")]):(u=new a(e[$c("0x66")],t,x,{disableComments:this._disableComments,editorConfig:n[$c("0x3d")]($c("0x2")),maxCommentsWhenCollapsed:n[$c("0x3d")]($c("0x59")),maxThreadTotalWeight:n[$c("0x3d")]($c("0x18")),maxCommentCharsWhenCollapsed:n[$c("0x3d")]("comments.maxCommentCharsWhenCollapsed"),formatDateTime:(0,r.getDateTimeFormatter)(n[$c("0x3d")]($c("0x66"))),CommentView:n[$c("0x3d")]($c("0x21"))[$c("0xc")],CommentsListView:c,CommentThreadInputView:l}),u[$c("0x42")].on($c("0x11"),(()=>{e.editing[$c("0x46")][$c("0x5a")]()})),u[$c("0x3a")].on($c("0x11"),(()=>{e[$c("0x28")][$c("0x46")][$c("0x5a")]()})),d=o.createAnnotationView(this[$c("0x7")][$c("0x66")],u),d.bind($c("0x5")).to(u,$c("0x5")),d[$c("0xf")]("length").to(u),d[$c("0xf")]("type").to(u,$c("0x33"),(t=>$c("0x40")+t)),this._annotationViews[$c("0x41")](t.id,d));const g=i.createCommentThreadController(t.commentThread,u),f=new wc(e,t,u,g),m=t[$c("0x4")]()[$c("0x1f")]((t=>t[$c("0x5c")]));u[$c("0x23")]=e.plugins.get("TrackChangesEditing")[$c("0x50")][$c("0x1e")](m),this[$c("0x3f")][$c("0x41")](t,f),this[$c("0x17")][$c("0x41")](u,f);const h=o[$c("0x43")]({view:d,target:()=>{const n=[],o=t[$c("0x4")]()[$c("0x1f")]((t=>t[$c("0x5c")]));for(const t of o)n[$c("0xe")](...t.getMarkers());return(0,r.getAllMarkersDomElementsSorted)(e[$c("0x28")],n)},type:()=>$c("0x40")+f[$c("0x46")].type});i[$c("0x1a")](u,h),o[$c("0x15")](h),s[$c("0x57")](h)}[$c("0x3e")](t){const e=this[$c("0x7")][$c("0x2a")][$c("0x3d")]($c("0x58")),n=this.editor[$c("0x2a")][$c("0x3d")]($c("0x4e")),o=this[$c("0x3f")][$c("0x3d")](t),i=o[$c("0x46")],r=n[$c("0x61")](i);e._unbindEditors(i),r&&n[$c("0x20")](r),this._suggestionToController.delete(t),this[$c("0x17")][$c("0x5b")](i),o[$c("0x1")]()}[$c("0x27")](t){if(!t.isInContent||!this._suggestionToController[$c("0x6")](t))return;const e=this[$c("0x7")][$c("0x2a")][$c("0x3d")]("TrackChangesEditing"),n=this[$c("0x3f")][$c("0x3d")](t),o=t[$c("0x4")]();n[$c("0x46")][$c("0x23")]=e[$c("0x50")][$c("0x1e")](o)}[$c("0x1")](){for(const t of this[$c("0x3f")][$c("0x5f")]())this[$c("0x3e")](t);for(const t of this._annotationViews[$c("0x68")]())t[$c("0x4d")][$c("0x1")]();super.destroy()}}var Yc,Jc,Qc=["getSuggestion","editor","addSuggestionData","getSuggestions","Comments","requires","get","plugins","adapter"];Yc=Qc,Jc=265,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,tl("0x0")]}static get pluginName(){return"TrackChanges"}set[tl("0x4")](t){this[tl("0x6")][tl("0x3")][tl("0x2")](hc)[tl("0x4")]=t}get[tl("0x4")](){return this[tl("0x6")][tl("0x3")][tl("0x2")](hc)[tl("0x4")]}addSuggestion(t){return this[tl("0x6")][tl("0x3")][tl("0x2")](hc)[tl("0x7")](t)}[tl("0x8")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[tl("0x6")][tl("0x3")][tl("0x2")](hc).getSuggestions({skipNotAttached:t,toJSON:e})}getSuggestion(t){return this[tl("0x6")][tl("0x3")].get(hc)[tl("0x5")](t)}}const nl=["map","createDocumentFragment","model","TrackChangesData","reduce","rootsAttributes","getUser","acceptAllSuggestions","useAnonymousUser","requires","push","Users","set","define","appendChild","name","editor","destroy","result","users","execute","get","discardAllSuggestions","editorCreator","addUser","getRootNames","data","init","getFullData","pluginName","plugins","getDataWithDiscardedSuggestions","config","create","document","_adapter","TrackChangesEditing","trackChangesData","TrackChangesDataGetter","function","trackChangesData.editorCreator","getRootsAttributes","track-changes-data-invalid-editor-creator","getSuggestions","end"];var ol,il;ol=nl,il=457,function(t){for(;--t;)ol.push(ol.shift())}(++il);const rl=function(t,e){return nl[t-=0]},sl=["Pagination"];class xl extends t.Plugin{static get[rl("0x2")](){return[hc]}static get[rl("0x16")](){return rl("0x29")}[rl("0x14")](){const t=this.editor;if(t.config[rl("0x6")](rl("0x21"),(e=>{const n=t.model[rl("0x1b")][rl("0x12")]()[rl("0x2a")](((t,e)=>(t[e]="",t)),{});return t.constructor[rl("0x1a")](n,e)})),rl("0x20")!=typeof t[rl("0x19")][rl("0xe")]("trackChangesData").editorCreator)throw new e.CKEditorError(rl("0x23"))}getDataWithAcceptedSuggestions(t){return ll(this.editor,!0,t)}[rl("0x18")](t){return ll(this[rl("0x9")],!1,t)}}class al extends t.Plugin{static get[rl("0x16")](){return rl("0x1f")}constructor(t){super(t),this[rl("0xb")]=rl("0x25")}[rl("0x14")](){this[rl("0x9")][rl("0x17")][rl("0xe")]("CommentsRepository")._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.editor[rl("0x17")][rl("0xe")](rl("0x1d"))[rl("0x1c")]=null}}function cl(t){return void 0!==t.getRootsAttributes}async function ll(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,sl);o[rl("0x17")][rl("0x3")](hc,al),o[rl("0x2b")]=cl(t)?t[rl("0x22")]():void 0;const i=document[rl("0x27")](),s=t[rl("0x19")][rl("0xe")](rl("0x1e"))[rl("0x10")],x=await s(o,(()=>function(t){const e=document.createElement("div");return t[rl("0x7")](e),e}(i)));!function(t,e){const n=t[rl("0x28")][rl("0x1b")][rl("0x12")]()[rl("0x2a")](((e,n)=>(e[n]=t.data[rl("0xe")]({rootName:n}),e)),{}),o=t.plugins[rl("0xe")](rl("0x4"))[rl("0xc")][rl("0x26")]((t=>({id:t.id,name:t[rl("0x8")]}))),i=t.plugins[rl("0xe")](rl("0x1d"))[rl("0x24")]({skipNotAttached:!0,toJSON:!0}),r=e[rl("0x17")].get(rl("0x4")),s=e.plugins[rl("0xe")](rl("0x1d"));for(const t of o)r[rl("0x2c")](t.id)||r[rl("0x11")](t);r.me||r[rl("0x1")]();for(const t of i)s.addSuggestionData(t);e.data[rl("0x5")](n)}(t,x),x[rl("0xd")](rl(e?"0x0":"0xf"));const a=cl(x)?x[rl("0x15")](n):x[rl("0x13")][rl("0xe")](n);return await x[rl("0xa")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
|