@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240713.0 → 0.0.0-nightly-20240714.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +3 -3
- package/src/trackchangesediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as ts,Plugin as
|
|
24
|
-
_0x29d385(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2040b2,_0x28f9e6){super(),this['id']=_0x28f9e6['id'],this['type']=_0x28f9e6['type'],this['subType']=_0x28f9e6['subType']||null,this['author']=_0x28f9e6['author'],this['creator']=_0x28f9e6['creator']||_0x28f9e6['author'],this['isExternal']=Boolean(_0x28f9e6['attributes']&&_0x28f9e6['attributes']['@external']),this['data']=null,this['_model']=_0x2040b2,this['_onAccept']=_0x28f9e6['onAccept'],this['_onDiscard']=_0x28f9e6['onDiscard'],this['_onAttributesChange']=_0x28f9e6['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x28f9e6['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x244001=this;for(;_0x244001['previous'];)_0x244001=_0x244001['previous'];return _0x244001;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x10d109){this['_markerNames']['add'](_0x10d109);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x5a3925=>this['_model']['markers']['get'](_0x5a3925))['filter'](_0x1899fa=>_0x1899fa);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2b56ba=>{for(const _0x2a9644 of this['getMarkers']())_0x2b56ba['removeMarker'](_0x2a9644);}),this['_markerNames']['clear']();}['removeMarker'](_0x15a6a9){this['_model']['change'](_0x302483=>{_0x302483['removeMarker'](_0x15a6a9);}),this['_markerNames']['delete'](_0x15a6a9);}['addRange'](_0x166abf){const _0x36f0ca='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x36f0ca),this['_model']['change'](_0x1a7b26=>{_0x1a7b26['addMarker'](_0x36f0ca,{'range':_0x166abf,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x28a1b0){for(const _0x13f664 of this['getRanges']())if(_0x13f664['isIntersecting'](_0x28a1b0))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4ffebb=>_0x4ffebb['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3be996,_0x4e7961)=>[..._0x3be996,..._0x4e7961['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x108da0=this['getRanges']();if(0x1!=_0x108da0['length'])return null;const _0x50199c=_0x108da0[0x0],_0x54da1d=_0x50199c['start']['nodeAfter'],_0x252071=_0x50199c['end']['nodeBefore'];return _0x54da1d instanceof _0x11180d?_0x54da1d!=_0x252071?null:_0x54da1d:null;}['accept'](){this['_onAccept'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['discard'](){this['_onDiscard'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['getAllAdjacentSuggestions'](){const _0x59a88e=[];let _0x52f184=this['head'];for(;_0x52f184;)_0x59a88e['push'](_0x52f184),_0x52f184=_0x52f184['next'];return _0x59a88e;}['setAttribute'](_0x295d9a,_0x546919){const _0x5e9b4c=_0x574e51(this['attributes']);_0x3d1f8a(_0x5e9b4c,_0x295d9a,_0x546919),_0x7f9970(_0x5e9b4c,this['attributes'])||(this['attributes']=_0x5e9b4c,this['_onAttributesChange'](_0x5e9b4c));}['removeAttribute'](_0x31a881){const _0x4a8a83=_0x574e51(this['attributes']);_0x541f6c(_0x4a8a83,_0x31a881),_0x7f9970(_0x4a8a83,this['attributes'])||(this['attributes']=_0x4a8a83,this['_onAttributesChange'](this['attributes']));}['toJSON'](){return{'id':this['id'],'type':this['subType']?this['type']+':'+this['subType']:this['type'],'authorId':this['creator']['id'],'createdAt':this['createdAt'],'hasComments':this['hasComments'],'data':this['data'],'attributes':this['attributes']};}static['getMultiRangeId'](){return _0x5ed2a0()['substr'](0x1,0x5);}}function o(_0x38fb52,_0x231a0d,_0x1d6e8f){const t=_0x38fb52['t'];switch(_0x231a0d){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x1d6e8f);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1d6e8f);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1d6e8f);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1d6e8f);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1d6e8f);case'*Format:*\x20change\x20table\x20properties':return t('*Format:*\x20change\x20table\x20properties');case'*Format:*\x20change\x20table\x20cell\x20properties':return t('*Format:*\x20change\x20table\x20cell\x20properties');case'*Format:*\x20insert\x20into\x20%0':return t('*Format:*\x20insert\x20into\x20%0',_0x1d6e8f);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1d6e8f);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1d6e8f);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1d6e8f);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1d6e8f);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1d6e8f);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1d6e8f);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1d6e8f);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1d6e8f);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1d6e8f);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1d6e8f);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1d6e8f);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1d6e8f);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1d6e8f);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1d6e8f);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1d6e8f);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1d6e8f);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1d6e8f);case'*Remove\x20highlight*':return t('*Remove\x20highlight*');case'FORMAT_HIGHLIGHT':return t({'string':'highlight','id':'FORMAT_HIGHLIGHT'});case'FORMAT_RESTRICTED_ENABLED':return t({'string':'*Enable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_ENABLED'});case'FORMAT_RESTRICTED_DISABLED':return t({'string':'*Disable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_DISABLED'});case'ELEMENT_TABLE':return t({'string':'table','plural':'%0\x20tables','id':'ELEMENT_TABLE'},_0x1d6e8f);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1d6e8f);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1d6e8f);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1d6e8f);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1d6e8f);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1d6e8f);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x1d6e8f);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1d6e8f);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1d6e8f);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1d6e8f);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1d6e8f);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x1d6e8f);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1d6e8f);case'FORMAT_ALIGNMENT':return t({'string':'alignment','id':'FORMAT_ALIGNMENT'});case'FORMAT_ALIGN_TO_LEFT':return t({'string':'align\x20to\x20left','id':'FORMAT_ALIGN_TO_LEFT'});case'FORMAT_ALIGN_TO_RIGHT':return t({'string':'align\x20to\x20right','id':'FORMAT_ALIGN_TO_RIGHT'});case'FORMAT_ALIGN_TO_CENTER':return t({'string':'align\x20to\x20center','id':'FORMAT_ALIGN_TO_CENTER'});case'FORMAT_JUSTIFY_TEXT':return t({'string':'justify','id':'FORMAT_JUSTIFY_TEXT'});case'FORMAT_BOLD':return t({'string':'bold','id':'FORMAT_BOLD'});case'FORMAT_ITALIC':return t({'string':'italic','id':'FORMAT_ITALIC'});case'FORMAT_UNDERLINE':return t({'string':'underline','id':'FORMAT_UNDERLINE'});case'FORMAT_CODE':return t({'string':'code','id':'FORMAT_CODE'});case'FORMAT_STRIKETHROUGH':return t({'string':'strikethrough','id':'FORMAT_STRIKETHROUGH'});case'FORMAT_SUBSCRIPT':return t({'string':'subscript','id':'FORMAT_SUBSCRIPT'});case'FORMAT_SUPERSCRIPT':return t({'string':'superscript','id':'FORMAT_SUPERSCRIPT'});case'ELEMENT_BLOCK_QUOTE':return t({'string':'block\x20quote','id':'ELEMENT_BLOCK_QUOTE'});case'ELEMENT_CODE_BLOCK':return t({'string':'code\x20block','plural':'%0\x20code\x20blocks','id':'ELEMENT_CODE_BLOCK'},_0x1d6e8f);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x1d6e8f);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1d6e8f);case'ELEMENT_TABLE_ROW_WITH_TEXT':return t({'string':'table\x20row\x20*with\x20text*\x20%1','plural':'%0\x20table\x20rows\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_ROW_WITH_TEXT'},_0x1d6e8f);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1d6e8f);case'ELEMENT_TABLE_COLUMN_WITH_TEXT':return t({'string':'table\x20column\x20*with\x20text*\x20%1','plural':'%0\x20table\x20columns\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_COLUMN_WITH_TEXT'},_0x1d6e8f);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1d6e8f);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1d6e8f);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x1d6e8f);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x1d6e8f);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0x231a0d;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x470fb6,_0x58f1ad){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x470fb6,this['_locale']=_0x58f1ad;}['getDescriptions'](_0x46f920){const _0x42737f=[],_0x21e4be=new Set(),_0x333d7f=new Set();for(let _0x98655e=0x0;_0x98655e<_0x46f920['length'];_0x98655e++){const _0x43dc7c=_0x46f920[_0x98655e];if(!_0x43dc7c['isInContent'])continue;const _0x24eb90=this['_handleCustomCallbackDescription'](_0x43dc7c);if(_0x24eb90){if(null!=_0x43dc7c['subType']){if(_0x21e4be['has'](_0x43dc7c['subType']))continue;_0x21e4be['add'](_0x43dc7c['subType']);}_0x42737f['push'](_0x24eb90);}else{if('attribute'!=_0x43dc7c['type'])'insertion'!=_0x43dc7c['type']&&'deletion'!=_0x43dc7c['type']||this['_handleInsertRemoveSuggestionDescription'](_0x42737f,_0x43dc7c,_0x46f920[_0x98655e+0x1]);else{const _0x8f596d=_0x43dc7c['data']['key'];if(_0x333d7f['has'](_0x8f596d))continue;_0x333d7f['add'](_0x43dc7c['data']['key']),_0x8f596d==m?this['_handleRenameSuggestionDescription'](_0x42737f,_0x43dc7c):this['_handleAttributeSuggestionDescription'](_0x42737f,_0x43dc7c);}}}return this['_resolveDescriptionItems'](_0x42737f);}['registerDescriptionCallback'](_0x28c694){this['_customCallbacks']['push'](_0x28c694);}['registerElementLabel'](_0x1e74ad,_0x2e889d,_0x34cf75=_0x2ff03c['normal']){'function'==typeof _0x1e74ad?_0x1e2438(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1e74ad,'label':_0x2e889d,'priority':_0x34cf75}):this['_itemLabels']['set'](_0x1e74ad,_0x2e889d);}['registerAttributeLabel'](_0x4c7deb,_0x2e9b16){this['_attributeLabels']['set'](_0x4c7deb,_0x2e9b16);}['getItemLabel'](_0x2c1262,_0x1ef808=0x1){let _0x2c69a6;for(const _0x213210 of this['_itemLabelsCallbacks'])if(_0x213210['matchingCallback'](_0x2c1262)){_0x2c69a6=_0x213210['label'];break;}return _0x2c69a6||(_0x2c69a6=this['_itemLabels']['get'](_0x2c1262['name'])),_0x2c69a6?_0x2c69a6(_0x1ef808):0x1!==_0x1ef808?_0x1ef808+'\x20'+_0x2c1262['name']+'s':''+_0x2c1262['name'];}['_addDescriptionItems'](_0x336ea4,_0x7fb429){const _0xf32622=_0x7fb429['getFirstRange']()['getWalker'](),_0x3194ee='insertion'==_0x7fb429['type']?'add':'remove';for(const _0x25de6f of _0xf32622){const _0x3e6cf7=_0x25de6f['item'],_0x399eb3=_0x336ea4[_0x336ea4['length']-0x1];if(_0x3e6cf7['is']('$textProxy'))_0x399eb3&&_0x399eb3['type']['indexOf']('Container')>-0x1&&_0x336ea4['pop'](),_0x399eb3&&'text'==_0x399eb3['type']?_0x399eb3[_0x3194ee]+=_0x3e6cf7['data']:_0x336ea4['push']({'type':'text','add':'add'==_0x3194ee?_0x3e6cf7['data']:'','remove':'remove'==_0x3194ee?_0x3e6cf7['data']:''});else{if(this['_schema']['isObject'](_0x3e6cf7)){const _0x107e1c=_0x3e6cf7;if(_0x399eb3&&_0x399eb3['type']['indexOf']('Container')>-0x1&&_0x336ea4['pop'](),'elementEnd'==_0x25de6f['type'])continue;_0x399eb3&&_0x399eb3['type']==_0x3194ee+'Object'&&_0x399eb3['element']['name']==_0x107e1c['name']?_0x399eb3['quantity']++:_0x336ea4['push']({'type':_0x3194ee+'Object','element':_0x107e1c,'quantity':0x1}),_0xf32622['skip'](_0x556a2d=>!('elementEnd'==_0x556a2d['type']&&_0x556a2d['item']==_0x3e6cf7));}else{if(this['_schema']['checkChild'](_0x3e6cf7,'$text')||_0x3e6cf7['is']('element','softBreak')){const _0xbcb57f=_0x3e6cf7;if('add'==_0x3194ee&&'elementStart'==_0x25de6f['type']||'remove'==_0x3194ee&&'elementEnd'==_0x25de6f['type'])continue;if(_0x399eb3&&-0x1==_0x399eb3['type']['indexOf']('Container')){'text'==_0x399eb3['type']&&(_0x399eb3[_0x3194ee]+='\x0a');continue;}let _0x23efaf;if(_0x23efaf='add'==_0x3194ee?_0xbcb57f['nextSibling']&&!this['_schema']['isObject'](_0xbcb57f['nextSibling'])?_0xbcb57f['nextSibling']:null:_0xbcb57f['previousSibling']&&!this['_schema']['isObject'](_0xbcb57f['previousSibling'])?_0xbcb57f['previousSibling']:null,_0xbcb57f['isEmpty']||_0x23efaf&&_0x23efaf['isEmpty']){const _0x382bc2=_0x23efaf&&_0x23efaf['isEmpty']?_0x23efaf:_0xbcb57f;_0x399eb3&&_0x399eb3['type']==_0x3194ee+'EmptyContainer'&&_0x399eb3['element']['name']==_0x382bc2['name']?_0x399eb3['quantity']++:_0x336ea4['push']({'type':_0x3194ee+'EmptyContainer','element':_0x382bc2,'quantity':0x1});}else _0x336ea4['push']({'type':_0x3194ee+'Container','element':_0xbcb57f});}}}}}['_resolveDescriptionItems'](_0x371c5f){const _0x5130c4=this['_locale'],_0x44bbd9=[],_0x55f0f3=[],_0x205249=[];for(const _0x33c4ea of _0x371c5f)switch(_0x33c4ea['type']){case'text':if(_0x33c4ea['add']=_0x33c4ea['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x33c4ea['remove']=_0x33c4ea['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x33c4ea['add']&&''!=_0x33c4ea['remove']){_0x44bbd9['push']({'type':'replace','content':o(_0x5130c4,'REPLACE_TEXT',['\x22'+_0x33c4ea['remove']+'\x22','\x22'+_0x33c4ea['add']+'\x22'])});continue;}if(null!=_0x33c4ea['add']['match'](/^ +$/)){_0x44bbd9['push']({'type':'insertion','content':o(_0x5130c4,'*Insert:*\x20%0',o(_0x5130c4,'ELEMENT_SPACE',_0x33c4ea['add']['length']))});continue;}if(null!=_0x33c4ea['remove']['match'](/^ +$/)){_0x44bbd9['push']({'type':'deletion','content':o(_0x5130c4,'*Remove:*\x20%0',o(_0x5130c4,'ELEMENT_SPACE',_0x33c4ea['remove']['length']))});continue;}if(''!=_0x33c4ea['add']){_0x44bbd9['push']({'type':'insertion','content':o(_0x5130c4,'*Insert:*\x20%0','\x22'+_0x33c4ea['add']+'\x22')});continue;}_0x44bbd9['push']({'type':'deletion','content':o(_0x5130c4,'*Remove:*\x20%0','\x22'+_0x33c4ea['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x44bbd9['push']({'type':'insertion','content':o(_0x5130c4,'*Insert:*\x20%0',this['getItemLabel'](_0x33c4ea['element'],_0x33c4ea['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x44bbd9['push']({'type':'deletion','content':o(_0x5130c4,'*Remove:*\x20%0',this['getItemLabel'](_0x33c4ea['element'],_0x33c4ea['quantity']))});continue;case'addContainer':_0x44bbd9['push']({'type':'insertion','content':o(_0x5130c4,'*Split:*\x20%0',this['getItemLabel'](_0x33c4ea['element'],_0x33c4ea['quantity']))});continue;case'removeContainer':_0x44bbd9['push']({'type':'deletion','content':o(_0x5130c4,'*Merge:*\x20%0',this['getItemLabel'](_0x33c4ea['element'],_0x33c4ea['quantity']))});continue;case'addFormat':_0x55f0f3['push'](_0x33c4ea['key']);continue;case'removeFormat':_0x205249['push'](_0x33c4ea['key']);continue;default:_0x44bbd9['push'](_0x33c4ea);}if(_0x55f0f3['length']){const _0x43a6aa=_0x55f0f3['map'](_0x1a4cab=>this['_attributeLabels']['has'](_0x1a4cab)?this['_attributeLabels']['get'](_0x1a4cab):_0x1a4cab)['join'](',\x20');_0x44bbd9['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x43a6aa)});}if(_0x205249['length']){const _0xe210e=_0x205249['map'](_0x3e60d4=>this['_attributeLabels']['has'](_0x3e60d4)?this['_attributeLabels']['get'](_0x3e60d4):_0x3e60d4)['join'](',\x20');_0x44bbd9['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0xe210e)});}return _0x44bbd9;}['_handleCustomCallbackDescription'](_0x577a00){for(const _0x4ef14c of this['_customCallbacks']){const _0x111dd9=_0x4ef14c(_0x577a00);if(_0x111dd9&&'type'in _0x111dd9)return _0x111dd9;}}['_handleAttributeSuggestionDescription'](_0x3e5467,_0xf1ec1a){const _0x17a350=_0xf1ec1a['data'],_0x552484=void 0x0===_0x17a350['newValue']?'removeFormat':'addFormat';_0x3e5467['push']({'type':_0x552484,'key':_0x17a350['key']});}['_handleRenameSuggestionDescription'](_0x461a41,_0x241925){_0x461a41['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x241925['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x48ea42,_0x531d98,_0x2ff63d){if(this['_addDescriptionItems'](_0x48ea42,_0x531d98),_0x2ff63d&&_0x2ff63d['getFirstRange']()&&!_0x531d98['getFirstRange']()['end']['isEqual'](_0x2ff63d['getFirstRange']()['start'])){const _0x152d22=_0x48ea42[_0x48ea42['length']-0x1],_0x3e5158='insertion'==_0x531d98['type']?'add':'remove';_0x152d22&&'text'==_0x152d22['type']&&(_0x152d22[_0x3e5158]+='\x0a');}}}class E extends _0x4104d6{['afterInit'](){const _0x4dae69=this['editor'],_0x5e6d36=_0x4dae69['plugins']['get']('TrackChangesEditing');_0x4dae69['commands']['get']('showAIAssistant')&&_0x5e6d36['enableCommand']('showAIAssistant');}}class V extends _0x4104d6{['afterInit'](){const _0x1dcc19=this['editor'],_0x22bda1=_0x1dcc19['locale'];if(!_0x1dcc19['plugins']['has']('AlignmentEditing'))return;const _0x41aa01=_0x1dcc19['plugins']['get']('TrackChangesEditing');_0x41aa01['enableDefaultAttributesIntegration']('alignment'),_0x41aa01['registerBlockAttribute']('alignment'),_0x41aa01['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x22bda1,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2290b4=this['editor'],_0x1ab500=_0x2290b4['locale'];_0x2290b4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38c184=>{if('formatBlock'!=_0x38c184['type'])return;const {data:_0x41fa17}=_0x38c184;if(_0x41fa17&&'alignment'==_0x41fa17['commandName']){const _0x36cb3a=_0x41fa17['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x1ab500,'*Format:*\x20%0',function(_0x28f32a){switch(_0x28f32a){case'left':return o(_0x1ab500,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x1ab500,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x1ab500,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x1ab500,'FORMAT_JUSTIFY_TEXT');}}(_0x36cb3a))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x4104d6{['afterInit'](){const _0x3a9f6d=this['editor'],_0x4356ad=_0x3a9f6d['plugins']['get']('TrackChangesEditing'),_0xb130=_0x3a9f6d['locale'];for(const _0x1c0f7f of ti){if(!_0x3a9f6d['plugins']['has'](_0x1c0f7f))continue;const _0x1a2ecc=_0x1c0f7f['slice'](0x0,-0x7)['toLowerCase'](),_0x14fad8='FORMAT_'+_0x1a2ecc['toUpperCase']();_0x4356ad['enableDefaultAttributesIntegration'](_0x1a2ecc),_0x4356ad['registerInlineAttribute'](_0x1a2ecc),_0x4356ad['descriptionFactory']['registerAttributeLabel'](_0x1a2ecc,o(_0xb130,_0x14fad8));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2693f6=this['editor'],_0x2094ef=_0x2693f6['locale'],_0x5f2c96=_0x2693f6['plugins']['get']('TrackChangesEditing');function _0x879a13(_0x2016dc,_0x171c92){_0x5f2c96['descriptionFactory']['registerDescriptionCallback'](_0x4e5e09=>{if('formatInline'!=_0x4e5e09['type'])return;const {data:_0x159225}=_0x4e5e09;return _0x159225&&_0x159225['commandName']===_0x2016dc?_0x159225['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2094ef,'*Format:*\x20%0',_0x171c92)}:{'type':'format','content':o(_0x2094ef,'*Remove\x20format:*\x20%0',_0x171c92)}:void 0x0;});}_0x879a13('bold',o(_0x2094ef,'FORMAT_BOLD')),_0x879a13('italic',o(_0x2094ef,'FORMAT_ITALIC')),_0x879a13('underline',o(_0x2094ef,'FORMAT_UNDERLINE')),_0x879a13('code',o(_0x2094ef,'FORMAT_CODE')),_0x879a13('strikethrough',o(_0x2094ef,'FORMAT_STRIKETHROUGH')),_0x879a13('subscript',o(_0x2094ef,'FORMAT_SUBSCRIPT')),_0x879a13('superscript',o(_0x2094ef,'FORMAT_SUPERSCRIPT'));}}class O extends _0x4104d6{['afterInit'](){const _0x5eb804=this['editor'],_0xc6e06=_0x5eb804['locale'];if(!_0x5eb804['plugins']['has']('BlockQuoteEditing'))return;const _0x276962=_0x5eb804['plugins']['get']('TrackChangesEditing'),_0x4cd8ca=this['editor']['commands']['get']('blockQuote');_0x276962['enableCommand']('blockQuote',(_0x8e32f0,_0x3e1167={})=>{const _0x2c5836=this['editor']['model']['document']['selection'],_0x560fb1=_0x3e1167&&void 0x0!==_0x3e1167['forceValue']?_0x3e1167['forceValue']:!_0x4cd8ca['value'];let _0x3a5535=[];if(_0x560fb1){const _0x5315e8=Array['from'](_0x2c5836['getSelectedBlocks']())['filter'](_0x4e2f34=>oo(_0x4e2f34)||function(_0x1d1e80,_0x48b404){const _0x531893=_0x48b404['checkChild'](_0x1d1e80['parent'],'blockQuote'),_0x1495e0=_0x48b404['checkChild'](['$root','blockQuote'],_0x1d1e80);return _0x531893&&_0x1495e0;}(_0x4e2f34,this['editor']['model']['schema']));_0x3a5535=to(_0x5315e8,_0x5eb804['model']);}else{const _0x5b9e11=Array['from'](_0x2c5836['getSelectedBlocks']())['filter'](_0x372ee5=>oo(_0x372ee5));_0x3a5535=to(_0x5b9e11,_0x5eb804['model']);}_0x5eb804['model']['change'](()=>{for(const _0x3cec1b of _0x3a5535)_0x276962['markBlockFormat'](_0x3cec1b,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x560fb1}]});});}),_0x276962['descriptionFactory']['registerDescriptionCallback'](_0x7009e2=>{const {data:_0x1edd73}=_0x7009e2;if(_0x1edd73&&'blockQuote'==_0x1edd73['commandName']){const _0x45b7b1=o(_0xc6e06,'ELEMENT_BLOCK_QUOTE');return _0x1edd73['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xc6e06,'*Set\x20format:*\x20%0',_0x45b7b1)}:{'type':'format','content':o(_0xc6e06,'*Remove\x20format:*\x20%0',_0x45b7b1)};}});}}function oo(_0xd159ff){return'blockQuote'==_0xd159ff['parent']['name'];}class G extends _0x4104d6{['afterInit'](){const _0x51f2e6=this['editor'];_0x51f2e6['plugins']['has']('CaseChange')&&(_0x51f2e6['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x51f2e6['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x51f2e6['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x4104d6{['afterInit'](){const _0xed0e6b=this['editor'];_0xed0e6b['commands']['get']('ckbox')&&_0xed0e6b['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x4104d6{['afterInit'](){const _0x5656ef=this['editor'];if(!_0x5656ef['plugins']['has']('CodeBlock'))return;const _0x2e2b59=_0x5656ef['plugins']['get']('TrackChangesEditing'),_0x57672c=_0x5656ef['locale'],_0x15bd4e=_0x5656ef['config']['get']('codeBlock')['languages'],_0x2a1cc7=_0x5656ef['commands']['get']('codeBlock');_0x2e2b59['enableCommand']('indentCodeBlock'),_0x2e2b59['enableCommand']('outdentCodeBlock'),_0x2e2b59['enableCommand']('codeBlock',(_0x80b2d2,_0xec639a={})=>{const _0x22ea71=_0x5656ef['model'],_0x32c6d4=_0x5656ef['model']['document']['selection'],_0x1f1660=_0xec639a&&void 0x0!==_0xec639a['forceValue']?_0xec639a['forceValue']:!_0x2a1cc7['value'];let _0x12c590;_0xec639a['language']||(_0xec639a['language']=_0x15bd4e[0x0]['language']),_0x12c590=_0x1f1660?Array['from'](_0x32c6d4['getSelectedBlocks']())['filter'](_0x2d49a4=>eo(_0x2d49a4)||function(_0x771c66,_0x52bc73){if(_0x771c66['is']('rootElement')||_0x52bc73['isLimit'](_0x771c66))return!0x1;return _0x52bc73['checkChild'](_0x771c66['parent'],'codeBlock');}(_0x2d49a4,_0x22ea71['schema'])):Array['from'](_0x32c6d4['getSelectedBlocks']())['filter'](_0x4dde1e=>eo(_0x4dde1e));const _0x13d34b=to(_0x12c590,_0x22ea71);_0x22ea71['change'](()=>{for(const _0x156bac of _0x13d34b)_0x2e2b59['markBlockFormat'](_0x156bac,{'commandName':'codeBlock','commandParams':[{..._0xec639a,'forceValue':_0x1f1660}],'formatGroupId':'blockName'});});}),(_0x2e2b59['descriptionFactory']['registerElementLabel']('codeBlock',_0x129ec4=>o(_0x57672c,'ELEMENT_CODE_BLOCK',_0x129ec4)),_0x2e2b59['descriptionFactory']['registerDescriptionCallback'](_0x3f7244=>{if('formatBlock'!=_0x3f7244['type'])return;const _0x5748d8=_0x57672c['t'],{data:_0x16a0e7}=_0x3f7244;if(!_0x16a0e7||'codeBlock'!=_0x16a0e7['commandName'])return;const _0xfe9df5=_0x16a0e7['commandParams'][0x0]['language'],_0x27d049=_0x5748d8(_0x15bd4e['find'](_0x317539=>_0x317539['language']===_0xfe9df5)['label'])['toLowerCase']();return _0x16a0e7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x57672c,'*Set\x20format:*\x20%0',o(_0x57672c,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x27d049+')')}:{'type':'format','content':o(_0x57672c,'*Remove\x20format:*\x20%0',o(_0x57672c,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x398bfd){return'codeBlock'==_0x398bfd['name'];}class H extends _0x4104d6{['afterInit'](){const _0x1ab87b=this['editor'];if(!_0x1ab87b['plugins']['has']('CommentsEditing'))return;_0x1ab87b['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x45717f,_0x5de7af,_0xa067fe){const _0x3f253d=[];for(const _0x3c965a of _0x5de7af['getItems']())_0x3c965a['hasAttribute'](_0x45717f)&&_0x3f253d['push'](_0xa067fe['createRangeOn'](_0x3c965a));return _0x3f253d;}function _e(_0x27bdd2,_0x104719,{showActiveMarker:_0x4f6b4a=!0x0}={}){const _0x565fce=_0x27bdd2['plugins']['get']('TrackChangesEditing');return(_0x5b1b12,_0x52c14b,_0x5b331e)=>{if(!_0x5b331e['consumable']['test'](_0x52c14b['markerRange'],_0x5b1b12['name']))return;const _0x2f2ef1=_0x52c14b['markerRange']['getWalker'](),_0x443dec=_0x52c14b['markerRange']['start'],_0x5249ff=_0x27bdd2['model']['schema'];let _0x3e1dd5=null,_0x3f1157=null,_0x2d0d31=!0x1,_0x1a8a1f=!0x1;for(const _0x2d78e9 of _0x2f2ef1){const _0x5a3caa=_0x2d78e9['item'];_0x2d0d31=_0x2d0d31||_0x5249ff['isContent'](_0x5a3caa);const _0xb5fbf6=_0x5b331e['mapper']['toViewElement'](_0x5a3caa);if(_0xb5fbf6&&_0xb5fbf6['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2d78e9['type']&&(_0x5249ff['isBlock'](_0x5a3caa)&&!_0x5249ff['isLimit'](_0x5a3caa)&&(_0x5a3caa['nextSibling']||_0x443dec['isAtEnd']?_0x3e1dd5&&_0x3e1dd5['parent']==_0x5a3caa||(_0x3e1dd5=_0x5a3caa,_0x3a6e95(_0x2d78e9['previousPosition']),_0x1a8a1f=!0x0):_0x3f1157=_0x3f1157||_0x2d78e9['previousPosition']));}function _0x3a6e95(_0x4542c9){const _0x537684=_0x5b331e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x104719}),_0x30bc8b=_0x5b331e['mapper']['toViewPosition'](_0x4542c9);_0x4f6b4a&&_0x565fce['activeMarkers']['includes'](_0x52c14b['markerName'])&&_0x5b331e['writer']['addClass']('ck-suggestion-marker--active',_0x537684),_0x5b331e['writer']['insert'](_0x30bc8b,_0x537684),_0x5b331e['mapper']['bindElementToMarker'](_0x537684,_0x52c14b['markerName']);}_0x2d0d31||_0x1a8a1f||!_0x3f1157||_0x3a6e95(_0x3f1157);};}class q extends _0x4104d6{static get['requires'](){return[_0x296bb7];}['init'](){const _0x31a715=this['editor'],_0x41a494=_0x31a715['plugins']['get']('TrackChangesEditing');_0x41a494['enableCommand']('delete');const _0x4b174f=_0x31a715['commands']['get']('deleteForward');_0x41a494['enableCommand']('deleteForward',(_0x59cf97,_0x342c70={})=>{const _0x17b5c3=_0x31a715['model']['createSelection'](_0x31a715['model']['document']['selection']);_0x17b5c3['isCollapsed']&&_0x31a715['model']['modifySelection'](_0x17b5c3,{'direction':'forward','unit':_0x342c70['unit']});const _0x5bb654=_0x17b5c3['getFirstRange'](),_0x1f9bb5=_0xe90ba7['fromRange'](_0x5bb654);let _0x327112;_0x59cf97(_0x342c70),_0x327112='$graveyard'==_0x1f9bb5['root']['rootName']?_0x31a715['model']['createRange'](_0x5bb654['start']):_0x31a715['model']['createRange'](_0x1f9bb5['start'],_0x1f9bb5['end']),_0x1f9bb5['detach'](),_0x31a715['model']['enqueueChange'](_0x4b174f['buffer']['batch'],_0xfc38c8=>{_0x4b174f['buffer']['lock'](),_0xfc38c8['setSelection'](_0xfc38c8['createRange'](_0x327112['end'])),_0x4b174f['buffer']['unlock']();});}),_0x31a715['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x31a715,'merge'),{'priority':'high'}),_0x31a715['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3573fe,_0x37f369,_0x496d0c)=>{_0x496d0c['options']['showSuggestionHighlights']&&_e(_0x31a715,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3573fe,_0x37f369,_0x496d0c);},{'priority':'high'}),_0x31a715['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x50a512,_0x4474a4,_0x1098f3)=>{const _0x2cceec=_0x1098f3['mapper']['markerNameToElements'](_0x4474a4['markerName']);if(_0x2cceec){for(const _0x371f87 of _0x2cceec)_0x371f87['is']('uiElement')&&(_0x1098f3['mapper']['unbindElementFromMarkerName'](_0x371f87,_0x4474a4['markerName']),_0x1098f3['writer']['remove'](_0x371f87));}},{'priority':'high'});}}class z extends _0x4104d6{['afterInit'](){const _0x52c8d9=this['editor'];if(!_0x52c8d9['plugins']['has']('ListEditing'))return;const _0x1be5c9=_0x52c8d9['locale'],_0x345eb4=_0x52c8d9['plugins']['get']('TrackChangesEditing'),_0x446854=_0x52c8d9['plugins']['has']('TodoListEditing'),_0x2a453d=!!_0x52c8d9['config']['get']('list.multiBlock');function _0x425ad3(_0x5eb896){return{'type':'format','content':''+o(_0x1be5c9,'*Set\x20format:*\x20%0',_0x5eb896)};}function _0x478cad(_0x4e4514){return{'type':'format','content':''+o(_0x1be5c9,'*Remove\x20format:*\x20%0',_0x4e4514)};}_0x345eb4['enableDefaultAttributesIntegration']('numberedList'),_0x345eb4['enableDefaultAttributesIntegration']('bulletedList'),_0x345eb4['enableDefaultAttributesIntegration']('customNumberedList'),_0x345eb4['enableDefaultAttributesIntegration']('customBulletedList'),_0x345eb4['enableDefaultAttributesIntegration']('indentList'),_0x345eb4['enableDefaultAttributesIntegration']('outdentList'),_0x345eb4['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x345eb4['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x345eb4['registerBlockAttribute']('listItemId'),_0x345eb4['registerBlockAttribute']('listType'),_0x345eb4['registerBlockAttribute']('listIndent'),_0x2a453d&&(_0x345eb4['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x345eb4['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x446854&&(_0x345eb4['enableDefaultAttributesIntegration']('todoList'),_0x345eb4['enableDefaultAttributesIntegration']('checkTodoList'),_0x345eb4['registerBlockAttribute']('todoListChecked'),_0x345eb4['descriptionFactory']['registerDescriptionCallback'](_0xa2d69a=>{const {data:_0x25d1d9}=_0xa2d69a;if(_0x25d1d9&&'todoListChecked'==_0x25d1d9['key'])return{'type':'format','content':_0x25d1d9['newValue']?o(_0x1be5c9,'*Check\x20item*'):o(_0x1be5c9,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5170f=>{if(_0x5170f['batch']['isUndo'])return!0x1;let _0x1154a1=!0x1;const _0x49e9bb=_0x345eb4['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x375933=>'todoListChecked'===_0x345eb4['_getAttributeKey'](_0x375933));for(const _0x26bbd7 of _0x49e9bb){'todo'!=_0x26bbd7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x345eb4['_findSuggestions'](_0x26bbd7['getFirstRange'](),'attribute')['find'](_0x45716=>'listType'===_0x345eb4['_getAttributeKey'](_0x45716['suggestion']))||(_0x5170f['removeMarker'](_0x26bbd7['getFirstMarker']()),_0x1154a1=!0x0));}return _0x1154a1;})),_0x345eb4['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x1be5c9,'FORMAT_INDENT'));const _0x533b3d={'type':'format','content':''};_0x345eb4['descriptionFactory']['registerDescriptionCallback'](_0x1ae24e=>{const {data:_0x141a9b}=_0x1ae24e;if(!_0x141a9b||'listType'!=_0x141a9b['key'])return;let _0x426b8d=_0x1ae24e['head'];for(;_0x426b8d;){if(_0x426b8d['data']&&(('listStyle'==_0x426b8d['data']['key']||'listMarkerStyle'==_0x426b8d['data']['key'])&&(_0x426b8d['data']['newValue']&&'default'!=_0x426b8d['data']['newValue']||'default'!=_0x426b8d['data']['oldValue']&&!_0x141a9b['newValue'])||!_0x2a453d&&_0x426b8d['data']['key']==m))return _0x533b3d;_0x426b8d=_0x426b8d['next'];}if(null==_0x141a9b['newValue'])switch(_0x141a9b['oldValue']){case'bulleted':return _0x478cad(o(_0x1be5c9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x478cad(o(_0x1be5c9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x478cad(o(_0x1be5c9,'ELEMENT_TODO_LIST'));}switch(_0x141a9b['newValue']){case'bulleted':return _0x425ad3(o(_0x1be5c9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x425ad3(o(_0x1be5c9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x425ad3(o(_0x1be5c9,'ELEMENT_TODO_LIST'));}}),_0x345eb4['descriptionFactory']['registerDescriptionCallback'](_0x258963=>{const {data:_0x16f789}=_0x258963;if(_0x16f789&&'listIndent'==_0x16f789['key'])return null==_0x16f789['newValue']||null==_0x16f789['oldValue']&&0x0==_0x16f789['newValue']?_0x533b3d:void 0x0;}),_0x345eb4['descriptionFactory']['registerDescriptionCallback'](_0xe8449a=>{if('attribute'!=_0xe8449a['type'])return;const {data:_0x4e3f1a}=_0xe8449a;if(!_0x4e3f1a||'listItemId'!=_0x4e3f1a['key'])return;const _0x43d7c0=le(_0xe8449a);return'newValue'==_0x43d7c0?{'type':'format','content':o(_0x1be5c9,'*Merge:*\x20list\x20item')}:'oldValue'==_0x43d7c0?{'type':'format','content':o(_0x1be5c9,'*Split:*\x20list\x20item')}:_0x533b3d;}),_0x52c8d9['model']['document']['registerPostFixer'](_0x476363=>this['listItemIdFixer'](_0x476363)),_0x52c8d9['model']['document']['registerPostFixer'](_0x15f595=>this['noTrackChangesFixer'](_0x15f595)),_0x52c8d9['model']['document']['registerPostFixer'](_0x131e67=>this['assureChains'](_0x131e67)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4f613b){if(_0x4f613b['batch']['isUndo']||!_0x4f613b['batch']['isLocal'])return!0x1;let _0xbc839e=!0x1;const _0x23d987=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x7c781d=>_0x7c781d['data']&&'listItemId'==_0x7c781d['data']['key'])['filter'](_0x22592a=>_0x22592a['data']['newValue']&&_0x22592a['data']['oldValue']);for(const _0x3a83d9 of _0x23d987)le(_0x3a83d9)||(_0x4f613b['removeMarker'](_0x3a83d9['getFirstMarker']()),_0xbc839e=!0x0);return _0xbc839e;}['noTrackChangesFixer'](_0x3ad870){if(_0x3ad870['batch']['isUndo']||!_0x3ad870['batch']['isLocal'])return!0x1;const _0x241e7d=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x241e7d['trackChangesCommand']['value'])return!0x1;let _0x32e33a=!0x1;const _0x486770=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x41237a=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x5cec26=>'attribute'==_0x5cec26['type'])['filter'](_0x5c099f=>_0x486770['includes'](_0x5c099f['attributeKey']));if(0x0==_0x41237a['length'])return _0x32e33a;for(const _0x10b198 of _0x41237a){const _0x4993e0=_0x241e7d['_findSuggestions'](_0x10b198['range'],'attribute')['filter'](_0x4f26ef=>!_0x4f26ef['meta']['isNextTo'])['map'](_0x406754=>_0x406754['suggestion'])['filter'](_0x4fbd24=>{const _0x12cecd=_0x241e7d['_getAttributeKey'](_0x4fbd24);return _0x486770['includes'](_0x12cecd);});if(_0x4993e0['length']){for(const _0x38c017 of _0x4993e0)_0x3ad870['removeMarker'](_0x38c017['getFirstMarker']());_0x32e33a=!0x0;}}return _0x32e33a;}['assureChains'](_0x412c74){if(_0x412c74['batch']['isUndo']||!_0x412c74['batch']['isLocal'])return!0x1;const _0x398208=this['editor']['plugins']['get']('TrackChangesEditing');let _0xf80d2d=!0x1;const _0x4fb523=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x413c46 of _0x398208['getSuggestions']({'skipNotAttached':!0x0})){const _0x2e48e1=_0x398208['_findSuggestions'](_0x413c46['getFirstRange'](),'attribute')['map'](_0x4feec2=>_0x4feec2['suggestion'])['filter'](_0x114b49=>_0x114b49['data']&&_0x4fb523['includes'](_0x114b49['data']['key']));if(!_0x2e48e1['length'])continue;const _0x572d72=_0x2e48e1[0x0]['head']['attributes']['groupId'];if(!_0x2e48e1['every'](_0x2ee309=>_0x2ee309['attributes']['groupId']===_0x572d72)){for(const _0x15dbd3 of _0x2e48e1)_0x2a7c87(_0x15dbd3,_0x572d72)&&(_0xf80d2d=!0x0);}}return _0xf80d2d;function _0x10fd63(_0x3d7e71,_0x29429c){for(const _0x533760 of _0x398208['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x11faab=>'attribute'==_0x11faab['type']&&_0x11faab['attributes']['groupId']==_0x3d7e71))_0x533760['setAttribute']('groupId',_0x29429c);}function _0x2a7c87(_0x23538a,_0x4eb876){let _0x2b6ead=_0x23538a['head'],_0x461e84=!0x1;for(;_0x2b6ead;)_0x2b6ead['attributes']['groupId']!=_0x4eb876&&(_0x10fd63(_0x2b6ead['attributes']['groupId'],_0x4eb876),_0x2b6ead['setAttribute']('groupId',_0x4eb876),_0x461e84=!0x0),_0x2b6ead=_0x2b6ead['next'];return _0x461e84;}}['_supportLegacySuggestions'](){const _0x459141=this['editor'],_0xbd483c=_0x459141['locale'],_0x404064=_0x459141['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x404064['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x4b6ace,_0x475b7d){const _0x470934=[];for(let _0x1c1e82 of _0x4b6ace)_0x1c1e82['start']['nodeAfter']===_0x1c1e82['end']['parent']&&(_0x1c1e82=_0x459141['model']['createRange'](_0x459141['model']['createPositionAt'](_0x1c1e82['start']['nodeAfter'],0x0))),_0x470934['push'](_0x1c1e82);_0x459141['model']['change'](_0x3b4e54=>{const _0x1cea6a=_0x459141['model']['document']['selection'],_0x1d1f86=Array['from'](_0x1cea6a['getRanges']())['map'](_0x3e4172=>_0xe90ba7['fromRange'](_0x3e4172));_0x3b4e54['setSelection'](_0x470934),_0x459141['commands']['get'](_0x475b7d['commandName'])['refresh'](),_0x475b7d['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x459141['execute'](_0x475b7d['commandName'],..._0x475b7d['commandParams']),_0x3b4e54['setSelection'](_0x1d1f86);for(const _0x461b52 of _0x1d1f86)_0x461b52['detach']();});}),_0x404064['descriptionFactory']['registerElementLabel'](function(_0x6c1de0){const _0x576c11=!_0x459141['model']['schema']['isObject'](_0x6c1de0),_0x35e8f6=_0x6c1de0['previousSibling'],_0x34a47a=_0x6c1de0['nextSibling'],_0x1c6f86=_0x6c1de0['getAttribute']('listItemId'),_0x95c050=!_0x35e8f6||_0x35e8f6['getAttribute']('listItemId')!==_0x1c6f86,_0x406839=!_0x34a47a||_0x34a47a['getAttribute']('listItemId')!==_0x1c6f86;return _0x576c11&&Boolean(_0x1c6f86)&&_0x95c050&&_0x406839;},_0x3aa7f8=>o(_0xbd483c,'ELEMENT_LIST_ITEM',_0x3aa7f8));}['_registerLegacyDescription'](){const _0x168af0=this['editor'],_0xe3f778=_0x168af0['locale'];function _0xffcbac(_0x1487cb){const _0x5e20da=_0x168af0['commands']['get']('bulletedList')['value'],_0x5f328a=_0x168af0['commands']['get']('numberedList')['value'];return'numberedList'===_0x1487cb?_0x5e20da:_0x5f328a;}_0x168af0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x217615){if('formatBlock'!=_0x217615['type'])return;const {data:_0x7ec6ae}=_0x217615;if(!_0x7ec6ae)return;let _0x3f80b6,_0x1c3f0f,_0x397d61,_0x29acd3;switch(_0x7ec6ae['commandName']){case'bulletedList':_0x397d61=_0x7ec6ae['commandParams'][0x0]['forceValue'],_0x29acd3=_0xffcbac(_0x7ec6ae['commandName']),_0x3f80b6=_0x397d61?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x29acd3&&_0x168af0['config']['get']('list.multiBlock')||(_0x3f80b6='*Change\x20to:*\x20%0'),_0x1c3f0f={'type':'format','content':o(_0xe3f778,_0x3f80b6,o(_0xe3f778,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x397d61=_0x7ec6ae['commandParams'][0x0]['forceValue'],_0x29acd3=_0xffcbac(_0x7ec6ae['commandName']),_0x3f80b6=_0x397d61?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x29acd3&&_0x168af0['config']['get']('list.multiBlock')||(_0x3f80b6='*Change\x20to:*\x20%0'),_0x1c3f0f={'type':'format','content':o(_0xe3f778,_0x3f80b6,o(_0xe3f778,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3f80b6='*Indent:*\x20%0',_0x1c3f0f={'type':'format','content':o(_0xe3f778,_0x3f80b6,o(_0xe3f778,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3f80b6=function(_0x264f1f){const _0xb91d6=_0x264f1f['getFirstRange']();let _0x4191cc=_0xb91d6['start']['nodeAfter'];for(;_0x4191cc&&_0xb91d6['containsItem'](_0x4191cc);){if(_0x4191cc['getAttribute']('listIndent')>0x0)return!0x1;_0x4191cc=_0x4191cc['nextSibling'];}return!0x0;}(_0x217615)?o(_0xe3f778,'*Format:*\x20remove\x20from\x20%0',o(_0xe3f778,function(_0x3b8e08){return'ELEMENT_'+_0x3b8e08['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x217615))):o(_0xe3f778,'*Outdent:*\x20%0',o(_0xe3f778,'ELEMENT_LIST_ITEM')),_0x1c3f0f={'type':'format','content':_0x3f80b6};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x7ec6ae['multipleBlocks']&&(_0x3f80b6='*Merge:*\x20%0',_0x1c3f0f={'type':'deletion','content':o(_0xe3f778,_0x3f80b6,o(_0xe3f778,'ELEMENT_LIST_ITEM'))});}return _0x1c3f0f;});}}function le(_0x1d1a79){let _0x215230=_0x1d1a79['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x215230;){const _0x59288e=_0x215230['getAttribute']('listItemId');if(!_0x59288e)return!0x1;if(_0x59288e==_0x1d1a79['data']['newValue'])return'newValue';if(_0x59288e==_0x1d1a79['data']['oldValue'])return'oldValue';_0x215230=_0x215230['previousSibling'];}return!0x1;}class ue extends _0x4104d6{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1d46f5=this['editor']['config']['get']('list.properties'),_0x1a3b62=this['editor']['plugins']['get']('TrackChangesEditing');_0x1d46f5['styles']&&(_0x1a3b62['enableDefaultAttributesIntegration']('listStyle'),_0x1a3b62['registerBlockAttribute']('listStyle')),_0x1d46f5['reversed']&&(_0x1a3b62['enableDefaultAttributesIntegration']('listReversed'),_0x1a3b62['registerBlockAttribute']('listReversed')),_0x1d46f5['startIndex']&&(_0x1a3b62['enableDefaultAttributesIntegration']('listStart'),_0x1a3b62['registerBlockAttribute']('listStart'));const _0x524191={'type':'format','content':''};_0x1a3b62['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x552713=this['editor']['locale'];_0x1a3b62['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x552713,'FORMAT_LIST_REVERSED')),_0x1a3b62['descriptionFactory']['registerDescriptionCallback'](_0x3861a8=>{const {data:_0x193dc2}=_0x3861a8;if(_0x193dc2&&'listReversed'==_0x193dc2['key'])return null==_0x193dc2['newValue']||0x0==_0x193dc2['newValue']&&null==_0x193dc2['oldValue']?_0x524191:void 0x0;}),_0x1a3b62['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x552713,'FORMAT_LIST_START')),_0x1a3b62['descriptionFactory']['registerDescriptionCallback'](_0xabe819=>{const {data:_0x4f6350}=_0xabe819;if(_0x4f6350&&'listStart'==_0x4f6350['key'])return null==_0x4f6350['newValue']||0x1==_0x4f6350['newValue']&&null==_0x4f6350['oldValue']?_0x524191:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x2ebe4a=>{if(_0x2ebe4a['batch']['isUndo'])return!0x1;let _0x321565=!0x1;const _0xc91377=_0x1a3b62['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x18db32=>{const _0x15617f=_0x1a3b62['_getAttributeKey'](_0x18db32);return'listStart'==_0x15617f||'listReversed'==_0x15617f;});for(const _0x39fd5e of _0xc91377){const _0x35121c=_0x39fd5e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x35121c||'customNumbered'==_0x35121c)continue;_0x1a3b62['_findSuggestions'](_0x39fd5e['getFirstRange'](),'attribute')['find'](_0x38648c=>'listType'==_0x1a3b62['_getAttributeKey'](_0x38648c['suggestion']))||(_0x2ebe4a['removeMarker'](_0x39fd5e['getFirstMarker']()),_0x321565=!0x0);}return _0x321565;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1b82b8){const _0x16fd22=this['editor']['locale'],{data:_0x9c37ea}=_0x1b82b8,_0x1ce68a={'type':'format','content':''};if(!_0x9c37ea||'listStyle'!=_0x9c37ea['key'])return;if(!_0x9c37ea['oldValue'])return'default'==_0x9c37ea['newValue']?_0x1ce68a:{'type':'format','content':''+o(_0x16fd22,'*Set\x20format:*\x20%0',o(_0x16fd22,this['_getTranslationKeyForListStyle'](_0x9c37ea['newValue'])))};if(!_0x9c37ea['newValue']){if('default'==_0x9c37ea['oldValue'])return _0x1ce68a;let _0x29a747=_0x1b82b8['head'];for(;_0x29a747;){if(_0x29a747['data']&&'listType'==_0x29a747['data']['key']&&_0x29a747['data']['newValue'])return _0x1ce68a;_0x29a747=_0x29a747['next'];}return{'type':'format','content':''+o(_0x16fd22,'*Remove\x20format:*\x20%0',o(_0x16fd22,this['_getTranslationKeyForListStyle'](_0x9c37ea['oldValue'])))};}if('default'!=_0x9c37ea['newValue'])return{'type':'format','content':''+o(_0x16fd22,'*Set\x20format:*\x20%0',o(_0x16fd22,this['_getTranslationKeyForListStyle'](_0x9c37ea['newValue'])))};let _0x42f29=_0x1b82b8['head'];for(;_0x42f29;){if(_0x42f29['data']&&'listType'==_0x42f29['data']['key']&&_0x42f29['data']['newValue']&&_0x42f29['data']['oldValue'])return _0x1ce68a;_0x42f29=_0x42f29['next'];}return{'type':'format','content':o(_0x16fd22,'*Set\x20format:*\x20%0',o(_0x16fd22,'ELEMENT_'+_0x1b82b8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x507c2c=this['editor'],_0x2a9be5=_0x507c2c['locale'];_0x507c2c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c2943=>{if('formatBlock'!=_0x3c2943['type'])return;const {data:_0xc300fb}=_0x3c2943;if(!_0xc300fb)return;let _0x4ce1fc,_0x7c17ab;switch(_0xc300fb['commandName']){case'listStyle':_0x4ce1fc='*Change\x20to:*\x20%0',_0x7c17ab={'type':'format','content':o(_0x2a9be5,_0x4ce1fc,o(_0x2a9be5,this['_getTranslationKeyForListStyle'](_0xc300fb['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4ce1fc=_0xc300fb['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x7c17ab={'type':'format','content':o(_0x2a9be5,_0x4ce1fc)};break;case'listStart':_0x4ce1fc='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x7c17ab={'type':'format','content':o(_0x2a9be5,_0x4ce1fc,_0xc300fb['commandParams'][0x0]['startIndex'])};}return _0x7c17ab;});}['_getTranslationKeyForListStyle'](_0x1cc1e8){return'ELEMENT_'+function(_0x5936b6){if(pe['includes'](_0x5936b6))return'bulleted';if(ye['includes'](_0x5936b6))return'numbered';return null;}(_0x1cc1e8)['toUpperCase']()+'_LIST_'+_0x1cc1e8['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x4104d6{static get['requires'](){return[_0x501866];}['init'](){const _0x29e2e3=this['editor'],_0x450e3c=_0x29e2e3['plugins']['get']('TrackChangesEditing'),_0xc2f372=_0x29e2e3['commands']['get']('enter');_0x450e3c['enableCommand']('enter',()=>{_0x29e2e3['model']['change'](_0x541b5e=>{const _0x4abae0=_0x29e2e3['model']['document']['selection'],_0x1db5af=_0x4abae0['getFirstPosition'](),_0x5ad335=_0xe90ba7['fromRange'](_0x4abae0['getFirstRange']());if(_0xc2f372['enterBlock'](_0x541b5e)){const _0x4cf06e=_0x29e2e3['model']['createPositionAt'](_0x1db5af['parent']['nextSibling'],0x0),_0x349087=_0x541b5e['createRange'](_0x1db5af,_0x4cf06e);_0x450e3c['markInsertion'](_0x349087);}else _0x541b5e['setSelection'](_0x541b5e['createRange'](_0x5ad335['end']));_0x5ad335['detach'](),_0xc2f372['fire']('afterExecute',{'writer':_0x541b5e});});}),_0x29e2e3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x29e2e3,'split'),{'priority':'high'}),_0x29e2e3['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x321eee,_0x53bb98,_0x491f2d)=>{const _0x59b38d=_0x491f2d['mapper']['markerNameToElements'](_0x53bb98['markerName']);if(_0x59b38d){for(const _0x5a95ff of _0x59b38d)_0x5a95ff['hasClass']('ck-suggestion-marker-split')&&(_0x491f2d['mapper']['unbindElementFromMarkerName'](_0x5a95ff,_0x53bb98['markerName']),_0x491f2d['writer']['remove'](_0x5a95ff));}},{'priority':'high'}),_0x29e2e3['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x180af2,_0x130f3e,_0x49935d)=>{_0x49935d['options']['showSuggestionHighlights']&&_e(_0x29e2e3,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x180af2,_0x130f3e,_0x49935d);},{'priority':'high'});}}class J extends _0x4104d6{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x2db2cd=this['editor']['plugins']['get']('TrackChangesEditing');_0x2db2cd['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x2db2cd['enableCommand']('findNext'),_0x2db2cd['enableCommand']('findPrevious'),_0x2db2cd['enableCommand']('replace'),_0x2db2cd['enableCommand']('replaceAll');}['handleFindCommand'](_0x50fc02,_0xbf3b67,_0x191619={}){const _0x4acb64=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x50fc02(_0x410bd8=>{let _0x23012c=('string'==typeof _0xbf3b67?_0x4acb64['findByTextCallback'](_0xbf3b67,_0x191619):_0xbf3b67)(_0x410bd8);Array['isArray'](_0x23012c)&&(_0x23012c={'results':_0x23012c,'searchText':'string'==typeof _0xbf3b67?_0xbf3b67:''});const _0x4c206a=_0x23012c['results']['filter'](_0xdd392f=>!0x1===this['_isInDeletionRange'](_0xdd392f,_0x410bd8['item']));return{..._0x23012c,'results':_0x4c206a};},_0x191619);}['_isInDeletionRange'](_0x4926a4,_0x414fa1){const _0x4d7c60=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x414fa1,_0x4926a4['start']),this['editor']['model']['createPositionAt'](_0x414fa1,_0x4926a4['end']));for(const _0x54ac50 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4d7c60['getIntersection'](_0x54ac50['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Q extends _0x4104d6{['afterInit'](){const _0x532f27=this['editor']['locale'],_0x15ab55=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5b4509,commandName:_0x1e16c5}of ro)this['editor']['plugins']['has'](_0x5b4509)&&(_0x15ab55['enableDefaultAttributesIntegration'](_0x1e16c5),_0x15ab55['registerInlineAttribute'](_0x1e16c5));_0x15ab55['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x532f27,'FORMAT_FONT_SIZE')),_0x15ab55['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x532f27,'FORMAT_FONT_FAMILY')),_0x15ab55['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x532f27,'FORMAT_FONT_COLOR')),_0x15ab55['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x532f27,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4cd3d4=this['editor'],_0x54ae1d=_0x4cd3d4['locale'];_0x4cd3d4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x492519=>{const _0x35c519=_0x54ae1d['t'];if('formatInline'!=_0x492519['type'])return;const {data:_0x5f4e8e}=_0x492519;if(null!=_0x5f4e8e){if('fontSize'==_0x5f4e8e['commandName']){const _0x579997=_0x5f4e8e['commandParams'][0x0]['value'];if(_0x579997){const _0x534a9e=_0x35c519(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x35ee20=>_0x35ee20['model']==_0x579997)['title'])['toLowerCase']();return{'type':'format','content':o(_0x54ae1d,'*Set\x20font\x20size:*\x20%0',_0x534a9e)};}return{'type':'format','content':o(_0x54ae1d,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5f4e8e['commandName']){const _0x28997e=_0x5f4e8e['commandParams'][0x0]['value'];return _0x28997e?{'type':'format','content':o(_0x54ae1d,'*Set\x20font\x20family:*\x20%0',_0x28997e)}:{'type':'format','content':o(_0x54ae1d,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5f4e8e['commandName']){const _0x5c03fe=_0x5f4e8e['commandParams'][0x0]['value'];if(_0x5c03fe){const _0x47f4d9=_0x9e5829(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3f1599=>_0x3f1599['model']==_0x5c03fe);let _0x3d93a6=_0x5c03fe,_0x3fcb30='';return _0x47f4d9&&(_0x3d93a6=_0x47f4d9['label'],_0x3fcb30=_0x35c519(_0x3d93a6)['toLowerCase']()),{'type':'format','content':o(_0x54ae1d,'*Set\x20font\x20color:*\x20%0',_0x3fcb30)['trim'](),'color':{'value':_0x5c03fe,'title':_0x3fcb30||_0x3d93a6}};}return{'type':'format','content':o(_0x54ae1d,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5f4e8e['commandName']){const _0x21fe52=_0x5f4e8e['commandParams'][0x0]['value'];if(_0x21fe52){const _0x2d7321=_0x9e5829(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x10d541=>_0x10d541['model']==_0x21fe52);let _0x2a66ab=_0x21fe52,_0x5e2183='';return _0x2d7321&&(_0x2a66ab=_0x2d7321['label'],_0x5e2183=_0x35c519(_0x2a66ab)['toLowerCase']()),{'type':'format','content':o(_0x54ae1d,'*Set\x20font\x20background\x20color:*\x20%0',_0x5e2183)['trim'](),'color':{'value':_0x21fe52,'title':_0x5e2183||_0x2a66ab}};}return{'type':'format','content':o(_0x54ae1d,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x4104d6{['afterInit'](){const _0x2b7030=this['editor'],_0x4d58ba=_0x2b7030['plugins']['get']('TrackChangesEditing'),_0x1726d6=_0x2b7030['commands']['get']('copyFormat'),_0x2e47ca=_0x2b7030['commands']['get']('pasteFormat');_0x1726d6&&_0x2e47ca&&(_0x4d58ba['enableDefaultAttributesIntegration']('pasteFormat'),_0x4d58ba['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3f16fc=this['editor'],_0x22ab14=_0x3f16fc['locale'];_0x3f16fc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e8cd0=>{if('formatBlock'!=_0x4e8cd0['type']&&'formatInline'!=_0x4e8cd0['type'])return;const {data:_0x57c360}=_0x4e8cd0;if(_0x57c360&&'pasteFormat'===_0x57c360['commandName']){const _0x3903dc=[],_0x319412=_0x57c360['commandParams'][0x0];for(const [_0xfdcff5,_0x1376fb]of Object['entries'](_0x319412))_0x3903dc['push'](so(_0x3f16fc,_0xfdcff5,_0x1376fb));return _0x3903dc['length']?{'type':'format','content':o(_0x22ab14,'*Set\x20format\x20to:*\x20%0',_0x3903dc['join'](',\x20'))}:{'type':'format','content':o(_0x22ab14,'*Remove\x20all\x20formatting*')};}});}}function so(_0x5f2abd,_0x5b6123,_0x2e2df0){const _0x4db857=_0x5f2abd['locale']['t'],_0x2a078f=_0x5b6123['split'](/(?=[A-Z])/)['join']('\x20'),_0x9f8dcf=_0x4db857(_0x2a078f['charAt'](0x0)['toUpperCase']()+_0x2a078f['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2e2df0)return _0x9f8dcf;if('fontColor'===_0x5b6123||'fontBackgroundColor'===_0x5b6123){const _0x221699=_0x9e5829(_0x5f2abd['config']['get']('fontColor.colors'))['find'](_0x5d738b=>_0x5d738b['model']==_0x2e2df0);return _0x9f8dcf+'\x20('+(_0x221699?_0x4db857(_0x221699['label'])['toLowerCase']():_0x2e2df0)+')';}if('fontSize'===_0x5b6123&&isNaN(parseFloat(_0x2e2df0))){const _0x4567f8=_0x5f2abd['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5f2abd['config']['get']('fontSize.options'))['find'](_0x5cb206=>_0x5cb206['model']==_0x2e2df0);return _0x9f8dcf+'\x20('+(_0x4567f8?_0x4db857(_0x4567f8['title'])['toLowerCase']():_0x2e2df0)+')';}return _0x9f8dcf+'\x20('+_0x2e2df0+')';}class Y extends _0x4104d6{['_headingOptions'];['afterInit'](){const _0x473a84=this['editor'];if(!_0x473a84['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x473a84['config']['get']('heading.options');const _0x5c3b66=_0x473a84['locale'],_0x57ad33=_0x473a84['plugins']['get']('TrackChangesEditing');_0x57ad33['enableDefaultAttributesIntegration']('heading');for(const _0x5b3078 of this['_headingOptions'])'paragraph'!=_0x5b3078['model']&&_0x57ad33['descriptionFactory']['registerElementLabel'](_0x5b3078['model'],_0x50de3f=>{const _0x517a0a=this['_getHeadingLevel'](_0x5b3078['model']);return null!==_0x517a0a?_0x4d15cf(_0x50de3f,_0x517a0a):_0x2c27ca(_0x50de3f,_0x5b3078['title']);});function _0x4d15cf(_0x46a66a,_0x3b06b8){return o(_0x5c3b66,'ELEMENT_HEADING',[_0x46a66a,_0x3b06b8]);}function _0x2c27ca(_0x46c99f,_0x2e92bb){return o(_0x5c3b66,'ELEMENT_HEADING_CUSTOM',[_0x46c99f,_0x2e92bb]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5f4525=this['editor'],_0x12d2b6=_0x5f4525['locale'];function _0x2f7a52(_0x56f54d,_0xc6aa7e){return o(_0x12d2b6,'ELEMENT_HEADING_CUSTOM',[_0x56f54d,_0xc6aa7e]);}_0x5f4525['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3fca70=>{if('formatBlock'!=_0x3fca70['type'])return;const {data:_0x30a1fd}=_0x3fca70;if(_0x30a1fd&&'heading'==_0x30a1fd['commandName']){const _0x220317=_0x30a1fd['commandParams'][0x0]['value'],_0xbc421c=this['_getHeadingLevel'](_0x220317);if(null!==_0xbc421c)return{'type':'format','content':o(_0x12d2b6,'*Change\x20to:*\x20%0',(_0x254724=0x1,_0x292ad6=_0xbc421c,o(_0x12d2b6,'ELEMENT_HEADING',[_0x254724,_0x292ad6])))};const _0x2fb13f=this['_headingOptions']['find'](_0x334fdf=>_0x334fdf['model']===_0x220317)['title'];return{'type':'format','content':o(_0x12d2b6,'*Change\x20to:*\x20%0',_0x2f7a52(0x1,_0x2fb13f))};}var _0x254724,_0x292ad6;});}['_getHeadingLevel'](_0x1e810b){const _0xcc5db0=_0x1e810b['match'](/^heading(\d+)/);if(_0xcc5db0)return _0xcc5db0[0x1];const _0x17f877=this['_headingOptions']?.['find'](_0x2f904f=>_0x2f904f['model']==_0x1e810b);if(_0x17f877&&_0x17f877['view']){const _0x2495c1=_0x17f877['view'],_0x26f28e=(_0x2495c1['name']??_0x2495c1)['match'](/^h(\d+)/);if(_0x26f28e)return _0x26f28e[0x1];}return null;}}class Z extends _0x4104d6{['afterInit'](){const _0x1ff250=this['editor'];if(!_0x1ff250['plugins']['has']('HighlightEditing'))return;const _0x508301=_0x1ff250['plugins']['get']('TrackChangesEditing'),_0x22436d=_0x1ff250['locale'];_0x508301['enableDefaultAttributesIntegration']('highlight'),_0x508301['registerInlineAttribute']('highlight'),_0x508301['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x22436d,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23faad=this['editor'],_0x5721c9=_0x23faad['locale'];_0x23faad['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd51b52=>{if('formatInline'!=_0xd51b52['type'])return;const {data:_0x1b74e2}=_0xd51b52;if(_0x1b74e2&&'highlight'==_0x1b74e2['commandName']){const _0x772587=_0x5721c9['t'],_0xdb68c0=_0x1b74e2['commandParams'][0x0]['value'];if(_0xdb68c0){const _0x1f4394=_0x23faad['config']['get']('highlight.options')['find'](_0x2924cf=>_0x2924cf['model']==_0xdb68c0),_0x3147ff=_0x772587(_0x1f4394['title'])['toLowerCase']();return{'type':'format','content':o(_0x5721c9,'*Set\x20highlight:*\x20%0',_0x3147ff),'color':{'value':_0x1f4394['color'],'title':_0x1f4394['title']}};}return{'type':'format','content':o(_0x5721c9,'*Remove\x20highlight*',o(_0x5721c9,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x4104d6{['afterInit'](){const _0xff45e5=this['editor'];if(!_0xff45e5['plugins']['has']('HorizontalLineEditing'))return;_0xff45e5['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xad465e=_0xff45e5['plugins']['get']('TrackChangesEditing'),_0x3d098c=_0xff45e5['locale'];_0xad465e['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4efd99=>o(_0x3d098c,'ELEMENT_HORIZONTAL_LINE',_0x4efd99)),_0xff45e5['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2d3fb0,{writer:_0x41fa20,options:_0x547bba})=>{if(!_0x547bba['showSuggestionHighlights'])return null;const _0x5622f3=_0x41fa20['createContainerElement']('div'),_0x5648cf=_0x41fa20['createEmptyElement']('hr');return _0x41fa20['addClass']('ck-horizontal-line',_0x5622f3),_0x41fa20['insert'](_0x41fa20['createPositionAt'](_0x5622f3,0x0),_0x5648cf),_0x5622f3;},'converterPriority':'high'});}}class et extends _0x4104d6{['afterInit'](){const _0x29a5b7=this['editor'];if(!_0x29a5b7['plugins']['has']('HtmlEmbed'))return;const _0xe521d3=_0x29a5b7['plugins']['get']('TrackChangesEditing'),_0xe8e57b=_0x29a5b7['locale'];_0xe521d3['descriptionFactory']['registerElementLabel']('rawHtml',_0x31ec4c=>o(_0xe8e57b,'ELEMENT_HTML_EMBED',_0x31ec4c)),_0xe521d3['enableDefaultAttributesIntegration']('htmlEmbed'),_0xe521d3['registerBlockAttribute']('value'),_0xe521d3['descriptionFactory']['registerDescriptionCallback'](_0x35eb4b=>{if('attribute'!=_0x35eb4b['type'])return;const {data:_0x18ff85}=_0x35eb4b;if(_0x18ff85&&'value'==_0x18ff85['key']&&_0x35eb4b['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1dded6=o(_0xe8e57b,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xe8e57b,'*Change\x20%0\x20content*',_0x1dded6)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1629eb=this['editor'],_0x1b2503=_0x1629eb['locale'];_0x1629eb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a65d7=>{if('formatBlock'!=_0x5a65d7['type'])return;const {data:_0x4e445d}=_0x5a65d7;if(_0x4e445d&&'htmlEmbed'==_0x4e445d['commandName']){const _0x572ba7=o(_0x1b2503,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1b2503,'*Change\x20%0\x20content*',_0x572ba7)};}});}}class it extends _0x4104d6{['afterInit'](){const _0x113cfe=this['editor'];if(!_0x113cfe['plugins']['has']('ImageEditing'))return;const _0x5e7514=_0x113cfe['plugins']['get']('TrackChangesEditing'),_0x55629c=_0x113cfe['plugins']['get']('ImageUtils'),_0x54581f=_0x113cfe['locale'];_0x5e7514['enableCommand']('insertImage'),_0x5e7514['descriptionFactory']['registerElementLabel']('imageBlock',_0x14b5b2=>o(_0x54581f,'ELEMENT_IMAGE',_0x14b5b2)),_0x5e7514['descriptionFactory']['registerElementLabel']('imageInline',_0x40f08=>o(_0x54581f,'ELEMENT_INLINE_IMAGE',_0x40f08)),_0x5e7514['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x54581f,'ELEMENT_CAPTION')),_0x113cfe['plugins']['has']('ImageUploadEditing')&&_0x5e7514['enableCommand']('uploadImage'),_0x113cfe['plugins']['has']('ImageBlockEditing')&&_0x113cfe['plugins']['has']('ImageInlineEditing')&&(_0x5e7514['enableCommand']('imageTypeInline',(_0x22b0e2,_0x2a6c1f)=>{const _0x4f6a48=_0x55629c['getClosestSelectedImageElement'](_0x113cfe['model']['document']['selection']);_0x113cfe['model']['change'](()=>{_0x5e7514['markBlockFormat'](_0x4f6a48,{'commandName':'imageTypeInline','commandParams':[_0x2a6c1f]},[],'convertBlockImageToInline');});}),_0x5e7514['enableCommand']('imageTypeBlock',(_0x5eb170,_0x4cd567)=>{_0x113cfe['model']['change'](_0xb2b820=>{let _0x5866b0=_0x55629c['getClosestSelectedImageElement'](_0x113cfe['model']['document']['selection']),_0x210624=_0xb2b820['createRangeOn'](_0x5866b0);const _0x35efd1=_0x37ad9c['fromPosition'](_0x210624['start'],'toPrevious'),_0x2dc814=_0x37ad9c['fromPosition'](_0x210624['end'],'toNext');_0x5e7514['forceDefaultExecution'](()=>_0x5eb170(_0x4cd567)),_0x5866b0=_0x55629c['getClosestSelectedImageElement'](_0x113cfe['model']['document']['selection']),_0x210624=_0xb2b820['createRangeOn'](_0x5866b0);const _0x3e2712=_0xb2b820['createRange'](_0x35efd1,_0x2dc814);_0x35efd1['detach'](),_0x2dc814['detach'](),_0x5e7514['markBlockFormat'](_0x5866b0,{'commandName':'imageTypeInline','commandParams':[_0x4cd567]},[],'convertInlineImageToBlock'),_0x3e2712['start']['isBefore'](_0x210624['start'])&&_0x5e7514['markInsertion'](_0xb2b820['createRange'](_0x3e2712['start'],_0x210624['start']),'convertInlineImageToBlock'),_0x210624['end']['isBefore'](_0x3e2712['end'])&&_0x5e7514['markInsertion'](_0xb2b820['createRange'](_0x210624['end'],_0x3e2712['end']),'convertInlineImageToBlock');});}),_0x5e7514['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x5e7514['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x5e7514['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x5e7514['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x5e7514['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x5e7514['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x1d690e])=>{const _0x78cb81=_0x5e7514['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2a6aa5=_0x1d690e['start'],_0x523611=_0x1d690e['end'];const _0x509aea=_0x113cfe['model']['schema']['getNearestSelectionRange'](_0x2a6aa5,'backward'),_0x547ae6=_0x113cfe['model']['schema']['getNearestSelectionRange'](_0x523611,'forward');_0x509aea['isCollapsed']&&(_0x2a6aa5=_0x509aea['start']),_0x547ae6['isCollapsed']&&(_0x523611=_0x547ae6['end']),_0x78cb81([_0x113cfe['model']['createRange'](_0x2a6aa5,_0x523611)]);}),_0x5e7514['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xef48c9),_0x5e7514['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xef48c9)),_0x113cfe['plugins']['has']('ImageCaptionEditing')&&(_0x5e7514['enableCommand']('toggleImageCaption',(_0x390d79,_0x296109)=>{const _0x4b7b00=_0x113cfe['plugins']['get']('ImageCaptionUtils');let _0x505471=_0x55629c['getClosestSelectedImageElement'](_0x113cfe['model']['document']['selection']),_0x4b002a=_0x4b7b00['getCaptionFromImageModelElement'](_0x505471);_0x113cfe['model']['change'](()=>{if(_0x4b002a)return void _0x5e7514['markDeletion'](_0x113cfe['model']['createRangeOn'](_0x4b002a));const _0x3f6e7e=_0x55629c['isBlockImage'](_0x505471);_0x390d79(_0x296109),_0x505471=_0x55629c['getClosestSelectedImageElement'](_0x113cfe['model']['document']['selection']),_0x4b002a=_0x4b7b00['getCaptionFromImageModelElement'](_0x505471),_0x5e7514['markInsertion'](_0x113cfe['model']['createRangeOn'](_0x4b002a),_0x3f6e7e?null:'imageCaption');});}),_0x5e7514['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xef48c9));const _0x201417=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x268521(_0x13a211,_0x91eb7f){const _0x240403=_0x201417['findIndex'](({type:_0x39691f,subType:_0x261e2b})=>_0x13a211['type']==_0x39691f&&_0x13a211['subType']==_0x261e2b),_0x1feb63=_0x201417['findIndex'](({type:_0x3a8869,subType:_0x1ec51e})=>_0x91eb7f['type']==_0x3a8869&&_0x91eb7f['subType']==_0x1ec51e);if(_0x240403<0x0||_0x1feb63<0x0)return!0x1;const _0x124c81=_0x13a211['getFirstRange'](),_0x552876=_0x91eb7f['getFirstRange']();if((0x0==_0x240403||0x1==_0x240403)&&0x2==_0x1feb63&&_0x124c81['isIntersecting'](_0x552876))return!0x0;if(0x2==_0x240403&&0x3==_0x1feb63){const _0x1af2fd=_0x5e7514['_findSuggestions'](_0x124c81,'insertion')['filter'](({suggestion:_0x54ede2,meta:_0x26a7f2})=>_0x26a7f2['isOwn']&&'convertInlineImageToBlock'==_0x54ede2['subType']);if(_0x1af2fd['length']>0x1&&_0x552876['end']['isEqual'](_0x124c81['start']))return!0x0;if(0x1==_0x1af2fd['length']&&(_0x124c81['start']['isEqual'](_0x552876['end'])||_0x124c81['end']['isEqual'](_0x552876['start'])))return!0x0;}if(0x3==_0x240403&&0x3==_0x1feb63&&_0x124c81['start']['isBefore'](_0x552876['start'])){const _0x443c8c=_0x124c81['end']['nodeAfter'],_0x3b255d=_0x552876['start']['nodeBefore'];return _0x55629c['isBlockImage'](_0x443c8c)&&_0x443c8c===_0x3b255d;}return!0x1;}function _0xef48c9(_0x532f0f,_0x40d79f){return _0x268521(_0x532f0f,_0x40d79f)?[_0x532f0f,_0x40d79f]:_0x268521(_0x40d79f,_0x532f0f)?[_0x40d79f,_0x532f0f]:null;}_0x113cfe['plugins']['has']('ImageResize')&&(_0x5e7514['enableDefaultAttributesIntegration']('resizeImage'),_0x5e7514['registerBlockAttribute']('resizedWidth'),_0x5e7514['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x54581f,'FORMAT_IMAGE_SIZE'))),_0x113cfe['plugins']['has']('ImageTextAlternativeEditing')&&(_0x5e7514['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x5e7514['registerBlockAttribute']('alt')),_0x5e7514['descriptionFactory']['registerDescriptionCallback'](_0x26d3c3=>{if(!!_0x201417['find'](({type:_0x2465ab,subType:_0x47c0af})=>_0x26d3c3['type']==_0x2465ab&&_0x26d3c3['subType']==_0x47c0af))return _0x26d3c3['previous']?{}:void 0x0;}),_0x5e7514['descriptionFactory']['registerDescriptionCallback'](_0x348edb=>{if('insertion'==_0x348edb['type']||'deletion'==_0x348edb['type']){const _0x92d9c=_0x348edb['getContainedElement']();if(_0x92d9c&&_0x92d9c['is']('element','caption'))return{'type':'insertion'==_0x348edb['type']?'addObject':'removeObject','element':_0x92d9c,'quantity':0x1};}}),_0x5e7514['descriptionFactory']['registerDescriptionCallback'](_0x5c86c5=>'formatBlock'==_0x5c86c5['type']&&'convertInlineImageToBlock'==_0x5c86c5['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5c86c5['type']&&'convertBlockImageToInline'==_0x5c86c5['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x5e7514['descriptionFactory']['registerDescriptionCallback'](_0x2d3596=>{if('attribute'!=_0x2d3596['type'])return;const {data:_0x5deb86}=_0x2d3596;if(!_0x5deb86||'alt'!=_0x5deb86['key'])return;const _0x32f7ce=_0x5deb86['newValue'];return _0x32f7ce?{'type':'format','content':o(_0x54581f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x32f7ce+'\x22')}:{'type':'format','content':o(_0x54581f,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ca211=this['editor'],_0x192c16=_0x2ca211['locale'];_0x2ca211['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd2cd61=>{if('formatBlock'!=_0xd2cd61['type']&&'formatInline'!=_0xd2cd61['type'])return;const {data:_0x565648}=_0xd2cd61;if(_0x565648){if('imageTextAlternative'==_0x565648['commandName']){const _0x44f68e=_0x565648['commandParams'][0x0]['newValue'];return _0x44f68e?{'type':'format','content':o(_0x192c16,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x44f68e+'\x22')}:{'type':'format','content':o(_0x192c16,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x565648['commandName']){const _0x496f49=_0x565648['commandParams'][0x0]['width'];return _0x496f49?{'type':'format','content':o(_0x192c16,'*Set\x20image\x20width:*\x20%0',_0x496f49)}:{'type':'format','content':o(_0x192c16,'*Reset\x20image\x20width*')};}}});}}class st extends _0x4104d6{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1babb8=this['editor']['locale'],_0x3f9ad6=this['editor']['plugins']['get']('TrackChangesEditing');_0x3f9ad6['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3f9ad6['registerBlockAttribute']('src'),_0x3f9ad6['descriptionFactory']['registerDescriptionCallback'](_0x477dc0=>{if('attribute'!=_0x477dc0['type'])return;const {data:_0x371d6a}=_0x477dc0;return _0x371d6a&&'src'==_0x371d6a['key']?_0x371d6a['newValue']&&_0x371d6a['oldValue']?{'type':'format','content':o(_0x1babb8,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x563822=this['editor']['plugins']['get']('TrackChangesEditing');_0x563822['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x563822['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x563822['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x563822['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x459d90=this['editor'],_0x2b03a9=_0x459d90['locale'];_0x459d90['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29474f=>{if('formatBlock'!=_0x29474f['type']&&'formatInline'!=_0x29474f['type'])return;const {data:_0x1e127e}=_0x29474f;if(!_0x1e127e||'replaceImageSource'!=_0x1e127e['commandName'])return;return{'type':'format','content':o(_0x2b03a9,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x4104d6{['afterInit'](){const _0x2f4246=this['editor'];if(!_0x2f4246['plugins']['has']('ImageStyleEditing'))return;const _0x2e0716=_0x2f4246['plugins']['get']('TrackChangesEditing'),_0x369304=_0x2f4246['plugins']['get']('ImageUtils'),_0x5c6d0f={};_0x2e0716['enableCommand']('imageStyle',(_0x43ea65,_0xb5107)=>{const _0x349da3=_0x2f4246['plugins']['get']('Users')['me'],_0x3c5e36=_0x2f4246['commands']['get']('imageStyle');let _0x590a25=_0x369304['getClosestSelectedImageElement'](_0x2f4246['model']['document']['selection']),_0x206c33=_0x2f4246['model']['createRangeOn'](_0x590a25),_0x304e74=_0x3c5e36['value'];if(_0x304e74==_0xb5107['value'])return;const _0x243eca={'commandName':'imageStyle','commandParams':[_0xb5107],'formatGroupId':_0x5ed2a0()};_0x2f4246['model']['change'](()=>{if(_0x2e0716['getSuggestions']()['filter'](_0x451db1=>_0x451db1['isInContent']&&_0x349da3==_0x451db1['author']&&('formatBlock'==_0x451db1['type']||'formatInline'==_0x451db1['type'])&&('imageStylePreApply'==_0x451db1['subType']||'imageStylePostApply'==_0x451db1['subType'])&&_0x451db1['getFirstRange']()['isEqual'](_0x206c33))['forEach'](_0x3f0414=>_0x2e0716['discardSuggestion'](_0x3f0414['head'])),_0x590a25=_0x369304['getClosestSelectedImageElement'](_0x2f4246['model']['document']['selection']),_0x206c33=_0x2f4246['model']['createRangeOn'](_0x590a25),_0x3c5e36['refresh'](),_0x2f4246['commands']['get']('imageTypeInline')['refresh'](),_0x2f4246['commands']['get']('imageTypeBlock')['refresh'](),_0x304e74=_0x3c5e36['value'],_0x304e74!=_0xb5107['value'])return _0x369304['isInlineImage'](_0x590a25)&&_0x3c5e36['shouldConvertImageType'](_0xb5107['value'],_0x590a25)?(_0x43ea65({..._0xb5107,'setImageSizes':!0x1}),_0x590a25=_0x369304['getClosestSelectedImageElement'](_0x2f4246['model']['document']['selection']),void _0x2e0716['markBlockFormat'](_0x590a25,{..._0x243eca,'commandReversedParams':[{'value':_0x304e74||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x369304['isBlockImage'](_0x590a25)?_0x2e0716['markBlockFormat'](_0x590a25,_0x243eca,[],'imageStylePostApply'):_0x2e0716['markInlineFormat'](_0x206c33,_0x243eca,'imageStylePostApply'));});});for(const _0x1b0362 of _0x2f4246['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x5c6d0f[_0x1b0362['name']]=_0x1b0362['title']['toLowerCase']();_0x2e0716['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2e0716['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2e0716['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2e0716['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x8b795b])=>{_0x369304['setImageNaturalSizeAttributes'](_0x8b795b['getContainedElement']());}),_0x2e0716['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x56d829,_0x456e56)=>{_0x2e0716['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x56d829,{'commandName':_0x456e56['commandName'],'commandParams':_0x456e56['commandReversedParams']});}),_0x2e0716['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x4b7f65,_0x4824b4){if(_0x474303(_0x4b7f65,_0x4824b4))return[_0x4b7f65,_0x4824b4];if(_0x474303(_0x4824b4,_0x4b7f65))return[_0x4824b4,_0x4b7f65];return null;});const _0x3c376f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x474303(_0x5a1c37,_0x1b3f73){const _0x2e9776=_0x3c376f['findIndex'](({type:_0x4a3a75,subType:_0x4e4930})=>_0x5a1c37['type']==_0x4a3a75&&_0x5a1c37['subType']==_0x4e4930),_0x4a8824=_0x3c376f['findIndex'](({type:_0x5bf738,subType:_0x3abf0c})=>_0x1b3f73['type']==_0x5bf738&&_0x1b3f73['subType']==_0x3abf0c);if(_0x2e9776<0x0||_0x4a8824<0x0)return!0x1;const _0x2a9da1=_0x5a1c37['getFirstRange'](),_0x2d0046=_0x1b3f73['getFirstRange']();if((0x0==_0x2e9776||0x1==_0x2e9776)&&0x2==_0x4a8824&&_0x2a9da1['isIntersecting'](_0x2d0046))return!0x0;if(0x2==_0x2e9776&&0x3==_0x4a8824){const _0x575105=_0x2e0716['_findSuggestions'](_0x2a9da1,'insertion')['filter'](({suggestion:_0x3c6799,meta:_0x1db68c})=>_0x1db68c['isOwn']&&'convertInlineImageToBlock'==_0x3c6799['subType']);if(_0x575105['length']>0x1&&_0x2d0046['end']['isEqual'](_0x2a9da1['start']))return!0x0;if(0x1==_0x575105['length']&&(_0x2a9da1['start']['isEqual'](_0x2d0046['end'])||_0x2a9da1['end']['isEqual'](_0x2d0046['start'])))return!0x0;}if(0x3==_0x2e9776&&0x3==_0x4a8824&&_0x2a9da1['start']['isBefore'](_0x2d0046['start'])){const _0x1df013=_0x2a9da1['end']['nodeAfter'],_0x2874be=_0x2d0046['start']['nodeBefore'];return _0x369304['isBlockImage'](_0x1df013)&&_0x1df013===_0x2874be;}return!0x1;}_0x2f4246['model']['document']['registerPostFixer'](()=>{let _0x17fe75=!0x1;const _0x5e2f03=Array['from'](_0x2f4246['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x110bb6,data:_0x1159f6}of _0x5e2f03){const {group:_0xc6ff19,type:_0x76e770,subType:_0x29d59c,id:_0x3c6225}=_0x2e0716['_splitMarkerName'](_0x110bb6);if('suggestion'==_0xc6ff19&&_0x2e0716['hasSuggestion'](_0x3c6225)){if('formatBlock'==_0x76e770&&('imageStylePreApply'==_0x29d59c||'imageStylePostApply'==_0x29d59c)){const _0x13b9c6=_0x2e0716['getSuggestion'](_0x3c6225);if(_0x1159f6['newRange']){const _0x34b7ca=_0x13b9c6['getFirstRange']()['getContainedElement']();if(_0x369304['isBlockImage'](_0x34b7ca))continue;_0x2e0716['discardSuggestion'](_0x13b9c6),_0x17fe75=!0x0;}}if('insertion'==_0x76e770&&'imageCaption'==_0x29d59c&&!_0x1159f6['newRange']){const _0x11d0bb=_0x2e0716['getSuggestion'](_0x3c6225);_0x11d0bb['next']&&_0x11d0bb['next']['isInContent']&&(_0x2e0716['discardSuggestion'](_0x11d0bb['next']),_0x17fe75=!0x0);}}}return _0x17fe75;}),this['_registerLegacyDescription'](_0x5c6d0f);}['_registerLegacyDescription'](_0x51958c){const _0x558a01=this['editor'],_0x1bb5b9=_0x558a01['locale'];_0x558a01['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x313971=>{if('formatBlock'!=_0x313971['type']&&'formatInline'!=_0x313971['type'])return;const {data:_0x35501f}=_0x313971;if(!_0x35501f||'imageStyle'!=_0x35501f['commandName'])return;const _0x162e51=_0x35501f['commandParams'][0x0]['value'];return _0x540fa7('side'===_0x162e51?o(_0x1bb5b9,'FORMAT_SIDE_IMAGE'):_0x51958c[_0x162e51]||_0x162e51);function _0x540fa7(_0x18899b){return{'type':'format','content':o(_0x1bb5b9,'*Format:*\x20%0',_0x18899b)};}});}}class ot extends _0x4104d6{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x39f916){super(_0x39f916),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4bb7a6=this['editor'],_0x184d76=_0x4bb7a6['commands']['get']('importWord'),_0x2f9e6d=_0x4bb7a6['commands']['get']('trackChanges');_0x184d76&&(_0x184d76['on']('execute',(_0x369688,[,_0x2b6a7b])=>{this['_trackChangesValueDuringImport']=_0x2f9e6d['value'],_0x2b6a7b['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x184d76,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x184d76,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2f9e6d['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4bb7a6['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1be97a,_0x4a363f){const {suggestions:_0x121bb4}=_0x4a363f,_0x482368=this['editor']['commands']['get']('trackChanges'),_0x17510b=_0x482368['value'];this['_trackChangesValueDuringImport']!==_0x17510b&&(_0x482368['execute'](),this['_trackChangesExecuted']=!0x0),_0x121bb4&&_0x121bb4['forEach'](({id:_0x3d15a2,type:_0x1e2749,author:_0x40e6ec,created_at:_0x2f956a})=>{const _0x5442cb={'id':_0x3d15a2,'type':_0x1e2749,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x40e6ec,'createdAt':_0x2f956a?new Date(_0x2f956a):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5442cb);});}}class rt extends _0x4104d6{['afterInit'](){const _0x2c185f=this['editor'],_0x55d5ff=_0x2c185f['plugins']['get']('TrackChangesEditing');if(_0x2c185f['plugins']['has']('IndentEditing')&&(_0x55d5ff['enableCommand']('indent'),_0x55d5ff['enableCommand']('outdent')),_0x2c185f['plugins']['has']('IndentBlock')){for(const _0xfd0180 of['indentBlock','outdentBlock'])_0x55d5ff['enableDefaultAttributesIntegration'](_0xfd0180);}const _0x11eb33=_0x2c185f['locale'];_0x55d5ff['registerBlockAttribute']('blockIndent'),_0x55d5ff['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x11eb33,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e1e01=this['editor'],_0x4169c7=_0x1e1e01['locale'],_0x68bebd=_0x1e1e01['plugins']['get']('TrackChangesEditing');_0x68bebd['descriptionFactory']['registerDescriptionCallback'](_0x6423df=>{if('formatBlock'!=_0x6423df['type'])return;const {data:_0xb48f89}=_0x6423df;if(!_0xb48f89)return;if('indentBlock'!=_0xb48f89['commandName']&&'outdentBlock'!=_0xb48f89['commandName'])return;const _0x342925=_0x6423df['getItems']()[0x0],_0xbe3266=_0x68bebd['descriptionFactory']['getItemLabel'](_0x342925);return'indentBlock'==_0xb48f89['commandName']?{'type':'format','content':o(_0x4169c7,'*Indent:*\x20%0',_0xbe3266)}:'outdentBlock'==_0xb48f89['commandName']?{'type':'format','content':o(_0x4169c7,'*Outdent:*\x20%0',_0xbe3266)}:void 0x0;});}}class at extends _0x4104d6{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x4104d6{['afterInit'](){const _0x1c3fdc=this['editor'];if(!_0x1c3fdc['plugins']['has']('LinkEditing'))return;const _0xd393c2=_0x1c3fdc['plugins']['get']('TrackChangesEditing'),_0x5bafc2=_0x1c3fdc['commands']['get']('link');_0xd393c2['enableDefaultAttributesIntegration']('link'),_0xd393c2['enableDefaultAttributesIntegration']('unlink'),_0xd393c2['registerInlineAttribute']('linkHref');for(const _0x6b6821 of _0x5bafc2['manualDecorators'])_0xd393c2['registerInlineAttribute'](_0x6b6821['id']),_0xd393c2['descriptionFactory']['registerAttributeLabel'](_0x6b6821['id'],'link\x20('+_0x6b6821['label']['toLowerCase']()+')');_0xd393c2['descriptionFactory']['registerDescriptionCallback'](_0x51cff6=>{if('attribute'!=_0x51cff6['type'])return;const {data:_0x3ab8d9}=_0x51cff6;if(!_0x3ab8d9||'linkHref'!=_0x3ab8d9['key'])return;const _0x1d5426=_0x3ab8d9['newValue'],_0x49ccd3=_0x1c3fdc['locale'];return{'type':'format','content':null==_0x1d5426?o(_0x49ccd3,'*Remove\x20link*'):o(_0x49ccd3,'*Set\x20link:*\x20%0','\x22'+_0x1d5426+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1d01a1=this['editor'],_0x4dcaa7=_0x1d01a1['locale'];_0x1d01a1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x479571=>{if('formatInline'!=_0x479571['type'])return;const {data:_0x39c113}=_0x479571;if(_0x39c113){if('link'==_0x39c113['commandName']){const _0x4aee56=_0x39c113['commandParams'][0x0];return{'type':'format','content':o(_0x4dcaa7,'*Set\x20link:*\x20%0','\x22'+_0x4aee56+'\x22')};}return'unlink'==_0x39c113['commandName']?{'type':'format','content':o(_0x4dcaa7,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x4104d6{['afterInit'](){const _0x2ad8b7=this['editor'],_0x9c2cb3=_0x2ad8b7['locale'];if(!_0x2ad8b7['plugins']['has']('LegacyListEditing'))return;const _0x3af6a5=_0x2ad8b7['plugins']['get']('TrackChangesEditing'),_0x4bae29=_0x2ad8b7['plugins']['has']('LegacyTodoListEditing');function _0x430377(_0x45b5ba){return()=>{const _0x5c0de4=_0x2ad8b7['model']['document']['selection'],_0x29f8a1=_0x2ad8b7['commands']['get'](_0x45b5ba);if(_0x29f8a1['value'])return void _0x2ad8b7['execute']('paragraph',{});const _0x10b228=_0x45b5ba['slice'](0x0,-0x4),_0x42a664=function(_0x1eadb2,_0x4a8810,_0x24f15d){let _0x3d3cd0=Array['from'](_0x1eadb2)['filter'](_0xc26849=>function(_0x416172,_0x582a5b){return _0x582a5b['checkChild'](_0x416172['parent'],'listItem')&&!_0x582a5b['isObject'](_0x416172);}(_0xc26849,_0x24f15d));_0x3d3cd0=_0x3d3cd0['filter'](_0x115686=>!_0x115686['is']('element','listItem')||_0x115686['getAttribute']('listType')!=_0x4a8810);const _0x335174=new Set();for(const _0xb3ac62 of _0x3d3cd0)_0xb3ac62['is']('element','listItem')?_0x335174['add'](me(_0xb3ac62)):_0x335174['add'](_0xb3ac62);return Array['from'](_0x335174);}(_0x5c0de4['getSelectedBlocks'](),_0x10b228,_0x2ad8b7['model']['schema']);_0x2ad8b7['model']['change'](()=>{for(const _0x1c4d5a of _0x42a664)_0x3af6a5['markBlockFormat'](_0x1c4d5a,{'commandName':_0x45b5ba,'commandParams':[{'forceValue':!_0x29f8a1['value']}],'formatGroupId':'blockName'},fe(_0x1c4d5a));});};}function _0x12589a(_0x36609b){return()=>{const _0x48f068=function(_0x43d749){let _0x1f17d8=Array['from'](_0x43d749);const _0x18f889=_0x1f17d8['findIndex'](_0x5c2a39=>'listItem'!=_0x5c2a39['name']);return _0x18f889>-0x1&&(_0x1f17d8=_0x1f17d8['slice'](0x0,_0x18f889)),_0x1f17d8;}(_0x2ad8b7['model']['document']['selection']['getSelectedBlocks']()),_0x511242=_0x2ad8b7['model']['createRange'](_0x2ad8b7['model']['createPositionAt'](_0x48f068[0x0],'before'),_0x2ad8b7['model']['createPositionAt'](_0x48f068[_0x48f068['length']-0x1],'end'));_0x2ad8b7['model']['change'](()=>{_0x3af6a5['markBlockFormat'](_0x511242,{'commandName':_0x36609b,'commandParams':[],'formatGroupId':'listIndent'},function(_0x329b17){const _0x4ca292=new Set();for(const _0x1e1db9 of _0x329b17){let _0x321c09=_0x1e1db9['nextSibling'];for(;_0x321c09&&_0x321c09['getAttribute']('listIndent')>_0x1e1db9['getAttribute']('listIndent');)_0x4ca292['add'](_0x321c09),_0x321c09=_0x321c09['nextSibling'];}return Array['from'](_0x4ca292);}(_0x48f068));});};}_0x3af6a5['enableCommand']('numberedList',_0x430377('numberedList')),_0x3af6a5['enableCommand']('bulletedList',_0x430377('bulletedList')),_0x4bae29&&_0x3af6a5['enableCommand']('todoList',_0x430377('todoList')),_0x3af6a5['enableCommand']('indentList',_0x12589a('indentList')),_0x3af6a5['enableCommand']('outdentList',_0x12589a('outdentList')),_0x4bae29&&_0x3af6a5['enableCommand']('checkTodoList',()=>{const _0x3178b0=_0x2ad8b7['commands']['get']('checkTodoList'),_0x332ea2=Array['from'](_0x3178b0['_selectedElements']);_0x332ea2['filter'](_0x1b1940=>_0x1b1940['getAttribute']('todoListChecked')!=_0x3178b0['value']),_0x2ad8b7['model']['change'](()=>{for(const _0x171adf of _0x332ea2)_0x3af6a5['markBlockFormat'](_0x171adf,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x3178b0['value']}]});});}),_0x3af6a5['descriptionFactory']['registerElementLabel']('listItem',_0xf07770=>o(_0x9c2cb3,'ELEMENT_LIST_ITEM',_0xf07770)),_0x3af6a5['descriptionFactory']['registerDescriptionCallback'](_0x5e28e3=>{if('formatBlock'!=_0x5e28e3['type']&&'formatInline'!=_0x5e28e3['type'])return;const {data:_0x470db0}=_0x5e28e3;if(_0x470db0){if('numberedList'==_0x470db0['commandName']||'bulletedList'==_0x470db0['commandName']||'todoList'==_0x470db0['commandName'])switch(_0x470db0['commandName']['replace']('List','')){case'bulleted':return _0x1dec63(o(_0x9c2cb3,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1dec63(o(_0x9c2cb3,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1dec63(o(_0x9c2cb3,'ELEMENT_TODO_LIST'));}if('indentList'==_0x470db0['commandName'])return{'type':'format','content':o(_0x9c2cb3,'*Indent:*\x20%0',o(_0x9c2cb3,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x470db0['commandName'])return{'type':'format','content':o(_0x9c2cb3,'*Outdent:*\x20%0',o(_0x9c2cb3,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x470db0['commandName'])return _0x470db0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x9c2cb3,'*Check\x20item*')}:{'type':'format','content':o(_0x9c2cb3,'*Uncheck\x20item*')};}function _0x1dec63(_0x330ede){return{'type':'format','content':o(_0x9c2cb3,'*Change\x20to:*\x20%0',_0x330ede)};}});}}function me(_0x335c71){const _0x2da9fa=_0x335c71['getAttribute']('listIndent');if(0x0==_0x2da9fa)return _0x335c71;let _0x1b493a=_0x335c71;for(;_0x335c71['previousSibling']&&_0x335c71['previousSibling']['is']('element','listItem');){const _0x49157c=_0x335c71['previousSibling']['getAttribute']('listIndent');if(_0x49157c==_0x2da9fa)_0x1b493a=_0x335c71['previousSibling'];else{if(_0x49157c<_0x2da9fa)break;}_0x335c71=_0x335c71['previousSibling'];}return _0x1b493a;}function fe(_0x223a86){const _0x4ea781=[];if(_0x223a86['is']('element','listItem')&&_0x223a86['getAttribute']('listIndent')>0x0){let _0x198c58=_0x223a86['nextSibling'];for(;_0x198c58&&'listItem'==_0x198c58['name']&&_0x198c58['getAttribute']('listIndent')==_0x223a86['getAttribute']('listIndent');)_0x4ea781['push'](_0x198c58),_0x198c58=_0x198c58['nextSibling'];}return _0x4ea781;}class K extends _0x4104d6{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x333495=this['editor']['config']['get']('list.properties'),_0x3a6461=this['editor']['plugins']['get']('TrackChangesEditing');_0x333495['styles']&&_0x3a6461['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x333495['reversed']&&_0x3a6461['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x333495['startIndex']&&_0x3a6461['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x3a6461['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xf21574,_0x134f24={}){const _0x2cc2f0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2938ff=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2cc2f0['markMultiRangeBlockFormat'](_0x2938ff,{'commandName':'listStyle','commandParams':[{'type':_0x134f24['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x53a3a3,_0x134d7b={}){const _0x598fdb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x224ea4=this['_getSuggestionBlocks'](_0x5691f9=>_0x5691f9['is']('element','listItem')&&'numbered'===_0x5691f9['getAttribute']('listType'));if(_0x224ea4['length']<0x1)return;const _0x9a649f=_0x224ea4['map'](_0x281bb7=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x281bb7,'before'),this['editor']['model']['createPositionAt'](_0x281bb7,0x0)));this['editor']['model']['change'](()=>{_0x598fdb['markMultiRangeBlockFormat'](_0x9a649f,{'commandName':'listReversed','commandParams':[{'reversed':_0x134d7b['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x173b9d,_0x5792a0={}){const _0x2644e8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5543a2=this['_getSuggestionBlocks'](_0x587131=>_0x587131['is']('element','listItem')&&'numbered'===_0x587131['getAttribute']('listType'));if(_0x5543a2['length']<0x1)return;const _0x44d018=_0x5543a2['map'](_0x180699=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x180699,'before'),this['editor']['model']['createPositionAt'](_0x180699,0x0)));this['editor']['model']['change'](()=>{_0x2644e8['markMultiRangeBlockFormat'](_0x44d018,{'commandName':'listStart','commandParams':[{'startIndex':_0x5792a0['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x90f9fc){if('formatBlock'!=_0x90f9fc['type']&&'formatInline'!=_0x90f9fc['type'])return;const _0x4fb09d=this['editor']['locale'],{data:_0x527d88}=_0x90f9fc;if(!_0x527d88)return;let _0x2659c2,_0x252cf1;switch(_0x527d88['commandName']){case'listStyle':_0x2659c2='*Change\x20to:*\x20%0',_0x252cf1={'type':'format','content':o(_0x4fb09d,_0x2659c2,o(_0x4fb09d,this['_getTranslationKeyForListStyle'](_0x527d88['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2659c2=_0x527d88['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x252cf1={'type':'format','content':o(_0x4fb09d,_0x2659c2)};break;case'listStart':_0x2659c2='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x252cf1={'type':'format','content':o(_0x4fb09d,_0x2659c2,_0x527d88['commandParams'][0x0]['startIndex'])};}return _0x252cf1;}['_getSuggestionBlocksForListStyle'](){const _0x24ab80=this['editor']['plugins']['get']('LegacyListUtils');let _0x54e4ac=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x54e4ac[0x0]?.['is']('element','listItem')&&_0x54e4ac['unshift'](..._0x24ab80['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x54e4ac[_0x54e4ac['length']-0x1]?.['is']('element','listItem')&&_0x54e4ac['push'](..._0x24ab80['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x54e4ac=[...new Set(_0x54e4ac)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x54e4ac=_0x54e4ac['filter'](_0x32c433=>_0x32c433['is']('element','listItem'))),_0x54e4ac;}['_getSuggestionBlocks'](_0x4f2fae){const _0x3d1fad=this['editor']['plugins']['get']('LegacyListUtils');let _0x524ff6=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4f2fae)['map'](_0xbd59a8=>{const _0x4dbbe0=this['editor']['model']['createPositionAt'](_0xbd59a8,0x0);return[..._0x3d1fad['getSiblingNodes'](_0x4dbbe0,'backward'),..._0x3d1fad['getSiblingNodes'](_0x4dbbe0,'forward')];})['flat']();return _0x524ff6=[...new Set(_0x524ff6)],_0x524ff6;}['_getTranslationKeyForListStyle'](_0x3fdd33){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3fdd33)||'default')['toUpperCase']()+'_LIST_'+_0x3fdd33['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x4104d6{['afterInit'](){const _0x42b400=this['editor'];if(!_0x42b400['plugins']['has']('MediaEmbedEditing'))return;const _0x4ee8ff=_0x42b400['plugins']['get']('TrackChangesEditing'),_0x4cde29=_0x42b400['locale'];_0x4ee8ff['enableCommand']('mediaEmbed'),_0x4ee8ff['descriptionFactory']['registerElementLabel']('media',_0x2674a0=>o(_0x4cde29,'ELEMENT_MEDIA',_0x2674a0)),_0x42b400['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x490b6d,{writer:_0x15c911,options:_0x38d121})=>{if(_0x38d121['showSuggestionHighlights'])return _0x15c911['createEmptyElement']('div');},'converterPriority':'high'}),_0x42b400['data']['downcastDispatcher']['on']('attribute:url:media',(_0x4047fa,_0x3c0218,_0x58b9b9)=>{_0x58b9b9['options']['showSuggestionHighlights']&&_0x4047fa['stop']();},{'priority':'high'});}}class gt extends _0x4104d6{['afterInit'](){const _0x1bbec4=this['editor'];_0x1bbec4['plugins']['has']('MentionEditing')&&_0x1bbec4['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x4104d6{['afterInit'](){const _0xca56e9=this['editor'],_0x6b196=_0xca56e9['plugins']['get']('TrackChangesEditing');_0xca56e9['plugins']['has']('MultiLevelList')&&(_0x6b196['enableDefaultAttributesIntegration']('multiLevelList'),_0x6b196['registerBlockAttribute']('listMarkerStyle'),_0x6b196['descriptionFactory']['registerDescriptionCallback'](_0x2dce08=>this['handleDescriptions'](_0x2dce08)));}['handleDescriptions'](_0x3b94d1){const _0xe89e5b=this['editor']['locale'],{data:_0x5f1eab}=_0x3b94d1,_0x15f017={'type':'format','content':''};if(_0x5f1eab&&'listMarkerStyle'==_0x5f1eab['key']){if(!_0x5f1eab['oldValue'])return{'type':'format','content':o(_0xe89e5b,'*Set\x20format:*\x20%0',o(_0xe89e5b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5f1eab['newValue']+')'};if(!_0x5f1eab['newValue']){let _0x504c77=_0x3b94d1['head'];for(;_0x504c77;){if(_0x504c77['data']&&'listType'==_0x504c77['data']['key']&&_0x504c77['data']['newValue'])return _0x15f017;_0x504c77=_0x504c77['next'];}return{'type':'format','content':o(_0xe89e5b,'*Remove\x20format:*\x20%0',o(_0xe89e5b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5f1eab['oldValue']+')'};}}}}class mt extends _0x4104d6{['afterInit'](){const _0xed0c62=this['editor'];if(!_0xed0c62['plugins']['has']('PageBreakEditing'))return;_0xed0c62['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x5cb40a=_0xed0c62['plugins']['get']('TrackChangesEditing'),_0x4f1da6=_0xed0c62['locale'];_0x5cb40a['descriptionFactory']['registerElementLabel']('pageBreak',_0x195489=>o(_0x4f1da6,'ELEMENT_PAGE_BREAK',_0x195489));}}class dt extends _0x4104d6{['afterInit'](){const _0x38d1a8=this['editor'];if(!_0x38d1a8['plugins']['has']('Paragraph'))return;const _0x227235=_0x38d1a8['locale'],_0x5a8cfb=_0x38d1a8['plugins']['get']('TrackChangesEditing');_0x5a8cfb['descriptionFactory']['registerElementLabel']('paragraph',_0xbeb8b3=>o(_0x227235,'ELEMENT_PARAGRAPH',_0xbeb8b3)),_0x5a8cfb['enableDefaultAttributesIntegration']('paragraph'),_0x5a8cfb['enableCommand']('insertParagraph'),_0x38d1a8['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x38d1a8),{'priority':'highest'}),_0x38d1a8['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x173d49,_0x6b1a4d,_0x260214)=>{_0x260214['options']['showSuggestionHighlights']&&nr(_0x38d1a8,{'showActiveMarker':!0x1})(_0x173d49,_0x6b1a4d,_0x260214);},{'priority':'highest'});const _0x4bef5d=_0x5a8cfb['descriptionFactory'];_0x4bef5d['registerDescriptionCallback'](_0x5dc11e=>{if('insertion'!==_0x5dc11e['type'])return;const {start:_0x1b2bc6,end:_0x4b71c5}=_0x5dc11e['getFirstRange']();if(!_0x1b2bc6['isTouching'](_0x4b71c5)||!_0x1b2bc6['nodeAfter'])return;const _0x470ac8=_0x38d1a8['model']['schema'],_0x47af75=_0x1b2bc6['nodeAfter'];return _0x470ac8['isBlock'](_0x47af75)&&!_0x470ac8['isLimit'](_0x47af75)&&_0x470ac8['checkChild'](_0x47af75,'$text')?{'type':'insertion','content':o(_0x227235,'*Insert:*\x20%0',_0x4bef5d['getItemLabel'](_0x47af75,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4230fc=this['editor'],_0x2318e6=_0x4230fc['locale'];_0x4230fc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x58d264=>{if('formatBlock'!=_0x58d264['type'])return;const {data:_0x4589f3}=_0x58d264;return _0x4589f3&&'paragraph'==_0x4589f3['commandName']?{'type':'format','content':o(_0x2318e6,'*Change\x20to:*\x20%0',o(_0x2318e6,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x242da2,{showActiveMarker:_0x514d7f=!0x0}={}){return(_0x2595e3,_0x2ca8b9,_0x111074)=>{const _0x29cc43=_0x242da2['plugins']['get']('TrackChangesEditing'),_0xb6cfd9=_0x2ca8b9['markerRange']['start'],_0x3e8786=_0x2ca8b9['markerRange']['end'],_0x118258=_0x242da2['model']['schema'];if(!_0xb6cfd9['isTouching'](_0x3e8786)||!_0xb6cfd9['nodeAfter'])return;const _0x3e473d=_0xb6cfd9['nodeAfter'];if(_0x118258['isBlock'](_0x3e473d)&&!_0x118258['isLimit'](_0x3e473d)&&_0x118258['checkChild'](_0x3e473d,'$text')){if(!_0x111074['consumable']['consume'](_0x2ca8b9['markerRange'],_0x2595e3['name']))return;const _0x1e0a1a=_0x111074['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x2d4ada=_0x111074['mapper']['toViewPosition'](_0x3e8786);_0x514d7f&&_0x29cc43['activeMarkers']['includes'](_0x2ca8b9['markerName'])&&_0x111074['writer']['addClass']('ck-suggestion-marker--active',_0x1e0a1a),_0x111074['writer']['insert'](_0x2d4ada,_0x1e0a1a),_0x111074['mapper']['bindElementToMarker'](_0x1e0a1a,_0x2ca8b9['markerName']);}};}class pt extends _0x4104d6{['afterInit'](){const _0x5ccd72=this['editor'];if(!_0x5ccd72['plugins']['has']('RemoveFormatEditing'))return;_0x5ccd72['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x54d5f1=this['editor'];_0x54d5f1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a1c1f=>{if('formatBlock'!=_0x1a1c1f['type']&&'formatInline'!=_0x1a1c1f['type'])return;const {data:_0x5b51b1}=_0x1a1c1f;return _0x5b51b1&&'removeFormat'==_0x5b51b1['commandName']?{'type':'format','content':o(_0x54d5f1['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x4104d6{['afterInit'](){const _0x11c4d0=this['editor'];if(!_0x11c4d0['plugins']['has']('RestrictedEditingModeEditing'))return;const _0xa988a1=_0x11c4d0['plugins']['get']('TrackChangesEditing');_0xa988a1['enableCommand']('goToPreviousRestrictedEditingException'),_0xa988a1['enableCommand']('goToNextRestrictedEditingException');const _0x2bbcd4=_0x11c4d0['plugins']['get']('RestrictedEditingModeEditing');_0x2bbcd4['enableCommand']('trackChanges'),_0x2bbcd4['enableCommand']('acceptSuggestion'),_0x2bbcd4['enableCommand']('discardSuggestion'),_0x2bbcd4['enableCommand']('acceptAllSuggestions'),_0x2bbcd4['enableCommand']('discardAllSuggestions'),_0x2bbcd4['enableCommand']('acceptSelectedSuggestions'),_0x2bbcd4['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x4104d6{static get['requires'](){return[_0x291438];}['init'](){const _0x4d02af=this['editor'],_0x3f84b6=_0x4d02af['plugins']['get']('TrackChangesEditing');_0x3f84b6['enableCommand']('shiftEnter'),_0x4d02af['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x4d02af),{'priority':'high'}),_0x4d02af['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x4d02af),{'priority':'high'}),_0x4d02af['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x595609,_0x4de6f4,_0x2e8ae5)=>{_0x2e8ae5['options']['showSuggestionHighlights']&&de(_0x4d02af,{'showActiveMarker':!0x1})(_0x595609,_0x4de6f4,_0x2e8ae5);}),_0x3f84b6['descriptionFactory']['registerElementLabel']('softBreak',_0x3d3de3=>o(_0x4d02af['locale'],'ELEMENT_LINE_BREAK',_0x3d3de3));}}function de(_0x46ab62,{showActiveMarker:_0x5d4045=!0x0}={}){return(_0x4d01bb,_0x47f832,_0x194826)=>{const _0x3de751=_0x46ab62['plugins']['get']('TrackChangesEditing');if(!_0x194826['consumable']['test'](_0x47f832['markerRange'],_0x4d01bb['name']))return;const _0x3f0dc7=_0x46ab62['model'];for(const _0x39bbc3 of _0x47f832['markerRange']['getItems']()){if(!_0x39bbc3['is']('element','softBreak'))continue;const _0x5aff15='deletion'==_0x47f832['markerName']['split'](':')[0x1]?'merge':'split',_0x4742d4=_0x194826['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5aff15}),_0x43d849=_0x194826['mapper']['toViewPosition'](_0x3f0dc7['createPositionBefore'](_0x39bbc3));_0x5d4045&&_0x3de751['activeMarkers']['includes'](_0x47f832['markerName'])&&_0x194826['writer']['addClass']('ck-suggestion-marker--active',_0x4742d4),_0x194826['writer']['insert'](_0x43d849,_0x4742d4),_0x194826['mapper']['bindElementToMarker'](_0x4742d4,_0x47f832['markerName']);}};}class wt extends _0x4104d6{['afterInit'](){const _0x399a89=this['editor'],_0x19022=_0x399a89['model'],_0x1c5775=_0x399a89['locale'];if(!_0x399a89['plugins']['has']('StandardEditingModeEditing'))return;const _0x2acd73=_0x399a89['plugins']['get']('TrackChangesEditing'),_0xfc146d='restrictedEditingException',_0x4fba31=_0x399a89['commands']['get'](_0xfc146d);_0x2acd73['enableCommand'](_0xfc146d,(_0x2d27e4,_0x1c0aed={})=>{const _0xafd260=_0x19022['document']['selection'];if(_0xafd260['isCollapsed'])return void _0x2d27e4(_0x1c0aed);const _0x24189c=void 0x0!==_0x1c0aed['forceValue']?_0x1c0aed['forceValue']:!_0x4fba31['value'];_0x19022['change'](()=>{const _0x578468=Array['from'](_0xafd260['getRanges']());for(const _0x52eb4e of _0x578468){const _0x23eff4=_0x24189c?[_0x52eb4e]:io(_0xfc146d,_0x52eb4e,_0x19022);for(const _0x570425 of _0x23eff4)_0x2acd73['markInlineFormat'](_0x570425,{'commandName':_0xfc146d,'commandParams':[{'forceValue':_0x24189c}]});}});}),_0x2acd73['descriptionFactory']['registerDescriptionCallback'](_0x39b889=>{if('formatBlock'!=_0x39b889['type']&&'formatInline'!=_0x39b889['type'])return;const {data:_0x20ea46}=_0x39b889;return _0x20ea46&&_0x20ea46['commandName']==_0xfc146d?_0x20ea46['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1c5775,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x1c5775,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x4104d6{['afterInit'](){const _0x2da116=this['editor'];if(!_0x2da116['plugins']['has']('Style')||!_0x2da116['plugins']['has']('DataSchema'))return;const _0x1e3c1b=_0x2da116['plugins']['get']('TrackChangesEditing'),_0x8e91af=_0x2da116['locale'],_0x473fe=_0x2da116['config']['get']('style')||{},_0xec482c=_0x2da116['plugins']['get']('GeneralHtmlSupport'),_0x4e2c9f=_0x2da116['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2da116['plugins']['get']('DataSchema'),_0x473fe['definitions']);_0x1e3c1b['enableDefaultAttributesIntegration']('style');const _0x1fd7df=new Set();for(const _0x511ad1 of _0x4e2c9f['block']){const _0x488823=_0xec482c['getGhsAttributeNameForElement'](_0x511ad1['element']);_0x1fd7df['add'](_0x488823);}const _0x2494cc=new Set();for(const _0x550770 of _0x4e2c9f['inline']){const _0x19da0a=_0xec482c['getGhsAttributeNameForElement'](_0x550770['element']);_0x2494cc['add'](_0x19da0a);for(const _0x6b63a1 of _0x550770['ghsAttributes'])_0x2494cc['add'](_0x6b63a1);}for(const _0x539971 of _0x1fd7df)_0x1e3c1b['registerBlockAttribute'](_0x539971),_0x1e3c1b['descriptionFactory']['registerAttributeLabel'](_0x539971,o(_0x8e91af,'FORMAT_STYLE'));for(const _0x4d4bdd of _0x2494cc)_0x1e3c1b['registerInlineAttribute'](_0x4d4bdd),_0x1e3c1b['descriptionFactory']['registerAttributeLabel'](_0x4d4bdd,o(_0x8e91af,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27c720=this['editor'],_0xc1ef67=_0x27c720['locale'];_0x27c720['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6f6eea=>{if('formatBlock'!=_0x6f6eea['type']&&'formatInline'!=_0x6f6eea['type'])return;const {data:_0xcc2e47}=_0x6f6eea;return _0xcc2e47&&'style'===_0xcc2e47['commandName']?_0xcc2e47['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xc1ef67,'*Set\x20format:*\x20%0',_0xcc2e47['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xc1ef67,'*Remove\x20format:*\x20%0',_0xcc2e47['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x4104d6{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x35196f){super(_0x35196f),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1a457b=this['editor'],_0x13e98f=_0x1a457b['model']['document']['selection'];if(!_0x1a457b['plugins']['has']('TableEditing'))return;const _0x120aa4=_0x1a457b['locale'],_0x91d880=_0x1a457b['plugins']['get']('TrackChangesEditing'),_0x289501=_0x1a457b['plugins']['get']('TableUtils');_0x91d880['descriptionFactory']['registerElementLabel']('table',_0x131ac5=>o(_0x120aa4,'ELEMENT_TABLE',_0x131ac5)),this['_setupColumnsRowsFixing'](),_0x91d880['enableCommand']('insertTable'),_0x91d880['enableCommand']('selectTableRow'),_0x91d880['enableCommand']('selectTableColumn');for(const _0x327af9 of['insertTableRowAbove','insertTableRowBelow']){const _0x5c4af8=_0x1a457b['commands']['get'](_0x327af9);_0x91d880['enableCommand'](_0x327af9,_0x107701=>{_0x1a457b['model']['change'](_0x3dce05=>{_0x107701();const _0x2732f1='above'===_0x5c4af8['order'],_0x6e87e4=_0x289501['getSelectionAffectedTableCells'](_0x13e98f),_0x26e72a=_0x289501['getRowIndexes'](_0x6e87e4),_0x5957bb=_0x2732f1?_0x26e72a['first']-0x1:_0x26e72a['last']+0x1,_0x145dd4=_0x6e87e4[0x0]['findAncestor']('table'),_0x34e4e2=_0x289501['createTableWalker'](_0x145dd4,{'startRow':_0x5957bb,'endRow':_0x5957bb}),_0x504075=Array['from'](_0x34e4e2)['map'](_0x472490=>_0x3dce05['createRangeOn'](_0x472490['cell']));_0x91d880['markMultiRangeInsertion'](_0x504075,'tableRow');});});}for(const _0x7794b6 of['insertTableColumnLeft','insertTableColumnRight']){const _0xaf0a9f=_0x1a457b['commands']['get'](_0x7794b6);_0x91d880['enableCommand'](_0x7794b6,_0x3ef804=>{_0x1a457b['model']['change'](_0x591e43=>{_0x3ef804();const _0x46c6f9='left'===_0xaf0a9f['order'],_0x3067e4=_0x289501['getSelectionAffectedTableCells'](_0x13e98f),_0x161833=_0x289501['getColumnIndexes'](_0x3067e4),_0x2cd9a6=_0x46c6f9?_0x161833['first']-0x1:_0x161833['last']+0x1,_0x297cac=_0x3067e4[0x0]['findAncestor']('table'),_0x39891b=_0x289501['createTableWalker'](_0x297cac,{'startRow':0x0,'column':_0x2cd9a6,'includeAllSlots':!0x1}),_0x3cc9b5=Array['from'](_0x39891b)['map'](_0x2b4cb7=>_0x591e43['createRangeOn'](_0x2b4cb7['cell']));_0x91d880['markMultiRangeInsertion'](_0x3cc9b5,'tableColumn');});});}for(const _0xe5d89d of['removeTableRow','removeTableColumn']){const _0x23131c=_0xe5d89d['substr'](0xb),_0x1da058=_0x23131c['toLowerCase'](),_0x1aec82=_0x1da058['substr'](0x0,0x3)+'span',_0x4323b8='table'+_0x23131c,_0x48f100='min'+_0x23131c,_0x46692b='max'+_0x23131c;_0x91d880['enableCommand'](_0xe5d89d,()=>{_0x1a457b['model']['change'](_0x2745d7=>{const _0x29379e=_0x289501['getSelectionAffectedTableCells'](_0x13e98f),_0x3fb6f0=_0x29379e[0x0]['findAncestor']('table');let _0x1344b2;if('removeTableRow'==_0xe5d89d){const _0x266a43=_0x289501['getRowIndexes'](_0x29379e);_0x1344b2={'startRow':_0x266a43['first'],'endRow':_0x266a43['last'],'includeAllSlots':!0x0};}else{const _0x4c340d=_0x289501['getColumnIndexes'](_0x29379e);_0x1344b2={'startColumn':_0x4c340d['first'],'endColumn':_0x4c340d['last'],'includeAllSlots':!0x0};}const _0x1cee4a=_0x289501['createTableWalker'](_0x3fb6f0,_0x1344b2),_0x1d1f0e=Array['from'](_0x1cee4a)['map'](({cell:_0x1713f6})=>_0x1713f6),_0x52510d=Ee(_0x1d1f0e['filter'](_0x1de3dc=>_0x1de3dc['hasAttribute'](_0x1aec82))),_0x555e72=Ee(_0x1d1f0e['filter'](_0x3be64f=>!_0x3be64f['hasAttribute'](_0x1aec82)))['map'](_0x4b7d4d=>_0x2745d7['createRangeOn'](_0x4b7d4d)),_0xf06f2=_0x91d880['markMultiRangeDeletion'](_0x555e72,_0x4323b8);if(_0xf06f2&&('tableRow'==_0xf06f2['subType']||'tableColumn'==_0xf06f2['subType'])){const _0x52be2c=this['_getSuggestionCoords'](_0xf06f2);for(const _0x380ed2 of _0x52510d){const _0x1de5e3=_0x2745d7['createRangeOn'](_0x380ed2),_0xbd7e05=_0x289501['getCellLocation'](_0x380ed2),_0x557631=_0x380ed2['getAttribute'](_0x1aec82)-0x1,_0x563dcb=_0x52be2c[_0x48f100],_0x54ae2a=_0x52be2c[_0x46692b];_0x563dcb<=_0xbd7e05[_0x1da058]&&_0xbd7e05[_0x1da058]+_0x557631<=_0x54ae2a&&_0xf06f2['addRange'](_0x1de5e3);}}});});}function _0x108234(_0x1ce55b){const _0x2101e0=Array['from'](_0x13e98f['getRanges']())['map'](_0x5d55cd=>_0xe90ba7['fromRange'](_0x5d55cd));_0x1a457b['model']['change'](_0x33f631=>{const _0x498c6d=_0x33f631['batch'];_0x1ce55b=_0x1ce55b['filter'](_0x42e007=>'$graveyard'!=_0x42e007['root']['rootName']),_0x33f631['setSelection'](_0x1ce55b),_0x1a457b['commands']['get']('removeTableRow')['refresh'](),_0x1a457b['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1a457b['model']['enqueueChange'](()=>{_0x1a457b['model']['enqueueChange'](_0x498c6d,_0x646c55=>{const _0x46a36c=_0x2101e0['filter'](_0x470c09=>'$graveyard'!=_0x470c09['root']['rootName']);_0x46a36c['length']>0x0&&_0x646c55['setSelection'](_0x46a36c);for(const _0x1015c2 of _0x2101e0)_0x1015c2['detach']();});});});}function _0x26064a(_0x2a4def){_0x1a457b['model']['change'](_0xfba3c5=>{const _0x289f5a=Array['from'](_0x13e98f['getRanges']())['map'](_0x12b211=>_0xe90ba7['fromRange'](_0x12b211)),_0x435cca=[];for(const _0x146c2b of _0x2a4def)for(const _0x4b68ff of _0x146c2b['getItems']({'shallow':!0x0}))_0x435cca['push'](_0x4b68ff);for(const _0xe17c26 of _0x435cca)'$graveyard'!=_0xe17c26['root']['rootName']&&(_0xfba3c5['setSelection'](_0xfba3c5['createPositionAt'](_0xe17c26,0x0)),_0x1a457b['commands']['get']('removeTableColumn')['refresh'](),_0x1a457b['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3e86dd=_0x289f5a['filter'](_0x1d04c4=>'$graveyard'!=_0x1d04c4['root']['rootName']);_0x3e86dd['length']>0x0&&_0xfba3c5['setSelection'](_0x3e86dd);for(const _0x422a47 of _0x289f5a)_0x422a47['detach']();});}function _0x1f2e41(_0x85051c,_0x2eb2ff){return _0x2eb2ff['every'](_0x192e6c=>_0x85051c['some'](_0x1fc29e=>_0x1fc29e['end']['isEqual'](_0x192e6c['start'])||_0x192e6c['end']['isEqual'](_0x1fc29e['start'])));}function _0x152388(_0x18a7ee,_0x24df8d){return!_0x18a7ee['some'](_0x476a78=>_0x24df8d['some'](_0x12fa59=>_0x476a78['isIntersecting'](_0x12fa59)))&&_0x18a7ee['some'](_0x3da2f6=>_0x24df8d['some'](_0x3c2c60=>_0x3da2f6['end']['isTouching'](_0x3c2c60['start'])));}_0x1a457b['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1e17d4,_0xa6c1d8,_0x5aea9c)=>{if(!_0x5aea9c['options']['showSuggestionHighlights'])return;const _0x5be8d1=_0xa6c1d8['item'];if(!_0x5be8d1)return;const _0x26acd5=_0x5aea9c['mapper']['toViewElement'](_0x5be8d1);function _0x457227(_0x4a5552){return Array['isArray'](_0x4a5552)?_0x4a5552:[_0x4a5552];}_0x26acd5&&'tableCell'===_0x5be8d1['name']&&_0x51a40e(_0x26acd5,_0x5aea9c['writer'],(_0x350b38,_0x36262a,_0x393ee0)=>_0x393ee0['addClass'](_0x457227(_0x36262a['classes']),_0x350b38),(_0x3ad175,_0x167f69,_0x31a11d)=>_0x31a11d['removeClass'](_0x457227(_0x167f69['classes']),_0x3ad175));},{'priority':'highest'}),_0x91d880['descriptionFactory']['registerDescriptionCallback'](_0x2a720f=>{if('insertion'!=_0x2a720f['type']&&'deletion'!=_0x2a720f['type'])return;const _0x56af57=_0x2a720f['getContainedElement']();if(null!=_0x56af57&&_0x56af57['is']('element','table')){if('insertion'==_0x2a720f['type']){const _0x4cf95f=_0x2a720f['getItems']()['filter'](_0x340bd1=>_0x340bd1['is']('$textProxy'))['map'](_0x51c29d=>_0x51c29d['data']);if(_0x4cf95f['length'])return{'type':'insertion','content':o(_0x120aa4,'*Insert:*\x20%0',o(_0x120aa4,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4cf95f['join']('\x20')+'\x22'))};}if('deletion'==_0x2a720f['type']){const _0x67c8eb=_0x2a720f['getItems']()['filter'](_0x3115d6=>_0x3115d6['is']('$textProxy'))['map'](_0x228d9c=>_0x228d9c['data']);if(_0x67c8eb['length'])return{'type':'deletion','content':o(_0x120aa4,'*Remove:*\x20%0',o(_0x120aa4,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x67c8eb['join']('\x20')+'\x22'))};}}}),_0x91d880['descriptionFactory']['registerDescriptionCallback'](_0x3cc6d0=>{if('tableRow'==_0x3cc6d0['subType']){const _0x3381d2=_0x3cc6d0['getItems']()['filter'](_0x32d499=>_0x32d499['is']('$textProxy'))['map'](_0x580a72=>_0x580a72['data']),_0x3faa6f=this['_getSuggestionCoords'](_0x3cc6d0),_0x2e538d=_0x3faa6f['maxRow']-_0x3faa6f['minRow']+0x1;if('insertion'==_0x3cc6d0['type'])return _0x3381d2['length']?{'type':'insertion','content':o(_0x120aa4,'*Insert:*\x20%0',o(_0x120aa4,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2e538d,'\x22'+_0x3381d2['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x120aa4,'*Insert:*\x20%0',o(_0x120aa4,'ELEMENT_TABLE_ROW',_0x2e538d))};if('deletion'==_0x3cc6d0['type'])return _0x3381d2['length']?{'type':'deletion','content':o(_0x120aa4,'*Remove:*\x20%0',o(_0x120aa4,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2e538d,'\x22'+_0x3381d2['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x120aa4,'*Remove:*\x20%0',o(_0x120aa4,'ELEMENT_TABLE_ROW',_0x2e538d))};}if('tableColumn'==_0x3cc6d0['subType']){const _0x188e30=_0x3cc6d0['getItems']()['filter'](_0x13d014=>_0x13d014['is']('$textProxy'))['map'](_0x38a375=>_0x38a375['data']),_0x146d26=this['_getSuggestionCoords'](_0x3cc6d0),_0x4b9626=_0x146d26['maxColumn']-_0x146d26['minColumn']+0x1;if('insertion'==_0x3cc6d0['type'])return _0x188e30['length']?{'type':'insertion','content':o(_0x120aa4,'*Insert:*\x20%0',o(_0x120aa4,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4b9626,'\x22'+_0x188e30['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x120aa4,'*Insert:*\x20%0',o(_0x120aa4,'ELEMENT_TABLE_COLUMN',_0x4b9626))};if('deletion'==_0x3cc6d0['type'])return _0x188e30['length']?{'type':'deletion','content':o(_0x120aa4,'*Remove:*\x20%0',o(_0x120aa4,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4b9626,'\x22'+_0x188e30['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x120aa4,'*Remove:*\x20%0',o(_0x120aa4,'ELEMENT_TABLE_COLUMN',_0x4b9626))};}}),_0x91d880['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x108234),_0x91d880['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x108234),_0x91d880['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x26064a),_0x91d880['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x26064a),_0x91d880['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1f2e41),_0x91d880['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1f2e41),_0x91d880['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x152388),_0x91d880['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x152388);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3c0d09=this['editor'],_0xff6af2=_0x3c0d09['model']['document']['selection'];return(_0x23029b,_0x47869c)=>{_0x3c0d09['model']['change'](_0x13ef17=>{const {commandName:_0x2b1af6,commandParams:_0x447426}=_0x47869c;let _0x46b5a9=_0x23029b[0x0]['end']['nodeBefore'];_0x447426&&_0x447426[0x0]&&!0x1===_0x447426[0x0]['forceValue']&&(_0x46b5a9=_0x23029b[0x0]['start']['nodeAfter']);const _0x2e6b93=_0x13ef17['createRangeIn'](_0x46b5a9);if('$graveyard'==_0x2e6b93['root']['rootName'])return;const _0x177e82=Array['from'](_0xff6af2['getRanges']())['map'](_0x539d76=>_0xe90ba7['fromRange'](_0x539d76));_0x13ef17['setSelection'](_0x2e6b93),_0x3c0d09['commands']['get'](_0x2b1af6)['refresh'](),_0x447426['push']({'forceDefaultExecution':!0x0}),_0x3c0d09['execute'](_0x2b1af6,..._0x447426);const _0x1f85c4=_0x177e82['filter'](_0x127872=>'$graveyard'!=_0x127872['root']['rootName']);_0x1f85c4['length']>0x0&&_0x13ef17['setSelection'](_0x1f85c4);for(const _0x28eb9c of _0x177e82)_0x28eb9c['detach']();});};}['_getCoordsForCells'](_0x374b7a){const _0x4422c7=this['editor']['plugins']['get']('TableUtils');let _0x284eef=Number['MAX_SAFE_INTEGER'],_0x41e62d=Number['MIN_SAFE_INTEGER'],_0x154af6=Number['MAX_SAFE_INTEGER'],_0x1affb2=Number['MIN_SAFE_INTEGER'];for(const _0x166283 of _0x374b7a){if('$graveyard'==_0x166283['root']['rootName'])continue;const {row:_0x2ea082,column:_0x3c7621}=_0x4422c7['getCellLocation'](_0x166283),_0x6a1a77=_0x166283['hasAttribute']('rowspan')?_0x166283['getAttribute']('rowspan')-0x1:0x0,_0x5afe24=_0x166283['hasAttribute']('colspan')?_0x166283['getAttribute']('colspan')-0x1:0x0;_0x284eef=_0x2ea082<_0x284eef?_0x2ea082:_0x284eef,_0x41e62d=_0x2ea082+_0x6a1a77>_0x41e62d?_0x2ea082+_0x6a1a77:_0x41e62d,_0x154af6=_0x3c7621<_0x154af6?_0x3c7621:_0x154af6,_0x1affb2=_0x3c7621+_0x5afe24>_0x1affb2?_0x3c7621+_0x5afe24:_0x1affb2;}return{'minRow':_0x284eef,'maxRow':_0x41e62d,'minColumn':_0x154af6,'maxColumn':_0x1affb2};}['_setupColumnsRowsFixing'](){const _0xa0331c=this['editor'],_0x4900df=_0xa0331c['plugins']['get']('TrackChangesEditing'),_0x39d684=_0xa0331c['plugins']['get']('TableUtils');_0xa0331c['model']['document']['on']('change:data',()=>{const _0x598314=Array['from'](_0xa0331c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x24a4f2,data:_0x3267c4}of _0x598314){const {group:_0x41ddb0,id:_0x3dcfb9,subType:_0x18ed45}=_0x4900df['_splitMarkerName'](_0x24a4f2);if('suggestion'!=_0x41ddb0)continue;if(null!=_0x3267c4['oldRange'])continue;const _0x52e9ff=_0x4900df['getSuggestion'](_0x3dcfb9);this['_tablePostFixingSubtypes']['includes'](_0x18ed45)&&this['_tableSuggestions']['add'](_0x52e9ff);}},{'priority':'low'});const _0x4f89e3=(_0x260770,_0x44871b)=>{let _0x5db9ba=!0x1;const _0x41a07a=_0x44871b['createRangeOn'](_0x260770),_0x4f7da6=_0x260770['findAncestor']('table'),_0x43ea56=_0x39d684['getCellLocation'](_0x260770);for(const _0x5770d5 of this['_tableSuggestions']){const _0x4ad45a=_0x5770d5['subType'],_0x4b0747=_0x4ad45a['startsWith']('tablePaste'),_0x43a707=_0x4ad45a['substr'](_0x4b0747?0xa:0x5),_0x2a8044=_0x43a707['toLowerCase'](),_0x463661=_0x2a8044['substr'](0x0,0x3)+'span',_0x519636='min'+_0x43a707,_0x578b94='max'+_0x43a707;if(!_0x5770d5['isInContent'])continue;if(_0x4f7da6!=_0x5770d5['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5770d5['isIntersectingWithRange'](_0x41a07a))continue;const _0x331801=_0x260770['hasAttribute'](_0x463661)?_0x260770['getAttribute'](_0x463661)-0x1:0x0,_0xa1306d=this['_getSuggestionCoords'](_0x5770d5),_0x3d7ddd=_0xa1306d[_0x519636],_0x3f5531=_0xa1306d[_0x578b94];_0x3d7ddd<=_0x43ea56[_0x2a8044]&&_0x43ea56[_0x2a8044]+_0x331801<=_0x3f5531&&(_0x5770d5['addRange'](_0x41a07a),_0x5db9ba=!0x0);}return _0x5db9ba;};_0xa0331c['model']['document']['registerPostFixer'](_0x73767e=>{let _0x26b878=!0x1;for(const _0xc4a03a of _0xa0331c['model']['document']['differ']['getChanges']())if('insert'==_0xc4a03a['type']){if('tableRow'==_0xc4a03a['name']){for(const _0x202d54 of _0xc4a03a['position']['nodeAfter']['getChildren']())_0x26b878=_0x26b878||_0x4f89e3(_0x202d54,_0x73767e);}else'tableCell'==_0xc4a03a['name']&&(_0x26b878=_0x26b878||_0x4f89e3(_0xc4a03a['position']['nodeAfter'],_0x73767e));}return _0x26b878;});}['_getSuggestionCoords'](_0x4a3296){return this['_getCoordsForCells'](_0x4a3296['getRanges']()['map'](_0x41bb26=>_0x41bb26['start']['nodeAfter']));}}function Ee(_0xef91ff){return Array['from'](new Set(_0xef91ff)['values']());}class St extends _0x4104d6{static get['requires'](){return[jt];}['afterInit'](){const _0x502c8b=this['editor'],_0x29c53f=_0x502c8b['model']['document']['selection'],_0x2acf89=_0x502c8b['locale'];if(!_0x502c8b['plugins']['has']('TableEditing'))return;const _0x5da756=_0x502c8b['plugins']['get']('TrackChangesEditing'),_0x20b166=_0x502c8b['plugins']['get']('TableUtils'),_0x4375de=_0x502c8b['plugins']['get'](jt);_0x4375de['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5da756['enableCommand']('mergeTableCells',()=>{const _0x6cb5b5=_0x20b166['getSelectionAffectedTableCells'](_0x502c8b['model']['document']['selection']);_0x502c8b['model']['change'](()=>{_0x5da756['markMultiRangeBlockFormat'](_0x6cb5b5,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x502c8b['commands']['get']('mergeTableCells')['on']('execute',(_0x53cf4f,_0x28eb4c)=>{_0x502c8b['commands']['get']('trackChanges')['value']&&(_0x28eb4c['length']>0x0&&_0x28eb4c[_0x28eb4c['length']-0x1]&&_0x28eb4c[_0x28eb4c['length']-0x1]['forceDefaultExecution']||_0x5da756['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x53cf4f['stop']());},{'priority':'highest'});for(const _0x1c00cc of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x5a734d=_0x502c8b['commands']['get'](_0x1c00cc);_0x5da756['enableCommand'](_0x1c00cc,()=>{const _0x584d2f=_0x502c8b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x29ce8b=>_0x29ce8b['is']('element','tableCell')),_0x4b2663=_0x5a734d['value'];_0x502c8b['model']['change'](()=>{_0x5da756['markMultiRangeBlockFormat']([_0x584d2f,_0x4b2663],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x56f32d of['splitTableCellVertically','splitTableCellHorizontally']){const _0x56d0f5=_0x502c8b['commands']['get'](_0x56f32d);_0x5da756['enableCommand'](_0x56f32d,()=>{const _0x57fd74=_0x20b166['getSelectionAffectedTableCells'](_0x502c8b['model']['document']['selection'])[0x0],_0x2fe099=_0x57fd74['findAncestor']('table'),{column:_0x5545d7,row:_0x398664}=_0x20b166['getCellLocation'](_0x57fd74);let _0x3c9109=[];if('horizontally'==_0x56d0f5['direction']){const _0x11059d=_0x20b166['createTableWalker'](_0x2fe099,{'startRow':_0x398664,'endRow':_0x398664,'includeAllSlots':!0x0});_0x3c9109=Array['from'](_0x11059d)['map'](_0x285481=>_0x285481['cell']);}else{const _0x35487f=_0x20b166['createTableWalker'](_0x2fe099,{'column':_0x5545d7,'includeAllSlots':!0x0});_0x3c9109=Array['from'](_0x35487f)['map'](_0x4e6a8a=>_0x4e6a8a['cell']);}_0x502c8b['model']['change'](_0x3ddc50=>{_0x5da756['markBlockFormat'](_0x3ddc50['createRangeOn'](_0x57fd74),{'commandName':_0x56f32d,'commandParams':[]},_0x3c9109,_0x56f32d);});});}_0x5da756['descriptionFactory']['registerDescriptionCallback'](_0x12b9a8=>{if('formatBlock'!=_0x12b9a8['type']&&'formatInline'!=_0x12b9a8['type'])return;const {data:_0x47535b}=_0x12b9a8;return _0x47535b&&'mergeTableCells'==_0x47535b['commandName']?{'type':'format','content':o(_0x2acf89,'*Merge\x20cells*')}:void 0x0;}),_0x5da756['descriptionFactory']['registerDescriptionCallback'](_0x33634b=>{if('formatBlock'!=_0x33634b['type']&&'formatInline'!=_0x33634b['type'])return;const {data:_0x5cba90}=_0x33634b;return _0x5cba90?'splitTableCellVertically'==_0x5cba90['commandName']?{'type':'format','content':o(_0x2acf89,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x5cba90['commandName']?{'type':'format','content':o(_0x2acf89,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3572b3=_0x4375de['_acceptFormatSuggestionCallbackFactory']();for(const _0x4e5cf4 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5da756['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4e5cf4,'accept',_0x3572b3);for(const _0x5a1637 of['splitTableCellVertically','splitTableCellHorizontally'])_0x5da756['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5a1637,'accept',_0x3572b3);_0x5da756['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3fbd55=>{_0x502c8b['model']['change'](_0x3ce229=>{const _0x47054a=Array['from'](_0x29c53f['getRanges']())['map'](_0x2f5fe0=>_0xe90ba7['fromRange'](_0x2f5fe0));_0x3ce229['setSelection'](_0x3fbd55),_0x502c8b['commands']['get']('mergeTableCells')['refresh'](),_0x502c8b['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5dae7f=_0x47054a['filter'](_0x41f295=>'$graveyard'!=_0x41f295['root']['rootName']);_0x5dae7f['length']>0x0&&_0x3ce229['setSelection'](_0x5dae7f);for(const _0x1a9619 of _0x47054a)_0x1a9619['detach']();});});for(const _0x56538f of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xbd8fcc=_0x502c8b['commands']['get'](_0x56538f);_0xbd8fcc['on']('set:isEnabled',(_0x2c8f28,_0x183aec,_0x1ed305)=>{if(_0x1ed305){const _0x487e91=_0x502c8b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x436afe=>_0x436afe['is']('element','tableCell'));this['_areMergableCells'](_0xbd8fcc['value'],_0x487e91)||(_0x2c8f28['return']=!0x1,_0x2c8f28['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x31f066=this['editor']['commands']['get']('mergeTableCells'),_0x59e933=this['editor']['plugins']['get']('TableUtils');if(!_0x31f066['isEnabled'])return!0x1;const _0x9516ab=_0x59e933['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3d650a of _0x9516ab)for(const _0x447e40 of _0x9516ab)if(_0x3d650a!=_0x447e40&&!this['_areMergableCells'](_0x3d650a,_0x447e40))return!0x1;return!0x0;}['_areMergableCells'](_0xe9aba5,_0x4f7c56){const _0x4709f3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3b07f8=this['editor']['model']['createRangeOn'](_0xe9aba5),_0x173cbf=this['editor']['model']['createRangeOn'](_0x4f7c56),_0x2edf07=new Set(),_0x16459e=new Set();for(const _0x4d2b5b of _0x4709f3['getSuggestions']())if(('insertion'==_0x4d2b5b['type']||'deletion'==_0x4d2b5b['type']||'mergeTableCells'==_0x4d2b5b['subType'])&&_0x4d2b5b['isInContent']){for(const _0x30c728 of _0x4d2b5b['getRanges']())_0x30c728['containsRange'](_0x3b07f8,!0x0)&&_0x2edf07['add'](_0x4d2b5b['type']+':'+_0x4d2b5b['author']['id']),_0x30c728['containsRange'](_0x173cbf,!0x0)&&_0x16459e['add'](_0x4d2b5b['type']+':'+_0x4d2b5b['author']['id']);}if(_0x2edf07['size']!=_0x16459e['size'])return!0x1;for(const _0x515f58 of _0x2edf07)if(!_0x16459e['has'](_0x515f58))return!0x1;return!0x0;}}class At extends _0x4104d6{static get['requires'](){return[jt];}['afterInit'](){const _0x306620=this['editor'];if(!_0x306620['plugins']['has']('TableEditing'))return;const _0x53af63=_0x306620['locale'],_0xc19e21=_0x306620['plugins']['get']('TrackChangesEditing');_0xc19e21['enableDefaultAttributesIntegration']('setTableRowHeader'),_0xc19e21['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0xc19e21['registerBlockAttribute']('headingRows'),_0xc19e21['registerBlockAttribute']('headingColumns'),_0xc19e21['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x53af63,'FORMAT_HEADER_ROW')),_0xc19e21['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x53af63,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1f22c5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1e161b=this['editor']['plugins']['get']('TableUtils'),_0x203546=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x2c9a77({showActiveMarker:_0x3b6fc0=!0x0,setDataAttribute:_0x15c6e8=!0x0}={}){return(_0x3faf35,_0x38aae5,_0x50a90d)=>{const {type:_0x27b19f,id:_0x2490d5}=_0x1f22c5['_splitMarkerName'](_0x38aae5['markerName']),_0xf66105=_0x1f22c5['getSuggestion'](_0x2490d5),_0x2a74b0=_0xf66105['data'];if('formatBlock'!=_0xf66105['type']||!_0x2a74b0||'setTableColumnHeader'!=_0x2a74b0['commandName'])return;if(_0x38aae5['item'])return void _0x3faf35['stop']();if(!_0x50a90d['consumable']['consume'](_0x38aae5['markerRange'],_0x3faf35['name']))return;const _0x10b3ab=_0x38aae5['markerRange']['start']['nodeAfter'],_0x65616e=_0x38aae5['markerRange']['end']['nodeBefore'],_0x5bf54b=_0x10b3ab['parent']['parent'],{column:_0x1183ae}=_0x1e161b['getCellLocation'](_0x10b3ab),{column:_0x24ec12}=_0x1e161b['getCellLocation'](_0x65616e);for(let _0x4d8a87=_0x1183ae;_0x4d8a87<=_0x24ec12;_0x4d8a87++){const _0x1d269d=_0x1e161b['createTableWalker'](_0x5bf54b,{'column':_0x4d8a87,'includeAllSlots':!0x1});for(const _0x5c95ea of _0x1d269d){const _0x2db28c=_0x5c95ea['cell'],_0x1cf00d=_0x50a90d['mapper']['toViewElement'](_0x2db28c);_0x50a90d['writer']['addClass']('ck-suggestion-marker-'+_0x27b19f,_0x1cf00d),_0x15c6e8&&_0x50a90d['writer']['setAttribute']('data-suggestion',_0x2490d5,_0x1cf00d),_0x50a90d['mapper']['bindElementToMarker'](_0x1cf00d,_0x38aae5['markerName']),_0x3b6fc0&&(_0x1f22c5['activeMarkers']['includes'](_0x38aae5['markerName'])?_0x50a90d['writer']['addClass']('ck-suggestion-marker--active',_0x1cf00d):_0x50a90d['writer']['removeClass']('ck-suggestion-marker--active',_0x1cf00d));}}};}_0x1f22c5['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x203546),_0x1f22c5['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x203546),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2c9a77(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4d6719,_0x16e560,_0xba1eae)=>{_0xba1eae['options']['showSuggestionHighlights']&&_0x2c9a77({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4d6719,_0x16e560,_0xba1eae);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x234a0a,_0x299d0e,_0x37c08e)=>{const {type:_0x5409c2,id:_0x1fcedc}=_0x1f22c5['_splitMarkerName'](_0x299d0e['markerName']),_0x284deb=_0x1f22c5['getSuggestion'](_0x1fcedc),_0x574b31=_0x284deb['data'];if('formatBlock'!=_0x284deb['type']||!_0x574b31||'setTableColumnHeader'!=_0x574b31['commandName'])return;const _0x4647fd=_0x37c08e['mapper']['markerNameToElements'](_0x299d0e['markerName']);if(_0x4647fd){for(const _0x3f1c2a of _0x4647fd)_0x37c08e['writer']['removeClass']('ck-suggestion-marker-'+_0x5409c2,_0x3f1c2a),_0x37c08e['writer']['removeClass']('ck-suggestion-marker--active',_0x3f1c2a),_0x37c08e['writer']['removeAttribute']('data-suggestion',_0x3f1c2a),_0x37c08e['mapper']['unbindElementFromMarkerName'](_0x3f1c2a,_0x299d0e['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1214c5=this['editor'],_0x3aece3=_0x1214c5['locale'];function _0x51dc36(_0x2840d6){return{'type':'format','content':o(_0x3aece3,'*Format:*\x20%0',_0x2840d6)};}_0x1214c5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42b165=>{if('formatBlock'!=_0x42b165['type'])return;const {data:_0x569e41}=_0x42b165;if(_0x569e41){if('setTableRowHeader'==_0x569e41['commandName']){const _0x5b8865=_0x569e41['commandParams'][0x0]['forceValue'];return _0x51dc36(o(_0x3aece3,_0x5b8865?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x569e41['commandName']){const _0x5e8927=_0x569e41['commandParams'][0x0]['forceValue'];return _0x51dc36(o(_0x3aece3,_0x5e8927?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x1b5f1a=>[_0x1b5f1a,null]));class It extends _0x4104d6{static get['requires'](){return[jt];}['afterInit'](){const _0x2c4e40=this['editor'];if(!_0x2c4e40['plugins']['has']('TableClipboard'))return;const _0x591597=_0x2c4e40['plugins']['get']('TrackChangesEditing'),_0xff45f=_0x2c4e40['plugins']['get']('TableUtils'),_0x40d093=_0x2c4e40['plugins']['get'](jt),_0x424caf=_0x2c4e40['plugins']['get']('TableClipboard');_0x40d093['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2c4e40['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2c4e40['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x186c32=null;_0x2c4e40['model']['on']('insertContent',(_0x3324bc,_0x5b6f33)=>{const [_0x58d92e,_0x4455fd]=_0x5b6f33,_0x14d0f3=_0x5b6f33[_0x5b6f33['length']-0x1];_0x14d0f3&&_0x14d0f3['forceDefaultExecution']||_0x591597['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x53c635,_0xe91c07,_0x14a3db,_0x452772,_0x340f7c){if(_0xe91c07&&!_0xe91c07['is']('documentSelection'))return!0x1;const _0x153852=_0x340f7c['getTableIfOnlyTableInContent'](_0x53c635,_0x14a3db);if(!_0x153852||!he(_0x153852,void 0x0,_0x452772))return!0x1;const _0x179ad0=_0x452772['getSelectionAffectedTableCells'](_0x14a3db['document']['selection']);if(!_0x179ad0['length'])return!0x1;const _0x266fda=_0x179ad0[0x0]['findAncestor']('table'),_0x2fe6fa=_0x452772['getRowIndexes'](_0x179ad0),_0x3dc187=_0x452772['getColumnIndexes'](_0x179ad0),_0x59b592={'startRow':_0x2fe6fa['first'],'endRow':_0x2fe6fa['last'],'startColumn':_0x3dc187['first'],'endColumn':_0x3dc187['last']};return 0x1==_0x179ad0['length']&&(_0x59b592['endRow']+=_0x452772['getRows'](_0x153852)-0x1,_0x59b592['endColumn']+=_0x452772['getColumns'](_0x153852)-0x1),he(_0x266fda,_0x59b592,_0x452772);}(_0x58d92e,_0x4455fd,_0x2c4e40['model'],_0xff45f,_0x424caf)&&(_0x3324bc['stop'](),_0x186c32={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2c4e40['model']['change'](()=>{_0x2c4e40['model']['insertContent'](_0x5b6f33[0x0],_0x5b6f33[0x1],_0x5b6f33[0x2],{'forceDefaultExecution':!0x0});const _0x1a89ab=_0x5ed2a0(),{rowInsertionRanges:_0x14b0e6,columnInsertionRanges:_0x40541f,insertionRanges:_0x2f7970,deletionRanges:_0x452da1,cells:_0x3ad7c2}=_0x186c32;_0x14b0e6['length']&&_0x591597['markMultiRangeInsertion'](_0x14b0e6,'tablePasteRow',{'tablePasteChainId':_0x1a89ab}),_0x40541f['length']&&_0x591597['markMultiRangeInsertion'](_0x40541f,'tablePasteColumn',{'tablePasteChainId':_0x1a89ab}),_0x2f7970['length']&&(_0x591597['markMultiRangeInsertion'](_0x2f7970,'tablePaste',{'tablePasteChainId':_0x1a89ab,'skipNestingCheck':!0x0}),_0x2f7970['forEach'](_0x4a2235=>_0x4a2235['detach']?.())),_0x452da1['length']&&(_0x591597['markMultiRangeDeletion'](_0x452da1,'tablePaste',{'tablePasteChainId':_0x1a89ab,'skipNestingCheck':!0x0}),_0x452da1['forEach'](_0x5bffde=>_0x5bffde['detach']?.()));const _0x5825ec=_0x591597['markMultiRangeBlockFormat'](_0x3ad7c2['map'](({element:_0x2d3c04})=>_0x2d3c04),{'formatGroupId':_0x5ed2a0()},[],'tablePasteCell',{'tablePasteChainId':_0x1a89ab});if(_0x5825ec){const _0xe56f62=_0x5825ec['getMarkers'](),_0x3bda8a=[];for(const {element:_0x432a4b,attributes:_0x42e73a}of _0x3ad7c2){if(!_0x42e73a)continue;const _0x50c2f1=_0x2c4e40['model']['createRangeOn'](_0x432a4b),_0x1d1a67=_0xe56f62['find'](_0x290c2b=>_0x290c2b['getRange']()['isEqual'](_0x50c2f1));_0x1d1a67&&_0x3bda8a['push']([_0x1d1a67['name'],_0x42e73a]);}_0x3bda8a['length']&&_0x5825ec['setAttribute']('markerAttributes',Object['fromEntries'](_0x3bda8a));}_0x186c32=null;}));},{'priority':_0x2ff03c['high']+0xa}),_0x2c4e40['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4d8114,_0x37e04d)=>{const [_0x49c9bf,_0x17dc36,,_0x172e6c]=_0x37e04d;if(!_0x186c32)return;_0x4d8114['stop']();const _0x5b087a=_0x49c9bf['cell'],_0x200d9a=_0x17dc36,_0x1a2564=Pe(_0x5b087a),_0x43b7cb=Pe(_0x200d9a);_0x4d8114['return']=_0x5b087a;let _0x29b144=null,_0x5ef113=null;if(_0x43b7cb||_0x1a2564){if(_0x1a2564&&!_0x43b7cb){_0x172e6c['remove'](_0x5b087a['getChild'](0x0));for(const _0x4bbbcd of Array['from'](_0x200d9a['getChildren']()))_0x172e6c['insert'](_0x4bbbcd,_0x5b087a,'end');const _0x1732dc=_0x186c32['rowInsertionIndexes']['includes'](_0x49c9bf['row']),_0x26afa1=_0x186c32['columnInsertionIndexes']['includes'](_0x49c9bf['column']);_0x1732dc||_0x26afa1||(_0x29b144=_0xe90ba7['fromRange'](_0x172e6c['createRangeIn'](_0x5b087a)));}else _0x43b7cb&&!_0x1a2564&&(_0x5ef113=_0x172e6c['createRangeIn'](_0x5b087a));}else{const _0x2d094e=_0x172e6c['createElement']('tableCellSuggestion'),_0x3cc51c=_0x172e6c['createElement']('tableCellSuggestion');_0x172e6c['wrap'](_0x172e6c['createRangeIn'](_0x5b087a),_0x3cc51c),_0x172e6c['insert'](_0x2d094e,_0x5b087a,0x0);for(const _0x5296c6 of Array['from'](_0x200d9a['getChildren']()))_0x172e6c['insert'](_0x5296c6,_0x2d094e,'end');_0x29b144=_0xe90ba7['fromRange'](_0x172e6c['createRangeOn'](_0x2d094e)),_0x5ef113=_0xe90ba7['fromRange'](_0x172e6c['createRangeOn'](_0x3cc51c));}const _0x4f10ed=Array['from'](_0x200d9a['getAttributes']())['filter'](([_0x2b3d33])=>ge['includes'](_0x2b3d33));_0x186c32['cells']['push']({'element':_0x5b087a,'attributes':_0x4f10ed['length']?Object['fromEntries'](_0x4f10ed):null}),_0x29b144&&_0x186c32['insertionRanges']['push'](_0x29b144),_0x5ef113&&_0x186c32['deletionRanges']['push'](_0x5ef113);},{'priority':'high'}),_0xff45f['on']('insertColumns',(_0x49a374,_0x221a68)=>{const [_0x17d6b4,_0x52ba0e={}]=_0x221a68;if(!_0x186c32)return;const _0x2fc687=_0x52ba0e['at']||0x0,_0x4c7749=_0x52ba0e['columns']||0x1;_0x186c32['columnInsertionIndexes']=new Array(_0x4c7749)['fill'](_0x2fc687)['map']((_0x596ebe,_0x4a355d)=>_0x596ebe+_0x4a355d);for(const {cell:_0x3ee559}of _0xff45f['createTableWalker'](_0x17d6b4,{'startColumn':_0x2fc687,'endColumn':_0x2fc687+_0x4c7749-0x1}))_0x186c32['columnInsertionRanges']['push'](_0x2c4e40['model']['createRangeOn'](_0x3ee559));},{'priority':'low'}),_0xff45f['on']('insertRows',(_0x290bd3,_0x4b4e57)=>{const [_0xd26695,_0x42694f={}]=_0x4b4e57;if(!_0x186c32)return;const _0x144abd=_0x42694f['at']||0x0,_0x42f588=_0x42694f['rows']||0x1;_0x186c32['rowInsertionIndexes']=new Array(_0x42f588)['fill'](_0x144abd)['map']((_0x2c4de0,_0x1607c3)=>_0x2c4de0+_0x1607c3);for(const {cell:_0x32417c}of _0xff45f['createTableWalker'](_0xd26695,{'startRow':_0x144abd,'endRow':_0x144abd+_0x42f588-0x1}))_0x186c32['rowInsertionRanges']['push'](_0x2c4e40['model']['createRangeOn'](_0x32417c));},{'priority':'low'}),_0x591597['descriptionFactory']['registerDescriptionCallback'](_0x31c5b8=>{if(_0x31c5b8['subType']&&_0x31c5b8['subType']['startsWith']('tablePaste'))return _0x31c5b8['previous']?{}:{'type':'insertion','content':o(_0x2c4e40['locale'],'*Replace\x20table\x20cells*')};});const _0x3e8574=()=>!0x1;for(const _0x400a52 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x591597['_suggestionFactory']['registerCustomCallback']('insertion',_0x400a52,'join',_0x3e8574),_0x591597['_suggestionFactory']['registerCustomCallback']('deletion',_0x400a52,'join',_0x3e8574),_0x591597['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x400a52,'join',_0x3e8574);_0x591597['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3e8574),_0x591597['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x38277b,_0x22302a,_0x5d3d12)=>{const _0x1ea877=_0x38277b['map'](_0x381466=>_0x381466['getContainedElement']())['filter'](_0x5ba569=>_0x5ba569),_0x19b462=new Map(_0x1ea877['map'](_0xd95a00=>[_0xd95a00,null]));if(_0x186c32){for(const {element:_0x25b51b,attributes:_0x228447}of _0x186c32['cells'])_0x228447&&_0x19b462['set'](_0x25b51b,_0x228447);}else{if(_0x5d3d12&&_0x5d3d12['markerAttributes'])for(const [_0x1ad102,_0x1519e5]of Object['entries'](_0x5d3d12['markerAttributes'])){const _0x1a963d=_0x2c4e40['model']['markers']['get'](_0x1ad102),_0x32c3ac=_0x1a963d?_0x1a963d['getRange']()['getContainedElement']():null;_0x32c3ac&&_0x19b462['set'](_0x32c3ac,_0x1519e5);}}_0x2c4e40['model']['change'](_0xf5e6d3=>{for(const [_0x174f11,_0x1dc3ba]of _0x19b462)_0xf5e6d3['setAttributes']({...Ce,..._0x1dc3ba},_0x174f11);});});const _0x4b6721=(_0x406862,_0x1d6a20)=>{_0x591597['_suggestionFactory']['registerCustomCallback'](_0x406862,'tablePaste',_0x1d6a20,(_0x5489a0,_0x4612e0,_0x13cff9)=>{_0x2c4e40['model']['change'](_0x4f1035=>{const _0x331e27=[];for(const _0x274d07 of _0x5489a0){const _0x3d1b9b=_0x274d07['start']['nodeAfter'];_0x3d1b9b['is']('element','tableCellSuggestion')&&_0x331e27['push'](_0x3d1b9b);}_0x591597['_suggestionFactory']['getSuggestionCallback'](_0x406862,null,_0x1d6a20)(_0x5489a0,_0x4612e0,_0x13cff9);for(const _0x73f2cf of _0x331e27)'$graveyard'!=_0x73f2cf['root']['rootName']&&_0x4f1035['unwrap'](_0x73f2cf);});});};_0x4b6721('insertion','accept'),_0x4b6721('insertion','discard'),_0x4b6721('deletion','accept'),_0x4b6721('deletion','discard'),_0x591597['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x369799=>{const _0x3c65e5=_0x369799['map'](_0x511233=>_0x511233['getContainedElement']()),_0xebe819=_0x3c65e5[0x0]['findAncestor']('table'),{minRow:_0x2348eb,maxRow:_0x4fbc87}=_0x40d093['_getCoordsForCells'](_0x3c65e5);_0xff45f['removeRows'](_0xebe819,{'at':_0x2348eb,'rows':_0x4fbc87-_0x2348eb+0x1});}),_0x591597['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0xe7fb04=>{const _0x4ec9b0=_0xe7fb04['map'](_0x5a3f93=>_0x5a3f93['getContainedElement']()),_0x322a50=_0x4ec9b0[0x0]['findAncestor']('table'),{minColumn:_0xd21a7d,maxColumn:_0x268198}=_0x40d093['_getCoordsForCells'](_0x4ec9b0);_0xff45f['removeColumns'](_0x322a50,{'at':_0xd21a7d,'columns':_0x268198-_0xd21a7d+0x1});});const _0x4437ca=(_0x54454b,_0x580abe)=>{if(!_0x580abe['subType']||!_0x580abe['subType']['startsWith']('tablePaste'))return;const _0x1a05ab=_0x580abe['attributes']['tablePasteChainId'],_0x4619c0=_0x591597['getSuggestions']()['filter'](_0x1dcfb7=>_0x1dcfb7['isInContent']&&_0x1dcfb7['attributes']&&_0x1dcfb7['attributes']['tablePasteChainId']==_0x1a05ab);_0x4619c0['length']&&_0x580abe['getAllAdjacentSuggestions']()['length']!=_0x4619c0['length']&&_0x4619c0['reduce']((_0x2ed556,_0x379c02)=>(_0x2ed556['next']=_0x379c02,_0x379c02['previous']=_0x2ed556,_0x379c02));};function _0x1adb9d(_0x43dfcc,_0x3bc135=!0x0){const {id:_0x2be2a6}=_0x591597['_splitMarkerName'](_0x43dfcc['markerName']),_0x2a82ab=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x38a570=_0x591597['activeMarkers']['includes'](_0x43dfcc['markerName']);return _0x38a570&&_0x2a82ab['push']('ck-suggestion-marker--active'),{'classes':_0x2a82ab,'attributes':{'data-suggestion':_0x2be2a6},'priority':_0x38a570&&_0x3bc135?0xbc2:0xbb8};}_0x591597['on']('suggestionLoaded',_0x4437ca,{'priority':'high'}),_0x591597['on']('suggestionUnloaded',_0x4437ca,{'priority':'high'}),_0x2c4e40['model']['document']['registerPostFixer'](()=>{let _0x253684=!0x1;const _0xe84a6e=Array['from'](_0x2c4e40['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3b668a,data:_0x2912d8}of _0xe84a6e){const {group:_0x1d0a7c,type:_0x367232,id:_0x4f9de8}=_0x591597['_splitMarkerName'](_0x3b668a);if('suggestion'!=_0x1d0a7c||'deletion'!=_0x367232||_0x2912d8['oldRange'])continue;if(!_0x591597['hasSuggestion'](_0x4f9de8))continue;const _0x446a70=_0x591597['getSuggestion'](_0x4f9de8)['getRanges'](),_0x1c3c54=_0x2c4e40['plugins']['get']('Users')['me'];for(const _0x4d4ca7 of _0x591597['getSuggestions']()){if(!_0x4d4ca7['isInContent']||_0x4d4ca7['author']!=_0x1c3c54)continue;if('formatBlock'!=_0x4d4ca7['type']||'tablePasteCell'!=_0x4d4ca7['subType'])continue;if(_0x4d4ca7['getRanges']()['every'](_0x1131f2=>_0x446a70['some'](_0x3b94bb=>_0x3b94bb['containsRange'](_0x1131f2,!0x0)))){for(const _0x2aabfa of _0x4d4ca7['getAllAdjacentSuggestions']())_0x2aabfa['isInContent']&&(_0x2aabfa['discard'](),_0x253684=!0x0);}}}return _0x253684;}),_0x2c4e40['model']['document']['registerPostFixer'](_0x524e35=>{const _0x3b12fe=_0x2c4e40['commands']['get']('redo');if(!_0x3b12fe||!_0x3b12fe['_createdBatches']['has'](_0x524e35['batch']))return!0x1;let _0x3d5ce0=!0x1;const _0x247210=_0x2c4e40['plugins']['get']('Users')['me'],_0x1b44e7=_0x2c4e40['model']['document']['differ']['getChanges'](),_0x31ec6c=Array['from'](_0x2c4e40['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x32db1d,data:_0x5be06d})=>{const {group:_0x2264e9,subType:_0x45a0dc,authorId:_0x254450}=_0x591597['_splitMarkerName'](_0x32db1d);return'suggestion'==_0x2264e9&&'tablePaste'==_0x45a0dc&&_0x254450==_0x247210['id']&&!_0x5be06d['oldRange'];});for(const _0xd9a2e0 of _0x1b44e7){if('insert'!=_0xd9a2e0['type']||'tableCellSuggestion'!=_0xd9a2e0['name']||0x1!=_0xd9a2e0['length'])continue;const _0x253a2b=_0x524e35['createRange'](_0xd9a2e0['position'],_0xd9a2e0['position']['getShiftedBy'](0x1));if(!_0x31ec6c['find'](({data:_0xd32a9})=>_0xd32a9['newRange']['isEqual'](_0x253a2b))){for(const {name:_0x2ba2a8,data:_0x28fc33}of _0x31ec6c)if(_0x253a2b['containsRange'](_0x28fc33['newRange'])){_0x524e35['updateMarker'](_0x2ba2a8,{'range':_0x253a2b}),_0x3d5ce0=!0x0;break;}}}return _0x3d5ce0;}),_0x2c4e40['model']['document']['registerPostFixer'](_0x497c15=>{let _0x13add2=!0x1;const _0x1f6761=_0x2c4e40['plugins']['get']('Users')['me'],_0x41d15d=_0x591597['getSuggestions']()['filter'](_0x2106e5=>_0x2106e5['isInContent']&&_0x2106e5['author']==_0x1f6761),_0x315a99=new Set(),_0x111398=new Set();for(const _0x3b6162 of _0x41d15d)if('tablePaste'==_0x3b6162['subType'])for(const _0x5d6983 of _0x3b6162['getMarkers']()){const _0x2f935e=_0x5d6983['getRange']()['getContainedElement']();if(_0x2f935e){if(_0x2f935e['is']('element','tableCellSuggestion')&&Pe(_0x2f935e)){_0x3b6162['removeMarker'](_0x5d6983['name']),_0x315a99['add'](_0x2f935e),_0x13add2=!0x0;const _0x510285=_0x2f935e['nextSibling'],_0x1339c5=_0x2f935e['previousSibling'],_0x375deb=_0x510285&&_0x510285['is']('element','tableCellSuggestion'),_0x1db635=_0x1339c5&&_0x1339c5['is']('element','tableCellSuggestion');_0x375deb&&!_0x315a99['has'](_0x510285)&&_0x111398['add'](_0x510285),_0x1db635&&!_0x315a99['has'](_0x1339c5)&&_0x111398['add'](_0x1339c5);}else _0x2f935e['is']('element','paragraph')&&_0x2f935e['isEmpty']&&(_0x3b6162['removeMarker'](_0x5d6983['name']),_0x13add2=!0x0);}}else{if('tablePasteCell'==_0x3b6162['subType']){if(!_0x3b6162['attributes']||!_0x3b6162['attributes']['tablePasteChainId'])continue;const _0x1e655c=_0x3b6162['attributes']['markerAttributes'];if(_0x1e655c&&Object['keys'](_0x1e655c)['length'])continue;const _0x407bfa=_0x3b6162['attributes']['tablePasteChainId'];let _0x4d16fd=!0x0,_0x50cc74=!0x0;for(const _0x43ed24 of _0x41d15d)if(_0x43ed24['subType']&&_0x43ed24['subType']['startsWith']('tablePaste')){if(!_0x43ed24['attributes']['tablePasteChainId']){_0x50cc74=!0x1;break;}if(_0x43ed24['id']!=_0x3b6162['id']&&_0x43ed24['attributes']['tablePasteChainId']==_0x407bfa){_0x4d16fd=!0x1;break;}}_0x50cc74&&_0x4d16fd&&(_0x3b6162['removeMarkers'](),_0x13add2=!0x0);}}for(const _0x55dfc3 of _0x315a99)_0x497c15['remove'](_0x55dfc3);for(const _0x3aadf3 of _0x111398)_0x497c15['unwrap'](_0x3aadf3);return _0x13add2;}),_0x2c4e40['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x34e1ca,_0x3e30a5)=>_0x1adb9d(_0x34e1ca),'converterPriority':'high'}),_0x2c4e40['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x38bbbe,_0x563fcc)=>_0x563fcc['options']['showSuggestionHighlights']?_0x1adb9d(_0x38bbbe,!0x1):null,'converterPriority':'high'});const _0x353837=_0x2c4e40['editing']['view'];this['listenTo'](_0x353837['document'],'clipboardOutput',(_0x26a76c,_0x253d9e)=>{const _0x5b4e45=[];for(const _0x4433d6 of _0x353837['createRangeIn'](_0x253d9e['content'])['getItems']())_0x4433d6['is']('element','suggestion-td')&&_0x5b4e45['push'](_0x4433d6);_0x353837['change'](_0x403618=>{for(const _0x3b47db of _0x5b4e45)_0x403618['move'](_0x403618['createRangeIn'](_0x3b47db),_0x403618['createPositionBefore'](_0x3b47db)),_0x403618['remove'](_0x3b47db);});});}}function Pe(_0x11dd91){if(_0x11dd91['isEmpty'])return!0x0;const _0x2dbeae=_0x11dd91['getChild'](0x0);return _0x2dbeae['is']('element','paragraph')&&_0x2dbeae['isEmpty'];}function he(_0x21d5a7,_0x581df4={},_0x5b801f){for(const {isAnchor:_0x1695b4,cellHeight:_0x9b063,cellWidth:_0x248339}of _0x5b801f['createTableWalker'](_0x21d5a7,{'includeAllSlots':!0x0,..._0x581df4}))if(!_0x1695b4||0x1!=_0x9b063||0x1!=_0x248339)return!0x1;return!0x0;}class vt extends _0x4104d6{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x23becc=this['editor']['plugins']['get']('TrackChangesEditing');_0x23becc['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x23becc['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x23becc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x23becc['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x23becc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x23becc['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x7c37af,_0x5abe77){const _0x2ee95a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2202cc=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1bdf25=_0x5abe77['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0xee2678=_0x2202cc['getColumnGroupElement'](_0x1bdf25);let _0x5ebc5c=_0xee2678?_0x2202cc['getTableColumnsWidths'](_0xee2678):null,_0x245f32=_0x1bdf25['getAttribute']('tableWidth')||null;const _0x2297c0=_0x5abe77['tableWidth']||_0x245f32,_0x1c936a=_0x5abe77['columnWidths']||_0x5ebc5c,_0x281892=this['editor']['plugins']['get']('Users')['me'];for(const _0x50db09 of _0x2ee95a['getSuggestions']()){const _0x289f9e=_0x50db09['getContainedElement']();if('resizeTable'===_0x50db09['subType']&&_0x289f9e===_0x1bdf25){_0x50db09['author']!==_0x281892&&_0x50db09['discard']();const _0x4379f6=_0x50db09['data']['commandParams'];_0x245f32=_0x4379f6[0x0]['tableWidth'],_0x5ebc5c=_0x4379f6[0x0]['columnWidths'];break;}}_0x7c37af({'table':_0x1bdf25,'tableWidth':_0x2297c0,'columnWidths':_0x1c936a}),_0x2ee95a['markBlockFormat'](_0x1bdf25,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x245f32,'columnWidths':_0x5ebc5c}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x16b233){if('formatBlock'!=_0x16b233['type']&&'formatInline'!=_0x16b233['type'])return;const {data:_0x3f5da2}=_0x16b233;if(_0x3f5da2&&'resizeTable'===_0x3f5da2['formatGroupId']){const _0xf9bc6f='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0xf9bc6f)};}}}class Ct extends _0x4104d6{['afterInit'](){const _0x3b2a04=this['editor'];_0x3b2a04['plugins']['has']('Template')&&_0x3b2a04['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x4104d6{['afterInit'](){const _0x54c1f7=this['editor'];if(!_0x54c1f7['commands']['get']('insertTableOfContents'))return;_0x54c1f7['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x435712=_0x54c1f7['plugins']['get']('TrackChangesEditing'),_0x46d521=_0x54c1f7['locale'];_0x435712['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3764d8=>o(_0x46d521,'ELEMENT_TABLE_OF_CONTENTS',_0x3764d8));}}class Dt extends _0x4104d6{['afterInit'](){const _0x1282a2=this['editor'];if(!_0x1282a2['plugins']['has']('Title'))return;const _0x5673fd=_0x1282a2['plugins']['get']('TrackChangesEditing');_0x5673fd['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x1282a2['locale'],'ELEMENT_TITLE')),_0x1282a2['model']['document']['registerPostFixer'](_0x14cfe1=>{let _0x421313=!0x1;const _0x300589=Array['from'](_0x1282a2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x79589b,data:_0x56db02}of _0x300589){const {group:_0x393bb4}=_0x5673fd['_splitMarkerName'](_0x79589b);if('suggestion'!==_0x393bb4||!_0x56db02['newRange'])continue;const _0x3c4c1f=_0x56db02['newRange'],_0x1d9cc3=_0x3c4c1f['end']['nodeBefore'];if(!_0x1d9cc3||!_0x1d9cc3['is']('element','title-content'))continue;if(!_0x3c4c1f['start']['isTouching'](_0x3c4c1f['end']))continue;const _0x38b416=_0x1282a2['model']['schema']['getNearestSelectionRange'](_0x3c4c1f['end'],'forward');if(_0x38b416&&_0x38b416['isCollapsed']){const _0x47d13f=_0x14cfe1['createRange'](_0x3c4c1f['start'],_0x38b416['start']);_0x47d13f['isEqual'](_0x3c4c1f)||(_0x14cfe1['updateMarker'](_0x79589b,{'range':_0x47d13f}),_0x421313=!0x0);}_0x421313||(_0x14cfe1['removeMarker'](_0x79589b),_0x421313=!0x0);}return _0x421313;});}}class Nt extends _0x4104d6{['afterInit'](){const _0x382fb3=this['editor'],_0x26d2fc=_0x382fb3['plugins']['get']('TrackChangesEditing');_0x382fb3['plugins']['has']('UndoEditing')&&(_0x26d2fc['enableCommand']('undo'),_0x26d2fc['enableCommand']('redo'));}}class Mt extends _0x4104d6{static get['requires'](){return[jt];}['afterInit'](){const _0x1ef780=this['editor'];if(!_0x1ef780['plugins']['has']('TableCaptionEditing'))return;_0x1ef780['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x4104d6{['tableProperties'];['tableCellProperties'];constructor(_0x329f54){super(_0x329f54),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x2010c8=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x17f843 of this['tableProperties'])_0x2010c8['enableCommand'](_0x17f843,(_0x5d06a4,_0x34b5d3)=>{const _0x28424b=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x17f843,[_0x28424b],this['tableProperties'],'tableProperties',_0x5d06a4,_0x34b5d3);});_0x2010c8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2010c8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2010c8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x343b12,_0x23db3d)=>this['handleDiscardAction'](this['tableProperties'],_0x343b12,_0x23db3d)),_0x2010c8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2af99e of this['tableCellProperties'])_0x2010c8['enableCommand'](_0x2af99e,(_0xa16a58,_0x2694fe)=>{const _0x21fd8a=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2af99e,_0x21fd8a,this['tableCellProperties'],'tableCellProperties',_0xa16a58,_0x2694fe);});_0x2010c8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2010c8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2010c8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5d29be,_0x14cc0f)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5d29be,_0x14cc0f)),_0x2010c8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x2010c8['descriptionFactory']['registerDescriptionCallback'](_0x43beca=>this['handleSuggestionDescription'](_0x43beca));}['_handlePropertyChange'](_0x3aef6b,_0x4f31ce,_0x166f31,_0x3e29de,_0x48ee30,_0x188d55){const _0x421d08=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x188d55['batch'],()=>{for(const _0x3fc3f2 of _0x4f31ce){if(this['_getSuggestion'](_0x3fc3f2,_0x3e29de))_0x48ee30(_0x188d55);else{const _0x57d1f2={};for(const _0x3cd1b1 of _0x166f31){const _0x1c6e25=_0x3fc3f2['getAttribute'](_0x3cd1b1);void 0x0!==_0x1c6e25&&(_0x57d1f2[_0x3cd1b1]=_0x1c6e25);}_0x48ee30(_0x188d55),_0x421d08['markBlockFormat'](_0x3fc3f2,{'commandParams':[_0x57d1f2]},[],_0x3e29de);}}});}['handleDiscardAction'](_0x2bfab4,_0x25841c,_0x330c7a){const _0x200312=_0x25841c[0x0]['start']['nodeAfter'],_0x125708=_0x330c7a['commandParams'][0x0];this['editor']['model']['change'](_0x463a05=>{for(const _0x16db1 of _0x2bfab4)void 0x0!==_0x125708[_0x16db1]?_0x463a05['setAttribute'](_0x16db1,_0x125708[_0x16db1],_0x200312):_0x463a05['removeAttribute'](_0x16db1,_0x200312);});}['handleSuggestionDescription'](_0x8356ae){if(_0x8356ae['data'])switch(_0x8356ae['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x22ac31,_0x23c280){const _0x2bd1a8=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4c4422 of _0x2bd1a8['getSuggestions']({'skipNotAttached':!0x0})){const _0x5e5513=_0x4c4422['getContainedElement']();if(_0x4c4422['subType']===_0x23c280&&_0x5e5513===_0x22ac31)return _0x4c4422;}return null;}}const m='$elementName';class p extends _0x4104d6{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0xc2c087,_0x2fa12b,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,_t,$t,Ct,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x16788c){function _0x57a47b(_0x151868){return _0x151868['map'](_0x34028c=>String['fromCharCode'](_0x34028c))['join']('');}super(_0x16788c),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x55e4b9,_0x28c710,_0x178b1d,_0x414413)=>{this['_model']['change'](()=>{for(const _0x5d6d6a of[..._0x414413,..._0x178b1d])this['_model']['markers']['has'](_0x5d6d6a)&&_0x16788c['editing']['reconvertMarker'](_0x5d6d6a);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x16788c['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x16788c['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x16788c['config']['get']('trackChanges.trackFormatChanges'),_0x16788c['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x16788c['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x16788c,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x57a47b([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x57a47b([0x34,0x30,0x34,0x38,0x31,0x34,0x32,0x36]);}['init'](){const _0x307f20=this['editor'],_0x273c6f=(_0x53526c,_0x32ef88)=>{if('attribute'!=_0x53526c)return'ck-suggestion-marker-'+_0x53526c;const _0x8a95c1=_0x32ef88['split']('|')[0x0];return this['_isBlockAttribute'](_0x8a95c1)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x307f20['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2789b6=>{const {id:_0xdd9142,type:_0xb88523,subType:_0x53cc48}=this['_splitMarkerName'](_0x2789b6['markerName']),_0x2b30a9=['ck-suggestion-marker',_0x273c6f(_0xb88523,_0x53cc48)];let _0x5c6158=0xbb8;return this['activeMarkers']['includes'](_0x2789b6['markerName'])&&(_0x2b30a9['push']('ck-suggestion-marker--active'),_0x5c6158=0xbc2),'deletion'==_0xb88523&&(_0x5c6158+=0x5),{'classes':_0x2b30a9,'attributes':{'data-suggestion':_0xdd9142},'priority':_0x5c6158};}}),_0x307f20['conversion']['for']('dataDowncast')['add'](_0x2aa024=>{_0x2aa024['on']('addMarker:suggestion',(_0x1edd9e,_0x98a80c,_0x5d9cbf)=>{if(!_0x5d9cbf['options']['showSuggestionHighlights'])return;const _0x3c8e3c=_0x98a80c['item'];if(!_0x3c8e3c)return;const _0x41abae=_0x5d9cbf['mapper']['toViewElement'](_0x3c8e3c);_0x307f20['model']['schema']['isObject'](_0x3c8e3c)&&_0x41abae&&!_0x41abae['getCustomProperty']('widget')&&_0x41abae['is']('containerElement')&&_0x5f3b3a(_0x41abae,_0x5d9cbf['writer']);},{'priority':'high'});}),_0x307f20['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x427fd4,_0x422af1)=>{if(!_0x422af1['options']['showSuggestionHighlights'])return null;const {type:_0xd15ba6,subType:_0xca0a41}=this['_splitMarkerName'](_0x427fd4['markerName']);return{'classes':['ck-suggestion-marker',_0x273c6f(_0xd15ba6,_0xca0a41)],'priority':0xbb8};}});const _0x298f30=({showActiveMarkers:_0x13fa12=!0x0,isAttributeSuggestion:_0x275268=!0x1}={})=>(_0x5c6d53,_0x1d3578,_0x26d18b)=>{if(!_0x1d3578['item'])return;const {id:_0x1a0245}=this['_splitMarkerName'](_0x1d3578['markerName']);if(_0x275268){const _0x4809b7=this['_suggestions']['get'](_0x1a0245),_0x23766f=this['_getAttributeKey'](_0x4809b7);if(!this['_isBlockAttribute'](_0x23766f))return;}if(_0x1d3578['item']['is']('selection'))return void _0x26d18b['consumable']['consume'](_0x1d3578['item'],_0x5c6d53['name']);const _0x3ce81a=_0x26d18b['mapper']['toViewElement'](_0x1d3578['item']);if(_0x1d3578['item']['is']('element')&&_0x307f20['model']['schema']['isBlock'](_0x1d3578['item'])&&!_0x3ce81a['getCustomProperty']('addHighlight')){_0x26d18b['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x3ce81a),_0x26d18b['writer']['setAttribute']('data-suggestion',_0x1a0245,_0x3ce81a),_0x26d18b['mapper']['bindElementToMarker'](_0x3ce81a,_0x1d3578['markerName']),_0x13fa12&&(this['activeMarkers']['includes'](_0x1d3578['markerName'])?_0x26d18b['writer']['addClass']('ck-suggestion-marker--active',_0x3ce81a):_0x26d18b['writer']['removeClass']('ck-suggestion-marker--active',_0x3ce81a));for(const _0x3fa73c of _0x307f20['model']['createRangeIn'](_0x1d3578['item'])['getItems']())_0x26d18b['consumable']['consume'](_0x3fa73c,_0x5c6d53['name']);_0x26d18b['consumable']['consume'](_0x1d3578['item'],_0x5c6d53['name']);}};_0x307f20['conversion']['for']('dataDowncast')['add'](_0x2ab66e=>{_0x2ab66e['on']('addMarker:suggestion:formatBlock',(_0xe11d8f,_0xf2de95,_0x37f0fd)=>{_0x37f0fd['options']['showSuggestionHighlights']&&_0x298f30({'showActiveMarkers':!0x1})(_0xe11d8f,_0xf2de95,_0x37f0fd);},{'priority':'highest'});}),_0x307f20['conversion']['for']('dataDowncast')['add'](_0x24811b=>{_0x24811b['on']('addMarker:suggestion:attribute',(_0x4a60d1,_0x48b45a,_0x495de6)=>{_0x495de6['options']['showSuggestionHighlights']&&_0x298f30({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4a60d1,_0x48b45a,_0x495de6);},{'priority':'highest'});}),_0x307f20['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0xeb6acd,_0x3d5c99)=>_0x3d5c99['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0xeb6acd['substr'](0xb)}}),_0x307f20['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5c2999,{writer:_0x2382d1})=>{let _0x38efb7='suggestion:'+_0x5c2999['getAttribute']('suggestion-type')+':'+_0x5c2999['getAttribute']('id');return _0x5c2999['getAttribute']('marker-count')&&(_0x38efb7+=':'+_0x5c2999['getAttribute']('marker-count')),_0x2382d1['createElement']('$marker',{'data-name':_0x38efb7});}}),_0x307f20['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x307f20['conversion']['for']('editingDowncast')['add'](_0x2b0e44=>{_0x2b0e44['on']('addMarker:suggestion:formatBlock',_0x298f30(),{'priority':'high'});}),_0x307f20['conversion']['for']('editingDowncast')['add'](_0x14f071=>{_0x14f071['on']('addMarker:suggestion:attribute',_0x298f30({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x307f20['conversion']['for']('editingDowncast')['add'](_0x5bf0e2=>{_0x5bf0e2['on']('removeMarker:suggestion:formatBlock',(_0x402f13,_0x5d8176,_0x58e649)=>{const _0x1f5b9c=_0x58e649['mapper']['markerNameToElements'](_0x5d8176['markerName']);if(_0x1f5b9c){for(const _0x5a7ee7 of _0x1f5b9c)_0x5a7ee7['getCustomProperty']('addHighlight')||(_0x58e649['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5a7ee7),_0x58e649['writer']['removeAttribute']('data-suggestion',_0x5a7ee7),_0x58e649['mapper']['unbindElementFromMarkerName'](_0x5a7ee7,_0x5d8176['markerName']));}},{'priority':'high'});}),_0x307f20['conversion']['for']('editingDowncast')['add'](_0x4cc7b8=>{_0x4cc7b8['on']('removeMarker:suggestion:attribute',(_0x315c64,_0x4bc62a,_0x309d67)=>{const _0x433888=_0x309d67['mapper']['markerNameToElements'](_0x4bc62a['markerName']);if(!_0x433888)return;const {id:_0x21cacc}=this['_splitMarkerName'](_0x4bc62a['markerName']),_0x291101=this['_suggestions']['get'](_0x21cacc),_0x32cbab=this['_getAttributeKey'](_0x291101);if(this['_isBlockAttribute'](_0x32cbab)){for(const _0x44c124 of _0x433888)_0x44c124['getCustomProperty']('addHighlight')||(_0x309d67['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x44c124),_0x309d67['writer']['removeAttribute']('data-suggestion',_0x44c124),_0x309d67['mapper']['unbindElementFromMarkerName'](_0x44c124,_0x4bc62a['markerName']));}},{'priority':'high'});}),_0x307f20['model']['document']['registerPostFixer'](_0x56435b=>{let _0x27856b=!0x1;const _0x41fcef=Array['from'](_0x307f20['model']['document']['differ']['getChangedMarkers']()),_0x2a4f07=new Set();for(const {name:_0x29b7aa,data:_0x2be092}of _0x41fcef){const {group:_0x283207,type:_0x2c79fb,subType:_0x2e4fa3,id:_0x4102f5}=this['_splitMarkerName'](_0x29b7aa);if('suggestion'!==_0x283207)continue;const _0xda5b2d=this['_suggestions']['get'](_0x4102f5);if(null!=_0x2be092['newRange']){'formatInline'==_0x2c79fb&&(_0x27856b=_0x27856b||Et(_0x2be092['newRange'],_0x29b7aa,_0x56435b,_0x307f20['model']['schema']));const _0x475761='attribute'==_0x2c79fb&&this['_isBlockAttribute'](_0x2e4fa3['split']('|')[0x0]);if(_0x2be092['newRange']['isCollapsed']||'$graveyard'==_0x2be092['newRange']['root']['rootName']||'formatBlock'==_0x2c79fb&&!Ut(_0x2be092['newRange'])||_0x475761&&!Ut(_0x2be092['newRange'])||'deletion'==_0x2c79fb&&!(!Tt(_0x390684=_0x2be092['newRange'])&&!function(_0x12a0fc){return _0x12a0fc['start']['parent']==_0x12a0fc['end']['nodeBefore']&&_0x12a0fc['start']['isAtEnd'];}(_0x390684)))_0x56435b['removeMarker'](_0x29b7aa),_0x27856b=!0x0;else{if(!_0xda5b2d||!_0xda5b2d['isInContent'])continue;_0x2a4f07['add'](_0xda5b2d);}}}var _0x390684;return _0x2a4f07['size']>0x0&&(_0x27856b=!!this['_joinWithAdjacentSuggestions'](_0x2a4f07)||_0x27856b),_0x27856b;}),_0x307f20['model']['document']['registerPostFixer'](_0x4bd947=>{let _0x448fce=!0x1;for(const _0x5b9bc6 of _0x307f20['model']['document']['differ']['getChanges']())if('insert'==_0x5b9bc6['type'])for(const _0x1caec3 of this['_suggestions']['values']()){if(_0x1caec3['isMultiRange']||!_0x1caec3['isInContent'])continue;const _0x41bb7d='formatBlock'==_0x1caec3['type'],_0x46bf54=this['_getAttributeKey'](_0x1caec3),_0x578316=_0x46bf54&&this['_isBlockAttribute'](_0x46bf54);if(!_0x41bb7d&&!_0x578316)continue;const _0x1cfc80=_0x1caec3['getFirstRange']();if(_0x1cfc80['start']['parent']!=_0x1cfc80['end']['parent']&&!_0x1cfc80['end']['isAtEnd']){const _0x2f8e21=_0x307f20['model']['createPositionAt'](_0x1cfc80['start']['nodeAfter'],'end'),_0x33dce7=_0x307f20['model']['createRange'](_0x1cfc80['start'],_0x2f8e21);_0x4bd947['updateMarker'](_0x1caec3['getFirstMarker'](),{'range':_0x33dce7}),_0x448fce=!0x0;}}return _0x448fce;}),_0x307f20['model']['document']['registerPostFixer'](_0x1092b6=>this['_processAttributeChanges'](_0x1092b6)),_0x307f20['model']['document']['registerPostFixer'](_0x454e14=>!_0x454e14['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x454e14)),_0x307f20['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x307f20['model']['document']['on']('change:data',(_0x4a6ac8,_0x28bc33)=>{if(!_0x28bc33['isLocal']||_0x28bc33['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x54fe4d=_0x307f20['model']['document']['differ']['getChanges']();if(0x0==_0x54fe4d['length'])return;const _0x7d9006=[],_0xa8c3a6=_0x54fe4d['filter'](_0x8d6a71=>'attribute'==_0x8d6a71['type']),_0x4af324=_0x54fe4d['filter'](_0x3af7f6=>'insert'==_0x3af7f6['type']&&'$text'!=_0x3af7f6['name']);for(const _0x5811f2 of _0xa8c3a6)this['_isRegisteredAttribute'](_0x5811f2['attributeKey'])&&_0x7d9006['push']({'key':_0x5811f2['attributeKey'],'newValue':_0x5811f2['attributeNewValue'],'oldValue':_0x5811f2['attributeOldValue'],'range':Ot(_0x5811f2['range'],_0x307f20['model'])});for(const _0x514f56 of _0x4af324){if('rename'!=_0x514f56['action']&&'refresh'!=_0x514f56['action'])continue;const _0x254ed6=Gt(_0x514f56['position']['nodeAfter'],_0x307f20['model']),_0xc0434=_0x514f56['before'];'rename'==_0x514f56['action']&&_0x7d9006['push']({'key':m,'newValue':_0x514f56['name'],'oldValue':_0xc0434['name'],'range':_0x254ed6});for(const [_0x44f5d4,_0x5e0c99]of _0xc0434['attributes']){if(!this['_isRegisteredAttribute'](_0x44f5d4))continue;const _0x3c039b=_0x514f56['attributes']['get'](_0x44f5d4);_0x5e0c99!==_0x3c039b&&_0x7d9006['push']({'key':_0x44f5d4,'newValue':_0x3c039b,'oldValue':_0x5e0c99,'range':_0x254ed6});}for(const [_0x239b3f,_0x2ed62a]of _0x514f56['attributes'])this['_isRegisteredAttribute'](_0x239b3f)&&(_0xc0434['attributes']['has'](_0x239b3f)||_0x7d9006['push']({'key':_0x239b3f,'newValue':_0x2ed62a,'oldValue':null,'range':_0x254ed6}));}0x0!=_0x7d9006['length']&&_0x307f20['model']['enqueueChange'](_0x28bc33,_0x50ad9b=>{const _0x378591=_0x5ed2a0();for(const {range:_0x3207c5,key:_0x119ab9,oldValue:_0x37f87e,newValue:_0x49fdf4}of _0x7d9006)this['markAttributeChange'](_0x3207c5,_0x119ab9,_0x37f87e,_0x49fdf4,{'groupId':_0x378591});this['_reduceExistingSuggestions'](_0x50ad9b,_0x7d9006);});},{'priority':'lowest'}),_0x307f20['model']['markers']['on']('update:suggestion',(_0x33301c,_0x28eb65,_0x35f799)=>{if(null==_0x35f799){const {id:_0x8204b6}=this['_splitMarkerName'](_0x28eb65['name']),_0x2eb594=this['_suggestions']['get'](_0x8204b6);_0x2eb594&&_0x2eb594['addMarkerName'](_0x28eb65['name']);}}),_0x307f20['model']['document']['on']('change:data',()=>{const _0x59bc45=Array['from'](_0x307f20['model']['document']['differ']['getChangedMarkers']())['filter'](_0x29b425=>'suggestion'===this['_splitMarkerName'](_0x29b425['name'])['group']);if(0x0===_0x59bc45['length'])return;_0x59bc45['sort']((_0x551abb,_0x5f7562)=>{const _0x23cbdb=_0x551abb['data']['oldRange'],_0x105d94=_0x5f7562['data']['oldRange'];return null===_0x23cbdb&&null===_0x105d94?0x0:null===_0x23cbdb&&null!==_0x105d94?-0x1:null!==_0x23cbdb&&null===_0x105d94?0x1:_0x23cbdb['start']['isBefore'](_0x105d94['start'])?-0x1:0x1;});const _0x28c029=new Set(),_0x216206=new Set();for(const {name:_0xd2bf3b,data:_0x52fd1a}of _0x59bc45){const {id:_0x1b90c1}=this['_splitMarkerName'](_0xd2bf3b);if(null===_0x52fd1a['oldRange']){const _0x4a22e5=this['_handleNewSuggestionMarker'](_0xd2bf3b);_0x216206['add'](_0x4a22e5);}else{const _0x153728=this['_suggestions']['get'](_0x1b90c1);null!==_0x52fd1a['newRange']||_0x153728['isInContent']?(_0x28c029['add'](_0x153728['head']),_0x216206['add'](_0x153728)):this['_removeSuggestion'](_0x153728);}}_0x216206['size']>0x0&&this['_refreshSuggestionsChain'](_0x216206);for(const _0x3e3f14 of _0x28c029)this['fire']('suggestionChanged',_0x3e3f14);}),_0x307f20['model']['on']('applyOperation',(_0x4da63e,_0x562e30)=>{const _0x2d1cd1=_0x562e30[0x0];if(!this['_suggestions']['size'])return;if(!_0x2d1cd1['isDocumentOperation'])return;if(_0x2d1cd1['batch']['isUndo']||!_0x2d1cd1['batch']['isLocal'])return;let _0x49be26,_0x4ef1e5;switch(_0x2d1cd1['type']){case'insert':_0x49be26=_0x307f20['model']['createPositionAt'](_0x2d1cd1['position']),_0x4ef1e5=_0x49be26['getShiftedBy'](_0x2d1cd1['howMany']);break;case'split':_0x49be26=_0x307f20['model']['createPositionAt'](_0x2d1cd1['splitPosition']),_0x4ef1e5=_0x307f20['model']['createPositionAt'](_0x2d1cd1['moveTargetPosition']);break;case'move':_0x49be26=_0x307f20['model']['createPositionAt'](_0x2d1cd1['targetPosition']),_0x4ef1e5=_0x49be26['getShiftedBy'](_0x2d1cd1['howMany']);break;default:return;}const _0x5149af=_0x307f20['model']['createRange'](_0x49be26,_0x4ef1e5);_0x307f20['model']['change'](()=>{for(const {suggestion:_0x2f4fec,meta:_0x3338e2}of this['_findSuggestions'](_0x5149af)){if(_0x2f4fec['isMultiRange'])continue;if('formatInline'==_0x2f4fec['type'])continue;const _0x1d0d8b=this['_getAttributeKey'](_0x2f4fec);if(_0x1d0d8b&&this['_isBlockAttribute'](_0x1d0d8b)&&'split'!=_0x2d1cd1['type'])continue;const _0x30f098=_0x2f4fec['data']&&_0x2f4fec['data']['multipleBlocks'];('formatBlock'!=_0x2f4fec['type']||'split'==_0x2d1cd1['type']&&!_0x30f098)&&(_0x3338e2['containsRangeInObject']||'insertion'==_0x2f4fec['type']&&_0x3338e2['isOwn']||_0x2f4fec['getFirstRange']()['containsRange'](_0x5149af)&&this['_breakSuggestionMarker'](_0x2f4fec,_0x49be26,_0x4ef1e5));}});},{'priority':'lowest'}),_0x307f20['model']['on']('deleteContent',(_0x518c2c,_0x5f0c5f)=>{const _0xd11e6b=_0x5f0c5f[0x0],_0xe47cc2=_0x5f0c5f[0x1];if(_0xe47cc2&&_0xe47cc2['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xd11e6b['isCollapsed'])return;const _0x94e875=_0x307f20['model']['schema'],{start:_0x1d16b3,end:_0x36b172}=_0xd11e6b['getFirstRange'](),_0x22b6f6=_0x1d16b3['nodeAfter']&&_0x94e875['isLimit'](_0x1d16b3['nodeAfter'])?null:_0x94e875['getNearestSelectionRange'](_0x1d16b3,'forward'),_0xbd8c66=_0x36b172['nodeBefore']&&_0x94e875['isLimit'](_0x36b172['nodeBefore'])?null:_0x94e875['getNearestSelectionRange'](_0x36b172,'backward'),_0x22b624=_0x307f20['model']['createRange'](_0x22b6f6?_0x22b6f6['start']:_0x1d16b3,_0xbd8c66?_0xbd8c66['end']:_0x36b172);_0x307f20['model']['change'](_0x34a7c4=>{this['markDeletion'](_0x22b624);const _0x161938=_0x307f20['model']['schema']['getNearestSelectionRange'](_0x22b624['start']);_0xd11e6b['is']('documentSelection')?_0x34a7c4['setSelection'](_0x161938):_0xd11e6b['setTo'](_0x161938);}),_0x518c2c['stop']();},{'priority':_0x2ff03c['normal']+0xa}),_0x307f20['model']['on']('insertContent',(_0x4d3a2b,_0x2abf23)=>{const _0x290780=_0x2abf23[_0x2abf23['length']-0x1];_0x290780&&_0x290780['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x307f20['model']['change'](()=>{let _0x2a174a=_0x307f20['model']['insertContent'](_0x2abf23[0x0],_0x2abf23[0x1],_0x2abf23[0x2],{'forceDefaultExecution':!0x0});if(!_0x2a174a)return;_0x4d3a2b['return']=_0x2a174a['clone']();const _0x542bfc=_0x2a174a['end']['nodeBefore'],_0xc363f4=_0x307f20['model']['schema'];_0x542bfc&&_0xc363f4['isBlock'](_0x542bfc)&&!_0xc363f4['isObject'](_0x542bfc)&&(_0x2a174a=_0x307f20['model']['createRange'](_0x2a174a['start'],_0x307f20['model']['createPositionAt'](_0x542bfc,'end'))),this['markInsertion'](_0x2a174a);}),_0x4d3a2b['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x21fb90=new $(_0x307f20,this['_suggestions']);_0x307f20['commands']['add']('acceptSuggestion',_0x21fb90),this['enableCommand']('acceptSuggestion');const _0x880497=new B(_0x307f20,this['_suggestions']);_0x307f20['commands']['add']('discardSuggestion',_0x880497),this['enableCommand']('discardSuggestion'),_0x307f20['commands']['add']('acceptAllSuggestions',new x(_0x307f20,_0x21fb90,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x307f20['commands']['add']('discardAllSuggestions',new x(_0x307f20,_0x880497,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x307f20['commands']['add']('acceptSelectedSuggestions',new R(_0x307f20,_0x21fb90,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x307f20['commands']['add']('discardSelectedSuggestions',new R(_0x307f20,_0x880497,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1ec242=_0x307f20['plugins']['get']('CommentsRepository');this['listenTo'](_0x1ec242,'addComment',(_0xc8501f,{threadId:_0x443106})=>{const _0x168264=this['_suggestions']['get'](_0x443106);_0x168264&&_0x168264['commentThread']&&0x1===_0x168264['commentThread']['length']&&this['_updateSuggestionData'](_0x443106,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1ec242,'removeComment',(_0x526553,{threadId:_0x45e8ba})=>{const _0x32cba6=this['_suggestions']['get'](_0x45e8ba);_0x32cba6&&_0x32cba6['commentThread']&&!_0x32cba6['commentThread']['length']&&this['_updateSuggestionData'](_0x45e8ba,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x178775){if(this['_adapter'])throw new _0x274ec5('track-changes-adapter-already-set',this);this['_adapter']=_0x178775;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x4bbe00=!0x1,toJSON:_0x4dcc4c=!0x1}={}){const _0x16ca44=[];for(const _0x108fbf of this['_suggestions']['values']())_0x4bbe00&&!_0x108fbf['isInContent']||_0x16ca44['push'](_0x108fbf);return _0x4dcc4c?_0x16ca44['map'](_0x571450=>_0x571450['toJSON']()):_0x16ca44;}['getSuggestion'](_0x34bd34){const _0x2fb04d=this['_suggestions']['get'](_0x34bd34);if(!_0x2fb04d)throw new _0x274ec5('track-changes-suggestion-not-found',this);return _0x2fb04d;}['hasSuggestion'](_0x17b42f){return this['_suggestions']['has'](_0x17b42f);}['addSuggestionData'](_0x28b8d0){const {authorId:_0x1480b,id:_0xae23a5,attributes:_0x5af6e4}=_0x28b8d0,[_0x31da28,_0x5b0e7a]=_0x28b8d0['type']['split'](':'),_0x11effc=this['_suggestions']['get'](_0xae23a5)||this['_createSuggestion'](_0x31da28,_0x5b0e7a,_0xae23a5,_0x1480b,_0x5af6e4);if(this['_addThreadToSuggestion'](_0x11effc),this['_checkSuggestionCorrectness'](_0x11effc,_0x31da28,_0x5b0e7a||null,_0x1480b),_0x11effc['createdAt']=_0x28b8d0['createdAt'],_0x11effc['_isDataLoaded']=!0x0,_0x5af6e4&&_0x5af6e4['@external']){const _0x239a0f=_0x5af6e4['@external'],_0x563cf8=this['_getExternalAuthor'](_0x239a0f['authorName']);_0x11effc['authoredAt']=_0x239a0f['createdAt'],_0x11effc['author']=_0x563cf8,_0x11effc['isExternal']=!0x0;}else _0x11effc['authoredAt']=_0x28b8d0['createdAt'];switch(_0x28b8d0['data']&&(_0x11effc['data']=_0x28b8d0['data']),_0x28b8d0['attributes']&&(_0x11effc['attributes']=_0x28b8d0['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x11effc['_saved']=!0x0),this['_suggestionState']['get'](_0x11effc)){case'notReady':this['_suggestionState']['set'](_0x11effc,'dataReady');break;case'markerReady':_0x11effc['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x11effc])),this['_refreshSuggestionsChain'](new Set([_0x11effc])),this['_suggestionState']['set'](_0x11effc,'ready'),this['fire']('suggestionLoaded',_0x11effc)):this['_suggestionState']['set'](_0x11effc,'removed');}return _0x11effc;}['acceptSuggestion'](_0x1cbf55){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2559cc of _0x1cbf55['getAllAdjacentSuggestions']())_0x2559cc['accept']();});});}['discardSuggestion'](_0x376de6){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2bb587 of _0x376de6['getAllAdjacentSuggestions']())_0x2bb587['discard']();});});}['enableCommand'](_0x3bab6e,_0x176451){const _0x545c58=this['editor']['commands']['get'](_0x3bab6e);if(!_0x545c58)throw new _0x274ec5('track-changes-command-not-found',this,{'commandName':_0x3bab6e});if(this['_enabledCommands']['has'](_0x545c58))throw new _0x274ec5('track-changes-enable-command-twice',this,{'commandName':_0x3bab6e});this['_enabledCommands']['add'](_0x545c58),_0x176451&&_0x545c58['on']('execute',(_0x115236,_0x5f19e7)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5f19e7['length']>0x0&&_0x5f19e7[_0x5f19e7['length']-0x1]&&_0x5f19e7[_0x5f19e7['length']-0x1]['forceDefaultExecution']?_0x5f19e7['pop']():(_0x115236['return']=_0x176451((..._0x127022)=>_0x545c58['execute'](..._0x127022,{'forceDefaultExecution':!0x0}),..._0x5f19e7),_0x115236['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x224c21){let _0x50e5ab,_0x9ee2b1;const _0x17059e=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x50e5ab=_0x224c21();}catch(_0x45d04f){_0x9ee2b1=_0x45d04f;}return _0x17059e||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x9ee2b1&&_0x274ec5['rethrowUnexpectedError'](_0x9ee2b1,this),_0x50e5ab;}['markInsertion'](_0x3aa4e6,_0x5370bf=null,_0x3489b={}){if(_0x3aa4e6['isCollapsed'])return null;const _0x50fdd1=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x20352c,meta:_0x49df70}of this['_findSuggestions'](_0x3aa4e6,'insertion'))if(_0x49df70['isOwn']){if(!_0x49df70['isNextTo']){if(_0x49df70['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x20352c,_0x3489b))continue;return _0x20352c;}if(Lt(_0x20352c,_0x3489b))return _0x20352c;this['_breakSuggestionMarker'](_0x20352c,_0x3aa4e6['start'],_0x3aa4e6['end']);break;}if(_0x5370bf==_0x20352c['subType']&&Lt(_0x20352c,_0x3489b)){const _0x38603c=_0x20352c['getFirstRange']();return _0x38603c['start']['isEqual'](_0x3aa4e6['end'])?this['_setSuggestionRange'](_0x20352c,this['_model']['createRange'](_0x3aa4e6['start'],_0x38603c['end'])):this['_setSuggestionRange'](_0x20352c,this['_model']['createRange'](_0x38603c['start'],_0x3aa4e6['end'])),_0x20352c;}}const _0x37136e=_0x5ed2a0(),_0xf7a5e5=_0x50fdd1['id'],_0x11af72=_0x5370bf?'insertion:'+_0x5370bf:'insertion',_0x45f5f4=this['_setSuggestionData']({'id':_0x37136e,'type':_0x11af72,'createdAt':new Date(),'authorId':_0xf7a5e5,'attributes':_0x3489b});return this['_addSuggestionMarker'](_0x11af72,_0x37136e,_0xf7a5e5,_0x3aa4e6),_0x45f5f4;}['markMultiRangeInsertion'](_0x32992c,_0x4e8fdd='multi',_0x409704={}){const _0x47207f=this['editor']['plugins']['get']('Users')['me'],_0x350685=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4e8fdd,'join');for(const _0x4e927f of this['getSuggestions']())if(_0x4e927f['author']['id']==_0x47207f['id']&&'insertion'==_0x4e927f['type']&&_0x4e927f['subType']==_0x4e8fdd&&Lt(_0x4e927f,_0x409704)&&(_0x350685(_0x4e927f['getRanges'](),_0x32992c)||_0x350685(_0x32992c,_0x4e927f['getRanges']()))){for(const _0x5dcbf5 of _0x32992c)_0x4e927f['addRange'](_0x5dcbf5);return _0x4e927f;}for(const {suggestion:_0x37e221,meta:_0x971257}of this['_findSuggestions'](_0x32992c,'insertion')){if(!_0x971257['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x971257['containsRangeInObject'])continue;if(!Lt(_0x37e221,_0x409704))continue;let _0x44fdc8=!0x0;for(const _0x18bdcd of _0x37e221['getRanges']())for(const _0x5ab787 of _0x32992c)if(!_0x18bdcd['containsRange'](_0x5ab787)){_0x44fdc8=!0x1;break;}if(_0x44fdc8)return _0x37e221;}const _0x333e06=_0x5ed2a0(),_0xaa2269=_0x47207f['id'],_0x30d1c7='insertion:'+_0x4e8fdd,_0x5c3f9d=this['_setSuggestionData']({'id':_0x333e06,'type':_0x30d1c7,'createdAt':new Date(),'authorId':_0xaa2269,'attributes':_0x409704});for(const _0xb232c2 of _0x32992c)this['_addSuggestionMarker'](_0x30d1c7,_0x333e06,_0xaa2269,_0xb232c2,u['getMultiRangeId']());return _0x5c3f9d;}['markInlineFormat'](_0x5df9df,_0x3f5b67,_0x5e28dd=null,_0x58ce08={}){if(_0x5e28dd=_0x5e28dd||Vt(_0x3f5b67),_0x5df9df['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x57f163=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5e28dd,'accept');return this['forceDefaultExecution'](()=>_0x57f163([_0x5df9df],_0x3f5b67,_0x58ce08)),null;}const _0x248169=this['editor']['plugins']['get']('Users')['me'],_0x669506=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4b1319,meta:_0xa8692f}of this['_findSuggestions'](_0x5df9df,'insertion'))_0xa8692f['isOwn']&&!_0xa8692f['isInsideObject']&&_0x669506['push'](..._0x4b1319['getRanges']());}const _0x54ddc1=function(_0x470289,_0xf982f6){const _0x279c70=[];for(const _0x1ce730 of _0xf982f6){const _0x3bd5a0=_0x470289['getIntersection'](_0x1ce730);_0x3bd5a0&&_0x279c70['push'](_0x3bd5a0);}return _0x279c70;}(_0x5df9df,_0x669506),_0x25bd70=function(_0x195dc7,_0x3f6de8){const _0x39c7f3=[_0x195dc7];for(const _0x5bb397 of _0x3f6de8){let _0x5ae881=0x0;for(;_0x5ae881<_0x39c7f3['length'];){const _0x27d9e9=_0x39c7f3[_0x5ae881]['getDifference'](_0x5bb397);_0x39c7f3['splice'](_0x5ae881,0x1,..._0x27d9e9),_0x5ae881+=_0x27d9e9['length'];}}return _0x39c7f3;}(_0x5df9df,_0x669506);_0x54ddc1['length']&&this['_model']['change'](()=>{for(const _0x2a10c7 of _0x54ddc1){const _0x4fcb6c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5e28dd,'accept');this['forceDefaultExecution'](()=>_0x4fcb6c([_0x2a10c7],_0x3f5b67,_0x58ce08));}});for(const _0x412969 of _0x25bd70){let _0x10c17e=null,_0x120636=_0x412969['start'],_0x3a323b=_0x412969['end'];for(const {suggestion:_0x474eff,meta:_0x13fbea}of this['_findSuggestions'](_0x412969,'formatInline')){if(!_0x13fbea['isOwn'])continue;if(_0x474eff['subType']!=_0x5e28dd)continue;if(!Lt(_0x474eff,_0x58ce08))continue;const _0x1292a3=_0x474eff['getFirstRange']();if(_0x1292a3['containsRange'](_0x412969,!0x0))return null;_0x120636=_0x120636['isBefore'](_0x1292a3['start'])?_0x120636:_0x1292a3['start'],_0x3a323b=_0x3a323b['isAfter'](_0x1292a3['end'])?_0x3a323b:_0x1292a3['end'],_0x10c17e?_0x1292a3['start']['isBefore'](_0x10c17e['getFirstRange']()['start'])?(_0x10c17e['removeMarkers'](),_0x10c17e=_0x474eff):_0x474eff['removeMarkers']():_0x10c17e=_0x474eff;}const _0x3dbe8f=this['_model']['createRange'](_0x120636,_0x3a323b);if(_0x10c17e)this['_setSuggestionRange'](_0x10c17e,_0x3dbe8f);else{const _0x12a87a=_0x5ed2a0(),_0x8163b=_0x248169['id'];this['_setSuggestionData']({'id':_0x12a87a,'type':'formatInline:'+_0x5e28dd,'data':_0x3f5b67,'createdAt':new Date(),'authorId':_0x8163b,'attributes':_0x58ce08}),this['_addSuggestionMarker']('formatInline:'+_0x5e28dd,_0x12a87a,_0x8163b,_0x3dbe8f);}}return null;}['markBlockFormat'](_0x1d181b,_0x45d1fe,_0x1bb0f5=[],_0x3a6997=null,_0x3c5700={}){_0x45d1fe['formatGroupId']||(_0x45d1fe['formatGroupId']=_0x45d1fe['commandName']),_0x45d1fe['multipleBlocks']=_0x1d181b['is']('range'),_0x3a6997=_0x3a6997||Vt(_0x45d1fe);const _0x1685f9=_0x1bb0f5['map'](_0xbd7663=>Gt(_0xbd7663,this['_model'])),_0x18dcb3=_0x1d181b['is']('range')?_0x1d181b:Gt(_0x1d181b,this['_model']);if('never'===this['_trackFormatChanges']){const _0x3d2914=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3a6997,'accept');return this['forceDefaultExecution'](()=>_0x3d2914([_0x18dcb3],_0x45d1fe,_0x3c5700)),null;}_0x1685f9['push'](_0x18dcb3);let _0x245e21=!0x0;for(const _0x37b4c2 of _0x1685f9)if(!this['_rangeIsInLocalUserInsertion'](_0x37b4c2)){_0x245e21=!0x1;break;}if(_0x245e21&&'always'!==this['_trackFormatChanges']){const _0x47f006=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3a6997,'accept');return this['forceDefaultExecution'](()=>_0x47f006([_0x18dcb3],_0x45d1fe,_0x3c5700)),null;}let _0x177f37=null,_0x328f37=_0x18dcb3['start'],_0x12ec23=_0x18dcb3['end'];for(const {suggestion:_0x4217b,meta:_0x205bb9}of this['_findSuggestions'](_0x18dcb3,'formatBlock')){if(!_0x205bb9['isOwn'])continue;if(_0x205bb9['isNextTo']||_0x205bb9['containsRangeInObject']||_0x205bb9['isInsideObject'])continue;if(_0x4217b['data']['formatGroupId']!=_0x45d1fe['formatGroupId'])continue;if(!Lt(_0x4217b,_0x3c5700))continue;const _0x97b266=_0x4217b['getFirstRange']();if(_0x4217b['subType']==_0x3a6997){if(_0x97b266['containsRange'](_0x18dcb3,!0x0))return null;_0x328f37=_0x328f37['isBefore'](_0x97b266['start'])?_0x328f37:_0x97b266['start'],_0x12ec23=_0x12ec23['isAfter'](_0x97b266['end'])?_0x12ec23:_0x97b266['end'],_0x177f37?_0x97b266['start']['isBefore'](_0x177f37['getFirstRange']()['start'])?(_0x177f37['removeMarkers'](),_0x177f37=_0x4217b):_0x4217b['removeMarkers']():_0x177f37=_0x4217b;}else{const _0x2281a6=_0x18dcb3['getIntersection'](_0x97b266);this['_cutOutSuggestionMarker'](_0x4217b,_0x2281a6);}}const _0x652f5a=this['editor']['plugins']['get']('Users')['me'],_0x4c298a=_0x5ed2a0(),_0x434ed3=_0x652f5a['id'];if(_0x177f37)return this['_setSuggestionRange'](_0x177f37,this['_model']['createRange'](_0x328f37,_0x12ec23)),_0x177f37;{const _0xeb4838=this['_setSuggestionData']({'id':_0x4c298a,'type':'formatBlock:'+_0x3a6997,'data':_0x45d1fe,'createdAt':new Date(),'authorId':_0x434ed3,'attributes':_0x3c5700});return this['_addSuggestionMarker']('formatBlock:'+_0x3a6997,_0x4c298a,_0x434ed3,this['_model']['createRange'](_0x328f37,_0x12ec23)),_0xeb4838;}}['markMultiRangeBlockFormat'](_0x2dc643,_0x1a6028,_0x2acc3d=[],_0x309fcb=null,_0x2a1282={}){_0x1a6028['formatGroupId']||(_0x1a6028['formatGroupId']=_0x1a6028['commandName']);const _0x137564=_0x2dc643[0x0];_0x1a6028['multipleBlocks']=_0x137564['is']('range'),_0x309fcb=_0x309fcb||Vt(_0x1a6028);const _0x1ff185=_0x2acc3d['map'](_0x4da8f1=>Gt(_0x4da8f1,this['_model'])),_0x4564e7=_0x137564['is']('range')?_0x2dc643:_0x2dc643['map'](_0x23ac6f=>Gt(_0x23ac6f,this['_model']));if('never'===this['_trackFormatChanges']){const _0x291c72=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x309fcb,'accept');return this['forceDefaultExecution'](()=>_0x291c72(_0x4564e7,_0x1a6028,_0x2a1282)),null;}_0x1ff185['push'](..._0x4564e7);let _0x4c5fc4=!0x0;for(const _0x3b224f of _0x1ff185)if(!this['_rangeIsInLocalUserInsertion'](_0x3b224f)){_0x4c5fc4=!0x1;break;}if(_0x4c5fc4&&'always'!==this['_trackFormatChanges']){const _0x2ba1f8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x309fcb,'accept');return this['forceDefaultExecution'](()=>_0x2ba1f8(_0x4564e7,_0x1a6028,_0x2a1282)),null;}const _0xbc4dbc=this['editor']['plugins']['get']('Users')['me'];for(const _0x30a748 of this['getSuggestions']()){if(_0x30a748['author']['id']!=_0xbc4dbc['id'])continue;if('formatBlock'!=_0x30a748['type']||_0x30a748['data']['formatGroupId']!=_0x1a6028['formatGroupId'])continue;if(!Lt(_0x30a748,_0x2a1282))continue;const _0x22b735=_0x30a748['subType']==_0x309fcb;for(let _0x1168c1=0x0;_0x1168c1<_0x4564e7['length'];_0x1168c1++){const _0x233edc=_0x4564e7[_0x1168c1];for(const _0x27295e of _0x30a748['getMarkers']()){const _0x3de7e1=_0x27295e['getRange']();if(_0x233edc['isEqual'](_0x3de7e1)){_0x22b735?(_0x4564e7['splice'](_0x1168c1,0x1),_0x1168c1--):_0x30a748['removeMarker'](_0x27295e['name']);break;}}}}if(0x0==_0x4564e7['length'])return null;const _0x4dbb83=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x309fcb,'join');for(const _0x860542 of this['getSuggestions']())if(_0x860542['author']['id']==_0xbc4dbc['id']&&'formatBlock'==_0x860542['type']&&_0x860542['data']['formatGroupId']==_0x1a6028['formatGroupId']&&_0x860542['subType']==_0x309fcb&&Lt(_0x860542,_0x2a1282)&&(_0x4dbb83(_0x860542['getRanges'](),_0x4564e7)||_0x4dbb83(_0x4564e7,_0x860542['getRanges']()))){for(const _0x3e846f of _0x4564e7)_0x860542['addRange'](_0x3e846f);return _0x860542;}const _0xd31f4a=_0x5ed2a0(),_0x4be06e=_0xbc4dbc['id'],_0x266ed1='formatBlock:'+_0x309fcb,_0x402907=this['_setSuggestionData']({'id':_0xd31f4a,'type':_0x266ed1,'data':_0x1a6028,'createdAt':new Date(),'authorId':_0x4be06e,'attributes':_0x2a1282});for(const _0x1abd14 of _0x4564e7)this['_addSuggestionMarker'](_0x266ed1,_0xd31f4a,_0x4be06e,_0x1abd14,u['getMultiRangeId']());return _0x402907;}['markDeletion'](_0x1e5fe0,_0x57b27b=null,_0x211a5b={}){if(_0x1e5fe0['isCollapsed'])return null;const _0xcf863c=this['editor']['plugins']['get']('Users')['me'],_0x2ddf56=new _0xe90ba7(_0x1e5fe0['start'],_0x1e5fe0['end']);for(const {suggestion:_0x19314e,meta:_0x196b72}of this['_findSuggestions'](_0x2ddf56,'insertion'))if(_0x196b72['isOwn']&&!_0x196b72['isNextTo']){if(_0x19314e['isMultiRange']){const _0x466b6b=_0x19314e['getRanges']()['filter'](_0x415976=>'$graveyard'!=_0x415976['root']['rootName']);_0x466b6b['every'](_0x24d56d=>_0x2ddf56['containsRange'](_0x24d56d,!0x0))&&_0x19314e['discard']();if(_0x466b6b['some'](_0x17e07d=>_0x17e07d['containsRange'](_0x2ddf56,!0x0))){const _0xd2ed37=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x57b27b,'accept');return this['forceDefaultExecution'](()=>_0xd2ed37([_0x2ddf56],null,_0x211a5b)),null;}}else{const _0x171ac9=_0x2ddf56['getIntersection'](_0x19314e['getFirstRange']());null!==_0x171ac9&&_0x19314e['_onDiscard']([_0x171ac9],null,_0x211a5b);}}if(_0x2ddf56['detach'](),_0x2ddf56['isCollapsed']||'$graveyard'==_0x2ddf56['root']['rootName'])return null;let _0x1368a4=null,_0x5edddb=_0x2ddf56['start'],_0x393366=_0x2ddf56['end'];const _0x85e8b4=this['_findSuggestions'](_0x2ddf56,'deletion');for(const {suggestion:_0x58ed0a,meta:_0x4b4dcf}of _0x85e8b4){const _0x87672f=this['_model']['createRange'](_0x5edddb,_0x393366);if(_0x4b4dcf['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4b4dcf['containsRangeInObject']&&!_0x4b4dcf['isInsideObject'])){if(_0x58ed0a['isMultiRange']){if(!Lt(_0x58ed0a,_0x211a5b))continue;let _0x266c20=!0x0;for(const _0x1c3669 of _0x58ed0a['getRanges']()){if(_0x1c3669['containsRange'](_0x87672f,!0x0))return _0x58ed0a;_0x87672f['containsRange'](_0x1c3669)||(_0x266c20=!0x1);}_0x266c20&&_0x58ed0a['discard']();}else{const _0x472cf6=_0x58ed0a['getFirstRange']();if(_0x472cf6['containsRange'](_0x87672f,!0x0))return _0x58ed0a;if(!Lt(_0x58ed0a,_0x211a5b)){_0x87672f['containsRange'](_0x472cf6)?_0x58ed0a['removeMarkers']():_0x472cf6['containsPosition'](_0x5edddb)?_0x5edddb=_0x472cf6['end']:_0x472cf6['containsPosition'](_0x393366)&&(_0x393366=_0x472cf6['start']);continue;}_0x5edddb=_0x5edddb['isBefore'](_0x472cf6['start'])?_0x5edddb:_0x472cf6['start'],_0x393366=_0x393366['isAfter'](_0x472cf6['end'])?_0x393366:_0x472cf6['end'],_0x211a5b=Object['assign']({},_0x58ed0a['attributes']),_0x1368a4?_0x472cf6['start']['isBefore'](_0x1368a4['getFirstRange']()['start'])?(_0x1368a4['removeMarkers'](),_0x1368a4=_0x58ed0a):_0x58ed0a['removeMarkers']():_0x1368a4=_0x58ed0a;}}}if(_0x1368a4)return this['_setSuggestionRange'](_0x1368a4,this['_model']['createRange'](_0x5edddb,_0x393366)),_0x1368a4;{const _0x4b3c59=_0x5ed2a0(),_0x5d1faa=this['_model']['createRange'](_0x5edddb,_0x393366),_0x53b0b2=_0xcf863c['id'],_0x4b134f=_0x57b27b?'deletion:'+_0x57b27b:'deletion',_0x52ec5d=this['_setSuggestionData']({'id':_0x4b3c59,'type':_0x4b134f,'createdAt':new Date(),'authorId':_0x53b0b2,'attributes':_0x211a5b});return this['_addSuggestionMarker'](_0x4b134f,_0x4b3c59,_0x53b0b2,_0x5d1faa),_0x52ec5d;}}['markMultiRangeDeletion'](_0x4faa14,_0x25f81c='multi',_0x34c680={}){const _0xe0cade=this['editor']['plugins']['get']('Users')['me'],_0x5186b4=_0x4faa14['map'](_0x3fecbd=>new _0xe90ba7(_0x3fecbd['start'],_0x3fecbd['end'])),_0xa63b14=new Set();for(const {suggestion:_0x2e67c6,meta:_0x4673ff}of this['_findSuggestions'](_0x5186b4,'insertion'))_0x4673ff['isOwn']&&!_0x4673ff['isNextTo']&&_0xa63b14['add'](_0x2e67c6);for(const _0x499bce of _0xa63b14)if(_0x499bce['isMultiRange']){const _0x5ad8be=_0x499bce['getRanges']();(!_0x499bce['attributes']||!_0x499bce['attributes']['skipNestingCheck'])&&(_0x5ad8be['every'](_0x3f313e=>_0x5186b4['some'](_0x5665c3=>_0x5665c3['containsRange'](_0x3f313e,!0x0)))&&_0x499bce['discard']());if(_0x5186b4['every'](_0x495421=>_0x5ad8be['some'](_0x43ef26=>_0x43ef26['containsRange'](_0x495421,!0x0)))){const _0x364591=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x25f81c,'accept');return this['forceDefaultExecution'](()=>_0x364591(_0x4faa14,null,_0x34c680)),null;}}else{const _0x1befd4=_0x499bce['getFirstRange']();_0x5186b4['some'](_0x6a2478=>_0x6a2478['containsRange'](_0x1befd4,!0x0))&&_0x499bce['discard']();if(_0x5186b4['every'](_0x541be0=>_0x1befd4['containsRange'](_0x541be0,!0x0))){const _0x18ee6a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x25f81c,'accept');return this['forceDefaultExecution'](()=>_0x18ee6a(_0x5186b4,null,_0x34c680)),null;}}const _0x55e4d9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x25f81c,'join');let _0x251cec=null;for(const _0x109fd6 of this['getSuggestions']())if(_0x109fd6['author']['id']==_0xe0cade['id']&&_0x109fd6['isInContent']&&'deletion'==_0x109fd6['type']&&_0x109fd6['subType']==_0x25f81c&&Lt(_0x109fd6,_0x34c680)&&(_0x55e4d9(_0x109fd6['getRanges'](),_0x5186b4)||_0x55e4d9(_0x5186b4,_0x109fd6['getRanges']()))){if(_0x251cec){if(_0x109fd6['commentThread']&&_0x109fd6['commentThread']['length'])continue;for(const _0x450f5c of _0x109fd6['getRanges']())_0x251cec['isIntersectingWithRange'](_0x450f5c)||_0x251cec['addRange'](_0x450f5c);_0x109fd6['removeMarkers']();}else{_0x251cec=_0x109fd6;for(const _0x4021ce of _0x5186b4)_0x109fd6['isIntersectingWithRange'](_0x4021ce)||_0x109fd6['addRange'](_0x4021ce);}}if(_0x251cec)return _0x251cec;_0xa63b14['clear']();for(const {suggestion:_0x115317,meta:_0x1f1376}of this['_findSuggestions'](_0x5186b4,'deletion'))_0x1f1376['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1f1376['containsRangeInObject']&&!_0x1f1376['isInsideObject'])&&Lt(_0x115317,_0x34c680)&&_0xa63b14['add'](_0x115317);for(const _0x56870c of _0xa63b14){const _0x546ab6=_0x56870c['getRanges']();if(!_0x34c680||!_0x34c680['skipNestingCheck']){if(_0x5186b4['every'](_0x288bea=>_0x546ab6['some'](_0xfe9b4d=>_0xfe9b4d['containsRange'](_0x288bea,!0x0))))return _0x56870c;}(!_0x56870c['attributes']||!_0x56870c['attributes']['skipNestingCheck'])&&(_0x546ab6['every'](_0x38f95b=>_0x5186b4['some'](_0x540da0=>_0x540da0['containsRange'](_0x38f95b,!0x0)))&&_0x56870c['discard']());}const _0x7783c3=_0x5ed2a0(),_0x2c037c=_0xe0cade['id'],_0x546fab='deletion:'+_0x25f81c,_0x1e6476=this['_setSuggestionData']({'id':_0x7783c3,'type':_0x546fab,'createdAt':new Date(),'authorId':_0x2c037c,'attributes':_0x34c680});for(const _0x3ee4e8 of _0x5186b4)_0x3ee4e8['detach'](),_0x3ee4e8['isCollapsed']||'$graveyard'==_0x3ee4e8['root']['rootName']||this['_addSuggestionMarker'](_0x546fab,_0x7783c3,_0x2c037c,_0x3ee4e8,u['getMultiRangeId']());return _0x1e6476;}['markAttributeChange'](_0x19d0a7,_0xda8f94,_0x473869,_0x5d114,_0x20e3f5){if(_0x19d0a7['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2237c2=this['editor']['plugins']['get']('Users')['me']['id'],_0x4e3ba5=Array['from'](this['_suggestions']['values']())['filter'](_0x13886a=>'attribute'==_0x13886a['type']&&_0x13886a['data']['key']==_0xda8f94&&_0x13886a['isIntersectingWithRange'](_0x19d0a7));if('default'===this['_trackFormatChanges']){const _0x3168be=this['_findSuggestions'](_0x19d0a7,'insertion')['filter'](({meta:_0xf8323c})=>_0xf8323c['isOwn']&&!_0xf8323c['isInsideObject']&&!_0xf8323c['isNextTo'])['map'](({suggestion:_0x214ae6})=>_0x214ae6);_0x4e3ba5['unshift'](..._0x3168be);}const _0x3694cc=new Map([[_0x19d0a7,_0x473869]]);for(const _0x3135fa of _0x4e3ba5){const _0x4a7ce3='attribute'==_0x3135fa['type']?_0x3135fa['data']['oldValue']:void 0x0,_0x495cd1=_0x3135fa['getFirstRange'](),_0x59e8c5=Array['from'](_0x3694cc['keys']())['find'](_0x7643e2=>_0x7643e2['isIntersecting'](_0x495cd1));if(!_0x59e8c5)continue;const _0x219d0e=_0x59e8c5['getDifference'](_0x495cd1);this['_isBlockAttribute'](_0xda8f94)&&'insertion'==_0x3135fa['type']&&0x0!=_0x219d0e['length']||(_0x3694cc['delete'](_0x59e8c5),_0x219d0e['forEach'](_0x5b8959=>{_0x3694cc['set'](_0x5b8959,_0x473869);}),'insertion'!=_0x3135fa['type']&&_0x4a7ce3!=_0x5d114&&_0x3694cc['set'](_0x59e8c5['getIntersection'](_0x495cd1),_0x4a7ce3));}const _0x14b0d3=[];for(const [_0x349f79,_0x269ab2]of _0x3694cc){const _0x313d84=_0x5ed2a0(),_0x578a4d={'key':_0xda8f94,'oldValue':_0x269ab2,'newValue':_0x5d114};_0xda8f94['length']>0x25&&console['warn']('Creating\x20a\x20suggestion\x20for\x20attribute\x20with\x20too\x20long\x20attribute\x20key.\x20This\x20may\x20lead\x20to\x20errors.\x20Change\x20the\x20attribute\x20key\x20to\x20a\x20value\x20shorter\x20than\x2037\x20characters.',{'key':_0xda8f94});const _0x5db289=('attribute:'+(_0xda8f94+'|'+Vt({'newValue':_0x5d114})))['substring'](0x0,0x3c),_0x1d6524=this['_setSuggestionData']({'id':_0x313d84,'type':_0x5db289,'data':_0x578a4d,'createdAt':new Date(),'authorId':_0x2237c2,'attributes':_0x20e3f5});_0x14b0d3['push'](_0x1d6524),this['_addSuggestionMarker'](_0x5db289,_0x313d84,_0x2237c2,_0x349f79);}return _0x14b0d3;}['enableDefaultAttributesIntegration'](_0x1a0346){this['enableCommand'](_0x1a0346,(_0x470635,..._0x31ff6b)=>{this['_recordAttributeChanges'](()=>{_0x470635(..._0x31ff6b);});});}['registerBlockAttribute'](_0x1b5cfd){this['_blockAttributeKeys']['add'](_0x1b5cfd);}['registerInlineAttribute'](_0x2adee3){this['_inlineAttributeKeys']['add'](_0x2adee3);}['_getAttributeKey'](_0x2c9f96){return'attribute'==_0x2c9f96['type']?_0x2c9f96['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x56e76f,_0x368331){const _0x5aebae=_0x56e76f['getFirstMarker']();this['_model']['change'](_0x2e2241=>{_0x2e2241['updateMarker'](_0x5aebae,{'range':_0x368331});});}['_addThreadToSuggestion'](_0x2a6948){const _0x5e9e33=_0x2a6948['id'],_0x4bbcfe=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5e9e33)||this['_commentsRepository']['addCommentThread']({'channelId':_0x4bbcfe,'threadId':_0x5e9e33,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x141851=this['_commentsRepository']['getCommentThread'](_0x5e9e33);_0x141851['unbind']('isRemovable'),_0x141851['isRemovable']=!0x1,_0x2a6948['commentThread']=_0x141851;}['_checkSuggestionCorrectness'](_0xe15fa2,_0x7ef263,_0x1098a8,_0x472ebb){if(_0xe15fa2['type']!=_0x7ef263||_0xe15fa2['subType']!=_0x1098a8||_0xe15fa2['creator']['id']!=_0x472ebb)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x274ec5('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x534c31,_0x5cea04){const _0x55bc31=_0x534c31['getFirstRange']();if(_0x5cea04['isEqual'](_0x55bc31))_0x534c31['removeMarkers']();else{if(_0x55bc31['containsRange'](_0x5cea04)){const _0x5439ef=this['_model']['createPositionAt'](_0x5cea04['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x534c31,this['_model']['createRange'](_0x55bc31['start'],_0x5439ef));const _0x56306d=_0x5ed2a0(),_0x508d97=_0x534c31['creator']['id'],_0x4f6d64=_0x534c31['type']+':'+_0x534c31['subType'];this['_setSuggestionData']({'id':_0x56306d,'type':_0x4f6d64,'createdAt':new Date(),'authorId':_0x508d97,'data':_0x534c31['data'],'attributes':_0x534c31['attributes']});const _0x166b3c=this['_model']['createPositionAt'](_0x5cea04['end']['parent'],'after'),_0x8e62d2=this['_model']['createRange'](_0x166b3c,_0x55bc31['end']);this['_addSuggestionMarker'](_0x4f6d64,_0x56306d,_0x508d97,_0x8e62d2);}else{if(_0x55bc31['containsPosition'](_0x5cea04['start'])){const _0x253c4c=this['_model']['createPositionAt'](_0x5cea04['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x534c31,this['_model']['createRange'](_0x55bc31['start'],_0x253c4c));}else{const _0x12da94=this['_model']['createPositionAt'](_0x5cea04['end']['parent'],'after');this['_setSuggestionRange'](_0x534c31,this['_model']['createRange'](_0x12da94,_0x55bc31['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x410a77){for(const {suggestion:_0x277eb3,meta:_0x463682}of this['_findSuggestions'](_0x410a77,'insertion')){if(!_0x463682['isOwn'])continue;const _0x4629e3=_0x277eb3['getRanges']();for(const _0x198b07 of _0x4629e3)if(!_0x410a77['getDifference'](_0x198b07)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4b8fa6){const _0x44f8b0=this['editor']['plugins']['get']('Users')['getUser'](_0x4b8fa6);if(!_0x44f8b0)throw new _0x274ec5('track-changes-user-not-found',this);return _0x44f8b0;}['_getExternalAuthor'](_0x31a50c){const _0x24dd94=this['editor']['plugins']['get']('Users'),_0x739811=_0x478958('external:'+_0x31a50c),_0x4bb625=_0x24dd94['getUser'](_0x739811);return _0x4bb625||_0x24dd94['addUser']({'id':_0x739811,'name':_0x31a50c});}['_createSuggestion'](_0x1da901,_0x338120,_0x13eb0c,_0x49c2ab,_0x566d36){const _0x109b0c=this['_getAuthorFromId'](_0x49c2ab),_0xa5810f=this['_suggestionFactory']['buildSuggestion'](_0x1da901,_0x338120,_0x13eb0c,_0x109b0c,_0x566d36,_0xebfe05=>{this['_updateSuggestionData'](_0x13eb0c,{'attributes':_0xebfe05});const _0x42459c=this['getSuggestion'](_0x13eb0c);this['_joinWithAdjacentSuggestions'](new Set([_0x42459c])),this['_refreshSuggestionsChain'](new Set([_0x42459c]));});return this['listenTo'](_0xa5810f,'accept',()=>{this['_updateSuggestionData'](_0x13eb0c,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xa5810f,'discard',()=>{this['_updateSuggestionData'](_0x13eb0c,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x13eb0c,_0xa5810f),this['_suggestionState']['set'](_0xa5810f,'notReady'),_0xa5810f;}['_splitMarkerName'](_0x2763f4){const _0x486df1=_0x2763f4['split'](':');return{'group':_0x486df1[0x0],'type':_0x486df1[0x1],'subType':_0x486df1['length']>=0x5?_0x486df1[0x2]:null,'id':_0x486df1['length']<0x5?_0x486df1[0x2]:_0x486df1[0x3],'authorId':_0x486df1['length']<0x5?_0x486df1[0x3]:_0x486df1[0x4],'markerCount':0x6==_0x486df1['length']?_0x486df1[0x5]:null};}['_breakSuggestionMarker'](_0x33ac97,_0x72ef97,_0x80a398){const _0x97c079=_0x33ac97['getFirstRange'](),_0x5301c3=_0x97c079['start'],_0x4704a0=_0x97c079['end'];this['_setSuggestionRange'](_0x33ac97,this['_model']['createRange'](_0x5301c3,_0x72ef97));const _0x1ccf1d=_0x5ed2a0(),_0x4fec17=_0x33ac97['creator']['id'],_0x30901e=_0x33ac97['type']+(_0x33ac97['subType']?':'+_0x33ac97['subType']:'');this['_setSuggestionData']({'id':_0x1ccf1d,'type':_0x30901e,'createdAt':new Date(),'authorId':_0x4fec17,'originalSuggestionId':_0x33ac97['id'],'attributes':_0x33ac97['attributes'],'data':_0x33ac97['data']});const _0x3a731f=this['_getAttributeKey'](_0x33ac97);('formatBlock'==_0x33ac97['type']||_0x3a731f&&this['_isBlockAttribute'](_0x3a731f))&&(_0x80a398=this['_model']['createPositionBefore'](_0x80a398['parent'])),this['_addSuggestionMarker'](_0x30901e,_0x1ccf1d,_0x4fec17,this['_model']['createRange'](_0x80a398,_0x4704a0));}['_findSuggestions'](_0x8f837e,_0x7d4b2a=null){const _0xbe0723=[],_0x4fefbb=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x8f837e)||(_0x8f837e=[_0x8f837e]);for(const _0x34a307 of this['getSuggestions']()){if(!_0x34a307['isInContent'])continue;if(_0x7d4b2a&&_0x34a307['type']!=_0x7d4b2a)continue;let _0xdb3a77=!0x1;for(const _0x3f0ff5 of _0x34a307['getRanges']()){for(const _0x416346 of _0x8f837e){const _0xf5675c=_0x416346['start']['isEqual'](_0x3f0ff5['end'])||_0x416346['end']['isEqual'](_0x3f0ff5['start']);if(_0xf5675c||_0x416346['getIntersection'](_0x3f0ff5)){const _0x370dc6=_0x416346['containsRange'](_0x3f0ff5)&&Rt(this['_model']['schema'],_0x3f0ff5['start'],_0x416346),_0x16da92=_0x3f0ff5['containsRange'](_0x416346)&&Rt(this['_model']['schema'],_0x416346['start'],_0x3f0ff5);_0xbe0723['push']({'suggestion':_0x34a307,'meta':{'isOwn':_0x4fefbb==_0x34a307['author'],'isNextTo':_0xf5675c,'isInsideObject':_0x370dc6,'containsRangeInObject':_0x16da92}}),_0xdb3a77=!0x0;break;}}if(_0xdb3a77)break;}}return _0xbe0723;}['_addSuggestionMarker'](_0x1a0844,_0x27de87,_0x3e3b92,_0x2e9f72,_0x3d0b0d){this['_model']['change'](_0x7e8e63=>{let _0x9b3248='suggestion:'+_0x1a0844+':'+_0x27de87+':'+_0x3e3b92;_0x3d0b0d&&(_0x9b3248=_0x9b3248+':'+_0x3d0b0d),_0x7e8e63['addMarker'](_0x9b3248,{'range':_0x2e9f72,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x335070){const _0x464b91=_0x335070['previous'],_0x4ffe91=_0x335070['next'];_0x335070['previous']=null,_0x335070['next']=null,null!=_0x464b91&&_0x464b91['next']==_0x335070&&(_0x464b91['next']=_0x4ffe91),null!=_0x4ffe91&&_0x4ffe91['previous']==_0x335070&&(_0x4ffe91['previous']=_0x464b91),'ready'==this['_suggestionState']['get'](_0x335070)&&(this['_suggestionState']['set'](_0x335070,'removed'),this['fire']('suggestionUnloaded',_0x335070,_0x464b91,_0x4ffe91));}['_setSuggestionData'](_0x289b7a){const _0x458edc=_0x289b7a['id'],_0x4737dc=this['addSuggestionData'](_0x289b7a);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0xd31575=this['editor']['plugins']['get']('PendingActions'),_0x3256a0=_0x4737dc['hasComments'],_0x331bf1=_0x4737dc['subType']?_0x4737dc['type']+':'+_0x4737dc['subType']:_0x4737dc['type'],_0x184b5d=this['editor']['locale'],_0x51f580=_0xd31575['add'](o(_0x184b5d,'PENDING_ACTION_SUGGESTION')),_0x1c1c63={'id':_0x458edc,'type':_0x331bf1,'hasComments':_0x3256a0,'data':_0x289b7a['data']||null,'originalSuggestionId':_0x289b7a['originalSuggestionId']||null,'attributes':_0x4737dc['attributes']};this['_adapter']['addSuggestion'](_0x1c1c63)['then'](_0x4b95eb=>{_0x4737dc['_saved']=!0x0,_0xd31575['remove'](_0x51f580),_0x4b95eb&&_0x4b95eb['createdAt']&&(this['_suggestions']['get'](_0x458edc)['createdAt']=_0x4b95eb['createdAt']);})['catch'](_0x1b0607=>{throw _0x54a9b3('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4737dc['discard']();}),_0x4737dc['stopListening'](),this['_suggestions']['delete'](_0x4737dc['id']),this['_suggestionState']['delete'](_0x4737dc),_0x1b0607;});}return _0x4737dc;}['_isBlockAttribute'](_0x4bd8c7){return this['_blockAttributeKeys']['has'](_0x4bd8c7);}['_updateSuggestionData'](_0x59e6b3,_0x5110db){const _0x2f81b6=this['editor']['plugins']['get']('PendingActions'),_0x69e359=this['getSuggestion'](_0x59e6b3);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x69e359['_saved']){const _0x437121=_0x2f81b6['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x59e6b3,_0x5110db)['then'](()=>{_0x2f81b6['remove'](_0x437121);});}else _0x69e359['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x59e6b3,_0x5110db);});}}['_getSuggestionData'](_0x47b76c){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x274ec5('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x47b76c);}['_handleNewSuggestionMarker'](_0xb8c0d0){const {id:_0x486773,type:_0x574c5c,subType:_0x485e7f,authorId:_0x53cff2}=this['_splitMarkerName'](_0xb8c0d0),_0x32a5fd=this['_suggestions']['get'](_0x486773)||this['_createSuggestion'](_0x574c5c,_0x485e7f,_0x486773,_0x53cff2,{});switch(this['_checkSuggestionCorrectness'](_0x32a5fd,_0x574c5c,_0x485e7f,_0x53cff2),this['_suggestionState']['get'](_0x32a5fd)){case'notReady':this['_getSuggestionData'](_0x486773)['then'](_0x2068bd=>{let _0x42d9f8=Promise['resolve']();_0x2068bd['hasComments']&&(_0x42d9f8=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x486773})),_0x42d9f8['then'](()=>{this['addSuggestionData'](_0x2068bd)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x32a5fd,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x486773,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x32a5fd,'ready'),this['fire']('suggestionLoaded',_0x32a5fd);break;case'ready':this['fire']('suggestionChanged',_0x32a5fd);}return _0x32a5fd['addMarkerName'](_0xb8c0d0),_0x32a5fd;}['_refreshSuggestionsChain'](_0x85a39d){const _0x10b722=Array['from'](_0x85a39d),_0x95d6f3=_0x10b722['filter'](_0x3fdb7e=>'attribute'==_0x3fdb7e['type']);this['_refreshAttributeSuggestionsChain'](_0x95d6f3);const _0x49756c=_0x10b722['filter'](_0x3038bd=>!_0x3038bd['isMultiRange']&&'attribute'!=_0x3038bd['type']),_0x56d3c0=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3acd95=>!_0x3acd95['isMultiRange']&&'attribute'!=_0x3acd95['type']),_0x54c8af=_0x56d3c0['filter'](_0xd9beda=>!_0x85a39d['has'](_0xd9beda)),_0xb91924=new Map(_0x56d3c0['map'](_0x532b41=>[_0x532b41,this['_suggestionFactory']['getSuggestionCallback'](_0x532b41['type'],_0x532b41['subType'],'chain')])),_0x326b8d=new Map(_0x56d3c0['map'](_0x27e89d=>[_0x27e89d,_0x27e89d['getFirstRange']()])),_0x352f0b=new Set(),_0x4b44b8=new Set();for(let _0x46172d=0x0;_0x46172d<_0x49756c['length'];_0x46172d++)_0x4e62c5(_0x49756c[_0x46172d],_0x49756c,_0x46172d+0x1);for(let _0xd40057=0x0;_0xd40057<_0x49756c['length'];_0xd40057++)_0x4e62c5(_0x49756c[_0xd40057],_0x54c8af,0x0);const _0x285ad4=new Set();for(let _0x30681d=0x0;_0x30681d<_0x49756c['length'];_0x30681d++){const _0x44f324=_0x49756c[_0x30681d];!_0x4b44b8['has'](_0x44f324)&&_0x44f324['previous']&&(_0x285ad4['add'](_0x44f324['previous']),_0x44f324['previous']['next']===_0x44f324&&(_0x44f324['previous']['next']=null),_0x44f324['previous']=null),!_0x352f0b['has'](_0x44f324)&&_0x44f324['next']&&(_0x285ad4['add'](_0x44f324['next']),_0x44f324['next']['previous']===_0x44f324&&(_0x44f324['next']['previous']=null),_0x44f324['next']=null);}function _0x4e62c5(_0x18d1e8,_0x341d03,_0x40e591){for(let _0xedea03=_0x40e591;_0xedea03<_0x341d03['length'];_0xedea03++){const _0xb5ce05=_0x474242(_0x18d1e8,_0x341d03[_0xedea03]);_0xb5ce05&&(_0xb5ce05[0x0]['next']=_0xb5ce05[0x1],_0xb5ce05[0x1]['previous']=_0xb5ce05[0x0],_0x352f0b['add'](_0xb5ce05[0x0]),_0x4b44b8['add'](_0xb5ce05[0x1]));}}function _0x474242(_0x576b90,_0x45a762){if(_0x576b90['author']['id']!==_0x45a762['author']['id'])return null;const _0x2acc3c=_0xb91924['get'](_0x576b90)(_0x576b90,_0x45a762,_0x326b8d['get'](_0x576b90),_0x326b8d['get'](_0x45a762));if(!_0x2acc3c)return null;return _0xb91924['get'](_0x45a762)(_0x576b90,_0x45a762,_0x326b8d['get'](_0x576b90),_0x326b8d['get'](_0x45a762))?_0x2acc3c[0x1]['commentThread']&&_0x2acc3c[0x1]['commentThread']['length']?null:_0x2acc3c:null;}_0x285ad4['size']&&this['_refreshSuggestionsChain'](_0x285ad4);}['_refreshAttributeSuggestionsChain'](_0x44bea6){if(0x0==_0x44bea6['length'])return;const _0x30d3f3=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4f0660=>'attribute'==_0x4f0660['type']&&_0x4f0660['_isDataLoaded']),_0xcbb2e3=[],_0x182093=new Map();for(const _0x3592a1 of _0x30d3f3){const _0x20a4ab=_0x478958(_0x3592a1['attributes']);_0x182093['has'](_0x20a4ab)||(_0x182093['set'](_0x20a4ab,_0xcbb2e3['length']),_0xcbb2e3['push']([]));const _0x4b61aa=_0x182093['get'](_0x20a4ab);_0xcbb2e3[_0x4b61aa]['push'](_0x3592a1);}!(function(){_0xcbb2e3['sort']((_0x5068f4,_0x88bf5e)=>{const _0x21dd78=_0x5068f4[0x0]['createdAt'],_0x516885=_0x88bf5e[0x0]['createdAt'];return _0x21dd78==_0x516885?_0x5068f4[0x0]['attributes']['groupId']<_0x88bf5e[0x0]['attributes']['groupId']?-0x1:0x1:_0x21dd78<_0x516885?-0x1:0x1;});for(const _0x32e949 of _0xcbb2e3)_0x32e949['sort']((_0x2a6e48,_0x4daf24)=>_0x2a6e48['id']<_0x4daf24['id']?-0x1:0x1);}());for(let _0x4d5cac=0x0;_0x4d5cac<_0xcbb2e3['length'];_0x4d5cac++){if(0x0==_0xcbb2e3[_0x4d5cac]['length'])continue;const _0x2e0db2=[];for(let _0xc1946f=_0x4d5cac+0x1;_0xc1946f<_0xcbb2e3['length'];_0xc1946f++)0x0!=_0xcbb2e3[_0xc1946f]['length']&&_0xeaa73(_0xcbb2e3[_0x4d5cac],_0xcbb2e3[_0xc1946f])&&_0x2e0db2['push'](_0xc1946f);for(const _0x5b457a of _0x2e0db2)_0xcbb2e3[_0x4d5cac]=_0xcbb2e3[_0x4d5cac]['concat'](_0xcbb2e3[_0x5b457a]),_0xcbb2e3[_0x5b457a]=[];}for(const _0x3054ab of _0xcbb2e3)for(let _0x2d72ee=0x0;_0x2d72ee<_0x3054ab['length'];_0x2d72ee++)_0x3054ab[_0x2d72ee]['next']=_0x3054ab[_0x2d72ee+0x1]||null;for(const _0x286c1a of _0xcbb2e3)for(let _0x220410=0x0;_0x220410<_0x286c1a['length'];_0x220410++)_0x286c1a[_0x220410]['previous']=_0x286c1a[_0x220410-0x1]||null;function _0xeaa73(_0x116fd0,_0x642c79){if(_0x116fd0[0x0]['attributes']['groupId']!==_0x642c79[0x0]['attributes']['groupId']&&_0x116fd0[0x0]['author']!==_0x642c79[0x0]['author'])return!0x1;if(!function(_0x12766e,_0x456092){if(!_0x12766e['hasComments']&&!_0x456092['hasComments'])return!0x0;if(_0x12766e['hasComments']&&_0x456092['hasComments'])return!0x1;if(_0x12766e['hasComments']&&_0x456092['createdAt']<_0x12766e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x456092['hasComments']&&_0x12766e['createdAt']<_0x456092['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x116fd0[0x0],_0x642c79[0x0]))return!0x1;const _0x4d0300=Bt(_0x116fd0[0x0]['attributes'],'groupId'),_0x525030=Bt(_0x642c79[0x0]['attributes'],'groupId');if(!_0x7f9970(_0x4d0300,_0x525030))return!0x1;return!!_0x116fd0['every'](_0x3d2c22=>_0x642c79['some'](_0x80da6e=>_0x3d2c22['getFirstRange']()['isEqual'](_0x80da6e['getFirstRange']())))&&_0x642c79['every'](_0x1a1d6e=>_0x116fd0['some'](_0x52100d=>_0x1a1d6e['getFirstRange']()['isEqual'](_0x52100d['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xd22c92){const _0x26ea4d=Array['from'](_0xd22c92),_0x38ee69=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4a71ab=_0x38ee69['filter'](_0x52985b=>!_0xd22c92['has'](_0x52985b)),_0x3fbf6e=new Map(_0x26ea4d['map'](_0x1b6d98=>[_0x1b6d98,this['_suggestionFactory']['getSuggestionCallback'](_0x1b6d98['type'],_0x1b6d98['subType'],'join')])),_0x3779ab=new Map(_0x38ee69['map'](_0x5a89ce=>[_0x5a89ce,_0x5a89ce['getRanges']()]));for(let _0x448013=0x0;_0x448013<_0x26ea4d['length'];_0x448013++){if(_0x49563a(this,_0x26ea4d[_0x448013],_0x26ea4d,_0x448013+0x1))return!0x0;}for(let _0x24e135=0x0;_0x24e135<_0x26ea4d['length'];_0x24e135++){if(_0x49563a(this,_0x26ea4d[_0x24e135],_0x4a71ab,0x0))return!0x0;}return!0x1;function _0x49563a(_0x1ed6fb,_0x19b54f,_0x51e184,_0x2f95af){for(let _0x1fb51a=_0x2f95af;_0x1fb51a<_0x51e184['length'];_0x1fb51a++){const _0x12d002=_0x51e184[_0x1fb51a];if(_0x12d002['type']!==_0x19b54f['type']||_0x12d002['author']['id']!==_0x19b54f['author']['id']||_0x12d002['subType']!==_0x19b54f['subType'])continue;if(!Pt(_0x19b54f,_0x12d002,['groupId']))continue;if('attribute'==_0x19b54f['type']&&_0x19b54f['data']['oldValue']!=_0x12d002['data']['oldValue'])continue;if('attribute'==_0x19b54f['type']&&_0x1ed6fb['_isBlockAttribute'](_0x19b54f['data']['key']))continue;if('formatBlock'==_0x19b54f['type']){const _0x195e55=_0x1ed6fb['editor']['model'],_0xfe8326=_0x19b54f['getContainedElement']();if(_0xfe8326&&(_0x195e55['schema']['isObject'](_0xfe8326)||_0x195e55['schema']['isLimit'](_0xfe8326)))continue;}const _0x2c3635=_0x3fbf6e['get'](_0x19b54f),_0x45530d=_0x3779ab['get'](_0x19b54f),_0x2d394d=_0x3779ab['get'](_0x12d002),_0x3456ab=_0x19b54f['commentThread']&&_0x19b54f['commentThread']['length'],_0xf96e64=_0x12d002['commentThread']&&_0x12d002['commentThread']['length'];if(!_0x3456ab&&_0x2c3635(_0x2d394d,_0x45530d))return _0x1ed6fb['_joinSuggestions'](_0x12d002,_0x19b54f),_0x3779ab['delete'](_0x19b54f),!0x0;if(!_0xf96e64&&_0x2c3635(_0x45530d,_0x2d394d))return _0x1ed6fb['_joinSuggestions'](_0x19b54f,_0x12d002),_0x3779ab['delete'](_0x12d002),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2618c3,_0x1637f8){if(_0x2618c3['isMultiRange']){for(const _0x1c03f4 of _0x1637f8['getRanges']())_0x2618c3['addRange'](_0x1c03f4);}else{const _0x40297d=_0x1637f8['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2618c3,this['_model']['createRange'](_0x2618c3['getFirstRange']()['start'],_0x40297d));}_0x1637f8['removeMarkers']();}['_getMarkerAnnouncementText'](_0x427318,_0x1ed516){const _0x2b769a=_0x427318['startsWith']('format')||_0x427318['startsWith']('attribute')?'FORMATTING':_0x427318['toUpperCase']();return o(this['editor']['locale'],_0x1ed516+'_'+_0x2b769a+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x49cf09=this['editor'];if(!_0x49cf09['ui'])return;const {ariaLiveAnnouncer:_0x5c44c7}=_0x49cf09['ui'];_0x31dd0a(this['_model'],({left:_0x16ae5b,entered:_0x11b92b})=>{for(const _0x4c9899 of _0x16ae5b){const {group:_0x19ef80,type:_0x5b20e0}=this['_splitMarkerName'](_0x4c9899['name']);if('suggestion'===_0x19ef80){_0x5c44c7['announce'](this['_getMarkerAnnouncementText'](_0x5b20e0,'LEAVE'));break;}}for(const _0x4ec730 of _0x11b92b){const {group:_0x298fdd,type:_0x30471b}=this['_splitMarkerName'](_0x4ec730['name']);if('suggestion'===_0x298fdd){_0x5c44c7['announce'](this['_getMarkerAnnouncementText'](_0x30471b,'ENTER'));break;}}});}['_processAttributeChanges'](_0x1e6b6b){if(this['_recordAttributeSuggestions'])return!0x1;const _0x489200=this['editor'],_0x39df82=_0x489200['model']['document']['differ']['getChanges']();if(0x0==_0x39df82['length'])return!0x1;const _0x3b99fa=[],_0x5e16d7=_0x39df82['filter'](_0x522dbd=>'attribute'==_0x522dbd['type']),_0x41ad22=_0x39df82['filter'](_0x1aae45=>'insert'==_0x1aae45['type']&&'$text'!=_0x1aae45['name']),_0x623c4c=_0x39df82['filter'](_0x5ecc86=>'remove'==_0x5ecc86['type']&&'$text'!=_0x5ecc86['name']);for(const _0xf63a63 of _0x5e16d7)_0x3b99fa['push']({'key':_0xf63a63['attributeKey'],'newValue':_0xf63a63['attributeNewValue'],'oldValue':_0xf63a63['attributeOldValue'],'range':Ot(_0xf63a63['range'],_0x489200['model'])});for(const _0x173d85 of _0x41ad22){const _0x3ba83f=_0x623c4c['find'](_0x3ee7be=>_0x3ee7be['position']['isEqual'](_0x173d85['position']));_0x3ba83f&&_0x3b99fa['push']({'key':m,'newValue':_0x173d85['name'],'oldValue':_0x3ba83f['name'],'range':_0x489200['model']['createRangeOn'](_0x173d85['position']['nodeAfter'])});}return 0x0!=_0x3b99fa['length']&&this['_reduceExistingSuggestions'](_0x1e6b6b,_0x3b99fa);}['_processAttributeSuggestions'](_0x771c63){let _0x438116=!0x1;const _0x336ab3=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x473f7f=>_0x473f7f['data']['newRange']&&_0x473f7f['name']['startsWith']('suggestion:attribute:'));for(const _0x27b224 of _0x336ab3){const {subType:_0x283342,id:_0xff8188}=this['_splitMarkerName'](_0x27b224['name']),_0x157837=_0x283342['split']('|')[0x0];for(const _0x333570 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x333570['id']!=_0xff8188&&'attribute'==_0x333570['type']&&_0x333570['data']&&_0x333570['data']['key']==_0x157837&&_0x333570['getFirstRange']()['isIntersecting'](_0x27b224['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x333570,_0x27b224['data']['newRange'],_0x771c63),_0x438116=!0x0);}return _0x438116;}['_recordAttributeChanges'](_0x284213){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x284213();}['_isRegisteredAttribute'](_0x4d12ed){const _0x43fa84=this['_isBlockAttribute'](_0x4d12ed),_0x1d2ad2=this['_inlineAttributeKeys']['has'](_0x4d12ed);return _0x43fa84||_0x1d2ad2;}['_reduceExistingSuggestions'](_0x2c6d4f,_0x2517e5){if(0x0==_0x2517e5['length'])return!0x1;let _0x255644=!0x1;for(const _0x144c83 of _0x2517e5){const _0x319d58=this['_findSuggestions'](_0x144c83['range'],'attribute')['filter'](_0x592e19=>!_0x592e19['meta']['isNextTo'])['map'](_0x58ddf8=>_0x58ddf8['suggestion']),_0x2acf17=_0x478958({'newValue':_0x144c83['newValue']});_0x319d58['filter'](_0x2e8136=>{const [_0x4c11ab,_0x4d0114]=_0x2e8136['subType']['split']('|');return _0x4c11ab==_0x144c83['key']&&_0x4d0114!=_0x2acf17;})['forEach'](_0x23688e=>{this['_reduceSuggestionAttributeRange'](_0x23688e,_0x144c83['range'],_0x2c6d4f),_0x255644=!0x0;});}return _0x255644;}['_reduceSuggestionAttributeRange'](_0x25ac82,_0x33ee2f,_0x1b3501){const _0x4f936a=_0x25ac82['getFirstRange']()['getDifference'](_0x33ee2f);0x0!==_0x4f936a['length']?0x1!==_0x4f936a['length']?this['_breakSuggestionMarker'](_0x25ac82,_0x33ee2f['start'],_0x33ee2f['end']):this['_setSuggestionRange'](_0x25ac82,_0x4f936a[0x0]):_0x1b3501['removeMarker'](_0x25ac82['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x467e96){this['_editor']=_0x467e96,this['_model']=_0x467e96['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2403be,_0x1b2ce6,_0x4017f5,_0xefede4,_0xb5a904,_0x11ae04){return new u(this['_model'],{'type':_0x2403be,'subType':_0x1b2ce6,'id':_0x4017f5,'author':_0xefede4,'creator':_0xefede4,'attributes':_0xb5a904,'onAttributesChange':_0x11ae04,'onAccept':(..._0x4ccc74)=>this['getSuggestionCallback'](_0x2403be,_0x1b2ce6,'accept')(..._0x4ccc74),'onDiscard':(..._0x11e1b3)=>this['getSuggestionCallback'](_0x2403be,_0x1b2ce6,'discard')(..._0x11e1b3)});}['registerCustomCallback'](_0x34a086,_0x5893ad,_0x487ada,_0x322fc5){const _0x1d5dd6=_0x34a086+':'+_0x5893ad+':'+_0x487ada;this['_customCallbacks']['set'](_0x1d5dd6,_0x322fc5);}['getSuggestionCallback'](_0x27590a,_0x4e7267,_0x1b2cad){const _0x122112=_0x27590a+':'+_0x4e7267+':'+_0x1b2cad;return this['_customCallbacks']['get'](_0x122112)||this['_defaultCallbacks']['get'](_0x27590a+':'+_0x1b2cad);}['_registerDefaultCallbacks'](){const _0x5d1685=()=>!0x1,_0x5af012=_0x4ce496=>{_0x4ce496['sort']((_0x33b40a,_0x212fe8)=>_0x33b40a['start']['isBefore'](_0x212fe8['start'])?0x1:-0x1),this['_model']['change'](_0xbcbd90=>{for(const _0x71f8 of _0x4ce496){let _0x39d9a7;_0x39d9a7=_0x71f8['end']['isAtEnd']&&_0x71f8['end']['parent']==_0x71f8['start']['nodeAfter']?_0xbcbd90['createSelection'](_0x71f8['start']['nodeAfter'],'on'):_0xbcbd90['createSelection'](_0x71f8),this['_model']['deleteContent'](_0x39d9a7,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2f6dc1=(_0x3e76a8,_0x2ca5f5)=>{_0x2ca5f5&&this['_model']['change'](_0x41cb48=>{const {commandName:_0x414014,commandParams:_0x367795=[]}=_0x2ca5f5,_0x1acee3=_0x3e76a8['map'](_0x566756=>(Tt(_0x566756)&&(_0x566756=this['_model']['createRange'](_0x566756['end'])),_0x566756))['filter'](_0x5c8017=>'$graveyard'!==_0x5c8017['root']['rootName']);if(_0x1acee3['length']<0x1)return;const _0x603366=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5bdbfe=>_0xe90ba7['fromRange'](_0x5bdbfe));_0x41cb48['setSelection'](_0x1acee3);for(const _0x435fb5 of this['_editor']['commands']['commands']())_0x435fb5['refresh']();_0x367795['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x414014,..._0x367795);const _0x394c8b=_0x603366['filter'](_0x440917=>'$graveyard'!=_0x440917['root']['rootName']);_0x394c8b['length']>0x0&&_0x41cb48['setSelection'](_0x394c8b);for(const _0xf1835b of _0x603366)_0xf1835b['detach']();});},_0x2b055f=(_0x3e3bc7,_0x4f946a)=>0x1==_0x3e3bc7['length']&&0x1==_0x4f946a['length']&&_0x3e3bc7[0x0]['end']['isEqual'](_0x4f946a[0x0]['start']),_0x36f65a=(_0x4e6131,_0x23ec56,_0x7b12c3,_0x197eb8)=>Ft(_0x4e6131,_0x23ec56,_0x7b12c3,_0x197eb8,this['_model'])?[_0x4e6131,_0x23ec56]:Ft(_0x23ec56,_0x4e6131,_0x197eb8,_0x7b12c3,this['_model'])?[_0x23ec56,_0x4e6131]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5d1685),this['_defaultCallbacks']['set']('insertion:discard',_0x5af012),this['_defaultCallbacks']['set']('insertion:join',_0x2b055f),this['_defaultCallbacks']['set']('insertion:chain',_0x36f65a),this['_defaultCallbacks']['set']('deletion:accept',_0x5af012),this['_defaultCallbacks']['set']('deletion:discard',_0x5d1685),this['_defaultCallbacks']['set']('deletion:join',_0x2b055f),this['_defaultCallbacks']['set']('deletion:chain',_0x36f65a),this['_defaultCallbacks']['set']('formatInline:accept',_0x2f6dc1),this['_defaultCallbacks']['set']('formatInline:discard',_0x5d1685),this['_defaultCallbacks']['set']('formatInline:join',_0x2b055f),this['_defaultCallbacks']['set']('formatInline:chain',_0x5d1685),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2f6dc1),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5d1685),this['_defaultCallbacks']['set']('formatBlock:join',_0x2b055f),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5d1685),this['_defaultCallbacks']['set']('attribute:accept',_0x5d1685),this['_defaultCallbacks']['set']('attribute:discard',(_0x3bbf3f,_0x5e2637)=>{if(!_0x5e2637)return;const _0x33a76c=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x18dc6f=>{if(_0x5e2637['key']==m)for(const _0x5eae5e of _0x3bbf3f){const _0x4e3512=_0x5eae5e['start']['nodeAfter'],_0x34129b=_0x5e2637['oldValue'];_0x18dc6f['rename'](_0x4e3512,_0x34129b);}else{if(_0x33a76c['_isBlockAttribute'](_0x5e2637['key'])){for(const _0x155874 of _0x3bbf3f)void 0x0!==_0x5e2637['oldValue']?_0x18dc6f['setAttribute'](_0x5e2637['key'],_0x5e2637['oldValue'],_0x155874['start']['nodeAfter']):_0x18dc6f['removeAttribute'](_0x5e2637['key'],_0x155874['start']['nodeAfter']);}else{for(const _0x27f506 of _0x3bbf3f)_0x5e2637['oldValue']?_0x18dc6f['setAttribute'](_0x5e2637['key'],_0x5e2637['oldValue'],_0x27f506):_0x18dc6f['removeAttribute'](_0x5e2637['key'],_0x27f506);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2b055f);}}function Rt(_0x3749c3,_0x156a1f,_0x21a85a){for(const _0x188794 of _0x156a1f['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x188794['root']==_0x188794)return!0x1;if(!_0x21a85a['containsItem'](_0x188794))return!0x1;if(_0x3749c3['isObject'](_0x188794)||_0x3749c3['isLimit'](_0x188794))return!0x0;}return!0x1;}function Tt(_0x4a482d){return _0x4a482d['end']['parent']==_0x4a482d['start']['nodeAfter']&&_0x4a482d['end']['isAtStart'];}function Et(_0x5e3a27,_0xe65ed,_0x57f335,_0x4cea49){const _0x27dc05=_0x41edf2=>!_0x41edf2['item']['is']('$textProxy')&&!_0x4cea49['isObject'](_0x41edf2['item']),_0x4adb2b=_0x5e3a27['start']['getLastMatchingPosition'](_0x27dc05),_0x158484=_0x5e3a27['end']['getLastMatchingPosition'](_0x27dc05,{'direction':'backward'});return(!_0x5e3a27['start']['isEqual'](_0x4adb2b)||!_0x5e3a27['end']['isEqual'](_0x158484))&&(_0x4adb2b['isBefore'](_0x158484)?_0x57f335['updateMarker'](_0xe65ed,{'range':_0x57f335['createRange'](_0x4adb2b,_0x158484)}):_0x57f335['removeMarker'](_0xe65ed),!0x0);}function Vt(_0xf8e840){return _0x478958(_0xf8e840);}function Ut(_0x5cfbad){const _0x4ca886=_0x5cfbad['start']['nodeAfter'];return _0x4ca886&&_0x4ca886['is']('element');}function Ot(_0x161d7d,_0x4c6321){return null==_0x161d7d['end']['nodeBefore']&&_0x161d7d['end']['parent']==_0x161d7d['start']['nodeAfter']?Gt(_0x161d7d['start']['nodeAfter'],_0x4c6321):_0x161d7d;}function Gt(_0x195a86,_0x21102d){const _0x4ddd00=_0x21102d['schema']['isObject'](_0x195a86)||_0x21102d['schema']['isSelectable'](_0x195a86);return _0x21102d['createRange'](_0x21102d['createPositionAt'](_0x195a86,'before'),_0x4ddd00?_0x21102d['createPositionAfter'](_0x195a86):_0x21102d['createPositionAt'](_0x195a86,'end'));}function Ft(_0x436010,_0x519b0a,_0x16dbec,_0x2238b8,_0x5f35ac){if(!Pt(_0x436010,_0x519b0a))return!0x1;if(_0x16dbec['end']['isEqual'](_0x2238b8['start']))return!0x0;if(_0x436010['type']!=_0x519b0a['type'])return!0x1;if(!_0x16dbec['end']['isTouching'](_0x2238b8['start']))return!0x1;const _0x3a1218=_0x5f35ac['createRange'](_0x16dbec['end'],_0x2238b8['start'])['getWalker']();for(const _0x24c91f of _0x3a1218)if(['elementStart','elementEnd']['includes'](_0x24c91f['type'])&&_0x5f35ac['schema']['isLimit'](_0x24c91f['item']))return!0x1;return!0x0;}function Pt(_0x43fd59,_0x55d519,_0x4da7dd=[]){return!(!_0x43fd59['_isDataLoaded']||!_0x55d519['_isDataLoaded'])&&_0x7f9970(Bt(_0x43fd59['attributes'],_0x4da7dd),Bt(_0x55d519['attributes'],_0x4da7dd));}function Lt(_0x2b36f0,_0xe52f9c){const _0x3abb13=Ht(_0x2b36f0['attributes']),_0x5985d9=Ht(_0xe52f9c);if(!_0x2b36f0['_isDataLoaded'])return!0x1;for(const _0x18a394 of Object['keys'](_0x5985d9))if(!_0x7f9970(_0x3abb13[_0x18a394],_0x5985d9[_0x18a394]))return!0x1;return!0x0;}function Ht(_0x253aa3){const _0x364e9f=Object['assign']({},_0x253aa3);return delete _0x364e9f['skipNestingCheck'],delete _0x364e9f['tablePasteChainId'],_0x364e9f;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x29d385(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x1c9377,_0x105139,_0x3f749e,_0x147535){super(),this['model']=_0x105139,this['view']=_0x3f749e,this['commentThreadController']=_0x147535,this['_editor']=_0x1c9377,this['_acceptCommand']=_0x1c9377['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x1c9377['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x375f3c,_0x508e2)=>_0x375f3c||_0x508e2),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x546f72=>_0x546f72&&this['_editor']['model']['canEditAt'](_0x105139['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x40fa1f=>_0x40fa1f&&this['_editor']['model']['canEditAt'](_0x105139['getRanges']())),this['_pendingAction']=null,_0x3f749e['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3f749e,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3f749e,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3f749e,'change:isDirty',()=>{_0x3f749e['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}['acceptSuggestion'](){this['_acceptCommand']['execute'](this['model']['id']);}['discardSuggestion'](){this['_discardCommand']['execute'](this['model']['id']);}['destroy'](){this['view']['unbind']('isEnabled'),this['view']['unbind']('canAccept'),this['view']['unbind']('canDiscard'),this['stopListening'](),this['commentThreadController']['destroy'](),this['_pendingAction']&&this['_removePendingAction']();}['_setPendingAction'](){const _0x137be9=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x137be9);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0xb5144{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x2f421a,_0x2a8f68,_0x4f8181,_0x249389){super(_0x2f421a),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x2a8f68['authoredAt']),this['bind']('authoredAt')['to'](_0x2a8f68),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x2a8f68,this['_localUser']=_0x4f8181,this['_config']=_0x249389,_0x249389['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3e047a}=this['_config'];this['commentsListView']=new _0x3e047a(this['locale'],this['_model']['commentThread'],Object['assign']({'CommentView':this['_config']['CommentView']},this['_config'])),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['set']('length',this['commentsListView']['length']+0x1),this['bind']('length')['to'](this['commentsListView'],'length',_0x537e61=>_0x537e61+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1669c9,_0x222972)=>_0x1669c9||!!_0x222972);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x499dfa}=this['_config'],_0x1aeebd=new _0x499dfa(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1ff2f6=_0x1aeebd['commentInputView'];return _0x1aeebd['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x1ff2f6,'value',(_0x1ba899,_0x2a7fdb,_0x20533e)=>!!_0x20533e||_0x1ba899&&!_0x2a7fdb),_0x1ff2f6['on']('submit',(_0x3decb2,_0x7d821d)=>{this['fire']('addComment',_0x7d821d),_0x1ff2f6['editor']['setData']('');}),_0x1ff2f6['on']('cancel',()=>this['focus']()),_0x1ff2f6['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x1aeebd;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x5762de,_0x38f2b5,_0x3c29c8,_0x23de76){super(_0x5762de,_0x38f2b5,_0x3c29c8,_0x23de76),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4da914=>_0x4da914&&_0x4da914[0x0]?_0x4da914[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x515364,_0x2ad3a8)=>{let _0x35e2a9='';for(const _0x221012 of _0x515364)_0x35e2a9+='<p>'+ds(_0x221012['content'],_0x221012['color'])+'</p>';return _0x2ad3a8?_0x35e2a9:_0x5a6ffe(_0x35e2a9,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x5762de,'Accept\x20suggestion'),_0x4d5335['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x5762de,'Discard\x20suggestion'),_0x4d5335['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x5c4290(_0x5762de,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0xca6441=this['bindTemplate'],_0x23b2ad=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0xca6441['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0xca6441['to']('authoredAt',_0x34dbe4=>this['_config']['formatDateTime'](_0x34dbe4))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0x23b2ad['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x3f6dc9={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0xca6441['if']('isActive','ck-suggestion-wrapper--active'),_0xca6441['to']('type',_0x32ce6b=>'ck-suggestion-'+_0x32ce6b),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0x23b2ad}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x3f6dc9['children']['push'](this['commentsListView'],this['commentThreadInputView']),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this)),_0x3f6dc9;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x2afea5,_0x43ca9b,_0x227b29)=>{this['_descriptionElement']['innerHTML']=_0x227b29;});}['_createButton'](_0x823b85,_0x56c78d,_0x299869,_0x111919,_0x417f62){const _0x2f8d3a=new _0x548b51(this['locale']);return _0x2f8d3a['set']({'label':_0x823b85,'icon':_0x56c78d,'tooltip':!0x0,'tooltipPosition':_0x417f62}),_0x2f8d3a['extendTemplate']({'attributes':{'class':_0x299869}}),_0x2f8d3a['on']('execute',()=>{this['fire'](_0x111919,this['_model']['id']);}),_0x2f8d3a;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}}function ds(_0x2e2746,_0x89fee5){let _0x165487='';return _0x165487+=_0x2e2746['split']('*')['map']((_0x3baec4,_0x328080)=>_0x328080%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x3baec4)+'</span>':us(_0x3baec4))['join'](''),_0x89fee5&&(_0x165487+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x89fee5['value']+'\x22\x20title=\x22'+_0x89fee5['title']+'\x22></span>'),_0x165487;}function us(_0x6e7f9c){const _0x24c450=document['createElement']('span');return _0x24c450['innerText']=_0x6e7f9c,_0x24c450['innerHTML'];}var ie='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.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\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x4104d6{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0xc2c087,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x18c626){super(_0x18c626),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x35ac4c=this['editor']['config'];_0x35ac4c['define']('trackChanges.SuggestionThreadView',ne),_0x35ac4c['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x35ac4c['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x19bd06,_0x46777a){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x39959c,_0x170178]of this['_handleControllerBuffer']){const _0x57cb9a=this['_suggestionToController']['has'](_0x39959c);_0x57cb9a||_0x170178?_0x57cb9a&&_0x170178&&this['_destroyController'](_0x39959c):this['_initializeController'](_0x39959c);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x19bd06,_0x46777a);}['init'](){const _0x39af92=this['editor'],_0x22df7e=_0x39af92['plugins']['get']('TrackChangesEditing'),_0x3cec31=_0x39af92['plugins']['get']('Annotations'),_0x507693=_0x39af92['plugins']['get']('EditorAnnotations'),_0x3fa91c=_0x39af92['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x507693['addSourceCollector'](()=>{const _0x4ba9c6=[];for(const [_0x174299,_0x58b644]of Array['from'](this['_suggestionToController'])){const _0x1c9af0=_0x174299['getAllAdjacentSuggestions'](),_0x480554=[];for(const _0x403576 of _0x1c9af0){if(!_0x403576['isInContent'])continue;if(_0x403576['isMultiRange']){_0x480554['push'](..._0x403576['getRanges']());continue;}const _0x47146c=_0x403576['getFirstRange']();if(_0x480554['length']>0x0){const _0x19c8ca=_0x480554[0x0]['getJoined'](_0x47146c);if(_0x19c8ca){_0x480554[0x0]=_0x19c8ca;continue;}}_0x480554['push'](_0x47146c);}_0x4ba9c6['push']([_0x58b644['view'],_0x480554]);}return _0x4ba9c6;}),this['listenTo'](_0x22df7e,'suggestionLoaded',(_0x39344b,_0x357806)=>{this['listenTo'](_0x357806,'change:previous',(_0x2002c9,_0x4bc623,_0x187705,_0xf577bd)=>{_0x357806['isInContent']&&(null==_0x187705?(this['_updateController'](_0xf577bd['head']),this['_handleSuggestionControllerDelayed'](_0x357806,!0x1)):(this['_updateController'](_0x187705['head']),null==_0xf577bd&&this['_handleSuggestionControllerDelayed'](_0x357806,!0x0)));}),null!==_0x357806['previous']?this['_updateController'](_0x357806['head']):this['_handleSuggestionControllerDelayed'](_0x357806,!0x1);}),this['listenTo'](_0x22df7e,'suggestionUnloaded',(_0xcbf7f0,_0x1a6a61,_0x1a1dd0)=>{this['stopListening'](_0x1a6a61,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1a6a61),this['_suggestionToController']['has'](_0x1a6a61)&&this['_destroyController'](_0x1a6a61),_0x1a1dd0&&this['_updateController'](_0x1a1dd0['head']);}),this['listenTo'](_0x22df7e,'suggestionChanged',(_0xa10dfb,_0x3a9200)=>{this['_updateController'](_0x3a9200);}),this['listenTo'](_0x3cec31,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3fa91c,'addComment',(_0x283724,{threadId:_0xf03e4f,isFromAdapter:_0x3ff816})=>{if(_0x3ff816||!_0x22df7e['hasSuggestion'](_0xf03e4f))return;const _0x46ba23=_0x22df7e['getSuggestion'](_0xf03e4f);this['_suggestionToController']['get'](_0x46ba23)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x23c45a=this['editor']['plugins']['get']('Annotations'),_0x29a3e4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5c28be=Array['from'](_0x23c45a['activeAnnotations'],_0x5480d5=>_0x5480d5['innerView'])['filter'](_0x3a43f5=>this['_viewToController']['has'](_0x3a43f5)),_0x572eca=[];for(const _0x2e1a0d of _0x5c28be){const _0x13c921=this['_viewToController']['get'](_0x2e1a0d)['model']['getAllAdjacentSuggestions']();_0x572eca['push'](..._0x13c921['reduce']((_0x38c17b,_0x29a726)=>[..._0x38c17b,..._0x29a726['getMarkerNames']()],[]));}_0x29a3e4['activeMarkers']=_0x572eca;}['_addUIComponentsToFactory'](){const _0xefa9ec=this['editor'],_0x30985f=_0xefa9ec['locale'],_0x4de372=o(_0x30985f,'Track\x20changes'),_0x44855d=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'isToggleable':!0x0,'label':_0x4de372,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x30985f,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x30985f,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x30985f,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x30985f,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x1ab4d9 of _0x44855d)if(ae(_0x1ab4d9)){const _0x4f29d4=_0xefa9ec['commands']['get'](_0x1ab4d9['model']['commandName']);_0x1ab4d9['model']['bind']('isOn','isEnabled')['to'](_0x4f29d4,'value','isEnabled');}_0xefa9ec['ui']['componentFactory']['add']('trackChanges',_0x596ec7=>this['_createToolbarButton'](_0x596ec7,_0x44855d,_0x4de372)),_0xefa9ec['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2a3896=>this['_createMenuBarMenu'](_0x2a3896,_0x44855d,_0x4de372));}['_createToolbarButton'](_0x2eaef4,_0x3cd243,_0x41e524){const _0x1240ff=zt(_0x2eaef4,Zt),_0x564d3c=this['editor']['commands']['get']('trackChanges');_0x1240ff['buttonView']['set']({'tooltip':_0x41e524,'label':_0x41e524,'icon':ie}),_0x1240ff['buttonView']['bind']('isOn')['to'](_0x564d3c,'value'),_0x1240ff['buttonView']['on']('execute',()=>{_0x564d3c['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x1240ff,_0x3cd243,{'role':'menu'});const _0x474756=[];for(const _0x253e06 of _0x3cd243)ae(_0x253e06)&&_0x474756['push'](this['editor']['commands']['get'](_0x253e06['model']['commandName']));const _0x2bf98c=_0x1240ff['buttonView'];return _0x2bf98c['actionView']['unbind']('isEnabled'),_0x2bf98c['arrowView']['unbind']('isEnabled'),_0x2bf98c['actionView']['bind']('isEnabled')['to'](_0x564d3c,'isEnabled'),_0x2bf98c['arrowView']['bind']('isEnabled')['toMany'](_0x474756,'isEnabled',(..._0x49c421)=>_0x49c421['some'](_0x242b72=>_0x242b72)),_0x1240ff['on']('execute',_0x506f39=>{this['editor']['execute'](_0x506f39['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1240ff;}['_createMenuBarMenu'](_0x2e2e96,_0x373c44,_0xcb0d87){const _0x361e51=new Kt(_0x2e2e96),_0x2e66b2=this['editor']['commands']['get']('trackChanges');_0x361e51['buttonView']['set']({'label':_0xcb0d87,'icon':ie});const _0x54f154=new Qt(_0x2e2e96);for(const _0x3c80ce of _0x373c44){if('separator'==_0x3c80ce['type']){_0x54f154['items']['add'](new Jt(_0x2e2e96));continue;}const _0x4f71e9=new Xt(_0x2e2e96,_0x361e51),_0x3e3ee2=new Yt(_0x2e2e96),_0x529333=_0x3c80ce['model'];_0x3e3ee2['bind'](...Object['keys'](_0x529333))['to'](_0x529333),_0x3e3ee2['delegate']('execute')['to'](_0x361e51),_0x3e3ee2['on']('execute',()=>{this['editor']['execute'](_0x529333['commandName']),this['editor']['editing']['view']['focus']();}),_0x4f71e9['children']['add'](_0x3e3ee2),_0x54f154['items']['add'](_0x4f71e9);}return _0x361e51['bind']('isEnabled')['to'](_0x2e66b2,'isEnabled'),_0x361e51['panelView']['children']['add'](_0x54f154),_0x361e51;}['_initializeController'](_0x530ca7){const _0x2638f5=this['editor'],_0xf8a8e6=_0x2638f5['config'],_0x38ff7c=_0x2638f5['plugins']['get']('Annotations'),_0x14d362=_0x2638f5['plugins']['get']('CommentsRepository'),_0xa93ef1=_0x2638f5['plugins']['get']('EditorAnnotations'),_0x422660=_0x2638f5['plugins']['get'](_0xc2c087)['me'],_0x548090=_0xf8a8e6['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x1e08b3,CommentThreadInputView:_0x444eac}=_0x2638f5['plugins']['get']('CommentsUI');let _0x15e9fa,_0x45c2db;this['_annotationViews']['has'](_0x530ca7['id'])?(_0x45c2db=this['_annotationViews']['get'](_0x530ca7['id']),_0x15e9fa=_0x45c2db['mainView']):(_0x15e9fa=new _0x548090(_0x2638f5['locale'],_0x530ca7,_0x422660,{'disableComments':this['_disableComments'],'editorConfig':_0xf8a8e6['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0xf8a8e6['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xf8a8e6['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xf8a8e6['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x227821(_0xf8a8e6['get']('locale')),'CommentView':_0xf8a8e6['get']('comments')['CommentView'],'CommentsListView':_0x1e08b3,'CommentThreadInputView':_0x444eac}),_0x15e9fa['acceptButton']['on']('execute',()=>{_0x2638f5['editing']['view']['focus']();}),_0x15e9fa['discardButton']['on']('execute',()=>{_0x2638f5['editing']['view']['focus']();}),_0x45c2db=_0x38ff7c['createAnnotationView'](this['editor']['locale'],_0x15e9fa),_0x45c2db['bind']('isDirty')['to'](_0x15e9fa,'isDirty'),_0x45c2db['bind']('length')['to'](_0x15e9fa),_0x45c2db['bind']('type')['to'](_0x15e9fa,'type',_0x1f93ca=>'suggestion-'+_0x1f93ca),this['_annotationViews']['set'](_0x530ca7['id'],_0x45c2db));const _0x36e7a4=_0x14d362['createCommentThreadController'](_0x530ca7['commentThread'],_0x15e9fa),_0x2eb3a2=new oe(_0x2638f5,_0x530ca7,_0x15e9fa,_0x36e7a4),_0x29dbee=_0x530ca7['getAllAdjacentSuggestions']()['filter'](_0x3df3a8=>_0x3df3a8['isInContent']);_0x15e9fa['descriptionParts']=_0x2638f5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x29dbee),this['_suggestionToController']['set'](_0x530ca7,_0x2eb3a2),this['_viewToController']['set'](_0x15e9fa,_0x2eb3a2);const _0xf82e5b=_0x38ff7c['createAnnotation']({'view':_0x45c2db,'target':()=>{const _0x11e477=[],_0x30cf59=_0x530ca7['getAllAdjacentSuggestions']()['filter'](_0x497364=>_0x497364['isInContent']);for(const _0x54a969 of _0x30cf59)_0x11e477['push'](..._0x54a969['getMarkers']());return _0x2ce1e8(_0x2638f5['editing'],_0x11e477);},'type':()=>'suggestion-'+_0x2eb3a2['view']['type']});_0x14d362['_bindAnnotationToEditors'](_0x15e9fa,_0xf82e5b),_0x38ff7c['add'](_0xf82e5b),_0xa93ef1['registerAnnotation'](_0xf82e5b);}['_destroyController'](_0x1d35af){const _0x5072e0=this['editor']['plugins']['get']('CommentsRepository'),_0x3f6317=this['editor']['plugins']['get']('Annotations'),_0x424460=this['_suggestionToController']['get'](_0x1d35af),_0x2a2dda=_0x424460['view'],_0x320d4f=_0x3f6317['getByInnerView'](_0x2a2dda);_0x5072e0['_unbindEditors'](_0x2a2dda),_0x320d4f&&_0x3f6317['remove'](_0x320d4f),this['_suggestionToController']['delete'](_0x1d35af),this['_viewToController']['delete'](_0x2a2dda),_0x424460['destroy']();}['_updateController'](_0xc0707c){if(!_0xc0707c['isInContent']||!this['_suggestionToController']['has'](_0xc0707c))return;const _0xa7c332=this['editor']['plugins']['get']('TrackChangesEditing'),_0x11a294=this['_suggestionToController']['get'](_0xc0707c),_0x40a8e3=_0xc0707c['getAllAdjacentSuggestions']();_0x11a294['view']['descriptionParts']=_0xa7c332['descriptionFactory']['getDescriptions'](_0x40a8e3);}['destroy'](){for(const _0x26698c of this['_suggestionToController']['keys']())this['_destroyController'](_0x26698c);for(const _0x1b7bac of this['_annotationViews']['values']())_0x1b7bac['mainView']['destroy']();super['destroy']();}}function ae(_0x4724fd){return'model'in _0x4724fd;}class k extends _0x4104d6{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x3bd022){this['editor']['plugins']['get'](p)['adapter']=_0x3bd022;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x1d1d45){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x1d1d45);}['getSuggestions']({skipNotAttached:_0xe36eaf=!0x1,toJSON:_0x4565d9=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0xe36eaf,'toJSON':_0x4565d9});}['getSuggestion'](_0x2c1b5c){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x2c1b5c);}}const T=['Pagination'];class P extends _0x4104d6{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x402e83=this['editor'];if(_0x402e83['config']['define']('trackChangesData.editorCreator',_0xf7fe4=>{const _0xd4697c=_0x402e83['model']['document']['getRootNames']()['reduce']((_0x39dba9,_0x3e0727)=>(_0x39dba9[_0x3e0727]='',_0x39dba9),{});return _0x402e83['constructor']['create'](_0xd4697c,_0xf7fe4);}),'function'!=typeof _0x402e83['config']['get']('trackChangesData')['editorCreator'])throw new _0x274ec5('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x3c5b7e){return N(this['editor'],!0x0,_0x3c5b7e);}['getDataWithDiscardedSuggestions'](_0x51ede5){return N(this['editor'],!0x1,_0x51ede5);}}class D extends _0x4104d6{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x36a903){super(_0x36a903),this['result']='end';}['init'](){this['editor']['plugins']['get']('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']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function v(_0x5a409c){return void 0x0!==_0x5a409c['getRootsAttributes'];}async function N(_0x4dc90f,_0x430637,_0x465993){const _0x126815=_0xbb1dc2(_0x4dc90f,T);_0x126815['plugins']['push'](p,D),_0x126815['rootsAttributes']=v(_0x4dc90f)?_0x4dc90f['getRootsAttributes']():void 0x0;const _0x44c0c1=document['createDocumentFragment'](),_0x19fcc3=_0x4dc90f['config']['get']('trackChangesData')['editorCreator'],_0x39cf12=await _0x19fcc3(_0x126815,()=>function(_0x273268){const _0x3276f6=document['createElement']('div');return _0x273268['appendChild'](_0x3276f6),_0x3276f6;}(_0x44c0c1));!function(_0x2a933b,_0x2426b9){const _0xf5ff61=_0x2a933b['model']['document']['getRootNames']()['reduce']((_0x35bbc5,_0x742051)=>(_0x35bbc5[_0x742051]=_0x2a933b['data']['get']({'rootName':_0x742051}),_0x35bbc5),{}),_0x1753f4=_0x2a933b['plugins']['get']('Users')['users']['map'](_0x130669=>({'id':_0x130669['id'],'name':_0x130669['name']})),_0x58594f=_0x2a933b['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3667ee=_0x2a933b['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x28d824=_0x2426b9['plugins']['get']('Users'),_0x2e3c5c=_0x2426b9['plugins']['get']('TrackChangesEditing'),_0xe05ff5=_0x2426b9['plugins']['get']('CommentsRepository');for(const _0x11b0e8 of _0x1753f4)_0x28d824['getUser'](_0x11b0e8['id'])||_0x28d824['addUser'](_0x11b0e8);_0x28d824['me']||_0x28d824['useAnonymousUser']();for(const _0x32d646 of _0x3667ee)_0xe05ff5['addCommentThread'](_0x32d646);for(const _0x4eb65c of _0x58594f)_0x2e3c5c['addSuggestionData'](_0x4eb65c);_0x2426b9['data']['set'](_0xf5ff61);}(_0x4dc90f,_0x39cf12),_0x39cf12['execute'](_0x430637?'acceptAllSuggestions':'discardAllSuggestions');const _0x50b115=v(_0x39cf12)?_0x39cf12['getFullData'](_0x465993):_0x39cf12['data']['get'](_0x465993);return await _0x39cf12['destroy'](),_0x50b115;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x20810f,PendingActions as _0x5bd93c,icons as _0x4fa5ed}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x5e6563,ObservableMixin as _0x20de3a,uid as _0x4afc5b,insertToPriorityArray as _0x5986fa,priorities as _0x515e10,logWarning as _0x3db40f,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x557595,View as _0x570dda,ButtonView as _0x11f77f,ViewModel as te,createDropdown as zt,SplitButtonView as Zt,addListToDropdown as qt,MenuBarMenuView as Kt,MenuBarMenuListView as Qt,ListSeparatorView as Jt,MenuBarMenuListItemView as Xt,MenuBarMenuListItemButtonView as Yt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x583b5,hashObject as _0x474bc1,surroundingMarkersDetector as _0x23f8bb,trimHtml as _0x1a99e5,UserView as _0x1962d2,getDateTimeFormatter as _0x7cc2e9,getAllMarkersDomElementsSorted as _0x27635a,sanitizeEditorConfig as _0x37f465}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x1808a5,LiveRange as _0x3f67f3,LivePosition as _0x45a9d6}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x3175fe,toWidget as _0x2ad58f}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x541a6e,set as _0xa658ea,isEqual as _0x4fa487,unset as _0x351737,omit as Bt}from'lodash-es';import{Delete as _0x515384,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0xb307a7,ShiftEnter as _0x1b0bac}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x378e39,_0x26e2a5){super(_0x378e39),this['_enabledCommands']=_0x26e2a5,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){this['value']=!this['value'],this['value']?this['_disableUnsupportedCommands']():this['_enableCommands']();}['_disableUnsupportedCommands'](){for(const _0xa5221d of this['editor']['commands']['commands']())_0xa5221d['affectsData']&&!this['_enabledCommands']['has'](_0xa5221d)&&_0xa5221d['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x45b1df of this['editor']['commands']['commands']())_0x45b1df['affectsData']&&!this['_enabledCommands']['has'](_0x45b1df)&&_0x45b1df['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x4c9603,_0x421e6b){super(_0x4c9603),this['_suggestions']=_0x421e6b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5d492c){const _0x36c8a6=this['_suggestions']['get'](_0x5d492c);if(!_0x36c8a6)throw new _0x5e6563('track-changes-accept-suggestion-not-found',this);const _0x402c53=_0x36c8a6['getRanges']();this['editor']['model']['canEditAt'](_0x402c53)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x36c8a6);}}class B extends ts{['_suggestions'];constructor(_0x34a4e8,_0x19b5b8){super(_0x34a4e8),this['_suggestions']=_0x19b5b8,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x17887f){const _0x101034=this['_suggestions']['get'](_0x17887f);if(!_0x101034)throw new _0x5e6563('track-changes-discard-suggestion-not-found',this);const _0xa25492=_0x101034['getRanges']();this['editor']['model']['canEditAt'](_0xa25492)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x101034);}}function ss(_0x371d44){return _0x371d44['sort']((_0x4c3aca,_0x5eb8bc)=>'deletion'==_0x4c3aca['type']&&'deletion'!=_0x5eb8bc['type']?-0x1:'deletion'!=_0x4c3aca['type']&&'deletion'==_0x5eb8bc['type']?0x1:0x0);}function to(_0x3a02f9,_0x80eaa4){let _0x5bd142,_0x425fd1=0x0;const _0x274a3b=[],_0x486ca5=_0x80eaa4['schema'];for(;_0x425fd1<_0x3a02f9['length'];){const _0x20f63a=_0x3a02f9[_0x425fd1],_0x570872=_0x3a02f9[_0x425fd1+0x1];_0x5bd142||(_0x5bd142=_0x80eaa4['createPositionBefore'](_0x20f63a)),co(_0x80eaa4,_0x20f63a,_0x570872)||(_0x274a3b['push'](_0x80eaa4['createRange'](_0x5bd142,_0x486ca5['isObject'](_0x20f63a)?_0x80eaa4['createPositionAfter'](_0x20f63a):_0x80eaa4['createPositionAt'](_0x20f63a,'end'))),_0x5bd142=null),_0x425fd1++;}return _0x274a3b;}function co(_0x22b571,_0x3c49c5,_0x4449d9){if(!_0x4449d9)return!0x1;const _0x5bd200=_0x22b571['createPositionAfter'](_0x3c49c5),_0x51ef02=_0x22b571['createPositionBefore'](_0x4449d9);return _0x5bd200['isTouching'](_0x51ef02);}function rs(_0x526cbd,_0x262884,_0x28ebf4){for(;_0x28ebf4['length'];){const _0x166e13=_0x28ebf4['splice'](0x0,0x64);_0x526cbd['change'](()=>{for(const _0x21b7bc of _0x166e13)_0x21b7bc['isInContent']&&_0x262884['execute'](_0x21b7bc['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x328790,_0x3f33cd,_0x3fd890){super(_0x328790),this['_command']=_0x3f33cd,this['_suggestions']=_0x3fd890,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x17b960=Array['from'](this['_suggestions']['values']())['some'](_0x23df0b=>_0x23df0b['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x17b960;}['execute'](){const _0x5e07dc=ss(Array['from'](this['_suggestions']['values']()));for(const _0x1086a3 of _0x5e07dc){const _0x4175e7=_0x1086a3['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4175e7))return;}rs(this['editor']['model'],this['_command'],_0x5e07dc);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x596ae4,_0x30beb5,_0x4360af){super(_0x596ae4),this['_command']=_0x30beb5,this['_suggestions']=_0x4360af,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x79be4a=this['editor']['model']['document']['selection'],_0x12e79b=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x2d3c92,_0x50fb7c){const _0x376886=Array['from'](_0x2d3c92['getRanges']()),_0x160020=new Set();for(const _0x3cd033 of _0x50fb7c)if(_0x3cd033['isInContent']){for(const _0x54f2a9 of _0x376886)for(const _0x4d4d91 of _0x3cd033['getRanges']())(_0x54f2a9['isIntersecting'](_0x4d4d91)||_0x2d3c92['isCollapsed']&&!_0x3cd033['isMultiRange']&&_0x3cd033['next']&&_0x4d4d91['end']['isTouching'](_0x54f2a9['start']))&&_0x160020['add'](_0x3cd033);}return _0x160020;}(_0x79be4a,_0x12e79b),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x47e9e2=ss(Array['from'](this['_selectedSuggestions']));for(const _0x34e206 of _0x47e9e2){const _0x355342=_0x34e206['getRanges']();if(!this['editor']['model']['canEditAt'](_0x355342))return;}rs(this['editor']['model'],this['_command'],_0x47e9e2);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x20de3a(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4b6fb5,_0x2de1f6){super(),this['id']=_0x2de1f6['id'],this['type']=_0x2de1f6['type'],this['subType']=_0x2de1f6['subType']||null,this['author']=_0x2de1f6['author'],this['creator']=_0x2de1f6['creator']||_0x2de1f6['author'],this['isExternal']=Boolean(_0x2de1f6['attributes']&&_0x2de1f6['attributes']['@external']),this['data']=null,this['_model']=_0x4b6fb5,this['_onAccept']=_0x2de1f6['onAccept'],this['_onDiscard']=_0x2de1f6['onDiscard'],this['_onAttributesChange']=_0x2de1f6['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x2de1f6['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x1a2258=this;for(;_0x1a2258['previous'];)_0x1a2258=_0x1a2258['previous'];return _0x1a2258;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x4ef710){this['_markerNames']['add'](_0x4ef710);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x73f30f=>this['_model']['markers']['get'](_0x73f30f))['filter'](_0x572d29=>_0x572d29);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x435331=>{for(const _0x57024a of this['getMarkers']())_0x435331['removeMarker'](_0x57024a);}),this['_markerNames']['clear']();}['removeMarker'](_0x44d5d3){this['_model']['change'](_0xd7b8ee=>{_0xd7b8ee['removeMarker'](_0x44d5d3);}),this['_markerNames']['delete'](_0x44d5d3);}['addRange'](_0x2332bd){const _0x3ca60f='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x3ca60f),this['_model']['change'](_0x146bdf=>{_0x146bdf['addMarker'](_0x3ca60f,{'range':_0x2332bd,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1a74d1){for(const _0x2907bc of this['getRanges']())if(_0x2907bc['isIntersecting'](_0x1a74d1))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x526707=>_0x526707['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4a23fc,_0x10a997)=>[..._0x4a23fc,..._0x10a997['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x465ade=this['getRanges']();if(0x1!=_0x465ade['length'])return null;const _0x422e50=_0x465ade[0x0],_0x42bb39=_0x422e50['start']['nodeAfter'],_0x4b3244=_0x422e50['end']['nodeBefore'];return _0x42bb39 instanceof _0x1808a5?_0x42bb39!=_0x4b3244?null:_0x42bb39:null;}['accept'](){this['_onAccept'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['discard'](){this['_onDiscard'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['getAllAdjacentSuggestions'](){const _0x5d4df2=[];let _0x9e6c4d=this['head'];for(;_0x9e6c4d;)_0x5d4df2['push'](_0x9e6c4d),_0x9e6c4d=_0x9e6c4d['next'];return _0x5d4df2;}['setAttribute'](_0x15a77b,_0x78ff7b){const _0x119353=_0x541a6e(this['attributes']);_0xa658ea(_0x119353,_0x15a77b,_0x78ff7b),_0x4fa487(_0x119353,this['attributes'])||(this['attributes']=_0x119353,this['_onAttributesChange'](_0x119353));}['removeAttribute'](_0x23f775){const _0x1fc7b2=_0x541a6e(this['attributes']);_0x351737(_0x1fc7b2,_0x23f775),_0x4fa487(_0x1fc7b2,this['attributes'])||(this['attributes']=_0x1fc7b2,this['_onAttributesChange'](this['attributes']));}['toJSON'](){return{'id':this['id'],'type':this['subType']?this['type']+':'+this['subType']:this['type'],'authorId':this['creator']['id'],'createdAt':this['createdAt'],'hasComments':this['hasComments'],'data':this['data'],'attributes':this['attributes']};}static['getMultiRangeId'](){return _0x4afc5b()['substr'](0x1,0x5);}}function o(_0x1cfe26,_0x510b61,_0x5d2713){const t=_0x1cfe26['t'];switch(_0x510b61){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x5d2713);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5d2713);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5d2713);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5d2713);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5d2713);case'*Format:*\x20change\x20table\x20properties':return t('*Format:*\x20change\x20table\x20properties');case'*Format:*\x20change\x20table\x20cell\x20properties':return t('*Format:*\x20change\x20table\x20cell\x20properties');case'*Format:*\x20insert\x20into\x20%0':return t('*Format:*\x20insert\x20into\x20%0',_0x5d2713);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5d2713);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5d2713);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5d2713);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5d2713);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5d2713);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5d2713);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5d2713);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5d2713);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5d2713);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5d2713);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5d2713);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5d2713);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5d2713);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5d2713);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5d2713);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5d2713);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5d2713);case'*Remove\x20highlight*':return t('*Remove\x20highlight*');case'FORMAT_HIGHLIGHT':return t({'string':'highlight','id':'FORMAT_HIGHLIGHT'});case'FORMAT_RESTRICTED_ENABLED':return t({'string':'*Enable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_ENABLED'});case'FORMAT_RESTRICTED_DISABLED':return t({'string':'*Disable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_DISABLED'});case'ELEMENT_TABLE':return t({'string':'table','plural':'%0\x20tables','id':'ELEMENT_TABLE'},_0x5d2713);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5d2713);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5d2713);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5d2713);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5d2713);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5d2713);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x5d2713);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5d2713);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5d2713);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5d2713);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5d2713);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x5d2713);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5d2713);case'FORMAT_ALIGNMENT':return t({'string':'alignment','id':'FORMAT_ALIGNMENT'});case'FORMAT_ALIGN_TO_LEFT':return t({'string':'align\x20to\x20left','id':'FORMAT_ALIGN_TO_LEFT'});case'FORMAT_ALIGN_TO_RIGHT':return t({'string':'align\x20to\x20right','id':'FORMAT_ALIGN_TO_RIGHT'});case'FORMAT_ALIGN_TO_CENTER':return t({'string':'align\x20to\x20center','id':'FORMAT_ALIGN_TO_CENTER'});case'FORMAT_JUSTIFY_TEXT':return t({'string':'justify','id':'FORMAT_JUSTIFY_TEXT'});case'FORMAT_BOLD':return t({'string':'bold','id':'FORMAT_BOLD'});case'FORMAT_ITALIC':return t({'string':'italic','id':'FORMAT_ITALIC'});case'FORMAT_UNDERLINE':return t({'string':'underline','id':'FORMAT_UNDERLINE'});case'FORMAT_CODE':return t({'string':'code','id':'FORMAT_CODE'});case'FORMAT_STRIKETHROUGH':return t({'string':'strikethrough','id':'FORMAT_STRIKETHROUGH'});case'FORMAT_SUBSCRIPT':return t({'string':'subscript','id':'FORMAT_SUBSCRIPT'});case'FORMAT_SUPERSCRIPT':return t({'string':'superscript','id':'FORMAT_SUPERSCRIPT'});case'ELEMENT_BLOCK_QUOTE':return t({'string':'block\x20quote','id':'ELEMENT_BLOCK_QUOTE'});case'ELEMENT_CODE_BLOCK':return t({'string':'code\x20block','plural':'%0\x20code\x20blocks','id':'ELEMENT_CODE_BLOCK'},_0x5d2713);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x5d2713);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5d2713);case'ELEMENT_TABLE_ROW_WITH_TEXT':return t({'string':'table\x20row\x20*with\x20text*\x20%1','plural':'%0\x20table\x20rows\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_ROW_WITH_TEXT'},_0x5d2713);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5d2713);case'ELEMENT_TABLE_COLUMN_WITH_TEXT':return t({'string':'table\x20column\x20*with\x20text*\x20%1','plural':'%0\x20table\x20columns\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_COLUMN_WITH_TEXT'},_0x5d2713);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5d2713);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5d2713);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5d2713);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5d2713);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0x510b61;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x427c96,_0x1579f6){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x427c96,this['_locale']=_0x1579f6;}['getDescriptions'](_0x2daedd){const _0x4f09d5=[],_0x16fd95=new Set(),_0x854bee=new Set();for(let _0x4fb884=0x0;_0x4fb884<_0x2daedd['length'];_0x4fb884++){const _0xded531=_0x2daedd[_0x4fb884];if(!_0xded531['isInContent'])continue;const _0x4314f4=this['_handleCustomCallbackDescription'](_0xded531);if(_0x4314f4){if(null!=_0xded531['subType']){if(_0x16fd95['has'](_0xded531['subType']))continue;_0x16fd95['add'](_0xded531['subType']);}_0x4f09d5['push'](_0x4314f4);}else{if('attribute'!=_0xded531['type'])'insertion'!=_0xded531['type']&&'deletion'!=_0xded531['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4f09d5,_0xded531,_0x2daedd[_0x4fb884+0x1]);else{const _0x37d39f=_0xded531['data']['key'];if(_0x854bee['has'](_0x37d39f))continue;_0x854bee['add'](_0xded531['data']['key']),_0x37d39f==m?this['_handleRenameSuggestionDescription'](_0x4f09d5,_0xded531):this['_handleAttributeSuggestionDescription'](_0x4f09d5,_0xded531);}}}return this['_resolveDescriptionItems'](_0x4f09d5);}['registerDescriptionCallback'](_0x489ab7){this['_customCallbacks']['push'](_0x489ab7);}['registerElementLabel'](_0x5a0475,_0x96d6fc,_0x25c293=_0x515e10['normal']){'function'==typeof _0x5a0475?_0x5986fa(this['_itemLabelsCallbacks'],{'matchingCallback':_0x5a0475,'label':_0x96d6fc,'priority':_0x25c293}):this['_itemLabels']['set'](_0x5a0475,_0x96d6fc);}['registerAttributeLabel'](_0x12f687,_0x51d4a6){this['_attributeLabels']['set'](_0x12f687,_0x51d4a6);}['getItemLabel'](_0x2dce63,_0x5ce1f9=0x1){let _0x5e5cdb;for(const _0x1a0de5 of this['_itemLabelsCallbacks'])if(_0x1a0de5['matchingCallback'](_0x2dce63)){_0x5e5cdb=_0x1a0de5['label'];break;}return _0x5e5cdb||(_0x5e5cdb=this['_itemLabels']['get'](_0x2dce63['name'])),_0x5e5cdb?_0x5e5cdb(_0x5ce1f9):0x1!==_0x5ce1f9?_0x5ce1f9+'\x20'+_0x2dce63['name']+'s':''+_0x2dce63['name'];}['_addDescriptionItems'](_0x3caa5f,_0x49b7bb){const _0x59a4fa=_0x49b7bb['getFirstRange']()['getWalker'](),_0x537297='insertion'==_0x49b7bb['type']?'add':'remove';for(const _0x11c2a9 of _0x59a4fa){const _0x4c104c=_0x11c2a9['item'],_0xfef8aa=_0x3caa5f[_0x3caa5f['length']-0x1];if(_0x4c104c['is']('$textProxy'))_0xfef8aa&&_0xfef8aa['type']['indexOf']('Container')>-0x1&&_0x3caa5f['pop'](),_0xfef8aa&&'text'==_0xfef8aa['type']?_0xfef8aa[_0x537297]+=_0x4c104c['data']:_0x3caa5f['push']({'type':'text','add':'add'==_0x537297?_0x4c104c['data']:'','remove':'remove'==_0x537297?_0x4c104c['data']:''});else{if(this['_schema']['isObject'](_0x4c104c)){const _0x43f220=_0x4c104c;if(_0xfef8aa&&_0xfef8aa['type']['indexOf']('Container')>-0x1&&_0x3caa5f['pop'](),'elementEnd'==_0x11c2a9['type'])continue;_0xfef8aa&&_0xfef8aa['type']==_0x537297+'Object'&&_0xfef8aa['element']['name']==_0x43f220['name']?_0xfef8aa['quantity']++:_0x3caa5f['push']({'type':_0x537297+'Object','element':_0x43f220,'quantity':0x1}),_0x59a4fa['skip'](_0x976398=>!('elementEnd'==_0x976398['type']&&_0x976398['item']==_0x4c104c));}else{if(this['_schema']['checkChild'](_0x4c104c,'$text')||_0x4c104c['is']('element','softBreak')){const _0x3b8678=_0x4c104c;if('add'==_0x537297&&'elementStart'==_0x11c2a9['type']||'remove'==_0x537297&&'elementEnd'==_0x11c2a9['type'])continue;if(_0xfef8aa&&-0x1==_0xfef8aa['type']['indexOf']('Container')){'text'==_0xfef8aa['type']&&(_0xfef8aa[_0x537297]+='\x0a');continue;}let _0x1c2d4a;if(_0x1c2d4a='add'==_0x537297?_0x3b8678['nextSibling']&&!this['_schema']['isObject'](_0x3b8678['nextSibling'])?_0x3b8678['nextSibling']:null:_0x3b8678['previousSibling']&&!this['_schema']['isObject'](_0x3b8678['previousSibling'])?_0x3b8678['previousSibling']:null,_0x3b8678['isEmpty']||_0x1c2d4a&&_0x1c2d4a['isEmpty']){const _0x3c8664=_0x1c2d4a&&_0x1c2d4a['isEmpty']?_0x1c2d4a:_0x3b8678;_0xfef8aa&&_0xfef8aa['type']==_0x537297+'EmptyContainer'&&_0xfef8aa['element']['name']==_0x3c8664['name']?_0xfef8aa['quantity']++:_0x3caa5f['push']({'type':_0x537297+'EmptyContainer','element':_0x3c8664,'quantity':0x1});}else _0x3caa5f['push']({'type':_0x537297+'Container','element':_0x3b8678});}}}}}['_resolveDescriptionItems'](_0x2274ac){const _0x1a4e16=this['_locale'],_0x8a96e4=[],_0x55eb7b=[],_0x176699=[];for(const _0x35611e of _0x2274ac)switch(_0x35611e['type']){case'text':if(_0x35611e['add']=_0x35611e['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x35611e['remove']=_0x35611e['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x35611e['add']&&''!=_0x35611e['remove']){_0x8a96e4['push']({'type':'replace','content':o(_0x1a4e16,'REPLACE_TEXT',['\x22'+_0x35611e['remove']+'\x22','\x22'+_0x35611e['add']+'\x22'])});continue;}if(null!=_0x35611e['add']['match'](/^ +$/)){_0x8a96e4['push']({'type':'insertion','content':o(_0x1a4e16,'*Insert:*\x20%0',o(_0x1a4e16,'ELEMENT_SPACE',_0x35611e['add']['length']))});continue;}if(null!=_0x35611e['remove']['match'](/^ +$/)){_0x8a96e4['push']({'type':'deletion','content':o(_0x1a4e16,'*Remove:*\x20%0',o(_0x1a4e16,'ELEMENT_SPACE',_0x35611e['remove']['length']))});continue;}if(''!=_0x35611e['add']){_0x8a96e4['push']({'type':'insertion','content':o(_0x1a4e16,'*Insert:*\x20%0','\x22'+_0x35611e['add']+'\x22')});continue;}_0x8a96e4['push']({'type':'deletion','content':o(_0x1a4e16,'*Remove:*\x20%0','\x22'+_0x35611e['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x8a96e4['push']({'type':'insertion','content':o(_0x1a4e16,'*Insert:*\x20%0',this['getItemLabel'](_0x35611e['element'],_0x35611e['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x8a96e4['push']({'type':'deletion','content':o(_0x1a4e16,'*Remove:*\x20%0',this['getItemLabel'](_0x35611e['element'],_0x35611e['quantity']))});continue;case'addContainer':_0x8a96e4['push']({'type':'insertion','content':o(_0x1a4e16,'*Split:*\x20%0',this['getItemLabel'](_0x35611e['element'],_0x35611e['quantity']))});continue;case'removeContainer':_0x8a96e4['push']({'type':'deletion','content':o(_0x1a4e16,'*Merge:*\x20%0',this['getItemLabel'](_0x35611e['element'],_0x35611e['quantity']))});continue;case'addFormat':_0x55eb7b['push'](_0x35611e['key']);continue;case'removeFormat':_0x176699['push'](_0x35611e['key']);continue;default:_0x8a96e4['push'](_0x35611e);}if(_0x55eb7b['length']){const _0x2c13a6=_0x55eb7b['map'](_0x52551e=>this['_attributeLabels']['has'](_0x52551e)?this['_attributeLabels']['get'](_0x52551e):_0x52551e)['join'](',\x20');_0x8a96e4['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2c13a6)});}if(_0x176699['length']){const _0x289d71=_0x176699['map'](_0xfebbc4=>this['_attributeLabels']['has'](_0xfebbc4)?this['_attributeLabels']['get'](_0xfebbc4):_0xfebbc4)['join'](',\x20');_0x8a96e4['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x289d71)});}return _0x8a96e4;}['_handleCustomCallbackDescription'](_0x2118fe){for(const _0x410f51 of this['_customCallbacks']){const _0x37b252=_0x410f51(_0x2118fe);if(_0x37b252&&'type'in _0x37b252)return _0x37b252;}}['_handleAttributeSuggestionDescription'](_0x57bed3,_0xb22479){const _0x2199a3=_0xb22479['data'],_0x469d60=void 0x0===_0x2199a3['newValue']?'removeFormat':'addFormat';_0x57bed3['push']({'type':_0x469d60,'key':_0x2199a3['key']});}['_handleRenameSuggestionDescription'](_0x3be8f3,_0x45e9c3){_0x3be8f3['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x45e9c3['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xad5d7f,_0x176531,_0x45db58){if(this['_addDescriptionItems'](_0xad5d7f,_0x176531),_0x45db58&&_0x45db58['getFirstRange']()&&!_0x176531['getFirstRange']()['end']['isEqual'](_0x45db58['getFirstRange']()['start'])){const _0x4d4cf6=_0xad5d7f[_0xad5d7f['length']-0x1],_0x25b2c7='insertion'==_0x176531['type']?'add':'remove';_0x4d4cf6&&'text'==_0x4d4cf6['type']&&(_0x4d4cf6[_0x25b2c7]+='\x0a');}}}class E extends _0x20810f{['afterInit'](){const _0x31a2c4=this['editor'],_0x5cf92d=_0x31a2c4['plugins']['get']('TrackChangesEditing');_0x31a2c4['commands']['get']('showAIAssistant')&&_0x5cf92d['enableCommand']('showAIAssistant');}}class V extends _0x20810f{['afterInit'](){const _0x5cb215=this['editor'],_0x2c9baa=_0x5cb215['locale'];if(!_0x5cb215['plugins']['has']('AlignmentEditing'))return;const _0x1dbf97=_0x5cb215['plugins']['get']('TrackChangesEditing');_0x1dbf97['enableDefaultAttributesIntegration']('alignment'),_0x1dbf97['registerBlockAttribute']('alignment'),_0x1dbf97['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x2c9baa,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x17b169=this['editor'],_0x4866d1=_0x17b169['locale'];_0x17b169['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22ff79=>{if('formatBlock'!=_0x22ff79['type'])return;const {data:_0xd2fa4f}=_0x22ff79;if(_0xd2fa4f&&'alignment'==_0xd2fa4f['commandName']){const _0x168a31=_0xd2fa4f['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4866d1,'*Format:*\x20%0',function(_0x42b544){switch(_0x42b544){case'left':return o(_0x4866d1,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4866d1,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4866d1,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4866d1,'FORMAT_JUSTIFY_TEXT');}}(_0x168a31))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x20810f{['afterInit'](){const _0x200377=this['editor'],_0x38f6c4=_0x200377['plugins']['get']('TrackChangesEditing'),_0x2fc9ac=_0x200377['locale'];for(const _0x3b43ca of ti){if(!_0x200377['plugins']['has'](_0x3b43ca))continue;const _0x91dd0c=_0x3b43ca['slice'](0x0,-0x7)['toLowerCase'](),_0x364744='FORMAT_'+_0x91dd0c['toUpperCase']();_0x38f6c4['enableDefaultAttributesIntegration'](_0x91dd0c),_0x38f6c4['registerInlineAttribute'](_0x91dd0c),_0x38f6c4['descriptionFactory']['registerAttributeLabel'](_0x91dd0c,o(_0x2fc9ac,_0x364744));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1fb9f8=this['editor'],_0x2cfefe=_0x1fb9f8['locale'],_0x25e06e=_0x1fb9f8['plugins']['get']('TrackChangesEditing');function _0x3266e4(_0x58d350,_0x4ad927){_0x25e06e['descriptionFactory']['registerDescriptionCallback'](_0x50ded5=>{if('formatInline'!=_0x50ded5['type'])return;const {data:_0x1f840d}=_0x50ded5;return _0x1f840d&&_0x1f840d['commandName']===_0x58d350?_0x1f840d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2cfefe,'*Format:*\x20%0',_0x4ad927)}:{'type':'format','content':o(_0x2cfefe,'*Remove\x20format:*\x20%0',_0x4ad927)}:void 0x0;});}_0x3266e4('bold',o(_0x2cfefe,'FORMAT_BOLD')),_0x3266e4('italic',o(_0x2cfefe,'FORMAT_ITALIC')),_0x3266e4('underline',o(_0x2cfefe,'FORMAT_UNDERLINE')),_0x3266e4('code',o(_0x2cfefe,'FORMAT_CODE')),_0x3266e4('strikethrough',o(_0x2cfefe,'FORMAT_STRIKETHROUGH')),_0x3266e4('subscript',o(_0x2cfefe,'FORMAT_SUBSCRIPT')),_0x3266e4('superscript',o(_0x2cfefe,'FORMAT_SUPERSCRIPT'));}}class O extends _0x20810f{['afterInit'](){const _0x5c48f5=this['editor'],_0x3a6fc5=_0x5c48f5['locale'];if(!_0x5c48f5['plugins']['has']('BlockQuoteEditing'))return;const _0x2480f0=_0x5c48f5['plugins']['get']('TrackChangesEditing'),_0x371620=this['editor']['commands']['get']('blockQuote');_0x2480f0['enableCommand']('blockQuote',(_0x3fc389,_0x309aad={})=>{const _0x10a987=this['editor']['model']['document']['selection'],_0x4d7fa=_0x309aad&&void 0x0!==_0x309aad['forceValue']?_0x309aad['forceValue']:!_0x371620['value'];let _0x46dacd=[];if(_0x4d7fa){const _0x25aedc=Array['from'](_0x10a987['getSelectedBlocks']())['filter'](_0x10afee=>oo(_0x10afee)||function(_0x1d0c9b,_0x6fe07){const _0x165d1f=_0x6fe07['checkChild'](_0x1d0c9b['parent'],'blockQuote'),_0x4a432b=_0x6fe07['checkChild'](['$root','blockQuote'],_0x1d0c9b);return _0x165d1f&&_0x4a432b;}(_0x10afee,this['editor']['model']['schema']));_0x46dacd=to(_0x25aedc,_0x5c48f5['model']);}else{const _0x1d7c9a=Array['from'](_0x10a987['getSelectedBlocks']())['filter'](_0x4f55eb=>oo(_0x4f55eb));_0x46dacd=to(_0x1d7c9a,_0x5c48f5['model']);}_0x5c48f5['model']['change'](()=>{for(const _0x222d36 of _0x46dacd)_0x2480f0['markBlockFormat'](_0x222d36,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4d7fa}]});});}),_0x2480f0['descriptionFactory']['registerDescriptionCallback'](_0x2da872=>{const {data:_0x4b109d}=_0x2da872;if(_0x4b109d&&'blockQuote'==_0x4b109d['commandName']){const _0x4ae659=o(_0x3a6fc5,'ELEMENT_BLOCK_QUOTE');return _0x4b109d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3a6fc5,'*Set\x20format:*\x20%0',_0x4ae659)}:{'type':'format','content':o(_0x3a6fc5,'*Remove\x20format:*\x20%0',_0x4ae659)};}});}}function oo(_0x9b19f7){return'blockQuote'==_0x9b19f7['parent']['name'];}class G extends _0x20810f{['afterInit'](){const _0x35a391=this['editor'];_0x35a391['plugins']['has']('CaseChange')&&(_0x35a391['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x35a391['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x35a391['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x20810f{['afterInit'](){const _0x4a06a6=this['editor'];_0x4a06a6['commands']['get']('ckbox')&&_0x4a06a6['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x20810f{['afterInit'](){const _0x239385=this['editor'];if(!_0x239385['plugins']['has']('CodeBlock'))return;const _0x283933=_0x239385['plugins']['get']('TrackChangesEditing'),_0xd5229b=_0x239385['locale'],_0x4424f9=_0x239385['config']['get']('codeBlock')['languages'],_0x2b4900=_0x239385['commands']['get']('codeBlock');_0x283933['enableCommand']('indentCodeBlock'),_0x283933['enableCommand']('outdentCodeBlock'),_0x283933['enableCommand']('codeBlock',(_0x21f0ae,_0x52f605={})=>{const _0x42a089=_0x239385['model'],_0x3ac7a7=_0x239385['model']['document']['selection'],_0x2aa5e8=_0x52f605&&void 0x0!==_0x52f605['forceValue']?_0x52f605['forceValue']:!_0x2b4900['value'];let _0x47028a;_0x52f605['language']||(_0x52f605['language']=_0x4424f9[0x0]['language']),_0x47028a=_0x2aa5e8?Array['from'](_0x3ac7a7['getSelectedBlocks']())['filter'](_0x5d8057=>eo(_0x5d8057)||function(_0x11c7e2,_0x4c2177){if(_0x11c7e2['is']('rootElement')||_0x4c2177['isLimit'](_0x11c7e2))return!0x1;return _0x4c2177['checkChild'](_0x11c7e2['parent'],'codeBlock');}(_0x5d8057,_0x42a089['schema'])):Array['from'](_0x3ac7a7['getSelectedBlocks']())['filter'](_0x4e623d=>eo(_0x4e623d));const _0x30be05=to(_0x47028a,_0x42a089);_0x42a089['change'](()=>{for(const _0x3ed470 of _0x30be05)_0x283933['markBlockFormat'](_0x3ed470,{'commandName':'codeBlock','commandParams':[{..._0x52f605,'forceValue':_0x2aa5e8}],'formatGroupId':'blockName'});});}),(_0x283933['descriptionFactory']['registerElementLabel']('codeBlock',_0x19e1e6=>o(_0xd5229b,'ELEMENT_CODE_BLOCK',_0x19e1e6)),_0x283933['descriptionFactory']['registerDescriptionCallback'](_0xfe88d1=>{if('formatBlock'!=_0xfe88d1['type'])return;const _0x2163d8=_0xd5229b['t'],{data:_0x260b11}=_0xfe88d1;if(!_0x260b11||'codeBlock'!=_0x260b11['commandName'])return;const _0xf11ca9=_0x260b11['commandParams'][0x0]['language'],_0x5b1b52=_0x2163d8(_0x4424f9['find'](_0x3d41b5=>_0x3d41b5['language']===_0xf11ca9)['label'])['toLowerCase']();return _0x260b11['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xd5229b,'*Set\x20format:*\x20%0',o(_0xd5229b,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5b1b52+')')}:{'type':'format','content':o(_0xd5229b,'*Remove\x20format:*\x20%0',o(_0xd5229b,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x31c8a8){return'codeBlock'==_0x31c8a8['name'];}class H extends _0x20810f{['afterInit'](){const _0x403a20=this['editor'];if(!_0x403a20['plugins']['has']('CommentsEditing'))return;_0x403a20['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x52ae09,_0x5ce507,_0x226d7b){const _0x1a1633=[];for(const _0x4bad1f of _0x5ce507['getItems']())_0x4bad1f['hasAttribute'](_0x52ae09)&&_0x1a1633['push'](_0x226d7b['createRangeOn'](_0x4bad1f));return _0x1a1633;}function _e(_0x521b3d,_0x584e93,{showActiveMarker:_0x371cf7=!0x0}={}){const _0x1ac405=_0x521b3d['plugins']['get']('TrackChangesEditing');return(_0x3e2890,_0x3cfd71,_0x511ab7)=>{if(!_0x511ab7['consumable']['test'](_0x3cfd71['markerRange'],_0x3e2890['name']))return;const _0x1a46d5=_0x3cfd71['markerRange']['getWalker'](),_0x3deada=_0x3cfd71['markerRange']['start'],_0xa3d8ea=_0x521b3d['model']['schema'];let _0x21313c=null,_0x453443=null,_0x38af74=!0x1,_0x24071e=!0x1;for(const _0x3559d0 of _0x1a46d5){const _0x2d6dd4=_0x3559d0['item'];_0x38af74=_0x38af74||_0xa3d8ea['isContent'](_0x2d6dd4);const _0x437674=_0x511ab7['mapper']['toViewElement'](_0x2d6dd4);if(_0x437674&&_0x437674['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3559d0['type']&&(_0xa3d8ea['isBlock'](_0x2d6dd4)&&!_0xa3d8ea['isLimit'](_0x2d6dd4)&&(_0x2d6dd4['nextSibling']||_0x3deada['isAtEnd']?_0x21313c&&_0x21313c['parent']==_0x2d6dd4||(_0x21313c=_0x2d6dd4,_0x40221c(_0x3559d0['previousPosition']),_0x24071e=!0x0):_0x453443=_0x453443||_0x3559d0['previousPosition']));}function _0x40221c(_0x402a97){const _0x186484=_0x511ab7['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x584e93}),_0x13f334=_0x511ab7['mapper']['toViewPosition'](_0x402a97);_0x371cf7&&_0x1ac405['activeMarkers']['includes'](_0x3cfd71['markerName'])&&_0x511ab7['writer']['addClass']('ck-suggestion-marker--active',_0x186484),_0x511ab7['writer']['insert'](_0x13f334,_0x186484),_0x511ab7['mapper']['bindElementToMarker'](_0x186484,_0x3cfd71['markerName']);}_0x38af74||_0x24071e||!_0x453443||_0x40221c(_0x453443);};}class q extends _0x20810f{static get['requires'](){return[_0x515384];}['init'](){const _0x5852ed=this['editor'],_0x5f4871=_0x5852ed['plugins']['get']('TrackChangesEditing');_0x5f4871['enableCommand']('delete');const _0x6f5959=_0x5852ed['commands']['get']('deleteForward');_0x5f4871['enableCommand']('deleteForward',(_0x2753bb,_0x2504da={})=>{const _0x4c66e2=_0x5852ed['model']['createSelection'](_0x5852ed['model']['document']['selection']);_0x4c66e2['isCollapsed']&&_0x5852ed['model']['modifySelection'](_0x4c66e2,{'direction':'forward','unit':_0x2504da['unit']});const _0x1a357b=_0x4c66e2['getFirstRange'](),_0x3f7eb6=_0x3f67f3['fromRange'](_0x1a357b);let _0x535853;_0x2753bb(_0x2504da),_0x535853='$graveyard'==_0x3f7eb6['root']['rootName']?_0x5852ed['model']['createRange'](_0x1a357b['start']):_0x5852ed['model']['createRange'](_0x3f7eb6['start'],_0x3f7eb6['end']),_0x3f7eb6['detach'](),_0x5852ed['model']['enqueueChange'](_0x6f5959['buffer']['batch'],_0x5beea6=>{_0x6f5959['buffer']['lock'](),_0x5beea6['setSelection'](_0x5beea6['createRange'](_0x535853['end'])),_0x6f5959['buffer']['unlock']();});}),_0x5852ed['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x5852ed,'merge'),{'priority':'high'}),_0x5852ed['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x411b08,_0xabe561,_0x35bea9)=>{_0x35bea9['options']['showSuggestionHighlights']&&_e(_0x5852ed,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x411b08,_0xabe561,_0x35bea9);},{'priority':'high'}),_0x5852ed['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x42649e,_0x1daf48,_0x673eb7)=>{const _0x26bf43=_0x673eb7['mapper']['markerNameToElements'](_0x1daf48['markerName']);if(_0x26bf43){for(const _0xb68701 of _0x26bf43)_0xb68701['is']('uiElement')&&(_0x673eb7['mapper']['unbindElementFromMarkerName'](_0xb68701,_0x1daf48['markerName']),_0x673eb7['writer']['remove'](_0xb68701));}},{'priority':'high'});}}class z extends _0x20810f{['afterInit'](){const _0x37c578=this['editor'];if(!_0x37c578['plugins']['has']('ListEditing'))return;const _0x4f154e=_0x37c578['locale'],_0x4b74e9=_0x37c578['plugins']['get']('TrackChangesEditing'),_0x493233=_0x37c578['plugins']['has']('TodoListEditing'),_0x56f0ed=!!_0x37c578['config']['get']('list.multiBlock');function _0x161494(_0x8c2eee){return{'type':'format','content':''+o(_0x4f154e,'*Set\x20format:*\x20%0',_0x8c2eee)};}function _0x2a50c2(_0x351102){return{'type':'format','content':''+o(_0x4f154e,'*Remove\x20format:*\x20%0',_0x351102)};}_0x4b74e9['enableDefaultAttributesIntegration']('numberedList'),_0x4b74e9['enableDefaultAttributesIntegration']('bulletedList'),_0x4b74e9['enableDefaultAttributesIntegration']('customNumberedList'),_0x4b74e9['enableDefaultAttributesIntegration']('customBulletedList'),_0x4b74e9['enableDefaultAttributesIntegration']('indentList'),_0x4b74e9['enableDefaultAttributesIntegration']('outdentList'),_0x4b74e9['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4b74e9['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4b74e9['registerBlockAttribute']('listItemId'),_0x4b74e9['registerBlockAttribute']('listType'),_0x4b74e9['registerBlockAttribute']('listIndent'),_0x56f0ed&&(_0x4b74e9['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4b74e9['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x493233&&(_0x4b74e9['enableDefaultAttributesIntegration']('todoList'),_0x4b74e9['enableDefaultAttributesIntegration']('checkTodoList'),_0x4b74e9['registerBlockAttribute']('todoListChecked'),_0x4b74e9['descriptionFactory']['registerDescriptionCallback'](_0xd39700=>{const {data:_0x17098e}=_0xd39700;if(_0x17098e&&'todoListChecked'==_0x17098e['key'])return{'type':'format','content':_0x17098e['newValue']?o(_0x4f154e,'*Check\x20item*'):o(_0x4f154e,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1e4786=>{if(_0x1e4786['batch']['isUndo'])return!0x1;let _0x7b3fce=!0x1;const _0x409e5f=_0x4b74e9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x47fcc2=>'todoListChecked'===_0x4b74e9['_getAttributeKey'](_0x47fcc2));for(const _0x53181a of _0x409e5f){'todo'!=_0x53181a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4b74e9['_findSuggestions'](_0x53181a['getFirstRange'](),'attribute')['find'](_0x3f9508=>'listType'===_0x4b74e9['_getAttributeKey'](_0x3f9508['suggestion']))||(_0x1e4786['removeMarker'](_0x53181a['getFirstMarker']()),_0x7b3fce=!0x0));}return _0x7b3fce;})),_0x4b74e9['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x4f154e,'FORMAT_INDENT'));const _0x49897c={'type':'format','content':''};_0x4b74e9['descriptionFactory']['registerDescriptionCallback'](_0x5cafa3=>{const {data:_0x2e0416}=_0x5cafa3;if(!_0x2e0416||'listType'!=_0x2e0416['key'])return;let _0x5ec2c5=_0x5cafa3['head'];for(;_0x5ec2c5;){if(_0x5ec2c5['data']&&(('listStyle'==_0x5ec2c5['data']['key']||'listMarkerStyle'==_0x5ec2c5['data']['key'])&&(_0x5ec2c5['data']['newValue']&&'default'!=_0x5ec2c5['data']['newValue']||'default'!=_0x5ec2c5['data']['oldValue']&&!_0x2e0416['newValue'])||!_0x56f0ed&&_0x5ec2c5['data']['key']==m))return _0x49897c;_0x5ec2c5=_0x5ec2c5['next'];}if(null==_0x2e0416['newValue'])switch(_0x2e0416['oldValue']){case'bulleted':return _0x2a50c2(o(_0x4f154e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2a50c2(o(_0x4f154e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2a50c2(o(_0x4f154e,'ELEMENT_TODO_LIST'));}switch(_0x2e0416['newValue']){case'bulleted':return _0x161494(o(_0x4f154e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x161494(o(_0x4f154e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x161494(o(_0x4f154e,'ELEMENT_TODO_LIST'));}}),_0x4b74e9['descriptionFactory']['registerDescriptionCallback'](_0x4e1ff1=>{const {data:_0x18ab86}=_0x4e1ff1;if(_0x18ab86&&'listIndent'==_0x18ab86['key'])return null==_0x18ab86['newValue']||null==_0x18ab86['oldValue']&&0x0==_0x18ab86['newValue']?_0x49897c:void 0x0;}),_0x4b74e9['descriptionFactory']['registerDescriptionCallback'](_0x2694e4=>{if('attribute'!=_0x2694e4['type'])return;const {data:_0xf5f126}=_0x2694e4;if(!_0xf5f126||'listItemId'!=_0xf5f126['key'])return;const _0x4a2a94=le(_0x2694e4);return'newValue'==_0x4a2a94?{'type':'format','content':o(_0x4f154e,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4a2a94?{'type':'format','content':o(_0x4f154e,'*Split:*\x20list\x20item')}:_0x49897c;}),_0x37c578['model']['document']['registerPostFixer'](_0x3d136d=>this['listItemIdFixer'](_0x3d136d)),_0x37c578['model']['document']['registerPostFixer'](_0x2d69bb=>this['noTrackChangesFixer'](_0x2d69bb)),_0x37c578['model']['document']['registerPostFixer'](_0x47ef7c=>this['assureChains'](_0x47ef7c)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1a4895){if(_0x1a4895['batch']['isUndo']||!_0x1a4895['batch']['isLocal'])return!0x1;let _0x17681c=!0x1;const _0x3cde88=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5c64f2=>_0x5c64f2['data']&&'listItemId'==_0x5c64f2['data']['key'])['filter'](_0x2fbbd2=>_0x2fbbd2['data']['newValue']&&_0x2fbbd2['data']['oldValue']);for(const _0x3ad1cd of _0x3cde88)le(_0x3ad1cd)||(_0x1a4895['removeMarker'](_0x3ad1cd['getFirstMarker']()),_0x17681c=!0x0);return _0x17681c;}['noTrackChangesFixer'](_0x1b4213){if(_0x1b4213['batch']['isUndo']||!_0x1b4213['batch']['isLocal'])return!0x1;const _0x399eae=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x399eae['trackChangesCommand']['value'])return!0x1;let _0x2108c0=!0x1;const _0x4a69a1=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x39c9bf=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x294a80=>'attribute'==_0x294a80['type'])['filter'](_0x3dd35c=>_0x4a69a1['includes'](_0x3dd35c['attributeKey']));if(0x0==_0x39c9bf['length'])return _0x2108c0;for(const _0x130bdd of _0x39c9bf){const _0x64aff9=_0x399eae['_findSuggestions'](_0x130bdd['range'],'attribute')['filter'](_0x5aba35=>!_0x5aba35['meta']['isNextTo'])['map'](_0x2140df=>_0x2140df['suggestion'])['filter'](_0x4ab741=>{const _0x4f6ad3=_0x399eae['_getAttributeKey'](_0x4ab741);return _0x4a69a1['includes'](_0x4f6ad3);});if(_0x64aff9['length']){for(const _0x5bc826 of _0x64aff9)_0x1b4213['removeMarker'](_0x5bc826['getFirstMarker']());_0x2108c0=!0x0;}}return _0x2108c0;}['assureChains'](_0x13188f){if(_0x13188f['batch']['isUndo']||!_0x13188f['batch']['isLocal'])return!0x1;const _0x5991c2=this['editor']['plugins']['get']('TrackChangesEditing');let _0xe5c98f=!0x1;const _0x2b9b05=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x2b071e of _0x5991c2['getSuggestions']({'skipNotAttached':!0x0})){const _0x533964=_0x5991c2['_findSuggestions'](_0x2b071e['getFirstRange'](),'attribute')['map'](_0x446c65=>_0x446c65['suggestion'])['filter'](_0x2cb25d=>_0x2cb25d['data']&&_0x2b9b05['includes'](_0x2cb25d['data']['key']));if(!_0x533964['length'])continue;const _0x3eee29=_0x533964[0x0]['head']['attributes']['groupId'];if(!_0x533964['every'](_0x4f60eb=>_0x4f60eb['attributes']['groupId']===_0x3eee29)){for(const _0x16ce27 of _0x533964)_0x22d3bd(_0x16ce27,_0x3eee29)&&(_0xe5c98f=!0x0);}}return _0xe5c98f;function _0x1b99d5(_0x56449b,_0x56f3e0){for(const _0x27850d of _0x5991c2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x83ab6d=>'attribute'==_0x83ab6d['type']&&_0x83ab6d['attributes']['groupId']==_0x56449b))_0x27850d['setAttribute']('groupId',_0x56f3e0);}function _0x22d3bd(_0x4d0f50,_0x57bf79){let _0x3f566c=_0x4d0f50['head'],_0x2148ba=!0x1;for(;_0x3f566c;)_0x3f566c['attributes']['groupId']!=_0x57bf79&&(_0x1b99d5(_0x3f566c['attributes']['groupId'],_0x57bf79),_0x3f566c['setAttribute']('groupId',_0x57bf79),_0x2148ba=!0x0),_0x3f566c=_0x3f566c['next'];return _0x2148ba;}}['_supportLegacySuggestions'](){const _0x452eea=this['editor'],_0x725d7c=_0x452eea['locale'],_0x174d68=_0x452eea['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x174d68['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x331d3e,_0x5424e1){const _0x139429=[];for(let _0x12e17a of _0x331d3e)_0x12e17a['start']['nodeAfter']===_0x12e17a['end']['parent']&&(_0x12e17a=_0x452eea['model']['createRange'](_0x452eea['model']['createPositionAt'](_0x12e17a['start']['nodeAfter'],0x0))),_0x139429['push'](_0x12e17a);_0x452eea['model']['change'](_0x5d23e7=>{const _0x50de7c=_0x452eea['model']['document']['selection'],_0x304545=Array['from'](_0x50de7c['getRanges']())['map'](_0x30bbca=>_0x3f67f3['fromRange'](_0x30bbca));_0x5d23e7['setSelection'](_0x139429),_0x452eea['commands']['get'](_0x5424e1['commandName'])['refresh'](),_0x5424e1['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x452eea['execute'](_0x5424e1['commandName'],..._0x5424e1['commandParams']),_0x5d23e7['setSelection'](_0x304545);for(const _0x497ec1 of _0x304545)_0x497ec1['detach']();});}),_0x174d68['descriptionFactory']['registerElementLabel'](function(_0x3c4fe9){const _0x437033=!_0x452eea['model']['schema']['isObject'](_0x3c4fe9),_0x1a0a43=_0x3c4fe9['previousSibling'],_0x540a2d=_0x3c4fe9['nextSibling'],_0x362e43=_0x3c4fe9['getAttribute']('listItemId'),_0x228231=!_0x1a0a43||_0x1a0a43['getAttribute']('listItemId')!==_0x362e43,_0x34f1cc=!_0x540a2d||_0x540a2d['getAttribute']('listItemId')!==_0x362e43;return _0x437033&&Boolean(_0x362e43)&&_0x228231&&_0x34f1cc;},_0xab77f4=>o(_0x725d7c,'ELEMENT_LIST_ITEM',_0xab77f4));}['_registerLegacyDescription'](){const _0x5a77f8=this['editor'],_0x1022cb=_0x5a77f8['locale'];function _0x706928(_0x1f2fb4){const _0x476c64=_0x5a77f8['commands']['get']('bulletedList')['value'],_0x2d2f80=_0x5a77f8['commands']['get']('numberedList')['value'];return'numberedList'===_0x1f2fb4?_0x476c64:_0x2d2f80;}_0x5a77f8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x49e4ed){if('formatBlock'!=_0x49e4ed['type'])return;const {data:_0x315730}=_0x49e4ed;if(!_0x315730)return;let _0x101dc8,_0x181031,_0x259530,_0x3cb9ed;switch(_0x315730['commandName']){case'bulletedList':_0x259530=_0x315730['commandParams'][0x0]['forceValue'],_0x3cb9ed=_0x706928(_0x315730['commandName']),_0x101dc8=_0x259530?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3cb9ed&&_0x5a77f8['config']['get']('list.multiBlock')||(_0x101dc8='*Change\x20to:*\x20%0'),_0x181031={'type':'format','content':o(_0x1022cb,_0x101dc8,o(_0x1022cb,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x259530=_0x315730['commandParams'][0x0]['forceValue'],_0x3cb9ed=_0x706928(_0x315730['commandName']),_0x101dc8=_0x259530?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3cb9ed&&_0x5a77f8['config']['get']('list.multiBlock')||(_0x101dc8='*Change\x20to:*\x20%0'),_0x181031={'type':'format','content':o(_0x1022cb,_0x101dc8,o(_0x1022cb,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x101dc8='*Indent:*\x20%0',_0x181031={'type':'format','content':o(_0x1022cb,_0x101dc8,o(_0x1022cb,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x101dc8=function(_0x151806){const _0x5383bd=_0x151806['getFirstRange']();let _0x108f93=_0x5383bd['start']['nodeAfter'];for(;_0x108f93&&_0x5383bd['containsItem'](_0x108f93);){if(_0x108f93['getAttribute']('listIndent')>0x0)return!0x1;_0x108f93=_0x108f93['nextSibling'];}return!0x0;}(_0x49e4ed)?o(_0x1022cb,'*Format:*\x20remove\x20from\x20%0',o(_0x1022cb,function(_0x53f245){return'ELEMENT_'+_0x53f245['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x49e4ed))):o(_0x1022cb,'*Outdent:*\x20%0',o(_0x1022cb,'ELEMENT_LIST_ITEM')),_0x181031={'type':'format','content':_0x101dc8};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x315730['multipleBlocks']&&(_0x101dc8='*Merge:*\x20%0',_0x181031={'type':'deletion','content':o(_0x1022cb,_0x101dc8,o(_0x1022cb,'ELEMENT_LIST_ITEM'))});}return _0x181031;});}}function le(_0x392be4){let _0x57661f=_0x392be4['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x57661f;){const _0x20e0b8=_0x57661f['getAttribute']('listItemId');if(!_0x20e0b8)return!0x1;if(_0x20e0b8==_0x392be4['data']['newValue'])return'newValue';if(_0x20e0b8==_0x392be4['data']['oldValue'])return'oldValue';_0x57661f=_0x57661f['previousSibling'];}return!0x1;}class ue extends _0x20810f{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2a8a73=this['editor']['config']['get']('list.properties'),_0x4d3d71=this['editor']['plugins']['get']('TrackChangesEditing');_0x2a8a73['styles']&&(_0x4d3d71['enableDefaultAttributesIntegration']('listStyle'),_0x4d3d71['registerBlockAttribute']('listStyle')),_0x2a8a73['reversed']&&(_0x4d3d71['enableDefaultAttributesIntegration']('listReversed'),_0x4d3d71['registerBlockAttribute']('listReversed')),_0x2a8a73['startIndex']&&(_0x4d3d71['enableDefaultAttributesIntegration']('listStart'),_0x4d3d71['registerBlockAttribute']('listStart'));const _0x3b90d0={'type':'format','content':''};_0x4d3d71['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x174f20=this['editor']['locale'];_0x4d3d71['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x174f20,'FORMAT_LIST_REVERSED')),_0x4d3d71['descriptionFactory']['registerDescriptionCallback'](_0x19039c=>{const {data:_0xfd000e}=_0x19039c;if(_0xfd000e&&'listReversed'==_0xfd000e['key'])return null==_0xfd000e['newValue']||0x0==_0xfd000e['newValue']&&null==_0xfd000e['oldValue']?_0x3b90d0:void 0x0;}),_0x4d3d71['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x174f20,'FORMAT_LIST_START')),_0x4d3d71['descriptionFactory']['registerDescriptionCallback'](_0x179915=>{const {data:_0x196572}=_0x179915;if(_0x196572&&'listStart'==_0x196572['key'])return null==_0x196572['newValue']||0x1==_0x196572['newValue']&&null==_0x196572['oldValue']?_0x3b90d0:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1a8904=>{if(_0x1a8904['batch']['isUndo'])return!0x1;let _0x420189=!0x1;const _0x2625a9=_0x4d3d71['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x552d1b=>{const _0x595dd2=_0x4d3d71['_getAttributeKey'](_0x552d1b);return'listStart'==_0x595dd2||'listReversed'==_0x595dd2;});for(const _0x1e68b2 of _0x2625a9){const _0x45dd48=_0x1e68b2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x45dd48||'customNumbered'==_0x45dd48)continue;_0x4d3d71['_findSuggestions'](_0x1e68b2['getFirstRange'](),'attribute')['find'](_0x37d44b=>'listType'==_0x4d3d71['_getAttributeKey'](_0x37d44b['suggestion']))||(_0x1a8904['removeMarker'](_0x1e68b2['getFirstMarker']()),_0x420189=!0x0);}return _0x420189;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5394f6){const _0x473f7b=this['editor']['locale'],{data:_0x59aad3}=_0x5394f6,_0x5104ea={'type':'format','content':''};if(!_0x59aad3||'listStyle'!=_0x59aad3['key'])return;if(!_0x59aad3['oldValue'])return'default'==_0x59aad3['newValue']?_0x5104ea:{'type':'format','content':''+o(_0x473f7b,'*Set\x20format:*\x20%0',o(_0x473f7b,this['_getTranslationKeyForListStyle'](_0x59aad3['newValue'])))};if(!_0x59aad3['newValue']){if('default'==_0x59aad3['oldValue'])return _0x5104ea;let _0x2294d7=_0x5394f6['head'];for(;_0x2294d7;){if(_0x2294d7['data']&&'listType'==_0x2294d7['data']['key']&&_0x2294d7['data']['newValue'])return _0x5104ea;_0x2294d7=_0x2294d7['next'];}return{'type':'format','content':''+o(_0x473f7b,'*Remove\x20format:*\x20%0',o(_0x473f7b,this['_getTranslationKeyForListStyle'](_0x59aad3['oldValue'])))};}if('default'!=_0x59aad3['newValue'])return{'type':'format','content':''+o(_0x473f7b,'*Set\x20format:*\x20%0',o(_0x473f7b,this['_getTranslationKeyForListStyle'](_0x59aad3['newValue'])))};let _0x418090=_0x5394f6['head'];for(;_0x418090;){if(_0x418090['data']&&'listType'==_0x418090['data']['key']&&_0x418090['data']['newValue']&&_0x418090['data']['oldValue'])return _0x5104ea;_0x418090=_0x418090['next'];}return{'type':'format','content':o(_0x473f7b,'*Set\x20format:*\x20%0',o(_0x473f7b,'ELEMENT_'+_0x5394f6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x5d5f13=this['editor'],_0x518878=_0x5d5f13['locale'];_0x5d5f13['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15565a=>{if('formatBlock'!=_0x15565a['type'])return;const {data:_0x59b268}=_0x15565a;if(!_0x59b268)return;let _0x159a34,_0x19ac1c;switch(_0x59b268['commandName']){case'listStyle':_0x159a34='*Change\x20to:*\x20%0',_0x19ac1c={'type':'format','content':o(_0x518878,_0x159a34,o(_0x518878,this['_getTranslationKeyForListStyle'](_0x59b268['commandParams'][0x0]['type'])))};break;case'listReversed':_0x159a34=_0x59b268['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x19ac1c={'type':'format','content':o(_0x518878,_0x159a34)};break;case'listStart':_0x159a34='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x19ac1c={'type':'format','content':o(_0x518878,_0x159a34,_0x59b268['commandParams'][0x0]['startIndex'])};}return _0x19ac1c;});}['_getTranslationKeyForListStyle'](_0x267845){return'ELEMENT_'+function(_0x45c5df){if(pe['includes'](_0x45c5df))return'bulleted';if(ye['includes'](_0x45c5df))return'numbered';return null;}(_0x267845)['toUpperCase']()+'_LIST_'+_0x267845['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x20810f{static get['requires'](){return[_0xb307a7];}['init'](){const _0x250d8b=this['editor'],_0x210cb4=_0x250d8b['plugins']['get']('TrackChangesEditing'),_0x44c21c=_0x250d8b['commands']['get']('enter');_0x210cb4['enableCommand']('enter',()=>{_0x250d8b['model']['change'](_0x171044=>{const _0x349f93=_0x250d8b['model']['document']['selection'],_0x547b5b=_0x349f93['getFirstPosition'](),_0x372be1=_0x3f67f3['fromRange'](_0x349f93['getFirstRange']());if(_0x44c21c['enterBlock'](_0x171044)){const _0x348eae=_0x250d8b['model']['createPositionAt'](_0x547b5b['parent']['nextSibling'],0x0),_0x433076=_0x171044['createRange'](_0x547b5b,_0x348eae);_0x210cb4['markInsertion'](_0x433076);}else _0x171044['setSelection'](_0x171044['createRange'](_0x372be1['end']));_0x372be1['detach'](),_0x44c21c['fire']('afterExecute',{'writer':_0x171044});});}),_0x250d8b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x250d8b,'split'),{'priority':'high'}),_0x250d8b['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x15abd3,_0x3163f1,_0x30da1e)=>{const _0xbb010e=_0x30da1e['mapper']['markerNameToElements'](_0x3163f1['markerName']);if(_0xbb010e){for(const _0x10bd77 of _0xbb010e)_0x10bd77['hasClass']('ck-suggestion-marker-split')&&(_0x30da1e['mapper']['unbindElementFromMarkerName'](_0x10bd77,_0x3163f1['markerName']),_0x30da1e['writer']['remove'](_0x10bd77));}},{'priority':'high'}),_0x250d8b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x365e0c,_0x5ef2af,_0x1c4dfd)=>{_0x1c4dfd['options']['showSuggestionHighlights']&&_e(_0x250d8b,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x365e0c,_0x5ef2af,_0x1c4dfd);},{'priority':'high'});}}class J extends _0x20810f{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x4c4fca=this['editor']['plugins']['get']('TrackChangesEditing');_0x4c4fca['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x4c4fca['enableCommand']('findNext'),_0x4c4fca['enableCommand']('findPrevious'),_0x4c4fca['enableCommand']('replace'),_0x4c4fca['enableCommand']('replaceAll');}['handleFindCommand'](_0x24369f,_0x5a20b3,_0x305935={}){const _0x223144=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x24369f(_0x1d4eeb=>{let _0x2dc1e8=('string'==typeof _0x5a20b3?_0x223144['findByTextCallback'](_0x5a20b3,_0x305935):_0x5a20b3)(_0x1d4eeb);Array['isArray'](_0x2dc1e8)&&(_0x2dc1e8={'results':_0x2dc1e8,'searchText':'string'==typeof _0x5a20b3?_0x5a20b3:''});const _0x5795c2=_0x2dc1e8['results']['filter'](_0x566d2c=>!0x1===this['_isInDeletionRange'](_0x566d2c,_0x1d4eeb['item']));return{..._0x2dc1e8,'results':_0x5795c2};},_0x305935);}['_isInDeletionRange'](_0xe8ede2,_0x27ba83){const _0x35e618=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x27ba83,_0xe8ede2['start']),this['editor']['model']['createPositionAt'](_0x27ba83,_0xe8ede2['end']));for(const _0x4ce876 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x35e618['getIntersection'](_0x4ce876['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Q extends _0x20810f{['afterInit'](){const _0x4637e6=this['editor']['locale'],_0x4136a4=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1b8c12,commandName:_0x111be0}of ro)this['editor']['plugins']['has'](_0x1b8c12)&&(_0x4136a4['enableDefaultAttributesIntegration'](_0x111be0),_0x4136a4['registerInlineAttribute'](_0x111be0));_0x4136a4['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x4637e6,'FORMAT_FONT_SIZE')),_0x4136a4['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x4637e6,'FORMAT_FONT_FAMILY')),_0x4136a4['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x4637e6,'FORMAT_FONT_COLOR')),_0x4136a4['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x4637e6,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x483f76=this['editor'],_0x398d4c=_0x483f76['locale'];_0x483f76['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc17534=>{const _0x17775e=_0x398d4c['t'];if('formatInline'!=_0xc17534['type'])return;const {data:_0x1b88af}=_0xc17534;if(null!=_0x1b88af){if('fontSize'==_0x1b88af['commandName']){const _0x1d12e0=_0x1b88af['commandParams'][0x0]['value'];if(_0x1d12e0){const _0x5b61e4=_0x17775e(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2a278c=>_0x2a278c['model']==_0x1d12e0)['title'])['toLowerCase']();return{'type':'format','content':o(_0x398d4c,'*Set\x20font\x20size:*\x20%0',_0x5b61e4)};}return{'type':'format','content':o(_0x398d4c,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1b88af['commandName']){const _0x3d2898=_0x1b88af['commandParams'][0x0]['value'];return _0x3d2898?{'type':'format','content':o(_0x398d4c,'*Set\x20font\x20family:*\x20%0',_0x3d2898)}:{'type':'format','content':o(_0x398d4c,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1b88af['commandName']){const _0x389732=_0x1b88af['commandParams'][0x0]['value'];if(_0x389732){const _0x4911a2=_0x557595(this['editor']['config']['get']('fontColor.colors'))['find'](_0x544a10=>_0x544a10['model']==_0x389732);let _0x21859d=_0x389732,_0x4bf627='';return _0x4911a2&&(_0x21859d=_0x4911a2['label'],_0x4bf627=_0x17775e(_0x21859d)['toLowerCase']()),{'type':'format','content':o(_0x398d4c,'*Set\x20font\x20color:*\x20%0',_0x4bf627)['trim'](),'color':{'value':_0x389732,'title':_0x4bf627||_0x21859d}};}return{'type':'format','content':o(_0x398d4c,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1b88af['commandName']){const _0x488aa7=_0x1b88af['commandParams'][0x0]['value'];if(_0x488aa7){const _0x2e755d=_0x557595(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x46cf29=>_0x46cf29['model']==_0x488aa7);let _0x2f3d4b=_0x488aa7,_0x542ee4='';return _0x2e755d&&(_0x2f3d4b=_0x2e755d['label'],_0x542ee4=_0x17775e(_0x2f3d4b)['toLowerCase']()),{'type':'format','content':o(_0x398d4c,'*Set\x20font\x20background\x20color:*\x20%0',_0x542ee4)['trim'](),'color':{'value':_0x488aa7,'title':_0x542ee4||_0x2f3d4b}};}return{'type':'format','content':o(_0x398d4c,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x20810f{['afterInit'](){const _0x16f1d5=this['editor'],_0x340b58=_0x16f1d5['plugins']['get']('TrackChangesEditing'),_0x45d30d=_0x16f1d5['commands']['get']('copyFormat'),_0x325a0f=_0x16f1d5['commands']['get']('pasteFormat');_0x45d30d&&_0x325a0f&&(_0x340b58['enableDefaultAttributesIntegration']('pasteFormat'),_0x340b58['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x89ab71=this['editor'],_0x228250=_0x89ab71['locale'];_0x89ab71['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5949f1=>{if('formatBlock'!=_0x5949f1['type']&&'formatInline'!=_0x5949f1['type'])return;const {data:_0x7588d6}=_0x5949f1;if(_0x7588d6&&'pasteFormat'===_0x7588d6['commandName']){const _0x276fb7=[],_0x428651=_0x7588d6['commandParams'][0x0];for(const [_0x448a44,_0x212da4]of Object['entries'](_0x428651))_0x276fb7['push'](so(_0x89ab71,_0x448a44,_0x212da4));return _0x276fb7['length']?{'type':'format','content':o(_0x228250,'*Set\x20format\x20to:*\x20%0',_0x276fb7['join'](',\x20'))}:{'type':'format','content':o(_0x228250,'*Remove\x20all\x20formatting*')};}});}}function so(_0x5a723e,_0x5f1551,_0xf88c2d){const _0x167fa7=_0x5a723e['locale']['t'],_0x15987e=_0x5f1551['split'](/(?=[A-Z])/)['join']('\x20'),_0x1b125b=_0x167fa7(_0x15987e['charAt'](0x0)['toUpperCase']()+_0x15987e['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xf88c2d)return _0x1b125b;if('fontColor'===_0x5f1551||'fontBackgroundColor'===_0x5f1551){const _0x355dbe=_0x557595(_0x5a723e['config']['get']('fontColor.colors'))['find'](_0x40daf2=>_0x40daf2['model']==_0xf88c2d);return _0x1b125b+'\x20('+(_0x355dbe?_0x167fa7(_0x355dbe['label'])['toLowerCase']():_0xf88c2d)+')';}if('fontSize'===_0x5f1551&&isNaN(parseFloat(_0xf88c2d))){const _0x403363=_0x5a723e['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5a723e['config']['get']('fontSize.options'))['find'](_0x44d39d=>_0x44d39d['model']==_0xf88c2d);return _0x1b125b+'\x20('+(_0x403363?_0x167fa7(_0x403363['title'])['toLowerCase']():_0xf88c2d)+')';}return _0x1b125b+'\x20('+_0xf88c2d+')';}class Y extends _0x20810f{['_headingOptions'];['afterInit'](){const _0x1dfa1a=this['editor'];if(!_0x1dfa1a['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1dfa1a['config']['get']('heading.options');const _0x317154=_0x1dfa1a['locale'],_0xb4342d=_0x1dfa1a['plugins']['get']('TrackChangesEditing');_0xb4342d['enableDefaultAttributesIntegration']('heading');for(const _0x2d95a0 of this['_headingOptions'])'paragraph'!=_0x2d95a0['model']&&_0xb4342d['descriptionFactory']['registerElementLabel'](_0x2d95a0['model'],_0x38478d=>{const _0x31994f=this['_getHeadingLevel'](_0x2d95a0['model']);return null!==_0x31994f?_0xe3f129(_0x38478d,_0x31994f):_0x2a914b(_0x38478d,_0x2d95a0['title']);});function _0xe3f129(_0x3ac062,_0x25ec6b){return o(_0x317154,'ELEMENT_HEADING',[_0x3ac062,_0x25ec6b]);}function _0x2a914b(_0x143843,_0x5de116){return o(_0x317154,'ELEMENT_HEADING_CUSTOM',[_0x143843,_0x5de116]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x184f35=this['editor'],_0x1db87f=_0x184f35['locale'];function _0xc1fbb2(_0x2c78b8,_0x1fd30d){return o(_0x1db87f,'ELEMENT_HEADING_CUSTOM',[_0x2c78b8,_0x1fd30d]);}_0x184f35['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3afa75=>{if('formatBlock'!=_0x3afa75['type'])return;const {data:_0x174e80}=_0x3afa75;if(_0x174e80&&'heading'==_0x174e80['commandName']){const _0x27ebc9=_0x174e80['commandParams'][0x0]['value'],_0x2ffe1f=this['_getHeadingLevel'](_0x27ebc9);if(null!==_0x2ffe1f)return{'type':'format','content':o(_0x1db87f,'*Change\x20to:*\x20%0',(_0x3835a1=0x1,_0x3d002b=_0x2ffe1f,o(_0x1db87f,'ELEMENT_HEADING',[_0x3835a1,_0x3d002b])))};const _0x56293f=this['_headingOptions']['find'](_0x389de8=>_0x389de8['model']===_0x27ebc9)['title'];return{'type':'format','content':o(_0x1db87f,'*Change\x20to:*\x20%0',_0xc1fbb2(0x1,_0x56293f))};}var _0x3835a1,_0x3d002b;});}['_getHeadingLevel'](_0x38fe5b){const _0x208365=_0x38fe5b['match'](/^heading(\d+)/);if(_0x208365)return _0x208365[0x1];const _0x1929cb=this['_headingOptions']?.['find'](_0x5ee7f2=>_0x5ee7f2['model']==_0x38fe5b);if(_0x1929cb&&_0x1929cb['view']){const _0x334524=_0x1929cb['view'],_0x4e1444=(_0x334524['name']??_0x334524)['match'](/^h(\d+)/);if(_0x4e1444)return _0x4e1444[0x1];}return null;}}class Z extends _0x20810f{['afterInit'](){const _0x350303=this['editor'];if(!_0x350303['plugins']['has']('HighlightEditing'))return;const _0x4e1a23=_0x350303['plugins']['get']('TrackChangesEditing'),_0x1625cc=_0x350303['locale'];_0x4e1a23['enableDefaultAttributesIntegration']('highlight'),_0x4e1a23['registerInlineAttribute']('highlight'),_0x4e1a23['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x1625cc,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52fdaa=this['editor'],_0x45b331=_0x52fdaa['locale'];_0x52fdaa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc6fb50=>{if('formatInline'!=_0xc6fb50['type'])return;const {data:_0xfce4ba}=_0xc6fb50;if(_0xfce4ba&&'highlight'==_0xfce4ba['commandName']){const _0xb73b8b=_0x45b331['t'],_0x3d7884=_0xfce4ba['commandParams'][0x0]['value'];if(_0x3d7884){const _0xfbf16f=_0x52fdaa['config']['get']('highlight.options')['find'](_0x50078f=>_0x50078f['model']==_0x3d7884),_0x1075e2=_0xb73b8b(_0xfbf16f['title'])['toLowerCase']();return{'type':'format','content':o(_0x45b331,'*Set\x20highlight:*\x20%0',_0x1075e2),'color':{'value':_0xfbf16f['color'],'title':_0xfbf16f['title']}};}return{'type':'format','content':o(_0x45b331,'*Remove\x20highlight*',o(_0x45b331,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x20810f{['afterInit'](){const _0x3edeca=this['editor'];if(!_0x3edeca['plugins']['has']('HorizontalLineEditing'))return;_0x3edeca['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x246db8=_0x3edeca['plugins']['get']('TrackChangesEditing'),_0x4d7e05=_0x3edeca['locale'];_0x246db8['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3ef512=>o(_0x4d7e05,'ELEMENT_HORIZONTAL_LINE',_0x3ef512)),_0x3edeca['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x527345,{writer:_0x7fdf8c,options:_0xe553b9})=>{if(!_0xe553b9['showSuggestionHighlights'])return null;const _0x3123cf=_0x7fdf8c['createContainerElement']('div'),_0x55c030=_0x7fdf8c['createEmptyElement']('hr');return _0x7fdf8c['addClass']('ck-horizontal-line',_0x3123cf),_0x7fdf8c['insert'](_0x7fdf8c['createPositionAt'](_0x3123cf,0x0),_0x55c030),_0x3123cf;},'converterPriority':'high'});}}class et extends _0x20810f{['afterInit'](){const _0x155242=this['editor'];if(!_0x155242['plugins']['has']('HtmlEmbed'))return;const _0x3de3d4=_0x155242['plugins']['get']('TrackChangesEditing'),_0x3f25d3=_0x155242['locale'];_0x3de3d4['descriptionFactory']['registerElementLabel']('rawHtml',_0x1e5c7b=>o(_0x3f25d3,'ELEMENT_HTML_EMBED',_0x1e5c7b)),_0x3de3d4['enableDefaultAttributesIntegration']('htmlEmbed'),_0x3de3d4['registerBlockAttribute']('value'),_0x3de3d4['descriptionFactory']['registerDescriptionCallback'](_0x1418af=>{if('attribute'!=_0x1418af['type'])return;const {data:_0x24e68a}=_0x1418af;if(_0x24e68a&&'value'==_0x24e68a['key']&&_0x1418af['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1a05a6=o(_0x3f25d3,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3f25d3,'*Change\x20%0\x20content*',_0x1a05a6)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x28bd78=this['editor'],_0x25d480=_0x28bd78['locale'];_0x28bd78['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xca015a=>{if('formatBlock'!=_0xca015a['type'])return;const {data:_0x1f3da7}=_0xca015a;if(_0x1f3da7&&'htmlEmbed'==_0x1f3da7['commandName']){const _0x4c10e3=o(_0x25d480,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x25d480,'*Change\x20%0\x20content*',_0x4c10e3)};}});}}class it extends _0x20810f{['afterInit'](){const _0x4a7f1e=this['editor'];if(!_0x4a7f1e['plugins']['has']('ImageEditing'))return;const _0x51c4d2=_0x4a7f1e['plugins']['get']('TrackChangesEditing'),_0x1b7ba0=_0x4a7f1e['plugins']['get']('ImageUtils'),_0x529a18=_0x4a7f1e['locale'];_0x51c4d2['enableCommand']('insertImage'),_0x51c4d2['descriptionFactory']['registerElementLabel']('imageBlock',_0x4b8dcd=>o(_0x529a18,'ELEMENT_IMAGE',_0x4b8dcd)),_0x51c4d2['descriptionFactory']['registerElementLabel']('imageInline',_0x3ca2cf=>o(_0x529a18,'ELEMENT_INLINE_IMAGE',_0x3ca2cf)),_0x51c4d2['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x529a18,'ELEMENT_CAPTION')),_0x4a7f1e['plugins']['has']('ImageUploadEditing')&&_0x51c4d2['enableCommand']('uploadImage'),_0x4a7f1e['plugins']['has']('ImageBlockEditing')&&_0x4a7f1e['plugins']['has']('ImageInlineEditing')&&(_0x51c4d2['enableCommand']('imageTypeInline',(_0x347fa2,_0x4ed82e)=>{const _0x52e719=_0x1b7ba0['getClosestSelectedImageElement'](_0x4a7f1e['model']['document']['selection']);_0x4a7f1e['model']['change'](()=>{_0x51c4d2['markBlockFormat'](_0x52e719,{'commandName':'imageTypeInline','commandParams':[_0x4ed82e]},[],'convertBlockImageToInline');});}),_0x51c4d2['enableCommand']('imageTypeBlock',(_0x47ce24,_0x1fd290)=>{_0x4a7f1e['model']['change'](_0x2b5835=>{let _0x588a49=_0x1b7ba0['getClosestSelectedImageElement'](_0x4a7f1e['model']['document']['selection']),_0x4b2ab7=_0x2b5835['createRangeOn'](_0x588a49);const _0x48740e=_0x45a9d6['fromPosition'](_0x4b2ab7['start'],'toPrevious'),_0x1b0931=_0x45a9d6['fromPosition'](_0x4b2ab7['end'],'toNext');_0x51c4d2['forceDefaultExecution'](()=>_0x47ce24(_0x1fd290)),_0x588a49=_0x1b7ba0['getClosestSelectedImageElement'](_0x4a7f1e['model']['document']['selection']),_0x4b2ab7=_0x2b5835['createRangeOn'](_0x588a49);const _0x5068e8=_0x2b5835['createRange'](_0x48740e,_0x1b0931);_0x48740e['detach'](),_0x1b0931['detach'](),_0x51c4d2['markBlockFormat'](_0x588a49,{'commandName':'imageTypeInline','commandParams':[_0x1fd290]},[],'convertInlineImageToBlock'),_0x5068e8['start']['isBefore'](_0x4b2ab7['start'])&&_0x51c4d2['markInsertion'](_0x2b5835['createRange'](_0x5068e8['start'],_0x4b2ab7['start']),'convertInlineImageToBlock'),_0x4b2ab7['end']['isBefore'](_0x5068e8['end'])&&_0x51c4d2['markInsertion'](_0x2b5835['createRange'](_0x4b2ab7['end'],_0x5068e8['end']),'convertInlineImageToBlock');});}),_0x51c4d2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x51c4d2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x51c4d2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x51c4d2['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x51c4d2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x51c4d2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x1f72ec])=>{const _0x32cccc=_0x51c4d2['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2524ea=_0x1f72ec['start'],_0x31cd30=_0x1f72ec['end'];const _0x16f0e6=_0x4a7f1e['model']['schema']['getNearestSelectionRange'](_0x2524ea,'backward'),_0x35a7b7=_0x4a7f1e['model']['schema']['getNearestSelectionRange'](_0x31cd30,'forward');_0x16f0e6['isCollapsed']&&(_0x2524ea=_0x16f0e6['start']),_0x35a7b7['isCollapsed']&&(_0x31cd30=_0x35a7b7['end']),_0x32cccc([_0x4a7f1e['model']['createRange'](_0x2524ea,_0x31cd30)]);}),_0x51c4d2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3dd494),_0x51c4d2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3dd494)),_0x4a7f1e['plugins']['has']('ImageCaptionEditing')&&(_0x51c4d2['enableCommand']('toggleImageCaption',(_0x488213,_0x5e7f49)=>{const _0x1d058a=_0x4a7f1e['plugins']['get']('ImageCaptionUtils');let _0x26a132=_0x1b7ba0['getClosestSelectedImageElement'](_0x4a7f1e['model']['document']['selection']),_0x5afb7d=_0x1d058a['getCaptionFromImageModelElement'](_0x26a132);_0x4a7f1e['model']['change'](()=>{if(_0x5afb7d)return void _0x51c4d2['markDeletion'](_0x4a7f1e['model']['createRangeOn'](_0x5afb7d));const _0x562599=_0x1b7ba0['isBlockImage'](_0x26a132);_0x488213(_0x5e7f49),_0x26a132=_0x1b7ba0['getClosestSelectedImageElement'](_0x4a7f1e['model']['document']['selection']),_0x5afb7d=_0x1d058a['getCaptionFromImageModelElement'](_0x26a132),_0x51c4d2['markInsertion'](_0x4a7f1e['model']['createRangeOn'](_0x5afb7d),_0x562599?null:'imageCaption');});}),_0x51c4d2['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3dd494));const _0x3e12e2=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x46b475(_0x5cd73b,_0x3344f9){const _0x10aceb=_0x3e12e2['findIndex'](({type:_0xe2e0a1,subType:_0x4d2711})=>_0x5cd73b['type']==_0xe2e0a1&&_0x5cd73b['subType']==_0x4d2711),_0x23316b=_0x3e12e2['findIndex'](({type:_0x2f021a,subType:_0x5d30f4})=>_0x3344f9['type']==_0x2f021a&&_0x3344f9['subType']==_0x5d30f4);if(_0x10aceb<0x0||_0x23316b<0x0)return!0x1;const _0x3f498f=_0x5cd73b['getFirstRange'](),_0x35973a=_0x3344f9['getFirstRange']();if((0x0==_0x10aceb||0x1==_0x10aceb)&&0x2==_0x23316b&&_0x3f498f['isIntersecting'](_0x35973a))return!0x0;if(0x2==_0x10aceb&&0x3==_0x23316b){const _0x5eb655=_0x51c4d2['_findSuggestions'](_0x3f498f,'insertion')['filter'](({suggestion:_0x160346,meta:_0x525d42})=>_0x525d42['isOwn']&&'convertInlineImageToBlock'==_0x160346['subType']);if(_0x5eb655['length']>0x1&&_0x35973a['end']['isEqual'](_0x3f498f['start']))return!0x0;if(0x1==_0x5eb655['length']&&(_0x3f498f['start']['isEqual'](_0x35973a['end'])||_0x3f498f['end']['isEqual'](_0x35973a['start'])))return!0x0;}if(0x3==_0x10aceb&&0x3==_0x23316b&&_0x3f498f['start']['isBefore'](_0x35973a['start'])){const _0x577155=_0x3f498f['end']['nodeAfter'],_0x1a0339=_0x35973a['start']['nodeBefore'];return _0x1b7ba0['isBlockImage'](_0x577155)&&_0x577155===_0x1a0339;}return!0x1;}function _0x3dd494(_0x26c054,_0x5f2d1f){return _0x46b475(_0x26c054,_0x5f2d1f)?[_0x26c054,_0x5f2d1f]:_0x46b475(_0x5f2d1f,_0x26c054)?[_0x5f2d1f,_0x26c054]:null;}_0x4a7f1e['plugins']['has']('ImageResize')&&(_0x51c4d2['enableDefaultAttributesIntegration']('resizeImage'),_0x51c4d2['registerBlockAttribute']('resizedWidth'),_0x51c4d2['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x529a18,'FORMAT_IMAGE_SIZE'))),_0x4a7f1e['plugins']['has']('ImageTextAlternativeEditing')&&(_0x51c4d2['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x51c4d2['registerBlockAttribute']('alt')),_0x51c4d2['descriptionFactory']['registerDescriptionCallback'](_0x238926=>{if(!!_0x3e12e2['find'](({type:_0x55a25a,subType:_0x2e34c5})=>_0x238926['type']==_0x55a25a&&_0x238926['subType']==_0x2e34c5))return _0x238926['previous']?{}:void 0x0;}),_0x51c4d2['descriptionFactory']['registerDescriptionCallback'](_0x2bf147=>{if('insertion'==_0x2bf147['type']||'deletion'==_0x2bf147['type']){const _0x1b49c8=_0x2bf147['getContainedElement']();if(_0x1b49c8&&_0x1b49c8['is']('element','caption'))return{'type':'insertion'==_0x2bf147['type']?'addObject':'removeObject','element':_0x1b49c8,'quantity':0x1};}}),_0x51c4d2['descriptionFactory']['registerDescriptionCallback'](_0x4ace98=>'formatBlock'==_0x4ace98['type']&&'convertInlineImageToBlock'==_0x4ace98['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4ace98['type']&&'convertBlockImageToInline'==_0x4ace98['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x51c4d2['descriptionFactory']['registerDescriptionCallback'](_0xb9b6cb=>{if('attribute'!=_0xb9b6cb['type'])return;const {data:_0x1c5719}=_0xb9b6cb;if(!_0x1c5719||'alt'!=_0x1c5719['key'])return;const _0x52882f=_0x1c5719['newValue'];return _0x52882f?{'type':'format','content':o(_0x529a18,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x52882f+'\x22')}:{'type':'format','content':o(_0x529a18,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32f0c5=this['editor'],_0x55b8f0=_0x32f0c5['locale'];_0x32f0c5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ae84d=>{if('formatBlock'!=_0x1ae84d['type']&&'formatInline'!=_0x1ae84d['type'])return;const {data:_0x122480}=_0x1ae84d;if(_0x122480){if('imageTextAlternative'==_0x122480['commandName']){const _0x2255e5=_0x122480['commandParams'][0x0]['newValue'];return _0x2255e5?{'type':'format','content':o(_0x55b8f0,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2255e5+'\x22')}:{'type':'format','content':o(_0x55b8f0,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x122480['commandName']){const _0x344693=_0x122480['commandParams'][0x0]['width'];return _0x344693?{'type':'format','content':o(_0x55b8f0,'*Set\x20image\x20width:*\x20%0',_0x344693)}:{'type':'format','content':o(_0x55b8f0,'*Reset\x20image\x20width*')};}}});}}class st extends _0x20810f{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x446323=this['editor']['locale'],_0x31ac0e=this['editor']['plugins']['get']('TrackChangesEditing');_0x31ac0e['enableDefaultAttributesIntegration']('replaceImageSource'),_0x31ac0e['registerBlockAttribute']('src'),_0x31ac0e['descriptionFactory']['registerDescriptionCallback'](_0x521643=>{if('attribute'!=_0x521643['type'])return;const {data:_0x578cc5}=_0x521643;return _0x578cc5&&'src'==_0x578cc5['key']?_0x578cc5['newValue']&&_0x578cc5['oldValue']?{'type':'format','content':o(_0x446323,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x243f03=this['editor']['plugins']['get']('TrackChangesEditing');_0x243f03['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x243f03['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x243f03['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x243f03['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x38db59=this['editor'],_0x2d2ff7=_0x38db59['locale'];_0x38db59['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2dca08=>{if('formatBlock'!=_0x2dca08['type']&&'formatInline'!=_0x2dca08['type'])return;const {data:_0x4f2968}=_0x2dca08;if(!_0x4f2968||'replaceImageSource'!=_0x4f2968['commandName'])return;return{'type':'format','content':o(_0x2d2ff7,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x20810f{['afterInit'](){const _0x29181a=this['editor'];if(!_0x29181a['plugins']['has']('ImageStyleEditing'))return;const _0x2d6d64=_0x29181a['plugins']['get']('TrackChangesEditing'),_0x171a1e=_0x29181a['plugins']['get']('ImageUtils'),_0x84171c={};_0x2d6d64['enableCommand']('imageStyle',(_0x379763,_0x409b50)=>{const _0x4f7a7d=_0x29181a['plugins']['get']('Users')['me'],_0x4e4772=_0x29181a['commands']['get']('imageStyle');let _0x5413fe=_0x171a1e['getClosestSelectedImageElement'](_0x29181a['model']['document']['selection']),_0x23b5a4=_0x29181a['model']['createRangeOn'](_0x5413fe),_0x191694=_0x4e4772['value'];if(_0x191694==_0x409b50['value'])return;const _0x5c368d={'commandName':'imageStyle','commandParams':[_0x409b50],'formatGroupId':_0x4afc5b()};_0x29181a['model']['change'](()=>{if(_0x2d6d64['getSuggestions']()['filter'](_0xad50c0=>_0xad50c0['isInContent']&&_0x4f7a7d==_0xad50c0['author']&&('formatBlock'==_0xad50c0['type']||'formatInline'==_0xad50c0['type'])&&('imageStylePreApply'==_0xad50c0['subType']||'imageStylePostApply'==_0xad50c0['subType'])&&_0xad50c0['getFirstRange']()['isEqual'](_0x23b5a4))['forEach'](_0x3b3fcf=>_0x2d6d64['discardSuggestion'](_0x3b3fcf['head'])),_0x5413fe=_0x171a1e['getClosestSelectedImageElement'](_0x29181a['model']['document']['selection']),_0x23b5a4=_0x29181a['model']['createRangeOn'](_0x5413fe),_0x4e4772['refresh'](),_0x29181a['commands']['get']('imageTypeInline')['refresh'](),_0x29181a['commands']['get']('imageTypeBlock')['refresh'](),_0x191694=_0x4e4772['value'],_0x191694!=_0x409b50['value'])return _0x171a1e['isInlineImage'](_0x5413fe)&&_0x4e4772['shouldConvertImageType'](_0x409b50['value'],_0x5413fe)?(_0x379763({..._0x409b50,'setImageSizes':!0x1}),_0x5413fe=_0x171a1e['getClosestSelectedImageElement'](_0x29181a['model']['document']['selection']),void _0x2d6d64['markBlockFormat'](_0x5413fe,{..._0x5c368d,'commandReversedParams':[{'value':_0x191694||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x171a1e['isBlockImage'](_0x5413fe)?_0x2d6d64['markBlockFormat'](_0x5413fe,_0x5c368d,[],'imageStylePostApply'):_0x2d6d64['markInlineFormat'](_0x23b5a4,_0x5c368d,'imageStylePostApply'));});});for(const _0x188dcb of _0x29181a['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x84171c[_0x188dcb['name']]=_0x188dcb['title']['toLowerCase']();_0x2d6d64['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2d6d64['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2d6d64['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2d6d64['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2eae37])=>{_0x171a1e['setImageNaturalSizeAttributes'](_0x2eae37['getContainedElement']());}),_0x2d6d64['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x358d0d,_0x103135)=>{_0x2d6d64['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x358d0d,{'commandName':_0x103135['commandName'],'commandParams':_0x103135['commandReversedParams']});}),_0x2d6d64['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5f1b79,_0x273ebc){if(_0x395dfa(_0x5f1b79,_0x273ebc))return[_0x5f1b79,_0x273ebc];if(_0x395dfa(_0x273ebc,_0x5f1b79))return[_0x273ebc,_0x5f1b79];return null;});const _0x4967bf=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x395dfa(_0x53db4d,_0x9d5f6d){const _0x28d262=_0x4967bf['findIndex'](({type:_0x3a578d,subType:_0x224987})=>_0x53db4d['type']==_0x3a578d&&_0x53db4d['subType']==_0x224987),_0x412608=_0x4967bf['findIndex'](({type:_0xdbda71,subType:_0xbd6b85})=>_0x9d5f6d['type']==_0xdbda71&&_0x9d5f6d['subType']==_0xbd6b85);if(_0x28d262<0x0||_0x412608<0x0)return!0x1;const _0x340eda=_0x53db4d['getFirstRange'](),_0x1b4ad9=_0x9d5f6d['getFirstRange']();if((0x0==_0x28d262||0x1==_0x28d262)&&0x2==_0x412608&&_0x340eda['isIntersecting'](_0x1b4ad9))return!0x0;if(0x2==_0x28d262&&0x3==_0x412608){const _0x1b1333=_0x2d6d64['_findSuggestions'](_0x340eda,'insertion')['filter'](({suggestion:_0x1f5a71,meta:_0x2d4186})=>_0x2d4186['isOwn']&&'convertInlineImageToBlock'==_0x1f5a71['subType']);if(_0x1b1333['length']>0x1&&_0x1b4ad9['end']['isEqual'](_0x340eda['start']))return!0x0;if(0x1==_0x1b1333['length']&&(_0x340eda['start']['isEqual'](_0x1b4ad9['end'])||_0x340eda['end']['isEqual'](_0x1b4ad9['start'])))return!0x0;}if(0x3==_0x28d262&&0x3==_0x412608&&_0x340eda['start']['isBefore'](_0x1b4ad9['start'])){const _0x38c2ad=_0x340eda['end']['nodeAfter'],_0x2d91cb=_0x1b4ad9['start']['nodeBefore'];return _0x171a1e['isBlockImage'](_0x38c2ad)&&_0x38c2ad===_0x2d91cb;}return!0x1;}_0x29181a['model']['document']['registerPostFixer'](()=>{let _0x3c0f0d=!0x1;const _0x271ead=Array['from'](_0x29181a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2b2e8c,data:_0x36c801}of _0x271ead){const {group:_0x19ed29,type:_0x4fe7b3,subType:_0x2791ac,id:_0x56ec38}=_0x2d6d64['_splitMarkerName'](_0x2b2e8c);if('suggestion'==_0x19ed29&&_0x2d6d64['hasSuggestion'](_0x56ec38)){if('formatBlock'==_0x4fe7b3&&('imageStylePreApply'==_0x2791ac||'imageStylePostApply'==_0x2791ac)){const _0x5d825f=_0x2d6d64['getSuggestion'](_0x56ec38);if(_0x36c801['newRange']){const _0x27919c=_0x5d825f['getFirstRange']()['getContainedElement']();if(_0x171a1e['isBlockImage'](_0x27919c))continue;_0x2d6d64['discardSuggestion'](_0x5d825f),_0x3c0f0d=!0x0;}}if('insertion'==_0x4fe7b3&&'imageCaption'==_0x2791ac&&!_0x36c801['newRange']){const _0x1a948=_0x2d6d64['getSuggestion'](_0x56ec38);_0x1a948['next']&&_0x1a948['next']['isInContent']&&(_0x2d6d64['discardSuggestion'](_0x1a948['next']),_0x3c0f0d=!0x0);}}}return _0x3c0f0d;}),this['_registerLegacyDescription'](_0x84171c);}['_registerLegacyDescription'](_0x30d7a9){const _0x172d46=this['editor'],_0x408ef5=_0x172d46['locale'];_0x172d46['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f268e=>{if('formatBlock'!=_0x4f268e['type']&&'formatInline'!=_0x4f268e['type'])return;const {data:_0x40305e}=_0x4f268e;if(!_0x40305e||'imageStyle'!=_0x40305e['commandName'])return;const _0x51997e=_0x40305e['commandParams'][0x0]['value'];return _0x177156('side'===_0x51997e?o(_0x408ef5,'FORMAT_SIDE_IMAGE'):_0x30d7a9[_0x51997e]||_0x51997e);function _0x177156(_0x118124){return{'type':'format','content':o(_0x408ef5,'*Format:*\x20%0',_0x118124)};}});}}class ot extends _0x20810f{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x13f740){super(_0x13f740),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0xd03611=this['editor'],_0x285f90=_0xd03611['commands']['get']('importWord'),_0x48b2d4=_0xd03611['commands']['get']('trackChanges');_0x285f90&&(_0x285f90['on']('execute',(_0x34f930,[,_0x5bfc01])=>{this['_trackChangesValueDuringImport']=_0x48b2d4['value'],_0x5bfc01['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x285f90,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x285f90,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x48b2d4['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0xd03611['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x280b38,_0x58461a){const {suggestions:_0xaa29b5}=_0x58461a,_0xeb8649=this['editor']['commands']['get']('trackChanges'),_0xda53ca=_0xeb8649['value'];this['_trackChangesValueDuringImport']!==_0xda53ca&&(_0xeb8649['execute'](),this['_trackChangesExecuted']=!0x0),_0xaa29b5&&_0xaa29b5['forEach'](({id:_0x22ab85,type:_0x2320a7,author:_0x46886c,created_at:_0x76b47d})=>{const _0x554dc7={'id':_0x22ab85,'type':_0x2320a7,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x46886c,'createdAt':_0x76b47d?new Date(_0x76b47d):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x554dc7);});}}class rt extends _0x20810f{['afterInit'](){const _0x4a4a4f=this['editor'],_0x26c852=_0x4a4a4f['plugins']['get']('TrackChangesEditing');if(_0x4a4a4f['plugins']['has']('IndentEditing')&&(_0x26c852['enableCommand']('indent'),_0x26c852['enableCommand']('outdent')),_0x4a4a4f['plugins']['has']('IndentBlock')){for(const _0x8584e4 of['indentBlock','outdentBlock'])_0x26c852['enableDefaultAttributesIntegration'](_0x8584e4);}const _0x220328=_0x4a4a4f['locale'];_0x26c852['registerBlockAttribute']('blockIndent'),_0x26c852['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x220328,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x55072d=this['editor'],_0x8c66b6=_0x55072d['locale'],_0x2c8bea=_0x55072d['plugins']['get']('TrackChangesEditing');_0x2c8bea['descriptionFactory']['registerDescriptionCallback'](_0x6a348a=>{if('formatBlock'!=_0x6a348a['type'])return;const {data:_0x3590e}=_0x6a348a;if(!_0x3590e)return;if('indentBlock'!=_0x3590e['commandName']&&'outdentBlock'!=_0x3590e['commandName'])return;const _0x32db1f=_0x6a348a['getItems']()[0x0],_0x51f3f3=_0x2c8bea['descriptionFactory']['getItemLabel'](_0x32db1f);return'indentBlock'==_0x3590e['commandName']?{'type':'format','content':o(_0x8c66b6,'*Indent:*\x20%0',_0x51f3f3)}:'outdentBlock'==_0x3590e['commandName']?{'type':'format','content':o(_0x8c66b6,'*Outdent:*\x20%0',_0x51f3f3)}:void 0x0;});}}class at extends _0x20810f{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x20810f{['afterInit'](){const _0x539ec1=this['editor'];if(!_0x539ec1['plugins']['has']('LinkEditing'))return;const _0x4d29b7=_0x539ec1['plugins']['get']('TrackChangesEditing'),_0xda80ad=_0x539ec1['commands']['get']('link');_0x4d29b7['enableDefaultAttributesIntegration']('link'),_0x4d29b7['enableDefaultAttributesIntegration']('unlink'),_0x4d29b7['registerInlineAttribute']('linkHref');for(const _0x24fdc4 of _0xda80ad['manualDecorators'])_0x4d29b7['registerInlineAttribute'](_0x24fdc4['id']),_0x4d29b7['descriptionFactory']['registerAttributeLabel'](_0x24fdc4['id'],'link\x20('+_0x24fdc4['label']['toLowerCase']()+')');_0x4d29b7['descriptionFactory']['registerDescriptionCallback'](_0x57a59e=>{if('attribute'!=_0x57a59e['type'])return;const {data:_0x60cda8}=_0x57a59e;if(!_0x60cda8||'linkHref'!=_0x60cda8['key'])return;const _0x1add4f=_0x60cda8['newValue'],_0x2ac47=_0x539ec1['locale'];return{'type':'format','content':null==_0x1add4f?o(_0x2ac47,'*Remove\x20link*'):o(_0x2ac47,'*Set\x20link:*\x20%0','\x22'+_0x1add4f+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xfdc172=this['editor'],_0x7c97f9=_0xfdc172['locale'];_0xfdc172['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4058e5=>{if('formatInline'!=_0x4058e5['type'])return;const {data:_0x5ac60c}=_0x4058e5;if(_0x5ac60c){if('link'==_0x5ac60c['commandName']){const _0x14c081=_0x5ac60c['commandParams'][0x0];return{'type':'format','content':o(_0x7c97f9,'*Set\x20link:*\x20%0','\x22'+_0x14c081+'\x22')};}return'unlink'==_0x5ac60c['commandName']?{'type':'format','content':o(_0x7c97f9,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x20810f{['afterInit'](){const _0x41472a=this['editor'],_0x3389c8=_0x41472a['locale'];if(!_0x41472a['plugins']['has']('LegacyListEditing'))return;const _0x353bd6=_0x41472a['plugins']['get']('TrackChangesEditing'),_0x4b7cb6=_0x41472a['plugins']['has']('LegacyTodoListEditing');function _0x50d645(_0x3b6099){return()=>{const _0x5d4b8f=_0x41472a['model']['document']['selection'],_0x55612b=_0x41472a['commands']['get'](_0x3b6099);if(_0x55612b['value'])return void _0x41472a['execute']('paragraph',{});const _0x1cd65b=_0x3b6099['slice'](0x0,-0x4),_0x2d569d=function(_0x37a152,_0x2bb07a,_0x507d22){let _0x2c1f71=Array['from'](_0x37a152)['filter'](_0x4b1a3a=>function(_0x442912,_0x5dadac){return _0x5dadac['checkChild'](_0x442912['parent'],'listItem')&&!_0x5dadac['isObject'](_0x442912);}(_0x4b1a3a,_0x507d22));_0x2c1f71=_0x2c1f71['filter'](_0x15271d=>!_0x15271d['is']('element','listItem')||_0x15271d['getAttribute']('listType')!=_0x2bb07a);const _0x450b67=new Set();for(const _0x403249 of _0x2c1f71)_0x403249['is']('element','listItem')?_0x450b67['add'](me(_0x403249)):_0x450b67['add'](_0x403249);return Array['from'](_0x450b67);}(_0x5d4b8f['getSelectedBlocks'](),_0x1cd65b,_0x41472a['model']['schema']);_0x41472a['model']['change'](()=>{for(const _0x1277b5 of _0x2d569d)_0x353bd6['markBlockFormat'](_0x1277b5,{'commandName':_0x3b6099,'commandParams':[{'forceValue':!_0x55612b['value']}],'formatGroupId':'blockName'},fe(_0x1277b5));});};}function _0x4a61f6(_0x563292){return()=>{const _0x29fffa=function(_0x314aef){let _0x1c2370=Array['from'](_0x314aef);const _0x1be707=_0x1c2370['findIndex'](_0xb4051f=>'listItem'!=_0xb4051f['name']);return _0x1be707>-0x1&&(_0x1c2370=_0x1c2370['slice'](0x0,_0x1be707)),_0x1c2370;}(_0x41472a['model']['document']['selection']['getSelectedBlocks']()),_0x242d5f=_0x41472a['model']['createRange'](_0x41472a['model']['createPositionAt'](_0x29fffa[0x0],'before'),_0x41472a['model']['createPositionAt'](_0x29fffa[_0x29fffa['length']-0x1],'end'));_0x41472a['model']['change'](()=>{_0x353bd6['markBlockFormat'](_0x242d5f,{'commandName':_0x563292,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1237a4){const _0x176385=new Set();for(const _0x13bc24 of _0x1237a4){let _0x277148=_0x13bc24['nextSibling'];for(;_0x277148&&_0x277148['getAttribute']('listIndent')>_0x13bc24['getAttribute']('listIndent');)_0x176385['add'](_0x277148),_0x277148=_0x277148['nextSibling'];}return Array['from'](_0x176385);}(_0x29fffa));});};}_0x353bd6['enableCommand']('numberedList',_0x50d645('numberedList')),_0x353bd6['enableCommand']('bulletedList',_0x50d645('bulletedList')),_0x4b7cb6&&_0x353bd6['enableCommand']('todoList',_0x50d645('todoList')),_0x353bd6['enableCommand']('indentList',_0x4a61f6('indentList')),_0x353bd6['enableCommand']('outdentList',_0x4a61f6('outdentList')),_0x4b7cb6&&_0x353bd6['enableCommand']('checkTodoList',()=>{const _0x4a9324=_0x41472a['commands']['get']('checkTodoList'),_0x3fb430=Array['from'](_0x4a9324['_selectedElements']);_0x3fb430['filter'](_0x824f74=>_0x824f74['getAttribute']('todoListChecked')!=_0x4a9324['value']),_0x41472a['model']['change'](()=>{for(const _0x4a2223 of _0x3fb430)_0x353bd6['markBlockFormat'](_0x4a2223,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4a9324['value']}]});});}),_0x353bd6['descriptionFactory']['registerElementLabel']('listItem',_0x18c5b0=>o(_0x3389c8,'ELEMENT_LIST_ITEM',_0x18c5b0)),_0x353bd6['descriptionFactory']['registerDescriptionCallback'](_0x2eddb4=>{if('formatBlock'!=_0x2eddb4['type']&&'formatInline'!=_0x2eddb4['type'])return;const {data:_0x4f52d2}=_0x2eddb4;if(_0x4f52d2){if('numberedList'==_0x4f52d2['commandName']||'bulletedList'==_0x4f52d2['commandName']||'todoList'==_0x4f52d2['commandName'])switch(_0x4f52d2['commandName']['replace']('List','')){case'bulleted':return _0x107103(o(_0x3389c8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x107103(o(_0x3389c8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x107103(o(_0x3389c8,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4f52d2['commandName'])return{'type':'format','content':o(_0x3389c8,'*Indent:*\x20%0',o(_0x3389c8,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4f52d2['commandName'])return{'type':'format','content':o(_0x3389c8,'*Outdent:*\x20%0',o(_0x3389c8,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4f52d2['commandName'])return _0x4f52d2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3389c8,'*Check\x20item*')}:{'type':'format','content':o(_0x3389c8,'*Uncheck\x20item*')};}function _0x107103(_0x4bde2d){return{'type':'format','content':o(_0x3389c8,'*Change\x20to:*\x20%0',_0x4bde2d)};}});}}function me(_0x1da82c){const _0x4cf86b=_0x1da82c['getAttribute']('listIndent');if(0x0==_0x4cf86b)return _0x1da82c;let _0x42ee6f=_0x1da82c;for(;_0x1da82c['previousSibling']&&_0x1da82c['previousSibling']['is']('element','listItem');){const _0x16d0f3=_0x1da82c['previousSibling']['getAttribute']('listIndent');if(_0x16d0f3==_0x4cf86b)_0x42ee6f=_0x1da82c['previousSibling'];else{if(_0x16d0f3<_0x4cf86b)break;}_0x1da82c=_0x1da82c['previousSibling'];}return _0x42ee6f;}function fe(_0x3d6785){const _0x52d59a=[];if(_0x3d6785['is']('element','listItem')&&_0x3d6785['getAttribute']('listIndent')>0x0){let _0x28fd30=_0x3d6785['nextSibling'];for(;_0x28fd30&&'listItem'==_0x28fd30['name']&&_0x28fd30['getAttribute']('listIndent')==_0x3d6785['getAttribute']('listIndent');)_0x52d59a['push'](_0x28fd30),_0x28fd30=_0x28fd30['nextSibling'];}return _0x52d59a;}class K extends _0x20810f{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5335f6=this['editor']['config']['get']('list.properties'),_0x2597d5=this['editor']['plugins']['get']('TrackChangesEditing');_0x5335f6['styles']&&_0x2597d5['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5335f6['reversed']&&_0x2597d5['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5335f6['startIndex']&&_0x2597d5['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x2597d5['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x198b4f,_0x55ede6={}){const _0x15dc92=this['editor']['plugins']['get']('TrackChangesEditing'),_0x41fb0b=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x15dc92['markMultiRangeBlockFormat'](_0x41fb0b,{'commandName':'listStyle','commandParams':[{'type':_0x55ede6['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x51ac55,_0x2012a3={}){const _0x5c92eb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2171a5=this['_getSuggestionBlocks'](_0x1b567e=>_0x1b567e['is']('element','listItem')&&'numbered'===_0x1b567e['getAttribute']('listType'));if(_0x2171a5['length']<0x1)return;const _0x16a424=_0x2171a5['map'](_0x3384cf=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3384cf,'before'),this['editor']['model']['createPositionAt'](_0x3384cf,0x0)));this['editor']['model']['change'](()=>{_0x5c92eb['markMultiRangeBlockFormat'](_0x16a424,{'commandName':'listReversed','commandParams':[{'reversed':_0x2012a3['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x217e24,_0x5210b4={}){const _0x2f8ff4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f1beb=this['_getSuggestionBlocks'](_0x47ed29=>_0x47ed29['is']('element','listItem')&&'numbered'===_0x47ed29['getAttribute']('listType'));if(_0x1f1beb['length']<0x1)return;const _0xb3df94=_0x1f1beb['map'](_0x519ed8=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x519ed8,'before'),this['editor']['model']['createPositionAt'](_0x519ed8,0x0)));this['editor']['model']['change'](()=>{_0x2f8ff4['markMultiRangeBlockFormat'](_0xb3df94,{'commandName':'listStart','commandParams':[{'startIndex':_0x5210b4['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x340c15){if('formatBlock'!=_0x340c15['type']&&'formatInline'!=_0x340c15['type'])return;const _0x5973b1=this['editor']['locale'],{data:_0x287e31}=_0x340c15;if(!_0x287e31)return;let _0x283965,_0x2ba179;switch(_0x287e31['commandName']){case'listStyle':_0x283965='*Change\x20to:*\x20%0',_0x2ba179={'type':'format','content':o(_0x5973b1,_0x283965,o(_0x5973b1,this['_getTranslationKeyForListStyle'](_0x287e31['commandParams'][0x0]['type'])))};break;case'listReversed':_0x283965=_0x287e31['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2ba179={'type':'format','content':o(_0x5973b1,_0x283965)};break;case'listStart':_0x283965='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2ba179={'type':'format','content':o(_0x5973b1,_0x283965,_0x287e31['commandParams'][0x0]['startIndex'])};}return _0x2ba179;}['_getSuggestionBlocksForListStyle'](){const _0x18b953=this['editor']['plugins']['get']('LegacyListUtils');let _0x143b09=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x143b09[0x0]?.['is']('element','listItem')&&_0x143b09['unshift'](..._0x18b953['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x143b09[_0x143b09['length']-0x1]?.['is']('element','listItem')&&_0x143b09['push'](..._0x18b953['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x143b09=[...new Set(_0x143b09)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x143b09=_0x143b09['filter'](_0x4f68a3=>_0x4f68a3['is']('element','listItem'))),_0x143b09;}['_getSuggestionBlocks'](_0x506f81){const _0x17b1d6=this['editor']['plugins']['get']('LegacyListUtils');let _0x2d9e18=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x506f81)['map'](_0x95632b=>{const _0x3aa361=this['editor']['model']['createPositionAt'](_0x95632b,0x0);return[..._0x17b1d6['getSiblingNodes'](_0x3aa361,'backward'),..._0x17b1d6['getSiblingNodes'](_0x3aa361,'forward')];})['flat']();return _0x2d9e18=[...new Set(_0x2d9e18)],_0x2d9e18;}['_getTranslationKeyForListStyle'](_0x270d76){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x270d76)||'default')['toUpperCase']()+'_LIST_'+_0x270d76['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x20810f{['afterInit'](){const _0x221359=this['editor'];if(!_0x221359['plugins']['has']('MediaEmbedEditing'))return;const _0x4ed0e2=_0x221359['plugins']['get']('TrackChangesEditing'),_0x292c09=_0x221359['locale'];_0x4ed0e2['enableCommand']('mediaEmbed'),_0x4ed0e2['descriptionFactory']['registerElementLabel']('media',_0x3296b7=>o(_0x292c09,'ELEMENT_MEDIA',_0x3296b7)),_0x221359['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x565280,{writer:_0x288d6a,options:_0x33006f})=>{if(_0x33006f['showSuggestionHighlights'])return _0x288d6a['createEmptyElement']('div');},'converterPriority':'high'}),_0x221359['data']['downcastDispatcher']['on']('attribute:url:media',(_0x1b1622,_0x5a81e9,_0x589cfe)=>{_0x589cfe['options']['showSuggestionHighlights']&&_0x1b1622['stop']();},{'priority':'high'});}}class gt extends _0x20810f{['afterInit'](){const _0x8b4368=this['editor'];_0x8b4368['plugins']['has']('MentionEditing')&&_0x8b4368['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x20810f{['afterInit'](){const _0x4086d7=this['editor'],_0x299674=_0x4086d7['plugins']['get']('TrackChangesEditing');_0x4086d7['plugins']['has']('MultiLevelList')&&(_0x299674['enableDefaultAttributesIntegration']('multiLevelList'),_0x299674['registerBlockAttribute']('listMarkerStyle'),_0x299674['descriptionFactory']['registerDescriptionCallback'](_0x2968c2=>this['handleDescriptions'](_0x2968c2)));}['handleDescriptions'](_0x5d08b7){const _0x363a9d=this['editor']['locale'],{data:_0x5090c8}=_0x5d08b7,_0x2f5d6f={'type':'format','content':''};if(_0x5090c8&&'listMarkerStyle'==_0x5090c8['key']){if(!_0x5090c8['oldValue'])return{'type':'format','content':o(_0x363a9d,'*Set\x20format:*\x20%0',o(_0x363a9d,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5090c8['newValue']+')'};if(!_0x5090c8['newValue']){let _0x1af819=_0x5d08b7['head'];for(;_0x1af819;){if(_0x1af819['data']&&'listType'==_0x1af819['data']['key']&&_0x1af819['data']['newValue'])return _0x2f5d6f;_0x1af819=_0x1af819['next'];}return{'type':'format','content':o(_0x363a9d,'*Remove\x20format:*\x20%0',o(_0x363a9d,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5090c8['oldValue']+')'};}}}}class mt extends _0x20810f{['afterInit'](){const _0x13c687=this['editor'];if(!_0x13c687['plugins']['has']('PageBreakEditing'))return;_0x13c687['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x11b764=_0x13c687['plugins']['get']('TrackChangesEditing'),_0x34997e=_0x13c687['locale'];_0x11b764['descriptionFactory']['registerElementLabel']('pageBreak',_0x5869e4=>o(_0x34997e,'ELEMENT_PAGE_BREAK',_0x5869e4));}}class dt extends _0x20810f{['afterInit'](){const _0x41b421=this['editor'];if(!_0x41b421['plugins']['has']('Paragraph'))return;const _0xc4ab8e=_0x41b421['locale'],_0x239840=_0x41b421['plugins']['get']('TrackChangesEditing');_0x239840['descriptionFactory']['registerElementLabel']('paragraph',_0xcaf178=>o(_0xc4ab8e,'ELEMENT_PARAGRAPH',_0xcaf178)),_0x239840['enableDefaultAttributesIntegration']('paragraph'),_0x239840['enableCommand']('insertParagraph'),_0x41b421['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x41b421),{'priority':'highest'}),_0x41b421['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x39c517,_0x412dbc,_0xa5f7d3)=>{_0xa5f7d3['options']['showSuggestionHighlights']&&nr(_0x41b421,{'showActiveMarker':!0x1})(_0x39c517,_0x412dbc,_0xa5f7d3);},{'priority':'highest'});const _0x118116=_0x239840['descriptionFactory'];_0x118116['registerDescriptionCallback'](_0x307eea=>{if('insertion'!==_0x307eea['type'])return;const {start:_0x54b317,end:_0x365c31}=_0x307eea['getFirstRange']();if(!_0x54b317['isTouching'](_0x365c31)||!_0x54b317['nodeAfter'])return;const _0x3566af=_0x41b421['model']['schema'],_0x352fe2=_0x54b317['nodeAfter'];return _0x3566af['isBlock'](_0x352fe2)&&!_0x3566af['isLimit'](_0x352fe2)&&_0x3566af['checkChild'](_0x352fe2,'$text')?{'type':'insertion','content':o(_0xc4ab8e,'*Insert:*\x20%0',_0x118116['getItemLabel'](_0x352fe2,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d373c=this['editor'],_0x488b8e=_0x3d373c['locale'];_0x3d373c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27ba8d=>{if('formatBlock'!=_0x27ba8d['type'])return;const {data:_0x41c7dd}=_0x27ba8d;return _0x41c7dd&&'paragraph'==_0x41c7dd['commandName']?{'type':'format','content':o(_0x488b8e,'*Change\x20to:*\x20%0',o(_0x488b8e,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x44c308,{showActiveMarker:_0x4055e6=!0x0}={}){return(_0xb92bb1,_0xbd7c60,_0x57cc51)=>{const _0x113384=_0x44c308['plugins']['get']('TrackChangesEditing'),_0xeceaa7=_0xbd7c60['markerRange']['start'],_0x48df73=_0xbd7c60['markerRange']['end'],_0x3fa783=_0x44c308['model']['schema'];if(!_0xeceaa7['isTouching'](_0x48df73)||!_0xeceaa7['nodeAfter'])return;const _0x249a84=_0xeceaa7['nodeAfter'];if(_0x3fa783['isBlock'](_0x249a84)&&!_0x3fa783['isLimit'](_0x249a84)&&_0x3fa783['checkChild'](_0x249a84,'$text')){if(!_0x57cc51['consumable']['consume'](_0xbd7c60['markerRange'],_0xb92bb1['name']))return;const _0x3c5f22=_0x57cc51['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x46fe7f=_0x57cc51['mapper']['toViewPosition'](_0x48df73);_0x4055e6&&_0x113384['activeMarkers']['includes'](_0xbd7c60['markerName'])&&_0x57cc51['writer']['addClass']('ck-suggestion-marker--active',_0x3c5f22),_0x57cc51['writer']['insert'](_0x46fe7f,_0x3c5f22),_0x57cc51['mapper']['bindElementToMarker'](_0x3c5f22,_0xbd7c60['markerName']);}};}class pt extends _0x20810f{['afterInit'](){const _0x440397=this['editor'];if(!_0x440397['plugins']['has']('RemoveFormatEditing'))return;_0x440397['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x33b49f=this['editor'];_0x33b49f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5566bf=>{if('formatBlock'!=_0x5566bf['type']&&'formatInline'!=_0x5566bf['type'])return;const {data:_0x18647c}=_0x5566bf;return _0x18647c&&'removeFormat'==_0x18647c['commandName']?{'type':'format','content':o(_0x33b49f['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x20810f{['afterInit'](){const _0x16f2a6=this['editor'];if(!_0x16f2a6['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x385850=_0x16f2a6['plugins']['get']('TrackChangesEditing');_0x385850['enableCommand']('goToPreviousRestrictedEditingException'),_0x385850['enableCommand']('goToNextRestrictedEditingException');const _0x39d0b5=_0x16f2a6['plugins']['get']('RestrictedEditingModeEditing');_0x39d0b5['enableCommand']('trackChanges'),_0x39d0b5['enableCommand']('acceptSuggestion'),_0x39d0b5['enableCommand']('discardSuggestion'),_0x39d0b5['enableCommand']('acceptAllSuggestions'),_0x39d0b5['enableCommand']('discardAllSuggestions'),_0x39d0b5['enableCommand']('acceptSelectedSuggestions'),_0x39d0b5['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x20810f{static get['requires'](){return[_0x1b0bac];}['init'](){const _0x38a17c=this['editor'],_0x1c8ab5=_0x38a17c['plugins']['get']('TrackChangesEditing');_0x1c8ab5['enableCommand']('shiftEnter'),_0x38a17c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x38a17c),{'priority':'high'}),_0x38a17c['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x38a17c),{'priority':'high'}),_0x38a17c['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2830f7,_0x5380eb,_0x3cfb63)=>{_0x3cfb63['options']['showSuggestionHighlights']&&de(_0x38a17c,{'showActiveMarker':!0x1})(_0x2830f7,_0x5380eb,_0x3cfb63);}),_0x1c8ab5['descriptionFactory']['registerElementLabel']('softBreak',_0x3370cf=>o(_0x38a17c['locale'],'ELEMENT_LINE_BREAK',_0x3370cf));}}function de(_0x15b09f,{showActiveMarker:_0x22b040=!0x0}={}){return(_0x21a344,_0x2da11f,_0x1b3a9e)=>{const _0x437065=_0x15b09f['plugins']['get']('TrackChangesEditing');if(!_0x1b3a9e['consumable']['test'](_0x2da11f['markerRange'],_0x21a344['name']))return;const _0x293043=_0x15b09f['model'];for(const _0x5ba418 of _0x2da11f['markerRange']['getItems']()){if(!_0x5ba418['is']('element','softBreak'))continue;const _0x54d9e4='deletion'==_0x2da11f['markerName']['split'](':')[0x1]?'merge':'split',_0x237e0b=_0x1b3a9e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x54d9e4}),_0x2e189d=_0x1b3a9e['mapper']['toViewPosition'](_0x293043['createPositionBefore'](_0x5ba418));_0x22b040&&_0x437065['activeMarkers']['includes'](_0x2da11f['markerName'])&&_0x1b3a9e['writer']['addClass']('ck-suggestion-marker--active',_0x237e0b),_0x1b3a9e['writer']['insert'](_0x2e189d,_0x237e0b),_0x1b3a9e['mapper']['bindElementToMarker'](_0x237e0b,_0x2da11f['markerName']);}};}class wt extends _0x20810f{['afterInit'](){const _0x40f9a=this['editor'],_0x1ff794=_0x40f9a['model'],_0x4a1699=_0x40f9a['locale'];if(!_0x40f9a['plugins']['has']('StandardEditingModeEditing'))return;const _0x32885c=_0x40f9a['plugins']['get']('TrackChangesEditing'),_0x58f0f1='restrictedEditingException',_0x475ae5=_0x40f9a['commands']['get'](_0x58f0f1);_0x32885c['enableCommand'](_0x58f0f1,(_0x10a90f,_0x503196={})=>{const _0x315a36=_0x1ff794['document']['selection'];if(_0x315a36['isCollapsed'])return void _0x10a90f(_0x503196);const _0x1b2438=void 0x0!==_0x503196['forceValue']?_0x503196['forceValue']:!_0x475ae5['value'];_0x1ff794['change'](()=>{const _0x8c321c=Array['from'](_0x315a36['getRanges']());for(const _0x163b82 of _0x8c321c){const _0x3522cc=_0x1b2438?[_0x163b82]:io(_0x58f0f1,_0x163b82,_0x1ff794);for(const _0x1cfccf of _0x3522cc)_0x32885c['markInlineFormat'](_0x1cfccf,{'commandName':_0x58f0f1,'commandParams':[{'forceValue':_0x1b2438}]});}});}),_0x32885c['descriptionFactory']['registerDescriptionCallback'](_0x1b8192=>{if('formatBlock'!=_0x1b8192['type']&&'formatInline'!=_0x1b8192['type'])return;const {data:_0x4ae498}=_0x1b8192;return _0x4ae498&&_0x4ae498['commandName']==_0x58f0f1?_0x4ae498['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4a1699,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4a1699,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x20810f{['afterInit'](){const _0x10fa23=this['editor'];if(!_0x10fa23['plugins']['has']('Style')||!_0x10fa23['plugins']['has']('DataSchema'))return;const _0x3bc82f=_0x10fa23['plugins']['get']('TrackChangesEditing'),_0x1f19ba=_0x10fa23['locale'],_0x2b8004=_0x10fa23['config']['get']('style')||{},_0xc5134a=_0x10fa23['plugins']['get']('GeneralHtmlSupport'),_0x18262d=_0x10fa23['plugins']['get']('StyleUtils')['normalizeConfig'](_0x10fa23['plugins']['get']('DataSchema'),_0x2b8004['definitions']);_0x3bc82f['enableDefaultAttributesIntegration']('style');const _0x147702=new Set();for(const _0x218a17 of _0x18262d['block']){const _0x639bdb=_0xc5134a['getGhsAttributeNameForElement'](_0x218a17['element']);_0x147702['add'](_0x639bdb);}const _0x21b26c=new Set();for(const _0x571923 of _0x18262d['inline']){const _0x126013=_0xc5134a['getGhsAttributeNameForElement'](_0x571923['element']);_0x21b26c['add'](_0x126013);for(const _0x3859f9 of _0x571923['ghsAttributes'])_0x21b26c['add'](_0x3859f9);}for(const _0x49ef30 of _0x147702)_0x3bc82f['registerBlockAttribute'](_0x49ef30),_0x3bc82f['descriptionFactory']['registerAttributeLabel'](_0x49ef30,o(_0x1f19ba,'FORMAT_STYLE'));for(const _0x140af3 of _0x21b26c)_0x3bc82f['registerInlineAttribute'](_0x140af3),_0x3bc82f['descriptionFactory']['registerAttributeLabel'](_0x140af3,o(_0x1f19ba,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1d3a86=this['editor'],_0x5bb299=_0x1d3a86['locale'];_0x1d3a86['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3db6ec=>{if('formatBlock'!=_0x3db6ec['type']&&'formatInline'!=_0x3db6ec['type'])return;const {data:_0x28eead}=_0x3db6ec;return _0x28eead&&'style'===_0x28eead['commandName']?_0x28eead['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5bb299,'*Set\x20format:*\x20%0',_0x28eead['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x5bb299,'*Remove\x20format:*\x20%0',_0x28eead['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x20810f{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x853887){super(_0x853887),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3c5f65=this['editor'],_0x2b2f51=_0x3c5f65['model']['document']['selection'];if(!_0x3c5f65['plugins']['has']('TableEditing'))return;const _0x50443a=_0x3c5f65['locale'],_0x6dc07c=_0x3c5f65['plugins']['get']('TrackChangesEditing'),_0x4878c3=_0x3c5f65['plugins']['get']('TableUtils');_0x6dc07c['descriptionFactory']['registerElementLabel']('table',_0x6a9ab2=>o(_0x50443a,'ELEMENT_TABLE',_0x6a9ab2)),this['_setupColumnsRowsFixing'](),_0x6dc07c['enableCommand']('insertTable'),_0x6dc07c['enableCommand']('selectTableRow'),_0x6dc07c['enableCommand']('selectTableColumn');for(const _0x513d3b of['insertTableRowAbove','insertTableRowBelow']){const _0x5b4698=_0x3c5f65['commands']['get'](_0x513d3b);_0x6dc07c['enableCommand'](_0x513d3b,_0x51a10d=>{_0x3c5f65['model']['change'](_0xa011e5=>{_0x51a10d();const _0x1f67ce='above'===_0x5b4698['order'],_0x22af8e=_0x4878c3['getSelectionAffectedTableCells'](_0x2b2f51),_0x2224e3=_0x4878c3['getRowIndexes'](_0x22af8e),_0x346c85=_0x1f67ce?_0x2224e3['first']-0x1:_0x2224e3['last']+0x1,_0x17dbab=_0x22af8e[0x0]['findAncestor']('table'),_0x3a6499=_0x4878c3['createTableWalker'](_0x17dbab,{'startRow':_0x346c85,'endRow':_0x346c85}),_0x2b608b=Array['from'](_0x3a6499)['map'](_0x49fe9a=>_0xa011e5['createRangeOn'](_0x49fe9a['cell']));_0x6dc07c['markMultiRangeInsertion'](_0x2b608b,'tableRow');});});}for(const _0x464752 of['insertTableColumnLeft','insertTableColumnRight']){const _0x8253f3=_0x3c5f65['commands']['get'](_0x464752);_0x6dc07c['enableCommand'](_0x464752,_0x36f928=>{_0x3c5f65['model']['change'](_0x15a855=>{_0x36f928();const _0x3df95f='left'===_0x8253f3['order'],_0x18d800=_0x4878c3['getSelectionAffectedTableCells'](_0x2b2f51),_0x9339a9=_0x4878c3['getColumnIndexes'](_0x18d800),_0x135571=_0x3df95f?_0x9339a9['first']-0x1:_0x9339a9['last']+0x1,_0x229571=_0x18d800[0x0]['findAncestor']('table'),_0x51d7f6=_0x4878c3['createTableWalker'](_0x229571,{'startRow':0x0,'column':_0x135571,'includeAllSlots':!0x1}),_0x14bdd7=Array['from'](_0x51d7f6)['map'](_0x42e765=>_0x15a855['createRangeOn'](_0x42e765['cell']));_0x6dc07c['markMultiRangeInsertion'](_0x14bdd7,'tableColumn');});});}for(const _0x541907 of['removeTableRow','removeTableColumn']){const _0x3abde8=_0x541907['substr'](0xb),_0x14fd2b=_0x3abde8['toLowerCase'](),_0x31296b=_0x14fd2b['substr'](0x0,0x3)+'span',_0x84b270='table'+_0x3abde8,_0x4b37d5='min'+_0x3abde8,_0x1e5e67='max'+_0x3abde8;_0x6dc07c['enableCommand'](_0x541907,()=>{_0x3c5f65['model']['change'](_0x585267=>{const _0x36e194=_0x4878c3['getSelectionAffectedTableCells'](_0x2b2f51),_0x1c7640=_0x36e194[0x0]['findAncestor']('table');let _0x9c2705;if('removeTableRow'==_0x541907){const _0x3291d8=_0x4878c3['getRowIndexes'](_0x36e194);_0x9c2705={'startRow':_0x3291d8['first'],'endRow':_0x3291d8['last'],'includeAllSlots':!0x0};}else{const _0x37c2b4=_0x4878c3['getColumnIndexes'](_0x36e194);_0x9c2705={'startColumn':_0x37c2b4['first'],'endColumn':_0x37c2b4['last'],'includeAllSlots':!0x0};}const _0x1628c1=_0x4878c3['createTableWalker'](_0x1c7640,_0x9c2705),_0x44ab56=Array['from'](_0x1628c1)['map'](({cell:_0x406519})=>_0x406519),_0x434d80=Ee(_0x44ab56['filter'](_0x10df4c=>_0x10df4c['hasAttribute'](_0x31296b))),_0xde0227=Ee(_0x44ab56['filter'](_0x68b5cc=>!_0x68b5cc['hasAttribute'](_0x31296b)))['map'](_0xfb5fbb=>_0x585267['createRangeOn'](_0xfb5fbb)),_0x4f5823=_0x6dc07c['markMultiRangeDeletion'](_0xde0227,_0x84b270);if(_0x4f5823&&('tableRow'==_0x4f5823['subType']||'tableColumn'==_0x4f5823['subType'])){const _0x1b0ca1=this['_getSuggestionCoords'](_0x4f5823);for(const _0xc5c39 of _0x434d80){const _0xe4e178=_0x585267['createRangeOn'](_0xc5c39),_0x201f9d=_0x4878c3['getCellLocation'](_0xc5c39),_0x5f2096=_0xc5c39['getAttribute'](_0x31296b)-0x1,_0x55ef92=_0x1b0ca1[_0x4b37d5],_0x5c1125=_0x1b0ca1[_0x1e5e67];_0x55ef92<=_0x201f9d[_0x14fd2b]&&_0x201f9d[_0x14fd2b]+_0x5f2096<=_0x5c1125&&_0x4f5823['addRange'](_0xe4e178);}}});});}function _0x5daee3(_0x543175){const _0x5c8e8d=Array['from'](_0x2b2f51['getRanges']())['map'](_0x3b6548=>_0x3f67f3['fromRange'](_0x3b6548));_0x3c5f65['model']['change'](_0x3fc88b=>{const _0x4444f0=_0x3fc88b['batch'];_0x543175=_0x543175['filter'](_0x19b5d2=>'$graveyard'!=_0x19b5d2['root']['rootName']),_0x3fc88b['setSelection'](_0x543175),_0x3c5f65['commands']['get']('removeTableRow')['refresh'](),_0x3c5f65['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3c5f65['model']['enqueueChange'](()=>{_0x3c5f65['model']['enqueueChange'](_0x4444f0,_0x2e80dc=>{const _0x361d89=_0x5c8e8d['filter'](_0x99565c=>'$graveyard'!=_0x99565c['root']['rootName']);_0x361d89['length']>0x0&&_0x2e80dc['setSelection'](_0x361d89);for(const _0x57a347 of _0x5c8e8d)_0x57a347['detach']();});});});}function _0x6b4476(_0x492319){_0x3c5f65['model']['change'](_0x3df9e4=>{const _0x1f8fd7=Array['from'](_0x2b2f51['getRanges']())['map'](_0x2a7660=>_0x3f67f3['fromRange'](_0x2a7660)),_0x3950b0=[];for(const _0x13f3c2 of _0x492319)for(const _0xf00193 of _0x13f3c2['getItems']({'shallow':!0x0}))_0x3950b0['push'](_0xf00193);for(const _0x392ae0 of _0x3950b0)'$graveyard'!=_0x392ae0['root']['rootName']&&(_0x3df9e4['setSelection'](_0x3df9e4['createPositionAt'](_0x392ae0,0x0)),_0x3c5f65['commands']['get']('removeTableColumn')['refresh'](),_0x3c5f65['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x2647e7=_0x1f8fd7['filter'](_0x16096b=>'$graveyard'!=_0x16096b['root']['rootName']);_0x2647e7['length']>0x0&&_0x3df9e4['setSelection'](_0x2647e7);for(const _0x545415 of _0x1f8fd7)_0x545415['detach']();});}function _0x33f8b1(_0xbe62ee,_0x4a50ad){return _0x4a50ad['every'](_0x4cac06=>_0xbe62ee['some'](_0x38ced3=>_0x38ced3['end']['isEqual'](_0x4cac06['start'])||_0x4cac06['end']['isEqual'](_0x38ced3['start'])));}function _0x38a3ae(_0x528cea,_0x287bf8){return!_0x528cea['some'](_0xffe28b=>_0x287bf8['some'](_0x5eb6fe=>_0xffe28b['isIntersecting'](_0x5eb6fe)))&&_0x528cea['some'](_0x17f33f=>_0x287bf8['some'](_0x450dad=>_0x17f33f['end']['isTouching'](_0x450dad['start'])));}_0x3c5f65['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x15a1ed,_0x45d58e,_0x3d627f)=>{if(!_0x3d627f['options']['showSuggestionHighlights'])return;const _0x3676e7=_0x45d58e['item'];if(!_0x3676e7)return;const _0x5ed730=_0x3d627f['mapper']['toViewElement'](_0x3676e7);function _0x559023(_0x34c925){return Array['isArray'](_0x34c925)?_0x34c925:[_0x34c925];}_0x5ed730&&'tableCell'===_0x3676e7['name']&&_0x3175fe(_0x5ed730,_0x3d627f['writer'],(_0x2edf32,_0xf75f0,_0x300550)=>_0x300550['addClass'](_0x559023(_0xf75f0['classes']),_0x2edf32),(_0x36bb68,_0x33ab7d,_0x4d6551)=>_0x4d6551['removeClass'](_0x559023(_0x33ab7d['classes']),_0x36bb68));},{'priority':'highest'}),_0x6dc07c['descriptionFactory']['registerDescriptionCallback'](_0x3094d7=>{if('insertion'!=_0x3094d7['type']&&'deletion'!=_0x3094d7['type'])return;const _0x38b952=_0x3094d7['getContainedElement']();if(null!=_0x38b952&&_0x38b952['is']('element','table')){if('insertion'==_0x3094d7['type']){const _0x2d8dd0=_0x3094d7['getItems']()['filter'](_0x54d15b=>_0x54d15b['is']('$textProxy'))['map'](_0x5c445f=>_0x5c445f['data']);if(_0x2d8dd0['length'])return{'type':'insertion','content':o(_0x50443a,'*Insert:*\x20%0',o(_0x50443a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2d8dd0['join']('\x20')+'\x22'))};}if('deletion'==_0x3094d7['type']){const _0x2d25eb=_0x3094d7['getItems']()['filter'](_0x3f3772=>_0x3f3772['is']('$textProxy'))['map'](_0x404c75=>_0x404c75['data']);if(_0x2d25eb['length'])return{'type':'deletion','content':o(_0x50443a,'*Remove:*\x20%0',o(_0x50443a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2d25eb['join']('\x20')+'\x22'))};}}}),_0x6dc07c['descriptionFactory']['registerDescriptionCallback'](_0x3bf7c6=>{if('tableRow'==_0x3bf7c6['subType']){const _0x514056=_0x3bf7c6['getItems']()['filter'](_0x20fdfd=>_0x20fdfd['is']('$textProxy'))['map'](_0x48dd75=>_0x48dd75['data']),_0x2ecebb=this['_getSuggestionCoords'](_0x3bf7c6),_0x16f11a=_0x2ecebb['maxRow']-_0x2ecebb['minRow']+0x1;if('insertion'==_0x3bf7c6['type'])return _0x514056['length']?{'type':'insertion','content':o(_0x50443a,'*Insert:*\x20%0',o(_0x50443a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x16f11a,'\x22'+_0x514056['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x50443a,'*Insert:*\x20%0',o(_0x50443a,'ELEMENT_TABLE_ROW',_0x16f11a))};if('deletion'==_0x3bf7c6['type'])return _0x514056['length']?{'type':'deletion','content':o(_0x50443a,'*Remove:*\x20%0',o(_0x50443a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x16f11a,'\x22'+_0x514056['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x50443a,'*Remove:*\x20%0',o(_0x50443a,'ELEMENT_TABLE_ROW',_0x16f11a))};}if('tableColumn'==_0x3bf7c6['subType']){const _0x2b73a4=_0x3bf7c6['getItems']()['filter'](_0x55114f=>_0x55114f['is']('$textProxy'))['map'](_0x3dd071=>_0x3dd071['data']),_0x538b38=this['_getSuggestionCoords'](_0x3bf7c6),_0x3e88ef=_0x538b38['maxColumn']-_0x538b38['minColumn']+0x1;if('insertion'==_0x3bf7c6['type'])return _0x2b73a4['length']?{'type':'insertion','content':o(_0x50443a,'*Insert:*\x20%0',o(_0x50443a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3e88ef,'\x22'+_0x2b73a4['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x50443a,'*Insert:*\x20%0',o(_0x50443a,'ELEMENT_TABLE_COLUMN',_0x3e88ef))};if('deletion'==_0x3bf7c6['type'])return _0x2b73a4['length']?{'type':'deletion','content':o(_0x50443a,'*Remove:*\x20%0',o(_0x50443a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3e88ef,'\x22'+_0x2b73a4['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x50443a,'*Remove:*\x20%0',o(_0x50443a,'ELEMENT_TABLE_COLUMN',_0x3e88ef))};}}),_0x6dc07c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5daee3),_0x6dc07c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5daee3),_0x6dc07c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x6b4476),_0x6dc07c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x6b4476),_0x6dc07c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x33f8b1),_0x6dc07c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x33f8b1),_0x6dc07c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x38a3ae),_0x6dc07c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x38a3ae);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4439b1=this['editor'],_0x3bee69=_0x4439b1['model']['document']['selection'];return(_0xb32bf8,_0x126a0b)=>{_0x4439b1['model']['change'](_0x29a8d5=>{const {commandName:_0x457e9a,commandParams:_0x511216}=_0x126a0b;let _0x57b7ef=_0xb32bf8[0x0]['end']['nodeBefore'];_0x511216&&_0x511216[0x0]&&!0x1===_0x511216[0x0]['forceValue']&&(_0x57b7ef=_0xb32bf8[0x0]['start']['nodeAfter']);const _0x4b0824=_0x29a8d5['createRangeIn'](_0x57b7ef);if('$graveyard'==_0x4b0824['root']['rootName'])return;const _0x592ca5=Array['from'](_0x3bee69['getRanges']())['map'](_0x3d5e32=>_0x3f67f3['fromRange'](_0x3d5e32));_0x29a8d5['setSelection'](_0x4b0824),_0x4439b1['commands']['get'](_0x457e9a)['refresh'](),_0x511216['push']({'forceDefaultExecution':!0x0}),_0x4439b1['execute'](_0x457e9a,..._0x511216);const _0x38f43f=_0x592ca5['filter'](_0x547c8e=>'$graveyard'!=_0x547c8e['root']['rootName']);_0x38f43f['length']>0x0&&_0x29a8d5['setSelection'](_0x38f43f);for(const _0xf1855e of _0x592ca5)_0xf1855e['detach']();});};}['_getCoordsForCells'](_0x5b1097){const _0x13f65f=this['editor']['plugins']['get']('TableUtils');let _0x3d2959=Number['MAX_SAFE_INTEGER'],_0x4df8bb=Number['MIN_SAFE_INTEGER'],_0x22542c=Number['MAX_SAFE_INTEGER'],_0x14fb46=Number['MIN_SAFE_INTEGER'];for(const _0x21678a of _0x5b1097){if('$graveyard'==_0x21678a['root']['rootName'])continue;const {row:_0x44fbe9,column:_0x1cec40}=_0x13f65f['getCellLocation'](_0x21678a),_0xe52f84=_0x21678a['hasAttribute']('rowspan')?_0x21678a['getAttribute']('rowspan')-0x1:0x0,_0x237dbc=_0x21678a['hasAttribute']('colspan')?_0x21678a['getAttribute']('colspan')-0x1:0x0;_0x3d2959=_0x44fbe9<_0x3d2959?_0x44fbe9:_0x3d2959,_0x4df8bb=_0x44fbe9+_0xe52f84>_0x4df8bb?_0x44fbe9+_0xe52f84:_0x4df8bb,_0x22542c=_0x1cec40<_0x22542c?_0x1cec40:_0x22542c,_0x14fb46=_0x1cec40+_0x237dbc>_0x14fb46?_0x1cec40+_0x237dbc:_0x14fb46;}return{'minRow':_0x3d2959,'maxRow':_0x4df8bb,'minColumn':_0x22542c,'maxColumn':_0x14fb46};}['_setupColumnsRowsFixing'](){const _0x46d46f=this['editor'],_0x1a775d=_0x46d46f['plugins']['get']('TrackChangesEditing'),_0x31c194=_0x46d46f['plugins']['get']('TableUtils');_0x46d46f['model']['document']['on']('change:data',()=>{const _0x4cf519=Array['from'](_0x46d46f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x25c0a9,data:_0x1408f7}of _0x4cf519){const {group:_0x52401b,id:_0x5bc1e8,subType:_0x40ff24}=_0x1a775d['_splitMarkerName'](_0x25c0a9);if('suggestion'!=_0x52401b)continue;if(null!=_0x1408f7['oldRange'])continue;const _0x2994ac=_0x1a775d['getSuggestion'](_0x5bc1e8);this['_tablePostFixingSubtypes']['includes'](_0x40ff24)&&this['_tableSuggestions']['add'](_0x2994ac);}},{'priority':'low'});const _0xfe4a53=(_0x3badb7,_0x25ec73)=>{let _0x3244b2=!0x1;const _0x2777e4=_0x25ec73['createRangeOn'](_0x3badb7),_0x354beb=_0x3badb7['findAncestor']('table'),_0x2c9941=_0x31c194['getCellLocation'](_0x3badb7);for(const _0x3e37ce of this['_tableSuggestions']){const _0x3f178a=_0x3e37ce['subType'],_0x3b87b5=_0x3f178a['startsWith']('tablePaste'),_0x256623=_0x3f178a['substr'](_0x3b87b5?0xa:0x5),_0x35675c=_0x256623['toLowerCase'](),_0x3efce5=_0x35675c['substr'](0x0,0x3)+'span',_0x575032='min'+_0x256623,_0x3f694c='max'+_0x256623;if(!_0x3e37ce['isInContent'])continue;if(_0x354beb!=_0x3e37ce['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3e37ce['isIntersectingWithRange'](_0x2777e4))continue;const _0x597e3c=_0x3badb7['hasAttribute'](_0x3efce5)?_0x3badb7['getAttribute'](_0x3efce5)-0x1:0x0,_0x4d6eb3=this['_getSuggestionCoords'](_0x3e37ce),_0x32710d=_0x4d6eb3[_0x575032],_0x4515f4=_0x4d6eb3[_0x3f694c];_0x32710d<=_0x2c9941[_0x35675c]&&_0x2c9941[_0x35675c]+_0x597e3c<=_0x4515f4&&(_0x3e37ce['addRange'](_0x2777e4),_0x3244b2=!0x0);}return _0x3244b2;};_0x46d46f['model']['document']['registerPostFixer'](_0x3369f4=>{let _0x1f76a5=!0x1;for(const _0x5ee5c4 of _0x46d46f['model']['document']['differ']['getChanges']())if('insert'==_0x5ee5c4['type']){if('tableRow'==_0x5ee5c4['name']){for(const _0x14c831 of _0x5ee5c4['position']['nodeAfter']['getChildren']())_0x1f76a5=_0x1f76a5||_0xfe4a53(_0x14c831,_0x3369f4);}else'tableCell'==_0x5ee5c4['name']&&(_0x1f76a5=_0x1f76a5||_0xfe4a53(_0x5ee5c4['position']['nodeAfter'],_0x3369f4));}return _0x1f76a5;});}['_getSuggestionCoords'](_0x1e45e6){return this['_getCoordsForCells'](_0x1e45e6['getRanges']()['map'](_0x37b6cb=>_0x37b6cb['start']['nodeAfter']));}}function Ee(_0x549578){return Array['from'](new Set(_0x549578)['values']());}class St extends _0x20810f{static get['requires'](){return[jt];}['afterInit'](){const _0x2aa003=this['editor'],_0x5bc5d0=_0x2aa003['model']['document']['selection'],_0x5093b5=_0x2aa003['locale'];if(!_0x2aa003['plugins']['has']('TableEditing'))return;const _0x3d7468=_0x2aa003['plugins']['get']('TrackChangesEditing'),_0x516fc1=_0x2aa003['plugins']['get']('TableUtils'),_0x33c1a6=_0x2aa003['plugins']['get'](jt);_0x33c1a6['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3d7468['enableCommand']('mergeTableCells',()=>{const _0x4ddfa3=_0x516fc1['getSelectionAffectedTableCells'](_0x2aa003['model']['document']['selection']);_0x2aa003['model']['change'](()=>{_0x3d7468['markMultiRangeBlockFormat'](_0x4ddfa3,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2aa003['commands']['get']('mergeTableCells')['on']('execute',(_0x1c5027,_0x42300f)=>{_0x2aa003['commands']['get']('trackChanges')['value']&&(_0x42300f['length']>0x0&&_0x42300f[_0x42300f['length']-0x1]&&_0x42300f[_0x42300f['length']-0x1]['forceDefaultExecution']||_0x3d7468['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1c5027['stop']());},{'priority':'highest'});for(const _0x5aabfa of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x40876e=_0x2aa003['commands']['get'](_0x5aabfa);_0x3d7468['enableCommand'](_0x5aabfa,()=>{const _0x491889=_0x2aa003['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x17324d=>_0x17324d['is']('element','tableCell')),_0xafa3d2=_0x40876e['value'];_0x2aa003['model']['change'](()=>{_0x3d7468['markMultiRangeBlockFormat']([_0x491889,_0xafa3d2],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x563029 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x135771=_0x2aa003['commands']['get'](_0x563029);_0x3d7468['enableCommand'](_0x563029,()=>{const _0x1a82de=_0x516fc1['getSelectionAffectedTableCells'](_0x2aa003['model']['document']['selection'])[0x0],_0x187aae=_0x1a82de['findAncestor']('table'),{column:_0x38baaf,row:_0x515843}=_0x516fc1['getCellLocation'](_0x1a82de);let _0x4e17b5=[];if('horizontally'==_0x135771['direction']){const _0x1b085a=_0x516fc1['createTableWalker'](_0x187aae,{'startRow':_0x515843,'endRow':_0x515843,'includeAllSlots':!0x0});_0x4e17b5=Array['from'](_0x1b085a)['map'](_0x27837e=>_0x27837e['cell']);}else{const _0x512d27=_0x516fc1['createTableWalker'](_0x187aae,{'column':_0x38baaf,'includeAllSlots':!0x0});_0x4e17b5=Array['from'](_0x512d27)['map'](_0x2d4657=>_0x2d4657['cell']);}_0x2aa003['model']['change'](_0x244300=>{_0x3d7468['markBlockFormat'](_0x244300['createRangeOn'](_0x1a82de),{'commandName':_0x563029,'commandParams':[]},_0x4e17b5,_0x563029);});});}_0x3d7468['descriptionFactory']['registerDescriptionCallback'](_0x15c3b9=>{if('formatBlock'!=_0x15c3b9['type']&&'formatInline'!=_0x15c3b9['type'])return;const {data:_0x53e39e}=_0x15c3b9;return _0x53e39e&&'mergeTableCells'==_0x53e39e['commandName']?{'type':'format','content':o(_0x5093b5,'*Merge\x20cells*')}:void 0x0;}),_0x3d7468['descriptionFactory']['registerDescriptionCallback'](_0x8a5a=>{if('formatBlock'!=_0x8a5a['type']&&'formatInline'!=_0x8a5a['type'])return;const {data:_0x2bf873}=_0x8a5a;return _0x2bf873?'splitTableCellVertically'==_0x2bf873['commandName']?{'type':'format','content':o(_0x5093b5,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2bf873['commandName']?{'type':'format','content':o(_0x5093b5,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x247191=_0x33c1a6['_acceptFormatSuggestionCallbackFactory']();for(const _0x12c594 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3d7468['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x12c594,'accept',_0x247191);for(const _0x3a51a3 of['splitTableCellVertically','splitTableCellHorizontally'])_0x3d7468['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3a51a3,'accept',_0x247191);_0x3d7468['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4ccda5=>{_0x2aa003['model']['change'](_0x22e871=>{const _0x32f37d=Array['from'](_0x5bc5d0['getRanges']())['map'](_0x2ac4c9=>_0x3f67f3['fromRange'](_0x2ac4c9));_0x22e871['setSelection'](_0x4ccda5),_0x2aa003['commands']['get']('mergeTableCells')['refresh'](),_0x2aa003['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3a34b5=_0x32f37d['filter'](_0x548b0b=>'$graveyard'!=_0x548b0b['root']['rootName']);_0x3a34b5['length']>0x0&&_0x22e871['setSelection'](_0x3a34b5);for(const _0x56de08 of _0x32f37d)_0x56de08['detach']();});});for(const _0xb18710 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3a9781=_0x2aa003['commands']['get'](_0xb18710);_0x3a9781['on']('set:isEnabled',(_0x5ae00e,_0x263154,_0x414e5a)=>{if(_0x414e5a){const _0x5a21cd=_0x2aa003['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x188513=>_0x188513['is']('element','tableCell'));this['_areMergableCells'](_0x3a9781['value'],_0x5a21cd)||(_0x5ae00e['return']=!0x1,_0x5ae00e['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x2ef7fc=this['editor']['commands']['get']('mergeTableCells'),_0x5246d8=this['editor']['plugins']['get']('TableUtils');if(!_0x2ef7fc['isEnabled'])return!0x1;const _0x2da362=_0x5246d8['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x253efa of _0x2da362)for(const _0x1e66fc of _0x2da362)if(_0x253efa!=_0x1e66fc&&!this['_areMergableCells'](_0x253efa,_0x1e66fc))return!0x1;return!0x0;}['_areMergableCells'](_0x510508,_0x42a3ce){const _0x2187fc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5c33a3=this['editor']['model']['createRangeOn'](_0x510508),_0x389f1a=this['editor']['model']['createRangeOn'](_0x42a3ce),_0x21fba1=new Set(),_0x242752=new Set();for(const _0x451286 of _0x2187fc['getSuggestions']())if(('insertion'==_0x451286['type']||'deletion'==_0x451286['type']||'mergeTableCells'==_0x451286['subType'])&&_0x451286['isInContent']){for(const _0x4a7286 of _0x451286['getRanges']())_0x4a7286['containsRange'](_0x5c33a3,!0x0)&&_0x21fba1['add'](_0x451286['type']+':'+_0x451286['author']['id']),_0x4a7286['containsRange'](_0x389f1a,!0x0)&&_0x242752['add'](_0x451286['type']+':'+_0x451286['author']['id']);}if(_0x21fba1['size']!=_0x242752['size'])return!0x1;for(const _0x41515f of _0x21fba1)if(!_0x242752['has'](_0x41515f))return!0x1;return!0x0;}}class At extends _0x20810f{static get['requires'](){return[jt];}['afterInit'](){const _0x17f2d7=this['editor'];if(!_0x17f2d7['plugins']['has']('TableEditing'))return;const _0x26cff9=_0x17f2d7['locale'],_0x5e8a9=_0x17f2d7['plugins']['get']('TrackChangesEditing');_0x5e8a9['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5e8a9['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5e8a9['registerBlockAttribute']('headingRows'),_0x5e8a9['registerBlockAttribute']('headingColumns'),_0x5e8a9['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x26cff9,'FORMAT_HEADER_ROW')),_0x5e8a9['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x26cff9,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xed4088=this['editor']['plugins']['get']('TrackChangesEditing'),_0x10c3b5=this['editor']['plugins']['get']('TableUtils'),_0x1929b6=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0xc5bc2({showActiveMarker:_0x4e1a54=!0x0,setDataAttribute:_0x27a43e=!0x0}={}){return(_0x133bfb,_0xe2d195,_0x58440d)=>{const {type:_0x42fd9e,id:_0x1ab642}=_0xed4088['_splitMarkerName'](_0xe2d195['markerName']),_0x32e720=_0xed4088['getSuggestion'](_0x1ab642),_0x5f5e06=_0x32e720['data'];if('formatBlock'!=_0x32e720['type']||!_0x5f5e06||'setTableColumnHeader'!=_0x5f5e06['commandName'])return;if(_0xe2d195['item'])return void _0x133bfb['stop']();if(!_0x58440d['consumable']['consume'](_0xe2d195['markerRange'],_0x133bfb['name']))return;const _0x7168a5=_0xe2d195['markerRange']['start']['nodeAfter'],_0x338e58=_0xe2d195['markerRange']['end']['nodeBefore'],_0x372277=_0x7168a5['parent']['parent'],{column:_0x35bbc1}=_0x10c3b5['getCellLocation'](_0x7168a5),{column:_0xacc879}=_0x10c3b5['getCellLocation'](_0x338e58);for(let _0x1748c6=_0x35bbc1;_0x1748c6<=_0xacc879;_0x1748c6++){const _0x2e265e=_0x10c3b5['createTableWalker'](_0x372277,{'column':_0x1748c6,'includeAllSlots':!0x1});for(const _0x4073c1 of _0x2e265e){const _0x57f5a2=_0x4073c1['cell'],_0x1a7fd4=_0x58440d['mapper']['toViewElement'](_0x57f5a2);_0x58440d['writer']['addClass']('ck-suggestion-marker-'+_0x42fd9e,_0x1a7fd4),_0x27a43e&&_0x58440d['writer']['setAttribute']('data-suggestion',_0x1ab642,_0x1a7fd4),_0x58440d['mapper']['bindElementToMarker'](_0x1a7fd4,_0xe2d195['markerName']),_0x4e1a54&&(_0xed4088['activeMarkers']['includes'](_0xe2d195['markerName'])?_0x58440d['writer']['addClass']('ck-suggestion-marker--active',_0x1a7fd4):_0x58440d['writer']['removeClass']('ck-suggestion-marker--active',_0x1a7fd4));}}};}_0xed4088['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x1929b6),_0xed4088['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x1929b6),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0xc5bc2(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x30f0ba,_0x1d8f8a,_0x2ffab5)=>{_0x2ffab5['options']['showSuggestionHighlights']&&_0xc5bc2({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x30f0ba,_0x1d8f8a,_0x2ffab5);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x445dc6,_0xe4c1d4,_0x346e59)=>{const {type:_0x492dea,id:_0x594f4d}=_0xed4088['_splitMarkerName'](_0xe4c1d4['markerName']),_0x5aae66=_0xed4088['getSuggestion'](_0x594f4d),_0x21e656=_0x5aae66['data'];if('formatBlock'!=_0x5aae66['type']||!_0x21e656||'setTableColumnHeader'!=_0x21e656['commandName'])return;const _0x51a7c1=_0x346e59['mapper']['markerNameToElements'](_0xe4c1d4['markerName']);if(_0x51a7c1){for(const _0x86f53f of _0x51a7c1)_0x346e59['writer']['removeClass']('ck-suggestion-marker-'+_0x492dea,_0x86f53f),_0x346e59['writer']['removeClass']('ck-suggestion-marker--active',_0x86f53f),_0x346e59['writer']['removeAttribute']('data-suggestion',_0x86f53f),_0x346e59['mapper']['unbindElementFromMarkerName'](_0x86f53f,_0xe4c1d4['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2dafe2=this['editor'],_0x4f71b2=_0x2dafe2['locale'];function _0x2b5a02(_0x1ac6ec){return{'type':'format','content':o(_0x4f71b2,'*Format:*\x20%0',_0x1ac6ec)};}_0x2dafe2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b474b=>{if('formatBlock'!=_0x4b474b['type'])return;const {data:_0x2e54f0}=_0x4b474b;if(_0x2e54f0){if('setTableRowHeader'==_0x2e54f0['commandName']){const _0x5f4a5d=_0x2e54f0['commandParams'][0x0]['forceValue'];return _0x2b5a02(o(_0x4f71b2,_0x5f4a5d?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x2e54f0['commandName']){const _0x2fb8f5=_0x2e54f0['commandParams'][0x0]['forceValue'];return _0x2b5a02(o(_0x4f71b2,_0x2fb8f5?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x4ef158=>[_0x4ef158,null]));class It extends _0x20810f{static get['requires'](){return[jt];}['afterInit'](){const _0x114349=this['editor'];if(!_0x114349['plugins']['has']('TableClipboard'))return;const _0x5b6b96=_0x114349['plugins']['get']('TrackChangesEditing'),_0x44f02f=_0x114349['plugins']['get']('TableUtils'),_0x3d67e4=_0x114349['plugins']['get'](jt),_0x267c30=_0x114349['plugins']['get']('TableClipboard');_0x3d67e4['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x114349['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x114349['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x39eb11=null;_0x114349['model']['on']('insertContent',(_0x496ac5,_0x221974)=>{const [_0x2be1e0,_0x1f8e28]=_0x221974,_0x393892=_0x221974[_0x221974['length']-0x1];_0x393892&&_0x393892['forceDefaultExecution']||_0x5b6b96['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4135e5,_0x4bc1b9,_0xf98209,_0x1e3fa9,_0x54bb45){if(_0x4bc1b9&&!_0x4bc1b9['is']('documentSelection'))return!0x1;const _0xa54903=_0x54bb45['getTableIfOnlyTableInContent'](_0x4135e5,_0xf98209);if(!_0xa54903||!he(_0xa54903,void 0x0,_0x1e3fa9))return!0x1;const _0x391f3a=_0x1e3fa9['getSelectionAffectedTableCells'](_0xf98209['document']['selection']);if(!_0x391f3a['length'])return!0x1;const _0x1a5325=_0x391f3a[0x0]['findAncestor']('table'),_0xc7d19c=_0x1e3fa9['getRowIndexes'](_0x391f3a),_0x23888d=_0x1e3fa9['getColumnIndexes'](_0x391f3a),_0x326004={'startRow':_0xc7d19c['first'],'endRow':_0xc7d19c['last'],'startColumn':_0x23888d['first'],'endColumn':_0x23888d['last']};return 0x1==_0x391f3a['length']&&(_0x326004['endRow']+=_0x1e3fa9['getRows'](_0xa54903)-0x1,_0x326004['endColumn']+=_0x1e3fa9['getColumns'](_0xa54903)-0x1),he(_0x1a5325,_0x326004,_0x1e3fa9);}(_0x2be1e0,_0x1f8e28,_0x114349['model'],_0x44f02f,_0x267c30)&&(_0x496ac5['stop'](),_0x39eb11={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x114349['model']['change'](()=>{_0x114349['model']['insertContent'](_0x221974[0x0],_0x221974[0x1],_0x221974[0x2],{'forceDefaultExecution':!0x0});const _0x1f85d1=_0x4afc5b(),{rowInsertionRanges:_0x1df1d8,columnInsertionRanges:_0x1bfc6b,insertionRanges:_0x2bc6dd,deletionRanges:_0x225a2b,cells:_0x278158}=_0x39eb11;_0x1df1d8['length']&&_0x5b6b96['markMultiRangeInsertion'](_0x1df1d8,'tablePasteRow',{'tablePasteChainId':_0x1f85d1}),_0x1bfc6b['length']&&_0x5b6b96['markMultiRangeInsertion'](_0x1bfc6b,'tablePasteColumn',{'tablePasteChainId':_0x1f85d1}),_0x2bc6dd['length']&&(_0x5b6b96['markMultiRangeInsertion'](_0x2bc6dd,'tablePaste',{'tablePasteChainId':_0x1f85d1,'skipNestingCheck':!0x0}),_0x2bc6dd['forEach'](_0x4f9f4f=>_0x4f9f4f['detach']?.())),_0x225a2b['length']&&(_0x5b6b96['markMultiRangeDeletion'](_0x225a2b,'tablePaste',{'tablePasteChainId':_0x1f85d1,'skipNestingCheck':!0x0}),_0x225a2b['forEach'](_0x3cca85=>_0x3cca85['detach']?.()));const _0x28eeaa=_0x5b6b96['markMultiRangeBlockFormat'](_0x278158['map'](({element:_0x47ddac})=>_0x47ddac),{'formatGroupId':_0x4afc5b()},[],'tablePasteCell',{'tablePasteChainId':_0x1f85d1});if(_0x28eeaa){const _0x123ed5=_0x28eeaa['getMarkers'](),_0x1738ff=[];for(const {element:_0x1830ee,attributes:_0x21e46f}of _0x278158){if(!_0x21e46f)continue;const _0x3f7425=_0x114349['model']['createRangeOn'](_0x1830ee),_0x418aee=_0x123ed5['find'](_0x1b7066=>_0x1b7066['getRange']()['isEqual'](_0x3f7425));_0x418aee&&_0x1738ff['push']([_0x418aee['name'],_0x21e46f]);}_0x1738ff['length']&&_0x28eeaa['setAttribute']('markerAttributes',Object['fromEntries'](_0x1738ff));}_0x39eb11=null;}));},{'priority':_0x515e10['high']+0xa}),_0x114349['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3ce23f,_0x716dae)=>{const [_0x40f738,_0x4129b1,,_0x4659d4]=_0x716dae;if(!_0x39eb11)return;_0x3ce23f['stop']();const _0x52401a=_0x40f738['cell'],_0x48ae94=_0x4129b1,_0xc88609=Pe(_0x52401a),_0x39199d=Pe(_0x48ae94);_0x3ce23f['return']=_0x52401a;let _0x4633ca=null,_0x128e5e=null;if(_0x39199d||_0xc88609){if(_0xc88609&&!_0x39199d){_0x4659d4['remove'](_0x52401a['getChild'](0x0));for(const _0x25eede of Array['from'](_0x48ae94['getChildren']()))_0x4659d4['insert'](_0x25eede,_0x52401a,'end');const _0xd2acc5=_0x39eb11['rowInsertionIndexes']['includes'](_0x40f738['row']),_0x11e564=_0x39eb11['columnInsertionIndexes']['includes'](_0x40f738['column']);_0xd2acc5||_0x11e564||(_0x4633ca=_0x3f67f3['fromRange'](_0x4659d4['createRangeIn'](_0x52401a)));}else _0x39199d&&!_0xc88609&&(_0x128e5e=_0x4659d4['createRangeIn'](_0x52401a));}else{const _0x2e916e=_0x4659d4['createElement']('tableCellSuggestion'),_0x485318=_0x4659d4['createElement']('tableCellSuggestion');_0x4659d4['wrap'](_0x4659d4['createRangeIn'](_0x52401a),_0x485318),_0x4659d4['insert'](_0x2e916e,_0x52401a,0x0);for(const _0x63fe2e of Array['from'](_0x48ae94['getChildren']()))_0x4659d4['insert'](_0x63fe2e,_0x2e916e,'end');_0x4633ca=_0x3f67f3['fromRange'](_0x4659d4['createRangeOn'](_0x2e916e)),_0x128e5e=_0x3f67f3['fromRange'](_0x4659d4['createRangeOn'](_0x485318));}const _0x242d28=Array['from'](_0x48ae94['getAttributes']())['filter'](([_0x150d3b])=>ge['includes'](_0x150d3b));_0x39eb11['cells']['push']({'element':_0x52401a,'attributes':_0x242d28['length']?Object['fromEntries'](_0x242d28):null}),_0x4633ca&&_0x39eb11['insertionRanges']['push'](_0x4633ca),_0x128e5e&&_0x39eb11['deletionRanges']['push'](_0x128e5e);},{'priority':'high'}),_0x44f02f['on']('insertColumns',(_0x5b80bd,_0x4274d0)=>{const [_0x4a09d7,_0x48bae1={}]=_0x4274d0;if(!_0x39eb11)return;const _0x4119d3=_0x48bae1['at']||0x0,_0xbc6c39=_0x48bae1['columns']||0x1;_0x39eb11['columnInsertionIndexes']=new Array(_0xbc6c39)['fill'](_0x4119d3)['map']((_0x38f175,_0x360aa1)=>_0x38f175+_0x360aa1);for(const {cell:_0x2925f9}of _0x44f02f['createTableWalker'](_0x4a09d7,{'startColumn':_0x4119d3,'endColumn':_0x4119d3+_0xbc6c39-0x1}))_0x39eb11['columnInsertionRanges']['push'](_0x114349['model']['createRangeOn'](_0x2925f9));},{'priority':'low'}),_0x44f02f['on']('insertRows',(_0x5d2173,_0x56f08e)=>{const [_0x5dff47,_0x4713df={}]=_0x56f08e;if(!_0x39eb11)return;const _0x56534b=_0x4713df['at']||0x0,_0x2ce4b1=_0x4713df['rows']||0x1;_0x39eb11['rowInsertionIndexes']=new Array(_0x2ce4b1)['fill'](_0x56534b)['map']((_0x45b015,_0x39a5a7)=>_0x45b015+_0x39a5a7);for(const {cell:_0x2c22b3}of _0x44f02f['createTableWalker'](_0x5dff47,{'startRow':_0x56534b,'endRow':_0x56534b+_0x2ce4b1-0x1}))_0x39eb11['rowInsertionRanges']['push'](_0x114349['model']['createRangeOn'](_0x2c22b3));},{'priority':'low'}),_0x5b6b96['descriptionFactory']['registerDescriptionCallback'](_0x26550f=>{if(_0x26550f['subType']&&_0x26550f['subType']['startsWith']('tablePaste'))return _0x26550f['previous']?{}:{'type':'insertion','content':o(_0x114349['locale'],'*Replace\x20table\x20cells*')};});const _0x53f3e4=()=>!0x1;for(const _0x3e08d5 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x5b6b96['_suggestionFactory']['registerCustomCallback']('insertion',_0x3e08d5,'join',_0x53f3e4),_0x5b6b96['_suggestionFactory']['registerCustomCallback']('deletion',_0x3e08d5,'join',_0x53f3e4),_0x5b6b96['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3e08d5,'join',_0x53f3e4);_0x5b6b96['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x53f3e4),_0x5b6b96['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4d77c5,_0x53b21d,_0x1779fb)=>{const _0x5ed02d=_0x4d77c5['map'](_0x3f1ebb=>_0x3f1ebb['getContainedElement']())['filter'](_0x4bd447=>_0x4bd447),_0x23ee78=new Map(_0x5ed02d['map'](_0x516be9=>[_0x516be9,null]));if(_0x39eb11){for(const {element:_0x243c63,attributes:_0x137668}of _0x39eb11['cells'])_0x137668&&_0x23ee78['set'](_0x243c63,_0x137668);}else{if(_0x1779fb&&_0x1779fb['markerAttributes'])for(const [_0x1a9380,_0x245ada]of Object['entries'](_0x1779fb['markerAttributes'])){const _0x38b383=_0x114349['model']['markers']['get'](_0x1a9380),_0x5b343c=_0x38b383?_0x38b383['getRange']()['getContainedElement']():null;_0x5b343c&&_0x23ee78['set'](_0x5b343c,_0x245ada);}}_0x114349['model']['change'](_0x1f5add=>{for(const [_0x6aa8fc,_0x1b5c7c]of _0x23ee78)_0x1f5add['setAttributes']({...Ce,..._0x1b5c7c},_0x6aa8fc);});});const _0x1fb5a7=(_0x3b1476,_0x4b1191)=>{_0x5b6b96['_suggestionFactory']['registerCustomCallback'](_0x3b1476,'tablePaste',_0x4b1191,(_0x2fa8ca,_0x5a0c22,_0x4e5342)=>{_0x114349['model']['change'](_0xa71598=>{const _0x10b7bd=[];for(const _0x51d353 of _0x2fa8ca){const _0x4d379e=_0x51d353['start']['nodeAfter'];_0x4d379e['is']('element','tableCellSuggestion')&&_0x10b7bd['push'](_0x4d379e);}_0x5b6b96['_suggestionFactory']['getSuggestionCallback'](_0x3b1476,null,_0x4b1191)(_0x2fa8ca,_0x5a0c22,_0x4e5342);for(const _0x30e715 of _0x10b7bd)'$graveyard'!=_0x30e715['root']['rootName']&&_0xa71598['unwrap'](_0x30e715);});});};_0x1fb5a7('insertion','accept'),_0x1fb5a7('insertion','discard'),_0x1fb5a7('deletion','accept'),_0x1fb5a7('deletion','discard'),_0x5b6b96['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2697ad=>{const _0x5e8544=_0x2697ad['map'](_0xde2130=>_0xde2130['getContainedElement']()),_0x56d070=_0x5e8544[0x0]['findAncestor']('table'),{minRow:_0x145017,maxRow:_0x367d08}=_0x3d67e4['_getCoordsForCells'](_0x5e8544);_0x44f02f['removeRows'](_0x56d070,{'at':_0x145017,'rows':_0x367d08-_0x145017+0x1});}),_0x5b6b96['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2f71f8=>{const _0x53ce45=_0x2f71f8['map'](_0xe0f476=>_0xe0f476['getContainedElement']()),_0x552f63=_0x53ce45[0x0]['findAncestor']('table'),{minColumn:_0x4d0d18,maxColumn:_0x28ca64}=_0x3d67e4['_getCoordsForCells'](_0x53ce45);_0x44f02f['removeColumns'](_0x552f63,{'at':_0x4d0d18,'columns':_0x28ca64-_0x4d0d18+0x1});});const _0x2f805a=(_0x44b88d,_0x28dbfc)=>{if(!_0x28dbfc['subType']||!_0x28dbfc['subType']['startsWith']('tablePaste'))return;const _0x5e4126=_0x28dbfc['attributes']['tablePasteChainId'],_0x3bfeca=_0x5b6b96['getSuggestions']()['filter'](_0x26250f=>_0x26250f['isInContent']&&_0x26250f['attributes']&&_0x26250f['attributes']['tablePasteChainId']==_0x5e4126);_0x3bfeca['length']&&_0x28dbfc['getAllAdjacentSuggestions']()['length']!=_0x3bfeca['length']&&_0x3bfeca['reduce']((_0x3ce31e,_0x53b8fa)=>(_0x3ce31e['next']=_0x53b8fa,_0x53b8fa['previous']=_0x3ce31e,_0x53b8fa));};function _0x4c73db(_0x19f6b9,_0x7af03a=!0x0){const {id:_0x1adea4}=_0x5b6b96['_splitMarkerName'](_0x19f6b9['markerName']),_0x12fea6=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1eda42=_0x5b6b96['activeMarkers']['includes'](_0x19f6b9['markerName']);return _0x1eda42&&_0x12fea6['push']('ck-suggestion-marker--active'),{'classes':_0x12fea6,'attributes':{'data-suggestion':_0x1adea4},'priority':_0x1eda42&&_0x7af03a?0xbc2:0xbb8};}_0x5b6b96['on']('suggestionLoaded',_0x2f805a,{'priority':'high'}),_0x5b6b96['on']('suggestionUnloaded',_0x2f805a,{'priority':'high'}),_0x114349['model']['document']['registerPostFixer'](()=>{let _0x47a897=!0x1;const _0x3a86aa=Array['from'](_0x114349['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x761b36,data:_0x261ce4}of _0x3a86aa){const {group:_0xbe29ed,type:_0x45bc12,id:_0x42edcc}=_0x5b6b96['_splitMarkerName'](_0x761b36);if('suggestion'!=_0xbe29ed||'deletion'!=_0x45bc12||_0x261ce4['oldRange'])continue;if(!_0x5b6b96['hasSuggestion'](_0x42edcc))continue;const _0x213787=_0x5b6b96['getSuggestion'](_0x42edcc)['getRanges'](),_0x170135=_0x114349['plugins']['get']('Users')['me'];for(const _0x528bd5 of _0x5b6b96['getSuggestions']()){if(!_0x528bd5['isInContent']||_0x528bd5['author']!=_0x170135)continue;if('formatBlock'!=_0x528bd5['type']||'tablePasteCell'!=_0x528bd5['subType'])continue;if(_0x528bd5['getRanges']()['every'](_0x168218=>_0x213787['some'](_0x5bb585=>_0x5bb585['containsRange'](_0x168218,!0x0)))){for(const _0x3295a4 of _0x528bd5['getAllAdjacentSuggestions']())_0x3295a4['isInContent']&&(_0x3295a4['discard'](),_0x47a897=!0x0);}}}return _0x47a897;}),_0x114349['model']['document']['registerPostFixer'](_0x139613=>{const _0x1eb074=_0x114349['commands']['get']('redo');if(!_0x1eb074||!_0x1eb074['_createdBatches']['has'](_0x139613['batch']))return!0x1;let _0x2feb57=!0x1;const _0x35c638=_0x114349['plugins']['get']('Users')['me'],_0x373c87=_0x114349['model']['document']['differ']['getChanges'](),_0xf99376=Array['from'](_0x114349['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1ca637,data:_0x5a94af})=>{const {group:_0x42712d,subType:_0x1f7525,authorId:_0x4108d9}=_0x5b6b96['_splitMarkerName'](_0x1ca637);return'suggestion'==_0x42712d&&'tablePaste'==_0x1f7525&&_0x4108d9==_0x35c638['id']&&!_0x5a94af['oldRange'];});for(const _0x4affd5 of _0x373c87){if('insert'!=_0x4affd5['type']||'tableCellSuggestion'!=_0x4affd5['name']||0x1!=_0x4affd5['length'])continue;const _0x109ac1=_0x139613['createRange'](_0x4affd5['position'],_0x4affd5['position']['getShiftedBy'](0x1));if(!_0xf99376['find'](({data:_0x6dbb04})=>_0x6dbb04['newRange']['isEqual'](_0x109ac1))){for(const {name:_0x1d49e1,data:_0xe36f09}of _0xf99376)if(_0x109ac1['containsRange'](_0xe36f09['newRange'])){_0x139613['updateMarker'](_0x1d49e1,{'range':_0x109ac1}),_0x2feb57=!0x0;break;}}}return _0x2feb57;}),_0x114349['model']['document']['registerPostFixer'](_0x5a7125=>{let _0x37fac8=!0x1;const _0x115f20=_0x114349['plugins']['get']('Users')['me'],_0x3b190f=_0x5b6b96['getSuggestions']()['filter'](_0x13ef4f=>_0x13ef4f['isInContent']&&_0x13ef4f['author']==_0x115f20),_0x15aa71=new Set(),_0x2586ae=new Set();for(const _0x200e3e of _0x3b190f)if('tablePaste'==_0x200e3e['subType'])for(const _0x5ffb18 of _0x200e3e['getMarkers']()){const _0x393903=_0x5ffb18['getRange']()['getContainedElement']();if(_0x393903){if(_0x393903['is']('element','tableCellSuggestion')&&Pe(_0x393903)){_0x200e3e['removeMarker'](_0x5ffb18['name']),_0x15aa71['add'](_0x393903),_0x37fac8=!0x0;const _0x254f41=_0x393903['nextSibling'],_0x401134=_0x393903['previousSibling'],_0x2bb1fa=_0x254f41&&_0x254f41['is']('element','tableCellSuggestion'),_0x26206f=_0x401134&&_0x401134['is']('element','tableCellSuggestion');_0x2bb1fa&&!_0x15aa71['has'](_0x254f41)&&_0x2586ae['add'](_0x254f41),_0x26206f&&!_0x15aa71['has'](_0x401134)&&_0x2586ae['add'](_0x401134);}else _0x393903['is']('element','paragraph')&&_0x393903['isEmpty']&&(_0x200e3e['removeMarker'](_0x5ffb18['name']),_0x37fac8=!0x0);}}else{if('tablePasteCell'==_0x200e3e['subType']){if(!_0x200e3e['attributes']||!_0x200e3e['attributes']['tablePasteChainId'])continue;const _0x453e6b=_0x200e3e['attributes']['markerAttributes'];if(_0x453e6b&&Object['keys'](_0x453e6b)['length'])continue;const _0x2fba7c=_0x200e3e['attributes']['tablePasteChainId'];let _0x318d08=!0x0,_0x448752=!0x0;for(const _0xf2f338 of _0x3b190f)if(_0xf2f338['subType']&&_0xf2f338['subType']['startsWith']('tablePaste')){if(!_0xf2f338['attributes']['tablePasteChainId']){_0x448752=!0x1;break;}if(_0xf2f338['id']!=_0x200e3e['id']&&_0xf2f338['attributes']['tablePasteChainId']==_0x2fba7c){_0x318d08=!0x1;break;}}_0x448752&&_0x318d08&&(_0x200e3e['removeMarkers'](),_0x37fac8=!0x0);}}for(const _0x9cbfda of _0x15aa71)_0x5a7125['remove'](_0x9cbfda);for(const _0x17375f of _0x2586ae)_0x5a7125['unwrap'](_0x17375f);return _0x37fac8;}),_0x114349['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3737b2,_0x218a91)=>_0x4c73db(_0x3737b2),'converterPriority':'high'}),_0x114349['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x12aef3,_0xdfcfa4)=>_0xdfcfa4['options']['showSuggestionHighlights']?_0x4c73db(_0x12aef3,!0x1):null,'converterPriority':'high'});const _0x5ba19d=_0x114349['editing']['view'];this['listenTo'](_0x5ba19d['document'],'clipboardOutput',(_0x456f01,_0x58f8fa)=>{const _0x238b7c=[];for(const _0x4b906c of _0x5ba19d['createRangeIn'](_0x58f8fa['content'])['getItems']())_0x4b906c['is']('element','suggestion-td')&&_0x238b7c['push'](_0x4b906c);_0x5ba19d['change'](_0x404060=>{for(const _0x1fa68c of _0x238b7c)_0x404060['move'](_0x404060['createRangeIn'](_0x1fa68c),_0x404060['createPositionBefore'](_0x1fa68c)),_0x404060['remove'](_0x1fa68c);});});}}function Pe(_0x1fd00e){if(_0x1fd00e['isEmpty'])return!0x0;const _0x5c2c63=_0x1fd00e['getChild'](0x0);return _0x5c2c63['is']('element','paragraph')&&_0x5c2c63['isEmpty'];}function he(_0xa3a48e,_0xcf7c6a={},_0x4f5669){for(const {isAnchor:_0x18c609,cellHeight:_0xc2dd6d,cellWidth:_0x46e289}of _0x4f5669['createTableWalker'](_0xa3a48e,{'includeAllSlots':!0x0,..._0xcf7c6a}))if(!_0x18c609||0x1!=_0xc2dd6d||0x1!=_0x46e289)return!0x1;return!0x0;}class vt extends _0x20810f{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1096bd=this['editor']['plugins']['get']('TrackChangesEditing');_0x1096bd['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x1096bd['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1096bd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1096bd['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x1096bd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x1096bd['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x5e0fcd,_0x10c34c){const _0x412c43=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d5082=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4b6ed7=_0x10c34c['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2b5c0e=_0x2d5082['getColumnGroupElement'](_0x4b6ed7);let _0x5b0424=_0x2b5c0e?_0x2d5082['getTableColumnsWidths'](_0x2b5c0e):null,_0xa981e4=_0x4b6ed7['getAttribute']('tableWidth')||null;const _0x17fbee=_0x10c34c['tableWidth']||_0xa981e4,_0x5d2473=_0x10c34c['columnWidths']||_0x5b0424,_0x14cf31=this['editor']['plugins']['get']('Users')['me'];for(const _0x5f3c1f of _0x412c43['getSuggestions']()){const _0xefbfcd=_0x5f3c1f['getContainedElement']();if('resizeTable'===_0x5f3c1f['subType']&&_0xefbfcd===_0x4b6ed7){_0x5f3c1f['author']!==_0x14cf31&&_0x5f3c1f['discard']();const _0x532df8=_0x5f3c1f['data']['commandParams'];_0xa981e4=_0x532df8[0x0]['tableWidth'],_0x5b0424=_0x532df8[0x0]['columnWidths'];break;}}_0x5e0fcd({'table':_0x4b6ed7,'tableWidth':_0x17fbee,'columnWidths':_0x5d2473}),_0x412c43['markBlockFormat'](_0x4b6ed7,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0xa981e4,'columnWidths':_0x5b0424}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x1a97e6){if('formatBlock'!=_0x1a97e6['type']&&'formatInline'!=_0x1a97e6['type'])return;const {data:_0xbb6466}=_0x1a97e6;if(_0xbb6466&&'resizeTable'===_0xbb6466['formatGroupId']){const _0x3be5c8='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x3be5c8)};}}}class Ct extends _0x20810f{['afterInit'](){const _0x1e8043=this['editor'];_0x1e8043['plugins']['has']('Template')&&_0x1e8043['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x20810f{['afterInit'](){const _0x2a5a8b=this['editor'];if(!_0x2a5a8b['commands']['get']('insertTableOfContents'))return;_0x2a5a8b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0xfe32ab=_0x2a5a8b['plugins']['get']('TrackChangesEditing'),_0x501baf=_0x2a5a8b['locale'];_0xfe32ab['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1982fa=>o(_0x501baf,'ELEMENT_TABLE_OF_CONTENTS',_0x1982fa));}}class Dt extends _0x20810f{['afterInit'](){const _0x18bfe3=this['editor'];if(!_0x18bfe3['plugins']['has']('Title'))return;const _0x1571a1=_0x18bfe3['plugins']['get']('TrackChangesEditing');_0x1571a1['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x18bfe3['locale'],'ELEMENT_TITLE')),_0x18bfe3['model']['document']['registerPostFixer'](_0x142811=>{let _0x3dad1b=!0x1;const _0x13cf97=Array['from'](_0x18bfe3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x569b6a,data:_0x559f81}of _0x13cf97){const {group:_0x19a0fe}=_0x1571a1['_splitMarkerName'](_0x569b6a);if('suggestion'!==_0x19a0fe||!_0x559f81['newRange'])continue;const _0x5a257f=_0x559f81['newRange'],_0xb91ba=_0x5a257f['end']['nodeBefore'];if(!_0xb91ba||!_0xb91ba['is']('element','title-content'))continue;if(!_0x5a257f['start']['isTouching'](_0x5a257f['end']))continue;const _0x3ce93b=_0x18bfe3['model']['schema']['getNearestSelectionRange'](_0x5a257f['end'],'forward');if(_0x3ce93b&&_0x3ce93b['isCollapsed']){const _0x141cc1=_0x142811['createRange'](_0x5a257f['start'],_0x3ce93b['start']);_0x141cc1['isEqual'](_0x5a257f)||(_0x142811['updateMarker'](_0x569b6a,{'range':_0x141cc1}),_0x3dad1b=!0x0);}_0x3dad1b||(_0x142811['removeMarker'](_0x569b6a),_0x3dad1b=!0x0);}return _0x3dad1b;});}}class Nt extends _0x20810f{['afterInit'](){const _0x220881=this['editor'],_0x31f90f=_0x220881['plugins']['get']('TrackChangesEditing');_0x220881['plugins']['has']('UndoEditing')&&(_0x31f90f['enableCommand']('undo'),_0x31f90f['enableCommand']('redo'));}}class Mt extends _0x20810f{static get['requires'](){return[jt];}['afterInit'](){const _0x2fc6dc=this['editor'];if(!_0x2fc6dc['plugins']['has']('TableCaptionEditing'))return;_0x2fc6dc['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x20810f{['tableProperties'];['tableCellProperties'];constructor(_0x237537){super(_0x237537),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x1f74a7=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x402780 of this['tableProperties'])_0x1f74a7['enableCommand'](_0x402780,(_0x3b06e2,_0x50acf8)=>{const _0x289437=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x402780,[_0x289437],this['tableProperties'],'tableProperties',_0x3b06e2,_0x50acf8);});_0x1f74a7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1f74a7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1f74a7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x31b113,_0x1272bc)=>this['handleDiscardAction'](this['tableProperties'],_0x31b113,_0x1272bc)),_0x1f74a7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xb54407 of this['tableCellProperties'])_0x1f74a7['enableCommand'](_0xb54407,(_0x250b1f,_0x151e3a)=>{const _0x100b1f=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xb54407,_0x100b1f,this['tableCellProperties'],'tableCellProperties',_0x250b1f,_0x151e3a);});_0x1f74a7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1f74a7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1f74a7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5923e6,_0xf2d92)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5923e6,_0xf2d92)),_0x1f74a7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x1f74a7['descriptionFactory']['registerDescriptionCallback'](_0x29f318=>this['handleSuggestionDescription'](_0x29f318));}['_handlePropertyChange'](_0x558ac5,_0x187327,_0x5b3c69,_0xef0e44,_0x2b38e6,_0x3c0abb){const _0x579919=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3c0abb['batch'],()=>{for(const _0x4dde93 of _0x187327){if(this['_getSuggestion'](_0x4dde93,_0xef0e44))_0x2b38e6(_0x3c0abb);else{const _0x25717d={};for(const _0x52b8f9 of _0x5b3c69){const _0x558586=_0x4dde93['getAttribute'](_0x52b8f9);void 0x0!==_0x558586&&(_0x25717d[_0x52b8f9]=_0x558586);}_0x2b38e6(_0x3c0abb),_0x579919['markBlockFormat'](_0x4dde93,{'commandParams':[_0x25717d]},[],_0xef0e44);}}});}['handleDiscardAction'](_0x214422,_0x213623,_0x4f8d96){const _0x2fefef=_0x213623[0x0]['start']['nodeAfter'],_0x39ad24=_0x4f8d96['commandParams'][0x0];this['editor']['model']['change'](_0x220d55=>{for(const _0x2d97ce of _0x214422)void 0x0!==_0x39ad24[_0x2d97ce]?_0x220d55['setAttribute'](_0x2d97ce,_0x39ad24[_0x2d97ce],_0x2fefef):_0x220d55['removeAttribute'](_0x2d97ce,_0x2fefef);});}['handleSuggestionDescription'](_0x1a9e5b){if(_0x1a9e5b['data'])switch(_0x1a9e5b['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x194a83,_0x380d68){const _0x1b5294=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2f5718 of _0x1b5294['getSuggestions']({'skipNotAttached':!0x0})){const _0x13c6f6=_0x2f5718['getContainedElement']();if(_0x2f5718['subType']===_0x380d68&&_0x13c6f6===_0x194a83)return _0x2f5718;}return null;}}const m='$elementName';class p extends _0x20810f{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x583b5,_0x5bd93c,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,_t,$t,Ct,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x46c69e){function _0x1e8a1c(_0xf3e26b){return _0xf3e26b['map'](_0x336656=>String['fromCharCode'](_0x336656))['join']('');}super(_0x46c69e),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0xa16e1b,_0x8a73e6,_0x2f36e4,_0x225d00)=>{this['_model']['change'](()=>{for(const _0x524069 of[..._0x225d00,..._0x2f36e4])this['_model']['markers']['has'](_0x524069)&&_0x46c69e['editing']['reconvertMarker'](_0x524069);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x46c69e['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x46c69e['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x46c69e['config']['get']('trackChanges.trackFormatChanges'),_0x46c69e['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x46c69e['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x46c69e,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x1e8a1c([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x1e8a1c([0x34,0x30,0x34,0x38,0x31,0x34,0x32,0x38]);}['init'](){const _0x2df5b3=this['editor'],_0xfeaaf5=(_0x10e9bc,_0xe7a743)=>{if('attribute'!=_0x10e9bc)return'ck-suggestion-marker-'+_0x10e9bc;const _0x590425=_0xe7a743['split']('|')[0x0];return this['_isBlockAttribute'](_0x590425)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x2df5b3['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2d47ae=>{const {id:_0x1d2cf7,type:_0x53a706,subType:_0x52a8ed}=this['_splitMarkerName'](_0x2d47ae['markerName']),_0x9dfc11=['ck-suggestion-marker',_0xfeaaf5(_0x53a706,_0x52a8ed)];let _0x1b8b70=0xbb8;return this['activeMarkers']['includes'](_0x2d47ae['markerName'])&&(_0x9dfc11['push']('ck-suggestion-marker--active'),_0x1b8b70=0xbc2),'deletion'==_0x53a706&&(_0x1b8b70+=0x5),{'classes':_0x9dfc11,'attributes':{'data-suggestion':_0x1d2cf7},'priority':_0x1b8b70};}}),_0x2df5b3['conversion']['for']('dataDowncast')['add'](_0x5b48fb=>{_0x5b48fb['on']('addMarker:suggestion',(_0x20db41,_0x200591,_0x134635)=>{if(!_0x134635['options']['showSuggestionHighlights'])return;const _0x231c2b=_0x200591['item'];if(!_0x231c2b)return;const _0x541fc2=_0x134635['mapper']['toViewElement'](_0x231c2b);_0x2df5b3['model']['schema']['isObject'](_0x231c2b)&&_0x541fc2&&!_0x541fc2['getCustomProperty']('widget')&&_0x541fc2['is']('containerElement')&&_0x2ad58f(_0x541fc2,_0x134635['writer']);},{'priority':'high'});}),_0x2df5b3['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5b58bc,_0x35cc02)=>{if(!_0x35cc02['options']['showSuggestionHighlights'])return null;const {type:_0xd2887f,subType:_0x583aac}=this['_splitMarkerName'](_0x5b58bc['markerName']);return{'classes':['ck-suggestion-marker',_0xfeaaf5(_0xd2887f,_0x583aac)],'priority':0xbb8};}});const _0x1c3105=({showActiveMarkers:_0x5bf76e=!0x0,isAttributeSuggestion:_0xd79c1d=!0x1}={})=>(_0x274295,_0x2d90be,_0x23dffd)=>{if(!_0x2d90be['item'])return;const {id:_0x14ff87}=this['_splitMarkerName'](_0x2d90be['markerName']);if(_0xd79c1d){const _0x5f33a0=this['_suggestions']['get'](_0x14ff87),_0x420e85=this['_getAttributeKey'](_0x5f33a0);if(!this['_isBlockAttribute'](_0x420e85))return;}if(_0x2d90be['item']['is']('selection'))return void _0x23dffd['consumable']['consume'](_0x2d90be['item'],_0x274295['name']);const _0x12c14f=_0x23dffd['mapper']['toViewElement'](_0x2d90be['item']);if(_0x2d90be['item']['is']('element')&&_0x2df5b3['model']['schema']['isBlock'](_0x2d90be['item'])&&!_0x12c14f['getCustomProperty']('addHighlight')){_0x23dffd['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x12c14f),_0x23dffd['writer']['setAttribute']('data-suggestion',_0x14ff87,_0x12c14f),_0x23dffd['mapper']['bindElementToMarker'](_0x12c14f,_0x2d90be['markerName']),_0x5bf76e&&(this['activeMarkers']['includes'](_0x2d90be['markerName'])?_0x23dffd['writer']['addClass']('ck-suggestion-marker--active',_0x12c14f):_0x23dffd['writer']['removeClass']('ck-suggestion-marker--active',_0x12c14f));for(const _0x123303 of _0x2df5b3['model']['createRangeIn'](_0x2d90be['item'])['getItems']())_0x23dffd['consumable']['consume'](_0x123303,_0x274295['name']);_0x23dffd['consumable']['consume'](_0x2d90be['item'],_0x274295['name']);}};_0x2df5b3['conversion']['for']('dataDowncast')['add'](_0x526e88=>{_0x526e88['on']('addMarker:suggestion:formatBlock',(_0xcb7104,_0x4e3209,_0x1e7cbe)=>{_0x1e7cbe['options']['showSuggestionHighlights']&&_0x1c3105({'showActiveMarkers':!0x1})(_0xcb7104,_0x4e3209,_0x1e7cbe);},{'priority':'highest'});}),_0x2df5b3['conversion']['for']('dataDowncast')['add'](_0x5b700f=>{_0x5b700f['on']('addMarker:suggestion:attribute',(_0x4063e6,_0xf8e779,_0x491566)=>{_0x491566['options']['showSuggestionHighlights']&&_0x1c3105({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4063e6,_0xf8e779,_0x491566);},{'priority':'highest'});}),_0x2df5b3['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1f8e71,_0x263694)=>_0x263694['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x1f8e71['substr'](0xb)}}),_0x2df5b3['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1514dc,{writer:_0x2d4419})=>{let _0x402d01='suggestion:'+_0x1514dc['getAttribute']('suggestion-type')+':'+_0x1514dc['getAttribute']('id');return _0x1514dc['getAttribute']('marker-count')&&(_0x402d01+=':'+_0x1514dc['getAttribute']('marker-count')),_0x2d4419['createElement']('$marker',{'data-name':_0x402d01});}}),_0x2df5b3['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2df5b3['conversion']['for']('editingDowncast')['add'](_0x594f1b=>{_0x594f1b['on']('addMarker:suggestion:formatBlock',_0x1c3105(),{'priority':'high'});}),_0x2df5b3['conversion']['for']('editingDowncast')['add'](_0x1f34bc=>{_0x1f34bc['on']('addMarker:suggestion:attribute',_0x1c3105({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x2df5b3['conversion']['for']('editingDowncast')['add'](_0x592713=>{_0x592713['on']('removeMarker:suggestion:formatBlock',(_0x5e1c02,_0x506a21,_0x46fe35)=>{const _0xbc35a=_0x46fe35['mapper']['markerNameToElements'](_0x506a21['markerName']);if(_0xbc35a){for(const _0x312213 of _0xbc35a)_0x312213['getCustomProperty']('addHighlight')||(_0x46fe35['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x312213),_0x46fe35['writer']['removeAttribute']('data-suggestion',_0x312213),_0x46fe35['mapper']['unbindElementFromMarkerName'](_0x312213,_0x506a21['markerName']));}},{'priority':'high'});}),_0x2df5b3['conversion']['for']('editingDowncast')['add'](_0xd0cc56=>{_0xd0cc56['on']('removeMarker:suggestion:attribute',(_0x3b9653,_0x25c47a,_0x2762b8)=>{const _0x4101f8=_0x2762b8['mapper']['markerNameToElements'](_0x25c47a['markerName']);if(!_0x4101f8)return;const {id:_0x254d25}=this['_splitMarkerName'](_0x25c47a['markerName']),_0x53e00e=this['_suggestions']['get'](_0x254d25),_0x3d57ac=this['_getAttributeKey'](_0x53e00e);if(this['_isBlockAttribute'](_0x3d57ac)){for(const _0x39059a of _0x4101f8)_0x39059a['getCustomProperty']('addHighlight')||(_0x2762b8['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x39059a),_0x2762b8['writer']['removeAttribute']('data-suggestion',_0x39059a),_0x2762b8['mapper']['unbindElementFromMarkerName'](_0x39059a,_0x25c47a['markerName']));}},{'priority':'high'});}),_0x2df5b3['model']['document']['registerPostFixer'](_0x14c796=>{let _0x1cec45=!0x1;const _0x836cd6=Array['from'](_0x2df5b3['model']['document']['differ']['getChangedMarkers']()),_0x1042cc=new Set();for(const {name:_0x33e3a6,data:_0x17623c}of _0x836cd6){const {group:_0x250860,type:_0x434b4b,subType:_0x293367,id:_0x15e53e}=this['_splitMarkerName'](_0x33e3a6);if('suggestion'!==_0x250860)continue;const _0x1e4631=this['_suggestions']['get'](_0x15e53e);if(null!=_0x17623c['newRange']){'formatInline'==_0x434b4b&&(_0x1cec45=_0x1cec45||Et(_0x17623c['newRange'],_0x33e3a6,_0x14c796,_0x2df5b3['model']['schema']));const _0x549c91='attribute'==_0x434b4b&&this['_isBlockAttribute'](_0x293367['split']('|')[0x0]);if(_0x17623c['newRange']['isCollapsed']||'$graveyard'==_0x17623c['newRange']['root']['rootName']||'formatBlock'==_0x434b4b&&!Ut(_0x17623c['newRange'])||_0x549c91&&!Ut(_0x17623c['newRange'])||'deletion'==_0x434b4b&&!(!Tt(_0x16fd8a=_0x17623c['newRange'])&&!function(_0x5fee7f){return _0x5fee7f['start']['parent']==_0x5fee7f['end']['nodeBefore']&&_0x5fee7f['start']['isAtEnd'];}(_0x16fd8a)))_0x14c796['removeMarker'](_0x33e3a6),_0x1cec45=!0x0;else{if(!_0x1e4631||!_0x1e4631['isInContent'])continue;_0x1042cc['add'](_0x1e4631);}}}var _0x16fd8a;return _0x1042cc['size']>0x0&&(_0x1cec45=!!this['_joinWithAdjacentSuggestions'](_0x1042cc)||_0x1cec45),_0x1cec45;}),_0x2df5b3['model']['document']['registerPostFixer'](_0x260453=>{let _0x2a2d09=!0x1;for(const _0x536423 of _0x2df5b3['model']['document']['differ']['getChanges']())if('insert'==_0x536423['type'])for(const _0x3df75d of this['_suggestions']['values']()){if(_0x3df75d['isMultiRange']||!_0x3df75d['isInContent'])continue;const _0x2b104b='formatBlock'==_0x3df75d['type'],_0x382a19=this['_getAttributeKey'](_0x3df75d),_0x16b51d=_0x382a19&&this['_isBlockAttribute'](_0x382a19);if(!_0x2b104b&&!_0x16b51d)continue;const _0x2007e9=_0x3df75d['getFirstRange']();if(_0x2007e9['start']['parent']!=_0x2007e9['end']['parent']&&!_0x2007e9['end']['isAtEnd']){const _0x1841be=_0x2df5b3['model']['createPositionAt'](_0x2007e9['start']['nodeAfter'],'end'),_0x326648=_0x2df5b3['model']['createRange'](_0x2007e9['start'],_0x1841be);_0x260453['updateMarker'](_0x3df75d['getFirstMarker'](),{'range':_0x326648}),_0x2a2d09=!0x0;}}return _0x2a2d09;}),_0x2df5b3['model']['document']['registerPostFixer'](_0x2c2edc=>this['_processAttributeChanges'](_0x2c2edc)),_0x2df5b3['model']['document']['registerPostFixer'](_0x6f10d6=>!_0x6f10d6['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x6f10d6)),_0x2df5b3['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2df5b3['model']['document']['on']('change:data',(_0xc3761d,_0x3e2ce4)=>{if(!_0x3e2ce4['isLocal']||_0x3e2ce4['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x55a6bb=_0x2df5b3['model']['document']['differ']['getChanges']();if(0x0==_0x55a6bb['length'])return;const _0x52b4a3=[],_0x4e03d8=_0x55a6bb['filter'](_0x3c08c5=>'attribute'==_0x3c08c5['type']),_0x3edb9d=_0x55a6bb['filter'](_0x1d2df4=>'insert'==_0x1d2df4['type']&&'$text'!=_0x1d2df4['name']);for(const _0x2050fa of _0x4e03d8)this['_isRegisteredAttribute'](_0x2050fa['attributeKey'])&&_0x52b4a3['push']({'key':_0x2050fa['attributeKey'],'newValue':_0x2050fa['attributeNewValue'],'oldValue':_0x2050fa['attributeOldValue'],'range':Ot(_0x2050fa['range'],_0x2df5b3['model'])});for(const _0x4667eb of _0x3edb9d){if('rename'!=_0x4667eb['action']&&'refresh'!=_0x4667eb['action'])continue;const _0x1367d6=Gt(_0x4667eb['position']['nodeAfter'],_0x2df5b3['model']),_0x254b8f=_0x4667eb['before'];'rename'==_0x4667eb['action']&&_0x52b4a3['push']({'key':m,'newValue':_0x4667eb['name'],'oldValue':_0x254b8f['name'],'range':_0x1367d6});for(const [_0x470924,_0x1acbd0]of _0x254b8f['attributes']){if(!this['_isRegisteredAttribute'](_0x470924))continue;const _0x27c74a=_0x4667eb['attributes']['get'](_0x470924);_0x1acbd0!==_0x27c74a&&_0x52b4a3['push']({'key':_0x470924,'newValue':_0x27c74a,'oldValue':_0x1acbd0,'range':_0x1367d6});}for(const [_0x1c67b8,_0x1fb376]of _0x4667eb['attributes'])this['_isRegisteredAttribute'](_0x1c67b8)&&(_0x254b8f['attributes']['has'](_0x1c67b8)||_0x52b4a3['push']({'key':_0x1c67b8,'newValue':_0x1fb376,'oldValue':null,'range':_0x1367d6}));}0x0!=_0x52b4a3['length']&&_0x2df5b3['model']['enqueueChange'](_0x3e2ce4,_0x253e0e=>{const _0x4b635c=_0x4afc5b();for(const {range:_0x583982,key:_0x23cc37,oldValue:_0x21a7f6,newValue:_0x2cbaa3}of _0x52b4a3)this['markAttributeChange'](_0x583982,_0x23cc37,_0x21a7f6,_0x2cbaa3,{'groupId':_0x4b635c});this['_reduceExistingSuggestions'](_0x253e0e,_0x52b4a3);});},{'priority':'lowest'}),_0x2df5b3['model']['markers']['on']('update:suggestion',(_0x39d70a,_0x102cde,_0x343a77)=>{if(null==_0x343a77){const {id:_0x8fd17}=this['_splitMarkerName'](_0x102cde['name']),_0x59ef4d=this['_suggestions']['get'](_0x8fd17);_0x59ef4d&&_0x59ef4d['addMarkerName'](_0x102cde['name']);}}),_0x2df5b3['model']['document']['on']('change:data',()=>{const _0x55eb3a=Array['from'](_0x2df5b3['model']['document']['differ']['getChangedMarkers']())['filter'](_0x432ee1=>'suggestion'===this['_splitMarkerName'](_0x432ee1['name'])['group']);if(0x0===_0x55eb3a['length'])return;_0x55eb3a['sort']((_0x5aa64d,_0x43baee)=>{const _0x1fca2e=_0x5aa64d['data']['oldRange'],_0x455252=_0x43baee['data']['oldRange'];return null===_0x1fca2e&&null===_0x455252?0x0:null===_0x1fca2e&&null!==_0x455252?-0x1:null!==_0x1fca2e&&null===_0x455252?0x1:_0x1fca2e['start']['isBefore'](_0x455252['start'])?-0x1:0x1;});const _0x3ac10e=new Set(),_0x4f0164=new Set();for(const {name:_0x1f68d7,data:_0x54f756}of _0x55eb3a){const {id:_0x5cf3ec}=this['_splitMarkerName'](_0x1f68d7);if(null===_0x54f756['oldRange']){const _0x4a057d=this['_handleNewSuggestionMarker'](_0x1f68d7);_0x4f0164['add'](_0x4a057d);}else{const _0x26470a=this['_suggestions']['get'](_0x5cf3ec);null!==_0x54f756['newRange']||_0x26470a['isInContent']?(_0x3ac10e['add'](_0x26470a['head']),_0x4f0164['add'](_0x26470a)):this['_removeSuggestion'](_0x26470a);}}_0x4f0164['size']>0x0&&this['_refreshSuggestionsChain'](_0x4f0164);for(const _0x4bc70c of _0x3ac10e)this['fire']('suggestionChanged',_0x4bc70c);}),_0x2df5b3['model']['on']('applyOperation',(_0x36d90d,_0x4f49fa)=>{const _0x2b1ba9=_0x4f49fa[0x0];if(!this['_suggestions']['size'])return;if(!_0x2b1ba9['isDocumentOperation'])return;if(_0x2b1ba9['batch']['isUndo']||!_0x2b1ba9['batch']['isLocal'])return;let _0x2f3063,_0x2dfc90;switch(_0x2b1ba9['type']){case'insert':_0x2f3063=_0x2df5b3['model']['createPositionAt'](_0x2b1ba9['position']),_0x2dfc90=_0x2f3063['getShiftedBy'](_0x2b1ba9['howMany']);break;case'split':_0x2f3063=_0x2df5b3['model']['createPositionAt'](_0x2b1ba9['splitPosition']),_0x2dfc90=_0x2df5b3['model']['createPositionAt'](_0x2b1ba9['moveTargetPosition']);break;case'move':_0x2f3063=_0x2df5b3['model']['createPositionAt'](_0x2b1ba9['targetPosition']),_0x2dfc90=_0x2f3063['getShiftedBy'](_0x2b1ba9['howMany']);break;default:return;}const _0x2cd87c=_0x2df5b3['model']['createRange'](_0x2f3063,_0x2dfc90);_0x2df5b3['model']['change'](()=>{for(const {suggestion:_0x254c21,meta:_0x201df6}of this['_findSuggestions'](_0x2cd87c)){if(_0x254c21['isMultiRange'])continue;if('formatInline'==_0x254c21['type'])continue;const _0x58b35e=this['_getAttributeKey'](_0x254c21);if(_0x58b35e&&this['_isBlockAttribute'](_0x58b35e)&&'split'!=_0x2b1ba9['type'])continue;const _0x315d48=_0x254c21['data']&&_0x254c21['data']['multipleBlocks'];('formatBlock'!=_0x254c21['type']||'split'==_0x2b1ba9['type']&&!_0x315d48)&&(_0x201df6['containsRangeInObject']||'insertion'==_0x254c21['type']&&_0x201df6['isOwn']||_0x254c21['getFirstRange']()['containsRange'](_0x2cd87c)&&this['_breakSuggestionMarker'](_0x254c21,_0x2f3063,_0x2dfc90));}});},{'priority':'lowest'}),_0x2df5b3['model']['on']('deleteContent',(_0xa6494,_0x1ef5e8)=>{const _0x485467=_0x1ef5e8[0x0],_0x5e1103=_0x1ef5e8[0x1];if(_0x5e1103&&_0x5e1103['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x485467['isCollapsed'])return;const _0x2d79c1=_0x2df5b3['model']['schema'],{start:_0x453af3,end:_0x13fd54}=_0x485467['getFirstRange'](),_0x562ab6=_0x453af3['nodeAfter']&&_0x2d79c1['isLimit'](_0x453af3['nodeAfter'])?null:_0x2d79c1['getNearestSelectionRange'](_0x453af3,'forward'),_0x3ac6b5=_0x13fd54['nodeBefore']&&_0x2d79c1['isLimit'](_0x13fd54['nodeBefore'])?null:_0x2d79c1['getNearestSelectionRange'](_0x13fd54,'backward'),_0xd9f2c0=_0x2df5b3['model']['createRange'](_0x562ab6?_0x562ab6['start']:_0x453af3,_0x3ac6b5?_0x3ac6b5['end']:_0x13fd54);_0x2df5b3['model']['change'](_0x4dccf7=>{this['markDeletion'](_0xd9f2c0);const _0x35ad60=_0x2df5b3['model']['schema']['getNearestSelectionRange'](_0xd9f2c0['start']);_0x485467['is']('documentSelection')?_0x4dccf7['setSelection'](_0x35ad60):_0x485467['setTo'](_0x35ad60);}),_0xa6494['stop']();},{'priority':_0x515e10['normal']+0xa}),_0x2df5b3['model']['on']('insertContent',(_0x2804a2,_0x5b71eb)=>{const _0x4c71ec=_0x5b71eb[_0x5b71eb['length']-0x1];_0x4c71ec&&_0x4c71ec['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2df5b3['model']['change'](()=>{let _0x5b4fbb=_0x2df5b3['model']['insertContent'](_0x5b71eb[0x0],_0x5b71eb[0x1],_0x5b71eb[0x2],{'forceDefaultExecution':!0x0});if(!_0x5b4fbb)return;_0x2804a2['return']=_0x5b4fbb['clone']();const _0x4e86b6=_0x5b4fbb['end']['nodeBefore'],_0x4403f3=_0x2df5b3['model']['schema'];_0x4e86b6&&_0x4403f3['isBlock'](_0x4e86b6)&&!_0x4403f3['isObject'](_0x4e86b6)&&(_0x5b4fbb=_0x2df5b3['model']['createRange'](_0x5b4fbb['start'],_0x2df5b3['model']['createPositionAt'](_0x4e86b6,'end'))),this['markInsertion'](_0x5b4fbb);}),_0x2804a2['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x33b4a2=new $(_0x2df5b3,this['_suggestions']);_0x2df5b3['commands']['add']('acceptSuggestion',_0x33b4a2),this['enableCommand']('acceptSuggestion');const _0xf64d99=new B(_0x2df5b3,this['_suggestions']);_0x2df5b3['commands']['add']('discardSuggestion',_0xf64d99),this['enableCommand']('discardSuggestion'),_0x2df5b3['commands']['add']('acceptAllSuggestions',new x(_0x2df5b3,_0x33b4a2,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2df5b3['commands']['add']('discardAllSuggestions',new x(_0x2df5b3,_0xf64d99,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2df5b3['commands']['add']('acceptSelectedSuggestions',new R(_0x2df5b3,_0x33b4a2,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2df5b3['commands']['add']('discardSelectedSuggestions',new R(_0x2df5b3,_0xf64d99,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5d415a=_0x2df5b3['plugins']['get']('CommentsRepository');this['listenTo'](_0x5d415a,'addComment',(_0x9e63ae,{threadId:_0x556694})=>{const _0x206842=this['_suggestions']['get'](_0x556694);_0x206842&&_0x206842['commentThread']&&0x1===_0x206842['commentThread']['length']&&this['_updateSuggestionData'](_0x556694,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5d415a,'removeComment',(_0x18c010,{threadId:_0x2b0a7c})=>{const _0x4f75e3=this['_suggestions']['get'](_0x2b0a7c);_0x4f75e3&&_0x4f75e3['commentThread']&&!_0x4f75e3['commentThread']['length']&&this['_updateSuggestionData'](_0x2b0a7c,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x4c0034){if(this['_adapter'])throw new _0x5e6563('track-changes-adapter-already-set',this);this['_adapter']=_0x4c0034;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1e9d27=!0x1,toJSON:_0x3bdee2=!0x1}={}){const _0x4e6c9c=[];for(const _0x20551d of this['_suggestions']['values']())_0x1e9d27&&!_0x20551d['isInContent']||_0x4e6c9c['push'](_0x20551d);return _0x3bdee2?_0x4e6c9c['map'](_0xc8d769=>_0xc8d769['toJSON']()):_0x4e6c9c;}['getSuggestion'](_0x20e407){const _0x51827f=this['_suggestions']['get'](_0x20e407);if(!_0x51827f)throw new _0x5e6563('track-changes-suggestion-not-found',this);return _0x51827f;}['hasSuggestion'](_0xbe9379){return this['_suggestions']['has'](_0xbe9379);}['addSuggestionData'](_0x2a2142){const {authorId:_0x3819fc,id:_0x102534,attributes:_0x51a7f7}=_0x2a2142,[_0x2e2587,_0x4010ea]=_0x2a2142['type']['split'](':'),_0x3e9d43=this['_suggestions']['get'](_0x102534)||this['_createSuggestion'](_0x2e2587,_0x4010ea,_0x102534,_0x3819fc,_0x51a7f7);if(this['_addThreadToSuggestion'](_0x3e9d43),this['_checkSuggestionCorrectness'](_0x3e9d43,_0x2e2587,_0x4010ea||null,_0x3819fc),_0x3e9d43['createdAt']=_0x2a2142['createdAt'],_0x3e9d43['_isDataLoaded']=!0x0,_0x51a7f7&&_0x51a7f7['@external']){const _0x5ccfea=_0x51a7f7['@external'],_0x26d7ce=this['_getExternalAuthor'](_0x5ccfea['authorName']);_0x3e9d43['authoredAt']=_0x5ccfea['createdAt'],_0x3e9d43['author']=_0x26d7ce,_0x3e9d43['isExternal']=!0x0;}else _0x3e9d43['authoredAt']=_0x2a2142['createdAt'];switch(_0x2a2142['data']&&(_0x3e9d43['data']=_0x2a2142['data']),_0x2a2142['attributes']&&(_0x3e9d43['attributes']=_0x2a2142['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3e9d43['_saved']=!0x0),this['_suggestionState']['get'](_0x3e9d43)){case'notReady':this['_suggestionState']['set'](_0x3e9d43,'dataReady');break;case'markerReady':_0x3e9d43['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3e9d43])),this['_refreshSuggestionsChain'](new Set([_0x3e9d43])),this['_suggestionState']['set'](_0x3e9d43,'ready'),this['fire']('suggestionLoaded',_0x3e9d43)):this['_suggestionState']['set'](_0x3e9d43,'removed');}return _0x3e9d43;}['acceptSuggestion'](_0x40deac){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1703d8 of _0x40deac['getAllAdjacentSuggestions']())_0x1703d8['accept']();});});}['discardSuggestion'](_0xe8cc85){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3c99eb of _0xe8cc85['getAllAdjacentSuggestions']())_0x3c99eb['discard']();});});}['enableCommand'](_0x1c6d11,_0x36a42a){const _0x218883=this['editor']['commands']['get'](_0x1c6d11);if(!_0x218883)throw new _0x5e6563('track-changes-command-not-found',this,{'commandName':_0x1c6d11});if(this['_enabledCommands']['has'](_0x218883))throw new _0x5e6563('track-changes-enable-command-twice',this,{'commandName':_0x1c6d11});this['_enabledCommands']['add'](_0x218883),_0x36a42a&&_0x218883['on']('execute',(_0x46bc30,_0x114b10)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x114b10['length']>0x0&&_0x114b10[_0x114b10['length']-0x1]&&_0x114b10[_0x114b10['length']-0x1]['forceDefaultExecution']?_0x114b10['pop']():(_0x46bc30['return']=_0x36a42a((..._0x4c6f26)=>_0x218883['execute'](..._0x4c6f26,{'forceDefaultExecution':!0x0}),..._0x114b10),_0x46bc30['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x436bbb){let _0x37915e,_0x467da1;const _0x40a64a=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x37915e=_0x436bbb();}catch(_0x354b2f){_0x467da1=_0x354b2f;}return _0x40a64a||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x467da1&&_0x5e6563['rethrowUnexpectedError'](_0x467da1,this),_0x37915e;}['markInsertion'](_0xebdcb3,_0x5176da=null,_0x5767ba={}){if(_0xebdcb3['isCollapsed'])return null;const _0x23228d=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x5c03ab,meta:_0x5ec298}of this['_findSuggestions'](_0xebdcb3,'insertion'))if(_0x5ec298['isOwn']){if(!_0x5ec298['isNextTo']){if(_0x5ec298['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x5c03ab,_0x5767ba))continue;return _0x5c03ab;}if(Lt(_0x5c03ab,_0x5767ba))return _0x5c03ab;this['_breakSuggestionMarker'](_0x5c03ab,_0xebdcb3['start'],_0xebdcb3['end']);break;}if(_0x5176da==_0x5c03ab['subType']&&Lt(_0x5c03ab,_0x5767ba)){const _0x590b48=_0x5c03ab['getFirstRange']();return _0x590b48['start']['isEqual'](_0xebdcb3['end'])?this['_setSuggestionRange'](_0x5c03ab,this['_model']['createRange'](_0xebdcb3['start'],_0x590b48['end'])):this['_setSuggestionRange'](_0x5c03ab,this['_model']['createRange'](_0x590b48['start'],_0xebdcb3['end'])),_0x5c03ab;}}const _0x5b2473=_0x4afc5b(),_0x5073c8=_0x23228d['id'],_0x356fb1=_0x5176da?'insertion:'+_0x5176da:'insertion',_0x71c113=this['_setSuggestionData']({'id':_0x5b2473,'type':_0x356fb1,'createdAt':new Date(),'authorId':_0x5073c8,'attributes':_0x5767ba});return this['_addSuggestionMarker'](_0x356fb1,_0x5b2473,_0x5073c8,_0xebdcb3),_0x71c113;}['markMultiRangeInsertion'](_0xce3a2c,_0x339873='multi',_0x795182={}){const _0x264306=this['editor']['plugins']['get']('Users')['me'],_0x23e742=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x339873,'join');for(const _0x1069f2 of this['getSuggestions']())if(_0x1069f2['author']['id']==_0x264306['id']&&'insertion'==_0x1069f2['type']&&_0x1069f2['subType']==_0x339873&&Lt(_0x1069f2,_0x795182)&&(_0x23e742(_0x1069f2['getRanges'](),_0xce3a2c)||_0x23e742(_0xce3a2c,_0x1069f2['getRanges']()))){for(const _0x753831 of _0xce3a2c)_0x1069f2['addRange'](_0x753831);return _0x1069f2;}for(const {suggestion:_0x2e7515,meta:_0x500551}of this['_findSuggestions'](_0xce3a2c,'insertion')){if(!_0x500551['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x500551['containsRangeInObject'])continue;if(!Lt(_0x2e7515,_0x795182))continue;let _0x5f4690=!0x0;for(const _0x47f066 of _0x2e7515['getRanges']())for(const _0x539f6f of _0xce3a2c)if(!_0x47f066['containsRange'](_0x539f6f)){_0x5f4690=!0x1;break;}if(_0x5f4690)return _0x2e7515;}const _0x340793=_0x4afc5b(),_0x15aa49=_0x264306['id'],_0x2384d3='insertion:'+_0x339873,_0x36d50d=this['_setSuggestionData']({'id':_0x340793,'type':_0x2384d3,'createdAt':new Date(),'authorId':_0x15aa49,'attributes':_0x795182});for(const _0x184bd8 of _0xce3a2c)this['_addSuggestionMarker'](_0x2384d3,_0x340793,_0x15aa49,_0x184bd8,u['getMultiRangeId']());return _0x36d50d;}['markInlineFormat'](_0x10d449,_0x58c0c5,_0x1eb782=null,_0x9ac051={}){if(_0x1eb782=_0x1eb782||Vt(_0x58c0c5),_0x10d449['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x51023a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1eb782,'accept');return this['forceDefaultExecution'](()=>_0x51023a([_0x10d449],_0x58c0c5,_0x9ac051)),null;}const _0x49064a=this['editor']['plugins']['get']('Users')['me'],_0x23b721=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x191816,meta:_0x5867ed}of this['_findSuggestions'](_0x10d449,'insertion'))_0x5867ed['isOwn']&&!_0x5867ed['isInsideObject']&&_0x23b721['push'](..._0x191816['getRanges']());}const _0x47569f=function(_0xc57059,_0x19c621){const _0x27e27e=[];for(const _0x5b1c20 of _0x19c621){const _0x138ee4=_0xc57059['getIntersection'](_0x5b1c20);_0x138ee4&&_0x27e27e['push'](_0x138ee4);}return _0x27e27e;}(_0x10d449,_0x23b721),_0x5dd359=function(_0x548f90,_0x35d112){const _0x4e21f1=[_0x548f90];for(const _0x2ab7dd of _0x35d112){let _0x245a8f=0x0;for(;_0x245a8f<_0x4e21f1['length'];){const _0x5eae8d=_0x4e21f1[_0x245a8f]['getDifference'](_0x2ab7dd);_0x4e21f1['splice'](_0x245a8f,0x1,..._0x5eae8d),_0x245a8f+=_0x5eae8d['length'];}}return _0x4e21f1;}(_0x10d449,_0x23b721);_0x47569f['length']&&this['_model']['change'](()=>{for(const _0x266184 of _0x47569f){const _0xd2ec7=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1eb782,'accept');this['forceDefaultExecution'](()=>_0xd2ec7([_0x266184],_0x58c0c5,_0x9ac051));}});for(const _0x5b420b of _0x5dd359){let _0x1730d6=null,_0x5eeb6a=_0x5b420b['start'],_0x297ce6=_0x5b420b['end'];for(const {suggestion:_0x5f1088,meta:_0x38bca7}of this['_findSuggestions'](_0x5b420b,'formatInline')){if(!_0x38bca7['isOwn'])continue;if(_0x5f1088['subType']!=_0x1eb782)continue;if(!Lt(_0x5f1088,_0x9ac051))continue;const _0x22a803=_0x5f1088['getFirstRange']();if(_0x22a803['containsRange'](_0x5b420b,!0x0))return null;_0x5eeb6a=_0x5eeb6a['isBefore'](_0x22a803['start'])?_0x5eeb6a:_0x22a803['start'],_0x297ce6=_0x297ce6['isAfter'](_0x22a803['end'])?_0x297ce6:_0x22a803['end'],_0x1730d6?_0x22a803['start']['isBefore'](_0x1730d6['getFirstRange']()['start'])?(_0x1730d6['removeMarkers'](),_0x1730d6=_0x5f1088):_0x5f1088['removeMarkers']():_0x1730d6=_0x5f1088;}const _0x51fa2e=this['_model']['createRange'](_0x5eeb6a,_0x297ce6);if(_0x1730d6)this['_setSuggestionRange'](_0x1730d6,_0x51fa2e);else{const _0x3d6ba8=_0x4afc5b(),_0x5b1727=_0x49064a['id'];this['_setSuggestionData']({'id':_0x3d6ba8,'type':'formatInline:'+_0x1eb782,'data':_0x58c0c5,'createdAt':new Date(),'authorId':_0x5b1727,'attributes':_0x9ac051}),this['_addSuggestionMarker']('formatInline:'+_0x1eb782,_0x3d6ba8,_0x5b1727,_0x51fa2e);}}return null;}['markBlockFormat'](_0x5057ce,_0x9c9948,_0x3759e7=[],_0x224d3e=null,_0x262110={}){_0x9c9948['formatGroupId']||(_0x9c9948['formatGroupId']=_0x9c9948['commandName']),_0x9c9948['multipleBlocks']=_0x5057ce['is']('range'),_0x224d3e=_0x224d3e||Vt(_0x9c9948);const _0x3f0954=_0x3759e7['map'](_0x1c4661=>Gt(_0x1c4661,this['_model'])),_0x3c337e=_0x5057ce['is']('range')?_0x5057ce:Gt(_0x5057ce,this['_model']);if('never'===this['_trackFormatChanges']){const _0x233a81=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x224d3e,'accept');return this['forceDefaultExecution'](()=>_0x233a81([_0x3c337e],_0x9c9948,_0x262110)),null;}_0x3f0954['push'](_0x3c337e);let _0x279a9f=!0x0;for(const _0x26d250 of _0x3f0954)if(!this['_rangeIsInLocalUserInsertion'](_0x26d250)){_0x279a9f=!0x1;break;}if(_0x279a9f&&'always'!==this['_trackFormatChanges']){const _0x21c304=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x224d3e,'accept');return this['forceDefaultExecution'](()=>_0x21c304([_0x3c337e],_0x9c9948,_0x262110)),null;}let _0x56d390=null,_0x468b17=_0x3c337e['start'],_0x4fb0c4=_0x3c337e['end'];for(const {suggestion:_0x4349cb,meta:_0x267273}of this['_findSuggestions'](_0x3c337e,'formatBlock')){if(!_0x267273['isOwn'])continue;if(_0x267273['isNextTo']||_0x267273['containsRangeInObject']||_0x267273['isInsideObject'])continue;if(_0x4349cb['data']['formatGroupId']!=_0x9c9948['formatGroupId'])continue;if(!Lt(_0x4349cb,_0x262110))continue;const _0xb9a03e=_0x4349cb['getFirstRange']();if(_0x4349cb['subType']==_0x224d3e){if(_0xb9a03e['containsRange'](_0x3c337e,!0x0))return null;_0x468b17=_0x468b17['isBefore'](_0xb9a03e['start'])?_0x468b17:_0xb9a03e['start'],_0x4fb0c4=_0x4fb0c4['isAfter'](_0xb9a03e['end'])?_0x4fb0c4:_0xb9a03e['end'],_0x56d390?_0xb9a03e['start']['isBefore'](_0x56d390['getFirstRange']()['start'])?(_0x56d390['removeMarkers'](),_0x56d390=_0x4349cb):_0x4349cb['removeMarkers']():_0x56d390=_0x4349cb;}else{const _0x5063c5=_0x3c337e['getIntersection'](_0xb9a03e);this['_cutOutSuggestionMarker'](_0x4349cb,_0x5063c5);}}const _0x23b41a=this['editor']['plugins']['get']('Users')['me'],_0x327221=_0x4afc5b(),_0x2835f2=_0x23b41a['id'];if(_0x56d390)return this['_setSuggestionRange'](_0x56d390,this['_model']['createRange'](_0x468b17,_0x4fb0c4)),_0x56d390;{const _0x1ff626=this['_setSuggestionData']({'id':_0x327221,'type':'formatBlock:'+_0x224d3e,'data':_0x9c9948,'createdAt':new Date(),'authorId':_0x2835f2,'attributes':_0x262110});return this['_addSuggestionMarker']('formatBlock:'+_0x224d3e,_0x327221,_0x2835f2,this['_model']['createRange'](_0x468b17,_0x4fb0c4)),_0x1ff626;}}['markMultiRangeBlockFormat'](_0x19cee1,_0x13cb47,_0x47c863=[],_0x49ede9=null,_0x576b9c={}){_0x13cb47['formatGroupId']||(_0x13cb47['formatGroupId']=_0x13cb47['commandName']);const _0x178d7e=_0x19cee1[0x0];_0x13cb47['multipleBlocks']=_0x178d7e['is']('range'),_0x49ede9=_0x49ede9||Vt(_0x13cb47);const _0x27de3c=_0x47c863['map'](_0x11dd17=>Gt(_0x11dd17,this['_model'])),_0xe8c12f=_0x178d7e['is']('range')?_0x19cee1:_0x19cee1['map'](_0x57973f=>Gt(_0x57973f,this['_model']));if('never'===this['_trackFormatChanges']){const _0x330402=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x49ede9,'accept');return this['forceDefaultExecution'](()=>_0x330402(_0xe8c12f,_0x13cb47,_0x576b9c)),null;}_0x27de3c['push'](..._0xe8c12f);let _0x4d870a=!0x0;for(const _0x15aed1 of _0x27de3c)if(!this['_rangeIsInLocalUserInsertion'](_0x15aed1)){_0x4d870a=!0x1;break;}if(_0x4d870a&&'always'!==this['_trackFormatChanges']){const _0x3f206b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x49ede9,'accept');return this['forceDefaultExecution'](()=>_0x3f206b(_0xe8c12f,_0x13cb47,_0x576b9c)),null;}const _0x843182=this['editor']['plugins']['get']('Users')['me'];for(const _0x35bb78 of this['getSuggestions']()){if(_0x35bb78['author']['id']!=_0x843182['id'])continue;if('formatBlock'!=_0x35bb78['type']||_0x35bb78['data']['formatGroupId']!=_0x13cb47['formatGroupId'])continue;if(!Lt(_0x35bb78,_0x576b9c))continue;const _0x32c3d7=_0x35bb78['subType']==_0x49ede9;for(let _0x37732f=0x0;_0x37732f<_0xe8c12f['length'];_0x37732f++){const _0xdef22c=_0xe8c12f[_0x37732f];for(const _0xa5f44a of _0x35bb78['getMarkers']()){const _0x4faa7e=_0xa5f44a['getRange']();if(_0xdef22c['isEqual'](_0x4faa7e)){_0x32c3d7?(_0xe8c12f['splice'](_0x37732f,0x1),_0x37732f--):_0x35bb78['removeMarker'](_0xa5f44a['name']);break;}}}}if(0x0==_0xe8c12f['length'])return null;const _0x5930f7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x49ede9,'join');for(const _0x2cc85e of this['getSuggestions']())if(_0x2cc85e['author']['id']==_0x843182['id']&&'formatBlock'==_0x2cc85e['type']&&_0x2cc85e['data']['formatGroupId']==_0x13cb47['formatGroupId']&&_0x2cc85e['subType']==_0x49ede9&&Lt(_0x2cc85e,_0x576b9c)&&(_0x5930f7(_0x2cc85e['getRanges'](),_0xe8c12f)||_0x5930f7(_0xe8c12f,_0x2cc85e['getRanges']()))){for(const _0x5e92e6 of _0xe8c12f)_0x2cc85e['addRange'](_0x5e92e6);return _0x2cc85e;}const _0x17730f=_0x4afc5b(),_0x3b5b7b=_0x843182['id'],_0x5e9f06='formatBlock:'+_0x49ede9,_0x188dab=this['_setSuggestionData']({'id':_0x17730f,'type':_0x5e9f06,'data':_0x13cb47,'createdAt':new Date(),'authorId':_0x3b5b7b,'attributes':_0x576b9c});for(const _0x3c3115 of _0xe8c12f)this['_addSuggestionMarker'](_0x5e9f06,_0x17730f,_0x3b5b7b,_0x3c3115,u['getMultiRangeId']());return _0x188dab;}['markDeletion'](_0x105c32,_0xeee692=null,_0x3046aa={}){if(_0x105c32['isCollapsed'])return null;const _0x1d265f=this['editor']['plugins']['get']('Users')['me'],_0x702316=new _0x3f67f3(_0x105c32['start'],_0x105c32['end']);for(const {suggestion:_0x5bb45f,meta:_0x1c10f3}of this['_findSuggestions'](_0x702316,'insertion'))if(_0x1c10f3['isOwn']&&!_0x1c10f3['isNextTo']){if(_0x5bb45f['isMultiRange']){const _0x30c39e=_0x5bb45f['getRanges']()['filter'](_0x5dc883=>'$graveyard'!=_0x5dc883['root']['rootName']);_0x30c39e['every'](_0x3b93e5=>_0x702316['containsRange'](_0x3b93e5,!0x0))&&_0x5bb45f['discard']();if(_0x30c39e['some'](_0x4db4fc=>_0x4db4fc['containsRange'](_0x702316,!0x0))){const _0x4a6504=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xeee692,'accept');return this['forceDefaultExecution'](()=>_0x4a6504([_0x702316],null,_0x3046aa)),null;}}else{const _0x49be99=_0x702316['getIntersection'](_0x5bb45f['getFirstRange']());null!==_0x49be99&&_0x5bb45f['_onDiscard']([_0x49be99],null,_0x3046aa);}}if(_0x702316['detach'](),_0x702316['isCollapsed']||'$graveyard'==_0x702316['root']['rootName'])return null;let _0x3f6f56=null,_0x52b749=_0x702316['start'],_0x2e6e87=_0x702316['end'];const _0xc58c8e=this['_findSuggestions'](_0x702316,'deletion');for(const {suggestion:_0x4c2ce0,meta:_0x3541dc}of _0xc58c8e){const _0x3e281f=this['_model']['createRange'](_0x52b749,_0x2e6e87);if(_0x3541dc['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3541dc['containsRangeInObject']&&!_0x3541dc['isInsideObject'])){if(_0x4c2ce0['isMultiRange']){if(!Lt(_0x4c2ce0,_0x3046aa))continue;let _0x3479e1=!0x0;for(const _0x47ee40 of _0x4c2ce0['getRanges']()){if(_0x47ee40['containsRange'](_0x3e281f,!0x0))return _0x4c2ce0;_0x3e281f['containsRange'](_0x47ee40)||(_0x3479e1=!0x1);}_0x3479e1&&_0x4c2ce0['discard']();}else{const _0x5b7252=_0x4c2ce0['getFirstRange']();if(_0x5b7252['containsRange'](_0x3e281f,!0x0))return _0x4c2ce0;if(!Lt(_0x4c2ce0,_0x3046aa)){_0x3e281f['containsRange'](_0x5b7252)?_0x4c2ce0['removeMarkers']():_0x5b7252['containsPosition'](_0x52b749)?_0x52b749=_0x5b7252['end']:_0x5b7252['containsPosition'](_0x2e6e87)&&(_0x2e6e87=_0x5b7252['start']);continue;}_0x52b749=_0x52b749['isBefore'](_0x5b7252['start'])?_0x52b749:_0x5b7252['start'],_0x2e6e87=_0x2e6e87['isAfter'](_0x5b7252['end'])?_0x2e6e87:_0x5b7252['end'],_0x3046aa=Object['assign']({},_0x4c2ce0['attributes']),_0x3f6f56?_0x5b7252['start']['isBefore'](_0x3f6f56['getFirstRange']()['start'])?(_0x3f6f56['removeMarkers'](),_0x3f6f56=_0x4c2ce0):_0x4c2ce0['removeMarkers']():_0x3f6f56=_0x4c2ce0;}}}if(_0x3f6f56)return this['_setSuggestionRange'](_0x3f6f56,this['_model']['createRange'](_0x52b749,_0x2e6e87)),_0x3f6f56;{const _0x1288da=_0x4afc5b(),_0x2b7be8=this['_model']['createRange'](_0x52b749,_0x2e6e87),_0xbc8c5=_0x1d265f['id'],_0x1a1db9=_0xeee692?'deletion:'+_0xeee692:'deletion',_0x4d123d=this['_setSuggestionData']({'id':_0x1288da,'type':_0x1a1db9,'createdAt':new Date(),'authorId':_0xbc8c5,'attributes':_0x3046aa});return this['_addSuggestionMarker'](_0x1a1db9,_0x1288da,_0xbc8c5,_0x2b7be8),_0x4d123d;}}['markMultiRangeDeletion'](_0x4ae471,_0x107674='multi',_0x5692d1={}){const _0x39a257=this['editor']['plugins']['get']('Users')['me'],_0x550894=_0x4ae471['map'](_0x32b06d=>new _0x3f67f3(_0x32b06d['start'],_0x32b06d['end'])),_0x4482e5=new Set();for(const {suggestion:_0x3bf0df,meta:_0x10d355}of this['_findSuggestions'](_0x550894,'insertion'))_0x10d355['isOwn']&&!_0x10d355['isNextTo']&&_0x4482e5['add'](_0x3bf0df);for(const _0xf70a75 of _0x4482e5)if(_0xf70a75['isMultiRange']){const _0x70d4ad=_0xf70a75['getRanges']();(!_0xf70a75['attributes']||!_0xf70a75['attributes']['skipNestingCheck'])&&(_0x70d4ad['every'](_0x8c45c5=>_0x550894['some'](_0x45307c=>_0x45307c['containsRange'](_0x8c45c5,!0x0)))&&_0xf70a75['discard']());if(_0x550894['every'](_0x216be3=>_0x70d4ad['some'](_0x16d926=>_0x16d926['containsRange'](_0x216be3,!0x0)))){const _0xf42a5f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x107674,'accept');return this['forceDefaultExecution'](()=>_0xf42a5f(_0x4ae471,null,_0x5692d1)),null;}}else{const _0x4cb2c0=_0xf70a75['getFirstRange']();_0x550894['some'](_0x93761e=>_0x93761e['containsRange'](_0x4cb2c0,!0x0))&&_0xf70a75['discard']();if(_0x550894['every'](_0x4014d9=>_0x4cb2c0['containsRange'](_0x4014d9,!0x0))){const _0x5f2e94=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x107674,'accept');return this['forceDefaultExecution'](()=>_0x5f2e94(_0x550894,null,_0x5692d1)),null;}}const _0x257609=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x107674,'join');let _0x449fe3=null;for(const _0x50bd8c of this['getSuggestions']())if(_0x50bd8c['author']['id']==_0x39a257['id']&&_0x50bd8c['isInContent']&&'deletion'==_0x50bd8c['type']&&_0x50bd8c['subType']==_0x107674&&Lt(_0x50bd8c,_0x5692d1)&&(_0x257609(_0x50bd8c['getRanges'](),_0x550894)||_0x257609(_0x550894,_0x50bd8c['getRanges']()))){if(_0x449fe3){if(_0x50bd8c['commentThread']&&_0x50bd8c['commentThread']['length'])continue;for(const _0x5ba183 of _0x50bd8c['getRanges']())_0x449fe3['isIntersectingWithRange'](_0x5ba183)||_0x449fe3['addRange'](_0x5ba183);_0x50bd8c['removeMarkers']();}else{_0x449fe3=_0x50bd8c;for(const _0x3c51fb of _0x550894)_0x50bd8c['isIntersectingWithRange'](_0x3c51fb)||_0x50bd8c['addRange'](_0x3c51fb);}}if(_0x449fe3)return _0x449fe3;_0x4482e5['clear']();for(const {suggestion:_0x352651,meta:_0x44517d}of this['_findSuggestions'](_0x550894,'deletion'))_0x44517d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x44517d['containsRangeInObject']&&!_0x44517d['isInsideObject'])&&Lt(_0x352651,_0x5692d1)&&_0x4482e5['add'](_0x352651);for(const _0x570db7 of _0x4482e5){const _0x3cd4b2=_0x570db7['getRanges']();if(!_0x5692d1||!_0x5692d1['skipNestingCheck']){if(_0x550894['every'](_0x1e7a98=>_0x3cd4b2['some'](_0x1c7655=>_0x1c7655['containsRange'](_0x1e7a98,!0x0))))return _0x570db7;}(!_0x570db7['attributes']||!_0x570db7['attributes']['skipNestingCheck'])&&(_0x3cd4b2['every'](_0x5bf61e=>_0x550894['some'](_0x3adde7=>_0x3adde7['containsRange'](_0x5bf61e,!0x0)))&&_0x570db7['discard']());}const _0x6418bc=_0x4afc5b(),_0xe0e932=_0x39a257['id'],_0x36ae49='deletion:'+_0x107674,_0x2761e1=this['_setSuggestionData']({'id':_0x6418bc,'type':_0x36ae49,'createdAt':new Date(),'authorId':_0xe0e932,'attributes':_0x5692d1});for(const _0x421fdb of _0x550894)_0x421fdb['detach'](),_0x421fdb['isCollapsed']||'$graveyard'==_0x421fdb['root']['rootName']||this['_addSuggestionMarker'](_0x36ae49,_0x6418bc,_0xe0e932,_0x421fdb,u['getMultiRangeId']());return _0x2761e1;}['markAttributeChange'](_0x1a709e,_0x4f2ba0,_0xcfbf76,_0xfbfdb9,_0x54dd27){if(_0x1a709e['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2aae65=this['editor']['plugins']['get']('Users')['me']['id'],_0x271f18=Array['from'](this['_suggestions']['values']())['filter'](_0x36c5ae=>'attribute'==_0x36c5ae['type']&&_0x36c5ae['data']['key']==_0x4f2ba0&&_0x36c5ae['isIntersectingWithRange'](_0x1a709e));if('default'===this['_trackFormatChanges']){const _0x46e694=this['_findSuggestions'](_0x1a709e,'insertion')['filter'](({meta:_0xc9047d})=>_0xc9047d['isOwn']&&!_0xc9047d['isInsideObject']&&!_0xc9047d['isNextTo'])['map'](({suggestion:_0xd2653})=>_0xd2653);_0x271f18['unshift'](..._0x46e694);}const _0x44aeec=new Map([[_0x1a709e,_0xcfbf76]]);for(const _0x4e9e7d of _0x271f18){const _0x1bccaf='attribute'==_0x4e9e7d['type']?_0x4e9e7d['data']['oldValue']:void 0x0,_0x17465a=_0x4e9e7d['getFirstRange'](),_0x5a46f8=Array['from'](_0x44aeec['keys']())['find'](_0x5ed6ce=>_0x5ed6ce['isIntersecting'](_0x17465a));if(!_0x5a46f8)continue;const _0x42fdc5=_0x5a46f8['getDifference'](_0x17465a);this['_isBlockAttribute'](_0x4f2ba0)&&'insertion'==_0x4e9e7d['type']&&0x0!=_0x42fdc5['length']||(_0x44aeec['delete'](_0x5a46f8),_0x42fdc5['forEach'](_0x269a54=>{_0x44aeec['set'](_0x269a54,_0xcfbf76);}),'insertion'!=_0x4e9e7d['type']&&_0x1bccaf!=_0xfbfdb9&&_0x44aeec['set'](_0x5a46f8['getIntersection'](_0x17465a),_0x1bccaf));}const _0x1090c6=[];for(const [_0x19f418,_0x17de82]of _0x44aeec){const _0x4c4575=_0x4afc5b(),_0x5b4557={'key':_0x4f2ba0,'oldValue':_0x17de82,'newValue':_0xfbfdb9};_0x4f2ba0['length']>0x25&&console['warn']('Creating\x20a\x20suggestion\x20for\x20attribute\x20with\x20too\x20long\x20attribute\x20key.\x20This\x20may\x20lead\x20to\x20errors.\x20Change\x20the\x20attribute\x20key\x20to\x20a\x20value\x20shorter\x20than\x2037\x20characters.',{'key':_0x4f2ba0});const _0x5c209d=('attribute:'+(_0x4f2ba0+'|'+Vt({'newValue':_0xfbfdb9})))['substring'](0x0,0x3c),_0xba1d75=this['_setSuggestionData']({'id':_0x4c4575,'type':_0x5c209d,'data':_0x5b4557,'createdAt':new Date(),'authorId':_0x2aae65,'attributes':_0x54dd27});_0x1090c6['push'](_0xba1d75),this['_addSuggestionMarker'](_0x5c209d,_0x4c4575,_0x2aae65,_0x19f418);}return _0x1090c6;}['enableDefaultAttributesIntegration'](_0x2c3286){this['enableCommand'](_0x2c3286,(_0x19820c,..._0x194507)=>{this['_recordAttributeChanges'](()=>{_0x19820c(..._0x194507);});});}['registerBlockAttribute'](_0x447dce){this['_blockAttributeKeys']['add'](_0x447dce);}['registerInlineAttribute'](_0x7cdd5a){this['_inlineAttributeKeys']['add'](_0x7cdd5a);}['_getAttributeKey'](_0x204d29){return'attribute'==_0x204d29['type']?_0x204d29['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x4c14ae,_0x39988d){const _0x201a4b=_0x4c14ae['getFirstMarker']();this['_model']['change'](_0x3d971b=>{_0x3d971b['updateMarker'](_0x201a4b,{'range':_0x39988d});});}['_addThreadToSuggestion'](_0x18bc99){const _0x586bb7=_0x18bc99['id'],_0x291883=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x586bb7)||this['_commentsRepository']['addCommentThread']({'channelId':_0x291883,'threadId':_0x586bb7,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x32e56f=this['_commentsRepository']['getCommentThread'](_0x586bb7);_0x32e56f['unbind']('isRemovable'),_0x32e56f['isRemovable']=!0x1,_0x18bc99['commentThread']=_0x32e56f;}['_checkSuggestionCorrectness'](_0x37c79e,_0x17d561,_0xb0bcfc,_0x4043f5){if(_0x37c79e['type']!=_0x17d561||_0x37c79e['subType']!=_0xb0bcfc||_0x37c79e['creator']['id']!=_0x4043f5)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5e6563('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4877cf,_0x32f3f2){const _0xece3fc=_0x4877cf['getFirstRange']();if(_0x32f3f2['isEqual'](_0xece3fc))_0x4877cf['removeMarkers']();else{if(_0xece3fc['containsRange'](_0x32f3f2)){const _0x28522c=this['_model']['createPositionAt'](_0x32f3f2['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4877cf,this['_model']['createRange'](_0xece3fc['start'],_0x28522c));const _0x4ff00a=_0x4afc5b(),_0x3df6bb=_0x4877cf['creator']['id'],_0x16465c=_0x4877cf['type']+':'+_0x4877cf['subType'];this['_setSuggestionData']({'id':_0x4ff00a,'type':_0x16465c,'createdAt':new Date(),'authorId':_0x3df6bb,'data':_0x4877cf['data'],'attributes':_0x4877cf['attributes']});const _0x1cb6a4=this['_model']['createPositionAt'](_0x32f3f2['end']['parent'],'after'),_0x39dda5=this['_model']['createRange'](_0x1cb6a4,_0xece3fc['end']);this['_addSuggestionMarker'](_0x16465c,_0x4ff00a,_0x3df6bb,_0x39dda5);}else{if(_0xece3fc['containsPosition'](_0x32f3f2['start'])){const _0x1c8784=this['_model']['createPositionAt'](_0x32f3f2['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4877cf,this['_model']['createRange'](_0xece3fc['start'],_0x1c8784));}else{const _0x519d0f=this['_model']['createPositionAt'](_0x32f3f2['end']['parent'],'after');this['_setSuggestionRange'](_0x4877cf,this['_model']['createRange'](_0x519d0f,_0xece3fc['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x20c2a2){for(const {suggestion:_0x33b519,meta:_0x1025b5}of this['_findSuggestions'](_0x20c2a2,'insertion')){if(!_0x1025b5['isOwn'])continue;const _0xcdf549=_0x33b519['getRanges']();for(const _0x2c5991 of _0xcdf549)if(!_0x20c2a2['getDifference'](_0x2c5991)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3c68bd){const _0xee5408=this['editor']['plugins']['get']('Users')['getUser'](_0x3c68bd);if(!_0xee5408)throw new _0x5e6563('track-changes-user-not-found',this);return _0xee5408;}['_getExternalAuthor'](_0xc240f7){const _0x4d8c5d=this['editor']['plugins']['get']('Users'),_0x53a585=_0x474bc1('external:'+_0xc240f7),_0x4003f0=_0x4d8c5d['getUser'](_0x53a585);return _0x4003f0||_0x4d8c5d['addUser']({'id':_0x53a585,'name':_0xc240f7});}['_createSuggestion'](_0x21bb64,_0x4b6d37,_0x2576bc,_0x40b561,_0x32e4b0){const _0x1e79ba=this['_getAuthorFromId'](_0x40b561),_0x336fe8=this['_suggestionFactory']['buildSuggestion'](_0x21bb64,_0x4b6d37,_0x2576bc,_0x1e79ba,_0x32e4b0,_0x4bd33c=>{this['_updateSuggestionData'](_0x2576bc,{'attributes':_0x4bd33c});const _0x1e7a63=this['getSuggestion'](_0x2576bc);this['_joinWithAdjacentSuggestions'](new Set([_0x1e7a63])),this['_refreshSuggestionsChain'](new Set([_0x1e7a63]));});return this['listenTo'](_0x336fe8,'accept',()=>{this['_updateSuggestionData'](_0x2576bc,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x336fe8,'discard',()=>{this['_updateSuggestionData'](_0x2576bc,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2576bc,_0x336fe8),this['_suggestionState']['set'](_0x336fe8,'notReady'),_0x336fe8;}['_splitMarkerName'](_0x139f2f){const _0x454871=_0x139f2f['split'](':');return{'group':_0x454871[0x0],'type':_0x454871[0x1],'subType':_0x454871['length']>=0x5?_0x454871[0x2]:null,'id':_0x454871['length']<0x5?_0x454871[0x2]:_0x454871[0x3],'authorId':_0x454871['length']<0x5?_0x454871[0x3]:_0x454871[0x4],'markerCount':0x6==_0x454871['length']?_0x454871[0x5]:null};}['_breakSuggestionMarker'](_0x494c55,_0x2e30e6,_0x3034fc){const _0x2cf32d=_0x494c55['getFirstRange'](),_0x26e38f=_0x2cf32d['start'],_0xb7023d=_0x2cf32d['end'];this['_setSuggestionRange'](_0x494c55,this['_model']['createRange'](_0x26e38f,_0x2e30e6));const _0x488137=_0x4afc5b(),_0x3f7768=_0x494c55['creator']['id'],_0x51f9c6=_0x494c55['type']+(_0x494c55['subType']?':'+_0x494c55['subType']:'');this['_setSuggestionData']({'id':_0x488137,'type':_0x51f9c6,'createdAt':new Date(),'authorId':_0x3f7768,'originalSuggestionId':_0x494c55['id'],'attributes':_0x494c55['attributes'],'data':_0x494c55['data']});const _0x33c498=this['_getAttributeKey'](_0x494c55);('formatBlock'==_0x494c55['type']||_0x33c498&&this['_isBlockAttribute'](_0x33c498))&&(_0x3034fc=this['_model']['createPositionBefore'](_0x3034fc['parent'])),this['_addSuggestionMarker'](_0x51f9c6,_0x488137,_0x3f7768,this['_model']['createRange'](_0x3034fc,_0xb7023d));}['_findSuggestions'](_0x167c88,_0x5b44a0=null){const _0x2f7eb1=[],_0x2171b4=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x167c88)||(_0x167c88=[_0x167c88]);for(const _0x575f70 of this['getSuggestions']()){if(!_0x575f70['isInContent'])continue;if(_0x5b44a0&&_0x575f70['type']!=_0x5b44a0)continue;let _0x259ea5=!0x1;for(const _0x4fadd of _0x575f70['getRanges']()){for(const _0x17d46d of _0x167c88){const _0x49dc06=_0x17d46d['start']['isEqual'](_0x4fadd['end'])||_0x17d46d['end']['isEqual'](_0x4fadd['start']);if(_0x49dc06||_0x17d46d['getIntersection'](_0x4fadd)){const _0x51c50a=_0x17d46d['containsRange'](_0x4fadd)&&Rt(this['_model']['schema'],_0x4fadd['start'],_0x17d46d),_0x485cf7=_0x4fadd['containsRange'](_0x17d46d)&&Rt(this['_model']['schema'],_0x17d46d['start'],_0x4fadd);_0x2f7eb1['push']({'suggestion':_0x575f70,'meta':{'isOwn':_0x2171b4==_0x575f70['author'],'isNextTo':_0x49dc06,'isInsideObject':_0x51c50a,'containsRangeInObject':_0x485cf7}}),_0x259ea5=!0x0;break;}}if(_0x259ea5)break;}}return _0x2f7eb1;}['_addSuggestionMarker'](_0x51f286,_0x7aaabe,_0x36f52a,_0x1b0378,_0x5640f7){this['_model']['change'](_0x2b3046=>{let _0x550c0a='suggestion:'+_0x51f286+':'+_0x7aaabe+':'+_0x36f52a;_0x5640f7&&(_0x550c0a=_0x550c0a+':'+_0x5640f7),_0x2b3046['addMarker'](_0x550c0a,{'range':_0x1b0378,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x5b5e7e){const _0x301c0e=_0x5b5e7e['previous'],_0x2336bf=_0x5b5e7e['next'];_0x5b5e7e['previous']=null,_0x5b5e7e['next']=null,null!=_0x301c0e&&_0x301c0e['next']==_0x5b5e7e&&(_0x301c0e['next']=_0x2336bf),null!=_0x2336bf&&_0x2336bf['previous']==_0x5b5e7e&&(_0x2336bf['previous']=_0x301c0e),'ready'==this['_suggestionState']['get'](_0x5b5e7e)&&(this['_suggestionState']['set'](_0x5b5e7e,'removed'),this['fire']('suggestionUnloaded',_0x5b5e7e,_0x301c0e,_0x2336bf));}['_setSuggestionData'](_0x1d002a){const _0x343ab2=_0x1d002a['id'],_0x3cbe3e=this['addSuggestionData'](_0x1d002a);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3d57a5=this['editor']['plugins']['get']('PendingActions'),_0x5d2376=_0x3cbe3e['hasComments'],_0x2bb6a2=_0x3cbe3e['subType']?_0x3cbe3e['type']+':'+_0x3cbe3e['subType']:_0x3cbe3e['type'],_0x16a970=this['editor']['locale'],_0x51cf83=_0x3d57a5['add'](o(_0x16a970,'PENDING_ACTION_SUGGESTION')),_0x4cd6de={'id':_0x343ab2,'type':_0x2bb6a2,'hasComments':_0x5d2376,'data':_0x1d002a['data']||null,'originalSuggestionId':_0x1d002a['originalSuggestionId']||null,'attributes':_0x3cbe3e['attributes']};this['_adapter']['addSuggestion'](_0x4cd6de)['then'](_0x11b08f=>{_0x3cbe3e['_saved']=!0x0,_0x3d57a5['remove'](_0x51cf83),_0x11b08f&&_0x11b08f['createdAt']&&(this['_suggestions']['get'](_0x343ab2)['createdAt']=_0x11b08f['createdAt']);})['catch'](_0x2f34be=>{throw _0x3db40f('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3cbe3e['discard']();}),_0x3cbe3e['stopListening'](),this['_suggestions']['delete'](_0x3cbe3e['id']),this['_suggestionState']['delete'](_0x3cbe3e),_0x2f34be;});}return _0x3cbe3e;}['_isBlockAttribute'](_0x543ae4){return this['_blockAttributeKeys']['has'](_0x543ae4);}['_updateSuggestionData'](_0x42bdf2,_0x4faf7c){const _0xa19103=this['editor']['plugins']['get']('PendingActions'),_0x4c801b=this['getSuggestion'](_0x42bdf2);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4c801b['_saved']){const _0x4b5f63=_0xa19103['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x42bdf2,_0x4faf7c)['then'](()=>{_0xa19103['remove'](_0x4b5f63);});}else _0x4c801b['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x42bdf2,_0x4faf7c);});}}['_getSuggestionData'](_0x53e0ff){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5e6563('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x53e0ff);}['_handleNewSuggestionMarker'](_0x36589e){const {id:_0xe116ac,type:_0x42f4a8,subType:_0x47ddd6,authorId:_0x7f8dd9}=this['_splitMarkerName'](_0x36589e),_0x4f944d=this['_suggestions']['get'](_0xe116ac)||this['_createSuggestion'](_0x42f4a8,_0x47ddd6,_0xe116ac,_0x7f8dd9,{});switch(this['_checkSuggestionCorrectness'](_0x4f944d,_0x42f4a8,_0x47ddd6,_0x7f8dd9),this['_suggestionState']['get'](_0x4f944d)){case'notReady':this['_getSuggestionData'](_0xe116ac)['then'](_0x55bfea=>{let _0x42ced8=Promise['resolve']();_0x55bfea['hasComments']&&(_0x42ced8=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xe116ac})),_0x42ced8['then'](()=>{this['addSuggestionData'](_0x55bfea)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4f944d,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xe116ac,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4f944d,'ready'),this['fire']('suggestionLoaded',_0x4f944d);break;case'ready':this['fire']('suggestionChanged',_0x4f944d);}return _0x4f944d['addMarkerName'](_0x36589e),_0x4f944d;}['_refreshSuggestionsChain'](_0x553af0){const _0x1e0d2e=Array['from'](_0x553af0),_0x281637=_0x1e0d2e['filter'](_0x21b35b=>'attribute'==_0x21b35b['type']);this['_refreshAttributeSuggestionsChain'](_0x281637);const _0x1436af=_0x1e0d2e['filter'](_0x366674=>!_0x366674['isMultiRange']&&'attribute'!=_0x366674['type']),_0x24b033=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3d2fe8=>!_0x3d2fe8['isMultiRange']&&'attribute'!=_0x3d2fe8['type']),_0x26c28b=_0x24b033['filter'](_0x4b89be=>!_0x553af0['has'](_0x4b89be)),_0x6fe07c=new Map(_0x24b033['map'](_0x3bf459=>[_0x3bf459,this['_suggestionFactory']['getSuggestionCallback'](_0x3bf459['type'],_0x3bf459['subType'],'chain')])),_0x2249ba=new Map(_0x24b033['map'](_0x134622=>[_0x134622,_0x134622['getFirstRange']()])),_0x4a07dd=new Set(),_0x587732=new Set();for(let _0x4c70b6=0x0;_0x4c70b6<_0x1436af['length'];_0x4c70b6++)_0x43b045(_0x1436af[_0x4c70b6],_0x1436af,_0x4c70b6+0x1);for(let _0x224fb5=0x0;_0x224fb5<_0x1436af['length'];_0x224fb5++)_0x43b045(_0x1436af[_0x224fb5],_0x26c28b,0x0);const _0x13f410=new Set();for(let _0xbc4a94=0x0;_0xbc4a94<_0x1436af['length'];_0xbc4a94++){const _0x5b9188=_0x1436af[_0xbc4a94];!_0x587732['has'](_0x5b9188)&&_0x5b9188['previous']&&(_0x13f410['add'](_0x5b9188['previous']),_0x5b9188['previous']['next']===_0x5b9188&&(_0x5b9188['previous']['next']=null),_0x5b9188['previous']=null),!_0x4a07dd['has'](_0x5b9188)&&_0x5b9188['next']&&(_0x13f410['add'](_0x5b9188['next']),_0x5b9188['next']['previous']===_0x5b9188&&(_0x5b9188['next']['previous']=null),_0x5b9188['next']=null);}function _0x43b045(_0x585d82,_0x38db85,_0x2bfa52){for(let _0xf39ffe=_0x2bfa52;_0xf39ffe<_0x38db85['length'];_0xf39ffe++){const _0x5a0b77=_0x320cdd(_0x585d82,_0x38db85[_0xf39ffe]);_0x5a0b77&&(_0x5a0b77[0x0]['next']=_0x5a0b77[0x1],_0x5a0b77[0x1]['previous']=_0x5a0b77[0x0],_0x4a07dd['add'](_0x5a0b77[0x0]),_0x587732['add'](_0x5a0b77[0x1]));}}function _0x320cdd(_0x18c6ba,_0x3fb7ad){if(_0x18c6ba['author']['id']!==_0x3fb7ad['author']['id'])return null;const _0x564698=_0x6fe07c['get'](_0x18c6ba)(_0x18c6ba,_0x3fb7ad,_0x2249ba['get'](_0x18c6ba),_0x2249ba['get'](_0x3fb7ad));if(!_0x564698)return null;return _0x6fe07c['get'](_0x3fb7ad)(_0x18c6ba,_0x3fb7ad,_0x2249ba['get'](_0x18c6ba),_0x2249ba['get'](_0x3fb7ad))?_0x564698[0x1]['commentThread']&&_0x564698[0x1]['commentThread']['length']?null:_0x564698:null;}_0x13f410['size']&&this['_refreshSuggestionsChain'](_0x13f410);}['_refreshAttributeSuggestionsChain'](_0x14a9c4){if(0x0==_0x14a9c4['length'])return;const _0x4f91ff=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x212738=>'attribute'==_0x212738['type']&&_0x212738['_isDataLoaded']),_0x34eda4=[],_0x306afc=new Map();for(const _0x343be6 of _0x4f91ff){const _0x51c257=_0x474bc1(_0x343be6['attributes']);_0x306afc['has'](_0x51c257)||(_0x306afc['set'](_0x51c257,_0x34eda4['length']),_0x34eda4['push']([]));const _0x4c1863=_0x306afc['get'](_0x51c257);_0x34eda4[_0x4c1863]['push'](_0x343be6);}!(function(){_0x34eda4['sort']((_0x9f03dc,_0x45b5e3)=>{const _0x4f53cc=_0x9f03dc[0x0]['createdAt'],_0x5d6aec=_0x45b5e3[0x0]['createdAt'];return _0x4f53cc==_0x5d6aec?_0x9f03dc[0x0]['attributes']['groupId']<_0x45b5e3[0x0]['attributes']['groupId']?-0x1:0x1:_0x4f53cc<_0x5d6aec?-0x1:0x1;});for(const _0x25e716 of _0x34eda4)_0x25e716['sort']((_0x237607,_0x1a1808)=>_0x237607['id']<_0x1a1808['id']?-0x1:0x1);}());for(let _0x5f644b=0x0;_0x5f644b<_0x34eda4['length'];_0x5f644b++){if(0x0==_0x34eda4[_0x5f644b]['length'])continue;const _0x5d43dc=[];for(let _0x36d5fe=_0x5f644b+0x1;_0x36d5fe<_0x34eda4['length'];_0x36d5fe++)0x0!=_0x34eda4[_0x36d5fe]['length']&&_0x15aabc(_0x34eda4[_0x5f644b],_0x34eda4[_0x36d5fe])&&_0x5d43dc['push'](_0x36d5fe);for(const _0x287223 of _0x5d43dc)_0x34eda4[_0x5f644b]=_0x34eda4[_0x5f644b]['concat'](_0x34eda4[_0x287223]),_0x34eda4[_0x287223]=[];}for(const _0x4f77a1 of _0x34eda4)for(let _0x328070=0x0;_0x328070<_0x4f77a1['length'];_0x328070++)_0x4f77a1[_0x328070]['next']=_0x4f77a1[_0x328070+0x1]||null;for(const _0x22aeb3 of _0x34eda4)for(let _0x2fa9b1=0x0;_0x2fa9b1<_0x22aeb3['length'];_0x2fa9b1++)_0x22aeb3[_0x2fa9b1]['previous']=_0x22aeb3[_0x2fa9b1-0x1]||null;function _0x15aabc(_0x1c668b,_0x211e1a){if(_0x1c668b[0x0]['attributes']['groupId']!==_0x211e1a[0x0]['attributes']['groupId']&&_0x1c668b[0x0]['author']!==_0x211e1a[0x0]['author'])return!0x1;if(!function(_0x532bdb,_0x494aed){if(!_0x532bdb['hasComments']&&!_0x494aed['hasComments'])return!0x0;if(_0x532bdb['hasComments']&&_0x494aed['hasComments'])return!0x1;if(_0x532bdb['hasComments']&&_0x494aed['createdAt']<_0x532bdb['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x494aed['hasComments']&&_0x532bdb['createdAt']<_0x494aed['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x1c668b[0x0],_0x211e1a[0x0]))return!0x1;const _0x29b16f=Bt(_0x1c668b[0x0]['attributes'],'groupId'),_0x14a9e9=Bt(_0x211e1a[0x0]['attributes'],'groupId');if(!_0x4fa487(_0x29b16f,_0x14a9e9))return!0x1;return!!_0x1c668b['every'](_0x4440cd=>_0x211e1a['some'](_0x10fbf1=>_0x4440cd['getFirstRange']()['isEqual'](_0x10fbf1['getFirstRange']())))&&_0x211e1a['every'](_0x187559=>_0x1c668b['some'](_0x2a7cfe=>_0x187559['getFirstRange']()['isEqual'](_0x2a7cfe['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x46c29c){const _0x2d5b18=Array['from'](_0x46c29c),_0x21177e=this['getSuggestions']({'skipNotAttached':!0x0}),_0x407eba=_0x21177e['filter'](_0x4ac59c=>!_0x46c29c['has'](_0x4ac59c)),_0x58956a=new Map(_0x2d5b18['map'](_0x178a36=>[_0x178a36,this['_suggestionFactory']['getSuggestionCallback'](_0x178a36['type'],_0x178a36['subType'],'join')])),_0x9b35ca=new Map(_0x21177e['map'](_0x431da4=>[_0x431da4,_0x431da4['getRanges']()]));for(let _0x44a77e=0x0;_0x44a77e<_0x2d5b18['length'];_0x44a77e++){if(_0x1c60a5(this,_0x2d5b18[_0x44a77e],_0x2d5b18,_0x44a77e+0x1))return!0x0;}for(let _0x1bd99d=0x0;_0x1bd99d<_0x2d5b18['length'];_0x1bd99d++){if(_0x1c60a5(this,_0x2d5b18[_0x1bd99d],_0x407eba,0x0))return!0x0;}return!0x1;function _0x1c60a5(_0x1fad7e,_0x57b758,_0x448d9d,_0x3beab4){for(let _0x8473d7=_0x3beab4;_0x8473d7<_0x448d9d['length'];_0x8473d7++){const _0x746e01=_0x448d9d[_0x8473d7];if(_0x746e01['type']!==_0x57b758['type']||_0x746e01['author']['id']!==_0x57b758['author']['id']||_0x746e01['subType']!==_0x57b758['subType'])continue;if(!Pt(_0x57b758,_0x746e01,['groupId']))continue;if('attribute'==_0x57b758['type']&&_0x57b758['data']['oldValue']!=_0x746e01['data']['oldValue'])continue;if('attribute'==_0x57b758['type']&&_0x1fad7e['_isBlockAttribute'](_0x57b758['data']['key']))continue;if('formatBlock'==_0x57b758['type']){const _0x5039c9=_0x1fad7e['editor']['model'],_0x53cbd6=_0x57b758['getContainedElement']();if(_0x53cbd6&&(_0x5039c9['schema']['isObject'](_0x53cbd6)||_0x5039c9['schema']['isLimit'](_0x53cbd6)))continue;}const _0x182932=_0x58956a['get'](_0x57b758),_0x42e382=_0x9b35ca['get'](_0x57b758),_0x5cdc87=_0x9b35ca['get'](_0x746e01),_0x95dce5=_0x57b758['commentThread']&&_0x57b758['commentThread']['length'],_0xc95f9a=_0x746e01['commentThread']&&_0x746e01['commentThread']['length'];if(!_0x95dce5&&_0x182932(_0x5cdc87,_0x42e382))return _0x1fad7e['_joinSuggestions'](_0x746e01,_0x57b758),_0x9b35ca['delete'](_0x57b758),!0x0;if(!_0xc95f9a&&_0x182932(_0x42e382,_0x5cdc87))return _0x1fad7e['_joinSuggestions'](_0x57b758,_0x746e01),_0x9b35ca['delete'](_0x746e01),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4235b0,_0xc6e7b6){if(_0x4235b0['isMultiRange']){for(const _0x541f84 of _0xc6e7b6['getRanges']())_0x4235b0['addRange'](_0x541f84);}else{const _0x446347=_0xc6e7b6['getFirstRange']()['end'];this['_setSuggestionRange'](_0x4235b0,this['_model']['createRange'](_0x4235b0['getFirstRange']()['start'],_0x446347));}_0xc6e7b6['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5eb895,_0x4c269c){const _0xf87664=_0x5eb895['startsWith']('format')||_0x5eb895['startsWith']('attribute')?'FORMATTING':_0x5eb895['toUpperCase']();return o(this['editor']['locale'],_0x4c269c+'_'+_0xf87664+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x5181a8=this['editor'];if(!_0x5181a8['ui'])return;const {ariaLiveAnnouncer:_0x214c41}=_0x5181a8['ui'];_0x23f8bb(this['_model'],({left:_0x430ed4,entered:_0x2c8165})=>{for(const _0x370056 of _0x430ed4){const {group:_0x15db74,type:_0xf60251}=this['_splitMarkerName'](_0x370056['name']);if('suggestion'===_0x15db74){_0x214c41['announce'](this['_getMarkerAnnouncementText'](_0xf60251,'LEAVE'));break;}}for(const _0x31ff5b of _0x2c8165){const {group:_0x13fceb,type:_0x5d173c}=this['_splitMarkerName'](_0x31ff5b['name']);if('suggestion'===_0x13fceb){_0x214c41['announce'](this['_getMarkerAnnouncementText'](_0x5d173c,'ENTER'));break;}}});}['_processAttributeChanges'](_0x43979f){if(this['_recordAttributeSuggestions'])return!0x1;const _0xf40d67=this['editor'],_0x4cc925=_0xf40d67['model']['document']['differ']['getChanges']();if(0x0==_0x4cc925['length'])return!0x1;const _0x3db53e=[],_0x289f43=_0x4cc925['filter'](_0x1430a8=>'attribute'==_0x1430a8['type']),_0x416d8d=_0x4cc925['filter'](_0x311853=>'insert'==_0x311853['type']&&'$text'!=_0x311853['name']),_0x336c6f=_0x4cc925['filter'](_0x1cfffb=>'remove'==_0x1cfffb['type']&&'$text'!=_0x1cfffb['name']);for(const _0x21cfa0 of _0x289f43)_0x3db53e['push']({'key':_0x21cfa0['attributeKey'],'newValue':_0x21cfa0['attributeNewValue'],'oldValue':_0x21cfa0['attributeOldValue'],'range':Ot(_0x21cfa0['range'],_0xf40d67['model'])});for(const _0x303af0 of _0x416d8d){const _0x3b4389=_0x336c6f['find'](_0x2fe980=>_0x2fe980['position']['isEqual'](_0x303af0['position']));_0x3b4389&&_0x3db53e['push']({'key':m,'newValue':_0x303af0['name'],'oldValue':_0x3b4389['name'],'range':_0xf40d67['model']['createRangeOn'](_0x303af0['position']['nodeAfter'])});}return 0x0!=_0x3db53e['length']&&this['_reduceExistingSuggestions'](_0x43979f,_0x3db53e);}['_processAttributeSuggestions'](_0x23c984){let _0x10a03c=!0x1;const _0x352180=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x56a203=>_0x56a203['data']['newRange']&&_0x56a203['name']['startsWith']('suggestion:attribute:'));for(const _0x51d329 of _0x352180){const {subType:_0x1be038,id:_0x51feb4}=this['_splitMarkerName'](_0x51d329['name']),_0x98420c=_0x1be038['split']('|')[0x0];for(const _0x18f073 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x18f073['id']!=_0x51feb4&&'attribute'==_0x18f073['type']&&_0x18f073['data']&&_0x18f073['data']['key']==_0x98420c&&_0x18f073['getFirstRange']()['isIntersecting'](_0x51d329['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x18f073,_0x51d329['data']['newRange'],_0x23c984),_0x10a03c=!0x0);}return _0x10a03c;}['_recordAttributeChanges'](_0x27f385){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x27f385();}['_isRegisteredAttribute'](_0x438d5d){const _0x354939=this['_isBlockAttribute'](_0x438d5d),_0x3ccf55=this['_inlineAttributeKeys']['has'](_0x438d5d);return _0x354939||_0x3ccf55;}['_reduceExistingSuggestions'](_0x3b2fe1,_0x63124a){if(0x0==_0x63124a['length'])return!0x1;let _0x3d6306=!0x1;for(const _0x462915 of _0x63124a){const _0x3c5064=this['_findSuggestions'](_0x462915['range'],'attribute')['filter'](_0x212904=>!_0x212904['meta']['isNextTo'])['map'](_0x5ea43c=>_0x5ea43c['suggestion']),_0x498b3f=_0x474bc1({'newValue':_0x462915['newValue']});_0x3c5064['filter'](_0x4e7214=>{const [_0x14c224,_0x19aa0a]=_0x4e7214['subType']['split']('|');return _0x14c224==_0x462915['key']&&_0x19aa0a!=_0x498b3f;})['forEach'](_0x3c16f7=>{this['_reduceSuggestionAttributeRange'](_0x3c16f7,_0x462915['range'],_0x3b2fe1),_0x3d6306=!0x0;});}return _0x3d6306;}['_reduceSuggestionAttributeRange'](_0x36d4fa,_0x3c4e97,_0x31b547){const _0x232f94=_0x36d4fa['getFirstRange']()['getDifference'](_0x3c4e97);0x0!==_0x232f94['length']?0x1!==_0x232f94['length']?this['_breakSuggestionMarker'](_0x36d4fa,_0x3c4e97['start'],_0x3c4e97['end']):this['_setSuggestionRange'](_0x36d4fa,_0x232f94[0x0]):_0x31b547['removeMarker'](_0x36d4fa['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x37ad5a){this['_editor']=_0x37ad5a,this['_model']=_0x37ad5a['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x11eb2c,_0x5817d3,_0x167a92,_0x45e737,_0x1a7e53,_0x295321){return new u(this['_model'],{'type':_0x11eb2c,'subType':_0x5817d3,'id':_0x167a92,'author':_0x45e737,'creator':_0x45e737,'attributes':_0x1a7e53,'onAttributesChange':_0x295321,'onAccept':(..._0x43fc1f)=>this['getSuggestionCallback'](_0x11eb2c,_0x5817d3,'accept')(..._0x43fc1f),'onDiscard':(..._0xc46efd)=>this['getSuggestionCallback'](_0x11eb2c,_0x5817d3,'discard')(..._0xc46efd)});}['registerCustomCallback'](_0x9bdbb9,_0x2e57d5,_0x1f2172,_0x44daa5){const _0x1f5a06=_0x9bdbb9+':'+_0x2e57d5+':'+_0x1f2172;this['_customCallbacks']['set'](_0x1f5a06,_0x44daa5);}['getSuggestionCallback'](_0xc831d8,_0x2a0001,_0x314384){const _0x1f19ac=_0xc831d8+':'+_0x2a0001+':'+_0x314384;return this['_customCallbacks']['get'](_0x1f19ac)||this['_defaultCallbacks']['get'](_0xc831d8+':'+_0x314384);}['_registerDefaultCallbacks'](){const _0x26f5a1=()=>!0x1,_0x564001=_0x189033=>{_0x189033['sort']((_0x1c3d3b,_0x27b9e8)=>_0x1c3d3b['start']['isBefore'](_0x27b9e8['start'])?0x1:-0x1),this['_model']['change'](_0x55fb07=>{for(const _0x16aa73 of _0x189033){let _0xf8292;_0xf8292=_0x16aa73['end']['isAtEnd']&&_0x16aa73['end']['parent']==_0x16aa73['start']['nodeAfter']?_0x55fb07['createSelection'](_0x16aa73['start']['nodeAfter'],'on'):_0x55fb07['createSelection'](_0x16aa73),this['_model']['deleteContent'](_0xf8292,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2c5553=(_0x3e7b30,_0x160cd3)=>{_0x160cd3&&this['_model']['change'](_0x1a7a5b=>{const {commandName:_0x304e00,commandParams:_0x400c20=[]}=_0x160cd3,_0x4d4438=_0x3e7b30['map'](_0x26cb21=>(Tt(_0x26cb21)&&(_0x26cb21=this['_model']['createRange'](_0x26cb21['end'])),_0x26cb21))['filter'](_0x3beee1=>'$graveyard'!==_0x3beee1['root']['rootName']);if(_0x4d4438['length']<0x1)return;const _0x347f4b=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3f5f7d=>_0x3f67f3['fromRange'](_0x3f5f7d));_0x1a7a5b['setSelection'](_0x4d4438);for(const _0x1972e9 of this['_editor']['commands']['commands']())_0x1972e9['refresh']();_0x400c20['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x304e00,..._0x400c20);const _0x23140a=_0x347f4b['filter'](_0x4800b6=>'$graveyard'!=_0x4800b6['root']['rootName']);_0x23140a['length']>0x0&&_0x1a7a5b['setSelection'](_0x23140a);for(const _0x42f40c of _0x347f4b)_0x42f40c['detach']();});},_0x4a4918=(_0x170759,_0x494b9b)=>0x1==_0x170759['length']&&0x1==_0x494b9b['length']&&_0x170759[0x0]['end']['isEqual'](_0x494b9b[0x0]['start']),_0x58d73e=(_0x4f6222,_0x3b800c,_0x2bea05,_0x454c5c)=>Ft(_0x4f6222,_0x3b800c,_0x2bea05,_0x454c5c,this['_model'])?[_0x4f6222,_0x3b800c]:Ft(_0x3b800c,_0x4f6222,_0x454c5c,_0x2bea05,this['_model'])?[_0x3b800c,_0x4f6222]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x26f5a1),this['_defaultCallbacks']['set']('insertion:discard',_0x564001),this['_defaultCallbacks']['set']('insertion:join',_0x4a4918),this['_defaultCallbacks']['set']('insertion:chain',_0x58d73e),this['_defaultCallbacks']['set']('deletion:accept',_0x564001),this['_defaultCallbacks']['set']('deletion:discard',_0x26f5a1),this['_defaultCallbacks']['set']('deletion:join',_0x4a4918),this['_defaultCallbacks']['set']('deletion:chain',_0x58d73e),this['_defaultCallbacks']['set']('formatInline:accept',_0x2c5553),this['_defaultCallbacks']['set']('formatInline:discard',_0x26f5a1),this['_defaultCallbacks']['set']('formatInline:join',_0x4a4918),this['_defaultCallbacks']['set']('formatInline:chain',_0x26f5a1),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2c5553),this['_defaultCallbacks']['set']('formatBlock:discard',_0x26f5a1),this['_defaultCallbacks']['set']('formatBlock:join',_0x4a4918),this['_defaultCallbacks']['set']('formatBlock:chain',_0x26f5a1),this['_defaultCallbacks']['set']('attribute:accept',_0x26f5a1),this['_defaultCallbacks']['set']('attribute:discard',(_0x3c1f7,_0x1852ff)=>{if(!_0x1852ff)return;const _0x454b81=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x25bb2d=>{if(_0x1852ff['key']==m)for(const _0x40468a of _0x3c1f7){const _0x43cd06=_0x40468a['start']['nodeAfter'],_0x4d4ff4=_0x1852ff['oldValue'];_0x25bb2d['rename'](_0x43cd06,_0x4d4ff4);}else{if(_0x454b81['_isBlockAttribute'](_0x1852ff['key'])){for(const _0x113bf2 of _0x3c1f7)void 0x0!==_0x1852ff['oldValue']?_0x25bb2d['setAttribute'](_0x1852ff['key'],_0x1852ff['oldValue'],_0x113bf2['start']['nodeAfter']):_0x25bb2d['removeAttribute'](_0x1852ff['key'],_0x113bf2['start']['nodeAfter']);}else{for(const _0x20e139 of _0x3c1f7)_0x1852ff['oldValue']?_0x25bb2d['setAttribute'](_0x1852ff['key'],_0x1852ff['oldValue'],_0x20e139):_0x25bb2d['removeAttribute'](_0x1852ff['key'],_0x20e139);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4a4918);}}function Rt(_0x160f54,_0xa6ed28,_0x294519){for(const _0x47cdde of _0xa6ed28['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x47cdde['root']==_0x47cdde)return!0x1;if(!_0x294519['containsItem'](_0x47cdde))return!0x1;if(_0x160f54['isObject'](_0x47cdde)||_0x160f54['isLimit'](_0x47cdde))return!0x0;}return!0x1;}function Tt(_0x2b4e7a){return _0x2b4e7a['end']['parent']==_0x2b4e7a['start']['nodeAfter']&&_0x2b4e7a['end']['isAtStart'];}function Et(_0x4c1d94,_0x54d245,_0x5de7de,_0x3b4a61){const _0x2bbf07=_0xa1ba7=>!_0xa1ba7['item']['is']('$textProxy')&&!_0x3b4a61['isObject'](_0xa1ba7['item']),_0x3c2308=_0x4c1d94['start']['getLastMatchingPosition'](_0x2bbf07),_0x3f3cf0=_0x4c1d94['end']['getLastMatchingPosition'](_0x2bbf07,{'direction':'backward'});return(!_0x4c1d94['start']['isEqual'](_0x3c2308)||!_0x4c1d94['end']['isEqual'](_0x3f3cf0))&&(_0x3c2308['isBefore'](_0x3f3cf0)?_0x5de7de['updateMarker'](_0x54d245,{'range':_0x5de7de['createRange'](_0x3c2308,_0x3f3cf0)}):_0x5de7de['removeMarker'](_0x54d245),!0x0);}function Vt(_0x3c340c){return _0x474bc1(_0x3c340c);}function Ut(_0x166bc2){const _0x20a816=_0x166bc2['start']['nodeAfter'];return _0x20a816&&_0x20a816['is']('element');}function Ot(_0x5237fc,_0x5cb7f5){return null==_0x5237fc['end']['nodeBefore']&&_0x5237fc['end']['parent']==_0x5237fc['start']['nodeAfter']?Gt(_0x5237fc['start']['nodeAfter'],_0x5cb7f5):_0x5237fc;}function Gt(_0x12ebdd,_0x3578f8){const _0x3aac7e=_0x3578f8['schema']['isObject'](_0x12ebdd)||_0x3578f8['schema']['isSelectable'](_0x12ebdd);return _0x3578f8['createRange'](_0x3578f8['createPositionAt'](_0x12ebdd,'before'),_0x3aac7e?_0x3578f8['createPositionAfter'](_0x12ebdd):_0x3578f8['createPositionAt'](_0x12ebdd,'end'));}function Ft(_0x16a461,_0x878fe5,_0x2542fe,_0x56e480,_0x1e0714){if(!Pt(_0x16a461,_0x878fe5))return!0x1;if(_0x2542fe['end']['isEqual'](_0x56e480['start']))return!0x0;if(_0x16a461['type']!=_0x878fe5['type'])return!0x1;if(!_0x2542fe['end']['isTouching'](_0x56e480['start']))return!0x1;const _0x55d482=_0x1e0714['createRange'](_0x2542fe['end'],_0x56e480['start'])['getWalker']();for(const _0x4be934 of _0x55d482)if(['elementStart','elementEnd']['includes'](_0x4be934['type'])&&_0x1e0714['schema']['isLimit'](_0x4be934['item']))return!0x1;return!0x0;}function Pt(_0x1ae41e,_0x2a9bea,_0x271728=[]){return!(!_0x1ae41e['_isDataLoaded']||!_0x2a9bea['_isDataLoaded'])&&_0x4fa487(Bt(_0x1ae41e['attributes'],_0x271728),Bt(_0x2a9bea['attributes'],_0x271728));}function Lt(_0x123f5d,_0x2ed005){const _0x32b951=Ht(_0x123f5d['attributes']),_0x3b7e64=Ht(_0x2ed005);if(!_0x123f5d['_isDataLoaded'])return!0x1;for(const _0x1d236c of Object['keys'](_0x3b7e64))if(!_0x4fa487(_0x32b951[_0x1d236c],_0x3b7e64[_0x1d236c]))return!0x1;return!0x0;}function Ht(_0x6e49bb){const _0x5e39db=Object['assign']({},_0x6e49bb);return delete _0x5e39db['skipNestingCheck'],delete _0x5e39db['tablePasteChainId'],_0x5e39db;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x20de3a(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x58813d,_0x190f54,_0x5b992e,_0x1729b6){super(),this['model']=_0x190f54,this['view']=_0x5b992e,this['commentThreadController']=_0x1729b6,this['_editor']=_0x58813d,this['_acceptCommand']=_0x58813d['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x58813d['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1265c7,_0x292b9d)=>_0x1265c7||_0x292b9d),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x45c899=>_0x45c899&&this['_editor']['model']['canEditAt'](_0x190f54['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0xcce941=>_0xcce941&&this['_editor']['model']['canEditAt'](_0x190f54['getRanges']())),this['_pendingAction']=null,_0x5b992e['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5b992e,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5b992e,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5b992e,'change:isDirty',()=>{_0x5b992e['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}['acceptSuggestion'](){this['_acceptCommand']['execute'](this['model']['id']);}['discardSuggestion'](){this['_discardCommand']['execute'](this['model']['id']);}['destroy'](){this['view']['unbind']('isEnabled'),this['view']['unbind']('canAccept'),this['view']['unbind']('canDiscard'),this['stopListening'](),this['commentThreadController']['destroy'](),this['_pendingAction']&&this['_removePendingAction']();}['_setPendingAction'](){const _0x1c0f70=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1c0f70);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x570dda{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x49ca5f,_0x5843e4,_0x26f44c,_0x5123a0){super(_0x49ca5f),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x5843e4['authoredAt']),this['bind']('authoredAt')['to'](_0x5843e4),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x5843e4,this['_localUser']=_0x26f44c,this['_config']=_0x5123a0,_0x5123a0['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x145437}=this['_config'];this['commentsListView']=new _0x145437(this['locale'],this['_model']['commentThread'],Object['assign']({'CommentView':this['_config']['CommentView']},this['_config'])),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['set']('length',this['commentsListView']['length']+0x1),this['bind']('length')['to'](this['commentsListView'],'length',_0x13ba38=>_0x13ba38+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x181812,_0x107c13)=>_0x181812||!!_0x107c13);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2fb159}=this['_config'],_0x3012f6=new _0x2fb159(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3e0dc5=_0x3012f6['commentInputView'];return _0x3012f6['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3e0dc5,'value',(_0x59734c,_0x2a0a5f,_0x21d061)=>!!_0x21d061||_0x59734c&&!_0x2a0a5f),_0x3e0dc5['on']('submit',(_0x207ab4,_0x46f44f)=>{this['fire']('addComment',_0x46f44f),_0x3e0dc5['editor']['setData']('');}),_0x3e0dc5['on']('cancel',()=>this['focus']()),_0x3e0dc5['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3012f6;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x44cc1e,_0x4df09b,_0x5243d3,_0x201a9c){super(_0x44cc1e,_0x4df09b,_0x5243d3,_0x201a9c),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x17c845=>_0x17c845&&_0x17c845[0x0]?_0x17c845[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x41d4eb,_0x3d1e01)=>{let _0x4d8dfb='';for(const _0x3cddce of _0x41d4eb)_0x4d8dfb+='<p>'+ds(_0x3cddce['content'],_0x3cddce['color'])+'</p>';return _0x3d1e01?_0x4d8dfb:_0x1a99e5(_0x4d8dfb,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x44cc1e,'Accept\x20suggestion'),_0x4fa5ed['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x44cc1e,'Discard\x20suggestion'),_0x4fa5ed['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x1962d2(_0x44cc1e,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x5a8fb1=this['bindTemplate'],_0x47cdd2=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x5a8fb1['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5a8fb1['to']('authoredAt',_0x116072=>this['_config']['formatDateTime'](_0x116072))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0x47cdd2['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x1acebe={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x5a8fb1['if']('isActive','ck-suggestion-wrapper--active'),_0x5a8fb1['to']('type',_0x4b163c=>'ck-suggestion-'+_0x4b163c),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0x47cdd2}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x1acebe['children']['push'](this['commentsListView'],this['commentThreadInputView']),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this)),_0x1acebe;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x590c43,_0x43d72a,_0x1191cc)=>{this['_descriptionElement']['innerHTML']=_0x1191cc;});}['_createButton'](_0x4a92a3,_0xb77439,_0x396f6f,_0x2802b6,_0x5678c4){const _0xb792d1=new _0x11f77f(this['locale']);return _0xb792d1['set']({'label':_0x4a92a3,'icon':_0xb77439,'tooltip':!0x0,'tooltipPosition':_0x5678c4}),_0xb792d1['extendTemplate']({'attributes':{'class':_0x396f6f}}),_0xb792d1['on']('execute',()=>{this['fire'](_0x2802b6,this['_model']['id']);}),_0xb792d1;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}}function ds(_0x1bddde,_0x2752f1){let _0xdf6bcb='';return _0xdf6bcb+=_0x1bddde['split']('*')['map']((_0x5a6e9a,_0x1cba46)=>_0x1cba46%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x5a6e9a)+'</span>':us(_0x5a6e9a))['join'](''),_0x2752f1&&(_0xdf6bcb+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2752f1['value']+'\x22\x20title=\x22'+_0x2752f1['title']+'\x22></span>'),_0xdf6bcb;}function us(_0x29e7ab){const _0x5c40d4=document['createElement']('span');return _0x5c40d4['innerText']=_0x29e7ab,_0x5c40d4['innerHTML'];}var ie='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.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\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x20810f{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x583b5,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x335d82){super(_0x335d82),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3b494e=this['editor']['config'];_0x3b494e['define']('trackChanges.SuggestionThreadView',ne),_0x3b494e['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3b494e['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x19ae13,_0x25e990){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5e1cda,_0x20209e]of this['_handleControllerBuffer']){const _0x1c34ce=this['_suggestionToController']['has'](_0x5e1cda);_0x1c34ce||_0x20209e?_0x1c34ce&&_0x20209e&&this['_destroyController'](_0x5e1cda):this['_initializeController'](_0x5e1cda);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x19ae13,_0x25e990);}['init'](){const _0x2255fe=this['editor'],_0x37c0bb=_0x2255fe['plugins']['get']('TrackChangesEditing'),_0x34aeed=_0x2255fe['plugins']['get']('Annotations'),_0x5aa9b=_0x2255fe['plugins']['get']('EditorAnnotations'),_0x520229=_0x2255fe['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5aa9b['addSourceCollector'](()=>{const _0x44d258=[];for(const [_0x4478f3,_0x1ab202]of Array['from'](this['_suggestionToController'])){const _0x18cc4c=_0x4478f3['getAllAdjacentSuggestions'](),_0x118376=[];for(const _0x1f0ddd of _0x18cc4c){if(!_0x1f0ddd['isInContent'])continue;if(_0x1f0ddd['isMultiRange']){_0x118376['push'](..._0x1f0ddd['getRanges']());continue;}const _0x183156=_0x1f0ddd['getFirstRange']();if(_0x118376['length']>0x0){const _0x600189=_0x118376[0x0]['getJoined'](_0x183156);if(_0x600189){_0x118376[0x0]=_0x600189;continue;}}_0x118376['push'](_0x183156);}_0x44d258['push']([_0x1ab202['view'],_0x118376]);}return _0x44d258;}),this['listenTo'](_0x37c0bb,'suggestionLoaded',(_0x2134f6,_0x24045d)=>{this['listenTo'](_0x24045d,'change:previous',(_0x494b79,_0x100c11,_0x1a7554,_0x4f1cf9)=>{_0x24045d['isInContent']&&(null==_0x1a7554?(this['_updateController'](_0x4f1cf9['head']),this['_handleSuggestionControllerDelayed'](_0x24045d,!0x1)):(this['_updateController'](_0x1a7554['head']),null==_0x4f1cf9&&this['_handleSuggestionControllerDelayed'](_0x24045d,!0x0)));}),null!==_0x24045d['previous']?this['_updateController'](_0x24045d['head']):this['_handleSuggestionControllerDelayed'](_0x24045d,!0x1);}),this['listenTo'](_0x37c0bb,'suggestionUnloaded',(_0x28a1a8,_0x3b234a,_0x40c3a3)=>{this['stopListening'](_0x3b234a,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3b234a),this['_suggestionToController']['has'](_0x3b234a)&&this['_destroyController'](_0x3b234a),_0x40c3a3&&this['_updateController'](_0x40c3a3['head']);}),this['listenTo'](_0x37c0bb,'suggestionChanged',(_0x18f3a3,_0xb6b44)=>{this['_updateController'](_0xb6b44);}),this['listenTo'](_0x34aeed,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x520229,'addComment',(_0x3ad95b,{threadId:_0x72ee34,isFromAdapter:_0x2139bc})=>{if(_0x2139bc||!_0x37c0bb['hasSuggestion'](_0x72ee34))return;const _0x17880a=_0x37c0bb['getSuggestion'](_0x72ee34);this['_suggestionToController']['get'](_0x17880a)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x5efe80=this['editor']['plugins']['get']('Annotations'),_0x22337b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d8080=Array['from'](_0x5efe80['activeAnnotations'],_0x5062b6=>_0x5062b6['innerView'])['filter'](_0x4dfe56=>this['_viewToController']['has'](_0x4dfe56)),_0x4c3c35=[];for(const _0x18dbfb of _0x2d8080){const _0x429d49=this['_viewToController']['get'](_0x18dbfb)['model']['getAllAdjacentSuggestions']();_0x4c3c35['push'](..._0x429d49['reduce']((_0x1e7e4b,_0x28a8fb)=>[..._0x1e7e4b,..._0x28a8fb['getMarkerNames']()],[]));}_0x22337b['activeMarkers']=_0x4c3c35;}['_addUIComponentsToFactory'](){const _0x1b38bc=this['editor'],_0x6997f6=_0x1b38bc['locale'],_0x5c6548=o(_0x6997f6,'Track\x20changes'),_0x124c66=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'isToggleable':!0x0,'label':_0x5c6548,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x6997f6,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x6997f6,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x6997f6,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x6997f6,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x36e373 of _0x124c66)if(ae(_0x36e373)){const _0x21be9d=_0x1b38bc['commands']['get'](_0x36e373['model']['commandName']);_0x36e373['model']['bind']('isOn','isEnabled')['to'](_0x21be9d,'value','isEnabled');}_0x1b38bc['ui']['componentFactory']['add']('trackChanges',_0x3f8e8f=>this['_createToolbarButton'](_0x3f8e8f,_0x124c66,_0x5c6548)),_0x1b38bc['ui']['componentFactory']['add']('menuBar:trackChanges',_0x28bffc=>this['_createMenuBarMenu'](_0x28bffc,_0x124c66,_0x5c6548));}['_createToolbarButton'](_0x13fcd1,_0x510a9d,_0x56d77d){const _0x283c31=zt(_0x13fcd1,Zt),_0x380b06=this['editor']['commands']['get']('trackChanges');_0x283c31['buttonView']['set']({'tooltip':_0x56d77d,'label':_0x56d77d,'icon':ie}),_0x283c31['buttonView']['bind']('isOn')['to'](_0x380b06,'value'),_0x283c31['buttonView']['on']('execute',()=>{_0x380b06['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x283c31,_0x510a9d,{'role':'menu'});const _0x31cb72=[];for(const _0x559e4f of _0x510a9d)ae(_0x559e4f)&&_0x31cb72['push'](this['editor']['commands']['get'](_0x559e4f['model']['commandName']));const _0x5c44a8=_0x283c31['buttonView'];return _0x5c44a8['actionView']['unbind']('isEnabled'),_0x5c44a8['arrowView']['unbind']('isEnabled'),_0x5c44a8['actionView']['bind']('isEnabled')['to'](_0x380b06,'isEnabled'),_0x5c44a8['arrowView']['bind']('isEnabled')['toMany'](_0x31cb72,'isEnabled',(..._0x264e5b)=>_0x264e5b['some'](_0x447594=>_0x447594)),_0x283c31['on']('execute',_0x5612f3=>{this['editor']['execute'](_0x5612f3['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x283c31;}['_createMenuBarMenu'](_0x5a4030,_0x41c5e1,_0x32f9e8){const _0x209788=new Kt(_0x5a4030),_0x2f5b6e=this['editor']['commands']['get']('trackChanges');_0x209788['buttonView']['set']({'label':_0x32f9e8,'icon':ie});const _0x39d6c6=new Qt(_0x5a4030);for(const _0x5b3730 of _0x41c5e1){if('separator'==_0x5b3730['type']){_0x39d6c6['items']['add'](new Jt(_0x5a4030));continue;}const _0x12e91d=new Xt(_0x5a4030,_0x209788),_0x215a32=new Yt(_0x5a4030),_0x3f2ba2=_0x5b3730['model'];_0x215a32['bind'](...Object['keys'](_0x3f2ba2))['to'](_0x3f2ba2),_0x215a32['delegate']('execute')['to'](_0x209788),_0x215a32['on']('execute',()=>{this['editor']['execute'](_0x3f2ba2['commandName']),this['editor']['editing']['view']['focus']();}),_0x12e91d['children']['add'](_0x215a32),_0x39d6c6['items']['add'](_0x12e91d);}return _0x209788['bind']('isEnabled')['to'](_0x2f5b6e,'isEnabled'),_0x209788['panelView']['children']['add'](_0x39d6c6),_0x209788;}['_initializeController'](_0x5e7294){const _0x2244a3=this['editor'],_0x33e634=_0x2244a3['config'],_0x218909=_0x2244a3['plugins']['get']('Annotations'),_0x4df82b=_0x2244a3['plugins']['get']('CommentsRepository'),_0x1886a4=_0x2244a3['plugins']['get']('EditorAnnotations'),_0x181b48=_0x2244a3['plugins']['get'](_0x583b5)['me'],_0xb468b1=_0x33e634['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x207755,CommentThreadInputView:_0x22584a}=_0x2244a3['plugins']['get']('CommentsUI');let _0x250f0a,_0x4f7a8b;this['_annotationViews']['has'](_0x5e7294['id'])?(_0x4f7a8b=this['_annotationViews']['get'](_0x5e7294['id']),_0x250f0a=_0x4f7a8b['mainView']):(_0x250f0a=new _0xb468b1(_0x2244a3['locale'],_0x5e7294,_0x181b48,{'disableComments':this['_disableComments'],'editorConfig':_0x33e634['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x33e634['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x33e634['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x33e634['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x7cc2e9(_0x33e634['get']('locale')),'CommentView':_0x33e634['get']('comments')['CommentView'],'CommentsListView':_0x207755,'CommentThreadInputView':_0x22584a}),_0x250f0a['acceptButton']['on']('execute',()=>{_0x2244a3['editing']['view']['focus']();}),_0x250f0a['discardButton']['on']('execute',()=>{_0x2244a3['editing']['view']['focus']();}),_0x4f7a8b=_0x218909['createAnnotationView'](this['editor']['locale'],_0x250f0a),_0x4f7a8b['bind']('isDirty')['to'](_0x250f0a,'isDirty'),_0x4f7a8b['bind']('length')['to'](_0x250f0a),_0x4f7a8b['bind']('type')['to'](_0x250f0a,'type',_0x3d4bb6=>'suggestion-'+_0x3d4bb6),this['_annotationViews']['set'](_0x5e7294['id'],_0x4f7a8b));const _0x4fdde0=_0x4df82b['createCommentThreadController'](_0x5e7294['commentThread'],_0x250f0a),_0x5357f0=new oe(_0x2244a3,_0x5e7294,_0x250f0a,_0x4fdde0),_0x54e767=_0x5e7294['getAllAdjacentSuggestions']()['filter'](_0x152e83=>_0x152e83['isInContent']);_0x250f0a['descriptionParts']=_0x2244a3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x54e767),this['_suggestionToController']['set'](_0x5e7294,_0x5357f0),this['_viewToController']['set'](_0x250f0a,_0x5357f0);const _0x23c0d4=_0x218909['createAnnotation']({'view':_0x4f7a8b,'target':()=>{const _0xca5c61=[],_0x47a022=_0x5e7294['getAllAdjacentSuggestions']()['filter'](_0x22449c=>_0x22449c['isInContent']);for(const _0x23c9ba of _0x47a022)_0xca5c61['push'](..._0x23c9ba['getMarkers']());return _0x27635a(_0x2244a3['editing'],_0xca5c61);},'type':()=>'suggestion-'+_0x5357f0['view']['type']});_0x4df82b['_bindAnnotationToEditors'](_0x250f0a,_0x23c0d4),_0x218909['add'](_0x23c0d4),_0x1886a4['registerAnnotation'](_0x23c0d4);}['_destroyController'](_0x2690b8){const _0x2f86e2=this['editor']['plugins']['get']('CommentsRepository'),_0x276238=this['editor']['plugins']['get']('Annotations'),_0x3c077c=this['_suggestionToController']['get'](_0x2690b8),_0x558f05=_0x3c077c['view'],_0xbac244=_0x276238['getByInnerView'](_0x558f05);_0x2f86e2['_unbindEditors'](_0x558f05),_0xbac244&&_0x276238['remove'](_0xbac244),this['_suggestionToController']['delete'](_0x2690b8),this['_viewToController']['delete'](_0x558f05),_0x3c077c['destroy']();}['_updateController'](_0x1db9cc){if(!_0x1db9cc['isInContent']||!this['_suggestionToController']['has'](_0x1db9cc))return;const _0x5becd2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d3af1=this['_suggestionToController']['get'](_0x1db9cc),_0x2307ae=_0x1db9cc['getAllAdjacentSuggestions']();_0x5d3af1['view']['descriptionParts']=_0x5becd2['descriptionFactory']['getDescriptions'](_0x2307ae);}['destroy'](){for(const _0x48df9a of this['_suggestionToController']['keys']())this['_destroyController'](_0x48df9a);for(const _0x21e482 of this['_annotationViews']['values']())_0x21e482['mainView']['destroy']();super['destroy']();}}function ae(_0x37f944){return'model'in _0x37f944;}class k extends _0x20810f{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x3dba79){this['editor']['plugins']['get'](p)['adapter']=_0x3dba79;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x478006){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x478006);}['getSuggestions']({skipNotAttached:_0x1a5e30=!0x1,toJSON:_0x2f7102=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x1a5e30,'toJSON':_0x2f7102});}['getSuggestion'](_0xdd8e1b){return this['editor']['plugins']['get'](p)['getSuggestion'](_0xdd8e1b);}}const T=['Pagination'];class P extends _0x20810f{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x3fdf9c=this['editor'];if(_0x3fdf9c['config']['define']('trackChangesData.editorCreator',_0x3b4580=>{const _0x13f853=_0x3fdf9c['model']['document']['getRootNames']()['reduce']((_0x1bdcf4,_0x172bc6)=>(_0x1bdcf4[_0x172bc6]='',_0x1bdcf4),{});return _0x3fdf9c['constructor']['create'](_0x13f853,_0x3b4580);}),'function'!=typeof _0x3fdf9c['config']['get']('trackChangesData')['editorCreator'])throw new _0x5e6563('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x54f89f){return N(this['editor'],!0x0,_0x54f89f);}['getDataWithDiscardedSuggestions'](_0x7435c5){return N(this['editor'],!0x1,_0x7435c5);}}class D extends _0x20810f{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x4425f4){super(_0x4425f4),this['result']='end';}['init'](){this['editor']['plugins']['get']('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']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function v(_0x4b2f28){return void 0x0!==_0x4b2f28['getRootsAttributes'];}async function N(_0xba40ce,_0x24de5b,_0x2269bd){const _0x4f76bb=_0x37f465(_0xba40ce,T);_0x4f76bb['plugins']['push'](p,D),_0x4f76bb['rootsAttributes']=v(_0xba40ce)?_0xba40ce['getRootsAttributes']():void 0x0;const _0x5a0efe=document['createDocumentFragment'](),_0x15edff=_0xba40ce['config']['get']('trackChangesData')['editorCreator'],_0x2e2c78=await _0x15edff(_0x4f76bb,()=>function(_0x4d9f8d){const _0x3de2e6=document['createElement']('div');return _0x4d9f8d['appendChild'](_0x3de2e6),_0x3de2e6;}(_0x5a0efe));!function(_0x253c05,_0x352369){const _0x1b1d9e=_0x253c05['model']['document']['getRootNames']()['reduce']((_0x577227,_0x445002)=>(_0x577227[_0x445002]=_0x253c05['data']['get']({'rootName':_0x445002}),_0x577227),{}),_0x1df01b=_0x253c05['plugins']['get']('Users')['users']['map'](_0x420bfe=>({'id':_0x420bfe['id'],'name':_0x420bfe['name']})),_0x7a584d=_0x253c05['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3649fd=_0x253c05['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x50e32d=_0x352369['plugins']['get']('Users'),_0xf568c1=_0x352369['plugins']['get']('TrackChangesEditing'),_0x2c3472=_0x352369['plugins']['get']('CommentsRepository');for(const _0x50b1dd of _0x1df01b)_0x50e32d['getUser'](_0x50b1dd['id'])||_0x50e32d['addUser'](_0x50b1dd);_0x50e32d['me']||_0x50e32d['useAnonymousUser']();for(const _0x371a3a of _0x3649fd)_0x2c3472['addCommentThread'](_0x371a3a);for(const _0x5d5c12 of _0x7a584d)_0xf568c1['addSuggestionData'](_0x5d5c12);_0x352369['data']['set'](_0x1b1d9e);}(_0xba40ce,_0x2e2c78),_0x2e2c78['execute'](_0x24de5b?'acceptAllSuggestions':'discardAllSuggestions');const _0x13b299=v(_0x2e2c78)?_0x2e2c78['getFullData'](_0x2269bd):_0x2e2c78['data']['get'](_0x2269bd);return await _0x2e2c78['destroy'](),_0x13b299;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|