@ckeditor/ckeditor5-track-changes 40.2.0 → 41.1.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 +5 -5
- package/LICENSE.md +1 -1
- package/README.md +1 -1
- package/build/track-changes.js +2 -2
- package/build/translations/es.js +1 -1
- package/build/translations/ro.js +1 -1
- package/lang/translations/ar.po +1 -1
- package/lang/translations/az.po +1 -1
- package/lang/translations/bg.po +1 -1
- package/lang/translations/bn.po +1 -1
- package/lang/translations/ca.po +1 -1
- package/lang/translations/cs.po +1 -1
- package/lang/translations/da.po +1 -1
- package/lang/translations/de.po +1 -1
- package/lang/translations/el.po +1 -1
- package/lang/translations/en-au.po +1 -1
- package/lang/translations/en.po +1 -1
- package/lang/translations/es.po +2 -2
- package/lang/translations/et.po +1 -1
- package/lang/translations/fi.po +1 -1
- package/lang/translations/fr.po +1 -1
- package/lang/translations/gl.po +1 -1
- package/lang/translations/he.po +1 -1
- package/lang/translations/hi.po +1 -1
- package/lang/translations/hr.po +1 -1
- package/lang/translations/hu.po +1 -1
- package/lang/translations/id.po +1 -1
- package/lang/translations/it.po +1 -1
- package/lang/translations/ja.po +1 -1
- package/lang/translations/ko.po +1 -1
- package/lang/translations/lt.po +1 -1
- package/lang/translations/lv.po +1 -1
- package/lang/translations/ms.po +1 -1
- package/lang/translations/nl.po +1 -1
- package/lang/translations/no.po +1 -1
- package/lang/translations/pl.po +1 -1
- package/lang/translations/pt-br.po +1 -1
- package/lang/translations/pt.po +1 -1
- package/lang/translations/ro.po +2 -2
- package/lang/translations/ru.po +1 -1
- package/lang/translations/sk.po +1 -1
- package/lang/translations/sq.po +1 -1
- package/lang/translations/sr-latn.po +1 -1
- package/lang/translations/sr.po +1 -1
- package/lang/translations/sv.po +1 -1
- package/lang/translations/th.po +1 -1
- package/lang/translations/tk.po +1 -1
- package/lang/translations/tr.po +1 -1
- package/lang/translations/tt.po +1 -1
- package/lang/translations/uk.po +1 -1
- package/lang/translations/ur.po +1 -1
- package/lang/translations/vi.po +1 -1
- package/lang/translations/zh-cn.po +1 -1
- package/lang/translations/zh.po +1 -1
- package/package.json +4 -3
- package/src/augmentation.d.ts +3 -3
- package/src/augmentation.js +1 -1
- package/src/commands/acceptsuggestioncommand.d.ts +3 -3
- package/src/commands/acceptsuggestioncommand.js +2 -2
- package/src/commands/discardsuggestioncommand.d.ts +3 -3
- package/src/commands/discardsuggestioncommand.js +2 -2
- package/src/commands/executeonallsuggestionscommand.d.ts +3 -3
- package/src/commands/executeonallsuggestionscommand.js +2 -2
- package/src/commands/executeonselectedsuggestionscommand.d.ts +3 -3
- package/src/commands/executeonselectedsuggestionscommand.js +2 -2
- package/src/commands/trackchangescommand.d.ts +2 -2
- package/src/commands/trackchangescommand.js +2 -2
- package/src/index.d.ts +13 -13
- package/src/index.js +2 -2
- package/src/integrations/aiassistant.d.ts +2 -2
- package/src/integrations/aiassistant.js +2 -2
- package/src/integrations/alignment.d.ts +2 -2
- package/src/integrations/alignment.js +2 -2
- package/src/integrations/basicstyles.d.ts +2 -2
- package/src/integrations/basicstyles.js +2 -2
- package/src/integrations/blockquote.d.ts +2 -2
- package/src/integrations/blockquote.js +2 -2
- package/src/integrations/casechange.d.ts +17 -0
- package/src/integrations/casechange.js +23 -0
- package/src/integrations/ckbox.d.ts +2 -2
- package/src/integrations/ckbox.js +2 -2
- package/src/integrations/codeblock.d.ts +2 -2
- package/src/integrations/codeblock.js +2 -2
- package/src/integrations/comments.d.ts +2 -2
- package/src/integrations/comments.js +2 -2
- package/src/integrations/deletecommand.d.ts +3 -3
- package/src/integrations/deletecommand.js +2 -2
- package/src/integrations/entercommand.d.ts +3 -3
- package/src/integrations/entercommand.js +2 -2
- package/src/integrations/findandreplace.d.ts +2 -2
- package/src/integrations/findandreplace.js +2 -2
- package/src/integrations/font.d.ts +2 -2
- package/src/integrations/font.js +2 -2
- package/src/integrations/formatpainter.d.ts +2 -2
- package/src/integrations/formatpainter.js +2 -2
- package/src/integrations/heading.d.ts +2 -2
- package/src/integrations/heading.js +2 -2
- package/src/integrations/highlight.d.ts +2 -2
- package/src/integrations/highlight.js +2 -2
- package/src/integrations/horizontalline.d.ts +2 -2
- package/src/integrations/horizontalline.js +2 -2
- package/src/integrations/htmlembed.d.ts +2 -2
- package/src/integrations/htmlembed.js +2 -2
- package/src/integrations/image.d.ts +2 -2
- package/src/integrations/image.js +2 -2
- package/src/integrations/imagereplace.d.ts +2 -2
- package/src/integrations/imagereplace.js +2 -2
- package/src/integrations/imagestyle.d.ts +2 -2
- package/src/integrations/imagestyle.js +2 -2
- package/src/integrations/importword.d.ts +2 -2
- package/src/integrations/importword.js +2 -2
- package/src/integrations/indent.d.ts +2 -2
- package/src/integrations/indent.js +2 -2
- package/src/integrations/inputcommand.d.ts +3 -3
- package/src/integrations/inputcommand.js +2 -2
- package/src/integrations/legacylist.d.ts +17 -0
- package/src/integrations/legacylist.js +23 -0
- package/src/integrations/{documentlistproperties.d.ts → legacylistproperties.d.ts} +7 -7
- package/src/integrations/legacylistproperties.js +23 -0
- package/src/integrations/link.d.ts +2 -2
- package/src/integrations/link.js +2 -2
- package/src/integrations/list.d.ts +6 -6
- package/src/integrations/list.js +2 -2
- package/src/integrations/listproperties.d.ts +6 -15
- package/src/integrations/listproperties.js +2 -2
- package/src/integrations/mediaembed.d.ts +2 -2
- package/src/integrations/mediaembed.js +2 -2
- package/src/integrations/mention.d.ts +2 -2
- package/src/integrations/mention.js +2 -2
- package/src/integrations/pagebreak.d.ts +2 -2
- package/src/integrations/pagebreak.js +2 -2
- package/src/integrations/paragraph.d.ts +2 -2
- package/src/integrations/paragraph.js +2 -2
- package/src/integrations/removeformat.d.ts +2 -2
- package/src/integrations/removeformat.js +2 -2
- package/src/integrations/restrictededitingmode.d.ts +2 -2
- package/src/integrations/restrictededitingmode.js +2 -2
- package/src/integrations/shiftentercommand.d.ts +3 -3
- package/src/integrations/shiftentercommand.js +2 -2
- package/src/integrations/standardeditingmode.d.ts +2 -2
- package/src/integrations/standardeditingmode.js +2 -2
- package/src/integrations/style.d.ts +2 -2
- package/src/integrations/style.js +2 -2
- package/src/integrations/table.d.ts +2 -2
- package/src/integrations/table.js +2 -2
- package/src/integrations/tablecaption.d.ts +3 -3
- package/src/integrations/tablecaption.js +2 -2
- package/src/integrations/tableclipboard.d.ts +3 -3
- package/src/integrations/tableclipboard.js +2 -2
- package/src/integrations/tablecolumnresize.d.ts +5 -5
- package/src/integrations/tablecolumnresize.js +2 -2
- package/src/integrations/tableheadings.d.ts +3 -3
- package/src/integrations/tableheadings.js +2 -2
- package/src/integrations/tablemergesplit.d.ts +3 -3
- package/src/integrations/tablemergesplit.js +2 -2
- package/src/integrations/tableofcontents.d.ts +2 -2
- package/src/integrations/tableofcontents.js +2 -2
- package/src/integrations/tableproperties.d.ts +5 -5
- package/src/integrations/tableproperties.js +2 -2
- package/src/integrations/template.d.ts +2 -2
- package/src/integrations/template.js +2 -2
- package/src/integrations/title.d.ts +2 -2
- package/src/integrations/title.js +2 -2
- package/src/integrations/undo.d.ts +2 -2
- package/src/integrations/undo.js +2 -2
- package/src/integrations/utils.d.ts +4 -4
- package/src/integrations/utils.js +2 -2
- package/src/suggestion.d.ts +6 -6
- package/src/suggestion.js +2 -2
- package/src/suggestiondescriptionfactory.d.ts +4 -4
- package/src/suggestiondescriptionfactory.js +2 -2
- package/src/trackchanges.d.ts +6 -6
- package/src/trackchanges.js +2 -2
- package/src/trackchangesconfig.d.ts +2 -2
- package/src/trackchangesconfig.js +1 -1
- package/src/trackchangesdata.d.ts +3 -3
- package/src/trackchangesdata.js +2 -2
- package/src/trackchangesediting.d.ts +56 -55
- package/src/trackchangesediting.js +2 -2
- package/src/trackchangesui.d.ts +4 -4
- package/src/trackchangesui.js +2 -2
- package/src/ui/suggestioncontroller.d.ts +6 -6
- package/src/ui/suggestioncontroller.js +2 -2
- package/src/ui/view/basesuggestionthreadview.d.ts +7 -7
- package/src/ui/view/basesuggestionthreadview.js +2 -2
- package/src/ui/view/suggestionthreadview.d.ts +6 -6
- package/src/ui/view/suggestionthreadview.js +2 -2
- package/src/utils/common-translations.d.ts +2 -2
- package/src/utils/common-translations.js +2 -2
- package/src/utils/utils.d.ts +5 -5
- package/src/utils/utils.js +2 -2
- package/theme/icons/track-changes-accept.svg +1 -1
- package/theme/icons/track-changes-discard.svg +1 -1
- package/theme/icons/track-changes.svg +1 -1
- package/src/integrations/documentlist.d.ts +0 -17
- package/src/integrations/documentlist.js +0 -23
- package/src/integrations/documentlistproperties.js +0 -23
package/build/track-changes.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
!function(t){const e=t.en=t.en||{};e.dictionary=Object.assign(e.dictionary||{},{"*Change %0 content*":"*Change %0 content*","*Change to:* %0":"*Change to:* %0","*Check item*":"*Check item*","*Format:* %0":"*Format:* %0","*Format:* change table cell properties":"*Format:* change table cell properties","*Format:* change table properties":"*Format:* change table properties","*Format:* insert into %0":"*Format:* insert into %0","*Format:* remove from %0":"*Format:* remove from %0","*Format:* resize table":"*Format:* resize table","*Format:* set order to regular":"*Format:* set order to regular","*Format:* set order to reversed":"*Format:* set order to reversed","*Format:* set start index to %0":"*Format:* set start index to %0","*Indent:* %0":"*Indent:* %0","*Insert:* %0":"*Insert:* %0","*Merge cells*":"*Merge cells*","*Merge:* %0":"*Merge:* %0","*Outdent:* %0":"*Outdent:* %0","*Remove all formatting*":"*Remove all formatting*","*Remove format:* %0":"*Remove format:* %0","*Remove highlight*":"*Remove highlight*","*Remove image text alternative*":"*Remove image text alternative*","*Remove link*":"*Remove link*","*Remove:* %0":"*Remove:* %0","*Replace image URL*":"*Replace image URL*","*Replace table cells*":"*Replace table cells*","*Reset font background color*":"*Reset font background color*","*Reset font color*":"*Reset font color*","*Reset font family*":"*Reset font family*","*Reset font size*":"*Reset font size*","*Reset image width*":"*Reset image width*","*Set font background color:* %0":"*Set font background color:* %0","*Set font color:* %0":"*Set font color:* %0","*Set font family:* %0":"*Set font family:* %0","*Set font size:* %0":"*Set font size:* %0","*Set format to:* %0":"*Set format to:* %0","*Set format:* %0":"*Set format:* %0","*Set highlight:* %0":"*Set highlight:* %0","*Set image text alternative:* %0":"*Set image text alternative:* %0","*Set image width:* %0":"*Set image width:* %0","*Set link:* %0":"*Set link:* %0","*Split cell:* horizontally":"*Split cell:* horizontally","*Split cell:* vertically":"*Split cell:* vertically","*Split:* %0":"*Split:* %0","*Uncheck item*":"*Uncheck item*","Accept all selected suggestions":"Accept all selected suggestions","Accept all suggestions":"Accept all suggestions","Accept suggestion":"Accept suggestion","Discard all selected suggestions":"Discard all selected suggestions","Discard all suggestions":"Discard all suggestions","Discard suggestion":"Discard suggestion",ELEMENT_BLOCK_QUOTE:"block quote",ELEMENT_BULLETED_LIST:"bulleted list",ELEMENT_BULLETED_LIST_CIRCLE:"bulleted list (circle)",ELEMENT_BULLETED_LIST_DEFAULT:"bulleted list (default)",ELEMENT_BULLETED_LIST_DISC:"bulleted list (disc)",ELEMENT_BULLETED_LIST_SQUARE:"bulleted list (square)",ELEMENT_CAPTION:"caption",ELEMENT_CODE_BLOCK:["code block","%0 code blocks"],ELEMENT_HEADING:["heading (level %1)","%0 headings (level %1)"],ELEMENT_HEADING_CUSTOM:["heading (%1)","%0 headings (%1)"],ELEMENT_HORIZONTAL_LINE:["horizontal line","%0 horizontal lines"],ELEMENT_HTML_EMBED:["HTML embed","%0 HTML embeds"],ELEMENT_IMAGE:["image","%0 images"],ELEMENT_INLINE_IMAGE:["image","%0 images"],ELEMENT_LINE_BREAK:["line break","%0 line breaks"],ELEMENT_LIST_ITEM:["list item","%0 list items"],ELEMENT_MEDIA:["media item","%0 media items"],ELEMENT_NUMBERED_LIST:"numbered list",ELEMENT_NUMBERED_LIST_DECIMAL:"numbered list (decimal)",ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO:"numbered list (decimal with leading zero)",ELEMENT_NUMBERED_LIST_DEFAULT:"numbered list (default)",ELEMENT_NUMBERED_LIST_LOWER_LATIN:"numbered list (lower-latin)",ELEMENT_NUMBERED_LIST_LOWER_ROMAN:"numbered list (lower-roman)",ELEMENT_NUMBERED_LIST_UPPER_LATIN:"numbered list (upper-latin)",ELEMENT_NUMBERED_LIST_UPPER_ROMAN:"numbered list (upper-roman)",ELEMENT_PAGE_BREAK:["page break","%0 page breaks"],ELEMENT_PARAGRAPH:["paragraph","%0 paragraphs"],ELEMENT_SPACE:["space","%0 spaces"],ELEMENT_TABLE:["table","%0 tables"],ELEMENT_TABLE_COLUMN:["table column","%0 table columns"],ELEMENT_TABLE_COLUMN_WITH_TEXT:["table column *with text* %1","%0 table columns *with text* %1"],ELEMENT_TABLE_OF_CONTENTS:["table of contents","%0 tables of contents"],ELEMENT_TABLE_ROW:["table row","%0 table rows"],ELEMENT_TABLE_ROW_WITH_TEXT:["table row *with text* %1","%0 table rows *with text* %1"],ELEMENT_TABLE_WITH_TEXT:"table *with text* %0",ELEMENT_TITLE:"title",ELEMENT_TODO_LIST:"to-do list",ENTER_DELETION_SUGGESTION_ANNOUNCEMENT:"Entering deletion suggestion.",ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT:"Entering formatting suggestion.",ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT:"Entering insertion suggestion.",EXTERNAL_IMPORT_WORD_SUGGESTION:"This suggestion comes from an imported Word file.",EXTERNAL_SUGGESTION:"This suggestion comes from an external source.",FORMAT_ALIGN_TO_CENTER:"align to center",FORMAT_ALIGN_TO_LEFT:"align to left",FORMAT_ALIGN_TO_RIGHT:"align to right",FORMAT_ALIGNMENT:"alignment",FORMAT_BOLD:"bold",FORMAT_CODE:"code",FORMAT_FONT_BACKGROUND:"font background color",FORMAT_FONT_COLOR:"font color",FORMAT_FONT_FAMILY:"font family",FORMAT_FONT_SIZE:"font size",FORMAT_HEADER_COLUMN:"header column",FORMAT_HEADER_ROW:"header row",FORMAT_HIGHLIGHT:"highlight",FORMAT_IMAGE_SIZE:"image size",FORMAT_INDENT:"indent",FORMAT_ITALIC:"italic",FORMAT_JUSTIFY_TEXT:"justify",FORMAT_LIST_REVERSED:"list reversed",FORMAT_LIST_START:"list start",FORMAT_REGULAR_COLUMN:"regular column",FORMAT_REGULAR_ROW:"regular row",FORMAT_RESTRICTED_DISABLED:"*Disable in restricted editing mode*",FORMAT_RESTRICTED_ENABLED:"*Enable in restricted editing mode*",FORMAT_SIDE_IMAGE:"side image",FORMAT_STRIKETHROUGH:"strikethrough",FORMAT_STYLE:"style",FORMAT_SUBSCRIPT:"subscript",FORMAT_SUPERSCRIPT:"superscript",FORMAT_UNDERLINE:"underline",LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT:"Leaving deletion suggestion.",LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT:"Leaving formatting suggestion.",LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT:"Leaving insertion suggestion.",PENDING_ACTION_SUGGESTION:"Unsaved change in suggestion.",REPLACE_TEXT:"*Replace:* %0 *with* %1","Track changes":"Track changes"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),
|
|
2
2
|
/*!
|
|
3
|
-
* @license Copyright (c) 2003-
|
|
3
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
4
4
|
* For licensing, see LICENSE.md.
|
|
5
|
-
*/(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var i=e[o];if(void 0!==i)return i.exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>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})();
|
|
5
|
+
*/(()=>{var t={588:(t,e,n)=>{t.exports=n(104)("./src/collaboration-core.js")},968:(t,e,n)=>{t.exports=n(672)("./src/core.js")},684:(t,e,n)=>{t.exports=n(672)("./src/engine.js")},976:(t,e,n)=>{t.exports=n(672)("./src/enter.js")},500:(t,e,n)=>{t.exports=n(672)("./src/typing.js")},348:(t,e,n)=>{t.exports=n(672)("./src/ui.js")},316:(t,e,n)=>{t.exports=n(672)("./src/utils.js")},396:(t,e,n)=>{t.exports=n(672)("./src/widget.js")},104:t=>{"use strict";t.exports=CKEditor5.collaborationDll},672:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};(()=>{"use strict";n.r(r),n.d(r,{BaseSuggestionThreadView:()=>Kc,TrackChanges:()=>cl,TrackChangesData:()=>hl,TrackChangesEditing:()=>Ac});var t=n(968),e=n(316),i=n(348),o=n(588),s=n(684),x=n(396);const a=["refresh","forceDisabled","TrackChangesCommand","affectsData","commands","_enabledCommands","_disableUnsupportedCommands","execute","_enableCommands","editor","clearForceDisabled","value","isEnabled","has","_isEnabledBasedOnSelection"];var c,l;c=a,l=127,function(t){for(;--t;)c.push(c.shift())}(++l);const u=function(t,e){return a[t-=0]};class d extends t.Command{constructor(t,e){super(t),this._enabledCommands=e,this[u("0x4")]=!1,this.refresh(),this[u("0x7")]=!1}[u("0x8")](){this[u("0x5")]=!0}[u("0x0")](){this[u("0x4")]=!this[u("0x4")],this.value?this[u("0xe")]():this[u("0x1")]()}[u("0xe")](){for(const t of this[u("0x2")][u("0xc")][u("0xc")]())t[u("0xb")]&&!this[u("0xd")][u("0x6")](t)&&t[u("0x9")]("TrackChangesCommand")}[u("0x1")](){for(const t of this[u("0x2")][u("0xc")].commands())t[u("0xb")]&&!this._enabledCommands[u("0x6")](t)&&t[u("0x3")](u("0xa"))}}const g=["plugins","acceptSuggestion","refresh","model","execute","isEnabled","_isEnabledBasedOnSelection","get","editor","track-changes-accept-suggestion-not-found","getRanges","_suggestions","TrackChangesEditing"];var f,h;f=g,h=142,function(t){for(;--t;)f.push(f.shift())}(++h);const m=function(t,e){return g[t-=0]};class b extends t.Command{constructor(t,e){super(t),this._suggestions=e,this[m("0x3")](),this[m("0x7")]=!1}[m("0x3")](){this[m("0x6")]=!0}[m("0x5")](t){const n=this[m("0xc")][m("0x8")](t);if(!n)throw new e.CKEditorError(m("0xa"),this);const r=n[m("0xb")]();this[m("0x9")][m("0x4")].canEditAt(r)&&this[m("0x9")][m("0x1")][m("0x8")](m("0x0"))[m("0x2")](n)}}const p=["getRanges","editor","refresh","discardSuggestion","_isEnabledBasedOnSelection","execute","get","track-changes-discard-suggestion-not-found","_suggestions","canEditAt"];var E,_;E=p,_=483,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return p[t-=0]};class y extends t.Command{constructor(t,e){super(t),this._suggestions=e,this[T("0x9")](),this[T("0x1")]=!1}refresh(){this.isEnabled=!0}[T("0x2")](t){const n=this[T("0x5")][T("0x3")](t);if(!n)throw new e.CKEditorError(T("0x4"),this);const r=n[T("0x7")]();this[T("0x8")].model[T("0x6")](r)&&this[T("0x8")].plugins.get("TrackChangesEditing")[T("0x0")](n)}}const C=["createPositionAt","join","type","getRanges","createRange","createPositionBefore","isMultiRange","isObject","isCollapsed","isTouching","isInContent","isIntersecting","createPositionAfter","execute","isArray","content","length","change","color","replace","start","deletion","push","end","splice"];var A,k;A=C,k=369,function(t){for(;--t;)A.push(A.shift())}(++k);const I=function(t,e){return C[t-=0]};function R(t){return t.sort(((t,e)=>I("0x2")==t[I("0x8")]&&"deletion"!=e[I("0x8")]?-1:I("0x2")!=t[I("0x8")]&&"deletion"==e[I("0x8")]?1:0))}function S(t,e){let n,r=0;const i=[],o=e.schema;for(;r<t[I("0x16")];){const s=t[r],x=t[r+1];n||(n=e[I("0xb")](s)),v(e,s,x)||(i[I("0x3")](e[I("0xa")](n,o[I("0xd")](s)?e[I("0x12")](s):e[I("0x6")](s,I("0x4")))),n=null),r++}return i}function v(t,e,n){if(!n)return!1;const r=t.createPositionAfter(e),i=t[I("0xb")](n);return r[I("0xf")](i)}function N(t,e,n){for(;n[I("0x16")];){const r=n[I("0x5")](0,100);t[I("0x17")]((()=>{for(const t of r)t.isInContent&&e[I("0x13")](t.id)}))}}const L=["getRanges","_command","isInContent","refresh","from","some","_isEnabledBasedOnSelection","isEnabled","editor","model","canEditAt","values","execute","_suggestions"];var M,w;M=L,w=334,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return L[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0x3")]=e,this[O("0x1")]=n,this[O("0x5")](),this[O("0x8")]=!1}[O("0x5")](){const t=Array[O("0x6")](this._suggestions.values())[O("0x7")]((t=>t[O("0x4")]));this.isEnabled=this[O("0x3")][O("0x9")]&&t}[O("0x0")](){const t=R(Array[O("0x6")](this._suggestions[O("0xd")]()));for(const e of t){const t=e[O("0x2")]();if(!this[O("0xa")][O("0xb")][O("0xc")](t))return}N(this[O("0xa")].model,this[O("0x3")],t)}}const D=["size","getRanges","from","_isEnabledBasedOnSelection","isEnabled","_selectedSuggestions","selection","_suggestions","editor","model","_command","execute","refresh"];var P,B;P=D,B=338,function(t){for(;--t;)P.push(P.shift())}(++B);const U=function(t,e){return D[t-=0]};class j extends t.Command{constructor(t,e,n){super(t),this[U("0xa")]=e,this[U("0x7")]=n,this._selectedSuggestions=new Set,this[U("0xc")](),this[U("0x3")]=!1}[U("0xc")](){const t=this[U("0x8")][U("0x9")].document[U("0x6")],e=Array[U("0x2")](this._suggestions.values());this[U("0x5")]=function(t,e){const n=Array.from(t[I("0x9")]()),r=new Set;for(const i of e)if(i[I("0x10")])for(const e of n)for(const n of i[I("0x9")]())(e[I("0x11")](n)||t[I("0xe")]&&!i[I("0xc")]&&i.next&&n[I("0x4")].isTouching(e[I("0x1")]))&&r.add(i);return r}(t,e),this[U("0x4")]=this[U("0xa")][U("0x4")]&&!!this._selectedSuggestions[U("0x0")]}[U("0xb")](){const t=R(Array[U("0x2")](this[U("0x5")]));for(const e of t){const t=e[U("0x1")]();if(!this.editor[U("0x9")].canEditAt(t))return}N(this[U("0x8")][U("0x9")],this[U("0xa")],t)}}const G=function(){this.__data__=[],this.size=0};const V=function(t,e){return t===e||t!=t&&e!=e};const H=function(t,e){for(var n=t.length;n--;)if(V(t[n][0],e))return n;return-1};var z=Array.prototype.splice;const W=function(t){var e=this.__data__,n=H(e,t);return!(n<0)&&(n==e.length-1?e.pop():z.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=H(e,t);return n<0?void 0:e[n][1]};const q=function(t){return H(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,r=H(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}$.prototype.clear=G,$.prototype.delete=W,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const Z=$;const Y=function(){this.__data__=new Z,this.size=0};const Q=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const J=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const rt=et||nt||Function("return this")();const it=rt.Symbol;var ot=Object.prototype,st=ot.hasOwnProperty,xt=ot.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 r=!0}catch(t){}var i=xt.call(t);return r&&(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 ht=function(t){if(!ft(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const mt=rt["__core-js_shared__"];var bt,pt=(bt=/[^.]+$/.exec(mt&&mt.keys&&mt.keys.IE_PROTO||""))?"Symbol(src)_1."+bt:"";const Et=function(t){return!!pt&&pt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var yt=/^\[object .+?Constructor\]$/,Ct=Function.prototype,At=Object.prototype,kt=Ct.toString,It=At.hasOwnProperty,Rt=RegExp("^"+kt.call(It).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const St=function(t){return!(!ft(t)||Et(t))&&(ht(t)?Rt:yt).test(Tt(t))};const vt=function(t,e){return null==t?void 0:t[e]};const Nt=function(t,e){var n=vt(t,e);return St(n)?n:void 0};const Lt=Nt(rt,"Map");const Mt=Nt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Dt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Pt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Pt.call(e,t)};const Ut=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mt&&void 0===e?"__lodash_hash_undefined__":e,this};function jt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}jt.prototype.clear=wt,jt.prototype.delete=Ot,jt.prototype.get=Dt,jt.prototype.has=Bt,jt.prototype.set=Ut;const Gt=jt;const Vt=function(){this.size=0,this.__data__={hash:new Gt,map:new(Lt||Z),string:new Gt}};const Ht=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const zt=function(t,e){var n=t.__data__;return Ht(e)?n["string"==typeof e?"string":"hash"]:n.map};const Wt=function(t){var e=zt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return zt(this,t).get(t)};const qt=function(t){return zt(this,t).has(t)};const Xt=function(t,e){var n=zt(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}$t.prototype.clear=Vt,$t.prototype.delete=Wt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Zt=$t;const Yt=function(t,e){var n=this.__data__;if(n instanceof Z){var r=n.__data__;if(!Lt||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Zt(r)}return n.set(t,e),this.size=n.size,this};function Qt(t){var e=this.__data__=new Z(t);this.size=e.size}Qt.prototype.clear=Y,Qt.prototype.delete=Q,Qt.prototype.get=J,Qt.prototype.has=tt,Qt.prototype.set=Yt;const Jt=Qt;const te=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Nt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var re=Object.prototype.hasOwnProperty;const ie=function(t,e,n){var r=t[e];re.call(t,e)&&V(r,n)&&(void 0!==n||e in t)||ne(t,e,n)};const oe=function(t,e,n,r){var i=!n;n||(n={});for(var o=-1,s=e.length;++o<s;){var x=e[o],a=r?r(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,r=Array(t);++n<t;)r[n]=e(n);return r};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,ue=ce.propertyIsEnumerable;const de=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!ue.call(t,"callee")};const ge=Array.isArray;const fe=function(){return!1};var he="object"==typeof exports&&exports&&!exports.nodeType&&exports,me=he&&"object"==typeof module&&module&&!module.nodeType&&module,be=me&&me.exports===he?rt.Buffer:void 0;const pe=(be?be.isBuffer:void 0)||fe;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var ye={};ye["[object Float32Array]"]=ye["[object Float64Array]"]=ye["[object Int8Array]"]=ye["[object Int16Array]"]=ye["[object Int32Array]"]=ye["[object Uint8Array]"]=ye["[object Uint8ClampedArray]"]=ye["[object Uint16Array]"]=ye["[object Uint32Array]"]=!0,ye["[object Arguments]"]=ye["[object Array]"]=ye["[object ArrayBuffer]"]=ye["[object Boolean]"]=ye["[object DataView]"]=ye["[object Date]"]=ye["[object Error]"]=ye["[object Function]"]=ye["[object Map]"]=ye["[object Number]"]=ye["[object Object]"]=ye["[object RegExp]"]=ye["[object Set]"]=ye["[object String]"]=ye["[object WeakMap]"]=!1;const Ce=function(t){return xe(t)&&Te(t.length)&&!!ye[gt(t)]};const Ae=function(t){return function(e){return t(e)}};var ke="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ie=ke&&"object"==typeof module&&module&&!module.nodeType&&module,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),r=!n&&de(t),i=!n&&!r&&pe(t),o=!n&&!r&&!i&&Ne(t),s=n||r||i||o,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)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const De=Fe(Object.keys,Object);var Pe=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return De(t);var e=[];for(var n in Object(t))Pe.call(t,n)&&"constructor"!=n&&e.push(n);return e};const Ue=function(t){return null!=t&&Te(t.length)&&!ht(t)};const je=function(t){return Ue(t)?Me(t):Be(t)};const Ge=function(t,e){return t&&oe(e,je(e),t)};const Ve=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var He=Object.prototype.hasOwnProperty;const ze=function(t){if(!ft(t))return Ve(t);var e=Oe(t),n=[];for(var r in t)("constructor"!=r||!e&&He.call(t,r))&&n.push(r);return n};const We=function(t){return Ue(t)?Me(t,!0):ze(t)};const Ke=function(t,e){return t&&oe(e,We(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?rt.Buffer:void 0,Ze=$e?$e.allocUnsafe:void 0;const Ye=function(t,e){if(e)return t.slice();var n=t.length,r=Ze?Ze(n):new t.constructor(n);return t.copy(r),r};const Qe=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e};const Je=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const rn=nn?function(t){return null==t?[]:(t=Object(t),Je(nn(t),(function(e){return en.call(t,e)})))}:tn;const on=function(t,e){return oe(t,rn(t),e)};const sn=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)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,rn(t)),t=xn(t);return e}:tn;const cn=function(t,e){return oe(t,an(t),e)};const ln=function(t,e,n){var r=e(t);return ge(t)?r:sn(r,n(t))};const un=function(t){return ln(t,je,rn)};const dn=function(t){return ln(t,We,an)};const gn=Nt(rt,"DataView");const fn=Nt(rt,"Promise");const hn=Nt(rt,"Set");const mn=Nt(rt,"WeakMap");var bn="[object Map]",pn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",yn=Tt(gn),Cn=Tt(Lt),An=Tt(fn),kn=Tt(hn),In=Tt(mn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Lt&&Rn(new Lt)!=bn||fn&&Rn(fn.resolve())!=pn||hn&&Rn(new hn)!=En||mn&&Rn(new mn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,r=n?Tt(n):"";if(r)switch(r){case yn:return Tn;case Cn:return bn;case An:return pn;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=rt.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Ln(e).set(new Ln(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Dn=it?it.prototype:void 0,Pn=Dn?Dn.valueOf:void 0;const Bn=function(t){return Pn?Object(Pn.call(t)):{}};const Un=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const jn=function(t,e,n){var r=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new r(+t);case"[object DataView]":return wn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Un(t,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(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]",Qn="[object Object]",Jn={};Jn[Zn]=Jn["[object Array]"]=Jn["[object ArrayBuffer]"]=Jn["[object DataView]"]=Jn["[object Boolean]"]=Jn["[object Date]"]=Jn["[object Float32Array]"]=Jn["[object Float64Array]"]=Jn["[object Int8Array]"]=Jn["[object Int16Array]"]=Jn["[object Int32Array]"]=Jn["[object Map]"]=Jn["[object Number]"]=Jn[Qn]=Jn["[object RegExp]"]=Jn["[object Set]"]=Jn["[object String]"]=Jn["[object Symbol]"]=Jn["[object Uint8Array]"]=Jn["[object Uint8ClampedArray]"]=Jn["[object Uint16Array]"]=Jn["[object Uint32Array]"]=!0,Jn["[object Error]"]=Jn[Yn]=Jn["[object WeakMap]"]=!1;const tr=function t(e,n,r,i,o,s){var x,a=1&n,c=2&n,l=4&n;if(r&&(x=o?r(e,i,o,s):r(e)),void 0!==x)return x;if(!ft(e))return e;var u=ge(e);if(u){if(x=Nn(e),!a)return Qe(e,x)}else{var d=Sn(e),g=d==Yn||"[object GeneratorFunction]"==d;if(pe(e))return Ye(e,a);if(d==Qn||d==Zn||g&&!o){if(x=c||g?{}:Hn(e),!a)return c?cn(e,Ke(x,e)):on(e,Ge(x,e))}else{if(!Jn[d])return o?e:{};x=jn(e,d,a)}}s||(s=new Jt);var f=s.get(e);if(f)return f;s.set(e,x),$n(e)?e.forEach((function(i){x.add(t(i,n,r,i,e,s))})):Kn(e)&&e.forEach((function(i,o){x.set(o,t(i,n,r,o,e,s))}));var h=u?void 0:(l?c?dn:un:c?We:je)(e);return te(h||e,(function(i,o){h&&(i=e[o=i]),ie(x,o,t(i,n,r,o,e,s))})),x};const er=function(t){return tr(t,5)};const nr=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var rr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ir=/^\w*$/;const or=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!nr(t))||(ir.test(t)||!rr.test(t)||null!=e&&t in Object(e))};function sr(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(sr.Cache||Zt),n}sr.Cache=Zt;const xr=sr;var ar=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,cr=/\\(\\)?/g;const lr=function(t){var e=xr(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ar,(function(t,n,r,i){e.push(r?i.replace(cr,"$1"):n||t)})),e}));const ur=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i};var dr=it?it.prototype:void 0,gr=dr?dr.toString:void 0;const fr=function t(e){if("string"==typeof e)return e;if(ge(e))return ur(e,t)+"";if(nr(e))return gr?gr.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const hr=function(t){return null==t?"":fr(t)};const mr=function(t,e){return ge(t)?t:or(t,e)?[t]:lr(hr(t))};const br=function(t){if("string"==typeof t||nr(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const pr=function(t,e,n,r){if(!ft(t))return t;for(var i=-1,o=(e=mr(e,t)).length,s=o-1,x=t;null!=x&&++i<o;){var a=br(e[i]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(i!=s){var l=x[a];void 0===(c=r?r(l,a,x):void 0)&&(c=ft(l)?l:_e(e[i+1])?[]:{})}ie(x,a,c),x=x[a]}return t};const Er=function(t,e,n){return null==t?t:pr(t,e,n)};const _r=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Tr=function(t){return this.__data__.has(t)};function yr(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Zt;++e<n;)this.add(t[e])}yr.prototype.add=yr.prototype.push=_r,yr.prototype.has=Tr;const Cr=yr;const Ar=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1};const kr=function(t,e){return t.has(e)};const Ir=function(t,e,n,r,i,o){var s=1&n,x=t.length,a=e.length;if(x!=a&&!(s&&a>x))return!1;var c=o.get(t),l=o.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new Cr:void 0;for(o.set(t,e),o.set(e,t);++u<x;){var f=t[u],h=e[u];if(r)var m=s?r(h,f,u,e,t,o):r(f,h,u,t,e,o);if(void 0!==m){if(m)continue;d=!1;break}if(g){if(!Ar(e,(function(t,e){if(!kr(g,e)&&(f===t||i(f,t,n,r,o)))return g.push(e)}))){d=!1;break}}else if(f!==h&&!i(f,h,n,r,o)){d=!1;break}}return o.delete(t),o.delete(e),d};const Rr=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n};const Sr=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var vr=it?it.prototype:void 0,Nr=vr?vr.valueOf:void 0;const Lr=function(t,e,n,r,i,o,s){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!o(new Ln(t),new Ln(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return V(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=Rr;case"[object Set]":var a=1&r;if(x||(x=Sr),t.size!=e.size&&!a)return!1;var c=s.get(t);if(c)return c==e;r|=2,s.set(t,e);var l=Ir(x(t),x(e),r,i,o,s);return s.delete(t),l;case"[object Symbol]":if(Nr)return Nr.call(t)==Nr.call(e)}return!1};var Mr=Object.prototype.hasOwnProperty;const wr=function(t,e,n,r,i,o){var s=1&n,x=un(t),a=x.length;if(a!=un(e).length&&!s)return!1;for(var c=a;c--;){var l=x[c];if(!(s?l in e:Mr.call(e,l)))return!1}var u=o.get(t),d=o.get(e);if(u&&d)return u==e&&d==t;var g=!0;o.set(t,e),o.set(e,t);for(var f=s;++c<a;){var h=t[l=x[c]],m=e[l];if(r)var b=s?r(m,h,l,e,t,o):r(h,m,l,t,e,o);if(!(void 0===b?h===m||i(h,m,n,r,o):b)){g=!1;break}f||(f="constructor"==l)}if(g&&!f){var p=t.constructor,E=e.constructor;p==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof p&&p instanceof p&&"function"==typeof E&&E instanceof E||(g=!1)}return o.delete(t),o.delete(e),g};var Or="[object Arguments]",Fr="[object Array]",Dr="[object Object]",Pr=Object.prototype.hasOwnProperty;const Br=function(t,e,n,r,i,o){var s=ge(t),x=ge(e),a=s?Fr:Sn(t),c=x?Fr:Sn(e),l=(a=a==Or?Dr:a)==Dr,u=(c=c==Or?Dr:c)==Dr,d=a==c;if(d&&pe(t)){if(!pe(e))return!1;s=!0,l=!1}if(d&&!l)return o||(o=new Jt),s||Ne(t)?Ir(t,e,n,r,i,o):Lr(t,e,a,n,r,i,o);if(!(1&n)){var g=l&&Pr.call(t,"__wrapped__"),f=u&&Pr.call(e,"__wrapped__");if(g||f){var h=g?t.value():t,m=f?e.value():e;return o||(o=new Jt),i(h,m,n,r,o)}}return!!d&&(o||(o=new Jt),wr(t,e,n,r,i,o))};const Ur=function t(e,n,r,i,o){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:Br(e,n,r,i,t,o))};const jr=function(t,e){return Ur(t,e)};const Gr=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Vr=function(t,e){for(var n=0,r=(e=mr(e,t)).length;null!=t&&n<r;)t=t[br(e[n++])];return n&&n==r?t:void 0};const Hr=function(t,e,n){var r=-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 o=Array(i);++r<i;)o[r]=t[r+e];return o};const zr=function(t,e){return e.length<2?t:Vr(t,Hr(e,0,-1))};const Wr=function(t,e){return e=mr(e,t),null==(t=zr(t,e))||delete t[br(Gr(e))]};const Kr=function(t,e){return null==t||Wr(t,e)},qr=["subType","@external","setAttribute","from","isMultiRange","onAccept","getFirstRange","type","size","push","getContainedElement","removeMarkers","hasComments","get","commentThread","length","map","_markerNames","getRanges","author","end","suggestion:","delete","discard","previous","getItems","filter","accept","isIntersecting","decorate","change","onAttributesChange","removeMarker","nodeAfter","getMarkers","isIntersectingWithRange","_model","removeAttribute","getMarkerNames","next","getRange","getMultiRangeId","toJSON","createdAt","_onAttributesChange","start","_onDiscard","creator","getFirstMarker","getAllAdjacentSuggestions","authoredAt","addMarkerName","_onAccept","addRange","data","_isDataLoaded","split","substr","isExternal","set","attributes"];var Xr,$r;Xr=qr,$r=334,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Zr=function(t,e){return qr[t-=0]};class Yr extends((0,e.ObservableMixin)()){constructor(t,e){super(),this[Zr("0x1a")]=!1,this.id=e.id,this[Zr("0x27")]=e.type,this.subType=e[Zr("0x20")]||null,this[Zr("0x33")]=e[Zr("0x33")],this[Zr("0x12")]=e[Zr("0x12")]||e[Zr("0x33")],this[Zr("0x1d")]=Boolean(e[Zr("0x1f")]&&e[Zr("0x1f")][Zr("0x21")]),this[Zr("0x19")]=null,this[Zr("0x7")]=t,this[Zr("0x17")]=e[Zr("0x25")],this[Zr("0x11")]=e.onDiscard,this[Zr("0xf")]=e[Zr("0x2")],this[Zr("0x31")]=new Set,this[Zr("0xe")]=null,this[Zr("0x1e")](Zr("0x15"),null),this[Zr("0x1e")](Zr("0x1f"),e.attributes||{}),this[Zr("0x1e")](Zr("0x38"),null),this.set(Zr("0xa"),null),this[Zr("0x1e")]("commentThread",null),this[Zr("0x1e")]("_saved",!1),this[Zr("0x0")](Zr("0x3b")),this[Zr("0x0")](Zr("0x37"))}get head(){let t=this;for(;t[Zr("0x38")];)t=t[Zr("0x38")];return t}get[Zr("0x2c")](){return!!this[Zr("0x2e")]&&this[Zr("0x2e")][Zr("0x2f")]>0}get[Zr("0x24")](){return 0!=this[Zr("0x31")][Zr("0x28")]&&6==Array[Zr("0x23")](this[Zr("0x31")])[0][Zr("0x1b")](":").length}get isInContent(){return null!==this[Zr("0x13")]()}[Zr("0x16")](t){this._markerNames.add(t)}[Zr("0x9")](){return Array[Zr("0x23")](this[Zr("0x31")])}[Zr("0x5")](){return this[Zr("0x9")]()[Zr("0x30")]((t=>this[Zr("0x7")].markers[Zr("0x2d")](t)))[Zr("0x3a")]((t=>t))}[Zr("0x13")](){return this[Zr("0x5")]()[0]||null}removeMarkers(){this._model.change((t=>{for(const e of this.getMarkers())t[Zr("0x3")](e)})),this._markerNames.clear()}[Zr("0x3")](t){this._model[Zr("0x1")]((e=>{e[Zr("0x3")](t)})),this._markerNames[Zr("0x36")](t)}[Zr("0x18")](t){const e=Zr("0x35")+this[Zr("0x27")]+":"+this[Zr("0x20")]+":"+this.id+":"+this[Zr("0x12")].id+":"+Yr[Zr("0xc")]();this[Zr("0x16")](e),this[Zr("0x7")][Zr("0x1")]((n=>{n.addMarker(e,{range:t,usingOperation:!0,affectsData:!0})}))}[Zr("0x6")](t){for(const e of this.getRanges())if(e[Zr("0x3c")](t))return!0;return!1}getRanges(){return this[Zr("0x5")]()[Zr("0x30")]((t=>t.getRange()))}[Zr("0x39")](){return this.getRanges().reduce(((t,e)=>[...t,...e[Zr("0x39")]()]),[])}[Zr("0x26")](){var t;return(null===(t=this[Zr("0x13")]())||void 0===t?void 0:t[Zr("0xb")]())||null}[Zr("0x2a")](){const t=this[Zr("0x32")]();if(1!=t[Zr("0x2f")])return null;const e=t[0],n=e[Zr("0x10")][Zr("0x4")],r=e[Zr("0x34")].nodeBefore;return n instanceof s.Element?n!=r?null:n:null}[Zr("0x3b")](){this[Zr("0x17")](this.getRanges(),this.data,this[Zr("0x1f")]),this[Zr("0x2b")]()}[Zr("0x37")](){this._onDiscard(this[Zr("0x32")](),this[Zr("0x19")],this[Zr("0x1f")]),this[Zr("0x2b")]()}[Zr("0x14")](){const t=[];let e=this.head;for(;e;)t[Zr("0x29")](e),e=e[Zr("0xa")];return t}[Zr("0x22")](t,e){const n=er(this[Zr("0x1f")]);Er(n,t,e),jr(n,this.attributes)||(this.attributes=n,this[Zr("0xf")](n))}[Zr("0x8")](t){const e=er(this[Zr("0x1f")]);Kr(e,t),jr(e,this[Zr("0x1f")])||(this.attributes=e,this[Zr("0xf")](this.attributes))}[Zr("0xd")](){return{id:this.id,type:this[Zr("0x20")]?this[Zr("0x27")]+":"+this[Zr("0x20")]:this[Zr("0x27")],authorId:this[Zr("0x12")].id,createdAt:this[Zr("0xe")],hasComments:this.hasComments,data:this[Zr("0x19")],attributes:this[Zr("0x1f")]}}static[Zr("0xc")](){return(0,e.uid)()[Zr("0x1c")](1,5)}}function Qr(t,e,n){const r=t.t;switch(e){case"Track changes":return r("Track changes");case"Accept suggestion":return r("Accept suggestion");case"Discard suggestion":return r("Discard suggestion");case"Accept all suggestions":return r("Accept all suggestions");case"Accept all selected suggestions":return r("Accept all selected suggestions");case"Discard all suggestions":return r("Discard all suggestions");case"Discard all selected suggestions":return r("Discard all selected suggestions");case"*Reset font size*":return r("*Reset font size*");case"*Reset font family*":return r("*Reset font family*");case"*Reset font color*":return r("*Reset font color*");case"*Reset font background color*":return r("*Reset font background color*");case"*Remove image text alternative*":return r("*Remove image text alternative*");case"*Reset image width*":return r("*Reset image width*");case"*Remove link*":return r("*Remove link*");case"*Check item*":return r("*Check item*");case"*Uncheck item*":return r("*Uncheck item*");case"*Remove all formatting*":return r("*Remove all formatting*");case"*Replace table cells*":return r("*Replace table cells*");case"*Merge cells*":return r("*Merge cells*");case"*Split cell:* vertically":return r("*Split cell:* vertically");case"*Split cell:* horizontally":return r("*Split cell:* horizontally");case"*Indent:* %0":return r("*Indent:* %0",n);case"*Outdent:* %0":return r("*Outdent:* %0",n);case"*Change to:* %0":return r("*Change to:* %0",n);case"*Insert:* %0":return r("*Insert:* %0",n);case"*Format:* %0":return r("*Format:* %0",n);case"*Format:* change table properties":return r("*Format:* change table properties");case"*Format:* change table cell properties":return r("*Format:* change table cell properties");case"*Format:* insert into %0":return r("*Format:* insert into %0",n);case"*Format:* remove from %0":return r("*Format:* remove from %0",n);case"*Replace image URL*":return r("*Replace image URL*");case"*Format:* resize table":return r("*Format:* resize table");case"*Format:* set order to reversed":return r("*Format:* set order to reversed");case"*Format:* set order to regular":return r("*Format:* set order to regular");case"*Format:* set start index to %0":return r("*Format:* set start index to %0",n);case"*Change %0 content*":return r("*Change %0 content*",n);case"*Remove:* %0":return r("*Remove:* %0",n);case"*Merge:* %0":return r("*Merge:* %0",n);case"*Split:* %0":return r("*Split:* %0",n);case"*Remove format:* %0":return r("*Remove format:* %0",n);case"*Set font size:* %0":return r("*Set font size:* %0",n);case"*Set font family:* %0":return r("*Set font family:* %0",n);case"*Set format to:* %0":return r("*Set format to:* %0",n);case"*Set font color:* %0":return r("*Set font color:* %0",n);case"*Set font background color:* %0":return r("*Set font background color:* %0",n);case"*Set format:* %0":return r("*Set format:* %0",n);case"*Set image text alternative:* %0":return r("*Set image text alternative:* %0",n);case"*Set image width:* %0":return r("*Set image width:* %0",n);case"*Set link:* %0":return r("*Set link:* %0",n);case"*Set highlight:* %0":return r("*Set highlight:* %0",n);case"*Remove highlight*":return r("*Remove highlight*");case"FORMAT_HIGHLIGHT":return r({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return r({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return r({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return r({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return r({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return r({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return r({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return r({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return r({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return r({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return r({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return r({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return r({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return r({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return r({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return r({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return r({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_DEFAULT":return r({string:"bulleted list (default)",id:"ELEMENT_BULLETED_LIST_DEFAULT"});case"ELEMENT_BULLETED_LIST_CIRCLE":return r({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return r({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return r({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST_DEFAULT":return r({string:"numbered list (default)",id:"ELEMENT_NUMBERED_LIST_DEFAULT"});case"ELEMENT_NUMBERED_LIST":return r({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return r({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return r({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return r({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return r({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return r({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return r({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return r({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return r({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return r({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGNMENT":return r({string:"alignment",id:"FORMAT_ALIGNMENT"});case"FORMAT_ALIGN_TO_LEFT":return r({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return r({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return r({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return r({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return r({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return r({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return r({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return r({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return r({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return r({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return r({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return r({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return r({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return r({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return r({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return r({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return r({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"FORMAT_INDENT":return r({string:"indent",id:"FORMAT_INDENT"});case"FORMAT_LIST_REVERSED":return r({string:"list reversed",id:"FORMAT_LIST_REVERSED"});case"FORMAT_LIST_START":return r({string:"list start",id:"FORMAT_LIST_START"});case"FORMAT_FONT_SIZE":return r({string:"font size",id:"FORMAT_FONT_SIZE"});case"FORMAT_FONT_FAMILY":return r({string:"font family",id:"FORMAT_FONT_FAMILY"});case"FORMAT_FONT_COLOR":return r({string:"font color",id:"FORMAT_FONT_COLOR"});case"FORMAT_FONT_BACKGROUND":return r({string:"font background color",id:"FORMAT_FONT_BACKGROUND"});case"FORMAT_IMAGE_SIZE":return r({string:"image size",id:"FORMAT_IMAGE_SIZE"});case"FORMAT_STYLE":return r({string:"style",id:"FORMAT_STYLE"});case"PENDING_ACTION_SUGGESTION":return r({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return r({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return r({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return r({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return r({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return r({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_TABLE_OF_CONTENTS":return r({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return r({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return r({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return r({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return r({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return r({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return r({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);case"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT":return r({string:"Entering insertion suggestion.",id:"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT":return r({string:"Leaving insertion suggestion.",id:"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT":return r({string:"Entering deletion suggestion.",id:"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT":return r({string:"Leaving deletion suggestion.",id:"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT":return r({string:"Entering formatting suggestion.",id:"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT":return r({string:"Leaving formatting suggestion.",id:"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT"});default:return e}}const Jr=["isEqual","quantity","removeEmptyContainer","push","$text","getDescriptions","remove","_handleRenameSuggestionDescription","getItemLabel","skip","EmptyContainer","nextSibling","_addDescriptionItems","element","REPLACE_TEXT","_handleInsertRemoveSuggestionDescription","match","softBreak","format","elementEnd","*Split:* %0","elementStart","name","*Remove format:* %0","deletion","indexOf","type","normal","pop","Container","data","_handleCustomCallbackDescription","map","add","_handleAttributeSuggestionDescription","registerAttributeLabel","replace","_customCallbacks","item","isObject","join","registerElementLabel","get","end","previousSibling","addContainer","label","_resolveDescriptionItems","key","attribute","_locale","start","removeContainer","isEmpty","ELEMENT_SPACE","subType","function","_itemLabels","*Insert:* %0","getWalker","removeFormat","_schema","addEmptyContainer","$1 $2","text","$textProxy","_attributeLabels","nodeAfter","registerDescriptionCallback","has","set","Object","getFirstRange","length","_itemLabelsCallbacks","insertion","removeObject","*Remove:* %0"];var ti,ei;ti=Jr,ei=486,function(t){for(;--t;)ti.push(ti.shift())}(++ei);const ni=function(t,e){return Jr[t-=0]};class ri{constructor(t,e){this._customCallbacks=[],this._itemLabels=new Map,this[ni("0x38")]=[],this._attributeLabels=new Map,this._schema=t,this[ni("0x20")]=e}[ni("0x41")](t){const e=[],n=new Set,r=new Set;for(let i=0;i<t[ni("0x37")];i++){const o=t[i];if(!o.isInContent)continue;const s=this._handleCustomCallbackDescription(o);if(s){if(null!=o.subType){if(n[ni("0x33")](o[ni("0x25")]))continue;n.add(o.subType)}e[ni("0x3f")](s)}else if(ni("0x1f")!=o[ni("0x8")])ni("0x39")!=o.type&&ni("0x6")!=o[ni("0x8")]||this[ni("0x4b")](e,o,t[i+1]);else{const t=o[ni("0xc")][ni("0x1e")];if(r[ni("0x33")](t))continue;r[ni("0xf")](o.data.key),t==Cc?this[ni("0x43")](e,o):this[ni("0x10")](e,o)}}return this[ni("0x1d")](e)}[ni("0x32")](t){this[ni("0x13")][ni("0x3f")](t)}[ni("0x17")](t,n,r=e.priorities[ni("0x9")]){ni("0x26")==typeof t?(0,e.insertToPriorityArray)(this[ni("0x38")],{matchingCallback:t,label:n,priority:r}):this._itemLabels.set(t,n)}[ni("0x11")](t,e){this[ni("0x30")][ni("0x34")](t,e)}[ni("0x44")](t,e=1){let n;for(const e of this[ni("0x38")])if(e.matchingCallback(t)){n=e[ni("0x1c")];break}return n||(n=this[ni("0x27")][ni("0x18")](t[ni("0x4")])),n?n(e):1!==e?e+" "+t[ni("0x4")]+"s":""+t[ni("0x4")]}[ni("0x48")](t,e){const n=e[ni("0x36")]()[ni("0x29")](),r=ni("0x39")==e[ni("0x8")]?ni("0xf"):"remove";for(const e of n){const i=e.item,o=t[t[ni("0x37")]-1];if(i.is(ni("0x2f")))o&&o[ni("0x8")].indexOf(ni("0xb"))>-1&&t.pop(),o&&"text"==o[ni("0x8")]?o[r]+=i[ni("0xc")]:t[ni("0x3f")]({type:ni("0x2e"),add:ni("0xf")==r?i[ni("0xc")]:"",remove:ni("0x42")==r?i[ni("0xc")]:""});else if(this[ni("0x2b")][ni("0x15")](i)){const s=i;if(o&&o[ni("0x8")][ni("0x7")](ni("0xb"))>-1&&t[ni("0xa")](),"elementEnd"==e[ni("0x8")])continue;o&&o[ni("0x8")]==r+ni("0x35")&&o[ni("0x49")][ni("0x4")]==s[ni("0x4")]?o[ni("0x3d")]++:t[ni("0x3f")]({type:r+ni("0x35"),element:s,quantity:1}),n[ni("0x45")]((t=>!(ni("0x1")==t[ni("0x8")]&&t[ni("0x14")]==i)))}else if(this._schema.checkChild(i,ni("0x40"))||i.is(ni("0x49"),ni("0x4d"))){const n=i;if(ni("0xf")==r&&ni("0x3")==e[ni("0x8")]||"remove"==r&&ni("0x1")==e[ni("0x8")])continue;if(o&&-1==o[ni("0x8")].indexOf("Container")){ni("0x2e")==o.type&&(o[r]+="\n");continue}let s;if(s=ni("0xf")==r?n.nextSibling&&!this[ni("0x2b")][ni("0x15")](n[ni("0x47")])?n.nextSibling:null:n.previousSibling&&!this._schema.isObject(n[ni("0x1a")])?n[ni("0x1a")]:null,n[ni("0x23")]||s&&s[ni("0x23")]){const e=s&&s[ni("0x23")]?s:n;o&&o[ni("0x8")]==r+ni("0x46")&&o.element[ni("0x4")]==e.name?o.quantity++:t[ni("0x3f")]({type:r+ni("0x46"),element:e,quantity:1})}else t[ni("0x3f")]({type:r+"Container",element:n})}}}[ni("0x1d")](t){const e=this._locale,n=[],r=[],i=[];for(const o of t)switch(o[ni("0x8")]){case"text":if(o[ni("0xf")]=o[ni("0xf")][ni("0x12")](/(\S)\u000A+(\S)/g,ni("0x2d")).replace(/\u000A/g,""),o[ni("0x42")]=o[ni("0x42")][ni("0x12")](/(\S)\u000A+(\S)/g,"$1 $2")[ni("0x12")](/\u000A/g,""),""!=o.add&&""!=o[ni("0x42")]){n.push({type:ni("0x12"),content:Qr(e,ni("0x4a"),['"'+o[ni("0x42")]+'"','"'+o[ni("0xf")]+'"'])});continue}if(null!=o[ni("0xf")][ni("0x4c")](/^ +$/)){n[ni("0x3f")]({type:ni("0x39"),content:Qr(e,"*Insert:* %0",Qr(e,"ELEMENT_SPACE",o.add[ni("0x37")]))});continue}if(null!=o[ni("0x42")].match(/^ +$/)){n[ni("0x3f")]({type:"deletion",content:Qr(e,ni("0x3b"),Qr(e,ni("0x24"),o.remove[ni("0x37")]))});continue}if(""!=o[ni("0xf")]){n[ni("0x3f")]({type:"insertion",content:Qr(e,ni("0x28"),'"'+o[ni("0xf")]+'"')});continue}n[ni("0x3f")]({type:"deletion",content:Qr(e,ni("0x3b"),'"'+o[ni("0x42")]+'"')});continue;case ni("0x2c"):case"addObject":n[ni("0x3f")]({type:"insertion",content:Qr(e,ni("0x28"),this[ni("0x44")](o.element,o[ni("0x3d")]))});continue;case ni("0x3e"):case ni("0x3a"):n[ni("0x3f")]({type:ni("0x6"),content:Qr(e,ni("0x3b"),this[ni("0x44")](o[ni("0x49")],o.quantity))});continue;case ni("0x1b"):n[ni("0x3f")]({type:ni("0x39"),content:Qr(e,ni("0x2"),this.getItemLabel(o.element,o[ni("0x3d")]))});continue;case ni("0x22"):n[ni("0x3f")]({type:"deletion",content:Qr(e,"*Merge:* %0",this[ni("0x44")](o[ni("0x49")],o[ni("0x3d")]))});continue;case"addFormat":r.push(o[ni("0x1e")]);continue;case ni("0x2a"):i.push(o[ni("0x1e")]);continue;default:n.push(o)}if(r.length){const t=r[ni("0xe")]((t=>this[ni("0x30")][ni("0x33")](t)?this[ni("0x30")][ni("0x18")](t):t))[ni("0x16")](", ");n[ni("0x3f")]({type:ni("0x0"),content:Qr(this._locale,"*Set format:* %0",t)})}if(i[ni("0x37")]){const t=i.map((t=>this[ni("0x30")][ni("0x33")](t)?this[ni("0x30")][ni("0x18")](t):t)).join(", ");n[ni("0x3f")]({type:ni("0x0"),content:Qr(this[ni("0x20")],ni("0x5"),t)})}return n}[ni("0xd")](t){for(const e of this[ni("0x13")]){const n=e(t);if(n&&"type"in n)return n}}[ni("0x10")](t,e){const n=e.data,r=void 0===n.newValue?"removeFormat":"addFormat";t.push({type:r,key:n.key})}[ni("0x43")](t,e){t[ni("0x3f")]({type:ni("0x0"),content:Qr(this[ni("0x20")],"*Change to:* %0",this[ni("0x44")](e[ni("0x36")]()[ni("0x21")][ni("0x31")],1))})}[ni("0x4b")](t,e,n){if(this[ni("0x48")](t,e),n&&n.getFirstRange()&&!e[ni("0x36")]()[ni("0x19")][ni("0x3c")](n.getFirstRange().start)){const n=t[t.length-1],r=ni("0x39")==e[ni("0x8")]?ni("0xf"):ni("0x42");n&&ni("0x2e")==n[ni("0x8")]&&(n[r]+="\n")}}}const ii=["get","commands","editor","showAIAssistant","enableCommand","plugins"];var oi,si;oi=ii,si=357,function(t){for(;--t;)oi.push(oi.shift())}(++si);const xi=function(t,e){return ii[t-=0]};class ai extends t.Plugin{afterInit(){const t=this[xi("0x5")],e=t[xi("0x2")][xi("0x3")]("TrackChangesEditing");t[xi("0x4")][xi("0x3")]("showAIAssistant")&&e[xi("0x1")](xi("0x0"))}}const ci=["*Format:* %0","alignment","commandParams","FORMAT_ALIGNMENT","right","registerAttributeLabel","FORMAT_JUSTIFY_TEXT","type","TrackChangesEditing","plugins","FORMAT_ALIGN_TO_CENTER","locale","_descriptionFactory","editor","value","FORMAT_ALIGN_TO_RIGHT","format","_enableDefaultAttributesIntegration","get","_registerLegacyDescription"];var li,ui;li=ci,ui=252,function(t){for(;--t;)li.push(li.shift())}(++ui);const di=function(t,e){return ci[t-=0]};class gi extends t.Plugin{afterInit(){const t=this[di("0x1")],e=t[di("0x13")];if(!t[di("0x11")].has("AlignmentEditing"))return;const n=t[di("0x11")][di("0x6")](di("0x10"));n[di("0x5")](di("0x9"),[],[di("0x9")]),n[di("0x0")][di("0xd")](di("0x9"),Qr(e,di("0xb"))),this[di("0x7")]()}[di("0x7")](){const t=this.editor,e=t[di("0x13")];t.plugins[di("0x6")](di("0x10"))[di("0x0")].registerDescriptionCallback((t=>{if("formatBlock"!=t[di("0xf")])return;const{data:n}=t;if(n&&di("0x9")==n.commandName){const t=n[di("0xa")][0][di("0x2")];return{type:di("0x4"),content:Qr(e,di("0x8"),function(t){switch(t){case"left":return Qr(e,"FORMAT_ALIGN_TO_LEFT");case di("0xc"):return Qr(e,di("0x3"));case"center":return Qr(e,di("0x12"));case"justify":return Qr(e,di("0xe"))}}(t))}}}))}}const fi=["FORMAT_SUPERSCRIPT","commandName","code","FORMAT_","subscript","*Format:* %0","format","TrackChangesEditing","locale","type","strikethrough","*Remove format:* %0","_registerLegacyDescription","UnderlineEditing","FORMAT_UNDERLINE","slice","BoldEditing","italic","has","toLowerCase","FORMAT_BOLD","registerAttributeLabel","get","toUpperCase","plugins","afterInit","FORMAT_SUBSCRIPT","editor","superscript"];var hi,mi;hi=fi,mi=168,function(t){for(;--t;)hi.push(hi.shift())}(++mi);const bi=function(t,e){return fi[t-=0]},pi=[bi("0x16"),"ItalicEditing",bi("0x13"),"CodeEditing","StrikethroughEditing","SubscriptEditing","SuperscriptEditing"];class Ei extends t.Plugin{[bi("0x2")](){const t=this[bi("0x4")],e=t.plugins.get("TrackChangesEditing"),n=t[bi("0xe")];for(const r of pi){if(!t[bi("0x1")][bi("0x18")](r))continue;const i=r[bi("0x15")](0,-7)[bi("0x19")](),o=bi("0x9")+i[bi("0x0")]();e._enableDefaultAttributesIntegration(i,[i]),e._descriptionFactory[bi("0x1b")](i,Qr(n,o))}this[bi("0x12")]()}[bi("0x12")](){const t=this[bi("0x4")],e=t[bi("0xe")],n=t[bi("0x1")][bi("0x1c")](bi("0xd"));function r(t,r){n._descriptionFactory.registerDescriptionCallback((n=>{if("formatInline"!=n[bi("0xf")])return;const{data:i}=n;return i&&i[bi("0x7")]===t?i.commandParams[0].forceValue?{type:bi("0xc"),content:Qr(e,bi("0xb"),r)}:{type:bi("0xc"),content:Qr(e,bi("0x11"),r)}:void 0}))}r("bold",Qr(e,bi("0x1a"))),r(bi("0x17"),Qr(e,"FORMAT_ITALIC")),r("underline",Qr(e,bi("0x14"))),r(bi("0x8"),Qr(e,"FORMAT_CODE")),r(bi("0x10"),Qr(e,"FORMAT_STRIKETHROUGH")),r(bi("0xa"),Qr(e,bi("0x3"))),r(bi("0x5"),Qr(e,bi("0x6")))}}const _i=["filter","value","blockQuote","_descriptionFactory","*Set format:* %0","commands","commandName","ELEMENT_BLOCK_QUOTE","get","editor","afterInit","change","model","forceValue","checkChild","*Remove format:* %0","commandParams","getSelectedBlocks","parent","registerDescriptionCallback","enableCommand","$root","BlockQuoteEditing","plugins","markBlockFormat","from","format","name"];var Ti,yi;Ti=_i,yi=130,function(t){for(;--t;)Ti.push(Ti.shift())}(++yi);const Ci=function(t,e){return _i[t-=0]};class Ai extends t.Plugin{[Ci("0x14")](){const t=this[Ci("0x13")],e=t.locale;if(!t.plugins.has(Ci("0x4")))return;const n=t[Ci("0x5")].get("TrackChangesEditing"),r=this[Ci("0x13")][Ci("0xf")][Ci("0x12")](Ci("0xc"));n[Ci("0x2")]("blockQuote",((e,i={})=>{const o=this[Ci("0x13")][Ci("0x16")].document.selection,s=i&&void 0!==i[Ci("0x17")]?i[Ci("0x17")]:!r[Ci("0xb")];let x=[];if(s){const e=Array.from(o[Ci("0x1b")]())[Ci("0xa")]((t=>ki(t)||function(t,e){const n=e[Ci("0x18")](t[Ci("0x0")],Ci("0xc")),r=e[Ci("0x18")]([Ci("0x3"),"blockQuote"],t);return n&&r}(t,this[Ci("0x13")][Ci("0x16")].schema)));x=S(e,t.model)}else{const e=Array[Ci("0x7")](o.getSelectedBlocks()).filter((t=>ki(t)));x=S(e,t[Ci("0x16")])}t[Ci("0x16")][Ci("0x15")]((()=>{for(const t of x)n[Ci("0x6")](t,{commandName:"blockQuote",commandParams:[{forceValue:s}]})}))})),n[Ci("0xd")][Ci("0x1")]((t=>{const{data:n}=t;if(n&&Ci("0xc")==n[Ci("0x10")]){const t=Qr(e,Ci("0x11"));return n[Ci("0x1a")][0].forceValue?{type:"format",content:Qr(e,Ci("0xe"),t)}:{type:Ci("0x8"),content:Qr(e,Ci("0x19"),t)}}}))}}function ki(t){return Ci("0xc")==t.parent[Ci("0x9")]}const Ii=["changeCaseTitle","editor","plugins","CaseChange","changeCaseUpper","get","TrackChangesEditing","enableCommand","afterInit","has"];var Ri,Si;Ri=Ii,Si=277,function(t){for(;--t;)Ri.push(Ri.shift())}(++Si);const vi=function(t,e){return Ii[t-=0]};class Ni extends t.Plugin{[vi("0x1")](){const t=this[vi("0x4")];t[vi("0x5")][vi("0x2")](vi("0x6"))&&(t[vi("0x5")].get(vi("0x9")).enableCommand(vi("0x7")),t[vi("0x5")][vi("0x8")](vi("0x9"))[vi("0x0")]("changeCaseLower"),t[vi("0x5")].get(vi("0x9"))[vi("0x0")](vi("0x3")))}}const Li=["TrackChangesEditing","commands","plugins","afterInit","get"];var Mi,wi;Mi=Li,wi=418,function(t){for(;--t;)Mi.push(Mi.shift())}(++wi);const Oi=function(t,e){return Li[t-=0]};class Fi extends t.Plugin{[Oi("0x0")](){const t=this.editor;t[Oi("0x3")][Oi("0x1")]("ckbox")&&t[Oi("0x4")][Oi("0x1")](Oi("0x2")).enableCommand("ckbox")}}const Di=["enableCommand","name","_descriptionFactory","outdentCodeBlock","filter","forceValue","codeBlock","TrackChangesEditing","from","language","schema","blockName","languages","locale","change","indentCodeBlock","type","find","rootElement","plugins","selection","get","model","afterInit","getSelectedBlocks","commands","ELEMENT_CODE_BLOCK","has","commandName","label","checkChild","*Set format:* %0","commandParams","document","isLimit","parent","format","config","markBlockFormat","registerDescriptionCallback"];var Pi,Bi;Pi=Di,Bi=213,function(t){for(;--t;)Pi.push(Pi.shift())}(++Bi);const Ui=function(t,e){return Di[t-=0]};class ji extends t.Plugin{[Ui("0xa")](){const t=this.editor;if(!t.plugins[Ui("0xe")]("CodeBlock"))return;const e=t[Ui("0x6")][Ui("0x8")](Ui("0x22")),n=t[Ui("0x0")],r=t[Ui("0x18")][Ui("0x8")](Ui("0x21"))[Ui("0x27")],i=t[Ui("0xc")][Ui("0x8")](Ui("0x21"));e[Ui("0x1b")](Ui("0x2")),e[Ui("0x1b")](Ui("0x1e")),e[Ui("0x1b")]("codeBlock",((n,o={})=>{const s=t[Ui("0x9")],x=t[Ui("0x9")][Ui("0x14")][Ui("0x7")],a=o&&void 0!==o[Ui("0x20")]?o[Ui("0x20")]:!i.value;let c;o[Ui("0x24")]||(o.language=r[0][Ui("0x24")]),c=a?Array[Ui("0x23")](x[Ui("0xb")]())[Ui("0x1f")]((t=>{return Gi(t)||(e=t,n=s[Ui("0x25")],!e.is(Ui("0x5"))&&!n[Ui("0x15")](e)&&n[Ui("0x11")](e[Ui("0x16")],Ui("0x21")));var e,n})):Array[Ui("0x23")](x[Ui("0xb")]())[Ui("0x1f")]((t=>Gi(t)));const l=S(c,s);s[Ui("0x1")]((()=>{for(const t of l)e[Ui("0x19")](t,{commandName:Ui("0x21"),commandParams:[{...o,forceValue:a}],formatGroupId:Ui("0x26")})}))})),e[Ui("0x1d")].registerElementLabel(Ui("0x21"),(t=>Qr(n,Ui("0xd"),t))),e[Ui("0x1d")][Ui("0x1a")]((t=>{if("formatBlock"!=t[Ui("0x3")])return;const e=n.t,{data:i}=t;if(!i||Ui("0x21")!=i[Ui("0xf")])return;const o=i[Ui("0x13")][0][Ui("0x24")],s=e(r[Ui("0x4")]((t=>t[Ui("0x24")]===o))[Ui("0x10")]).toLowerCase();return i[Ui("0x13")][0][Ui("0x20")]?{type:Ui("0x17"),content:Qr(n,Ui("0x12"),Qr(n,Ui("0xd"),1)+" ("+s+")")}:{type:Ui("0x17"),content:Qr(n,"*Remove format:* %0",Qr(n,"ELEMENT_CODE_BLOCK",1))}}))}}function Gi(t){return"codeBlock"==t[Ui("0x1c")]}const Vi=["get","addCommentThread","editor","enableCommand","afterInit","has","plugins"];var Hi,zi;Hi=Vi,zi=317,function(t){for(;--t;)Hi.push(Hi.shift())}(++zi);const Wi=function(t,e){return Vi[t-=0]};class Ki extends t.Plugin{[Wi("0x2")](){const t=this[Wi("0x0")];t[Wi("0x4")][Wi("0x3")]("CommentsEditing")&&t[Wi("0x4")][Wi("0x5")]("TrackChangesEditing")[Wi("0x1")](Wi("0x6"))}}var qi=n(500);const Xi=["ck-suggestion-marker-","nextSibling","model","type","markerRange","getWalker","elementEnd","listItem","consumable","isContent","mapper","activeMarkers","ck-suggestion-marker--active","addClass","getAttribute","test","bindElementToMarker","isLimit","item","writer","element","markerName","includes","schema","previousPosition","getCustomProperty","toViewElement","isAtEnd","span","getItems","addHighlight","plugins"];var $i,Zi;$i=Xi,Zi=388,function(t){for(;--t;)$i.push($i.shift())}(++Zi);const Yi=function(t,e){return Xi[t-=0]};function Qi(t,e,n){const r=[];for(const i of e[Yi("0x19")]())i.hasAttribute(t)&&r.push(n.createRangeOn(i));return r}function Ji(t,e,{showActiveMarker:n=!0}={}){const r=t[Yi("0x1b")].get("TrackChangesEditing");return(i,o,s)=>{if(!s[Yi("0x4")][Yi("0xb")](o[Yi("0x0")],i.name))return;const x=o[Yi("0x0")][Yi("0x1")](),a=o[Yi("0x0")].start,c=t[Yi("0x1e")][Yi("0x13")];let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[Yi("0xe")];d=d||c[Yi("0x5")](e);const n=s[Yi("0x6")][Yi("0x16")](e);if(n&&n[Yi("0x15")](Yi("0x1a")))return;Yi("0x2")==t[Yi("0x1f")]&&c.isBlock(e)&&!c[Yi("0xd")](e)&&(e[Yi("0x1d")]||a[Yi("0x17")]?l&&l.parent==e||(l=e,f(t.previousPosition),g=!0):u=u||t[Yi("0x14")])}function f(t){const i=s[Yi("0xf")].createUIElement(Yi("0x18"),{class:Yi("0x1c")+e}),x=s[Yi("0x6")].toViewPosition(t);n&&r[Yi("0x7")][Yi("0x12")](o.markerName)&&s[Yi("0xf")][Yi("0x9")](Yi("0x8"),i),s.writer.insert(x,i),s.mapper[Yi("0xc")](i,o[Yi("0x11")])}d||g||!u||f(u)}}const to=["getFirstRange","init","markerName","createRange","high","addMarker:suggestion:deletion","editing","rootName","selection","model","enableCommand","forward","$graveyard","writer","document","editor","mapper","deleteForward","TrackChangesEditing","merge","modifySelection","end","unlock","data","removeMarker:suggestion:deletion","setSelection","unit","bind","buffer","fromRange","isCollapsed","unbindElementFromMarkerName","downcastDispatcher","markerNameToElements","start","plugins","remove","options","createSelection"];var eo,no;eo=to,no=253,function(t){for(;--t;)eo.push(eo.shift())}(++no);const ro=function(t,e){return to[t-=0]};class io extends t.Plugin{static get requires(){return[qi.Delete]}[ro("0x15")](){const t=this[ro("0x23")],e=t[ro("0x10")].get(ro("0x26"));e[ro("0x1e")]("delete");const n=t.commands.get("deleteForward");e.enableCommand(ro("0x25"),((e,r={})=>{const i=t[ro("0x1d")][ro("0x13")](t[ro("0x1d")][ro("0x22")][ro("0x1c")]);i[ro("0xb")]&&t[ro("0x1d")][ro("0x1")](i,{direction:ro("0x1f"),unit:r[ro("0x7")]});const o=i[ro("0x14")](),x=s.LiveRange[ro("0xa")](o);let a;e(r),a=ro("0x20")==x.root[ro("0x1b")]?t.model[ro("0x17")](o[ro("0xf")]):t[ro("0x1d")][ro("0x17")](x[ro("0xf")],x.end),x.detach(),t[ro("0x1d")].enqueueChange(n[ro("0x9")].batch,(t=>{n[ro("0x9")].lock(),t[ro("0x6")](t[ro("0x17")](a[ro("0x2")])),n[ro("0x9")][ro("0x3")]()}))})),t.editing[ro("0xd")].on(ro("0x19"),Ji(t,"merge"),{priority:"high"}),t[ro("0x4")][ro("0xd")].on("addMarker:suggestion:deletion",((e,n,r)=>{r[ro("0x12")].showSuggestionHighlights&&Ji(t,ro("0x0"),{showActiveMarker:!1})[ro("0x8")](this)(e,n,r)}),{priority:ro("0x18")}),t[ro("0x1a")][ro("0xd")].on(ro("0x5"),((t,e,n)=>{const r=n[ro("0x24")][ro("0xe")](e[ro("0x16")]);if(r)for(const t of r)t.is("uiElement")&&(n[ro("0x24")][ro("0xc")](t,e.markerName),n[ro("0x21")][ro("0x11")](t))}),{priority:ro("0x18")})}}const oo=["meta","push","_enableDefaultAttributesIntegration","listItemIdFixer","*Check item*","next","parent","trackChangesCommand","type","listIndent","listStyle","splitListItemAfter","*Merge:* %0","commands","config","_supportLegacySuggestions","createRange","plugins","assureChains","setAttribute","bulletedList","from","noTrackChangesFixer","isNextTo","default","*Format:* remove from %0","refresh","*Indent:* %0","commandName","ListEditing","registerDescriptionCallback","model","registerCustomCallback","numbered","attributeKey","*Split:* list item","toUpperCase","ELEMENT_LIST_ITEM","removeMarker","*Remove format:* %0","_registerLegacyDescription","every","get","registerAttributeLabel","indentList","listReversed","attributes","forceValue","document","todo","todoList","newValue","has","getFirstMarker","getFirstRange","nextSibling","*Merge:* list item","groupId","numberedList","batch","*Format:* insert into %0","key","bulleted","ELEMENT_BULLETED_LIST","_descriptionFactory","formatBlock","todoListCheck","range","length","splitListItemBefore","previousSibling","filter","attribute","data","format","containsItem","change","isLocal","suggestion","accept","outdentList","TrackChangesEditing","commandParams","find","*Uncheck item*","includes","listStart","todoListChecked","getSuggestions","ELEMENT_TODO_LIST","*Outdent:* %0","fromRange","listType","listItemId","differ","value","isUndo","_getAttributeKey","*Change to:* %0","end","ELEMENT_","ELEMENT_NUMBERED_LIST","multipleBlocks","head","editor","setSelection","list.multiBlock","locale","map","registerPostFixer","getChanges","start","schema","oldValue","mergeListItemBackward","nodeAfter","TodoListEditing","getAttribute","registerElementLabel","checkTodoList","createPositionAt","detach","_findSuggestions"];var so,xo;so=oo,xo=125,function(t){for(;--t;)so.push(so.shift())}(++xo);const ao=function(t,e){return oo[t-=0]};class co extends t.Plugin{afterInit(){const t=this.editor;if(!t[ao("0xf")][ao("0x32")](ao("0x1b")))return;const e=t[ao("0x69")],n=t[ao("0xf")][ao("0x28")](ao("0x4f")),r=t[ao("0xf")].has(ao("0x72")),i=!!t[ao("0xc")][ao("0x28")](ao("0x68"));function o(t){return{type:ao("0x48"),content:""+Qr(e,"*Set format:* %0",t)}}function s(t){return{type:ao("0x48"),content:""+Qr(e,ao("0x25"),t)}}n[ao("0x0")](ao("0x38"),[],[ao("0x5b"),ao("0x5a"),ao("0x7")]),n[ao("0x0")](ao("0x12")),n[ao("0x0")](ao("0x2a")),n._enableDefaultAttributesIntegration(ao("0x4e")),n[ao("0x0")](ao("0x9")),n[ao("0x0")](ao("0x43")),i&&(n[ao("0x0")]("mergeListItemBackward"),n[ao("0x0")]("mergeListItemForward")),r&&(n[ao("0x0")](ao("0x30")),n[ao("0x0")](ao("0x75"),[],["todoListChecked"]),n[ao("0x3e")][ao("0x1c")]((t=>{const{data:n}=t;if(n&&"todoListChecked"==n[ao("0x3b")])return{type:ao("0x48"),content:n[ao("0x31")]?Qr(e,ao("0x2")):Qr(e,ao("0x52"))}})),this[ao("0x66")][ao("0x1d")].document[ao("0x6b")]((t=>{if(t[ao("0x39")][ao("0x5e")])return!1;let e=!1;const r=n[ao("0x56")]({skipNotAttached:!0})[ao("0x45")]((t=>ao("0x55")===n._getAttributeKey(t)));for(const i of r)ao("0x2f")!=i[ao("0x34")]()[ao("0x6d")][ao("0x71")][ao("0x73")](ao("0x5a"))&&(n[ao("0x78")](i[ao("0x34")](),"attribute")[ao("0x51")]((t=>ao("0x5a")===n._getAttributeKey(t[ao("0x4c")])))||(t.removeMarker(i[ao("0x33")]()),e=!0));return e}))),n._descriptionFactory[ao("0x29")]("listIndent",Qr(e,"FORMAT_INDENT"));const x={type:"format",content:""};n[ao("0x3e")][ao("0x1c")]((t=>{const{data:n}=t;if(!n||ao("0x5a")!=n[ao("0x3b")])return;let r=t[ao("0x65")];for(;r;){if(r[ao("0x47")]&&(ao("0x8")==r[ao("0x47")].key&&(r.data[ao("0x31")]&&ao("0x16")!=r[ao("0x47")][ao("0x31")]||ao("0x16")!=r.data[ao("0x6f")]&&!n[ao("0x31")])||!i&&r[ao("0x47")][ao("0x3b")]==Cc))return x;r=r[ao("0x3")]}if(null==n[ao("0x31")])switch(n[ao("0x6f")]){case ao("0x3c"):return s(Qr(e,ao("0x3d")));case ao("0x1f"):return s(Qr(e,ao("0x63")));case ao("0x2f"):return s(Qr(e,ao("0x57")))}switch(n.newValue){case"bulleted":return o(Qr(e,ao("0x3d")));case ao("0x1f"):return o(Qr(e,ao("0x63")));case ao("0x2f"):return o(Qr(e,ao("0x57")))}})),n._descriptionFactory[ao("0x1c")]((t=>{const{data:e}=t;if(e&&"listIndent"==e[ao("0x3b")])return null==e[ao("0x31")]||null==e.oldValue&&0==e[ao("0x31")]?x:void 0})),n[ao("0x3e")][ao("0x1c")]((t=>{if(ao("0x46")!=t.type)return;const{data:n}=t;if(!n||ao("0x5b")!=n[ao("0x3b")])return;const r=lo(t);return r?ao("0x31")==r?{type:ao("0x48"),content:Qr(e,ao("0x36"))}:ao("0x6f")==r?{type:ao("0x48"),content:Qr(e,ao("0x21"))}:x:x})),t.model.document.registerPostFixer((t=>this.listItemIdFixer(t))),t[ao("0x1d")].document.registerPostFixer((t=>this[ao("0x14")](t))),t[ao("0x1d")][ao("0x2e")][ao("0x6b")]((t=>this[ao("0x10")](t))),this[ao("0xd")]()}[ao("0x1")](t){if(t[ao("0x39")][ao("0x5e")]||!t[ao("0x39")][ao("0x4b")])return!1;let e=!1;const n=this[ao("0x66")][ao("0xf")][ao("0x28")](ao("0x4f"))[ao("0x56")]({skipNotAttached:!0}).filter((t=>t[ao("0x47")]&&"listItemId"==t[ao("0x47")][ao("0x3b")]))[ao("0x45")]((t=>t.data.newValue&&t[ao("0x47")][ao("0x6f")]));for(const r of n)lo(r)||(t.removeMarker(r[ao("0x33")]()),e=!0);return e}[ao("0x14")](t){if(t[ao("0x39")].isUndo||!t.batch[ao("0x4b")])return!1;const e=this[ao("0x66")][ao("0xf")].get(ao("0x4f"));if(e[ao("0x5")][ao("0x5d")])return!1;let n=!1;const r=[ao("0x5a"),ao("0x8"),"listItemId",ao("0x7"),ao("0x54"),ao("0x2b"),ao("0x40")],i=this[ao("0x66")][ao("0x1d")][ao("0x2e")][ao("0x5c")][ao("0x6c")]()[ao("0x45")]((t=>ao("0x46")==t[ao("0x6")]))[ao("0x45")]((t=>r[ao("0x53")](t[ao("0x20")])));if(0==i[ao("0x42")])return n;for(const o of i){const i=e._findSuggestions(o[ao("0x41")],ao("0x46"))[ao("0x45")]((t=>!t[ao("0x79")][ao("0x15")])).map((t=>t.suggestion))[ao("0x45")]((t=>{const n=e[ao("0x5f")](t);return r[ao("0x53")](n)}));if(i[ao("0x42")]){for(const e of i)t[ao("0x24")](e[ao("0x33")]());n=!0}}return n}[ao("0x10")](t){if(t.batch.isUndo||!t[ao("0x39")][ao("0x4b")])return!1;const e=this[ao("0x66")][ao("0xf")].get("TrackChangesEditing");let n=!1;const r=["listType",ao("0x8"),ao("0x5b"),ao("0x7"),ao("0x54"),ao("0x2b"),"todoListCheck"];for(const t of e[ao("0x56")]({skipNotAttached:!0})){const i=e[ao("0x78")](t[ao("0x34")](),"attribute")[ao("0x6a")]((t=>t[ao("0x4c")]))[ao("0x45")]((t=>t[ao("0x47")]&&r.includes(t[ao("0x47")].key)));if(!i[ao("0x42")])continue;const s=i[0][ao("0x65")][ao("0x2c")].groupId;if(!i[ao("0x27")]((t=>t[ao("0x2c")][ao("0x37")]===s)))for(const t of i)o(t,s)&&(n=!0)}return n;function i(t,n){for(const r of e[ao("0x56")]({skipNotAttached:!0}).filter((e=>"attribute"==e[ao("0x6")]&&e[ao("0x2c")].groupId==t)))r.setAttribute("groupId",n)}function o(t,e){let n=t.head,r=!1;for(;n;)n.attributes[ao("0x37")]!=e&&(i(n[ao("0x2c")][ao("0x37")],e),n[ao("0x11")]("groupId",e),r=!0),n=n[ao("0x3")];return r}}_supportLegacySuggestions(){const t=this[ao("0x66")],e=t[ao("0x69")],n=t[ao("0xf")][ao("0x28")](ao("0x4f"));this[ao("0x26")](),n._suggestionFactory[ao("0x1e")](ao("0x3f"),"documentList",ao("0x4d"),(function(e,n){const r=[];for(let n of e)n[ao("0x6d")].nodeAfter===n[ao("0x61")][ao("0x4")]&&(n=t.model[ao("0xe")](t[ao("0x1d")][ao("0x76")](n[ao("0x6d")][ao("0x71")],0))),r[ao("0x7a")](n);t.model[ao("0x4a")]((e=>{const i=t[ao("0x1d")][ao("0x2e")].selection,o=Array[ao("0x13")](i.getRanges())[ao("0x6a")]((t=>s.LiveRange[ao("0x59")](t)));e[ao("0x67")](r),t.commands[ao("0x28")](n[ao("0x1a")])[ao("0x18")](),n.commandParams[ao("0x7a")]({forceDefaultExecution:!0}),t.execute(n[ao("0x1a")],...n.commandParams),e.setSelection(o);for(const t of o)t[ao("0x77")]()}))})),n[ao("0x3e")][ao("0x74")]((function(e){const n=!t[ao("0x1d")][ao("0x6e")].isObject(e),r=e[ao("0x44")],i=e[ao("0x35")],o=e[ao("0x73")](ao("0x5b")),s=!r||r.getAttribute(ao("0x5b"))!==o,x=!i||i[ao("0x73")](ao("0x5b"))!==o;return n&&Boolean(o)&&s&&x}),(t=>Qr(e,ao("0x23"),t)))}[ao("0x26")](){const t=this.editor,e=t[ao("0x69")];function n(e){const n=t[ao("0xb")].get("bulletedList")[ao("0x5d")],r=t[ao("0xb")][ao("0x28")](ao("0x38"))[ao("0x5d")];return"numberedList"===e?n:r}t[ao("0xf")][ao("0x28")]("TrackChangesEditing")._descriptionFactory[ao("0x1c")]((function(r){if(ao("0x3f")!=r[ao("0x6")])return;const{data:i}=r;if(!i)return;let o,s,x,a;switch(i.commandName){case ao("0x12"):x=i[ao("0x50")][0].forceValue,a=n(i[ao("0x1a")]),o=ao(x?"0x3a":"0x17"),!a&&t[ao("0xc")][ao("0x28")]("list.multiBlock")||(o=ao("0x60")),s={type:ao("0x48"),content:Qr(e,o,Qr(e,ao("0x3d")))};break;case ao("0x38"):x=i[ao("0x50")][0][ao("0x2d")],a=n(i[ao("0x1a")]),o=ao(x?"0x3a":"0x17"),!a&&t[ao("0xc")][ao("0x28")]("list.multiBlock")||(o=ao("0x60")),s={type:ao("0x48"),content:Qr(e,o,Qr(e,"ELEMENT_NUMBERED_LIST"))};break;case ao("0x2a"):o=ao("0x19"),s={type:ao("0x48"),content:Qr(e,o,Qr(e,ao("0x23")))};break;case ao("0x4e"):o=function(t){const e=t[ao("0x34")]();let n=e[ao("0x6d")].nodeAfter;for(;n&&e[ao("0x49")](n);){if(n[ao("0x73")](ao("0x7"))>0)return!1;n=n[ao("0x35")]}return!0}(r)?Qr(e,ao("0x17"),Qr(e,(c=r,ao("0x62")+c.getFirstRange()[ao("0x6d")][ao("0x71")][ao("0x73")](ao("0x5a"))[ao("0x22")]()+"_LIST"))):Qr(e,ao("0x58"),Qr(e,"ELEMENT_LIST_ITEM")),s={type:ao("0x48"),content:o};break;case ao("0x70"):case"mergeListItemForward":!1===i[ao("0x64")]&&(o=ao("0xa"),s={type:"deletion",content:Qr(e,o,Qr(e,"ELEMENT_LIST_ITEM"))})}var c;return s}))}}function lo(t){let e=t[ao("0x34")]()[ao("0x6d")].nodeAfter.previousSibling;for(;e;){const n=e[ao("0x73")](ao("0x5b"));if(!n)return!1;if(n==t.data.newValue)return ao("0x31");if(n==t[ao("0x47")][ao("0x6f")])return ao("0x6f");e=e[ao("0x44")]}return!1}const uo=["toUpperCase","filter","FORMAT_LIST_REVERSED","newValue","styles","_LIST_","document","_descriptionFactory","model","find","lower-roman","_getAttributeKey","getFirstMarker","head","locale","listStart","key","replace","getAttribute","numbered","plugins","batch","startIndex","suggestion","format","start","getFirstRange","bind","*Remove format:* %0","registerPostFixer","decimal-leading-zero","FORMAT_LIST_START","disc","type","data","ListPropertiesEditing","oldValue","has","get","_findSuggestions","list.properties","listReversed","square","handleDescriptions","next","ELEMENT_","config","*Format:* set order to regular","reversed","lower-latin","*Format:* set start index to %0","registerAttributeLabel","decimal","registerDescriptionCallback","editor","nodeAfter","includes","afterInit","bulleted","_enableDefaultAttributesIntegration","*Set format:* %0","TrackChangesEditing","removeMarker","*Format:* set order to reversed","attribute","default","commandParams","_getTranslationKeyForListStyle","getSuggestions","listType","commandName","listStyle"];var go,fo;go=uo,fo=370,function(t){for(;--t;)go.push(go.shift())}(++fo);const ho=function(t,e){return uo[t-=0]};class mo extends t.Plugin{[ho("0x2f")](){if(!this[ho("0x2c")][ho("0xa")][ho("0x1b")](ho("0x19")))return;const t=this[ho("0x2c")][ho("0x24")][ho("0x1c")](ho("0x1e")),e=this[ho("0x2c")][ho("0xa")][ho("0x1c")]("TrackChangesEditing");t[ho("0x42")]&&e._enableDefaultAttributesIntegration(ho("0x3d"),[],[ho("0x3d")]),t[ho("0x26")]&&e[ho("0x31")]("listReversed",[],[ho("0x1f")]),t[ho("0xc")]&&e._enableDefaultAttributesIntegration("listStart",[],[ho("0x5")]);const n={type:"format",content:""};e[ho("0x45")][ho("0x2b")](this[ho("0x21")][ho("0x11")](this));const r=this[ho("0x2c")].locale;e[ho("0x45")].registerAttributeLabel("listReversed",Qr(r,ho("0x40"))),e._descriptionFactory[ho("0x2b")]((t=>{const{data:e}=t;if(e&&ho("0x1f")==e.key)return null==e[ho("0x41")]||0==e[ho("0x41")]&&null==e[ho("0x1a")]?n:void 0})),e._descriptionFactory[ho("0x29")](ho("0x5"),Qr(r,ho("0x15"))),e[ho("0x45")][ho("0x2b")]((t=>{const{data:e}=t;if(e&&ho("0x5")==e[ho("0x6")])return null==e[ho("0x41")]||1==e[ho("0x41")]&&null==e.oldValue?n:void 0})),this[ho("0x2c")][ho("0x46")][ho("0x44")][ho("0x13")]((t=>{if(t[ho("0xb")].isUndo)return!1;let n=!1;const r=e[ho("0x3a")]({skipNotAttached:!0})[ho("0x3f")]((t=>{const n=e[ho("0x1")](t);return"listStart"==n||ho("0x1f")==n}));for(const i of r)ho("0x9")!=i.getFirstRange()[ho("0xf")][ho("0x2d")][ho("0x8")](ho("0x3b"))&&(e[ho("0x1d")](i[ho("0x10")](),ho("0x36"))[ho("0x47")]((t=>ho("0x3b")==e[ho("0x1")](t[ho("0xd")])))||(t[ho("0x34")](i[ho("0x2")]()),n=!0));return n})),this._registerLegacyDescription()}[ho("0x21")](t){const e=this[ho("0x2c")].locale,{data:n}=t,r={type:ho("0xe"),content:""};if(!n||ho("0x3d")!=n[ho("0x6")])return;if(!n[ho("0x1a")])return"default"==n.newValue?r:{type:"format",content:""+Qr(e,ho("0x32"),Qr(e,this._getTranslationKeyForListStyle(n[ho("0x41")])))};if(!n[ho("0x41")]){if(ho("0x37")==n[ho("0x1a")])return r;let i=t[ho("0x3")];for(;i;){if(i[ho("0x18")]&&"listType"==i[ho("0x18")][ho("0x6")]&&i.data.newValue)return r;i=i[ho("0x22")]}return{type:"format",content:""+Qr(e,ho("0x12"),Qr(e,this[ho("0x39")](n[ho("0x1a")])))}}if(ho("0x37")!=n[ho("0x41")])return{type:ho("0xe"),content:""+Qr(e,ho("0x32"),Qr(e,this[ho("0x39")](n.newValue)))};let i=t[ho("0x3")];for(;i;){if(i[ho("0x18")]&&"listType"==i[ho("0x18")][ho("0x6")]&&i.data[ho("0x41")]&&i[ho("0x18")][ho("0x1a")])return r;i=i[ho("0x22")]}const o=t[ho("0x10")]().start[ho("0x2d")][ho("0x8")]("listType");return{type:ho("0xe"),content:Qr(e,"*Set format:* %0",Qr(e,ho("0x23")+o[ho("0x3e")]()+"_LIST_DEFAULT"))}}_registerLegacyDescription(){const t=this[ho("0x2c")],e=t[ho("0x4")];t.plugins[ho("0x1c")](ho("0x33"))[ho("0x45")][ho("0x2b")]((t=>{if("formatBlock"!=t.type)return;const{data:n}=t;if(!n)return;let r,i;switch(n[ho("0x3c")]){case ho("0x3d"):r="*Change to:* %0",i={type:"format",content:Qr(e,r,Qr(e,this._getTranslationKeyForListStyle(n.commandParams[0][ho("0x17")])))};break;case ho("0x1f"):r=n[ho("0x38")][0][ho("0x26")]?ho("0x35"):ho("0x25"),i={type:ho("0xe"),content:Qr(e,r)};break;case"listStart":r=ho("0x28"),i={type:ho("0xe"),content:Qr(e,r,n[ho("0x38")][0][ho("0xc")])}}return i}))}[ho("0x39")](t){return ho("0x23")+(e=t,bo[ho("0x2e")](e)?ho("0x30"):po.includes(e)?ho("0x9"):null)[ho("0x3e")]()+ho("0x43")+t[ho("0x3e")]()[ho("0x7")](/-/g,"_");var e}}const bo=[ho("0x16"),"circle",ho("0x20")],po=[ho("0x2a"),ho("0x14"),ho("0x0"),"upper-roman",ho("0x27"),"upper-latin"];var Eo=n(976);const _o=["markerName","markInsertion","createRange","data","ck-suggestion-marker-split","writer","remove","get","init","requires","plugins","parent","model","hasClass","split","fire","enter","change","removeMarker:suggestion:insertion","setSelection","TrackChangesEditing","commands","getFirstRange","mapper","detach","downcastDispatcher","bind","high","unbindElementFromMarkerName","options","editing","enterBlock","addMarker:suggestion:insertion","editor","createPositionAt","getFirstPosition","end"];var To,yo;To=_o,yo=154,function(t){for(;--t;)To.push(To.shift())}(++yo);const Co=function(t,e){return _o[t-=0]};class Ao extends t.Plugin{static get[Co("0x3")](){return[Eo.Enter]}[Co("0x2")](){const t=this[Co("0x1b")],e=t[Co("0x4")][Co("0x1")](Co("0xe")),n=t[Co("0xf")].get("enter");e.enableCommand(Co("0xa"),(()=>{t[Co("0x6")][Co("0xb")]((r=>{const i=t[Co("0x6")].document.selection,o=i[Co("0x1d")](),x=s.LiveRange.fromRange(i[Co("0x10")]());if(n[Co("0x19")](r)){const n=t[Co("0x6")][Co("0x1c")](o[Co("0x5")].nextSibling,0),i=r[Co("0x21")](o,n);e[Co("0x20")](i)}else r[Co("0xd")](r[Co("0x21")](x[Co("0x1e")]));x[Co("0x12")](),n[Co("0x9")]("afterExecute",{writer:r})}))})),t[Co("0x18")][Co("0x13")].on(Co("0x1a"),Ji(t,Co("0x8")),{priority:Co("0x15")}),t.editing[Co("0x13")].on(Co("0xc"),((t,e,n)=>{const r=n[Co("0x11")].markerNameToElements(e[Co("0x1f")]);if(r)for(const t of r)t[Co("0x7")](Co("0x23"))&&(n[Co("0x11")][Co("0x16")](t,e[Co("0x1f")]),n[Co("0x24")][Co("0x0")](t))}),{priority:"high"}),t[Co("0x22")][Co("0x13")].on(Co("0x1a"),((e,n,r)=>{r[Co("0x17")].showSuggestionHighlights&&Ji(t,"split",{showActiveMarker:!1})[Co("0x14")](this)(e,n,r)}),{priority:"high"})}}const ko=["filter","bind","createPositionAt","createRange","getIntersection","has","find","handleFindCommand","_isInDeletionRange","start","get","string","enableCommand","editor","plugins","model","findPrevious","FindAndReplaceEditing","findNext","afterInit","item","replace"];var Io,Ro;Io=ko,Ro=274,function(t){for(;--t;)Io.push(Io.shift())}(++Ro);const So=function(t,e){return ko[t-=0]};class vo extends t.Plugin{[So("0x9")](){if(!this[So("0x3")][So("0x4")][So("0x11")](So("0x7")))return;const t=this[So("0x3")].plugins[So("0x0")]("TrackChangesEditing");t[So("0x2")](So("0x12"),this[So("0x13")][So("0xd")](this)),t.enableCommand(So("0x8")),t[So("0x2")](So("0x6")),t.enableCommand(So("0xb")),t.enableCommand("replaceAll")}[So("0x13")](t,e,n={}){const r=this[So("0x3")][So("0x4")].get("FindAndReplaceUtils");return t((t=>(So("0x1")==typeof e?r.findByTextCallback(e,n):e)(t)[So("0xc")]((e=>!1===this[So("0x14")](e,t[So("0xa")])))),n)}[So("0x14")](t,e){const n=this[So("0x3")][So("0x5")][So("0xf")](this[So("0x3")][So("0x5")][So("0xe")](e,t[So("0x15")]),this[So("0x3")][So("0x5")][So("0xe")](e,t.end));for(const t of this.editor[So("0x5")].markers.getMarkersGroup("suggestion:deletion"))if(null!==n[So("0x10")](t.getRange()))return!0;return!1}}const No=["fontSize.options","label","FontBackgroundColorEditing","find","editor","_registerLegacyDescription","*Set font color:* %0","normalizeSizeOptions","plugins","fontSize","afterInit","get","FORMAT_FONT_SIZE","*Reset font size*","fontBackgroundColor.colors","toLowerCase","commandParams","commandName","has","*Set font family:* %0","model","config","FontSize","format","FORMAT_FONT_FAMILY","*Set font background color:* %0","_descriptionFactory","value","locale","fontFamily","TrackChangesEditing","type","fontColor","fontColor.colors","registerAttributeLabel","FontColorEditing","formatInline","trim","*Reset font background color*","_enableDefaultAttributesIntegration","fontBackgroundColor","registerDescriptionCallback","title"];var Lo,Mo;Lo=No,Mo=295,function(t){for(;--t;)Lo.push(Lo.shift())}(++Mo);const wo=function(t,e){return No[t-=0]},Oo=[{pluginName:"FontSizeEditing",commandName:wo("0xf")},{pluginName:"FontFamilyEditing",commandName:wo("0x23")},{pluginName:wo("0x29"),commandName:"fontColor"},{pluginName:wo("0x8"),commandName:wo("0x3")}];class Fo extends t.Plugin{[wo("0x10")](){const t=this[wo("0xa")].locale,e=this[wo("0xa")][wo("0xe")][wo("0x11")](wo("0x24"));for(const{pluginName:t,commandName:n}of Oo)this[wo("0xa")].plugins[wo("0x18")](t)&&e[wo("0x2")](n,[n]);t.t,e[wo("0x20")][wo("0x28")](wo("0xf"),Qr(t,wo("0x12"))),e[wo("0x20")].registerAttributeLabel(wo("0x23"),Qr(t,wo("0x1e"))),e[wo("0x20")][wo("0x28")](wo("0x26"),Qr(t,"FORMAT_FONT_COLOR")),e._descriptionFactory.registerAttributeLabel(wo("0x3"),Qr(t,"FORMAT_FONT_BACKGROUND")),this[wo("0xb")]()}[wo("0xb")](){const t=this[wo("0xa")],e=t[wo("0x22")];t[wo("0xe")][wo("0x11")](wo("0x24"))[wo("0x20")][wo("0x4")]((t=>{const n=e.t;if(wo("0x2a")!=t[wo("0x25")])return;const{data:r}=t;if(null!=r){if(wo("0xf")==r[wo("0x17")]){const t=r[wo("0x16")][0].value;if(t){const r=n(this[wo("0xa")][wo("0xe")].get(wo("0x1c"))[wo("0xd")](this[wo("0xa")][wo("0x1b")].get(wo("0x6")))[wo("0x9")]((e=>e[wo("0x1a")]==t))[wo("0x5")]).toLowerCase();return{type:wo("0x1d"),content:Qr(e,"*Set font size:* %0",r)}}return{type:wo("0x1d"),content:Qr(e,wo("0x13"))}}if(wo("0x23")==r[wo("0x17")]){const t=r.commandParams[0][wo("0x21")];return t?{type:wo("0x1d"),content:Qr(e,wo("0x19"),t)}:{type:wo("0x1d"),content:Qr(e,"*Reset font family*")}}if("fontColor"==r[wo("0x17")]){const t=r[wo("0x16")][0][wo("0x21")];if(t){const r=(0,i.normalizeColorOptions)(this[wo("0xa")][wo("0x1b")][wo("0x11")](wo("0x27")))[wo("0x9")]((e=>e.model==t));let o=t,s="";return r&&(o=r.label,s=n(o)[wo("0x15")]()),{type:wo("0x1d"),content:Qr(e,wo("0xc"),s)[wo("0x0")](),color:{value:t,title:s||o}}}return{type:"format",content:Qr(e,"*Reset font color*")}}if("fontBackgroundColor"==r[wo("0x17")]){const t=r[wo("0x16")][0][wo("0x21")];if(t){const r=(0,i.normalizeColorOptions)(this.editor.config[wo("0x11")](wo("0x14")))[wo("0x9")]((e=>e[wo("0x1a")]==t));let o=t,s="";return r&&(o=r[wo("0x7")],s=n(o)[wo("0x15")]()),{type:wo("0x1d"),content:Qr(e,wo("0x1f"),s)[wo("0x0")](),color:{value:t,title:s||o}}}return{type:wo("0x1d"),content:Qr(e,wo("0x1"))}}}}))}}const Do=["enableCommand","commandName","*Remove all formatting*","formatInline","join","label","boolean","find","model","registerDescriptionCallback","fontColor","pasteFormat","get","commandParams","editor","split","length","_enableDefaultAttributesIntegration","format","commands","slice","toLowerCase","*Set format to:* %0","fontSize","copyFormat","config","FontSize","type","normalizeSizeOptions","fontSize.options","formatBlock","locale","fontColor.colors","TrackChangesEditing","plugins","afterInit","_registerLegacyDescription","_descriptionFactory"];var Po,Bo;Po=Do,Bo=196,function(t){for(;--t;)Po.push(Po.shift())}(++Bo);const Uo=function(t,e){return Do[t-=0]};class jo extends t.Plugin{[Uo("0x1d")](){const t=this[Uo("0x8")],e=t[Uo("0x1c")][Uo("0x6")](Uo("0x1b")),n=t[Uo("0xd")][Uo("0x6")](Uo("0x12")),r=t[Uo("0xd")].get(Uo("0x5"));n&&r&&(e[Uo("0xb")](Uo("0x5")),e[Uo("0x20")](Uo("0x12")),this[Uo("0x1e")]())}[Uo("0x1e")](){const t=this[Uo("0x8")],e=t[Uo("0x19")];t.plugins[Uo("0x6")](Uo("0x1b"))[Uo("0x1f")][Uo("0x3")]((n=>{if(Uo("0x18")!=n[Uo("0x15")]&&Uo("0x23")!=n.type)return;const{data:r}=n;if(r&&Uo("0x5")===r[Uo("0x21")]){const n=[],i=r[Uo("0x7")][0];for(const[e,r]of Object.entries(i))n.push(Go(t,e,r));return n[Uo("0xa")]?{type:Uo("0xc"),content:Qr(e,Uo("0x10"),n[Uo("0x24")](", "))}:{type:Uo("0xc"),content:Qr(e,Uo("0x22"))}}}))}}function Go(t,e,n){const r=t[Uo("0x19")].t,o=e[Uo("0x9")](/(?=[A-Z])/).join(" "),s=r(o.charAt(0).toUpperCase()+o[Uo("0xe")](1))[Uo("0xf")]();if(Uo("0x0")==typeof n)return s;if(Uo("0x4")===e||"fontBackgroundColor"===e){const e=(0,i.normalizeColorOptions)(t.config[Uo("0x6")](Uo("0x1a")))[Uo("0x1")]((t=>t[Uo("0x2")]==n));return s+" ("+(e?r(e[Uo("0x25")])[Uo("0xf")]():n)+")"}if(Uo("0x11")===e&&isNaN(parseFloat(n))){const e=t[Uo("0x1c")].get(Uo("0x14"))[Uo("0x16")](t[Uo("0x13")].get(Uo("0x17"))).find((t=>t[Uo("0x2")]==n));return s+" ("+(e?r(e.title).toLowerCase():n)+")"}return s+" ("+n+")"}const Vo=["config","heading","has","_headingOptions","title","model","plugins","ELEMENT_HEADING","heading.options","commandName","editor","*Change to:* %0","TrackChangesEditing","_enableDefaultAttributesIntegration","ELEMENT_HEADING_CUSTOM","registerElementLabel","format","commandParams","type","afterInit","_registerLegacyDescription","_getHeadingLevel","locale","formatBlock","find","value","get"];var Ho,zo;Ho=Vo,zo=467,function(t){for(;--t;)Ho.push(Ho.shift())}(++zo);const Wo=function(t,e){return Vo[t-=0]};class Ko extends t.Plugin{[Wo("0xb")](){const t=this[Wo("0x2")];if(!t.plugins[Wo("0x15")]("HeadingEditing"))return;this[Wo("0x16")]=t[Wo("0x13")][Wo("0x12")](Wo("0x0"));const e=t[Wo("0xe")],n=t[Wo("0x19")].get("TrackChangesEditing");n[Wo("0x5")](Wo("0x14"));for(const t of this[Wo("0x16")])"paragraph"!=t[Wo("0x18")]&&n._descriptionFactory[Wo("0x7")](t[Wo("0x18")],(n=>{const r=this[Wo("0xd")](t[Wo("0x18")]);return null!==r?(s=n,x=r,Qr(e,Wo("0x1a"),[s,x])):(i=n,o=t[Wo("0x17")],Qr(e,Wo("0x6"),[i,o]));var i,o,s,x}));this[Wo("0xc")]()}[Wo("0xc")](){const t=this[Wo("0x2")],e=t.locale;t[Wo("0x19")][Wo("0x12")](Wo("0x4"))._descriptionFactory.registerDescriptionCallback((t=>{if(Wo("0xf")!=t[Wo("0xa")])return;const{data:n}=t;if(n&&Wo("0x14")==n[Wo("0x1")]){const t=n[Wo("0x9")][0][Wo("0x11")],s=this[Wo("0xd")](t);if(null!==s)return{type:Wo("0x8"),content:Qr(e,Wo("0x3"),(1,o=s,Qr(e,Wo("0x1a"),[1,o])))};const x=this[Wo("0x16")][Wo("0x10")]((e=>e[Wo("0x18")]===t))[Wo("0x17")];return{type:"format",content:Qr(e,Wo("0x3"),(r=1,i=x,Qr(e,Wo("0x6"),[r,i])))}}var r,i,o}))}_getHeadingLevel(t){var e,n;const r=t.match(/^heading(\d+)/);if(r)return r[1];const i=null===(e=this[Wo("0x16")])||void 0===e?void 0:e.find((e=>e.model==t));if(i&&i.view){const t=i.view,e=(null!==(n=t.name)&&void 0!==n?n:t).match(/^h(\d+)/);if(e)return e[1]}return null}}const qo=["commandName","has","color","config","locale","registerAttributeLabel","highlight.options","plugins","_descriptionFactory","_registerLegacyDescription","model","toLowerCase","FORMAT_HIGHLIGHT","title","editor","highlight","TrackChangesEditing","find"];var Xo,$o;Xo=qo,$o=207,function(t){for(;--t;)Xo.push(Xo.shift())}(++$o);const Zo=function(t,e){return qo[t-=0]};class Yo extends t.Plugin{afterInit(){const t=this[Zo("0x5")];if(!t[Zo("0x10")][Zo("0xa")]("HighlightEditing"))return;const e=t[Zo("0x10")].get(Zo("0x7")),n=t[Zo("0xd")];e._enableDefaultAttributesIntegration(Zo("0x6"),[Zo("0x6")]),e[Zo("0x11")][Zo("0xe")](Zo("0x6"),Qr(n,Zo("0x3"))),this[Zo("0x0")]()}[Zo("0x0")](){const t=this[Zo("0x5")],e=t.locale;t[Zo("0x10")].get("TrackChangesEditing")._descriptionFactory.registerDescriptionCallback((n=>{if("formatInline"!=n.type)return;const{data:r}=n;if(r&&Zo("0x6")==r[Zo("0x9")]){const n=e.t,i=r.commandParams[0].value;if(i){const r=t[Zo("0xc")].get(Zo("0xf"))[Zo("0x8")]((t=>t[Zo("0x1")]==i)),o=n(r[Zo("0x4")])[Zo("0x2")]();return{type:"format",content:Qr(e,"*Set highlight:* %0",o),color:{value:r[Zo("0xb")],title:r.title}}}return{type:"format",content:Qr(e,"*Remove highlight*",Qr(e,Zo("0x3")))}}}))}}const Qo=["createEmptyElement","registerElementLabel","ELEMENT_HORIZONTAL_LINE","TrackChangesEditing","high","insert","ck-horizontal-line","plugins","addClass","_descriptionFactory","editor","has","HorizontalLineEditing","horizontalLine","div","elementToStructure","showSuggestionHighlights","dataDowncast","for","get","conversion","locale"];var Jo,ts;Jo=Qo,ts=130,function(t){for(;--t;)Jo.push(Jo.shift())}(++ts);const es=function(t,e){return Qo[t-=0]};class ns extends t.Plugin{afterInit(){const t=this[es("0xc")];if(!t[es("0x9")][es("0xd")](es("0xe")))return;t[es("0x9")][es("0x15")](es("0x5")).enableCommand(es("0xf"));const e=t.plugins[es("0x15")](es("0x5")),n=t[es("0x1")];e[es("0xb")][es("0x3")]("horizontalLine",(t=>Qr(n,es("0x4"),t))),t[es("0x0")][es("0x14")](es("0x13"))[es("0x11")]({model:es("0xf"),view:(t,{writer:e,options:n})=>{if(!n[es("0x12")])return null;const r=e.createContainerElement(es("0x10")),i=e[es("0x2")]("hr");return e[es("0xa")](es("0x8"),r),e[es("0x7")](e.createPositionAt(r,0),i),r},converterPriority:es("0x6")})}}const rs=["get","element","plugins","editor","formatBlock","_descriptionFactory","*Change %0 content*","rawHtml","value","key","_enableDefaultAttributesIntegration","attribute","afterInit","ELEMENT_HTML_EMBED","_registerLegacyDescription","htmlEmbed","format","TrackChangesEditing","type","has","registerDescriptionCallback","locale","HtmlEmbed"];var is,os;is=rs,os=211,function(t){for(;--t;)is.push(is.shift())}(++os);const ss=function(t,e){return rs[t-=0]};class xs extends t.Plugin{[ss("0x8")](){const t=this[ss("0x16")];if(!t[ss("0x15")][ss("0xf")](ss("0x12")))return;const e=t[ss("0x15")].get(ss("0xd")),n=t[ss("0x11")];e[ss("0x1")].registerElementLabel(ss("0x3"),(t=>Qr(n,ss("0x9"),t))),e[ss("0x6")](ss("0xb"),[],["value"]),e._descriptionFactory[ss("0x10")]((t=>{if(ss("0x7")!=t[ss("0xe")])return;const{data:e}=t;if(e&&ss("0x4")==e[ss("0x5")]&&t.getFirstRange().start.nodeAfter.is(ss("0x14"),"rawHtml")){const t=Qr(n,ss("0x9"));return{type:ss("0xc"),content:Qr(n,ss("0x2"),t)}}})),this[ss("0xa")]()}[ss("0xa")](){const t=this.editor,e=t[ss("0x11")];t[ss("0x15")][ss("0x13")](ss("0xd"))[ss("0x1")][ss("0x10")]((t=>{if(ss("0x0")!=t[ss("0xe")])return;const{data:n}=t;if(n&&ss("0xb")==n.commandName){const t=Qr(e,ss("0x9"));return{type:ss("0xc"),content:Qr(e,ss("0x2"),t)}}}))}}const as=["*Reset image width*","forward","getNearestSelectionRange","toNext","ImageTextAlternativeEditing","newValue","commandParams","discard","nodeBefore","filter","chain","start","formatInline","detach","markBlockFormat","registerCustomCallback","TrackChangesEditing","imageTypeInline","ImageCaptionUtils","_findSuggestions","_suggestionFactory","plugins","ELEMENT_CAPTION","previous","createRangeOn","ImageUtils","element","locale","isEqual","change","insertion","ImageUploadEditing","Inline image to block image","schema","get","registerDescriptionCallback","convertBlockImageToInline","markInsertion","getContainedElement","find","_descriptionFactory","imageTextAlternative","length","join","isOwn","fromPosition","end","imageStylePreApply","ELEMENT_IMAGE","ImageEditing","model","isCollapsed","isBefore","caption","imageCaption","findIndex","subType","commandName","type","toggleImageCaption","ImageInlineEditing","imageTypeBlock","selection","getSuggestionCallback","document","*Set image width:* %0","format","enableCommand","createRange","registerElementLabel","has","formatBlock","imageInline","*Remove image text alternative*","addObject","deletion","toPrevious","uploadImage","insertImage","forceDefaultExecution","nodeAfter","accept","Block image to inline image","*Set image text alternative:* %0","markDeletion","afterInit","backward","_registerLegacyDescription","width","getFirstRange","isBlockImage","editor","convertInlineImageToBlock","resizedWidth","removeObject","key","getClosestSelectedImageElement","imageBlock","isIntersecting","_enableDefaultAttributesIntegration","resizeImage"];var cs,ls;cs=as,ls=430,function(t){for(;--t;)cs.push(cs.shift())}(++ls);const us=function(t,e){return as[t-=0]};class ds extends t.Plugin{[us("0x3b")](){const t=this[us("0x41")];if(!t[us("0x60")].has(us("0x17")))return;const e=t[us("0x60")][us("0x8")](us("0x5b")),n=t.plugins[us("0x8")](us("0x64")),r=t.locale;e[us("0x29")](us("0x34")),e[us("0xe")][us("0x2b")](us("0x47"),(t=>Qr(r,us("0x16"),t))),e._descriptionFactory[us("0x2b")](us("0x2e"),(t=>Qr(r,"ELEMENT_INLINE_IMAGE",t))),e[us("0xe")][us("0x2b")]("caption",(()=>Qr(r,us("0x61")))),t[us("0x60")][us("0x2c")](us("0x5"))&&e[us("0x29")](us("0x33")),t[us("0x60")][us("0x2c")]("ImageBlockEditing")&&t[us("0x60")][us("0x2c")](us("0x22"))&&(e.enableCommand(us("0x5c"),((r,i)=>{const o=n.getClosestSelectedImageElement(t.model.document[us("0x24")]);t[us("0x18")].change((()=>{e[us("0x59")](o,{commandName:"imageTypeInline",commandParams:[i]},[],us("0xa"))}))})),e[us("0x29")](us("0x23"),((r,i)=>{t.model[us("0x3")]((o=>{let x=n[us("0x46")](t[us("0x18")].document[us("0x24")]),a=o[us("0x63")](x);const c=s.LivePosition[us("0x13")](a[us("0x56")],us("0x32")),l=s.LivePosition.fromPosition(a.end,us("0x4e"));e[us("0x35")]((()=>r(i))),x=n[us("0x46")](t[us("0x18")][us("0x26")][us("0x24")]),a=o.createRangeOn(x);const u=o[us("0x2a")](c,l);c.detach(),l[us("0x58")](),e[us("0x59")](x,{commandName:"imageTypeInline",commandParams:[i]},[],us("0x42")),u[us("0x56")][us("0x1a")](a.start)&&e.markInsertion(o[us("0x2a")](u.start,a[us("0x56")]),"convertInlineImageToBlock"),a[us("0x14")][us("0x1a")](u[us("0x14")])&&e[us("0xb")](o.createRange(a[us("0x14")],u[us("0x14")]),us("0x42"))}))})),e[us("0x5f")][us("0x5a")](us("0x2d"),us("0x42"),us("0x11"),(()=>!1)),e[us("0x5f")].registerCustomCallback(us("0x2d"),us("0x42"),us("0x37"),(()=>!1)),e[us("0x5f")].registerCustomCallback(us("0x2d"),"convertInlineImageToBlock","discard",e[us("0x5f")][us("0x25")](us("0x2d"),"",us("0x37"))),e._suggestionFactory[us("0x5a")](us("0x4"),us("0x42"),us("0x11"),(()=>!1)),e[us("0x5f")][us("0x5a")](us("0x4"),us("0x42"),"discard",(([n])=>{const r=e._suggestionFactory[us("0x25")]("insertion","",us("0x52"));let i=n.start,o=n[us("0x14")];const s=t[us("0x18")][us("0x7")][us("0x4d")](i,us("0x3c")),x=t[us("0x18")].schema[us("0x4d")](o,us("0x4c"));s.isCollapsed&&(i=s[us("0x56")]),x[us("0x19")]&&(o=x[us("0x14")]),r([t[us("0x18")].createRange(i,o)])})),e[us("0x5f")].registerCustomCallback("formatBlock",us("0x42"),us("0x55"),x),e[us("0x5f")][us("0x5a")](us("0x4"),us("0x42"),us("0x55"),x)),t.plugins[us("0x2c")]("ImageCaptionEditing")&&(e[us("0x29")](us("0x21"),((r,i)=>{const o=t[us("0x60")][us("0x8")](us("0x5d"));let s=n[us("0x46")](t.model[us("0x26")][us("0x24")]),x=o.getCaptionFromImageModelElement(s);t[us("0x18")][us("0x3")]((()=>{if(x)return void e[us("0x3a")](t.model[us("0x63")](x));const a=n[us("0x40")](s);r(i),s=n[us("0x46")](t[us("0x18")].document[us("0x24")]),x=o.getCaptionFromImageModelElement(s),e[us("0xb")](t.model[us("0x63")](x),a?null:"imageCaption")}))})),e._suggestionFactory[us("0x5a")](us("0x4"),us("0x1c"),us("0x55"),x));const i=[{type:us("0x2d"),subType:us("0x15")},{type:us("0x4"),subType:us("0x1c")},{type:us("0x2d"),subType:us("0x42")},{type:us("0x4"),subType:"convertInlineImageToBlock"}];function o(t,r){const o=i.findIndex((({type:e,subType:n})=>t[us("0x20")]==e&&t[us("0x1e")]==n)),s=i[us("0x1d")]((({type:t,subType:e})=>r.type==t&&r[us("0x1e")]==e));if(o<0||s<0)return!1;const x=t.getFirstRange(),a=r[us("0x3f")]();if((0==o||1==o)&&2==s&&x[us("0x48")](a))return!0;if(2==o&&3==s){const t=e[us("0x5e")](x,us("0x4"))[us("0x54")]((({suggestion:t,meta:e})=>e[us("0x12")]&&us("0x42")==t[us("0x1e")]));if(t[us("0x10")]>1&&a[us("0x14")][us("0x2")](x[us("0x56")]))return!0;if(1==t[us("0x10")]&&(x.start.isEqual(a[us("0x14")])||x.end[us("0x2")](a[us("0x56")])))return!0}if(3==o&&3==s&&x[us("0x56")].isBefore(a[us("0x56")])){const t=x[us("0x14")][us("0x36")],e=a.start[us("0x53")];return n.isBlockImage(t)&&t===e}return!1}function x(t,e){return o(t,e)?[t,e]:o(e,t)?[e,t]:null}t.plugins[us("0x2c")]("ImageResize")&&(e[us("0x49")]("resizeImage",[],[us("0x43")]),e._descriptionFactory.registerAttributeLabel(us("0x43"),Qr(r,"FORMAT_IMAGE_SIZE"))),t.plugins.has(us("0x4f"))&&e._enableDefaultAttributesIntegration(us("0xf"),[],["alt"]),e[us("0xe")][us("0x9")]((t=>{if(i[us("0xd")]((({type:e,subType:n})=>t.type==e&&t[us("0x1e")]==n)))return t[us("0x62")]?{}:void 0})),e[us("0xe")][us("0x9")]((t=>{if(us("0x4")==t.type||us("0x31")==t[us("0x20")]){const e=t[us("0xc")]();if(e&&e.is(us("0x0"),us("0x1b")))return{type:us("0x4")==t.type?us("0x30"):us("0x44"),element:e,quantity:1}}})),e._descriptionFactory[us("0x9")]((t=>us("0x2d")==t.type&&us("0x42")==t[us("0x1e")]?{type:us("0x28"),content:us("0x6")}:us("0x2d")==t[us("0x20")]&&us("0xa")==t[us("0x1e")]?{type:us("0x28"),content:us("0x38")}:void 0)),e[us("0xe")][us("0x9")]((t=>{if("attribute"!=t[us("0x20")])return;const{data:e}=t;if(!e||"alt"!=e[us("0x45")])return;const n=e[us("0x50")];return n?{type:"format",content:Qr(r,"*Set image text alternative:* %0",'"'+n+'"')}:{type:us("0x28"),content:Qr(r,us("0x2f"))}})),this[us("0x3d")]()}_registerLegacyDescription(){const t=this[us("0x41")],e=t[us("0x1")];t.plugins[us("0x8")](us("0x5b"))._descriptionFactory.registerDescriptionCallback((t=>{if(us("0x2d")!=t[us("0x20")]&&us("0x57")!=t[us("0x20")])return;const{data:n}=t;if(n){if(us("0xf")==n[us("0x1f")]){const t=n[us("0x51")][0].newValue;return t?{type:us("0x28"),content:Qr(e,us("0x39"),'"'+t+'"')}:{type:us("0x28"),content:Qr(e,"*Remove image text alternative*")}}if(us("0x4a")==n[us("0x1f")]){const t=n[us("0x51")][0][us("0x3e")];return t?{type:us("0x28"),content:Qr(e,us("0x27"),t)}:{type:us("0x28"),content:Qr(e,us("0x4b"))}}}}))}}const gs=["registerDescriptionCallback","key","formatBlock","formatInline","registerCustomCallback","*Replace image URL*","has","plugins","replaceImageSource","src","format","TrackChangesEditing","ImageEditing","getSuggestionCallback","accept","locale","editor","type","afterInit","attribute","_suggestionFactory","_handleLegacySuggestions","oldValue","get","_registerLegacyDescription","*Format:* replace image URL","_descriptionFactory"];var fs,hs;fs=gs,hs=289,function(t){for(;--t;)fs.push(fs.shift())}(++hs);const ms=function(t,e){return gs[t-=0]};class bs extends t.Plugin{[ms("0x1a")](){if(!this[ms("0x18")].plugins[ms("0xe")](ms("0x14")))return;const t=this.editor[ms("0x17")],e=this[ms("0x18")][ms("0xf")][ms("0x4")](ms("0x13"));e._enableDefaultAttributesIntegration("replaceImageSource",[],["src"]),e[ms("0x7")][ms("0x8")]((e=>{if(ms("0x0")!=e.type)return;const{data:n}=e;return n&&ms("0x11")==n[ms("0x9")]?n.newValue&&n[ms("0x3")]?{type:ms("0x12"),content:Qr(t,ms("0xd"))}:{type:ms("0x12"),content:""}:void 0})),this[ms("0x2")]()}_handleLegacySuggestions(){const t=this.editor.plugins[ms("0x4")](ms("0x13"));t[ms("0x1")][ms("0xc")]("formatBlock",ms("0x10"),ms("0x16"),t[ms("0x1")][ms("0x15")](ms("0xa"),null,"discard")),t[ms("0x1")][ms("0xc")](ms("0xa"),ms("0x10"),"discard",t[ms("0x1")][ms("0x15")](ms("0xa"),null,ms("0x16"))),this._registerLegacyDescription()}[ms("0x5")](){const t=this[ms("0x18")],e=t.locale;t[ms("0xf")][ms("0x4")](ms("0x13"))[ms("0x7")][ms("0x8")]((t=>{if("formatBlock"!=t[ms("0x19")]&&ms("0xb")!=t.type)return;const{data:n}=t;return n&&"replaceImageSource"==n.commandName?{type:ms("0x12"),content:Qr(e,ms("0x6"))}:void 0}))}}const ps=["plugins","createRangeOn","formatBlock","side","start","commandReversedParams","imageTypeBlock","_splitMarkerName","markInlineFormat","imageStyle","model","getContainedElement","markBlockFormat","commands","normalizedStyles","isEqual","commandParams","has","refresh","toLowerCase","change","isInContent","selection","hasSuggestion","forEach","formatInline","newRange","name","commandName","join","ImageStyleEditing","setImageNaturalSizeAttributes","imageStylePreApply","accept","convertInlineImageToBlock","isOwn","next","document","isBefore","head","imageCaption","_findSuggestions","getChangedMarkers","title","ImageUtils","getSuggestionCallback","author","subType","Users","registerCustomCallback","editor","getClosestSelectedImageElement","type","get","_suggestionFactory","_descriptionFactory","nodeBefore","getFirstRange","length","enableCommand","value","isInlineImage","FORMAT_SIDE_IMAGE","imageStylePostApply","_registerLegacyDescription","filter","discardSuggestion","TrackChangesEditing","shouldConvertImageType","insertion","getSuggestion","format","chain","end","imageTypeInline","findIndex","isBlockImage"];var Es,_s;Es=ps,_s=219,function(t){for(;--t;)Es.push(Es.shift())}(++_s);const Ts=function(t,e){return ps[t-=0]};class ys extends t.Plugin{afterInit(){const t=this.editor;if(!t[Ts("0xc")][Ts("0x1d")](Ts("0x2a")))return;const n=t.plugins[Ts("0x41")]("TrackChangesEditing"),r=t[Ts("0xc")][Ts("0x41")](Ts("0x38")),i={};n[Ts("0x47")](Ts("0x15"),((i,o)=>{const s=t[Ts("0xc")].get(Ts("0x3c")).me,x=t[Ts("0x19")][Ts("0x41")](Ts("0x15"));let a=r[Ts("0x3f")](t[Ts("0x16")].document[Ts("0x22")]),c=t[Ts("0x16")][Ts("0xd")](a),l=x[Ts("0x48")];if(l==o.value)return;const u={commandName:Ts("0x15"),commandParams:[o],formatGroupId:(0,e.uid)()};t[Ts("0x16")][Ts("0x20")]((()=>{if(n.getSuggestions()[Ts("0x0")]((t=>t[Ts("0x21")]&&s==t[Ts("0x3a")]&&(Ts("0xe")==t[Ts("0x40")]||Ts("0x25")==t.type)&&(Ts("0x2c")==t[Ts("0x3b")]||"imageStylePostApply"==t[Ts("0x3b")])&&t[Ts("0x45")]().isEqual(c)))[Ts("0x24")]((t=>n[Ts("0x1")](t[Ts("0x33")]))),a=r[Ts("0x3f")](t.model[Ts("0x31")][Ts("0x22")]),c=t.model.createRangeOn(a),x[Ts("0x1e")](),t.commands[Ts("0x41")](Ts("0x9"))[Ts("0x1e")](),t[Ts("0x19")][Ts("0x41")](Ts("0x12"))[Ts("0x1e")](),l=x[Ts("0x48")],l!=o[Ts("0x48")])return r[Ts("0x49")](a)&&x[Ts("0x3")](o[Ts("0x48")],a)?(i({...o,setImageSizes:!1}),a=r[Ts("0x3f")](t[Ts("0x16")].document.selection),void n[Ts("0x18")](a,{...u,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],"imageStylePreApply")):void(r[Ts("0xb")](a)?n[Ts("0x18")](a,u,[],Ts("0x4b")):n[Ts("0x14")](c,u,Ts("0x4b")))}))}));for(const e of t.plugins[Ts("0x41")](Ts("0x2a"))[Ts("0x1a")])i[e[Ts("0x27")]]=e[Ts("0x37")][Ts("0x1f")]();n[Ts("0x42")][Ts("0x3d")](Ts("0xe"),Ts("0x2c"),"join",(()=>!1)),n._suggestionFactory[Ts("0x3d")]("formatBlock",Ts("0x4b"),Ts("0x29"),(()=>!1)),n[Ts("0x42")][Ts("0x3d")](Ts("0x25"),Ts("0x4b"),Ts("0x29"),(()=>!1)),n._suggestionFactory[Ts("0x3d")](Ts("0xe"),"imageStylePreApply",Ts("0x2d"),(([t])=>{r[Ts("0x2b")](t[Ts("0x17")]())})),n._suggestionFactory[Ts("0x3d")]("formatBlock",Ts("0x2c"),"discard",((t,e)=>{n._suggestionFactory[Ts("0x39")](Ts("0xe"),"","accept")(t,{commandName:e[Ts("0x28")],commandParams:e[Ts("0x11")]})})),n[Ts("0x42")][Ts("0x3d")](Ts("0xe"),Ts("0x2c"),Ts("0x7"),(function(t,e){return s(t,e)?[t,e]:s(e,t)?[e,t]:null}));const o=[{type:Ts("0xe"),subType:Ts("0x2c")},{type:Ts("0x4"),subType:Ts("0x34")},{type:Ts("0xe"),subType:"convertInlineImageToBlock"},{type:Ts("0x4"),subType:"convertInlineImageToBlock"}];function s(t,e){const i=o[Ts("0xa")]((({type:e,subType:n})=>t[Ts("0x40")]==e&&t[Ts("0x3b")]==n)),s=o.findIndex((({type:t,subType:n})=>e[Ts("0x40")]==t&&e[Ts("0x3b")]==n));if(i<0||s<0)return!1;const x=t[Ts("0x45")](),a=e[Ts("0x45")]();if((0==i||1==i)&&2==s&&x.isIntersecting(a))return!0;if(2==i&&3==s){const t=n[Ts("0x35")](x,Ts("0x4"))[Ts("0x0")]((({suggestion:t,meta:e})=>e[Ts("0x2f")]&&Ts("0x2e")==t[Ts("0x3b")]));if(t[Ts("0x46")]>1&&a.end[Ts("0x1b")](x[Ts("0x10")]))return!0;if(1==t[Ts("0x46")]&&(x[Ts("0x10")][Ts("0x1b")](a[Ts("0x8")])||x.end[Ts("0x1b")](a[Ts("0x10")])))return!0}if(3==i&&3==s&&x[Ts("0x10")][Ts("0x32")](a[Ts("0x10")])){const t=x[Ts("0x8")].nodeAfter,e=a[Ts("0x10")][Ts("0x44")];return r.isBlockImage(t)&&t===e}return!1}t[Ts("0x16")][Ts("0x31")].registerPostFixer((()=>{let e=!1;const i=Array.from(t.model.document.differ[Ts("0x36")]());for(const{name:t,data:o}of i){const{group:i,type:s,subType:x,id:a}=n[Ts("0x13")](t);if("suggestion"==i&&n[Ts("0x23")](a)){if(Ts("0xe")==s&&(Ts("0x2c")==x||Ts("0x4b")==x)){const t=n[Ts("0x5")](a);if(o[Ts("0x26")]){const i=t[Ts("0x45")]()[Ts("0x17")]();if(r[Ts("0xb")](i))continue;n[Ts("0x1")](t),e=!0}}if("insertion"==s&&Ts("0x34")==x&&!o.newRange){const t=n[Ts("0x5")](a);t[Ts("0x30")]&&t[Ts("0x30")][Ts("0x21")]&&(n[Ts("0x1")](t[Ts("0x30")]),e=!0)}}}return e})),this[Ts("0x4c")](i)}[Ts("0x4c")](t){const e=this[Ts("0x3e")],n=e.locale;e[Ts("0xc")].get(Ts("0x2"))[Ts("0x43")].registerDescriptionCallback((e=>{if(Ts("0xe")!=e[Ts("0x40")]&&"formatInline"!=e.type)return;const{data:r}=e;if(!r||Ts("0x15")!=r.commandName)return;const i=r[Ts("0x1c")][0][Ts("0x48")];return o=Ts("0xf")===i?Qr(n,Ts("0x4a")):t[i]||i,{type:Ts("0x6"),content:Qr(n,"*Format:* %0",o)};var o}))}}const Cs=["bind","high","get","TrackChangesEditing","importWord","_trackChangesValueDuringImport","commands","execute","plugins","listenTo","Users","dataInsert","enableCommand","trackChanges","_handleImportedData","editor","_trackChangesExecuted","lowest","track_changes","value"];var As,ks;As=Cs,ks=275,function(t){for(;--t;)As.push(As.shift())}(++ks);const Is=function(t,e){return Cs[t-=0]};class Rs extends t.Plugin{constructor(t){super(t),this._trackChangesValueDuringImport=!1,this._trackChangesExecuted=!1}afterInit(){const t=this[Is("0x0")],e=t[Is("0xb")][Is("0x7")](Is("0x9")),n=t.commands[Is("0x7")](Is("0x12"));e&&(e.on(Is("0xc"),((t,[,e])=>{this._trackChangesValueDuringImport=n[Is("0x4")],e.collaboration_features[Is("0x3")]=!this[Is("0xa")]}),{priority:Is("0x6")}),this[Is("0xe")](e,Is("0x10"),this[Is("0x13")][Is("0x5")](this)),this.listenTo(e,Is("0x10"),(()=>{this[Is("0x1")]&&(n[Is("0xc")](),this[Is("0x1")]=!1)}),{priority:Is("0x2")}),t[Is("0xd")].get(Is("0x8"))[Is("0x11")](Is("0x9")))}[Is("0x13")](t,e){const{suggestions:n}=e,r=this[Is("0x0")][Is("0xb")].get(Is("0x12")),i=r[Is("0x4")];this[Is("0xa")]!==i&&(r[Is("0xc")](),this._trackChangesExecuted=!0),n&&n.forEach((({id:t,type:e,author:n,created_at:r})=>{const i={id:t,type:e,authorId:this.editor[Is("0xd")][Is("0x7")](Is("0xf")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:r?new Date(r):new Date,source:Is("0x9")}}};this[Is("0x0")][Is("0xd")][Is("0x7")](Is("0x8"))._setSuggestionData(i)}))}}const Ss=["_enableDefaultAttributesIntegration","_descriptionFactory","blockIndent","*Outdent:* %0","editor","IndentEditing","format","TrackChangesEditing","commandName","formatBlock","IndentBlock","_registerBlockAttribute","plugins","indent","get","registerDescriptionCallback","*Indent:* %0","_registerLegacyDescription","locale","outdent","outdentBlock","indentBlock","afterInit","registerAttributeLabel","FORMAT_INDENT","enableCommand","has"];var vs,Ns;vs=Ss,Ns=132,function(t){for(;--t;)vs.push(vs.shift())}(++Ns);const Ls=function(t,e){return Ss[t-=0]};class Ms extends t.Plugin{[Ls("0x19")](){const t=this[Ls("0x7")],e=t.plugins[Ls("0x11")](Ls("0xa"));if(t[Ls("0xf")].has(Ls("0x8"))&&(e[Ls("0x1")](Ls("0x10")),e[Ls("0x1")](Ls("0x16"))),t[Ls("0xf")][Ls("0x2")](Ls("0xd")))for(const t of[Ls("0x18"),"outdentBlock"])e[Ls("0x3")](t);const n=t[Ls("0x15")];e[Ls("0xe")](Ls("0x5")),e._descriptionFactory[Ls("0x1a")](Ls("0x5"),Qr(n,Ls("0x0"))),this._registerLegacyDescription()}[Ls("0x14")](){const t=this[Ls("0x7")],e=t[Ls("0x15")],n=t[Ls("0xf")][Ls("0x11")](Ls("0xa"));n[Ls("0x4")][Ls("0x12")]((t=>{if(Ls("0xc")!=t.type)return;const{data:r}=t;if(!r)return;if(Ls("0x18")!=r[Ls("0xb")]&&"outdentBlock"!=r[Ls("0xb")])return;const i=t.getItems()[0],o=n._descriptionFactory.getItemLabel(i);return Ls("0x18")==r.commandName?{type:Ls("0x9"),content:Qr(e,Ls("0x13"),o)}:Ls("0x17")==r[Ls("0xb")]?{type:Ls("0x9"),content:Qr(e,Ls("0x6"),o)}:void 0}))}}var ws,Os,Fs=["enableCommand","TrackChangesEditing","requires","init","get"];ws=Fs,Os=120,function(t){for(;--t;)ws.push(ws.shift())}(++Os);var Ds=function(t,e){return Fs[t-=0]};class Ps extends t.Plugin{static get[Ds("0x2")](){return[qi.Input]}[Ds("0x3")](){this.editor.plugins[Ds("0x4")](Ds("0x1"))[Ds("0x0")]("input")}}const Bs=["afterInit","commandParams","*Remove link*","toLowerCase","_enableDefaultAttributesIntegration","*Set link:* %0","_descriptionFactory","attribute","commands","LinkEditing","manualDecorators","unlink","format","has","editor","label","registerDescriptionCallback","newValue","formatInline","locale","commandName","_registerLegacyDescription","link","get","linkHref","plugins","type"];var Us,js;Us=Bs,js=126,function(t){for(;--t;)Us.push(Us.shift())}(++js);const Gs=function(t,e){return Bs[t-=0]};class Vs extends t.Plugin{[Gs("0x9")](){const t=this[Gs("0x17")];if(!t[Gs("0x7")][Gs("0x16")](Gs("0x12")))return;const e=t[Gs("0x7")][Gs("0x5")]("TrackChangesEditing"),n=t[Gs("0x11")][Gs("0x5")]("link");e[Gs("0xd")](Gs("0x4"),[Gs("0x6"),...n[Gs("0x13")].map((t=>t.id))]),e[Gs("0xd")](Gs("0x14"));for(const t of n[Gs("0x13")])e[Gs("0xf")].registerAttributeLabel(t.id,"link ("+t[Gs("0x18")][Gs("0xc")]()+")");e[Gs("0xf")][Gs("0x19")]((e=>{if(Gs("0x10")!=e[Gs("0x8")])return;const{data:n}=e;if(!n||Gs("0x6")!=n.key)return;const r=n[Gs("0x1a")],i=t[Gs("0x1")];return{type:Gs("0x15"),content:null==r?Qr(i,"*Remove link*"):Qr(i,"*Set link:* %0",'"'+r+'"')}})),this[Gs("0x3")]()}_registerLegacyDescription(){const t=this[Gs("0x17")],e=t[Gs("0x1")];t[Gs("0x7")].get("TrackChangesEditing")[Gs("0xf")][Gs("0x19")]((t=>{if(Gs("0x0")!=t.type)return;const{data:n}=t;if(n){if("link"==n[Gs("0x2")]){const t=n[Gs("0xa")][0];return{type:Gs("0x15"),content:Qr(e,Gs("0xe"),'"'+t+'"')}}return Gs("0x14")==n[Gs("0x2")]?{type:Gs("0x15"),content:Qr(e,Gs("0xb"))}:void 0}}))}}const Hs=["*Change to:* %0","enableCommand","format","get","ELEMENT_LIST_ITEM","numbered","type","registerElementLabel","before","slice","plugins","filter","name","from","markBlockFormat","todoListChecked","forceValue","LegacyTodoListEditing","_selectedElements","bulleted","ELEMENT_NUMBERED_LIST","add","indentList","*Indent:* %0","_descriptionFactory","model","listIndent","commandParams","bulletedList","registerDescriptionCallback","getSelectedBlocks","previousSibling","selection","getAttribute","listType","checkChild","findIndex","value","numberedList","has","*Uncheck item*","outdentList","commandName","createPositionAt","locale","todo","TrackChangesEditing","schema","nextSibling","List","isObject","element","afterInit","commands","end","*Outdent:* %0","todoList","listItem","paragraph","*Check item*","change","checkTodoList"];var zs,Ws;zs=Hs,Ws=398,function(t){for(;--t;)zs.push(zs.shift())}(++Ws);const Ks=function(t,e){return Hs[t-=0]};class qs extends t.Plugin{[Ks("0x1a")](){const t=this.editor,e=t[Ks("0x12")];if(!t[Ks("0x2e")][Ks("0xd")]("LegacyListEditing"))return;const n=t.plugins.get(Ks("0x14")),r=t[Ks("0x2e")][Ks("0xd")](Ks("0x35"));function i(e){return()=>{const r=t[Ks("0x3d")].document[Ks("0x6")],i=t[Ks("0x1b")][Ks("0x27")](e);if(i[Ks("0xb")])return void t.execute(Ks("0x20"),{});const o=e[Ks("0x2d")](0,-4),s=function(t,e,n){let r=Array.from(t)[Ks("0x2f")]((t=>{return e=t,(r=n)[Ks("0x9")](e.parent,Ks("0x1f"))&&!r[Ks("0x18")](e);var e,r}));r=r[Ks("0x2f")]((t=>!t.is(Ks("0x19"),Ks("0x1f"))||t[Ks("0x7")](Ks("0x8"))!=e));const i=new Set;for(const t of r)t.is("element",Ks("0x1f"))?i[Ks("0x39")](Xs(t)):i[Ks("0x39")](t);return Array[Ks("0x31")](i)}(r[Ks("0x4")](),o,t[Ks("0x3d")][Ks("0x15")]);t[Ks("0x3d")][Ks("0x22")]((()=>{for(const t of s)n.markBlockFormat(t,{commandName:e,commandParams:[{forceValue:!i[Ks("0xb")]}],formatGroupId:"blockName"},$s(t))}))}}function o(e){return()=>{const r=function(t){let e=Array[Ks("0x31")](t);const n=e[Ks("0xa")]((t=>Ks("0x1f")!=t[Ks("0x30")]));return n>-1&&(e=e[Ks("0x2d")](0,n)),e}(t[Ks("0x3d")].document[Ks("0x6")][Ks("0x4")]()),i=t[Ks("0x3d")].createRange(t[Ks("0x3d")][Ks("0x11")](r[0],Ks("0x2c")),t[Ks("0x3d")][Ks("0x11")](r[r.length-1],Ks("0x1c")));t[Ks("0x3d")][Ks("0x22")]((()=>{n[Ks("0x32")](i,{commandName:e,commandParams:[],formatGroupId:Ks("0x0")},function(t){const e=new Set;for(const n of t){let t=n.nextSibling;for(;t&&t[Ks("0x7")](Ks("0x0"))>n.getAttribute(Ks("0x0"));)e[Ks("0x39")](t),t=t[Ks("0x16")]}return Array[Ks("0x31")](e)}(r))}))}}n.enableCommand("numberedList",i(Ks("0xc"))),n[Ks("0x25")](Ks("0x2"),i(Ks("0x2"))),r&&n.enableCommand(Ks("0x1e"),i(Ks("0x1e"))),n[Ks("0x25")](Ks("0x3a"),o("indentList")),n[Ks("0x25")](Ks("0xf"),o(Ks("0xf"))),r&&n[Ks("0x25")](Ks("0x23"),(()=>{const e=t[Ks("0x1b")][Ks("0x27")](Ks("0x23")),r=Array[Ks("0x31")](e[Ks("0x36")]);r[Ks("0x2f")]((t=>t[Ks("0x7")](Ks("0x33"))!=e.value)),t.model[Ks("0x22")]((()=>{for(const t of r)n[Ks("0x32")](t,{commandName:"checkTodoList",commandParams:[{forceValue:!e[Ks("0xb")]}]})}))})),n[Ks("0x3c")][Ks("0x2b")](Ks("0x1f"),(t=>Qr(e,"ELEMENT_LIST_ITEM",t))),n[Ks("0x3c")][Ks("0x3")]((t=>{if("formatBlock"!=t[Ks("0x2a")]&&"formatInline"!=t[Ks("0x2a")])return;const{data:n}=t;if(n){if(Ks("0xc")==n[Ks("0x10")]||Ks("0x2")==n[Ks("0x10")]||"todoList"==n.commandName)switch(n[Ks("0x10")].replace(Ks("0x17"),"")){case Ks("0x37"):return r(Qr(e,"ELEMENT_BULLETED_LIST"));case Ks("0x29"):return r(Qr(e,Ks("0x38")));case Ks("0x13"):return r(Qr(e,"ELEMENT_TODO_LIST"))}if(Ks("0x3a")==n[Ks("0x10")])return{type:Ks("0x26"),content:Qr(e,Ks("0x3b"),Qr(e,Ks("0x28")))};if(Ks("0xf")==n.commandName)return{type:Ks("0x26"),content:Qr(e,Ks("0x1d"),Qr(e,Ks("0x28")))};if(Ks("0x23")==n.commandName)return n[Ks("0x1")][0][Ks("0x34")]?{type:Ks("0x26"),content:Qr(e,Ks("0x21"))}:{type:Ks("0x26"),content:Qr(e,Ks("0xe"))}}function r(t){return{type:Ks("0x26"),content:Qr(e,Ks("0x24"),t)}}}))}}function Xs(t){const e=t[Ks("0x7")](Ks("0x0"));if(0==e)return t;let n=t;for(;t.previousSibling&&t.previousSibling.is(Ks("0x19"),Ks("0x1f"));){const r=t[Ks("0x5")][Ks("0x7")](Ks("0x0"));if(r==e)n=t.previousSibling;else if(r<e)break;t=t[Ks("0x5")]}return n}function $s(t){const e=[];if(t.is(Ks("0x19"),Ks("0x1f"))&&t.getAttribute("listIndent")>0){let n=t.nextSibling;for(;n&&Ks("0x1f")==n.name&&n[Ks("0x7")]("listIndent")==t.getAttribute(Ks("0x0"));)e.push(n),n=n[Ks("0x16")]}return e}const Zs=["_descriptionFactory","get","afterInit","editor","handleDescriptions","startIndex","reversed","listStart","document","getAttribute","*Format:* set start index to %0","getFirstPosition","listItem","push","format","numbered","backward","_getSuggestionBlocks","handleListReversedCommand","ELEMENT_","registerDescriptionCallback","handleListStartCommand","listReversed","element","map","handleListStyleCommand","locale","getSelectedBlocks","markMultiRangeBlockFormat","LegacyListPropertiesEditing","LegacyListUtils","getSiblingNodes","type","*Format:* set order to regular","createPositionAt","*Format:* set order to reversed","selection","commandParams","change","flat","formatBlock","TrackChangesEditing","length","commandName","_LIST_","plugins","createRange","filter","listType","model","formatInline","unshift","config","_getSuggestionBlocksForListStyle","before","forward","listStyle","toUpperCase","_getTranslationKeyForListStyle","enableCommand","bind"];var Ys,Qs;Ys=Zs,Qs=266,function(t){for(;--t;)Ys.push(Ys.shift())}(++Qs);const Js=function(t,e){return Zs[t-=0]};class tx extends t.Plugin{[Js("0x29")](){if(!this[Js("0x2a")][Js("0x17")].has(Js("0x7")))return;const t=this[Js("0x2a")][Js("0x1e")].get("list.properties"),e=this[Js("0x2a")][Js("0x17")][Js("0x28")](Js("0x13"));t.styles&&e[Js("0x25")](Js("0x22"),this[Js("0x3")][Js("0x26")](this)),t[Js("0x2d")]&&e[Js("0x25")](Js("0x0"),this[Js("0x39")][Js("0x26")](this)),t[Js("0x2c")]&&e[Js("0x25")](Js("0x2e"),this[Js("0x3c")].bind(this)),e[Js("0x27")][Js("0x3b")](this[Js("0x2b")].bind(this))}[Js("0x3")](t,e={}){const n=this.editor.plugins[Js("0x28")](Js("0x13")),r=this._getSuggestionBlocksForListStyle();this[Js("0x2a")].model.change((()=>{n[Js("0x6")](r,{commandName:Js("0x22"),commandParams:[{type:e.type}],formatGroupId:Js("0x22")})}))}[Js("0x39")](t,e={}){const n=this[Js("0x2a")].plugins[Js("0x28")](Js("0x13")),r=this[Js("0x38")]((t=>t.is(Js("0x1"),Js("0x33"))&&Js("0x36")===t[Js("0x30")](Js("0x1a"))));if(r.length<1)return;const i=r[Js("0x2")]((t=>this[Js("0x2a")].model[Js("0x18")](this[Js("0x2a")][Js("0x1b")].createPositionAt(t,Js("0x20")),this.editor[Js("0x1b")][Js("0xc")](t,0))));this[Js("0x2a")][Js("0x1b")].change((()=>{n.markMultiRangeBlockFormat(i,{commandName:Js("0x0"),commandParams:[{reversed:e[Js("0x2d")]}],formatGroupId:"listReversed"})}))}handleListStartCommand(t,e={}){const n=this.editor.plugins[Js("0x28")](Js("0x13")),r=this[Js("0x38")]((t=>t.is(Js("0x1"),Js("0x33"))&&Js("0x36")===t[Js("0x30")](Js("0x1a"))));if(r.length<1)return;const i=r.map((t=>this.editor[Js("0x1b")].createRange(this[Js("0x2a")].model[Js("0xc")](t,Js("0x20")),this[Js("0x2a")][Js("0x1b")][Js("0xc")](t,0))));this[Js("0x2a")][Js("0x1b")][Js("0x10")]((()=>{n[Js("0x6")](i,{commandName:Js("0x2e"),commandParams:[{startIndex:e[Js("0x2c")]}],formatGroupId:"listStart"})}))}[Js("0x2b")](t){if(Js("0x12")!=t[Js("0xa")]&&Js("0x1c")!=t.type)return;const e=this[Js("0x2a")][Js("0x4")],{data:n}=t;if(!n)return;let r,i;switch(n[Js("0x15")]){case"listStyle":r="*Change to:* %0",i={type:"format",content:Qr(e,r,Qr(e,this._getTranslationKeyForListStyle(n[Js("0xf")][0][Js("0xa")])))};break;case Js("0x0"):r=n[Js("0xf")][0].reversed?Js("0xd"):Js("0xb"),i={type:Js("0x35"),content:Qr(e,r)};break;case Js("0x2e"):r=Js("0x31"),i={type:"format",content:Qr(e,r,n[Js("0xf")][0][Js("0x2c")])}}return i}[Js("0x1f")](){var t,e,n,r;const i=this.editor[Js("0x17")][Js("0x28")]("LegacyListUtils");let o=Array.from(this.editor[Js("0x1b")].document[Js("0xe")][Js("0x5")]());return(null===(t=o[0])||void 0===t?void 0:t.is(Js("0x1"),"listItem"))&&o[Js("0x1d")](...i[Js("0x9")](this[Js("0x2a")][Js("0x1b")][Js("0x2f")][Js("0xe")].getFirstPosition(),Js("0x37"))),(null===(e=o[o[Js("0x14")]-1])||void 0===e?void 0:e.is(Js("0x1"),Js("0x33")))&&o[Js("0x34")](...i[Js("0x9")](this[Js("0x2a")][Js("0x1b")][Js("0x2f")][Js("0xe")].getLastPosition(),Js("0x21"))),o=[...new Set(o)],(null===(r=null===(n=this[Js("0x2a")][Js("0x1b")].document[Js("0xe")][Js("0x32")]())||void 0===n?void 0:n.parent)||void 0===r?void 0:r.is(Js("0x1"),Js("0x33")))&&(o=o.filter((t=>t.is(Js("0x1"),Js("0x33"))))),o}[Js("0x38")](t){const e=this.editor[Js("0x17")].get(Js("0x8"));let n=Array.from(this[Js("0x2a")][Js("0x1b")].document[Js("0xe")][Js("0x5")]())[Js("0x19")](t)[Js("0x2")]((t=>{const n=this[Js("0x2a")][Js("0x1b")].createPositionAt(t,0);return[...e.getSiblingNodes(n,"backward"),...e[Js("0x9")](n,"forward")]}))[Js("0x11")]();return n=[...new Set(n)],n}[Js("0x24")](t){return Js("0x3a")+this[Js("0x2a")][Js("0x17")][Js("0x28")](Js("0x8")).getListTypeFromListStyleType(t).toUpperCase()+Js("0x16")+t[Js("0x23")]().replace(/-/g,"_")}}const ex=["has","MediaEmbedEditing","plugins","mediaEmbed","get","createEmptyElement","afterInit","media","data","TrackChangesEditing","_descriptionFactory","high","ELEMENT_MEDIA","editor","showSuggestionHighlights","downcastDispatcher","locale","conversion"];var nx,rx;nx=ex,rx=474,function(t){for(;--t;)nx.push(nx.shift())}(++rx);const ix=function(t,e){return ex[t-=0]};class ox extends t.Plugin{[ix("0x0")](){const t=this[ix("0x7")];if(!t[ix("0xe")][ix("0xc")](ix("0xd")))return;const e=t[ix("0xe")][ix("0x10")](ix("0x3")),n=t[ix("0xa")];e.enableCommand(ix("0xf")),e[ix("0x4")].registerElementLabel(ix("0x1"),(t=>Qr(n,ix("0x6"),t))),t[ix("0xb")].for("dataDowncast").elementToElement({model:"media",view:(t,{writer:e,options:n})=>{if(n[ix("0x8")])return e[ix("0x11")]("div")},converterPriority:"high"}),t[ix("0x2")][ix("0x9")].on("attribute:url:media",((t,e,n)=>{n.options[ix("0x8")]&&t.stop()}),{priority:ix("0x5")})}}const sx=["get","has","MentionEditing","mention","enableCommand","editor","afterInit"];var xx,ax;xx=sx,ax=350,function(t){for(;--t;)xx.push(xx.shift())}(++ax);const cx=function(t,e){return sx[t-=0]};class lx extends t.Plugin{[cx("0x6")](){const t=this[cx("0x5")];t.plugins[cx("0x1")](cx("0x2"))&&t.plugins[cx("0x0")]("TrackChangesEditing")[cx("0x4")](cx("0x3"))}}const ux=["enableCommand","has","ELEMENT_PAGE_BREAK","afterInit","editor","pageBreak","registerElementLabel","PageBreakEditing","TrackChangesEditing","_descriptionFactory","plugins","get","locale"];var dx,gx;dx=ux,gx=114,function(t){for(;--t;)dx.push(dx.shift())}(++gx);const fx=function(t,e){return ux[t-=0]};class hx extends t.Plugin{[fx("0x6")](){const t=this[fx("0x7")];if(!t[fx("0x0")][fx("0x4")](fx("0xa")))return;t.plugins[fx("0x1")](fx("0xb"))[fx("0x3")](fx("0x8"));const e=t[fx("0x0")][fx("0x1")]("TrackChangesEditing"),n=t[fx("0x2")];e[fx("0xc")][fx("0x9")](fx("0x8"),(t=>Qr(n,fx("0x5"),t)))}}const mx=["enableCommand","TrackChangesEditing","activeMarkers","commandName","isBlock","formatBlock","registerElementLabel","addClass","end","get","insertParagraph","highest","span","insert","checkChild","_descriptionFactory","registerDescriptionCallback","showSuggestionHighlights","downcastDispatcher","markerRange","format","markerName","*Insert:* %0","data","has","toViewPosition","nodeAfter","type","bindElementToMarker","_registerLegacyDescription","mapper","*Change to:* %0","isTouching","ELEMENT_PARAGRAPH","isLimit","start","model","schema","plugins","editor","$text","_enableDefaultAttributesIntegration","getItemLabel","writer","Paragraph","afterInit","addMarker:suggestion:insertion","ck-suggestion-marker--active","paragraph","includes","editing"];var bx,px;bx=mx,px=431,function(t){for(;--t;)bx.push(bx.shift())}(++px);const Ex=function(t,e){return mx[t-=0]};class _x extends t.Plugin{[Ex("0x16")](){const t=this.editor;if(!t.plugins[Ex("0x1")](Ex("0x15")))return;const e=t.locale,n=t[Ex("0xf")].get(Ex("0x1d"));n[Ex("0x2b")][Ex("0x22")](Ex("0x19"),(t=>Qr(e,Ex("0xa"),t))),n[Ex("0x12")](Ex("0x19")),n[Ex("0x1c")](Ex("0x26")),t[Ex("0x1b")][Ex("0x2e")].on("addMarker:suggestion:insertion",Tx(t),{priority:Ex("0x27")}),t[Ex("0x0")][Ex("0x2e")].on(Ex("0x17"),((e,n,r)=>{r.options[Ex("0x2d")]&&Tx(t,{showActiveMarker:!1})(e,n,r)}),{priority:Ex("0x27")});const r=n[Ex("0x2b")];r[Ex("0x2c")]((n=>{if("insertion"!==n[Ex("0x4")])return;const{start:i,end:o}=n.getFirstRange();if(!i[Ex("0x9")](o)||!i[Ex("0x3")])return;const s=t[Ex("0xd")].schema,x=i[Ex("0x3")];return s[Ex("0x20")](x)&&!s[Ex("0xb")](x)&&s[Ex("0x2a")](x,Ex("0x11"))?{type:"insertion",content:Qr(e,Ex("0x32"),r[Ex("0x13")](x,1))}:void 0})),this[Ex("0x6")]()}[Ex("0x6")](){const t=this[Ex("0x10")],e=t.locale;t.plugins.get(Ex("0x1d"))._descriptionFactory[Ex("0x2c")]((t=>{if(Ex("0x21")!=t[Ex("0x4")])return;const{data:n}=t;return n&&"paragraph"==n[Ex("0x1f")]?{type:Ex("0x30"),content:Qr(e,Ex("0x8"),Qr(e,Ex("0xa")))}:void 0}))}}function Tx(t,{showActiveMarker:e=!0}={}){return(n,r,i)=>{const o=t.plugins[Ex("0x25")](Ex("0x1d")),s=r[Ex("0x2f")][Ex("0xc")],x=r[Ex("0x2f")][Ex("0x24")],a=t[Ex("0xd")][Ex("0xe")];if(!s[Ex("0x9")](x)||!s[Ex("0x3")])return;const c=s[Ex("0x3")];if(a[Ex("0x20")](c)&&!a[Ex("0xb")](c)&&a[Ex("0x2a")](c,Ex("0x11"))){if(!i.consumable.consume(r.markerRange,n.name))return;const t=i[Ex("0x14")].createUIElement(Ex("0x28"),{class:"ck-suggestion-marker-split"}),s=i[Ex("0x7")][Ex("0x2")](x);e&&o[Ex("0x1e")][Ex("0x1a")](r[Ex("0x31")])&&i[Ex("0x14")][Ex("0x23")](Ex("0x18"),t),i[Ex("0x14")][Ex("0x29")](s,t),i.mapper[Ex("0x5")](t,r.markerName)}}}const yx=["plugins","_enableDefaultAttributesIntegration","type","editor","formatBlock","afterInit","formatInline","get","TrackChangesEditing","locale","commandName","has","RemoveFormatEditing","_registerLegacyDescription","removeFormat","_descriptionFactory"];var Cx,Ax;Cx=yx,Ax=370,function(t){for(;--t;)Cx.push(Cx.shift())}(++Ax);const kx=function(t,e){return yx[t-=0]};class Ix extends t.Plugin{[kx("0x3")](){const t=this[kx("0x1")];t[kx("0xe")][kx("0x9")](kx("0xa"))&&(t[kx("0xe")][kx("0x5")]("TrackChangesEditing")[kx("0xf")](kx("0xc")),this[kx("0xb")]())}[kx("0xb")](){const t=this.editor;t.plugins[kx("0x5")](kx("0x6"))[kx("0xd")].registerDescriptionCallback((e=>{if(kx("0x2")!=e.type&&kx("0x4")!=e[kx("0x0")])return;const{data:n}=e;return n&&kx("0xc")==n[kx("0x8")]?{type:"format",content:Qr(t[kx("0x7")],"*Remove all formatting*")}:void 0}))}}const Rx=["afterInit","plugins","RestrictedEditingModeEditing","acceptSuggestion","discardAllSuggestions","acceptSelectedSuggestions","discardSelectedSuggestions","TrackChangesEditing","discardSuggestion","enableCommand","get","has","goToPreviousRestrictedEditingException","acceptAllSuggestions","trackChanges"];var Sx,vx;Sx=Rx,vx=247,function(t){for(;--t;)Sx.push(Sx.shift())}(++vx);const Nx=function(t,e){return Rx[t-=0]};class Lx extends t.Plugin{[Nx("0x8")](){const t=this.editor;if(!t[Nx("0x9")][Nx("0x4")](Nx("0xa")))return;const e=t[Nx("0x9")][Nx("0x3")](Nx("0x0"));e.enableCommand(Nx("0x5")),e[Nx("0x2")]("goToNextRestrictedEditingException");const n=t[Nx("0x9")][Nx("0x3")](Nx("0xa"));n[Nx("0x2")](Nx("0x7")),n[Nx("0x2")](Nx("0xb")),n[Nx("0x2")](Nx("0x1")),n[Nx("0x2")](Nx("0x6")),n[Nx("0x2")](Nx("0xc")),n[Nx("0x2")](Nx("0xd")),n[Nx("0x2")](Nx("0xe"))}}const Mx=["includes","addClass","registerElementLabel","addMarker:suggestion","writer","ck-suggestion-marker-","model","element","showSuggestionHighlights","softBreak","TrackChangesEditing","requires","editing","downcastDispatcher","markerRange","addMarker:suggestion:deletion","ELEMENT_LINE_BREAK","createUIElement","merge","name","consumable","high","test","init","plugins","span","activeMarkers","get","editor","insert","addMarker:suggestion:insertion","data","markerName","options","bindElementToMarker","shiftEnter","split","deletion"];var wx,Ox;wx=Mx,Ox=234,function(t){for(;--t;)wx.push(wx.shift())}(++Ox);const Fx=function(t,e){return Mx[t-=0]};class Dx extends t.Plugin{static get[Fx("0x5")](){return[Eo.ShiftEnter]}[Fx("0x11")](){const t=this[Fx("0x16")],e=t.plugins[Fx("0x15")]("TrackChangesEditing");e.enableCommand(Fx("0x1d")),t[Fx("0x6")][Fx("0x7")].on(Fx("0x18"),Px(t),{priority:"high"}),t[Fx("0x6")][Fx("0x7")].on(Fx("0x9"),Px(t),{priority:Fx("0xf")}),t[Fx("0x19")][Fx("0x7")].on(Fx("0x23"),((e,n,r)=>{r[Fx("0x1b")][Fx("0x2")]&&Px(t,{showActiveMarker:!1})(e,n,r)})),e._descriptionFactory[Fx("0x22")](Fx("0x3"),(e=>Qr(t.locale,Fx("0xa"),e)))}}function Px(t,{showActiveMarker:e=!0}={}){return(n,r,i)=>{const o=t[Fx("0x12")].get(Fx("0x4"));if(!i[Fx("0xe")][Fx("0x10")](r[Fx("0x8")],n[Fx("0xd")]))return;const s=t[Fx("0x0")];for(const t of r.markerRange.getItems()){if(!t.is(Fx("0x1"),"softBreak"))continue;const n=Fx("0x1f")==r[Fx("0x1a")][Fx("0x1e")](":")[1]?Fx("0xc"):"split",x=i[Fx("0x24")][Fx("0xb")](Fx("0x13"),{class:Fx("0x25")+n}),a=i.mapper.toViewPosition(s.createPositionBefore(t));e&&o[Fx("0x14")][Fx("0x20")](r[Fx("0x1a")])&&i.writer[Fx("0x21")]("ck-suggestion-marker--active",x),i[Fx("0x24")][Fx("0x17")](a,x),i.mapper[Fx("0x1c")](x,r[Fx("0x1a")])}}}const Bx=["get","model","FORMAT_RESTRICTED_DISABLED","has","TrackChangesEditing","change","isCollapsed","commandName","selection","from","commands","plugins","enableCommand","forceValue","StandardEditingModeEditing","afterInit","value","formatInline","registerDescriptionCallback","formatBlock","editor","commandParams","document"];var Ux,jx;Ux=Bx,jx=242,function(t){for(;--t;)Ux.push(Ux.shift())}(++jx);const Gx=function(t,e){return Bx[t-=0]};class Vx extends t.Plugin{[Gx("0x3")](){const t=this[Gx("0x8")],e=t[Gx("0xc")],n=t.locale;if(!t[Gx("0x16")][Gx("0xe")](Gx("0x2")))return;const r=t[Gx("0x16")][Gx("0xb")](Gx("0xf")),i="restrictedEditingException",o=t[Gx("0x15")][Gx("0xb")](i);r[Gx("0x0")](i,((t,n={})=>{const s=e[Gx("0xa")][Gx("0x13")];if(s[Gx("0x11")])return void t(n);const x=void 0!==n[Gx("0x1")]?n[Gx("0x1")]:!o[Gx("0x4")];e[Gx("0x10")]((()=>{const t=Array[Gx("0x14")](s.getRanges());for(const n of t){const t=x?[n]:Qi(i,n,e);for(const e of t)r.markInlineFormat(e,{commandName:i,commandParams:[{forceValue:x}]})}}))})),r._descriptionFactory[Gx("0x6")]((t=>{if(Gx("0x7")!=t.type&&Gx("0x5")!=t.type)return;const{data:e}=t;return e&&e[Gx("0x12")]==i?e[Gx("0x9")][0][Gx("0x1")]?{type:"format",content:Qr(n,"FORMAT_RESTRICTED_ENABLED")}:{type:"format",content:Qr(n,Gx("0xd"))}:void 0}))}}const Hx=["editor","DataSchema","locale","config","forceValue","TrackChangesEditing","inline","GeneralHtmlSupport","_descriptionFactory","format","has","FORMAT_STYLE","ghsAttributes","style","registerDescriptionCallback","styleName","_registerBlockAttribute","commandParams","normalizeConfig","definitions","getGhsAttributeNameForElement","_registerLegacyDescription","registerAttributeLabel","type","plugins","*Set format:* %0","Style","get","toLowerCase","afterInit","add","_registerInlineAttribute","block","formatInline","*Remove format:* %0"];var zx,Wx;zx=Hx,Wx=116,function(t){for(;--t;)zx.push(zx.shift())}(++Wx);const Kx=function(t,e){return Hx[t-=0]};class qx extends t.Plugin{[Kx("0x12")](){const t=this[Kx("0x18")];if(!t[Kx("0xd")][Kx("0x22")](Kx("0xf"))||!t[Kx("0xd")].has(Kx("0x19")))return;const e=t[Kx("0xd")][Kx("0x10")]("TrackChangesEditing"),n=t.locale,r=t[Kx("0x1b")][Kx("0x10")](Kx("0x2"))||{},i=t.plugins[Kx("0x10")](Kx("0x1f")),o=t[Kx("0xd")][Kx("0x10")]("StyleUtils")[Kx("0x7")](t[Kx("0xd")].get(Kx("0x19")),r[Kx("0x8")]);e._enableDefaultAttributesIntegration(Kx("0x2"));const s=new Set;for(const t of o[Kx("0x15")]){const e=i[Kx("0x9")](t.element);s[Kx("0x13")](e)}const x=new Set;for(const t of o[Kx("0x1e")]){const e=i[Kx("0x9")](t.element);x[Kx("0x13")](e);for(const e of t[Kx("0x1")])x[Kx("0x13")](e)}for(const t of s)e[Kx("0x5")](t),e[Kx("0x20")][Kx("0xb")](t,Qr(n,"FORMAT_STYLE"));for(const t of x)e[Kx("0x14")](t),e[Kx("0x20")][Kx("0xb")](t,Qr(n,Kx("0x0")));this[Kx("0xa")]()}[Kx("0xa")](){const t=this[Kx("0x18")],e=t[Kx("0x1a")];t[Kx("0xd")].get(Kx("0x1d"))[Kx("0x20")][Kx("0x3")]((t=>{if("formatBlock"!=t.type&&Kx("0x16")!=t[Kx("0xc")])return;const{data:n}=t;return n&&Kx("0x2")===n.commandName?n[Kx("0x6")][0][Kx("0x1c")]?{type:Kx("0x21"),content:Qr(e,Kx("0xe"),n[Kx("0x6")][0][Kx("0x4")][Kx("0x11")]())}:{type:"format",content:Qr(e,Kx("0x17"),n[Kx("0x6")][0][Kx("0x4")][Kx("0x11")]())}:void 0}))}}const Xx=["insertTable","tablePaste","getColumnIndexes","ELEMENT_TABLE_ROW_WITH_TEXT","getCellLocation","getContainedElement","insertTableRowBelow","ELEMENT_TABLE_WITH_TEXT","first","detach","getRanges","createRangeOn","highest","registerPostFixer","getRowIndexes","start","getSelectionAffectedTableCells","getChangedMarkers","minColumn","insertion","commands","subType","end","substr","batch","from","isInContent","ELEMENT_TABLE_ROW","markMultiRangeDeletion","_getCoordsForCells","model","startsWith","differ","change","setSelection","document","nodeAfter","getChildren","change:data","isArray","min","has","MAX_SAFE_INTEGER","some","mapper","ELEMENT_TABLE_COLUMN_WITH_TEXT","execute","isTouching","maxColumn","getAttribute","_descriptionFactory","toViewElement","discard","length","root","max","plugins","isIntersectingWithRange","*Insert:* %0","map","markMultiRangeInsertion","nodeBefore","downcastDispatcher","showSuggestionHighlights","registerElementLabel","$graveyard","registerDescriptionCallback","registerCustomCallback","tableColumn","position","toLowerCase","rootName","createRangeIn","data","afterInit","findAncestor","tableRow","removeClass","cell","last","TableUtils","push","type","removeTableColumn","fromRange","createTableWalker","tableCell","getFirstRange","*Remove:* %0","every","hasAttribute","add","enqueueChange","TrackChangesEditing","MIN_SAFE_INTEGER","maxRow","_tablePostFixingSubtypes","TableEditing","insert","$textProxy","_getSuggestionCoords","selection","getItems","_tableSuggestions","ELEMENT_TABLE_COLUMN","order","get","values","_setupColumnsRowsFixing","editor","selectTableRow","_suggestionFactory","table","_acceptFormatSuggestionCallbackFactory","isEqual","filter","span","refresh","locale","colspan","deletion","getChanges","join","enableCommand","addRange","name","removeTableRow","item"];var $x,Zx;$x=Xx,Zx=333,function(t){for(;--t;)$x.push($x.shift())}(++Zx);const Yx=function(t,e){return Xx[t-=0]};class Qx extends t.Plugin{constructor(t){super(t),this[Yx("0x13")]=[Yx("0x7f"),Yx("0x77")],this[Yx("0x1a")]=new Set}[Yx("0x7d")](){const t=this.editor,e=t[Yx("0x51")][Yx("0x56")][Yx("0x18")];if(!t[Yx("0x6b")][Yx("0x5c")](Yx("0x14")))return;const n=t[Yx("0x29")],r=t.plugins[Yx("0x1d")](Yx("0x10")),i=t[Yx("0x6b")][Yx("0x1d")](Yx("0x3"));r[Yx("0x65")][Yx("0x73")](Yx("0x23"),(t=>Qr(n,"ELEMENT_TABLE",t))),this[Yx("0x1f")](),r[Yx("0x2e")](Yx("0x33")),r[Yx("0x2e")](Yx("0x21")),r[Yx("0x2e")]("selectTableColumn");for(const n of["insertTableRowAbove",Yx("0x39")]){const o=t.commands[Yx("0x1d")](n);r.enableCommand(n,(n=>{t[Yx("0x51")][Yx("0x54")]((t=>{n();const s="above"===o.order,x=i.getSelectionAffectedTableCells(e),a=i.getRowIndexes(x),c=s?a.first-1:a[Yx("0x2")]+1,l=x[0][Yx("0x7e")](Yx("0x23")),u=i[Yx("0x8")](l,{startRow:c,endRow:c}),d=Array[Yx("0x4c")](u)[Yx("0x6e")]((e=>t.createRangeOn(e[Yx("0x1")])));r.markMultiRangeInsertion(d,"tableRow")}))}))}for(const n of["insertTableColumnLeft","insertTableColumnRight"]){const o=t[Yx("0x47")][Yx("0x1d")](n);r[Yx("0x2e")](n,(n=>{t.model[Yx("0x54")]((t=>{n();const s="left"===o[Yx("0x1c")],x=i.getSelectionAffectedTableCells(e),a=i[Yx("0x35")](x),c=s?a[Yx("0x3b")]-1:a[Yx("0x2")]+1,l=x[0].findAncestor(Yx("0x23")),u=i[Yx("0x8")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Yx("0x4c")](u).map((e=>t[Yx("0x3e")](e[Yx("0x1")])));r[Yx("0x6f")](d,Yx("0x77"))}))}))}for(const n of[Yx("0x31"),Yx("0x6")]){const o=n[Yx("0x4a")](11),s=o[Yx("0x79")](),x=s[Yx("0x4a")](0,3)+Yx("0x27"),a=Yx("0x23")+o,c=Yx("0x5b")+o,l=Yx("0x6a")+o;r.enableCommand(n,(()=>{t.model[Yx("0x54")]((t=>{const o=i[Yx("0x43")](e),u=o[0][Yx("0x7e")](Yx("0x23"));let d;if("removeTableRow"==n){const t=i[Yx("0x41")](o);d={startRow:t[Yx("0x3b")],endRow:t[Yx("0x2")],includeAllSlots:!0}}else{const t=i[Yx("0x35")](o);d={startColumn:t[Yx("0x3b")],endColumn:t[Yx("0x2")],includeAllSlots:!0}}const g=i[Yx("0x8")](u,d),f=Array[Yx("0x4c")](g).map((({cell:t})=>t)),h=Jx(f[Yx("0x26")]((t=>t[Yx("0xd")](x)))),m=Jx(f[Yx("0x26")]((t=>!t[Yx("0xd")](x))))[Yx("0x6e")]((e=>t[Yx("0x3e")](e))),b=r[Yx("0x4f")](m,a);if(b&&("tableRow"==b[Yx("0x48")]||"tableColumn"==b[Yx("0x48")])){const e=this[Yx("0x17")](b);for(const n of h){const r=t[Yx("0x3e")](n),o=i[Yx("0x37")](n),a=n[Yx("0x64")](x)-1,u=e[c],d=e[l];u<=o[s]&&o[s]+a<=d&&b.addRange(r)}}}))}))}function o(n){const r=Array[Yx("0x4c")](e.getRanges()).map((t=>s.LiveRange[Yx("0x7")](t)));t.model.change((e=>{const i=e[Yx("0x4b")];n=n[Yx("0x26")]((t=>Yx("0x74")!=t[Yx("0x69")][Yx("0x7a")])),e.setSelection(n),t[Yx("0x47")][Yx("0x1d")](Yx("0x31"))[Yx("0x28")](),t[Yx("0x61")](Yx("0x31"),{forceDefaultExecution:!0}),t[Yx("0x51")][Yx("0xf")]((()=>{t.model.enqueueChange(i,(t=>{const e=r[Yx("0x26")]((t=>Yx("0x74")!=t[Yx("0x69")][Yx("0x7a")]));e.length>0&&t[Yx("0x55")](e);for(const t of r)t.detach()}))}))}))}function a(n){t[Yx("0x51")][Yx("0x54")]((r=>{const i=Array[Yx("0x4c")](e[Yx("0x3d")]())[Yx("0x6e")]((t=>s.LiveRange[Yx("0x7")](t))),o=[];for(const t of n)for(const e of t[Yx("0x19")]({shallow:!0}))o.push(e);for(const e of o)Yx("0x74")!=e[Yx("0x69")][Yx("0x7a")]&&(r.setSelection(r.createPositionAt(e,0)),t[Yx("0x47")][Yx("0x1d")]("removeTableColumn").refresh(),t[Yx("0x61")](Yx("0x6"),{forceDefaultExecution:!0}));const x=i.filter((t=>Yx("0x74")!=t[Yx("0x69")].rootName));x[Yx("0x68")]>0&&r[Yx("0x55")](x);for(const t of i)t[Yx("0x3c")]()}))}function c(t,e){return e[Yx("0xc")]((e=>t[Yx("0x5e")]((t=>t[Yx("0x49")][Yx("0x25")](e[Yx("0x42")])||e[Yx("0x49")].isEqual(t[Yx("0x42")])))))}function l(t,e){return t[Yx("0x5e")]((t=>e[Yx("0x5e")]((e=>t[Yx("0x49")][Yx("0x62")](e.start)))))}t[Yx("0x7c")][Yx("0x71")].on("addMarker:suggestion",((t,e,n)=>{if(!n.options[Yx("0x72")])return;const r=e[Yx("0x32")];if(!r)return;const i=n[Yx("0x5f")][Yx("0x66")](r);function o(t){return Array[Yx("0x5a")](t)?t:[t]}i&&Yx("0x9")===r[Yx("0x30")]&&(0,x.setHighlightHandling)(i,n.writer,((t,e,n)=>n.addClass(o(e.classes),t)),((t,e,n)=>n[Yx("0x0")](o(e.classes),t)))}),{priority:Yx("0x3f")}),r._descriptionFactory[Yx("0x75")]((t=>{if("insertion"!=t[Yx("0x5")]&&Yx("0x2b")!=t[Yx("0x5")])return;const e=t[Yx("0x38")]();if(null!=e&&e.is("element",Yx("0x23"))){if(Yx("0x46")==t[Yx("0x5")]){const e=t[Yx("0x19")]()[Yx("0x26")]((t=>t.is(Yx("0x16"))))[Yx("0x6e")]((t=>t[Yx("0x7c")]));if(e[Yx("0x68")])return{type:Yx("0x46"),content:Qr(n,"*Insert:* %0",Qr(n,Yx("0x3a"),'"'+e.join(" ")+'"'))}}if(Yx("0x2b")==t[Yx("0x5")]){const e=t[Yx("0x19")]().filter((t=>t.is(Yx("0x16")))).map((t=>t.data));if(e[Yx("0x68")])return{type:Yx("0x2b"),content:Qr(n,"*Remove:* %0",Qr(n,Yx("0x3a"),'"'+e[Yx("0x2d")](" ")+'"'))}}}})),r[Yx("0x65")][Yx("0x75")]((t=>{if(Yx("0x7f")==t[Yx("0x48")]){const e=t[Yx("0x19")]()[Yx("0x26")]((t=>t.is(Yx("0x16")))).map((t=>t[Yx("0x7c")])),r=this[Yx("0x17")](t),i=r[Yx("0x12")]-r.minRow+1;if(Yx("0x46")==t[Yx("0x5")])return e[Yx("0x68")]?{type:Yx("0x46"),content:Qr(n,Yx("0x6d"),Qr(n,Yx("0x36"),[i,'"'+e.join(" ")+'"']))}:{type:Yx("0x46"),content:Qr(n,Yx("0x6d"),Qr(n,Yx("0x4e"),i))};if(Yx("0x2b")==t[Yx("0x5")])return e[Yx("0x68")]?{type:"deletion",content:Qr(n,Yx("0xb"),Qr(n,Yx("0x36"),[i,'"'+e[Yx("0x2d")](" ")+'"']))}:{type:Yx("0x2b"),content:Qr(n,Yx("0xb"),Qr(n,"ELEMENT_TABLE_ROW",i))}}if(Yx("0x77")==t[Yx("0x48")]){const e=t[Yx("0x19")]()[Yx("0x26")]((t=>t.is(Yx("0x16"))))[Yx("0x6e")]((t=>t[Yx("0x7c")])),r=this[Yx("0x17")](t),i=r[Yx("0x63")]-r[Yx("0x45")]+1;if(Yx("0x46")==t[Yx("0x5")])return e.length?{type:Yx("0x46"),content:Qr(n,Yx("0x6d"),Qr(n,Yx("0x60"),[i,'"'+e[Yx("0x2d")](" ")+'"']))}:{type:Yx("0x46"),content:Qr(n,"*Insert:* %0",Qr(n,"ELEMENT_TABLE_COLUMN",i))};if("deletion"==t[Yx("0x5")])return e[Yx("0x68")]?{type:Yx("0x2b"),content:Qr(n,Yx("0xb"),Qr(n,Yx("0x60"),[i,'"'+e[Yx("0x2d")](" ")+'"']))}:{type:"deletion",content:Qr(n,"*Remove:* %0",Qr(n,Yx("0x1b"),i))}}})),r._suggestionFactory[Yx("0x76")](Yx("0x46"),Yx("0x7f"),Yx("0x67"),o),r[Yx("0x22")].registerCustomCallback(Yx("0x2b"),Yx("0x7f"),"accept",o),r[Yx("0x22")][Yx("0x76")](Yx("0x46"),Yx("0x77"),Yx("0x67"),a),r[Yx("0x22")][Yx("0x76")](Yx("0x2b"),Yx("0x77"),"accept",a),r[Yx("0x22")][Yx("0x76")](Yx("0x46"),Yx("0x77"),Yx("0x2d"),c),r[Yx("0x22")][Yx("0x76")](Yx("0x2b"),Yx("0x77"),"join",c),r._suggestionFactory.registerCustomCallback("insertion",Yx("0x7f"),Yx("0x2d"),l),r[Yx("0x22")][Yx("0x76")](Yx("0x2b"),"tableRow","join",l)}[Yx("0x24")](){const t=this[Yx("0x20")],e=t[Yx("0x51")].document[Yx("0x18")];return(n,r)=>{t.model[Yx("0x54")]((i=>{const{commandName:o,commandParams:x}=r;let a=n[0][Yx("0x49")][Yx("0x70")];x&&x[0]&&!1===x[0].forceValue&&(a=n[0][Yx("0x42")][Yx("0x57")]);const c=i[Yx("0x7b")](a);if(Yx("0x74")==c.root[Yx("0x7a")])return;const l=Array[Yx("0x4c")](e[Yx("0x3d")]())[Yx("0x6e")]((t=>s.LiveRange[Yx("0x7")](t)));i[Yx("0x55")](c),t.commands[Yx("0x1d")](o).refresh(),x[Yx("0x4")]({forceDefaultExecution:!0}),t[Yx("0x61")](o,...x);const u=l[Yx("0x26")]((t=>Yx("0x74")!=t.root.rootName));u.length>0&&i[Yx("0x55")](u);for(const t of l)t[Yx("0x3c")]()}))}}[Yx("0x50")](t){const e=this[Yx("0x20")][Yx("0x6b")].get("TableUtils");let n=Number[Yx("0x5d")],r=Number[Yx("0x11")],i=Number[Yx("0x5d")],o=Number[Yx("0x11")];for(const s of t){if(Yx("0x74")==s[Yx("0x69")][Yx("0x7a")])continue;const{row:t,column:x}=e[Yx("0x37")](s),a=s[Yx("0xd")]("rowspan")?s[Yx("0x64")]("rowspan")-1:0,c=s[Yx("0xd")](Yx("0x2a"))?s.getAttribute("colspan")-1:0;n=t<n?t:n,r=t+a>r?t+a:r,i=x<i?x:i,o=x+c>o?x+c:o}return{minRow:n,maxRow:r,minColumn:i,maxColumn:o}}_setupColumnsRowsFixing(){const t=this[Yx("0x20")],e=t.plugins[Yx("0x1d")](Yx("0x10")),n=t[Yx("0x6b")].get("TableUtils");t[Yx("0x51")][Yx("0x56")].on(Yx("0x59"),(()=>{const n=Array[Yx("0x4c")](t.model[Yx("0x56")][Yx("0x53")][Yx("0x44")]());for(const{name:t,data:r}of n){const{group:n,id:i,subType:o}=e._splitMarkerName(t);if("suggestion"!=n)continue;if(null!=r.oldRange)continue;const s=e.getSuggestion(i);this._tablePostFixingSubtypes.includes(o)&&this._tableSuggestions[Yx("0xe")](s)}}),{priority:"low"});const r=(t,e)=>{let r=!1;const i=e[Yx("0x3e")](t),o=t.findAncestor("table"),s=n[Yx("0x37")](t);for(const e of this[Yx("0x1a")]){const n=e[Yx("0x48")],x=n[Yx("0x52")](Yx("0x34")),a=n[Yx("0x4a")](x?10:5),c=a[Yx("0x79")](),l=c[Yx("0x4a")](0,3)+Yx("0x27"),u=Yx("0x5b")+a,d=Yx("0x6a")+a;if(!e[Yx("0x4d")])continue;if(o!=e[Yx("0xa")]()[Yx("0x42")][Yx("0x7e")](Yx("0x23")))continue;if(e[Yx("0x6c")](i))continue;const g=t[Yx("0xd")](l)?t[Yx("0x64")](l)-1:0,f=this[Yx("0x17")](e),h=f[u],m=f[d];h<=s[c]&&s[c]+g<=m&&(e[Yx("0x2f")](i),r=!0)}return r};t[Yx("0x51")][Yx("0x56")][Yx("0x40")]((e=>{let n=!1;for(const i of t[Yx("0x51")][Yx("0x56")][Yx("0x53")][Yx("0x2c")]())if(Yx("0x15")==i[Yx("0x5")])if(Yx("0x7f")==i[Yx("0x30")])for(const t of i.position[Yx("0x57")][Yx("0x58")]())n=n||r(t,e);else Yx("0x9")==i[Yx("0x30")]&&(n=n||r(i[Yx("0x78")][Yx("0x57")],e));return n}))}[Yx("0x17")](t){return this._getCoordsForCells(t[Yx("0x3d")]()[Yx("0x6e")]((t=>t.start[Yx("0x57")])))}}function Jx(t){return Array[Yx("0x4c")](new Set(t)[Yx("0x1e")]())}const ta=["low","_tablePostFixingSubtypes","add","findAncestor","table","afterInit","execute","formatBlock","getSuggestions","value","mergeTableCellRight","mergeTableCellLeft","_acceptFormatSuggestionCallbackFactory","has","forceDefaultExecution","formatInline","registerDescriptionCallback","root","getSelectionAffectedTableCells","get","stop","_descriptionFactory","mergeTableCellDown","type","trackChanges","accept","getFirstPosition","from","editor","plugins","direction","horizontally","*Split cell:* vertically","map","mergeTableCellUp","rootName","format","subType","_areMergableCells","model","length","TableEditing","highest","commandName","refresh","_suggestionFactory","set:isEnabled","createTableWalker","registerCustomCallback","commands","containsRange","return","getRanges","splitTableCellVertically","cell","$graveyard","detach","fromRange","requires","author","getCellLocation","locale","isInContent","getAncestors","_areSelectedCellsMergable","tableCell","markMultiRangeBlockFormat","splitTableCellHorizontally","mergeTableCells","TableUtils","size","change","push","find","selection","document","*Merge cells*","createRangeOn","insertion","enableCommand","isEnabled","filter"];var ea,na;ea=ta,na=284,function(t){for(;--t;)ea.push(ea.shift())}(++na);const ra=function(t,e){return ta[t-=0]};class ia extends t.Plugin{static get[ra("0x14")](){return[Qx]}[ra("0x31")](){const t=this.editor,e=t.model[ra("0x25")][ra("0x24")],n=t[ra("0x17")];if(!t[ra("0x49")][ra("0x39")](ra("0x3")))return;const r=t[ra("0x49")][ra("0x3f")]("TrackChangesEditing"),i=t[ra("0x49")][ra("0x3f")](ra("0x1f")),o=t[ra("0x49")][ra("0x3f")](Qx);o[ra("0x2d")][ra("0x22")](ra("0x1e")),r[ra("0x29")](ra("0x1e"),(()=>{const e=i[ra("0x3e")](t.model[ra("0x25")][ra("0x24")]);t[ra("0x1")][ra("0x21")]((()=>{r[ra("0x1c")](e,{commandName:ra("0x1e"),commandParams:[]},[],ra("0x1e"))}))})),t.commands[ra("0x3f")]("mergeTableCells").on(ra("0x32"),((e,n)=>{t[ra("0xb")].get(ra("0x44"))[ra("0x35")]&&(n[ra("0x2")]>0&&n[n[ra("0x2")]-1]&&n[n[ra("0x2")]-1][ra("0x3a")]||r._isForcedDefaultExecutionBlock||this[ra("0x1a")]()||e[ra("0x40")]())}),{priority:ra("0x4")});for(const e of[ra("0x4e"),ra("0x36"),ra("0x42"),ra("0x37")]){const n=t[ra("0xb")][ra("0x3f")](e);r[ra("0x29")](e,(()=>{const e=t[ra("0x1")][ra("0x25")].selection[ra("0x46")]()[ra("0x19")]().find((t=>t.is("element",ra("0x1b")))),i=n.value;t[ra("0x1")][ra("0x21")]((()=>{r[ra("0x1c")]([e,i],{commandName:ra("0x1e"),commandParams:[]},[],"mergeTableCells")}))}))}for(const e of["splitTableCellVertically",ra("0x1d")]){const n=t[ra("0xb")].get(e);r[ra("0x29")](e,(()=>{const o=i[ra("0x3e")](t[ra("0x1")][ra("0x25")][ra("0x24")])[0],s=o[ra("0x2f")](ra("0x30")),{column:x,row:a}=i[ra("0x16")](o);let c=[];if(ra("0x4b")==n[ra("0x4a")]){const t=i.createTableWalker(s,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[ra("0x47")](t)[ra("0x4d")]((t=>t[ra("0x10")]))}else{const t=i[ra("0x9")](s,{column:x,includeAllSlots:!0});c=Array.from(t).map((t=>t.cell))}t.model.change((t=>{r.markBlockFormat(t[ra("0x27")](o),{commandName:e,commandParams:[]},c,e)}))}))}r[ra("0x41")][ra("0x3c")]((t=>{if(ra("0x33")!=t[ra("0x43")]&&ra("0x3b")!=t[ra("0x43")])return;const{data:e}=t;return e&&"mergeTableCells"==e.commandName?{type:ra("0x50"),content:Qr(n,ra("0x26"))}:void 0})),r._descriptionFactory[ra("0x3c")]((t=>{if("formatBlock"!=t[ra("0x43")]&&"formatInline"!=t[ra("0x43")])return;const{data:e}=t;return e?ra("0xf")==e[ra("0x5")]?{type:ra("0x50"),content:Qr(n,ra("0x4c"))}:ra("0x1d")==e.commandName?{type:"format",content:Qr(n,"*Split cell:* horizontally")}:void 0:void 0}));const x=o[ra("0x38")]();for(const t of["mergeTableCellUp",ra("0x36"),ra("0x42"),ra("0x37")])r[ra("0x7")][ra("0xa")](ra("0x33"),t,"accept",x);for(const t of[ra("0xf"),ra("0x1d")])r._suggestionFactory[ra("0xa")](ra("0x33"),t,ra("0x45"),x);r[ra("0x7")][ra("0xa")](ra("0x33"),ra("0x1e"),ra("0x45"),(n=>{t[ra("0x1")][ra("0x21")]((r=>{const i=Array.from(e[ra("0xe")]())[ra("0x4d")]((t=>s.LiveRange[ra("0x13")](t)));r.setSelection(n),t[ra("0xb")][ra("0x3f")](ra("0x1e"))[ra("0x6")](),t[ra("0x32")](ra("0x1e"),{forceDefaultExecution:!0});const o=i[ra("0x2b")]((t=>ra("0x11")!=t[ra("0x3d")][ra("0x4f")]));o[ra("0x2")]>0&&r.setSelection(o);for(const t of i)t[ra("0x12")]()}))}));for(const e of[ra("0x4e"),ra("0x42"),"mergeTableCellLeft",ra("0x36")]){const n=t[ra("0xb")][ra("0x3f")](e);n.on(ra("0x8"),((e,r,i)=>{if(i){const r=t[ra("0x1")][ra("0x25")].selection.getFirstPosition()[ra("0x19")]()[ra("0x23")]((t=>t.is("element",ra("0x1b"))));this._areMergableCells(n[ra("0x35")],r)||(e[ra("0xd")]=!1,e[ra("0x40")]())}}),{priority:ra("0x2c")})}}[ra("0x1a")](){const t=this[ra("0x48")][ra("0xb")].get(ra("0x1e")),e=this.editor[ra("0x49")][ra("0x3f")](ra("0x1f"));if(!t[ra("0x2a")])return!1;const n=e[ra("0x3e")](this[ra("0x48")][ra("0x1")].document.selection);for(const t of n)for(const e of n)if(t!=e&&!this[ra("0x0")](t,e))return!1;return!0}[ra("0x0")](t,e){const n=this[ra("0x48")].plugins.get("TrackChangesEditing"),r=this[ra("0x48")].model[ra("0x27")](t),i=this[ra("0x48")][ra("0x1")].createRangeOn(e),o=new Set,s=new Set;for(const t of n[ra("0x34")]())if((ra("0x28")==t[ra("0x43")]||"deletion"==t.type||ra("0x1e")==t[ra("0x51")])&&t[ra("0x18")])for(const e of t[ra("0xe")]())e[ra("0xc")](r,!0)&&o[ra("0x2e")](t.type+":"+t[ra("0x15")].id),e[ra("0xc")](i,!0)&&s[ra("0x2e")](t[ra("0x43")]+":"+t[ra("0x15")].id);if(o[ra("0x20")]!=s[ra("0x20")])return!1;for(const t of o)if(!s[ra("0x39")](t))return!1;return!0}}const oa=["showSuggestionHighlights","editing","setTableRowHeader","highest","data","bindElementToMarker","activeMarkers","commandName","markerNameToElements","TableUtils","TrackChangesEditing","_suggestionFactory","nodeBefore","forceValue","headingRows","_splitMarkerName","formatBlock","markerRange","ck-suggestion-marker-","accept","_registerLegacyDescription","_acceptFormatSuggestionCallbackFactory","FORMAT_REGULAR_COLUMN","commandParams","data-suggestion","FORMAT_REGULAR_ROW","addMarker:suggestion","markerName","createTableWalker","setTableColumnHeader","consume","get","parent","_enableDefaultAttributesIntegration","removeMarker:suggestion","removeClass","has","addClass","FORMAT_HEADER_COLUMN","plugins","cell","*Format:* %0","_handleLegacySuggestions","requires","getCellLocation","nodeAfter","registerDescriptionCallback","mapper","options","headingColumns","unbindElementFromMarkerName","includes","writer","registerAttributeLabel","consumable","toViewElement","FORMAT_HEADER_ROW","registerCustomCallback","locale","afterInit","editor","ck-suggestion-marker--active","_descriptionFactory","type","getSuggestion"];var sa,xa;sa=oa,xa=315,function(t){for(;--t;)sa.push(sa.shift())}(++xa);const aa=function(t,e){return oa[t-=0]};class ca extends t.Plugin{static get[aa("0x35")](){return[Qx]}[aa("0x4")](){const t=this.editor;if(!t.plugins[aa("0x2e")]("TableEditing"))return;const e=t[aa("0x3")],n=t[aa("0x31")][aa("0x29")](aa("0x14"));n._enableDefaultAttributesIntegration("setTableRowHeader",[],[aa("0x18")]),n[aa("0x2b")](aa("0x27"),[],[aa("0x3b")]),n[aa("0x7")][aa("0x3f")]("headingRows",Qr(e,aa("0x1"))),n._descriptionFactory[aa("0x3f")](aa("0x3b"),Qr(e,aa("0x30"))),this[aa("0x34")]()}[aa("0x34")](){const t=this[aa("0x5")].plugins.get(aa("0x14")),e=this[aa("0x5")].plugins[aa("0x29")](aa("0x13")),n=this.editor[aa("0x31")][aa("0x29")](Qx)[aa("0x1f")]();function r({showActiveMarker:n=!0,setDataAttribute:r=!0}={}){return(i,o,s)=>{const{type:x,id:a}=t[aa("0x19")](o[aa("0x25")]),c=t[aa("0x9")](a),l=c[aa("0xe")];if("formatBlock"!=c[aa("0x8")]||!l||aa("0x27")!=l[aa("0x11")])return;if(o.item)return void i.stop();if(!s[aa("0x40")][aa("0x28")](o[aa("0x1b")],i.name))return;const u=o.markerRange.start[aa("0x37")],d=o[aa("0x1b")].end[aa("0x16")],g=u[aa("0x2a")][aa("0x2a")],{column:f}=e[aa("0x36")](u),{column:h}=e[aa("0x36")](d);for(let i=f;i<=h;i++){const c=e[aa("0x26")](g,{column:i,includeAllSlots:!1});for(const e of c){const i=e[aa("0x32")],c=s[aa("0x39")][aa("0x0")](i);s.writer.addClass(aa("0x1c")+x,c),r&&s.writer.setAttribute(aa("0x22"),a,c),s[aa("0x39")][aa("0xf")](c,o[aa("0x25")]),n&&(t[aa("0x10")][aa("0x3d")](o[aa("0x25")])?s[aa("0x3e")][aa("0x2f")](aa("0x6"),c):s[aa("0x3e")][aa("0x2d")](aa("0x6"),c))}}}}t[aa("0x15")][aa("0x2")](aa("0x1a"),aa("0xc"),aa("0x1d"),n),t[aa("0x15")][aa("0x2")](aa("0x1a"),"setTableColumnHeader","accept",n),this[aa("0x5")][aa("0xb")].downcastDispatcher.on("addMarker:suggestion",r(),{priority:aa("0xd")}),this.editor[aa("0xe")].downcastDispatcher.on(aa("0x24"),((t,e,n)=>{n[aa("0x3a")][aa("0xa")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:aa("0xd")}),this[aa("0x5")][aa("0xb")].downcastDispatcher.on(aa("0x2c"),((e,n,r)=>{const{type:i,id:o}=t[aa("0x19")](n[aa("0x25")]),s=t[aa("0x9")](o),x=s[aa("0xe")];if(aa("0x1a")!=s[aa("0x8")]||!x||aa("0x27")!=x[aa("0x11")])return;const a=r[aa("0x39")][aa("0x12")](n[aa("0x25")]);if(a)for(const t of a)r[aa("0x3e")][aa("0x2d")](aa("0x1c")+i,t),r[aa("0x3e")][aa("0x2d")](aa("0x6"),t),r.writer.removeAttribute(aa("0x22"),t),r[aa("0x39")][aa("0x3c")](t,n[aa("0x25")])}),{priority:aa("0xd")}),this[aa("0x1e")]()}[aa("0x1e")](){const t=this[aa("0x5")],e=t[aa("0x3")];function n(t){return{type:"format",content:Qr(e,aa("0x33"),t)}}t[aa("0x31")][aa("0x29")](aa("0x14"))[aa("0x7")][aa("0x38")]((t=>{if("formatBlock"!=t[aa("0x8")])return;const{data:r}=t;if(r){if("setTableRowHeader"==r[aa("0x11")]){const t=r[aa("0x21")][0][aa("0x17")];return n(Qr(e,aa(t?"0x1":"0x23")))}if(aa("0x27")==r[aa("0x11")]){const t=r[aa("0x21")][0][aa("0x17")];return n(Qr(e,aa(t?"0x30":"0x20")))}}}))}}const la=["trackChanges","unwrap","tableCellBorderStyle","markMultiRangeDeletion","getContainedElement","find","markerAttributes","editing","insertionRanges","some","tableCell","TrackChangesEditing","nextSibling","getRanges","suggestion-td","add","set","type","_suggestionFactory","options","removeMarkers","Users","reduce","getColumns","removeMarker","end","paragraph","endColumn","for","document","ck-suggestion-marker--active","_getCoordsForCells","filter","formatBlock","tablePaste","selection","getSuggestionCallback","createPositionBefore","includes","removeColumns","rowInsertionRanges","name","$graveyard","markers","columnInsertionIndexes","accept","showSuggestionHighlights","getChanges","discard","oldRange","change","registerCustomCallback","every","registerPostFixer","markerName","updateMarker","getRange","tableCellBackgroundColor","isEmpty","tablePasteColumn","stop","dataDowncast","push","subType","insertion","createRangeIn","move","table","createRange","get","getRows","getChangedMarkers","*Replace table cells*","hasSuggestion","requires","suggestion:formatBlock:tablePasteCell","tableCellHorizontalAlignment","fromEntries","tablePasteChainId","differ","getSelectionAffectedTableCells","isInContent","attributes","tableCellBorderColor","cells","join","remove","isEqual","getMarkers","getTableIfOnlyTableInContent","clipboardOutput","getAllAdjacentSuggestions","tableCellVerticalAlignment","deletion","_splitMarkerName","documentSelection","editor","TableUtils","suggestionUnloaded","findAncestor","rowInsertionIndexes","getItems","suggestion","createElement","cell","fill","wrap","getChildren","createTableWalker","elementToElement","tableCellSuggestion","root","previous","high","conversion","register","startsWith","start","endRow","insert","plugins","getChild","tableCellBorderWidth","setAttributes","tablePasteCell","low","author","getAttributes","map","element","rows","last","insertContent","deletionRanges","containsRange","rootName","markMultiRangeBlockFormat","position","insertRows","markMultiRangeInsertion","redo","locale","removeRows","has","TableClipboard","_descriptionFactory","markerToHighlight","getSuggestions","tableCellPadding","from","createRangeOn","previousSibling","length","model"];var ua,da;ua=la,da=167,function(t){for(;--t;)ua.push(ua.shift())}(++da);const ga=function(t,e){return la[t-=0]},fa=[ga("0x6d"),ga("0x46"),ga("0x8f"),ga("0x3f"),ga("0x4f"),ga("0x2c"),ga("0x87")],ha=Object[ga("0x40")](fa.map((t=>[t,null])));class ma extends t.Plugin{static get[ga("0x3d")](){return[Qx]}afterInit(){const t=this.editor;if(!t[ga("0x6b")][ga("0x82")](ga("0x83")))return;const n=t[ga("0x6b")][ga("0x38")](ga("0x98")),r=t[ga("0x6b")][ga("0x38")](ga("0x54")),i=t[ga("0x6b")][ga("0x38")](Qx),o=t[ga("0x6b")][ga("0x38")]("TableClipboard");i._tablePostFixingSubtypes[ga("0x31")]("tablePasteRow",ga("0x2e")),t.model.schema[ga("0x66")](ga("0x61"),{allowIn:ga("0x97"),allowContentOf:"tableCell",isLimit:!0}),t[ga("0x65")][ga("0x60")]({model:ga("0x61"),view:ga("0x1")});let s=null;t[ga("0x8c")].on("insertContent",((i,x)=>{const[a,c]=x,l=x[x[ga("0x8b")]-1];l&&l.forceDefaultExecution||n._isForcedDefaultExecutionBlock||this[ga("0x53")].commands.get(ga("0x8d")).value&&function(t,e,n,r,i){if(e&&!e.is(ga("0x52")))return!1;const o=i[ga("0x4c")](t,n);if(!o||!pa(o,void 0,r))return!1;const s=r[ga("0x43")](n[ga("0x10")][ga("0x16")]);if(!s[ga("0x8b")])return!1;const x=s[0][ga("0x56")](ga("0x36")),a=r.getRowIndexes(s),c=r.getColumnIndexes(s),l={startRow:a.first,endRow:a.last,startColumn:c.first,endColumn:c[ga("0x76")]};return 1==s.length&&(l[ga("0x69")]+=r[ga("0x39")](o)-1,l[ga("0xe")]+=r[ga("0xa")](o)-1),pa(x,l,r)}(a,c,t.model,r,o)&&(i[ga("0x2f")](),s={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[ga("0x8c")][ga("0x25")]((()=>{t[ga("0x8c")][ga("0x77")](x[0],x[1],x[2],{forceDefaultExecution:!0});const r=(0,e.uid)(),{rowInsertionRanges:i,columnInsertionRanges:o,insertionRanges:a,deletionRanges:c,cells:l}=s;i[ga("0x8b")]&&n[ga("0x7e")](i,"tablePasteRow",{tablePasteChainId:r}),o[ga("0x8b")]&&n.markMultiRangeInsertion(o,ga("0x2e"),{tablePasteChainId:r}),a[ga("0x8b")]&&n.markMultiRangeInsertion(a,"tablePaste",{tablePasteChainId:r,skipNestingCheck:!0}),c[ga("0x8b")]&&n[ga("0x90")](c,"tablePaste",{tablePasteChainId:r,skipNestingCheck:!0});const u=n[ga("0x7b")](l[ga("0x73")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],ga("0x6f"),{tablePasteChainId:r});if(u){const e=u[ga("0x4b")](),n=[];for(const{element:r,attributes:i}of l){if(!i)continue;const o=t[ga("0x8c")][ga("0x89")](r),s=e[ga("0x92")]((t=>t[ga("0x2b")]()[ga("0x4a")](o)));s&&n[ga("0x31")]([s[ga("0x1c")],i])}n.length&&u.setAttribute(ga("0x93"),Object[ga("0x40")](n))}s=null})))}),{priority:e.priorities[ga("0x64")]+10}),t[ga("0x6b")][ga("0x38")](ga("0x83")).on("_replaceTableSlotCell",((t,e)=>{const[n,r,,i]=e;if(!s)return;t[ga("0x2f")]();const o=n[ga("0x5b")],x=r,a=ba(o),c=ba(x);t.return=o;let l=null,u=null;if(c||a)if(a&&!c){i.remove(o.getChild(0));for(const t of Array[ga("0x88")](x[ga("0x5e")]()))i[ga("0x6a")](t,o,ga("0xc"));const t=s[ga("0x57")][ga("0x19")](n.row),e=s[ga("0x1f")][ga("0x19")](n.column);t||e||(l=i[ga("0x34")](o))}else c&&!a&&(u=i[ga("0x34")](o));else{const t=i[ga("0x5a")]("tableCellSuggestion"),e=i[ga("0x5a")](ga("0x61"));i[ga("0x5d")](i.createRangeIn(o),e),i.insert(t,o,0);for(const e of Array.from(x.getChildren()))i[ga("0x6a")](e,t,"end");l=i[ga("0x89")](t),u=i[ga("0x89")](e)}const d=Array.from(x[ga("0x72")]()).filter((([t])=>fa[ga("0x19")](t)));s.cells[ga("0x31")]({element:o,attributes:d[ga("0x8b")]?Object[ga("0x40")](d):null}),l&&s[ga("0x95")][ga("0x31")](l),u&&s[ga("0x78")][ga("0x31")](u)}),{priority:"high"}),r.on("insertColumns",((e,n)=>{const[i,o={}]=n;if(!s)return;const x=o.at||0,a=o.columns||1;s.columnInsertionIndexes=new Array(a)[ga("0x5c")](x)[ga("0x73")](((t,e)=>t+e));for(const{cell:e}of r[ga("0x5f")](i,{startColumn:x,endColumn:x+a-1}))s.columnInsertionRanges[ga("0x31")](t[ga("0x8c")].createRangeOn(e))}),{priority:ga("0x70")}),r.on(ga("0x7d"),((e,n)=>{const[i,o={}]=n;if(!s)return;const x=o.at||0,a=o[ga("0x75")]||1;s[ga("0x57")]=new Array(a)[ga("0x5c")](x)[ga("0x73")](((t,e)=>t+e));for(const{cell:e}of r.createTableWalker(i,{startRow:x,endRow:x+a-1}))s[ga("0x1b")][ga("0x31")](t[ga("0x8c")][ga("0x89")](e))}),{priority:ga("0x70")}),n[ga("0x84")].registerDescriptionCallback((e=>{if(e[ga("0x32")]&&e[ga("0x32")][ga("0x67")]("tablePaste"))return e.previous?{}:{type:ga("0x33"),content:Qr(t[ga("0x80")],ga("0x3b"))}}));const x=()=>!1;for(const t of["tablePaste",ga("0x2e"),"tablePasteRow","tablePasteCell"])n._suggestionFactory.registerCustomCallback("insertion",t,ga("0x48"),x),n[ga("0x5")][ga("0x26")](ga("0x50"),t,ga("0x48"),x),n[ga("0x5")][ga("0x26")](ga("0x14"),t,ga("0x48"),x);n[ga("0x5")][ga("0x26")](ga("0x14"),ga("0x6f"),"discard",x),n[ga("0x5")][ga("0x26")](ga("0x14"),ga("0x6f"),ga("0x20"),((e,n,r)=>{const i=e[ga("0x73")]((t=>t[ga("0x91")]()))[ga("0x13")]((t=>t)),o=new Map(i[ga("0x73")]((t=>[t,null])));if(s)for(const{element:t,attributes:e}of s[ga("0x47")])e&&o[ga("0x3")](t,e);else if(r&&r[ga("0x93")])for(const[e,n]of Object.entries(r[ga("0x93")])){const r=t.model[ga("0x1e")].get(e),i=r?r.getRange()[ga("0x91")]():null;i&&o[ga("0x3")](i,n)}t.model.change((t=>{for(const[e,n]of o)t[ga("0x6e")]({...ha,...n},e)}))}));const a=(e,r)=>{n[ga("0x5")].registerCustomCallback(e,ga("0x15"),r,((i,o,s)=>{t[ga("0x8c")][ga("0x25")]((t=>{const x=[];for(const t of i){const e=t[ga("0x68")].nodeAfter;e.is(ga("0x74"),"tableCellSuggestion")&&x[ga("0x31")](e)}n[ga("0x5")][ga("0x17")](e,null,r)(i,o,s);for(const e of x)ga("0x1d")!=e[ga("0x62")][ga("0x7a")]&&t.unwrap(e)}))}))};a("insertion",ga("0x20")),a(ga("0x33"),"discard"),a("deletion",ga("0x20")),a(ga("0x50"),ga("0x23")),n[ga("0x5")][ga("0x26")](ga("0x33"),"tablePasteRow",ga("0x23"),(t=>{const e=t.map((t=>t[ga("0x91")]())),n=e[0][ga("0x56")](ga("0x36")),{minRow:o,maxRow:s}=i[ga("0x12")](e);r[ga("0x81")](n,{at:o,rows:s-o+1})})),n[ga("0x5")][ga("0x26")](ga("0x33"),ga("0x2e"),"discard",(t=>{const e=t[ga("0x73")]((t=>t[ga("0x91")]())),n=e[0][ga("0x56")](ga("0x36")),{minColumn:o,maxColumn:s}=i[ga("0x12")](e);r[ga("0x1a")](n,{at:o,columns:s-o+1})}));const c=(t,e)=>{if(!e[ga("0x32")]||!e.subType[ga("0x67")](ga("0x15")))return;const r=e[ga("0x45")][ga("0x41")],i=n[ga("0x86")]().filter((t=>t[ga("0x44")]&&t[ga("0x45")]&&t.attributes[ga("0x41")]==r));i[ga("0x8b")]&&e[ga("0x4e")]()[ga("0x8b")]!=i[ga("0x8b")]&&i[ga("0x9")](((t,e)=>(t.next=e,e[ga("0x63")]=t,e)))};function l(t,e=!0){const{id:r}=n._splitMarkerName(t[ga("0x29")]),i=["ck-suggestion-marker","ck-suggestion-marker-insertion"],o=n.activeMarkers[ga("0x19")](t[ga("0x29")]);return o&&i.push(ga("0x11")),{classes:i,attributes:{"data-suggestion":r},priority:o&&e?3010:3e3}}n.on("suggestionLoaded",c,{priority:ga("0x64")}),n.on(ga("0x55"),c,{priority:"high"}),t[ga("0x8c")][ga("0x10")][ga("0x28")]((()=>{let e=!1;const r=Array[ga("0x88")](t.model.document[ga("0x42")][ga("0x3a")]());for(const{name:i,data:o}of r){const{group:r,type:s,id:x}=n[ga("0x51")](i);if(ga("0x59")!=r||ga("0x50")!=s||o[ga("0x24")])continue;if(!n[ga("0x3c")](x))continue;const a=n.getSuggestion(x).getRanges(),c=t[ga("0x6b")][ga("0x38")](ga("0x8")).me;for(const t of n[ga("0x86")]())if(t[ga("0x44")]&&t[ga("0x71")]==c&&ga("0x14")==t.type&&ga("0x6f")==t[ga("0x32")]&&t[ga("0x0")]()[ga("0x27")]((t=>a[ga("0x96")]((e=>e[ga("0x79")](t,!0))))))for(const n of t[ga("0x4e")]())n[ga("0x44")]&&(n[ga("0x23")](),e=!0)}return e})),t[ga("0x8c")].document[ga("0x28")]((e=>{const r=t.commands[ga("0x38")](ga("0x7f"));if(!r||!r._createdBatches.has(e.batch))return!1;let i=!1;const o=t[ga("0x6b")][ga("0x38")](ga("0x8")).me,s=t[ga("0x8c")][ga("0x10")][ga("0x42")][ga("0x22")](),x=Array[ga("0x88")](t.model[ga("0x10")][ga("0x42")].getChangedMarkers()).filter((({name:t,data:e})=>{const{group:r,subType:i,authorId:s}=n[ga("0x51")](t);return ga("0x59")==r&&ga("0x15")==i&&s==o.id&&!e[ga("0x24")]}));for(const t of s){if(ga("0x6a")!=t[ga("0x4")]||ga("0x61")!=t[ga("0x1c")]||1!=t[ga("0x8b")])continue;const n=e[ga("0x37")](t[ga("0x7c")],t.position.getShiftedBy(1));if(!x[ga("0x92")]((({data:t})=>t.newRange.isEqual(n))))for(const{name:t,data:r}of x)if(n.containsRange(r.newRange)){e[ga("0x2a")](t,{range:n}),i=!0;break}}return i})),t.model[ga("0x10")][ga("0x28")]((e=>{let r=!1;const i=t[ga("0x6b")][ga("0x38")](ga("0x8")).me,o=n[ga("0x86")]().filter((t=>t[ga("0x44")]&&t[ga("0x71")]==i)),s=new Set,x=new Set;for(const t of o)if(ga("0x15")==t.subType)for(const e of t.getMarkers()){const n=e[ga("0x2b")]().getContainedElement();if(n)if(n.is(ga("0x74"),ga("0x61"))&&ba(n)){t[ga("0xb")](e[ga("0x1c")]),s.add(n),r=!0;const i=n[ga("0x99")],o=n[ga("0x8a")],a=i&&i.is(ga("0x74"),ga("0x61")),c=o&&o.is(ga("0x74"),ga("0x61"));a&&!s[ga("0x82")](i)&&x[ga("0x2")](i),c&&!s[ga("0x82")](o)&&x[ga("0x2")](o)}else n.is(ga("0x74"),ga("0xd"))&&n[ga("0x2d")]&&(t[ga("0xb")](e.name),r=!0)}else if(ga("0x6f")==t[ga("0x32")]){if(!t[ga("0x45")]||!t[ga("0x45")][ga("0x41")])continue;const e=t[ga("0x45")].markerAttributes;if(e&&Object.keys(e).length)continue;const n=t[ga("0x45")][ga("0x41")];let i=!0,s=!0;for(const e of o)if(e[ga("0x32")]&&e[ga("0x32")][ga("0x67")](ga("0x15"))){if(!e.attributes[ga("0x41")]){s=!1;break}if(e.id!=t.id&&e.attributes[ga("0x41")]==n){i=!1;break}}s&&i&&(t[ga("0x7")](),r=!0)}for(const t of s)e[ga("0x49")](t);for(const t of x)e[ga("0x8e")](t);return r})),t.conversion.for("editingDowncast")[ga("0x85")]({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>l(t),converterPriority:ga("0x64")}),t[ga("0x65")][ga("0xf")](ga("0x30"))[ga("0x85")]({model:ga("0x3e"),view:(t,e)=>e[ga("0x6")][ga("0x21")]?l(t,!1):null,converterPriority:ga("0x64")});const u=t[ga("0x94")].view;this.listenTo(u.document,ga("0x4d"),((t,e)=>{const n=[];for(const t of u[ga("0x34")](e.content)[ga("0x58")]())t.is(ga("0x74"),ga("0x1"))&&n[ga("0x31")](t);u[ga("0x25")]((t=>{for(const e of n)t[ga("0x35")](t[ga("0x34")](e),t[ga("0x18")](e)),t.remove(e)}))}))}}function ba(t){if(t[ga("0x2d")])return!0;const e=t[ga("0x6c")](0);return e.is(ga("0x74"),ga("0xd"))&&e[ga("0x2d")]}function pa(t,e={},n){for(const{isAnchor:r,cellHeight:i,cellWidth:o}of n.createTableWalker(t,{includeAllSlots:!0,...e}))if(!r||1!=i||1!=o)return!1;return!0}const Ea=["resizeTableWidth","selection","TrackChangesEditing","discard","getAttribute","author","plugins","getTableColumnsWidths","format","accept","getSuggestionCallback","data","subType","getContainedElement","*Format:* resize table","registerCustomCallback","commandParams","getSelectedElement","columnWidths","get","formatGroupId","editor","handleSuggestionDescription","_descriptionFactory","bind","document","Users","change","tableWidth","has","getColumnGroupElement","afterInit","resizeTable","type","formatBlock","registerDescriptionCallback","_suggestionFactory"];var _a,Ta;_a=Ea,Ta=188,function(t){for(;--t;)_a.push(_a.shift())}(++Ta);const ya=function(t,e){return Ea[t-=0]};class Ca extends t.Plugin{[ya("0x1c")](){if(!this[ya("0x12")][ya("0x3")][ya("0x1a")]("TableColumnResizeEditing"))return;const t=this[ya("0x12")][ya("0x3")].get("TrackChangesEditing");t.enableCommand(ya("0x22"),this.handleResizeTableWidthCommand[ya("0x15")](this)),t[ya("0x21")][ya("0xc")](ya("0x1f"),ya("0x1d"),"accept",t[ya("0x21")][ya("0x7")](ya("0x1f"),null,"discard")),t[ya("0x21")][ya("0xc")]("formatBlock",ya("0x1d"),ya("0x0"),t[ya("0x21")][ya("0x7")](ya("0x1f"),null,ya("0x6"))),t[ya("0x14")][ya("0x20")](this[ya("0x13")].bind(this))}handleResizeTableWidthCommand(t,e){const n=this.editor[ya("0x3")][ya("0x10")](ya("0x24")),r=this.editor.plugins.get("TableColumnResizeEditing"),i=e.table||this[ya("0x12")].model[ya("0x16")][ya("0x23")][ya("0xe")]();this[ya("0x12")].model[ya("0x18")]((()=>{const o=r[ya("0x1b")](i);let s=o?r[ya("0x4")](o):null,x=i[ya("0x1")](ya("0x19"))||null;const a=e[ya("0x19")]||x,c=e[ya("0xf")]||s,l=this.editor.plugins[ya("0x10")](ya("0x17")).me;for(const t of n.getSuggestions()){const e=t[ya("0xa")]();if(ya("0x1d")===t[ya("0x9")]&&e===i){t[ya("0x2")]!==l&&t[ya("0x0")]();const e=t[ya("0x8")][ya("0xd")];x=e[0][ya("0x19")],s=e[0].columnWidths;break}}t({table:i,tableWidth:a,columnWidths:c}),n.markBlockFormat(i,{commandName:"resizeTableWidth",commandParams:[{tableWidth:x,columnWidths:s}],formatGroupId:ya("0x1d")},[],ya("0x1d"))}))}[ya("0x13")](t){if("formatBlock"!=t[ya("0x1e")]&&"formatInline"!=t[ya("0x1e")])return;const{data:e}=t;if(e&&ya("0x1d")===e[ya("0x11")]){const t=ya("0xb");return{type:ya("0x5"),content:Qr(this.editor.locale,t)}}}}const Aa=["get","has","plugins","editor","afterInit","enableCommand"];var ka,Ia;ka=Aa,Ia=224,function(t){for(;--t;)ka.push(ka.shift())}(++Ia);const Ra=function(t,e){return Aa[t-=0]};class Sa extends t.Plugin{[Ra("0x2")](){const t=this[Ra("0x1")];t[Ra("0x0")][Ra("0x5")]("Template")&&t.plugins[Ra("0x4")]("TrackChangesEditing")[Ra("0x3")]("insertTemplate")}}const va=["enableCommand","tableOfContents","editor","insertTableOfContents","afterInit","TrackChangesEditing","_descriptionFactory","get","registerElementLabel","plugins"];var Na,La;Na=va,La=490,function(t){for(;--t;)Na.push(Na.shift())}(++La);const Ma=function(t,e){return va[t-=0]};class wa extends t.Plugin{[Ma("0x4")](){const t=this[Ma("0x2")];if(!t.commands[Ma("0x7")](Ma("0x3")))return;t[Ma("0x9")][Ma("0x7")](Ma("0x5"))[Ma("0x0")]("insertTableOfContents");const e=t[Ma("0x9")][Ma("0x7")](Ma("0x5")),n=t.locale;e[Ma("0x6")][Ma("0x8")](Ma("0x1"),(t=>Qr(n,"ELEMENT_TABLE_OF_CONTENTS",t)))}}const Oa=["schema","document","has","editor","differ","_splitMarkerName","TrackChangesEditing","registerElementLabel","createRange","afterInit","getChangedMarkers","forward","element","isEqual","from","isTouching","end","title-content","ELEMENT_TITLE","registerPostFixer","isCollapsed","getNearestSelectionRange","model","start","suggestion","newRange","plugins"];var Fa,Da;Fa=Oa,Da=429,function(t){for(;--t;)Fa.push(Fa.shift())}(++Da);const Pa=function(t,e){return Oa[t-=0]};class Ba extends t.Plugin{[Pa("0xc")](){const t=this[Pa("0x6")];if(!t[Pa("0x2")][Pa("0x5")]("Title"))return;const e=t[Pa("0x2")].get(Pa("0x9"));e._descriptionFactory[Pa("0xa")](Pa("0x14"),(()=>Qr(t.locale,Pa("0x15")))),t[Pa("0x19")][Pa("0x4")][Pa("0x16")]((n=>{let r=!1;const i=Array[Pa("0x11")](t[Pa("0x19")][Pa("0x4")][Pa("0x7")][Pa("0xd")]());for(const{name:o,data:s}of i){const{group:i}=e[Pa("0x8")](o);if(Pa("0x0")!==i||!s[Pa("0x1")])continue;const x=s[Pa("0x1")],a=x[Pa("0x13")].nodeBefore;if(!a||!a.is(Pa("0xf"),"title-content"))continue;if(!x[Pa("0x1a")][Pa("0x12")](x[Pa("0x13")]))continue;const c=t[Pa("0x19")][Pa("0x3")][Pa("0x18")](x.end,Pa("0xe"));if(c&&c[Pa("0x17")]){const t=n[Pa("0xb")](x.start,c[Pa("0x1a")]);t[Pa("0x10")](x)||(n.updateMarker(o,{range:t}),r=!0)}r||(n.removeMarker(o),r=!0)}return r}))}}const Ua=["undo","editor","UndoEditing","enableCommand","plugins","has","TrackChangesEditing","afterInit","get"];var ja,Ga;ja=Ua,Ga=396,function(t){for(;--t;)ja.push(ja.shift())}(++Ga);const Va=function(t,e){return Ua[t-=0]};class Ha extends t.Plugin{[Va("0x7")](){const t=this[Va("0x1")],e=t[Va("0x4")][Va("0x8")](Va("0x6"));t.plugins[Va("0x5")](Va("0x2"))&&(e[Va("0x3")](Va("0x0")),e.enableCommand("redo"))}}const za=["plugins","afterInit","TableCaptionEditing","editor","has","enableCommand","TrackChangesEditing","get"];var Wa,Ka;Wa=za,Ka=238,function(t){for(;--t;)Wa.push(Wa.shift())}(++Ka);const qa=function(t,e){return za[t-=0]};class Xa extends t.Plugin{static get requires(){return[Qx]}[qa("0x3")](){const t=this[qa("0x5")];t[qa("0x2")][qa("0x6")](qa("0x4"))&&t.plugins[qa("0x1")](qa("0x0"))[qa("0x7")]("toggleTableCaption")}}const $a=["tableCellWidth","_suggestionFactory","batch","get","format","getSuggestionCallback","enqueueChange","start","formatBlock","markBlockFormat","editor","subType","afterInit","setAttribute","plugins","pluginName","nodeAfter","join","discard","tableCellPadding","tableCellProperties","TablePropertiesEditing","tableBorderWidth","data","tableCellVerticalAlignment","tableBorderColor","tableCellBorderWidth","registerCustomCallback","tableCellBackgroundColor","getFirstPosition","tableWidth","document","_handlePropertyChange","tableCellHeight","_descriptionFactory","_getSuggestion","accept","tableProperties","TableCellPropertiesEditing","has","*Format:* change table cell properties","TrackChangesEditing","getAttribute","enableCommand","handleDiscardAction","registerDescriptionCallback","findAncestor","handleSuggestionDescription","getContainedElement","model","getSelectionAffectedTableCells","commandParams","table"];var Za,Ya;Za=$a,Ya=173,function(t){for(;--t;)Za.push(Za.shift())}(++Ya);const Qa=function(t,e){return $a[t-=0]};class Ja extends t.Plugin{constructor(t){super(t),this[Qa("0x17")]=[Qa("0xb"),"tableBorderStyle",Qa("0x8"),"tableAlignment",Qa("0x10"),"tableHeight","tableBackgroundColor"],this.tableCellProperties=["tableCellBorderColor","tableCellBorderStyle",Qa("0xc"),Qa("0x5"),Qa("0x27"),Qa("0x13"),Qa("0xe"),"tableCellHorizontalAlignment",Qa("0xa")]}static get[Qa("0x1")](){return"TrackChangesTableProperties"}[Qa("0x33")](){const t=this[Qa("0x31")].plugins[Qa("0x2a")](Qa("0x1b"));if(this[Qa("0x31")].plugins[Qa("0x19")](Qa("0x7"))){for(const e of this.tableProperties)t[Qa("0x1d")](e,((t,n)=>{const r=this[Qa("0x31")][Qa("0x23")][Qa("0x11")].selection[Qa("0xf")]()[Qa("0x20")](Qa("0x26"));this[Qa("0x12")](e,[r],this[Qa("0x17")],"tableProperties",t,n)}));t[Qa("0x28")][Qa("0xd")]("formatBlock","tableProperties","accept",t[Qa("0x28")][Qa("0x2c")](Qa("0x2f"),null,Qa("0x4"))),t._suggestionFactory[Qa("0xd")](Qa("0x2f"),"tableProperties",Qa("0x4"),((t,e)=>this[Qa("0x1e")](this[Qa("0x17")],t,e))),t[Qa("0x28")][Qa("0xd")](Qa("0x2f"),Qa("0x17"),Qa("0x3"),(()=>!1))}if(this[Qa("0x31")][Qa("0x0")][Qa("0x19")](Qa("0x18"))){for(const e of this[Qa("0x6")])t[Qa("0x1d")](e,((t,n)=>{const r=this.editor[Qa("0x0")][Qa("0x2a")]("TableUtils")[Qa("0x24")](this[Qa("0x31")][Qa("0x23")][Qa("0x11")].selection);this[Qa("0x12")](e,r,this.tableCellProperties,Qa("0x6"),t,n)}));t._suggestionFactory[Qa("0xd")]("formatBlock","tableCellProperties",Qa("0x16"),t[Qa("0x28")][Qa("0x2c")](Qa("0x2f"),null,Qa("0x4"))),t[Qa("0x28")].registerCustomCallback(Qa("0x2f"),"tableCellProperties",Qa("0x4"),((t,e)=>this[Qa("0x1e")](this[Qa("0x6")],t,e))),t[Qa("0x28")][Qa("0xd")](Qa("0x2f"),Qa("0x6"),Qa("0x3"),(()=>!1))}t[Qa("0x14")][Qa("0x1f")]((t=>this[Qa("0x21")](t)))}[Qa("0x12")](t,e,n,r,i,o){const s=this[Qa("0x31")][Qa("0x0")][Qa("0x2a")](Qa("0x1b"));this[Qa("0x31")][Qa("0x23")][Qa("0x2d")](o[Qa("0x29")],(()=>{for(const t of e)if(this[Qa("0x15")](t,r))i(o);else{const e={};for(const r of n){const n=t[Qa("0x1c")](r);void 0!==n&&(e[r]=n)}i(o),s[Qa("0x30")](t,{commandParams:[e]},[],r)}}))}[Qa("0x1e")](t,e,n){const r=e[0][Qa("0x2e")][Qa("0x2")],i=n[Qa("0x25")][0];this[Qa("0x31")][Qa("0x23")].change((e=>{for(const n of t)void 0!==i[n]?e[Qa("0x34")](n,i[n],r):e.removeAttribute(n,r)}))}[Qa("0x21")](t){if(t[Qa("0x9")])switch(t[Qa("0x32")]){case"tableProperties":return{type:Qa("0x2b"),content:Qr(this[Qa("0x31")].locale,"*Format:* change table properties")};case"tableCellProperties":return{type:"format",content:Qr(this[Qa("0x31")].locale,Qa("0x1a"))}}}[Qa("0x15")](t,e){const n=this[Qa("0x31")][Qa("0x0")][Qa("0x2a")]("TrackChangesEditing");for(const r of n.getSuggestions({skipNotAttached:!0})){const n=r[Qa("0x22")]();if(r[Qa("0x32")]===e&&n===t)return r}return null}}var tc=Function.prototype,ec=Object.prototype,nc=tc.toString,rc=ec.hasOwnProperty,ic=nc.call(Object);const oc=function(t){if(!xe(t)||"[object Object]"!=gt(t))return!1;var e=xn(t);if(null===e)return!0;var n=rc.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&nc.call(n)==ic};const sc=function(t){return oc(t)?void 0:t};var xc=it?it.isConcatSpreadable:void 0;const ac=function(t){return ge(t)||de(t)||!!(xc&&t&&t[xc])};const cc=function t(e,n,r,i,o){var s=-1,x=e.length;for(r||(r=ac),o||(o=[]);++s<x;){var a=e[s];n>0&&r(a)?n>1?t(a,n-1,r,i,o):sn(o,a):i||(o[o.length]=a)}return o};const lc=function(t){return(null==t?0:t.length)?cc(t,1):[]};const uc=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)};var dc=Math.max;const gc=function(t,e,n){return e=dc(void 0===e?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=dc(r.length-e,0),s=Array(o);++i<o;)s[i]=r[e+i];i=-1;for(var x=Array(e+1);++i<e;)x[i]=r[i];return x[e]=n(s),uc(t,this,x)}};const fc=function(t){return function(){return t}};const hc=ee?function(t,e){return ee(t,"toString",{configurable:!0,enumerable:!1,value:fc(e),writable:!0})}:function(t){return t};var mc=Date.now;const bc=function(t){var e=0,n=0;return function(){var r=mc(),i=16-(r-n);if(n=r,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(hc);const pc=function(t){return bc(gc(t,void 0,lc),t+"")}((function(t,e){var n={};if(null==t)return n;var r=!1;e=ur(e,(function(e){return e=mr(e,t),r||(r=e.length>1),e})),oe(t,dn(t),n),r&&(n=tr(n,7,sc));for(var i=e.length;i--;)Wr(n,e[i]);return n})),Ec=["_removeSuggestion","insert","isAtEnd","_setSuggestionData","isUndo","format","isMultiRange","discardAllSuggestions","suggestion","getRanges","_splitMarkerName","getChanges","reconvertMarker","trackChanges.trackFormatChanges","track-changes-suggestion-data-mismatch","root","deletion:join","ck-suggestion-marker-","getSuggestions","_getExternalAuthor","_handleNewSuggestionMarker","options","lowest","size","notReady","track-changes-adapter-already-set","isLimit","_reduceExistingSuggestions","getAllAdjacentSuggestions","stop","trackChangesCommand","_breakSuggestionMarker","removeMarkers","addMarker","markDeletion","getSuggestion","push","_createSuggestion","document","PENDING_ACTION_SUGGESTION","getCommentThread","substring","some","registerPostFixer","_blockAttributeKeys","_isForcedDefaultExecutionBlock","backward","always","markMultiRangeBlockFormat","key","attribute:join","multi","widget","_getSuggestionData","_descriptionFactory","getShiftedBy","$elementName","FORMATTING","editingDowncast","attribute:accept","_getAuthorFromId","Users","_checkSuggestionCorrectness","startsWith","PendingActions","differ","getFirstMarker","insertion","createSelection","_recordAttributeChanges","isEqual","_isRegisteredAttribute","_registerDefaultCallbacks","isTouching","split","_rangeIsInLocalUserInsertion","hasComments","getMarkers","isDocumentOperation","position","updateMarker","attributeNewValue","getChangedMarkers","addMarkerName","formatInline","deletion:","attribute","_findSuggestions","keys","getSuggestionCallback","_enableDefaultAttributesIntegration","formatGroupId","isInsideObject","formatBlock:","from","type","clone","createPositionAfter","unbindElementFromMarkerName","element","_updateSuggestionData","addMarker:suggestion:formatBlock","isOwn","_model","assign","addSuggestionData","values","rejected","change","documentSelection","_refreshSuggestionsChain","isAfter","after","addCommentThread","consume","getNearestSelectionRange","updateSuggestion","isObject","find","commandName","pluginName","getDifference","getUser","data","_onDiscard","accept","range","createRange","LEAVE","set","name","head","forEach","ENTER","writer","_saved","default","markMultiRangeDeletion","creator","groupId","author","activeMarkers","_recordAttributeSuggestions","removed","toUpperCase","warn","selection","setAttribute","previous","acceptSuggestion","_processAttributeChanges","$marker","rethrowUnexpectedError","_customCallbacks","acceptAllSuggestions","join","deletion","containerElement","_mergeNestedSuggestions","fromRange","formatInline:discard","data-suggestion","value","getWalker","track-changes-adapter-missing-getsuggestion","_isDataLoaded","multipleBlocks","getMultiRangeId","formatInline:","removeMarker","markerName","discard","_processAttributeSuggestions","adapter","containsRange","plugins","_cutOutSuggestionMarker","dataDowncast","suggestion:attribute:","_adapter","open","moveTargetPosition","createPositionBefore","accepted","isRemovable","isBlock","getItems","_registerInlineAttribute","collaboration.channelId","markers","attribute:discard","addRange","getIntersection","createElement","isIntersectingWithRange","_setSuggestionRange","suggestion:","_trackFormatChanges","for","filter","isNextTo","splitPosition","end","every","addMarker:suggestion","never","enqueueChange","ck-suggestion-marker-formatInline","length","resolve","unshift","execute","nodeBefore","schema","_isBlockAttribute","trackChanges","discardSuggestion","isArray","sort","getLastMatchingPosition","getCustomProperty","addMarker:suggestion:attribute","refresh","ready","elementToElement","buildSuggestion","track-changes-suggestion-not-found","$text","hasCommentThread","oldValue","ck-suggestion-marker-formatBlock","conversion","has","suggestionLoaded","dataReady","removeComment","containsRangeInObject","pop","before","next","$graveyard","removeMarker:suggestion:attribute","bindElementToMarker","applyOperation","listenTo","createdAt","define","dataToMarker","addHighlight","remove","item","_defaultCallbacks","removeClass","_editor","isCollapsed","editor","locale","_initAriaMarkerChangeAnnouncements","createRangeOn","update:suggestion","discardSelectedSuggestions","isInContent","isLocal","addClass","newRange","getFirstRange","stopListening","_enabledCommands","_inlineAttributeKeys","_addSuggestionMarker","elementEnd","formatBlock","delete","_joinWithAdjacentSuggestions","addUser","_SUGGESTION_ANNOUNCEMENT","@external","markerNameToElements","insertion:chain","requires","markMultiRangeInsertion","originalSuggestionId","getContainedElement","start","highest","suggestionChanged","config","clear","detach","addSuggestion","external:","formatInline:join","deletion:chain","isBefore","formatInline:chain","getAttribute","nodeAfter","markBlockFormat","commands","batch","get","isIntersecting","ck-suggestion-marker","insertion:discard","deletion:discard","markInsertion","tablePasteChainId","splice","attributes","includes","toViewElement","consumable","enableReadOnlyMode","howMany","getRange","_suggestions","catch","rename","setSelection","forceDefaultExecution","model","add","unbind","attribute:","_suggestionFactory","markerToData","containsPosition","_commentsRepository","_element","high","marker-count","return","commentThread","insertContent","showSuggestionHighlights","TrackChangesEditing","isAtStart","mapper","upcast","rootName","attributeOldValue","parent","authorName","normal","map","subType","_registerBlockAttribute","_getMarkerAnnouncementText","_reduceSuggestionAttributeRange","fetchCommentThread","_getAttributeKey","change:data","attributeKey","CommentsRepository","createPositionAt","_joinSuggestions","ck-suggestion-marker--active","formatBlock:discard","registerCustomCallback","_refreshAttributeSuggestionsChain","isExternal","then","getAncestors","enableCommand","removeAttribute","oldRange","fire","_addThreadToSuggestion","markAttributeChange","skipNestingCheck","_suggestionState","acceptSelectedSuggestions","setTo"];var _c,Tc;_c=Ec,Tc=457,function(t){for(;--t;)_c.push(_c.shift())}(++Tc);const yc=function(t,e){return Ec[t-=0]},Cc=yc("0x159");class Ac extends t.Plugin{static get[yc("0xc3")](){return[yc("0x10d"),o.Users,t.PendingActions,ai,gi,Ei,Ai,Fi,Ni,ji,Ki,io,Ao,vo,Fo,jo,Ko,Yo,ns,xs,ds,ys,bs,Rs,Ms,Ps,qs,tx,Vs,co,mo,ox,lx,hx,_x,Ix,Lx,Dx,Vx,qx,Qx,ia,ca,Xa,ma,Ca,wa,Ja,Sa,Ba,Ha]}static get[yc("0x24")](){return yc("0xfb")}constructor(t){function e(t){return t[yc("0x104")]((t=>String.fromCharCode(t)))[yc("0x47")]("")}super(t),this[yc("0x3a")]=!1,this[yc("0x2d")](yc("0x39"),[]),this.on("change:activeMarkers",((e,n,r,i)=>{this[yc("0x13")][yc("0x18")]((()=>{for(const e of[...i,...r])this[yc("0x13")][yc("0x69")][yc("0x94")](e)&&t.editing[yc("0x12d")](e)}))})),this[yc("0x157")]=new ri(this[yc("0xab")][yc("0xec")][yc("0x81")],this[yc("0xab")].locale),this._adapter=null,this[yc("0xf0")]=new kc(this[yc("0xab")]),this[yc("0xe7")]=new Map,this[yc("0xf3")]=t[yc("0x5b")][yc("0xd8")](yc("0x10d")),this[yc("0xb7")]=new Set,this._model=this[yc("0xab")][yc("0xec")],this._suggestionState=new WeakMap,this[yc("0x14e")]=!1,this[yc("0x14d")]=new Set(["$elementName"]),this[yc("0xb8")]=new Set,t[yc("0xca")].define("trackChanges.trackFormatChanges",yc("0x34")),this[yc("0x71")]=t.config[yc("0xd8")](yc("0x12e")),t.config[yc("0xa2")]("trackChanges.mergeNestedSuggestions",!0),this._mergeNestedSuggestions=t.config[yc("0xd8")]("trackChanges.mergeNestedSuggestions"),this[yc("0x13f")]=new d(t,this[yc("0xb7")]),this._initAriaMarkerChangeAnnouncements(),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,56,48,52,49,52])}init(){const t=this[yc("0xab")],n=(t,e)=>{if(yc("0x2")!=t)return yc("0x132")+t;const n=e[yc("0x16b")]("|")[0];return this[yc("0x82")](n)?yc("0x92"):yc("0x7b")};t.conversion[yc("0x72")](yc("0x15b")).markerToHighlight({model:yc("0x129"),view:t=>{const{id:e,type:r,subType:i}=this[yc("0x12b")](t[yc("0x56")]),o=[yc("0xda"),n(r,i)];let s=3e3;return this.activeMarkers.includes(t[yc("0x56")])&&(o[yc("0x145")](yc("0x110")),s=3010),yc("0x48")==r&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t.conversion[yc("0x72")](yc("0x5d"))[yc("0xed")]((e=>{e.on(yc("0x78"),((e,n,r)=>{if(!r[yc("0x136")][yc("0xfa")])return;const i=n[yc("0xa6")];if(!i)return;const o=r.mapper.toViewElement(i);t[yc("0xec")][yc("0x81")].isObject(i)&&o&&!o[yc("0x88")](yc("0x155"))&&o.is(yc("0x49"))&&(0,x.toWidget)(o,r[yc("0x32")])}),{priority:"high"})})),t[yc("0x93")][yc("0x72")](yc("0x5d")).markerToHighlight({model:"suggestion",view:(t,e)=>{if(!e.options[yc("0xfa")])return null;const{type:r,subType:i}=this[yc("0x12b")](t[yc("0x56")]);return{classes:["ck-suggestion-marker",n(r,i)],priority:3e3}}});const r=({showActiveMarkers:e=!0,isAttributeSuggestion:n=!1}={})=>(r,i,o)=>{if(!i[yc("0xa6")])return;const{id:s}=this[yc("0x12b")](i[yc("0x56")]);if(n){const t=this._suggestions[yc("0xd8")](s),e=this[yc("0x10a")](t);if(!this[yc("0x82")](e))return}if(i[yc("0xa6")].is(yc("0x3e")))return void o[yc("0xe3")][yc("0x1e")](i.item,r[yc("0x2e")]);const x=o[yc("0xfd")][yc("0xe2")](i[yc("0xa6")]);if(i.item.is("element")&&t[yc("0xec")].schema[yc("0x65")](i[yc("0xa6")])&&!x[yc("0x88")](yc("0xa4"))){o[yc("0x32")][yc("0xb3")]([yc("0xda"),yc("0x92")],x),o.writer.setAttribute("data-suggestion",s,x),o[yc("0xfd")][yc("0x9e")](x,i.markerName),e&&(this.activeMarkers.includes(i[yc("0x56")])?o[yc("0x32")].addClass(yc("0x110"),x):o[yc("0x32")].removeClass("ck-suggestion-marker--active",x));for(const e of t.model.createRangeIn(i[yc("0xa6")])[yc("0x66")]())o[yc("0xe3")][yc("0x1e")](e,r.name);o.consumable[yc("0x1e")](i[yc("0xa6")],r.name)}};t.conversion[yc("0x72")](yc("0x5d"))[yc("0xed")]((t=>{t.on(yc("0x11"),((t,e,n)=>{n[yc("0x136")][yc("0xfa")]&&r({showActiveMarkers:!1})(t,e,n)}),{priority:yc("0xc8")})})),t.conversion[yc("0x72")](yc("0x5d"))[yc("0xed")]((t=>{t.on(yc("0x89"),((t,e,n)=>{n.options[yc("0xfa")]&&r({showActiveMarkers:!1,isAttributeSuggestion:!0})(t,e,n)}),{priority:yc("0xc8")})})),t[yc("0x93")][yc("0x72")](yc("0x5d"))[yc("0xf1")]({model:yc("0x129"),view:(t,e)=>e[yc("0x136")][yc("0xfa")]?null:{group:"suggestion",name:t.substr(11)}}),t[yc("0x93")].for(yc("0xfe"))[yc("0x8c")]({view:{name:yc("0x129"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=yc("0x70")+t.getAttribute("suggestion-type")+":"+t[yc("0xd3")]("id");return t.getAttribute(yc("0xf6"))&&(n+=":"+t[yc("0xd3")](yc("0xf6"))),e[yc("0x6d")](yc("0x43"),{"data-name":n})}}),t.conversion.for("upcast")[yc("0xa3")]({view:yc("0x129")}),t[yc("0x93")][yc("0x72")](yc("0x15b")).add((t=>{t.on(yc("0x11"),r(),{priority:yc("0xf5")})})),t.conversion[yc("0x72")](yc("0x15b"))[yc("0xed")]((t=>{t.on("addMarker:suggestion:attribute",r({isAttributeSuggestion:!0}),{priority:yc("0xf5")})})),t.conversion.for(yc("0x15b")).add((t=>{t.on("removeMarker:suggestion:formatBlock",((t,e,n)=>{const r=n[yc("0xfd")][yc("0xc1")](e[yc("0x56")]);if(r)for(const t of r)t[yc("0x88")](yc("0xa4"))||(n[yc("0x32")].removeClass([yc("0xda"),"ck-suggestion-marker-formatBlock",yc("0x110")],t),n.writer[yc("0x118")](yc("0x4d"),t),n[yc("0xfd")].unbindElementFromMarkerName(t,e.markerName))}),{priority:yc("0xf5")})})),t.conversion[yc("0x72")]("editingDowncast")[yc("0xed")]((t=>{t.on(yc("0x9d"),((t,e,n)=>{const r=n[yc("0xfd")][yc("0xc1")](e.markerName);if(!r)return;const{id:i}=this[yc("0x12b")](e[yc("0x56")]),o=this._suggestions[yc("0xd8")](i),s=this._getAttributeKey(o);if(this._isBlockAttribute(s))for(const t of r)t[yc("0x88")](yc("0xa4"))||(n[yc("0x32")][yc("0xa8")]([yc("0xda"),"ck-suggestion-marker-formatBlock","ck-suggestion-marker--active"],t),n[yc("0x32")][yc("0x118")](yc("0x4d"),t),n[yc("0xfd")][yc("0xe")](t,e[yc("0x56")]))}),{priority:yc("0xf5")})})),t[yc("0xec")][yc("0x147")].registerPostFixer((e=>{let n=!1;const r=Array[yc("0xa")](t.model.document.differ.getChangedMarkers()),i=new Set;for(const{name:x,data:a}of r){const{group:r,type:c,subType:l,id:u}=this[yc("0x12b")](x);if(yc("0x129")!==r)continue;const d=this[yc("0xe7")][yc("0xd8")](u);if(null!=a[yc("0xb4")]){"formatInline"==c&&(n=n||Sc(a[yc("0xb4")],x,e,t[yc("0xec")][yc("0x81")]));const r=yc("0x2")==c&&this._isBlockAttribute(l[yc("0x16b")]("|")[0]);if(a[yc("0xb4")][yc("0xaa")]||yc("0x9c")==a[yc("0xb4")][yc("0x130")][yc("0xff")]||yc("0xbb")==c&&!Nc(a.newRange)||r&&!Nc(a[yc("0xb4")])||"deletion"==c&&(Rc(s=a.newRange)||(o=s).start[yc("0x101")]==o[yc("0x76")].nodeBefore&&o[yc("0xc7")].isAtEnd))e.removeMarker(x),n=!0;else{if(!d||!d.isInContent)continue;i[yc("0xed")](d)}}}var o,s;return i[yc("0x138")]>0&&(n=!!this._joinWithAdjacentSuggestions(i)||n),n})),t[yc("0xec")].document[yc("0x14c")]((e=>{let n=!1;for(const r of t[yc("0xec")][yc("0x147")].differ.getChanges())if(yc("0x122")==r[yc("0xb")])for(const r of this[yc("0xe7")][yc("0x16")]()){if(r.isMultiRange||!r.isInContent)continue;const i="formatBlock"==r[yc("0xb")],o=this[yc("0x10a")](r),s=o&&this[yc("0x82")](o);if(!i&&!s)continue;const x=r.getFirstRange();if(x[yc("0xc7")].parent!=x.end[yc("0x101")]&&!x[yc("0x76")][yc("0x123")]){const i=t[yc("0xec")][yc("0x10e")](x[yc("0xc7")][yc("0xd4")],yc("0x76")),o=t[yc("0xec")][yc("0x2b")](x[yc("0xc7")],i);e[yc("0x171")](r.getFirstMarker(),{range:o}),n=!0}}return n})),t.model[yc("0x147")][yc("0x14c")]((t=>this._processAttributeChanges(t))),t[yc("0xec")][yc("0x147")][yc("0x14c")]((t=>!t[yc("0xd7")][yc("0xb2")]&&this[yc("0x58")](t))),t.model.on("_afterChanges",(()=>{this[yc("0x3a")]=!1})),t[yc("0xec")].document.on("change:data",((n,r)=>{if(!r.isLocal||r.isUndo)return;if(!this._recordAttributeSuggestions)return;const i=t.model[yc("0x147")][yc("0x162")][yc("0x12c")]();if(0==i[yc("0x7c")])return;const o=[],s=i[yc("0x73")]((t=>yc("0x2")==t.type)),x=i[yc("0x73")]((t=>yc("0x122")==t[yc("0xb")]&&yc("0x8f")!=t[yc("0x2e")])),a=i[yc("0x73")]((t=>yc("0xa5")==t.type&&yc("0x8f")!=t[yc("0x2e")]));for(const e of s)this._isRegisteredAttribute(e.attributeKey)&&o[yc("0x145")]({key:e[yc("0x10c")],newValue:e[yc("0x172")],oldValue:e.attributeOldValue,range:Lc(e[yc("0x2a")],t.model)});for(const e of x){const n=a.find((t=>t[yc("0xf4")]===e._element));if(n){const r=Mc(e[yc("0x170")][yc("0xd4")],t[yc("0xec")]);n[yc("0x2e")]!==e.name&&o[yc("0x145")]({key:yc("0x159"),newValue:e.name,oldValue:n[yc("0x2e")],range:r});for(const[t,i]of n[yc("0xe0")]){if(!this[yc("0x168")](t))continue;const n=e[yc("0xe0")][yc("0xd8")](t);i!==n&&o[yc("0x145")]({key:t,newValue:n,oldValue:i,range:r})}for(const[t,i]of e[yc("0xe0")])this._isRegisteredAttribute(t)&&(n[yc("0xe0")][yc("0x94")](t)||o.push({key:t,newValue:i,oldValue:null,range:r}))}}0!=o[yc("0x7c")]&&t[yc("0xec")][yc("0x7a")](r,(t=>{const n=(0,e.uid)();for(const{range:t,key:e,oldValue:r,newValue:i}of o)this[yc("0x11c")](t,e,r,i,{groupId:n});this[yc("0x13c")](t,o)}))}),{priority:yc("0x137")}),t[yc("0xec")][yc("0x69")].on(yc("0xaf"),((t,e,n)=>{if(null==n){const{id:t}=this[yc("0x12b")](e[yc("0x2e")]),n=this._suggestions[yc("0xd8")](t);n&&n[yc("0x174")](e.name)}})),t.model[yc("0x147")].on(yc("0x10b"),(()=>{const e=Array[yc("0xa")](t[yc("0xec")][yc("0x147")][yc("0x162")][yc("0x173")]())[yc("0x73")]((t=>yc("0x129")===this[yc("0x12b")](t[yc("0x2e")]).group));if(0===e.length)return;e.sort(((t,e)=>{const n=t[yc("0x27")][yc("0x119")],r=e[yc("0x27")][yc("0x119")];return null===n&&null===r?0:null===n&&null!==r?-1:null!==n&&null===r?1:n[yc("0xc7")][yc("0xd1")](r.start)?-1:1}));const n=new Set,r=new Set;for(const{name:t,data:i}of e){const{id:e}=this[yc("0x12b")](t);if(null===i[yc("0x119")]){const e=this._handleNewSuggestionMarker(t);r[yc("0xed")](e)}else{const t=this[yc("0xe7")][yc("0xd8")](e);null!==i[yc("0xb4")]||t[yc("0xb1")]?(n[yc("0xed")](t[yc("0x2f")]),r[yc("0xed")](t)):this[yc("0x121")](t)}}r[yc("0x138")]>0&&this[yc("0x1a")](r);for(const t of n)this[yc("0x11a")](yc("0xc9"),t)})),t[yc("0xec")].on(yc("0x9f"),((e,n)=>{const r=n[0];if(!this._suggestions[yc("0x138")])return;if(!r[yc("0x16f")])return;if(r[yc("0xd7")][yc("0x125")]||!r[yc("0xd7")][yc("0xb2")])return;let i,o;switch(r[yc("0xb")]){case yc("0x122"):i=t[yc("0xec")][yc("0x10e")](r[yc("0x170")]),o=i[yc("0x158")](r[yc("0xe5")]);break;case yc("0x16b"):i=t[yc("0xec")][yc("0x10e")](r[yc("0x75")]),o=t[yc("0xec")].createPositionAt(r[yc("0x61")]);break;case"move":i=t.model.createPositionAt(r.targetPosition),o=i[yc("0x158")](r[yc("0xe5")]);break;default:return}const s=t[yc("0xec")].createRange(i,o);t.model[yc("0x18")]((()=>{for(const{suggestion:t,meta:e}of this._findSuggestions(s)){if(t[yc("0x127")])continue;if(yc("0x0")==t[yc("0xb")])continue;const n=this._getAttributeKey(t);if(n&&this[yc("0x82")](n)&&"split"!=r[yc("0xb")])continue;const x=t[yc("0x27")]&&t[yc("0x27")].multipleBlocks;(yc("0xbb")!=t.type||yc("0x16b")==r.type&&!x)&&(e[yc("0x98")]||yc("0x164")==t[yc("0xb")]&&e[yc("0x12")]||t.getFirstRange()[yc("0x5a")](s)&&this[yc("0x140")](t,i,o))}}))}),{priority:yc("0x137")}),t[yc("0xec")].on("deleteContent",((e,n)=>{const r=n[0],i=n[1];if(i&&i[yc("0xeb")])return;if(this[yc("0x14e")])return;if(!this[yc("0x13f")][yc("0x4e")])return;if(r[yc("0xaa")])return;const o=t.model.schema,{start:s,end:x}=r.getFirstRange(),a=s[yc("0xd4")]&&o[yc("0x13b")](s[yc("0xd4")])?null:o[yc("0x1f")](s,"forward"),c=x[yc("0x80")]&&o[yc("0x13b")](x[yc("0x80")])?null:o[yc("0x1f")](x,yc("0x14f")),l=t[yc("0xec")][yc("0x2b")](a?a.start:s,c?c[yc("0x76")]:x);t[yc("0xec")][yc("0x18")]((e=>{this[yc("0x143")](l);const n=t.model.schema[yc("0x1f")](l[yc("0xc7")]);r.is(yc("0x19"))?e[yc("0xea")](n):r[yc("0x120")](n)})),e[yc("0x13e")]()}),{priority:e.priorities[yc("0x103")]+10}),t[yc("0xec")].on("insertContent",((e,n)=>{const r=n[n[yc("0x7c")]-1];r&&r[yc("0xeb")]||this[yc("0x14e")]||this[yc("0x13f")][yc("0x4e")]&&(t.model.change((()=>{let r=t[yc("0xec")][yc("0xf9")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!r)return;e[yc("0xf7")]=r[yc("0xc")]();const i=r[yc("0x76")][yc("0x80")],o=t[yc("0xec")][yc("0x81")];i&&o[yc("0x65")](i)&&!o[yc("0x21")](i)&&(r=t.model[yc("0x2b")](r[yc("0xc7")],t[yc("0xec")][yc("0x10e")](i,"end"))),this[yc("0xdd")](r)})),e[yc("0x13e")]())}),{priority:"high"}),this.editor[yc("0xd6")][yc("0xed")](yc("0x83"),this[yc("0x13f")]),this.enableCommand(yc("0x83"));const i=new b(t,this[yc("0xe7")]);t[yc("0xd6")][yc("0xed")](yc("0x41"),i),this.enableCommand(yc("0x41"));const o=new y(t,this._suggestions);t[yc("0xd6")].add(yc("0x84"),o),this.enableCommand(yc("0x84")),t[yc("0xd6")][yc("0xed")]("acceptAllSuggestions",new F(t,i,this[yc("0xe7")])),this[yc("0x117")](yc("0x46")),t.commands[yc("0xed")](yc("0x128"),new F(t,o,this[yc("0xe7")])),this.enableCommand(yc("0x128")),t[yc("0xd6")][yc("0xed")]("acceptSelectedSuggestions",new j(t,i,this._suggestions)),this[yc("0x117")](yc("0x11f")),t[yc("0xd6")][yc("0xed")](yc("0xb0"),new j(t,o,this[yc("0xe7")])),this[yc("0x117")](yc("0xb0"));const s=t.plugins[yc("0xd8")](yc("0x10d"));this[yc("0xa0")](s,"addComment",((t,{threadId:e})=>{const n=this._suggestions[yc("0xd8")](e);n&&n.commentThread&&1===n[yc("0xf8")][yc("0x7c")]&&this[yc("0x10")](e,{hasComments:!0})}),{priority:"low"}),this.listenTo(s,yc("0x97"),((t,{threadId:e})=>{const n=this[yc("0xe7")].get(e);n&&n[yc("0xf8")]&&!n[yc("0xf8")][yc("0x7c")]&&this[yc("0x10")](e,{hasComments:!1})}),{priority:"low"})}set[yc("0x59")](t){if(this[yc("0x5f")])throw new e.CKEditorError(yc("0x13a"),this);this._adapter=t}get[yc("0x59")](){return this[yc("0x5f")]}[yc("0x133")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this._suggestions.values())t&&!e[yc("0xb1")]||n.push(e);return e?n[yc("0x104")]((t=>t.toJSON())):n}[yc("0x144")](t){const n=this[yc("0xe7")][yc("0xd8")](t);if(!n)throw new e.CKEditorError(yc("0x8e"),this);return n}hasSuggestion(t){return this._suggestions[yc("0x94")](t)}[yc("0x15")](t){const{authorId:e,id:n,attributes:r}=t,[i,o]=t.type[yc("0x16b")](":"),s=this[yc("0xe7")][yc("0xd8")](n)||this[yc("0x146")](i,o,n,e,r);if(this[yc("0x11b")](s),this[yc("0x15f")](s,i,o||null,e),s[yc("0xa1")]=t.createdAt,s._isDataLoaded=!0,r&&r[yc("0xc0")]){const t=r[yc("0xc0")],e=this._getExternalAuthor(t[yc("0x102")]);s.authoredAt=t[yc("0xa1")],s[yc("0x38")]=e,s[yc("0x114")]=!0}else s.authoredAt=t[yc("0xa1")];switch(t[yc("0x27")]&&(s.data=t[yc("0x27")]),t[yc("0xe0")]&&(s[yc("0xe0")]=t[yc("0xe0")]),this[yc("0x5f")]&&this[yc("0x5f")][yc("0xcd")]||(s[yc("0x33")]=!0),this._suggestionState[yc("0xd8")](s)){case"notReady":this._suggestionState[yc("0x2d")](s,"dataReady");break;case"markerReady":s[yc("0xb1")]?(this[yc("0xbd")](new Set([s])),this[yc("0x1a")](new Set([s])),this[yc("0x11e")][yc("0x2d")](s,yc("0x8b")),this[yc("0x11a")]("suggestionLoaded",s)):this[yc("0x11e")][yc("0x2d")](s,yc("0x3b"))}return s}[yc("0x41")](t){this[yc("0xeb")]((()=>{this[yc("0xab")][yc("0xec")].change((()=>{for(const e of t[yc("0x13d")]())e[yc("0x29")]()}))}))}[yc("0x84")](t){this[yc("0xeb")]((()=>{this.editor.model[yc("0x18")]((()=>{for(const e of t.getAllAdjacentSuggestions())e.discard()}))}))}enableCommand(t,n){const r=this[yc("0xab")][yc("0xd6")][yc("0xd8")](t);if(!r)throw new e.CKEditorError("track-changes-command-not-found",this,{commandName:t});if(this[yc("0xb7")][yc("0x94")](r))throw new e.CKEditorError("track-changes-enable-command-twice",this,{commandName:t});this._enabledCommands.add(r),n&&r.on(yc("0x7f"),((t,e)=>{this[yc("0x13f")][yc("0x4e")]&&(this[yc("0x14e")]||(e.length>0&&e[e.length-1]&&e[e.length-1][yc("0xeb")]?e[yc("0x99")]():(t[yc("0xf7")]=n(((...t)=>r[yc("0x7f")](...t,{forceDefaultExecution:!0})),...e),t[yc("0x13e")]())))}),{priority:yc("0xf5")})}[yc("0xeb")](t){let n,r;const i=this[yc("0x14e")];this[yc("0x14e")]=!0;try{n=t()}catch(t){r=t}return i||(this[yc("0x14e")]=!1),r&&e.CKEditorError[yc("0x44")](r,this),n}[yc("0xdd")](t,n=null,r={}){if(t[yc("0xaa")])return null;const i=this[yc("0xab")].plugins[yc("0xd8")](yc("0x15e")).me;for(const{suggestion:e,meta:i}of this[yc("0x3")](t,yc("0x164")))if(i[yc("0x12")]){if(!i[yc("0x74")]){if(i[yc("0x98")]){if(!this[yc("0x4a")]||!Fc(e,r))continue;return e}if(Fc(e,r))return e;this._breakSuggestionMarker(e,t[yc("0xc7")],t.end);break}if(n==e[yc("0x105")]&&Fc(e,r)){const n=e[yc("0xb5")]();return n[yc("0xc7")][yc("0x167")](t[yc("0x76")])?this._setSuggestionRange(e,this[yc("0x13")][yc("0x2b")](t[yc("0xc7")],n[yc("0x76")])):this._setSuggestionRange(e,this[yc("0x13")][yc("0x2b")](n[yc("0xc7")],t[yc("0x76")])),e}}const o=(0,e.uid)(),s=i.id,x=n?"insertion:"+n:"insertion",a=this._setSuggestionData({id:o,type:x,createdAt:new Date,authorId:s,attributes:r});return this[yc("0xb9")](x,o,s,t),a}[yc("0xc4")](t,n=yc("0x154"),r={}){const i=this[yc("0xab")][yc("0x5b")][yc("0xd8")](yc("0x15e")).me,o=this[yc("0xf0")][yc("0x5")](yc("0x164"),n,yc("0x47"));for(const e of this[yc("0x133")]())if(e.author.id==i.id&&yc("0x164")==e.type&&e[yc("0x105")]==n&&Fc(e,r)&&(o(e.getRanges(),t)||o(t,e[yc("0x12a")]()))){for(const n of t)e[yc("0x6b")](n);return e}for(const{suggestion:e,meta:n}of this._findSuggestions(t,yc("0x164"))){if(!n[yc("0x12")])continue;if(!this[yc("0x4a")]&&n[yc("0x98")])continue;if(!Fc(e,r))continue;let i=!0;for(const n of e[yc("0x12a")]())for(const e of t)if(!n[yc("0x5a")](e)){i=!1;break}if(i)return e}const s=(0,e.uid)(),x=i.id,a="insertion:"+n,c=this._setSuggestionData({id:s,type:a,createdAt:new Date,authorId:x,attributes:r});for(const e of t)this[yc("0xb9")](a,s,x,e,Yr.getMultiRangeId());return c}markInlineFormat(t,n,r=null,i={}){if(r=r||vc(n),t.isCollapsed)return null;if(yc("0x79")===this[yc("0x71")]){const e=this[yc("0xf0")][yc("0x5")](yc("0x0"),r,yc("0x29"));return this.forceDefaultExecution((()=>e([t],n,i))),null}const o=this[yc("0xab")][yc("0x5b")][yc("0xd8")](yc("0x15e")).me,s=[];if("always"!==this[yc("0x71")])for(const{suggestion:e,meta:n}of this[yc("0x3")](t,"insertion"))n[yc("0x12")]&&!n[yc("0x8")]&&s[yc("0x145")](...e[yc("0x12a")]());const x=function(t,e){const n=[];for(const r of e){const e=t[yc("0x6c")](r);e&&n.push(e)}return n}(t,s),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[yc("0x7c")];){const r=n[e][yc("0x25")](t);n.splice(e,1,...r),e+=r[yc("0x7c")]}}return n}(t,s);x[yc("0x7c")]&&this._model[yc("0x18")]((()=>{for(const t of x){const e=this[yc("0xf0")].getSuggestionCallback(yc("0x0"),r,yc("0x29"));this[yc("0xeb")]((()=>e([t],n,i)))}}));for(const t of a){let s=null,x=t[yc("0xc7")],a=t.end;for(const{suggestion:e,meta:n}of this[yc("0x3")](t,"formatInline")){if(!n[yc("0x12")])continue;if(e[yc("0x105")]!=r)continue;if(!Fc(e,i))continue;const o=e[yc("0xb5")]();if(o.containsRange(t,!0))return null;x=x[yc("0xd1")](o[yc("0xc7")])?x:o[yc("0xc7")],a=a[yc("0x1b")](o[yc("0x76")])?a:o[yc("0x76")],s?o[yc("0xc7")][yc("0xd1")](s[yc("0xb5")]().start)?(s[yc("0x141")](),s=e):e.removeMarkers():s=e}const c=this._model[yc("0x2b")](x,a);if(s)this[yc("0x6f")](s,c);else{const t=(0,e.uid)(),s=o.id;this._setSuggestionData({id:t,type:yc("0x54")+r,data:n,createdAt:new Date,authorId:s,attributes:i}),this[yc("0xb9")](yc("0x54")+r,t,s,c)}}return null}[yc("0xd5")](t,n,r=[],i=null,o={}){n[yc("0x7")]||(n[yc("0x7")]=n[yc("0x23")]),n[yc("0x52")]=t.is(yc("0x2a")),i=i||vc(n);const s=r[yc("0x104")]((t=>Mc(t,this[yc("0x13")]))),x=t.is("range")?t:Mc(t,this[yc("0x13")]);if("never"===this[yc("0x71")]){const t=this[yc("0xf0")].getSuggestionCallback("formatBlock",i,"accept");return this.forceDefaultExecution((()=>t([x],n,o))),null}s[yc("0x145")](x);let a=!0;for(const t of s)if(!this[yc("0x16c")](t)){a=!1;break}if(a&&yc("0x150")!==this._trackFormatChanges){const t=this[yc("0xf0")][yc("0x5")](yc("0xbb"),i,yc("0x29"));return this.forceDefaultExecution((()=>t([x],n,o))),null}let c=null,l=x[yc("0xc7")],u=x[yc("0x76")];for(const{suggestion:t,meta:e}of this[yc("0x3")](x,yc("0xbb"))){if(!e.isOwn)continue;if(e[yc("0x74")]||e.containsRangeInObject||e.isInsideObject)continue;if(t[yc("0x27")][yc("0x7")]!=n.formatGroupId)continue;if(!Fc(t,o))continue;const r=t[yc("0xb5")]();if(t[yc("0x105")]==i){if(r[yc("0x5a")](x,!0))return null;l=l[yc("0xd1")](r.start)?l:r[yc("0xc7")],u=u[yc("0x1b")](r[yc("0x76")])?u:r[yc("0x76")],c?r[yc("0xc7")][yc("0xd1")](c[yc("0xb5")]()[yc("0xc7")])?(c[yc("0x141")](),c=t):t[yc("0x141")]():c=t}else{const e=x[yc("0x6c")](r);this[yc("0x5c")](t,e)}}const d=this.editor.plugins.get(yc("0x15e")).me,g=(0,e.uid)(),f=d.id;if(c)return this[yc("0x6f")](c,this[yc("0x13")][yc("0x2b")](l,u)),c;{const t=this._setSuggestionData({id:g,type:yc("0x9")+i,data:n,createdAt:new Date,authorId:f,attributes:o});return this[yc("0xb9")]("formatBlock:"+i,g,f,this[yc("0x13")][yc("0x2b")](l,u)),t}}[yc("0x151")](t,n,r=[],i=null,o={}){n[yc("0x7")]||(n.formatGroupId=n[yc("0x23")]);const s=t[0];n.multipleBlocks=s.is(yc("0x2a")),i=i||vc(n);const x=r.map((t=>Mc(t,this[yc("0x13")]))),a=s.is(yc("0x2a"))?t:t[yc("0x104")]((t=>Mc(t,this._model)));if(yc("0x79")===this[yc("0x71")]){const t=this[yc("0xf0")][yc("0x5")](yc("0xbb"),i,"accept");return this[yc("0xeb")]((()=>t(a,n,o))),null}x[yc("0x145")](...a);let c=!0;for(const t of x)if(!this[yc("0x16c")](t)){c=!1;break}if(c&&"always"!==this[yc("0x71")]){const t=this._suggestionFactory.getSuggestionCallback("formatBlock",i,yc("0x29"));return this.forceDefaultExecution((()=>t(a,n,o))),null}const l=this[yc("0xab")][yc("0x5b")][yc("0xd8")](yc("0x15e")).me;for(const t of this.getSuggestions()){if(t[yc("0x38")].id!=l.id)continue;if(yc("0xbb")!=t[yc("0xb")]||t[yc("0x27")][yc("0x7")]!=n[yc("0x7")])continue;if(!Fc(t,o))continue;const e=t[yc("0x105")]==i;for(let n=0;n<a.length;n++){const r=a[n];for(const i of t[yc("0x16e")]()){const o=i[yc("0xe6")]();if(r[yc("0x167")](o)){e?(a[yc("0xdf")](n,1),n--):t[yc("0x55")](i.name);break}}}}if(0==a.length)return null;const u=this[yc("0xf0")].getSuggestionCallback(yc("0xbb"),i,"join");for(const t of this[yc("0x133")]())if(t.author.id==l.id&&yc("0xbb")==t[yc("0xb")]&&t[yc("0x27")].formatGroupId==n.formatGroupId&&t.subType==i&&Fc(t,o)&&(u(t.getRanges(),a)||u(a,t[yc("0x12a")]()))){for(const e of a)t[yc("0x6b")](e);return t}const d=(0,e.uid)(),g=l.id,f=yc("0x9")+i,h=this[yc("0x124")]({id:d,type:f,data:n,createdAt:new Date,authorId:g,attributes:o});for(const t of a)this._addSuggestionMarker(f,d,g,t,Yr[yc("0x53")]());return h}[yc("0x143")](t,n=null,r={}){if(t[yc("0xaa")])return null;const i=this.editor[yc("0x5b")].get(yc("0x15e")).me,o=new s.LiveRange(t[yc("0xc7")],t.end);for(const{suggestion:t,meta:e}of this._findSuggestions(o,yc("0x164")))if(e[yc("0x12")]&&!e[yc("0x74")])if(t[yc("0x127")]){const e=t[yc("0x12a")]().filter((t=>yc("0x9c")!=t[yc("0x130")][yc("0xff")]));if(e[yc("0x77")]((t=>o.containsRange(t,!0)))&&t[yc("0x57")](),e.some((t=>t[yc("0x5a")](o,!0)))){const t=this[yc("0xf0")].getSuggestionCallback(yc("0x48"),n,yc("0x29"));return this.forceDefaultExecution((()=>t([o],null,r))),null}}else{const e=o.getIntersection(t.getFirstRange());null!==e&&t[yc("0x28")]([e],null,r)}if(o[yc("0xcc")](),o[yc("0xaa")]||yc("0x9c")==o[yc("0x130")].rootName)return null;let x=null,a=o[yc("0xc7")],c=o[yc("0x76")];const l=this[yc("0x3")](o,"deletion");for(const{suggestion:t,meta:e}of l){const n=this[yc("0x13")][yc("0x2b")](a,c);if(e.isOwn&&(this[yc("0x4a")]||!e[yc("0x98")]&&!e[yc("0x8")]))if(t.isMultiRange){if(!Fc(t,r))continue;let e=!0;for(const r of t[yc("0x12a")]()){if(r[yc("0x5a")](n,!0))return t;n[yc("0x5a")](r)||(e=!1)}e&&t[yc("0x57")]()}else{const e=t[yc("0xb5")]();if(e[yc("0x5a")](n,!0))return t;if(!Fc(t,r)){n[yc("0x5a")](e)?t[yc("0x141")]():e[yc("0xf2")](a)?a=e[yc("0x76")]:e[yc("0xf2")](c)&&(c=e.start);continue}a=a[yc("0xd1")](e[yc("0xc7")])?a:e[yc("0xc7")],c=c[yc("0x1b")](e[yc("0x76")])?c:e[yc("0x76")],r=Object[yc("0x14")]({},t[yc("0xe0")]),x?e[yc("0xc7")][yc("0xd1")](x[yc("0xb5")]().start)?(x.removeMarkers(),x=t):t.removeMarkers():x=t}}if(x)return this[yc("0x6f")](x,this[yc("0x13")].createRange(a,c)),x;{const t=(0,e.uid)(),o=this[yc("0x13")].createRange(a,c),s=i.id,x=n?yc("0x1")+n:yc("0x48"),l=this._setSuggestionData({id:t,type:x,createdAt:new Date,authorId:s,attributes:r});return this[yc("0xb9")](x,t,s,o),l}}[yc("0x35")](t,n=yc("0x154"),r={}){const i=this[yc("0xab")][yc("0x5b")][yc("0xd8")](yc("0x15e")).me,o=t.map((t=>new s.LiveRange(t.start,t[yc("0x76")]))),x=new Set;for(const{suggestion:t,meta:e}of this._findSuggestions(o,yc("0x164")))e[yc("0x12")]&&!e[yc("0x74")]&&x.add(t);for(const e of x)if(e[yc("0x127")]){const i=e[yc("0x12a")]();if((!e[yc("0xe0")]||!e[yc("0xe0")][yc("0x11d")])&&i[yc("0x77")]((t=>o[yc("0x14b")]((e=>e[yc("0x5a")](t,!0)))))&&e.discard(),o[yc("0x77")]((t=>i[yc("0x14b")]((e=>e.containsRange(t,!0)))))){const e=this[yc("0xf0")][yc("0x5")]("deletion",n,yc("0x29"));return this.forceDefaultExecution((()=>e(t,null,r))),null}}else{const t=e[yc("0xb5")]();if(o[yc("0x14b")]((e=>e[yc("0x5a")](t,!0)))&&e[yc("0x57")](),o[yc("0x77")]((e=>t[yc("0x5a")](e,!0)))){const t=this._suggestionFactory[yc("0x5")](yc("0x48"),n,yc("0x29"));return this[yc("0xeb")]((()=>t(o,null,r))),null}}const a=this[yc("0xf0")][yc("0x5")](yc("0x48"),n,"join");let c=null;for(const t of this[yc("0x133")]())if(t[yc("0x38")].id==i.id&&t[yc("0xb1")]&&yc("0x48")==t[yc("0xb")]&&t[yc("0x105")]==n&&Fc(t,r)&&(a(t.getRanges(),o)||a(o,t[yc("0x12a")]())))if(c){if(t[yc("0xf8")]&&t[yc("0xf8")].length)continue;for(const e of t[yc("0x12a")]())c[yc("0x6e")](e)||c[yc("0x6b")](e);t[yc("0x141")]()}else{c=t;for(const e of o)t[yc("0x6e")](e)||t[yc("0x6b")](e)}if(c)return c;x[yc("0xcb")]();for(const{suggestion:t,meta:e}of this[yc("0x3")](o,yc("0x48")))e[yc("0x12")]&&(this._mergeNestedSuggestions||!e[yc("0x98")]&&!e[yc("0x8")])&&Fc(t,r)&&x[yc("0xed")](t);for(const t of x){const e=t[yc("0x12a")]();if((!r||!r[yc("0x11d")])&&o[yc("0x77")]((t=>e[yc("0x14b")]((e=>e[yc("0x5a")](t,!0))))))return t;(!t[yc("0xe0")]||!t[yc("0xe0")][yc("0x11d")])&&e[yc("0x77")]((t=>o[yc("0x14b")]((e=>e[yc("0x5a")](t,!0)))))&&t.discard()}const l=(0,e.uid)(),u=i.id,d=yc("0x1")+n,g=this[yc("0x124")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:r});for(const t of o)t[yc("0xcc")](),t[yc("0xaa")]||yc("0x9c")==t[yc("0x130")][yc("0xff")]||this[yc("0xb9")](d,l,u,t,Yr[yc("0x53")]());return g}markAttributeChange(t,n,r,i,o){if(t[yc("0xaa")])return[];if(yc("0x79")===this._trackFormatChanges)return[];const s=this[yc("0xab")][yc("0x5b")][yc("0xd8")](yc("0x15e")).me.id,x=Array[yc("0xa")](this[yc("0xe7")].values())[yc("0x73")]((e=>"attribute"==e[yc("0xb")]&&e[yc("0x27")].key==n&&e[yc("0x6e")](t)));if(yc("0x34")===this[yc("0x71")]){const e=this[yc("0x3")](t,yc("0x164"))[yc("0x73")]((({meta:t})=>t[yc("0x12")]&&!t.isInsideObject&&!t[yc("0x74")]))[yc("0x104")]((({suggestion:t})=>t));x[yc("0x7e")](...e)}const a=new Map([[t,r]]);for(const t of x){const e=yc("0x2")==t[yc("0xb")]?t.data[yc("0x91")]:void 0,o=t[yc("0xb5")](),s=Array[yc("0xa")](a[yc("0x4")]()).find((t=>t[yc("0xd9")](o)));if(!s)continue;const x=s[yc("0x25")](o);this[yc("0x82")](n)&&"insertion"==t[yc("0xb")]&&0!=x[yc("0x7c")]||(a[yc("0xbc")](s),x[yc("0x30")]((t=>{a[yc("0x2d")](t,r)})),yc("0x164")!=t[yc("0xb")]&&e!=i&&a[yc("0x2d")](s[yc("0x6c")](o),e))}const c=[];for(const[t,r]of a){const x=(0,e.uid)(),a={key:n,oldValue:r,newValue:i};n[yc("0x7c")]>37&&console[yc("0x3d")]("Creating a suggestion for attribute with too long attribute key. This may lead to errors. Change the attribute key to a value shorter than 37 characters.",{key:n});const l=(yc("0xef")+(n+"|")+vc({newValue:i}))[yc("0x14a")](0,60),u=this[yc("0x124")]({id:x,type:l,data:a,createdAt:new Date,authorId:s,attributes:o});c[yc("0x145")](u),this[yc("0xb9")](l,x,s,t)}return c}[yc("0x106")](t){this._blockAttributeKeys[yc("0xed")](t)}[yc("0x67")](t){this[yc("0xb8")][yc("0xed")](t)}[yc("0x6")](t,e=[],n=[]){this.enableCommand(t,((t,...e)=>{this[yc("0x166")]((()=>{t(...e)}))}));for(const t of e)this[yc("0x67")](t);for(const t of n)this[yc("0x106")](t)}_getAttributeKey(t){return yc("0x2")==t[yc("0xb")]?t[yc("0x105")].split("|")[0]:null}[yc("0x6f")](t,e){const n=t[yc("0x163")]();this._model[yc("0x18")]((t=>{t[yc("0x171")](n,{range:e})}))}[yc("0x11b")](t){const e=t.id,n=this[yc("0xab")][yc("0xca")][yc("0xd8")](yc("0x68"));this[yc("0xf3")][yc("0x90")](e)||this[yc("0xf3")][yc("0x1d")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const r=this[yc("0xf3")][yc("0x149")](e);r[yc("0xee")](yc("0x64")),r[yc("0x64")]=!1,t[yc("0xf8")]=r}[yc("0x15f")](t,n,r,i){if(t[yc("0xb")]!=n||t.subType!=r||t[yc("0x36")].id!=i)throw this[yc("0xab")][yc("0xe4")](yc("0x12f")),new e.CKEditorError(yc("0x12f"),this)}[yc("0x5c")](t,n){const r=t[yc("0xb5")]();if(n[yc("0x167")](r))t[yc("0x141")]();else if(r.containsRange(n)){const i=this._model.createPositionAt(n[yc("0xc7")][yc("0x80")],yc("0x76"));this[yc("0x6f")](t,this[yc("0x13")][yc("0x2b")](r.start,i));const o=(0,e.uid)(),s=t.creator.id,x=t.type+":"+t[yc("0x105")];this[yc("0x124")]({id:o,type:x,createdAt:new Date,authorId:s,data:t[yc("0x27")],attributes:t.attributes});const a=this._model[yc("0x10e")](n[yc("0x76")][yc("0x101")],"after"),c=this[yc("0x13")][yc("0x2b")](a,r[yc("0x76")]);this[yc("0xb9")](x,o,s,c)}else if(r[yc("0xf2")](n.start)){const e=this[yc("0x13")][yc("0x10e")](n[yc("0xc7")][yc("0x80")],yc("0x76"));this[yc("0x6f")](t,this._model[yc("0x2b")](r[yc("0xc7")],e))}else{const e=this[yc("0x13")][yc("0x10e")](n[yc("0x76")][yc("0x101")],yc("0x1c"));this[yc("0x6f")](t,this._model[yc("0x2b")](e,r.end))}}[yc("0x16c")](t){for(const{suggestion:e,meta:n}of this[yc("0x3")](t,yc("0x164"))){if(!n[yc("0x12")])continue;const r=e.getRanges();for(const e of r)if(!t[yc("0x25")](e)[yc("0x7c")])return!0}return!1}_getAuthorFromId(t){const n=this[yc("0xab")].plugins.get("Users")[yc("0x26")](t);if(!n)throw new e.CKEditorError("track-changes-user-not-found",this);return n}[yc("0x134")](t){const e=this[yc("0xab")][yc("0x5b")][yc("0xd8")](yc("0x15e")),n=(0,o.hashObject)(yc("0xce")+t);return e.getUser(n)||e[yc("0xbe")]({id:n,name:t})}[yc("0x146")](t,e,n,r,i){const o=this[yc("0x15d")](r),s=this._suggestionFactory[yc("0x8d")](t,e,n,o,i,(t=>{this._updateSuggestionData(n,{attributes:t});const e=this.getSuggestion(n);this[yc("0xbd")](new Set([e])),this[yc("0x1a")](new Set([e]))}));return this[yc("0xa0")](s,yc("0x29"),(()=>{this._updateSuggestionData(n,{state:yc("0x63")})}),{priority:yc("0xf5")}),this[yc("0xa0")](s,"discard",(()=>{this._updateSuggestionData(n,{state:yc("0x17")})}),{priority:"high"}),this[yc("0xe7")][yc("0x2d")](n,s),this[yc("0x11e")][yc("0x2d")](s,yc("0x139")),s}[yc("0x12b")](t){const e=t[yc("0x16b")](":");return{group:e[0],type:e[1],subType:e.length>=5?e[2]:null,id:e[yc("0x7c")]<5?e[2]:e[3],authorId:e.length<5?e[3]:e[4],markerCount:6==e.length?e[5]:null}}[yc("0x140")](t,n,r){const i=t[yc("0xb5")](),o=i[yc("0xc7")],s=i[yc("0x76")];this._setSuggestionRange(t,this._model[yc("0x2b")](o,n));const x=(0,e.uid)(),a=t[yc("0x36")].id,c=t[yc("0xb")]+(t[yc("0x105")]?":"+t[yc("0x105")]:"");this._setSuggestionData({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t.attributes,data:t[yc("0x27")]});const l=this[yc("0x10a")](t);(yc("0xbb")==t[yc("0xb")]||l&&this[yc("0x82")](l))&&(r=this._model[yc("0x62")](r[yc("0x101")])),this._addSuggestionMarker(c,x,a,this[yc("0x13")][yc("0x2b")](r,s))}[yc("0x3")](t,e=null){const n=[],r=this[yc("0xab")][yc("0x5b")][yc("0xd8")](yc("0x15e")).me;Array[yc("0x85")](t)||(t=[t]);for(const i of this.getSuggestions()){if(!i[yc("0xb1")])continue;if(e&&i.type!=e)continue;let o=!1;for(const e of i[yc("0x12a")]()){for(const s of t){const t=s[yc("0xc7")][yc("0x167")](e.end)||s[yc("0x76")][yc("0x167")](e[yc("0xc7")]);if(t||s[yc("0x6c")](e)){const x=s[yc("0x5a")](e)&&Ic(this[yc("0x13")][yc("0x81")],e[yc("0xc7")],s),a=e[yc("0x5a")](s)&&Ic(this[yc("0x13")][yc("0x81")],s[yc("0xc7")],e);n.push({suggestion:i,meta:{isOwn:r==i[yc("0x38")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),o=!0;break}}if(o)break}}return n}[yc("0xb9")](t,e,n,r,i){this[yc("0x13")].change((o=>{let s=yc("0x70")+t+":"+e+":"+n;i&&(s=s+":"+i),o[yc("0x142")](s,{range:r,usingOperation:!0,affectsData:!0})}))}_removeSuggestion(t){const e=t.previous,n=t[yc("0x9b")];t.previous=null,t[yc("0x9b")]=null,null!=e&&e[yc("0x9b")]==t&&(e[yc("0x9b")]=n),null!=n&&n.previous==t&&(n.previous=e),yc("0x8b")==this[yc("0x11e")][yc("0xd8")](t)&&(this[yc("0x11e")][yc("0x2d")](t,yc("0x3b")),this[yc("0x11a")]("suggestionUnloaded",t,e,n))}[yc("0x124")](t){const n=t.id,r=this[yc("0x15")](t);if(this._adapter&&this[yc("0x5f")][yc("0xcd")]){const i=this[yc("0xab")][yc("0x5b")][yc("0xd8")](yc("0x161")),o=r[yc("0x16d")],s=r[yc("0x105")]?r[yc("0xb")]+":"+r[yc("0x105")]:r[yc("0xb")],x=this.editor[yc("0xac")],a=i[yc("0xed")](Qr(x,yc("0x148"))),c={id:n,type:s,hasComments:o,data:t[yc("0x27")]||null,originalSuggestionId:t[yc("0xc5")]||null,attributes:r.attributes};this[yc("0x5f")][yc("0xcd")](c)[yc("0x115")]((t=>{r._saved=!0,i[yc("0xa5")](a),t&&t[yc("0xa1")]&&(this[yc("0xe7")].get(n).createdAt=t[yc("0xa1")])}))[yc("0xe8")]((t=>{throw(0,e.logWarning)("error-saving-suggestion-data-suggestion-discarded"),this[yc("0xab")][yc("0xec")][yc("0x7a")]({isUndoable:!1},(()=>{r.discard()})),r[yc("0xb6")](),this._suggestions[yc("0xbc")](r.id),this[yc("0x11e")][yc("0xbc")](r),t}))}return r}[yc("0x82")](t){return this[yc("0x14d")][yc("0x94")](t)}[yc("0x10")](t,e){const n=this[yc("0xab")][yc("0x5b")][yc("0xd8")](yc("0x161")),r=this[yc("0x144")](t);if(this[yc("0x5f")]&&this._adapter[yc("0x20")])if(r[yc("0x33")]){const r=n[yc("0xed")](Qr(this[yc("0xab")][yc("0xac")],yc("0x148")));this._adapter[yc("0x20")](t,e)[yc("0x115")]((()=>{n.remove(r)}))}else r.on("change:_saved",(()=>{this._updateSuggestionData(t,e)}))}[yc("0x156")](t){if(!this[yc("0x5f")]||!this[yc("0x5f")][yc("0x144")])throw new e.CKEditorError(yc("0x50"),this);return this._adapter[yc("0x144")](t)}[yc("0x135")](t){const{id:e,type:n,subType:r,authorId:i}=this[yc("0x12b")](t),o=this._suggestions[yc("0xd8")](e)||this._createSuggestion(n,r,e,i,{});switch(this[yc("0x15f")](o,n,r,i),this._suggestionState.get(o)){case"notReady":this._getSuggestionData(e)[yc("0x115")]((t=>{let n=Promise[yc("0x7d")]();t[yc("0x16d")]&&(n=this._commentsRepository[yc("0x109")]({channelId:this[yc("0xab")][yc("0xca")][yc("0xd8")](yc("0x68")),threadId:e})),n.then((()=>{this[yc("0x15")](t)[yc("0x33")]=!0}))})),this[yc("0x11e")][yc("0x2d")](o,"markerReady");break;case yc("0x3b"):this._updateSuggestionData(e,{state:yc("0x60")});case yc("0x96"):this[yc("0x11e")].set(o,"ready"),this[yc("0x11a")](yc("0x95"),o);break;case yc("0x8b"):this[yc("0x11a")](yc("0xc9"),o)}return o[yc("0x174")](t),o}[yc("0x1a")](t){const e=Array[yc("0xa")](t),n=e.filter((t=>yc("0x2")==t[yc("0xb")]));this[yc("0x113")](n);const r=e[yc("0x73")]((t=>!t[yc("0x127")]&&"attribute"!=t[yc("0xb")])),i=this.getSuggestions({skipNotAttached:!0})[yc("0x73")]((t=>!t[yc("0x127")]&&yc("0x2")!=t[yc("0xb")])),o=i[yc("0x73")]((e=>!t[yc("0x94")](e))),s=new Map(i.map((t=>[t,this[yc("0xf0")][yc("0x5")](t.type,t[yc("0x105")],"chain")]))),x=new Map(i[yc("0x104")]((t=>[t,t[yc("0xb5")]()]))),a=new Set,c=new Set;for(let t=0;t<r[yc("0x7c")];t++)u(r[t],r,t+1);for(let t=0;t<r.length;t++)u(r[t],o,0);const l=new Set;for(let t=0;t<r.length;t++){const e=r[t];!c[yc("0x94")](e)&&e.previous&&(l[yc("0xed")](e[yc("0x40")]),e[yc("0x40")][yc("0x9b")]===e&&(e[yc("0x40")][yc("0x9b")]=null),e[yc("0x40")]=null),!a.has(e)&&e[yc("0x9b")]&&(l.add(e[yc("0x9b")]),e[yc("0x9b")][yc("0x40")]===e&&(e[yc("0x9b")][yc("0x40")]=null),e[yc("0x9b")]=null)}function u(t,e,n){for(let r=n;r<e[yc("0x7c")];r++){const n=d(t,e[r]);n&&(n[0].next=n[1],n[1].previous=n[0],a[yc("0xed")](n[0]),c[yc("0xed")](n[1]))}}function d(t,e){if(t[yc("0x38")].id!==e[yc("0x38")].id)return null;const n=s.get(t)(t,e,x.get(t),x.get(e));return n&&s[yc("0xd8")](e)(t,e,x[yc("0xd8")](t),x[yc("0xd8")](e))?n[1][yc("0xf8")]&&n[1].commentThread[yc("0x7c")]?null:n:null}l[yc("0x138")]&&this[yc("0x1a")](l)}[yc("0x113")](t){if(0==t[yc("0x7c")])return;const e=this[yc("0x133")]({skipNotAttached:!0})[yc("0x73")]((t=>yc("0x2")==t[yc("0xb")]&&t[yc("0x51")])),n=[],r=new Map;for(const t of e){const e=(0,o.hashObject)(t[yc("0xe0")]);r[yc("0x94")](e)||(r[yc("0x2d")](e,n[yc("0x7c")]),n[yc("0x145")]([]));const i=r[yc("0xd8")](e);n[i][yc("0x145")](t)}!function(){n[yc("0x86")](((t,e)=>{const n=t[0][yc("0xa1")],r=e[0][yc("0xa1")];return n==r?t[0][yc("0xe0")].groupId<e[0][yc("0xe0")].groupId?-1:1:n<r?-1:1}));for(const t of n)t[yc("0x86")](((t,e)=>t.id<e.id?-1:1))}();for(let t=0;t<n[yc("0x7c")];t++){if(0==n[t][yc("0x7c")])continue;const e=[];for(let r=t+1;r<n[yc("0x7c")];r++)0!=n[r][yc("0x7c")]&&i(n[t],n[r])&&e[yc("0x145")](r);for(const r of e)n[t]=n[t].concat(n[r]),n[r]=[]}for(const t of n)for(let e=0;e<t[yc("0x7c")];e++)t[e][yc("0x9b")]=t[e+1]||null;for(const t of n)for(let e=0;e<t.length;e++)t[e][yc("0x40")]=t[e-1]||null;function i(t,e){if(t[0].attributes[yc("0x37")]!==e[0].attributes[yc("0x37")]&&t[0][yc("0x38")]!==e[0][yc("0x38")])return!1;if(n=t[0],r=e[0],(n[yc("0x16d")]||r.hasComments)&&(n.hasComments&&r[yc("0x16d")]||!(n[yc("0x16d")]&&r[yc("0xa1")]<n[yc("0xf8")].comments[yc("0xd8")](0)[yc("0xa1")]||r.hasComments&&n[yc("0xa1")]<r[yc("0xf8")].comments[yc("0xd8")](0)[yc("0xa1")])))return!1;var n,r;const i=pc(t[0][yc("0xe0")],yc("0x37")),o=pc(e[0].attributes,yc("0x37"));return!!jr(i,o)&&(!!t[yc("0x77")]((t=>e[yc("0x14b")]((e=>t[yc("0xb5")]()[yc("0x167")](e[yc("0xb5")]())))))&&e.every((e=>t.some((t=>e[yc("0xb5")]()[yc("0x167")](t[yc("0xb5")]()))))))}}[yc("0xbd")](t){const e=Array[yc("0xa")](t),n=this.getSuggestions({skipNotAttached:!0}),r=n[yc("0x73")]((e=>!t[yc("0x94")](e))),i=new Map(e[yc("0x104")]((t=>[t,this[yc("0xf0")][yc("0x5")](t[yc("0xb")],t[yc("0x105")],"join")]))),o=new Map(n[yc("0x104")]((t=>[t,t.getRanges()])));for(let t=0;t<e[yc("0x7c")];t++)if(s(this,e[t],e,t+1))return!0;for(let t=0;t<e[yc("0x7c")];t++)if(s(this,e[t],r,0))return!0;return!1;function s(t,e,n,r){for(let s=r;s<n[yc("0x7c")];s++){const r=n[s];if(r[yc("0xb")]!==e[yc("0xb")]||r.author.id!==e[yc("0x38")].id||r[yc("0x105")]!==e[yc("0x105")])continue;if(!Oc(e,r,[yc("0x37")]))continue;if("attribute"==e.type&&e[yc("0x27")].oldValue!=r[yc("0x27")].oldValue)continue;if(yc("0x2")==e[yc("0xb")]&&t._isBlockAttribute(e.data.key))continue;if("formatBlock"==e.type){const n=t[yc("0xab")][yc("0xec")],r=e[yc("0xc6")]();if(r&&(n.schema.isObject(r)||n[yc("0x81")][yc("0x13b")](r)))continue}const x=i.get(e),a=o[yc("0xd8")](e),c=o[yc("0xd8")](r),l=e[yc("0xf8")]&&e[yc("0xf8")][yc("0x7c")],u=r[yc("0xf8")]&&r.commentThread[yc("0x7c")];if(!l&&x(c,a))return t[yc("0x10f")](r,e),o[yc("0xbc")](e),!0;if(!u&&x(a,c))return t[yc("0x10f")](e,r),o[yc("0xbc")](r),!0}return!1}}[yc("0x10f")](t,e){if(t[yc("0x127")])for(const n of e[yc("0x12a")]())t[yc("0x6b")](n);else{const n=e.getFirstRange()[yc("0x76")];this[yc("0x6f")](t,this[yc("0x13")].createRange(t[yc("0xb5")]().start,n))}e[yc("0x141")]()}[yc("0x107")](t,e){const n=t[yc("0x160")](yc("0x126"))||t[yc("0x160")]("attribute")?yc("0x15a"):t[yc("0x3c")]();return Qr(this.editor.locale,e+"_"+n+yc("0xbf"))}[yc("0xad")](){const t=this[yc("0xab")];(0,o.surroundingMarkersDetector)(this._model,(({left:e,entered:n})=>{const r=[];for(const t of e){const{group:e,type:n}=this[yc("0x12b")](t.name);if(yc("0x129")===e){r[yc("0x145")](this[yc("0x107")](n,yc("0x2c")));break}}for(const t of n){const{group:e,type:n}=this[yc("0x12b")](t[yc("0x2e")]);if(yc("0x129")===e){r[yc("0x145")](this[yc("0x107")](n,yc("0x31")));break}}r.length&&t.ui.ariaLiveAnnouncer.announce("trackChanges",r[yc("0x47")](" "))}))}[yc("0x42")](t){if(this._recordAttributeSuggestions)return!1;const e=this[yc("0xab")],n=e[yc("0xec")][yc("0x147")].differ[yc("0x12c")]();if(0==n[yc("0x7c")])return!1;const r=[],i=n[yc("0x73")]((t=>"attribute"==t[yc("0xb")])),o=n[yc("0x73")]((t=>yc("0x122")==t[yc("0xb")]&&yc("0x8f")!=t[yc("0x2e")])),s=n[yc("0x73")]((t=>yc("0xa5")==t[yc("0xb")]&&yc("0x8f")!=t.name));for(const t of i)r[yc("0x145")]({key:t.attributeKey,newValue:t.attributeNewValue,oldValue:t[yc("0x100")],range:Lc(t[yc("0x2a")],e[yc("0xec")])});for(const t of o){const n=s[yc("0x22")]((e=>e.position.isEqual(t[yc("0x170")])));n&&r[yc("0x145")]({key:"$elementName",newValue:t.name,oldValue:n.name,range:e.model[yc("0xae")](t[yc("0x170")][yc("0xd4")])})}return 0!=r[yc("0x7c")]&&this[yc("0x13c")](t,r)}[yc("0x58")](t){let e=!1;const n=this[yc("0xab")][yc("0xec")][yc("0x147")].differ[yc("0x173")]()[yc("0x73")]((t=>t[yc("0x27")][yc("0xb4")]&&t[yc("0x2e")][yc("0x160")](yc("0x5e"))));for(const r of n){const{subType:n,id:i}=this._splitMarkerName(r.name),o=n[yc("0x16b")]("|")[0];for(const n of this[yc("0x133")]({skipNotAttached:!0}))n.id!=i&&yc("0x2")==n[yc("0xb")]&&n[yc("0x27")]&&n[yc("0x27")][yc("0x152")]==o&&n.getFirstRange()[yc("0xd9")](r[yc("0x27")][yc("0xb4")])&&(this._reduceSuggestionAttributeRange(n,r[yc("0x27")][yc("0xb4")],t),e=!0)}return e}[yc("0x166")](t){this[yc("0xab")],this[yc("0x3a")]=!0,t()}_isRegisteredAttribute(t){const e=this[yc("0x82")](t),n=this[yc("0xb8")][yc("0x94")](t);return e||n}[yc("0x13c")](t,e){if(0==e[yc("0x7c")])return!1;let n=!1;for(const r of e){const e=this[yc("0x3")](r.range,yc("0x2"))[yc("0x73")]((t=>!t.meta[yc("0x74")]))[yc("0x104")]((t=>t[yc("0x129")])),i=(0,o.hashObject)({newValue:r.newValue});e[yc("0x73")]((t=>{const[e,n]=t.subType[yc("0x16b")]("|");return e==r[yc("0x152")]&&n!=i}))[yc("0x30")]((e=>{this[yc("0x108")](e,r[yc("0x2a")],t),n=!0}))}return n}[yc("0x108")](t,e,n){const r=t[yc("0xb5")]()[yc("0x25")](e);0!==r.length?1!==r[yc("0x7c")]?this[yc("0x140")](t,e[yc("0xc7")],e[yc("0x76")]):this[yc("0x6f")](t,r[0]):n[yc("0x55")](t.getFirstMarker())}}class kc{constructor(t){this[yc("0xa9")]=t,this[yc("0x13")]=t[yc("0xec")],this[yc("0x45")]=new Map,this[yc("0xa7")]=new Map,this._registerDefaultCallbacks()}[yc("0x8d")](t,e,n,r,i,o){return new Yr(this[yc("0x13")],{type:t,subType:e,id:n,author:r,creator:r,attributes:i,onAttributesChange:o,onAccept:(...n)=>this.getSuggestionCallback(t,e,"accept")(...n),onDiscard:(...n)=>this[yc("0x5")](t,e,yc("0x57"))(...n)})}[yc("0x112")](t,e,n,r){const i=t+":"+e+":"+n;this[yc("0x45")][yc("0x2d")](i,r)}[yc("0x5")](t,e,n){const r=t+":"+e+":"+n;return this._customCallbacks[yc("0xd8")](r)||this[yc("0xa7")].get(t+":"+n)}[yc("0x169")](){const t=()=>!1,e=t=>{t.sort(((t,e)=>t[yc("0xc7")][yc("0xd1")](e[yc("0xc7")])?1:-1)),this._model[yc("0x18")]((e=>{for(const n of t){let t;t=n[yc("0x76")][yc("0x123")]&&n[yc("0x76")][yc("0x101")]==n[yc("0xc7")][yc("0xd4")]?e[yc("0x165")](n[yc("0xc7")][yc("0xd4")],"on"):e[yc("0x165")](n),this[yc("0x13")].deleteContent(t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{e&&this[yc("0x13")][yc("0x18")]((n=>{const{commandName:r,commandParams:i=[]}=e,o=t[yc("0x104")]((t=>(Rc(t)&&(t=this._model[yc("0x2b")](t.end)),t))).filter((t=>"$graveyard"!==t[yc("0x130")][yc("0xff")]));if(o.length<1)return;const x=Array[yc("0xa")](this[yc("0x13")][yc("0x147")][yc("0x3e")][yc("0x12a")]()).map((t=>s.LiveRange[yc("0x4b")](t)));n.setSelection(o);for(const t of this[yc("0xa9")][yc("0xd6")][yc("0xd6")]())t[yc("0x8a")]();i.push({forceDefaultExecution:!0}),this._editor[yc("0x7f")](r,...i);const a=x[yc("0x73")]((t=>yc("0x9c")!=t[yc("0x130")][yc("0xff")]));a[yc("0x7c")]>0&&n.setSelection(a);for(const t of x)t[yc("0xcc")]()}))},r=(t,e)=>1==t[yc("0x7c")]&&1==e[yc("0x7c")]&&t[0][yc("0x76")].isEqual(e[0].start),i=(t,e,n,r)=>wc(t,e,n,r,this._model)?[t,e]:wc(e,t,r,n,this[yc("0x13")])?[e,t]:null;this._defaultCallbacks[yc("0x2d")]("insertion:accept",t),this._defaultCallbacks.set(yc("0xdb"),e),this[yc("0xa7")].set("insertion:join",r),this._defaultCallbacks[yc("0x2d")](yc("0xc2"),i),this[yc("0xa7")][yc("0x2d")]("deletion:accept",e),this._defaultCallbacks.set(yc("0xdc"),t),this[yc("0xa7")][yc("0x2d")](yc("0x131"),r),this[yc("0xa7")][yc("0x2d")](yc("0xd0"),i),this[yc("0xa7")][yc("0x2d")]("formatInline:accept",n),this[yc("0xa7")][yc("0x2d")](yc("0x4c"),t),this[yc("0xa7")][yc("0x2d")](yc("0xcf"),r),this[yc("0xa7")][yc("0x2d")](yc("0xd2"),t),this[yc("0xa7")][yc("0x2d")]("formatBlock:accept",n),this[yc("0xa7")][yc("0x2d")](yc("0x111"),t),this[yc("0xa7")][yc("0x2d")]("formatBlock:join",r),this[yc("0xa7")].set("formatBlock:chain",t),this[yc("0xa7")][yc("0x2d")](yc("0x15c"),t),this[yc("0xa7")][yc("0x2d")](yc("0x6a"),((t,e)=>{if(!e)return;const n=this[yc("0xa9")][yc("0x5b")][yc("0xd8")](Ac);this[yc("0x13")][yc("0x18")]((r=>{if("$elementName"==e[yc("0x152")])for(const n of t){const t=n[yc("0xc7")][yc("0xd4")],i=e[yc("0x91")];r[yc("0xe9")](t,i)}else if(n[yc("0x82")](e[yc("0x152")]))for(const n of t)void 0!==e[yc("0x91")]?r[yc("0x3f")](e[yc("0x152")],e.oldValue,n[yc("0xc7")][yc("0xd4")]):r[yc("0x118")](e[yc("0x152")],n.start.nodeAfter);else for(const n of t)e[yc("0x91")]?r[yc("0x3f")](e.key,e[yc("0x91")],n):r.removeAttribute(e[yc("0x152")],n)}))})),this._defaultCallbacks[yc("0x2d")](yc("0x153"),r)}}function Ic(t,e,n){for(const r of e[yc("0x101")][yc("0x116")]({includeSelf:!0,parentFirst:!0})){if(r.root==r)return!1;if(!n.containsItem(r))return!1;if(t.isObject(r)||t[yc("0x13b")](r))return!0}return!1}function Rc(t){return t[yc("0x76")][yc("0x101")]==t[yc("0xc7")].nodeAfter&&t[yc("0x76")][yc("0xfc")]}function Sc(t,e,n,r){const i=t=>!t[yc("0xa6")].is("$textProxy")&&!r[yc("0x21")](t.item),o=t[yc("0xc7")].getLastMatchingPosition(i),s=t.end[yc("0x87")](i,{direction:yc("0x14f")});return!(t[yc("0xc7")].isEqual(o)&&t[yc("0x76")][yc("0x167")](s)||(o.isBefore(s)?n[yc("0x171")](e,{range:n[yc("0x2b")](o,s)}):n[yc("0x55")](e),0))}function vc(t){return(0,o.hashObject)(t)}function Nc(t){const e=t.start[yc("0xd4")];return e&&e.is(yc("0xf"))}function Lc(t,e){return null==t[yc("0x76")][yc("0x80")]&&t[yc("0x76")][yc("0x101")]==t[yc("0xc7")][yc("0xd4")]?Mc(t[yc("0xc7")][yc("0xd4")],e):t}function Mc(t,e){const n=e[yc("0x81")][yc("0x21")](t)||e[yc("0x81")].isSelectable(t);return e[yc("0x2b")](e.createPositionAt(t,yc("0x9a")),n?e[yc("0xd")](t):e[yc("0x10e")](t,yc("0x76")))}function wc(t,e,n,r,i){if(!Oc(t,e))return!1;if(n[yc("0x76")][yc("0x167")](r[yc("0xc7")]))return!0;if(t[yc("0xb")]!=e[yc("0xb")])return!1;if(!n[yc("0x76")][yc("0x16a")](r[yc("0xc7")]))return!1;const o=i.createRange(n.end,r[yc("0xc7")])[yc("0x4f")]();for(const t of o)if(["elementStart",yc("0xba")][yc("0xe1")](t[yc("0xb")])&&i[yc("0x81")][yc("0x13b")](t[yc("0xa6")]))return!1;return!0}function Oc(t,e,n=[]){return!(!t[yc("0x51")]||!e[yc("0x51")])&&jr(pc(t.attributes,n),pc(e[yc("0xe0")],n))}function Fc(t,e){const n=Dc(t[yc("0xe0")]),r=Dc(e);if(!t._isDataLoaded)return!1;for(const t of Object[yc("0x4")](r))if(!jr(n[t],r[t]))return!1;return!0}function Dc(t){const e=Object.assign({},t);return delete e[yc("0x11d")],delete e[yc("0xde")],e}const Pc=["PENDING_ACTION_SUGGESTION","execute","_removePendingAction","change:isDirty","acceptSuggestion","canDiscard","model","isEnabled","unbind","_discardCommand","listenTo","getRanges","commands","canAccept","_setPendingAction","commentThreadController","discardSuggestion","plugins","view","locale","bind","_pendingAction","destroy","PendingActions","canEditAt","get","_acceptCommand","_editor"];var Bc,Uc;Bc=Pc,Uc=410,function(t){for(;--t;)Bc.push(Bc.shift())}(++Uc);const jc=function(t,e){return Pc[t-=0]};class Gc extends((0,e.ObservableMixin)()){constructor(t,e,n,r){super(),this[jc("0x10")]=e,this.view=n,this.commentThreadController=r,this[jc("0x9")]=t,this[jc("0x8")]=t.commands[jc("0x7")](jc("0xe")),this[jc("0x13")]=t[jc("0x16")][jc("0x7")]("discardSuggestion"),this[jc("0x0")][jc("0x2")](jc("0x11")).to(this[jc("0x8")],this[jc("0x13")],((t,e)=>t||e)),this[jc("0x0")][jc("0x2")]("canAccept").to(this._acceptCommand,"isEnabled",(t=>t&&this[jc("0x9")][jc("0x10")][jc("0x6")](e[jc("0x15")]()))),this.view[jc("0x2")]("canDiscard").to(this[jc("0x13")],jc("0x11"),(t=>t&&this[jc("0x9")][jc("0x10")][jc("0x6")](e[jc("0x15")]()))),this._pendingAction=null,n.isDirty&&this[jc("0x18")](),this.listenTo(n,jc("0xe"),(()=>this[jc("0xe")]())),this[jc("0x14")](n,jc("0x1a"),(()=>this[jc("0x1a")]())),this[jc("0x14")](n,jc("0xd"),(()=>{n.isDirty?this[jc("0x18")]():this._removePendingAction()}))}acceptSuggestion(){this._acceptCommand[jc("0xb")](this[jc("0x10")].id)}discardSuggestion(){this[jc("0x13")][jc("0xb")](this[jc("0x10")].id)}[jc("0x4")](){this[jc("0x0")][jc("0x12")](jc("0x11")),this[jc("0x0")].unbind(jc("0x17")),this[jc("0x0")].unbind(jc("0xf")),this.stopListening(),this[jc("0x19")][jc("0x4")](),this[jc("0x3")]&&this[jc("0xc")]()}[jc("0x18")](){const t=Qr(this[jc("0x9")][jc("0x1")],jc("0xa"));this[jc("0x3")]=this[jc("0x9")][jc("0x1b")][jc("0x7")]("PendingActions").add(t)}_removePendingAction(){null!==this[jc("0x3")]&&this[jc("0x9")][jc("0x1b")][jc("0x7")](jc("0x5")).remove(this[jc("0x3")]),this._pendingAction=null}}const Vc=["isReadOnly","canDiscard","_localUser","_createCommentViews","bind","focus","editorConfig","submit","authoredAt","editor","commentThread","addComment","isEnabled","CommentView","commentInputView","commentThreadInputView","destroy","fire","isDirty","delegate","descriptionParts","length","setData","updateComment","commentsListView","removeComment","isActive","locale","_createCommentThreadInputView","_model","set","cancel","showInput","hasDirtyComment","canAccept","disableComments","_config","value"];var Hc,zc;Hc=Vc,zc=146,function(t){for(;--t;)Hc.push(Hc.shift())}(++zc);const Wc=function(t,e){return Vc[t-=0]};class Kc extends i.View{constructor(t,e,n,r){super(t),this[Wc("0x1e")]=null,this[Wc("0x15")]=null,this.set(Wc("0x20"),!1),this[Wc("0x24")](Wc("0xe"),e.authoredAt),this[Wc("0xa")](Wc("0xe")).to(e),this.set(Wc("0x1a"),[]),this.set(Wc("0x18"),!1),this.set(Wc("0x12"),!1),this[Wc("0x24")](Wc("0x2"),!1),this[Wc("0x24")](Wc("0x7"),!1),this[Wc("0x23")]=e,this[Wc("0x8")]=n,this[Wc("0x4")]=r,r[Wc("0x3")]?this[Wc("0x24")](Wc("0x1b"),1):this[Wc("0x9")]()}[Wc("0xb")](){this.element[Wc("0xb")]()}[Wc("0x16")](){this.commentsListView&&this.commentsListView[Wc("0x16")](),this[Wc("0x15")]&&this[Wc("0x15")].destroy(),super[Wc("0x16")]()}[Wc("0x9")](){const{CommentsListView:t}=this[Wc("0x4")];this[Wc("0x1e")]=new t(this[Wc("0x21")],this._model[Wc("0x10")],Object.assign({CommentView:this[Wc("0x4")][Wc("0x13")]},this._config)),this[Wc("0x1e")][Wc("0x19")]("removeComment").to(this),this[Wc("0x1e")][Wc("0x19")](Wc("0x1d")).to(this),this[Wc("0x1e")][Wc("0xa")](Wc("0x20")).to(this),this[Wc("0x24")](Wc("0x1b"),this[Wc("0x1e")].length+1),this.bind(Wc("0x1b")).to(this[Wc("0x1e")],Wc("0x1b"),(t=>t+1)),this[Wc("0x15")]=this[Wc("0x22")](),this.on(Wc("0x1f"),(()=>this[Wc("0xb")]())),this[Wc("0xa")](Wc("0x18")).to(this.commentsListView,Wc("0x1"),this[Wc("0x15")][Wc("0x14")],Wc("0x5"),((t,e)=>t||!!e))}[Wc("0x22")](){const{CommentThreadInputView:t}=this[Wc("0x4")],e=new t(this[Wc("0x21")],this[Wc("0x8")],this._config[Wc("0xc")]),n=e[Wc("0x14")];return e[Wc("0xa")](Wc("0x0")).to(this,Wc("0x20"),this[Wc("0x23")][Wc("0x10")],Wc("0x6"),n,Wc("0x5"),((t,e,n)=>!!n||t&&!e)),n.on(Wc("0xd"),((t,e)=>{this[Wc("0x17")](Wc("0x11"),e),n[Wc("0xf")][Wc("0x1c")]("")})),n.on(Wc("0x25"),(()=>this[Wc("0xb")]())),n[Wc("0xa")]("disabledSubmit").to(this[Wc("0x23")].commentThread,Wc("0x6")),e}}const qc=["isActive","discardSuggestion","</p>","_descriptionElement","ck-suggestion--accept","title","@external","bindTemplate","bind","setTemplate","querySelector","innerHTML","ck-annotation__content-wrapper","_model","ck-suggestion","innerText","change:description","getTemplate","ck-annotation__user","Discard suggestion","attributes","extendTemplate","canAccept","ck-suggestion-wrapper--active","children","getExternalSuggestionNote","element","value","EXTERNAL_IMPORT_WORD_AVATAR","map","isEnabled","<p>",'"></span>',"div","</span>","ck-suggestion__user","execute","ck-annotation","ck-suggestion--discard","check","description","EXTERNAL_SUGGESTION","_createButton","disableComments","delegate","userView","ck-comment__info-time","discardButton","createElement","acceptSuggestion","creator","canDiscard","_config","ck-suggestion--disabled-comments","span",'<span class="ck-suggestion-type">',"importWord",'" title="',"acceptButton","locale","type","ck-suggestion__info-name","ck-suggestion__main","ck-suggestion-","commentThreadInputView","getUserViewNotificationText","push","name","ck-comment__external","ck-annotation__info-time","join","commentsListView","Accept suggestion","source","author","descriptionParts","ck-annotation__info","render","authoredAt","set",'<span class="ck-suggestion-color" style="background-color: ',"editorDestroyed"];var Xc,$c;Xc=qc,$c=338,function(t){for(;--t;)Xc.push(Xc.shift())}(++$c);const Zc=function(t,e){return qc[t-=0]};class Yc extends Kc{constructor(e,n,r,i){super(e,n,r,i),this[Zc("0x45")](Zc("0x32"),""),this[Zc("0x50")](Zc("0x32")).to(this,Zc("0x41"),(t=>t&&t[0]?t[0][Zc("0x32")]:"")),this[Zc("0x50")](Zc("0x1e")).to(this,"descriptionParts",this,Zc("0x48"),((t,e)=>{let n="";for(const e of t)n+=Zc("0x15")+Qc(e.content,e.color)+Zc("0x4a");return e?n:(0,o.trimHtml)(n,{limit:140})})),this[Zc("0x4b")]=null,this[Zc("0x30")]=this._createButton(Qr(e,Zc("0x3e")),t.icons[Zc("0x1d")],Zc("0x4c"),Zc("0x27"),"sw"),this.acceptButton.bind(Zc("0x14")).to(this,Zc("0xc")),this.discardButton=this[Zc("0x20")](Qr(e,Zc("0x9")),t.icons.cancel,Zc("0x1c"),Zc("0x49"),"sw"),this[Zc("0x25")][Zc("0x50")](Zc("0x14")).to(this,Zc("0x29")),this.userView=new o.UserView(e,this._model[Zc("0x40")],this[Zc("0x37")]()),this[Zc("0x23")].extendTemplate({attributes:{class:[Zc("0x19"),Zc("0x8")]}}),this[Zc("0x51")](this[Zc("0x7")]())}[Zc("0x7")](){const t=this[Zc("0x4f")],e=[{tag:"div",attributes:{class:["ck-suggestion__info",Zc("0x42")]},children:[{tag:Zc("0x2c"),children:[{text:this[Zc("0x23")][Zc("0x39")]}],attributes:{class:[Zc("0x33"),"ck-annotation__info-name"]}},{tag:"time",attributes:{datetime:t.to(Zc("0x44")),class:[Zc("0x24"),Zc("0x3b")]},children:[{text:t.to("authoredAt",(t=>this[Zc("0x2a")].formatDateTime(t)))}]}]},{tag:"div",attributes:{class:["ck-suggestion__actions","ck-annotation__actions"]},children:[this[Zc("0x30")],this[Zc("0x25")]]},{tag:"div",attributes:{class:[Zc("0x2")]}}];this[Zc("0x3")].isExternal&&e[Zc("0x38")]({tag:Zc("0x17"),attributes:{class:[Zc("0x3a")]},children:[{text:this[Zc("0xf")]()}]});const n={tag:"div",attributes:{class:["ck-suggestion-wrapper",t.if(Zc("0x48"),Zc("0xd")),t.to("type",(t=>Zc("0x35")+t)),this[Zc("0x2a")][Zc("0x21")]&&Zc("0x2b")],"data-suggestion-id":this._model.id,"data-thread-id":this[Zc("0x3")].commentThread.id,"data-author-id":this._model.author.id,tabindex:-1},children:[{tag:Zc("0x17"),attributes:{class:[Zc("0x4"),Zc("0x1b")]},children:[this[Zc("0x23")],{tag:Zc("0x17"),attributes:{class:[Zc("0x34"),"ck-annotation__main"]},children:e}]}]};return this[Zc("0x3d")]&&this[Zc("0x36")]&&(n[Zc("0xe")].push(this.commentsListView,this[Zc("0x36")]),this[Zc("0x3d")][Zc("0x22")]("editorReady").to(this),this[Zc("0x3d")][Zc("0x22")](Zc("0x47")).to(this),this.commentThreadInputView[Zc("0x22")]("editorReady").to(this),this.commentThreadInputView[Zc("0x22")](Zc("0x47")).to(this)),n}[Zc("0x43")](){super[Zc("0x43")](),this[Zc("0x4b")]=this[Zc("0x10")][Zc("0x0")](".ck-annotation__content-wrapper"),this[Zc("0x4b")][Zc("0x1")]=this[Zc("0x1e")],this.on(Zc("0x6"),((t,e,n)=>{this[Zc("0x4b")][Zc("0x1")]=n}))}[Zc("0x20")](t,e,n,r,o){const s=new i.ButtonView(this[Zc("0x31")]);return s[Zc("0x45")]({label:t,icon:e,tooltip:!0,tooltipPosition:o}),s[Zc("0xb")]({attributes:{class:n}}),s.on(Zc("0x1a"),(()=>{this.fire(r,this[Zc("0x3")].id)})),s}[Zc("0xf")](){return Zc("0x2e")===this[Zc("0x3")][Zc("0xa")][Zc("0x4e")][Zc("0x3f")]?Qr(this[Zc("0x31")],"EXTERNAL_IMPORT_WORD_SUGGESTION"):Qr(this[Zc("0x31")],Zc("0x1f"))}[Zc("0x37")](){return this[Zc("0x3")].isExternal?Zc("0x2e")===this[Zc("0x3")][Zc("0xa")]["@external"][Zc("0x3f")]?Qr(this[Zc("0x31")],Zc("0x12"),this[Zc("0x3")][Zc("0x28")][Zc("0x39")]):Qr(this[Zc("0x31")],"EXTERNAL_AVATAR",this._model[Zc("0x28")][Zc("0x39")]):null}}function Qc(t,e){let n="";return n+=t.split("*")[Zc("0x13")](((t,e)=>e%2!=0?Zc("0x2d")+Jc(t)+Zc("0x18"):Jc(t)))[Zc("0x3c")](""),e&&(n+=Zc("0x46")+e[Zc("0x11")]+Zc("0x2f")+e[Zc("0x4d")]+Zc("0x16")),n}function Jc(t){const e=document[Zc("0x26")](Zc("0x2c"));return e[Zc("0x5")]=t,e.innerHTML}const tl=["change:previous","isMultiRange","isOn","CommentsRepository","head","SuggestionThreadView","add","activeMarkers","pluginName","set","_destroyController","reduce","trackChanges.disableComments","_handleSuggestionControllerDelayed","_viewToController","addComment","change:activeAnnotations","addSourceCollector","arrowView","getDescriptions","getByInnerView","config","actionView","_descriptionFactory","comments.maxCommentCharsWhenCollapsed","commandName","_unbindEditors","acceptSelectedSuggestions","discardSelectedSuggestions","define","comments.maxCommentsWhenCollapsed","_handleControllerBuffer","from","suggestionChanged","delete","toMany","refreshSelectedViews","createAnnotation","isDirty","CommentsUI","source","some","map","getMarkerNames","hasSuggestion","button","has","switchbutton","TrackChangesUI","separator","get","locale","view","type","EditorAnnotations","trackChanges","requires","Annotations","descriptionParts","lowest","isEnabled","mainView","_annotationViews","_updateController","values","bind","getMarkers","focus","commands","remove","_disableComments","filter","plugins","push","_suggestionToController","comments.editorConfig","execute","keys","comments.maxThreadTotalWeight","suggestionUnloaded","TrackChangesEditing","model","destroy","init","buttonView","CommentView","innerView","_bindAnnotationToEditors","editing","suggestion-","length","Accept all suggestions","componentFactory","getSuggestion","listenTo","editor","getAllAdjacentSuggestions","_createUIButton","acceptAllSuggestions","discardButton","Track changes","discardAllSuggestions","_initializeController","commentThread","_refreshActiveMarkers","previous","unbind","isInContent"];var el,nl;el=tl,nl=214,function(t){for(;--t;)el.push(el.shift())}(++nl);const rl=function(t,e){return tl[t-=0]};class il extends t.Plugin{static get[rl("0x3a")](){return[Ac,o.Users,rl("0x5"),"Annotations",rl("0x38")]}static get[rl("0xa")](){return rl("0x32")}constructor(t){super(t),this[rl("0x4c")]=new Map,this._viewToController=new Map,this[rl("0x40")]=new Map,this[rl("0x21")]=new Map;const e=this[rl("0x61")][rl("0x17")];e[rl("0x1f")]("trackChanges.SuggestionThreadView",Yc),e[rl("0x1f")]("trackChanges.disableComments",!1),this[rl("0x48")]=e.get(rl("0xe"))}[rl("0xf")](t,e){0===this[rl("0x21")].size&&setTimeout((()=>{for(const[t,e]of this[rl("0x21")]){const n=this._suggestionToController[rl("0x30")](t);n||e?n&&e&&this._destroyController(t):this._initializeController(t)}this[rl("0x21")].clear(),this.editor.plugins[rl("0x34")](rl("0x38"))[rl("0x26")](),this[rl("0x6a")]()}),10),this[rl("0x21")].set(t,e)}[rl("0x55")](){const t=this[rl("0x61")],e=t.plugins.get(rl("0x52")),n=t[rl("0x4a")].get(rl("0x3b")),r=t[rl("0x4a")][rl("0x34")](rl("0x38")),i=t[rl("0x4a")][rl("0x34")](rl("0x5"));t.ui[rl("0x5e")][rl("0x8")](rl("0x39"),(t=>this[rl("0x63")](t))),r[rl("0x13")]((()=>{const t=[];for(const[e,n]of Array[rl("0x22")](this[rl("0x4c")])){const r=e[rl("0x62")](),i=[];for(const t of r){if(!t[rl("0x1")])continue;if(t[rl("0x3")]){i.push(...t.getRanges());continue}const e=t.getFirstRange();if(i[rl("0x5c")]>0){const t=i[0].getJoined(e);if(t){i[0]=t;continue}}i[rl("0x4b")](e)}t[rl("0x4b")]([n.view,i])}return t})),this.listenTo(e,"suggestionLoaded",((t,e)=>{this.listenTo(e,rl("0x2"),((t,n,r,i)=>{e.isInContent&&(null==r?(this[rl("0x41")](i[rl("0x6")]),this[rl("0xf")](e,!1)):(this[rl("0x41")](r[rl("0x6")]),null==i&&this._handleSuggestionControllerDelayed(e,!0)))})),null!==e[rl("0x6b")]?this[rl("0x41")](e[rl("0x6")]):this._handleSuggestionControllerDelayed(e,!1)})),this[rl("0x60")](e,rl("0x51"),((t,e,n)=>{this.stopListening(e,rl("0x2")),this._handleControllerBuffer[rl("0x24")](e),this[rl("0x4c")][rl("0x30")](e)&&this._destroyController(e),n&&this[rl("0x41")](n[rl("0x6")])})),this.listenTo(e,rl("0x23"),((t,e)=>{this[rl("0x41")](e)})),this[rl("0x60")](n,rl("0x12"),(()=>{this[rl("0x6a")]()})),this[rl("0x60")](i,rl("0x11"),((t,{threadId:n,isFromAdapter:r})=>{if(r||!e[rl("0x2e")](n))return;const i=e[rl("0x5f")](n);this[rl("0x4c")][rl("0x34")](i)[rl("0x36")][rl("0x45")]()}),{priority:rl("0x3d")})}[rl("0x6a")](){const t=this.editor[rl("0x4a")].get("Annotations"),e=this.editor[rl("0x4a")][rl("0x34")](rl("0x52")),n=Array.from(t.activeAnnotations,(t=>t[rl("0x58")]))[rl("0x49")]((t=>this[rl("0x10")][rl("0x30")](t))),r=[];for(const t of n){const e=this[rl("0x10")][rl("0x34")](t).model.getAllAdjacentSuggestions();r.push(...e[rl("0xd")](((t,e)=>[...t,...e[rl("0x2d")]()]),[]))}e[rl("0x9")]=r}[rl("0x63")](t){const n=(0,i.createDropdown)(t,i.SplitButtonView),r=this[rl("0x61")][rl("0x46")][rl("0x34")](rl("0x39")),o=Qr(t,rl("0x66"));n[rl("0x56")].set({tooltip:o,label:o,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[rl("0x56")].bind(rl("0x4")).to(r,"value"),n[rl("0x56")].on(rl("0x4e"),(()=>{r.execute(),this[rl("0x61")].editing.view[rl("0x45")]()}));const s=new e.Collection,x=[{type:rl("0x31"),model:{withText:!0,label:o,commandName:rl("0x39")}},{type:"separator"},{type:rl("0x2f"),model:{withText:!0,label:Qr(t,rl("0x5d")),commandName:rl("0x64")}},{type:rl("0x2f"),model:{withText:!0,label:Qr(t,"Accept all selected suggestions"),commandName:rl("0x1d")}},{type:rl("0x2f"),model:{withText:!0,label:Qr(t,"Discard all suggestions"),commandName:rl("0x67")}},{type:rl("0x2f"),model:{withText:!0,label:Qr(t,"Discard all selected suggestions"),commandName:rl("0x1e")}}];for(const t of x){let e={type:rl("0x33")};if(t.model){const n=new i.ViewModel(t[rl("0x53")]),r=this.editor.commands[rl("0x34")](n[rl("0x1b")]);n.bind(rl("0x4"),rl("0x3e")).to(r,"value",rl("0x3e")),e={type:t[rl("0x37")],model:n}}s[rl("0x8")](e)}(0,i.addListToDropdown)(n,s);const a=x[rl("0x49")]((t=>null!=t[rl("0x53")]))[rl("0x2c")]((t=>this[rl("0x61")].commands[rl("0x34")](t[rl("0x53")][rl("0x1b")]))),c=n[rl("0x56")];return c[rl("0x18")][rl("0x0")]("isEnabled"),c[rl("0x14")][rl("0x0")]("isEnabled"),c[rl("0x18")][rl("0x43")](rl("0x3e")).to(r,rl("0x3e")),c.arrowView[rl("0x43")](rl("0x3e"))[rl("0x25")](a,rl("0x3e"),((...t)=>t[rl("0x2b")]((t=>t)))),n.on(rl("0x4e"),(t=>{this[rl("0x61")][rl("0x4e")](t[rl("0x2a")][rl("0x1b")]),this[rl("0x61")][rl("0x5a")].view[rl("0x45")]()})),n}[rl("0x68")](t){const e=this[rl("0x61")],n=e.config,r=e[rl("0x4a")][rl("0x34")](rl("0x3b")),i=e[rl("0x4a")][rl("0x34")](rl("0x5")),s=e[rl("0x4a")][rl("0x34")](rl("0x38")),x=e[rl("0x4a")].get(o.Users).me,a=n[rl("0x34")](rl("0x39"))[rl("0x7")],{CommentsListView:c,CommentThreadInputView:l}=e[rl("0x4a")].get(rl("0x29"));let u,d;this[rl("0x40")][rl("0x30")](t.id)?(d=this[rl("0x40")][rl("0x34")](t.id),u=d[rl("0x3f")]):(u=new a(e[rl("0x35")],t,x,{disableComments:this[rl("0x48")],editorConfig:n[rl("0x34")](rl("0x4d")),maxCommentsWhenCollapsed:n.get(rl("0x20")),maxThreadTotalWeight:n.get(rl("0x50")),maxCommentCharsWhenCollapsed:n[rl("0x34")](rl("0x1a")),formatDateTime:(0,o.getDateTimeFormatter)(n[rl("0x34")](rl("0x35"))),CommentView:n[rl("0x34")]("comments")[rl("0x57")],CommentsListView:c,CommentThreadInputView:l}),u.acceptButton.on("execute",(()=>{e[rl("0x5a")].view[rl("0x45")]()})),u[rl("0x65")].on("execute",(()=>{e[rl("0x5a")].view[rl("0x45")]()})),d=r.createAnnotationView(this.editor[rl("0x35")],u),d[rl("0x43")](rl("0x28")).to(u,rl("0x28")),d.bind("length").to(u),d[rl("0x43")]("type").to(u,rl("0x37"),(t=>rl("0x5b")+t)),this[rl("0x40")][rl("0xb")](t.id,d));const g=i.createCommentThreadController(t[rl("0x69")],u),f=new Gc(e,t,u,g),h=t[rl("0x62")]().filter((t=>t[rl("0x1")]));u.descriptionParts=e.plugins[rl("0x34")]("TrackChangesEditing")[rl("0x19")][rl("0x15")](h),this[rl("0x4c")][rl("0xb")](t,f),this[rl("0x10")][rl("0xb")](u,f);const m=r[rl("0x27")]({view:d,target:()=>{const n=[],r=t[rl("0x62")]()[rl("0x49")]((t=>t[rl("0x1")]));for(const t of r)n[rl("0x4b")](...t[rl("0x44")]());return(0,o.getAllMarkersDomElementsSorted)(e[rl("0x5a")],n)},type:()=>"suggestion-"+f[rl("0x36")][rl("0x37")]});i[rl("0x59")](u,m),r.add(m),s.registerAnnotation(m)}_destroyController(t){const e=this.editor[rl("0x4a")][rl("0x34")](rl("0x5")),n=this[rl("0x61")][rl("0x4a")][rl("0x34")](rl("0x3b")),r=this[rl("0x4c")][rl("0x34")](t),i=r[rl("0x36")],o=n[rl("0x16")](i);e[rl("0x1c")](i),o&&n[rl("0x47")](o),this[rl("0x4c")].delete(t),this[rl("0x10")].delete(i),r.destroy()}_updateController(t){if(!t[rl("0x1")]||!this._suggestionToController.has(t))return;const e=this[rl("0x61")].plugins[rl("0x34")]("TrackChangesEditing"),n=this[rl("0x4c")][rl("0x34")](t),r=t.getAllAdjacentSuggestions();n.view[rl("0x3c")]=e[rl("0x19")][rl("0x15")](r)}[rl("0x54")](){for(const t of this._suggestionToController[rl("0x4f")]())this[rl("0xc")](t);for(const t of this[rl("0x40")][rl("0x42")]())t[rl("0x3f")][rl("0x54")]();super[rl("0x54")]()}}var ol,sl,xl=["plugins","Comments","getSuggestions","requires","editor","adapter","getSuggestion","get"];ol=xl,sl=203,function(t){for(;--t;)ol.push(ol.shift())}(++sl);var al=function(t,e){return xl[t-=0]};class cl extends t.Plugin{static get[al("0x0")](){return[Ac,il,al("0x6")]}static get pluginName(){return"TrackChanges"}set adapter(t){this[al("0x1")][al("0x5")][al("0x4")](Ac)[al("0x2")]=t}get[al("0x2")](){return this[al("0x1")][al("0x5")][al("0x4")](Ac)[al("0x2")]}addSuggestion(t){return this[al("0x1")][al("0x5")][al("0x4")](Ac).addSuggestionData(t)}[al("0x7")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[al("0x1")].plugins[al("0x4")](Ac)[al("0x7")]({skipNotAttached:t,toJSON:e})}[al("0x3")](t){return this.editor[al("0x5")][al("0x4")](Ac).getSuggestion(t)}}const ll=["getRootsAttributes","name","createDocumentFragment","get","acceptAllSuggestions","data","CommentsRepository","addSuggestionData","addUser","plugins","result","getDataWithDiscardedSuggestions","reduce","getRootNames","editor","function","TrackChangesData","div","destroy","config","end","create","model","set","discardAllSuggestions","_adapter","Pagination","map","users","define","getUser","TrackChangesEditing","appendChild","rootsAttributes","editorCreator","trackChangesData","document","createElement","push","Users","trackChangesData.editorCreator","constructor","init","getSuggestions"];var ul,dl;ul=ll,dl=297,function(t){for(;--t;)ul.push(ul.shift())}(++dl);const gl=function(t,e){return ll[t-=0]},fl=[gl("0x25")];class hl extends t.Plugin{static get requires(){return[Ac]}static get pluginName(){return gl("0x1b")}init(){const t=this[gl("0x19")];if(t[gl("0x1e")][gl("0x28")](gl("0x7"),(e=>{const n=t[gl("0x21")][gl("0x3")].getRootNames()[gl("0x17")](((t,e)=>(t[e]="",t)),{});return t[gl("0x8")][gl("0x20")](n,e)})),gl("0x1a")!=typeof t[gl("0x1e")][gl("0xe")]("trackChangesData")[gl("0x1")])throw new e.CKEditorError("track-changes-data-invalid-editor-creator")}getDataWithAcceptedSuggestions(t){return pl(this.editor,!0,t)}[gl("0x16")](t){return pl(this.editor,!1,t)}}class ml extends t.Plugin{static get pluginName(){return"TrackChangesDataGetter"}constructor(t){super(t),this[gl("0x15")]=gl("0x1f")}[gl("0x9")](){this[gl("0x19")][gl("0x14")][gl("0xe")](gl("0x11"))[gl("0x24")]={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.plugins[gl("0xe")](gl("0x2a"))._adapter=null}}function bl(t){return void 0!==t[gl("0xb")]}async function pl(t,e,n){const r=(0,o.sanitizeEditorConfig)(t,fl);r.plugins[gl("0x5")](Ac,ml),r[gl("0x0")]=bl(t)?t[gl("0xb")]():void 0;const i=document[gl("0xd")](),s=t[gl("0x1e")].get(gl("0x2")).editorCreator,x=await s(r,(()=>function(t){const e=document[gl("0x4")](gl("0x1c"));return t[gl("0x2b")](e),e}(i)));!function(t,e){const n=t[gl("0x21")][gl("0x3")][gl("0x18")]()[gl("0x17")](((e,n)=>(e[n]=t[gl("0x10")][gl("0xe")]({rootName:n}),e)),{}),r=t.plugins[gl("0xe")](gl("0x6"))[gl("0x27")][gl("0x26")]((t=>({id:t.id,name:t[gl("0xc")]}))),i=t[gl("0x14")].get(gl("0x2a"))[gl("0xa")]({skipNotAttached:!0,toJSON:!0}),o=e[gl("0x14")][gl("0xe")](gl("0x6")),s=e[gl("0x14")][gl("0xe")]("TrackChangesEditing");for(const t of r)o[gl("0x29")](t.id)||o[gl("0x13")](t);o.me||o.useAnonymousUser();for(const t of i)s[gl("0x12")](t);e[gl("0x10")][gl("0x22")](n)}(t,x),x.execute(gl(e?"0xf":"0x23"));const a=bl(x)?x.getFullData(n):x.data[gl("0xe")](n);return await x[gl("0x1d")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=r})();
|